]> git.saurik.com Git - wxWidgets.git/blame - configure
patch from Paul Gammans <paul.gammans@brunel.ac.uk> for cross compiling for MSW
[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 36
422107f9
VZ
37
38
10f2d63a
VZ
39
40
41
42# Guess values for system-dependent variables and create Makefiles.
e8482f24 43# Generated automatically using autoconf version 2.13
10f2d63a
VZ
44# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
45#
46# This configure script is free software; the Free Software Foundation
47# gives unlimited permission to copy, distribute and modify it.
48
49# Defaults:
50ac_help=
51ac_default_prefix=/usr/local
52# Any additions from configure.in:
53ac_help="$ac_help
54--enable-gui use GUI classes"
55ac_help="$ac_help
56 --with-gtk use GTK+"
57ac_help="$ac_help
58 --with-motif use Motif/Lesstif"
59ac_help="$ac_help
60 --with-wine use WINE"
61ac_help="$ac_help
62 --with-cygwin use Cygwin for MS-Windows"
63ac_help="$ac_help
64 --with-mingw use GCC Minimal MS-Windows"
e07802fc
VZ
65ac_help="$ac_help
66 --with-pm use OS/2 Presentation Manager"
10f2d63a
VZ
67ac_help="$ac_help
68 --with-gtk-prefix=PFX Prefix where GTK is installed"
69ac_help="$ac_help
70 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed"
71ac_help="$ac_help
10f2d63a
VZ
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
b12915c1
VZ
80--with-dmalloc use dmalloc library (www.letters.com/dmalloc)"
81ac_help="$ac_help
82--with-zlib use zlib for LZW compression"
83ac_help="$ac_help
10f2d63a
VZ
84--with-odbc use the IODBC and wxODBC classes"
85ac_help="$ac_help
86--enable-shared create shared library code"
87ac_help="$ac_help
00cf1208
RR
88--enable-burnt_name create set name in shared library "
89ac_help="$ac_help
10f2d63a
VZ
90--enable-optimise create optimised code"
91ac_help="$ac_help
92--enable-debug same as debug_flag and debug_info"
93ac_help="$ac_help
94--enable-debug_flag set __WXDEBUG__ flag (recommended for developers!)"
95ac_help="$ac_help
96--enable-debug_info create code with debugging information"
97ac_help="$ac_help
98--enable-debug_gdb create code with extra GDB debugging information"
99ac_help="$ac_help
100--enable-debug_cntxt use wxDebugContext"
101ac_help="$ac_help
102--enable-mem_tracing create code with memory tracing"
103ac_help="$ac_help
104--enable-profile create code with profiling information"
105ac_help="$ac_help
106--enable-no_rtti create code without RTTI information"
107ac_help="$ac_help
108--enable-no_exceptions create code without exceptions information"
109ac_help="$ac_help
110--enable-permissive compile code disregarding strict ANSI"
111ac_help="$ac_help
112--enable-no_deps create code without dependency information"
113ac_help="$ac_help
114--enable-intl use internationalization system"
115ac_help="$ac_help
116--enable-config use wxConfig (and derived) classes"
117ac_help="$ac_help
118--enable-sockets use socket/network classes"
119ac_help="$ac_help
120--enable-dialupman use dialup network classes"
121ac_help="$ac_help
122--enable-ipc use interprocess communication (wxSocket etc.)"
123ac_help="$ac_help
124--enable-apple_ieee use the Apple IEEE codec"
125ac_help="$ac_help
126--enable-timedate use date/time classes"
127ac_help="$ac_help
128--enable-wave use wxWave class"
129ac_help="$ac_help
130--enable-fraction use wxFraction class"
131ac_help="$ac_help
132--enable-dynlib use wxLibrary class for DLL loading"
133ac_help="$ac_help
134--enable-longlong use wxLongLong class"
135ac_help="$ac_help
136--enable-log use logging system"
137ac_help="$ac_help
138--enable-streams use wxStream etc classes"
139ac_help="$ac_help
140--enable-file use wxFile classes"
141ac_help="$ac_help
142--enable-textfile use wxTextFile classes"
143ac_help="$ac_help
144--enable-unicode compile wxString with Unicode support"
145ac_help="$ac_help
146--enable-wcsrtombs use wcsrtombs instead of buggy (GNU libc1/Linux libc5) wcstombs"
147ac_help="$ac_help
148--enable-wxprintfv use wxWindows implementation of vprintf()"
149ac_help="$ac_help
150--enable-joystick compile in joystick support (Linux only)"
151ac_help="$ac_help
152--enable-std_iostreams use standard C++ stream classes"
153ac_help="$ac_help
24528b0c
VS
154--enable-filesystem use virtual file systems classes"
155ac_help="$ac_help
10f2d63a
VZ
156--enable-fs_inet use virtual HTTP/FTP filesystems"
157ac_help="$ac_help
158--enable-fs_zip use virtual ZIP filesystems"
159ac_help="$ac_help
160--enable-zipstream use wxZipInputStream"
161ac_help="$ac_help
162--enable-threads use threads"
163ac_help="$ac_help
164--enable-serial use class serialization"
165ac_help="$ac_help
166--enable-docview use document view architecture"
167ac_help="$ac_help
168--enable-help use help (using external browser at present)"
169ac_help="$ac_help
170--enable-constraints use layout-constraints system"
171ac_help="$ac_help
172--enable-printarch use printing architecture"
173ac_help="$ac_help
174--enable-mdi use multiple document interface architecture"
175ac_help="$ac_help
176--enable-postscript use wxPostscriptDC device context (default for gtk+)"
177ac_help="$ac_help
178--enable-prologio use Prolog IO library"
179ac_help="$ac_help
180--enable-resources use wxWindows resources"
181ac_help="$ac_help
182--enable-xresources use X resources for save (default for gtk+)"
183ac_help="$ac_help
184--enable-clipboard use wxClipboard classes"
185ac_help="$ac_help
186--enable-dnd use Drag'n'Drop classes"
187ac_help="$ac_help
188--enable-wxtree make wxTree library"
189ac_help="$ac_help
190--enable-controls use all usual controls"
191ac_help="$ac_help
192--enable-accel use accelerators"
193ac_help="$ac_help
194--enable-caret use wxCaret class"
195ac_help="$ac_help
196--enable-bmpbutton use wxBitmapButton class"
197ac_help="$ac_help
198--enable-checkbox use wxCheckBox class"
199ac_help="$ac_help
200--enable-checklst use wxCheckListBox (listbox with checkboxes) class"
201ac_help="$ac_help
202--enable-choice use wxChoice class"
203ac_help="$ac_help
204--enable-combobox use wxComboBox classes"
205ac_help="$ac_help
206--enable-gauge use wxGauge class"
207ac_help="$ac_help
208--enable-grid use wxGrid class"
209ac_help="$ac_help
210--enable-newgrid use new wxGrid class"
211ac_help="$ac_help
212--enable-imaglist use wxImageList class"
213ac_help="$ac_help
214--enable-listbox use wxListBox class"
215ac_help="$ac_help
216--enable-listctrl use wxListCtrl class"
217ac_help="$ac_help
218--enable-notebook use wxNotebook class"
219ac_help="$ac_help
220--enable-radiobox use wxRadioBox class"
221ac_help="$ac_help
222--enable-radiobtn use wxRadioButton class"
223ac_help="$ac_help
224--enable-sash use wxSashWindow class"
225ac_help="$ac_help
226--enable-scrollbar use wxScrollBar class and scrollable windows"
227ac_help="$ac_help
228--enable-slider use wxSlider class"
229ac_help="$ac_help
230--enable-spinbtn use wxSpinButton class"
231ac_help="$ac_help
56cfaa52
RR
232--enable-spinctrl use wxSpinCtrl class"
233ac_help="$ac_help
10f2d63a
VZ
234--enable-splitter use wxSplitterWindow class"
235ac_help="$ac_help
236--enable-statbmp use wxStaticBitmap class"
237ac_help="$ac_help
238--enable-statbox use wxStaticBox class"
239ac_help="$ac_help
240--enable-statline use wxStaticLine class"
241ac_help="$ac_help
242--enable-statusbar use wxStatusBar class"
243ac_help="$ac_help
244--enable-tabdialog use wxTabControl class"
245ac_help="$ac_help
246--enable-toolbar use wxToolBar class"
247ac_help="$ac_help
360d6699
VZ
248--enable-tbarnative use native wxToolBar class"
249ac_help="$ac_help
250--enable-tbarsmpl use wxToolBarSimple class"
251ac_help="$ac_help
10f2d63a
VZ
252--enable-treectrl use wxTreeCtrl class"
253ac_help="$ac_help
254--enable-commondlg use common dialogs (wxDirDialog, wxProgressDialog, wxTextDialog, ...)"
255ac_help="$ac_help
256--enable-dirdlg use wxDirDialog"
257ac_help="$ac_help
258--enable-textdlg use wxTextDialog"
259ac_help="$ac_help
260--enable-tipdlg use startup tips"
261ac_help="$ac_help
262--enable-progressdlg use wxProgressDialog"
263ac_help="$ac_help
264--enable-miniframe use wxMiniFrame class"
265ac_help="$ac_help
266--enable-html use wxHTML sub-library"
267ac_help="$ac_help
268--enable-tooltips use wxToolTip class"
269ac_help="$ac_help
270--enable-splines use spline drawing code"
271ac_help="$ac_help
272--enable-validators use wxValidator and derived classes"
273ac_help="$ac_help
274--enable-busyinfo use wxBusyInfo"
275ac_help="$ac_help
9b33fe02
VZ
276--enable-plot use wxPlot"
277ac_help="$ac_help
10f2d63a
VZ
278--enable-gif use gif images (GIF file format)"
279ac_help="$ac_help
280--enable-pcx use pcx images (PCX file format)"
281ac_help="$ac_help
282--enable-pnm use pnm images (PNM file format)"
ab9b9eab
VZ
283ac_help="$ac_help
284 --with-x use the X Window System"
10f2d63a
VZ
285
286# Initialize some variables set by options.
287# The variables have the same names as the options, with
288# dashes changed to underlines.
289build=NONE
290cache_file=./config.cache
291exec_prefix=NONE
292host=NONE
293no_create=
294nonopt=NONE
295no_recursion=
296prefix=NONE
297program_prefix=NONE
298program_suffix=NONE
299program_transform_name=s,x,x,
300silent=
301site=
302srcdir=
303target=NONE
304verbose=
305x_includes=NONE
306x_libraries=NONE
307bindir='${exec_prefix}/bin'
308sbindir='${exec_prefix}/sbin'
309libexecdir='${exec_prefix}/libexec'
310datadir='${prefix}/share'
311sysconfdir='${prefix}/etc'
312sharedstatedir='${prefix}/com'
313localstatedir='${prefix}/var'
314libdir='${exec_prefix}/lib'
315includedir='${prefix}/include'
316oldincludedir='/usr/include'
317infodir='${prefix}/info'
318mandir='${prefix}/man'
319
320# Initialize some other variables.
321subdirs=
322MFLAGS= MAKEFLAGS=
323SHELL=${CONFIG_SHELL-/bin/sh}
324# Maximum number of lines to put in a shell here document.
325ac_max_here_lines=12
326
327ac_prev=
328for ac_option
329do
330
331 # If the previous option needs an argument, assign it.
332 if test -n "$ac_prev"; then
333 eval "$ac_prev=\$ac_option"
334 ac_prev=
335 continue
336 fi
337
338 case "$ac_option" in
339 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
340 *) ac_optarg= ;;
341 esac
342
343 # Accept the important Cygnus configure options, so we can diagnose typos.
344
345 case "$ac_option" in
346
347 -bindir | --bindir | --bindi | --bind | --bin | --bi)
348 ac_prev=bindir ;;
349 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
350 bindir="$ac_optarg" ;;
351
352 -build | --build | --buil | --bui | --bu)
353 ac_prev=build ;;
354 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
355 build="$ac_optarg" ;;
356
357 -cache-file | --cache-file | --cache-fil | --cache-fi \
358 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
359 ac_prev=cache_file ;;
360 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
361 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
362 cache_file="$ac_optarg" ;;
363
364 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
365 ac_prev=datadir ;;
366 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
367 | --da=*)
368 datadir="$ac_optarg" ;;
369
370 -disable-* | --disable-*)
371 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
372 # Reject names that are not valid shell variable names.
373 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
374 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
375 fi
376 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
377 eval "enable_${ac_feature}=no" ;;
378
379 -enable-* | --enable-*)
380 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
381 # Reject names that are not valid shell variable names.
382 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
383 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
384 fi
385 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
386 case "$ac_option" in
387 *=*) ;;
388 *) ac_optarg=yes ;;
389 esac
390 eval "enable_${ac_feature}='$ac_optarg'" ;;
391
392 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
393 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
394 | --exec | --exe | --ex)
395 ac_prev=exec_prefix ;;
396 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
397 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
398 | --exec=* | --exe=* | --ex=*)
399 exec_prefix="$ac_optarg" ;;
400
401 -gas | --gas | --ga | --g)
402 # Obsolete; use --with-gas.
403 with_gas=yes ;;
404
405 -help | --help | --hel | --he)
406 # Omit some internal or obsolete options to make the list less imposing.
407 # This message is too long to be a string in the A/UX 3.1 sh.
408 cat << EOF
409Usage: configure [options] [host]
410Options: [defaults in brackets after descriptions]
411Configuration:
412 --cache-file=FILE cache test results in FILE
413 --help print this message
414 --no-create do not create output files
415 --quiet, --silent do not print \`checking...' messages
416 --version print the version of autoconf that created configure
417Directory and file names:
418 --prefix=PREFIX install architecture-independent files in PREFIX
419 [$ac_default_prefix]
420 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
421 [same as prefix]
422 --bindir=DIR user executables in DIR [EPREFIX/bin]
423 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
424 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
425 --datadir=DIR read-only architecture-independent data in DIR
426 [PREFIX/share]
427 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
428 --sharedstatedir=DIR modifiable architecture-independent data in DIR
429 [PREFIX/com]
430 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
431 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
432 --includedir=DIR C header files in DIR [PREFIX/include]
433 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
434 --infodir=DIR info documentation in DIR [PREFIX/info]
435 --mandir=DIR man documentation in DIR [PREFIX/man]
436 --srcdir=DIR find the sources in DIR [configure dir or ..]
437 --program-prefix=PREFIX prepend PREFIX to installed program names
438 --program-suffix=SUFFIX append SUFFIX to installed program names
439 --program-transform-name=PROGRAM
440 run sed PROGRAM on installed program names
441EOF
442 cat << EOF
443Host type:
444 --build=BUILD configure for building on BUILD [BUILD=HOST]
445 --host=HOST configure for HOST [guessed]
446 --target=TARGET configure for TARGET [TARGET=HOST]
447Features and packages:
448 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
449 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
450 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
451 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
452 --x-includes=DIR X include files are in DIR
453 --x-libraries=DIR X library files are in DIR
454EOF
455 if test -n "$ac_help"; then
456 echo "--enable and --with options recognized:$ac_help"
457 fi
458 exit 0 ;;
459
460 -host | --host | --hos | --ho)
461 ac_prev=host ;;
462 -host=* | --host=* | --hos=* | --ho=*)
463 host="$ac_optarg" ;;
464
465 -includedir | --includedir | --includedi | --included | --include \
466 | --includ | --inclu | --incl | --inc)
467 ac_prev=includedir ;;
468 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
469 | --includ=* | --inclu=* | --incl=* | --inc=*)
470 includedir="$ac_optarg" ;;
471
472 -infodir | --infodir | --infodi | --infod | --info | --inf)
473 ac_prev=infodir ;;
474 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
475 infodir="$ac_optarg" ;;
476
477 -libdir | --libdir | --libdi | --libd)
478 ac_prev=libdir ;;
479 -libdir=* | --libdir=* | --libdi=* | --libd=*)
480 libdir="$ac_optarg" ;;
481
482 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
483 | --libexe | --libex | --libe)
484 ac_prev=libexecdir ;;
485 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
486 | --libexe=* | --libex=* | --libe=*)
487 libexecdir="$ac_optarg" ;;
488
489 -localstatedir | --localstatedir | --localstatedi | --localstated \
490 | --localstate | --localstat | --localsta | --localst \
491 | --locals | --local | --loca | --loc | --lo)
492 ac_prev=localstatedir ;;
493 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
494 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
495 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
496 localstatedir="$ac_optarg" ;;
497
498 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
499 ac_prev=mandir ;;
500 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
501 mandir="$ac_optarg" ;;
502
503 -nfp | --nfp | --nf)
504 # Obsolete; use --without-fp.
505 with_fp=no ;;
506
507 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
508 | --no-cr | --no-c)
509 no_create=yes ;;
510
511 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
512 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
513 no_recursion=yes ;;
514
515 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
516 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
517 | --oldin | --oldi | --old | --ol | --o)
518 ac_prev=oldincludedir ;;
519 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
520 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
521 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
522 oldincludedir="$ac_optarg" ;;
523
524 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
525 ac_prev=prefix ;;
526 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
527 prefix="$ac_optarg" ;;
528
529 -program-prefix | --program-prefix | --program-prefi | --program-pref \
530 | --program-pre | --program-pr | --program-p)
531 ac_prev=program_prefix ;;
532 -program-prefix=* | --program-prefix=* | --program-prefi=* \
533 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
534 program_prefix="$ac_optarg" ;;
535
536 -program-suffix | --program-suffix | --program-suffi | --program-suff \
537 | --program-suf | --program-su | --program-s)
538 ac_prev=program_suffix ;;
539 -program-suffix=* | --program-suffix=* | --program-suffi=* \
540 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
541 program_suffix="$ac_optarg" ;;
542
543 -program-transform-name | --program-transform-name \
544 | --program-transform-nam | --program-transform-na \
545 | --program-transform-n | --program-transform- \
546 | --program-transform | --program-transfor \
547 | --program-transfo | --program-transf \
548 | --program-trans | --program-tran \
549 | --progr-tra | --program-tr | --program-t)
550 ac_prev=program_transform_name ;;
551 -program-transform-name=* | --program-transform-name=* \
552 | --program-transform-nam=* | --program-transform-na=* \
553 | --program-transform-n=* | --program-transform-=* \
554 | --program-transform=* | --program-transfor=* \
555 | --program-transfo=* | --program-transf=* \
556 | --program-trans=* | --program-tran=* \
557 | --progr-tra=* | --program-tr=* | --program-t=*)
558 program_transform_name="$ac_optarg" ;;
559
560 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
561 | -silent | --silent | --silen | --sile | --sil)
562 silent=yes ;;
563
564 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
565 ac_prev=sbindir ;;
566 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
567 | --sbi=* | --sb=*)
568 sbindir="$ac_optarg" ;;
569
570 -sharedstatedir | --sharedstatedir | --sharedstatedi \
571 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
572 | --sharedst | --shareds | --shared | --share | --shar \
573 | --sha | --sh)
574 ac_prev=sharedstatedir ;;
575 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
576 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
577 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
578 | --sha=* | --sh=*)
579 sharedstatedir="$ac_optarg" ;;
580
581 -site | --site | --sit)
582 ac_prev=site ;;
583 -site=* | --site=* | --sit=*)
584 site="$ac_optarg" ;;
585
586 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
587 ac_prev=srcdir ;;
588 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
589 srcdir="$ac_optarg" ;;
590
591 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
592 | --syscon | --sysco | --sysc | --sys | --sy)
593 ac_prev=sysconfdir ;;
594 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
595 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
596 sysconfdir="$ac_optarg" ;;
597
598 -target | --target | --targe | --targ | --tar | --ta | --t)
599 ac_prev=target ;;
600 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
601 target="$ac_optarg" ;;
602
603 -v | -verbose | --verbose | --verbos | --verbo | --verb)
604 verbose=yes ;;
605
606 -version | --version | --versio | --versi | --vers)
e8482f24 607 echo "configure generated by autoconf version 2.13"
10f2d63a
VZ
608 exit 0 ;;
609
610 -with-* | --with-*)
611 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
612 # Reject names that are not valid shell variable names.
613 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
614 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
615 fi
616 ac_package=`echo $ac_package| sed 's/-/_/g'`
617 case "$ac_option" in
618 *=*) ;;
619 *) ac_optarg=yes ;;
620 esac
621 eval "with_${ac_package}='$ac_optarg'" ;;
622
623 -without-* | --without-*)
624 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
625 # Reject names that are not valid shell variable names.
626 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
627 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
628 fi
629 ac_package=`echo $ac_package| sed 's/-/_/g'`
630 eval "with_${ac_package}=no" ;;
631
632 --x)
633 # Obsolete; use --with-x.
634 with_x=yes ;;
635
636 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
637 | --x-incl | --x-inc | --x-in | --x-i)
638 ac_prev=x_includes ;;
639 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
640 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
641 x_includes="$ac_optarg" ;;
642
643 -x-libraries | --x-libraries | --x-librarie | --x-librari \
644 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
645 ac_prev=x_libraries ;;
646 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
647 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
648 x_libraries="$ac_optarg" ;;
649
650 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
651 ;;
652
653 *)
654 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
655 echo "configure: warning: $ac_option: invalid host type" 1>&2
656 fi
657 if test "x$nonopt" != xNONE; then
658 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
659 fi
660 nonopt="$ac_option"
661 ;;
662
663 esac
664done
665
666if test -n "$ac_prev"; then
667 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
668fi
669
670trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
671
672# File descriptor usage:
673# 0 standard input
674# 1 file creation
675# 2 errors and warnings
676# 3 some systems may open it to /dev/tty
677# 4 used on the Kubota Titan
678# 6 checking for... messages and results
679# 5 compiler messages saved in config.log
680if test "$silent" = yes; then
681 exec 6>/dev/null
682else
683 exec 6>&1
684fi
685exec 5>./config.log
686
687echo "\
688This file contains any messages produced by compilers while
689running configure, to aid debugging if configure makes a mistake.
690" 1>&5
691
692# Strip out --no-create and --no-recursion so they do not pile up.
693# Also quote any args containing shell metacharacters.
694ac_configure_args=
695for ac_arg
696do
697 case "$ac_arg" in
698 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
699 | --no-cr | --no-c) ;;
700 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
701 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
702 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
703 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
704 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
705 esac
706done
707
708# NLS nuisances.
709# Only set these to C if already set. These must not be set unconditionally
710# because not all systems understand e.g. LANG=C (notably SCO).
711# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
712# Non-C LC_CTYPE values break the ctype check.
713if test "${LANG+set}" = set; then LANG=C; export LANG; fi
714if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
715if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
716if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
717
718# confdefs.h avoids OS command line length limits that DEFS can exceed.
719rm -rf conftest* confdefs.h
720# AIX cpp loses on an empty file, so make sure it contains at least a newline.
721echo > confdefs.h
722
723# A filename unique to this package, relative to the directory that
724# configure is in, which we can look for to find out if srcdir is correct.
725ac_unique_file=wx-config.in
726
727# Find the source files, if location was not specified.
728if test -z "$srcdir"; then
729 ac_srcdir_defaulted=yes
730 # Try the directory containing this script, then its parent.
731 ac_prog=$0
732 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
733 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
734 srcdir=$ac_confdir
735 if test ! -r $srcdir/$ac_unique_file; then
736 srcdir=..
737 fi
738else
739 ac_srcdir_defaulted=no
740fi
741if test ! -r $srcdir/$ac_unique_file; then
742 if test "$ac_srcdir_defaulted" = yes; then
743 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
744 else
745 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
746 fi
747fi
748srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
749
750# Prefer explicitly selected file to automatically selected ones.
751if test -z "$CONFIG_SITE"; then
752 if test "x$prefix" != xNONE; then
753 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
754 else
755 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
756 fi
757fi
758for ac_site_file in $CONFIG_SITE; do
759 if test -r "$ac_site_file"; then
760 echo "loading site script $ac_site_file"
761 . "$ac_site_file"
762 fi
763done
764
765if test -r "$cache_file"; then
766 echo "loading cache $cache_file"
767 . $cache_file
768else
769 echo "creating cache $cache_file"
770 > $cache_file
771fi
772
773ac_ext=c
774# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
775ac_cpp='$CPP $CPPFLAGS'
776ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
777ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
778cross_compiling=$ac_cv_prog_cc_cross
779
780ac_exeext=
781ac_objext=o
782if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
783 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
784 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
785 ac_n= ac_c='
786' ac_t=' '
787 else
788 ac_n=-n ac_c= ac_t=
789 fi
790else
791 ac_n= ac_c='\c' ac_t=
792fi
793
794
795
7c66a493
VZ
796ac_aux_dir=
797for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
798 if test -f $ac_dir/install-sh; then
799 ac_aux_dir=$ac_dir
800 ac_install_sh="$ac_aux_dir/install-sh -c"
801 break
802 elif test -f $ac_dir/install.sh; then
803 ac_aux_dir=$ac_dir
804 ac_install_sh="$ac_aux_dir/install.sh -c"
805 break
806 fi
807done
808if test -z "$ac_aux_dir"; then
809 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
810fi
811ac_config_guess=$ac_aux_dir/config.guess
812ac_config_sub=$ac_aux_dir/config.sub
813ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
814
815
816# Do some error checking and defaulting for the host and target type.
817# The inputs are:
818# configure --host=HOST --target=TARGET --build=BUILD NONOPT
819#
820# The rules are:
821# 1. You are not allowed to specify --host, --target, and nonopt at the
822# same time.
823# 2. Host defaults to nonopt.
824# 3. If nonopt is not specified, then host defaults to the current host,
825# as determined by config.guess.
826# 4. Target and build default to nonopt.
827# 5. If nonopt is not specified, then target and build default to host.
828
829# The aliases save the names the user supplied, while $host etc.
830# will get canonicalized.
831case $host---$target---$nonopt in
832NONE---*---* | *---NONE---* | *---*---NONE) ;;
833*) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
834esac
835
836
837# Make sure we can run config.sub.
838if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
839else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
840fi
841
842echo $ac_n "checking host system type""... $ac_c" 1>&6
422107f9 843echo "configure:844: checking host system type" >&5
7c66a493
VZ
844
845host_alias=$host
846case "$host_alias" in
847NONE)
848 case $nonopt in
849 NONE)
850 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
851 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
852 fi ;;
853 *) host_alias=$nonopt ;;
854 esac ;;
855esac
856
857host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
858host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
859host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
860host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
861echo "$ac_t""$host" 1>&6
862
863echo $ac_n "checking target system type""... $ac_c" 1>&6
422107f9 864echo "configure:865: checking target system type" >&5
7c66a493
VZ
865
866target_alias=$target
867case "$target_alias" in
868NONE)
869 case $nonopt in
870 NONE) target_alias=$host_alias ;;
871 *) target_alias=$nonopt ;;
872 esac ;;
873esac
874
875target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
876target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
877target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
878target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
879echo "$ac_t""$target" 1>&6
880
881echo $ac_n "checking build system type""... $ac_c" 1>&6
422107f9 882echo "configure:883: checking build system type" >&5
7c66a493
VZ
883
884build_alias=$build
885case "$build_alias" in
886NONE)
887 case $nonopt in
888 NONE) build_alias=$host_alias ;;
889 *) build_alias=$nonopt ;;
890 esac ;;
891esac
892
893build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
894build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
895build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
896build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
897echo "$ac_t""$build" 1>&6
898
899test "$host_alias" != "$target_alias" &&
900 test "$program_prefix$program_suffix$program_transform_name" = \
901 NONENONEs,x,x, &&
902 program_prefix=${target_alias}-
903
904
10f2d63a
VZ
905
906WX_MAJOR_VERSION_NUMBER=2
907WX_MINOR_VERSION_NUMBER=1
cc977e5f 908WX_RELEASE_NUMBER=14
10f2d63a
VZ
909
910WX_INTERFACE_AGE=0
911WX_BINARY_AGE=0
912
913WX_VERSION=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER.$WX_RELEASE_NUMBER
914
915WX_RELEASE=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER
916WX_CURRENT=`expr $WX_RELEASE_NUMBER - $WX_INTERFACE_AGE`
917WX_REVISION=$WX_INTERFACE_AGE
918WX_AGE=`expr $WX_BINARY_AGE - $WX_INTERFACE_AGE`
919
920
921USE_UNIX=1
922USE_WIN32=0
b12915c1
VZ
923USE_BEOS=0
924
10f2d63a
VZ
925USE_LINUX=
926USE_SGI=
927USE_HPUX=
928USE_SYSV=
929USE_SVR4=
930USE_AIX=
931USE_SUN=
932USE_SOLARIS=
933USE_SUNOS=
934USE_ALPHA=
935USE_OSF=
936USE_BSD=
937USE_FREEBSD=
938USE_VMS=
939USE_ULTRIX=
940USE_CYGWIN=
941USE_MINGW=
942USE_DATA_GENERAL=
943
ab9b9eab
VZ
944NEEDS_D_REENTRANT_FOR_R_FUNCS=0
945
e07802fc 946ALL_TOOLKITS="CYGWIN GTK MINGW MOTIF WINE PM"
10f2d63a
VZ
947
948DEFAULT_wxUSE_GTK=0
949DEFAULT_wxUSE_MOTIF=0
950DEFAULT_wxUSE_MSW=0
951DEFAULT_wxUSE_WINE=0
e07802fc 952DEFAULT_wxUSE_PM=0
10f2d63a
VZ
953
954DEFAULT_DEFAULT_wxUSE_GTK=0
955DEFAULT_DEFAULT_wxUSE_MOTIF=0
956DEFAULT_DEFAULT_wxUSE_MSW=0
957DEFAULT_DEFAULT_wxUSE_WINE=0
e07802fc 958DEFAULT_DEFAULT_wxUSE_PM=0
10f2d63a 959
d6a55c4b
VZ
960PROGRAM_EXT=
961
10f2d63a
VZ
962case "${host}" in
963 *-hp-hpux* )
964 USE_HPUX=1
965 DEFAULT_DEFAULT_wxUSE_MOTIF=1
ab9b9eab 966 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
10f2d63a
VZ
967 cat >> confdefs.h <<\EOF
968#define __HPUX__ 1
969EOF
970
971 ;;
972 *-*-linux* )
973 USE_LINUX=1
974 cat >> confdefs.h <<\EOF
975#define __LINUX__ 1
976EOF
977
978 TMP=`uname -m`
979 if test "x$TMP" = "xalpha"; then
980 USE_ALPHA=1
981 cat >> confdefs.h <<\EOF
982#define __ALPHA__ 1
983EOF
984
985 fi
986 DEFAULT_DEFAULT_wxUSE_GTK=1
987 ;;
988 *-*-irix5* | *-*-irix6* )
989 USE_SGI=1
990 USE_SVR4=1
991 cat >> confdefs.h <<\EOF
992#define __SGI__ 1
993EOF
994
995 cat >> confdefs.h <<\EOF
996#define __SVR4__ 1
997EOF
998
999 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1000 ;;
1001 *-*-solaris2* )
1002 USE_SUN=1
1003 USE_SOLARIS=1
1004 USE_SVR4=1
1005 cat >> confdefs.h <<\EOF
1006#define __SUN__ 1
1007EOF
1008
1009 cat >> confdefs.h <<\EOF
1010#define __SOLARIS__ 1
1011EOF
1012
1013 cat >> confdefs.h <<\EOF
1014#define __SVR4__ 1
1015EOF
1016
1017 DEFAULT_DEFAULT_wxUSE_MOTIF=1
ab9b9eab 1018 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
10f2d63a
VZ
1019 ;;
1020 *-*-sunos4* )
1021 USE_SUN=1
1022 USE_SUNOS=1
1023 USE_BSD=1
1024 cat >> confdefs.h <<\EOF
1025#define __SUN__ 1
1026EOF
1027
1028 cat >> confdefs.h <<\EOF
1029#define __SUNOS__ 1
1030EOF
1031
1032 cat >> confdefs.h <<\EOF
1033#define __BSD__ 1
1034EOF
1035
1036 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1037 ;;
1038 *-*-freebsd* | *-*-netbsd*)
1039 USE_BSD=1
1040 USE_FREEBSD=1
1041 cat >> confdefs.h <<\EOF
1042#define __FREEBSD__ 1
1043EOF
1044
1045 cat >> confdefs.h <<\EOF
1046#define __BSD__ 1
1047EOF
1048
1049 DEFAULT_DEFAULT_wxUSE_GTK=1
1050 ;;
1051 *-*-osf* )
1052 USE_ALPHA=1
1053 USE_OSF=1
1054 cat >> confdefs.h <<\EOF
1055#define __ALPHA__ 1
1056EOF
1057
1058 cat >> confdefs.h <<\EOF
1059#define __OSF__ 1
1060EOF
1061
1062 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1063 ;;
1064 *-*-dgux5* )
1065 USE_ALPHA=1
1066 USE_SVR4=1
1067 cat >> confdefs.h <<\EOF
1068#define __ALPHA__ 1
1069EOF
1070
1071 cat >> confdefs.h <<\EOF
1072#define __SVR4__ 1
1073EOF
1074
1075 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1076 ;;
1077 *-*-sysv5* )
1078 USE_SYSV=1
1079 USE_SVR4=1
1080 cat >> confdefs.h <<\EOF
1081#define __SYSV__ 1
1082EOF
1083
1084 cat >> confdefs.h <<\EOF
1085#define __SVR4__ 1
1086EOF
1087
1088 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1089 ;;
1090 *-*-aix* )
1091 USE_AIX=1
1092 USE_SYSV=1
1093 USE_SVR4=1
1094 cat >> confdefs.h <<\EOF
1095#define __AIX__ 1
1096EOF
1097
1098 cat >> confdefs.h <<\EOF
1099#define __SYSV__ 1
1100EOF
1101
1102 cat >> confdefs.h <<\EOF
1103#define __SVR4__ 1
1104EOF
1105
1106 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1107 ;;
1108
7eef8db2 1109 *-*-cygwin32* | *-*-mingw32* )
10f2d63a
VZ
1110 USE_UNIX=0
1111 USE_WIN32=1
1112 cat >> confdefs.h <<\EOF
1113#define __WIN32__ 1
1114EOF
1115
1116 cat >> confdefs.h <<\EOF
1117#define __WIN95__ 1
1118EOF
1119
1120 cat >> confdefs.h <<\EOF
1121#define __WINDOWS__ 1
1122EOF
1123
1124 cat >> confdefs.h <<\EOF
1125#define __GNUWIN32__ 1
1126EOF
1127
1128 cat >> confdefs.h <<\EOF
1129#define STRICT 1
1130EOF
1131
1132 cat >> confdefs.h <<\EOF
1133#define WINVER 0x0400
1134EOF
1135
cf27ef00 1136 PROGRAM_EXT=".exe"
10f2d63a
VZ
1137 DEFAULT_DEFAULT_wxUSE_MSW=1
1138 ;;
1139
1140 *-pc-os2_emx )
1141 cat >> confdefs.h <<\EOF
1142#define __EMX__ 1
1143EOF
1144
cf27ef00 1145 PROGRAM_EXT=".exe"
e07802fc 1146 DEFAULT_DEFAULT_wxUSE_PM=1
10f2d63a
VZ
1147 ;;
1148
b12915c1
VZ
1149 *-*-beos* )
1150 USE_BEOS=1
1151 cat >> confdefs.h <<\EOF
1152#define __BEOS__ 1
1153EOF
1154
1155 ;;
1156
10f2d63a
VZ
1157 *)
1158 { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; }
1159esac
1160
1161if test "$USE_UNIX" = 1 ; then
b12915c1
VZ
1162 wxUSE_UNIX=yes
1163 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1164#define __UNIX__ 1
1165EOF
1166
b12915c1
VZ
1167
1168 SRC_SUBDIRS="$SRC_SUBDIRS unix"
1169 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS unix"
1170fi
1171
1172if test "$USE_BEOS" = 1; then
1173 SRC_SUBDIRS="$SRC_SUBDIRS be"
1174 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS be"
10f2d63a
VZ
1175fi
1176
1177if test "$USE_LINUX" = 1; then
1178 echo $ac_n "checking for gettext in -lc""... $ac_c" 1>&6
422107f9 1179echo "configure:1180: checking for gettext in -lc" >&5
10f2d63a
VZ
1180ac_lib_var=`echo c'_'gettext | sed 'y%./+-%__p_%'`
1181if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1182 echo $ac_n "(cached) $ac_c" 1>&6
1183else
1184 ac_save_LIBS="$LIBS"
1185LIBS="-lc $LIBS"
1186cat > conftest.$ac_ext <<EOF
422107f9 1187#line 1188 "configure"
10f2d63a
VZ
1188#include "confdefs.h"
1189/* Override any gcc2 internal prototype to avoid an error. */
1190/* We use char because int might match the return type of a gcc2
1191 builtin and then its argument prototype would still apply. */
1192char gettext();
1193
1194int main() {
1195gettext()
1196; return 0; }
1197EOF
422107f9 1198if { (eval echo configure:1199: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
1199 rm -rf conftest*
1200 eval "ac_cv_lib_$ac_lib_var=yes"
1201else
1202 echo "configure: failed program was:" >&5
1203 cat conftest.$ac_ext >&5
1204 rm -rf conftest*
1205 eval "ac_cv_lib_$ac_lib_var=no"
1206fi
1207rm -f conftest*
1208LIBS="$ac_save_LIBS"
1209
1210fi
1211if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1212 echo "$ac_t""yes" 1>&6
1213 cat >> confdefs.h <<\EOF
1214#define wxHAVE_GLIBC2 1
1215EOF
1216
1217else
1218 echo "$ac_t""no" 1>&6
1219fi
1220
1221fi
1222
1223
1224
1225
1226 wx_arg_cache_file="configarg.cache"
1227 echo "loading argument cache $wx_arg_cache_file"
1228 rm -f ${wx_arg_cache_file}.tmp
1229 touch ${wx_arg_cache_file}.tmp
1230 touch ${wx_arg_cache_file}
1231
1232
1233DEBUG_CONFIGURE=0
1234if test $DEBUG_CONFIGURE = 1; then
1235 DEFAULT_wxUSE_THREADS=yes
1236
1237 DEFAULT_wxUSE_SHARED=yes
00cf1208 1238 DEFAULT_wxUSE_BURNT_NAME=no
10f2d63a
VZ
1239 DEFAULT_wxUSE_OPTIMISE=yes
1240 DEFAULT_wxUSE_PROFILE=no
1241 DEFAULT_wxUSE_NO_DEPS=no
1242 DEFAULT_wxUSE_NO_RTTI=no
1243 DEFAULT_wxUSE_NO_EXCEPTIONS=no
1244 DEFAULT_wxUSE_PERMISSIVE=no
1245 DEFAULT_wxUSE_DEBUG_FLAG=yes
1246 DEFAULT_wxUSE_DEBUG_INFO=yes
1247 DEFAULT_wxUSE_DEBUG_GDB=yes
1248 DEFAULT_wxUSE_MEM_TRACING=no
1249 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1250 DEFAULT_wxUSE_DMALLOC=no
1251 DEFAULT_wxUSE_APPLE_IEEE=no
1252
1253 DEFAULT_wxUSE_LOG=yes
1254
1255 DEFAULT_wxUSE_GUI=yes
1256
1257 DEFAULT_wxUSE_ZLIB=no
1258 DEFAULT_wxUSE_LIBPNG=no
1259 DEFAULT_wxUSE_LIBJPEG=no
c7a2bf27 1260 DEFAULT_wxUSE_LIBTIFF=no
10f2d63a 1261 DEFAULT_wxUSE_ODBC=no
bdad4e7e 1262 DEFAULT_wxUSE_OPENGL=no
10f2d63a
VZ
1263
1264 DEFAULT_wxUSE_STD_IOSTREAM=no
1265 DEFAULT_wxUSE_FILE=no
1266 DEFAULT_wxUSE_TEXTFILE=no
1267 DEFAULT_wxUSE_TIMEDATE=no
1268 DEFAULT_wxUSE_WAVE=no
1269 DEFAULT_wxUSE_INTL=no
1270 DEFAULT_wxUSE_CONFIG=no
1271 DEFAULT_wxUSE_STREAMS=no
1272 DEFAULT_wxUSE_SOCKETS=no
1273 DEFAULT_wxUSE_DIALUP_MANAGER=no
1274 DEFAULT_wxUSE_SERIAL=no
1275 DEFAULT_wxUSE_JOYSTICK=no
1276 DEFAULT_wxUSE_DYNLIB_CLASS=no
1277 DEFAULT_wxUSE_LONGLONG=no
1278
1279 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
1280 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
1281 DEFAULT_wxUSE_POSTSCRIPT=no
1282
1283 DEFAULT_wxUSE_X_RESOURCES=no
1284 DEFAULT_wxUSE_CLIPBOARD=no
1285 DEFAULT_wxUSE_TOOLTIPS=no
1286 DEFAULT_wxUSE_DRAG_AND_DROP=no
1287 DEFAULT_wxUSE_SPLINES=no
1288
1289 DEFAULT_wxUSE_MDI_ARCHITECTURE=no
1290 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
1291 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
1292
1293 DEFAULT_wxUSE_PROLOGIO=no
1294 DEFAULT_wxUSE_RESOURCES=no
1295 DEFAULT_wxUSE_CONSTRAINTS=no
1296 DEFAULT_wxUSE_IPC=no
1297 DEFAULT_wxUSE_HELP=no
1298 DEFAULT_wxUSE_WXTREE=no
1299 DEFAULT_wxUSE_METAFILE=no
1300
1301 DEFAULT_wxUSE_COMMONDLGS=no
1302 DEFAULT_wxUSE_DIRDLG=no
1303 DEFAULT_wxUSE_TEXTDLG=no
1304 DEFAULT_wxUSE_STARTUP_TIPS=no
1305 DEFAULT_wxUSE_PROGRESSDLG=no
1306 DEFAULT_wxUSE_MINIFRAME=no
1307 DEFAULT_wxUSE_HTML=no
24528b0c 1308 DEFAULT_wxUSE_FILESYSTEM=no
10f2d63a
VZ
1309 DEFAULT_wxUSE_FS_INET=no
1310 DEFAULT_wxUSE_FS_ZIP=no
1311 DEFAULT_wxUSE_BUSYINFO=no
1312 DEFAULT_wxUSE_ZIPSTREAM=no
1313 DEFAULT_wxUSE_VALIDATORS=yes
1314
1315 DEFAULT_wxUSE_ACCEL=no
1316 DEFAULT_wxUSE_CARET=no
1317 DEFAULT_wxUSE_BMPBUTTON=no
1318 DEFAULT_wxUSE_CHECKBOX=no
1319 DEFAULT_wxUSE_CHECKLST=no
1320 DEFAULT_wxUSE_CHOICE=yes
1321 DEFAULT_wxUSE_COMBOBOX=no
1322 DEFAULT_wxUSE_GAUGE=no
1323 DEFAULT_wxUSE_GRID=no
1324 DEFAULT_wxUSE_NEW_GRID=no
1325 DEFAULT_wxUSE_IMAGLIST=no
1326 DEFAULT_wxUSE_LISTBOX=no
1327 DEFAULT_wxUSE_LISTCTRL=no
1328 DEFAULT_wxUSE_NOTEBOOK=no
9b33fe02 1329 DEFAULT_wxUSE_PLOT=no
10f2d63a
VZ
1330 DEFAULT_wxUSE_RADIOBOX=no
1331 DEFAULT_wxUSE_RADIOBTN=no
1332 DEFAULT_wxUSE_SASH=no
1333 DEFAULT_wxUSE_SCROLLBAR=no
1334 DEFAULT_wxUSE_SLIDER=no
1335 DEFAULT_wxUSE_SPINBTN=no
56cfaa52 1336 DEFAULT_wxUSE_SPINCTRL=no
10f2d63a
VZ
1337 DEFAULT_wxUSE_SPLITTER=no
1338 DEFAULT_wxUSE_STATBMP=no
1339 DEFAULT_wxUSE_STATBOX=no
1340 DEFAULT_wxUSE_STATLINE=no
1341 DEFAULT_wxUSE_STATUSBAR=yes
1342 DEFAULT_wxUSE_TABDIALOG=no
1343 DEFAULT_wxUSE_TOOLBAR=no
360d6699
VZ
1344 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
1345 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
10f2d63a
VZ
1346 DEFAULT_wxUSE_TREECTRL=no
1347
1348 DEFAULT_wxUSE_UNICODE=no
1349 DEFAULT_wxUSE_WCSRTOMBS=no
1350
1351 DEFAULT_wxUSE_GIF=no
1352 DEFAULT_wxUSE_PCX=no
1353 DEFAULT_wxUSE_PNM=no
1354else
1355 DEFAULT_wxUSE_THREADS=yes
1356
1357 DEFAULT_wxUSE_SHARED=yes
00cf1208 1358 DEFAULT_wxUSE_BURNT_NAME=no
10f2d63a
VZ
1359 DEFAULT_wxUSE_OPTIMISE=yes
1360 DEFAULT_wxUSE_PROFILE=no
1361 DEFAULT_wxUSE_NO_DEPS=no
1362 DEFAULT_wxUSE_NO_RTTI=no
1363 DEFAULT_wxUSE_NO_EXCEPTIONS=no
1364 DEFAULT_wxUSE_PERMISSIVE=no
1365 DEFAULT_wxUSE_DEBUG_FLAG=no
1366 DEFAULT_wxUSE_DEBUG_INFO=no
1367 DEFAULT_wxUSE_DEBUG_GDB=no
1368 DEFAULT_wxUSE_MEM_TRACING=no
1369 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1370 DEFAULT_wxUSE_DMALLOC=no
1371 DEFAULT_wxUSE_APPLE_IEEE=yes
1372
1373 DEFAULT_wxUSE_LOG=yes
1374
1375 DEFAULT_wxUSE_GUI=yes
1376
1377 DEFAULT_wxUSE_ZLIB=yes
1378 DEFAULT_wxUSE_LIBPNG=yes
1379 DEFAULT_wxUSE_LIBJPEG=yes
b47c832e 1380 DEFAULT_wxUSE_LIBTIFF=yes
16b52fa1 1381 DEFAULT_wxUSE_ODBC=no
bdad4e7e 1382 DEFAULT_wxUSE_OPENGL=no
10f2d63a
VZ
1383
1384 DEFAULT_wxUSE_STD_IOSTREAM=no
1385 DEFAULT_wxUSE_FILE=yes
1386 DEFAULT_wxUSE_TEXTFILE=yes
1387 DEFAULT_wxUSE_TIMEDATE=yes
1388 DEFAULT_wxUSE_WAVE=no
1389 DEFAULT_wxUSE_INTL=yes
1390 DEFAULT_wxUSE_CONFIG=yes
1391 DEFAULT_wxUSE_STREAMS=yes
1392 DEFAULT_wxUSE_SOCKETS=yes
1393 DEFAULT_wxUSE_DIALUP_MANAGER=yes
1394 DEFAULT_wxUSE_SERIAL=yes
1395 DEFAULT_wxUSE_JOYSTICK=yes
1396 DEFAULT_wxUSE_DYNLIB_CLASS=yes
b685cd9b 1397 DEFAULT_wxUSE_LONGLONG=yes
10f2d63a
VZ
1398
1399 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
1400 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
1401 DEFAULT_wxUSE_POSTSCRIPT=yes
1402
1403 DEFAULT_wxUSE_X_RESOURCES=no
1404 DEFAULT_wxUSE_CLIPBOARD=yes
1405 DEFAULT_wxUSE_TOOLTIPS=yes
1406 DEFAULT_wxUSE_DRAG_AND_DROP=yes
1407 DEFAULT_wxUSE_SPLINES=yes
1408
1409 DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
1410 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
1411 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
1412
1413 DEFAULT_wxUSE_PROLOGIO=yes
1414 DEFAULT_wxUSE_RESOURCES=yes
1415 DEFAULT_wxUSE_CONSTRAINTS=yes
1416 DEFAULT_wxUSE_IPC=yes
1417 DEFAULT_wxUSE_HELP=yes
1418 DEFAULT_wxUSE_WXTREE=yes
1419 DEFAULT_wxUSE_METAFILE=yes
1420
1421 DEFAULT_wxUSE_COMMONDLGS=yes
1422 DEFAULT_wxUSE_DIRDLG=yes
1423 DEFAULT_wxUSE_TEXTDLG=yes
1424 DEFAULT_wxUSE_STARTUP_TIPS=yes
1425 DEFAULT_wxUSE_PROGRESSDLG=yes
1426 DEFAULT_wxUSE_MINIFRAME=yes
1427 DEFAULT_wxUSE_HTML=yes
24528b0c 1428 DEFAULT_wxUSE_FILESYSTEM=yes
10f2d63a
VZ
1429 DEFAULT_wxUSE_FS_INET=yes
1430 DEFAULT_wxUSE_FS_ZIP=yes
1431 DEFAULT_wxUSE_BUSYINFO=yes
1432 DEFAULT_wxUSE_ZIPSTREAM=yes
1433 DEFAULT_wxUSE_VALIDATORS=yes
1434
1435 DEFAULT_wxUSE_ACCEL=yes
1436 DEFAULT_wxUSE_CARET=yes
1437 DEFAULT_wxUSE_BMPBUTTON=yes
1438 DEFAULT_wxUSE_CHECKBOX=yes
1439 DEFAULT_wxUSE_CHECKLST=yes
1440 DEFAULT_wxUSE_CHOICE=yes
1441 DEFAULT_wxUSE_COMBOBOX=yes
1442 DEFAULT_wxUSE_GAUGE=yes
1443 DEFAULT_wxUSE_GRID=yes
cc977e5f 1444 DEFAULT_wxUSE_NEW_GRID=yes
10f2d63a
VZ
1445 DEFAULT_wxUSE_IMAGLIST=yes
1446 DEFAULT_wxUSE_LISTBOX=yes
1447 DEFAULT_wxUSE_LISTCTRL=yes
1448 DEFAULT_wxUSE_NOTEBOOK=yes
9b33fe02 1449 DEFAULT_wxUSE_PLOT=yes
10f2d63a
VZ
1450 DEFAULT_wxUSE_RADIOBOX=yes
1451 DEFAULT_wxUSE_RADIOBTN=yes
1452 DEFAULT_wxUSE_SASH=yes
1453 DEFAULT_wxUSE_SCROLLBAR=yes
1454 DEFAULT_wxUSE_SLIDER=yes
1455 DEFAULT_wxUSE_SPINBTN=yes
56cfaa52 1456 DEFAULT_wxUSE_SPINCTRL=yes
10f2d63a
VZ
1457 DEFAULT_wxUSE_SPLITTER=yes
1458 DEFAULT_wxUSE_STATBMP=yes
1459 DEFAULT_wxUSE_STATBOX=yes
1460 DEFAULT_wxUSE_STATLINE=yes
1461 DEFAULT_wxUSE_STATUSBAR=yes
1462 DEFAULT_wxUSE_TABDIALOG=no
1463 DEFAULT_wxUSE_TOOLBAR=yes
360d6699
VZ
1464 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
1465 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
10f2d63a
VZ
1466 DEFAULT_wxUSE_TREECTRL=yes
1467
1468 DEFAULT_wxUSE_UNICODE=no
1469 DEFAULT_wxUSE_WCSRTOMBS=no
1470
1471 DEFAULT_wxUSE_GIF=yes
1472 DEFAULT_wxUSE_PCX=yes
1473 DEFAULT_wxUSE_PNM=yes
1474fi
1475
1476
1477
1478for toolkit in `echo $ALL_TOOLKITS`; do
1479 LINE=`grep "wxUSE_$toolkit" ${wx_arg_cache_file}`
1480 if test "x$LINE" != x ; then
1481 has_toolkit_in_cache=1
1482 eval "DEFAULT_$LINE"
1483 eval "CACHE_$toolkit=1"
1484 fi
1485done
1486
1487
1488
1489 echo $ac_n "checking "for --enable-gui"""... $ac_c" 1>&6
422107f9 1490echo "configure:1491: checking "for --enable-gui"" >&5
10f2d63a
VZ
1491 no_cache=0
1492 # Check whether --enable-gui or --disable-gui was given.
1493if test "${enable_gui+set}" = set; then
1494 enableval="$enable_gui"
1495
1496 if test "$enableval" = yes; then
1497 ac_cv_use_gui='wxUSE_GUI=yes'
1498 else
1499 ac_cv_use_gui='wxUSE_GUI=no'
1500 fi
1501
1502else
1503
1504 LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
1505 if test "x$LINE" != x ; then
1506 eval "DEFAULT_$LINE"
1507 else
1508 no_cache=1
1509 fi
1510
1511 ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
1512
1513fi
1514
1515
1516 eval "$ac_cv_use_gui"
1517 if test "$no_cache" != 1; then
1518 echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
1519 fi
1520
1521 if test "$wxUSE_GUI" = yes; then
1522 echo "$ac_t""yes" 1>&6
1523 else
1524 echo "$ac_t""no" 1>&6
1525 fi
1526
1527
b12915c1 1528if test "$wxUSE_GUI" = "yes"; then
10f2d63a
VZ
1529
1530# Check whether --with-gtk or --without-gtk was given.
1531if test "${with_gtk+set}" = set; then
1532 withval="$with_gtk"
1533 wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
1534fi
1535
1536# Check whether --with-motif or --without-motif was given.
1537if test "${with_motif+set}" = set; then
1538 withval="$with_motif"
1539 wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
1540fi
1541
1542# Check whether --with-wine or --without-wine was given.
1543if test "${with_wine+set}" = set; then
1544 withval="$with_wine"
1545 wxUSE_WINE="$withval" CACHE_WINE=1 TOOLKIT_GIVEN=1
1546fi
1547
1548# Check whether --with-cygwin or --without-cygwin was given.
1549if test "${with_cygwin+set}" = set; then
1550 withval="$with_cygwin"
1551 wxUSE_CYGWIN="$withval" CACHE_CYGWIN=1 TOOLKIT_GIVEN=1
1552fi
1553
1554# Check whether --with-mingw or --without-mingw was given.
1555if test "${with_mingw+set}" = set; then
1556 withval="$with_mingw"
1557 wxUSE_MINGW="$withval" CACHE_MINGW=1 TOOLKIT_GIVEN=1
1558fi
1559
e07802fc
VZ
1560# Check whether --with-pm or --without-pm was given.
1561if test "${with_pm+set}" = set; then
1562 withval="$with_pm"
1563 wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
1564fi
1565
10f2d63a
VZ
1566
1567# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
1568if test "${with_gtk_prefix+set}" = set; then
1569 withval="$with_gtk_prefix"
1570 gtk_config_prefix="$withval"
1571else
1572 gtk_config_prefix=""
1573fi
1574
1575# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
1576if test "${with_gtk_exec_prefix+set}" = set; then
1577 withval="$with_gtk_exec_prefix"
1578 gtk_config_exec_prefix="$withval"
1579else
1580 gtk_config_exec_prefix=""
1581fi
1582
1583
1584
b12915c1 1585 echo $ac_n "checking "for --with-libpng"""... $ac_c" 1>&6
422107f9 1586echo "configure:1587: checking "for --with-libpng"" >&5
10f2d63a 1587 no_cache=0
b12915c1
VZ
1588 # Check whether --with-libpng or --without-libpng was given.
1589if test "${with_libpng+set}" = set; then
1590 withval="$with_libpng"
10f2d63a
VZ
1591
1592 if test "$withval" = yes; then
b12915c1 1593 ac_cv_use_libpng='wxUSE_LIBPNG=yes'
422107f9 1594 elif test "$withval" = no; then
b12915c1 1595 ac_cv_use_libpng='wxUSE_LIBPNG=no'
422107f9
VZ
1596 elif test "$withval" = sys; then
1597 ac_cv_use_libpng='wxUSE_LIBPNG=sys'
1598 else
1599 { echo "configure: error: Invalid value for --with-libpng: should be yes, no or sys" 1>&2; exit 1; }
10f2d63a
VZ
1600 fi
1601
1602else
1603
b12915c1 1604 LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
10f2d63a
VZ
1605 if test "x$LINE" != x ; then
1606 eval "DEFAULT_$LINE"
1607 else
1608 no_cache=1
1609 fi
1610
b12915c1 1611 ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
10f2d63a
VZ
1612
1613fi
1614
1615
b12915c1 1616 eval "$ac_cv_use_libpng"
10f2d63a 1617 if test "$no_cache" != 1; then
b12915c1 1618 echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
1619 fi
1620
b12915c1 1621 if test "$wxUSE_LIBPNG" = yes; then
10f2d63a 1622 echo "$ac_t""yes" 1>&6
422107f9 1623 elif test "$wxUSE_LIBPNG" = no; then
10f2d63a 1624 echo "$ac_t""no" 1>&6
422107f9
VZ
1625 elif test "$wxUSE_LIBPNG" = sys; then
1626 echo "$ac_t""system version" 1>&6
1627 else
1628 { echo "configure: error: Invalid value for --with-libpng: should be yes, no or sys" 1>&2; exit 1; }
10f2d63a
VZ
1629 fi
1630
1631
b12915c1 1632 echo $ac_n "checking "for --with-libjpeg"""... $ac_c" 1>&6
422107f9 1633echo "configure:1634: checking "for --with-libjpeg"" >&5
10f2d63a 1634 no_cache=0
b12915c1
VZ
1635 # Check whether --with-libjpeg or --without-libjpeg was given.
1636if test "${with_libjpeg+set}" = set; then
1637 withval="$with_libjpeg"
10f2d63a
VZ
1638
1639 if test "$withval" = yes; then
b12915c1 1640 ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
422107f9 1641 elif test "$withval" = no; then
b12915c1 1642 ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
422107f9
VZ
1643 elif test "$withval" = sys; then
1644 ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
1645 else
1646 { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no or sys" 1>&2; exit 1; }
10f2d63a
VZ
1647 fi
1648
1649else
1650
b12915c1 1651 LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
10f2d63a
VZ
1652 if test "x$LINE" != x ; then
1653 eval "DEFAULT_$LINE"
1654 else
1655 no_cache=1
1656 fi
1657
b12915c1 1658 ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
10f2d63a
VZ
1659
1660fi
1661
1662
b12915c1 1663 eval "$ac_cv_use_libjpeg"
10f2d63a 1664 if test "$no_cache" != 1; then
b12915c1 1665 echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
1666 fi
1667
b12915c1 1668 if test "$wxUSE_LIBJPEG" = yes; then
10f2d63a 1669 echo "$ac_t""yes" 1>&6
422107f9 1670 elif test "$wxUSE_LIBJPEG" = no; then
10f2d63a 1671 echo "$ac_t""no" 1>&6
422107f9
VZ
1672 elif test "$wxUSE_LIBJPEG" = sys; then
1673 echo "$ac_t""system version" 1>&6
1674 else
1675 { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no or sys" 1>&2; exit 1; }
10f2d63a
VZ
1676 fi
1677
1678
b12915c1 1679 echo $ac_n "checking "for --with-libtiff"""... $ac_c" 1>&6
422107f9 1680echo "configure:1681: checking "for --with-libtiff"" >&5
10f2d63a 1681 no_cache=0
b12915c1
VZ
1682 # Check whether --with-libtiff or --without-libtiff was given.
1683if test "${with_libtiff+set}" = set; then
1684 withval="$with_libtiff"
10f2d63a
VZ
1685
1686 if test "$withval" = yes; then
b12915c1 1687 ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
0dcf9893 1688 elif test "$withval" = no; then
b12915c1 1689 ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
0dcf9893
VZ
1690 elif test "$withval" = sys; then
1691 ac_cv_use_libtiff='wxUSE_LIBTIFF=sys'
1692 else
1693 { echo "configure: error: Invalid value for --with-libtiff: should be yes, no or sys" 1>&2; exit 1; }
10f2d63a
VZ
1694 fi
1695
1696else
1697
b12915c1 1698 LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
10f2d63a
VZ
1699 if test "x$LINE" != x ; then
1700 eval "DEFAULT_$LINE"
1701 else
1702 no_cache=1
1703 fi
1704
b12915c1 1705 ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
10f2d63a
VZ
1706
1707fi
1708
1709
b12915c1 1710 eval "$ac_cv_use_libtiff"
10f2d63a 1711 if test "$no_cache" != 1; then
b12915c1 1712 echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
1713 fi
1714
b12915c1 1715 if test "$wxUSE_LIBTIFF" = yes; then
10f2d63a 1716 echo "$ac_t""yes" 1>&6
0dcf9893 1717 elif test "$wxUSE_LIBTIFF" = no; then
10f2d63a 1718 echo "$ac_t""no" 1>&6
0dcf9893
VZ
1719 elif test "$wxUSE_LIBTIFF" = sys; then
1720 echo "$ac_t""system version" 1>&6
1721 else
1722 { echo "configure: error: Invalid value for --with-libtiff: should be yes, no or sys" 1>&2; exit 1; }
10f2d63a
VZ
1723 fi
1724
1725
b12915c1 1726 echo $ac_n "checking "for --with-opengl"""... $ac_c" 1>&6
0dcf9893 1727echo "configure:1728: checking "for --with-opengl"" >&5
10f2d63a 1728 no_cache=0
b12915c1
VZ
1729 # Check whether --with-opengl or --without-opengl was given.
1730if test "${with_opengl+set}" = set; then
1731 withval="$with_opengl"
10f2d63a
VZ
1732
1733 if test "$withval" = yes; then
b12915c1 1734 ac_cv_use_opengl='wxUSE_OPENGL=yes'
10f2d63a 1735 else
b12915c1 1736 ac_cv_use_opengl='wxUSE_OPENGL=no'
10f2d63a
VZ
1737 fi
1738
1739else
1740
b12915c1 1741 LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
10f2d63a
VZ
1742 if test "x$LINE" != x ; then
1743 eval "DEFAULT_$LINE"
1744 else
1745 no_cache=1
1746 fi
1747
b12915c1 1748 ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
10f2d63a
VZ
1749
1750fi
1751
1752
b12915c1 1753 eval "$ac_cv_use_opengl"
10f2d63a 1754 if test "$no_cache" != 1; then
b12915c1 1755 echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
1756 fi
1757
b12915c1 1758 if test "$wxUSE_OPENGL" = yes; then
10f2d63a
VZ
1759 echo "$ac_t""yes" 1>&6
1760 else
1761 echo "$ac_t""no" 1>&6
1762 fi
1763
1764
b12915c1
VZ
1765fi
1766
1767
1768 echo $ac_n "checking "for --with-dmalloc"""... $ac_c" 1>&6
0dcf9893 1769echo "configure:1770: checking "for --with-dmalloc"" >&5
c7a2bf27 1770 no_cache=0
b12915c1
VZ
1771 # Check whether --with-dmalloc or --without-dmalloc was given.
1772if test "${with_dmalloc+set}" = set; then
1773 withval="$with_dmalloc"
c7a2bf27
RR
1774
1775 if test "$withval" = yes; then
b12915c1 1776 ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
c7a2bf27 1777 else
b12915c1 1778 ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
c7a2bf27
RR
1779 fi
1780
1781else
1782
b12915c1 1783 LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
c7a2bf27
RR
1784 if test "x$LINE" != x ; then
1785 eval "DEFAULT_$LINE"
1786 else
1787 no_cache=1
1788 fi
1789
b12915c1 1790 ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
c7a2bf27
RR
1791
1792fi
1793
1794
b12915c1 1795 eval "$ac_cv_use_dmalloc"
c7a2bf27 1796 if test "$no_cache" != 1; then
b12915c1 1797 echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
c7a2bf27
RR
1798 fi
1799
b12915c1 1800 if test "$wxUSE_DMALLOC" = yes; then
c7a2bf27
RR
1801 echo "$ac_t""yes" 1>&6
1802 else
1803 echo "$ac_t""no" 1>&6
1804 fi
1805
1806
b12915c1 1807 echo $ac_n "checking "for --with-zlib"""... $ac_c" 1>&6
0dcf9893 1808echo "configure:1809: checking "for --with-zlib"" >&5
10f2d63a 1809 no_cache=0
b12915c1
VZ
1810 # Check whether --with-zlib or --without-zlib was given.
1811if test "${with_zlib+set}" = set; then
1812 withval="$with_zlib"
10f2d63a
VZ
1813
1814 if test "$withval" = yes; then
b12915c1 1815 ac_cv_use_zlib='wxUSE_ZLIB=yes'
422107f9 1816 elif test "$withval" = no; then
b12915c1 1817 ac_cv_use_zlib='wxUSE_ZLIB=no'
422107f9
VZ
1818 elif test "$withval" = sys; then
1819 ac_cv_use_zlib='wxUSE_ZLIB=sys'
1820 else
1821 { echo "configure: error: Invalid value for --with-zlib: should be yes, no or sys" 1>&2; exit 1; }
10f2d63a
VZ
1822 fi
1823
1824else
1825
b12915c1 1826 LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
10f2d63a
VZ
1827 if test "x$LINE" != x ; then
1828 eval "DEFAULT_$LINE"
1829 else
1830 no_cache=1
1831 fi
1832
b12915c1 1833 ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
10f2d63a
VZ
1834
1835fi
1836
1837
b12915c1 1838 eval "$ac_cv_use_zlib"
10f2d63a 1839 if test "$no_cache" != 1; then
b12915c1 1840 echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
1841 fi
1842
b12915c1 1843 if test "$wxUSE_ZLIB" = yes; then
10f2d63a 1844 echo "$ac_t""yes" 1>&6
422107f9 1845 elif test "$wxUSE_ZLIB" = no; then
bdad4e7e 1846 echo "$ac_t""no" 1>&6
422107f9
VZ
1847 elif test "$wxUSE_ZLIB" = sys; then
1848 echo "$ac_t""system version" 1>&6
1849 else
1850 { echo "configure: error: Invalid value for --with-zlib: should be yes, no or sys" 1>&2; exit 1; }
10f2d63a
VZ
1851 fi
1852
1853
1854 echo $ac_n "checking "for --with-odbc"""... $ac_c" 1>&6
0dcf9893 1855echo "configure:1856: checking "for --with-odbc"" >&5
10f2d63a
VZ
1856 no_cache=0
1857 # Check whether --with-odbc or --without-odbc was given.
1858if test "${with_odbc+set}" = set; then
1859 withval="$with_odbc"
1860
1861 if test "$withval" = yes; then
1862 ac_cv_use_odbc='wxUSE_ODBC=yes'
1863 else
1864 ac_cv_use_odbc='wxUSE_ODBC=no'
1865 fi
1866
1867else
1868
1869 LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
1870 if test "x$LINE" != x ; then
1871 eval "DEFAULT_$LINE"
1872 else
1873 no_cache=1
1874 fi
1875
1876 ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
1877
1878fi
1879
1880
1881 eval "$ac_cv_use_odbc"
1882 if test "$no_cache" != 1; then
1883 echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
1884 fi
1885
1886 if test "$wxUSE_ODBC" = yes; then
1887 echo "$ac_t""yes" 1>&6
1888 else
1889 echo "$ac_t""no" 1>&6
1890 fi
1891
1892
1893
1894
1895
1896 echo $ac_n "checking "for --enable-shared"""... $ac_c" 1>&6
0dcf9893 1897echo "configure:1898: checking "for --enable-shared"" >&5
10f2d63a
VZ
1898 no_cache=0
1899 # Check whether --enable-shared or --disable-shared was given.
1900if test "${enable_shared+set}" = set; then
1901 enableval="$enable_shared"
1902
1903 if test "$enableval" = yes; then
1904 ac_cv_use_shared='wxUSE_SHARED=yes'
1905 else
1906 ac_cv_use_shared='wxUSE_SHARED=no'
1907 fi
1908
1909else
1910
1911 LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
1912 if test "x$LINE" != x ; then
1913 eval "DEFAULT_$LINE"
1914 else
1915 no_cache=1
1916 fi
1917
1918 ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
1919
1920fi
1921
1922
1923 eval "$ac_cv_use_shared"
1924 if test "$no_cache" != 1; then
1925 echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
1926 fi
1927
1928 if test "$wxUSE_SHARED" = yes; then
1929 echo "$ac_t""yes" 1>&6
1930 else
1931 echo "$ac_t""no" 1>&6
1932 fi
1933
1934
00cf1208 1935 echo $ac_n "checking "for --enable-burnt_name"""... $ac_c" 1>&6
0dcf9893 1936echo "configure:1937: checking "for --enable-burnt_name"" >&5
00cf1208
RR
1937 no_cache=0
1938 # Check whether --enable-burnt_name or --disable-burnt_name was given.
1939if test "${enable_burnt_name+set}" = set; then
1940 enableval="$enable_burnt_name"
1941
1942 if test "$enableval" = yes; then
1943 ac_cv_use_burnt_name='wxUSE_BURNT_NAME=yes'
1944 else
1945 ac_cv_use_burnt_name='wxUSE_BURNT_NAME=no'
1946 fi
1947
1948else
1949
1950 LINE=`grep "wxUSE_BURNT_NAME" ${wx_arg_cache_file}`
1951 if test "x$LINE" != x ; then
1952 eval "DEFAULT_$LINE"
1953 else
1954 no_cache=1
1955 fi
1956
1957 ac_cv_use_burnt_name='wxUSE_BURNT_NAME='$DEFAULT_wxUSE_BURNT_NAME
1958
1959fi
1960
1961
1962 eval "$ac_cv_use_burnt_name"
1963 if test "$no_cache" != 1; then
1964 echo $ac_cv_use_burnt_name >> ${wx_arg_cache_file}.tmp
1965 fi
1966
1967 if test "$wxUSE_BURNT_NAME" = yes; then
1968 echo "$ac_t""yes" 1>&6
1969 else
1970 echo "$ac_t""no" 1>&6
1971 fi
1972
1973
10f2d63a 1974 echo $ac_n "checking "for --enable-optimise"""... $ac_c" 1>&6
0dcf9893 1975echo "configure:1976: checking "for --enable-optimise"" >&5
10f2d63a
VZ
1976 no_cache=0
1977 # Check whether --enable-optimise or --disable-optimise was given.
1978if test "${enable_optimise+set}" = set; then
1979 enableval="$enable_optimise"
1980
1981 if test "$enableval" = yes; then
1982 ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
1983 else
1984 ac_cv_use_optimise='wxUSE_OPTIMISE=no'
1985 fi
1986
1987else
1988
1989 LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
1990 if test "x$LINE" != x ; then
1991 eval "DEFAULT_$LINE"
1992 else
1993 no_cache=1
1994 fi
1995
1996 ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
1997
1998fi
1999
2000
2001 eval "$ac_cv_use_optimise"
2002 if test "$no_cache" != 1; then
2003 echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
2004 fi
2005
2006 if test "$wxUSE_OPTIMISE" = yes; then
2007 echo "$ac_t""yes" 1>&6
2008 else
2009 echo "$ac_t""no" 1>&6
2010 fi
2011
2012
2013 echo $ac_n "checking "for --enable-debug"""... $ac_c" 1>&6
0dcf9893 2014echo "configure:2015: checking "for --enable-debug"" >&5
10f2d63a
VZ
2015 no_cache=0
2016 # Check whether --enable-debug or --disable-debug was given.
2017if test "${enable_debug+set}" = set; then
2018 enableval="$enable_debug"
2019
2020 if test "$enableval" = yes; then
2021 ac_cv_use_debug='wxUSE_DEBUG=yes'
2022 else
2023 ac_cv_use_debug='wxUSE_DEBUG=no'
2024 fi
2025
2026else
2027
2028 LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
2029 if test "x$LINE" != x ; then
2030 eval "DEFAULT_$LINE"
2031 else
2032 no_cache=1
2033 fi
2034
2035 ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
2036
2037fi
2038
2039
2040 eval "$ac_cv_use_debug"
2041 if test "$no_cache" != 1; then
2042 echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
2043 fi
2044
2045 if test "$wxUSE_DEBUG" = yes; then
2046 echo "$ac_t""yes" 1>&6
2047 else
2048 echo "$ac_t""no" 1>&6
2049 fi
2050
2051
2052if test "$wxUSE_DEBUG" = "yes"; then
2053 DEFAULT_wxUSE_DEBUG_FLAG=yes
2054 DEFAULT_wxUSE_DEBUG_INFO=yes
2055elif test "$wxUSE_DEBUG" = "no"; then
2056 DEFAULT_wxUSE_DEBUG_FLAG=no
2057 DEFAULT_wxUSE_DEBUG_INFO=no
2058fi
2059
2060
2061 echo $ac_n "checking "for --enable-debug_flag"""... $ac_c" 1>&6
0dcf9893 2062echo "configure:2063: checking "for --enable-debug_flag"" >&5
10f2d63a
VZ
2063 no_cache=0
2064 # Check whether --enable-debug_flag or --disable-debug_flag was given.
2065if test "${enable_debug_flag+set}" = set; then
2066 enableval="$enable_debug_flag"
2067
2068 if test "$enableval" = yes; then
2069 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
2070 else
2071 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
2072 fi
2073
2074else
2075
2076 LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
2077 if test "x$LINE" != x ; then
2078 eval "DEFAULT_$LINE"
2079 else
2080 no_cache=1
2081 fi
2082
2083 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
2084
2085fi
2086
2087
2088 eval "$ac_cv_use_debug_flag"
2089 if test "$no_cache" != 1; then
2090 echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
2091 fi
2092
2093 if test "$wxUSE_DEBUG_FLAG" = yes; then
2094 echo "$ac_t""yes" 1>&6
2095 else
2096 echo "$ac_t""no" 1>&6
2097 fi
2098
2099
2100 echo $ac_n "checking "for --enable-debug_info"""... $ac_c" 1>&6
0dcf9893 2101echo "configure:2102: checking "for --enable-debug_info"" >&5
10f2d63a
VZ
2102 no_cache=0
2103 # Check whether --enable-debug_info or --disable-debug_info was given.
2104if test "${enable_debug_info+set}" = set; then
2105 enableval="$enable_debug_info"
2106
2107 if test "$enableval" = yes; then
2108 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
2109 else
2110 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
2111 fi
2112
2113else
2114
2115 LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
2116 if test "x$LINE" != x ; then
2117 eval "DEFAULT_$LINE"
2118 else
2119 no_cache=1
2120 fi
2121
2122 ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
2123
2124fi
2125
2126
2127 eval "$ac_cv_use_debug_info"
2128 if test "$no_cache" != 1; then
2129 echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
2130 fi
2131
2132 if test "$wxUSE_DEBUG_INFO" = yes; then
2133 echo "$ac_t""yes" 1>&6
2134 else
2135 echo "$ac_t""no" 1>&6
2136 fi
2137
2138
2139 echo $ac_n "checking "for --enable-debug_gdb"""... $ac_c" 1>&6
0dcf9893 2140echo "configure:2141: checking "for --enable-debug_gdb"" >&5
10f2d63a
VZ
2141 no_cache=0
2142 # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
2143if test "${enable_debug_gdb+set}" = set; then
2144 enableval="$enable_debug_gdb"
2145
2146 if test "$enableval" = yes; then
2147 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
2148 else
2149 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
2150 fi
2151
2152else
2153
2154 LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
2155 if test "x$LINE" != x ; then
2156 eval "DEFAULT_$LINE"
2157 else
2158 no_cache=1
2159 fi
2160
2161 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
2162
2163fi
2164
2165
2166 eval "$ac_cv_use_debug_gdb"
2167 if test "$no_cache" != 1; then
2168 echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
2169 fi
2170
2171 if test "$wxUSE_DEBUG_GDB" = yes; then
2172 echo "$ac_t""yes" 1>&6
2173 else
2174 echo "$ac_t""no" 1>&6
2175 fi
2176
2177
2178 echo $ac_n "checking "for --enable-debug_cntxt"""... $ac_c" 1>&6
0dcf9893 2179echo "configure:2180: checking "for --enable-debug_cntxt"" >&5
10f2d63a
VZ
2180 no_cache=0
2181 # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
2182if test "${enable_debug_cntxt+set}" = set; then
2183 enableval="$enable_debug_cntxt"
2184
2185 if test "$enableval" = yes; then
2186 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
2187 else
2188 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
2189 fi
2190
2191else
2192
2193 LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
2194 if test "x$LINE" != x ; then
2195 eval "DEFAULT_$LINE"
2196 else
2197 no_cache=1
2198 fi
2199
2200 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
2201
2202fi
2203
2204
2205 eval "$ac_cv_use_debug_cntxt"
2206 if test "$no_cache" != 1; then
2207 echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
2208 fi
2209
2210 if test "$wxUSE_DEBUG_CONTEXT" = yes; then
2211 echo "$ac_t""yes" 1>&6
2212 else
2213 echo "$ac_t""no" 1>&6
2214 fi
2215
2216
2217 echo $ac_n "checking "for --enable-mem_tracing"""... $ac_c" 1>&6
0dcf9893 2218echo "configure:2219: checking "for --enable-mem_tracing"" >&5
10f2d63a
VZ
2219 no_cache=0
2220 # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
2221if test "${enable_mem_tracing+set}" = set; then
2222 enableval="$enable_mem_tracing"
2223
2224 if test "$enableval" = yes; then
2225 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
2226 else
2227 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
2228 fi
2229
2230else
2231
2232 LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
2233 if test "x$LINE" != x ; then
2234 eval "DEFAULT_$LINE"
2235 else
2236 no_cache=1
2237 fi
2238
2239 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
2240
2241fi
2242
2243
2244 eval "$ac_cv_use_mem_tracing"
2245 if test "$no_cache" != 1; then
2246 echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
2247 fi
2248
2249 if test "$wxUSE_MEM_TRACING" = yes; then
2250 echo "$ac_t""yes" 1>&6
2251 else
2252 echo "$ac_t""no" 1>&6
2253 fi
2254
2255
2256 echo $ac_n "checking "for --enable-profile"""... $ac_c" 1>&6
0dcf9893 2257echo "configure:2258: checking "for --enable-profile"" >&5
10f2d63a
VZ
2258 no_cache=0
2259 # Check whether --enable-profile or --disable-profile was given.
2260if test "${enable_profile+set}" = set; then
2261 enableval="$enable_profile"
2262
2263 if test "$enableval" = yes; then
2264 ac_cv_use_profile='wxUSE_PROFILE=yes'
2265 else
2266 ac_cv_use_profile='wxUSE_PROFILE=no'
2267 fi
2268
2269else
2270
2271 LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
2272 if test "x$LINE" != x ; then
2273 eval "DEFAULT_$LINE"
2274 else
2275 no_cache=1
2276 fi
2277
2278 ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
2279
2280fi
2281
2282
2283 eval "$ac_cv_use_profile"
2284 if test "$no_cache" != 1; then
2285 echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
2286 fi
2287
2288 if test "$wxUSE_PROFILE" = yes; then
2289 echo "$ac_t""yes" 1>&6
2290 else
2291 echo "$ac_t""no" 1>&6
2292 fi
2293
2294
2295 echo $ac_n "checking "for --enable-no_rtti"""... $ac_c" 1>&6
0dcf9893 2296echo "configure:2297: checking "for --enable-no_rtti"" >&5
10f2d63a
VZ
2297 no_cache=0
2298 # Check whether --enable-no_rtti or --disable-no_rtti was given.
2299if test "${enable_no_rtti+set}" = set; then
2300 enableval="$enable_no_rtti"
2301
2302 if test "$enableval" = yes; then
2303 ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
2304 else
2305 ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
2306 fi
2307
2308else
2309
2310 LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
2311 if test "x$LINE" != x ; then
2312 eval "DEFAULT_$LINE"
2313 else
2314 no_cache=1
2315 fi
2316
2317 ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
2318
2319fi
2320
2321
2322 eval "$ac_cv_use_no_rtti"
2323 if test "$no_cache" != 1; then
2324 echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
2325 fi
2326
2327 if test "$wxUSE_NO_RTTI" = yes; then
2328 echo "$ac_t""yes" 1>&6
2329 else
2330 echo "$ac_t""no" 1>&6
2331 fi
2332
2333
2334 echo $ac_n "checking "for --enable-no_exceptions"""... $ac_c" 1>&6
0dcf9893 2335echo "configure:2336: checking "for --enable-no_exceptions"" >&5
10f2d63a
VZ
2336 no_cache=0
2337 # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
2338if test "${enable_no_exceptions+set}" = set; then
2339 enableval="$enable_no_exceptions"
2340
2341 if test "$enableval" = yes; then
2342 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
2343 else
2344 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
2345 fi
2346
2347else
2348
2349 LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
2350 if test "x$LINE" != x ; then
2351 eval "DEFAULT_$LINE"
2352 else
2353 no_cache=1
2354 fi
2355
2356 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
2357
2358fi
2359
2360
2361 eval "$ac_cv_use_no_exceptions"
2362 if test "$no_cache" != 1; then
2363 echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
2364 fi
2365
2366 if test "$wxUSE_NO_EXCEPTIONS" = yes; then
2367 echo "$ac_t""yes" 1>&6
2368 else
2369 echo "$ac_t""no" 1>&6
2370 fi
2371
2372
2373 echo $ac_n "checking "for --enable-permissive"""... $ac_c" 1>&6
0dcf9893 2374echo "configure:2375: checking "for --enable-permissive"" >&5
10f2d63a
VZ
2375 no_cache=0
2376 # Check whether --enable-permissive or --disable-permissive was given.
2377if test "${enable_permissive+set}" = set; then
2378 enableval="$enable_permissive"
2379
2380 if test "$enableval" = yes; then
2381 ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
2382 else
2383 ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
2384 fi
2385
2386else
2387
2388 LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
2389 if test "x$LINE" != x ; then
2390 eval "DEFAULT_$LINE"
2391 else
2392 no_cache=1
2393 fi
2394
2395 ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
2396
2397fi
2398
2399
2400 eval "$ac_cv_use_permissive"
2401 if test "$no_cache" != 1; then
2402 echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
2403 fi
2404
2405 if test "$wxUSE_PERMISSIVE" = yes; then
2406 echo "$ac_t""yes" 1>&6
2407 else
2408 echo "$ac_t""no" 1>&6
2409 fi
2410
2411
2412 echo $ac_n "checking "for --enable-no_deps"""... $ac_c" 1>&6
0dcf9893 2413echo "configure:2414: checking "for --enable-no_deps"" >&5
10f2d63a
VZ
2414 no_cache=0
2415 # Check whether --enable-no_deps or --disable-no_deps was given.
2416if test "${enable_no_deps+set}" = set; then
2417 enableval="$enable_no_deps"
2418
2419 if test "$enableval" = yes; then
2420 ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
2421 else
2422 ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
2423 fi
2424
2425else
2426
2427 LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
2428 if test "x$LINE" != x ; then
2429 eval "DEFAULT_$LINE"
2430 else
2431 no_cache=1
2432 fi
2433
2434 ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
2435
2436fi
2437
2438
2439 eval "$ac_cv_use_no_deps"
2440 if test "$no_cache" != 1; then
2441 echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
2442 fi
2443
2444 if test "$wxUSE_NO_DEPS" = yes; then
2445 echo "$ac_t""yes" 1>&6
2446 else
2447 echo "$ac_t""no" 1>&6
2448 fi
2449
2450
2451
2452
2453 echo $ac_n "checking "for --enable-intl"""... $ac_c" 1>&6
0dcf9893 2454echo "configure:2455: checking "for --enable-intl"" >&5
10f2d63a
VZ
2455 no_cache=0
2456 # Check whether --enable-intl or --disable-intl was given.
2457if test "${enable_intl+set}" = set; then
2458 enableval="$enable_intl"
2459
2460 if test "$enableval" = yes; then
2461 ac_cv_use_intl='wxUSE_INTL=yes'
2462 else
2463 ac_cv_use_intl='wxUSE_INTL=no'
2464 fi
2465
2466else
2467
2468 LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
2469 if test "x$LINE" != x ; then
2470 eval "DEFAULT_$LINE"
2471 else
2472 no_cache=1
2473 fi
2474
2475 ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
2476
2477fi
2478
2479
2480 eval "$ac_cv_use_intl"
2481 if test "$no_cache" != 1; then
2482 echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
2483 fi
2484
2485 if test "$wxUSE_INTL" = yes; then
2486 echo "$ac_t""yes" 1>&6
2487 else
2488 echo "$ac_t""no" 1>&6
2489 fi
2490
2491
2492 echo $ac_n "checking "for --enable-config"""... $ac_c" 1>&6
0dcf9893 2493echo "configure:2494: checking "for --enable-config"" >&5
10f2d63a
VZ
2494 no_cache=0
2495 # Check whether --enable-config or --disable-config was given.
2496if test "${enable_config+set}" = set; then
2497 enableval="$enable_config"
2498
2499 if test "$enableval" = yes; then
2500 ac_cv_use_config='wxUSE_CONFIG=yes'
2501 else
2502 ac_cv_use_config='wxUSE_CONFIG=no'
2503 fi
2504
2505else
2506
2507 LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
2508 if test "x$LINE" != x ; then
2509 eval "DEFAULT_$LINE"
2510 else
2511 no_cache=1
2512 fi
2513
2514 ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
2515
2516fi
2517
2518
2519 eval "$ac_cv_use_config"
2520 if test "$no_cache" != 1; then
2521 echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
2522 fi
2523
2524 if test "$wxUSE_CONFIG" = yes; then
2525 echo "$ac_t""yes" 1>&6
2526 else
2527 echo "$ac_t""no" 1>&6
2528 fi
2529
2530
b12915c1
VZ
2531if test "$wxUSE_GUI" = "yes"; then
2532
10f2d63a 2533 echo $ac_n "checking "for --enable-sockets"""... $ac_c" 1>&6
0dcf9893 2534echo "configure:2535: checking "for --enable-sockets"" >&5
10f2d63a
VZ
2535 no_cache=0
2536 # Check whether --enable-sockets or --disable-sockets was given.
2537if test "${enable_sockets+set}" = set; then
2538 enableval="$enable_sockets"
2539
2540 if test "$enableval" = yes; then
2541 ac_cv_use_sockets='wxUSE_SOCKETS=yes'
2542 else
2543 ac_cv_use_sockets='wxUSE_SOCKETS=no'
2544 fi
2545
2546else
2547
2548 LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
2549 if test "x$LINE" != x ; then
2550 eval "DEFAULT_$LINE"
2551 else
2552 no_cache=1
2553 fi
2554
2555 ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
2556
2557fi
2558
2559
2560 eval "$ac_cv_use_sockets"
2561 if test "$no_cache" != 1; then
2562 echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
2563 fi
2564
2565 if test "$wxUSE_SOCKETS" = yes; then
2566 echo "$ac_t""yes" 1>&6
2567 else
2568 echo "$ac_t""no" 1>&6
2569 fi
2570
b12915c1
VZ
2571else
2572wxUSE_SOCKETS=no
2573fi
2574
10f2d63a
VZ
2575
2576 echo $ac_n "checking "for --enable-dialupman"""... $ac_c" 1>&6
0dcf9893 2577echo "configure:2578: checking "for --enable-dialupman"" >&5
10f2d63a
VZ
2578 no_cache=0
2579 # Check whether --enable-dialupman or --disable-dialupman was given.
2580if test "${enable_dialupman+set}" = set; then
2581 enableval="$enable_dialupman"
2582
2583 if test "$enableval" = yes; then
2584 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
2585 else
2586 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
2587 fi
2588
2589else
2590
2591 LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
2592 if test "x$LINE" != x ; then
2593 eval "DEFAULT_$LINE"
2594 else
2595 no_cache=1
2596 fi
2597
2598 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
2599
2600fi
2601
2602
2603 eval "$ac_cv_use_dialupman"
2604 if test "$no_cache" != 1; then
2605 echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
2606 fi
2607
2608 if test "$wxUSE_DIALUP_MANAGER" = yes; then
2609 echo "$ac_t""yes" 1>&6
2610 else
2611 echo "$ac_t""no" 1>&6
2612 fi
2613
2614
2615 echo $ac_n "checking "for --enable-ipc"""... $ac_c" 1>&6
0dcf9893 2616echo "configure:2617: checking "for --enable-ipc"" >&5
10f2d63a
VZ
2617 no_cache=0
2618 # Check whether --enable-ipc or --disable-ipc was given.
2619if test "${enable_ipc+set}" = set; then
2620 enableval="$enable_ipc"
2621
2622 if test "$enableval" = yes; then
2623 ac_cv_use_ipc='wxUSE_IPC=yes'
2624 else
2625 ac_cv_use_ipc='wxUSE_IPC=no'
2626 fi
2627
2628else
2629
2630 LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
2631 if test "x$LINE" != x ; then
2632 eval "DEFAULT_$LINE"
2633 else
2634 no_cache=1
2635 fi
2636
2637 ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
2638
2639fi
2640
2641
2642 eval "$ac_cv_use_ipc"
2643 if test "$no_cache" != 1; then
2644 echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
2645 fi
2646
2647 if test "$wxUSE_IPC" = yes; then
2648 echo "$ac_t""yes" 1>&6
2649 else
2650 echo "$ac_t""no" 1>&6
2651 fi
2652
2653
2654 echo $ac_n "checking "for --enable-apple_ieee"""... $ac_c" 1>&6
0dcf9893 2655echo "configure:2656: checking "for --enable-apple_ieee"" >&5
10f2d63a
VZ
2656 no_cache=0
2657 # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
2658if test "${enable_apple_ieee+set}" = set; then
2659 enableval="$enable_apple_ieee"
2660
2661 if test "$enableval" = yes; then
2662 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
2663 else
2664 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
2665 fi
2666
2667else
2668
2669 LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
2670 if test "x$LINE" != x ; then
2671 eval "DEFAULT_$LINE"
2672 else
2673 no_cache=1
2674 fi
2675
2676 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
2677
2678fi
2679
2680
2681 eval "$ac_cv_use_apple_ieee"
2682 if test "$no_cache" != 1; then
2683 echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
2684 fi
2685
2686 if test "$wxUSE_APPLE_IEEE" = yes; then
2687 echo "$ac_t""yes" 1>&6
2688 else
2689 echo "$ac_t""no" 1>&6
2690 fi
2691
2692
2693 echo $ac_n "checking "for --enable-timedate"""... $ac_c" 1>&6
0dcf9893 2694echo "configure:2695: checking "for --enable-timedate"" >&5
10f2d63a
VZ
2695 no_cache=0
2696 # Check whether --enable-timedate or --disable-timedate was given.
2697if test "${enable_timedate+set}" = set; then
2698 enableval="$enable_timedate"
2699
2700 if test "$enableval" = yes; then
2701 ac_cv_use_timedate='wxUSE_TIMEDATE=yes'
2702 else
2703 ac_cv_use_timedate='wxUSE_TIMEDATE=no'
2704 fi
2705
2706else
2707
2708 LINE=`grep "wxUSE_TIMEDATE" ${wx_arg_cache_file}`
2709 if test "x$LINE" != x ; then
2710 eval "DEFAULT_$LINE"
2711 else
2712 no_cache=1
2713 fi
2714
2715 ac_cv_use_timedate='wxUSE_TIMEDATE='$DEFAULT_wxUSE_TIMEDATE
2716
2717fi
2718
2719
2720 eval "$ac_cv_use_timedate"
2721 if test "$no_cache" != 1; then
2722 echo $ac_cv_use_timedate >> ${wx_arg_cache_file}.tmp
2723 fi
2724
2725 if test "$wxUSE_TIMEDATE" = yes; then
2726 echo "$ac_t""yes" 1>&6
2727 else
2728 echo "$ac_t""no" 1>&6
2729 fi
2730
2731
2732 echo $ac_n "checking "for --enable-wave"""... $ac_c" 1>&6
0dcf9893 2733echo "configure:2734: checking "for --enable-wave"" >&5
10f2d63a
VZ
2734 no_cache=0
2735 # Check whether --enable-wave or --disable-wave was given.
2736if test "${enable_wave+set}" = set; then
2737 enableval="$enable_wave"
2738
2739 if test "$enableval" = yes; then
2740 ac_cv_use_wave='wxUSE_WAVE=yes'
2741 else
2742 ac_cv_use_wave='wxUSE_WAVE=no'
2743 fi
2744
2745else
2746
2747 LINE=`grep "wxUSE_WAVE" ${wx_arg_cache_file}`
2748 if test "x$LINE" != x ; then
2749 eval "DEFAULT_$LINE"
2750 else
2751 no_cache=1
2752 fi
2753
2754 ac_cv_use_wave='wxUSE_WAVE='$DEFAULT_wxUSE_WAVE
2755
2756fi
2757
2758
2759 eval "$ac_cv_use_wave"
2760 if test "$no_cache" != 1; then
2761 echo $ac_cv_use_wave >> ${wx_arg_cache_file}.tmp
2762 fi
2763
2764 if test "$wxUSE_WAVE" = yes; then
2765 echo "$ac_t""yes" 1>&6
2766 else
2767 echo "$ac_t""no" 1>&6
2768 fi
2769
2770
2771 echo $ac_n "checking "for --enable-fraction"""... $ac_c" 1>&6
0dcf9893 2772echo "configure:2773: checking "for --enable-fraction"" >&5
10f2d63a
VZ
2773 no_cache=0
2774 # Check whether --enable-fraction or --disable-fraction was given.
2775if test "${enable_fraction+set}" = set; then
2776 enableval="$enable_fraction"
2777
2778 if test "$enableval" = yes; then
2779 ac_cv_use_fraction='wxUSE_FRACTION=yes'
2780 else
2781 ac_cv_use_fraction='wxUSE_FRACTION=no'
2782 fi
2783
2784else
2785
2786 LINE=`grep "wxUSE_FRACTION" ${wx_arg_cache_file}`
2787 if test "x$LINE" != x ; then
2788 eval "DEFAULT_$LINE"
2789 else
2790 no_cache=1
2791 fi
2792
2793 ac_cv_use_fraction='wxUSE_FRACTION='$DEFAULT_wxUSE_FRACTION
2794
2795fi
2796
2797
2798 eval "$ac_cv_use_fraction"
2799 if test "$no_cache" != 1; then
2800 echo $ac_cv_use_fraction >> ${wx_arg_cache_file}.tmp
2801 fi
2802
2803 if test "$wxUSE_FRACTION" = yes; then
2804 echo "$ac_t""yes" 1>&6
2805 else
2806 echo "$ac_t""no" 1>&6
2807 fi
2808
2809
2810 echo $ac_n "checking "for --enable-dynlib"""... $ac_c" 1>&6
0dcf9893 2811echo "configure:2812: checking "for --enable-dynlib"" >&5
10f2d63a
VZ
2812 no_cache=0
2813 # Check whether --enable-dynlib or --disable-dynlib was given.
2814if test "${enable_dynlib+set}" = set; then
2815 enableval="$enable_dynlib"
2816
2817 if test "$enableval" = yes; then
2818 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
2819 else
2820 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
2821 fi
2822
2823else
2824
2825 LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
2826 if test "x$LINE" != x ; then
2827 eval "DEFAULT_$LINE"
2828 else
2829 no_cache=1
2830 fi
2831
2832 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
2833
2834fi
2835
2836
2837 eval "$ac_cv_use_dynlib"
2838 if test "$no_cache" != 1; then
2839 echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
2840 fi
2841
2842 if test "$wxUSE_DYNLIB_CLASS" = yes; then
2843 echo "$ac_t""yes" 1>&6
2844 else
2845 echo "$ac_t""no" 1>&6
2846 fi
2847
2848
2849 echo $ac_n "checking "for --enable-longlong"""... $ac_c" 1>&6
0dcf9893 2850echo "configure:2851: checking "for --enable-longlong"" >&5
10f2d63a
VZ
2851 no_cache=0
2852 # Check whether --enable-longlong or --disable-longlong was given.
2853if test "${enable_longlong+set}" = set; then
2854 enableval="$enable_longlong"
2855
2856 if test "$enableval" = yes; then
2857 ac_cv_use_longlong='wxUSE_LONGLONG=yes'
2858 else
2859 ac_cv_use_longlong='wxUSE_LONGLONG=no'
2860 fi
2861
2862else
2863
2864 LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
2865 if test "x$LINE" != x ; then
2866 eval "DEFAULT_$LINE"
2867 else
2868 no_cache=1
2869 fi
2870
2871 ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
2872
2873fi
2874
2875
2876 eval "$ac_cv_use_longlong"
2877 if test "$no_cache" != 1; then
2878 echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
2879 fi
2880
2881 if test "$wxUSE_LONGLONG" = yes; then
2882 echo "$ac_t""yes" 1>&6
2883 else
2884 echo "$ac_t""no" 1>&6
2885 fi
2886
2887
2888 echo $ac_n "checking "for --enable-log"""... $ac_c" 1>&6
0dcf9893 2889echo "configure:2890: checking "for --enable-log"" >&5
10f2d63a
VZ
2890 no_cache=0
2891 # Check whether --enable-log or --disable-log was given.
2892if test "${enable_log+set}" = set; then
2893 enableval="$enable_log"
2894
2895 if test "$enableval" = yes; then
2896 ac_cv_use_log='wxUSE_LOG=yes'
2897 else
2898 ac_cv_use_log='wxUSE_LOG=no'
2899 fi
2900
2901else
2902
2903 LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
2904 if test "x$LINE" != x ; then
2905 eval "DEFAULT_$LINE"
2906 else
2907 no_cache=1
2908 fi
2909
2910 ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
2911
2912fi
2913
2914
2915 eval "$ac_cv_use_log"
2916 if test "$no_cache" != 1; then
2917 echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
2918 fi
2919
2920 if test "$wxUSE_LOG" = yes; then
2921 echo "$ac_t""yes" 1>&6
2922 else
2923 echo "$ac_t""no" 1>&6
2924 fi
2925
2926
2927 echo $ac_n "checking "for --enable-streams"""... $ac_c" 1>&6
0dcf9893 2928echo "configure:2929: checking "for --enable-streams"" >&5
10f2d63a
VZ
2929 no_cache=0
2930 # Check whether --enable-streams or --disable-streams was given.
2931if test "${enable_streams+set}" = set; then
2932 enableval="$enable_streams"
2933
2934 if test "$enableval" = yes; then
2935 ac_cv_use_streams='wxUSE_STREAMS=yes'
2936 else
2937 ac_cv_use_streams='wxUSE_STREAMS=no'
2938 fi
2939
2940else
2941
2942 LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
2943 if test "x$LINE" != x ; then
2944 eval "DEFAULT_$LINE"
2945 else
2946 no_cache=1
2947 fi
2948
2949 ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
2950
2951fi
2952
2953
2954 eval "$ac_cv_use_streams"
2955 if test "$no_cache" != 1; then
2956 echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
2957 fi
2958
2959 if test "$wxUSE_STREAMS" = yes; then
2960 echo "$ac_t""yes" 1>&6
2961 else
2962 echo "$ac_t""no" 1>&6
2963 fi
2964
2965
2966 echo $ac_n "checking "for --enable-file"""... $ac_c" 1>&6
0dcf9893 2967echo "configure:2968: checking "for --enable-file"" >&5
10f2d63a
VZ
2968 no_cache=0
2969 # Check whether --enable-file or --disable-file was given.
2970if test "${enable_file+set}" = set; then
2971 enableval="$enable_file"
2972
2973 if test "$enableval" = yes; then
2974 ac_cv_use_file='wxUSE_FILE=yes'
2975 else
2976 ac_cv_use_file='wxUSE_FILE=no'
2977 fi
2978
2979else
2980
2981 LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
2982 if test "x$LINE" != x ; then
2983 eval "DEFAULT_$LINE"
2984 else
2985 no_cache=1
2986 fi
2987
2988 ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
2989
2990fi
2991
2992
2993 eval "$ac_cv_use_file"
2994 if test "$no_cache" != 1; then
2995 echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
2996 fi
2997
2998 if test "$wxUSE_FILE" = yes; then
2999 echo "$ac_t""yes" 1>&6
3000 else
3001 echo "$ac_t""no" 1>&6
3002 fi
3003
3004
3005 echo $ac_n "checking "for --enable-textfile"""... $ac_c" 1>&6
0dcf9893 3006echo "configure:3007: checking "for --enable-textfile"" >&5
10f2d63a
VZ
3007 no_cache=0
3008 # Check whether --enable-textfile or --disable-textfile was given.
3009if test "${enable_textfile+set}" = set; then
3010 enableval="$enable_textfile"
3011
3012 if test "$enableval" = yes; then
3013 ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
3014 else
3015 ac_cv_use_textfile='wxUSE_TEXTFILE=no'
3016 fi
3017
3018else
3019
3020 LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
3021 if test "x$LINE" != x ; then
3022 eval "DEFAULT_$LINE"
3023 else
3024 no_cache=1
3025 fi
3026
3027 ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
3028
3029fi
3030
3031
3032 eval "$ac_cv_use_textfile"
3033 if test "$no_cache" != 1; then
3034 echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
3035 fi
3036
3037 if test "$wxUSE_TEXTFILE" = yes; then
3038 echo "$ac_t""yes" 1>&6
3039 else
3040 echo "$ac_t""no" 1>&6
3041 fi
3042
3043
3044 echo $ac_n "checking "for --enable-unicode"""... $ac_c" 1>&6
0dcf9893 3045echo "configure:3046: checking "for --enable-unicode"" >&5
10f2d63a
VZ
3046 no_cache=0
3047 # Check whether --enable-unicode or --disable-unicode was given.
3048if test "${enable_unicode+set}" = set; then
3049 enableval="$enable_unicode"
3050
3051 if test "$enableval" = yes; then
3052 ac_cv_use_unicode='wxUSE_UNICODE=yes'
3053 else
3054 ac_cv_use_unicode='wxUSE_UNICODE=no'
3055 fi
3056
3057else
3058
3059 LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
3060 if test "x$LINE" != x ; then
3061 eval "DEFAULT_$LINE"
3062 else
3063 no_cache=1
3064 fi
3065
3066 ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
3067
3068fi
3069
3070
3071 eval "$ac_cv_use_unicode"
3072 if test "$no_cache" != 1; then
3073 echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
3074 fi
3075
3076 if test "$wxUSE_UNICODE" = yes; then
3077 echo "$ac_t""yes" 1>&6
3078 else
3079 echo "$ac_t""no" 1>&6
3080 fi
3081
3082
3083 echo $ac_n "checking "for --enable-wcsrtombs"""... $ac_c" 1>&6
0dcf9893 3084echo "configure:3085: checking "for --enable-wcsrtombs"" >&5
10f2d63a
VZ
3085 no_cache=0
3086 # Check whether --enable-wcsrtombs or --disable-wcsrtombs was given.
3087if test "${enable_wcsrtombs+set}" = set; then
3088 enableval="$enable_wcsrtombs"
3089
3090 if test "$enableval" = yes; then
3091 ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS=yes'
3092 else
3093 ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS=no'
3094 fi
3095
3096else
3097
3098 LINE=`grep "wxUSE_WCSRTOMBS" ${wx_arg_cache_file}`
3099 if test "x$LINE" != x ; then
3100 eval "DEFAULT_$LINE"
3101 else
3102 no_cache=1
3103 fi
3104
3105 ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS='$DEFAULT_wxUSE_WCSRTOMBS
3106
3107fi
3108
3109
3110 eval "$ac_cv_use_wcsrtombs"
3111 if test "$no_cache" != 1; then
3112 echo $ac_cv_use_wcsrtombs >> ${wx_arg_cache_file}.tmp
3113 fi
3114
3115 if test "$wxUSE_WCSRTOMBS" = yes; then
3116 echo "$ac_t""yes" 1>&6
3117 else
3118 echo "$ac_t""no" 1>&6
3119 fi
3120
3121
3122 echo $ac_n "checking "for --enable-wxprintfv"""... $ac_c" 1>&6
0dcf9893 3123echo "configure:3124: checking "for --enable-wxprintfv"" >&5
10f2d63a
VZ
3124 no_cache=0
3125 # Check whether --enable-wxprintfv or --disable-wxprintfv was given.
3126if test "${enable_wxprintfv+set}" = set; then
3127 enableval="$enable_wxprintfv"
3128
3129 if test "$enableval" = yes; then
3130 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes'
3131 else
3132 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no'
3133 fi
3134
3135else
3136
3137 LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}`
3138 if test "x$LINE" != x ; then
3139 eval "DEFAULT_$LINE"
3140 else
3141 no_cache=1
3142 fi
3143
3144 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF
3145
3146fi
3147
3148
3149 eval "$ac_cv_use_wxprintfv"
3150 if test "$no_cache" != 1; then
3151 echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp
3152 fi
3153
3154 if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then
3155 echo "$ac_t""yes" 1>&6
3156 else
3157 echo "$ac_t""no" 1>&6
3158 fi
3159
3160
3161 echo $ac_n "checking "for --enable-joystick"""... $ac_c" 1>&6
0dcf9893 3162echo "configure:3163: checking "for --enable-joystick"" >&5
10f2d63a
VZ
3163 no_cache=0
3164 # Check whether --enable-joystick or --disable-joystick was given.
3165if test "${enable_joystick+set}" = set; then
3166 enableval="$enable_joystick"
3167
3168 if test "$enableval" = yes; then
3169 ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
3170 else
3171 ac_cv_use_joystick='wxUSE_JOYSTICK=no'
3172 fi
3173
3174else
3175
3176 LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
3177 if test "x$LINE" != x ; then
3178 eval "DEFAULT_$LINE"
3179 else
3180 no_cache=1
3181 fi
3182
3183 ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
3184
3185fi
3186
3187
3188 eval "$ac_cv_use_joystick"
3189 if test "$no_cache" != 1; then
3190 echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
3191 fi
3192
3193 if test "$wxUSE_JOYSTICK" = yes; then
3194 echo "$ac_t""yes" 1>&6
3195 else
3196 echo "$ac_t""no" 1>&6
3197 fi
3198
3199
3200 echo $ac_n "checking "for --enable-std_iostreams"""... $ac_c" 1>&6
0dcf9893 3201echo "configure:3202: checking "for --enable-std_iostreams"" >&5
10f2d63a
VZ
3202 no_cache=0
3203 # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
3204if test "${enable_std_iostreams+set}" = set; then
3205 enableval="$enable_std_iostreams"
3206
3207 if test "$enableval" = yes; then
3208 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
3209 else
3210 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
3211 fi
3212
3213else
3214
3215 LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
3216 if test "x$LINE" != x ; then
3217 eval "DEFAULT_$LINE"
3218 else
3219 no_cache=1
3220 fi
3221
3222 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
3223
3224fi
3225
3226
3227 eval "$ac_cv_use_std_iostreams"
3228 if test "$no_cache" != 1; then
3229 echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
3230 fi
3231
3232 if test "$wxUSE_STD_IOSTREAM" = yes; then
3233 echo "$ac_t""yes" 1>&6
3234 else
3235 echo "$ac_t""no" 1>&6
3236 fi
3237
3238
24528b0c 3239 echo $ac_n "checking "for --enable-filesystem"""... $ac_c" 1>&6
0dcf9893 3240echo "configure:3241: checking "for --enable-filesystem"" >&5
24528b0c
VS
3241 no_cache=0
3242 # Check whether --enable-filesystem or --disable-filesystem was given.
3243if test "${enable_filesystem+set}" = set; then
3244 enableval="$enable_filesystem"
3245
3246 if test "$enableval" = yes; then
3247 ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
3248 else
3249 ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
3250 fi
3251
3252else
3253
3254 LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}`
3255 if test "x$LINE" != x ; then
3256 eval "DEFAULT_$LINE"
3257 else
3258 no_cache=1
3259 fi
3260
3261 ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
3262
3263fi
3264
3265
3266 eval "$ac_cv_use_filesystem"
3267 if test "$no_cache" != 1; then
3268 echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
3269 fi
3270
3271 if test "$wxUSE_FILESYSTEM" = yes; then
3272 echo "$ac_t""yes" 1>&6
3273 else
3274 echo "$ac_t""no" 1>&6
3275 fi
3276
3277
10f2d63a 3278 echo $ac_n "checking "for --enable-fs_inet"""... $ac_c" 1>&6
0dcf9893 3279echo "configure:3280: checking "for --enable-fs_inet"" >&5
10f2d63a
VZ
3280 no_cache=0
3281 # Check whether --enable-fs_inet or --disable-fs_inet was given.
3282if test "${enable_fs_inet+set}" = set; then
3283 enableval="$enable_fs_inet"
3284
3285 if test "$enableval" = yes; then
3286 ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
3287 else
3288 ac_cv_use_fs_inet='wxUSE_FS_INET=no'
3289 fi
3290
3291else
3292
3293 LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
3294 if test "x$LINE" != x ; then
3295 eval "DEFAULT_$LINE"
3296 else
3297 no_cache=1
3298 fi
3299
3300 ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
3301
3302fi
3303
3304
3305 eval "$ac_cv_use_fs_inet"
3306 if test "$no_cache" != 1; then
3307 echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
3308 fi
3309
3310 if test "$wxUSE_FS_INET" = yes; then
3311 echo "$ac_t""yes" 1>&6
3312 else
3313 echo "$ac_t""no" 1>&6
3314 fi
3315
3316
3317 echo $ac_n "checking "for --enable-fs_zip"""... $ac_c" 1>&6
0dcf9893 3318echo "configure:3319: checking "for --enable-fs_zip"" >&5
10f2d63a
VZ
3319 no_cache=0
3320 # Check whether --enable-fs_zip or --disable-fs_zip was given.
3321if test "${enable_fs_zip+set}" = set; then
3322 enableval="$enable_fs_zip"
3323
3324 if test "$enableval" = yes; then
3325 ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
3326 else
3327 ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
3328 fi
3329
3330else
3331
3332 LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
3333 if test "x$LINE" != x ; then
3334 eval "DEFAULT_$LINE"
3335 else
3336 no_cache=1
3337 fi
3338
3339 ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
3340
3341fi
3342
3343
3344 eval "$ac_cv_use_fs_zip"
3345 if test "$no_cache" != 1; then
3346 echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
3347 fi
3348
3349 if test "$wxUSE_FS_ZIP" = yes; then
3350 echo "$ac_t""yes" 1>&6
3351 else
3352 echo "$ac_t""no" 1>&6
3353 fi
3354
3355
3356 echo $ac_n "checking "for --enable-zipstream"""... $ac_c" 1>&6
0dcf9893 3357echo "configure:3358: checking "for --enable-zipstream"" >&5
10f2d63a
VZ
3358 no_cache=0
3359 # Check whether --enable-zipstream or --disable-zipstream was given.
3360if test "${enable_zipstream+set}" = set; then
3361 enableval="$enable_zipstream"
3362
3363 if test "$enableval" = yes; then
3364 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
3365 else
3366 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
3367 fi
3368
3369else
3370
3371 LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
3372 if test "x$LINE" != x ; then
3373 eval "DEFAULT_$LINE"
3374 else
3375 no_cache=1
3376 fi
3377
3378 ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
3379
3380fi
3381
3382
3383 eval "$ac_cv_use_zipstream"
3384 if test "$no_cache" != 1; then
3385 echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
3386 fi
3387
3388 if test "$wxUSE_ZIPSTREAM" = yes; then
3389 echo "$ac_t""yes" 1>&6
3390 else
3391 echo "$ac_t""no" 1>&6
3392 fi
3393
3394
3395
3396
3397 echo $ac_n "checking "for --enable-threads"""... $ac_c" 1>&6
0dcf9893 3398echo "configure:3399: checking "for --enable-threads"" >&5
10f2d63a
VZ
3399 no_cache=0
3400 # Check whether --enable-threads or --disable-threads was given.
3401if test "${enable_threads+set}" = set; then
3402 enableval="$enable_threads"
3403
3404 if test "$enableval" = yes; then
3405 ac_cv_use_threads='wxUSE_THREADS=yes'
3406 else
3407 ac_cv_use_threads='wxUSE_THREADS=no'
3408 fi
3409
3410else
3411
3412 LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
3413 if test "x$LINE" != x ; then
3414 eval "DEFAULT_$LINE"
3415 else
3416 no_cache=1
3417 fi
3418
3419 ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
3420
3421fi
3422
3423
3424 eval "$ac_cv_use_threads"
3425 if test "$no_cache" != 1; then
3426 echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
3427 fi
3428
3429 if test "$wxUSE_THREADS" = yes; then
3430 echo "$ac_t""yes" 1>&6
3431 else
3432 echo "$ac_t""no" 1>&6
3433 fi
3434
3435
3436 echo $ac_n "checking "for --enable-serial"""... $ac_c" 1>&6
0dcf9893 3437echo "configure:3438: checking "for --enable-serial"" >&5
10f2d63a
VZ
3438 no_cache=0
3439 # Check whether --enable-serial or --disable-serial was given.
3440if test "${enable_serial+set}" = set; then
3441 enableval="$enable_serial"
3442
3443 if test "$enableval" = yes; then
3444 ac_cv_use_serial='wxUSE_SERIAL=yes'
3445 else
3446 ac_cv_use_serial='wxUSE_SERIAL=no'
3447 fi
3448
3449else
3450
3451 LINE=`grep "wxUSE_SERIAL" ${wx_arg_cache_file}`
3452 if test "x$LINE" != x ; then
3453 eval "DEFAULT_$LINE"
3454 else
3455 no_cache=1
3456 fi
3457
3458 ac_cv_use_serial='wxUSE_SERIAL='$DEFAULT_wxUSE_SERIAL
3459
3460fi
3461
3462
3463 eval "$ac_cv_use_serial"
3464 if test "$no_cache" != 1; then
3465 echo $ac_cv_use_serial >> ${wx_arg_cache_file}.tmp
3466 fi
3467
3468 if test "$wxUSE_SERIAL" = yes; then
3469 echo "$ac_t""yes" 1>&6
3470 else
3471 echo "$ac_t""no" 1>&6
3472 fi
3473
3474
b12915c1
VZ
3475if test "$wxUSE_GUI" = "yes"; then
3476
10f2d63a
VZ
3477
3478
3479 echo $ac_n "checking "for --enable-docview"""... $ac_c" 1>&6
0dcf9893 3480echo "configure:3481: checking "for --enable-docview"" >&5
10f2d63a
VZ
3481 no_cache=0
3482 # Check whether --enable-docview or --disable-docview was given.
3483if test "${enable_docview+set}" = set; then
3484 enableval="$enable_docview"
3485
3486 if test "$enableval" = yes; then
3487 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
3488 else
3489 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
3490 fi
3491
3492else
3493
3494 LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
3495 if test "x$LINE" != x ; then
3496 eval "DEFAULT_$LINE"
3497 else
3498 no_cache=1
3499 fi
3500
3501 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
3502
3503fi
3504
3505
3506 eval "$ac_cv_use_docview"
3507 if test "$no_cache" != 1; then
3508 echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
3509 fi
3510
3511 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
3512 echo "$ac_t""yes" 1>&6
3513 else
3514 echo "$ac_t""no" 1>&6
3515 fi
3516
3517
3518 echo $ac_n "checking "for --enable-help"""... $ac_c" 1>&6
0dcf9893 3519echo "configure:3520: checking "for --enable-help"" >&5
10f2d63a
VZ
3520 no_cache=0
3521 # Check whether --enable-help or --disable-help was given.
3522if test "${enable_help+set}" = set; then
3523 enableval="$enable_help"
3524
3525 if test "$enableval" = yes; then
3526 ac_cv_use_help='wxUSE_HELP=yes'
3527 else
3528 ac_cv_use_help='wxUSE_HELP=no'
3529 fi
3530
3531else
3532
3533 LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
3534 if test "x$LINE" != x ; then
3535 eval "DEFAULT_$LINE"
3536 else
3537 no_cache=1
3538 fi
3539
3540 ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
3541
3542fi
3543
3544
3545 eval "$ac_cv_use_help"
3546 if test "$no_cache" != 1; then
3547 echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
3548 fi
3549
3550 if test "$wxUSE_HELP" = yes; then
3551 echo "$ac_t""yes" 1>&6
3552 else
3553 echo "$ac_t""no" 1>&6
3554 fi
3555
3556
3557 echo $ac_n "checking "for --enable-constraints"""... $ac_c" 1>&6
0dcf9893 3558echo "configure:3559: checking "for --enable-constraints"" >&5
10f2d63a
VZ
3559 no_cache=0
3560 # Check whether --enable-constraints or --disable-constraints was given.
3561if test "${enable_constraints+set}" = set; then
3562 enableval="$enable_constraints"
3563
3564 if test "$enableval" = yes; then
3565 ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
3566 else
3567 ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
3568 fi
3569
3570else
3571
3572 LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
3573 if test "x$LINE" != x ; then
3574 eval "DEFAULT_$LINE"
3575 else
3576 no_cache=1
3577 fi
3578
3579 ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
3580
3581fi
3582
3583
3584 eval "$ac_cv_use_constraints"
3585 if test "$no_cache" != 1; then
3586 echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
3587 fi
3588
3589 if test "$wxUSE_CONSTRAINTS" = yes; then
3590 echo "$ac_t""yes" 1>&6
3591 else
3592 echo "$ac_t""no" 1>&6
3593 fi
3594
3595
3596 echo $ac_n "checking "for --enable-printarch"""... $ac_c" 1>&6
0dcf9893 3597echo "configure:3598: checking "for --enable-printarch"" >&5
10f2d63a
VZ
3598 no_cache=0
3599 # Check whether --enable-printarch or --disable-printarch was given.
3600if test "${enable_printarch+set}" = set; then
3601 enableval="$enable_printarch"
3602
3603 if test "$enableval" = yes; then
3604 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
3605 else
3606 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
3607 fi
3608
3609else
3610
3611 LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
3612 if test "x$LINE" != x ; then
3613 eval "DEFAULT_$LINE"
3614 else
3615 no_cache=1
3616 fi
3617
3618 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
3619
3620fi
3621
3622
3623 eval "$ac_cv_use_printarch"
3624 if test "$no_cache" != 1; then
3625 echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
3626 fi
3627
3628 if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
3629 echo "$ac_t""yes" 1>&6
3630 else
3631 echo "$ac_t""no" 1>&6
3632 fi
3633
3634
3635 echo $ac_n "checking "for --enable-mdi"""... $ac_c" 1>&6
0dcf9893 3636echo "configure:3637: checking "for --enable-mdi"" >&5
10f2d63a
VZ
3637 no_cache=0
3638 # Check whether --enable-mdi or --disable-mdi was given.
3639if test "${enable_mdi+set}" = set; then
3640 enableval="$enable_mdi"
3641
3642 if test "$enableval" = yes; then
3643 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=yes'
3644 else
3645 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=no'
3646 fi
3647
3648else
3649
3650 LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
3651 if test "x$LINE" != x ; then
3652 eval "DEFAULT_$LINE"
3653 else
3654 no_cache=1
3655 fi
3656
3657 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
3658
3659fi
3660
3661
3662 eval "$ac_cv_use_mdi"
3663 if test "$no_cache" != 1; then
3664 echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
3665 fi
3666
3667 if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
3668 echo "$ac_t""yes" 1>&6
3669 else
3670 echo "$ac_t""no" 1>&6
3671 fi
3672
3673
3674
3675 echo $ac_n "checking "for --enable-postscript"""... $ac_c" 1>&6
0dcf9893 3676echo "configure:3677: checking "for --enable-postscript"" >&5
10f2d63a
VZ
3677 no_cache=0
3678 # Check whether --enable-postscript or --disable-postscript was given.
3679if test "${enable_postscript+set}" = set; then
3680 enableval="$enable_postscript"
3681
3682 if test "$enableval" = yes; then
3683 ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
3684 else
3685 ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
3686 fi
3687
3688else
3689
3690 LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
3691 if test "x$LINE" != x ; then
3692 eval "DEFAULT_$LINE"
3693 else
3694 no_cache=1
3695 fi
3696
3697 ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
3698
3699fi
3700
3701
3702 eval "$ac_cv_use_postscript"
3703 if test "$no_cache" != 1; then
3704 echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
3705 fi
3706
3707 if test "$wxUSE_POSTSCRIPT" = yes; then
3708 echo "$ac_t""yes" 1>&6
3709 else
3710 echo "$ac_t""no" 1>&6
3711 fi
3712
3713
3714
3715
3716 echo $ac_n "checking "for --enable-prologio"""... $ac_c" 1>&6
0dcf9893 3717echo "configure:3718: checking "for --enable-prologio"" >&5
10f2d63a
VZ
3718 no_cache=0
3719 # Check whether --enable-prologio or --disable-prologio was given.
3720if test "${enable_prologio+set}" = set; then
3721 enableval="$enable_prologio"
3722
3723 if test "$enableval" = yes; then
3724 ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
3725 else
3726 ac_cv_use_prologio='wxUSE_PROLOGIO=no'
3727 fi
3728
3729else
3730
3731 LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
3732 if test "x$LINE" != x ; then
3733 eval "DEFAULT_$LINE"
3734 else
3735 no_cache=1
3736 fi
3737
3738 ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
3739
3740fi
3741
3742
3743 eval "$ac_cv_use_prologio"
3744 if test "$no_cache" != 1; then
3745 echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
3746 fi
3747
3748 if test "$wxUSE_PROLOGIO" = yes; then
3749 echo "$ac_t""yes" 1>&6
3750 else
3751 echo "$ac_t""no" 1>&6
3752 fi
3753
3754
3755 echo $ac_n "checking "for --enable-resources"""... $ac_c" 1>&6
0dcf9893 3756echo "configure:3757: checking "for --enable-resources"" >&5
10f2d63a
VZ
3757 no_cache=0
3758 # Check whether --enable-resources or --disable-resources was given.
3759if test "${enable_resources+set}" = set; then
3760 enableval="$enable_resources"
3761
3762 if test "$enableval" = yes; then
3763 ac_cv_use_resources='wxUSE_RESOURCES=yes'
3764 else
3765 ac_cv_use_resources='wxUSE_RESOURCES=no'
3766 fi
3767
3768else
3769
3770 LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
3771 if test "x$LINE" != x ; then
3772 eval "DEFAULT_$LINE"
3773 else
3774 no_cache=1
3775 fi
3776
3777 ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
3778
3779fi
3780
3781
3782 eval "$ac_cv_use_resources"
3783 if test "$no_cache" != 1; then
3784 echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
3785 fi
3786
3787 if test "$wxUSE_RESOURCES" = yes; then
3788 echo "$ac_t""yes" 1>&6
3789 else
3790 echo "$ac_t""no" 1>&6
3791 fi
3792
3793
3794
3795 echo $ac_n "checking "for --enable-xresources"""... $ac_c" 1>&6
0dcf9893 3796echo "configure:3797: checking "for --enable-xresources"" >&5
10f2d63a
VZ
3797 no_cache=0
3798 # Check whether --enable-xresources or --disable-xresources was given.
3799if test "${enable_xresources+set}" = set; then
3800 enableval="$enable_xresources"
3801
3802 if test "$enableval" = yes; then
3803 ac_cv_use_xresources='wxUSE_X_RESOURCES=yes'
3804 else
3805 ac_cv_use_xresources='wxUSE_X_RESOURCES=no'
3806 fi
3807
3808else
3809
3810 LINE=`grep "wxUSE_X_RESOURCES" ${wx_arg_cache_file}`
3811 if test "x$LINE" != x ; then
3812 eval "DEFAULT_$LINE"
3813 else
3814 no_cache=1
3815 fi
3816
3817 ac_cv_use_xresources='wxUSE_X_RESOURCES='$DEFAULT_wxUSE_X_RESOURCES
3818
3819fi
3820
3821
3822 eval "$ac_cv_use_xresources"
3823 if test "$no_cache" != 1; then
3824 echo $ac_cv_use_xresources >> ${wx_arg_cache_file}.tmp
3825 fi
3826
3827 if test "$wxUSE_X_RESOURCES" = yes; then
3828 echo "$ac_t""yes" 1>&6
3829 else
3830 echo "$ac_t""no" 1>&6
3831 fi
3832
3833
3834
3835
3836 echo $ac_n "checking "for --enable-clipboard"""... $ac_c" 1>&6
0dcf9893 3837echo "configure:3838: checking "for --enable-clipboard"" >&5
10f2d63a
VZ
3838 no_cache=0
3839 # Check whether --enable-clipboard or --disable-clipboard was given.
3840if test "${enable_clipboard+set}" = set; then
3841 enableval="$enable_clipboard"
3842
3843 if test "$enableval" = yes; then
3844 ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
3845 else
3846 ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
3847 fi
3848
3849else
3850
3851 LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
3852 if test "x$LINE" != x ; then
3853 eval "DEFAULT_$LINE"
3854 else
3855 no_cache=1
3856 fi
3857
3858 ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
3859
3860fi
3861
3862
3863 eval "$ac_cv_use_clipboard"
3864 if test "$no_cache" != 1; then
3865 echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
3866 fi
3867
3868 if test "$wxUSE_CLIPBOARD" = yes; then
3869 echo "$ac_t""yes" 1>&6
3870 else
3871 echo "$ac_t""no" 1>&6
3872 fi
3873
3874
3875 echo $ac_n "checking "for --enable-dnd"""... $ac_c" 1>&6
0dcf9893 3876echo "configure:3877: checking "for --enable-dnd"" >&5
10f2d63a
VZ
3877 no_cache=0
3878 # Check whether --enable-dnd or --disable-dnd was given.
3879if test "${enable_dnd+set}" = set; then
3880 enableval="$enable_dnd"
3881
3882 if test "$enableval" = yes; then
3883 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
3884 else
3885 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
3886 fi
3887
3888else
3889
3890 LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
3891 if test "x$LINE" != x ; then
3892 eval "DEFAULT_$LINE"
3893 else
3894 no_cache=1
3895 fi
3896
3897 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
3898
3899fi
3900
3901
3902 eval "$ac_cv_use_dnd"
3903 if test "$no_cache" != 1; then
3904 echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
3905 fi
3906
3907 if test "$wxUSE_DRAG_AND_DROP" = yes; then
3908 echo "$ac_t""yes" 1>&6
3909 else
3910 echo "$ac_t""no" 1>&6
3911 fi
3912
3913
3914
3915 echo $ac_n "checking "for --enable-wxtree"""... $ac_c" 1>&6
0dcf9893 3916echo "configure:3917: checking "for --enable-wxtree"" >&5
10f2d63a
VZ
3917 no_cache=0
3918 # Check whether --enable-wxtree or --disable-wxtree was given.
3919if test "${enable_wxtree+set}" = set; then
3920 enableval="$enable_wxtree"
3921
3922 if test "$enableval" = yes; then
3923 ac_cv_use_wxtree='wxUSE_WXTREE=yes'
3924 else
3925 ac_cv_use_wxtree='wxUSE_WXTREE=no'
3926 fi
3927
3928else
3929
3930 LINE=`grep "wxUSE_WXTREE" ${wx_arg_cache_file}`
3931 if test "x$LINE" != x ; then
3932 eval "DEFAULT_$LINE"
3933 else
3934 no_cache=1
3935 fi
3936
3937 ac_cv_use_wxtree='wxUSE_WXTREE='$DEFAULT_wxUSE_WXTREE
3938
3939fi
3940
3941
3942 eval "$ac_cv_use_wxtree"
3943 if test "$no_cache" != 1; then
3944 echo $ac_cv_use_wxtree >> ${wx_arg_cache_file}.tmp
3945 fi
3946
3947 if test "$wxUSE_WXTREE" = yes; then
3948 echo "$ac_t""yes" 1>&6
3949 else
3950 echo "$ac_t""no" 1>&6
3951 fi
3952
3953
3954
3955
3956 echo $ac_n "checking "for --enable-controls"""... $ac_c" 1>&6
0dcf9893 3957echo "configure:3958: checking "for --enable-controls"" >&5
10f2d63a
VZ
3958 no_cache=0
3959 # Check whether --enable-controls or --disable-controls was given.
3960if test "${enable_controls+set}" = set; then
3961 enableval="$enable_controls"
3962
3963 if test "$enableval" = yes; then
3964 ac_cv_use_controls='wxUSE_CONTROLS=yes'
3965 else
3966 ac_cv_use_controls='wxUSE_CONTROLS=no'
3967 fi
3968
3969else
3970
3971 LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
3972 if test "x$LINE" != x ; then
3973 eval "DEFAULT_$LINE"
3974 else
3975 no_cache=1
3976 fi
3977
3978 ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
3979
3980fi
3981
3982
3983 eval "$ac_cv_use_controls"
3984 if test "$no_cache" != 1; then
3985 echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
3986 fi
3987
3988 if test "$wxUSE_CONTROLS" = yes; then
3989 echo "$ac_t""yes" 1>&6
3990 else
3991 echo "$ac_t""no" 1>&6
3992 fi
3993
3994
3995if test "$wxUSE_CONTROLS" = "yes"; then
3996 DEFAULT_wxUSE_ACCEL=yes
3997 DEFAULT_wxUSE_CARET=yes
3998 DEFAULT_wxUSE_COMBOBOX=yes
3999 DEFAULT_wxUSE_BMPBUTTON=yes
4000 DEFAULT_wxUSE_CHECKBOX=yes
4001 DEFAULT_wxUSE_CHECKLISTBOX=yes
4002 DEFAULT_wxUSE_CHOICE=yes
4003 DEFAULT_wxUSE_GAUGE=yes
4004 DEFAULT_wxUSE_GRID=yes
cc977e5f 4005 DEFAULT_wxUSE_NEW_GRID=yes
10f2d63a
VZ
4006 DEFAULT_wxUSE_IMAGLIST=yes
4007 DEFAULT_wxUSE_LISTBOX=yes
4008 DEFAULT_wxUSE_LISTCTRL=yes
4009 DEFAULT_wxUSE_NOTEBOOK=yes
4010 DEFAULT_wxUSE_RADIOBOX=yes
4011 DEFAULT_wxUSE_RADIOBTN=yes
4012 DEFAULT_wxUSE_SASH=yes
4013 DEFAULT_wxUSE_SCROLLBAR=yes
4014 DEFAULT_wxUSE_SLIDER=yes
4015 DEFAULT_wxUSE_SPINBTN=yes
56cfaa52 4016 DEFAULT_wxUSE_SPINCTRL=yes
10f2d63a
VZ
4017 DEFAULT_wxUSE_SPLITTER=yes
4018 DEFAULT_wxUSE_STATBMP=yes
4019 DEFAULT_wxUSE_STATBOX=yes
4020 DEFAULT_wxUSE_STATLINE=yes
4021 DEFAULT_wxUSE_STATUSBAR=yes
4022 DEFAULT_wxUSE_TAB_DIALOG=yes
4023 DEFAULT_wxUSE_TOOLBAR=yes
360d6699
VZ
4024 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
4025 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
10f2d63a
VZ
4026 DEFAULT_wxUSE_TOOLTIPS=yes
4027 DEFAULT_wxUSE_TREECTRL=yes
4028elif test "$wxUSE_CONTROLS" = "no"; then
4029 DEFAULT_wxUSE_ACCEL=no
4030 DEFAULT_wxUSE_CARET=no
4031 DEFAULT_wxUSE_COMBOBOX=no
4032 DEFAULT_wxUSE_BMPBUTTON=no
4033 DEFAULT_wxUSE_CHECKBOX=no
4034 DEFAULT_wxUSE_CHECKLISTBOX=no
4035 DEFAULT_wxUSE_CHOICE=no
4036 DEFAULT_wxUSE_GAUGE=no
4037 DEFAULT_wxUSE_GRID=no
4038 DEFAULT_wxUSE_NEW_GRID=no
4039 DEFAULT_wxUSE_IMAGLIST=no
4040 DEFAULT_wxUSE_LISTBOX=no
4041 DEFAULT_wxUSE_LISTCTRL=no
4042 DEFAULT_wxUSE_NOTEBOOK=no
4043 DEFAULT_wxUSE_RADIOBOX=no
4044 DEFAULT_wxUSE_RADIOBTN=no
4045 DEFAULT_wxUSE_SASH=no
4046 DEFAULT_wxUSE_SCROLLBAR=no
4047 DEFAULT_wxUSE_SLIDER=no
4048 DEFAULT_wxUSE_SPINBTN=no
56cfaa52 4049 DEFAULT_wxUSE_SPINCTRL=no
10f2d63a
VZ
4050 DEFAULT_wxUSE_SPLITTER=no
4051 DEFAULT_wxUSE_STATBMP=no
4052 DEFAULT_wxUSE_STATBOX=no
4053 DEFAULT_wxUSE_STATLINE=no
4054 DEFAULT_wxUSE_STATUSBAR=no
4055 DEFAULT_wxUSE_TAB_DIALOG=no
4056 DEFAULT_wxUSE_TOOLBAR=no
360d6699
VZ
4057 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
4058 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
10f2d63a
VZ
4059 DEFAULT_wxUSE_TOOLTIPS=no
4060 DEFAULT_wxUSE_TREECTRL=no
4061fi
4062
4063
4064 echo $ac_n "checking "for --enable-accel"""... $ac_c" 1>&6
0dcf9893 4065echo "configure:4066: checking "for --enable-accel"" >&5
10f2d63a
VZ
4066 no_cache=0
4067 # Check whether --enable-accel or --disable-accel was given.
4068if test "${enable_accel+set}" = set; then
4069 enableval="$enable_accel"
4070
4071 if test "$enableval" = yes; then
4072 ac_cv_use_accel='wxUSE_ACCEL=yes'
4073 else
4074 ac_cv_use_accel='wxUSE_ACCEL=no'
4075 fi
4076
4077else
4078
4079 LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
4080 if test "x$LINE" != x ; then
4081 eval "DEFAULT_$LINE"
4082 else
4083 no_cache=1
4084 fi
4085
4086 ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
4087
4088fi
4089
4090
4091 eval "$ac_cv_use_accel"
4092 if test "$no_cache" != 1; then
4093 echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
4094 fi
4095
4096 if test "$wxUSE_ACCEL" = yes; then
4097 echo "$ac_t""yes" 1>&6
4098 else
4099 echo "$ac_t""no" 1>&6
4100 fi
4101
4102
4103 echo $ac_n "checking "for --enable-caret"""... $ac_c" 1>&6
0dcf9893 4104echo "configure:4105: checking "for --enable-caret"" >&5
10f2d63a
VZ
4105 no_cache=0
4106 # Check whether --enable-caret or --disable-caret was given.
4107if test "${enable_caret+set}" = set; then
4108 enableval="$enable_caret"
4109
4110 if test "$enableval" = yes; then
4111 ac_cv_use_caret='wxUSE_CARET=yes'
4112 else
4113 ac_cv_use_caret='wxUSE_CARET=no'
4114 fi
4115
4116else
4117
4118 LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
4119 if test "x$LINE" != x ; then
4120 eval "DEFAULT_$LINE"
4121 else
4122 no_cache=1
4123 fi
4124
4125 ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
4126
4127fi
4128
4129
4130 eval "$ac_cv_use_caret"
4131 if test "$no_cache" != 1; then
4132 echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
4133 fi
4134
4135 if test "$wxUSE_CARET" = yes; then
4136 echo "$ac_t""yes" 1>&6
4137 else
4138 echo "$ac_t""no" 1>&6
4139 fi
4140
4141
4142 echo $ac_n "checking "for --enable-bmpbutton"""... $ac_c" 1>&6
0dcf9893 4143echo "configure:4144: checking "for --enable-bmpbutton"" >&5
10f2d63a
VZ
4144 no_cache=0
4145 # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
4146if test "${enable_bmpbutton+set}" = set; then
4147 enableval="$enable_bmpbutton"
4148
4149 if test "$enableval" = yes; then
4150 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
4151 else
4152 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
4153 fi
4154
4155else
4156
4157 LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
4158 if test "x$LINE" != x ; then
4159 eval "DEFAULT_$LINE"
4160 else
4161 no_cache=1
4162 fi
4163
4164 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
4165
4166fi
4167
4168
4169 eval "$ac_cv_use_bmpbutton"
4170 if test "$no_cache" != 1; then
4171 echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
4172 fi
4173
4174 if test "$wxUSE_BMPBUTTON" = yes; then
4175 echo "$ac_t""yes" 1>&6
4176 else
4177 echo "$ac_t""no" 1>&6
4178 fi
4179
4180
4181 echo $ac_n "checking "for --enable-checkbox"""... $ac_c" 1>&6
0dcf9893 4182echo "configure:4183: checking "for --enable-checkbox"" >&5
10f2d63a
VZ
4183 no_cache=0
4184 # Check whether --enable-checkbox or --disable-checkbox was given.
4185if test "${enable_checkbox+set}" = set; then
4186 enableval="$enable_checkbox"
4187
4188 if test "$enableval" = yes; then
4189 ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
4190 else
4191 ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
4192 fi
4193
4194else
4195
4196 LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
4197 if test "x$LINE" != x ; then
4198 eval "DEFAULT_$LINE"
4199 else
4200 no_cache=1
4201 fi
4202
4203 ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
4204
4205fi
4206
4207
4208 eval "$ac_cv_use_checkbox"
4209 if test "$no_cache" != 1; then
4210 echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
4211 fi
4212
4213 if test "$wxUSE_CHECKBOX" = yes; then
4214 echo "$ac_t""yes" 1>&6
4215 else
4216 echo "$ac_t""no" 1>&6
4217 fi
4218
4219
4220 echo $ac_n "checking "for --enable-checklst"""... $ac_c" 1>&6
0dcf9893 4221echo "configure:4222: checking "for --enable-checklst"" >&5
10f2d63a
VZ
4222 no_cache=0
4223 # Check whether --enable-checklst or --disable-checklst was given.
4224if test "${enable_checklst+set}" = set; then
4225 enableval="$enable_checklst"
4226
4227 if test "$enableval" = yes; then
4228 ac_cv_use_checklst='wxUSE_CHECKLST=yes'
4229 else
4230 ac_cv_use_checklst='wxUSE_CHECKLST=no'
4231 fi
4232
4233else
4234
4235 LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
4236 if test "x$LINE" != x ; then
4237 eval "DEFAULT_$LINE"
4238 else
4239 no_cache=1
4240 fi
4241
4242 ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
4243
4244fi
4245
4246
4247 eval "$ac_cv_use_checklst"
4248 if test "$no_cache" != 1; then
4249 echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
4250 fi
4251
4252 if test "$wxUSE_CHECKLST" = yes; then
4253 echo "$ac_t""yes" 1>&6
4254 else
4255 echo "$ac_t""no" 1>&6
4256 fi
4257
4258
4259 echo $ac_n "checking "for --enable-choice"""... $ac_c" 1>&6
0dcf9893 4260echo "configure:4261: checking "for --enable-choice"" >&5
10f2d63a
VZ
4261 no_cache=0
4262 # Check whether --enable-choice or --disable-choice was given.
4263if test "${enable_choice+set}" = set; then
4264 enableval="$enable_choice"
4265
4266 if test "$enableval" = yes; then
4267 ac_cv_use_choice='wxUSE_CHOICE=yes'
4268 else
4269 ac_cv_use_choice='wxUSE_CHOICE=no'
4270 fi
4271
4272else
4273
4274 LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
4275 if test "x$LINE" != x ; then
4276 eval "DEFAULT_$LINE"
4277 else
4278 no_cache=1
4279 fi
4280
4281 ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
4282
4283fi
4284
4285
4286 eval "$ac_cv_use_choice"
4287 if test "$no_cache" != 1; then
4288 echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
4289 fi
4290
4291 if test "$wxUSE_CHOICE" = yes; then
4292 echo "$ac_t""yes" 1>&6
4293 else
4294 echo "$ac_t""no" 1>&6
4295 fi
4296
4297
4298 echo $ac_n "checking "for --enable-combobox"""... $ac_c" 1>&6
0dcf9893 4299echo "configure:4300: checking "for --enable-combobox"" >&5
10f2d63a
VZ
4300 no_cache=0
4301 # Check whether --enable-combobox or --disable-combobox was given.
4302if test "${enable_combobox+set}" = set; then
4303 enableval="$enable_combobox"
4304
4305 if test "$enableval" = yes; then
4306 ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
4307 else
4308 ac_cv_use_combobox='wxUSE_COMBOBOX=no'
4309 fi
4310
4311else
4312
4313 LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
4314 if test "x$LINE" != x ; then
4315 eval "DEFAULT_$LINE"
4316 else
4317 no_cache=1
4318 fi
4319
4320 ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
4321
4322fi
4323
4324
4325 eval "$ac_cv_use_combobox"
4326 if test "$no_cache" != 1; then
4327 echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
4328 fi
4329
4330 if test "$wxUSE_COMBOBOX" = yes; then
4331 echo "$ac_t""yes" 1>&6
4332 else
4333 echo "$ac_t""no" 1>&6
4334 fi
4335
4336
4337 echo $ac_n "checking "for --enable-gauge"""... $ac_c" 1>&6
0dcf9893 4338echo "configure:4339: checking "for --enable-gauge"" >&5
10f2d63a
VZ
4339 no_cache=0
4340 # Check whether --enable-gauge or --disable-gauge was given.
4341if test "${enable_gauge+set}" = set; then
4342 enableval="$enable_gauge"
4343
4344 if test "$enableval" = yes; then
4345 ac_cv_use_gauge='wxUSE_GAUGE=yes'
4346 else
4347 ac_cv_use_gauge='wxUSE_GAUGE=no'
4348 fi
4349
4350else
4351
4352 LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
4353 if test "x$LINE" != x ; then
4354 eval "DEFAULT_$LINE"
4355 else
4356 no_cache=1
4357 fi
4358
4359 ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
4360
4361fi
4362
4363
4364 eval "$ac_cv_use_gauge"
4365 if test "$no_cache" != 1; then
4366 echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
4367 fi
4368
4369 if test "$wxUSE_GAUGE" = yes; then
4370 echo "$ac_t""yes" 1>&6
4371 else
4372 echo "$ac_t""no" 1>&6
4373 fi
4374
4375
4376 echo $ac_n "checking "for --enable-grid"""... $ac_c" 1>&6
0dcf9893 4377echo "configure:4378: checking "for --enable-grid"" >&5
10f2d63a
VZ
4378 no_cache=0
4379 # Check whether --enable-grid or --disable-grid was given.
4380if test "${enable_grid+set}" = set; then
4381 enableval="$enable_grid"
4382
4383 if test "$enableval" = yes; then
4384 ac_cv_use_grid='wxUSE_GRID=yes'
4385 else
4386 ac_cv_use_grid='wxUSE_GRID=no'
4387 fi
4388
4389else
4390
4391 LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
4392 if test "x$LINE" != x ; then
4393 eval "DEFAULT_$LINE"
4394 else
4395 no_cache=1
4396 fi
4397
4398 ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
4399
4400fi
4401
4402
4403 eval "$ac_cv_use_grid"
4404 if test "$no_cache" != 1; then
4405 echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
4406 fi
4407
4408 if test "$wxUSE_GRID" = yes; then
4409 echo "$ac_t""yes" 1>&6
4410 else
4411 echo "$ac_t""no" 1>&6
4412 fi
4413
4414
4415 echo $ac_n "checking "for --enable-newgrid"""... $ac_c" 1>&6
0dcf9893 4416echo "configure:4417: checking "for --enable-newgrid"" >&5
10f2d63a
VZ
4417 no_cache=0
4418 # Check whether --enable-newgrid or --disable-newgrid was given.
4419if test "${enable_newgrid+set}" = set; then
4420 enableval="$enable_newgrid"
4421
4422 if test "$enableval" = yes; then
4423 ac_cv_use_newgrid='wxUSE_NEW_GRID=yes'
4424 else
4425 ac_cv_use_newgrid='wxUSE_NEW_GRID=no'
4426 fi
4427
4428else
4429
4430 LINE=`grep "wxUSE_NEW_GRID" ${wx_arg_cache_file}`
4431 if test "x$LINE" != x ; then
4432 eval "DEFAULT_$LINE"
4433 else
4434 no_cache=1
4435 fi
4436
4437 ac_cv_use_newgrid='wxUSE_NEW_GRID='$DEFAULT_wxUSE_NEW_GRID
4438
4439fi
4440
4441
4442 eval "$ac_cv_use_newgrid"
4443 if test "$no_cache" != 1; then
4444 echo $ac_cv_use_newgrid >> ${wx_arg_cache_file}.tmp
4445 fi
4446
4447 if test "$wxUSE_NEW_GRID" = yes; then
4448 echo "$ac_t""yes" 1>&6
4449 else
4450 echo "$ac_t""no" 1>&6
4451 fi
4452
4453
4454 echo $ac_n "checking "for --enable-imaglist"""... $ac_c" 1>&6
0dcf9893 4455echo "configure:4456: checking "for --enable-imaglist"" >&5
10f2d63a
VZ
4456 no_cache=0
4457 # Check whether --enable-imaglist or --disable-imaglist was given.
4458if test "${enable_imaglist+set}" = set; then
4459 enableval="$enable_imaglist"
4460
4461 if test "$enableval" = yes; then
4462 ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
4463 else
4464 ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
4465 fi
4466
4467else
4468
4469 LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
4470 if test "x$LINE" != x ; then
4471 eval "DEFAULT_$LINE"
4472 else
4473 no_cache=1
4474 fi
4475
4476 ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
4477
4478fi
4479
4480
4481 eval "$ac_cv_use_imaglist"
4482 if test "$no_cache" != 1; then
4483 echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
4484 fi
4485
4486 if test "$wxUSE_IMAGLIST" = yes; then
4487 echo "$ac_t""yes" 1>&6
4488 else
4489 echo "$ac_t""no" 1>&6
4490 fi
4491
4492
4493 echo $ac_n "checking "for --enable-listbox"""... $ac_c" 1>&6
0dcf9893 4494echo "configure:4495: checking "for --enable-listbox"" >&5
10f2d63a
VZ
4495 no_cache=0
4496 # Check whether --enable-listbox or --disable-listbox was given.
4497if test "${enable_listbox+set}" = set; then
4498 enableval="$enable_listbox"
4499
4500 if test "$enableval" = yes; then
4501 ac_cv_use_listbox='wxUSE_LISTBOX=yes'
4502 else
4503 ac_cv_use_listbox='wxUSE_LISTBOX=no'
4504 fi
4505
4506else
4507
4508 LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
4509 if test "x$LINE" != x ; then
4510 eval "DEFAULT_$LINE"
4511 else
4512 no_cache=1
4513 fi
4514
4515 ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
4516
4517fi
4518
4519
4520 eval "$ac_cv_use_listbox"
4521 if test "$no_cache" != 1; then
4522 echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
4523 fi
4524
4525 if test "$wxUSE_LISTBOX" = yes; then
4526 echo "$ac_t""yes" 1>&6
4527 else
4528 echo "$ac_t""no" 1>&6
4529 fi
4530
4531
4532 echo $ac_n "checking "for --enable-listctrl"""... $ac_c" 1>&6
0dcf9893 4533echo "configure:4534: checking "for --enable-listctrl"" >&5
10f2d63a
VZ
4534 no_cache=0
4535 # Check whether --enable-listctrl or --disable-listctrl was given.
4536if test "${enable_listctrl+set}" = set; then
4537 enableval="$enable_listctrl"
4538
4539 if test "$enableval" = yes; then
4540 ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
4541 else
4542 ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
4543 fi
4544
4545else
4546
4547 LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
4548 if test "x$LINE" != x ; then
4549 eval "DEFAULT_$LINE"
4550 else
4551 no_cache=1
4552 fi
4553
4554 ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
4555
4556fi
4557
4558
4559 eval "$ac_cv_use_listctrl"
4560 if test "$no_cache" != 1; then
4561 echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
4562 fi
4563
4564 if test "$wxUSE_LISTCTRL" = yes; then
4565 echo "$ac_t""yes" 1>&6
4566 else
4567 echo "$ac_t""no" 1>&6
4568 fi
4569
4570
4571 echo $ac_n "checking "for --enable-notebook"""... $ac_c" 1>&6
0dcf9893 4572echo "configure:4573: checking "for --enable-notebook"" >&5
10f2d63a
VZ
4573 no_cache=0
4574 # Check whether --enable-notebook or --disable-notebook was given.
4575if test "${enable_notebook+set}" = set; then
4576 enableval="$enable_notebook"
4577
4578 if test "$enableval" = yes; then
4579 ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
4580 else
4581 ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
4582 fi
4583
4584else
4585
4586 LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
4587 if test "x$LINE" != x ; then
4588 eval "DEFAULT_$LINE"
4589 else
4590 no_cache=1
4591 fi
4592
4593 ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
4594
4595fi
4596
4597
4598 eval "$ac_cv_use_notebook"
4599 if test "$no_cache" != 1; then
4600 echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
4601 fi
4602
4603 if test "$wxUSE_NOTEBOOK" = yes; then
4604 echo "$ac_t""yes" 1>&6
4605 else
4606 echo "$ac_t""no" 1>&6
4607 fi
4608
4609
4610 echo $ac_n "checking "for --enable-radiobox"""... $ac_c" 1>&6
0dcf9893 4611echo "configure:4612: checking "for --enable-radiobox"" >&5
10f2d63a
VZ
4612 no_cache=0
4613 # Check whether --enable-radiobox or --disable-radiobox was given.
4614if test "${enable_radiobox+set}" = set; then
4615 enableval="$enable_radiobox"
4616
4617 if test "$enableval" = yes; then
4618 ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
4619 else
4620 ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
4621 fi
4622
4623else
4624
4625 LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
4626 if test "x$LINE" != x ; then
4627 eval "DEFAULT_$LINE"
4628 else
4629 no_cache=1
4630 fi
4631
4632 ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
4633
4634fi
4635
4636
4637 eval "$ac_cv_use_radiobox"
4638 if test "$no_cache" != 1; then
4639 echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
4640 fi
4641
4642 if test "$wxUSE_RADIOBOX" = yes; then
4643 echo "$ac_t""yes" 1>&6
4644 else
4645 echo "$ac_t""no" 1>&6
4646 fi
4647
4648
4649 echo $ac_n "checking "for --enable-radiobtn"""... $ac_c" 1>&6
0dcf9893 4650echo "configure:4651: checking "for --enable-radiobtn"" >&5
10f2d63a
VZ
4651 no_cache=0
4652 # Check whether --enable-radiobtn or --disable-radiobtn was given.
4653if test "${enable_radiobtn+set}" = set; then
4654 enableval="$enable_radiobtn"
4655
4656 if test "$enableval" = yes; then
4657 ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
4658 else
4659 ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
4660 fi
4661
4662else
4663
4664 LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
4665 if test "x$LINE" != x ; then
4666 eval "DEFAULT_$LINE"
4667 else
4668 no_cache=1
4669 fi
4670
4671 ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
4672
4673fi
4674
4675
4676 eval "$ac_cv_use_radiobtn"
4677 if test "$no_cache" != 1; then
4678 echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
4679 fi
4680
4681 if test "$wxUSE_RADIOBTN" = yes; then
4682 echo "$ac_t""yes" 1>&6
4683 else
4684 echo "$ac_t""no" 1>&6
4685 fi
4686
4687
4688 echo $ac_n "checking "for --enable-sash"""... $ac_c" 1>&6
0dcf9893 4689echo "configure:4690: checking "for --enable-sash"" >&5
10f2d63a
VZ
4690 no_cache=0
4691 # Check whether --enable-sash or --disable-sash was given.
4692if test "${enable_sash+set}" = set; then
4693 enableval="$enable_sash"
4694
4695 if test "$enableval" = yes; then
4696 ac_cv_use_sash='wxUSE_SASH=yes'
4697 else
4698 ac_cv_use_sash='wxUSE_SASH=no'
4699 fi
4700
4701else
4702
4703 LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
4704 if test "x$LINE" != x ; then
4705 eval "DEFAULT_$LINE"
4706 else
4707 no_cache=1
4708 fi
4709
4710 ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
4711
4712fi
4713
4714
4715 eval "$ac_cv_use_sash"
4716 if test "$no_cache" != 1; then
4717 echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
4718 fi
4719
4720 if test "$wxUSE_SASH" = yes; then
4721 echo "$ac_t""yes" 1>&6
4722 else
4723 echo "$ac_t""no" 1>&6
4724 fi
4725
4726
4727 echo $ac_n "checking "for --enable-scrollbar"""... $ac_c" 1>&6
0dcf9893 4728echo "configure:4729: checking "for --enable-scrollbar"" >&5
10f2d63a
VZ
4729 no_cache=0
4730 # Check whether --enable-scrollbar or --disable-scrollbar was given.
4731if test "${enable_scrollbar+set}" = set; then
4732 enableval="$enable_scrollbar"
4733
4734 if test "$enableval" = yes; then
4735 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
4736 else
4737 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
4738 fi
4739
4740else
4741
4742 LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
4743 if test "x$LINE" != x ; then
4744 eval "DEFAULT_$LINE"
4745 else
4746 no_cache=1
4747 fi
4748
4749 ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
4750
4751fi
4752
4753
4754 eval "$ac_cv_use_scrollbar"
4755 if test "$no_cache" != 1; then
4756 echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
4757 fi
4758
4759 if test "$wxUSE_SCROLLBAR" = yes; then
4760 echo "$ac_t""yes" 1>&6
4761 else
4762 echo "$ac_t""no" 1>&6
4763 fi
4764
4765
4766 echo $ac_n "checking "for --enable-slider"""... $ac_c" 1>&6
0dcf9893 4767echo "configure:4768: checking "for --enable-slider"" >&5
10f2d63a
VZ
4768 no_cache=0
4769 # Check whether --enable-slider or --disable-slider was given.
4770if test "${enable_slider+set}" = set; then
4771 enableval="$enable_slider"
4772
4773 if test "$enableval" = yes; then
4774 ac_cv_use_slider='wxUSE_SLIDER=yes'
4775 else
4776 ac_cv_use_slider='wxUSE_SLIDER=no'
4777 fi
4778
4779else
4780
4781 LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
4782 if test "x$LINE" != x ; then
4783 eval "DEFAULT_$LINE"
4784 else
4785 no_cache=1
4786 fi
4787
4788 ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
4789
4790fi
4791
4792
4793 eval "$ac_cv_use_slider"
4794 if test "$no_cache" != 1; then
4795 echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
4796 fi
4797
4798 if test "$wxUSE_SLIDER" = yes; then
4799 echo "$ac_t""yes" 1>&6
4800 else
4801 echo "$ac_t""no" 1>&6
4802 fi
4803
4804
4805 echo $ac_n "checking "for --enable-spinbtn"""... $ac_c" 1>&6
0dcf9893 4806echo "configure:4807: checking "for --enable-spinbtn"" >&5
10f2d63a
VZ
4807 no_cache=0
4808 # Check whether --enable-spinbtn or --disable-spinbtn was given.
4809if test "${enable_spinbtn+set}" = set; then
4810 enableval="$enable_spinbtn"
4811
4812 if test "$enableval" = yes; then
4813 ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
4814 else
4815 ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
4816 fi
4817
4818else
4819
4820 LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
4821 if test "x$LINE" != x ; then
4822 eval "DEFAULT_$LINE"
4823 else
4824 no_cache=1
4825 fi
4826
4827 ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
4828
4829fi
4830
4831
4832 eval "$ac_cv_use_spinbtn"
4833 if test "$no_cache" != 1; then
4834 echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
4835 fi
4836
4837 if test "$wxUSE_SPINBTN" = yes; then
4838 echo "$ac_t""yes" 1>&6
4839 else
4840 echo "$ac_t""no" 1>&6
4841 fi
4842
4843
56cfaa52 4844 echo $ac_n "checking "for --enable-spinctrl"""... $ac_c" 1>&6
0dcf9893 4845echo "configure:4846: checking "for --enable-spinctrl"" >&5
56cfaa52
RR
4846 no_cache=0
4847 # Check whether --enable-spinctrl or --disable-spinctrl was given.
4848if test "${enable_spinctrl+set}" = set; then
4849 enableval="$enable_spinctrl"
4850
4851 if test "$enableval" = yes; then
4852 ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
4853 else
4854 ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
4855 fi
4856
4857else
4858
4859 LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
4860 if test "x$LINE" != x ; then
4861 eval "DEFAULT_$LINE"
4862 else
4863 no_cache=1
4864 fi
4865
4866 ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
4867
4868fi
4869
4870
4871 eval "$ac_cv_use_spinctrl"
4872 if test "$no_cache" != 1; then
4873 echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
4874 fi
4875
4876 if test "$wxUSE_SPINCTRL" = yes; then
4877 echo "$ac_t""yes" 1>&6
4878 else
4879 echo "$ac_t""no" 1>&6
4880 fi
4881
4882
10f2d63a 4883 echo $ac_n "checking "for --enable-splitter"""... $ac_c" 1>&6
0dcf9893 4884echo "configure:4885: checking "for --enable-splitter"" >&5
10f2d63a
VZ
4885 no_cache=0
4886 # Check whether --enable-splitter or --disable-splitter was given.
4887if test "${enable_splitter+set}" = set; then
4888 enableval="$enable_splitter"
4889
4890 if test "$enableval" = yes; then
4891 ac_cv_use_splitter='wxUSE_SPLITTER=yes'
4892 else
4893 ac_cv_use_splitter='wxUSE_SPLITTER=no'
4894 fi
4895
4896else
4897
4898 LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
4899 if test "x$LINE" != x ; then
4900 eval "DEFAULT_$LINE"
4901 else
4902 no_cache=1
4903 fi
4904
4905 ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
4906
4907fi
4908
4909
4910 eval "$ac_cv_use_splitter"
4911 if test "$no_cache" != 1; then
4912 echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
4913 fi
4914
4915 if test "$wxUSE_SPLITTER" = yes; then
4916 echo "$ac_t""yes" 1>&6
4917 else
4918 echo "$ac_t""no" 1>&6
4919 fi
4920
4921
4922 echo $ac_n "checking "for --enable-statbmp"""... $ac_c" 1>&6
0dcf9893 4923echo "configure:4924: checking "for --enable-statbmp"" >&5
10f2d63a
VZ
4924 no_cache=0
4925 # Check whether --enable-statbmp or --disable-statbmp was given.
4926if test "${enable_statbmp+set}" = set; then
4927 enableval="$enable_statbmp"
4928
4929 if test "$enableval" = yes; then
4930 ac_cv_use_statbmp='wxUSE_STATBMP=yes'
4931 else
4932 ac_cv_use_statbmp='wxUSE_STATBMP=no'
4933 fi
4934
4935else
4936
4937 LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
4938 if test "x$LINE" != x ; then
4939 eval "DEFAULT_$LINE"
4940 else
4941 no_cache=1
4942 fi
4943
4944 ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
4945
4946fi
4947
4948
4949 eval "$ac_cv_use_statbmp"
4950 if test "$no_cache" != 1; then
4951 echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
4952 fi
4953
4954 if test "$wxUSE_STATBMP" = yes; then
4955 echo "$ac_t""yes" 1>&6
4956 else
4957 echo "$ac_t""no" 1>&6
4958 fi
4959
4960
4961 echo $ac_n "checking "for --enable-statbox"""... $ac_c" 1>&6
0dcf9893 4962echo "configure:4963: checking "for --enable-statbox"" >&5
10f2d63a
VZ
4963 no_cache=0
4964 # Check whether --enable-statbox or --disable-statbox was given.
4965if test "${enable_statbox+set}" = set; then
4966 enableval="$enable_statbox"
4967
4968 if test "$enableval" = yes; then
4969 ac_cv_use_statbox='wxUSE_STATBOX=yes'
4970 else
4971 ac_cv_use_statbox='wxUSE_STATBOX=no'
4972 fi
4973
4974else
4975
4976 LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
4977 if test "x$LINE" != x ; then
4978 eval "DEFAULT_$LINE"
4979 else
4980 no_cache=1
4981 fi
4982
4983 ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
4984
4985fi
4986
4987
4988 eval "$ac_cv_use_statbox"
4989 if test "$no_cache" != 1; then
4990 echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
4991 fi
4992
4993 if test "$wxUSE_STATBOX" = yes; then
4994 echo "$ac_t""yes" 1>&6
4995 else
4996 echo "$ac_t""no" 1>&6
4997 fi
4998
4999
5000 echo $ac_n "checking "for --enable-statline"""... $ac_c" 1>&6
0dcf9893 5001echo "configure:5002: checking "for --enable-statline"" >&5
10f2d63a
VZ
5002 no_cache=0
5003 # Check whether --enable-statline or --disable-statline was given.
5004if test "${enable_statline+set}" = set; then
5005 enableval="$enable_statline"
5006
5007 if test "$enableval" = yes; then
5008 ac_cv_use_statline='wxUSE_STATLINE=yes'
5009 else
5010 ac_cv_use_statline='wxUSE_STATLINE=no'
5011 fi
5012
5013else
5014
5015 LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
5016 if test "x$LINE" != x ; then
5017 eval "DEFAULT_$LINE"
5018 else
5019 no_cache=1
5020 fi
5021
5022 ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
5023
5024fi
5025
5026
5027 eval "$ac_cv_use_statline"
5028 if test "$no_cache" != 1; then
5029 echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
5030 fi
5031
5032 if test "$wxUSE_STATLINE" = yes; then
5033 echo "$ac_t""yes" 1>&6
5034 else
5035 echo "$ac_t""no" 1>&6
5036 fi
5037
5038
5039 echo $ac_n "checking "for --enable-statusbar"""... $ac_c" 1>&6
0dcf9893 5040echo "configure:5041: checking "for --enable-statusbar"" >&5
10f2d63a
VZ
5041 no_cache=0
5042 # Check whether --enable-statusbar or --disable-statusbar was given.
5043if test "${enable_statusbar+set}" = set; then
5044 enableval="$enable_statusbar"
5045
5046 if test "$enableval" = yes; then
5047 ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
5048 else
5049 ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
5050 fi
5051
5052else
5053
5054 LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
5055 if test "x$LINE" != x ; then
5056 eval "DEFAULT_$LINE"
5057 else
5058 no_cache=1
5059 fi
5060
5061 ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
5062
5063fi
5064
5065
5066 eval "$ac_cv_use_statusbar"
5067 if test "$no_cache" != 1; then
5068 echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
5069 fi
5070
5071 if test "$wxUSE_STATUSBAR" = yes; then
5072 echo "$ac_t""yes" 1>&6
5073 else
5074 echo "$ac_t""no" 1>&6
5075 fi
5076
5077
5078 echo $ac_n "checking "for --enable-tabdialog"""... $ac_c" 1>&6
0dcf9893 5079echo "configure:5080: checking "for --enable-tabdialog"" >&5
10f2d63a
VZ
5080 no_cache=0
5081 # Check whether --enable-tabdialog or --disable-tabdialog was given.
5082if test "${enable_tabdialog+set}" = set; then
5083 enableval="$enable_tabdialog"
5084
5085 if test "$enableval" = yes; then
5086 ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes'
5087 else
5088 ac_cv_use_tabdialog='wxUSE_TABDIALOG=no'
5089 fi
5090
5091else
5092
5093 LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}`
5094 if test "x$LINE" != x ; then
5095 eval "DEFAULT_$LINE"
5096 else
5097 no_cache=1
5098 fi
5099
5100 ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG
5101
5102fi
5103
5104
5105 eval "$ac_cv_use_tabdialog"
5106 if test "$no_cache" != 1; then
5107 echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
5108 fi
5109
5110 if test "$wxUSE_TABDIALOG" = yes; then
5111 echo "$ac_t""yes" 1>&6
5112 else
5113 echo "$ac_t""no" 1>&6
5114 fi
5115
5116
5117 echo $ac_n "checking "for --enable-toolbar"""... $ac_c" 1>&6
0dcf9893 5118echo "configure:5119: checking "for --enable-toolbar"" >&5
10f2d63a
VZ
5119 no_cache=0
5120 # Check whether --enable-toolbar or --disable-toolbar was given.
5121if test "${enable_toolbar+set}" = set; then
5122 enableval="$enable_toolbar"
5123
5124 if test "$enableval" = yes; then
5125 ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
5126 else
5127 ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
5128 fi
5129
5130else
5131
5132 LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
5133 if test "x$LINE" != x ; then
5134 eval "DEFAULT_$LINE"
5135 else
5136 no_cache=1
5137 fi
5138
5139 ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
5140
5141fi
5142
5143
5144 eval "$ac_cv_use_toolbar"
5145 if test "$no_cache" != 1; then
5146 echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
5147 fi
5148
5149 if test "$wxUSE_TOOLBAR" = yes; then
5150 echo "$ac_t""yes" 1>&6
5151 else
5152 echo "$ac_t""no" 1>&6
5153 fi
5154
5155
360d6699 5156 echo $ac_n "checking "for --enable-tbarnative"""... $ac_c" 1>&6
0dcf9893 5157echo "configure:5158: checking "for --enable-tbarnative"" >&5
360d6699
VZ
5158 no_cache=0
5159 # Check whether --enable-tbarnative or --disable-tbarnative was given.
5160if test "${enable_tbarnative+set}" = set; then
5161 enableval="$enable_tbarnative"
5162
5163 if test "$enableval" = yes; then
5164 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
5165 else
5166 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
5167 fi
5168
5169else
5170
5171 LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
5172 if test "x$LINE" != x ; then
5173 eval "DEFAULT_$LINE"
5174 else
5175 no_cache=1
5176 fi
5177
5178 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
5179
5180fi
5181
5182
5183 eval "$ac_cv_use_tbarnative"
5184 if test "$no_cache" != 1; then
5185 echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
5186 fi
5187
5188 if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
5189 echo "$ac_t""yes" 1>&6
5190 else
5191 echo "$ac_t""no" 1>&6
5192 fi
5193
5194
5195 echo $ac_n "checking "for --enable-tbarsmpl"""... $ac_c" 1>&6
0dcf9893 5196echo "configure:5197: checking "for --enable-tbarsmpl"" >&5
360d6699
VZ
5197 no_cache=0
5198 # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given.
5199if test "${enable_tbarsmpl+set}" = set; then
5200 enableval="$enable_tbarsmpl"
5201
5202 if test "$enableval" = yes; then
5203 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes'
5204 else
5205 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no'
5206 fi
5207
5208else
5209
5210 LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}`
5211 if test "x$LINE" != x ; then
5212 eval "DEFAULT_$LINE"
5213 else
5214 no_cache=1
5215 fi
5216
5217 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE
5218
5219fi
5220
5221
5222 eval "$ac_cv_use_tbarsmpl"
5223 if test "$no_cache" != 1; then
5224 echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp
5225 fi
5226
5227 if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then
5228 echo "$ac_t""yes" 1>&6
5229 else
5230 echo "$ac_t""no" 1>&6
5231 fi
5232
5233
10f2d63a 5234 echo $ac_n "checking "for --enable-treectrl"""... $ac_c" 1>&6
0dcf9893 5235echo "configure:5236: checking "for --enable-treectrl"" >&5
10f2d63a
VZ
5236 no_cache=0
5237 # Check whether --enable-treectrl or --disable-treectrl was given.
5238if test "${enable_treectrl+set}" = set; then
5239 enableval="$enable_treectrl"
5240
5241 if test "$enableval" = yes; then
5242 ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
5243 else
5244 ac_cv_use_treectrl='wxUSE_TREECTRL=no'
5245 fi
5246
5247else
5248
5249 LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
5250 if test "x$LINE" != x ; then
5251 eval "DEFAULT_$LINE"
5252 else
5253 no_cache=1
5254 fi
5255
5256 ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
5257
5258fi
5259
5260
5261 eval "$ac_cv_use_treectrl"
5262 if test "$no_cache" != 1; then
5263 echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
5264 fi
5265
5266 if test "$wxUSE_TREECTRL" = yes; then
5267 echo "$ac_t""yes" 1>&6
5268 else
5269 echo "$ac_t""no" 1>&6
5270 fi
5271
5272
5273
5274
5275 echo $ac_n "checking "for --enable-commondlg"""... $ac_c" 1>&6
0dcf9893 5276echo "configure:5277: checking "for --enable-commondlg"" >&5
10f2d63a
VZ
5277 no_cache=0
5278 # Check whether --enable-commondlg or --disable-commondlg was given.
5279if test "${enable_commondlg+set}" = set; then
5280 enableval="$enable_commondlg"
5281
5282 if test "$enableval" = yes; then
5283 ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
5284 else
5285 ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
5286 fi
5287
5288else
5289
5290 LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
5291 if test "x$LINE" != x ; then
5292 eval "DEFAULT_$LINE"
5293 else
5294 no_cache=1
5295 fi
5296
5297 ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
5298
5299fi
5300
5301
5302 eval "$ac_cv_use_commondlg"
5303 if test "$no_cache" != 1; then
5304 echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
5305 fi
5306
5307 if test "$wxUSE_COMMONDLGS" = yes; then
5308 echo "$ac_t""yes" 1>&6
5309 else
5310 echo "$ac_t""no" 1>&6
5311 fi
5312
5313
5314 echo $ac_n "checking "for --enable-dirdlg"""... $ac_c" 1>&6
0dcf9893 5315echo "configure:5316: checking "for --enable-dirdlg"" >&5
10f2d63a
VZ
5316 no_cache=0
5317 # Check whether --enable-dirdlg or --disable-dirdlg was given.
5318if test "${enable_dirdlg+set}" = set; then
5319 enableval="$enable_dirdlg"
5320
5321 if test "$enableval" = yes; then
5322 ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
5323 else
5324 ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
5325 fi
5326
5327else
5328
5329 LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
5330 if test "x$LINE" != x ; then
5331 eval "DEFAULT_$LINE"
5332 else
5333 no_cache=1
5334 fi
5335
5336 ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
5337
5338fi
5339
5340
5341 eval "$ac_cv_use_dirdlg"
5342 if test "$no_cache" != 1; then
5343 echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
5344 fi
5345
5346 if test "$wxUSE_DIRDLG" = yes; then
5347 echo "$ac_t""yes" 1>&6
5348 else
5349 echo "$ac_t""no" 1>&6
5350 fi
5351
5352
5353 echo $ac_n "checking "for --enable-textdlg"""... $ac_c" 1>&6
0dcf9893 5354echo "configure:5355: checking "for --enable-textdlg"" >&5
10f2d63a
VZ
5355 no_cache=0
5356 # Check whether --enable-textdlg or --disable-textdlg was given.
5357if test "${enable_textdlg+set}" = set; then
5358 enableval="$enable_textdlg"
5359
5360 if test "$enableval" = yes; then
5361 ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
5362 else
5363 ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
5364 fi
5365
5366else
5367
5368 LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
5369 if test "x$LINE" != x ; then
5370 eval "DEFAULT_$LINE"
5371 else
5372 no_cache=1
5373 fi
5374
5375 ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
5376
5377fi
5378
5379
5380 eval "$ac_cv_use_textdlg"
5381 if test "$no_cache" != 1; then
5382 echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
5383 fi
5384
5385 if test "$wxUSE_TEXTDLG" = yes; then
5386 echo "$ac_t""yes" 1>&6
5387 else
5388 echo "$ac_t""no" 1>&6
5389 fi
5390
5391
5392 echo $ac_n "checking "for --enable-tipdlg"""... $ac_c" 1>&6
0dcf9893 5393echo "configure:5394: checking "for --enable-tipdlg"" >&5
10f2d63a
VZ
5394 no_cache=0
5395 # Check whether --enable-tipdlg or --disable-tipdlg was given.
5396if test "${enable_tipdlg+set}" = set; then
5397 enableval="$enable_tipdlg"
5398
5399 if test "$enableval" = yes; then
5400 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
5401 else
5402 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
5403 fi
5404
5405else
5406
5407 LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
5408 if test "x$LINE" != x ; then
5409 eval "DEFAULT_$LINE"
5410 else
5411 no_cache=1
5412 fi
5413
5414 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
5415
5416fi
5417
5418
5419 eval "$ac_cv_use_tipdlg"
5420 if test "$no_cache" != 1; then
5421 echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
5422 fi
5423
5424 if test "$wxUSE_STARTUP_TIPS" = yes; then
5425 echo "$ac_t""yes" 1>&6
5426 else
5427 echo "$ac_t""no" 1>&6
5428 fi
5429
5430
5431 echo $ac_n "checking "for --enable-progressdlg"""... $ac_c" 1>&6
0dcf9893 5432echo "configure:5433: checking "for --enable-progressdlg"" >&5
10f2d63a
VZ
5433 no_cache=0
5434 # Check whether --enable-progressdlg or --disable-progressdlg was given.
5435if test "${enable_progressdlg+set}" = set; then
5436 enableval="$enable_progressdlg"
5437
5438 if test "$enableval" = yes; then
5439 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
5440 else
5441 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
5442 fi
5443
5444else
5445
5446 LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
5447 if test "x$LINE" != x ; then
5448 eval "DEFAULT_$LINE"
5449 else
5450 no_cache=1
5451 fi
5452
5453 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
5454
5455fi
5456
5457
5458 eval "$ac_cv_use_progressdlg"
5459 if test "$no_cache" != 1; then
5460 echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
5461 fi
5462
5463 if test "$wxUSE_PROGRESSDLG" = yes; then
5464 echo "$ac_t""yes" 1>&6
5465 else
5466 echo "$ac_t""no" 1>&6
5467 fi
5468
5469
5470 echo $ac_n "checking "for --enable-miniframe"""... $ac_c" 1>&6
0dcf9893 5471echo "configure:5472: checking "for --enable-miniframe"" >&5
10f2d63a
VZ
5472 no_cache=0
5473 # Check whether --enable-miniframe or --disable-miniframe was given.
5474if test "${enable_miniframe+set}" = set; then
5475 enableval="$enable_miniframe"
5476
5477 if test "$enableval" = yes; then
5478 ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
5479 else
5480 ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
5481 fi
5482
5483else
5484
5485 LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
5486 if test "x$LINE" != x ; then
5487 eval "DEFAULT_$LINE"
5488 else
5489 no_cache=1
5490 fi
5491
5492 ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
5493
5494fi
5495
5496
5497 eval "$ac_cv_use_miniframe"
5498 if test "$no_cache" != 1; then
5499 echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
5500 fi
5501
5502 if test "$wxUSE_MINIFRAME" = yes; then
5503 echo "$ac_t""yes" 1>&6
5504 else
5505 echo "$ac_t""no" 1>&6
5506 fi
5507
5508
5509 echo $ac_n "checking "for --enable-html"""... $ac_c" 1>&6
0dcf9893 5510echo "configure:5511: checking "for --enable-html"" >&5
10f2d63a
VZ
5511 no_cache=0
5512 # Check whether --enable-html or --disable-html was given.
5513if test "${enable_html+set}" = set; then
5514 enableval="$enable_html"
5515
5516 if test "$enableval" = yes; then
5517 ac_cv_use_html='wxUSE_HTML=yes'
5518 else
5519 ac_cv_use_html='wxUSE_HTML=no'
5520 fi
5521
5522else
5523
5524 LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
5525 if test "x$LINE" != x ; then
5526 eval "DEFAULT_$LINE"
5527 else
5528 no_cache=1
5529 fi
5530
5531 ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
5532
5533fi
5534
5535
5536 eval "$ac_cv_use_html"
5537 if test "$no_cache" != 1; then
5538 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
5539 fi
5540
5541 if test "$wxUSE_HTML" = yes; then
5542 echo "$ac_t""yes" 1>&6
5543 else
5544 echo "$ac_t""no" 1>&6
5545 fi
5546
5547
5548 echo $ac_n "checking "for --enable-tooltips"""... $ac_c" 1>&6
0dcf9893 5549echo "configure:5550: checking "for --enable-tooltips"" >&5
10f2d63a
VZ
5550 no_cache=0
5551 # Check whether --enable-tooltips or --disable-tooltips was given.
5552if test "${enable_tooltips+set}" = set; then
5553 enableval="$enable_tooltips"
5554
5555 if test "$enableval" = yes; then
5556 ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
5557 else
5558 ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
5559 fi
5560
5561else
5562
5563 LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
5564 if test "x$LINE" != x ; then
5565 eval "DEFAULT_$LINE"
5566 else
5567 no_cache=1
5568 fi
5569
5570 ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
5571
5572fi
5573
5574
5575 eval "$ac_cv_use_tooltips"
5576 if test "$no_cache" != 1; then
5577 echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
5578 fi
5579
5580 if test "$wxUSE_TOOLTIPS" = yes; then
5581 echo "$ac_t""yes" 1>&6
5582 else
5583 echo "$ac_t""no" 1>&6
5584 fi
5585
5586
5587 echo $ac_n "checking "for --enable-splines"""... $ac_c" 1>&6
0dcf9893 5588echo "configure:5589: checking "for --enable-splines"" >&5
10f2d63a
VZ
5589 no_cache=0
5590 # Check whether --enable-splines or --disable-splines was given.
5591if test "${enable_splines+set}" = set; then
5592 enableval="$enable_splines"
5593
5594 if test "$enableval" = yes; then
5595 ac_cv_use_splines='wxUSE_SPLINES=yes'
5596 else
5597 ac_cv_use_splines='wxUSE_SPLINES=no'
5598 fi
5599
5600else
5601
5602 LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
5603 if test "x$LINE" != x ; then
5604 eval "DEFAULT_$LINE"
5605 else
5606 no_cache=1
5607 fi
5608
5609 ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
5610
5611fi
5612
5613
5614 eval "$ac_cv_use_splines"
5615 if test "$no_cache" != 1; then
5616 echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
5617 fi
5618
5619 if test "$wxUSE_SPLINES" = yes; then
5620 echo "$ac_t""yes" 1>&6
5621 else
5622 echo "$ac_t""no" 1>&6
5623 fi
5624
5625
5626 echo $ac_n "checking "for --enable-validators"""... $ac_c" 1>&6
0dcf9893 5627echo "configure:5628: checking "for --enable-validators"" >&5
10f2d63a
VZ
5628 no_cache=0
5629 # Check whether --enable-validators or --disable-validators was given.
5630if test "${enable_validators+set}" = set; then
5631 enableval="$enable_validators"
5632
5633 if test "$enableval" = yes; then
5634 ac_cv_use_validators='wxUSE_VALIDATORS=yes'
5635 else
5636 ac_cv_use_validators='wxUSE_VALIDATORS=no'
5637 fi
5638
5639else
5640
5641 LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
5642 if test "x$LINE" != x ; then
5643 eval "DEFAULT_$LINE"
5644 else
5645 no_cache=1
5646 fi
5647
5648 ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
5649
5650fi
5651
5652
5653 eval "$ac_cv_use_validators"
5654 if test "$no_cache" != 1; then
5655 echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
5656 fi
5657
5658 if test "$wxUSE_VALIDATORS" = yes; then
5659 echo "$ac_t""yes" 1>&6
5660 else
5661 echo "$ac_t""no" 1>&6
5662 fi
5663
5664
5665 echo $ac_n "checking "for --enable-busyinfo"""... $ac_c" 1>&6
0dcf9893 5666echo "configure:5667: checking "for --enable-busyinfo"" >&5
10f2d63a
VZ
5667 no_cache=0
5668 # Check whether --enable-busyinfo or --disable-busyinfo was given.
5669if test "${enable_busyinfo+set}" = set; then
5670 enableval="$enable_busyinfo"
5671
5672 if test "$enableval" = yes; then
5673 ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
5674 else
5675 ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
5676 fi
5677
5678else
5679
5680 LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
5681 if test "x$LINE" != x ; then
5682 eval "DEFAULT_$LINE"
5683 else
5684 no_cache=1
5685 fi
5686
5687 ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
5688
5689fi
5690
5691
5692 eval "$ac_cv_use_busyinfo"
5693 if test "$no_cache" != 1; then
5694 echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
5695 fi
5696
5697 if test "$wxUSE_BUSYINFO" = yes; then
5698 echo "$ac_t""yes" 1>&6
5699 else
5700 echo "$ac_t""no" 1>&6
5701 fi
5702
5703
9b33fe02 5704 echo $ac_n "checking "for --enable-plot"""... $ac_c" 1>&6
0dcf9893 5705echo "configure:5706: checking "for --enable-plot"" >&5
9b33fe02
VZ
5706 no_cache=0
5707 # Check whether --enable-plot or --disable-plot was given.
5708if test "${enable_plot+set}" = set; then
5709 enableval="$enable_plot"
5710
5711 if test "$enableval" = yes; then
5712 ac_cv_use_plot='wxUSE_PLOT=yes'
5713 else
5714 ac_cv_use_plot='wxUSE_PLOT=no'
5715 fi
5716
5717else
5718
5719 LINE=`grep "wxUSE_PLOT" ${wx_arg_cache_file}`
5720 if test "x$LINE" != x ; then
5721 eval "DEFAULT_$LINE"
5722 else
5723 no_cache=1
5724 fi
5725
5726 ac_cv_use_plot='wxUSE_PLOT='$DEFAULT_wxUSE_PLOT
5727
5728fi
5729
5730
5731 eval "$ac_cv_use_plot"
5732 if test "$no_cache" != 1; then
5733 echo $ac_cv_use_plot >> ${wx_arg_cache_file}.tmp
5734 fi
5735
5736 if test "$wxUSE_PLOT" = yes; then
5737 echo "$ac_t""yes" 1>&6
5738 else
5739 echo "$ac_t""no" 1>&6
5740 fi
5741
5742
10f2d63a
VZ
5743
5744
5745 echo $ac_n "checking "for --enable-gif"""... $ac_c" 1>&6
0dcf9893 5746echo "configure:5747: checking "for --enable-gif"" >&5
10f2d63a
VZ
5747 no_cache=0
5748 # Check whether --enable-gif or --disable-gif was given.
5749if test "${enable_gif+set}" = set; then
5750 enableval="$enable_gif"
5751
5752 if test "$enableval" = yes; then
5753 ac_cv_use_gif='wxUSE_GIF=yes'
5754 else
5755 ac_cv_use_gif='wxUSE_GIF=no'
5756 fi
5757
5758else
5759
5760 LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
5761 if test "x$LINE" != x ; then
5762 eval "DEFAULT_$LINE"
5763 else
5764 no_cache=1
5765 fi
5766
5767 ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
5768
5769fi
5770
5771
5772 eval "$ac_cv_use_gif"
5773 if test "$no_cache" != 1; then
5774 echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
5775 fi
5776
5777 if test "$wxUSE_GIF" = yes; then
5778 echo "$ac_t""yes" 1>&6
5779 else
5780 echo "$ac_t""no" 1>&6
5781 fi
5782
5783
5784 echo $ac_n "checking "for --enable-pcx"""... $ac_c" 1>&6
0dcf9893 5785echo "configure:5786: checking "for --enable-pcx"" >&5
10f2d63a
VZ
5786 no_cache=0
5787 # Check whether --enable-pcx or --disable-pcx was given.
5788if test "${enable_pcx+set}" = set; then
5789 enableval="$enable_pcx"
5790
5791 if test "$enableval" = yes; then
5792 ac_cv_use_pcx='wxUSE_PCX=yes'
5793 else
5794 ac_cv_use_pcx='wxUSE_PCX=no'
5795 fi
5796
5797else
5798
5799 LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
5800 if test "x$LINE" != x ; then
5801 eval "DEFAULT_$LINE"
5802 else
5803 no_cache=1
5804 fi
5805
5806 ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
5807
5808fi
5809
5810
5811 eval "$ac_cv_use_pcx"
5812 if test "$no_cache" != 1; then
5813 echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
5814 fi
5815
5816 if test "$wxUSE_PCX" = yes; then
5817 echo "$ac_t""yes" 1>&6
5818 else
5819 echo "$ac_t""no" 1>&6
5820 fi
5821
5822
5823 echo $ac_n "checking "for --enable-pnm"""... $ac_c" 1>&6
0dcf9893 5824echo "configure:5825: checking "for --enable-pnm"" >&5
10f2d63a
VZ
5825 no_cache=0
5826 # Check whether --enable-pnm or --disable-pnm was given.
5827if test "${enable_pnm+set}" = set; then
5828 enableval="$enable_pnm"
5829
5830 if test "$enableval" = yes; then
5831 ac_cv_use_pnm='wxUSE_PNM=yes'
5832 else
5833 ac_cv_use_pnm='wxUSE_PNM=no'
5834 fi
5835
5836else
5837
5838 LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
5839 if test "x$LINE" != x ; then
5840 eval "DEFAULT_$LINE"
5841 else
5842 no_cache=1
5843 fi
5844
5845 ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
5846
5847fi
5848
5849
5850 eval "$ac_cv_use_pnm"
5851 if test "$no_cache" != 1; then
5852 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
5853 fi
5854
5855 if test "$wxUSE_PNM" = yes; then
5856 echo "$ac_t""yes" 1>&6
5857 else
5858 echo "$ac_t""no" 1>&6
5859 fi
5860
5861
b12915c1
VZ
5862fi
5863
10f2d63a
VZ
5864
5865 echo "saving argument cache $wx_arg_cache_file"
5866 mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
5867
5868
5869
5870echo $ac_n "checking for toolkit""... $ac_c" 1>&6
0dcf9893 5871echo "configure:5872: checking for toolkit" >&5
10f2d63a
VZ
5872
5873if test "$wxUSE_GUI" = "yes"; then
5874
b12915c1
VZ
5875if test "$USE_BEOS" = 1; then
5876 { echo "configure: error: BeOS GUI is not supported yet, use --disable-gui" 1>&2; exit 1; }
5877fi
5878
10f2d63a
VZ
5879if test "$TOOLKIT_GIVEN" = 1; then
5880 for toolkit in `echo $ALL_TOOLKITS`; do
5881 var=wxUSE_$toolkit
5882 eval "value=\$${var}"
5883 eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`"
5884 done
5885else
5886 for toolkit in `echo $ALL_TOOLKITS`; do
5887 if test "$has_toolkit_in_cache" != 1; then
5888 var=DEFAULT_DEFAULT_wxUSE_$toolkit
5889 else
5890 var=DEFAULT_wxUSE_$toolkit
5891 fi
5892 eval "wxUSE_$toolkit=\$${var}"
5893 done
5894fi
5895
ec14dd32 5896NUM_TOOLKITS=`expr ${wxUSE_GTK:-0} + ${wxUSE_MOTIF:-0} + ${wxUSE_WINE:-0} + ${wxUSE_MINGW:-0} + ${wxUSE_CYGWIN:-0}`
cf27ef00 5897
ec14dd32
VZ
5898case "${host}" in
5899 *-pc-os2_emx )
5900 NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
5901 # PATH_IFS is autodetected by OS/2's configure (usually ';')
5902 LEX_STEM="lexyy"
5903 ;;
5904 *)
5905 PATH_IFS=':'
5906 LEX_STEM="lex.yy"
5907 ;;
5908esac
10f2d63a
VZ
5909
5910case "$NUM_TOOLKITS" in
5911 1)
5912 ;;
5913 0)
5914 { echo "configure: error: Please specify a toolkit - cannot determine the default for ${host}" 1>&2; exit 1; }
5915 ;;
5916 *)
5917 { echo "configure: error: Please specify at most one toolkit (may be some are cached?)" 1>&2; exit 1; }
5918esac
5919
5920for toolkit in `echo $ALL_TOOLKITS`; do
5921 var=wxUSE_$toolkit
5922 eval "value=\$${var}"
5923 if test "x$value" != x; then
5924 cache_var=CACHE_$toolkit
5925 eval "cache=\$${cache_var}"
5926 if test "$cache" = 1; then
5927 echo "$var=$value" >> ${wx_arg_cache_file}
5928 fi
5929 if test "$value" = 1; then
5930 echo "$ac_t""`echo $toolkit | tr A-Z a-z`" 1>&6
5931 fi
5932 fi
5933done
5934
5935else
cf27ef00 5936 PATH_IFS=':'
10f2d63a
VZ
5937 echo "$ac_t""base only" 1>&6
5938fi
5939
5940
5941cat > confcache <<\EOF
5942# This file is a shell script that caches the results of configure
5943# tests run on this system so they can be shared between configure
5944# scripts and configure runs. It is not useful on other systems.
5945# If it contains results you don't want to keep, you may remove or edit it.
5946#
5947# By default, configure uses ./config.cache as the cache file,
5948# creating it if it does not exist already. You can give configure
5949# the --cache-file=FILE option to use a different cache file; that is
5950# what configure does when it calls configure scripts in
5951# subdirectories, so they share the cache.
5952# Giving --cache-file=/dev/null disables caching, for debugging configure.
5953# config.status only pays attention to the cache file if you give it the
5954# --recheck option to rerun configure.
5955#
5956EOF
5957# The following way of writing the cache mishandles newlines in values,
5958# but we know of no workaround that is simple, portable, and efficient.
5959# So, don't put newlines in cache variables' values.
5960# Ultrix sh set writes to stderr and can't be redirected directly,
5961# and sets the high bit in the cache file unless we assign to the vars.
5962(set) 2>&1 |
5963 case `(ac_space=' '; set | grep ac_space) 2>&1` in
5964 *ac_space=\ *)
5965 # `set' does not quote correctly, so add quotes (double-quote substitution
5966 # turns \\\\ into \\, and sed turns \\ into \).
5967 sed -n \
5968 -e "s/'/'\\\\''/g" \
5969 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
5970 ;;
5971 *)
5972 # `set' quotes correctly as required by POSIX, so do not add quotes.
5973 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
5974 ;;
5975 esac >> confcache
5976if cmp -s $cache_file confcache; then
5977 :
5978else
5979 if test -w $cache_file; then
5980 echo "updating cache $cache_file"
5981 cat confcache > $cache_file
5982 else
5983 echo "not updating unwritable cache $cache_file"
5984 fi
5985fi
5986rm -f confcache
5987
5988
5989if eval "test $host != $build"; then
5990 if eval "test $host_alias != NONE"; then
5991 CC=$host_alias-gcc
5992 CXX=$host_alias-c++
5993 AR=$host_alias-ar
5994 RANLIB=$host_alias-ranlib
5995 DLLTOOL=$host_alias-dlltool
32832908 5996 RESCOMP=$host_alias-windres
10f2d63a
VZ
5997 LD=$host_alias-ld
5998 NM=$host_alias-nm
5999 STRIP=$host_alias-strip
6000 fi
6001fi
6002
6003# Extract the first word of "gcc", so it can be a program name with args.
6004set dummy gcc; ac_word=$2
6005echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
32832908 6006echo "configure:6007: checking for $ac_word" >&5
10f2d63a
VZ
6007if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
6008 echo $ac_n "(cached) $ac_c" 1>&6
6009else
6010 if test -n "$CC"; then
6011 ac_cv_prog_CC="$CC" # Let the user override the test.
6012else
6013 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6014 ac_dummy="$PATH"
6015 for ac_dir in $ac_dummy; do
6016 test -z "$ac_dir" && ac_dir=.
6017 if test -f $ac_dir/$ac_word; then
6018 ac_cv_prog_CC="gcc"
6019 break
6020 fi
6021 done
6022 IFS="$ac_save_ifs"
6023fi
6024fi
6025CC="$ac_cv_prog_CC"
6026if test -n "$CC"; then
6027 echo "$ac_t""$CC" 1>&6
6028else
6029 echo "$ac_t""no" 1>&6
6030fi
6031
6032if test -z "$CC"; then
6033 # Extract the first word of "cc", so it can be a program name with args.
6034set dummy cc; ac_word=$2
6035echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
32832908 6036echo "configure:6037: checking for $ac_word" >&5
10f2d63a
VZ
6037if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
6038 echo $ac_n "(cached) $ac_c" 1>&6
6039else
6040 if test -n "$CC"; then
6041 ac_cv_prog_CC="$CC" # Let the user override the test.
6042else
6043 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6044 ac_prog_rejected=no
6045 ac_dummy="$PATH"
6046 for ac_dir in $ac_dummy; do
6047 test -z "$ac_dir" && ac_dir=.
6048 if test -f $ac_dir/$ac_word; then
6049 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
6050 ac_prog_rejected=yes
6051 continue
6052 fi
6053 ac_cv_prog_CC="cc"
6054 break
6055 fi
6056 done
6057 IFS="$ac_save_ifs"
6058if test $ac_prog_rejected = yes; then
6059 # We found a bogon in the path, so make sure we never use it.
6060 set dummy $ac_cv_prog_CC
6061 shift
6062 if test $# -gt 0; then
6063 # We chose a different compiler from the bogus one.
6064 # However, it has the same basename, so the bogon will be chosen
6065 # first if we set CC to just the basename; use the full file name.
6066 shift
6067 set dummy "$ac_dir/$ac_word" "$@"
6068 shift
6069 ac_cv_prog_CC="$@"
6070 fi
6071fi
6072fi
6073fi
6074CC="$ac_cv_prog_CC"
6075if test -n "$CC"; then
6076 echo "$ac_t""$CC" 1>&6
6077else
6078 echo "$ac_t""no" 1>&6
6079fi
6080
6081 if test -z "$CC"; then
6082 case "`uname -s`" in
6083 *win32* | *WIN32*)
6084 # Extract the first word of "cl", so it can be a program name with args.
6085set dummy cl; ac_word=$2
6086echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
32832908 6087echo "configure:6088: checking for $ac_word" >&5
10f2d63a
VZ
6088if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
6089 echo $ac_n "(cached) $ac_c" 1>&6
6090else
6091 if test -n "$CC"; then
6092 ac_cv_prog_CC="$CC" # Let the user override the test.
6093else
6094 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6095 ac_dummy="$PATH"
6096 for ac_dir in $ac_dummy; do
6097 test -z "$ac_dir" && ac_dir=.
6098 if test -f $ac_dir/$ac_word; then
6099 ac_cv_prog_CC="cl"
6100 break
6101 fi
6102 done
6103 IFS="$ac_save_ifs"
6104fi
6105fi
6106CC="$ac_cv_prog_CC"
6107if test -n "$CC"; then
6108 echo "$ac_t""$CC" 1>&6
6109else
6110 echo "$ac_t""no" 1>&6
6111fi
6112 ;;
6113 esac
6114 fi
6115 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
6116fi
6117
6118echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
32832908 6119echo "configure:6120: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
10f2d63a
VZ
6120
6121ac_ext=c
6122# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6123ac_cpp='$CPP $CPPFLAGS'
6124ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6125ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6126cross_compiling=$ac_cv_prog_cc_cross
6127
6128cat > conftest.$ac_ext << EOF
6129
32832908 6130#line 6131 "configure"
10f2d63a
VZ
6131#include "confdefs.h"
6132
6133main(){return(0);}
6134EOF
32832908 6135if { (eval echo configure:6136: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
6136 ac_cv_prog_cc_works=yes
6137 # If we can't run a trivial program, we are probably using a cross compiler.
6138 if (./conftest; exit) 2>/dev/null; then
6139 ac_cv_prog_cc_cross=no
6140 else
6141 ac_cv_prog_cc_cross=yes
6142 fi
6143else
6144 echo "configure: failed program was:" >&5
6145 cat conftest.$ac_ext >&5
6146 ac_cv_prog_cc_works=no
6147fi
6148rm -fr conftest*
6149ac_ext=c
6150# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6151ac_cpp='$CPP $CPPFLAGS'
6152ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6153ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6154cross_compiling=$ac_cv_prog_cc_cross
6155
6156echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
6157if test $ac_cv_prog_cc_works = no; then
6158 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
6159fi
6160echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
32832908 6161echo "configure:6162: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
10f2d63a
VZ
6162echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
6163cross_compiling=$ac_cv_prog_cc_cross
6164
6165echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
32832908 6166echo "configure:6167: checking whether we are using GNU C" >&5
10f2d63a
VZ
6167if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
6168 echo $ac_n "(cached) $ac_c" 1>&6
6169else
6170 cat > conftest.c <<EOF
6171#ifdef __GNUC__
6172 yes;
6173#endif
6174EOF
32832908 6175if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:6176: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
10f2d63a
VZ
6176 ac_cv_prog_gcc=yes
6177else
6178 ac_cv_prog_gcc=no
6179fi
6180fi
6181
6182echo "$ac_t""$ac_cv_prog_gcc" 1>&6
6183
6184if test $ac_cv_prog_gcc = yes; then
6185 GCC=yes
6186else
6187 GCC=
6188fi
6189
6190ac_test_CFLAGS="${CFLAGS+set}"
6191ac_save_CFLAGS="$CFLAGS"
6192CFLAGS=
6193echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
32832908 6194echo "configure:6195: checking whether ${CC-cc} accepts -g" >&5
10f2d63a
VZ
6195if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
6196 echo $ac_n "(cached) $ac_c" 1>&6
6197else
6198 echo 'void f(){}' > conftest.c
6199if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
6200 ac_cv_prog_cc_g=yes
6201else
6202 ac_cv_prog_cc_g=no
6203fi
6204rm -f conftest*
6205
6206fi
6207
6208echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
6209if test "$ac_test_CFLAGS" = set; then
6210 CFLAGS="$ac_save_CFLAGS"
6211elif test $ac_cv_prog_cc_g = yes; then
6212 if test "$GCC" = yes; then
6213 CFLAGS="-g -O2"
6214 else
6215 CFLAGS="-g"
6216 fi
6217else
6218 if test "$GCC" = yes; then
6219 CFLAGS="-O2"
6220 else
6221 CFLAGS=
6222 fi
6223fi
6224
6225
6226CFLAGS=`echo "$CFLAGS" | sed 's/-g//g'`
6227
6228echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
32832908 6229echo "configure:6230: checking how to run the C preprocessor" >&5
10f2d63a
VZ
6230# On Suns, sometimes $CPP names a directory.
6231if test -n "$CPP" && test -d "$CPP"; then
6232 CPP=
6233fi
6234if test -z "$CPP"; then
6235if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
6236 echo $ac_n "(cached) $ac_c" 1>&6
6237else
6238 # This must be in double quotes, not single quotes, because CPP may get
6239 # substituted into the Makefile and "${CC-cc}" will confuse make.
6240 CPP="${CC-cc} -E"
6241 # On the NeXT, cc -E runs the code through the compiler's parser,
6242 # not just through cpp.
6243 cat > conftest.$ac_ext <<EOF
32832908 6244#line 6245 "configure"
10f2d63a
VZ
6245#include "confdefs.h"
6246#include <assert.h>
6247Syntax Error
6248EOF
6249ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
32832908 6250{ (eval echo configure:6251: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
6251ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6252if test -z "$ac_err"; then
6253 :
6254else
6255 echo "$ac_err" >&5
6256 echo "configure: failed program was:" >&5
6257 cat conftest.$ac_ext >&5
6258 rm -rf conftest*
6259 CPP="${CC-cc} -E -traditional-cpp"
6260 cat > conftest.$ac_ext <<EOF
32832908 6261#line 6262 "configure"
10f2d63a
VZ
6262#include "confdefs.h"
6263#include <assert.h>
6264Syntax Error
6265EOF
6266ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
32832908 6267{ (eval echo configure:6268: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
6268ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6269if test -z "$ac_err"; then
6270 :
6271else
6272 echo "$ac_err" >&5
6273 echo "configure: failed program was:" >&5
6274 cat conftest.$ac_ext >&5
6275 rm -rf conftest*
6276 CPP="${CC-cc} -nologo -E"
6277 cat > conftest.$ac_ext <<EOF
32832908 6278#line 6279 "configure"
10f2d63a
VZ
6279#include "confdefs.h"
6280#include <assert.h>
6281Syntax Error
6282EOF
6283ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
32832908 6284{ (eval echo configure:6285: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
6285ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6286if test -z "$ac_err"; then
6287 :
6288else
6289 echo "$ac_err" >&5
6290 echo "configure: failed program was:" >&5
6291 cat conftest.$ac_ext >&5
6292 rm -rf conftest*
6293 CPP=/lib/cpp
6294fi
6295rm -f conftest*
6296fi
6297rm -f conftest*
6298fi
6299rm -f conftest*
6300 ac_cv_prog_CPP="$CPP"
6301fi
6302 CPP="$ac_cv_prog_CPP"
6303else
6304 ac_cv_prog_CPP="$CPP"
6305fi
6306echo "$ac_t""$CPP" 1>&6
6307
6308
6309if test $ac_cv_prog_gcc = yes; then
6310 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
32832908 6311echo "configure:6312: checking whether ${CC-cc} needs -traditional" >&5
10f2d63a
VZ
6312if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
6313 echo $ac_n "(cached) $ac_c" 1>&6
6314else
6315 ac_pattern="Autoconf.*'x'"
6316 cat > conftest.$ac_ext <<EOF
32832908 6317#line 6318 "configure"
10f2d63a
VZ
6318#include "confdefs.h"
6319#include <sgtty.h>
6320Autoconf TIOCGETP
6321EOF
6322if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6323 egrep "$ac_pattern" >/dev/null 2>&1; then
6324 rm -rf conftest*
6325 ac_cv_prog_gcc_traditional=yes
6326else
6327 rm -rf conftest*
6328 ac_cv_prog_gcc_traditional=no
6329fi
6330rm -f conftest*
6331
6332
6333 if test $ac_cv_prog_gcc_traditional = no; then
6334 cat > conftest.$ac_ext <<EOF
32832908 6335#line 6336 "configure"
10f2d63a
VZ
6336#include "confdefs.h"
6337#include <termio.h>
6338Autoconf TCGETA
6339EOF
6340if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6341 egrep "$ac_pattern" >/dev/null 2>&1; then
6342 rm -rf conftest*
6343 ac_cv_prog_gcc_traditional=yes
6344fi
6345rm -f conftest*
6346
6347 fi
6348fi
6349
6350echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
6351 if test $ac_cv_prog_gcc_traditional = yes; then
6352 CC="$CC -traditional"
6353 fi
6354fi
6355
6356
6357
6358ac_ext=C
6359# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6360ac_cpp='$CXXCPP $CPPFLAGS'
6361ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6362ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6363cross_compiling=$ac_cv_prog_cxx_cross
6364
6365
6366for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
6367do
6368# Extract the first word of "$ac_prog", so it can be a program name with args.
6369set dummy $ac_prog; ac_word=$2
6370echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
32832908 6371echo "configure:6372: checking for $ac_word" >&5
10f2d63a
VZ
6372if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
6373 echo $ac_n "(cached) $ac_c" 1>&6
6374else
6375 if test -n "$CXX"; then
6376 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6377else
6378 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6379 ac_dummy="$PATH"
6380 for ac_dir in $ac_dummy; do
6381 test -z "$ac_dir" && ac_dir=.
6382 if test -f $ac_dir/$ac_word; then
6383 ac_cv_prog_CXX="$ac_prog"
6384 break
6385 fi
6386 done
6387 IFS="$ac_save_ifs"
6388fi
6389fi
6390CXX="$ac_cv_prog_CXX"
6391if test -n "$CXX"; then
6392 echo "$ac_t""$CXX" 1>&6
6393else
6394 echo "$ac_t""no" 1>&6
6395fi
6396
6397test -n "$CXX" && break
6398done
6399test -n "$CXX" || CXX="gcc"
6400
6401
6402echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
32832908 6403echo "configure:6404: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
10f2d63a
VZ
6404
6405ac_ext=C
6406# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6407ac_cpp='$CXXCPP $CPPFLAGS'
6408ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6409ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6410cross_compiling=$ac_cv_prog_cxx_cross
6411
6412cat > conftest.$ac_ext << EOF
6413
32832908 6414#line 6415 "configure"
10f2d63a
VZ
6415#include "confdefs.h"
6416
6417int main(){return(0);}
6418EOF
32832908 6419if { (eval echo configure:6420: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
6420 ac_cv_prog_cxx_works=yes
6421 # If we can't run a trivial program, we are probably using a cross compiler.
6422 if (./conftest; exit) 2>/dev/null; then
6423 ac_cv_prog_cxx_cross=no
6424 else
6425 ac_cv_prog_cxx_cross=yes
6426 fi
6427else
6428 echo "configure: failed program was:" >&5
6429 cat conftest.$ac_ext >&5
6430 ac_cv_prog_cxx_works=no
6431fi
6432rm -fr conftest*
6433ac_ext=C
6434# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6435ac_cpp='$CXXCPP $CPPFLAGS'
6436ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6437ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6438cross_compiling=$ac_cv_prog_cxx_cross
6439
6440echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
6441if test $ac_cv_prog_cxx_works = no; then
6442 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
6443fi
6444echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
32832908 6445echo "configure:6446: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
10f2d63a
VZ
6446echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
6447cross_compiling=$ac_cv_prog_cxx_cross
6448
6449echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
32832908 6450echo "configure:6451: checking whether we are using GNU C++" >&5
10f2d63a
VZ
6451if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
6452 echo $ac_n "(cached) $ac_c" 1>&6
6453else
6454 cat > conftest.C <<EOF
6455#ifdef __GNUC__
6456 yes;
6457#endif
6458EOF
32832908 6459if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:6460: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
10f2d63a
VZ
6460 ac_cv_prog_gxx=yes
6461else
6462 ac_cv_prog_gxx=no
6463fi
6464fi
6465
6466echo "$ac_t""$ac_cv_prog_gxx" 1>&6
6467
6468if test $ac_cv_prog_gxx = yes; then
6469 GXX=yes
6470else
6471 GXX=
6472fi
6473
6474ac_test_CXXFLAGS="${CXXFLAGS+set}"
6475ac_save_CXXFLAGS="$CXXFLAGS"
6476CXXFLAGS=
6477echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
32832908 6478echo "configure:6479: checking whether ${CXX-g++} accepts -g" >&5
10f2d63a
VZ
6479if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
6480 echo $ac_n "(cached) $ac_c" 1>&6
6481else
6482 echo 'void f(){}' > conftest.cc
6483if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
6484 ac_cv_prog_cxx_g=yes
6485else
6486 ac_cv_prog_cxx_g=no
6487fi
6488rm -f conftest*
6489
6490fi
6491
6492echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
6493if test "$ac_test_CXXFLAGS" = set; then
6494 CXXFLAGS="$ac_save_CXXFLAGS"
6495elif test $ac_cv_prog_cxx_g = yes; then
6496 if test "$GXX" = yes; then
6497 CXXFLAGS="-g -O2"
6498 else
6499 CXXFLAGS="-g"
6500 fi
6501else
6502 if test "$GXX" = yes; then
6503 CXXFLAGS="-O2"
6504 else
6505 CXXFLAGS=
6506 fi
6507fi
6508
6509
6510echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
32832908 6511echo "configure:6512: checking how to run the C++ preprocessor" >&5
10f2d63a
VZ
6512if test -z "$CXXCPP"; then
6513if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
6514 echo $ac_n "(cached) $ac_c" 1>&6
6515else
6516 ac_ext=C
6517# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6518ac_cpp='$CXXCPP $CPPFLAGS'
6519ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6520ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6521cross_compiling=$ac_cv_prog_cxx_cross
6522 CXXCPP="${CXX-g++} -E"
6523 cat > conftest.$ac_ext <<EOF
32832908 6524#line 6525 "configure"
10f2d63a
VZ
6525#include "confdefs.h"
6526#include <stdlib.h>
6527EOF
6528ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
32832908 6529{ (eval echo configure:6530: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
6530ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6531if test -z "$ac_err"; then
6532 :
6533else
6534 echo "$ac_err" >&5
6535 echo "configure: failed program was:" >&5
6536 cat conftest.$ac_ext >&5
6537 rm -rf conftest*
6538 CXXCPP=/lib/cpp
6539fi
6540rm -f conftest*
6541 ac_cv_prog_CXXCPP="$CXXCPP"
6542ac_ext=C
6543# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6544ac_cpp='$CXXCPP $CPPFLAGS'
6545ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6546ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6547cross_compiling=$ac_cv_prog_cxx_cross
6548fi
6549fi
6550CXXCPP="$ac_cv_prog_CXXCPP"
6551echo "$ac_t""$CXXCPP" 1>&6
6552
6553
6554CXXFLAGS=`echo "$CXXFLAGS" | sed 's/-g//g'`
6555
6556ac_ext=c
6557# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6558ac_cpp='$CPP $CPPFLAGS'
6559ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6560ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6561cross_compiling=$ac_cv_prog_cc_cross
6562
6563
6564# Extract the first word of "ranlib", so it can be a program name with args.
6565set dummy ranlib; ac_word=$2
6566echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
32832908 6567echo "configure:6568: checking for $ac_word" >&5
10f2d63a
VZ
6568if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
6569 echo $ac_n "(cached) $ac_c" 1>&6
6570else
6571 if test -n "$RANLIB"; then
6572 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6573else
6574 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6575 ac_dummy="$PATH"
6576 for ac_dir in $ac_dummy; do
6577 test -z "$ac_dir" && ac_dir=.
6578 if test -f $ac_dir/$ac_word; then
6579 ac_cv_prog_RANLIB="ranlib"
6580 break
6581 fi
6582 done
6583 IFS="$ac_save_ifs"
6584 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
6585fi
6586fi
6587RANLIB="$ac_cv_prog_RANLIB"
6588if test -n "$RANLIB"; then
6589 echo "$ac_t""$RANLIB" 1>&6
6590else
6591 echo "$ac_t""no" 1>&6
6592fi
6593
6594
6595# Extract the first word of "ar", so it can be a program name with args.
6596set dummy ar; ac_word=$2
6597echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
32832908 6598echo "configure:6599: checking for $ac_word" >&5
10f2d63a
VZ
6599if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
6600 echo $ac_n "(cached) $ac_c" 1>&6
6601else
6602 if test -n "$AR"; then
6603 ac_cv_prog_AR="$AR" # Let the user override the test.
6604else
6605 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6606 ac_dummy="$PATH"
6607 for ac_dir in $ac_dummy; do
6608 test -z "$ac_dir" && ac_dir=.
6609 if test -f $ac_dir/$ac_word; then
6610 ac_cv_prog_AR="ar"
6611 break
6612 fi
6613 done
6614 IFS="$ac_save_ifs"
6615 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
6616fi
6617fi
6618AR="$ac_cv_prog_AR"
6619if test -n "$AR"; then
6620 echo "$ac_t""$AR" 1>&6
6621else
6622 echo "$ac_t""no" 1>&6
6623fi
6624
6625
6626# Find a good install program. We prefer a C program (faster),
6627# so one script is as good as another. But avoid the broken or
6628# incompatible versions:
6629# SysV /etc/install, /usr/sbin/install
6630# SunOS /usr/etc/install
6631# IRIX /sbin/install
6632# AIX /bin/install
6633# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6634# AFS /usr/afsws/bin/install, which mishandles nonexistent args
6635# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6636# ./install, which can be erroneously created by make from ./install.sh.
6637echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
32832908 6638echo "configure:6639: checking for a BSD compatible install" >&5
10f2d63a
VZ
6639if test -z "$INSTALL"; then
6640if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
6641 echo $ac_n "(cached) $ac_c" 1>&6
6642else
6643 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
6644 for ac_dir in $PATH; do
6645 # Account for people who put trailing slashes in PATH elements.
6646 case "$ac_dir/" in
6647 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
6648 *)
6649 # OSF1 and SCO ODT 3.0 have their own names for install.
6650 # Don't use installbsd from OSF since it installs stuff as root
6651 # by default.
6652 for ac_prog in ginstall scoinst install; do
6653 if test -f $ac_dir/$ac_prog; then
6654 if test $ac_prog = install &&
6655 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
6656 # AIX install. It has an incompatible calling convention.
6657 :
6658 else
6659 ac_cv_path_install="$ac_dir/$ac_prog -c"
6660 break 2
6661 fi
6662 fi
6663 done
6664 ;;
6665 esac
6666 done
6667 IFS="$ac_save_IFS"
6668
6669fi
6670 if test "${ac_cv_path_install+set}" = set; then
6671 INSTALL="$ac_cv_path_install"
6672 else
6673 # As a last resort, use the slow shell script. We don't cache a
6674 # path for INSTALL within a source directory, because that will
6675 # break other packages using the cache if that directory is
6676 # removed, or if the path is relative.
6677 INSTALL="$ac_install_sh"
6678 fi
6679fi
6680echo "$ac_t""$INSTALL" 1>&6
6681
6682# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6683# It thinks the first close brace ends the variable substitution.
6684test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6685
6686test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
6687
6688test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6689
6690
6691# Extract the first word of "strip", so it can be a program name with args.
6692set dummy strip; ac_word=$2
6693echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
32832908 6694echo "configure:6695: checking for $ac_word" >&5
10f2d63a
VZ
6695if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
6696 echo $ac_n "(cached) $ac_c" 1>&6
6697else
6698 if test -n "$STRIP"; then
6699 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6700else
6701 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6702 ac_dummy="$PATH"
6703 for ac_dir in $ac_dummy; do
6704 test -z "$ac_dir" && ac_dir=.
6705 if test -f $ac_dir/$ac_word; then
6706 ac_cv_prog_STRIP="strip"
6707 break
6708 fi
6709 done
6710 IFS="$ac_save_ifs"
6711 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true"
6712fi
6713fi
6714STRIP="$ac_cv_prog_STRIP"
6715if test -n "$STRIP"; then
6716 echo "$ac_t""$STRIP" 1>&6
6717else
6718 echo "$ac_t""no" 1>&6
6719fi
6720
6721
6722echo $ac_n "checking "make for VPATH support"""... $ac_c" 1>&6
32832908 6723echo "configure:6724: checking "make for VPATH support"" >&5
10f2d63a
VZ
6724cat - << EOF > confMake
6725check : file
6726 cp \$? \$@
6727 cp \$? final_file
6728EOF
6729
6730if test ! -d sub ; then
6731 mkdir sub
6732fi
6733echo dummy > sub/file
6734${MAKE-make} -f confMake VPATH=sub 2> config.log > /dev/null
6735RESULT=$?
6736rm -f sub/file check final_file confMake
6737rmdir sub
6738if test "$RESULT" = 0; then
6739 echo "$ac_t""yes" 1>&6
6740else
6741 echo "$ac_t""no" 1>&6
6742 { echo "configure: error: You need a make-utility that is able to use the variable
6743VPATH correctly.
6744If your version of make does not support VPATH correctly" 1>&2; exit 1; }
6745fi
6746
6747for ac_prog in 'bison -y' byacc
6748do
6749# Extract the first word of "$ac_prog", so it can be a program name with args.
6750set dummy $ac_prog; ac_word=$2
6751echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
32832908 6752echo "configure:6753: checking for $ac_word" >&5
10f2d63a
VZ
6753if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
6754 echo $ac_n "(cached) $ac_c" 1>&6
6755else
6756 if test -n "$YACC"; then
6757 ac_cv_prog_YACC="$YACC" # Let the user override the test.
6758else
6759 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6760 ac_dummy="$PATH"
6761 for ac_dir in $ac_dummy; do
6762 test -z "$ac_dir" && ac_dir=.
6763 if test -f $ac_dir/$ac_word; then
6764 ac_cv_prog_YACC="$ac_prog"
6765 break
6766 fi
6767 done
6768 IFS="$ac_save_ifs"
6769fi
6770fi
6771YACC="$ac_cv_prog_YACC"
6772if test -n "$YACC"; then
6773 echo "$ac_t""$YACC" 1>&6
6774else
6775 echo "$ac_t""no" 1>&6
6776fi
6777
6778test -n "$YACC" && break
6779done
6780test -n "$YACC" || YACC="yacc"
6781
6782
6783# Extract the first word of "flex", so it can be a program name with args.
6784set dummy flex; ac_word=$2
6785echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
32832908 6786echo "configure:6787: checking for $ac_word" >&5
10f2d63a
VZ
6787if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
6788 echo $ac_n "(cached) $ac_c" 1>&6
6789else
6790 if test -n "$LEX"; then
6791 ac_cv_prog_LEX="$LEX" # Let the user override the test.
6792else
6793 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6794 ac_dummy="$PATH"
6795 for ac_dir in $ac_dummy; do
6796 test -z "$ac_dir" && ac_dir=.
6797 if test -f $ac_dir/$ac_word; then
6798 ac_cv_prog_LEX="flex"
6799 break
6800 fi
6801 done
6802 IFS="$ac_save_ifs"
6803 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
6804fi
6805fi
6806LEX="$ac_cv_prog_LEX"
6807if test -n "$LEX"; then
6808 echo "$ac_t""$LEX" 1>&6
6809else
6810 echo "$ac_t""no" 1>&6
6811fi
6812
6813if test -z "$LEXLIB"
6814then
6815 case "$LEX" in
6816 flex*) ac_lib=fl ;;
6817 *) ac_lib=l ;;
6818 esac
6819 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
32832908 6820echo "configure:6821: checking for yywrap in -l$ac_lib" >&5
10f2d63a
VZ
6821ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
6822if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6823 echo $ac_n "(cached) $ac_c" 1>&6
6824else
6825 ac_save_LIBS="$LIBS"
6826LIBS="-l$ac_lib $LIBS"
6827cat > conftest.$ac_ext <<EOF
32832908 6828#line 6829 "configure"
10f2d63a
VZ
6829#include "confdefs.h"
6830/* Override any gcc2 internal prototype to avoid an error. */
6831/* We use char because int might match the return type of a gcc2
6832 builtin and then its argument prototype would still apply. */
6833char yywrap();
6834
6835int main() {
6836yywrap()
6837; return 0; }
6838EOF
32832908 6839if { (eval echo configure:6840: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
6840 rm -rf conftest*
6841 eval "ac_cv_lib_$ac_lib_var=yes"
6842else
6843 echo "configure: failed program was:" >&5
6844 cat conftest.$ac_ext >&5
6845 rm -rf conftest*
6846 eval "ac_cv_lib_$ac_lib_var=no"
6847fi
6848rm -f conftest*
6849LIBS="$ac_save_LIBS"
6850
6851fi
6852if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6853 echo "$ac_t""yes" 1>&6
6854 LEXLIB="-l$ac_lib"
6855else
6856 echo "$ac_t""no" 1>&6
6857fi
6858
6859fi
6860
6861
6862echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
32832908 6863echo "configure:6864: checking whether ln -s works" >&5
10f2d63a
VZ
6864if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
6865 echo $ac_n "(cached) $ac_c" 1>&6
6866else
6867 rm -f conftestdata
6868if ln -s X conftestdata 2>/dev/null
6869then
6870 rm -f conftestdata
6871 ac_cv_prog_LN_S="ln -s"
6872else
6873 ac_cv_prog_LN_S=ln
6874fi
6875fi
6876LN_S="$ac_cv_prog_LN_S"
6877if test "$ac_cv_prog_LN_S" = "ln -s"; then
6878 echo "$ac_t""yes" 1>&6
6879else
6880 echo "$ac_t""no" 1>&6
6881fi
6882
6883
6884
6885SEARCH_INCLUDE="\
6886 /usr/local/include \
6887 \
6888 /usr/Motif-1.2/include \
6889 /usr/Motif-2.1/include \
6890 \
6891 /usr/include/Motif1.2 \
6892 /opt/xpm/include/X11 \
6893 /opt/GBxpm/include/ \
6894 /opt/GBxpm/X11/include/ \
6895 \
6896 /usr/Motif1.2/include \
6897 /usr/dt/include \
afc31813
VZ
6898 /usr/openwin/include \
6899 \
10f2d63a
VZ
6900 /usr/include/Xm \
6901 \
6902 /usr/X11R6/include \
afc31813 6903 /usr/X11R6.4/include \
10f2d63a
VZ
6904 /usr/X11R5/include \
6905 /usr/X11R4/include \
6906 \
10f2d63a
VZ
6907 /usr/include/X11R6 \
6908 /usr/include/X11R5 \
6909 /usr/include/X11R4 \
6910 \
6911 /usr/local/X11R6/include \
6912 /usr/local/X11R5/include \
6913 /usr/local/X11R4/include \
6914 \
6915 /usr/local/include/X11R6 \
6916 /usr/local/include/X11R5 \
6917 /usr/local/include/X11R4 \
6918 \
6919 /usr/X11/include \
6920 /usr/include/X11 \
6921 /usr/local/X11/include \
6922 /usr/local/include/X11 \
6923 \
6924 /usr/X386/include \
6925 /usr/x386/include \
6926 /usr/XFree86/include/X11 \
6927 \
cf27ef00 6928 X:/XFree86/include \
ec14dd32
VZ
6929 X:/XFree86/include/X11 \
6930 \
10f2d63a
VZ
6931 /usr/include/gtk \
6932 /usr/local/include/gtk \
6933 /usr/include/glib \
6934 /usr/local/include/glib \
6935 \
6936 /usr/include/qt \
6937 /usr/local/include/qt \
6938 \
6939 /usr/include/windows \
6940 /usr/include/wine \
6941 /usr/local/include/wine \
6942 \
6943 /usr/unsupported/include \
6944 /usr/athena/include \
6945 /usr/local/x11r5/include \
6946 /usr/lpp/Xamples/include \
6947 \
10f2d63a 6948 /usr/openwin/share/include \
928b5c08
VZ
6949 \
6950 /usr/include"
10f2d63a
VZ
6951
6952SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s/include/lib/g` "
6953
6954
6955cat > confcache <<\EOF
6956# This file is a shell script that caches the results of configure
6957# tests run on this system so they can be shared between configure
6958# scripts and configure runs. It is not useful on other systems.
6959# If it contains results you don't want to keep, you may remove or edit it.
6960#
6961# By default, configure uses ./config.cache as the cache file,
6962# creating it if it does not exist already. You can give configure
6963# the --cache-file=FILE option to use a different cache file; that is
6964# what configure does when it calls configure scripts in
6965# subdirectories, so they share the cache.
6966# Giving --cache-file=/dev/null disables caching, for debugging configure.
6967# config.status only pays attention to the cache file if you give it the
6968# --recheck option to rerun configure.
6969#
6970EOF
6971# The following way of writing the cache mishandles newlines in values,
6972# but we know of no workaround that is simple, portable, and efficient.
6973# So, don't put newlines in cache variables' values.
6974# Ultrix sh set writes to stderr and can't be redirected directly,
6975# and sets the high bit in the cache file unless we assign to the vars.
6976(set) 2>&1 |
6977 case `(ac_space=' '; set | grep ac_space) 2>&1` in
6978 *ac_space=\ *)
6979 # `set' does not quote correctly, so add quotes (double-quote substitution
6980 # turns \\\\ into \\, and sed turns \\ into \).
6981 sed -n \
6982 -e "s/'/'\\\\''/g" \
6983 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
6984 ;;
6985 *)
6986 # `set' quotes correctly as required by POSIX, so do not add quotes.
6987 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
6988 ;;
6989 esac >> confcache
6990if cmp -s $cache_file confcache; then
6991 :
6992else
6993 if test -w $cache_file; then
6994 echo "updating cache $cache_file"
6995 cat confcache > $cache_file
6996 else
6997 echo "not updating unwritable cache $cache_file"
6998 fi
6999fi
7000rm -f confcache
7001
7002
7003
dad6c0ea
VZ
7004AFMINSTALL=
7005
10f2d63a
VZ
7006if test "$wxUSE_GUI" = "yes"; then
7007
dad6c0ea
VZ
7008USE_GUI=1
7009
10f2d63a
VZ
7010TOOLKIT=
7011TOOLKIT_INCLUDE=
7012
7013GUIOBJS=
7014COMMONOBJS=
7015GENERICOBJS=
7016
7017GUI_TK_LIBRARY=
7018GUI_TK_LINK=
7019
7020WXGTK12=
13111b2a 7021WXGTK13=
10f2d63a
VZ
7022
7023WXWINE=
7024
10f2d63a
VZ
7025if test "$wxUSE_CYGWIN" = 1 || test "$wxUSE_MINGW" = 1 ; then
7026 if test "$cross_compiling" = "yes" ; then
7027 echo "configure: warning: Cross compiling --- skipping windows.h check" 1>&2
7028 else
7029 echo $ac_n "checking for Windows headers""... $ac_c" 1>&6
32832908 7030echo "configure:7031: checking for Windows headers" >&5
10f2d63a
VZ
7031
7032ac_find_includes=
7033for ac_dir in $SEARCH_INCLUDE;
7034 do
7035 if test -f "$ac_dir/windows.h"; then
7036 ac_find_includes=$ac_dir
7037 break
7038 fi
7039 done
7040
7041 if test "$ac_find_includes" != "" ; then
7042 echo "$ac_t""found $ac_find_includes" 1>&6
7043 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE -I$ac_find_includes"
7044 else
7045 echo "$ac_t""no" 1>&6
7046 { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; }
7047 fi
7048 fi
7049
7050 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS msw"
7051 LIBS="$LIBS -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lctl3d32 -lcrtdll -ladvapi32 -lwsock32"
7052
32832908
VZ
7053 if test "$wxUSE_ODBC" = "yes" ; then
7054 LIBS="$LIBS -lodbc32 -lole32 -loleaut32"
7055 fi
7056
10f2d63a
VZ
7057 if test "$wxUSE_MINGW" = 1; then
7058 LDFLAGS="$LDFLAGS -mwindows"
7059 fi
7060
7061 TOOLKIT=MSW
7062
7063 GUIOBJS="\$(MSW_GUIOBJS)"
7064 GUIHEADERS="\$(MSW_HEADERS)"
7065 COMMONOBJS="\$(MSW_COMMONOBJS)"
7066 GENERICOBJS="\$(MSW_GENERICOBJS)"
7067 UNIXOBJS=
7068 GUIDIST=MSW_DIST
32832908
VZ
7069
7070 RCINCSWITCH="--include-dir"
7071 RCDEFSWITCH="--define"
7072 RCPREPROCESSOR="--preprocessor \"\$(CC) -c -E -xc-header -DRC_INVOKED\""
7073 RCINPUTSWITCH="-i"
7074 RCOUTPUTSWITCH="-o"
7075 RESFLAGS="$RCPREPROCESSOR $RCINCSWITCH \$(top_srcdir)/include $RCINCSWITCH \$(top_srcdir)/\$(program_dir) $RCDEFSWITCH __WIN32__ $RCDEFSWITCH __WIN95__ $RCDEFSWITCH __GNUWIN32__"
7076
7077 RESPROGRAM="\$(RES_PROGRAM)"
7078
10f2d63a
VZ
7079fi
7080
7081if test "$wxUSE_GTK" = 1; then
7082
7083 if test x$gtk_config_exec_prefix != x ; then
7084 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
7085 if test x${GTK_CONFIG+set} != xset ; then
7086 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
7087 fi
7088 fi
7089 if test x$gtk_config_prefix != x ; then
7090 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
7091 if test x${GTK_CONFIG+set} != xset ; then
7092 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
7093 fi
7094 fi
7095
7096 # Extract the first word of "gtk-config", so it can be a program name with args.
7097set dummy gtk-config; ac_word=$2
7098echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
32832908 7099echo "configure:7100: checking for $ac_word" >&5
10f2d63a
VZ
7100if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
7101 echo $ac_n "(cached) $ac_c" 1>&6
7102else
7103 case "$GTK_CONFIG" in
7104 /*)
7105 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
7106 ;;
7107 ?:/*)
7108 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
7109 ;;
7110 *)
7111 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7112 ac_dummy="$PATH"
7113 for ac_dir in $ac_dummy; do
7114 test -z "$ac_dir" && ac_dir=.
7115 if test -f $ac_dir/$ac_word; then
7116 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
7117 break
7118 fi
7119 done
7120 IFS="$ac_save_ifs"
7121 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
7122 ;;
7123esac
7124fi
7125GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
7126if test -n "$GTK_CONFIG"; then
7127 echo "$ac_t""$GTK_CONFIG" 1>&6
7128else
7129 echo "$ac_t""no" 1>&6
7130fi
7131
04165bec 7132 min_gtk_version=1.2.3
10f2d63a 7133 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
32832908 7134echo "configure:7135: checking for GTK - version >= $min_gtk_version" >&5
10f2d63a
VZ
7135 no_gtk=""
7136 if test "$GTK_CONFIG" != "no" ; then
7137 GTK_CFLAGS=`$GTK_CONFIG --cflags`
2224580a 7138 GTK_LIBS=`$GTK_CONFIG --libs gthread`
10f2d63a
VZ
7139 ac_save_CFLAGS="$CFLAGS"
7140 ac_save_LIBS="$LIBS"
7141 CFLAGS="$CFLAGS $GTK_CFLAGS"
7142 LIBS="$LIBS $GTK_LIBS"
7143 if test "$cross_compiling" = yes; then
7144 echo $ac_n "cross compiling; assumed OK... $ac_c"
7145else
7146 cat > conftest.$ac_ext <<EOF
32832908 7147#line 7148 "configure"
10f2d63a
VZ
7148#include "confdefs.h"
7149
7150#include <gtk/gtk.h>
f49f2b0c 7151#include <gtk/gtkfeatures.h>
10f2d63a 7152#include <stdio.h>
32832908 7153#include <stdlib.h>
10f2d63a
VZ
7154
7155int
7156main ()
7157{
7158 int major, minor, micro;
7159
7160 if (sscanf("$min_gtk_version", "%d.%d.%d", &major, &minor, &micro) != 3) {
7161 printf("%s, bad version string\n", "$min_gtk_version");
7162 exit(1);
7163 }
7164
f49f2b0c
RR
7165 if ((GTK_MAJOR_VERSION != gtk_major_version) ||
7166 (GTK_MINOR_VERSION != gtk_minor_version) ||
7167 (GTK_MICRO_VERSION != gtk_micro_version)) {
7168 printf("Headers vs. library version mismatch!\n");
7169 exit(1);
7170 }
7171
10f2d63a
VZ
7172 if (gtk_minor_version == 1) return FALSE;
7173
7174 return !((gtk_major_version > major) ||
7175 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
7176 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)));
7177}
7178
7179EOF
32832908 7180if { (eval echo configure:7181: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10f2d63a
VZ
7181then
7182 :
7183else
7184 echo "configure: failed program was:" >&5
7185 cat conftest.$ac_ext >&5
7186 rm -fr conftest*
7187 no_gtk=yes
7188fi
7189rm -fr conftest*
7190fi
7191
7192 CFLAGS="$ac_save_CFLAGS"
7193 LIBS="$ac_save_LIBS"
7194 else
7195 no_gtk=yes
7196 fi
7197 if test "x$no_gtk" = x ; then
7198 echo "$ac_t""yes" 1>&6
7199 WXGTK12=1
7200 else
7201 echo "$ac_t""no" 1>&6
7202 GTK_CFLAGS=""
7203 GTK_LIBS=""
7e99ad86 7204 :
10f2d63a
VZ
7205 fi
7206
7207
7208
7209
7e99ad86
VZ
7210 if test "$WXGTK12" != 1; then
7211 { echo "configure: error:
7212 Please check that gtk-config is in path, the directory
7213 where GTK+ libraries are installed (returned by
7214 'gtk-config --libs' command) is in LD_LIBRARY_PATH or
7215 equivalent variable and GTK+ is version 1.2.3 or above.
7216 " 1>&2; exit 1; }
7217 fi
7218
7219
10f2d63a 7220 TOOLKIT_INCLUDE="$GTK_CFLAGS"
2224580a
VZ
7221
7222
7223 GUI_TK_LIBRARY="$GTK_LIBS"
7224
10f2d63a
VZ
7225 TOOLKIT=GTK
7226
dad6c0ea
VZ
7227 AFMINSTALL=afminstall
7228
10f2d63a
VZ
7229 GUIOBJS="\$(GTK_GUIOBJS)"
7230 GUIHEADERS="\$(GTK_HEADERS)"
7231 COMMONOBJS="\$(GTK_COMMONOBJS)"
7232 GENERICOBJS="\$(GTK_GENERICOBJS)"
7233 GUIDEPS="\$(GTK_GUIDEPS)"
7234 COMMONDEPS="\$(GTK_COMMONDEPS)"
7235 GENERICDEPS="\$(GTK_GENERICDEPS)"
7236 UNIXOBJS="\$(UNIX_OBJS)"
d9d8273d 7237 UNIXDEPS="\$(UNIX_DEPS)"
10f2d63a 7238 GUIDIST=GTK_DIST
7ec2881a 7239
2224580a 7240 echo $ac_n "checking for gdk_im_open in -lgdk""... $ac_c" 1>&6
32832908 7241echo "configure:7242: checking for gdk_im_open in -lgdk" >&5
7ec2881a
RR
7242ac_lib_var=`echo gdk'_'gdk_im_open | sed 'y%./+-%__p_%'`
7243if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7244 echo $ac_n "(cached) $ac_c" 1>&6
7245else
7246 ac_save_LIBS="$LIBS"
7247LIBS="-lgdk $LIBS"
7248cat > conftest.$ac_ext <<EOF
32832908 7249#line 7250 "configure"
7ec2881a
RR
7250#include "confdefs.h"
7251/* Override any gcc2 internal prototype to avoid an error. */
7252/* We use char because int might match the return type of a gcc2
7253 builtin and then its argument prototype would still apply. */
7254char gdk_im_open();
7255
7256int main() {
7257gdk_im_open()
7258; return 0; }
7259EOF
32832908 7260if { (eval echo configure:7261: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7ec2881a
RR
7261 rm -rf conftest*
7262 eval "ac_cv_lib_$ac_lib_var=yes"
7263else
7264 echo "configure: failed program was:" >&5
7265 cat conftest.$ac_ext >&5
7266 rm -rf conftest*
7267 eval "ac_cv_lib_$ac_lib_var=no"
7268fi
7269rm -f conftest*
7270LIBS="$ac_save_LIBS"
7271
7272fi
7273if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7274 echo "$ac_t""yes" 1>&6
7275 cat >> confdefs.h <<\EOF
7276#define HAVE_XIM 1
7277EOF
7278
7279else
7280 echo "$ac_t""no" 1>&6
7281fi
7282
10f2d63a
VZ
7283fi
7284
7285if test "$wxUSE_WINE" = 1; then
7286 echo $ac_n "checking for WINE includes""... $ac_c" 1>&6
32832908 7287echo "configure:7288: checking for WINE includes" >&5
10f2d63a
VZ
7288
7289ac_find_includes=
7290for ac_dir in $SEARCH_INCLUDE;
7291 do
7292 if test -f "$ac_dir/windows.h"; then
7293 ac_find_includes=$ac_dir
7294 break
7295 fi
7296 done
7297
7298 if test "$ac_find_includes" != "" ; then
7299 echo "$ac_t""found $ac_find_includes" 1>&6
7300 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE -I$ac_find_includes"
7301 else
7302 echo "$ac_t""no" 1>&6
7303 { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; }
7304 fi
7305
7306 XPM_LINK=""
7307 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
32832908 7308echo "configure:7309: checking for Xpm library" >&5
10f2d63a
VZ
7309
7310ac_find_libraries=
7311for ac_dir in $SEARCH_LIB;
7312 do
7313 for ac_extension in a so sl; do
7314 if test -f "$ac_dir/libXpm.$ac_extension"; then
7315 ac_find_libraries=$ac_dir
7316 break 2
7317 fi
7318 done
7319 done
7320
7321 if test "$ac_find_libraries" != "" ; then
7322 GUI_TK_LIBRARY="-L$ac_find_libraries"
7323 XPM_LINK="-lXpm"
7324 cat >> confdefs.h <<\EOF
7325#define wxHAVE_LIB_XPM 1
7326EOF
7327
7328 echo "$ac_t""found at $ac_find_libraries" 1>&6
7329 else
7330 echo "$ac_t""no" 1>&6
7331 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
7332 fi
7333
7334 MESA_LINK=""
7335 echo $ac_n "checking for Mesa library""... $ac_c" 1>&6
32832908 7336echo "configure:7337: checking for Mesa library" >&5
10f2d63a
VZ
7337
7338ac_find_libraries=
7339for ac_dir in $SEARCH_LIB;
7340 do
7341 for ac_extension in a so sl; do
7342 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
7343 ac_find_libraries=$ac_dir
7344 break 2
7345 fi
7346 done
7347 done
7348
7349 if test "$ac_find_libraries" != "" ; then
7350 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -L$ac_find_libraries"
7351 MESA_LINK="-lMesaGL"
7352 echo "$ac_t""found at $ac_find_libraries" 1>&6
7353 else
7354 { echo "configure: error: no" 1>&2; exit 1; }
7355 fi
7356
7357 GUI_TK_LINK="-lwine $MESA_LINK $XPM_LINK -lXxf86dga -lXxf86vm -lSM -lICE -lXext -lXmu -lX11 -lncurses -lm"
7358 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $GUI_TK_LINK"
7359 WXWINE=1
7360 TOOLKIT=MSW
7361
7362 GUIHEADERS="\$(MSW_HEADERS)"
7363 GUIOBJS="\$(MSW_GUIOBJS)"
7364 COMMONOBJS="\$(MSW_COMMONOBJS)"
7365 GENERICOBJS="\$(MSW_GENERICOBJS)"
7366 GUIDEPS="\$(MSW_GUIDEPS)"
7367 COMMONDEPS="\$(MSW_COMMONDEPS)"
7368 GENERICDEPS="\$(MSW_GENERICDEPS)"
7369 UNIXOBJS="\$(UNIX_OBJS)"
d9d8273d 7370 UNIXDEPS="\$(UNIX_DEPS)"
10f2d63a
VZ
7371 GUIDIST=MSW_DIST
7372fi
7373
7374if test "$wxUSE_MOTIF" = 1; then
ab9b9eab
VZ
7375 # If we find X, set shell vars x_includes and x_libraries to the
7376# paths, otherwise set no_x=yes.
7377# Uses ac_ vars as temps to allow command line to override cache and checks.
7378# --without-x overrides everything else, but does not touch the cache.
7379echo $ac_n "checking for X""... $ac_c" 1>&6
32832908 7380echo "configure:7381: checking for X" >&5
ab9b9eab
VZ
7381
7382# Check whether --with-x or --without-x was given.
7383if test "${with_x+set}" = set; then
7384 withval="$with_x"
7385 :
7386fi
ba337fe7 7387
ab9b9eab
VZ
7388# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7389if test "x$with_x" = xno; then
7390 # The user explicitly disabled X.
7391 have_x=disabled
7392else
7393 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
7394 # Both variables are already set.
7395 have_x=yes
7396 else
7397if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
7398 echo $ac_n "(cached) $ac_c" 1>&6
7399else
7400 # One or both of the vars are not set, and there is no cached value.
7401ac_x_includes=NO ac_x_libraries=NO
7402rm -fr conftestdir
7403if mkdir conftestdir; then
7404 cd conftestdir
7405 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
7406 cat > Imakefile <<'EOF'
7407acfindx:
7408 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
7409EOF
7410 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
7411 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7412 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
7413 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
10f2d63a 7414 for ac_extension in a so sl; do
ab9b9eab
VZ
7415 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
7416 test -f $ac_im_libdir/libX11.$ac_extension; then
7417 ac_im_usrlibdir=$ac_im_libdir; break
10f2d63a
VZ
7418 fi
7419 done
ab9b9eab
VZ
7420 # Screen out bogus values from the imake configuration. They are
7421 # bogus both because they are the default anyway, and because
7422 # using them would break gcc on systems where it needs fixed includes.
7423 case "$ac_im_incroot" in
7424 /usr/include) ;;
7425 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
7426 esac
7427 case "$ac_im_usrlibdir" in
7428 /usr/lib | /lib) ;;
7429 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
7430 esac
ba337fe7 7431 fi
ab9b9eab
VZ
7432 cd ..
7433 rm -fr conftestdir
7434fi
10f2d63a 7435
ab9b9eab
VZ
7436if test "$ac_x_includes" = NO; then
7437 # Guess where to find include files, by looking for this one X11 .h file.
7438 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
ba337fe7 7439
ab9b9eab
VZ
7440 # First, try using that file with no special directory specified.
7441cat > conftest.$ac_ext <<EOF
32832908 7442#line 7443 "configure"
ab9b9eab
VZ
7443#include "confdefs.h"
7444#include <$x_direct_test_include>
7445EOF
7446ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
32832908 7447{ (eval echo configure:7448: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ab9b9eab
VZ
7448ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7449if test -z "$ac_err"; then
7450 rm -rf conftest*
7451 # We can compile using X headers with no special include directory.
7452ac_x_includes=
7453else
7454 echo "$ac_err" >&5
7455 echo "configure: failed program was:" >&5
7456 cat conftest.$ac_ext >&5
7457 rm -rf conftest*
7458 # Look for the header file in a standard set of common directories.
7459# Check X11 before X11Rn because it is often a symlink to the current release.
7460 for ac_dir in \
7461 /usr/X11/include \
7462 /usr/X11R6/include \
7463 /usr/X11R5/include \
7464 /usr/X11R4/include \
7465 \
7466 /usr/include/X11 \
7467 /usr/include/X11R6 \
7468 /usr/include/X11R5 \
7469 /usr/include/X11R4 \
7470 \
7471 /usr/local/X11/include \
7472 /usr/local/X11R6/include \
7473 /usr/local/X11R5/include \
7474 /usr/local/X11R4/include \
7475 \
7476 /usr/local/include/X11 \
7477 /usr/local/include/X11R6 \
7478 /usr/local/include/X11R5 \
7479 /usr/local/include/X11R4 \
7480 \
7481 /usr/X386/include \
7482 /usr/x386/include \
7483 /usr/XFree86/include/X11 \
7484 \
7485 /usr/include \
7486 /usr/local/include \
7487 /usr/unsupported/include \
7488 /usr/athena/include \
7489 /usr/local/x11r5/include \
7490 /usr/lpp/Xamples/include \
7491 \
7492 /usr/openwin/include \
7493 /usr/openwin/share/include \
7494 ; \
10f2d63a 7495 do
ab9b9eab
VZ
7496 if test -r "$ac_dir/$x_direct_test_include"; then
7497 ac_x_includes=$ac_dir
10f2d63a
VZ
7498 break
7499 fi
7500 done
ab9b9eab
VZ
7501fi
7502rm -f conftest*
7503fi # $ac_x_includes = NO
10f2d63a 7504
ab9b9eab
VZ
7505if test "$ac_x_libraries" = NO; then
7506 # Check for the libraries.
10f2d63a 7507
ab9b9eab
VZ
7508 test -z "$x_direct_test_library" && x_direct_test_library=Xt
7509 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
10f2d63a 7510
ab9b9eab
VZ
7511 # See if we find them without any special options.
7512 # Don't add to $LIBS permanently.
7513 ac_save_LIBS="$LIBS"
7514 LIBS="-l$x_direct_test_library $LIBS"
7515cat > conftest.$ac_ext <<EOF
32832908 7516#line 7517 "configure"
ab9b9eab 7517#include "confdefs.h"
10f2d63a 7518
ab9b9eab
VZ
7519int main() {
7520${x_direct_test_function}()
7521; return 0; }
7522EOF
32832908 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 LIBS="$ac_save_LIBS"
7526# We can link X programs with no special library path.
7527ac_x_libraries=
7528else
7529 echo "configure: failed program was:" >&5
7530 cat conftest.$ac_ext >&5
7531 rm -rf conftest*
7532 LIBS="$ac_save_LIBS"
7533# First see if replacing the include by lib works.
7534# Check X11 before X11Rn because it is often a symlink to the current release.
7535for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
7536 /usr/X11/lib \
7537 /usr/X11R6/lib \
7538 /usr/X11R5/lib \
7539 /usr/X11R4/lib \
7540 \
7541 /usr/lib/X11 \
7542 /usr/lib/X11R6 \
7543 /usr/lib/X11R5 \
7544 /usr/lib/X11R4 \
7545 \
7546 /usr/local/X11/lib \
7547 /usr/local/X11R6/lib \
7548 /usr/local/X11R5/lib \
7549 /usr/local/X11R4/lib \
7550 \
7551 /usr/local/lib/X11 \
7552 /usr/local/lib/X11R6 \
7553 /usr/local/lib/X11R5 \
7554 /usr/local/lib/X11R4 \
7555 \
7556 /usr/X386/lib \
7557 /usr/x386/lib \
7558 /usr/XFree86/lib/X11 \
7559 \
7560 /usr/lib \
7561 /usr/local/lib \
7562 /usr/unsupported/lib \
7563 /usr/athena/lib \
7564 /usr/local/x11r5/lib \
7565 /usr/lpp/Xamples/lib \
7566 /lib/usr/lib/X11 \
7567 \
7568 /usr/openwin/lib \
7569 /usr/openwin/share/lib \
7570 ; \
7571do
7572 for ac_extension in a so sl; do
7573 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
7574 ac_x_libraries=$ac_dir
7575 break 2
10f2d63a 7576 fi
10f2d63a 7577 done
ab9b9eab
VZ
7578done
7579fi
7580rm -f conftest*
7581fi # $ac_x_libraries = NO
10f2d63a 7582
ab9b9eab
VZ
7583if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
7584 # Didn't find X anywhere. Cache the known absence of X.
7585 ac_cv_have_x="have_x=no"
7586else
7587 # Record where we found X for the cache.
7588 ac_cv_have_x="have_x=yes \
7589 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
7590fi
7591fi
10f2d63a 7592 fi
ab9b9eab
VZ
7593 eval "$ac_cv_have_x"
7594fi # $with_x != no
10f2d63a 7595
ab9b9eab
VZ
7596if test "$have_x" != yes; then
7597 echo "$ac_t""$have_x" 1>&6
7598 no_x=yes
7599else
7600 # If each of the values was on the command line, it overrides each guess.
7601 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
7602 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
7603 # Update the cache value to reflect the command line values.
7604 ac_cv_have_x="have_x=yes \
7605 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
7606 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
7607fi
10f2d63a 7608
ab9b9eab
VZ
7609if test "$no_x" = yes; then
7610 # Not all programs may use this symbol, but it does not hurt to define it.
7611 cat >> confdefs.h <<\EOF
7612#define X_DISPLAY_MISSING 1
7613EOF
10f2d63a 7614
ab9b9eab
VZ
7615 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
7616else
7617 if test -n "$x_includes"; then
7618 X_CFLAGS="$X_CFLAGS -I$x_includes"
10f2d63a
VZ
7619 fi
7620
ab9b9eab
VZ
7621 # It would also be nice to do this for all -L options, not just this one.
7622 if test -n "$x_libraries"; then
7623 X_LIBS="$X_LIBS -L$x_libraries"
7624 # For Solaris; some versions of Sun CC require a space after -R and
7625 # others require no space. Words are not sufficient . . . .
7626 case "`(uname -sr) 2>/dev/null`" in
7627 "SunOS 5"*)
7628 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
32832908 7629echo "configure:7630: checking whether -R must be followed by a space" >&5
ab9b9eab
VZ
7630 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
7631 cat > conftest.$ac_ext <<EOF
32832908 7632#line 7633 "configure"
ab9b9eab 7633#include "confdefs.h"
10f2d63a 7634
ab9b9eab 7635int main() {
788deba1 7636
ab9b9eab
VZ
7637; return 0; }
7638EOF
32832908 7639if { (eval echo configure:7640: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
7640 rm -rf conftest*
7641 ac_R_nospace=yes
7642else
7643 echo "configure: failed program was:" >&5
7644 cat conftest.$ac_ext >&5
7645 rm -rf conftest*
7646 ac_R_nospace=no
7647fi
7648rm -f conftest*
7649 if test $ac_R_nospace = yes; then
7650 echo "$ac_t""no" 1>&6
7651 X_LIBS="$X_LIBS -R$x_libraries"
7652 else
7653 LIBS="$ac_xsave_LIBS -R $x_libraries"
7654 cat > conftest.$ac_ext <<EOF
32832908 7655#line 7656 "configure"
ab9b9eab 7656#include "confdefs.h"
788deba1 7657
ab9b9eab
VZ
7658int main() {
7659
7660; return 0; }
7661EOF
32832908 7662if { (eval echo configure:7663: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
7663 rm -rf conftest*
7664 ac_R_space=yes
7665else
7666 echo "configure: failed program was:" >&5
7667 cat conftest.$ac_ext >&5
7668 rm -rf conftest*
7669 ac_R_space=no
7670fi
7671rm -f conftest*
7672 if test $ac_R_space = yes; then
7673 echo "$ac_t""yes" 1>&6
7674 X_LIBS="$X_LIBS -R $x_libraries"
7675 else
7676 echo "$ac_t""neither works" 1>&6
7677 fi
7678 fi
7679 LIBS="$ac_xsave_LIBS"
7680 esac
7681 fi
7682
7683 # Check for system-dependent libraries X programs must link with.
7684 # Do this before checking for the system-independent R6 libraries
7685 # (-lICE), since we may need -lsocket or whatever for X linking.
7686
7687 if test "$ISC" = yes; then
7688 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
7689 else
7690 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
7691 # libraries were built with DECnet support. And karl@cs.umb.edu says
7692 # the Alpha needs dnet_stub (dnet does not exist).
7693 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
32832908 7694echo "configure:7695: checking for dnet_ntoa in -ldnet" >&5
ab9b9eab
VZ
7695ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
7696if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7697 echo $ac_n "(cached) $ac_c" 1>&6
7698else
7699 ac_save_LIBS="$LIBS"
7700LIBS="-ldnet $LIBS"
7701cat > conftest.$ac_ext <<EOF
32832908 7702#line 7703 "configure"
ab9b9eab
VZ
7703#include "confdefs.h"
7704/* Override any gcc2 internal prototype to avoid an error. */
7705/* We use char because int might match the return type of a gcc2
7706 builtin and then its argument prototype would still apply. */
7707char dnet_ntoa();
7708
7709int main() {
7710dnet_ntoa()
7711; return 0; }
7712EOF
32832908 7713if { (eval echo configure:7714: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
7714 rm -rf conftest*
7715 eval "ac_cv_lib_$ac_lib_var=yes"
7716else
7717 echo "configure: failed program was:" >&5
7718 cat conftest.$ac_ext >&5
7719 rm -rf conftest*
7720 eval "ac_cv_lib_$ac_lib_var=no"
7721fi
7722rm -f conftest*
7723LIBS="$ac_save_LIBS"
7724
7725fi
7726if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7727 echo "$ac_t""yes" 1>&6
7728 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
7729else
7730 echo "$ac_t""no" 1>&6
7731fi
7732
7733 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
7734 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
32832908 7735echo "configure:7736: checking for dnet_ntoa in -ldnet_stub" >&5
ab9b9eab
VZ
7736ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
7737if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7738 echo $ac_n "(cached) $ac_c" 1>&6
7739else
7740 ac_save_LIBS="$LIBS"
7741LIBS="-ldnet_stub $LIBS"
7742cat > conftest.$ac_ext <<EOF
32832908 7743#line 7744 "configure"
ab9b9eab
VZ
7744#include "confdefs.h"
7745/* Override any gcc2 internal prototype to avoid an error. */
7746/* We use char because int might match the return type of a gcc2
7747 builtin and then its argument prototype would still apply. */
7748char dnet_ntoa();
7749
7750int main() {
7751dnet_ntoa()
7752; return 0; }
7753EOF
32832908 7754if { (eval echo configure:7755: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
7755 rm -rf conftest*
7756 eval "ac_cv_lib_$ac_lib_var=yes"
7757else
7758 echo "configure: failed program was:" >&5
7759 cat conftest.$ac_ext >&5
7760 rm -rf conftest*
7761 eval "ac_cv_lib_$ac_lib_var=no"
7762fi
7763rm -f conftest*
7764LIBS="$ac_save_LIBS"
7765
7766fi
7767if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7768 echo "$ac_t""yes" 1>&6
7769 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
7770else
7771 echo "$ac_t""no" 1>&6
7772fi
7773
7774 fi
7775
7776 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
7777 # to get the SysV transport functions.
7778 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
7779 # needs -lnsl.
7780 # The nsl library prevents programs from opening the X display
7781 # on Irix 5.2, according to dickey@clark.net.
7782 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
32832908 7783echo "configure:7784: checking for gethostbyname" >&5
ab9b9eab
VZ
7784if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
7785 echo $ac_n "(cached) $ac_c" 1>&6
7786else
7787 cat > conftest.$ac_ext <<EOF
32832908 7788#line 7789 "configure"
ab9b9eab
VZ
7789#include "confdefs.h"
7790/* System header to define __stub macros and hopefully few prototypes,
7791 which can conflict with char gethostbyname(); below. */
7792#include <assert.h>
7793/* Override any gcc2 internal prototype to avoid an error. */
7794/* We use char because int might match the return type of a gcc2
7795 builtin and then its argument prototype would still apply. */
7796char gethostbyname();
7797
7798int main() {
7799
7800/* The GNU C library defines this for functions which it implements
7801 to always fail with ENOSYS. Some functions are actually named
7802 something starting with __ and the normal name is an alias. */
7803#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
7804choke me
7805#else
e8482f24 7806gethostbyname();
ab9b9eab
VZ
7807#endif
7808
7809; return 0; }
7810EOF
32832908 7811if { (eval echo configure:7812: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
7812 rm -rf conftest*
7813 eval "ac_cv_func_gethostbyname=yes"
7814else
7815 echo "configure: failed program was:" >&5
7816 cat conftest.$ac_ext >&5
7817 rm -rf conftest*
7818 eval "ac_cv_func_gethostbyname=no"
7819fi
7820rm -f conftest*
7821fi
7822
7823if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
7824 echo "$ac_t""yes" 1>&6
7825 :
7826else
7827 echo "$ac_t""no" 1>&6
7828fi
7829
7830 if test $ac_cv_func_gethostbyname = no; then
7831 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
32832908 7832echo "configure:7833: checking for gethostbyname in -lnsl" >&5
ab9b9eab
VZ
7833ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
7834if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7835 echo $ac_n "(cached) $ac_c" 1>&6
7836else
7837 ac_save_LIBS="$LIBS"
7838LIBS="-lnsl $LIBS"
7839cat > conftest.$ac_ext <<EOF
32832908 7840#line 7841 "configure"
ab9b9eab
VZ
7841#include "confdefs.h"
7842/* Override any gcc2 internal prototype to avoid an error. */
7843/* We use char because int might match the return type of a gcc2
7844 builtin and then its argument prototype would still apply. */
7845char gethostbyname();
7846
7847int main() {
7848gethostbyname()
7849; return 0; }
7850EOF
32832908 7851if { (eval echo configure:7852: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
7852 rm -rf conftest*
7853 eval "ac_cv_lib_$ac_lib_var=yes"
7854else
7855 echo "configure: failed program was:" >&5
7856 cat conftest.$ac_ext >&5
7857 rm -rf conftest*
7858 eval "ac_cv_lib_$ac_lib_var=no"
7859fi
7860rm -f conftest*
7861LIBS="$ac_save_LIBS"
7862
7863fi
7864if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7865 echo "$ac_t""yes" 1>&6
7866 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
7867else
7868 echo "$ac_t""no" 1>&6
7869fi
7870
7871 fi
7872
7873 # lieder@skyler.mavd.honeywell.com says without -lsocket,
7874 # socket/setsockopt and other routines are undefined under SCO ODT
7875 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
7876 # on later versions), says simon@lia.di.epfl.ch: it contains
7877 # gethostby* variants that don't use the nameserver (or something).
7878 # -lsocket must be given before -lnsl if both are needed.
7879 # We assume that if connect needs -lnsl, so does gethostbyname.
7880 echo $ac_n "checking for connect""... $ac_c" 1>&6
32832908 7881echo "configure:7882: checking for connect" >&5
ab9b9eab
VZ
7882if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
7883 echo $ac_n "(cached) $ac_c" 1>&6
7884else
7885 cat > conftest.$ac_ext <<EOF
32832908 7886#line 7887 "configure"
ab9b9eab
VZ
7887#include "confdefs.h"
7888/* System header to define __stub macros and hopefully few prototypes,
7889 which can conflict with char connect(); below. */
7890#include <assert.h>
7891/* Override any gcc2 internal prototype to avoid an error. */
7892/* We use char because int might match the return type of a gcc2
7893 builtin and then its argument prototype would still apply. */
7894char connect();
7895
7896int main() {
7897
7898/* The GNU C library defines this for functions which it implements
7899 to always fail with ENOSYS. Some functions are actually named
7900 something starting with __ and the normal name is an alias. */
7901#if defined (__stub_connect) || defined (__stub___connect)
7902choke me
7903#else
e8482f24 7904connect();
ab9b9eab
VZ
7905#endif
7906
7907; return 0; }
7908EOF
32832908 7909if { (eval echo configure:7910: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
7910 rm -rf conftest*
7911 eval "ac_cv_func_connect=yes"
7912else
7913 echo "configure: failed program was:" >&5
7914 cat conftest.$ac_ext >&5
7915 rm -rf conftest*
7916 eval "ac_cv_func_connect=no"
7917fi
7918rm -f conftest*
7919fi
7920
7921if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
7922 echo "$ac_t""yes" 1>&6
7923 :
7924else
7925 echo "$ac_t""no" 1>&6
7926fi
7927
7928 if test $ac_cv_func_connect = no; then
7929 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
32832908 7930echo "configure:7931: checking for connect in -lsocket" >&5
ab9b9eab
VZ
7931ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
7932if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7933 echo $ac_n "(cached) $ac_c" 1>&6
7934else
7935 ac_save_LIBS="$LIBS"
7936LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
7937cat > conftest.$ac_ext <<EOF
32832908 7938#line 7939 "configure"
ab9b9eab
VZ
7939#include "confdefs.h"
7940/* Override any gcc2 internal prototype to avoid an error. */
7941/* We use char because int might match the return type of a gcc2
7942 builtin and then its argument prototype would still apply. */
7943char connect();
7944
7945int main() {
7946connect()
7947; return 0; }
7948EOF
32832908 7949if { (eval echo configure:7950: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
7950 rm -rf conftest*
7951 eval "ac_cv_lib_$ac_lib_var=yes"
7952else
7953 echo "configure: failed program was:" >&5
7954 cat conftest.$ac_ext >&5
7955 rm -rf conftest*
7956 eval "ac_cv_lib_$ac_lib_var=no"
7957fi
7958rm -f conftest*
7959LIBS="$ac_save_LIBS"
7960
7961fi
7962if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7963 echo "$ac_t""yes" 1>&6
7964 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
7965else
7966 echo "$ac_t""no" 1>&6
7967fi
7968
7969 fi
7970
7971 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
7972 echo $ac_n "checking for remove""... $ac_c" 1>&6
32832908 7973echo "configure:7974: checking for remove" >&5
ab9b9eab
VZ
7974if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
7975 echo $ac_n "(cached) $ac_c" 1>&6
7976else
7977 cat > conftest.$ac_ext <<EOF
32832908 7978#line 7979 "configure"
ab9b9eab
VZ
7979#include "confdefs.h"
7980/* System header to define __stub macros and hopefully few prototypes,
7981 which can conflict with char remove(); below. */
7982#include <assert.h>
7983/* Override any gcc2 internal prototype to avoid an error. */
7984/* We use char because int might match the return type of a gcc2
7985 builtin and then its argument prototype would still apply. */
7986char remove();
7987
7988int main() {
7989
7990/* The GNU C library defines this for functions which it implements
7991 to always fail with ENOSYS. Some functions are actually named
7992 something starting with __ and the normal name is an alias. */
7993#if defined (__stub_remove) || defined (__stub___remove)
7994choke me
7995#else
e8482f24 7996remove();
ab9b9eab
VZ
7997#endif
7998
7999; return 0; }
8000EOF
32832908 8001if { (eval echo configure:8002: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
8002 rm -rf conftest*
8003 eval "ac_cv_func_remove=yes"
8004else
8005 echo "configure: failed program was:" >&5
8006 cat conftest.$ac_ext >&5
8007 rm -rf conftest*
8008 eval "ac_cv_func_remove=no"
8009fi
8010rm -f conftest*
8011fi
8012
8013if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
8014 echo "$ac_t""yes" 1>&6
8015 :
8016else
8017 echo "$ac_t""no" 1>&6
8018fi
8019
8020 if test $ac_cv_func_remove = no; then
8021 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
32832908 8022echo "configure:8023: checking for remove in -lposix" >&5
ab9b9eab
VZ
8023ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
8024if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8025 echo $ac_n "(cached) $ac_c" 1>&6
8026else
8027 ac_save_LIBS="$LIBS"
8028LIBS="-lposix $LIBS"
8029cat > conftest.$ac_ext <<EOF
32832908 8030#line 8031 "configure"
ab9b9eab
VZ
8031#include "confdefs.h"
8032/* Override any gcc2 internal prototype to avoid an error. */
8033/* We use char because int might match the return type of a gcc2
8034 builtin and then its argument prototype would still apply. */
8035char remove();
8036
8037int main() {
8038remove()
8039; return 0; }
8040EOF
32832908 8041if { (eval echo configure:8042: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
8042 rm -rf conftest*
8043 eval "ac_cv_lib_$ac_lib_var=yes"
8044else
8045 echo "configure: failed program was:" >&5
8046 cat conftest.$ac_ext >&5
8047 rm -rf conftest*
8048 eval "ac_cv_lib_$ac_lib_var=no"
8049fi
8050rm -f conftest*
8051LIBS="$ac_save_LIBS"
8052
8053fi
8054if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8055 echo "$ac_t""yes" 1>&6
8056 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
8057else
8058 echo "$ac_t""no" 1>&6
8059fi
8060
8061 fi
8062
8063 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
8064 echo $ac_n "checking for shmat""... $ac_c" 1>&6
32832908 8065echo "configure:8066: checking for shmat" >&5
ab9b9eab
VZ
8066if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
8067 echo $ac_n "(cached) $ac_c" 1>&6
8068else
8069 cat > conftest.$ac_ext <<EOF
32832908 8070#line 8071 "configure"
ab9b9eab
VZ
8071#include "confdefs.h"
8072/* System header to define __stub macros and hopefully few prototypes,
8073 which can conflict with char shmat(); below. */
8074#include <assert.h>
8075/* Override any gcc2 internal prototype to avoid an error. */
8076/* We use char because int might match the return type of a gcc2
8077 builtin and then its argument prototype would still apply. */
8078char shmat();
8079
8080int main() {
8081
8082/* The GNU C library defines this for functions which it implements
8083 to always fail with ENOSYS. Some functions are actually named
8084 something starting with __ and the normal name is an alias. */
8085#if defined (__stub_shmat) || defined (__stub___shmat)
8086choke me
8087#else
e8482f24 8088shmat();
ab9b9eab
VZ
8089#endif
8090
8091; return 0; }
8092EOF
32832908 8093if { (eval echo configure:8094: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
8094 rm -rf conftest*
8095 eval "ac_cv_func_shmat=yes"
8096else
8097 echo "configure: failed program was:" >&5
8098 cat conftest.$ac_ext >&5
8099 rm -rf conftest*
8100 eval "ac_cv_func_shmat=no"
8101fi
8102rm -f conftest*
8103fi
8104
8105if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
8106 echo "$ac_t""yes" 1>&6
8107 :
8108else
8109 echo "$ac_t""no" 1>&6
8110fi
8111
8112 if test $ac_cv_func_shmat = no; then
8113 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
32832908 8114echo "configure:8115: checking for shmat in -lipc" >&5
ab9b9eab
VZ
8115ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
8116if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8117 echo $ac_n "(cached) $ac_c" 1>&6
8118else
8119 ac_save_LIBS="$LIBS"
8120LIBS="-lipc $LIBS"
8121cat > conftest.$ac_ext <<EOF
32832908 8122#line 8123 "configure"
ab9b9eab
VZ
8123#include "confdefs.h"
8124/* Override any gcc2 internal prototype to avoid an error. */
8125/* We use char because int might match the return type of a gcc2
8126 builtin and then its argument prototype would still apply. */
8127char shmat();
8128
8129int main() {
8130shmat()
8131; return 0; }
8132EOF
32832908 8133if { (eval echo configure:8134: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
8134 rm -rf conftest*
8135 eval "ac_cv_lib_$ac_lib_var=yes"
8136else
8137 echo "configure: failed program was:" >&5
8138 cat conftest.$ac_ext >&5
8139 rm -rf conftest*
8140 eval "ac_cv_lib_$ac_lib_var=no"
8141fi
8142rm -f conftest*
8143LIBS="$ac_save_LIBS"
8144
8145fi
8146if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8147 echo "$ac_t""yes" 1>&6
8148 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
8149else
8150 echo "$ac_t""no" 1>&6
8151fi
8152
8153 fi
8154 fi
8155
8156 # Check for libraries that X11R6 Xt/Xaw programs need.
8157 ac_save_LDFLAGS="$LDFLAGS"
8158 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
8159 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
8160 # check for ICE first), but we must link in the order -lSM -lICE or
8161 # we get undefined symbols. So assume we have SM if we have ICE.
8162 # These have to be linked with before -lX11, unlike the other
8163 # libraries we check for below, so use a different variable.
8164 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
8165 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
32832908 8166echo "configure:8167: checking for IceConnectionNumber in -lICE" >&5
ab9b9eab
VZ
8167ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
8168if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8169 echo $ac_n "(cached) $ac_c" 1>&6
8170else
8171 ac_save_LIBS="$LIBS"
8172LIBS="-lICE $X_EXTRA_LIBS $LIBS"
8173cat > conftest.$ac_ext <<EOF
32832908 8174#line 8175 "configure"
ab9b9eab
VZ
8175#include "confdefs.h"
8176/* Override any gcc2 internal prototype to avoid an error. */
8177/* We use char because int might match the return type of a gcc2
8178 builtin and then its argument prototype would still apply. */
8179char IceConnectionNumber();
8180
8181int main() {
8182IceConnectionNumber()
8183; return 0; }
8184EOF
32832908 8185if { (eval echo configure:8186: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
8186 rm -rf conftest*
8187 eval "ac_cv_lib_$ac_lib_var=yes"
8188else
8189 echo "configure: failed program was:" >&5
8190 cat conftest.$ac_ext >&5
8191 rm -rf conftest*
8192 eval "ac_cv_lib_$ac_lib_var=no"
8193fi
8194rm -f conftest*
8195LIBS="$ac_save_LIBS"
8196
8197fi
8198if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8199 echo "$ac_t""yes" 1>&6
8200 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
8201else
8202 echo "$ac_t""no" 1>&6
8203fi
8204
8205 LDFLAGS="$ac_save_LDFLAGS"
8206
8207fi
8208
8209
8210 if test "$no_x" = "yes"; then
8211 { echo "configure: error: X11 not found" 1>&2; exit 1; }
8212 fi
8213
8214 GUI_TK_LIBRARY="$X_LIBS"
8215 TOOLKIT_INCLUDE="$X_CFLAGS"
8216
dad6c0ea
VZ
8217 AFMINSTALL=afminstall
8218
ab9b9eab 8219
cd6d6d5b
VZ
8220 COMPILED_X_PROGRAM=0
8221
ab9b9eab 8222 echo $ac_n "checking for Motif/Lesstif headers""... $ac_c" 1>&6
32832908 8223echo "configure:8224: checking for Motif/Lesstif headers" >&5
ab9b9eab
VZ
8224
8225ac_find_includes=
8226for ac_dir in $SEARCH_INCLUDE;
8227 do
8228 if test -f "$ac_dir/Xm/Xm.h"; then
8229 ac_find_includes=$ac_dir
8230 break
8231 fi
8232 done
8233
8234 if test "$ac_find_includes" != "" ; then
8235 echo "$ac_t""found $ac_find_includes" 1>&6
8236 else
cd6d6d5b 8237 cat > conftest.$ac_ext <<EOF
32832908 8238#line 8239 "configure"
cd6d6d5b
VZ
8239#include "confdefs.h"
8240
8241 #include <Xm/Xm.h>
8242
8243int main() {
8244
8245 int version;
8246
8247 version = xmUseVersion;
8248
8249; return 0; }
8250EOF
32832908 8251if { (eval echo configure:8252: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
cd6d6d5b
VZ
8252 rm -rf conftest*
8253
8254 echo "$ac_t""found in default search path" 1>&6
8255 COMPILED_X_PROGRAM=1
8256
8257else
8258 echo "configure: failed program was:" >&5
8259 cat conftest.$ac_ext >&5
8260 rm -rf conftest*
8261
8262 echo "$ac_t""no" 1>&6
8263 { echo "configure: error: please set CFLAGS to contain the location of Xm/Xm.h" 1>&2; exit 1; }
8264
8265
8266fi
8267rm -f conftest*
ab9b9eab
VZ
8268 fi
8269
cd6d6d5b
VZ
8270 if test "$COMPILED_X_PROGRAM" = 0; then
8271 echo $ac_n "checking for Motif/Lesstif library""... $ac_c" 1>&6
32832908 8272echo "configure:8273: checking for Motif/Lesstif library" >&5
cd6d6d5b 8273
ab9b9eab
VZ
8274ac_find_libraries=
8275for ac_dir in $SEARCH_LIB;
8276 do
8277 for ac_extension in a so sl; do
8278 if test -f "$ac_dir/libXm.$ac_extension"; then
8279 ac_find_libraries=$ac_dir
8280 break 2
8281 fi
8282 done
8283 done
8284
cd6d6d5b
VZ
8285 if test "$ac_find_libraries" != "" ; then
8286
ab9b9eab
VZ
8287 ac_path_to_include=$ac_find_includes
8288 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
8289 result=$?
8290 if test $result = 0; then
8291 ac_path_to_include=""
8292 else
8293 ac_path_to_include="-I$ac_find_includes"
8294 fi
8295
cd6d6d5b 8296
ab9b9eab
VZ
8297 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
8298 result=$?
8299 if test $result = 0; then
8300 ac_path_to_link=""
8301 else
8302 ac_path_to_link="-L$ac_find_libraries"
8303 fi
8304
8305
cd6d6d5b
VZ
8306 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $ac_path_to_link"
8307 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE $ac_path_to_include"
8308 echo "$ac_t""found at $ac_find_libraries" 1>&6
8309 else
8310 cat > conftest.$ac_ext <<EOF
32832908 8311#line 8312 "configure"
cd6d6d5b 8312#include "confdefs.h"
ab9b9eab 8313
cd6d6d5b
VZ
8314 #include <Xm/Xm.h>
8315
8316int main() {
ab9b9eab 8317
cd6d6d5b 8318 int version;
ab9b9eab 8319
cd6d6d5b
VZ
8320 version = xmUseVersion;
8321
8322; return 0; }
8323EOF
32832908 8324if { (eval echo configure:8325: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
cd6d6d5b
VZ
8325 rm -rf conftest*
8326
8327 echo "$ac_t""found in default search path" 1>&6
8328 COMPILED_X_PROGRAM=1
8329
8330else
8331 echo "configure: failed program was:" >&5
8332 cat conftest.$ac_ext >&5
8333 rm -rf conftest*
8334
8335 echo "$ac_t""no" 1>&6
8336 { echo "configure: error: please set LDFLAGS to contain the location of libXm" 1>&2; exit 1; }
8337
8338
8339fi
8340rm -f conftest*
8341 fi
ab9b9eab
VZ
8342 fi
8343
cd6d6d5b 8344
ab9b9eab
VZ
8345 XPM_LINK=""
8346 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
32832908 8347echo "configure:8348: checking for Xpm library" >&5
ab9b9eab
VZ
8348
8349ac_find_libraries=
8350for ac_dir in $SEARCH_LIB;
8351 do
8352 for ac_extension in a so sl; do
8353 if test -f "$ac_dir/libXpm.$ac_extension"; then
8354 ac_find_libraries=$ac_dir
8355 break 2
8356 fi
8357 done
8358 done
8359
8360 if test "$ac_find_libraries" != "" ; then
8361
8362 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
8363 result=$?
8364 if test $result = 0; then
8365 ac_path_to_link=""
8366 else
8367 ac_path_to_link="-L$ac_find_libraries"
8368 fi
8369
8370 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $ac_path_to_link"
8371 XPM_LINK="-lXpm "
8372 cat >> confdefs.h <<\EOF
8373#define wxHAVE_LIB_XPM 1
8374EOF
8375
8376 echo "$ac_t""found at $ac_find_libraries" 1>&6
8377 else
cd6d6d5b 8378 cat > conftest.$ac_ext <<EOF
32832908 8379#line 8380 "configure"
cd6d6d5b
VZ
8380#include "confdefs.h"
8381
8382 #include <X11/xpm.h>
8383
8384int main() {
8385
8386 int version;
8387
8388 version = XpmLibraryVersion();
8389
8390; return 0; }
8391EOF
32832908 8392if { (eval echo configure:8393: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
cd6d6d5b
VZ
8393 rm -rf conftest*
8394
bdad4e7e
RR
8395 XPM_LINK="-lXpm "
8396 cat >> confdefs.h <<\EOF
3ace2e6d
SN
8397#define wxHAVE_LIB_XPM 1
8398EOF
8399
8400 echo "$ac_t""found in default search path" 1>&6
cd6d6d5b
VZ
8401 COMPILED_X_PROGRAM=0
8402
8403else
8404 echo "configure: failed program was:" >&5
8405 cat conftest.$ac_ext >&5
8406 rm -rf conftest*
8407
8408 echo "$ac_t""no" 1>&6
8409 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
8410
8411
8412fi
8413rm -f conftest*
ab9b9eab
VZ
8414 fi
8415
8416 GUI_TK_LINK="-lXm $XPM_LINK -lXmu -lXext -lXt -lX11 -lm"
8417 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $GUI_TK_LINK"
8418 TOOLKIT=MOTIF
8419
8420 GUIHEADERS="\$(MOTIF_HEADERS)"
8421 GUIOBJS="\$(MOTIF_GUIOBJS)"
8422 COMMONOBJS="\$(MOTIF_COMMONOBJS)"
788deba1
VZ
8423 GENERICOBJS="\$(MOTIF_GENERICOBJS)"
8424 GUIDEPS="\$(MOTIF_GUIDEPS)"
8425 COMMONDEPS="\$(MOTIF_COMMONDEPS)"
10f2d63a
VZ
8426 GENERICDEPS="\$(MOTIF_GENERICDEPS)"
8427 UNIXOBJS="\$(UNIX_OBJS)"
d9d8273d 8428 UNIXDEPS="\$(UNIX_DEPS)"
10f2d63a
VZ
8429 GUIDIST=MOTIF_DIST
8430fi
8431
e07802fc
VZ
8432if test "$wxUSE_PM" = 1; then
8433 TOOLKIT=PM
8434
8435 GUIOBJS="\$(PM_GUIOBJS)"
8436 GUIHEADERS="\$(PM_HEADERS)"
8437 COMMONOBJS="\$(PM_COMMONOBJS)"
8438 GENERICOBJS="\$(PM_GENERICOBJS)"
8439 GUIDEPS="\$(PM_GUIDEPS)"
8440 COMMONDEPS="\$(PM_COMMONDEPS)"
8441 GENERICDEPS="\$(PM_GENERICDEPS)"
8442 UNIXOBJS=
8443 UNIXDEPS=
8444 GUIDIST=GTK_DIST
8445fi
8446
8447if test "$TOOLKIT" != "PM" ; then
ec14dd32 8448 TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
e07802fc
VZ
8449else
8450 TOOLKIT_DIR="os2"
8451fi
10f2d63a 8452
2224580a 8453 TOOLKIT_DEF="-D__WX${TOOLKIT}__"
10f2d63a 8454
2224580a 8455 WX_LIBRARY="wx_${TOOLKIT_DIR}"
10f2d63a 8456
bdad4e7e 8457 ALL_OBJECTS="\$(GUIOBJS) \$(COMMONOBJS) \$(GENERICOBJS) \$(UNIXOBJS) \$(HTMLOBJS) \$(OGLOBJS)"
3fcdd07b 8458
b089607b 8459 if test "$TOOLKIT" != "MSW"; then
cc977e5f
RR
8460 if test "$wxUSE_ODBC" = "yes" ; then
8461 ALL_OBJECTS="${ALL_OBJECTS} \$(IODBCOBJS)"
8462 fi
3fcdd07b
VZ
8463 fi
8464
d9d8273d 8465 if test "$wxUSE_LIBJPEG" = "yes" ; then
2224580a 8466 ALL_OBJECTS="${ALL_OBJECTS} \$(JPEGOBJS)"
d9d8273d
RR
8467 fi
8468 if test "$wxUSE_LIBTIFF" = "yes" ; then
8469 ALL_OBJECTS="${ALL_OBJECTS} \$(TIFFOBJS)"
8470 fi
8471 if test "$wxUSE_LIBPNG" = "yes" ; then
8472 ALL_OBJECTS="${ALL_OBJECTS} \$(PNGOBJS)"
8473 fi
8474 if test "$wxUSE_ZLIB" = "yes" ; then
8475 ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)"
8476 fi
bdad4e7e 8477 ALL_DEPFILES="\$(GUIDEPS) \$(COMMONDEPS) \$(GENERICDEPS) \$(UNIXDEPS) \$(HTMLDEPS) \$(OGLDEPS)"
2224580a
VZ
8478
8479 PORT_FILES="src/\$(TOOLKITDIR)/files.lst"
8480 RPM_FILES="src/\$(TOOLKITDIR)/rpmfiles.lst"
8481 RPM_SPEC="wx\$(TOOLKIT).spec"
8482
8483 GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
8484 DISTDIR="wx\$(TOOLKIT)"
10f2d63a 8485else
dad6c0ea
VZ
8486 USE_GUI=0
8487
07eb77a6
RL
8488 TOOLKIT_DIR="base"
8489 TOOLKIT_DEF="-D__WXBASE__"
8490
2224580a
VZ
8491 ALL_OBJECTS="\$(BASE_OBJS) \${BASE_UNIX_OBJS}"
8492 ALL_DEPFILES="\${BASE_DEPS} \${BASE_UNIX_DEPS}"
10f2d63a
VZ
8493
8494 WX_LIBRARY="wxbase"
2224580a
VZ
8495
8496 PORT_FILES="src/files.lst"
8497 RPM_FILES="src/rpmfiles.lst"
8498 RPM_SPEC="wxBase.spec"
8499
8500 GUIDIST="BASE_DIST"
8501 DISTDIR="wxBase"
10f2d63a
VZ
8502fi
8503
8504WX_LIBRARY_NAME="lib${WX_LIBRARY}.la"
bdad4e7e 8505WX_LIBRARY_NAME_GL="lib${WX_LIBRARY}_gl.la"
10f2d63a
VZ
8506
8507WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a"
bdad4e7e 8508WX_LIBRARY_NAME_STATIC_GL="lib${WX_LIBRARY}_gl.a"
10f2d63a
VZ
8509
8510WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}-${WX_RELEASE}.so.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
bdad4e7e 8511WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.so.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
10f2d63a
VZ
8512
8513WX_LIBRARY_LINK1="lib${WX_LIBRARY}-${WX_RELEASE}.so.${WX_CURRENT}"
8514WX_LIBRARY_LINK2="lib${WX_LIBRARY}-${WX_RELEASE}.so"
8515WX_LIBRARY_LINK3="lib${WX_LIBRARY}.so"
bdad4e7e
RR
8516WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.so.${WX_CURRENT}"
8517WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.so"
8518WX_LIBRARY_LINK3_GL="lib${WX_LIBRARY}_gl.so"
10f2d63a
VZ
8519
8520SHARED_LD=
8521PIC_FLAG=
8522WX_ALL=
8523WX_ALL_INSTALLED=
1d62a8b4 8524BURNT_LIBRARY_NAME=
10f2d63a 8525
b12915c1 8526
10f2d63a
VZ
8527if test "$wxUSE_SHARED" = "yes"; then
8528 case "${host}" in
8529 *-hp-hpux* )
8530 if test "$GCC" = yes ; then
69ffe1d2 8531 SHARED_LD="${CC} -shared -fPIC -o"
10f2d63a
VZ
8532 PIC_FLAG="-fPIC"
8533 else
8534 SHARED_LD="${CXX} -b -o"
8535 PIC_FLAG="+Z"
8536 fi
8537 WX_LIBRARY_NAME_SHARED="libwx_${TOOLKIT_DIR}.sl"
bdad4e7e 8538 WX_LIBRARY_NAME_SHARED_GL="libwx_${TOOLKIT_DIR}_gl.sl"
c661ecca
RR
8539 if test "$wxUSE_OPENGL" = "yes"; then
8540 WX_ALL="${WX_LIBRARY_NAME_SHARED} ${WX_LIBRARY_NAME_SHARED_GL}"
8541 else
8542 WX_ALL="${WX_LIBRARY_NAME_SHARED}"
8543 fi
10f2d63a 8544 ;;
b12915c1
VZ
8545
8546 *-*-linux* )
10f2d63a
VZ
8547 SHARED_LD="${CC} -shared -o"
8548 PIC_FLAG="-fPIC"
00cf1208 8549 if test "$wxUSE_BURNT_NAME" = "yes" ; then
05cdfc6f 8550 BURNT_LIBRARY_NAME="-Wl,-soname,${WX_LIBRARY_LINK1}"
bdad4e7e 8551 BURNT_LIBRARY_NAME_GL="-Wl,-soname,${WX_LIBRARY_LINK1_GL}"
00cf1208 8552 fi
c661ecca
RR
8553 if test "$wxUSE_OPENGL" = "yes"; then
8554 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
8555 WX_ALL="CREATE_LINKS CREATE_LINKS_GL"
8556 else
8557 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
8558 WX_ALL="CREATE_LINKS"
422107f9 8559 fi
00cf1208 8560 ;;
10f2d63a
VZ
8561 *-*-irix5* | *-*-irix6* )
8562 if test "$GCC" = yes ; then
8563 SHARED_LD="${CC} -shared -o"
8564 PIC_FLAG="-fPIC"
8565 else
8566 SHARED_LD="${CXX} -shared -o"
8567 fi
c661ecca
RR
8568 if test "$wxUSE_OPENGL" = "yes"; then
8569 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
8570 WX_ALL="CREATE_LINKS CREATE_LINKS_GL"
8571 else
8572 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
8573 WX_ALL="CREATE_LINKS"
422107f9 8574 fi
10f2d63a
VZ
8575 ;;
8576 *-*-solaris2* )
8577 if test "$GCC" = yes ; then
8578 SHARED_LD="${CC} -shared -o"
8579 PIC_FLAG="-fPIC"
8580 else
8581 SHARED_LD="${CXX} -G -o"
8582 PIC_FLAG="-KPIC"
8583 fi
c661ecca
RR
8584 if test "$wxUSE_OPENGL" = "yes"; then
8585 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
8586 WX_ALL="CREATE_LINKS CREATE_LINKS_GL"
8587 else
8588 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
8589 WX_ALL="CREATE_LINKS"
8590 fi
10f2d63a
VZ
8591 ;;
8592 *-*-sunos4* )
8593 SHARED_LD="${CC} -shared -o"
8594 PIC_FLAG="-fPIC"
8595 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
8596 WX_ALL="CREATE_LINKS"
8597 ;;
8598 *-*-freebsd* | *-*-netbsd*)
8599 SHARED_LD="${CC} -shared -o"
8600 PIC_FLAG="-fPIC"
8601 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
8602 WX_ALL="CREATE_LINKS"
8603 ;;
8604 *-*-osf* )
8605 SHARED_LD="${CXX} -shared -o"
8606 PIC_FLAG="-fPIC"
8607 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
8608 WX_ALL="CREATE_LINKS"
8609 ;;
8610 *-*-dgux5* )
8611 SHARED_LD="${CXX} -shared -o"
8612 PIC_FLAG="-fPIC"
8613 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
8614 WX_ALL="CREATE_LINKS"
8615 ;;
8616 *-*-sysv5* )
8617 SHARED_LD="${CC} -shared -o"
8618 PIC_FLAG="-fPIC"
8619 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
8620 WX_ALL="CREATE_LINKS"
8621 ;;
8622 *-*-aix* )
8623 SHARED_LD="/usr/lpp/xlC/bin/makeC++SharedLib -p 0 -o"
8624 WX_ALL=${WX_LIBRARY_NAME_SHARED}
8625 ;;
8626 *-*-cygwin32* )
8627 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
bdad4e7e 8628 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}"
10f2d63a
VZ
8629 WX_ALL="${WX_LIBRARY_NAME_STATIC}"
8630 ;;
b12915c1 8631 *-*-mingw32* )
10f2d63a 8632 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
bdad4e7e 8633 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}"
10f2d63a
VZ
8634 WX_ALL="${WX_LIBRARY_NAME_STATIC}"
8635 ;;
8636 *-pc-os2_emx )
e07802fc
VZ
8637 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
8638 WX_ALL="${WX_LIBRARY_NAME_STATIC}"
10f2d63a 8639 ;;
b12915c1 8640 *-*-beos* )
e2b8b066 8641 SHARED_LD="${LD} -shared -o"
b12915c1
VZ
8642 PIC_FLAG="-fPIC"
8643 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
8644 WX_ALL="CREATE_LINKS"
8645 ;;
10f2d63a
VZ
8646 *)
8647 { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; }
8648 esac
8649
8650 if test "x$WX_TARGET_LIBRARY" = "x"; then
8651 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}"
bdad4e7e 8652 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_SHARED_GL}"
10f2d63a
VZ
8653 fi
8654else
8655 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
bdad4e7e 8656 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}"
10f2d63a
VZ
8657 WX_ALL="${WX_LIBRARY_NAME_STATIC}"
8658fi
8659
8660
8661for ac_hdr in strings.h
8662do
8663ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8664echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
32832908 8665echo "configure:8666: checking for $ac_hdr" >&5
10f2d63a
VZ
8666if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8667 echo $ac_n "(cached) $ac_c" 1>&6
8668else
8669 cat > conftest.$ac_ext <<EOF
32832908 8670#line 8671 "configure"
10f2d63a
VZ
8671#include "confdefs.h"
8672#include <$ac_hdr>
8673EOF
8674ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
32832908 8675{ (eval echo configure:8676: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
8676ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8677if test -z "$ac_err"; then
8678 rm -rf conftest*
8679 eval "ac_cv_header_$ac_safe=yes"
8680else
8681 echo "$ac_err" >&5
8682 echo "configure: failed program was:" >&5
8683 cat conftest.$ac_ext >&5
8684 rm -rf conftest*
8685 eval "ac_cv_header_$ac_safe=no"
8686fi
8687rm -f conftest*
8688fi
8689if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8690 echo "$ac_t""yes" 1>&6
8691 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8692 cat >> confdefs.h <<EOF
8693#define $ac_tr_hdr 1
8694EOF
8695
8696else
8697 echo "$ac_t""no" 1>&6
8698fi
8699done
8700
8701for ac_hdr in unistd.h
8702do
8703ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8704echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
32832908 8705echo "configure:8706: checking for $ac_hdr" >&5
10f2d63a
VZ
8706if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8707 echo $ac_n "(cached) $ac_c" 1>&6
8708else
8709 cat > conftest.$ac_ext <<EOF
32832908 8710#line 8711 "configure"
10f2d63a
VZ
8711#include "confdefs.h"
8712#include <$ac_hdr>
8713EOF
8714ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
32832908 8715{ (eval echo configure:8716: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
8716ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8717if test -z "$ac_err"; then
8718 rm -rf conftest*
8719 eval "ac_cv_header_$ac_safe=yes"
8720else
8721 echo "$ac_err" >&5
8722 echo "configure: failed program was:" >&5
8723 cat conftest.$ac_ext >&5
8724 rm -rf conftest*
8725 eval "ac_cv_header_$ac_safe=no"
8726fi
8727rm -f conftest*
8728fi
8729if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8730 echo "$ac_t""yes" 1>&6
8731 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8732 cat >> confdefs.h <<EOF
8733#define $ac_tr_hdr 1
8734EOF
8735
8736else
8737 echo "$ac_t""no" 1>&6
8738fi
8739done
8740
8741for ac_hdr in wchar.h
8742do
8743ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8744echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
32832908 8745echo "configure:8746: checking for $ac_hdr" >&5
10f2d63a
VZ
8746if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8747 echo $ac_n "(cached) $ac_c" 1>&6
8748else
8749 cat > conftest.$ac_ext <<EOF
32832908 8750#line 8751 "configure"
10f2d63a
VZ
8751#include "confdefs.h"
8752#include <$ac_hdr>
8753EOF
8754ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
32832908 8755{ (eval echo configure:8756: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
8756ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8757if test -z "$ac_err"; then
8758 rm -rf conftest*
8759 eval "ac_cv_header_$ac_safe=yes"
8760else
8761 echo "$ac_err" >&5
8762 echo "configure: failed program was:" >&5
8763 cat conftest.$ac_ext >&5
8764 rm -rf conftest*
8765 eval "ac_cv_header_$ac_safe=no"
8766fi
8767rm -f conftest*
8768fi
8769if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8770 echo "$ac_t""yes" 1>&6
8771 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8772 cat >> confdefs.h <<EOF
8773#define $ac_tr_hdr 1
8774EOF
8775
8776else
8777 echo "$ac_t""no" 1>&6
8778fi
8779done
8780
8781for ac_hdr in wcstr.h
8782do
8783ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8784echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
32832908 8785echo "configure:8786: checking for $ac_hdr" >&5
10f2d63a
VZ
8786if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8787 echo $ac_n "(cached) $ac_c" 1>&6
8788else
8789 cat > conftest.$ac_ext <<EOF
32832908 8790#line 8791 "configure"
10f2d63a
VZ
8791#include "confdefs.h"
8792#include <$ac_hdr>
8793EOF
8794ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
32832908 8795{ (eval echo configure:8796: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
8796ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8797if test -z "$ac_err"; then
8798 rm -rf conftest*
8799 eval "ac_cv_header_$ac_safe=yes"
8800else
8801 echo "$ac_err" >&5
8802 echo "configure: failed program was:" >&5
8803 cat conftest.$ac_ext >&5
8804 rm -rf conftest*
8805 eval "ac_cv_header_$ac_safe=no"
8806fi
8807rm -f conftest*
8808fi
8809if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8810 echo "$ac_t""yes" 1>&6
8811 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8812 cat >> confdefs.h <<EOF
8813#define $ac_tr_hdr 1
8814EOF
8815
8816else
8817 echo "$ac_t""no" 1>&6
8818fi
8819done
8820
8821for ac_hdr in fnmatch.h
8822do
8823ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8824echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
32832908 8825echo "configure:8826: checking for $ac_hdr" >&5
10f2d63a
VZ
8826if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8827 echo $ac_n "(cached) $ac_c" 1>&6
8828else
8829 cat > conftest.$ac_ext <<EOF
32832908 8830#line 8831 "configure"
10f2d63a
VZ
8831#include "confdefs.h"
8832#include <$ac_hdr>
8833EOF
8834ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
32832908 8835{ (eval echo configure:8836: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
8836ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8837if test -z "$ac_err"; then
8838 rm -rf conftest*
8839 eval "ac_cv_header_$ac_safe=yes"
8840else
8841 echo "$ac_err" >&5
8842 echo "configure: failed program was:" >&5
8843 cat conftest.$ac_ext >&5
8844 rm -rf conftest*
8845 eval "ac_cv_header_$ac_safe=no"
8846fi
8847rm -f conftest*
8848fi
8849if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8850 echo "$ac_t""yes" 1>&6
8851 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8852 cat >> confdefs.h <<EOF
8853#define $ac_tr_hdr 1
8854EOF
8855
8856else
8857 echo "$ac_t""no" 1>&6
8858fi
8859done
8860
8861
8862if test "$wxUSE_GUI" = "yes"; then
8863 for ac_hdr in X11/XKBlib.h
8864do
8865ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8866echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
32832908 8867echo "configure:8868: checking for $ac_hdr" >&5
10f2d63a
VZ
8868if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8869 echo $ac_n "(cached) $ac_c" 1>&6
8870else
8871 cat > conftest.$ac_ext <<EOF
32832908 8872#line 8873 "configure"
10f2d63a
VZ
8873#include "confdefs.h"
8874#include <$ac_hdr>
8875EOF
8876ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
32832908 8877{ (eval echo configure:8878: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
8878ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8879if test -z "$ac_err"; then
8880 rm -rf conftest*
8881 eval "ac_cv_header_$ac_safe=yes"
8882else
8883 echo "$ac_err" >&5
8884 echo "configure: failed program was:" >&5
8885 cat conftest.$ac_ext >&5
8886 rm -rf conftest*
8887 eval "ac_cv_header_$ac_safe=no"
8888fi
8889rm -f conftest*
8890fi
8891if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8892 echo "$ac_t""yes" 1>&6
8893 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8894 cat >> confdefs.h <<EOF
8895#define $ac_tr_hdr 1
8896EOF
8897
8898else
8899 echo "$ac_t""no" 1>&6
8900fi
8901done
8902
8903fi
8904
8905
8906echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
32832908 8907echo "configure:8908: checking for ANSI C header files" >&5
10f2d63a
VZ
8908if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
8909 echo $ac_n "(cached) $ac_c" 1>&6
8910else
8911 cat > conftest.$ac_ext <<EOF
32832908 8912#line 8913 "configure"
10f2d63a
VZ
8913#include "confdefs.h"
8914#include <stdlib.h>
8915#include <stdarg.h>
8916#include <string.h>
8917#include <float.h>
8918EOF
8919ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
32832908 8920{ (eval echo configure:8921: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
8921ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8922if test -z "$ac_err"; then
8923 rm -rf conftest*
8924 ac_cv_header_stdc=yes
8925else
8926 echo "$ac_err" >&5
8927 echo "configure: failed program was:" >&5
8928 cat conftest.$ac_ext >&5
8929 rm -rf conftest*
8930 ac_cv_header_stdc=no
8931fi
8932rm -f conftest*
8933
8934if test $ac_cv_header_stdc = yes; then
8935 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8936cat > conftest.$ac_ext <<EOF
32832908 8937#line 8938 "configure"
10f2d63a
VZ
8938#include "confdefs.h"
8939#include <string.h>
8940EOF
8941if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8942 egrep "memchr" >/dev/null 2>&1; then
8943 :
8944else
8945 rm -rf conftest*
8946 ac_cv_header_stdc=no
8947fi
8948rm -f conftest*
8949
8950fi
8951
8952if test $ac_cv_header_stdc = yes; then
8953 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8954cat > conftest.$ac_ext <<EOF
32832908 8955#line 8956 "configure"
10f2d63a
VZ
8956#include "confdefs.h"
8957#include <stdlib.h>
8958EOF
8959if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8960 egrep "free" >/dev/null 2>&1; then
8961 :
8962else
8963 rm -rf conftest*
8964 ac_cv_header_stdc=no
8965fi
8966rm -f conftest*
8967
8968fi
8969
8970if test $ac_cv_header_stdc = yes; then
8971 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8972if test "$cross_compiling" = yes; then
8973 :
8974else
8975 cat > conftest.$ac_ext <<EOF
32832908 8976#line 8977 "configure"
10f2d63a
VZ
8977#include "confdefs.h"
8978#include <ctype.h>
8979#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8980#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8981#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8982int main () { int i; for (i = 0; i < 256; i++)
8983if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
8984exit (0); }
8985
8986EOF
32832908 8987if { (eval echo configure:8988: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10f2d63a
VZ
8988then
8989 :
8990else
8991 echo "configure: failed program was:" >&5
8992 cat conftest.$ac_ext >&5
8993 rm -fr conftest*
8994 ac_cv_header_stdc=no
8995fi
8996rm -fr conftest*
8997fi
8998
8999fi
9000fi
9001
9002echo "$ac_t""$ac_cv_header_stdc" 1>&6
9003if test $ac_cv_header_stdc = yes; then
9004 cat >> confdefs.h <<\EOF
9005#define STDC_HEADERS 1
9006EOF
9007
9008fi
9009
9010echo $ac_n "checking for mode_t""... $ac_c" 1>&6
32832908 9011echo "configure:9012: checking for mode_t" >&5
10f2d63a
VZ
9012if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
9013 echo $ac_n "(cached) $ac_c" 1>&6
9014else
9015 cat > conftest.$ac_ext <<EOF
32832908 9016#line 9017 "configure"
10f2d63a
VZ
9017#include "confdefs.h"
9018#include <sys/types.h>
9019#if STDC_HEADERS
9020#include <stdlib.h>
9021#include <stddef.h>
9022#endif
9023EOF
9024if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9025 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
9026 rm -rf conftest*
9027 ac_cv_type_mode_t=yes
9028else
9029 rm -rf conftest*
9030 ac_cv_type_mode_t=no
9031fi
9032rm -f conftest*
9033
9034fi
9035echo "$ac_t""$ac_cv_type_mode_t" 1>&6
9036if test $ac_cv_type_mode_t = no; then
9037 cat >> confdefs.h <<\EOF
9038#define mode_t int
9039EOF
9040
9041fi
9042
9043echo $ac_n "checking for off_t""... $ac_c" 1>&6
32832908 9044echo "configure:9045: checking for off_t" >&5
10f2d63a
VZ
9045if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
9046 echo $ac_n "(cached) $ac_c" 1>&6
9047else
9048 cat > conftest.$ac_ext <<EOF
32832908 9049#line 9050 "configure"
10f2d63a
VZ
9050#include "confdefs.h"
9051#include <sys/types.h>
9052#if STDC_HEADERS
9053#include <stdlib.h>
9054#include <stddef.h>
9055#endif
9056EOF
9057if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9058 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
9059 rm -rf conftest*
9060 ac_cv_type_off_t=yes
9061else
9062 rm -rf conftest*
9063 ac_cv_type_off_t=no
9064fi
9065rm -f conftest*
9066
9067fi
9068echo "$ac_t""$ac_cv_type_off_t" 1>&6
9069if test $ac_cv_type_off_t = no; then
9070 cat >> confdefs.h <<\EOF
9071#define off_t long
9072EOF
9073
9074fi
9075
9076echo $ac_n "checking for pid_t""... $ac_c" 1>&6
32832908 9077echo "configure:9078: checking for pid_t" >&5
10f2d63a
VZ
9078if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
9079 echo $ac_n "(cached) $ac_c" 1>&6
9080else
9081 cat > conftest.$ac_ext <<EOF
32832908 9082#line 9083 "configure"
10f2d63a
VZ
9083#include "confdefs.h"
9084#include <sys/types.h>
9085#if STDC_HEADERS
9086#include <stdlib.h>
9087#include <stddef.h>
9088#endif
9089EOF
9090if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9091 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
9092 rm -rf conftest*
9093 ac_cv_type_pid_t=yes
9094else
9095 rm -rf conftest*
9096 ac_cv_type_pid_t=no
9097fi
9098rm -f conftest*
9099
9100fi
9101echo "$ac_t""$ac_cv_type_pid_t" 1>&6
9102if test $ac_cv_type_pid_t = no; then
9103 cat >> confdefs.h <<\EOF
9104#define pid_t int
9105EOF
9106
9107fi
9108
9109echo $ac_n "checking for size_t""... $ac_c" 1>&6
32832908 9110echo "configure:9111: checking for size_t" >&5
10f2d63a
VZ
9111if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
9112 echo $ac_n "(cached) $ac_c" 1>&6
9113else
9114 cat > conftest.$ac_ext <<EOF
32832908 9115#line 9116 "configure"
10f2d63a
VZ
9116#include "confdefs.h"
9117#include <sys/types.h>
9118#if STDC_HEADERS
9119#include <stdlib.h>
9120#include <stddef.h>
9121#endif
9122EOF
9123if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9124 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
9125 rm -rf conftest*
9126 ac_cv_type_size_t=yes
9127else
9128 rm -rf conftest*
9129 ac_cv_type_size_t=no
9130fi
9131rm -f conftest*
9132
9133fi
9134echo "$ac_t""$ac_cv_type_size_t" 1>&6
9135if test $ac_cv_type_size_t = no; then
9136 cat >> confdefs.h <<\EOF
9137#define size_t unsigned
9138EOF
9139
9140fi
9141
9142echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
32832908 9143echo "configure:9144: checking for uid_t in sys/types.h" >&5
10f2d63a
VZ
9144if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
9145 echo $ac_n "(cached) $ac_c" 1>&6
9146else
9147 cat > conftest.$ac_ext <<EOF
32832908 9148#line 9149 "configure"
10f2d63a
VZ
9149#include "confdefs.h"
9150#include <sys/types.h>
9151EOF
9152if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9153 egrep "uid_t" >/dev/null 2>&1; then
9154 rm -rf conftest*
9155 ac_cv_type_uid_t=yes
9156else
9157 rm -rf conftest*
9158 ac_cv_type_uid_t=no
9159fi
9160rm -f conftest*
9161
9162fi
9163
9164echo "$ac_t""$ac_cv_type_uid_t" 1>&6
9165if test $ac_cv_type_uid_t = no; then
9166 cat >> confdefs.h <<\EOF
9167#define uid_t int
9168EOF
9169
9170 cat >> confdefs.h <<\EOF
9171#define gid_t int
9172EOF
9173
9174fi
9175
9176
9177
b12915c1 9178echo $ac_n "checking for pw_gecos in struct passwd""... $ac_c" 1>&6
32832908 9179echo "configure:9180: checking for pw_gecos in struct passwd" >&5
b12915c1
VZ
9180if eval "test \"`echo '$''{'wx_cv_struct_pw_gecos'+set}'`\" = set"; then
9181 echo $ac_n "(cached) $ac_c" 1>&6
9182else
9183
9184 cat > conftest.$ac_ext <<EOF
32832908 9185#line 9186 "configure"
b12915c1
VZ
9186#include "confdefs.h"
9187#include <pwd.h>
9188int main() {
9189
9190 char *p;
9191 struct passwd *pw;
9192 p = pw->pw_gecos;
9193
9194; return 0; }
9195EOF
32832908 9196if { (eval echo configure:9197: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
b12915c1
VZ
9197 rm -rf conftest*
9198
9199 wx_cv_struct_pw_gecos=yes
9200 cat >> confdefs.h <<\EOF
9201#define HAVE_PW_GECOS 1
9202EOF
9203
9204
9205else
9206 echo "configure: failed program was:" >&5
9207 cat conftest.$ac_ext >&5
9208 rm -rf conftest*
9209
9210 wx_cv_struct_pw_gecos=no
9211
9212
9213fi
9214rm -f conftest*
9215
9216
9217fi
9218
9219echo "$ac_t""$wx_cv_struct_pw_gecos" 1>&6
9220
10f2d63a
VZ
9221
9222echo $ac_n "checking for working const""... $ac_c" 1>&6
32832908 9223echo "configure:9224: checking for working const" >&5
10f2d63a
VZ
9224if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
9225 echo $ac_n "(cached) $ac_c" 1>&6
9226else
9227 cat > conftest.$ac_ext <<EOF
32832908 9228#line 9229 "configure"
10f2d63a
VZ
9229#include "confdefs.h"
9230
9231int main() {
9232
9233/* Ultrix mips cc rejects this. */
24528b0c 9234typedef int charset[2]; const charset x;
10f2d63a
VZ
9235/* SunOS 4.1.1 cc rejects this. */
9236char const *const *ccp;
9237char **p;
9238/* NEC SVR4.0.2 mips cc rejects this. */
9239struct point {int x, y;};
9240static struct point const zero = {0,0};
9241/* AIX XL C 1.02.0.0 rejects this.
9242 It does not let you subtract one const X* pointer from another in an arm
9243 of an if-expression whose if-part is not a constant expression */
9244const char *g = "string";
9245ccp = &g + (g ? g-g : 0);
9246/* HPUX 7.0 cc rejects these. */
9247++ccp;
9248p = (char**) ccp;
9249ccp = (char const *const *) p;
9250{ /* SCO 3.2v4 cc rejects this. */
9251 char *t;
9252 char const *s = 0 ? (char *) 0 : (char const *) 0;
9253
9254 *t++ = 0;
9255}
9256{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
9257 int x[] = {25, 17};
9258 const int *foo = &x[0];
9259 ++foo;
9260}
9261{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9262 typedef const int *iptr;
9263 iptr p = 0;
9264 ++p;
9265}
9266{ /* AIX XL C 1.02.0.0 rejects this saying
9267 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9268 struct s { int j; const int *ap[3]; };
9269 struct s *b; b->j = 5;
9270}
9271{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9272 const int foo = 10;
9273}
9274
9275; return 0; }
9276EOF
32832908 9277if { (eval echo configure:9278: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10f2d63a
VZ
9278 rm -rf conftest*
9279 ac_cv_c_const=yes
9280else
9281 echo "configure: failed program was:" >&5
9282 cat conftest.$ac_ext >&5
9283 rm -rf conftest*
9284 ac_cv_c_const=no
9285fi
9286rm -f conftest*
9287fi
9288
9289echo "$ac_t""$ac_cv_c_const" 1>&6
9290if test $ac_cv_c_const = no; then
9291 cat >> confdefs.h <<\EOF
9292#define const
9293EOF
9294
9295fi
9296
9297echo $ac_n "checking for inline""... $ac_c" 1>&6
32832908 9298echo "configure:9299: checking for inline" >&5
10f2d63a
VZ
9299if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
9300 echo $ac_n "(cached) $ac_c" 1>&6
9301else
9302 ac_cv_c_inline=no
9303for ac_kw in inline __inline__ __inline; do
9304 cat > conftest.$ac_ext <<EOF
32832908 9305#line 9306 "configure"
10f2d63a
VZ
9306#include "confdefs.h"
9307
9308int main() {
24528b0c 9309} $ac_kw foo() {
10f2d63a
VZ
9310; return 0; }
9311EOF
32832908 9312if { (eval echo configure:9313: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10f2d63a
VZ
9313 rm -rf conftest*
9314 ac_cv_c_inline=$ac_kw; break
9315else
9316 echo "configure: failed program was:" >&5
9317 cat conftest.$ac_ext >&5
9318fi
9319rm -f conftest*
9320done
9321
9322fi
9323
9324echo "$ac_t""$ac_cv_c_inline" 1>&6
9325case "$ac_cv_c_inline" in
9326 inline | yes) ;;
9327 no) cat >> confdefs.h <<\EOF
9328#define inline
9329EOF
9330 ;;
9331 *) cat >> confdefs.h <<EOF
9332#define inline $ac_cv_c_inline
9333EOF
9334 ;;
9335esac
9336
9337
9338echo $ac_n "checking size of char""... $ac_c" 1>&6
32832908 9339echo "configure:9340: checking size of char" >&5
10f2d63a
VZ
9340if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then
9341 echo $ac_n "(cached) $ac_c" 1>&6
9342else
9343 if test "$cross_compiling" = yes; then
9344 ac_cv_sizeof_char=1
9345else
9346 cat > conftest.$ac_ext <<EOF
32832908 9347#line 9348 "configure"
10f2d63a
VZ
9348#include "confdefs.h"
9349#include <stdio.h>
9350main()
9351{
9352 FILE *f=fopen("conftestval", "w");
9353 if (!f) exit(1);
9354 fprintf(f, "%d\n", sizeof(char));
9355 exit(0);
9356}
9357EOF
32832908 9358if { (eval echo configure:9359: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10f2d63a
VZ
9359then
9360 ac_cv_sizeof_char=`cat conftestval`
9361else
9362 echo "configure: failed program was:" >&5
9363 cat conftest.$ac_ext >&5
9364 rm -fr conftest*
9365 ac_cv_sizeof_char=0
9366fi
9367rm -fr conftest*
9368fi
9369
9370fi
9371echo "$ac_t""$ac_cv_sizeof_char" 1>&6
9372cat >> confdefs.h <<EOF
9373#define SIZEOF_CHAR $ac_cv_sizeof_char
9374EOF
9375
9376
9377echo $ac_n "checking size of short""... $ac_c" 1>&6
32832908 9378echo "configure:9379: checking size of short" >&5
10f2d63a
VZ
9379if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
9380 echo $ac_n "(cached) $ac_c" 1>&6
9381else
9382 if test "$cross_compiling" = yes; then
9383 ac_cv_sizeof_short=2
9384else
9385 cat > conftest.$ac_ext <<EOF
32832908 9386#line 9387 "configure"
10f2d63a
VZ
9387#include "confdefs.h"
9388#include <stdio.h>
9389main()
9390{
9391 FILE *f=fopen("conftestval", "w");
9392 if (!f) exit(1);
9393 fprintf(f, "%d\n", sizeof(short));
9394 exit(0);
9395}
9396EOF
32832908 9397if { (eval echo configure:9398: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10f2d63a
VZ
9398then
9399 ac_cv_sizeof_short=`cat conftestval`
9400else
9401 echo "configure: failed program was:" >&5
9402 cat conftest.$ac_ext >&5
9403 rm -fr conftest*
9404 ac_cv_sizeof_short=0
9405fi
9406rm -fr conftest*
9407fi
9408
9409fi
9410echo "$ac_t""$ac_cv_sizeof_short" 1>&6
9411cat >> confdefs.h <<EOF
9412#define SIZEOF_SHORT $ac_cv_sizeof_short
9413EOF
9414
9415
9416echo $ac_n "checking size of int *""... $ac_c" 1>&6
32832908 9417echo "configure:9418: checking size of int *" >&5
10f2d63a
VZ
9418if eval "test \"`echo '$''{'ac_cv_sizeof_int_p'+set}'`\" = set"; then
9419 echo $ac_n "(cached) $ac_c" 1>&6
9420else
9421 if test "$cross_compiling" = yes; then
9422 ac_cv_sizeof_int_p=4
9423else
9424 cat > conftest.$ac_ext <<EOF
32832908 9425#line 9426 "configure"
10f2d63a
VZ
9426#include "confdefs.h"
9427#include <stdio.h>
9428main()
9429{
9430 FILE *f=fopen("conftestval", "w");
9431 if (!f) exit(1);
9432 fprintf(f, "%d\n", sizeof(int *));
9433 exit(0);
9434}
9435EOF
32832908 9436if { (eval echo configure:9437: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10f2d63a
VZ
9437then
9438 ac_cv_sizeof_int_p=`cat conftestval`
9439else
9440 echo "configure: failed program was:" >&5
9441 cat conftest.$ac_ext >&5
9442 rm -fr conftest*
9443 ac_cv_sizeof_int_p=0
9444fi
9445rm -fr conftest*
9446fi
9447
9448fi
9449echo "$ac_t""$ac_cv_sizeof_int_p" 1>&6
9450cat >> confdefs.h <<EOF
9451#define SIZEOF_INT_P $ac_cv_sizeof_int_p
9452EOF
9453
9454
9455echo $ac_n "checking size of int""... $ac_c" 1>&6
32832908 9456echo "configure:9457: checking size of int" >&5
10f2d63a
VZ
9457if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
9458 echo $ac_n "(cached) $ac_c" 1>&6
9459else
9460 if test "$cross_compiling" = yes; then
9461 ac_cv_sizeof_int=4
9462else
9463 cat > conftest.$ac_ext <<EOF
32832908 9464#line 9465 "configure"
10f2d63a
VZ
9465#include "confdefs.h"
9466#include <stdio.h>
9467main()
9468{
9469 FILE *f=fopen("conftestval", "w");
9470 if (!f) exit(1);
9471 fprintf(f, "%d\n", sizeof(int));
9472 exit(0);
9473}
9474EOF
32832908 9475if { (eval echo configure:9476: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10f2d63a
VZ
9476then
9477 ac_cv_sizeof_int=`cat conftestval`
9478else
9479 echo "configure: failed program was:" >&5
9480 cat conftest.$ac_ext >&5
9481 rm -fr conftest*
9482 ac_cv_sizeof_int=0
9483fi
9484rm -fr conftest*
9485fi
9486
9487fi
9488echo "$ac_t""$ac_cv_sizeof_int" 1>&6
9489cat >> confdefs.h <<EOF
9490#define SIZEOF_INT $ac_cv_sizeof_int
9491EOF
9492
9493
9494echo $ac_n "checking size of long""... $ac_c" 1>&6
32832908 9495echo "configure:9496: checking size of long" >&5
10f2d63a
VZ
9496if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
9497 echo $ac_n "(cached) $ac_c" 1>&6
9498else
9499 if test "$cross_compiling" = yes; then
9500 ac_cv_sizeof_long=4
9501else
9502 cat > conftest.$ac_ext <<EOF
32832908 9503#line 9504 "configure"
10f2d63a
VZ
9504#include "confdefs.h"
9505#include <stdio.h>
9506main()
9507{
9508 FILE *f=fopen("conftestval", "w");
9509 if (!f) exit(1);
9510 fprintf(f, "%d\n", sizeof(long));
9511 exit(0);
9512}
9513EOF
32832908 9514if { (eval echo configure:9515: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10f2d63a
VZ
9515then
9516 ac_cv_sizeof_long=`cat conftestval`
9517else
9518 echo "configure: failed program was:" >&5
9519 cat conftest.$ac_ext >&5
9520 rm -fr conftest*
9521 ac_cv_sizeof_long=0
9522fi
9523rm -fr conftest*
9524fi
9525
9526fi
9527echo "$ac_t""$ac_cv_sizeof_long" 1>&6
9528cat >> confdefs.h <<EOF
9529#define SIZEOF_LONG $ac_cv_sizeof_long
9530EOF
9531
9532
9533echo $ac_n "checking size of long long""... $ac_c" 1>&6
32832908 9534echo "configure:9535: checking size of long long" >&5
10f2d63a
VZ
9535if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
9536 echo $ac_n "(cached) $ac_c" 1>&6
9537else
9538 if test "$cross_compiling" = yes; then
9539 ac_cv_sizeof_long_long=0
9540else
9541 cat > conftest.$ac_ext <<EOF
32832908 9542#line 9543 "configure"
10f2d63a
VZ
9543#include "confdefs.h"
9544#include <stdio.h>
9545main()
9546{
9547 FILE *f=fopen("conftestval", "w");
9548 if (!f) exit(1);
9549 fprintf(f, "%d\n", sizeof(long long));
9550 exit(0);
9551}
9552EOF
32832908 9553if { (eval echo configure:9554: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10f2d63a
VZ
9554then
9555 ac_cv_sizeof_long_long=`cat conftestval`
9556else
9557 echo "configure: failed program was:" >&5
9558 cat conftest.$ac_ext >&5
9559 rm -fr conftest*
9560 ac_cv_sizeof_long_long=0
9561fi
9562rm -fr conftest*
9563fi
9564
9565fi
9566echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
9567cat >> confdefs.h <<EOF
9568#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
9569EOF
9570
9571
9572
9573echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
32832908 9574echo "configure:9575: checking whether byte ordering is bigendian" >&5
10f2d63a
VZ
9575if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
9576 echo $ac_n "(cached) $ac_c" 1>&6
9577else
9578 ac_cv_c_bigendian=unknown
9579# See if sys/param.h defines the BYTE_ORDER macro.
9580cat > conftest.$ac_ext <<EOF
32832908 9581#line 9582 "configure"
10f2d63a
VZ
9582#include "confdefs.h"
9583#include <sys/types.h>
9584#include <sys/param.h>
9585int main() {
9586
9587#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
9588 bogus endian macros
9589#endif
9590; return 0; }
9591EOF
32832908 9592if { (eval echo configure:9593: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10f2d63a
VZ
9593 rm -rf conftest*
9594 # It does; now see whether it defined to BIG_ENDIAN or not.
9595cat > conftest.$ac_ext <<EOF
32832908 9596#line 9597 "configure"
10f2d63a
VZ
9597#include "confdefs.h"
9598#include <sys/types.h>
9599#include <sys/param.h>
9600int main() {
9601
9602#if BYTE_ORDER != BIG_ENDIAN
9603 not big endian
9604#endif
9605; return 0; }
9606EOF
32832908 9607if { (eval echo configure:9608: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10f2d63a
VZ
9608 rm -rf conftest*
9609 ac_cv_c_bigendian=yes
9610else
9611 echo "configure: failed program was:" >&5
9612 cat conftest.$ac_ext >&5
9613 rm -rf conftest*
9614 ac_cv_c_bigendian=no
9615fi
9616rm -f conftest*
9617else
9618 echo "configure: failed program was:" >&5
9619 cat conftest.$ac_ext >&5
9620fi
9621rm -f conftest*
9622if test $ac_cv_c_bigendian = unknown; then
9623if test "$cross_compiling" = yes; then
9624 ac_cv_c_bigendian=unknown
9625else
9626 cat > conftest.$ac_ext <<EOF
32832908 9627#line 9628 "configure"
10f2d63a
VZ
9628#include "confdefs.h"
9629main () {
9630 /* Are we little or big endian? From Harbison&Steele. */
9631 union
9632 {
9633 long l;
9634 char c[sizeof (long)];
9635 } u;
9636 u.l = 1;
9637 exit (u.c[sizeof (long) - 1] == 1);
9638}
9639EOF
32832908 9640if { (eval echo configure:9641: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10f2d63a
VZ
9641then
9642 ac_cv_c_bigendian=no
9643else
9644 echo "configure: failed program was:" >&5
9645 cat conftest.$ac_ext >&5
9646 rm -fr conftest*
9647 ac_cv_c_bigendian=yes
9648fi
9649rm -fr conftest*
9650fi
9651
9652fi
9653fi
9654
9655echo "$ac_t""$ac_cv_c_bigendian" 1>&6
9656if test $ac_cv_c_bigendian = unknown; then
9657 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
9658fi
9659if test $ac_cv_c_bigendian = yes; then
9660 cat >> confdefs.h <<\EOF
9661#define WORDS_BIGENDIAN 1
9662EOF
9663
9664fi
9665
9666
9667
9668 if test "$cross_compiling" = "yes"; then
9669 cat >> confdefs.h <<\EOF
9670#define wxUSE_IOSTREAMH 1
9671EOF
9672
9673 else
9674
9675 ac_ext=C
9676# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9677ac_cpp='$CXXCPP $CPPFLAGS'
9678ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9679ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9680cross_compiling=$ac_cv_prog_cxx_cross
9681
9682
9683 for ac_hdr in iostream
9684do
9685ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9686echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
32832908 9687echo "configure:9688: checking for $ac_hdr" >&5
10f2d63a
VZ
9688if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9689 echo $ac_n "(cached) $ac_c" 1>&6
9690else
9691 cat > conftest.$ac_ext <<EOF
32832908 9692#line 9693 "configure"
10f2d63a
VZ
9693#include "confdefs.h"
9694#include <$ac_hdr>
9695EOF
9696ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
32832908 9697{ (eval echo configure:9698: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
9698ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9699if test -z "$ac_err"; then
9700 rm -rf conftest*
9701 eval "ac_cv_header_$ac_safe=yes"
9702else
9703 echo "$ac_err" >&5
9704 echo "configure: failed program was:" >&5
9705 cat conftest.$ac_ext >&5
9706 rm -rf conftest*
9707 eval "ac_cv_header_$ac_safe=no"
9708fi
9709rm -f conftest*
9710fi
9711if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9712 echo "$ac_t""yes" 1>&6
9713 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9714 cat >> confdefs.h <<EOF
9715#define $ac_tr_hdr 1
9716EOF
9717
9718else
9719 echo "$ac_t""no" 1>&6
9720fi
9721done
9722
9723
9724 if test "x$HAVE_IOSTREAM" = x ; then
9725 cat >> confdefs.h <<\EOF
9726#define wxUSE_IOSTREAMH 1
9727EOF
9728
9729 else
9730 :
9731 fi
9732
9733 ac_ext=c
9734# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9735ac_cpp='$CPP $CPPFLAGS'
9736ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9737ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9738cross_compiling=$ac_cv_prog_cc_cross
9739
9740 fi
9741
9742
9743
9744 echo $ac_n "checking if C++ compiler supports bool""... $ac_c" 1>&6
32832908 9745echo "configure:9746: checking if C++ compiler supports bool" >&5
10f2d63a
VZ
9746if eval "test \"`echo '$''{'wx_cv_cpp_bool'+set}'`\" = set"; then
9747 echo $ac_n "(cached) $ac_c" 1>&6
9748else
9749
9750
9751 ac_ext=C
9752# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9753ac_cpp='$CXXCPP $CPPFLAGS'
9754ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9755ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9756cross_compiling=$ac_cv_prog_cxx_cross
9757
9758
9759 cat > conftest.$ac_ext <<EOF
32832908 9760#line 9761 "configure"
10f2d63a
VZ
9761#include "confdefs.h"
9762
9763
9764int main() {
9765
9766 bool b = true;
9767
9768 return 0;
9769
9770; return 0; }
9771EOF
32832908 9772if { (eval echo configure:9773: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10f2d63a
VZ
9773 rm -rf conftest*
9774
9775 cat >> confdefs.h <<\EOF
9776#define HAVE_BOOL 1
9777EOF
9778
9779 wx_cv_cpp_bool=yes
9780
9781else
9782 echo "configure: failed program was:" >&5
9783 cat conftest.$ac_ext >&5
9784 rm -rf conftest*
9785
9786 wx_cv_cpp_bool=no
9787
9788
9789fi
9790rm -f conftest*
9791
9792 ac_ext=c
9793# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9794ac_cpp='$CPP $CPPFLAGS'
9795ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9796ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9797cross_compiling=$ac_cv_prog_cc_cross
9798
9799
9800fi
9801
9802echo "$ac_t""$wx_cv_cpp_bool" 1>&6
9803
9804 if test "$wx_cv_cpp_bool" = "yes"; then
9805 cat >> confdefs.h <<\EOF
9806#define HAVE_BOOL 1
9807EOF
9808
9809 fi
9810
9811
9812
10f2d63a 9813echo $ac_n "checking if you need GNU extensions""... $ac_c" 1>&6
32832908 9814echo "configure:9815: checking if you need GNU extensions" >&5
10f2d63a
VZ
9815if eval "test \"`echo '$''{'wx_cv_gnu_extensions'+set}'`\" = set"; then
9816 echo $ac_n "(cached) $ac_c" 1>&6
9817else
9818
9819 cat > conftest.$ac_ext <<EOF
32832908 9820#line 9821 "configure"
10f2d63a
VZ
9821#include "confdefs.h"
9822#include <features.h>
9823int main() {
9824
9825
9826#ifndef __GNU_LIBRARY__
9827 Compile error wanted
9828#endif
9829
9830
9831; return 0; }
9832EOF
32832908 9833if { (eval echo configure:9834: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10f2d63a
VZ
9834 rm -rf conftest*
9835 wx_cv_gnu_extensions=yes
9836else
9837 echo "configure: failed program was:" >&5
9838 cat conftest.$ac_ext >&5
9839 rm -rf conftest*
9840 wx_cv_gnu_extensions=no
9841fi
9842rm -f conftest*
9843
9844fi
9845
9846
9847echo "$ac_t""$wx_cv_gnu_extensions" 1>&6
9848if test "$wx_cv_gnu_extensions" = "yes"; then
9849 cat >> confdefs.h <<EOF
9850#define _GNU_SOURCE 1
9851EOF
9852
9853fi
9854
9855
9856
9857echo $ac_n "checking for wcslen in -lc""... $ac_c" 1>&6
32832908 9858echo "configure:9859: checking for wcslen in -lc" >&5
10f2d63a
VZ
9859ac_lib_var=`echo c'_'wcslen | sed 'y%./+-%__p_%'`
9860if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9861 echo $ac_n "(cached) $ac_c" 1>&6
9862else
9863 ac_save_LIBS="$LIBS"
9864LIBS="-lc $LIBS"
9865cat > conftest.$ac_ext <<EOF
32832908 9866#line 9867 "configure"
10f2d63a
VZ
9867#include "confdefs.h"
9868/* Override any gcc2 internal prototype to avoid an error. */
9869/* We use char because int might match the return type of a gcc2
9870 builtin and then its argument prototype would still apply. */
9871char wcslen();
9872
9873int main() {
9874wcslen()
9875; return 0; }
9876EOF
32832908 9877if { (eval echo configure:9878: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
9878 rm -rf conftest*
9879 eval "ac_cv_lib_$ac_lib_var=yes"
9880else
9881 echo "configure: failed program was:" >&5
9882 cat conftest.$ac_ext >&5
9883 rm -rf conftest*
9884 eval "ac_cv_lib_$ac_lib_var=no"
9885fi
9886rm -f conftest*
9887LIBS="$ac_save_LIBS"
9888
9889fi
9890if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9891 echo "$ac_t""yes" 1>&6
9892
9893 cat >> confdefs.h <<\EOF
9894#define HAVE_WCSLEN 1
9895EOF
9896
9897 WCHAR_LINK=""
9898
9899else
9900 echo "$ac_t""no" 1>&6
9901
9902 echo $ac_n "checking for wcslen in -lw""... $ac_c" 1>&6
32832908 9903echo "configure:9904: checking for wcslen in -lw" >&5
10f2d63a
VZ
9904ac_lib_var=`echo w'_'wcslen | sed 'y%./+-%__p_%'`
9905if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9906 echo $ac_n "(cached) $ac_c" 1>&6
9907else
9908 ac_save_LIBS="$LIBS"
9909LIBS="-lw $LIBS"
9910cat > conftest.$ac_ext <<EOF
32832908 9911#line 9912 "configure"
10f2d63a
VZ
9912#include "confdefs.h"
9913/* Override any gcc2 internal prototype to avoid an error. */
9914/* We use char because int might match the return type of a gcc2
9915 builtin and then its argument prototype would still apply. */
9916char wcslen();
9917
9918int main() {
9919wcslen()
9920; return 0; }
9921EOF
32832908 9922if { (eval echo configure:9923: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
9923 rm -rf conftest*
9924 eval "ac_cv_lib_$ac_lib_var=yes"
9925else
9926 echo "configure: failed program was:" >&5
9927 cat conftest.$ac_ext >&5
9928 rm -rf conftest*
9929 eval "ac_cv_lib_$ac_lib_var=no"
9930fi
9931rm -f conftest*
9932LIBS="$ac_save_LIBS"
9933
9934fi
9935if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9936 echo "$ac_t""yes" 1>&6
9937
9938 cat >> confdefs.h <<\EOF
9939#define HAVE_WCSLEN 1
9940EOF
9941
9942 WCHAR_LINK="-lw"
9943
9944else
9945 echo "$ac_t""no" 1>&6
9946fi
9947
9948
9949fi
9950
9951
9952echo $ac_n "checking for vprintf""... $ac_c" 1>&6
32832908 9953echo "configure:9954: checking for vprintf" >&5
10f2d63a
VZ
9954if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
9955 echo $ac_n "(cached) $ac_c" 1>&6
9956else
9957 cat > conftest.$ac_ext <<EOF
32832908 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 vprintf(); 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 vprintf();
9967
9968int main() {
9969
9970/* The GNU C library defines this for functions which it implements
9971 to always fail with ENOSYS. Some functions are actually named
9972 something starting with __ and the normal name is an alias. */
9973#if defined (__stub_vprintf) || defined (__stub___vprintf)
9974choke me
9975#else
e8482f24 9976vprintf();
10f2d63a
VZ
9977#endif
9978
9979; return 0; }
9980EOF
32832908 9981if { (eval echo configure:9982: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
9982 rm -rf conftest*
9983 eval "ac_cv_func_vprintf=yes"
9984else
9985 echo "configure: failed program was:" >&5
9986 cat conftest.$ac_ext >&5
9987 rm -rf conftest*
9988 eval "ac_cv_func_vprintf=no"
9989fi
9990rm -f conftest*
9991fi
9992
9993if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
9994 echo "$ac_t""yes" 1>&6
9995 cat >> confdefs.h <<\EOF
9996#define HAVE_VPRINTF 1
9997EOF
9998
9999else
10000 echo "$ac_t""no" 1>&6
10001fi
10002
10003if test "$ac_cv_func_vprintf" != yes; then
10004echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
32832908 10005echo "configure:10006: checking for _doprnt" >&5
10f2d63a
VZ
10006if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
10007 echo $ac_n "(cached) $ac_c" 1>&6
10008else
10009 cat > conftest.$ac_ext <<EOF
32832908 10010#line 10011 "configure"
10f2d63a
VZ
10011#include "confdefs.h"
10012/* System header to define __stub macros and hopefully few prototypes,
10013 which can conflict with char _doprnt(); below. */
10014#include <assert.h>
10015/* Override any gcc2 internal prototype to avoid an error. */
10016/* We use char because int might match the return type of a gcc2
10017 builtin and then its argument prototype would still apply. */
10018char _doprnt();
10019
10020int main() {
10021
10022/* The GNU C library defines this for functions which it implements
10023 to always fail with ENOSYS. Some functions are actually named
10024 something starting with __ and the normal name is an alias. */
10025#if defined (__stub__doprnt) || defined (__stub____doprnt)
10026choke me
10027#else
e8482f24 10028_doprnt();
10f2d63a
VZ
10029#endif
10030
10031; return 0; }
10032EOF
32832908 10033if { (eval echo configure:10034: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
10034 rm -rf conftest*
10035 eval "ac_cv_func__doprnt=yes"
10036else
10037 echo "configure: failed program was:" >&5
10038 cat conftest.$ac_ext >&5
10039 rm -rf conftest*
10040 eval "ac_cv_func__doprnt=no"
10041fi
10042rm -f conftest*
10043fi
10044
10045if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
10046 echo "$ac_t""yes" 1>&6
10047 cat >> confdefs.h <<\EOF
10048#define HAVE_DOPRNT 1
10049EOF
10050
10051else
10052 echo "$ac_t""no" 1>&6
10053fi
10054
10055fi
10056
10057
10058for ac_func in vsnprintf
10059do
10060echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
32832908 10061echo "configure:10062: checking for $ac_func" >&5
10f2d63a
VZ
10062if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10063 echo $ac_n "(cached) $ac_c" 1>&6
10064else
10065 cat > conftest.$ac_ext <<EOF
32832908 10066#line 10067 "configure"
10f2d63a
VZ
10067#include "confdefs.h"
10068/* System header to define __stub macros and hopefully few prototypes,
10069 which can conflict with char $ac_func(); below. */
10070#include <assert.h>
10071/* Override any gcc2 internal prototype to avoid an error. */
10072/* We use char because int might match the return type of a gcc2
10073 builtin and then its argument prototype would still apply. */
10074char $ac_func();
10075
10076int main() {
10077
10078/* The GNU C library defines this for functions which it implements
10079 to always fail with ENOSYS. Some functions are actually named
10080 something starting with __ and the normal name is an alias. */
10081#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10082choke me
10083#else
e8482f24 10084$ac_func();
10f2d63a
VZ
10085#endif
10086
10087; return 0; }
10088EOF
32832908 10089if { (eval echo configure:10090: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
10090 rm -rf conftest*
10091 eval "ac_cv_func_$ac_func=yes"
10092else
10093 echo "configure: failed program was:" >&5
10094 cat conftest.$ac_ext >&5
10095 rm -rf conftest*
10096 eval "ac_cv_func_$ac_func=no"
10097fi
10098rm -f conftest*
10099fi
10100
10101if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10102 echo "$ac_t""yes" 1>&6
10103 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10104 cat >> confdefs.h <<EOF
10105#define $ac_tr_func 1
10106EOF
10107 cat >> confdefs.h <<\EOF
10108#define HAVE_VSNPRINTF 1
10109EOF
10110
10111else
10112 echo "$ac_t""no" 1>&6
10113echo "configure: warning: unsafe function sprintf will be used instead of snprintf" 1>&2
10114
10115fi
10116done
10117
10118
10119
10120ac_ext=C
10121# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10122ac_cpp='$CXXCPP $CPPFLAGS'
10123ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10124ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10125cross_compiling=$ac_cv_prog_cxx_cross
10126
10127
10128echo $ac_n "checking for vsscanf""... $ac_c" 1>&6
32832908 10129echo "configure:10130: checking for vsscanf" >&5
10f2d63a
VZ
10130if eval "test \"`echo '$''{'wx_cv_func_vsscanf'+set}'`\" = set"; then
10131 echo $ac_n "(cached) $ac_c" 1>&6
10132else
10133
10134 if test "$cross_compiling" = yes; then
10135 wx_cv_func_vsscanf=no
10136
10137else
10138 cat > conftest.$ac_ext <<EOF
32832908 10139#line 10140 "configure"
10f2d63a
VZ
10140#include "confdefs.h"
10141#ifdef __cplusplus
10142extern "C" void exit(int);
10143#endif
10144
10145 #include <stdio.h>
10146 #include <stdarg.h>
10147
10148 int try_vsscanf(const char *format, ...)
10149 {
10150 va_list ap;
10151 va_start(ap, format);
10152
10153 vsscanf("17", format, ap);
10154
10155 va_end(ap);
10156 }
10157
10158 int main()
10159 {
10160 int i;
10161 try_vsscanf("%d", &i);
10162 return i == 17 ? 0 : 1;
10163 }
10164
10165EOF
32832908 10166if { (eval echo configure:10167: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10f2d63a
VZ
10167then
10168
10169 cat >> confdefs.h <<\EOF
10170#define HAVE_VSSCANF 1
10171EOF
10172
10173 wx_cv_func_vsscanf=yes
10174
10175else
10176 echo "configure: failed program was:" >&5
10177 cat conftest.$ac_ext >&5
10178 rm -fr conftest*
10179 wx_cv_func_vsscanf=no
10180fi
10181rm -fr conftest*
10182fi
10183
10184
10185fi
10186
10187echo "$ac_t""$wx_cv_func_vsscanf" 1>&6
10188
10189ac_ext=c
10190# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10191ac_cpp='$CPP $CPPFLAGS'
10192ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10193ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10194cross_compiling=$ac_cv_prog_cc_cross
10195
10196
b089607b 10197if test "$TOOLKIT" != "MSW"; then
10f2d63a
VZ
10198
10199for ac_func in vfork
10200do
10201echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
32832908 10202echo "configure:10203: checking for $ac_func" >&5
10f2d63a
VZ
10203if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10204 echo $ac_n "(cached) $ac_c" 1>&6
10205else
10206 cat > conftest.$ac_ext <<EOF
32832908 10207#line 10208 "configure"
10f2d63a
VZ
10208#include "confdefs.h"
10209/* System header to define __stub macros and hopefully few prototypes,
10210 which can conflict with char $ac_func(); below. */
10211#include <assert.h>
10212/* Override any gcc2 internal prototype to avoid an error. */
10213/* We use char because int might match the return type of a gcc2
10214 builtin and then its argument prototype would still apply. */
10215char $ac_func();
10216
10217int main() {
10218
10219/* The GNU C library defines this for functions which it implements
10220 to always fail with ENOSYS. Some functions are actually named
10221 something starting with __ and the normal name is an alias. */
10222#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10223choke me
10224#else
e8482f24 10225$ac_func();
10f2d63a
VZ
10226#endif
10227
10228; return 0; }
10229EOF
32832908 10230if { (eval echo configure:10231: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
270a909e
VZ
10231 rm -rf conftest*
10232 eval "ac_cv_func_$ac_func=yes"
10233else
10234 echo "configure: failed program was:" >&5
10235 cat conftest.$ac_ext >&5
10236 rm -rf conftest*
10237 eval "ac_cv_func_$ac_func=no"
10238fi
10239rm -f conftest*
10240fi
10241
10242if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10243 echo "$ac_t""yes" 1>&6
10244 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10245 cat >> confdefs.h <<EOF
10246#define $ac_tr_func 1
10247EOF
10248
10249else
10250 echo "$ac_t""no" 1>&6
10251fi
10252done
10253
10254
10255for ac_func in timegm
10256do
10257echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
32832908 10258echo "configure:10259: checking for $ac_func" >&5
270a909e
VZ
10259if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10260 echo $ac_n "(cached) $ac_c" 1>&6
10261else
10262 cat > conftest.$ac_ext <<EOF
32832908 10263#line 10264 "configure"
270a909e
VZ
10264#include "confdefs.h"
10265/* System header to define __stub macros and hopefully few prototypes,
10266 which can conflict with char $ac_func(); below. */
10267#include <assert.h>
10268/* Override any gcc2 internal prototype to avoid an error. */
10269/* We use char because int might match the return type of a gcc2
10270 builtin and then its argument prototype would still apply. */
10271char $ac_func();
10272
10273int main() {
10274
10275/* The GNU C library defines this for functions which it implements
10276 to always fail with ENOSYS. Some functions are actually named
10277 something starting with __ and the normal name is an alias. */
10278#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10279choke me
10280#else
e8482f24 10281$ac_func();
270a909e
VZ
10282#endif
10283
10284; return 0; }
10285EOF
32832908 10286if { (eval echo configure:10287: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
10287 rm -rf conftest*
10288 eval "ac_cv_func_$ac_func=yes"
10289else
10290 echo "configure: failed program was:" >&5
10291 cat conftest.$ac_ext >&5
10292 rm -rf conftest*
10293 eval "ac_cv_func_$ac_func=no"
10294fi
10295rm -f conftest*
10296fi
10297
10298if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10299 echo "$ac_t""yes" 1>&6
10300 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10301 cat >> confdefs.h <<EOF
10302#define $ac_tr_func 1
10303EOF
10304
10305else
10306 echo "$ac_t""no" 1>&6
10307fi
10308done
10309
10310
b12915c1
VZ
10311HAVE_SOME_SLEEP_FUNC=0
10312if test "$USE_BEOS" = 1; then
10313 cat >> confdefs.h <<\EOF
10314#define HAVE_SLEEP 1
10315EOF
10316
10317 HAVE_SOME_SLEEP_FUNC=1
10318fi
10319
10320if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
10321 POSIX4_LINK=
10322 for ac_func in nanosleep
10f2d63a
VZ
10323do
10324echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
32832908 10325echo "configure:10326: checking for $ac_func" >&5
10f2d63a
VZ
10326if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10327 echo $ac_n "(cached) $ac_c" 1>&6
10328else
10329 cat > conftest.$ac_ext <<EOF
32832908 10330#line 10331 "configure"
10f2d63a
VZ
10331#include "confdefs.h"
10332/* System header to define __stub macros and hopefully few prototypes,
10333 which can conflict with char $ac_func(); below. */
10334#include <assert.h>
10335/* Override any gcc2 internal prototype to avoid an error. */
10336/* We use char because int might match the return type of a gcc2
10337 builtin and then its argument prototype would still apply. */
10338char $ac_func();
10339
10340int main() {
10341
10342/* The GNU C library defines this for functions which it implements
10343 to always fail with ENOSYS. Some functions are actually named
10344 something starting with __ and the normal name is an alias. */
10345#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10346choke me
10347#else
e8482f24 10348$ac_func();
10f2d63a
VZ
10349#endif
10350
10351; return 0; }
10352EOF
32832908 10353if { (eval echo configure:10354: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
10354 rm -rf conftest*
10355 eval "ac_cv_func_$ac_func=yes"
10356else
10357 echo "configure: failed program was:" >&5
10358 cat conftest.$ac_ext >&5
10359 rm -rf conftest*
10360 eval "ac_cv_func_$ac_func=no"
10361fi
10362rm -f conftest*
10363fi
10364
10365if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10366 echo "$ac_t""yes" 1>&6
10367 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10368 cat >> confdefs.h <<EOF
10369#define $ac_tr_func 1
10370EOF
10371 cat >> confdefs.h <<\EOF
10372#define HAVE_NANOSLEEP 1
10373EOF
10374
10375else
10376 echo "$ac_t""no" 1>&6
10377echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6
32832908 10378echo "configure:10379: checking for nanosleep in -lposix4" >&5
10f2d63a
VZ
10379ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'`
10380if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10381 echo $ac_n "(cached) $ac_c" 1>&6
10382else
10383 ac_save_LIBS="$LIBS"
10384LIBS="-lposix4 $LIBS"
10385cat > conftest.$ac_ext <<EOF
32832908 10386#line 10387 "configure"
10f2d63a
VZ
10387#include "confdefs.h"
10388/* Override any gcc2 internal prototype to avoid an error. */
10389/* We use char because int might match the return type of a gcc2
10390 builtin and then its argument prototype would still apply. */
10391char nanosleep();
10392
10393int main() {
10394nanosleep()
10395; return 0; }
10396EOF
32832908 10397if { (eval echo configure:10398: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
10398 rm -rf conftest*
10399 eval "ac_cv_lib_$ac_lib_var=yes"
10400else
10401 echo "configure: failed program was:" >&5
10402 cat conftest.$ac_ext >&5
10403 rm -rf conftest*
10404 eval "ac_cv_lib_$ac_lib_var=no"
10405fi
10406rm -f conftest*
10407LIBS="$ac_save_LIBS"
10408
10409fi
10410if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10411 echo "$ac_t""yes" 1>&6
10412
b12915c1 10413 cat >> confdefs.h <<\EOF
10f2d63a
VZ
10414#define HAVE_NANOSLEEP 1
10415EOF
10416
b12915c1
VZ
10417 POSIX4_LINK="-lposix4"
10418
10f2d63a
VZ
10419else
10420 echo "$ac_t""no" 1>&6
10421
b12915c1 10422 for ac_func in usleep
10f2d63a
VZ
10423do
10424echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
32832908 10425echo "configure:10426: checking for $ac_func" >&5
10f2d63a
VZ
10426if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10427 echo $ac_n "(cached) $ac_c" 1>&6
10428else
10429 cat > conftest.$ac_ext <<EOF
32832908 10430#line 10431 "configure"
10f2d63a
VZ
10431#include "confdefs.h"
10432/* System header to define __stub macros and hopefully few prototypes,
10433 which can conflict with char $ac_func(); below. */
10434#include <assert.h>
10435/* Override any gcc2 internal prototype to avoid an error. */
10436/* We use char because int might match the return type of a gcc2
10437 builtin and then its argument prototype would still apply. */
10438char $ac_func();
10439
10440int main() {
10441
10442/* The GNU C library defines this for functions which it implements
10443 to always fail with ENOSYS. Some functions are actually named
10444 something starting with __ and the normal name is an alias. */
10445#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10446choke me
10447#else
e8482f24 10448$ac_func();
10f2d63a
VZ
10449#endif
10450
10451; return 0; }
10452EOF
32832908 10453if { (eval echo configure:10454: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
10454 rm -rf conftest*
10455 eval "ac_cv_func_$ac_func=yes"
10456else
10457 echo "configure: failed program was:" >&5
10458 cat conftest.$ac_ext >&5
10459 rm -rf conftest*
10460 eval "ac_cv_func_$ac_func=no"
10461fi
10462rm -f conftest*
10463fi
10464
10465if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10466 echo "$ac_t""yes" 1>&6
10467 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10468 cat >> confdefs.h <<EOF
10469#define $ac_tr_func 1
10470EOF
b12915c1 10471
10f2d63a
VZ
10472else
10473 echo "$ac_t""no" 1>&6
10f2d63a
VZ
10474fi
10475done
10476
b12915c1
VZ
10477 echo "configure: warning: wxSleep() function will not work" 1>&2
10478
10479
10f2d63a
VZ
10480fi
10481
b12915c1
VZ
10482
10483
10f2d63a
VZ
10484fi
10485done
10486
b12915c1 10487fi
10f2d63a
VZ
10488
10489for ac_func in uname gethostname
10490do
10491echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
32832908 10492echo "configure:10493: checking for $ac_func" >&5
10f2d63a
VZ
10493if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10494 echo $ac_n "(cached) $ac_c" 1>&6
10495else
10496 cat > conftest.$ac_ext <<EOF
32832908 10497#line 10498 "configure"
10f2d63a
VZ
10498#include "confdefs.h"
10499/* System header to define __stub macros and hopefully few prototypes,
10500 which can conflict with char $ac_func(); below. */
10501#include <assert.h>
10502/* Override any gcc2 internal prototype to avoid an error. */
10503/* We use char because int might match the return type of a gcc2
10504 builtin and then its argument prototype would still apply. */
10505char $ac_func();
10506
10507int main() {
10508
10509/* The GNU C library defines this for functions which it implements
10510 to always fail with ENOSYS. Some functions are actually named
10511 something starting with __ and the normal name is an alias. */
10512#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10513choke me
10514#else
e8482f24 10515$ac_func();
10f2d63a
VZ
10516#endif
10517
10518; return 0; }
10519EOF
32832908 10520if { (eval echo configure:10521: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
10521 rm -rf conftest*
10522 eval "ac_cv_func_$ac_func=yes"
10523else
10524 echo "configure: failed program was:" >&5
10525 cat conftest.$ac_ext >&5
10526 rm -rf conftest*
10527 eval "ac_cv_func_$ac_func=no"
10528fi
10529rm -f conftest*
10530fi
10531
10532if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10533 echo "$ac_t""yes" 1>&6
10534 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10535 cat >> confdefs.h <<EOF
10536#define $ac_tr_func 1
10537EOF
10538 break
10539else
10540 echo "$ac_t""no" 1>&6
10541fi
10542done
10543
10544
10545for ac_func in strtok_r
10546do
10547echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
32832908 10548echo "configure:10549: checking for $ac_func" >&5
10f2d63a
VZ
10549if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10550 echo $ac_n "(cached) $ac_c" 1>&6
10551else
10552 cat > conftest.$ac_ext <<EOF
32832908 10553#line 10554 "configure"
10f2d63a
VZ
10554#include "confdefs.h"
10555/* System header to define __stub macros and hopefully few prototypes,
10556 which can conflict with char $ac_func(); below. */
10557#include <assert.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 $ac_func();
10562
10563int main() {
10564
10565/* The GNU C library defines this for functions which it implements
10566 to always fail with ENOSYS. Some functions are actually named
10567 something starting with __ and the normal name is an alias. */
10568#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10569choke me
10570#else
e8482f24 10571$ac_func();
10f2d63a
VZ
10572#endif
10573
10574; return 0; }
10575EOF
32832908 10576if { (eval echo configure:10577: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
10577 rm -rf conftest*
10578 eval "ac_cv_func_$ac_func=yes"
10579else
10580 echo "configure: failed program was:" >&5
10581 cat conftest.$ac_ext >&5
10582 rm -rf conftest*
10583 eval "ac_cv_func_$ac_func=no"
10584fi
10585rm -f conftest*
10586fi
10587
10588if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10589 echo "$ac_t""yes" 1>&6
10590 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10591 cat >> confdefs.h <<EOF
10592#define $ac_tr_func 1
10593EOF
10594
10595else
10596 echo "$ac_t""no" 1>&6
10597fi
10598done
10599
10600
c63c7106 10601INET_LINK=
10f2d63a
VZ
10602for ac_func in inet_addr
10603do
10604echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
32832908 10605echo "configure:10606: checking for $ac_func" >&5
10f2d63a
VZ
10606if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10607 echo $ac_n "(cached) $ac_c" 1>&6
10608else
10609 cat > conftest.$ac_ext <<EOF
32832908 10610#line 10611 "configure"
10f2d63a
VZ
10611#include "confdefs.h"
10612/* System header to define __stub macros and hopefully few prototypes,
10613 which can conflict with char $ac_func(); below. */
10614#include <assert.h>
10615/* Override any gcc2 internal prototype to avoid an error. */
10616/* We use char because int might match the return type of a gcc2
10617 builtin and then its argument prototype would still apply. */
10618char $ac_func();
10619
10620int main() {
10621
10622/* The GNU C library defines this for functions which it implements
10623 to always fail with ENOSYS. Some functions are actually named
10624 something starting with __ and the normal name is an alias. */
10625#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10626choke me
10627#else
e8482f24 10628$ac_func();
10f2d63a
VZ
10629#endif
10630
10631; return 0; }
10632EOF
32832908 10633if { (eval echo configure:10634: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
10634 rm -rf conftest*
10635 eval "ac_cv_func_$ac_func=yes"
10636else
10637 echo "configure: failed program was:" >&5
10638 cat conftest.$ac_ext >&5
10639 rm -rf conftest*
10640 eval "ac_cv_func_$ac_func=no"
10641fi
10642rm -f conftest*
10643fi
10644
10645if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10646 echo "$ac_t""yes" 1>&6
10647 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10648 cat >> confdefs.h <<EOF
10649#define $ac_tr_func 1
10650EOF
c63c7106
VZ
10651 cat >> confdefs.h <<\EOF
10652#define HAVE_INET_ADDR 1
10653EOF
10654
10f2d63a
VZ
10655else
10656 echo "$ac_t""no" 1>&6
c63c7106 10657echo $ac_n "checking for inet_addr in -lnsl""... $ac_c" 1>&6
32832908 10658echo "configure:10659: checking for inet_addr in -lnsl" >&5
c63c7106
VZ
10659ac_lib_var=`echo nsl'_'inet_addr | sed 'y%./+-%__p_%'`
10660if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10661 echo $ac_n "(cached) $ac_c" 1>&6
10662else
10663 ac_save_LIBS="$LIBS"
10664LIBS="-lnsl $LIBS"
10665cat > conftest.$ac_ext <<EOF
32832908 10666#line 10667 "configure"
c63c7106
VZ
10667#include "confdefs.h"
10668/* Override any gcc2 internal prototype to avoid an error. */
10669/* We use char because int might match the return type of a gcc2
10670 builtin and then its argument prototype would still apply. */
10671char inet_addr();
10672
10673int main() {
10674inet_addr()
10675; return 0; }
10676EOF
32832908 10677if { (eval echo configure:10678: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
c63c7106
VZ
10678 rm -rf conftest*
10679 eval "ac_cv_lib_$ac_lib_var=yes"
10680else
10681 echo "configure: failed program was:" >&5
10682 cat conftest.$ac_ext >&5
10683 rm -rf conftest*
10684 eval "ac_cv_lib_$ac_lib_var=no"
10685fi
10686rm -f conftest*
10687LIBS="$ac_save_LIBS"
10688
10689fi
10690if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10691 echo "$ac_t""yes" 1>&6
10692 INET_LINK="nsl"
10693else
10694 echo "$ac_t""no" 1>&6
10695echo $ac_n "checking for inet_addr in -lresolv""... $ac_c" 1>&6
32832908 10696echo "configure:10697: checking for inet_addr in -lresolv" >&5
c63c7106
VZ
10697ac_lib_var=`echo resolv'_'inet_addr | sed 'y%./+-%__p_%'`
10698if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10699 echo $ac_n "(cached) $ac_c" 1>&6
10700else
10701 ac_save_LIBS="$LIBS"
10702LIBS="-lresolv $LIBS"
10703cat > conftest.$ac_ext <<EOF
32832908 10704#line 10705 "configure"
c63c7106
VZ
10705#include "confdefs.h"
10706/* Override any gcc2 internal prototype to avoid an error. */
10707/* We use char because int might match the return type of a gcc2
10708 builtin and then its argument prototype would still apply. */
10709char inet_addr();
10710
10711int main() {
10712inet_addr()
10713; return 0; }
10714EOF
32832908 10715if { (eval echo configure:10716: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
c63c7106
VZ
10716 rm -rf conftest*
10717 eval "ac_cv_lib_$ac_lib_var=yes"
10718else
10719 echo "configure: failed program was:" >&5
10720 cat conftest.$ac_ext >&5
10721 rm -rf conftest*
10722 eval "ac_cv_lib_$ac_lib_var=no"
10723fi
10724rm -f conftest*
10725LIBS="$ac_save_LIBS"
10726
10727fi
10728if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10729 echo "$ac_t""yes" 1>&6
10730 INET_LINK="resolv"
10731
10732else
10733 echo "$ac_t""no" 1>&6
10734fi
10735
10736
10737fi
10738
10739
10740
10f2d63a
VZ
10741fi
10742done
10743
c63c7106 10744
10f2d63a
VZ
10745for ac_func in inet_aton
10746do
10747echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
32832908 10748echo "configure:10749: checking for $ac_func" >&5
10f2d63a
VZ
10749if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10750 echo $ac_n "(cached) $ac_c" 1>&6
10751else
10752 cat > conftest.$ac_ext <<EOF
32832908 10753#line 10754 "configure"
10f2d63a
VZ
10754#include "confdefs.h"
10755/* System header to define __stub macros and hopefully few prototypes,
10756 which can conflict with char $ac_func(); below. */
10757#include <assert.h>
10758/* Override any gcc2 internal prototype to avoid an error. */
10759/* We use char because int might match the return type of a gcc2
10760 builtin and then its argument prototype would still apply. */
10761char $ac_func();
10762
10763int main() {
10764
10765/* The GNU C library defines this for functions which it implements
10766 to always fail with ENOSYS. Some functions are actually named
10767 something starting with __ and the normal name is an alias. */
10768#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10769choke me
10770#else
e8482f24 10771$ac_func();
10f2d63a
VZ
10772#endif
10773
10774; return 0; }
10775EOF
32832908 10776if { (eval echo configure:10777: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
10777 rm -rf conftest*
10778 eval "ac_cv_func_$ac_func=yes"
10779else
10780 echo "configure: failed program was:" >&5
10781 cat conftest.$ac_ext >&5
10782 rm -rf conftest*
10783 eval "ac_cv_func_$ac_func=no"
10784fi
10785rm -f conftest*
10786fi
10787
10788if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10789 echo "$ac_t""yes" 1>&6
10790 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10791 cat >> confdefs.h <<EOF
10792#define $ac_tr_func 1
10793EOF
c63c7106
VZ
10794 cat >> confdefs.h <<\EOF
10795#define HAVE_INET_ATON 1
10796EOF
10797
10f2d63a
VZ
10798else
10799 echo "$ac_t""no" 1>&6
c63c7106 10800 echo $ac_n "checking for inet_aton in -l$INET_LINK""... $ac_c" 1>&6
32832908 10801echo "configure:10802: checking for inet_aton in -l$INET_LINK" >&5
c63c7106 10802ac_lib_var=`echo $INET_LINK'_'inet_aton | sed 'y%./+-%__p_%'`
10f2d63a
VZ
10803if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10804 echo $ac_n "(cached) $ac_c" 1>&6
10805else
10806 ac_save_LIBS="$LIBS"
c63c7106 10807LIBS="-l$INET_LINK $LIBS"
10f2d63a 10808cat > conftest.$ac_ext <<EOF
32832908 10809#line 10810 "configure"
10f2d63a
VZ
10810#include "confdefs.h"
10811/* Override any gcc2 internal prototype to avoid an error. */
10812/* We use char because int might match the return type of a gcc2
10813 builtin and then its argument prototype would still apply. */
10814char inet_aton();
10815
10816int main() {
10817inet_aton()
10818; return 0; }
10819EOF
32832908 10820if { (eval echo configure:10821: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
10821 rm -rf conftest*
10822 eval "ac_cv_lib_$ac_lib_var=yes"
10823else
10824 echo "configure: failed program was:" >&5
10825 cat conftest.$ac_ext >&5
10826 rm -rf conftest*
10827 eval "ac_cv_lib_$ac_lib_var=no"
10828fi
10829rm -f conftest*
10830LIBS="$ac_save_LIBS"
10831
10832fi
10833if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10834 echo "$ac_t""yes" 1>&6
c63c7106
VZ
10835 cat >> confdefs.h <<\EOF
10836#define HAVE_INET_ATON 1
10f2d63a
VZ
10837EOF
10838
10f2d63a
VZ
10839else
10840 echo "$ac_t""no" 1>&6
10841fi
10842
c63c7106
VZ
10843
10844fi
10845done
10846
10847
10848if test "x$INET_LINK" != "x"; then
10849 cat >> confdefs.h <<\EOF
10850#define HAVE_INET_ADDR 1
10851EOF
10852
10853 INET_LINK="-l$INET_LINK"
10854fi
10f2d63a
VZ
10855
10856fi
10857
10858
10859cat > confcache <<\EOF
10860# This file is a shell script that caches the results of configure
10861# tests run on this system so they can be shared between configure
10862# scripts and configure runs. It is not useful on other systems.
10863# If it contains results you don't want to keep, you may remove or edit it.
10864#
10865# By default, configure uses ./config.cache as the cache file,
10866# creating it if it does not exist already. You can give configure
10867# the --cache-file=FILE option to use a different cache file; that is
10868# what configure does when it calls configure scripts in
10869# subdirectories, so they share the cache.
10870# Giving --cache-file=/dev/null disables caching, for debugging configure.
10871# config.status only pays attention to the cache file if you give it the
10872# --recheck option to rerun configure.
10873#
10874EOF
10875# The following way of writing the cache mishandles newlines in values,
10876# but we know of no workaround that is simple, portable, and efficient.
10877# So, don't put newlines in cache variables' values.
10878# Ultrix sh set writes to stderr and can't be redirected directly,
10879# and sets the high bit in the cache file unless we assign to the vars.
10880(set) 2>&1 |
10881 case `(ac_space=' '; set | grep ac_space) 2>&1` in
10882 *ac_space=\ *)
10883 # `set' does not quote correctly, so add quotes (double-quote substitution
10884 # turns \\\\ into \\, and sed turns \\ into \).
10885 sed -n \
10886 -e "s/'/'\\\\''/g" \
10887 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
10888 ;;
10889 *)
10890 # `set' quotes correctly as required by POSIX, so do not add quotes.
10891 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
10892 ;;
10893 esac >> confcache
10894if cmp -s $cache_file confcache; then
10895 :
10896else
10897 if test -w $cache_file; then
10898 echo "updating cache $cache_file"
10899 cat confcache > $cache_file
10900 else
10901 echo "not updating unwritable cache $cache_file"
10902 fi
10903fi
10904rm -f confcache
10905
10906
10907
b089607b 10908if test "$TOOLKIT" != "MSW"; then
10f2d63a
VZ
10909
10910
10911THREADS_LINK=""
10912THREADS_OBJ=""
10913
10914if test "$wxUSE_THREADS" = "yes" ; then
10915 if test "$wxUSE_WINE" = 1 ; then
10916 echo "configure: warning: Threads are not supported under WINE" 1>&2
10917 wxUSE_THREADS="no"
b12915c1
VZ
10918 elif test "$USE_BEOS" = 1; then
10919 echo "configure: warning: BeOS threads are not yet supported" 1>&2
10920 wxUSE_THREADS="no"
10f2d63a
VZ
10921 fi
10922fi
10923
10924if test "$wxUSE_THREADS" = "yes" ; then
10925
10926 echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6
32832908 10927echo "configure:10928: checking for pthread_create in -lpthread" >&5
10f2d63a
VZ
10928ac_lib_var=`echo pthread'_'pthread_create | sed 'y%./+-%__p_%'`
10929if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10930 echo $ac_n "(cached) $ac_c" 1>&6
10931else
10932 ac_save_LIBS="$LIBS"
10933LIBS="-lpthread $LIBS"
10934cat > conftest.$ac_ext <<EOF
32832908 10935#line 10936 "configure"
10f2d63a
VZ
10936#include "confdefs.h"
10937/* Override any gcc2 internal prototype to avoid an error. */
10938/* We use char because int might match the return type of a gcc2
10939 builtin and then its argument prototype would still apply. */
10940char pthread_create();
10941
10942int main() {
10943pthread_create()
10944; return 0; }
10945EOF
32832908 10946if { (eval echo configure:10947: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
10947 rm -rf conftest*
10948 eval "ac_cv_lib_$ac_lib_var=yes"
10949else
10950 echo "configure: failed program was:" >&5
10951 cat conftest.$ac_ext >&5
10952 rm -rf conftest*
10953 eval "ac_cv_lib_$ac_lib_var=no"
10954fi
10955rm -f conftest*
10956LIBS="$ac_save_LIBS"
10957
10958fi
10959if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10960 echo "$ac_t""yes" 1>&6
10961
10962 THREADS_OBJ="threadpsx.lo"
10963 THREADS_LINK="pthread"
10964
10965else
10966 echo "$ac_t""no" 1>&6
10967
10968 echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6
32832908 10969echo "configure:10970: checking for pthread_create in -lc_r" >&5
10f2d63a
VZ
10970ac_lib_var=`echo c_r'_'pthread_create | sed 'y%./+-%__p_%'`
10971if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10972 echo $ac_n "(cached) $ac_c" 1>&6
10973else
10974 ac_save_LIBS="$LIBS"
10975LIBS="-lc_r $LIBS"
10976cat > conftest.$ac_ext <<EOF
32832908 10977#line 10978 "configure"
10f2d63a
VZ
10978#include "confdefs.h"
10979/* Override any gcc2 internal prototype to avoid an error. */
10980/* We use char because int might match the return type of a gcc2
10981 builtin and then its argument prototype would still apply. */
10982char pthread_create();
10983
10984int main() {
10985pthread_create()
10986; return 0; }
10987EOF
32832908 10988if { (eval echo configure:10989: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
10989 rm -rf conftest*
10990 eval "ac_cv_lib_$ac_lib_var=yes"
10991else
10992 echo "configure: failed program was:" >&5
10993 cat conftest.$ac_ext >&5
10994 rm -rf conftest*
10995 eval "ac_cv_lib_$ac_lib_var=no"
10996fi
10997rm -f conftest*
10998LIBS="$ac_save_LIBS"
10999
11000fi
11001if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11002 echo "$ac_t""yes" 1>&6
11003
11004 THREADS_OBJ="threadpsx.lo"
11005 THREADS_LINK="c_r"
11006
11007else
11008 echo "$ac_t""no" 1>&6
11009
11010 ac_safe=`echo "sys/prctl.h" | sed 'y%./+-%__p_%'`
11011echo $ac_n "checking for sys/prctl.h""... $ac_c" 1>&6
32832908 11012echo "configure:11013: checking for sys/prctl.h" >&5
10f2d63a
VZ
11013if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11014 echo $ac_n "(cached) $ac_c" 1>&6
11015else
11016 cat > conftest.$ac_ext <<EOF
32832908 11017#line 11018 "configure"
10f2d63a
VZ
11018#include "confdefs.h"
11019#include <sys/prctl.h>
11020EOF
11021ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
32832908 11022{ (eval echo configure:11023: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
11023ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11024if test -z "$ac_err"; then
11025 rm -rf conftest*
11026 eval "ac_cv_header_$ac_safe=yes"
11027else
11028 echo "$ac_err" >&5
11029 echo "configure: failed program was:" >&5
11030 cat conftest.$ac_ext >&5
11031 rm -rf conftest*
11032 eval "ac_cv_header_$ac_safe=no"
11033fi
11034rm -f conftest*
11035fi
11036if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11037 echo "$ac_t""yes" 1>&6
11038
11039 THREADS_OBJ="threadsgi.lo"
11040
11041else
11042 echo "$ac_t""no" 1>&6
11043fi
11044
11045
11046fi
11047
11048
11049fi
11050
11051
11052 if test -z "$THREADS_OBJ" ; then
11053 wxUSE_THREADS=no
11054 echo "configure: warning: No thread support on this system" 1>&2
11055 fi
11056fi
11057
11058if test "$wxUSE_THREADS" = "yes" ; then
70846f0a
VZ
11059 for ac_func in thr_setconcurrency
11060do
11061echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
32832908 11062echo "configure:11063: checking for $ac_func" >&5
70846f0a
VZ
11063if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11064 echo $ac_n "(cached) $ac_c" 1>&6
11065else
11066 cat > conftest.$ac_ext <<EOF
32832908 11067#line 11068 "configure"
70846f0a
VZ
11068#include "confdefs.h"
11069/* System header to define __stub macros and hopefully few prototypes,
11070 which can conflict with char $ac_func(); below. */
11071#include <assert.h>
11072/* Override any gcc2 internal prototype to avoid an error. */
11073/* We use char because int might match the return type of a gcc2
11074 builtin and then its argument prototype would still apply. */
11075char $ac_func();
11076
11077int main() {
11078
11079/* The GNU C library defines this for functions which it implements
11080 to always fail with ENOSYS. Some functions are actually named
11081 something starting with __ and the normal name is an alias. */
11082#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11083choke me
11084#else
e8482f24 11085$ac_func();
70846f0a
VZ
11086#endif
11087
11088; return 0; }
11089EOF
32832908 11090if { (eval echo configure:11091: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
70846f0a
VZ
11091 rm -rf conftest*
11092 eval "ac_cv_func_$ac_func=yes"
11093else
11094 echo "configure: failed program was:" >&5
11095 cat conftest.$ac_ext >&5
11096 rm -rf conftest*
11097 eval "ac_cv_func_$ac_func=no"
11098fi
11099rm -f conftest*
11100fi
11101
11102if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11103 echo "$ac_t""yes" 1>&6
11104 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11105 cat >> confdefs.h <<EOF
11106#define $ac_tr_func 1
11107EOF
11108
11109else
11110 echo "$ac_t""no" 1>&6
11111fi
11112done
11113
11114
10f2d63a
VZ
11115
11116 for ac_hdr in sched.h
11117do
11118ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11119echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
32832908 11120echo "configure:11121: checking for $ac_hdr" >&5
10f2d63a
VZ
11121if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11122 echo $ac_n "(cached) $ac_c" 1>&6
11123else
11124 cat > conftest.$ac_ext <<EOF
32832908 11125#line 11126 "configure"
10f2d63a
VZ
11126#include "confdefs.h"
11127#include <$ac_hdr>
11128EOF
11129ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
32832908 11130{ (eval echo configure:11131: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
11131ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11132if test -z "$ac_err"; then
11133 rm -rf conftest*
11134 eval "ac_cv_header_$ac_safe=yes"
11135else
11136 echo "$ac_err" >&5
11137 echo "configure: failed program was:" >&5
11138 cat conftest.$ac_ext >&5
11139 rm -rf conftest*
11140 eval "ac_cv_header_$ac_safe=no"
11141fi
11142rm -f conftest*
11143fi
11144if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11145 echo "$ac_t""yes" 1>&6
11146 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11147 cat >> confdefs.h <<EOF
11148#define $ac_tr_hdr 1
11149EOF
11150
11151else
11152 echo "$ac_t""no" 1>&6
11153fi
11154done
11155
11156
11157 echo $ac_n "checking for sched_yield in -l$THREADS_LINK""... $ac_c" 1>&6
32832908 11158echo "configure:11159: checking for sched_yield in -l$THREADS_LINK" >&5
10f2d63a
VZ
11159ac_lib_var=`echo $THREADS_LINK'_'sched_yield | sed 'y%./+-%__p_%'`
11160if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11161 echo $ac_n "(cached) $ac_c" 1>&6
11162else
11163 ac_save_LIBS="$LIBS"
11164LIBS="-l$THREADS_LINK $LIBS"
11165cat > conftest.$ac_ext <<EOF
32832908 11166#line 11167 "configure"
10f2d63a
VZ
11167#include "confdefs.h"
11168/* Override any gcc2 internal prototype to avoid an error. */
11169/* We use char because int might match the return type of a gcc2
11170 builtin and then its argument prototype would still apply. */
11171char sched_yield();
11172
11173int main() {
11174sched_yield()
11175; return 0; }
11176EOF
32832908 11177if { (eval echo configure:11178: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
11178 rm -rf conftest*
11179 eval "ac_cv_lib_$ac_lib_var=yes"
11180else
11181 echo "configure: failed program was:" >&5
11182 cat conftest.$ac_ext >&5
11183 rm -rf conftest*
11184 eval "ac_cv_lib_$ac_lib_var=no"
11185fi
11186rm -f conftest*
11187LIBS="$ac_save_LIBS"
11188
11189fi
11190if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11191 echo "$ac_t""yes" 1>&6
11192 cat >> confdefs.h <<\EOF
11193#define HAVE_SCHED_YIELD 1
11194EOF
11195
11196else
11197 echo "$ac_t""no" 1>&6
11198echo $ac_n "checking for sched_yield in -l"posix4"""... $ac_c" 1>&6
32832908 11199echo "configure:11200: checking for sched_yield in -l"posix4"" >&5
10f2d63a
VZ
11200ac_lib_var=`echo "posix4"'_'sched_yield | sed 'y%./+-%__p_%'`
11201if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11202 echo $ac_n "(cached) $ac_c" 1>&6
11203else
11204 ac_save_LIBS="$LIBS"
11205LIBS="-l"posix4" $LIBS"
11206cat > conftest.$ac_ext <<EOF
32832908 11207#line 11208 "configure"
10f2d63a
VZ
11208#include "confdefs.h"
11209/* Override any gcc2 internal prototype to avoid an error. */
11210/* We use char because int might match the return type of a gcc2
11211 builtin and then its argument prototype would still apply. */
11212char sched_yield();
11213
11214int main() {
11215sched_yield()
11216; return 0; }
11217EOF
32832908 11218if { (eval echo configure:11219: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
11219 rm -rf conftest*
11220 eval "ac_cv_lib_$ac_lib_var=yes"
11221else
11222 echo "configure: failed program was:" >&5
11223 cat conftest.$ac_ext >&5
11224 rm -rf conftest*
11225 eval "ac_cv_lib_$ac_lib_var=no"
11226fi
11227rm -f conftest*
11228LIBS="$ac_save_LIBS"
11229
11230fi
11231if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11232 echo "$ac_t""yes" 1>&6
11233 cat >> confdefs.h <<\EOF
11234#define HAVE_SCHED_YIELD 1
11235EOF
11236 POSIX4_LINK="-lposix4"
11237else
11238 echo "$ac_t""no" 1>&6
11239echo "configure: warning: wxThread::Yield will not work properly" 1>&2
11240
11241fi
11242
11243
11244fi
11245
11246
11247 echo $ac_n "checking for pthread_attr_getschedpolicy in -l$THREADS_LINK""... $ac_c" 1>&6
32832908 11248echo "configure:11249: checking for pthread_attr_getschedpolicy in -l$THREADS_LINK" >&5
10f2d63a
VZ
11249ac_lib_var=`echo $THREADS_LINK'_'pthread_attr_getschedpolicy | sed 'y%./+-%__p_%'`
11250if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11251 echo $ac_n "(cached) $ac_c" 1>&6
11252else
11253 ac_save_LIBS="$LIBS"
11254LIBS="-l$THREADS_LINK $LIBS"
11255cat > conftest.$ac_ext <<EOF
32832908 11256#line 11257 "configure"
10f2d63a
VZ
11257#include "confdefs.h"
11258/* Override any gcc2 internal prototype to avoid an error. */
11259/* We use char because int might match the return type of a gcc2
11260 builtin and then its argument prototype would still apply. */
11261char pthread_attr_getschedpolicy();
11262
11263int main() {
11264pthread_attr_getschedpolicy()
11265; return 0; }
11266EOF
32832908 11267if { (eval echo configure:11268: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
11268 rm -rf conftest*
11269 eval "ac_cv_lib_$ac_lib_var=yes"
11270else
11271 echo "configure: failed program was:" >&5
11272 cat conftest.$ac_ext >&5
11273 rm -rf conftest*
11274 eval "ac_cv_lib_$ac_lib_var=no"
11275fi
11276rm -f conftest*
11277LIBS="$ac_save_LIBS"
11278
11279fi
11280if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11281 echo "$ac_t""yes" 1>&6
11282 cat >> confdefs.h <<\EOF
11283#define HAVE_THREAD_PRIORITY_FUNCTIONS 1
11284EOF
11285
11286else
11287 echo "$ac_t""no" 1>&6
11288echo $ac_n "checking for pthread_attr_getschedpolicy in -l"posix4"""... $ac_c" 1>&6
32832908 11289echo "configure:11290: checking for pthread_attr_getschedpolicy in -l"posix4"" >&5
10f2d63a
VZ
11290ac_lib_var=`echo "posix4"'_'pthread_attr_getschedpolicy | sed 'y%./+-%__p_%'`
11291if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11292 echo $ac_n "(cached) $ac_c" 1>&6
11293else
11294 ac_save_LIBS="$LIBS"
11295LIBS="-l"posix4" $LIBS"
11296cat > conftest.$ac_ext <<EOF
32832908 11297#line 11298 "configure"
10f2d63a
VZ
11298#include "confdefs.h"
11299/* Override any gcc2 internal prototype to avoid an error. */
11300/* We use char because int might match the return type of a gcc2
11301 builtin and then its argument prototype would still apply. */
11302char pthread_attr_getschedpolicy();
11303
11304int main() {
11305pthread_attr_getschedpolicy()
11306; return 0; }
11307EOF
32832908 11308if { (eval echo configure:11309: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
11309 rm -rf conftest*
11310 eval "ac_cv_lib_$ac_lib_var=yes"
11311else
11312 echo "configure: failed program was:" >&5
11313 cat conftest.$ac_ext >&5
11314 rm -rf conftest*
11315 eval "ac_cv_lib_$ac_lib_var=no"
11316fi
11317rm -f conftest*
11318LIBS="$ac_save_LIBS"
11319
11320fi
11321if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11322 echo "$ac_t""yes" 1>&6
11323 cat >> confdefs.h <<\EOF
11324#define HAVE_THREAD_PRIORITY_FUNCTIONS 1
11325EOF
11326 POSIX4_LINK="-lposix4"
11327else
11328 echo "$ac_t""no" 1>&6
11329echo "configure: warning: Setting thread priority will not work" 1>&2
11330
11331fi
11332
11333
11334fi
11335
11336
11337 echo $ac_n "checking for pthread_cancel in -l$THREADS_LINK""... $ac_c" 1>&6
32832908 11338echo "configure:11339: checking for pthread_cancel in -l$THREADS_LINK" >&5
10f2d63a
VZ
11339ac_lib_var=`echo $THREADS_LINK'_'pthread_cancel | sed 'y%./+-%__p_%'`
11340if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11341 echo $ac_n "(cached) $ac_c" 1>&6
11342else
11343 ac_save_LIBS="$LIBS"
11344LIBS="-l$THREADS_LINK $LIBS"
11345cat > conftest.$ac_ext <<EOF
32832908 11346#line 11347 "configure"
10f2d63a
VZ
11347#include "confdefs.h"
11348/* Override any gcc2 internal prototype to avoid an error. */
11349/* We use char because int might match the return type of a gcc2
11350 builtin and then its argument prototype would still apply. */
11351char pthread_cancel();
11352
11353int main() {
11354pthread_cancel()
11355; return 0; }
11356EOF
32832908 11357if { (eval echo configure:11358: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
11358 rm -rf conftest*
11359 eval "ac_cv_lib_$ac_lib_var=yes"
11360else
11361 echo "configure: failed program was:" >&5
11362 cat conftest.$ac_ext >&5
11363 rm -rf conftest*
11364 eval "ac_cv_lib_$ac_lib_var=no"
11365fi
11366rm -f conftest*
11367LIBS="$ac_save_LIBS"
11368
11369fi
11370if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11371 echo "$ac_t""yes" 1>&6
11372 cat >> confdefs.h <<\EOF
11373#define HAVE_PTHREAD_CANCEL 1
11374EOF
11375
11376else
11377 echo "$ac_t""no" 1>&6
11378echo "configure: warning: wxThread::Kill() will not work properly" 1>&2
11379fi
11380
11381
11382 echo $ac_n "checking for pthread_cleanup_push/pop""... $ac_c" 1>&6
32832908 11383echo "configure:11384: checking for pthread_cleanup_push/pop" >&5
10f2d63a
VZ
11384if eval "test \"`echo '$''{'wx_cv_func_pthread_cleanup_push'+set}'`\" = set"; then
11385 echo $ac_n "(cached) $ac_c" 1>&6
11386else
11387
11388 cat > conftest.$ac_ext <<EOF
32832908 11389#line 11390 "configure"
10f2d63a
VZ
11390#include "confdefs.h"
11391#include <pthread.h>
11392int main() {
11393
11394 pthread_cleanup_push(NULL, NULL);
11395 pthread_cleanup_pop(0);
11396
11397; return 0; }
11398EOF
32832908 11399if { (eval echo configure:11400: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10f2d63a
VZ
11400 rm -rf conftest*
11401
11402 wx_cv_func_pthread_cleanup_push=yes
11403 cat >> confdefs.h <<\EOF
11404#define HAVE_THREAD_CLEANUP_FUNCTIONS 1
11405EOF
11406
11407
11408else
11409 echo "configure: failed program was:" >&5
11410 cat conftest.$ac_ext >&5
11411 rm -rf conftest*
11412
11413 wx_cv_func_pthread_cleanup_push=no
11414
11415fi
11416rm -f conftest*
11417
11418fi
11419
11420echo "$ac_t""$wx_cv_func_pthread_cleanup_push" 1>&6
11421
11422 THREADS_LINK="-l$THREADS_LINK"
11423fi
11424
11425fi
11426
11427if test "$wxUSE_THREADS" = "yes"; then
11428 cat >> confdefs.h <<\EOF
11429#define wxUSE_THREADS 1
11430EOF
11431
11432
11433 CFLAGS="${CFLAGS} -D_REENTRANT"
11434 CXXFLAGS="${CXXFLAGS} -D_REENTRANT"
11435
11436 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
11437else
11438 if test "$ac_cv_func_strtok_r" = "yes"; then
ab9b9eab 11439 echo $ac_n "checking if -D_REENTRANT is needed""... $ac_c" 1>&6
32832908 11440echo "configure:11441: checking if -D_REENTRANT is needed" >&5
ab9b9eab
VZ
11441 if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
11442 CFLAGS="${CFLAGS} -D_REENTRANT"
11443 CXXFLAGS="${CXXFLAGS} -D_REENTRANT"
11444 echo "$ac_t""yes" 1>&6
11445 else
11446 echo "$ac_t""no" 1>&6
10f2d63a
VZ
11447 fi
11448 fi
11449fi
11450
13111b2a
VZ
11451if test "$WXGTK13" = 1 ; then
11452 cat >> confdefs.h <<EOF
11453#define __WXGTK13__ $WXGTK13
11454EOF
11455
11456 WXGTK12=1
11457fi
11458
10f2d63a
VZ
11459if test "$WXGTK12" = 1 ; then
11460 cat >> confdefs.h <<EOF
11461#define __WXGTK12__ $WXGTK12
11462EOF
11463
11464fi
11465
11466if test "$WXWINE" = 1 ; then
11467 TOOLKIT_DEF="${TOOLKIT_DEF} -D__WXWINE__"
11468fi
11469
11470if test "$wxUSE_CYGWIN" = 1 ; then
11471 TOOLKIT_DEF="${TOOLKIT_DEF} -D__WIN95__"
11472fi
11473
11474WXDEBUG=
11475
11476if test "$wxUSE_DEBUG_INFO" = "yes" ; then
11477 WXDEBUG="-g"
11478 wxUSE_OPTIMISE=no
11479fi
11480
11481if test "$wxUSE_DEBUG_GDB" = "yes" ; then
11482 wxUSE_DEBUG_INFO=yes
11483 WXDEBUG="-ggdb"
11484fi
11485
11486if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
11487 cat >> confdefs.h <<\EOF
11488#define WXDEBUG 1
11489EOF
11490
11491 WXDEBUG_DEFINE="-D__WXDEBUG__"
11492else
11493 if test "$wxUSE_GTK" = 1 ; then
11494 WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS"
11495 fi
11496fi
11497
11498if test "$wxUSE_MEM_TRACING" = "yes" ; then
11499 cat >> confdefs.h <<\EOF
11500#define wxUSE_MEMORY_TRACING 1
11501EOF
11502
11503 cat >> confdefs.h <<\EOF
11504#define wxUSE_GLOBAL_MEMORY_OPERATORS 1
47c13eb7
VS
11505EOF
11506
11507 cat >> confdefs.h <<\EOF
11508#define wxUSE_DEBUG_NEW_ALWAYS 1
10f2d63a
VZ
11509EOF
11510
11511 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
11512fi
11513
11514if test "$wxUSE_DMALLOC" = "yes" ; then
11515 DMALLOC_LINK="-ldmalloc"
11516fi
11517
11518PROFILE=
11519if test "$wxUSE_PROFILE" = "yes" ; then
11520 PROFILE="-pg"
11521fi
11522
11523DEP_INFO_FLAGS=
caa2c79b 11524CODE_GEN_FLAGS=
10f2d63a
VZ
11525if test "$GCC" = yes ; then
11526 if test "$wxUSE_NO_RTTI" = "yes" ; then
caa2c79b 11527 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fno-rtti"
10f2d63a
VZ
11528 fi
11529 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
caa2c79b 11530 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fno-exceptions"
10f2d63a
VZ
11531 fi
11532 if test "$wxUSE_PERMISSIVE" = "yes" ; then
caa2c79b 11533 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive"
10f2d63a
VZ
11534 fi
11535 if test "$wxUSE_NO_DEPS" = "no" ; then
11536 DEP_INFO_FLAGS="-MMD"
11537 fi
11538fi
11539
11540
11541CXXFLAGS=`echo "${CXXFLAGS}" | sed "s/\-O.//g" `
11542CFLAGS=`echo "${CFLAGS}" | sed "s/\-O.//g" `
11543if test "$wxUSE_OPTIMISE" = "no" ; then
11544 OPTIMISE=
11545else
11546 if test "$GCC" = yes ; then
11547 OPTIMISE="-O2"
11548 case "${host}" in
11549 i586-*-*|i686-*-* )
11550 OPTIMISE="${OPTIMISE} "
11551 ;;
11552 esac
11553 else
11554 OPTIMISE="-O"
11555 fi
11556fi
11557
11558
11559ZLIB_INCLUDE=
422107f9 11560if test "$wxUSE_ZLIB" = "yes" -o "$wxUSE_ZLIB" = "sys" ; then
10f2d63a
VZ
11561 cat >> confdefs.h <<\EOF
11562#define wxUSE_ZLIB 1
11563EOF
11564
422107f9
VZ
11565 if test "$wxUSE_ZLIB" = "yes" ; then
11566 ZLIB_INCLUDE="-I\${top_srcdir}/src/zlib"
11567 else
11568 ZLIB_LINK=
11569 ac_safe=`echo "zlib.h" | sed 'y%./+-%__p_%'`
11570echo $ac_n "checking for zlib.h""... $ac_c" 1>&6
32832908 11571echo "configure:11572: checking for zlib.h" >&5
422107f9
VZ
11572if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11573 echo $ac_n "(cached) $ac_c" 1>&6
11574else
11575 cat > conftest.$ac_ext <<EOF
32832908 11576#line 11577 "configure"
422107f9
VZ
11577#include "confdefs.h"
11578#include <zlib.h>
11579EOF
11580ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
32832908 11581{ (eval echo configure:11582: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
422107f9
VZ
11582ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11583if test -z "$ac_err"; then
11584 rm -rf conftest*
11585 eval "ac_cv_header_$ac_safe=yes"
11586else
11587 echo "$ac_err" >&5
11588 echo "configure: failed program was:" >&5
11589 cat conftest.$ac_ext >&5
11590 rm -rf conftest*
11591 eval "ac_cv_header_$ac_safe=no"
11592fi
11593rm -f conftest*
11594fi
11595if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11596 echo "$ac_t""yes" 1>&6
11597 echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6
32832908 11598echo "configure:11599: checking for deflate in -lz" >&5
422107f9
VZ
11599ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'`
11600if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11601 echo $ac_n "(cached) $ac_c" 1>&6
11602else
11603 ac_save_LIBS="$LIBS"
11604LIBS="-lz $LIBS"
11605cat > conftest.$ac_ext <<EOF
32832908 11606#line 11607 "configure"
422107f9
VZ
11607#include "confdefs.h"
11608/* Override any gcc2 internal prototype to avoid an error. */
11609/* We use char because int might match the return type of a gcc2
11610 builtin and then its argument prototype would still apply. */
11611char deflate();
11612
11613int main() {
11614deflate()
11615; return 0; }
11616EOF
32832908 11617if { (eval echo configure:11618: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
422107f9
VZ
11618 rm -rf conftest*
11619 eval "ac_cv_lib_$ac_lib_var=yes"
11620else
11621 echo "configure: failed program was:" >&5
11622 cat conftest.$ac_ext >&5
11623 rm -rf conftest*
11624 eval "ac_cv_lib_$ac_lib_var=no"
11625fi
11626rm -f conftest*
11627LIBS="$ac_save_LIBS"
11628
11629fi
11630if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11631 echo "$ac_t""yes" 1>&6
11632 ZLIB_LINK="-lz"
11633else
11634 echo "$ac_t""no" 1>&6
11635fi
11636
11637else
11638 echo "$ac_t""no" 1>&6
11639fi
11640
11641 if test "x$ZLIB_LINK" = "x" ; then
11642 { echo "configure: error: system zlib compression library not found! Use --with-zlib=yes to use built-in zlib" 1>&2; exit 1; }
11643 fi
11644 fi
10f2d63a
VZ
11645fi
11646
11647PNG_INCLUDE=
422107f9 11648if test "$wxUSE_LIBPNG" = "yes" -o "$wxUSE_LIBPNG" = "sys" ; then
10f2d63a
VZ
11649 cat >> confdefs.h <<\EOF
11650#define wxUSE_LIBPNG 1
11651EOF
11652
41fd4136 11653 if test "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
422107f9
VZ
11654 echo "configure: warning: --with-libpng=sys doesn't work without --with-zlib=sys, will compile the built-in libpng instead" 1>&2
11655 wxUSE_LIBPNG=yes
11656 fi
11657
11658 if test "$wxUSE_LIBPNG" = "yes" ; then
11659 PNG_INCLUDE="-I\${top_srcdir}/src/png"
11660 else
11661 PNG_LINK=
11662 ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'`
11663echo $ac_n "checking for png.h""... $ac_c" 1>&6
32832908 11664echo "configure:11665: checking for png.h" >&5
422107f9
VZ
11665if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11666 echo $ac_n "(cached) $ac_c" 1>&6
11667else
11668 cat > conftest.$ac_ext <<EOF
32832908 11669#line 11670 "configure"
422107f9
VZ
11670#include "confdefs.h"
11671#include <png.h>
11672EOF
11673ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
32832908 11674{ (eval echo configure:11675: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
422107f9
VZ
11675ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11676if test -z "$ac_err"; then
11677 rm -rf conftest*
11678 eval "ac_cv_header_$ac_safe=yes"
11679else
11680 echo "$ac_err" >&5
11681 echo "configure: failed program was:" >&5
11682 cat conftest.$ac_ext >&5
11683 rm -rf conftest*
11684 eval "ac_cv_header_$ac_safe=no"
11685fi
11686rm -f conftest*
11687fi
11688if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11689 echo "$ac_t""yes" 1>&6
11690 echo $ac_n "checking for png_check_sig in -lpng""... $ac_c" 1>&6
32832908 11691echo "configure:11692: checking for png_check_sig in -lpng" >&5
422107f9
VZ
11692ac_lib_var=`echo png'_'png_check_sig | sed 'y%./+-%__p_%'`
11693if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11694 echo $ac_n "(cached) $ac_c" 1>&6
11695else
11696 ac_save_LIBS="$LIBS"
11697LIBS="-lpng -lz -lm $LIBS"
11698cat > conftest.$ac_ext <<EOF
32832908 11699#line 11700 "configure"
422107f9
VZ
11700#include "confdefs.h"
11701/* Override any gcc2 internal prototype to avoid an error. */
11702/* We use char because int might match the return type of a gcc2
11703 builtin and then its argument prototype would still apply. */
11704char png_check_sig();
11705
11706int main() {
11707png_check_sig()
11708; return 0; }
11709EOF
32832908 11710if { (eval echo configure:11711: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
422107f9
VZ
11711 rm -rf conftest*
11712 eval "ac_cv_lib_$ac_lib_var=yes"
11713else
11714 echo "configure: failed program was:" >&5
11715 cat conftest.$ac_ext >&5
11716 rm -rf conftest*
11717 eval "ac_cv_lib_$ac_lib_var=no"
11718fi
11719rm -f conftest*
11720LIBS="$ac_save_LIBS"
11721
11722fi
11723if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11724 echo "$ac_t""yes" 1>&6
11725 PNG_LINK="-lpng"
11726else
11727 echo "$ac_t""no" 1>&6
11728fi
11729
11730
11731else
11732 echo "$ac_t""no" 1>&6
11733fi
11734
11735 if test "x$PNG_LINK" = "x" ; then
0dcf9893 11736 { echo "configure: error: system png library not found! Use --with-libpng=yes to use the built-in libpng" 1>&2; exit 1; }
422107f9
VZ
11737 fi
11738 fi
11739
10f2d63a
VZ
11740 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
11741fi
11742
11743JPEG_INCLUDE=
422107f9 11744if test "$wxUSE_LIBJPEG" = "yes" -o "$wxUSE_LIBJPEG" = "sys" ; then
10f2d63a
VZ
11745 cat >> confdefs.h <<\EOF
11746#define wxUSE_LIBJPEG 1
11747EOF
11748
422107f9
VZ
11749 if test "$wxUSE_LIBJPEG" = "yes" ; then
11750 JPEG_INCLUDE="-I\${top_srcdir}/src/jpeg"
11751 else
11752 JPEG_LINK=
11753 ac_safe=`echo "jpeglib.h" | sed 'y%./+-%__p_%'`
11754echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6
32832908 11755echo "configure:11756: checking for jpeglib.h" >&5
422107f9
VZ
11756if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11757 echo $ac_n "(cached) $ac_c" 1>&6
11758else
11759 cat > conftest.$ac_ext <<EOF
32832908 11760#line 11761 "configure"
422107f9
VZ
11761#include "confdefs.h"
11762#include <jpeglib.h>
11763EOF
11764ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
32832908 11765{ (eval echo configure:11766: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
422107f9
VZ
11766ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11767if test -z "$ac_err"; then
11768 rm -rf conftest*
11769 eval "ac_cv_header_$ac_safe=yes"
11770else
11771 echo "$ac_err" >&5
11772 echo "configure: failed program was:" >&5
11773 cat conftest.$ac_ext >&5
11774 rm -rf conftest*
11775 eval "ac_cv_header_$ac_safe=no"
11776fi
11777rm -f conftest*
11778fi
11779if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11780 echo "$ac_t""yes" 1>&6
11781 echo $ac_n "checking for jpeg_read_header in -ljpeg""... $ac_c" 1>&6
32832908 11782echo "configure:11783: checking for jpeg_read_header in -ljpeg" >&5
422107f9
VZ
11783ac_lib_var=`echo jpeg'_'jpeg_read_header | sed 'y%./+-%__p_%'`
11784if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11785 echo $ac_n "(cached) $ac_c" 1>&6
11786else
11787 ac_save_LIBS="$LIBS"
11788LIBS="-ljpeg $LIBS"
11789cat > conftest.$ac_ext <<EOF
32832908 11790#line 11791 "configure"
422107f9
VZ
11791#include "confdefs.h"
11792/* Override any gcc2 internal prototype to avoid an error. */
11793/* We use char because int might match the return type of a gcc2
11794 builtin and then its argument prototype would still apply. */
11795char jpeg_read_header();
11796
11797int main() {
11798jpeg_read_header()
11799; return 0; }
11800EOF
32832908 11801if { (eval echo configure:11802: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
422107f9
VZ
11802 rm -rf conftest*
11803 eval "ac_cv_lib_$ac_lib_var=yes"
11804else
11805 echo "configure: failed program was:" >&5
11806 cat conftest.$ac_ext >&5
11807 rm -rf conftest*
11808 eval "ac_cv_lib_$ac_lib_var=no"
11809fi
11810rm -f conftest*
11811LIBS="$ac_save_LIBS"
11812
11813fi
11814if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11815 echo "$ac_t""yes" 1>&6
11816 JPEG_LINK="-ljpeg"
11817else
11818 echo "$ac_t""no" 1>&6
11819fi
11820
11821else
11822 echo "$ac_t""no" 1>&6
11823fi
11824
11825 if test "x$JPEG_LINK" = "x" ; then
0dcf9893 11826 { echo "configure: error: system jpeg library not found! Use --with-libjpeg=yes to use the built-in one" 1>&2; exit 1; }
422107f9
VZ
11827 fi
11828 fi
10f2d63a
VZ
11829fi
11830
c7a2bf27 11831TIFF_INCLUDE=
0dcf9893 11832if test "$wxUSE_LIBTIFF" = "yes" -o "$wxUSE_LIBTIFF" = "sys" ; then
c7a2bf27
RR
11833 cat >> confdefs.h <<\EOF
11834#define wxUSE_LIBTIFF 1
11835EOF
11836
0dcf9893
VZ
11837 if test "$wxUSE_LIBTIFF" = "yes" ; then
11838 TIFF_INCLUDE="-I\${top_srcdir}/src/tiff"
11839 else
11840 TIFF_LINK=
11841 ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'`
11842echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6
32832908 11843echo "configure:11844: checking for tiffio.h" >&5
0dcf9893
VZ
11844if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11845 echo $ac_n "(cached) $ac_c" 1>&6
11846else
11847 cat > conftest.$ac_ext <<EOF
32832908 11848#line 11849 "configure"
0dcf9893
VZ
11849#include "confdefs.h"
11850#include <tiffio.h>
11851EOF
11852ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
32832908 11853{ (eval echo configure:11854: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
0dcf9893
VZ
11854ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11855if test -z "$ac_err"; then
11856 rm -rf conftest*
11857 eval "ac_cv_header_$ac_safe=yes"
11858else
11859 echo "$ac_err" >&5
11860 echo "configure: failed program was:" >&5
11861 cat conftest.$ac_ext >&5
11862 rm -rf conftest*
11863 eval "ac_cv_header_$ac_safe=no"
11864fi
11865rm -f conftest*
11866fi
11867if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11868 echo "$ac_t""yes" 1>&6
11869 echo $ac_n "checking for TIFFError in -ltiff""... $ac_c" 1>&6
32832908 11870echo "configure:11871: checking for TIFFError in -ltiff" >&5
0dcf9893
VZ
11871ac_lib_var=`echo tiff'_'TIFFError | sed 'y%./+-%__p_%'`
11872if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11873 echo $ac_n "(cached) $ac_c" 1>&6
11874else
11875 ac_save_LIBS="$LIBS"
11876LIBS="-ltiff -lm $LIBS"
11877cat > conftest.$ac_ext <<EOF
32832908 11878#line 11879 "configure"
0dcf9893
VZ
11879#include "confdefs.h"
11880/* Override any gcc2 internal prototype to avoid an error. */
11881/* We use char because int might match the return type of a gcc2
11882 builtin and then its argument prototype would still apply. */
11883char TIFFError();
11884
11885int main() {
11886TIFFError()
11887; return 0; }
11888EOF
32832908 11889if { (eval echo configure:11890: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
0dcf9893
VZ
11890 rm -rf conftest*
11891 eval "ac_cv_lib_$ac_lib_var=yes"
11892else
11893 echo "configure: failed program was:" >&5
11894 cat conftest.$ac_ext >&5
11895 rm -rf conftest*
11896 eval "ac_cv_lib_$ac_lib_var=no"
11897fi
11898rm -f conftest*
11899LIBS="$ac_save_LIBS"
11900
11901fi
11902if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11903 echo "$ac_t""yes" 1>&6
11904 TIFF_LINK="-ltiff"
11905else
11906 echo "$ac_t""no" 1>&6
11907fi
11908
11909else
11910 echo "$ac_t""no" 1>&6
11911fi
11912
11913 if test "x$TIFF_LINK" = "x" ; then
11914 { echo "configure: error: system tiff library not found! Use --with-libtiff=yes to use the built-in one" 1>&2; exit 1; }
11915 fi
11916 fi
c7a2bf27
RR
11917fi
11918
10f2d63a
VZ
11919if test "$wxUSE_OPENGL" = "yes"; then
11920 ac_safe=`echo "GL/gl.h" | sed 'y%./+-%__p_%'`
11921echo $ac_n "checking for GL/gl.h""... $ac_c" 1>&6
32832908 11922echo "configure:11923: checking for GL/gl.h" >&5
10f2d63a
VZ
11923if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11924 echo $ac_n "(cached) $ac_c" 1>&6
11925else
11926 cat > conftest.$ac_ext <<EOF
32832908 11927#line 11928 "configure"
10f2d63a
VZ
11928#include "confdefs.h"
11929#include <GL/gl.h>
11930EOF
11931ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
32832908 11932{ (eval echo configure:11933: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
11933ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11934if test -z "$ac_err"; then
11935 rm -rf conftest*
11936 eval "ac_cv_header_$ac_safe=yes"
11937else
11938 echo "$ac_err" >&5
11939 echo "configure: failed program was:" >&5
11940 cat conftest.$ac_ext >&5
11941 rm -rf conftest*
11942 eval "ac_cv_header_$ac_safe=no"
11943fi
11944rm -f conftest*
11945fi
11946if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11947 echo "$ac_t""yes" 1>&6
11948
bdad4e7e
RR
11949 cat >> confdefs.h <<\EOF
11950#define wxUSE_OPENGL 1
11951EOF
11952
11953 cat >> confdefs.h <<\EOF
11954#define wxUSE_GLCANVAS 1
11955EOF
11956
11957 echo $ac_n "checking for glFlush in -lGL""... $ac_c" 1>&6
32832908 11958echo "configure:11959: checking for glFlush in -lGL" >&5
bdad4e7e 11959ac_lib_var=`echo GL'_'glFlush | sed 'y%./+-%__p_%'`
10f2d63a
VZ
11960if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11961 echo $ac_n "(cached) $ac_c" 1>&6
11962else
11963 ac_save_LIBS="$LIBS"
bdad4e7e 11964LIBS="-lGL $LIBS"
10f2d63a 11965cat > conftest.$ac_ext <<EOF
32832908 11966#line 11967 "configure"
10f2d63a
VZ
11967#include "confdefs.h"
11968/* Override any gcc2 internal prototype to avoid an error. */
11969/* We use char because int might match the return type of a gcc2
11970 builtin and then its argument prototype would still apply. */
bdad4e7e 11971char glFlush();
10f2d63a
VZ
11972
11973int main() {
bdad4e7e 11974glFlush()
10f2d63a
VZ
11975; return 0; }
11976EOF
32832908 11977if { (eval echo configure:11978: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
11978 rm -rf conftest*
11979 eval "ac_cv_lib_$ac_lib_var=yes"
11980else
11981 echo "configure: failed program was:" >&5
11982 cat conftest.$ac_ext >&5
11983 rm -rf conftest*
11984 eval "ac_cv_lib_$ac_lib_var=no"
11985fi
11986rm -f conftest*
11987LIBS="$ac_save_LIBS"
11988
11989fi
11990if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11991 echo "$ac_t""yes" 1>&6
11992
11993 OPENGL_LINK="-lGL"
10f2d63a
VZ
11994
11995else
11996 echo "$ac_t""no" 1>&6
11997
bdad4e7e 11998 echo $ac_n "checking for glFlush in -lMesaGL""... $ac_c" 1>&6
32832908 11999echo "configure:12000: checking for glFlush in -lMesaGL" >&5
bdad4e7e 12000ac_lib_var=`echo MesaGL'_'glFlush | sed 'y%./+-%__p_%'`
10f2d63a
VZ
12001if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12002 echo $ac_n "(cached) $ac_c" 1>&6
12003else
12004 ac_save_LIBS="$LIBS"
12005LIBS="-lMesaGL $LIBS"
12006cat > conftest.$ac_ext <<EOF
32832908 12007#line 12008 "configure"
10f2d63a
VZ
12008#include "confdefs.h"
12009/* Override any gcc2 internal prototype to avoid an error. */
12010/* We use char because int might match the return type of a gcc2
12011 builtin and then its argument prototype would still apply. */
bdad4e7e 12012char glFlush();
10f2d63a
VZ
12013
12014int main() {
bdad4e7e 12015glFlush()
10f2d63a
VZ
12016; return 0; }
12017EOF
32832908 12018if { (eval echo configure:12019: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
12019 rm -rf conftest*
12020 eval "ac_cv_lib_$ac_lib_var=yes"
12021else
12022 echo "configure: failed program was:" >&5
12023 cat conftest.$ac_ext >&5
12024 rm -rf conftest*
12025 eval "ac_cv_lib_$ac_lib_var=no"
12026fi
12027rm -f conftest*
12028LIBS="$ac_save_LIBS"
12029
12030fi
12031if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12032 echo "$ac_t""yes" 1>&6
12033
12034 OPENGL_LINK="-lMesaGL"
10f2d63a
VZ
12035
12036else
12037 echo "$ac_t""no" 1>&6
10f2d63a
VZ
12038fi
12039
12040
12041fi
12042
12043
12044else
12045 echo "$ac_t""no" 1>&6
12046wxUSE_OPENGL=0
12047fi
12048
12049fi
12050
12051
12052if test "$wxUSE_GUI" = "yes"; then
12053 cat >> confdefs.h <<\EOF
12054#define wxUSE_GUI 1
12055EOF
12056
12057
12058 else
12059 cat >> confdefs.h <<\EOF
12060#define wxUSE_NOGUI 1
12061EOF
12062
12063fi
12064
12065
12066if test "$wxUSE_UNIX" = "yes"; then
12067 cat >> confdefs.h <<\EOF
12068#define wxUSE_UNIX 1
12069EOF
12070
12071fi
12072
12073
12074if test "$wxUSE_APPLE_IEEE" = "yes"; then
12075 cat >> confdefs.h <<\EOF
12076#define wxUSE_APPLE_IEEE 1
12077EOF
12078
12079fi
12080
10f2d63a
VZ
12081if test "$wxUSE_WAVE" = "yes"; then
12082 cat >> confdefs.h <<\EOF
12083#define wxUSE_WAVE 1
12084EOF
12085
12086fi
12087
12088if test "$wxUSE_FILE" = "yes"; then
12089 cat >> confdefs.h <<\EOF
12090#define wxUSE_FILE 1
12091EOF
12092
12093fi
12094
24528b0c
VS
12095if test "$wxUSE_FILESYSTEM" = "yes"; then
12096 cat >> confdefs.h <<\EOF
12097#define wxUSE_FILESYSTEM 1
12098EOF
12099
12100fi
12101
10f2d63a
VZ
12102if test "$wxUSE_FS_INET" = "yes"; then
12103 cat >> confdefs.h <<\EOF
12104#define wxUSE_FS_INET 1
12105EOF
12106
12107fi
12108
12109if test "$wxUSE_FS_ZIP" = "yes"; then
12110 cat >> confdefs.h <<\EOF
12111#define wxUSE_FS_ZIP 1
12112EOF
12113
12114fi
12115
12116if test "$wxUSE_ZIPSTREAM" = "yes"; then
12117 cat >> confdefs.h <<\EOF
12118#define wxUSE_ZIPSTREAM 1
12119EOF
12120
12121fi
12122
12123if test "$wxUSE_BUSYINFO" = "yes"; then
12124 cat >> confdefs.h <<\EOF
12125#define wxUSE_BUSYINFO 1
12126EOF
12127
12128fi
12129
12130if test "$wxUSE_STD_IOSTREAM" = "yes"; then
12131 cat >> confdefs.h <<\EOF
12132#define wxUSE_STD_IOSTREAM 1
12133EOF
12134
12135fi
12136
12137if test "$wxUSE_TEXTFILE" = "yes"; then
12138 if test "$wxUSE_FILE" != "yes"; then
12139 echo "configure: warning: wxTextFile requires wxFile and it won't be compiled without it" 1>&2
12140 else
12141 cat >> confdefs.h <<\EOF
12142#define wxUSE_TEXTFILE 1
12143EOF
12144
12145 fi
12146fi
12147
12148if test "$wxUSE_CONFIG" = "yes" ; then
12149 if test "$wxUSE_TEXTFILE" != "yes"; then
12150 echo "configure: warning: wxConfig requires wxTextFile and it won't be compiled without it" 1>&2
12151 else
12152 cat >> confdefs.h <<\EOF
12153#define wxUSE_CONFIG 1
12154EOF
12155
12156 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
12157 fi
12158fi
12159
12160if test "$wxUSE_INTL" = "yes" ; then
12161 if test "$wxUSE_FILE" != "yes"; then
12162 echo "configure: warning: I18n code requires wxFile and it won't be compiled without it" 1>&2
12163 else
12164 cat >> confdefs.h <<\EOF
12165#define wxUSE_INTL 1
12166EOF
12167
12168 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
12169 fi
12170fi
12171
12172if test "$wxUSE_LOG" = "yes"; then
12173 cat >> confdefs.h <<\EOF
12174#define wxUSE_LOG 1
12175EOF
12176
12177fi
12178
12179if test "$wxUSE_LONGLONG" = "yes"; then
12180 cat >> confdefs.h <<\EOF
12181#define wxUSE_LONGLONG 1
12182EOF
12183
12184fi
12185
9b33fe02
VZ
12186if test "$wxUSE_PLOT" = "yes"; then
12187 cat >> confdefs.h <<\EOF
12188#define wxUSE_PLOT 1
12189EOF
12190
12191fi
12192
10f2d63a
VZ
12193if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then
12194 cat >> confdefs.h <<\EOF
12195#define wxUSE_DIALUP_MANAGER 1
12196EOF
12197
70f7a477 12198 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
10f2d63a
VZ
12199fi
12200
12201if test "$wxUSE_STREAMS" = "yes" ; then
12202 cat >> confdefs.h <<\EOF
12203#define wxUSE_STREAMS 1
12204EOF
12205
12206fi
12207
10f2d63a 12208
afc31813 12209if test "$wxUSE_TIMEDATE" = "yes"; then
83307f33
VZ
12210 for ac_func in strptime
12211do
12212echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
32832908 12213echo "configure:12214: checking for $ac_func" >&5
83307f33
VZ
12214if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12215 echo $ac_n "(cached) $ac_c" 1>&6
12216else
12217 cat > conftest.$ac_ext <<EOF
32832908 12218#line 12219 "configure"
83307f33
VZ
12219#include "confdefs.h"
12220/* System header to define __stub macros and hopefully few prototypes,
12221 which can conflict with char $ac_func(); below. */
12222#include <assert.h>
12223/* Override any gcc2 internal prototype to avoid an error. */
12224/* We use char because int might match the return type of a gcc2
12225 builtin and then its argument prototype would still apply. */
12226char $ac_func();
12227
12228int main() {
12229
12230/* The GNU C library defines this for functions which it implements
12231 to always fail with ENOSYS. Some functions are actually named
12232 something starting with __ and the normal name is an alias. */
12233#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12234choke me
12235#else
e8482f24 12236$ac_func();
83307f33
VZ
12237#endif
12238
12239; return 0; }
12240EOF
32832908 12241if { (eval echo configure:12242: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
83307f33
VZ
12242 rm -rf conftest*
12243 eval "ac_cv_func_$ac_func=yes"
12244else
12245 echo "configure: failed program was:" >&5
12246 cat conftest.$ac_ext >&5
12247 rm -rf conftest*
12248 eval "ac_cv_func_$ac_func=no"
12249fi
12250rm -f conftest*
12251fi
12252
12253if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12254 echo "$ac_t""yes" 1>&6
12255 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12256 cat >> confdefs.h <<EOF
12257#define $ac_tr_func 1
12258EOF
12259
12260else
12261 echo "$ac_t""no" 1>&6
12262fi
12263done
12264
12265
360d6699 12266 echo $ac_n "checking for timezone variable in <time.h>""... $ac_c" 1>&6
32832908 12267echo "configure:12268: checking for timezone variable in <time.h>" >&5
360d6699
VZ
12268if eval "test \"`echo '$''{'wx_cv_var_timezone'+set}'`\" = set"; then
12269 echo $ac_n "(cached) $ac_c" 1>&6
12270else
12271
12272 cat > conftest.$ac_ext <<EOF
32832908 12273#line 12274 "configure"
360d6699
VZ
12274#include "confdefs.h"
12275
12276 #include <time.h>
12277
12278int main() {
12279
12280 int tz;
12281 tz = __timezone;
12282
12283; return 0; }
12284EOF
32832908 12285if { (eval echo configure:12286: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
360d6699
VZ
12286 rm -rf conftest*
12287
12288 wx_cv_var_timezone=__timezone
12289
12290else
12291 echo "configure: failed program was:" >&5
12292 cat conftest.$ac_ext >&5
12293 rm -rf conftest*
12294
12295 cat > conftest.$ac_ext <<EOF
32832908 12296#line 12297 "configure"
360d6699
VZ
12297#include "confdefs.h"
12298
12299 #include <time.h>
12300
12301int main() {
12302
12303 int tz;
12304 tz = _timezone;
12305
12306; return 0; }
12307EOF
32832908 12308if { (eval echo configure:12309: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
360d6699
VZ
12309 rm -rf conftest*
12310
12311 wx_cv_var_timezone=_timezone
12312
5357c8e8
VZ
12313else
12314 echo "configure: failed program was:" >&5
12315 cat conftest.$ac_ext >&5
12316 rm -rf conftest*
12317
12318 cat > conftest.$ac_ext <<EOF
32832908 12319#line 12320 "configure"
5357c8e8
VZ
12320#include "confdefs.h"
12321
12322 #include <time.h>
12323
12324int main() {
12325
12326 int tz;
12327 tz = timezone;
12328
12329; return 0; }
12330EOF
32832908 12331if { (eval echo configure:12332: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5357c8e8
VZ
12332 rm -rf conftest*
12333
12334 wx_cv_var_timezone=timezone
12335
360d6699
VZ
12336else
12337 echo "configure: failed program was:" >&5
12338 cat conftest.$ac_ext >&5
12339 rm -rf conftest*
12340 { echo "configure: error: no timezone variable" 1>&2; exit 1; }
5357c8e8
VZ
12341
12342fi
12343rm -f conftest*
12344
360d6699
VZ
12345
12346fi
12347rm -f conftest*
12348
12349
12350fi
12351rm -f conftest*
12352
12353
12354fi
12355
12356echo "$ac_t""$wx_cv_var_timezone" 1>&6
12357
12358 cat >> confdefs.h <<EOF
12359#define WX_TIMEZONE $wx_cv_var_timezone
12360EOF
12361
12362
3fcdd07b 12363 for ac_func in localtime
afc31813
VZ
12364do
12365echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
32832908 12366echo "configure:12367: checking for $ac_func" >&5
afc31813
VZ
12367if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12368 echo $ac_n "(cached) $ac_c" 1>&6
12369else
12370 cat > conftest.$ac_ext <<EOF
32832908 12371#line 12372 "configure"
10f2d63a 12372#include "confdefs.h"
afc31813
VZ
12373/* System header to define __stub macros and hopefully few prototypes,
12374 which can conflict with char $ac_func(); below. */
12375#include <assert.h>
12376/* Override any gcc2 internal prototype to avoid an error. */
12377/* We use char because int might match the return type of a gcc2
12378 builtin and then its argument prototype would still apply. */
12379char $ac_func();
12380
10f2d63a 12381int main() {
afc31813
VZ
12382
12383/* The GNU C library defines this for functions which it implements
12384 to always fail with ENOSYS. Some functions are actually named
12385 something starting with __ and the normal name is an alias. */
12386#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12387choke me
12388#else
e8482f24 12389$ac_func();
afc31813
VZ
12390#endif
12391
10f2d63a
VZ
12392; return 0; }
12393EOF
32832908 12394if { (eval echo configure:12395: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a 12395 rm -rf conftest*
afc31813 12396 eval "ac_cv_func_$ac_func=yes"
10f2d63a
VZ
12397else
12398 echo "configure: failed program was:" >&5
12399 cat conftest.$ac_ext >&5
12400 rm -rf conftest*
afc31813
VZ
12401 eval "ac_cv_func_$ac_func=no"
12402fi
12403rm -f conftest*
12404fi
12405
12406if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12407 echo "$ac_t""yes" 1>&6
12408 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12409 cat >> confdefs.h <<EOF
12410#define $ac_tr_func 1
12411EOF
3fcdd07b 12412
afc31813
VZ
12413else
12414 echo "$ac_t""no" 1>&6
12415fi
12416done
12417
12418
0470b1e6
VZ
12419 if test "$ac_cv_func_localtime" = "yes"; then
12420 echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6
32832908 12421echo "configure:12422: checking for tm_gmtoff in struct tm" >&5
0470b1e6
VZ
12422if eval "test \"`echo '$''{'wx_cv_struct_tm_has_gmtoff'+set}'`\" = set"; then
12423 echo $ac_n "(cached) $ac_c" 1>&6
12424else
12425
12426 cat > conftest.$ac_ext <<EOF
32832908 12427#line 12428 "configure"
0470b1e6
VZ
12428#include "confdefs.h"
12429
12430 #include <time.h>
12431
12432int main() {
12433
12434 struct tm tm;
12435 tm.tm_gmtoff++;
12436
12437; return 0; }
12438EOF
32832908 12439if { (eval echo configure:12440: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
0470b1e6
VZ
12440 rm -rf conftest*
12441
f03a98d8 12442 wx_cv_struct_tm_has_gmtoff=yes
0470b1e6
VZ
12443 cat >> confdefs.h <<\EOF
12444#define WX_GMTOFF_IN_TM 1
12445EOF
12446
12447
12448else
12449 echo "configure: failed program was:" >&5
12450 cat conftest.$ac_ext >&5
12451 rm -rf conftest*
12452 wx_cv_struct_tm_has_gmtoff=no
12453
12454fi
12455rm -f conftest*
12456
12457fi
12458
12459echo "$ac_t""$wx_cv_struct_tm_has_gmtoff" 1>&6
3fcdd07b
VZ
12460 fi
12461
12462 for ac_func in gettimeofday ftime
12463do
12464echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
32832908 12465echo "configure:12466: checking for $ac_func" >&5
3fcdd07b
VZ
12466if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12467 echo $ac_n "(cached) $ac_c" 1>&6
12468else
12469 cat > conftest.$ac_ext <<EOF
32832908 12470#line 12471 "configure"
3fcdd07b
VZ
12471#include "confdefs.h"
12472/* System header to define __stub macros and hopefully few prototypes,
12473 which can conflict with char $ac_func(); below. */
12474#include <assert.h>
12475/* Override any gcc2 internal prototype to avoid an error. */
12476/* We use char because int might match the return type of a gcc2
12477 builtin and then its argument prototype would still apply. */
12478char $ac_func();
12479
12480int main() {
12481
12482/* The GNU C library defines this for functions which it implements
12483 to always fail with ENOSYS. Some functions are actually named
12484 something starting with __ and the normal name is an alias. */
12485#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12486choke me
12487#else
e8482f24 12488$ac_func();
3fcdd07b
VZ
12489#endif
12490
12491; return 0; }
12492EOF
32832908 12493if { (eval echo configure:12494: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3fcdd07b
VZ
12494 rm -rf conftest*
12495 eval "ac_cv_func_$ac_func=yes"
12496else
12497 echo "configure: failed program was:" >&5
12498 cat conftest.$ac_ext >&5
12499 rm -rf conftest*
12500 eval "ac_cv_func_$ac_func=no"
12501fi
12502rm -f conftest*
12503fi
12504
12505if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12506 echo "$ac_t""yes" 1>&6
12507 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12508 cat >> confdefs.h <<EOF
12509#define $ac_tr_func 1
12510EOF
12511 break
12512else
12513 echo "$ac_t""no" 1>&6
12514fi
12515done
12516
12517
12518 if test "$ac_cv_func_gettimeofday" = "yes"; then
afc31813 12519 echo $ac_n "checking whether gettimeofday takes two arguments""... $ac_c" 1>&6
32832908 12520echo "configure:12521: checking whether gettimeofday takes two arguments" >&5
afc31813
VZ
12521if eval "test \"`echo '$''{'wx_cv_func_gettimeofday_has_2_args'+set}'`\" = set"; then
12522 echo $ac_n "(cached) $ac_c" 1>&6
12523else
12524
12525
12526 ac_ext=C
12527# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12528ac_cpp='$CXXCPP $CPPFLAGS'
12529ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12530ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12531cross_compiling=$ac_cv_prog_cxx_cross
12532
12533
12534 cat > conftest.$ac_ext <<EOF
32832908 12535#line 12536 "configure"
10f2d63a 12536#include "confdefs.h"
afc31813
VZ
12537
12538 #include <sys/time.h>
12539 #include <unistd.h>
12540
10f2d63a 12541int main() {
afc31813
VZ
12542
12543 struct timeval tv;
12544 struct timezone tz;
12545 gettimeofday(&tv, &tz);
12546
10f2d63a
VZ
12547; return 0; }
12548EOF
32832908 12549if { (eval echo configure:12550: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10f2d63a 12550 rm -rf conftest*
afc31813 12551 wx_cv_func_gettimeofday_has_2_args=yes
10f2d63a
VZ
12552else
12553 echo "configure: failed program was:" >&5
12554 cat conftest.$ac_ext >&5
12555 rm -rf conftest*
12556 cat > conftest.$ac_ext <<EOF
32832908 12557#line 12558 "configure"
10f2d63a 12558#include "confdefs.h"
afc31813
VZ
12559
12560 #include <sys/time.h>
12561 #include <unistd.h>
12562
10f2d63a 12563int main() {
afc31813
VZ
12564
12565 struct timeval tv;
12566 gettimeofday(&tv);
12567
10f2d63a
VZ
12568; return 0; }
12569EOF
32832908 12570if { (eval echo configure:12571: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10f2d63a 12571 rm -rf conftest*
afc31813 12572 wx_cv_func_gettimeofday_has_2_args=no
10f2d63a
VZ
12573else
12574 echo "configure: failed program was:" >&5
12575 cat conftest.$ac_ext >&5
12576 rm -rf conftest*
afc31813
VZ
12577 wx_cv_func_gettimeofday_has_2_args=unknown
12578
10f2d63a
VZ
12579fi
12580rm -f conftest*
afc31813 12581
10f2d63a
VZ
12582fi
12583rm -f conftest*
afc31813 12584 ac_ext=c
10f2d63a
VZ
12585# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12586ac_cpp='$CPP $CPPFLAGS'
12587ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12588ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12589cross_compiling=$ac_cv_prog_cc_cross
12590
afc31813
VZ
12591
12592fi
12593
12594echo "$ac_t""$wx_cv_func_gettimeofday_has_2_args" 1>&6
c63c7106 12595
afc31813
VZ
12596 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
12597 cat >> confdefs.h <<\EOF
12598#define WX_GETTIMEOFDAY_NO_TZ 1
12599EOF
12600
12601 fi
12602 fi
12603
12604 cat >> confdefs.h <<\EOF
12605#define wxUSE_TIMEDATE 1
12606EOF
12607
12608 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
12609fi
12610
12611
b089607b
VZ
12612if test "$TOOLKIT" != "MSW"; then
12613
afc31813 12614if test "$wxUSE_SOCKETS" = "yes"; then
c63c7106 12615 echo $ac_n "checking for socket""... $ac_c" 1>&6
32832908 12616echo "configure:12617: checking for socket" >&5
c63c7106
VZ
12617if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
12618 echo $ac_n "(cached) $ac_c" 1>&6
12619else
12620 cat > conftest.$ac_ext <<EOF
32832908 12621#line 12622 "configure"
c63c7106
VZ
12622#include "confdefs.h"
12623/* System header to define __stub macros and hopefully few prototypes,
12624 which can conflict with char socket(); below. */
12625#include <assert.h>
12626/* Override any gcc2 internal prototype to avoid an error. */
12627/* We use char because int might match the return type of a gcc2
12628 builtin and then its argument prototype would still apply. */
12629char socket();
12630
12631int main() {
12632
12633/* The GNU C library defines this for functions which it implements
12634 to always fail with ENOSYS. Some functions are actually named
12635 something starting with __ and the normal name is an alias. */
12636#if defined (__stub_socket) || defined (__stub___socket)
12637choke me
12638#else
e8482f24 12639socket();
c63c7106
VZ
12640#endif
12641
12642; return 0; }
12643EOF
32832908 12644if { (eval echo configure:12645: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
c63c7106
VZ
12645 rm -rf conftest*
12646 eval "ac_cv_func_socket=yes"
12647else
12648 echo "configure: failed program was:" >&5
12649 cat conftest.$ac_ext >&5
12650 rm -rf conftest*
12651 eval "ac_cv_func_socket=no"
12652fi
12653rm -f conftest*
12654fi
12655
12656if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
12657 echo "$ac_t""yes" 1>&6
12658 :
12659else
12660 echo "$ac_t""no" 1>&6
12661echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
32832908 12662echo "configure:12663: checking for socket in -lsocket" >&5
c63c7106
VZ
12663ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
12664if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12665 echo $ac_n "(cached) $ac_c" 1>&6
12666else
12667 ac_save_LIBS="$LIBS"
12668LIBS="-lsocket $LIBS"
12669cat > conftest.$ac_ext <<EOF
32832908 12670#line 12671 "configure"
c63c7106
VZ
12671#include "confdefs.h"
12672/* Override any gcc2 internal prototype to avoid an error. */
12673/* We use char because int might match the return type of a gcc2
12674 builtin and then its argument prototype would still apply. */
12675char socket();
12676
12677int main() {
12678socket()
12679; return 0; }
12680EOF
32832908 12681if { (eval echo configure:12682: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
c63c7106
VZ
12682 rm -rf conftest*
12683 eval "ac_cv_lib_$ac_lib_var=yes"
12684else
12685 echo "configure: failed program was:" >&5
12686 cat conftest.$ac_ext >&5
12687 rm -rf conftest*
12688 eval "ac_cv_lib_$ac_lib_var=no"
12689fi
12690rm -f conftest*
12691LIBS="$ac_save_LIBS"
12692
12693fi
12694if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12695 echo "$ac_t""yes" 1>&6
12696 INET_LINK="$INET_LINK -lsocket"
c63c7106
VZ
12697else
12698 echo "$ac_t""no" 1>&6
afc31813
VZ
12699
12700 echo "configure: warning: socket library not found - sockets will be disabled" 1>&2
12701 wxUSE_SOCKETS=no
12702
12703
c63c7106
VZ
12704fi
12705
12706
12707fi
12708
10f2d63a
VZ
12709fi
12710
b089607b
VZ
12711fi
12712
afc31813 12713if test "$wxUSE_SOCKETS" = "yes" ; then
51a9faba 12714 echo $ac_n "checking what is the type of the third argument of getsockname""... $ac_c" 1>&6
32832908 12715echo "configure:12716: checking what is the type of the third argument of getsockname" >&5
51a9faba
VZ
12716if eval "test \"`echo '$''{'wx_cv_type_getsockname3'+set}'`\" = set"; then
12717 echo $ac_n "(cached) $ac_c" 1>&6
12718else
12719
12720
12721 ac_ext=C
afc31813
VZ
12722# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12723ac_cpp='$CXXCPP $CPPFLAGS'
12724ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12725ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12726cross_compiling=$ac_cv_prog_cxx_cross
12727
51a9faba
VZ
12728
12729 cat > conftest.$ac_ext <<EOF
32832908 12730#line 12731 "configure"
afc31813 12731#include "confdefs.h"
51a9faba 12732
3ace2e6d 12733 #include <sys/types.h>
51a9faba
VZ
12734 #include <sys/socket.h>
12735
afc31813 12736int main() {
51a9faba
VZ
12737
12738 socklen_t len;
12739 getsockname(0, 0, &len);
12740
afc31813
VZ
12741; return 0; }
12742EOF
32832908 12743if { (eval echo configure:12744: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
afc31813 12744 rm -rf conftest*
51a9faba 12745 wx_cv_type_getsockname3=socklen_t
afc31813
VZ
12746else
12747 echo "configure: failed program was:" >&5
12748 cat conftest.$ac_ext >&5
12749 rm -rf conftest*
12750 cat > conftest.$ac_ext <<EOF
32832908 12751#line 12752 "configure"
afc31813 12752#include "confdefs.h"
51a9faba 12753
3ace2e6d 12754 #include <sys/types.h>
51a9faba
VZ
12755 #include <sys/socket.h>
12756
afc31813 12757int main() {
51a9faba
VZ
12758
12759 size_t len;
12760 getsockname(0, 0, &len);
12761
afc31813
VZ
12762; return 0; }
12763EOF
32832908 12764if { (eval echo configure:12765: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
afc31813 12765 rm -rf conftest*
51a9faba 12766 wx_cv_type_getsockname3=size_t
afc31813
VZ
12767else
12768 echo "configure: failed program was:" >&5
12769 cat conftest.$ac_ext >&5
12770 rm -rf conftest*
12771 cat > conftest.$ac_ext <<EOF
32832908 12772#line 12773 "configure"
afc31813 12773#include "confdefs.h"
51a9faba 12774
3ace2e6d 12775 #include <sys/types.h>
51a9faba
VZ
12776 #include <sys/socket.h>
12777
afc31813 12778int main() {
51a9faba
VZ
12779
12780 int len;
12781 getsockname(0, 0, &len);
12782
afc31813
VZ
12783; return 0; }
12784EOF
32832908 12785if { (eval echo configure:12786: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
afc31813 12786 rm -rf conftest*
51a9faba 12787 wx_cv_type_getsockname3=int
afc31813
VZ
12788else
12789 echo "configure: failed program was:" >&5
12790 cat conftest.$ac_ext >&5
3ace2e6d
SN
12791 rm -rf conftest*
12792 wx_cv_type_getsockname3=unknown
12793
afc31813
VZ
12794fi
12795rm -f conftest*
51a9faba 12796
afc31813
VZ
12797fi
12798rm -f conftest*
51a9faba 12799
afc31813
VZ
12800fi
12801rm -f conftest*
51a9faba
VZ
12802
12803 ac_ext=c
afc31813
VZ
12804# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12805ac_cpp='$CPP $CPPFLAGS'
12806ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12807ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12808cross_compiling=$ac_cv_prog_cc_cross
12809
51a9faba
VZ
12810
12811fi
12812
12813echo "$ac_t""$wx_cv_type_getsockname3" 1>&6
12814
12815 if test "$wx_cv_type_getsockname3" = "unknown"; then
12816 wxUSE_SOCKETS=no
12817 echo "configure: warning: Couldn't find socklen_t synonym for this system" 1>&2
12818 else
12819 cat >> confdefs.h <<EOF
12820#define SOCKLEN_T $wx_cv_type_getsockname3
12821EOF
12822
12823 fi
12824fi
afc31813 12825
51a9faba 12826if test "$wxUSE_SOCKETS" = "yes" ; then
afc31813
VZ
12827 cat >> confdefs.h <<\EOF
12828#define wxUSE_SOCKETS 1
12829EOF
12830
70f7a477 12831 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
afc31813
VZ
12832 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS protocol"
12833fi
12834
10f2d63a 12835
b089607b
VZ
12836if test "$TOOLKIT" != "MSW"; then
12837
10f2d63a
VZ
12838if test "$wxUSE_JOYSTICK" = 1; then
12839 for ac_hdr in linux/joystick.h
12840do
12841ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12842echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
32832908 12843echo "configure:12844: checking for $ac_hdr" >&5
10f2d63a
VZ
12844if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12845 echo $ac_n "(cached) $ac_c" 1>&6
12846else
12847 cat > conftest.$ac_ext <<EOF
32832908 12848#line 12849 "configure"
10f2d63a
VZ
12849#include "confdefs.h"
12850#include <$ac_hdr>
12851EOF
12852ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
32832908 12853{ (eval echo configure:12854: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
12854ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12855if test -z "$ac_err"; then
12856 rm -rf conftest*
12857 eval "ac_cv_header_$ac_safe=yes"
12858else
12859 echo "$ac_err" >&5
12860 echo "configure: failed program was:" >&5
12861 cat conftest.$ac_ext >&5
12862 rm -rf conftest*
12863 eval "ac_cv_header_$ac_safe=no"
12864fi
12865rm -f conftest*
12866fi
12867if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12868 echo "$ac_t""yes" 1>&6
12869 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12870 cat >> confdefs.h <<EOF
12871#define $ac_tr_hdr 1
12872EOF
12873
12874else
12875 echo "$ac_t""no" 1>&6
12876fi
12877done
12878
b089607b
VZ
12879 if test "$ac_cv_header_linux_joystick_h" != "yes"; then
12880 wxUSE_JOYSTICK=0
12881 echo "configure: warning: Joystick not supported yb this system" 1>&2
12882 fi
12883fi
12884
12885fi
12886
12887if test "$wxUSE_JOYSTICK" = 1; then
10f2d63a
VZ
12888 cat >> confdefs.h <<\EOF
12889#define wxUSE_JOYSTICK 1
12890EOF
12891
12892 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
10f2d63a
VZ
12893fi
12894
12895
b089607b
VZ
12896if test "$TOOLKIT" != "MSW"; then
12897
10f2d63a
VZ
12898HAVE_DL_FUNCS=0
12899HAVE_SHL_FUNCS=0
12900if test "$wxUSE_DYNLIB_CLASS" = "yes"; then
12901 for ac_func in dlopen
12902do
12903echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
32832908 12904echo "configure:12905: checking for $ac_func" >&5
10f2d63a
VZ
12905if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12906 echo $ac_n "(cached) $ac_c" 1>&6
12907else
12908 cat > conftest.$ac_ext <<EOF
32832908 12909#line 12910 "configure"
10f2d63a
VZ
12910#include "confdefs.h"
12911/* System header to define __stub macros and hopefully few prototypes,
12912 which can conflict with char $ac_func(); below. */
12913#include <assert.h>
12914/* Override any gcc2 internal prototype to avoid an error. */
12915/* We use char because int might match the return type of a gcc2
12916 builtin and then its argument prototype would still apply. */
12917char $ac_func();
12918
12919int main() {
12920
12921/* The GNU C library defines this for functions which it implements
12922 to always fail with ENOSYS. Some functions are actually named
12923 something starting with __ and the normal name is an alias. */
12924#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12925choke me
12926#else
e8482f24 12927$ac_func();
10f2d63a
VZ
12928#endif
12929
12930; return 0; }
12931EOF
32832908 12932if { (eval echo configure:12933: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
12933 rm -rf conftest*
12934 eval "ac_cv_func_$ac_func=yes"
12935else
12936 echo "configure: failed program was:" >&5
12937 cat conftest.$ac_ext >&5
12938 rm -rf conftest*
12939 eval "ac_cv_func_$ac_func=no"
12940fi
12941rm -f conftest*
12942fi
12943
12944if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12945 echo "$ac_t""yes" 1>&6
12946 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12947 cat >> confdefs.h <<EOF
12948#define $ac_tr_func 1
12949EOF
12950
12951 cat >> confdefs.h <<\EOF
12952#define HAVE_DLOPEN 1
12953EOF
12954
12955 HAVE_DL_FUNCS=1
12956
12957else
12958 echo "$ac_t""no" 1>&6
12959echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
32832908 12960echo "configure:12961: checking for dlopen in -ldl" >&5
10f2d63a
VZ
12961ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
12962if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12963 echo $ac_n "(cached) $ac_c" 1>&6
12964else
12965 ac_save_LIBS="$LIBS"
12966LIBS="-ldl $LIBS"
12967cat > conftest.$ac_ext <<EOF
32832908 12968#line 12969 "configure"
10f2d63a
VZ
12969#include "confdefs.h"
12970/* Override any gcc2 internal prototype to avoid an error. */
12971/* We use char because int might match the return type of a gcc2
12972 builtin and then its argument prototype would still apply. */
12973char dlopen();
12974
12975int main() {
12976dlopen()
12977; return 0; }
12978EOF
32832908 12979if { (eval echo configure:12980: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
12980 rm -rf conftest*
12981 eval "ac_cv_lib_$ac_lib_var=yes"
12982else
12983 echo "configure: failed program was:" >&5
12984 cat conftest.$ac_ext >&5
12985 rm -rf conftest*
12986 eval "ac_cv_lib_$ac_lib_var=no"
12987fi
12988rm -f conftest*
12989LIBS="$ac_save_LIBS"
12990
12991fi
12992if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12993 echo "$ac_t""yes" 1>&6
12994
12995 cat >> confdefs.h <<\EOF
12996#define HAVE_DLOPEN 1
12997EOF
12998
12999 HAVE_DL_FUNCS=1
13000 LIBS="$LIBS -ldl"
13001
13002else
13003 echo "$ac_t""no" 1>&6
13004
13005 for ac_func in shl_load
13006do
13007echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
32832908 13008echo "configure:13009: checking for $ac_func" >&5
10f2d63a
VZ
13009if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13010 echo $ac_n "(cached) $ac_c" 1>&6
13011else
13012 cat > conftest.$ac_ext <<EOF
32832908 13013#line 13014 "configure"
10f2d63a
VZ
13014#include "confdefs.h"
13015/* System header to define __stub macros and hopefully few prototypes,
13016 which can conflict with char $ac_func(); below. */
13017#include <assert.h>
13018/* Override any gcc2 internal prototype to avoid an error. */
13019/* We use char because int might match the return type of a gcc2
13020 builtin and then its argument prototype would still apply. */
13021char $ac_func();
13022
13023int main() {
13024
13025/* The GNU C library defines this for functions which it implements
13026 to always fail with ENOSYS. Some functions are actually named
13027 something starting with __ and the normal name is an alias. */
13028#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13029choke me
13030#else
e8482f24 13031$ac_func();
10f2d63a
VZ
13032#endif
13033
13034; return 0; }
13035EOF
32832908 13036if { (eval echo configure:13037: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
13037 rm -rf conftest*
13038 eval "ac_cv_func_$ac_func=yes"
13039else
13040 echo "configure: failed program was:" >&5
13041 cat conftest.$ac_ext >&5
13042 rm -rf conftest*
13043 eval "ac_cv_func_$ac_func=no"
13044fi
13045rm -f conftest*
13046fi
13047
13048if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13049 echo "$ac_t""yes" 1>&6
13050 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13051 cat >> confdefs.h <<EOF
13052#define $ac_tr_func 1
13053EOF
13054
13055 cat >> confdefs.h <<\EOF
13056#define HAVE_SHL_LOAD 1
13057EOF
13058
13059 HAVE_SHL_FUNCS=1
13060
13061else
13062 echo "$ac_t""no" 1>&6
13063fi
13064done
13065
13066
13067fi
13068
13069
13070fi
13071done
13072
13073
13074 if test "$HAVE_DL_FUNCS" = 0; then
13075 if test "$HAVE_SHL_FUNCS" = 0; then
13076 if test "$USE_UNIX" = 1; then
b12915c1 13077 echo "configure: warning: Missing dynamic loading support, several features will be disabled" 1>&2
10f2d63a
VZ
13078 wxUSE_DYNLIB_CLASS=no
13079 else
b12915c1 13080 echo "configure: warning: Assuming wxLibrary class works on this platform" 1>&2
10f2d63a
VZ
13081 fi
13082 fi
13083 fi
13084fi
13085
b089607b
VZ
13086fi
13087
10f2d63a 13088if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
b12915c1 13089 cat >> confdefs.h <<\EOF
10f2d63a
VZ
13090#define wxUSE_DYNLIB_CLASS 1
13091EOF
13092
b12915c1
VZ
13093else
13094 wxUSE_ODBC=no
13095 wxUSE_SERIAL=no
10f2d63a
VZ
13096fi
13097
13098
13099if test "$wxUSE_UNICODE" = "yes" ; then
13100 cat >> confdefs.h <<\EOF
13101#define wxUSE_UNICODE 1
13102EOF
13103
13104fi
13105
13106if test "$wxUSE_WCSRTOMBS" = "yes" ; then
13107 cat >> confdefs.h <<\EOF
13108#define wxUSE_WCSRTOMBS 1
13109EOF
13110
13111fi
13112
13113if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
13114 cat >> confdefs.h <<\EOF
13115#define wxUSE_EXPERIMENTAL_PRINTF 1
13116EOF
13117
13118fi
13119
13120
b12915c1
VZ
13121if test "$wxUSE_SERIAL" = "yes" ; then
13122 cat >> confdefs.h <<\EOF
13123#define wxUSE_SERIAL 1
13124EOF
13125
13126fi
13127
13128
10f2d63a
VZ
13129IODBC_C_SRC=""
13130if test "$wxUSE_ODBC" = "yes" ; then
13131 cat >> confdefs.h <<\EOF
13132#define wxUSE_ODBC 1
13133EOF
13134
13135 WXODBCFLAG="-D_IODBC_"
13136 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
13137 IODBCOBJS="\$(IODBC_OBJS)"
13138else
13139 IODBCOBJS=
13140fi
13141
13142
13143if test "$wxUSE_POSTSCRIPT" = "yes" ; then
13144 cat >> confdefs.h <<\EOF
13145#define wxUSE_POSTSCRIPT 1
13146EOF
13147
13148fi
13149
13150cat >> confdefs.h <<\EOF
13151#define wxUSE_AFM_FOR_POSTSCRIPT 1
13152EOF
13153
13154
13155cat >> confdefs.h <<\EOF
13156#define wxUSE_NORMALIZED_PS_FONTS 1
13157EOF
13158
13159
13160
13161if test "$wxUSE_CONSTRAINTS" = "yes"; then
13162 cat >> confdefs.h <<\EOF
13163#define wxUSE_CONSTRAINTS 1
13164EOF
13165
13166 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
13167fi
13168
13169if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
13170 cat >> confdefs.h <<\EOF
13171#define wxUSE_MDI_ARCHITECTURE 1
13172EOF
13173
13174 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
13175fi
13176
13177if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
13178 cat >> confdefs.h <<\EOF
13179#define wxUSE_DOC_VIEW_ARCHITECTURE 1
13180EOF
13181
13182 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
13183 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
13184 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
13185 fi
13186fi
13187
13188if test "$wxUSE_HELP" = "yes"; then
13189 cat >> confdefs.h <<\EOF
13190#define wxUSE_HELP 1
13191EOF
13192
13193 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
13194fi
13195
13196if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
13197 if test "$wxUSE_CONSTRAINTS" != "yes"; then
13198 echo "configure: warning: Printing support cannot be used without constraints so it won't be compiled without it" 1>&2
13199 else
13200 cat >> confdefs.h <<\EOF
13201#define wxUSE_PRINTING_ARCHITECTURE 1
13202EOF
13203
13204 fi
13205 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
13206fi
13207
13208if test "$wxUSE_PROLOGIO" = "yes" ; then
13209 cat >> confdefs.h <<\EOF
13210#define wxUSE_PROLOGIO 1
13211EOF
13212
13213fi
13214
13215if test "$wxUSE_RESOURCES" = "yes" ; then
13216 if test "$wxUSE_PROLOGIO" = "yes" ; then
13217 cat >> confdefs.h <<\EOF
13218#define wxUSE_RESOURCES 1
13219EOF
13220
13221 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS resource"
13222 else
13223 echo "configure: warning: wxWindows ressource system requires PrologIO and can't be compiled without it." 1>&2
13224 fi
13225fi
13226
13227if test "$wxUSE_X_RESOURCES" = "yes"; then
13228 cat >> confdefs.h <<\EOF
13229#define wxUSE_X_RESOURCES 1
13230EOF
13231
13232fi
13233
13234
13235if test "$wxUSE_IPC" = "yes"; then
13236 cat >> confdefs.h <<\EOF
13237#define wxUSE_IPC 1
13238EOF
13239
13240fi
13241
13242if test "$wxUSE_CLIPBOARD" = "yes"; then
13243 cat >> confdefs.h <<\EOF
13244#define wxUSE_CLIPBOARD 1
13245EOF
13246
13247fi
13248
13249if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
13250 if test "$wxUSE_GTK" = 1; then
13251 if test "$WXGTK12" != 1; then
13252 echo "configure: warning: Drag and drop is only supported under GTK+ 1.2" 1>&2
13253 wxUSE_DRAG_AND_DROP=no
13254 fi
13255 fi
13256
13257 if test "$wxUSE_MOTIF" = 1; then
13258 echo "configure: warning: Drag and drop is not yet supported under Motif" 1>&2
13259 wxUSE_DRAG_AND_DROP=no
13260 fi
13261
13262 if test "$USE_WIN32" = 1; then
13263 for ac_hdr in ole2.h
13264do
13265ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13266echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
32832908 13267echo "configure:13268: checking for $ac_hdr" >&5
10f2d63a
VZ
13268if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
13269 echo $ac_n "(cached) $ac_c" 1>&6
13270else
13271 cat > conftest.$ac_ext <<EOF
32832908 13272#line 13273 "configure"
10f2d63a
VZ
13273#include "confdefs.h"
13274#include <$ac_hdr>
13275EOF
13276ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
32832908 13277{ (eval echo configure:13278: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
13278ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13279if test -z "$ac_err"; then
13280 rm -rf conftest*
13281 eval "ac_cv_header_$ac_safe=yes"
13282else
13283 echo "$ac_err" >&5
13284 echo "configure: failed program was:" >&5
13285 cat conftest.$ac_ext >&5
13286 rm -rf conftest*
13287 eval "ac_cv_header_$ac_safe=no"
13288fi
13289rm -f conftest*
13290fi
13291if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13292 echo "$ac_t""yes" 1>&6
13293 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13294 cat >> confdefs.h <<EOF
13295#define $ac_tr_hdr 1
13296EOF
13297
13298else
13299 echo "$ac_t""no" 1>&6
13300fi
13301done
13302
13303 if test "x$HAVE_OLE2_H" = x ; then
13304 echo "configure: warning: Drag and drop disabled because OLE headers not found" 1>&2
13305 wxUSE_DRAG_AND_DROP=no
13306 fi
13307 fi
13308
13309 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
13310 cat >> confdefs.h <<\EOF
13311#define wxUSE_DRAG_AND_DROP 1
13312EOF
13313
13314 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
13315 fi
13316
13317fi
13318
13319if test "$wxUSE_SPLINES" = "yes" ; then
13320 cat >> confdefs.h <<\EOF
13321#define wxUSE_SPLINES 1
13322EOF
13323
13324fi
13325
13326
13327if test "$wxUSE_ACCEL" = "yes"; then
13328 cat >> confdefs.h <<\EOF
13329#define wxUSE_ACCEL 1
13330EOF
13331
13332fi
13333
13334if test "$wxUSE_CARET" = "yes"; then
13335 cat >> confdefs.h <<\EOF
13336#define wxUSE_CARET 1
13337EOF
13338
13339 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
13340fi
13341
13342if test "$wxUSE_COMBOBOX" = "yes"; then
13343 cat >> confdefs.h <<\EOF
13344#define wxUSE_COMBOBOX 1
13345EOF
13346
13347fi
13348
13349if test "$wxUSE_CHOICE" = "yes"; then
13350 cat >> confdefs.h <<\EOF
13351#define wxUSE_CHOICE 1
13352EOF
13353
13354fi
13355
13356if test "$wxUSE_BMPBUTTON" = "yes"; then
13357 cat >> confdefs.h <<\EOF
13358#define wxUSE_BMPBUTTON 1
13359EOF
13360
13361fi
13362
13363if test "$wxUSE_CHECKBOX" = "yes"; then
13364 cat >> confdefs.h <<\EOF
13365#define wxUSE_CHECKBOX 1
13366EOF
13367
13368fi
13369
13370if test "$wxUSE_CHECKLST" = "yes"; then
13371 cat >> confdefs.h <<\EOF
13372#define wxUSE_CHECKLISTBOX 1
13373EOF
13374
13375 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
13376fi
13377
13378if test "$wxUSE_GAUGE" = "yes"; then
13379 cat >> confdefs.h <<\EOF
13380#define wxUSE_GAUGE 1
13381EOF
13382
13383fi
13384
d6a55c4b
VZ
13385if test "$wxUSE_NEW_GRID" = "yes"; then
13386 wxUSE_GRID="yes"
10f2d63a 13387 cat >> confdefs.h <<\EOF
d6a55c4b 13388#define wxUSE_NEW_GRID 1
10f2d63a
VZ
13389EOF
13390
d6a55c4b 13391 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS newgrid"
10f2d63a
VZ
13392fi
13393
d6a55c4b 13394if test "$wxUSE_GRID" = "yes"; then
10f2d63a 13395 cat >> confdefs.h <<\EOF
d6a55c4b 13396#define wxUSE_GRID 1
10f2d63a
VZ
13397EOF
13398
d6a55c4b 13399 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
10f2d63a
VZ
13400fi
13401
13402if test "$wxUSE_IMAGLIST" = "yes"; then
13403 cat >> confdefs.h <<\EOF
13404#define wxUSE_IMAGLIST 1
13405EOF
13406
13407fi
13408
13409if test "$wxUSE_LISTBOX" = "yes"; then
13410 cat >> confdefs.h <<\EOF
13411#define wxUSE_LISTBOX 1
13412EOF
13413
13414fi
13415
13416if test "$wxUSE_LISTCTRL" = "yes"; then
13417 if test "$wxUSE_IMAGLIST" = "yes"; then
13418 cat >> confdefs.h <<\EOF
13419#define wxUSE_LISTCTRL 1
13420EOF
13421
13422 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
13423 else
13424 echo "configure: warning: wxListCtrl requires wxImageList and won't be compiled without it" 1>&2
13425 fi
13426fi
13427
13428if test "$wxUSE_NOTEBOOK" = "yes"; then
13429 cat >> confdefs.h <<\EOF
13430#define wxUSE_NOTEBOOK 1
13431EOF
13432
13433 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
13434fi
13435
13436if test "$wxUSE_RADIOBOX" = "yes"; then
13437 cat >> confdefs.h <<\EOF
13438#define wxUSE_RADIOBOX 1
13439EOF
13440
13441fi
13442
13443if test "$wxUSE_RADIOBTN" = "yes"; then
13444 cat >> confdefs.h <<\EOF
13445#define wxUSE_RADIOBTN 1
13446EOF
13447
13448fi
13449
13450if test "$wxUSE_SASH" = "yes"; then
13451 cat >> confdefs.h <<\EOF
13452#define wxUSE_SASH 1
13453EOF
13454
13455 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
13456fi
13457
13458if test "$wxUSE_SCROLLBAR" = "yes"; then
13459 cat >> confdefs.h <<\EOF
13460#define wxUSE_SCROLLBAR 1
13461EOF
13462
741a9306 13463 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
10f2d63a
VZ
13464fi
13465
13466if test "$wxUSE_SLIDER" = "yes"; then
13467 cat >> confdefs.h <<\EOF
13468#define wxUSE_SLIDER 1
13469EOF
13470
13471fi
13472
13473if test "$wxUSE_SPINBTN" = "yes"; then
13474 cat >> confdefs.h <<\EOF
13475#define wxUSE_SPINBTN 1
13476EOF
13477
13478fi
13479
56cfaa52
RR
13480if test "$wxUSE_SPINCTRL" = "yes"; then
13481 cat >> confdefs.h <<\EOF
13482#define wxUSE_SPINCTRL 1
13483EOF
13484
13485fi
13486
10f2d63a
VZ
13487if test "$wxUSE_SPLITTER" = "yes"; then
13488 cat >> confdefs.h <<\EOF
13489#define wxUSE_SPLITTER 1
13490EOF
13491
13492 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
13493fi
13494
13495if test "$wxUSE_STATBMP" = "yes"; then
13496 cat >> confdefs.h <<\EOF
13497#define wxUSE_STATBMP 1
13498EOF
13499
13500fi
13501
13502if test "$wxUSE_STATBOX" = "yes"; then
13503 cat >> confdefs.h <<\EOF
13504#define wxUSE_STATBOX 1
13505EOF
13506
13507fi
13508
13509if test "$wxUSE_STATLINE" = "yes"; then
13510 if test "$wxUSE_WINE" = 1 ; then
13511 echo "configure: warning: wxStaticLine is not supported under WINE" 1>&2
13512 else
13513 cat >> confdefs.h <<\EOF
13514#define wxUSE_STATLINE 1
13515EOF
13516
13517 fi
13518fi
13519
13520if test "$wxUSE_STATUSBAR" = "yes"; then
13521 cat >> confdefs.h <<\EOF
13522#define wxUSE_STATUSBAR 1
13523EOF
13524
2286341c
VZ
13525
13526 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
10f2d63a
VZ
13527fi
13528
13529if test "$wxUSE_TABDIALOG" = "yes"; then
13530 cat >> confdefs.h <<\EOF
13531#define wxUSE_TAB_DIALOG 1
13532EOF
13533
13534 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab"
13535fi
13536
360d6699
VZ
13537if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
13538 cat >> confdefs.h <<\EOF
13539#define wxUSE_TOOLBAR_SIMPLE 1
13540EOF
13541
13542 wxUSE_TOOLBAR="yes"
13543fi
13544
10f2d63a
VZ
13545if test "$wxUSE_TOOLBAR" = "yes"; then
13546 cat >> confdefs.h <<\EOF
13547#define wxUSE_TOOLBAR 1
13548EOF
13549
360d6699
VZ
13550
13551 if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
13552 wxUSE_TOOLBAR_NATIVE="yes"
13553 fi
13554
10f2d63a
VZ
13555 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
13556fi
13557
360d6699
VZ
13558if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
13559 cat >> confdefs.h <<\EOF
13560#define wxUSE_TOOLBAR_NATIVE 1
13561EOF
13562
13563fi
13564
10f2d63a
VZ
13565if test "$wxUSE_TOOLTIPS" = "yes"; then
13566 if test "$wxUSE_MOTIF" = 1; then
13567 echo "configure: warning: wxTooltip not supported yet under Motif" 1>&2
13568 else
13569 if test "$wxUSE_WINE" = 1; then
13570 echo "configure: warning: wxTooltip not supported under WINE" 1>&2
13571 else
13572 cat >> confdefs.h <<\EOF
13573#define wxUSE_TOOLTIPS 1
13574EOF
13575
13576 fi
13577 fi
13578fi
13579
13580if test "$wxUSE_TREECTRL" = "yes"; then
13581 if test "$wxUSE_IMAGLIST" = "yes"; then
13582 cat >> confdefs.h <<\EOF
13583#define wxUSE_TREECTRL 1
13584EOF
13585
13586 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
13587 else
13588 echo "configure: warning: wxTreeCtrl requires wxImageList and won't be compiled without it" 1>&2
13589 fi
13590fi
13591
13592
13593
13594if test "$wxUSE_METAFILE" = "yes"; then
13595 cat >> confdefs.h <<\EOF
13596#define wxUSE_METAFILE 1
13597EOF
13598
13599fi
13600
13601if test "$wxUSE_DIRDLG" = "yes"; then
13602 if test "$wxUSE_CONSTRAINTS" != "yes"; then
13603 echo "configure: warning: wxDirDialog requires constraints so it won't be compiled without them" 1>&2
13604 else
13605 if test "$wxUSE_TREECTRL" != "yes"; then
13606 echo "configure: warning: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" 1>&2
13607 else
13608 cat >> confdefs.h <<\EOF
13609#define wxUSE_DIRDLG 1
13610EOF
13611
13612 fi
13613 fi
13614fi
13615
13616if test "$wxUSE_TEXTDLG" = "yes"; then
13617 cat >> confdefs.h <<\EOF
13618#define wxUSE_TEXTDLG 1
13619EOF
13620
13621fi
13622
13623if test "$wxUSE_STARTUP_TIPS" = "yes"; then
13624 if test "$wxUSE_CONSTRAINTS" != "yes"; then
13625 echo "configure: warning: Startup tips requires constraints and won't be compiled without them" 1>&2
13626 else
13627 cat >> confdefs.h <<\EOF
13628#define wxUSE_STARTUP_TIPS 1
13629EOF
13630
13631 fi
13632fi
13633
13634if test "$wxUSE_PROGRESSDLG" = "yes"; then
13635 if test "$wxUSE_CONSTRAINTS" != "yes"; then
13636 echo "configure: warning: wxProgressDialog requires constraints so it won't be compiled without them" 1>&2
13637 else
13638 cat >> confdefs.h <<\EOF
13639#define wxUSE_PROGRESSDLG 1
13640EOF
13641
13642 fi
13643fi
13644
13645if test "$wxUSE_MINIFRAME" = "yes"; then
13646 cat >> confdefs.h <<\EOF
13647#define wxUSE_MINIFRAME 1
13648EOF
13649
13650 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
13651fi
13652
13653if test "$wxUSE_HTML" = "yes"; then
13654 cat >> confdefs.h <<\EOF
13655#define wxUSE_HTML 1
13656EOF
13657
13658 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html"
13659 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS html"
13660fi
13661
13662if test "$wxUSE_VALIDATORS" = "yes"; then
13663 cat >> confdefs.h <<\EOF
13664#define wxUSE_VALIDATORS 1
13665EOF
13666
13667 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
13668fi
13669
13670if test "$wxUSE_GIF" = "yes" ; then
13671 cat >> confdefs.h <<\EOF
13672#define wxUSE_GIF 1
13673EOF
13674
13675fi
13676
13677if test "$wxUSE_PCX" = "yes" ; then
13678 cat >> confdefs.h <<\EOF
13679#define wxUSE_PCX 1
13680EOF
13681
13682fi
13683
13684if test "$wxUSE_PNM" = "yes" ; then
13685 cat >> confdefs.h <<\EOF
13686#define wxUSE_PNM 1
13687EOF
13688
13689fi
13690
13691
32832908
VZ
13692if test "$cross_compiling" = "yes"; then
13693 OSINFO="\"$host\""
13694else
13695 OSINFO=`uname -s -r -m`
13696 OSINFO="\"$OSINFO\""
13697fi
13698
aaa37c0d
VZ
13699cat >> confdefs.h <<EOF
13700#define WXWIN_OS_DESCRIPTION $OSINFO
13701EOF
13702
13703
13704
bdad4e7e 13705GUILIBS="$GUI_TK_LIBRARY $OPENGL_LINK $TOOLKIT_LINK"
10f2d63a 13706
422107f9 13707EXTRA_LIBS="$LIBS $ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $THREADS_LINK $DMALLOC_LINK $DL_LINK"
10f2d63a 13708if test "$wxUSE_GUI" = "yes"; then
0dcf9893 13709 EXTRA_LIBS="$EXTRA_LIBS $GUILIBS $PNG_LINK $JPEG_LINK $TIFF_LINK"
10f2d63a
VZ
13710fi
13711
13712LD_LIBS="\${top_builddir}/lib/${WX_LIBRARY_NAME_STATIC} $EXTRA_LIBS"
13713
e8482f24 13714INCLUDES="-I. -I\${top_builddir}/include -I\${top_srcdir}/include -I\${top_srcdir}/contrib/include $ZLIB_INCLUDE $PNG_INCLUDE $JPEG_INCLUDE $TIFF_INCLUDE $TOOLKIT_INCLUDE"
10f2d63a
VZ
13715
13716if test "$GXX" = yes ; then
13717 CXXWARNINGS="-Wall"
d6a55c4b 13718 fi
10f2d63a
VZ
13719EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE $INCLUDES"
13720
13721CFLAGS=`echo $CFLAGS $EXTRA_CFLAGS | sed 's/ \\+/ /g'`
13722CXXFLAGS=`echo $CXXFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \+/ /g'`
13723
e694c22c
VZ
13724LDFLAGS="$LDFLAGS $PROFILE"
13725
10f2d63a
VZ
13726if test "$wxUSE_GUI" = "yes"; then
13727
bdad4e7e 13728 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS controls dialogs dragimag drawing dynamic \
bc9027cc 13729 font fractal image menu minimal richedit"
b12915c1 13730
88d3a15c 13731 CPPFLAGS="$CPPFLAGS \$(EXTRADEFS) \$(APPEXTRADEFS)"
10f2d63a
VZ
13732else
13733 SAMPLES_SUBDIRS=""
13734fi
13735
ec14dd32
VZ
13736SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
13737
13738
13739
10f2d63a
VZ
13740
13741
13742
13743
13744
13745
13746
13747
13748
13749
13750
13751
13752
13753
13754
13755
13756
13757
13758
13759
13760
13761
13762
13763
13764
13765
13766
13767
13768
13769
13770
13771
13772
13773
13774
13775
13776
13777
13778
13779
13780
13781
13782
13783
13784
13785
13786
13787
13788
13789
13790
13791
1d62a8b4 13792
bdad4e7e
RR
13793
13794
13795
13796
13797
13798
13799
32832908
VZ
13800
13801
13802
13803
13804
13805
13806
13807
13808
13809
13810
13811
13812
bdad4e7e
RR
13813
13814
13815
e694c22c 13816
b12915c1 13817
2224580a
VZ
13818
13819
13820
13821
dad6c0ea
VZ
13822
13823
caa2c79b 13824
10f2d63a
VZ
13825
13826
13827echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
32832908 13828echo "configure:13829: checking whether ${MAKE-make} sets \${MAKE}" >&5
10f2d63a
VZ
13829set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
13830if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
13831 echo $ac_n "(cached) $ac_c" 1>&6
13832else
13833 cat > conftestmake <<\EOF
13834all:
13835 @echo 'ac_maketemp="${MAKE}"'
13836EOF
13837# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
13838eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
13839if test -n "$ac_maketemp"; then
13840 eval ac_cv_prog_make_${ac_make}_set=yes
13841else
13842 eval ac_cv_prog_make_${ac_make}_set=no
13843fi
13844rm -f conftestmake
13845fi
13846if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
13847 echo "$ac_t""yes" 1>&6
13848 SET_MAKE=
13849else
13850 echo "$ac_t""no" 1>&6
13851 SET_MAKE="MAKE=${MAKE-make}"
13852fi
13853
13854
00cf1208
RR
13855if test -d include; then
13856 if test -d include/wx; then
13857 if test -d include/wx/${TOOLKIT_DIR}; then
13858 if test -f include/wx/${TOOLKIT_DIR}/setup.h; then
13859 mv -f include/wx/${TOOLKIT_DIR}/setup.h setup.h
13860 fi
13861 fi
13862 fi
13863fi
13864
10f2d63a
VZ
13865
13866
2224580a 13867if test "$wxUSE_GUI" = "yes"; then
ec90f5e5 13868 wx_cv_path_samplesubdirs=$SAMPLES_SUBDIRS
e8482f24
GL
13869 wx_cv_path_ifs=$PATH_IFS
13870 wx_cv_program_ext=$PROGRAM_EXT
13871 wx_cv_target_library=$WX_TARGET_LIBRARY
13872 subdirs="demos samples utils contrib"
2224580a
VZ
13873
13874fi
10f2d63a
VZ
13875
13876trap '' 1 2 15
13877cat > confcache <<\EOF
13878# This file is a shell script that caches the results of configure
13879# tests run on this system so they can be shared between configure
13880# scripts and configure runs. It is not useful on other systems.
13881# If it contains results you don't want to keep, you may remove or edit it.
13882#
13883# By default, configure uses ./config.cache as the cache file,
13884# creating it if it does not exist already. You can give configure
13885# the --cache-file=FILE option to use a different cache file; that is
13886# what configure does when it calls configure scripts in
13887# subdirectories, so they share the cache.
13888# Giving --cache-file=/dev/null disables caching, for debugging configure.
13889# config.status only pays attention to the cache file if you give it the
13890# --recheck option to rerun configure.
13891#
13892EOF
13893# The following way of writing the cache mishandles newlines in values,
13894# but we know of no workaround that is simple, portable, and efficient.
13895# So, don't put newlines in cache variables' values.
13896# Ultrix sh set writes to stderr and can't be redirected directly,
13897# and sets the high bit in the cache file unless we assign to the vars.
13898(set) 2>&1 |
13899 case `(ac_space=' '; set | grep ac_space) 2>&1` in
13900 *ac_space=\ *)
13901 # `set' does not quote correctly, so add quotes (double-quote substitution
13902 # turns \\\\ into \\, and sed turns \\ into \).
13903 sed -n \
13904 -e "s/'/'\\\\''/g" \
13905 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
13906 ;;
13907 *)
13908 # `set' quotes correctly as required by POSIX, so do not add quotes.
13909 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
13910 ;;
13911 esac >> confcache
13912if cmp -s $cache_file confcache; then
13913 :
13914else
13915 if test -w $cache_file; then
13916 echo "updating cache $cache_file"
13917 cat confcache > $cache_file
13918 else
13919 echo "not updating unwritable cache $cache_file"
13920 fi
13921fi
13922rm -f confcache
13923
13924trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
13925
13926test "x$prefix" = xNONE && prefix=$ac_default_prefix
13927# Let make expand exec_prefix.
13928test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13929
13930# Any assignment to VPATH causes Sun make to only execute
13931# the first set of double-colon rules, so remove it if not needed.
13932# If there is a colon in the path, we need to keep it.
13933if test "x$srcdir" = x.; then
13934 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
13935fi
13936
13937trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
13938
13939DEFS=-DHAVE_CONFIG_H
13940
13941# Without the "./", some shells look in PATH for config.status.
13942: ${CONFIG_STATUS=./config.status}
13943
13944echo creating $CONFIG_STATUS
13945rm -f $CONFIG_STATUS
13946cat > $CONFIG_STATUS <<EOF
13947#! /bin/sh
13948# Generated automatically by configure.
13949# Run this file to recreate the current configuration.
13950# This directory was configured as follows,
13951# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13952#
13953# $0 $ac_configure_args
13954#
13955# Compiler output produced by configure, useful for debugging
13956# configure, is in ./config.log if it exists.
13957
13958ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
13959for ac_option
13960do
13961 case "\$ac_option" in
13962 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13963 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
13964 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
13965 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
e8482f24 13966 echo "$CONFIG_STATUS generated by autoconf version 2.13"
10f2d63a
VZ
13967 exit 0 ;;
13968 -help | --help | --hel | --he | --h)
13969 echo "\$ac_cs_usage"; exit 0 ;;
13970 *) echo "\$ac_cs_usage"; exit 1 ;;
13971 esac
13972done
13973
13974ac_given_srcdir=$srcdir
13975ac_given_INSTALL="$INSTALL"
13976
13977trap 'rm -fr `echo "
13978 wx-config
13979 src/make.env
13980 src/makeprog.env
13981 src/makelib.env
13982 Makefile
10f2d63a
VZ
13983 setup.h:setup.h.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
13984EOF
13985cat >> $CONFIG_STATUS <<EOF
13986
13987# Protect against being on the right side of a sed subst in config.status.
13988sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
13989 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
13990$ac_vpsub
13991$extrasub
13992s%@SHELL@%$SHELL%g
13993s%@CFLAGS@%$CFLAGS%g
13994s%@CPPFLAGS@%$CPPFLAGS%g
13995s%@CXXFLAGS@%$CXXFLAGS%g
13996s%@FFLAGS@%$FFLAGS%g
13997s%@DEFS@%$DEFS%g
13998s%@LDFLAGS@%$LDFLAGS%g
13999s%@LIBS@%$LIBS%g
14000s%@exec_prefix@%$exec_prefix%g
14001s%@prefix@%$prefix%g
14002s%@program_transform_name@%$program_transform_name%g
14003s%@bindir@%$bindir%g
14004s%@sbindir@%$sbindir%g
14005s%@libexecdir@%$libexecdir%g
14006s%@datadir@%$datadir%g
14007s%@sysconfdir@%$sysconfdir%g
14008s%@sharedstatedir@%$sharedstatedir%g
14009s%@localstatedir@%$localstatedir%g
14010s%@libdir@%$libdir%g
14011s%@includedir@%$includedir%g
14012s%@oldincludedir@%$oldincludedir%g
14013s%@infodir@%$infodir%g
14014s%@mandir@%$mandir%g
7c66a493
VZ
14015s%@host@%$host%g
14016s%@host_alias@%$host_alias%g
14017s%@host_cpu@%$host_cpu%g
14018s%@host_vendor@%$host_vendor%g
14019s%@host_os@%$host_os%g
14020s%@target@%$target%g
14021s%@target_alias@%$target_alias%g
14022s%@target_cpu@%$target_cpu%g
14023s%@target_vendor@%$target_vendor%g
14024s%@target_os@%$target_os%g
14025s%@build@%$build%g
14026s%@build_alias@%$build_alias%g
14027s%@build_cpu@%$build_cpu%g
14028s%@build_vendor@%$build_vendor%g
14029s%@build_os@%$build_os%g
10f2d63a
VZ
14030s%@CC@%$CC%g
14031s%@CPP@%$CPP%g
14032s%@CXX@%$CXX%g
14033s%@CXXCPP@%$CXXCPP%g
14034s%@RANLIB@%$RANLIB%g
14035s%@AR@%$AR%g
14036s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
14037s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
14038s%@INSTALL_DATA@%$INSTALL_DATA%g
14039s%@STRIP@%$STRIP%g
14040s%@YACC@%$YACC%g
14041s%@LEX@%$LEX%g
14042s%@LEXLIB@%$LEXLIB%g
14043s%@LN_S@%$LN_S%g
14044s%@GTK_CONFIG@%$GTK_CONFIG%g
14045s%@GTK_CFLAGS@%$GTK_CFLAGS%g
14046s%@GTK_LIBS@%$GTK_LIBS%g
ab9b9eab
VZ
14047s%@X_CFLAGS@%$X_CFLAGS%g
14048s%@X_PRE_LIBS@%$X_PRE_LIBS%g
14049s%@X_LIBS@%$X_LIBS%g
14050s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
ec14dd32
VZ
14051s%@LEX_STEM@%$LEX_STEM%g
14052s%@PATH_IFS@%$PATH_IFS%g
10f2d63a
VZ
14053s%@WX_MAJOR_VERSION_NUMBER@%$WX_MAJOR_VERSION_NUMBER%g
14054s%@WX_MINOR_VERSION_NUMBER@%$WX_MINOR_VERSION_NUMBER%g
14055s%@WX_RELEASE_NUMBER@%$WX_RELEASE_NUMBER%g
14056s%@WX_LIBRARY_NAME@%$WX_LIBRARY_NAME%g
14057s%@WX_LIBRARY_NAME_STATIC@%$WX_LIBRARY_NAME_STATIC%g
14058s%@WX_LIBRARY_NAME_SHARED@%$WX_LIBRARY_NAME_SHARED%g
14059s%@WX_LIBRARY@%$WX_LIBRARY%g
14060s%@WX_TARGET_LIBRARY@%$WX_TARGET_LIBRARY%g
14061s%@WX_LIBRARY_LINK1@%$WX_LIBRARY_LINK1%g
14062s%@WX_LIBRARY_LINK2@%$WX_LIBRARY_LINK2%g
14063s%@WX_LIBRARY_LINK3@%$WX_LIBRARY_LINK3%g
14064s%@PROGRAM_EXT@%$PROGRAM_EXT%g
bdad4e7e
RR
14065s%@WX_LIBRARY_NAME_GL@%$WX_LIBRARY_NAME_GL%g
14066s%@WX_LIBRARY_NAME_STATIC_GL@%$WX_LIBRARY_NAME_STATIC_GL%g
14067s%@WX_LIBRARY_NAME_SHARED_GL@%$WX_LIBRARY_NAME_SHARED_GL%g
14068s%@WX_LIBRARY_GL@%$WX_LIBRARY_GL%g
14069s%@WX_TARGET_LIBRARY_GL@%$WX_TARGET_LIBRARY_GL%g
14070s%@WX_LIBRARY_LINK1_GL@%$WX_LIBRARY_LINK1_GL%g
14071s%@WX_LIBRARY_LINK2_GL@%$WX_LIBRARY_LINK2_GL%g
14072s%@WX_LIBRARY_LINK3_GL@%$WX_LIBRARY_LINK3_GL%g
10f2d63a
VZ
14073s%@WX_ALL@%$WX_ALL%g
14074s%@WX_ALL_INSTALLED@%$WX_ALL_INSTALLED%g
14075s%@SHARED_LD@%$SHARED_LD%g
14076s%@PIC_FLAG@%$PIC_FLAG%g
14077s%@DEP_INFO_FLAGS@%$DEP_INFO_FLAGS%g
caa2c79b 14078s%@CODE_GEN_FLAGS@%$CODE_GEN_FLAGS%g
1d62a8b4 14079s%@BURNT_LIBRARY_NAME@%$BURNT_LIBRARY_NAME%g
bdad4e7e 14080s%@BURNT_LIBRARY_NAME_GL@%$BURNT_LIBRARY_NAME_GL%g
10f2d63a 14081s%@WXDEBUG_DEFINE@%$WXDEBUG_DEFINE%g
dad6c0ea
VZ
14082s%@USE_GUI@%$USE_GUI%g
14083s%@AFMINSTALL@%$AFMINSTALL%g
10f2d63a
VZ
14084s%@TOOLKIT@%$TOOLKIT%g
14085s%@TOOLKIT_DEF@%$TOOLKIT_DEF%g
14086s%@TOOLKIT_DIR@%$TOOLKIT_DIR%g
14087s%@TOOLKIT_INCLUDE@%$TOOLKIT_INCLUDE%g
14088s%@GUIHEADERS@%$GUIHEADERS%g
14089s%@GUIOBJS@%$GUIOBJS%g
14090s%@COMMONOBJS@%$COMMONOBJS%g
14091s%@GENERICOBJS@%$GENERICOBJS%g
14092s%@GUIDEPS@%$GUIDEPS%g
14093s%@COMMONDEPS@%$COMMONDEPS%g
14094s%@GENERICDEPS@%$GENERICDEPS%g
14095s%@IODBCOBJS@%$IODBCOBJS%g
14096s%@UNIXOBJS@%$UNIXOBJS%g
14097s%@UNIXDEPS@%$UNIXDEPS%g
14098s%@ALL_OBJECTS@%$ALL_OBJECTS%g
14099s%@ALL_DEPFILES@%$ALL_DEPFILES%g
10f2d63a 14100s%@GUIDIST@%$GUIDIST%g
2224580a
VZ
14101s%@PORT_FILES@%$PORT_FILES%g
14102s%@DISTDIR@%$DISTDIR%g
14103s%@RPM_SPEC@%$RPM_SPEC%g
14104s%@RPM_FILES@%$RPM_FILES%g
10f2d63a
VZ
14105s%@SRC_SUBDIRS@%$SRC_SUBDIRS%g
14106s%@INCLUDE_SUBDIRS@%$INCLUDE_SUBDIRS%g
14107s%@UTILS_SUBDIRS@%$UTILS_SUBDIRS%g
14108s%@DOCS_SUBDIRS@%$DOCS_SUBDIRS%g
14109s%@SAMPLES_SUBDIRS@%$SAMPLES_SUBDIRS%g
14110s%@USER_SUBDIRS@%$USER_SUBDIRS%g
14111s%@EXTRA_LIBS@%$EXTRA_LIBS%g
b12915c1 14112s%@EXTRADEFS@%$EXTRADEFS%g
10f2d63a 14113s%@LD_LIBS@%$LD_LIBS%g
32832908
VZ
14114s%@RCINPUTSWITCH@%$RCINPUTSWITCH%g
14115s%@RCOUTPUTSWITCH@%$RCOUTPUTSWITCH%g
14116s%@RESPROGRAM@%$RESPROGRAM%g
14117s%@RESCOMP@%$RESCOMP%g
14118s%@RESFLAGS@%$RESFLAGS%g
14119s%@DLLTOOL@%$DLLTOOL%g
14120s%@AS@%$AS%g
14121s%@NM@%$NM%g
14122s%@LD@%$LD%g
14123s%@MAKEINFO@%$MAKEINFO%g
10f2d63a 14124s%@SET_MAKE@%$SET_MAKE%g
2224580a 14125s%@subdirs@%$subdirs%g
10f2d63a
VZ
14126
14127CEOF
14128EOF
14129
14130cat >> $CONFIG_STATUS <<\EOF
14131
14132# Split the substitutions into bite-sized pieces for seds with
14133# small command number limits, like on Digital OSF/1 and HP-UX.
14134ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
14135ac_file=1 # Number of current file.
14136ac_beg=1 # First line for current file.
14137ac_end=$ac_max_sed_cmds # Line after last line for current file.
14138ac_more_lines=:
14139ac_sed_cmds=""
14140while $ac_more_lines; do
14141 if test $ac_beg -gt 1; then
14142 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
14143 else
14144 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
14145 fi
14146 if test ! -s conftest.s$ac_file; then
14147 ac_more_lines=false
14148 rm -f conftest.s$ac_file
14149 else
14150 if test -z "$ac_sed_cmds"; then
14151 ac_sed_cmds="sed -f conftest.s$ac_file"
14152 else
14153 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
14154 fi
14155 ac_file=`expr $ac_file + 1`
14156 ac_beg=$ac_end
14157 ac_end=`expr $ac_end + $ac_max_sed_cmds`
14158 fi
14159done
14160if test -z "$ac_sed_cmds"; then
14161 ac_sed_cmds=cat
14162fi
14163EOF
14164
14165cat >> $CONFIG_STATUS <<EOF
14166
14167CONFIG_FILES=\${CONFIG_FILES-"wx-config
14168 src/make.env
14169 src/makeprog.env
14170 src/makelib.env
14171 Makefile
10f2d63a
VZ
14172 "}
14173EOF
14174cat >> $CONFIG_STATUS <<\EOF
14175for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
14176 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
14177 case "$ac_file" in
14178 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
14179 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
14180 *) ac_file_in="${ac_file}.in" ;;
14181 esac
14182
14183 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
14184
14185 # Remove last slash and all that follows it. Not all systems have dirname.
14186 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
14187 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
14188 # The file is in a subdirectory.
14189 test ! -d "$ac_dir" && mkdir "$ac_dir"
14190 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
14191 # A "../" for each directory in $ac_dir_suffix.
14192 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
14193 else
14194 ac_dir_suffix= ac_dots=
14195 fi
14196
14197 case "$ac_given_srcdir" in
14198 .) srcdir=.
14199 if test -z "$ac_dots"; then top_srcdir=.
14200 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
14201 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
14202 *) # Relative path.
14203 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
14204 top_srcdir="$ac_dots$ac_given_srcdir" ;;
14205 esac
14206
14207 case "$ac_given_INSTALL" in
14208 [/$]*) INSTALL="$ac_given_INSTALL" ;;
14209 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
14210 esac
14211
14212 echo creating "$ac_file"
14213 rm -f "$ac_file"
14214 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
14215 case "$ac_file" in
14216 *Makefile*) ac_comsub="1i\\
14217# $configure_input" ;;
14218 *) ac_comsub= ;;
14219 esac
14220
14221 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
14222 sed -e "$ac_comsub
14223s%@configure_input@%$configure_input%g
14224s%@srcdir@%$srcdir%g
14225s%@top_srcdir@%$top_srcdir%g
14226s%@INSTALL@%$INSTALL%g
14227" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
14228fi; done
14229rm -f conftest.s*
14230
14231# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
14232# NAME is the cpp macro being defined and VALUE is the value it is being given.
14233#
14234# ac_d sets the value in "#define NAME VALUE" lines.
14235ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
14236ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
14237ac_dC='\3'
14238ac_dD='%g'
14239# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
14240ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
14241ac_uB='\([ ]\)%\1#\2define\3'
14242ac_uC=' '
14243ac_uD='\4%g'
14244# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
14245ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
14246ac_eB='$%\1#\2define\3'
14247ac_eC=' '
14248ac_eD='%g'
14249
14250if test "${CONFIG_HEADERS+set}" != set; then
14251EOF
14252cat >> $CONFIG_STATUS <<EOF
14253 CONFIG_HEADERS="setup.h:setup.h.in"
14254EOF
14255cat >> $CONFIG_STATUS <<\EOF
14256fi
14257for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
14258 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
14259 case "$ac_file" in
14260 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
14261 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
14262 *) ac_file_in="${ac_file}.in" ;;
14263 esac
14264
14265 echo creating $ac_file
14266
14267 rm -f conftest.frag conftest.in conftest.out
14268 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
14269 cat $ac_file_inputs > conftest.in
14270
14271EOF
14272
14273# Transform confdefs.h into a sed script conftest.vals that substitutes
14274# the proper values into config.h.in to produce config.h. And first:
14275# Protect against being on the right side of a sed subst in config.status.
14276# Protect against being in an unquoted here document in config.status.
14277rm -f conftest.vals
14278cat > conftest.hdr <<\EOF
14279s/[\\&%]/\\&/g
14280s%[\\$`]%\\&%g
14281s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
14282s%ac_d%ac_u%gp
14283s%ac_u%ac_e%gp
14284EOF
14285sed -n -f conftest.hdr confdefs.h > conftest.vals
14286rm -f conftest.hdr
14287
14288# This sed command replaces #undef with comments. This is necessary, for
14289# example, in the case of _POSIX_SOURCE, which is predefined and required
14290# on some systems where configure will not decide to define it.
14291cat >> conftest.vals <<\EOF
14292s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
14293EOF
14294
14295# Break up conftest.vals because some shells have a limit on
14296# the size of here documents, and old seds have small limits too.
14297
14298rm -f conftest.tail
14299while :
14300do
14301 ac_lines=`grep -c . conftest.vals`
14302 # grep -c gives empty output for an empty file on some AIX systems.
14303 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
14304 # Write a limited-size here document to conftest.frag.
14305 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
14306 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
14307 echo 'CEOF
14308 sed -f conftest.frag conftest.in > conftest.out
14309 rm -f conftest.in
14310 mv conftest.out conftest.in
14311' >> $CONFIG_STATUS
14312 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
14313 rm -f conftest.vals
14314 mv conftest.tail conftest.vals
14315done
14316rm -f conftest.vals
14317
14318cat >> $CONFIG_STATUS <<\EOF
14319 rm -f conftest.frag conftest.h
14320 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
14321 cat conftest.in >> conftest.h
14322 rm -f conftest.in
14323 if cmp -s $ac_file conftest.h 2>/dev/null; then
14324 echo "$ac_file is unchanged"
14325 rm -f conftest.h
14326 else
14327 # Remove last slash and all that follows it. Not all systems have dirname.
14328 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
14329 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
14330 # The file is in a subdirectory.
14331 test ! -d "$ac_dir" && mkdir "$ac_dir"
14332 fi
14333 rm -f $ac_file
14334 mv conftest.h $ac_file
14335 fi
14336fi; done
14337
14338EOF
14339cat >> $CONFIG_STATUS <<EOF
14340
14341 TOOLKIT_DIR="${TOOLKIT_DIR}"
07eb77a6 14342 LN_S="${LN_S}"
10f2d63a
VZ
14343
14344
14345EOF
14346cat >> $CONFIG_STATUS <<\EOF
14347
14348 chmod +x wx-config
07eb77a6
RL
14349 mv wx-config wx${TOOLKIT_DIR}-config
14350 ${LN_S} wx${TOOLKIT_DIR}-config wx-config
00cf1208
RR
14351
14352
14353 if test ! -d lib; then
14354 mkdir lib
14355 fi
14356 if test ! -d lib/wx; then
14357 mkdir lib/wx
14358 fi
14359 if test ! -d lib/wx/include; then
14360 mkdir lib/wx/include
14361 fi
14362 if test ! -d lib/wx/include/wx; then
14363 mkdir lib/wx/include/wx
14364 fi
14365 if test ! -d lib/wx/include/wx/${TOOLKIT_DIR}; then
14366 mkdir lib/wx/include/wx/${TOOLKIT_DIR}
14367 fi
14368 if test -f setup.h; then
14369 cp -f setup.h lib/wx/include/wx/${TOOLKIT_DIR}/setup.h
14370 fi
07eb77a6 14371
00cf1208 14372
10f2d63a
VZ
14373 if test ! -d include; then
14374 mkdir include
14375 fi
14376 if test ! -d include/wx; then
14377 mkdir include/wx
14378 fi
14379 if test ! -d include/wx/${TOOLKIT_DIR}; then
14380 mkdir include/wx/${TOOLKIT_DIR}
14381 fi
afc31813
VZ
14382 if test -f setup.h; then
14383 mv -f setup.h include/wx/${TOOLKIT_DIR}/setup.h
14384 fi
00cf1208 14385
10f2d63a
VZ
14386
14387exit 0
14388EOF
14389chmod +x $CONFIG_STATUS
14390rm -fr confdefs* $ac_clean_files
14391test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
14392
2224580a
VZ
14393if test "$no_recursion" != yes; then
14394
14395 # Remove --cache-file and --srcdir arguments so they do not pile up.
14396 ac_sub_configure_args=
14397 ac_prev=
14398 for ac_arg in $ac_configure_args; do
14399 if test -n "$ac_prev"; then
14400 ac_prev=
14401 continue
14402 fi
14403 case "$ac_arg" in
14404 -cache-file | --cache-file | --cache-fil | --cache-fi \
14405 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
14406 ac_prev=cache_file ;;
14407 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
14408 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
14409 ;;
14410 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
14411 ac_prev=srcdir ;;
14412 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
14413 ;;
14414 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
14415 esac
14416 done
14417
e8482f24 14418 for ac_config_dir in demos samples utils contrib; do
2224580a
VZ
14419
14420 # Do not complain, so a configure script can configure whichever
14421 # parts of a large source tree are present.
14422 if test ! -d $srcdir/$ac_config_dir; then
14423 continue
14424 fi
14425
14426 echo configuring in $ac_config_dir
14427
14428 case "$srcdir" in
14429 .) ;;
14430 *)
14431 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
14432 else
14433 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
14434 fi
14435 ;;
14436 esac
14437
14438 ac_popdir=`pwd`
14439 cd $ac_config_dir
14440
14441 # A "../" for each directory in /$ac_config_dir.
14442 ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
14443
14444 case "$srcdir" in
14445 .) # No --srcdir option. We are building in place.
14446 ac_sub_srcdir=$srcdir ;;
14447 /*) # Absolute path.
14448 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
14449 *) # Relative path.
14450 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
14451 esac
14452
14453 # Check for guested configure; otherwise get Cygnus style configure.
14454 if test -f $ac_sub_srcdir/configure; then
14455 ac_sub_configure=$ac_sub_srcdir/configure
14456 elif test -f $ac_sub_srcdir/configure.in; then
14457 ac_sub_configure=$ac_configure
14458 else
14459 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
14460 ac_sub_configure=
14461 fi
14462
14463 # The recursion is here.
14464 if test -n "$ac_sub_configure"; then
14465
14466 # Make the cache file name correct relative to the subdirectory.
14467 case "$cache_file" in
14468 /*) ac_sub_cache_file=$cache_file ;;
14469 *) # Relative path.
14470 ac_sub_cache_file="$ac_dots$cache_file" ;;
14471 esac
14472 case "$ac_given_INSTALL" in
14473 [/$]*) INSTALL="$ac_given_INSTALL" ;;
14474 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
14475 esac
14476
14477 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
14478 # The eval makes quoting arguments work.
14479 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
14480 then :
14481 else
14482 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
14483 fi
14484 fi
14485
14486 cd $ac_popdir
14487 done
14488fi
14489
10f2d63a 14490