]> git.saurik.com Git - wxWidgets.git/blame - configure
Various changes due to OGL and glcanvas having changed
[wxWidgets.git] / configure
CommitLineData
10f2d63a
VZ
1#! /bin/sh
2
3# From configure.in Id: configure.in
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
10f2d63a
VZ
36
37
38
39
40# Guess values for system-dependent variables and create Makefiles.
bdad4e7e 41# Generated automatically using autoconf version 2.14
10f2d63a
VZ
42# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
43#
44# This configure script is free software; the Free Software Foundation
45# gives unlimited permission to copy, distribute and modify it.
46
47# Defaults:
48ac_help=
49ac_default_prefix=/usr/local
50# Any additions from configure.in:
51ac_help="$ac_help
52--enable-gui use GUI classes"
53ac_help="$ac_help
54 --with-gtk use GTK+"
55ac_help="$ac_help
56 --with-motif use Motif/Lesstif"
57ac_help="$ac_help
58 --with-wine use WINE"
59ac_help="$ac_help
60 --with-cygwin use Cygwin for MS-Windows"
61ac_help="$ac_help
62 --with-mingw use GCC Minimal MS-Windows"
e07802fc
VZ
63ac_help="$ac_help
64 --with-pm use OS/2 Presentation Manager"
10f2d63a
VZ
65ac_help="$ac_help
66 --with-gtk-prefix=PFX Prefix where GTK is installed"
67ac_help="$ac_help
68 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed"
69ac_help="$ac_help
10f2d63a
VZ
70--with-libpng use libpng (PNG image format)"
71ac_help="$ac_help
72--with-libjpeg use libjpeg (JPEG file format)"
73ac_help="$ac_help
c7a2bf27
RR
74--with-libtiff use libtiff (TIFF file format)"
75ac_help="$ac_help
10f2d63a
VZ
76--with-opengl use OpenGL (or Mesa)"
77ac_help="$ac_help
b12915c1
VZ
78--with-dmalloc use dmalloc library (www.letters.com/dmalloc)"
79ac_help="$ac_help
80--with-zlib use zlib for LZW compression"
81ac_help="$ac_help
10f2d63a
VZ
82--with-odbc use the IODBC and wxODBC classes"
83ac_help="$ac_help
84--enable-shared create shared library code"
85ac_help="$ac_help
00cf1208
RR
86--enable-burnt_name create set name in shared library "
87ac_help="$ac_help
10f2d63a
VZ
88--enable-optimise create optimised code"
89ac_help="$ac_help
90--enable-debug same as debug_flag and debug_info"
91ac_help="$ac_help
92--enable-debug_flag set __WXDEBUG__ flag (recommended for developers!)"
93ac_help="$ac_help
94--enable-debug_info create code with debugging information"
95ac_help="$ac_help
96--enable-debug_gdb create code with extra GDB debugging information"
97ac_help="$ac_help
98--enable-debug_cntxt use wxDebugContext"
99ac_help="$ac_help
100--enable-mem_tracing create code with memory tracing"
101ac_help="$ac_help
102--enable-profile create code with profiling information"
103ac_help="$ac_help
104--enable-no_rtti create code without RTTI information"
105ac_help="$ac_help
106--enable-no_exceptions create code without exceptions information"
107ac_help="$ac_help
108--enable-permissive compile code disregarding strict ANSI"
109ac_help="$ac_help
110--enable-no_deps create code without dependency information"
111ac_help="$ac_help
112--enable-intl use internationalization system"
113ac_help="$ac_help
114--enable-config use wxConfig (and derived) classes"
115ac_help="$ac_help
116--enable-sockets use socket/network classes"
117ac_help="$ac_help
118--enable-dialupman use dialup network classes"
119ac_help="$ac_help
120--enable-ipc use interprocess communication (wxSocket etc.)"
121ac_help="$ac_help
122--enable-apple_ieee use the Apple IEEE codec"
123ac_help="$ac_help
124--enable-timedate use date/time classes"
125ac_help="$ac_help
126--enable-wave use wxWave class"
127ac_help="$ac_help
128--enable-fraction use wxFraction class"
129ac_help="$ac_help
130--enable-dynlib use wxLibrary class for DLL loading"
131ac_help="$ac_help
132--enable-longlong use wxLongLong class"
133ac_help="$ac_help
134--enable-log use logging system"
135ac_help="$ac_help
136--enable-streams use wxStream etc classes"
137ac_help="$ac_help
138--enable-file use wxFile classes"
139ac_help="$ac_help
140--enable-textfile use wxTextFile classes"
141ac_help="$ac_help
142--enable-unicode compile wxString with Unicode support"
143ac_help="$ac_help
144--enable-wcsrtombs use wcsrtombs instead of buggy (GNU libc1/Linux libc5) wcstombs"
145ac_help="$ac_help
146--enable-wxprintfv use wxWindows implementation of vprintf()"
147ac_help="$ac_help
148--enable-joystick compile in joystick support (Linux only)"
149ac_help="$ac_help
150--enable-std_iostreams use standard C++ stream classes"
151ac_help="$ac_help
24528b0c
VS
152--enable-filesystem use virtual file systems classes"
153ac_help="$ac_help
10f2d63a
VZ
154--enable-fs_inet use virtual HTTP/FTP filesystems"
155ac_help="$ac_help
156--enable-fs_zip use virtual ZIP filesystems"
157ac_help="$ac_help
158--enable-zipstream use wxZipInputStream"
159ac_help="$ac_help
160--enable-threads use threads"
161ac_help="$ac_help
162--enable-serial use class serialization"
163ac_help="$ac_help
164--enable-docview use document view architecture"
165ac_help="$ac_help
166--enable-help use help (using external browser at present)"
167ac_help="$ac_help
168--enable-constraints use layout-constraints system"
169ac_help="$ac_help
170--enable-printarch use printing architecture"
171ac_help="$ac_help
172--enable-mdi use multiple document interface architecture"
173ac_help="$ac_help
174--enable-postscript use wxPostscriptDC device context (default for gtk+)"
175ac_help="$ac_help
176--enable-prologio use Prolog IO library"
177ac_help="$ac_help
178--enable-resources use wxWindows resources"
179ac_help="$ac_help
180--enable-xresources use X resources for save (default for gtk+)"
181ac_help="$ac_help
182--enable-clipboard use wxClipboard classes"
183ac_help="$ac_help
184--enable-dnd use Drag'n'Drop classes"
185ac_help="$ac_help
186--enable-wxtree make wxTree library"
187ac_help="$ac_help
188--enable-controls use all usual controls"
189ac_help="$ac_help
190--enable-accel use accelerators"
191ac_help="$ac_help
192--enable-caret use wxCaret class"
193ac_help="$ac_help
194--enable-bmpbutton use wxBitmapButton class"
195ac_help="$ac_help
196--enable-checkbox use wxCheckBox class"
197ac_help="$ac_help
198--enable-checklst use wxCheckListBox (listbox with checkboxes) class"
199ac_help="$ac_help
200--enable-choice use wxChoice class"
201ac_help="$ac_help
202--enable-combobox use wxComboBox classes"
203ac_help="$ac_help
204--enable-gauge use wxGauge class"
205ac_help="$ac_help
206--enable-grid use wxGrid class"
207ac_help="$ac_help
208--enable-newgrid use new wxGrid class"
209ac_help="$ac_help
210--enable-imaglist use wxImageList class"
211ac_help="$ac_help
212--enable-listbox use wxListBox class"
213ac_help="$ac_help
214--enable-listctrl use wxListCtrl class"
215ac_help="$ac_help
216--enable-notebook use wxNotebook class"
217ac_help="$ac_help
218--enable-radiobox use wxRadioBox class"
219ac_help="$ac_help
220--enable-radiobtn use wxRadioButton class"
221ac_help="$ac_help
222--enable-sash use wxSashWindow class"
223ac_help="$ac_help
224--enable-scrollbar use wxScrollBar class and scrollable windows"
225ac_help="$ac_help
226--enable-slider use wxSlider class"
227ac_help="$ac_help
228--enable-spinbtn use wxSpinButton class"
229ac_help="$ac_help
56cfaa52
RR
230--enable-spinctrl use wxSpinCtrl class"
231ac_help="$ac_help
10f2d63a
VZ
232--enable-splitter use wxSplitterWindow class"
233ac_help="$ac_help
234--enable-statbmp use wxStaticBitmap class"
235ac_help="$ac_help
236--enable-statbox use wxStaticBox class"
237ac_help="$ac_help
238--enable-statline use wxStaticLine class"
239ac_help="$ac_help
240--enable-statusbar use wxStatusBar class"
241ac_help="$ac_help
242--enable-tabdialog use wxTabControl class"
243ac_help="$ac_help
244--enable-toolbar use wxToolBar class"
245ac_help="$ac_help
360d6699
VZ
246--enable-tbarnative use native wxToolBar class"
247ac_help="$ac_help
248--enable-tbarsmpl use wxToolBarSimple class"
249ac_help="$ac_help
10f2d63a
VZ
250--enable-treectrl use wxTreeCtrl class"
251ac_help="$ac_help
252--enable-commondlg use common dialogs (wxDirDialog, wxProgressDialog, wxTextDialog, ...)"
253ac_help="$ac_help
254--enable-dirdlg use wxDirDialog"
255ac_help="$ac_help
256--enable-textdlg use wxTextDialog"
257ac_help="$ac_help
258--enable-tipdlg use startup tips"
259ac_help="$ac_help
260--enable-progressdlg use wxProgressDialog"
261ac_help="$ac_help
262--enable-miniframe use wxMiniFrame class"
263ac_help="$ac_help
264--enable-html use wxHTML sub-library"
265ac_help="$ac_help
266--enable-tooltips use wxToolTip class"
267ac_help="$ac_help
268--enable-splines use spline drawing code"
269ac_help="$ac_help
270--enable-validators use wxValidator and derived classes"
271ac_help="$ac_help
272--enable-busyinfo use wxBusyInfo"
273ac_help="$ac_help
9b33fe02
VZ
274--enable-plot use wxPlot"
275ac_help="$ac_help
10f2d63a
VZ
276--enable-gif use gif images (GIF file format)"
277ac_help="$ac_help
278--enable-pcx use pcx images (PCX file format)"
279ac_help="$ac_help
280--enable-pnm use pnm images (PNM file format)"
ab9b9eab
VZ
281ac_help="$ac_help
282 --with-x use the X Window System"
10f2d63a
VZ
283
284# Initialize some variables set by options.
285# The variables have the same names as the options, with
286# dashes changed to underlines.
287build=NONE
288cache_file=./config.cache
289exec_prefix=NONE
290host=NONE
291no_create=
292nonopt=NONE
293no_recursion=
294prefix=NONE
295program_prefix=NONE
296program_suffix=NONE
297program_transform_name=s,x,x,
298silent=
299site=
300srcdir=
301target=NONE
302verbose=
303x_includes=NONE
304x_libraries=NONE
305bindir='${exec_prefix}/bin'
306sbindir='${exec_prefix}/sbin'
307libexecdir='${exec_prefix}/libexec'
308datadir='${prefix}/share'
309sysconfdir='${prefix}/etc'
310sharedstatedir='${prefix}/com'
311localstatedir='${prefix}/var'
312libdir='${exec_prefix}/lib'
313includedir='${prefix}/include'
314oldincludedir='/usr/include'
315infodir='${prefix}/info'
316mandir='${prefix}/man'
317
318# Initialize some other variables.
319subdirs=
320MFLAGS= MAKEFLAGS=
321SHELL=${CONFIG_SHELL-/bin/sh}
322# Maximum number of lines to put in a shell here document.
323ac_max_here_lines=12
324
325ac_prev=
326for ac_option
327do
328
329 # If the previous option needs an argument, assign it.
330 if test -n "$ac_prev"; then
331 eval "$ac_prev=\$ac_option"
332 ac_prev=
333 continue
334 fi
335
336 case "$ac_option" in
337 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
338 *) ac_optarg= ;;
339 esac
340
341 # Accept the important Cygnus configure options, so we can diagnose typos.
342
343 case "$ac_option" in
344
345 -bindir | --bindir | --bindi | --bind | --bin | --bi)
346 ac_prev=bindir ;;
347 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
348 bindir="$ac_optarg" ;;
349
350 -build | --build | --buil | --bui | --bu)
351 ac_prev=build ;;
352 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
353 build="$ac_optarg" ;;
354
355 -cache-file | --cache-file | --cache-fil | --cache-fi \
356 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
357 ac_prev=cache_file ;;
358 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
359 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
360 cache_file="$ac_optarg" ;;
361
362 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
363 ac_prev=datadir ;;
364 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
365 | --da=*)
366 datadir="$ac_optarg" ;;
367
368 -disable-* | --disable-*)
369 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
370 # Reject names that are not valid shell variable names.
371 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
372 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
373 fi
374 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
375 eval "enable_${ac_feature}=no" ;;
376
377 -enable-* | --enable-*)
378 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
379 # Reject names that are not valid shell variable names.
380 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
381 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
382 fi
383 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
384 case "$ac_option" in
385 *=*) ;;
386 *) ac_optarg=yes ;;
387 esac
388 eval "enable_${ac_feature}='$ac_optarg'" ;;
389
390 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
391 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
392 | --exec | --exe | --ex)
393 ac_prev=exec_prefix ;;
394 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
395 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
396 | --exec=* | --exe=* | --ex=*)
397 exec_prefix="$ac_optarg" ;;
398
399 -gas | --gas | --ga | --g)
400 # Obsolete; use --with-gas.
401 with_gas=yes ;;
402
403 -help | --help | --hel | --he)
404 # Omit some internal or obsolete options to make the list less imposing.
405 # This message is too long to be a string in the A/UX 3.1 sh.
406 cat << EOF
407Usage: configure [options] [host]
408Options: [defaults in brackets after descriptions]
409Configuration:
410 --cache-file=FILE cache test results in FILE
411 --help print this message
412 --no-create do not create output files
413 --quiet, --silent do not print \`checking...' messages
414 --version print the version of autoconf that created configure
415Directory and file names:
416 --prefix=PREFIX install architecture-independent files in PREFIX
417 [$ac_default_prefix]
418 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
419 [same as prefix]
420 --bindir=DIR user executables in DIR [EPREFIX/bin]
421 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
422 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
423 --datadir=DIR read-only architecture-independent data in DIR
424 [PREFIX/share]
425 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
426 --sharedstatedir=DIR modifiable architecture-independent data in DIR
427 [PREFIX/com]
428 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
429 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
430 --includedir=DIR C header files in DIR [PREFIX/include]
431 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
432 --infodir=DIR info documentation in DIR [PREFIX/info]
433 --mandir=DIR man documentation in DIR [PREFIX/man]
434 --srcdir=DIR find the sources in DIR [configure dir or ..]
435 --program-prefix=PREFIX prepend PREFIX to installed program names
436 --program-suffix=SUFFIX append SUFFIX to installed program names
437 --program-transform-name=PROGRAM
438 run sed PROGRAM on installed program names
439EOF
440 cat << EOF
441Host type:
442 --build=BUILD configure for building on BUILD [BUILD=HOST]
443 --host=HOST configure for HOST [guessed]
444 --target=TARGET configure for TARGET [TARGET=HOST]
445Features and packages:
446 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
447 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
448 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
449 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
450 --x-includes=DIR X include files are in DIR
451 --x-libraries=DIR X library files are in DIR
452EOF
453 if test -n "$ac_help"; then
454 echo "--enable and --with options recognized:$ac_help"
455 fi
456 exit 0 ;;
457
458 -host | --host | --hos | --ho)
459 ac_prev=host ;;
460 -host=* | --host=* | --hos=* | --ho=*)
461 host="$ac_optarg" ;;
462
463 -includedir | --includedir | --includedi | --included | --include \
464 | --includ | --inclu | --incl | --inc)
465 ac_prev=includedir ;;
466 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
467 | --includ=* | --inclu=* | --incl=* | --inc=*)
468 includedir="$ac_optarg" ;;
469
470 -infodir | --infodir | --infodi | --infod | --info | --inf)
471 ac_prev=infodir ;;
472 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
473 infodir="$ac_optarg" ;;
474
475 -libdir | --libdir | --libdi | --libd)
476 ac_prev=libdir ;;
477 -libdir=* | --libdir=* | --libdi=* | --libd=*)
478 libdir="$ac_optarg" ;;
479
480 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
481 | --libexe | --libex | --libe)
482 ac_prev=libexecdir ;;
483 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
484 | --libexe=* | --libex=* | --libe=*)
485 libexecdir="$ac_optarg" ;;
486
487 -localstatedir | --localstatedir | --localstatedi | --localstated \
488 | --localstate | --localstat | --localsta | --localst \
489 | --locals | --local | --loca | --loc | --lo)
490 ac_prev=localstatedir ;;
491 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
492 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
493 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
494 localstatedir="$ac_optarg" ;;
495
496 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
497 ac_prev=mandir ;;
498 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
499 mandir="$ac_optarg" ;;
500
501 -nfp | --nfp | --nf)
502 # Obsolete; use --without-fp.
503 with_fp=no ;;
504
505 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
506 | --no-cr | --no-c)
507 no_create=yes ;;
508
509 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
510 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
511 no_recursion=yes ;;
512
513 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
514 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
515 | --oldin | --oldi | --old | --ol | --o)
516 ac_prev=oldincludedir ;;
517 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
518 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
519 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
520 oldincludedir="$ac_optarg" ;;
521
522 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
523 ac_prev=prefix ;;
524 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
525 prefix="$ac_optarg" ;;
526
527 -program-prefix | --program-prefix | --program-prefi | --program-pref \
528 | --program-pre | --program-pr | --program-p)
529 ac_prev=program_prefix ;;
530 -program-prefix=* | --program-prefix=* | --program-prefi=* \
531 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
532 program_prefix="$ac_optarg" ;;
533
534 -program-suffix | --program-suffix | --program-suffi | --program-suff \
535 | --program-suf | --program-su | --program-s)
536 ac_prev=program_suffix ;;
537 -program-suffix=* | --program-suffix=* | --program-suffi=* \
538 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
539 program_suffix="$ac_optarg" ;;
540
541 -program-transform-name | --program-transform-name \
542 | --program-transform-nam | --program-transform-na \
543 | --program-transform-n | --program-transform- \
544 | --program-transform | --program-transfor \
545 | --program-transfo | --program-transf \
546 | --program-trans | --program-tran \
547 | --progr-tra | --program-tr | --program-t)
548 ac_prev=program_transform_name ;;
549 -program-transform-name=* | --program-transform-name=* \
550 | --program-transform-nam=* | --program-transform-na=* \
551 | --program-transform-n=* | --program-transform-=* \
552 | --program-transform=* | --program-transfor=* \
553 | --program-transfo=* | --program-transf=* \
554 | --program-trans=* | --program-tran=* \
555 | --progr-tra=* | --program-tr=* | --program-t=*)
556 program_transform_name="$ac_optarg" ;;
557
558 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
559 | -silent | --silent | --silen | --sile | --sil)
560 silent=yes ;;
561
562 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
563 ac_prev=sbindir ;;
564 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
565 | --sbi=* | --sb=*)
566 sbindir="$ac_optarg" ;;
567
568 -sharedstatedir | --sharedstatedir | --sharedstatedi \
569 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
570 | --sharedst | --shareds | --shared | --share | --shar \
571 | --sha | --sh)
572 ac_prev=sharedstatedir ;;
573 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
574 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
575 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
576 | --sha=* | --sh=*)
577 sharedstatedir="$ac_optarg" ;;
578
579 -site | --site | --sit)
580 ac_prev=site ;;
581 -site=* | --site=* | --sit=*)
582 site="$ac_optarg" ;;
583
584 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
585 ac_prev=srcdir ;;
586 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
587 srcdir="$ac_optarg" ;;
588
589 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
590 | --syscon | --sysco | --sysc | --sys | --sy)
591 ac_prev=sysconfdir ;;
592 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
593 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
594 sysconfdir="$ac_optarg" ;;
595
596 -target | --target | --targe | --targ | --tar | --ta | --t)
597 ac_prev=target ;;
598 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
599 target="$ac_optarg" ;;
600
601 -v | -verbose | --verbose | --verbos | --verbo | --verb)
602 verbose=yes ;;
603
604 -version | --version | --versio | --versi | --vers)
bdad4e7e 605 echo "configure generated by autoconf version 2.14"
10f2d63a
VZ
606 exit 0 ;;
607
608 -with-* | --with-*)
609 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
610 # Reject names that are not valid shell variable names.
611 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
612 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
613 fi
614 ac_package=`echo $ac_package| sed 's/-/_/g'`
615 case "$ac_option" in
616 *=*) ;;
617 *) ac_optarg=yes ;;
618 esac
619 eval "with_${ac_package}='$ac_optarg'" ;;
620
621 -without-* | --without-*)
622 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
623 # Reject names that are not valid shell variable names.
624 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
625 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
626 fi
627 ac_package=`echo $ac_package| sed 's/-/_/g'`
628 eval "with_${ac_package}=no" ;;
629
630 --x)
631 # Obsolete; use --with-x.
632 with_x=yes ;;
633
634 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
635 | --x-incl | --x-inc | --x-in | --x-i)
636 ac_prev=x_includes ;;
637 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
638 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
639 x_includes="$ac_optarg" ;;
640
641 -x-libraries | --x-libraries | --x-librarie | --x-librari \
642 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
643 ac_prev=x_libraries ;;
644 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
645 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
646 x_libraries="$ac_optarg" ;;
647
648 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
649 ;;
650
651 *)
652 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
653 echo "configure: warning: $ac_option: invalid host type" 1>&2
654 fi
655 if test "x$nonopt" != xNONE; then
656 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
657 fi
658 nonopt="$ac_option"
659 ;;
660
661 esac
662done
663
664if test -n "$ac_prev"; then
665 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
666fi
667
668trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
669
670# File descriptor usage:
671# 0 standard input
672# 1 file creation
673# 2 errors and warnings
674# 3 some systems may open it to /dev/tty
675# 4 used on the Kubota Titan
676# 6 checking for... messages and results
677# 5 compiler messages saved in config.log
678if test "$silent" = yes; then
679 exec 6>/dev/null
680else
681 exec 6>&1
682fi
683exec 5>./config.log
684
685echo "\
686This file contains any messages produced by compilers while
687running configure, to aid debugging if configure makes a mistake.
688" 1>&5
689
690# Strip out --no-create and --no-recursion so they do not pile up.
691# Also quote any args containing shell metacharacters.
692ac_configure_args=
693for ac_arg
694do
695 case "$ac_arg" in
696 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
697 | --no-cr | --no-c) ;;
698 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
699 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
700 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
701 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
702 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
703 esac
704done
705
706# NLS nuisances.
707# Only set these to C if already set. These must not be set unconditionally
708# because not all systems understand e.g. LANG=C (notably SCO).
709# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
710# Non-C LC_CTYPE values break the ctype check.
711if test "${LANG+set}" = set; then LANG=C; export LANG; fi
712if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
713if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
714if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
715
716# confdefs.h avoids OS command line length limits that DEFS can exceed.
717rm -rf conftest* confdefs.h
718# AIX cpp loses on an empty file, so make sure it contains at least a newline.
719echo > confdefs.h
720
721# A filename unique to this package, relative to the directory that
722# configure is in, which we can look for to find out if srcdir is correct.
723ac_unique_file=wx-config.in
724
725# Find the source files, if location was not specified.
726if test -z "$srcdir"; then
727 ac_srcdir_defaulted=yes
728 # Try the directory containing this script, then its parent.
729 ac_prog=$0
730 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
731 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
732 srcdir=$ac_confdir
733 if test ! -r $srcdir/$ac_unique_file; then
734 srcdir=..
735 fi
736else
737 ac_srcdir_defaulted=no
738fi
739if test ! -r $srcdir/$ac_unique_file; then
740 if test "$ac_srcdir_defaulted" = yes; then
741 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
742 else
743 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
744 fi
745fi
746srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
747
748# Prefer explicitly selected file to automatically selected ones.
749if test -z "$CONFIG_SITE"; then
750 if test "x$prefix" != xNONE; then
751 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
752 else
753 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
754 fi
755fi
756for ac_site_file in $CONFIG_SITE; do
757 if test -r "$ac_site_file"; then
758 echo "loading site script $ac_site_file"
759 . "$ac_site_file"
760 fi
761done
762
763if test -r "$cache_file"; then
764 echo "loading cache $cache_file"
765 . $cache_file
766else
767 echo "creating cache $cache_file"
768 > $cache_file
769fi
770
771ac_ext=c
772# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
773ac_cpp='$CPP $CPPFLAGS'
774ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
775ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
776cross_compiling=$ac_cv_prog_cc_cross
777
778ac_exeext=
779ac_objext=o
780if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
781 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
782 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
783 ac_n= ac_c='
784' ac_t=' '
785 else
786 ac_n=-n ac_c= ac_t=
787 fi
788else
789 ac_n= ac_c='\c' ac_t=
790fi
791
792
793
7c66a493
VZ
794ac_aux_dir=
795for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
796 if test -f $ac_dir/install-sh; then
797 ac_aux_dir=$ac_dir
798 ac_install_sh="$ac_aux_dir/install-sh -c"
799 break
800 elif test -f $ac_dir/install.sh; then
801 ac_aux_dir=$ac_dir
802 ac_install_sh="$ac_aux_dir/install.sh -c"
803 break
804 fi
805done
806if test -z "$ac_aux_dir"; then
807 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
808fi
809ac_config_guess=$ac_aux_dir/config.guess
810ac_config_sub=$ac_aux_dir/config.sub
811ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
812
813
814# Do some error checking and defaulting for the host and target type.
815# The inputs are:
816# configure --host=HOST --target=TARGET --build=BUILD NONOPT
817#
818# The rules are:
819# 1. You are not allowed to specify --host, --target, and nonopt at the
820# same time.
821# 2. Host defaults to nonopt.
822# 3. If nonopt is not specified, then host defaults to the current host,
823# as determined by config.guess.
824# 4. Target and build default to nonopt.
825# 5. If nonopt is not specified, then target and build default to host.
826
827# The aliases save the names the user supplied, while $host etc.
828# will get canonicalized.
829case $host---$target---$nonopt in
830NONE---*---* | *---NONE---* | *---*---NONE) ;;
831*) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
832esac
833
834
835# Make sure we can run config.sub.
836if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
837else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
838fi
839
840echo $ac_n "checking host system type""... $ac_c" 1>&6
bdad4e7e 841echo "configure:842: checking host system type" >&5
7c66a493
VZ
842
843host_alias=$host
844case "$host_alias" in
845NONE)
846 case $nonopt in
847 NONE)
848 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
849 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
850 fi ;;
851 *) host_alias=$nonopt ;;
852 esac ;;
853esac
854
855host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
856host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
857host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
858host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
859echo "$ac_t""$host" 1>&6
860
861echo $ac_n "checking target system type""... $ac_c" 1>&6
bdad4e7e 862echo "configure:863: checking target system type" >&5
7c66a493
VZ
863
864target_alias=$target
865case "$target_alias" in
866NONE)
867 case $nonopt in
868 NONE) target_alias=$host_alias ;;
869 *) target_alias=$nonopt ;;
870 esac ;;
871esac
872
873target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
874target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
875target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
876target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
877echo "$ac_t""$target" 1>&6
878
879echo $ac_n "checking build system type""... $ac_c" 1>&6
bdad4e7e 880echo "configure:881: checking build system type" >&5
7c66a493
VZ
881
882build_alias=$build
883case "$build_alias" in
884NONE)
885 case $nonopt in
886 NONE) build_alias=$host_alias ;;
887 *) build_alias=$nonopt ;;
888 esac ;;
889esac
890
891build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
892build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
893build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
894build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
895echo "$ac_t""$build" 1>&6
896
897test "$host_alias" != "$target_alias" &&
898 test "$program_prefix$program_suffix$program_transform_name" = \
899 NONENONEs,x,x, &&
900 program_prefix=${target_alias}-
901
902
10f2d63a
VZ
903
904WX_MAJOR_VERSION_NUMBER=2
905WX_MINOR_VERSION_NUMBER=1
cc977e5f 906WX_RELEASE_NUMBER=14
10f2d63a
VZ
907
908WX_INTERFACE_AGE=0
909WX_BINARY_AGE=0
910
911WX_VERSION=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER.$WX_RELEASE_NUMBER
912
913WX_RELEASE=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER
914WX_CURRENT=`expr $WX_RELEASE_NUMBER - $WX_INTERFACE_AGE`
915WX_REVISION=$WX_INTERFACE_AGE
916WX_AGE=`expr $WX_BINARY_AGE - $WX_INTERFACE_AGE`
917
918
919USE_UNIX=1
920USE_WIN32=0
b12915c1
VZ
921USE_BEOS=0
922
10f2d63a
VZ
923USE_LINUX=
924USE_SGI=
925USE_HPUX=
926USE_SYSV=
927USE_SVR4=
928USE_AIX=
929USE_SUN=
930USE_SOLARIS=
931USE_SUNOS=
932USE_ALPHA=
933USE_OSF=
934USE_BSD=
935USE_FREEBSD=
936USE_VMS=
937USE_ULTRIX=
938USE_CYGWIN=
939USE_MINGW=
940USE_DATA_GENERAL=
941
ab9b9eab
VZ
942NEEDS_D_REENTRANT_FOR_R_FUNCS=0
943
e07802fc 944ALL_TOOLKITS="CYGWIN GTK MINGW MOTIF WINE PM"
10f2d63a
VZ
945
946DEFAULT_wxUSE_GTK=0
947DEFAULT_wxUSE_MOTIF=0
948DEFAULT_wxUSE_MSW=0
949DEFAULT_wxUSE_WINE=0
e07802fc 950DEFAULT_wxUSE_PM=0
10f2d63a
VZ
951
952DEFAULT_DEFAULT_wxUSE_GTK=0
953DEFAULT_DEFAULT_wxUSE_MOTIF=0
954DEFAULT_DEFAULT_wxUSE_MSW=0
955DEFAULT_DEFAULT_wxUSE_WINE=0
e07802fc 956DEFAULT_DEFAULT_wxUSE_PM=0
10f2d63a 957
d6a55c4b
VZ
958PROGRAM_EXT=
959
10f2d63a
VZ
960case "${host}" in
961 *-hp-hpux* )
962 USE_HPUX=1
963 DEFAULT_DEFAULT_wxUSE_MOTIF=1
ab9b9eab 964 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
10f2d63a
VZ
965 cat >> confdefs.h <<\EOF
966#define __HPUX__ 1
967EOF
968
969 ;;
970 *-*-linux* )
971 USE_LINUX=1
972 cat >> confdefs.h <<\EOF
973#define __LINUX__ 1
974EOF
975
976 TMP=`uname -m`
977 if test "x$TMP" = "xalpha"; then
978 USE_ALPHA=1
979 cat >> confdefs.h <<\EOF
980#define __ALPHA__ 1
981EOF
982
983 fi
984 DEFAULT_DEFAULT_wxUSE_GTK=1
985 ;;
986 *-*-irix5* | *-*-irix6* )
987 USE_SGI=1
988 USE_SVR4=1
989 cat >> confdefs.h <<\EOF
990#define __SGI__ 1
991EOF
992
993 cat >> confdefs.h <<\EOF
994#define __SVR4__ 1
995EOF
996
997 DEFAULT_DEFAULT_wxUSE_MOTIF=1
998 ;;
999 *-*-solaris2* )
1000 USE_SUN=1
1001 USE_SOLARIS=1
1002 USE_SVR4=1
1003 cat >> confdefs.h <<\EOF
1004#define __SUN__ 1
1005EOF
1006
1007 cat >> confdefs.h <<\EOF
1008#define __SOLARIS__ 1
1009EOF
1010
1011 cat >> confdefs.h <<\EOF
1012#define __SVR4__ 1
1013EOF
1014
1015 DEFAULT_DEFAULT_wxUSE_MOTIF=1
ab9b9eab 1016 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
10f2d63a
VZ
1017 ;;
1018 *-*-sunos4* )
1019 USE_SUN=1
1020 USE_SUNOS=1
1021 USE_BSD=1
1022 cat >> confdefs.h <<\EOF
1023#define __SUN__ 1
1024EOF
1025
1026 cat >> confdefs.h <<\EOF
1027#define __SUNOS__ 1
1028EOF
1029
1030 cat >> confdefs.h <<\EOF
1031#define __BSD__ 1
1032EOF
1033
1034 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1035 ;;
1036 *-*-freebsd* | *-*-netbsd*)
1037 USE_BSD=1
1038 USE_FREEBSD=1
1039 cat >> confdefs.h <<\EOF
1040#define __FREEBSD__ 1
1041EOF
1042
1043 cat >> confdefs.h <<\EOF
1044#define __BSD__ 1
1045EOF
1046
1047 DEFAULT_DEFAULT_wxUSE_GTK=1
1048 ;;
1049 *-*-osf* )
1050 USE_ALPHA=1
1051 USE_OSF=1
1052 cat >> confdefs.h <<\EOF
1053#define __ALPHA__ 1
1054EOF
1055
1056 cat >> confdefs.h <<\EOF
1057#define __OSF__ 1
1058EOF
1059
1060 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1061 ;;
1062 *-*-dgux5* )
1063 USE_ALPHA=1
1064 USE_SVR4=1
1065 cat >> confdefs.h <<\EOF
1066#define __ALPHA__ 1
1067EOF
1068
1069 cat >> confdefs.h <<\EOF
1070#define __SVR4__ 1
1071EOF
1072
1073 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1074 ;;
1075 *-*-sysv5* )
1076 USE_SYSV=1
1077 USE_SVR4=1
1078 cat >> confdefs.h <<\EOF
1079#define __SYSV__ 1
1080EOF
1081
1082 cat >> confdefs.h <<\EOF
1083#define __SVR4__ 1
1084EOF
1085
1086 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1087 ;;
1088 *-*-aix* )
1089 USE_AIX=1
1090 USE_SYSV=1
1091 USE_SVR4=1
1092 cat >> confdefs.h <<\EOF
1093#define __AIX__ 1
1094EOF
1095
1096 cat >> confdefs.h <<\EOF
1097#define __SYSV__ 1
1098EOF
1099
1100 cat >> confdefs.h <<\EOF
1101#define __SVR4__ 1
1102EOF
1103
1104 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1105 ;;
1106
7eef8db2 1107 *-*-cygwin32* | *-*-mingw32* )
10f2d63a
VZ
1108 USE_UNIX=0
1109 USE_WIN32=1
1110 cat >> confdefs.h <<\EOF
1111#define __WIN32__ 1
1112EOF
1113
1114 cat >> confdefs.h <<\EOF
1115#define __WIN95__ 1
1116EOF
1117
1118 cat >> confdefs.h <<\EOF
1119#define __WINDOWS__ 1
1120EOF
1121
1122 cat >> confdefs.h <<\EOF
1123#define __GNUWIN32__ 1
1124EOF
1125
1126 cat >> confdefs.h <<\EOF
1127#define STRICT 1
1128EOF
1129
1130 cat >> confdefs.h <<\EOF
1131#define WINVER 0x0400
1132EOF
1133
cf27ef00 1134 PROGRAM_EXT=".exe"
10f2d63a
VZ
1135 DEFAULT_DEFAULT_wxUSE_MSW=1
1136 ;;
1137
1138 *-pc-os2_emx )
1139 cat >> confdefs.h <<\EOF
1140#define __EMX__ 1
1141EOF
1142
cf27ef00 1143 PROGRAM_EXT=".exe"
e07802fc 1144 DEFAULT_DEFAULT_wxUSE_PM=1
10f2d63a
VZ
1145 ;;
1146
b12915c1
VZ
1147 *-*-beos* )
1148 USE_BEOS=1
1149 cat >> confdefs.h <<\EOF
1150#define __BEOS__ 1
1151EOF
1152
1153 ;;
1154
10f2d63a
VZ
1155 *)
1156 { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; }
1157esac
1158
1159if test "$USE_UNIX" = 1 ; then
b12915c1
VZ
1160 wxUSE_UNIX=yes
1161 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1162#define __UNIX__ 1
1163EOF
1164
b12915c1
VZ
1165
1166 SRC_SUBDIRS="$SRC_SUBDIRS unix"
1167 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS unix"
1168fi
1169
1170if test "$USE_BEOS" = 1; then
1171 SRC_SUBDIRS="$SRC_SUBDIRS be"
1172 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS be"
10f2d63a
VZ
1173fi
1174
1175if test "$USE_LINUX" = 1; then
1176 echo $ac_n "checking for gettext in -lc""... $ac_c" 1>&6
bdad4e7e 1177echo "configure:1178: checking for gettext in -lc" >&5
10f2d63a
VZ
1178ac_lib_var=`echo c'_'gettext | sed 'y%./+-%__p_%'`
1179if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1180 echo $ac_n "(cached) $ac_c" 1>&6
1181else
1182 ac_save_LIBS="$LIBS"
1183LIBS="-lc $LIBS"
1184cat > conftest.$ac_ext <<EOF
bdad4e7e 1185#line 1186 "configure"
10f2d63a
VZ
1186#include "confdefs.h"
1187/* Override any gcc2 internal prototype to avoid an error. */
1188/* We use char because int might match the return type of a gcc2
1189 builtin and then its argument prototype would still apply. */
1190char gettext();
1191
1192int main() {
1193gettext()
1194; return 0; }
1195EOF
bdad4e7e 1196if { (eval echo configure:1197: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
1197 rm -rf conftest*
1198 eval "ac_cv_lib_$ac_lib_var=yes"
1199else
1200 echo "configure: failed program was:" >&5
1201 cat conftest.$ac_ext >&5
1202 rm -rf conftest*
1203 eval "ac_cv_lib_$ac_lib_var=no"
1204fi
1205rm -f conftest*
1206LIBS="$ac_save_LIBS"
1207
1208fi
1209if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1210 echo "$ac_t""yes" 1>&6
1211 cat >> confdefs.h <<\EOF
1212#define wxHAVE_GLIBC2 1
1213EOF
1214
1215else
1216 echo "$ac_t""no" 1>&6
1217fi
1218
1219fi
1220
1221
1222
1223
1224 wx_arg_cache_file="configarg.cache"
1225 echo "loading argument cache $wx_arg_cache_file"
1226 rm -f ${wx_arg_cache_file}.tmp
1227 touch ${wx_arg_cache_file}.tmp
1228 touch ${wx_arg_cache_file}
1229
1230
1231DEBUG_CONFIGURE=0
1232if test $DEBUG_CONFIGURE = 1; then
1233 DEFAULT_wxUSE_THREADS=yes
1234
1235 DEFAULT_wxUSE_SHARED=yes
00cf1208 1236 DEFAULT_wxUSE_BURNT_NAME=no
10f2d63a
VZ
1237 DEFAULT_wxUSE_OPTIMISE=yes
1238 DEFAULT_wxUSE_PROFILE=no
1239 DEFAULT_wxUSE_NO_DEPS=no
1240 DEFAULT_wxUSE_NO_RTTI=no
1241 DEFAULT_wxUSE_NO_EXCEPTIONS=no
1242 DEFAULT_wxUSE_PERMISSIVE=no
1243 DEFAULT_wxUSE_DEBUG_FLAG=yes
1244 DEFAULT_wxUSE_DEBUG_INFO=yes
1245 DEFAULT_wxUSE_DEBUG_GDB=yes
1246 DEFAULT_wxUSE_MEM_TRACING=no
1247 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1248 DEFAULT_wxUSE_DMALLOC=no
1249 DEFAULT_wxUSE_APPLE_IEEE=no
1250
1251 DEFAULT_wxUSE_LOG=yes
1252
1253 DEFAULT_wxUSE_GUI=yes
1254
1255 DEFAULT_wxUSE_ZLIB=no
1256 DEFAULT_wxUSE_LIBPNG=no
1257 DEFAULT_wxUSE_LIBJPEG=no
c7a2bf27 1258 DEFAULT_wxUSE_LIBTIFF=no
10f2d63a 1259 DEFAULT_wxUSE_ODBC=no
bdad4e7e 1260 DEFAULT_wxUSE_OPENGL=no
10f2d63a
VZ
1261
1262 DEFAULT_wxUSE_STD_IOSTREAM=no
1263 DEFAULT_wxUSE_FILE=no
1264 DEFAULT_wxUSE_TEXTFILE=no
1265 DEFAULT_wxUSE_TIMEDATE=no
1266 DEFAULT_wxUSE_WAVE=no
1267 DEFAULT_wxUSE_INTL=no
1268 DEFAULT_wxUSE_CONFIG=no
1269 DEFAULT_wxUSE_STREAMS=no
1270 DEFAULT_wxUSE_SOCKETS=no
1271 DEFAULT_wxUSE_DIALUP_MANAGER=no
1272 DEFAULT_wxUSE_SERIAL=no
1273 DEFAULT_wxUSE_JOYSTICK=no
1274 DEFAULT_wxUSE_DYNLIB_CLASS=no
1275 DEFAULT_wxUSE_LONGLONG=no
1276
1277 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
1278 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
1279 DEFAULT_wxUSE_POSTSCRIPT=no
1280
1281 DEFAULT_wxUSE_X_RESOURCES=no
1282 DEFAULT_wxUSE_CLIPBOARD=no
1283 DEFAULT_wxUSE_TOOLTIPS=no
1284 DEFAULT_wxUSE_DRAG_AND_DROP=no
1285 DEFAULT_wxUSE_SPLINES=no
1286
1287 DEFAULT_wxUSE_MDI_ARCHITECTURE=no
1288 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
1289 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
1290
1291 DEFAULT_wxUSE_PROLOGIO=no
1292 DEFAULT_wxUSE_RESOURCES=no
1293 DEFAULT_wxUSE_CONSTRAINTS=no
1294 DEFAULT_wxUSE_IPC=no
1295 DEFAULT_wxUSE_HELP=no
1296 DEFAULT_wxUSE_WXTREE=no
1297 DEFAULT_wxUSE_METAFILE=no
1298
1299 DEFAULT_wxUSE_COMMONDLGS=no
1300 DEFAULT_wxUSE_DIRDLG=no
1301 DEFAULT_wxUSE_TEXTDLG=no
1302 DEFAULT_wxUSE_STARTUP_TIPS=no
1303 DEFAULT_wxUSE_PROGRESSDLG=no
1304 DEFAULT_wxUSE_MINIFRAME=no
1305 DEFAULT_wxUSE_HTML=no
24528b0c 1306 DEFAULT_wxUSE_FILESYSTEM=no
10f2d63a
VZ
1307 DEFAULT_wxUSE_FS_INET=no
1308 DEFAULT_wxUSE_FS_ZIP=no
1309 DEFAULT_wxUSE_BUSYINFO=no
1310 DEFAULT_wxUSE_ZIPSTREAM=no
1311 DEFAULT_wxUSE_VALIDATORS=yes
1312
1313 DEFAULT_wxUSE_ACCEL=no
1314 DEFAULT_wxUSE_CARET=no
1315 DEFAULT_wxUSE_BMPBUTTON=no
1316 DEFAULT_wxUSE_CHECKBOX=no
1317 DEFAULT_wxUSE_CHECKLST=no
1318 DEFAULT_wxUSE_CHOICE=yes
1319 DEFAULT_wxUSE_COMBOBOX=no
1320 DEFAULT_wxUSE_GAUGE=no
1321 DEFAULT_wxUSE_GRID=no
1322 DEFAULT_wxUSE_NEW_GRID=no
1323 DEFAULT_wxUSE_IMAGLIST=no
1324 DEFAULT_wxUSE_LISTBOX=no
1325 DEFAULT_wxUSE_LISTCTRL=no
1326 DEFAULT_wxUSE_NOTEBOOK=no
9b33fe02 1327 DEFAULT_wxUSE_PLOT=no
10f2d63a
VZ
1328 DEFAULT_wxUSE_RADIOBOX=no
1329 DEFAULT_wxUSE_RADIOBTN=no
1330 DEFAULT_wxUSE_SASH=no
1331 DEFAULT_wxUSE_SCROLLBAR=no
1332 DEFAULT_wxUSE_SLIDER=no
1333 DEFAULT_wxUSE_SPINBTN=no
56cfaa52 1334 DEFAULT_wxUSE_SPINCTRL=no
10f2d63a
VZ
1335 DEFAULT_wxUSE_SPLITTER=no
1336 DEFAULT_wxUSE_STATBMP=no
1337 DEFAULT_wxUSE_STATBOX=no
1338 DEFAULT_wxUSE_STATLINE=no
1339 DEFAULT_wxUSE_STATUSBAR=yes
1340 DEFAULT_wxUSE_TABDIALOG=no
1341 DEFAULT_wxUSE_TOOLBAR=no
360d6699
VZ
1342 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
1343 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
10f2d63a
VZ
1344 DEFAULT_wxUSE_TREECTRL=no
1345
1346 DEFAULT_wxUSE_UNICODE=no
1347 DEFAULT_wxUSE_WCSRTOMBS=no
1348
1349 DEFAULT_wxUSE_GIF=no
1350 DEFAULT_wxUSE_PCX=no
1351 DEFAULT_wxUSE_PNM=no
1352else
1353 DEFAULT_wxUSE_THREADS=yes
1354
1355 DEFAULT_wxUSE_SHARED=yes
00cf1208 1356 DEFAULT_wxUSE_BURNT_NAME=no
10f2d63a
VZ
1357 DEFAULT_wxUSE_OPTIMISE=yes
1358 DEFAULT_wxUSE_PROFILE=no
1359 DEFAULT_wxUSE_NO_DEPS=no
1360 DEFAULT_wxUSE_NO_RTTI=no
1361 DEFAULT_wxUSE_NO_EXCEPTIONS=no
1362 DEFAULT_wxUSE_PERMISSIVE=no
1363 DEFAULT_wxUSE_DEBUG_FLAG=no
1364 DEFAULT_wxUSE_DEBUG_INFO=no
1365 DEFAULT_wxUSE_DEBUG_GDB=no
1366 DEFAULT_wxUSE_MEM_TRACING=no
1367 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1368 DEFAULT_wxUSE_DMALLOC=no
1369 DEFAULT_wxUSE_APPLE_IEEE=yes
1370
1371 DEFAULT_wxUSE_LOG=yes
1372
1373 DEFAULT_wxUSE_GUI=yes
1374
1375 DEFAULT_wxUSE_ZLIB=yes
1376 DEFAULT_wxUSE_LIBPNG=yes
1377 DEFAULT_wxUSE_LIBJPEG=yes
b47c832e 1378 DEFAULT_wxUSE_LIBTIFF=yes
16b52fa1 1379 DEFAULT_wxUSE_ODBC=no
bdad4e7e 1380 DEFAULT_wxUSE_OPENGL=no
10f2d63a
VZ
1381
1382 DEFAULT_wxUSE_STD_IOSTREAM=no
1383 DEFAULT_wxUSE_FILE=yes
1384 DEFAULT_wxUSE_TEXTFILE=yes
1385 DEFAULT_wxUSE_TIMEDATE=yes
1386 DEFAULT_wxUSE_WAVE=no
1387 DEFAULT_wxUSE_INTL=yes
1388 DEFAULT_wxUSE_CONFIG=yes
1389 DEFAULT_wxUSE_STREAMS=yes
1390 DEFAULT_wxUSE_SOCKETS=yes
1391 DEFAULT_wxUSE_DIALUP_MANAGER=yes
1392 DEFAULT_wxUSE_SERIAL=yes
1393 DEFAULT_wxUSE_JOYSTICK=yes
1394 DEFAULT_wxUSE_DYNLIB_CLASS=yes
b685cd9b 1395 DEFAULT_wxUSE_LONGLONG=yes
10f2d63a
VZ
1396
1397 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
1398 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
1399 DEFAULT_wxUSE_POSTSCRIPT=yes
1400
1401 DEFAULT_wxUSE_X_RESOURCES=no
1402 DEFAULT_wxUSE_CLIPBOARD=yes
1403 DEFAULT_wxUSE_TOOLTIPS=yes
1404 DEFAULT_wxUSE_DRAG_AND_DROP=yes
1405 DEFAULT_wxUSE_SPLINES=yes
1406
1407 DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
1408 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
1409 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
1410
1411 DEFAULT_wxUSE_PROLOGIO=yes
1412 DEFAULT_wxUSE_RESOURCES=yes
1413 DEFAULT_wxUSE_CONSTRAINTS=yes
1414 DEFAULT_wxUSE_IPC=yes
1415 DEFAULT_wxUSE_HELP=yes
1416 DEFAULT_wxUSE_WXTREE=yes
1417 DEFAULT_wxUSE_METAFILE=yes
1418
1419 DEFAULT_wxUSE_COMMONDLGS=yes
1420 DEFAULT_wxUSE_DIRDLG=yes
1421 DEFAULT_wxUSE_TEXTDLG=yes
1422 DEFAULT_wxUSE_STARTUP_TIPS=yes
1423 DEFAULT_wxUSE_PROGRESSDLG=yes
1424 DEFAULT_wxUSE_MINIFRAME=yes
1425 DEFAULT_wxUSE_HTML=yes
24528b0c 1426 DEFAULT_wxUSE_FILESYSTEM=yes
10f2d63a
VZ
1427 DEFAULT_wxUSE_FS_INET=yes
1428 DEFAULT_wxUSE_FS_ZIP=yes
1429 DEFAULT_wxUSE_BUSYINFO=yes
1430 DEFAULT_wxUSE_ZIPSTREAM=yes
1431 DEFAULT_wxUSE_VALIDATORS=yes
1432
1433 DEFAULT_wxUSE_ACCEL=yes
1434 DEFAULT_wxUSE_CARET=yes
1435 DEFAULT_wxUSE_BMPBUTTON=yes
1436 DEFAULT_wxUSE_CHECKBOX=yes
1437 DEFAULT_wxUSE_CHECKLST=yes
1438 DEFAULT_wxUSE_CHOICE=yes
1439 DEFAULT_wxUSE_COMBOBOX=yes
1440 DEFAULT_wxUSE_GAUGE=yes
1441 DEFAULT_wxUSE_GRID=yes
cc977e5f 1442 DEFAULT_wxUSE_NEW_GRID=yes
10f2d63a
VZ
1443 DEFAULT_wxUSE_IMAGLIST=yes
1444 DEFAULT_wxUSE_LISTBOX=yes
1445 DEFAULT_wxUSE_LISTCTRL=yes
1446 DEFAULT_wxUSE_NOTEBOOK=yes
9b33fe02 1447 DEFAULT_wxUSE_PLOT=yes
10f2d63a
VZ
1448 DEFAULT_wxUSE_RADIOBOX=yes
1449 DEFAULT_wxUSE_RADIOBTN=yes
1450 DEFAULT_wxUSE_SASH=yes
1451 DEFAULT_wxUSE_SCROLLBAR=yes
1452 DEFAULT_wxUSE_SLIDER=yes
1453 DEFAULT_wxUSE_SPINBTN=yes
56cfaa52 1454 DEFAULT_wxUSE_SPINCTRL=yes
10f2d63a
VZ
1455 DEFAULT_wxUSE_SPLITTER=yes
1456 DEFAULT_wxUSE_STATBMP=yes
1457 DEFAULT_wxUSE_STATBOX=yes
1458 DEFAULT_wxUSE_STATLINE=yes
1459 DEFAULT_wxUSE_STATUSBAR=yes
1460 DEFAULT_wxUSE_TABDIALOG=no
1461 DEFAULT_wxUSE_TOOLBAR=yes
360d6699
VZ
1462 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
1463 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
10f2d63a
VZ
1464 DEFAULT_wxUSE_TREECTRL=yes
1465
1466 DEFAULT_wxUSE_UNICODE=no
1467 DEFAULT_wxUSE_WCSRTOMBS=no
1468
1469 DEFAULT_wxUSE_GIF=yes
1470 DEFAULT_wxUSE_PCX=yes
1471 DEFAULT_wxUSE_PNM=yes
1472fi
1473
1474
1475
1476for toolkit in `echo $ALL_TOOLKITS`; do
1477 LINE=`grep "wxUSE_$toolkit" ${wx_arg_cache_file}`
1478 if test "x$LINE" != x ; then
1479 has_toolkit_in_cache=1
1480 eval "DEFAULT_$LINE"
1481 eval "CACHE_$toolkit=1"
1482 fi
1483done
1484
1485
1486
1487 echo $ac_n "checking "for --enable-gui"""... $ac_c" 1>&6
c733b222 1488echo "configure:1489: checking "for --enable-gui"" >&5
10f2d63a
VZ
1489 no_cache=0
1490 # Check whether --enable-gui or --disable-gui was given.
1491if test "${enable_gui+set}" = set; then
1492 enableval="$enable_gui"
1493
1494 if test "$enableval" = yes; then
1495 ac_cv_use_gui='wxUSE_GUI=yes'
1496 else
1497 ac_cv_use_gui='wxUSE_GUI=no'
1498 fi
1499
1500else
1501
1502 LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
1503 if test "x$LINE" != x ; then
1504 eval "DEFAULT_$LINE"
1505 else
1506 no_cache=1
1507 fi
1508
1509 ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
1510
1511fi
1512
1513
1514 eval "$ac_cv_use_gui"
1515 if test "$no_cache" != 1; then
1516 echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
1517 fi
1518
1519 if test "$wxUSE_GUI" = yes; then
1520 echo "$ac_t""yes" 1>&6
1521 else
1522 echo "$ac_t""no" 1>&6
1523 fi
1524
1525
b12915c1 1526if test "$wxUSE_GUI" = "yes"; then
10f2d63a
VZ
1527
1528# Check whether --with-gtk or --without-gtk was given.
1529if test "${with_gtk+set}" = set; then
1530 withval="$with_gtk"
1531 wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
1532fi
1533
1534# Check whether --with-motif or --without-motif was given.
1535if test "${with_motif+set}" = set; then
1536 withval="$with_motif"
1537 wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
1538fi
1539
1540# Check whether --with-wine or --without-wine was given.
1541if test "${with_wine+set}" = set; then
1542 withval="$with_wine"
1543 wxUSE_WINE="$withval" CACHE_WINE=1 TOOLKIT_GIVEN=1
1544fi
1545
1546# Check whether --with-cygwin or --without-cygwin was given.
1547if test "${with_cygwin+set}" = set; then
1548 withval="$with_cygwin"
1549 wxUSE_CYGWIN="$withval" CACHE_CYGWIN=1 TOOLKIT_GIVEN=1
1550fi
1551
1552# Check whether --with-mingw or --without-mingw was given.
1553if test "${with_mingw+set}" = set; then
1554 withval="$with_mingw"
1555 wxUSE_MINGW="$withval" CACHE_MINGW=1 TOOLKIT_GIVEN=1
1556fi
1557
e07802fc
VZ
1558# Check whether --with-pm or --without-pm was given.
1559if test "${with_pm+set}" = set; then
1560 withval="$with_pm"
1561 wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
1562fi
1563
10f2d63a
VZ
1564
1565# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
1566if test "${with_gtk_prefix+set}" = set; then
1567 withval="$with_gtk_prefix"
1568 gtk_config_prefix="$withval"
1569else
1570 gtk_config_prefix=""
1571fi
1572
1573# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
1574if test "${with_gtk_exec_prefix+set}" = set; then
1575 withval="$with_gtk_exec_prefix"
1576 gtk_config_exec_prefix="$withval"
1577else
1578 gtk_config_exec_prefix=""
1579fi
1580
1581
1582
b12915c1 1583 echo $ac_n "checking "for --with-libpng"""... $ac_c" 1>&6
c733b222 1584echo "configure:1585: checking "for --with-libpng"" >&5
10f2d63a 1585 no_cache=0
b12915c1
VZ
1586 # Check whether --with-libpng or --without-libpng was given.
1587if test "${with_libpng+set}" = set; then
1588 withval="$with_libpng"
10f2d63a
VZ
1589
1590 if test "$withval" = yes; then
b12915c1 1591 ac_cv_use_libpng='wxUSE_LIBPNG=yes'
10f2d63a 1592 else
b12915c1 1593 ac_cv_use_libpng='wxUSE_LIBPNG=no'
10f2d63a
VZ
1594 fi
1595
1596else
1597
b12915c1 1598 LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
10f2d63a
VZ
1599 if test "x$LINE" != x ; then
1600 eval "DEFAULT_$LINE"
1601 else
1602 no_cache=1
1603 fi
1604
b12915c1 1605 ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
10f2d63a
VZ
1606
1607fi
1608
1609
b12915c1 1610 eval "$ac_cv_use_libpng"
10f2d63a 1611 if test "$no_cache" != 1; then
b12915c1 1612 echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
1613 fi
1614
b12915c1 1615 if test "$wxUSE_LIBPNG" = yes; then
10f2d63a
VZ
1616 echo "$ac_t""yes" 1>&6
1617 else
1618 echo "$ac_t""no" 1>&6
1619 fi
1620
1621
b12915c1 1622 echo $ac_n "checking "for --with-libjpeg"""... $ac_c" 1>&6
c733b222 1623echo "configure:1624: checking "for --with-libjpeg"" >&5
10f2d63a 1624 no_cache=0
b12915c1
VZ
1625 # Check whether --with-libjpeg or --without-libjpeg was given.
1626if test "${with_libjpeg+set}" = set; then
1627 withval="$with_libjpeg"
10f2d63a
VZ
1628
1629 if test "$withval" = yes; then
b12915c1 1630 ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
10f2d63a 1631 else
b12915c1 1632 ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
10f2d63a
VZ
1633 fi
1634
1635else
1636
b12915c1 1637 LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
10f2d63a
VZ
1638 if test "x$LINE" != x ; then
1639 eval "DEFAULT_$LINE"
1640 else
1641 no_cache=1
1642 fi
1643
b12915c1 1644 ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
10f2d63a
VZ
1645
1646fi
1647
1648
b12915c1 1649 eval "$ac_cv_use_libjpeg"
10f2d63a 1650 if test "$no_cache" != 1; then
b12915c1 1651 echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
1652 fi
1653
b12915c1 1654 if test "$wxUSE_LIBJPEG" = yes; then
10f2d63a
VZ
1655 echo "$ac_t""yes" 1>&6
1656 else
1657 echo "$ac_t""no" 1>&6
1658 fi
1659
1660
b12915c1 1661 echo $ac_n "checking "for --with-libtiff"""... $ac_c" 1>&6
c733b222 1662echo "configure:1663: checking "for --with-libtiff"" >&5
10f2d63a 1663 no_cache=0
b12915c1
VZ
1664 # Check whether --with-libtiff or --without-libtiff was given.
1665if test "${with_libtiff+set}" = set; then
1666 withval="$with_libtiff"
10f2d63a
VZ
1667
1668 if test "$withval" = yes; then
b12915c1 1669 ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
10f2d63a 1670 else
b12915c1 1671 ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
10f2d63a
VZ
1672 fi
1673
1674else
1675
b12915c1 1676 LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
10f2d63a
VZ
1677 if test "x$LINE" != x ; then
1678 eval "DEFAULT_$LINE"
1679 else
1680 no_cache=1
1681 fi
1682
b12915c1 1683 ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
10f2d63a
VZ
1684
1685fi
1686
1687
b12915c1 1688 eval "$ac_cv_use_libtiff"
10f2d63a 1689 if test "$no_cache" != 1; then
b12915c1 1690 echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
1691 fi
1692
b12915c1 1693 if test "$wxUSE_LIBTIFF" = yes; then
10f2d63a
VZ
1694 echo "$ac_t""yes" 1>&6
1695 else
1696 echo "$ac_t""no" 1>&6
1697 fi
1698
1699
b12915c1 1700 echo $ac_n "checking "for --with-opengl"""... $ac_c" 1>&6
c733b222 1701echo "configure:1702: checking "for --with-opengl"" >&5
10f2d63a 1702 no_cache=0
b12915c1
VZ
1703 # Check whether --with-opengl or --without-opengl was given.
1704if test "${with_opengl+set}" = set; then
1705 withval="$with_opengl"
10f2d63a
VZ
1706
1707 if test "$withval" = yes; then
b12915c1 1708 ac_cv_use_opengl='wxUSE_OPENGL=yes'
10f2d63a 1709 else
b12915c1 1710 ac_cv_use_opengl='wxUSE_OPENGL=no'
10f2d63a
VZ
1711 fi
1712
1713else
1714
b12915c1 1715 LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
10f2d63a
VZ
1716 if test "x$LINE" != x ; then
1717 eval "DEFAULT_$LINE"
1718 else
1719 no_cache=1
1720 fi
1721
b12915c1 1722 ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
10f2d63a
VZ
1723
1724fi
1725
1726
b12915c1 1727 eval "$ac_cv_use_opengl"
10f2d63a 1728 if test "$no_cache" != 1; then
b12915c1 1729 echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
1730 fi
1731
b12915c1 1732 if test "$wxUSE_OPENGL" = yes; then
10f2d63a
VZ
1733 echo "$ac_t""yes" 1>&6
1734 else
1735 echo "$ac_t""no" 1>&6
1736 fi
1737
1738
b12915c1
VZ
1739fi
1740
1741
1742 echo $ac_n "checking "for --with-dmalloc"""... $ac_c" 1>&6
c733b222 1743echo "configure:1744: checking "for --with-dmalloc"" >&5
c7a2bf27 1744 no_cache=0
b12915c1
VZ
1745 # Check whether --with-dmalloc or --without-dmalloc was given.
1746if test "${with_dmalloc+set}" = set; then
1747 withval="$with_dmalloc"
c7a2bf27
RR
1748
1749 if test "$withval" = yes; then
b12915c1 1750 ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
c7a2bf27 1751 else
b12915c1 1752 ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
c7a2bf27
RR
1753 fi
1754
1755else
1756
b12915c1 1757 LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
c7a2bf27
RR
1758 if test "x$LINE" != x ; then
1759 eval "DEFAULT_$LINE"
1760 else
1761 no_cache=1
1762 fi
1763
b12915c1 1764 ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
c7a2bf27
RR
1765
1766fi
1767
1768
b12915c1 1769 eval "$ac_cv_use_dmalloc"
c7a2bf27 1770 if test "$no_cache" != 1; then
b12915c1 1771 echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
c7a2bf27
RR
1772 fi
1773
b12915c1 1774 if test "$wxUSE_DMALLOC" = yes; then
c7a2bf27
RR
1775 echo "$ac_t""yes" 1>&6
1776 else
1777 echo "$ac_t""no" 1>&6
1778 fi
1779
1780
b12915c1 1781 echo $ac_n "checking "for --with-zlib"""... $ac_c" 1>&6
c733b222 1782echo "configure:1783: checking "for --with-zlib"" >&5
10f2d63a 1783 no_cache=0
b12915c1
VZ
1784 # Check whether --with-zlib or --without-zlib was given.
1785if test "${with_zlib+set}" = set; then
1786 withval="$with_zlib"
10f2d63a
VZ
1787
1788 if test "$withval" = yes; then
b12915c1 1789 ac_cv_use_zlib='wxUSE_ZLIB=yes'
10f2d63a 1790 else
b12915c1 1791 ac_cv_use_zlib='wxUSE_ZLIB=no'
10f2d63a
VZ
1792 fi
1793
1794else
1795
b12915c1 1796 LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
10f2d63a
VZ
1797 if test "x$LINE" != x ; then
1798 eval "DEFAULT_$LINE"
1799 else
1800 no_cache=1
1801 fi
1802
b12915c1 1803 ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
10f2d63a
VZ
1804
1805fi
1806
1807
b12915c1 1808 eval "$ac_cv_use_zlib"
10f2d63a 1809 if test "$no_cache" != 1; then
b12915c1 1810 echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
1811 fi
1812
b12915c1 1813 if test "$wxUSE_ZLIB" = yes; then
10f2d63a 1814 echo "$ac_t""yes" 1>&6
c733b222 1815 else
bdad4e7e 1816 echo "$ac_t""no" 1>&6
10f2d63a
VZ
1817 fi
1818
1819
1820 echo $ac_n "checking "for --with-odbc"""... $ac_c" 1>&6
bdad4e7e 1821echo "configure:1822: checking "for --with-odbc"" >&5
10f2d63a
VZ
1822 no_cache=0
1823 # Check whether --with-odbc or --without-odbc was given.
1824if test "${with_odbc+set}" = set; then
1825 withval="$with_odbc"
1826
1827 if test "$withval" = yes; then
1828 ac_cv_use_odbc='wxUSE_ODBC=yes'
1829 else
1830 ac_cv_use_odbc='wxUSE_ODBC=no'
1831 fi
1832
1833else
1834
1835 LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
1836 if test "x$LINE" != x ; then
1837 eval "DEFAULT_$LINE"
1838 else
1839 no_cache=1
1840 fi
1841
1842 ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
1843
1844fi
1845
1846
1847 eval "$ac_cv_use_odbc"
1848 if test "$no_cache" != 1; then
1849 echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
1850 fi
1851
1852 if test "$wxUSE_ODBC" = yes; then
1853 echo "$ac_t""yes" 1>&6
1854 else
1855 echo "$ac_t""no" 1>&6
1856 fi
1857
1858
1859
1860
1861
1862 echo $ac_n "checking "for --enable-shared"""... $ac_c" 1>&6
bdad4e7e 1863echo "configure:1864: checking "for --enable-shared"" >&5
10f2d63a
VZ
1864 no_cache=0
1865 # Check whether --enable-shared or --disable-shared was given.
1866if test "${enable_shared+set}" = set; then
1867 enableval="$enable_shared"
1868
1869 if test "$enableval" = yes; then
1870 ac_cv_use_shared='wxUSE_SHARED=yes'
1871 else
1872 ac_cv_use_shared='wxUSE_SHARED=no'
1873 fi
1874
1875else
1876
1877 LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
1878 if test "x$LINE" != x ; then
1879 eval "DEFAULT_$LINE"
1880 else
1881 no_cache=1
1882 fi
1883
1884 ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
1885
1886fi
1887
1888
1889 eval "$ac_cv_use_shared"
1890 if test "$no_cache" != 1; then
1891 echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
1892 fi
1893
1894 if test "$wxUSE_SHARED" = yes; then
1895 echo "$ac_t""yes" 1>&6
1896 else
1897 echo "$ac_t""no" 1>&6
1898 fi
1899
1900
00cf1208 1901 echo $ac_n "checking "for --enable-burnt_name"""... $ac_c" 1>&6
bdad4e7e 1902echo "configure:1903: checking "for --enable-burnt_name"" >&5
00cf1208
RR
1903 no_cache=0
1904 # Check whether --enable-burnt_name or --disable-burnt_name was given.
1905if test "${enable_burnt_name+set}" = set; then
1906 enableval="$enable_burnt_name"
1907
1908 if test "$enableval" = yes; then
1909 ac_cv_use_burnt_name='wxUSE_BURNT_NAME=yes'
1910 else
1911 ac_cv_use_burnt_name='wxUSE_BURNT_NAME=no'
1912 fi
1913
1914else
1915
1916 LINE=`grep "wxUSE_BURNT_NAME" ${wx_arg_cache_file}`
1917 if test "x$LINE" != x ; then
1918 eval "DEFAULT_$LINE"
1919 else
1920 no_cache=1
1921 fi
1922
1923 ac_cv_use_burnt_name='wxUSE_BURNT_NAME='$DEFAULT_wxUSE_BURNT_NAME
1924
1925fi
1926
1927
1928 eval "$ac_cv_use_burnt_name"
1929 if test "$no_cache" != 1; then
1930 echo $ac_cv_use_burnt_name >> ${wx_arg_cache_file}.tmp
1931 fi
1932
1933 if test "$wxUSE_BURNT_NAME" = yes; then
1934 echo "$ac_t""yes" 1>&6
1935 else
1936 echo "$ac_t""no" 1>&6
1937 fi
1938
1939
10f2d63a 1940 echo $ac_n "checking "for --enable-optimise"""... $ac_c" 1>&6
bdad4e7e 1941echo "configure:1942: checking "for --enable-optimise"" >&5
10f2d63a
VZ
1942 no_cache=0
1943 # Check whether --enable-optimise or --disable-optimise was given.
1944if test "${enable_optimise+set}" = set; then
1945 enableval="$enable_optimise"
1946
1947 if test "$enableval" = yes; then
1948 ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
1949 else
1950 ac_cv_use_optimise='wxUSE_OPTIMISE=no'
1951 fi
1952
1953else
1954
1955 LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
1956 if test "x$LINE" != x ; then
1957 eval "DEFAULT_$LINE"
1958 else
1959 no_cache=1
1960 fi
1961
1962 ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
1963
1964fi
1965
1966
1967 eval "$ac_cv_use_optimise"
1968 if test "$no_cache" != 1; then
1969 echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
1970 fi
1971
1972 if test "$wxUSE_OPTIMISE" = yes; then
1973 echo "$ac_t""yes" 1>&6
1974 else
1975 echo "$ac_t""no" 1>&6
1976 fi
1977
1978
1979 echo $ac_n "checking "for --enable-debug"""... $ac_c" 1>&6
bdad4e7e 1980echo "configure:1981: checking "for --enable-debug"" >&5
10f2d63a
VZ
1981 no_cache=0
1982 # Check whether --enable-debug or --disable-debug was given.
1983if test "${enable_debug+set}" = set; then
1984 enableval="$enable_debug"
1985
1986 if test "$enableval" = yes; then
1987 ac_cv_use_debug='wxUSE_DEBUG=yes'
1988 else
1989 ac_cv_use_debug='wxUSE_DEBUG=no'
1990 fi
1991
1992else
1993
1994 LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
1995 if test "x$LINE" != x ; then
1996 eval "DEFAULT_$LINE"
1997 else
1998 no_cache=1
1999 fi
2000
2001 ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
2002
2003fi
2004
2005
2006 eval "$ac_cv_use_debug"
2007 if test "$no_cache" != 1; then
2008 echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
2009 fi
2010
2011 if test "$wxUSE_DEBUG" = yes; then
2012 echo "$ac_t""yes" 1>&6
2013 else
2014 echo "$ac_t""no" 1>&6
2015 fi
2016
2017
2018if test "$wxUSE_DEBUG" = "yes"; then
2019 DEFAULT_wxUSE_DEBUG_FLAG=yes
2020 DEFAULT_wxUSE_DEBUG_INFO=yes
2021elif test "$wxUSE_DEBUG" = "no"; then
2022 DEFAULT_wxUSE_DEBUG_FLAG=no
2023 DEFAULT_wxUSE_DEBUG_INFO=no
2024fi
2025
2026
2027 echo $ac_n "checking "for --enable-debug_flag"""... $ac_c" 1>&6
bdad4e7e 2028echo "configure:2029: checking "for --enable-debug_flag"" >&5
10f2d63a
VZ
2029 no_cache=0
2030 # Check whether --enable-debug_flag or --disable-debug_flag was given.
2031if test "${enable_debug_flag+set}" = set; then
2032 enableval="$enable_debug_flag"
2033
2034 if test "$enableval" = yes; then
2035 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
2036 else
2037 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
2038 fi
2039
2040else
2041
2042 LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
2043 if test "x$LINE" != x ; then
2044 eval "DEFAULT_$LINE"
2045 else
2046 no_cache=1
2047 fi
2048
2049 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
2050
2051fi
2052
2053
2054 eval "$ac_cv_use_debug_flag"
2055 if test "$no_cache" != 1; then
2056 echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
2057 fi
2058
2059 if test "$wxUSE_DEBUG_FLAG" = yes; then
2060 echo "$ac_t""yes" 1>&6
2061 else
2062 echo "$ac_t""no" 1>&6
2063 fi
2064
2065
2066 echo $ac_n "checking "for --enable-debug_info"""... $ac_c" 1>&6
bdad4e7e 2067echo "configure:2068: checking "for --enable-debug_info"" >&5
10f2d63a
VZ
2068 no_cache=0
2069 # Check whether --enable-debug_info or --disable-debug_info was given.
2070if test "${enable_debug_info+set}" = set; then
2071 enableval="$enable_debug_info"
2072
2073 if test "$enableval" = yes; then
2074 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
2075 else
2076 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
2077 fi
2078
2079else
2080
2081 LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
2082 if test "x$LINE" != x ; then
2083 eval "DEFAULT_$LINE"
2084 else
2085 no_cache=1
2086 fi
2087
2088 ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
2089
2090fi
2091
2092
2093 eval "$ac_cv_use_debug_info"
2094 if test "$no_cache" != 1; then
2095 echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
2096 fi
2097
2098 if test "$wxUSE_DEBUG_INFO" = yes; then
2099 echo "$ac_t""yes" 1>&6
2100 else
2101 echo "$ac_t""no" 1>&6
2102 fi
2103
2104
2105 echo $ac_n "checking "for --enable-debug_gdb"""... $ac_c" 1>&6
bdad4e7e 2106echo "configure:2107: checking "for --enable-debug_gdb"" >&5
10f2d63a
VZ
2107 no_cache=0
2108 # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
2109if test "${enable_debug_gdb+set}" = set; then
2110 enableval="$enable_debug_gdb"
2111
2112 if test "$enableval" = yes; then
2113 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
2114 else
2115 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
2116 fi
2117
2118else
2119
2120 LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
2121 if test "x$LINE" != x ; then
2122 eval "DEFAULT_$LINE"
2123 else
2124 no_cache=1
2125 fi
2126
2127 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
2128
2129fi
2130
2131
2132 eval "$ac_cv_use_debug_gdb"
2133 if test "$no_cache" != 1; then
2134 echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
2135 fi
2136
2137 if test "$wxUSE_DEBUG_GDB" = yes; then
2138 echo "$ac_t""yes" 1>&6
2139 else
2140 echo "$ac_t""no" 1>&6
2141 fi
2142
2143
2144 echo $ac_n "checking "for --enable-debug_cntxt"""... $ac_c" 1>&6
bdad4e7e 2145echo "configure:2146: checking "for --enable-debug_cntxt"" >&5
10f2d63a
VZ
2146 no_cache=0
2147 # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
2148if test "${enable_debug_cntxt+set}" = set; then
2149 enableval="$enable_debug_cntxt"
2150
2151 if test "$enableval" = yes; then
2152 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
2153 else
2154 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
2155 fi
2156
2157else
2158
2159 LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
2160 if test "x$LINE" != x ; then
2161 eval "DEFAULT_$LINE"
2162 else
2163 no_cache=1
2164 fi
2165
2166 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
2167
2168fi
2169
2170
2171 eval "$ac_cv_use_debug_cntxt"
2172 if test "$no_cache" != 1; then
2173 echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
2174 fi
2175
2176 if test "$wxUSE_DEBUG_CONTEXT" = yes; then
2177 echo "$ac_t""yes" 1>&6
2178 else
2179 echo "$ac_t""no" 1>&6
2180 fi
2181
2182
2183 echo $ac_n "checking "for --enable-mem_tracing"""... $ac_c" 1>&6
bdad4e7e 2184echo "configure:2185: checking "for --enable-mem_tracing"" >&5
10f2d63a
VZ
2185 no_cache=0
2186 # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
2187if test "${enable_mem_tracing+set}" = set; then
2188 enableval="$enable_mem_tracing"
2189
2190 if test "$enableval" = yes; then
2191 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
2192 else
2193 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
2194 fi
2195
2196else
2197
2198 LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
2199 if test "x$LINE" != x ; then
2200 eval "DEFAULT_$LINE"
2201 else
2202 no_cache=1
2203 fi
2204
2205 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
2206
2207fi
2208
2209
2210 eval "$ac_cv_use_mem_tracing"
2211 if test "$no_cache" != 1; then
2212 echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
2213 fi
2214
2215 if test "$wxUSE_MEM_TRACING" = yes; then
2216 echo "$ac_t""yes" 1>&6
2217 else
2218 echo "$ac_t""no" 1>&6
2219 fi
2220
2221
2222 echo $ac_n "checking "for --enable-profile"""... $ac_c" 1>&6
bdad4e7e 2223echo "configure:2224: checking "for --enable-profile"" >&5
10f2d63a
VZ
2224 no_cache=0
2225 # Check whether --enable-profile or --disable-profile was given.
2226if test "${enable_profile+set}" = set; then
2227 enableval="$enable_profile"
2228
2229 if test "$enableval" = yes; then
2230 ac_cv_use_profile='wxUSE_PROFILE=yes'
2231 else
2232 ac_cv_use_profile='wxUSE_PROFILE=no'
2233 fi
2234
2235else
2236
2237 LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
2238 if test "x$LINE" != x ; then
2239 eval "DEFAULT_$LINE"
2240 else
2241 no_cache=1
2242 fi
2243
2244 ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
2245
2246fi
2247
2248
2249 eval "$ac_cv_use_profile"
2250 if test "$no_cache" != 1; then
2251 echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
2252 fi
2253
2254 if test "$wxUSE_PROFILE" = yes; then
2255 echo "$ac_t""yes" 1>&6
2256 else
2257 echo "$ac_t""no" 1>&6
2258 fi
2259
2260
2261 echo $ac_n "checking "for --enable-no_rtti"""... $ac_c" 1>&6
bdad4e7e 2262echo "configure:2263: checking "for --enable-no_rtti"" >&5
10f2d63a
VZ
2263 no_cache=0
2264 # Check whether --enable-no_rtti or --disable-no_rtti was given.
2265if test "${enable_no_rtti+set}" = set; then
2266 enableval="$enable_no_rtti"
2267
2268 if test "$enableval" = yes; then
2269 ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
2270 else
2271 ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
2272 fi
2273
2274else
2275
2276 LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
2277 if test "x$LINE" != x ; then
2278 eval "DEFAULT_$LINE"
2279 else
2280 no_cache=1
2281 fi
2282
2283 ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
2284
2285fi
2286
2287
2288 eval "$ac_cv_use_no_rtti"
2289 if test "$no_cache" != 1; then
2290 echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
2291 fi
2292
2293 if test "$wxUSE_NO_RTTI" = yes; then
2294 echo "$ac_t""yes" 1>&6
2295 else
2296 echo "$ac_t""no" 1>&6
2297 fi
2298
2299
2300 echo $ac_n "checking "for --enable-no_exceptions"""... $ac_c" 1>&6
bdad4e7e 2301echo "configure:2302: checking "for --enable-no_exceptions"" >&5
10f2d63a
VZ
2302 no_cache=0
2303 # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
2304if test "${enable_no_exceptions+set}" = set; then
2305 enableval="$enable_no_exceptions"
2306
2307 if test "$enableval" = yes; then
2308 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
2309 else
2310 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
2311 fi
2312
2313else
2314
2315 LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
2316 if test "x$LINE" != x ; then
2317 eval "DEFAULT_$LINE"
2318 else
2319 no_cache=1
2320 fi
2321
2322 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
2323
2324fi
2325
2326
2327 eval "$ac_cv_use_no_exceptions"
2328 if test "$no_cache" != 1; then
2329 echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
2330 fi
2331
2332 if test "$wxUSE_NO_EXCEPTIONS" = yes; then
2333 echo "$ac_t""yes" 1>&6
2334 else
2335 echo "$ac_t""no" 1>&6
2336 fi
2337
2338
2339 echo $ac_n "checking "for --enable-permissive"""... $ac_c" 1>&6
bdad4e7e 2340echo "configure:2341: checking "for --enable-permissive"" >&5
10f2d63a
VZ
2341 no_cache=0
2342 # Check whether --enable-permissive or --disable-permissive was given.
2343if test "${enable_permissive+set}" = set; then
2344 enableval="$enable_permissive"
2345
2346 if test "$enableval" = yes; then
2347 ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
2348 else
2349 ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
2350 fi
2351
2352else
2353
2354 LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
2355 if test "x$LINE" != x ; then
2356 eval "DEFAULT_$LINE"
2357 else
2358 no_cache=1
2359 fi
2360
2361 ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
2362
2363fi
2364
2365
2366 eval "$ac_cv_use_permissive"
2367 if test "$no_cache" != 1; then
2368 echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
2369 fi
2370
2371 if test "$wxUSE_PERMISSIVE" = yes; then
2372 echo "$ac_t""yes" 1>&6
2373 else
2374 echo "$ac_t""no" 1>&6
2375 fi
2376
2377
2378 echo $ac_n "checking "for --enable-no_deps"""... $ac_c" 1>&6
bdad4e7e 2379echo "configure:2380: checking "for --enable-no_deps"" >&5
10f2d63a
VZ
2380 no_cache=0
2381 # Check whether --enable-no_deps or --disable-no_deps was given.
2382if test "${enable_no_deps+set}" = set; then
2383 enableval="$enable_no_deps"
2384
2385 if test "$enableval" = yes; then
2386 ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
2387 else
2388 ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
2389 fi
2390
2391else
2392
2393 LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
2394 if test "x$LINE" != x ; then
2395 eval "DEFAULT_$LINE"
2396 else
2397 no_cache=1
2398 fi
2399
2400 ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
2401
2402fi
2403
2404
2405 eval "$ac_cv_use_no_deps"
2406 if test "$no_cache" != 1; then
2407 echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
2408 fi
2409
2410 if test "$wxUSE_NO_DEPS" = yes; then
2411 echo "$ac_t""yes" 1>&6
2412 else
2413 echo "$ac_t""no" 1>&6
2414 fi
2415
2416
2417
2418
2419 echo $ac_n "checking "for --enable-intl"""... $ac_c" 1>&6
bdad4e7e 2420echo "configure:2421: checking "for --enable-intl"" >&5
10f2d63a
VZ
2421 no_cache=0
2422 # Check whether --enable-intl or --disable-intl was given.
2423if test "${enable_intl+set}" = set; then
2424 enableval="$enable_intl"
2425
2426 if test "$enableval" = yes; then
2427 ac_cv_use_intl='wxUSE_INTL=yes'
2428 else
2429 ac_cv_use_intl='wxUSE_INTL=no'
2430 fi
2431
2432else
2433
2434 LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
2435 if test "x$LINE" != x ; then
2436 eval "DEFAULT_$LINE"
2437 else
2438 no_cache=1
2439 fi
2440
2441 ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
2442
2443fi
2444
2445
2446 eval "$ac_cv_use_intl"
2447 if test "$no_cache" != 1; then
2448 echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
2449 fi
2450
2451 if test "$wxUSE_INTL" = yes; then
2452 echo "$ac_t""yes" 1>&6
2453 else
2454 echo "$ac_t""no" 1>&6
2455 fi
2456
2457
2458 echo $ac_n "checking "for --enable-config"""... $ac_c" 1>&6
bdad4e7e 2459echo "configure:2460: checking "for --enable-config"" >&5
10f2d63a
VZ
2460 no_cache=0
2461 # Check whether --enable-config or --disable-config was given.
2462if test "${enable_config+set}" = set; then
2463 enableval="$enable_config"
2464
2465 if test "$enableval" = yes; then
2466 ac_cv_use_config='wxUSE_CONFIG=yes'
2467 else
2468 ac_cv_use_config='wxUSE_CONFIG=no'
2469 fi
2470
2471else
2472
2473 LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
2474 if test "x$LINE" != x ; then
2475 eval "DEFAULT_$LINE"
2476 else
2477 no_cache=1
2478 fi
2479
2480 ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
2481
2482fi
2483
2484
2485 eval "$ac_cv_use_config"
2486 if test "$no_cache" != 1; then
2487 echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
2488 fi
2489
2490 if test "$wxUSE_CONFIG" = yes; then
2491 echo "$ac_t""yes" 1>&6
2492 else
2493 echo "$ac_t""no" 1>&6
2494 fi
2495
2496
b12915c1
VZ
2497if test "$wxUSE_GUI" = "yes"; then
2498
10f2d63a 2499 echo $ac_n "checking "for --enable-sockets"""... $ac_c" 1>&6
bdad4e7e 2500echo "configure:2501: checking "for --enable-sockets"" >&5
10f2d63a
VZ
2501 no_cache=0
2502 # Check whether --enable-sockets or --disable-sockets was given.
2503if test "${enable_sockets+set}" = set; then
2504 enableval="$enable_sockets"
2505
2506 if test "$enableval" = yes; then
2507 ac_cv_use_sockets='wxUSE_SOCKETS=yes'
2508 else
2509 ac_cv_use_sockets='wxUSE_SOCKETS=no'
2510 fi
2511
2512else
2513
2514 LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
2515 if test "x$LINE" != x ; then
2516 eval "DEFAULT_$LINE"
2517 else
2518 no_cache=1
2519 fi
2520
2521 ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
2522
2523fi
2524
2525
2526 eval "$ac_cv_use_sockets"
2527 if test "$no_cache" != 1; then
2528 echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
2529 fi
2530
2531 if test "$wxUSE_SOCKETS" = yes; then
2532 echo "$ac_t""yes" 1>&6
2533 else
2534 echo "$ac_t""no" 1>&6
2535 fi
2536
b12915c1
VZ
2537else
2538wxUSE_SOCKETS=no
2539fi
2540
10f2d63a
VZ
2541
2542 echo $ac_n "checking "for --enable-dialupman"""... $ac_c" 1>&6
bdad4e7e 2543echo "configure:2544: checking "for --enable-dialupman"" >&5
10f2d63a
VZ
2544 no_cache=0
2545 # Check whether --enable-dialupman or --disable-dialupman was given.
2546if test "${enable_dialupman+set}" = set; then
2547 enableval="$enable_dialupman"
2548
2549 if test "$enableval" = yes; then
2550 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
2551 else
2552 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
2553 fi
2554
2555else
2556
2557 LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
2558 if test "x$LINE" != x ; then
2559 eval "DEFAULT_$LINE"
2560 else
2561 no_cache=1
2562 fi
2563
2564 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
2565
2566fi
2567
2568
2569 eval "$ac_cv_use_dialupman"
2570 if test "$no_cache" != 1; then
2571 echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
2572 fi
2573
2574 if test "$wxUSE_DIALUP_MANAGER" = yes; then
2575 echo "$ac_t""yes" 1>&6
2576 else
2577 echo "$ac_t""no" 1>&6
2578 fi
2579
2580
2581 echo $ac_n "checking "for --enable-ipc"""... $ac_c" 1>&6
bdad4e7e 2582echo "configure:2583: checking "for --enable-ipc"" >&5
10f2d63a
VZ
2583 no_cache=0
2584 # Check whether --enable-ipc or --disable-ipc was given.
2585if test "${enable_ipc+set}" = set; then
2586 enableval="$enable_ipc"
2587
2588 if test "$enableval" = yes; then
2589 ac_cv_use_ipc='wxUSE_IPC=yes'
2590 else
2591 ac_cv_use_ipc='wxUSE_IPC=no'
2592 fi
2593
2594else
2595
2596 LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
2597 if test "x$LINE" != x ; then
2598 eval "DEFAULT_$LINE"
2599 else
2600 no_cache=1
2601 fi
2602
2603 ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
2604
2605fi
2606
2607
2608 eval "$ac_cv_use_ipc"
2609 if test "$no_cache" != 1; then
2610 echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
2611 fi
2612
2613 if test "$wxUSE_IPC" = yes; then
2614 echo "$ac_t""yes" 1>&6
2615 else
2616 echo "$ac_t""no" 1>&6
2617 fi
2618
2619
2620 echo $ac_n "checking "for --enable-apple_ieee"""... $ac_c" 1>&6
bdad4e7e 2621echo "configure:2622: checking "for --enable-apple_ieee"" >&5
10f2d63a
VZ
2622 no_cache=0
2623 # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
2624if test "${enable_apple_ieee+set}" = set; then
2625 enableval="$enable_apple_ieee"
2626
2627 if test "$enableval" = yes; then
2628 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
2629 else
2630 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
2631 fi
2632
2633else
2634
2635 LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
2636 if test "x$LINE" != x ; then
2637 eval "DEFAULT_$LINE"
2638 else
2639 no_cache=1
2640 fi
2641
2642 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
2643
2644fi
2645
2646
2647 eval "$ac_cv_use_apple_ieee"
2648 if test "$no_cache" != 1; then
2649 echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
2650 fi
2651
2652 if test "$wxUSE_APPLE_IEEE" = yes; then
2653 echo "$ac_t""yes" 1>&6
2654 else
2655 echo "$ac_t""no" 1>&6
2656 fi
2657
2658
2659 echo $ac_n "checking "for --enable-timedate"""... $ac_c" 1>&6
bdad4e7e 2660echo "configure:2661: checking "for --enable-timedate"" >&5
10f2d63a
VZ
2661 no_cache=0
2662 # Check whether --enable-timedate or --disable-timedate was given.
2663if test "${enable_timedate+set}" = set; then
2664 enableval="$enable_timedate"
2665
2666 if test "$enableval" = yes; then
2667 ac_cv_use_timedate='wxUSE_TIMEDATE=yes'
2668 else
2669 ac_cv_use_timedate='wxUSE_TIMEDATE=no'
2670 fi
2671
2672else
2673
2674 LINE=`grep "wxUSE_TIMEDATE" ${wx_arg_cache_file}`
2675 if test "x$LINE" != x ; then
2676 eval "DEFAULT_$LINE"
2677 else
2678 no_cache=1
2679 fi
2680
2681 ac_cv_use_timedate='wxUSE_TIMEDATE='$DEFAULT_wxUSE_TIMEDATE
2682
2683fi
2684
2685
2686 eval "$ac_cv_use_timedate"
2687 if test "$no_cache" != 1; then
2688 echo $ac_cv_use_timedate >> ${wx_arg_cache_file}.tmp
2689 fi
2690
2691 if test "$wxUSE_TIMEDATE" = yes; then
2692 echo "$ac_t""yes" 1>&6
2693 else
2694 echo "$ac_t""no" 1>&6
2695 fi
2696
2697
2698 echo $ac_n "checking "for --enable-wave"""... $ac_c" 1>&6
bdad4e7e 2699echo "configure:2700: checking "for --enable-wave"" >&5
10f2d63a
VZ
2700 no_cache=0
2701 # Check whether --enable-wave or --disable-wave was given.
2702if test "${enable_wave+set}" = set; then
2703 enableval="$enable_wave"
2704
2705 if test "$enableval" = yes; then
2706 ac_cv_use_wave='wxUSE_WAVE=yes'
2707 else
2708 ac_cv_use_wave='wxUSE_WAVE=no'
2709 fi
2710
2711else
2712
2713 LINE=`grep "wxUSE_WAVE" ${wx_arg_cache_file}`
2714 if test "x$LINE" != x ; then
2715 eval "DEFAULT_$LINE"
2716 else
2717 no_cache=1
2718 fi
2719
2720 ac_cv_use_wave='wxUSE_WAVE='$DEFAULT_wxUSE_WAVE
2721
2722fi
2723
2724
2725 eval "$ac_cv_use_wave"
2726 if test "$no_cache" != 1; then
2727 echo $ac_cv_use_wave >> ${wx_arg_cache_file}.tmp
2728 fi
2729
2730 if test "$wxUSE_WAVE" = yes; then
2731 echo "$ac_t""yes" 1>&6
2732 else
2733 echo "$ac_t""no" 1>&6
2734 fi
2735
2736
2737 echo $ac_n "checking "for --enable-fraction"""... $ac_c" 1>&6
bdad4e7e 2738echo "configure:2739: checking "for --enable-fraction"" >&5
10f2d63a
VZ
2739 no_cache=0
2740 # Check whether --enable-fraction or --disable-fraction was given.
2741if test "${enable_fraction+set}" = set; then
2742 enableval="$enable_fraction"
2743
2744 if test "$enableval" = yes; then
2745 ac_cv_use_fraction='wxUSE_FRACTION=yes'
2746 else
2747 ac_cv_use_fraction='wxUSE_FRACTION=no'
2748 fi
2749
2750else
2751
2752 LINE=`grep "wxUSE_FRACTION" ${wx_arg_cache_file}`
2753 if test "x$LINE" != x ; then
2754 eval "DEFAULT_$LINE"
2755 else
2756 no_cache=1
2757 fi
2758
2759 ac_cv_use_fraction='wxUSE_FRACTION='$DEFAULT_wxUSE_FRACTION
2760
2761fi
2762
2763
2764 eval "$ac_cv_use_fraction"
2765 if test "$no_cache" != 1; then
2766 echo $ac_cv_use_fraction >> ${wx_arg_cache_file}.tmp
2767 fi
2768
2769 if test "$wxUSE_FRACTION" = yes; then
2770 echo "$ac_t""yes" 1>&6
2771 else
2772 echo "$ac_t""no" 1>&6
2773 fi
2774
2775
2776 echo $ac_n "checking "for --enable-dynlib"""... $ac_c" 1>&6
bdad4e7e 2777echo "configure:2778: checking "for --enable-dynlib"" >&5
10f2d63a
VZ
2778 no_cache=0
2779 # Check whether --enable-dynlib or --disable-dynlib was given.
2780if test "${enable_dynlib+set}" = set; then
2781 enableval="$enable_dynlib"
2782
2783 if test "$enableval" = yes; then
2784 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
2785 else
2786 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
2787 fi
2788
2789else
2790
2791 LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
2792 if test "x$LINE" != x ; then
2793 eval "DEFAULT_$LINE"
2794 else
2795 no_cache=1
2796 fi
2797
2798 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
2799
2800fi
2801
2802
2803 eval "$ac_cv_use_dynlib"
2804 if test "$no_cache" != 1; then
2805 echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
2806 fi
2807
2808 if test "$wxUSE_DYNLIB_CLASS" = yes; then
2809 echo "$ac_t""yes" 1>&6
2810 else
2811 echo "$ac_t""no" 1>&6
2812 fi
2813
2814
2815 echo $ac_n "checking "for --enable-longlong"""... $ac_c" 1>&6
bdad4e7e 2816echo "configure:2817: checking "for --enable-longlong"" >&5
10f2d63a
VZ
2817 no_cache=0
2818 # Check whether --enable-longlong or --disable-longlong was given.
2819if test "${enable_longlong+set}" = set; then
2820 enableval="$enable_longlong"
2821
2822 if test "$enableval" = yes; then
2823 ac_cv_use_longlong='wxUSE_LONGLONG=yes'
2824 else
2825 ac_cv_use_longlong='wxUSE_LONGLONG=no'
2826 fi
2827
2828else
2829
2830 LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
2831 if test "x$LINE" != x ; then
2832 eval "DEFAULT_$LINE"
2833 else
2834 no_cache=1
2835 fi
2836
2837 ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
2838
2839fi
2840
2841
2842 eval "$ac_cv_use_longlong"
2843 if test "$no_cache" != 1; then
2844 echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
2845 fi
2846
2847 if test "$wxUSE_LONGLONG" = yes; then
2848 echo "$ac_t""yes" 1>&6
2849 else
2850 echo "$ac_t""no" 1>&6
2851 fi
2852
2853
2854 echo $ac_n "checking "for --enable-log"""... $ac_c" 1>&6
bdad4e7e 2855echo "configure:2856: checking "for --enable-log"" >&5
10f2d63a
VZ
2856 no_cache=0
2857 # Check whether --enable-log or --disable-log was given.
2858if test "${enable_log+set}" = set; then
2859 enableval="$enable_log"
2860
2861 if test "$enableval" = yes; then
2862 ac_cv_use_log='wxUSE_LOG=yes'
2863 else
2864 ac_cv_use_log='wxUSE_LOG=no'
2865 fi
2866
2867else
2868
2869 LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
2870 if test "x$LINE" != x ; then
2871 eval "DEFAULT_$LINE"
2872 else
2873 no_cache=1
2874 fi
2875
2876 ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
2877
2878fi
2879
2880
2881 eval "$ac_cv_use_log"
2882 if test "$no_cache" != 1; then
2883 echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
2884 fi
2885
2886 if test "$wxUSE_LOG" = yes; then
2887 echo "$ac_t""yes" 1>&6
2888 else
2889 echo "$ac_t""no" 1>&6
2890 fi
2891
2892
2893 echo $ac_n "checking "for --enable-streams"""... $ac_c" 1>&6
bdad4e7e 2894echo "configure:2895: checking "for --enable-streams"" >&5
10f2d63a
VZ
2895 no_cache=0
2896 # Check whether --enable-streams or --disable-streams was given.
2897if test "${enable_streams+set}" = set; then
2898 enableval="$enable_streams"
2899
2900 if test "$enableval" = yes; then
2901 ac_cv_use_streams='wxUSE_STREAMS=yes'
2902 else
2903 ac_cv_use_streams='wxUSE_STREAMS=no'
2904 fi
2905
2906else
2907
2908 LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
2909 if test "x$LINE" != x ; then
2910 eval "DEFAULT_$LINE"
2911 else
2912 no_cache=1
2913 fi
2914
2915 ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
2916
2917fi
2918
2919
2920 eval "$ac_cv_use_streams"
2921 if test "$no_cache" != 1; then
2922 echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
2923 fi
2924
2925 if test "$wxUSE_STREAMS" = yes; then
2926 echo "$ac_t""yes" 1>&6
2927 else
2928 echo "$ac_t""no" 1>&6
2929 fi
2930
2931
2932 echo $ac_n "checking "for --enable-file"""... $ac_c" 1>&6
bdad4e7e 2933echo "configure:2934: checking "for --enable-file"" >&5
10f2d63a
VZ
2934 no_cache=0
2935 # Check whether --enable-file or --disable-file was given.
2936if test "${enable_file+set}" = set; then
2937 enableval="$enable_file"
2938
2939 if test "$enableval" = yes; then
2940 ac_cv_use_file='wxUSE_FILE=yes'
2941 else
2942 ac_cv_use_file='wxUSE_FILE=no'
2943 fi
2944
2945else
2946
2947 LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
2948 if test "x$LINE" != x ; then
2949 eval "DEFAULT_$LINE"
2950 else
2951 no_cache=1
2952 fi
2953
2954 ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
2955
2956fi
2957
2958
2959 eval "$ac_cv_use_file"
2960 if test "$no_cache" != 1; then
2961 echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
2962 fi
2963
2964 if test "$wxUSE_FILE" = yes; then
2965 echo "$ac_t""yes" 1>&6
2966 else
2967 echo "$ac_t""no" 1>&6
2968 fi
2969
2970
2971 echo $ac_n "checking "for --enable-textfile"""... $ac_c" 1>&6
bdad4e7e 2972echo "configure:2973: checking "for --enable-textfile"" >&5
10f2d63a
VZ
2973 no_cache=0
2974 # Check whether --enable-textfile or --disable-textfile was given.
2975if test "${enable_textfile+set}" = set; then
2976 enableval="$enable_textfile"
2977
2978 if test "$enableval" = yes; then
2979 ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
2980 else
2981 ac_cv_use_textfile='wxUSE_TEXTFILE=no'
2982 fi
2983
2984else
2985
2986 LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
2987 if test "x$LINE" != x ; then
2988 eval "DEFAULT_$LINE"
2989 else
2990 no_cache=1
2991 fi
2992
2993 ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
2994
2995fi
2996
2997
2998 eval "$ac_cv_use_textfile"
2999 if test "$no_cache" != 1; then
3000 echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
3001 fi
3002
3003 if test "$wxUSE_TEXTFILE" = yes; then
3004 echo "$ac_t""yes" 1>&6
3005 else
3006 echo "$ac_t""no" 1>&6
3007 fi
3008
3009
3010 echo $ac_n "checking "for --enable-unicode"""... $ac_c" 1>&6
bdad4e7e 3011echo "configure:3012: checking "for --enable-unicode"" >&5
10f2d63a
VZ
3012 no_cache=0
3013 # Check whether --enable-unicode or --disable-unicode was given.
3014if test "${enable_unicode+set}" = set; then
3015 enableval="$enable_unicode"
3016
3017 if test "$enableval" = yes; then
3018 ac_cv_use_unicode='wxUSE_UNICODE=yes'
3019 else
3020 ac_cv_use_unicode='wxUSE_UNICODE=no'
3021 fi
3022
3023else
3024
3025 LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
3026 if test "x$LINE" != x ; then
3027 eval "DEFAULT_$LINE"
3028 else
3029 no_cache=1
3030 fi
3031
3032 ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
3033
3034fi
3035
3036
3037 eval "$ac_cv_use_unicode"
3038 if test "$no_cache" != 1; then
3039 echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
3040 fi
3041
3042 if test "$wxUSE_UNICODE" = yes; then
3043 echo "$ac_t""yes" 1>&6
3044 else
3045 echo "$ac_t""no" 1>&6
3046 fi
3047
3048
3049 echo $ac_n "checking "for --enable-wcsrtombs"""... $ac_c" 1>&6
bdad4e7e 3050echo "configure:3051: checking "for --enable-wcsrtombs"" >&5
10f2d63a
VZ
3051 no_cache=0
3052 # Check whether --enable-wcsrtombs or --disable-wcsrtombs was given.
3053if test "${enable_wcsrtombs+set}" = set; then
3054 enableval="$enable_wcsrtombs"
3055
3056 if test "$enableval" = yes; then
3057 ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS=yes'
3058 else
3059 ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS=no'
3060 fi
3061
3062else
3063
3064 LINE=`grep "wxUSE_WCSRTOMBS" ${wx_arg_cache_file}`
3065 if test "x$LINE" != x ; then
3066 eval "DEFAULT_$LINE"
3067 else
3068 no_cache=1
3069 fi
3070
3071 ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS='$DEFAULT_wxUSE_WCSRTOMBS
3072
3073fi
3074
3075
3076 eval "$ac_cv_use_wcsrtombs"
3077 if test "$no_cache" != 1; then
3078 echo $ac_cv_use_wcsrtombs >> ${wx_arg_cache_file}.tmp
3079 fi
3080
3081 if test "$wxUSE_WCSRTOMBS" = yes; then
3082 echo "$ac_t""yes" 1>&6
3083 else
3084 echo "$ac_t""no" 1>&6
3085 fi
3086
3087
3088 echo $ac_n "checking "for --enable-wxprintfv"""... $ac_c" 1>&6
bdad4e7e 3089echo "configure:3090: checking "for --enable-wxprintfv"" >&5
10f2d63a
VZ
3090 no_cache=0
3091 # Check whether --enable-wxprintfv or --disable-wxprintfv was given.
3092if test "${enable_wxprintfv+set}" = set; then
3093 enableval="$enable_wxprintfv"
3094
3095 if test "$enableval" = yes; then
3096 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes'
3097 else
3098 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no'
3099 fi
3100
3101else
3102
3103 LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}`
3104 if test "x$LINE" != x ; then
3105 eval "DEFAULT_$LINE"
3106 else
3107 no_cache=1
3108 fi
3109
3110 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF
3111
3112fi
3113
3114
3115 eval "$ac_cv_use_wxprintfv"
3116 if test "$no_cache" != 1; then
3117 echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp
3118 fi
3119
3120 if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then
3121 echo "$ac_t""yes" 1>&6
3122 else
3123 echo "$ac_t""no" 1>&6
3124 fi
3125
3126
3127 echo $ac_n "checking "for --enable-joystick"""... $ac_c" 1>&6
bdad4e7e 3128echo "configure:3129: checking "for --enable-joystick"" >&5
10f2d63a
VZ
3129 no_cache=0
3130 # Check whether --enable-joystick or --disable-joystick was given.
3131if test "${enable_joystick+set}" = set; then
3132 enableval="$enable_joystick"
3133
3134 if test "$enableval" = yes; then
3135 ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
3136 else
3137 ac_cv_use_joystick='wxUSE_JOYSTICK=no'
3138 fi
3139
3140else
3141
3142 LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
3143 if test "x$LINE" != x ; then
3144 eval "DEFAULT_$LINE"
3145 else
3146 no_cache=1
3147 fi
3148
3149 ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
3150
3151fi
3152
3153
3154 eval "$ac_cv_use_joystick"
3155 if test "$no_cache" != 1; then
3156 echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
3157 fi
3158
3159 if test "$wxUSE_JOYSTICK" = yes; then
3160 echo "$ac_t""yes" 1>&6
3161 else
3162 echo "$ac_t""no" 1>&6
3163 fi
3164
3165
3166 echo $ac_n "checking "for --enable-std_iostreams"""... $ac_c" 1>&6
bdad4e7e 3167echo "configure:3168: checking "for --enable-std_iostreams"" >&5
10f2d63a
VZ
3168 no_cache=0
3169 # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
3170if test "${enable_std_iostreams+set}" = set; then
3171 enableval="$enable_std_iostreams"
3172
3173 if test "$enableval" = yes; then
3174 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
3175 else
3176 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
3177 fi
3178
3179else
3180
3181 LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
3182 if test "x$LINE" != x ; then
3183 eval "DEFAULT_$LINE"
3184 else
3185 no_cache=1
3186 fi
3187
3188 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
3189
3190fi
3191
3192
3193 eval "$ac_cv_use_std_iostreams"
3194 if test "$no_cache" != 1; then
3195 echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
3196 fi
3197
3198 if test "$wxUSE_STD_IOSTREAM" = yes; then
3199 echo "$ac_t""yes" 1>&6
3200 else
3201 echo "$ac_t""no" 1>&6
3202 fi
3203
3204
24528b0c 3205 echo $ac_n "checking "for --enable-filesystem"""... $ac_c" 1>&6
bdad4e7e 3206echo "configure:3207: checking "for --enable-filesystem"" >&5
24528b0c
VS
3207 no_cache=0
3208 # Check whether --enable-filesystem or --disable-filesystem was given.
3209if test "${enable_filesystem+set}" = set; then
3210 enableval="$enable_filesystem"
3211
3212 if test "$enableval" = yes; then
3213 ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
3214 else
3215 ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
3216 fi
3217
3218else
3219
3220 LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}`
3221 if test "x$LINE" != x ; then
3222 eval "DEFAULT_$LINE"
3223 else
3224 no_cache=1
3225 fi
3226
3227 ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
3228
3229fi
3230
3231
3232 eval "$ac_cv_use_filesystem"
3233 if test "$no_cache" != 1; then
3234 echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
3235 fi
3236
3237 if test "$wxUSE_FILESYSTEM" = yes; then
3238 echo "$ac_t""yes" 1>&6
3239 else
3240 echo "$ac_t""no" 1>&6
3241 fi
3242
3243
10f2d63a 3244 echo $ac_n "checking "for --enable-fs_inet"""... $ac_c" 1>&6
bdad4e7e 3245echo "configure:3246: checking "for --enable-fs_inet"" >&5
10f2d63a
VZ
3246 no_cache=0
3247 # Check whether --enable-fs_inet or --disable-fs_inet was given.
3248if test "${enable_fs_inet+set}" = set; then
3249 enableval="$enable_fs_inet"
3250
3251 if test "$enableval" = yes; then
3252 ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
3253 else
3254 ac_cv_use_fs_inet='wxUSE_FS_INET=no'
3255 fi
3256
3257else
3258
3259 LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
3260 if test "x$LINE" != x ; then
3261 eval "DEFAULT_$LINE"
3262 else
3263 no_cache=1
3264 fi
3265
3266 ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
3267
3268fi
3269
3270
3271 eval "$ac_cv_use_fs_inet"
3272 if test "$no_cache" != 1; then
3273 echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
3274 fi
3275
3276 if test "$wxUSE_FS_INET" = yes; then
3277 echo "$ac_t""yes" 1>&6
3278 else
3279 echo "$ac_t""no" 1>&6
3280 fi
3281
3282
3283 echo $ac_n "checking "for --enable-fs_zip"""... $ac_c" 1>&6
bdad4e7e 3284echo "configure:3285: checking "for --enable-fs_zip"" >&5
10f2d63a
VZ
3285 no_cache=0
3286 # Check whether --enable-fs_zip or --disable-fs_zip was given.
3287if test "${enable_fs_zip+set}" = set; then
3288 enableval="$enable_fs_zip"
3289
3290 if test "$enableval" = yes; then
3291 ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
3292 else
3293 ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
3294 fi
3295
3296else
3297
3298 LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
3299 if test "x$LINE" != x ; then
3300 eval "DEFAULT_$LINE"
3301 else
3302 no_cache=1
3303 fi
3304
3305 ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
3306
3307fi
3308
3309
3310 eval "$ac_cv_use_fs_zip"
3311 if test "$no_cache" != 1; then
3312 echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
3313 fi
3314
3315 if test "$wxUSE_FS_ZIP" = yes; then
3316 echo "$ac_t""yes" 1>&6
3317 else
3318 echo "$ac_t""no" 1>&6
3319 fi
3320
3321
3322 echo $ac_n "checking "for --enable-zipstream"""... $ac_c" 1>&6
bdad4e7e 3323echo "configure:3324: checking "for --enable-zipstream"" >&5
10f2d63a
VZ
3324 no_cache=0
3325 # Check whether --enable-zipstream or --disable-zipstream was given.
3326if test "${enable_zipstream+set}" = set; then
3327 enableval="$enable_zipstream"
3328
3329 if test "$enableval" = yes; then
3330 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
3331 else
3332 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
3333 fi
3334
3335else
3336
3337 LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
3338 if test "x$LINE" != x ; then
3339 eval "DEFAULT_$LINE"
3340 else
3341 no_cache=1
3342 fi
3343
3344 ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
3345
3346fi
3347
3348
3349 eval "$ac_cv_use_zipstream"
3350 if test "$no_cache" != 1; then
3351 echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
3352 fi
3353
3354 if test "$wxUSE_ZIPSTREAM" = yes; then
3355 echo "$ac_t""yes" 1>&6
3356 else
3357 echo "$ac_t""no" 1>&6
3358 fi
3359
3360
3361
3362
3363 echo $ac_n "checking "for --enable-threads"""... $ac_c" 1>&6
bdad4e7e 3364echo "configure:3365: checking "for --enable-threads"" >&5
10f2d63a
VZ
3365 no_cache=0
3366 # Check whether --enable-threads or --disable-threads was given.
3367if test "${enable_threads+set}" = set; then
3368 enableval="$enable_threads"
3369
3370 if test "$enableval" = yes; then
3371 ac_cv_use_threads='wxUSE_THREADS=yes'
3372 else
3373 ac_cv_use_threads='wxUSE_THREADS=no'
3374 fi
3375
3376else
3377
3378 LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
3379 if test "x$LINE" != x ; then
3380 eval "DEFAULT_$LINE"
3381 else
3382 no_cache=1
3383 fi
3384
3385 ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
3386
3387fi
3388
3389
3390 eval "$ac_cv_use_threads"
3391 if test "$no_cache" != 1; then
3392 echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
3393 fi
3394
3395 if test "$wxUSE_THREADS" = yes; then
3396 echo "$ac_t""yes" 1>&6
3397 else
3398 echo "$ac_t""no" 1>&6
3399 fi
3400
3401
3402 echo $ac_n "checking "for --enable-serial"""... $ac_c" 1>&6
bdad4e7e 3403echo "configure:3404: checking "for --enable-serial"" >&5
10f2d63a
VZ
3404 no_cache=0
3405 # Check whether --enable-serial or --disable-serial was given.
3406if test "${enable_serial+set}" = set; then
3407 enableval="$enable_serial"
3408
3409 if test "$enableval" = yes; then
3410 ac_cv_use_serial='wxUSE_SERIAL=yes'
3411 else
3412 ac_cv_use_serial='wxUSE_SERIAL=no'
3413 fi
3414
3415else
3416
3417 LINE=`grep "wxUSE_SERIAL" ${wx_arg_cache_file}`
3418 if test "x$LINE" != x ; then
3419 eval "DEFAULT_$LINE"
3420 else
3421 no_cache=1
3422 fi
3423
3424 ac_cv_use_serial='wxUSE_SERIAL='$DEFAULT_wxUSE_SERIAL
3425
3426fi
3427
3428
3429 eval "$ac_cv_use_serial"
3430 if test "$no_cache" != 1; then
3431 echo $ac_cv_use_serial >> ${wx_arg_cache_file}.tmp
3432 fi
3433
3434 if test "$wxUSE_SERIAL" = yes; then
3435 echo "$ac_t""yes" 1>&6
3436 else
3437 echo "$ac_t""no" 1>&6
3438 fi
3439
3440
b12915c1
VZ
3441if test "$wxUSE_GUI" = "yes"; then
3442
10f2d63a
VZ
3443
3444
3445 echo $ac_n "checking "for --enable-docview"""... $ac_c" 1>&6
bdad4e7e 3446echo "configure:3447: checking "for --enable-docview"" >&5
10f2d63a
VZ
3447 no_cache=0
3448 # Check whether --enable-docview or --disable-docview was given.
3449if test "${enable_docview+set}" = set; then
3450 enableval="$enable_docview"
3451
3452 if test "$enableval" = yes; then
3453 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
3454 else
3455 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
3456 fi
3457
3458else
3459
3460 LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
3461 if test "x$LINE" != x ; then
3462 eval "DEFAULT_$LINE"
3463 else
3464 no_cache=1
3465 fi
3466
3467 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
3468
3469fi
3470
3471
3472 eval "$ac_cv_use_docview"
3473 if test "$no_cache" != 1; then
3474 echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
3475 fi
3476
3477 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
3478 echo "$ac_t""yes" 1>&6
3479 else
3480 echo "$ac_t""no" 1>&6
3481 fi
3482
3483
3484 echo $ac_n "checking "for --enable-help"""... $ac_c" 1>&6
bdad4e7e 3485echo "configure:3486: checking "for --enable-help"" >&5
10f2d63a
VZ
3486 no_cache=0
3487 # Check whether --enable-help or --disable-help was given.
3488if test "${enable_help+set}" = set; then
3489 enableval="$enable_help"
3490
3491 if test "$enableval" = yes; then
3492 ac_cv_use_help='wxUSE_HELP=yes'
3493 else
3494 ac_cv_use_help='wxUSE_HELP=no'
3495 fi
3496
3497else
3498
3499 LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
3500 if test "x$LINE" != x ; then
3501 eval "DEFAULT_$LINE"
3502 else
3503 no_cache=1
3504 fi
3505
3506 ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
3507
3508fi
3509
3510
3511 eval "$ac_cv_use_help"
3512 if test "$no_cache" != 1; then
3513 echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
3514 fi
3515
3516 if test "$wxUSE_HELP" = yes; then
3517 echo "$ac_t""yes" 1>&6
3518 else
3519 echo "$ac_t""no" 1>&6
3520 fi
3521
3522
3523 echo $ac_n "checking "for --enable-constraints"""... $ac_c" 1>&6
bdad4e7e 3524echo "configure:3525: checking "for --enable-constraints"" >&5
10f2d63a
VZ
3525 no_cache=0
3526 # Check whether --enable-constraints or --disable-constraints was given.
3527if test "${enable_constraints+set}" = set; then
3528 enableval="$enable_constraints"
3529
3530 if test "$enableval" = yes; then
3531 ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
3532 else
3533 ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
3534 fi
3535
3536else
3537
3538 LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
3539 if test "x$LINE" != x ; then
3540 eval "DEFAULT_$LINE"
3541 else
3542 no_cache=1
3543 fi
3544
3545 ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
3546
3547fi
3548
3549
3550 eval "$ac_cv_use_constraints"
3551 if test "$no_cache" != 1; then
3552 echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
3553 fi
3554
3555 if test "$wxUSE_CONSTRAINTS" = yes; then
3556 echo "$ac_t""yes" 1>&6
3557 else
3558 echo "$ac_t""no" 1>&6
3559 fi
3560
3561
3562 echo $ac_n "checking "for --enable-printarch"""... $ac_c" 1>&6
bdad4e7e 3563echo "configure:3564: checking "for --enable-printarch"" >&5
10f2d63a
VZ
3564 no_cache=0
3565 # Check whether --enable-printarch or --disable-printarch was given.
3566if test "${enable_printarch+set}" = set; then
3567 enableval="$enable_printarch"
3568
3569 if test "$enableval" = yes; then
3570 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
3571 else
3572 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
3573 fi
3574
3575else
3576
3577 LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
3578 if test "x$LINE" != x ; then
3579 eval "DEFAULT_$LINE"
3580 else
3581 no_cache=1
3582 fi
3583
3584 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
3585
3586fi
3587
3588
3589 eval "$ac_cv_use_printarch"
3590 if test "$no_cache" != 1; then
3591 echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
3592 fi
3593
3594 if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
3595 echo "$ac_t""yes" 1>&6
3596 else
3597 echo "$ac_t""no" 1>&6
3598 fi
3599
3600
3601 echo $ac_n "checking "for --enable-mdi"""... $ac_c" 1>&6
bdad4e7e 3602echo "configure:3603: checking "for --enable-mdi"" >&5
10f2d63a
VZ
3603 no_cache=0
3604 # Check whether --enable-mdi or --disable-mdi was given.
3605if test "${enable_mdi+set}" = set; then
3606 enableval="$enable_mdi"
3607
3608 if test "$enableval" = yes; then
3609 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=yes'
3610 else
3611 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=no'
3612 fi
3613
3614else
3615
3616 LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
3617 if test "x$LINE" != x ; then
3618 eval "DEFAULT_$LINE"
3619 else
3620 no_cache=1
3621 fi
3622
3623 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
3624
3625fi
3626
3627
3628 eval "$ac_cv_use_mdi"
3629 if test "$no_cache" != 1; then
3630 echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
3631 fi
3632
3633 if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
3634 echo "$ac_t""yes" 1>&6
3635 else
3636 echo "$ac_t""no" 1>&6
3637 fi
3638
3639
3640
3641 echo $ac_n "checking "for --enable-postscript"""... $ac_c" 1>&6
bdad4e7e 3642echo "configure:3643: checking "for --enable-postscript"" >&5
10f2d63a
VZ
3643 no_cache=0
3644 # Check whether --enable-postscript or --disable-postscript was given.
3645if test "${enable_postscript+set}" = set; then
3646 enableval="$enable_postscript"
3647
3648 if test "$enableval" = yes; then
3649 ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
3650 else
3651 ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
3652 fi
3653
3654else
3655
3656 LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
3657 if test "x$LINE" != x ; then
3658 eval "DEFAULT_$LINE"
3659 else
3660 no_cache=1
3661 fi
3662
3663 ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
3664
3665fi
3666
3667
3668 eval "$ac_cv_use_postscript"
3669 if test "$no_cache" != 1; then
3670 echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
3671 fi
3672
3673 if test "$wxUSE_POSTSCRIPT" = yes; then
3674 echo "$ac_t""yes" 1>&6
3675 else
3676 echo "$ac_t""no" 1>&6
3677 fi
3678
3679
3680
3681
3682 echo $ac_n "checking "for --enable-prologio"""... $ac_c" 1>&6
bdad4e7e 3683echo "configure:3684: checking "for --enable-prologio"" >&5
10f2d63a
VZ
3684 no_cache=0
3685 # Check whether --enable-prologio or --disable-prologio was given.
3686if test "${enable_prologio+set}" = set; then
3687 enableval="$enable_prologio"
3688
3689 if test "$enableval" = yes; then
3690 ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
3691 else
3692 ac_cv_use_prologio='wxUSE_PROLOGIO=no'
3693 fi
3694
3695else
3696
3697 LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
3698 if test "x$LINE" != x ; then
3699 eval "DEFAULT_$LINE"
3700 else
3701 no_cache=1
3702 fi
3703
3704 ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
3705
3706fi
3707
3708
3709 eval "$ac_cv_use_prologio"
3710 if test "$no_cache" != 1; then
3711 echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
3712 fi
3713
3714 if test "$wxUSE_PROLOGIO" = yes; then
3715 echo "$ac_t""yes" 1>&6
3716 else
3717 echo "$ac_t""no" 1>&6
3718 fi
3719
3720
3721 echo $ac_n "checking "for --enable-resources"""... $ac_c" 1>&6
bdad4e7e 3722echo "configure:3723: checking "for --enable-resources"" >&5
10f2d63a
VZ
3723 no_cache=0
3724 # Check whether --enable-resources or --disable-resources was given.
3725if test "${enable_resources+set}" = set; then
3726 enableval="$enable_resources"
3727
3728 if test "$enableval" = yes; then
3729 ac_cv_use_resources='wxUSE_RESOURCES=yes'
3730 else
3731 ac_cv_use_resources='wxUSE_RESOURCES=no'
3732 fi
3733
3734else
3735
3736 LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
3737 if test "x$LINE" != x ; then
3738 eval "DEFAULT_$LINE"
3739 else
3740 no_cache=1
3741 fi
3742
3743 ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
3744
3745fi
3746
3747
3748 eval "$ac_cv_use_resources"
3749 if test "$no_cache" != 1; then
3750 echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
3751 fi
3752
3753 if test "$wxUSE_RESOURCES" = yes; then
3754 echo "$ac_t""yes" 1>&6
3755 else
3756 echo "$ac_t""no" 1>&6
3757 fi
3758
3759
3760
3761 echo $ac_n "checking "for --enable-xresources"""... $ac_c" 1>&6
bdad4e7e 3762echo "configure:3763: checking "for --enable-xresources"" >&5
10f2d63a
VZ
3763 no_cache=0
3764 # Check whether --enable-xresources or --disable-xresources was given.
3765if test "${enable_xresources+set}" = set; then
3766 enableval="$enable_xresources"
3767
3768 if test "$enableval" = yes; then
3769 ac_cv_use_xresources='wxUSE_X_RESOURCES=yes'
3770 else
3771 ac_cv_use_xresources='wxUSE_X_RESOURCES=no'
3772 fi
3773
3774else
3775
3776 LINE=`grep "wxUSE_X_RESOURCES" ${wx_arg_cache_file}`
3777 if test "x$LINE" != x ; then
3778 eval "DEFAULT_$LINE"
3779 else
3780 no_cache=1
3781 fi
3782
3783 ac_cv_use_xresources='wxUSE_X_RESOURCES='$DEFAULT_wxUSE_X_RESOURCES
3784
3785fi
3786
3787
3788 eval "$ac_cv_use_xresources"
3789 if test "$no_cache" != 1; then
3790 echo $ac_cv_use_xresources >> ${wx_arg_cache_file}.tmp
3791 fi
3792
3793 if test "$wxUSE_X_RESOURCES" = yes; then
3794 echo "$ac_t""yes" 1>&6
3795 else
3796 echo "$ac_t""no" 1>&6
3797 fi
3798
3799
3800
3801
3802 echo $ac_n "checking "for --enable-clipboard"""... $ac_c" 1>&6
bdad4e7e 3803echo "configure:3804: checking "for --enable-clipboard"" >&5
10f2d63a
VZ
3804 no_cache=0
3805 # Check whether --enable-clipboard or --disable-clipboard was given.
3806if test "${enable_clipboard+set}" = set; then
3807 enableval="$enable_clipboard"
3808
3809 if test "$enableval" = yes; then
3810 ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
3811 else
3812 ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
3813 fi
3814
3815else
3816
3817 LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
3818 if test "x$LINE" != x ; then
3819 eval "DEFAULT_$LINE"
3820 else
3821 no_cache=1
3822 fi
3823
3824 ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
3825
3826fi
3827
3828
3829 eval "$ac_cv_use_clipboard"
3830 if test "$no_cache" != 1; then
3831 echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
3832 fi
3833
3834 if test "$wxUSE_CLIPBOARD" = yes; then
3835 echo "$ac_t""yes" 1>&6
3836 else
3837 echo "$ac_t""no" 1>&6
3838 fi
3839
3840
3841 echo $ac_n "checking "for --enable-dnd"""... $ac_c" 1>&6
bdad4e7e 3842echo "configure:3843: checking "for --enable-dnd"" >&5
10f2d63a
VZ
3843 no_cache=0
3844 # Check whether --enable-dnd or --disable-dnd was given.
3845if test "${enable_dnd+set}" = set; then
3846 enableval="$enable_dnd"
3847
3848 if test "$enableval" = yes; then
3849 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
3850 else
3851 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
3852 fi
3853
3854else
3855
3856 LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
3857 if test "x$LINE" != x ; then
3858 eval "DEFAULT_$LINE"
3859 else
3860 no_cache=1
3861 fi
3862
3863 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
3864
3865fi
3866
3867
3868 eval "$ac_cv_use_dnd"
3869 if test "$no_cache" != 1; then
3870 echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
3871 fi
3872
3873 if test "$wxUSE_DRAG_AND_DROP" = yes; then
3874 echo "$ac_t""yes" 1>&6
3875 else
3876 echo "$ac_t""no" 1>&6
3877 fi
3878
3879
3880
3881 echo $ac_n "checking "for --enable-wxtree"""... $ac_c" 1>&6
bdad4e7e 3882echo "configure:3883: checking "for --enable-wxtree"" >&5
10f2d63a
VZ
3883 no_cache=0
3884 # Check whether --enable-wxtree or --disable-wxtree was given.
3885if test "${enable_wxtree+set}" = set; then
3886 enableval="$enable_wxtree"
3887
3888 if test "$enableval" = yes; then
3889 ac_cv_use_wxtree='wxUSE_WXTREE=yes'
3890 else
3891 ac_cv_use_wxtree='wxUSE_WXTREE=no'
3892 fi
3893
3894else
3895
3896 LINE=`grep "wxUSE_WXTREE" ${wx_arg_cache_file}`
3897 if test "x$LINE" != x ; then
3898 eval "DEFAULT_$LINE"
3899 else
3900 no_cache=1
3901 fi
3902
3903 ac_cv_use_wxtree='wxUSE_WXTREE='$DEFAULT_wxUSE_WXTREE
3904
3905fi
3906
3907
3908 eval "$ac_cv_use_wxtree"
3909 if test "$no_cache" != 1; then
3910 echo $ac_cv_use_wxtree >> ${wx_arg_cache_file}.tmp
3911 fi
3912
3913 if test "$wxUSE_WXTREE" = yes; then
3914 echo "$ac_t""yes" 1>&6
3915 else
3916 echo "$ac_t""no" 1>&6
3917 fi
3918
3919
3920
3921
3922 echo $ac_n "checking "for --enable-controls"""... $ac_c" 1>&6
bdad4e7e 3923echo "configure:3924: checking "for --enable-controls"" >&5
10f2d63a
VZ
3924 no_cache=0
3925 # Check whether --enable-controls or --disable-controls was given.
3926if test "${enable_controls+set}" = set; then
3927 enableval="$enable_controls"
3928
3929 if test "$enableval" = yes; then
3930 ac_cv_use_controls='wxUSE_CONTROLS=yes'
3931 else
3932 ac_cv_use_controls='wxUSE_CONTROLS=no'
3933 fi
3934
3935else
3936
3937 LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
3938 if test "x$LINE" != x ; then
3939 eval "DEFAULT_$LINE"
3940 else
3941 no_cache=1
3942 fi
3943
3944 ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
3945
3946fi
3947
3948
3949 eval "$ac_cv_use_controls"
3950 if test "$no_cache" != 1; then
3951 echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
3952 fi
3953
3954 if test "$wxUSE_CONTROLS" = yes; then
3955 echo "$ac_t""yes" 1>&6
3956 else
3957 echo "$ac_t""no" 1>&6
3958 fi
3959
3960
3961if test "$wxUSE_CONTROLS" = "yes"; then
3962 DEFAULT_wxUSE_ACCEL=yes
3963 DEFAULT_wxUSE_CARET=yes
3964 DEFAULT_wxUSE_COMBOBOX=yes
3965 DEFAULT_wxUSE_BMPBUTTON=yes
3966 DEFAULT_wxUSE_CHECKBOX=yes
3967 DEFAULT_wxUSE_CHECKLISTBOX=yes
3968 DEFAULT_wxUSE_CHOICE=yes
3969 DEFAULT_wxUSE_GAUGE=yes
3970 DEFAULT_wxUSE_GRID=yes
cc977e5f 3971 DEFAULT_wxUSE_NEW_GRID=yes
10f2d63a
VZ
3972 DEFAULT_wxUSE_IMAGLIST=yes
3973 DEFAULT_wxUSE_LISTBOX=yes
3974 DEFAULT_wxUSE_LISTCTRL=yes
3975 DEFAULT_wxUSE_NOTEBOOK=yes
3976 DEFAULT_wxUSE_RADIOBOX=yes
3977 DEFAULT_wxUSE_RADIOBTN=yes
3978 DEFAULT_wxUSE_SASH=yes
3979 DEFAULT_wxUSE_SCROLLBAR=yes
3980 DEFAULT_wxUSE_SLIDER=yes
3981 DEFAULT_wxUSE_SPINBTN=yes
56cfaa52 3982 DEFAULT_wxUSE_SPINCTRL=yes
10f2d63a
VZ
3983 DEFAULT_wxUSE_SPLITTER=yes
3984 DEFAULT_wxUSE_STATBMP=yes
3985 DEFAULT_wxUSE_STATBOX=yes
3986 DEFAULT_wxUSE_STATLINE=yes
3987 DEFAULT_wxUSE_STATUSBAR=yes
3988 DEFAULT_wxUSE_TAB_DIALOG=yes
3989 DEFAULT_wxUSE_TOOLBAR=yes
360d6699
VZ
3990 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
3991 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
10f2d63a
VZ
3992 DEFAULT_wxUSE_TOOLTIPS=yes
3993 DEFAULT_wxUSE_TREECTRL=yes
3994elif test "$wxUSE_CONTROLS" = "no"; then
3995 DEFAULT_wxUSE_ACCEL=no
3996 DEFAULT_wxUSE_CARET=no
3997 DEFAULT_wxUSE_COMBOBOX=no
3998 DEFAULT_wxUSE_BMPBUTTON=no
3999 DEFAULT_wxUSE_CHECKBOX=no
4000 DEFAULT_wxUSE_CHECKLISTBOX=no
4001 DEFAULT_wxUSE_CHOICE=no
4002 DEFAULT_wxUSE_GAUGE=no
4003 DEFAULT_wxUSE_GRID=no
4004 DEFAULT_wxUSE_NEW_GRID=no
4005 DEFAULT_wxUSE_IMAGLIST=no
4006 DEFAULT_wxUSE_LISTBOX=no
4007 DEFAULT_wxUSE_LISTCTRL=no
4008 DEFAULT_wxUSE_NOTEBOOK=no
4009 DEFAULT_wxUSE_RADIOBOX=no
4010 DEFAULT_wxUSE_RADIOBTN=no
4011 DEFAULT_wxUSE_SASH=no
4012 DEFAULT_wxUSE_SCROLLBAR=no
4013 DEFAULT_wxUSE_SLIDER=no
4014 DEFAULT_wxUSE_SPINBTN=no
56cfaa52 4015 DEFAULT_wxUSE_SPINCTRL=no
10f2d63a
VZ
4016 DEFAULT_wxUSE_SPLITTER=no
4017 DEFAULT_wxUSE_STATBMP=no
4018 DEFAULT_wxUSE_STATBOX=no
4019 DEFAULT_wxUSE_STATLINE=no
4020 DEFAULT_wxUSE_STATUSBAR=no
4021 DEFAULT_wxUSE_TAB_DIALOG=no
4022 DEFAULT_wxUSE_TOOLBAR=no
360d6699
VZ
4023 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
4024 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
10f2d63a
VZ
4025 DEFAULT_wxUSE_TOOLTIPS=no
4026 DEFAULT_wxUSE_TREECTRL=no
4027fi
4028
4029
4030 echo $ac_n "checking "for --enable-accel"""... $ac_c" 1>&6
bdad4e7e 4031echo "configure:4032: checking "for --enable-accel"" >&5
10f2d63a
VZ
4032 no_cache=0
4033 # Check whether --enable-accel or --disable-accel was given.
4034if test "${enable_accel+set}" = set; then
4035 enableval="$enable_accel"
4036
4037 if test "$enableval" = yes; then
4038 ac_cv_use_accel='wxUSE_ACCEL=yes'
4039 else
4040 ac_cv_use_accel='wxUSE_ACCEL=no'
4041 fi
4042
4043else
4044
4045 LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
4046 if test "x$LINE" != x ; then
4047 eval "DEFAULT_$LINE"
4048 else
4049 no_cache=1
4050 fi
4051
4052 ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
4053
4054fi
4055
4056
4057 eval "$ac_cv_use_accel"
4058 if test "$no_cache" != 1; then
4059 echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
4060 fi
4061
4062 if test "$wxUSE_ACCEL" = yes; then
4063 echo "$ac_t""yes" 1>&6
4064 else
4065 echo "$ac_t""no" 1>&6
4066 fi
4067
4068
4069 echo $ac_n "checking "for --enable-caret"""... $ac_c" 1>&6
bdad4e7e 4070echo "configure:4071: checking "for --enable-caret"" >&5
10f2d63a
VZ
4071 no_cache=0
4072 # Check whether --enable-caret or --disable-caret was given.
4073if test "${enable_caret+set}" = set; then
4074 enableval="$enable_caret"
4075
4076 if test "$enableval" = yes; then
4077 ac_cv_use_caret='wxUSE_CARET=yes'
4078 else
4079 ac_cv_use_caret='wxUSE_CARET=no'
4080 fi
4081
4082else
4083
4084 LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
4085 if test "x$LINE" != x ; then
4086 eval "DEFAULT_$LINE"
4087 else
4088 no_cache=1
4089 fi
4090
4091 ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
4092
4093fi
4094
4095
4096 eval "$ac_cv_use_caret"
4097 if test "$no_cache" != 1; then
4098 echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
4099 fi
4100
4101 if test "$wxUSE_CARET" = yes; then
4102 echo "$ac_t""yes" 1>&6
4103 else
4104 echo "$ac_t""no" 1>&6
4105 fi
4106
4107
4108 echo $ac_n "checking "for --enable-bmpbutton"""... $ac_c" 1>&6
bdad4e7e 4109echo "configure:4110: checking "for --enable-bmpbutton"" >&5
10f2d63a
VZ
4110 no_cache=0
4111 # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
4112if test "${enable_bmpbutton+set}" = set; then
4113 enableval="$enable_bmpbutton"
4114
4115 if test "$enableval" = yes; then
4116 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
4117 else
4118 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
4119 fi
4120
4121else
4122
4123 LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
4124 if test "x$LINE" != x ; then
4125 eval "DEFAULT_$LINE"
4126 else
4127 no_cache=1
4128 fi
4129
4130 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
4131
4132fi
4133
4134
4135 eval "$ac_cv_use_bmpbutton"
4136 if test "$no_cache" != 1; then
4137 echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
4138 fi
4139
4140 if test "$wxUSE_BMPBUTTON" = yes; then
4141 echo "$ac_t""yes" 1>&6
4142 else
4143 echo "$ac_t""no" 1>&6
4144 fi
4145
4146
4147 echo $ac_n "checking "for --enable-checkbox"""... $ac_c" 1>&6
bdad4e7e 4148echo "configure:4149: checking "for --enable-checkbox"" >&5
10f2d63a
VZ
4149 no_cache=0
4150 # Check whether --enable-checkbox or --disable-checkbox was given.
4151if test "${enable_checkbox+set}" = set; then
4152 enableval="$enable_checkbox"
4153
4154 if test "$enableval" = yes; then
4155 ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
4156 else
4157 ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
4158 fi
4159
4160else
4161
4162 LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
4163 if test "x$LINE" != x ; then
4164 eval "DEFAULT_$LINE"
4165 else
4166 no_cache=1
4167 fi
4168
4169 ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
4170
4171fi
4172
4173
4174 eval "$ac_cv_use_checkbox"
4175 if test "$no_cache" != 1; then
4176 echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
4177 fi
4178
4179 if test "$wxUSE_CHECKBOX" = yes; then
4180 echo "$ac_t""yes" 1>&6
4181 else
4182 echo "$ac_t""no" 1>&6
4183 fi
4184
4185
4186 echo $ac_n "checking "for --enable-checklst"""... $ac_c" 1>&6
bdad4e7e 4187echo "configure:4188: checking "for --enable-checklst"" >&5
10f2d63a
VZ
4188 no_cache=0
4189 # Check whether --enable-checklst or --disable-checklst was given.
4190if test "${enable_checklst+set}" = set; then
4191 enableval="$enable_checklst"
4192
4193 if test "$enableval" = yes; then
4194 ac_cv_use_checklst='wxUSE_CHECKLST=yes'
4195 else
4196 ac_cv_use_checklst='wxUSE_CHECKLST=no'
4197 fi
4198
4199else
4200
4201 LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
4202 if test "x$LINE" != x ; then
4203 eval "DEFAULT_$LINE"
4204 else
4205 no_cache=1
4206 fi
4207
4208 ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
4209
4210fi
4211
4212
4213 eval "$ac_cv_use_checklst"
4214 if test "$no_cache" != 1; then
4215 echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
4216 fi
4217
4218 if test "$wxUSE_CHECKLST" = yes; then
4219 echo "$ac_t""yes" 1>&6
4220 else
4221 echo "$ac_t""no" 1>&6
4222 fi
4223
4224
4225 echo $ac_n "checking "for --enable-choice"""... $ac_c" 1>&6
bdad4e7e 4226echo "configure:4227: checking "for --enable-choice"" >&5
10f2d63a
VZ
4227 no_cache=0
4228 # Check whether --enable-choice or --disable-choice was given.
4229if test "${enable_choice+set}" = set; then
4230 enableval="$enable_choice"
4231
4232 if test "$enableval" = yes; then
4233 ac_cv_use_choice='wxUSE_CHOICE=yes'
4234 else
4235 ac_cv_use_choice='wxUSE_CHOICE=no'
4236 fi
4237
4238else
4239
4240 LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
4241 if test "x$LINE" != x ; then
4242 eval "DEFAULT_$LINE"
4243 else
4244 no_cache=1
4245 fi
4246
4247 ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
4248
4249fi
4250
4251
4252 eval "$ac_cv_use_choice"
4253 if test "$no_cache" != 1; then
4254 echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
4255 fi
4256
4257 if test "$wxUSE_CHOICE" = yes; then
4258 echo "$ac_t""yes" 1>&6
4259 else
4260 echo "$ac_t""no" 1>&6
4261 fi
4262
4263
4264 echo $ac_n "checking "for --enable-combobox"""... $ac_c" 1>&6
bdad4e7e 4265echo "configure:4266: checking "for --enable-combobox"" >&5
10f2d63a
VZ
4266 no_cache=0
4267 # Check whether --enable-combobox or --disable-combobox was given.
4268if test "${enable_combobox+set}" = set; then
4269 enableval="$enable_combobox"
4270
4271 if test "$enableval" = yes; then
4272 ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
4273 else
4274 ac_cv_use_combobox='wxUSE_COMBOBOX=no'
4275 fi
4276
4277else
4278
4279 LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
4280 if test "x$LINE" != x ; then
4281 eval "DEFAULT_$LINE"
4282 else
4283 no_cache=1
4284 fi
4285
4286 ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
4287
4288fi
4289
4290
4291 eval "$ac_cv_use_combobox"
4292 if test "$no_cache" != 1; then
4293 echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
4294 fi
4295
4296 if test "$wxUSE_COMBOBOX" = yes; then
4297 echo "$ac_t""yes" 1>&6
4298 else
4299 echo "$ac_t""no" 1>&6
4300 fi
4301
4302
4303 echo $ac_n "checking "for --enable-gauge"""... $ac_c" 1>&6
bdad4e7e 4304echo "configure:4305: checking "for --enable-gauge"" >&5
10f2d63a
VZ
4305 no_cache=0
4306 # Check whether --enable-gauge or --disable-gauge was given.
4307if test "${enable_gauge+set}" = set; then
4308 enableval="$enable_gauge"
4309
4310 if test "$enableval" = yes; then
4311 ac_cv_use_gauge='wxUSE_GAUGE=yes'
4312 else
4313 ac_cv_use_gauge='wxUSE_GAUGE=no'
4314 fi
4315
4316else
4317
4318 LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
4319 if test "x$LINE" != x ; then
4320 eval "DEFAULT_$LINE"
4321 else
4322 no_cache=1
4323 fi
4324
4325 ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
4326
4327fi
4328
4329
4330 eval "$ac_cv_use_gauge"
4331 if test "$no_cache" != 1; then
4332 echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
4333 fi
4334
4335 if test "$wxUSE_GAUGE" = yes; then
4336 echo "$ac_t""yes" 1>&6
4337 else
4338 echo "$ac_t""no" 1>&6
4339 fi
4340
4341
4342 echo $ac_n "checking "for --enable-grid"""... $ac_c" 1>&6
bdad4e7e 4343echo "configure:4344: checking "for --enable-grid"" >&5
10f2d63a
VZ
4344 no_cache=0
4345 # Check whether --enable-grid or --disable-grid was given.
4346if test "${enable_grid+set}" = set; then
4347 enableval="$enable_grid"
4348
4349 if test "$enableval" = yes; then
4350 ac_cv_use_grid='wxUSE_GRID=yes'
4351 else
4352 ac_cv_use_grid='wxUSE_GRID=no'
4353 fi
4354
4355else
4356
4357 LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
4358 if test "x$LINE" != x ; then
4359 eval "DEFAULT_$LINE"
4360 else
4361 no_cache=1
4362 fi
4363
4364 ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
4365
4366fi
4367
4368
4369 eval "$ac_cv_use_grid"
4370 if test "$no_cache" != 1; then
4371 echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
4372 fi
4373
4374 if test "$wxUSE_GRID" = yes; then
4375 echo "$ac_t""yes" 1>&6
4376 else
4377 echo "$ac_t""no" 1>&6
4378 fi
4379
4380
4381 echo $ac_n "checking "for --enable-newgrid"""... $ac_c" 1>&6
bdad4e7e 4382echo "configure:4383: checking "for --enable-newgrid"" >&5
10f2d63a
VZ
4383 no_cache=0
4384 # Check whether --enable-newgrid or --disable-newgrid was given.
4385if test "${enable_newgrid+set}" = set; then
4386 enableval="$enable_newgrid"
4387
4388 if test "$enableval" = yes; then
4389 ac_cv_use_newgrid='wxUSE_NEW_GRID=yes'
4390 else
4391 ac_cv_use_newgrid='wxUSE_NEW_GRID=no'
4392 fi
4393
4394else
4395
4396 LINE=`grep "wxUSE_NEW_GRID" ${wx_arg_cache_file}`
4397 if test "x$LINE" != x ; then
4398 eval "DEFAULT_$LINE"
4399 else
4400 no_cache=1
4401 fi
4402
4403 ac_cv_use_newgrid='wxUSE_NEW_GRID='$DEFAULT_wxUSE_NEW_GRID
4404
4405fi
4406
4407
4408 eval "$ac_cv_use_newgrid"
4409 if test "$no_cache" != 1; then
4410 echo $ac_cv_use_newgrid >> ${wx_arg_cache_file}.tmp
4411 fi
4412
4413 if test "$wxUSE_NEW_GRID" = yes; then
4414 echo "$ac_t""yes" 1>&6
4415 else
4416 echo "$ac_t""no" 1>&6
4417 fi
4418
4419
4420 echo $ac_n "checking "for --enable-imaglist"""... $ac_c" 1>&6
bdad4e7e 4421echo "configure:4422: checking "for --enable-imaglist"" >&5
10f2d63a
VZ
4422 no_cache=0
4423 # Check whether --enable-imaglist or --disable-imaglist was given.
4424if test "${enable_imaglist+set}" = set; then
4425 enableval="$enable_imaglist"
4426
4427 if test "$enableval" = yes; then
4428 ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
4429 else
4430 ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
4431 fi
4432
4433else
4434
4435 LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
4436 if test "x$LINE" != x ; then
4437 eval "DEFAULT_$LINE"
4438 else
4439 no_cache=1
4440 fi
4441
4442 ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
4443
4444fi
4445
4446
4447 eval "$ac_cv_use_imaglist"
4448 if test "$no_cache" != 1; then
4449 echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
4450 fi
4451
4452 if test "$wxUSE_IMAGLIST" = yes; then
4453 echo "$ac_t""yes" 1>&6
4454 else
4455 echo "$ac_t""no" 1>&6
4456 fi
4457
4458
4459 echo $ac_n "checking "for --enable-listbox"""... $ac_c" 1>&6
bdad4e7e 4460echo "configure:4461: checking "for --enable-listbox"" >&5
10f2d63a
VZ
4461 no_cache=0
4462 # Check whether --enable-listbox or --disable-listbox was given.
4463if test "${enable_listbox+set}" = set; then
4464 enableval="$enable_listbox"
4465
4466 if test "$enableval" = yes; then
4467 ac_cv_use_listbox='wxUSE_LISTBOX=yes'
4468 else
4469 ac_cv_use_listbox='wxUSE_LISTBOX=no'
4470 fi
4471
4472else
4473
4474 LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
4475 if test "x$LINE" != x ; then
4476 eval "DEFAULT_$LINE"
4477 else
4478 no_cache=1
4479 fi
4480
4481 ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
4482
4483fi
4484
4485
4486 eval "$ac_cv_use_listbox"
4487 if test "$no_cache" != 1; then
4488 echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
4489 fi
4490
4491 if test "$wxUSE_LISTBOX" = yes; then
4492 echo "$ac_t""yes" 1>&6
4493 else
4494 echo "$ac_t""no" 1>&6
4495 fi
4496
4497
4498 echo $ac_n "checking "for --enable-listctrl"""... $ac_c" 1>&6
bdad4e7e 4499echo "configure:4500: checking "for --enable-listctrl"" >&5
10f2d63a
VZ
4500 no_cache=0
4501 # Check whether --enable-listctrl or --disable-listctrl was given.
4502if test "${enable_listctrl+set}" = set; then
4503 enableval="$enable_listctrl"
4504
4505 if test "$enableval" = yes; then
4506 ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
4507 else
4508 ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
4509 fi
4510
4511else
4512
4513 LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
4514 if test "x$LINE" != x ; then
4515 eval "DEFAULT_$LINE"
4516 else
4517 no_cache=1
4518 fi
4519
4520 ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
4521
4522fi
4523
4524
4525 eval "$ac_cv_use_listctrl"
4526 if test "$no_cache" != 1; then
4527 echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
4528 fi
4529
4530 if test "$wxUSE_LISTCTRL" = yes; then
4531 echo "$ac_t""yes" 1>&6
4532 else
4533 echo "$ac_t""no" 1>&6
4534 fi
4535
4536
4537 echo $ac_n "checking "for --enable-notebook"""... $ac_c" 1>&6
bdad4e7e 4538echo "configure:4539: checking "for --enable-notebook"" >&5
10f2d63a
VZ
4539 no_cache=0
4540 # Check whether --enable-notebook or --disable-notebook was given.
4541if test "${enable_notebook+set}" = set; then
4542 enableval="$enable_notebook"
4543
4544 if test "$enableval" = yes; then
4545 ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
4546 else
4547 ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
4548 fi
4549
4550else
4551
4552 LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
4553 if test "x$LINE" != x ; then
4554 eval "DEFAULT_$LINE"
4555 else
4556 no_cache=1
4557 fi
4558
4559 ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
4560
4561fi
4562
4563
4564 eval "$ac_cv_use_notebook"
4565 if test "$no_cache" != 1; then
4566 echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
4567 fi
4568
4569 if test "$wxUSE_NOTEBOOK" = yes; then
4570 echo "$ac_t""yes" 1>&6
4571 else
4572 echo "$ac_t""no" 1>&6
4573 fi
4574
4575
4576 echo $ac_n "checking "for --enable-radiobox"""... $ac_c" 1>&6
bdad4e7e 4577echo "configure:4578: checking "for --enable-radiobox"" >&5
10f2d63a
VZ
4578 no_cache=0
4579 # Check whether --enable-radiobox or --disable-radiobox was given.
4580if test "${enable_radiobox+set}" = set; then
4581 enableval="$enable_radiobox"
4582
4583 if test "$enableval" = yes; then
4584 ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
4585 else
4586 ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
4587 fi
4588
4589else
4590
4591 LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
4592 if test "x$LINE" != x ; then
4593 eval "DEFAULT_$LINE"
4594 else
4595 no_cache=1
4596 fi
4597
4598 ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
4599
4600fi
4601
4602
4603 eval "$ac_cv_use_radiobox"
4604 if test "$no_cache" != 1; then
4605 echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
4606 fi
4607
4608 if test "$wxUSE_RADIOBOX" = yes; then
4609 echo "$ac_t""yes" 1>&6
4610 else
4611 echo "$ac_t""no" 1>&6
4612 fi
4613
4614
4615 echo $ac_n "checking "for --enable-radiobtn"""... $ac_c" 1>&6
bdad4e7e 4616echo "configure:4617: checking "for --enable-radiobtn"" >&5
10f2d63a
VZ
4617 no_cache=0
4618 # Check whether --enable-radiobtn or --disable-radiobtn was given.
4619if test "${enable_radiobtn+set}" = set; then
4620 enableval="$enable_radiobtn"
4621
4622 if test "$enableval" = yes; then
4623 ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
4624 else
4625 ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
4626 fi
4627
4628else
4629
4630 LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
4631 if test "x$LINE" != x ; then
4632 eval "DEFAULT_$LINE"
4633 else
4634 no_cache=1
4635 fi
4636
4637 ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
4638
4639fi
4640
4641
4642 eval "$ac_cv_use_radiobtn"
4643 if test "$no_cache" != 1; then
4644 echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
4645 fi
4646
4647 if test "$wxUSE_RADIOBTN" = yes; then
4648 echo "$ac_t""yes" 1>&6
4649 else
4650 echo "$ac_t""no" 1>&6
4651 fi
4652
4653
4654 echo $ac_n "checking "for --enable-sash"""... $ac_c" 1>&6
bdad4e7e 4655echo "configure:4656: checking "for --enable-sash"" >&5
10f2d63a
VZ
4656 no_cache=0
4657 # Check whether --enable-sash or --disable-sash was given.
4658if test "${enable_sash+set}" = set; then
4659 enableval="$enable_sash"
4660
4661 if test "$enableval" = yes; then
4662 ac_cv_use_sash='wxUSE_SASH=yes'
4663 else
4664 ac_cv_use_sash='wxUSE_SASH=no'
4665 fi
4666
4667else
4668
4669 LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
4670 if test "x$LINE" != x ; then
4671 eval "DEFAULT_$LINE"
4672 else
4673 no_cache=1
4674 fi
4675
4676 ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
4677
4678fi
4679
4680
4681 eval "$ac_cv_use_sash"
4682 if test "$no_cache" != 1; then
4683 echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
4684 fi
4685
4686 if test "$wxUSE_SASH" = yes; then
4687 echo "$ac_t""yes" 1>&6
4688 else
4689 echo "$ac_t""no" 1>&6
4690 fi
4691
4692
4693 echo $ac_n "checking "for --enable-scrollbar"""... $ac_c" 1>&6
bdad4e7e 4694echo "configure:4695: checking "for --enable-scrollbar"" >&5
10f2d63a
VZ
4695 no_cache=0
4696 # Check whether --enable-scrollbar or --disable-scrollbar was given.
4697if test "${enable_scrollbar+set}" = set; then
4698 enableval="$enable_scrollbar"
4699
4700 if test "$enableval" = yes; then
4701 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
4702 else
4703 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
4704 fi
4705
4706else
4707
4708 LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
4709 if test "x$LINE" != x ; then
4710 eval "DEFAULT_$LINE"
4711 else
4712 no_cache=1
4713 fi
4714
4715 ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
4716
4717fi
4718
4719
4720 eval "$ac_cv_use_scrollbar"
4721 if test "$no_cache" != 1; then
4722 echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
4723 fi
4724
4725 if test "$wxUSE_SCROLLBAR" = yes; then
4726 echo "$ac_t""yes" 1>&6
4727 else
4728 echo "$ac_t""no" 1>&6
4729 fi
4730
4731
4732 echo $ac_n "checking "for --enable-slider"""... $ac_c" 1>&6
bdad4e7e 4733echo "configure:4734: checking "for --enable-slider"" >&5
10f2d63a
VZ
4734 no_cache=0
4735 # Check whether --enable-slider or --disable-slider was given.
4736if test "${enable_slider+set}" = set; then
4737 enableval="$enable_slider"
4738
4739 if test "$enableval" = yes; then
4740 ac_cv_use_slider='wxUSE_SLIDER=yes'
4741 else
4742 ac_cv_use_slider='wxUSE_SLIDER=no'
4743 fi
4744
4745else
4746
4747 LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
4748 if test "x$LINE" != x ; then
4749 eval "DEFAULT_$LINE"
4750 else
4751 no_cache=1
4752 fi
4753
4754 ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
4755
4756fi
4757
4758
4759 eval "$ac_cv_use_slider"
4760 if test "$no_cache" != 1; then
4761 echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
4762 fi
4763
4764 if test "$wxUSE_SLIDER" = yes; then
4765 echo "$ac_t""yes" 1>&6
4766 else
4767 echo "$ac_t""no" 1>&6
4768 fi
4769
4770
4771 echo $ac_n "checking "for --enable-spinbtn"""... $ac_c" 1>&6
bdad4e7e 4772echo "configure:4773: checking "for --enable-spinbtn"" >&5
10f2d63a
VZ
4773 no_cache=0
4774 # Check whether --enable-spinbtn or --disable-spinbtn was given.
4775if test "${enable_spinbtn+set}" = set; then
4776 enableval="$enable_spinbtn"
4777
4778 if test "$enableval" = yes; then
4779 ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
4780 else
4781 ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
4782 fi
4783
4784else
4785
4786 LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
4787 if test "x$LINE" != x ; then
4788 eval "DEFAULT_$LINE"
4789 else
4790 no_cache=1
4791 fi
4792
4793 ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
4794
4795fi
4796
4797
4798 eval "$ac_cv_use_spinbtn"
4799 if test "$no_cache" != 1; then
4800 echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
4801 fi
4802
4803 if test "$wxUSE_SPINBTN" = yes; then
4804 echo "$ac_t""yes" 1>&6
4805 else
4806 echo "$ac_t""no" 1>&6
4807 fi
4808
4809
56cfaa52 4810 echo $ac_n "checking "for --enable-spinctrl"""... $ac_c" 1>&6
bdad4e7e 4811echo "configure:4812: checking "for --enable-spinctrl"" >&5
56cfaa52
RR
4812 no_cache=0
4813 # Check whether --enable-spinctrl or --disable-spinctrl was given.
4814if test "${enable_spinctrl+set}" = set; then
4815 enableval="$enable_spinctrl"
4816
4817 if test "$enableval" = yes; then
4818 ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
4819 else
4820 ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
4821 fi
4822
4823else
4824
4825 LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
4826 if test "x$LINE" != x ; then
4827 eval "DEFAULT_$LINE"
4828 else
4829 no_cache=1
4830 fi
4831
4832 ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
4833
4834fi
4835
4836
4837 eval "$ac_cv_use_spinctrl"
4838 if test "$no_cache" != 1; then
4839 echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
4840 fi
4841
4842 if test "$wxUSE_SPINCTRL" = yes; then
4843 echo "$ac_t""yes" 1>&6
4844 else
4845 echo "$ac_t""no" 1>&6
4846 fi
4847
4848
10f2d63a 4849 echo $ac_n "checking "for --enable-splitter"""... $ac_c" 1>&6
bdad4e7e 4850echo "configure:4851: checking "for --enable-splitter"" >&5
10f2d63a
VZ
4851 no_cache=0
4852 # Check whether --enable-splitter or --disable-splitter was given.
4853if test "${enable_splitter+set}" = set; then
4854 enableval="$enable_splitter"
4855
4856 if test "$enableval" = yes; then
4857 ac_cv_use_splitter='wxUSE_SPLITTER=yes'
4858 else
4859 ac_cv_use_splitter='wxUSE_SPLITTER=no'
4860 fi
4861
4862else
4863
4864 LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
4865 if test "x$LINE" != x ; then
4866 eval "DEFAULT_$LINE"
4867 else
4868 no_cache=1
4869 fi
4870
4871 ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
4872
4873fi
4874
4875
4876 eval "$ac_cv_use_splitter"
4877 if test "$no_cache" != 1; then
4878 echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
4879 fi
4880
4881 if test "$wxUSE_SPLITTER" = yes; then
4882 echo "$ac_t""yes" 1>&6
4883 else
4884 echo "$ac_t""no" 1>&6
4885 fi
4886
4887
4888 echo $ac_n "checking "for --enable-statbmp"""... $ac_c" 1>&6
bdad4e7e 4889echo "configure:4890: checking "for --enable-statbmp"" >&5
10f2d63a
VZ
4890 no_cache=0
4891 # Check whether --enable-statbmp or --disable-statbmp was given.
4892if test "${enable_statbmp+set}" = set; then
4893 enableval="$enable_statbmp"
4894
4895 if test "$enableval" = yes; then
4896 ac_cv_use_statbmp='wxUSE_STATBMP=yes'
4897 else
4898 ac_cv_use_statbmp='wxUSE_STATBMP=no'
4899 fi
4900
4901else
4902
4903 LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
4904 if test "x$LINE" != x ; then
4905 eval "DEFAULT_$LINE"
4906 else
4907 no_cache=1
4908 fi
4909
4910 ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
4911
4912fi
4913
4914
4915 eval "$ac_cv_use_statbmp"
4916 if test "$no_cache" != 1; then
4917 echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
4918 fi
4919
4920 if test "$wxUSE_STATBMP" = yes; then
4921 echo "$ac_t""yes" 1>&6
4922 else
4923 echo "$ac_t""no" 1>&6
4924 fi
4925
4926
4927 echo $ac_n "checking "for --enable-statbox"""... $ac_c" 1>&6
bdad4e7e 4928echo "configure:4929: checking "for --enable-statbox"" >&5
10f2d63a
VZ
4929 no_cache=0
4930 # Check whether --enable-statbox or --disable-statbox was given.
4931if test "${enable_statbox+set}" = set; then
4932 enableval="$enable_statbox"
4933
4934 if test "$enableval" = yes; then
4935 ac_cv_use_statbox='wxUSE_STATBOX=yes'
4936 else
4937 ac_cv_use_statbox='wxUSE_STATBOX=no'
4938 fi
4939
4940else
4941
4942 LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
4943 if test "x$LINE" != x ; then
4944 eval "DEFAULT_$LINE"
4945 else
4946 no_cache=1
4947 fi
4948
4949 ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
4950
4951fi
4952
4953
4954 eval "$ac_cv_use_statbox"
4955 if test "$no_cache" != 1; then
4956 echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
4957 fi
4958
4959 if test "$wxUSE_STATBOX" = yes; then
4960 echo "$ac_t""yes" 1>&6
4961 else
4962 echo "$ac_t""no" 1>&6
4963 fi
4964
4965
4966 echo $ac_n "checking "for --enable-statline"""... $ac_c" 1>&6
bdad4e7e 4967echo "configure:4968: checking "for --enable-statline"" >&5
10f2d63a
VZ
4968 no_cache=0
4969 # Check whether --enable-statline or --disable-statline was given.
4970if test "${enable_statline+set}" = set; then
4971 enableval="$enable_statline"
4972
4973 if test "$enableval" = yes; then
4974 ac_cv_use_statline='wxUSE_STATLINE=yes'
4975 else
4976 ac_cv_use_statline='wxUSE_STATLINE=no'
4977 fi
4978
4979else
4980
4981 LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
4982 if test "x$LINE" != x ; then
4983 eval "DEFAULT_$LINE"
4984 else
4985 no_cache=1
4986 fi
4987
4988 ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
4989
4990fi
4991
4992
4993 eval "$ac_cv_use_statline"
4994 if test "$no_cache" != 1; then
4995 echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
4996 fi
4997
4998 if test "$wxUSE_STATLINE" = yes; then
4999 echo "$ac_t""yes" 1>&6
5000 else
5001 echo "$ac_t""no" 1>&6
5002 fi
5003
5004
5005 echo $ac_n "checking "for --enable-statusbar"""... $ac_c" 1>&6
bdad4e7e 5006echo "configure:5007: checking "for --enable-statusbar"" >&5
10f2d63a
VZ
5007 no_cache=0
5008 # Check whether --enable-statusbar or --disable-statusbar was given.
5009if test "${enable_statusbar+set}" = set; then
5010 enableval="$enable_statusbar"
5011
5012 if test "$enableval" = yes; then
5013 ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
5014 else
5015 ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
5016 fi
5017
5018else
5019
5020 LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
5021 if test "x$LINE" != x ; then
5022 eval "DEFAULT_$LINE"
5023 else
5024 no_cache=1
5025 fi
5026
5027 ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
5028
5029fi
5030
5031
5032 eval "$ac_cv_use_statusbar"
5033 if test "$no_cache" != 1; then
5034 echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
5035 fi
5036
5037 if test "$wxUSE_STATUSBAR" = yes; then
5038 echo "$ac_t""yes" 1>&6
5039 else
5040 echo "$ac_t""no" 1>&6
5041 fi
5042
5043
5044 echo $ac_n "checking "for --enable-tabdialog"""... $ac_c" 1>&6
bdad4e7e 5045echo "configure:5046: checking "for --enable-tabdialog"" >&5
10f2d63a
VZ
5046 no_cache=0
5047 # Check whether --enable-tabdialog or --disable-tabdialog was given.
5048if test "${enable_tabdialog+set}" = set; then
5049 enableval="$enable_tabdialog"
5050
5051 if test "$enableval" = yes; then
5052 ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes'
5053 else
5054 ac_cv_use_tabdialog='wxUSE_TABDIALOG=no'
5055 fi
5056
5057else
5058
5059 LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}`
5060 if test "x$LINE" != x ; then
5061 eval "DEFAULT_$LINE"
5062 else
5063 no_cache=1
5064 fi
5065
5066 ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG
5067
5068fi
5069
5070
5071 eval "$ac_cv_use_tabdialog"
5072 if test "$no_cache" != 1; then
5073 echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
5074 fi
5075
5076 if test "$wxUSE_TABDIALOG" = yes; then
5077 echo "$ac_t""yes" 1>&6
5078 else
5079 echo "$ac_t""no" 1>&6
5080 fi
5081
5082
5083 echo $ac_n "checking "for --enable-toolbar"""... $ac_c" 1>&6
bdad4e7e 5084echo "configure:5085: checking "for --enable-toolbar"" >&5
10f2d63a
VZ
5085 no_cache=0
5086 # Check whether --enable-toolbar or --disable-toolbar was given.
5087if test "${enable_toolbar+set}" = set; then
5088 enableval="$enable_toolbar"
5089
5090 if test "$enableval" = yes; then
5091 ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
5092 else
5093 ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
5094 fi
5095
5096else
5097
5098 LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
5099 if test "x$LINE" != x ; then
5100 eval "DEFAULT_$LINE"
5101 else
5102 no_cache=1
5103 fi
5104
5105 ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
5106
5107fi
5108
5109
5110 eval "$ac_cv_use_toolbar"
5111 if test "$no_cache" != 1; then
5112 echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
5113 fi
5114
5115 if test "$wxUSE_TOOLBAR" = yes; then
5116 echo "$ac_t""yes" 1>&6
5117 else
5118 echo "$ac_t""no" 1>&6
5119 fi
5120
5121
360d6699 5122 echo $ac_n "checking "for --enable-tbarnative"""... $ac_c" 1>&6
bdad4e7e 5123echo "configure:5124: checking "for --enable-tbarnative"" >&5
360d6699
VZ
5124 no_cache=0
5125 # Check whether --enable-tbarnative or --disable-tbarnative was given.
5126if test "${enable_tbarnative+set}" = set; then
5127 enableval="$enable_tbarnative"
5128
5129 if test "$enableval" = yes; then
5130 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
5131 else
5132 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
5133 fi
5134
5135else
5136
5137 LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
5138 if test "x$LINE" != x ; then
5139 eval "DEFAULT_$LINE"
5140 else
5141 no_cache=1
5142 fi
5143
5144 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
5145
5146fi
5147
5148
5149 eval "$ac_cv_use_tbarnative"
5150 if test "$no_cache" != 1; then
5151 echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
5152 fi
5153
5154 if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
5155 echo "$ac_t""yes" 1>&6
5156 else
5157 echo "$ac_t""no" 1>&6
5158 fi
5159
5160
5161 echo $ac_n "checking "for --enable-tbarsmpl"""... $ac_c" 1>&6
bdad4e7e 5162echo "configure:5163: checking "for --enable-tbarsmpl"" >&5
360d6699
VZ
5163 no_cache=0
5164 # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given.
5165if test "${enable_tbarsmpl+set}" = set; then
5166 enableval="$enable_tbarsmpl"
5167
5168 if test "$enableval" = yes; then
5169 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes'
5170 else
5171 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no'
5172 fi
5173
5174else
5175
5176 LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}`
5177 if test "x$LINE" != x ; then
5178 eval "DEFAULT_$LINE"
5179 else
5180 no_cache=1
5181 fi
5182
5183 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE
5184
5185fi
5186
5187
5188 eval "$ac_cv_use_tbarsmpl"
5189 if test "$no_cache" != 1; then
5190 echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp
5191 fi
5192
5193 if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then
5194 echo "$ac_t""yes" 1>&6
5195 else
5196 echo "$ac_t""no" 1>&6
5197 fi
5198
5199
10f2d63a 5200 echo $ac_n "checking "for --enable-treectrl"""... $ac_c" 1>&6
bdad4e7e 5201echo "configure:5202: checking "for --enable-treectrl"" >&5
10f2d63a
VZ
5202 no_cache=0
5203 # Check whether --enable-treectrl or --disable-treectrl was given.
5204if test "${enable_treectrl+set}" = set; then
5205 enableval="$enable_treectrl"
5206
5207 if test "$enableval" = yes; then
5208 ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
5209 else
5210 ac_cv_use_treectrl='wxUSE_TREECTRL=no'
5211 fi
5212
5213else
5214
5215 LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
5216 if test "x$LINE" != x ; then
5217 eval "DEFAULT_$LINE"
5218 else
5219 no_cache=1
5220 fi
5221
5222 ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
5223
5224fi
5225
5226
5227 eval "$ac_cv_use_treectrl"
5228 if test "$no_cache" != 1; then
5229 echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
5230 fi
5231
5232 if test "$wxUSE_TREECTRL" = yes; then
5233 echo "$ac_t""yes" 1>&6
5234 else
5235 echo "$ac_t""no" 1>&6
5236 fi
5237
5238
5239
5240
5241 echo $ac_n "checking "for --enable-commondlg"""... $ac_c" 1>&6
bdad4e7e 5242echo "configure:5243: checking "for --enable-commondlg"" >&5
10f2d63a
VZ
5243 no_cache=0
5244 # Check whether --enable-commondlg or --disable-commondlg was given.
5245if test "${enable_commondlg+set}" = set; then
5246 enableval="$enable_commondlg"
5247
5248 if test "$enableval" = yes; then
5249 ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
5250 else
5251 ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
5252 fi
5253
5254else
5255
5256 LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
5257 if test "x$LINE" != x ; then
5258 eval "DEFAULT_$LINE"
5259 else
5260 no_cache=1
5261 fi
5262
5263 ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
5264
5265fi
5266
5267
5268 eval "$ac_cv_use_commondlg"
5269 if test "$no_cache" != 1; then
5270 echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
5271 fi
5272
5273 if test "$wxUSE_COMMONDLGS" = yes; then
5274 echo "$ac_t""yes" 1>&6
5275 else
5276 echo "$ac_t""no" 1>&6
5277 fi
5278
5279
5280 echo $ac_n "checking "for --enable-dirdlg"""... $ac_c" 1>&6
bdad4e7e 5281echo "configure:5282: checking "for --enable-dirdlg"" >&5
10f2d63a
VZ
5282 no_cache=0
5283 # Check whether --enable-dirdlg or --disable-dirdlg was given.
5284if test "${enable_dirdlg+set}" = set; then
5285 enableval="$enable_dirdlg"
5286
5287 if test "$enableval" = yes; then
5288 ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
5289 else
5290 ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
5291 fi
5292
5293else
5294
5295 LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
5296 if test "x$LINE" != x ; then
5297 eval "DEFAULT_$LINE"
5298 else
5299 no_cache=1
5300 fi
5301
5302 ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
5303
5304fi
5305
5306
5307 eval "$ac_cv_use_dirdlg"
5308 if test "$no_cache" != 1; then
5309 echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
5310 fi
5311
5312 if test "$wxUSE_DIRDLG" = yes; then
5313 echo "$ac_t""yes" 1>&6
5314 else
5315 echo "$ac_t""no" 1>&6
5316 fi
5317
5318
5319 echo $ac_n "checking "for --enable-textdlg"""... $ac_c" 1>&6
bdad4e7e 5320echo "configure:5321: checking "for --enable-textdlg"" >&5
10f2d63a
VZ
5321 no_cache=0
5322 # Check whether --enable-textdlg or --disable-textdlg was given.
5323if test "${enable_textdlg+set}" = set; then
5324 enableval="$enable_textdlg"
5325
5326 if test "$enableval" = yes; then
5327 ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
5328 else
5329 ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
5330 fi
5331
5332else
5333
5334 LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
5335 if test "x$LINE" != x ; then
5336 eval "DEFAULT_$LINE"
5337 else
5338 no_cache=1
5339 fi
5340
5341 ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
5342
5343fi
5344
5345
5346 eval "$ac_cv_use_textdlg"
5347 if test "$no_cache" != 1; then
5348 echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
5349 fi
5350
5351 if test "$wxUSE_TEXTDLG" = yes; then
5352 echo "$ac_t""yes" 1>&6
5353 else
5354 echo "$ac_t""no" 1>&6
5355 fi
5356
5357
5358 echo $ac_n "checking "for --enable-tipdlg"""... $ac_c" 1>&6
bdad4e7e 5359echo "configure:5360: checking "for --enable-tipdlg"" >&5
10f2d63a
VZ
5360 no_cache=0
5361 # Check whether --enable-tipdlg or --disable-tipdlg was given.
5362if test "${enable_tipdlg+set}" = set; then
5363 enableval="$enable_tipdlg"
5364
5365 if test "$enableval" = yes; then
5366 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
5367 else
5368 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
5369 fi
5370
5371else
5372
5373 LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
5374 if test "x$LINE" != x ; then
5375 eval "DEFAULT_$LINE"
5376 else
5377 no_cache=1
5378 fi
5379
5380 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
5381
5382fi
5383
5384
5385 eval "$ac_cv_use_tipdlg"
5386 if test "$no_cache" != 1; then
5387 echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
5388 fi
5389
5390 if test "$wxUSE_STARTUP_TIPS" = yes; then
5391 echo "$ac_t""yes" 1>&6
5392 else
5393 echo "$ac_t""no" 1>&6
5394 fi
5395
5396
5397 echo $ac_n "checking "for --enable-progressdlg"""... $ac_c" 1>&6
bdad4e7e 5398echo "configure:5399: checking "for --enable-progressdlg"" >&5
10f2d63a
VZ
5399 no_cache=0
5400 # Check whether --enable-progressdlg or --disable-progressdlg was given.
5401if test "${enable_progressdlg+set}" = set; then
5402 enableval="$enable_progressdlg"
5403
5404 if test "$enableval" = yes; then
5405 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
5406 else
5407 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
5408 fi
5409
5410else
5411
5412 LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
5413 if test "x$LINE" != x ; then
5414 eval "DEFAULT_$LINE"
5415 else
5416 no_cache=1
5417 fi
5418
5419 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
5420
5421fi
5422
5423
5424 eval "$ac_cv_use_progressdlg"
5425 if test "$no_cache" != 1; then
5426 echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
5427 fi
5428
5429 if test "$wxUSE_PROGRESSDLG" = yes; then
5430 echo "$ac_t""yes" 1>&6
5431 else
5432 echo "$ac_t""no" 1>&6
5433 fi
5434
5435
5436 echo $ac_n "checking "for --enable-miniframe"""... $ac_c" 1>&6
bdad4e7e 5437echo "configure:5438: checking "for --enable-miniframe"" >&5
10f2d63a
VZ
5438 no_cache=0
5439 # Check whether --enable-miniframe or --disable-miniframe was given.
5440if test "${enable_miniframe+set}" = set; then
5441 enableval="$enable_miniframe"
5442
5443 if test "$enableval" = yes; then
5444 ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
5445 else
5446 ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
5447 fi
5448
5449else
5450
5451 LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
5452 if test "x$LINE" != x ; then
5453 eval "DEFAULT_$LINE"
5454 else
5455 no_cache=1
5456 fi
5457
5458 ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
5459
5460fi
5461
5462
5463 eval "$ac_cv_use_miniframe"
5464 if test "$no_cache" != 1; then
5465 echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
5466 fi
5467
5468 if test "$wxUSE_MINIFRAME" = yes; then
5469 echo "$ac_t""yes" 1>&6
5470 else
5471 echo "$ac_t""no" 1>&6
5472 fi
5473
5474
5475 echo $ac_n "checking "for --enable-html"""... $ac_c" 1>&6
bdad4e7e 5476echo "configure:5477: checking "for --enable-html"" >&5
10f2d63a
VZ
5477 no_cache=0
5478 # Check whether --enable-html or --disable-html was given.
5479if test "${enable_html+set}" = set; then
5480 enableval="$enable_html"
5481
5482 if test "$enableval" = yes; then
5483 ac_cv_use_html='wxUSE_HTML=yes'
5484 else
5485 ac_cv_use_html='wxUSE_HTML=no'
5486 fi
5487
5488else
5489
5490 LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
5491 if test "x$LINE" != x ; then
5492 eval "DEFAULT_$LINE"
5493 else
5494 no_cache=1
5495 fi
5496
5497 ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
5498
5499fi
5500
5501
5502 eval "$ac_cv_use_html"
5503 if test "$no_cache" != 1; then
5504 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
5505 fi
5506
5507 if test "$wxUSE_HTML" = yes; then
5508 echo "$ac_t""yes" 1>&6
5509 else
5510 echo "$ac_t""no" 1>&6
5511 fi
5512
5513
5514 echo $ac_n "checking "for --enable-tooltips"""... $ac_c" 1>&6
bdad4e7e 5515echo "configure:5516: checking "for --enable-tooltips"" >&5
10f2d63a
VZ
5516 no_cache=0
5517 # Check whether --enable-tooltips or --disable-tooltips was given.
5518if test "${enable_tooltips+set}" = set; then
5519 enableval="$enable_tooltips"
5520
5521 if test "$enableval" = yes; then
5522 ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
5523 else
5524 ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
5525 fi
5526
5527else
5528
5529 LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
5530 if test "x$LINE" != x ; then
5531 eval "DEFAULT_$LINE"
5532 else
5533 no_cache=1
5534 fi
5535
5536 ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
5537
5538fi
5539
5540
5541 eval "$ac_cv_use_tooltips"
5542 if test "$no_cache" != 1; then
5543 echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
5544 fi
5545
5546 if test "$wxUSE_TOOLTIPS" = yes; then
5547 echo "$ac_t""yes" 1>&6
5548 else
5549 echo "$ac_t""no" 1>&6
5550 fi
5551
5552
5553 echo $ac_n "checking "for --enable-splines"""... $ac_c" 1>&6
bdad4e7e 5554echo "configure:5555: checking "for --enable-splines"" >&5
10f2d63a
VZ
5555 no_cache=0
5556 # Check whether --enable-splines or --disable-splines was given.
5557if test "${enable_splines+set}" = set; then
5558 enableval="$enable_splines"
5559
5560 if test "$enableval" = yes; then
5561 ac_cv_use_splines='wxUSE_SPLINES=yes'
5562 else
5563 ac_cv_use_splines='wxUSE_SPLINES=no'
5564 fi
5565
5566else
5567
5568 LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
5569 if test "x$LINE" != x ; then
5570 eval "DEFAULT_$LINE"
5571 else
5572 no_cache=1
5573 fi
5574
5575 ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
5576
5577fi
5578
5579
5580 eval "$ac_cv_use_splines"
5581 if test "$no_cache" != 1; then
5582 echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
5583 fi
5584
5585 if test "$wxUSE_SPLINES" = yes; then
5586 echo "$ac_t""yes" 1>&6
5587 else
5588 echo "$ac_t""no" 1>&6
5589 fi
5590
5591
5592 echo $ac_n "checking "for --enable-validators"""... $ac_c" 1>&6
bdad4e7e 5593echo "configure:5594: checking "for --enable-validators"" >&5
10f2d63a
VZ
5594 no_cache=0
5595 # Check whether --enable-validators or --disable-validators was given.
5596if test "${enable_validators+set}" = set; then
5597 enableval="$enable_validators"
5598
5599 if test "$enableval" = yes; then
5600 ac_cv_use_validators='wxUSE_VALIDATORS=yes'
5601 else
5602 ac_cv_use_validators='wxUSE_VALIDATORS=no'
5603 fi
5604
5605else
5606
5607 LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
5608 if test "x$LINE" != x ; then
5609 eval "DEFAULT_$LINE"
5610 else
5611 no_cache=1
5612 fi
5613
5614 ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
5615
5616fi
5617
5618
5619 eval "$ac_cv_use_validators"
5620 if test "$no_cache" != 1; then
5621 echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
5622 fi
5623
5624 if test "$wxUSE_VALIDATORS" = yes; then
5625 echo "$ac_t""yes" 1>&6
5626 else
5627 echo "$ac_t""no" 1>&6
5628 fi
5629
5630
5631 echo $ac_n "checking "for --enable-busyinfo"""... $ac_c" 1>&6
bdad4e7e 5632echo "configure:5633: checking "for --enable-busyinfo"" >&5
10f2d63a
VZ
5633 no_cache=0
5634 # Check whether --enable-busyinfo or --disable-busyinfo was given.
5635if test "${enable_busyinfo+set}" = set; then
5636 enableval="$enable_busyinfo"
5637
5638 if test "$enableval" = yes; then
5639 ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
5640 else
5641 ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
5642 fi
5643
5644else
5645
5646 LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
5647 if test "x$LINE" != x ; then
5648 eval "DEFAULT_$LINE"
5649 else
5650 no_cache=1
5651 fi
5652
5653 ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
5654
5655fi
5656
5657
5658 eval "$ac_cv_use_busyinfo"
5659 if test "$no_cache" != 1; then
5660 echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
5661 fi
5662
5663 if test "$wxUSE_BUSYINFO" = yes; then
5664 echo "$ac_t""yes" 1>&6
5665 else
5666 echo "$ac_t""no" 1>&6
5667 fi
5668
5669
9b33fe02 5670 echo $ac_n "checking "for --enable-plot"""... $ac_c" 1>&6
bdad4e7e 5671echo "configure:5672: checking "for --enable-plot"" >&5
9b33fe02
VZ
5672 no_cache=0
5673 # Check whether --enable-plot or --disable-plot was given.
5674if test "${enable_plot+set}" = set; then
5675 enableval="$enable_plot"
5676
5677 if test "$enableval" = yes; then
5678 ac_cv_use_plot='wxUSE_PLOT=yes'
5679 else
5680 ac_cv_use_plot='wxUSE_PLOT=no'
5681 fi
5682
5683else
5684
5685 LINE=`grep "wxUSE_PLOT" ${wx_arg_cache_file}`
5686 if test "x$LINE" != x ; then
5687 eval "DEFAULT_$LINE"
5688 else
5689 no_cache=1
5690 fi
5691
5692 ac_cv_use_plot='wxUSE_PLOT='$DEFAULT_wxUSE_PLOT
5693
5694fi
5695
5696
5697 eval "$ac_cv_use_plot"
5698 if test "$no_cache" != 1; then
5699 echo $ac_cv_use_plot >> ${wx_arg_cache_file}.tmp
5700 fi
5701
5702 if test "$wxUSE_PLOT" = yes; then
5703 echo "$ac_t""yes" 1>&6
5704 else
5705 echo "$ac_t""no" 1>&6
5706 fi
5707
5708
10f2d63a
VZ
5709
5710
5711 echo $ac_n "checking "for --enable-gif"""... $ac_c" 1>&6
bdad4e7e 5712echo "configure:5713: checking "for --enable-gif"" >&5
10f2d63a
VZ
5713 no_cache=0
5714 # Check whether --enable-gif or --disable-gif was given.
5715if test "${enable_gif+set}" = set; then
5716 enableval="$enable_gif"
5717
5718 if test "$enableval" = yes; then
5719 ac_cv_use_gif='wxUSE_GIF=yes'
5720 else
5721 ac_cv_use_gif='wxUSE_GIF=no'
5722 fi
5723
5724else
5725
5726 LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
5727 if test "x$LINE" != x ; then
5728 eval "DEFAULT_$LINE"
5729 else
5730 no_cache=1
5731 fi
5732
5733 ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
5734
5735fi
5736
5737
5738 eval "$ac_cv_use_gif"
5739 if test "$no_cache" != 1; then
5740 echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
5741 fi
5742
5743 if test "$wxUSE_GIF" = yes; then
5744 echo "$ac_t""yes" 1>&6
5745 else
5746 echo "$ac_t""no" 1>&6
5747 fi
5748
5749
5750 echo $ac_n "checking "for --enable-pcx"""... $ac_c" 1>&6
bdad4e7e 5751echo "configure:5752: checking "for --enable-pcx"" >&5
10f2d63a
VZ
5752 no_cache=0
5753 # Check whether --enable-pcx or --disable-pcx was given.
5754if test "${enable_pcx+set}" = set; then
5755 enableval="$enable_pcx"
5756
5757 if test "$enableval" = yes; then
5758 ac_cv_use_pcx='wxUSE_PCX=yes'
5759 else
5760 ac_cv_use_pcx='wxUSE_PCX=no'
5761 fi
5762
5763else
5764
5765 LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
5766 if test "x$LINE" != x ; then
5767 eval "DEFAULT_$LINE"
5768 else
5769 no_cache=1
5770 fi
5771
5772 ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
5773
5774fi
5775
5776
5777 eval "$ac_cv_use_pcx"
5778 if test "$no_cache" != 1; then
5779 echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
5780 fi
5781
5782 if test "$wxUSE_PCX" = yes; then
5783 echo "$ac_t""yes" 1>&6
5784 else
5785 echo "$ac_t""no" 1>&6
5786 fi
5787
5788
5789 echo $ac_n "checking "for --enable-pnm"""... $ac_c" 1>&6
bdad4e7e 5790echo "configure:5791: checking "for --enable-pnm"" >&5
10f2d63a
VZ
5791 no_cache=0
5792 # Check whether --enable-pnm or --disable-pnm was given.
5793if test "${enable_pnm+set}" = set; then
5794 enableval="$enable_pnm"
5795
5796 if test "$enableval" = yes; then
5797 ac_cv_use_pnm='wxUSE_PNM=yes'
5798 else
5799 ac_cv_use_pnm='wxUSE_PNM=no'
5800 fi
5801
5802else
5803
5804 LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
5805 if test "x$LINE" != x ; then
5806 eval "DEFAULT_$LINE"
5807 else
5808 no_cache=1
5809 fi
5810
5811 ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
5812
5813fi
5814
5815
5816 eval "$ac_cv_use_pnm"
5817 if test "$no_cache" != 1; then
5818 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
5819 fi
5820
5821 if test "$wxUSE_PNM" = yes; then
5822 echo "$ac_t""yes" 1>&6
5823 else
5824 echo "$ac_t""no" 1>&6
5825 fi
5826
5827
b12915c1
VZ
5828fi
5829
10f2d63a
VZ
5830
5831 echo "saving argument cache $wx_arg_cache_file"
5832 mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
5833
5834
5835
5836echo $ac_n "checking for toolkit""... $ac_c" 1>&6
bdad4e7e 5837echo "configure:5838: checking for toolkit" >&5
10f2d63a
VZ
5838
5839if test "$wxUSE_GUI" = "yes"; then
5840
b12915c1
VZ
5841if test "$USE_BEOS" = 1; then
5842 { echo "configure: error: BeOS GUI is not supported yet, use --disable-gui" 1>&2; exit 1; }
5843fi
5844
10f2d63a
VZ
5845if test "$TOOLKIT_GIVEN" = 1; then
5846 for toolkit in `echo $ALL_TOOLKITS`; do
5847 var=wxUSE_$toolkit
5848 eval "value=\$${var}"
5849 eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`"
5850 done
5851else
5852 for toolkit in `echo $ALL_TOOLKITS`; do
5853 if test "$has_toolkit_in_cache" != 1; then
5854 var=DEFAULT_DEFAULT_wxUSE_$toolkit
5855 else
5856 var=DEFAULT_wxUSE_$toolkit
5857 fi
5858 eval "wxUSE_$toolkit=\$${var}"
5859 done
5860fi
5861
ec14dd32 5862NUM_TOOLKITS=`expr ${wxUSE_GTK:-0} + ${wxUSE_MOTIF:-0} + ${wxUSE_WINE:-0} + ${wxUSE_MINGW:-0} + ${wxUSE_CYGWIN:-0}`
cf27ef00 5863
ec14dd32
VZ
5864case "${host}" in
5865 *-pc-os2_emx )
5866 NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
5867 # PATH_IFS is autodetected by OS/2's configure (usually ';')
5868 LEX_STEM="lexyy"
5869 ;;
5870 *)
5871 PATH_IFS=':'
5872 LEX_STEM="lex.yy"
5873 ;;
5874esac
10f2d63a
VZ
5875
5876case "$NUM_TOOLKITS" in
5877 1)
5878 ;;
5879 0)
5880 { echo "configure: error: Please specify a toolkit - cannot determine the default for ${host}" 1>&2; exit 1; }
5881 ;;
5882 *)
5883 { echo "configure: error: Please specify at most one toolkit (may be some are cached?)" 1>&2; exit 1; }
5884esac
5885
5886for toolkit in `echo $ALL_TOOLKITS`; do
5887 var=wxUSE_$toolkit
5888 eval "value=\$${var}"
5889 if test "x$value" != x; then
5890 cache_var=CACHE_$toolkit
5891 eval "cache=\$${cache_var}"
5892 if test "$cache" = 1; then
5893 echo "$var=$value" >> ${wx_arg_cache_file}
5894 fi
5895 if test "$value" = 1; then
5896 echo "$ac_t""`echo $toolkit | tr A-Z a-z`" 1>&6
5897 fi
5898 fi
5899done
5900
5901else
cf27ef00 5902 PATH_IFS=':'
10f2d63a
VZ
5903 echo "$ac_t""base only" 1>&6
5904fi
5905
5906
5907cat > confcache <<\EOF
5908# This file is a shell script that caches the results of configure
5909# tests run on this system so they can be shared between configure
5910# scripts and configure runs. It is not useful on other systems.
5911# If it contains results you don't want to keep, you may remove or edit it.
5912#
5913# By default, configure uses ./config.cache as the cache file,
5914# creating it if it does not exist already. You can give configure
5915# the --cache-file=FILE option to use a different cache file; that is
5916# what configure does when it calls configure scripts in
5917# subdirectories, so they share the cache.
5918# Giving --cache-file=/dev/null disables caching, for debugging configure.
5919# config.status only pays attention to the cache file if you give it the
5920# --recheck option to rerun configure.
5921#
5922EOF
5923# The following way of writing the cache mishandles newlines in values,
5924# but we know of no workaround that is simple, portable, and efficient.
5925# So, don't put newlines in cache variables' values.
5926# Ultrix sh set writes to stderr and can't be redirected directly,
5927# and sets the high bit in the cache file unless we assign to the vars.
5928(set) 2>&1 |
5929 case `(ac_space=' '; set | grep ac_space) 2>&1` in
5930 *ac_space=\ *)
5931 # `set' does not quote correctly, so add quotes (double-quote substitution
5932 # turns \\\\ into \\, and sed turns \\ into \).
5933 sed -n \
5934 -e "s/'/'\\\\''/g" \
5935 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
5936 ;;
5937 *)
5938 # `set' quotes correctly as required by POSIX, so do not add quotes.
5939 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
5940 ;;
5941 esac >> confcache
5942if cmp -s $cache_file confcache; then
5943 :
5944else
5945 if test -w $cache_file; then
5946 echo "updating cache $cache_file"
5947 cat confcache > $cache_file
5948 else
5949 echo "not updating unwritable cache $cache_file"
5950 fi
5951fi
5952rm -f confcache
5953
5954
5955if eval "test $host != $build"; then
5956 if eval "test $host_alias != NONE"; then
5957 CC=$host_alias-gcc
5958 CXX=$host_alias-c++
5959 AR=$host_alias-ar
5960 RANLIB=$host_alias-ranlib
5961 DLLTOOL=$host_alias-dlltool
5962 LD=$host_alias-ld
5963 NM=$host_alias-nm
5964 STRIP=$host_alias-strip
5965 fi
5966fi
5967
5968# Extract the first word of "gcc", so it can be a program name with args.
5969set dummy gcc; ac_word=$2
5970echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
bdad4e7e 5971echo "configure:5972: checking for $ac_word" >&5
10f2d63a
VZ
5972if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
5973 echo $ac_n "(cached) $ac_c" 1>&6
5974else
5975 if test -n "$CC"; then
5976 ac_cv_prog_CC="$CC" # Let the user override the test.
5977else
5978 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5979 ac_dummy="$PATH"
5980 for ac_dir in $ac_dummy; do
5981 test -z "$ac_dir" && ac_dir=.
5982 if test -f $ac_dir/$ac_word; then
5983 ac_cv_prog_CC="gcc"
5984 break
5985 fi
5986 done
5987 IFS="$ac_save_ifs"
5988fi
5989fi
5990CC="$ac_cv_prog_CC"
5991if test -n "$CC"; then
5992 echo "$ac_t""$CC" 1>&6
5993else
5994 echo "$ac_t""no" 1>&6
5995fi
5996
5997if test -z "$CC"; then
5998 # Extract the first word of "cc", so it can be a program name with args.
5999set dummy cc; ac_word=$2
6000echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
bdad4e7e 6001echo "configure:6002: checking for $ac_word" >&5
10f2d63a
VZ
6002if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
6003 echo $ac_n "(cached) $ac_c" 1>&6
6004else
6005 if test -n "$CC"; then
6006 ac_cv_prog_CC="$CC" # Let the user override the test.
6007else
6008 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6009 ac_prog_rejected=no
6010 ac_dummy="$PATH"
6011 for ac_dir in $ac_dummy; do
6012 test -z "$ac_dir" && ac_dir=.
6013 if test -f $ac_dir/$ac_word; then
6014 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
6015 ac_prog_rejected=yes
6016 continue
6017 fi
6018 ac_cv_prog_CC="cc"
6019 break
6020 fi
6021 done
6022 IFS="$ac_save_ifs"
6023if test $ac_prog_rejected = yes; then
6024 # We found a bogon in the path, so make sure we never use it.
6025 set dummy $ac_cv_prog_CC
6026 shift
6027 if test $# -gt 0; then
6028 # We chose a different compiler from the bogus one.
6029 # However, it has the same basename, so the bogon will be chosen
6030 # first if we set CC to just the basename; use the full file name.
6031 shift
6032 set dummy "$ac_dir/$ac_word" "$@"
6033 shift
6034 ac_cv_prog_CC="$@"
6035 fi
6036fi
6037fi
6038fi
6039CC="$ac_cv_prog_CC"
6040if test -n "$CC"; then
6041 echo "$ac_t""$CC" 1>&6
6042else
6043 echo "$ac_t""no" 1>&6
6044fi
6045
6046 if test -z "$CC"; then
6047 case "`uname -s`" in
6048 *win32* | *WIN32*)
6049 # Extract the first word of "cl", so it can be a program name with args.
6050set dummy cl; ac_word=$2
6051echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
bdad4e7e 6052echo "configure:6053: checking for $ac_word" >&5
10f2d63a
VZ
6053if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
6054 echo $ac_n "(cached) $ac_c" 1>&6
6055else
6056 if test -n "$CC"; then
6057 ac_cv_prog_CC="$CC" # Let the user override the test.
6058else
6059 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6060 ac_dummy="$PATH"
6061 for ac_dir in $ac_dummy; do
6062 test -z "$ac_dir" && ac_dir=.
6063 if test -f $ac_dir/$ac_word; then
6064 ac_cv_prog_CC="cl"
6065 break
6066 fi
6067 done
6068 IFS="$ac_save_ifs"
6069fi
6070fi
6071CC="$ac_cv_prog_CC"
6072if test -n "$CC"; then
6073 echo "$ac_t""$CC" 1>&6
6074else
6075 echo "$ac_t""no" 1>&6
6076fi
6077 ;;
6078 esac
6079 fi
6080 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
6081fi
6082
6083echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
bdad4e7e 6084echo "configure:6085: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
10f2d63a
VZ
6085
6086ac_ext=c
6087# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6088ac_cpp='$CPP $CPPFLAGS'
6089ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6090ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6091cross_compiling=$ac_cv_prog_cc_cross
6092
6093cat > conftest.$ac_ext << EOF
6094
bdad4e7e 6095#line 6096 "configure"
10f2d63a
VZ
6096#include "confdefs.h"
6097
6098main(){return(0);}
6099EOF
bdad4e7e 6100if { (eval echo configure:6101: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
6101 ac_cv_prog_cc_works=yes
6102 # If we can't run a trivial program, we are probably using a cross compiler.
6103 if (./conftest; exit) 2>/dev/null; then
6104 ac_cv_prog_cc_cross=no
6105 else
6106 ac_cv_prog_cc_cross=yes
6107 fi
6108else
6109 echo "configure: failed program was:" >&5
6110 cat conftest.$ac_ext >&5
6111 ac_cv_prog_cc_works=no
6112fi
6113rm -fr conftest*
6114ac_ext=c
6115# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6116ac_cpp='$CPP $CPPFLAGS'
6117ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6118ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6119cross_compiling=$ac_cv_prog_cc_cross
6120
6121echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
6122if test $ac_cv_prog_cc_works = no; then
6123 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
6124fi
6125echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
bdad4e7e 6126echo "configure:6127: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
10f2d63a
VZ
6127echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
6128cross_compiling=$ac_cv_prog_cc_cross
6129
6130echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
bdad4e7e 6131echo "configure:6132: checking whether we are using GNU C" >&5
10f2d63a
VZ
6132if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
6133 echo $ac_n "(cached) $ac_c" 1>&6
6134else
6135 cat > conftest.c <<EOF
6136#ifdef __GNUC__
6137 yes;
6138#endif
6139EOF
bdad4e7e 6140if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:6141: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
10f2d63a
VZ
6141 ac_cv_prog_gcc=yes
6142else
6143 ac_cv_prog_gcc=no
6144fi
6145fi
6146
6147echo "$ac_t""$ac_cv_prog_gcc" 1>&6
6148
6149if test $ac_cv_prog_gcc = yes; then
6150 GCC=yes
6151else
6152 GCC=
6153fi
6154
6155ac_test_CFLAGS="${CFLAGS+set}"
6156ac_save_CFLAGS="$CFLAGS"
6157CFLAGS=
6158echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
bdad4e7e 6159echo "configure:6160: checking whether ${CC-cc} accepts -g" >&5
10f2d63a
VZ
6160if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
6161 echo $ac_n "(cached) $ac_c" 1>&6
6162else
6163 echo 'void f(){}' > conftest.c
6164if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
6165 ac_cv_prog_cc_g=yes
6166else
6167 ac_cv_prog_cc_g=no
6168fi
6169rm -f conftest*
6170
6171fi
6172
6173echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
6174if test "$ac_test_CFLAGS" = set; then
6175 CFLAGS="$ac_save_CFLAGS"
6176elif test $ac_cv_prog_cc_g = yes; then
6177 if test "$GCC" = yes; then
6178 CFLAGS="-g -O2"
6179 else
6180 CFLAGS="-g"
6181 fi
6182else
6183 if test "$GCC" = yes; then
6184 CFLAGS="-O2"
6185 else
6186 CFLAGS=
6187 fi
6188fi
6189
6190
6191CFLAGS=`echo "$CFLAGS" | sed 's/-g//g'`
6192
6193echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
bdad4e7e 6194echo "configure:6195: checking how to run the C preprocessor" >&5
10f2d63a
VZ
6195# On Suns, sometimes $CPP names a directory.
6196if test -n "$CPP" && test -d "$CPP"; then
6197 CPP=
6198fi
6199if test -z "$CPP"; then
6200if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
6201 echo $ac_n "(cached) $ac_c" 1>&6
6202else
6203 # This must be in double quotes, not single quotes, because CPP may get
6204 # substituted into the Makefile and "${CC-cc}" will confuse make.
6205 CPP="${CC-cc} -E"
6206 # On the NeXT, cc -E runs the code through the compiler's parser,
6207 # not just through cpp.
6208 cat > conftest.$ac_ext <<EOF
bdad4e7e 6209#line 6210 "configure"
10f2d63a
VZ
6210#include "confdefs.h"
6211#include <assert.h>
6212Syntax Error
6213EOF
6214ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
bdad4e7e 6215{ (eval echo configure:6216: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
6216ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6217if test -z "$ac_err"; then
6218 :
6219else
6220 echo "$ac_err" >&5
6221 echo "configure: failed program was:" >&5
6222 cat conftest.$ac_ext >&5
6223 rm -rf conftest*
6224 CPP="${CC-cc} -E -traditional-cpp"
6225 cat > conftest.$ac_ext <<EOF
bdad4e7e 6226#line 6227 "configure"
10f2d63a
VZ
6227#include "confdefs.h"
6228#include <assert.h>
6229Syntax Error
6230EOF
6231ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
bdad4e7e 6232{ (eval echo configure:6233: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
6233ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6234if test -z "$ac_err"; then
6235 :
6236else
6237 echo "$ac_err" >&5
6238 echo "configure: failed program was:" >&5
6239 cat conftest.$ac_ext >&5
6240 rm -rf conftest*
6241 CPP="${CC-cc} -nologo -E"
6242 cat > conftest.$ac_ext <<EOF
bdad4e7e 6243#line 6244 "configure"
10f2d63a
VZ
6244#include "confdefs.h"
6245#include <assert.h>
6246Syntax Error
6247EOF
6248ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
bdad4e7e 6249{ (eval echo configure:6250: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
6250ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6251if test -z "$ac_err"; then
6252 :
6253else
6254 echo "$ac_err" >&5
6255 echo "configure: failed program was:" >&5
6256 cat conftest.$ac_ext >&5
6257 rm -rf conftest*
6258 CPP=/lib/cpp
6259fi
6260rm -f conftest*
6261fi
6262rm -f conftest*
6263fi
6264rm -f conftest*
6265 ac_cv_prog_CPP="$CPP"
6266fi
6267 CPP="$ac_cv_prog_CPP"
6268else
6269 ac_cv_prog_CPP="$CPP"
6270fi
6271echo "$ac_t""$CPP" 1>&6
6272
6273
6274if test $ac_cv_prog_gcc = yes; then
6275 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
bdad4e7e 6276echo "configure:6277: checking whether ${CC-cc} needs -traditional" >&5
10f2d63a
VZ
6277if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
6278 echo $ac_n "(cached) $ac_c" 1>&6
6279else
6280 ac_pattern="Autoconf.*'x'"
6281 cat > conftest.$ac_ext <<EOF
bdad4e7e 6282#line 6283 "configure"
10f2d63a
VZ
6283#include "confdefs.h"
6284#include <sgtty.h>
6285Autoconf TIOCGETP
6286EOF
6287if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6288 egrep "$ac_pattern" >/dev/null 2>&1; then
6289 rm -rf conftest*
6290 ac_cv_prog_gcc_traditional=yes
6291else
6292 rm -rf conftest*
6293 ac_cv_prog_gcc_traditional=no
6294fi
6295rm -f conftest*
6296
6297
6298 if test $ac_cv_prog_gcc_traditional = no; then
6299 cat > conftest.$ac_ext <<EOF
bdad4e7e 6300#line 6301 "configure"
10f2d63a
VZ
6301#include "confdefs.h"
6302#include <termio.h>
6303Autoconf TCGETA
6304EOF
6305if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6306 egrep "$ac_pattern" >/dev/null 2>&1; then
6307 rm -rf conftest*
6308 ac_cv_prog_gcc_traditional=yes
6309fi
6310rm -f conftest*
6311
6312 fi
6313fi
6314
6315echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
6316 if test $ac_cv_prog_gcc_traditional = yes; then
6317 CC="$CC -traditional"
6318 fi
6319fi
6320
6321
6322
6323ac_ext=C
6324# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6325ac_cpp='$CXXCPP $CPPFLAGS'
6326ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6327ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6328cross_compiling=$ac_cv_prog_cxx_cross
6329
6330
6331for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
6332do
6333# Extract the first word of "$ac_prog", so it can be a program name with args.
6334set dummy $ac_prog; ac_word=$2
6335echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
bdad4e7e 6336echo "configure:6337: checking for $ac_word" >&5
10f2d63a
VZ
6337if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
6338 echo $ac_n "(cached) $ac_c" 1>&6
6339else
6340 if test -n "$CXX"; then
6341 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6342else
6343 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6344 ac_dummy="$PATH"
6345 for ac_dir in $ac_dummy; do
6346 test -z "$ac_dir" && ac_dir=.
6347 if test -f $ac_dir/$ac_word; then
6348 ac_cv_prog_CXX="$ac_prog"
6349 break
6350 fi
6351 done
6352 IFS="$ac_save_ifs"
6353fi
6354fi
6355CXX="$ac_cv_prog_CXX"
6356if test -n "$CXX"; then
6357 echo "$ac_t""$CXX" 1>&6
6358else
6359 echo "$ac_t""no" 1>&6
6360fi
6361
6362test -n "$CXX" && break
6363done
6364test -n "$CXX" || CXX="gcc"
6365
6366
6367echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
bdad4e7e 6368echo "configure:6369: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
10f2d63a
VZ
6369
6370ac_ext=C
6371# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6372ac_cpp='$CXXCPP $CPPFLAGS'
6373ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6374ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6375cross_compiling=$ac_cv_prog_cxx_cross
6376
6377cat > conftest.$ac_ext << EOF
6378
bdad4e7e 6379#line 6380 "configure"
10f2d63a
VZ
6380#include "confdefs.h"
6381
6382int main(){return(0);}
6383EOF
bdad4e7e 6384if { (eval echo configure:6385: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
6385 ac_cv_prog_cxx_works=yes
6386 # If we can't run a trivial program, we are probably using a cross compiler.
6387 if (./conftest; exit) 2>/dev/null; then
6388 ac_cv_prog_cxx_cross=no
6389 else
6390 ac_cv_prog_cxx_cross=yes
6391 fi
6392else
6393 echo "configure: failed program was:" >&5
6394 cat conftest.$ac_ext >&5
6395 ac_cv_prog_cxx_works=no
6396fi
6397rm -fr conftest*
6398ac_ext=C
6399# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6400ac_cpp='$CXXCPP $CPPFLAGS'
6401ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6402ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6403cross_compiling=$ac_cv_prog_cxx_cross
6404
6405echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
6406if test $ac_cv_prog_cxx_works = no; then
6407 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
6408fi
6409echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
bdad4e7e 6410echo "configure:6411: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
10f2d63a
VZ
6411echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
6412cross_compiling=$ac_cv_prog_cxx_cross
6413
6414echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
bdad4e7e 6415echo "configure:6416: checking whether we are using GNU C++" >&5
10f2d63a
VZ
6416if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
6417 echo $ac_n "(cached) $ac_c" 1>&6
6418else
6419 cat > conftest.C <<EOF
6420#ifdef __GNUC__
6421 yes;
6422#endif
6423EOF
bdad4e7e 6424if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:6425: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
10f2d63a
VZ
6425 ac_cv_prog_gxx=yes
6426else
6427 ac_cv_prog_gxx=no
6428fi
6429fi
6430
6431echo "$ac_t""$ac_cv_prog_gxx" 1>&6
6432
6433if test $ac_cv_prog_gxx = yes; then
6434 GXX=yes
6435else
6436 GXX=
6437fi
6438
6439ac_test_CXXFLAGS="${CXXFLAGS+set}"
6440ac_save_CXXFLAGS="$CXXFLAGS"
6441CXXFLAGS=
6442echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
bdad4e7e 6443echo "configure:6444: checking whether ${CXX-g++} accepts -g" >&5
10f2d63a
VZ
6444if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
6445 echo $ac_n "(cached) $ac_c" 1>&6
6446else
6447 echo 'void f(){}' > conftest.cc
6448if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
6449 ac_cv_prog_cxx_g=yes
6450else
6451 ac_cv_prog_cxx_g=no
6452fi
6453rm -f conftest*
6454
6455fi
6456
6457echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
6458if test "$ac_test_CXXFLAGS" = set; then
6459 CXXFLAGS="$ac_save_CXXFLAGS"
6460elif test $ac_cv_prog_cxx_g = yes; then
6461 if test "$GXX" = yes; then
6462 CXXFLAGS="-g -O2"
6463 else
6464 CXXFLAGS="-g"
6465 fi
6466else
6467 if test "$GXX" = yes; then
6468 CXXFLAGS="-O2"
6469 else
6470 CXXFLAGS=
6471 fi
6472fi
6473
6474
6475echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
bdad4e7e 6476echo "configure:6477: checking how to run the C++ preprocessor" >&5
10f2d63a
VZ
6477if test -z "$CXXCPP"; then
6478if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
6479 echo $ac_n "(cached) $ac_c" 1>&6
6480else
6481 ac_ext=C
6482# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6483ac_cpp='$CXXCPP $CPPFLAGS'
6484ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6485ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6486cross_compiling=$ac_cv_prog_cxx_cross
6487 CXXCPP="${CXX-g++} -E"
6488 cat > conftest.$ac_ext <<EOF
bdad4e7e 6489#line 6490 "configure"
10f2d63a
VZ
6490#include "confdefs.h"
6491#include <stdlib.h>
6492EOF
6493ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
bdad4e7e 6494{ (eval echo configure:6495: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
6495ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6496if test -z "$ac_err"; then
6497 :
6498else
6499 echo "$ac_err" >&5
6500 echo "configure: failed program was:" >&5
6501 cat conftest.$ac_ext >&5
6502 rm -rf conftest*
6503 CXXCPP=/lib/cpp
6504fi
6505rm -f conftest*
6506 ac_cv_prog_CXXCPP="$CXXCPP"
6507ac_ext=C
6508# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6509ac_cpp='$CXXCPP $CPPFLAGS'
6510ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6511ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6512cross_compiling=$ac_cv_prog_cxx_cross
6513fi
6514fi
6515CXXCPP="$ac_cv_prog_CXXCPP"
6516echo "$ac_t""$CXXCPP" 1>&6
6517
6518
6519CXXFLAGS=`echo "$CXXFLAGS" | sed 's/-g//g'`
6520
6521ac_ext=c
6522# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6523ac_cpp='$CPP $CPPFLAGS'
6524ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6525ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6526cross_compiling=$ac_cv_prog_cc_cross
6527
6528
6529# Extract the first word of "ranlib", so it can be a program name with args.
6530set dummy ranlib; ac_word=$2
6531echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
bdad4e7e 6532echo "configure:6533: checking for $ac_word" >&5
10f2d63a
VZ
6533if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
6534 echo $ac_n "(cached) $ac_c" 1>&6
6535else
6536 if test -n "$RANLIB"; then
6537 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6538else
6539 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6540 ac_dummy="$PATH"
6541 for ac_dir in $ac_dummy; do
6542 test -z "$ac_dir" && ac_dir=.
6543 if test -f $ac_dir/$ac_word; then
6544 ac_cv_prog_RANLIB="ranlib"
6545 break
6546 fi
6547 done
6548 IFS="$ac_save_ifs"
6549 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
6550fi
6551fi
6552RANLIB="$ac_cv_prog_RANLIB"
6553if test -n "$RANLIB"; then
6554 echo "$ac_t""$RANLIB" 1>&6
6555else
6556 echo "$ac_t""no" 1>&6
6557fi
6558
6559
6560# Extract the first word of "ar", so it can be a program name with args.
6561set dummy ar; ac_word=$2
6562echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
bdad4e7e 6563echo "configure:6564: checking for $ac_word" >&5
10f2d63a
VZ
6564if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
6565 echo $ac_n "(cached) $ac_c" 1>&6
6566else
6567 if test -n "$AR"; then
6568 ac_cv_prog_AR="$AR" # Let the user override the test.
6569else
6570 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6571 ac_dummy="$PATH"
6572 for ac_dir in $ac_dummy; do
6573 test -z "$ac_dir" && ac_dir=.
6574 if test -f $ac_dir/$ac_word; then
6575 ac_cv_prog_AR="ar"
6576 break
6577 fi
6578 done
6579 IFS="$ac_save_ifs"
6580 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
6581fi
6582fi
6583AR="$ac_cv_prog_AR"
6584if test -n "$AR"; then
6585 echo "$ac_t""$AR" 1>&6
6586else
6587 echo "$ac_t""no" 1>&6
6588fi
6589
6590
6591# Find a good install program. We prefer a C program (faster),
6592# so one script is as good as another. But avoid the broken or
6593# incompatible versions:
6594# SysV /etc/install, /usr/sbin/install
6595# SunOS /usr/etc/install
6596# IRIX /sbin/install
6597# AIX /bin/install
6598# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6599# AFS /usr/afsws/bin/install, which mishandles nonexistent args
6600# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6601# ./install, which can be erroneously created by make from ./install.sh.
6602echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
bdad4e7e 6603echo "configure:6604: checking for a BSD compatible install" >&5
10f2d63a
VZ
6604if test -z "$INSTALL"; then
6605if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
6606 echo $ac_n "(cached) $ac_c" 1>&6
6607else
6608 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
6609 for ac_dir in $PATH; do
6610 # Account for people who put trailing slashes in PATH elements.
6611 case "$ac_dir/" in
6612 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
6613 *)
6614 # OSF1 and SCO ODT 3.0 have their own names for install.
6615 # Don't use installbsd from OSF since it installs stuff as root
6616 # by default.
6617 for ac_prog in ginstall scoinst install; do
6618 if test -f $ac_dir/$ac_prog; then
6619 if test $ac_prog = install &&
6620 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
6621 # AIX install. It has an incompatible calling convention.
6622 :
6623 else
6624 ac_cv_path_install="$ac_dir/$ac_prog -c"
6625 break 2
6626 fi
6627 fi
6628 done
6629 ;;
6630 esac
6631 done
6632 IFS="$ac_save_IFS"
6633
6634fi
6635 if test "${ac_cv_path_install+set}" = set; then
6636 INSTALL="$ac_cv_path_install"
6637 else
6638 # As a last resort, use the slow shell script. We don't cache a
6639 # path for INSTALL within a source directory, because that will
6640 # break other packages using the cache if that directory is
6641 # removed, or if the path is relative.
6642 INSTALL="$ac_install_sh"
6643 fi
6644fi
6645echo "$ac_t""$INSTALL" 1>&6
6646
6647# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6648# It thinks the first close brace ends the variable substitution.
6649test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6650
6651test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
6652
6653test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6654
6655
6656# Extract the first word of "strip", so it can be a program name with args.
6657set dummy strip; ac_word=$2
6658echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
bdad4e7e 6659echo "configure:6660: checking for $ac_word" >&5
10f2d63a
VZ
6660if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
6661 echo $ac_n "(cached) $ac_c" 1>&6
6662else
6663 if test -n "$STRIP"; then
6664 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6665else
6666 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6667 ac_dummy="$PATH"
6668 for ac_dir in $ac_dummy; do
6669 test -z "$ac_dir" && ac_dir=.
6670 if test -f $ac_dir/$ac_word; then
6671 ac_cv_prog_STRIP="strip"
6672 break
6673 fi
6674 done
6675 IFS="$ac_save_ifs"
6676 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true"
6677fi
6678fi
6679STRIP="$ac_cv_prog_STRIP"
6680if test -n "$STRIP"; then
6681 echo "$ac_t""$STRIP" 1>&6
6682else
6683 echo "$ac_t""no" 1>&6
6684fi
6685
6686
6687echo $ac_n "checking "make for VPATH support"""... $ac_c" 1>&6
bdad4e7e 6688echo "configure:6689: checking "make for VPATH support"" >&5
10f2d63a
VZ
6689cat - << EOF > confMake
6690check : file
6691 cp \$? \$@
6692 cp \$? final_file
6693EOF
6694
6695if test ! -d sub ; then
6696 mkdir sub
6697fi
6698echo dummy > sub/file
6699${MAKE-make} -f confMake VPATH=sub 2> config.log > /dev/null
6700RESULT=$?
6701rm -f sub/file check final_file confMake
6702rmdir sub
6703if test "$RESULT" = 0; then
6704 echo "$ac_t""yes" 1>&6
6705else
6706 echo "$ac_t""no" 1>&6
6707 { echo "configure: error: You need a make-utility that is able to use the variable
6708VPATH correctly.
6709If your version of make does not support VPATH correctly" 1>&2; exit 1; }
6710fi
6711
6712for ac_prog in 'bison -y' byacc
6713do
6714# Extract the first word of "$ac_prog", so it can be a program name with args.
6715set dummy $ac_prog; ac_word=$2
6716echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
bdad4e7e 6717echo "configure:6718: checking for $ac_word" >&5
10f2d63a
VZ
6718if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
6719 echo $ac_n "(cached) $ac_c" 1>&6
6720else
6721 if test -n "$YACC"; then
6722 ac_cv_prog_YACC="$YACC" # Let the user override the test.
6723else
6724 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6725 ac_dummy="$PATH"
6726 for ac_dir in $ac_dummy; do
6727 test -z "$ac_dir" && ac_dir=.
6728 if test -f $ac_dir/$ac_word; then
6729 ac_cv_prog_YACC="$ac_prog"
6730 break
6731 fi
6732 done
6733 IFS="$ac_save_ifs"
6734fi
6735fi
6736YACC="$ac_cv_prog_YACC"
6737if test -n "$YACC"; then
6738 echo "$ac_t""$YACC" 1>&6
6739else
6740 echo "$ac_t""no" 1>&6
6741fi
6742
6743test -n "$YACC" && break
6744done
6745test -n "$YACC" || YACC="yacc"
6746
6747
6748# Extract the first word of "flex", so it can be a program name with args.
6749set dummy flex; ac_word=$2
6750echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
bdad4e7e 6751echo "configure:6752: checking for $ac_word" >&5
10f2d63a
VZ
6752if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
6753 echo $ac_n "(cached) $ac_c" 1>&6
6754else
6755 if test -n "$LEX"; then
6756 ac_cv_prog_LEX="$LEX" # Let the user override the test.
6757else
6758 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6759 ac_dummy="$PATH"
6760 for ac_dir in $ac_dummy; do
6761 test -z "$ac_dir" && ac_dir=.
6762 if test -f $ac_dir/$ac_word; then
6763 ac_cv_prog_LEX="flex"
6764 break
6765 fi
6766 done
6767 IFS="$ac_save_ifs"
6768 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
6769fi
6770fi
6771LEX="$ac_cv_prog_LEX"
6772if test -n "$LEX"; then
6773 echo "$ac_t""$LEX" 1>&6
6774else
6775 echo "$ac_t""no" 1>&6
6776fi
6777
6778if test -z "$LEXLIB"
6779then
6780 case "$LEX" in
6781 flex*) ac_lib=fl ;;
6782 *) ac_lib=l ;;
6783 esac
6784 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
bdad4e7e 6785echo "configure:6786: checking for yywrap in -l$ac_lib" >&5
10f2d63a
VZ
6786ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
6787if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6788 echo $ac_n "(cached) $ac_c" 1>&6
6789else
6790 ac_save_LIBS="$LIBS"
6791LIBS="-l$ac_lib $LIBS"
6792cat > conftest.$ac_ext <<EOF
bdad4e7e 6793#line 6794 "configure"
10f2d63a
VZ
6794#include "confdefs.h"
6795/* Override any gcc2 internal prototype to avoid an error. */
6796/* We use char because int might match the return type of a gcc2
6797 builtin and then its argument prototype would still apply. */
6798char yywrap();
6799
6800int main() {
6801yywrap()
6802; return 0; }
6803EOF
bdad4e7e 6804if { (eval echo configure:6805: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
6805 rm -rf conftest*
6806 eval "ac_cv_lib_$ac_lib_var=yes"
6807else
6808 echo "configure: failed program was:" >&5
6809 cat conftest.$ac_ext >&5
6810 rm -rf conftest*
6811 eval "ac_cv_lib_$ac_lib_var=no"
6812fi
6813rm -f conftest*
6814LIBS="$ac_save_LIBS"
6815
6816fi
6817if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6818 echo "$ac_t""yes" 1>&6
6819 LEXLIB="-l$ac_lib"
6820else
6821 echo "$ac_t""no" 1>&6
6822fi
6823
6824fi
6825
6826
6827echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
bdad4e7e 6828echo "configure:6829: checking whether ln -s works" >&5
10f2d63a
VZ
6829if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
6830 echo $ac_n "(cached) $ac_c" 1>&6
6831else
6832 rm -f conftestdata
6833if ln -s X conftestdata 2>/dev/null
6834then
6835 rm -f conftestdata
6836 ac_cv_prog_LN_S="ln -s"
6837else
6838 ac_cv_prog_LN_S=ln
6839fi
6840fi
6841LN_S="$ac_cv_prog_LN_S"
6842if test "$ac_cv_prog_LN_S" = "ln -s"; then
6843 echo "$ac_t""yes" 1>&6
6844else
6845 echo "$ac_t""no" 1>&6
6846fi
6847
6848
6849
6850SEARCH_INCLUDE="\
6851 /usr/local/include \
6852 \
6853 /usr/Motif-1.2/include \
6854 /usr/Motif-2.1/include \
6855 \
6856 /usr/include/Motif1.2 \
6857 /opt/xpm/include/X11 \
6858 /opt/GBxpm/include/ \
6859 /opt/GBxpm/X11/include/ \
6860 \
6861 /usr/Motif1.2/include \
6862 /usr/dt/include \
afc31813
VZ
6863 /usr/openwin/include \
6864 \
10f2d63a
VZ
6865 /usr/include/Xm \
6866 \
6867 /usr/X11R6/include \
afc31813 6868 /usr/X11R6.4/include \
10f2d63a
VZ
6869 /usr/X11R5/include \
6870 /usr/X11R4/include \
6871 \
10f2d63a
VZ
6872 /usr/include/X11R6 \
6873 /usr/include/X11R5 \
6874 /usr/include/X11R4 \
6875 \
6876 /usr/local/X11R6/include \
6877 /usr/local/X11R5/include \
6878 /usr/local/X11R4/include \
6879 \
6880 /usr/local/include/X11R6 \
6881 /usr/local/include/X11R5 \
6882 /usr/local/include/X11R4 \
6883 \
6884 /usr/X11/include \
6885 /usr/include/X11 \
6886 /usr/local/X11/include \
6887 /usr/local/include/X11 \
6888 \
6889 /usr/X386/include \
6890 /usr/x386/include \
6891 /usr/XFree86/include/X11 \
6892 \
cf27ef00 6893 X:/XFree86/include \
ec14dd32
VZ
6894 X:/XFree86/include/X11 \
6895 \
10f2d63a
VZ
6896 /usr/include/gtk \
6897 /usr/local/include/gtk \
6898 /usr/include/glib \
6899 /usr/local/include/glib \
6900 \
6901 /usr/include/qt \
6902 /usr/local/include/qt \
6903 \
6904 /usr/include/windows \
6905 /usr/include/wine \
6906 /usr/local/include/wine \
6907 \
6908 /usr/unsupported/include \
6909 /usr/athena/include \
6910 /usr/local/x11r5/include \
6911 /usr/lpp/Xamples/include \
6912 \
10f2d63a 6913 /usr/openwin/share/include \
928b5c08
VZ
6914 \
6915 /usr/include"
10f2d63a
VZ
6916
6917SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s/include/lib/g` "
6918
6919
6920cat > confcache <<\EOF
6921# This file is a shell script that caches the results of configure
6922# tests run on this system so they can be shared between configure
6923# scripts and configure runs. It is not useful on other systems.
6924# If it contains results you don't want to keep, you may remove or edit it.
6925#
6926# By default, configure uses ./config.cache as the cache file,
6927# creating it if it does not exist already. You can give configure
6928# the --cache-file=FILE option to use a different cache file; that is
6929# what configure does when it calls configure scripts in
6930# subdirectories, so they share the cache.
6931# Giving --cache-file=/dev/null disables caching, for debugging configure.
6932# config.status only pays attention to the cache file if you give it the
6933# --recheck option to rerun configure.
6934#
6935EOF
6936# The following way of writing the cache mishandles newlines in values,
6937# but we know of no workaround that is simple, portable, and efficient.
6938# So, don't put newlines in cache variables' values.
6939# Ultrix sh set writes to stderr and can't be redirected directly,
6940# and sets the high bit in the cache file unless we assign to the vars.
6941(set) 2>&1 |
6942 case `(ac_space=' '; set | grep ac_space) 2>&1` in
6943 *ac_space=\ *)
6944 # `set' does not quote correctly, so add quotes (double-quote substitution
6945 # turns \\\\ into \\, and sed turns \\ into \).
6946 sed -n \
6947 -e "s/'/'\\\\''/g" \
6948 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
6949 ;;
6950 *)
6951 # `set' quotes correctly as required by POSIX, so do not add quotes.
6952 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
6953 ;;
6954 esac >> confcache
6955if cmp -s $cache_file confcache; then
6956 :
6957else
6958 if test -w $cache_file; then
6959 echo "updating cache $cache_file"
6960 cat confcache > $cache_file
6961 else
6962 echo "not updating unwritable cache $cache_file"
6963 fi
6964fi
6965rm -f confcache
6966
6967
6968
dad6c0ea
VZ
6969AFMINSTALL=
6970
10f2d63a
VZ
6971if test "$wxUSE_GUI" = "yes"; then
6972
dad6c0ea
VZ
6973USE_GUI=1
6974
10f2d63a
VZ
6975TOOLKIT=
6976TOOLKIT_INCLUDE=
6977
6978GUIOBJS=
6979COMMONOBJS=
6980GENERICOBJS=
6981
6982GUI_TK_LIBRARY=
6983GUI_TK_LINK=
6984
6985WXGTK12=
13111b2a 6986WXGTK13=
10f2d63a
VZ
6987
6988WXWINE=
6989
10f2d63a
VZ
6990if test "$wxUSE_CYGWIN" = 1 || test "$wxUSE_MINGW" = 1 ; then
6991 if test "$cross_compiling" = "yes" ; then
6992 echo "configure: warning: Cross compiling --- skipping windows.h check" 1>&2
6993 else
6994 echo $ac_n "checking for Windows headers""... $ac_c" 1>&6
bdad4e7e 6995echo "configure:6996: checking for Windows headers" >&5
10f2d63a
VZ
6996
6997ac_find_includes=
6998for ac_dir in $SEARCH_INCLUDE;
6999 do
7000 if test -f "$ac_dir/windows.h"; then
7001 ac_find_includes=$ac_dir
7002 break
7003 fi
7004 done
7005
7006 if test "$ac_find_includes" != "" ; then
7007 echo "$ac_t""found $ac_find_includes" 1>&6
7008 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE -I$ac_find_includes"
7009 else
7010 echo "$ac_t""no" 1>&6
7011 { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; }
7012 fi
7013 fi
7014
7015 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS msw"
7016 LIBS="$LIBS -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lctl3d32 -lcrtdll -ladvapi32 -lwsock32"
7017
7018 if test "$wxUSE_MINGW" = 1; then
7019 LDFLAGS="$LDFLAGS -mwindows"
7020 fi
7021
7022 TOOLKIT=MSW
7023
7024 GUIOBJS="\$(MSW_GUIOBJS)"
7025 GUIHEADERS="\$(MSW_HEADERS)"
7026 COMMONOBJS="\$(MSW_COMMONOBJS)"
7027 GENERICOBJS="\$(MSW_GENERICOBJS)"
7028 UNIXOBJS=
7029 GUIDIST=MSW_DIST
10f2d63a
VZ
7030fi
7031
7032if test "$wxUSE_GTK" = 1; then
7033
7034 if test x$gtk_config_exec_prefix != x ; then
7035 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
7036 if test x${GTK_CONFIG+set} != xset ; then
7037 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
7038 fi
7039 fi
7040 if test x$gtk_config_prefix != x ; then
7041 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
7042 if test x${GTK_CONFIG+set} != xset ; then
7043 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
7044 fi
7045 fi
7046
7047 # Extract the first word of "gtk-config", so it can be a program name with args.
7048set dummy gtk-config; ac_word=$2
7049echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
bdad4e7e 7050echo "configure:7051: checking for $ac_word" >&5
10f2d63a
VZ
7051if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
7052 echo $ac_n "(cached) $ac_c" 1>&6
7053else
7054 case "$GTK_CONFIG" in
7055 /*)
7056 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
7057 ;;
7058 ?:/*)
7059 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
7060 ;;
7061 *)
7062 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7063 ac_dummy="$PATH"
7064 for ac_dir in $ac_dummy; do
7065 test -z "$ac_dir" && ac_dir=.
7066 if test -f $ac_dir/$ac_word; then
7067 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
7068 break
7069 fi
7070 done
7071 IFS="$ac_save_ifs"
7072 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
7073 ;;
7074esac
7075fi
7076GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
7077if test -n "$GTK_CONFIG"; then
7078 echo "$ac_t""$GTK_CONFIG" 1>&6
7079else
7080 echo "$ac_t""no" 1>&6
7081fi
7082
04165bec 7083 min_gtk_version=1.2.3
10f2d63a 7084 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
bdad4e7e 7085echo "configure:7086: checking for GTK - version >= $min_gtk_version" >&5
10f2d63a
VZ
7086 no_gtk=""
7087 if test "$GTK_CONFIG" != "no" ; then
7088 GTK_CFLAGS=`$GTK_CONFIG --cflags`
2224580a 7089 GTK_LIBS=`$GTK_CONFIG --libs gthread`
10f2d63a
VZ
7090 ac_save_CFLAGS="$CFLAGS"
7091 ac_save_LIBS="$LIBS"
7092 CFLAGS="$CFLAGS $GTK_CFLAGS"
7093 LIBS="$LIBS $GTK_LIBS"
7094 if test "$cross_compiling" = yes; then
7095 echo $ac_n "cross compiling; assumed OK... $ac_c"
7096else
7097 cat > conftest.$ac_ext <<EOF
bdad4e7e 7098#line 7099 "configure"
10f2d63a
VZ
7099#include "confdefs.h"
7100
7101#include <gtk/gtk.h>
f49f2b0c 7102#include <gtk/gtkfeatures.h>
10f2d63a
VZ
7103#include <stdio.h>
7104
7105int
7106main ()
7107{
7108 int major, minor, micro;
7109
7110 if (sscanf("$min_gtk_version", "%d.%d.%d", &major, &minor, &micro) != 3) {
7111 printf("%s, bad version string\n", "$min_gtk_version");
7112 exit(1);
7113 }
7114
f49f2b0c
RR
7115 if ((GTK_MAJOR_VERSION != gtk_major_version) ||
7116 (GTK_MINOR_VERSION != gtk_minor_version) ||
7117 (GTK_MICRO_VERSION != gtk_micro_version)) {
7118 printf("Headers vs. library version mismatch!\n");
7119 exit(1);
7120 }
7121
10f2d63a
VZ
7122 if (gtk_minor_version == 1) return FALSE;
7123
7124 return !((gtk_major_version > major) ||
7125 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
7126 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)));
7127}
7128
7129EOF
bdad4e7e 7130if { (eval echo configure:7131: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10f2d63a
VZ
7131then
7132 :
7133else
7134 echo "configure: failed program was:" >&5
7135 cat conftest.$ac_ext >&5
7136 rm -fr conftest*
7137 no_gtk=yes
7138fi
7139rm -fr conftest*
7140fi
7141
7142 CFLAGS="$ac_save_CFLAGS"
7143 LIBS="$ac_save_LIBS"
7144 else
7145 no_gtk=yes
7146 fi
7147 if test "x$no_gtk" = x ; then
7148 echo "$ac_t""yes" 1>&6
7149 WXGTK12=1
7150 else
7151 echo "$ac_t""no" 1>&6
7152 GTK_CFLAGS=""
7153 GTK_LIBS=""
7e99ad86 7154 :
10f2d63a
VZ
7155 fi
7156
7157
7158
7159
7e99ad86
VZ
7160 if test "$WXGTK12" != 1; then
7161 { echo "configure: error:
7162 Please check that gtk-config is in path, the directory
7163 where GTK+ libraries are installed (returned by
7164 'gtk-config --libs' command) is in LD_LIBRARY_PATH or
7165 equivalent variable and GTK+ is version 1.2.3 or above.
7166 " 1>&2; exit 1; }
7167 fi
7168
7169
10f2d63a 7170 TOOLKIT_INCLUDE="$GTK_CFLAGS"
2224580a
VZ
7171
7172
7173 GUI_TK_LIBRARY="$GTK_LIBS"
7174
10f2d63a
VZ
7175 TOOLKIT=GTK
7176
dad6c0ea
VZ
7177 AFMINSTALL=afminstall
7178
10f2d63a
VZ
7179 GUIOBJS="\$(GTK_GUIOBJS)"
7180 GUIHEADERS="\$(GTK_HEADERS)"
7181 COMMONOBJS="\$(GTK_COMMONOBJS)"
7182 GENERICOBJS="\$(GTK_GENERICOBJS)"
7183 GUIDEPS="\$(GTK_GUIDEPS)"
7184 COMMONDEPS="\$(GTK_COMMONDEPS)"
7185 GENERICDEPS="\$(GTK_GENERICDEPS)"
7186 UNIXOBJS="\$(UNIX_OBJS)"
d9d8273d 7187 UNIXDEPS="\$(UNIX_DEPS)"
10f2d63a 7188 GUIDIST=GTK_DIST
7ec2881a 7189
2224580a 7190 echo $ac_n "checking for gdk_im_open in -lgdk""... $ac_c" 1>&6
bdad4e7e 7191echo "configure:7192: checking for gdk_im_open in -lgdk" >&5
7ec2881a
RR
7192ac_lib_var=`echo gdk'_'gdk_im_open | sed 'y%./+-%__p_%'`
7193if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7194 echo $ac_n "(cached) $ac_c" 1>&6
7195else
7196 ac_save_LIBS="$LIBS"
7197LIBS="-lgdk $LIBS"
7198cat > conftest.$ac_ext <<EOF
bdad4e7e 7199#line 7200 "configure"
7ec2881a
RR
7200#include "confdefs.h"
7201/* Override any gcc2 internal prototype to avoid an error. */
7202/* We use char because int might match the return type of a gcc2
7203 builtin and then its argument prototype would still apply. */
7204char gdk_im_open();
7205
7206int main() {
7207gdk_im_open()
7208; return 0; }
7209EOF
bdad4e7e 7210if { (eval echo configure:7211: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7ec2881a
RR
7211 rm -rf conftest*
7212 eval "ac_cv_lib_$ac_lib_var=yes"
7213else
7214 echo "configure: failed program was:" >&5
7215 cat conftest.$ac_ext >&5
7216 rm -rf conftest*
7217 eval "ac_cv_lib_$ac_lib_var=no"
7218fi
7219rm -f conftest*
7220LIBS="$ac_save_LIBS"
7221
7222fi
7223if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7224 echo "$ac_t""yes" 1>&6
7225 cat >> confdefs.h <<\EOF
7226#define HAVE_XIM 1
7227EOF
7228
7229else
7230 echo "$ac_t""no" 1>&6
7231fi
7232
10f2d63a
VZ
7233fi
7234
7235if test "$wxUSE_WINE" = 1; then
7236 echo $ac_n "checking for WINE includes""... $ac_c" 1>&6
bdad4e7e 7237echo "configure:7238: checking for WINE includes" >&5
10f2d63a
VZ
7238
7239ac_find_includes=
7240for ac_dir in $SEARCH_INCLUDE;
7241 do
7242 if test -f "$ac_dir/windows.h"; then
7243 ac_find_includes=$ac_dir
7244 break
7245 fi
7246 done
7247
7248 if test "$ac_find_includes" != "" ; then
7249 echo "$ac_t""found $ac_find_includes" 1>&6
7250 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE -I$ac_find_includes"
7251 else
7252 echo "$ac_t""no" 1>&6
7253 { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; }
7254 fi
7255
7256 XPM_LINK=""
7257 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
bdad4e7e 7258echo "configure:7259: checking for Xpm library" >&5
10f2d63a
VZ
7259
7260ac_find_libraries=
7261for ac_dir in $SEARCH_LIB;
7262 do
7263 for ac_extension in a so sl; do
7264 if test -f "$ac_dir/libXpm.$ac_extension"; then
7265 ac_find_libraries=$ac_dir
7266 break 2
7267 fi
7268 done
7269 done
7270
7271 if test "$ac_find_libraries" != "" ; then
7272 GUI_TK_LIBRARY="-L$ac_find_libraries"
7273 XPM_LINK="-lXpm"
7274 cat >> confdefs.h <<\EOF
7275#define wxHAVE_LIB_XPM 1
7276EOF
7277
7278 echo "$ac_t""found at $ac_find_libraries" 1>&6
7279 else
7280 echo "$ac_t""no" 1>&6
7281 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
7282 fi
7283
7284 MESA_LINK=""
7285 echo $ac_n "checking for Mesa library""... $ac_c" 1>&6
bdad4e7e 7286echo "configure:7287: checking for Mesa library" >&5
10f2d63a
VZ
7287
7288ac_find_libraries=
7289for ac_dir in $SEARCH_LIB;
7290 do
7291 for ac_extension in a so sl; do
7292 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
7293 ac_find_libraries=$ac_dir
7294 break 2
7295 fi
7296 done
7297 done
7298
7299 if test "$ac_find_libraries" != "" ; then
7300 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -L$ac_find_libraries"
7301 MESA_LINK="-lMesaGL"
7302 echo "$ac_t""found at $ac_find_libraries" 1>&6
7303 else
7304 { echo "configure: error: no" 1>&2; exit 1; }
7305 fi
7306
7307 GUI_TK_LINK="-lwine $MESA_LINK $XPM_LINK -lXxf86dga -lXxf86vm -lSM -lICE -lXext -lXmu -lX11 -lncurses -lm"
7308 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $GUI_TK_LINK"
7309 WXWINE=1
7310 TOOLKIT=MSW
7311
7312 GUIHEADERS="\$(MSW_HEADERS)"
7313 GUIOBJS="\$(MSW_GUIOBJS)"
7314 COMMONOBJS="\$(MSW_COMMONOBJS)"
7315 GENERICOBJS="\$(MSW_GENERICOBJS)"
7316 GUIDEPS="\$(MSW_GUIDEPS)"
7317 COMMONDEPS="\$(MSW_COMMONDEPS)"
7318 GENERICDEPS="\$(MSW_GENERICDEPS)"
7319 UNIXOBJS="\$(UNIX_OBJS)"
d9d8273d 7320 UNIXDEPS="\$(UNIX_DEPS)"
10f2d63a
VZ
7321 GUIDIST=MSW_DIST
7322fi
7323
7324if test "$wxUSE_MOTIF" = 1; then
ab9b9eab
VZ
7325 # If we find X, set shell vars x_includes and x_libraries to the
7326# paths, otherwise set no_x=yes.
7327# Uses ac_ vars as temps to allow command line to override cache and checks.
7328# --without-x overrides everything else, but does not touch the cache.
7329echo $ac_n "checking for X""... $ac_c" 1>&6
bdad4e7e 7330echo "configure:7331: checking for X" >&5
ab9b9eab
VZ
7331
7332# Check whether --with-x or --without-x was given.
7333if test "${with_x+set}" = set; then
7334 withval="$with_x"
7335 :
7336fi
ba337fe7 7337
ab9b9eab
VZ
7338# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7339if test "x$with_x" = xno; then
7340 # The user explicitly disabled X.
7341 have_x=disabled
7342else
7343 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
7344 # Both variables are already set.
7345 have_x=yes
7346 else
7347if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
7348 echo $ac_n "(cached) $ac_c" 1>&6
7349else
7350 # One or both of the vars are not set, and there is no cached value.
7351ac_x_includes=NO ac_x_libraries=NO
7352rm -fr conftestdir
7353if mkdir conftestdir; then
7354 cd conftestdir
7355 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
7356 cat > Imakefile <<'EOF'
7357acfindx:
7358 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
7359EOF
7360 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
7361 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7362 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
7363 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
10f2d63a 7364 for ac_extension in a so sl; do
ab9b9eab
VZ
7365 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
7366 test -f $ac_im_libdir/libX11.$ac_extension; then
7367 ac_im_usrlibdir=$ac_im_libdir; break
10f2d63a
VZ
7368 fi
7369 done
ab9b9eab
VZ
7370 # Screen out bogus values from the imake configuration. They are
7371 # bogus both because they are the default anyway, and because
7372 # using them would break gcc on systems where it needs fixed includes.
7373 case "$ac_im_incroot" in
7374 /usr/include) ;;
7375 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
7376 esac
7377 case "$ac_im_usrlibdir" in
7378 /usr/lib | /lib) ;;
7379 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
7380 esac
ba337fe7 7381 fi
ab9b9eab
VZ
7382 cd ..
7383 rm -fr conftestdir
7384fi
10f2d63a 7385
ab9b9eab
VZ
7386if test "$ac_x_includes" = NO; then
7387 # Guess where to find include files, by looking for this one X11 .h file.
7388 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
ba337fe7 7389
ab9b9eab
VZ
7390 # First, try using that file with no special directory specified.
7391cat > conftest.$ac_ext <<EOF
bdad4e7e 7392#line 7393 "configure"
ab9b9eab
VZ
7393#include "confdefs.h"
7394#include <$x_direct_test_include>
7395EOF
7396ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
bdad4e7e 7397{ (eval echo configure:7398: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ab9b9eab
VZ
7398ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7399if test -z "$ac_err"; then
7400 rm -rf conftest*
7401 # We can compile using X headers with no special include directory.
7402ac_x_includes=
7403else
7404 echo "$ac_err" >&5
7405 echo "configure: failed program was:" >&5
7406 cat conftest.$ac_ext >&5
7407 rm -rf conftest*
7408 # Look for the header file in a standard set of common directories.
7409# Check X11 before X11Rn because it is often a symlink to the current release.
7410 for ac_dir in \
7411 /usr/X11/include \
7412 /usr/X11R6/include \
7413 /usr/X11R5/include \
7414 /usr/X11R4/include \
7415 \
7416 /usr/include/X11 \
7417 /usr/include/X11R6 \
7418 /usr/include/X11R5 \
7419 /usr/include/X11R4 \
7420 \
7421 /usr/local/X11/include \
7422 /usr/local/X11R6/include \
7423 /usr/local/X11R5/include \
7424 /usr/local/X11R4/include \
7425 \
7426 /usr/local/include/X11 \
7427 /usr/local/include/X11R6 \
7428 /usr/local/include/X11R5 \
7429 /usr/local/include/X11R4 \
7430 \
7431 /usr/X386/include \
7432 /usr/x386/include \
7433 /usr/XFree86/include/X11 \
7434 \
7435 /usr/include \
7436 /usr/local/include \
7437 /usr/unsupported/include \
7438 /usr/athena/include \
7439 /usr/local/x11r5/include \
7440 /usr/lpp/Xamples/include \
7441 \
7442 /usr/openwin/include \
7443 /usr/openwin/share/include \
7444 ; \
10f2d63a 7445 do
ab9b9eab
VZ
7446 if test -r "$ac_dir/$x_direct_test_include"; then
7447 ac_x_includes=$ac_dir
10f2d63a
VZ
7448 break
7449 fi
7450 done
ab9b9eab
VZ
7451fi
7452rm -f conftest*
7453fi # $ac_x_includes = NO
10f2d63a 7454
ab9b9eab
VZ
7455if test "$ac_x_libraries" = NO; then
7456 # Check for the libraries.
10f2d63a 7457
ab9b9eab
VZ
7458 test -z "$x_direct_test_library" && x_direct_test_library=Xt
7459 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
10f2d63a 7460
ab9b9eab
VZ
7461 # See if we find them without any special options.
7462 # Don't add to $LIBS permanently.
7463 ac_save_LIBS="$LIBS"
7464 LIBS="-l$x_direct_test_library $LIBS"
7465cat > conftest.$ac_ext <<EOF
bdad4e7e 7466#line 7467 "configure"
ab9b9eab 7467#include "confdefs.h"
10f2d63a 7468
ab9b9eab
VZ
7469int main() {
7470${x_direct_test_function}()
7471; return 0; }
7472EOF
bdad4e7e 7473if { (eval echo configure:7474: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
7474 rm -rf conftest*
7475 LIBS="$ac_save_LIBS"
7476# We can link X programs with no special library path.
7477ac_x_libraries=
7478else
7479 echo "configure: failed program was:" >&5
7480 cat conftest.$ac_ext >&5
7481 rm -rf conftest*
7482 LIBS="$ac_save_LIBS"
7483# First see if replacing the include by lib works.
7484# Check X11 before X11Rn because it is often a symlink to the current release.
7485for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
7486 /usr/X11/lib \
7487 /usr/X11R6/lib \
7488 /usr/X11R5/lib \
7489 /usr/X11R4/lib \
7490 \
7491 /usr/lib/X11 \
7492 /usr/lib/X11R6 \
7493 /usr/lib/X11R5 \
7494 /usr/lib/X11R4 \
7495 \
7496 /usr/local/X11/lib \
7497 /usr/local/X11R6/lib \
7498 /usr/local/X11R5/lib \
7499 /usr/local/X11R4/lib \
7500 \
7501 /usr/local/lib/X11 \
7502 /usr/local/lib/X11R6 \
7503 /usr/local/lib/X11R5 \
7504 /usr/local/lib/X11R4 \
7505 \
7506 /usr/X386/lib \
7507 /usr/x386/lib \
7508 /usr/XFree86/lib/X11 \
7509 \
7510 /usr/lib \
7511 /usr/local/lib \
7512 /usr/unsupported/lib \
7513 /usr/athena/lib \
7514 /usr/local/x11r5/lib \
7515 /usr/lpp/Xamples/lib \
7516 /lib/usr/lib/X11 \
7517 \
7518 /usr/openwin/lib \
7519 /usr/openwin/share/lib \
7520 ; \
7521do
7522 for ac_extension in a so sl; do
7523 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
7524 ac_x_libraries=$ac_dir
7525 break 2
10f2d63a 7526 fi
10f2d63a 7527 done
ab9b9eab
VZ
7528done
7529fi
7530rm -f conftest*
7531fi # $ac_x_libraries = NO
10f2d63a 7532
ab9b9eab
VZ
7533if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
7534 # Didn't find X anywhere. Cache the known absence of X.
7535 ac_cv_have_x="have_x=no"
7536else
7537 # Record where we found X for the cache.
7538 ac_cv_have_x="have_x=yes \
7539 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
7540fi
7541fi
10f2d63a 7542 fi
ab9b9eab
VZ
7543 eval "$ac_cv_have_x"
7544fi # $with_x != no
10f2d63a 7545
ab9b9eab
VZ
7546if test "$have_x" != yes; then
7547 echo "$ac_t""$have_x" 1>&6
7548 no_x=yes
7549else
7550 # If each of the values was on the command line, it overrides each guess.
7551 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
7552 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
7553 # Update the cache value to reflect the command line values.
7554 ac_cv_have_x="have_x=yes \
7555 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
7556 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
7557fi
10f2d63a 7558
ab9b9eab
VZ
7559if test "$no_x" = yes; then
7560 # Not all programs may use this symbol, but it does not hurt to define it.
7561 cat >> confdefs.h <<\EOF
7562#define X_DISPLAY_MISSING 1
7563EOF
10f2d63a 7564
ab9b9eab
VZ
7565 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
7566else
7567 if test -n "$x_includes"; then
7568 X_CFLAGS="$X_CFLAGS -I$x_includes"
10f2d63a
VZ
7569 fi
7570
ab9b9eab
VZ
7571 # It would also be nice to do this for all -L options, not just this one.
7572 if test -n "$x_libraries"; then
7573 X_LIBS="$X_LIBS -L$x_libraries"
7574 # For Solaris; some versions of Sun CC require a space after -R and
7575 # others require no space. Words are not sufficient . . . .
7576 case "`(uname -sr) 2>/dev/null`" in
7577 "SunOS 5"*)
7578 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
bdad4e7e 7579echo "configure:7580: checking whether -R must be followed by a space" >&5
ab9b9eab
VZ
7580 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
7581 cat > conftest.$ac_ext <<EOF
bdad4e7e 7582#line 7583 "configure"
ab9b9eab 7583#include "confdefs.h"
10f2d63a 7584
ab9b9eab 7585int main() {
788deba1 7586
ab9b9eab
VZ
7587; return 0; }
7588EOF
bdad4e7e 7589if { (eval echo configure:7590: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
7590 rm -rf conftest*
7591 ac_R_nospace=yes
7592else
7593 echo "configure: failed program was:" >&5
7594 cat conftest.$ac_ext >&5
7595 rm -rf conftest*
7596 ac_R_nospace=no
7597fi
7598rm -f conftest*
7599 if test $ac_R_nospace = yes; then
7600 echo "$ac_t""no" 1>&6
7601 X_LIBS="$X_LIBS -R$x_libraries"
7602 else
7603 LIBS="$ac_xsave_LIBS -R $x_libraries"
7604 cat > conftest.$ac_ext <<EOF
bdad4e7e 7605#line 7606 "configure"
ab9b9eab 7606#include "confdefs.h"
788deba1 7607
ab9b9eab
VZ
7608int main() {
7609
7610; return 0; }
7611EOF
bdad4e7e 7612if { (eval echo configure:7613: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
7613 rm -rf conftest*
7614 ac_R_space=yes
7615else
7616 echo "configure: failed program was:" >&5
7617 cat conftest.$ac_ext >&5
7618 rm -rf conftest*
7619 ac_R_space=no
7620fi
7621rm -f conftest*
7622 if test $ac_R_space = yes; then
7623 echo "$ac_t""yes" 1>&6
7624 X_LIBS="$X_LIBS -R $x_libraries"
7625 else
7626 echo "$ac_t""neither works" 1>&6
7627 fi
7628 fi
7629 LIBS="$ac_xsave_LIBS"
7630 esac
7631 fi
7632
7633 # Check for system-dependent libraries X programs must link with.
7634 # Do this before checking for the system-independent R6 libraries
7635 # (-lICE), since we may need -lsocket or whatever for X linking.
7636
7637 if test "$ISC" = yes; then
7638 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
7639 else
7640 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
7641 # libraries were built with DECnet support. And karl@cs.umb.edu says
7642 # the Alpha needs dnet_stub (dnet does not exist).
7643 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
bdad4e7e 7644echo "configure:7645: checking for dnet_ntoa in -ldnet" >&5
ab9b9eab
VZ
7645ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
7646if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7647 echo $ac_n "(cached) $ac_c" 1>&6
7648else
7649 ac_save_LIBS="$LIBS"
7650LIBS="-ldnet $LIBS"
7651cat > conftest.$ac_ext <<EOF
bdad4e7e 7652#line 7653 "configure"
ab9b9eab
VZ
7653#include "confdefs.h"
7654/* Override any gcc2 internal prototype to avoid an error. */
7655/* We use char because int might match the return type of a gcc2
7656 builtin and then its argument prototype would still apply. */
7657char dnet_ntoa();
7658
7659int main() {
7660dnet_ntoa()
7661; return 0; }
7662EOF
bdad4e7e 7663if { (eval echo configure:7664: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
7664 rm -rf conftest*
7665 eval "ac_cv_lib_$ac_lib_var=yes"
7666else
7667 echo "configure: failed program was:" >&5
7668 cat conftest.$ac_ext >&5
7669 rm -rf conftest*
7670 eval "ac_cv_lib_$ac_lib_var=no"
7671fi
7672rm -f conftest*
7673LIBS="$ac_save_LIBS"
7674
7675fi
7676if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7677 echo "$ac_t""yes" 1>&6
7678 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
7679else
7680 echo "$ac_t""no" 1>&6
7681fi
7682
7683 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
7684 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
bdad4e7e 7685echo "configure:7686: checking for dnet_ntoa in -ldnet_stub" >&5
ab9b9eab
VZ
7686ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
7687if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7688 echo $ac_n "(cached) $ac_c" 1>&6
7689else
7690 ac_save_LIBS="$LIBS"
7691LIBS="-ldnet_stub $LIBS"
7692cat > conftest.$ac_ext <<EOF
bdad4e7e 7693#line 7694 "configure"
ab9b9eab
VZ
7694#include "confdefs.h"
7695/* Override any gcc2 internal prototype to avoid an error. */
7696/* We use char because int might match the return type of a gcc2
7697 builtin and then its argument prototype would still apply. */
7698char dnet_ntoa();
7699
7700int main() {
7701dnet_ntoa()
7702; return 0; }
7703EOF
bdad4e7e 7704if { (eval echo configure:7705: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
7705 rm -rf conftest*
7706 eval "ac_cv_lib_$ac_lib_var=yes"
7707else
7708 echo "configure: failed program was:" >&5
7709 cat conftest.$ac_ext >&5
7710 rm -rf conftest*
7711 eval "ac_cv_lib_$ac_lib_var=no"
7712fi
7713rm -f conftest*
7714LIBS="$ac_save_LIBS"
7715
7716fi
7717if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7718 echo "$ac_t""yes" 1>&6
7719 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
7720else
7721 echo "$ac_t""no" 1>&6
7722fi
7723
7724 fi
7725
7726 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
7727 # to get the SysV transport functions.
7728 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
7729 # needs -lnsl.
7730 # The nsl library prevents programs from opening the X display
7731 # on Irix 5.2, according to dickey@clark.net.
7732 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
bdad4e7e 7733echo "configure:7734: checking for gethostbyname" >&5
ab9b9eab
VZ
7734if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
7735 echo $ac_n "(cached) $ac_c" 1>&6
7736else
7737 cat > conftest.$ac_ext <<EOF
bdad4e7e 7738#line 7739 "configure"
ab9b9eab
VZ
7739#include "confdefs.h"
7740/* System header to define __stub macros and hopefully few prototypes,
7741 which can conflict with char gethostbyname(); below. */
7742#include <assert.h>
7743/* Override any gcc2 internal prototype to avoid an error. */
7744/* We use char because int might match the return type of a gcc2
7745 builtin and then its argument prototype would still apply. */
7746char gethostbyname();
bdad4e7e 7747char (*f)();
ab9b9eab
VZ
7748
7749int main() {
7750
7751/* The GNU C library defines this for functions which it implements
7752 to always fail with ENOSYS. Some functions are actually named
7753 something starting with __ and the normal name is an alias. */
7754#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
7755choke me
7756#else
bdad4e7e 7757f = gethostbyname;
ab9b9eab
VZ
7758#endif
7759
7760; return 0; }
7761EOF
bdad4e7e 7762if { (eval echo configure:7763: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
7763 rm -rf conftest*
7764 eval "ac_cv_func_gethostbyname=yes"
7765else
7766 echo "configure: failed program was:" >&5
7767 cat conftest.$ac_ext >&5
7768 rm -rf conftest*
7769 eval "ac_cv_func_gethostbyname=no"
7770fi
7771rm -f conftest*
7772fi
7773
7774if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
7775 echo "$ac_t""yes" 1>&6
7776 :
7777else
7778 echo "$ac_t""no" 1>&6
7779fi
7780
7781 if test $ac_cv_func_gethostbyname = no; then
7782 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
bdad4e7e 7783echo "configure:7784: checking for gethostbyname in -lnsl" >&5
ab9b9eab
VZ
7784ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
7785if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7786 echo $ac_n "(cached) $ac_c" 1>&6
7787else
7788 ac_save_LIBS="$LIBS"
7789LIBS="-lnsl $LIBS"
7790cat > conftest.$ac_ext <<EOF
bdad4e7e 7791#line 7792 "configure"
ab9b9eab
VZ
7792#include "confdefs.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() {
7799gethostbyname()
7800; return 0; }
7801EOF
bdad4e7e 7802if { (eval echo configure:7803: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
7803 rm -rf conftest*
7804 eval "ac_cv_lib_$ac_lib_var=yes"
7805else
7806 echo "configure: failed program was:" >&5
7807 cat conftest.$ac_ext >&5
7808 rm -rf conftest*
7809 eval "ac_cv_lib_$ac_lib_var=no"
7810fi
7811rm -f conftest*
7812LIBS="$ac_save_LIBS"
7813
7814fi
7815if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7816 echo "$ac_t""yes" 1>&6
7817 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
7818else
7819 echo "$ac_t""no" 1>&6
7820fi
7821
7822 fi
7823
7824 # lieder@skyler.mavd.honeywell.com says without -lsocket,
7825 # socket/setsockopt and other routines are undefined under SCO ODT
7826 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
7827 # on later versions), says simon@lia.di.epfl.ch: it contains
7828 # gethostby* variants that don't use the nameserver (or something).
7829 # -lsocket must be given before -lnsl if both are needed.
7830 # We assume that if connect needs -lnsl, so does gethostbyname.
7831 echo $ac_n "checking for connect""... $ac_c" 1>&6
bdad4e7e 7832echo "configure:7833: checking for connect" >&5
ab9b9eab
VZ
7833if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
7834 echo $ac_n "(cached) $ac_c" 1>&6
7835else
7836 cat > conftest.$ac_ext <<EOF
bdad4e7e 7837#line 7838 "configure"
ab9b9eab
VZ
7838#include "confdefs.h"
7839/* System header to define __stub macros and hopefully few prototypes,
7840 which can conflict with char connect(); below. */
7841#include <assert.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 connect();
bdad4e7e 7846char (*f)();
ab9b9eab
VZ
7847
7848int main() {
7849
7850/* The GNU C library defines this for functions which it implements
7851 to always fail with ENOSYS. Some functions are actually named
7852 something starting with __ and the normal name is an alias. */
7853#if defined (__stub_connect) || defined (__stub___connect)
7854choke me
7855#else
bdad4e7e 7856f = connect;
ab9b9eab
VZ
7857#endif
7858
7859; return 0; }
7860EOF
bdad4e7e 7861if { (eval echo configure:7862: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
7862 rm -rf conftest*
7863 eval "ac_cv_func_connect=yes"
7864else
7865 echo "configure: failed program was:" >&5
7866 cat conftest.$ac_ext >&5
7867 rm -rf conftest*
7868 eval "ac_cv_func_connect=no"
7869fi
7870rm -f conftest*
7871fi
7872
7873if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
7874 echo "$ac_t""yes" 1>&6
7875 :
7876else
7877 echo "$ac_t""no" 1>&6
7878fi
7879
7880 if test $ac_cv_func_connect = no; then
7881 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
bdad4e7e 7882echo "configure:7883: checking for connect in -lsocket" >&5
ab9b9eab
VZ
7883ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
7884if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7885 echo $ac_n "(cached) $ac_c" 1>&6
7886else
7887 ac_save_LIBS="$LIBS"
7888LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
7889cat > conftest.$ac_ext <<EOF
bdad4e7e 7890#line 7891 "configure"
ab9b9eab
VZ
7891#include "confdefs.h"
7892/* Override any gcc2 internal prototype to avoid an error. */
7893/* We use char because int might match the return type of a gcc2
7894 builtin and then its argument prototype would still apply. */
7895char connect();
7896
7897int main() {
7898connect()
7899; return 0; }
7900EOF
bdad4e7e 7901if { (eval echo configure:7902: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
7902 rm -rf conftest*
7903 eval "ac_cv_lib_$ac_lib_var=yes"
7904else
7905 echo "configure: failed program was:" >&5
7906 cat conftest.$ac_ext >&5
7907 rm -rf conftest*
7908 eval "ac_cv_lib_$ac_lib_var=no"
7909fi
7910rm -f conftest*
7911LIBS="$ac_save_LIBS"
7912
7913fi
7914if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7915 echo "$ac_t""yes" 1>&6
7916 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
7917else
7918 echo "$ac_t""no" 1>&6
7919fi
7920
7921 fi
7922
7923 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
7924 echo $ac_n "checking for remove""... $ac_c" 1>&6
bdad4e7e 7925echo "configure:7926: checking for remove" >&5
ab9b9eab
VZ
7926if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
7927 echo $ac_n "(cached) $ac_c" 1>&6
7928else
7929 cat > conftest.$ac_ext <<EOF
bdad4e7e 7930#line 7931 "configure"
ab9b9eab
VZ
7931#include "confdefs.h"
7932/* System header to define __stub macros and hopefully few prototypes,
7933 which can conflict with char remove(); below. */
7934#include <assert.h>
7935/* Override any gcc2 internal prototype to avoid an error. */
7936/* We use char because int might match the return type of a gcc2
7937 builtin and then its argument prototype would still apply. */
7938char remove();
bdad4e7e 7939char (*f)();
ab9b9eab
VZ
7940
7941int main() {
7942
7943/* The GNU C library defines this for functions which it implements
7944 to always fail with ENOSYS. Some functions are actually named
7945 something starting with __ and the normal name is an alias. */
7946#if defined (__stub_remove) || defined (__stub___remove)
7947choke me
7948#else
bdad4e7e 7949f = remove;
ab9b9eab
VZ
7950#endif
7951
7952; return 0; }
7953EOF
bdad4e7e 7954if { (eval echo configure:7955: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
7955 rm -rf conftest*
7956 eval "ac_cv_func_remove=yes"
7957else
7958 echo "configure: failed program was:" >&5
7959 cat conftest.$ac_ext >&5
7960 rm -rf conftest*
7961 eval "ac_cv_func_remove=no"
7962fi
7963rm -f conftest*
7964fi
7965
7966if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
7967 echo "$ac_t""yes" 1>&6
7968 :
7969else
7970 echo "$ac_t""no" 1>&6
7971fi
7972
7973 if test $ac_cv_func_remove = no; then
7974 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
bdad4e7e 7975echo "configure:7976: checking for remove in -lposix" >&5
ab9b9eab
VZ
7976ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
7977if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7978 echo $ac_n "(cached) $ac_c" 1>&6
7979else
7980 ac_save_LIBS="$LIBS"
7981LIBS="-lposix $LIBS"
7982cat > conftest.$ac_ext <<EOF
bdad4e7e 7983#line 7984 "configure"
ab9b9eab
VZ
7984#include "confdefs.h"
7985/* Override any gcc2 internal prototype to avoid an error. */
7986/* We use char because int might match the return type of a gcc2
7987 builtin and then its argument prototype would still apply. */
7988char remove();
7989
7990int main() {
7991remove()
7992; return 0; }
7993EOF
bdad4e7e 7994if { (eval echo configure:7995: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
7995 rm -rf conftest*
7996 eval "ac_cv_lib_$ac_lib_var=yes"
7997else
7998 echo "configure: failed program was:" >&5
7999 cat conftest.$ac_ext >&5
8000 rm -rf conftest*
8001 eval "ac_cv_lib_$ac_lib_var=no"
8002fi
8003rm -f conftest*
8004LIBS="$ac_save_LIBS"
8005
8006fi
8007if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8008 echo "$ac_t""yes" 1>&6
8009 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
8010else
8011 echo "$ac_t""no" 1>&6
8012fi
8013
8014 fi
8015
8016 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
8017 echo $ac_n "checking for shmat""... $ac_c" 1>&6
bdad4e7e 8018echo "configure:8019: checking for shmat" >&5
ab9b9eab
VZ
8019if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
8020 echo $ac_n "(cached) $ac_c" 1>&6
8021else
8022 cat > conftest.$ac_ext <<EOF
bdad4e7e 8023#line 8024 "configure"
ab9b9eab
VZ
8024#include "confdefs.h"
8025/* System header to define __stub macros and hopefully few prototypes,
8026 which can conflict with char shmat(); below. */
8027#include <assert.h>
8028/* Override any gcc2 internal prototype to avoid an error. */
8029/* We use char because int might match the return type of a gcc2
8030 builtin and then its argument prototype would still apply. */
8031char shmat();
bdad4e7e 8032char (*f)();
ab9b9eab
VZ
8033
8034int main() {
8035
8036/* The GNU C library defines this for functions which it implements
8037 to always fail with ENOSYS. Some functions are actually named
8038 something starting with __ and the normal name is an alias. */
8039#if defined (__stub_shmat) || defined (__stub___shmat)
8040choke me
8041#else
bdad4e7e 8042f = shmat;
ab9b9eab
VZ
8043#endif
8044
8045; return 0; }
8046EOF
c733b222 8047if { (eval echo configure:8048: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
8048 rm -rf conftest*
8049 eval "ac_cv_func_shmat=yes"
8050else
8051 echo "configure: failed program was:" >&5
8052 cat conftest.$ac_ext >&5
8053 rm -rf conftest*
8054 eval "ac_cv_func_shmat=no"
8055fi
8056rm -f conftest*
8057fi
8058
8059if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
8060 echo "$ac_t""yes" 1>&6
8061 :
8062else
8063 echo "$ac_t""no" 1>&6
8064fi
8065
8066 if test $ac_cv_func_shmat = no; then
8067 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
c733b222 8068echo "configure:8069: checking for shmat in -lipc" >&5
ab9b9eab
VZ
8069ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
8070if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8071 echo $ac_n "(cached) $ac_c" 1>&6
8072else
8073 ac_save_LIBS="$LIBS"
8074LIBS="-lipc $LIBS"
8075cat > conftest.$ac_ext <<EOF
c733b222 8076#line 8077 "configure"
ab9b9eab
VZ
8077#include "confdefs.h"
8078/* Override any gcc2 internal prototype to avoid an error. */
8079/* We use char because int might match the return type of a gcc2
8080 builtin and then its argument prototype would still apply. */
8081char shmat();
8082
8083int main() {
8084shmat()
8085; return 0; }
8086EOF
c733b222 8087if { (eval echo configure:8088: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
8088 rm -rf conftest*
8089 eval "ac_cv_lib_$ac_lib_var=yes"
8090else
8091 echo "configure: failed program was:" >&5
8092 cat conftest.$ac_ext >&5
8093 rm -rf conftest*
8094 eval "ac_cv_lib_$ac_lib_var=no"
8095fi
8096rm -f conftest*
8097LIBS="$ac_save_LIBS"
8098
8099fi
8100if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8101 echo "$ac_t""yes" 1>&6
8102 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
8103else
8104 echo "$ac_t""no" 1>&6
8105fi
8106
8107 fi
8108 fi
8109
8110 # Check for libraries that X11R6 Xt/Xaw programs need.
8111 ac_save_LDFLAGS="$LDFLAGS"
8112 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
8113 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
8114 # check for ICE first), but we must link in the order -lSM -lICE or
8115 # we get undefined symbols. So assume we have SM if we have ICE.
8116 # These have to be linked with before -lX11, unlike the other
8117 # libraries we check for below, so use a different variable.
8118 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
8119 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
c733b222 8120echo "configure:8121: checking for IceConnectionNumber in -lICE" >&5
ab9b9eab
VZ
8121ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
8122if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8123 echo $ac_n "(cached) $ac_c" 1>&6
8124else
8125 ac_save_LIBS="$LIBS"
8126LIBS="-lICE $X_EXTRA_LIBS $LIBS"
8127cat > conftest.$ac_ext <<EOF
c733b222 8128#line 8129 "configure"
ab9b9eab
VZ
8129#include "confdefs.h"
8130/* Override any gcc2 internal prototype to avoid an error. */
8131/* We use char because int might match the return type of a gcc2
8132 builtin and then its argument prototype would still apply. */
8133char IceConnectionNumber();
8134
8135int main() {
8136IceConnectionNumber()
8137; return 0; }
8138EOF
c733b222 8139if { (eval echo configure:8140: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
8140 rm -rf conftest*
8141 eval "ac_cv_lib_$ac_lib_var=yes"
8142else
8143 echo "configure: failed program was:" >&5
8144 cat conftest.$ac_ext >&5
8145 rm -rf conftest*
8146 eval "ac_cv_lib_$ac_lib_var=no"
8147fi
8148rm -f conftest*
8149LIBS="$ac_save_LIBS"
8150
8151fi
8152if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8153 echo "$ac_t""yes" 1>&6
8154 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
8155else
8156 echo "$ac_t""no" 1>&6
8157fi
8158
8159 LDFLAGS="$ac_save_LDFLAGS"
8160
8161fi
8162
8163
8164 if test "$no_x" = "yes"; then
8165 { echo "configure: error: X11 not found" 1>&2; exit 1; }
8166 fi
8167
8168 GUI_TK_LIBRARY="$X_LIBS"
8169 TOOLKIT_INCLUDE="$X_CFLAGS"
8170
dad6c0ea
VZ
8171 AFMINSTALL=afminstall
8172
ab9b9eab 8173
cd6d6d5b
VZ
8174 COMPILED_X_PROGRAM=0
8175
ab9b9eab 8176 echo $ac_n "checking for Motif/Lesstif headers""... $ac_c" 1>&6
c733b222 8177echo "configure:8178: checking for Motif/Lesstif headers" >&5
ab9b9eab
VZ
8178
8179ac_find_includes=
8180for ac_dir in $SEARCH_INCLUDE;
8181 do
8182 if test -f "$ac_dir/Xm/Xm.h"; then
8183 ac_find_includes=$ac_dir
8184 break
8185 fi
8186 done
8187
8188 if test "$ac_find_includes" != "" ; then
8189 echo "$ac_t""found $ac_find_includes" 1>&6
8190 else
cd6d6d5b 8191 cat > conftest.$ac_ext <<EOF
c733b222 8192#line 8193 "configure"
cd6d6d5b
VZ
8193#include "confdefs.h"
8194
8195 #include <Xm/Xm.h>
8196
8197int main() {
8198
8199 int version;
8200
8201 version = xmUseVersion;
8202
8203; return 0; }
8204EOF
c733b222 8205if { (eval echo configure:8206: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
cd6d6d5b
VZ
8206 rm -rf conftest*
8207
8208 echo "$ac_t""found in default search path" 1>&6
8209 COMPILED_X_PROGRAM=1
8210
8211else
8212 echo "configure: failed program was:" >&5
8213 cat conftest.$ac_ext >&5
8214 rm -rf conftest*
8215
8216 echo "$ac_t""no" 1>&6
8217 { echo "configure: error: please set CFLAGS to contain the location of Xm/Xm.h" 1>&2; exit 1; }
8218
8219
8220fi
8221rm -f conftest*
ab9b9eab
VZ
8222 fi
8223
cd6d6d5b
VZ
8224 if test "$COMPILED_X_PROGRAM" = 0; then
8225 echo $ac_n "checking for Motif/Lesstif library""... $ac_c" 1>&6
c733b222 8226echo "configure:8227: checking for Motif/Lesstif library" >&5
cd6d6d5b 8227
ab9b9eab
VZ
8228ac_find_libraries=
8229for ac_dir in $SEARCH_LIB;
8230 do
8231 for ac_extension in a so sl; do
8232 if test -f "$ac_dir/libXm.$ac_extension"; then
8233 ac_find_libraries=$ac_dir
8234 break 2
8235 fi
8236 done
8237 done
8238
cd6d6d5b
VZ
8239 if test "$ac_find_libraries" != "" ; then
8240
ab9b9eab
VZ
8241 ac_path_to_include=$ac_find_includes
8242 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
8243 result=$?
8244 if test $result = 0; then
8245 ac_path_to_include=""
8246 else
8247 ac_path_to_include="-I$ac_find_includes"
8248 fi
8249
cd6d6d5b 8250
ab9b9eab
VZ
8251 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
8252 result=$?
8253 if test $result = 0; then
8254 ac_path_to_link=""
8255 else
8256 ac_path_to_link="-L$ac_find_libraries"
8257 fi
8258
8259
cd6d6d5b
VZ
8260 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $ac_path_to_link"
8261 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE $ac_path_to_include"
8262 echo "$ac_t""found at $ac_find_libraries" 1>&6
8263 else
8264 cat > conftest.$ac_ext <<EOF
c733b222 8265#line 8266 "configure"
cd6d6d5b 8266#include "confdefs.h"
ab9b9eab 8267
cd6d6d5b
VZ
8268 #include <Xm/Xm.h>
8269
8270int main() {
ab9b9eab 8271
cd6d6d5b 8272 int version;
ab9b9eab 8273
cd6d6d5b
VZ
8274 version = xmUseVersion;
8275
8276; return 0; }
8277EOF
c733b222 8278if { (eval echo configure:8279: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
cd6d6d5b
VZ
8279 rm -rf conftest*
8280
8281 echo "$ac_t""found in default search path" 1>&6
8282 COMPILED_X_PROGRAM=1
8283
8284else
8285 echo "configure: failed program was:" >&5
8286 cat conftest.$ac_ext >&5
8287 rm -rf conftest*
8288
8289 echo "$ac_t""no" 1>&6
8290 { echo "configure: error: please set LDFLAGS to contain the location of libXm" 1>&2; exit 1; }
8291
8292
8293fi
8294rm -f conftest*
8295 fi
ab9b9eab
VZ
8296 fi
8297
cd6d6d5b 8298
ab9b9eab
VZ
8299 XPM_LINK=""
8300 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
c733b222 8301echo "configure:8302: checking for Xpm library" >&5
ab9b9eab
VZ
8302
8303ac_find_libraries=
8304for ac_dir in $SEARCH_LIB;
8305 do
8306 for ac_extension in a so sl; do
8307 if test -f "$ac_dir/libXpm.$ac_extension"; then
8308 ac_find_libraries=$ac_dir
8309 break 2
8310 fi
8311 done
8312 done
8313
8314 if test "$ac_find_libraries" != "" ; then
8315
8316 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
8317 result=$?
8318 if test $result = 0; then
8319 ac_path_to_link=""
8320 else
8321 ac_path_to_link="-L$ac_find_libraries"
8322 fi
8323
8324 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $ac_path_to_link"
8325 XPM_LINK="-lXpm "
8326 cat >> confdefs.h <<\EOF
8327#define wxHAVE_LIB_XPM 1
8328EOF
8329
8330 echo "$ac_t""found at $ac_find_libraries" 1>&6
8331 else
cd6d6d5b 8332 cat > conftest.$ac_ext <<EOF
c733b222 8333#line 8334 "configure"
cd6d6d5b
VZ
8334#include "confdefs.h"
8335
8336 #include <X11/xpm.h>
8337
8338int main() {
8339
8340 int version;
8341
8342 version = XpmLibraryVersion();
8343
8344; return 0; }
8345EOF
c733b222 8346if { (eval echo configure:8347: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
cd6d6d5b
VZ
8347 rm -rf conftest*
8348
bdad4e7e
RR
8349 XPM_LINK="-lXpm "
8350 cat >> confdefs.h <<\EOF
3ace2e6d
SN
8351#define wxHAVE_LIB_XPM 1
8352EOF
8353
8354 echo "$ac_t""found in default search path" 1>&6
cd6d6d5b
VZ
8355 COMPILED_X_PROGRAM=0
8356
8357else
8358 echo "configure: failed program was:" >&5
8359 cat conftest.$ac_ext >&5
8360 rm -rf conftest*
8361
8362 echo "$ac_t""no" 1>&6
8363 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
8364
8365
8366fi
8367rm -f conftest*
ab9b9eab
VZ
8368 fi
8369
8370 GUI_TK_LINK="-lXm $XPM_LINK -lXmu -lXext -lXt -lX11 -lm"
8371 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $GUI_TK_LINK"
8372 TOOLKIT=MOTIF
8373
8374 GUIHEADERS="\$(MOTIF_HEADERS)"
8375 GUIOBJS="\$(MOTIF_GUIOBJS)"
8376 COMMONOBJS="\$(MOTIF_COMMONOBJS)"
788deba1
VZ
8377 GENERICOBJS="\$(MOTIF_GENERICOBJS)"
8378 GUIDEPS="\$(MOTIF_GUIDEPS)"
8379 COMMONDEPS="\$(MOTIF_COMMONDEPS)"
10f2d63a
VZ
8380 GENERICDEPS="\$(MOTIF_GENERICDEPS)"
8381 UNIXOBJS="\$(UNIX_OBJS)"
d9d8273d 8382 UNIXDEPS="\$(UNIX_DEPS)"
10f2d63a
VZ
8383 GUIDIST=MOTIF_DIST
8384fi
8385
e07802fc
VZ
8386if test "$wxUSE_PM" = 1; then
8387 TOOLKIT=PM
8388
8389 GUIOBJS="\$(PM_GUIOBJS)"
8390 GUIHEADERS="\$(PM_HEADERS)"
8391 COMMONOBJS="\$(PM_COMMONOBJS)"
8392 GENERICOBJS="\$(PM_GENERICOBJS)"
8393 GUIDEPS="\$(PM_GUIDEPS)"
8394 COMMONDEPS="\$(PM_COMMONDEPS)"
8395 GENERICDEPS="\$(PM_GENERICDEPS)"
8396 UNIXOBJS=
8397 UNIXDEPS=
8398 GUIDIST=GTK_DIST
8399fi
8400
8401if test "$TOOLKIT" != "PM" ; then
ec14dd32 8402 TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
e07802fc
VZ
8403else
8404 TOOLKIT_DIR="os2"
8405fi
10f2d63a 8406
2224580a 8407 TOOLKIT_DEF="-D__WX${TOOLKIT}__"
10f2d63a 8408
2224580a 8409 WX_LIBRARY="wx_${TOOLKIT_DIR}"
10f2d63a 8410
bdad4e7e 8411 ALL_OBJECTS="\$(GUIOBJS) \$(COMMONOBJS) \$(GENERICOBJS) \$(UNIXOBJS) \$(HTMLOBJS) \$(OGLOBJS)"
3fcdd07b 8412
b089607b 8413 if test "$TOOLKIT" != "MSW"; then
cc977e5f
RR
8414 if test "$wxUSE_ODBC" = "yes" ; then
8415 ALL_OBJECTS="${ALL_OBJECTS} \$(IODBCOBJS)"
8416 fi
3fcdd07b
VZ
8417 fi
8418
d9d8273d 8419 if test "$wxUSE_LIBJPEG" = "yes" ; then
2224580a 8420 ALL_OBJECTS="${ALL_OBJECTS} \$(JPEGOBJS)"
d9d8273d
RR
8421 fi
8422 if test "$wxUSE_LIBTIFF" = "yes" ; then
8423 ALL_OBJECTS="${ALL_OBJECTS} \$(TIFFOBJS)"
8424 fi
8425 if test "$wxUSE_LIBPNG" = "yes" ; then
8426 ALL_OBJECTS="${ALL_OBJECTS} \$(PNGOBJS)"
8427 fi
8428 if test "$wxUSE_ZLIB" = "yes" ; then
8429 ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)"
8430 fi
bdad4e7e 8431 ALL_DEPFILES="\$(GUIDEPS) \$(COMMONDEPS) \$(GENERICDEPS) \$(UNIXDEPS) \$(HTMLDEPS) \$(OGLDEPS)"
2224580a
VZ
8432
8433 PORT_FILES="src/\$(TOOLKITDIR)/files.lst"
8434 RPM_FILES="src/\$(TOOLKITDIR)/rpmfiles.lst"
8435 RPM_SPEC="wx\$(TOOLKIT).spec"
8436
8437 GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
8438 DISTDIR="wx\$(TOOLKIT)"
10f2d63a 8439else
dad6c0ea
VZ
8440 USE_GUI=0
8441
07eb77a6
RL
8442 TOOLKIT_DIR="base"
8443 TOOLKIT_DEF="-D__WXBASE__"
8444
2224580a
VZ
8445 ALL_OBJECTS="\$(BASE_OBJS) \${BASE_UNIX_OBJS}"
8446 ALL_DEPFILES="\${BASE_DEPS} \${BASE_UNIX_DEPS}"
10f2d63a
VZ
8447
8448 WX_LIBRARY="wxbase"
2224580a
VZ
8449
8450 PORT_FILES="src/files.lst"
8451 RPM_FILES="src/rpmfiles.lst"
8452 RPM_SPEC="wxBase.spec"
8453
8454 GUIDIST="BASE_DIST"
8455 DISTDIR="wxBase"
10f2d63a
VZ
8456fi
8457
8458WX_LIBRARY_NAME="lib${WX_LIBRARY}.la"
bdad4e7e 8459WX_LIBRARY_NAME_GL="lib${WX_LIBRARY}_gl.la"
10f2d63a
VZ
8460
8461WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a"
bdad4e7e 8462WX_LIBRARY_NAME_STATIC_GL="lib${WX_LIBRARY}_gl.a"
10f2d63a
VZ
8463
8464WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}-${WX_RELEASE}.so.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
bdad4e7e 8465WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.so.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
10f2d63a
VZ
8466
8467WX_LIBRARY_LINK1="lib${WX_LIBRARY}-${WX_RELEASE}.so.${WX_CURRENT}"
8468WX_LIBRARY_LINK2="lib${WX_LIBRARY}-${WX_RELEASE}.so"
8469WX_LIBRARY_LINK3="lib${WX_LIBRARY}.so"
bdad4e7e
RR
8470WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.so.${WX_CURRENT}"
8471WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.so"
8472WX_LIBRARY_LINK3_GL="lib${WX_LIBRARY}_gl.so"
10f2d63a
VZ
8473
8474SHARED_LD=
8475PIC_FLAG=
8476WX_ALL=
8477WX_ALL_INSTALLED=
1d62a8b4 8478BURNT_LIBRARY_NAME=
10f2d63a 8479
b12915c1 8480
10f2d63a
VZ
8481if test "$wxUSE_SHARED" = "yes"; then
8482 case "${host}" in
8483 *-hp-hpux* )
8484 if test "$GCC" = yes ; then
69ffe1d2 8485 SHARED_LD="${CC} -shared -fPIC -o"
10f2d63a
VZ
8486 PIC_FLAG="-fPIC"
8487 else
8488 SHARED_LD="${CXX} -b -o"
8489 PIC_FLAG="+Z"
8490 fi
8491 WX_LIBRARY_NAME_SHARED="libwx_${TOOLKIT_DIR}.sl"
bdad4e7e 8492 WX_LIBRARY_NAME_SHARED_GL="libwx_${TOOLKIT_DIR}_gl.sl"
10f2d63a
VZ
8493 WX_ALL=${WX_LIBRARY_NAME_SHARED}
8494 ;;
b12915c1
VZ
8495
8496 *-*-linux* )
10f2d63a
VZ
8497 SHARED_LD="${CC} -shared -o"
8498 PIC_FLAG="-fPIC"
00cf1208 8499 if test "$wxUSE_BURNT_NAME" = "yes" ; then
05cdfc6f 8500 BURNT_LIBRARY_NAME="-Wl,-soname,${WX_LIBRARY_LINK1}"
bdad4e7e 8501 BURNT_LIBRARY_NAME_GL="-Wl,-soname,${WX_LIBRARY_LINK1_GL}"
00cf1208 8502 fi
bdad4e7e
RR
8503 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
8504 WX_ALL="CREATE_LINKS CREATE_LINKS_GL"
00cf1208 8505 ;;
10f2d63a
VZ
8506 *-*-irix5* | *-*-irix6* )
8507 if test "$GCC" = yes ; then
8508 SHARED_LD="${CC} -shared -o"
8509 PIC_FLAG="-fPIC"
8510 else
8511 SHARED_LD="${CXX} -shared -o"
8512 fi
8513 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
bdad4e7e 8514 WX_ALL="CREATE_LINKS CREATE_LINKS_GL"
10f2d63a
VZ
8515 ;;
8516 *-*-solaris2* )
8517 if test "$GCC" = yes ; then
8518 SHARED_LD="${CC} -shared -o"
8519 PIC_FLAG="-fPIC"
8520 else
8521 SHARED_LD="${CXX} -G -o"
8522 PIC_FLAG="-KPIC"
8523 fi
8524 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
bdad4e7e 8525 WX_ALL="CREATE_LINKS CREATE_LINKS_GL"
10f2d63a
VZ
8526 ;;
8527 *-*-sunos4* )
8528 SHARED_LD="${CC} -shared -o"
8529 PIC_FLAG="-fPIC"
8530 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
8531 WX_ALL="CREATE_LINKS"
8532 ;;
8533 *-*-freebsd* | *-*-netbsd*)
8534 SHARED_LD="${CC} -shared -o"
8535 PIC_FLAG="-fPIC"
8536 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
8537 WX_ALL="CREATE_LINKS"
8538 ;;
8539 *-*-osf* )
8540 SHARED_LD="${CXX} -shared -o"
8541 PIC_FLAG="-fPIC"
8542 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
8543 WX_ALL="CREATE_LINKS"
8544 ;;
8545 *-*-dgux5* )
8546 SHARED_LD="${CXX} -shared -o"
8547 PIC_FLAG="-fPIC"
8548 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
8549 WX_ALL="CREATE_LINKS"
8550 ;;
8551 *-*-sysv5* )
8552 SHARED_LD="${CC} -shared -o"
8553 PIC_FLAG="-fPIC"
8554 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
8555 WX_ALL="CREATE_LINKS"
8556 ;;
8557 *-*-aix* )
8558 SHARED_LD="/usr/lpp/xlC/bin/makeC++SharedLib -p 0 -o"
8559 WX_ALL=${WX_LIBRARY_NAME_SHARED}
8560 ;;
8561 *-*-cygwin32* )
8562 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
bdad4e7e 8563 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}"
10f2d63a
VZ
8564 WX_ALL="${WX_LIBRARY_NAME_STATIC}"
8565 ;;
b12915c1 8566 *-*-mingw32* )
10f2d63a 8567 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
bdad4e7e 8568 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}"
10f2d63a
VZ
8569 WX_ALL="${WX_LIBRARY_NAME_STATIC}"
8570 ;;
8571 *-pc-os2_emx )
e07802fc
VZ
8572 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
8573 WX_ALL="${WX_LIBRARY_NAME_STATIC}"
10f2d63a 8574 ;;
b12915c1 8575 *-*-beos* )
e2b8b066 8576 SHARED_LD="${LD} -shared -o"
b12915c1
VZ
8577 PIC_FLAG="-fPIC"
8578 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
8579 WX_ALL="CREATE_LINKS"
8580 ;;
10f2d63a
VZ
8581 *)
8582 { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; }
8583 esac
8584
8585 if test "x$WX_TARGET_LIBRARY" = "x"; then
8586 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}"
bdad4e7e 8587 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_SHARED_GL}"
10f2d63a
VZ
8588 fi
8589else
8590 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
bdad4e7e 8591 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}"
10f2d63a
VZ
8592 WX_ALL="${WX_LIBRARY_NAME_STATIC}"
8593fi
8594
8595
8596for ac_hdr in strings.h
8597do
8598ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8599echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
bdad4e7e 8600echo "configure:8601: checking for $ac_hdr" >&5
10f2d63a
VZ
8601if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8602 echo $ac_n "(cached) $ac_c" 1>&6
8603else
8604 cat > conftest.$ac_ext <<EOF
bdad4e7e 8605#line 8606 "configure"
10f2d63a
VZ
8606#include "confdefs.h"
8607#include <$ac_hdr>
8608EOF
8609ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
bdad4e7e 8610{ (eval echo configure:8611: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
8611ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8612if test -z "$ac_err"; then
8613 rm -rf conftest*
8614 eval "ac_cv_header_$ac_safe=yes"
8615else
8616 echo "$ac_err" >&5
8617 echo "configure: failed program was:" >&5
8618 cat conftest.$ac_ext >&5
8619 rm -rf conftest*
8620 eval "ac_cv_header_$ac_safe=no"
8621fi
8622rm -f conftest*
8623fi
8624if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8625 echo "$ac_t""yes" 1>&6
8626 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8627 cat >> confdefs.h <<EOF
8628#define $ac_tr_hdr 1
8629EOF
8630
8631else
8632 echo "$ac_t""no" 1>&6
8633fi
8634done
8635
8636for ac_hdr in unistd.h
8637do
8638ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8639echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
bdad4e7e 8640echo "configure:8641: checking for $ac_hdr" >&5
10f2d63a
VZ
8641if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8642 echo $ac_n "(cached) $ac_c" 1>&6
8643else
8644 cat > conftest.$ac_ext <<EOF
bdad4e7e 8645#line 8646 "configure"
10f2d63a
VZ
8646#include "confdefs.h"
8647#include <$ac_hdr>
8648EOF
8649ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
bdad4e7e 8650{ (eval echo configure:8651: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
8651ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8652if test -z "$ac_err"; then
8653 rm -rf conftest*
8654 eval "ac_cv_header_$ac_safe=yes"
8655else
8656 echo "$ac_err" >&5
8657 echo "configure: failed program was:" >&5
8658 cat conftest.$ac_ext >&5
8659 rm -rf conftest*
8660 eval "ac_cv_header_$ac_safe=no"
8661fi
8662rm -f conftest*
8663fi
8664if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8665 echo "$ac_t""yes" 1>&6
8666 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8667 cat >> confdefs.h <<EOF
8668#define $ac_tr_hdr 1
8669EOF
8670
8671else
8672 echo "$ac_t""no" 1>&6
8673fi
8674done
8675
8676for ac_hdr in wchar.h
8677do
8678ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8679echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
bdad4e7e 8680echo "configure:8681: checking for $ac_hdr" >&5
10f2d63a
VZ
8681if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8682 echo $ac_n "(cached) $ac_c" 1>&6
8683else
8684 cat > conftest.$ac_ext <<EOF
bdad4e7e 8685#line 8686 "configure"
10f2d63a
VZ
8686#include "confdefs.h"
8687#include <$ac_hdr>
8688EOF
8689ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
bdad4e7e 8690{ (eval echo configure:8691: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
8691ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8692if test -z "$ac_err"; then
8693 rm -rf conftest*
8694 eval "ac_cv_header_$ac_safe=yes"
8695else
8696 echo "$ac_err" >&5
8697 echo "configure: failed program was:" >&5
8698 cat conftest.$ac_ext >&5
8699 rm -rf conftest*
8700 eval "ac_cv_header_$ac_safe=no"
8701fi
8702rm -f conftest*
8703fi
8704if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8705 echo "$ac_t""yes" 1>&6
8706 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8707 cat >> confdefs.h <<EOF
8708#define $ac_tr_hdr 1
8709EOF
8710
8711else
8712 echo "$ac_t""no" 1>&6
8713fi
8714done
8715
8716for ac_hdr in wcstr.h
8717do
8718ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8719echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
bdad4e7e 8720echo "configure:8721: checking for $ac_hdr" >&5
10f2d63a
VZ
8721if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8722 echo $ac_n "(cached) $ac_c" 1>&6
8723else
8724 cat > conftest.$ac_ext <<EOF
bdad4e7e 8725#line 8726 "configure"
10f2d63a
VZ
8726#include "confdefs.h"
8727#include <$ac_hdr>
8728EOF
8729ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
bdad4e7e 8730{ (eval echo configure:8731: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
8731ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8732if test -z "$ac_err"; then
8733 rm -rf conftest*
8734 eval "ac_cv_header_$ac_safe=yes"
8735else
8736 echo "$ac_err" >&5
8737 echo "configure: failed program was:" >&5
8738 cat conftest.$ac_ext >&5
8739 rm -rf conftest*
8740 eval "ac_cv_header_$ac_safe=no"
8741fi
8742rm -f conftest*
8743fi
8744if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8745 echo "$ac_t""yes" 1>&6
8746 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8747 cat >> confdefs.h <<EOF
8748#define $ac_tr_hdr 1
8749EOF
8750
8751else
8752 echo "$ac_t""no" 1>&6
8753fi
8754done
8755
8756for ac_hdr in fnmatch.h
8757do
8758ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8759echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
bdad4e7e 8760echo "configure:8761: checking for $ac_hdr" >&5
10f2d63a
VZ
8761if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8762 echo $ac_n "(cached) $ac_c" 1>&6
8763else
8764 cat > conftest.$ac_ext <<EOF
bdad4e7e 8765#line 8766 "configure"
10f2d63a
VZ
8766#include "confdefs.h"
8767#include <$ac_hdr>
8768EOF
8769ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
bdad4e7e 8770{ (eval echo configure:8771: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
8771ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8772if test -z "$ac_err"; then
8773 rm -rf conftest*
8774 eval "ac_cv_header_$ac_safe=yes"
8775else
8776 echo "$ac_err" >&5
8777 echo "configure: failed program was:" >&5
8778 cat conftest.$ac_ext >&5
8779 rm -rf conftest*
8780 eval "ac_cv_header_$ac_safe=no"
8781fi
8782rm -f conftest*
8783fi
8784if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8785 echo "$ac_t""yes" 1>&6
8786 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8787 cat >> confdefs.h <<EOF
8788#define $ac_tr_hdr 1
8789EOF
8790
8791else
8792 echo "$ac_t""no" 1>&6
8793fi
8794done
8795
8796
8797if test "$wxUSE_GUI" = "yes"; then
8798 for ac_hdr in X11/XKBlib.h
8799do
8800ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8801echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
bdad4e7e 8802echo "configure:8803: checking for $ac_hdr" >&5
10f2d63a
VZ
8803if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8804 echo $ac_n "(cached) $ac_c" 1>&6
8805else
8806 cat > conftest.$ac_ext <<EOF
bdad4e7e 8807#line 8808 "configure"
10f2d63a
VZ
8808#include "confdefs.h"
8809#include <$ac_hdr>
8810EOF
8811ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
bdad4e7e 8812{ (eval echo configure:8813: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
8813ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8814if test -z "$ac_err"; then
8815 rm -rf conftest*
8816 eval "ac_cv_header_$ac_safe=yes"
8817else
8818 echo "$ac_err" >&5
8819 echo "configure: failed program was:" >&5
8820 cat conftest.$ac_ext >&5
8821 rm -rf conftest*
8822 eval "ac_cv_header_$ac_safe=no"
8823fi
8824rm -f conftest*
8825fi
8826if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8827 echo "$ac_t""yes" 1>&6
8828 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8829 cat >> confdefs.h <<EOF
8830#define $ac_tr_hdr 1
8831EOF
8832
8833else
8834 echo "$ac_t""no" 1>&6
8835fi
8836done
8837
8838fi
8839
8840
8841echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
bdad4e7e 8842echo "configure:8843: checking for ANSI C header files" >&5
10f2d63a
VZ
8843if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
8844 echo $ac_n "(cached) $ac_c" 1>&6
8845else
8846 cat > conftest.$ac_ext <<EOF
bdad4e7e 8847#line 8848 "configure"
10f2d63a
VZ
8848#include "confdefs.h"
8849#include <stdlib.h>
8850#include <stdarg.h>
8851#include <string.h>
8852#include <float.h>
8853EOF
8854ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
bdad4e7e 8855{ (eval echo configure:8856: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
8856ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8857if test -z "$ac_err"; then
8858 rm -rf conftest*
8859 ac_cv_header_stdc=yes
8860else
8861 echo "$ac_err" >&5
8862 echo "configure: failed program was:" >&5
8863 cat conftest.$ac_ext >&5
8864 rm -rf conftest*
8865 ac_cv_header_stdc=no
8866fi
8867rm -f conftest*
8868
8869if test $ac_cv_header_stdc = yes; then
8870 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8871cat > conftest.$ac_ext <<EOF
bdad4e7e 8872#line 8873 "configure"
10f2d63a
VZ
8873#include "confdefs.h"
8874#include <string.h>
8875EOF
8876if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8877 egrep "memchr" >/dev/null 2>&1; then
8878 :
8879else
8880 rm -rf conftest*
8881 ac_cv_header_stdc=no
8882fi
8883rm -f conftest*
8884
8885fi
8886
8887if test $ac_cv_header_stdc = yes; then
8888 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8889cat > conftest.$ac_ext <<EOF
bdad4e7e 8890#line 8891 "configure"
10f2d63a
VZ
8891#include "confdefs.h"
8892#include <stdlib.h>
8893EOF
8894if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8895 egrep "free" >/dev/null 2>&1; then
8896 :
8897else
8898 rm -rf conftest*
8899 ac_cv_header_stdc=no
8900fi
8901rm -f conftest*
8902
8903fi
8904
8905if test $ac_cv_header_stdc = yes; then
8906 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8907if test "$cross_compiling" = yes; then
8908 :
8909else
8910 cat > conftest.$ac_ext <<EOF
bdad4e7e 8911#line 8912 "configure"
10f2d63a
VZ
8912#include "confdefs.h"
8913#include <ctype.h>
8914#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8915#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8916#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8917int main () { int i; for (i = 0; i < 256; i++)
8918if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
8919exit (0); }
8920
8921EOF
bdad4e7e 8922if { (eval echo configure:8923: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10f2d63a
VZ
8923then
8924 :
8925else
8926 echo "configure: failed program was:" >&5
8927 cat conftest.$ac_ext >&5
8928 rm -fr conftest*
8929 ac_cv_header_stdc=no
8930fi
8931rm -fr conftest*
8932fi
8933
8934fi
8935fi
8936
8937echo "$ac_t""$ac_cv_header_stdc" 1>&6
8938if test $ac_cv_header_stdc = yes; then
8939 cat >> confdefs.h <<\EOF
8940#define STDC_HEADERS 1
8941EOF
8942
8943fi
8944
8945echo $ac_n "checking for mode_t""... $ac_c" 1>&6
bdad4e7e 8946echo "configure:8947: checking for mode_t" >&5
10f2d63a
VZ
8947if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
8948 echo $ac_n "(cached) $ac_c" 1>&6
8949else
8950 cat > conftest.$ac_ext <<EOF
bdad4e7e 8951#line 8952 "configure"
10f2d63a
VZ
8952#include "confdefs.h"
8953#include <sys/types.h>
8954#if STDC_HEADERS
8955#include <stdlib.h>
8956#include <stddef.h>
8957#endif
8958EOF
8959if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8960 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
8961 rm -rf conftest*
8962 ac_cv_type_mode_t=yes
8963else
8964 rm -rf conftest*
8965 ac_cv_type_mode_t=no
8966fi
8967rm -f conftest*
8968
8969fi
8970echo "$ac_t""$ac_cv_type_mode_t" 1>&6
8971if test $ac_cv_type_mode_t = no; then
8972 cat >> confdefs.h <<\EOF
8973#define mode_t int
8974EOF
8975
8976fi
8977
8978echo $ac_n "checking for off_t""... $ac_c" 1>&6
bdad4e7e 8979echo "configure:8980: checking for off_t" >&5
10f2d63a
VZ
8980if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
8981 echo $ac_n "(cached) $ac_c" 1>&6
8982else
8983 cat > conftest.$ac_ext <<EOF
bdad4e7e 8984#line 8985 "configure"
10f2d63a
VZ
8985#include "confdefs.h"
8986#include <sys/types.h>
8987#if STDC_HEADERS
8988#include <stdlib.h>
8989#include <stddef.h>
8990#endif
8991EOF
8992if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8993 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
8994 rm -rf conftest*
8995 ac_cv_type_off_t=yes
8996else
8997 rm -rf conftest*
8998 ac_cv_type_off_t=no
8999fi
9000rm -f conftest*
9001
9002fi
9003echo "$ac_t""$ac_cv_type_off_t" 1>&6
9004if test $ac_cv_type_off_t = no; then
9005 cat >> confdefs.h <<\EOF
9006#define off_t long
9007EOF
9008
9009fi
9010
9011echo $ac_n "checking for pid_t""... $ac_c" 1>&6
bdad4e7e 9012echo "configure:9013: checking for pid_t" >&5
10f2d63a
VZ
9013if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
9014 echo $ac_n "(cached) $ac_c" 1>&6
9015else
9016 cat > conftest.$ac_ext <<EOF
bdad4e7e 9017#line 9018 "configure"
10f2d63a
VZ
9018#include "confdefs.h"
9019#include <sys/types.h>
9020#if STDC_HEADERS
9021#include <stdlib.h>
9022#include <stddef.h>
9023#endif
9024EOF
9025if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9026 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
9027 rm -rf conftest*
9028 ac_cv_type_pid_t=yes
9029else
9030 rm -rf conftest*
9031 ac_cv_type_pid_t=no
9032fi
9033rm -f conftest*
9034
9035fi
9036echo "$ac_t""$ac_cv_type_pid_t" 1>&6
9037if test $ac_cv_type_pid_t = no; then
9038 cat >> confdefs.h <<\EOF
9039#define pid_t int
9040EOF
9041
9042fi
9043
9044echo $ac_n "checking for size_t""... $ac_c" 1>&6
bdad4e7e 9045echo "configure:9046: checking for size_t" >&5
10f2d63a
VZ
9046if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
9047 echo $ac_n "(cached) $ac_c" 1>&6
9048else
9049 cat > conftest.$ac_ext <<EOF
bdad4e7e 9050#line 9051 "configure"
10f2d63a
VZ
9051#include "confdefs.h"
9052#include <sys/types.h>
9053#if STDC_HEADERS
9054#include <stdlib.h>
9055#include <stddef.h>
9056#endif
9057EOF
9058if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9059 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
9060 rm -rf conftest*
9061 ac_cv_type_size_t=yes
9062else
9063 rm -rf conftest*
9064 ac_cv_type_size_t=no
9065fi
9066rm -f conftest*
9067
9068fi
9069echo "$ac_t""$ac_cv_type_size_t" 1>&6
9070if test $ac_cv_type_size_t = no; then
9071 cat >> confdefs.h <<\EOF
9072#define size_t unsigned
9073EOF
9074
9075fi
9076
9077echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
bdad4e7e 9078echo "configure:9079: checking for uid_t in sys/types.h" >&5
10f2d63a
VZ
9079if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
9080 echo $ac_n "(cached) $ac_c" 1>&6
9081else
9082 cat > conftest.$ac_ext <<EOF
bdad4e7e 9083#line 9084 "configure"
10f2d63a
VZ
9084#include "confdefs.h"
9085#include <sys/types.h>
9086EOF
9087if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9088 egrep "uid_t" >/dev/null 2>&1; then
9089 rm -rf conftest*
9090 ac_cv_type_uid_t=yes
9091else
9092 rm -rf conftest*
9093 ac_cv_type_uid_t=no
9094fi
9095rm -f conftest*
9096
9097fi
9098
9099echo "$ac_t""$ac_cv_type_uid_t" 1>&6
9100if test $ac_cv_type_uid_t = no; then
9101 cat >> confdefs.h <<\EOF
9102#define uid_t int
9103EOF
9104
9105 cat >> confdefs.h <<\EOF
9106#define gid_t int
9107EOF
9108
9109fi
9110
9111
9112
b12915c1 9113echo $ac_n "checking for pw_gecos in struct passwd""... $ac_c" 1>&6
bdad4e7e 9114echo "configure:9115: checking for pw_gecos in struct passwd" >&5
b12915c1
VZ
9115if eval "test \"`echo '$''{'wx_cv_struct_pw_gecos'+set}'`\" = set"; then
9116 echo $ac_n "(cached) $ac_c" 1>&6
9117else
9118
9119 cat > conftest.$ac_ext <<EOF
bdad4e7e 9120#line 9121 "configure"
b12915c1
VZ
9121#include "confdefs.h"
9122#include <pwd.h>
9123int main() {
9124
9125 char *p;
9126 struct passwd *pw;
9127 p = pw->pw_gecos;
9128
9129; return 0; }
9130EOF
bdad4e7e 9131if { (eval echo configure:9132: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
b12915c1
VZ
9132 rm -rf conftest*
9133
9134 wx_cv_struct_pw_gecos=yes
9135 cat >> confdefs.h <<\EOF
9136#define HAVE_PW_GECOS 1
9137EOF
9138
9139
9140else
9141 echo "configure: failed program was:" >&5
9142 cat conftest.$ac_ext >&5
9143 rm -rf conftest*
9144
9145 wx_cv_struct_pw_gecos=no
9146
9147
9148fi
9149rm -f conftest*
9150
9151
9152fi
9153
9154echo "$ac_t""$wx_cv_struct_pw_gecos" 1>&6
9155
10f2d63a
VZ
9156
9157echo $ac_n "checking for working const""... $ac_c" 1>&6
bdad4e7e 9158echo "configure:9159: checking for working const" >&5
10f2d63a
VZ
9159if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
9160 echo $ac_n "(cached) $ac_c" 1>&6
9161else
9162 cat > conftest.$ac_ext <<EOF
bdad4e7e 9163#line 9164 "configure"
10f2d63a
VZ
9164#include "confdefs.h"
9165
9166int main() {
9167
9168/* Ultrix mips cc rejects this. */
24528b0c 9169typedef int charset[2]; const charset x;
10f2d63a
VZ
9170/* SunOS 4.1.1 cc rejects this. */
9171char const *const *ccp;
9172char **p;
9173/* NEC SVR4.0.2 mips cc rejects this. */
9174struct point {int x, y;};
9175static struct point const zero = {0,0};
9176/* AIX XL C 1.02.0.0 rejects this.
9177 It does not let you subtract one const X* pointer from another in an arm
9178 of an if-expression whose if-part is not a constant expression */
9179const char *g = "string";
9180ccp = &g + (g ? g-g : 0);
9181/* HPUX 7.0 cc rejects these. */
9182++ccp;
9183p = (char**) ccp;
9184ccp = (char const *const *) p;
9185{ /* SCO 3.2v4 cc rejects this. */
9186 char *t;
9187 char const *s = 0 ? (char *) 0 : (char const *) 0;
9188
9189 *t++ = 0;
9190}
9191{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
9192 int x[] = {25, 17};
9193 const int *foo = &x[0];
9194 ++foo;
9195}
9196{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9197 typedef const int *iptr;
9198 iptr p = 0;
9199 ++p;
9200}
9201{ /* AIX XL C 1.02.0.0 rejects this saying
9202 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9203 struct s { int j; const int *ap[3]; };
9204 struct s *b; b->j = 5;
9205}
9206{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9207 const int foo = 10;
9208}
9209
9210; return 0; }
9211EOF
bdad4e7e 9212if { (eval echo configure:9213: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10f2d63a
VZ
9213 rm -rf conftest*
9214 ac_cv_c_const=yes
9215else
9216 echo "configure: failed program was:" >&5
9217 cat conftest.$ac_ext >&5
9218 rm -rf conftest*
9219 ac_cv_c_const=no
9220fi
9221rm -f conftest*
9222fi
9223
9224echo "$ac_t""$ac_cv_c_const" 1>&6
9225if test $ac_cv_c_const = no; then
9226 cat >> confdefs.h <<\EOF
9227#define const
9228EOF
9229
9230fi
9231
9232echo $ac_n "checking for inline""... $ac_c" 1>&6
bdad4e7e 9233echo "configure:9234: checking for inline" >&5
10f2d63a
VZ
9234if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
9235 echo $ac_n "(cached) $ac_c" 1>&6
9236else
9237 ac_cv_c_inline=no
9238for ac_kw in inline __inline__ __inline; do
9239 cat > conftest.$ac_ext <<EOF
bdad4e7e 9240#line 9241 "configure"
10f2d63a
VZ
9241#include "confdefs.h"
9242
9243int main() {
24528b0c 9244} $ac_kw foo() {
10f2d63a
VZ
9245; return 0; }
9246EOF
bdad4e7e 9247if { (eval echo configure:9248: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10f2d63a
VZ
9248 rm -rf conftest*
9249 ac_cv_c_inline=$ac_kw; break
9250else
9251 echo "configure: failed program was:" >&5
9252 cat conftest.$ac_ext >&5
9253fi
9254rm -f conftest*
9255done
9256
9257fi
9258
9259echo "$ac_t""$ac_cv_c_inline" 1>&6
9260case "$ac_cv_c_inline" in
9261 inline | yes) ;;
9262 no) cat >> confdefs.h <<\EOF
9263#define inline
9264EOF
9265 ;;
9266 *) cat >> confdefs.h <<EOF
9267#define inline $ac_cv_c_inline
9268EOF
9269 ;;
9270esac
9271
9272
9273echo $ac_n "checking size of char""... $ac_c" 1>&6
bdad4e7e 9274echo "configure:9275: checking size of char" >&5
10f2d63a
VZ
9275if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then
9276 echo $ac_n "(cached) $ac_c" 1>&6
9277else
9278 if test "$cross_compiling" = yes; then
9279 ac_cv_sizeof_char=1
9280else
9281 cat > conftest.$ac_ext <<EOF
bdad4e7e 9282#line 9283 "configure"
10f2d63a
VZ
9283#include "confdefs.h"
9284#include <stdio.h>
9285main()
9286{
9287 FILE *f=fopen("conftestval", "w");
9288 if (!f) exit(1);
9289 fprintf(f, "%d\n", sizeof(char));
9290 exit(0);
9291}
9292EOF
bdad4e7e 9293if { (eval echo configure:9294: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10f2d63a
VZ
9294then
9295 ac_cv_sizeof_char=`cat conftestval`
9296else
9297 echo "configure: failed program was:" >&5
9298 cat conftest.$ac_ext >&5
9299 rm -fr conftest*
9300 ac_cv_sizeof_char=0
9301fi
9302rm -fr conftest*
9303fi
9304
9305fi
9306echo "$ac_t""$ac_cv_sizeof_char" 1>&6
9307cat >> confdefs.h <<EOF
9308#define SIZEOF_CHAR $ac_cv_sizeof_char
9309EOF
9310
9311
9312echo $ac_n "checking size of short""... $ac_c" 1>&6
bdad4e7e 9313echo "configure:9314: checking size of short" >&5
10f2d63a
VZ
9314if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
9315 echo $ac_n "(cached) $ac_c" 1>&6
9316else
9317 if test "$cross_compiling" = yes; then
9318 ac_cv_sizeof_short=2
9319else
9320 cat > conftest.$ac_ext <<EOF
bdad4e7e 9321#line 9322 "configure"
10f2d63a
VZ
9322#include "confdefs.h"
9323#include <stdio.h>
9324main()
9325{
9326 FILE *f=fopen("conftestval", "w");
9327 if (!f) exit(1);
9328 fprintf(f, "%d\n", sizeof(short));
9329 exit(0);
9330}
9331EOF
bdad4e7e 9332if { (eval echo configure:9333: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10f2d63a
VZ
9333then
9334 ac_cv_sizeof_short=`cat conftestval`
9335else
9336 echo "configure: failed program was:" >&5
9337 cat conftest.$ac_ext >&5
9338 rm -fr conftest*
9339 ac_cv_sizeof_short=0
9340fi
9341rm -fr conftest*
9342fi
9343
9344fi
9345echo "$ac_t""$ac_cv_sizeof_short" 1>&6
9346cat >> confdefs.h <<EOF
9347#define SIZEOF_SHORT $ac_cv_sizeof_short
9348EOF
9349
9350
9351echo $ac_n "checking size of int *""... $ac_c" 1>&6
bdad4e7e 9352echo "configure:9353: checking size of int *" >&5
10f2d63a
VZ
9353if eval "test \"`echo '$''{'ac_cv_sizeof_int_p'+set}'`\" = set"; then
9354 echo $ac_n "(cached) $ac_c" 1>&6
9355else
9356 if test "$cross_compiling" = yes; then
9357 ac_cv_sizeof_int_p=4
9358else
9359 cat > conftest.$ac_ext <<EOF
bdad4e7e 9360#line 9361 "configure"
10f2d63a
VZ
9361#include "confdefs.h"
9362#include <stdio.h>
9363main()
9364{
9365 FILE *f=fopen("conftestval", "w");
9366 if (!f) exit(1);
9367 fprintf(f, "%d\n", sizeof(int *));
9368 exit(0);
9369}
9370EOF
bdad4e7e 9371if { (eval echo configure:9372: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10f2d63a
VZ
9372then
9373 ac_cv_sizeof_int_p=`cat conftestval`
9374else
9375 echo "configure: failed program was:" >&5
9376 cat conftest.$ac_ext >&5
9377 rm -fr conftest*
9378 ac_cv_sizeof_int_p=0
9379fi
9380rm -fr conftest*
9381fi
9382
9383fi
9384echo "$ac_t""$ac_cv_sizeof_int_p" 1>&6
9385cat >> confdefs.h <<EOF
9386#define SIZEOF_INT_P $ac_cv_sizeof_int_p
9387EOF
9388
9389
9390echo $ac_n "checking size of int""... $ac_c" 1>&6
bdad4e7e 9391echo "configure:9392: checking size of int" >&5
10f2d63a
VZ
9392if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
9393 echo $ac_n "(cached) $ac_c" 1>&6
9394else
9395 if test "$cross_compiling" = yes; then
9396 ac_cv_sizeof_int=4
9397else
9398 cat > conftest.$ac_ext <<EOF
bdad4e7e 9399#line 9400 "configure"
10f2d63a
VZ
9400#include "confdefs.h"
9401#include <stdio.h>
9402main()
9403{
9404 FILE *f=fopen("conftestval", "w");
9405 if (!f) exit(1);
9406 fprintf(f, "%d\n", sizeof(int));
9407 exit(0);
9408}
9409EOF
bdad4e7e 9410if { (eval echo configure:9411: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10f2d63a
VZ
9411then
9412 ac_cv_sizeof_int=`cat conftestval`
9413else
9414 echo "configure: failed program was:" >&5
9415 cat conftest.$ac_ext >&5
9416 rm -fr conftest*
9417 ac_cv_sizeof_int=0
9418fi
9419rm -fr conftest*
9420fi
9421
9422fi
9423echo "$ac_t""$ac_cv_sizeof_int" 1>&6
9424cat >> confdefs.h <<EOF
9425#define SIZEOF_INT $ac_cv_sizeof_int
9426EOF
9427
9428
9429echo $ac_n "checking size of long""... $ac_c" 1>&6
bdad4e7e 9430echo "configure:9431: checking size of long" >&5
10f2d63a
VZ
9431if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
9432 echo $ac_n "(cached) $ac_c" 1>&6
9433else
9434 if test "$cross_compiling" = yes; then
9435 ac_cv_sizeof_long=4
9436else
9437 cat > conftest.$ac_ext <<EOF
bdad4e7e 9438#line 9439 "configure"
10f2d63a
VZ
9439#include "confdefs.h"
9440#include <stdio.h>
9441main()
9442{
9443 FILE *f=fopen("conftestval", "w");
9444 if (!f) exit(1);
9445 fprintf(f, "%d\n", sizeof(long));
9446 exit(0);
9447}
9448EOF
bdad4e7e 9449if { (eval echo configure:9450: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10f2d63a
VZ
9450then
9451 ac_cv_sizeof_long=`cat conftestval`
9452else
9453 echo "configure: failed program was:" >&5
9454 cat conftest.$ac_ext >&5
9455 rm -fr conftest*
9456 ac_cv_sizeof_long=0
9457fi
9458rm -fr conftest*
9459fi
9460
9461fi
9462echo "$ac_t""$ac_cv_sizeof_long" 1>&6
9463cat >> confdefs.h <<EOF
9464#define SIZEOF_LONG $ac_cv_sizeof_long
9465EOF
9466
9467
9468echo $ac_n "checking size of long long""... $ac_c" 1>&6
bdad4e7e 9469echo "configure:9470: checking size of long long" >&5
10f2d63a
VZ
9470if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
9471 echo $ac_n "(cached) $ac_c" 1>&6
9472else
9473 if test "$cross_compiling" = yes; then
9474 ac_cv_sizeof_long_long=0
9475else
9476 cat > conftest.$ac_ext <<EOF
bdad4e7e 9477#line 9478 "configure"
10f2d63a
VZ
9478#include "confdefs.h"
9479#include <stdio.h>
9480main()
9481{
9482 FILE *f=fopen("conftestval", "w");
9483 if (!f) exit(1);
9484 fprintf(f, "%d\n", sizeof(long long));
9485 exit(0);
9486}
9487EOF
bdad4e7e 9488if { (eval echo configure:9489: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10f2d63a
VZ
9489then
9490 ac_cv_sizeof_long_long=`cat conftestval`
9491else
9492 echo "configure: failed program was:" >&5
9493 cat conftest.$ac_ext >&5
9494 rm -fr conftest*
9495 ac_cv_sizeof_long_long=0
9496fi
9497rm -fr conftest*
9498fi
9499
9500fi
9501echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
9502cat >> confdefs.h <<EOF
9503#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
9504EOF
9505
9506
9507
9508echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
bdad4e7e 9509echo "configure:9510: checking whether byte ordering is bigendian" >&5
10f2d63a
VZ
9510if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
9511 echo $ac_n "(cached) $ac_c" 1>&6
9512else
9513 ac_cv_c_bigendian=unknown
9514# See if sys/param.h defines the BYTE_ORDER macro.
9515cat > conftest.$ac_ext <<EOF
bdad4e7e 9516#line 9517 "configure"
10f2d63a
VZ
9517#include "confdefs.h"
9518#include <sys/types.h>
9519#include <sys/param.h>
9520int main() {
9521
9522#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
9523 bogus endian macros
9524#endif
9525; return 0; }
9526EOF
bdad4e7e 9527if { (eval echo configure:9528: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10f2d63a
VZ
9528 rm -rf conftest*
9529 # It does; now see whether it defined to BIG_ENDIAN or not.
9530cat > conftest.$ac_ext <<EOF
bdad4e7e 9531#line 9532 "configure"
10f2d63a
VZ
9532#include "confdefs.h"
9533#include <sys/types.h>
9534#include <sys/param.h>
9535int main() {
9536
9537#if BYTE_ORDER != BIG_ENDIAN
9538 not big endian
9539#endif
9540; return 0; }
9541EOF
bdad4e7e 9542if { (eval echo configure:9543: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10f2d63a
VZ
9543 rm -rf conftest*
9544 ac_cv_c_bigendian=yes
9545else
9546 echo "configure: failed program was:" >&5
9547 cat conftest.$ac_ext >&5
9548 rm -rf conftest*
9549 ac_cv_c_bigendian=no
9550fi
9551rm -f conftest*
9552else
9553 echo "configure: failed program was:" >&5
9554 cat conftest.$ac_ext >&5
9555fi
9556rm -f conftest*
9557if test $ac_cv_c_bigendian = unknown; then
9558if test "$cross_compiling" = yes; then
9559 ac_cv_c_bigendian=unknown
9560else
9561 cat > conftest.$ac_ext <<EOF
bdad4e7e 9562#line 9563 "configure"
10f2d63a
VZ
9563#include "confdefs.h"
9564main () {
9565 /* Are we little or big endian? From Harbison&Steele. */
9566 union
9567 {
9568 long l;
9569 char c[sizeof (long)];
9570 } u;
9571 u.l = 1;
9572 exit (u.c[sizeof (long) - 1] == 1);
9573}
9574EOF
bdad4e7e 9575if { (eval echo configure:9576: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10f2d63a
VZ
9576then
9577 ac_cv_c_bigendian=no
9578else
9579 echo "configure: failed program was:" >&5
9580 cat conftest.$ac_ext >&5
9581 rm -fr conftest*
9582 ac_cv_c_bigendian=yes
9583fi
9584rm -fr conftest*
9585fi
9586
9587fi
9588fi
9589
9590echo "$ac_t""$ac_cv_c_bigendian" 1>&6
9591if test $ac_cv_c_bigendian = unknown; then
9592 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
9593fi
9594if test $ac_cv_c_bigendian = yes; then
9595 cat >> confdefs.h <<\EOF
9596#define WORDS_BIGENDIAN 1
9597EOF
9598
9599fi
9600
9601
9602
9603 if test "$cross_compiling" = "yes"; then
9604 cat >> confdefs.h <<\EOF
9605#define wxUSE_IOSTREAMH 1
9606EOF
9607
9608 else
9609
9610 ac_ext=C
9611# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9612ac_cpp='$CXXCPP $CPPFLAGS'
9613ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9614ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9615cross_compiling=$ac_cv_prog_cxx_cross
9616
9617
9618 for ac_hdr in iostream
9619do
9620ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9621echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
bdad4e7e 9622echo "configure:9623: checking for $ac_hdr" >&5
10f2d63a
VZ
9623if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9624 echo $ac_n "(cached) $ac_c" 1>&6
9625else
9626 cat > conftest.$ac_ext <<EOF
bdad4e7e 9627#line 9628 "configure"
10f2d63a
VZ
9628#include "confdefs.h"
9629#include <$ac_hdr>
9630EOF
9631ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
bdad4e7e 9632{ (eval echo configure:9633: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
9633ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9634if test -z "$ac_err"; then
9635 rm -rf conftest*
9636 eval "ac_cv_header_$ac_safe=yes"
9637else
9638 echo "$ac_err" >&5
9639 echo "configure: failed program was:" >&5
9640 cat conftest.$ac_ext >&5
9641 rm -rf conftest*
9642 eval "ac_cv_header_$ac_safe=no"
9643fi
9644rm -f conftest*
9645fi
9646if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9647 echo "$ac_t""yes" 1>&6
9648 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9649 cat >> confdefs.h <<EOF
9650#define $ac_tr_hdr 1
9651EOF
9652
9653else
9654 echo "$ac_t""no" 1>&6
9655fi
9656done
9657
9658
9659 if test "x$HAVE_IOSTREAM" = x ; then
9660 cat >> confdefs.h <<\EOF
9661#define wxUSE_IOSTREAMH 1
9662EOF
9663
9664 else
9665 :
9666 fi
9667
9668 ac_ext=c
9669# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9670ac_cpp='$CPP $CPPFLAGS'
9671ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9672ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9673cross_compiling=$ac_cv_prog_cc_cross
9674
9675 fi
9676
9677
9678
9679 echo $ac_n "checking if C++ compiler supports bool""... $ac_c" 1>&6
bdad4e7e 9680echo "configure:9681: checking if C++ compiler supports bool" >&5
10f2d63a
VZ
9681if eval "test \"`echo '$''{'wx_cv_cpp_bool'+set}'`\" = set"; then
9682 echo $ac_n "(cached) $ac_c" 1>&6
9683else
9684
9685
9686 ac_ext=C
9687# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9688ac_cpp='$CXXCPP $CPPFLAGS'
9689ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9690ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9691cross_compiling=$ac_cv_prog_cxx_cross
9692
9693
9694 cat > conftest.$ac_ext <<EOF
bdad4e7e 9695#line 9696 "configure"
10f2d63a
VZ
9696#include "confdefs.h"
9697
9698
9699int main() {
9700
9701 bool b = true;
9702
9703 return 0;
9704
9705; return 0; }
9706EOF
bdad4e7e 9707if { (eval echo configure:9708: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10f2d63a
VZ
9708 rm -rf conftest*
9709
9710 cat >> confdefs.h <<\EOF
9711#define HAVE_BOOL 1
9712EOF
9713
9714 wx_cv_cpp_bool=yes
9715
9716else
9717 echo "configure: failed program was:" >&5
9718 cat conftest.$ac_ext >&5
9719 rm -rf conftest*
9720
9721 wx_cv_cpp_bool=no
9722
9723
9724fi
9725rm -f conftest*
9726
9727 ac_ext=c
9728# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9729ac_cpp='$CPP $CPPFLAGS'
9730ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9731ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9732cross_compiling=$ac_cv_prog_cc_cross
9733
9734
9735fi
9736
9737echo "$ac_t""$wx_cv_cpp_bool" 1>&6
9738
9739 if test "$wx_cv_cpp_bool" = "yes"; then
9740 cat >> confdefs.h <<\EOF
9741#define HAVE_BOOL 1
9742EOF
9743
9744 fi
9745
9746
9747
10f2d63a 9748echo $ac_n "checking if you need GNU extensions""... $ac_c" 1>&6
bdad4e7e 9749echo "configure:9750: checking if you need GNU extensions" >&5
10f2d63a
VZ
9750if eval "test \"`echo '$''{'wx_cv_gnu_extensions'+set}'`\" = set"; then
9751 echo $ac_n "(cached) $ac_c" 1>&6
9752else
9753
9754 cat > conftest.$ac_ext <<EOF
bdad4e7e 9755#line 9756 "configure"
10f2d63a
VZ
9756#include "confdefs.h"
9757#include <features.h>
9758int main() {
9759
9760
9761#ifndef __GNU_LIBRARY__
9762 Compile error wanted
9763#endif
9764
9765
9766; return 0; }
9767EOF
bdad4e7e 9768if { (eval echo configure:9769: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10f2d63a
VZ
9769 rm -rf conftest*
9770 wx_cv_gnu_extensions=yes
9771else
9772 echo "configure: failed program was:" >&5
9773 cat conftest.$ac_ext >&5
9774 rm -rf conftest*
9775 wx_cv_gnu_extensions=no
9776fi
9777rm -f conftest*
9778
9779fi
9780
9781
9782echo "$ac_t""$wx_cv_gnu_extensions" 1>&6
9783if test "$wx_cv_gnu_extensions" = "yes"; then
9784 cat >> confdefs.h <<EOF
9785#define _GNU_SOURCE 1
9786EOF
9787
9788fi
9789
9790
9791
9792echo $ac_n "checking for wcslen in -lc""... $ac_c" 1>&6
bdad4e7e 9793echo "configure:9794: checking for wcslen in -lc" >&5
10f2d63a
VZ
9794ac_lib_var=`echo c'_'wcslen | sed 'y%./+-%__p_%'`
9795if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9796 echo $ac_n "(cached) $ac_c" 1>&6
9797else
9798 ac_save_LIBS="$LIBS"
9799LIBS="-lc $LIBS"
9800cat > conftest.$ac_ext <<EOF
bdad4e7e 9801#line 9802 "configure"
10f2d63a
VZ
9802#include "confdefs.h"
9803/* Override any gcc2 internal prototype to avoid an error. */
9804/* We use char because int might match the return type of a gcc2
9805 builtin and then its argument prototype would still apply. */
9806char wcslen();
9807
9808int main() {
9809wcslen()
9810; return 0; }
9811EOF
bdad4e7e 9812if { (eval echo configure:9813: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
9813 rm -rf conftest*
9814 eval "ac_cv_lib_$ac_lib_var=yes"
9815else
9816 echo "configure: failed program was:" >&5
9817 cat conftest.$ac_ext >&5
9818 rm -rf conftest*
9819 eval "ac_cv_lib_$ac_lib_var=no"
9820fi
9821rm -f conftest*
9822LIBS="$ac_save_LIBS"
9823
9824fi
9825if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9826 echo "$ac_t""yes" 1>&6
9827
9828 cat >> confdefs.h <<\EOF
9829#define HAVE_WCSLEN 1
9830EOF
9831
9832 WCHAR_LINK=""
9833
9834else
9835 echo "$ac_t""no" 1>&6
9836
9837 echo $ac_n "checking for wcslen in -lw""... $ac_c" 1>&6
bdad4e7e 9838echo "configure:9839: checking for wcslen in -lw" >&5
10f2d63a
VZ
9839ac_lib_var=`echo w'_'wcslen | sed 'y%./+-%__p_%'`
9840if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9841 echo $ac_n "(cached) $ac_c" 1>&6
9842else
9843 ac_save_LIBS="$LIBS"
9844LIBS="-lw $LIBS"
9845cat > conftest.$ac_ext <<EOF
bdad4e7e 9846#line 9847 "configure"
10f2d63a
VZ
9847#include "confdefs.h"
9848/* Override any gcc2 internal prototype to avoid an error. */
9849/* We use char because int might match the return type of a gcc2
9850 builtin and then its argument prototype would still apply. */
9851char wcslen();
9852
9853int main() {
9854wcslen()
9855; return 0; }
9856EOF
bdad4e7e 9857if { (eval echo configure:9858: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
9858 rm -rf conftest*
9859 eval "ac_cv_lib_$ac_lib_var=yes"
9860else
9861 echo "configure: failed program was:" >&5
9862 cat conftest.$ac_ext >&5
9863 rm -rf conftest*
9864 eval "ac_cv_lib_$ac_lib_var=no"
9865fi
9866rm -f conftest*
9867LIBS="$ac_save_LIBS"
9868
9869fi
9870if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9871 echo "$ac_t""yes" 1>&6
9872
9873 cat >> confdefs.h <<\EOF
9874#define HAVE_WCSLEN 1
9875EOF
9876
9877 WCHAR_LINK="-lw"
9878
9879else
9880 echo "$ac_t""no" 1>&6
9881fi
9882
9883
9884fi
9885
9886
9887echo $ac_n "checking for vprintf""... $ac_c" 1>&6
bdad4e7e 9888echo "configure:9889: checking for vprintf" >&5
10f2d63a
VZ
9889if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
9890 echo $ac_n "(cached) $ac_c" 1>&6
9891else
9892 cat > conftest.$ac_ext <<EOF
bdad4e7e 9893#line 9894 "configure"
10f2d63a
VZ
9894#include "confdefs.h"
9895/* System header to define __stub macros and hopefully few prototypes,
9896 which can conflict with char vprintf(); below. */
9897#include <assert.h>
9898/* Override any gcc2 internal prototype to avoid an error. */
9899/* We use char because int might match the return type of a gcc2
9900 builtin and then its argument prototype would still apply. */
9901char vprintf();
bdad4e7e 9902char (*f)();
10f2d63a
VZ
9903
9904int main() {
9905
9906/* The GNU C library defines this for functions which it implements
9907 to always fail with ENOSYS. Some functions are actually named
9908 something starting with __ and the normal name is an alias. */
9909#if defined (__stub_vprintf) || defined (__stub___vprintf)
9910choke me
9911#else
bdad4e7e 9912f = vprintf;
10f2d63a
VZ
9913#endif
9914
9915; return 0; }
9916EOF
bdad4e7e 9917if { (eval echo configure:9918: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
9918 rm -rf conftest*
9919 eval "ac_cv_func_vprintf=yes"
9920else
9921 echo "configure: failed program was:" >&5
9922 cat conftest.$ac_ext >&5
9923 rm -rf conftest*
9924 eval "ac_cv_func_vprintf=no"
9925fi
9926rm -f conftest*
9927fi
9928
9929if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
9930 echo "$ac_t""yes" 1>&6
9931 cat >> confdefs.h <<\EOF
9932#define HAVE_VPRINTF 1
9933EOF
9934
9935else
9936 echo "$ac_t""no" 1>&6
9937fi
9938
9939if test "$ac_cv_func_vprintf" != yes; then
9940echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
bdad4e7e 9941echo "configure:9942: checking for _doprnt" >&5
10f2d63a
VZ
9942if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
9943 echo $ac_n "(cached) $ac_c" 1>&6
9944else
9945 cat > conftest.$ac_ext <<EOF
bdad4e7e 9946#line 9947 "configure"
10f2d63a
VZ
9947#include "confdefs.h"
9948/* System header to define __stub macros and hopefully few prototypes,
9949 which can conflict with char _doprnt(); below. */
9950#include <assert.h>
9951/* Override any gcc2 internal prototype to avoid an error. */
9952/* We use char because int might match the return type of a gcc2
9953 builtin and then its argument prototype would still apply. */
9954char _doprnt();
bdad4e7e 9955char (*f)();
10f2d63a
VZ
9956
9957int main() {
9958
9959/* The GNU C library defines this for functions which it implements
9960 to always fail with ENOSYS. Some functions are actually named
9961 something starting with __ and the normal name is an alias. */
9962#if defined (__stub__doprnt) || defined (__stub____doprnt)
9963choke me
9964#else
bdad4e7e 9965f = _doprnt;
10f2d63a
VZ
9966#endif
9967
9968; return 0; }
9969EOF
bdad4e7e 9970if { (eval echo configure:9971: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
9971 rm -rf conftest*
9972 eval "ac_cv_func__doprnt=yes"
9973else
9974 echo "configure: failed program was:" >&5
9975 cat conftest.$ac_ext >&5
9976 rm -rf conftest*
9977 eval "ac_cv_func__doprnt=no"
9978fi
9979rm -f conftest*
9980fi
9981
9982if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
9983 echo "$ac_t""yes" 1>&6
9984 cat >> confdefs.h <<\EOF
9985#define HAVE_DOPRNT 1
9986EOF
9987
9988else
9989 echo "$ac_t""no" 1>&6
9990fi
9991
9992fi
9993
9994
9995for ac_func in vsnprintf
9996do
9997echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
bdad4e7e 9998echo "configure:9999: checking for $ac_func" >&5
10f2d63a
VZ
9999if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10000 echo $ac_n "(cached) $ac_c" 1>&6
10001else
10002 cat > conftest.$ac_ext <<EOF
bdad4e7e 10003#line 10004 "configure"
10f2d63a
VZ
10004#include "confdefs.h"
10005/* System header to define __stub macros and hopefully few prototypes,
10006 which can conflict with char $ac_func(); below. */
10007#include <assert.h>
10008/* Override any gcc2 internal prototype to avoid an error. */
10009/* We use char because int might match the return type of a gcc2
10010 builtin and then its argument prototype would still apply. */
10011char $ac_func();
bdad4e7e 10012char (*f)();
10f2d63a
VZ
10013
10014int main() {
10015
10016/* The GNU C library defines this for functions which it implements
10017 to always fail with ENOSYS. Some functions are actually named
10018 something starting with __ and the normal name is an alias. */
10019#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10020choke me
10021#else
bdad4e7e 10022f = $ac_func;
10f2d63a
VZ
10023#endif
10024
10025; return 0; }
10026EOF
bdad4e7e 10027if { (eval echo configure:10028: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
10028 rm -rf conftest*
10029 eval "ac_cv_func_$ac_func=yes"
10030else
10031 echo "configure: failed program was:" >&5
10032 cat conftest.$ac_ext >&5
10033 rm -rf conftest*
10034 eval "ac_cv_func_$ac_func=no"
10035fi
10036rm -f conftest*
10037fi
10038
10039if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10040 echo "$ac_t""yes" 1>&6
10041 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10042 cat >> confdefs.h <<EOF
10043#define $ac_tr_func 1
10044EOF
10045 cat >> confdefs.h <<\EOF
10046#define HAVE_VSNPRINTF 1
10047EOF
10048
10049else
10050 echo "$ac_t""no" 1>&6
10051echo "configure: warning: unsafe function sprintf will be used instead of snprintf" 1>&2
10052
10053fi
10054done
10055
10056
10057
10058ac_ext=C
10059# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10060ac_cpp='$CXXCPP $CPPFLAGS'
10061ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10062ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10063cross_compiling=$ac_cv_prog_cxx_cross
10064
10065
10066echo $ac_n "checking for vsscanf""... $ac_c" 1>&6
bdad4e7e 10067echo "configure:10068: checking for vsscanf" >&5
10f2d63a
VZ
10068if eval "test \"`echo '$''{'wx_cv_func_vsscanf'+set}'`\" = set"; then
10069 echo $ac_n "(cached) $ac_c" 1>&6
10070else
10071
10072 if test "$cross_compiling" = yes; then
10073 wx_cv_func_vsscanf=no
10074
10075else
10076 cat > conftest.$ac_ext <<EOF
bdad4e7e 10077#line 10078 "configure"
10f2d63a
VZ
10078#include "confdefs.h"
10079#ifdef __cplusplus
10080extern "C" void exit(int);
10081#endif
10082
10083 #include <stdio.h>
10084 #include <stdarg.h>
10085
10086 int try_vsscanf(const char *format, ...)
10087 {
10088 va_list ap;
10089 va_start(ap, format);
10090
10091 vsscanf("17", format, ap);
10092
10093 va_end(ap);
10094 }
10095
10096 int main()
10097 {
10098 int i;
10099 try_vsscanf("%d", &i);
10100 return i == 17 ? 0 : 1;
10101 }
10102
10103EOF
bdad4e7e 10104if { (eval echo configure:10105: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10f2d63a
VZ
10105then
10106
10107 cat >> confdefs.h <<\EOF
10108#define HAVE_VSSCANF 1
10109EOF
10110
10111 wx_cv_func_vsscanf=yes
10112
10113else
10114 echo "configure: failed program was:" >&5
10115 cat conftest.$ac_ext >&5
10116 rm -fr conftest*
10117 wx_cv_func_vsscanf=no
10118fi
10119rm -fr conftest*
10120fi
10121
10122
10123fi
10124
10125echo "$ac_t""$wx_cv_func_vsscanf" 1>&6
10126
10127ac_ext=c
10128# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10129ac_cpp='$CPP $CPPFLAGS'
10130ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10131ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10132cross_compiling=$ac_cv_prog_cc_cross
10133
10134
b089607b 10135if test "$TOOLKIT" != "MSW"; then
10f2d63a
VZ
10136
10137for ac_func in vfork
10138do
10139echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
bdad4e7e 10140echo "configure:10141: checking for $ac_func" >&5
10f2d63a
VZ
10141if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10142 echo $ac_n "(cached) $ac_c" 1>&6
10143else
10144 cat > conftest.$ac_ext <<EOF
bdad4e7e 10145#line 10146 "configure"
10f2d63a
VZ
10146#include "confdefs.h"
10147/* System header to define __stub macros and hopefully few prototypes,
10148 which can conflict with char $ac_func(); below. */
10149#include <assert.h>
10150/* Override any gcc2 internal prototype to avoid an error. */
10151/* We use char because int might match the return type of a gcc2
10152 builtin and then its argument prototype would still apply. */
10153char $ac_func();
bdad4e7e 10154char (*f)();
10f2d63a
VZ
10155
10156int main() {
10157
10158/* The GNU C library defines this for functions which it implements
10159 to always fail with ENOSYS. Some functions are actually named
10160 something starting with __ and the normal name is an alias. */
10161#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10162choke me
10163#else
bdad4e7e 10164f = $ac_func;
10f2d63a
VZ
10165#endif
10166
10167; return 0; }
10168EOF
bdad4e7e 10169if { (eval echo configure:10170: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
270a909e
VZ
10170 rm -rf conftest*
10171 eval "ac_cv_func_$ac_func=yes"
10172else
10173 echo "configure: failed program was:" >&5
10174 cat conftest.$ac_ext >&5
10175 rm -rf conftest*
10176 eval "ac_cv_func_$ac_func=no"
10177fi
10178rm -f conftest*
10179fi
10180
10181if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10182 echo "$ac_t""yes" 1>&6
10183 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10184 cat >> confdefs.h <<EOF
10185#define $ac_tr_func 1
10186EOF
10187
10188else
10189 echo "$ac_t""no" 1>&6
10190fi
10191done
10192
10193
10194for ac_func in timegm
10195do
10196echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
bdad4e7e 10197echo "configure:10198: checking for $ac_func" >&5
270a909e
VZ
10198if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10199 echo $ac_n "(cached) $ac_c" 1>&6
10200else
10201 cat > conftest.$ac_ext <<EOF
bdad4e7e 10202#line 10203 "configure"
270a909e
VZ
10203#include "confdefs.h"
10204/* System header to define __stub macros and hopefully few prototypes,
10205 which can conflict with char $ac_func(); below. */
10206#include <assert.h>
10207/* Override any gcc2 internal prototype to avoid an error. */
10208/* We use char because int might match the return type of a gcc2
10209 builtin and then its argument prototype would still apply. */
10210char $ac_func();
bdad4e7e 10211char (*f)();
270a909e
VZ
10212
10213int main() {
10214
10215/* The GNU C library defines this for functions which it implements
10216 to always fail with ENOSYS. Some functions are actually named
10217 something starting with __ and the normal name is an alias. */
10218#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10219choke me
10220#else
bdad4e7e 10221f = $ac_func;
270a909e
VZ
10222#endif
10223
10224; return 0; }
10225EOF
bdad4e7e 10226if { (eval echo configure:10227: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
10227 rm -rf conftest*
10228 eval "ac_cv_func_$ac_func=yes"
10229else
10230 echo "configure: failed program was:" >&5
10231 cat conftest.$ac_ext >&5
10232 rm -rf conftest*
10233 eval "ac_cv_func_$ac_func=no"
10234fi
10235rm -f conftest*
10236fi
10237
10238if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10239 echo "$ac_t""yes" 1>&6
10240 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10241 cat >> confdefs.h <<EOF
10242#define $ac_tr_func 1
10243EOF
10244
10245else
10246 echo "$ac_t""no" 1>&6
10247fi
10248done
10249
10250
b12915c1
VZ
10251HAVE_SOME_SLEEP_FUNC=0
10252if test "$USE_BEOS" = 1; then
10253 cat >> confdefs.h <<\EOF
10254#define HAVE_SLEEP 1
10255EOF
10256
10257 HAVE_SOME_SLEEP_FUNC=1
10258fi
10259
10260if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
10261 POSIX4_LINK=
10262 for ac_func in nanosleep
10f2d63a
VZ
10263do
10264echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
bdad4e7e 10265echo "configure:10266: checking for $ac_func" >&5
10f2d63a
VZ
10266if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10267 echo $ac_n "(cached) $ac_c" 1>&6
10268else
10269 cat > conftest.$ac_ext <<EOF
bdad4e7e 10270#line 10271 "configure"
10f2d63a
VZ
10271#include "confdefs.h"
10272/* System header to define __stub macros and hopefully few prototypes,
10273 which can conflict with char $ac_func(); below. */
10274#include <assert.h>
10275/* Override any gcc2 internal prototype to avoid an error. */
10276/* We use char because int might match the return type of a gcc2
10277 builtin and then its argument prototype would still apply. */
10278char $ac_func();
bdad4e7e 10279char (*f)();
10f2d63a
VZ
10280
10281int main() {
10282
10283/* The GNU C library defines this for functions which it implements
10284 to always fail with ENOSYS. Some functions are actually named
10285 something starting with __ and the normal name is an alias. */
10286#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10287choke me
10288#else
bdad4e7e 10289f = $ac_func;
10f2d63a
VZ
10290#endif
10291
10292; return 0; }
10293EOF
bdad4e7e 10294if { (eval echo configure:10295: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
10295 rm -rf conftest*
10296 eval "ac_cv_func_$ac_func=yes"
10297else
10298 echo "configure: failed program was:" >&5
10299 cat conftest.$ac_ext >&5
10300 rm -rf conftest*
10301 eval "ac_cv_func_$ac_func=no"
10302fi
10303rm -f conftest*
10304fi
10305
10306if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10307 echo "$ac_t""yes" 1>&6
10308 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10309 cat >> confdefs.h <<EOF
10310#define $ac_tr_func 1
10311EOF
10312 cat >> confdefs.h <<\EOF
10313#define HAVE_NANOSLEEP 1
10314EOF
10315
10316else
10317 echo "$ac_t""no" 1>&6
10318echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6
bdad4e7e 10319echo "configure:10320: checking for nanosleep in -lposix4" >&5
10f2d63a
VZ
10320ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'`
10321if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10322 echo $ac_n "(cached) $ac_c" 1>&6
10323else
10324 ac_save_LIBS="$LIBS"
10325LIBS="-lposix4 $LIBS"
10326cat > conftest.$ac_ext <<EOF
bdad4e7e 10327#line 10328 "configure"
10f2d63a
VZ
10328#include "confdefs.h"
10329/* Override any gcc2 internal prototype to avoid an error. */
10330/* We use char because int might match the return type of a gcc2
10331 builtin and then its argument prototype would still apply. */
10332char nanosleep();
10333
10334int main() {
10335nanosleep()
10336; return 0; }
10337EOF
bdad4e7e 10338if { (eval echo configure:10339: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
10339 rm -rf conftest*
10340 eval "ac_cv_lib_$ac_lib_var=yes"
10341else
10342 echo "configure: failed program was:" >&5
10343 cat conftest.$ac_ext >&5
10344 rm -rf conftest*
10345 eval "ac_cv_lib_$ac_lib_var=no"
10346fi
10347rm -f conftest*
10348LIBS="$ac_save_LIBS"
10349
10350fi
10351if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10352 echo "$ac_t""yes" 1>&6
10353
b12915c1 10354 cat >> confdefs.h <<\EOF
10f2d63a
VZ
10355#define HAVE_NANOSLEEP 1
10356EOF
10357
b12915c1
VZ
10358 POSIX4_LINK="-lposix4"
10359
10f2d63a
VZ
10360else
10361 echo "$ac_t""no" 1>&6
10362
b12915c1 10363 for ac_func in usleep
10f2d63a
VZ
10364do
10365echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
bdad4e7e 10366echo "configure:10367: checking for $ac_func" >&5
10f2d63a
VZ
10367if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10368 echo $ac_n "(cached) $ac_c" 1>&6
10369else
10370 cat > conftest.$ac_ext <<EOF
bdad4e7e 10371#line 10372 "configure"
10f2d63a
VZ
10372#include "confdefs.h"
10373/* System header to define __stub macros and hopefully few prototypes,
10374 which can conflict with char $ac_func(); below. */
10375#include <assert.h>
10376/* Override any gcc2 internal prototype to avoid an error. */
10377/* We use char because int might match the return type of a gcc2
10378 builtin and then its argument prototype would still apply. */
10379char $ac_func();
bdad4e7e 10380char (*f)();
10f2d63a
VZ
10381
10382int main() {
10383
10384/* The GNU C library defines this for functions which it implements
10385 to always fail with ENOSYS. Some functions are actually named
10386 something starting with __ and the normal name is an alias. */
10387#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10388choke me
10389#else
bdad4e7e 10390f = $ac_func;
10f2d63a
VZ
10391#endif
10392
10393; return 0; }
10394EOF
bdad4e7e 10395if { (eval echo configure:10396: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
10396 rm -rf conftest*
10397 eval "ac_cv_func_$ac_func=yes"
10398else
10399 echo "configure: failed program was:" >&5
10400 cat conftest.$ac_ext >&5
10401 rm -rf conftest*
10402 eval "ac_cv_func_$ac_func=no"
10403fi
10404rm -f conftest*
10405fi
10406
10407if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10408 echo "$ac_t""yes" 1>&6
10409 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10410 cat >> confdefs.h <<EOF
10411#define $ac_tr_func 1
10412EOF
b12915c1 10413
10f2d63a
VZ
10414else
10415 echo "$ac_t""no" 1>&6
10f2d63a
VZ
10416fi
10417done
10418
b12915c1
VZ
10419 echo "configure: warning: wxSleep() function will not work" 1>&2
10420
10421
10f2d63a
VZ
10422fi
10423
b12915c1
VZ
10424
10425
10f2d63a
VZ
10426fi
10427done
10428
b12915c1 10429fi
10f2d63a
VZ
10430
10431for ac_func in uname gethostname
10432do
10433echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
bdad4e7e 10434echo "configure:10435: checking for $ac_func" >&5
10f2d63a
VZ
10435if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10436 echo $ac_n "(cached) $ac_c" 1>&6
10437else
10438 cat > conftest.$ac_ext <<EOF
bdad4e7e 10439#line 10440 "configure"
10f2d63a
VZ
10440#include "confdefs.h"
10441/* System header to define __stub macros and hopefully few prototypes,
10442 which can conflict with char $ac_func(); below. */
10443#include <assert.h>
10444/* Override any gcc2 internal prototype to avoid an error. */
10445/* We use char because int might match the return type of a gcc2
10446 builtin and then its argument prototype would still apply. */
10447char $ac_func();
bdad4e7e 10448char (*f)();
10f2d63a
VZ
10449
10450int main() {
10451
10452/* The GNU C library defines this for functions which it implements
10453 to always fail with ENOSYS. Some functions are actually named
10454 something starting with __ and the normal name is an alias. */
10455#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10456choke me
10457#else
bdad4e7e 10458f = $ac_func;
10f2d63a
VZ
10459#endif
10460
10461; return 0; }
10462EOF
bdad4e7e 10463if { (eval echo configure:10464: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
10464 rm -rf conftest*
10465 eval "ac_cv_func_$ac_func=yes"
10466else
10467 echo "configure: failed program was:" >&5
10468 cat conftest.$ac_ext >&5
10469 rm -rf conftest*
10470 eval "ac_cv_func_$ac_func=no"
10471fi
10472rm -f conftest*
10473fi
10474
10475if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10476 echo "$ac_t""yes" 1>&6
10477 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10478 cat >> confdefs.h <<EOF
10479#define $ac_tr_func 1
10480EOF
10481 break
10482else
10483 echo "$ac_t""no" 1>&6
10484fi
10485done
10486
10487
10488for ac_func in strtok_r
10489do
10490echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
bdad4e7e 10491echo "configure:10492: checking for $ac_func" >&5
10f2d63a
VZ
10492if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10493 echo $ac_n "(cached) $ac_c" 1>&6
10494else
10495 cat > conftest.$ac_ext <<EOF
bdad4e7e 10496#line 10497 "configure"
10f2d63a
VZ
10497#include "confdefs.h"
10498/* System header to define __stub macros and hopefully few prototypes,
10499 which can conflict with char $ac_func(); below. */
10500#include <assert.h>
10501/* Override any gcc2 internal prototype to avoid an error. */
10502/* We use char because int might match the return type of a gcc2
10503 builtin and then its argument prototype would still apply. */
10504char $ac_func();
bdad4e7e 10505char (*f)();
10f2d63a
VZ
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
bdad4e7e 10515f = $ac_func;
10f2d63a
VZ
10516#endif
10517
10518; return 0; }
10519EOF
bdad4e7e 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
10539else
10540 echo "$ac_t""no" 1>&6
10541fi
10542done
10543
10544
c63c7106 10545INET_LINK=
10f2d63a
VZ
10546for ac_func in inet_addr
10547do
10548echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
bdad4e7e 10549echo "configure:10550: checking for $ac_func" >&5
10f2d63a
VZ
10550if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10551 echo $ac_n "(cached) $ac_c" 1>&6
10552else
10553 cat > conftest.$ac_ext <<EOF
bdad4e7e 10554#line 10555 "configure"
10f2d63a
VZ
10555#include "confdefs.h"
10556/* System header to define __stub macros and hopefully few prototypes,
10557 which can conflict with char $ac_func(); below. */
10558#include <assert.h>
10559/* Override any gcc2 internal prototype to avoid an error. */
10560/* We use char because int might match the return type of a gcc2
10561 builtin and then its argument prototype would still apply. */
10562char $ac_func();
bdad4e7e 10563char (*f)();
10f2d63a
VZ
10564
10565int main() {
10566
10567/* The GNU C library defines this for functions which it implements
10568 to always fail with ENOSYS. Some functions are actually named
10569 something starting with __ and the normal name is an alias. */
10570#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10571choke me
10572#else
bdad4e7e 10573f = $ac_func;
10f2d63a
VZ
10574#endif
10575
10576; return 0; }
10577EOF
bdad4e7e 10578if { (eval echo configure:10579: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
10579 rm -rf conftest*
10580 eval "ac_cv_func_$ac_func=yes"
10581else
10582 echo "configure: failed program was:" >&5
10583 cat conftest.$ac_ext >&5
10584 rm -rf conftest*
10585 eval "ac_cv_func_$ac_func=no"
10586fi
10587rm -f conftest*
10588fi
10589
10590if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10591 echo "$ac_t""yes" 1>&6
10592 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10593 cat >> confdefs.h <<EOF
10594#define $ac_tr_func 1
10595EOF
c63c7106
VZ
10596 cat >> confdefs.h <<\EOF
10597#define HAVE_INET_ADDR 1
10598EOF
10599
10f2d63a
VZ
10600else
10601 echo "$ac_t""no" 1>&6
c63c7106 10602echo $ac_n "checking for inet_addr in -lnsl""... $ac_c" 1>&6
bdad4e7e 10603echo "configure:10604: checking for inet_addr in -lnsl" >&5
c63c7106
VZ
10604ac_lib_var=`echo nsl'_'inet_addr | sed 'y%./+-%__p_%'`
10605if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10606 echo $ac_n "(cached) $ac_c" 1>&6
10607else
10608 ac_save_LIBS="$LIBS"
10609LIBS="-lnsl $LIBS"
10610cat > conftest.$ac_ext <<EOF
bdad4e7e 10611#line 10612 "configure"
c63c7106
VZ
10612#include "confdefs.h"
10613/* Override any gcc2 internal prototype to avoid an error. */
10614/* We use char because int might match the return type of a gcc2
10615 builtin and then its argument prototype would still apply. */
10616char inet_addr();
10617
10618int main() {
10619inet_addr()
10620; return 0; }
10621EOF
bdad4e7e 10622if { (eval echo configure:10623: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
c63c7106
VZ
10623 rm -rf conftest*
10624 eval "ac_cv_lib_$ac_lib_var=yes"
10625else
10626 echo "configure: failed program was:" >&5
10627 cat conftest.$ac_ext >&5
10628 rm -rf conftest*
10629 eval "ac_cv_lib_$ac_lib_var=no"
10630fi
10631rm -f conftest*
10632LIBS="$ac_save_LIBS"
10633
10634fi
10635if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10636 echo "$ac_t""yes" 1>&6
10637 INET_LINK="nsl"
10638else
10639 echo "$ac_t""no" 1>&6
10640echo $ac_n "checking for inet_addr in -lresolv""... $ac_c" 1>&6
bdad4e7e 10641echo "configure:10642: checking for inet_addr in -lresolv" >&5
c63c7106
VZ
10642ac_lib_var=`echo resolv'_'inet_addr | sed 'y%./+-%__p_%'`
10643if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10644 echo $ac_n "(cached) $ac_c" 1>&6
10645else
10646 ac_save_LIBS="$LIBS"
10647LIBS="-lresolv $LIBS"
10648cat > conftest.$ac_ext <<EOF
bdad4e7e 10649#line 10650 "configure"
c63c7106
VZ
10650#include "confdefs.h"
10651/* Override any gcc2 internal prototype to avoid an error. */
10652/* We use char because int might match the return type of a gcc2
10653 builtin and then its argument prototype would still apply. */
10654char inet_addr();
10655
10656int main() {
10657inet_addr()
10658; return 0; }
10659EOF
bdad4e7e 10660if { (eval echo configure:10661: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
c63c7106
VZ
10661 rm -rf conftest*
10662 eval "ac_cv_lib_$ac_lib_var=yes"
10663else
10664 echo "configure: failed program was:" >&5
10665 cat conftest.$ac_ext >&5
10666 rm -rf conftest*
10667 eval "ac_cv_lib_$ac_lib_var=no"
10668fi
10669rm -f conftest*
10670LIBS="$ac_save_LIBS"
10671
10672fi
10673if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10674 echo "$ac_t""yes" 1>&6
10675 INET_LINK="resolv"
10676
10677else
10678 echo "$ac_t""no" 1>&6
10679fi
10680
10681
10682fi
10683
10684
10685
10f2d63a
VZ
10686fi
10687done
10688
c63c7106 10689
10f2d63a
VZ
10690for ac_func in inet_aton
10691do
10692echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
bdad4e7e 10693echo "configure:10694: checking for $ac_func" >&5
10f2d63a
VZ
10694if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10695 echo $ac_n "(cached) $ac_c" 1>&6
10696else
10697 cat > conftest.$ac_ext <<EOF
bdad4e7e 10698#line 10699 "configure"
10f2d63a
VZ
10699#include "confdefs.h"
10700/* System header to define __stub macros and hopefully few prototypes,
10701 which can conflict with char $ac_func(); below. */
10702#include <assert.h>
10703/* Override any gcc2 internal prototype to avoid an error. */
10704/* We use char because int might match the return type of a gcc2
10705 builtin and then its argument prototype would still apply. */
10706char $ac_func();
bdad4e7e 10707char (*f)();
10f2d63a
VZ
10708
10709int main() {
10710
10711/* The GNU C library defines this for functions which it implements
10712 to always fail with ENOSYS. Some functions are actually named
10713 something starting with __ and the normal name is an alias. */
10714#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10715choke me
10716#else
bdad4e7e 10717f = $ac_func;
10f2d63a
VZ
10718#endif
10719
10720; return 0; }
10721EOF
bdad4e7e 10722if { (eval echo configure:10723: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
10723 rm -rf conftest*
10724 eval "ac_cv_func_$ac_func=yes"
10725else
10726 echo "configure: failed program was:" >&5
10727 cat conftest.$ac_ext >&5
10728 rm -rf conftest*
10729 eval "ac_cv_func_$ac_func=no"
10730fi
10731rm -f conftest*
10732fi
10733
10734if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10735 echo "$ac_t""yes" 1>&6
10736 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10737 cat >> confdefs.h <<EOF
10738#define $ac_tr_func 1
10739EOF
c63c7106
VZ
10740 cat >> confdefs.h <<\EOF
10741#define HAVE_INET_ATON 1
10742EOF
10743
10f2d63a
VZ
10744else
10745 echo "$ac_t""no" 1>&6
c63c7106 10746 echo $ac_n "checking for inet_aton in -l$INET_LINK""... $ac_c" 1>&6
bdad4e7e 10747echo "configure:10748: checking for inet_aton in -l$INET_LINK" >&5
c63c7106 10748ac_lib_var=`echo $INET_LINK'_'inet_aton | sed 'y%./+-%__p_%'`
10f2d63a
VZ
10749if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10750 echo $ac_n "(cached) $ac_c" 1>&6
10751else
10752 ac_save_LIBS="$LIBS"
c63c7106 10753LIBS="-l$INET_LINK $LIBS"
10f2d63a 10754cat > conftest.$ac_ext <<EOF
bdad4e7e 10755#line 10756 "configure"
10f2d63a
VZ
10756#include "confdefs.h"
10757/* Override any gcc2 internal prototype to avoid an error. */
10758/* We use char because int might match the return type of a gcc2
10759 builtin and then its argument prototype would still apply. */
10760char inet_aton();
10761
10762int main() {
10763inet_aton()
10764; return 0; }
10765EOF
bdad4e7e 10766if { (eval echo configure:10767: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
10767 rm -rf conftest*
10768 eval "ac_cv_lib_$ac_lib_var=yes"
10769else
10770 echo "configure: failed program was:" >&5
10771 cat conftest.$ac_ext >&5
10772 rm -rf conftest*
10773 eval "ac_cv_lib_$ac_lib_var=no"
10774fi
10775rm -f conftest*
10776LIBS="$ac_save_LIBS"
10777
10778fi
10779if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10780 echo "$ac_t""yes" 1>&6
c63c7106
VZ
10781 cat >> confdefs.h <<\EOF
10782#define HAVE_INET_ATON 1
10f2d63a
VZ
10783EOF
10784
10f2d63a
VZ
10785else
10786 echo "$ac_t""no" 1>&6
10787fi
10788
c63c7106
VZ
10789
10790fi
10791done
10792
10793
10794if test "x$INET_LINK" != "x"; then
10795 cat >> confdefs.h <<\EOF
10796#define HAVE_INET_ADDR 1
10797EOF
10798
10799 INET_LINK="-l$INET_LINK"
10800fi
10f2d63a
VZ
10801
10802fi
10803
10804
10805cat > confcache <<\EOF
10806# This file is a shell script that caches the results of configure
10807# tests run on this system so they can be shared between configure
10808# scripts and configure runs. It is not useful on other systems.
10809# If it contains results you don't want to keep, you may remove or edit it.
10810#
10811# By default, configure uses ./config.cache as the cache file,
10812# creating it if it does not exist already. You can give configure
10813# the --cache-file=FILE option to use a different cache file; that is
10814# what configure does when it calls configure scripts in
10815# subdirectories, so they share the cache.
10816# Giving --cache-file=/dev/null disables caching, for debugging configure.
10817# config.status only pays attention to the cache file if you give it the
10818# --recheck option to rerun configure.
10819#
10820EOF
10821# The following way of writing the cache mishandles newlines in values,
10822# but we know of no workaround that is simple, portable, and efficient.
10823# So, don't put newlines in cache variables' values.
10824# Ultrix sh set writes to stderr and can't be redirected directly,
10825# and sets the high bit in the cache file unless we assign to the vars.
10826(set) 2>&1 |
10827 case `(ac_space=' '; set | grep ac_space) 2>&1` in
10828 *ac_space=\ *)
10829 # `set' does not quote correctly, so add quotes (double-quote substitution
10830 # turns \\\\ into \\, and sed turns \\ into \).
10831 sed -n \
10832 -e "s/'/'\\\\''/g" \
10833 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
10834 ;;
10835 *)
10836 # `set' quotes correctly as required by POSIX, so do not add quotes.
10837 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
10838 ;;
10839 esac >> confcache
10840if cmp -s $cache_file confcache; then
10841 :
10842else
10843 if test -w $cache_file; then
10844 echo "updating cache $cache_file"
10845 cat confcache > $cache_file
10846 else
10847 echo "not updating unwritable cache $cache_file"
10848 fi
10849fi
10850rm -f confcache
10851
10852
10853
b089607b 10854if test "$TOOLKIT" != "MSW"; then
10f2d63a
VZ
10855
10856
10857THREADS_LINK=""
10858THREADS_OBJ=""
10859
10860if test "$wxUSE_THREADS" = "yes" ; then
10861 if test "$wxUSE_WINE" = 1 ; then
10862 echo "configure: warning: Threads are not supported under WINE" 1>&2
10863 wxUSE_THREADS="no"
b12915c1
VZ
10864 elif test "$USE_BEOS" = 1; then
10865 echo "configure: warning: BeOS threads are not yet supported" 1>&2
10866 wxUSE_THREADS="no"
10f2d63a
VZ
10867 fi
10868fi
10869
10870if test "$wxUSE_THREADS" = "yes" ; then
10871
10872 echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6
bdad4e7e 10873echo "configure:10874: checking for pthread_create in -lpthread" >&5
10f2d63a
VZ
10874ac_lib_var=`echo pthread'_'pthread_create | sed 'y%./+-%__p_%'`
10875if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10876 echo $ac_n "(cached) $ac_c" 1>&6
10877else
10878 ac_save_LIBS="$LIBS"
10879LIBS="-lpthread $LIBS"
10880cat > conftest.$ac_ext <<EOF
bdad4e7e 10881#line 10882 "configure"
10f2d63a
VZ
10882#include "confdefs.h"
10883/* Override any gcc2 internal prototype to avoid an error. */
10884/* We use char because int might match the return type of a gcc2
10885 builtin and then its argument prototype would still apply. */
10886char pthread_create();
10887
10888int main() {
10889pthread_create()
10890; return 0; }
10891EOF
bdad4e7e 10892if { (eval echo configure:10893: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
10893 rm -rf conftest*
10894 eval "ac_cv_lib_$ac_lib_var=yes"
10895else
10896 echo "configure: failed program was:" >&5
10897 cat conftest.$ac_ext >&5
10898 rm -rf conftest*
10899 eval "ac_cv_lib_$ac_lib_var=no"
10900fi
10901rm -f conftest*
10902LIBS="$ac_save_LIBS"
10903
10904fi
10905if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10906 echo "$ac_t""yes" 1>&6
10907
10908 THREADS_OBJ="threadpsx.lo"
10909 THREADS_LINK="pthread"
10910
10911else
10912 echo "$ac_t""no" 1>&6
10913
10914 echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6
bdad4e7e 10915echo "configure:10916: checking for pthread_create in -lc_r" >&5
10f2d63a
VZ
10916ac_lib_var=`echo c_r'_'pthread_create | sed 'y%./+-%__p_%'`
10917if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10918 echo $ac_n "(cached) $ac_c" 1>&6
10919else
10920 ac_save_LIBS="$LIBS"
10921LIBS="-lc_r $LIBS"
10922cat > conftest.$ac_ext <<EOF
bdad4e7e 10923#line 10924 "configure"
10f2d63a
VZ
10924#include "confdefs.h"
10925/* Override any gcc2 internal prototype to avoid an error. */
10926/* We use char because int might match the return type of a gcc2
10927 builtin and then its argument prototype would still apply. */
10928char pthread_create();
10929
10930int main() {
10931pthread_create()
10932; return 0; }
10933EOF
bdad4e7e 10934if { (eval echo configure:10935: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
10935 rm -rf conftest*
10936 eval "ac_cv_lib_$ac_lib_var=yes"
10937else
10938 echo "configure: failed program was:" >&5
10939 cat conftest.$ac_ext >&5
10940 rm -rf conftest*
10941 eval "ac_cv_lib_$ac_lib_var=no"
10942fi
10943rm -f conftest*
10944LIBS="$ac_save_LIBS"
10945
10946fi
10947if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10948 echo "$ac_t""yes" 1>&6
10949
10950 THREADS_OBJ="threadpsx.lo"
10951 THREADS_LINK="c_r"
10952
10953else
10954 echo "$ac_t""no" 1>&6
10955
10956 ac_safe=`echo "sys/prctl.h" | sed 'y%./+-%__p_%'`
10957echo $ac_n "checking for sys/prctl.h""... $ac_c" 1>&6
bdad4e7e 10958echo "configure:10959: checking for sys/prctl.h" >&5
10f2d63a
VZ
10959if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10960 echo $ac_n "(cached) $ac_c" 1>&6
10961else
10962 cat > conftest.$ac_ext <<EOF
bdad4e7e 10963#line 10964 "configure"
10f2d63a
VZ
10964#include "confdefs.h"
10965#include <sys/prctl.h>
10966EOF
10967ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
bdad4e7e 10968{ (eval echo configure:10969: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
10969ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10970if test -z "$ac_err"; then
10971 rm -rf conftest*
10972 eval "ac_cv_header_$ac_safe=yes"
10973else
10974 echo "$ac_err" >&5
10975 echo "configure: failed program was:" >&5
10976 cat conftest.$ac_ext >&5
10977 rm -rf conftest*
10978 eval "ac_cv_header_$ac_safe=no"
10979fi
10980rm -f conftest*
10981fi
10982if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10983 echo "$ac_t""yes" 1>&6
10984
10985 THREADS_OBJ="threadsgi.lo"
10986
10987else
10988 echo "$ac_t""no" 1>&6
10989fi
10990
10991
10992fi
10993
10994
10995fi
10996
10997
10998 if test -z "$THREADS_OBJ" ; then
10999 wxUSE_THREADS=no
11000 echo "configure: warning: No thread support on this system" 1>&2
11001 fi
11002fi
11003
11004if test "$wxUSE_THREADS" = "yes" ; then
70846f0a
VZ
11005 for ac_func in thr_setconcurrency
11006do
11007echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
bdad4e7e 11008echo "configure:11009: checking for $ac_func" >&5
70846f0a
VZ
11009if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11010 echo $ac_n "(cached) $ac_c" 1>&6
11011else
11012 cat > conftest.$ac_ext <<EOF
bdad4e7e 11013#line 11014 "configure"
70846f0a
VZ
11014#include "confdefs.h"
11015/* System header to define __stub macros and hopefully few prototypes,
11016 which can conflict with char $ac_func(); below. */
11017#include <assert.h>
11018/* Override any gcc2 internal prototype to avoid an error. */
11019/* We use char because int might match the return type of a gcc2
11020 builtin and then its argument prototype would still apply. */
11021char $ac_func();
bdad4e7e 11022char (*f)();
70846f0a
VZ
11023
11024int main() {
11025
11026/* The GNU C library defines this for functions which it implements
11027 to always fail with ENOSYS. Some functions are actually named
11028 something starting with __ and the normal name is an alias. */
11029#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11030choke me
11031#else
bdad4e7e 11032f = $ac_func;
70846f0a
VZ
11033#endif
11034
11035; return 0; }
11036EOF
bdad4e7e 11037if { (eval echo configure:11038: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
70846f0a
VZ
11038 rm -rf conftest*
11039 eval "ac_cv_func_$ac_func=yes"
11040else
11041 echo "configure: failed program was:" >&5
11042 cat conftest.$ac_ext >&5
11043 rm -rf conftest*
11044 eval "ac_cv_func_$ac_func=no"
11045fi
11046rm -f conftest*
11047fi
11048
11049if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11050 echo "$ac_t""yes" 1>&6
11051 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11052 cat >> confdefs.h <<EOF
11053#define $ac_tr_func 1
11054EOF
11055
11056else
11057 echo "$ac_t""no" 1>&6
11058fi
11059done
11060
11061
10f2d63a
VZ
11062
11063 for ac_hdr in sched.h
11064do
11065ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11066echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
bdad4e7e 11067echo "configure:11068: checking for $ac_hdr" >&5
10f2d63a
VZ
11068if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11069 echo $ac_n "(cached) $ac_c" 1>&6
11070else
11071 cat > conftest.$ac_ext <<EOF
bdad4e7e 11072#line 11073 "configure"
10f2d63a
VZ
11073#include "confdefs.h"
11074#include <$ac_hdr>
11075EOF
11076ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
bdad4e7e 11077{ (eval echo configure:11078: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
11078ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11079if test -z "$ac_err"; then
11080 rm -rf conftest*
11081 eval "ac_cv_header_$ac_safe=yes"
11082else
11083 echo "$ac_err" >&5
11084 echo "configure: failed program was:" >&5
11085 cat conftest.$ac_ext >&5
11086 rm -rf conftest*
11087 eval "ac_cv_header_$ac_safe=no"
11088fi
11089rm -f conftest*
11090fi
11091if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11092 echo "$ac_t""yes" 1>&6
11093 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11094 cat >> confdefs.h <<EOF
11095#define $ac_tr_hdr 1
11096EOF
11097
11098else
11099 echo "$ac_t""no" 1>&6
11100fi
11101done
11102
11103
11104 echo $ac_n "checking for sched_yield in -l$THREADS_LINK""... $ac_c" 1>&6
bdad4e7e 11105echo "configure:11106: checking for sched_yield in -l$THREADS_LINK" >&5
10f2d63a
VZ
11106ac_lib_var=`echo $THREADS_LINK'_'sched_yield | sed 'y%./+-%__p_%'`
11107if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11108 echo $ac_n "(cached) $ac_c" 1>&6
11109else
11110 ac_save_LIBS="$LIBS"
11111LIBS="-l$THREADS_LINK $LIBS"
11112cat > conftest.$ac_ext <<EOF
bdad4e7e 11113#line 11114 "configure"
10f2d63a
VZ
11114#include "confdefs.h"
11115/* Override any gcc2 internal prototype to avoid an error. */
11116/* We use char because int might match the return type of a gcc2
11117 builtin and then its argument prototype would still apply. */
11118char sched_yield();
11119
11120int main() {
11121sched_yield()
11122; return 0; }
11123EOF
bdad4e7e 11124if { (eval echo configure:11125: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
11125 rm -rf conftest*
11126 eval "ac_cv_lib_$ac_lib_var=yes"
11127else
11128 echo "configure: failed program was:" >&5
11129 cat conftest.$ac_ext >&5
11130 rm -rf conftest*
11131 eval "ac_cv_lib_$ac_lib_var=no"
11132fi
11133rm -f conftest*
11134LIBS="$ac_save_LIBS"
11135
11136fi
11137if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11138 echo "$ac_t""yes" 1>&6
11139 cat >> confdefs.h <<\EOF
11140#define HAVE_SCHED_YIELD 1
11141EOF
11142
11143else
11144 echo "$ac_t""no" 1>&6
11145echo $ac_n "checking for sched_yield in -l"posix4"""... $ac_c" 1>&6
bdad4e7e 11146echo "configure:11147: checking for sched_yield in -l"posix4"" >&5
10f2d63a
VZ
11147ac_lib_var=`echo "posix4"'_'sched_yield | sed 'y%./+-%__p_%'`
11148if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11149 echo $ac_n "(cached) $ac_c" 1>&6
11150else
11151 ac_save_LIBS="$LIBS"
11152LIBS="-l"posix4" $LIBS"
11153cat > conftest.$ac_ext <<EOF
bdad4e7e 11154#line 11155 "configure"
10f2d63a
VZ
11155#include "confdefs.h"
11156/* Override any gcc2 internal prototype to avoid an error. */
11157/* We use char because int might match the return type of a gcc2
11158 builtin and then its argument prototype would still apply. */
11159char sched_yield();
11160
11161int main() {
11162sched_yield()
11163; return 0; }
11164EOF
bdad4e7e 11165if { (eval echo configure:11166: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
11166 rm -rf conftest*
11167 eval "ac_cv_lib_$ac_lib_var=yes"
11168else
11169 echo "configure: failed program was:" >&5
11170 cat conftest.$ac_ext >&5
11171 rm -rf conftest*
11172 eval "ac_cv_lib_$ac_lib_var=no"
11173fi
11174rm -f conftest*
11175LIBS="$ac_save_LIBS"
11176
11177fi
11178if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11179 echo "$ac_t""yes" 1>&6
11180 cat >> confdefs.h <<\EOF
11181#define HAVE_SCHED_YIELD 1
11182EOF
11183 POSIX4_LINK="-lposix4"
11184else
11185 echo "$ac_t""no" 1>&6
11186echo "configure: warning: wxThread::Yield will not work properly" 1>&2
11187
11188fi
11189
11190
11191fi
11192
11193
11194 echo $ac_n "checking for pthread_attr_getschedpolicy in -l$THREADS_LINK""... $ac_c" 1>&6
bdad4e7e 11195echo "configure:11196: checking for pthread_attr_getschedpolicy in -l$THREADS_LINK" >&5
10f2d63a
VZ
11196ac_lib_var=`echo $THREADS_LINK'_'pthread_attr_getschedpolicy | sed 'y%./+-%__p_%'`
11197if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11198 echo $ac_n "(cached) $ac_c" 1>&6
11199else
11200 ac_save_LIBS="$LIBS"
11201LIBS="-l$THREADS_LINK $LIBS"
11202cat > conftest.$ac_ext <<EOF
bdad4e7e 11203#line 11204 "configure"
10f2d63a
VZ
11204#include "confdefs.h"
11205/* Override any gcc2 internal prototype to avoid an error. */
11206/* We use char because int might match the return type of a gcc2
11207 builtin and then its argument prototype would still apply. */
11208char pthread_attr_getschedpolicy();
11209
11210int main() {
11211pthread_attr_getschedpolicy()
11212; return 0; }
11213EOF
bdad4e7e 11214if { (eval echo configure:11215: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
11215 rm -rf conftest*
11216 eval "ac_cv_lib_$ac_lib_var=yes"
11217else
11218 echo "configure: failed program was:" >&5
11219 cat conftest.$ac_ext >&5
11220 rm -rf conftest*
11221 eval "ac_cv_lib_$ac_lib_var=no"
11222fi
11223rm -f conftest*
11224LIBS="$ac_save_LIBS"
11225
11226fi
11227if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11228 echo "$ac_t""yes" 1>&6
11229 cat >> confdefs.h <<\EOF
11230#define HAVE_THREAD_PRIORITY_FUNCTIONS 1
11231EOF
11232
11233else
11234 echo "$ac_t""no" 1>&6
11235echo $ac_n "checking for pthread_attr_getschedpolicy in -l"posix4"""... $ac_c" 1>&6
bdad4e7e 11236echo "configure:11237: checking for pthread_attr_getschedpolicy in -l"posix4"" >&5
10f2d63a
VZ
11237ac_lib_var=`echo "posix4"'_'pthread_attr_getschedpolicy | sed 'y%./+-%__p_%'`
11238if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11239 echo $ac_n "(cached) $ac_c" 1>&6
11240else
11241 ac_save_LIBS="$LIBS"
11242LIBS="-l"posix4" $LIBS"
11243cat > conftest.$ac_ext <<EOF
bdad4e7e 11244#line 11245 "configure"
10f2d63a
VZ
11245#include "confdefs.h"
11246/* Override any gcc2 internal prototype to avoid an error. */
11247/* We use char because int might match the return type of a gcc2
11248 builtin and then its argument prototype would still apply. */
11249char pthread_attr_getschedpolicy();
11250
11251int main() {
11252pthread_attr_getschedpolicy()
11253; return 0; }
11254EOF
bdad4e7e 11255if { (eval echo configure:11256: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
11256 rm -rf conftest*
11257 eval "ac_cv_lib_$ac_lib_var=yes"
11258else
11259 echo "configure: failed program was:" >&5
11260 cat conftest.$ac_ext >&5
11261 rm -rf conftest*
11262 eval "ac_cv_lib_$ac_lib_var=no"
11263fi
11264rm -f conftest*
11265LIBS="$ac_save_LIBS"
11266
11267fi
11268if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11269 echo "$ac_t""yes" 1>&6
11270 cat >> confdefs.h <<\EOF
11271#define HAVE_THREAD_PRIORITY_FUNCTIONS 1
11272EOF
11273 POSIX4_LINK="-lposix4"
11274else
11275 echo "$ac_t""no" 1>&6
11276echo "configure: warning: Setting thread priority will not work" 1>&2
11277
11278fi
11279
11280
11281fi
11282
11283
11284 echo $ac_n "checking for pthread_cancel in -l$THREADS_LINK""... $ac_c" 1>&6
bdad4e7e 11285echo "configure:11286: checking for pthread_cancel in -l$THREADS_LINK" >&5
10f2d63a
VZ
11286ac_lib_var=`echo $THREADS_LINK'_'pthread_cancel | sed 'y%./+-%__p_%'`
11287if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11288 echo $ac_n "(cached) $ac_c" 1>&6
11289else
11290 ac_save_LIBS="$LIBS"
11291LIBS="-l$THREADS_LINK $LIBS"
11292cat > conftest.$ac_ext <<EOF
bdad4e7e 11293#line 11294 "configure"
10f2d63a
VZ
11294#include "confdefs.h"
11295/* Override any gcc2 internal prototype to avoid an error. */
11296/* We use char because int might match the return type of a gcc2
11297 builtin and then its argument prototype would still apply. */
11298char pthread_cancel();
11299
11300int main() {
11301pthread_cancel()
11302; return 0; }
11303EOF
bdad4e7e 11304if { (eval echo configure:11305: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
11305 rm -rf conftest*
11306 eval "ac_cv_lib_$ac_lib_var=yes"
11307else
11308 echo "configure: failed program was:" >&5
11309 cat conftest.$ac_ext >&5
11310 rm -rf conftest*
11311 eval "ac_cv_lib_$ac_lib_var=no"
11312fi
11313rm -f conftest*
11314LIBS="$ac_save_LIBS"
11315
11316fi
11317if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11318 echo "$ac_t""yes" 1>&6
11319 cat >> confdefs.h <<\EOF
11320#define HAVE_PTHREAD_CANCEL 1
11321EOF
11322
11323else
11324 echo "$ac_t""no" 1>&6
11325echo "configure: warning: wxThread::Kill() will not work properly" 1>&2
11326fi
11327
11328
11329 echo $ac_n "checking for pthread_cleanup_push/pop""... $ac_c" 1>&6
bdad4e7e 11330echo "configure:11331: checking for pthread_cleanup_push/pop" >&5
10f2d63a
VZ
11331if eval "test \"`echo '$''{'wx_cv_func_pthread_cleanup_push'+set}'`\" = set"; then
11332 echo $ac_n "(cached) $ac_c" 1>&6
11333else
11334
11335 cat > conftest.$ac_ext <<EOF
bdad4e7e 11336#line 11337 "configure"
10f2d63a
VZ
11337#include "confdefs.h"
11338#include <pthread.h>
11339int main() {
11340
11341 pthread_cleanup_push(NULL, NULL);
11342 pthread_cleanup_pop(0);
11343
11344; return 0; }
11345EOF
bdad4e7e 11346if { (eval echo configure:11347: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10f2d63a
VZ
11347 rm -rf conftest*
11348
11349 wx_cv_func_pthread_cleanup_push=yes
11350 cat >> confdefs.h <<\EOF
11351#define HAVE_THREAD_CLEANUP_FUNCTIONS 1
11352EOF
11353
11354
11355else
11356 echo "configure: failed program was:" >&5
11357 cat conftest.$ac_ext >&5
11358 rm -rf conftest*
11359
11360 wx_cv_func_pthread_cleanup_push=no
11361
11362fi
11363rm -f conftest*
11364
11365fi
11366
11367echo "$ac_t""$wx_cv_func_pthread_cleanup_push" 1>&6
11368
11369 THREADS_LINK="-l$THREADS_LINK"
11370fi
11371
11372fi
11373
11374if test "$wxUSE_THREADS" = "yes"; then
11375 cat >> confdefs.h <<\EOF
11376#define wxUSE_THREADS 1
11377EOF
11378
11379
11380 CFLAGS="${CFLAGS} -D_REENTRANT"
11381 CXXFLAGS="${CXXFLAGS} -D_REENTRANT"
11382
11383 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
11384else
11385 if test "$ac_cv_func_strtok_r" = "yes"; then
ab9b9eab 11386 echo $ac_n "checking if -D_REENTRANT is needed""... $ac_c" 1>&6
bdad4e7e 11387echo "configure:11388: checking if -D_REENTRANT is needed" >&5
ab9b9eab
VZ
11388 if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
11389 CFLAGS="${CFLAGS} -D_REENTRANT"
11390 CXXFLAGS="${CXXFLAGS} -D_REENTRANT"
11391 echo "$ac_t""yes" 1>&6
11392 else
11393 echo "$ac_t""no" 1>&6
10f2d63a
VZ
11394 fi
11395 fi
11396fi
11397
13111b2a
VZ
11398if test "$WXGTK13" = 1 ; then
11399 cat >> confdefs.h <<EOF
11400#define __WXGTK13__ $WXGTK13
11401EOF
11402
11403 WXGTK12=1
11404fi
11405
10f2d63a
VZ
11406if test "$WXGTK12" = 1 ; then
11407 cat >> confdefs.h <<EOF
11408#define __WXGTK12__ $WXGTK12
11409EOF
11410
11411fi
11412
11413if test "$WXWINE" = 1 ; then
11414 TOOLKIT_DEF="${TOOLKIT_DEF} -D__WXWINE__"
11415fi
11416
11417if test "$wxUSE_CYGWIN" = 1 ; then
11418 TOOLKIT_DEF="${TOOLKIT_DEF} -D__WIN95__"
11419fi
11420
11421WXDEBUG=
11422
11423if test "$wxUSE_DEBUG_INFO" = "yes" ; then
11424 WXDEBUG="-g"
11425 wxUSE_OPTIMISE=no
11426fi
11427
11428if test "$wxUSE_DEBUG_GDB" = "yes" ; then
11429 wxUSE_DEBUG_INFO=yes
11430 WXDEBUG="-ggdb"
11431fi
11432
11433if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
11434 cat >> confdefs.h <<\EOF
11435#define WXDEBUG 1
11436EOF
11437
11438 WXDEBUG_DEFINE="-D__WXDEBUG__"
11439else
11440 if test "$wxUSE_GTK" = 1 ; then
11441 WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS"
11442 fi
11443fi
11444
11445if test "$wxUSE_MEM_TRACING" = "yes" ; then
11446 cat >> confdefs.h <<\EOF
11447#define wxUSE_MEMORY_TRACING 1
11448EOF
11449
11450 cat >> confdefs.h <<\EOF
11451#define wxUSE_GLOBAL_MEMORY_OPERATORS 1
47c13eb7
VS
11452EOF
11453
11454 cat >> confdefs.h <<\EOF
11455#define wxUSE_DEBUG_NEW_ALWAYS 1
10f2d63a
VZ
11456EOF
11457
11458 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
11459fi
11460
11461if test "$wxUSE_DMALLOC" = "yes" ; then
11462 DMALLOC_LINK="-ldmalloc"
11463fi
11464
11465PROFILE=
11466if test "$wxUSE_PROFILE" = "yes" ; then
11467 PROFILE="-pg"
11468fi
11469
11470DEP_INFO_FLAGS=
caa2c79b 11471CODE_GEN_FLAGS=
10f2d63a
VZ
11472if test "$GCC" = yes ; then
11473 if test "$wxUSE_NO_RTTI" = "yes" ; then
caa2c79b 11474 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fno-rtti"
10f2d63a
VZ
11475 fi
11476 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
caa2c79b 11477 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fno-exceptions"
10f2d63a
VZ
11478 fi
11479 if test "$wxUSE_PERMISSIVE" = "yes" ; then
caa2c79b 11480 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive"
10f2d63a
VZ
11481 fi
11482 if test "$wxUSE_NO_DEPS" = "no" ; then
11483 DEP_INFO_FLAGS="-MMD"
11484 fi
11485fi
11486
11487
11488CXXFLAGS=`echo "${CXXFLAGS}" | sed "s/\-O.//g" `
11489CFLAGS=`echo "${CFLAGS}" | sed "s/\-O.//g" `
11490if test "$wxUSE_OPTIMISE" = "no" ; then
11491 OPTIMISE=
11492else
11493 if test "$GCC" = yes ; then
11494 OPTIMISE="-O2"
11495 case "${host}" in
11496 i586-*-*|i686-*-* )
11497 OPTIMISE="${OPTIMISE} "
11498 ;;
11499 esac
11500 else
11501 OPTIMISE="-O"
11502 fi
11503fi
11504
11505
11506ZLIB_INCLUDE=
bdad4e7e 11507if test "$wxUSE_ZLIB" = "yes" ; then
10f2d63a
VZ
11508 cat >> confdefs.h <<\EOF
11509#define wxUSE_ZLIB 1
11510EOF
11511
bdad4e7e 11512 ZLIB_INCLUDE="-I\${top_srcdir}/src/zlib"
10f2d63a
VZ
11513fi
11514
11515PNG_INCLUDE=
11516if test "$wxUSE_LIBPNG" = "yes" ; then
11517 cat >> confdefs.h <<\EOF
11518#define wxUSE_LIBPNG 1
11519EOF
11520
11521 PNG_INCLUDE="-I\${top_srcdir}/src/png"
11522 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
11523fi
11524
11525JPEG_INCLUDE=
11526if test "$wxUSE_LIBJPEG" = "yes" ; then
11527 cat >> confdefs.h <<\EOF
11528#define wxUSE_LIBJPEG 1
11529EOF
11530
11531 JPEG_INCLUDE="-I\${top_srcdir}/src/jpeg"
11532fi
11533
c7a2bf27
RR
11534TIFF_INCLUDE=
11535if test "$wxUSE_LIBTIFF" = "yes" ; then
11536 cat >> confdefs.h <<\EOF
11537#define wxUSE_LIBTIFF 1
11538EOF
11539
11540 TIFF_INCLUDE="-I\${top_srcdir}/src/tiff"
11541fi
11542
10f2d63a
VZ
11543if test "$wxUSE_OPENGL" = "yes"; then
11544 ac_safe=`echo "GL/gl.h" | sed 'y%./+-%__p_%'`
11545echo $ac_n "checking for GL/gl.h""... $ac_c" 1>&6
bdad4e7e 11546echo "configure:11547: checking for GL/gl.h" >&5
10f2d63a
VZ
11547if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11548 echo $ac_n "(cached) $ac_c" 1>&6
11549else
11550 cat > conftest.$ac_ext <<EOF
bdad4e7e 11551#line 11552 "configure"
10f2d63a
VZ
11552#include "confdefs.h"
11553#include <GL/gl.h>
11554EOF
11555ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
bdad4e7e 11556{ (eval echo configure:11557: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
11557ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11558if test -z "$ac_err"; then
11559 rm -rf conftest*
11560 eval "ac_cv_header_$ac_safe=yes"
11561else
11562 echo "$ac_err" >&5
11563 echo "configure: failed program was:" >&5
11564 cat conftest.$ac_ext >&5
11565 rm -rf conftest*
11566 eval "ac_cv_header_$ac_safe=no"
11567fi
11568rm -f conftest*
11569fi
11570if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11571 echo "$ac_t""yes" 1>&6
11572
bdad4e7e
RR
11573 cat >> confdefs.h <<\EOF
11574#define wxUSE_OPENGL 1
11575EOF
11576
11577 cat >> confdefs.h <<\EOF
11578#define wxUSE_GLCANVAS 1
11579EOF
11580
11581 echo $ac_n "checking for glFlush in -lGL""... $ac_c" 1>&6
11582echo "configure:11583: checking for glFlush in -lGL" >&5
11583ac_lib_var=`echo GL'_'glFlush | sed 'y%./+-%__p_%'`
10f2d63a
VZ
11584if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11585 echo $ac_n "(cached) $ac_c" 1>&6
11586else
11587 ac_save_LIBS="$LIBS"
bdad4e7e 11588LIBS="-lGL $LIBS"
10f2d63a 11589cat > conftest.$ac_ext <<EOF
bdad4e7e 11590#line 11591 "configure"
10f2d63a
VZ
11591#include "confdefs.h"
11592/* Override any gcc2 internal prototype to avoid an error. */
11593/* We use char because int might match the return type of a gcc2
11594 builtin and then its argument prototype would still apply. */
bdad4e7e 11595char glFlush();
10f2d63a
VZ
11596
11597int main() {
bdad4e7e 11598glFlush()
10f2d63a
VZ
11599; return 0; }
11600EOF
bdad4e7e 11601if { (eval echo configure:11602: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
11602 rm -rf conftest*
11603 eval "ac_cv_lib_$ac_lib_var=yes"
11604else
11605 echo "configure: failed program was:" >&5
11606 cat conftest.$ac_ext >&5
11607 rm -rf conftest*
11608 eval "ac_cv_lib_$ac_lib_var=no"
11609fi
11610rm -f conftest*
11611LIBS="$ac_save_LIBS"
11612
11613fi
11614if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11615 echo "$ac_t""yes" 1>&6
11616
11617 OPENGL_LINK="-lGL"
10f2d63a
VZ
11618
11619else
11620 echo "$ac_t""no" 1>&6
11621
bdad4e7e
RR
11622 echo $ac_n "checking for glFlush in -lMesaGL""... $ac_c" 1>&6
11623echo "configure:11624: checking for glFlush in -lMesaGL" >&5
11624ac_lib_var=`echo MesaGL'_'glFlush | sed 'y%./+-%__p_%'`
10f2d63a
VZ
11625if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11626 echo $ac_n "(cached) $ac_c" 1>&6
11627else
11628 ac_save_LIBS="$LIBS"
11629LIBS="-lMesaGL $LIBS"
11630cat > conftest.$ac_ext <<EOF
bdad4e7e 11631#line 11632 "configure"
10f2d63a
VZ
11632#include "confdefs.h"
11633/* Override any gcc2 internal prototype to avoid an error. */
11634/* We use char because int might match the return type of a gcc2
11635 builtin and then its argument prototype would still apply. */
bdad4e7e 11636char glFlush();
10f2d63a
VZ
11637
11638int main() {
bdad4e7e 11639glFlush()
10f2d63a
VZ
11640; return 0; }
11641EOF
bdad4e7e 11642if { (eval echo configure:11643: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
11643 rm -rf conftest*
11644 eval "ac_cv_lib_$ac_lib_var=yes"
11645else
11646 echo "configure: failed program was:" >&5
11647 cat conftest.$ac_ext >&5
11648 rm -rf conftest*
11649 eval "ac_cv_lib_$ac_lib_var=no"
11650fi
11651rm -f conftest*
11652LIBS="$ac_save_LIBS"
11653
11654fi
11655if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11656 echo "$ac_t""yes" 1>&6
11657
11658 OPENGL_LINK="-lMesaGL"
10f2d63a
VZ
11659
11660else
11661 echo "$ac_t""no" 1>&6
10f2d63a
VZ
11662fi
11663
11664
11665fi
11666
11667
11668else
11669 echo "$ac_t""no" 1>&6
11670wxUSE_OPENGL=0
11671fi
11672
11673fi
11674
11675
11676if test "$wxUSE_GUI" = "yes"; then
11677 cat >> confdefs.h <<\EOF
11678#define wxUSE_GUI 1
11679EOF
11680
11681
11682 else
11683 cat >> confdefs.h <<\EOF
11684#define wxUSE_NOGUI 1
11685EOF
11686
11687fi
11688
11689
11690if test "$wxUSE_UNIX" = "yes"; then
11691 cat >> confdefs.h <<\EOF
11692#define wxUSE_UNIX 1
11693EOF
11694
11695fi
11696
11697
11698if test "$wxUSE_APPLE_IEEE" = "yes"; then
11699 cat >> confdefs.h <<\EOF
11700#define wxUSE_APPLE_IEEE 1
11701EOF
11702
11703fi
11704
10f2d63a
VZ
11705if test "$wxUSE_WAVE" = "yes"; then
11706 cat >> confdefs.h <<\EOF
11707#define wxUSE_WAVE 1
11708EOF
11709
11710fi
11711
11712if test "$wxUSE_FILE" = "yes"; then
11713 cat >> confdefs.h <<\EOF
11714#define wxUSE_FILE 1
11715EOF
11716
11717fi
11718
24528b0c
VS
11719if test "$wxUSE_FILESYSTEM" = "yes"; then
11720 cat >> confdefs.h <<\EOF
11721#define wxUSE_FILESYSTEM 1
11722EOF
11723
11724fi
11725
10f2d63a
VZ
11726if test "$wxUSE_FS_INET" = "yes"; then
11727 cat >> confdefs.h <<\EOF
11728#define wxUSE_FS_INET 1
11729EOF
11730
11731fi
11732
11733if test "$wxUSE_FS_ZIP" = "yes"; then
11734 cat >> confdefs.h <<\EOF
11735#define wxUSE_FS_ZIP 1
11736EOF
11737
11738fi
11739
11740if test "$wxUSE_ZIPSTREAM" = "yes"; then
11741 cat >> confdefs.h <<\EOF
11742#define wxUSE_ZIPSTREAM 1
11743EOF
11744
11745fi
11746
11747if test "$wxUSE_BUSYINFO" = "yes"; then
11748 cat >> confdefs.h <<\EOF
11749#define wxUSE_BUSYINFO 1
11750EOF
11751
11752fi
11753
11754if test "$wxUSE_STD_IOSTREAM" = "yes"; then
11755 cat >> confdefs.h <<\EOF
11756#define wxUSE_STD_IOSTREAM 1
11757EOF
11758
11759fi
11760
11761if test "$wxUSE_TEXTFILE" = "yes"; then
11762 if test "$wxUSE_FILE" != "yes"; then
11763 echo "configure: warning: wxTextFile requires wxFile and it won't be compiled without it" 1>&2
11764 else
11765 cat >> confdefs.h <<\EOF
11766#define wxUSE_TEXTFILE 1
11767EOF
11768
11769 fi
11770fi
11771
11772if test "$wxUSE_CONFIG" = "yes" ; then
11773 if test "$wxUSE_TEXTFILE" != "yes"; then
11774 echo "configure: warning: wxConfig requires wxTextFile and it won't be compiled without it" 1>&2
11775 else
11776 cat >> confdefs.h <<\EOF
11777#define wxUSE_CONFIG 1
11778EOF
11779
11780 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
11781 fi
11782fi
11783
11784if test "$wxUSE_INTL" = "yes" ; then
11785 if test "$wxUSE_FILE" != "yes"; then
11786 echo "configure: warning: I18n code requires wxFile and it won't be compiled without it" 1>&2
11787 else
11788 cat >> confdefs.h <<\EOF
11789#define wxUSE_INTL 1
11790EOF
11791
11792 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
11793 fi
11794fi
11795
11796if test "$wxUSE_LOG" = "yes"; then
11797 cat >> confdefs.h <<\EOF
11798#define wxUSE_LOG 1
11799EOF
11800
11801fi
11802
11803if test "$wxUSE_LONGLONG" = "yes"; then
11804 cat >> confdefs.h <<\EOF
11805#define wxUSE_LONGLONG 1
11806EOF
11807
11808fi
11809
9b33fe02
VZ
11810if test "$wxUSE_PLOT" = "yes"; then
11811 cat >> confdefs.h <<\EOF
11812#define wxUSE_PLOT 1
11813EOF
11814
11815fi
11816
10f2d63a
VZ
11817if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then
11818 cat >> confdefs.h <<\EOF
11819#define wxUSE_DIALUP_MANAGER 1
11820EOF
11821
70f7a477 11822 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
10f2d63a
VZ
11823fi
11824
11825if test "$wxUSE_STREAMS" = "yes" ; then
11826 cat >> confdefs.h <<\EOF
11827#define wxUSE_STREAMS 1
11828EOF
11829
11830fi
11831
10f2d63a 11832
afc31813 11833if test "$wxUSE_TIMEDATE" = "yes"; then
83307f33
VZ
11834 for ac_func in strptime
11835do
11836echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
bdad4e7e 11837echo "configure:11838: checking for $ac_func" >&5
83307f33
VZ
11838if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11839 echo $ac_n "(cached) $ac_c" 1>&6
11840else
11841 cat > conftest.$ac_ext <<EOF
bdad4e7e 11842#line 11843 "configure"
83307f33
VZ
11843#include "confdefs.h"
11844/* System header to define __stub macros and hopefully few prototypes,
11845 which can conflict with char $ac_func(); below. */
11846#include <assert.h>
11847/* Override any gcc2 internal prototype to avoid an error. */
11848/* We use char because int might match the return type of a gcc2
11849 builtin and then its argument prototype would still apply. */
11850char $ac_func();
bdad4e7e 11851char (*f)();
83307f33
VZ
11852
11853int main() {
11854
11855/* The GNU C library defines this for functions which it implements
11856 to always fail with ENOSYS. Some functions are actually named
11857 something starting with __ and the normal name is an alias. */
11858#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11859choke me
11860#else
bdad4e7e 11861f = $ac_func;
83307f33
VZ
11862#endif
11863
11864; return 0; }
11865EOF
bdad4e7e 11866if { (eval echo configure:11867: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
83307f33
VZ
11867 rm -rf conftest*
11868 eval "ac_cv_func_$ac_func=yes"
11869else
11870 echo "configure: failed program was:" >&5
11871 cat conftest.$ac_ext >&5
11872 rm -rf conftest*
11873 eval "ac_cv_func_$ac_func=no"
11874fi
11875rm -f conftest*
11876fi
11877
11878if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11879 echo "$ac_t""yes" 1>&6
11880 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11881 cat >> confdefs.h <<EOF
11882#define $ac_tr_func 1
11883EOF
11884
11885else
11886 echo "$ac_t""no" 1>&6
11887fi
11888done
11889
11890
360d6699 11891 echo $ac_n "checking for timezone variable in <time.h>""... $ac_c" 1>&6
bdad4e7e 11892echo "configure:11893: checking for timezone variable in <time.h>" >&5
360d6699
VZ
11893if eval "test \"`echo '$''{'wx_cv_var_timezone'+set}'`\" = set"; then
11894 echo $ac_n "(cached) $ac_c" 1>&6
11895else
11896
11897 cat > conftest.$ac_ext <<EOF
bdad4e7e 11898#line 11899 "configure"
360d6699
VZ
11899#include "confdefs.h"
11900
11901 #include <time.h>
11902
11903int main() {
11904
11905 int tz;
11906 tz = __timezone;
11907
11908; return 0; }
11909EOF
bdad4e7e 11910if { (eval echo configure:11911: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
360d6699
VZ
11911 rm -rf conftest*
11912
11913 wx_cv_var_timezone=__timezone
11914
11915else
11916 echo "configure: failed program was:" >&5
11917 cat conftest.$ac_ext >&5
11918 rm -rf conftest*
11919
11920 cat > conftest.$ac_ext <<EOF
bdad4e7e 11921#line 11922 "configure"
360d6699
VZ
11922#include "confdefs.h"
11923
11924 #include <time.h>
11925
11926int main() {
11927
11928 int tz;
11929 tz = _timezone;
11930
11931; return 0; }
11932EOF
bdad4e7e 11933if { (eval echo configure:11934: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
360d6699
VZ
11934 rm -rf conftest*
11935
11936 wx_cv_var_timezone=_timezone
11937
5357c8e8
VZ
11938else
11939 echo "configure: failed program was:" >&5
11940 cat conftest.$ac_ext >&5
11941 rm -rf conftest*
11942
11943 cat > conftest.$ac_ext <<EOF
bdad4e7e 11944#line 11945 "configure"
5357c8e8
VZ
11945#include "confdefs.h"
11946
11947 #include <time.h>
11948
11949int main() {
11950
11951 int tz;
11952 tz = timezone;
11953
11954; return 0; }
11955EOF
bdad4e7e 11956if { (eval echo configure:11957: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5357c8e8
VZ
11957 rm -rf conftest*
11958
11959 wx_cv_var_timezone=timezone
11960
360d6699
VZ
11961else
11962 echo "configure: failed program was:" >&5
11963 cat conftest.$ac_ext >&5
11964 rm -rf conftest*
11965 { echo "configure: error: no timezone variable" 1>&2; exit 1; }
5357c8e8
VZ
11966
11967fi
11968rm -f conftest*
11969
360d6699
VZ
11970
11971fi
11972rm -f conftest*
11973
11974
11975fi
11976rm -f conftest*
11977
11978
11979fi
11980
11981echo "$ac_t""$wx_cv_var_timezone" 1>&6
11982
11983 cat >> confdefs.h <<EOF
11984#define WX_TIMEZONE $wx_cv_var_timezone
11985EOF
11986
11987
3fcdd07b 11988 for ac_func in localtime
afc31813
VZ
11989do
11990echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
bdad4e7e 11991echo "configure:11992: checking for $ac_func" >&5
afc31813
VZ
11992if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11993 echo $ac_n "(cached) $ac_c" 1>&6
11994else
11995 cat > conftest.$ac_ext <<EOF
bdad4e7e 11996#line 11997 "configure"
10f2d63a 11997#include "confdefs.h"
afc31813
VZ
11998/* System header to define __stub macros and hopefully few prototypes,
11999 which can conflict with char $ac_func(); below. */
12000#include <assert.h>
12001/* Override any gcc2 internal prototype to avoid an error. */
12002/* We use char because int might match the return type of a gcc2
12003 builtin and then its argument prototype would still apply. */
12004char $ac_func();
bdad4e7e 12005char (*f)();
afc31813 12006
10f2d63a 12007int main() {
afc31813
VZ
12008
12009/* The GNU C library defines this for functions which it implements
12010 to always fail with ENOSYS. Some functions are actually named
12011 something starting with __ and the normal name is an alias. */
12012#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12013choke me
12014#else
bdad4e7e 12015f = $ac_func;
afc31813
VZ
12016#endif
12017
10f2d63a
VZ
12018; return 0; }
12019EOF
bdad4e7e 12020if { (eval echo configure:12021: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a 12021 rm -rf conftest*
afc31813 12022 eval "ac_cv_func_$ac_func=yes"
10f2d63a
VZ
12023else
12024 echo "configure: failed program was:" >&5
12025 cat conftest.$ac_ext >&5
12026 rm -rf conftest*
afc31813
VZ
12027 eval "ac_cv_func_$ac_func=no"
12028fi
12029rm -f conftest*
12030fi
12031
12032if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12033 echo "$ac_t""yes" 1>&6
12034 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12035 cat >> confdefs.h <<EOF
12036#define $ac_tr_func 1
12037EOF
3fcdd07b 12038
afc31813
VZ
12039else
12040 echo "$ac_t""no" 1>&6
12041fi
12042done
12043
12044
0470b1e6
VZ
12045 if test "$ac_cv_func_localtime" = "yes"; then
12046 echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6
bdad4e7e 12047echo "configure:12048: checking for tm_gmtoff in struct tm" >&5
0470b1e6
VZ
12048if eval "test \"`echo '$''{'wx_cv_struct_tm_has_gmtoff'+set}'`\" = set"; then
12049 echo $ac_n "(cached) $ac_c" 1>&6
12050else
12051
12052 cat > conftest.$ac_ext <<EOF
bdad4e7e 12053#line 12054 "configure"
0470b1e6
VZ
12054#include "confdefs.h"
12055
12056 #include <time.h>
12057
12058int main() {
12059
12060 struct tm tm;
12061 tm.tm_gmtoff++;
12062
12063; return 0; }
12064EOF
bdad4e7e 12065if { (eval echo configure:12066: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
0470b1e6
VZ
12066 rm -rf conftest*
12067
f03a98d8 12068 wx_cv_struct_tm_has_gmtoff=yes
0470b1e6
VZ
12069 cat >> confdefs.h <<\EOF
12070#define WX_GMTOFF_IN_TM 1
12071EOF
12072
12073
12074else
12075 echo "configure: failed program was:" >&5
12076 cat conftest.$ac_ext >&5
12077 rm -rf conftest*
12078 wx_cv_struct_tm_has_gmtoff=no
12079
12080fi
12081rm -f conftest*
12082
12083fi
12084
12085echo "$ac_t""$wx_cv_struct_tm_has_gmtoff" 1>&6
3fcdd07b
VZ
12086 fi
12087
12088 for ac_func in gettimeofday ftime
12089do
12090echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
bdad4e7e 12091echo "configure:12092: checking for $ac_func" >&5
3fcdd07b
VZ
12092if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12093 echo $ac_n "(cached) $ac_c" 1>&6
12094else
12095 cat > conftest.$ac_ext <<EOF
bdad4e7e 12096#line 12097 "configure"
3fcdd07b
VZ
12097#include "confdefs.h"
12098/* System header to define __stub macros and hopefully few prototypes,
12099 which can conflict with char $ac_func(); below. */
12100#include <assert.h>
12101/* Override any gcc2 internal prototype to avoid an error. */
12102/* We use char because int might match the return type of a gcc2
12103 builtin and then its argument prototype would still apply. */
12104char $ac_func();
bdad4e7e 12105char (*f)();
3fcdd07b
VZ
12106
12107int main() {
12108
12109/* The GNU C library defines this for functions which it implements
12110 to always fail with ENOSYS. Some functions are actually named
12111 something starting with __ and the normal name is an alias. */
12112#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12113choke me
12114#else
bdad4e7e 12115f = $ac_func;
3fcdd07b
VZ
12116#endif
12117
12118; return 0; }
12119EOF
bdad4e7e 12120if { (eval echo configure:12121: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3fcdd07b
VZ
12121 rm -rf conftest*
12122 eval "ac_cv_func_$ac_func=yes"
12123else
12124 echo "configure: failed program was:" >&5
12125 cat conftest.$ac_ext >&5
12126 rm -rf conftest*
12127 eval "ac_cv_func_$ac_func=no"
12128fi
12129rm -f conftest*
12130fi
12131
12132if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12133 echo "$ac_t""yes" 1>&6
12134 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12135 cat >> confdefs.h <<EOF
12136#define $ac_tr_func 1
12137EOF
12138 break
12139else
12140 echo "$ac_t""no" 1>&6
12141fi
12142done
12143
12144
12145 if test "$ac_cv_func_gettimeofday" = "yes"; then
afc31813 12146 echo $ac_n "checking whether gettimeofday takes two arguments""... $ac_c" 1>&6
bdad4e7e 12147echo "configure:12148: checking whether gettimeofday takes two arguments" >&5
afc31813
VZ
12148if eval "test \"`echo '$''{'wx_cv_func_gettimeofday_has_2_args'+set}'`\" = set"; then
12149 echo $ac_n "(cached) $ac_c" 1>&6
12150else
12151
12152
12153 ac_ext=C
12154# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12155ac_cpp='$CXXCPP $CPPFLAGS'
12156ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12157ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12158cross_compiling=$ac_cv_prog_cxx_cross
12159
12160
12161 cat > conftest.$ac_ext <<EOF
bdad4e7e 12162#line 12163 "configure"
10f2d63a 12163#include "confdefs.h"
afc31813
VZ
12164
12165 #include <sys/time.h>
12166 #include <unistd.h>
12167
10f2d63a 12168int main() {
afc31813
VZ
12169
12170 struct timeval tv;
12171 struct timezone tz;
12172 gettimeofday(&tv, &tz);
12173
10f2d63a
VZ
12174; return 0; }
12175EOF
bdad4e7e 12176if { (eval echo configure:12177: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10f2d63a 12177 rm -rf conftest*
afc31813 12178 wx_cv_func_gettimeofday_has_2_args=yes
10f2d63a
VZ
12179else
12180 echo "configure: failed program was:" >&5
12181 cat conftest.$ac_ext >&5
12182 rm -rf conftest*
12183 cat > conftest.$ac_ext <<EOF
bdad4e7e 12184#line 12185 "configure"
10f2d63a 12185#include "confdefs.h"
afc31813
VZ
12186
12187 #include <sys/time.h>
12188 #include <unistd.h>
12189
10f2d63a 12190int main() {
afc31813
VZ
12191
12192 struct timeval tv;
12193 gettimeofday(&tv);
12194
10f2d63a
VZ
12195; return 0; }
12196EOF
bdad4e7e 12197if { (eval echo configure:12198: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10f2d63a 12198 rm -rf conftest*
afc31813 12199 wx_cv_func_gettimeofday_has_2_args=no
10f2d63a
VZ
12200else
12201 echo "configure: failed program was:" >&5
12202 cat conftest.$ac_ext >&5
12203 rm -rf conftest*
afc31813
VZ
12204 wx_cv_func_gettimeofday_has_2_args=unknown
12205
10f2d63a
VZ
12206fi
12207rm -f conftest*
afc31813 12208
10f2d63a
VZ
12209fi
12210rm -f conftest*
afc31813 12211 ac_ext=c
10f2d63a
VZ
12212# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12213ac_cpp='$CPP $CPPFLAGS'
12214ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12215ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12216cross_compiling=$ac_cv_prog_cc_cross
12217
afc31813
VZ
12218
12219fi
12220
12221echo "$ac_t""$wx_cv_func_gettimeofday_has_2_args" 1>&6
c63c7106 12222
afc31813
VZ
12223 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
12224 cat >> confdefs.h <<\EOF
12225#define WX_GETTIMEOFDAY_NO_TZ 1
12226EOF
12227
12228 fi
12229 fi
12230
12231 cat >> confdefs.h <<\EOF
12232#define wxUSE_TIMEDATE 1
12233EOF
12234
12235 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
12236fi
12237
12238
b089607b
VZ
12239if test "$TOOLKIT" != "MSW"; then
12240
afc31813 12241if test "$wxUSE_SOCKETS" = "yes"; then
c63c7106 12242 echo $ac_n "checking for socket""... $ac_c" 1>&6
bdad4e7e 12243echo "configure:12244: checking for socket" >&5
c63c7106
VZ
12244if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
12245 echo $ac_n "(cached) $ac_c" 1>&6
12246else
12247 cat > conftest.$ac_ext <<EOF
bdad4e7e 12248#line 12249 "configure"
c63c7106
VZ
12249#include "confdefs.h"
12250/* System header to define __stub macros and hopefully few prototypes,
12251 which can conflict with char socket(); below. */
12252#include <assert.h>
12253/* Override any gcc2 internal prototype to avoid an error. */
12254/* We use char because int might match the return type of a gcc2
12255 builtin and then its argument prototype would still apply. */
12256char socket();
bdad4e7e 12257char (*f)();
c63c7106
VZ
12258
12259int main() {
12260
12261/* The GNU C library defines this for functions which it implements
12262 to always fail with ENOSYS. Some functions are actually named
12263 something starting with __ and the normal name is an alias. */
12264#if defined (__stub_socket) || defined (__stub___socket)
12265choke me
12266#else
bdad4e7e 12267f = socket;
c63c7106
VZ
12268#endif
12269
12270; return 0; }
12271EOF
bdad4e7e 12272if { (eval echo configure:12273: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
c63c7106
VZ
12273 rm -rf conftest*
12274 eval "ac_cv_func_socket=yes"
12275else
12276 echo "configure: failed program was:" >&5
12277 cat conftest.$ac_ext >&5
12278 rm -rf conftest*
12279 eval "ac_cv_func_socket=no"
12280fi
12281rm -f conftest*
12282fi
12283
12284if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
12285 echo "$ac_t""yes" 1>&6
12286 :
12287else
12288 echo "$ac_t""no" 1>&6
12289echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
bdad4e7e 12290echo "configure:12291: checking for socket in -lsocket" >&5
c63c7106
VZ
12291ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
12292if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12293 echo $ac_n "(cached) $ac_c" 1>&6
12294else
12295 ac_save_LIBS="$LIBS"
12296LIBS="-lsocket $LIBS"
12297cat > conftest.$ac_ext <<EOF
bdad4e7e 12298#line 12299 "configure"
c63c7106
VZ
12299#include "confdefs.h"
12300/* Override any gcc2 internal prototype to avoid an error. */
12301/* We use char because int might match the return type of a gcc2
12302 builtin and then its argument prototype would still apply. */
12303char socket();
12304
12305int main() {
12306socket()
12307; return 0; }
12308EOF
bdad4e7e 12309if { (eval echo configure:12310: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
c63c7106
VZ
12310 rm -rf conftest*
12311 eval "ac_cv_lib_$ac_lib_var=yes"
12312else
12313 echo "configure: failed program was:" >&5
12314 cat conftest.$ac_ext >&5
12315 rm -rf conftest*
12316 eval "ac_cv_lib_$ac_lib_var=no"
12317fi
12318rm -f conftest*
12319LIBS="$ac_save_LIBS"
12320
12321fi
12322if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12323 echo "$ac_t""yes" 1>&6
12324 INET_LINK="$INET_LINK -lsocket"
c63c7106
VZ
12325else
12326 echo "$ac_t""no" 1>&6
afc31813
VZ
12327
12328 echo "configure: warning: socket library not found - sockets will be disabled" 1>&2
12329 wxUSE_SOCKETS=no
12330
12331
c63c7106
VZ
12332fi
12333
12334
12335fi
12336
10f2d63a
VZ
12337fi
12338
b089607b
VZ
12339fi
12340
afc31813 12341if test "$wxUSE_SOCKETS" = "yes" ; then
51a9faba 12342 echo $ac_n "checking what is the type of the third argument of getsockname""... $ac_c" 1>&6
bdad4e7e 12343echo "configure:12344: checking what is the type of the third argument of getsockname" >&5
51a9faba
VZ
12344if eval "test \"`echo '$''{'wx_cv_type_getsockname3'+set}'`\" = set"; then
12345 echo $ac_n "(cached) $ac_c" 1>&6
12346else
12347
12348
12349 ac_ext=C
afc31813
VZ
12350# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12351ac_cpp='$CXXCPP $CPPFLAGS'
12352ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12353ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12354cross_compiling=$ac_cv_prog_cxx_cross
12355
51a9faba
VZ
12356
12357 cat > conftest.$ac_ext <<EOF
bdad4e7e 12358#line 12359 "configure"
afc31813 12359#include "confdefs.h"
51a9faba 12360
3ace2e6d 12361 #include <sys/types.h>
51a9faba
VZ
12362 #include <sys/socket.h>
12363
afc31813 12364int main() {
51a9faba
VZ
12365
12366 socklen_t len;
12367 getsockname(0, 0, &len);
12368
afc31813
VZ
12369; return 0; }
12370EOF
bdad4e7e 12371if { (eval echo configure:12372: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
afc31813 12372 rm -rf conftest*
51a9faba 12373 wx_cv_type_getsockname3=socklen_t
afc31813
VZ
12374else
12375 echo "configure: failed program was:" >&5
12376 cat conftest.$ac_ext >&5
12377 rm -rf conftest*
12378 cat > conftest.$ac_ext <<EOF
bdad4e7e 12379#line 12380 "configure"
afc31813 12380#include "confdefs.h"
51a9faba 12381
3ace2e6d 12382 #include <sys/types.h>
51a9faba
VZ
12383 #include <sys/socket.h>
12384
afc31813 12385int main() {
51a9faba
VZ
12386
12387 size_t len;
12388 getsockname(0, 0, &len);
12389
afc31813
VZ
12390; return 0; }
12391EOF
bdad4e7e 12392if { (eval echo configure:12393: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
afc31813 12393 rm -rf conftest*
51a9faba 12394 wx_cv_type_getsockname3=size_t
afc31813
VZ
12395else
12396 echo "configure: failed program was:" >&5
12397 cat conftest.$ac_ext >&5
12398 rm -rf conftest*
12399 cat > conftest.$ac_ext <<EOF
bdad4e7e 12400#line 12401 "configure"
afc31813 12401#include "confdefs.h"
51a9faba 12402
3ace2e6d 12403 #include <sys/types.h>
51a9faba
VZ
12404 #include <sys/socket.h>
12405
afc31813 12406int main() {
51a9faba
VZ
12407
12408 int len;
12409 getsockname(0, 0, &len);
12410
afc31813
VZ
12411; return 0; }
12412EOF
bdad4e7e 12413if { (eval echo configure:12414: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
afc31813 12414 rm -rf conftest*
51a9faba 12415 wx_cv_type_getsockname3=int
afc31813
VZ
12416else
12417 echo "configure: failed program was:" >&5
12418 cat conftest.$ac_ext >&5
3ace2e6d
SN
12419 rm -rf conftest*
12420 wx_cv_type_getsockname3=unknown
12421
afc31813
VZ
12422fi
12423rm -f conftest*
51a9faba 12424
afc31813
VZ
12425fi
12426rm -f conftest*
51a9faba 12427
afc31813
VZ
12428fi
12429rm -f conftest*
51a9faba
VZ
12430
12431 ac_ext=c
afc31813
VZ
12432# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12433ac_cpp='$CPP $CPPFLAGS'
12434ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12435ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12436cross_compiling=$ac_cv_prog_cc_cross
12437
51a9faba
VZ
12438
12439fi
12440
12441echo "$ac_t""$wx_cv_type_getsockname3" 1>&6
12442
12443 if test "$wx_cv_type_getsockname3" = "unknown"; then
12444 wxUSE_SOCKETS=no
12445 echo "configure: warning: Couldn't find socklen_t synonym for this system" 1>&2
12446 else
12447 cat >> confdefs.h <<EOF
12448#define SOCKLEN_T $wx_cv_type_getsockname3
12449EOF
12450
12451 fi
12452fi
afc31813 12453
51a9faba 12454if test "$wxUSE_SOCKETS" = "yes" ; then
afc31813
VZ
12455 cat >> confdefs.h <<\EOF
12456#define wxUSE_SOCKETS 1
12457EOF
12458
70f7a477 12459 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
afc31813
VZ
12460 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS protocol"
12461fi
12462
10f2d63a 12463
b089607b
VZ
12464if test "$TOOLKIT" != "MSW"; then
12465
10f2d63a
VZ
12466if test "$wxUSE_JOYSTICK" = 1; then
12467 for ac_hdr in linux/joystick.h
12468do
12469ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12470echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
bdad4e7e 12471echo "configure:12472: checking for $ac_hdr" >&5
10f2d63a
VZ
12472if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12473 echo $ac_n "(cached) $ac_c" 1>&6
12474else
12475 cat > conftest.$ac_ext <<EOF
bdad4e7e 12476#line 12477 "configure"
10f2d63a
VZ
12477#include "confdefs.h"
12478#include <$ac_hdr>
12479EOF
12480ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
bdad4e7e 12481{ (eval echo configure:12482: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
12482ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12483if test -z "$ac_err"; then
12484 rm -rf conftest*
12485 eval "ac_cv_header_$ac_safe=yes"
12486else
12487 echo "$ac_err" >&5
12488 echo "configure: failed program was:" >&5
12489 cat conftest.$ac_ext >&5
12490 rm -rf conftest*
12491 eval "ac_cv_header_$ac_safe=no"
12492fi
12493rm -f conftest*
12494fi
12495if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12496 echo "$ac_t""yes" 1>&6
12497 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12498 cat >> confdefs.h <<EOF
12499#define $ac_tr_hdr 1
12500EOF
12501
12502else
12503 echo "$ac_t""no" 1>&6
12504fi
12505done
12506
b089607b
VZ
12507 if test "$ac_cv_header_linux_joystick_h" != "yes"; then
12508 wxUSE_JOYSTICK=0
12509 echo "configure: warning: Joystick not supported yb this system" 1>&2
12510 fi
12511fi
12512
12513fi
12514
12515if test "$wxUSE_JOYSTICK" = 1; then
10f2d63a
VZ
12516 cat >> confdefs.h <<\EOF
12517#define wxUSE_JOYSTICK 1
12518EOF
12519
12520 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
10f2d63a
VZ
12521fi
12522
12523
b089607b
VZ
12524if test "$TOOLKIT" != "MSW"; then
12525
10f2d63a
VZ
12526HAVE_DL_FUNCS=0
12527HAVE_SHL_FUNCS=0
12528if test "$wxUSE_DYNLIB_CLASS" = "yes"; then
12529 for ac_func in dlopen
12530do
12531echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
bdad4e7e 12532echo "configure:12533: checking for $ac_func" >&5
10f2d63a
VZ
12533if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12534 echo $ac_n "(cached) $ac_c" 1>&6
12535else
12536 cat > conftest.$ac_ext <<EOF
bdad4e7e 12537#line 12538 "configure"
10f2d63a
VZ
12538#include "confdefs.h"
12539/* System header to define __stub macros and hopefully few prototypes,
12540 which can conflict with char $ac_func(); below. */
12541#include <assert.h>
12542/* Override any gcc2 internal prototype to avoid an error. */
12543/* We use char because int might match the return type of a gcc2
12544 builtin and then its argument prototype would still apply. */
12545char $ac_func();
bdad4e7e 12546char (*f)();
10f2d63a
VZ
12547
12548int main() {
12549
12550/* The GNU C library defines this for functions which it implements
12551 to always fail with ENOSYS. Some functions are actually named
12552 something starting with __ and the normal name is an alias. */
12553#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12554choke me
12555#else
bdad4e7e 12556f = $ac_func;
10f2d63a
VZ
12557#endif
12558
12559; return 0; }
12560EOF
bdad4e7e 12561if { (eval echo configure:12562: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
12562 rm -rf conftest*
12563 eval "ac_cv_func_$ac_func=yes"
12564else
12565 echo "configure: failed program was:" >&5
12566 cat conftest.$ac_ext >&5
12567 rm -rf conftest*
12568 eval "ac_cv_func_$ac_func=no"
12569fi
12570rm -f conftest*
12571fi
12572
12573if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12574 echo "$ac_t""yes" 1>&6
12575 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12576 cat >> confdefs.h <<EOF
12577#define $ac_tr_func 1
12578EOF
12579
12580 cat >> confdefs.h <<\EOF
12581#define HAVE_DLOPEN 1
12582EOF
12583
12584 HAVE_DL_FUNCS=1
12585
12586else
12587 echo "$ac_t""no" 1>&6
12588echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
bdad4e7e 12589echo "configure:12590: checking for dlopen in -ldl" >&5
10f2d63a
VZ
12590ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
12591if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12592 echo $ac_n "(cached) $ac_c" 1>&6
12593else
12594 ac_save_LIBS="$LIBS"
12595LIBS="-ldl $LIBS"
12596cat > conftest.$ac_ext <<EOF
bdad4e7e 12597#line 12598 "configure"
10f2d63a
VZ
12598#include "confdefs.h"
12599/* Override any gcc2 internal prototype to avoid an error. */
12600/* We use char because int might match the return type of a gcc2
12601 builtin and then its argument prototype would still apply. */
12602char dlopen();
12603
12604int main() {
12605dlopen()
12606; return 0; }
12607EOF
bdad4e7e 12608if { (eval echo configure:12609: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
12609 rm -rf conftest*
12610 eval "ac_cv_lib_$ac_lib_var=yes"
12611else
12612 echo "configure: failed program was:" >&5
12613 cat conftest.$ac_ext >&5
12614 rm -rf conftest*
12615 eval "ac_cv_lib_$ac_lib_var=no"
12616fi
12617rm -f conftest*
12618LIBS="$ac_save_LIBS"
12619
12620fi
12621if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12622 echo "$ac_t""yes" 1>&6
12623
12624 cat >> confdefs.h <<\EOF
12625#define HAVE_DLOPEN 1
12626EOF
12627
12628 HAVE_DL_FUNCS=1
12629 LIBS="$LIBS -ldl"
12630
12631else
12632 echo "$ac_t""no" 1>&6
12633
12634 for ac_func in shl_load
12635do
12636echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
bdad4e7e 12637echo "configure:12638: checking for $ac_func" >&5
10f2d63a
VZ
12638if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12639 echo $ac_n "(cached) $ac_c" 1>&6
12640else
12641 cat > conftest.$ac_ext <<EOF
bdad4e7e 12642#line 12643 "configure"
10f2d63a
VZ
12643#include "confdefs.h"
12644/* System header to define __stub macros and hopefully few prototypes,
12645 which can conflict with char $ac_func(); below. */
12646#include <assert.h>
12647/* Override any gcc2 internal prototype to avoid an error. */
12648/* We use char because int might match the return type of a gcc2
12649 builtin and then its argument prototype would still apply. */
12650char $ac_func();
bdad4e7e 12651char (*f)();
10f2d63a
VZ
12652
12653int main() {
12654
12655/* The GNU C library defines this for functions which it implements
12656 to always fail with ENOSYS. Some functions are actually named
12657 something starting with __ and the normal name is an alias. */
12658#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12659choke me
12660#else
bdad4e7e 12661f = $ac_func;
10f2d63a
VZ
12662#endif
12663
12664; return 0; }
12665EOF
bdad4e7e 12666if { (eval echo configure:12667: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
12667 rm -rf conftest*
12668 eval "ac_cv_func_$ac_func=yes"
12669else
12670 echo "configure: failed program was:" >&5
12671 cat conftest.$ac_ext >&5
12672 rm -rf conftest*
12673 eval "ac_cv_func_$ac_func=no"
12674fi
12675rm -f conftest*
12676fi
12677
12678if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12679 echo "$ac_t""yes" 1>&6
12680 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12681 cat >> confdefs.h <<EOF
12682#define $ac_tr_func 1
12683EOF
12684
12685 cat >> confdefs.h <<\EOF
12686#define HAVE_SHL_LOAD 1
12687EOF
12688
12689 HAVE_SHL_FUNCS=1
12690
12691else
12692 echo "$ac_t""no" 1>&6
12693fi
12694done
12695
12696
12697fi
12698
12699
12700fi
12701done
12702
12703
12704 if test "$HAVE_DL_FUNCS" = 0; then
12705 if test "$HAVE_SHL_FUNCS" = 0; then
12706 if test "$USE_UNIX" = 1; then
b12915c1 12707 echo "configure: warning: Missing dynamic loading support, several features will be disabled" 1>&2
10f2d63a
VZ
12708 wxUSE_DYNLIB_CLASS=no
12709 else
b12915c1 12710 echo "configure: warning: Assuming wxLibrary class works on this platform" 1>&2
10f2d63a
VZ
12711 fi
12712 fi
12713 fi
12714fi
12715
b089607b
VZ
12716fi
12717
10f2d63a 12718if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
b12915c1 12719 cat >> confdefs.h <<\EOF
10f2d63a
VZ
12720#define wxUSE_DYNLIB_CLASS 1
12721EOF
12722
b12915c1
VZ
12723else
12724 wxUSE_ODBC=no
12725 wxUSE_SERIAL=no
10f2d63a
VZ
12726fi
12727
12728
12729if test "$wxUSE_UNICODE" = "yes" ; then
12730 cat >> confdefs.h <<\EOF
12731#define wxUSE_UNICODE 1
12732EOF
12733
12734fi
12735
12736if test "$wxUSE_WCSRTOMBS" = "yes" ; then
12737 cat >> confdefs.h <<\EOF
12738#define wxUSE_WCSRTOMBS 1
12739EOF
12740
12741fi
12742
12743if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
12744 cat >> confdefs.h <<\EOF
12745#define wxUSE_EXPERIMENTAL_PRINTF 1
12746EOF
12747
12748fi
12749
12750
b12915c1
VZ
12751if test "$wxUSE_SERIAL" = "yes" ; then
12752 cat >> confdefs.h <<\EOF
12753#define wxUSE_SERIAL 1
12754EOF
12755
12756fi
12757
12758
10f2d63a
VZ
12759IODBC_C_SRC=""
12760if test "$wxUSE_ODBC" = "yes" ; then
12761 cat >> confdefs.h <<\EOF
12762#define wxUSE_ODBC 1
12763EOF
12764
12765 WXODBCFLAG="-D_IODBC_"
12766 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
12767 IODBCOBJS="\$(IODBC_OBJS)"
12768else
12769 IODBCOBJS=
12770fi
12771
12772
12773if test "$wxUSE_POSTSCRIPT" = "yes" ; then
12774 cat >> confdefs.h <<\EOF
12775#define wxUSE_POSTSCRIPT 1
12776EOF
12777
12778fi
12779
12780cat >> confdefs.h <<\EOF
12781#define wxUSE_AFM_FOR_POSTSCRIPT 1
12782EOF
12783
12784
12785cat >> confdefs.h <<\EOF
12786#define wxUSE_NORMALIZED_PS_FONTS 1
12787EOF
12788
12789
12790
12791if test "$wxUSE_CONSTRAINTS" = "yes"; then
12792 cat >> confdefs.h <<\EOF
12793#define wxUSE_CONSTRAINTS 1
12794EOF
12795
12796 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
12797fi
12798
12799if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
12800 cat >> confdefs.h <<\EOF
12801#define wxUSE_MDI_ARCHITECTURE 1
12802EOF
12803
12804 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
12805fi
12806
12807if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
12808 cat >> confdefs.h <<\EOF
12809#define wxUSE_DOC_VIEW_ARCHITECTURE 1
12810EOF
12811
12812 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
12813 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
12814 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
12815 fi
12816fi
12817
12818if test "$wxUSE_HELP" = "yes"; then
12819 cat >> confdefs.h <<\EOF
12820#define wxUSE_HELP 1
12821EOF
12822
12823 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
12824fi
12825
12826if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
12827 if test "$wxUSE_CONSTRAINTS" != "yes"; then
12828 echo "configure: warning: Printing support cannot be used without constraints so it won't be compiled without it" 1>&2
12829 else
12830 cat >> confdefs.h <<\EOF
12831#define wxUSE_PRINTING_ARCHITECTURE 1
12832EOF
12833
12834 fi
12835 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
12836fi
12837
12838if test "$wxUSE_PROLOGIO" = "yes" ; then
12839 cat >> confdefs.h <<\EOF
12840#define wxUSE_PROLOGIO 1
12841EOF
12842
12843fi
12844
12845if test "$wxUSE_RESOURCES" = "yes" ; then
12846 if test "$wxUSE_PROLOGIO" = "yes" ; then
12847 cat >> confdefs.h <<\EOF
12848#define wxUSE_RESOURCES 1
12849EOF
12850
12851 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS resource"
12852 else
12853 echo "configure: warning: wxWindows ressource system requires PrologIO and can't be compiled without it." 1>&2
12854 fi
12855fi
12856
12857if test "$wxUSE_X_RESOURCES" = "yes"; then
12858 cat >> confdefs.h <<\EOF
12859#define wxUSE_X_RESOURCES 1
12860EOF
12861
12862fi
12863
12864
12865if test "$wxUSE_IPC" = "yes"; then
12866 cat >> confdefs.h <<\EOF
12867#define wxUSE_IPC 1
12868EOF
12869
12870fi
12871
12872if test "$wxUSE_CLIPBOARD" = "yes"; then
12873 cat >> confdefs.h <<\EOF
12874#define wxUSE_CLIPBOARD 1
12875EOF
12876
12877fi
12878
12879if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
12880 if test "$wxUSE_GTK" = 1; then
12881 if test "$WXGTK12" != 1; then
12882 echo "configure: warning: Drag and drop is only supported under GTK+ 1.2" 1>&2
12883 wxUSE_DRAG_AND_DROP=no
12884 fi
12885 fi
12886
12887 if test "$wxUSE_MOTIF" = 1; then
12888 echo "configure: warning: Drag and drop is not yet supported under Motif" 1>&2
12889 wxUSE_DRAG_AND_DROP=no
12890 fi
12891
12892 if test "$USE_WIN32" = 1; then
12893 for ac_hdr in ole2.h
12894do
12895ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12896echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
bdad4e7e 12897echo "configure:12898: checking for $ac_hdr" >&5
10f2d63a
VZ
12898if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12899 echo $ac_n "(cached) $ac_c" 1>&6
12900else
12901 cat > conftest.$ac_ext <<EOF
bdad4e7e 12902#line 12903 "configure"
10f2d63a
VZ
12903#include "confdefs.h"
12904#include <$ac_hdr>
12905EOF
12906ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
bdad4e7e 12907{ (eval echo configure:12908: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
12908ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12909if test -z "$ac_err"; then
12910 rm -rf conftest*
12911 eval "ac_cv_header_$ac_safe=yes"
12912else
12913 echo "$ac_err" >&5
12914 echo "configure: failed program was:" >&5
12915 cat conftest.$ac_ext >&5
12916 rm -rf conftest*
12917 eval "ac_cv_header_$ac_safe=no"
12918fi
12919rm -f conftest*
12920fi
12921if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12922 echo "$ac_t""yes" 1>&6
12923 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12924 cat >> confdefs.h <<EOF
12925#define $ac_tr_hdr 1
12926EOF
12927
12928else
12929 echo "$ac_t""no" 1>&6
12930fi
12931done
12932
12933 if test "x$HAVE_OLE2_H" = x ; then
12934 echo "configure: warning: Drag and drop disabled because OLE headers not found" 1>&2
12935 wxUSE_DRAG_AND_DROP=no
12936 fi
12937 fi
12938
12939 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
12940 cat >> confdefs.h <<\EOF
12941#define wxUSE_DRAG_AND_DROP 1
12942EOF
12943
12944 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
12945 fi
12946
12947fi
12948
12949if test "$wxUSE_SPLINES" = "yes" ; then
12950 cat >> confdefs.h <<\EOF
12951#define wxUSE_SPLINES 1
12952EOF
12953
12954fi
12955
12956
12957if test "$wxUSE_ACCEL" = "yes"; then
12958 cat >> confdefs.h <<\EOF
12959#define wxUSE_ACCEL 1
12960EOF
12961
12962fi
12963
12964if test "$wxUSE_CARET" = "yes"; then
12965 cat >> confdefs.h <<\EOF
12966#define wxUSE_CARET 1
12967EOF
12968
12969 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
12970fi
12971
12972if test "$wxUSE_COMBOBOX" = "yes"; then
12973 cat >> confdefs.h <<\EOF
12974#define wxUSE_COMBOBOX 1
12975EOF
12976
12977fi
12978
12979if test "$wxUSE_CHOICE" = "yes"; then
12980 cat >> confdefs.h <<\EOF
12981#define wxUSE_CHOICE 1
12982EOF
12983
12984fi
12985
12986if test "$wxUSE_BMPBUTTON" = "yes"; then
12987 cat >> confdefs.h <<\EOF
12988#define wxUSE_BMPBUTTON 1
12989EOF
12990
12991fi
12992
12993if test "$wxUSE_CHECKBOX" = "yes"; then
12994 cat >> confdefs.h <<\EOF
12995#define wxUSE_CHECKBOX 1
12996EOF
12997
12998fi
12999
13000if test "$wxUSE_CHECKLST" = "yes"; then
13001 cat >> confdefs.h <<\EOF
13002#define wxUSE_CHECKLISTBOX 1
13003EOF
13004
13005 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
13006fi
13007
13008if test "$wxUSE_GAUGE" = "yes"; then
13009 cat >> confdefs.h <<\EOF
13010#define wxUSE_GAUGE 1
13011EOF
13012
13013fi
13014
d6a55c4b
VZ
13015if test "$wxUSE_NEW_GRID" = "yes"; then
13016 wxUSE_GRID="yes"
10f2d63a 13017 cat >> confdefs.h <<\EOF
d6a55c4b 13018#define wxUSE_NEW_GRID 1
10f2d63a
VZ
13019EOF
13020
d6a55c4b 13021 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS newgrid"
10f2d63a
VZ
13022fi
13023
d6a55c4b 13024if test "$wxUSE_GRID" = "yes"; then
10f2d63a 13025 cat >> confdefs.h <<\EOF
d6a55c4b 13026#define wxUSE_GRID 1
10f2d63a
VZ
13027EOF
13028
d6a55c4b 13029 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
10f2d63a
VZ
13030fi
13031
13032if test "$wxUSE_IMAGLIST" = "yes"; then
13033 cat >> confdefs.h <<\EOF
13034#define wxUSE_IMAGLIST 1
13035EOF
13036
13037fi
13038
13039if test "$wxUSE_LISTBOX" = "yes"; then
13040 cat >> confdefs.h <<\EOF
13041#define wxUSE_LISTBOX 1
13042EOF
13043
13044fi
13045
13046if test "$wxUSE_LISTCTRL" = "yes"; then
13047 if test "$wxUSE_IMAGLIST" = "yes"; then
13048 cat >> confdefs.h <<\EOF
13049#define wxUSE_LISTCTRL 1
13050EOF
13051
13052 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
13053 else
13054 echo "configure: warning: wxListCtrl requires wxImageList and won't be compiled without it" 1>&2
13055 fi
13056fi
13057
13058if test "$wxUSE_NOTEBOOK" = "yes"; then
13059 cat >> confdefs.h <<\EOF
13060#define wxUSE_NOTEBOOK 1
13061EOF
13062
13063 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
13064fi
13065
13066if test "$wxUSE_RADIOBOX" = "yes"; then
13067 cat >> confdefs.h <<\EOF
13068#define wxUSE_RADIOBOX 1
13069EOF
13070
13071fi
13072
13073if test "$wxUSE_RADIOBTN" = "yes"; then
13074 cat >> confdefs.h <<\EOF
13075#define wxUSE_RADIOBTN 1
13076EOF
13077
13078fi
13079
13080if test "$wxUSE_SASH" = "yes"; then
13081 cat >> confdefs.h <<\EOF
13082#define wxUSE_SASH 1
13083EOF
13084
13085 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
13086fi
13087
13088if test "$wxUSE_SCROLLBAR" = "yes"; then
13089 cat >> confdefs.h <<\EOF
13090#define wxUSE_SCROLLBAR 1
13091EOF
13092
741a9306 13093 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
10f2d63a
VZ
13094fi
13095
13096if test "$wxUSE_SLIDER" = "yes"; then
13097 cat >> confdefs.h <<\EOF
13098#define wxUSE_SLIDER 1
13099EOF
13100
13101fi
13102
13103if test "$wxUSE_SPINBTN" = "yes"; then
13104 cat >> confdefs.h <<\EOF
13105#define wxUSE_SPINBTN 1
13106EOF
13107
13108fi
13109
56cfaa52
RR
13110if test "$wxUSE_SPINCTRL" = "yes"; then
13111 cat >> confdefs.h <<\EOF
13112#define wxUSE_SPINCTRL 1
13113EOF
13114
13115fi
13116
10f2d63a
VZ
13117if test "$wxUSE_SPLITTER" = "yes"; then
13118 cat >> confdefs.h <<\EOF
13119#define wxUSE_SPLITTER 1
13120EOF
13121
13122 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
13123fi
13124
13125if test "$wxUSE_STATBMP" = "yes"; then
13126 cat >> confdefs.h <<\EOF
13127#define wxUSE_STATBMP 1
13128EOF
13129
13130fi
13131
13132if test "$wxUSE_STATBOX" = "yes"; then
13133 cat >> confdefs.h <<\EOF
13134#define wxUSE_STATBOX 1
13135EOF
13136
13137fi
13138
13139if test "$wxUSE_STATLINE" = "yes"; then
13140 if test "$wxUSE_WINE" = 1 ; then
13141 echo "configure: warning: wxStaticLine is not supported under WINE" 1>&2
13142 else
13143 cat >> confdefs.h <<\EOF
13144#define wxUSE_STATLINE 1
13145EOF
13146
13147 fi
13148fi
13149
13150if test "$wxUSE_STATUSBAR" = "yes"; then
13151 cat >> confdefs.h <<\EOF
13152#define wxUSE_STATUSBAR 1
13153EOF
13154
2286341c
VZ
13155
13156 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
10f2d63a
VZ
13157fi
13158
13159if test "$wxUSE_TABDIALOG" = "yes"; then
13160 cat >> confdefs.h <<\EOF
13161#define wxUSE_TAB_DIALOG 1
13162EOF
13163
13164 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab"
13165fi
13166
360d6699
VZ
13167if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
13168 cat >> confdefs.h <<\EOF
13169#define wxUSE_TOOLBAR_SIMPLE 1
13170EOF
13171
13172 wxUSE_TOOLBAR="yes"
13173fi
13174
10f2d63a
VZ
13175if test "$wxUSE_TOOLBAR" = "yes"; then
13176 cat >> confdefs.h <<\EOF
13177#define wxUSE_TOOLBAR 1
13178EOF
13179
360d6699
VZ
13180
13181 if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
13182 wxUSE_TOOLBAR_NATIVE="yes"
13183 fi
13184
10f2d63a
VZ
13185 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
13186fi
13187
360d6699
VZ
13188if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
13189 cat >> confdefs.h <<\EOF
13190#define wxUSE_TOOLBAR_NATIVE 1
13191EOF
13192
13193fi
13194
10f2d63a
VZ
13195if test "$wxUSE_TOOLTIPS" = "yes"; then
13196 if test "$wxUSE_MOTIF" = 1; then
13197 echo "configure: warning: wxTooltip not supported yet under Motif" 1>&2
13198 else
13199 if test "$wxUSE_WINE" = 1; then
13200 echo "configure: warning: wxTooltip not supported under WINE" 1>&2
13201 else
13202 cat >> confdefs.h <<\EOF
13203#define wxUSE_TOOLTIPS 1
13204EOF
13205
13206 fi
13207 fi
13208fi
13209
13210if test "$wxUSE_TREECTRL" = "yes"; then
13211 if test "$wxUSE_IMAGLIST" = "yes"; then
13212 cat >> confdefs.h <<\EOF
13213#define wxUSE_TREECTRL 1
13214EOF
13215
13216 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
13217 else
13218 echo "configure: warning: wxTreeCtrl requires wxImageList and won't be compiled without it" 1>&2
13219 fi
13220fi
13221
13222
13223
13224if test "$wxUSE_METAFILE" = "yes"; then
13225 cat >> confdefs.h <<\EOF
13226#define wxUSE_METAFILE 1
13227EOF
13228
13229fi
13230
13231if test "$wxUSE_DIRDLG" = "yes"; then
13232 if test "$wxUSE_CONSTRAINTS" != "yes"; then
13233 echo "configure: warning: wxDirDialog requires constraints so it won't be compiled without them" 1>&2
13234 else
13235 if test "$wxUSE_TREECTRL" != "yes"; then
13236 echo "configure: warning: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" 1>&2
13237 else
13238 cat >> confdefs.h <<\EOF
13239#define wxUSE_DIRDLG 1
13240EOF
13241
13242 fi
13243 fi
13244fi
13245
13246if test "$wxUSE_TEXTDLG" = "yes"; then
13247 cat >> confdefs.h <<\EOF
13248#define wxUSE_TEXTDLG 1
13249EOF
13250
13251fi
13252
13253if test "$wxUSE_STARTUP_TIPS" = "yes"; then
13254 if test "$wxUSE_CONSTRAINTS" != "yes"; then
13255 echo "configure: warning: Startup tips requires constraints and won't be compiled without them" 1>&2
13256 else
13257 cat >> confdefs.h <<\EOF
13258#define wxUSE_STARTUP_TIPS 1
13259EOF
13260
13261 fi
13262fi
13263
13264if test "$wxUSE_PROGRESSDLG" = "yes"; then
13265 if test "$wxUSE_CONSTRAINTS" != "yes"; then
13266 echo "configure: warning: wxProgressDialog requires constraints so it won't be compiled without them" 1>&2
13267 else
13268 cat >> confdefs.h <<\EOF
13269#define wxUSE_PROGRESSDLG 1
13270EOF
13271
13272 fi
13273fi
13274
13275if test "$wxUSE_MINIFRAME" = "yes"; then
13276 cat >> confdefs.h <<\EOF
13277#define wxUSE_MINIFRAME 1
13278EOF
13279
13280 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
13281fi
13282
13283if test "$wxUSE_HTML" = "yes"; then
13284 cat >> confdefs.h <<\EOF
13285#define wxUSE_HTML 1
13286EOF
13287
13288 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html"
13289 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS html"
13290fi
13291
13292if test "$wxUSE_VALIDATORS" = "yes"; then
13293 cat >> confdefs.h <<\EOF
13294#define wxUSE_VALIDATORS 1
13295EOF
13296
13297 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
13298fi
13299
13300if test "$wxUSE_GIF" = "yes" ; then
13301 cat >> confdefs.h <<\EOF
13302#define wxUSE_GIF 1
13303EOF
13304
13305fi
13306
13307if test "$wxUSE_PCX" = "yes" ; then
13308 cat >> confdefs.h <<\EOF
13309#define wxUSE_PCX 1
13310EOF
13311
13312fi
13313
13314if test "$wxUSE_PNM" = "yes" ; then
13315 cat >> confdefs.h <<\EOF
13316#define wxUSE_PNM 1
13317EOF
13318
13319fi
13320
13321
aaa37c0d
VZ
13322OSINFO=`uname -s -r -m`
13323OSINFO="\"$OSINFO\""
13324cat >> confdefs.h <<EOF
13325#define WXWIN_OS_DESCRIPTION $OSINFO
13326EOF
13327
13328
13329
bdad4e7e 13330GUILIBS="$GUI_TK_LIBRARY $OPENGL_LINK $TOOLKIT_LINK"
10f2d63a 13331
c63c7106 13332EXTRA_LIBS="$LIBS $POSIX4_LINK $INET_LINK $WCHAR_LINK $THREADS_LINK $DMALLOC_LINK $DL_LINK"
10f2d63a
VZ
13333if test "$wxUSE_GUI" = "yes"; then
13334 EXTRA_LIBS="$EXTRA_LIBS $GUILIBS"
13335fi
13336
13337LD_LIBS="\${top_builddir}/lib/${WX_LIBRARY_NAME_STATIC} $EXTRA_LIBS"
13338
c7a2bf27 13339INCLUDES="-I. -I\${top_builddir}/include -I\${top_srcdir}/include $ZLIB_INCLUDE $PNG_INCLUDE $JPEG_INCLUDE $TIFF_INCLUDE $TOOLKIT_INCLUDE"
10f2d63a
VZ
13340
13341if test "$GXX" = yes ; then
13342 CXXWARNINGS="-Wall"
d6a55c4b 13343 fi
10f2d63a
VZ
13344EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE $INCLUDES"
13345
13346CFLAGS=`echo $CFLAGS $EXTRA_CFLAGS | sed 's/ \\+/ /g'`
13347CXXFLAGS=`echo $CXXFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \+/ /g'`
13348
e694c22c
VZ
13349LDFLAGS="$LDFLAGS $PROFILE"
13350
10f2d63a
VZ
13351if test "$wxUSE_GUI" = "yes"; then
13352
bdad4e7e 13353 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS controls dialogs dragimag drawing dynamic \
70f7a477 13354 font fractal image minimal richedit"
b12915c1 13355
88d3a15c 13356 CPPFLAGS="$CPPFLAGS \$(EXTRADEFS) \$(APPEXTRADEFS)"
10f2d63a
VZ
13357else
13358 SAMPLES_SUBDIRS=""
13359fi
13360
ec14dd32
VZ
13361SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
13362
13363
13364
10f2d63a
VZ
13365
13366
13367
13368
13369
13370
13371
13372
13373
13374
13375
13376
13377
13378
13379
13380
13381
13382
13383
13384
13385
13386
13387
13388
13389
13390
13391
13392
13393
13394
13395
13396
13397
13398
13399
13400
13401
13402
13403
13404
13405
13406
13407
13408
13409
13410
13411
13412
13413
13414
13415
13416
1d62a8b4 13417
bdad4e7e
RR
13418
13419
13420
13421
13422
13423
13424
13425
13426
13427
e694c22c 13428
b12915c1 13429
2224580a
VZ
13430
13431
13432
13433
dad6c0ea
VZ
13434
13435
caa2c79b 13436
10f2d63a
VZ
13437
13438
13439echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
bdad4e7e 13440echo "configure:13441: checking whether ${MAKE-make} sets \${MAKE}" >&5
10f2d63a
VZ
13441set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
13442if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
13443 echo $ac_n "(cached) $ac_c" 1>&6
13444else
13445 cat > conftestmake <<\EOF
13446all:
13447 @echo 'ac_maketemp="${MAKE}"'
13448EOF
13449# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
13450eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
13451if test -n "$ac_maketemp"; then
13452 eval ac_cv_prog_make_${ac_make}_set=yes
13453else
13454 eval ac_cv_prog_make_${ac_make}_set=no
13455fi
13456rm -f conftestmake
13457fi
13458if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
13459 echo "$ac_t""yes" 1>&6
13460 SET_MAKE=
13461else
13462 echo "$ac_t""no" 1>&6
13463 SET_MAKE="MAKE=${MAKE-make}"
13464fi
13465
13466
00cf1208
RR
13467if test -d include; then
13468 if test -d include/wx; then
13469 if test -d include/wx/${TOOLKIT_DIR}; then
13470 if test -f include/wx/${TOOLKIT_DIR}/setup.h; then
13471 mv -f include/wx/${TOOLKIT_DIR}/setup.h setup.h
13472 fi
13473 fi
13474 fi
13475fi
13476
10f2d63a
VZ
13477
13478
2224580a 13479if test "$wxUSE_GUI" = "yes"; then
ec90f5e5 13480 wx_cv_path_samplesubdirs=$SAMPLES_SUBDIRS
2224580a
VZ
13481 subdirs="demos samples utils"
13482
13483fi
10f2d63a
VZ
13484
13485trap '' 1 2 15
13486cat > confcache <<\EOF
13487# This file is a shell script that caches the results of configure
13488# tests run on this system so they can be shared between configure
13489# scripts and configure runs. It is not useful on other systems.
13490# If it contains results you don't want to keep, you may remove or edit it.
13491#
13492# By default, configure uses ./config.cache as the cache file,
13493# creating it if it does not exist already. You can give configure
13494# the --cache-file=FILE option to use a different cache file; that is
13495# what configure does when it calls configure scripts in
13496# subdirectories, so they share the cache.
13497# Giving --cache-file=/dev/null disables caching, for debugging configure.
13498# config.status only pays attention to the cache file if you give it the
13499# --recheck option to rerun configure.
13500#
13501EOF
13502# The following way of writing the cache mishandles newlines in values,
13503# but we know of no workaround that is simple, portable, and efficient.
13504# So, don't put newlines in cache variables' values.
13505# Ultrix sh set writes to stderr and can't be redirected directly,
13506# and sets the high bit in the cache file unless we assign to the vars.
13507(set) 2>&1 |
13508 case `(ac_space=' '; set | grep ac_space) 2>&1` in
13509 *ac_space=\ *)
13510 # `set' does not quote correctly, so add quotes (double-quote substitution
13511 # turns \\\\ into \\, and sed turns \\ into \).
13512 sed -n \
13513 -e "s/'/'\\\\''/g" \
13514 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
13515 ;;
13516 *)
13517 # `set' quotes correctly as required by POSIX, so do not add quotes.
13518 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
13519 ;;
13520 esac >> confcache
13521if cmp -s $cache_file confcache; then
13522 :
13523else
13524 if test -w $cache_file; then
13525 echo "updating cache $cache_file"
13526 cat confcache > $cache_file
13527 else
13528 echo "not updating unwritable cache $cache_file"
13529 fi
13530fi
13531rm -f confcache
13532
13533trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
13534
13535test "x$prefix" = xNONE && prefix=$ac_default_prefix
13536# Let make expand exec_prefix.
13537test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13538
13539# Any assignment to VPATH causes Sun make to only execute
13540# the first set of double-colon rules, so remove it if not needed.
13541# If there is a colon in the path, we need to keep it.
13542if test "x$srcdir" = x.; then
13543 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
13544fi
13545
13546trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
13547
13548DEFS=-DHAVE_CONFIG_H
13549
13550# Without the "./", some shells look in PATH for config.status.
13551: ${CONFIG_STATUS=./config.status}
13552
13553echo creating $CONFIG_STATUS
13554rm -f $CONFIG_STATUS
13555cat > $CONFIG_STATUS <<EOF
13556#! /bin/sh
13557# Generated automatically by configure.
13558# Run this file to recreate the current configuration.
13559# This directory was configured as follows,
13560# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13561#
13562# $0 $ac_configure_args
13563#
13564# Compiler output produced by configure, useful for debugging
13565# configure, is in ./config.log if it exists.
13566
13567ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
13568for ac_option
13569do
13570 case "\$ac_option" in
13571 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13572 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
13573 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
13574 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
bdad4e7e 13575 echo "$CONFIG_STATUS generated by autoconf version 2.14"
10f2d63a
VZ
13576 exit 0 ;;
13577 -help | --help | --hel | --he | --h)
13578 echo "\$ac_cs_usage"; exit 0 ;;
13579 *) echo "\$ac_cs_usage"; exit 1 ;;
13580 esac
13581done
13582
13583ac_given_srcdir=$srcdir
13584ac_given_INSTALL="$INSTALL"
13585
13586trap 'rm -fr `echo "
13587 wx-config
13588 src/make.env
13589 src/makeprog.env
13590 src/makelib.env
13591 Makefile
10f2d63a
VZ
13592 setup.h:setup.h.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
13593EOF
13594cat >> $CONFIG_STATUS <<EOF
13595
13596# Protect against being on the right side of a sed subst in config.status.
13597sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
13598 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
13599$ac_vpsub
13600$extrasub
13601s%@SHELL@%$SHELL%g
13602s%@CFLAGS@%$CFLAGS%g
13603s%@CPPFLAGS@%$CPPFLAGS%g
13604s%@CXXFLAGS@%$CXXFLAGS%g
13605s%@FFLAGS@%$FFLAGS%g
13606s%@DEFS@%$DEFS%g
13607s%@LDFLAGS@%$LDFLAGS%g
13608s%@LIBS@%$LIBS%g
13609s%@exec_prefix@%$exec_prefix%g
13610s%@prefix@%$prefix%g
13611s%@program_transform_name@%$program_transform_name%g
13612s%@bindir@%$bindir%g
13613s%@sbindir@%$sbindir%g
13614s%@libexecdir@%$libexecdir%g
13615s%@datadir@%$datadir%g
13616s%@sysconfdir@%$sysconfdir%g
13617s%@sharedstatedir@%$sharedstatedir%g
13618s%@localstatedir@%$localstatedir%g
13619s%@libdir@%$libdir%g
13620s%@includedir@%$includedir%g
13621s%@oldincludedir@%$oldincludedir%g
13622s%@infodir@%$infodir%g
13623s%@mandir@%$mandir%g
7c66a493
VZ
13624s%@host@%$host%g
13625s%@host_alias@%$host_alias%g
13626s%@host_cpu@%$host_cpu%g
13627s%@host_vendor@%$host_vendor%g
13628s%@host_os@%$host_os%g
13629s%@target@%$target%g
13630s%@target_alias@%$target_alias%g
13631s%@target_cpu@%$target_cpu%g
13632s%@target_vendor@%$target_vendor%g
13633s%@target_os@%$target_os%g
13634s%@build@%$build%g
13635s%@build_alias@%$build_alias%g
13636s%@build_cpu@%$build_cpu%g
13637s%@build_vendor@%$build_vendor%g
13638s%@build_os@%$build_os%g
10f2d63a
VZ
13639s%@CC@%$CC%g
13640s%@CPP@%$CPP%g
13641s%@CXX@%$CXX%g
13642s%@CXXCPP@%$CXXCPP%g
13643s%@RANLIB@%$RANLIB%g
13644s%@AR@%$AR%g
13645s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
13646s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
13647s%@INSTALL_DATA@%$INSTALL_DATA%g
13648s%@STRIP@%$STRIP%g
13649s%@YACC@%$YACC%g
13650s%@LEX@%$LEX%g
13651s%@LEXLIB@%$LEXLIB%g
13652s%@LN_S@%$LN_S%g
13653s%@GTK_CONFIG@%$GTK_CONFIG%g
13654s%@GTK_CFLAGS@%$GTK_CFLAGS%g
13655s%@GTK_LIBS@%$GTK_LIBS%g
ab9b9eab
VZ
13656s%@X_CFLAGS@%$X_CFLAGS%g
13657s%@X_PRE_LIBS@%$X_PRE_LIBS%g
13658s%@X_LIBS@%$X_LIBS%g
13659s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
ec14dd32
VZ
13660s%@LEX_STEM@%$LEX_STEM%g
13661s%@PATH_IFS@%$PATH_IFS%g
10f2d63a
VZ
13662s%@WX_MAJOR_VERSION_NUMBER@%$WX_MAJOR_VERSION_NUMBER%g
13663s%@WX_MINOR_VERSION_NUMBER@%$WX_MINOR_VERSION_NUMBER%g
13664s%@WX_RELEASE_NUMBER@%$WX_RELEASE_NUMBER%g
13665s%@WX_LIBRARY_NAME@%$WX_LIBRARY_NAME%g
13666s%@WX_LIBRARY_NAME_STATIC@%$WX_LIBRARY_NAME_STATIC%g
13667s%@WX_LIBRARY_NAME_SHARED@%$WX_LIBRARY_NAME_SHARED%g
13668s%@WX_LIBRARY@%$WX_LIBRARY%g
13669s%@WX_TARGET_LIBRARY@%$WX_TARGET_LIBRARY%g
13670s%@WX_LIBRARY_LINK1@%$WX_LIBRARY_LINK1%g
13671s%@WX_LIBRARY_LINK2@%$WX_LIBRARY_LINK2%g
13672s%@WX_LIBRARY_LINK3@%$WX_LIBRARY_LINK3%g
13673s%@PROGRAM_EXT@%$PROGRAM_EXT%g
bdad4e7e
RR
13674s%@WX_LIBRARY_NAME_GL@%$WX_LIBRARY_NAME_GL%g
13675s%@WX_LIBRARY_NAME_STATIC_GL@%$WX_LIBRARY_NAME_STATIC_GL%g
13676s%@WX_LIBRARY_NAME_SHARED_GL@%$WX_LIBRARY_NAME_SHARED_GL%g
13677s%@WX_LIBRARY_GL@%$WX_LIBRARY_GL%g
13678s%@WX_TARGET_LIBRARY_GL@%$WX_TARGET_LIBRARY_GL%g
13679s%@WX_LIBRARY_LINK1_GL@%$WX_LIBRARY_LINK1_GL%g
13680s%@WX_LIBRARY_LINK2_GL@%$WX_LIBRARY_LINK2_GL%g
13681s%@WX_LIBRARY_LINK3_GL@%$WX_LIBRARY_LINK3_GL%g
10f2d63a
VZ
13682s%@WX_ALL@%$WX_ALL%g
13683s%@WX_ALL_INSTALLED@%$WX_ALL_INSTALLED%g
13684s%@SHARED_LD@%$SHARED_LD%g
13685s%@PIC_FLAG@%$PIC_FLAG%g
13686s%@DEP_INFO_FLAGS@%$DEP_INFO_FLAGS%g
caa2c79b 13687s%@CODE_GEN_FLAGS@%$CODE_GEN_FLAGS%g
1d62a8b4 13688s%@BURNT_LIBRARY_NAME@%$BURNT_LIBRARY_NAME%g
bdad4e7e 13689s%@BURNT_LIBRARY_NAME_GL@%$BURNT_LIBRARY_NAME_GL%g
10f2d63a 13690s%@WXDEBUG_DEFINE@%$WXDEBUG_DEFINE%g
dad6c0ea
VZ
13691s%@USE_GUI@%$USE_GUI%g
13692s%@AFMINSTALL@%$AFMINSTALL%g
10f2d63a
VZ
13693s%@TOOLKIT@%$TOOLKIT%g
13694s%@TOOLKIT_DEF@%$TOOLKIT_DEF%g
13695s%@TOOLKIT_DIR@%$TOOLKIT_DIR%g
13696s%@TOOLKIT_INCLUDE@%$TOOLKIT_INCLUDE%g
13697s%@GUIHEADERS@%$GUIHEADERS%g
13698s%@GUIOBJS@%$GUIOBJS%g
13699s%@COMMONOBJS@%$COMMONOBJS%g
13700s%@GENERICOBJS@%$GENERICOBJS%g
13701s%@GUIDEPS@%$GUIDEPS%g
13702s%@COMMONDEPS@%$COMMONDEPS%g
13703s%@GENERICDEPS@%$GENERICDEPS%g
13704s%@IODBCOBJS@%$IODBCOBJS%g
13705s%@UNIXOBJS@%$UNIXOBJS%g
13706s%@UNIXDEPS@%$UNIXDEPS%g
13707s%@ALL_OBJECTS@%$ALL_OBJECTS%g
13708s%@ALL_DEPFILES@%$ALL_DEPFILES%g
10f2d63a 13709s%@GUIDIST@%$GUIDIST%g
2224580a
VZ
13710s%@PORT_FILES@%$PORT_FILES%g
13711s%@DISTDIR@%$DISTDIR%g
13712s%@RPM_SPEC@%$RPM_SPEC%g
13713s%@RPM_FILES@%$RPM_FILES%g
10f2d63a
VZ
13714s%@SRC_SUBDIRS@%$SRC_SUBDIRS%g
13715s%@INCLUDE_SUBDIRS@%$INCLUDE_SUBDIRS%g
13716s%@UTILS_SUBDIRS@%$UTILS_SUBDIRS%g
13717s%@DOCS_SUBDIRS@%$DOCS_SUBDIRS%g
13718s%@SAMPLES_SUBDIRS@%$SAMPLES_SUBDIRS%g
13719s%@USER_SUBDIRS@%$USER_SUBDIRS%g
13720s%@EXTRA_LIBS@%$EXTRA_LIBS%g
b12915c1 13721s%@EXTRADEFS@%$EXTRADEFS%g
10f2d63a
VZ
13722s%@LD_LIBS@%$LD_LIBS%g
13723s%@SET_MAKE@%$SET_MAKE%g
2224580a 13724s%@subdirs@%$subdirs%g
10f2d63a
VZ
13725
13726CEOF
13727EOF
13728
13729cat >> $CONFIG_STATUS <<\EOF
13730
13731# Split the substitutions into bite-sized pieces for seds with
13732# small command number limits, like on Digital OSF/1 and HP-UX.
13733ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
13734ac_file=1 # Number of current file.
13735ac_beg=1 # First line for current file.
13736ac_end=$ac_max_sed_cmds # Line after last line for current file.
13737ac_more_lines=:
13738ac_sed_cmds=""
13739while $ac_more_lines; do
13740 if test $ac_beg -gt 1; then
13741 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
13742 else
13743 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
13744 fi
13745 if test ! -s conftest.s$ac_file; then
13746 ac_more_lines=false
13747 rm -f conftest.s$ac_file
13748 else
13749 if test -z "$ac_sed_cmds"; then
13750 ac_sed_cmds="sed -f conftest.s$ac_file"
13751 else
13752 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
13753 fi
13754 ac_file=`expr $ac_file + 1`
13755 ac_beg=$ac_end
13756 ac_end=`expr $ac_end + $ac_max_sed_cmds`
13757 fi
13758done
13759if test -z "$ac_sed_cmds"; then
13760 ac_sed_cmds=cat
13761fi
13762EOF
13763
13764cat >> $CONFIG_STATUS <<EOF
13765
13766CONFIG_FILES=\${CONFIG_FILES-"wx-config
13767 src/make.env
13768 src/makeprog.env
13769 src/makelib.env
13770 Makefile
10f2d63a
VZ
13771 "}
13772EOF
13773cat >> $CONFIG_STATUS <<\EOF
13774for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
13775 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13776 case "$ac_file" in
13777 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
13778 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
13779 *) ac_file_in="${ac_file}.in" ;;
13780 esac
13781
13782 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
13783
13784 # Remove last slash and all that follows it. Not all systems have dirname.
13785 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
13786 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
13787 # The file is in a subdirectory.
13788 test ! -d "$ac_dir" && mkdir "$ac_dir"
13789 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
13790 # A "../" for each directory in $ac_dir_suffix.
13791 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
13792 else
13793 ac_dir_suffix= ac_dots=
13794 fi
13795
13796 case "$ac_given_srcdir" in
13797 .) srcdir=.
13798 if test -z "$ac_dots"; then top_srcdir=.
13799 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
13800 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
13801 *) # Relative path.
13802 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
13803 top_srcdir="$ac_dots$ac_given_srcdir" ;;
13804 esac
13805
13806 case "$ac_given_INSTALL" in
13807 [/$]*) INSTALL="$ac_given_INSTALL" ;;
13808 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
13809 esac
13810
13811 echo creating "$ac_file"
13812 rm -f "$ac_file"
13813 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
13814 case "$ac_file" in
13815 *Makefile*) ac_comsub="1i\\
13816# $configure_input" ;;
13817 *) ac_comsub= ;;
13818 esac
13819
13820 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
13821 sed -e "$ac_comsub
13822s%@configure_input@%$configure_input%g
13823s%@srcdir@%$srcdir%g
13824s%@top_srcdir@%$top_srcdir%g
13825s%@INSTALL@%$INSTALL%g
13826" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
13827fi; done
13828rm -f conftest.s*
13829
13830# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
13831# NAME is the cpp macro being defined and VALUE is the value it is being given.
13832#
13833# ac_d sets the value in "#define NAME VALUE" lines.
13834ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
13835ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
13836ac_dC='\3'
13837ac_dD='%g'
13838# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
13839ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
13840ac_uB='\([ ]\)%\1#\2define\3'
13841ac_uC=' '
13842ac_uD='\4%g'
13843# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
13844ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
13845ac_eB='$%\1#\2define\3'
13846ac_eC=' '
13847ac_eD='%g'
13848
13849if test "${CONFIG_HEADERS+set}" != set; then
13850EOF
13851cat >> $CONFIG_STATUS <<EOF
13852 CONFIG_HEADERS="setup.h:setup.h.in"
13853EOF
13854cat >> $CONFIG_STATUS <<\EOF
13855fi
13856for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
13857 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13858 case "$ac_file" in
13859 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
13860 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
13861 *) ac_file_in="${ac_file}.in" ;;
13862 esac
13863
13864 echo creating $ac_file
13865
13866 rm -f conftest.frag conftest.in conftest.out
13867 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
13868 cat $ac_file_inputs > conftest.in
13869
13870EOF
13871
13872# Transform confdefs.h into a sed script conftest.vals that substitutes
13873# the proper values into config.h.in to produce config.h. And first:
13874# Protect against being on the right side of a sed subst in config.status.
13875# Protect against being in an unquoted here document in config.status.
13876rm -f conftest.vals
13877cat > conftest.hdr <<\EOF
13878s/[\\&%]/\\&/g
13879s%[\\$`]%\\&%g
13880s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
13881s%ac_d%ac_u%gp
13882s%ac_u%ac_e%gp
13883EOF
13884sed -n -f conftest.hdr confdefs.h > conftest.vals
13885rm -f conftest.hdr
13886
13887# This sed command replaces #undef with comments. This is necessary, for
13888# example, in the case of _POSIX_SOURCE, which is predefined and required
13889# on some systems where configure will not decide to define it.
13890cat >> conftest.vals <<\EOF
13891s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
13892EOF
13893
13894# Break up conftest.vals because some shells have a limit on
13895# the size of here documents, and old seds have small limits too.
13896
13897rm -f conftest.tail
13898while :
13899do
13900 ac_lines=`grep -c . conftest.vals`
13901 # grep -c gives empty output for an empty file on some AIX systems.
13902 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
13903 # Write a limited-size here document to conftest.frag.
13904 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
13905 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
13906 echo 'CEOF
13907 sed -f conftest.frag conftest.in > conftest.out
13908 rm -f conftest.in
13909 mv conftest.out conftest.in
13910' >> $CONFIG_STATUS
13911 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
13912 rm -f conftest.vals
13913 mv conftest.tail conftest.vals
13914done
13915rm -f conftest.vals
13916
13917cat >> $CONFIG_STATUS <<\EOF
13918 rm -f conftest.frag conftest.h
13919 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
13920 cat conftest.in >> conftest.h
13921 rm -f conftest.in
13922 if cmp -s $ac_file conftest.h 2>/dev/null; then
13923 echo "$ac_file is unchanged"
13924 rm -f conftest.h
13925 else
13926 # Remove last slash and all that follows it. Not all systems have dirname.
13927 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
13928 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
13929 # The file is in a subdirectory.
13930 test ! -d "$ac_dir" && mkdir "$ac_dir"
13931 fi
13932 rm -f $ac_file
13933 mv conftest.h $ac_file
13934 fi
13935fi; done
13936
13937EOF
13938cat >> $CONFIG_STATUS <<EOF
13939
13940 TOOLKIT_DIR="${TOOLKIT_DIR}"
07eb77a6 13941 LN_S="${LN_S}"
10f2d63a
VZ
13942
13943
13944EOF
13945cat >> $CONFIG_STATUS <<\EOF
13946
13947 chmod +x wx-config
07eb77a6
RL
13948 mv wx-config wx${TOOLKIT_DIR}-config
13949 ${LN_S} wx${TOOLKIT_DIR}-config wx-config
00cf1208
RR
13950
13951
13952 if test ! -d lib; then
13953 mkdir lib
13954 fi
13955 if test ! -d lib/wx; then
13956 mkdir lib/wx
13957 fi
13958 if test ! -d lib/wx/include; then
13959 mkdir lib/wx/include
13960 fi
13961 if test ! -d lib/wx/include/wx; then
13962 mkdir lib/wx/include/wx
13963 fi
13964 if test ! -d lib/wx/include/wx/${TOOLKIT_DIR}; then
13965 mkdir lib/wx/include/wx/${TOOLKIT_DIR}
13966 fi
13967 if test -f setup.h; then
13968 cp -f setup.h lib/wx/include/wx/${TOOLKIT_DIR}/setup.h
13969 fi
07eb77a6 13970
00cf1208 13971
10f2d63a
VZ
13972 if test ! -d include; then
13973 mkdir include
13974 fi
13975 if test ! -d include/wx; then
13976 mkdir include/wx
13977 fi
13978 if test ! -d include/wx/${TOOLKIT_DIR}; then
13979 mkdir include/wx/${TOOLKIT_DIR}
13980 fi
afc31813
VZ
13981 if test -f setup.h; then
13982 mv -f setup.h include/wx/${TOOLKIT_DIR}/setup.h
13983 fi
00cf1208 13984
10f2d63a
VZ
13985
13986exit 0
13987EOF
13988chmod +x $CONFIG_STATUS
13989rm -fr confdefs* $ac_clean_files
13990test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
13991
2224580a
VZ
13992if test "$no_recursion" != yes; then
13993
13994 # Remove --cache-file and --srcdir arguments so they do not pile up.
13995 ac_sub_configure_args=
13996 ac_prev=
13997 for ac_arg in $ac_configure_args; do
13998 if test -n "$ac_prev"; then
13999 ac_prev=
14000 continue
14001 fi
14002 case "$ac_arg" in
14003 -cache-file | --cache-file | --cache-fil | --cache-fi \
14004 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
14005 ac_prev=cache_file ;;
14006 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
14007 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
14008 ;;
14009 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
14010 ac_prev=srcdir ;;
14011 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
14012 ;;
14013 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
14014 esac
14015 done
14016
14017 for ac_config_dir in demos samples utils; do
14018
14019 # Do not complain, so a configure script can configure whichever
14020 # parts of a large source tree are present.
14021 if test ! -d $srcdir/$ac_config_dir; then
14022 continue
14023 fi
14024
14025 echo configuring in $ac_config_dir
14026
14027 case "$srcdir" in
14028 .) ;;
14029 *)
14030 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
14031 else
14032 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
14033 fi
14034 ;;
14035 esac
14036
14037 ac_popdir=`pwd`
14038 cd $ac_config_dir
14039
14040 # A "../" for each directory in /$ac_config_dir.
14041 ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
14042
14043 case "$srcdir" in
14044 .) # No --srcdir option. We are building in place.
14045 ac_sub_srcdir=$srcdir ;;
14046 /*) # Absolute path.
14047 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
14048 *) # Relative path.
14049 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
14050 esac
14051
14052 # Check for guested configure; otherwise get Cygnus style configure.
14053 if test -f $ac_sub_srcdir/configure; then
14054 ac_sub_configure=$ac_sub_srcdir/configure
14055 elif test -f $ac_sub_srcdir/configure.in; then
14056 ac_sub_configure=$ac_configure
14057 else
14058 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
14059 ac_sub_configure=
14060 fi
14061
14062 # The recursion is here.
14063 if test -n "$ac_sub_configure"; then
14064
14065 # Make the cache file name correct relative to the subdirectory.
14066 case "$cache_file" in
14067 /*) ac_sub_cache_file=$cache_file ;;
14068 *) # Relative path.
14069 ac_sub_cache_file="$ac_dots$cache_file" ;;
14070 esac
14071 case "$ac_given_INSTALL" in
14072 [/$]*) INSTALL="$ac_given_INSTALL" ;;
14073 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
14074 esac
14075
14076 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
14077 # The eval makes quoting arguments work.
14078 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
14079 then :
14080 else
14081 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
14082 fi
14083 fi
14084
14085 cd $ac_popdir
14086 done
14087fi
14088
10f2d63a 14089