]> git.saurik.com Git - wxWidgets.git/blame - configure
Fixed apparent typo (int->wxWindowID)
[wxWidgets.git] / configure
CommitLineData
10f2d63a
VZ
1#! /bin/sh
2
3# From configure.in Id: configure.in
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
10f2d63a 36
422107f9
VZ
37
38
10f2d63a
VZ
39
40
41
42# Guess values for system-dependent variables and create Makefiles.
c661ecca 43# Generated automatically using autoconf version 2.14
10f2d63a
VZ
44# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
45#
46# This configure script is free software; the Free Software Foundation
47# gives unlimited permission to copy, distribute and modify it.
48
49# Defaults:
50ac_help=
51ac_default_prefix=/usr/local
52# Any additions from configure.in:
53ac_help="$ac_help
54--enable-gui use GUI classes"
55ac_help="$ac_help
56 --with-gtk use GTK+"
57ac_help="$ac_help
58 --with-motif use Motif/Lesstif"
59ac_help="$ac_help
60 --with-wine use WINE"
61ac_help="$ac_help
62 --with-cygwin use Cygwin for MS-Windows"
63ac_help="$ac_help
64 --with-mingw use GCC Minimal MS-Windows"
e07802fc
VZ
65ac_help="$ac_help
66 --with-pm use OS/2 Presentation Manager"
10f2d63a
VZ
67ac_help="$ac_help
68 --with-gtk-prefix=PFX Prefix where GTK is installed"
69ac_help="$ac_help
70 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed"
71ac_help="$ac_help
10f2d63a
VZ
72--with-libpng use libpng (PNG image format)"
73ac_help="$ac_help
74--with-libjpeg use libjpeg (JPEG file format)"
75ac_help="$ac_help
c7a2bf27
RR
76--with-libtiff use libtiff (TIFF file format)"
77ac_help="$ac_help
10f2d63a
VZ
78--with-opengl use OpenGL (or Mesa)"
79ac_help="$ac_help
b12915c1
VZ
80--with-dmalloc use dmalloc library (www.letters.com/dmalloc)"
81ac_help="$ac_help
82--with-zlib use zlib for LZW compression"
83ac_help="$ac_help
10f2d63a
VZ
84--with-odbc use the IODBC and wxODBC classes"
85ac_help="$ac_help
86--enable-shared create shared library code"
87ac_help="$ac_help
00cf1208
RR
88--enable-burnt_name create set name in shared library "
89ac_help="$ac_help
10f2d63a
VZ
90--enable-optimise create optimised code"
91ac_help="$ac_help
92--enable-debug same as debug_flag and debug_info"
93ac_help="$ac_help
94--enable-debug_flag set __WXDEBUG__ flag (recommended for developers!)"
95ac_help="$ac_help
96--enable-debug_info create code with debugging information"
97ac_help="$ac_help
98--enable-debug_gdb create code with extra GDB debugging information"
99ac_help="$ac_help
100--enable-debug_cntxt use wxDebugContext"
101ac_help="$ac_help
102--enable-mem_tracing create code with memory tracing"
103ac_help="$ac_help
104--enable-profile create code with profiling information"
105ac_help="$ac_help
106--enable-no_rtti create code without RTTI information"
107ac_help="$ac_help
108--enable-no_exceptions create code without exceptions information"
109ac_help="$ac_help
110--enable-permissive compile code disregarding strict ANSI"
111ac_help="$ac_help
112--enable-no_deps create code without dependency information"
113ac_help="$ac_help
114--enable-intl use internationalization system"
115ac_help="$ac_help
116--enable-config use wxConfig (and derived) classes"
117ac_help="$ac_help
118--enable-sockets use socket/network classes"
119ac_help="$ac_help
120--enable-dialupman use dialup network classes"
121ac_help="$ac_help
122--enable-ipc use interprocess communication (wxSocket etc.)"
123ac_help="$ac_help
124--enable-apple_ieee use the Apple IEEE codec"
125ac_help="$ac_help
126--enable-timedate use date/time classes"
127ac_help="$ac_help
128--enable-wave use wxWave class"
129ac_help="$ac_help
130--enable-fraction use wxFraction class"
131ac_help="$ac_help
132--enable-dynlib use wxLibrary class for DLL loading"
133ac_help="$ac_help
134--enable-longlong use wxLongLong class"
135ac_help="$ac_help
136--enable-log use logging system"
137ac_help="$ac_help
138--enable-streams use wxStream etc classes"
139ac_help="$ac_help
140--enable-file use wxFile classes"
141ac_help="$ac_help
142--enable-textfile use wxTextFile classes"
143ac_help="$ac_help
144--enable-unicode compile wxString with Unicode support"
145ac_help="$ac_help
146--enable-wcsrtombs use wcsrtombs instead of buggy (GNU libc1/Linux libc5) wcstombs"
147ac_help="$ac_help
148--enable-wxprintfv use wxWindows implementation of vprintf()"
149ac_help="$ac_help
150--enable-joystick compile in joystick support (Linux only)"
151ac_help="$ac_help
152--enable-std_iostreams use standard C++ stream classes"
153ac_help="$ac_help
24528b0c
VS
154--enable-filesystem use virtual file systems classes"
155ac_help="$ac_help
10f2d63a
VZ
156--enable-fs_inet use virtual HTTP/FTP filesystems"
157ac_help="$ac_help
158--enable-fs_zip use virtual ZIP filesystems"
159ac_help="$ac_help
160--enable-zipstream use wxZipInputStream"
161ac_help="$ac_help
162--enable-threads use threads"
163ac_help="$ac_help
164--enable-serial use class serialization"
165ac_help="$ac_help
166--enable-docview use document view architecture"
167ac_help="$ac_help
168--enable-help use help (using external browser at present)"
169ac_help="$ac_help
170--enable-constraints use layout-constraints system"
171ac_help="$ac_help
172--enable-printarch use printing architecture"
173ac_help="$ac_help
174--enable-mdi use multiple document interface architecture"
175ac_help="$ac_help
176--enable-postscript use wxPostscriptDC device context (default for gtk+)"
177ac_help="$ac_help
178--enable-prologio use Prolog IO library"
179ac_help="$ac_help
180--enable-resources use wxWindows resources"
181ac_help="$ac_help
182--enable-xresources use X resources for save (default for gtk+)"
183ac_help="$ac_help
184--enable-clipboard use wxClipboard classes"
185ac_help="$ac_help
186--enable-dnd use Drag'n'Drop classes"
187ac_help="$ac_help
188--enable-wxtree make wxTree library"
189ac_help="$ac_help
190--enable-controls use all usual controls"
191ac_help="$ac_help
192--enable-accel use accelerators"
193ac_help="$ac_help
194--enable-caret use wxCaret class"
195ac_help="$ac_help
196--enable-bmpbutton use wxBitmapButton class"
197ac_help="$ac_help
198--enable-checkbox use wxCheckBox class"
199ac_help="$ac_help
200--enable-checklst use wxCheckListBox (listbox with checkboxes) class"
201ac_help="$ac_help
202--enable-choice use wxChoice class"
203ac_help="$ac_help
204--enable-combobox use wxComboBox classes"
205ac_help="$ac_help
206--enable-gauge use wxGauge class"
207ac_help="$ac_help
208--enable-grid use wxGrid class"
209ac_help="$ac_help
210--enable-newgrid use new wxGrid class"
211ac_help="$ac_help
212--enable-imaglist use wxImageList class"
213ac_help="$ac_help
214--enable-listbox use wxListBox class"
215ac_help="$ac_help
216--enable-listctrl use wxListCtrl class"
217ac_help="$ac_help
218--enable-notebook use wxNotebook class"
219ac_help="$ac_help
220--enable-radiobox use wxRadioBox class"
221ac_help="$ac_help
222--enable-radiobtn use wxRadioButton class"
223ac_help="$ac_help
224--enable-sash use wxSashWindow class"
225ac_help="$ac_help
226--enable-scrollbar use wxScrollBar class and scrollable windows"
227ac_help="$ac_help
228--enable-slider use wxSlider class"
229ac_help="$ac_help
230--enable-spinbtn use wxSpinButton class"
231ac_help="$ac_help
56cfaa52
RR
232--enable-spinctrl use wxSpinCtrl class"
233ac_help="$ac_help
10f2d63a
VZ
234--enable-splitter use wxSplitterWindow class"
235ac_help="$ac_help
236--enable-statbmp use wxStaticBitmap class"
237ac_help="$ac_help
238--enable-statbox use wxStaticBox class"
239ac_help="$ac_help
240--enable-statline use wxStaticLine class"
241ac_help="$ac_help
242--enable-statusbar use wxStatusBar class"
243ac_help="$ac_help
244--enable-tabdialog use wxTabControl class"
245ac_help="$ac_help
246--enable-toolbar use wxToolBar class"
247ac_help="$ac_help
360d6699
VZ
248--enable-tbarnative use native wxToolBar class"
249ac_help="$ac_help
250--enable-tbarsmpl use wxToolBarSimple class"
251ac_help="$ac_help
10f2d63a
VZ
252--enable-treectrl use wxTreeCtrl class"
253ac_help="$ac_help
254--enable-commondlg use common dialogs (wxDirDialog, wxProgressDialog, wxTextDialog, ...)"
255ac_help="$ac_help
256--enable-dirdlg use wxDirDialog"
257ac_help="$ac_help
258--enable-textdlg use wxTextDialog"
259ac_help="$ac_help
260--enable-tipdlg use startup tips"
261ac_help="$ac_help
262--enable-progressdlg use wxProgressDialog"
263ac_help="$ac_help
264--enable-miniframe use wxMiniFrame class"
265ac_help="$ac_help
266--enable-html use wxHTML sub-library"
267ac_help="$ac_help
268--enable-tooltips use wxToolTip class"
269ac_help="$ac_help
270--enable-splines use spline drawing code"
271ac_help="$ac_help
272--enable-validators use wxValidator and derived classes"
273ac_help="$ac_help
274--enable-busyinfo use wxBusyInfo"
275ac_help="$ac_help
9b33fe02
VZ
276--enable-plot use wxPlot"
277ac_help="$ac_help
10f2d63a
VZ
278--enable-gif use gif images (GIF file format)"
279ac_help="$ac_help
280--enable-pcx use pcx images (PCX file format)"
281ac_help="$ac_help
282--enable-pnm use pnm images (PNM file format)"
ab9b9eab
VZ
283ac_help="$ac_help
284 --with-x use the X Window System"
10f2d63a
VZ
285
286# Initialize some variables set by options.
287# The variables have the same names as the options, with
288# dashes changed to underlines.
289build=NONE
290cache_file=./config.cache
291exec_prefix=NONE
292host=NONE
293no_create=
294nonopt=NONE
295no_recursion=
296prefix=NONE
297program_prefix=NONE
298program_suffix=NONE
299program_transform_name=s,x,x,
300silent=
301site=
302srcdir=
303target=NONE
304verbose=
305x_includes=NONE
306x_libraries=NONE
307bindir='${exec_prefix}/bin'
308sbindir='${exec_prefix}/sbin'
309libexecdir='${exec_prefix}/libexec'
310datadir='${prefix}/share'
311sysconfdir='${prefix}/etc'
312sharedstatedir='${prefix}/com'
313localstatedir='${prefix}/var'
314libdir='${exec_prefix}/lib'
315includedir='${prefix}/include'
316oldincludedir='/usr/include'
317infodir='${prefix}/info'
318mandir='${prefix}/man'
319
320# Initialize some other variables.
321subdirs=
322MFLAGS= MAKEFLAGS=
323SHELL=${CONFIG_SHELL-/bin/sh}
324# Maximum number of lines to put in a shell here document.
325ac_max_here_lines=12
326
327ac_prev=
328for ac_option
329do
330
331 # If the previous option needs an argument, assign it.
332 if test -n "$ac_prev"; then
333 eval "$ac_prev=\$ac_option"
334 ac_prev=
335 continue
336 fi
337
338 case "$ac_option" in
339 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
340 *) ac_optarg= ;;
341 esac
342
343 # Accept the important Cygnus configure options, so we can diagnose typos.
344
345 case "$ac_option" in
346
347 -bindir | --bindir | --bindi | --bind | --bin | --bi)
348 ac_prev=bindir ;;
349 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
350 bindir="$ac_optarg" ;;
351
352 -build | --build | --buil | --bui | --bu)
353 ac_prev=build ;;
354 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
355 build="$ac_optarg" ;;
356
357 -cache-file | --cache-file | --cache-fil | --cache-fi \
358 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
359 ac_prev=cache_file ;;
360 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
361 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
362 cache_file="$ac_optarg" ;;
363
364 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
365 ac_prev=datadir ;;
366 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
367 | --da=*)
368 datadir="$ac_optarg" ;;
369
370 -disable-* | --disable-*)
371 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
372 # Reject names that are not valid shell variable names.
373 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
374 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
375 fi
376 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
377 eval "enable_${ac_feature}=no" ;;
378
379 -enable-* | --enable-*)
380 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
381 # Reject names that are not valid shell variable names.
382 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
383 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
384 fi
385 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
386 case "$ac_option" in
387 *=*) ;;
388 *) ac_optarg=yes ;;
389 esac
390 eval "enable_${ac_feature}='$ac_optarg'" ;;
391
392 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
393 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
394 | --exec | --exe | --ex)
395 ac_prev=exec_prefix ;;
396 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
397 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
398 | --exec=* | --exe=* | --ex=*)
399 exec_prefix="$ac_optarg" ;;
400
401 -gas | --gas | --ga | --g)
402 # Obsolete; use --with-gas.
403 with_gas=yes ;;
404
405 -help | --help | --hel | --he)
406 # Omit some internal or obsolete options to make the list less imposing.
407 # This message is too long to be a string in the A/UX 3.1 sh.
408 cat << EOF
409Usage: configure [options] [host]
410Options: [defaults in brackets after descriptions]
411Configuration:
412 --cache-file=FILE cache test results in FILE
413 --help print this message
414 --no-create do not create output files
415 --quiet, --silent do not print \`checking...' messages
416 --version print the version of autoconf that created configure
417Directory and file names:
418 --prefix=PREFIX install architecture-independent files in PREFIX
419 [$ac_default_prefix]
420 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
421 [same as prefix]
422 --bindir=DIR user executables in DIR [EPREFIX/bin]
423 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
424 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
425 --datadir=DIR read-only architecture-independent data in DIR
426 [PREFIX/share]
427 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
428 --sharedstatedir=DIR modifiable architecture-independent data in DIR
429 [PREFIX/com]
430 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
431 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
432 --includedir=DIR C header files in DIR [PREFIX/include]
433 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
434 --infodir=DIR info documentation in DIR [PREFIX/info]
435 --mandir=DIR man documentation in DIR [PREFIX/man]
436 --srcdir=DIR find the sources in DIR [configure dir or ..]
437 --program-prefix=PREFIX prepend PREFIX to installed program names
438 --program-suffix=SUFFIX append SUFFIX to installed program names
439 --program-transform-name=PROGRAM
440 run sed PROGRAM on installed program names
441EOF
442 cat << EOF
443Host type:
444 --build=BUILD configure for building on BUILD [BUILD=HOST]
445 --host=HOST configure for HOST [guessed]
446 --target=TARGET configure for TARGET [TARGET=HOST]
447Features and packages:
448 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
449 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
450 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
451 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
452 --x-includes=DIR X include files are in DIR
453 --x-libraries=DIR X library files are in DIR
454EOF
455 if test -n "$ac_help"; then
456 echo "--enable and --with options recognized:$ac_help"
457 fi
458 exit 0 ;;
459
460 -host | --host | --hos | --ho)
461 ac_prev=host ;;
462 -host=* | --host=* | --hos=* | --ho=*)
463 host="$ac_optarg" ;;
464
465 -includedir | --includedir | --includedi | --included | --include \
466 | --includ | --inclu | --incl | --inc)
467 ac_prev=includedir ;;
468 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
469 | --includ=* | --inclu=* | --incl=* | --inc=*)
470 includedir="$ac_optarg" ;;
471
472 -infodir | --infodir | --infodi | --infod | --info | --inf)
473 ac_prev=infodir ;;
474 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
475 infodir="$ac_optarg" ;;
476
477 -libdir | --libdir | --libdi | --libd)
478 ac_prev=libdir ;;
479 -libdir=* | --libdir=* | --libdi=* | --libd=*)
480 libdir="$ac_optarg" ;;
481
482 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
483 | --libexe | --libex | --libe)
484 ac_prev=libexecdir ;;
485 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
486 | --libexe=* | --libex=* | --libe=*)
487 libexecdir="$ac_optarg" ;;
488
489 -localstatedir | --localstatedir | --localstatedi | --localstated \
490 | --localstate | --localstat | --localsta | --localst \
491 | --locals | --local | --loca | --loc | --lo)
492 ac_prev=localstatedir ;;
493 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
494 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
495 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
496 localstatedir="$ac_optarg" ;;
497
498 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
499 ac_prev=mandir ;;
500 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
501 mandir="$ac_optarg" ;;
502
503 -nfp | --nfp | --nf)
504 # Obsolete; use --without-fp.
505 with_fp=no ;;
506
507 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
508 | --no-cr | --no-c)
509 no_create=yes ;;
510
511 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
512 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
513 no_recursion=yes ;;
514
515 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
516 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
517 | --oldin | --oldi | --old | --ol | --o)
518 ac_prev=oldincludedir ;;
519 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
520 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
521 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
522 oldincludedir="$ac_optarg" ;;
523
524 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
525 ac_prev=prefix ;;
526 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
527 prefix="$ac_optarg" ;;
528
529 -program-prefix | --program-prefix | --program-prefi | --program-pref \
530 | --program-pre | --program-pr | --program-p)
531 ac_prev=program_prefix ;;
532 -program-prefix=* | --program-prefix=* | --program-prefi=* \
533 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
534 program_prefix="$ac_optarg" ;;
535
536 -program-suffix | --program-suffix | --program-suffi | --program-suff \
537 | --program-suf | --program-su | --program-s)
538 ac_prev=program_suffix ;;
539 -program-suffix=* | --program-suffix=* | --program-suffi=* \
540 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
541 program_suffix="$ac_optarg" ;;
542
543 -program-transform-name | --program-transform-name \
544 | --program-transform-nam | --program-transform-na \
545 | --program-transform-n | --program-transform- \
546 | --program-transform | --program-transfor \
547 | --program-transfo | --program-transf \
548 | --program-trans | --program-tran \
549 | --progr-tra | --program-tr | --program-t)
550 ac_prev=program_transform_name ;;
551 -program-transform-name=* | --program-transform-name=* \
552 | --program-transform-nam=* | --program-transform-na=* \
553 | --program-transform-n=* | --program-transform-=* \
554 | --program-transform=* | --program-transfor=* \
555 | --program-transfo=* | --program-transf=* \
556 | --program-trans=* | --program-tran=* \
557 | --progr-tra=* | --program-tr=* | --program-t=*)
558 program_transform_name="$ac_optarg" ;;
559
560 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
561 | -silent | --silent | --silen | --sile | --sil)
562 silent=yes ;;
563
564 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
565 ac_prev=sbindir ;;
566 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
567 | --sbi=* | --sb=*)
568 sbindir="$ac_optarg" ;;
569
570 -sharedstatedir | --sharedstatedir | --sharedstatedi \
571 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
572 | --sharedst | --shareds | --shared | --share | --shar \
573 | --sha | --sh)
574 ac_prev=sharedstatedir ;;
575 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
576 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
577 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
578 | --sha=* | --sh=*)
579 sharedstatedir="$ac_optarg" ;;
580
581 -site | --site | --sit)
582 ac_prev=site ;;
583 -site=* | --site=* | --sit=*)
584 site="$ac_optarg" ;;
585
586 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
587 ac_prev=srcdir ;;
588 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
589 srcdir="$ac_optarg" ;;
590
591 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
592 | --syscon | --sysco | --sysc | --sys | --sy)
593 ac_prev=sysconfdir ;;
594 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
595 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
596 sysconfdir="$ac_optarg" ;;
597
598 -target | --target | --targe | --targ | --tar | --ta | --t)
599 ac_prev=target ;;
600 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
601 target="$ac_optarg" ;;
602
603 -v | -verbose | --verbose | --verbos | --verbo | --verb)
604 verbose=yes ;;
605
606 -version | --version | --versio | --versi | --vers)
c661ecca 607 echo "configure generated by autoconf version 2.14"
10f2d63a
VZ
608 exit 0 ;;
609
610 -with-* | --with-*)
611 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
612 # Reject names that are not valid shell variable names.
613 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
614 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
615 fi
616 ac_package=`echo $ac_package| sed 's/-/_/g'`
617 case "$ac_option" in
618 *=*) ;;
619 *) ac_optarg=yes ;;
620 esac
621 eval "with_${ac_package}='$ac_optarg'" ;;
622
623 -without-* | --without-*)
624 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
625 # Reject names that are not valid shell variable names.
626 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
627 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
628 fi
629 ac_package=`echo $ac_package| sed 's/-/_/g'`
630 eval "with_${ac_package}=no" ;;
631
632 --x)
633 # Obsolete; use --with-x.
634 with_x=yes ;;
635
636 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
637 | --x-incl | --x-inc | --x-in | --x-i)
638 ac_prev=x_includes ;;
639 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
640 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
641 x_includes="$ac_optarg" ;;
642
643 -x-libraries | --x-libraries | --x-librarie | --x-librari \
644 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
645 ac_prev=x_libraries ;;
646 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
647 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
648 x_libraries="$ac_optarg" ;;
649
650 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
651 ;;
652
653 *)
654 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
655 echo "configure: warning: $ac_option: invalid host type" 1>&2
656 fi
657 if test "x$nonopt" != xNONE; then
658 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
659 fi
660 nonopt="$ac_option"
661 ;;
662
663 esac
664done
665
666if test -n "$ac_prev"; then
667 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
668fi
669
670trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
671
672# File descriptor usage:
673# 0 standard input
674# 1 file creation
675# 2 errors and warnings
676# 3 some systems may open it to /dev/tty
677# 4 used on the Kubota Titan
678# 6 checking for... messages and results
679# 5 compiler messages saved in config.log
680if test "$silent" = yes; then
681 exec 6>/dev/null
682else
683 exec 6>&1
684fi
685exec 5>./config.log
686
687echo "\
688This file contains any messages produced by compilers while
689running configure, to aid debugging if configure makes a mistake.
690" 1>&5
691
692# Strip out --no-create and --no-recursion so they do not pile up.
693# Also quote any args containing shell metacharacters.
694ac_configure_args=
695for ac_arg
696do
697 case "$ac_arg" in
698 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
699 | --no-cr | --no-c) ;;
700 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
701 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
702 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
703 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
704 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
705 esac
706done
707
708# NLS nuisances.
709# Only set these to C if already set. These must not be set unconditionally
710# because not all systems understand e.g. LANG=C (notably SCO).
711# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
712# Non-C LC_CTYPE values break the ctype check.
713if test "${LANG+set}" = set; then LANG=C; export LANG; fi
714if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
715if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
716if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
717
718# confdefs.h avoids OS command line length limits that DEFS can exceed.
719rm -rf conftest* confdefs.h
720# AIX cpp loses on an empty file, so make sure it contains at least a newline.
721echo > confdefs.h
722
723# A filename unique to this package, relative to the directory that
724# configure is in, which we can look for to find out if srcdir is correct.
725ac_unique_file=wx-config.in
726
727# Find the source files, if location was not specified.
728if test -z "$srcdir"; then
729 ac_srcdir_defaulted=yes
730 # Try the directory containing this script, then its parent.
731 ac_prog=$0
732 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
733 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
734 srcdir=$ac_confdir
735 if test ! -r $srcdir/$ac_unique_file; then
736 srcdir=..
737 fi
738else
739 ac_srcdir_defaulted=no
740fi
741if test ! -r $srcdir/$ac_unique_file; then
742 if test "$ac_srcdir_defaulted" = yes; then
743 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
744 else
745 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
746 fi
747fi
748srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
749
750# Prefer explicitly selected file to automatically selected ones.
751if test -z "$CONFIG_SITE"; then
752 if test "x$prefix" != xNONE; then
753 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
754 else
755 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
756 fi
757fi
758for ac_site_file in $CONFIG_SITE; do
759 if test -r "$ac_site_file"; then
760 echo "loading site script $ac_site_file"
761 . "$ac_site_file"
762 fi
763done
764
765if test -r "$cache_file"; then
766 echo "loading cache $cache_file"
767 . $cache_file
768else
769 echo "creating cache $cache_file"
770 > $cache_file
771fi
772
773ac_ext=c
774# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
775ac_cpp='$CPP $CPPFLAGS'
776ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
777ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
778cross_compiling=$ac_cv_prog_cc_cross
779
780ac_exeext=
781ac_objext=o
782if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
783 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
784 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
785 ac_n= ac_c='
786' ac_t=' '
787 else
788 ac_n=-n ac_c= ac_t=
789 fi
790else
791 ac_n= ac_c='\c' ac_t=
792fi
793
794
795
7c66a493
VZ
796ac_aux_dir=
797for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
798 if test -f $ac_dir/install-sh; then
799 ac_aux_dir=$ac_dir
800 ac_install_sh="$ac_aux_dir/install-sh -c"
801 break
802 elif test -f $ac_dir/install.sh; then
803 ac_aux_dir=$ac_dir
804 ac_install_sh="$ac_aux_dir/install.sh -c"
805 break
806 fi
807done
808if test -z "$ac_aux_dir"; then
809 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
810fi
811ac_config_guess=$ac_aux_dir/config.guess
812ac_config_sub=$ac_aux_dir/config.sub
813ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
814
815
816# Do some error checking and defaulting for the host and target type.
817# The inputs are:
818# configure --host=HOST --target=TARGET --build=BUILD NONOPT
819#
820# The rules are:
821# 1. You are not allowed to specify --host, --target, and nonopt at the
822# same time.
823# 2. Host defaults to nonopt.
824# 3. If nonopt is not specified, then host defaults to the current host,
825# as determined by config.guess.
826# 4. Target and build default to nonopt.
827# 5. If nonopt is not specified, then target and build default to host.
828
829# The aliases save the names the user supplied, while $host etc.
830# will get canonicalized.
831case $host---$target---$nonopt in
832NONE---*---* | *---NONE---* | *---*---NONE) ;;
833*) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
834esac
835
836
837# Make sure we can run config.sub.
838if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
839else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
840fi
841
842echo $ac_n "checking host system type""... $ac_c" 1>&6
422107f9 843echo "configure:844: checking host system type" >&5
7c66a493
VZ
844
845host_alias=$host
846case "$host_alias" in
847NONE)
848 case $nonopt in
849 NONE)
850 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
851 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
852 fi ;;
853 *) host_alias=$nonopt ;;
854 esac ;;
855esac
856
857host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
858host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
859host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
860host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
861echo "$ac_t""$host" 1>&6
862
863echo $ac_n "checking target system type""... $ac_c" 1>&6
422107f9 864echo "configure:865: checking target system type" >&5
7c66a493
VZ
865
866target_alias=$target
867case "$target_alias" in
868NONE)
869 case $nonopt in
870 NONE) target_alias=$host_alias ;;
871 *) target_alias=$nonopt ;;
872 esac ;;
873esac
874
875target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
876target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
877target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
878target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
879echo "$ac_t""$target" 1>&6
880
881echo $ac_n "checking build system type""... $ac_c" 1>&6
422107f9 882echo "configure:883: checking build system type" >&5
7c66a493
VZ
883
884build_alias=$build
885case "$build_alias" in
886NONE)
887 case $nonopt in
888 NONE) build_alias=$host_alias ;;
889 *) build_alias=$nonopt ;;
890 esac ;;
891esac
892
893build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
894build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
895build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
896build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
897echo "$ac_t""$build" 1>&6
898
899test "$host_alias" != "$target_alias" &&
900 test "$program_prefix$program_suffix$program_transform_name" = \
901 NONENONEs,x,x, &&
902 program_prefix=${target_alias}-
903
904
10f2d63a
VZ
905
906WX_MAJOR_VERSION_NUMBER=2
907WX_MINOR_VERSION_NUMBER=1
cc977e5f 908WX_RELEASE_NUMBER=14
10f2d63a
VZ
909
910WX_INTERFACE_AGE=0
911WX_BINARY_AGE=0
912
913WX_VERSION=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER.$WX_RELEASE_NUMBER
914
915WX_RELEASE=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER
916WX_CURRENT=`expr $WX_RELEASE_NUMBER - $WX_INTERFACE_AGE`
917WX_REVISION=$WX_INTERFACE_AGE
918WX_AGE=`expr $WX_BINARY_AGE - $WX_INTERFACE_AGE`
919
920
921USE_UNIX=1
922USE_WIN32=0
b12915c1
VZ
923USE_BEOS=0
924
10f2d63a
VZ
925USE_LINUX=
926USE_SGI=
927USE_HPUX=
928USE_SYSV=
929USE_SVR4=
930USE_AIX=
931USE_SUN=
932USE_SOLARIS=
933USE_SUNOS=
934USE_ALPHA=
935USE_OSF=
936USE_BSD=
937USE_FREEBSD=
938USE_VMS=
939USE_ULTRIX=
940USE_CYGWIN=
941USE_MINGW=
942USE_DATA_GENERAL=
943
ab9b9eab
VZ
944NEEDS_D_REENTRANT_FOR_R_FUNCS=0
945
e07802fc 946ALL_TOOLKITS="CYGWIN GTK MINGW MOTIF WINE PM"
10f2d63a
VZ
947
948DEFAULT_wxUSE_GTK=0
949DEFAULT_wxUSE_MOTIF=0
950DEFAULT_wxUSE_MSW=0
951DEFAULT_wxUSE_WINE=0
e07802fc 952DEFAULT_wxUSE_PM=0
10f2d63a
VZ
953
954DEFAULT_DEFAULT_wxUSE_GTK=0
955DEFAULT_DEFAULT_wxUSE_MOTIF=0
956DEFAULT_DEFAULT_wxUSE_MSW=0
957DEFAULT_DEFAULT_wxUSE_WINE=0
e07802fc 958DEFAULT_DEFAULT_wxUSE_PM=0
10f2d63a 959
d6a55c4b
VZ
960PROGRAM_EXT=
961
10f2d63a
VZ
962case "${host}" in
963 *-hp-hpux* )
964 USE_HPUX=1
965 DEFAULT_DEFAULT_wxUSE_MOTIF=1
ab9b9eab 966 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
10f2d63a
VZ
967 cat >> confdefs.h <<\EOF
968#define __HPUX__ 1
969EOF
970
971 ;;
972 *-*-linux* )
973 USE_LINUX=1
974 cat >> confdefs.h <<\EOF
975#define __LINUX__ 1
976EOF
977
978 TMP=`uname -m`
979 if test "x$TMP" = "xalpha"; then
980 USE_ALPHA=1
981 cat >> confdefs.h <<\EOF
982#define __ALPHA__ 1
983EOF
984
985 fi
986 DEFAULT_DEFAULT_wxUSE_GTK=1
987 ;;
988 *-*-irix5* | *-*-irix6* )
989 USE_SGI=1
990 USE_SVR4=1
991 cat >> confdefs.h <<\EOF
992#define __SGI__ 1
993EOF
994
995 cat >> confdefs.h <<\EOF
996#define __SVR4__ 1
997EOF
998
999 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1000 ;;
1001 *-*-solaris2* )
1002 USE_SUN=1
1003 USE_SOLARIS=1
1004 USE_SVR4=1
1005 cat >> confdefs.h <<\EOF
1006#define __SUN__ 1
1007EOF
1008
1009 cat >> confdefs.h <<\EOF
1010#define __SOLARIS__ 1
1011EOF
1012
1013 cat >> confdefs.h <<\EOF
1014#define __SVR4__ 1
1015EOF
1016
1017 DEFAULT_DEFAULT_wxUSE_MOTIF=1
ab9b9eab 1018 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
10f2d63a
VZ
1019 ;;
1020 *-*-sunos4* )
1021 USE_SUN=1
1022 USE_SUNOS=1
1023 USE_BSD=1
1024 cat >> confdefs.h <<\EOF
1025#define __SUN__ 1
1026EOF
1027
1028 cat >> confdefs.h <<\EOF
1029#define __SUNOS__ 1
1030EOF
1031
1032 cat >> confdefs.h <<\EOF
1033#define __BSD__ 1
1034EOF
1035
1036 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1037 ;;
1038 *-*-freebsd* | *-*-netbsd*)
1039 USE_BSD=1
1040 USE_FREEBSD=1
1041 cat >> confdefs.h <<\EOF
1042#define __FREEBSD__ 1
1043EOF
1044
1045 cat >> confdefs.h <<\EOF
1046#define __BSD__ 1
1047EOF
1048
1049 DEFAULT_DEFAULT_wxUSE_GTK=1
1050 ;;
1051 *-*-osf* )
1052 USE_ALPHA=1
1053 USE_OSF=1
1054 cat >> confdefs.h <<\EOF
1055#define __ALPHA__ 1
1056EOF
1057
1058 cat >> confdefs.h <<\EOF
1059#define __OSF__ 1
1060EOF
1061
1062 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1063 ;;
1064 *-*-dgux5* )
1065 USE_ALPHA=1
1066 USE_SVR4=1
1067 cat >> confdefs.h <<\EOF
1068#define __ALPHA__ 1
1069EOF
1070
1071 cat >> confdefs.h <<\EOF
1072#define __SVR4__ 1
1073EOF
1074
1075 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1076 ;;
1077 *-*-sysv5* )
1078 USE_SYSV=1
1079 USE_SVR4=1
1080 cat >> confdefs.h <<\EOF
1081#define __SYSV__ 1
1082EOF
1083
1084 cat >> confdefs.h <<\EOF
1085#define __SVR4__ 1
1086EOF
1087
1088 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1089 ;;
1090 *-*-aix* )
1091 USE_AIX=1
1092 USE_SYSV=1
1093 USE_SVR4=1
1094 cat >> confdefs.h <<\EOF
1095#define __AIX__ 1
1096EOF
1097
1098 cat >> confdefs.h <<\EOF
1099#define __SYSV__ 1
1100EOF
1101
1102 cat >> confdefs.h <<\EOF
1103#define __SVR4__ 1
1104EOF
1105
1106 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1107 ;;
1108
7eef8db2 1109 *-*-cygwin32* | *-*-mingw32* )
10f2d63a
VZ
1110 USE_UNIX=0
1111 USE_WIN32=1
1112 cat >> confdefs.h <<\EOF
1113#define __WIN32__ 1
1114EOF
1115
1116 cat >> confdefs.h <<\EOF
1117#define __WIN95__ 1
1118EOF
1119
1120 cat >> confdefs.h <<\EOF
1121#define __WINDOWS__ 1
1122EOF
1123
1124 cat >> confdefs.h <<\EOF
1125#define __GNUWIN32__ 1
1126EOF
1127
1128 cat >> confdefs.h <<\EOF
1129#define STRICT 1
1130EOF
1131
1132 cat >> confdefs.h <<\EOF
1133#define WINVER 0x0400
1134EOF
1135
cf27ef00 1136 PROGRAM_EXT=".exe"
10f2d63a
VZ
1137 DEFAULT_DEFAULT_wxUSE_MSW=1
1138 ;;
1139
1140 *-pc-os2_emx )
1141 cat >> confdefs.h <<\EOF
1142#define __EMX__ 1
1143EOF
1144
cf27ef00 1145 PROGRAM_EXT=".exe"
e07802fc 1146 DEFAULT_DEFAULT_wxUSE_PM=1
10f2d63a
VZ
1147 ;;
1148
b12915c1
VZ
1149 *-*-beos* )
1150 USE_BEOS=1
1151 cat >> confdefs.h <<\EOF
1152#define __BEOS__ 1
1153EOF
1154
1155 ;;
1156
10f2d63a
VZ
1157 *)
1158 { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; }
1159esac
1160
1161if test "$USE_UNIX" = 1 ; then
b12915c1
VZ
1162 wxUSE_UNIX=yes
1163 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1164#define __UNIX__ 1
1165EOF
1166
b12915c1
VZ
1167
1168 SRC_SUBDIRS="$SRC_SUBDIRS unix"
1169 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS unix"
1170fi
1171
1172if test "$USE_BEOS" = 1; then
1173 SRC_SUBDIRS="$SRC_SUBDIRS be"
1174 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS be"
10f2d63a
VZ
1175fi
1176
1177if test "$USE_LINUX" = 1; then
1178 echo $ac_n "checking for gettext in -lc""... $ac_c" 1>&6
422107f9 1179echo "configure:1180: checking for gettext in -lc" >&5
10f2d63a
VZ
1180ac_lib_var=`echo c'_'gettext | sed 'y%./+-%__p_%'`
1181if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1182 echo $ac_n "(cached) $ac_c" 1>&6
1183else
1184 ac_save_LIBS="$LIBS"
1185LIBS="-lc $LIBS"
1186cat > conftest.$ac_ext <<EOF
422107f9 1187#line 1188 "configure"
10f2d63a
VZ
1188#include "confdefs.h"
1189/* Override any gcc2 internal prototype to avoid an error. */
1190/* We use char because int might match the return type of a gcc2
1191 builtin and then its argument prototype would still apply. */
1192char gettext();
1193
1194int main() {
1195gettext()
1196; return 0; }
1197EOF
422107f9 1198if { (eval echo configure:1199: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
1199 rm -rf conftest*
1200 eval "ac_cv_lib_$ac_lib_var=yes"
1201else
1202 echo "configure: failed program was:" >&5
1203 cat conftest.$ac_ext >&5
1204 rm -rf conftest*
1205 eval "ac_cv_lib_$ac_lib_var=no"
1206fi
1207rm -f conftest*
1208LIBS="$ac_save_LIBS"
1209
1210fi
1211if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1212 echo "$ac_t""yes" 1>&6
1213 cat >> confdefs.h <<\EOF
1214#define wxHAVE_GLIBC2 1
1215EOF
1216
1217else
1218 echo "$ac_t""no" 1>&6
1219fi
1220
1221fi
1222
1223
1224
1225
1226 wx_arg_cache_file="configarg.cache"
1227 echo "loading argument cache $wx_arg_cache_file"
1228 rm -f ${wx_arg_cache_file}.tmp
1229 touch ${wx_arg_cache_file}.tmp
1230 touch ${wx_arg_cache_file}
1231
1232
1233DEBUG_CONFIGURE=0
1234if test $DEBUG_CONFIGURE = 1; then
1235 DEFAULT_wxUSE_THREADS=yes
1236
1237 DEFAULT_wxUSE_SHARED=yes
00cf1208 1238 DEFAULT_wxUSE_BURNT_NAME=no
10f2d63a
VZ
1239 DEFAULT_wxUSE_OPTIMISE=yes
1240 DEFAULT_wxUSE_PROFILE=no
1241 DEFAULT_wxUSE_NO_DEPS=no
1242 DEFAULT_wxUSE_NO_RTTI=no
1243 DEFAULT_wxUSE_NO_EXCEPTIONS=no
1244 DEFAULT_wxUSE_PERMISSIVE=no
1245 DEFAULT_wxUSE_DEBUG_FLAG=yes
1246 DEFAULT_wxUSE_DEBUG_INFO=yes
1247 DEFAULT_wxUSE_DEBUG_GDB=yes
1248 DEFAULT_wxUSE_MEM_TRACING=no
1249 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1250 DEFAULT_wxUSE_DMALLOC=no
1251 DEFAULT_wxUSE_APPLE_IEEE=no
1252
1253 DEFAULT_wxUSE_LOG=yes
1254
1255 DEFAULT_wxUSE_GUI=yes
1256
1257 DEFAULT_wxUSE_ZLIB=no
1258 DEFAULT_wxUSE_LIBPNG=no
1259 DEFAULT_wxUSE_LIBJPEG=no
c7a2bf27 1260 DEFAULT_wxUSE_LIBTIFF=no
10f2d63a 1261 DEFAULT_wxUSE_ODBC=no
bdad4e7e 1262 DEFAULT_wxUSE_OPENGL=no
10f2d63a
VZ
1263
1264 DEFAULT_wxUSE_STD_IOSTREAM=no
1265 DEFAULT_wxUSE_FILE=no
1266 DEFAULT_wxUSE_TEXTFILE=no
1267 DEFAULT_wxUSE_TIMEDATE=no
1268 DEFAULT_wxUSE_WAVE=no
1269 DEFAULT_wxUSE_INTL=no
1270 DEFAULT_wxUSE_CONFIG=no
1271 DEFAULT_wxUSE_STREAMS=no
1272 DEFAULT_wxUSE_SOCKETS=no
1273 DEFAULT_wxUSE_DIALUP_MANAGER=no
1274 DEFAULT_wxUSE_SERIAL=no
1275 DEFAULT_wxUSE_JOYSTICK=no
1276 DEFAULT_wxUSE_DYNLIB_CLASS=no
1277 DEFAULT_wxUSE_LONGLONG=no
1278
1279 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
1280 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
1281 DEFAULT_wxUSE_POSTSCRIPT=no
1282
1283 DEFAULT_wxUSE_X_RESOURCES=no
1284 DEFAULT_wxUSE_CLIPBOARD=no
1285 DEFAULT_wxUSE_TOOLTIPS=no
1286 DEFAULT_wxUSE_DRAG_AND_DROP=no
1287 DEFAULT_wxUSE_SPLINES=no
1288
1289 DEFAULT_wxUSE_MDI_ARCHITECTURE=no
1290 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
1291 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
1292
1293 DEFAULT_wxUSE_PROLOGIO=no
1294 DEFAULT_wxUSE_RESOURCES=no
1295 DEFAULT_wxUSE_CONSTRAINTS=no
1296 DEFAULT_wxUSE_IPC=no
1297 DEFAULT_wxUSE_HELP=no
1298 DEFAULT_wxUSE_WXTREE=no
1299 DEFAULT_wxUSE_METAFILE=no
1300
1301 DEFAULT_wxUSE_COMMONDLGS=no
1302 DEFAULT_wxUSE_DIRDLG=no
1303 DEFAULT_wxUSE_TEXTDLG=no
1304 DEFAULT_wxUSE_STARTUP_TIPS=no
1305 DEFAULT_wxUSE_PROGRESSDLG=no
1306 DEFAULT_wxUSE_MINIFRAME=no
1307 DEFAULT_wxUSE_HTML=no
24528b0c 1308 DEFAULT_wxUSE_FILESYSTEM=no
10f2d63a
VZ
1309 DEFAULT_wxUSE_FS_INET=no
1310 DEFAULT_wxUSE_FS_ZIP=no
1311 DEFAULT_wxUSE_BUSYINFO=no
1312 DEFAULT_wxUSE_ZIPSTREAM=no
1313 DEFAULT_wxUSE_VALIDATORS=yes
1314
1315 DEFAULT_wxUSE_ACCEL=no
1316 DEFAULT_wxUSE_CARET=no
1317 DEFAULT_wxUSE_BMPBUTTON=no
1318 DEFAULT_wxUSE_CHECKBOX=no
1319 DEFAULT_wxUSE_CHECKLST=no
1320 DEFAULT_wxUSE_CHOICE=yes
1321 DEFAULT_wxUSE_COMBOBOX=no
1322 DEFAULT_wxUSE_GAUGE=no
1323 DEFAULT_wxUSE_GRID=no
1324 DEFAULT_wxUSE_NEW_GRID=no
1325 DEFAULT_wxUSE_IMAGLIST=no
1326 DEFAULT_wxUSE_LISTBOX=no
1327 DEFAULT_wxUSE_LISTCTRL=no
1328 DEFAULT_wxUSE_NOTEBOOK=no
9b33fe02 1329 DEFAULT_wxUSE_PLOT=no
10f2d63a
VZ
1330 DEFAULT_wxUSE_RADIOBOX=no
1331 DEFAULT_wxUSE_RADIOBTN=no
1332 DEFAULT_wxUSE_SASH=no
1333 DEFAULT_wxUSE_SCROLLBAR=no
1334 DEFAULT_wxUSE_SLIDER=no
1335 DEFAULT_wxUSE_SPINBTN=no
56cfaa52 1336 DEFAULT_wxUSE_SPINCTRL=no
10f2d63a
VZ
1337 DEFAULT_wxUSE_SPLITTER=no
1338 DEFAULT_wxUSE_STATBMP=no
1339 DEFAULT_wxUSE_STATBOX=no
1340 DEFAULT_wxUSE_STATLINE=no
1341 DEFAULT_wxUSE_STATUSBAR=yes
1342 DEFAULT_wxUSE_TABDIALOG=no
1343 DEFAULT_wxUSE_TOOLBAR=no
360d6699
VZ
1344 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
1345 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
10f2d63a
VZ
1346 DEFAULT_wxUSE_TREECTRL=no
1347
1348 DEFAULT_wxUSE_UNICODE=no
1349 DEFAULT_wxUSE_WCSRTOMBS=no
1350
1351 DEFAULT_wxUSE_GIF=no
1352 DEFAULT_wxUSE_PCX=no
1353 DEFAULT_wxUSE_PNM=no
1354else
1355 DEFAULT_wxUSE_THREADS=yes
1356
1357 DEFAULT_wxUSE_SHARED=yes
00cf1208 1358 DEFAULT_wxUSE_BURNT_NAME=no
10f2d63a
VZ
1359 DEFAULT_wxUSE_OPTIMISE=yes
1360 DEFAULT_wxUSE_PROFILE=no
1361 DEFAULT_wxUSE_NO_DEPS=no
1362 DEFAULT_wxUSE_NO_RTTI=no
1363 DEFAULT_wxUSE_NO_EXCEPTIONS=no
1364 DEFAULT_wxUSE_PERMISSIVE=no
1365 DEFAULT_wxUSE_DEBUG_FLAG=no
1366 DEFAULT_wxUSE_DEBUG_INFO=no
1367 DEFAULT_wxUSE_DEBUG_GDB=no
1368 DEFAULT_wxUSE_MEM_TRACING=no
1369 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1370 DEFAULT_wxUSE_DMALLOC=no
1371 DEFAULT_wxUSE_APPLE_IEEE=yes
1372
1373 DEFAULT_wxUSE_LOG=yes
1374
1375 DEFAULT_wxUSE_GUI=yes
1376
1377 DEFAULT_wxUSE_ZLIB=yes
1378 DEFAULT_wxUSE_LIBPNG=yes
1379 DEFAULT_wxUSE_LIBJPEG=yes
b47c832e 1380 DEFAULT_wxUSE_LIBTIFF=yes
16b52fa1 1381 DEFAULT_wxUSE_ODBC=no
bdad4e7e 1382 DEFAULT_wxUSE_OPENGL=no
10f2d63a
VZ
1383
1384 DEFAULT_wxUSE_STD_IOSTREAM=no
1385 DEFAULT_wxUSE_FILE=yes
1386 DEFAULT_wxUSE_TEXTFILE=yes
1387 DEFAULT_wxUSE_TIMEDATE=yes
1388 DEFAULT_wxUSE_WAVE=no
1389 DEFAULT_wxUSE_INTL=yes
1390 DEFAULT_wxUSE_CONFIG=yes
1391 DEFAULT_wxUSE_STREAMS=yes
1392 DEFAULT_wxUSE_SOCKETS=yes
1393 DEFAULT_wxUSE_DIALUP_MANAGER=yes
1394 DEFAULT_wxUSE_SERIAL=yes
1395 DEFAULT_wxUSE_JOYSTICK=yes
1396 DEFAULT_wxUSE_DYNLIB_CLASS=yes
b685cd9b 1397 DEFAULT_wxUSE_LONGLONG=yes
10f2d63a
VZ
1398
1399 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
1400 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
1401 DEFAULT_wxUSE_POSTSCRIPT=yes
1402
1403 DEFAULT_wxUSE_X_RESOURCES=no
1404 DEFAULT_wxUSE_CLIPBOARD=yes
1405 DEFAULT_wxUSE_TOOLTIPS=yes
1406 DEFAULT_wxUSE_DRAG_AND_DROP=yes
1407 DEFAULT_wxUSE_SPLINES=yes
1408
1409 DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
1410 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
1411 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
1412
1413 DEFAULT_wxUSE_PROLOGIO=yes
1414 DEFAULT_wxUSE_RESOURCES=yes
1415 DEFAULT_wxUSE_CONSTRAINTS=yes
1416 DEFAULT_wxUSE_IPC=yes
1417 DEFAULT_wxUSE_HELP=yes
1418 DEFAULT_wxUSE_WXTREE=yes
1419 DEFAULT_wxUSE_METAFILE=yes
1420
1421 DEFAULT_wxUSE_COMMONDLGS=yes
1422 DEFAULT_wxUSE_DIRDLG=yes
1423 DEFAULT_wxUSE_TEXTDLG=yes
1424 DEFAULT_wxUSE_STARTUP_TIPS=yes
1425 DEFAULT_wxUSE_PROGRESSDLG=yes
1426 DEFAULT_wxUSE_MINIFRAME=yes
1427 DEFAULT_wxUSE_HTML=yes
24528b0c 1428 DEFAULT_wxUSE_FILESYSTEM=yes
10f2d63a
VZ
1429 DEFAULT_wxUSE_FS_INET=yes
1430 DEFAULT_wxUSE_FS_ZIP=yes
1431 DEFAULT_wxUSE_BUSYINFO=yes
1432 DEFAULT_wxUSE_ZIPSTREAM=yes
1433 DEFAULT_wxUSE_VALIDATORS=yes
1434
1435 DEFAULT_wxUSE_ACCEL=yes
1436 DEFAULT_wxUSE_CARET=yes
1437 DEFAULT_wxUSE_BMPBUTTON=yes
1438 DEFAULT_wxUSE_CHECKBOX=yes
1439 DEFAULT_wxUSE_CHECKLST=yes
1440 DEFAULT_wxUSE_CHOICE=yes
1441 DEFAULT_wxUSE_COMBOBOX=yes
1442 DEFAULT_wxUSE_GAUGE=yes
1443 DEFAULT_wxUSE_GRID=yes
cc977e5f 1444 DEFAULT_wxUSE_NEW_GRID=yes
10f2d63a
VZ
1445 DEFAULT_wxUSE_IMAGLIST=yes
1446 DEFAULT_wxUSE_LISTBOX=yes
1447 DEFAULT_wxUSE_LISTCTRL=yes
1448 DEFAULT_wxUSE_NOTEBOOK=yes
9b33fe02 1449 DEFAULT_wxUSE_PLOT=yes
10f2d63a
VZ
1450 DEFAULT_wxUSE_RADIOBOX=yes
1451 DEFAULT_wxUSE_RADIOBTN=yes
1452 DEFAULT_wxUSE_SASH=yes
1453 DEFAULT_wxUSE_SCROLLBAR=yes
1454 DEFAULT_wxUSE_SLIDER=yes
1455 DEFAULT_wxUSE_SPINBTN=yes
56cfaa52 1456 DEFAULT_wxUSE_SPINCTRL=yes
10f2d63a
VZ
1457 DEFAULT_wxUSE_SPLITTER=yes
1458 DEFAULT_wxUSE_STATBMP=yes
1459 DEFAULT_wxUSE_STATBOX=yes
1460 DEFAULT_wxUSE_STATLINE=yes
1461 DEFAULT_wxUSE_STATUSBAR=yes
1462 DEFAULT_wxUSE_TABDIALOG=no
1463 DEFAULT_wxUSE_TOOLBAR=yes
360d6699
VZ
1464 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
1465 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
10f2d63a
VZ
1466 DEFAULT_wxUSE_TREECTRL=yes
1467
1468 DEFAULT_wxUSE_UNICODE=no
1469 DEFAULT_wxUSE_WCSRTOMBS=no
1470
1471 DEFAULT_wxUSE_GIF=yes
1472 DEFAULT_wxUSE_PCX=yes
1473 DEFAULT_wxUSE_PNM=yes
1474fi
1475
1476
1477
1478for toolkit in `echo $ALL_TOOLKITS`; do
1479 LINE=`grep "wxUSE_$toolkit" ${wx_arg_cache_file}`
1480 if test "x$LINE" != x ; then
1481 has_toolkit_in_cache=1
1482 eval "DEFAULT_$LINE"
1483 eval "CACHE_$toolkit=1"
1484 fi
1485done
1486
1487
1488
1489 echo $ac_n "checking "for --enable-gui"""... $ac_c" 1>&6
422107f9 1490echo "configure:1491: checking "for --enable-gui"" >&5
10f2d63a
VZ
1491 no_cache=0
1492 # Check whether --enable-gui or --disable-gui was given.
1493if test "${enable_gui+set}" = set; then
1494 enableval="$enable_gui"
1495
1496 if test "$enableval" = yes; then
1497 ac_cv_use_gui='wxUSE_GUI=yes'
1498 else
1499 ac_cv_use_gui='wxUSE_GUI=no'
1500 fi
1501
1502else
1503
1504 LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
1505 if test "x$LINE" != x ; then
1506 eval "DEFAULT_$LINE"
1507 else
1508 no_cache=1
1509 fi
1510
1511 ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
1512
1513fi
1514
1515
1516 eval "$ac_cv_use_gui"
1517 if test "$no_cache" != 1; then
1518 echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
1519 fi
1520
1521 if test "$wxUSE_GUI" = yes; then
1522 echo "$ac_t""yes" 1>&6
1523 else
1524 echo "$ac_t""no" 1>&6
1525 fi
1526
1527
b12915c1 1528if test "$wxUSE_GUI" = "yes"; then
10f2d63a
VZ
1529
1530# Check whether --with-gtk or --without-gtk was given.
1531if test "${with_gtk+set}" = set; then
1532 withval="$with_gtk"
1533 wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
1534fi
1535
1536# Check whether --with-motif or --without-motif was given.
1537if test "${with_motif+set}" = set; then
1538 withval="$with_motif"
1539 wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
1540fi
1541
1542# Check whether --with-wine or --without-wine was given.
1543if test "${with_wine+set}" = set; then
1544 withval="$with_wine"
1545 wxUSE_WINE="$withval" CACHE_WINE=1 TOOLKIT_GIVEN=1
1546fi
1547
1548# Check whether --with-cygwin or --without-cygwin was given.
1549if test "${with_cygwin+set}" = set; then
1550 withval="$with_cygwin"
1551 wxUSE_CYGWIN="$withval" CACHE_CYGWIN=1 TOOLKIT_GIVEN=1
1552fi
1553
1554# Check whether --with-mingw or --without-mingw was given.
1555if test "${with_mingw+set}" = set; then
1556 withval="$with_mingw"
1557 wxUSE_MINGW="$withval" CACHE_MINGW=1 TOOLKIT_GIVEN=1
1558fi
1559
e07802fc
VZ
1560# Check whether --with-pm or --without-pm was given.
1561if test "${with_pm+set}" = set; then
1562 withval="$with_pm"
1563 wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
1564fi
1565
10f2d63a
VZ
1566
1567# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
1568if test "${with_gtk_prefix+set}" = set; then
1569 withval="$with_gtk_prefix"
1570 gtk_config_prefix="$withval"
1571else
1572 gtk_config_prefix=""
1573fi
1574
1575# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
1576if test "${with_gtk_exec_prefix+set}" = set; then
1577 withval="$with_gtk_exec_prefix"
1578 gtk_config_exec_prefix="$withval"
1579else
1580 gtk_config_exec_prefix=""
1581fi
1582
1583
1584
b12915c1 1585 echo $ac_n "checking "for --with-libpng"""... $ac_c" 1>&6
422107f9 1586echo "configure:1587: checking "for --with-libpng"" >&5
10f2d63a 1587 no_cache=0
b12915c1
VZ
1588 # Check whether --with-libpng or --without-libpng was given.
1589if test "${with_libpng+set}" = set; then
1590 withval="$with_libpng"
10f2d63a
VZ
1591
1592 if test "$withval" = yes; then
b12915c1 1593 ac_cv_use_libpng='wxUSE_LIBPNG=yes'
422107f9 1594 elif test "$withval" = no; then
b12915c1 1595 ac_cv_use_libpng='wxUSE_LIBPNG=no'
422107f9
VZ
1596 elif test "$withval" = sys; then
1597 ac_cv_use_libpng='wxUSE_LIBPNG=sys'
1598 else
1599 { echo "configure: error: Invalid value for --with-libpng: should be yes, no or sys" 1>&2; exit 1; }
10f2d63a
VZ
1600 fi
1601
1602else
1603
b12915c1 1604 LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
10f2d63a
VZ
1605 if test "x$LINE" != x ; then
1606 eval "DEFAULT_$LINE"
1607 else
1608 no_cache=1
1609 fi
1610
b12915c1 1611 ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
10f2d63a
VZ
1612
1613fi
1614
1615
b12915c1 1616 eval "$ac_cv_use_libpng"
10f2d63a 1617 if test "$no_cache" != 1; then
b12915c1 1618 echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
1619 fi
1620
b12915c1 1621 if test "$wxUSE_LIBPNG" = yes; then
10f2d63a 1622 echo "$ac_t""yes" 1>&6
422107f9 1623 elif test "$wxUSE_LIBPNG" = no; then
10f2d63a 1624 echo "$ac_t""no" 1>&6
422107f9
VZ
1625 elif test "$wxUSE_LIBPNG" = sys; then
1626 echo "$ac_t""system version" 1>&6
1627 else
1628 { echo "configure: error: Invalid value for --with-libpng: should be yes, no or sys" 1>&2; exit 1; }
10f2d63a
VZ
1629 fi
1630
1631
b12915c1 1632 echo $ac_n "checking "for --with-libjpeg"""... $ac_c" 1>&6
422107f9 1633echo "configure:1634: checking "for --with-libjpeg"" >&5
10f2d63a 1634 no_cache=0
b12915c1
VZ
1635 # Check whether --with-libjpeg or --without-libjpeg was given.
1636if test "${with_libjpeg+set}" = set; then
1637 withval="$with_libjpeg"
10f2d63a
VZ
1638
1639 if test "$withval" = yes; then
b12915c1 1640 ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
422107f9 1641 elif test "$withval" = no; then
b12915c1 1642 ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
422107f9
VZ
1643 elif test "$withval" = sys; then
1644 ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
1645 else
1646 { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no or sys" 1>&2; exit 1; }
10f2d63a
VZ
1647 fi
1648
1649else
1650
b12915c1 1651 LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
10f2d63a
VZ
1652 if test "x$LINE" != x ; then
1653 eval "DEFAULT_$LINE"
1654 else
1655 no_cache=1
1656 fi
1657
b12915c1 1658 ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
10f2d63a
VZ
1659
1660fi
1661
1662
b12915c1 1663 eval "$ac_cv_use_libjpeg"
10f2d63a 1664 if test "$no_cache" != 1; then
b12915c1 1665 echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
1666 fi
1667
b12915c1 1668 if test "$wxUSE_LIBJPEG" = yes; then
10f2d63a 1669 echo "$ac_t""yes" 1>&6
422107f9 1670 elif test "$wxUSE_LIBJPEG" = no; then
10f2d63a 1671 echo "$ac_t""no" 1>&6
422107f9
VZ
1672 elif test "$wxUSE_LIBJPEG" = sys; then
1673 echo "$ac_t""system version" 1>&6
1674 else
1675 { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no or sys" 1>&2; exit 1; }
10f2d63a
VZ
1676 fi
1677
1678
b12915c1 1679 echo $ac_n "checking "for --with-libtiff"""... $ac_c" 1>&6
422107f9 1680echo "configure:1681: checking "for --with-libtiff"" >&5
10f2d63a 1681 no_cache=0
b12915c1
VZ
1682 # Check whether --with-libtiff or --without-libtiff was given.
1683if test "${with_libtiff+set}" = set; then
1684 withval="$with_libtiff"
10f2d63a
VZ
1685
1686 if test "$withval" = yes; then
b12915c1 1687 ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
10f2d63a 1688 else
b12915c1 1689 ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
10f2d63a
VZ
1690 fi
1691
1692else
1693
b12915c1 1694 LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
10f2d63a
VZ
1695 if test "x$LINE" != x ; then
1696 eval "DEFAULT_$LINE"
1697 else
1698 no_cache=1
1699 fi
1700
b12915c1 1701 ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
10f2d63a
VZ
1702
1703fi
1704
1705
b12915c1 1706 eval "$ac_cv_use_libtiff"
10f2d63a 1707 if test "$no_cache" != 1; then
b12915c1 1708 echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
1709 fi
1710
b12915c1 1711 if test "$wxUSE_LIBTIFF" = yes; then
10f2d63a
VZ
1712 echo "$ac_t""yes" 1>&6
1713 else
1714 echo "$ac_t""no" 1>&6
1715 fi
1716
1717
b12915c1 1718 echo $ac_n "checking "for --with-opengl"""... $ac_c" 1>&6
422107f9 1719echo "configure:1720: checking "for --with-opengl"" >&5
10f2d63a 1720 no_cache=0
b12915c1
VZ
1721 # Check whether --with-opengl or --without-opengl was given.
1722if test "${with_opengl+set}" = set; then
1723 withval="$with_opengl"
10f2d63a
VZ
1724
1725 if test "$withval" = yes; then
b12915c1 1726 ac_cv_use_opengl='wxUSE_OPENGL=yes'
10f2d63a 1727 else
b12915c1 1728 ac_cv_use_opengl='wxUSE_OPENGL=no'
10f2d63a
VZ
1729 fi
1730
1731else
1732
b12915c1 1733 LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
10f2d63a
VZ
1734 if test "x$LINE" != x ; then
1735 eval "DEFAULT_$LINE"
1736 else
1737 no_cache=1
1738 fi
1739
b12915c1 1740 ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
10f2d63a
VZ
1741
1742fi
1743
1744
b12915c1 1745 eval "$ac_cv_use_opengl"
10f2d63a 1746 if test "$no_cache" != 1; then
b12915c1 1747 echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
1748 fi
1749
b12915c1 1750 if test "$wxUSE_OPENGL" = yes; then
10f2d63a
VZ
1751 echo "$ac_t""yes" 1>&6
1752 else
1753 echo "$ac_t""no" 1>&6
1754 fi
1755
1756
b12915c1
VZ
1757fi
1758
1759
1760 echo $ac_n "checking "for --with-dmalloc"""... $ac_c" 1>&6
422107f9 1761echo "configure:1762: checking "for --with-dmalloc"" >&5
c7a2bf27 1762 no_cache=0
b12915c1
VZ
1763 # Check whether --with-dmalloc or --without-dmalloc was given.
1764if test "${with_dmalloc+set}" = set; then
1765 withval="$with_dmalloc"
c7a2bf27
RR
1766
1767 if test "$withval" = yes; then
b12915c1 1768 ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
c7a2bf27 1769 else
b12915c1 1770 ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
c7a2bf27
RR
1771 fi
1772
1773else
1774
b12915c1 1775 LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
c7a2bf27
RR
1776 if test "x$LINE" != x ; then
1777 eval "DEFAULT_$LINE"
1778 else
1779 no_cache=1
1780 fi
1781
b12915c1 1782 ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
c7a2bf27
RR
1783
1784fi
1785
1786
b12915c1 1787 eval "$ac_cv_use_dmalloc"
c7a2bf27 1788 if test "$no_cache" != 1; then
b12915c1 1789 echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
c7a2bf27
RR
1790 fi
1791
b12915c1 1792 if test "$wxUSE_DMALLOC" = yes; then
c7a2bf27
RR
1793 echo "$ac_t""yes" 1>&6
1794 else
1795 echo "$ac_t""no" 1>&6
1796 fi
1797
1798
b12915c1 1799 echo $ac_n "checking "for --with-zlib"""... $ac_c" 1>&6
422107f9 1800echo "configure:1801: checking "for --with-zlib"" >&5
10f2d63a 1801 no_cache=0
b12915c1
VZ
1802 # Check whether --with-zlib or --without-zlib was given.
1803if test "${with_zlib+set}" = set; then
1804 withval="$with_zlib"
10f2d63a
VZ
1805
1806 if test "$withval" = yes; then
b12915c1 1807 ac_cv_use_zlib='wxUSE_ZLIB=yes'
422107f9 1808 elif test "$withval" = no; then
b12915c1 1809 ac_cv_use_zlib='wxUSE_ZLIB=no'
422107f9
VZ
1810 elif test "$withval" = sys; then
1811 ac_cv_use_zlib='wxUSE_ZLIB=sys'
1812 else
1813 { echo "configure: error: Invalid value for --with-zlib: should be yes, no or sys" 1>&2; exit 1; }
10f2d63a
VZ
1814 fi
1815
1816else
1817
b12915c1 1818 LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
10f2d63a
VZ
1819 if test "x$LINE" != x ; then
1820 eval "DEFAULT_$LINE"
1821 else
1822 no_cache=1
1823 fi
1824
b12915c1 1825 ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
10f2d63a
VZ
1826
1827fi
1828
1829
b12915c1 1830 eval "$ac_cv_use_zlib"
10f2d63a 1831 if test "$no_cache" != 1; then
b12915c1 1832 echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
1833 fi
1834
b12915c1 1835 if test "$wxUSE_ZLIB" = yes; then
10f2d63a 1836 echo "$ac_t""yes" 1>&6
422107f9 1837 elif test "$wxUSE_ZLIB" = no; then
bdad4e7e 1838 echo "$ac_t""no" 1>&6
422107f9
VZ
1839 elif test "$wxUSE_ZLIB" = sys; then
1840 echo "$ac_t""system version" 1>&6
1841 else
1842 { echo "configure: error: Invalid value for --with-zlib: should be yes, no or sys" 1>&2; exit 1; }
10f2d63a
VZ
1843 fi
1844
1845
1846 echo $ac_n "checking "for --with-odbc"""... $ac_c" 1>&6
422107f9 1847echo "configure:1848: checking "for --with-odbc"" >&5
10f2d63a
VZ
1848 no_cache=0
1849 # Check whether --with-odbc or --without-odbc was given.
1850if test "${with_odbc+set}" = set; then
1851 withval="$with_odbc"
1852
1853 if test "$withval" = yes; then
1854 ac_cv_use_odbc='wxUSE_ODBC=yes'
1855 else
1856 ac_cv_use_odbc='wxUSE_ODBC=no'
1857 fi
1858
1859else
1860
1861 LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
1862 if test "x$LINE" != x ; then
1863 eval "DEFAULT_$LINE"
1864 else
1865 no_cache=1
1866 fi
1867
1868 ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
1869
1870fi
1871
1872
1873 eval "$ac_cv_use_odbc"
1874 if test "$no_cache" != 1; then
1875 echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
1876 fi
1877
1878 if test "$wxUSE_ODBC" = yes; then
1879 echo "$ac_t""yes" 1>&6
1880 else
1881 echo "$ac_t""no" 1>&6
1882 fi
1883
1884
1885
1886
1887
1888 echo $ac_n "checking "for --enable-shared"""... $ac_c" 1>&6
422107f9 1889echo "configure:1890: checking "for --enable-shared"" >&5
10f2d63a
VZ
1890 no_cache=0
1891 # Check whether --enable-shared or --disable-shared was given.
1892if test "${enable_shared+set}" = set; then
1893 enableval="$enable_shared"
1894
1895 if test "$enableval" = yes; then
1896 ac_cv_use_shared='wxUSE_SHARED=yes'
1897 else
1898 ac_cv_use_shared='wxUSE_SHARED=no'
1899 fi
1900
1901else
1902
1903 LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
1904 if test "x$LINE" != x ; then
1905 eval "DEFAULT_$LINE"
1906 else
1907 no_cache=1
1908 fi
1909
1910 ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
1911
1912fi
1913
1914
1915 eval "$ac_cv_use_shared"
1916 if test "$no_cache" != 1; then
1917 echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
1918 fi
1919
1920 if test "$wxUSE_SHARED" = yes; then
1921 echo "$ac_t""yes" 1>&6
1922 else
1923 echo "$ac_t""no" 1>&6
1924 fi
1925
1926
00cf1208 1927 echo $ac_n "checking "for --enable-burnt_name"""... $ac_c" 1>&6
422107f9 1928echo "configure:1929: checking "for --enable-burnt_name"" >&5
00cf1208
RR
1929 no_cache=0
1930 # Check whether --enable-burnt_name or --disable-burnt_name was given.
1931if test "${enable_burnt_name+set}" = set; then
1932 enableval="$enable_burnt_name"
1933
1934 if test "$enableval" = yes; then
1935 ac_cv_use_burnt_name='wxUSE_BURNT_NAME=yes'
1936 else
1937 ac_cv_use_burnt_name='wxUSE_BURNT_NAME=no'
1938 fi
1939
1940else
1941
1942 LINE=`grep "wxUSE_BURNT_NAME" ${wx_arg_cache_file}`
1943 if test "x$LINE" != x ; then
1944 eval "DEFAULT_$LINE"
1945 else
1946 no_cache=1
1947 fi
1948
1949 ac_cv_use_burnt_name='wxUSE_BURNT_NAME='$DEFAULT_wxUSE_BURNT_NAME
1950
1951fi
1952
1953
1954 eval "$ac_cv_use_burnt_name"
1955 if test "$no_cache" != 1; then
1956 echo $ac_cv_use_burnt_name >> ${wx_arg_cache_file}.tmp
1957 fi
1958
1959 if test "$wxUSE_BURNT_NAME" = yes; then
1960 echo "$ac_t""yes" 1>&6
1961 else
1962 echo "$ac_t""no" 1>&6
1963 fi
1964
1965
10f2d63a 1966 echo $ac_n "checking "for --enable-optimise"""... $ac_c" 1>&6
422107f9 1967echo "configure:1968: checking "for --enable-optimise"" >&5
10f2d63a
VZ
1968 no_cache=0
1969 # Check whether --enable-optimise or --disable-optimise was given.
1970if test "${enable_optimise+set}" = set; then
1971 enableval="$enable_optimise"
1972
1973 if test "$enableval" = yes; then
1974 ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
1975 else
1976 ac_cv_use_optimise='wxUSE_OPTIMISE=no'
1977 fi
1978
1979else
1980
1981 LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
1982 if test "x$LINE" != x ; then
1983 eval "DEFAULT_$LINE"
1984 else
1985 no_cache=1
1986 fi
1987
1988 ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
1989
1990fi
1991
1992
1993 eval "$ac_cv_use_optimise"
1994 if test "$no_cache" != 1; then
1995 echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
1996 fi
1997
1998 if test "$wxUSE_OPTIMISE" = yes; then
1999 echo "$ac_t""yes" 1>&6
2000 else
2001 echo "$ac_t""no" 1>&6
2002 fi
2003
2004
2005 echo $ac_n "checking "for --enable-debug"""... $ac_c" 1>&6
422107f9 2006echo "configure:2007: checking "for --enable-debug"" >&5
10f2d63a
VZ
2007 no_cache=0
2008 # Check whether --enable-debug or --disable-debug was given.
2009if test "${enable_debug+set}" = set; then
2010 enableval="$enable_debug"
2011
2012 if test "$enableval" = yes; then
2013 ac_cv_use_debug='wxUSE_DEBUG=yes'
2014 else
2015 ac_cv_use_debug='wxUSE_DEBUG=no'
2016 fi
2017
2018else
2019
2020 LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
2021 if test "x$LINE" != x ; then
2022 eval "DEFAULT_$LINE"
2023 else
2024 no_cache=1
2025 fi
2026
2027 ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
2028
2029fi
2030
2031
2032 eval "$ac_cv_use_debug"
2033 if test "$no_cache" != 1; then
2034 echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
2035 fi
2036
2037 if test "$wxUSE_DEBUG" = yes; then
2038 echo "$ac_t""yes" 1>&6
2039 else
2040 echo "$ac_t""no" 1>&6
2041 fi
2042
2043
2044if test "$wxUSE_DEBUG" = "yes"; then
2045 DEFAULT_wxUSE_DEBUG_FLAG=yes
2046 DEFAULT_wxUSE_DEBUG_INFO=yes
2047elif test "$wxUSE_DEBUG" = "no"; then
2048 DEFAULT_wxUSE_DEBUG_FLAG=no
2049 DEFAULT_wxUSE_DEBUG_INFO=no
2050fi
2051
2052
2053 echo $ac_n "checking "for --enable-debug_flag"""... $ac_c" 1>&6
422107f9 2054echo "configure:2055: checking "for --enable-debug_flag"" >&5
10f2d63a
VZ
2055 no_cache=0
2056 # Check whether --enable-debug_flag or --disable-debug_flag was given.
2057if test "${enable_debug_flag+set}" = set; then
2058 enableval="$enable_debug_flag"
2059
2060 if test "$enableval" = yes; then
2061 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
2062 else
2063 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
2064 fi
2065
2066else
2067
2068 LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
2069 if test "x$LINE" != x ; then
2070 eval "DEFAULT_$LINE"
2071 else
2072 no_cache=1
2073 fi
2074
2075 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
2076
2077fi
2078
2079
2080 eval "$ac_cv_use_debug_flag"
2081 if test "$no_cache" != 1; then
2082 echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
2083 fi
2084
2085 if test "$wxUSE_DEBUG_FLAG" = yes; then
2086 echo "$ac_t""yes" 1>&6
2087 else
2088 echo "$ac_t""no" 1>&6
2089 fi
2090
2091
2092 echo $ac_n "checking "for --enable-debug_info"""... $ac_c" 1>&6
422107f9 2093echo "configure:2094: checking "for --enable-debug_info"" >&5
10f2d63a
VZ
2094 no_cache=0
2095 # Check whether --enable-debug_info or --disable-debug_info was given.
2096if test "${enable_debug_info+set}" = set; then
2097 enableval="$enable_debug_info"
2098
2099 if test "$enableval" = yes; then
2100 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
2101 else
2102 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
2103 fi
2104
2105else
2106
2107 LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
2108 if test "x$LINE" != x ; then
2109 eval "DEFAULT_$LINE"
2110 else
2111 no_cache=1
2112 fi
2113
2114 ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
2115
2116fi
2117
2118
2119 eval "$ac_cv_use_debug_info"
2120 if test "$no_cache" != 1; then
2121 echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
2122 fi
2123
2124 if test "$wxUSE_DEBUG_INFO" = yes; then
2125 echo "$ac_t""yes" 1>&6
2126 else
2127 echo "$ac_t""no" 1>&6
2128 fi
2129
2130
2131 echo $ac_n "checking "for --enable-debug_gdb"""... $ac_c" 1>&6
422107f9 2132echo "configure:2133: checking "for --enable-debug_gdb"" >&5
10f2d63a
VZ
2133 no_cache=0
2134 # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
2135if test "${enable_debug_gdb+set}" = set; then
2136 enableval="$enable_debug_gdb"
2137
2138 if test "$enableval" = yes; then
2139 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
2140 else
2141 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
2142 fi
2143
2144else
2145
2146 LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
2147 if test "x$LINE" != x ; then
2148 eval "DEFAULT_$LINE"
2149 else
2150 no_cache=1
2151 fi
2152
2153 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
2154
2155fi
2156
2157
2158 eval "$ac_cv_use_debug_gdb"
2159 if test "$no_cache" != 1; then
2160 echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
2161 fi
2162
2163 if test "$wxUSE_DEBUG_GDB" = yes; then
2164 echo "$ac_t""yes" 1>&6
2165 else
2166 echo "$ac_t""no" 1>&6
2167 fi
2168
2169
2170 echo $ac_n "checking "for --enable-debug_cntxt"""... $ac_c" 1>&6
422107f9 2171echo "configure:2172: checking "for --enable-debug_cntxt"" >&5
10f2d63a
VZ
2172 no_cache=0
2173 # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
2174if test "${enable_debug_cntxt+set}" = set; then
2175 enableval="$enable_debug_cntxt"
2176
2177 if test "$enableval" = yes; then
2178 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
2179 else
2180 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
2181 fi
2182
2183else
2184
2185 LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
2186 if test "x$LINE" != x ; then
2187 eval "DEFAULT_$LINE"
2188 else
2189 no_cache=1
2190 fi
2191
2192 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
2193
2194fi
2195
2196
2197 eval "$ac_cv_use_debug_cntxt"
2198 if test "$no_cache" != 1; then
2199 echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
2200 fi
2201
2202 if test "$wxUSE_DEBUG_CONTEXT" = yes; then
2203 echo "$ac_t""yes" 1>&6
2204 else
2205 echo "$ac_t""no" 1>&6
2206 fi
2207
2208
2209 echo $ac_n "checking "for --enable-mem_tracing"""... $ac_c" 1>&6
422107f9 2210echo "configure:2211: checking "for --enable-mem_tracing"" >&5
10f2d63a
VZ
2211 no_cache=0
2212 # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
2213if test "${enable_mem_tracing+set}" = set; then
2214 enableval="$enable_mem_tracing"
2215
2216 if test "$enableval" = yes; then
2217 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
2218 else
2219 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
2220 fi
2221
2222else
2223
2224 LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
2225 if test "x$LINE" != x ; then
2226 eval "DEFAULT_$LINE"
2227 else
2228 no_cache=1
2229 fi
2230
2231 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
2232
2233fi
2234
2235
2236 eval "$ac_cv_use_mem_tracing"
2237 if test "$no_cache" != 1; then
2238 echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
2239 fi
2240
2241 if test "$wxUSE_MEM_TRACING" = yes; then
2242 echo "$ac_t""yes" 1>&6
2243 else
2244 echo "$ac_t""no" 1>&6
2245 fi
2246
2247
2248 echo $ac_n "checking "for --enable-profile"""... $ac_c" 1>&6
422107f9 2249echo "configure:2250: checking "for --enable-profile"" >&5
10f2d63a
VZ
2250 no_cache=0
2251 # Check whether --enable-profile or --disable-profile was given.
2252if test "${enable_profile+set}" = set; then
2253 enableval="$enable_profile"
2254
2255 if test "$enableval" = yes; then
2256 ac_cv_use_profile='wxUSE_PROFILE=yes'
2257 else
2258 ac_cv_use_profile='wxUSE_PROFILE=no'
2259 fi
2260
2261else
2262
2263 LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
2264 if test "x$LINE" != x ; then
2265 eval "DEFAULT_$LINE"
2266 else
2267 no_cache=1
2268 fi
2269
2270 ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
2271
2272fi
2273
2274
2275 eval "$ac_cv_use_profile"
2276 if test "$no_cache" != 1; then
2277 echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
2278 fi
2279
2280 if test "$wxUSE_PROFILE" = yes; then
2281 echo "$ac_t""yes" 1>&6
2282 else
2283 echo "$ac_t""no" 1>&6
2284 fi
2285
2286
2287 echo $ac_n "checking "for --enable-no_rtti"""... $ac_c" 1>&6
422107f9 2288echo "configure:2289: checking "for --enable-no_rtti"" >&5
10f2d63a
VZ
2289 no_cache=0
2290 # Check whether --enable-no_rtti or --disable-no_rtti was given.
2291if test "${enable_no_rtti+set}" = set; then
2292 enableval="$enable_no_rtti"
2293
2294 if test "$enableval" = yes; then
2295 ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
2296 else
2297 ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
2298 fi
2299
2300else
2301
2302 LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
2303 if test "x$LINE" != x ; then
2304 eval "DEFAULT_$LINE"
2305 else
2306 no_cache=1
2307 fi
2308
2309 ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
2310
2311fi
2312
2313
2314 eval "$ac_cv_use_no_rtti"
2315 if test "$no_cache" != 1; then
2316 echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
2317 fi
2318
2319 if test "$wxUSE_NO_RTTI" = yes; then
2320 echo "$ac_t""yes" 1>&6
2321 else
2322 echo "$ac_t""no" 1>&6
2323 fi
2324
2325
2326 echo $ac_n "checking "for --enable-no_exceptions"""... $ac_c" 1>&6
422107f9 2327echo "configure:2328: checking "for --enable-no_exceptions"" >&5
10f2d63a
VZ
2328 no_cache=0
2329 # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
2330if test "${enable_no_exceptions+set}" = set; then
2331 enableval="$enable_no_exceptions"
2332
2333 if test "$enableval" = yes; then
2334 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
2335 else
2336 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
2337 fi
2338
2339else
2340
2341 LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
2342 if test "x$LINE" != x ; then
2343 eval "DEFAULT_$LINE"
2344 else
2345 no_cache=1
2346 fi
2347
2348 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
2349
2350fi
2351
2352
2353 eval "$ac_cv_use_no_exceptions"
2354 if test "$no_cache" != 1; then
2355 echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
2356 fi
2357
2358 if test "$wxUSE_NO_EXCEPTIONS" = yes; then
2359 echo "$ac_t""yes" 1>&6
2360 else
2361 echo "$ac_t""no" 1>&6
2362 fi
2363
2364
2365 echo $ac_n "checking "for --enable-permissive"""... $ac_c" 1>&6
422107f9 2366echo "configure:2367: checking "for --enable-permissive"" >&5
10f2d63a
VZ
2367 no_cache=0
2368 # Check whether --enable-permissive or --disable-permissive was given.
2369if test "${enable_permissive+set}" = set; then
2370 enableval="$enable_permissive"
2371
2372 if test "$enableval" = yes; then
2373 ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
2374 else
2375 ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
2376 fi
2377
2378else
2379
2380 LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
2381 if test "x$LINE" != x ; then
2382 eval "DEFAULT_$LINE"
2383 else
2384 no_cache=1
2385 fi
2386
2387 ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
2388
2389fi
2390
2391
2392 eval "$ac_cv_use_permissive"
2393 if test "$no_cache" != 1; then
2394 echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
2395 fi
2396
2397 if test "$wxUSE_PERMISSIVE" = yes; then
2398 echo "$ac_t""yes" 1>&6
2399 else
2400 echo "$ac_t""no" 1>&6
2401 fi
2402
2403
2404 echo $ac_n "checking "for --enable-no_deps"""... $ac_c" 1>&6
422107f9 2405echo "configure:2406: checking "for --enable-no_deps"" >&5
10f2d63a
VZ
2406 no_cache=0
2407 # Check whether --enable-no_deps or --disable-no_deps was given.
2408if test "${enable_no_deps+set}" = set; then
2409 enableval="$enable_no_deps"
2410
2411 if test "$enableval" = yes; then
2412 ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
2413 else
2414 ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
2415 fi
2416
2417else
2418
2419 LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
2420 if test "x$LINE" != x ; then
2421 eval "DEFAULT_$LINE"
2422 else
2423 no_cache=1
2424 fi
2425
2426 ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
2427
2428fi
2429
2430
2431 eval "$ac_cv_use_no_deps"
2432 if test "$no_cache" != 1; then
2433 echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
2434 fi
2435
2436 if test "$wxUSE_NO_DEPS" = yes; then
2437 echo "$ac_t""yes" 1>&6
2438 else
2439 echo "$ac_t""no" 1>&6
2440 fi
2441
2442
2443
2444
2445 echo $ac_n "checking "for --enable-intl"""... $ac_c" 1>&6
422107f9 2446echo "configure:2447: checking "for --enable-intl"" >&5
10f2d63a
VZ
2447 no_cache=0
2448 # Check whether --enable-intl or --disable-intl was given.
2449if test "${enable_intl+set}" = set; then
2450 enableval="$enable_intl"
2451
2452 if test "$enableval" = yes; then
2453 ac_cv_use_intl='wxUSE_INTL=yes'
2454 else
2455 ac_cv_use_intl='wxUSE_INTL=no'
2456 fi
2457
2458else
2459
2460 LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
2461 if test "x$LINE" != x ; then
2462 eval "DEFAULT_$LINE"
2463 else
2464 no_cache=1
2465 fi
2466
2467 ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
2468
2469fi
2470
2471
2472 eval "$ac_cv_use_intl"
2473 if test "$no_cache" != 1; then
2474 echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
2475 fi
2476
2477 if test "$wxUSE_INTL" = yes; then
2478 echo "$ac_t""yes" 1>&6
2479 else
2480 echo "$ac_t""no" 1>&6
2481 fi
2482
2483
2484 echo $ac_n "checking "for --enable-config"""... $ac_c" 1>&6
422107f9 2485echo "configure:2486: checking "for --enable-config"" >&5
10f2d63a
VZ
2486 no_cache=0
2487 # Check whether --enable-config or --disable-config was given.
2488if test "${enable_config+set}" = set; then
2489 enableval="$enable_config"
2490
2491 if test "$enableval" = yes; then
2492 ac_cv_use_config='wxUSE_CONFIG=yes'
2493 else
2494 ac_cv_use_config='wxUSE_CONFIG=no'
2495 fi
2496
2497else
2498
2499 LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
2500 if test "x$LINE" != x ; then
2501 eval "DEFAULT_$LINE"
2502 else
2503 no_cache=1
2504 fi
2505
2506 ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
2507
2508fi
2509
2510
2511 eval "$ac_cv_use_config"
2512 if test "$no_cache" != 1; then
2513 echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
2514 fi
2515
2516 if test "$wxUSE_CONFIG" = yes; then
2517 echo "$ac_t""yes" 1>&6
2518 else
2519 echo "$ac_t""no" 1>&6
2520 fi
2521
2522
b12915c1
VZ
2523if test "$wxUSE_GUI" = "yes"; then
2524
10f2d63a 2525 echo $ac_n "checking "for --enable-sockets"""... $ac_c" 1>&6
422107f9 2526echo "configure:2527: checking "for --enable-sockets"" >&5
10f2d63a
VZ
2527 no_cache=0
2528 # Check whether --enable-sockets or --disable-sockets was given.
2529if test "${enable_sockets+set}" = set; then
2530 enableval="$enable_sockets"
2531
2532 if test "$enableval" = yes; then
2533 ac_cv_use_sockets='wxUSE_SOCKETS=yes'
2534 else
2535 ac_cv_use_sockets='wxUSE_SOCKETS=no'
2536 fi
2537
2538else
2539
2540 LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
2541 if test "x$LINE" != x ; then
2542 eval "DEFAULT_$LINE"
2543 else
2544 no_cache=1
2545 fi
2546
2547 ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
2548
2549fi
2550
2551
2552 eval "$ac_cv_use_sockets"
2553 if test "$no_cache" != 1; then
2554 echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
2555 fi
2556
2557 if test "$wxUSE_SOCKETS" = yes; then
2558 echo "$ac_t""yes" 1>&6
2559 else
2560 echo "$ac_t""no" 1>&6
2561 fi
2562
b12915c1
VZ
2563else
2564wxUSE_SOCKETS=no
2565fi
2566
10f2d63a
VZ
2567
2568 echo $ac_n "checking "for --enable-dialupman"""... $ac_c" 1>&6
422107f9 2569echo "configure:2570: checking "for --enable-dialupman"" >&5
10f2d63a
VZ
2570 no_cache=0
2571 # Check whether --enable-dialupman or --disable-dialupman was given.
2572if test "${enable_dialupman+set}" = set; then
2573 enableval="$enable_dialupman"
2574
2575 if test "$enableval" = yes; then
2576 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
2577 else
2578 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
2579 fi
2580
2581else
2582
2583 LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
2584 if test "x$LINE" != x ; then
2585 eval "DEFAULT_$LINE"
2586 else
2587 no_cache=1
2588 fi
2589
2590 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
2591
2592fi
2593
2594
2595 eval "$ac_cv_use_dialupman"
2596 if test "$no_cache" != 1; then
2597 echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
2598 fi
2599
2600 if test "$wxUSE_DIALUP_MANAGER" = yes; then
2601 echo "$ac_t""yes" 1>&6
2602 else
2603 echo "$ac_t""no" 1>&6
2604 fi
2605
2606
2607 echo $ac_n "checking "for --enable-ipc"""... $ac_c" 1>&6
422107f9 2608echo "configure:2609: checking "for --enable-ipc"" >&5
10f2d63a
VZ
2609 no_cache=0
2610 # Check whether --enable-ipc or --disable-ipc was given.
2611if test "${enable_ipc+set}" = set; then
2612 enableval="$enable_ipc"
2613
2614 if test "$enableval" = yes; then
2615 ac_cv_use_ipc='wxUSE_IPC=yes'
2616 else
2617 ac_cv_use_ipc='wxUSE_IPC=no'
2618 fi
2619
2620else
2621
2622 LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
2623 if test "x$LINE" != x ; then
2624 eval "DEFAULT_$LINE"
2625 else
2626 no_cache=1
2627 fi
2628
2629 ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
2630
2631fi
2632
2633
2634 eval "$ac_cv_use_ipc"
2635 if test "$no_cache" != 1; then
2636 echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
2637 fi
2638
2639 if test "$wxUSE_IPC" = yes; then
2640 echo "$ac_t""yes" 1>&6
2641 else
2642 echo "$ac_t""no" 1>&6
2643 fi
2644
2645
2646 echo $ac_n "checking "for --enable-apple_ieee"""... $ac_c" 1>&6
422107f9 2647echo "configure:2648: checking "for --enable-apple_ieee"" >&5
10f2d63a
VZ
2648 no_cache=0
2649 # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
2650if test "${enable_apple_ieee+set}" = set; then
2651 enableval="$enable_apple_ieee"
2652
2653 if test "$enableval" = yes; then
2654 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
2655 else
2656 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
2657 fi
2658
2659else
2660
2661 LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
2662 if test "x$LINE" != x ; then
2663 eval "DEFAULT_$LINE"
2664 else
2665 no_cache=1
2666 fi
2667
2668 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
2669
2670fi
2671
2672
2673 eval "$ac_cv_use_apple_ieee"
2674 if test "$no_cache" != 1; then
2675 echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
2676 fi
2677
2678 if test "$wxUSE_APPLE_IEEE" = yes; then
2679 echo "$ac_t""yes" 1>&6
2680 else
2681 echo "$ac_t""no" 1>&6
2682 fi
2683
2684
2685 echo $ac_n "checking "for --enable-timedate"""... $ac_c" 1>&6
422107f9 2686echo "configure:2687: checking "for --enable-timedate"" >&5
10f2d63a
VZ
2687 no_cache=0
2688 # Check whether --enable-timedate or --disable-timedate was given.
2689if test "${enable_timedate+set}" = set; then
2690 enableval="$enable_timedate"
2691
2692 if test "$enableval" = yes; then
2693 ac_cv_use_timedate='wxUSE_TIMEDATE=yes'
2694 else
2695 ac_cv_use_timedate='wxUSE_TIMEDATE=no'
2696 fi
2697
2698else
2699
2700 LINE=`grep "wxUSE_TIMEDATE" ${wx_arg_cache_file}`
2701 if test "x$LINE" != x ; then
2702 eval "DEFAULT_$LINE"
2703 else
2704 no_cache=1
2705 fi
2706
2707 ac_cv_use_timedate='wxUSE_TIMEDATE='$DEFAULT_wxUSE_TIMEDATE
2708
2709fi
2710
2711
2712 eval "$ac_cv_use_timedate"
2713 if test "$no_cache" != 1; then
2714 echo $ac_cv_use_timedate >> ${wx_arg_cache_file}.tmp
2715 fi
2716
2717 if test "$wxUSE_TIMEDATE" = yes; then
2718 echo "$ac_t""yes" 1>&6
2719 else
2720 echo "$ac_t""no" 1>&6
2721 fi
2722
2723
2724 echo $ac_n "checking "for --enable-wave"""... $ac_c" 1>&6
422107f9 2725echo "configure:2726: checking "for --enable-wave"" >&5
10f2d63a
VZ
2726 no_cache=0
2727 # Check whether --enable-wave or --disable-wave was given.
2728if test "${enable_wave+set}" = set; then
2729 enableval="$enable_wave"
2730
2731 if test "$enableval" = yes; then
2732 ac_cv_use_wave='wxUSE_WAVE=yes'
2733 else
2734 ac_cv_use_wave='wxUSE_WAVE=no'
2735 fi
2736
2737else
2738
2739 LINE=`grep "wxUSE_WAVE" ${wx_arg_cache_file}`
2740 if test "x$LINE" != x ; then
2741 eval "DEFAULT_$LINE"
2742 else
2743 no_cache=1
2744 fi
2745
2746 ac_cv_use_wave='wxUSE_WAVE='$DEFAULT_wxUSE_WAVE
2747
2748fi
2749
2750
2751 eval "$ac_cv_use_wave"
2752 if test "$no_cache" != 1; then
2753 echo $ac_cv_use_wave >> ${wx_arg_cache_file}.tmp
2754 fi
2755
2756 if test "$wxUSE_WAVE" = yes; then
2757 echo "$ac_t""yes" 1>&6
2758 else
2759 echo "$ac_t""no" 1>&6
2760 fi
2761
2762
2763 echo $ac_n "checking "for --enable-fraction"""... $ac_c" 1>&6
422107f9 2764echo "configure:2765: checking "for --enable-fraction"" >&5
10f2d63a
VZ
2765 no_cache=0
2766 # Check whether --enable-fraction or --disable-fraction was given.
2767if test "${enable_fraction+set}" = set; then
2768 enableval="$enable_fraction"
2769
2770 if test "$enableval" = yes; then
2771 ac_cv_use_fraction='wxUSE_FRACTION=yes'
2772 else
2773 ac_cv_use_fraction='wxUSE_FRACTION=no'
2774 fi
2775
2776else
2777
2778 LINE=`grep "wxUSE_FRACTION" ${wx_arg_cache_file}`
2779 if test "x$LINE" != x ; then
2780 eval "DEFAULT_$LINE"
2781 else
2782 no_cache=1
2783 fi
2784
2785 ac_cv_use_fraction='wxUSE_FRACTION='$DEFAULT_wxUSE_FRACTION
2786
2787fi
2788
2789
2790 eval "$ac_cv_use_fraction"
2791 if test "$no_cache" != 1; then
2792 echo $ac_cv_use_fraction >> ${wx_arg_cache_file}.tmp
2793 fi
2794
2795 if test "$wxUSE_FRACTION" = yes; then
2796 echo "$ac_t""yes" 1>&6
2797 else
2798 echo "$ac_t""no" 1>&6
2799 fi
2800
2801
2802 echo $ac_n "checking "for --enable-dynlib"""... $ac_c" 1>&6
422107f9 2803echo "configure:2804: checking "for --enable-dynlib"" >&5
10f2d63a
VZ
2804 no_cache=0
2805 # Check whether --enable-dynlib or --disable-dynlib was given.
2806if test "${enable_dynlib+set}" = set; then
2807 enableval="$enable_dynlib"
2808
2809 if test "$enableval" = yes; then
2810 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
2811 else
2812 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
2813 fi
2814
2815else
2816
2817 LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
2818 if test "x$LINE" != x ; then
2819 eval "DEFAULT_$LINE"
2820 else
2821 no_cache=1
2822 fi
2823
2824 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
2825
2826fi
2827
2828
2829 eval "$ac_cv_use_dynlib"
2830 if test "$no_cache" != 1; then
2831 echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
2832 fi
2833
2834 if test "$wxUSE_DYNLIB_CLASS" = yes; then
2835 echo "$ac_t""yes" 1>&6
2836 else
2837 echo "$ac_t""no" 1>&6
2838 fi
2839
2840
2841 echo $ac_n "checking "for --enable-longlong"""... $ac_c" 1>&6
422107f9 2842echo "configure:2843: checking "for --enable-longlong"" >&5
10f2d63a
VZ
2843 no_cache=0
2844 # Check whether --enable-longlong or --disable-longlong was given.
2845if test "${enable_longlong+set}" = set; then
2846 enableval="$enable_longlong"
2847
2848 if test "$enableval" = yes; then
2849 ac_cv_use_longlong='wxUSE_LONGLONG=yes'
2850 else
2851 ac_cv_use_longlong='wxUSE_LONGLONG=no'
2852 fi
2853
2854else
2855
2856 LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
2857 if test "x$LINE" != x ; then
2858 eval "DEFAULT_$LINE"
2859 else
2860 no_cache=1
2861 fi
2862
2863 ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
2864
2865fi
2866
2867
2868 eval "$ac_cv_use_longlong"
2869 if test "$no_cache" != 1; then
2870 echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
2871 fi
2872
2873 if test "$wxUSE_LONGLONG" = yes; then
2874 echo "$ac_t""yes" 1>&6
2875 else
2876 echo "$ac_t""no" 1>&6
2877 fi
2878
2879
2880 echo $ac_n "checking "for --enable-log"""... $ac_c" 1>&6
422107f9 2881echo "configure:2882: checking "for --enable-log"" >&5
10f2d63a
VZ
2882 no_cache=0
2883 # Check whether --enable-log or --disable-log was given.
2884if test "${enable_log+set}" = set; then
2885 enableval="$enable_log"
2886
2887 if test "$enableval" = yes; then
2888 ac_cv_use_log='wxUSE_LOG=yes'
2889 else
2890 ac_cv_use_log='wxUSE_LOG=no'
2891 fi
2892
2893else
2894
2895 LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
2896 if test "x$LINE" != x ; then
2897 eval "DEFAULT_$LINE"
2898 else
2899 no_cache=1
2900 fi
2901
2902 ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
2903
2904fi
2905
2906
2907 eval "$ac_cv_use_log"
2908 if test "$no_cache" != 1; then
2909 echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
2910 fi
2911
2912 if test "$wxUSE_LOG" = yes; then
2913 echo "$ac_t""yes" 1>&6
2914 else
2915 echo "$ac_t""no" 1>&6
2916 fi
2917
2918
2919 echo $ac_n "checking "for --enable-streams"""... $ac_c" 1>&6
422107f9 2920echo "configure:2921: checking "for --enable-streams"" >&5
10f2d63a
VZ
2921 no_cache=0
2922 # Check whether --enable-streams or --disable-streams was given.
2923if test "${enable_streams+set}" = set; then
2924 enableval="$enable_streams"
2925
2926 if test "$enableval" = yes; then
2927 ac_cv_use_streams='wxUSE_STREAMS=yes'
2928 else
2929 ac_cv_use_streams='wxUSE_STREAMS=no'
2930 fi
2931
2932else
2933
2934 LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
2935 if test "x$LINE" != x ; then
2936 eval "DEFAULT_$LINE"
2937 else
2938 no_cache=1
2939 fi
2940
2941 ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
2942
2943fi
2944
2945
2946 eval "$ac_cv_use_streams"
2947 if test "$no_cache" != 1; then
2948 echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
2949 fi
2950
2951 if test "$wxUSE_STREAMS" = yes; then
2952 echo "$ac_t""yes" 1>&6
2953 else
2954 echo "$ac_t""no" 1>&6
2955 fi
2956
2957
2958 echo $ac_n "checking "for --enable-file"""... $ac_c" 1>&6
422107f9 2959echo "configure:2960: checking "for --enable-file"" >&5
10f2d63a
VZ
2960 no_cache=0
2961 # Check whether --enable-file or --disable-file was given.
2962if test "${enable_file+set}" = set; then
2963 enableval="$enable_file"
2964
2965 if test "$enableval" = yes; then
2966 ac_cv_use_file='wxUSE_FILE=yes'
2967 else
2968 ac_cv_use_file='wxUSE_FILE=no'
2969 fi
2970
2971else
2972
2973 LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
2974 if test "x$LINE" != x ; then
2975 eval "DEFAULT_$LINE"
2976 else
2977 no_cache=1
2978 fi
2979
2980 ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
2981
2982fi
2983
2984
2985 eval "$ac_cv_use_file"
2986 if test "$no_cache" != 1; then
2987 echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
2988 fi
2989
2990 if test "$wxUSE_FILE" = yes; then
2991 echo "$ac_t""yes" 1>&6
2992 else
2993 echo "$ac_t""no" 1>&6
2994 fi
2995
2996
2997 echo $ac_n "checking "for --enable-textfile"""... $ac_c" 1>&6
422107f9 2998echo "configure:2999: checking "for --enable-textfile"" >&5
10f2d63a
VZ
2999 no_cache=0
3000 # Check whether --enable-textfile or --disable-textfile was given.
3001if test "${enable_textfile+set}" = set; then
3002 enableval="$enable_textfile"
3003
3004 if test "$enableval" = yes; then
3005 ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
3006 else
3007 ac_cv_use_textfile='wxUSE_TEXTFILE=no'
3008 fi
3009
3010else
3011
3012 LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
3013 if test "x$LINE" != x ; then
3014 eval "DEFAULT_$LINE"
3015 else
3016 no_cache=1
3017 fi
3018
3019 ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
3020
3021fi
3022
3023
3024 eval "$ac_cv_use_textfile"
3025 if test "$no_cache" != 1; then
3026 echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
3027 fi
3028
3029 if test "$wxUSE_TEXTFILE" = yes; then
3030 echo "$ac_t""yes" 1>&6
3031 else
3032 echo "$ac_t""no" 1>&6
3033 fi
3034
3035
3036 echo $ac_n "checking "for --enable-unicode"""... $ac_c" 1>&6
422107f9 3037echo "configure:3038: checking "for --enable-unicode"" >&5
10f2d63a
VZ
3038 no_cache=0
3039 # Check whether --enable-unicode or --disable-unicode was given.
3040if test "${enable_unicode+set}" = set; then
3041 enableval="$enable_unicode"
3042
3043 if test "$enableval" = yes; then
3044 ac_cv_use_unicode='wxUSE_UNICODE=yes'
3045 else
3046 ac_cv_use_unicode='wxUSE_UNICODE=no'
3047 fi
3048
3049else
3050
3051 LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
3052 if test "x$LINE" != x ; then
3053 eval "DEFAULT_$LINE"
3054 else
3055 no_cache=1
3056 fi
3057
3058 ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
3059
3060fi
3061
3062
3063 eval "$ac_cv_use_unicode"
3064 if test "$no_cache" != 1; then
3065 echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
3066 fi
3067
3068 if test "$wxUSE_UNICODE" = yes; then
3069 echo "$ac_t""yes" 1>&6
3070 else
3071 echo "$ac_t""no" 1>&6
3072 fi
3073
3074
3075 echo $ac_n "checking "for --enable-wcsrtombs"""... $ac_c" 1>&6
422107f9 3076echo "configure:3077: checking "for --enable-wcsrtombs"" >&5
10f2d63a
VZ
3077 no_cache=0
3078 # Check whether --enable-wcsrtombs or --disable-wcsrtombs was given.
3079if test "${enable_wcsrtombs+set}" = set; then
3080 enableval="$enable_wcsrtombs"
3081
3082 if test "$enableval" = yes; then
3083 ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS=yes'
3084 else
3085 ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS=no'
3086 fi
3087
3088else
3089
3090 LINE=`grep "wxUSE_WCSRTOMBS" ${wx_arg_cache_file}`
3091 if test "x$LINE" != x ; then
3092 eval "DEFAULT_$LINE"
3093 else
3094 no_cache=1
3095 fi
3096
3097 ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS='$DEFAULT_wxUSE_WCSRTOMBS
3098
3099fi
3100
3101
3102 eval "$ac_cv_use_wcsrtombs"
3103 if test "$no_cache" != 1; then
3104 echo $ac_cv_use_wcsrtombs >> ${wx_arg_cache_file}.tmp
3105 fi
3106
3107 if test "$wxUSE_WCSRTOMBS" = yes; then
3108 echo "$ac_t""yes" 1>&6
3109 else
3110 echo "$ac_t""no" 1>&6
3111 fi
3112
3113
3114 echo $ac_n "checking "for --enable-wxprintfv"""... $ac_c" 1>&6
422107f9 3115echo "configure:3116: checking "for --enable-wxprintfv"" >&5
10f2d63a
VZ
3116 no_cache=0
3117 # Check whether --enable-wxprintfv or --disable-wxprintfv was given.
3118if test "${enable_wxprintfv+set}" = set; then
3119 enableval="$enable_wxprintfv"
3120
3121 if test "$enableval" = yes; then
3122 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes'
3123 else
3124 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no'
3125 fi
3126
3127else
3128
3129 LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}`
3130 if test "x$LINE" != x ; then
3131 eval "DEFAULT_$LINE"
3132 else
3133 no_cache=1
3134 fi
3135
3136 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF
3137
3138fi
3139
3140
3141 eval "$ac_cv_use_wxprintfv"
3142 if test "$no_cache" != 1; then
3143 echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp
3144 fi
3145
3146 if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then
3147 echo "$ac_t""yes" 1>&6
3148 else
3149 echo "$ac_t""no" 1>&6
3150 fi
3151
3152
3153 echo $ac_n "checking "for --enable-joystick"""... $ac_c" 1>&6
422107f9 3154echo "configure:3155: checking "for --enable-joystick"" >&5
10f2d63a
VZ
3155 no_cache=0
3156 # Check whether --enable-joystick or --disable-joystick was given.
3157if test "${enable_joystick+set}" = set; then
3158 enableval="$enable_joystick"
3159
3160 if test "$enableval" = yes; then
3161 ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
3162 else
3163 ac_cv_use_joystick='wxUSE_JOYSTICK=no'
3164 fi
3165
3166else
3167
3168 LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
3169 if test "x$LINE" != x ; then
3170 eval "DEFAULT_$LINE"
3171 else
3172 no_cache=1
3173 fi
3174
3175 ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
3176
3177fi
3178
3179
3180 eval "$ac_cv_use_joystick"
3181 if test "$no_cache" != 1; then
3182 echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
3183 fi
3184
3185 if test "$wxUSE_JOYSTICK" = yes; then
3186 echo "$ac_t""yes" 1>&6
3187 else
3188 echo "$ac_t""no" 1>&6
3189 fi
3190
3191
3192 echo $ac_n "checking "for --enable-std_iostreams"""... $ac_c" 1>&6
422107f9 3193echo "configure:3194: checking "for --enable-std_iostreams"" >&5
10f2d63a
VZ
3194 no_cache=0
3195 # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
3196if test "${enable_std_iostreams+set}" = set; then
3197 enableval="$enable_std_iostreams"
3198
3199 if test "$enableval" = yes; then
3200 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
3201 else
3202 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
3203 fi
3204
3205else
3206
3207 LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
3208 if test "x$LINE" != x ; then
3209 eval "DEFAULT_$LINE"
3210 else
3211 no_cache=1
3212 fi
3213
3214 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
3215
3216fi
3217
3218
3219 eval "$ac_cv_use_std_iostreams"
3220 if test "$no_cache" != 1; then
3221 echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
3222 fi
3223
3224 if test "$wxUSE_STD_IOSTREAM" = yes; then
3225 echo "$ac_t""yes" 1>&6
3226 else
3227 echo "$ac_t""no" 1>&6
3228 fi
3229
3230
24528b0c 3231 echo $ac_n "checking "for --enable-filesystem"""... $ac_c" 1>&6
422107f9 3232echo "configure:3233: checking "for --enable-filesystem"" >&5
24528b0c
VS
3233 no_cache=0
3234 # Check whether --enable-filesystem or --disable-filesystem was given.
3235if test "${enable_filesystem+set}" = set; then
3236 enableval="$enable_filesystem"
3237
3238 if test "$enableval" = yes; then
3239 ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
3240 else
3241 ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
3242 fi
3243
3244else
3245
3246 LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}`
3247 if test "x$LINE" != x ; then
3248 eval "DEFAULT_$LINE"
3249 else
3250 no_cache=1
3251 fi
3252
3253 ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
3254
3255fi
3256
3257
3258 eval "$ac_cv_use_filesystem"
3259 if test "$no_cache" != 1; then
3260 echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
3261 fi
3262
3263 if test "$wxUSE_FILESYSTEM" = yes; then
3264 echo "$ac_t""yes" 1>&6
3265 else
3266 echo "$ac_t""no" 1>&6
3267 fi
3268
3269
10f2d63a 3270 echo $ac_n "checking "for --enable-fs_inet"""... $ac_c" 1>&6
422107f9 3271echo "configure:3272: checking "for --enable-fs_inet"" >&5
10f2d63a
VZ
3272 no_cache=0
3273 # Check whether --enable-fs_inet or --disable-fs_inet was given.
3274if test "${enable_fs_inet+set}" = set; then
3275 enableval="$enable_fs_inet"
3276
3277 if test "$enableval" = yes; then
3278 ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
3279 else
3280 ac_cv_use_fs_inet='wxUSE_FS_INET=no'
3281 fi
3282
3283else
3284
3285 LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
3286 if test "x$LINE" != x ; then
3287 eval "DEFAULT_$LINE"
3288 else
3289 no_cache=1
3290 fi
3291
3292 ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
3293
3294fi
3295
3296
3297 eval "$ac_cv_use_fs_inet"
3298 if test "$no_cache" != 1; then
3299 echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
3300 fi
3301
3302 if test "$wxUSE_FS_INET" = yes; then
3303 echo "$ac_t""yes" 1>&6
3304 else
3305 echo "$ac_t""no" 1>&6
3306 fi
3307
3308
3309 echo $ac_n "checking "for --enable-fs_zip"""... $ac_c" 1>&6
422107f9 3310echo "configure:3311: checking "for --enable-fs_zip"" >&5
10f2d63a
VZ
3311 no_cache=0
3312 # Check whether --enable-fs_zip or --disable-fs_zip was given.
3313if test "${enable_fs_zip+set}" = set; then
3314 enableval="$enable_fs_zip"
3315
3316 if test "$enableval" = yes; then
3317 ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
3318 else
3319 ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
3320 fi
3321
3322else
3323
3324 LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
3325 if test "x$LINE" != x ; then
3326 eval "DEFAULT_$LINE"
3327 else
3328 no_cache=1
3329 fi
3330
3331 ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
3332
3333fi
3334
3335
3336 eval "$ac_cv_use_fs_zip"
3337 if test "$no_cache" != 1; then
3338 echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
3339 fi
3340
3341 if test "$wxUSE_FS_ZIP" = yes; then
3342 echo "$ac_t""yes" 1>&6
3343 else
3344 echo "$ac_t""no" 1>&6
3345 fi
3346
3347
3348 echo $ac_n "checking "for --enable-zipstream"""... $ac_c" 1>&6
422107f9 3349echo "configure:3350: checking "for --enable-zipstream"" >&5
10f2d63a
VZ
3350 no_cache=0
3351 # Check whether --enable-zipstream or --disable-zipstream was given.
3352if test "${enable_zipstream+set}" = set; then
3353 enableval="$enable_zipstream"
3354
3355 if test "$enableval" = yes; then
3356 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
3357 else
3358 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
3359 fi
3360
3361else
3362
3363 LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
3364 if test "x$LINE" != x ; then
3365 eval "DEFAULT_$LINE"
3366 else
3367 no_cache=1
3368 fi
3369
3370 ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
3371
3372fi
3373
3374
3375 eval "$ac_cv_use_zipstream"
3376 if test "$no_cache" != 1; then
3377 echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
3378 fi
3379
3380 if test "$wxUSE_ZIPSTREAM" = yes; then
3381 echo "$ac_t""yes" 1>&6
3382 else
3383 echo "$ac_t""no" 1>&6
3384 fi
3385
3386
3387
3388
3389 echo $ac_n "checking "for --enable-threads"""... $ac_c" 1>&6
422107f9 3390echo "configure:3391: checking "for --enable-threads"" >&5
10f2d63a
VZ
3391 no_cache=0
3392 # Check whether --enable-threads or --disable-threads was given.
3393if test "${enable_threads+set}" = set; then
3394 enableval="$enable_threads"
3395
3396 if test "$enableval" = yes; then
3397 ac_cv_use_threads='wxUSE_THREADS=yes'
3398 else
3399 ac_cv_use_threads='wxUSE_THREADS=no'
3400 fi
3401
3402else
3403
3404 LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
3405 if test "x$LINE" != x ; then
3406 eval "DEFAULT_$LINE"
3407 else
3408 no_cache=1
3409 fi
3410
3411 ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
3412
3413fi
3414
3415
3416 eval "$ac_cv_use_threads"
3417 if test "$no_cache" != 1; then
3418 echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
3419 fi
3420
3421 if test "$wxUSE_THREADS" = yes; then
3422 echo "$ac_t""yes" 1>&6
3423 else
3424 echo "$ac_t""no" 1>&6
3425 fi
3426
3427
3428 echo $ac_n "checking "for --enable-serial"""... $ac_c" 1>&6
422107f9 3429echo "configure:3430: checking "for --enable-serial"" >&5
10f2d63a
VZ
3430 no_cache=0
3431 # Check whether --enable-serial or --disable-serial was given.
3432if test "${enable_serial+set}" = set; then
3433 enableval="$enable_serial"
3434
3435 if test "$enableval" = yes; then
3436 ac_cv_use_serial='wxUSE_SERIAL=yes'
3437 else
3438 ac_cv_use_serial='wxUSE_SERIAL=no'
3439 fi
3440
3441else
3442
3443 LINE=`grep "wxUSE_SERIAL" ${wx_arg_cache_file}`
3444 if test "x$LINE" != x ; then
3445 eval "DEFAULT_$LINE"
3446 else
3447 no_cache=1
3448 fi
3449
3450 ac_cv_use_serial='wxUSE_SERIAL='$DEFAULT_wxUSE_SERIAL
3451
3452fi
3453
3454
3455 eval "$ac_cv_use_serial"
3456 if test "$no_cache" != 1; then
3457 echo $ac_cv_use_serial >> ${wx_arg_cache_file}.tmp
3458 fi
3459
3460 if test "$wxUSE_SERIAL" = yes; then
3461 echo "$ac_t""yes" 1>&6
3462 else
3463 echo "$ac_t""no" 1>&6
3464 fi
3465
3466
b12915c1
VZ
3467if test "$wxUSE_GUI" = "yes"; then
3468
10f2d63a
VZ
3469
3470
3471 echo $ac_n "checking "for --enable-docview"""... $ac_c" 1>&6
422107f9 3472echo "configure:3473: checking "for --enable-docview"" >&5
10f2d63a
VZ
3473 no_cache=0
3474 # Check whether --enable-docview or --disable-docview was given.
3475if test "${enable_docview+set}" = set; then
3476 enableval="$enable_docview"
3477
3478 if test "$enableval" = yes; then
3479 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
3480 else
3481 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
3482 fi
3483
3484else
3485
3486 LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
3487 if test "x$LINE" != x ; then
3488 eval "DEFAULT_$LINE"
3489 else
3490 no_cache=1
3491 fi
3492
3493 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
3494
3495fi
3496
3497
3498 eval "$ac_cv_use_docview"
3499 if test "$no_cache" != 1; then
3500 echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
3501 fi
3502
3503 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
3504 echo "$ac_t""yes" 1>&6
3505 else
3506 echo "$ac_t""no" 1>&6
3507 fi
3508
3509
3510 echo $ac_n "checking "for --enable-help"""... $ac_c" 1>&6
422107f9 3511echo "configure:3512: checking "for --enable-help"" >&5
10f2d63a
VZ
3512 no_cache=0
3513 # Check whether --enable-help or --disable-help was given.
3514if test "${enable_help+set}" = set; then
3515 enableval="$enable_help"
3516
3517 if test "$enableval" = yes; then
3518 ac_cv_use_help='wxUSE_HELP=yes'
3519 else
3520 ac_cv_use_help='wxUSE_HELP=no'
3521 fi
3522
3523else
3524
3525 LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
3526 if test "x$LINE" != x ; then
3527 eval "DEFAULT_$LINE"
3528 else
3529 no_cache=1
3530 fi
3531
3532 ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
3533
3534fi
3535
3536
3537 eval "$ac_cv_use_help"
3538 if test "$no_cache" != 1; then
3539 echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
3540 fi
3541
3542 if test "$wxUSE_HELP" = yes; then
3543 echo "$ac_t""yes" 1>&6
3544 else
3545 echo "$ac_t""no" 1>&6
3546 fi
3547
3548
3549 echo $ac_n "checking "for --enable-constraints"""... $ac_c" 1>&6
422107f9 3550echo "configure:3551: checking "for --enable-constraints"" >&5
10f2d63a
VZ
3551 no_cache=0
3552 # Check whether --enable-constraints or --disable-constraints was given.
3553if test "${enable_constraints+set}" = set; then
3554 enableval="$enable_constraints"
3555
3556 if test "$enableval" = yes; then
3557 ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
3558 else
3559 ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
3560 fi
3561
3562else
3563
3564 LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
3565 if test "x$LINE" != x ; then
3566 eval "DEFAULT_$LINE"
3567 else
3568 no_cache=1
3569 fi
3570
3571 ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
3572
3573fi
3574
3575
3576 eval "$ac_cv_use_constraints"
3577 if test "$no_cache" != 1; then
3578 echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
3579 fi
3580
3581 if test "$wxUSE_CONSTRAINTS" = yes; then
3582 echo "$ac_t""yes" 1>&6
3583 else
3584 echo "$ac_t""no" 1>&6
3585 fi
3586
3587
3588 echo $ac_n "checking "for --enable-printarch"""... $ac_c" 1>&6
422107f9 3589echo "configure:3590: checking "for --enable-printarch"" >&5
10f2d63a
VZ
3590 no_cache=0
3591 # Check whether --enable-printarch or --disable-printarch was given.
3592if test "${enable_printarch+set}" = set; then
3593 enableval="$enable_printarch"
3594
3595 if test "$enableval" = yes; then
3596 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
3597 else
3598 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
3599 fi
3600
3601else
3602
3603 LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
3604 if test "x$LINE" != x ; then
3605 eval "DEFAULT_$LINE"
3606 else
3607 no_cache=1
3608 fi
3609
3610 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
3611
3612fi
3613
3614
3615 eval "$ac_cv_use_printarch"
3616 if test "$no_cache" != 1; then
3617 echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
3618 fi
3619
3620 if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
3621 echo "$ac_t""yes" 1>&6
3622 else
3623 echo "$ac_t""no" 1>&6
3624 fi
3625
3626
3627 echo $ac_n "checking "for --enable-mdi"""... $ac_c" 1>&6
422107f9 3628echo "configure:3629: checking "for --enable-mdi"" >&5
10f2d63a
VZ
3629 no_cache=0
3630 # Check whether --enable-mdi or --disable-mdi was given.
3631if test "${enable_mdi+set}" = set; then
3632 enableval="$enable_mdi"
3633
3634 if test "$enableval" = yes; then
3635 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=yes'
3636 else
3637 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=no'
3638 fi
3639
3640else
3641
3642 LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
3643 if test "x$LINE" != x ; then
3644 eval "DEFAULT_$LINE"
3645 else
3646 no_cache=1
3647 fi
3648
3649 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
3650
3651fi
3652
3653
3654 eval "$ac_cv_use_mdi"
3655 if test "$no_cache" != 1; then
3656 echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
3657 fi
3658
3659 if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
3660 echo "$ac_t""yes" 1>&6
3661 else
3662 echo "$ac_t""no" 1>&6
3663 fi
3664
3665
3666
3667 echo $ac_n "checking "for --enable-postscript"""... $ac_c" 1>&6
422107f9 3668echo "configure:3669: checking "for --enable-postscript"" >&5
10f2d63a
VZ
3669 no_cache=0
3670 # Check whether --enable-postscript or --disable-postscript was given.
3671if test "${enable_postscript+set}" = set; then
3672 enableval="$enable_postscript"
3673
3674 if test "$enableval" = yes; then
3675 ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
3676 else
3677 ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
3678 fi
3679
3680else
3681
3682 LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
3683 if test "x$LINE" != x ; then
3684 eval "DEFAULT_$LINE"
3685 else
3686 no_cache=1
3687 fi
3688
3689 ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
3690
3691fi
3692
3693
3694 eval "$ac_cv_use_postscript"
3695 if test "$no_cache" != 1; then
3696 echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
3697 fi
3698
3699 if test "$wxUSE_POSTSCRIPT" = yes; then
3700 echo "$ac_t""yes" 1>&6
3701 else
3702 echo "$ac_t""no" 1>&6
3703 fi
3704
3705
3706
3707
3708 echo $ac_n "checking "for --enable-prologio"""... $ac_c" 1>&6
422107f9 3709echo "configure:3710: checking "for --enable-prologio"" >&5
10f2d63a
VZ
3710 no_cache=0
3711 # Check whether --enable-prologio or --disable-prologio was given.
3712if test "${enable_prologio+set}" = set; then
3713 enableval="$enable_prologio"
3714
3715 if test "$enableval" = yes; then
3716 ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
3717 else
3718 ac_cv_use_prologio='wxUSE_PROLOGIO=no'
3719 fi
3720
3721else
3722
3723 LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
3724 if test "x$LINE" != x ; then
3725 eval "DEFAULT_$LINE"
3726 else
3727 no_cache=1
3728 fi
3729
3730 ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
3731
3732fi
3733
3734
3735 eval "$ac_cv_use_prologio"
3736 if test "$no_cache" != 1; then
3737 echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
3738 fi
3739
3740 if test "$wxUSE_PROLOGIO" = yes; then
3741 echo "$ac_t""yes" 1>&6
3742 else
3743 echo "$ac_t""no" 1>&6
3744 fi
3745
3746
3747 echo $ac_n "checking "for --enable-resources"""... $ac_c" 1>&6
422107f9 3748echo "configure:3749: checking "for --enable-resources"" >&5
10f2d63a
VZ
3749 no_cache=0
3750 # Check whether --enable-resources or --disable-resources was given.
3751if test "${enable_resources+set}" = set; then
3752 enableval="$enable_resources"
3753
3754 if test "$enableval" = yes; then
3755 ac_cv_use_resources='wxUSE_RESOURCES=yes'
3756 else
3757 ac_cv_use_resources='wxUSE_RESOURCES=no'
3758 fi
3759
3760else
3761
3762 LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
3763 if test "x$LINE" != x ; then
3764 eval "DEFAULT_$LINE"
3765 else
3766 no_cache=1
3767 fi
3768
3769 ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
3770
3771fi
3772
3773
3774 eval "$ac_cv_use_resources"
3775 if test "$no_cache" != 1; then
3776 echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
3777 fi
3778
3779 if test "$wxUSE_RESOURCES" = yes; then
3780 echo "$ac_t""yes" 1>&6
3781 else
3782 echo "$ac_t""no" 1>&6
3783 fi
3784
3785
3786
3787 echo $ac_n "checking "for --enable-xresources"""... $ac_c" 1>&6
422107f9 3788echo "configure:3789: checking "for --enable-xresources"" >&5
10f2d63a
VZ
3789 no_cache=0
3790 # Check whether --enable-xresources or --disable-xresources was given.
3791if test "${enable_xresources+set}" = set; then
3792 enableval="$enable_xresources"
3793
3794 if test "$enableval" = yes; then
3795 ac_cv_use_xresources='wxUSE_X_RESOURCES=yes'
3796 else
3797 ac_cv_use_xresources='wxUSE_X_RESOURCES=no'
3798 fi
3799
3800else
3801
3802 LINE=`grep "wxUSE_X_RESOURCES" ${wx_arg_cache_file}`
3803 if test "x$LINE" != x ; then
3804 eval "DEFAULT_$LINE"
3805 else
3806 no_cache=1
3807 fi
3808
3809 ac_cv_use_xresources='wxUSE_X_RESOURCES='$DEFAULT_wxUSE_X_RESOURCES
3810
3811fi
3812
3813
3814 eval "$ac_cv_use_xresources"
3815 if test "$no_cache" != 1; then
3816 echo $ac_cv_use_xresources >> ${wx_arg_cache_file}.tmp
3817 fi
3818
3819 if test "$wxUSE_X_RESOURCES" = yes; then
3820 echo "$ac_t""yes" 1>&6
3821 else
3822 echo "$ac_t""no" 1>&6
3823 fi
3824
3825
3826
3827
3828 echo $ac_n "checking "for --enable-clipboard"""... $ac_c" 1>&6
422107f9 3829echo "configure:3830: checking "for --enable-clipboard"" >&5
10f2d63a
VZ
3830 no_cache=0
3831 # Check whether --enable-clipboard or --disable-clipboard was given.
3832if test "${enable_clipboard+set}" = set; then
3833 enableval="$enable_clipboard"
3834
3835 if test "$enableval" = yes; then
3836 ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
3837 else
3838 ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
3839 fi
3840
3841else
3842
3843 LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
3844 if test "x$LINE" != x ; then
3845 eval "DEFAULT_$LINE"
3846 else
3847 no_cache=1
3848 fi
3849
3850 ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
3851
3852fi
3853
3854
3855 eval "$ac_cv_use_clipboard"
3856 if test "$no_cache" != 1; then
3857 echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
3858 fi
3859
3860 if test "$wxUSE_CLIPBOARD" = yes; then
3861 echo "$ac_t""yes" 1>&6
3862 else
3863 echo "$ac_t""no" 1>&6
3864 fi
3865
3866
3867 echo $ac_n "checking "for --enable-dnd"""... $ac_c" 1>&6
422107f9 3868echo "configure:3869: checking "for --enable-dnd"" >&5
10f2d63a
VZ
3869 no_cache=0
3870 # Check whether --enable-dnd or --disable-dnd was given.
3871if test "${enable_dnd+set}" = set; then
3872 enableval="$enable_dnd"
3873
3874 if test "$enableval" = yes; then
3875 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
3876 else
3877 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
3878 fi
3879
3880else
3881
3882 LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
3883 if test "x$LINE" != x ; then
3884 eval "DEFAULT_$LINE"
3885 else
3886 no_cache=1
3887 fi
3888
3889 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
3890
3891fi
3892
3893
3894 eval "$ac_cv_use_dnd"
3895 if test "$no_cache" != 1; then
3896 echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
3897 fi
3898
3899 if test "$wxUSE_DRAG_AND_DROP" = yes; then
3900 echo "$ac_t""yes" 1>&6
3901 else
3902 echo "$ac_t""no" 1>&6
3903 fi
3904
3905
3906
3907 echo $ac_n "checking "for --enable-wxtree"""... $ac_c" 1>&6
422107f9 3908echo "configure:3909: checking "for --enable-wxtree"" >&5
10f2d63a
VZ
3909 no_cache=0
3910 # Check whether --enable-wxtree or --disable-wxtree was given.
3911if test "${enable_wxtree+set}" = set; then
3912 enableval="$enable_wxtree"
3913
3914 if test "$enableval" = yes; then
3915 ac_cv_use_wxtree='wxUSE_WXTREE=yes'
3916 else
3917 ac_cv_use_wxtree='wxUSE_WXTREE=no'
3918 fi
3919
3920else
3921
3922 LINE=`grep "wxUSE_WXTREE" ${wx_arg_cache_file}`
3923 if test "x$LINE" != x ; then
3924 eval "DEFAULT_$LINE"
3925 else
3926 no_cache=1
3927 fi
3928
3929 ac_cv_use_wxtree='wxUSE_WXTREE='$DEFAULT_wxUSE_WXTREE
3930
3931fi
3932
3933
3934 eval "$ac_cv_use_wxtree"
3935 if test "$no_cache" != 1; then
3936 echo $ac_cv_use_wxtree >> ${wx_arg_cache_file}.tmp
3937 fi
3938
3939 if test "$wxUSE_WXTREE" = yes; then
3940 echo "$ac_t""yes" 1>&6
3941 else
3942 echo "$ac_t""no" 1>&6
3943 fi
3944
3945
3946
3947
3948 echo $ac_n "checking "for --enable-controls"""... $ac_c" 1>&6
422107f9 3949echo "configure:3950: checking "for --enable-controls"" >&5
10f2d63a
VZ
3950 no_cache=0
3951 # Check whether --enable-controls or --disable-controls was given.
3952if test "${enable_controls+set}" = set; then
3953 enableval="$enable_controls"
3954
3955 if test "$enableval" = yes; then
3956 ac_cv_use_controls='wxUSE_CONTROLS=yes'
3957 else
3958 ac_cv_use_controls='wxUSE_CONTROLS=no'
3959 fi
3960
3961else
3962
3963 LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
3964 if test "x$LINE" != x ; then
3965 eval "DEFAULT_$LINE"
3966 else
3967 no_cache=1
3968 fi
3969
3970 ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
3971
3972fi
3973
3974
3975 eval "$ac_cv_use_controls"
3976 if test "$no_cache" != 1; then
3977 echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
3978 fi
3979
3980 if test "$wxUSE_CONTROLS" = yes; then
3981 echo "$ac_t""yes" 1>&6
3982 else
3983 echo "$ac_t""no" 1>&6
3984 fi
3985
3986
3987if test "$wxUSE_CONTROLS" = "yes"; then
3988 DEFAULT_wxUSE_ACCEL=yes
3989 DEFAULT_wxUSE_CARET=yes
3990 DEFAULT_wxUSE_COMBOBOX=yes
3991 DEFAULT_wxUSE_BMPBUTTON=yes
3992 DEFAULT_wxUSE_CHECKBOX=yes
3993 DEFAULT_wxUSE_CHECKLISTBOX=yes
3994 DEFAULT_wxUSE_CHOICE=yes
3995 DEFAULT_wxUSE_GAUGE=yes
3996 DEFAULT_wxUSE_GRID=yes
cc977e5f 3997 DEFAULT_wxUSE_NEW_GRID=yes
10f2d63a
VZ
3998 DEFAULT_wxUSE_IMAGLIST=yes
3999 DEFAULT_wxUSE_LISTBOX=yes
4000 DEFAULT_wxUSE_LISTCTRL=yes
4001 DEFAULT_wxUSE_NOTEBOOK=yes
4002 DEFAULT_wxUSE_RADIOBOX=yes
4003 DEFAULT_wxUSE_RADIOBTN=yes
4004 DEFAULT_wxUSE_SASH=yes
4005 DEFAULT_wxUSE_SCROLLBAR=yes
4006 DEFAULT_wxUSE_SLIDER=yes
4007 DEFAULT_wxUSE_SPINBTN=yes
56cfaa52 4008 DEFAULT_wxUSE_SPINCTRL=yes
10f2d63a
VZ
4009 DEFAULT_wxUSE_SPLITTER=yes
4010 DEFAULT_wxUSE_STATBMP=yes
4011 DEFAULT_wxUSE_STATBOX=yes
4012 DEFAULT_wxUSE_STATLINE=yes
4013 DEFAULT_wxUSE_STATUSBAR=yes
4014 DEFAULT_wxUSE_TAB_DIALOG=yes
4015 DEFAULT_wxUSE_TOOLBAR=yes
360d6699
VZ
4016 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
4017 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
10f2d63a
VZ
4018 DEFAULT_wxUSE_TOOLTIPS=yes
4019 DEFAULT_wxUSE_TREECTRL=yes
4020elif test "$wxUSE_CONTROLS" = "no"; then
4021 DEFAULT_wxUSE_ACCEL=no
4022 DEFAULT_wxUSE_CARET=no
4023 DEFAULT_wxUSE_COMBOBOX=no
4024 DEFAULT_wxUSE_BMPBUTTON=no
4025 DEFAULT_wxUSE_CHECKBOX=no
4026 DEFAULT_wxUSE_CHECKLISTBOX=no
4027 DEFAULT_wxUSE_CHOICE=no
4028 DEFAULT_wxUSE_GAUGE=no
4029 DEFAULT_wxUSE_GRID=no
4030 DEFAULT_wxUSE_NEW_GRID=no
4031 DEFAULT_wxUSE_IMAGLIST=no
4032 DEFAULT_wxUSE_LISTBOX=no
4033 DEFAULT_wxUSE_LISTCTRL=no
4034 DEFAULT_wxUSE_NOTEBOOK=no
4035 DEFAULT_wxUSE_RADIOBOX=no
4036 DEFAULT_wxUSE_RADIOBTN=no
4037 DEFAULT_wxUSE_SASH=no
4038 DEFAULT_wxUSE_SCROLLBAR=no
4039 DEFAULT_wxUSE_SLIDER=no
4040 DEFAULT_wxUSE_SPINBTN=no
56cfaa52 4041 DEFAULT_wxUSE_SPINCTRL=no
10f2d63a
VZ
4042 DEFAULT_wxUSE_SPLITTER=no
4043 DEFAULT_wxUSE_STATBMP=no
4044 DEFAULT_wxUSE_STATBOX=no
4045 DEFAULT_wxUSE_STATLINE=no
4046 DEFAULT_wxUSE_STATUSBAR=no
4047 DEFAULT_wxUSE_TAB_DIALOG=no
4048 DEFAULT_wxUSE_TOOLBAR=no
360d6699
VZ
4049 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
4050 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
10f2d63a
VZ
4051 DEFAULT_wxUSE_TOOLTIPS=no
4052 DEFAULT_wxUSE_TREECTRL=no
4053fi
4054
4055
4056 echo $ac_n "checking "for --enable-accel"""... $ac_c" 1>&6
422107f9 4057echo "configure:4058: checking "for --enable-accel"" >&5
10f2d63a
VZ
4058 no_cache=0
4059 # Check whether --enable-accel or --disable-accel was given.
4060if test "${enable_accel+set}" = set; then
4061 enableval="$enable_accel"
4062
4063 if test "$enableval" = yes; then
4064 ac_cv_use_accel='wxUSE_ACCEL=yes'
4065 else
4066 ac_cv_use_accel='wxUSE_ACCEL=no'
4067 fi
4068
4069else
4070
4071 LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
4072 if test "x$LINE" != x ; then
4073 eval "DEFAULT_$LINE"
4074 else
4075 no_cache=1
4076 fi
4077
4078 ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
4079
4080fi
4081
4082
4083 eval "$ac_cv_use_accel"
4084 if test "$no_cache" != 1; then
4085 echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
4086 fi
4087
4088 if test "$wxUSE_ACCEL" = yes; then
4089 echo "$ac_t""yes" 1>&6
4090 else
4091 echo "$ac_t""no" 1>&6
4092 fi
4093
4094
4095 echo $ac_n "checking "for --enable-caret"""... $ac_c" 1>&6
422107f9 4096echo "configure:4097: checking "for --enable-caret"" >&5
10f2d63a
VZ
4097 no_cache=0
4098 # Check whether --enable-caret or --disable-caret was given.
4099if test "${enable_caret+set}" = set; then
4100 enableval="$enable_caret"
4101
4102 if test "$enableval" = yes; then
4103 ac_cv_use_caret='wxUSE_CARET=yes'
4104 else
4105 ac_cv_use_caret='wxUSE_CARET=no'
4106 fi
4107
4108else
4109
4110 LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
4111 if test "x$LINE" != x ; then
4112 eval "DEFAULT_$LINE"
4113 else
4114 no_cache=1
4115 fi
4116
4117 ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
4118
4119fi
4120
4121
4122 eval "$ac_cv_use_caret"
4123 if test "$no_cache" != 1; then
4124 echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
4125 fi
4126
4127 if test "$wxUSE_CARET" = yes; then
4128 echo "$ac_t""yes" 1>&6
4129 else
4130 echo "$ac_t""no" 1>&6
4131 fi
4132
4133
4134 echo $ac_n "checking "for --enable-bmpbutton"""... $ac_c" 1>&6
422107f9 4135echo "configure:4136: checking "for --enable-bmpbutton"" >&5
10f2d63a
VZ
4136 no_cache=0
4137 # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
4138if test "${enable_bmpbutton+set}" = set; then
4139 enableval="$enable_bmpbutton"
4140
4141 if test "$enableval" = yes; then
4142 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
4143 else
4144 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
4145 fi
4146
4147else
4148
4149 LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
4150 if test "x$LINE" != x ; then
4151 eval "DEFAULT_$LINE"
4152 else
4153 no_cache=1
4154 fi
4155
4156 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
4157
4158fi
4159
4160
4161 eval "$ac_cv_use_bmpbutton"
4162 if test "$no_cache" != 1; then
4163 echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
4164 fi
4165
4166 if test "$wxUSE_BMPBUTTON" = yes; then
4167 echo "$ac_t""yes" 1>&6
4168 else
4169 echo "$ac_t""no" 1>&6
4170 fi
4171
4172
4173 echo $ac_n "checking "for --enable-checkbox"""... $ac_c" 1>&6
422107f9 4174echo "configure:4175: checking "for --enable-checkbox"" >&5
10f2d63a
VZ
4175 no_cache=0
4176 # Check whether --enable-checkbox or --disable-checkbox was given.
4177if test "${enable_checkbox+set}" = set; then
4178 enableval="$enable_checkbox"
4179
4180 if test "$enableval" = yes; then
4181 ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
4182 else
4183 ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
4184 fi
4185
4186else
4187
4188 LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
4189 if test "x$LINE" != x ; then
4190 eval "DEFAULT_$LINE"
4191 else
4192 no_cache=1
4193 fi
4194
4195 ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
4196
4197fi
4198
4199
4200 eval "$ac_cv_use_checkbox"
4201 if test "$no_cache" != 1; then
4202 echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
4203 fi
4204
4205 if test "$wxUSE_CHECKBOX" = yes; then
4206 echo "$ac_t""yes" 1>&6
4207 else
4208 echo "$ac_t""no" 1>&6
4209 fi
4210
4211
4212 echo $ac_n "checking "for --enable-checklst"""... $ac_c" 1>&6
422107f9 4213echo "configure:4214: checking "for --enable-checklst"" >&5
10f2d63a
VZ
4214 no_cache=0
4215 # Check whether --enable-checklst or --disable-checklst was given.
4216if test "${enable_checklst+set}" = set; then
4217 enableval="$enable_checklst"
4218
4219 if test "$enableval" = yes; then
4220 ac_cv_use_checklst='wxUSE_CHECKLST=yes'
4221 else
4222 ac_cv_use_checklst='wxUSE_CHECKLST=no'
4223 fi
4224
4225else
4226
4227 LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
4228 if test "x$LINE" != x ; then
4229 eval "DEFAULT_$LINE"
4230 else
4231 no_cache=1
4232 fi
4233
4234 ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
4235
4236fi
4237
4238
4239 eval "$ac_cv_use_checklst"
4240 if test "$no_cache" != 1; then
4241 echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
4242 fi
4243
4244 if test "$wxUSE_CHECKLST" = yes; then
4245 echo "$ac_t""yes" 1>&6
4246 else
4247 echo "$ac_t""no" 1>&6
4248 fi
4249
4250
4251 echo $ac_n "checking "for --enable-choice"""... $ac_c" 1>&6
422107f9 4252echo "configure:4253: checking "for --enable-choice"" >&5
10f2d63a
VZ
4253 no_cache=0
4254 # Check whether --enable-choice or --disable-choice was given.
4255if test "${enable_choice+set}" = set; then
4256 enableval="$enable_choice"
4257
4258 if test "$enableval" = yes; then
4259 ac_cv_use_choice='wxUSE_CHOICE=yes'
4260 else
4261 ac_cv_use_choice='wxUSE_CHOICE=no'
4262 fi
4263
4264else
4265
4266 LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
4267 if test "x$LINE" != x ; then
4268 eval "DEFAULT_$LINE"
4269 else
4270 no_cache=1
4271 fi
4272
4273 ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
4274
4275fi
4276
4277
4278 eval "$ac_cv_use_choice"
4279 if test "$no_cache" != 1; then
4280 echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
4281 fi
4282
4283 if test "$wxUSE_CHOICE" = yes; then
4284 echo "$ac_t""yes" 1>&6
4285 else
4286 echo "$ac_t""no" 1>&6
4287 fi
4288
4289
4290 echo $ac_n "checking "for --enable-combobox"""... $ac_c" 1>&6
422107f9 4291echo "configure:4292: checking "for --enable-combobox"" >&5
10f2d63a
VZ
4292 no_cache=0
4293 # Check whether --enable-combobox or --disable-combobox was given.
4294if test "${enable_combobox+set}" = set; then
4295 enableval="$enable_combobox"
4296
4297 if test "$enableval" = yes; then
4298 ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
4299 else
4300 ac_cv_use_combobox='wxUSE_COMBOBOX=no'
4301 fi
4302
4303else
4304
4305 LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
4306 if test "x$LINE" != x ; then
4307 eval "DEFAULT_$LINE"
4308 else
4309 no_cache=1
4310 fi
4311
4312 ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
4313
4314fi
4315
4316
4317 eval "$ac_cv_use_combobox"
4318 if test "$no_cache" != 1; then
4319 echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
4320 fi
4321
4322 if test "$wxUSE_COMBOBOX" = yes; then
4323 echo "$ac_t""yes" 1>&6
4324 else
4325 echo "$ac_t""no" 1>&6
4326 fi
4327
4328
4329 echo $ac_n "checking "for --enable-gauge"""... $ac_c" 1>&6
422107f9 4330echo "configure:4331: checking "for --enable-gauge"" >&5
10f2d63a
VZ
4331 no_cache=0
4332 # Check whether --enable-gauge or --disable-gauge was given.
4333if test "${enable_gauge+set}" = set; then
4334 enableval="$enable_gauge"
4335
4336 if test "$enableval" = yes; then
4337 ac_cv_use_gauge='wxUSE_GAUGE=yes'
4338 else
4339 ac_cv_use_gauge='wxUSE_GAUGE=no'
4340 fi
4341
4342else
4343
4344 LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
4345 if test "x$LINE" != x ; then
4346 eval "DEFAULT_$LINE"
4347 else
4348 no_cache=1
4349 fi
4350
4351 ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
4352
4353fi
4354
4355
4356 eval "$ac_cv_use_gauge"
4357 if test "$no_cache" != 1; then
4358 echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
4359 fi
4360
4361 if test "$wxUSE_GAUGE" = yes; then
4362 echo "$ac_t""yes" 1>&6
4363 else
4364 echo "$ac_t""no" 1>&6
4365 fi
4366
4367
4368 echo $ac_n "checking "for --enable-grid"""... $ac_c" 1>&6
422107f9 4369echo "configure:4370: checking "for --enable-grid"" >&5
10f2d63a
VZ
4370 no_cache=0
4371 # Check whether --enable-grid or --disable-grid was given.
4372if test "${enable_grid+set}" = set; then
4373 enableval="$enable_grid"
4374
4375 if test "$enableval" = yes; then
4376 ac_cv_use_grid='wxUSE_GRID=yes'
4377 else
4378 ac_cv_use_grid='wxUSE_GRID=no'
4379 fi
4380
4381else
4382
4383 LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
4384 if test "x$LINE" != x ; then
4385 eval "DEFAULT_$LINE"
4386 else
4387 no_cache=1
4388 fi
4389
4390 ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
4391
4392fi
4393
4394
4395 eval "$ac_cv_use_grid"
4396 if test "$no_cache" != 1; then
4397 echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
4398 fi
4399
4400 if test "$wxUSE_GRID" = yes; then
4401 echo "$ac_t""yes" 1>&6
4402 else
4403 echo "$ac_t""no" 1>&6
4404 fi
4405
4406
4407 echo $ac_n "checking "for --enable-newgrid"""... $ac_c" 1>&6
422107f9 4408echo "configure:4409: checking "for --enable-newgrid"" >&5
10f2d63a
VZ
4409 no_cache=0
4410 # Check whether --enable-newgrid or --disable-newgrid was given.
4411if test "${enable_newgrid+set}" = set; then
4412 enableval="$enable_newgrid"
4413
4414 if test "$enableval" = yes; then
4415 ac_cv_use_newgrid='wxUSE_NEW_GRID=yes'
4416 else
4417 ac_cv_use_newgrid='wxUSE_NEW_GRID=no'
4418 fi
4419
4420else
4421
4422 LINE=`grep "wxUSE_NEW_GRID" ${wx_arg_cache_file}`
4423 if test "x$LINE" != x ; then
4424 eval "DEFAULT_$LINE"
4425 else
4426 no_cache=1
4427 fi
4428
4429 ac_cv_use_newgrid='wxUSE_NEW_GRID='$DEFAULT_wxUSE_NEW_GRID
4430
4431fi
4432
4433
4434 eval "$ac_cv_use_newgrid"
4435 if test "$no_cache" != 1; then
4436 echo $ac_cv_use_newgrid >> ${wx_arg_cache_file}.tmp
4437 fi
4438
4439 if test "$wxUSE_NEW_GRID" = yes; then
4440 echo "$ac_t""yes" 1>&6
4441 else
4442 echo "$ac_t""no" 1>&6
4443 fi
4444
4445
4446 echo $ac_n "checking "for --enable-imaglist"""... $ac_c" 1>&6
422107f9 4447echo "configure:4448: checking "for --enable-imaglist"" >&5
10f2d63a
VZ
4448 no_cache=0
4449 # Check whether --enable-imaglist or --disable-imaglist was given.
4450if test "${enable_imaglist+set}" = set; then
4451 enableval="$enable_imaglist"
4452
4453 if test "$enableval" = yes; then
4454 ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
4455 else
4456 ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
4457 fi
4458
4459else
4460
4461 LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
4462 if test "x$LINE" != x ; then
4463 eval "DEFAULT_$LINE"
4464 else
4465 no_cache=1
4466 fi
4467
4468 ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
4469
4470fi
4471
4472
4473 eval "$ac_cv_use_imaglist"
4474 if test "$no_cache" != 1; then
4475 echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
4476 fi
4477
4478 if test "$wxUSE_IMAGLIST" = yes; then
4479 echo "$ac_t""yes" 1>&6
4480 else
4481 echo "$ac_t""no" 1>&6
4482 fi
4483
4484
4485 echo $ac_n "checking "for --enable-listbox"""... $ac_c" 1>&6
422107f9 4486echo "configure:4487: checking "for --enable-listbox"" >&5
10f2d63a
VZ
4487 no_cache=0
4488 # Check whether --enable-listbox or --disable-listbox was given.
4489if test "${enable_listbox+set}" = set; then
4490 enableval="$enable_listbox"
4491
4492 if test "$enableval" = yes; then
4493 ac_cv_use_listbox='wxUSE_LISTBOX=yes'
4494 else
4495 ac_cv_use_listbox='wxUSE_LISTBOX=no'
4496 fi
4497
4498else
4499
4500 LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
4501 if test "x$LINE" != x ; then
4502 eval "DEFAULT_$LINE"
4503 else
4504 no_cache=1
4505 fi
4506
4507 ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
4508
4509fi
4510
4511
4512 eval "$ac_cv_use_listbox"
4513 if test "$no_cache" != 1; then
4514 echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
4515 fi
4516
4517 if test "$wxUSE_LISTBOX" = yes; then
4518 echo "$ac_t""yes" 1>&6
4519 else
4520 echo "$ac_t""no" 1>&6
4521 fi
4522
4523
4524 echo $ac_n "checking "for --enable-listctrl"""... $ac_c" 1>&6
422107f9 4525echo "configure:4526: checking "for --enable-listctrl"" >&5
10f2d63a
VZ
4526 no_cache=0
4527 # Check whether --enable-listctrl or --disable-listctrl was given.
4528if test "${enable_listctrl+set}" = set; then
4529 enableval="$enable_listctrl"
4530
4531 if test "$enableval" = yes; then
4532 ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
4533 else
4534 ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
4535 fi
4536
4537else
4538
4539 LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
4540 if test "x$LINE" != x ; then
4541 eval "DEFAULT_$LINE"
4542 else
4543 no_cache=1
4544 fi
4545
4546 ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
4547
4548fi
4549
4550
4551 eval "$ac_cv_use_listctrl"
4552 if test "$no_cache" != 1; then
4553 echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
4554 fi
4555
4556 if test "$wxUSE_LISTCTRL" = yes; then
4557 echo "$ac_t""yes" 1>&6
4558 else
4559 echo "$ac_t""no" 1>&6
4560 fi
4561
4562
4563 echo $ac_n "checking "for --enable-notebook"""... $ac_c" 1>&6
422107f9 4564echo "configure:4565: checking "for --enable-notebook"" >&5
10f2d63a
VZ
4565 no_cache=0
4566 # Check whether --enable-notebook or --disable-notebook was given.
4567if test "${enable_notebook+set}" = set; then
4568 enableval="$enable_notebook"
4569
4570 if test "$enableval" = yes; then
4571 ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
4572 else
4573 ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
4574 fi
4575
4576else
4577
4578 LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
4579 if test "x$LINE" != x ; then
4580 eval "DEFAULT_$LINE"
4581 else
4582 no_cache=1
4583 fi
4584
4585 ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
4586
4587fi
4588
4589
4590 eval "$ac_cv_use_notebook"
4591 if test "$no_cache" != 1; then
4592 echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
4593 fi
4594
4595 if test "$wxUSE_NOTEBOOK" = yes; then
4596 echo "$ac_t""yes" 1>&6
4597 else
4598 echo "$ac_t""no" 1>&6
4599 fi
4600
4601
4602 echo $ac_n "checking "for --enable-radiobox"""... $ac_c" 1>&6
422107f9 4603echo "configure:4604: checking "for --enable-radiobox"" >&5
10f2d63a
VZ
4604 no_cache=0
4605 # Check whether --enable-radiobox or --disable-radiobox was given.
4606if test "${enable_radiobox+set}" = set; then
4607 enableval="$enable_radiobox"
4608
4609 if test "$enableval" = yes; then
4610 ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
4611 else
4612 ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
4613 fi
4614
4615else
4616
4617 LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
4618 if test "x$LINE" != x ; then
4619 eval "DEFAULT_$LINE"
4620 else
4621 no_cache=1
4622 fi
4623
4624 ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
4625
4626fi
4627
4628
4629 eval "$ac_cv_use_radiobox"
4630 if test "$no_cache" != 1; then
4631 echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
4632 fi
4633
4634 if test "$wxUSE_RADIOBOX" = yes; then
4635 echo "$ac_t""yes" 1>&6
4636 else
4637 echo "$ac_t""no" 1>&6
4638 fi
4639
4640
4641 echo $ac_n "checking "for --enable-radiobtn"""... $ac_c" 1>&6
422107f9 4642echo "configure:4643: checking "for --enable-radiobtn"" >&5
10f2d63a
VZ
4643 no_cache=0
4644 # Check whether --enable-radiobtn or --disable-radiobtn was given.
4645if test "${enable_radiobtn+set}" = set; then
4646 enableval="$enable_radiobtn"
4647
4648 if test "$enableval" = yes; then
4649 ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
4650 else
4651 ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
4652 fi
4653
4654else
4655
4656 LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
4657 if test "x$LINE" != x ; then
4658 eval "DEFAULT_$LINE"
4659 else
4660 no_cache=1
4661 fi
4662
4663 ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
4664
4665fi
4666
4667
4668 eval "$ac_cv_use_radiobtn"
4669 if test "$no_cache" != 1; then
4670 echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
4671 fi
4672
4673 if test "$wxUSE_RADIOBTN" = yes; then
4674 echo "$ac_t""yes" 1>&6
4675 else
4676 echo "$ac_t""no" 1>&6
4677 fi
4678
4679
4680 echo $ac_n "checking "for --enable-sash"""... $ac_c" 1>&6
422107f9 4681echo "configure:4682: checking "for --enable-sash"" >&5
10f2d63a
VZ
4682 no_cache=0
4683 # Check whether --enable-sash or --disable-sash was given.
4684if test "${enable_sash+set}" = set; then
4685 enableval="$enable_sash"
4686
4687 if test "$enableval" = yes; then
4688 ac_cv_use_sash='wxUSE_SASH=yes'
4689 else
4690 ac_cv_use_sash='wxUSE_SASH=no'
4691 fi
4692
4693else
4694
4695 LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
4696 if test "x$LINE" != x ; then
4697 eval "DEFAULT_$LINE"
4698 else
4699 no_cache=1
4700 fi
4701
4702 ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
4703
4704fi
4705
4706
4707 eval "$ac_cv_use_sash"
4708 if test "$no_cache" != 1; then
4709 echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
4710 fi
4711
4712 if test "$wxUSE_SASH" = yes; then
4713 echo "$ac_t""yes" 1>&6
4714 else
4715 echo "$ac_t""no" 1>&6
4716 fi
4717
4718
4719 echo $ac_n "checking "for --enable-scrollbar"""... $ac_c" 1>&6
422107f9 4720echo "configure:4721: checking "for --enable-scrollbar"" >&5
10f2d63a
VZ
4721 no_cache=0
4722 # Check whether --enable-scrollbar or --disable-scrollbar was given.
4723if test "${enable_scrollbar+set}" = set; then
4724 enableval="$enable_scrollbar"
4725
4726 if test "$enableval" = yes; then
4727 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
4728 else
4729 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
4730 fi
4731
4732else
4733
4734 LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
4735 if test "x$LINE" != x ; then
4736 eval "DEFAULT_$LINE"
4737 else
4738 no_cache=1
4739 fi
4740
4741 ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
4742
4743fi
4744
4745
4746 eval "$ac_cv_use_scrollbar"
4747 if test "$no_cache" != 1; then
4748 echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
4749 fi
4750
4751 if test "$wxUSE_SCROLLBAR" = yes; then
4752 echo "$ac_t""yes" 1>&6
4753 else
4754 echo "$ac_t""no" 1>&6
4755 fi
4756
4757
4758 echo $ac_n "checking "for --enable-slider"""... $ac_c" 1>&6
422107f9 4759echo "configure:4760: checking "for --enable-slider"" >&5
10f2d63a
VZ
4760 no_cache=0
4761 # Check whether --enable-slider or --disable-slider was given.
4762if test "${enable_slider+set}" = set; then
4763 enableval="$enable_slider"
4764
4765 if test "$enableval" = yes; then
4766 ac_cv_use_slider='wxUSE_SLIDER=yes'
4767 else
4768 ac_cv_use_slider='wxUSE_SLIDER=no'
4769 fi
4770
4771else
4772
4773 LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
4774 if test "x$LINE" != x ; then
4775 eval "DEFAULT_$LINE"
4776 else
4777 no_cache=1
4778 fi
4779
4780 ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
4781
4782fi
4783
4784
4785 eval "$ac_cv_use_slider"
4786 if test "$no_cache" != 1; then
4787 echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
4788 fi
4789
4790 if test "$wxUSE_SLIDER" = yes; then
4791 echo "$ac_t""yes" 1>&6
4792 else
4793 echo "$ac_t""no" 1>&6
4794 fi
4795
4796
4797 echo $ac_n "checking "for --enable-spinbtn"""... $ac_c" 1>&6
422107f9 4798echo "configure:4799: checking "for --enable-spinbtn"" >&5
10f2d63a
VZ
4799 no_cache=0
4800 # Check whether --enable-spinbtn or --disable-spinbtn was given.
4801if test "${enable_spinbtn+set}" = set; then
4802 enableval="$enable_spinbtn"
4803
4804 if test "$enableval" = yes; then
4805 ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
4806 else
4807 ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
4808 fi
4809
4810else
4811
4812 LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
4813 if test "x$LINE" != x ; then
4814 eval "DEFAULT_$LINE"
4815 else
4816 no_cache=1
4817 fi
4818
4819 ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
4820
4821fi
4822
4823
4824 eval "$ac_cv_use_spinbtn"
4825 if test "$no_cache" != 1; then
4826 echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
4827 fi
4828
4829 if test "$wxUSE_SPINBTN" = yes; then
4830 echo "$ac_t""yes" 1>&6
4831 else
4832 echo "$ac_t""no" 1>&6
4833 fi
4834
4835
56cfaa52 4836 echo $ac_n "checking "for --enable-spinctrl"""... $ac_c" 1>&6
422107f9 4837echo "configure:4838: checking "for --enable-spinctrl"" >&5
56cfaa52
RR
4838 no_cache=0
4839 # Check whether --enable-spinctrl or --disable-spinctrl was given.
4840if test "${enable_spinctrl+set}" = set; then
4841 enableval="$enable_spinctrl"
4842
4843 if test "$enableval" = yes; then
4844 ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
4845 else
4846 ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
4847 fi
4848
4849else
4850
4851 LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
4852 if test "x$LINE" != x ; then
4853 eval "DEFAULT_$LINE"
4854 else
4855 no_cache=1
4856 fi
4857
4858 ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
4859
4860fi
4861
4862
4863 eval "$ac_cv_use_spinctrl"
4864 if test "$no_cache" != 1; then
4865 echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
4866 fi
4867
4868 if test "$wxUSE_SPINCTRL" = yes; then
4869 echo "$ac_t""yes" 1>&6
4870 else
4871 echo "$ac_t""no" 1>&6
4872 fi
4873
4874
10f2d63a 4875 echo $ac_n "checking "for --enable-splitter"""... $ac_c" 1>&6
422107f9 4876echo "configure:4877: checking "for --enable-splitter"" >&5
10f2d63a
VZ
4877 no_cache=0
4878 # Check whether --enable-splitter or --disable-splitter was given.
4879if test "${enable_splitter+set}" = set; then
4880 enableval="$enable_splitter"
4881
4882 if test "$enableval" = yes; then
4883 ac_cv_use_splitter='wxUSE_SPLITTER=yes'
4884 else
4885 ac_cv_use_splitter='wxUSE_SPLITTER=no'
4886 fi
4887
4888else
4889
4890 LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
4891 if test "x$LINE" != x ; then
4892 eval "DEFAULT_$LINE"
4893 else
4894 no_cache=1
4895 fi
4896
4897 ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
4898
4899fi
4900
4901
4902 eval "$ac_cv_use_splitter"
4903 if test "$no_cache" != 1; then
4904 echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
4905 fi
4906
4907 if test "$wxUSE_SPLITTER" = yes; then
4908 echo "$ac_t""yes" 1>&6
4909 else
4910 echo "$ac_t""no" 1>&6
4911 fi
4912
4913
4914 echo $ac_n "checking "for --enable-statbmp"""... $ac_c" 1>&6
422107f9 4915echo "configure:4916: checking "for --enable-statbmp"" >&5
10f2d63a
VZ
4916 no_cache=0
4917 # Check whether --enable-statbmp or --disable-statbmp was given.
4918if test "${enable_statbmp+set}" = set; then
4919 enableval="$enable_statbmp"
4920
4921 if test "$enableval" = yes; then
4922 ac_cv_use_statbmp='wxUSE_STATBMP=yes'
4923 else
4924 ac_cv_use_statbmp='wxUSE_STATBMP=no'
4925 fi
4926
4927else
4928
4929 LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
4930 if test "x$LINE" != x ; then
4931 eval "DEFAULT_$LINE"
4932 else
4933 no_cache=1
4934 fi
4935
4936 ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
4937
4938fi
4939
4940
4941 eval "$ac_cv_use_statbmp"
4942 if test "$no_cache" != 1; then
4943 echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
4944 fi
4945
4946 if test "$wxUSE_STATBMP" = yes; then
4947 echo "$ac_t""yes" 1>&6
4948 else
4949 echo "$ac_t""no" 1>&6
4950 fi
4951
4952
4953 echo $ac_n "checking "for --enable-statbox"""... $ac_c" 1>&6
422107f9 4954echo "configure:4955: checking "for --enable-statbox"" >&5
10f2d63a
VZ
4955 no_cache=0
4956 # Check whether --enable-statbox or --disable-statbox was given.
4957if test "${enable_statbox+set}" = set; then
4958 enableval="$enable_statbox"
4959
4960 if test "$enableval" = yes; then
4961 ac_cv_use_statbox='wxUSE_STATBOX=yes'
4962 else
4963 ac_cv_use_statbox='wxUSE_STATBOX=no'
4964 fi
4965
4966else
4967
4968 LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
4969 if test "x$LINE" != x ; then
4970 eval "DEFAULT_$LINE"
4971 else
4972 no_cache=1
4973 fi
4974
4975 ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
4976
4977fi
4978
4979
4980 eval "$ac_cv_use_statbox"
4981 if test "$no_cache" != 1; then
4982 echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
4983 fi
4984
4985 if test "$wxUSE_STATBOX" = yes; then
4986 echo "$ac_t""yes" 1>&6
4987 else
4988 echo "$ac_t""no" 1>&6
4989 fi
4990
4991
4992 echo $ac_n "checking "for --enable-statline"""... $ac_c" 1>&6
422107f9 4993echo "configure:4994: checking "for --enable-statline"" >&5
10f2d63a
VZ
4994 no_cache=0
4995 # Check whether --enable-statline or --disable-statline was given.
4996if test "${enable_statline+set}" = set; then
4997 enableval="$enable_statline"
4998
4999 if test "$enableval" = yes; then
5000 ac_cv_use_statline='wxUSE_STATLINE=yes'
5001 else
5002 ac_cv_use_statline='wxUSE_STATLINE=no'
5003 fi
5004
5005else
5006
5007 LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
5008 if test "x$LINE" != x ; then
5009 eval "DEFAULT_$LINE"
5010 else
5011 no_cache=1
5012 fi
5013
5014 ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
5015
5016fi
5017
5018
5019 eval "$ac_cv_use_statline"
5020 if test "$no_cache" != 1; then
5021 echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
5022 fi
5023
5024 if test "$wxUSE_STATLINE" = yes; then
5025 echo "$ac_t""yes" 1>&6
5026 else
5027 echo "$ac_t""no" 1>&6
5028 fi
5029
5030
5031 echo $ac_n "checking "for --enable-statusbar"""... $ac_c" 1>&6
422107f9 5032echo "configure:5033: checking "for --enable-statusbar"" >&5
10f2d63a
VZ
5033 no_cache=0
5034 # Check whether --enable-statusbar or --disable-statusbar was given.
5035if test "${enable_statusbar+set}" = set; then
5036 enableval="$enable_statusbar"
5037
5038 if test "$enableval" = yes; then
5039 ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
5040 else
5041 ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
5042 fi
5043
5044else
5045
5046 LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
5047 if test "x$LINE" != x ; then
5048 eval "DEFAULT_$LINE"
5049 else
5050 no_cache=1
5051 fi
5052
5053 ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
5054
5055fi
5056
5057
5058 eval "$ac_cv_use_statusbar"
5059 if test "$no_cache" != 1; then
5060 echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
5061 fi
5062
5063 if test "$wxUSE_STATUSBAR" = yes; then
5064 echo "$ac_t""yes" 1>&6
5065 else
5066 echo "$ac_t""no" 1>&6
5067 fi
5068
5069
5070 echo $ac_n "checking "for --enable-tabdialog"""... $ac_c" 1>&6
422107f9 5071echo "configure:5072: checking "for --enable-tabdialog"" >&5
10f2d63a
VZ
5072 no_cache=0
5073 # Check whether --enable-tabdialog or --disable-tabdialog was given.
5074if test "${enable_tabdialog+set}" = set; then
5075 enableval="$enable_tabdialog"
5076
5077 if test "$enableval" = yes; then
5078 ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes'
5079 else
5080 ac_cv_use_tabdialog='wxUSE_TABDIALOG=no'
5081 fi
5082
5083else
5084
5085 LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}`
5086 if test "x$LINE" != x ; then
5087 eval "DEFAULT_$LINE"
5088 else
5089 no_cache=1
5090 fi
5091
5092 ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG
5093
5094fi
5095
5096
5097 eval "$ac_cv_use_tabdialog"
5098 if test "$no_cache" != 1; then
5099 echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
5100 fi
5101
5102 if test "$wxUSE_TABDIALOG" = yes; then
5103 echo "$ac_t""yes" 1>&6
5104 else
5105 echo "$ac_t""no" 1>&6
5106 fi
5107
5108
5109 echo $ac_n "checking "for --enable-toolbar"""... $ac_c" 1>&6
422107f9 5110echo "configure:5111: checking "for --enable-toolbar"" >&5
10f2d63a
VZ
5111 no_cache=0
5112 # Check whether --enable-toolbar or --disable-toolbar was given.
5113if test "${enable_toolbar+set}" = set; then
5114 enableval="$enable_toolbar"
5115
5116 if test "$enableval" = yes; then
5117 ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
5118 else
5119 ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
5120 fi
5121
5122else
5123
5124 LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
5125 if test "x$LINE" != x ; then
5126 eval "DEFAULT_$LINE"
5127 else
5128 no_cache=1
5129 fi
5130
5131 ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
5132
5133fi
5134
5135
5136 eval "$ac_cv_use_toolbar"
5137 if test "$no_cache" != 1; then
5138 echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
5139 fi
5140
5141 if test "$wxUSE_TOOLBAR" = yes; then
5142 echo "$ac_t""yes" 1>&6
5143 else
5144 echo "$ac_t""no" 1>&6
5145 fi
5146
5147
360d6699 5148 echo $ac_n "checking "for --enable-tbarnative"""... $ac_c" 1>&6
422107f9 5149echo "configure:5150: checking "for --enable-tbarnative"" >&5
360d6699
VZ
5150 no_cache=0
5151 # Check whether --enable-tbarnative or --disable-tbarnative was given.
5152if test "${enable_tbarnative+set}" = set; then
5153 enableval="$enable_tbarnative"
5154
5155 if test "$enableval" = yes; then
5156 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
5157 else
5158 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
5159 fi
5160
5161else
5162
5163 LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
5164 if test "x$LINE" != x ; then
5165 eval "DEFAULT_$LINE"
5166 else
5167 no_cache=1
5168 fi
5169
5170 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
5171
5172fi
5173
5174
5175 eval "$ac_cv_use_tbarnative"
5176 if test "$no_cache" != 1; then
5177 echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
5178 fi
5179
5180 if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
5181 echo "$ac_t""yes" 1>&6
5182 else
5183 echo "$ac_t""no" 1>&6
5184 fi
5185
5186
5187 echo $ac_n "checking "for --enable-tbarsmpl"""... $ac_c" 1>&6
422107f9 5188echo "configure:5189: checking "for --enable-tbarsmpl"" >&5
360d6699
VZ
5189 no_cache=0
5190 # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given.
5191if test "${enable_tbarsmpl+set}" = set; then
5192 enableval="$enable_tbarsmpl"
5193
5194 if test "$enableval" = yes; then
5195 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes'
5196 else
5197 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no'
5198 fi
5199
5200else
5201
5202 LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}`
5203 if test "x$LINE" != x ; then
5204 eval "DEFAULT_$LINE"
5205 else
5206 no_cache=1
5207 fi
5208
5209 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE
5210
5211fi
5212
5213
5214 eval "$ac_cv_use_tbarsmpl"
5215 if test "$no_cache" != 1; then
5216 echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp
5217 fi
5218
5219 if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then
5220 echo "$ac_t""yes" 1>&6
5221 else
5222 echo "$ac_t""no" 1>&6
5223 fi
5224
5225
10f2d63a 5226 echo $ac_n "checking "for --enable-treectrl"""... $ac_c" 1>&6
422107f9 5227echo "configure:5228: checking "for --enable-treectrl"" >&5
10f2d63a
VZ
5228 no_cache=0
5229 # Check whether --enable-treectrl or --disable-treectrl was given.
5230if test "${enable_treectrl+set}" = set; then
5231 enableval="$enable_treectrl"
5232
5233 if test "$enableval" = yes; then
5234 ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
5235 else
5236 ac_cv_use_treectrl='wxUSE_TREECTRL=no'
5237 fi
5238
5239else
5240
5241 LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
5242 if test "x$LINE" != x ; then
5243 eval "DEFAULT_$LINE"
5244 else
5245 no_cache=1
5246 fi
5247
5248 ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
5249
5250fi
5251
5252
5253 eval "$ac_cv_use_treectrl"
5254 if test "$no_cache" != 1; then
5255 echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
5256 fi
5257
5258 if test "$wxUSE_TREECTRL" = yes; then
5259 echo "$ac_t""yes" 1>&6
5260 else
5261 echo "$ac_t""no" 1>&6
5262 fi
5263
5264
5265
5266
5267 echo $ac_n "checking "for --enable-commondlg"""... $ac_c" 1>&6
422107f9 5268echo "configure:5269: checking "for --enable-commondlg"" >&5
10f2d63a
VZ
5269 no_cache=0
5270 # Check whether --enable-commondlg or --disable-commondlg was given.
5271if test "${enable_commondlg+set}" = set; then
5272 enableval="$enable_commondlg"
5273
5274 if test "$enableval" = yes; then
5275 ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
5276 else
5277 ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
5278 fi
5279
5280else
5281
5282 LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
5283 if test "x$LINE" != x ; then
5284 eval "DEFAULT_$LINE"
5285 else
5286 no_cache=1
5287 fi
5288
5289 ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
5290
5291fi
5292
5293
5294 eval "$ac_cv_use_commondlg"
5295 if test "$no_cache" != 1; then
5296 echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
5297 fi
5298
5299 if test "$wxUSE_COMMONDLGS" = yes; then
5300 echo "$ac_t""yes" 1>&6
5301 else
5302 echo "$ac_t""no" 1>&6
5303 fi
5304
5305
5306 echo $ac_n "checking "for --enable-dirdlg"""... $ac_c" 1>&6
422107f9 5307echo "configure:5308: checking "for --enable-dirdlg"" >&5
10f2d63a
VZ
5308 no_cache=0
5309 # Check whether --enable-dirdlg or --disable-dirdlg was given.
5310if test "${enable_dirdlg+set}" = set; then
5311 enableval="$enable_dirdlg"
5312
5313 if test "$enableval" = yes; then
5314 ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
5315 else
5316 ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
5317 fi
5318
5319else
5320
5321 LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
5322 if test "x$LINE" != x ; then
5323 eval "DEFAULT_$LINE"
5324 else
5325 no_cache=1
5326 fi
5327
5328 ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
5329
5330fi
5331
5332
5333 eval "$ac_cv_use_dirdlg"
5334 if test "$no_cache" != 1; then
5335 echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
5336 fi
5337
5338 if test "$wxUSE_DIRDLG" = yes; then
5339 echo "$ac_t""yes" 1>&6
5340 else
5341 echo "$ac_t""no" 1>&6
5342 fi
5343
5344
5345 echo $ac_n "checking "for --enable-textdlg"""... $ac_c" 1>&6
422107f9 5346echo "configure:5347: checking "for --enable-textdlg"" >&5
10f2d63a
VZ
5347 no_cache=0
5348 # Check whether --enable-textdlg or --disable-textdlg was given.
5349if test "${enable_textdlg+set}" = set; then
5350 enableval="$enable_textdlg"
5351
5352 if test "$enableval" = yes; then
5353 ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
5354 else
5355 ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
5356 fi
5357
5358else
5359
5360 LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
5361 if test "x$LINE" != x ; then
5362 eval "DEFAULT_$LINE"
5363 else
5364 no_cache=1
5365 fi
5366
5367 ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
5368
5369fi
5370
5371
5372 eval "$ac_cv_use_textdlg"
5373 if test "$no_cache" != 1; then
5374 echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
5375 fi
5376
5377 if test "$wxUSE_TEXTDLG" = yes; then
5378 echo "$ac_t""yes" 1>&6
5379 else
5380 echo "$ac_t""no" 1>&6
5381 fi
5382
5383
5384 echo $ac_n "checking "for --enable-tipdlg"""... $ac_c" 1>&6
422107f9 5385echo "configure:5386: checking "for --enable-tipdlg"" >&5
10f2d63a
VZ
5386 no_cache=0
5387 # Check whether --enable-tipdlg or --disable-tipdlg was given.
5388if test "${enable_tipdlg+set}" = set; then
5389 enableval="$enable_tipdlg"
5390
5391 if test "$enableval" = yes; then
5392 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
5393 else
5394 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
5395 fi
5396
5397else
5398
5399 LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
5400 if test "x$LINE" != x ; then
5401 eval "DEFAULT_$LINE"
5402 else
5403 no_cache=1
5404 fi
5405
5406 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
5407
5408fi
5409
5410
5411 eval "$ac_cv_use_tipdlg"
5412 if test "$no_cache" != 1; then
5413 echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
5414 fi
5415
5416 if test "$wxUSE_STARTUP_TIPS" = yes; then
5417 echo "$ac_t""yes" 1>&6
5418 else
5419 echo "$ac_t""no" 1>&6
5420 fi
5421
5422
5423 echo $ac_n "checking "for --enable-progressdlg"""... $ac_c" 1>&6
422107f9 5424echo "configure:5425: checking "for --enable-progressdlg"" >&5
10f2d63a
VZ
5425 no_cache=0
5426 # Check whether --enable-progressdlg or --disable-progressdlg was given.
5427if test "${enable_progressdlg+set}" = set; then
5428 enableval="$enable_progressdlg"
5429
5430 if test "$enableval" = yes; then
5431 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
5432 else
5433 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
5434 fi
5435
5436else
5437
5438 LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
5439 if test "x$LINE" != x ; then
5440 eval "DEFAULT_$LINE"
5441 else
5442 no_cache=1
5443 fi
5444
5445 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
5446
5447fi
5448
5449
5450 eval "$ac_cv_use_progressdlg"
5451 if test "$no_cache" != 1; then
5452 echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
5453 fi
5454
5455 if test "$wxUSE_PROGRESSDLG" = yes; then
5456 echo "$ac_t""yes" 1>&6
5457 else
5458 echo "$ac_t""no" 1>&6
5459 fi
5460
5461
5462 echo $ac_n "checking "for --enable-miniframe"""... $ac_c" 1>&6
422107f9 5463echo "configure:5464: checking "for --enable-miniframe"" >&5
10f2d63a
VZ
5464 no_cache=0
5465 # Check whether --enable-miniframe or --disable-miniframe was given.
5466if test "${enable_miniframe+set}" = set; then
5467 enableval="$enable_miniframe"
5468
5469 if test "$enableval" = yes; then
5470 ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
5471 else
5472 ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
5473 fi
5474
5475else
5476
5477 LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
5478 if test "x$LINE" != x ; then
5479 eval "DEFAULT_$LINE"
5480 else
5481 no_cache=1
5482 fi
5483
5484 ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
5485
5486fi
5487
5488
5489 eval "$ac_cv_use_miniframe"
5490 if test "$no_cache" != 1; then
5491 echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
5492 fi
5493
5494 if test "$wxUSE_MINIFRAME" = yes; then
5495 echo "$ac_t""yes" 1>&6
5496 else
5497 echo "$ac_t""no" 1>&6
5498 fi
5499
5500
5501 echo $ac_n "checking "for --enable-html"""... $ac_c" 1>&6
422107f9 5502echo "configure:5503: checking "for --enable-html"" >&5
10f2d63a
VZ
5503 no_cache=0
5504 # Check whether --enable-html or --disable-html was given.
5505if test "${enable_html+set}" = set; then
5506 enableval="$enable_html"
5507
5508 if test "$enableval" = yes; then
5509 ac_cv_use_html='wxUSE_HTML=yes'
5510 else
5511 ac_cv_use_html='wxUSE_HTML=no'
5512 fi
5513
5514else
5515
5516 LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
5517 if test "x$LINE" != x ; then
5518 eval "DEFAULT_$LINE"
5519 else
5520 no_cache=1
5521 fi
5522
5523 ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
5524
5525fi
5526
5527
5528 eval "$ac_cv_use_html"
5529 if test "$no_cache" != 1; then
5530 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
5531 fi
5532
5533 if test "$wxUSE_HTML" = yes; then
5534 echo "$ac_t""yes" 1>&6
5535 else
5536 echo "$ac_t""no" 1>&6
5537 fi
5538
5539
5540 echo $ac_n "checking "for --enable-tooltips"""... $ac_c" 1>&6
422107f9 5541echo "configure:5542: checking "for --enable-tooltips"" >&5
10f2d63a
VZ
5542 no_cache=0
5543 # Check whether --enable-tooltips or --disable-tooltips was given.
5544if test "${enable_tooltips+set}" = set; then
5545 enableval="$enable_tooltips"
5546
5547 if test "$enableval" = yes; then
5548 ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
5549 else
5550 ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
5551 fi
5552
5553else
5554
5555 LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
5556 if test "x$LINE" != x ; then
5557 eval "DEFAULT_$LINE"
5558 else
5559 no_cache=1
5560 fi
5561
5562 ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
5563
5564fi
5565
5566
5567 eval "$ac_cv_use_tooltips"
5568 if test "$no_cache" != 1; then
5569 echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
5570 fi
5571
5572 if test "$wxUSE_TOOLTIPS" = yes; then
5573 echo "$ac_t""yes" 1>&6
5574 else
5575 echo "$ac_t""no" 1>&6
5576 fi
5577
5578
5579 echo $ac_n "checking "for --enable-splines"""... $ac_c" 1>&6
422107f9 5580echo "configure:5581: checking "for --enable-splines"" >&5
10f2d63a
VZ
5581 no_cache=0
5582 # Check whether --enable-splines or --disable-splines was given.
5583if test "${enable_splines+set}" = set; then
5584 enableval="$enable_splines"
5585
5586 if test "$enableval" = yes; then
5587 ac_cv_use_splines='wxUSE_SPLINES=yes'
5588 else
5589 ac_cv_use_splines='wxUSE_SPLINES=no'
5590 fi
5591
5592else
5593
5594 LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
5595 if test "x$LINE" != x ; then
5596 eval "DEFAULT_$LINE"
5597 else
5598 no_cache=1
5599 fi
5600
5601 ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
5602
5603fi
5604
5605
5606 eval "$ac_cv_use_splines"
5607 if test "$no_cache" != 1; then
5608 echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
5609 fi
5610
5611 if test "$wxUSE_SPLINES" = yes; then
5612 echo "$ac_t""yes" 1>&6
5613 else
5614 echo "$ac_t""no" 1>&6
5615 fi
5616
5617
5618 echo $ac_n "checking "for --enable-validators"""... $ac_c" 1>&6
422107f9 5619echo "configure:5620: checking "for --enable-validators"" >&5
10f2d63a
VZ
5620 no_cache=0
5621 # Check whether --enable-validators or --disable-validators was given.
5622if test "${enable_validators+set}" = set; then
5623 enableval="$enable_validators"
5624
5625 if test "$enableval" = yes; then
5626 ac_cv_use_validators='wxUSE_VALIDATORS=yes'
5627 else
5628 ac_cv_use_validators='wxUSE_VALIDATORS=no'
5629 fi
5630
5631else
5632
5633 LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
5634 if test "x$LINE" != x ; then
5635 eval "DEFAULT_$LINE"
5636 else
5637 no_cache=1
5638 fi
5639
5640 ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
5641
5642fi
5643
5644
5645 eval "$ac_cv_use_validators"
5646 if test "$no_cache" != 1; then
5647 echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
5648 fi
5649
5650 if test "$wxUSE_VALIDATORS" = yes; then
5651 echo "$ac_t""yes" 1>&6
5652 else
5653 echo "$ac_t""no" 1>&6
5654 fi
5655
5656
5657 echo $ac_n "checking "for --enable-busyinfo"""... $ac_c" 1>&6
422107f9 5658echo "configure:5659: checking "for --enable-busyinfo"" >&5
10f2d63a
VZ
5659 no_cache=0
5660 # Check whether --enable-busyinfo or --disable-busyinfo was given.
5661if test "${enable_busyinfo+set}" = set; then
5662 enableval="$enable_busyinfo"
5663
5664 if test "$enableval" = yes; then
5665 ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
5666 else
5667 ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
5668 fi
5669
5670else
5671
5672 LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
5673 if test "x$LINE" != x ; then
5674 eval "DEFAULT_$LINE"
5675 else
5676 no_cache=1
5677 fi
5678
5679 ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
5680
5681fi
5682
5683
5684 eval "$ac_cv_use_busyinfo"
5685 if test "$no_cache" != 1; then
5686 echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
5687 fi
5688
5689 if test "$wxUSE_BUSYINFO" = yes; then
5690 echo "$ac_t""yes" 1>&6
5691 else
5692 echo "$ac_t""no" 1>&6
5693 fi
5694
5695
9b33fe02 5696 echo $ac_n "checking "for --enable-plot"""... $ac_c" 1>&6
422107f9 5697echo "configure:5698: checking "for --enable-plot"" >&5
9b33fe02
VZ
5698 no_cache=0
5699 # Check whether --enable-plot or --disable-plot was given.
5700if test "${enable_plot+set}" = set; then
5701 enableval="$enable_plot"
5702
5703 if test "$enableval" = yes; then
5704 ac_cv_use_plot='wxUSE_PLOT=yes'
5705 else
5706 ac_cv_use_plot='wxUSE_PLOT=no'
5707 fi
5708
5709else
5710
5711 LINE=`grep "wxUSE_PLOT" ${wx_arg_cache_file}`
5712 if test "x$LINE" != x ; then
5713 eval "DEFAULT_$LINE"
5714 else
5715 no_cache=1
5716 fi
5717
5718 ac_cv_use_plot='wxUSE_PLOT='$DEFAULT_wxUSE_PLOT
5719
5720fi
5721
5722
5723 eval "$ac_cv_use_plot"
5724 if test "$no_cache" != 1; then
5725 echo $ac_cv_use_plot >> ${wx_arg_cache_file}.tmp
5726 fi
5727
5728 if test "$wxUSE_PLOT" = yes; then
5729 echo "$ac_t""yes" 1>&6
5730 else
5731 echo "$ac_t""no" 1>&6
5732 fi
5733
5734
10f2d63a
VZ
5735
5736
5737 echo $ac_n "checking "for --enable-gif"""... $ac_c" 1>&6
422107f9 5738echo "configure:5739: checking "for --enable-gif"" >&5
10f2d63a
VZ
5739 no_cache=0
5740 # Check whether --enable-gif or --disable-gif was given.
5741if test "${enable_gif+set}" = set; then
5742 enableval="$enable_gif"
5743
5744 if test "$enableval" = yes; then
5745 ac_cv_use_gif='wxUSE_GIF=yes'
5746 else
5747 ac_cv_use_gif='wxUSE_GIF=no'
5748 fi
5749
5750else
5751
5752 LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
5753 if test "x$LINE" != x ; then
5754 eval "DEFAULT_$LINE"
5755 else
5756 no_cache=1
5757 fi
5758
5759 ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
5760
5761fi
5762
5763
5764 eval "$ac_cv_use_gif"
5765 if test "$no_cache" != 1; then
5766 echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
5767 fi
5768
5769 if test "$wxUSE_GIF" = yes; then
5770 echo "$ac_t""yes" 1>&6
5771 else
5772 echo "$ac_t""no" 1>&6
5773 fi
5774
5775
5776 echo $ac_n "checking "for --enable-pcx"""... $ac_c" 1>&6
422107f9 5777echo "configure:5778: checking "for --enable-pcx"" >&5
10f2d63a
VZ
5778 no_cache=0
5779 # Check whether --enable-pcx or --disable-pcx was given.
5780if test "${enable_pcx+set}" = set; then
5781 enableval="$enable_pcx"
5782
5783 if test "$enableval" = yes; then
5784 ac_cv_use_pcx='wxUSE_PCX=yes'
5785 else
5786 ac_cv_use_pcx='wxUSE_PCX=no'
5787 fi
5788
5789else
5790
5791 LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
5792 if test "x$LINE" != x ; then
5793 eval "DEFAULT_$LINE"
5794 else
5795 no_cache=1
5796 fi
5797
5798 ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
5799
5800fi
5801
5802
5803 eval "$ac_cv_use_pcx"
5804 if test "$no_cache" != 1; then
5805 echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
5806 fi
5807
5808 if test "$wxUSE_PCX" = yes; then
5809 echo "$ac_t""yes" 1>&6
5810 else
5811 echo "$ac_t""no" 1>&6
5812 fi
5813
5814
5815 echo $ac_n "checking "for --enable-pnm"""... $ac_c" 1>&6
422107f9 5816echo "configure:5817: checking "for --enable-pnm"" >&5
10f2d63a
VZ
5817 no_cache=0
5818 # Check whether --enable-pnm or --disable-pnm was given.
5819if test "${enable_pnm+set}" = set; then
5820 enableval="$enable_pnm"
5821
5822 if test "$enableval" = yes; then
5823 ac_cv_use_pnm='wxUSE_PNM=yes'
5824 else
5825 ac_cv_use_pnm='wxUSE_PNM=no'
5826 fi
5827
5828else
5829
5830 LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
5831 if test "x$LINE" != x ; then
5832 eval "DEFAULT_$LINE"
5833 else
5834 no_cache=1
5835 fi
5836
5837 ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
5838
5839fi
5840
5841
5842 eval "$ac_cv_use_pnm"
5843 if test "$no_cache" != 1; then
5844 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
5845 fi
5846
5847 if test "$wxUSE_PNM" = yes; then
5848 echo "$ac_t""yes" 1>&6
5849 else
5850 echo "$ac_t""no" 1>&6
5851 fi
5852
5853
b12915c1
VZ
5854fi
5855
10f2d63a
VZ
5856
5857 echo "saving argument cache $wx_arg_cache_file"
5858 mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
5859
5860
5861
5862echo $ac_n "checking for toolkit""... $ac_c" 1>&6
422107f9 5863echo "configure:5864: checking for toolkit" >&5
10f2d63a
VZ
5864
5865if test "$wxUSE_GUI" = "yes"; then
5866
b12915c1
VZ
5867if test "$USE_BEOS" = 1; then
5868 { echo "configure: error: BeOS GUI is not supported yet, use --disable-gui" 1>&2; exit 1; }
5869fi
5870
10f2d63a
VZ
5871if test "$TOOLKIT_GIVEN" = 1; then
5872 for toolkit in `echo $ALL_TOOLKITS`; do
5873 var=wxUSE_$toolkit
5874 eval "value=\$${var}"
5875 eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`"
5876 done
5877else
5878 for toolkit in `echo $ALL_TOOLKITS`; do
5879 if test "$has_toolkit_in_cache" != 1; then
5880 var=DEFAULT_DEFAULT_wxUSE_$toolkit
5881 else
5882 var=DEFAULT_wxUSE_$toolkit
5883 fi
5884 eval "wxUSE_$toolkit=\$${var}"
5885 done
5886fi
5887
ec14dd32 5888NUM_TOOLKITS=`expr ${wxUSE_GTK:-0} + ${wxUSE_MOTIF:-0} + ${wxUSE_WINE:-0} + ${wxUSE_MINGW:-0} + ${wxUSE_CYGWIN:-0}`
cf27ef00 5889
ec14dd32
VZ
5890case "${host}" in
5891 *-pc-os2_emx )
5892 NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
5893 # PATH_IFS is autodetected by OS/2's configure (usually ';')
5894 LEX_STEM="lexyy"
5895 ;;
5896 *)
5897 PATH_IFS=':'
5898 LEX_STEM="lex.yy"
5899 ;;
5900esac
10f2d63a
VZ
5901
5902case "$NUM_TOOLKITS" in
5903 1)
5904 ;;
5905 0)
5906 { echo "configure: error: Please specify a toolkit - cannot determine the default for ${host}" 1>&2; exit 1; }
5907 ;;
5908 *)
5909 { echo "configure: error: Please specify at most one toolkit (may be some are cached?)" 1>&2; exit 1; }
5910esac
5911
5912for toolkit in `echo $ALL_TOOLKITS`; do
5913 var=wxUSE_$toolkit
5914 eval "value=\$${var}"
5915 if test "x$value" != x; then
5916 cache_var=CACHE_$toolkit
5917 eval "cache=\$${cache_var}"
5918 if test "$cache" = 1; then
5919 echo "$var=$value" >> ${wx_arg_cache_file}
5920 fi
5921 if test "$value" = 1; then
5922 echo "$ac_t""`echo $toolkit | tr A-Z a-z`" 1>&6
5923 fi
5924 fi
5925done
5926
5927else
cf27ef00 5928 PATH_IFS=':'
10f2d63a
VZ
5929 echo "$ac_t""base only" 1>&6
5930fi
5931
5932
5933cat > confcache <<\EOF
5934# This file is a shell script that caches the results of configure
5935# tests run on this system so they can be shared between configure
5936# scripts and configure runs. It is not useful on other systems.
5937# If it contains results you don't want to keep, you may remove or edit it.
5938#
5939# By default, configure uses ./config.cache as the cache file,
5940# creating it if it does not exist already. You can give configure
5941# the --cache-file=FILE option to use a different cache file; that is
5942# what configure does when it calls configure scripts in
5943# subdirectories, so they share the cache.
5944# Giving --cache-file=/dev/null disables caching, for debugging configure.
5945# config.status only pays attention to the cache file if you give it the
5946# --recheck option to rerun configure.
5947#
5948EOF
5949# The following way of writing the cache mishandles newlines in values,
5950# but we know of no workaround that is simple, portable, and efficient.
5951# So, don't put newlines in cache variables' values.
5952# Ultrix sh set writes to stderr and can't be redirected directly,
5953# and sets the high bit in the cache file unless we assign to the vars.
5954(set) 2>&1 |
5955 case `(ac_space=' '; set | grep ac_space) 2>&1` in
5956 *ac_space=\ *)
5957 # `set' does not quote correctly, so add quotes (double-quote substitution
5958 # turns \\\\ into \\, and sed turns \\ into \).
5959 sed -n \
5960 -e "s/'/'\\\\''/g" \
5961 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
5962 ;;
5963 *)
5964 # `set' quotes correctly as required by POSIX, so do not add quotes.
5965 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
5966 ;;
5967 esac >> confcache
5968if cmp -s $cache_file confcache; then
5969 :
5970else
5971 if test -w $cache_file; then
5972 echo "updating cache $cache_file"
5973 cat confcache > $cache_file
5974 else
5975 echo "not updating unwritable cache $cache_file"
5976 fi
5977fi
5978rm -f confcache
5979
5980
5981if eval "test $host != $build"; then
5982 if eval "test $host_alias != NONE"; then
5983 CC=$host_alias-gcc
5984 CXX=$host_alias-c++
5985 AR=$host_alias-ar
5986 RANLIB=$host_alias-ranlib
5987 DLLTOOL=$host_alias-dlltool
5988 LD=$host_alias-ld
5989 NM=$host_alias-nm
5990 STRIP=$host_alias-strip
5991 fi
5992fi
5993
5994# Extract the first word of "gcc", so it can be a program name with args.
5995set dummy gcc; ac_word=$2
5996echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
422107f9 5997echo "configure:5998: checking for $ac_word" >&5
10f2d63a
VZ
5998if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
5999 echo $ac_n "(cached) $ac_c" 1>&6
6000else
6001 if test -n "$CC"; then
6002 ac_cv_prog_CC="$CC" # Let the user override the test.
6003else
6004 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6005 ac_dummy="$PATH"
6006 for ac_dir in $ac_dummy; do
6007 test -z "$ac_dir" && ac_dir=.
6008 if test -f $ac_dir/$ac_word; then
6009 ac_cv_prog_CC="gcc"
6010 break
6011 fi
6012 done
6013 IFS="$ac_save_ifs"
6014fi
6015fi
6016CC="$ac_cv_prog_CC"
6017if test -n "$CC"; then
6018 echo "$ac_t""$CC" 1>&6
6019else
6020 echo "$ac_t""no" 1>&6
6021fi
6022
6023if test -z "$CC"; then
6024 # Extract the first word of "cc", so it can be a program name with args.
6025set dummy cc; ac_word=$2
6026echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
422107f9 6027echo "configure:6028: checking for $ac_word" >&5
10f2d63a
VZ
6028if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
6029 echo $ac_n "(cached) $ac_c" 1>&6
6030else
6031 if test -n "$CC"; then
6032 ac_cv_prog_CC="$CC" # Let the user override the test.
6033else
6034 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6035 ac_prog_rejected=no
6036 ac_dummy="$PATH"
6037 for ac_dir in $ac_dummy; do
6038 test -z "$ac_dir" && ac_dir=.
6039 if test -f $ac_dir/$ac_word; then
6040 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
6041 ac_prog_rejected=yes
6042 continue
6043 fi
6044 ac_cv_prog_CC="cc"
6045 break
6046 fi
6047 done
6048 IFS="$ac_save_ifs"
6049if test $ac_prog_rejected = yes; then
6050 # We found a bogon in the path, so make sure we never use it.
6051 set dummy $ac_cv_prog_CC
6052 shift
6053 if test $# -gt 0; then
6054 # We chose a different compiler from the bogus one.
6055 # However, it has the same basename, so the bogon will be chosen
6056 # first if we set CC to just the basename; use the full file name.
6057 shift
6058 set dummy "$ac_dir/$ac_word" "$@"
6059 shift
6060 ac_cv_prog_CC="$@"
6061 fi
6062fi
6063fi
6064fi
6065CC="$ac_cv_prog_CC"
6066if test -n "$CC"; then
6067 echo "$ac_t""$CC" 1>&6
6068else
6069 echo "$ac_t""no" 1>&6
6070fi
6071
6072 if test -z "$CC"; then
6073 case "`uname -s`" in
6074 *win32* | *WIN32*)
6075 # Extract the first word of "cl", so it can be a program name with args.
6076set dummy cl; ac_word=$2
6077echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
422107f9 6078echo "configure:6079: checking for $ac_word" >&5
10f2d63a
VZ
6079if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
6080 echo $ac_n "(cached) $ac_c" 1>&6
6081else
6082 if test -n "$CC"; then
6083 ac_cv_prog_CC="$CC" # Let the user override the test.
6084else
6085 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6086 ac_dummy="$PATH"
6087 for ac_dir in $ac_dummy; do
6088 test -z "$ac_dir" && ac_dir=.
6089 if test -f $ac_dir/$ac_word; then
6090 ac_cv_prog_CC="cl"
6091 break
6092 fi
6093 done
6094 IFS="$ac_save_ifs"
6095fi
6096fi
6097CC="$ac_cv_prog_CC"
6098if test -n "$CC"; then
6099 echo "$ac_t""$CC" 1>&6
6100else
6101 echo "$ac_t""no" 1>&6
6102fi
6103 ;;
6104 esac
6105 fi
6106 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
6107fi
6108
6109echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
422107f9 6110echo "configure:6111: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
10f2d63a
VZ
6111
6112ac_ext=c
6113# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6114ac_cpp='$CPP $CPPFLAGS'
6115ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6116ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6117cross_compiling=$ac_cv_prog_cc_cross
6118
6119cat > conftest.$ac_ext << EOF
6120
422107f9 6121#line 6122 "configure"
10f2d63a
VZ
6122#include "confdefs.h"
6123
6124main(){return(0);}
6125EOF
422107f9 6126if { (eval echo configure:6127: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
6127 ac_cv_prog_cc_works=yes
6128 # If we can't run a trivial program, we are probably using a cross compiler.
6129 if (./conftest; exit) 2>/dev/null; then
6130 ac_cv_prog_cc_cross=no
6131 else
6132 ac_cv_prog_cc_cross=yes
6133 fi
6134else
6135 echo "configure: failed program was:" >&5
6136 cat conftest.$ac_ext >&5
6137 ac_cv_prog_cc_works=no
6138fi
6139rm -fr conftest*
6140ac_ext=c
6141# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6142ac_cpp='$CPP $CPPFLAGS'
6143ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6144ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6145cross_compiling=$ac_cv_prog_cc_cross
6146
6147echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
6148if test $ac_cv_prog_cc_works = no; then
6149 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
6150fi
6151echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
422107f9 6152echo "configure:6153: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
10f2d63a
VZ
6153echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
6154cross_compiling=$ac_cv_prog_cc_cross
6155
6156echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
422107f9 6157echo "configure:6158: checking whether we are using GNU C" >&5
10f2d63a
VZ
6158if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
6159 echo $ac_n "(cached) $ac_c" 1>&6
6160else
6161 cat > conftest.c <<EOF
6162#ifdef __GNUC__
6163 yes;
6164#endif
6165EOF
422107f9 6166if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:6167: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
10f2d63a
VZ
6167 ac_cv_prog_gcc=yes
6168else
6169 ac_cv_prog_gcc=no
6170fi
6171fi
6172
6173echo "$ac_t""$ac_cv_prog_gcc" 1>&6
6174
6175if test $ac_cv_prog_gcc = yes; then
6176 GCC=yes
6177else
6178 GCC=
6179fi
6180
6181ac_test_CFLAGS="${CFLAGS+set}"
6182ac_save_CFLAGS="$CFLAGS"
6183CFLAGS=
6184echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
422107f9 6185echo "configure:6186: checking whether ${CC-cc} accepts -g" >&5
10f2d63a
VZ
6186if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
6187 echo $ac_n "(cached) $ac_c" 1>&6
6188else
6189 echo 'void f(){}' > conftest.c
6190if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
6191 ac_cv_prog_cc_g=yes
6192else
6193 ac_cv_prog_cc_g=no
6194fi
6195rm -f conftest*
6196
6197fi
6198
6199echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
6200if test "$ac_test_CFLAGS" = set; then
6201 CFLAGS="$ac_save_CFLAGS"
6202elif test $ac_cv_prog_cc_g = yes; then
6203 if test "$GCC" = yes; then
6204 CFLAGS="-g -O2"
6205 else
6206 CFLAGS="-g"
6207 fi
6208else
6209 if test "$GCC" = yes; then
6210 CFLAGS="-O2"
6211 else
6212 CFLAGS=
6213 fi
6214fi
6215
6216
6217CFLAGS=`echo "$CFLAGS" | sed 's/-g//g'`
6218
6219echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
422107f9 6220echo "configure:6221: checking how to run the C preprocessor" >&5
10f2d63a
VZ
6221# On Suns, sometimes $CPP names a directory.
6222if test -n "$CPP" && test -d "$CPP"; then
6223 CPP=
6224fi
6225if test -z "$CPP"; then
6226if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
6227 echo $ac_n "(cached) $ac_c" 1>&6
6228else
6229 # This must be in double quotes, not single quotes, because CPP may get
6230 # substituted into the Makefile and "${CC-cc}" will confuse make.
6231 CPP="${CC-cc} -E"
6232 # On the NeXT, cc -E runs the code through the compiler's parser,
6233 # not just through cpp.
6234 cat > conftest.$ac_ext <<EOF
422107f9 6235#line 6236 "configure"
10f2d63a
VZ
6236#include "confdefs.h"
6237#include <assert.h>
6238Syntax Error
6239EOF
6240ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
422107f9 6241{ (eval echo configure:6242: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
6242ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6243if test -z "$ac_err"; then
6244 :
6245else
6246 echo "$ac_err" >&5
6247 echo "configure: failed program was:" >&5
6248 cat conftest.$ac_ext >&5
6249 rm -rf conftest*
6250 CPP="${CC-cc} -E -traditional-cpp"
6251 cat > conftest.$ac_ext <<EOF
422107f9 6252#line 6253 "configure"
10f2d63a
VZ
6253#include "confdefs.h"
6254#include <assert.h>
6255Syntax Error
6256EOF
6257ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
422107f9 6258{ (eval echo configure:6259: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
6259ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6260if test -z "$ac_err"; then
6261 :
6262else
6263 echo "$ac_err" >&5
6264 echo "configure: failed program was:" >&5
6265 cat conftest.$ac_ext >&5
6266 rm -rf conftest*
6267 CPP="${CC-cc} -nologo -E"
6268 cat > conftest.$ac_ext <<EOF
422107f9 6269#line 6270 "configure"
10f2d63a
VZ
6270#include "confdefs.h"
6271#include <assert.h>
6272Syntax Error
6273EOF
6274ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
422107f9 6275{ (eval echo configure:6276: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
6276ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6277if test -z "$ac_err"; then
6278 :
6279else
6280 echo "$ac_err" >&5
6281 echo "configure: failed program was:" >&5
6282 cat conftest.$ac_ext >&5
6283 rm -rf conftest*
6284 CPP=/lib/cpp
6285fi
6286rm -f conftest*
6287fi
6288rm -f conftest*
6289fi
6290rm -f conftest*
6291 ac_cv_prog_CPP="$CPP"
6292fi
6293 CPP="$ac_cv_prog_CPP"
6294else
6295 ac_cv_prog_CPP="$CPP"
6296fi
6297echo "$ac_t""$CPP" 1>&6
6298
6299
6300if test $ac_cv_prog_gcc = yes; then
6301 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
422107f9 6302echo "configure:6303: checking whether ${CC-cc} needs -traditional" >&5
10f2d63a
VZ
6303if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
6304 echo $ac_n "(cached) $ac_c" 1>&6
6305else
6306 ac_pattern="Autoconf.*'x'"
6307 cat > conftest.$ac_ext <<EOF
422107f9 6308#line 6309 "configure"
10f2d63a
VZ
6309#include "confdefs.h"
6310#include <sgtty.h>
6311Autoconf TIOCGETP
6312EOF
6313if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6314 egrep "$ac_pattern" >/dev/null 2>&1; then
6315 rm -rf conftest*
6316 ac_cv_prog_gcc_traditional=yes
6317else
6318 rm -rf conftest*
6319 ac_cv_prog_gcc_traditional=no
6320fi
6321rm -f conftest*
6322
6323
6324 if test $ac_cv_prog_gcc_traditional = no; then
6325 cat > conftest.$ac_ext <<EOF
422107f9 6326#line 6327 "configure"
10f2d63a
VZ
6327#include "confdefs.h"
6328#include <termio.h>
6329Autoconf TCGETA
6330EOF
6331if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6332 egrep "$ac_pattern" >/dev/null 2>&1; then
6333 rm -rf conftest*
6334 ac_cv_prog_gcc_traditional=yes
6335fi
6336rm -f conftest*
6337
6338 fi
6339fi
6340
6341echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
6342 if test $ac_cv_prog_gcc_traditional = yes; then
6343 CC="$CC -traditional"
6344 fi
6345fi
6346
6347
6348
6349ac_ext=C
6350# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6351ac_cpp='$CXXCPP $CPPFLAGS'
6352ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6353ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6354cross_compiling=$ac_cv_prog_cxx_cross
6355
6356
6357for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
6358do
6359# Extract the first word of "$ac_prog", so it can be a program name with args.
6360set dummy $ac_prog; ac_word=$2
6361echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
422107f9 6362echo "configure:6363: checking for $ac_word" >&5
10f2d63a
VZ
6363if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
6364 echo $ac_n "(cached) $ac_c" 1>&6
6365else
6366 if test -n "$CXX"; then
6367 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6368else
6369 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6370 ac_dummy="$PATH"
6371 for ac_dir in $ac_dummy; do
6372 test -z "$ac_dir" && ac_dir=.
6373 if test -f $ac_dir/$ac_word; then
6374 ac_cv_prog_CXX="$ac_prog"
6375 break
6376 fi
6377 done
6378 IFS="$ac_save_ifs"
6379fi
6380fi
6381CXX="$ac_cv_prog_CXX"
6382if test -n "$CXX"; then
6383 echo "$ac_t""$CXX" 1>&6
6384else
6385 echo "$ac_t""no" 1>&6
6386fi
6387
6388test -n "$CXX" && break
6389done
6390test -n "$CXX" || CXX="gcc"
6391
6392
6393echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
422107f9 6394echo "configure:6395: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
10f2d63a
VZ
6395
6396ac_ext=C
6397# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6398ac_cpp='$CXXCPP $CPPFLAGS'
6399ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6400ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6401cross_compiling=$ac_cv_prog_cxx_cross
6402
6403cat > conftest.$ac_ext << EOF
6404
422107f9 6405#line 6406 "configure"
10f2d63a
VZ
6406#include "confdefs.h"
6407
6408int main(){return(0);}
6409EOF
422107f9 6410if { (eval echo configure:6411: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
6411 ac_cv_prog_cxx_works=yes
6412 # If we can't run a trivial program, we are probably using a cross compiler.
6413 if (./conftest; exit) 2>/dev/null; then
6414 ac_cv_prog_cxx_cross=no
6415 else
6416 ac_cv_prog_cxx_cross=yes
6417 fi
6418else
6419 echo "configure: failed program was:" >&5
6420 cat conftest.$ac_ext >&5
6421 ac_cv_prog_cxx_works=no
6422fi
6423rm -fr conftest*
6424ac_ext=C
6425# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6426ac_cpp='$CXXCPP $CPPFLAGS'
6427ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6428ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6429cross_compiling=$ac_cv_prog_cxx_cross
6430
6431echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
6432if test $ac_cv_prog_cxx_works = no; then
6433 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
6434fi
6435echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
422107f9 6436echo "configure:6437: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
10f2d63a
VZ
6437echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
6438cross_compiling=$ac_cv_prog_cxx_cross
6439
6440echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
422107f9 6441echo "configure:6442: checking whether we are using GNU C++" >&5
10f2d63a
VZ
6442if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
6443 echo $ac_n "(cached) $ac_c" 1>&6
6444else
6445 cat > conftest.C <<EOF
6446#ifdef __GNUC__
6447 yes;
6448#endif
6449EOF
422107f9 6450if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:6451: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
10f2d63a
VZ
6451 ac_cv_prog_gxx=yes
6452else
6453 ac_cv_prog_gxx=no
6454fi
6455fi
6456
6457echo "$ac_t""$ac_cv_prog_gxx" 1>&6
6458
6459if test $ac_cv_prog_gxx = yes; then
6460 GXX=yes
6461else
6462 GXX=
6463fi
6464
6465ac_test_CXXFLAGS="${CXXFLAGS+set}"
6466ac_save_CXXFLAGS="$CXXFLAGS"
6467CXXFLAGS=
6468echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
422107f9 6469echo "configure:6470: checking whether ${CXX-g++} accepts -g" >&5
10f2d63a
VZ
6470if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
6471 echo $ac_n "(cached) $ac_c" 1>&6
6472else
6473 echo 'void f(){}' > conftest.cc
6474if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
6475 ac_cv_prog_cxx_g=yes
6476else
6477 ac_cv_prog_cxx_g=no
6478fi
6479rm -f conftest*
6480
6481fi
6482
6483echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
6484if test "$ac_test_CXXFLAGS" = set; then
6485 CXXFLAGS="$ac_save_CXXFLAGS"
6486elif test $ac_cv_prog_cxx_g = yes; then
6487 if test "$GXX" = yes; then
6488 CXXFLAGS="-g -O2"
6489 else
6490 CXXFLAGS="-g"
6491 fi
6492else
6493 if test "$GXX" = yes; then
6494 CXXFLAGS="-O2"
6495 else
6496 CXXFLAGS=
6497 fi
6498fi
6499
6500
6501echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
422107f9 6502echo "configure:6503: checking how to run the C++ preprocessor" >&5
10f2d63a
VZ
6503if test -z "$CXXCPP"; then
6504if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
6505 echo $ac_n "(cached) $ac_c" 1>&6
6506else
6507 ac_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
6513 CXXCPP="${CXX-g++} -E"
6514 cat > conftest.$ac_ext <<EOF
422107f9 6515#line 6516 "configure"
10f2d63a
VZ
6516#include "confdefs.h"
6517#include <stdlib.h>
6518EOF
6519ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
422107f9 6520{ (eval echo configure:6521: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
6521ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6522if test -z "$ac_err"; then
6523 :
6524else
6525 echo "$ac_err" >&5
6526 echo "configure: failed program was:" >&5
6527 cat conftest.$ac_ext >&5
6528 rm -rf conftest*
6529 CXXCPP=/lib/cpp
6530fi
6531rm -f conftest*
6532 ac_cv_prog_CXXCPP="$CXXCPP"
6533ac_ext=C
6534# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6535ac_cpp='$CXXCPP $CPPFLAGS'
6536ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6537ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6538cross_compiling=$ac_cv_prog_cxx_cross
6539fi
6540fi
6541CXXCPP="$ac_cv_prog_CXXCPP"
6542echo "$ac_t""$CXXCPP" 1>&6
6543
6544
6545CXXFLAGS=`echo "$CXXFLAGS" | sed 's/-g//g'`
6546
6547ac_ext=c
6548# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6549ac_cpp='$CPP $CPPFLAGS'
6550ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6551ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6552cross_compiling=$ac_cv_prog_cc_cross
6553
6554
6555# Extract the first word of "ranlib", so it can be a program name with args.
6556set dummy ranlib; ac_word=$2
6557echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
422107f9 6558echo "configure:6559: checking for $ac_word" >&5
10f2d63a
VZ
6559if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
6560 echo $ac_n "(cached) $ac_c" 1>&6
6561else
6562 if test -n "$RANLIB"; then
6563 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6564else
6565 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6566 ac_dummy="$PATH"
6567 for ac_dir in $ac_dummy; do
6568 test -z "$ac_dir" && ac_dir=.
6569 if test -f $ac_dir/$ac_word; then
6570 ac_cv_prog_RANLIB="ranlib"
6571 break
6572 fi
6573 done
6574 IFS="$ac_save_ifs"
6575 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
6576fi
6577fi
6578RANLIB="$ac_cv_prog_RANLIB"
6579if test -n "$RANLIB"; then
6580 echo "$ac_t""$RANLIB" 1>&6
6581else
6582 echo "$ac_t""no" 1>&6
6583fi
6584
6585
6586# Extract the first word of "ar", so it can be a program name with args.
6587set dummy ar; ac_word=$2
6588echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
422107f9 6589echo "configure:6590: checking for $ac_word" >&5
10f2d63a
VZ
6590if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
6591 echo $ac_n "(cached) $ac_c" 1>&6
6592else
6593 if test -n "$AR"; then
6594 ac_cv_prog_AR="$AR" # Let the user override the test.
6595else
6596 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6597 ac_dummy="$PATH"
6598 for ac_dir in $ac_dummy; do
6599 test -z "$ac_dir" && ac_dir=.
6600 if test -f $ac_dir/$ac_word; then
6601 ac_cv_prog_AR="ar"
6602 break
6603 fi
6604 done
6605 IFS="$ac_save_ifs"
6606 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
6607fi
6608fi
6609AR="$ac_cv_prog_AR"
6610if test -n "$AR"; then
6611 echo "$ac_t""$AR" 1>&6
6612else
6613 echo "$ac_t""no" 1>&6
6614fi
6615
6616
6617# Find a good install program. We prefer a C program (faster),
6618# so one script is as good as another. But avoid the broken or
6619# incompatible versions:
6620# SysV /etc/install, /usr/sbin/install
6621# SunOS /usr/etc/install
6622# IRIX /sbin/install
6623# AIX /bin/install
6624# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6625# AFS /usr/afsws/bin/install, which mishandles nonexistent args
6626# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6627# ./install, which can be erroneously created by make from ./install.sh.
6628echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
422107f9 6629echo "configure:6630: checking for a BSD compatible install" >&5
10f2d63a
VZ
6630if test -z "$INSTALL"; then
6631if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
6632 echo $ac_n "(cached) $ac_c" 1>&6
6633else
6634 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
6635 for ac_dir in $PATH; do
6636 # Account for people who put trailing slashes in PATH elements.
6637 case "$ac_dir/" in
6638 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
6639 *)
6640 # OSF1 and SCO ODT 3.0 have their own names for install.
6641 # Don't use installbsd from OSF since it installs stuff as root
6642 # by default.
6643 for ac_prog in ginstall scoinst install; do
6644 if test -f $ac_dir/$ac_prog; then
6645 if test $ac_prog = install &&
6646 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
6647 # AIX install. It has an incompatible calling convention.
6648 :
6649 else
6650 ac_cv_path_install="$ac_dir/$ac_prog -c"
6651 break 2
6652 fi
6653 fi
6654 done
6655 ;;
6656 esac
6657 done
6658 IFS="$ac_save_IFS"
6659
6660fi
6661 if test "${ac_cv_path_install+set}" = set; then
6662 INSTALL="$ac_cv_path_install"
6663 else
6664 # As a last resort, use the slow shell script. We don't cache a
6665 # path for INSTALL within a source directory, because that will
6666 # break other packages using the cache if that directory is
6667 # removed, or if the path is relative.
6668 INSTALL="$ac_install_sh"
6669 fi
6670fi
6671echo "$ac_t""$INSTALL" 1>&6
6672
6673# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6674# It thinks the first close brace ends the variable substitution.
6675test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6676
6677test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
6678
6679test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6680
6681
6682# Extract the first word of "strip", so it can be a program name with args.
6683set dummy strip; ac_word=$2
6684echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
422107f9 6685echo "configure:6686: checking for $ac_word" >&5
10f2d63a
VZ
6686if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
6687 echo $ac_n "(cached) $ac_c" 1>&6
6688else
6689 if test -n "$STRIP"; then
6690 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6691else
6692 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6693 ac_dummy="$PATH"
6694 for ac_dir in $ac_dummy; do
6695 test -z "$ac_dir" && ac_dir=.
6696 if test -f $ac_dir/$ac_word; then
6697 ac_cv_prog_STRIP="strip"
6698 break
6699 fi
6700 done
6701 IFS="$ac_save_ifs"
6702 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true"
6703fi
6704fi
6705STRIP="$ac_cv_prog_STRIP"
6706if test -n "$STRIP"; then
6707 echo "$ac_t""$STRIP" 1>&6
6708else
6709 echo "$ac_t""no" 1>&6
6710fi
6711
6712
6713echo $ac_n "checking "make for VPATH support"""... $ac_c" 1>&6
422107f9 6714echo "configure:6715: checking "make for VPATH support"" >&5
10f2d63a
VZ
6715cat - << EOF > confMake
6716check : file
6717 cp \$? \$@
6718 cp \$? final_file
6719EOF
6720
6721if test ! -d sub ; then
6722 mkdir sub
6723fi
6724echo dummy > sub/file
6725${MAKE-make} -f confMake VPATH=sub 2> config.log > /dev/null
6726RESULT=$?
6727rm -f sub/file check final_file confMake
6728rmdir sub
6729if test "$RESULT" = 0; then
6730 echo "$ac_t""yes" 1>&6
6731else
6732 echo "$ac_t""no" 1>&6
6733 { echo "configure: error: You need a make-utility that is able to use the variable
6734VPATH correctly.
6735If your version of make does not support VPATH correctly" 1>&2; exit 1; }
6736fi
6737
6738for ac_prog in 'bison -y' byacc
6739do
6740# Extract the first word of "$ac_prog", so it can be a program name with args.
6741set dummy $ac_prog; ac_word=$2
6742echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
422107f9 6743echo "configure:6744: checking for $ac_word" >&5
10f2d63a
VZ
6744if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
6745 echo $ac_n "(cached) $ac_c" 1>&6
6746else
6747 if test -n "$YACC"; then
6748 ac_cv_prog_YACC="$YACC" # Let the user override the test.
6749else
6750 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6751 ac_dummy="$PATH"
6752 for ac_dir in $ac_dummy; do
6753 test -z "$ac_dir" && ac_dir=.
6754 if test -f $ac_dir/$ac_word; then
6755 ac_cv_prog_YACC="$ac_prog"
6756 break
6757 fi
6758 done
6759 IFS="$ac_save_ifs"
6760fi
6761fi
6762YACC="$ac_cv_prog_YACC"
6763if test -n "$YACC"; then
6764 echo "$ac_t""$YACC" 1>&6
6765else
6766 echo "$ac_t""no" 1>&6
6767fi
6768
6769test -n "$YACC" && break
6770done
6771test -n "$YACC" || YACC="yacc"
6772
6773
6774# Extract the first word of "flex", so it can be a program name with args.
6775set dummy flex; ac_word=$2
6776echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
422107f9 6777echo "configure:6778: checking for $ac_word" >&5
10f2d63a
VZ
6778if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
6779 echo $ac_n "(cached) $ac_c" 1>&6
6780else
6781 if test -n "$LEX"; then
6782 ac_cv_prog_LEX="$LEX" # Let the user override the test.
6783else
6784 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6785 ac_dummy="$PATH"
6786 for ac_dir in $ac_dummy; do
6787 test -z "$ac_dir" && ac_dir=.
6788 if test -f $ac_dir/$ac_word; then
6789 ac_cv_prog_LEX="flex"
6790 break
6791 fi
6792 done
6793 IFS="$ac_save_ifs"
6794 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
6795fi
6796fi
6797LEX="$ac_cv_prog_LEX"
6798if test -n "$LEX"; then
6799 echo "$ac_t""$LEX" 1>&6
6800else
6801 echo "$ac_t""no" 1>&6
6802fi
6803
6804if test -z "$LEXLIB"
6805then
6806 case "$LEX" in
6807 flex*) ac_lib=fl ;;
6808 *) ac_lib=l ;;
6809 esac
6810 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
422107f9 6811echo "configure:6812: checking for yywrap in -l$ac_lib" >&5
10f2d63a
VZ
6812ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
6813if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6814 echo $ac_n "(cached) $ac_c" 1>&6
6815else
6816 ac_save_LIBS="$LIBS"
6817LIBS="-l$ac_lib $LIBS"
6818cat > conftest.$ac_ext <<EOF
422107f9 6819#line 6820 "configure"
10f2d63a
VZ
6820#include "confdefs.h"
6821/* Override any gcc2 internal prototype to avoid an error. */
6822/* We use char because int might match the return type of a gcc2
6823 builtin and then its argument prototype would still apply. */
6824char yywrap();
6825
6826int main() {
6827yywrap()
6828; return 0; }
6829EOF
422107f9 6830if { (eval echo configure:6831: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
6831 rm -rf conftest*
6832 eval "ac_cv_lib_$ac_lib_var=yes"
6833else
6834 echo "configure: failed program was:" >&5
6835 cat conftest.$ac_ext >&5
6836 rm -rf conftest*
6837 eval "ac_cv_lib_$ac_lib_var=no"
6838fi
6839rm -f conftest*
6840LIBS="$ac_save_LIBS"
6841
6842fi
6843if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6844 echo "$ac_t""yes" 1>&6
6845 LEXLIB="-l$ac_lib"
6846else
6847 echo "$ac_t""no" 1>&6
6848fi
6849
6850fi
6851
6852
6853echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
422107f9 6854echo "configure:6855: checking whether ln -s works" >&5
10f2d63a
VZ
6855if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
6856 echo $ac_n "(cached) $ac_c" 1>&6
6857else
6858 rm -f conftestdata
6859if ln -s X conftestdata 2>/dev/null
6860then
6861 rm -f conftestdata
6862 ac_cv_prog_LN_S="ln -s"
6863else
6864 ac_cv_prog_LN_S=ln
6865fi
6866fi
6867LN_S="$ac_cv_prog_LN_S"
6868if test "$ac_cv_prog_LN_S" = "ln -s"; then
6869 echo "$ac_t""yes" 1>&6
6870else
6871 echo "$ac_t""no" 1>&6
6872fi
6873
6874
6875
6876SEARCH_INCLUDE="\
6877 /usr/local/include \
6878 \
6879 /usr/Motif-1.2/include \
6880 /usr/Motif-2.1/include \
6881 \
6882 /usr/include/Motif1.2 \
6883 /opt/xpm/include/X11 \
6884 /opt/GBxpm/include/ \
6885 /opt/GBxpm/X11/include/ \
6886 \
6887 /usr/Motif1.2/include \
6888 /usr/dt/include \
afc31813
VZ
6889 /usr/openwin/include \
6890 \
10f2d63a
VZ
6891 /usr/include/Xm \
6892 \
6893 /usr/X11R6/include \
afc31813 6894 /usr/X11R6.4/include \
10f2d63a
VZ
6895 /usr/X11R5/include \
6896 /usr/X11R4/include \
6897 \
10f2d63a
VZ
6898 /usr/include/X11R6 \
6899 /usr/include/X11R5 \
6900 /usr/include/X11R4 \
6901 \
6902 /usr/local/X11R6/include \
6903 /usr/local/X11R5/include \
6904 /usr/local/X11R4/include \
6905 \
6906 /usr/local/include/X11R6 \
6907 /usr/local/include/X11R5 \
6908 /usr/local/include/X11R4 \
6909 \
6910 /usr/X11/include \
6911 /usr/include/X11 \
6912 /usr/local/X11/include \
6913 /usr/local/include/X11 \
6914 \
6915 /usr/X386/include \
6916 /usr/x386/include \
6917 /usr/XFree86/include/X11 \
6918 \
cf27ef00 6919 X:/XFree86/include \
ec14dd32
VZ
6920 X:/XFree86/include/X11 \
6921 \
10f2d63a
VZ
6922 /usr/include/gtk \
6923 /usr/local/include/gtk \
6924 /usr/include/glib \
6925 /usr/local/include/glib \
6926 \
6927 /usr/include/qt \
6928 /usr/local/include/qt \
6929 \
6930 /usr/include/windows \
6931 /usr/include/wine \
6932 /usr/local/include/wine \
6933 \
6934 /usr/unsupported/include \
6935 /usr/athena/include \
6936 /usr/local/x11r5/include \
6937 /usr/lpp/Xamples/include \
6938 \
10f2d63a 6939 /usr/openwin/share/include \
928b5c08
VZ
6940 \
6941 /usr/include"
10f2d63a
VZ
6942
6943SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s/include/lib/g` "
6944
6945
6946cat > confcache <<\EOF
6947# This file is a shell script that caches the results of configure
6948# tests run on this system so they can be shared between configure
6949# scripts and configure runs. It is not useful on other systems.
6950# If it contains results you don't want to keep, you may remove or edit it.
6951#
6952# By default, configure uses ./config.cache as the cache file,
6953# creating it if it does not exist already. You can give configure
6954# the --cache-file=FILE option to use a different cache file; that is
6955# what configure does when it calls configure scripts in
6956# subdirectories, so they share the cache.
6957# Giving --cache-file=/dev/null disables caching, for debugging configure.
6958# config.status only pays attention to the cache file if you give it the
6959# --recheck option to rerun configure.
6960#
6961EOF
6962# The following way of writing the cache mishandles newlines in values,
6963# but we know of no workaround that is simple, portable, and efficient.
6964# So, don't put newlines in cache variables' values.
6965# Ultrix sh set writes to stderr and can't be redirected directly,
6966# and sets the high bit in the cache file unless we assign to the vars.
6967(set) 2>&1 |
6968 case `(ac_space=' '; set | grep ac_space) 2>&1` in
6969 *ac_space=\ *)
6970 # `set' does not quote correctly, so add quotes (double-quote substitution
6971 # turns \\\\ into \\, and sed turns \\ into \).
6972 sed -n \
6973 -e "s/'/'\\\\''/g" \
6974 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
6975 ;;
6976 *)
6977 # `set' quotes correctly as required by POSIX, so do not add quotes.
6978 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
6979 ;;
6980 esac >> confcache
6981if cmp -s $cache_file confcache; then
6982 :
6983else
6984 if test -w $cache_file; then
6985 echo "updating cache $cache_file"
6986 cat confcache > $cache_file
6987 else
6988 echo "not updating unwritable cache $cache_file"
6989 fi
6990fi
6991rm -f confcache
6992
6993
6994
dad6c0ea
VZ
6995AFMINSTALL=
6996
10f2d63a
VZ
6997if test "$wxUSE_GUI" = "yes"; then
6998
dad6c0ea
VZ
6999USE_GUI=1
7000
10f2d63a
VZ
7001TOOLKIT=
7002TOOLKIT_INCLUDE=
7003
7004GUIOBJS=
7005COMMONOBJS=
7006GENERICOBJS=
7007
7008GUI_TK_LIBRARY=
7009GUI_TK_LINK=
7010
7011WXGTK12=
13111b2a 7012WXGTK13=
10f2d63a
VZ
7013
7014WXWINE=
7015
10f2d63a
VZ
7016if test "$wxUSE_CYGWIN" = 1 || test "$wxUSE_MINGW" = 1 ; then
7017 if test "$cross_compiling" = "yes" ; then
7018 echo "configure: warning: Cross compiling --- skipping windows.h check" 1>&2
7019 else
7020 echo $ac_n "checking for Windows headers""... $ac_c" 1>&6
422107f9 7021echo "configure:7022: checking for Windows headers" >&5
10f2d63a
VZ
7022
7023ac_find_includes=
7024for ac_dir in $SEARCH_INCLUDE;
7025 do
7026 if test -f "$ac_dir/windows.h"; then
7027 ac_find_includes=$ac_dir
7028 break
7029 fi
7030 done
7031
7032 if test "$ac_find_includes" != "" ; then
7033 echo "$ac_t""found $ac_find_includes" 1>&6
7034 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE -I$ac_find_includes"
7035 else
7036 echo "$ac_t""no" 1>&6
7037 { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; }
7038 fi
7039 fi
7040
7041 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS msw"
7042 LIBS="$LIBS -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lctl3d32 -lcrtdll -ladvapi32 -lwsock32"
7043
7044 if test "$wxUSE_MINGW" = 1; then
7045 LDFLAGS="$LDFLAGS -mwindows"
7046 fi
7047
7048 TOOLKIT=MSW
7049
7050 GUIOBJS="\$(MSW_GUIOBJS)"
7051 GUIHEADERS="\$(MSW_HEADERS)"
7052 COMMONOBJS="\$(MSW_COMMONOBJS)"
7053 GENERICOBJS="\$(MSW_GENERICOBJS)"
7054 UNIXOBJS=
7055 GUIDIST=MSW_DIST
10f2d63a
VZ
7056fi
7057
7058if test "$wxUSE_GTK" = 1; then
7059
7060 if test x$gtk_config_exec_prefix != x ; then
7061 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
7062 if test x${GTK_CONFIG+set} != xset ; then
7063 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
7064 fi
7065 fi
7066 if test x$gtk_config_prefix != x ; then
7067 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
7068 if test x${GTK_CONFIG+set} != xset ; then
7069 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
7070 fi
7071 fi
7072
7073 # Extract the first word of "gtk-config", so it can be a program name with args.
7074set dummy gtk-config; ac_word=$2
7075echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
422107f9 7076echo "configure:7077: checking for $ac_word" >&5
10f2d63a
VZ
7077if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
7078 echo $ac_n "(cached) $ac_c" 1>&6
7079else
7080 case "$GTK_CONFIG" in
7081 /*)
7082 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
7083 ;;
7084 ?:/*)
7085 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
7086 ;;
7087 *)
7088 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7089 ac_dummy="$PATH"
7090 for ac_dir in $ac_dummy; do
7091 test -z "$ac_dir" && ac_dir=.
7092 if test -f $ac_dir/$ac_word; then
7093 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
7094 break
7095 fi
7096 done
7097 IFS="$ac_save_ifs"
7098 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
7099 ;;
7100esac
7101fi
7102GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
7103if test -n "$GTK_CONFIG"; then
7104 echo "$ac_t""$GTK_CONFIG" 1>&6
7105else
7106 echo "$ac_t""no" 1>&6
7107fi
7108
04165bec 7109 min_gtk_version=1.2.3
10f2d63a 7110 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
422107f9 7111echo "configure:7112: checking for GTK - version >= $min_gtk_version" >&5
10f2d63a
VZ
7112 no_gtk=""
7113 if test "$GTK_CONFIG" != "no" ; then
7114 GTK_CFLAGS=`$GTK_CONFIG --cflags`
2224580a 7115 GTK_LIBS=`$GTK_CONFIG --libs gthread`
10f2d63a
VZ
7116 ac_save_CFLAGS="$CFLAGS"
7117 ac_save_LIBS="$LIBS"
7118 CFLAGS="$CFLAGS $GTK_CFLAGS"
7119 LIBS="$LIBS $GTK_LIBS"
7120 if test "$cross_compiling" = yes; then
7121 echo $ac_n "cross compiling; assumed OK... $ac_c"
7122else
7123 cat > conftest.$ac_ext <<EOF
422107f9 7124#line 7125 "configure"
10f2d63a
VZ
7125#include "confdefs.h"
7126
7127#include <gtk/gtk.h>
f49f2b0c 7128#include <gtk/gtkfeatures.h>
10f2d63a
VZ
7129#include <stdio.h>
7130
7131int
7132main ()
7133{
7134 int major, minor, micro;
7135
7136 if (sscanf("$min_gtk_version", "%d.%d.%d", &major, &minor, &micro) != 3) {
7137 printf("%s, bad version string\n", "$min_gtk_version");
7138 exit(1);
7139 }
7140
f49f2b0c
RR
7141 if ((GTK_MAJOR_VERSION != gtk_major_version) ||
7142 (GTK_MINOR_VERSION != gtk_minor_version) ||
7143 (GTK_MICRO_VERSION != gtk_micro_version)) {
7144 printf("Headers vs. library version mismatch!\n");
7145 exit(1);
7146 }
7147
10f2d63a
VZ
7148 if (gtk_minor_version == 1) return FALSE;
7149
7150 return !((gtk_major_version > major) ||
7151 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
7152 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)));
7153}
7154
7155EOF
422107f9 7156if { (eval echo configure:7157: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10f2d63a
VZ
7157then
7158 :
7159else
7160 echo "configure: failed program was:" >&5
7161 cat conftest.$ac_ext >&5
7162 rm -fr conftest*
7163 no_gtk=yes
7164fi
7165rm -fr conftest*
7166fi
7167
7168 CFLAGS="$ac_save_CFLAGS"
7169 LIBS="$ac_save_LIBS"
7170 else
7171 no_gtk=yes
7172 fi
7173 if test "x$no_gtk" = x ; then
7174 echo "$ac_t""yes" 1>&6
7175 WXGTK12=1
7176 else
7177 echo "$ac_t""no" 1>&6
7178 GTK_CFLAGS=""
7179 GTK_LIBS=""
7e99ad86 7180 :
10f2d63a
VZ
7181 fi
7182
7183
7184
7185
7e99ad86
VZ
7186 if test "$WXGTK12" != 1; then
7187 { echo "configure: error:
7188 Please check that gtk-config is in path, the directory
7189 where GTK+ libraries are installed (returned by
7190 'gtk-config --libs' command) is in LD_LIBRARY_PATH or
7191 equivalent variable and GTK+ is version 1.2.3 or above.
7192 " 1>&2; exit 1; }
7193 fi
7194
7195
10f2d63a 7196 TOOLKIT_INCLUDE="$GTK_CFLAGS"
2224580a
VZ
7197
7198
7199 GUI_TK_LIBRARY="$GTK_LIBS"
7200
10f2d63a
VZ
7201 TOOLKIT=GTK
7202
dad6c0ea
VZ
7203 AFMINSTALL=afminstall
7204
10f2d63a
VZ
7205 GUIOBJS="\$(GTK_GUIOBJS)"
7206 GUIHEADERS="\$(GTK_HEADERS)"
7207 COMMONOBJS="\$(GTK_COMMONOBJS)"
7208 GENERICOBJS="\$(GTK_GENERICOBJS)"
7209 GUIDEPS="\$(GTK_GUIDEPS)"
7210 COMMONDEPS="\$(GTK_COMMONDEPS)"
7211 GENERICDEPS="\$(GTK_GENERICDEPS)"
7212 UNIXOBJS="\$(UNIX_OBJS)"
d9d8273d 7213 UNIXDEPS="\$(UNIX_DEPS)"
10f2d63a 7214 GUIDIST=GTK_DIST
7ec2881a 7215
2224580a 7216 echo $ac_n "checking for gdk_im_open in -lgdk""... $ac_c" 1>&6
422107f9 7217echo "configure:7218: checking for gdk_im_open in -lgdk" >&5
7ec2881a
RR
7218ac_lib_var=`echo gdk'_'gdk_im_open | sed 'y%./+-%__p_%'`
7219if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7220 echo $ac_n "(cached) $ac_c" 1>&6
7221else
7222 ac_save_LIBS="$LIBS"
7223LIBS="-lgdk $LIBS"
7224cat > conftest.$ac_ext <<EOF
422107f9 7225#line 7226 "configure"
7ec2881a
RR
7226#include "confdefs.h"
7227/* Override any gcc2 internal prototype to avoid an error. */
7228/* We use char because int might match the return type of a gcc2
7229 builtin and then its argument prototype would still apply. */
7230char gdk_im_open();
7231
7232int main() {
7233gdk_im_open()
7234; return 0; }
7235EOF
422107f9 7236if { (eval echo configure:7237: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7ec2881a
RR
7237 rm -rf conftest*
7238 eval "ac_cv_lib_$ac_lib_var=yes"
7239else
7240 echo "configure: failed program was:" >&5
7241 cat conftest.$ac_ext >&5
7242 rm -rf conftest*
7243 eval "ac_cv_lib_$ac_lib_var=no"
7244fi
7245rm -f conftest*
7246LIBS="$ac_save_LIBS"
7247
7248fi
7249if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7250 echo "$ac_t""yes" 1>&6
7251 cat >> confdefs.h <<\EOF
7252#define HAVE_XIM 1
7253EOF
7254
7255else
7256 echo "$ac_t""no" 1>&6
7257fi
7258
10f2d63a
VZ
7259fi
7260
7261if test "$wxUSE_WINE" = 1; then
7262 echo $ac_n "checking for WINE includes""... $ac_c" 1>&6
422107f9 7263echo "configure:7264: checking for WINE includes" >&5
10f2d63a
VZ
7264
7265ac_find_includes=
7266for ac_dir in $SEARCH_INCLUDE;
7267 do
7268 if test -f "$ac_dir/windows.h"; then
7269 ac_find_includes=$ac_dir
7270 break
7271 fi
7272 done
7273
7274 if test "$ac_find_includes" != "" ; then
7275 echo "$ac_t""found $ac_find_includes" 1>&6
7276 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE -I$ac_find_includes"
7277 else
7278 echo "$ac_t""no" 1>&6
7279 { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; }
7280 fi
7281
7282 XPM_LINK=""
7283 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
422107f9 7284echo "configure:7285: checking for Xpm library" >&5
10f2d63a
VZ
7285
7286ac_find_libraries=
7287for ac_dir in $SEARCH_LIB;
7288 do
7289 for ac_extension in a so sl; do
7290 if test -f "$ac_dir/libXpm.$ac_extension"; then
7291 ac_find_libraries=$ac_dir
7292 break 2
7293 fi
7294 done
7295 done
7296
7297 if test "$ac_find_libraries" != "" ; then
7298 GUI_TK_LIBRARY="-L$ac_find_libraries"
7299 XPM_LINK="-lXpm"
7300 cat >> confdefs.h <<\EOF
7301#define wxHAVE_LIB_XPM 1
7302EOF
7303
7304 echo "$ac_t""found at $ac_find_libraries" 1>&6
7305 else
7306 echo "$ac_t""no" 1>&6
7307 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
7308 fi
7309
7310 MESA_LINK=""
7311 echo $ac_n "checking for Mesa library""... $ac_c" 1>&6
422107f9 7312echo "configure:7313: checking for Mesa library" >&5
10f2d63a
VZ
7313
7314ac_find_libraries=
7315for ac_dir in $SEARCH_LIB;
7316 do
7317 for ac_extension in a so sl; do
7318 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
7319 ac_find_libraries=$ac_dir
7320 break 2
7321 fi
7322 done
7323 done
7324
7325 if test "$ac_find_libraries" != "" ; then
7326 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -L$ac_find_libraries"
7327 MESA_LINK="-lMesaGL"
7328 echo "$ac_t""found at $ac_find_libraries" 1>&6
7329 else
7330 { echo "configure: error: no" 1>&2; exit 1; }
7331 fi
7332
7333 GUI_TK_LINK="-lwine $MESA_LINK $XPM_LINK -lXxf86dga -lXxf86vm -lSM -lICE -lXext -lXmu -lX11 -lncurses -lm"
7334 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $GUI_TK_LINK"
7335 WXWINE=1
7336 TOOLKIT=MSW
7337
7338 GUIHEADERS="\$(MSW_HEADERS)"
7339 GUIOBJS="\$(MSW_GUIOBJS)"
7340 COMMONOBJS="\$(MSW_COMMONOBJS)"
7341 GENERICOBJS="\$(MSW_GENERICOBJS)"
7342 GUIDEPS="\$(MSW_GUIDEPS)"
7343 COMMONDEPS="\$(MSW_COMMONDEPS)"
7344 GENERICDEPS="\$(MSW_GENERICDEPS)"
7345 UNIXOBJS="\$(UNIX_OBJS)"
d9d8273d 7346 UNIXDEPS="\$(UNIX_DEPS)"
10f2d63a
VZ
7347 GUIDIST=MSW_DIST
7348fi
7349
7350if test "$wxUSE_MOTIF" = 1; then
ab9b9eab
VZ
7351 # If we find X, set shell vars x_includes and x_libraries to the
7352# paths, otherwise set no_x=yes.
7353# Uses ac_ vars as temps to allow command line to override cache and checks.
7354# --without-x overrides everything else, but does not touch the cache.
7355echo $ac_n "checking for X""... $ac_c" 1>&6
422107f9 7356echo "configure:7357: checking for X" >&5
ab9b9eab
VZ
7357
7358# Check whether --with-x or --without-x was given.
7359if test "${with_x+set}" = set; then
7360 withval="$with_x"
7361 :
7362fi
ba337fe7 7363
ab9b9eab
VZ
7364# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7365if test "x$with_x" = xno; then
7366 # The user explicitly disabled X.
7367 have_x=disabled
7368else
7369 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
7370 # Both variables are already set.
7371 have_x=yes
7372 else
7373if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
7374 echo $ac_n "(cached) $ac_c" 1>&6
7375else
7376 # One or both of the vars are not set, and there is no cached value.
7377ac_x_includes=NO ac_x_libraries=NO
7378rm -fr conftestdir
7379if mkdir conftestdir; then
7380 cd conftestdir
7381 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
7382 cat > Imakefile <<'EOF'
7383acfindx:
7384 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
7385EOF
7386 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
7387 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7388 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
7389 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
10f2d63a 7390 for ac_extension in a so sl; do
ab9b9eab
VZ
7391 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
7392 test -f $ac_im_libdir/libX11.$ac_extension; then
7393 ac_im_usrlibdir=$ac_im_libdir; break
10f2d63a
VZ
7394 fi
7395 done
ab9b9eab
VZ
7396 # Screen out bogus values from the imake configuration. They are
7397 # bogus both because they are the default anyway, and because
7398 # using them would break gcc on systems where it needs fixed includes.
7399 case "$ac_im_incroot" in
7400 /usr/include) ;;
7401 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
7402 esac
7403 case "$ac_im_usrlibdir" in
7404 /usr/lib | /lib) ;;
7405 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
7406 esac
ba337fe7 7407 fi
ab9b9eab
VZ
7408 cd ..
7409 rm -fr conftestdir
7410fi
10f2d63a 7411
ab9b9eab
VZ
7412if test "$ac_x_includes" = NO; then
7413 # Guess where to find include files, by looking for this one X11 .h file.
7414 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
ba337fe7 7415
ab9b9eab
VZ
7416 # First, try using that file with no special directory specified.
7417cat > conftest.$ac_ext <<EOF
422107f9 7418#line 7419 "configure"
ab9b9eab
VZ
7419#include "confdefs.h"
7420#include <$x_direct_test_include>
7421EOF
7422ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
422107f9 7423{ (eval echo configure:7424: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ab9b9eab
VZ
7424ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7425if test -z "$ac_err"; then
7426 rm -rf conftest*
7427 # We can compile using X headers with no special include directory.
7428ac_x_includes=
7429else
7430 echo "$ac_err" >&5
7431 echo "configure: failed program was:" >&5
7432 cat conftest.$ac_ext >&5
7433 rm -rf conftest*
7434 # Look for the header file in a standard set of common directories.
7435# Check X11 before X11Rn because it is often a symlink to the current release.
7436 for ac_dir in \
7437 /usr/X11/include \
7438 /usr/X11R6/include \
7439 /usr/X11R5/include \
7440 /usr/X11R4/include \
7441 \
7442 /usr/include/X11 \
7443 /usr/include/X11R6 \
7444 /usr/include/X11R5 \
7445 /usr/include/X11R4 \
7446 \
7447 /usr/local/X11/include \
7448 /usr/local/X11R6/include \
7449 /usr/local/X11R5/include \
7450 /usr/local/X11R4/include \
7451 \
7452 /usr/local/include/X11 \
7453 /usr/local/include/X11R6 \
7454 /usr/local/include/X11R5 \
7455 /usr/local/include/X11R4 \
7456 \
7457 /usr/X386/include \
7458 /usr/x386/include \
7459 /usr/XFree86/include/X11 \
7460 \
7461 /usr/include \
7462 /usr/local/include \
7463 /usr/unsupported/include \
7464 /usr/athena/include \
7465 /usr/local/x11r5/include \
7466 /usr/lpp/Xamples/include \
7467 \
7468 /usr/openwin/include \
7469 /usr/openwin/share/include \
7470 ; \
10f2d63a 7471 do
ab9b9eab
VZ
7472 if test -r "$ac_dir/$x_direct_test_include"; then
7473 ac_x_includes=$ac_dir
10f2d63a
VZ
7474 break
7475 fi
7476 done
ab9b9eab
VZ
7477fi
7478rm -f conftest*
7479fi # $ac_x_includes = NO
10f2d63a 7480
ab9b9eab
VZ
7481if test "$ac_x_libraries" = NO; then
7482 # Check for the libraries.
10f2d63a 7483
ab9b9eab
VZ
7484 test -z "$x_direct_test_library" && x_direct_test_library=Xt
7485 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
10f2d63a 7486
ab9b9eab
VZ
7487 # See if we find them without any special options.
7488 # Don't add to $LIBS permanently.
7489 ac_save_LIBS="$LIBS"
7490 LIBS="-l$x_direct_test_library $LIBS"
7491cat > conftest.$ac_ext <<EOF
422107f9 7492#line 7493 "configure"
ab9b9eab 7493#include "confdefs.h"
10f2d63a 7494
ab9b9eab
VZ
7495int main() {
7496${x_direct_test_function}()
7497; return 0; }
7498EOF
422107f9 7499if { (eval echo configure:7500: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
7500 rm -rf conftest*
7501 LIBS="$ac_save_LIBS"
7502# We can link X programs with no special library path.
7503ac_x_libraries=
7504else
7505 echo "configure: failed program was:" >&5
7506 cat conftest.$ac_ext >&5
7507 rm -rf conftest*
7508 LIBS="$ac_save_LIBS"
7509# First see if replacing the include by lib works.
7510# Check X11 before X11Rn because it is often a symlink to the current release.
7511for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
7512 /usr/X11/lib \
7513 /usr/X11R6/lib \
7514 /usr/X11R5/lib \
7515 /usr/X11R4/lib \
7516 \
7517 /usr/lib/X11 \
7518 /usr/lib/X11R6 \
7519 /usr/lib/X11R5 \
7520 /usr/lib/X11R4 \
7521 \
7522 /usr/local/X11/lib \
7523 /usr/local/X11R6/lib \
7524 /usr/local/X11R5/lib \
7525 /usr/local/X11R4/lib \
7526 \
7527 /usr/local/lib/X11 \
7528 /usr/local/lib/X11R6 \
7529 /usr/local/lib/X11R5 \
7530 /usr/local/lib/X11R4 \
7531 \
7532 /usr/X386/lib \
7533 /usr/x386/lib \
7534 /usr/XFree86/lib/X11 \
7535 \
7536 /usr/lib \
7537 /usr/local/lib \
7538 /usr/unsupported/lib \
7539 /usr/athena/lib \
7540 /usr/local/x11r5/lib \
7541 /usr/lpp/Xamples/lib \
7542 /lib/usr/lib/X11 \
7543 \
7544 /usr/openwin/lib \
7545 /usr/openwin/share/lib \
7546 ; \
7547do
7548 for ac_extension in a so sl; do
7549 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
7550 ac_x_libraries=$ac_dir
7551 break 2
10f2d63a 7552 fi
10f2d63a 7553 done
ab9b9eab
VZ
7554done
7555fi
7556rm -f conftest*
7557fi # $ac_x_libraries = NO
10f2d63a 7558
ab9b9eab
VZ
7559if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
7560 # Didn't find X anywhere. Cache the known absence of X.
7561 ac_cv_have_x="have_x=no"
7562else
7563 # Record where we found X for the cache.
7564 ac_cv_have_x="have_x=yes \
7565 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
7566fi
7567fi
10f2d63a 7568 fi
ab9b9eab
VZ
7569 eval "$ac_cv_have_x"
7570fi # $with_x != no
10f2d63a 7571
ab9b9eab
VZ
7572if test "$have_x" != yes; then
7573 echo "$ac_t""$have_x" 1>&6
7574 no_x=yes
7575else
7576 # If each of the values was on the command line, it overrides each guess.
7577 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
7578 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
7579 # Update the cache value to reflect the command line values.
7580 ac_cv_have_x="have_x=yes \
7581 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
7582 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
7583fi
10f2d63a 7584
ab9b9eab
VZ
7585if test "$no_x" = yes; then
7586 # Not all programs may use this symbol, but it does not hurt to define it.
7587 cat >> confdefs.h <<\EOF
7588#define X_DISPLAY_MISSING 1
7589EOF
10f2d63a 7590
ab9b9eab
VZ
7591 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
7592else
7593 if test -n "$x_includes"; then
7594 X_CFLAGS="$X_CFLAGS -I$x_includes"
10f2d63a
VZ
7595 fi
7596
ab9b9eab
VZ
7597 # It would also be nice to do this for all -L options, not just this one.
7598 if test -n "$x_libraries"; then
7599 X_LIBS="$X_LIBS -L$x_libraries"
7600 # For Solaris; some versions of Sun CC require a space after -R and
7601 # others require no space. Words are not sufficient . . . .
7602 case "`(uname -sr) 2>/dev/null`" in
7603 "SunOS 5"*)
7604 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
422107f9 7605echo "configure:7606: checking whether -R must be followed by a space" >&5
ab9b9eab
VZ
7606 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
7607 cat > conftest.$ac_ext <<EOF
422107f9 7608#line 7609 "configure"
ab9b9eab 7609#include "confdefs.h"
10f2d63a 7610
ab9b9eab 7611int main() {
788deba1 7612
ab9b9eab
VZ
7613; return 0; }
7614EOF
422107f9 7615if { (eval echo configure:7616: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
7616 rm -rf conftest*
7617 ac_R_nospace=yes
7618else
7619 echo "configure: failed program was:" >&5
7620 cat conftest.$ac_ext >&5
7621 rm -rf conftest*
7622 ac_R_nospace=no
7623fi
7624rm -f conftest*
7625 if test $ac_R_nospace = yes; then
7626 echo "$ac_t""no" 1>&6
7627 X_LIBS="$X_LIBS -R$x_libraries"
7628 else
7629 LIBS="$ac_xsave_LIBS -R $x_libraries"
7630 cat > conftest.$ac_ext <<EOF
422107f9 7631#line 7632 "configure"
ab9b9eab 7632#include "confdefs.h"
788deba1 7633
ab9b9eab
VZ
7634int main() {
7635
7636; return 0; }
7637EOF
422107f9 7638if { (eval echo configure:7639: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
7639 rm -rf conftest*
7640 ac_R_space=yes
7641else
7642 echo "configure: failed program was:" >&5
7643 cat conftest.$ac_ext >&5
7644 rm -rf conftest*
7645 ac_R_space=no
7646fi
7647rm -f conftest*
7648 if test $ac_R_space = yes; then
7649 echo "$ac_t""yes" 1>&6
7650 X_LIBS="$X_LIBS -R $x_libraries"
7651 else
7652 echo "$ac_t""neither works" 1>&6
7653 fi
7654 fi
7655 LIBS="$ac_xsave_LIBS"
7656 esac
7657 fi
7658
7659 # Check for system-dependent libraries X programs must link with.
7660 # Do this before checking for the system-independent R6 libraries
7661 # (-lICE), since we may need -lsocket or whatever for X linking.
7662
7663 if test "$ISC" = yes; then
7664 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
7665 else
7666 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
7667 # libraries were built with DECnet support. And karl@cs.umb.edu says
7668 # the Alpha needs dnet_stub (dnet does not exist).
7669 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
422107f9 7670echo "configure:7671: checking for dnet_ntoa in -ldnet" >&5
ab9b9eab
VZ
7671ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
7672if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7673 echo $ac_n "(cached) $ac_c" 1>&6
7674else
7675 ac_save_LIBS="$LIBS"
7676LIBS="-ldnet $LIBS"
7677cat > conftest.$ac_ext <<EOF
422107f9 7678#line 7679 "configure"
ab9b9eab
VZ
7679#include "confdefs.h"
7680/* Override any gcc2 internal prototype to avoid an error. */
7681/* We use char because int might match the return type of a gcc2
7682 builtin and then its argument prototype would still apply. */
7683char dnet_ntoa();
7684
7685int main() {
7686dnet_ntoa()
7687; return 0; }
7688EOF
422107f9 7689if { (eval echo configure:7690: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
7690 rm -rf conftest*
7691 eval "ac_cv_lib_$ac_lib_var=yes"
7692else
7693 echo "configure: failed program was:" >&5
7694 cat conftest.$ac_ext >&5
7695 rm -rf conftest*
7696 eval "ac_cv_lib_$ac_lib_var=no"
7697fi
7698rm -f conftest*
7699LIBS="$ac_save_LIBS"
7700
7701fi
7702if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7703 echo "$ac_t""yes" 1>&6
7704 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
7705else
7706 echo "$ac_t""no" 1>&6
7707fi
7708
7709 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
7710 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
422107f9 7711echo "configure:7712: checking for dnet_ntoa in -ldnet_stub" >&5
ab9b9eab
VZ
7712ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
7713if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7714 echo $ac_n "(cached) $ac_c" 1>&6
7715else
7716 ac_save_LIBS="$LIBS"
7717LIBS="-ldnet_stub $LIBS"
7718cat > conftest.$ac_ext <<EOF
422107f9 7719#line 7720 "configure"
ab9b9eab
VZ
7720#include "confdefs.h"
7721/* Override any gcc2 internal prototype to avoid an error. */
7722/* We use char because int might match the return type of a gcc2
7723 builtin and then its argument prototype would still apply. */
7724char dnet_ntoa();
7725
7726int main() {
7727dnet_ntoa()
7728; return 0; }
7729EOF
422107f9 7730if { (eval echo configure:7731: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
7731 rm -rf conftest*
7732 eval "ac_cv_lib_$ac_lib_var=yes"
7733else
7734 echo "configure: failed program was:" >&5
7735 cat conftest.$ac_ext >&5
7736 rm -rf conftest*
7737 eval "ac_cv_lib_$ac_lib_var=no"
7738fi
7739rm -f conftest*
7740LIBS="$ac_save_LIBS"
7741
7742fi
7743if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7744 echo "$ac_t""yes" 1>&6
7745 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
7746else
7747 echo "$ac_t""no" 1>&6
7748fi
7749
7750 fi
7751
7752 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
7753 # to get the SysV transport functions.
7754 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
7755 # needs -lnsl.
7756 # The nsl library prevents programs from opening the X display
7757 # on Irix 5.2, according to dickey@clark.net.
7758 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
422107f9 7759echo "configure:7760: checking for gethostbyname" >&5
ab9b9eab
VZ
7760if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
7761 echo $ac_n "(cached) $ac_c" 1>&6
7762else
7763 cat > conftest.$ac_ext <<EOF
422107f9 7764#line 7765 "configure"
ab9b9eab
VZ
7765#include "confdefs.h"
7766/* System header to define __stub macros and hopefully few prototypes,
7767 which can conflict with char gethostbyname(); below. */
7768#include <assert.h>
7769/* Override any gcc2 internal prototype to avoid an error. */
7770/* We use char because int might match the return type of a gcc2
7771 builtin and then its argument prototype would still apply. */
7772char gethostbyname();
c661ecca 7773char (*f)();
ab9b9eab
VZ
7774
7775int main() {
7776
7777/* The GNU C library defines this for functions which it implements
7778 to always fail with ENOSYS. Some functions are actually named
7779 something starting with __ and the normal name is an alias. */
7780#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
7781choke me
7782#else
c661ecca 7783f = gethostbyname;
ab9b9eab
VZ
7784#endif
7785
7786; return 0; }
7787EOF
c661ecca 7788if { (eval echo configure:7789: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
7789 rm -rf conftest*
7790 eval "ac_cv_func_gethostbyname=yes"
7791else
7792 echo "configure: failed program was:" >&5
7793 cat conftest.$ac_ext >&5
7794 rm -rf conftest*
7795 eval "ac_cv_func_gethostbyname=no"
7796fi
7797rm -f conftest*
7798fi
7799
7800if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
7801 echo "$ac_t""yes" 1>&6
7802 :
7803else
7804 echo "$ac_t""no" 1>&6
7805fi
7806
7807 if test $ac_cv_func_gethostbyname = no; then
7808 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
c661ecca 7809echo "configure:7810: checking for gethostbyname in -lnsl" >&5
ab9b9eab
VZ
7810ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
7811if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7812 echo $ac_n "(cached) $ac_c" 1>&6
7813else
7814 ac_save_LIBS="$LIBS"
7815LIBS="-lnsl $LIBS"
7816cat > conftest.$ac_ext <<EOF
c661ecca 7817#line 7818 "configure"
ab9b9eab
VZ
7818#include "confdefs.h"
7819/* Override any gcc2 internal prototype to avoid an error. */
7820/* We use char because int might match the return type of a gcc2
7821 builtin and then its argument prototype would still apply. */
7822char gethostbyname();
7823
7824int main() {
7825gethostbyname()
7826; return 0; }
7827EOF
c661ecca 7828if { (eval echo configure:7829: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
7829 rm -rf conftest*
7830 eval "ac_cv_lib_$ac_lib_var=yes"
7831else
7832 echo "configure: failed program was:" >&5
7833 cat conftest.$ac_ext >&5
7834 rm -rf conftest*
7835 eval "ac_cv_lib_$ac_lib_var=no"
7836fi
7837rm -f conftest*
7838LIBS="$ac_save_LIBS"
7839
7840fi
7841if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7842 echo "$ac_t""yes" 1>&6
7843 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
7844else
7845 echo "$ac_t""no" 1>&6
7846fi
7847
7848 fi
7849
7850 # lieder@skyler.mavd.honeywell.com says without -lsocket,
7851 # socket/setsockopt and other routines are undefined under SCO ODT
7852 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
7853 # on later versions), says simon@lia.di.epfl.ch: it contains
7854 # gethostby* variants that don't use the nameserver (or something).
7855 # -lsocket must be given before -lnsl if both are needed.
7856 # We assume that if connect needs -lnsl, so does gethostbyname.
7857 echo $ac_n "checking for connect""... $ac_c" 1>&6
c661ecca 7858echo "configure:7859: checking for connect" >&5
ab9b9eab
VZ
7859if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
7860 echo $ac_n "(cached) $ac_c" 1>&6
7861else
7862 cat > conftest.$ac_ext <<EOF
c661ecca 7863#line 7864 "configure"
ab9b9eab
VZ
7864#include "confdefs.h"
7865/* System header to define __stub macros and hopefully few prototypes,
7866 which can conflict with char connect(); below. */
7867#include <assert.h>
7868/* Override any gcc2 internal prototype to avoid an error. */
7869/* We use char because int might match the return type of a gcc2
7870 builtin and then its argument prototype would still apply. */
7871char connect();
c661ecca 7872char (*f)();
ab9b9eab
VZ
7873
7874int main() {
7875
7876/* The GNU C library defines this for functions which it implements
7877 to always fail with ENOSYS. Some functions are actually named
7878 something starting with __ and the normal name is an alias. */
7879#if defined (__stub_connect) || defined (__stub___connect)
7880choke me
7881#else
c661ecca 7882f = connect;
ab9b9eab
VZ
7883#endif
7884
7885; return 0; }
7886EOF
c661ecca 7887if { (eval echo configure:7888: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
7888 rm -rf conftest*
7889 eval "ac_cv_func_connect=yes"
7890else
7891 echo "configure: failed program was:" >&5
7892 cat conftest.$ac_ext >&5
7893 rm -rf conftest*
7894 eval "ac_cv_func_connect=no"
7895fi
7896rm -f conftest*
7897fi
7898
7899if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
7900 echo "$ac_t""yes" 1>&6
7901 :
7902else
7903 echo "$ac_t""no" 1>&6
7904fi
7905
7906 if test $ac_cv_func_connect = no; then
7907 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
c661ecca 7908echo "configure:7909: checking for connect in -lsocket" >&5
ab9b9eab
VZ
7909ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
7910if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7911 echo $ac_n "(cached) $ac_c" 1>&6
7912else
7913 ac_save_LIBS="$LIBS"
7914LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
7915cat > conftest.$ac_ext <<EOF
c661ecca 7916#line 7917 "configure"
ab9b9eab
VZ
7917#include "confdefs.h"
7918/* Override any gcc2 internal prototype to avoid an error. */
7919/* We use char because int might match the return type of a gcc2
7920 builtin and then its argument prototype would still apply. */
7921char connect();
7922
7923int main() {
7924connect()
7925; return 0; }
7926EOF
c661ecca 7927if { (eval echo configure:7928: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
7928 rm -rf conftest*
7929 eval "ac_cv_lib_$ac_lib_var=yes"
7930else
7931 echo "configure: failed program was:" >&5
7932 cat conftest.$ac_ext >&5
7933 rm -rf conftest*
7934 eval "ac_cv_lib_$ac_lib_var=no"
7935fi
7936rm -f conftest*
7937LIBS="$ac_save_LIBS"
7938
7939fi
7940if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7941 echo "$ac_t""yes" 1>&6
7942 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
7943else
7944 echo "$ac_t""no" 1>&6
7945fi
7946
7947 fi
7948
7949 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
7950 echo $ac_n "checking for remove""... $ac_c" 1>&6
c661ecca 7951echo "configure:7952: checking for remove" >&5
ab9b9eab
VZ
7952if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
7953 echo $ac_n "(cached) $ac_c" 1>&6
7954else
7955 cat > conftest.$ac_ext <<EOF
c661ecca 7956#line 7957 "configure"
ab9b9eab
VZ
7957#include "confdefs.h"
7958/* System header to define __stub macros and hopefully few prototypes,
7959 which can conflict with char remove(); below. */
7960#include <assert.h>
7961/* Override any gcc2 internal prototype to avoid an error. */
7962/* We use char because int might match the return type of a gcc2
7963 builtin and then its argument prototype would still apply. */
7964char remove();
c661ecca 7965char (*f)();
ab9b9eab
VZ
7966
7967int main() {
7968
7969/* The GNU C library defines this for functions which it implements
7970 to always fail with ENOSYS. Some functions are actually named
7971 something starting with __ and the normal name is an alias. */
7972#if defined (__stub_remove) || defined (__stub___remove)
7973choke me
7974#else
c661ecca 7975f = remove;
ab9b9eab
VZ
7976#endif
7977
7978; return 0; }
7979EOF
c661ecca 7980if { (eval echo configure:7981: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
7981 rm -rf conftest*
7982 eval "ac_cv_func_remove=yes"
7983else
7984 echo "configure: failed program was:" >&5
7985 cat conftest.$ac_ext >&5
7986 rm -rf conftest*
7987 eval "ac_cv_func_remove=no"
7988fi
7989rm -f conftest*
7990fi
7991
7992if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
7993 echo "$ac_t""yes" 1>&6
7994 :
7995else
7996 echo "$ac_t""no" 1>&6
7997fi
7998
7999 if test $ac_cv_func_remove = no; then
8000 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
c661ecca 8001echo "configure:8002: checking for remove in -lposix" >&5
ab9b9eab
VZ
8002ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
8003if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8004 echo $ac_n "(cached) $ac_c" 1>&6
8005else
8006 ac_save_LIBS="$LIBS"
8007LIBS="-lposix $LIBS"
8008cat > conftest.$ac_ext <<EOF
c661ecca 8009#line 8010 "configure"
ab9b9eab
VZ
8010#include "confdefs.h"
8011/* Override any gcc2 internal prototype to avoid an error. */
8012/* We use char because int might match the return type of a gcc2
8013 builtin and then its argument prototype would still apply. */
8014char remove();
8015
8016int main() {
8017remove()
8018; return 0; }
8019EOF
c661ecca 8020if { (eval echo configure:8021: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
8021 rm -rf conftest*
8022 eval "ac_cv_lib_$ac_lib_var=yes"
8023else
8024 echo "configure: failed program was:" >&5
8025 cat conftest.$ac_ext >&5
8026 rm -rf conftest*
8027 eval "ac_cv_lib_$ac_lib_var=no"
8028fi
8029rm -f conftest*
8030LIBS="$ac_save_LIBS"
8031
8032fi
8033if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8034 echo "$ac_t""yes" 1>&6
8035 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
8036else
8037 echo "$ac_t""no" 1>&6
8038fi
8039
8040 fi
8041
8042 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
8043 echo $ac_n "checking for shmat""... $ac_c" 1>&6
c661ecca 8044echo "configure:8045: checking for shmat" >&5
ab9b9eab
VZ
8045if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
8046 echo $ac_n "(cached) $ac_c" 1>&6
8047else
8048 cat > conftest.$ac_ext <<EOF
c661ecca 8049#line 8050 "configure"
ab9b9eab
VZ
8050#include "confdefs.h"
8051/* System header to define __stub macros and hopefully few prototypes,
8052 which can conflict with char shmat(); below. */
8053#include <assert.h>
8054/* Override any gcc2 internal prototype to avoid an error. */
8055/* We use char because int might match the return type of a gcc2
8056 builtin and then its argument prototype would still apply. */
8057char shmat();
c661ecca 8058char (*f)();
ab9b9eab
VZ
8059
8060int main() {
8061
8062/* The GNU C library defines this for functions which it implements
8063 to always fail with ENOSYS. Some functions are actually named
8064 something starting with __ and the normal name is an alias. */
8065#if defined (__stub_shmat) || defined (__stub___shmat)
8066choke me
8067#else
c661ecca 8068f = shmat;
ab9b9eab
VZ
8069#endif
8070
8071; return 0; }
8072EOF
c661ecca 8073if { (eval echo configure:8074: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
8074 rm -rf conftest*
8075 eval "ac_cv_func_shmat=yes"
8076else
8077 echo "configure: failed program was:" >&5
8078 cat conftest.$ac_ext >&5
8079 rm -rf conftest*
8080 eval "ac_cv_func_shmat=no"
8081fi
8082rm -f conftest*
8083fi
8084
8085if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
8086 echo "$ac_t""yes" 1>&6
8087 :
8088else
8089 echo "$ac_t""no" 1>&6
8090fi
8091
8092 if test $ac_cv_func_shmat = no; then
8093 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
c661ecca 8094echo "configure:8095: checking for shmat in -lipc" >&5
ab9b9eab
VZ
8095ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
8096if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8097 echo $ac_n "(cached) $ac_c" 1>&6
8098else
8099 ac_save_LIBS="$LIBS"
8100LIBS="-lipc $LIBS"
8101cat > conftest.$ac_ext <<EOF
c661ecca 8102#line 8103 "configure"
ab9b9eab
VZ
8103#include "confdefs.h"
8104/* Override any gcc2 internal prototype to avoid an error. */
8105/* We use char because int might match the return type of a gcc2
8106 builtin and then its argument prototype would still apply. */
8107char shmat();
8108
8109int main() {
8110shmat()
8111; return 0; }
8112EOF
c661ecca 8113if { (eval echo configure:8114: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
8114 rm -rf conftest*
8115 eval "ac_cv_lib_$ac_lib_var=yes"
8116else
8117 echo "configure: failed program was:" >&5
8118 cat conftest.$ac_ext >&5
8119 rm -rf conftest*
8120 eval "ac_cv_lib_$ac_lib_var=no"
8121fi
8122rm -f conftest*
8123LIBS="$ac_save_LIBS"
8124
8125fi
8126if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8127 echo "$ac_t""yes" 1>&6
8128 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
8129else
8130 echo "$ac_t""no" 1>&6
8131fi
8132
8133 fi
8134 fi
8135
8136 # Check for libraries that X11R6 Xt/Xaw programs need.
8137 ac_save_LDFLAGS="$LDFLAGS"
8138 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
8139 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
8140 # check for ICE first), but we must link in the order -lSM -lICE or
8141 # we get undefined symbols. So assume we have SM if we have ICE.
8142 # These have to be linked with before -lX11, unlike the other
8143 # libraries we check for below, so use a different variable.
8144 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
8145 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
c661ecca 8146echo "configure:8147: checking for IceConnectionNumber in -lICE" >&5
ab9b9eab
VZ
8147ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
8148if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8149 echo $ac_n "(cached) $ac_c" 1>&6
8150else
8151 ac_save_LIBS="$LIBS"
8152LIBS="-lICE $X_EXTRA_LIBS $LIBS"
8153cat > conftest.$ac_ext <<EOF
c661ecca 8154#line 8155 "configure"
ab9b9eab
VZ
8155#include "confdefs.h"
8156/* Override any gcc2 internal prototype to avoid an error. */
8157/* We use char because int might match the return type of a gcc2
8158 builtin and then its argument prototype would still apply. */
8159char IceConnectionNumber();
8160
8161int main() {
8162IceConnectionNumber()
8163; return 0; }
8164EOF
c661ecca 8165if { (eval echo configure:8166: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
8166 rm -rf conftest*
8167 eval "ac_cv_lib_$ac_lib_var=yes"
8168else
8169 echo "configure: failed program was:" >&5
8170 cat conftest.$ac_ext >&5
8171 rm -rf conftest*
8172 eval "ac_cv_lib_$ac_lib_var=no"
8173fi
8174rm -f conftest*
8175LIBS="$ac_save_LIBS"
8176
8177fi
8178if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8179 echo "$ac_t""yes" 1>&6
8180 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
8181else
8182 echo "$ac_t""no" 1>&6
8183fi
8184
8185 LDFLAGS="$ac_save_LDFLAGS"
8186
8187fi
8188
8189
8190 if test "$no_x" = "yes"; then
8191 { echo "configure: error: X11 not found" 1>&2; exit 1; }
8192 fi
8193
8194 GUI_TK_LIBRARY="$X_LIBS"
8195 TOOLKIT_INCLUDE="$X_CFLAGS"
8196
dad6c0ea
VZ
8197 AFMINSTALL=afminstall
8198
ab9b9eab 8199
cd6d6d5b
VZ
8200 COMPILED_X_PROGRAM=0
8201
ab9b9eab 8202 echo $ac_n "checking for Motif/Lesstif headers""... $ac_c" 1>&6
c661ecca 8203echo "configure:8204: checking for Motif/Lesstif headers" >&5
ab9b9eab
VZ
8204
8205ac_find_includes=
8206for ac_dir in $SEARCH_INCLUDE;
8207 do
8208 if test -f "$ac_dir/Xm/Xm.h"; then
8209 ac_find_includes=$ac_dir
8210 break
8211 fi
8212 done
8213
8214 if test "$ac_find_includes" != "" ; then
8215 echo "$ac_t""found $ac_find_includes" 1>&6
8216 else
cd6d6d5b 8217 cat > conftest.$ac_ext <<EOF
c661ecca 8218#line 8219 "configure"
cd6d6d5b
VZ
8219#include "confdefs.h"
8220
8221 #include <Xm/Xm.h>
8222
8223int main() {
8224
8225 int version;
8226
8227 version = xmUseVersion;
8228
8229; return 0; }
8230EOF
c661ecca 8231if { (eval echo configure:8232: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
cd6d6d5b
VZ
8232 rm -rf conftest*
8233
8234 echo "$ac_t""found in default search path" 1>&6
8235 COMPILED_X_PROGRAM=1
8236
8237else
8238 echo "configure: failed program was:" >&5
8239 cat conftest.$ac_ext >&5
8240 rm -rf conftest*
8241
8242 echo "$ac_t""no" 1>&6
8243 { echo "configure: error: please set CFLAGS to contain the location of Xm/Xm.h" 1>&2; exit 1; }
8244
8245
8246fi
8247rm -f conftest*
ab9b9eab
VZ
8248 fi
8249
cd6d6d5b
VZ
8250 if test "$COMPILED_X_PROGRAM" = 0; then
8251 echo $ac_n "checking for Motif/Lesstif library""... $ac_c" 1>&6
c661ecca 8252echo "configure:8253: checking for Motif/Lesstif library" >&5
cd6d6d5b 8253
ab9b9eab
VZ
8254ac_find_libraries=
8255for ac_dir in $SEARCH_LIB;
8256 do
8257 for ac_extension in a so sl; do
8258 if test -f "$ac_dir/libXm.$ac_extension"; then
8259 ac_find_libraries=$ac_dir
8260 break 2
8261 fi
8262 done
8263 done
8264
cd6d6d5b
VZ
8265 if test "$ac_find_libraries" != "" ; then
8266
ab9b9eab
VZ
8267 ac_path_to_include=$ac_find_includes
8268 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
8269 result=$?
8270 if test $result = 0; then
8271 ac_path_to_include=""
8272 else
8273 ac_path_to_include="-I$ac_find_includes"
8274 fi
8275
cd6d6d5b 8276
ab9b9eab
VZ
8277 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
8278 result=$?
8279 if test $result = 0; then
8280 ac_path_to_link=""
8281 else
8282 ac_path_to_link="-L$ac_find_libraries"
8283 fi
8284
8285
cd6d6d5b
VZ
8286 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $ac_path_to_link"
8287 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE $ac_path_to_include"
8288 echo "$ac_t""found at $ac_find_libraries" 1>&6
8289 else
8290 cat > conftest.$ac_ext <<EOF
c661ecca 8291#line 8292 "configure"
cd6d6d5b 8292#include "confdefs.h"
ab9b9eab 8293
cd6d6d5b
VZ
8294 #include <Xm/Xm.h>
8295
8296int main() {
ab9b9eab 8297
cd6d6d5b 8298 int version;
ab9b9eab 8299
cd6d6d5b
VZ
8300 version = xmUseVersion;
8301
8302; return 0; }
8303EOF
c661ecca 8304if { (eval echo configure:8305: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
cd6d6d5b
VZ
8305 rm -rf conftest*
8306
8307 echo "$ac_t""found in default search path" 1>&6
8308 COMPILED_X_PROGRAM=1
8309
8310else
8311 echo "configure: failed program was:" >&5
8312 cat conftest.$ac_ext >&5
8313 rm -rf conftest*
8314
8315 echo "$ac_t""no" 1>&6
8316 { echo "configure: error: please set LDFLAGS to contain the location of libXm" 1>&2; exit 1; }
8317
8318
8319fi
8320rm -f conftest*
8321 fi
ab9b9eab
VZ
8322 fi
8323
cd6d6d5b 8324
ab9b9eab
VZ
8325 XPM_LINK=""
8326 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
c661ecca 8327echo "configure:8328: checking for Xpm library" >&5
ab9b9eab
VZ
8328
8329ac_find_libraries=
8330for ac_dir in $SEARCH_LIB;
8331 do
8332 for ac_extension in a so sl; do
8333 if test -f "$ac_dir/libXpm.$ac_extension"; then
8334 ac_find_libraries=$ac_dir
8335 break 2
8336 fi
8337 done
8338 done
8339
8340 if test "$ac_find_libraries" != "" ; then
8341
8342 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
8343 result=$?
8344 if test $result = 0; then
8345 ac_path_to_link=""
8346 else
8347 ac_path_to_link="-L$ac_find_libraries"
8348 fi
8349
8350 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $ac_path_to_link"
8351 XPM_LINK="-lXpm "
8352 cat >> confdefs.h <<\EOF
8353#define wxHAVE_LIB_XPM 1
8354EOF
8355
8356 echo "$ac_t""found at $ac_find_libraries" 1>&6
8357 else
cd6d6d5b 8358 cat > conftest.$ac_ext <<EOF
c661ecca 8359#line 8360 "configure"
cd6d6d5b
VZ
8360#include "confdefs.h"
8361
8362 #include <X11/xpm.h>
8363
8364int main() {
8365
8366 int version;
8367
8368 version = XpmLibraryVersion();
8369
8370; return 0; }
8371EOF
c661ecca 8372if { (eval echo configure:8373: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
cd6d6d5b
VZ
8373 rm -rf conftest*
8374
bdad4e7e
RR
8375 XPM_LINK="-lXpm "
8376 cat >> confdefs.h <<\EOF
3ace2e6d
SN
8377#define wxHAVE_LIB_XPM 1
8378EOF
8379
8380 echo "$ac_t""found in default search path" 1>&6
cd6d6d5b
VZ
8381 COMPILED_X_PROGRAM=0
8382
8383else
8384 echo "configure: failed program was:" >&5
8385 cat conftest.$ac_ext >&5
8386 rm -rf conftest*
8387
8388 echo "$ac_t""no" 1>&6
8389 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
8390
8391
8392fi
8393rm -f conftest*
ab9b9eab
VZ
8394 fi
8395
8396 GUI_TK_LINK="-lXm $XPM_LINK -lXmu -lXext -lXt -lX11 -lm"
8397 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $GUI_TK_LINK"
8398 TOOLKIT=MOTIF
8399
8400 GUIHEADERS="\$(MOTIF_HEADERS)"
8401 GUIOBJS="\$(MOTIF_GUIOBJS)"
8402 COMMONOBJS="\$(MOTIF_COMMONOBJS)"
788deba1
VZ
8403 GENERICOBJS="\$(MOTIF_GENERICOBJS)"
8404 GUIDEPS="\$(MOTIF_GUIDEPS)"
8405 COMMONDEPS="\$(MOTIF_COMMONDEPS)"
10f2d63a
VZ
8406 GENERICDEPS="\$(MOTIF_GENERICDEPS)"
8407 UNIXOBJS="\$(UNIX_OBJS)"
d9d8273d 8408 UNIXDEPS="\$(UNIX_DEPS)"
10f2d63a
VZ
8409 GUIDIST=MOTIF_DIST
8410fi
8411
e07802fc
VZ
8412if test "$wxUSE_PM" = 1; then
8413 TOOLKIT=PM
8414
8415 GUIOBJS="\$(PM_GUIOBJS)"
8416 GUIHEADERS="\$(PM_HEADERS)"
8417 COMMONOBJS="\$(PM_COMMONOBJS)"
8418 GENERICOBJS="\$(PM_GENERICOBJS)"
8419 GUIDEPS="\$(PM_GUIDEPS)"
8420 COMMONDEPS="\$(PM_COMMONDEPS)"
8421 GENERICDEPS="\$(PM_GENERICDEPS)"
8422 UNIXOBJS=
8423 UNIXDEPS=
8424 GUIDIST=GTK_DIST
8425fi
8426
8427if test "$TOOLKIT" != "PM" ; then
ec14dd32 8428 TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
e07802fc
VZ
8429else
8430 TOOLKIT_DIR="os2"
8431fi
10f2d63a 8432
2224580a 8433 TOOLKIT_DEF="-D__WX${TOOLKIT}__"
10f2d63a 8434
2224580a 8435 WX_LIBRARY="wx_${TOOLKIT_DIR}"
10f2d63a 8436
bdad4e7e 8437 ALL_OBJECTS="\$(GUIOBJS) \$(COMMONOBJS) \$(GENERICOBJS) \$(UNIXOBJS) \$(HTMLOBJS) \$(OGLOBJS)"
3fcdd07b 8438
b089607b 8439 if test "$TOOLKIT" != "MSW"; then
cc977e5f
RR
8440 if test "$wxUSE_ODBC" = "yes" ; then
8441 ALL_OBJECTS="${ALL_OBJECTS} \$(IODBCOBJS)"
8442 fi
3fcdd07b
VZ
8443 fi
8444
d9d8273d 8445 if test "$wxUSE_LIBJPEG" = "yes" ; then
2224580a 8446 ALL_OBJECTS="${ALL_OBJECTS} \$(JPEGOBJS)"
d9d8273d
RR
8447 fi
8448 if test "$wxUSE_LIBTIFF" = "yes" ; then
8449 ALL_OBJECTS="${ALL_OBJECTS} \$(TIFFOBJS)"
8450 fi
8451 if test "$wxUSE_LIBPNG" = "yes" ; then
8452 ALL_OBJECTS="${ALL_OBJECTS} \$(PNGOBJS)"
8453 fi
8454 if test "$wxUSE_ZLIB" = "yes" ; then
8455 ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)"
8456 fi
bdad4e7e 8457 ALL_DEPFILES="\$(GUIDEPS) \$(COMMONDEPS) \$(GENERICDEPS) \$(UNIXDEPS) \$(HTMLDEPS) \$(OGLDEPS)"
2224580a
VZ
8458
8459 PORT_FILES="src/\$(TOOLKITDIR)/files.lst"
8460 RPM_FILES="src/\$(TOOLKITDIR)/rpmfiles.lst"
8461 RPM_SPEC="wx\$(TOOLKIT).spec"
8462
8463 GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
8464 DISTDIR="wx\$(TOOLKIT)"
10f2d63a 8465else
dad6c0ea
VZ
8466 USE_GUI=0
8467
07eb77a6
RL
8468 TOOLKIT_DIR="base"
8469 TOOLKIT_DEF="-D__WXBASE__"
8470
2224580a
VZ
8471 ALL_OBJECTS="\$(BASE_OBJS) \${BASE_UNIX_OBJS}"
8472 ALL_DEPFILES="\${BASE_DEPS} \${BASE_UNIX_DEPS}"
10f2d63a
VZ
8473
8474 WX_LIBRARY="wxbase"
2224580a
VZ
8475
8476 PORT_FILES="src/files.lst"
8477 RPM_FILES="src/rpmfiles.lst"
8478 RPM_SPEC="wxBase.spec"
8479
8480 GUIDIST="BASE_DIST"
8481 DISTDIR="wxBase"
10f2d63a
VZ
8482fi
8483
8484WX_LIBRARY_NAME="lib${WX_LIBRARY}.la"
bdad4e7e 8485WX_LIBRARY_NAME_GL="lib${WX_LIBRARY}_gl.la"
10f2d63a
VZ
8486
8487WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a"
bdad4e7e 8488WX_LIBRARY_NAME_STATIC_GL="lib${WX_LIBRARY}_gl.a"
10f2d63a
VZ
8489
8490WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}-${WX_RELEASE}.so.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
bdad4e7e 8491WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.so.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
10f2d63a
VZ
8492
8493WX_LIBRARY_LINK1="lib${WX_LIBRARY}-${WX_RELEASE}.so.${WX_CURRENT}"
8494WX_LIBRARY_LINK2="lib${WX_LIBRARY}-${WX_RELEASE}.so"
8495WX_LIBRARY_LINK3="lib${WX_LIBRARY}.so"
bdad4e7e
RR
8496WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.so.${WX_CURRENT}"
8497WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.so"
8498WX_LIBRARY_LINK3_GL="lib${WX_LIBRARY}_gl.so"
10f2d63a
VZ
8499
8500SHARED_LD=
8501PIC_FLAG=
8502WX_ALL=
8503WX_ALL_INSTALLED=
1d62a8b4 8504BURNT_LIBRARY_NAME=
10f2d63a 8505
b12915c1 8506
10f2d63a
VZ
8507if test "$wxUSE_SHARED" = "yes"; then
8508 case "${host}" in
8509 *-hp-hpux* )
8510 if test "$GCC" = yes ; then
69ffe1d2 8511 SHARED_LD="${CC} -shared -fPIC -o"
10f2d63a
VZ
8512 PIC_FLAG="-fPIC"
8513 else
8514 SHARED_LD="${CXX} -b -o"
8515 PIC_FLAG="+Z"
8516 fi
8517 WX_LIBRARY_NAME_SHARED="libwx_${TOOLKIT_DIR}.sl"
bdad4e7e 8518 WX_LIBRARY_NAME_SHARED_GL="libwx_${TOOLKIT_DIR}_gl.sl"
c661ecca
RR
8519 if test "$wxUSE_OPENGL" = "yes"; then
8520 WX_ALL="${WX_LIBRARY_NAME_SHARED} ${WX_LIBRARY_NAME_SHARED_GL}"
8521 else
8522 WX_ALL="${WX_LIBRARY_NAME_SHARED}"
8523 fi
10f2d63a 8524 ;;
b12915c1
VZ
8525
8526 *-*-linux* )
10f2d63a
VZ
8527 SHARED_LD="${CC} -shared -o"
8528 PIC_FLAG="-fPIC"
00cf1208 8529 if test "$wxUSE_BURNT_NAME" = "yes" ; then
05cdfc6f 8530 BURNT_LIBRARY_NAME="-Wl,-soname,${WX_LIBRARY_LINK1}"
bdad4e7e 8531 BURNT_LIBRARY_NAME_GL="-Wl,-soname,${WX_LIBRARY_LINK1_GL}"
00cf1208 8532 fi
c661ecca
RR
8533 if test "$wxUSE_OPENGL" = "yes"; then
8534 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
8535 WX_ALL="CREATE_LINKS CREATE_LINKS_GL"
8536 else
8537 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
8538 WX_ALL="CREATE_LINKS"
422107f9 8539 fi
00cf1208 8540 ;;
10f2d63a
VZ
8541 *-*-irix5* | *-*-irix6* )
8542 if test "$GCC" = yes ; then
8543 SHARED_LD="${CC} -shared -o"
8544 PIC_FLAG="-fPIC"
8545 else
8546 SHARED_LD="${CXX} -shared -o"
8547 fi
c661ecca
RR
8548 if test "$wxUSE_OPENGL" = "yes"; then
8549 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
8550 WX_ALL="CREATE_LINKS CREATE_LINKS_GL"
8551 else
8552 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
8553 WX_ALL="CREATE_LINKS"
422107f9 8554 fi
10f2d63a
VZ
8555 ;;
8556 *-*-solaris2* )
8557 if test "$GCC" = yes ; then
8558 SHARED_LD="${CC} -shared -o"
8559 PIC_FLAG="-fPIC"
8560 else
8561 SHARED_LD="${CXX} -G -o"
8562 PIC_FLAG="-KPIC"
8563 fi
c661ecca
RR
8564 if test "$wxUSE_OPENGL" = "yes"; then
8565 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
8566 WX_ALL="CREATE_LINKS CREATE_LINKS_GL"
8567 else
8568 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
8569 WX_ALL="CREATE_LINKS"
8570 fi
10f2d63a
VZ
8571 ;;
8572 *-*-sunos4* )
8573 SHARED_LD="${CC} -shared -o"
8574 PIC_FLAG="-fPIC"
8575 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
8576 WX_ALL="CREATE_LINKS"
8577 ;;
8578 *-*-freebsd* | *-*-netbsd*)
8579 SHARED_LD="${CC} -shared -o"
8580 PIC_FLAG="-fPIC"
8581 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
8582 WX_ALL="CREATE_LINKS"
8583 ;;
8584 *-*-osf* )
8585 SHARED_LD="${CXX} -shared -o"
8586 PIC_FLAG="-fPIC"
8587 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
8588 WX_ALL="CREATE_LINKS"
8589 ;;
8590 *-*-dgux5* )
8591 SHARED_LD="${CXX} -shared -o"
8592 PIC_FLAG="-fPIC"
8593 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
8594 WX_ALL="CREATE_LINKS"
8595 ;;
8596 *-*-sysv5* )
8597 SHARED_LD="${CC} -shared -o"
8598 PIC_FLAG="-fPIC"
8599 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
8600 WX_ALL="CREATE_LINKS"
8601 ;;
8602 *-*-aix* )
8603 SHARED_LD="/usr/lpp/xlC/bin/makeC++SharedLib -p 0 -o"
8604 WX_ALL=${WX_LIBRARY_NAME_SHARED}
8605 ;;
8606 *-*-cygwin32* )
8607 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
bdad4e7e 8608 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}"
10f2d63a
VZ
8609 WX_ALL="${WX_LIBRARY_NAME_STATIC}"
8610 ;;
b12915c1 8611 *-*-mingw32* )
10f2d63a 8612 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
bdad4e7e 8613 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}"
10f2d63a
VZ
8614 WX_ALL="${WX_LIBRARY_NAME_STATIC}"
8615 ;;
8616 *-pc-os2_emx )
e07802fc
VZ
8617 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
8618 WX_ALL="${WX_LIBRARY_NAME_STATIC}"
10f2d63a 8619 ;;
b12915c1 8620 *-*-beos* )
e2b8b066 8621 SHARED_LD="${LD} -shared -o"
b12915c1
VZ
8622 PIC_FLAG="-fPIC"
8623 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
8624 WX_ALL="CREATE_LINKS"
8625 ;;
10f2d63a
VZ
8626 *)
8627 { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; }
8628 esac
8629
8630 if test "x$WX_TARGET_LIBRARY" = "x"; then
8631 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}"
bdad4e7e 8632 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_SHARED_GL}"
10f2d63a
VZ
8633 fi
8634else
8635 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
bdad4e7e 8636 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}"
10f2d63a
VZ
8637 WX_ALL="${WX_LIBRARY_NAME_STATIC}"
8638fi
8639
8640
8641for ac_hdr in strings.h
8642do
8643ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8644echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
c661ecca 8645echo "configure:8646: checking for $ac_hdr" >&5
10f2d63a
VZ
8646if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8647 echo $ac_n "(cached) $ac_c" 1>&6
8648else
8649 cat > conftest.$ac_ext <<EOF
c661ecca 8650#line 8651 "configure"
10f2d63a
VZ
8651#include "confdefs.h"
8652#include <$ac_hdr>
8653EOF
8654ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
c661ecca 8655{ (eval echo configure:8656: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
8656ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8657if test -z "$ac_err"; then
8658 rm -rf conftest*
8659 eval "ac_cv_header_$ac_safe=yes"
8660else
8661 echo "$ac_err" >&5
8662 echo "configure: failed program was:" >&5
8663 cat conftest.$ac_ext >&5
8664 rm -rf conftest*
8665 eval "ac_cv_header_$ac_safe=no"
8666fi
8667rm -f conftest*
8668fi
8669if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8670 echo "$ac_t""yes" 1>&6
8671 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8672 cat >> confdefs.h <<EOF
8673#define $ac_tr_hdr 1
8674EOF
8675
8676else
8677 echo "$ac_t""no" 1>&6
8678fi
8679done
8680
8681for ac_hdr in unistd.h
8682do
8683ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8684echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
c661ecca 8685echo "configure:8686: checking for $ac_hdr" >&5
10f2d63a
VZ
8686if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8687 echo $ac_n "(cached) $ac_c" 1>&6
8688else
8689 cat > conftest.$ac_ext <<EOF
c661ecca 8690#line 8691 "configure"
10f2d63a
VZ
8691#include "confdefs.h"
8692#include <$ac_hdr>
8693EOF
8694ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
c661ecca 8695{ (eval echo configure:8696: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
8696ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8697if test -z "$ac_err"; then
8698 rm -rf conftest*
8699 eval "ac_cv_header_$ac_safe=yes"
8700else
8701 echo "$ac_err" >&5
8702 echo "configure: failed program was:" >&5
8703 cat conftest.$ac_ext >&5
8704 rm -rf conftest*
8705 eval "ac_cv_header_$ac_safe=no"
8706fi
8707rm -f conftest*
8708fi
8709if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8710 echo "$ac_t""yes" 1>&6
8711 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8712 cat >> confdefs.h <<EOF
8713#define $ac_tr_hdr 1
8714EOF
8715
8716else
8717 echo "$ac_t""no" 1>&6
8718fi
8719done
8720
8721for ac_hdr in wchar.h
8722do
8723ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8724echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
c661ecca 8725echo "configure:8726: checking for $ac_hdr" >&5
10f2d63a
VZ
8726if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8727 echo $ac_n "(cached) $ac_c" 1>&6
8728else
8729 cat > conftest.$ac_ext <<EOF
c661ecca 8730#line 8731 "configure"
10f2d63a
VZ
8731#include "confdefs.h"
8732#include <$ac_hdr>
8733EOF
8734ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
c661ecca 8735{ (eval echo configure:8736: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
8736ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8737if test -z "$ac_err"; then
8738 rm -rf conftest*
8739 eval "ac_cv_header_$ac_safe=yes"
8740else
8741 echo "$ac_err" >&5
8742 echo "configure: failed program was:" >&5
8743 cat conftest.$ac_ext >&5
8744 rm -rf conftest*
8745 eval "ac_cv_header_$ac_safe=no"
8746fi
8747rm -f conftest*
8748fi
8749if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8750 echo "$ac_t""yes" 1>&6
8751 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8752 cat >> confdefs.h <<EOF
8753#define $ac_tr_hdr 1
8754EOF
8755
8756else
8757 echo "$ac_t""no" 1>&6
8758fi
8759done
8760
8761for ac_hdr in wcstr.h
8762do
8763ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8764echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
c661ecca 8765echo "configure:8766: checking for $ac_hdr" >&5
10f2d63a
VZ
8766if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8767 echo $ac_n "(cached) $ac_c" 1>&6
8768else
8769 cat > conftest.$ac_ext <<EOF
c661ecca 8770#line 8771 "configure"
10f2d63a
VZ
8771#include "confdefs.h"
8772#include <$ac_hdr>
8773EOF
8774ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
c661ecca 8775{ (eval echo configure:8776: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
8776ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8777if test -z "$ac_err"; then
8778 rm -rf conftest*
8779 eval "ac_cv_header_$ac_safe=yes"
8780else
8781 echo "$ac_err" >&5
8782 echo "configure: failed program was:" >&5
8783 cat conftest.$ac_ext >&5
8784 rm -rf conftest*
8785 eval "ac_cv_header_$ac_safe=no"
8786fi
8787rm -f conftest*
8788fi
8789if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8790 echo "$ac_t""yes" 1>&6
8791 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8792 cat >> confdefs.h <<EOF
8793#define $ac_tr_hdr 1
8794EOF
8795
8796else
8797 echo "$ac_t""no" 1>&6
8798fi
8799done
8800
8801for ac_hdr in fnmatch.h
8802do
8803ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8804echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
c661ecca 8805echo "configure:8806: checking for $ac_hdr" >&5
10f2d63a
VZ
8806if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8807 echo $ac_n "(cached) $ac_c" 1>&6
8808else
8809 cat > conftest.$ac_ext <<EOF
c661ecca 8810#line 8811 "configure"
10f2d63a
VZ
8811#include "confdefs.h"
8812#include <$ac_hdr>
8813EOF
8814ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
c661ecca 8815{ (eval echo configure:8816: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
8816ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8817if test -z "$ac_err"; then
8818 rm -rf conftest*
8819 eval "ac_cv_header_$ac_safe=yes"
8820else
8821 echo "$ac_err" >&5
8822 echo "configure: failed program was:" >&5
8823 cat conftest.$ac_ext >&5
8824 rm -rf conftest*
8825 eval "ac_cv_header_$ac_safe=no"
8826fi
8827rm -f conftest*
8828fi
8829if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8830 echo "$ac_t""yes" 1>&6
8831 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8832 cat >> confdefs.h <<EOF
8833#define $ac_tr_hdr 1
8834EOF
8835
8836else
8837 echo "$ac_t""no" 1>&6
8838fi
8839done
8840
8841
8842if test "$wxUSE_GUI" = "yes"; then
8843 for ac_hdr in X11/XKBlib.h
8844do
8845ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8846echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
c661ecca 8847echo "configure:8848: checking for $ac_hdr" >&5
10f2d63a
VZ
8848if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8849 echo $ac_n "(cached) $ac_c" 1>&6
8850else
8851 cat > conftest.$ac_ext <<EOF
c661ecca 8852#line 8853 "configure"
10f2d63a
VZ
8853#include "confdefs.h"
8854#include <$ac_hdr>
8855EOF
8856ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
c661ecca 8857{ (eval echo configure:8858: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
8858ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8859if test -z "$ac_err"; then
8860 rm -rf conftest*
8861 eval "ac_cv_header_$ac_safe=yes"
8862else
8863 echo "$ac_err" >&5
8864 echo "configure: failed program was:" >&5
8865 cat conftest.$ac_ext >&5
8866 rm -rf conftest*
8867 eval "ac_cv_header_$ac_safe=no"
8868fi
8869rm -f conftest*
8870fi
8871if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8872 echo "$ac_t""yes" 1>&6
8873 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8874 cat >> confdefs.h <<EOF
8875#define $ac_tr_hdr 1
8876EOF
8877
8878else
8879 echo "$ac_t""no" 1>&6
8880fi
8881done
8882
8883fi
8884
8885
8886echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
c661ecca 8887echo "configure:8888: checking for ANSI C header files" >&5
10f2d63a
VZ
8888if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
8889 echo $ac_n "(cached) $ac_c" 1>&6
8890else
8891 cat > conftest.$ac_ext <<EOF
c661ecca 8892#line 8893 "configure"
10f2d63a
VZ
8893#include "confdefs.h"
8894#include <stdlib.h>
8895#include <stdarg.h>
8896#include <string.h>
8897#include <float.h>
8898EOF
8899ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
c661ecca 8900{ (eval echo configure:8901: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
8901ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8902if test -z "$ac_err"; then
8903 rm -rf conftest*
8904 ac_cv_header_stdc=yes
8905else
8906 echo "$ac_err" >&5
8907 echo "configure: failed program was:" >&5
8908 cat conftest.$ac_ext >&5
8909 rm -rf conftest*
8910 ac_cv_header_stdc=no
8911fi
8912rm -f conftest*
8913
8914if test $ac_cv_header_stdc = yes; then
8915 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8916cat > conftest.$ac_ext <<EOF
c661ecca 8917#line 8918 "configure"
10f2d63a
VZ
8918#include "confdefs.h"
8919#include <string.h>
8920EOF
8921if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8922 egrep "memchr" >/dev/null 2>&1; then
8923 :
8924else
8925 rm -rf conftest*
8926 ac_cv_header_stdc=no
8927fi
8928rm -f conftest*
8929
8930fi
8931
8932if test $ac_cv_header_stdc = yes; then
8933 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8934cat > conftest.$ac_ext <<EOF
c661ecca 8935#line 8936 "configure"
10f2d63a
VZ
8936#include "confdefs.h"
8937#include <stdlib.h>
8938EOF
8939if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8940 egrep "free" >/dev/null 2>&1; then
8941 :
8942else
8943 rm -rf conftest*
8944 ac_cv_header_stdc=no
8945fi
8946rm -f conftest*
8947
8948fi
8949
8950if test $ac_cv_header_stdc = yes; then
8951 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8952if test "$cross_compiling" = yes; then
8953 :
8954else
8955 cat > conftest.$ac_ext <<EOF
c661ecca 8956#line 8957 "configure"
10f2d63a
VZ
8957#include "confdefs.h"
8958#include <ctype.h>
8959#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8960#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8961#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8962int main () { int i; for (i = 0; i < 256; i++)
8963if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
8964exit (0); }
8965
8966EOF
c661ecca 8967if { (eval echo configure:8968: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10f2d63a
VZ
8968then
8969 :
8970else
8971 echo "configure: failed program was:" >&5
8972 cat conftest.$ac_ext >&5
8973 rm -fr conftest*
8974 ac_cv_header_stdc=no
8975fi
8976rm -fr conftest*
8977fi
8978
8979fi
8980fi
8981
8982echo "$ac_t""$ac_cv_header_stdc" 1>&6
8983if test $ac_cv_header_stdc = yes; then
8984 cat >> confdefs.h <<\EOF
8985#define STDC_HEADERS 1
8986EOF
8987
8988fi
8989
8990echo $ac_n "checking for mode_t""... $ac_c" 1>&6
c661ecca 8991echo "configure:8992: checking for mode_t" >&5
10f2d63a
VZ
8992if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
8993 echo $ac_n "(cached) $ac_c" 1>&6
8994else
8995 cat > conftest.$ac_ext <<EOF
c661ecca 8996#line 8997 "configure"
10f2d63a
VZ
8997#include "confdefs.h"
8998#include <sys/types.h>
8999#if STDC_HEADERS
9000#include <stdlib.h>
9001#include <stddef.h>
9002#endif
9003EOF
9004if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9005 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
9006 rm -rf conftest*
9007 ac_cv_type_mode_t=yes
9008else
9009 rm -rf conftest*
9010 ac_cv_type_mode_t=no
9011fi
9012rm -f conftest*
9013
9014fi
9015echo "$ac_t""$ac_cv_type_mode_t" 1>&6
9016if test $ac_cv_type_mode_t = no; then
9017 cat >> confdefs.h <<\EOF
9018#define mode_t int
9019EOF
9020
9021fi
9022
9023echo $ac_n "checking for off_t""... $ac_c" 1>&6
c661ecca 9024echo "configure:9025: checking for off_t" >&5
10f2d63a
VZ
9025if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
9026 echo $ac_n "(cached) $ac_c" 1>&6
9027else
9028 cat > conftest.$ac_ext <<EOF
c661ecca 9029#line 9030 "configure"
10f2d63a
VZ
9030#include "confdefs.h"
9031#include <sys/types.h>
9032#if STDC_HEADERS
9033#include <stdlib.h>
9034#include <stddef.h>
9035#endif
9036EOF
9037if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9038 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
9039 rm -rf conftest*
9040 ac_cv_type_off_t=yes
9041else
9042 rm -rf conftest*
9043 ac_cv_type_off_t=no
9044fi
9045rm -f conftest*
9046
9047fi
9048echo "$ac_t""$ac_cv_type_off_t" 1>&6
9049if test $ac_cv_type_off_t = no; then
9050 cat >> confdefs.h <<\EOF
9051#define off_t long
9052EOF
9053
9054fi
9055
9056echo $ac_n "checking for pid_t""... $ac_c" 1>&6
c661ecca 9057echo "configure:9058: checking for pid_t" >&5
10f2d63a
VZ
9058if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
9059 echo $ac_n "(cached) $ac_c" 1>&6
9060else
9061 cat > conftest.$ac_ext <<EOF
c661ecca 9062#line 9063 "configure"
10f2d63a
VZ
9063#include "confdefs.h"
9064#include <sys/types.h>
9065#if STDC_HEADERS
9066#include <stdlib.h>
9067#include <stddef.h>
9068#endif
9069EOF
9070if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9071 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
9072 rm -rf conftest*
9073 ac_cv_type_pid_t=yes
9074else
9075 rm -rf conftest*
9076 ac_cv_type_pid_t=no
9077fi
9078rm -f conftest*
9079
9080fi
9081echo "$ac_t""$ac_cv_type_pid_t" 1>&6
9082if test $ac_cv_type_pid_t = no; then
9083 cat >> confdefs.h <<\EOF
9084#define pid_t int
9085EOF
9086
9087fi
9088
9089echo $ac_n "checking for size_t""... $ac_c" 1>&6
c661ecca 9090echo "configure:9091: checking for size_t" >&5
10f2d63a
VZ
9091if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
9092 echo $ac_n "(cached) $ac_c" 1>&6
9093else
9094 cat > conftest.$ac_ext <<EOF
c661ecca 9095#line 9096 "configure"
10f2d63a
VZ
9096#include "confdefs.h"
9097#include <sys/types.h>
9098#if STDC_HEADERS
9099#include <stdlib.h>
9100#include <stddef.h>
9101#endif
9102EOF
9103if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9104 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
9105 rm -rf conftest*
9106 ac_cv_type_size_t=yes
9107else
9108 rm -rf conftest*
9109 ac_cv_type_size_t=no
9110fi
9111rm -f conftest*
9112
9113fi
9114echo "$ac_t""$ac_cv_type_size_t" 1>&6
9115if test $ac_cv_type_size_t = no; then
9116 cat >> confdefs.h <<\EOF
9117#define size_t unsigned
9118EOF
9119
9120fi
9121
9122echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
c661ecca 9123echo "configure:9124: checking for uid_t in sys/types.h" >&5
10f2d63a
VZ
9124if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
9125 echo $ac_n "(cached) $ac_c" 1>&6
9126else
9127 cat > conftest.$ac_ext <<EOF
c661ecca 9128#line 9129 "configure"
10f2d63a
VZ
9129#include "confdefs.h"
9130#include <sys/types.h>
9131EOF
9132if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9133 egrep "uid_t" >/dev/null 2>&1; then
9134 rm -rf conftest*
9135 ac_cv_type_uid_t=yes
9136else
9137 rm -rf conftest*
9138 ac_cv_type_uid_t=no
9139fi
9140rm -f conftest*
9141
9142fi
9143
9144echo "$ac_t""$ac_cv_type_uid_t" 1>&6
9145if test $ac_cv_type_uid_t = no; then
9146 cat >> confdefs.h <<\EOF
9147#define uid_t int
9148EOF
9149
9150 cat >> confdefs.h <<\EOF
9151#define gid_t int
9152EOF
9153
9154fi
9155
9156
9157
b12915c1 9158echo $ac_n "checking for pw_gecos in struct passwd""... $ac_c" 1>&6
c661ecca 9159echo "configure:9160: checking for pw_gecos in struct passwd" >&5
b12915c1
VZ
9160if eval "test \"`echo '$''{'wx_cv_struct_pw_gecos'+set}'`\" = set"; then
9161 echo $ac_n "(cached) $ac_c" 1>&6
9162else
9163
9164 cat > conftest.$ac_ext <<EOF
c661ecca 9165#line 9166 "configure"
b12915c1
VZ
9166#include "confdefs.h"
9167#include <pwd.h>
9168int main() {
9169
9170 char *p;
9171 struct passwd *pw;
9172 p = pw->pw_gecos;
9173
9174; return 0; }
9175EOF
c661ecca 9176if { (eval echo configure:9177: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
b12915c1
VZ
9177 rm -rf conftest*
9178
9179 wx_cv_struct_pw_gecos=yes
9180 cat >> confdefs.h <<\EOF
9181#define HAVE_PW_GECOS 1
9182EOF
9183
9184
9185else
9186 echo "configure: failed program was:" >&5
9187 cat conftest.$ac_ext >&5
9188 rm -rf conftest*
9189
9190 wx_cv_struct_pw_gecos=no
9191
9192
9193fi
9194rm -f conftest*
9195
9196
9197fi
9198
9199echo "$ac_t""$wx_cv_struct_pw_gecos" 1>&6
9200
10f2d63a
VZ
9201
9202echo $ac_n "checking for working const""... $ac_c" 1>&6
c661ecca 9203echo "configure:9204: checking for working const" >&5
10f2d63a
VZ
9204if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
9205 echo $ac_n "(cached) $ac_c" 1>&6
9206else
9207 cat > conftest.$ac_ext <<EOF
c661ecca 9208#line 9209 "configure"
10f2d63a
VZ
9209#include "confdefs.h"
9210
9211int main() {
9212
9213/* Ultrix mips cc rejects this. */
24528b0c 9214typedef int charset[2]; const charset x;
10f2d63a
VZ
9215/* SunOS 4.1.1 cc rejects this. */
9216char const *const *ccp;
9217char **p;
9218/* NEC SVR4.0.2 mips cc rejects this. */
9219struct point {int x, y;};
9220static struct point const zero = {0,0};
9221/* AIX XL C 1.02.0.0 rejects this.
9222 It does not let you subtract one const X* pointer from another in an arm
9223 of an if-expression whose if-part is not a constant expression */
9224const char *g = "string";
9225ccp = &g + (g ? g-g : 0);
9226/* HPUX 7.0 cc rejects these. */
9227++ccp;
9228p = (char**) ccp;
9229ccp = (char const *const *) p;
9230{ /* SCO 3.2v4 cc rejects this. */
9231 char *t;
9232 char const *s = 0 ? (char *) 0 : (char const *) 0;
9233
9234 *t++ = 0;
9235}
9236{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
9237 int x[] = {25, 17};
9238 const int *foo = &x[0];
9239 ++foo;
9240}
9241{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9242 typedef const int *iptr;
9243 iptr p = 0;
9244 ++p;
9245}
9246{ /* AIX XL C 1.02.0.0 rejects this saying
9247 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9248 struct s { int j; const int *ap[3]; };
9249 struct s *b; b->j = 5;
9250}
9251{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9252 const int foo = 10;
9253}
9254
9255; return 0; }
9256EOF
c661ecca 9257if { (eval echo configure:9258: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10f2d63a
VZ
9258 rm -rf conftest*
9259 ac_cv_c_const=yes
9260else
9261 echo "configure: failed program was:" >&5
9262 cat conftest.$ac_ext >&5
9263 rm -rf conftest*
9264 ac_cv_c_const=no
9265fi
9266rm -f conftest*
9267fi
9268
9269echo "$ac_t""$ac_cv_c_const" 1>&6
9270if test $ac_cv_c_const = no; then
9271 cat >> confdefs.h <<\EOF
9272#define const
9273EOF
9274
9275fi
9276
9277echo $ac_n "checking for inline""... $ac_c" 1>&6
c661ecca 9278echo "configure:9279: checking for inline" >&5
10f2d63a
VZ
9279if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
9280 echo $ac_n "(cached) $ac_c" 1>&6
9281else
9282 ac_cv_c_inline=no
9283for ac_kw in inline __inline__ __inline; do
9284 cat > conftest.$ac_ext <<EOF
c661ecca 9285#line 9286 "configure"
10f2d63a
VZ
9286#include "confdefs.h"
9287
9288int main() {
24528b0c 9289} $ac_kw foo() {
10f2d63a
VZ
9290; return 0; }
9291EOF
c661ecca 9292if { (eval echo configure:9293: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10f2d63a
VZ
9293 rm -rf conftest*
9294 ac_cv_c_inline=$ac_kw; break
9295else
9296 echo "configure: failed program was:" >&5
9297 cat conftest.$ac_ext >&5
9298fi
9299rm -f conftest*
9300done
9301
9302fi
9303
9304echo "$ac_t""$ac_cv_c_inline" 1>&6
9305case "$ac_cv_c_inline" in
9306 inline | yes) ;;
9307 no) cat >> confdefs.h <<\EOF
9308#define inline
9309EOF
9310 ;;
9311 *) cat >> confdefs.h <<EOF
9312#define inline $ac_cv_c_inline
9313EOF
9314 ;;
9315esac
9316
9317
9318echo $ac_n "checking size of char""... $ac_c" 1>&6
c661ecca 9319echo "configure:9320: checking size of char" >&5
10f2d63a
VZ
9320if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then
9321 echo $ac_n "(cached) $ac_c" 1>&6
9322else
9323 if test "$cross_compiling" = yes; then
9324 ac_cv_sizeof_char=1
9325else
9326 cat > conftest.$ac_ext <<EOF
c661ecca 9327#line 9328 "configure"
10f2d63a
VZ
9328#include "confdefs.h"
9329#include <stdio.h>
9330main()
9331{
9332 FILE *f=fopen("conftestval", "w");
9333 if (!f) exit(1);
9334 fprintf(f, "%d\n", sizeof(char));
9335 exit(0);
9336}
9337EOF
c661ecca 9338if { (eval echo configure:9339: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10f2d63a
VZ
9339then
9340 ac_cv_sizeof_char=`cat conftestval`
9341else
9342 echo "configure: failed program was:" >&5
9343 cat conftest.$ac_ext >&5
9344 rm -fr conftest*
9345 ac_cv_sizeof_char=0
9346fi
9347rm -fr conftest*
9348fi
9349
9350fi
9351echo "$ac_t""$ac_cv_sizeof_char" 1>&6
9352cat >> confdefs.h <<EOF
9353#define SIZEOF_CHAR $ac_cv_sizeof_char
9354EOF
9355
9356
9357echo $ac_n "checking size of short""... $ac_c" 1>&6
c661ecca 9358echo "configure:9359: checking size of short" >&5
10f2d63a
VZ
9359if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
9360 echo $ac_n "(cached) $ac_c" 1>&6
9361else
9362 if test "$cross_compiling" = yes; then
9363 ac_cv_sizeof_short=2
9364else
9365 cat > conftest.$ac_ext <<EOF
c661ecca 9366#line 9367 "configure"
10f2d63a
VZ
9367#include "confdefs.h"
9368#include <stdio.h>
9369main()
9370{
9371 FILE *f=fopen("conftestval", "w");
9372 if (!f) exit(1);
9373 fprintf(f, "%d\n", sizeof(short));
9374 exit(0);
9375}
9376EOF
c661ecca 9377if { (eval echo configure:9378: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10f2d63a
VZ
9378then
9379 ac_cv_sizeof_short=`cat conftestval`
9380else
9381 echo "configure: failed program was:" >&5
9382 cat conftest.$ac_ext >&5
9383 rm -fr conftest*
9384 ac_cv_sizeof_short=0
9385fi
9386rm -fr conftest*
9387fi
9388
9389fi
9390echo "$ac_t""$ac_cv_sizeof_short" 1>&6
9391cat >> confdefs.h <<EOF
9392#define SIZEOF_SHORT $ac_cv_sizeof_short
9393EOF
9394
9395
9396echo $ac_n "checking size of int *""... $ac_c" 1>&6
c661ecca 9397echo "configure:9398: checking size of int *" >&5
10f2d63a
VZ
9398if eval "test \"`echo '$''{'ac_cv_sizeof_int_p'+set}'`\" = set"; then
9399 echo $ac_n "(cached) $ac_c" 1>&6
9400else
9401 if test "$cross_compiling" = yes; then
9402 ac_cv_sizeof_int_p=4
9403else
9404 cat > conftest.$ac_ext <<EOF
c661ecca 9405#line 9406 "configure"
10f2d63a
VZ
9406#include "confdefs.h"
9407#include <stdio.h>
9408main()
9409{
9410 FILE *f=fopen("conftestval", "w");
9411 if (!f) exit(1);
9412 fprintf(f, "%d\n", sizeof(int *));
9413 exit(0);
9414}
9415EOF
c661ecca 9416if { (eval echo configure:9417: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10f2d63a
VZ
9417then
9418 ac_cv_sizeof_int_p=`cat conftestval`
9419else
9420 echo "configure: failed program was:" >&5
9421 cat conftest.$ac_ext >&5
9422 rm -fr conftest*
9423 ac_cv_sizeof_int_p=0
9424fi
9425rm -fr conftest*
9426fi
9427
9428fi
9429echo "$ac_t""$ac_cv_sizeof_int_p" 1>&6
9430cat >> confdefs.h <<EOF
9431#define SIZEOF_INT_P $ac_cv_sizeof_int_p
9432EOF
9433
9434
9435echo $ac_n "checking size of int""... $ac_c" 1>&6
c661ecca 9436echo "configure:9437: checking size of int" >&5
10f2d63a
VZ
9437if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
9438 echo $ac_n "(cached) $ac_c" 1>&6
9439else
9440 if test "$cross_compiling" = yes; then
9441 ac_cv_sizeof_int=4
9442else
9443 cat > conftest.$ac_ext <<EOF
c661ecca 9444#line 9445 "configure"
10f2d63a
VZ
9445#include "confdefs.h"
9446#include <stdio.h>
9447main()
9448{
9449 FILE *f=fopen("conftestval", "w");
9450 if (!f) exit(1);
9451 fprintf(f, "%d\n", sizeof(int));
9452 exit(0);
9453}
9454EOF
c661ecca 9455if { (eval echo configure:9456: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10f2d63a
VZ
9456then
9457 ac_cv_sizeof_int=`cat conftestval`
9458else
9459 echo "configure: failed program was:" >&5
9460 cat conftest.$ac_ext >&5
9461 rm -fr conftest*
9462 ac_cv_sizeof_int=0
9463fi
9464rm -fr conftest*
9465fi
9466
9467fi
9468echo "$ac_t""$ac_cv_sizeof_int" 1>&6
9469cat >> confdefs.h <<EOF
9470#define SIZEOF_INT $ac_cv_sizeof_int
9471EOF
9472
9473
9474echo $ac_n "checking size of long""... $ac_c" 1>&6
c661ecca 9475echo "configure:9476: checking size of long" >&5
10f2d63a
VZ
9476if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
9477 echo $ac_n "(cached) $ac_c" 1>&6
9478else
9479 if test "$cross_compiling" = yes; then
9480 ac_cv_sizeof_long=4
9481else
9482 cat > conftest.$ac_ext <<EOF
c661ecca 9483#line 9484 "configure"
10f2d63a
VZ
9484#include "confdefs.h"
9485#include <stdio.h>
9486main()
9487{
9488 FILE *f=fopen("conftestval", "w");
9489 if (!f) exit(1);
9490 fprintf(f, "%d\n", sizeof(long));
9491 exit(0);
9492}
9493EOF
c661ecca 9494if { (eval echo configure:9495: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10f2d63a
VZ
9495then
9496 ac_cv_sizeof_long=`cat conftestval`
9497else
9498 echo "configure: failed program was:" >&5
9499 cat conftest.$ac_ext >&5
9500 rm -fr conftest*
9501 ac_cv_sizeof_long=0
9502fi
9503rm -fr conftest*
9504fi
9505
9506fi
9507echo "$ac_t""$ac_cv_sizeof_long" 1>&6
9508cat >> confdefs.h <<EOF
9509#define SIZEOF_LONG $ac_cv_sizeof_long
9510EOF
9511
9512
9513echo $ac_n "checking size of long long""... $ac_c" 1>&6
c661ecca 9514echo "configure:9515: checking size of long long" >&5
10f2d63a
VZ
9515if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
9516 echo $ac_n "(cached) $ac_c" 1>&6
9517else
9518 if test "$cross_compiling" = yes; then
9519 ac_cv_sizeof_long_long=0
9520else
9521 cat > conftest.$ac_ext <<EOF
c661ecca 9522#line 9523 "configure"
10f2d63a
VZ
9523#include "confdefs.h"
9524#include <stdio.h>
9525main()
9526{
9527 FILE *f=fopen("conftestval", "w");
9528 if (!f) exit(1);
9529 fprintf(f, "%d\n", sizeof(long long));
9530 exit(0);
9531}
9532EOF
c661ecca 9533if { (eval echo configure:9534: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10f2d63a
VZ
9534then
9535 ac_cv_sizeof_long_long=`cat conftestval`
9536else
9537 echo "configure: failed program was:" >&5
9538 cat conftest.$ac_ext >&5
9539 rm -fr conftest*
9540 ac_cv_sizeof_long_long=0
9541fi
9542rm -fr conftest*
9543fi
9544
9545fi
9546echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
9547cat >> confdefs.h <<EOF
9548#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
9549EOF
9550
9551
9552
9553echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
c661ecca 9554echo "configure:9555: checking whether byte ordering is bigendian" >&5
10f2d63a
VZ
9555if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
9556 echo $ac_n "(cached) $ac_c" 1>&6
9557else
9558 ac_cv_c_bigendian=unknown
9559# See if sys/param.h defines the BYTE_ORDER macro.
9560cat > conftest.$ac_ext <<EOF
c661ecca 9561#line 9562 "configure"
10f2d63a
VZ
9562#include "confdefs.h"
9563#include <sys/types.h>
9564#include <sys/param.h>
9565int main() {
9566
9567#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
9568 bogus endian macros
9569#endif
9570; return 0; }
9571EOF
c661ecca 9572if { (eval echo configure:9573: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10f2d63a
VZ
9573 rm -rf conftest*
9574 # It does; now see whether it defined to BIG_ENDIAN or not.
9575cat > conftest.$ac_ext <<EOF
c661ecca 9576#line 9577 "configure"
10f2d63a
VZ
9577#include "confdefs.h"
9578#include <sys/types.h>
9579#include <sys/param.h>
9580int main() {
9581
9582#if BYTE_ORDER != BIG_ENDIAN
9583 not big endian
9584#endif
9585; return 0; }
9586EOF
c661ecca 9587if { (eval echo configure:9588: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10f2d63a
VZ
9588 rm -rf conftest*
9589 ac_cv_c_bigendian=yes
9590else
9591 echo "configure: failed program was:" >&5
9592 cat conftest.$ac_ext >&5
9593 rm -rf conftest*
9594 ac_cv_c_bigendian=no
9595fi
9596rm -f conftest*
9597else
9598 echo "configure: failed program was:" >&5
9599 cat conftest.$ac_ext >&5
9600fi
9601rm -f conftest*
9602if test $ac_cv_c_bigendian = unknown; then
9603if test "$cross_compiling" = yes; then
9604 ac_cv_c_bigendian=unknown
9605else
9606 cat > conftest.$ac_ext <<EOF
c661ecca 9607#line 9608 "configure"
10f2d63a
VZ
9608#include "confdefs.h"
9609main () {
9610 /* Are we little or big endian? From Harbison&Steele. */
9611 union
9612 {
9613 long l;
9614 char c[sizeof (long)];
9615 } u;
9616 u.l = 1;
9617 exit (u.c[sizeof (long) - 1] == 1);
9618}
9619EOF
c661ecca 9620if { (eval echo configure:9621: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10f2d63a
VZ
9621then
9622 ac_cv_c_bigendian=no
9623else
9624 echo "configure: failed program was:" >&5
9625 cat conftest.$ac_ext >&5
9626 rm -fr conftest*
9627 ac_cv_c_bigendian=yes
9628fi
9629rm -fr conftest*
9630fi
9631
9632fi
9633fi
9634
9635echo "$ac_t""$ac_cv_c_bigendian" 1>&6
9636if test $ac_cv_c_bigendian = unknown; then
9637 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
9638fi
9639if test $ac_cv_c_bigendian = yes; then
9640 cat >> confdefs.h <<\EOF
9641#define WORDS_BIGENDIAN 1
9642EOF
9643
9644fi
9645
9646
9647
9648 if test "$cross_compiling" = "yes"; then
9649 cat >> confdefs.h <<\EOF
9650#define wxUSE_IOSTREAMH 1
9651EOF
9652
9653 else
9654
9655 ac_ext=C
9656# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9657ac_cpp='$CXXCPP $CPPFLAGS'
9658ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9659ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9660cross_compiling=$ac_cv_prog_cxx_cross
9661
9662
9663 for ac_hdr in iostream
9664do
9665ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9666echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
c661ecca 9667echo "configure:9668: checking for $ac_hdr" >&5
10f2d63a
VZ
9668if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9669 echo $ac_n "(cached) $ac_c" 1>&6
9670else
9671 cat > conftest.$ac_ext <<EOF
c661ecca 9672#line 9673 "configure"
10f2d63a
VZ
9673#include "confdefs.h"
9674#include <$ac_hdr>
9675EOF
9676ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
c661ecca 9677{ (eval echo configure:9678: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
9678ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9679if test -z "$ac_err"; then
9680 rm -rf conftest*
9681 eval "ac_cv_header_$ac_safe=yes"
9682else
9683 echo "$ac_err" >&5
9684 echo "configure: failed program was:" >&5
9685 cat conftest.$ac_ext >&5
9686 rm -rf conftest*
9687 eval "ac_cv_header_$ac_safe=no"
9688fi
9689rm -f conftest*
9690fi
9691if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9692 echo "$ac_t""yes" 1>&6
9693 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9694 cat >> confdefs.h <<EOF
9695#define $ac_tr_hdr 1
9696EOF
9697
9698else
9699 echo "$ac_t""no" 1>&6
9700fi
9701done
9702
9703
9704 if test "x$HAVE_IOSTREAM" = x ; then
9705 cat >> confdefs.h <<\EOF
9706#define wxUSE_IOSTREAMH 1
9707EOF
9708
9709 else
9710 :
9711 fi
9712
9713 ac_ext=c
9714# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9715ac_cpp='$CPP $CPPFLAGS'
9716ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9717ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9718cross_compiling=$ac_cv_prog_cc_cross
9719
9720 fi
9721
9722
9723
9724 echo $ac_n "checking if C++ compiler supports bool""... $ac_c" 1>&6
c661ecca 9725echo "configure:9726: checking if C++ compiler supports bool" >&5
10f2d63a
VZ
9726if eval "test \"`echo '$''{'wx_cv_cpp_bool'+set}'`\" = set"; then
9727 echo $ac_n "(cached) $ac_c" 1>&6
9728else
9729
9730
9731 ac_ext=C
9732# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9733ac_cpp='$CXXCPP $CPPFLAGS'
9734ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9735ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9736cross_compiling=$ac_cv_prog_cxx_cross
9737
9738
9739 cat > conftest.$ac_ext <<EOF
c661ecca 9740#line 9741 "configure"
10f2d63a
VZ
9741#include "confdefs.h"
9742
9743
9744int main() {
9745
9746 bool b = true;
9747
9748 return 0;
9749
9750; return 0; }
9751EOF
c661ecca 9752if { (eval echo configure:9753: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10f2d63a
VZ
9753 rm -rf conftest*
9754
9755 cat >> confdefs.h <<\EOF
9756#define HAVE_BOOL 1
9757EOF
9758
9759 wx_cv_cpp_bool=yes
9760
9761else
9762 echo "configure: failed program was:" >&5
9763 cat conftest.$ac_ext >&5
9764 rm -rf conftest*
9765
9766 wx_cv_cpp_bool=no
9767
9768
9769fi
9770rm -f conftest*
9771
9772 ac_ext=c
9773# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9774ac_cpp='$CPP $CPPFLAGS'
9775ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9776ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9777cross_compiling=$ac_cv_prog_cc_cross
9778
9779
9780fi
9781
9782echo "$ac_t""$wx_cv_cpp_bool" 1>&6
9783
9784 if test "$wx_cv_cpp_bool" = "yes"; then
9785 cat >> confdefs.h <<\EOF
9786#define HAVE_BOOL 1
9787EOF
9788
9789 fi
9790
9791
9792
10f2d63a 9793echo $ac_n "checking if you need GNU extensions""... $ac_c" 1>&6
c661ecca 9794echo "configure:9795: checking if you need GNU extensions" >&5
10f2d63a
VZ
9795if eval "test \"`echo '$''{'wx_cv_gnu_extensions'+set}'`\" = set"; then
9796 echo $ac_n "(cached) $ac_c" 1>&6
9797else
9798
9799 cat > conftest.$ac_ext <<EOF
c661ecca 9800#line 9801 "configure"
10f2d63a
VZ
9801#include "confdefs.h"
9802#include <features.h>
9803int main() {
9804
9805
9806#ifndef __GNU_LIBRARY__
9807 Compile error wanted
9808#endif
9809
9810
9811; return 0; }
9812EOF
c661ecca 9813if { (eval echo configure:9814: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10f2d63a
VZ
9814 rm -rf conftest*
9815 wx_cv_gnu_extensions=yes
9816else
9817 echo "configure: failed program was:" >&5
9818 cat conftest.$ac_ext >&5
9819 rm -rf conftest*
9820 wx_cv_gnu_extensions=no
9821fi
9822rm -f conftest*
9823
9824fi
9825
9826
9827echo "$ac_t""$wx_cv_gnu_extensions" 1>&6
9828if test "$wx_cv_gnu_extensions" = "yes"; then
9829 cat >> confdefs.h <<EOF
9830#define _GNU_SOURCE 1
9831EOF
9832
9833fi
9834
9835
9836
9837echo $ac_n "checking for wcslen in -lc""... $ac_c" 1>&6
c661ecca 9838echo "configure:9839: checking for wcslen in -lc" >&5
10f2d63a
VZ
9839ac_lib_var=`echo c'_'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="-lc $LIBS"
9845cat > conftest.$ac_ext <<EOF
c661ecca 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
c661ecca 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=""
9878
9879else
9880 echo "$ac_t""no" 1>&6
9881
9882 echo $ac_n "checking for wcslen in -lw""... $ac_c" 1>&6
c661ecca 9883echo "configure:9884: checking for wcslen in -lw" >&5
10f2d63a
VZ
9884ac_lib_var=`echo w'_'wcslen | sed 'y%./+-%__p_%'`
9885if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9886 echo $ac_n "(cached) $ac_c" 1>&6
9887else
9888 ac_save_LIBS="$LIBS"
9889LIBS="-lw $LIBS"
9890cat > conftest.$ac_ext <<EOF
c661ecca 9891#line 9892 "configure"
10f2d63a
VZ
9892#include "confdefs.h"
9893/* Override any gcc2 internal prototype to avoid an error. */
9894/* We use char because int might match the return type of a gcc2
9895 builtin and then its argument prototype would still apply. */
9896char wcslen();
9897
9898int main() {
9899wcslen()
9900; return 0; }
9901EOF
c661ecca 9902if { (eval echo configure:9903: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
9903 rm -rf conftest*
9904 eval "ac_cv_lib_$ac_lib_var=yes"
9905else
9906 echo "configure: failed program was:" >&5
9907 cat conftest.$ac_ext >&5
9908 rm -rf conftest*
9909 eval "ac_cv_lib_$ac_lib_var=no"
9910fi
9911rm -f conftest*
9912LIBS="$ac_save_LIBS"
9913
9914fi
9915if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9916 echo "$ac_t""yes" 1>&6
9917
9918 cat >> confdefs.h <<\EOF
9919#define HAVE_WCSLEN 1
9920EOF
9921
9922 WCHAR_LINK="-lw"
9923
9924else
9925 echo "$ac_t""no" 1>&6
9926fi
9927
9928
9929fi
9930
9931
9932echo $ac_n "checking for vprintf""... $ac_c" 1>&6
c661ecca 9933echo "configure:9934: checking for vprintf" >&5
10f2d63a
VZ
9934if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
9935 echo $ac_n "(cached) $ac_c" 1>&6
9936else
9937 cat > conftest.$ac_ext <<EOF
c661ecca 9938#line 9939 "configure"
10f2d63a
VZ
9939#include "confdefs.h"
9940/* System header to define __stub macros and hopefully few prototypes,
9941 which can conflict with char vprintf(); below. */
9942#include <assert.h>
9943/* Override any gcc2 internal prototype to avoid an error. */
9944/* We use char because int might match the return type of a gcc2
9945 builtin and then its argument prototype would still apply. */
9946char vprintf();
c661ecca 9947char (*f)();
10f2d63a
VZ
9948
9949int main() {
9950
9951/* The GNU C library defines this for functions which it implements
9952 to always fail with ENOSYS. Some functions are actually named
9953 something starting with __ and the normal name is an alias. */
9954#if defined (__stub_vprintf) || defined (__stub___vprintf)
9955choke me
9956#else
c661ecca 9957f = vprintf;
10f2d63a
VZ
9958#endif
9959
9960; return 0; }
9961EOF
c661ecca 9962if { (eval echo configure:9963: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
9963 rm -rf conftest*
9964 eval "ac_cv_func_vprintf=yes"
9965else
9966 echo "configure: failed program was:" >&5
9967 cat conftest.$ac_ext >&5
9968 rm -rf conftest*
9969 eval "ac_cv_func_vprintf=no"
9970fi
9971rm -f conftest*
9972fi
9973
9974if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
9975 echo "$ac_t""yes" 1>&6
9976 cat >> confdefs.h <<\EOF
9977#define HAVE_VPRINTF 1
9978EOF
9979
9980else
9981 echo "$ac_t""no" 1>&6
9982fi
9983
9984if test "$ac_cv_func_vprintf" != yes; then
9985echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
c661ecca 9986echo "configure:9987: checking for _doprnt" >&5
10f2d63a
VZ
9987if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
9988 echo $ac_n "(cached) $ac_c" 1>&6
9989else
9990 cat > conftest.$ac_ext <<EOF
c661ecca 9991#line 9992 "configure"
10f2d63a
VZ
9992#include "confdefs.h"
9993/* System header to define __stub macros and hopefully few prototypes,
9994 which can conflict with char _doprnt(); below. */
9995#include <assert.h>
9996/* Override any gcc2 internal prototype to avoid an error. */
9997/* We use char because int might match the return type of a gcc2
9998 builtin and then its argument prototype would still apply. */
9999char _doprnt();
c661ecca 10000char (*f)();
10f2d63a
VZ
10001
10002int main() {
10003
10004/* The GNU C library defines this for functions which it implements
10005 to always fail with ENOSYS. Some functions are actually named
10006 something starting with __ and the normal name is an alias. */
10007#if defined (__stub__doprnt) || defined (__stub____doprnt)
10008choke me
10009#else
c661ecca 10010f = _doprnt;
10f2d63a
VZ
10011#endif
10012
10013; return 0; }
10014EOF
c661ecca 10015if { (eval echo configure:10016: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
10016 rm -rf conftest*
10017 eval "ac_cv_func__doprnt=yes"
10018else
10019 echo "configure: failed program was:" >&5
10020 cat conftest.$ac_ext >&5
10021 rm -rf conftest*
10022 eval "ac_cv_func__doprnt=no"
10023fi
10024rm -f conftest*
10025fi
10026
10027if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
10028 echo "$ac_t""yes" 1>&6
10029 cat >> confdefs.h <<\EOF
10030#define HAVE_DOPRNT 1
10031EOF
10032
10033else
10034 echo "$ac_t""no" 1>&6
10035fi
10036
10037fi
10038
10039
10040for ac_func in vsnprintf
10041do
10042echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
c661ecca 10043echo "configure:10044: checking for $ac_func" >&5
10f2d63a
VZ
10044if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10045 echo $ac_n "(cached) $ac_c" 1>&6
10046else
10047 cat > conftest.$ac_ext <<EOF
c661ecca 10048#line 10049 "configure"
10f2d63a
VZ
10049#include "confdefs.h"
10050/* System header to define __stub macros and hopefully few prototypes,
10051 which can conflict with char $ac_func(); below. */
10052#include <assert.h>
10053/* Override any gcc2 internal prototype to avoid an error. */
10054/* We use char because int might match the return type of a gcc2
10055 builtin and then its argument prototype would still apply. */
10056char $ac_func();
c661ecca 10057char (*f)();
10f2d63a
VZ
10058
10059int main() {
10060
10061/* The GNU C library defines this for functions which it implements
10062 to always fail with ENOSYS. Some functions are actually named
10063 something starting with __ and the normal name is an alias. */
10064#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10065choke me
10066#else
c661ecca 10067f = $ac_func;
10f2d63a
VZ
10068#endif
10069
10070; return 0; }
10071EOF
c661ecca 10072if { (eval echo configure:10073: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
10073 rm -rf conftest*
10074 eval "ac_cv_func_$ac_func=yes"
10075else
10076 echo "configure: failed program was:" >&5
10077 cat conftest.$ac_ext >&5
10078 rm -rf conftest*
10079 eval "ac_cv_func_$ac_func=no"
10080fi
10081rm -f conftest*
10082fi
10083
10084if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10085 echo "$ac_t""yes" 1>&6
10086 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10087 cat >> confdefs.h <<EOF
10088#define $ac_tr_func 1
10089EOF
10090 cat >> confdefs.h <<\EOF
10091#define HAVE_VSNPRINTF 1
10092EOF
10093
10094else
10095 echo "$ac_t""no" 1>&6
10096echo "configure: warning: unsafe function sprintf will be used instead of snprintf" 1>&2
10097
10098fi
10099done
10100
10101
10102
10103ac_ext=C
10104# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10105ac_cpp='$CXXCPP $CPPFLAGS'
10106ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10107ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10108cross_compiling=$ac_cv_prog_cxx_cross
10109
10110
10111echo $ac_n "checking for vsscanf""... $ac_c" 1>&6
c661ecca 10112echo "configure:10113: checking for vsscanf" >&5
10f2d63a
VZ
10113if eval "test \"`echo '$''{'wx_cv_func_vsscanf'+set}'`\" = set"; then
10114 echo $ac_n "(cached) $ac_c" 1>&6
10115else
10116
10117 if test "$cross_compiling" = yes; then
10118 wx_cv_func_vsscanf=no
10119
10120else
10121 cat > conftest.$ac_ext <<EOF
c661ecca 10122#line 10123 "configure"
10f2d63a
VZ
10123#include "confdefs.h"
10124#ifdef __cplusplus
10125extern "C" void exit(int);
10126#endif
10127
10128 #include <stdio.h>
10129 #include <stdarg.h>
10130
10131 int try_vsscanf(const char *format, ...)
10132 {
10133 va_list ap;
10134 va_start(ap, format);
10135
10136 vsscanf("17", format, ap);
10137
10138 va_end(ap);
10139 }
10140
10141 int main()
10142 {
10143 int i;
10144 try_vsscanf("%d", &i);
10145 return i == 17 ? 0 : 1;
10146 }
10147
10148EOF
c661ecca 10149if { (eval echo configure:10150: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10f2d63a
VZ
10150then
10151
10152 cat >> confdefs.h <<\EOF
10153#define HAVE_VSSCANF 1
10154EOF
10155
10156 wx_cv_func_vsscanf=yes
10157
10158else
10159 echo "configure: failed program was:" >&5
10160 cat conftest.$ac_ext >&5
10161 rm -fr conftest*
10162 wx_cv_func_vsscanf=no
10163fi
10164rm -fr conftest*
10165fi
10166
10167
10168fi
10169
10170echo "$ac_t""$wx_cv_func_vsscanf" 1>&6
10171
10172ac_ext=c
10173# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10174ac_cpp='$CPP $CPPFLAGS'
10175ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10176ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10177cross_compiling=$ac_cv_prog_cc_cross
10178
10179
b089607b 10180if test "$TOOLKIT" != "MSW"; then
10f2d63a
VZ
10181
10182for ac_func in vfork
10183do
10184echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
c661ecca 10185echo "configure:10186: checking for $ac_func" >&5
10f2d63a
VZ
10186if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10187 echo $ac_n "(cached) $ac_c" 1>&6
10188else
10189 cat > conftest.$ac_ext <<EOF
c661ecca 10190#line 10191 "configure"
10f2d63a
VZ
10191#include "confdefs.h"
10192/* System header to define __stub macros and hopefully few prototypes,
10193 which can conflict with char $ac_func(); below. */
10194#include <assert.h>
10195/* Override any gcc2 internal prototype to avoid an error. */
10196/* We use char because int might match the return type of a gcc2
10197 builtin and then its argument prototype would still apply. */
10198char $ac_func();
c661ecca 10199char (*f)();
10f2d63a
VZ
10200
10201int main() {
10202
10203/* The GNU C library defines this for functions which it implements
10204 to always fail with ENOSYS. Some functions are actually named
10205 something starting with __ and the normal name is an alias. */
10206#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10207choke me
10208#else
c661ecca 10209f = $ac_func;
10f2d63a
VZ
10210#endif
10211
10212; return 0; }
10213EOF
c661ecca 10214if { (eval echo configure:10215: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
270a909e
VZ
10215 rm -rf conftest*
10216 eval "ac_cv_func_$ac_func=yes"
10217else
10218 echo "configure: failed program was:" >&5
10219 cat conftest.$ac_ext >&5
10220 rm -rf conftest*
10221 eval "ac_cv_func_$ac_func=no"
10222fi
10223rm -f conftest*
10224fi
10225
10226if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10227 echo "$ac_t""yes" 1>&6
10228 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10229 cat >> confdefs.h <<EOF
10230#define $ac_tr_func 1
10231EOF
10232
10233else
10234 echo "$ac_t""no" 1>&6
10235fi
10236done
10237
10238
10239for ac_func in timegm
10240do
10241echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
c661ecca 10242echo "configure:10243: checking for $ac_func" >&5
270a909e
VZ
10243if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10244 echo $ac_n "(cached) $ac_c" 1>&6
10245else
10246 cat > conftest.$ac_ext <<EOF
c661ecca 10247#line 10248 "configure"
270a909e
VZ
10248#include "confdefs.h"
10249/* System header to define __stub macros and hopefully few prototypes,
10250 which can conflict with char $ac_func(); below. */
10251#include <assert.h>
10252/* Override any gcc2 internal prototype to avoid an error. */
10253/* We use char because int might match the return type of a gcc2
10254 builtin and then its argument prototype would still apply. */
10255char $ac_func();
c661ecca 10256char (*f)();
270a909e
VZ
10257
10258int main() {
10259
10260/* The GNU C library defines this for functions which it implements
10261 to always fail with ENOSYS. Some functions are actually named
10262 something starting with __ and the normal name is an alias. */
10263#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10264choke me
10265#else
c661ecca 10266f = $ac_func;
270a909e
VZ
10267#endif
10268
10269; return 0; }
10270EOF
c661ecca 10271if { (eval echo configure:10272: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
10272 rm -rf conftest*
10273 eval "ac_cv_func_$ac_func=yes"
10274else
10275 echo "configure: failed program was:" >&5
10276 cat conftest.$ac_ext >&5
10277 rm -rf conftest*
10278 eval "ac_cv_func_$ac_func=no"
10279fi
10280rm -f conftest*
10281fi
10282
10283if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10284 echo "$ac_t""yes" 1>&6
10285 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10286 cat >> confdefs.h <<EOF
10287#define $ac_tr_func 1
10288EOF
10289
10290else
10291 echo "$ac_t""no" 1>&6
10292fi
10293done
10294
10295
b12915c1
VZ
10296HAVE_SOME_SLEEP_FUNC=0
10297if test "$USE_BEOS" = 1; then
10298 cat >> confdefs.h <<\EOF
10299#define HAVE_SLEEP 1
10300EOF
10301
10302 HAVE_SOME_SLEEP_FUNC=1
10303fi
10304
10305if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
10306 POSIX4_LINK=
10307 for ac_func in nanosleep
10f2d63a
VZ
10308do
10309echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
c661ecca 10310echo "configure:10311: checking for $ac_func" >&5
10f2d63a
VZ
10311if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10312 echo $ac_n "(cached) $ac_c" 1>&6
10313else
10314 cat > conftest.$ac_ext <<EOF
c661ecca 10315#line 10316 "configure"
10f2d63a
VZ
10316#include "confdefs.h"
10317/* System header to define __stub macros and hopefully few prototypes,
10318 which can conflict with char $ac_func(); below. */
10319#include <assert.h>
10320/* Override any gcc2 internal prototype to avoid an error. */
10321/* We use char because int might match the return type of a gcc2
10322 builtin and then its argument prototype would still apply. */
10323char $ac_func();
c661ecca 10324char (*f)();
10f2d63a
VZ
10325
10326int main() {
10327
10328/* The GNU C library defines this for functions which it implements
10329 to always fail with ENOSYS. Some functions are actually named
10330 something starting with __ and the normal name is an alias. */
10331#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10332choke me
10333#else
c661ecca 10334f = $ac_func;
10f2d63a
VZ
10335#endif
10336
10337; return 0; }
10338EOF
c661ecca 10339if { (eval echo configure:10340: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
10340 rm -rf conftest*
10341 eval "ac_cv_func_$ac_func=yes"
10342else
10343 echo "configure: failed program was:" >&5
10344 cat conftest.$ac_ext >&5
10345 rm -rf conftest*
10346 eval "ac_cv_func_$ac_func=no"
10347fi
10348rm -f conftest*
10349fi
10350
10351if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10352 echo "$ac_t""yes" 1>&6
10353 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10354 cat >> confdefs.h <<EOF
10355#define $ac_tr_func 1
10356EOF
10357 cat >> confdefs.h <<\EOF
10358#define HAVE_NANOSLEEP 1
10359EOF
10360
10361else
10362 echo "$ac_t""no" 1>&6
10363echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6
c661ecca 10364echo "configure:10365: checking for nanosleep in -lposix4" >&5
10f2d63a
VZ
10365ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'`
10366if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10367 echo $ac_n "(cached) $ac_c" 1>&6
10368else
10369 ac_save_LIBS="$LIBS"
10370LIBS="-lposix4 $LIBS"
10371cat > conftest.$ac_ext <<EOF
c661ecca 10372#line 10373 "configure"
10f2d63a
VZ
10373#include "confdefs.h"
10374/* Override any gcc2 internal prototype to avoid an error. */
10375/* We use char because int might match the return type of a gcc2
10376 builtin and then its argument prototype would still apply. */
10377char nanosleep();
10378
10379int main() {
10380nanosleep()
10381; return 0; }
10382EOF
c661ecca 10383if { (eval echo configure:10384: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
10384 rm -rf conftest*
10385 eval "ac_cv_lib_$ac_lib_var=yes"
10386else
10387 echo "configure: failed program was:" >&5
10388 cat conftest.$ac_ext >&5
10389 rm -rf conftest*
10390 eval "ac_cv_lib_$ac_lib_var=no"
10391fi
10392rm -f conftest*
10393LIBS="$ac_save_LIBS"
10394
10395fi
10396if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10397 echo "$ac_t""yes" 1>&6
10398
b12915c1 10399 cat >> confdefs.h <<\EOF
10f2d63a
VZ
10400#define HAVE_NANOSLEEP 1
10401EOF
10402
b12915c1
VZ
10403 POSIX4_LINK="-lposix4"
10404
10f2d63a
VZ
10405else
10406 echo "$ac_t""no" 1>&6
10407
b12915c1 10408 for ac_func in usleep
10f2d63a
VZ
10409do
10410echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
c661ecca 10411echo "configure:10412: checking for $ac_func" >&5
10f2d63a
VZ
10412if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10413 echo $ac_n "(cached) $ac_c" 1>&6
10414else
10415 cat > conftest.$ac_ext <<EOF
c661ecca 10416#line 10417 "configure"
10f2d63a
VZ
10417#include "confdefs.h"
10418/* System header to define __stub macros and hopefully few prototypes,
10419 which can conflict with char $ac_func(); below. */
10420#include <assert.h>
10421/* Override any gcc2 internal prototype to avoid an error. */
10422/* We use char because int might match the return type of a gcc2
10423 builtin and then its argument prototype would still apply. */
10424char $ac_func();
c661ecca 10425char (*f)();
10f2d63a
VZ
10426
10427int main() {
10428
10429/* The GNU C library defines this for functions which it implements
10430 to always fail with ENOSYS. Some functions are actually named
10431 something starting with __ and the normal name is an alias. */
10432#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10433choke me
10434#else
c661ecca 10435f = $ac_func;
10f2d63a
VZ
10436#endif
10437
10438; return 0; }
10439EOF
c661ecca 10440if { (eval echo configure:10441: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
10441 rm -rf conftest*
10442 eval "ac_cv_func_$ac_func=yes"
10443else
10444 echo "configure: failed program was:" >&5
10445 cat conftest.$ac_ext >&5
10446 rm -rf conftest*
10447 eval "ac_cv_func_$ac_func=no"
10448fi
10449rm -f conftest*
10450fi
10451
10452if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10453 echo "$ac_t""yes" 1>&6
10454 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10455 cat >> confdefs.h <<EOF
10456#define $ac_tr_func 1
10457EOF
b12915c1 10458
10f2d63a
VZ
10459else
10460 echo "$ac_t""no" 1>&6
10f2d63a
VZ
10461fi
10462done
10463
b12915c1
VZ
10464 echo "configure: warning: wxSleep() function will not work" 1>&2
10465
10466
10f2d63a
VZ
10467fi
10468
b12915c1
VZ
10469
10470
10f2d63a
VZ
10471fi
10472done
10473
b12915c1 10474fi
10f2d63a
VZ
10475
10476for ac_func in uname gethostname
10477do
10478echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
c661ecca 10479echo "configure:10480: checking for $ac_func" >&5
10f2d63a
VZ
10480if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10481 echo $ac_n "(cached) $ac_c" 1>&6
10482else
10483 cat > conftest.$ac_ext <<EOF
c661ecca 10484#line 10485 "configure"
10f2d63a
VZ
10485#include "confdefs.h"
10486/* System header to define __stub macros and hopefully few prototypes,
10487 which can conflict with char $ac_func(); below. */
10488#include <assert.h>
10489/* Override any gcc2 internal prototype to avoid an error. */
10490/* We use char because int might match the return type of a gcc2
10491 builtin and then its argument prototype would still apply. */
10492char $ac_func();
c661ecca 10493char (*f)();
10f2d63a
VZ
10494
10495int main() {
10496
10497/* The GNU C library defines this for functions which it implements
10498 to always fail with ENOSYS. Some functions are actually named
10499 something starting with __ and the normal name is an alias. */
10500#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10501choke me
10502#else
c661ecca 10503f = $ac_func;
10f2d63a
VZ
10504#endif
10505
10506; return 0; }
10507EOF
c661ecca 10508if { (eval echo configure:10509: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
10509 rm -rf conftest*
10510 eval "ac_cv_func_$ac_func=yes"
10511else
10512 echo "configure: failed program was:" >&5
10513 cat conftest.$ac_ext >&5
10514 rm -rf conftest*
10515 eval "ac_cv_func_$ac_func=no"
10516fi
10517rm -f conftest*
10518fi
10519
10520if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10521 echo "$ac_t""yes" 1>&6
10522 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10523 cat >> confdefs.h <<EOF
10524#define $ac_tr_func 1
10525EOF
10526 break
10527else
10528 echo "$ac_t""no" 1>&6
10529fi
10530done
10531
10532
10533for ac_func in strtok_r
10534do
10535echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
c661ecca 10536echo "configure:10537: checking for $ac_func" >&5
10f2d63a
VZ
10537if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10538 echo $ac_n "(cached) $ac_c" 1>&6
10539else
10540 cat > conftest.$ac_ext <<EOF
c661ecca 10541#line 10542 "configure"
10f2d63a
VZ
10542#include "confdefs.h"
10543/* System header to define __stub macros and hopefully few prototypes,
10544 which can conflict with char $ac_func(); below. */
10545#include <assert.h>
10546/* Override any gcc2 internal prototype to avoid an error. */
10547/* We use char because int might match the return type of a gcc2
10548 builtin and then its argument prototype would still apply. */
10549char $ac_func();
c661ecca 10550char (*f)();
10f2d63a
VZ
10551
10552int main() {
10553
10554/* The GNU C library defines this for functions which it implements
10555 to always fail with ENOSYS. Some functions are actually named
10556 something starting with __ and the normal name is an alias. */
10557#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10558choke me
10559#else
c661ecca 10560f = $ac_func;
10f2d63a
VZ
10561#endif
10562
10563; return 0; }
10564EOF
c661ecca 10565if { (eval echo configure:10566: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
10566 rm -rf conftest*
10567 eval "ac_cv_func_$ac_func=yes"
10568else
10569 echo "configure: failed program was:" >&5
10570 cat conftest.$ac_ext >&5
10571 rm -rf conftest*
10572 eval "ac_cv_func_$ac_func=no"
10573fi
10574rm -f conftest*
10575fi
10576
10577if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10578 echo "$ac_t""yes" 1>&6
10579 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10580 cat >> confdefs.h <<EOF
10581#define $ac_tr_func 1
10582EOF
10583
10584else
10585 echo "$ac_t""no" 1>&6
10586fi
10587done
10588
10589
c63c7106 10590INET_LINK=
10f2d63a
VZ
10591for ac_func in inet_addr
10592do
10593echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
c661ecca 10594echo "configure:10595: checking for $ac_func" >&5
10f2d63a
VZ
10595if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10596 echo $ac_n "(cached) $ac_c" 1>&6
10597else
10598 cat > conftest.$ac_ext <<EOF
c661ecca 10599#line 10600 "configure"
10f2d63a
VZ
10600#include "confdefs.h"
10601/* System header to define __stub macros and hopefully few prototypes,
10602 which can conflict with char $ac_func(); below. */
10603#include <assert.h>
10604/* Override any gcc2 internal prototype to avoid an error. */
10605/* We use char because int might match the return type of a gcc2
10606 builtin and then its argument prototype would still apply. */
10607char $ac_func();
c661ecca 10608char (*f)();
10f2d63a
VZ
10609
10610int main() {
10611
10612/* The GNU C library defines this for functions which it implements
10613 to always fail with ENOSYS. Some functions are actually named
10614 something starting with __ and the normal name is an alias. */
10615#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10616choke me
10617#else
c661ecca 10618f = $ac_func;
10f2d63a
VZ
10619#endif
10620
10621; return 0; }
10622EOF
c661ecca 10623if { (eval echo configure:10624: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
10624 rm -rf conftest*
10625 eval "ac_cv_func_$ac_func=yes"
10626else
10627 echo "configure: failed program was:" >&5
10628 cat conftest.$ac_ext >&5
10629 rm -rf conftest*
10630 eval "ac_cv_func_$ac_func=no"
10631fi
10632rm -f conftest*
10633fi
10634
10635if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10636 echo "$ac_t""yes" 1>&6
10637 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10638 cat >> confdefs.h <<EOF
10639#define $ac_tr_func 1
10640EOF
c63c7106
VZ
10641 cat >> confdefs.h <<\EOF
10642#define HAVE_INET_ADDR 1
10643EOF
10644
10f2d63a
VZ
10645else
10646 echo "$ac_t""no" 1>&6
c63c7106 10647echo $ac_n "checking for inet_addr in -lnsl""... $ac_c" 1>&6
c661ecca 10648echo "configure:10649: checking for inet_addr in -lnsl" >&5
c63c7106
VZ
10649ac_lib_var=`echo nsl'_'inet_addr | sed 'y%./+-%__p_%'`
10650if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10651 echo $ac_n "(cached) $ac_c" 1>&6
10652else
10653 ac_save_LIBS="$LIBS"
10654LIBS="-lnsl $LIBS"
10655cat > conftest.$ac_ext <<EOF
c661ecca 10656#line 10657 "configure"
c63c7106
VZ
10657#include "confdefs.h"
10658/* Override any gcc2 internal prototype to avoid an error. */
10659/* We use char because int might match the return type of a gcc2
10660 builtin and then its argument prototype would still apply. */
10661char inet_addr();
10662
10663int main() {
10664inet_addr()
10665; return 0; }
10666EOF
c661ecca 10667if { (eval echo configure:10668: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
c63c7106
VZ
10668 rm -rf conftest*
10669 eval "ac_cv_lib_$ac_lib_var=yes"
10670else
10671 echo "configure: failed program was:" >&5
10672 cat conftest.$ac_ext >&5
10673 rm -rf conftest*
10674 eval "ac_cv_lib_$ac_lib_var=no"
10675fi
10676rm -f conftest*
10677LIBS="$ac_save_LIBS"
10678
10679fi
10680if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10681 echo "$ac_t""yes" 1>&6
10682 INET_LINK="nsl"
10683else
10684 echo "$ac_t""no" 1>&6
10685echo $ac_n "checking for inet_addr in -lresolv""... $ac_c" 1>&6
c661ecca 10686echo "configure:10687: checking for inet_addr in -lresolv" >&5
c63c7106
VZ
10687ac_lib_var=`echo resolv'_'inet_addr | sed 'y%./+-%__p_%'`
10688if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10689 echo $ac_n "(cached) $ac_c" 1>&6
10690else
10691 ac_save_LIBS="$LIBS"
10692LIBS="-lresolv $LIBS"
10693cat > conftest.$ac_ext <<EOF
c661ecca 10694#line 10695 "configure"
c63c7106
VZ
10695#include "confdefs.h"
10696/* Override any gcc2 internal prototype to avoid an error. */
10697/* We use char because int might match the return type of a gcc2
10698 builtin and then its argument prototype would still apply. */
10699char inet_addr();
10700
10701int main() {
10702inet_addr()
10703; return 0; }
10704EOF
c661ecca 10705if { (eval echo configure:10706: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
c63c7106
VZ
10706 rm -rf conftest*
10707 eval "ac_cv_lib_$ac_lib_var=yes"
10708else
10709 echo "configure: failed program was:" >&5
10710 cat conftest.$ac_ext >&5
10711 rm -rf conftest*
10712 eval "ac_cv_lib_$ac_lib_var=no"
10713fi
10714rm -f conftest*
10715LIBS="$ac_save_LIBS"
10716
10717fi
10718if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10719 echo "$ac_t""yes" 1>&6
10720 INET_LINK="resolv"
10721
10722else
10723 echo "$ac_t""no" 1>&6
10724fi
10725
10726
10727fi
10728
10729
10730
10f2d63a
VZ
10731fi
10732done
10733
c63c7106 10734
10f2d63a
VZ
10735for ac_func in inet_aton
10736do
10737echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
c661ecca 10738echo "configure:10739: checking for $ac_func" >&5
10f2d63a
VZ
10739if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10740 echo $ac_n "(cached) $ac_c" 1>&6
10741else
10742 cat > conftest.$ac_ext <<EOF
c661ecca 10743#line 10744 "configure"
10f2d63a
VZ
10744#include "confdefs.h"
10745/* System header to define __stub macros and hopefully few prototypes,
10746 which can conflict with char $ac_func(); below. */
10747#include <assert.h>
10748/* Override any gcc2 internal prototype to avoid an error. */
10749/* We use char because int might match the return type of a gcc2
10750 builtin and then its argument prototype would still apply. */
10751char $ac_func();
c661ecca 10752char (*f)();
10f2d63a
VZ
10753
10754int main() {
10755
10756/* The GNU C library defines this for functions which it implements
10757 to always fail with ENOSYS. Some functions are actually named
10758 something starting with __ and the normal name is an alias. */
10759#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10760choke me
10761#else
c661ecca 10762f = $ac_func;
10f2d63a
VZ
10763#endif
10764
10765; return 0; }
10766EOF
c661ecca 10767if { (eval echo configure:10768: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
10768 rm -rf conftest*
10769 eval "ac_cv_func_$ac_func=yes"
10770else
10771 echo "configure: failed program was:" >&5
10772 cat conftest.$ac_ext >&5
10773 rm -rf conftest*
10774 eval "ac_cv_func_$ac_func=no"
10775fi
10776rm -f conftest*
10777fi
10778
10779if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10780 echo "$ac_t""yes" 1>&6
10781 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10782 cat >> confdefs.h <<EOF
10783#define $ac_tr_func 1
10784EOF
c63c7106
VZ
10785 cat >> confdefs.h <<\EOF
10786#define HAVE_INET_ATON 1
10787EOF
10788
10f2d63a
VZ
10789else
10790 echo "$ac_t""no" 1>&6
c63c7106 10791 echo $ac_n "checking for inet_aton in -l$INET_LINK""... $ac_c" 1>&6
c661ecca 10792echo "configure:10793: checking for inet_aton in -l$INET_LINK" >&5
c63c7106 10793ac_lib_var=`echo $INET_LINK'_'inet_aton | sed 'y%./+-%__p_%'`
10f2d63a
VZ
10794if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10795 echo $ac_n "(cached) $ac_c" 1>&6
10796else
10797 ac_save_LIBS="$LIBS"
c63c7106 10798LIBS="-l$INET_LINK $LIBS"
10f2d63a 10799cat > conftest.$ac_ext <<EOF
c661ecca 10800#line 10801 "configure"
10f2d63a
VZ
10801#include "confdefs.h"
10802/* Override any gcc2 internal prototype to avoid an error. */
10803/* We use char because int might match the return type of a gcc2
10804 builtin and then its argument prototype would still apply. */
10805char inet_aton();
10806
10807int main() {
10808inet_aton()
10809; return 0; }
10810EOF
c661ecca 10811if { (eval echo configure:10812: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
10812 rm -rf conftest*
10813 eval "ac_cv_lib_$ac_lib_var=yes"
10814else
10815 echo "configure: failed program was:" >&5
10816 cat conftest.$ac_ext >&5
10817 rm -rf conftest*
10818 eval "ac_cv_lib_$ac_lib_var=no"
10819fi
10820rm -f conftest*
10821LIBS="$ac_save_LIBS"
10822
10823fi
10824if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10825 echo "$ac_t""yes" 1>&6
c63c7106
VZ
10826 cat >> confdefs.h <<\EOF
10827#define HAVE_INET_ATON 1
10f2d63a
VZ
10828EOF
10829
10f2d63a
VZ
10830else
10831 echo "$ac_t""no" 1>&6
10832fi
10833
c63c7106
VZ
10834
10835fi
10836done
10837
10838
10839if test "x$INET_LINK" != "x"; then
10840 cat >> confdefs.h <<\EOF
10841#define HAVE_INET_ADDR 1
10842EOF
10843
10844 INET_LINK="-l$INET_LINK"
10845fi
10f2d63a
VZ
10846
10847fi
10848
10849
10850cat > confcache <<\EOF
10851# This file is a shell script that caches the results of configure
10852# tests run on this system so they can be shared between configure
10853# scripts and configure runs. It is not useful on other systems.
10854# If it contains results you don't want to keep, you may remove or edit it.
10855#
10856# By default, configure uses ./config.cache as the cache file,
10857# creating it if it does not exist already. You can give configure
10858# the --cache-file=FILE option to use a different cache file; that is
10859# what configure does when it calls configure scripts in
10860# subdirectories, so they share the cache.
10861# Giving --cache-file=/dev/null disables caching, for debugging configure.
10862# config.status only pays attention to the cache file if you give it the
10863# --recheck option to rerun configure.
10864#
10865EOF
10866# The following way of writing the cache mishandles newlines in values,
10867# but we know of no workaround that is simple, portable, and efficient.
10868# So, don't put newlines in cache variables' values.
10869# Ultrix sh set writes to stderr and can't be redirected directly,
10870# and sets the high bit in the cache file unless we assign to the vars.
10871(set) 2>&1 |
10872 case `(ac_space=' '; set | grep ac_space) 2>&1` in
10873 *ac_space=\ *)
10874 # `set' does not quote correctly, so add quotes (double-quote substitution
10875 # turns \\\\ into \\, and sed turns \\ into \).
10876 sed -n \
10877 -e "s/'/'\\\\''/g" \
10878 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
10879 ;;
10880 *)
10881 # `set' quotes correctly as required by POSIX, so do not add quotes.
10882 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
10883 ;;
10884 esac >> confcache
10885if cmp -s $cache_file confcache; then
10886 :
10887else
10888 if test -w $cache_file; then
10889 echo "updating cache $cache_file"
10890 cat confcache > $cache_file
10891 else
10892 echo "not updating unwritable cache $cache_file"
10893 fi
10894fi
10895rm -f confcache
10896
10897
10898
b089607b 10899if test "$TOOLKIT" != "MSW"; then
10f2d63a
VZ
10900
10901
10902THREADS_LINK=""
10903THREADS_OBJ=""
10904
10905if test "$wxUSE_THREADS" = "yes" ; then
10906 if test "$wxUSE_WINE" = 1 ; then
10907 echo "configure: warning: Threads are not supported under WINE" 1>&2
10908 wxUSE_THREADS="no"
b12915c1
VZ
10909 elif test "$USE_BEOS" = 1; then
10910 echo "configure: warning: BeOS threads are not yet supported" 1>&2
10911 wxUSE_THREADS="no"
10f2d63a
VZ
10912 fi
10913fi
10914
10915if test "$wxUSE_THREADS" = "yes" ; then
10916
10917 echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6
c661ecca 10918echo "configure:10919: checking for pthread_create in -lpthread" >&5
10f2d63a
VZ
10919ac_lib_var=`echo pthread'_'pthread_create | sed 'y%./+-%__p_%'`
10920if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10921 echo $ac_n "(cached) $ac_c" 1>&6
10922else
10923 ac_save_LIBS="$LIBS"
10924LIBS="-lpthread $LIBS"
10925cat > conftest.$ac_ext <<EOF
c661ecca 10926#line 10927 "configure"
10f2d63a
VZ
10927#include "confdefs.h"
10928/* Override any gcc2 internal prototype to avoid an error. */
10929/* We use char because int might match the return type of a gcc2
10930 builtin and then its argument prototype would still apply. */
10931char pthread_create();
10932
10933int main() {
10934pthread_create()
10935; return 0; }
10936EOF
c661ecca 10937if { (eval echo configure:10938: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
10938 rm -rf conftest*
10939 eval "ac_cv_lib_$ac_lib_var=yes"
10940else
10941 echo "configure: failed program was:" >&5
10942 cat conftest.$ac_ext >&5
10943 rm -rf conftest*
10944 eval "ac_cv_lib_$ac_lib_var=no"
10945fi
10946rm -f conftest*
10947LIBS="$ac_save_LIBS"
10948
10949fi
10950if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10951 echo "$ac_t""yes" 1>&6
10952
10953 THREADS_OBJ="threadpsx.lo"
10954 THREADS_LINK="pthread"
10955
10956else
10957 echo "$ac_t""no" 1>&6
10958
10959 echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6
c661ecca 10960echo "configure:10961: checking for pthread_create in -lc_r" >&5
10f2d63a
VZ
10961ac_lib_var=`echo c_r'_'pthread_create | sed 'y%./+-%__p_%'`
10962if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10963 echo $ac_n "(cached) $ac_c" 1>&6
10964else
10965 ac_save_LIBS="$LIBS"
10966LIBS="-lc_r $LIBS"
10967cat > conftest.$ac_ext <<EOF
c661ecca 10968#line 10969 "configure"
10f2d63a
VZ
10969#include "confdefs.h"
10970/* Override any gcc2 internal prototype to avoid an error. */
10971/* We use char because int might match the return type of a gcc2
10972 builtin and then its argument prototype would still apply. */
10973char pthread_create();
10974
10975int main() {
10976pthread_create()
10977; return 0; }
10978EOF
c661ecca 10979if { (eval echo configure:10980: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
10980 rm -rf conftest*
10981 eval "ac_cv_lib_$ac_lib_var=yes"
10982else
10983 echo "configure: failed program was:" >&5
10984 cat conftest.$ac_ext >&5
10985 rm -rf conftest*
10986 eval "ac_cv_lib_$ac_lib_var=no"
10987fi
10988rm -f conftest*
10989LIBS="$ac_save_LIBS"
10990
10991fi
10992if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10993 echo "$ac_t""yes" 1>&6
10994
10995 THREADS_OBJ="threadpsx.lo"
10996 THREADS_LINK="c_r"
10997
10998else
10999 echo "$ac_t""no" 1>&6
11000
11001 ac_safe=`echo "sys/prctl.h" | sed 'y%./+-%__p_%'`
11002echo $ac_n "checking for sys/prctl.h""... $ac_c" 1>&6
c661ecca 11003echo "configure:11004: checking for sys/prctl.h" >&5
10f2d63a
VZ
11004if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11005 echo $ac_n "(cached) $ac_c" 1>&6
11006else
11007 cat > conftest.$ac_ext <<EOF
c661ecca 11008#line 11009 "configure"
10f2d63a
VZ
11009#include "confdefs.h"
11010#include <sys/prctl.h>
11011EOF
11012ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
c661ecca 11013{ (eval echo configure:11014: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
11014ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11015if test -z "$ac_err"; then
11016 rm -rf conftest*
11017 eval "ac_cv_header_$ac_safe=yes"
11018else
11019 echo "$ac_err" >&5
11020 echo "configure: failed program was:" >&5
11021 cat conftest.$ac_ext >&5
11022 rm -rf conftest*
11023 eval "ac_cv_header_$ac_safe=no"
11024fi
11025rm -f conftest*
11026fi
11027if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11028 echo "$ac_t""yes" 1>&6
11029
11030 THREADS_OBJ="threadsgi.lo"
11031
11032else
11033 echo "$ac_t""no" 1>&6
11034fi
11035
11036
11037fi
11038
11039
11040fi
11041
11042
11043 if test -z "$THREADS_OBJ" ; then
11044 wxUSE_THREADS=no
11045 echo "configure: warning: No thread support on this system" 1>&2
11046 fi
11047fi
11048
11049if test "$wxUSE_THREADS" = "yes" ; then
70846f0a
VZ
11050 for ac_func in thr_setconcurrency
11051do
11052echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
c661ecca 11053echo "configure:11054: checking for $ac_func" >&5
70846f0a
VZ
11054if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11055 echo $ac_n "(cached) $ac_c" 1>&6
11056else
11057 cat > conftest.$ac_ext <<EOF
c661ecca 11058#line 11059 "configure"
70846f0a
VZ
11059#include "confdefs.h"
11060/* System header to define __stub macros and hopefully few prototypes,
11061 which can conflict with char $ac_func(); below. */
11062#include <assert.h>
11063/* Override any gcc2 internal prototype to avoid an error. */
11064/* We use char because int might match the return type of a gcc2
11065 builtin and then its argument prototype would still apply. */
11066char $ac_func();
c661ecca 11067char (*f)();
70846f0a
VZ
11068
11069int main() {
11070
11071/* The GNU C library defines this for functions which it implements
11072 to always fail with ENOSYS. Some functions are actually named
11073 something starting with __ and the normal name is an alias. */
11074#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11075choke me
11076#else
c661ecca 11077f = $ac_func;
70846f0a
VZ
11078#endif
11079
11080; return 0; }
11081EOF
c661ecca 11082if { (eval echo configure:11083: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
70846f0a
VZ
11083 rm -rf conftest*
11084 eval "ac_cv_func_$ac_func=yes"
11085else
11086 echo "configure: failed program was:" >&5
11087 cat conftest.$ac_ext >&5
11088 rm -rf conftest*
11089 eval "ac_cv_func_$ac_func=no"
11090fi
11091rm -f conftest*
11092fi
11093
11094if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11095 echo "$ac_t""yes" 1>&6
11096 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11097 cat >> confdefs.h <<EOF
11098#define $ac_tr_func 1
11099EOF
11100
11101else
11102 echo "$ac_t""no" 1>&6
11103fi
11104done
11105
11106
10f2d63a
VZ
11107
11108 for ac_hdr in sched.h
11109do
11110ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11111echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
c661ecca 11112echo "configure:11113: checking for $ac_hdr" >&5
10f2d63a
VZ
11113if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11114 echo $ac_n "(cached) $ac_c" 1>&6
11115else
11116 cat > conftest.$ac_ext <<EOF
c661ecca 11117#line 11118 "configure"
10f2d63a
VZ
11118#include "confdefs.h"
11119#include <$ac_hdr>
11120EOF
11121ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
c661ecca 11122{ (eval echo configure:11123: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
11123ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11124if test -z "$ac_err"; then
11125 rm -rf conftest*
11126 eval "ac_cv_header_$ac_safe=yes"
11127else
11128 echo "$ac_err" >&5
11129 echo "configure: failed program was:" >&5
11130 cat conftest.$ac_ext >&5
11131 rm -rf conftest*
11132 eval "ac_cv_header_$ac_safe=no"
11133fi
11134rm -f conftest*
11135fi
11136if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11137 echo "$ac_t""yes" 1>&6
11138 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11139 cat >> confdefs.h <<EOF
11140#define $ac_tr_hdr 1
11141EOF
11142
11143else
11144 echo "$ac_t""no" 1>&6
11145fi
11146done
11147
11148
11149 echo $ac_n "checking for sched_yield in -l$THREADS_LINK""... $ac_c" 1>&6
c661ecca 11150echo "configure:11151: checking for sched_yield in -l$THREADS_LINK" >&5
10f2d63a
VZ
11151ac_lib_var=`echo $THREADS_LINK'_'sched_yield | sed 'y%./+-%__p_%'`
11152if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11153 echo $ac_n "(cached) $ac_c" 1>&6
11154else
11155 ac_save_LIBS="$LIBS"
11156LIBS="-l$THREADS_LINK $LIBS"
11157cat > conftest.$ac_ext <<EOF
c661ecca 11158#line 11159 "configure"
10f2d63a
VZ
11159#include "confdefs.h"
11160/* Override any gcc2 internal prototype to avoid an error. */
11161/* We use char because int might match the return type of a gcc2
11162 builtin and then its argument prototype would still apply. */
11163char sched_yield();
11164
11165int main() {
11166sched_yield()
11167; return 0; }
11168EOF
c661ecca 11169if { (eval echo configure:11170: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
11170 rm -rf conftest*
11171 eval "ac_cv_lib_$ac_lib_var=yes"
11172else
11173 echo "configure: failed program was:" >&5
11174 cat conftest.$ac_ext >&5
11175 rm -rf conftest*
11176 eval "ac_cv_lib_$ac_lib_var=no"
11177fi
11178rm -f conftest*
11179LIBS="$ac_save_LIBS"
11180
11181fi
11182if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11183 echo "$ac_t""yes" 1>&6
11184 cat >> confdefs.h <<\EOF
11185#define HAVE_SCHED_YIELD 1
11186EOF
11187
11188else
11189 echo "$ac_t""no" 1>&6
11190echo $ac_n "checking for sched_yield in -l"posix4"""... $ac_c" 1>&6
c661ecca 11191echo "configure:11192: checking for sched_yield in -l"posix4"" >&5
10f2d63a
VZ
11192ac_lib_var=`echo "posix4"'_'sched_yield | sed 'y%./+-%__p_%'`
11193if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11194 echo $ac_n "(cached) $ac_c" 1>&6
11195else
11196 ac_save_LIBS="$LIBS"
11197LIBS="-l"posix4" $LIBS"
11198cat > conftest.$ac_ext <<EOF
c661ecca 11199#line 11200 "configure"
10f2d63a
VZ
11200#include "confdefs.h"
11201/* Override any gcc2 internal prototype to avoid an error. */
11202/* We use char because int might match the return type of a gcc2
11203 builtin and then its argument prototype would still apply. */
11204char sched_yield();
11205
11206int main() {
11207sched_yield()
11208; return 0; }
11209EOF
c661ecca 11210if { (eval echo configure:11211: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
11211 rm -rf conftest*
11212 eval "ac_cv_lib_$ac_lib_var=yes"
11213else
11214 echo "configure: failed program was:" >&5
11215 cat conftest.$ac_ext >&5
11216 rm -rf conftest*
11217 eval "ac_cv_lib_$ac_lib_var=no"
11218fi
11219rm -f conftest*
11220LIBS="$ac_save_LIBS"
11221
11222fi
11223if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11224 echo "$ac_t""yes" 1>&6
11225 cat >> confdefs.h <<\EOF
11226#define HAVE_SCHED_YIELD 1
11227EOF
11228 POSIX4_LINK="-lposix4"
11229else
11230 echo "$ac_t""no" 1>&6
11231echo "configure: warning: wxThread::Yield will not work properly" 1>&2
11232
11233fi
11234
11235
11236fi
11237
11238
11239 echo $ac_n "checking for pthread_attr_getschedpolicy in -l$THREADS_LINK""... $ac_c" 1>&6
c661ecca 11240echo "configure:11241: checking for pthread_attr_getschedpolicy in -l$THREADS_LINK" >&5
10f2d63a
VZ
11241ac_lib_var=`echo $THREADS_LINK'_'pthread_attr_getschedpolicy | sed 'y%./+-%__p_%'`
11242if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11243 echo $ac_n "(cached) $ac_c" 1>&6
11244else
11245 ac_save_LIBS="$LIBS"
11246LIBS="-l$THREADS_LINK $LIBS"
11247cat > conftest.$ac_ext <<EOF
c661ecca 11248#line 11249 "configure"
10f2d63a
VZ
11249#include "confdefs.h"
11250/* Override any gcc2 internal prototype to avoid an error. */
11251/* We use char because int might match the return type of a gcc2
11252 builtin and then its argument prototype would still apply. */
11253char pthread_attr_getschedpolicy();
11254
11255int main() {
11256pthread_attr_getschedpolicy()
11257; return 0; }
11258EOF
c661ecca 11259if { (eval echo configure:11260: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
11260 rm -rf conftest*
11261 eval "ac_cv_lib_$ac_lib_var=yes"
11262else
11263 echo "configure: failed program was:" >&5
11264 cat conftest.$ac_ext >&5
11265 rm -rf conftest*
11266 eval "ac_cv_lib_$ac_lib_var=no"
11267fi
11268rm -f conftest*
11269LIBS="$ac_save_LIBS"
11270
11271fi
11272if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11273 echo "$ac_t""yes" 1>&6
11274 cat >> confdefs.h <<\EOF
11275#define HAVE_THREAD_PRIORITY_FUNCTIONS 1
11276EOF
11277
11278else
11279 echo "$ac_t""no" 1>&6
11280echo $ac_n "checking for pthread_attr_getschedpolicy in -l"posix4"""... $ac_c" 1>&6
c661ecca 11281echo "configure:11282: checking for pthread_attr_getschedpolicy in -l"posix4"" >&5
10f2d63a
VZ
11282ac_lib_var=`echo "posix4"'_'pthread_attr_getschedpolicy | sed 'y%./+-%__p_%'`
11283if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11284 echo $ac_n "(cached) $ac_c" 1>&6
11285else
11286 ac_save_LIBS="$LIBS"
11287LIBS="-l"posix4" $LIBS"
11288cat > conftest.$ac_ext <<EOF
c661ecca 11289#line 11290 "configure"
10f2d63a
VZ
11290#include "confdefs.h"
11291/* Override any gcc2 internal prototype to avoid an error. */
11292/* We use char because int might match the return type of a gcc2
11293 builtin and then its argument prototype would still apply. */
11294char pthread_attr_getschedpolicy();
11295
11296int main() {
11297pthread_attr_getschedpolicy()
11298; return 0; }
11299EOF
c661ecca 11300if { (eval echo configure:11301: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
11301 rm -rf conftest*
11302 eval "ac_cv_lib_$ac_lib_var=yes"
11303else
11304 echo "configure: failed program was:" >&5
11305 cat conftest.$ac_ext >&5
11306 rm -rf conftest*
11307 eval "ac_cv_lib_$ac_lib_var=no"
11308fi
11309rm -f conftest*
11310LIBS="$ac_save_LIBS"
11311
11312fi
11313if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11314 echo "$ac_t""yes" 1>&6
11315 cat >> confdefs.h <<\EOF
11316#define HAVE_THREAD_PRIORITY_FUNCTIONS 1
11317EOF
11318 POSIX4_LINK="-lposix4"
11319else
11320 echo "$ac_t""no" 1>&6
11321echo "configure: warning: Setting thread priority will not work" 1>&2
11322
11323fi
11324
11325
11326fi
11327
11328
11329 echo $ac_n "checking for pthread_cancel in -l$THREADS_LINK""... $ac_c" 1>&6
c661ecca 11330echo "configure:11331: checking for pthread_cancel in -l$THREADS_LINK" >&5
10f2d63a
VZ
11331ac_lib_var=`echo $THREADS_LINK'_'pthread_cancel | sed 'y%./+-%__p_%'`
11332if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11333 echo $ac_n "(cached) $ac_c" 1>&6
11334else
11335 ac_save_LIBS="$LIBS"
11336LIBS="-l$THREADS_LINK $LIBS"
11337cat > conftest.$ac_ext <<EOF
c661ecca 11338#line 11339 "configure"
10f2d63a
VZ
11339#include "confdefs.h"
11340/* Override any gcc2 internal prototype to avoid an error. */
11341/* We use char because int might match the return type of a gcc2
11342 builtin and then its argument prototype would still apply. */
11343char pthread_cancel();
11344
11345int main() {
11346pthread_cancel()
11347; return 0; }
11348EOF
c661ecca 11349if { (eval echo configure:11350: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
11350 rm -rf conftest*
11351 eval "ac_cv_lib_$ac_lib_var=yes"
11352else
11353 echo "configure: failed program was:" >&5
11354 cat conftest.$ac_ext >&5
11355 rm -rf conftest*
11356 eval "ac_cv_lib_$ac_lib_var=no"
11357fi
11358rm -f conftest*
11359LIBS="$ac_save_LIBS"
11360
11361fi
11362if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11363 echo "$ac_t""yes" 1>&6
11364 cat >> confdefs.h <<\EOF
11365#define HAVE_PTHREAD_CANCEL 1
11366EOF
11367
11368else
11369 echo "$ac_t""no" 1>&6
11370echo "configure: warning: wxThread::Kill() will not work properly" 1>&2
11371fi
11372
11373
11374 echo $ac_n "checking for pthread_cleanup_push/pop""... $ac_c" 1>&6
c661ecca 11375echo "configure:11376: checking for pthread_cleanup_push/pop" >&5
10f2d63a
VZ
11376if eval "test \"`echo '$''{'wx_cv_func_pthread_cleanup_push'+set}'`\" = set"; then
11377 echo $ac_n "(cached) $ac_c" 1>&6
11378else
11379
11380 cat > conftest.$ac_ext <<EOF
c661ecca 11381#line 11382 "configure"
10f2d63a
VZ
11382#include "confdefs.h"
11383#include <pthread.h>
11384int main() {
11385
11386 pthread_cleanup_push(NULL, NULL);
11387 pthread_cleanup_pop(0);
11388
11389; return 0; }
11390EOF
c661ecca 11391if { (eval echo configure:11392: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10f2d63a
VZ
11392 rm -rf conftest*
11393
11394 wx_cv_func_pthread_cleanup_push=yes
11395 cat >> confdefs.h <<\EOF
11396#define HAVE_THREAD_CLEANUP_FUNCTIONS 1
11397EOF
11398
11399
11400else
11401 echo "configure: failed program was:" >&5
11402 cat conftest.$ac_ext >&5
11403 rm -rf conftest*
11404
11405 wx_cv_func_pthread_cleanup_push=no
11406
11407fi
11408rm -f conftest*
11409
11410fi
11411
11412echo "$ac_t""$wx_cv_func_pthread_cleanup_push" 1>&6
11413
11414 THREADS_LINK="-l$THREADS_LINK"
11415fi
11416
11417fi
11418
11419if test "$wxUSE_THREADS" = "yes"; then
11420 cat >> confdefs.h <<\EOF
11421#define wxUSE_THREADS 1
11422EOF
11423
11424
11425 CFLAGS="${CFLAGS} -D_REENTRANT"
11426 CXXFLAGS="${CXXFLAGS} -D_REENTRANT"
11427
11428 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
11429else
11430 if test "$ac_cv_func_strtok_r" = "yes"; then
ab9b9eab 11431 echo $ac_n "checking if -D_REENTRANT is needed""... $ac_c" 1>&6
c661ecca 11432echo "configure:11433: checking if -D_REENTRANT is needed" >&5
ab9b9eab
VZ
11433 if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
11434 CFLAGS="${CFLAGS} -D_REENTRANT"
11435 CXXFLAGS="${CXXFLAGS} -D_REENTRANT"
11436 echo "$ac_t""yes" 1>&6
11437 else
11438 echo "$ac_t""no" 1>&6
10f2d63a
VZ
11439 fi
11440 fi
11441fi
11442
13111b2a
VZ
11443if test "$WXGTK13" = 1 ; then
11444 cat >> confdefs.h <<EOF
11445#define __WXGTK13__ $WXGTK13
11446EOF
11447
11448 WXGTK12=1
11449fi
11450
10f2d63a
VZ
11451if test "$WXGTK12" = 1 ; then
11452 cat >> confdefs.h <<EOF
11453#define __WXGTK12__ $WXGTK12
11454EOF
11455
11456fi
11457
11458if test "$WXWINE" = 1 ; then
11459 TOOLKIT_DEF="${TOOLKIT_DEF} -D__WXWINE__"
11460fi
11461
11462if test "$wxUSE_CYGWIN" = 1 ; then
11463 TOOLKIT_DEF="${TOOLKIT_DEF} -D__WIN95__"
11464fi
11465
11466WXDEBUG=
11467
11468if test "$wxUSE_DEBUG_INFO" = "yes" ; then
11469 WXDEBUG="-g"
11470 wxUSE_OPTIMISE=no
11471fi
11472
11473if test "$wxUSE_DEBUG_GDB" = "yes" ; then
11474 wxUSE_DEBUG_INFO=yes
11475 WXDEBUG="-ggdb"
11476fi
11477
11478if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
11479 cat >> confdefs.h <<\EOF
11480#define WXDEBUG 1
11481EOF
11482
11483 WXDEBUG_DEFINE="-D__WXDEBUG__"
11484else
11485 if test "$wxUSE_GTK" = 1 ; then
11486 WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS"
11487 fi
11488fi
11489
11490if test "$wxUSE_MEM_TRACING" = "yes" ; then
11491 cat >> confdefs.h <<\EOF
11492#define wxUSE_MEMORY_TRACING 1
11493EOF
11494
11495 cat >> confdefs.h <<\EOF
11496#define wxUSE_GLOBAL_MEMORY_OPERATORS 1
47c13eb7
VS
11497EOF
11498
11499 cat >> confdefs.h <<\EOF
11500#define wxUSE_DEBUG_NEW_ALWAYS 1
10f2d63a
VZ
11501EOF
11502
11503 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
11504fi
11505
11506if test "$wxUSE_DMALLOC" = "yes" ; then
11507 DMALLOC_LINK="-ldmalloc"
11508fi
11509
11510PROFILE=
11511if test "$wxUSE_PROFILE" = "yes" ; then
11512 PROFILE="-pg"
11513fi
11514
11515DEP_INFO_FLAGS=
caa2c79b 11516CODE_GEN_FLAGS=
10f2d63a
VZ
11517if test "$GCC" = yes ; then
11518 if test "$wxUSE_NO_RTTI" = "yes" ; then
caa2c79b 11519 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fno-rtti"
10f2d63a
VZ
11520 fi
11521 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
caa2c79b 11522 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fno-exceptions"
10f2d63a
VZ
11523 fi
11524 if test "$wxUSE_PERMISSIVE" = "yes" ; then
caa2c79b 11525 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive"
10f2d63a
VZ
11526 fi
11527 if test "$wxUSE_NO_DEPS" = "no" ; then
11528 DEP_INFO_FLAGS="-MMD"
11529 fi
11530fi
11531
11532
11533CXXFLAGS=`echo "${CXXFLAGS}" | sed "s/\-O.//g" `
11534CFLAGS=`echo "${CFLAGS}" | sed "s/\-O.//g" `
11535if test "$wxUSE_OPTIMISE" = "no" ; then
11536 OPTIMISE=
11537else
11538 if test "$GCC" = yes ; then
11539 OPTIMISE="-O2"
11540 case "${host}" in
11541 i586-*-*|i686-*-* )
11542 OPTIMISE="${OPTIMISE} "
11543 ;;
11544 esac
11545 else
11546 OPTIMISE="-O"
11547 fi
11548fi
11549
11550
11551ZLIB_INCLUDE=
422107f9 11552if test "$wxUSE_ZLIB" = "yes" -o "$wxUSE_ZLIB" = "sys" ; then
10f2d63a
VZ
11553 cat >> confdefs.h <<\EOF
11554#define wxUSE_ZLIB 1
11555EOF
11556
422107f9
VZ
11557 if test "$wxUSE_ZLIB" = "yes" ; then
11558 ZLIB_INCLUDE="-I\${top_srcdir}/src/zlib"
11559 else
11560 ZLIB_LINK=
11561 ac_safe=`echo "zlib.h" | sed 'y%./+-%__p_%'`
11562echo $ac_n "checking for zlib.h""... $ac_c" 1>&6
c661ecca 11563echo "configure:11564: checking for zlib.h" >&5
422107f9
VZ
11564if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11565 echo $ac_n "(cached) $ac_c" 1>&6
11566else
11567 cat > conftest.$ac_ext <<EOF
c661ecca 11568#line 11569 "configure"
422107f9
VZ
11569#include "confdefs.h"
11570#include <zlib.h>
11571EOF
11572ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
c661ecca 11573{ (eval echo configure:11574: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
422107f9
VZ
11574ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11575if test -z "$ac_err"; then
11576 rm -rf conftest*
11577 eval "ac_cv_header_$ac_safe=yes"
11578else
11579 echo "$ac_err" >&5
11580 echo "configure: failed program was:" >&5
11581 cat conftest.$ac_ext >&5
11582 rm -rf conftest*
11583 eval "ac_cv_header_$ac_safe=no"
11584fi
11585rm -f conftest*
11586fi
11587if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11588 echo "$ac_t""yes" 1>&6
11589 echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6
c661ecca 11590echo "configure:11591: checking for deflate in -lz" >&5
422107f9
VZ
11591ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'`
11592if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11593 echo $ac_n "(cached) $ac_c" 1>&6
11594else
11595 ac_save_LIBS="$LIBS"
11596LIBS="-lz $LIBS"
11597cat > conftest.$ac_ext <<EOF
c661ecca 11598#line 11599 "configure"
422107f9
VZ
11599#include "confdefs.h"
11600/* Override any gcc2 internal prototype to avoid an error. */
11601/* We use char because int might match the return type of a gcc2
11602 builtin and then its argument prototype would still apply. */
11603char deflate();
11604
11605int main() {
11606deflate()
11607; return 0; }
11608EOF
c661ecca 11609if { (eval echo configure:11610: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
422107f9
VZ
11610 rm -rf conftest*
11611 eval "ac_cv_lib_$ac_lib_var=yes"
11612else
11613 echo "configure: failed program was:" >&5
11614 cat conftest.$ac_ext >&5
11615 rm -rf conftest*
11616 eval "ac_cv_lib_$ac_lib_var=no"
11617fi
11618rm -f conftest*
11619LIBS="$ac_save_LIBS"
11620
11621fi
11622if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11623 echo "$ac_t""yes" 1>&6
11624 ZLIB_LINK="-lz"
11625else
11626 echo "$ac_t""no" 1>&6
11627fi
11628
11629else
11630 echo "$ac_t""no" 1>&6
11631fi
11632
11633 if test "x$ZLIB_LINK" = "x" ; then
11634 { echo "configure: error: system zlib compression library not found! Use --with-zlib=yes to use built-in zlib" 1>&2; exit 1; }
11635 fi
11636 fi
10f2d63a
VZ
11637fi
11638
11639PNG_INCLUDE=
422107f9 11640if test "$wxUSE_LIBPNG" = "yes" -o "$wxUSE_LIBPNG" = "sys" ; then
10f2d63a
VZ
11641 cat >> confdefs.h <<\EOF
11642#define wxUSE_LIBPNG 1
11643EOF
11644
41fd4136 11645 if test "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
422107f9
VZ
11646 echo "configure: warning: --with-libpng=sys doesn't work without --with-zlib=sys, will compile the built-in libpng instead" 1>&2
11647 wxUSE_LIBPNG=yes
11648 fi
11649
11650 if test "$wxUSE_LIBPNG" = "yes" ; then
11651 PNG_INCLUDE="-I\${top_srcdir}/src/png"
11652 else
11653 PNG_LINK=
11654 ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'`
11655echo $ac_n "checking for png.h""... $ac_c" 1>&6
c661ecca 11656echo "configure:11657: checking for png.h" >&5
422107f9
VZ
11657if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11658 echo $ac_n "(cached) $ac_c" 1>&6
11659else
11660 cat > conftest.$ac_ext <<EOF
c661ecca 11661#line 11662 "configure"
422107f9
VZ
11662#include "confdefs.h"
11663#include <png.h>
11664EOF
11665ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
c661ecca 11666{ (eval echo configure:11667: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
422107f9
VZ
11667ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11668if test -z "$ac_err"; then
11669 rm -rf conftest*
11670 eval "ac_cv_header_$ac_safe=yes"
11671else
11672 echo "$ac_err" >&5
11673 echo "configure: failed program was:" >&5
11674 cat conftest.$ac_ext >&5
11675 rm -rf conftest*
11676 eval "ac_cv_header_$ac_safe=no"
11677fi
11678rm -f conftest*
11679fi
11680if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11681 echo "$ac_t""yes" 1>&6
11682 echo $ac_n "checking for png_check_sig in -lpng""... $ac_c" 1>&6
c661ecca 11683echo "configure:11684: checking for png_check_sig in -lpng" >&5
422107f9
VZ
11684ac_lib_var=`echo png'_'png_check_sig | sed 'y%./+-%__p_%'`
11685if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11686 echo $ac_n "(cached) $ac_c" 1>&6
11687else
11688 ac_save_LIBS="$LIBS"
11689LIBS="-lpng -lz -lm $LIBS"
11690cat > conftest.$ac_ext <<EOF
c661ecca 11691#line 11692 "configure"
422107f9
VZ
11692#include "confdefs.h"
11693/* Override any gcc2 internal prototype to avoid an error. */
11694/* We use char because int might match the return type of a gcc2
11695 builtin and then its argument prototype would still apply. */
11696char png_check_sig();
11697
11698int main() {
11699png_check_sig()
11700; return 0; }
11701EOF
c661ecca 11702if { (eval echo configure:11703: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
422107f9
VZ
11703 rm -rf conftest*
11704 eval "ac_cv_lib_$ac_lib_var=yes"
11705else
11706 echo "configure: failed program was:" >&5
11707 cat conftest.$ac_ext >&5
11708 rm -rf conftest*
11709 eval "ac_cv_lib_$ac_lib_var=no"
11710fi
11711rm -f conftest*
11712LIBS="$ac_save_LIBS"
11713
11714fi
11715if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11716 echo "$ac_t""yes" 1>&6
11717 PNG_LINK="-lpng"
11718else
11719 echo "$ac_t""no" 1>&6
11720fi
11721
11722
11723else
11724 echo "$ac_t""no" 1>&6
11725fi
11726
11727 if test "x$PNG_LINK" = "x" ; then
11728 { echo "configure: error: system png library not found! Use --with-png=yes to use built-in libpng" 1>&2; exit 1; }
11729 fi
11730 fi
11731
10f2d63a
VZ
11732 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
11733fi
11734
11735JPEG_INCLUDE=
422107f9 11736if test "$wxUSE_LIBJPEG" = "yes" -o "$wxUSE_LIBJPEG" = "sys" ; then
10f2d63a
VZ
11737 cat >> confdefs.h <<\EOF
11738#define wxUSE_LIBJPEG 1
11739EOF
11740
422107f9
VZ
11741 if test "$wxUSE_LIBJPEG" = "yes" ; then
11742 JPEG_INCLUDE="-I\${top_srcdir}/src/jpeg"
11743 else
11744 JPEG_LINK=
11745 ac_safe=`echo "jpeglib.h" | sed 'y%./+-%__p_%'`
11746echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6
c661ecca 11747echo "configure:11748: checking for jpeglib.h" >&5
422107f9
VZ
11748if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11749 echo $ac_n "(cached) $ac_c" 1>&6
11750else
11751 cat > conftest.$ac_ext <<EOF
c661ecca 11752#line 11753 "configure"
422107f9
VZ
11753#include "confdefs.h"
11754#include <jpeglib.h>
11755EOF
11756ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
c661ecca 11757{ (eval echo configure:11758: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
422107f9
VZ
11758ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11759if test -z "$ac_err"; then
11760 rm -rf conftest*
11761 eval "ac_cv_header_$ac_safe=yes"
11762else
11763 echo "$ac_err" >&5
11764 echo "configure: failed program was:" >&5
11765 cat conftest.$ac_ext >&5
11766 rm -rf conftest*
11767 eval "ac_cv_header_$ac_safe=no"
11768fi
11769rm -f conftest*
11770fi
11771if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11772 echo "$ac_t""yes" 1>&6
11773 echo $ac_n "checking for jpeg_read_header in -ljpeg""... $ac_c" 1>&6
c661ecca 11774echo "configure:11775: checking for jpeg_read_header in -ljpeg" >&5
422107f9
VZ
11775ac_lib_var=`echo jpeg'_'jpeg_read_header | sed 'y%./+-%__p_%'`
11776if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11777 echo $ac_n "(cached) $ac_c" 1>&6
11778else
11779 ac_save_LIBS="$LIBS"
11780LIBS="-ljpeg $LIBS"
11781cat > conftest.$ac_ext <<EOF
c661ecca 11782#line 11783 "configure"
422107f9
VZ
11783#include "confdefs.h"
11784/* Override any gcc2 internal prototype to avoid an error. */
11785/* We use char because int might match the return type of a gcc2
11786 builtin and then its argument prototype would still apply. */
11787char jpeg_read_header();
11788
11789int main() {
11790jpeg_read_header()
11791; return 0; }
11792EOF
c661ecca 11793if { (eval echo configure:11794: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
422107f9
VZ
11794 rm -rf conftest*
11795 eval "ac_cv_lib_$ac_lib_var=yes"
11796else
11797 echo "configure: failed program was:" >&5
11798 cat conftest.$ac_ext >&5
11799 rm -rf conftest*
11800 eval "ac_cv_lib_$ac_lib_var=no"
11801fi
11802rm -f conftest*
11803LIBS="$ac_save_LIBS"
11804
11805fi
11806if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11807 echo "$ac_t""yes" 1>&6
11808 JPEG_LINK="-ljpeg"
11809else
11810 echo "$ac_t""no" 1>&6
11811fi
11812
11813else
11814 echo "$ac_t""no" 1>&6
11815fi
11816
11817 if test "x$JPEG_LINK" = "x" ; then
11818 { echo "configure: error: system jpeg library not found! Use --with-jpeg=yes to use built-in one" 1>&2; exit 1; }
11819 fi
11820 fi
10f2d63a
VZ
11821fi
11822
c7a2bf27
RR
11823TIFF_INCLUDE=
11824if test "$wxUSE_LIBTIFF" = "yes" ; then
11825 cat >> confdefs.h <<\EOF
11826#define wxUSE_LIBTIFF 1
11827EOF
11828
11829 TIFF_INCLUDE="-I\${top_srcdir}/src/tiff"
11830fi
11831
10f2d63a
VZ
11832if test "$wxUSE_OPENGL" = "yes"; then
11833 ac_safe=`echo "GL/gl.h" | sed 'y%./+-%__p_%'`
11834echo $ac_n "checking for GL/gl.h""... $ac_c" 1>&6
c661ecca 11835echo "configure:11836: checking for GL/gl.h" >&5
10f2d63a
VZ
11836if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11837 echo $ac_n "(cached) $ac_c" 1>&6
11838else
11839 cat > conftest.$ac_ext <<EOF
c661ecca 11840#line 11841 "configure"
10f2d63a
VZ
11841#include "confdefs.h"
11842#include <GL/gl.h>
11843EOF
11844ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
c661ecca 11845{ (eval echo configure:11846: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
11846ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11847if test -z "$ac_err"; then
11848 rm -rf conftest*
11849 eval "ac_cv_header_$ac_safe=yes"
11850else
11851 echo "$ac_err" >&5
11852 echo "configure: failed program was:" >&5
11853 cat conftest.$ac_ext >&5
11854 rm -rf conftest*
11855 eval "ac_cv_header_$ac_safe=no"
11856fi
11857rm -f conftest*
11858fi
11859if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11860 echo "$ac_t""yes" 1>&6
11861
bdad4e7e
RR
11862 cat >> confdefs.h <<\EOF
11863#define wxUSE_OPENGL 1
11864EOF
11865
11866 cat >> confdefs.h <<\EOF
11867#define wxUSE_GLCANVAS 1
11868EOF
11869
11870 echo $ac_n "checking for glFlush in -lGL""... $ac_c" 1>&6
c661ecca 11871echo "configure:11872: checking for glFlush in -lGL" >&5
bdad4e7e 11872ac_lib_var=`echo GL'_'glFlush | sed 'y%./+-%__p_%'`
10f2d63a
VZ
11873if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11874 echo $ac_n "(cached) $ac_c" 1>&6
11875else
11876 ac_save_LIBS="$LIBS"
bdad4e7e 11877LIBS="-lGL $LIBS"
10f2d63a 11878cat > conftest.$ac_ext <<EOF
c661ecca 11879#line 11880 "configure"
10f2d63a
VZ
11880#include "confdefs.h"
11881/* Override any gcc2 internal prototype to avoid an error. */
11882/* We use char because int might match the return type of a gcc2
11883 builtin and then its argument prototype would still apply. */
bdad4e7e 11884char glFlush();
10f2d63a
VZ
11885
11886int main() {
bdad4e7e 11887glFlush()
10f2d63a
VZ
11888; return 0; }
11889EOF
c661ecca 11890if { (eval echo configure:11891: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
11891 rm -rf conftest*
11892 eval "ac_cv_lib_$ac_lib_var=yes"
11893else
11894 echo "configure: failed program was:" >&5
11895 cat conftest.$ac_ext >&5
11896 rm -rf conftest*
11897 eval "ac_cv_lib_$ac_lib_var=no"
11898fi
11899rm -f conftest*
11900LIBS="$ac_save_LIBS"
11901
11902fi
11903if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11904 echo "$ac_t""yes" 1>&6
11905
11906 OPENGL_LINK="-lGL"
10f2d63a
VZ
11907
11908else
11909 echo "$ac_t""no" 1>&6
11910
bdad4e7e 11911 echo $ac_n "checking for glFlush in -lMesaGL""... $ac_c" 1>&6
c661ecca 11912echo "configure:11913: checking for glFlush in -lMesaGL" >&5
bdad4e7e 11913ac_lib_var=`echo MesaGL'_'glFlush | sed 'y%./+-%__p_%'`
10f2d63a
VZ
11914if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11915 echo $ac_n "(cached) $ac_c" 1>&6
11916else
11917 ac_save_LIBS="$LIBS"
11918LIBS="-lMesaGL $LIBS"
11919cat > conftest.$ac_ext <<EOF
c661ecca 11920#line 11921 "configure"
10f2d63a
VZ
11921#include "confdefs.h"
11922/* Override any gcc2 internal prototype to avoid an error. */
11923/* We use char because int might match the return type of a gcc2
11924 builtin and then its argument prototype would still apply. */
bdad4e7e 11925char glFlush();
10f2d63a
VZ
11926
11927int main() {
bdad4e7e 11928glFlush()
10f2d63a
VZ
11929; return 0; }
11930EOF
c661ecca 11931if { (eval echo configure:11932: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
11932 rm -rf conftest*
11933 eval "ac_cv_lib_$ac_lib_var=yes"
11934else
11935 echo "configure: failed program was:" >&5
11936 cat conftest.$ac_ext >&5
11937 rm -rf conftest*
11938 eval "ac_cv_lib_$ac_lib_var=no"
11939fi
11940rm -f conftest*
11941LIBS="$ac_save_LIBS"
11942
11943fi
11944if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11945 echo "$ac_t""yes" 1>&6
11946
11947 OPENGL_LINK="-lMesaGL"
10f2d63a
VZ
11948
11949else
11950 echo "$ac_t""no" 1>&6
10f2d63a
VZ
11951fi
11952
11953
11954fi
11955
11956
11957else
11958 echo "$ac_t""no" 1>&6
11959wxUSE_OPENGL=0
11960fi
11961
11962fi
11963
11964
11965if test "$wxUSE_GUI" = "yes"; then
11966 cat >> confdefs.h <<\EOF
11967#define wxUSE_GUI 1
11968EOF
11969
11970
11971 else
11972 cat >> confdefs.h <<\EOF
11973#define wxUSE_NOGUI 1
11974EOF
11975
11976fi
11977
11978
11979if test "$wxUSE_UNIX" = "yes"; then
11980 cat >> confdefs.h <<\EOF
11981#define wxUSE_UNIX 1
11982EOF
11983
11984fi
11985
11986
11987if test "$wxUSE_APPLE_IEEE" = "yes"; then
11988 cat >> confdefs.h <<\EOF
11989#define wxUSE_APPLE_IEEE 1
11990EOF
11991
11992fi
11993
10f2d63a
VZ
11994if test "$wxUSE_WAVE" = "yes"; then
11995 cat >> confdefs.h <<\EOF
11996#define wxUSE_WAVE 1
11997EOF
11998
11999fi
12000
12001if test "$wxUSE_FILE" = "yes"; then
12002 cat >> confdefs.h <<\EOF
12003#define wxUSE_FILE 1
12004EOF
12005
12006fi
12007
24528b0c
VS
12008if test "$wxUSE_FILESYSTEM" = "yes"; then
12009 cat >> confdefs.h <<\EOF
12010#define wxUSE_FILESYSTEM 1
12011EOF
12012
12013fi
12014
10f2d63a
VZ
12015if test "$wxUSE_FS_INET" = "yes"; then
12016 cat >> confdefs.h <<\EOF
12017#define wxUSE_FS_INET 1
12018EOF
12019
12020fi
12021
12022if test "$wxUSE_FS_ZIP" = "yes"; then
12023 cat >> confdefs.h <<\EOF
12024#define wxUSE_FS_ZIP 1
12025EOF
12026
12027fi
12028
12029if test "$wxUSE_ZIPSTREAM" = "yes"; then
12030 cat >> confdefs.h <<\EOF
12031#define wxUSE_ZIPSTREAM 1
12032EOF
12033
12034fi
12035
12036if test "$wxUSE_BUSYINFO" = "yes"; then
12037 cat >> confdefs.h <<\EOF
12038#define wxUSE_BUSYINFO 1
12039EOF
12040
12041fi
12042
12043if test "$wxUSE_STD_IOSTREAM" = "yes"; then
12044 cat >> confdefs.h <<\EOF
12045#define wxUSE_STD_IOSTREAM 1
12046EOF
12047
12048fi
12049
12050if test "$wxUSE_TEXTFILE" = "yes"; then
12051 if test "$wxUSE_FILE" != "yes"; then
12052 echo "configure: warning: wxTextFile requires wxFile and it won't be compiled without it" 1>&2
12053 else
12054 cat >> confdefs.h <<\EOF
12055#define wxUSE_TEXTFILE 1
12056EOF
12057
12058 fi
12059fi
12060
12061if test "$wxUSE_CONFIG" = "yes" ; then
12062 if test "$wxUSE_TEXTFILE" != "yes"; then
12063 echo "configure: warning: wxConfig requires wxTextFile and it won't be compiled without it" 1>&2
12064 else
12065 cat >> confdefs.h <<\EOF
12066#define wxUSE_CONFIG 1
12067EOF
12068
12069 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
12070 fi
12071fi
12072
12073if test "$wxUSE_INTL" = "yes" ; then
12074 if test "$wxUSE_FILE" != "yes"; then
12075 echo "configure: warning: I18n code requires wxFile and it won't be compiled without it" 1>&2
12076 else
12077 cat >> confdefs.h <<\EOF
12078#define wxUSE_INTL 1
12079EOF
12080
12081 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
12082 fi
12083fi
12084
12085if test "$wxUSE_LOG" = "yes"; then
12086 cat >> confdefs.h <<\EOF
12087#define wxUSE_LOG 1
12088EOF
12089
12090fi
12091
12092if test "$wxUSE_LONGLONG" = "yes"; then
12093 cat >> confdefs.h <<\EOF
12094#define wxUSE_LONGLONG 1
12095EOF
12096
12097fi
12098
9b33fe02
VZ
12099if test "$wxUSE_PLOT" = "yes"; then
12100 cat >> confdefs.h <<\EOF
12101#define wxUSE_PLOT 1
12102EOF
12103
12104fi
12105
10f2d63a
VZ
12106if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then
12107 cat >> confdefs.h <<\EOF
12108#define wxUSE_DIALUP_MANAGER 1
12109EOF
12110
70f7a477 12111 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
10f2d63a
VZ
12112fi
12113
12114if test "$wxUSE_STREAMS" = "yes" ; then
12115 cat >> confdefs.h <<\EOF
12116#define wxUSE_STREAMS 1
12117EOF
12118
12119fi
12120
10f2d63a 12121
afc31813 12122if test "$wxUSE_TIMEDATE" = "yes"; then
83307f33
VZ
12123 for ac_func in strptime
12124do
12125echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
c661ecca 12126echo "configure:12127: checking for $ac_func" >&5
83307f33
VZ
12127if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12128 echo $ac_n "(cached) $ac_c" 1>&6
12129else
12130 cat > conftest.$ac_ext <<EOF
c661ecca 12131#line 12132 "configure"
83307f33
VZ
12132#include "confdefs.h"
12133/* System header to define __stub macros and hopefully few prototypes,
12134 which can conflict with char $ac_func(); below. */
12135#include <assert.h>
12136/* Override any gcc2 internal prototype to avoid an error. */
12137/* We use char because int might match the return type of a gcc2
12138 builtin and then its argument prototype would still apply. */
12139char $ac_func();
c661ecca 12140char (*f)();
83307f33
VZ
12141
12142int main() {
12143
12144/* The GNU C library defines this for functions which it implements
12145 to always fail with ENOSYS. Some functions are actually named
12146 something starting with __ and the normal name is an alias. */
12147#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12148choke me
12149#else
c661ecca 12150f = $ac_func;
83307f33
VZ
12151#endif
12152
12153; return 0; }
12154EOF
c661ecca 12155if { (eval echo configure:12156: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
83307f33
VZ
12156 rm -rf conftest*
12157 eval "ac_cv_func_$ac_func=yes"
12158else
12159 echo "configure: failed program was:" >&5
12160 cat conftest.$ac_ext >&5
12161 rm -rf conftest*
12162 eval "ac_cv_func_$ac_func=no"
12163fi
12164rm -f conftest*
12165fi
12166
12167if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12168 echo "$ac_t""yes" 1>&6
12169 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12170 cat >> confdefs.h <<EOF
12171#define $ac_tr_func 1
12172EOF
12173
12174else
12175 echo "$ac_t""no" 1>&6
12176fi
12177done
12178
12179
360d6699 12180 echo $ac_n "checking for timezone variable in <time.h>""... $ac_c" 1>&6
c661ecca 12181echo "configure:12182: checking for timezone variable in <time.h>" >&5
360d6699
VZ
12182if eval "test \"`echo '$''{'wx_cv_var_timezone'+set}'`\" = set"; then
12183 echo $ac_n "(cached) $ac_c" 1>&6
12184else
12185
12186 cat > conftest.$ac_ext <<EOF
c661ecca 12187#line 12188 "configure"
360d6699
VZ
12188#include "confdefs.h"
12189
12190 #include <time.h>
12191
12192int main() {
12193
12194 int tz;
12195 tz = __timezone;
12196
12197; return 0; }
12198EOF
c661ecca 12199if { (eval echo configure:12200: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
360d6699
VZ
12200 rm -rf conftest*
12201
12202 wx_cv_var_timezone=__timezone
12203
12204else
12205 echo "configure: failed program was:" >&5
12206 cat conftest.$ac_ext >&5
12207 rm -rf conftest*
12208
12209 cat > conftest.$ac_ext <<EOF
c661ecca 12210#line 12211 "configure"
360d6699
VZ
12211#include "confdefs.h"
12212
12213 #include <time.h>
12214
12215int main() {
12216
12217 int tz;
12218 tz = _timezone;
12219
12220; return 0; }
12221EOF
c661ecca 12222if { (eval echo configure:12223: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
360d6699
VZ
12223 rm -rf conftest*
12224
12225 wx_cv_var_timezone=_timezone
12226
5357c8e8
VZ
12227else
12228 echo "configure: failed program was:" >&5
12229 cat conftest.$ac_ext >&5
12230 rm -rf conftest*
12231
12232 cat > conftest.$ac_ext <<EOF
c661ecca 12233#line 12234 "configure"
5357c8e8
VZ
12234#include "confdefs.h"
12235
12236 #include <time.h>
12237
12238int main() {
12239
12240 int tz;
12241 tz = timezone;
12242
12243; return 0; }
12244EOF
c661ecca 12245if { (eval echo configure:12246: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5357c8e8
VZ
12246 rm -rf conftest*
12247
12248 wx_cv_var_timezone=timezone
12249
360d6699
VZ
12250else
12251 echo "configure: failed program was:" >&5
12252 cat conftest.$ac_ext >&5
12253 rm -rf conftest*
12254 { echo "configure: error: no timezone variable" 1>&2; exit 1; }
5357c8e8
VZ
12255
12256fi
12257rm -f conftest*
12258
360d6699
VZ
12259
12260fi
12261rm -f conftest*
12262
12263
12264fi
12265rm -f conftest*
12266
12267
12268fi
12269
12270echo "$ac_t""$wx_cv_var_timezone" 1>&6
12271
12272 cat >> confdefs.h <<EOF
12273#define WX_TIMEZONE $wx_cv_var_timezone
12274EOF
12275
12276
3fcdd07b 12277 for ac_func in localtime
afc31813
VZ
12278do
12279echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
c661ecca 12280echo "configure:12281: checking for $ac_func" >&5
afc31813
VZ
12281if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12282 echo $ac_n "(cached) $ac_c" 1>&6
12283else
12284 cat > conftest.$ac_ext <<EOF
c661ecca 12285#line 12286 "configure"
10f2d63a 12286#include "confdefs.h"
afc31813
VZ
12287/* System header to define __stub macros and hopefully few prototypes,
12288 which can conflict with char $ac_func(); below. */
12289#include <assert.h>
12290/* Override any gcc2 internal prototype to avoid an error. */
12291/* We use char because int might match the return type of a gcc2
12292 builtin and then its argument prototype would still apply. */
12293char $ac_func();
c661ecca 12294char (*f)();
afc31813 12295
10f2d63a 12296int main() {
afc31813
VZ
12297
12298/* The GNU C library defines this for functions which it implements
12299 to always fail with ENOSYS. Some functions are actually named
12300 something starting with __ and the normal name is an alias. */
12301#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12302choke me
12303#else
c661ecca 12304f = $ac_func;
afc31813
VZ
12305#endif
12306
10f2d63a
VZ
12307; return 0; }
12308EOF
c661ecca 12309if { (eval echo configure:12310: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a 12310 rm -rf conftest*
afc31813 12311 eval "ac_cv_func_$ac_func=yes"
10f2d63a
VZ
12312else
12313 echo "configure: failed program was:" >&5
12314 cat conftest.$ac_ext >&5
12315 rm -rf conftest*
afc31813
VZ
12316 eval "ac_cv_func_$ac_func=no"
12317fi
12318rm -f conftest*
12319fi
12320
12321if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12322 echo "$ac_t""yes" 1>&6
12323 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12324 cat >> confdefs.h <<EOF
12325#define $ac_tr_func 1
12326EOF
3fcdd07b 12327
afc31813
VZ
12328else
12329 echo "$ac_t""no" 1>&6
12330fi
12331done
12332
12333
0470b1e6
VZ
12334 if test "$ac_cv_func_localtime" = "yes"; then
12335 echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6
c661ecca 12336echo "configure:12337: checking for tm_gmtoff in struct tm" >&5
0470b1e6
VZ
12337if eval "test \"`echo '$''{'wx_cv_struct_tm_has_gmtoff'+set}'`\" = set"; then
12338 echo $ac_n "(cached) $ac_c" 1>&6
12339else
12340
12341 cat > conftest.$ac_ext <<EOF
c661ecca 12342#line 12343 "configure"
0470b1e6
VZ
12343#include "confdefs.h"
12344
12345 #include <time.h>
12346
12347int main() {
12348
12349 struct tm tm;
12350 tm.tm_gmtoff++;
12351
12352; return 0; }
12353EOF
c661ecca 12354if { (eval echo configure:12355: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
0470b1e6
VZ
12355 rm -rf conftest*
12356
f03a98d8 12357 wx_cv_struct_tm_has_gmtoff=yes
0470b1e6
VZ
12358 cat >> confdefs.h <<\EOF
12359#define WX_GMTOFF_IN_TM 1
12360EOF
12361
12362
12363else
12364 echo "configure: failed program was:" >&5
12365 cat conftest.$ac_ext >&5
12366 rm -rf conftest*
12367 wx_cv_struct_tm_has_gmtoff=no
12368
12369fi
12370rm -f conftest*
12371
12372fi
12373
12374echo "$ac_t""$wx_cv_struct_tm_has_gmtoff" 1>&6
3fcdd07b
VZ
12375 fi
12376
12377 for ac_func in gettimeofday ftime
12378do
12379echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
c661ecca 12380echo "configure:12381: checking for $ac_func" >&5
3fcdd07b
VZ
12381if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12382 echo $ac_n "(cached) $ac_c" 1>&6
12383else
12384 cat > conftest.$ac_ext <<EOF
c661ecca 12385#line 12386 "configure"
3fcdd07b
VZ
12386#include "confdefs.h"
12387/* System header to define __stub macros and hopefully few prototypes,
12388 which can conflict with char $ac_func(); below. */
12389#include <assert.h>
12390/* Override any gcc2 internal prototype to avoid an error. */
12391/* We use char because int might match the return type of a gcc2
12392 builtin and then its argument prototype would still apply. */
12393char $ac_func();
c661ecca 12394char (*f)();
3fcdd07b
VZ
12395
12396int main() {
12397
12398/* The GNU C library defines this for functions which it implements
12399 to always fail with ENOSYS. Some functions are actually named
12400 something starting with __ and the normal name is an alias. */
12401#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12402choke me
12403#else
c661ecca 12404f = $ac_func;
3fcdd07b
VZ
12405#endif
12406
12407; return 0; }
12408EOF
c661ecca 12409if { (eval echo configure:12410: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3fcdd07b
VZ
12410 rm -rf conftest*
12411 eval "ac_cv_func_$ac_func=yes"
12412else
12413 echo "configure: failed program was:" >&5
12414 cat conftest.$ac_ext >&5
12415 rm -rf conftest*
12416 eval "ac_cv_func_$ac_func=no"
12417fi
12418rm -f conftest*
12419fi
12420
12421if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12422 echo "$ac_t""yes" 1>&6
12423 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12424 cat >> confdefs.h <<EOF
12425#define $ac_tr_func 1
12426EOF
12427 break
12428else
12429 echo "$ac_t""no" 1>&6
12430fi
12431done
12432
12433
12434 if test "$ac_cv_func_gettimeofday" = "yes"; then
afc31813 12435 echo $ac_n "checking whether gettimeofday takes two arguments""... $ac_c" 1>&6
c661ecca 12436echo "configure:12437: checking whether gettimeofday takes two arguments" >&5
afc31813
VZ
12437if eval "test \"`echo '$''{'wx_cv_func_gettimeofday_has_2_args'+set}'`\" = set"; then
12438 echo $ac_n "(cached) $ac_c" 1>&6
12439else
12440
12441
12442 ac_ext=C
12443# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12444ac_cpp='$CXXCPP $CPPFLAGS'
12445ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12446ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12447cross_compiling=$ac_cv_prog_cxx_cross
12448
12449
12450 cat > conftest.$ac_ext <<EOF
c661ecca 12451#line 12452 "configure"
10f2d63a 12452#include "confdefs.h"
afc31813
VZ
12453
12454 #include <sys/time.h>
12455 #include <unistd.h>
12456
10f2d63a 12457int main() {
afc31813
VZ
12458
12459 struct timeval tv;
12460 struct timezone tz;
12461 gettimeofday(&tv, &tz);
12462
10f2d63a
VZ
12463; return 0; }
12464EOF
c661ecca 12465if { (eval echo configure:12466: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10f2d63a 12466 rm -rf conftest*
afc31813 12467 wx_cv_func_gettimeofday_has_2_args=yes
10f2d63a
VZ
12468else
12469 echo "configure: failed program was:" >&5
12470 cat conftest.$ac_ext >&5
12471 rm -rf conftest*
12472 cat > conftest.$ac_ext <<EOF
c661ecca 12473#line 12474 "configure"
10f2d63a 12474#include "confdefs.h"
afc31813
VZ
12475
12476 #include <sys/time.h>
12477 #include <unistd.h>
12478
10f2d63a 12479int main() {
afc31813
VZ
12480
12481 struct timeval tv;
12482 gettimeofday(&tv);
12483
10f2d63a
VZ
12484; return 0; }
12485EOF
c661ecca 12486if { (eval echo configure:12487: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10f2d63a 12487 rm -rf conftest*
afc31813 12488 wx_cv_func_gettimeofday_has_2_args=no
10f2d63a
VZ
12489else
12490 echo "configure: failed program was:" >&5
12491 cat conftest.$ac_ext >&5
12492 rm -rf conftest*
afc31813
VZ
12493 wx_cv_func_gettimeofday_has_2_args=unknown
12494
10f2d63a
VZ
12495fi
12496rm -f conftest*
afc31813 12497
10f2d63a
VZ
12498fi
12499rm -f conftest*
afc31813 12500 ac_ext=c
10f2d63a
VZ
12501# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12502ac_cpp='$CPP $CPPFLAGS'
12503ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12504ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12505cross_compiling=$ac_cv_prog_cc_cross
12506
afc31813
VZ
12507
12508fi
12509
12510echo "$ac_t""$wx_cv_func_gettimeofday_has_2_args" 1>&6
c63c7106 12511
afc31813
VZ
12512 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
12513 cat >> confdefs.h <<\EOF
12514#define WX_GETTIMEOFDAY_NO_TZ 1
12515EOF
12516
12517 fi
12518 fi
12519
12520 cat >> confdefs.h <<\EOF
12521#define wxUSE_TIMEDATE 1
12522EOF
12523
12524 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
12525fi
12526
12527
b089607b
VZ
12528if test "$TOOLKIT" != "MSW"; then
12529
afc31813 12530if test "$wxUSE_SOCKETS" = "yes"; then
c63c7106 12531 echo $ac_n "checking for socket""... $ac_c" 1>&6
c661ecca 12532echo "configure:12533: checking for socket" >&5
c63c7106
VZ
12533if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
12534 echo $ac_n "(cached) $ac_c" 1>&6
12535else
12536 cat > conftest.$ac_ext <<EOF
c661ecca 12537#line 12538 "configure"
c63c7106
VZ
12538#include "confdefs.h"
12539/* System header to define __stub macros and hopefully few prototypes,
12540 which can conflict with char socket(); 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 socket();
c661ecca 12546char (*f)();
c63c7106
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_socket) || defined (__stub___socket)
12554choke me
12555#else
c661ecca 12556f = socket;
c63c7106
VZ
12557#endif
12558
12559; return 0; }
12560EOF
c661ecca 12561if { (eval echo configure:12562: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
c63c7106
VZ
12562 rm -rf conftest*
12563 eval "ac_cv_func_socket=yes"
12564else
12565 echo "configure: failed program was:" >&5
12566 cat conftest.$ac_ext >&5
12567 rm -rf conftest*
12568 eval "ac_cv_func_socket=no"
12569fi
12570rm -f conftest*
12571fi
12572
12573if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
12574 echo "$ac_t""yes" 1>&6
12575 :
12576else
12577 echo "$ac_t""no" 1>&6
12578echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
c661ecca 12579echo "configure:12580: checking for socket in -lsocket" >&5
c63c7106
VZ
12580ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
12581if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12582 echo $ac_n "(cached) $ac_c" 1>&6
12583else
12584 ac_save_LIBS="$LIBS"
12585LIBS="-lsocket $LIBS"
12586cat > conftest.$ac_ext <<EOF
c661ecca 12587#line 12588 "configure"
c63c7106
VZ
12588#include "confdefs.h"
12589/* Override any gcc2 internal prototype to avoid an error. */
12590/* We use char because int might match the return type of a gcc2
12591 builtin and then its argument prototype would still apply. */
12592char socket();
12593
12594int main() {
12595socket()
12596; return 0; }
12597EOF
c661ecca 12598if { (eval echo configure:12599: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
c63c7106
VZ
12599 rm -rf conftest*
12600 eval "ac_cv_lib_$ac_lib_var=yes"
12601else
12602 echo "configure: failed program was:" >&5
12603 cat conftest.$ac_ext >&5
12604 rm -rf conftest*
12605 eval "ac_cv_lib_$ac_lib_var=no"
12606fi
12607rm -f conftest*
12608LIBS="$ac_save_LIBS"
12609
12610fi
12611if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12612 echo "$ac_t""yes" 1>&6
12613 INET_LINK="$INET_LINK -lsocket"
c63c7106
VZ
12614else
12615 echo "$ac_t""no" 1>&6
afc31813
VZ
12616
12617 echo "configure: warning: socket library not found - sockets will be disabled" 1>&2
12618 wxUSE_SOCKETS=no
12619
12620
c63c7106
VZ
12621fi
12622
12623
12624fi
12625
10f2d63a
VZ
12626fi
12627
b089607b
VZ
12628fi
12629
afc31813 12630if test "$wxUSE_SOCKETS" = "yes" ; then
51a9faba 12631 echo $ac_n "checking what is the type of the third argument of getsockname""... $ac_c" 1>&6
c661ecca 12632echo "configure:12633: checking what is the type of the third argument of getsockname" >&5
51a9faba
VZ
12633if eval "test \"`echo '$''{'wx_cv_type_getsockname3'+set}'`\" = set"; then
12634 echo $ac_n "(cached) $ac_c" 1>&6
12635else
12636
12637
12638 ac_ext=C
afc31813
VZ
12639# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12640ac_cpp='$CXXCPP $CPPFLAGS'
12641ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12642ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12643cross_compiling=$ac_cv_prog_cxx_cross
12644
51a9faba
VZ
12645
12646 cat > conftest.$ac_ext <<EOF
c661ecca 12647#line 12648 "configure"
afc31813 12648#include "confdefs.h"
51a9faba 12649
3ace2e6d 12650 #include <sys/types.h>
51a9faba
VZ
12651 #include <sys/socket.h>
12652
afc31813 12653int main() {
51a9faba
VZ
12654
12655 socklen_t len;
12656 getsockname(0, 0, &len);
12657
afc31813
VZ
12658; return 0; }
12659EOF
c661ecca 12660if { (eval echo configure:12661: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
afc31813 12661 rm -rf conftest*
51a9faba 12662 wx_cv_type_getsockname3=socklen_t
afc31813
VZ
12663else
12664 echo "configure: failed program was:" >&5
12665 cat conftest.$ac_ext >&5
12666 rm -rf conftest*
12667 cat > conftest.$ac_ext <<EOF
c661ecca 12668#line 12669 "configure"
afc31813 12669#include "confdefs.h"
51a9faba 12670
3ace2e6d 12671 #include <sys/types.h>
51a9faba
VZ
12672 #include <sys/socket.h>
12673
afc31813 12674int main() {
51a9faba
VZ
12675
12676 size_t len;
12677 getsockname(0, 0, &len);
12678
afc31813
VZ
12679; return 0; }
12680EOF
c661ecca 12681if { (eval echo configure:12682: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
afc31813 12682 rm -rf conftest*
51a9faba 12683 wx_cv_type_getsockname3=size_t
afc31813
VZ
12684else
12685 echo "configure: failed program was:" >&5
12686 cat conftest.$ac_ext >&5
12687 rm -rf conftest*
12688 cat > conftest.$ac_ext <<EOF
c661ecca 12689#line 12690 "configure"
afc31813 12690#include "confdefs.h"
51a9faba 12691
3ace2e6d 12692 #include <sys/types.h>
51a9faba
VZ
12693 #include <sys/socket.h>
12694
afc31813 12695int main() {
51a9faba
VZ
12696
12697 int len;
12698 getsockname(0, 0, &len);
12699
afc31813
VZ
12700; return 0; }
12701EOF
c661ecca 12702if { (eval echo configure:12703: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
afc31813 12703 rm -rf conftest*
51a9faba 12704 wx_cv_type_getsockname3=int
afc31813
VZ
12705else
12706 echo "configure: failed program was:" >&5
12707 cat conftest.$ac_ext >&5
3ace2e6d
SN
12708 rm -rf conftest*
12709 wx_cv_type_getsockname3=unknown
12710
afc31813
VZ
12711fi
12712rm -f conftest*
51a9faba 12713
afc31813
VZ
12714fi
12715rm -f conftest*
51a9faba 12716
afc31813
VZ
12717fi
12718rm -f conftest*
51a9faba
VZ
12719
12720 ac_ext=c
afc31813
VZ
12721# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12722ac_cpp='$CPP $CPPFLAGS'
12723ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12724ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12725cross_compiling=$ac_cv_prog_cc_cross
12726
51a9faba
VZ
12727
12728fi
12729
12730echo "$ac_t""$wx_cv_type_getsockname3" 1>&6
12731
12732 if test "$wx_cv_type_getsockname3" = "unknown"; then
12733 wxUSE_SOCKETS=no
12734 echo "configure: warning: Couldn't find socklen_t synonym for this system" 1>&2
12735 else
12736 cat >> confdefs.h <<EOF
12737#define SOCKLEN_T $wx_cv_type_getsockname3
12738EOF
12739
12740 fi
12741fi
afc31813 12742
51a9faba 12743if test "$wxUSE_SOCKETS" = "yes" ; then
afc31813
VZ
12744 cat >> confdefs.h <<\EOF
12745#define wxUSE_SOCKETS 1
12746EOF
12747
70f7a477 12748 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
afc31813
VZ
12749 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS protocol"
12750fi
12751
10f2d63a 12752
b089607b
VZ
12753if test "$TOOLKIT" != "MSW"; then
12754
10f2d63a
VZ
12755if test "$wxUSE_JOYSTICK" = 1; then
12756 for ac_hdr in linux/joystick.h
12757do
12758ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12759echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
c661ecca 12760echo "configure:12761: checking for $ac_hdr" >&5
10f2d63a
VZ
12761if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12762 echo $ac_n "(cached) $ac_c" 1>&6
12763else
12764 cat > conftest.$ac_ext <<EOF
c661ecca 12765#line 12766 "configure"
10f2d63a
VZ
12766#include "confdefs.h"
12767#include <$ac_hdr>
12768EOF
12769ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
c661ecca 12770{ (eval echo configure:12771: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
12771ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12772if test -z "$ac_err"; then
12773 rm -rf conftest*
12774 eval "ac_cv_header_$ac_safe=yes"
12775else
12776 echo "$ac_err" >&5
12777 echo "configure: failed program was:" >&5
12778 cat conftest.$ac_ext >&5
12779 rm -rf conftest*
12780 eval "ac_cv_header_$ac_safe=no"
12781fi
12782rm -f conftest*
12783fi
12784if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12785 echo "$ac_t""yes" 1>&6
12786 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12787 cat >> confdefs.h <<EOF
12788#define $ac_tr_hdr 1
12789EOF
12790
12791else
12792 echo "$ac_t""no" 1>&6
12793fi
12794done
12795
b089607b
VZ
12796 if test "$ac_cv_header_linux_joystick_h" != "yes"; then
12797 wxUSE_JOYSTICK=0
12798 echo "configure: warning: Joystick not supported yb this system" 1>&2
12799 fi
12800fi
12801
12802fi
12803
12804if test "$wxUSE_JOYSTICK" = 1; then
10f2d63a
VZ
12805 cat >> confdefs.h <<\EOF
12806#define wxUSE_JOYSTICK 1
12807EOF
12808
12809 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
10f2d63a
VZ
12810fi
12811
12812
b089607b
VZ
12813if test "$TOOLKIT" != "MSW"; then
12814
10f2d63a
VZ
12815HAVE_DL_FUNCS=0
12816HAVE_SHL_FUNCS=0
12817if test "$wxUSE_DYNLIB_CLASS" = "yes"; then
12818 for ac_func in dlopen
12819do
12820echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
c661ecca 12821echo "configure:12822: checking for $ac_func" >&5
10f2d63a
VZ
12822if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12823 echo $ac_n "(cached) $ac_c" 1>&6
12824else
12825 cat > conftest.$ac_ext <<EOF
c661ecca 12826#line 12827 "configure"
10f2d63a
VZ
12827#include "confdefs.h"
12828/* System header to define __stub macros and hopefully few prototypes,
12829 which can conflict with char $ac_func(); below. */
12830#include <assert.h>
12831/* Override any gcc2 internal prototype to avoid an error. */
12832/* We use char because int might match the return type of a gcc2
12833 builtin and then its argument prototype would still apply. */
12834char $ac_func();
c661ecca 12835char (*f)();
10f2d63a
VZ
12836
12837int main() {
12838
12839/* The GNU C library defines this for functions which it implements
12840 to always fail with ENOSYS. Some functions are actually named
12841 something starting with __ and the normal name is an alias. */
12842#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12843choke me
12844#else
c661ecca 12845f = $ac_func;
10f2d63a
VZ
12846#endif
12847
12848; return 0; }
12849EOF
c661ecca 12850if { (eval echo configure:12851: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
12851 rm -rf conftest*
12852 eval "ac_cv_func_$ac_func=yes"
12853else
12854 echo "configure: failed program was:" >&5
12855 cat conftest.$ac_ext >&5
12856 rm -rf conftest*
12857 eval "ac_cv_func_$ac_func=no"
12858fi
12859rm -f conftest*
12860fi
12861
12862if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12863 echo "$ac_t""yes" 1>&6
12864 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12865 cat >> confdefs.h <<EOF
12866#define $ac_tr_func 1
12867EOF
12868
12869 cat >> confdefs.h <<\EOF
12870#define HAVE_DLOPEN 1
12871EOF
12872
12873 HAVE_DL_FUNCS=1
12874
12875else
12876 echo "$ac_t""no" 1>&6
12877echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
c661ecca 12878echo "configure:12879: checking for dlopen in -ldl" >&5
10f2d63a
VZ
12879ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
12880if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12881 echo $ac_n "(cached) $ac_c" 1>&6
12882else
12883 ac_save_LIBS="$LIBS"
12884LIBS="-ldl $LIBS"
12885cat > conftest.$ac_ext <<EOF
c661ecca 12886#line 12887 "configure"
10f2d63a
VZ
12887#include "confdefs.h"
12888/* Override any gcc2 internal prototype to avoid an error. */
12889/* We use char because int might match the return type of a gcc2
12890 builtin and then its argument prototype would still apply. */
12891char dlopen();
12892
12893int main() {
12894dlopen()
12895; return 0; }
12896EOF
c661ecca 12897if { (eval echo configure:12898: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
12898 rm -rf conftest*
12899 eval "ac_cv_lib_$ac_lib_var=yes"
12900else
12901 echo "configure: failed program was:" >&5
12902 cat conftest.$ac_ext >&5
12903 rm -rf conftest*
12904 eval "ac_cv_lib_$ac_lib_var=no"
12905fi
12906rm -f conftest*
12907LIBS="$ac_save_LIBS"
12908
12909fi
12910if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12911 echo "$ac_t""yes" 1>&6
12912
12913 cat >> confdefs.h <<\EOF
12914#define HAVE_DLOPEN 1
12915EOF
12916
12917 HAVE_DL_FUNCS=1
12918 LIBS="$LIBS -ldl"
12919
12920else
12921 echo "$ac_t""no" 1>&6
12922
12923 for ac_func in shl_load
12924do
12925echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
c661ecca 12926echo "configure:12927: checking for $ac_func" >&5
10f2d63a
VZ
12927if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12928 echo $ac_n "(cached) $ac_c" 1>&6
12929else
12930 cat > conftest.$ac_ext <<EOF
c661ecca 12931#line 12932 "configure"
10f2d63a
VZ
12932#include "confdefs.h"
12933/* System header to define __stub macros and hopefully few prototypes,
12934 which can conflict with char $ac_func(); below. */
12935#include <assert.h>
12936/* Override any gcc2 internal prototype to avoid an error. */
12937/* We use char because int might match the return type of a gcc2
12938 builtin and then its argument prototype would still apply. */
12939char $ac_func();
c661ecca 12940char (*f)();
10f2d63a
VZ
12941
12942int main() {
12943
12944/* The GNU C library defines this for functions which it implements
12945 to always fail with ENOSYS. Some functions are actually named
12946 something starting with __ and the normal name is an alias. */
12947#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12948choke me
12949#else
c661ecca 12950f = $ac_func;
10f2d63a
VZ
12951#endif
12952
12953; return 0; }
12954EOF
c661ecca 12955if { (eval echo configure:12956: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
12956 rm -rf conftest*
12957 eval "ac_cv_func_$ac_func=yes"
12958else
12959 echo "configure: failed program was:" >&5
12960 cat conftest.$ac_ext >&5
12961 rm -rf conftest*
12962 eval "ac_cv_func_$ac_func=no"
12963fi
12964rm -f conftest*
12965fi
12966
12967if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12968 echo "$ac_t""yes" 1>&6
12969 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12970 cat >> confdefs.h <<EOF
12971#define $ac_tr_func 1
12972EOF
12973
12974 cat >> confdefs.h <<\EOF
12975#define HAVE_SHL_LOAD 1
12976EOF
12977
12978 HAVE_SHL_FUNCS=1
12979
12980else
12981 echo "$ac_t""no" 1>&6
12982fi
12983done
12984
12985
12986fi
12987
12988
12989fi
12990done
12991
12992
12993 if test "$HAVE_DL_FUNCS" = 0; then
12994 if test "$HAVE_SHL_FUNCS" = 0; then
12995 if test "$USE_UNIX" = 1; then
b12915c1 12996 echo "configure: warning: Missing dynamic loading support, several features will be disabled" 1>&2
10f2d63a
VZ
12997 wxUSE_DYNLIB_CLASS=no
12998 else
b12915c1 12999 echo "configure: warning: Assuming wxLibrary class works on this platform" 1>&2
10f2d63a
VZ
13000 fi
13001 fi
13002 fi
13003fi
13004
b089607b
VZ
13005fi
13006
10f2d63a 13007if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
b12915c1 13008 cat >> confdefs.h <<\EOF
10f2d63a
VZ
13009#define wxUSE_DYNLIB_CLASS 1
13010EOF
13011
b12915c1
VZ
13012else
13013 wxUSE_ODBC=no
13014 wxUSE_SERIAL=no
10f2d63a
VZ
13015fi
13016
13017
13018if test "$wxUSE_UNICODE" = "yes" ; then
13019 cat >> confdefs.h <<\EOF
13020#define wxUSE_UNICODE 1
13021EOF
13022
13023fi
13024
13025if test "$wxUSE_WCSRTOMBS" = "yes" ; then
13026 cat >> confdefs.h <<\EOF
13027#define wxUSE_WCSRTOMBS 1
13028EOF
13029
13030fi
13031
13032if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
13033 cat >> confdefs.h <<\EOF
13034#define wxUSE_EXPERIMENTAL_PRINTF 1
13035EOF
13036
13037fi
13038
13039
b12915c1
VZ
13040if test "$wxUSE_SERIAL" = "yes" ; then
13041 cat >> confdefs.h <<\EOF
13042#define wxUSE_SERIAL 1
13043EOF
13044
13045fi
13046
13047
10f2d63a
VZ
13048IODBC_C_SRC=""
13049if test "$wxUSE_ODBC" = "yes" ; then
13050 cat >> confdefs.h <<\EOF
13051#define wxUSE_ODBC 1
13052EOF
13053
13054 WXODBCFLAG="-D_IODBC_"
13055 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
13056 IODBCOBJS="\$(IODBC_OBJS)"
13057else
13058 IODBCOBJS=
13059fi
13060
13061
13062if test "$wxUSE_POSTSCRIPT" = "yes" ; then
13063 cat >> confdefs.h <<\EOF
13064#define wxUSE_POSTSCRIPT 1
13065EOF
13066
13067fi
13068
13069cat >> confdefs.h <<\EOF
13070#define wxUSE_AFM_FOR_POSTSCRIPT 1
13071EOF
13072
13073
13074cat >> confdefs.h <<\EOF
13075#define wxUSE_NORMALIZED_PS_FONTS 1
13076EOF
13077
13078
13079
13080if test "$wxUSE_CONSTRAINTS" = "yes"; then
13081 cat >> confdefs.h <<\EOF
13082#define wxUSE_CONSTRAINTS 1
13083EOF
13084
13085 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
13086fi
13087
13088if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
13089 cat >> confdefs.h <<\EOF
13090#define wxUSE_MDI_ARCHITECTURE 1
13091EOF
13092
13093 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
13094fi
13095
13096if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
13097 cat >> confdefs.h <<\EOF
13098#define wxUSE_DOC_VIEW_ARCHITECTURE 1
13099EOF
13100
13101 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
13102 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
13103 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
13104 fi
13105fi
13106
13107if test "$wxUSE_HELP" = "yes"; then
13108 cat >> confdefs.h <<\EOF
13109#define wxUSE_HELP 1
13110EOF
13111
13112 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
13113fi
13114
13115if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
13116 if test "$wxUSE_CONSTRAINTS" != "yes"; then
13117 echo "configure: warning: Printing support cannot be used without constraints so it won't be compiled without it" 1>&2
13118 else
13119 cat >> confdefs.h <<\EOF
13120#define wxUSE_PRINTING_ARCHITECTURE 1
13121EOF
13122
13123 fi
13124 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
13125fi
13126
13127if test "$wxUSE_PROLOGIO" = "yes" ; then
13128 cat >> confdefs.h <<\EOF
13129#define wxUSE_PROLOGIO 1
13130EOF
13131
13132fi
13133
13134if test "$wxUSE_RESOURCES" = "yes" ; then
13135 if test "$wxUSE_PROLOGIO" = "yes" ; then
13136 cat >> confdefs.h <<\EOF
13137#define wxUSE_RESOURCES 1
13138EOF
13139
13140 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS resource"
13141 else
13142 echo "configure: warning: wxWindows ressource system requires PrologIO and can't be compiled without it." 1>&2
13143 fi
13144fi
13145
13146if test "$wxUSE_X_RESOURCES" = "yes"; then
13147 cat >> confdefs.h <<\EOF
13148#define wxUSE_X_RESOURCES 1
13149EOF
13150
13151fi
13152
13153
13154if test "$wxUSE_IPC" = "yes"; then
13155 cat >> confdefs.h <<\EOF
13156#define wxUSE_IPC 1
13157EOF
13158
13159fi
13160
13161if test "$wxUSE_CLIPBOARD" = "yes"; then
13162 cat >> confdefs.h <<\EOF
13163#define wxUSE_CLIPBOARD 1
13164EOF
13165
13166fi
13167
13168if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
13169 if test "$wxUSE_GTK" = 1; then
13170 if test "$WXGTK12" != 1; then
13171 echo "configure: warning: Drag and drop is only supported under GTK+ 1.2" 1>&2
13172 wxUSE_DRAG_AND_DROP=no
13173 fi
13174 fi
13175
13176 if test "$wxUSE_MOTIF" = 1; then
13177 echo "configure: warning: Drag and drop is not yet supported under Motif" 1>&2
13178 wxUSE_DRAG_AND_DROP=no
13179 fi
13180
13181 if test "$USE_WIN32" = 1; then
13182 for ac_hdr in ole2.h
13183do
13184ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13185echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
c661ecca 13186echo "configure:13187: checking for $ac_hdr" >&5
10f2d63a
VZ
13187if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
13188 echo $ac_n "(cached) $ac_c" 1>&6
13189else
13190 cat > conftest.$ac_ext <<EOF
c661ecca 13191#line 13192 "configure"
10f2d63a
VZ
13192#include "confdefs.h"
13193#include <$ac_hdr>
13194EOF
13195ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
c661ecca 13196{ (eval echo configure:13197: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
13197ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13198if test -z "$ac_err"; then
13199 rm -rf conftest*
13200 eval "ac_cv_header_$ac_safe=yes"
13201else
13202 echo "$ac_err" >&5
13203 echo "configure: failed program was:" >&5
13204 cat conftest.$ac_ext >&5
13205 rm -rf conftest*
13206 eval "ac_cv_header_$ac_safe=no"
13207fi
13208rm -f conftest*
13209fi
13210if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13211 echo "$ac_t""yes" 1>&6
13212 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13213 cat >> confdefs.h <<EOF
13214#define $ac_tr_hdr 1
13215EOF
13216
13217else
13218 echo "$ac_t""no" 1>&6
13219fi
13220done
13221
13222 if test "x$HAVE_OLE2_H" = x ; then
13223 echo "configure: warning: Drag and drop disabled because OLE headers not found" 1>&2
13224 wxUSE_DRAG_AND_DROP=no
13225 fi
13226 fi
13227
13228 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
13229 cat >> confdefs.h <<\EOF
13230#define wxUSE_DRAG_AND_DROP 1
13231EOF
13232
13233 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
13234 fi
13235
13236fi
13237
13238if test "$wxUSE_SPLINES" = "yes" ; then
13239 cat >> confdefs.h <<\EOF
13240#define wxUSE_SPLINES 1
13241EOF
13242
13243fi
13244
13245
13246if test "$wxUSE_ACCEL" = "yes"; then
13247 cat >> confdefs.h <<\EOF
13248#define wxUSE_ACCEL 1
13249EOF
13250
13251fi
13252
13253if test "$wxUSE_CARET" = "yes"; then
13254 cat >> confdefs.h <<\EOF
13255#define wxUSE_CARET 1
13256EOF
13257
13258 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
13259fi
13260
13261if test "$wxUSE_COMBOBOX" = "yes"; then
13262 cat >> confdefs.h <<\EOF
13263#define wxUSE_COMBOBOX 1
13264EOF
13265
13266fi
13267
13268if test "$wxUSE_CHOICE" = "yes"; then
13269 cat >> confdefs.h <<\EOF
13270#define wxUSE_CHOICE 1
13271EOF
13272
13273fi
13274
13275if test "$wxUSE_BMPBUTTON" = "yes"; then
13276 cat >> confdefs.h <<\EOF
13277#define wxUSE_BMPBUTTON 1
13278EOF
13279
13280fi
13281
13282if test "$wxUSE_CHECKBOX" = "yes"; then
13283 cat >> confdefs.h <<\EOF
13284#define wxUSE_CHECKBOX 1
13285EOF
13286
13287fi
13288
13289if test "$wxUSE_CHECKLST" = "yes"; then
13290 cat >> confdefs.h <<\EOF
13291#define wxUSE_CHECKLISTBOX 1
13292EOF
13293
13294 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
13295fi
13296
13297if test "$wxUSE_GAUGE" = "yes"; then
13298 cat >> confdefs.h <<\EOF
13299#define wxUSE_GAUGE 1
13300EOF
13301
13302fi
13303
d6a55c4b
VZ
13304if test "$wxUSE_NEW_GRID" = "yes"; then
13305 wxUSE_GRID="yes"
10f2d63a 13306 cat >> confdefs.h <<\EOF
d6a55c4b 13307#define wxUSE_NEW_GRID 1
10f2d63a
VZ
13308EOF
13309
d6a55c4b 13310 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS newgrid"
10f2d63a
VZ
13311fi
13312
d6a55c4b 13313if test "$wxUSE_GRID" = "yes"; then
10f2d63a 13314 cat >> confdefs.h <<\EOF
d6a55c4b 13315#define wxUSE_GRID 1
10f2d63a
VZ
13316EOF
13317
d6a55c4b 13318 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
10f2d63a
VZ
13319fi
13320
13321if test "$wxUSE_IMAGLIST" = "yes"; then
13322 cat >> confdefs.h <<\EOF
13323#define wxUSE_IMAGLIST 1
13324EOF
13325
13326fi
13327
13328if test "$wxUSE_LISTBOX" = "yes"; then
13329 cat >> confdefs.h <<\EOF
13330#define wxUSE_LISTBOX 1
13331EOF
13332
13333fi
13334
13335if test "$wxUSE_LISTCTRL" = "yes"; then
13336 if test "$wxUSE_IMAGLIST" = "yes"; then
13337 cat >> confdefs.h <<\EOF
13338#define wxUSE_LISTCTRL 1
13339EOF
13340
13341 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
13342 else
13343 echo "configure: warning: wxListCtrl requires wxImageList and won't be compiled without it" 1>&2
13344 fi
13345fi
13346
13347if test "$wxUSE_NOTEBOOK" = "yes"; then
13348 cat >> confdefs.h <<\EOF
13349#define wxUSE_NOTEBOOK 1
13350EOF
13351
13352 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
13353fi
13354
13355if test "$wxUSE_RADIOBOX" = "yes"; then
13356 cat >> confdefs.h <<\EOF
13357#define wxUSE_RADIOBOX 1
13358EOF
13359
13360fi
13361
13362if test "$wxUSE_RADIOBTN" = "yes"; then
13363 cat >> confdefs.h <<\EOF
13364#define wxUSE_RADIOBTN 1
13365EOF
13366
13367fi
13368
13369if test "$wxUSE_SASH" = "yes"; then
13370 cat >> confdefs.h <<\EOF
13371#define wxUSE_SASH 1
13372EOF
13373
13374 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
13375fi
13376
13377if test "$wxUSE_SCROLLBAR" = "yes"; then
13378 cat >> confdefs.h <<\EOF
13379#define wxUSE_SCROLLBAR 1
13380EOF
13381
741a9306 13382 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
10f2d63a
VZ
13383fi
13384
13385if test "$wxUSE_SLIDER" = "yes"; then
13386 cat >> confdefs.h <<\EOF
13387#define wxUSE_SLIDER 1
13388EOF
13389
13390fi
13391
13392if test "$wxUSE_SPINBTN" = "yes"; then
13393 cat >> confdefs.h <<\EOF
13394#define wxUSE_SPINBTN 1
13395EOF
13396
13397fi
13398
56cfaa52
RR
13399if test "$wxUSE_SPINCTRL" = "yes"; then
13400 cat >> confdefs.h <<\EOF
13401#define wxUSE_SPINCTRL 1
13402EOF
13403
13404fi
13405
10f2d63a
VZ
13406if test "$wxUSE_SPLITTER" = "yes"; then
13407 cat >> confdefs.h <<\EOF
13408#define wxUSE_SPLITTER 1
13409EOF
13410
13411 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
13412fi
13413
13414if test "$wxUSE_STATBMP" = "yes"; then
13415 cat >> confdefs.h <<\EOF
13416#define wxUSE_STATBMP 1
13417EOF
13418
13419fi
13420
13421if test "$wxUSE_STATBOX" = "yes"; then
13422 cat >> confdefs.h <<\EOF
13423#define wxUSE_STATBOX 1
13424EOF
13425
13426fi
13427
13428if test "$wxUSE_STATLINE" = "yes"; then
13429 if test "$wxUSE_WINE" = 1 ; then
13430 echo "configure: warning: wxStaticLine is not supported under WINE" 1>&2
13431 else
13432 cat >> confdefs.h <<\EOF
13433#define wxUSE_STATLINE 1
13434EOF
13435
13436 fi
13437fi
13438
13439if test "$wxUSE_STATUSBAR" = "yes"; then
13440 cat >> confdefs.h <<\EOF
13441#define wxUSE_STATUSBAR 1
13442EOF
13443
2286341c
VZ
13444
13445 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
10f2d63a
VZ
13446fi
13447
13448if test "$wxUSE_TABDIALOG" = "yes"; then
13449 cat >> confdefs.h <<\EOF
13450#define wxUSE_TAB_DIALOG 1
13451EOF
13452
13453 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab"
13454fi
13455
360d6699
VZ
13456if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
13457 cat >> confdefs.h <<\EOF
13458#define wxUSE_TOOLBAR_SIMPLE 1
13459EOF
13460
13461 wxUSE_TOOLBAR="yes"
13462fi
13463
10f2d63a
VZ
13464if test "$wxUSE_TOOLBAR" = "yes"; then
13465 cat >> confdefs.h <<\EOF
13466#define wxUSE_TOOLBAR 1
13467EOF
13468
360d6699
VZ
13469
13470 if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
13471 wxUSE_TOOLBAR_NATIVE="yes"
13472 fi
13473
10f2d63a
VZ
13474 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
13475fi
13476
360d6699
VZ
13477if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
13478 cat >> confdefs.h <<\EOF
13479#define wxUSE_TOOLBAR_NATIVE 1
13480EOF
13481
13482fi
13483
10f2d63a
VZ
13484if test "$wxUSE_TOOLTIPS" = "yes"; then
13485 if test "$wxUSE_MOTIF" = 1; then
13486 echo "configure: warning: wxTooltip not supported yet under Motif" 1>&2
13487 else
13488 if test "$wxUSE_WINE" = 1; then
13489 echo "configure: warning: wxTooltip not supported under WINE" 1>&2
13490 else
13491 cat >> confdefs.h <<\EOF
13492#define wxUSE_TOOLTIPS 1
13493EOF
13494
13495 fi
13496 fi
13497fi
13498
13499if test "$wxUSE_TREECTRL" = "yes"; then
13500 if test "$wxUSE_IMAGLIST" = "yes"; then
13501 cat >> confdefs.h <<\EOF
13502#define wxUSE_TREECTRL 1
13503EOF
13504
13505 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
13506 else
13507 echo "configure: warning: wxTreeCtrl requires wxImageList and won't be compiled without it" 1>&2
13508 fi
13509fi
13510
13511
13512
13513if test "$wxUSE_METAFILE" = "yes"; then
13514 cat >> confdefs.h <<\EOF
13515#define wxUSE_METAFILE 1
13516EOF
13517
13518fi
13519
13520if test "$wxUSE_DIRDLG" = "yes"; then
13521 if test "$wxUSE_CONSTRAINTS" != "yes"; then
13522 echo "configure: warning: wxDirDialog requires constraints so it won't be compiled without them" 1>&2
13523 else
13524 if test "$wxUSE_TREECTRL" != "yes"; then
13525 echo "configure: warning: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" 1>&2
13526 else
13527 cat >> confdefs.h <<\EOF
13528#define wxUSE_DIRDLG 1
13529EOF
13530
13531 fi
13532 fi
13533fi
13534
13535if test "$wxUSE_TEXTDLG" = "yes"; then
13536 cat >> confdefs.h <<\EOF
13537#define wxUSE_TEXTDLG 1
13538EOF
13539
13540fi
13541
13542if test "$wxUSE_STARTUP_TIPS" = "yes"; then
13543 if test "$wxUSE_CONSTRAINTS" != "yes"; then
13544 echo "configure: warning: Startup tips requires constraints and won't be compiled without them" 1>&2
13545 else
13546 cat >> confdefs.h <<\EOF
13547#define wxUSE_STARTUP_TIPS 1
13548EOF
13549
13550 fi
13551fi
13552
13553if test "$wxUSE_PROGRESSDLG" = "yes"; then
13554 if test "$wxUSE_CONSTRAINTS" != "yes"; then
13555 echo "configure: warning: wxProgressDialog requires constraints so it won't be compiled without them" 1>&2
13556 else
13557 cat >> confdefs.h <<\EOF
13558#define wxUSE_PROGRESSDLG 1
13559EOF
13560
13561 fi
13562fi
13563
13564if test "$wxUSE_MINIFRAME" = "yes"; then
13565 cat >> confdefs.h <<\EOF
13566#define wxUSE_MINIFRAME 1
13567EOF
13568
13569 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
13570fi
13571
13572if test "$wxUSE_HTML" = "yes"; then
13573 cat >> confdefs.h <<\EOF
13574#define wxUSE_HTML 1
13575EOF
13576
13577 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html"
13578 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS html"
13579fi
13580
13581if test "$wxUSE_VALIDATORS" = "yes"; then
13582 cat >> confdefs.h <<\EOF
13583#define wxUSE_VALIDATORS 1
13584EOF
13585
13586 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
13587fi
13588
13589if test "$wxUSE_GIF" = "yes" ; then
13590 cat >> confdefs.h <<\EOF
13591#define wxUSE_GIF 1
13592EOF
13593
13594fi
13595
13596if test "$wxUSE_PCX" = "yes" ; then
13597 cat >> confdefs.h <<\EOF
13598#define wxUSE_PCX 1
13599EOF
13600
13601fi
13602
13603if test "$wxUSE_PNM" = "yes" ; then
13604 cat >> confdefs.h <<\EOF
13605#define wxUSE_PNM 1
13606EOF
13607
13608fi
13609
13610
aaa37c0d
VZ
13611OSINFO=`uname -s -r -m`
13612OSINFO="\"$OSINFO\""
13613cat >> confdefs.h <<EOF
13614#define WXWIN_OS_DESCRIPTION $OSINFO
13615EOF
13616
13617
13618
bdad4e7e 13619GUILIBS="$GUI_TK_LIBRARY $OPENGL_LINK $TOOLKIT_LINK"
10f2d63a 13620
422107f9 13621EXTRA_LIBS="$LIBS $ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $THREADS_LINK $DMALLOC_LINK $DL_LINK"
10f2d63a 13622if test "$wxUSE_GUI" = "yes"; then
422107f9 13623 EXTRA_LIBS="$EXTRA_LIBS $GUILIBS $PNG_LINK $JPEG_LINK"
10f2d63a
VZ
13624fi
13625
13626LD_LIBS="\${top_builddir}/lib/${WX_LIBRARY_NAME_STATIC} $EXTRA_LIBS"
13627
c7a2bf27 13628INCLUDES="-I. -I\${top_builddir}/include -I\${top_srcdir}/include $ZLIB_INCLUDE $PNG_INCLUDE $JPEG_INCLUDE $TIFF_INCLUDE $TOOLKIT_INCLUDE"
10f2d63a
VZ
13629
13630if test "$GXX" = yes ; then
13631 CXXWARNINGS="-Wall"
d6a55c4b 13632 fi
10f2d63a
VZ
13633EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE $INCLUDES"
13634
13635CFLAGS=`echo $CFLAGS $EXTRA_CFLAGS | sed 's/ \\+/ /g'`
13636CXXFLAGS=`echo $CXXFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \+/ /g'`
13637
e694c22c
VZ
13638LDFLAGS="$LDFLAGS $PROFILE"
13639
10f2d63a
VZ
13640if test "$wxUSE_GUI" = "yes"; then
13641
bdad4e7e 13642 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS controls dialogs dragimag drawing dynamic \
bc9027cc 13643 font fractal image menu minimal richedit"
b12915c1 13644
88d3a15c 13645 CPPFLAGS="$CPPFLAGS \$(EXTRADEFS) \$(APPEXTRADEFS)"
10f2d63a
VZ
13646else
13647 SAMPLES_SUBDIRS=""
13648fi
13649
ec14dd32
VZ
13650SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
13651
13652
13653
10f2d63a
VZ
13654
13655
13656
13657
13658
13659
13660
13661
13662
13663
13664
13665
13666
13667
13668
13669
13670
13671
13672
13673
13674
13675
13676
13677
13678
13679
13680
13681
13682
13683
13684
13685
13686
13687
13688
13689
13690
13691
13692
13693
13694
13695
13696
13697
13698
13699
13700
13701
13702
13703
13704
13705
1d62a8b4 13706
bdad4e7e
RR
13707
13708
13709
13710
13711
13712
13713
13714
13715
13716
e694c22c 13717
b12915c1 13718
2224580a
VZ
13719
13720
13721
13722
dad6c0ea
VZ
13723
13724
caa2c79b 13725
10f2d63a
VZ
13726
13727
13728echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
c661ecca 13729echo "configure:13730: checking whether ${MAKE-make} sets \${MAKE}" >&5
10f2d63a
VZ
13730set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
13731if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
13732 echo $ac_n "(cached) $ac_c" 1>&6
13733else
13734 cat > conftestmake <<\EOF
13735all:
13736 @echo 'ac_maketemp="${MAKE}"'
13737EOF
13738# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
13739eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
13740if test -n "$ac_maketemp"; then
13741 eval ac_cv_prog_make_${ac_make}_set=yes
13742else
13743 eval ac_cv_prog_make_${ac_make}_set=no
13744fi
13745rm -f conftestmake
13746fi
13747if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
13748 echo "$ac_t""yes" 1>&6
13749 SET_MAKE=
13750else
13751 echo "$ac_t""no" 1>&6
13752 SET_MAKE="MAKE=${MAKE-make}"
13753fi
13754
13755
00cf1208
RR
13756if test -d include; then
13757 if test -d include/wx; then
13758 if test -d include/wx/${TOOLKIT_DIR}; then
13759 if test -f include/wx/${TOOLKIT_DIR}/setup.h; then
13760 mv -f include/wx/${TOOLKIT_DIR}/setup.h setup.h
13761 fi
13762 fi
13763 fi
13764fi
13765
10f2d63a
VZ
13766
13767
2224580a 13768if test "$wxUSE_GUI" = "yes"; then
ec90f5e5 13769 wx_cv_path_samplesubdirs=$SAMPLES_SUBDIRS
2224580a
VZ
13770 subdirs="demos samples utils"
13771
13772fi
10f2d63a
VZ
13773
13774trap '' 1 2 15
13775cat > confcache <<\EOF
13776# This file is a shell script that caches the results of configure
13777# tests run on this system so they can be shared between configure
13778# scripts and configure runs. It is not useful on other systems.
13779# If it contains results you don't want to keep, you may remove or edit it.
13780#
13781# By default, configure uses ./config.cache as the cache file,
13782# creating it if it does not exist already. You can give configure
13783# the --cache-file=FILE option to use a different cache file; that is
13784# what configure does when it calls configure scripts in
13785# subdirectories, so they share the cache.
13786# Giving --cache-file=/dev/null disables caching, for debugging configure.
13787# config.status only pays attention to the cache file if you give it the
13788# --recheck option to rerun configure.
13789#
13790EOF
13791# The following way of writing the cache mishandles newlines in values,
13792# but we know of no workaround that is simple, portable, and efficient.
13793# So, don't put newlines in cache variables' values.
13794# Ultrix sh set writes to stderr and can't be redirected directly,
13795# and sets the high bit in the cache file unless we assign to the vars.
13796(set) 2>&1 |
13797 case `(ac_space=' '; set | grep ac_space) 2>&1` in
13798 *ac_space=\ *)
13799 # `set' does not quote correctly, so add quotes (double-quote substitution
13800 # turns \\\\ into \\, and sed turns \\ into \).
13801 sed -n \
13802 -e "s/'/'\\\\''/g" \
13803 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
13804 ;;
13805 *)
13806 # `set' quotes correctly as required by POSIX, so do not add quotes.
13807 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
13808 ;;
13809 esac >> confcache
13810if cmp -s $cache_file confcache; then
13811 :
13812else
13813 if test -w $cache_file; then
13814 echo "updating cache $cache_file"
13815 cat confcache > $cache_file
13816 else
13817 echo "not updating unwritable cache $cache_file"
13818 fi
13819fi
13820rm -f confcache
13821
13822trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
13823
13824test "x$prefix" = xNONE && prefix=$ac_default_prefix
13825# Let make expand exec_prefix.
13826test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13827
13828# Any assignment to VPATH causes Sun make to only execute
13829# the first set of double-colon rules, so remove it if not needed.
13830# If there is a colon in the path, we need to keep it.
13831if test "x$srcdir" = x.; then
13832 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
13833fi
13834
13835trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
13836
13837DEFS=-DHAVE_CONFIG_H
13838
13839# Without the "./", some shells look in PATH for config.status.
13840: ${CONFIG_STATUS=./config.status}
13841
13842echo creating $CONFIG_STATUS
13843rm -f $CONFIG_STATUS
13844cat > $CONFIG_STATUS <<EOF
13845#! /bin/sh
13846# Generated automatically by configure.
13847# Run this file to recreate the current configuration.
13848# This directory was configured as follows,
13849# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13850#
13851# $0 $ac_configure_args
13852#
13853# Compiler output produced by configure, useful for debugging
13854# configure, is in ./config.log if it exists.
13855
13856ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
13857for ac_option
13858do
13859 case "\$ac_option" in
13860 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13861 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
13862 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
13863 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
c661ecca 13864 echo "$CONFIG_STATUS generated by autoconf version 2.14"
10f2d63a
VZ
13865 exit 0 ;;
13866 -help | --help | --hel | --he | --h)
13867 echo "\$ac_cs_usage"; exit 0 ;;
13868 *) echo "\$ac_cs_usage"; exit 1 ;;
13869 esac
13870done
13871
13872ac_given_srcdir=$srcdir
13873ac_given_INSTALL="$INSTALL"
13874
13875trap 'rm -fr `echo "
13876 wx-config
13877 src/make.env
13878 src/makeprog.env
13879 src/makelib.env
13880 Makefile
10f2d63a
VZ
13881 setup.h:setup.h.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
13882EOF
13883cat >> $CONFIG_STATUS <<EOF
13884
13885# Protect against being on the right side of a sed subst in config.status.
13886sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
13887 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
13888$ac_vpsub
13889$extrasub
13890s%@SHELL@%$SHELL%g
13891s%@CFLAGS@%$CFLAGS%g
13892s%@CPPFLAGS@%$CPPFLAGS%g
13893s%@CXXFLAGS@%$CXXFLAGS%g
13894s%@FFLAGS@%$FFLAGS%g
13895s%@DEFS@%$DEFS%g
13896s%@LDFLAGS@%$LDFLAGS%g
13897s%@LIBS@%$LIBS%g
13898s%@exec_prefix@%$exec_prefix%g
13899s%@prefix@%$prefix%g
13900s%@program_transform_name@%$program_transform_name%g
13901s%@bindir@%$bindir%g
13902s%@sbindir@%$sbindir%g
13903s%@libexecdir@%$libexecdir%g
13904s%@datadir@%$datadir%g
13905s%@sysconfdir@%$sysconfdir%g
13906s%@sharedstatedir@%$sharedstatedir%g
13907s%@localstatedir@%$localstatedir%g
13908s%@libdir@%$libdir%g
13909s%@includedir@%$includedir%g
13910s%@oldincludedir@%$oldincludedir%g
13911s%@infodir@%$infodir%g
13912s%@mandir@%$mandir%g
7c66a493
VZ
13913s%@host@%$host%g
13914s%@host_alias@%$host_alias%g
13915s%@host_cpu@%$host_cpu%g
13916s%@host_vendor@%$host_vendor%g
13917s%@host_os@%$host_os%g
13918s%@target@%$target%g
13919s%@target_alias@%$target_alias%g
13920s%@target_cpu@%$target_cpu%g
13921s%@target_vendor@%$target_vendor%g
13922s%@target_os@%$target_os%g
13923s%@build@%$build%g
13924s%@build_alias@%$build_alias%g
13925s%@build_cpu@%$build_cpu%g
13926s%@build_vendor@%$build_vendor%g
13927s%@build_os@%$build_os%g
10f2d63a
VZ
13928s%@CC@%$CC%g
13929s%@CPP@%$CPP%g
13930s%@CXX@%$CXX%g
13931s%@CXXCPP@%$CXXCPP%g
13932s%@RANLIB@%$RANLIB%g
13933s%@AR@%$AR%g
13934s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
13935s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
13936s%@INSTALL_DATA@%$INSTALL_DATA%g
13937s%@STRIP@%$STRIP%g
13938s%@YACC@%$YACC%g
13939s%@LEX@%$LEX%g
13940s%@LEXLIB@%$LEXLIB%g
13941s%@LN_S@%$LN_S%g
13942s%@GTK_CONFIG@%$GTK_CONFIG%g
13943s%@GTK_CFLAGS@%$GTK_CFLAGS%g
13944s%@GTK_LIBS@%$GTK_LIBS%g
ab9b9eab
VZ
13945s%@X_CFLAGS@%$X_CFLAGS%g
13946s%@X_PRE_LIBS@%$X_PRE_LIBS%g
13947s%@X_LIBS@%$X_LIBS%g
13948s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
ec14dd32
VZ
13949s%@LEX_STEM@%$LEX_STEM%g
13950s%@PATH_IFS@%$PATH_IFS%g
10f2d63a
VZ
13951s%@WX_MAJOR_VERSION_NUMBER@%$WX_MAJOR_VERSION_NUMBER%g
13952s%@WX_MINOR_VERSION_NUMBER@%$WX_MINOR_VERSION_NUMBER%g
13953s%@WX_RELEASE_NUMBER@%$WX_RELEASE_NUMBER%g
13954s%@WX_LIBRARY_NAME@%$WX_LIBRARY_NAME%g
13955s%@WX_LIBRARY_NAME_STATIC@%$WX_LIBRARY_NAME_STATIC%g
13956s%@WX_LIBRARY_NAME_SHARED@%$WX_LIBRARY_NAME_SHARED%g
13957s%@WX_LIBRARY@%$WX_LIBRARY%g
13958s%@WX_TARGET_LIBRARY@%$WX_TARGET_LIBRARY%g
13959s%@WX_LIBRARY_LINK1@%$WX_LIBRARY_LINK1%g
13960s%@WX_LIBRARY_LINK2@%$WX_LIBRARY_LINK2%g
13961s%@WX_LIBRARY_LINK3@%$WX_LIBRARY_LINK3%g
13962s%@PROGRAM_EXT@%$PROGRAM_EXT%g
bdad4e7e
RR
13963s%@WX_LIBRARY_NAME_GL@%$WX_LIBRARY_NAME_GL%g
13964s%@WX_LIBRARY_NAME_STATIC_GL@%$WX_LIBRARY_NAME_STATIC_GL%g
13965s%@WX_LIBRARY_NAME_SHARED_GL@%$WX_LIBRARY_NAME_SHARED_GL%g
13966s%@WX_LIBRARY_GL@%$WX_LIBRARY_GL%g
13967s%@WX_TARGET_LIBRARY_GL@%$WX_TARGET_LIBRARY_GL%g
13968s%@WX_LIBRARY_LINK1_GL@%$WX_LIBRARY_LINK1_GL%g
13969s%@WX_LIBRARY_LINK2_GL@%$WX_LIBRARY_LINK2_GL%g
13970s%@WX_LIBRARY_LINK3_GL@%$WX_LIBRARY_LINK3_GL%g
10f2d63a
VZ
13971s%@WX_ALL@%$WX_ALL%g
13972s%@WX_ALL_INSTALLED@%$WX_ALL_INSTALLED%g
13973s%@SHARED_LD@%$SHARED_LD%g
13974s%@PIC_FLAG@%$PIC_FLAG%g
13975s%@DEP_INFO_FLAGS@%$DEP_INFO_FLAGS%g
caa2c79b 13976s%@CODE_GEN_FLAGS@%$CODE_GEN_FLAGS%g
1d62a8b4 13977s%@BURNT_LIBRARY_NAME@%$BURNT_LIBRARY_NAME%g
bdad4e7e 13978s%@BURNT_LIBRARY_NAME_GL@%$BURNT_LIBRARY_NAME_GL%g
10f2d63a 13979s%@WXDEBUG_DEFINE@%$WXDEBUG_DEFINE%g
dad6c0ea
VZ
13980s%@USE_GUI@%$USE_GUI%g
13981s%@AFMINSTALL@%$AFMINSTALL%g
10f2d63a
VZ
13982s%@TOOLKIT@%$TOOLKIT%g
13983s%@TOOLKIT_DEF@%$TOOLKIT_DEF%g
13984s%@TOOLKIT_DIR@%$TOOLKIT_DIR%g
13985s%@TOOLKIT_INCLUDE@%$TOOLKIT_INCLUDE%g
13986s%@GUIHEADERS@%$GUIHEADERS%g
13987s%@GUIOBJS@%$GUIOBJS%g
13988s%@COMMONOBJS@%$COMMONOBJS%g
13989s%@GENERICOBJS@%$GENERICOBJS%g
13990s%@GUIDEPS@%$GUIDEPS%g
13991s%@COMMONDEPS@%$COMMONDEPS%g
13992s%@GENERICDEPS@%$GENERICDEPS%g
13993s%@IODBCOBJS@%$IODBCOBJS%g
13994s%@UNIXOBJS@%$UNIXOBJS%g
13995s%@UNIXDEPS@%$UNIXDEPS%g
13996s%@ALL_OBJECTS@%$ALL_OBJECTS%g
13997s%@ALL_DEPFILES@%$ALL_DEPFILES%g
10f2d63a 13998s%@GUIDIST@%$GUIDIST%g
2224580a
VZ
13999s%@PORT_FILES@%$PORT_FILES%g
14000s%@DISTDIR@%$DISTDIR%g
14001s%@RPM_SPEC@%$RPM_SPEC%g
14002s%@RPM_FILES@%$RPM_FILES%g
10f2d63a
VZ
14003s%@SRC_SUBDIRS@%$SRC_SUBDIRS%g
14004s%@INCLUDE_SUBDIRS@%$INCLUDE_SUBDIRS%g
14005s%@UTILS_SUBDIRS@%$UTILS_SUBDIRS%g
14006s%@DOCS_SUBDIRS@%$DOCS_SUBDIRS%g
14007s%@SAMPLES_SUBDIRS@%$SAMPLES_SUBDIRS%g
14008s%@USER_SUBDIRS@%$USER_SUBDIRS%g
14009s%@EXTRA_LIBS@%$EXTRA_LIBS%g
b12915c1 14010s%@EXTRADEFS@%$EXTRADEFS%g
10f2d63a
VZ
14011s%@LD_LIBS@%$LD_LIBS%g
14012s%@SET_MAKE@%$SET_MAKE%g
2224580a 14013s%@subdirs@%$subdirs%g
10f2d63a
VZ
14014
14015CEOF
14016EOF
14017
14018cat >> $CONFIG_STATUS <<\EOF
14019
14020# Split the substitutions into bite-sized pieces for seds with
14021# small command number limits, like on Digital OSF/1 and HP-UX.
14022ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
14023ac_file=1 # Number of current file.
14024ac_beg=1 # First line for current file.
14025ac_end=$ac_max_sed_cmds # Line after last line for current file.
14026ac_more_lines=:
14027ac_sed_cmds=""
14028while $ac_more_lines; do
14029 if test $ac_beg -gt 1; then
14030 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
14031 else
14032 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
14033 fi
14034 if test ! -s conftest.s$ac_file; then
14035 ac_more_lines=false
14036 rm -f conftest.s$ac_file
14037 else
14038 if test -z "$ac_sed_cmds"; then
14039 ac_sed_cmds="sed -f conftest.s$ac_file"
14040 else
14041 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
14042 fi
14043 ac_file=`expr $ac_file + 1`
14044 ac_beg=$ac_end
14045 ac_end=`expr $ac_end + $ac_max_sed_cmds`
14046 fi
14047done
14048if test -z "$ac_sed_cmds"; then
14049 ac_sed_cmds=cat
14050fi
14051EOF
14052
14053cat >> $CONFIG_STATUS <<EOF
14054
14055CONFIG_FILES=\${CONFIG_FILES-"wx-config
14056 src/make.env
14057 src/makeprog.env
14058 src/makelib.env
14059 Makefile
10f2d63a
VZ
14060 "}
14061EOF
14062cat >> $CONFIG_STATUS <<\EOF
14063for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
14064 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
14065 case "$ac_file" in
14066 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
14067 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
14068 *) ac_file_in="${ac_file}.in" ;;
14069 esac
14070
14071 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
14072
14073 # Remove last slash and all that follows it. Not all systems have dirname.
14074 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
14075 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
14076 # The file is in a subdirectory.
14077 test ! -d "$ac_dir" && mkdir "$ac_dir"
14078 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
14079 # A "../" for each directory in $ac_dir_suffix.
14080 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
14081 else
14082 ac_dir_suffix= ac_dots=
14083 fi
14084
14085 case "$ac_given_srcdir" in
14086 .) srcdir=.
14087 if test -z "$ac_dots"; then top_srcdir=.
14088 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
14089 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
14090 *) # Relative path.
14091 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
14092 top_srcdir="$ac_dots$ac_given_srcdir" ;;
14093 esac
14094
14095 case "$ac_given_INSTALL" in
14096 [/$]*) INSTALL="$ac_given_INSTALL" ;;
14097 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
14098 esac
14099
14100 echo creating "$ac_file"
14101 rm -f "$ac_file"
14102 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
14103 case "$ac_file" in
14104 *Makefile*) ac_comsub="1i\\
14105# $configure_input" ;;
14106 *) ac_comsub= ;;
14107 esac
14108
14109 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
14110 sed -e "$ac_comsub
14111s%@configure_input@%$configure_input%g
14112s%@srcdir@%$srcdir%g
14113s%@top_srcdir@%$top_srcdir%g
14114s%@INSTALL@%$INSTALL%g
14115" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
14116fi; done
14117rm -f conftest.s*
14118
14119# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
14120# NAME is the cpp macro being defined and VALUE is the value it is being given.
14121#
14122# ac_d sets the value in "#define NAME VALUE" lines.
14123ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
14124ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
14125ac_dC='\3'
14126ac_dD='%g'
14127# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
14128ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
14129ac_uB='\([ ]\)%\1#\2define\3'
14130ac_uC=' '
14131ac_uD='\4%g'
14132# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
14133ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
14134ac_eB='$%\1#\2define\3'
14135ac_eC=' '
14136ac_eD='%g'
14137
14138if test "${CONFIG_HEADERS+set}" != set; then
14139EOF
14140cat >> $CONFIG_STATUS <<EOF
14141 CONFIG_HEADERS="setup.h:setup.h.in"
14142EOF
14143cat >> $CONFIG_STATUS <<\EOF
14144fi
14145for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
14146 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
14147 case "$ac_file" in
14148 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
14149 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
14150 *) ac_file_in="${ac_file}.in" ;;
14151 esac
14152
14153 echo creating $ac_file
14154
14155 rm -f conftest.frag conftest.in conftest.out
14156 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
14157 cat $ac_file_inputs > conftest.in
14158
14159EOF
14160
14161# Transform confdefs.h into a sed script conftest.vals that substitutes
14162# the proper values into config.h.in to produce config.h. And first:
14163# Protect against being on the right side of a sed subst in config.status.
14164# Protect against being in an unquoted here document in config.status.
14165rm -f conftest.vals
14166cat > conftest.hdr <<\EOF
14167s/[\\&%]/\\&/g
14168s%[\\$`]%\\&%g
14169s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
14170s%ac_d%ac_u%gp
14171s%ac_u%ac_e%gp
14172EOF
14173sed -n -f conftest.hdr confdefs.h > conftest.vals
14174rm -f conftest.hdr
14175
14176# This sed command replaces #undef with comments. This is necessary, for
14177# example, in the case of _POSIX_SOURCE, which is predefined and required
14178# on some systems where configure will not decide to define it.
14179cat >> conftest.vals <<\EOF
14180s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
14181EOF
14182
14183# Break up conftest.vals because some shells have a limit on
14184# the size of here documents, and old seds have small limits too.
14185
14186rm -f conftest.tail
14187while :
14188do
14189 ac_lines=`grep -c . conftest.vals`
14190 # grep -c gives empty output for an empty file on some AIX systems.
14191 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
14192 # Write a limited-size here document to conftest.frag.
14193 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
14194 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
14195 echo 'CEOF
14196 sed -f conftest.frag conftest.in > conftest.out
14197 rm -f conftest.in
14198 mv conftest.out conftest.in
14199' >> $CONFIG_STATUS
14200 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
14201 rm -f conftest.vals
14202 mv conftest.tail conftest.vals
14203done
14204rm -f conftest.vals
14205
14206cat >> $CONFIG_STATUS <<\EOF
14207 rm -f conftest.frag conftest.h
14208 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
14209 cat conftest.in >> conftest.h
14210 rm -f conftest.in
14211 if cmp -s $ac_file conftest.h 2>/dev/null; then
14212 echo "$ac_file is unchanged"
14213 rm -f conftest.h
14214 else
14215 # Remove last slash and all that follows it. Not all systems have dirname.
14216 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
14217 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
14218 # The file is in a subdirectory.
14219 test ! -d "$ac_dir" && mkdir "$ac_dir"
14220 fi
14221 rm -f $ac_file
14222 mv conftest.h $ac_file
14223 fi
14224fi; done
14225
14226EOF
14227cat >> $CONFIG_STATUS <<EOF
14228
14229 TOOLKIT_DIR="${TOOLKIT_DIR}"
07eb77a6 14230 LN_S="${LN_S}"
10f2d63a
VZ
14231
14232
14233EOF
14234cat >> $CONFIG_STATUS <<\EOF
14235
14236 chmod +x wx-config
07eb77a6
RL
14237 mv wx-config wx${TOOLKIT_DIR}-config
14238 ${LN_S} wx${TOOLKIT_DIR}-config wx-config
00cf1208
RR
14239
14240
14241 if test ! -d lib; then
14242 mkdir lib
14243 fi
14244 if test ! -d lib/wx; then
14245 mkdir lib/wx
14246 fi
14247 if test ! -d lib/wx/include; then
14248 mkdir lib/wx/include
14249 fi
14250 if test ! -d lib/wx/include/wx; then
14251 mkdir lib/wx/include/wx
14252 fi
14253 if test ! -d lib/wx/include/wx/${TOOLKIT_DIR}; then
14254 mkdir lib/wx/include/wx/${TOOLKIT_DIR}
14255 fi
14256 if test -f setup.h; then
14257 cp -f setup.h lib/wx/include/wx/${TOOLKIT_DIR}/setup.h
14258 fi
07eb77a6 14259
00cf1208 14260
10f2d63a
VZ
14261 if test ! -d include; then
14262 mkdir include
14263 fi
14264 if test ! -d include/wx; then
14265 mkdir include/wx
14266 fi
14267 if test ! -d include/wx/${TOOLKIT_DIR}; then
14268 mkdir include/wx/${TOOLKIT_DIR}
14269 fi
afc31813
VZ
14270 if test -f setup.h; then
14271 mv -f setup.h include/wx/${TOOLKIT_DIR}/setup.h
14272 fi
00cf1208 14273
10f2d63a
VZ
14274
14275exit 0
14276EOF
14277chmod +x $CONFIG_STATUS
14278rm -fr confdefs* $ac_clean_files
14279test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
14280
2224580a
VZ
14281if test "$no_recursion" != yes; then
14282
14283 # Remove --cache-file and --srcdir arguments so they do not pile up.
14284 ac_sub_configure_args=
14285 ac_prev=
14286 for ac_arg in $ac_configure_args; do
14287 if test -n "$ac_prev"; then
14288 ac_prev=
14289 continue
14290 fi
14291 case "$ac_arg" in
14292 -cache-file | --cache-file | --cache-fil | --cache-fi \
14293 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
14294 ac_prev=cache_file ;;
14295 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
14296 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
14297 ;;
14298 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
14299 ac_prev=srcdir ;;
14300 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
14301 ;;
14302 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
14303 esac
14304 done
14305
14306 for ac_config_dir in demos samples utils; do
14307
14308 # Do not complain, so a configure script can configure whichever
14309 # parts of a large source tree are present.
14310 if test ! -d $srcdir/$ac_config_dir; then
14311 continue
14312 fi
14313
14314 echo configuring in $ac_config_dir
14315
14316 case "$srcdir" in
14317 .) ;;
14318 *)
14319 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
14320 else
14321 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
14322 fi
14323 ;;
14324 esac
14325
14326 ac_popdir=`pwd`
14327 cd $ac_config_dir
14328
14329 # A "../" for each directory in /$ac_config_dir.
14330 ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
14331
14332 case "$srcdir" in
14333 .) # No --srcdir option. We are building in place.
14334 ac_sub_srcdir=$srcdir ;;
14335 /*) # Absolute path.
14336 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
14337 *) # Relative path.
14338 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
14339 esac
14340
14341 # Check for guested configure; otherwise get Cygnus style configure.
14342 if test -f $ac_sub_srcdir/configure; then
14343 ac_sub_configure=$ac_sub_srcdir/configure
14344 elif test -f $ac_sub_srcdir/configure.in; then
14345 ac_sub_configure=$ac_configure
14346 else
14347 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
14348 ac_sub_configure=
14349 fi
14350
14351 # The recursion is here.
14352 if test -n "$ac_sub_configure"; then
14353
14354 # Make the cache file name correct relative to the subdirectory.
14355 case "$cache_file" in
14356 /*) ac_sub_cache_file=$cache_file ;;
14357 *) # Relative path.
14358 ac_sub_cache_file="$ac_dots$cache_file" ;;
14359 esac
14360 case "$ac_given_INSTALL" in
14361 [/$]*) INSTALL="$ac_given_INSTALL" ;;
14362 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
14363 esac
14364
14365 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
14366 # The eval makes quoting arguments work.
14367 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
14368 then :
14369 else
14370 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
14371 fi
14372 fi
14373
14374 cd $ac_popdir
14375 done
14376fi
14377
10f2d63a 14378