]> git.saurik.com Git - wxWidgets.git/blame - configure
APPEXTRALIBS added to LDLIBS
[wxWidgets.git] / configure
CommitLineData
10f2d63a
VZ
1#! /bin/sh
2
3# From configure.in Id: configure.in
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
10f2d63a 36
422107f9
VZ
37
38
10f2d63a
VZ
39
40
41
42# Guess values for system-dependent variables and create Makefiles.
e8482f24 43# Generated automatically using autoconf version 2.13
10f2d63a
VZ
44# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
45#
46# This configure script is free software; the Free Software Foundation
47# gives unlimited permission to copy, distribute and modify it.
48
49# Defaults:
50ac_help=
51ac_default_prefix=/usr/local
52# Any additions from configure.in:
53ac_help="$ac_help
54--enable-gui use GUI classes"
55ac_help="$ac_help
56 --with-gtk use GTK+"
57ac_help="$ac_help
58 --with-motif use Motif/Lesstif"
59ac_help="$ac_help
60 --with-wine use WINE"
61ac_help="$ac_help
62 --with-cygwin use Cygwin for MS-Windows"
63ac_help="$ac_help
64 --with-mingw use GCC Minimal MS-Windows"
e07802fc
VZ
65ac_help="$ac_help
66 --with-pm use OS/2 Presentation Manager"
10f2d63a
VZ
67ac_help="$ac_help
68 --with-gtk-prefix=PFX Prefix where GTK is installed"
69ac_help="$ac_help
70 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed"
71ac_help="$ac_help
10f2d63a
VZ
72--with-libpng use libpng (PNG image format)"
73ac_help="$ac_help
74--with-libjpeg use libjpeg (JPEG file format)"
75ac_help="$ac_help
c7a2bf27
RR
76--with-libtiff use libtiff (TIFF file format)"
77ac_help="$ac_help
10f2d63a
VZ
78--with-opengl use OpenGL (or Mesa)"
79ac_help="$ac_help
b12915c1
VZ
80--with-dmalloc use dmalloc library (www.letters.com/dmalloc)"
81ac_help="$ac_help
82--with-zlib use zlib for LZW compression"
83ac_help="$ac_help
10f2d63a
VZ
84--with-odbc use the IODBC and wxODBC classes"
85ac_help="$ac_help
86--enable-shared create shared library code"
87ac_help="$ac_help
00cf1208
RR
88--enable-burnt_name create set name in shared library "
89ac_help="$ac_help
10f2d63a
VZ
90--enable-optimise create optimised code"
91ac_help="$ac_help
92--enable-debug same as debug_flag and debug_info"
93ac_help="$ac_help
94--enable-debug_flag set __WXDEBUG__ flag (recommended for developers!)"
95ac_help="$ac_help
96--enable-debug_info create code with debugging information"
97ac_help="$ac_help
98--enable-debug_gdb create code with extra GDB debugging information"
99ac_help="$ac_help
100--enable-debug_cntxt use wxDebugContext"
101ac_help="$ac_help
102--enable-mem_tracing create code with memory tracing"
103ac_help="$ac_help
104--enable-profile create code with profiling information"
105ac_help="$ac_help
106--enable-no_rtti create code without RTTI information"
107ac_help="$ac_help
108--enable-no_exceptions create code without exceptions information"
109ac_help="$ac_help
110--enable-permissive compile code disregarding strict ANSI"
111ac_help="$ac_help
112--enable-no_deps create code without dependency information"
113ac_help="$ac_help
114--enable-intl use internationalization system"
115ac_help="$ac_help
116--enable-config use wxConfig (and derived) classes"
117ac_help="$ac_help
118--enable-sockets use socket/network classes"
119ac_help="$ac_help
120--enable-dialupman use dialup network classes"
121ac_help="$ac_help
122--enable-ipc use interprocess communication (wxSocket etc.)"
123ac_help="$ac_help
124--enable-apple_ieee use the Apple IEEE codec"
125ac_help="$ac_help
126--enable-timedate use date/time classes"
127ac_help="$ac_help
128--enable-wave use wxWave class"
129ac_help="$ac_help
130--enable-fraction use wxFraction class"
131ac_help="$ac_help
132--enable-dynlib use wxLibrary class for DLL loading"
133ac_help="$ac_help
134--enable-longlong use wxLongLong class"
135ac_help="$ac_help
136--enable-log use logging system"
137ac_help="$ac_help
138--enable-streams use wxStream etc classes"
139ac_help="$ac_help
140--enable-file use wxFile classes"
141ac_help="$ac_help
142--enable-textfile use wxTextFile classes"
143ac_help="$ac_help
144--enable-unicode compile wxString with Unicode support"
145ac_help="$ac_help
146--enable-wcsrtombs use wcsrtombs instead of buggy (GNU libc1/Linux libc5) wcstombs"
147ac_help="$ac_help
148--enable-wxprintfv use wxWindows implementation of vprintf()"
149ac_help="$ac_help
150--enable-joystick compile in joystick support (Linux only)"
151ac_help="$ac_help
152--enable-std_iostreams use standard C++ stream classes"
153ac_help="$ac_help
24528b0c
VS
154--enable-filesystem use virtual file systems classes"
155ac_help="$ac_help
10f2d63a
VZ
156--enable-fs_inet use virtual HTTP/FTP filesystems"
157ac_help="$ac_help
158--enable-fs_zip use virtual ZIP filesystems"
159ac_help="$ac_help
160--enable-zipstream use wxZipInputStream"
161ac_help="$ac_help
162--enable-threads use threads"
163ac_help="$ac_help
164--enable-serial use class serialization"
165ac_help="$ac_help
166--enable-docview use document view architecture"
167ac_help="$ac_help
168--enable-help use help (using external browser at present)"
169ac_help="$ac_help
170--enable-constraints use layout-constraints system"
171ac_help="$ac_help
172--enable-printarch use printing architecture"
173ac_help="$ac_help
174--enable-mdi use multiple document interface architecture"
175ac_help="$ac_help
176--enable-postscript use wxPostscriptDC device context (default for gtk+)"
177ac_help="$ac_help
178--enable-prologio use Prolog IO library"
179ac_help="$ac_help
180--enable-resources use wxWindows resources"
181ac_help="$ac_help
182--enable-xresources use X resources for save (default for gtk+)"
183ac_help="$ac_help
184--enable-clipboard use wxClipboard classes"
185ac_help="$ac_help
186--enable-dnd use Drag'n'Drop classes"
187ac_help="$ac_help
188--enable-wxtree make wxTree library"
189ac_help="$ac_help
190--enable-controls use all usual controls"
191ac_help="$ac_help
192--enable-accel use accelerators"
193ac_help="$ac_help
194--enable-caret use wxCaret class"
195ac_help="$ac_help
196--enable-bmpbutton use wxBitmapButton class"
197ac_help="$ac_help
198--enable-checkbox use wxCheckBox class"
199ac_help="$ac_help
200--enable-checklst use wxCheckListBox (listbox with checkboxes) class"
201ac_help="$ac_help
202--enable-choice use wxChoice class"
203ac_help="$ac_help
204--enable-combobox use wxComboBox classes"
205ac_help="$ac_help
206--enable-gauge use wxGauge class"
207ac_help="$ac_help
208--enable-grid use wxGrid class"
209ac_help="$ac_help
210--enable-newgrid use new wxGrid class"
211ac_help="$ac_help
212--enable-imaglist use wxImageList class"
213ac_help="$ac_help
214--enable-listbox use wxListBox class"
215ac_help="$ac_help
216--enable-listctrl use wxListCtrl class"
217ac_help="$ac_help
218--enable-notebook use wxNotebook class"
219ac_help="$ac_help
220--enable-radiobox use wxRadioBox class"
221ac_help="$ac_help
222--enable-radiobtn use wxRadioButton class"
223ac_help="$ac_help
224--enable-sash use wxSashWindow class"
225ac_help="$ac_help
226--enable-scrollbar use wxScrollBar class and scrollable windows"
227ac_help="$ac_help
228--enable-slider use wxSlider class"
229ac_help="$ac_help
230--enable-spinbtn use wxSpinButton class"
231ac_help="$ac_help
56cfaa52
RR
232--enable-spinctrl use wxSpinCtrl class"
233ac_help="$ac_help
10f2d63a
VZ
234--enable-splitter use wxSplitterWindow class"
235ac_help="$ac_help
236--enable-statbmp use wxStaticBitmap class"
237ac_help="$ac_help
238--enable-statbox use wxStaticBox class"
239ac_help="$ac_help
240--enable-statline use wxStaticLine class"
241ac_help="$ac_help
242--enable-statusbar use wxStatusBar class"
243ac_help="$ac_help
244--enable-tabdialog use wxTabControl class"
245ac_help="$ac_help
246--enable-toolbar use wxToolBar class"
247ac_help="$ac_help
360d6699
VZ
248--enable-tbarnative use native wxToolBar class"
249ac_help="$ac_help
250--enable-tbarsmpl use wxToolBarSimple class"
251ac_help="$ac_help
10f2d63a
VZ
252--enable-treectrl use wxTreeCtrl class"
253ac_help="$ac_help
254--enable-commondlg use common dialogs (wxDirDialog, wxProgressDialog, wxTextDialog, ...)"
255ac_help="$ac_help
256--enable-dirdlg use wxDirDialog"
257ac_help="$ac_help
258--enable-textdlg use wxTextDialog"
259ac_help="$ac_help
260--enable-tipdlg use startup tips"
261ac_help="$ac_help
262--enable-progressdlg use wxProgressDialog"
263ac_help="$ac_help
264--enable-miniframe use wxMiniFrame class"
265ac_help="$ac_help
266--enable-html use wxHTML sub-library"
267ac_help="$ac_help
268--enable-tooltips use wxToolTip class"
269ac_help="$ac_help
270--enable-splines use spline drawing code"
271ac_help="$ac_help
272--enable-validators use wxValidator and derived classes"
273ac_help="$ac_help
274--enable-busyinfo use wxBusyInfo"
275ac_help="$ac_help
9b33fe02
VZ
276--enable-plot use wxPlot"
277ac_help="$ac_help
10f2d63a
VZ
278--enable-gif use gif images (GIF file format)"
279ac_help="$ac_help
280--enable-pcx use pcx images (PCX file format)"
281ac_help="$ac_help
282--enable-pnm use pnm images (PNM file format)"
ab9b9eab
VZ
283ac_help="$ac_help
284 --with-x use the X Window System"
10f2d63a
VZ
285
286# Initialize some variables set by options.
287# The variables have the same names as the options, with
288# dashes changed to underlines.
289build=NONE
290cache_file=./config.cache
291exec_prefix=NONE
292host=NONE
293no_create=
294nonopt=NONE
295no_recursion=
296prefix=NONE
297program_prefix=NONE
298program_suffix=NONE
299program_transform_name=s,x,x,
300silent=
301site=
302srcdir=
303target=NONE
304verbose=
305x_includes=NONE
306x_libraries=NONE
307bindir='${exec_prefix}/bin'
308sbindir='${exec_prefix}/sbin'
309libexecdir='${exec_prefix}/libexec'
310datadir='${prefix}/share'
311sysconfdir='${prefix}/etc'
312sharedstatedir='${prefix}/com'
313localstatedir='${prefix}/var'
314libdir='${exec_prefix}/lib'
315includedir='${prefix}/include'
316oldincludedir='/usr/include'
317infodir='${prefix}/info'
318mandir='${prefix}/man'
319
320# Initialize some other variables.
321subdirs=
322MFLAGS= MAKEFLAGS=
323SHELL=${CONFIG_SHELL-/bin/sh}
324# Maximum number of lines to put in a shell here document.
325ac_max_here_lines=12
326
327ac_prev=
328for ac_option
329do
330
331 # If the previous option needs an argument, assign it.
332 if test -n "$ac_prev"; then
333 eval "$ac_prev=\$ac_option"
334 ac_prev=
335 continue
336 fi
337
338 case "$ac_option" in
339 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
340 *) ac_optarg= ;;
341 esac
342
343 # Accept the important Cygnus configure options, so we can diagnose typos.
344
345 case "$ac_option" in
346
347 -bindir | --bindir | --bindi | --bind | --bin | --bi)
348 ac_prev=bindir ;;
349 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
350 bindir="$ac_optarg" ;;
351
352 -build | --build | --buil | --bui | --bu)
353 ac_prev=build ;;
354 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
355 build="$ac_optarg" ;;
356
357 -cache-file | --cache-file | --cache-fil | --cache-fi \
358 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
359 ac_prev=cache_file ;;
360 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
361 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
362 cache_file="$ac_optarg" ;;
363
364 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
365 ac_prev=datadir ;;
366 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
367 | --da=*)
368 datadir="$ac_optarg" ;;
369
370 -disable-* | --disable-*)
371 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
372 # Reject names that are not valid shell variable names.
373 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
374 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
375 fi
376 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
377 eval "enable_${ac_feature}=no" ;;
378
379 -enable-* | --enable-*)
380 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
381 # Reject names that are not valid shell variable names.
382 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
383 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
384 fi
385 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
386 case "$ac_option" in
387 *=*) ;;
388 *) ac_optarg=yes ;;
389 esac
390 eval "enable_${ac_feature}='$ac_optarg'" ;;
391
392 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
393 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
394 | --exec | --exe | --ex)
395 ac_prev=exec_prefix ;;
396 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
397 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
398 | --exec=* | --exe=* | --ex=*)
399 exec_prefix="$ac_optarg" ;;
400
401 -gas | --gas | --ga | --g)
402 # Obsolete; use --with-gas.
403 with_gas=yes ;;
404
405 -help | --help | --hel | --he)
406 # Omit some internal or obsolete options to make the list less imposing.
407 # This message is too long to be a string in the A/UX 3.1 sh.
408 cat << EOF
409Usage: configure [options] [host]
410Options: [defaults in brackets after descriptions]
411Configuration:
412 --cache-file=FILE cache test results in FILE
413 --help print this message
414 --no-create do not create output files
415 --quiet, --silent do not print \`checking...' messages
416 --version print the version of autoconf that created configure
417Directory and file names:
418 --prefix=PREFIX install architecture-independent files in PREFIX
419 [$ac_default_prefix]
420 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
421 [same as prefix]
422 --bindir=DIR user executables in DIR [EPREFIX/bin]
423 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
424 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
425 --datadir=DIR read-only architecture-independent data in DIR
426 [PREFIX/share]
427 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
428 --sharedstatedir=DIR modifiable architecture-independent data in DIR
429 [PREFIX/com]
430 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
431 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
432 --includedir=DIR C header files in DIR [PREFIX/include]
433 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
434 --infodir=DIR info documentation in DIR [PREFIX/info]
435 --mandir=DIR man documentation in DIR [PREFIX/man]
436 --srcdir=DIR find the sources in DIR [configure dir or ..]
437 --program-prefix=PREFIX prepend PREFIX to installed program names
438 --program-suffix=SUFFIX append SUFFIX to installed program names
439 --program-transform-name=PROGRAM
440 run sed PROGRAM on installed program names
441EOF
442 cat << EOF
443Host type:
444 --build=BUILD configure for building on BUILD [BUILD=HOST]
445 --host=HOST configure for HOST [guessed]
446 --target=TARGET configure for TARGET [TARGET=HOST]
447Features and packages:
448 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
449 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
450 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
451 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
452 --x-includes=DIR X include files are in DIR
453 --x-libraries=DIR X library files are in DIR
454EOF
455 if test -n "$ac_help"; then
456 echo "--enable and --with options recognized:$ac_help"
457 fi
458 exit 0 ;;
459
460 -host | --host | --hos | --ho)
461 ac_prev=host ;;
462 -host=* | --host=* | --hos=* | --ho=*)
463 host="$ac_optarg" ;;
464
465 -includedir | --includedir | --includedi | --included | --include \
466 | --includ | --inclu | --incl | --inc)
467 ac_prev=includedir ;;
468 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
469 | --includ=* | --inclu=* | --incl=* | --inc=*)
470 includedir="$ac_optarg" ;;
471
472 -infodir | --infodir | --infodi | --infod | --info | --inf)
473 ac_prev=infodir ;;
474 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
475 infodir="$ac_optarg" ;;
476
477 -libdir | --libdir | --libdi | --libd)
478 ac_prev=libdir ;;
479 -libdir=* | --libdir=* | --libdi=* | --libd=*)
480 libdir="$ac_optarg" ;;
481
482 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
483 | --libexe | --libex | --libe)
484 ac_prev=libexecdir ;;
485 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
486 | --libexe=* | --libex=* | --libe=*)
487 libexecdir="$ac_optarg" ;;
488
489 -localstatedir | --localstatedir | --localstatedi | --localstated \
490 | --localstate | --localstat | --localsta | --localst \
491 | --locals | --local | --loca | --loc | --lo)
492 ac_prev=localstatedir ;;
493 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
494 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
495 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
496 localstatedir="$ac_optarg" ;;
497
498 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
499 ac_prev=mandir ;;
500 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
501 mandir="$ac_optarg" ;;
502
503 -nfp | --nfp | --nf)
504 # Obsolete; use --without-fp.
505 with_fp=no ;;
506
507 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
508 | --no-cr | --no-c)
509 no_create=yes ;;
510
511 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
512 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
513 no_recursion=yes ;;
514
515 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
516 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
517 | --oldin | --oldi | --old | --ol | --o)
518 ac_prev=oldincludedir ;;
519 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
520 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
521 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
522 oldincludedir="$ac_optarg" ;;
523
524 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
525 ac_prev=prefix ;;
526 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
527 prefix="$ac_optarg" ;;
528
529 -program-prefix | --program-prefix | --program-prefi | --program-pref \
530 | --program-pre | --program-pr | --program-p)
531 ac_prev=program_prefix ;;
532 -program-prefix=* | --program-prefix=* | --program-prefi=* \
533 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
534 program_prefix="$ac_optarg" ;;
535
536 -program-suffix | --program-suffix | --program-suffi | --program-suff \
537 | --program-suf | --program-su | --program-s)
538 ac_prev=program_suffix ;;
539 -program-suffix=* | --program-suffix=* | --program-suffi=* \
540 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
541 program_suffix="$ac_optarg" ;;
542
543 -program-transform-name | --program-transform-name \
544 | --program-transform-nam | --program-transform-na \
545 | --program-transform-n | --program-transform- \
546 | --program-transform | --program-transfor \
547 | --program-transfo | --program-transf \
548 | --program-trans | --program-tran \
549 | --progr-tra | --program-tr | --program-t)
550 ac_prev=program_transform_name ;;
551 -program-transform-name=* | --program-transform-name=* \
552 | --program-transform-nam=* | --program-transform-na=* \
553 | --program-transform-n=* | --program-transform-=* \
554 | --program-transform=* | --program-transfor=* \
555 | --program-transfo=* | --program-transf=* \
556 | --program-trans=* | --program-tran=* \
557 | --progr-tra=* | --program-tr=* | --program-t=*)
558 program_transform_name="$ac_optarg" ;;
559
560 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
561 | -silent | --silent | --silen | --sile | --sil)
562 silent=yes ;;
563
564 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
565 ac_prev=sbindir ;;
566 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
567 | --sbi=* | --sb=*)
568 sbindir="$ac_optarg" ;;
569
570 -sharedstatedir | --sharedstatedir | --sharedstatedi \
571 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
572 | --sharedst | --shareds | --shared | --share | --shar \
573 | --sha | --sh)
574 ac_prev=sharedstatedir ;;
575 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
576 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
577 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
578 | --sha=* | --sh=*)
579 sharedstatedir="$ac_optarg" ;;
580
581 -site | --site | --sit)
582 ac_prev=site ;;
583 -site=* | --site=* | --sit=*)
584 site="$ac_optarg" ;;
585
586 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
587 ac_prev=srcdir ;;
588 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
589 srcdir="$ac_optarg" ;;
590
591 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
592 | --syscon | --sysco | --sysc | --sys | --sy)
593 ac_prev=sysconfdir ;;
594 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
595 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
596 sysconfdir="$ac_optarg" ;;
597
598 -target | --target | --targe | --targ | --tar | --ta | --t)
599 ac_prev=target ;;
600 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
601 target="$ac_optarg" ;;
602
603 -v | -verbose | --verbose | --verbos | --verbo | --verb)
604 verbose=yes ;;
605
606 -version | --version | --versio | --versi | --vers)
e8482f24 607 echo "configure generated by autoconf version 2.13"
10f2d63a
VZ
608 exit 0 ;;
609
610 -with-* | --with-*)
611 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
612 # Reject names that are not valid shell variable names.
613 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
614 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
615 fi
616 ac_package=`echo $ac_package| sed 's/-/_/g'`
617 case "$ac_option" in
618 *=*) ;;
619 *) ac_optarg=yes ;;
620 esac
621 eval "with_${ac_package}='$ac_optarg'" ;;
622
623 -without-* | --without-*)
624 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
625 # Reject names that are not valid shell variable names.
626 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
627 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
628 fi
629 ac_package=`echo $ac_package| sed 's/-/_/g'`
630 eval "with_${ac_package}=no" ;;
631
632 --x)
633 # Obsolete; use --with-x.
634 with_x=yes ;;
635
636 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
637 | --x-incl | --x-inc | --x-in | --x-i)
638 ac_prev=x_includes ;;
639 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
640 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
641 x_includes="$ac_optarg" ;;
642
643 -x-libraries | --x-libraries | --x-librarie | --x-librari \
644 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
645 ac_prev=x_libraries ;;
646 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
647 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
648 x_libraries="$ac_optarg" ;;
649
650 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
651 ;;
652
653 *)
654 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
655 echo "configure: warning: $ac_option: invalid host type" 1>&2
656 fi
657 if test "x$nonopt" != xNONE; then
658 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
659 fi
660 nonopt="$ac_option"
661 ;;
662
663 esac
664done
665
666if test -n "$ac_prev"; then
667 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
668fi
669
670trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
671
672# File descriptor usage:
673# 0 standard input
674# 1 file creation
675# 2 errors and warnings
676# 3 some systems may open it to /dev/tty
677# 4 used on the Kubota Titan
678# 6 checking for... messages and results
679# 5 compiler messages saved in config.log
680if test "$silent" = yes; then
681 exec 6>/dev/null
682else
683 exec 6>&1
684fi
685exec 5>./config.log
686
687echo "\
688This file contains any messages produced by compilers while
689running configure, to aid debugging if configure makes a mistake.
690" 1>&5
691
692# Strip out --no-create and --no-recursion so they do not pile up.
693# Also quote any args containing shell metacharacters.
694ac_configure_args=
695for ac_arg
696do
697 case "$ac_arg" in
698 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
699 | --no-cr | --no-c) ;;
700 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
701 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
702 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
703 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
704 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
705 esac
706done
707
708# NLS nuisances.
709# Only set these to C if already set. These must not be set unconditionally
710# because not all systems understand e.g. LANG=C (notably SCO).
711# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
712# Non-C LC_CTYPE values break the ctype check.
713if test "${LANG+set}" = set; then LANG=C; export LANG; fi
714if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
715if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
716if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
717
718# confdefs.h avoids OS command line length limits that DEFS can exceed.
719rm -rf conftest* confdefs.h
720# AIX cpp loses on an empty file, so make sure it contains at least a newline.
721echo > confdefs.h
722
723# A filename unique to this package, relative to the directory that
724# configure is in, which we can look for to find out if srcdir is correct.
725ac_unique_file=wx-config.in
726
727# Find the source files, if location was not specified.
728if test -z "$srcdir"; then
729 ac_srcdir_defaulted=yes
730 # Try the directory containing this script, then its parent.
731 ac_prog=$0
732 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
733 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
734 srcdir=$ac_confdir
735 if test ! -r $srcdir/$ac_unique_file; then
736 srcdir=..
737 fi
738else
739 ac_srcdir_defaulted=no
740fi
741if test ! -r $srcdir/$ac_unique_file; then
742 if test "$ac_srcdir_defaulted" = yes; then
743 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
744 else
745 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
746 fi
747fi
748srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
749
750# Prefer explicitly selected file to automatically selected ones.
751if test -z "$CONFIG_SITE"; then
752 if test "x$prefix" != xNONE; then
753 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
754 else
755 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
756 fi
757fi
758for ac_site_file in $CONFIG_SITE; do
759 if test -r "$ac_site_file"; then
760 echo "loading site script $ac_site_file"
761 . "$ac_site_file"
762 fi
763done
764
765if test -r "$cache_file"; then
766 echo "loading cache $cache_file"
767 . $cache_file
768else
769 echo "creating cache $cache_file"
770 > $cache_file
771fi
772
773ac_ext=c
774# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
775ac_cpp='$CPP $CPPFLAGS'
776ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
777ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
778cross_compiling=$ac_cv_prog_cc_cross
779
780ac_exeext=
781ac_objext=o
782if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
783 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
784 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
785 ac_n= ac_c='
786' ac_t=' '
787 else
788 ac_n=-n ac_c= ac_t=
789 fi
790else
791 ac_n= ac_c='\c' ac_t=
792fi
793
794
795
7c66a493
VZ
796ac_aux_dir=
797for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
798 if test -f $ac_dir/install-sh; then
799 ac_aux_dir=$ac_dir
800 ac_install_sh="$ac_aux_dir/install-sh -c"
801 break
802 elif test -f $ac_dir/install.sh; then
803 ac_aux_dir=$ac_dir
804 ac_install_sh="$ac_aux_dir/install.sh -c"
805 break
806 fi
807done
808if test -z "$ac_aux_dir"; then
809 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
810fi
811ac_config_guess=$ac_aux_dir/config.guess
812ac_config_sub=$ac_aux_dir/config.sub
813ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
814
815
816# Do some error checking and defaulting for the host and target type.
817# The inputs are:
818# configure --host=HOST --target=TARGET --build=BUILD NONOPT
819#
820# The rules are:
821# 1. You are not allowed to specify --host, --target, and nonopt at the
822# same time.
823# 2. Host defaults to nonopt.
824# 3. If nonopt is not specified, then host defaults to the current host,
825# as determined by config.guess.
826# 4. Target and build default to nonopt.
827# 5. If nonopt is not specified, then target and build default to host.
828
829# The aliases save the names the user supplied, while $host etc.
830# will get canonicalized.
831case $host---$target---$nonopt in
832NONE---*---* | *---NONE---* | *---*---NONE) ;;
833*) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
834esac
835
836
837# Make sure we can run config.sub.
838if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
839else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
840fi
841
842echo $ac_n "checking host system type""... $ac_c" 1>&6
422107f9 843echo "configure:844: checking host system type" >&5
7c66a493
VZ
844
845host_alias=$host
846case "$host_alias" in
847NONE)
848 case $nonopt in
849 NONE)
850 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
851 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
852 fi ;;
853 *) host_alias=$nonopt ;;
854 esac ;;
855esac
856
857host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
858host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
859host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
860host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
861echo "$ac_t""$host" 1>&6
862
863echo $ac_n "checking target system type""... $ac_c" 1>&6
422107f9 864echo "configure:865: checking target system type" >&5
7c66a493
VZ
865
866target_alias=$target
867case "$target_alias" in
868NONE)
869 case $nonopt in
870 NONE) target_alias=$host_alias ;;
871 *) target_alias=$nonopt ;;
872 esac ;;
873esac
874
875target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
876target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
877target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
878target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
879echo "$ac_t""$target" 1>&6
880
881echo $ac_n "checking build system type""... $ac_c" 1>&6
422107f9 882echo "configure:883: checking build system type" >&5
7c66a493
VZ
883
884build_alias=$build
885case "$build_alias" in
886NONE)
887 case $nonopt in
888 NONE) build_alias=$host_alias ;;
889 *) build_alias=$nonopt ;;
890 esac ;;
891esac
892
893build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
894build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
895build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
896build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
897echo "$ac_t""$build" 1>&6
898
899test "$host_alias" != "$target_alias" &&
900 test "$program_prefix$program_suffix$program_transform_name" = \
901 NONENONEs,x,x, &&
902 program_prefix=${target_alias}-
903
904
10f2d63a
VZ
905
906WX_MAJOR_VERSION_NUMBER=2
907WX_MINOR_VERSION_NUMBER=1
cc977e5f 908WX_RELEASE_NUMBER=14
10f2d63a
VZ
909
910WX_INTERFACE_AGE=0
911WX_BINARY_AGE=0
912
913WX_VERSION=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER.$WX_RELEASE_NUMBER
914
915WX_RELEASE=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER
916WX_CURRENT=`expr $WX_RELEASE_NUMBER - $WX_INTERFACE_AGE`
917WX_REVISION=$WX_INTERFACE_AGE
918WX_AGE=`expr $WX_BINARY_AGE - $WX_INTERFACE_AGE`
919
920
921USE_UNIX=1
922USE_WIN32=0
b12915c1
VZ
923USE_BEOS=0
924
10f2d63a
VZ
925USE_LINUX=
926USE_SGI=
927USE_HPUX=
928USE_SYSV=
929USE_SVR4=
930USE_AIX=
931USE_SUN=
932USE_SOLARIS=
933USE_SUNOS=
934USE_ALPHA=
935USE_OSF=
936USE_BSD=
937USE_FREEBSD=
938USE_VMS=
939USE_ULTRIX=
940USE_CYGWIN=
941USE_MINGW=
942USE_DATA_GENERAL=
943
ab9b9eab
VZ
944NEEDS_D_REENTRANT_FOR_R_FUNCS=0
945
e07802fc 946ALL_TOOLKITS="CYGWIN GTK MINGW MOTIF WINE PM"
10f2d63a
VZ
947
948DEFAULT_wxUSE_GTK=0
949DEFAULT_wxUSE_MOTIF=0
950DEFAULT_wxUSE_MSW=0
951DEFAULT_wxUSE_WINE=0
e07802fc 952DEFAULT_wxUSE_PM=0
10f2d63a
VZ
953
954DEFAULT_DEFAULT_wxUSE_GTK=0
955DEFAULT_DEFAULT_wxUSE_MOTIF=0
956DEFAULT_DEFAULT_wxUSE_MSW=0
957DEFAULT_DEFAULT_wxUSE_WINE=0
e07802fc 958DEFAULT_DEFAULT_wxUSE_PM=0
10f2d63a 959
d6a55c4b
VZ
960PROGRAM_EXT=
961
10f2d63a
VZ
962case "${host}" in
963 *-hp-hpux* )
964 USE_HPUX=1
965 DEFAULT_DEFAULT_wxUSE_MOTIF=1
ab9b9eab 966 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
10f2d63a
VZ
967 cat >> confdefs.h <<\EOF
968#define __HPUX__ 1
969EOF
970
971 ;;
972 *-*-linux* )
973 USE_LINUX=1
974 cat >> confdefs.h <<\EOF
975#define __LINUX__ 1
976EOF
977
978 TMP=`uname -m`
979 if test "x$TMP" = "xalpha"; then
980 USE_ALPHA=1
981 cat >> confdefs.h <<\EOF
982#define __ALPHA__ 1
983EOF
984
985 fi
986 DEFAULT_DEFAULT_wxUSE_GTK=1
987 ;;
988 *-*-irix5* | *-*-irix6* )
989 USE_SGI=1
990 USE_SVR4=1
991 cat >> confdefs.h <<\EOF
992#define __SGI__ 1
993EOF
994
995 cat >> confdefs.h <<\EOF
996#define __SVR4__ 1
997EOF
998
999 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1000 ;;
1001 *-*-solaris2* )
1002 USE_SUN=1
1003 USE_SOLARIS=1
1004 USE_SVR4=1
1005 cat >> confdefs.h <<\EOF
1006#define __SUN__ 1
1007EOF
1008
1009 cat >> confdefs.h <<\EOF
1010#define __SOLARIS__ 1
1011EOF
1012
1013 cat >> confdefs.h <<\EOF
1014#define __SVR4__ 1
1015EOF
1016
1017 DEFAULT_DEFAULT_wxUSE_MOTIF=1
ab9b9eab 1018 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
10f2d63a
VZ
1019 ;;
1020 *-*-sunos4* )
1021 USE_SUN=1
1022 USE_SUNOS=1
1023 USE_BSD=1
1024 cat >> confdefs.h <<\EOF
1025#define __SUN__ 1
1026EOF
1027
1028 cat >> confdefs.h <<\EOF
1029#define __SUNOS__ 1
1030EOF
1031
1032 cat >> confdefs.h <<\EOF
1033#define __BSD__ 1
1034EOF
1035
1036 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1037 ;;
1038 *-*-freebsd* | *-*-netbsd*)
1039 USE_BSD=1
1040 USE_FREEBSD=1
1041 cat >> confdefs.h <<\EOF
1042#define __FREEBSD__ 1
1043EOF
1044
1045 cat >> confdefs.h <<\EOF
1046#define __BSD__ 1
1047EOF
1048
1049 DEFAULT_DEFAULT_wxUSE_GTK=1
1050 ;;
1051 *-*-osf* )
1052 USE_ALPHA=1
1053 USE_OSF=1
1054 cat >> confdefs.h <<\EOF
1055#define __ALPHA__ 1
1056EOF
1057
1058 cat >> confdefs.h <<\EOF
1059#define __OSF__ 1
1060EOF
1061
1062 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1063 ;;
1064 *-*-dgux5* )
1065 USE_ALPHA=1
1066 USE_SVR4=1
1067 cat >> confdefs.h <<\EOF
1068#define __ALPHA__ 1
1069EOF
1070
1071 cat >> confdefs.h <<\EOF
1072#define __SVR4__ 1
1073EOF
1074
1075 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1076 ;;
1077 *-*-sysv5* )
1078 USE_SYSV=1
1079 USE_SVR4=1
1080 cat >> confdefs.h <<\EOF
1081#define __SYSV__ 1
1082EOF
1083
1084 cat >> confdefs.h <<\EOF
1085#define __SVR4__ 1
1086EOF
1087
1088 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1089 ;;
1090 *-*-aix* )
1091 USE_AIX=1
1092 USE_SYSV=1
1093 USE_SVR4=1
1094 cat >> confdefs.h <<\EOF
1095#define __AIX__ 1
1096EOF
1097
1098 cat >> confdefs.h <<\EOF
1099#define __SYSV__ 1
1100EOF
1101
1102 cat >> confdefs.h <<\EOF
1103#define __SVR4__ 1
1104EOF
1105
1106 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1107 ;;
1108
7eef8db2 1109 *-*-cygwin32* | *-*-mingw32* )
10f2d63a
VZ
1110 USE_UNIX=0
1111 USE_WIN32=1
1112 cat >> confdefs.h <<\EOF
1113#define __WIN32__ 1
1114EOF
1115
1116 cat >> confdefs.h <<\EOF
1117#define __WIN95__ 1
1118EOF
1119
1120 cat >> confdefs.h <<\EOF
1121#define __WINDOWS__ 1
1122EOF
1123
1124 cat >> confdefs.h <<\EOF
1125#define __GNUWIN32__ 1
1126EOF
1127
1128 cat >> confdefs.h <<\EOF
1129#define STRICT 1
1130EOF
1131
1132 cat >> confdefs.h <<\EOF
1133#define WINVER 0x0400
1134EOF
1135
cf27ef00 1136 PROGRAM_EXT=".exe"
10f2d63a
VZ
1137 DEFAULT_DEFAULT_wxUSE_MSW=1
1138 ;;
1139
1140 *-pc-os2_emx )
1141 cat >> confdefs.h <<\EOF
1142#define __EMX__ 1
1143EOF
1144
cf27ef00 1145 PROGRAM_EXT=".exe"
e07802fc 1146 DEFAULT_DEFAULT_wxUSE_PM=1
10f2d63a
VZ
1147 ;;
1148
b12915c1
VZ
1149 *-*-beos* )
1150 USE_BEOS=1
1151 cat >> confdefs.h <<\EOF
1152#define __BEOS__ 1
1153EOF
1154
1155 ;;
1156
10f2d63a
VZ
1157 *)
1158 { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; }
1159esac
1160
1161if test "$USE_UNIX" = 1 ; then
b12915c1
VZ
1162 wxUSE_UNIX=yes
1163 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1164#define __UNIX__ 1
1165EOF
1166
b12915c1
VZ
1167
1168 SRC_SUBDIRS="$SRC_SUBDIRS unix"
1169 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS unix"
1170fi
1171
1172if test "$USE_BEOS" = 1; then
1173 SRC_SUBDIRS="$SRC_SUBDIRS be"
1174 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS be"
10f2d63a
VZ
1175fi
1176
1177if test "$USE_LINUX" = 1; then
1178 echo $ac_n "checking for gettext in -lc""... $ac_c" 1>&6
422107f9 1179echo "configure:1180: checking for gettext in -lc" >&5
10f2d63a
VZ
1180ac_lib_var=`echo c'_'gettext | sed 'y%./+-%__p_%'`
1181if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1182 echo $ac_n "(cached) $ac_c" 1>&6
1183else
1184 ac_save_LIBS="$LIBS"
1185LIBS="-lc $LIBS"
1186cat > conftest.$ac_ext <<EOF
422107f9 1187#line 1188 "configure"
10f2d63a
VZ
1188#include "confdefs.h"
1189/* Override any gcc2 internal prototype to avoid an error. */
1190/* We use char because int might match the return type of a gcc2
1191 builtin and then its argument prototype would still apply. */
1192char gettext();
1193
1194int main() {
1195gettext()
1196; return 0; }
1197EOF
422107f9 1198if { (eval echo configure:1199: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
1199 rm -rf conftest*
1200 eval "ac_cv_lib_$ac_lib_var=yes"
1201else
1202 echo "configure: failed program was:" >&5
1203 cat conftest.$ac_ext >&5
1204 rm -rf conftest*
1205 eval "ac_cv_lib_$ac_lib_var=no"
1206fi
1207rm -f conftest*
1208LIBS="$ac_save_LIBS"
1209
1210fi
1211if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1212 echo "$ac_t""yes" 1>&6
1213 cat >> confdefs.h <<\EOF
1214#define wxHAVE_GLIBC2 1
1215EOF
1216
1217else
1218 echo "$ac_t""no" 1>&6
1219fi
1220
1221fi
1222
1223
1224
1225
1226 wx_arg_cache_file="configarg.cache"
1227 echo "loading argument cache $wx_arg_cache_file"
1228 rm -f ${wx_arg_cache_file}.tmp
1229 touch ${wx_arg_cache_file}.tmp
1230 touch ${wx_arg_cache_file}
1231
1232
1233DEBUG_CONFIGURE=0
1234if test $DEBUG_CONFIGURE = 1; then
1235 DEFAULT_wxUSE_THREADS=yes
1236
1237 DEFAULT_wxUSE_SHARED=yes
00cf1208 1238 DEFAULT_wxUSE_BURNT_NAME=no
10f2d63a
VZ
1239 DEFAULT_wxUSE_OPTIMISE=yes
1240 DEFAULT_wxUSE_PROFILE=no
1241 DEFAULT_wxUSE_NO_DEPS=no
1242 DEFAULT_wxUSE_NO_RTTI=no
1243 DEFAULT_wxUSE_NO_EXCEPTIONS=no
1244 DEFAULT_wxUSE_PERMISSIVE=no
1245 DEFAULT_wxUSE_DEBUG_FLAG=yes
1246 DEFAULT_wxUSE_DEBUG_INFO=yes
1247 DEFAULT_wxUSE_DEBUG_GDB=yes
1248 DEFAULT_wxUSE_MEM_TRACING=no
1249 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1250 DEFAULT_wxUSE_DMALLOC=no
1251 DEFAULT_wxUSE_APPLE_IEEE=no
1252
1253 DEFAULT_wxUSE_LOG=yes
1254
1255 DEFAULT_wxUSE_GUI=yes
1256
1257 DEFAULT_wxUSE_ZLIB=no
1258 DEFAULT_wxUSE_LIBPNG=no
1259 DEFAULT_wxUSE_LIBJPEG=no
c7a2bf27 1260 DEFAULT_wxUSE_LIBTIFF=no
10f2d63a 1261 DEFAULT_wxUSE_ODBC=no
bdad4e7e 1262 DEFAULT_wxUSE_OPENGL=no
10f2d63a
VZ
1263
1264 DEFAULT_wxUSE_STD_IOSTREAM=no
1265 DEFAULT_wxUSE_FILE=no
1266 DEFAULT_wxUSE_TEXTFILE=no
1267 DEFAULT_wxUSE_TIMEDATE=no
1268 DEFAULT_wxUSE_WAVE=no
1269 DEFAULT_wxUSE_INTL=no
1270 DEFAULT_wxUSE_CONFIG=no
1271 DEFAULT_wxUSE_STREAMS=no
1272 DEFAULT_wxUSE_SOCKETS=no
1273 DEFAULT_wxUSE_DIALUP_MANAGER=no
1274 DEFAULT_wxUSE_SERIAL=no
1275 DEFAULT_wxUSE_JOYSTICK=no
1276 DEFAULT_wxUSE_DYNLIB_CLASS=no
1277 DEFAULT_wxUSE_LONGLONG=no
1278
1279 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
1280 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
1281 DEFAULT_wxUSE_POSTSCRIPT=no
1282
1283 DEFAULT_wxUSE_X_RESOURCES=no
1284 DEFAULT_wxUSE_CLIPBOARD=no
1285 DEFAULT_wxUSE_TOOLTIPS=no
1286 DEFAULT_wxUSE_DRAG_AND_DROP=no
1287 DEFAULT_wxUSE_SPLINES=no
1288
1289 DEFAULT_wxUSE_MDI_ARCHITECTURE=no
1290 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
1291 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
1292
1293 DEFAULT_wxUSE_PROLOGIO=no
1294 DEFAULT_wxUSE_RESOURCES=no
1295 DEFAULT_wxUSE_CONSTRAINTS=no
1296 DEFAULT_wxUSE_IPC=no
1297 DEFAULT_wxUSE_HELP=no
1298 DEFAULT_wxUSE_WXTREE=no
1299 DEFAULT_wxUSE_METAFILE=no
1300
1301 DEFAULT_wxUSE_COMMONDLGS=no
1302 DEFAULT_wxUSE_DIRDLG=no
1303 DEFAULT_wxUSE_TEXTDLG=no
1304 DEFAULT_wxUSE_STARTUP_TIPS=no
1305 DEFAULT_wxUSE_PROGRESSDLG=no
1306 DEFAULT_wxUSE_MINIFRAME=no
1307 DEFAULT_wxUSE_HTML=no
24528b0c 1308 DEFAULT_wxUSE_FILESYSTEM=no
10f2d63a
VZ
1309 DEFAULT_wxUSE_FS_INET=no
1310 DEFAULT_wxUSE_FS_ZIP=no
1311 DEFAULT_wxUSE_BUSYINFO=no
1312 DEFAULT_wxUSE_ZIPSTREAM=no
1313 DEFAULT_wxUSE_VALIDATORS=yes
1314
1315 DEFAULT_wxUSE_ACCEL=no
1316 DEFAULT_wxUSE_CARET=no
1317 DEFAULT_wxUSE_BMPBUTTON=no
1318 DEFAULT_wxUSE_CHECKBOX=no
1319 DEFAULT_wxUSE_CHECKLST=no
1320 DEFAULT_wxUSE_CHOICE=yes
1321 DEFAULT_wxUSE_COMBOBOX=no
1322 DEFAULT_wxUSE_GAUGE=no
1323 DEFAULT_wxUSE_GRID=no
1324 DEFAULT_wxUSE_NEW_GRID=no
1325 DEFAULT_wxUSE_IMAGLIST=no
1326 DEFAULT_wxUSE_LISTBOX=no
1327 DEFAULT_wxUSE_LISTCTRL=no
1328 DEFAULT_wxUSE_NOTEBOOK=no
9b33fe02 1329 DEFAULT_wxUSE_PLOT=no
10f2d63a
VZ
1330 DEFAULT_wxUSE_RADIOBOX=no
1331 DEFAULT_wxUSE_RADIOBTN=no
1332 DEFAULT_wxUSE_SASH=no
1333 DEFAULT_wxUSE_SCROLLBAR=no
1334 DEFAULT_wxUSE_SLIDER=no
1335 DEFAULT_wxUSE_SPINBTN=no
56cfaa52 1336 DEFAULT_wxUSE_SPINCTRL=no
10f2d63a
VZ
1337 DEFAULT_wxUSE_SPLITTER=no
1338 DEFAULT_wxUSE_STATBMP=no
1339 DEFAULT_wxUSE_STATBOX=no
1340 DEFAULT_wxUSE_STATLINE=no
1341 DEFAULT_wxUSE_STATUSBAR=yes
1342 DEFAULT_wxUSE_TABDIALOG=no
1343 DEFAULT_wxUSE_TOOLBAR=no
360d6699
VZ
1344 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
1345 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
10f2d63a
VZ
1346 DEFAULT_wxUSE_TREECTRL=no
1347
1348 DEFAULT_wxUSE_UNICODE=no
1349 DEFAULT_wxUSE_WCSRTOMBS=no
1350
1351 DEFAULT_wxUSE_GIF=no
1352 DEFAULT_wxUSE_PCX=no
1353 DEFAULT_wxUSE_PNM=no
1354else
1355 DEFAULT_wxUSE_THREADS=yes
1356
1357 DEFAULT_wxUSE_SHARED=yes
00cf1208 1358 DEFAULT_wxUSE_BURNT_NAME=no
10f2d63a
VZ
1359 DEFAULT_wxUSE_OPTIMISE=yes
1360 DEFAULT_wxUSE_PROFILE=no
1361 DEFAULT_wxUSE_NO_DEPS=no
1362 DEFAULT_wxUSE_NO_RTTI=no
1363 DEFAULT_wxUSE_NO_EXCEPTIONS=no
1364 DEFAULT_wxUSE_PERMISSIVE=no
1365 DEFAULT_wxUSE_DEBUG_FLAG=no
1366 DEFAULT_wxUSE_DEBUG_INFO=no
1367 DEFAULT_wxUSE_DEBUG_GDB=no
1368 DEFAULT_wxUSE_MEM_TRACING=no
1369 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1370 DEFAULT_wxUSE_DMALLOC=no
1371 DEFAULT_wxUSE_APPLE_IEEE=yes
1372
1373 DEFAULT_wxUSE_LOG=yes
1374
1375 DEFAULT_wxUSE_GUI=yes
1376
1377 DEFAULT_wxUSE_ZLIB=yes
1378 DEFAULT_wxUSE_LIBPNG=yes
1379 DEFAULT_wxUSE_LIBJPEG=yes
b47c832e 1380 DEFAULT_wxUSE_LIBTIFF=yes
16b52fa1 1381 DEFAULT_wxUSE_ODBC=no
bdad4e7e 1382 DEFAULT_wxUSE_OPENGL=no
10f2d63a
VZ
1383
1384 DEFAULT_wxUSE_STD_IOSTREAM=no
1385 DEFAULT_wxUSE_FILE=yes
1386 DEFAULT_wxUSE_TEXTFILE=yes
1387 DEFAULT_wxUSE_TIMEDATE=yes
1388 DEFAULT_wxUSE_WAVE=no
1389 DEFAULT_wxUSE_INTL=yes
1390 DEFAULT_wxUSE_CONFIG=yes
1391 DEFAULT_wxUSE_STREAMS=yes
1392 DEFAULT_wxUSE_SOCKETS=yes
1393 DEFAULT_wxUSE_DIALUP_MANAGER=yes
1394 DEFAULT_wxUSE_SERIAL=yes
1395 DEFAULT_wxUSE_JOYSTICK=yes
1396 DEFAULT_wxUSE_DYNLIB_CLASS=yes
b685cd9b 1397 DEFAULT_wxUSE_LONGLONG=yes
10f2d63a
VZ
1398
1399 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
1400 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
1401 DEFAULT_wxUSE_POSTSCRIPT=yes
1402
1403 DEFAULT_wxUSE_X_RESOURCES=no
1404 DEFAULT_wxUSE_CLIPBOARD=yes
1405 DEFAULT_wxUSE_TOOLTIPS=yes
1406 DEFAULT_wxUSE_DRAG_AND_DROP=yes
1407 DEFAULT_wxUSE_SPLINES=yes
1408
1409 DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
1410 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
1411 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
1412
1413 DEFAULT_wxUSE_PROLOGIO=yes
1414 DEFAULT_wxUSE_RESOURCES=yes
1415 DEFAULT_wxUSE_CONSTRAINTS=yes
1416 DEFAULT_wxUSE_IPC=yes
1417 DEFAULT_wxUSE_HELP=yes
1418 DEFAULT_wxUSE_WXTREE=yes
1419 DEFAULT_wxUSE_METAFILE=yes
1420
1421 DEFAULT_wxUSE_COMMONDLGS=yes
1422 DEFAULT_wxUSE_DIRDLG=yes
1423 DEFAULT_wxUSE_TEXTDLG=yes
1424 DEFAULT_wxUSE_STARTUP_TIPS=yes
1425 DEFAULT_wxUSE_PROGRESSDLG=yes
1426 DEFAULT_wxUSE_MINIFRAME=yes
1427 DEFAULT_wxUSE_HTML=yes
24528b0c 1428 DEFAULT_wxUSE_FILESYSTEM=yes
10f2d63a
VZ
1429 DEFAULT_wxUSE_FS_INET=yes
1430 DEFAULT_wxUSE_FS_ZIP=yes
1431 DEFAULT_wxUSE_BUSYINFO=yes
1432 DEFAULT_wxUSE_ZIPSTREAM=yes
1433 DEFAULT_wxUSE_VALIDATORS=yes
1434
1435 DEFAULT_wxUSE_ACCEL=yes
1436 DEFAULT_wxUSE_CARET=yes
1437 DEFAULT_wxUSE_BMPBUTTON=yes
1438 DEFAULT_wxUSE_CHECKBOX=yes
1439 DEFAULT_wxUSE_CHECKLST=yes
1440 DEFAULT_wxUSE_CHOICE=yes
1441 DEFAULT_wxUSE_COMBOBOX=yes
1442 DEFAULT_wxUSE_GAUGE=yes
1443 DEFAULT_wxUSE_GRID=yes
cc977e5f 1444 DEFAULT_wxUSE_NEW_GRID=yes
10f2d63a
VZ
1445 DEFAULT_wxUSE_IMAGLIST=yes
1446 DEFAULT_wxUSE_LISTBOX=yes
1447 DEFAULT_wxUSE_LISTCTRL=yes
1448 DEFAULT_wxUSE_NOTEBOOK=yes
9b33fe02 1449 DEFAULT_wxUSE_PLOT=yes
10f2d63a
VZ
1450 DEFAULT_wxUSE_RADIOBOX=yes
1451 DEFAULT_wxUSE_RADIOBTN=yes
1452 DEFAULT_wxUSE_SASH=yes
1453 DEFAULT_wxUSE_SCROLLBAR=yes
1454 DEFAULT_wxUSE_SLIDER=yes
1455 DEFAULT_wxUSE_SPINBTN=yes
56cfaa52 1456 DEFAULT_wxUSE_SPINCTRL=yes
10f2d63a
VZ
1457 DEFAULT_wxUSE_SPLITTER=yes
1458 DEFAULT_wxUSE_STATBMP=yes
1459 DEFAULT_wxUSE_STATBOX=yes
1460 DEFAULT_wxUSE_STATLINE=yes
1461 DEFAULT_wxUSE_STATUSBAR=yes
1462 DEFAULT_wxUSE_TABDIALOG=no
1463 DEFAULT_wxUSE_TOOLBAR=yes
360d6699
VZ
1464 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
1465 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
10f2d63a
VZ
1466 DEFAULT_wxUSE_TREECTRL=yes
1467
1468 DEFAULT_wxUSE_UNICODE=no
1469 DEFAULT_wxUSE_WCSRTOMBS=no
1470
1471 DEFAULT_wxUSE_GIF=yes
1472 DEFAULT_wxUSE_PCX=yes
1473 DEFAULT_wxUSE_PNM=yes
1474fi
1475
1476
1477
1478for toolkit in `echo $ALL_TOOLKITS`; do
1479 LINE=`grep "wxUSE_$toolkit" ${wx_arg_cache_file}`
1480 if test "x$LINE" != x ; then
1481 has_toolkit_in_cache=1
1482 eval "DEFAULT_$LINE"
1483 eval "CACHE_$toolkit=1"
1484 fi
1485done
1486
1487
1488
1489 echo $ac_n "checking "for --enable-gui"""... $ac_c" 1>&6
422107f9 1490echo "configure:1491: checking "for --enable-gui"" >&5
10f2d63a
VZ
1491 no_cache=0
1492 # Check whether --enable-gui or --disable-gui was given.
1493if test "${enable_gui+set}" = set; then
1494 enableval="$enable_gui"
1495
1496 if test "$enableval" = yes; then
1497 ac_cv_use_gui='wxUSE_GUI=yes'
1498 else
1499 ac_cv_use_gui='wxUSE_GUI=no'
1500 fi
1501
1502else
1503
1504 LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
1505 if test "x$LINE" != x ; then
1506 eval "DEFAULT_$LINE"
1507 else
1508 no_cache=1
1509 fi
1510
1511 ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
1512
1513fi
1514
1515
1516 eval "$ac_cv_use_gui"
1517 if test "$no_cache" != 1; then
1518 echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
1519 fi
1520
1521 if test "$wxUSE_GUI" = yes; then
1522 echo "$ac_t""yes" 1>&6
1523 else
1524 echo "$ac_t""no" 1>&6
1525 fi
1526
1527
b12915c1 1528if test "$wxUSE_GUI" = "yes"; then
10f2d63a
VZ
1529
1530# Check whether --with-gtk or --without-gtk was given.
1531if test "${with_gtk+set}" = set; then
1532 withval="$with_gtk"
1533 wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
1534fi
1535
1536# Check whether --with-motif or --without-motif was given.
1537if test "${with_motif+set}" = set; then
1538 withval="$with_motif"
1539 wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
1540fi
1541
1542# Check whether --with-wine or --without-wine was given.
1543if test "${with_wine+set}" = set; then
1544 withval="$with_wine"
1545 wxUSE_WINE="$withval" CACHE_WINE=1 TOOLKIT_GIVEN=1
1546fi
1547
1548# Check whether --with-cygwin or --without-cygwin was given.
1549if test "${with_cygwin+set}" = set; then
1550 withval="$with_cygwin"
1551 wxUSE_CYGWIN="$withval" CACHE_CYGWIN=1 TOOLKIT_GIVEN=1
1552fi
1553
1554# Check whether --with-mingw or --without-mingw was given.
1555if test "${with_mingw+set}" = set; then
1556 withval="$with_mingw"
1557 wxUSE_MINGW="$withval" CACHE_MINGW=1 TOOLKIT_GIVEN=1
1558fi
1559
e07802fc
VZ
1560# Check whether --with-pm or --without-pm was given.
1561if test "${with_pm+set}" = set; then
1562 withval="$with_pm"
1563 wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
1564fi
1565
10f2d63a
VZ
1566
1567# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
1568if test "${with_gtk_prefix+set}" = set; then
1569 withval="$with_gtk_prefix"
1570 gtk_config_prefix="$withval"
1571else
1572 gtk_config_prefix=""
1573fi
1574
1575# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
1576if test "${with_gtk_exec_prefix+set}" = set; then
1577 withval="$with_gtk_exec_prefix"
1578 gtk_config_exec_prefix="$withval"
1579else
1580 gtk_config_exec_prefix=""
1581fi
1582
1583
1584
b12915c1 1585 echo $ac_n "checking "for --with-libpng"""... $ac_c" 1>&6
422107f9 1586echo "configure:1587: checking "for --with-libpng"" >&5
10f2d63a 1587 no_cache=0
b12915c1
VZ
1588 # Check whether --with-libpng or --without-libpng was given.
1589if test "${with_libpng+set}" = set; then
1590 withval="$with_libpng"
10f2d63a
VZ
1591
1592 if test "$withval" = yes; then
b12915c1 1593 ac_cv_use_libpng='wxUSE_LIBPNG=yes'
422107f9 1594 elif test "$withval" = no; then
b12915c1 1595 ac_cv_use_libpng='wxUSE_LIBPNG=no'
422107f9
VZ
1596 elif test "$withval" = sys; then
1597 ac_cv_use_libpng='wxUSE_LIBPNG=sys'
1598 else
1599 { echo "configure: error: Invalid value for --with-libpng: should be yes, no or sys" 1>&2; exit 1; }
10f2d63a
VZ
1600 fi
1601
1602else
1603
b12915c1 1604 LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
10f2d63a
VZ
1605 if test "x$LINE" != x ; then
1606 eval "DEFAULT_$LINE"
1607 else
1608 no_cache=1
1609 fi
1610
b12915c1 1611 ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
10f2d63a
VZ
1612
1613fi
1614
1615
b12915c1 1616 eval "$ac_cv_use_libpng"
10f2d63a 1617 if test "$no_cache" != 1; then
b12915c1 1618 echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
1619 fi
1620
b12915c1 1621 if test "$wxUSE_LIBPNG" = yes; then
10f2d63a 1622 echo "$ac_t""yes" 1>&6
422107f9 1623 elif test "$wxUSE_LIBPNG" = no; then
10f2d63a 1624 echo "$ac_t""no" 1>&6
422107f9
VZ
1625 elif test "$wxUSE_LIBPNG" = sys; then
1626 echo "$ac_t""system version" 1>&6
1627 else
1628 { echo "configure: error: Invalid value for --with-libpng: should be yes, no or sys" 1>&2; exit 1; }
10f2d63a
VZ
1629 fi
1630
1631
b12915c1 1632 echo $ac_n "checking "for --with-libjpeg"""... $ac_c" 1>&6
422107f9 1633echo "configure:1634: checking "for --with-libjpeg"" >&5
10f2d63a 1634 no_cache=0
b12915c1
VZ
1635 # Check whether --with-libjpeg or --without-libjpeg was given.
1636if test "${with_libjpeg+set}" = set; then
1637 withval="$with_libjpeg"
10f2d63a
VZ
1638
1639 if test "$withval" = yes; then
b12915c1 1640 ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
422107f9 1641 elif test "$withval" = no; then
b12915c1 1642 ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
422107f9
VZ
1643 elif test "$withval" = sys; then
1644 ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
1645 else
1646 { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no or sys" 1>&2; exit 1; }
10f2d63a
VZ
1647 fi
1648
1649else
1650
b12915c1 1651 LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
10f2d63a
VZ
1652 if test "x$LINE" != x ; then
1653 eval "DEFAULT_$LINE"
1654 else
1655 no_cache=1
1656 fi
1657
b12915c1 1658 ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
10f2d63a
VZ
1659
1660fi
1661
1662
b12915c1 1663 eval "$ac_cv_use_libjpeg"
10f2d63a 1664 if test "$no_cache" != 1; then
b12915c1 1665 echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
1666 fi
1667
b12915c1 1668 if test "$wxUSE_LIBJPEG" = yes; then
10f2d63a 1669 echo "$ac_t""yes" 1>&6
422107f9 1670 elif test "$wxUSE_LIBJPEG" = no; then
10f2d63a 1671 echo "$ac_t""no" 1>&6
422107f9
VZ
1672 elif test "$wxUSE_LIBJPEG" = sys; then
1673 echo "$ac_t""system version" 1>&6
1674 else
1675 { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no or sys" 1>&2; exit 1; }
10f2d63a
VZ
1676 fi
1677
1678
b12915c1 1679 echo $ac_n "checking "for --with-libtiff"""... $ac_c" 1>&6
422107f9 1680echo "configure:1681: checking "for --with-libtiff"" >&5
10f2d63a 1681 no_cache=0
b12915c1
VZ
1682 # Check whether --with-libtiff or --without-libtiff was given.
1683if test "${with_libtiff+set}" = set; then
1684 withval="$with_libtiff"
10f2d63a
VZ
1685
1686 if test "$withval" = yes; then
b12915c1 1687 ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
0dcf9893 1688 elif test "$withval" = no; then
b12915c1 1689 ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
0dcf9893
VZ
1690 elif test "$withval" = sys; then
1691 ac_cv_use_libtiff='wxUSE_LIBTIFF=sys'
1692 else
1693 { echo "configure: error: Invalid value for --with-libtiff: should be yes, no or sys" 1>&2; exit 1; }
10f2d63a
VZ
1694 fi
1695
1696else
1697
b12915c1 1698 LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
10f2d63a
VZ
1699 if test "x$LINE" != x ; then
1700 eval "DEFAULT_$LINE"
1701 else
1702 no_cache=1
1703 fi
1704
b12915c1 1705 ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
10f2d63a
VZ
1706
1707fi
1708
1709
b12915c1 1710 eval "$ac_cv_use_libtiff"
10f2d63a 1711 if test "$no_cache" != 1; then
b12915c1 1712 echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
1713 fi
1714
b12915c1 1715 if test "$wxUSE_LIBTIFF" = yes; then
10f2d63a 1716 echo "$ac_t""yes" 1>&6
0dcf9893 1717 elif test "$wxUSE_LIBTIFF" = no; then
10f2d63a 1718 echo "$ac_t""no" 1>&6
0dcf9893
VZ
1719 elif test "$wxUSE_LIBTIFF" = sys; then
1720 echo "$ac_t""system version" 1>&6
1721 else
1722 { echo "configure: error: Invalid value for --with-libtiff: should be yes, no or sys" 1>&2; exit 1; }
10f2d63a
VZ
1723 fi
1724
1725
b12915c1 1726 echo $ac_n "checking "for --with-opengl"""... $ac_c" 1>&6
0dcf9893 1727echo "configure:1728: checking "for --with-opengl"" >&5
10f2d63a 1728 no_cache=0
b12915c1
VZ
1729 # Check whether --with-opengl or --without-opengl was given.
1730if test "${with_opengl+set}" = set; then
1731 withval="$with_opengl"
10f2d63a
VZ
1732
1733 if test "$withval" = yes; then
b12915c1 1734 ac_cv_use_opengl='wxUSE_OPENGL=yes'
10f2d63a 1735 else
b12915c1 1736 ac_cv_use_opengl='wxUSE_OPENGL=no'
10f2d63a
VZ
1737 fi
1738
1739else
1740
b12915c1 1741 LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
10f2d63a
VZ
1742 if test "x$LINE" != x ; then
1743 eval "DEFAULT_$LINE"
1744 else
1745 no_cache=1
1746 fi
1747
b12915c1 1748 ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
10f2d63a
VZ
1749
1750fi
1751
1752
b12915c1 1753 eval "$ac_cv_use_opengl"
10f2d63a 1754 if test "$no_cache" != 1; then
b12915c1 1755 echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
1756 fi
1757
b12915c1 1758 if test "$wxUSE_OPENGL" = yes; then
10f2d63a
VZ
1759 echo "$ac_t""yes" 1>&6
1760 else
1761 echo "$ac_t""no" 1>&6
1762 fi
1763
1764
b12915c1
VZ
1765fi
1766
1767
1768 echo $ac_n "checking "for --with-dmalloc"""... $ac_c" 1>&6
0dcf9893 1769echo "configure:1770: checking "for --with-dmalloc"" >&5
c7a2bf27 1770 no_cache=0
b12915c1
VZ
1771 # Check whether --with-dmalloc or --without-dmalloc was given.
1772if test "${with_dmalloc+set}" = set; then
1773 withval="$with_dmalloc"
c7a2bf27
RR
1774
1775 if test "$withval" = yes; then
b12915c1 1776 ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
c7a2bf27 1777 else
b12915c1 1778 ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
c7a2bf27
RR
1779 fi
1780
1781else
1782
b12915c1 1783 LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
c7a2bf27
RR
1784 if test "x$LINE" != x ; then
1785 eval "DEFAULT_$LINE"
1786 else
1787 no_cache=1
1788 fi
1789
b12915c1 1790 ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
c7a2bf27
RR
1791
1792fi
1793
1794
b12915c1 1795 eval "$ac_cv_use_dmalloc"
c7a2bf27 1796 if test "$no_cache" != 1; then
b12915c1 1797 echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
c7a2bf27
RR
1798 fi
1799
b12915c1 1800 if test "$wxUSE_DMALLOC" = yes; then
c7a2bf27
RR
1801 echo "$ac_t""yes" 1>&6
1802 else
1803 echo "$ac_t""no" 1>&6
1804 fi
1805
1806
b12915c1 1807 echo $ac_n "checking "for --with-zlib"""... $ac_c" 1>&6
0dcf9893 1808echo "configure:1809: checking "for --with-zlib"" >&5
10f2d63a 1809 no_cache=0
b12915c1
VZ
1810 # Check whether --with-zlib or --without-zlib was given.
1811if test "${with_zlib+set}" = set; then
1812 withval="$with_zlib"
10f2d63a
VZ
1813
1814 if test "$withval" = yes; then
b12915c1 1815 ac_cv_use_zlib='wxUSE_ZLIB=yes'
422107f9 1816 elif test "$withval" = no; then
b12915c1 1817 ac_cv_use_zlib='wxUSE_ZLIB=no'
422107f9
VZ
1818 elif test "$withval" = sys; then
1819 ac_cv_use_zlib='wxUSE_ZLIB=sys'
1820 else
1821 { echo "configure: error: Invalid value for --with-zlib: should be yes, no or sys" 1>&2; exit 1; }
10f2d63a
VZ
1822 fi
1823
1824else
1825
b12915c1 1826 LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
10f2d63a
VZ
1827 if test "x$LINE" != x ; then
1828 eval "DEFAULT_$LINE"
1829 else
1830 no_cache=1
1831 fi
1832
b12915c1 1833 ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
10f2d63a
VZ
1834
1835fi
1836
1837
b12915c1 1838 eval "$ac_cv_use_zlib"
10f2d63a 1839 if test "$no_cache" != 1; then
b12915c1 1840 echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
1841 fi
1842
b12915c1 1843 if test "$wxUSE_ZLIB" = yes; then
10f2d63a 1844 echo "$ac_t""yes" 1>&6
422107f9 1845 elif test "$wxUSE_ZLIB" = no; then
bdad4e7e 1846 echo "$ac_t""no" 1>&6
422107f9
VZ
1847 elif test "$wxUSE_ZLIB" = sys; then
1848 echo "$ac_t""system version" 1>&6
1849 else
1850 { echo "configure: error: Invalid value for --with-zlib: should be yes, no or sys" 1>&2; exit 1; }
10f2d63a
VZ
1851 fi
1852
1853
1854 echo $ac_n "checking "for --with-odbc"""... $ac_c" 1>&6
0dcf9893 1855echo "configure:1856: checking "for --with-odbc"" >&5
10f2d63a
VZ
1856 no_cache=0
1857 # Check whether --with-odbc or --without-odbc was given.
1858if test "${with_odbc+set}" = set; then
1859 withval="$with_odbc"
1860
1861 if test "$withval" = yes; then
1862 ac_cv_use_odbc='wxUSE_ODBC=yes'
1863 else
1864 ac_cv_use_odbc='wxUSE_ODBC=no'
1865 fi
1866
1867else
1868
1869 LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
1870 if test "x$LINE" != x ; then
1871 eval "DEFAULT_$LINE"
1872 else
1873 no_cache=1
1874 fi
1875
1876 ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
1877
1878fi
1879
1880
1881 eval "$ac_cv_use_odbc"
1882 if test "$no_cache" != 1; then
1883 echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
1884 fi
1885
1886 if test "$wxUSE_ODBC" = yes; then
1887 echo "$ac_t""yes" 1>&6
1888 else
1889 echo "$ac_t""no" 1>&6
1890 fi
1891
1892
1893
1894
1895
1896 echo $ac_n "checking "for --enable-shared"""... $ac_c" 1>&6
0dcf9893 1897echo "configure:1898: checking "for --enable-shared"" >&5
10f2d63a
VZ
1898 no_cache=0
1899 # Check whether --enable-shared or --disable-shared was given.
1900if test "${enable_shared+set}" = set; then
1901 enableval="$enable_shared"
1902
1903 if test "$enableval" = yes; then
1904 ac_cv_use_shared='wxUSE_SHARED=yes'
1905 else
1906 ac_cv_use_shared='wxUSE_SHARED=no'
1907 fi
1908
1909else
1910
1911 LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
1912 if test "x$LINE" != x ; then
1913 eval "DEFAULT_$LINE"
1914 else
1915 no_cache=1
1916 fi
1917
1918 ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
1919
1920fi
1921
1922
1923 eval "$ac_cv_use_shared"
1924 if test "$no_cache" != 1; then
1925 echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
1926 fi
1927
1928 if test "$wxUSE_SHARED" = yes; then
1929 echo "$ac_t""yes" 1>&6
1930 else
1931 echo "$ac_t""no" 1>&6
1932 fi
1933
1934
00cf1208 1935 echo $ac_n "checking "for --enable-burnt_name"""... $ac_c" 1>&6
0dcf9893 1936echo "configure:1937: checking "for --enable-burnt_name"" >&5
00cf1208
RR
1937 no_cache=0
1938 # Check whether --enable-burnt_name or --disable-burnt_name was given.
1939if test "${enable_burnt_name+set}" = set; then
1940 enableval="$enable_burnt_name"
1941
1942 if test "$enableval" = yes; then
1943 ac_cv_use_burnt_name='wxUSE_BURNT_NAME=yes'
1944 else
1945 ac_cv_use_burnt_name='wxUSE_BURNT_NAME=no'
1946 fi
1947
1948else
1949
1950 LINE=`grep "wxUSE_BURNT_NAME" ${wx_arg_cache_file}`
1951 if test "x$LINE" != x ; then
1952 eval "DEFAULT_$LINE"
1953 else
1954 no_cache=1
1955 fi
1956
1957 ac_cv_use_burnt_name='wxUSE_BURNT_NAME='$DEFAULT_wxUSE_BURNT_NAME
1958
1959fi
1960
1961
1962 eval "$ac_cv_use_burnt_name"
1963 if test "$no_cache" != 1; then
1964 echo $ac_cv_use_burnt_name >> ${wx_arg_cache_file}.tmp
1965 fi
1966
1967 if test "$wxUSE_BURNT_NAME" = yes; then
1968 echo "$ac_t""yes" 1>&6
1969 else
1970 echo "$ac_t""no" 1>&6
1971 fi
1972
1973
10f2d63a 1974 echo $ac_n "checking "for --enable-optimise"""... $ac_c" 1>&6
0dcf9893 1975echo "configure:1976: checking "for --enable-optimise"" >&5
10f2d63a
VZ
1976 no_cache=0
1977 # Check whether --enable-optimise or --disable-optimise was given.
1978if test "${enable_optimise+set}" = set; then
1979 enableval="$enable_optimise"
1980
1981 if test "$enableval" = yes; then
1982 ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
1983 else
1984 ac_cv_use_optimise='wxUSE_OPTIMISE=no'
1985 fi
1986
1987else
1988
1989 LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
1990 if test "x$LINE" != x ; then
1991 eval "DEFAULT_$LINE"
1992 else
1993 no_cache=1
1994 fi
1995
1996 ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
1997
1998fi
1999
2000
2001 eval "$ac_cv_use_optimise"
2002 if test "$no_cache" != 1; then
2003 echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
2004 fi
2005
2006 if test "$wxUSE_OPTIMISE" = yes; then
2007 echo "$ac_t""yes" 1>&6
2008 else
2009 echo "$ac_t""no" 1>&6
2010 fi
2011
2012
2013 echo $ac_n "checking "for --enable-debug"""... $ac_c" 1>&6
0dcf9893 2014echo "configure:2015: checking "for --enable-debug"" >&5
10f2d63a
VZ
2015 no_cache=0
2016 # Check whether --enable-debug or --disable-debug was given.
2017if test "${enable_debug+set}" = set; then
2018 enableval="$enable_debug"
2019
2020 if test "$enableval" = yes; then
2021 ac_cv_use_debug='wxUSE_DEBUG=yes'
2022 else
2023 ac_cv_use_debug='wxUSE_DEBUG=no'
2024 fi
2025
2026else
2027
2028 LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
2029 if test "x$LINE" != x ; then
2030 eval "DEFAULT_$LINE"
2031 else
2032 no_cache=1
2033 fi
2034
2035 ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
2036
2037fi
2038
2039
2040 eval "$ac_cv_use_debug"
2041 if test "$no_cache" != 1; then
2042 echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
2043 fi
2044
2045 if test "$wxUSE_DEBUG" = yes; then
2046 echo "$ac_t""yes" 1>&6
2047 else
2048 echo "$ac_t""no" 1>&6
2049 fi
2050
2051
2052if test "$wxUSE_DEBUG" = "yes"; then
2053 DEFAULT_wxUSE_DEBUG_FLAG=yes
2054 DEFAULT_wxUSE_DEBUG_INFO=yes
2055elif test "$wxUSE_DEBUG" = "no"; then
2056 DEFAULT_wxUSE_DEBUG_FLAG=no
2057 DEFAULT_wxUSE_DEBUG_INFO=no
2058fi
2059
2060
2061 echo $ac_n "checking "for --enable-debug_flag"""... $ac_c" 1>&6
0dcf9893 2062echo "configure:2063: checking "for --enable-debug_flag"" >&5
10f2d63a
VZ
2063 no_cache=0
2064 # Check whether --enable-debug_flag or --disable-debug_flag was given.
2065if test "${enable_debug_flag+set}" = set; then
2066 enableval="$enable_debug_flag"
2067
2068 if test "$enableval" = yes; then
2069 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
2070 else
2071 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
2072 fi
2073
2074else
2075
2076 LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
2077 if test "x$LINE" != x ; then
2078 eval "DEFAULT_$LINE"
2079 else
2080 no_cache=1
2081 fi
2082
2083 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
2084
2085fi
2086
2087
2088 eval "$ac_cv_use_debug_flag"
2089 if test "$no_cache" != 1; then
2090 echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
2091 fi
2092
2093 if test "$wxUSE_DEBUG_FLAG" = yes; then
2094 echo "$ac_t""yes" 1>&6
2095 else
2096 echo "$ac_t""no" 1>&6
2097 fi
2098
2099
2100 echo $ac_n "checking "for --enable-debug_info"""... $ac_c" 1>&6
0dcf9893 2101echo "configure:2102: checking "for --enable-debug_info"" >&5
10f2d63a
VZ
2102 no_cache=0
2103 # Check whether --enable-debug_info or --disable-debug_info was given.
2104if test "${enable_debug_info+set}" = set; then
2105 enableval="$enable_debug_info"
2106
2107 if test "$enableval" = yes; then
2108 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
2109 else
2110 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
2111 fi
2112
2113else
2114
2115 LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
2116 if test "x$LINE" != x ; then
2117 eval "DEFAULT_$LINE"
2118 else
2119 no_cache=1
2120 fi
2121
2122 ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
2123
2124fi
2125
2126
2127 eval "$ac_cv_use_debug_info"
2128 if test "$no_cache" != 1; then
2129 echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
2130 fi
2131
2132 if test "$wxUSE_DEBUG_INFO" = yes; then
2133 echo "$ac_t""yes" 1>&6
2134 else
2135 echo "$ac_t""no" 1>&6
2136 fi
2137
2138
2139 echo $ac_n "checking "for --enable-debug_gdb"""... $ac_c" 1>&6
0dcf9893 2140echo "configure:2141: checking "for --enable-debug_gdb"" >&5
10f2d63a
VZ
2141 no_cache=0
2142 # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
2143if test "${enable_debug_gdb+set}" = set; then
2144 enableval="$enable_debug_gdb"
2145
2146 if test "$enableval" = yes; then
2147 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
2148 else
2149 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
2150 fi
2151
2152else
2153
2154 LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
2155 if test "x$LINE" != x ; then
2156 eval "DEFAULT_$LINE"
2157 else
2158 no_cache=1
2159 fi
2160
2161 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
2162
2163fi
2164
2165
2166 eval "$ac_cv_use_debug_gdb"
2167 if test "$no_cache" != 1; then
2168 echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
2169 fi
2170
2171 if test "$wxUSE_DEBUG_GDB" = yes; then
2172 echo "$ac_t""yes" 1>&6
2173 else
2174 echo "$ac_t""no" 1>&6
2175 fi
2176
2177
2178 echo $ac_n "checking "for --enable-debug_cntxt"""... $ac_c" 1>&6
0dcf9893 2179echo "configure:2180: checking "for --enable-debug_cntxt"" >&5
10f2d63a
VZ
2180 no_cache=0
2181 # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
2182if test "${enable_debug_cntxt+set}" = set; then
2183 enableval="$enable_debug_cntxt"
2184
2185 if test "$enableval" = yes; then
2186 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
2187 else
2188 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
2189 fi
2190
2191else
2192
2193 LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
2194 if test "x$LINE" != x ; then
2195 eval "DEFAULT_$LINE"
2196 else
2197 no_cache=1
2198 fi
2199
2200 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
2201
2202fi
2203
2204
2205 eval "$ac_cv_use_debug_cntxt"
2206 if test "$no_cache" != 1; then
2207 echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
2208 fi
2209
2210 if test "$wxUSE_DEBUG_CONTEXT" = yes; then
2211 echo "$ac_t""yes" 1>&6
2212 else
2213 echo "$ac_t""no" 1>&6
2214 fi
2215
2216
2217 echo $ac_n "checking "for --enable-mem_tracing"""... $ac_c" 1>&6
0dcf9893 2218echo "configure:2219: checking "for --enable-mem_tracing"" >&5
10f2d63a
VZ
2219 no_cache=0
2220 # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
2221if test "${enable_mem_tracing+set}" = set; then
2222 enableval="$enable_mem_tracing"
2223
2224 if test "$enableval" = yes; then
2225 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
2226 else
2227 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
2228 fi
2229
2230else
2231
2232 LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
2233 if test "x$LINE" != x ; then
2234 eval "DEFAULT_$LINE"
2235 else
2236 no_cache=1
2237 fi
2238
2239 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
2240
2241fi
2242
2243
2244 eval "$ac_cv_use_mem_tracing"
2245 if test "$no_cache" != 1; then
2246 echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
2247 fi
2248
2249 if test "$wxUSE_MEM_TRACING" = yes; then
2250 echo "$ac_t""yes" 1>&6
2251 else
2252 echo "$ac_t""no" 1>&6
2253 fi
2254
2255
2256 echo $ac_n "checking "for --enable-profile"""... $ac_c" 1>&6
0dcf9893 2257echo "configure:2258: checking "for --enable-profile"" >&5
10f2d63a
VZ
2258 no_cache=0
2259 # Check whether --enable-profile or --disable-profile was given.
2260if test "${enable_profile+set}" = set; then
2261 enableval="$enable_profile"
2262
2263 if test "$enableval" = yes; then
2264 ac_cv_use_profile='wxUSE_PROFILE=yes'
2265 else
2266 ac_cv_use_profile='wxUSE_PROFILE=no'
2267 fi
2268
2269else
2270
2271 LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
2272 if test "x$LINE" != x ; then
2273 eval "DEFAULT_$LINE"
2274 else
2275 no_cache=1
2276 fi
2277
2278 ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
2279
2280fi
2281
2282
2283 eval "$ac_cv_use_profile"
2284 if test "$no_cache" != 1; then
2285 echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
2286 fi
2287
2288 if test "$wxUSE_PROFILE" = yes; then
2289 echo "$ac_t""yes" 1>&6
2290 else
2291 echo "$ac_t""no" 1>&6
2292 fi
2293
2294
2295 echo $ac_n "checking "for --enable-no_rtti"""... $ac_c" 1>&6
0dcf9893 2296echo "configure:2297: checking "for --enable-no_rtti"" >&5
10f2d63a
VZ
2297 no_cache=0
2298 # Check whether --enable-no_rtti or --disable-no_rtti was given.
2299if test "${enable_no_rtti+set}" = set; then
2300 enableval="$enable_no_rtti"
2301
2302 if test "$enableval" = yes; then
2303 ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
2304 else
2305 ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
2306 fi
2307
2308else
2309
2310 LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
2311 if test "x$LINE" != x ; then
2312 eval "DEFAULT_$LINE"
2313 else
2314 no_cache=1
2315 fi
2316
2317 ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
2318
2319fi
2320
2321
2322 eval "$ac_cv_use_no_rtti"
2323 if test "$no_cache" != 1; then
2324 echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
2325 fi
2326
2327 if test "$wxUSE_NO_RTTI" = yes; then
2328 echo "$ac_t""yes" 1>&6
2329 else
2330 echo "$ac_t""no" 1>&6
2331 fi
2332
2333
2334 echo $ac_n "checking "for --enable-no_exceptions"""... $ac_c" 1>&6
0dcf9893 2335echo "configure:2336: checking "for --enable-no_exceptions"" >&5
10f2d63a
VZ
2336 no_cache=0
2337 # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
2338if test "${enable_no_exceptions+set}" = set; then
2339 enableval="$enable_no_exceptions"
2340
2341 if test "$enableval" = yes; then
2342 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
2343 else
2344 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
2345 fi
2346
2347else
2348
2349 LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
2350 if test "x$LINE" != x ; then
2351 eval "DEFAULT_$LINE"
2352 else
2353 no_cache=1
2354 fi
2355
2356 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
2357
2358fi
2359
2360
2361 eval "$ac_cv_use_no_exceptions"
2362 if test "$no_cache" != 1; then
2363 echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
2364 fi
2365
2366 if test "$wxUSE_NO_EXCEPTIONS" = yes; then
2367 echo "$ac_t""yes" 1>&6
2368 else
2369 echo "$ac_t""no" 1>&6
2370 fi
2371
2372
2373 echo $ac_n "checking "for --enable-permissive"""... $ac_c" 1>&6
0dcf9893 2374echo "configure:2375: checking "for --enable-permissive"" >&5
10f2d63a
VZ
2375 no_cache=0
2376 # Check whether --enable-permissive or --disable-permissive was given.
2377if test "${enable_permissive+set}" = set; then
2378 enableval="$enable_permissive"
2379
2380 if test "$enableval" = yes; then
2381 ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
2382 else
2383 ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
2384 fi
2385
2386else
2387
2388 LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
2389 if test "x$LINE" != x ; then
2390 eval "DEFAULT_$LINE"
2391 else
2392 no_cache=1
2393 fi
2394
2395 ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
2396
2397fi
2398
2399
2400 eval "$ac_cv_use_permissive"
2401 if test "$no_cache" != 1; then
2402 echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
2403 fi
2404
2405 if test "$wxUSE_PERMISSIVE" = yes; then
2406 echo "$ac_t""yes" 1>&6
2407 else
2408 echo "$ac_t""no" 1>&6
2409 fi
2410
2411
2412 echo $ac_n "checking "for --enable-no_deps"""... $ac_c" 1>&6
0dcf9893 2413echo "configure:2414: checking "for --enable-no_deps"" >&5
10f2d63a
VZ
2414 no_cache=0
2415 # Check whether --enable-no_deps or --disable-no_deps was given.
2416if test "${enable_no_deps+set}" = set; then
2417 enableval="$enable_no_deps"
2418
2419 if test "$enableval" = yes; then
2420 ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
2421 else
2422 ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
2423 fi
2424
2425else
2426
2427 LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
2428 if test "x$LINE" != x ; then
2429 eval "DEFAULT_$LINE"
2430 else
2431 no_cache=1
2432 fi
2433
2434 ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
2435
2436fi
2437
2438
2439 eval "$ac_cv_use_no_deps"
2440 if test "$no_cache" != 1; then
2441 echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
2442 fi
2443
2444 if test "$wxUSE_NO_DEPS" = yes; then
2445 echo "$ac_t""yes" 1>&6
2446 else
2447 echo "$ac_t""no" 1>&6
2448 fi
2449
2450
2451
2452
2453 echo $ac_n "checking "for --enable-intl"""... $ac_c" 1>&6
0dcf9893 2454echo "configure:2455: checking "for --enable-intl"" >&5
10f2d63a
VZ
2455 no_cache=0
2456 # Check whether --enable-intl or --disable-intl was given.
2457if test "${enable_intl+set}" = set; then
2458 enableval="$enable_intl"
2459
2460 if test "$enableval" = yes; then
2461 ac_cv_use_intl='wxUSE_INTL=yes'
2462 else
2463 ac_cv_use_intl='wxUSE_INTL=no'
2464 fi
2465
2466else
2467
2468 LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
2469 if test "x$LINE" != x ; then
2470 eval "DEFAULT_$LINE"
2471 else
2472 no_cache=1
2473 fi
2474
2475 ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
2476
2477fi
2478
2479
2480 eval "$ac_cv_use_intl"
2481 if test "$no_cache" != 1; then
2482 echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
2483 fi
2484
2485 if test "$wxUSE_INTL" = yes; then
2486 echo "$ac_t""yes" 1>&6
2487 else
2488 echo "$ac_t""no" 1>&6
2489 fi
2490
2491
2492 echo $ac_n "checking "for --enable-config"""... $ac_c" 1>&6
0dcf9893 2493echo "configure:2494: checking "for --enable-config"" >&5
10f2d63a
VZ
2494 no_cache=0
2495 # Check whether --enable-config or --disable-config was given.
2496if test "${enable_config+set}" = set; then
2497 enableval="$enable_config"
2498
2499 if test "$enableval" = yes; then
2500 ac_cv_use_config='wxUSE_CONFIG=yes'
2501 else
2502 ac_cv_use_config='wxUSE_CONFIG=no'
2503 fi
2504
2505else
2506
2507 LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
2508 if test "x$LINE" != x ; then
2509 eval "DEFAULT_$LINE"
2510 else
2511 no_cache=1
2512 fi
2513
2514 ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
2515
2516fi
2517
2518
2519 eval "$ac_cv_use_config"
2520 if test "$no_cache" != 1; then
2521 echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
2522 fi
2523
2524 if test "$wxUSE_CONFIG" = yes; then
2525 echo "$ac_t""yes" 1>&6
2526 else
2527 echo "$ac_t""no" 1>&6
2528 fi
2529
2530
b12915c1
VZ
2531if test "$wxUSE_GUI" = "yes"; then
2532
10f2d63a 2533 echo $ac_n "checking "for --enable-sockets"""... $ac_c" 1>&6
0dcf9893 2534echo "configure:2535: checking "for --enable-sockets"" >&5
10f2d63a
VZ
2535 no_cache=0
2536 # Check whether --enable-sockets or --disable-sockets was given.
2537if test "${enable_sockets+set}" = set; then
2538 enableval="$enable_sockets"
2539
2540 if test "$enableval" = yes; then
2541 ac_cv_use_sockets='wxUSE_SOCKETS=yes'
2542 else
2543 ac_cv_use_sockets='wxUSE_SOCKETS=no'
2544 fi
2545
2546else
2547
2548 LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
2549 if test "x$LINE" != x ; then
2550 eval "DEFAULT_$LINE"
2551 else
2552 no_cache=1
2553 fi
2554
2555 ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
2556
2557fi
2558
2559
2560 eval "$ac_cv_use_sockets"
2561 if test "$no_cache" != 1; then
2562 echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
2563 fi
2564
2565 if test "$wxUSE_SOCKETS" = yes; then
2566 echo "$ac_t""yes" 1>&6
2567 else
2568 echo "$ac_t""no" 1>&6
2569 fi
2570
b12915c1
VZ
2571else
2572wxUSE_SOCKETS=no
2573fi
2574
10f2d63a
VZ
2575
2576 echo $ac_n "checking "for --enable-dialupman"""... $ac_c" 1>&6
0dcf9893 2577echo "configure:2578: checking "for --enable-dialupman"" >&5
10f2d63a
VZ
2578 no_cache=0
2579 # Check whether --enable-dialupman or --disable-dialupman was given.
2580if test "${enable_dialupman+set}" = set; then
2581 enableval="$enable_dialupman"
2582
2583 if test "$enableval" = yes; then
2584 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
2585 else
2586 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
2587 fi
2588
2589else
2590
2591 LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
2592 if test "x$LINE" != x ; then
2593 eval "DEFAULT_$LINE"
2594 else
2595 no_cache=1
2596 fi
2597
2598 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
2599
2600fi
2601
2602
2603 eval "$ac_cv_use_dialupman"
2604 if test "$no_cache" != 1; then
2605 echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
2606 fi
2607
2608 if test "$wxUSE_DIALUP_MANAGER" = yes; then
2609 echo "$ac_t""yes" 1>&6
2610 else
2611 echo "$ac_t""no" 1>&6
2612 fi
2613
2614
2615 echo $ac_n "checking "for --enable-ipc"""... $ac_c" 1>&6
0dcf9893 2616echo "configure:2617: checking "for --enable-ipc"" >&5
10f2d63a
VZ
2617 no_cache=0
2618 # Check whether --enable-ipc or --disable-ipc was given.
2619if test "${enable_ipc+set}" = set; then
2620 enableval="$enable_ipc"
2621
2622 if test "$enableval" = yes; then
2623 ac_cv_use_ipc='wxUSE_IPC=yes'
2624 else
2625 ac_cv_use_ipc='wxUSE_IPC=no'
2626 fi
2627
2628else
2629
2630 LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
2631 if test "x$LINE" != x ; then
2632 eval "DEFAULT_$LINE"
2633 else
2634 no_cache=1
2635 fi
2636
2637 ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
2638
2639fi
2640
2641
2642 eval "$ac_cv_use_ipc"
2643 if test "$no_cache" != 1; then
2644 echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
2645 fi
2646
2647 if test "$wxUSE_IPC" = yes; then
2648 echo "$ac_t""yes" 1>&6
2649 else
2650 echo "$ac_t""no" 1>&6
2651 fi
2652
2653
2654 echo $ac_n "checking "for --enable-apple_ieee"""... $ac_c" 1>&6
0dcf9893 2655echo "configure:2656: checking "for --enable-apple_ieee"" >&5
10f2d63a
VZ
2656 no_cache=0
2657 # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
2658if test "${enable_apple_ieee+set}" = set; then
2659 enableval="$enable_apple_ieee"
2660
2661 if test "$enableval" = yes; then
2662 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
2663 else
2664 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
2665 fi
2666
2667else
2668
2669 LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
2670 if test "x$LINE" != x ; then
2671 eval "DEFAULT_$LINE"
2672 else
2673 no_cache=1
2674 fi
2675
2676 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
2677
2678fi
2679
2680
2681 eval "$ac_cv_use_apple_ieee"
2682 if test "$no_cache" != 1; then
2683 echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
2684 fi
2685
2686 if test "$wxUSE_APPLE_IEEE" = yes; then
2687 echo "$ac_t""yes" 1>&6
2688 else
2689 echo "$ac_t""no" 1>&6
2690 fi
2691
2692
2693 echo $ac_n "checking "for --enable-timedate"""... $ac_c" 1>&6
0dcf9893 2694echo "configure:2695: checking "for --enable-timedate"" >&5
10f2d63a
VZ
2695 no_cache=0
2696 # Check whether --enable-timedate or --disable-timedate was given.
2697if test "${enable_timedate+set}" = set; then
2698 enableval="$enable_timedate"
2699
2700 if test "$enableval" = yes; then
2701 ac_cv_use_timedate='wxUSE_TIMEDATE=yes'
2702 else
2703 ac_cv_use_timedate='wxUSE_TIMEDATE=no'
2704 fi
2705
2706else
2707
2708 LINE=`grep "wxUSE_TIMEDATE" ${wx_arg_cache_file}`
2709 if test "x$LINE" != x ; then
2710 eval "DEFAULT_$LINE"
2711 else
2712 no_cache=1
2713 fi
2714
2715 ac_cv_use_timedate='wxUSE_TIMEDATE='$DEFAULT_wxUSE_TIMEDATE
2716
2717fi
2718
2719
2720 eval "$ac_cv_use_timedate"
2721 if test "$no_cache" != 1; then
2722 echo $ac_cv_use_timedate >> ${wx_arg_cache_file}.tmp
2723 fi
2724
2725 if test "$wxUSE_TIMEDATE" = yes; then
2726 echo "$ac_t""yes" 1>&6
2727 else
2728 echo "$ac_t""no" 1>&6
2729 fi
2730
2731
2732 echo $ac_n "checking "for --enable-wave"""... $ac_c" 1>&6
0dcf9893 2733echo "configure:2734: checking "for --enable-wave"" >&5
10f2d63a
VZ
2734 no_cache=0
2735 # Check whether --enable-wave or --disable-wave was given.
2736if test "${enable_wave+set}" = set; then
2737 enableval="$enable_wave"
2738
2739 if test "$enableval" = yes; then
2740 ac_cv_use_wave='wxUSE_WAVE=yes'
2741 else
2742 ac_cv_use_wave='wxUSE_WAVE=no'
2743 fi
2744
2745else
2746
2747 LINE=`grep "wxUSE_WAVE" ${wx_arg_cache_file}`
2748 if test "x$LINE" != x ; then
2749 eval "DEFAULT_$LINE"
2750 else
2751 no_cache=1
2752 fi
2753
2754 ac_cv_use_wave='wxUSE_WAVE='$DEFAULT_wxUSE_WAVE
2755
2756fi
2757
2758
2759 eval "$ac_cv_use_wave"
2760 if test "$no_cache" != 1; then
2761 echo $ac_cv_use_wave >> ${wx_arg_cache_file}.tmp
2762 fi
2763
2764 if test "$wxUSE_WAVE" = yes; then
2765 echo "$ac_t""yes" 1>&6
2766 else
2767 echo "$ac_t""no" 1>&6
2768 fi
2769
2770
2771 echo $ac_n "checking "for --enable-fraction"""... $ac_c" 1>&6
0dcf9893 2772echo "configure:2773: checking "for --enable-fraction"" >&5
10f2d63a
VZ
2773 no_cache=0
2774 # Check whether --enable-fraction or --disable-fraction was given.
2775if test "${enable_fraction+set}" = set; then
2776 enableval="$enable_fraction"
2777
2778 if test "$enableval" = yes; then
2779 ac_cv_use_fraction='wxUSE_FRACTION=yes'
2780 else
2781 ac_cv_use_fraction='wxUSE_FRACTION=no'
2782 fi
2783
2784else
2785
2786 LINE=`grep "wxUSE_FRACTION" ${wx_arg_cache_file}`
2787 if test "x$LINE" != x ; then
2788 eval "DEFAULT_$LINE"
2789 else
2790 no_cache=1
2791 fi
2792
2793 ac_cv_use_fraction='wxUSE_FRACTION='$DEFAULT_wxUSE_FRACTION
2794
2795fi
2796
2797
2798 eval "$ac_cv_use_fraction"
2799 if test "$no_cache" != 1; then
2800 echo $ac_cv_use_fraction >> ${wx_arg_cache_file}.tmp
2801 fi
2802
2803 if test "$wxUSE_FRACTION" = yes; then
2804 echo "$ac_t""yes" 1>&6
2805 else
2806 echo "$ac_t""no" 1>&6
2807 fi
2808
2809
2810 echo $ac_n "checking "for --enable-dynlib"""... $ac_c" 1>&6
0dcf9893 2811echo "configure:2812: checking "for --enable-dynlib"" >&5
10f2d63a
VZ
2812 no_cache=0
2813 # Check whether --enable-dynlib or --disable-dynlib was given.
2814if test "${enable_dynlib+set}" = set; then
2815 enableval="$enable_dynlib"
2816
2817 if test "$enableval" = yes; then
2818 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
2819 else
2820 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
2821 fi
2822
2823else
2824
2825 LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
2826 if test "x$LINE" != x ; then
2827 eval "DEFAULT_$LINE"
2828 else
2829 no_cache=1
2830 fi
2831
2832 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
2833
2834fi
2835
2836
2837 eval "$ac_cv_use_dynlib"
2838 if test "$no_cache" != 1; then
2839 echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
2840 fi
2841
2842 if test "$wxUSE_DYNLIB_CLASS" = yes; then
2843 echo "$ac_t""yes" 1>&6
2844 else
2845 echo "$ac_t""no" 1>&6
2846 fi
2847
2848
2849 echo $ac_n "checking "for --enable-longlong"""... $ac_c" 1>&6
0dcf9893 2850echo "configure:2851: checking "for --enable-longlong"" >&5
10f2d63a
VZ
2851 no_cache=0
2852 # Check whether --enable-longlong or --disable-longlong was given.
2853if test "${enable_longlong+set}" = set; then
2854 enableval="$enable_longlong"
2855
2856 if test "$enableval" = yes; then
2857 ac_cv_use_longlong='wxUSE_LONGLONG=yes'
2858 else
2859 ac_cv_use_longlong='wxUSE_LONGLONG=no'
2860 fi
2861
2862else
2863
2864 LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
2865 if test "x$LINE" != x ; then
2866 eval "DEFAULT_$LINE"
2867 else
2868 no_cache=1
2869 fi
2870
2871 ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
2872
2873fi
2874
2875
2876 eval "$ac_cv_use_longlong"
2877 if test "$no_cache" != 1; then
2878 echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
2879 fi
2880
2881 if test "$wxUSE_LONGLONG" = yes; then
2882 echo "$ac_t""yes" 1>&6
2883 else
2884 echo "$ac_t""no" 1>&6
2885 fi
2886
2887
2888 echo $ac_n "checking "for --enable-log"""... $ac_c" 1>&6
0dcf9893 2889echo "configure:2890: checking "for --enable-log"" >&5
10f2d63a
VZ
2890 no_cache=0
2891 # Check whether --enable-log or --disable-log was given.
2892if test "${enable_log+set}" = set; then
2893 enableval="$enable_log"
2894
2895 if test "$enableval" = yes; then
2896 ac_cv_use_log='wxUSE_LOG=yes'
2897 else
2898 ac_cv_use_log='wxUSE_LOG=no'
2899 fi
2900
2901else
2902
2903 LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
2904 if test "x$LINE" != x ; then
2905 eval "DEFAULT_$LINE"
2906 else
2907 no_cache=1
2908 fi
2909
2910 ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
2911
2912fi
2913
2914
2915 eval "$ac_cv_use_log"
2916 if test "$no_cache" != 1; then
2917 echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
2918 fi
2919
2920 if test "$wxUSE_LOG" = yes; then
2921 echo "$ac_t""yes" 1>&6
2922 else
2923 echo "$ac_t""no" 1>&6
2924 fi
2925
2926
2927 echo $ac_n "checking "for --enable-streams"""... $ac_c" 1>&6
0dcf9893 2928echo "configure:2929: checking "for --enable-streams"" >&5
10f2d63a
VZ
2929 no_cache=0
2930 # Check whether --enable-streams or --disable-streams was given.
2931if test "${enable_streams+set}" = set; then
2932 enableval="$enable_streams"
2933
2934 if test "$enableval" = yes; then
2935 ac_cv_use_streams='wxUSE_STREAMS=yes'
2936 else
2937 ac_cv_use_streams='wxUSE_STREAMS=no'
2938 fi
2939
2940else
2941
2942 LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
2943 if test "x$LINE" != x ; then
2944 eval "DEFAULT_$LINE"
2945 else
2946 no_cache=1
2947 fi
2948
2949 ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
2950
2951fi
2952
2953
2954 eval "$ac_cv_use_streams"
2955 if test "$no_cache" != 1; then
2956 echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
2957 fi
2958
2959 if test "$wxUSE_STREAMS" = yes; then
2960 echo "$ac_t""yes" 1>&6
2961 else
2962 echo "$ac_t""no" 1>&6
2963 fi
2964
2965
2966 echo $ac_n "checking "for --enable-file"""... $ac_c" 1>&6
0dcf9893 2967echo "configure:2968: checking "for --enable-file"" >&5
10f2d63a
VZ
2968 no_cache=0
2969 # Check whether --enable-file or --disable-file was given.
2970if test "${enable_file+set}" = set; then
2971 enableval="$enable_file"
2972
2973 if test "$enableval" = yes; then
2974 ac_cv_use_file='wxUSE_FILE=yes'
2975 else
2976 ac_cv_use_file='wxUSE_FILE=no'
2977 fi
2978
2979else
2980
2981 LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
2982 if test "x$LINE" != x ; then
2983 eval "DEFAULT_$LINE"
2984 else
2985 no_cache=1
2986 fi
2987
2988 ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
2989
2990fi
2991
2992
2993 eval "$ac_cv_use_file"
2994 if test "$no_cache" != 1; then
2995 echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
2996 fi
2997
2998 if test "$wxUSE_FILE" = yes; then
2999 echo "$ac_t""yes" 1>&6
3000 else
3001 echo "$ac_t""no" 1>&6
3002 fi
3003
3004
3005 echo $ac_n "checking "for --enable-textfile"""... $ac_c" 1>&6
0dcf9893 3006echo "configure:3007: checking "for --enable-textfile"" >&5
10f2d63a
VZ
3007 no_cache=0
3008 # Check whether --enable-textfile or --disable-textfile was given.
3009if test "${enable_textfile+set}" = set; then
3010 enableval="$enable_textfile"
3011
3012 if test "$enableval" = yes; then
3013 ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
3014 else
3015 ac_cv_use_textfile='wxUSE_TEXTFILE=no'
3016 fi
3017
3018else
3019
3020 LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
3021 if test "x$LINE" != x ; then
3022 eval "DEFAULT_$LINE"
3023 else
3024 no_cache=1
3025 fi
3026
3027 ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
3028
3029fi
3030
3031
3032 eval "$ac_cv_use_textfile"
3033 if test "$no_cache" != 1; then
3034 echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
3035 fi
3036
3037 if test "$wxUSE_TEXTFILE" = yes; then
3038 echo "$ac_t""yes" 1>&6
3039 else
3040 echo "$ac_t""no" 1>&6
3041 fi
3042
3043
3044 echo $ac_n "checking "for --enable-unicode"""... $ac_c" 1>&6
0dcf9893 3045echo "configure:3046: checking "for --enable-unicode"" >&5
10f2d63a
VZ
3046 no_cache=0
3047 # Check whether --enable-unicode or --disable-unicode was given.
3048if test "${enable_unicode+set}" = set; then
3049 enableval="$enable_unicode"
3050
3051 if test "$enableval" = yes; then
3052 ac_cv_use_unicode='wxUSE_UNICODE=yes'
3053 else
3054 ac_cv_use_unicode='wxUSE_UNICODE=no'
3055 fi
3056
3057else
3058
3059 LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
3060 if test "x$LINE" != x ; then
3061 eval "DEFAULT_$LINE"
3062 else
3063 no_cache=1
3064 fi
3065
3066 ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
3067
3068fi
3069
3070
3071 eval "$ac_cv_use_unicode"
3072 if test "$no_cache" != 1; then
3073 echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
3074 fi
3075
3076 if test "$wxUSE_UNICODE" = yes; then
3077 echo "$ac_t""yes" 1>&6
3078 else
3079 echo "$ac_t""no" 1>&6
3080 fi
3081
3082
3083 echo $ac_n "checking "for --enable-wcsrtombs"""... $ac_c" 1>&6
0dcf9893 3084echo "configure:3085: checking "for --enable-wcsrtombs"" >&5
10f2d63a
VZ
3085 no_cache=0
3086 # Check whether --enable-wcsrtombs or --disable-wcsrtombs was given.
3087if test "${enable_wcsrtombs+set}" = set; then
3088 enableval="$enable_wcsrtombs"
3089
3090 if test "$enableval" = yes; then
3091 ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS=yes'
3092 else
3093 ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS=no'
3094 fi
3095
3096else
3097
3098 LINE=`grep "wxUSE_WCSRTOMBS" ${wx_arg_cache_file}`
3099 if test "x$LINE" != x ; then
3100 eval "DEFAULT_$LINE"
3101 else
3102 no_cache=1
3103 fi
3104
3105 ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS='$DEFAULT_wxUSE_WCSRTOMBS
3106
3107fi
3108
3109
3110 eval "$ac_cv_use_wcsrtombs"
3111 if test "$no_cache" != 1; then
3112 echo $ac_cv_use_wcsrtombs >> ${wx_arg_cache_file}.tmp
3113 fi
3114
3115 if test "$wxUSE_WCSRTOMBS" = yes; then
3116 echo "$ac_t""yes" 1>&6
3117 else
3118 echo "$ac_t""no" 1>&6
3119 fi
3120
3121
3122 echo $ac_n "checking "for --enable-wxprintfv"""... $ac_c" 1>&6
0dcf9893 3123echo "configure:3124: checking "for --enable-wxprintfv"" >&5
10f2d63a
VZ
3124 no_cache=0
3125 # Check whether --enable-wxprintfv or --disable-wxprintfv was given.
3126if test "${enable_wxprintfv+set}" = set; then
3127 enableval="$enable_wxprintfv"
3128
3129 if test "$enableval" = yes; then
3130 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes'
3131 else
3132 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no'
3133 fi
3134
3135else
3136
3137 LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}`
3138 if test "x$LINE" != x ; then
3139 eval "DEFAULT_$LINE"
3140 else
3141 no_cache=1
3142 fi
3143
3144 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF
3145
3146fi
3147
3148
3149 eval "$ac_cv_use_wxprintfv"
3150 if test "$no_cache" != 1; then
3151 echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp
3152 fi
3153
3154 if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then
3155 echo "$ac_t""yes" 1>&6
3156 else
3157 echo "$ac_t""no" 1>&6
3158 fi
3159
3160
3161 echo $ac_n "checking "for --enable-joystick"""... $ac_c" 1>&6
0dcf9893 3162echo "configure:3163: checking "for --enable-joystick"" >&5
10f2d63a
VZ
3163 no_cache=0
3164 # Check whether --enable-joystick or --disable-joystick was given.
3165if test "${enable_joystick+set}" = set; then
3166 enableval="$enable_joystick"
3167
3168 if test "$enableval" = yes; then
3169 ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
3170 else
3171 ac_cv_use_joystick='wxUSE_JOYSTICK=no'
3172 fi
3173
3174else
3175
3176 LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
3177 if test "x$LINE" != x ; then
3178 eval "DEFAULT_$LINE"
3179 else
3180 no_cache=1
3181 fi
3182
3183 ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
3184
3185fi
3186
3187
3188 eval "$ac_cv_use_joystick"
3189 if test "$no_cache" != 1; then
3190 echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
3191 fi
3192
3193 if test "$wxUSE_JOYSTICK" = yes; then
3194 echo "$ac_t""yes" 1>&6
3195 else
3196 echo "$ac_t""no" 1>&6
3197 fi
3198
3199
3200 echo $ac_n "checking "for --enable-std_iostreams"""... $ac_c" 1>&6
0dcf9893 3201echo "configure:3202: checking "for --enable-std_iostreams"" >&5
10f2d63a
VZ
3202 no_cache=0
3203 # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
3204if test "${enable_std_iostreams+set}" = set; then
3205 enableval="$enable_std_iostreams"
3206
3207 if test "$enableval" = yes; then
3208 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
3209 else
3210 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
3211 fi
3212
3213else
3214
3215 LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
3216 if test "x$LINE" != x ; then
3217 eval "DEFAULT_$LINE"
3218 else
3219 no_cache=1
3220 fi
3221
3222 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
3223
3224fi
3225
3226
3227 eval "$ac_cv_use_std_iostreams"
3228 if test "$no_cache" != 1; then
3229 echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
3230 fi
3231
3232 if test "$wxUSE_STD_IOSTREAM" = yes; then
3233 echo "$ac_t""yes" 1>&6
3234 else
3235 echo "$ac_t""no" 1>&6
3236 fi
3237
3238
24528b0c 3239 echo $ac_n "checking "for --enable-filesystem"""... $ac_c" 1>&6
0dcf9893 3240echo "configure:3241: checking "for --enable-filesystem"" >&5
24528b0c
VS
3241 no_cache=0
3242 # Check whether --enable-filesystem or --disable-filesystem was given.
3243if test "${enable_filesystem+set}" = set; then
3244 enableval="$enable_filesystem"
3245
3246 if test "$enableval" = yes; then
3247 ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
3248 else
3249 ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
3250 fi
3251
3252else
3253
3254 LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}`
3255 if test "x$LINE" != x ; then
3256 eval "DEFAULT_$LINE"
3257 else
3258 no_cache=1
3259 fi
3260
3261 ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
3262
3263fi
3264
3265
3266 eval "$ac_cv_use_filesystem"
3267 if test "$no_cache" != 1; then
3268 echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
3269 fi
3270
3271 if test "$wxUSE_FILESYSTEM" = yes; then
3272 echo "$ac_t""yes" 1>&6
3273 else
3274 echo "$ac_t""no" 1>&6
3275 fi
3276
3277
10f2d63a 3278 echo $ac_n "checking "for --enable-fs_inet"""... $ac_c" 1>&6
0dcf9893 3279echo "configure:3280: checking "for --enable-fs_inet"" >&5
10f2d63a
VZ
3280 no_cache=0
3281 # Check whether --enable-fs_inet or --disable-fs_inet was given.
3282if test "${enable_fs_inet+set}" = set; then
3283 enableval="$enable_fs_inet"
3284
3285 if test "$enableval" = yes; then
3286 ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
3287 else
3288 ac_cv_use_fs_inet='wxUSE_FS_INET=no'
3289 fi
3290
3291else
3292
3293 LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
3294 if test "x$LINE" != x ; then
3295 eval "DEFAULT_$LINE"
3296 else
3297 no_cache=1
3298 fi
3299
3300 ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
3301
3302fi
3303
3304
3305 eval "$ac_cv_use_fs_inet"
3306 if test "$no_cache" != 1; then
3307 echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
3308 fi
3309
3310 if test "$wxUSE_FS_INET" = yes; then
3311 echo "$ac_t""yes" 1>&6
3312 else
3313 echo "$ac_t""no" 1>&6
3314 fi
3315
3316
3317 echo $ac_n "checking "for --enable-fs_zip"""... $ac_c" 1>&6
0dcf9893 3318echo "configure:3319: checking "for --enable-fs_zip"" >&5
10f2d63a
VZ
3319 no_cache=0
3320 # Check whether --enable-fs_zip or --disable-fs_zip was given.
3321if test "${enable_fs_zip+set}" = set; then
3322 enableval="$enable_fs_zip"
3323
3324 if test "$enableval" = yes; then
3325 ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
3326 else
3327 ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
3328 fi
3329
3330else
3331
3332 LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
3333 if test "x$LINE" != x ; then
3334 eval "DEFAULT_$LINE"
3335 else
3336 no_cache=1
3337 fi
3338
3339 ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
3340
3341fi
3342
3343
3344 eval "$ac_cv_use_fs_zip"
3345 if test "$no_cache" != 1; then
3346 echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
3347 fi
3348
3349 if test "$wxUSE_FS_ZIP" = yes; then
3350 echo "$ac_t""yes" 1>&6
3351 else
3352 echo "$ac_t""no" 1>&6
3353 fi
3354
3355
3356 echo $ac_n "checking "for --enable-zipstream"""... $ac_c" 1>&6
0dcf9893 3357echo "configure:3358: checking "for --enable-zipstream"" >&5
10f2d63a
VZ
3358 no_cache=0
3359 # Check whether --enable-zipstream or --disable-zipstream was given.
3360if test "${enable_zipstream+set}" = set; then
3361 enableval="$enable_zipstream"
3362
3363 if test "$enableval" = yes; then
3364 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
3365 else
3366 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
3367 fi
3368
3369else
3370
3371 LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
3372 if test "x$LINE" != x ; then
3373 eval "DEFAULT_$LINE"
3374 else
3375 no_cache=1
3376 fi
3377
3378 ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
3379
3380fi
3381
3382
3383 eval "$ac_cv_use_zipstream"
3384 if test "$no_cache" != 1; then
3385 echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
3386 fi
3387
3388 if test "$wxUSE_ZIPSTREAM" = yes; then
3389 echo "$ac_t""yes" 1>&6
3390 else
3391 echo "$ac_t""no" 1>&6
3392 fi
3393
3394
3395
3396
3397 echo $ac_n "checking "for --enable-threads"""... $ac_c" 1>&6
0dcf9893 3398echo "configure:3399: checking "for --enable-threads"" >&5
10f2d63a
VZ
3399 no_cache=0
3400 # Check whether --enable-threads or --disable-threads was given.
3401if test "${enable_threads+set}" = set; then
3402 enableval="$enable_threads"
3403
3404 if test "$enableval" = yes; then
3405 ac_cv_use_threads='wxUSE_THREADS=yes'
3406 else
3407 ac_cv_use_threads='wxUSE_THREADS=no'
3408 fi
3409
3410else
3411
3412 LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
3413 if test "x$LINE" != x ; then
3414 eval "DEFAULT_$LINE"
3415 else
3416 no_cache=1
3417 fi
3418
3419 ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
3420
3421fi
3422
3423
3424 eval "$ac_cv_use_threads"
3425 if test "$no_cache" != 1; then
3426 echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
3427 fi
3428
3429 if test "$wxUSE_THREADS" = yes; then
3430 echo "$ac_t""yes" 1>&6
3431 else
3432 echo "$ac_t""no" 1>&6
3433 fi
3434
3435
3436 echo $ac_n "checking "for --enable-serial"""... $ac_c" 1>&6
0dcf9893 3437echo "configure:3438: checking "for --enable-serial"" >&5
10f2d63a
VZ
3438 no_cache=0
3439 # Check whether --enable-serial or --disable-serial was given.
3440if test "${enable_serial+set}" = set; then
3441 enableval="$enable_serial"
3442
3443 if test "$enableval" = yes; then
3444 ac_cv_use_serial='wxUSE_SERIAL=yes'
3445 else
3446 ac_cv_use_serial='wxUSE_SERIAL=no'
3447 fi
3448
3449else
3450
3451 LINE=`grep "wxUSE_SERIAL" ${wx_arg_cache_file}`
3452 if test "x$LINE" != x ; then
3453 eval "DEFAULT_$LINE"
3454 else
3455 no_cache=1
3456 fi
3457
3458 ac_cv_use_serial='wxUSE_SERIAL='$DEFAULT_wxUSE_SERIAL
3459
3460fi
3461
3462
3463 eval "$ac_cv_use_serial"
3464 if test "$no_cache" != 1; then
3465 echo $ac_cv_use_serial >> ${wx_arg_cache_file}.tmp
3466 fi
3467
3468 if test "$wxUSE_SERIAL" = yes; then
3469 echo "$ac_t""yes" 1>&6
3470 else
3471 echo "$ac_t""no" 1>&6
3472 fi
3473
3474
b12915c1
VZ
3475if test "$wxUSE_GUI" = "yes"; then
3476
10f2d63a
VZ
3477
3478
3479 echo $ac_n "checking "for --enable-docview"""... $ac_c" 1>&6
0dcf9893 3480echo "configure:3481: checking "for --enable-docview"" >&5
10f2d63a
VZ
3481 no_cache=0
3482 # Check whether --enable-docview or --disable-docview was given.
3483if test "${enable_docview+set}" = set; then
3484 enableval="$enable_docview"
3485
3486 if test "$enableval" = yes; then
3487 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
3488 else
3489 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
3490 fi
3491
3492else
3493
3494 LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
3495 if test "x$LINE" != x ; then
3496 eval "DEFAULT_$LINE"
3497 else
3498 no_cache=1
3499 fi
3500
3501 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
3502
3503fi
3504
3505
3506 eval "$ac_cv_use_docview"
3507 if test "$no_cache" != 1; then
3508 echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
3509 fi
3510
3511 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
3512 echo "$ac_t""yes" 1>&6
3513 else
3514 echo "$ac_t""no" 1>&6
3515 fi
3516
3517
3518 echo $ac_n "checking "for --enable-help"""... $ac_c" 1>&6
0dcf9893 3519echo "configure:3520: checking "for --enable-help"" >&5
10f2d63a
VZ
3520 no_cache=0
3521 # Check whether --enable-help or --disable-help was given.
3522if test "${enable_help+set}" = set; then
3523 enableval="$enable_help"
3524
3525 if test "$enableval" = yes; then
3526 ac_cv_use_help='wxUSE_HELP=yes'
3527 else
3528 ac_cv_use_help='wxUSE_HELP=no'
3529 fi
3530
3531else
3532
3533 LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
3534 if test "x$LINE" != x ; then
3535 eval "DEFAULT_$LINE"
3536 else
3537 no_cache=1
3538 fi
3539
3540 ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
3541
3542fi
3543
3544
3545 eval "$ac_cv_use_help"
3546 if test "$no_cache" != 1; then
3547 echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
3548 fi
3549
3550 if test "$wxUSE_HELP" = yes; then
3551 echo "$ac_t""yes" 1>&6
3552 else
3553 echo "$ac_t""no" 1>&6
3554 fi
3555
3556
3557 echo $ac_n "checking "for --enable-constraints"""... $ac_c" 1>&6
0dcf9893 3558echo "configure:3559: checking "for --enable-constraints"" >&5
10f2d63a
VZ
3559 no_cache=0
3560 # Check whether --enable-constraints or --disable-constraints was given.
3561if test "${enable_constraints+set}" = set; then
3562 enableval="$enable_constraints"
3563
3564 if test "$enableval" = yes; then
3565 ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
3566 else
3567 ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
3568 fi
3569
3570else
3571
3572 LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
3573 if test "x$LINE" != x ; then
3574 eval "DEFAULT_$LINE"
3575 else
3576 no_cache=1
3577 fi
3578
3579 ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
3580
3581fi
3582
3583
3584 eval "$ac_cv_use_constraints"
3585 if test "$no_cache" != 1; then
3586 echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
3587 fi
3588
3589 if test "$wxUSE_CONSTRAINTS" = yes; then
3590 echo "$ac_t""yes" 1>&6
3591 else
3592 echo "$ac_t""no" 1>&6
3593 fi
3594
3595
3596 echo $ac_n "checking "for --enable-printarch"""... $ac_c" 1>&6
0dcf9893 3597echo "configure:3598: checking "for --enable-printarch"" >&5
10f2d63a
VZ
3598 no_cache=0
3599 # Check whether --enable-printarch or --disable-printarch was given.
3600if test "${enable_printarch+set}" = set; then
3601 enableval="$enable_printarch"
3602
3603 if test "$enableval" = yes; then
3604 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
3605 else
3606 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
3607 fi
3608
3609else
3610
3611 LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
3612 if test "x$LINE" != x ; then
3613 eval "DEFAULT_$LINE"
3614 else
3615 no_cache=1
3616 fi
3617
3618 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
3619
3620fi
3621
3622
3623 eval "$ac_cv_use_printarch"
3624 if test "$no_cache" != 1; then
3625 echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
3626 fi
3627
3628 if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
3629 echo "$ac_t""yes" 1>&6
3630 else
3631 echo "$ac_t""no" 1>&6
3632 fi
3633
3634
3635 echo $ac_n "checking "for --enable-mdi"""... $ac_c" 1>&6
0dcf9893 3636echo "configure:3637: checking "for --enable-mdi"" >&5
10f2d63a
VZ
3637 no_cache=0
3638 # Check whether --enable-mdi or --disable-mdi was given.
3639if test "${enable_mdi+set}" = set; then
3640 enableval="$enable_mdi"
3641
3642 if test "$enableval" = yes; then
3643 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=yes'
3644 else
3645 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=no'
3646 fi
3647
3648else
3649
3650 LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
3651 if test "x$LINE" != x ; then
3652 eval "DEFAULT_$LINE"
3653 else
3654 no_cache=1
3655 fi
3656
3657 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
3658
3659fi
3660
3661
3662 eval "$ac_cv_use_mdi"
3663 if test "$no_cache" != 1; then
3664 echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
3665 fi
3666
3667 if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
3668 echo "$ac_t""yes" 1>&6
3669 else
3670 echo "$ac_t""no" 1>&6
3671 fi
3672
3673
3674
3675 echo $ac_n "checking "for --enable-postscript"""... $ac_c" 1>&6
0dcf9893 3676echo "configure:3677: checking "for --enable-postscript"" >&5
10f2d63a
VZ
3677 no_cache=0
3678 # Check whether --enable-postscript or --disable-postscript was given.
3679if test "${enable_postscript+set}" = set; then
3680 enableval="$enable_postscript"
3681
3682 if test "$enableval" = yes; then
3683 ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
3684 else
3685 ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
3686 fi
3687
3688else
3689
3690 LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
3691 if test "x$LINE" != x ; then
3692 eval "DEFAULT_$LINE"
3693 else
3694 no_cache=1
3695 fi
3696
3697 ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
3698
3699fi
3700
3701
3702 eval "$ac_cv_use_postscript"
3703 if test "$no_cache" != 1; then
3704 echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
3705 fi
3706
3707 if test "$wxUSE_POSTSCRIPT" = yes; then
3708 echo "$ac_t""yes" 1>&6
3709 else
3710 echo "$ac_t""no" 1>&6
3711 fi
3712
3713
3714
3715
3716 echo $ac_n "checking "for --enable-prologio"""... $ac_c" 1>&6
0dcf9893 3717echo "configure:3718: checking "for --enable-prologio"" >&5
10f2d63a
VZ
3718 no_cache=0
3719 # Check whether --enable-prologio or --disable-prologio was given.
3720if test "${enable_prologio+set}" = set; then
3721 enableval="$enable_prologio"
3722
3723 if test "$enableval" = yes; then
3724 ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
3725 else
3726 ac_cv_use_prologio='wxUSE_PROLOGIO=no'
3727 fi
3728
3729else
3730
3731 LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
3732 if test "x$LINE" != x ; then
3733 eval "DEFAULT_$LINE"
3734 else
3735 no_cache=1
3736 fi
3737
3738 ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
3739
3740fi
3741
3742
3743 eval "$ac_cv_use_prologio"
3744 if test "$no_cache" != 1; then
3745 echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
3746 fi
3747
3748 if test "$wxUSE_PROLOGIO" = yes; then
3749 echo "$ac_t""yes" 1>&6
3750 else
3751 echo "$ac_t""no" 1>&6
3752 fi
3753
3754
3755 echo $ac_n "checking "for --enable-resources"""... $ac_c" 1>&6
0dcf9893 3756echo "configure:3757: checking "for --enable-resources"" >&5
10f2d63a
VZ
3757 no_cache=0
3758 # Check whether --enable-resources or --disable-resources was given.
3759if test "${enable_resources+set}" = set; then
3760 enableval="$enable_resources"
3761
3762 if test "$enableval" = yes; then
3763 ac_cv_use_resources='wxUSE_RESOURCES=yes'
3764 else
3765 ac_cv_use_resources='wxUSE_RESOURCES=no'
3766 fi
3767
3768else
3769
3770 LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
3771 if test "x$LINE" != x ; then
3772 eval "DEFAULT_$LINE"
3773 else
3774 no_cache=1
3775 fi
3776
3777 ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
3778
3779fi
3780
3781
3782 eval "$ac_cv_use_resources"
3783 if test "$no_cache" != 1; then
3784 echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
3785 fi
3786
3787 if test "$wxUSE_RESOURCES" = yes; then
3788 echo "$ac_t""yes" 1>&6
3789 else
3790 echo "$ac_t""no" 1>&6
3791 fi
3792
3793
3794
3795 echo $ac_n "checking "for --enable-xresources"""... $ac_c" 1>&6
0dcf9893 3796echo "configure:3797: checking "for --enable-xresources"" >&5
10f2d63a
VZ
3797 no_cache=0
3798 # Check whether --enable-xresources or --disable-xresources was given.
3799if test "${enable_xresources+set}" = set; then
3800 enableval="$enable_xresources"
3801
3802 if test "$enableval" = yes; then
3803 ac_cv_use_xresources='wxUSE_X_RESOURCES=yes'
3804 else
3805 ac_cv_use_xresources='wxUSE_X_RESOURCES=no'
3806 fi
3807
3808else
3809
3810 LINE=`grep "wxUSE_X_RESOURCES" ${wx_arg_cache_file}`
3811 if test "x$LINE" != x ; then
3812 eval "DEFAULT_$LINE"
3813 else
3814 no_cache=1
3815 fi
3816
3817 ac_cv_use_xresources='wxUSE_X_RESOURCES='$DEFAULT_wxUSE_X_RESOURCES
3818
3819fi
3820
3821
3822 eval "$ac_cv_use_xresources"
3823 if test "$no_cache" != 1; then
3824 echo $ac_cv_use_xresources >> ${wx_arg_cache_file}.tmp
3825 fi
3826
3827 if test "$wxUSE_X_RESOURCES" = yes; then
3828 echo "$ac_t""yes" 1>&6
3829 else
3830 echo "$ac_t""no" 1>&6
3831 fi
3832
3833
3834
3835
3836 echo $ac_n "checking "for --enable-clipboard"""... $ac_c" 1>&6
0dcf9893 3837echo "configure:3838: checking "for --enable-clipboard"" >&5
10f2d63a
VZ
3838 no_cache=0
3839 # Check whether --enable-clipboard or --disable-clipboard was given.
3840if test "${enable_clipboard+set}" = set; then
3841 enableval="$enable_clipboard"
3842
3843 if test "$enableval" = yes; then
3844 ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
3845 else
3846 ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
3847 fi
3848
3849else
3850
3851 LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
3852 if test "x$LINE" != x ; then
3853 eval "DEFAULT_$LINE"
3854 else
3855 no_cache=1
3856 fi
3857
3858 ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
3859
3860fi
3861
3862
3863 eval "$ac_cv_use_clipboard"
3864 if test "$no_cache" != 1; then
3865 echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
3866 fi
3867
3868 if test "$wxUSE_CLIPBOARD" = yes; then
3869 echo "$ac_t""yes" 1>&6
3870 else
3871 echo "$ac_t""no" 1>&6
3872 fi
3873
3874
3875 echo $ac_n "checking "for --enable-dnd"""... $ac_c" 1>&6
0dcf9893 3876echo "configure:3877: checking "for --enable-dnd"" >&5
10f2d63a
VZ
3877 no_cache=0
3878 # Check whether --enable-dnd or --disable-dnd was given.
3879if test "${enable_dnd+set}" = set; then
3880 enableval="$enable_dnd"
3881
3882 if test "$enableval" = yes; then
3883 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
3884 else
3885 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
3886 fi
3887
3888else
3889
3890 LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
3891 if test "x$LINE" != x ; then
3892 eval "DEFAULT_$LINE"
3893 else
3894 no_cache=1
3895 fi
3896
3897 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
3898
3899fi
3900
3901
3902 eval "$ac_cv_use_dnd"
3903 if test "$no_cache" != 1; then
3904 echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
3905 fi
3906
3907 if test "$wxUSE_DRAG_AND_DROP" = yes; then
3908 echo "$ac_t""yes" 1>&6
3909 else
3910 echo "$ac_t""no" 1>&6
3911 fi
3912
3913
3914
3915 echo $ac_n "checking "for --enable-wxtree"""... $ac_c" 1>&6
0dcf9893 3916echo "configure:3917: checking "for --enable-wxtree"" >&5
10f2d63a
VZ
3917 no_cache=0
3918 # Check whether --enable-wxtree or --disable-wxtree was given.
3919if test "${enable_wxtree+set}" = set; then
3920 enableval="$enable_wxtree"
3921
3922 if test "$enableval" = yes; then
3923 ac_cv_use_wxtree='wxUSE_WXTREE=yes'
3924 else
3925 ac_cv_use_wxtree='wxUSE_WXTREE=no'
3926 fi
3927
3928else
3929
3930 LINE=`grep "wxUSE_WXTREE" ${wx_arg_cache_file}`
3931 if test "x$LINE" != x ; then
3932 eval "DEFAULT_$LINE"
3933 else
3934 no_cache=1
3935 fi
3936
3937 ac_cv_use_wxtree='wxUSE_WXTREE='$DEFAULT_wxUSE_WXTREE
3938
3939fi
3940
3941
3942 eval "$ac_cv_use_wxtree"
3943 if test "$no_cache" != 1; then
3944 echo $ac_cv_use_wxtree >> ${wx_arg_cache_file}.tmp
3945 fi
3946
3947 if test "$wxUSE_WXTREE" = yes; then
3948 echo "$ac_t""yes" 1>&6
3949 else
3950 echo "$ac_t""no" 1>&6
3951 fi
3952
3953
3954
3955
3956 echo $ac_n "checking "for --enable-controls"""... $ac_c" 1>&6
0dcf9893 3957echo "configure:3958: checking "for --enable-controls"" >&5
10f2d63a
VZ
3958 no_cache=0
3959 # Check whether --enable-controls or --disable-controls was given.
3960if test "${enable_controls+set}" = set; then
3961 enableval="$enable_controls"
3962
3963 if test "$enableval" = yes; then
3964 ac_cv_use_controls='wxUSE_CONTROLS=yes'
3965 else
3966 ac_cv_use_controls='wxUSE_CONTROLS=no'
3967 fi
3968
3969else
3970
3971 LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
3972 if test "x$LINE" != x ; then
3973 eval "DEFAULT_$LINE"
3974 else
3975 no_cache=1
3976 fi
3977
3978 ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
3979
3980fi
3981
3982
3983 eval "$ac_cv_use_controls"
3984 if test "$no_cache" != 1; then
3985 echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
3986 fi
3987
3988 if test "$wxUSE_CONTROLS" = yes; then
3989 echo "$ac_t""yes" 1>&6
3990 else
3991 echo "$ac_t""no" 1>&6
3992 fi
3993
3994
3995if test "$wxUSE_CONTROLS" = "yes"; then
3996 DEFAULT_wxUSE_ACCEL=yes
3997 DEFAULT_wxUSE_CARET=yes
3998 DEFAULT_wxUSE_COMBOBOX=yes
3999 DEFAULT_wxUSE_BMPBUTTON=yes
4000 DEFAULT_wxUSE_CHECKBOX=yes
4001 DEFAULT_wxUSE_CHECKLISTBOX=yes
4002 DEFAULT_wxUSE_CHOICE=yes
4003 DEFAULT_wxUSE_GAUGE=yes
4004 DEFAULT_wxUSE_GRID=yes
cc977e5f 4005 DEFAULT_wxUSE_NEW_GRID=yes
10f2d63a
VZ
4006 DEFAULT_wxUSE_IMAGLIST=yes
4007 DEFAULT_wxUSE_LISTBOX=yes
4008 DEFAULT_wxUSE_LISTCTRL=yes
4009 DEFAULT_wxUSE_NOTEBOOK=yes
4010 DEFAULT_wxUSE_RADIOBOX=yes
4011 DEFAULT_wxUSE_RADIOBTN=yes
4012 DEFAULT_wxUSE_SASH=yes
4013 DEFAULT_wxUSE_SCROLLBAR=yes
4014 DEFAULT_wxUSE_SLIDER=yes
4015 DEFAULT_wxUSE_SPINBTN=yes
56cfaa52 4016 DEFAULT_wxUSE_SPINCTRL=yes
10f2d63a
VZ
4017 DEFAULT_wxUSE_SPLITTER=yes
4018 DEFAULT_wxUSE_STATBMP=yes
4019 DEFAULT_wxUSE_STATBOX=yes
4020 DEFAULT_wxUSE_STATLINE=yes
4021 DEFAULT_wxUSE_STATUSBAR=yes
4022 DEFAULT_wxUSE_TAB_DIALOG=yes
4023 DEFAULT_wxUSE_TOOLBAR=yes
360d6699
VZ
4024 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
4025 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
10f2d63a
VZ
4026 DEFAULT_wxUSE_TOOLTIPS=yes
4027 DEFAULT_wxUSE_TREECTRL=yes
4028elif test "$wxUSE_CONTROLS" = "no"; then
4029 DEFAULT_wxUSE_ACCEL=no
4030 DEFAULT_wxUSE_CARET=no
4031 DEFAULT_wxUSE_COMBOBOX=no
4032 DEFAULT_wxUSE_BMPBUTTON=no
4033 DEFAULT_wxUSE_CHECKBOX=no
4034 DEFAULT_wxUSE_CHECKLISTBOX=no
4035 DEFAULT_wxUSE_CHOICE=no
4036 DEFAULT_wxUSE_GAUGE=no
4037 DEFAULT_wxUSE_GRID=no
4038 DEFAULT_wxUSE_NEW_GRID=no
4039 DEFAULT_wxUSE_IMAGLIST=no
4040 DEFAULT_wxUSE_LISTBOX=no
4041 DEFAULT_wxUSE_LISTCTRL=no
4042 DEFAULT_wxUSE_NOTEBOOK=no
4043 DEFAULT_wxUSE_RADIOBOX=no
4044 DEFAULT_wxUSE_RADIOBTN=no
4045 DEFAULT_wxUSE_SASH=no
4046 DEFAULT_wxUSE_SCROLLBAR=no
4047 DEFAULT_wxUSE_SLIDER=no
4048 DEFAULT_wxUSE_SPINBTN=no
56cfaa52 4049 DEFAULT_wxUSE_SPINCTRL=no
10f2d63a
VZ
4050 DEFAULT_wxUSE_SPLITTER=no
4051 DEFAULT_wxUSE_STATBMP=no
4052 DEFAULT_wxUSE_STATBOX=no
4053 DEFAULT_wxUSE_STATLINE=no
4054 DEFAULT_wxUSE_STATUSBAR=no
4055 DEFAULT_wxUSE_TAB_DIALOG=no
4056 DEFAULT_wxUSE_TOOLBAR=no
360d6699
VZ
4057 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
4058 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
10f2d63a
VZ
4059 DEFAULT_wxUSE_TOOLTIPS=no
4060 DEFAULT_wxUSE_TREECTRL=no
4061fi
4062
4063
4064 echo $ac_n "checking "for --enable-accel"""... $ac_c" 1>&6
0dcf9893 4065echo "configure:4066: checking "for --enable-accel"" >&5
10f2d63a
VZ
4066 no_cache=0
4067 # Check whether --enable-accel or --disable-accel was given.
4068if test "${enable_accel+set}" = set; then
4069 enableval="$enable_accel"
4070
4071 if test "$enableval" = yes; then
4072 ac_cv_use_accel='wxUSE_ACCEL=yes'
4073 else
4074 ac_cv_use_accel='wxUSE_ACCEL=no'
4075 fi
4076
4077else
4078
4079 LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
4080 if test "x$LINE" != x ; then
4081 eval "DEFAULT_$LINE"
4082 else
4083 no_cache=1
4084 fi
4085
4086 ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
4087
4088fi
4089
4090
4091 eval "$ac_cv_use_accel"
4092 if test "$no_cache" != 1; then
4093 echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
4094 fi
4095
4096 if test "$wxUSE_ACCEL" = yes; then
4097 echo "$ac_t""yes" 1>&6
4098 else
4099 echo "$ac_t""no" 1>&6
4100 fi
4101
4102
4103 echo $ac_n "checking "for --enable-caret"""... $ac_c" 1>&6
0dcf9893 4104echo "configure:4105: checking "for --enable-caret"" >&5
10f2d63a
VZ
4105 no_cache=0
4106 # Check whether --enable-caret or --disable-caret was given.
4107if test "${enable_caret+set}" = set; then
4108 enableval="$enable_caret"
4109
4110 if test "$enableval" = yes; then
4111 ac_cv_use_caret='wxUSE_CARET=yes'
4112 else
4113 ac_cv_use_caret='wxUSE_CARET=no'
4114 fi
4115
4116else
4117
4118 LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
4119 if test "x$LINE" != x ; then
4120 eval "DEFAULT_$LINE"
4121 else
4122 no_cache=1
4123 fi
4124
4125 ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
4126
4127fi
4128
4129
4130 eval "$ac_cv_use_caret"
4131 if test "$no_cache" != 1; then
4132 echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
4133 fi
4134
4135 if test "$wxUSE_CARET" = yes; then
4136 echo "$ac_t""yes" 1>&6
4137 else
4138 echo "$ac_t""no" 1>&6
4139 fi
4140
4141
4142 echo $ac_n "checking "for --enable-bmpbutton"""... $ac_c" 1>&6
0dcf9893 4143echo "configure:4144: checking "for --enable-bmpbutton"" >&5
10f2d63a
VZ
4144 no_cache=0
4145 # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
4146if test "${enable_bmpbutton+set}" = set; then
4147 enableval="$enable_bmpbutton"
4148
4149 if test "$enableval" = yes; then
4150 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
4151 else
4152 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
4153 fi
4154
4155else
4156
4157 LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
4158 if test "x$LINE" != x ; then
4159 eval "DEFAULT_$LINE"
4160 else
4161 no_cache=1
4162 fi
4163
4164 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
4165
4166fi
4167
4168
4169 eval "$ac_cv_use_bmpbutton"
4170 if test "$no_cache" != 1; then
4171 echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
4172 fi
4173
4174 if test "$wxUSE_BMPBUTTON" = yes; then
4175 echo "$ac_t""yes" 1>&6
4176 else
4177 echo "$ac_t""no" 1>&6
4178 fi
4179
4180
4181 echo $ac_n "checking "for --enable-checkbox"""... $ac_c" 1>&6
0dcf9893 4182echo "configure:4183: checking "for --enable-checkbox"" >&5
10f2d63a
VZ
4183 no_cache=0
4184 # Check whether --enable-checkbox or --disable-checkbox was given.
4185if test "${enable_checkbox+set}" = set; then
4186 enableval="$enable_checkbox"
4187
4188 if test "$enableval" = yes; then
4189 ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
4190 else
4191 ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
4192 fi
4193
4194else
4195
4196 LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
4197 if test "x$LINE" != x ; then
4198 eval "DEFAULT_$LINE"
4199 else
4200 no_cache=1
4201 fi
4202
4203 ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
4204
4205fi
4206
4207
4208 eval "$ac_cv_use_checkbox"
4209 if test "$no_cache" != 1; then
4210 echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
4211 fi
4212
4213 if test "$wxUSE_CHECKBOX" = yes; then
4214 echo "$ac_t""yes" 1>&6
4215 else
4216 echo "$ac_t""no" 1>&6
4217 fi
4218
4219
4220 echo $ac_n "checking "for --enable-checklst"""... $ac_c" 1>&6
0dcf9893 4221echo "configure:4222: checking "for --enable-checklst"" >&5
10f2d63a
VZ
4222 no_cache=0
4223 # Check whether --enable-checklst or --disable-checklst was given.
4224if test "${enable_checklst+set}" = set; then
4225 enableval="$enable_checklst"
4226
4227 if test "$enableval" = yes; then
4228 ac_cv_use_checklst='wxUSE_CHECKLST=yes'
4229 else
4230 ac_cv_use_checklst='wxUSE_CHECKLST=no'
4231 fi
4232
4233else
4234
4235 LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
4236 if test "x$LINE" != x ; then
4237 eval "DEFAULT_$LINE"
4238 else
4239 no_cache=1
4240 fi
4241
4242 ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
4243
4244fi
4245
4246
4247 eval "$ac_cv_use_checklst"
4248 if test "$no_cache" != 1; then
4249 echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
4250 fi
4251
4252 if test "$wxUSE_CHECKLST" = yes; then
4253 echo "$ac_t""yes" 1>&6
4254 else
4255 echo "$ac_t""no" 1>&6
4256 fi
4257
4258
4259 echo $ac_n "checking "for --enable-choice"""... $ac_c" 1>&6
0dcf9893 4260echo "configure:4261: checking "for --enable-choice"" >&5
10f2d63a
VZ
4261 no_cache=0
4262 # Check whether --enable-choice or --disable-choice was given.
4263if test "${enable_choice+set}" = set; then
4264 enableval="$enable_choice"
4265
4266 if test "$enableval" = yes; then
4267 ac_cv_use_choice='wxUSE_CHOICE=yes'
4268 else
4269 ac_cv_use_choice='wxUSE_CHOICE=no'
4270 fi
4271
4272else
4273
4274 LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
4275 if test "x$LINE" != x ; then
4276 eval "DEFAULT_$LINE"
4277 else
4278 no_cache=1
4279 fi
4280
4281 ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
4282
4283fi
4284
4285
4286 eval "$ac_cv_use_choice"
4287 if test "$no_cache" != 1; then
4288 echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
4289 fi
4290
4291 if test "$wxUSE_CHOICE" = yes; then
4292 echo "$ac_t""yes" 1>&6
4293 else
4294 echo "$ac_t""no" 1>&6
4295 fi
4296
4297
4298 echo $ac_n "checking "for --enable-combobox"""... $ac_c" 1>&6
0dcf9893 4299echo "configure:4300: checking "for --enable-combobox"" >&5
10f2d63a
VZ
4300 no_cache=0
4301 # Check whether --enable-combobox or --disable-combobox was given.
4302if test "${enable_combobox+set}" = set; then
4303 enableval="$enable_combobox"
4304
4305 if test "$enableval" = yes; then
4306 ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
4307 else
4308 ac_cv_use_combobox='wxUSE_COMBOBOX=no'
4309 fi
4310
4311else
4312
4313 LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
4314 if test "x$LINE" != x ; then
4315 eval "DEFAULT_$LINE"
4316 else
4317 no_cache=1
4318 fi
4319
4320 ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
4321
4322fi
4323
4324
4325 eval "$ac_cv_use_combobox"
4326 if test "$no_cache" != 1; then
4327 echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
4328 fi
4329
4330 if test "$wxUSE_COMBOBOX" = yes; then
4331 echo "$ac_t""yes" 1>&6
4332 else
4333 echo "$ac_t""no" 1>&6
4334 fi
4335
4336
4337 echo $ac_n "checking "for --enable-gauge"""... $ac_c" 1>&6
0dcf9893 4338echo "configure:4339: checking "for --enable-gauge"" >&5
10f2d63a
VZ
4339 no_cache=0
4340 # Check whether --enable-gauge or --disable-gauge was given.
4341if test "${enable_gauge+set}" = set; then
4342 enableval="$enable_gauge"
4343
4344 if test "$enableval" = yes; then
4345 ac_cv_use_gauge='wxUSE_GAUGE=yes'
4346 else
4347 ac_cv_use_gauge='wxUSE_GAUGE=no'
4348 fi
4349
4350else
4351
4352 LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
4353 if test "x$LINE" != x ; then
4354 eval "DEFAULT_$LINE"
4355 else
4356 no_cache=1
4357 fi
4358
4359 ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
4360
4361fi
4362
4363
4364 eval "$ac_cv_use_gauge"
4365 if test "$no_cache" != 1; then
4366 echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
4367 fi
4368
4369 if test "$wxUSE_GAUGE" = yes; then
4370 echo "$ac_t""yes" 1>&6
4371 else
4372 echo "$ac_t""no" 1>&6
4373 fi
4374
4375
4376 echo $ac_n "checking "for --enable-grid"""... $ac_c" 1>&6
0dcf9893 4377echo "configure:4378: checking "for --enable-grid"" >&5
10f2d63a
VZ
4378 no_cache=0
4379 # Check whether --enable-grid or --disable-grid was given.
4380if test "${enable_grid+set}" = set; then
4381 enableval="$enable_grid"
4382
4383 if test "$enableval" = yes; then
4384 ac_cv_use_grid='wxUSE_GRID=yes'
4385 else
4386 ac_cv_use_grid='wxUSE_GRID=no'
4387 fi
4388
4389else
4390
4391 LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
4392 if test "x$LINE" != x ; then
4393 eval "DEFAULT_$LINE"
4394 else
4395 no_cache=1
4396 fi
4397
4398 ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
4399
4400fi
4401
4402
4403 eval "$ac_cv_use_grid"
4404 if test "$no_cache" != 1; then
4405 echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
4406 fi
4407
4408 if test "$wxUSE_GRID" = yes; then
4409 echo "$ac_t""yes" 1>&6
4410 else
4411 echo "$ac_t""no" 1>&6
4412 fi
4413
4414
4415 echo $ac_n "checking "for --enable-newgrid"""... $ac_c" 1>&6
0dcf9893 4416echo "configure:4417: checking "for --enable-newgrid"" >&5
10f2d63a
VZ
4417 no_cache=0
4418 # Check whether --enable-newgrid or --disable-newgrid was given.
4419if test "${enable_newgrid+set}" = set; then
4420 enableval="$enable_newgrid"
4421
4422 if test "$enableval" = yes; then
4423 ac_cv_use_newgrid='wxUSE_NEW_GRID=yes'
4424 else
4425 ac_cv_use_newgrid='wxUSE_NEW_GRID=no'
4426 fi
4427
4428else
4429
4430 LINE=`grep "wxUSE_NEW_GRID" ${wx_arg_cache_file}`
4431 if test "x$LINE" != x ; then
4432 eval "DEFAULT_$LINE"
4433 else
4434 no_cache=1
4435 fi
4436
4437 ac_cv_use_newgrid='wxUSE_NEW_GRID='$DEFAULT_wxUSE_NEW_GRID
4438
4439fi
4440
4441
4442 eval "$ac_cv_use_newgrid"
4443 if test "$no_cache" != 1; then
4444 echo $ac_cv_use_newgrid >> ${wx_arg_cache_file}.tmp
4445 fi
4446
4447 if test "$wxUSE_NEW_GRID" = yes; then
4448 echo "$ac_t""yes" 1>&6
4449 else
4450 echo "$ac_t""no" 1>&6
4451 fi
4452
4453
4454 echo $ac_n "checking "for --enable-imaglist"""... $ac_c" 1>&6
0dcf9893 4455echo "configure:4456: checking "for --enable-imaglist"" >&5
10f2d63a
VZ
4456 no_cache=0
4457 # Check whether --enable-imaglist or --disable-imaglist was given.
4458if test "${enable_imaglist+set}" = set; then
4459 enableval="$enable_imaglist"
4460
4461 if test "$enableval" = yes; then
4462 ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
4463 else
4464 ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
4465 fi
4466
4467else
4468
4469 LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
4470 if test "x$LINE" != x ; then
4471 eval "DEFAULT_$LINE"
4472 else
4473 no_cache=1
4474 fi
4475
4476 ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
4477
4478fi
4479
4480
4481 eval "$ac_cv_use_imaglist"
4482 if test "$no_cache" != 1; then
4483 echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
4484 fi
4485
4486 if test "$wxUSE_IMAGLIST" = yes; then
4487 echo "$ac_t""yes" 1>&6
4488 else
4489 echo "$ac_t""no" 1>&6
4490 fi
4491
4492
4493 echo $ac_n "checking "for --enable-listbox"""... $ac_c" 1>&6
0dcf9893 4494echo "configure:4495: checking "for --enable-listbox"" >&5
10f2d63a
VZ
4495 no_cache=0
4496 # Check whether --enable-listbox or --disable-listbox was given.
4497if test "${enable_listbox+set}" = set; then
4498 enableval="$enable_listbox"
4499
4500 if test "$enableval" = yes; then
4501 ac_cv_use_listbox='wxUSE_LISTBOX=yes'
4502 else
4503 ac_cv_use_listbox='wxUSE_LISTBOX=no'
4504 fi
4505
4506else
4507
4508 LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
4509 if test "x$LINE" != x ; then
4510 eval "DEFAULT_$LINE"
4511 else
4512 no_cache=1
4513 fi
4514
4515 ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
4516
4517fi
4518
4519
4520 eval "$ac_cv_use_listbox"
4521 if test "$no_cache" != 1; then
4522 echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
4523 fi
4524
4525 if test "$wxUSE_LISTBOX" = yes; then
4526 echo "$ac_t""yes" 1>&6
4527 else
4528 echo "$ac_t""no" 1>&6
4529 fi
4530
4531
4532 echo $ac_n "checking "for --enable-listctrl"""... $ac_c" 1>&6
0dcf9893 4533echo "configure:4534: checking "for --enable-listctrl"" >&5
10f2d63a
VZ
4534 no_cache=0
4535 # Check whether --enable-listctrl or --disable-listctrl was given.
4536if test "${enable_listctrl+set}" = set; then
4537 enableval="$enable_listctrl"
4538
4539 if test "$enableval" = yes; then
4540 ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
4541 else
4542 ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
4543 fi
4544
4545else
4546
4547 LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
4548 if test "x$LINE" != x ; then
4549 eval "DEFAULT_$LINE"
4550 else
4551 no_cache=1
4552 fi
4553
4554 ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
4555
4556fi
4557
4558
4559 eval "$ac_cv_use_listctrl"
4560 if test "$no_cache" != 1; then
4561 echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
4562 fi
4563
4564 if test "$wxUSE_LISTCTRL" = yes; then
4565 echo "$ac_t""yes" 1>&6
4566 else
4567 echo "$ac_t""no" 1>&6
4568 fi
4569
4570
4571 echo $ac_n "checking "for --enable-notebook"""... $ac_c" 1>&6
0dcf9893 4572echo "configure:4573: checking "for --enable-notebook"" >&5
10f2d63a
VZ
4573 no_cache=0
4574 # Check whether --enable-notebook or --disable-notebook was given.
4575if test "${enable_notebook+set}" = set; then
4576 enableval="$enable_notebook"
4577
4578 if test "$enableval" = yes; then
4579 ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
4580 else
4581 ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
4582 fi
4583
4584else
4585
4586 LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
4587 if test "x$LINE" != x ; then
4588 eval "DEFAULT_$LINE"
4589 else
4590 no_cache=1
4591 fi
4592
4593 ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
4594
4595fi
4596
4597
4598 eval "$ac_cv_use_notebook"
4599 if test "$no_cache" != 1; then
4600 echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
4601 fi
4602
4603 if test "$wxUSE_NOTEBOOK" = yes; then
4604 echo "$ac_t""yes" 1>&6
4605 else
4606 echo "$ac_t""no" 1>&6
4607 fi
4608
4609
4610 echo $ac_n "checking "for --enable-radiobox"""... $ac_c" 1>&6
0dcf9893 4611echo "configure:4612: checking "for --enable-radiobox"" >&5
10f2d63a
VZ
4612 no_cache=0
4613 # Check whether --enable-radiobox or --disable-radiobox was given.
4614if test "${enable_radiobox+set}" = set; then
4615 enableval="$enable_radiobox"
4616
4617 if test "$enableval" = yes; then
4618 ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
4619 else
4620 ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
4621 fi
4622
4623else
4624
4625 LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
4626 if test "x$LINE" != x ; then
4627 eval "DEFAULT_$LINE"
4628 else
4629 no_cache=1
4630 fi
4631
4632 ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
4633
4634fi
4635
4636
4637 eval "$ac_cv_use_radiobox"
4638 if test "$no_cache" != 1; then
4639 echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
4640 fi
4641
4642 if test "$wxUSE_RADIOBOX" = yes; then
4643 echo "$ac_t""yes" 1>&6
4644 else
4645 echo "$ac_t""no" 1>&6
4646 fi
4647
4648
4649 echo $ac_n "checking "for --enable-radiobtn"""... $ac_c" 1>&6
0dcf9893 4650echo "configure:4651: checking "for --enable-radiobtn"" >&5
10f2d63a
VZ
4651 no_cache=0
4652 # Check whether --enable-radiobtn or --disable-radiobtn was given.
4653if test "${enable_radiobtn+set}" = set; then
4654 enableval="$enable_radiobtn"
4655
4656 if test "$enableval" = yes; then
4657 ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
4658 else
4659 ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
4660 fi
4661
4662else
4663
4664 LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
4665 if test "x$LINE" != x ; then
4666 eval "DEFAULT_$LINE"
4667 else
4668 no_cache=1
4669 fi
4670
4671 ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
4672
4673fi
4674
4675
4676 eval "$ac_cv_use_radiobtn"
4677 if test "$no_cache" != 1; then
4678 echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
4679 fi
4680
4681 if test "$wxUSE_RADIOBTN" = yes; then
4682 echo "$ac_t""yes" 1>&6
4683 else
4684 echo "$ac_t""no" 1>&6
4685 fi
4686
4687
4688 echo $ac_n "checking "for --enable-sash"""... $ac_c" 1>&6
0dcf9893 4689echo "configure:4690: checking "for --enable-sash"" >&5
10f2d63a
VZ
4690 no_cache=0
4691 # Check whether --enable-sash or --disable-sash was given.
4692if test "${enable_sash+set}" = set; then
4693 enableval="$enable_sash"
4694
4695 if test "$enableval" = yes; then
4696 ac_cv_use_sash='wxUSE_SASH=yes'
4697 else
4698 ac_cv_use_sash='wxUSE_SASH=no'
4699 fi
4700
4701else
4702
4703 LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
4704 if test "x$LINE" != x ; then
4705 eval "DEFAULT_$LINE"
4706 else
4707 no_cache=1
4708 fi
4709
4710 ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
4711
4712fi
4713
4714
4715 eval "$ac_cv_use_sash"
4716 if test "$no_cache" != 1; then
4717 echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
4718 fi
4719
4720 if test "$wxUSE_SASH" = yes; then
4721 echo "$ac_t""yes" 1>&6
4722 else
4723 echo "$ac_t""no" 1>&6
4724 fi
4725
4726
4727 echo $ac_n "checking "for --enable-scrollbar"""... $ac_c" 1>&6
0dcf9893 4728echo "configure:4729: checking "for --enable-scrollbar"" >&5
10f2d63a
VZ
4729 no_cache=0
4730 # Check whether --enable-scrollbar or --disable-scrollbar was given.
4731if test "${enable_scrollbar+set}" = set; then
4732 enableval="$enable_scrollbar"
4733
4734 if test "$enableval" = yes; then
4735 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
4736 else
4737 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
4738 fi
4739
4740else
4741
4742 LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
4743 if test "x$LINE" != x ; then
4744 eval "DEFAULT_$LINE"
4745 else
4746 no_cache=1
4747 fi
4748
4749 ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
4750
4751fi
4752
4753
4754 eval "$ac_cv_use_scrollbar"
4755 if test "$no_cache" != 1; then
4756 echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
4757 fi
4758
4759 if test "$wxUSE_SCROLLBAR" = yes; then
4760 echo "$ac_t""yes" 1>&6
4761 else
4762 echo "$ac_t""no" 1>&6
4763 fi
4764
4765
4766 echo $ac_n "checking "for --enable-slider"""... $ac_c" 1>&6
0dcf9893 4767echo "configure:4768: checking "for --enable-slider"" >&5
10f2d63a
VZ
4768 no_cache=0
4769 # Check whether --enable-slider or --disable-slider was given.
4770if test "${enable_slider+set}" = set; then
4771 enableval="$enable_slider"
4772
4773 if test "$enableval" = yes; then
4774 ac_cv_use_slider='wxUSE_SLIDER=yes'
4775 else
4776 ac_cv_use_slider='wxUSE_SLIDER=no'
4777 fi
4778
4779else
4780
4781 LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
4782 if test "x$LINE" != x ; then
4783 eval "DEFAULT_$LINE"
4784 else
4785 no_cache=1
4786 fi
4787
4788 ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
4789
4790fi
4791
4792
4793 eval "$ac_cv_use_slider"
4794 if test "$no_cache" != 1; then
4795 echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
4796 fi
4797
4798 if test "$wxUSE_SLIDER" = yes; then
4799 echo "$ac_t""yes" 1>&6
4800 else
4801 echo "$ac_t""no" 1>&6
4802 fi
4803
4804
4805 echo $ac_n "checking "for --enable-spinbtn"""... $ac_c" 1>&6
0dcf9893 4806echo "configure:4807: checking "for --enable-spinbtn"" >&5
10f2d63a
VZ
4807 no_cache=0
4808 # Check whether --enable-spinbtn or --disable-spinbtn was given.
4809if test "${enable_spinbtn+set}" = set; then
4810 enableval="$enable_spinbtn"
4811
4812 if test "$enableval" = yes; then
4813 ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
4814 else
4815 ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
4816 fi
4817
4818else
4819
4820 LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
4821 if test "x$LINE" != x ; then
4822 eval "DEFAULT_$LINE"
4823 else
4824 no_cache=1
4825 fi
4826
4827 ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
4828
4829fi
4830
4831
4832 eval "$ac_cv_use_spinbtn"
4833 if test "$no_cache" != 1; then
4834 echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
4835 fi
4836
4837 if test "$wxUSE_SPINBTN" = yes; then
4838 echo "$ac_t""yes" 1>&6
4839 else
4840 echo "$ac_t""no" 1>&6
4841 fi
4842
4843
56cfaa52 4844 echo $ac_n "checking "for --enable-spinctrl"""... $ac_c" 1>&6
0dcf9893 4845echo "configure:4846: checking "for --enable-spinctrl"" >&5
56cfaa52
RR
4846 no_cache=0
4847 # Check whether --enable-spinctrl or --disable-spinctrl was given.
4848if test "${enable_spinctrl+set}" = set; then
4849 enableval="$enable_spinctrl"
4850
4851 if test "$enableval" = yes; then
4852 ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
4853 else
4854 ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
4855 fi
4856
4857else
4858
4859 LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
4860 if test "x$LINE" != x ; then
4861 eval "DEFAULT_$LINE"
4862 else
4863 no_cache=1
4864 fi
4865
4866 ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
4867
4868fi
4869
4870
4871 eval "$ac_cv_use_spinctrl"
4872 if test "$no_cache" != 1; then
4873 echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
4874 fi
4875
4876 if test "$wxUSE_SPINCTRL" = yes; then
4877 echo "$ac_t""yes" 1>&6
4878 else
4879 echo "$ac_t""no" 1>&6
4880 fi
4881
4882
10f2d63a 4883 echo $ac_n "checking "for --enable-splitter"""... $ac_c" 1>&6
0dcf9893 4884echo "configure:4885: checking "for --enable-splitter"" >&5
10f2d63a
VZ
4885 no_cache=0
4886 # Check whether --enable-splitter or --disable-splitter was given.
4887if test "${enable_splitter+set}" = set; then
4888 enableval="$enable_splitter"
4889
4890 if test "$enableval" = yes; then
4891 ac_cv_use_splitter='wxUSE_SPLITTER=yes'
4892 else
4893 ac_cv_use_splitter='wxUSE_SPLITTER=no'
4894 fi
4895
4896else
4897
4898 LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
4899 if test "x$LINE" != x ; then
4900 eval "DEFAULT_$LINE"
4901 else
4902 no_cache=1
4903 fi
4904
4905 ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
4906
4907fi
4908
4909
4910 eval "$ac_cv_use_splitter"
4911 if test "$no_cache" != 1; then
4912 echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
4913 fi
4914
4915 if test "$wxUSE_SPLITTER" = yes; then
4916 echo "$ac_t""yes" 1>&6
4917 else
4918 echo "$ac_t""no" 1>&6
4919 fi
4920
4921
4922 echo $ac_n "checking "for --enable-statbmp"""... $ac_c" 1>&6
0dcf9893 4923echo "configure:4924: checking "for --enable-statbmp"" >&5
10f2d63a
VZ
4924 no_cache=0
4925 # Check whether --enable-statbmp or --disable-statbmp was given.
4926if test "${enable_statbmp+set}" = set; then
4927 enableval="$enable_statbmp"
4928
4929 if test "$enableval" = yes; then
4930 ac_cv_use_statbmp='wxUSE_STATBMP=yes'
4931 else
4932 ac_cv_use_statbmp='wxUSE_STATBMP=no'
4933 fi
4934
4935else
4936
4937 LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
4938 if test "x$LINE" != x ; then
4939 eval "DEFAULT_$LINE"
4940 else
4941 no_cache=1
4942 fi
4943
4944 ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
4945
4946fi
4947
4948
4949 eval "$ac_cv_use_statbmp"
4950 if test "$no_cache" != 1; then
4951 echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
4952 fi
4953
4954 if test "$wxUSE_STATBMP" = yes; then
4955 echo "$ac_t""yes" 1>&6
4956 else
4957 echo "$ac_t""no" 1>&6
4958 fi
4959
4960
4961 echo $ac_n "checking "for --enable-statbox"""... $ac_c" 1>&6
0dcf9893 4962echo "configure:4963: checking "for --enable-statbox"" >&5
10f2d63a
VZ
4963 no_cache=0
4964 # Check whether --enable-statbox or --disable-statbox was given.
4965if test "${enable_statbox+set}" = set; then
4966 enableval="$enable_statbox"
4967
4968 if test "$enableval" = yes; then
4969 ac_cv_use_statbox='wxUSE_STATBOX=yes'
4970 else
4971 ac_cv_use_statbox='wxUSE_STATBOX=no'
4972 fi
4973
4974else
4975
4976 LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
4977 if test "x$LINE" != x ; then
4978 eval "DEFAULT_$LINE"
4979 else
4980 no_cache=1
4981 fi
4982
4983 ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
4984
4985fi
4986
4987
4988 eval "$ac_cv_use_statbox"
4989 if test "$no_cache" != 1; then
4990 echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
4991 fi
4992
4993 if test "$wxUSE_STATBOX" = yes; then
4994 echo "$ac_t""yes" 1>&6
4995 else
4996 echo "$ac_t""no" 1>&6
4997 fi
4998
4999
5000 echo $ac_n "checking "for --enable-statline"""... $ac_c" 1>&6
0dcf9893 5001echo "configure:5002: checking "for --enable-statline"" >&5
10f2d63a
VZ
5002 no_cache=0
5003 # Check whether --enable-statline or --disable-statline was given.
5004if test "${enable_statline+set}" = set; then
5005 enableval="$enable_statline"
5006
5007 if test "$enableval" = yes; then
5008 ac_cv_use_statline='wxUSE_STATLINE=yes'
5009 else
5010 ac_cv_use_statline='wxUSE_STATLINE=no'
5011 fi
5012
5013else
5014
5015 LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
5016 if test "x$LINE" != x ; then
5017 eval "DEFAULT_$LINE"
5018 else
5019 no_cache=1
5020 fi
5021
5022 ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
5023
5024fi
5025
5026
5027 eval "$ac_cv_use_statline"
5028 if test "$no_cache" != 1; then
5029 echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
5030 fi
5031
5032 if test "$wxUSE_STATLINE" = yes; then
5033 echo "$ac_t""yes" 1>&6
5034 else
5035 echo "$ac_t""no" 1>&6
5036 fi
5037
5038
5039 echo $ac_n "checking "for --enable-statusbar"""... $ac_c" 1>&6
0dcf9893 5040echo "configure:5041: checking "for --enable-statusbar"" >&5
10f2d63a
VZ
5041 no_cache=0
5042 # Check whether --enable-statusbar or --disable-statusbar was given.
5043if test "${enable_statusbar+set}" = set; then
5044 enableval="$enable_statusbar"
5045
5046 if test "$enableval" = yes; then
5047 ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
5048 else
5049 ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
5050 fi
5051
5052else
5053
5054 LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
5055 if test "x$LINE" != x ; then
5056 eval "DEFAULT_$LINE"
5057 else
5058 no_cache=1
5059 fi
5060
5061 ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
5062
5063fi
5064
5065
5066 eval "$ac_cv_use_statusbar"
5067 if test "$no_cache" != 1; then
5068 echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
5069 fi
5070
5071 if test "$wxUSE_STATUSBAR" = yes; then
5072 echo "$ac_t""yes" 1>&6
5073 else
5074 echo "$ac_t""no" 1>&6
5075 fi
5076
5077
5078 echo $ac_n "checking "for --enable-tabdialog"""... $ac_c" 1>&6
0dcf9893 5079echo "configure:5080: checking "for --enable-tabdialog"" >&5
10f2d63a
VZ
5080 no_cache=0
5081 # Check whether --enable-tabdialog or --disable-tabdialog was given.
5082if test "${enable_tabdialog+set}" = set; then
5083 enableval="$enable_tabdialog"
5084
5085 if test "$enableval" = yes; then
5086 ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes'
5087 else
5088 ac_cv_use_tabdialog='wxUSE_TABDIALOG=no'
5089 fi
5090
5091else
5092
5093 LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}`
5094 if test "x$LINE" != x ; then
5095 eval "DEFAULT_$LINE"
5096 else
5097 no_cache=1
5098 fi
5099
5100 ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG
5101
5102fi
5103
5104
5105 eval "$ac_cv_use_tabdialog"
5106 if test "$no_cache" != 1; then
5107 echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
5108 fi
5109
5110 if test "$wxUSE_TABDIALOG" = yes; then
5111 echo "$ac_t""yes" 1>&6
5112 else
5113 echo "$ac_t""no" 1>&6
5114 fi
5115
5116
5117 echo $ac_n "checking "for --enable-toolbar"""... $ac_c" 1>&6
0dcf9893 5118echo "configure:5119: checking "for --enable-toolbar"" >&5
10f2d63a
VZ
5119 no_cache=0
5120 # Check whether --enable-toolbar or --disable-toolbar was given.
5121if test "${enable_toolbar+set}" = set; then
5122 enableval="$enable_toolbar"
5123
5124 if test "$enableval" = yes; then
5125 ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
5126 else
5127 ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
5128 fi
5129
5130else
5131
5132 LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
5133 if test "x$LINE" != x ; then
5134 eval "DEFAULT_$LINE"
5135 else
5136 no_cache=1
5137 fi
5138
5139 ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
5140
5141fi
5142
5143
5144 eval "$ac_cv_use_toolbar"
5145 if test "$no_cache" != 1; then
5146 echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
5147 fi
5148
5149 if test "$wxUSE_TOOLBAR" = yes; then
5150 echo "$ac_t""yes" 1>&6
5151 else
5152 echo "$ac_t""no" 1>&6
5153 fi
5154
5155
360d6699 5156 echo $ac_n "checking "for --enable-tbarnative"""... $ac_c" 1>&6
0dcf9893 5157echo "configure:5158: checking "for --enable-tbarnative"" >&5
360d6699
VZ
5158 no_cache=0
5159 # Check whether --enable-tbarnative or --disable-tbarnative was given.
5160if test "${enable_tbarnative+set}" = set; then
5161 enableval="$enable_tbarnative"
5162
5163 if test "$enableval" = yes; then
5164 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
5165 else
5166 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
5167 fi
5168
5169else
5170
5171 LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
5172 if test "x$LINE" != x ; then
5173 eval "DEFAULT_$LINE"
5174 else
5175 no_cache=1
5176 fi
5177
5178 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
5179
5180fi
5181
5182
5183 eval "$ac_cv_use_tbarnative"
5184 if test "$no_cache" != 1; then
5185 echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
5186 fi
5187
5188 if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
5189 echo "$ac_t""yes" 1>&6
5190 else
5191 echo "$ac_t""no" 1>&6
5192 fi
5193
5194
5195 echo $ac_n "checking "for --enable-tbarsmpl"""... $ac_c" 1>&6
0dcf9893 5196echo "configure:5197: checking "for --enable-tbarsmpl"" >&5
360d6699
VZ
5197 no_cache=0
5198 # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given.
5199if test "${enable_tbarsmpl+set}" = set; then
5200 enableval="$enable_tbarsmpl"
5201
5202 if test "$enableval" = yes; then
5203 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes'
5204 else
5205 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no'
5206 fi
5207
5208else
5209
5210 LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}`
5211 if test "x$LINE" != x ; then
5212 eval "DEFAULT_$LINE"
5213 else
5214 no_cache=1
5215 fi
5216
5217 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE
5218
5219fi
5220
5221
5222 eval "$ac_cv_use_tbarsmpl"
5223 if test "$no_cache" != 1; then
5224 echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp
5225 fi
5226
5227 if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then
5228 echo "$ac_t""yes" 1>&6
5229 else
5230 echo "$ac_t""no" 1>&6
5231 fi
5232
5233
10f2d63a 5234 echo $ac_n "checking "for --enable-treectrl"""... $ac_c" 1>&6
0dcf9893 5235echo "configure:5236: checking "for --enable-treectrl"" >&5
10f2d63a
VZ
5236 no_cache=0
5237 # Check whether --enable-treectrl or --disable-treectrl was given.
5238if test "${enable_treectrl+set}" = set; then
5239 enableval="$enable_treectrl"
5240
5241 if test "$enableval" = yes; then
5242 ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
5243 else
5244 ac_cv_use_treectrl='wxUSE_TREECTRL=no'
5245 fi
5246
5247else
5248
5249 LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
5250 if test "x$LINE" != x ; then
5251 eval "DEFAULT_$LINE"
5252 else
5253 no_cache=1
5254 fi
5255
5256 ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
5257
5258fi
5259
5260
5261 eval "$ac_cv_use_treectrl"
5262 if test "$no_cache" != 1; then
5263 echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
5264 fi
5265
5266 if test "$wxUSE_TREECTRL" = yes; then
5267 echo "$ac_t""yes" 1>&6
5268 else
5269 echo "$ac_t""no" 1>&6
5270 fi
5271
5272
5273
5274
5275 echo $ac_n "checking "for --enable-commondlg"""... $ac_c" 1>&6
0dcf9893 5276echo "configure:5277: checking "for --enable-commondlg"" >&5
10f2d63a
VZ
5277 no_cache=0
5278 # Check whether --enable-commondlg or --disable-commondlg was given.
5279if test "${enable_commondlg+set}" = set; then
5280 enableval="$enable_commondlg"
5281
5282 if test "$enableval" = yes; then
5283 ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
5284 else
5285 ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
5286 fi
5287
5288else
5289
5290 LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
5291 if test "x$LINE" != x ; then
5292 eval "DEFAULT_$LINE"
5293 else
5294 no_cache=1
5295 fi
5296
5297 ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
5298
5299fi
5300
5301
5302 eval "$ac_cv_use_commondlg"
5303 if test "$no_cache" != 1; then
5304 echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
5305 fi
5306
5307 if test "$wxUSE_COMMONDLGS" = yes; then
5308 echo "$ac_t""yes" 1>&6
5309 else
5310 echo "$ac_t""no" 1>&6
5311 fi
5312
5313
5314 echo $ac_n "checking "for --enable-dirdlg"""... $ac_c" 1>&6
0dcf9893 5315echo "configure:5316: checking "for --enable-dirdlg"" >&5
10f2d63a
VZ
5316 no_cache=0
5317 # Check whether --enable-dirdlg or --disable-dirdlg was given.
5318if test "${enable_dirdlg+set}" = set; then
5319 enableval="$enable_dirdlg"
5320
5321 if test "$enableval" = yes; then
5322 ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
5323 else
5324 ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
5325 fi
5326
5327else
5328
5329 LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
5330 if test "x$LINE" != x ; then
5331 eval "DEFAULT_$LINE"
5332 else
5333 no_cache=1
5334 fi
5335
5336 ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
5337
5338fi
5339
5340
5341 eval "$ac_cv_use_dirdlg"
5342 if test "$no_cache" != 1; then
5343 echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
5344 fi
5345
5346 if test "$wxUSE_DIRDLG" = yes; then
5347 echo "$ac_t""yes" 1>&6
5348 else
5349 echo "$ac_t""no" 1>&6
5350 fi
5351
5352
5353 echo $ac_n "checking "for --enable-textdlg"""... $ac_c" 1>&6
0dcf9893 5354echo "configure:5355: checking "for --enable-textdlg"" >&5
10f2d63a
VZ
5355 no_cache=0
5356 # Check whether --enable-textdlg or --disable-textdlg was given.
5357if test "${enable_textdlg+set}" = set; then
5358 enableval="$enable_textdlg"
5359
5360 if test "$enableval" = yes; then
5361 ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
5362 else
5363 ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
5364 fi
5365
5366else
5367
5368 LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
5369 if test "x$LINE" != x ; then
5370 eval "DEFAULT_$LINE"
5371 else
5372 no_cache=1
5373 fi
5374
5375 ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
5376
5377fi
5378
5379
5380 eval "$ac_cv_use_textdlg"
5381 if test "$no_cache" != 1; then
5382 echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
5383 fi
5384
5385 if test "$wxUSE_TEXTDLG" = yes; then
5386 echo "$ac_t""yes" 1>&6
5387 else
5388 echo "$ac_t""no" 1>&6
5389 fi
5390
5391
5392 echo $ac_n "checking "for --enable-tipdlg"""... $ac_c" 1>&6
0dcf9893 5393echo "configure:5394: checking "for --enable-tipdlg"" >&5
10f2d63a
VZ
5394 no_cache=0
5395 # Check whether --enable-tipdlg or --disable-tipdlg was given.
5396if test "${enable_tipdlg+set}" = set; then
5397 enableval="$enable_tipdlg"
5398
5399 if test "$enableval" = yes; then
5400 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
5401 else
5402 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
5403 fi
5404
5405else
5406
5407 LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
5408 if test "x$LINE" != x ; then
5409 eval "DEFAULT_$LINE"
5410 else
5411 no_cache=1
5412 fi
5413
5414 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
5415
5416fi
5417
5418
5419 eval "$ac_cv_use_tipdlg"
5420 if test "$no_cache" != 1; then
5421 echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
5422 fi
5423
5424 if test "$wxUSE_STARTUP_TIPS" = yes; then
5425 echo "$ac_t""yes" 1>&6
5426 else
5427 echo "$ac_t""no" 1>&6
5428 fi
5429
5430
5431 echo $ac_n "checking "for --enable-progressdlg"""... $ac_c" 1>&6
0dcf9893 5432echo "configure:5433: checking "for --enable-progressdlg"" >&5
10f2d63a
VZ
5433 no_cache=0
5434 # Check whether --enable-progressdlg or --disable-progressdlg was given.
5435if test "${enable_progressdlg+set}" = set; then
5436 enableval="$enable_progressdlg"
5437
5438 if test "$enableval" = yes; then
5439 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
5440 else
5441 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
5442 fi
5443
5444else
5445
5446 LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
5447 if test "x$LINE" != x ; then
5448 eval "DEFAULT_$LINE"
5449 else
5450 no_cache=1
5451 fi
5452
5453 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
5454
5455fi
5456
5457
5458 eval "$ac_cv_use_progressdlg"
5459 if test "$no_cache" != 1; then
5460 echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
5461 fi
5462
5463 if test "$wxUSE_PROGRESSDLG" = yes; then
5464 echo "$ac_t""yes" 1>&6
5465 else
5466 echo "$ac_t""no" 1>&6
5467 fi
5468
5469
5470 echo $ac_n "checking "for --enable-miniframe"""... $ac_c" 1>&6
0dcf9893 5471echo "configure:5472: checking "for --enable-miniframe"" >&5
10f2d63a
VZ
5472 no_cache=0
5473 # Check whether --enable-miniframe or --disable-miniframe was given.
5474if test "${enable_miniframe+set}" = set; then
5475 enableval="$enable_miniframe"
5476
5477 if test "$enableval" = yes; then
5478 ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
5479 else
5480 ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
5481 fi
5482
5483else
5484
5485 LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
5486 if test "x$LINE" != x ; then
5487 eval "DEFAULT_$LINE"
5488 else
5489 no_cache=1
5490 fi
5491
5492 ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
5493
5494fi
5495
5496
5497 eval "$ac_cv_use_miniframe"
5498 if test "$no_cache" != 1; then
5499 echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
5500 fi
5501
5502 if test "$wxUSE_MINIFRAME" = yes; then
5503 echo "$ac_t""yes" 1>&6
5504 else
5505 echo "$ac_t""no" 1>&6
5506 fi
5507
5508
5509 echo $ac_n "checking "for --enable-html"""... $ac_c" 1>&6
0dcf9893 5510echo "configure:5511: checking "for --enable-html"" >&5
10f2d63a
VZ
5511 no_cache=0
5512 # Check whether --enable-html or --disable-html was given.
5513if test "${enable_html+set}" = set; then
5514 enableval="$enable_html"
5515
5516 if test "$enableval" = yes; then
5517 ac_cv_use_html='wxUSE_HTML=yes'
5518 else
5519 ac_cv_use_html='wxUSE_HTML=no'
5520 fi
5521
5522else
5523
5524 LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
5525 if test "x$LINE" != x ; then
5526 eval "DEFAULT_$LINE"
5527 else
5528 no_cache=1
5529 fi
5530
5531 ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
5532
5533fi
5534
5535
5536 eval "$ac_cv_use_html"
5537 if test "$no_cache" != 1; then
5538 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
5539 fi
5540
5541 if test "$wxUSE_HTML" = yes; then
5542 echo "$ac_t""yes" 1>&6
5543 else
5544 echo "$ac_t""no" 1>&6
5545 fi
5546
5547
5548 echo $ac_n "checking "for --enable-tooltips"""... $ac_c" 1>&6
0dcf9893 5549echo "configure:5550: checking "for --enable-tooltips"" >&5
10f2d63a
VZ
5550 no_cache=0
5551 # Check whether --enable-tooltips or --disable-tooltips was given.
5552if test "${enable_tooltips+set}" = set; then
5553 enableval="$enable_tooltips"
5554
5555 if test "$enableval" = yes; then
5556 ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
5557 else
5558 ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
5559 fi
5560
5561else
5562
5563 LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
5564 if test "x$LINE" != x ; then
5565 eval "DEFAULT_$LINE"
5566 else
5567 no_cache=1
5568 fi
5569
5570 ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
5571
5572fi
5573
5574
5575 eval "$ac_cv_use_tooltips"
5576 if test "$no_cache" != 1; then
5577 echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
5578 fi
5579
5580 if test "$wxUSE_TOOLTIPS" = yes; then
5581 echo "$ac_t""yes" 1>&6
5582 else
5583 echo "$ac_t""no" 1>&6
5584 fi
5585
5586
5587 echo $ac_n "checking "for --enable-splines"""... $ac_c" 1>&6
0dcf9893 5588echo "configure:5589: checking "for --enable-splines"" >&5
10f2d63a
VZ
5589 no_cache=0
5590 # Check whether --enable-splines or --disable-splines was given.
5591if test "${enable_splines+set}" = set; then
5592 enableval="$enable_splines"
5593
5594 if test "$enableval" = yes; then
5595 ac_cv_use_splines='wxUSE_SPLINES=yes'
5596 else
5597 ac_cv_use_splines='wxUSE_SPLINES=no'
5598 fi
5599
5600else
5601
5602 LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
5603 if test "x$LINE" != x ; then
5604 eval "DEFAULT_$LINE"
5605 else
5606 no_cache=1
5607 fi
5608
5609 ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
5610
5611fi
5612
5613
5614 eval "$ac_cv_use_splines"
5615 if test "$no_cache" != 1; then
5616 echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
5617 fi
5618
5619 if test "$wxUSE_SPLINES" = yes; then
5620 echo "$ac_t""yes" 1>&6
5621 else
5622 echo "$ac_t""no" 1>&6
5623 fi
5624
5625
5626 echo $ac_n "checking "for --enable-validators"""... $ac_c" 1>&6
0dcf9893 5627echo "configure:5628: checking "for --enable-validators"" >&5
10f2d63a
VZ
5628 no_cache=0
5629 # Check whether --enable-validators or --disable-validators was given.
5630if test "${enable_validators+set}" = set; then
5631 enableval="$enable_validators"
5632
5633 if test "$enableval" = yes; then
5634 ac_cv_use_validators='wxUSE_VALIDATORS=yes'
5635 else
5636 ac_cv_use_validators='wxUSE_VALIDATORS=no'
5637 fi
5638
5639else
5640
5641 LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
5642 if test "x$LINE" != x ; then
5643 eval "DEFAULT_$LINE"
5644 else
5645 no_cache=1
5646 fi
5647
5648 ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
5649
5650fi
5651
5652
5653 eval "$ac_cv_use_validators"
5654 if test "$no_cache" != 1; then
5655 echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
5656 fi
5657
5658 if test "$wxUSE_VALIDATORS" = yes; then
5659 echo "$ac_t""yes" 1>&6
5660 else
5661 echo "$ac_t""no" 1>&6
5662 fi
5663
5664
5665 echo $ac_n "checking "for --enable-busyinfo"""... $ac_c" 1>&6
0dcf9893 5666echo "configure:5667: checking "for --enable-busyinfo"" >&5
10f2d63a
VZ
5667 no_cache=0
5668 # Check whether --enable-busyinfo or --disable-busyinfo was given.
5669if test "${enable_busyinfo+set}" = set; then
5670 enableval="$enable_busyinfo"
5671
5672 if test "$enableval" = yes; then
5673 ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
5674 else
5675 ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
5676 fi
5677
5678else
5679
5680 LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
5681 if test "x$LINE" != x ; then
5682 eval "DEFAULT_$LINE"
5683 else
5684 no_cache=1
5685 fi
5686
5687 ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
5688
5689fi
5690
5691
5692 eval "$ac_cv_use_busyinfo"
5693 if test "$no_cache" != 1; then
5694 echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
5695 fi
5696
5697 if test "$wxUSE_BUSYINFO" = yes; then
5698 echo "$ac_t""yes" 1>&6
5699 else
5700 echo "$ac_t""no" 1>&6
5701 fi
5702
5703
9b33fe02 5704 echo $ac_n "checking "for --enable-plot"""... $ac_c" 1>&6
0dcf9893 5705echo "configure:5706: checking "for --enable-plot"" >&5
9b33fe02
VZ
5706 no_cache=0
5707 # Check whether --enable-plot or --disable-plot was given.
5708if test "${enable_plot+set}" = set; then
5709 enableval="$enable_plot"
5710
5711 if test "$enableval" = yes; then
5712 ac_cv_use_plot='wxUSE_PLOT=yes'
5713 else
5714 ac_cv_use_plot='wxUSE_PLOT=no'
5715 fi
5716
5717else
5718
5719 LINE=`grep "wxUSE_PLOT" ${wx_arg_cache_file}`
5720 if test "x$LINE" != x ; then
5721 eval "DEFAULT_$LINE"
5722 else
5723 no_cache=1
5724 fi
5725
5726 ac_cv_use_plot='wxUSE_PLOT='$DEFAULT_wxUSE_PLOT
5727
5728fi
5729
5730
5731 eval "$ac_cv_use_plot"
5732 if test "$no_cache" != 1; then
5733 echo $ac_cv_use_plot >> ${wx_arg_cache_file}.tmp
5734 fi
5735
5736 if test "$wxUSE_PLOT" = yes; then
5737 echo "$ac_t""yes" 1>&6
5738 else
5739 echo "$ac_t""no" 1>&6
5740 fi
5741
5742
10f2d63a
VZ
5743
5744
5745 echo $ac_n "checking "for --enable-gif"""... $ac_c" 1>&6
0dcf9893 5746echo "configure:5747: checking "for --enable-gif"" >&5
10f2d63a
VZ
5747 no_cache=0
5748 # Check whether --enable-gif or --disable-gif was given.
5749if test "${enable_gif+set}" = set; then
5750 enableval="$enable_gif"
5751
5752 if test "$enableval" = yes; then
5753 ac_cv_use_gif='wxUSE_GIF=yes'
5754 else
5755 ac_cv_use_gif='wxUSE_GIF=no'
5756 fi
5757
5758else
5759
5760 LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
5761 if test "x$LINE" != x ; then
5762 eval "DEFAULT_$LINE"
5763 else
5764 no_cache=1
5765 fi
5766
5767 ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
5768
5769fi
5770
5771
5772 eval "$ac_cv_use_gif"
5773 if test "$no_cache" != 1; then
5774 echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
5775 fi
5776
5777 if test "$wxUSE_GIF" = yes; then
5778 echo "$ac_t""yes" 1>&6
5779 else
5780 echo "$ac_t""no" 1>&6
5781 fi
5782
5783
5784 echo $ac_n "checking "for --enable-pcx"""... $ac_c" 1>&6
0dcf9893 5785echo "configure:5786: checking "for --enable-pcx"" >&5
10f2d63a
VZ
5786 no_cache=0
5787 # Check whether --enable-pcx or --disable-pcx was given.
5788if test "${enable_pcx+set}" = set; then
5789 enableval="$enable_pcx"
5790
5791 if test "$enableval" = yes; then
5792 ac_cv_use_pcx='wxUSE_PCX=yes'
5793 else
5794 ac_cv_use_pcx='wxUSE_PCX=no'
5795 fi
5796
5797else
5798
5799 LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
5800 if test "x$LINE" != x ; then
5801 eval "DEFAULT_$LINE"
5802 else
5803 no_cache=1
5804 fi
5805
5806 ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
5807
5808fi
5809
5810
5811 eval "$ac_cv_use_pcx"
5812 if test "$no_cache" != 1; then
5813 echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
5814 fi
5815
5816 if test "$wxUSE_PCX" = yes; then
5817 echo "$ac_t""yes" 1>&6
5818 else
5819 echo "$ac_t""no" 1>&6
5820 fi
5821
5822
5823 echo $ac_n "checking "for --enable-pnm"""... $ac_c" 1>&6
0dcf9893 5824echo "configure:5825: checking "for --enable-pnm"" >&5
10f2d63a
VZ
5825 no_cache=0
5826 # Check whether --enable-pnm or --disable-pnm was given.
5827if test "${enable_pnm+set}" = set; then
5828 enableval="$enable_pnm"
5829
5830 if test "$enableval" = yes; then
5831 ac_cv_use_pnm='wxUSE_PNM=yes'
5832 else
5833 ac_cv_use_pnm='wxUSE_PNM=no'
5834 fi
5835
5836else
5837
5838 LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
5839 if test "x$LINE" != x ; then
5840 eval "DEFAULT_$LINE"
5841 else
5842 no_cache=1
5843 fi
5844
5845 ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
5846
5847fi
5848
5849
5850 eval "$ac_cv_use_pnm"
5851 if test "$no_cache" != 1; then
5852 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
5853 fi
5854
5855 if test "$wxUSE_PNM" = yes; then
5856 echo "$ac_t""yes" 1>&6
5857 else
5858 echo "$ac_t""no" 1>&6
5859 fi
5860
5861
b12915c1
VZ
5862fi
5863
10f2d63a
VZ
5864
5865 echo "saving argument cache $wx_arg_cache_file"
5866 mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
5867
5868
5869
5870echo $ac_n "checking for toolkit""... $ac_c" 1>&6
0dcf9893 5871echo "configure:5872: checking for toolkit" >&5
10f2d63a
VZ
5872
5873if test "$wxUSE_GUI" = "yes"; then
5874
b12915c1
VZ
5875if test "$USE_BEOS" = 1; then
5876 { echo "configure: error: BeOS GUI is not supported yet, use --disable-gui" 1>&2; exit 1; }
5877fi
5878
10f2d63a
VZ
5879if test "$TOOLKIT_GIVEN" = 1; then
5880 for toolkit in `echo $ALL_TOOLKITS`; do
5881 var=wxUSE_$toolkit
5882 eval "value=\$${var}"
5883 eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`"
5884 done
5885else
5886 for toolkit in `echo $ALL_TOOLKITS`; do
5887 if test "$has_toolkit_in_cache" != 1; then
5888 var=DEFAULT_DEFAULT_wxUSE_$toolkit
5889 else
5890 var=DEFAULT_wxUSE_$toolkit
5891 fi
5892 eval "wxUSE_$toolkit=\$${var}"
5893 done
5894fi
5895
ec14dd32 5896NUM_TOOLKITS=`expr ${wxUSE_GTK:-0} + ${wxUSE_MOTIF:-0} + ${wxUSE_WINE:-0} + ${wxUSE_MINGW:-0} + ${wxUSE_CYGWIN:-0}`
cf27ef00 5897
ec14dd32
VZ
5898case "${host}" in
5899 *-pc-os2_emx )
5900 NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
5901 # PATH_IFS is autodetected by OS/2's configure (usually ';')
5902 LEX_STEM="lexyy"
5903 ;;
5904 *)
5905 PATH_IFS=':'
5906 LEX_STEM="lex.yy"
5907 ;;
5908esac
10f2d63a
VZ
5909
5910case "$NUM_TOOLKITS" in
5911 1)
5912 ;;
5913 0)
5914 { echo "configure: error: Please specify a toolkit - cannot determine the default for ${host}" 1>&2; exit 1; }
5915 ;;
5916 *)
5917 { echo "configure: error: Please specify at most one toolkit (may be some are cached?)" 1>&2; exit 1; }
5918esac
5919
5920for toolkit in `echo $ALL_TOOLKITS`; do
5921 var=wxUSE_$toolkit
5922 eval "value=\$${var}"
5923 if test "x$value" != x; then
5924 cache_var=CACHE_$toolkit
5925 eval "cache=\$${cache_var}"
5926 if test "$cache" = 1; then
5927 echo "$var=$value" >> ${wx_arg_cache_file}
5928 fi
5929 if test "$value" = 1; then
5930 echo "$ac_t""`echo $toolkit | tr A-Z a-z`" 1>&6
5931 fi
5932 fi
5933done
5934
5935else
cf27ef00 5936 PATH_IFS=':'
10f2d63a
VZ
5937 echo "$ac_t""base only" 1>&6
5938fi
5939
5940
5941cat > confcache <<\EOF
5942# This file is a shell script that caches the results of configure
5943# tests run on this system so they can be shared between configure
5944# scripts and configure runs. It is not useful on other systems.
5945# If it contains results you don't want to keep, you may remove or edit it.
5946#
5947# By default, configure uses ./config.cache as the cache file,
5948# creating it if it does not exist already. You can give configure
5949# the --cache-file=FILE option to use a different cache file; that is
5950# what configure does when it calls configure scripts in
5951# subdirectories, so they share the cache.
5952# Giving --cache-file=/dev/null disables caching, for debugging configure.
5953# config.status only pays attention to the cache file if you give it the
5954# --recheck option to rerun configure.
5955#
5956EOF
5957# The following way of writing the cache mishandles newlines in values,
5958# but we know of no workaround that is simple, portable, and efficient.
5959# So, don't put newlines in cache variables' values.
5960# Ultrix sh set writes to stderr and can't be redirected directly,
5961# and sets the high bit in the cache file unless we assign to the vars.
5962(set) 2>&1 |
5963 case `(ac_space=' '; set | grep ac_space) 2>&1` in
5964 *ac_space=\ *)
5965 # `set' does not quote correctly, so add quotes (double-quote substitution
5966 # turns \\\\ into \\, and sed turns \\ into \).
5967 sed -n \
5968 -e "s/'/'\\\\''/g" \
5969 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
5970 ;;
5971 *)
5972 # `set' quotes correctly as required by POSIX, so do not add quotes.
5973 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
5974 ;;
5975 esac >> confcache
5976if cmp -s $cache_file confcache; then
5977 :
5978else
5979 if test -w $cache_file; then
5980 echo "updating cache $cache_file"
5981 cat confcache > $cache_file
5982 else
5983 echo "not updating unwritable cache $cache_file"
5984 fi
5985fi
5986rm -f confcache
5987
5988
5989if eval "test $host != $build"; then
5990 if eval "test $host_alias != NONE"; then
5991 CC=$host_alias-gcc
5992 CXX=$host_alias-c++
5993 AR=$host_alias-ar
5994 RANLIB=$host_alias-ranlib
5995 DLLTOOL=$host_alias-dlltool
5996 LD=$host_alias-ld
5997 NM=$host_alias-nm
5998 STRIP=$host_alias-strip
5999 fi
6000fi
6001
6002# Extract the first word of "gcc", so it can be a program name with args.
6003set dummy gcc; ac_word=$2
6004echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
0dcf9893 6005echo "configure:6006: checking for $ac_word" >&5
10f2d63a
VZ
6006if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
6007 echo $ac_n "(cached) $ac_c" 1>&6
6008else
6009 if test -n "$CC"; then
6010 ac_cv_prog_CC="$CC" # Let the user override the test.
6011else
6012 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6013 ac_dummy="$PATH"
6014 for ac_dir in $ac_dummy; do
6015 test -z "$ac_dir" && ac_dir=.
6016 if test -f $ac_dir/$ac_word; then
6017 ac_cv_prog_CC="gcc"
6018 break
6019 fi
6020 done
6021 IFS="$ac_save_ifs"
6022fi
6023fi
6024CC="$ac_cv_prog_CC"
6025if test -n "$CC"; then
6026 echo "$ac_t""$CC" 1>&6
6027else
6028 echo "$ac_t""no" 1>&6
6029fi
6030
6031if test -z "$CC"; then
6032 # Extract the first word of "cc", so it can be a program name with args.
6033set dummy cc; ac_word=$2
6034echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
0dcf9893 6035echo "configure:6036: checking for $ac_word" >&5
10f2d63a
VZ
6036if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
6037 echo $ac_n "(cached) $ac_c" 1>&6
6038else
6039 if test -n "$CC"; then
6040 ac_cv_prog_CC="$CC" # Let the user override the test.
6041else
6042 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6043 ac_prog_rejected=no
6044 ac_dummy="$PATH"
6045 for ac_dir in $ac_dummy; do
6046 test -z "$ac_dir" && ac_dir=.
6047 if test -f $ac_dir/$ac_word; then
6048 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
6049 ac_prog_rejected=yes
6050 continue
6051 fi
6052 ac_cv_prog_CC="cc"
6053 break
6054 fi
6055 done
6056 IFS="$ac_save_ifs"
6057if test $ac_prog_rejected = yes; then
6058 # We found a bogon in the path, so make sure we never use it.
6059 set dummy $ac_cv_prog_CC
6060 shift
6061 if test $# -gt 0; then
6062 # We chose a different compiler from the bogus one.
6063 # However, it has the same basename, so the bogon will be chosen
6064 # first if we set CC to just the basename; use the full file name.
6065 shift
6066 set dummy "$ac_dir/$ac_word" "$@"
6067 shift
6068 ac_cv_prog_CC="$@"
6069 fi
6070fi
6071fi
6072fi
6073CC="$ac_cv_prog_CC"
6074if test -n "$CC"; then
6075 echo "$ac_t""$CC" 1>&6
6076else
6077 echo "$ac_t""no" 1>&6
6078fi
6079
6080 if test -z "$CC"; then
6081 case "`uname -s`" in
6082 *win32* | *WIN32*)
6083 # Extract the first word of "cl", so it can be a program name with args.
6084set dummy cl; ac_word=$2
6085echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
0dcf9893 6086echo "configure:6087: checking for $ac_word" >&5
10f2d63a
VZ
6087if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
6088 echo $ac_n "(cached) $ac_c" 1>&6
6089else
6090 if test -n "$CC"; then
6091 ac_cv_prog_CC="$CC" # Let the user override the test.
6092else
6093 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6094 ac_dummy="$PATH"
6095 for ac_dir in $ac_dummy; do
6096 test -z "$ac_dir" && ac_dir=.
6097 if test -f $ac_dir/$ac_word; then
6098 ac_cv_prog_CC="cl"
6099 break
6100 fi
6101 done
6102 IFS="$ac_save_ifs"
6103fi
6104fi
6105CC="$ac_cv_prog_CC"
6106if test -n "$CC"; then
6107 echo "$ac_t""$CC" 1>&6
6108else
6109 echo "$ac_t""no" 1>&6
6110fi
6111 ;;
6112 esac
6113 fi
6114 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
6115fi
6116
6117echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
0dcf9893 6118echo "configure:6119: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
10f2d63a
VZ
6119
6120ac_ext=c
6121# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6122ac_cpp='$CPP $CPPFLAGS'
6123ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6124ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6125cross_compiling=$ac_cv_prog_cc_cross
6126
6127cat > conftest.$ac_ext << EOF
6128
0dcf9893 6129#line 6130 "configure"
10f2d63a
VZ
6130#include "confdefs.h"
6131
6132main(){return(0);}
6133EOF
0dcf9893 6134if { (eval echo configure:6135: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
6135 ac_cv_prog_cc_works=yes
6136 # If we can't run a trivial program, we are probably using a cross compiler.
6137 if (./conftest; exit) 2>/dev/null; then
6138 ac_cv_prog_cc_cross=no
6139 else
6140 ac_cv_prog_cc_cross=yes
6141 fi
6142else
6143 echo "configure: failed program was:" >&5
6144 cat conftest.$ac_ext >&5
6145 ac_cv_prog_cc_works=no
6146fi
6147rm -fr conftest*
6148ac_ext=c
6149# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6150ac_cpp='$CPP $CPPFLAGS'
6151ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6152ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6153cross_compiling=$ac_cv_prog_cc_cross
6154
6155echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
6156if test $ac_cv_prog_cc_works = no; then
6157 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
6158fi
6159echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
0dcf9893 6160echo "configure:6161: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
10f2d63a
VZ
6161echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
6162cross_compiling=$ac_cv_prog_cc_cross
6163
6164echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
0dcf9893 6165echo "configure:6166: checking whether we are using GNU C" >&5
10f2d63a
VZ
6166if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
6167 echo $ac_n "(cached) $ac_c" 1>&6
6168else
6169 cat > conftest.c <<EOF
6170#ifdef __GNUC__
6171 yes;
6172#endif
6173EOF
0dcf9893 6174if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:6175: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
10f2d63a
VZ
6175 ac_cv_prog_gcc=yes
6176else
6177 ac_cv_prog_gcc=no
6178fi
6179fi
6180
6181echo "$ac_t""$ac_cv_prog_gcc" 1>&6
6182
6183if test $ac_cv_prog_gcc = yes; then
6184 GCC=yes
6185else
6186 GCC=
6187fi
6188
6189ac_test_CFLAGS="${CFLAGS+set}"
6190ac_save_CFLAGS="$CFLAGS"
6191CFLAGS=
6192echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
0dcf9893 6193echo "configure:6194: checking whether ${CC-cc} accepts -g" >&5
10f2d63a
VZ
6194if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
6195 echo $ac_n "(cached) $ac_c" 1>&6
6196else
6197 echo 'void f(){}' > conftest.c
6198if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
6199 ac_cv_prog_cc_g=yes
6200else
6201 ac_cv_prog_cc_g=no
6202fi
6203rm -f conftest*
6204
6205fi
6206
6207echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
6208if test "$ac_test_CFLAGS" = set; then
6209 CFLAGS="$ac_save_CFLAGS"
6210elif test $ac_cv_prog_cc_g = yes; then
6211 if test "$GCC" = yes; then
6212 CFLAGS="-g -O2"
6213 else
6214 CFLAGS="-g"
6215 fi
6216else
6217 if test "$GCC" = yes; then
6218 CFLAGS="-O2"
6219 else
6220 CFLAGS=
6221 fi
6222fi
6223
6224
6225CFLAGS=`echo "$CFLAGS" | sed 's/-g//g'`
6226
6227echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
0dcf9893 6228echo "configure:6229: checking how to run the C preprocessor" >&5
10f2d63a
VZ
6229# On Suns, sometimes $CPP names a directory.
6230if test -n "$CPP" && test -d "$CPP"; then
6231 CPP=
6232fi
6233if test -z "$CPP"; then
6234if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
6235 echo $ac_n "(cached) $ac_c" 1>&6
6236else
6237 # This must be in double quotes, not single quotes, because CPP may get
6238 # substituted into the Makefile and "${CC-cc}" will confuse make.
6239 CPP="${CC-cc} -E"
6240 # On the NeXT, cc -E runs the code through the compiler's parser,
6241 # not just through cpp.
6242 cat > conftest.$ac_ext <<EOF
0dcf9893 6243#line 6244 "configure"
10f2d63a
VZ
6244#include "confdefs.h"
6245#include <assert.h>
6246Syntax Error
6247EOF
6248ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
0dcf9893 6249{ (eval echo configure:6250: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
6250ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6251if test -z "$ac_err"; then
6252 :
6253else
6254 echo "$ac_err" >&5
6255 echo "configure: failed program was:" >&5
6256 cat conftest.$ac_ext >&5
6257 rm -rf conftest*
6258 CPP="${CC-cc} -E -traditional-cpp"
6259 cat > conftest.$ac_ext <<EOF
0dcf9893 6260#line 6261 "configure"
10f2d63a
VZ
6261#include "confdefs.h"
6262#include <assert.h>
6263Syntax Error
6264EOF
6265ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
0dcf9893 6266{ (eval echo configure:6267: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
6267ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6268if test -z "$ac_err"; then
6269 :
6270else
6271 echo "$ac_err" >&5
6272 echo "configure: failed program was:" >&5
6273 cat conftest.$ac_ext >&5
6274 rm -rf conftest*
6275 CPP="${CC-cc} -nologo -E"
6276 cat > conftest.$ac_ext <<EOF
0dcf9893 6277#line 6278 "configure"
10f2d63a
VZ
6278#include "confdefs.h"
6279#include <assert.h>
6280Syntax Error
6281EOF
6282ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
0dcf9893 6283{ (eval echo configure:6284: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
6284ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6285if test -z "$ac_err"; then
6286 :
6287else
6288 echo "$ac_err" >&5
6289 echo "configure: failed program was:" >&5
6290 cat conftest.$ac_ext >&5
6291 rm -rf conftest*
6292 CPP=/lib/cpp
6293fi
6294rm -f conftest*
6295fi
6296rm -f conftest*
6297fi
6298rm -f conftest*
6299 ac_cv_prog_CPP="$CPP"
6300fi
6301 CPP="$ac_cv_prog_CPP"
6302else
6303 ac_cv_prog_CPP="$CPP"
6304fi
6305echo "$ac_t""$CPP" 1>&6
6306
6307
6308if test $ac_cv_prog_gcc = yes; then
6309 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
0dcf9893 6310echo "configure:6311: checking whether ${CC-cc} needs -traditional" >&5
10f2d63a
VZ
6311if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
6312 echo $ac_n "(cached) $ac_c" 1>&6
6313else
6314 ac_pattern="Autoconf.*'x'"
6315 cat > conftest.$ac_ext <<EOF
0dcf9893 6316#line 6317 "configure"
10f2d63a
VZ
6317#include "confdefs.h"
6318#include <sgtty.h>
6319Autoconf TIOCGETP
6320EOF
6321if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6322 egrep "$ac_pattern" >/dev/null 2>&1; then
6323 rm -rf conftest*
6324 ac_cv_prog_gcc_traditional=yes
6325else
6326 rm -rf conftest*
6327 ac_cv_prog_gcc_traditional=no
6328fi
6329rm -f conftest*
6330
6331
6332 if test $ac_cv_prog_gcc_traditional = no; then
6333 cat > conftest.$ac_ext <<EOF
0dcf9893 6334#line 6335 "configure"
10f2d63a
VZ
6335#include "confdefs.h"
6336#include <termio.h>
6337Autoconf TCGETA
6338EOF
6339if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6340 egrep "$ac_pattern" >/dev/null 2>&1; then
6341 rm -rf conftest*
6342 ac_cv_prog_gcc_traditional=yes
6343fi
6344rm -f conftest*
6345
6346 fi
6347fi
6348
6349echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
6350 if test $ac_cv_prog_gcc_traditional = yes; then
6351 CC="$CC -traditional"
6352 fi
6353fi
6354
6355
6356
6357ac_ext=C
6358# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6359ac_cpp='$CXXCPP $CPPFLAGS'
6360ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6361ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6362cross_compiling=$ac_cv_prog_cxx_cross
6363
6364
6365for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
6366do
6367# Extract the first word of "$ac_prog", so it can be a program name with args.
6368set dummy $ac_prog; ac_word=$2
6369echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
0dcf9893 6370echo "configure:6371: checking for $ac_word" >&5
10f2d63a
VZ
6371if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
6372 echo $ac_n "(cached) $ac_c" 1>&6
6373else
6374 if test -n "$CXX"; then
6375 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6376else
6377 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6378 ac_dummy="$PATH"
6379 for ac_dir in $ac_dummy; do
6380 test -z "$ac_dir" && ac_dir=.
6381 if test -f $ac_dir/$ac_word; then
6382 ac_cv_prog_CXX="$ac_prog"
6383 break
6384 fi
6385 done
6386 IFS="$ac_save_ifs"
6387fi
6388fi
6389CXX="$ac_cv_prog_CXX"
6390if test -n "$CXX"; then
6391 echo "$ac_t""$CXX" 1>&6
6392else
6393 echo "$ac_t""no" 1>&6
6394fi
6395
6396test -n "$CXX" && break
6397done
6398test -n "$CXX" || CXX="gcc"
6399
6400
6401echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
0dcf9893 6402echo "configure:6403: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
10f2d63a
VZ
6403
6404ac_ext=C
6405# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6406ac_cpp='$CXXCPP $CPPFLAGS'
6407ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6408ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6409cross_compiling=$ac_cv_prog_cxx_cross
6410
6411cat > conftest.$ac_ext << EOF
6412
0dcf9893 6413#line 6414 "configure"
10f2d63a
VZ
6414#include "confdefs.h"
6415
6416int main(){return(0);}
6417EOF
0dcf9893 6418if { (eval echo configure:6419: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
6419 ac_cv_prog_cxx_works=yes
6420 # If we can't run a trivial program, we are probably using a cross compiler.
6421 if (./conftest; exit) 2>/dev/null; then
6422 ac_cv_prog_cxx_cross=no
6423 else
6424 ac_cv_prog_cxx_cross=yes
6425 fi
6426else
6427 echo "configure: failed program was:" >&5
6428 cat conftest.$ac_ext >&5
6429 ac_cv_prog_cxx_works=no
6430fi
6431rm -fr conftest*
6432ac_ext=C
6433# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6434ac_cpp='$CXXCPP $CPPFLAGS'
6435ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6436ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6437cross_compiling=$ac_cv_prog_cxx_cross
6438
6439echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
6440if test $ac_cv_prog_cxx_works = no; then
6441 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
6442fi
6443echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
0dcf9893 6444echo "configure:6445: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
10f2d63a
VZ
6445echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
6446cross_compiling=$ac_cv_prog_cxx_cross
6447
6448echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
0dcf9893 6449echo "configure:6450: checking whether we are using GNU C++" >&5
10f2d63a
VZ
6450if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
6451 echo $ac_n "(cached) $ac_c" 1>&6
6452else
6453 cat > conftest.C <<EOF
6454#ifdef __GNUC__
6455 yes;
6456#endif
6457EOF
0dcf9893 6458if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:6459: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
10f2d63a
VZ
6459 ac_cv_prog_gxx=yes
6460else
6461 ac_cv_prog_gxx=no
6462fi
6463fi
6464
6465echo "$ac_t""$ac_cv_prog_gxx" 1>&6
6466
6467if test $ac_cv_prog_gxx = yes; then
6468 GXX=yes
6469else
6470 GXX=
6471fi
6472
6473ac_test_CXXFLAGS="${CXXFLAGS+set}"
6474ac_save_CXXFLAGS="$CXXFLAGS"
6475CXXFLAGS=
6476echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
0dcf9893 6477echo "configure:6478: checking whether ${CXX-g++} accepts -g" >&5
10f2d63a
VZ
6478if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
6479 echo $ac_n "(cached) $ac_c" 1>&6
6480else
6481 echo 'void f(){}' > conftest.cc
6482if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
6483 ac_cv_prog_cxx_g=yes
6484else
6485 ac_cv_prog_cxx_g=no
6486fi
6487rm -f conftest*
6488
6489fi
6490
6491echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
6492if test "$ac_test_CXXFLAGS" = set; then
6493 CXXFLAGS="$ac_save_CXXFLAGS"
6494elif test $ac_cv_prog_cxx_g = yes; then
6495 if test "$GXX" = yes; then
6496 CXXFLAGS="-g -O2"
6497 else
6498 CXXFLAGS="-g"
6499 fi
6500else
6501 if test "$GXX" = yes; then
6502 CXXFLAGS="-O2"
6503 else
6504 CXXFLAGS=
6505 fi
6506fi
6507
6508
6509echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
0dcf9893 6510echo "configure:6511: checking how to run the C++ preprocessor" >&5
10f2d63a
VZ
6511if test -z "$CXXCPP"; then
6512if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
6513 echo $ac_n "(cached) $ac_c" 1>&6
6514else
6515 ac_ext=C
6516# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6517ac_cpp='$CXXCPP $CPPFLAGS'
6518ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6519ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6520cross_compiling=$ac_cv_prog_cxx_cross
6521 CXXCPP="${CXX-g++} -E"
6522 cat > conftest.$ac_ext <<EOF
0dcf9893 6523#line 6524 "configure"
10f2d63a
VZ
6524#include "confdefs.h"
6525#include <stdlib.h>
6526EOF
6527ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
0dcf9893 6528{ (eval echo configure:6529: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
6529ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6530if test -z "$ac_err"; then
6531 :
6532else
6533 echo "$ac_err" >&5
6534 echo "configure: failed program was:" >&5
6535 cat conftest.$ac_ext >&5
6536 rm -rf conftest*
6537 CXXCPP=/lib/cpp
6538fi
6539rm -f conftest*
6540 ac_cv_prog_CXXCPP="$CXXCPP"
6541ac_ext=C
6542# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6543ac_cpp='$CXXCPP $CPPFLAGS'
6544ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6545ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6546cross_compiling=$ac_cv_prog_cxx_cross
6547fi
6548fi
6549CXXCPP="$ac_cv_prog_CXXCPP"
6550echo "$ac_t""$CXXCPP" 1>&6
6551
6552
6553CXXFLAGS=`echo "$CXXFLAGS" | sed 's/-g//g'`
6554
6555ac_ext=c
6556# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6557ac_cpp='$CPP $CPPFLAGS'
6558ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6559ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6560cross_compiling=$ac_cv_prog_cc_cross
6561
6562
6563# Extract the first word of "ranlib", so it can be a program name with args.
6564set dummy ranlib; ac_word=$2
6565echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
0dcf9893 6566echo "configure:6567: checking for $ac_word" >&5
10f2d63a
VZ
6567if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
6568 echo $ac_n "(cached) $ac_c" 1>&6
6569else
6570 if test -n "$RANLIB"; then
6571 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6572else
6573 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6574 ac_dummy="$PATH"
6575 for ac_dir in $ac_dummy; do
6576 test -z "$ac_dir" && ac_dir=.
6577 if test -f $ac_dir/$ac_word; then
6578 ac_cv_prog_RANLIB="ranlib"
6579 break
6580 fi
6581 done
6582 IFS="$ac_save_ifs"
6583 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
6584fi
6585fi
6586RANLIB="$ac_cv_prog_RANLIB"
6587if test -n "$RANLIB"; then
6588 echo "$ac_t""$RANLIB" 1>&6
6589else
6590 echo "$ac_t""no" 1>&6
6591fi
6592
6593
6594# Extract the first word of "ar", so it can be a program name with args.
6595set dummy ar; ac_word=$2
6596echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
0dcf9893 6597echo "configure:6598: checking for $ac_word" >&5
10f2d63a
VZ
6598if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
6599 echo $ac_n "(cached) $ac_c" 1>&6
6600else
6601 if test -n "$AR"; then
6602 ac_cv_prog_AR="$AR" # Let the user override the test.
6603else
6604 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6605 ac_dummy="$PATH"
6606 for ac_dir in $ac_dummy; do
6607 test -z "$ac_dir" && ac_dir=.
6608 if test -f $ac_dir/$ac_word; then
6609 ac_cv_prog_AR="ar"
6610 break
6611 fi
6612 done
6613 IFS="$ac_save_ifs"
6614 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
6615fi
6616fi
6617AR="$ac_cv_prog_AR"
6618if test -n "$AR"; then
6619 echo "$ac_t""$AR" 1>&6
6620else
6621 echo "$ac_t""no" 1>&6
6622fi
6623
6624
6625# Find a good install program. We prefer a C program (faster),
6626# so one script is as good as another. But avoid the broken or
6627# incompatible versions:
6628# SysV /etc/install, /usr/sbin/install
6629# SunOS /usr/etc/install
6630# IRIX /sbin/install
6631# AIX /bin/install
6632# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6633# AFS /usr/afsws/bin/install, which mishandles nonexistent args
6634# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6635# ./install, which can be erroneously created by make from ./install.sh.
6636echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
0dcf9893 6637echo "configure:6638: checking for a BSD compatible install" >&5
10f2d63a
VZ
6638if test -z "$INSTALL"; then
6639if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
6640 echo $ac_n "(cached) $ac_c" 1>&6
6641else
6642 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
6643 for ac_dir in $PATH; do
6644 # Account for people who put trailing slashes in PATH elements.
6645 case "$ac_dir/" in
6646 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
6647 *)
6648 # OSF1 and SCO ODT 3.0 have their own names for install.
6649 # Don't use installbsd from OSF since it installs stuff as root
6650 # by default.
6651 for ac_prog in ginstall scoinst install; do
6652 if test -f $ac_dir/$ac_prog; then
6653 if test $ac_prog = install &&
6654 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
6655 # AIX install. It has an incompatible calling convention.
6656 :
6657 else
6658 ac_cv_path_install="$ac_dir/$ac_prog -c"
6659 break 2
6660 fi
6661 fi
6662 done
6663 ;;
6664 esac
6665 done
6666 IFS="$ac_save_IFS"
6667
6668fi
6669 if test "${ac_cv_path_install+set}" = set; then
6670 INSTALL="$ac_cv_path_install"
6671 else
6672 # As a last resort, use the slow shell script. We don't cache a
6673 # path for INSTALL within a source directory, because that will
6674 # break other packages using the cache if that directory is
6675 # removed, or if the path is relative.
6676 INSTALL="$ac_install_sh"
6677 fi
6678fi
6679echo "$ac_t""$INSTALL" 1>&6
6680
6681# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6682# It thinks the first close brace ends the variable substitution.
6683test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6684
6685test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
6686
6687test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6688
6689
6690# Extract the first word of "strip", so it can be a program name with args.
6691set dummy strip; ac_word=$2
6692echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
0dcf9893 6693echo "configure:6694: checking for $ac_word" >&5
10f2d63a
VZ
6694if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
6695 echo $ac_n "(cached) $ac_c" 1>&6
6696else
6697 if test -n "$STRIP"; then
6698 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6699else
6700 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6701 ac_dummy="$PATH"
6702 for ac_dir in $ac_dummy; do
6703 test -z "$ac_dir" && ac_dir=.
6704 if test -f $ac_dir/$ac_word; then
6705 ac_cv_prog_STRIP="strip"
6706 break
6707 fi
6708 done
6709 IFS="$ac_save_ifs"
6710 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true"
6711fi
6712fi
6713STRIP="$ac_cv_prog_STRIP"
6714if test -n "$STRIP"; then
6715 echo "$ac_t""$STRIP" 1>&6
6716else
6717 echo "$ac_t""no" 1>&6
6718fi
6719
6720
6721echo $ac_n "checking "make for VPATH support"""... $ac_c" 1>&6
0dcf9893 6722echo "configure:6723: checking "make for VPATH support"" >&5
10f2d63a
VZ
6723cat - << EOF > confMake
6724check : file
6725 cp \$? \$@
6726 cp \$? final_file
6727EOF
6728
6729if test ! -d sub ; then
6730 mkdir sub
6731fi
6732echo dummy > sub/file
6733${MAKE-make} -f confMake VPATH=sub 2> config.log > /dev/null
6734RESULT=$?
6735rm -f sub/file check final_file confMake
6736rmdir sub
6737if test "$RESULT" = 0; then
6738 echo "$ac_t""yes" 1>&6
6739else
6740 echo "$ac_t""no" 1>&6
6741 { echo "configure: error: You need a make-utility that is able to use the variable
6742VPATH correctly.
6743If your version of make does not support VPATH correctly" 1>&2; exit 1; }
6744fi
6745
6746for ac_prog in 'bison -y' byacc
6747do
6748# Extract the first word of "$ac_prog", so it can be a program name with args.
6749set dummy $ac_prog; ac_word=$2
6750echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
0dcf9893 6751echo "configure:6752: checking for $ac_word" >&5
10f2d63a
VZ
6752if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
6753 echo $ac_n "(cached) $ac_c" 1>&6
6754else
6755 if test -n "$YACC"; then
6756 ac_cv_prog_YACC="$YACC" # Let the user override the test.
6757else
6758 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6759 ac_dummy="$PATH"
6760 for ac_dir in $ac_dummy; do
6761 test -z "$ac_dir" && ac_dir=.
6762 if test -f $ac_dir/$ac_word; then
6763 ac_cv_prog_YACC="$ac_prog"
6764 break
6765 fi
6766 done
6767 IFS="$ac_save_ifs"
6768fi
6769fi
6770YACC="$ac_cv_prog_YACC"
6771if test -n "$YACC"; then
6772 echo "$ac_t""$YACC" 1>&6
6773else
6774 echo "$ac_t""no" 1>&6
6775fi
6776
6777test -n "$YACC" && break
6778done
6779test -n "$YACC" || YACC="yacc"
6780
6781
6782# Extract the first word of "flex", so it can be a program name with args.
6783set dummy flex; ac_word=$2
6784echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
0dcf9893 6785echo "configure:6786: checking for $ac_word" >&5
10f2d63a
VZ
6786if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
6787 echo $ac_n "(cached) $ac_c" 1>&6
6788else
6789 if test -n "$LEX"; then
6790 ac_cv_prog_LEX="$LEX" # Let the user override the test.
6791else
6792 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6793 ac_dummy="$PATH"
6794 for ac_dir in $ac_dummy; do
6795 test -z "$ac_dir" && ac_dir=.
6796 if test -f $ac_dir/$ac_word; then
6797 ac_cv_prog_LEX="flex"
6798 break
6799 fi
6800 done
6801 IFS="$ac_save_ifs"
6802 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
6803fi
6804fi
6805LEX="$ac_cv_prog_LEX"
6806if test -n "$LEX"; then
6807 echo "$ac_t""$LEX" 1>&6
6808else
6809 echo "$ac_t""no" 1>&6
6810fi
6811
6812if test -z "$LEXLIB"
6813then
6814 case "$LEX" in
6815 flex*) ac_lib=fl ;;
6816 *) ac_lib=l ;;
6817 esac
6818 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
0dcf9893 6819echo "configure:6820: checking for yywrap in -l$ac_lib" >&5
10f2d63a
VZ
6820ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
6821if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6822 echo $ac_n "(cached) $ac_c" 1>&6
6823else
6824 ac_save_LIBS="$LIBS"
6825LIBS="-l$ac_lib $LIBS"
6826cat > conftest.$ac_ext <<EOF
0dcf9893 6827#line 6828 "configure"
10f2d63a
VZ
6828#include "confdefs.h"
6829/* Override any gcc2 internal prototype to avoid an error. */
6830/* We use char because int might match the return type of a gcc2
6831 builtin and then its argument prototype would still apply. */
6832char yywrap();
6833
6834int main() {
6835yywrap()
6836; return 0; }
6837EOF
0dcf9893 6838if { (eval echo configure:6839: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
6839 rm -rf conftest*
6840 eval "ac_cv_lib_$ac_lib_var=yes"
6841else
6842 echo "configure: failed program was:" >&5
6843 cat conftest.$ac_ext >&5
6844 rm -rf conftest*
6845 eval "ac_cv_lib_$ac_lib_var=no"
6846fi
6847rm -f conftest*
6848LIBS="$ac_save_LIBS"
6849
6850fi
6851if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6852 echo "$ac_t""yes" 1>&6
6853 LEXLIB="-l$ac_lib"
6854else
6855 echo "$ac_t""no" 1>&6
6856fi
6857
6858fi
6859
6860
6861echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
0dcf9893 6862echo "configure:6863: checking whether ln -s works" >&5
10f2d63a
VZ
6863if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
6864 echo $ac_n "(cached) $ac_c" 1>&6
6865else
6866 rm -f conftestdata
6867if ln -s X conftestdata 2>/dev/null
6868then
6869 rm -f conftestdata
6870 ac_cv_prog_LN_S="ln -s"
6871else
6872 ac_cv_prog_LN_S=ln
6873fi
6874fi
6875LN_S="$ac_cv_prog_LN_S"
6876if test "$ac_cv_prog_LN_S" = "ln -s"; then
6877 echo "$ac_t""yes" 1>&6
6878else
6879 echo "$ac_t""no" 1>&6
6880fi
6881
6882
6883
6884SEARCH_INCLUDE="\
6885 /usr/local/include \
6886 \
6887 /usr/Motif-1.2/include \
6888 /usr/Motif-2.1/include \
6889 \
6890 /usr/include/Motif1.2 \
6891 /opt/xpm/include/X11 \
6892 /opt/GBxpm/include/ \
6893 /opt/GBxpm/X11/include/ \
6894 \
6895 /usr/Motif1.2/include \
6896 /usr/dt/include \
afc31813
VZ
6897 /usr/openwin/include \
6898 \
10f2d63a
VZ
6899 /usr/include/Xm \
6900 \
6901 /usr/X11R6/include \
afc31813 6902 /usr/X11R6.4/include \
10f2d63a
VZ
6903 /usr/X11R5/include \
6904 /usr/X11R4/include \
6905 \
10f2d63a
VZ
6906 /usr/include/X11R6 \
6907 /usr/include/X11R5 \
6908 /usr/include/X11R4 \
6909 \
6910 /usr/local/X11R6/include \
6911 /usr/local/X11R5/include \
6912 /usr/local/X11R4/include \
6913 \
6914 /usr/local/include/X11R6 \
6915 /usr/local/include/X11R5 \
6916 /usr/local/include/X11R4 \
6917 \
6918 /usr/X11/include \
6919 /usr/include/X11 \
6920 /usr/local/X11/include \
6921 /usr/local/include/X11 \
6922 \
6923 /usr/X386/include \
6924 /usr/x386/include \
6925 /usr/XFree86/include/X11 \
6926 \
cf27ef00 6927 X:/XFree86/include \
ec14dd32
VZ
6928 X:/XFree86/include/X11 \
6929 \
10f2d63a
VZ
6930 /usr/include/gtk \
6931 /usr/local/include/gtk \
6932 /usr/include/glib \
6933 /usr/local/include/glib \
6934 \
6935 /usr/include/qt \
6936 /usr/local/include/qt \
6937 \
6938 /usr/include/windows \
6939 /usr/include/wine \
6940 /usr/local/include/wine \
6941 \
6942 /usr/unsupported/include \
6943 /usr/athena/include \
6944 /usr/local/x11r5/include \
6945 /usr/lpp/Xamples/include \
6946 \
10f2d63a 6947 /usr/openwin/share/include \
928b5c08
VZ
6948 \
6949 /usr/include"
10f2d63a
VZ
6950
6951SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s/include/lib/g` "
6952
6953
6954cat > confcache <<\EOF
6955# This file is a shell script that caches the results of configure
6956# tests run on this system so they can be shared between configure
6957# scripts and configure runs. It is not useful on other systems.
6958# If it contains results you don't want to keep, you may remove or edit it.
6959#
6960# By default, configure uses ./config.cache as the cache file,
6961# creating it if it does not exist already. You can give configure
6962# the --cache-file=FILE option to use a different cache file; that is
6963# what configure does when it calls configure scripts in
6964# subdirectories, so they share the cache.
6965# Giving --cache-file=/dev/null disables caching, for debugging configure.
6966# config.status only pays attention to the cache file if you give it the
6967# --recheck option to rerun configure.
6968#
6969EOF
6970# The following way of writing the cache mishandles newlines in values,
6971# but we know of no workaround that is simple, portable, and efficient.
6972# So, don't put newlines in cache variables' values.
6973# Ultrix sh set writes to stderr and can't be redirected directly,
6974# and sets the high bit in the cache file unless we assign to the vars.
6975(set) 2>&1 |
6976 case `(ac_space=' '; set | grep ac_space) 2>&1` in
6977 *ac_space=\ *)
6978 # `set' does not quote correctly, so add quotes (double-quote substitution
6979 # turns \\\\ into \\, and sed turns \\ into \).
6980 sed -n \
6981 -e "s/'/'\\\\''/g" \
6982 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
6983 ;;
6984 *)
6985 # `set' quotes correctly as required by POSIX, so do not add quotes.
6986 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
6987 ;;
6988 esac >> confcache
6989if cmp -s $cache_file confcache; then
6990 :
6991else
6992 if test -w $cache_file; then
6993 echo "updating cache $cache_file"
6994 cat confcache > $cache_file
6995 else
6996 echo "not updating unwritable cache $cache_file"
6997 fi
6998fi
6999rm -f confcache
7000
7001
7002
dad6c0ea
VZ
7003AFMINSTALL=
7004
10f2d63a
VZ
7005if test "$wxUSE_GUI" = "yes"; then
7006
dad6c0ea
VZ
7007USE_GUI=1
7008
10f2d63a
VZ
7009TOOLKIT=
7010TOOLKIT_INCLUDE=
7011
7012GUIOBJS=
7013COMMONOBJS=
7014GENERICOBJS=
7015
7016GUI_TK_LIBRARY=
7017GUI_TK_LINK=
7018
7019WXGTK12=
13111b2a 7020WXGTK13=
10f2d63a
VZ
7021
7022WXWINE=
7023
10f2d63a
VZ
7024if test "$wxUSE_CYGWIN" = 1 || test "$wxUSE_MINGW" = 1 ; then
7025 if test "$cross_compiling" = "yes" ; then
7026 echo "configure: warning: Cross compiling --- skipping windows.h check" 1>&2
7027 else
7028 echo $ac_n "checking for Windows headers""... $ac_c" 1>&6
0dcf9893 7029echo "configure:7030: checking for Windows headers" >&5
10f2d63a
VZ
7030
7031ac_find_includes=
7032for ac_dir in $SEARCH_INCLUDE;
7033 do
7034 if test -f "$ac_dir/windows.h"; then
7035 ac_find_includes=$ac_dir
7036 break
7037 fi
7038 done
7039
7040 if test "$ac_find_includes" != "" ; then
7041 echo "$ac_t""found $ac_find_includes" 1>&6
7042 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE -I$ac_find_includes"
7043 else
7044 echo "$ac_t""no" 1>&6
7045 { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; }
7046 fi
7047 fi
7048
7049 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS msw"
7050 LIBS="$LIBS -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lctl3d32 -lcrtdll -ladvapi32 -lwsock32"
7051
7052 if test "$wxUSE_MINGW" = 1; then
7053 LDFLAGS="$LDFLAGS -mwindows"
7054 fi
7055
7056 TOOLKIT=MSW
7057
7058 GUIOBJS="\$(MSW_GUIOBJS)"
7059 GUIHEADERS="\$(MSW_HEADERS)"
7060 COMMONOBJS="\$(MSW_COMMONOBJS)"
7061 GENERICOBJS="\$(MSW_GENERICOBJS)"
7062 UNIXOBJS=
7063 GUIDIST=MSW_DIST
10f2d63a
VZ
7064fi
7065
7066if test "$wxUSE_GTK" = 1; then
7067
7068 if test x$gtk_config_exec_prefix != x ; then
7069 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
7070 if test x${GTK_CONFIG+set} != xset ; then
7071 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
7072 fi
7073 fi
7074 if test x$gtk_config_prefix != x ; then
7075 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
7076 if test x${GTK_CONFIG+set} != xset ; then
7077 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
7078 fi
7079 fi
7080
7081 # Extract the first word of "gtk-config", so it can be a program name with args.
7082set dummy gtk-config; ac_word=$2
7083echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
0dcf9893 7084echo "configure:7085: checking for $ac_word" >&5
10f2d63a
VZ
7085if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
7086 echo $ac_n "(cached) $ac_c" 1>&6
7087else
7088 case "$GTK_CONFIG" in
7089 /*)
7090 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
7091 ;;
7092 ?:/*)
7093 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
7094 ;;
7095 *)
7096 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7097 ac_dummy="$PATH"
7098 for ac_dir in $ac_dummy; do
7099 test -z "$ac_dir" && ac_dir=.
7100 if test -f $ac_dir/$ac_word; then
7101 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
7102 break
7103 fi
7104 done
7105 IFS="$ac_save_ifs"
7106 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
7107 ;;
7108esac
7109fi
7110GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
7111if test -n "$GTK_CONFIG"; then
7112 echo "$ac_t""$GTK_CONFIG" 1>&6
7113else
7114 echo "$ac_t""no" 1>&6
7115fi
7116
04165bec 7117 min_gtk_version=1.2.3
10f2d63a 7118 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
0dcf9893 7119echo "configure:7120: checking for GTK - version >= $min_gtk_version" >&5
10f2d63a
VZ
7120 no_gtk=""
7121 if test "$GTK_CONFIG" != "no" ; then
7122 GTK_CFLAGS=`$GTK_CONFIG --cflags`
2224580a 7123 GTK_LIBS=`$GTK_CONFIG --libs gthread`
10f2d63a
VZ
7124 ac_save_CFLAGS="$CFLAGS"
7125 ac_save_LIBS="$LIBS"
7126 CFLAGS="$CFLAGS $GTK_CFLAGS"
7127 LIBS="$LIBS $GTK_LIBS"
7128 if test "$cross_compiling" = yes; then
7129 echo $ac_n "cross compiling; assumed OK... $ac_c"
7130else
7131 cat > conftest.$ac_ext <<EOF
0dcf9893 7132#line 7133 "configure"
10f2d63a
VZ
7133#include "confdefs.h"
7134
7135#include <gtk/gtk.h>
f49f2b0c 7136#include <gtk/gtkfeatures.h>
10f2d63a
VZ
7137#include <stdio.h>
7138
7139int
7140main ()
7141{
7142 int major, minor, micro;
7143
7144 if (sscanf("$min_gtk_version", "%d.%d.%d", &major, &minor, &micro) != 3) {
7145 printf("%s, bad version string\n", "$min_gtk_version");
7146 exit(1);
7147 }
7148
f49f2b0c
RR
7149 if ((GTK_MAJOR_VERSION != gtk_major_version) ||
7150 (GTK_MINOR_VERSION != gtk_minor_version) ||
7151 (GTK_MICRO_VERSION != gtk_micro_version)) {
7152 printf("Headers vs. library version mismatch!\n");
7153 exit(1);
7154 }
7155
10f2d63a
VZ
7156 if (gtk_minor_version == 1) return FALSE;
7157
7158 return !((gtk_major_version > major) ||
7159 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
7160 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)));
7161}
7162
7163EOF
0dcf9893 7164if { (eval echo configure:7165: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10f2d63a
VZ
7165then
7166 :
7167else
7168 echo "configure: failed program was:" >&5
7169 cat conftest.$ac_ext >&5
7170 rm -fr conftest*
7171 no_gtk=yes
7172fi
7173rm -fr conftest*
7174fi
7175
7176 CFLAGS="$ac_save_CFLAGS"
7177 LIBS="$ac_save_LIBS"
7178 else
7179 no_gtk=yes
7180 fi
7181 if test "x$no_gtk" = x ; then
7182 echo "$ac_t""yes" 1>&6
7183 WXGTK12=1
7184 else
7185 echo "$ac_t""no" 1>&6
7186 GTK_CFLAGS=""
7187 GTK_LIBS=""
7e99ad86 7188 :
10f2d63a
VZ
7189 fi
7190
7191
7192
7193
7e99ad86
VZ
7194 if test "$WXGTK12" != 1; then
7195 { echo "configure: error:
7196 Please check that gtk-config is in path, the directory
7197 where GTK+ libraries are installed (returned by
7198 'gtk-config --libs' command) is in LD_LIBRARY_PATH or
7199 equivalent variable and GTK+ is version 1.2.3 or above.
7200 " 1>&2; exit 1; }
7201 fi
7202
7203
10f2d63a 7204 TOOLKIT_INCLUDE="$GTK_CFLAGS"
2224580a
VZ
7205
7206
7207 GUI_TK_LIBRARY="$GTK_LIBS"
7208
10f2d63a
VZ
7209 TOOLKIT=GTK
7210
dad6c0ea
VZ
7211 AFMINSTALL=afminstall
7212
10f2d63a
VZ
7213 GUIOBJS="\$(GTK_GUIOBJS)"
7214 GUIHEADERS="\$(GTK_HEADERS)"
7215 COMMONOBJS="\$(GTK_COMMONOBJS)"
7216 GENERICOBJS="\$(GTK_GENERICOBJS)"
7217 GUIDEPS="\$(GTK_GUIDEPS)"
7218 COMMONDEPS="\$(GTK_COMMONDEPS)"
7219 GENERICDEPS="\$(GTK_GENERICDEPS)"
7220 UNIXOBJS="\$(UNIX_OBJS)"
d9d8273d 7221 UNIXDEPS="\$(UNIX_DEPS)"
10f2d63a 7222 GUIDIST=GTK_DIST
7ec2881a 7223
2224580a 7224 echo $ac_n "checking for gdk_im_open in -lgdk""... $ac_c" 1>&6
0dcf9893 7225echo "configure:7226: checking for gdk_im_open in -lgdk" >&5
7ec2881a
RR
7226ac_lib_var=`echo gdk'_'gdk_im_open | sed 'y%./+-%__p_%'`
7227if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7228 echo $ac_n "(cached) $ac_c" 1>&6
7229else
7230 ac_save_LIBS="$LIBS"
7231LIBS="-lgdk $LIBS"
7232cat > conftest.$ac_ext <<EOF
0dcf9893 7233#line 7234 "configure"
7ec2881a
RR
7234#include "confdefs.h"
7235/* Override any gcc2 internal prototype to avoid an error. */
7236/* We use char because int might match the return type of a gcc2
7237 builtin and then its argument prototype would still apply. */
7238char gdk_im_open();
7239
7240int main() {
7241gdk_im_open()
7242; return 0; }
7243EOF
0dcf9893 7244if { (eval echo configure:7245: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7ec2881a
RR
7245 rm -rf conftest*
7246 eval "ac_cv_lib_$ac_lib_var=yes"
7247else
7248 echo "configure: failed program was:" >&5
7249 cat conftest.$ac_ext >&5
7250 rm -rf conftest*
7251 eval "ac_cv_lib_$ac_lib_var=no"
7252fi
7253rm -f conftest*
7254LIBS="$ac_save_LIBS"
7255
7256fi
7257if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7258 echo "$ac_t""yes" 1>&6
7259 cat >> confdefs.h <<\EOF
7260#define HAVE_XIM 1
7261EOF
7262
7263else
7264 echo "$ac_t""no" 1>&6
7265fi
7266
10f2d63a
VZ
7267fi
7268
7269if test "$wxUSE_WINE" = 1; then
7270 echo $ac_n "checking for WINE includes""... $ac_c" 1>&6
0dcf9893 7271echo "configure:7272: checking for WINE includes" >&5
10f2d63a
VZ
7272
7273ac_find_includes=
7274for ac_dir in $SEARCH_INCLUDE;
7275 do
7276 if test -f "$ac_dir/windows.h"; then
7277 ac_find_includes=$ac_dir
7278 break
7279 fi
7280 done
7281
7282 if test "$ac_find_includes" != "" ; then
7283 echo "$ac_t""found $ac_find_includes" 1>&6
7284 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE -I$ac_find_includes"
7285 else
7286 echo "$ac_t""no" 1>&6
7287 { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; }
7288 fi
7289
7290 XPM_LINK=""
7291 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
0dcf9893 7292echo "configure:7293: checking for Xpm library" >&5
10f2d63a
VZ
7293
7294ac_find_libraries=
7295for ac_dir in $SEARCH_LIB;
7296 do
7297 for ac_extension in a so sl; do
7298 if test -f "$ac_dir/libXpm.$ac_extension"; then
7299 ac_find_libraries=$ac_dir
7300 break 2
7301 fi
7302 done
7303 done
7304
7305 if test "$ac_find_libraries" != "" ; then
7306 GUI_TK_LIBRARY="-L$ac_find_libraries"
7307 XPM_LINK="-lXpm"
7308 cat >> confdefs.h <<\EOF
7309#define wxHAVE_LIB_XPM 1
7310EOF
7311
7312 echo "$ac_t""found at $ac_find_libraries" 1>&6
7313 else
7314 echo "$ac_t""no" 1>&6
7315 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
7316 fi
7317
7318 MESA_LINK=""
7319 echo $ac_n "checking for Mesa library""... $ac_c" 1>&6
0dcf9893 7320echo "configure:7321: checking for Mesa library" >&5
10f2d63a
VZ
7321
7322ac_find_libraries=
7323for ac_dir in $SEARCH_LIB;
7324 do
7325 for ac_extension in a so sl; do
7326 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
7327 ac_find_libraries=$ac_dir
7328 break 2
7329 fi
7330 done
7331 done
7332
7333 if test "$ac_find_libraries" != "" ; then
7334 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -L$ac_find_libraries"
7335 MESA_LINK="-lMesaGL"
7336 echo "$ac_t""found at $ac_find_libraries" 1>&6
7337 else
7338 { echo "configure: error: no" 1>&2; exit 1; }
7339 fi
7340
7341 GUI_TK_LINK="-lwine $MESA_LINK $XPM_LINK -lXxf86dga -lXxf86vm -lSM -lICE -lXext -lXmu -lX11 -lncurses -lm"
7342 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $GUI_TK_LINK"
7343 WXWINE=1
7344 TOOLKIT=MSW
7345
7346 GUIHEADERS="\$(MSW_HEADERS)"
7347 GUIOBJS="\$(MSW_GUIOBJS)"
7348 COMMONOBJS="\$(MSW_COMMONOBJS)"
7349 GENERICOBJS="\$(MSW_GENERICOBJS)"
7350 GUIDEPS="\$(MSW_GUIDEPS)"
7351 COMMONDEPS="\$(MSW_COMMONDEPS)"
7352 GENERICDEPS="\$(MSW_GENERICDEPS)"
7353 UNIXOBJS="\$(UNIX_OBJS)"
d9d8273d 7354 UNIXDEPS="\$(UNIX_DEPS)"
10f2d63a
VZ
7355 GUIDIST=MSW_DIST
7356fi
7357
7358if test "$wxUSE_MOTIF" = 1; then
ab9b9eab
VZ
7359 # If we find X, set shell vars x_includes and x_libraries to the
7360# paths, otherwise set no_x=yes.
7361# Uses ac_ vars as temps to allow command line to override cache and checks.
7362# --without-x overrides everything else, but does not touch the cache.
7363echo $ac_n "checking for X""... $ac_c" 1>&6
0dcf9893 7364echo "configure:7365: checking for X" >&5
ab9b9eab
VZ
7365
7366# Check whether --with-x or --without-x was given.
7367if test "${with_x+set}" = set; then
7368 withval="$with_x"
7369 :
7370fi
ba337fe7 7371
ab9b9eab
VZ
7372# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7373if test "x$with_x" = xno; then
7374 # The user explicitly disabled X.
7375 have_x=disabled
7376else
7377 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
7378 # Both variables are already set.
7379 have_x=yes
7380 else
7381if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
7382 echo $ac_n "(cached) $ac_c" 1>&6
7383else
7384 # One or both of the vars are not set, and there is no cached value.
7385ac_x_includes=NO ac_x_libraries=NO
7386rm -fr conftestdir
7387if mkdir conftestdir; then
7388 cd conftestdir
7389 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
7390 cat > Imakefile <<'EOF'
7391acfindx:
7392 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
7393EOF
7394 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
7395 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7396 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
7397 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
10f2d63a 7398 for ac_extension in a so sl; do
ab9b9eab
VZ
7399 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
7400 test -f $ac_im_libdir/libX11.$ac_extension; then
7401 ac_im_usrlibdir=$ac_im_libdir; break
10f2d63a
VZ
7402 fi
7403 done
ab9b9eab
VZ
7404 # Screen out bogus values from the imake configuration. They are
7405 # bogus both because they are the default anyway, and because
7406 # using them would break gcc on systems where it needs fixed includes.
7407 case "$ac_im_incroot" in
7408 /usr/include) ;;
7409 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
7410 esac
7411 case "$ac_im_usrlibdir" in
7412 /usr/lib | /lib) ;;
7413 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
7414 esac
ba337fe7 7415 fi
ab9b9eab
VZ
7416 cd ..
7417 rm -fr conftestdir
7418fi
10f2d63a 7419
ab9b9eab
VZ
7420if test "$ac_x_includes" = NO; then
7421 # Guess where to find include files, by looking for this one X11 .h file.
7422 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
ba337fe7 7423
ab9b9eab
VZ
7424 # First, try using that file with no special directory specified.
7425cat > conftest.$ac_ext <<EOF
0dcf9893 7426#line 7427 "configure"
ab9b9eab
VZ
7427#include "confdefs.h"
7428#include <$x_direct_test_include>
7429EOF
7430ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
0dcf9893 7431{ (eval echo configure:7432: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ab9b9eab
VZ
7432ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7433if test -z "$ac_err"; then
7434 rm -rf conftest*
7435 # We can compile using X headers with no special include directory.
7436ac_x_includes=
7437else
7438 echo "$ac_err" >&5
7439 echo "configure: failed program was:" >&5
7440 cat conftest.$ac_ext >&5
7441 rm -rf conftest*
7442 # Look for the header file in a standard set of common directories.
7443# Check X11 before X11Rn because it is often a symlink to the current release.
7444 for ac_dir in \
7445 /usr/X11/include \
7446 /usr/X11R6/include \
7447 /usr/X11R5/include \
7448 /usr/X11R4/include \
7449 \
7450 /usr/include/X11 \
7451 /usr/include/X11R6 \
7452 /usr/include/X11R5 \
7453 /usr/include/X11R4 \
7454 \
7455 /usr/local/X11/include \
7456 /usr/local/X11R6/include \
7457 /usr/local/X11R5/include \
7458 /usr/local/X11R4/include \
7459 \
7460 /usr/local/include/X11 \
7461 /usr/local/include/X11R6 \
7462 /usr/local/include/X11R5 \
7463 /usr/local/include/X11R4 \
7464 \
7465 /usr/X386/include \
7466 /usr/x386/include \
7467 /usr/XFree86/include/X11 \
7468 \
7469 /usr/include \
7470 /usr/local/include \
7471 /usr/unsupported/include \
7472 /usr/athena/include \
7473 /usr/local/x11r5/include \
7474 /usr/lpp/Xamples/include \
7475 \
7476 /usr/openwin/include \
7477 /usr/openwin/share/include \
7478 ; \
10f2d63a 7479 do
ab9b9eab
VZ
7480 if test -r "$ac_dir/$x_direct_test_include"; then
7481 ac_x_includes=$ac_dir
10f2d63a
VZ
7482 break
7483 fi
7484 done
ab9b9eab
VZ
7485fi
7486rm -f conftest*
7487fi # $ac_x_includes = NO
10f2d63a 7488
ab9b9eab
VZ
7489if test "$ac_x_libraries" = NO; then
7490 # Check for the libraries.
10f2d63a 7491
ab9b9eab
VZ
7492 test -z "$x_direct_test_library" && x_direct_test_library=Xt
7493 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
10f2d63a 7494
ab9b9eab
VZ
7495 # See if we find them without any special options.
7496 # Don't add to $LIBS permanently.
7497 ac_save_LIBS="$LIBS"
7498 LIBS="-l$x_direct_test_library $LIBS"
7499cat > conftest.$ac_ext <<EOF
0dcf9893 7500#line 7501 "configure"
ab9b9eab 7501#include "confdefs.h"
10f2d63a 7502
ab9b9eab
VZ
7503int main() {
7504${x_direct_test_function}()
7505; return 0; }
7506EOF
0dcf9893 7507if { (eval echo configure:7508: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
7508 rm -rf conftest*
7509 LIBS="$ac_save_LIBS"
7510# We can link X programs with no special library path.
7511ac_x_libraries=
7512else
7513 echo "configure: failed program was:" >&5
7514 cat conftest.$ac_ext >&5
7515 rm -rf conftest*
7516 LIBS="$ac_save_LIBS"
7517# First see if replacing the include by lib works.
7518# Check X11 before X11Rn because it is often a symlink to the current release.
7519for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
7520 /usr/X11/lib \
7521 /usr/X11R6/lib \
7522 /usr/X11R5/lib \
7523 /usr/X11R4/lib \
7524 \
7525 /usr/lib/X11 \
7526 /usr/lib/X11R6 \
7527 /usr/lib/X11R5 \
7528 /usr/lib/X11R4 \
7529 \
7530 /usr/local/X11/lib \
7531 /usr/local/X11R6/lib \
7532 /usr/local/X11R5/lib \
7533 /usr/local/X11R4/lib \
7534 \
7535 /usr/local/lib/X11 \
7536 /usr/local/lib/X11R6 \
7537 /usr/local/lib/X11R5 \
7538 /usr/local/lib/X11R4 \
7539 \
7540 /usr/X386/lib \
7541 /usr/x386/lib \
7542 /usr/XFree86/lib/X11 \
7543 \
7544 /usr/lib \
7545 /usr/local/lib \
7546 /usr/unsupported/lib \
7547 /usr/athena/lib \
7548 /usr/local/x11r5/lib \
7549 /usr/lpp/Xamples/lib \
7550 /lib/usr/lib/X11 \
7551 \
7552 /usr/openwin/lib \
7553 /usr/openwin/share/lib \
7554 ; \
7555do
7556 for ac_extension in a so sl; do
7557 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
7558 ac_x_libraries=$ac_dir
7559 break 2
10f2d63a 7560 fi
10f2d63a 7561 done
ab9b9eab
VZ
7562done
7563fi
7564rm -f conftest*
7565fi # $ac_x_libraries = NO
10f2d63a 7566
ab9b9eab
VZ
7567if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
7568 # Didn't find X anywhere. Cache the known absence of X.
7569 ac_cv_have_x="have_x=no"
7570else
7571 # Record where we found X for the cache.
7572 ac_cv_have_x="have_x=yes \
7573 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
7574fi
7575fi
10f2d63a 7576 fi
ab9b9eab
VZ
7577 eval "$ac_cv_have_x"
7578fi # $with_x != no
10f2d63a 7579
ab9b9eab
VZ
7580if test "$have_x" != yes; then
7581 echo "$ac_t""$have_x" 1>&6
7582 no_x=yes
7583else
7584 # If each of the values was on the command line, it overrides each guess.
7585 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
7586 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
7587 # Update the cache value to reflect the command line values.
7588 ac_cv_have_x="have_x=yes \
7589 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
7590 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
7591fi
10f2d63a 7592
ab9b9eab
VZ
7593if test "$no_x" = yes; then
7594 # Not all programs may use this symbol, but it does not hurt to define it.
7595 cat >> confdefs.h <<\EOF
7596#define X_DISPLAY_MISSING 1
7597EOF
10f2d63a 7598
ab9b9eab
VZ
7599 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
7600else
7601 if test -n "$x_includes"; then
7602 X_CFLAGS="$X_CFLAGS -I$x_includes"
10f2d63a
VZ
7603 fi
7604
ab9b9eab
VZ
7605 # It would also be nice to do this for all -L options, not just this one.
7606 if test -n "$x_libraries"; then
7607 X_LIBS="$X_LIBS -L$x_libraries"
7608 # For Solaris; some versions of Sun CC require a space after -R and
7609 # others require no space. Words are not sufficient . . . .
7610 case "`(uname -sr) 2>/dev/null`" in
7611 "SunOS 5"*)
7612 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
0dcf9893 7613echo "configure:7614: checking whether -R must be followed by a space" >&5
ab9b9eab
VZ
7614 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
7615 cat > conftest.$ac_ext <<EOF
0dcf9893 7616#line 7617 "configure"
ab9b9eab 7617#include "confdefs.h"
10f2d63a 7618
ab9b9eab 7619int main() {
788deba1 7620
ab9b9eab
VZ
7621; return 0; }
7622EOF
0dcf9893 7623if { (eval echo configure:7624: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
7624 rm -rf conftest*
7625 ac_R_nospace=yes
7626else
7627 echo "configure: failed program was:" >&5
7628 cat conftest.$ac_ext >&5
7629 rm -rf conftest*
7630 ac_R_nospace=no
7631fi
7632rm -f conftest*
7633 if test $ac_R_nospace = yes; then
7634 echo "$ac_t""no" 1>&6
7635 X_LIBS="$X_LIBS -R$x_libraries"
7636 else
7637 LIBS="$ac_xsave_LIBS -R $x_libraries"
7638 cat > conftest.$ac_ext <<EOF
0dcf9893 7639#line 7640 "configure"
ab9b9eab 7640#include "confdefs.h"
788deba1 7641
ab9b9eab
VZ
7642int main() {
7643
7644; return 0; }
7645EOF
0dcf9893 7646if { (eval echo configure:7647: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
7647 rm -rf conftest*
7648 ac_R_space=yes
7649else
7650 echo "configure: failed program was:" >&5
7651 cat conftest.$ac_ext >&5
7652 rm -rf conftest*
7653 ac_R_space=no
7654fi
7655rm -f conftest*
7656 if test $ac_R_space = yes; then
7657 echo "$ac_t""yes" 1>&6
7658 X_LIBS="$X_LIBS -R $x_libraries"
7659 else
7660 echo "$ac_t""neither works" 1>&6
7661 fi
7662 fi
7663 LIBS="$ac_xsave_LIBS"
7664 esac
7665 fi
7666
7667 # Check for system-dependent libraries X programs must link with.
7668 # Do this before checking for the system-independent R6 libraries
7669 # (-lICE), since we may need -lsocket or whatever for X linking.
7670
7671 if test "$ISC" = yes; then
7672 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
7673 else
7674 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
7675 # libraries were built with DECnet support. And karl@cs.umb.edu says
7676 # the Alpha needs dnet_stub (dnet does not exist).
7677 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
0dcf9893 7678echo "configure:7679: checking for dnet_ntoa in -ldnet" >&5
ab9b9eab
VZ
7679ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
7680if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7681 echo $ac_n "(cached) $ac_c" 1>&6
7682else
7683 ac_save_LIBS="$LIBS"
7684LIBS="-ldnet $LIBS"
7685cat > conftest.$ac_ext <<EOF
0dcf9893 7686#line 7687 "configure"
ab9b9eab
VZ
7687#include "confdefs.h"
7688/* Override any gcc2 internal prototype to avoid an error. */
7689/* We use char because int might match the return type of a gcc2
7690 builtin and then its argument prototype would still apply. */
7691char dnet_ntoa();
7692
7693int main() {
7694dnet_ntoa()
7695; return 0; }
7696EOF
0dcf9893 7697if { (eval echo configure:7698: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
7698 rm -rf conftest*
7699 eval "ac_cv_lib_$ac_lib_var=yes"
7700else
7701 echo "configure: failed program was:" >&5
7702 cat conftest.$ac_ext >&5
7703 rm -rf conftest*
7704 eval "ac_cv_lib_$ac_lib_var=no"
7705fi
7706rm -f conftest*
7707LIBS="$ac_save_LIBS"
7708
7709fi
7710if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7711 echo "$ac_t""yes" 1>&6
7712 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
7713else
7714 echo "$ac_t""no" 1>&6
7715fi
7716
7717 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
7718 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
0dcf9893 7719echo "configure:7720: checking for dnet_ntoa in -ldnet_stub" >&5
ab9b9eab
VZ
7720ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
7721if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7722 echo $ac_n "(cached) $ac_c" 1>&6
7723else
7724 ac_save_LIBS="$LIBS"
7725LIBS="-ldnet_stub $LIBS"
7726cat > conftest.$ac_ext <<EOF
0dcf9893 7727#line 7728 "configure"
ab9b9eab
VZ
7728#include "confdefs.h"
7729/* Override any gcc2 internal prototype to avoid an error. */
7730/* We use char because int might match the return type of a gcc2
7731 builtin and then its argument prototype would still apply. */
7732char dnet_ntoa();
7733
7734int main() {
7735dnet_ntoa()
7736; return 0; }
7737EOF
0dcf9893 7738if { (eval echo configure:7739: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
7739 rm -rf conftest*
7740 eval "ac_cv_lib_$ac_lib_var=yes"
7741else
7742 echo "configure: failed program was:" >&5
7743 cat conftest.$ac_ext >&5
7744 rm -rf conftest*
7745 eval "ac_cv_lib_$ac_lib_var=no"
7746fi
7747rm -f conftest*
7748LIBS="$ac_save_LIBS"
7749
7750fi
7751if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7752 echo "$ac_t""yes" 1>&6
7753 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
7754else
7755 echo "$ac_t""no" 1>&6
7756fi
7757
7758 fi
7759
7760 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
7761 # to get the SysV transport functions.
7762 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
7763 # needs -lnsl.
7764 # The nsl library prevents programs from opening the X display
7765 # on Irix 5.2, according to dickey@clark.net.
7766 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
0dcf9893 7767echo "configure:7768: checking for gethostbyname" >&5
ab9b9eab
VZ
7768if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
7769 echo $ac_n "(cached) $ac_c" 1>&6
7770else
7771 cat > conftest.$ac_ext <<EOF
0dcf9893 7772#line 7773 "configure"
ab9b9eab
VZ
7773#include "confdefs.h"
7774/* System header to define __stub macros and hopefully few prototypes,
7775 which can conflict with char gethostbyname(); below. */
7776#include <assert.h>
7777/* Override any gcc2 internal prototype to avoid an error. */
7778/* We use char because int might match the return type of a gcc2
7779 builtin and then its argument prototype would still apply. */
7780char gethostbyname();
7781
7782int main() {
7783
7784/* The GNU C library defines this for functions which it implements
7785 to always fail with ENOSYS. Some functions are actually named
7786 something starting with __ and the normal name is an alias. */
7787#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
7788choke me
7789#else
e8482f24 7790gethostbyname();
ab9b9eab
VZ
7791#endif
7792
7793; return 0; }
7794EOF
0dcf9893 7795if { (eval echo configure:7796: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
7796 rm -rf conftest*
7797 eval "ac_cv_func_gethostbyname=yes"
7798else
7799 echo "configure: failed program was:" >&5
7800 cat conftest.$ac_ext >&5
7801 rm -rf conftest*
7802 eval "ac_cv_func_gethostbyname=no"
7803fi
7804rm -f conftest*
7805fi
7806
7807if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
7808 echo "$ac_t""yes" 1>&6
7809 :
7810else
7811 echo "$ac_t""no" 1>&6
7812fi
7813
7814 if test $ac_cv_func_gethostbyname = no; then
7815 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
0dcf9893 7816echo "configure:7817: checking for gethostbyname in -lnsl" >&5
ab9b9eab
VZ
7817ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
7818if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7819 echo $ac_n "(cached) $ac_c" 1>&6
7820else
7821 ac_save_LIBS="$LIBS"
7822LIBS="-lnsl $LIBS"
7823cat > conftest.$ac_ext <<EOF
0dcf9893 7824#line 7825 "configure"
ab9b9eab
VZ
7825#include "confdefs.h"
7826/* Override any gcc2 internal prototype to avoid an error. */
7827/* We use char because int might match the return type of a gcc2
7828 builtin and then its argument prototype would still apply. */
7829char gethostbyname();
7830
7831int main() {
7832gethostbyname()
7833; return 0; }
7834EOF
0dcf9893 7835if { (eval echo configure:7836: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
7836 rm -rf conftest*
7837 eval "ac_cv_lib_$ac_lib_var=yes"
7838else
7839 echo "configure: failed program was:" >&5
7840 cat conftest.$ac_ext >&5
7841 rm -rf conftest*
7842 eval "ac_cv_lib_$ac_lib_var=no"
7843fi
7844rm -f conftest*
7845LIBS="$ac_save_LIBS"
7846
7847fi
7848if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7849 echo "$ac_t""yes" 1>&6
7850 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
7851else
7852 echo "$ac_t""no" 1>&6
7853fi
7854
7855 fi
7856
7857 # lieder@skyler.mavd.honeywell.com says without -lsocket,
7858 # socket/setsockopt and other routines are undefined under SCO ODT
7859 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
7860 # on later versions), says simon@lia.di.epfl.ch: it contains
7861 # gethostby* variants that don't use the nameserver (or something).
7862 # -lsocket must be given before -lnsl if both are needed.
7863 # We assume that if connect needs -lnsl, so does gethostbyname.
7864 echo $ac_n "checking for connect""... $ac_c" 1>&6
0dcf9893 7865echo "configure:7866: checking for connect" >&5
ab9b9eab
VZ
7866if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
7867 echo $ac_n "(cached) $ac_c" 1>&6
7868else
7869 cat > conftest.$ac_ext <<EOF
0dcf9893 7870#line 7871 "configure"
ab9b9eab
VZ
7871#include "confdefs.h"
7872/* System header to define __stub macros and hopefully few prototypes,
7873 which can conflict with char connect(); below. */
7874#include <assert.h>
7875/* Override any gcc2 internal prototype to avoid an error. */
7876/* We use char because int might match the return type of a gcc2
7877 builtin and then its argument prototype would still apply. */
7878char connect();
7879
7880int main() {
7881
7882/* The GNU C library defines this for functions which it implements
7883 to always fail with ENOSYS. Some functions are actually named
7884 something starting with __ and the normal name is an alias. */
7885#if defined (__stub_connect) || defined (__stub___connect)
7886choke me
7887#else
e8482f24 7888connect();
ab9b9eab
VZ
7889#endif
7890
7891; return 0; }
7892EOF
0dcf9893 7893if { (eval echo configure:7894: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
7894 rm -rf conftest*
7895 eval "ac_cv_func_connect=yes"
7896else
7897 echo "configure: failed program was:" >&5
7898 cat conftest.$ac_ext >&5
7899 rm -rf conftest*
7900 eval "ac_cv_func_connect=no"
7901fi
7902rm -f conftest*
7903fi
7904
7905if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
7906 echo "$ac_t""yes" 1>&6
7907 :
7908else
7909 echo "$ac_t""no" 1>&6
7910fi
7911
7912 if test $ac_cv_func_connect = no; then
7913 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
0dcf9893 7914echo "configure:7915: checking for connect in -lsocket" >&5
ab9b9eab
VZ
7915ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
7916if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7917 echo $ac_n "(cached) $ac_c" 1>&6
7918else
7919 ac_save_LIBS="$LIBS"
7920LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
7921cat > conftest.$ac_ext <<EOF
0dcf9893 7922#line 7923 "configure"
ab9b9eab
VZ
7923#include "confdefs.h"
7924/* Override any gcc2 internal prototype to avoid an error. */
7925/* We use char because int might match the return type of a gcc2
7926 builtin and then its argument prototype would still apply. */
7927char connect();
7928
7929int main() {
7930connect()
7931; return 0; }
7932EOF
0dcf9893 7933if { (eval echo configure:7934: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
7934 rm -rf conftest*
7935 eval "ac_cv_lib_$ac_lib_var=yes"
7936else
7937 echo "configure: failed program was:" >&5
7938 cat conftest.$ac_ext >&5
7939 rm -rf conftest*
7940 eval "ac_cv_lib_$ac_lib_var=no"
7941fi
7942rm -f conftest*
7943LIBS="$ac_save_LIBS"
7944
7945fi
7946if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7947 echo "$ac_t""yes" 1>&6
7948 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
7949else
7950 echo "$ac_t""no" 1>&6
7951fi
7952
7953 fi
7954
7955 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
7956 echo $ac_n "checking for remove""... $ac_c" 1>&6
0dcf9893 7957echo "configure:7958: checking for remove" >&5
ab9b9eab
VZ
7958if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
7959 echo $ac_n "(cached) $ac_c" 1>&6
7960else
7961 cat > conftest.$ac_ext <<EOF
0dcf9893 7962#line 7963 "configure"
ab9b9eab
VZ
7963#include "confdefs.h"
7964/* System header to define __stub macros and hopefully few prototypes,
7965 which can conflict with char remove(); below. */
7966#include <assert.h>
7967/* Override any gcc2 internal prototype to avoid an error. */
7968/* We use char because int might match the return type of a gcc2
7969 builtin and then its argument prototype would still apply. */
7970char remove();
7971
7972int main() {
7973
7974/* The GNU C library defines this for functions which it implements
7975 to always fail with ENOSYS. Some functions are actually named
7976 something starting with __ and the normal name is an alias. */
7977#if defined (__stub_remove) || defined (__stub___remove)
7978choke me
7979#else
e8482f24 7980remove();
ab9b9eab
VZ
7981#endif
7982
7983; return 0; }
7984EOF
0dcf9893 7985if { (eval echo configure:7986: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
7986 rm -rf conftest*
7987 eval "ac_cv_func_remove=yes"
7988else
7989 echo "configure: failed program was:" >&5
7990 cat conftest.$ac_ext >&5
7991 rm -rf conftest*
7992 eval "ac_cv_func_remove=no"
7993fi
7994rm -f conftest*
7995fi
7996
7997if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
7998 echo "$ac_t""yes" 1>&6
7999 :
8000else
8001 echo "$ac_t""no" 1>&6
8002fi
8003
8004 if test $ac_cv_func_remove = no; then
8005 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
0dcf9893 8006echo "configure:8007: checking for remove in -lposix" >&5
ab9b9eab
VZ
8007ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
8008if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8009 echo $ac_n "(cached) $ac_c" 1>&6
8010else
8011 ac_save_LIBS="$LIBS"
8012LIBS="-lposix $LIBS"
8013cat > conftest.$ac_ext <<EOF
0dcf9893 8014#line 8015 "configure"
ab9b9eab
VZ
8015#include "confdefs.h"
8016/* Override any gcc2 internal prototype to avoid an error. */
8017/* We use char because int might match the return type of a gcc2
8018 builtin and then its argument prototype would still apply. */
8019char remove();
8020
8021int main() {
8022remove()
8023; return 0; }
8024EOF
0dcf9893 8025if { (eval echo configure:8026: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
8026 rm -rf conftest*
8027 eval "ac_cv_lib_$ac_lib_var=yes"
8028else
8029 echo "configure: failed program was:" >&5
8030 cat conftest.$ac_ext >&5
8031 rm -rf conftest*
8032 eval "ac_cv_lib_$ac_lib_var=no"
8033fi
8034rm -f conftest*
8035LIBS="$ac_save_LIBS"
8036
8037fi
8038if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8039 echo "$ac_t""yes" 1>&6
8040 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
8041else
8042 echo "$ac_t""no" 1>&6
8043fi
8044
8045 fi
8046
8047 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
8048 echo $ac_n "checking for shmat""... $ac_c" 1>&6
0dcf9893 8049echo "configure:8050: checking for shmat" >&5
ab9b9eab
VZ
8050if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
8051 echo $ac_n "(cached) $ac_c" 1>&6
8052else
8053 cat > conftest.$ac_ext <<EOF
0dcf9893 8054#line 8055 "configure"
ab9b9eab
VZ
8055#include "confdefs.h"
8056/* System header to define __stub macros and hopefully few prototypes,
8057 which can conflict with char shmat(); below. */
8058#include <assert.h>
8059/* Override any gcc2 internal prototype to avoid an error. */
8060/* We use char because int might match the return type of a gcc2
8061 builtin and then its argument prototype would still apply. */
8062char shmat();
8063
8064int main() {
8065
8066/* The GNU C library defines this for functions which it implements
8067 to always fail with ENOSYS. Some functions are actually named
8068 something starting with __ and the normal name is an alias. */
8069#if defined (__stub_shmat) || defined (__stub___shmat)
8070choke me
8071#else
e8482f24 8072shmat();
ab9b9eab
VZ
8073#endif
8074
8075; return 0; }
8076EOF
0dcf9893 8077if { (eval echo configure:8078: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
8078 rm -rf conftest*
8079 eval "ac_cv_func_shmat=yes"
8080else
8081 echo "configure: failed program was:" >&5
8082 cat conftest.$ac_ext >&5
8083 rm -rf conftest*
8084 eval "ac_cv_func_shmat=no"
8085fi
8086rm -f conftest*
8087fi
8088
8089if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
8090 echo "$ac_t""yes" 1>&6
8091 :
8092else
8093 echo "$ac_t""no" 1>&6
8094fi
8095
8096 if test $ac_cv_func_shmat = no; then
8097 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
0dcf9893 8098echo "configure:8099: checking for shmat in -lipc" >&5
ab9b9eab
VZ
8099ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
8100if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8101 echo $ac_n "(cached) $ac_c" 1>&6
8102else
8103 ac_save_LIBS="$LIBS"
8104LIBS="-lipc $LIBS"
8105cat > conftest.$ac_ext <<EOF
0dcf9893 8106#line 8107 "configure"
ab9b9eab
VZ
8107#include "confdefs.h"
8108/* Override any gcc2 internal prototype to avoid an error. */
8109/* We use char because int might match the return type of a gcc2
8110 builtin and then its argument prototype would still apply. */
8111char shmat();
8112
8113int main() {
8114shmat()
8115; return 0; }
8116EOF
0dcf9893 8117if { (eval echo configure:8118: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
8118 rm -rf conftest*
8119 eval "ac_cv_lib_$ac_lib_var=yes"
8120else
8121 echo "configure: failed program was:" >&5
8122 cat conftest.$ac_ext >&5
8123 rm -rf conftest*
8124 eval "ac_cv_lib_$ac_lib_var=no"
8125fi
8126rm -f conftest*
8127LIBS="$ac_save_LIBS"
8128
8129fi
8130if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8131 echo "$ac_t""yes" 1>&6
8132 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
8133else
8134 echo "$ac_t""no" 1>&6
8135fi
8136
8137 fi
8138 fi
8139
8140 # Check for libraries that X11R6 Xt/Xaw programs need.
8141 ac_save_LDFLAGS="$LDFLAGS"
8142 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
8143 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
8144 # check for ICE first), but we must link in the order -lSM -lICE or
8145 # we get undefined symbols. So assume we have SM if we have ICE.
8146 # These have to be linked with before -lX11, unlike the other
8147 # libraries we check for below, so use a different variable.
8148 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
8149 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
0dcf9893 8150echo "configure:8151: checking for IceConnectionNumber in -lICE" >&5
ab9b9eab
VZ
8151ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
8152if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8153 echo $ac_n "(cached) $ac_c" 1>&6
8154else
8155 ac_save_LIBS="$LIBS"
8156LIBS="-lICE $X_EXTRA_LIBS $LIBS"
8157cat > conftest.$ac_ext <<EOF
0dcf9893 8158#line 8159 "configure"
ab9b9eab
VZ
8159#include "confdefs.h"
8160/* Override any gcc2 internal prototype to avoid an error. */
8161/* We use char because int might match the return type of a gcc2
8162 builtin and then its argument prototype would still apply. */
8163char IceConnectionNumber();
8164
8165int main() {
8166IceConnectionNumber()
8167; return 0; }
8168EOF
0dcf9893 8169if { (eval echo configure:8170: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
8170 rm -rf conftest*
8171 eval "ac_cv_lib_$ac_lib_var=yes"
8172else
8173 echo "configure: failed program was:" >&5
8174 cat conftest.$ac_ext >&5
8175 rm -rf conftest*
8176 eval "ac_cv_lib_$ac_lib_var=no"
8177fi
8178rm -f conftest*
8179LIBS="$ac_save_LIBS"
8180
8181fi
8182if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8183 echo "$ac_t""yes" 1>&6
8184 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
8185else
8186 echo "$ac_t""no" 1>&6
8187fi
8188
8189 LDFLAGS="$ac_save_LDFLAGS"
8190
8191fi
8192
8193
8194 if test "$no_x" = "yes"; then
8195 { echo "configure: error: X11 not found" 1>&2; exit 1; }
8196 fi
8197
8198 GUI_TK_LIBRARY="$X_LIBS"
8199 TOOLKIT_INCLUDE="$X_CFLAGS"
8200
dad6c0ea
VZ
8201 AFMINSTALL=afminstall
8202
ab9b9eab 8203
cd6d6d5b
VZ
8204 COMPILED_X_PROGRAM=0
8205
ab9b9eab 8206 echo $ac_n "checking for Motif/Lesstif headers""... $ac_c" 1>&6
0dcf9893 8207echo "configure:8208: checking for Motif/Lesstif headers" >&5
ab9b9eab
VZ
8208
8209ac_find_includes=
8210for ac_dir in $SEARCH_INCLUDE;
8211 do
8212 if test -f "$ac_dir/Xm/Xm.h"; then
8213 ac_find_includes=$ac_dir
8214 break
8215 fi
8216 done
8217
8218 if test "$ac_find_includes" != "" ; then
8219 echo "$ac_t""found $ac_find_includes" 1>&6
8220 else
cd6d6d5b 8221 cat > conftest.$ac_ext <<EOF
0dcf9893 8222#line 8223 "configure"
cd6d6d5b
VZ
8223#include "confdefs.h"
8224
8225 #include <Xm/Xm.h>
8226
8227int main() {
8228
8229 int version;
8230
8231 version = xmUseVersion;
8232
8233; return 0; }
8234EOF
0dcf9893 8235if { (eval echo configure:8236: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
cd6d6d5b
VZ
8236 rm -rf conftest*
8237
8238 echo "$ac_t""found in default search path" 1>&6
8239 COMPILED_X_PROGRAM=1
8240
8241else
8242 echo "configure: failed program was:" >&5
8243 cat conftest.$ac_ext >&5
8244 rm -rf conftest*
8245
8246 echo "$ac_t""no" 1>&6
8247 { echo "configure: error: please set CFLAGS to contain the location of Xm/Xm.h" 1>&2; exit 1; }
8248
8249
8250fi
8251rm -f conftest*
ab9b9eab
VZ
8252 fi
8253
cd6d6d5b
VZ
8254 if test "$COMPILED_X_PROGRAM" = 0; then
8255 echo $ac_n "checking for Motif/Lesstif library""... $ac_c" 1>&6
0dcf9893 8256echo "configure:8257: checking for Motif/Lesstif library" >&5
cd6d6d5b 8257
ab9b9eab
VZ
8258ac_find_libraries=
8259for ac_dir in $SEARCH_LIB;
8260 do
8261 for ac_extension in a so sl; do
8262 if test -f "$ac_dir/libXm.$ac_extension"; then
8263 ac_find_libraries=$ac_dir
8264 break 2
8265 fi
8266 done
8267 done
8268
cd6d6d5b
VZ
8269 if test "$ac_find_libraries" != "" ; then
8270
ab9b9eab
VZ
8271 ac_path_to_include=$ac_find_includes
8272 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
8273 result=$?
8274 if test $result = 0; then
8275 ac_path_to_include=""
8276 else
8277 ac_path_to_include="-I$ac_find_includes"
8278 fi
8279
cd6d6d5b 8280
ab9b9eab
VZ
8281 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
8282 result=$?
8283 if test $result = 0; then
8284 ac_path_to_link=""
8285 else
8286 ac_path_to_link="-L$ac_find_libraries"
8287 fi
8288
8289
cd6d6d5b
VZ
8290 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $ac_path_to_link"
8291 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE $ac_path_to_include"
8292 echo "$ac_t""found at $ac_find_libraries" 1>&6
8293 else
8294 cat > conftest.$ac_ext <<EOF
0dcf9893 8295#line 8296 "configure"
cd6d6d5b 8296#include "confdefs.h"
ab9b9eab 8297
cd6d6d5b
VZ
8298 #include <Xm/Xm.h>
8299
8300int main() {
ab9b9eab 8301
cd6d6d5b 8302 int version;
ab9b9eab 8303
cd6d6d5b
VZ
8304 version = xmUseVersion;
8305
8306; return 0; }
8307EOF
0dcf9893 8308if { (eval echo configure:8309: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
cd6d6d5b
VZ
8309 rm -rf conftest*
8310
8311 echo "$ac_t""found in default search path" 1>&6
8312 COMPILED_X_PROGRAM=1
8313
8314else
8315 echo "configure: failed program was:" >&5
8316 cat conftest.$ac_ext >&5
8317 rm -rf conftest*
8318
8319 echo "$ac_t""no" 1>&6
8320 { echo "configure: error: please set LDFLAGS to contain the location of libXm" 1>&2; exit 1; }
8321
8322
8323fi
8324rm -f conftest*
8325 fi
ab9b9eab
VZ
8326 fi
8327
cd6d6d5b 8328
ab9b9eab
VZ
8329 XPM_LINK=""
8330 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
0dcf9893 8331echo "configure:8332: checking for Xpm library" >&5
ab9b9eab
VZ
8332
8333ac_find_libraries=
8334for ac_dir in $SEARCH_LIB;
8335 do
8336 for ac_extension in a so sl; do
8337 if test -f "$ac_dir/libXpm.$ac_extension"; then
8338 ac_find_libraries=$ac_dir
8339 break 2
8340 fi
8341 done
8342 done
8343
8344 if test "$ac_find_libraries" != "" ; then
8345
8346 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
8347 result=$?
8348 if test $result = 0; then
8349 ac_path_to_link=""
8350 else
8351 ac_path_to_link="-L$ac_find_libraries"
8352 fi
8353
8354 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $ac_path_to_link"
8355 XPM_LINK="-lXpm "
8356 cat >> confdefs.h <<\EOF
8357#define wxHAVE_LIB_XPM 1
8358EOF
8359
8360 echo "$ac_t""found at $ac_find_libraries" 1>&6
8361 else
cd6d6d5b 8362 cat > conftest.$ac_ext <<EOF
0dcf9893 8363#line 8364 "configure"
cd6d6d5b
VZ
8364#include "confdefs.h"
8365
8366 #include <X11/xpm.h>
8367
8368int main() {
8369
8370 int version;
8371
8372 version = XpmLibraryVersion();
8373
8374; return 0; }
8375EOF
0dcf9893 8376if { (eval echo configure:8377: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
cd6d6d5b
VZ
8377 rm -rf conftest*
8378
bdad4e7e
RR
8379 XPM_LINK="-lXpm "
8380 cat >> confdefs.h <<\EOF
3ace2e6d
SN
8381#define wxHAVE_LIB_XPM 1
8382EOF
8383
8384 echo "$ac_t""found in default search path" 1>&6
cd6d6d5b
VZ
8385 COMPILED_X_PROGRAM=0
8386
8387else
8388 echo "configure: failed program was:" >&5
8389 cat conftest.$ac_ext >&5
8390 rm -rf conftest*
8391
8392 echo "$ac_t""no" 1>&6
8393 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
8394
8395
8396fi
8397rm -f conftest*
ab9b9eab
VZ
8398 fi
8399
8400 GUI_TK_LINK="-lXm $XPM_LINK -lXmu -lXext -lXt -lX11 -lm"
8401 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $GUI_TK_LINK"
8402 TOOLKIT=MOTIF
8403
8404 GUIHEADERS="\$(MOTIF_HEADERS)"
8405 GUIOBJS="\$(MOTIF_GUIOBJS)"
8406 COMMONOBJS="\$(MOTIF_COMMONOBJS)"
788deba1
VZ
8407 GENERICOBJS="\$(MOTIF_GENERICOBJS)"
8408 GUIDEPS="\$(MOTIF_GUIDEPS)"
8409 COMMONDEPS="\$(MOTIF_COMMONDEPS)"
10f2d63a
VZ
8410 GENERICDEPS="\$(MOTIF_GENERICDEPS)"
8411 UNIXOBJS="\$(UNIX_OBJS)"
d9d8273d 8412 UNIXDEPS="\$(UNIX_DEPS)"
10f2d63a
VZ
8413 GUIDIST=MOTIF_DIST
8414fi
8415
e07802fc
VZ
8416if test "$wxUSE_PM" = 1; then
8417 TOOLKIT=PM
8418
8419 GUIOBJS="\$(PM_GUIOBJS)"
8420 GUIHEADERS="\$(PM_HEADERS)"
8421 COMMONOBJS="\$(PM_COMMONOBJS)"
8422 GENERICOBJS="\$(PM_GENERICOBJS)"
8423 GUIDEPS="\$(PM_GUIDEPS)"
8424 COMMONDEPS="\$(PM_COMMONDEPS)"
8425 GENERICDEPS="\$(PM_GENERICDEPS)"
8426 UNIXOBJS=
8427 UNIXDEPS=
8428 GUIDIST=GTK_DIST
8429fi
8430
8431if test "$TOOLKIT" != "PM" ; then
ec14dd32 8432 TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
e07802fc
VZ
8433else
8434 TOOLKIT_DIR="os2"
8435fi
10f2d63a 8436
2224580a 8437 TOOLKIT_DEF="-D__WX${TOOLKIT}__"
10f2d63a 8438
2224580a 8439 WX_LIBRARY="wx_${TOOLKIT_DIR}"
10f2d63a 8440
bdad4e7e 8441 ALL_OBJECTS="\$(GUIOBJS) \$(COMMONOBJS) \$(GENERICOBJS) \$(UNIXOBJS) \$(HTMLOBJS) \$(OGLOBJS)"
3fcdd07b 8442
b089607b 8443 if test "$TOOLKIT" != "MSW"; then
cc977e5f
RR
8444 if test "$wxUSE_ODBC" = "yes" ; then
8445 ALL_OBJECTS="${ALL_OBJECTS} \$(IODBCOBJS)"
8446 fi
3fcdd07b
VZ
8447 fi
8448
d9d8273d 8449 if test "$wxUSE_LIBJPEG" = "yes" ; then
2224580a 8450 ALL_OBJECTS="${ALL_OBJECTS} \$(JPEGOBJS)"
d9d8273d
RR
8451 fi
8452 if test "$wxUSE_LIBTIFF" = "yes" ; then
8453 ALL_OBJECTS="${ALL_OBJECTS} \$(TIFFOBJS)"
8454 fi
8455 if test "$wxUSE_LIBPNG" = "yes" ; then
8456 ALL_OBJECTS="${ALL_OBJECTS} \$(PNGOBJS)"
8457 fi
8458 if test "$wxUSE_ZLIB" = "yes" ; then
8459 ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)"
8460 fi
bdad4e7e 8461 ALL_DEPFILES="\$(GUIDEPS) \$(COMMONDEPS) \$(GENERICDEPS) \$(UNIXDEPS) \$(HTMLDEPS) \$(OGLDEPS)"
2224580a
VZ
8462
8463 PORT_FILES="src/\$(TOOLKITDIR)/files.lst"
8464 RPM_FILES="src/\$(TOOLKITDIR)/rpmfiles.lst"
8465 RPM_SPEC="wx\$(TOOLKIT).spec"
8466
8467 GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
8468 DISTDIR="wx\$(TOOLKIT)"
10f2d63a 8469else
dad6c0ea
VZ
8470 USE_GUI=0
8471
07eb77a6
RL
8472 TOOLKIT_DIR="base"
8473 TOOLKIT_DEF="-D__WXBASE__"
8474
2224580a
VZ
8475 ALL_OBJECTS="\$(BASE_OBJS) \${BASE_UNIX_OBJS}"
8476 ALL_DEPFILES="\${BASE_DEPS} \${BASE_UNIX_DEPS}"
10f2d63a
VZ
8477
8478 WX_LIBRARY="wxbase"
2224580a
VZ
8479
8480 PORT_FILES="src/files.lst"
8481 RPM_FILES="src/rpmfiles.lst"
8482 RPM_SPEC="wxBase.spec"
8483
8484 GUIDIST="BASE_DIST"
8485 DISTDIR="wxBase"
10f2d63a
VZ
8486fi
8487
8488WX_LIBRARY_NAME="lib${WX_LIBRARY}.la"
bdad4e7e 8489WX_LIBRARY_NAME_GL="lib${WX_LIBRARY}_gl.la"
10f2d63a
VZ
8490
8491WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a"
bdad4e7e 8492WX_LIBRARY_NAME_STATIC_GL="lib${WX_LIBRARY}_gl.a"
10f2d63a
VZ
8493
8494WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}-${WX_RELEASE}.so.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
bdad4e7e 8495WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.so.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
10f2d63a
VZ
8496
8497WX_LIBRARY_LINK1="lib${WX_LIBRARY}-${WX_RELEASE}.so.${WX_CURRENT}"
8498WX_LIBRARY_LINK2="lib${WX_LIBRARY}-${WX_RELEASE}.so"
8499WX_LIBRARY_LINK3="lib${WX_LIBRARY}.so"
bdad4e7e
RR
8500WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.so.${WX_CURRENT}"
8501WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.so"
8502WX_LIBRARY_LINK3_GL="lib${WX_LIBRARY}_gl.so"
10f2d63a
VZ
8503
8504SHARED_LD=
8505PIC_FLAG=
8506WX_ALL=
8507WX_ALL_INSTALLED=
1d62a8b4 8508BURNT_LIBRARY_NAME=
10f2d63a 8509
b12915c1 8510
10f2d63a
VZ
8511if test "$wxUSE_SHARED" = "yes"; then
8512 case "${host}" in
8513 *-hp-hpux* )
8514 if test "$GCC" = yes ; then
69ffe1d2 8515 SHARED_LD="${CC} -shared -fPIC -o"
10f2d63a
VZ
8516 PIC_FLAG="-fPIC"
8517 else
8518 SHARED_LD="${CXX} -b -o"
8519 PIC_FLAG="+Z"
8520 fi
8521 WX_LIBRARY_NAME_SHARED="libwx_${TOOLKIT_DIR}.sl"
bdad4e7e 8522 WX_LIBRARY_NAME_SHARED_GL="libwx_${TOOLKIT_DIR}_gl.sl"
c661ecca
RR
8523 if test "$wxUSE_OPENGL" = "yes"; then
8524 WX_ALL="${WX_LIBRARY_NAME_SHARED} ${WX_LIBRARY_NAME_SHARED_GL}"
8525 else
8526 WX_ALL="${WX_LIBRARY_NAME_SHARED}"
8527 fi
10f2d63a 8528 ;;
b12915c1
VZ
8529
8530 *-*-linux* )
10f2d63a
VZ
8531 SHARED_LD="${CC} -shared -o"
8532 PIC_FLAG="-fPIC"
00cf1208 8533 if test "$wxUSE_BURNT_NAME" = "yes" ; then
05cdfc6f 8534 BURNT_LIBRARY_NAME="-Wl,-soname,${WX_LIBRARY_LINK1}"
bdad4e7e 8535 BURNT_LIBRARY_NAME_GL="-Wl,-soname,${WX_LIBRARY_LINK1_GL}"
00cf1208 8536 fi
c661ecca
RR
8537 if test "$wxUSE_OPENGL" = "yes"; then
8538 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
8539 WX_ALL="CREATE_LINKS CREATE_LINKS_GL"
8540 else
8541 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
8542 WX_ALL="CREATE_LINKS"
422107f9 8543 fi
00cf1208 8544 ;;
10f2d63a
VZ
8545 *-*-irix5* | *-*-irix6* )
8546 if test "$GCC" = yes ; then
8547 SHARED_LD="${CC} -shared -o"
8548 PIC_FLAG="-fPIC"
8549 else
8550 SHARED_LD="${CXX} -shared -o"
8551 fi
c661ecca
RR
8552 if test "$wxUSE_OPENGL" = "yes"; then
8553 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
8554 WX_ALL="CREATE_LINKS CREATE_LINKS_GL"
8555 else
8556 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
8557 WX_ALL="CREATE_LINKS"
422107f9 8558 fi
10f2d63a
VZ
8559 ;;
8560 *-*-solaris2* )
8561 if test "$GCC" = yes ; then
8562 SHARED_LD="${CC} -shared -o"
8563 PIC_FLAG="-fPIC"
8564 else
8565 SHARED_LD="${CXX} -G -o"
8566 PIC_FLAG="-KPIC"
8567 fi
c661ecca
RR
8568 if test "$wxUSE_OPENGL" = "yes"; then
8569 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
8570 WX_ALL="CREATE_LINKS CREATE_LINKS_GL"
8571 else
8572 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
8573 WX_ALL="CREATE_LINKS"
8574 fi
10f2d63a
VZ
8575 ;;
8576 *-*-sunos4* )
8577 SHARED_LD="${CC} -shared -o"
8578 PIC_FLAG="-fPIC"
8579 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
8580 WX_ALL="CREATE_LINKS"
8581 ;;
8582 *-*-freebsd* | *-*-netbsd*)
8583 SHARED_LD="${CC} -shared -o"
8584 PIC_FLAG="-fPIC"
8585 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
8586 WX_ALL="CREATE_LINKS"
8587 ;;
8588 *-*-osf* )
8589 SHARED_LD="${CXX} -shared -o"
8590 PIC_FLAG="-fPIC"
8591 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
8592 WX_ALL="CREATE_LINKS"
8593 ;;
8594 *-*-dgux5* )
8595 SHARED_LD="${CXX} -shared -o"
8596 PIC_FLAG="-fPIC"
8597 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
8598 WX_ALL="CREATE_LINKS"
8599 ;;
8600 *-*-sysv5* )
8601 SHARED_LD="${CC} -shared -o"
8602 PIC_FLAG="-fPIC"
8603 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
8604 WX_ALL="CREATE_LINKS"
8605 ;;
8606 *-*-aix* )
8607 SHARED_LD="/usr/lpp/xlC/bin/makeC++SharedLib -p 0 -o"
8608 WX_ALL=${WX_LIBRARY_NAME_SHARED}
8609 ;;
8610 *-*-cygwin32* )
8611 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
bdad4e7e 8612 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}"
10f2d63a
VZ
8613 WX_ALL="${WX_LIBRARY_NAME_STATIC}"
8614 ;;
b12915c1 8615 *-*-mingw32* )
10f2d63a 8616 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
bdad4e7e 8617 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}"
10f2d63a
VZ
8618 WX_ALL="${WX_LIBRARY_NAME_STATIC}"
8619 ;;
8620 *-pc-os2_emx )
e07802fc
VZ
8621 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
8622 WX_ALL="${WX_LIBRARY_NAME_STATIC}"
10f2d63a 8623 ;;
b12915c1 8624 *-*-beos* )
e2b8b066 8625 SHARED_LD="${LD} -shared -o"
b12915c1
VZ
8626 PIC_FLAG="-fPIC"
8627 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
8628 WX_ALL="CREATE_LINKS"
8629 ;;
10f2d63a
VZ
8630 *)
8631 { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; }
8632 esac
8633
8634 if test "x$WX_TARGET_LIBRARY" = "x"; then
8635 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}"
bdad4e7e 8636 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_SHARED_GL}"
10f2d63a
VZ
8637 fi
8638else
8639 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
bdad4e7e 8640 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}"
10f2d63a
VZ
8641 WX_ALL="${WX_LIBRARY_NAME_STATIC}"
8642fi
8643
8644
8645for ac_hdr in strings.h
8646do
8647ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8648echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
0dcf9893 8649echo "configure:8650: checking for $ac_hdr" >&5
10f2d63a
VZ
8650if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8651 echo $ac_n "(cached) $ac_c" 1>&6
8652else
8653 cat > conftest.$ac_ext <<EOF
0dcf9893 8654#line 8655 "configure"
10f2d63a
VZ
8655#include "confdefs.h"
8656#include <$ac_hdr>
8657EOF
8658ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
0dcf9893 8659{ (eval echo configure:8660: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
8660ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8661if test -z "$ac_err"; then
8662 rm -rf conftest*
8663 eval "ac_cv_header_$ac_safe=yes"
8664else
8665 echo "$ac_err" >&5
8666 echo "configure: failed program was:" >&5
8667 cat conftest.$ac_ext >&5
8668 rm -rf conftest*
8669 eval "ac_cv_header_$ac_safe=no"
8670fi
8671rm -f conftest*
8672fi
8673if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8674 echo "$ac_t""yes" 1>&6
8675 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8676 cat >> confdefs.h <<EOF
8677#define $ac_tr_hdr 1
8678EOF
8679
8680else
8681 echo "$ac_t""no" 1>&6
8682fi
8683done
8684
8685for ac_hdr in unistd.h
8686do
8687ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8688echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
0dcf9893 8689echo "configure:8690: checking for $ac_hdr" >&5
10f2d63a
VZ
8690if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8691 echo $ac_n "(cached) $ac_c" 1>&6
8692else
8693 cat > conftest.$ac_ext <<EOF
0dcf9893 8694#line 8695 "configure"
10f2d63a
VZ
8695#include "confdefs.h"
8696#include <$ac_hdr>
8697EOF
8698ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
0dcf9893 8699{ (eval echo configure:8700: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
8700ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8701if test -z "$ac_err"; then
8702 rm -rf conftest*
8703 eval "ac_cv_header_$ac_safe=yes"
8704else
8705 echo "$ac_err" >&5
8706 echo "configure: failed program was:" >&5
8707 cat conftest.$ac_ext >&5
8708 rm -rf conftest*
8709 eval "ac_cv_header_$ac_safe=no"
8710fi
8711rm -f conftest*
8712fi
8713if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8714 echo "$ac_t""yes" 1>&6
8715 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8716 cat >> confdefs.h <<EOF
8717#define $ac_tr_hdr 1
8718EOF
8719
8720else
8721 echo "$ac_t""no" 1>&6
8722fi
8723done
8724
8725for ac_hdr in wchar.h
8726do
8727ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8728echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
0dcf9893 8729echo "configure:8730: checking for $ac_hdr" >&5
10f2d63a
VZ
8730if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8731 echo $ac_n "(cached) $ac_c" 1>&6
8732else
8733 cat > conftest.$ac_ext <<EOF
0dcf9893 8734#line 8735 "configure"
10f2d63a
VZ
8735#include "confdefs.h"
8736#include <$ac_hdr>
8737EOF
8738ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
0dcf9893 8739{ (eval echo configure:8740: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
8740ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8741if test -z "$ac_err"; then
8742 rm -rf conftest*
8743 eval "ac_cv_header_$ac_safe=yes"
8744else
8745 echo "$ac_err" >&5
8746 echo "configure: failed program was:" >&5
8747 cat conftest.$ac_ext >&5
8748 rm -rf conftest*
8749 eval "ac_cv_header_$ac_safe=no"
8750fi
8751rm -f conftest*
8752fi
8753if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8754 echo "$ac_t""yes" 1>&6
8755 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8756 cat >> confdefs.h <<EOF
8757#define $ac_tr_hdr 1
8758EOF
8759
8760else
8761 echo "$ac_t""no" 1>&6
8762fi
8763done
8764
8765for ac_hdr in wcstr.h
8766do
8767ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8768echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
0dcf9893 8769echo "configure:8770: checking for $ac_hdr" >&5
10f2d63a
VZ
8770if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8771 echo $ac_n "(cached) $ac_c" 1>&6
8772else
8773 cat > conftest.$ac_ext <<EOF
0dcf9893 8774#line 8775 "configure"
10f2d63a
VZ
8775#include "confdefs.h"
8776#include <$ac_hdr>
8777EOF
8778ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
0dcf9893 8779{ (eval echo configure:8780: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
8780ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8781if test -z "$ac_err"; then
8782 rm -rf conftest*
8783 eval "ac_cv_header_$ac_safe=yes"
8784else
8785 echo "$ac_err" >&5
8786 echo "configure: failed program was:" >&5
8787 cat conftest.$ac_ext >&5
8788 rm -rf conftest*
8789 eval "ac_cv_header_$ac_safe=no"
8790fi
8791rm -f conftest*
8792fi
8793if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8794 echo "$ac_t""yes" 1>&6
8795 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8796 cat >> confdefs.h <<EOF
8797#define $ac_tr_hdr 1
8798EOF
8799
8800else
8801 echo "$ac_t""no" 1>&6
8802fi
8803done
8804
8805for ac_hdr in fnmatch.h
8806do
8807ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8808echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
0dcf9893 8809echo "configure:8810: checking for $ac_hdr" >&5
10f2d63a
VZ
8810if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8811 echo $ac_n "(cached) $ac_c" 1>&6
8812else
8813 cat > conftest.$ac_ext <<EOF
0dcf9893 8814#line 8815 "configure"
10f2d63a
VZ
8815#include "confdefs.h"
8816#include <$ac_hdr>
8817EOF
8818ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
0dcf9893 8819{ (eval echo configure:8820: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
8820ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8821if test -z "$ac_err"; then
8822 rm -rf conftest*
8823 eval "ac_cv_header_$ac_safe=yes"
8824else
8825 echo "$ac_err" >&5
8826 echo "configure: failed program was:" >&5
8827 cat conftest.$ac_ext >&5
8828 rm -rf conftest*
8829 eval "ac_cv_header_$ac_safe=no"
8830fi
8831rm -f conftest*
8832fi
8833if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8834 echo "$ac_t""yes" 1>&6
8835 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8836 cat >> confdefs.h <<EOF
8837#define $ac_tr_hdr 1
8838EOF
8839
8840else
8841 echo "$ac_t""no" 1>&6
8842fi
8843done
8844
8845
8846if test "$wxUSE_GUI" = "yes"; then
8847 for ac_hdr in X11/XKBlib.h
8848do
8849ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8850echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
0dcf9893 8851echo "configure:8852: checking for $ac_hdr" >&5
10f2d63a
VZ
8852if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8853 echo $ac_n "(cached) $ac_c" 1>&6
8854else
8855 cat > conftest.$ac_ext <<EOF
0dcf9893 8856#line 8857 "configure"
10f2d63a
VZ
8857#include "confdefs.h"
8858#include <$ac_hdr>
8859EOF
8860ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
0dcf9893 8861{ (eval echo configure:8862: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
8862ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8863if test -z "$ac_err"; then
8864 rm -rf conftest*
8865 eval "ac_cv_header_$ac_safe=yes"
8866else
8867 echo "$ac_err" >&5
8868 echo "configure: failed program was:" >&5
8869 cat conftest.$ac_ext >&5
8870 rm -rf conftest*
8871 eval "ac_cv_header_$ac_safe=no"
8872fi
8873rm -f conftest*
8874fi
8875if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8876 echo "$ac_t""yes" 1>&6
8877 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8878 cat >> confdefs.h <<EOF
8879#define $ac_tr_hdr 1
8880EOF
8881
8882else
8883 echo "$ac_t""no" 1>&6
8884fi
8885done
8886
8887fi
8888
8889
8890echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
0dcf9893 8891echo "configure:8892: checking for ANSI C header files" >&5
10f2d63a
VZ
8892if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
8893 echo $ac_n "(cached) $ac_c" 1>&6
8894else
8895 cat > conftest.$ac_ext <<EOF
0dcf9893 8896#line 8897 "configure"
10f2d63a
VZ
8897#include "confdefs.h"
8898#include <stdlib.h>
8899#include <stdarg.h>
8900#include <string.h>
8901#include <float.h>
8902EOF
8903ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
0dcf9893 8904{ (eval echo configure:8905: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
8905ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8906if test -z "$ac_err"; then
8907 rm -rf conftest*
8908 ac_cv_header_stdc=yes
8909else
8910 echo "$ac_err" >&5
8911 echo "configure: failed program was:" >&5
8912 cat conftest.$ac_ext >&5
8913 rm -rf conftest*
8914 ac_cv_header_stdc=no
8915fi
8916rm -f conftest*
8917
8918if test $ac_cv_header_stdc = yes; then
8919 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8920cat > conftest.$ac_ext <<EOF
0dcf9893 8921#line 8922 "configure"
10f2d63a
VZ
8922#include "confdefs.h"
8923#include <string.h>
8924EOF
8925if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8926 egrep "memchr" >/dev/null 2>&1; then
8927 :
8928else
8929 rm -rf conftest*
8930 ac_cv_header_stdc=no
8931fi
8932rm -f conftest*
8933
8934fi
8935
8936if test $ac_cv_header_stdc = yes; then
8937 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8938cat > conftest.$ac_ext <<EOF
0dcf9893 8939#line 8940 "configure"
10f2d63a
VZ
8940#include "confdefs.h"
8941#include <stdlib.h>
8942EOF
8943if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8944 egrep "free" >/dev/null 2>&1; then
8945 :
8946else
8947 rm -rf conftest*
8948 ac_cv_header_stdc=no
8949fi
8950rm -f conftest*
8951
8952fi
8953
8954if test $ac_cv_header_stdc = yes; then
8955 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8956if test "$cross_compiling" = yes; then
8957 :
8958else
8959 cat > conftest.$ac_ext <<EOF
0dcf9893 8960#line 8961 "configure"
10f2d63a
VZ
8961#include "confdefs.h"
8962#include <ctype.h>
8963#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8964#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8965#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8966int main () { int i; for (i = 0; i < 256; i++)
8967if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
8968exit (0); }
8969
8970EOF
0dcf9893 8971if { (eval echo configure:8972: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10f2d63a
VZ
8972then
8973 :
8974else
8975 echo "configure: failed program was:" >&5
8976 cat conftest.$ac_ext >&5
8977 rm -fr conftest*
8978 ac_cv_header_stdc=no
8979fi
8980rm -fr conftest*
8981fi
8982
8983fi
8984fi
8985
8986echo "$ac_t""$ac_cv_header_stdc" 1>&6
8987if test $ac_cv_header_stdc = yes; then
8988 cat >> confdefs.h <<\EOF
8989#define STDC_HEADERS 1
8990EOF
8991
8992fi
8993
8994echo $ac_n "checking for mode_t""... $ac_c" 1>&6
0dcf9893 8995echo "configure:8996: checking for mode_t" >&5
10f2d63a
VZ
8996if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
8997 echo $ac_n "(cached) $ac_c" 1>&6
8998else
8999 cat > conftest.$ac_ext <<EOF
0dcf9893 9000#line 9001 "configure"
10f2d63a
VZ
9001#include "confdefs.h"
9002#include <sys/types.h>
9003#if STDC_HEADERS
9004#include <stdlib.h>
9005#include <stddef.h>
9006#endif
9007EOF
9008if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9009 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
9010 rm -rf conftest*
9011 ac_cv_type_mode_t=yes
9012else
9013 rm -rf conftest*
9014 ac_cv_type_mode_t=no
9015fi
9016rm -f conftest*
9017
9018fi
9019echo "$ac_t""$ac_cv_type_mode_t" 1>&6
9020if test $ac_cv_type_mode_t = no; then
9021 cat >> confdefs.h <<\EOF
9022#define mode_t int
9023EOF
9024
9025fi
9026
9027echo $ac_n "checking for off_t""... $ac_c" 1>&6
0dcf9893 9028echo "configure:9029: checking for off_t" >&5
10f2d63a
VZ
9029if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
9030 echo $ac_n "(cached) $ac_c" 1>&6
9031else
9032 cat > conftest.$ac_ext <<EOF
0dcf9893 9033#line 9034 "configure"
10f2d63a
VZ
9034#include "confdefs.h"
9035#include <sys/types.h>
9036#if STDC_HEADERS
9037#include <stdlib.h>
9038#include <stddef.h>
9039#endif
9040EOF
9041if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9042 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
9043 rm -rf conftest*
9044 ac_cv_type_off_t=yes
9045else
9046 rm -rf conftest*
9047 ac_cv_type_off_t=no
9048fi
9049rm -f conftest*
9050
9051fi
9052echo "$ac_t""$ac_cv_type_off_t" 1>&6
9053if test $ac_cv_type_off_t = no; then
9054 cat >> confdefs.h <<\EOF
9055#define off_t long
9056EOF
9057
9058fi
9059
9060echo $ac_n "checking for pid_t""... $ac_c" 1>&6
0dcf9893 9061echo "configure:9062: checking for pid_t" >&5
10f2d63a
VZ
9062if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
9063 echo $ac_n "(cached) $ac_c" 1>&6
9064else
9065 cat > conftest.$ac_ext <<EOF
0dcf9893 9066#line 9067 "configure"
10f2d63a
VZ
9067#include "confdefs.h"
9068#include <sys/types.h>
9069#if STDC_HEADERS
9070#include <stdlib.h>
9071#include <stddef.h>
9072#endif
9073EOF
9074if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9075 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
9076 rm -rf conftest*
9077 ac_cv_type_pid_t=yes
9078else
9079 rm -rf conftest*
9080 ac_cv_type_pid_t=no
9081fi
9082rm -f conftest*
9083
9084fi
9085echo "$ac_t""$ac_cv_type_pid_t" 1>&6
9086if test $ac_cv_type_pid_t = no; then
9087 cat >> confdefs.h <<\EOF
9088#define pid_t int
9089EOF
9090
9091fi
9092
9093echo $ac_n "checking for size_t""... $ac_c" 1>&6
0dcf9893 9094echo "configure:9095: checking for size_t" >&5
10f2d63a
VZ
9095if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
9096 echo $ac_n "(cached) $ac_c" 1>&6
9097else
9098 cat > conftest.$ac_ext <<EOF
0dcf9893 9099#line 9100 "configure"
10f2d63a
VZ
9100#include "confdefs.h"
9101#include <sys/types.h>
9102#if STDC_HEADERS
9103#include <stdlib.h>
9104#include <stddef.h>
9105#endif
9106EOF
9107if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9108 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
9109 rm -rf conftest*
9110 ac_cv_type_size_t=yes
9111else
9112 rm -rf conftest*
9113 ac_cv_type_size_t=no
9114fi
9115rm -f conftest*
9116
9117fi
9118echo "$ac_t""$ac_cv_type_size_t" 1>&6
9119if test $ac_cv_type_size_t = no; then
9120 cat >> confdefs.h <<\EOF
9121#define size_t unsigned
9122EOF
9123
9124fi
9125
9126echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
0dcf9893 9127echo "configure:9128: checking for uid_t in sys/types.h" >&5
10f2d63a
VZ
9128if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
9129 echo $ac_n "(cached) $ac_c" 1>&6
9130else
9131 cat > conftest.$ac_ext <<EOF
0dcf9893 9132#line 9133 "configure"
10f2d63a
VZ
9133#include "confdefs.h"
9134#include <sys/types.h>
9135EOF
9136if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9137 egrep "uid_t" >/dev/null 2>&1; then
9138 rm -rf conftest*
9139 ac_cv_type_uid_t=yes
9140else
9141 rm -rf conftest*
9142 ac_cv_type_uid_t=no
9143fi
9144rm -f conftest*
9145
9146fi
9147
9148echo "$ac_t""$ac_cv_type_uid_t" 1>&6
9149if test $ac_cv_type_uid_t = no; then
9150 cat >> confdefs.h <<\EOF
9151#define uid_t int
9152EOF
9153
9154 cat >> confdefs.h <<\EOF
9155#define gid_t int
9156EOF
9157
9158fi
9159
9160
9161
b12915c1 9162echo $ac_n "checking for pw_gecos in struct passwd""... $ac_c" 1>&6
0dcf9893 9163echo "configure:9164: checking for pw_gecos in struct passwd" >&5
b12915c1
VZ
9164if eval "test \"`echo '$''{'wx_cv_struct_pw_gecos'+set}'`\" = set"; then
9165 echo $ac_n "(cached) $ac_c" 1>&6
9166else
9167
9168 cat > conftest.$ac_ext <<EOF
0dcf9893 9169#line 9170 "configure"
b12915c1
VZ
9170#include "confdefs.h"
9171#include <pwd.h>
9172int main() {
9173
9174 char *p;
9175 struct passwd *pw;
9176 p = pw->pw_gecos;
9177
9178; return 0; }
9179EOF
0dcf9893 9180if { (eval echo configure:9181: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
b12915c1
VZ
9181 rm -rf conftest*
9182
9183 wx_cv_struct_pw_gecos=yes
9184 cat >> confdefs.h <<\EOF
9185#define HAVE_PW_GECOS 1
9186EOF
9187
9188
9189else
9190 echo "configure: failed program was:" >&5
9191 cat conftest.$ac_ext >&5
9192 rm -rf conftest*
9193
9194 wx_cv_struct_pw_gecos=no
9195
9196
9197fi
9198rm -f conftest*
9199
9200
9201fi
9202
9203echo "$ac_t""$wx_cv_struct_pw_gecos" 1>&6
9204
10f2d63a
VZ
9205
9206echo $ac_n "checking for working const""... $ac_c" 1>&6
0dcf9893 9207echo "configure:9208: checking for working const" >&5
10f2d63a
VZ
9208if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
9209 echo $ac_n "(cached) $ac_c" 1>&6
9210else
9211 cat > conftest.$ac_ext <<EOF
0dcf9893 9212#line 9213 "configure"
10f2d63a
VZ
9213#include "confdefs.h"
9214
9215int main() {
9216
9217/* Ultrix mips cc rejects this. */
24528b0c 9218typedef int charset[2]; const charset x;
10f2d63a
VZ
9219/* SunOS 4.1.1 cc rejects this. */
9220char const *const *ccp;
9221char **p;
9222/* NEC SVR4.0.2 mips cc rejects this. */
9223struct point {int x, y;};
9224static struct point const zero = {0,0};
9225/* AIX XL C 1.02.0.0 rejects this.
9226 It does not let you subtract one const X* pointer from another in an arm
9227 of an if-expression whose if-part is not a constant expression */
9228const char *g = "string";
9229ccp = &g + (g ? g-g : 0);
9230/* HPUX 7.0 cc rejects these. */
9231++ccp;
9232p = (char**) ccp;
9233ccp = (char const *const *) p;
9234{ /* SCO 3.2v4 cc rejects this. */
9235 char *t;
9236 char const *s = 0 ? (char *) 0 : (char const *) 0;
9237
9238 *t++ = 0;
9239}
9240{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
9241 int x[] = {25, 17};
9242 const int *foo = &x[0];
9243 ++foo;
9244}
9245{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9246 typedef const int *iptr;
9247 iptr p = 0;
9248 ++p;
9249}
9250{ /* AIX XL C 1.02.0.0 rejects this saying
9251 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9252 struct s { int j; const int *ap[3]; };
9253 struct s *b; b->j = 5;
9254}
9255{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9256 const int foo = 10;
9257}
9258
9259; return 0; }
9260EOF
0dcf9893 9261if { (eval echo configure:9262: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10f2d63a
VZ
9262 rm -rf conftest*
9263 ac_cv_c_const=yes
9264else
9265 echo "configure: failed program was:" >&5
9266 cat conftest.$ac_ext >&5
9267 rm -rf conftest*
9268 ac_cv_c_const=no
9269fi
9270rm -f conftest*
9271fi
9272
9273echo "$ac_t""$ac_cv_c_const" 1>&6
9274if test $ac_cv_c_const = no; then
9275 cat >> confdefs.h <<\EOF
9276#define const
9277EOF
9278
9279fi
9280
9281echo $ac_n "checking for inline""... $ac_c" 1>&6
0dcf9893 9282echo "configure:9283: checking for inline" >&5
10f2d63a
VZ
9283if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
9284 echo $ac_n "(cached) $ac_c" 1>&6
9285else
9286 ac_cv_c_inline=no
9287for ac_kw in inline __inline__ __inline; do
9288 cat > conftest.$ac_ext <<EOF
0dcf9893 9289#line 9290 "configure"
10f2d63a
VZ
9290#include "confdefs.h"
9291
9292int main() {
24528b0c 9293} $ac_kw foo() {
10f2d63a
VZ
9294; return 0; }
9295EOF
0dcf9893 9296if { (eval echo configure:9297: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10f2d63a
VZ
9297 rm -rf conftest*
9298 ac_cv_c_inline=$ac_kw; break
9299else
9300 echo "configure: failed program was:" >&5
9301 cat conftest.$ac_ext >&5
9302fi
9303rm -f conftest*
9304done
9305
9306fi
9307
9308echo "$ac_t""$ac_cv_c_inline" 1>&6
9309case "$ac_cv_c_inline" in
9310 inline | yes) ;;
9311 no) cat >> confdefs.h <<\EOF
9312#define inline
9313EOF
9314 ;;
9315 *) cat >> confdefs.h <<EOF
9316#define inline $ac_cv_c_inline
9317EOF
9318 ;;
9319esac
9320
9321
9322echo $ac_n "checking size of char""... $ac_c" 1>&6
0dcf9893 9323echo "configure:9324: checking size of char" >&5
10f2d63a
VZ
9324if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then
9325 echo $ac_n "(cached) $ac_c" 1>&6
9326else
9327 if test "$cross_compiling" = yes; then
9328 ac_cv_sizeof_char=1
9329else
9330 cat > conftest.$ac_ext <<EOF
0dcf9893 9331#line 9332 "configure"
10f2d63a
VZ
9332#include "confdefs.h"
9333#include <stdio.h>
9334main()
9335{
9336 FILE *f=fopen("conftestval", "w");
9337 if (!f) exit(1);
9338 fprintf(f, "%d\n", sizeof(char));
9339 exit(0);
9340}
9341EOF
0dcf9893 9342if { (eval echo configure:9343: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10f2d63a
VZ
9343then
9344 ac_cv_sizeof_char=`cat conftestval`
9345else
9346 echo "configure: failed program was:" >&5
9347 cat conftest.$ac_ext >&5
9348 rm -fr conftest*
9349 ac_cv_sizeof_char=0
9350fi
9351rm -fr conftest*
9352fi
9353
9354fi
9355echo "$ac_t""$ac_cv_sizeof_char" 1>&6
9356cat >> confdefs.h <<EOF
9357#define SIZEOF_CHAR $ac_cv_sizeof_char
9358EOF
9359
9360
9361echo $ac_n "checking size of short""... $ac_c" 1>&6
0dcf9893 9362echo "configure:9363: checking size of short" >&5
10f2d63a
VZ
9363if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
9364 echo $ac_n "(cached) $ac_c" 1>&6
9365else
9366 if test "$cross_compiling" = yes; then
9367 ac_cv_sizeof_short=2
9368else
9369 cat > conftest.$ac_ext <<EOF
0dcf9893 9370#line 9371 "configure"
10f2d63a
VZ
9371#include "confdefs.h"
9372#include <stdio.h>
9373main()
9374{
9375 FILE *f=fopen("conftestval", "w");
9376 if (!f) exit(1);
9377 fprintf(f, "%d\n", sizeof(short));
9378 exit(0);
9379}
9380EOF
0dcf9893 9381if { (eval echo configure:9382: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10f2d63a
VZ
9382then
9383 ac_cv_sizeof_short=`cat conftestval`
9384else
9385 echo "configure: failed program was:" >&5
9386 cat conftest.$ac_ext >&5
9387 rm -fr conftest*
9388 ac_cv_sizeof_short=0
9389fi
9390rm -fr conftest*
9391fi
9392
9393fi
9394echo "$ac_t""$ac_cv_sizeof_short" 1>&6
9395cat >> confdefs.h <<EOF
9396#define SIZEOF_SHORT $ac_cv_sizeof_short
9397EOF
9398
9399
9400echo $ac_n "checking size of int *""... $ac_c" 1>&6
0dcf9893 9401echo "configure:9402: checking size of int *" >&5
10f2d63a
VZ
9402if eval "test \"`echo '$''{'ac_cv_sizeof_int_p'+set}'`\" = set"; then
9403 echo $ac_n "(cached) $ac_c" 1>&6
9404else
9405 if test "$cross_compiling" = yes; then
9406 ac_cv_sizeof_int_p=4
9407else
9408 cat > conftest.$ac_ext <<EOF
0dcf9893 9409#line 9410 "configure"
10f2d63a
VZ
9410#include "confdefs.h"
9411#include <stdio.h>
9412main()
9413{
9414 FILE *f=fopen("conftestval", "w");
9415 if (!f) exit(1);
9416 fprintf(f, "%d\n", sizeof(int *));
9417 exit(0);
9418}
9419EOF
0dcf9893 9420if { (eval echo configure:9421: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10f2d63a
VZ
9421then
9422 ac_cv_sizeof_int_p=`cat conftestval`
9423else
9424 echo "configure: failed program was:" >&5
9425 cat conftest.$ac_ext >&5
9426 rm -fr conftest*
9427 ac_cv_sizeof_int_p=0
9428fi
9429rm -fr conftest*
9430fi
9431
9432fi
9433echo "$ac_t""$ac_cv_sizeof_int_p" 1>&6
9434cat >> confdefs.h <<EOF
9435#define SIZEOF_INT_P $ac_cv_sizeof_int_p
9436EOF
9437
9438
9439echo $ac_n "checking size of int""... $ac_c" 1>&6
0dcf9893 9440echo "configure:9441: checking size of int" >&5
10f2d63a
VZ
9441if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
9442 echo $ac_n "(cached) $ac_c" 1>&6
9443else
9444 if test "$cross_compiling" = yes; then
9445 ac_cv_sizeof_int=4
9446else
9447 cat > conftest.$ac_ext <<EOF
0dcf9893 9448#line 9449 "configure"
10f2d63a
VZ
9449#include "confdefs.h"
9450#include <stdio.h>
9451main()
9452{
9453 FILE *f=fopen("conftestval", "w");
9454 if (!f) exit(1);
9455 fprintf(f, "%d\n", sizeof(int));
9456 exit(0);
9457}
9458EOF
0dcf9893 9459if { (eval echo configure:9460: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10f2d63a
VZ
9460then
9461 ac_cv_sizeof_int=`cat conftestval`
9462else
9463 echo "configure: failed program was:" >&5
9464 cat conftest.$ac_ext >&5
9465 rm -fr conftest*
9466 ac_cv_sizeof_int=0
9467fi
9468rm -fr conftest*
9469fi
9470
9471fi
9472echo "$ac_t""$ac_cv_sizeof_int" 1>&6
9473cat >> confdefs.h <<EOF
9474#define SIZEOF_INT $ac_cv_sizeof_int
9475EOF
9476
9477
9478echo $ac_n "checking size of long""... $ac_c" 1>&6
0dcf9893 9479echo "configure:9480: checking size of long" >&5
10f2d63a
VZ
9480if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
9481 echo $ac_n "(cached) $ac_c" 1>&6
9482else
9483 if test "$cross_compiling" = yes; then
9484 ac_cv_sizeof_long=4
9485else
9486 cat > conftest.$ac_ext <<EOF
0dcf9893 9487#line 9488 "configure"
10f2d63a
VZ
9488#include "confdefs.h"
9489#include <stdio.h>
9490main()
9491{
9492 FILE *f=fopen("conftestval", "w");
9493 if (!f) exit(1);
9494 fprintf(f, "%d\n", sizeof(long));
9495 exit(0);
9496}
9497EOF
0dcf9893 9498if { (eval echo configure:9499: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10f2d63a
VZ
9499then
9500 ac_cv_sizeof_long=`cat conftestval`
9501else
9502 echo "configure: failed program was:" >&5
9503 cat conftest.$ac_ext >&5
9504 rm -fr conftest*
9505 ac_cv_sizeof_long=0
9506fi
9507rm -fr conftest*
9508fi
9509
9510fi
9511echo "$ac_t""$ac_cv_sizeof_long" 1>&6
9512cat >> confdefs.h <<EOF
9513#define SIZEOF_LONG $ac_cv_sizeof_long
9514EOF
9515
9516
9517echo $ac_n "checking size of long long""... $ac_c" 1>&6
0dcf9893 9518echo "configure:9519: checking size of long long" >&5
10f2d63a
VZ
9519if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
9520 echo $ac_n "(cached) $ac_c" 1>&6
9521else
9522 if test "$cross_compiling" = yes; then
9523 ac_cv_sizeof_long_long=0
9524else
9525 cat > conftest.$ac_ext <<EOF
0dcf9893 9526#line 9527 "configure"
10f2d63a
VZ
9527#include "confdefs.h"
9528#include <stdio.h>
9529main()
9530{
9531 FILE *f=fopen("conftestval", "w");
9532 if (!f) exit(1);
9533 fprintf(f, "%d\n", sizeof(long long));
9534 exit(0);
9535}
9536EOF
0dcf9893 9537if { (eval echo configure:9538: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10f2d63a
VZ
9538then
9539 ac_cv_sizeof_long_long=`cat conftestval`
9540else
9541 echo "configure: failed program was:" >&5
9542 cat conftest.$ac_ext >&5
9543 rm -fr conftest*
9544 ac_cv_sizeof_long_long=0
9545fi
9546rm -fr conftest*
9547fi
9548
9549fi
9550echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
9551cat >> confdefs.h <<EOF
9552#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
9553EOF
9554
9555
9556
9557echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
0dcf9893 9558echo "configure:9559: checking whether byte ordering is bigendian" >&5
10f2d63a
VZ
9559if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
9560 echo $ac_n "(cached) $ac_c" 1>&6
9561else
9562 ac_cv_c_bigendian=unknown
9563# See if sys/param.h defines the BYTE_ORDER macro.
9564cat > conftest.$ac_ext <<EOF
0dcf9893 9565#line 9566 "configure"
10f2d63a
VZ
9566#include "confdefs.h"
9567#include <sys/types.h>
9568#include <sys/param.h>
9569int main() {
9570
9571#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
9572 bogus endian macros
9573#endif
9574; return 0; }
9575EOF
0dcf9893 9576if { (eval echo configure:9577: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10f2d63a
VZ
9577 rm -rf conftest*
9578 # It does; now see whether it defined to BIG_ENDIAN or not.
9579cat > conftest.$ac_ext <<EOF
0dcf9893 9580#line 9581 "configure"
10f2d63a
VZ
9581#include "confdefs.h"
9582#include <sys/types.h>
9583#include <sys/param.h>
9584int main() {
9585
9586#if BYTE_ORDER != BIG_ENDIAN
9587 not big endian
9588#endif
9589; return 0; }
9590EOF
0dcf9893 9591if { (eval echo configure:9592: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10f2d63a
VZ
9592 rm -rf conftest*
9593 ac_cv_c_bigendian=yes
9594else
9595 echo "configure: failed program was:" >&5
9596 cat conftest.$ac_ext >&5
9597 rm -rf conftest*
9598 ac_cv_c_bigendian=no
9599fi
9600rm -f conftest*
9601else
9602 echo "configure: failed program was:" >&5
9603 cat conftest.$ac_ext >&5
9604fi
9605rm -f conftest*
9606if test $ac_cv_c_bigendian = unknown; then
9607if test "$cross_compiling" = yes; then
9608 ac_cv_c_bigendian=unknown
9609else
9610 cat > conftest.$ac_ext <<EOF
0dcf9893 9611#line 9612 "configure"
10f2d63a
VZ
9612#include "confdefs.h"
9613main () {
9614 /* Are we little or big endian? From Harbison&Steele. */
9615 union
9616 {
9617 long l;
9618 char c[sizeof (long)];
9619 } u;
9620 u.l = 1;
9621 exit (u.c[sizeof (long) - 1] == 1);
9622}
9623EOF
0dcf9893 9624if { (eval echo configure:9625: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10f2d63a
VZ
9625then
9626 ac_cv_c_bigendian=no
9627else
9628 echo "configure: failed program was:" >&5
9629 cat conftest.$ac_ext >&5
9630 rm -fr conftest*
9631 ac_cv_c_bigendian=yes
9632fi
9633rm -fr conftest*
9634fi
9635
9636fi
9637fi
9638
9639echo "$ac_t""$ac_cv_c_bigendian" 1>&6
9640if test $ac_cv_c_bigendian = unknown; then
9641 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
9642fi
9643if test $ac_cv_c_bigendian = yes; then
9644 cat >> confdefs.h <<\EOF
9645#define WORDS_BIGENDIAN 1
9646EOF
9647
9648fi
9649
9650
9651
9652 if test "$cross_compiling" = "yes"; then
9653 cat >> confdefs.h <<\EOF
9654#define wxUSE_IOSTREAMH 1
9655EOF
9656
9657 else
9658
9659 ac_ext=C
9660# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9661ac_cpp='$CXXCPP $CPPFLAGS'
9662ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9663ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9664cross_compiling=$ac_cv_prog_cxx_cross
9665
9666
9667 for ac_hdr in iostream
9668do
9669ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9670echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
0dcf9893 9671echo "configure:9672: checking for $ac_hdr" >&5
10f2d63a
VZ
9672if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9673 echo $ac_n "(cached) $ac_c" 1>&6
9674else
9675 cat > conftest.$ac_ext <<EOF
0dcf9893 9676#line 9677 "configure"
10f2d63a
VZ
9677#include "confdefs.h"
9678#include <$ac_hdr>
9679EOF
9680ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
0dcf9893 9681{ (eval echo configure:9682: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
9682ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9683if test -z "$ac_err"; then
9684 rm -rf conftest*
9685 eval "ac_cv_header_$ac_safe=yes"
9686else
9687 echo "$ac_err" >&5
9688 echo "configure: failed program was:" >&5
9689 cat conftest.$ac_ext >&5
9690 rm -rf conftest*
9691 eval "ac_cv_header_$ac_safe=no"
9692fi
9693rm -f conftest*
9694fi
9695if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9696 echo "$ac_t""yes" 1>&6
9697 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9698 cat >> confdefs.h <<EOF
9699#define $ac_tr_hdr 1
9700EOF
9701
9702else
9703 echo "$ac_t""no" 1>&6
9704fi
9705done
9706
9707
9708 if test "x$HAVE_IOSTREAM" = x ; then
9709 cat >> confdefs.h <<\EOF
9710#define wxUSE_IOSTREAMH 1
9711EOF
9712
9713 else
9714 :
9715 fi
9716
9717 ac_ext=c
9718# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9719ac_cpp='$CPP $CPPFLAGS'
9720ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9721ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9722cross_compiling=$ac_cv_prog_cc_cross
9723
9724 fi
9725
9726
9727
9728 echo $ac_n "checking if C++ compiler supports bool""... $ac_c" 1>&6
0dcf9893 9729echo "configure:9730: checking if C++ compiler supports bool" >&5
10f2d63a
VZ
9730if eval "test \"`echo '$''{'wx_cv_cpp_bool'+set}'`\" = set"; then
9731 echo $ac_n "(cached) $ac_c" 1>&6
9732else
9733
9734
9735 ac_ext=C
9736# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9737ac_cpp='$CXXCPP $CPPFLAGS'
9738ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9739ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9740cross_compiling=$ac_cv_prog_cxx_cross
9741
9742
9743 cat > conftest.$ac_ext <<EOF
0dcf9893 9744#line 9745 "configure"
10f2d63a
VZ
9745#include "confdefs.h"
9746
9747
9748int main() {
9749
9750 bool b = true;
9751
9752 return 0;
9753
9754; return 0; }
9755EOF
0dcf9893 9756if { (eval echo configure:9757: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10f2d63a
VZ
9757 rm -rf conftest*
9758
9759 cat >> confdefs.h <<\EOF
9760#define HAVE_BOOL 1
9761EOF
9762
9763 wx_cv_cpp_bool=yes
9764
9765else
9766 echo "configure: failed program was:" >&5
9767 cat conftest.$ac_ext >&5
9768 rm -rf conftest*
9769
9770 wx_cv_cpp_bool=no
9771
9772
9773fi
9774rm -f conftest*
9775
9776 ac_ext=c
9777# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9778ac_cpp='$CPP $CPPFLAGS'
9779ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9780ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9781cross_compiling=$ac_cv_prog_cc_cross
9782
9783
9784fi
9785
9786echo "$ac_t""$wx_cv_cpp_bool" 1>&6
9787
9788 if test "$wx_cv_cpp_bool" = "yes"; then
9789 cat >> confdefs.h <<\EOF
9790#define HAVE_BOOL 1
9791EOF
9792
9793 fi
9794
9795
9796
10f2d63a 9797echo $ac_n "checking if you need GNU extensions""... $ac_c" 1>&6
0dcf9893 9798echo "configure:9799: checking if you need GNU extensions" >&5
10f2d63a
VZ
9799if eval "test \"`echo '$''{'wx_cv_gnu_extensions'+set}'`\" = set"; then
9800 echo $ac_n "(cached) $ac_c" 1>&6
9801else
9802
9803 cat > conftest.$ac_ext <<EOF
0dcf9893 9804#line 9805 "configure"
10f2d63a
VZ
9805#include "confdefs.h"
9806#include <features.h>
9807int main() {
9808
9809
9810#ifndef __GNU_LIBRARY__
9811 Compile error wanted
9812#endif
9813
9814
9815; return 0; }
9816EOF
0dcf9893 9817if { (eval echo configure:9818: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10f2d63a
VZ
9818 rm -rf conftest*
9819 wx_cv_gnu_extensions=yes
9820else
9821 echo "configure: failed program was:" >&5
9822 cat conftest.$ac_ext >&5
9823 rm -rf conftest*
9824 wx_cv_gnu_extensions=no
9825fi
9826rm -f conftest*
9827
9828fi
9829
9830
9831echo "$ac_t""$wx_cv_gnu_extensions" 1>&6
9832if test "$wx_cv_gnu_extensions" = "yes"; then
9833 cat >> confdefs.h <<EOF
9834#define _GNU_SOURCE 1
9835EOF
9836
9837fi
9838
9839
9840
9841echo $ac_n "checking for wcslen in -lc""... $ac_c" 1>&6
0dcf9893 9842echo "configure:9843: checking for wcslen in -lc" >&5
10f2d63a
VZ
9843ac_lib_var=`echo c'_'wcslen | sed 'y%./+-%__p_%'`
9844if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9845 echo $ac_n "(cached) $ac_c" 1>&6
9846else
9847 ac_save_LIBS="$LIBS"
9848LIBS="-lc $LIBS"
9849cat > conftest.$ac_ext <<EOF
0dcf9893 9850#line 9851 "configure"
10f2d63a
VZ
9851#include "confdefs.h"
9852/* Override any gcc2 internal prototype to avoid an error. */
9853/* We use char because int might match the return type of a gcc2
9854 builtin and then its argument prototype would still apply. */
9855char wcslen();
9856
9857int main() {
9858wcslen()
9859; return 0; }
9860EOF
0dcf9893 9861if { (eval echo configure:9862: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
9862 rm -rf conftest*
9863 eval "ac_cv_lib_$ac_lib_var=yes"
9864else
9865 echo "configure: failed program was:" >&5
9866 cat conftest.$ac_ext >&5
9867 rm -rf conftest*
9868 eval "ac_cv_lib_$ac_lib_var=no"
9869fi
9870rm -f conftest*
9871LIBS="$ac_save_LIBS"
9872
9873fi
9874if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9875 echo "$ac_t""yes" 1>&6
9876
9877 cat >> confdefs.h <<\EOF
9878#define HAVE_WCSLEN 1
9879EOF
9880
9881 WCHAR_LINK=""
9882
9883else
9884 echo "$ac_t""no" 1>&6
9885
9886 echo $ac_n "checking for wcslen in -lw""... $ac_c" 1>&6
0dcf9893 9887echo "configure:9888: checking for wcslen in -lw" >&5
10f2d63a
VZ
9888ac_lib_var=`echo w'_'wcslen | sed 'y%./+-%__p_%'`
9889if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9890 echo $ac_n "(cached) $ac_c" 1>&6
9891else
9892 ac_save_LIBS="$LIBS"
9893LIBS="-lw $LIBS"
9894cat > conftest.$ac_ext <<EOF
0dcf9893 9895#line 9896 "configure"
10f2d63a
VZ
9896#include "confdefs.h"
9897/* Override any gcc2 internal prototype to avoid an error. */
9898/* We use char because int might match the return type of a gcc2
9899 builtin and then its argument prototype would still apply. */
9900char wcslen();
9901
9902int main() {
9903wcslen()
9904; return 0; }
9905EOF
0dcf9893 9906if { (eval echo configure:9907: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
9907 rm -rf conftest*
9908 eval "ac_cv_lib_$ac_lib_var=yes"
9909else
9910 echo "configure: failed program was:" >&5
9911 cat conftest.$ac_ext >&5
9912 rm -rf conftest*
9913 eval "ac_cv_lib_$ac_lib_var=no"
9914fi
9915rm -f conftest*
9916LIBS="$ac_save_LIBS"
9917
9918fi
9919if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9920 echo "$ac_t""yes" 1>&6
9921
9922 cat >> confdefs.h <<\EOF
9923#define HAVE_WCSLEN 1
9924EOF
9925
9926 WCHAR_LINK="-lw"
9927
9928else
9929 echo "$ac_t""no" 1>&6
9930fi
9931
9932
9933fi
9934
9935
9936echo $ac_n "checking for vprintf""... $ac_c" 1>&6
0dcf9893 9937echo "configure:9938: checking for vprintf" >&5
10f2d63a
VZ
9938if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
9939 echo $ac_n "(cached) $ac_c" 1>&6
9940else
9941 cat > conftest.$ac_ext <<EOF
0dcf9893 9942#line 9943 "configure"
10f2d63a
VZ
9943#include "confdefs.h"
9944/* System header to define __stub macros and hopefully few prototypes,
9945 which can conflict with char vprintf(); below. */
9946#include <assert.h>
9947/* Override any gcc2 internal prototype to avoid an error. */
9948/* We use char because int might match the return type of a gcc2
9949 builtin and then its argument prototype would still apply. */
9950char vprintf();
9951
9952int main() {
9953
9954/* The GNU C library defines this for functions which it implements
9955 to always fail with ENOSYS. Some functions are actually named
9956 something starting with __ and the normal name is an alias. */
9957#if defined (__stub_vprintf) || defined (__stub___vprintf)
9958choke me
9959#else
e8482f24 9960vprintf();
10f2d63a
VZ
9961#endif
9962
9963; return 0; }
9964EOF
0dcf9893 9965if { (eval echo configure:9966: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
9966 rm -rf conftest*
9967 eval "ac_cv_func_vprintf=yes"
9968else
9969 echo "configure: failed program was:" >&5
9970 cat conftest.$ac_ext >&5
9971 rm -rf conftest*
9972 eval "ac_cv_func_vprintf=no"
9973fi
9974rm -f conftest*
9975fi
9976
9977if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
9978 echo "$ac_t""yes" 1>&6
9979 cat >> confdefs.h <<\EOF
9980#define HAVE_VPRINTF 1
9981EOF
9982
9983else
9984 echo "$ac_t""no" 1>&6
9985fi
9986
9987if test "$ac_cv_func_vprintf" != yes; then
9988echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
0dcf9893 9989echo "configure:9990: checking for _doprnt" >&5
10f2d63a
VZ
9990if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
9991 echo $ac_n "(cached) $ac_c" 1>&6
9992else
9993 cat > conftest.$ac_ext <<EOF
0dcf9893 9994#line 9995 "configure"
10f2d63a
VZ
9995#include "confdefs.h"
9996/* System header to define __stub macros and hopefully few prototypes,
9997 which can conflict with char _doprnt(); below. */
9998#include <assert.h>
9999/* Override any gcc2 internal prototype to avoid an error. */
10000/* We use char because int might match the return type of a gcc2
10001 builtin and then its argument prototype would still apply. */
10002char _doprnt();
10003
10004int main() {
10005
10006/* The GNU C library defines this for functions which it implements
10007 to always fail with ENOSYS. Some functions are actually named
10008 something starting with __ and the normal name is an alias. */
10009#if defined (__stub__doprnt) || defined (__stub____doprnt)
10010choke me
10011#else
e8482f24 10012_doprnt();
10f2d63a
VZ
10013#endif
10014
10015; return 0; }
10016EOF
0dcf9893 10017if { (eval echo configure:10018: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
10018 rm -rf conftest*
10019 eval "ac_cv_func__doprnt=yes"
10020else
10021 echo "configure: failed program was:" >&5
10022 cat conftest.$ac_ext >&5
10023 rm -rf conftest*
10024 eval "ac_cv_func__doprnt=no"
10025fi
10026rm -f conftest*
10027fi
10028
10029if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
10030 echo "$ac_t""yes" 1>&6
10031 cat >> confdefs.h <<\EOF
10032#define HAVE_DOPRNT 1
10033EOF
10034
10035else
10036 echo "$ac_t""no" 1>&6
10037fi
10038
10039fi
10040
10041
10042for ac_func in vsnprintf
10043do
10044echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
0dcf9893 10045echo "configure:10046: checking for $ac_func" >&5
10f2d63a
VZ
10046if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10047 echo $ac_n "(cached) $ac_c" 1>&6
10048else
10049 cat > conftest.$ac_ext <<EOF
0dcf9893 10050#line 10051 "configure"
10f2d63a
VZ
10051#include "confdefs.h"
10052/* System header to define __stub macros and hopefully few prototypes,
10053 which can conflict with char $ac_func(); below. */
10054#include <assert.h>
10055/* Override any gcc2 internal prototype to avoid an error. */
10056/* We use char because int might match the return type of a gcc2
10057 builtin and then its argument prototype would still apply. */
10058char $ac_func();
10059
10060int main() {
10061
10062/* The GNU C library defines this for functions which it implements
10063 to always fail with ENOSYS. Some functions are actually named
10064 something starting with __ and the normal name is an alias. */
10065#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10066choke me
10067#else
e8482f24 10068$ac_func();
10f2d63a
VZ
10069#endif
10070
10071; return 0; }
10072EOF
0dcf9893 10073if { (eval echo configure:10074: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
10074 rm -rf conftest*
10075 eval "ac_cv_func_$ac_func=yes"
10076else
10077 echo "configure: failed program was:" >&5
10078 cat conftest.$ac_ext >&5
10079 rm -rf conftest*
10080 eval "ac_cv_func_$ac_func=no"
10081fi
10082rm -f conftest*
10083fi
10084
10085if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10086 echo "$ac_t""yes" 1>&6
10087 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10088 cat >> confdefs.h <<EOF
10089#define $ac_tr_func 1
10090EOF
10091 cat >> confdefs.h <<\EOF
10092#define HAVE_VSNPRINTF 1
10093EOF
10094
10095else
10096 echo "$ac_t""no" 1>&6
10097echo "configure: warning: unsafe function sprintf will be used instead of snprintf" 1>&2
10098
10099fi
10100done
10101
10102
10103
10104ac_ext=C
10105# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10106ac_cpp='$CXXCPP $CPPFLAGS'
10107ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10108ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10109cross_compiling=$ac_cv_prog_cxx_cross
10110
10111
10112echo $ac_n "checking for vsscanf""... $ac_c" 1>&6
0dcf9893 10113echo "configure:10114: checking for vsscanf" >&5
10f2d63a
VZ
10114if eval "test \"`echo '$''{'wx_cv_func_vsscanf'+set}'`\" = set"; then
10115 echo $ac_n "(cached) $ac_c" 1>&6
10116else
10117
10118 if test "$cross_compiling" = yes; then
10119 wx_cv_func_vsscanf=no
10120
10121else
10122 cat > conftest.$ac_ext <<EOF
0dcf9893 10123#line 10124 "configure"
10f2d63a
VZ
10124#include "confdefs.h"
10125#ifdef __cplusplus
10126extern "C" void exit(int);
10127#endif
10128
10129 #include <stdio.h>
10130 #include <stdarg.h>
10131
10132 int try_vsscanf(const char *format, ...)
10133 {
10134 va_list ap;
10135 va_start(ap, format);
10136
10137 vsscanf("17", format, ap);
10138
10139 va_end(ap);
10140 }
10141
10142 int main()
10143 {
10144 int i;
10145 try_vsscanf("%d", &i);
10146 return i == 17 ? 0 : 1;
10147 }
10148
10149EOF
0dcf9893 10150if { (eval echo configure:10151: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10f2d63a
VZ
10151then
10152
10153 cat >> confdefs.h <<\EOF
10154#define HAVE_VSSCANF 1
10155EOF
10156
10157 wx_cv_func_vsscanf=yes
10158
10159else
10160 echo "configure: failed program was:" >&5
10161 cat conftest.$ac_ext >&5
10162 rm -fr conftest*
10163 wx_cv_func_vsscanf=no
10164fi
10165rm -fr conftest*
10166fi
10167
10168
10169fi
10170
10171echo "$ac_t""$wx_cv_func_vsscanf" 1>&6
10172
10173ac_ext=c
10174# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10175ac_cpp='$CPP $CPPFLAGS'
10176ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10177ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10178cross_compiling=$ac_cv_prog_cc_cross
10179
10180
b089607b 10181if test "$TOOLKIT" != "MSW"; then
10f2d63a
VZ
10182
10183for ac_func in vfork
10184do
10185echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
0dcf9893 10186echo "configure:10187: checking for $ac_func" >&5
10f2d63a
VZ
10187if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10188 echo $ac_n "(cached) $ac_c" 1>&6
10189else
10190 cat > conftest.$ac_ext <<EOF
0dcf9893 10191#line 10192 "configure"
10f2d63a
VZ
10192#include "confdefs.h"
10193/* System header to define __stub macros and hopefully few prototypes,
10194 which can conflict with char $ac_func(); below. */
10195#include <assert.h>
10196/* Override any gcc2 internal prototype to avoid an error. */
10197/* We use char because int might match the return type of a gcc2
10198 builtin and then its argument prototype would still apply. */
10199char $ac_func();
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
e8482f24 10209$ac_func();
10f2d63a
VZ
10210#endif
10211
10212; return 0; }
10213EOF
0dcf9893 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
0dcf9893 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
0dcf9893 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();
10256
10257int main() {
10258
10259/* The GNU C library defines this for functions which it implements
10260 to always fail with ENOSYS. Some functions are actually named
10261 something starting with __ and the normal name is an alias. */
10262#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10263choke me
10264#else
e8482f24 10265$ac_func();
270a909e
VZ
10266#endif
10267
10268; return 0; }
10269EOF
0dcf9893 10270if { (eval echo configure:10271: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
10271 rm -rf conftest*
10272 eval "ac_cv_func_$ac_func=yes"
10273else
10274 echo "configure: failed program was:" >&5
10275 cat conftest.$ac_ext >&5
10276 rm -rf conftest*
10277 eval "ac_cv_func_$ac_func=no"
10278fi
10279rm -f conftest*
10280fi
10281
10282if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10283 echo "$ac_t""yes" 1>&6
10284 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10285 cat >> confdefs.h <<EOF
10286#define $ac_tr_func 1
10287EOF
10288
10289else
10290 echo "$ac_t""no" 1>&6
10291fi
10292done
10293
10294
b12915c1
VZ
10295HAVE_SOME_SLEEP_FUNC=0
10296if test "$USE_BEOS" = 1; then
10297 cat >> confdefs.h <<\EOF
10298#define HAVE_SLEEP 1
10299EOF
10300
10301 HAVE_SOME_SLEEP_FUNC=1
10302fi
10303
10304if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
10305 POSIX4_LINK=
10306 for ac_func in nanosleep
10f2d63a
VZ
10307do
10308echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
0dcf9893 10309echo "configure:10310: checking for $ac_func" >&5
10f2d63a
VZ
10310if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10311 echo $ac_n "(cached) $ac_c" 1>&6
10312else
10313 cat > conftest.$ac_ext <<EOF
0dcf9893 10314#line 10315 "configure"
10f2d63a
VZ
10315#include "confdefs.h"
10316/* System header to define __stub macros and hopefully few prototypes,
10317 which can conflict with char $ac_func(); below. */
10318#include <assert.h>
10319/* Override any gcc2 internal prototype to avoid an error. */
10320/* We use char because int might match the return type of a gcc2
10321 builtin and then its argument prototype would still apply. */
10322char $ac_func();
10323
10324int main() {
10325
10326/* The GNU C library defines this for functions which it implements
10327 to always fail with ENOSYS. Some functions are actually named
10328 something starting with __ and the normal name is an alias. */
10329#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10330choke me
10331#else
e8482f24 10332$ac_func();
10f2d63a
VZ
10333#endif
10334
10335; return 0; }
10336EOF
0dcf9893 10337if { (eval echo configure:10338: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
10338 rm -rf conftest*
10339 eval "ac_cv_func_$ac_func=yes"
10340else
10341 echo "configure: failed program was:" >&5
10342 cat conftest.$ac_ext >&5
10343 rm -rf conftest*
10344 eval "ac_cv_func_$ac_func=no"
10345fi
10346rm -f conftest*
10347fi
10348
10349if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10350 echo "$ac_t""yes" 1>&6
10351 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10352 cat >> confdefs.h <<EOF
10353#define $ac_tr_func 1
10354EOF
10355 cat >> confdefs.h <<\EOF
10356#define HAVE_NANOSLEEP 1
10357EOF
10358
10359else
10360 echo "$ac_t""no" 1>&6
10361echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6
0dcf9893 10362echo "configure:10363: checking for nanosleep in -lposix4" >&5
10f2d63a
VZ
10363ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'`
10364if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10365 echo $ac_n "(cached) $ac_c" 1>&6
10366else
10367 ac_save_LIBS="$LIBS"
10368LIBS="-lposix4 $LIBS"
10369cat > conftest.$ac_ext <<EOF
0dcf9893 10370#line 10371 "configure"
10f2d63a
VZ
10371#include "confdefs.h"
10372/* Override any gcc2 internal prototype to avoid an error. */
10373/* We use char because int might match the return type of a gcc2
10374 builtin and then its argument prototype would still apply. */
10375char nanosleep();
10376
10377int main() {
10378nanosleep()
10379; return 0; }
10380EOF
0dcf9893 10381if { (eval echo configure:10382: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
10382 rm -rf conftest*
10383 eval "ac_cv_lib_$ac_lib_var=yes"
10384else
10385 echo "configure: failed program was:" >&5
10386 cat conftest.$ac_ext >&5
10387 rm -rf conftest*
10388 eval "ac_cv_lib_$ac_lib_var=no"
10389fi
10390rm -f conftest*
10391LIBS="$ac_save_LIBS"
10392
10393fi
10394if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10395 echo "$ac_t""yes" 1>&6
10396
b12915c1 10397 cat >> confdefs.h <<\EOF
10f2d63a
VZ
10398#define HAVE_NANOSLEEP 1
10399EOF
10400
b12915c1
VZ
10401 POSIX4_LINK="-lposix4"
10402
10f2d63a
VZ
10403else
10404 echo "$ac_t""no" 1>&6
10405
b12915c1 10406 for ac_func in usleep
10f2d63a
VZ
10407do
10408echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
0dcf9893 10409echo "configure:10410: checking for $ac_func" >&5
10f2d63a
VZ
10410if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10411 echo $ac_n "(cached) $ac_c" 1>&6
10412else
10413 cat > conftest.$ac_ext <<EOF
0dcf9893 10414#line 10415 "configure"
10f2d63a
VZ
10415#include "confdefs.h"
10416/* System header to define __stub macros and hopefully few prototypes,
10417 which can conflict with char $ac_func(); below. */
10418#include <assert.h>
10419/* Override any gcc2 internal prototype to avoid an error. */
10420/* We use char because int might match the return type of a gcc2
10421 builtin and then its argument prototype would still apply. */
10422char $ac_func();
10423
10424int main() {
10425
10426/* The GNU C library defines this for functions which it implements
10427 to always fail with ENOSYS. Some functions are actually named
10428 something starting with __ and the normal name is an alias. */
10429#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10430choke me
10431#else
e8482f24 10432$ac_func();
10f2d63a
VZ
10433#endif
10434
10435; return 0; }
10436EOF
0dcf9893 10437if { (eval echo configure:10438: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
10438 rm -rf conftest*
10439 eval "ac_cv_func_$ac_func=yes"
10440else
10441 echo "configure: failed program was:" >&5
10442 cat conftest.$ac_ext >&5
10443 rm -rf conftest*
10444 eval "ac_cv_func_$ac_func=no"
10445fi
10446rm -f conftest*
10447fi
10448
10449if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10450 echo "$ac_t""yes" 1>&6
10451 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10452 cat >> confdefs.h <<EOF
10453#define $ac_tr_func 1
10454EOF
b12915c1 10455
10f2d63a
VZ
10456else
10457 echo "$ac_t""no" 1>&6
10f2d63a
VZ
10458fi
10459done
10460
b12915c1
VZ
10461 echo "configure: warning: wxSleep() function will not work" 1>&2
10462
10463
10f2d63a
VZ
10464fi
10465
b12915c1
VZ
10466
10467
10f2d63a
VZ
10468fi
10469done
10470
b12915c1 10471fi
10f2d63a
VZ
10472
10473for ac_func in uname gethostname
10474do
10475echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
0dcf9893 10476echo "configure:10477: checking for $ac_func" >&5
10f2d63a
VZ
10477if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10478 echo $ac_n "(cached) $ac_c" 1>&6
10479else
10480 cat > conftest.$ac_ext <<EOF
0dcf9893 10481#line 10482 "configure"
10f2d63a
VZ
10482#include "confdefs.h"
10483/* System header to define __stub macros and hopefully few prototypes,
10484 which can conflict with char $ac_func(); below. */
10485#include <assert.h>
10486/* Override any gcc2 internal prototype to avoid an error. */
10487/* We use char because int might match the return type of a gcc2
10488 builtin and then its argument prototype would still apply. */
10489char $ac_func();
10490
10491int main() {
10492
10493/* The GNU C library defines this for functions which it implements
10494 to always fail with ENOSYS. Some functions are actually named
10495 something starting with __ and the normal name is an alias. */
10496#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10497choke me
10498#else
e8482f24 10499$ac_func();
10f2d63a
VZ
10500#endif
10501
10502; return 0; }
10503EOF
0dcf9893 10504if { (eval echo configure:10505: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
10505 rm -rf conftest*
10506 eval "ac_cv_func_$ac_func=yes"
10507else
10508 echo "configure: failed program was:" >&5
10509 cat conftest.$ac_ext >&5
10510 rm -rf conftest*
10511 eval "ac_cv_func_$ac_func=no"
10512fi
10513rm -f conftest*
10514fi
10515
10516if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10517 echo "$ac_t""yes" 1>&6
10518 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10519 cat >> confdefs.h <<EOF
10520#define $ac_tr_func 1
10521EOF
10522 break
10523else
10524 echo "$ac_t""no" 1>&6
10525fi
10526done
10527
10528
10529for ac_func in strtok_r
10530do
10531echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
0dcf9893 10532echo "configure:10533: checking for $ac_func" >&5
10f2d63a
VZ
10533if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10534 echo $ac_n "(cached) $ac_c" 1>&6
10535else
10536 cat > conftest.$ac_ext <<EOF
0dcf9893 10537#line 10538 "configure"
10f2d63a
VZ
10538#include "confdefs.h"
10539/* System header to define __stub macros and hopefully few prototypes,
10540 which can conflict with char $ac_func(); below. */
10541#include <assert.h>
10542/* Override any gcc2 internal prototype to avoid an error. */
10543/* We use char because int might match the return type of a gcc2
10544 builtin and then its argument prototype would still apply. */
10545char $ac_func();
10546
10547int main() {
10548
10549/* The GNU C library defines this for functions which it implements
10550 to always fail with ENOSYS. Some functions are actually named
10551 something starting with __ and the normal name is an alias. */
10552#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10553choke me
10554#else
e8482f24 10555$ac_func();
10f2d63a
VZ
10556#endif
10557
10558; return 0; }
10559EOF
0dcf9893 10560if { (eval echo configure:10561: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
10561 rm -rf conftest*
10562 eval "ac_cv_func_$ac_func=yes"
10563else
10564 echo "configure: failed program was:" >&5
10565 cat conftest.$ac_ext >&5
10566 rm -rf conftest*
10567 eval "ac_cv_func_$ac_func=no"
10568fi
10569rm -f conftest*
10570fi
10571
10572if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10573 echo "$ac_t""yes" 1>&6
10574 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10575 cat >> confdefs.h <<EOF
10576#define $ac_tr_func 1
10577EOF
10578
10579else
10580 echo "$ac_t""no" 1>&6
10581fi
10582done
10583
10584
c63c7106 10585INET_LINK=
10f2d63a
VZ
10586for ac_func in inet_addr
10587do
10588echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
0dcf9893 10589echo "configure:10590: checking for $ac_func" >&5
10f2d63a
VZ
10590if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10591 echo $ac_n "(cached) $ac_c" 1>&6
10592else
10593 cat > conftest.$ac_ext <<EOF
0dcf9893 10594#line 10595 "configure"
10f2d63a
VZ
10595#include "confdefs.h"
10596/* System header to define __stub macros and hopefully few prototypes,
10597 which can conflict with char $ac_func(); below. */
10598#include <assert.h>
10599/* Override any gcc2 internal prototype to avoid an error. */
10600/* We use char because int might match the return type of a gcc2
10601 builtin and then its argument prototype would still apply. */
10602char $ac_func();
10603
10604int main() {
10605
10606/* The GNU C library defines this for functions which it implements
10607 to always fail with ENOSYS. Some functions are actually named
10608 something starting with __ and the normal name is an alias. */
10609#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10610choke me
10611#else
e8482f24 10612$ac_func();
10f2d63a
VZ
10613#endif
10614
10615; return 0; }
10616EOF
0dcf9893 10617if { (eval echo configure:10618: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
10618 rm -rf conftest*
10619 eval "ac_cv_func_$ac_func=yes"
10620else
10621 echo "configure: failed program was:" >&5
10622 cat conftest.$ac_ext >&5
10623 rm -rf conftest*
10624 eval "ac_cv_func_$ac_func=no"
10625fi
10626rm -f conftest*
10627fi
10628
10629if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10630 echo "$ac_t""yes" 1>&6
10631 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10632 cat >> confdefs.h <<EOF
10633#define $ac_tr_func 1
10634EOF
c63c7106
VZ
10635 cat >> confdefs.h <<\EOF
10636#define HAVE_INET_ADDR 1
10637EOF
10638
10f2d63a
VZ
10639else
10640 echo "$ac_t""no" 1>&6
c63c7106 10641echo $ac_n "checking for inet_addr in -lnsl""... $ac_c" 1>&6
0dcf9893 10642echo "configure:10643: checking for inet_addr in -lnsl" >&5
c63c7106
VZ
10643ac_lib_var=`echo nsl'_'inet_addr | sed 'y%./+-%__p_%'`
10644if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10645 echo $ac_n "(cached) $ac_c" 1>&6
10646else
10647 ac_save_LIBS="$LIBS"
10648LIBS="-lnsl $LIBS"
10649cat > conftest.$ac_ext <<EOF
0dcf9893 10650#line 10651 "configure"
c63c7106
VZ
10651#include "confdefs.h"
10652/* Override any gcc2 internal prototype to avoid an error. */
10653/* We use char because int might match the return type of a gcc2
10654 builtin and then its argument prototype would still apply. */
10655char inet_addr();
10656
10657int main() {
10658inet_addr()
10659; return 0; }
10660EOF
0dcf9893 10661if { (eval echo configure:10662: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
c63c7106
VZ
10662 rm -rf conftest*
10663 eval "ac_cv_lib_$ac_lib_var=yes"
10664else
10665 echo "configure: failed program was:" >&5
10666 cat conftest.$ac_ext >&5
10667 rm -rf conftest*
10668 eval "ac_cv_lib_$ac_lib_var=no"
10669fi
10670rm -f conftest*
10671LIBS="$ac_save_LIBS"
10672
10673fi
10674if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10675 echo "$ac_t""yes" 1>&6
10676 INET_LINK="nsl"
10677else
10678 echo "$ac_t""no" 1>&6
10679echo $ac_n "checking for inet_addr in -lresolv""... $ac_c" 1>&6
0dcf9893 10680echo "configure:10681: checking for inet_addr in -lresolv" >&5
c63c7106
VZ
10681ac_lib_var=`echo resolv'_'inet_addr | sed 'y%./+-%__p_%'`
10682if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10683 echo $ac_n "(cached) $ac_c" 1>&6
10684else
10685 ac_save_LIBS="$LIBS"
10686LIBS="-lresolv $LIBS"
10687cat > conftest.$ac_ext <<EOF
0dcf9893 10688#line 10689 "configure"
c63c7106
VZ
10689#include "confdefs.h"
10690/* Override any gcc2 internal prototype to avoid an error. */
10691/* We use char because int might match the return type of a gcc2
10692 builtin and then its argument prototype would still apply. */
10693char inet_addr();
10694
10695int main() {
10696inet_addr()
10697; return 0; }
10698EOF
0dcf9893 10699if { (eval echo configure:10700: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
c63c7106
VZ
10700 rm -rf conftest*
10701 eval "ac_cv_lib_$ac_lib_var=yes"
10702else
10703 echo "configure: failed program was:" >&5
10704 cat conftest.$ac_ext >&5
10705 rm -rf conftest*
10706 eval "ac_cv_lib_$ac_lib_var=no"
10707fi
10708rm -f conftest*
10709LIBS="$ac_save_LIBS"
10710
10711fi
10712if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10713 echo "$ac_t""yes" 1>&6
10714 INET_LINK="resolv"
10715
10716else
10717 echo "$ac_t""no" 1>&6
10718fi
10719
10720
10721fi
10722
10723
10724
10f2d63a
VZ
10725fi
10726done
10727
c63c7106 10728
10f2d63a
VZ
10729for ac_func in inet_aton
10730do
10731echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
0dcf9893 10732echo "configure:10733: checking for $ac_func" >&5
10f2d63a
VZ
10733if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10734 echo $ac_n "(cached) $ac_c" 1>&6
10735else
10736 cat > conftest.$ac_ext <<EOF
0dcf9893 10737#line 10738 "configure"
10f2d63a
VZ
10738#include "confdefs.h"
10739/* System header to define __stub macros and hopefully few prototypes,
10740 which can conflict with char $ac_func(); below. */
10741#include <assert.h>
10742/* Override any gcc2 internal prototype to avoid an error. */
10743/* We use char because int might match the return type of a gcc2
10744 builtin and then its argument prototype would still apply. */
10745char $ac_func();
10746
10747int main() {
10748
10749/* The GNU C library defines this for functions which it implements
10750 to always fail with ENOSYS. Some functions are actually named
10751 something starting with __ and the normal name is an alias. */
10752#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10753choke me
10754#else
e8482f24 10755$ac_func();
10f2d63a
VZ
10756#endif
10757
10758; return 0; }
10759EOF
0dcf9893 10760if { (eval echo configure:10761: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
10761 rm -rf conftest*
10762 eval "ac_cv_func_$ac_func=yes"
10763else
10764 echo "configure: failed program was:" >&5
10765 cat conftest.$ac_ext >&5
10766 rm -rf conftest*
10767 eval "ac_cv_func_$ac_func=no"
10768fi
10769rm -f conftest*
10770fi
10771
10772if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10773 echo "$ac_t""yes" 1>&6
10774 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10775 cat >> confdefs.h <<EOF
10776#define $ac_tr_func 1
10777EOF
c63c7106
VZ
10778 cat >> confdefs.h <<\EOF
10779#define HAVE_INET_ATON 1
10780EOF
10781
10f2d63a
VZ
10782else
10783 echo "$ac_t""no" 1>&6
c63c7106 10784 echo $ac_n "checking for inet_aton in -l$INET_LINK""... $ac_c" 1>&6
0dcf9893 10785echo "configure:10786: checking for inet_aton in -l$INET_LINK" >&5
c63c7106 10786ac_lib_var=`echo $INET_LINK'_'inet_aton | sed 'y%./+-%__p_%'`
10f2d63a
VZ
10787if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10788 echo $ac_n "(cached) $ac_c" 1>&6
10789else
10790 ac_save_LIBS="$LIBS"
c63c7106 10791LIBS="-l$INET_LINK $LIBS"
10f2d63a 10792cat > conftest.$ac_ext <<EOF
0dcf9893 10793#line 10794 "configure"
10f2d63a
VZ
10794#include "confdefs.h"
10795/* Override any gcc2 internal prototype to avoid an error. */
10796/* We use char because int might match the return type of a gcc2
10797 builtin and then its argument prototype would still apply. */
10798char inet_aton();
10799
10800int main() {
10801inet_aton()
10802; return 0; }
10803EOF
0dcf9893 10804if { (eval echo configure:10805: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
10805 rm -rf conftest*
10806 eval "ac_cv_lib_$ac_lib_var=yes"
10807else
10808 echo "configure: failed program was:" >&5
10809 cat conftest.$ac_ext >&5
10810 rm -rf conftest*
10811 eval "ac_cv_lib_$ac_lib_var=no"
10812fi
10813rm -f conftest*
10814LIBS="$ac_save_LIBS"
10815
10816fi
10817if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10818 echo "$ac_t""yes" 1>&6
c63c7106
VZ
10819 cat >> confdefs.h <<\EOF
10820#define HAVE_INET_ATON 1
10f2d63a
VZ
10821EOF
10822
10f2d63a
VZ
10823else
10824 echo "$ac_t""no" 1>&6
10825fi
10826
c63c7106
VZ
10827
10828fi
10829done
10830
10831
10832if test "x$INET_LINK" != "x"; then
10833 cat >> confdefs.h <<\EOF
10834#define HAVE_INET_ADDR 1
10835EOF
10836
10837 INET_LINK="-l$INET_LINK"
10838fi
10f2d63a
VZ
10839
10840fi
10841
10842
10843cat > confcache <<\EOF
10844# This file is a shell script that caches the results of configure
10845# tests run on this system so they can be shared between configure
10846# scripts and configure runs. It is not useful on other systems.
10847# If it contains results you don't want to keep, you may remove or edit it.
10848#
10849# By default, configure uses ./config.cache as the cache file,
10850# creating it if it does not exist already. You can give configure
10851# the --cache-file=FILE option to use a different cache file; that is
10852# what configure does when it calls configure scripts in
10853# subdirectories, so they share the cache.
10854# Giving --cache-file=/dev/null disables caching, for debugging configure.
10855# config.status only pays attention to the cache file if you give it the
10856# --recheck option to rerun configure.
10857#
10858EOF
10859# The following way of writing the cache mishandles newlines in values,
10860# but we know of no workaround that is simple, portable, and efficient.
10861# So, don't put newlines in cache variables' values.
10862# Ultrix sh set writes to stderr and can't be redirected directly,
10863# and sets the high bit in the cache file unless we assign to the vars.
10864(set) 2>&1 |
10865 case `(ac_space=' '; set | grep ac_space) 2>&1` in
10866 *ac_space=\ *)
10867 # `set' does not quote correctly, so add quotes (double-quote substitution
10868 # turns \\\\ into \\, and sed turns \\ into \).
10869 sed -n \
10870 -e "s/'/'\\\\''/g" \
10871 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
10872 ;;
10873 *)
10874 # `set' quotes correctly as required by POSIX, so do not add quotes.
10875 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
10876 ;;
10877 esac >> confcache
10878if cmp -s $cache_file confcache; then
10879 :
10880else
10881 if test -w $cache_file; then
10882 echo "updating cache $cache_file"
10883 cat confcache > $cache_file
10884 else
10885 echo "not updating unwritable cache $cache_file"
10886 fi
10887fi
10888rm -f confcache
10889
10890
10891
b089607b 10892if test "$TOOLKIT" != "MSW"; then
10f2d63a
VZ
10893
10894
10895THREADS_LINK=""
10896THREADS_OBJ=""
10897
10898if test "$wxUSE_THREADS" = "yes" ; then
10899 if test "$wxUSE_WINE" = 1 ; then
10900 echo "configure: warning: Threads are not supported under WINE" 1>&2
10901 wxUSE_THREADS="no"
b12915c1
VZ
10902 elif test "$USE_BEOS" = 1; then
10903 echo "configure: warning: BeOS threads are not yet supported" 1>&2
10904 wxUSE_THREADS="no"
10f2d63a
VZ
10905 fi
10906fi
10907
10908if test "$wxUSE_THREADS" = "yes" ; then
10909
10910 echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6
0dcf9893 10911echo "configure:10912: checking for pthread_create in -lpthread" >&5
10f2d63a
VZ
10912ac_lib_var=`echo pthread'_'pthread_create | sed 'y%./+-%__p_%'`
10913if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10914 echo $ac_n "(cached) $ac_c" 1>&6
10915else
10916 ac_save_LIBS="$LIBS"
10917LIBS="-lpthread $LIBS"
10918cat > conftest.$ac_ext <<EOF
0dcf9893 10919#line 10920 "configure"
10f2d63a
VZ
10920#include "confdefs.h"
10921/* Override any gcc2 internal prototype to avoid an error. */
10922/* We use char because int might match the return type of a gcc2
10923 builtin and then its argument prototype would still apply. */
10924char pthread_create();
10925
10926int main() {
10927pthread_create()
10928; return 0; }
10929EOF
0dcf9893 10930if { (eval echo configure:10931: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
10931 rm -rf conftest*
10932 eval "ac_cv_lib_$ac_lib_var=yes"
10933else
10934 echo "configure: failed program was:" >&5
10935 cat conftest.$ac_ext >&5
10936 rm -rf conftest*
10937 eval "ac_cv_lib_$ac_lib_var=no"
10938fi
10939rm -f conftest*
10940LIBS="$ac_save_LIBS"
10941
10942fi
10943if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10944 echo "$ac_t""yes" 1>&6
10945
10946 THREADS_OBJ="threadpsx.lo"
10947 THREADS_LINK="pthread"
10948
10949else
10950 echo "$ac_t""no" 1>&6
10951
10952 echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6
0dcf9893 10953echo "configure:10954: checking for pthread_create in -lc_r" >&5
10f2d63a
VZ
10954ac_lib_var=`echo c_r'_'pthread_create | sed 'y%./+-%__p_%'`
10955if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10956 echo $ac_n "(cached) $ac_c" 1>&6
10957else
10958 ac_save_LIBS="$LIBS"
10959LIBS="-lc_r $LIBS"
10960cat > conftest.$ac_ext <<EOF
0dcf9893 10961#line 10962 "configure"
10f2d63a
VZ
10962#include "confdefs.h"
10963/* Override any gcc2 internal prototype to avoid an error. */
10964/* We use char because int might match the return type of a gcc2
10965 builtin and then its argument prototype would still apply. */
10966char pthread_create();
10967
10968int main() {
10969pthread_create()
10970; return 0; }
10971EOF
0dcf9893 10972if { (eval echo configure:10973: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
10973 rm -rf conftest*
10974 eval "ac_cv_lib_$ac_lib_var=yes"
10975else
10976 echo "configure: failed program was:" >&5
10977 cat conftest.$ac_ext >&5
10978 rm -rf conftest*
10979 eval "ac_cv_lib_$ac_lib_var=no"
10980fi
10981rm -f conftest*
10982LIBS="$ac_save_LIBS"
10983
10984fi
10985if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10986 echo "$ac_t""yes" 1>&6
10987
10988 THREADS_OBJ="threadpsx.lo"
10989 THREADS_LINK="c_r"
10990
10991else
10992 echo "$ac_t""no" 1>&6
10993
10994 ac_safe=`echo "sys/prctl.h" | sed 'y%./+-%__p_%'`
10995echo $ac_n "checking for sys/prctl.h""... $ac_c" 1>&6
0dcf9893 10996echo "configure:10997: checking for sys/prctl.h" >&5
10f2d63a
VZ
10997if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10998 echo $ac_n "(cached) $ac_c" 1>&6
10999else
11000 cat > conftest.$ac_ext <<EOF
0dcf9893 11001#line 11002 "configure"
10f2d63a
VZ
11002#include "confdefs.h"
11003#include <sys/prctl.h>
11004EOF
11005ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
0dcf9893 11006{ (eval echo configure:11007: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
11007ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11008if test -z "$ac_err"; then
11009 rm -rf conftest*
11010 eval "ac_cv_header_$ac_safe=yes"
11011else
11012 echo "$ac_err" >&5
11013 echo "configure: failed program was:" >&5
11014 cat conftest.$ac_ext >&5
11015 rm -rf conftest*
11016 eval "ac_cv_header_$ac_safe=no"
11017fi
11018rm -f conftest*
11019fi
11020if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11021 echo "$ac_t""yes" 1>&6
11022
11023 THREADS_OBJ="threadsgi.lo"
11024
11025else
11026 echo "$ac_t""no" 1>&6
11027fi
11028
11029
11030fi
11031
11032
11033fi
11034
11035
11036 if test -z "$THREADS_OBJ" ; then
11037 wxUSE_THREADS=no
11038 echo "configure: warning: No thread support on this system" 1>&2
11039 fi
11040fi
11041
11042if test "$wxUSE_THREADS" = "yes" ; then
70846f0a
VZ
11043 for ac_func in thr_setconcurrency
11044do
11045echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
0dcf9893 11046echo "configure:11047: checking for $ac_func" >&5
70846f0a
VZ
11047if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11048 echo $ac_n "(cached) $ac_c" 1>&6
11049else
11050 cat > conftest.$ac_ext <<EOF
0dcf9893 11051#line 11052 "configure"
70846f0a
VZ
11052#include "confdefs.h"
11053/* System header to define __stub macros and hopefully few prototypes,
11054 which can conflict with char $ac_func(); below. */
11055#include <assert.h>
11056/* Override any gcc2 internal prototype to avoid an error. */
11057/* We use char because int might match the return type of a gcc2
11058 builtin and then its argument prototype would still apply. */
11059char $ac_func();
11060
11061int main() {
11062
11063/* The GNU C library defines this for functions which it implements
11064 to always fail with ENOSYS. Some functions are actually named
11065 something starting with __ and the normal name is an alias. */
11066#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11067choke me
11068#else
e8482f24 11069$ac_func();
70846f0a
VZ
11070#endif
11071
11072; return 0; }
11073EOF
0dcf9893 11074if { (eval echo configure:11075: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
70846f0a
VZ
11075 rm -rf conftest*
11076 eval "ac_cv_func_$ac_func=yes"
11077else
11078 echo "configure: failed program was:" >&5
11079 cat conftest.$ac_ext >&5
11080 rm -rf conftest*
11081 eval "ac_cv_func_$ac_func=no"
11082fi
11083rm -f conftest*
11084fi
11085
11086if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11087 echo "$ac_t""yes" 1>&6
11088 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11089 cat >> confdefs.h <<EOF
11090#define $ac_tr_func 1
11091EOF
11092
11093else
11094 echo "$ac_t""no" 1>&6
11095fi
11096done
11097
11098
10f2d63a
VZ
11099
11100 for ac_hdr in sched.h
11101do
11102ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11103echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
0dcf9893 11104echo "configure:11105: checking for $ac_hdr" >&5
10f2d63a
VZ
11105if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11106 echo $ac_n "(cached) $ac_c" 1>&6
11107else
11108 cat > conftest.$ac_ext <<EOF
0dcf9893 11109#line 11110 "configure"
10f2d63a
VZ
11110#include "confdefs.h"
11111#include <$ac_hdr>
11112EOF
11113ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
0dcf9893 11114{ (eval echo configure:11115: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
11115ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11116if test -z "$ac_err"; then
11117 rm -rf conftest*
11118 eval "ac_cv_header_$ac_safe=yes"
11119else
11120 echo "$ac_err" >&5
11121 echo "configure: failed program was:" >&5
11122 cat conftest.$ac_ext >&5
11123 rm -rf conftest*
11124 eval "ac_cv_header_$ac_safe=no"
11125fi
11126rm -f conftest*
11127fi
11128if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11129 echo "$ac_t""yes" 1>&6
11130 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11131 cat >> confdefs.h <<EOF
11132#define $ac_tr_hdr 1
11133EOF
11134
11135else
11136 echo "$ac_t""no" 1>&6
11137fi
11138done
11139
11140
11141 echo $ac_n "checking for sched_yield in -l$THREADS_LINK""... $ac_c" 1>&6
0dcf9893 11142echo "configure:11143: checking for sched_yield in -l$THREADS_LINK" >&5
10f2d63a
VZ
11143ac_lib_var=`echo $THREADS_LINK'_'sched_yield | sed 'y%./+-%__p_%'`
11144if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11145 echo $ac_n "(cached) $ac_c" 1>&6
11146else
11147 ac_save_LIBS="$LIBS"
11148LIBS="-l$THREADS_LINK $LIBS"
11149cat > conftest.$ac_ext <<EOF
0dcf9893 11150#line 11151 "configure"
10f2d63a
VZ
11151#include "confdefs.h"
11152/* Override any gcc2 internal prototype to avoid an error. */
11153/* We use char because int might match the return type of a gcc2
11154 builtin and then its argument prototype would still apply. */
11155char sched_yield();
11156
11157int main() {
11158sched_yield()
11159; return 0; }
11160EOF
0dcf9893 11161if { (eval echo configure:11162: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
11162 rm -rf conftest*
11163 eval "ac_cv_lib_$ac_lib_var=yes"
11164else
11165 echo "configure: failed program was:" >&5
11166 cat conftest.$ac_ext >&5
11167 rm -rf conftest*
11168 eval "ac_cv_lib_$ac_lib_var=no"
11169fi
11170rm -f conftest*
11171LIBS="$ac_save_LIBS"
11172
11173fi
11174if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11175 echo "$ac_t""yes" 1>&6
11176 cat >> confdefs.h <<\EOF
11177#define HAVE_SCHED_YIELD 1
11178EOF
11179
11180else
11181 echo "$ac_t""no" 1>&6
11182echo $ac_n "checking for sched_yield in -l"posix4"""... $ac_c" 1>&6
0dcf9893 11183echo "configure:11184: checking for sched_yield in -l"posix4"" >&5
10f2d63a
VZ
11184ac_lib_var=`echo "posix4"'_'sched_yield | sed 'y%./+-%__p_%'`
11185if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11186 echo $ac_n "(cached) $ac_c" 1>&6
11187else
11188 ac_save_LIBS="$LIBS"
11189LIBS="-l"posix4" $LIBS"
11190cat > conftest.$ac_ext <<EOF
0dcf9893 11191#line 11192 "configure"
10f2d63a
VZ
11192#include "confdefs.h"
11193/* Override any gcc2 internal prototype to avoid an error. */
11194/* We use char because int might match the return type of a gcc2
11195 builtin and then its argument prototype would still apply. */
11196char sched_yield();
11197
11198int main() {
11199sched_yield()
11200; return 0; }
11201EOF
0dcf9893 11202if { (eval echo configure:11203: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
11203 rm -rf conftest*
11204 eval "ac_cv_lib_$ac_lib_var=yes"
11205else
11206 echo "configure: failed program was:" >&5
11207 cat conftest.$ac_ext >&5
11208 rm -rf conftest*
11209 eval "ac_cv_lib_$ac_lib_var=no"
11210fi
11211rm -f conftest*
11212LIBS="$ac_save_LIBS"
11213
11214fi
11215if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11216 echo "$ac_t""yes" 1>&6
11217 cat >> confdefs.h <<\EOF
11218#define HAVE_SCHED_YIELD 1
11219EOF
11220 POSIX4_LINK="-lposix4"
11221else
11222 echo "$ac_t""no" 1>&6
11223echo "configure: warning: wxThread::Yield will not work properly" 1>&2
11224
11225fi
11226
11227
11228fi
11229
11230
11231 echo $ac_n "checking for pthread_attr_getschedpolicy in -l$THREADS_LINK""... $ac_c" 1>&6
0dcf9893 11232echo "configure:11233: checking for pthread_attr_getschedpolicy in -l$THREADS_LINK" >&5
10f2d63a
VZ
11233ac_lib_var=`echo $THREADS_LINK'_'pthread_attr_getschedpolicy | sed 'y%./+-%__p_%'`
11234if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11235 echo $ac_n "(cached) $ac_c" 1>&6
11236else
11237 ac_save_LIBS="$LIBS"
11238LIBS="-l$THREADS_LINK $LIBS"
11239cat > conftest.$ac_ext <<EOF
0dcf9893 11240#line 11241 "configure"
10f2d63a
VZ
11241#include "confdefs.h"
11242/* Override any gcc2 internal prototype to avoid an error. */
11243/* We use char because int might match the return type of a gcc2
11244 builtin and then its argument prototype would still apply. */
11245char pthread_attr_getschedpolicy();
11246
11247int main() {
11248pthread_attr_getschedpolicy()
11249; return 0; }
11250EOF
0dcf9893 11251if { (eval echo configure:11252: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
11252 rm -rf conftest*
11253 eval "ac_cv_lib_$ac_lib_var=yes"
11254else
11255 echo "configure: failed program was:" >&5
11256 cat conftest.$ac_ext >&5
11257 rm -rf conftest*
11258 eval "ac_cv_lib_$ac_lib_var=no"
11259fi
11260rm -f conftest*
11261LIBS="$ac_save_LIBS"
11262
11263fi
11264if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11265 echo "$ac_t""yes" 1>&6
11266 cat >> confdefs.h <<\EOF
11267#define HAVE_THREAD_PRIORITY_FUNCTIONS 1
11268EOF
11269
11270else
11271 echo "$ac_t""no" 1>&6
11272echo $ac_n "checking for pthread_attr_getschedpolicy in -l"posix4"""... $ac_c" 1>&6
0dcf9893 11273echo "configure:11274: checking for pthread_attr_getschedpolicy in -l"posix4"" >&5
10f2d63a
VZ
11274ac_lib_var=`echo "posix4"'_'pthread_attr_getschedpolicy | sed 'y%./+-%__p_%'`
11275if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11276 echo $ac_n "(cached) $ac_c" 1>&6
11277else
11278 ac_save_LIBS="$LIBS"
11279LIBS="-l"posix4" $LIBS"
11280cat > conftest.$ac_ext <<EOF
0dcf9893 11281#line 11282 "configure"
10f2d63a
VZ
11282#include "confdefs.h"
11283/* Override any gcc2 internal prototype to avoid an error. */
11284/* We use char because int might match the return type of a gcc2
11285 builtin and then its argument prototype would still apply. */
11286char pthread_attr_getschedpolicy();
11287
11288int main() {
11289pthread_attr_getschedpolicy()
11290; return 0; }
11291EOF
0dcf9893 11292if { (eval echo configure:11293: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
11293 rm -rf conftest*
11294 eval "ac_cv_lib_$ac_lib_var=yes"
11295else
11296 echo "configure: failed program was:" >&5
11297 cat conftest.$ac_ext >&5
11298 rm -rf conftest*
11299 eval "ac_cv_lib_$ac_lib_var=no"
11300fi
11301rm -f conftest*
11302LIBS="$ac_save_LIBS"
11303
11304fi
11305if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11306 echo "$ac_t""yes" 1>&6
11307 cat >> confdefs.h <<\EOF
11308#define HAVE_THREAD_PRIORITY_FUNCTIONS 1
11309EOF
11310 POSIX4_LINK="-lposix4"
11311else
11312 echo "$ac_t""no" 1>&6
11313echo "configure: warning: Setting thread priority will not work" 1>&2
11314
11315fi
11316
11317
11318fi
11319
11320
11321 echo $ac_n "checking for pthread_cancel in -l$THREADS_LINK""... $ac_c" 1>&6
0dcf9893 11322echo "configure:11323: checking for pthread_cancel in -l$THREADS_LINK" >&5
10f2d63a
VZ
11323ac_lib_var=`echo $THREADS_LINK'_'pthread_cancel | sed 'y%./+-%__p_%'`
11324if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11325 echo $ac_n "(cached) $ac_c" 1>&6
11326else
11327 ac_save_LIBS="$LIBS"
11328LIBS="-l$THREADS_LINK $LIBS"
11329cat > conftest.$ac_ext <<EOF
0dcf9893 11330#line 11331 "configure"
10f2d63a
VZ
11331#include "confdefs.h"
11332/* Override any gcc2 internal prototype to avoid an error. */
11333/* We use char because int might match the return type of a gcc2
11334 builtin and then its argument prototype would still apply. */
11335char pthread_cancel();
11336
11337int main() {
11338pthread_cancel()
11339; return 0; }
11340EOF
0dcf9893 11341if { (eval echo configure:11342: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
11342 rm -rf conftest*
11343 eval "ac_cv_lib_$ac_lib_var=yes"
11344else
11345 echo "configure: failed program was:" >&5
11346 cat conftest.$ac_ext >&5
11347 rm -rf conftest*
11348 eval "ac_cv_lib_$ac_lib_var=no"
11349fi
11350rm -f conftest*
11351LIBS="$ac_save_LIBS"
11352
11353fi
11354if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11355 echo "$ac_t""yes" 1>&6
11356 cat >> confdefs.h <<\EOF
11357#define HAVE_PTHREAD_CANCEL 1
11358EOF
11359
11360else
11361 echo "$ac_t""no" 1>&6
11362echo "configure: warning: wxThread::Kill() will not work properly" 1>&2
11363fi
11364
11365
11366 echo $ac_n "checking for pthread_cleanup_push/pop""... $ac_c" 1>&6
0dcf9893 11367echo "configure:11368: checking for pthread_cleanup_push/pop" >&5
10f2d63a
VZ
11368if eval "test \"`echo '$''{'wx_cv_func_pthread_cleanup_push'+set}'`\" = set"; then
11369 echo $ac_n "(cached) $ac_c" 1>&6
11370else
11371
11372 cat > conftest.$ac_ext <<EOF
0dcf9893 11373#line 11374 "configure"
10f2d63a
VZ
11374#include "confdefs.h"
11375#include <pthread.h>
11376int main() {
11377
11378 pthread_cleanup_push(NULL, NULL);
11379 pthread_cleanup_pop(0);
11380
11381; return 0; }
11382EOF
0dcf9893 11383if { (eval echo configure:11384: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10f2d63a
VZ
11384 rm -rf conftest*
11385
11386 wx_cv_func_pthread_cleanup_push=yes
11387 cat >> confdefs.h <<\EOF
11388#define HAVE_THREAD_CLEANUP_FUNCTIONS 1
11389EOF
11390
11391
11392else
11393 echo "configure: failed program was:" >&5
11394 cat conftest.$ac_ext >&5
11395 rm -rf conftest*
11396
11397 wx_cv_func_pthread_cleanup_push=no
11398
11399fi
11400rm -f conftest*
11401
11402fi
11403
11404echo "$ac_t""$wx_cv_func_pthread_cleanup_push" 1>&6
11405
11406 THREADS_LINK="-l$THREADS_LINK"
11407fi
11408
11409fi
11410
11411if test "$wxUSE_THREADS" = "yes"; then
11412 cat >> confdefs.h <<\EOF
11413#define wxUSE_THREADS 1
11414EOF
11415
11416
11417 CFLAGS="${CFLAGS} -D_REENTRANT"
11418 CXXFLAGS="${CXXFLAGS} -D_REENTRANT"
11419
11420 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
11421else
11422 if test "$ac_cv_func_strtok_r" = "yes"; then
ab9b9eab 11423 echo $ac_n "checking if -D_REENTRANT is needed""... $ac_c" 1>&6
0dcf9893 11424echo "configure:11425: checking if -D_REENTRANT is needed" >&5
ab9b9eab
VZ
11425 if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
11426 CFLAGS="${CFLAGS} -D_REENTRANT"
11427 CXXFLAGS="${CXXFLAGS} -D_REENTRANT"
11428 echo "$ac_t""yes" 1>&6
11429 else
11430 echo "$ac_t""no" 1>&6
10f2d63a
VZ
11431 fi
11432 fi
11433fi
11434
13111b2a
VZ
11435if test "$WXGTK13" = 1 ; then
11436 cat >> confdefs.h <<EOF
11437#define __WXGTK13__ $WXGTK13
11438EOF
11439
11440 WXGTK12=1
11441fi
11442
10f2d63a
VZ
11443if test "$WXGTK12" = 1 ; then
11444 cat >> confdefs.h <<EOF
11445#define __WXGTK12__ $WXGTK12
11446EOF
11447
11448fi
11449
11450if test "$WXWINE" = 1 ; then
11451 TOOLKIT_DEF="${TOOLKIT_DEF} -D__WXWINE__"
11452fi
11453
11454if test "$wxUSE_CYGWIN" = 1 ; then
11455 TOOLKIT_DEF="${TOOLKIT_DEF} -D__WIN95__"
11456fi
11457
11458WXDEBUG=
11459
11460if test "$wxUSE_DEBUG_INFO" = "yes" ; then
11461 WXDEBUG="-g"
11462 wxUSE_OPTIMISE=no
11463fi
11464
11465if test "$wxUSE_DEBUG_GDB" = "yes" ; then
11466 wxUSE_DEBUG_INFO=yes
11467 WXDEBUG="-ggdb"
11468fi
11469
11470if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
11471 cat >> confdefs.h <<\EOF
11472#define WXDEBUG 1
11473EOF
11474
11475 WXDEBUG_DEFINE="-D__WXDEBUG__"
11476else
11477 if test "$wxUSE_GTK" = 1 ; then
11478 WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS"
11479 fi
11480fi
11481
11482if test "$wxUSE_MEM_TRACING" = "yes" ; then
11483 cat >> confdefs.h <<\EOF
11484#define wxUSE_MEMORY_TRACING 1
11485EOF
11486
11487 cat >> confdefs.h <<\EOF
11488#define wxUSE_GLOBAL_MEMORY_OPERATORS 1
47c13eb7
VS
11489EOF
11490
11491 cat >> confdefs.h <<\EOF
11492#define wxUSE_DEBUG_NEW_ALWAYS 1
10f2d63a
VZ
11493EOF
11494
11495 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
11496fi
11497
11498if test "$wxUSE_DMALLOC" = "yes" ; then
11499 DMALLOC_LINK="-ldmalloc"
11500fi
11501
11502PROFILE=
11503if test "$wxUSE_PROFILE" = "yes" ; then
11504 PROFILE="-pg"
11505fi
11506
11507DEP_INFO_FLAGS=
caa2c79b 11508CODE_GEN_FLAGS=
10f2d63a
VZ
11509if test "$GCC" = yes ; then
11510 if test "$wxUSE_NO_RTTI" = "yes" ; then
caa2c79b 11511 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fno-rtti"
10f2d63a
VZ
11512 fi
11513 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
caa2c79b 11514 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fno-exceptions"
10f2d63a
VZ
11515 fi
11516 if test "$wxUSE_PERMISSIVE" = "yes" ; then
caa2c79b 11517 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive"
10f2d63a
VZ
11518 fi
11519 if test "$wxUSE_NO_DEPS" = "no" ; then
11520 DEP_INFO_FLAGS="-MMD"
11521 fi
11522fi
11523
11524
11525CXXFLAGS=`echo "${CXXFLAGS}" | sed "s/\-O.//g" `
11526CFLAGS=`echo "${CFLAGS}" | sed "s/\-O.//g" `
11527if test "$wxUSE_OPTIMISE" = "no" ; then
11528 OPTIMISE=
11529else
11530 if test "$GCC" = yes ; then
11531 OPTIMISE="-O2"
11532 case "${host}" in
11533 i586-*-*|i686-*-* )
11534 OPTIMISE="${OPTIMISE} "
11535 ;;
11536 esac
11537 else
11538 OPTIMISE="-O"
11539 fi
11540fi
11541
11542
11543ZLIB_INCLUDE=
422107f9 11544if test "$wxUSE_ZLIB" = "yes" -o "$wxUSE_ZLIB" = "sys" ; then
10f2d63a
VZ
11545 cat >> confdefs.h <<\EOF
11546#define wxUSE_ZLIB 1
11547EOF
11548
422107f9
VZ
11549 if test "$wxUSE_ZLIB" = "yes" ; then
11550 ZLIB_INCLUDE="-I\${top_srcdir}/src/zlib"
11551 else
11552 ZLIB_LINK=
11553 ac_safe=`echo "zlib.h" | sed 'y%./+-%__p_%'`
11554echo $ac_n "checking for zlib.h""... $ac_c" 1>&6
0dcf9893 11555echo "configure:11556: checking for zlib.h" >&5
422107f9
VZ
11556if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11557 echo $ac_n "(cached) $ac_c" 1>&6
11558else
11559 cat > conftest.$ac_ext <<EOF
0dcf9893 11560#line 11561 "configure"
422107f9
VZ
11561#include "confdefs.h"
11562#include <zlib.h>
11563EOF
11564ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
0dcf9893 11565{ (eval echo configure:11566: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
422107f9
VZ
11566ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11567if test -z "$ac_err"; then
11568 rm -rf conftest*
11569 eval "ac_cv_header_$ac_safe=yes"
11570else
11571 echo "$ac_err" >&5
11572 echo "configure: failed program was:" >&5
11573 cat conftest.$ac_ext >&5
11574 rm -rf conftest*
11575 eval "ac_cv_header_$ac_safe=no"
11576fi
11577rm -f conftest*
11578fi
11579if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11580 echo "$ac_t""yes" 1>&6
11581 echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6
0dcf9893 11582echo "configure:11583: checking for deflate in -lz" >&5
422107f9
VZ
11583ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'`
11584if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11585 echo $ac_n "(cached) $ac_c" 1>&6
11586else
11587 ac_save_LIBS="$LIBS"
11588LIBS="-lz $LIBS"
11589cat > conftest.$ac_ext <<EOF
0dcf9893 11590#line 11591 "configure"
422107f9
VZ
11591#include "confdefs.h"
11592/* Override any gcc2 internal prototype to avoid an error. */
11593/* We use char because int might match the return type of a gcc2
11594 builtin and then its argument prototype would still apply. */
11595char deflate();
11596
11597int main() {
11598deflate()
11599; return 0; }
11600EOF
0dcf9893 11601if { (eval echo configure:11602: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
422107f9
VZ
11602 rm -rf conftest*
11603 eval "ac_cv_lib_$ac_lib_var=yes"
11604else
11605 echo "configure: failed program was:" >&5
11606 cat conftest.$ac_ext >&5
11607 rm -rf conftest*
11608 eval "ac_cv_lib_$ac_lib_var=no"
11609fi
11610rm -f conftest*
11611LIBS="$ac_save_LIBS"
11612
11613fi
11614if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11615 echo "$ac_t""yes" 1>&6
11616 ZLIB_LINK="-lz"
11617else
11618 echo "$ac_t""no" 1>&6
11619fi
11620
11621else
11622 echo "$ac_t""no" 1>&6
11623fi
11624
11625 if test "x$ZLIB_LINK" = "x" ; then
11626 { echo "configure: error: system zlib compression library not found! Use --with-zlib=yes to use built-in zlib" 1>&2; exit 1; }
11627 fi
11628 fi
10f2d63a
VZ
11629fi
11630
11631PNG_INCLUDE=
422107f9 11632if test "$wxUSE_LIBPNG" = "yes" -o "$wxUSE_LIBPNG" = "sys" ; then
10f2d63a
VZ
11633 cat >> confdefs.h <<\EOF
11634#define wxUSE_LIBPNG 1
11635EOF
11636
41fd4136 11637 if test "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
422107f9
VZ
11638 echo "configure: warning: --with-libpng=sys doesn't work without --with-zlib=sys, will compile the built-in libpng instead" 1>&2
11639 wxUSE_LIBPNG=yes
11640 fi
11641
11642 if test "$wxUSE_LIBPNG" = "yes" ; then
11643 PNG_INCLUDE="-I\${top_srcdir}/src/png"
11644 else
11645 PNG_LINK=
11646 ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'`
11647echo $ac_n "checking for png.h""... $ac_c" 1>&6
0dcf9893 11648echo "configure:11649: checking for png.h" >&5
422107f9
VZ
11649if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11650 echo $ac_n "(cached) $ac_c" 1>&6
11651else
11652 cat > conftest.$ac_ext <<EOF
0dcf9893 11653#line 11654 "configure"
422107f9
VZ
11654#include "confdefs.h"
11655#include <png.h>
11656EOF
11657ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
0dcf9893 11658{ (eval echo configure:11659: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
422107f9
VZ
11659ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11660if test -z "$ac_err"; then
11661 rm -rf conftest*
11662 eval "ac_cv_header_$ac_safe=yes"
11663else
11664 echo "$ac_err" >&5
11665 echo "configure: failed program was:" >&5
11666 cat conftest.$ac_ext >&5
11667 rm -rf conftest*
11668 eval "ac_cv_header_$ac_safe=no"
11669fi
11670rm -f conftest*
11671fi
11672if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11673 echo "$ac_t""yes" 1>&6
11674 echo $ac_n "checking for png_check_sig in -lpng""... $ac_c" 1>&6
0dcf9893 11675echo "configure:11676: checking for png_check_sig in -lpng" >&5
422107f9
VZ
11676ac_lib_var=`echo png'_'png_check_sig | sed 'y%./+-%__p_%'`
11677if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11678 echo $ac_n "(cached) $ac_c" 1>&6
11679else
11680 ac_save_LIBS="$LIBS"
11681LIBS="-lpng -lz -lm $LIBS"
11682cat > conftest.$ac_ext <<EOF
0dcf9893 11683#line 11684 "configure"
422107f9
VZ
11684#include "confdefs.h"
11685/* Override any gcc2 internal prototype to avoid an error. */
11686/* We use char because int might match the return type of a gcc2
11687 builtin and then its argument prototype would still apply. */
11688char png_check_sig();
11689
11690int main() {
11691png_check_sig()
11692; return 0; }
11693EOF
0dcf9893 11694if { (eval echo configure:11695: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
422107f9
VZ
11695 rm -rf conftest*
11696 eval "ac_cv_lib_$ac_lib_var=yes"
11697else
11698 echo "configure: failed program was:" >&5
11699 cat conftest.$ac_ext >&5
11700 rm -rf conftest*
11701 eval "ac_cv_lib_$ac_lib_var=no"
11702fi
11703rm -f conftest*
11704LIBS="$ac_save_LIBS"
11705
11706fi
11707if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11708 echo "$ac_t""yes" 1>&6
11709 PNG_LINK="-lpng"
11710else
11711 echo "$ac_t""no" 1>&6
11712fi
11713
11714
11715else
11716 echo "$ac_t""no" 1>&6
11717fi
11718
11719 if test "x$PNG_LINK" = "x" ; then
0dcf9893 11720 { echo "configure: error: system png library not found! Use --with-libpng=yes to use the built-in libpng" 1>&2; exit 1; }
422107f9
VZ
11721 fi
11722 fi
11723
10f2d63a
VZ
11724 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
11725fi
11726
11727JPEG_INCLUDE=
422107f9 11728if test "$wxUSE_LIBJPEG" = "yes" -o "$wxUSE_LIBJPEG" = "sys" ; then
10f2d63a
VZ
11729 cat >> confdefs.h <<\EOF
11730#define wxUSE_LIBJPEG 1
11731EOF
11732
422107f9
VZ
11733 if test "$wxUSE_LIBJPEG" = "yes" ; then
11734 JPEG_INCLUDE="-I\${top_srcdir}/src/jpeg"
11735 else
11736 JPEG_LINK=
11737 ac_safe=`echo "jpeglib.h" | sed 'y%./+-%__p_%'`
11738echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6
0dcf9893 11739echo "configure:11740: checking for jpeglib.h" >&5
422107f9
VZ
11740if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11741 echo $ac_n "(cached) $ac_c" 1>&6
11742else
11743 cat > conftest.$ac_ext <<EOF
0dcf9893 11744#line 11745 "configure"
422107f9
VZ
11745#include "confdefs.h"
11746#include <jpeglib.h>
11747EOF
11748ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
0dcf9893 11749{ (eval echo configure:11750: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
422107f9
VZ
11750ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11751if test -z "$ac_err"; then
11752 rm -rf conftest*
11753 eval "ac_cv_header_$ac_safe=yes"
11754else
11755 echo "$ac_err" >&5
11756 echo "configure: failed program was:" >&5
11757 cat conftest.$ac_ext >&5
11758 rm -rf conftest*
11759 eval "ac_cv_header_$ac_safe=no"
11760fi
11761rm -f conftest*
11762fi
11763if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11764 echo "$ac_t""yes" 1>&6
11765 echo $ac_n "checking for jpeg_read_header in -ljpeg""... $ac_c" 1>&6
0dcf9893 11766echo "configure:11767: checking for jpeg_read_header in -ljpeg" >&5
422107f9
VZ
11767ac_lib_var=`echo jpeg'_'jpeg_read_header | sed 'y%./+-%__p_%'`
11768if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11769 echo $ac_n "(cached) $ac_c" 1>&6
11770else
11771 ac_save_LIBS="$LIBS"
11772LIBS="-ljpeg $LIBS"
11773cat > conftest.$ac_ext <<EOF
0dcf9893 11774#line 11775 "configure"
422107f9
VZ
11775#include "confdefs.h"
11776/* Override any gcc2 internal prototype to avoid an error. */
11777/* We use char because int might match the return type of a gcc2
11778 builtin and then its argument prototype would still apply. */
11779char jpeg_read_header();
11780
11781int main() {
11782jpeg_read_header()
11783; return 0; }
11784EOF
0dcf9893 11785if { (eval echo configure:11786: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
422107f9
VZ
11786 rm -rf conftest*
11787 eval "ac_cv_lib_$ac_lib_var=yes"
11788else
11789 echo "configure: failed program was:" >&5
11790 cat conftest.$ac_ext >&5
11791 rm -rf conftest*
11792 eval "ac_cv_lib_$ac_lib_var=no"
11793fi
11794rm -f conftest*
11795LIBS="$ac_save_LIBS"
11796
11797fi
11798if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11799 echo "$ac_t""yes" 1>&6
11800 JPEG_LINK="-ljpeg"
11801else
11802 echo "$ac_t""no" 1>&6
11803fi
11804
11805else
11806 echo "$ac_t""no" 1>&6
11807fi
11808
11809 if test "x$JPEG_LINK" = "x" ; then
0dcf9893 11810 { echo "configure: error: system jpeg library not found! Use --with-libjpeg=yes to use the built-in one" 1>&2; exit 1; }
422107f9
VZ
11811 fi
11812 fi
10f2d63a
VZ
11813fi
11814
c7a2bf27 11815TIFF_INCLUDE=
0dcf9893 11816if test "$wxUSE_LIBTIFF" = "yes" -o "$wxUSE_LIBTIFF" = "sys" ; then
c7a2bf27
RR
11817 cat >> confdefs.h <<\EOF
11818#define wxUSE_LIBTIFF 1
11819EOF
11820
0dcf9893
VZ
11821 if test "$wxUSE_LIBTIFF" = "yes" ; then
11822 TIFF_INCLUDE="-I\${top_srcdir}/src/tiff"
11823 else
11824 TIFF_LINK=
11825 ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'`
11826echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6
11827echo "configure:11828: checking for tiffio.h" >&5
11828if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11829 echo $ac_n "(cached) $ac_c" 1>&6
11830else
11831 cat > conftest.$ac_ext <<EOF
11832#line 11833 "configure"
11833#include "confdefs.h"
11834#include <tiffio.h>
11835EOF
11836ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11837{ (eval echo configure:11838: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11838ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11839if test -z "$ac_err"; then
11840 rm -rf conftest*
11841 eval "ac_cv_header_$ac_safe=yes"
11842else
11843 echo "$ac_err" >&5
11844 echo "configure: failed program was:" >&5
11845 cat conftest.$ac_ext >&5
11846 rm -rf conftest*
11847 eval "ac_cv_header_$ac_safe=no"
11848fi
11849rm -f conftest*
11850fi
11851if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11852 echo "$ac_t""yes" 1>&6
11853 echo $ac_n "checking for TIFFError in -ltiff""... $ac_c" 1>&6
11854echo "configure:11855: checking for TIFFError in -ltiff" >&5
11855ac_lib_var=`echo tiff'_'TIFFError | sed 'y%./+-%__p_%'`
11856if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11857 echo $ac_n "(cached) $ac_c" 1>&6
11858else
11859 ac_save_LIBS="$LIBS"
11860LIBS="-ltiff -lm $LIBS"
11861cat > conftest.$ac_ext <<EOF
11862#line 11863 "configure"
11863#include "confdefs.h"
11864/* Override any gcc2 internal prototype to avoid an error. */
11865/* We use char because int might match the return type of a gcc2
11866 builtin and then its argument prototype would still apply. */
11867char TIFFError();
11868
11869int main() {
11870TIFFError()
11871; return 0; }
11872EOF
11873if { (eval echo configure:11874: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11874 rm -rf conftest*
11875 eval "ac_cv_lib_$ac_lib_var=yes"
11876else
11877 echo "configure: failed program was:" >&5
11878 cat conftest.$ac_ext >&5
11879 rm -rf conftest*
11880 eval "ac_cv_lib_$ac_lib_var=no"
11881fi
11882rm -f conftest*
11883LIBS="$ac_save_LIBS"
11884
11885fi
11886if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11887 echo "$ac_t""yes" 1>&6
11888 TIFF_LINK="-ltiff"
11889else
11890 echo "$ac_t""no" 1>&6
11891fi
11892
11893else
11894 echo "$ac_t""no" 1>&6
11895fi
11896
11897 if test "x$TIFF_LINK" = "x" ; then
11898 { echo "configure: error: system tiff library not found! Use --with-libtiff=yes to use the built-in one" 1>&2; exit 1; }
11899 fi
11900 fi
c7a2bf27
RR
11901fi
11902
10f2d63a
VZ
11903if test "$wxUSE_OPENGL" = "yes"; then
11904 ac_safe=`echo "GL/gl.h" | sed 'y%./+-%__p_%'`
11905echo $ac_n "checking for GL/gl.h""... $ac_c" 1>&6
0dcf9893 11906echo "configure:11907: checking for GL/gl.h" >&5
10f2d63a
VZ
11907if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11908 echo $ac_n "(cached) $ac_c" 1>&6
11909else
11910 cat > conftest.$ac_ext <<EOF
0dcf9893 11911#line 11912 "configure"
10f2d63a
VZ
11912#include "confdefs.h"
11913#include <GL/gl.h>
11914EOF
11915ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
0dcf9893 11916{ (eval echo configure:11917: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
11917ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11918if test -z "$ac_err"; then
11919 rm -rf conftest*
11920 eval "ac_cv_header_$ac_safe=yes"
11921else
11922 echo "$ac_err" >&5
11923 echo "configure: failed program was:" >&5
11924 cat conftest.$ac_ext >&5
11925 rm -rf conftest*
11926 eval "ac_cv_header_$ac_safe=no"
11927fi
11928rm -f conftest*
11929fi
11930if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11931 echo "$ac_t""yes" 1>&6
11932
bdad4e7e
RR
11933 cat >> confdefs.h <<\EOF
11934#define wxUSE_OPENGL 1
11935EOF
11936
11937 cat >> confdefs.h <<\EOF
11938#define wxUSE_GLCANVAS 1
11939EOF
11940
11941 echo $ac_n "checking for glFlush in -lGL""... $ac_c" 1>&6
0dcf9893 11942echo "configure:11943: checking for glFlush in -lGL" >&5
bdad4e7e 11943ac_lib_var=`echo GL'_'glFlush | sed 'y%./+-%__p_%'`
10f2d63a
VZ
11944if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11945 echo $ac_n "(cached) $ac_c" 1>&6
11946else
11947 ac_save_LIBS="$LIBS"
bdad4e7e 11948LIBS="-lGL $LIBS"
10f2d63a 11949cat > conftest.$ac_ext <<EOF
0dcf9893 11950#line 11951 "configure"
10f2d63a
VZ
11951#include "confdefs.h"
11952/* Override any gcc2 internal prototype to avoid an error. */
11953/* We use char because int might match the return type of a gcc2
11954 builtin and then its argument prototype would still apply. */
bdad4e7e 11955char glFlush();
10f2d63a
VZ
11956
11957int main() {
bdad4e7e 11958glFlush()
10f2d63a
VZ
11959; return 0; }
11960EOF
0dcf9893 11961if { (eval echo configure:11962: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
11962 rm -rf conftest*
11963 eval "ac_cv_lib_$ac_lib_var=yes"
11964else
11965 echo "configure: failed program was:" >&5
11966 cat conftest.$ac_ext >&5
11967 rm -rf conftest*
11968 eval "ac_cv_lib_$ac_lib_var=no"
11969fi
11970rm -f conftest*
11971LIBS="$ac_save_LIBS"
11972
11973fi
11974if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11975 echo "$ac_t""yes" 1>&6
11976
11977 OPENGL_LINK="-lGL"
10f2d63a
VZ
11978
11979else
11980 echo "$ac_t""no" 1>&6
11981
bdad4e7e 11982 echo $ac_n "checking for glFlush in -lMesaGL""... $ac_c" 1>&6
0dcf9893 11983echo "configure:11984: checking for glFlush in -lMesaGL" >&5
bdad4e7e 11984ac_lib_var=`echo MesaGL'_'glFlush | sed 'y%./+-%__p_%'`
10f2d63a
VZ
11985if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11986 echo $ac_n "(cached) $ac_c" 1>&6
11987else
11988 ac_save_LIBS="$LIBS"
11989LIBS="-lMesaGL $LIBS"
11990cat > conftest.$ac_ext <<EOF
0dcf9893 11991#line 11992 "configure"
10f2d63a
VZ
11992#include "confdefs.h"
11993/* Override any gcc2 internal prototype to avoid an error. */
11994/* We use char because int might match the return type of a gcc2
11995 builtin and then its argument prototype would still apply. */
bdad4e7e 11996char glFlush();
10f2d63a
VZ
11997
11998int main() {
bdad4e7e 11999glFlush()
10f2d63a
VZ
12000; return 0; }
12001EOF
0dcf9893 12002if { (eval echo configure:12003: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
12003 rm -rf conftest*
12004 eval "ac_cv_lib_$ac_lib_var=yes"
12005else
12006 echo "configure: failed program was:" >&5
12007 cat conftest.$ac_ext >&5
12008 rm -rf conftest*
12009 eval "ac_cv_lib_$ac_lib_var=no"
12010fi
12011rm -f conftest*
12012LIBS="$ac_save_LIBS"
12013
12014fi
12015if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12016 echo "$ac_t""yes" 1>&6
12017
12018 OPENGL_LINK="-lMesaGL"
10f2d63a
VZ
12019
12020else
12021 echo "$ac_t""no" 1>&6
10f2d63a
VZ
12022fi
12023
12024
12025fi
12026
12027
12028else
12029 echo "$ac_t""no" 1>&6
12030wxUSE_OPENGL=0
12031fi
12032
12033fi
12034
12035
12036if test "$wxUSE_GUI" = "yes"; then
12037 cat >> confdefs.h <<\EOF
12038#define wxUSE_GUI 1
12039EOF
12040
12041
12042 else
12043 cat >> confdefs.h <<\EOF
12044#define wxUSE_NOGUI 1
12045EOF
12046
12047fi
12048
12049
12050if test "$wxUSE_UNIX" = "yes"; then
12051 cat >> confdefs.h <<\EOF
12052#define wxUSE_UNIX 1
12053EOF
12054
12055fi
12056
12057
12058if test "$wxUSE_APPLE_IEEE" = "yes"; then
12059 cat >> confdefs.h <<\EOF
12060#define wxUSE_APPLE_IEEE 1
12061EOF
12062
12063fi
12064
10f2d63a
VZ
12065if test "$wxUSE_WAVE" = "yes"; then
12066 cat >> confdefs.h <<\EOF
12067#define wxUSE_WAVE 1
12068EOF
12069
12070fi
12071
12072if test "$wxUSE_FILE" = "yes"; then
12073 cat >> confdefs.h <<\EOF
12074#define wxUSE_FILE 1
12075EOF
12076
12077fi
12078
24528b0c
VS
12079if test "$wxUSE_FILESYSTEM" = "yes"; then
12080 cat >> confdefs.h <<\EOF
12081#define wxUSE_FILESYSTEM 1
12082EOF
12083
12084fi
12085
10f2d63a
VZ
12086if test "$wxUSE_FS_INET" = "yes"; then
12087 cat >> confdefs.h <<\EOF
12088#define wxUSE_FS_INET 1
12089EOF
12090
12091fi
12092
12093if test "$wxUSE_FS_ZIP" = "yes"; then
12094 cat >> confdefs.h <<\EOF
12095#define wxUSE_FS_ZIP 1
12096EOF
12097
12098fi
12099
12100if test "$wxUSE_ZIPSTREAM" = "yes"; then
12101 cat >> confdefs.h <<\EOF
12102#define wxUSE_ZIPSTREAM 1
12103EOF
12104
12105fi
12106
12107if test "$wxUSE_BUSYINFO" = "yes"; then
12108 cat >> confdefs.h <<\EOF
12109#define wxUSE_BUSYINFO 1
12110EOF
12111
12112fi
12113
12114if test "$wxUSE_STD_IOSTREAM" = "yes"; then
12115 cat >> confdefs.h <<\EOF
12116#define wxUSE_STD_IOSTREAM 1
12117EOF
12118
12119fi
12120
12121if test "$wxUSE_TEXTFILE" = "yes"; then
12122 if test "$wxUSE_FILE" != "yes"; then
12123 echo "configure: warning: wxTextFile requires wxFile and it won't be compiled without it" 1>&2
12124 else
12125 cat >> confdefs.h <<\EOF
12126#define wxUSE_TEXTFILE 1
12127EOF
12128
12129 fi
12130fi
12131
12132if test "$wxUSE_CONFIG" = "yes" ; then
12133 if test "$wxUSE_TEXTFILE" != "yes"; then
12134 echo "configure: warning: wxConfig requires wxTextFile and it won't be compiled without it" 1>&2
12135 else
12136 cat >> confdefs.h <<\EOF
12137#define wxUSE_CONFIG 1
12138EOF
12139
12140 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
12141 fi
12142fi
12143
12144if test "$wxUSE_INTL" = "yes" ; then
12145 if test "$wxUSE_FILE" != "yes"; then
12146 echo "configure: warning: I18n code requires wxFile and it won't be compiled without it" 1>&2
12147 else
12148 cat >> confdefs.h <<\EOF
12149#define wxUSE_INTL 1
12150EOF
12151
12152 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
12153 fi
12154fi
12155
12156if test "$wxUSE_LOG" = "yes"; then
12157 cat >> confdefs.h <<\EOF
12158#define wxUSE_LOG 1
12159EOF
12160
12161fi
12162
12163if test "$wxUSE_LONGLONG" = "yes"; then
12164 cat >> confdefs.h <<\EOF
12165#define wxUSE_LONGLONG 1
12166EOF
12167
12168fi
12169
9b33fe02
VZ
12170if test "$wxUSE_PLOT" = "yes"; then
12171 cat >> confdefs.h <<\EOF
12172#define wxUSE_PLOT 1
12173EOF
12174
12175fi
12176
10f2d63a
VZ
12177if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then
12178 cat >> confdefs.h <<\EOF
12179#define wxUSE_DIALUP_MANAGER 1
12180EOF
12181
70f7a477 12182 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
10f2d63a
VZ
12183fi
12184
12185if test "$wxUSE_STREAMS" = "yes" ; then
12186 cat >> confdefs.h <<\EOF
12187#define wxUSE_STREAMS 1
12188EOF
12189
12190fi
12191
10f2d63a 12192
afc31813 12193if test "$wxUSE_TIMEDATE" = "yes"; then
83307f33
VZ
12194 for ac_func in strptime
12195do
12196echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
0dcf9893 12197echo "configure:12198: checking for $ac_func" >&5
83307f33
VZ
12198if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12199 echo $ac_n "(cached) $ac_c" 1>&6
12200else
12201 cat > conftest.$ac_ext <<EOF
0dcf9893 12202#line 12203 "configure"
83307f33
VZ
12203#include "confdefs.h"
12204/* System header to define __stub macros and hopefully few prototypes,
12205 which can conflict with char $ac_func(); below. */
12206#include <assert.h>
12207/* Override any gcc2 internal prototype to avoid an error. */
12208/* We use char because int might match the return type of a gcc2
12209 builtin and then its argument prototype would still apply. */
12210char $ac_func();
12211
12212int main() {
12213
12214/* The GNU C library defines this for functions which it implements
12215 to always fail with ENOSYS. Some functions are actually named
12216 something starting with __ and the normal name is an alias. */
12217#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12218choke me
12219#else
e8482f24 12220$ac_func();
83307f33
VZ
12221#endif
12222
12223; return 0; }
12224EOF
0dcf9893 12225if { (eval echo configure:12226: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
83307f33
VZ
12226 rm -rf conftest*
12227 eval "ac_cv_func_$ac_func=yes"
12228else
12229 echo "configure: failed program was:" >&5
12230 cat conftest.$ac_ext >&5
12231 rm -rf conftest*
12232 eval "ac_cv_func_$ac_func=no"
12233fi
12234rm -f conftest*
12235fi
12236
12237if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12238 echo "$ac_t""yes" 1>&6
12239 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12240 cat >> confdefs.h <<EOF
12241#define $ac_tr_func 1
12242EOF
12243
12244else
12245 echo "$ac_t""no" 1>&6
12246fi
12247done
12248
12249
360d6699 12250 echo $ac_n "checking for timezone variable in <time.h>""... $ac_c" 1>&6
0dcf9893 12251echo "configure:12252: checking for timezone variable in <time.h>" >&5
360d6699
VZ
12252if eval "test \"`echo '$''{'wx_cv_var_timezone'+set}'`\" = set"; then
12253 echo $ac_n "(cached) $ac_c" 1>&6
12254else
12255
12256 cat > conftest.$ac_ext <<EOF
0dcf9893 12257#line 12258 "configure"
360d6699
VZ
12258#include "confdefs.h"
12259
12260 #include <time.h>
12261
12262int main() {
12263
12264 int tz;
12265 tz = __timezone;
12266
12267; return 0; }
12268EOF
0dcf9893 12269if { (eval echo configure:12270: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
360d6699
VZ
12270 rm -rf conftest*
12271
12272 wx_cv_var_timezone=__timezone
12273
12274else
12275 echo "configure: failed program was:" >&5
12276 cat conftest.$ac_ext >&5
12277 rm -rf conftest*
12278
12279 cat > conftest.$ac_ext <<EOF
0dcf9893 12280#line 12281 "configure"
360d6699
VZ
12281#include "confdefs.h"
12282
12283 #include <time.h>
12284
12285int main() {
12286
12287 int tz;
12288 tz = _timezone;
12289
12290; return 0; }
12291EOF
0dcf9893 12292if { (eval echo configure:12293: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
360d6699
VZ
12293 rm -rf conftest*
12294
12295 wx_cv_var_timezone=_timezone
12296
5357c8e8
VZ
12297else
12298 echo "configure: failed program was:" >&5
12299 cat conftest.$ac_ext >&5
12300 rm -rf conftest*
12301
12302 cat > conftest.$ac_ext <<EOF
0dcf9893 12303#line 12304 "configure"
5357c8e8
VZ
12304#include "confdefs.h"
12305
12306 #include <time.h>
12307
12308int main() {
12309
12310 int tz;
12311 tz = timezone;
12312
12313; return 0; }
12314EOF
0dcf9893 12315if { (eval echo configure:12316: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5357c8e8
VZ
12316 rm -rf conftest*
12317
12318 wx_cv_var_timezone=timezone
12319
360d6699
VZ
12320else
12321 echo "configure: failed program was:" >&5
12322 cat conftest.$ac_ext >&5
12323 rm -rf conftest*
12324 { echo "configure: error: no timezone variable" 1>&2; exit 1; }
5357c8e8
VZ
12325
12326fi
12327rm -f conftest*
12328
360d6699
VZ
12329
12330fi
12331rm -f conftest*
12332
12333
12334fi
12335rm -f conftest*
12336
12337
12338fi
12339
12340echo "$ac_t""$wx_cv_var_timezone" 1>&6
12341
12342 cat >> confdefs.h <<EOF
12343#define WX_TIMEZONE $wx_cv_var_timezone
12344EOF
12345
12346
3fcdd07b 12347 for ac_func in localtime
afc31813
VZ
12348do
12349echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
0dcf9893 12350echo "configure:12351: checking for $ac_func" >&5
afc31813
VZ
12351if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12352 echo $ac_n "(cached) $ac_c" 1>&6
12353else
12354 cat > conftest.$ac_ext <<EOF
0dcf9893 12355#line 12356 "configure"
10f2d63a 12356#include "confdefs.h"
afc31813
VZ
12357/* System header to define __stub macros and hopefully few prototypes,
12358 which can conflict with char $ac_func(); below. */
12359#include <assert.h>
12360/* Override any gcc2 internal prototype to avoid an error. */
12361/* We use char because int might match the return type of a gcc2
12362 builtin and then its argument prototype would still apply. */
12363char $ac_func();
12364
10f2d63a 12365int main() {
afc31813
VZ
12366
12367/* The GNU C library defines this for functions which it implements
12368 to always fail with ENOSYS. Some functions are actually named
12369 something starting with __ and the normal name is an alias. */
12370#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12371choke me
12372#else
e8482f24 12373$ac_func();
afc31813
VZ
12374#endif
12375
10f2d63a
VZ
12376; return 0; }
12377EOF
0dcf9893 12378if { (eval echo configure:12379: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a 12379 rm -rf conftest*
afc31813 12380 eval "ac_cv_func_$ac_func=yes"
10f2d63a
VZ
12381else
12382 echo "configure: failed program was:" >&5
12383 cat conftest.$ac_ext >&5
12384 rm -rf conftest*
afc31813
VZ
12385 eval "ac_cv_func_$ac_func=no"
12386fi
12387rm -f conftest*
12388fi
12389
12390if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12391 echo "$ac_t""yes" 1>&6
12392 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12393 cat >> confdefs.h <<EOF
12394#define $ac_tr_func 1
12395EOF
3fcdd07b 12396
afc31813
VZ
12397else
12398 echo "$ac_t""no" 1>&6
12399fi
12400done
12401
12402
0470b1e6
VZ
12403 if test "$ac_cv_func_localtime" = "yes"; then
12404 echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6
0dcf9893 12405echo "configure:12406: checking for tm_gmtoff in struct tm" >&5
0470b1e6
VZ
12406if eval "test \"`echo '$''{'wx_cv_struct_tm_has_gmtoff'+set}'`\" = set"; then
12407 echo $ac_n "(cached) $ac_c" 1>&6
12408else
12409
12410 cat > conftest.$ac_ext <<EOF
0dcf9893 12411#line 12412 "configure"
0470b1e6
VZ
12412#include "confdefs.h"
12413
12414 #include <time.h>
12415
12416int main() {
12417
12418 struct tm tm;
12419 tm.tm_gmtoff++;
12420
12421; return 0; }
12422EOF
0dcf9893 12423if { (eval echo configure:12424: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
0470b1e6
VZ
12424 rm -rf conftest*
12425
f03a98d8 12426 wx_cv_struct_tm_has_gmtoff=yes
0470b1e6
VZ
12427 cat >> confdefs.h <<\EOF
12428#define WX_GMTOFF_IN_TM 1
12429EOF
12430
12431
12432else
12433 echo "configure: failed program was:" >&5
12434 cat conftest.$ac_ext >&5
12435 rm -rf conftest*
12436 wx_cv_struct_tm_has_gmtoff=no
12437
12438fi
12439rm -f conftest*
12440
12441fi
12442
12443echo "$ac_t""$wx_cv_struct_tm_has_gmtoff" 1>&6
3fcdd07b
VZ
12444 fi
12445
12446 for ac_func in gettimeofday ftime
12447do
12448echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
0dcf9893 12449echo "configure:12450: checking for $ac_func" >&5
3fcdd07b
VZ
12450if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12451 echo $ac_n "(cached) $ac_c" 1>&6
12452else
12453 cat > conftest.$ac_ext <<EOF
0dcf9893 12454#line 12455 "configure"
3fcdd07b
VZ
12455#include "confdefs.h"
12456/* System header to define __stub macros and hopefully few prototypes,
12457 which can conflict with char $ac_func(); below. */
12458#include <assert.h>
12459/* Override any gcc2 internal prototype to avoid an error. */
12460/* We use char because int might match the return type of a gcc2
12461 builtin and then its argument prototype would still apply. */
12462char $ac_func();
12463
12464int main() {
12465
12466/* The GNU C library defines this for functions which it implements
12467 to always fail with ENOSYS. Some functions are actually named
12468 something starting with __ and the normal name is an alias. */
12469#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12470choke me
12471#else
e8482f24 12472$ac_func();
3fcdd07b
VZ
12473#endif
12474
12475; return 0; }
12476EOF
0dcf9893 12477if { (eval echo configure:12478: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3fcdd07b
VZ
12478 rm -rf conftest*
12479 eval "ac_cv_func_$ac_func=yes"
12480else
12481 echo "configure: failed program was:" >&5
12482 cat conftest.$ac_ext >&5
12483 rm -rf conftest*
12484 eval "ac_cv_func_$ac_func=no"
12485fi
12486rm -f conftest*
12487fi
12488
12489if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12490 echo "$ac_t""yes" 1>&6
12491 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12492 cat >> confdefs.h <<EOF
12493#define $ac_tr_func 1
12494EOF
12495 break
12496else
12497 echo "$ac_t""no" 1>&6
12498fi
12499done
12500
12501
12502 if test "$ac_cv_func_gettimeofday" = "yes"; then
afc31813 12503 echo $ac_n "checking whether gettimeofday takes two arguments""... $ac_c" 1>&6
0dcf9893 12504echo "configure:12505: checking whether gettimeofday takes two arguments" >&5
afc31813
VZ
12505if eval "test \"`echo '$''{'wx_cv_func_gettimeofday_has_2_args'+set}'`\" = set"; then
12506 echo $ac_n "(cached) $ac_c" 1>&6
12507else
12508
12509
12510 ac_ext=C
12511# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12512ac_cpp='$CXXCPP $CPPFLAGS'
12513ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12514ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12515cross_compiling=$ac_cv_prog_cxx_cross
12516
12517
12518 cat > conftest.$ac_ext <<EOF
0dcf9893 12519#line 12520 "configure"
10f2d63a 12520#include "confdefs.h"
afc31813
VZ
12521
12522 #include <sys/time.h>
12523 #include <unistd.h>
12524
10f2d63a 12525int main() {
afc31813
VZ
12526
12527 struct timeval tv;
12528 struct timezone tz;
12529 gettimeofday(&tv, &tz);
12530
10f2d63a
VZ
12531; return 0; }
12532EOF
0dcf9893 12533if { (eval echo configure:12534: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10f2d63a 12534 rm -rf conftest*
afc31813 12535 wx_cv_func_gettimeofday_has_2_args=yes
10f2d63a
VZ
12536else
12537 echo "configure: failed program was:" >&5
12538 cat conftest.$ac_ext >&5
12539 rm -rf conftest*
12540 cat > conftest.$ac_ext <<EOF
0dcf9893 12541#line 12542 "configure"
10f2d63a 12542#include "confdefs.h"
afc31813
VZ
12543
12544 #include <sys/time.h>
12545 #include <unistd.h>
12546
10f2d63a 12547int main() {
afc31813
VZ
12548
12549 struct timeval tv;
12550 gettimeofday(&tv);
12551
10f2d63a
VZ
12552; return 0; }
12553EOF
0dcf9893 12554if { (eval echo configure:12555: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10f2d63a 12555 rm -rf conftest*
afc31813 12556 wx_cv_func_gettimeofday_has_2_args=no
10f2d63a
VZ
12557else
12558 echo "configure: failed program was:" >&5
12559 cat conftest.$ac_ext >&5
12560 rm -rf conftest*
afc31813
VZ
12561 wx_cv_func_gettimeofday_has_2_args=unknown
12562
10f2d63a
VZ
12563fi
12564rm -f conftest*
afc31813 12565
10f2d63a
VZ
12566fi
12567rm -f conftest*
afc31813 12568 ac_ext=c
10f2d63a
VZ
12569# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12570ac_cpp='$CPP $CPPFLAGS'
12571ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12572ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12573cross_compiling=$ac_cv_prog_cc_cross
12574
afc31813
VZ
12575
12576fi
12577
12578echo "$ac_t""$wx_cv_func_gettimeofday_has_2_args" 1>&6
c63c7106 12579
afc31813
VZ
12580 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
12581 cat >> confdefs.h <<\EOF
12582#define WX_GETTIMEOFDAY_NO_TZ 1
12583EOF
12584
12585 fi
12586 fi
12587
12588 cat >> confdefs.h <<\EOF
12589#define wxUSE_TIMEDATE 1
12590EOF
12591
12592 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
12593fi
12594
12595
b089607b
VZ
12596if test "$TOOLKIT" != "MSW"; then
12597
afc31813 12598if test "$wxUSE_SOCKETS" = "yes"; then
c63c7106 12599 echo $ac_n "checking for socket""... $ac_c" 1>&6
0dcf9893 12600echo "configure:12601: checking for socket" >&5
c63c7106
VZ
12601if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
12602 echo $ac_n "(cached) $ac_c" 1>&6
12603else
12604 cat > conftest.$ac_ext <<EOF
0dcf9893 12605#line 12606 "configure"
c63c7106
VZ
12606#include "confdefs.h"
12607/* System header to define __stub macros and hopefully few prototypes,
12608 which can conflict with char socket(); below. */
12609#include <assert.h>
12610/* Override any gcc2 internal prototype to avoid an error. */
12611/* We use char because int might match the return type of a gcc2
12612 builtin and then its argument prototype would still apply. */
12613char socket();
12614
12615int main() {
12616
12617/* The GNU C library defines this for functions which it implements
12618 to always fail with ENOSYS. Some functions are actually named
12619 something starting with __ and the normal name is an alias. */
12620#if defined (__stub_socket) || defined (__stub___socket)
12621choke me
12622#else
e8482f24 12623socket();
c63c7106
VZ
12624#endif
12625
12626; return 0; }
12627EOF
0dcf9893 12628if { (eval echo configure:12629: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
c63c7106
VZ
12629 rm -rf conftest*
12630 eval "ac_cv_func_socket=yes"
12631else
12632 echo "configure: failed program was:" >&5
12633 cat conftest.$ac_ext >&5
12634 rm -rf conftest*
12635 eval "ac_cv_func_socket=no"
12636fi
12637rm -f conftest*
12638fi
12639
12640if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
12641 echo "$ac_t""yes" 1>&6
12642 :
12643else
12644 echo "$ac_t""no" 1>&6
12645echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
0dcf9893 12646echo "configure:12647: checking for socket in -lsocket" >&5
c63c7106
VZ
12647ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
12648if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12649 echo $ac_n "(cached) $ac_c" 1>&6
12650else
12651 ac_save_LIBS="$LIBS"
12652LIBS="-lsocket $LIBS"
12653cat > conftest.$ac_ext <<EOF
0dcf9893 12654#line 12655 "configure"
c63c7106
VZ
12655#include "confdefs.h"
12656/* Override any gcc2 internal prototype to avoid an error. */
12657/* We use char because int might match the return type of a gcc2
12658 builtin and then its argument prototype would still apply. */
12659char socket();
12660
12661int main() {
12662socket()
12663; return 0; }
12664EOF
0dcf9893 12665if { (eval echo configure:12666: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
c63c7106
VZ
12666 rm -rf conftest*
12667 eval "ac_cv_lib_$ac_lib_var=yes"
12668else
12669 echo "configure: failed program was:" >&5
12670 cat conftest.$ac_ext >&5
12671 rm -rf conftest*
12672 eval "ac_cv_lib_$ac_lib_var=no"
12673fi
12674rm -f conftest*
12675LIBS="$ac_save_LIBS"
12676
12677fi
12678if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12679 echo "$ac_t""yes" 1>&6
12680 INET_LINK="$INET_LINK -lsocket"
c63c7106
VZ
12681else
12682 echo "$ac_t""no" 1>&6
afc31813
VZ
12683
12684 echo "configure: warning: socket library not found - sockets will be disabled" 1>&2
12685 wxUSE_SOCKETS=no
12686
12687
c63c7106
VZ
12688fi
12689
12690
12691fi
12692
10f2d63a
VZ
12693fi
12694
b089607b
VZ
12695fi
12696
afc31813 12697if test "$wxUSE_SOCKETS" = "yes" ; then
51a9faba 12698 echo $ac_n "checking what is the type of the third argument of getsockname""... $ac_c" 1>&6
0dcf9893 12699echo "configure:12700: checking what is the type of the third argument of getsockname" >&5
51a9faba
VZ
12700if eval "test \"`echo '$''{'wx_cv_type_getsockname3'+set}'`\" = set"; then
12701 echo $ac_n "(cached) $ac_c" 1>&6
12702else
12703
12704
12705 ac_ext=C
afc31813
VZ
12706# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12707ac_cpp='$CXXCPP $CPPFLAGS'
12708ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12709ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12710cross_compiling=$ac_cv_prog_cxx_cross
12711
51a9faba
VZ
12712
12713 cat > conftest.$ac_ext <<EOF
0dcf9893 12714#line 12715 "configure"
afc31813 12715#include "confdefs.h"
51a9faba 12716
3ace2e6d 12717 #include <sys/types.h>
51a9faba
VZ
12718 #include <sys/socket.h>
12719
afc31813 12720int main() {
51a9faba
VZ
12721
12722 socklen_t len;
12723 getsockname(0, 0, &len);
12724
afc31813
VZ
12725; return 0; }
12726EOF
0dcf9893 12727if { (eval echo configure:12728: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
afc31813 12728 rm -rf conftest*
51a9faba 12729 wx_cv_type_getsockname3=socklen_t
afc31813
VZ
12730else
12731 echo "configure: failed program was:" >&5
12732 cat conftest.$ac_ext >&5
12733 rm -rf conftest*
12734 cat > conftest.$ac_ext <<EOF
0dcf9893 12735#line 12736 "configure"
afc31813 12736#include "confdefs.h"
51a9faba 12737
3ace2e6d 12738 #include <sys/types.h>
51a9faba
VZ
12739 #include <sys/socket.h>
12740
afc31813 12741int main() {
51a9faba
VZ
12742
12743 size_t len;
12744 getsockname(0, 0, &len);
12745
afc31813
VZ
12746; return 0; }
12747EOF
0dcf9893 12748if { (eval echo configure:12749: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
afc31813 12749 rm -rf conftest*
51a9faba 12750 wx_cv_type_getsockname3=size_t
afc31813
VZ
12751else
12752 echo "configure: failed program was:" >&5
12753 cat conftest.$ac_ext >&5
12754 rm -rf conftest*
12755 cat > conftest.$ac_ext <<EOF
0dcf9893 12756#line 12757 "configure"
afc31813 12757#include "confdefs.h"
51a9faba 12758
3ace2e6d 12759 #include <sys/types.h>
51a9faba
VZ
12760 #include <sys/socket.h>
12761
afc31813 12762int main() {
51a9faba
VZ
12763
12764 int len;
12765 getsockname(0, 0, &len);
12766
afc31813
VZ
12767; return 0; }
12768EOF
0dcf9893 12769if { (eval echo configure:12770: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
afc31813 12770 rm -rf conftest*
51a9faba 12771 wx_cv_type_getsockname3=int
afc31813
VZ
12772else
12773 echo "configure: failed program was:" >&5
12774 cat conftest.$ac_ext >&5
3ace2e6d
SN
12775 rm -rf conftest*
12776 wx_cv_type_getsockname3=unknown
12777
afc31813
VZ
12778fi
12779rm -f conftest*
51a9faba 12780
afc31813
VZ
12781fi
12782rm -f conftest*
51a9faba 12783
afc31813
VZ
12784fi
12785rm -f conftest*
51a9faba
VZ
12786
12787 ac_ext=c
afc31813
VZ
12788# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12789ac_cpp='$CPP $CPPFLAGS'
12790ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12791ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12792cross_compiling=$ac_cv_prog_cc_cross
12793
51a9faba
VZ
12794
12795fi
12796
12797echo "$ac_t""$wx_cv_type_getsockname3" 1>&6
12798
12799 if test "$wx_cv_type_getsockname3" = "unknown"; then
12800 wxUSE_SOCKETS=no
12801 echo "configure: warning: Couldn't find socklen_t synonym for this system" 1>&2
12802 else
12803 cat >> confdefs.h <<EOF
12804#define SOCKLEN_T $wx_cv_type_getsockname3
12805EOF
12806
12807 fi
12808fi
afc31813 12809
51a9faba 12810if test "$wxUSE_SOCKETS" = "yes" ; then
afc31813
VZ
12811 cat >> confdefs.h <<\EOF
12812#define wxUSE_SOCKETS 1
12813EOF
12814
70f7a477 12815 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
afc31813
VZ
12816 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS protocol"
12817fi
12818
10f2d63a 12819
b089607b
VZ
12820if test "$TOOLKIT" != "MSW"; then
12821
10f2d63a
VZ
12822if test "$wxUSE_JOYSTICK" = 1; then
12823 for ac_hdr in linux/joystick.h
12824do
12825ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12826echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
0dcf9893 12827echo "configure:12828: checking for $ac_hdr" >&5
10f2d63a
VZ
12828if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12829 echo $ac_n "(cached) $ac_c" 1>&6
12830else
12831 cat > conftest.$ac_ext <<EOF
0dcf9893 12832#line 12833 "configure"
10f2d63a
VZ
12833#include "confdefs.h"
12834#include <$ac_hdr>
12835EOF
12836ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
0dcf9893 12837{ (eval echo configure:12838: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
12838ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12839if test -z "$ac_err"; then
12840 rm -rf conftest*
12841 eval "ac_cv_header_$ac_safe=yes"
12842else
12843 echo "$ac_err" >&5
12844 echo "configure: failed program was:" >&5
12845 cat conftest.$ac_ext >&5
12846 rm -rf conftest*
12847 eval "ac_cv_header_$ac_safe=no"
12848fi
12849rm -f conftest*
12850fi
12851if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12852 echo "$ac_t""yes" 1>&6
12853 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12854 cat >> confdefs.h <<EOF
12855#define $ac_tr_hdr 1
12856EOF
12857
12858else
12859 echo "$ac_t""no" 1>&6
12860fi
12861done
12862
b089607b
VZ
12863 if test "$ac_cv_header_linux_joystick_h" != "yes"; then
12864 wxUSE_JOYSTICK=0
12865 echo "configure: warning: Joystick not supported yb this system" 1>&2
12866 fi
12867fi
12868
12869fi
12870
12871if test "$wxUSE_JOYSTICK" = 1; then
10f2d63a
VZ
12872 cat >> confdefs.h <<\EOF
12873#define wxUSE_JOYSTICK 1
12874EOF
12875
12876 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
10f2d63a
VZ
12877fi
12878
12879
b089607b
VZ
12880if test "$TOOLKIT" != "MSW"; then
12881
10f2d63a
VZ
12882HAVE_DL_FUNCS=0
12883HAVE_SHL_FUNCS=0
12884if test "$wxUSE_DYNLIB_CLASS" = "yes"; then
12885 for ac_func in dlopen
12886do
12887echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
0dcf9893 12888echo "configure:12889: checking for $ac_func" >&5
10f2d63a
VZ
12889if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12890 echo $ac_n "(cached) $ac_c" 1>&6
12891else
12892 cat > conftest.$ac_ext <<EOF
0dcf9893 12893#line 12894 "configure"
10f2d63a
VZ
12894#include "confdefs.h"
12895/* System header to define __stub macros and hopefully few prototypes,
12896 which can conflict with char $ac_func(); below. */
12897#include <assert.h>
12898/* Override any gcc2 internal prototype to avoid an error. */
12899/* We use char because int might match the return type of a gcc2
12900 builtin and then its argument prototype would still apply. */
12901char $ac_func();
12902
12903int main() {
12904
12905/* The GNU C library defines this for functions which it implements
12906 to always fail with ENOSYS. Some functions are actually named
12907 something starting with __ and the normal name is an alias. */
12908#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12909choke me
12910#else
e8482f24 12911$ac_func();
10f2d63a
VZ
12912#endif
12913
12914; return 0; }
12915EOF
0dcf9893 12916if { (eval echo configure:12917: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
12917 rm -rf conftest*
12918 eval "ac_cv_func_$ac_func=yes"
12919else
12920 echo "configure: failed program was:" >&5
12921 cat conftest.$ac_ext >&5
12922 rm -rf conftest*
12923 eval "ac_cv_func_$ac_func=no"
12924fi
12925rm -f conftest*
12926fi
12927
12928if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12929 echo "$ac_t""yes" 1>&6
12930 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12931 cat >> confdefs.h <<EOF
12932#define $ac_tr_func 1
12933EOF
12934
12935 cat >> confdefs.h <<\EOF
12936#define HAVE_DLOPEN 1
12937EOF
12938
12939 HAVE_DL_FUNCS=1
12940
12941else
12942 echo "$ac_t""no" 1>&6
12943echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
0dcf9893 12944echo "configure:12945: checking for dlopen in -ldl" >&5
10f2d63a
VZ
12945ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
12946if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12947 echo $ac_n "(cached) $ac_c" 1>&6
12948else
12949 ac_save_LIBS="$LIBS"
12950LIBS="-ldl $LIBS"
12951cat > conftest.$ac_ext <<EOF
0dcf9893 12952#line 12953 "configure"
10f2d63a
VZ
12953#include "confdefs.h"
12954/* Override any gcc2 internal prototype to avoid an error. */
12955/* We use char because int might match the return type of a gcc2
12956 builtin and then its argument prototype would still apply. */
12957char dlopen();
12958
12959int main() {
12960dlopen()
12961; return 0; }
12962EOF
0dcf9893 12963if { (eval echo configure:12964: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
12964 rm -rf conftest*
12965 eval "ac_cv_lib_$ac_lib_var=yes"
12966else
12967 echo "configure: failed program was:" >&5
12968 cat conftest.$ac_ext >&5
12969 rm -rf conftest*
12970 eval "ac_cv_lib_$ac_lib_var=no"
12971fi
12972rm -f conftest*
12973LIBS="$ac_save_LIBS"
12974
12975fi
12976if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12977 echo "$ac_t""yes" 1>&6
12978
12979 cat >> confdefs.h <<\EOF
12980#define HAVE_DLOPEN 1
12981EOF
12982
12983 HAVE_DL_FUNCS=1
12984 LIBS="$LIBS -ldl"
12985
12986else
12987 echo "$ac_t""no" 1>&6
12988
12989 for ac_func in shl_load
12990do
12991echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
0dcf9893 12992echo "configure:12993: checking for $ac_func" >&5
10f2d63a
VZ
12993if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12994 echo $ac_n "(cached) $ac_c" 1>&6
12995else
12996 cat > conftest.$ac_ext <<EOF
0dcf9893 12997#line 12998 "configure"
10f2d63a
VZ
12998#include "confdefs.h"
12999/* System header to define __stub macros and hopefully few prototypes,
13000 which can conflict with char $ac_func(); below. */
13001#include <assert.h>
13002/* Override any gcc2 internal prototype to avoid an error. */
13003/* We use char because int might match the return type of a gcc2
13004 builtin and then its argument prototype would still apply. */
13005char $ac_func();
13006
13007int main() {
13008
13009/* The GNU C library defines this for functions which it implements
13010 to always fail with ENOSYS. Some functions are actually named
13011 something starting with __ and the normal name is an alias. */
13012#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13013choke me
13014#else
e8482f24 13015$ac_func();
10f2d63a
VZ
13016#endif
13017
13018; return 0; }
13019EOF
0dcf9893 13020if { (eval echo configure:13021: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
13021 rm -rf conftest*
13022 eval "ac_cv_func_$ac_func=yes"
13023else
13024 echo "configure: failed program was:" >&5
13025 cat conftest.$ac_ext >&5
13026 rm -rf conftest*
13027 eval "ac_cv_func_$ac_func=no"
13028fi
13029rm -f conftest*
13030fi
13031
13032if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13033 echo "$ac_t""yes" 1>&6
13034 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13035 cat >> confdefs.h <<EOF
13036#define $ac_tr_func 1
13037EOF
13038
13039 cat >> confdefs.h <<\EOF
13040#define HAVE_SHL_LOAD 1
13041EOF
13042
13043 HAVE_SHL_FUNCS=1
13044
13045else
13046 echo "$ac_t""no" 1>&6
13047fi
13048done
13049
13050
13051fi
13052
13053
13054fi
13055done
13056
13057
13058 if test "$HAVE_DL_FUNCS" = 0; then
13059 if test "$HAVE_SHL_FUNCS" = 0; then
13060 if test "$USE_UNIX" = 1; then
b12915c1 13061 echo "configure: warning: Missing dynamic loading support, several features will be disabled" 1>&2
10f2d63a
VZ
13062 wxUSE_DYNLIB_CLASS=no
13063 else
b12915c1 13064 echo "configure: warning: Assuming wxLibrary class works on this platform" 1>&2
10f2d63a
VZ
13065 fi
13066 fi
13067 fi
13068fi
13069
b089607b
VZ
13070fi
13071
10f2d63a 13072if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
b12915c1 13073 cat >> confdefs.h <<\EOF
10f2d63a
VZ
13074#define wxUSE_DYNLIB_CLASS 1
13075EOF
13076
b12915c1
VZ
13077else
13078 wxUSE_ODBC=no
13079 wxUSE_SERIAL=no
10f2d63a
VZ
13080fi
13081
13082
13083if test "$wxUSE_UNICODE" = "yes" ; then
13084 cat >> confdefs.h <<\EOF
13085#define wxUSE_UNICODE 1
13086EOF
13087
13088fi
13089
13090if test "$wxUSE_WCSRTOMBS" = "yes" ; then
13091 cat >> confdefs.h <<\EOF
13092#define wxUSE_WCSRTOMBS 1
13093EOF
13094
13095fi
13096
13097if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
13098 cat >> confdefs.h <<\EOF
13099#define wxUSE_EXPERIMENTAL_PRINTF 1
13100EOF
13101
13102fi
13103
13104
b12915c1
VZ
13105if test "$wxUSE_SERIAL" = "yes" ; then
13106 cat >> confdefs.h <<\EOF
13107#define wxUSE_SERIAL 1
13108EOF
13109
13110fi
13111
13112
10f2d63a
VZ
13113IODBC_C_SRC=""
13114if test "$wxUSE_ODBC" = "yes" ; then
13115 cat >> confdefs.h <<\EOF
13116#define wxUSE_ODBC 1
13117EOF
13118
13119 WXODBCFLAG="-D_IODBC_"
13120 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
13121 IODBCOBJS="\$(IODBC_OBJS)"
13122else
13123 IODBCOBJS=
13124fi
13125
13126
13127if test "$wxUSE_POSTSCRIPT" = "yes" ; then
13128 cat >> confdefs.h <<\EOF
13129#define wxUSE_POSTSCRIPT 1
13130EOF
13131
13132fi
13133
13134cat >> confdefs.h <<\EOF
13135#define wxUSE_AFM_FOR_POSTSCRIPT 1
13136EOF
13137
13138
13139cat >> confdefs.h <<\EOF
13140#define wxUSE_NORMALIZED_PS_FONTS 1
13141EOF
13142
13143
13144
13145if test "$wxUSE_CONSTRAINTS" = "yes"; then
13146 cat >> confdefs.h <<\EOF
13147#define wxUSE_CONSTRAINTS 1
13148EOF
13149
13150 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
13151fi
13152
13153if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
13154 cat >> confdefs.h <<\EOF
13155#define wxUSE_MDI_ARCHITECTURE 1
13156EOF
13157
13158 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
13159fi
13160
13161if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
13162 cat >> confdefs.h <<\EOF
13163#define wxUSE_DOC_VIEW_ARCHITECTURE 1
13164EOF
13165
13166 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
13167 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
13168 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
13169 fi
13170fi
13171
13172if test "$wxUSE_HELP" = "yes"; then
13173 cat >> confdefs.h <<\EOF
13174#define wxUSE_HELP 1
13175EOF
13176
13177 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
13178fi
13179
13180if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
13181 if test "$wxUSE_CONSTRAINTS" != "yes"; then
13182 echo "configure: warning: Printing support cannot be used without constraints so it won't be compiled without it" 1>&2
13183 else
13184 cat >> confdefs.h <<\EOF
13185#define wxUSE_PRINTING_ARCHITECTURE 1
13186EOF
13187
13188 fi
13189 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
13190fi
13191
13192if test "$wxUSE_PROLOGIO" = "yes" ; then
13193 cat >> confdefs.h <<\EOF
13194#define wxUSE_PROLOGIO 1
13195EOF
13196
13197fi
13198
13199if test "$wxUSE_RESOURCES" = "yes" ; then
13200 if test "$wxUSE_PROLOGIO" = "yes" ; then
13201 cat >> confdefs.h <<\EOF
13202#define wxUSE_RESOURCES 1
13203EOF
13204
13205 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS resource"
13206 else
13207 echo "configure: warning: wxWindows ressource system requires PrologIO and can't be compiled without it." 1>&2
13208 fi
13209fi
13210
13211if test "$wxUSE_X_RESOURCES" = "yes"; then
13212 cat >> confdefs.h <<\EOF
13213#define wxUSE_X_RESOURCES 1
13214EOF
13215
13216fi
13217
13218
13219if test "$wxUSE_IPC" = "yes"; then
13220 cat >> confdefs.h <<\EOF
13221#define wxUSE_IPC 1
13222EOF
13223
13224fi
13225
13226if test "$wxUSE_CLIPBOARD" = "yes"; then
13227 cat >> confdefs.h <<\EOF
13228#define wxUSE_CLIPBOARD 1
13229EOF
13230
13231fi
13232
13233if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
13234 if test "$wxUSE_GTK" = 1; then
13235 if test "$WXGTK12" != 1; then
13236 echo "configure: warning: Drag and drop is only supported under GTK+ 1.2" 1>&2
13237 wxUSE_DRAG_AND_DROP=no
13238 fi
13239 fi
13240
13241 if test "$wxUSE_MOTIF" = 1; then
13242 echo "configure: warning: Drag and drop is not yet supported under Motif" 1>&2
13243 wxUSE_DRAG_AND_DROP=no
13244 fi
13245
13246 if test "$USE_WIN32" = 1; then
13247 for ac_hdr in ole2.h
13248do
13249ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13250echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
0dcf9893 13251echo "configure:13252: checking for $ac_hdr" >&5
10f2d63a
VZ
13252if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
13253 echo $ac_n "(cached) $ac_c" 1>&6
13254else
13255 cat > conftest.$ac_ext <<EOF
0dcf9893 13256#line 13257 "configure"
10f2d63a
VZ
13257#include "confdefs.h"
13258#include <$ac_hdr>
13259EOF
13260ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
0dcf9893 13261{ (eval echo configure:13262: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
13262ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13263if test -z "$ac_err"; then
13264 rm -rf conftest*
13265 eval "ac_cv_header_$ac_safe=yes"
13266else
13267 echo "$ac_err" >&5
13268 echo "configure: failed program was:" >&5
13269 cat conftest.$ac_ext >&5
13270 rm -rf conftest*
13271 eval "ac_cv_header_$ac_safe=no"
13272fi
13273rm -f conftest*
13274fi
13275if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13276 echo "$ac_t""yes" 1>&6
13277 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13278 cat >> confdefs.h <<EOF
13279#define $ac_tr_hdr 1
13280EOF
13281
13282else
13283 echo "$ac_t""no" 1>&6
13284fi
13285done
13286
13287 if test "x$HAVE_OLE2_H" = x ; then
13288 echo "configure: warning: Drag and drop disabled because OLE headers not found" 1>&2
13289 wxUSE_DRAG_AND_DROP=no
13290 fi
13291 fi
13292
13293 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
13294 cat >> confdefs.h <<\EOF
13295#define wxUSE_DRAG_AND_DROP 1
13296EOF
13297
13298 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
13299 fi
13300
13301fi
13302
13303if test "$wxUSE_SPLINES" = "yes" ; then
13304 cat >> confdefs.h <<\EOF
13305#define wxUSE_SPLINES 1
13306EOF
13307
13308fi
13309
13310
13311if test "$wxUSE_ACCEL" = "yes"; then
13312 cat >> confdefs.h <<\EOF
13313#define wxUSE_ACCEL 1
13314EOF
13315
13316fi
13317
13318if test "$wxUSE_CARET" = "yes"; then
13319 cat >> confdefs.h <<\EOF
13320#define wxUSE_CARET 1
13321EOF
13322
13323 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
13324fi
13325
13326if test "$wxUSE_COMBOBOX" = "yes"; then
13327 cat >> confdefs.h <<\EOF
13328#define wxUSE_COMBOBOX 1
13329EOF
13330
13331fi
13332
13333if test "$wxUSE_CHOICE" = "yes"; then
13334 cat >> confdefs.h <<\EOF
13335#define wxUSE_CHOICE 1
13336EOF
13337
13338fi
13339
13340if test "$wxUSE_BMPBUTTON" = "yes"; then
13341 cat >> confdefs.h <<\EOF
13342#define wxUSE_BMPBUTTON 1
13343EOF
13344
13345fi
13346
13347if test "$wxUSE_CHECKBOX" = "yes"; then
13348 cat >> confdefs.h <<\EOF
13349#define wxUSE_CHECKBOX 1
13350EOF
13351
13352fi
13353
13354if test "$wxUSE_CHECKLST" = "yes"; then
13355 cat >> confdefs.h <<\EOF
13356#define wxUSE_CHECKLISTBOX 1
13357EOF
13358
13359 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
13360fi
13361
13362if test "$wxUSE_GAUGE" = "yes"; then
13363 cat >> confdefs.h <<\EOF
13364#define wxUSE_GAUGE 1
13365EOF
13366
13367fi
13368
d6a55c4b
VZ
13369if test "$wxUSE_NEW_GRID" = "yes"; then
13370 wxUSE_GRID="yes"
10f2d63a 13371 cat >> confdefs.h <<\EOF
d6a55c4b 13372#define wxUSE_NEW_GRID 1
10f2d63a
VZ
13373EOF
13374
d6a55c4b 13375 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS newgrid"
10f2d63a
VZ
13376fi
13377
d6a55c4b 13378if test "$wxUSE_GRID" = "yes"; then
10f2d63a 13379 cat >> confdefs.h <<\EOF
d6a55c4b 13380#define wxUSE_GRID 1
10f2d63a
VZ
13381EOF
13382
d6a55c4b 13383 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
10f2d63a
VZ
13384fi
13385
13386if test "$wxUSE_IMAGLIST" = "yes"; then
13387 cat >> confdefs.h <<\EOF
13388#define wxUSE_IMAGLIST 1
13389EOF
13390
13391fi
13392
13393if test "$wxUSE_LISTBOX" = "yes"; then
13394 cat >> confdefs.h <<\EOF
13395#define wxUSE_LISTBOX 1
13396EOF
13397
13398fi
13399
13400if test "$wxUSE_LISTCTRL" = "yes"; then
13401 if test "$wxUSE_IMAGLIST" = "yes"; then
13402 cat >> confdefs.h <<\EOF
13403#define wxUSE_LISTCTRL 1
13404EOF
13405
13406 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
13407 else
13408 echo "configure: warning: wxListCtrl requires wxImageList and won't be compiled without it" 1>&2
13409 fi
13410fi
13411
13412if test "$wxUSE_NOTEBOOK" = "yes"; then
13413 cat >> confdefs.h <<\EOF
13414#define wxUSE_NOTEBOOK 1
13415EOF
13416
13417 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
13418fi
13419
13420if test "$wxUSE_RADIOBOX" = "yes"; then
13421 cat >> confdefs.h <<\EOF
13422#define wxUSE_RADIOBOX 1
13423EOF
13424
13425fi
13426
13427if test "$wxUSE_RADIOBTN" = "yes"; then
13428 cat >> confdefs.h <<\EOF
13429#define wxUSE_RADIOBTN 1
13430EOF
13431
13432fi
13433
13434if test "$wxUSE_SASH" = "yes"; then
13435 cat >> confdefs.h <<\EOF
13436#define wxUSE_SASH 1
13437EOF
13438
13439 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
13440fi
13441
13442if test "$wxUSE_SCROLLBAR" = "yes"; then
13443 cat >> confdefs.h <<\EOF
13444#define wxUSE_SCROLLBAR 1
13445EOF
13446
741a9306 13447 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
10f2d63a
VZ
13448fi
13449
13450if test "$wxUSE_SLIDER" = "yes"; then
13451 cat >> confdefs.h <<\EOF
13452#define wxUSE_SLIDER 1
13453EOF
13454
13455fi
13456
13457if test "$wxUSE_SPINBTN" = "yes"; then
13458 cat >> confdefs.h <<\EOF
13459#define wxUSE_SPINBTN 1
13460EOF
13461
13462fi
13463
56cfaa52
RR
13464if test "$wxUSE_SPINCTRL" = "yes"; then
13465 cat >> confdefs.h <<\EOF
13466#define wxUSE_SPINCTRL 1
13467EOF
13468
13469fi
13470
10f2d63a
VZ
13471if test "$wxUSE_SPLITTER" = "yes"; then
13472 cat >> confdefs.h <<\EOF
13473#define wxUSE_SPLITTER 1
13474EOF
13475
13476 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
13477fi
13478
13479if test "$wxUSE_STATBMP" = "yes"; then
13480 cat >> confdefs.h <<\EOF
13481#define wxUSE_STATBMP 1
13482EOF
13483
13484fi
13485
13486if test "$wxUSE_STATBOX" = "yes"; then
13487 cat >> confdefs.h <<\EOF
13488#define wxUSE_STATBOX 1
13489EOF
13490
13491fi
13492
13493if test "$wxUSE_STATLINE" = "yes"; then
13494 if test "$wxUSE_WINE" = 1 ; then
13495 echo "configure: warning: wxStaticLine is not supported under WINE" 1>&2
13496 else
13497 cat >> confdefs.h <<\EOF
13498#define wxUSE_STATLINE 1
13499EOF
13500
13501 fi
13502fi
13503
13504if test "$wxUSE_STATUSBAR" = "yes"; then
13505 cat >> confdefs.h <<\EOF
13506#define wxUSE_STATUSBAR 1
13507EOF
13508
2286341c
VZ
13509
13510 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
10f2d63a
VZ
13511fi
13512
13513if test "$wxUSE_TABDIALOG" = "yes"; then
13514 cat >> confdefs.h <<\EOF
13515#define wxUSE_TAB_DIALOG 1
13516EOF
13517
13518 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab"
13519fi
13520
360d6699
VZ
13521if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
13522 cat >> confdefs.h <<\EOF
13523#define wxUSE_TOOLBAR_SIMPLE 1
13524EOF
13525
13526 wxUSE_TOOLBAR="yes"
13527fi
13528
10f2d63a
VZ
13529if test "$wxUSE_TOOLBAR" = "yes"; then
13530 cat >> confdefs.h <<\EOF
13531#define wxUSE_TOOLBAR 1
13532EOF
13533
360d6699
VZ
13534
13535 if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
13536 wxUSE_TOOLBAR_NATIVE="yes"
13537 fi
13538
10f2d63a
VZ
13539 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
13540fi
13541
360d6699
VZ
13542if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
13543 cat >> confdefs.h <<\EOF
13544#define wxUSE_TOOLBAR_NATIVE 1
13545EOF
13546
13547fi
13548
10f2d63a
VZ
13549if test "$wxUSE_TOOLTIPS" = "yes"; then
13550 if test "$wxUSE_MOTIF" = 1; then
13551 echo "configure: warning: wxTooltip not supported yet under Motif" 1>&2
13552 else
13553 if test "$wxUSE_WINE" = 1; then
13554 echo "configure: warning: wxTooltip not supported under WINE" 1>&2
13555 else
13556 cat >> confdefs.h <<\EOF
13557#define wxUSE_TOOLTIPS 1
13558EOF
13559
13560 fi
13561 fi
13562fi
13563
13564if test "$wxUSE_TREECTRL" = "yes"; then
13565 if test "$wxUSE_IMAGLIST" = "yes"; then
13566 cat >> confdefs.h <<\EOF
13567#define wxUSE_TREECTRL 1
13568EOF
13569
13570 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
13571 else
13572 echo "configure: warning: wxTreeCtrl requires wxImageList and won't be compiled without it" 1>&2
13573 fi
13574fi
13575
13576
13577
13578if test "$wxUSE_METAFILE" = "yes"; then
13579 cat >> confdefs.h <<\EOF
13580#define wxUSE_METAFILE 1
13581EOF
13582
13583fi
13584
13585if test "$wxUSE_DIRDLG" = "yes"; then
13586 if test "$wxUSE_CONSTRAINTS" != "yes"; then
13587 echo "configure: warning: wxDirDialog requires constraints so it won't be compiled without them" 1>&2
13588 else
13589 if test "$wxUSE_TREECTRL" != "yes"; then
13590 echo "configure: warning: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" 1>&2
13591 else
13592 cat >> confdefs.h <<\EOF
13593#define wxUSE_DIRDLG 1
13594EOF
13595
13596 fi
13597 fi
13598fi
13599
13600if test "$wxUSE_TEXTDLG" = "yes"; then
13601 cat >> confdefs.h <<\EOF
13602#define wxUSE_TEXTDLG 1
13603EOF
13604
13605fi
13606
13607if test "$wxUSE_STARTUP_TIPS" = "yes"; then
13608 if test "$wxUSE_CONSTRAINTS" != "yes"; then
13609 echo "configure: warning: Startup tips requires constraints and won't be compiled without them" 1>&2
13610 else
13611 cat >> confdefs.h <<\EOF
13612#define wxUSE_STARTUP_TIPS 1
13613EOF
13614
13615 fi
13616fi
13617
13618if test "$wxUSE_PROGRESSDLG" = "yes"; then
13619 if test "$wxUSE_CONSTRAINTS" != "yes"; then
13620 echo "configure: warning: wxProgressDialog requires constraints so it won't be compiled without them" 1>&2
13621 else
13622 cat >> confdefs.h <<\EOF
13623#define wxUSE_PROGRESSDLG 1
13624EOF
13625
13626 fi
13627fi
13628
13629if test "$wxUSE_MINIFRAME" = "yes"; then
13630 cat >> confdefs.h <<\EOF
13631#define wxUSE_MINIFRAME 1
13632EOF
13633
13634 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
13635fi
13636
13637if test "$wxUSE_HTML" = "yes"; then
13638 cat >> confdefs.h <<\EOF
13639#define wxUSE_HTML 1
13640EOF
13641
13642 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html"
13643 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS html"
13644fi
13645
13646if test "$wxUSE_VALIDATORS" = "yes"; then
13647 cat >> confdefs.h <<\EOF
13648#define wxUSE_VALIDATORS 1
13649EOF
13650
13651 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
13652fi
13653
13654if test "$wxUSE_GIF" = "yes" ; then
13655 cat >> confdefs.h <<\EOF
13656#define wxUSE_GIF 1
13657EOF
13658
13659fi
13660
13661if test "$wxUSE_PCX" = "yes" ; then
13662 cat >> confdefs.h <<\EOF
13663#define wxUSE_PCX 1
13664EOF
13665
13666fi
13667
13668if test "$wxUSE_PNM" = "yes" ; then
13669 cat >> confdefs.h <<\EOF
13670#define wxUSE_PNM 1
13671EOF
13672
13673fi
13674
13675
aaa37c0d
VZ
13676OSINFO=`uname -s -r -m`
13677OSINFO="\"$OSINFO\""
13678cat >> confdefs.h <<EOF
13679#define WXWIN_OS_DESCRIPTION $OSINFO
13680EOF
13681
13682
13683
bdad4e7e 13684GUILIBS="$GUI_TK_LIBRARY $OPENGL_LINK $TOOLKIT_LINK"
10f2d63a 13685
422107f9 13686EXTRA_LIBS="$LIBS $ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $THREADS_LINK $DMALLOC_LINK $DL_LINK"
10f2d63a 13687if test "$wxUSE_GUI" = "yes"; then
0dcf9893 13688 EXTRA_LIBS="$EXTRA_LIBS $GUILIBS $PNG_LINK $JPEG_LINK $TIFF_LINK"
10f2d63a
VZ
13689fi
13690
13691LD_LIBS="\${top_builddir}/lib/${WX_LIBRARY_NAME_STATIC} $EXTRA_LIBS"
13692
e8482f24 13693INCLUDES="-I. -I\${top_builddir}/include -I\${top_srcdir}/include -I\${top_srcdir}/contrib/include $ZLIB_INCLUDE $PNG_INCLUDE $JPEG_INCLUDE $TIFF_INCLUDE $TOOLKIT_INCLUDE"
10f2d63a
VZ
13694
13695if test "$GXX" = yes ; then
13696 CXXWARNINGS="-Wall"
d6a55c4b 13697 fi
10f2d63a
VZ
13698EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE $INCLUDES"
13699
13700CFLAGS=`echo $CFLAGS $EXTRA_CFLAGS | sed 's/ \\+/ /g'`
13701CXXFLAGS=`echo $CXXFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \+/ /g'`
13702
e694c22c
VZ
13703LDFLAGS="$LDFLAGS $PROFILE"
13704
10f2d63a
VZ
13705if test "$wxUSE_GUI" = "yes"; then
13706
bdad4e7e 13707 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS controls dialogs dragimag drawing dynamic \
bc9027cc 13708 font fractal image menu minimal richedit"
b12915c1 13709
88d3a15c 13710 CPPFLAGS="$CPPFLAGS \$(EXTRADEFS) \$(APPEXTRADEFS)"
10f2d63a
VZ
13711else
13712 SAMPLES_SUBDIRS=""
13713fi
13714
ec14dd32
VZ
13715SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
13716
13717
13718
10f2d63a
VZ
13719
13720
13721
13722
13723
13724
13725
13726
13727
13728
13729
13730
13731
13732
13733
13734
13735
13736
13737
13738
13739
13740
13741
13742
13743
13744
13745
13746
13747
13748
13749
13750
13751
13752
13753
13754
13755
13756
13757
13758
13759
13760
13761
13762
13763
13764
13765
13766
13767
13768
13769
13770
1d62a8b4 13771
bdad4e7e
RR
13772
13773
13774
13775
13776
13777
13778
13779
13780
13781
e694c22c 13782
b12915c1 13783
2224580a
VZ
13784
13785
13786
13787
dad6c0ea
VZ
13788
13789
caa2c79b 13790
10f2d63a
VZ
13791
13792
13793echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
0dcf9893 13794echo "configure:13795: checking whether ${MAKE-make} sets \${MAKE}" >&5
10f2d63a
VZ
13795set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
13796if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
13797 echo $ac_n "(cached) $ac_c" 1>&6
13798else
13799 cat > conftestmake <<\EOF
13800all:
13801 @echo 'ac_maketemp="${MAKE}"'
13802EOF
13803# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
13804eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
13805if test -n "$ac_maketemp"; then
13806 eval ac_cv_prog_make_${ac_make}_set=yes
13807else
13808 eval ac_cv_prog_make_${ac_make}_set=no
13809fi
13810rm -f conftestmake
13811fi
13812if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
13813 echo "$ac_t""yes" 1>&6
13814 SET_MAKE=
13815else
13816 echo "$ac_t""no" 1>&6
13817 SET_MAKE="MAKE=${MAKE-make}"
13818fi
13819
13820
00cf1208
RR
13821if test -d include; then
13822 if test -d include/wx; then
13823 if test -d include/wx/${TOOLKIT_DIR}; then
13824 if test -f include/wx/${TOOLKIT_DIR}/setup.h; then
13825 mv -f include/wx/${TOOLKIT_DIR}/setup.h setup.h
13826 fi
13827 fi
13828 fi
13829fi
13830
10f2d63a
VZ
13831
13832
2224580a 13833if test "$wxUSE_GUI" = "yes"; then
ec90f5e5 13834 wx_cv_path_samplesubdirs=$SAMPLES_SUBDIRS
e8482f24
GL
13835 wx_cv_path_ifs=$PATH_IFS
13836 wx_cv_program_ext=$PROGRAM_EXT
13837 wx_cv_target_library=$WX_TARGET_LIBRARY
13838 subdirs="demos samples utils contrib"
2224580a
VZ
13839
13840fi
10f2d63a
VZ
13841
13842trap '' 1 2 15
13843cat > confcache <<\EOF
13844# This file is a shell script that caches the results of configure
13845# tests run on this system so they can be shared between configure
13846# scripts and configure runs. It is not useful on other systems.
13847# If it contains results you don't want to keep, you may remove or edit it.
13848#
13849# By default, configure uses ./config.cache as the cache file,
13850# creating it if it does not exist already. You can give configure
13851# the --cache-file=FILE option to use a different cache file; that is
13852# what configure does when it calls configure scripts in
13853# subdirectories, so they share the cache.
13854# Giving --cache-file=/dev/null disables caching, for debugging configure.
13855# config.status only pays attention to the cache file if you give it the
13856# --recheck option to rerun configure.
13857#
13858EOF
13859# The following way of writing the cache mishandles newlines in values,
13860# but we know of no workaround that is simple, portable, and efficient.
13861# So, don't put newlines in cache variables' values.
13862# Ultrix sh set writes to stderr and can't be redirected directly,
13863# and sets the high bit in the cache file unless we assign to the vars.
13864(set) 2>&1 |
13865 case `(ac_space=' '; set | grep ac_space) 2>&1` in
13866 *ac_space=\ *)
13867 # `set' does not quote correctly, so add quotes (double-quote substitution
13868 # turns \\\\ into \\, and sed turns \\ into \).
13869 sed -n \
13870 -e "s/'/'\\\\''/g" \
13871 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
13872 ;;
13873 *)
13874 # `set' quotes correctly as required by POSIX, so do not add quotes.
13875 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
13876 ;;
13877 esac >> confcache
13878if cmp -s $cache_file confcache; then
13879 :
13880else
13881 if test -w $cache_file; then
13882 echo "updating cache $cache_file"
13883 cat confcache > $cache_file
13884 else
13885 echo "not updating unwritable cache $cache_file"
13886 fi
13887fi
13888rm -f confcache
13889
13890trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
13891
13892test "x$prefix" = xNONE && prefix=$ac_default_prefix
13893# Let make expand exec_prefix.
13894test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13895
13896# Any assignment to VPATH causes Sun make to only execute
13897# the first set of double-colon rules, so remove it if not needed.
13898# If there is a colon in the path, we need to keep it.
13899if test "x$srcdir" = x.; then
13900 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
13901fi
13902
13903trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
13904
13905DEFS=-DHAVE_CONFIG_H
13906
13907# Without the "./", some shells look in PATH for config.status.
13908: ${CONFIG_STATUS=./config.status}
13909
13910echo creating $CONFIG_STATUS
13911rm -f $CONFIG_STATUS
13912cat > $CONFIG_STATUS <<EOF
13913#! /bin/sh
13914# Generated automatically by configure.
13915# Run this file to recreate the current configuration.
13916# This directory was configured as follows,
13917# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13918#
13919# $0 $ac_configure_args
13920#
13921# Compiler output produced by configure, useful for debugging
13922# configure, is in ./config.log if it exists.
13923
13924ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
13925for ac_option
13926do
13927 case "\$ac_option" in
13928 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13929 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
13930 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
13931 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
e8482f24 13932 echo "$CONFIG_STATUS generated by autoconf version 2.13"
10f2d63a
VZ
13933 exit 0 ;;
13934 -help | --help | --hel | --he | --h)
13935 echo "\$ac_cs_usage"; exit 0 ;;
13936 *) echo "\$ac_cs_usage"; exit 1 ;;
13937 esac
13938done
13939
13940ac_given_srcdir=$srcdir
13941ac_given_INSTALL="$INSTALL"
13942
13943trap 'rm -fr `echo "
13944 wx-config
13945 src/make.env
13946 src/makeprog.env
13947 src/makelib.env
13948 Makefile
10f2d63a
VZ
13949 setup.h:setup.h.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
13950EOF
13951cat >> $CONFIG_STATUS <<EOF
13952
13953# Protect against being on the right side of a sed subst in config.status.
13954sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
13955 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
13956$ac_vpsub
13957$extrasub
13958s%@SHELL@%$SHELL%g
13959s%@CFLAGS@%$CFLAGS%g
13960s%@CPPFLAGS@%$CPPFLAGS%g
13961s%@CXXFLAGS@%$CXXFLAGS%g
13962s%@FFLAGS@%$FFLAGS%g
13963s%@DEFS@%$DEFS%g
13964s%@LDFLAGS@%$LDFLAGS%g
13965s%@LIBS@%$LIBS%g
13966s%@exec_prefix@%$exec_prefix%g
13967s%@prefix@%$prefix%g
13968s%@program_transform_name@%$program_transform_name%g
13969s%@bindir@%$bindir%g
13970s%@sbindir@%$sbindir%g
13971s%@libexecdir@%$libexecdir%g
13972s%@datadir@%$datadir%g
13973s%@sysconfdir@%$sysconfdir%g
13974s%@sharedstatedir@%$sharedstatedir%g
13975s%@localstatedir@%$localstatedir%g
13976s%@libdir@%$libdir%g
13977s%@includedir@%$includedir%g
13978s%@oldincludedir@%$oldincludedir%g
13979s%@infodir@%$infodir%g
13980s%@mandir@%$mandir%g
7c66a493
VZ
13981s%@host@%$host%g
13982s%@host_alias@%$host_alias%g
13983s%@host_cpu@%$host_cpu%g
13984s%@host_vendor@%$host_vendor%g
13985s%@host_os@%$host_os%g
13986s%@target@%$target%g
13987s%@target_alias@%$target_alias%g
13988s%@target_cpu@%$target_cpu%g
13989s%@target_vendor@%$target_vendor%g
13990s%@target_os@%$target_os%g
13991s%@build@%$build%g
13992s%@build_alias@%$build_alias%g
13993s%@build_cpu@%$build_cpu%g
13994s%@build_vendor@%$build_vendor%g
13995s%@build_os@%$build_os%g
10f2d63a
VZ
13996s%@CC@%$CC%g
13997s%@CPP@%$CPP%g
13998s%@CXX@%$CXX%g
13999s%@CXXCPP@%$CXXCPP%g
14000s%@RANLIB@%$RANLIB%g
14001s%@AR@%$AR%g
14002s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
14003s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
14004s%@INSTALL_DATA@%$INSTALL_DATA%g
14005s%@STRIP@%$STRIP%g
14006s%@YACC@%$YACC%g
14007s%@LEX@%$LEX%g
14008s%@LEXLIB@%$LEXLIB%g
14009s%@LN_S@%$LN_S%g
14010s%@GTK_CONFIG@%$GTK_CONFIG%g
14011s%@GTK_CFLAGS@%$GTK_CFLAGS%g
14012s%@GTK_LIBS@%$GTK_LIBS%g
ab9b9eab
VZ
14013s%@X_CFLAGS@%$X_CFLAGS%g
14014s%@X_PRE_LIBS@%$X_PRE_LIBS%g
14015s%@X_LIBS@%$X_LIBS%g
14016s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
ec14dd32
VZ
14017s%@LEX_STEM@%$LEX_STEM%g
14018s%@PATH_IFS@%$PATH_IFS%g
10f2d63a
VZ
14019s%@WX_MAJOR_VERSION_NUMBER@%$WX_MAJOR_VERSION_NUMBER%g
14020s%@WX_MINOR_VERSION_NUMBER@%$WX_MINOR_VERSION_NUMBER%g
14021s%@WX_RELEASE_NUMBER@%$WX_RELEASE_NUMBER%g
14022s%@WX_LIBRARY_NAME@%$WX_LIBRARY_NAME%g
14023s%@WX_LIBRARY_NAME_STATIC@%$WX_LIBRARY_NAME_STATIC%g
14024s%@WX_LIBRARY_NAME_SHARED@%$WX_LIBRARY_NAME_SHARED%g
14025s%@WX_LIBRARY@%$WX_LIBRARY%g
14026s%@WX_TARGET_LIBRARY@%$WX_TARGET_LIBRARY%g
14027s%@WX_LIBRARY_LINK1@%$WX_LIBRARY_LINK1%g
14028s%@WX_LIBRARY_LINK2@%$WX_LIBRARY_LINK2%g
14029s%@WX_LIBRARY_LINK3@%$WX_LIBRARY_LINK3%g
14030s%@PROGRAM_EXT@%$PROGRAM_EXT%g
bdad4e7e
RR
14031s%@WX_LIBRARY_NAME_GL@%$WX_LIBRARY_NAME_GL%g
14032s%@WX_LIBRARY_NAME_STATIC_GL@%$WX_LIBRARY_NAME_STATIC_GL%g
14033s%@WX_LIBRARY_NAME_SHARED_GL@%$WX_LIBRARY_NAME_SHARED_GL%g
14034s%@WX_LIBRARY_GL@%$WX_LIBRARY_GL%g
14035s%@WX_TARGET_LIBRARY_GL@%$WX_TARGET_LIBRARY_GL%g
14036s%@WX_LIBRARY_LINK1_GL@%$WX_LIBRARY_LINK1_GL%g
14037s%@WX_LIBRARY_LINK2_GL@%$WX_LIBRARY_LINK2_GL%g
14038s%@WX_LIBRARY_LINK3_GL@%$WX_LIBRARY_LINK3_GL%g
10f2d63a
VZ
14039s%@WX_ALL@%$WX_ALL%g
14040s%@WX_ALL_INSTALLED@%$WX_ALL_INSTALLED%g
14041s%@SHARED_LD@%$SHARED_LD%g
14042s%@PIC_FLAG@%$PIC_FLAG%g
14043s%@DEP_INFO_FLAGS@%$DEP_INFO_FLAGS%g
caa2c79b 14044s%@CODE_GEN_FLAGS@%$CODE_GEN_FLAGS%g
1d62a8b4 14045s%@BURNT_LIBRARY_NAME@%$BURNT_LIBRARY_NAME%g
bdad4e7e 14046s%@BURNT_LIBRARY_NAME_GL@%$BURNT_LIBRARY_NAME_GL%g
10f2d63a 14047s%@WXDEBUG_DEFINE@%$WXDEBUG_DEFINE%g
dad6c0ea
VZ
14048s%@USE_GUI@%$USE_GUI%g
14049s%@AFMINSTALL@%$AFMINSTALL%g
10f2d63a
VZ
14050s%@TOOLKIT@%$TOOLKIT%g
14051s%@TOOLKIT_DEF@%$TOOLKIT_DEF%g
14052s%@TOOLKIT_DIR@%$TOOLKIT_DIR%g
14053s%@TOOLKIT_INCLUDE@%$TOOLKIT_INCLUDE%g
14054s%@GUIHEADERS@%$GUIHEADERS%g
14055s%@GUIOBJS@%$GUIOBJS%g
14056s%@COMMONOBJS@%$COMMONOBJS%g
14057s%@GENERICOBJS@%$GENERICOBJS%g
14058s%@GUIDEPS@%$GUIDEPS%g
14059s%@COMMONDEPS@%$COMMONDEPS%g
14060s%@GENERICDEPS@%$GENERICDEPS%g
14061s%@IODBCOBJS@%$IODBCOBJS%g
14062s%@UNIXOBJS@%$UNIXOBJS%g
14063s%@UNIXDEPS@%$UNIXDEPS%g
14064s%@ALL_OBJECTS@%$ALL_OBJECTS%g
14065s%@ALL_DEPFILES@%$ALL_DEPFILES%g
10f2d63a 14066s%@GUIDIST@%$GUIDIST%g
2224580a
VZ
14067s%@PORT_FILES@%$PORT_FILES%g
14068s%@DISTDIR@%$DISTDIR%g
14069s%@RPM_SPEC@%$RPM_SPEC%g
14070s%@RPM_FILES@%$RPM_FILES%g
10f2d63a
VZ
14071s%@SRC_SUBDIRS@%$SRC_SUBDIRS%g
14072s%@INCLUDE_SUBDIRS@%$INCLUDE_SUBDIRS%g
14073s%@UTILS_SUBDIRS@%$UTILS_SUBDIRS%g
14074s%@DOCS_SUBDIRS@%$DOCS_SUBDIRS%g
14075s%@SAMPLES_SUBDIRS@%$SAMPLES_SUBDIRS%g
14076s%@USER_SUBDIRS@%$USER_SUBDIRS%g
14077s%@EXTRA_LIBS@%$EXTRA_LIBS%g
b12915c1 14078s%@EXTRADEFS@%$EXTRADEFS%g
10f2d63a
VZ
14079s%@LD_LIBS@%$LD_LIBS%g
14080s%@SET_MAKE@%$SET_MAKE%g
2224580a 14081s%@subdirs@%$subdirs%g
10f2d63a
VZ
14082
14083CEOF
14084EOF
14085
14086cat >> $CONFIG_STATUS <<\EOF
14087
14088# Split the substitutions into bite-sized pieces for seds with
14089# small command number limits, like on Digital OSF/1 and HP-UX.
14090ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
14091ac_file=1 # Number of current file.
14092ac_beg=1 # First line for current file.
14093ac_end=$ac_max_sed_cmds # Line after last line for current file.
14094ac_more_lines=:
14095ac_sed_cmds=""
14096while $ac_more_lines; do
14097 if test $ac_beg -gt 1; then
14098 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
14099 else
14100 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
14101 fi
14102 if test ! -s conftest.s$ac_file; then
14103 ac_more_lines=false
14104 rm -f conftest.s$ac_file
14105 else
14106 if test -z "$ac_sed_cmds"; then
14107 ac_sed_cmds="sed -f conftest.s$ac_file"
14108 else
14109 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
14110 fi
14111 ac_file=`expr $ac_file + 1`
14112 ac_beg=$ac_end
14113 ac_end=`expr $ac_end + $ac_max_sed_cmds`
14114 fi
14115done
14116if test -z "$ac_sed_cmds"; then
14117 ac_sed_cmds=cat
14118fi
14119EOF
14120
14121cat >> $CONFIG_STATUS <<EOF
14122
14123CONFIG_FILES=\${CONFIG_FILES-"wx-config
14124 src/make.env
14125 src/makeprog.env
14126 src/makelib.env
14127 Makefile
10f2d63a
VZ
14128 "}
14129EOF
14130cat >> $CONFIG_STATUS <<\EOF
14131for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
14132 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
14133 case "$ac_file" in
14134 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
14135 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
14136 *) ac_file_in="${ac_file}.in" ;;
14137 esac
14138
14139 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
14140
14141 # Remove last slash and all that follows it. Not all systems have dirname.
14142 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
14143 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
14144 # The file is in a subdirectory.
14145 test ! -d "$ac_dir" && mkdir "$ac_dir"
14146 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
14147 # A "../" for each directory in $ac_dir_suffix.
14148 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
14149 else
14150 ac_dir_suffix= ac_dots=
14151 fi
14152
14153 case "$ac_given_srcdir" in
14154 .) srcdir=.
14155 if test -z "$ac_dots"; then top_srcdir=.
14156 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
14157 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
14158 *) # Relative path.
14159 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
14160 top_srcdir="$ac_dots$ac_given_srcdir" ;;
14161 esac
14162
14163 case "$ac_given_INSTALL" in
14164 [/$]*) INSTALL="$ac_given_INSTALL" ;;
14165 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
14166 esac
14167
14168 echo creating "$ac_file"
14169 rm -f "$ac_file"
14170 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
14171 case "$ac_file" in
14172 *Makefile*) ac_comsub="1i\\
14173# $configure_input" ;;
14174 *) ac_comsub= ;;
14175 esac
14176
14177 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
14178 sed -e "$ac_comsub
14179s%@configure_input@%$configure_input%g
14180s%@srcdir@%$srcdir%g
14181s%@top_srcdir@%$top_srcdir%g
14182s%@INSTALL@%$INSTALL%g
14183" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
14184fi; done
14185rm -f conftest.s*
14186
14187# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
14188# NAME is the cpp macro being defined and VALUE is the value it is being given.
14189#
14190# ac_d sets the value in "#define NAME VALUE" lines.
14191ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
14192ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
14193ac_dC='\3'
14194ac_dD='%g'
14195# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
14196ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
14197ac_uB='\([ ]\)%\1#\2define\3'
14198ac_uC=' '
14199ac_uD='\4%g'
14200# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
14201ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
14202ac_eB='$%\1#\2define\3'
14203ac_eC=' '
14204ac_eD='%g'
14205
14206if test "${CONFIG_HEADERS+set}" != set; then
14207EOF
14208cat >> $CONFIG_STATUS <<EOF
14209 CONFIG_HEADERS="setup.h:setup.h.in"
14210EOF
14211cat >> $CONFIG_STATUS <<\EOF
14212fi
14213for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
14214 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
14215 case "$ac_file" in
14216 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
14217 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
14218 *) ac_file_in="${ac_file}.in" ;;
14219 esac
14220
14221 echo creating $ac_file
14222
14223 rm -f conftest.frag conftest.in conftest.out
14224 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
14225 cat $ac_file_inputs > conftest.in
14226
14227EOF
14228
14229# Transform confdefs.h into a sed script conftest.vals that substitutes
14230# the proper values into config.h.in to produce config.h. And first:
14231# Protect against being on the right side of a sed subst in config.status.
14232# Protect against being in an unquoted here document in config.status.
14233rm -f conftest.vals
14234cat > conftest.hdr <<\EOF
14235s/[\\&%]/\\&/g
14236s%[\\$`]%\\&%g
14237s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
14238s%ac_d%ac_u%gp
14239s%ac_u%ac_e%gp
14240EOF
14241sed -n -f conftest.hdr confdefs.h > conftest.vals
14242rm -f conftest.hdr
14243
14244# This sed command replaces #undef with comments. This is necessary, for
14245# example, in the case of _POSIX_SOURCE, which is predefined and required
14246# on some systems where configure will not decide to define it.
14247cat >> conftest.vals <<\EOF
14248s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
14249EOF
14250
14251# Break up conftest.vals because some shells have a limit on
14252# the size of here documents, and old seds have small limits too.
14253
14254rm -f conftest.tail
14255while :
14256do
14257 ac_lines=`grep -c . conftest.vals`
14258 # grep -c gives empty output for an empty file on some AIX systems.
14259 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
14260 # Write a limited-size here document to conftest.frag.
14261 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
14262 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
14263 echo 'CEOF
14264 sed -f conftest.frag conftest.in > conftest.out
14265 rm -f conftest.in
14266 mv conftest.out conftest.in
14267' >> $CONFIG_STATUS
14268 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
14269 rm -f conftest.vals
14270 mv conftest.tail conftest.vals
14271done
14272rm -f conftest.vals
14273
14274cat >> $CONFIG_STATUS <<\EOF
14275 rm -f conftest.frag conftest.h
14276 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
14277 cat conftest.in >> conftest.h
14278 rm -f conftest.in
14279 if cmp -s $ac_file conftest.h 2>/dev/null; then
14280 echo "$ac_file is unchanged"
14281 rm -f conftest.h
14282 else
14283 # Remove last slash and all that follows it. Not all systems have dirname.
14284 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
14285 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
14286 # The file is in a subdirectory.
14287 test ! -d "$ac_dir" && mkdir "$ac_dir"
14288 fi
14289 rm -f $ac_file
14290 mv conftest.h $ac_file
14291 fi
14292fi; done
14293
14294EOF
14295cat >> $CONFIG_STATUS <<EOF
14296
14297 TOOLKIT_DIR="${TOOLKIT_DIR}"
07eb77a6 14298 LN_S="${LN_S}"
10f2d63a
VZ
14299
14300
14301EOF
14302cat >> $CONFIG_STATUS <<\EOF
14303
14304 chmod +x wx-config
07eb77a6
RL
14305 mv wx-config wx${TOOLKIT_DIR}-config
14306 ${LN_S} wx${TOOLKIT_DIR}-config wx-config
00cf1208
RR
14307
14308
14309 if test ! -d lib; then
14310 mkdir lib
14311 fi
14312 if test ! -d lib/wx; then
14313 mkdir lib/wx
14314 fi
14315 if test ! -d lib/wx/include; then
14316 mkdir lib/wx/include
14317 fi
14318 if test ! -d lib/wx/include/wx; then
14319 mkdir lib/wx/include/wx
14320 fi
14321 if test ! -d lib/wx/include/wx/${TOOLKIT_DIR}; then
14322 mkdir lib/wx/include/wx/${TOOLKIT_DIR}
14323 fi
14324 if test -f setup.h; then
14325 cp -f setup.h lib/wx/include/wx/${TOOLKIT_DIR}/setup.h
14326 fi
07eb77a6 14327
00cf1208 14328
10f2d63a
VZ
14329 if test ! -d include; then
14330 mkdir include
14331 fi
14332 if test ! -d include/wx; then
14333 mkdir include/wx
14334 fi
14335 if test ! -d include/wx/${TOOLKIT_DIR}; then
14336 mkdir include/wx/${TOOLKIT_DIR}
14337 fi
afc31813
VZ
14338 if test -f setup.h; then
14339 mv -f setup.h include/wx/${TOOLKIT_DIR}/setup.h
14340 fi
00cf1208 14341
10f2d63a
VZ
14342
14343exit 0
14344EOF
14345chmod +x $CONFIG_STATUS
14346rm -fr confdefs* $ac_clean_files
14347test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
14348
2224580a
VZ
14349if test "$no_recursion" != yes; then
14350
14351 # Remove --cache-file and --srcdir arguments so they do not pile up.
14352 ac_sub_configure_args=
14353 ac_prev=
14354 for ac_arg in $ac_configure_args; do
14355 if test -n "$ac_prev"; then
14356 ac_prev=
14357 continue
14358 fi
14359 case "$ac_arg" in
14360 -cache-file | --cache-file | --cache-fil | --cache-fi \
14361 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
14362 ac_prev=cache_file ;;
14363 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
14364 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
14365 ;;
14366 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
14367 ac_prev=srcdir ;;
14368 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
14369 ;;
14370 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
14371 esac
14372 done
14373
e8482f24 14374 for ac_config_dir in demos samples utils contrib; do
2224580a
VZ
14375
14376 # Do not complain, so a configure script can configure whichever
14377 # parts of a large source tree are present.
14378 if test ! -d $srcdir/$ac_config_dir; then
14379 continue
14380 fi
14381
14382 echo configuring in $ac_config_dir
14383
14384 case "$srcdir" in
14385 .) ;;
14386 *)
14387 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
14388 else
14389 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
14390 fi
14391 ;;
14392 esac
14393
14394 ac_popdir=`pwd`
14395 cd $ac_config_dir
14396
14397 # A "../" for each directory in /$ac_config_dir.
14398 ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
14399
14400 case "$srcdir" in
14401 .) # No --srcdir option. We are building in place.
14402 ac_sub_srcdir=$srcdir ;;
14403 /*) # Absolute path.
14404 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
14405 *) # Relative path.
14406 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
14407 esac
14408
14409 # Check for guested configure; otherwise get Cygnus style configure.
14410 if test -f $ac_sub_srcdir/configure; then
14411 ac_sub_configure=$ac_sub_srcdir/configure
14412 elif test -f $ac_sub_srcdir/configure.in; then
14413 ac_sub_configure=$ac_configure
14414 else
14415 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
14416 ac_sub_configure=
14417 fi
14418
14419 # The recursion is here.
14420 if test -n "$ac_sub_configure"; then
14421
14422 # Make the cache file name correct relative to the subdirectory.
14423 case "$cache_file" in
14424 /*) ac_sub_cache_file=$cache_file ;;
14425 *) # Relative path.
14426 ac_sub_cache_file="$ac_dots$cache_file" ;;
14427 esac
14428 case "$ac_given_INSTALL" in
14429 [/$]*) INSTALL="$ac_given_INSTALL" ;;
14430 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
14431 esac
14432
14433 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
14434 # The eval makes quoting arguments work.
14435 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
14436 then :
14437 else
14438 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
14439 fi
14440 fi
14441
14442 cd $ac_popdir
14443 done
14444fi
14445
10f2d63a 14446