]> git.saurik.com Git - wxWidgets.git/blame - configure
Made HelpGen compile here.
[wxWidgets.git] / configure
CommitLineData
10f2d63a
VZ
1#! /bin/sh
2
3# From configure.in Id: configure.in
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
10f2d63a
VZ
36
37
38
39
40# Guess values for system-dependent variables and create Makefiles.
2224580a 41# Generated automatically using autoconf version 2.13
10f2d63a
VZ
42# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
43#
44# This configure script is free software; the Free Software Foundation
45# gives unlimited permission to copy, distribute and modify it.
46
47# Defaults:
48ac_help=
49ac_default_prefix=/usr/local
50# Any additions from configure.in:
51ac_help="$ac_help
52--enable-gui use GUI classes"
53ac_help="$ac_help
54 --with-gtk use GTK+"
55ac_help="$ac_help
56 --with-motif use Motif/Lesstif"
57ac_help="$ac_help
58 --with-wine use WINE"
59ac_help="$ac_help
60 --with-cygwin use Cygwin for MS-Windows"
61ac_help="$ac_help
62 --with-mingw use GCC Minimal MS-Windows"
e07802fc
VZ
63ac_help="$ac_help
64 --with-pm use OS/2 Presentation Manager"
10f2d63a
VZ
65ac_help="$ac_help
66 --with-gtk-prefix=PFX Prefix where GTK is installed"
67ac_help="$ac_help
68 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed"
69ac_help="$ac_help
10f2d63a
VZ
70--with-libpng use libpng (PNG image format)"
71ac_help="$ac_help
72--with-libjpeg use libjpeg (JPEG file format)"
73ac_help="$ac_help
c7a2bf27
RR
74--with-libtiff use libtiff (TIFF file format)"
75ac_help="$ac_help
10f2d63a
VZ
76--with-opengl use OpenGL (or Mesa)"
77ac_help="$ac_help
b12915c1
VZ
78--with-dmalloc use dmalloc library (www.letters.com/dmalloc)"
79ac_help="$ac_help
80--with-zlib use zlib for LZW compression"
81ac_help="$ac_help
10f2d63a
VZ
82--with-odbc use the IODBC and wxODBC classes"
83ac_help="$ac_help
84--enable-shared create shared library code"
85ac_help="$ac_help
86--enable-optimise create optimised code"
87ac_help="$ac_help
88--enable-debug same as debug_flag and debug_info"
89ac_help="$ac_help
90--enable-debug_flag set __WXDEBUG__ flag (recommended for developers!)"
91ac_help="$ac_help
92--enable-debug_info create code with debugging information"
93ac_help="$ac_help
94--enable-debug_gdb create code with extra GDB debugging information"
95ac_help="$ac_help
96--enable-debug_cntxt use wxDebugContext"
97ac_help="$ac_help
98--enable-mem_tracing create code with memory tracing"
99ac_help="$ac_help
100--enable-profile create code with profiling information"
101ac_help="$ac_help
102--enable-no_rtti create code without RTTI information"
103ac_help="$ac_help
104--enable-no_exceptions create code without exceptions information"
105ac_help="$ac_help
106--enable-permissive compile code disregarding strict ANSI"
107ac_help="$ac_help
108--enable-no_deps create code without dependency information"
109ac_help="$ac_help
110--enable-intl use internationalization system"
111ac_help="$ac_help
112--enable-config use wxConfig (and derived) classes"
113ac_help="$ac_help
114--enable-sockets use socket/network classes"
115ac_help="$ac_help
116--enable-dialupman use dialup network classes"
117ac_help="$ac_help
118--enable-ipc use interprocess communication (wxSocket etc.)"
119ac_help="$ac_help
120--enable-apple_ieee use the Apple IEEE codec"
121ac_help="$ac_help
122--enable-timedate use date/time classes"
123ac_help="$ac_help
124--enable-wave use wxWave class"
125ac_help="$ac_help
126--enable-fraction use wxFraction class"
127ac_help="$ac_help
128--enable-dynlib use wxLibrary class for DLL loading"
129ac_help="$ac_help
130--enable-longlong use wxLongLong class"
131ac_help="$ac_help
132--enable-log use logging system"
133ac_help="$ac_help
134--enable-streams use wxStream etc classes"
135ac_help="$ac_help
136--enable-file use wxFile classes"
137ac_help="$ac_help
138--enable-textfile use wxTextFile classes"
139ac_help="$ac_help
140--enable-unicode compile wxString with Unicode support"
141ac_help="$ac_help
142--enable-wcsrtombs use wcsrtombs instead of buggy (GNU libc1/Linux libc5) wcstombs"
143ac_help="$ac_help
144--enable-wxprintfv use wxWindows implementation of vprintf()"
145ac_help="$ac_help
146--enable-joystick compile in joystick support (Linux only)"
147ac_help="$ac_help
148--enable-std_iostreams use standard C++ stream classes"
149ac_help="$ac_help
150--enable-fs_inet use virtual HTTP/FTP filesystems"
151ac_help="$ac_help
152--enable-fs_zip use virtual ZIP filesystems"
153ac_help="$ac_help
154--enable-zipstream use wxZipInputStream"
155ac_help="$ac_help
156--enable-threads use threads"
157ac_help="$ac_help
158--enable-serial use class serialization"
159ac_help="$ac_help
160--enable-docview use document view architecture"
161ac_help="$ac_help
162--enable-help use help (using external browser at present)"
163ac_help="$ac_help
164--enable-constraints use layout-constraints system"
165ac_help="$ac_help
166--enable-printarch use printing architecture"
167ac_help="$ac_help
168--enable-mdi use multiple document interface architecture"
169ac_help="$ac_help
170--enable-postscript use wxPostscriptDC device context (default for gtk+)"
171ac_help="$ac_help
172--enable-prologio use Prolog IO library"
173ac_help="$ac_help
174--enable-resources use wxWindows resources"
175ac_help="$ac_help
176--enable-xresources use X resources for save (default for gtk+)"
177ac_help="$ac_help
178--enable-clipboard use wxClipboard classes"
179ac_help="$ac_help
180--enable-dnd use Drag'n'Drop classes"
181ac_help="$ac_help
182--enable-wxtree make wxTree library"
183ac_help="$ac_help
184--enable-controls use all usual controls"
185ac_help="$ac_help
186--enable-accel use accelerators"
187ac_help="$ac_help
188--enable-caret use wxCaret class"
189ac_help="$ac_help
190--enable-bmpbutton use wxBitmapButton class"
191ac_help="$ac_help
192--enable-checkbox use wxCheckBox class"
193ac_help="$ac_help
194--enable-checklst use wxCheckListBox (listbox with checkboxes) class"
195ac_help="$ac_help
196--enable-choice use wxChoice class"
197ac_help="$ac_help
198--enable-combobox use wxComboBox classes"
199ac_help="$ac_help
200--enable-gauge use wxGauge class"
201ac_help="$ac_help
202--enable-grid use wxGrid class"
203ac_help="$ac_help
204--enable-newgrid use new wxGrid class"
205ac_help="$ac_help
206--enable-imaglist use wxImageList class"
207ac_help="$ac_help
208--enable-listbox use wxListBox class"
209ac_help="$ac_help
210--enable-listctrl use wxListCtrl class"
211ac_help="$ac_help
212--enable-notebook use wxNotebook class"
213ac_help="$ac_help
214--enable-radiobox use wxRadioBox class"
215ac_help="$ac_help
216--enable-radiobtn use wxRadioButton class"
217ac_help="$ac_help
218--enable-sash use wxSashWindow class"
219ac_help="$ac_help
220--enable-scrollbar use wxScrollBar class and scrollable windows"
221ac_help="$ac_help
222--enable-slider use wxSlider class"
223ac_help="$ac_help
224--enable-spinbtn use wxSpinButton class"
225ac_help="$ac_help
56cfaa52
RR
226--enable-spinctrl use wxSpinCtrl class"
227ac_help="$ac_help
10f2d63a
VZ
228--enable-splitter use wxSplitterWindow class"
229ac_help="$ac_help
230--enable-statbmp use wxStaticBitmap class"
231ac_help="$ac_help
232--enable-statbox use wxStaticBox class"
233ac_help="$ac_help
234--enable-statline use wxStaticLine class"
235ac_help="$ac_help
236--enable-statusbar use wxStatusBar class"
237ac_help="$ac_help
238--enable-tabdialog use wxTabControl class"
239ac_help="$ac_help
240--enable-toolbar use wxToolBar class"
241ac_help="$ac_help
360d6699
VZ
242--enable-tbarnative use native wxToolBar class"
243ac_help="$ac_help
244--enable-tbarsmpl use wxToolBarSimple class"
245ac_help="$ac_help
10f2d63a
VZ
246--enable-treectrl use wxTreeCtrl class"
247ac_help="$ac_help
248--enable-commondlg use common dialogs (wxDirDialog, wxProgressDialog, wxTextDialog, ...)"
249ac_help="$ac_help
250--enable-dirdlg use wxDirDialog"
251ac_help="$ac_help
252--enable-textdlg use wxTextDialog"
253ac_help="$ac_help
254--enable-tipdlg use startup tips"
255ac_help="$ac_help
256--enable-progressdlg use wxProgressDialog"
257ac_help="$ac_help
258--enable-miniframe use wxMiniFrame class"
259ac_help="$ac_help
260--enable-html use wxHTML sub-library"
261ac_help="$ac_help
262--enable-tooltips use wxToolTip class"
263ac_help="$ac_help
264--enable-splines use spline drawing code"
265ac_help="$ac_help
266--enable-validators use wxValidator and derived classes"
267ac_help="$ac_help
268--enable-busyinfo use wxBusyInfo"
269ac_help="$ac_help
270--enable-gif use gif images (GIF file format)"
271ac_help="$ac_help
272--enable-pcx use pcx images (PCX file format)"
273ac_help="$ac_help
274--enable-pnm use pnm images (PNM file format)"
ab9b9eab
VZ
275ac_help="$ac_help
276 --with-x use the X Window System"
10f2d63a
VZ
277
278# Initialize some variables set by options.
279# The variables have the same names as the options, with
280# dashes changed to underlines.
281build=NONE
282cache_file=./config.cache
283exec_prefix=NONE
284host=NONE
285no_create=
286nonopt=NONE
287no_recursion=
288prefix=NONE
289program_prefix=NONE
290program_suffix=NONE
291program_transform_name=s,x,x,
292silent=
293site=
294srcdir=
295target=NONE
296verbose=
297x_includes=NONE
298x_libraries=NONE
299bindir='${exec_prefix}/bin'
300sbindir='${exec_prefix}/sbin'
301libexecdir='${exec_prefix}/libexec'
302datadir='${prefix}/share'
303sysconfdir='${prefix}/etc'
304sharedstatedir='${prefix}/com'
305localstatedir='${prefix}/var'
306libdir='${exec_prefix}/lib'
307includedir='${prefix}/include'
308oldincludedir='/usr/include'
309infodir='${prefix}/info'
310mandir='${prefix}/man'
311
312# Initialize some other variables.
313subdirs=
314MFLAGS= MAKEFLAGS=
315SHELL=${CONFIG_SHELL-/bin/sh}
316# Maximum number of lines to put in a shell here document.
317ac_max_here_lines=12
318
319ac_prev=
320for ac_option
321do
322
323 # If the previous option needs an argument, assign it.
324 if test -n "$ac_prev"; then
325 eval "$ac_prev=\$ac_option"
326 ac_prev=
327 continue
328 fi
329
330 case "$ac_option" in
331 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
332 *) ac_optarg= ;;
333 esac
334
335 # Accept the important Cygnus configure options, so we can diagnose typos.
336
337 case "$ac_option" in
338
339 -bindir | --bindir | --bindi | --bind | --bin | --bi)
340 ac_prev=bindir ;;
341 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
342 bindir="$ac_optarg" ;;
343
344 -build | --build | --buil | --bui | --bu)
345 ac_prev=build ;;
346 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
347 build="$ac_optarg" ;;
348
349 -cache-file | --cache-file | --cache-fil | --cache-fi \
350 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
351 ac_prev=cache_file ;;
352 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
353 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
354 cache_file="$ac_optarg" ;;
355
356 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
357 ac_prev=datadir ;;
358 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
359 | --da=*)
360 datadir="$ac_optarg" ;;
361
362 -disable-* | --disable-*)
363 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
364 # Reject names that are not valid shell variable names.
365 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
366 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
367 fi
368 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
369 eval "enable_${ac_feature}=no" ;;
370
371 -enable-* | --enable-*)
372 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
373 # Reject names that are not valid shell variable names.
374 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
375 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
376 fi
377 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
378 case "$ac_option" in
379 *=*) ;;
380 *) ac_optarg=yes ;;
381 esac
382 eval "enable_${ac_feature}='$ac_optarg'" ;;
383
384 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
385 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
386 | --exec | --exe | --ex)
387 ac_prev=exec_prefix ;;
388 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
389 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
390 | --exec=* | --exe=* | --ex=*)
391 exec_prefix="$ac_optarg" ;;
392
393 -gas | --gas | --ga | --g)
394 # Obsolete; use --with-gas.
395 with_gas=yes ;;
396
397 -help | --help | --hel | --he)
398 # Omit some internal or obsolete options to make the list less imposing.
399 # This message is too long to be a string in the A/UX 3.1 sh.
400 cat << EOF
401Usage: configure [options] [host]
402Options: [defaults in brackets after descriptions]
403Configuration:
404 --cache-file=FILE cache test results in FILE
405 --help print this message
406 --no-create do not create output files
407 --quiet, --silent do not print \`checking...' messages
408 --version print the version of autoconf that created configure
409Directory and file names:
410 --prefix=PREFIX install architecture-independent files in PREFIX
411 [$ac_default_prefix]
412 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
413 [same as prefix]
414 --bindir=DIR user executables in DIR [EPREFIX/bin]
415 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
416 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
417 --datadir=DIR read-only architecture-independent data in DIR
418 [PREFIX/share]
419 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
420 --sharedstatedir=DIR modifiable architecture-independent data in DIR
421 [PREFIX/com]
422 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
423 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
424 --includedir=DIR C header files in DIR [PREFIX/include]
425 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
426 --infodir=DIR info documentation in DIR [PREFIX/info]
427 --mandir=DIR man documentation in DIR [PREFIX/man]
428 --srcdir=DIR find the sources in DIR [configure dir or ..]
429 --program-prefix=PREFIX prepend PREFIX to installed program names
430 --program-suffix=SUFFIX append SUFFIX to installed program names
431 --program-transform-name=PROGRAM
432 run sed PROGRAM on installed program names
433EOF
434 cat << EOF
435Host type:
436 --build=BUILD configure for building on BUILD [BUILD=HOST]
437 --host=HOST configure for HOST [guessed]
438 --target=TARGET configure for TARGET [TARGET=HOST]
439Features and packages:
440 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
441 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
442 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
443 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
444 --x-includes=DIR X include files are in DIR
445 --x-libraries=DIR X library files are in DIR
446EOF
447 if test -n "$ac_help"; then
448 echo "--enable and --with options recognized:$ac_help"
449 fi
450 exit 0 ;;
451
452 -host | --host | --hos | --ho)
453 ac_prev=host ;;
454 -host=* | --host=* | --hos=* | --ho=*)
455 host="$ac_optarg" ;;
456
457 -includedir | --includedir | --includedi | --included | --include \
458 | --includ | --inclu | --incl | --inc)
459 ac_prev=includedir ;;
460 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
461 | --includ=* | --inclu=* | --incl=* | --inc=*)
462 includedir="$ac_optarg" ;;
463
464 -infodir | --infodir | --infodi | --infod | --info | --inf)
465 ac_prev=infodir ;;
466 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
467 infodir="$ac_optarg" ;;
468
469 -libdir | --libdir | --libdi | --libd)
470 ac_prev=libdir ;;
471 -libdir=* | --libdir=* | --libdi=* | --libd=*)
472 libdir="$ac_optarg" ;;
473
474 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
475 | --libexe | --libex | --libe)
476 ac_prev=libexecdir ;;
477 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
478 | --libexe=* | --libex=* | --libe=*)
479 libexecdir="$ac_optarg" ;;
480
481 -localstatedir | --localstatedir | --localstatedi | --localstated \
482 | --localstate | --localstat | --localsta | --localst \
483 | --locals | --local | --loca | --loc | --lo)
484 ac_prev=localstatedir ;;
485 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
486 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
487 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
488 localstatedir="$ac_optarg" ;;
489
490 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
491 ac_prev=mandir ;;
492 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
493 mandir="$ac_optarg" ;;
494
495 -nfp | --nfp | --nf)
496 # Obsolete; use --without-fp.
497 with_fp=no ;;
498
499 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
500 | --no-cr | --no-c)
501 no_create=yes ;;
502
503 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
504 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
505 no_recursion=yes ;;
506
507 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
508 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
509 | --oldin | --oldi | --old | --ol | --o)
510 ac_prev=oldincludedir ;;
511 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
512 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
513 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
514 oldincludedir="$ac_optarg" ;;
515
516 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
517 ac_prev=prefix ;;
518 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
519 prefix="$ac_optarg" ;;
520
521 -program-prefix | --program-prefix | --program-prefi | --program-pref \
522 | --program-pre | --program-pr | --program-p)
523 ac_prev=program_prefix ;;
524 -program-prefix=* | --program-prefix=* | --program-prefi=* \
525 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
526 program_prefix="$ac_optarg" ;;
527
528 -program-suffix | --program-suffix | --program-suffi | --program-suff \
529 | --program-suf | --program-su | --program-s)
530 ac_prev=program_suffix ;;
531 -program-suffix=* | --program-suffix=* | --program-suffi=* \
532 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
533 program_suffix="$ac_optarg" ;;
534
535 -program-transform-name | --program-transform-name \
536 | --program-transform-nam | --program-transform-na \
537 | --program-transform-n | --program-transform- \
538 | --program-transform | --program-transfor \
539 | --program-transfo | --program-transf \
540 | --program-trans | --program-tran \
541 | --progr-tra | --program-tr | --program-t)
542 ac_prev=program_transform_name ;;
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 program_transform_name="$ac_optarg" ;;
551
552 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
553 | -silent | --silent | --silen | --sile | --sil)
554 silent=yes ;;
555
556 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
557 ac_prev=sbindir ;;
558 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
559 | --sbi=* | --sb=*)
560 sbindir="$ac_optarg" ;;
561
562 -sharedstatedir | --sharedstatedir | --sharedstatedi \
563 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
564 | --sharedst | --shareds | --shared | --share | --shar \
565 | --sha | --sh)
566 ac_prev=sharedstatedir ;;
567 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
568 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
569 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
570 | --sha=* | --sh=*)
571 sharedstatedir="$ac_optarg" ;;
572
573 -site | --site | --sit)
574 ac_prev=site ;;
575 -site=* | --site=* | --sit=*)
576 site="$ac_optarg" ;;
577
578 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
579 ac_prev=srcdir ;;
580 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
581 srcdir="$ac_optarg" ;;
582
583 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
584 | --syscon | --sysco | --sysc | --sys | --sy)
585 ac_prev=sysconfdir ;;
586 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
587 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
588 sysconfdir="$ac_optarg" ;;
589
590 -target | --target | --targe | --targ | --tar | --ta | --t)
591 ac_prev=target ;;
592 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
593 target="$ac_optarg" ;;
594
595 -v | -verbose | --verbose | --verbos | --verbo | --verb)
596 verbose=yes ;;
597
598 -version | --version | --versio | --versi | --vers)
2224580a 599 echo "configure generated by autoconf version 2.13"
10f2d63a
VZ
600 exit 0 ;;
601
602 -with-* | --with-*)
603 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
604 # Reject names that are not valid shell variable names.
605 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
606 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
607 fi
608 ac_package=`echo $ac_package| sed 's/-/_/g'`
609 case "$ac_option" in
610 *=*) ;;
611 *) ac_optarg=yes ;;
612 esac
613 eval "with_${ac_package}='$ac_optarg'" ;;
614
615 -without-* | --without-*)
616 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
617 # Reject names that are not valid shell variable names.
618 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
619 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
620 fi
621 ac_package=`echo $ac_package| sed 's/-/_/g'`
622 eval "with_${ac_package}=no" ;;
623
624 --x)
625 # Obsolete; use --with-x.
626 with_x=yes ;;
627
628 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
629 | --x-incl | --x-inc | --x-in | --x-i)
630 ac_prev=x_includes ;;
631 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
632 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
633 x_includes="$ac_optarg" ;;
634
635 -x-libraries | --x-libraries | --x-librarie | --x-librari \
636 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
637 ac_prev=x_libraries ;;
638 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
639 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
640 x_libraries="$ac_optarg" ;;
641
642 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
643 ;;
644
645 *)
646 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
647 echo "configure: warning: $ac_option: invalid host type" 1>&2
648 fi
649 if test "x$nonopt" != xNONE; then
650 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
651 fi
652 nonopt="$ac_option"
653 ;;
654
655 esac
656done
657
658if test -n "$ac_prev"; then
659 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
660fi
661
662trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
663
664# File descriptor usage:
665# 0 standard input
666# 1 file creation
667# 2 errors and warnings
668# 3 some systems may open it to /dev/tty
669# 4 used on the Kubota Titan
670# 6 checking for... messages and results
671# 5 compiler messages saved in config.log
672if test "$silent" = yes; then
673 exec 6>/dev/null
674else
675 exec 6>&1
676fi
677exec 5>./config.log
678
679echo "\
680This file contains any messages produced by compilers while
681running configure, to aid debugging if configure makes a mistake.
682" 1>&5
683
684# Strip out --no-create and --no-recursion so they do not pile up.
685# Also quote any args containing shell metacharacters.
686ac_configure_args=
687for ac_arg
688do
689 case "$ac_arg" in
690 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
691 | --no-cr | --no-c) ;;
692 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
693 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
694 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
695 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
696 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
697 esac
698done
699
700# NLS nuisances.
701# Only set these to C if already set. These must not be set unconditionally
702# because not all systems understand e.g. LANG=C (notably SCO).
703# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
704# Non-C LC_CTYPE values break the ctype check.
705if test "${LANG+set}" = set; then LANG=C; export LANG; fi
706if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
707if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
708if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
709
710# confdefs.h avoids OS command line length limits that DEFS can exceed.
711rm -rf conftest* confdefs.h
712# AIX cpp loses on an empty file, so make sure it contains at least a newline.
713echo > confdefs.h
714
715# A filename unique to this package, relative to the directory that
716# configure is in, which we can look for to find out if srcdir is correct.
717ac_unique_file=wx-config.in
718
719# Find the source files, if location was not specified.
720if test -z "$srcdir"; then
721 ac_srcdir_defaulted=yes
722 # Try the directory containing this script, then its parent.
723 ac_prog=$0
724 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
725 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
726 srcdir=$ac_confdir
727 if test ! -r $srcdir/$ac_unique_file; then
728 srcdir=..
729 fi
730else
731 ac_srcdir_defaulted=no
732fi
733if test ! -r $srcdir/$ac_unique_file; then
734 if test "$ac_srcdir_defaulted" = yes; then
735 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
736 else
737 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
738 fi
739fi
740srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
741
742# Prefer explicitly selected file to automatically selected ones.
743if test -z "$CONFIG_SITE"; then
744 if test "x$prefix" != xNONE; then
745 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
746 else
747 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
748 fi
749fi
750for ac_site_file in $CONFIG_SITE; do
751 if test -r "$ac_site_file"; then
752 echo "loading site script $ac_site_file"
753 . "$ac_site_file"
754 fi
755done
756
757if test -r "$cache_file"; then
758 echo "loading cache $cache_file"
759 . $cache_file
760else
761 echo "creating cache $cache_file"
762 > $cache_file
763fi
764
765ac_ext=c
766# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
767ac_cpp='$CPP $CPPFLAGS'
768ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
769ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
770cross_compiling=$ac_cv_prog_cc_cross
771
772ac_exeext=
773ac_objext=o
774if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
775 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
776 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
777 ac_n= ac_c='
778' ac_t=' '
779 else
780 ac_n=-n ac_c= ac_t=
781 fi
782else
783 ac_n= ac_c='\c' ac_t=
784fi
785
786
787
7c66a493
VZ
788ac_aux_dir=
789for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
790 if test -f $ac_dir/install-sh; then
791 ac_aux_dir=$ac_dir
792 ac_install_sh="$ac_aux_dir/install-sh -c"
793 break
794 elif test -f $ac_dir/install.sh; then
795 ac_aux_dir=$ac_dir
796 ac_install_sh="$ac_aux_dir/install.sh -c"
797 break
798 fi
799done
800if test -z "$ac_aux_dir"; then
801 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
802fi
803ac_config_guess=$ac_aux_dir/config.guess
804ac_config_sub=$ac_aux_dir/config.sub
805ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
806
807
808# Do some error checking and defaulting for the host and target type.
809# The inputs are:
810# configure --host=HOST --target=TARGET --build=BUILD NONOPT
811#
812# The rules are:
813# 1. You are not allowed to specify --host, --target, and nonopt at the
814# same time.
815# 2. Host defaults to nonopt.
816# 3. If nonopt is not specified, then host defaults to the current host,
817# as determined by config.guess.
818# 4. Target and build default to nonopt.
819# 5. If nonopt is not specified, then target and build default to host.
820
821# The aliases save the names the user supplied, while $host etc.
822# will get canonicalized.
823case $host---$target---$nonopt in
824NONE---*---* | *---NONE---* | *---*---NONE) ;;
825*) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
826esac
827
828
829# Make sure we can run config.sub.
830if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
831else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
832fi
833
834echo $ac_n "checking host system type""... $ac_c" 1>&6
835echo "configure:836: checking host system type" >&5
836
837host_alias=$host
838case "$host_alias" in
839NONE)
840 case $nonopt in
841 NONE)
842 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
843 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
844 fi ;;
845 *) host_alias=$nonopt ;;
846 esac ;;
847esac
848
849host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
850host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
851host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
852host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
853echo "$ac_t""$host" 1>&6
854
855echo $ac_n "checking target system type""... $ac_c" 1>&6
856echo "configure:857: checking target system type" >&5
857
858target_alias=$target
859case "$target_alias" in
860NONE)
861 case $nonopt in
862 NONE) target_alias=$host_alias ;;
863 *) target_alias=$nonopt ;;
864 esac ;;
865esac
866
867target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
868target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
869target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
870target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
871echo "$ac_t""$target" 1>&6
872
873echo $ac_n "checking build system type""... $ac_c" 1>&6
874echo "configure:875: checking build system type" >&5
875
876build_alias=$build
877case "$build_alias" in
878NONE)
879 case $nonopt in
880 NONE) build_alias=$host_alias ;;
881 *) build_alias=$nonopt ;;
882 esac ;;
883esac
884
885build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
886build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
887build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
888build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
889echo "$ac_t""$build" 1>&6
890
891test "$host_alias" != "$target_alias" &&
892 test "$program_prefix$program_suffix$program_transform_name" = \
893 NONENONEs,x,x, &&
894 program_prefix=${target_alias}-
895
896
10f2d63a
VZ
897
898WX_MAJOR_VERSION_NUMBER=2
899WX_MINOR_VERSION_NUMBER=1
88413fec 900WX_RELEASE_NUMBER=13
10f2d63a
VZ
901
902WX_INTERFACE_AGE=0
903WX_BINARY_AGE=0
904
905WX_VERSION=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER.$WX_RELEASE_NUMBER
906
907WX_RELEASE=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER
908WX_CURRENT=`expr $WX_RELEASE_NUMBER - $WX_INTERFACE_AGE`
909WX_REVISION=$WX_INTERFACE_AGE
910WX_AGE=`expr $WX_BINARY_AGE - $WX_INTERFACE_AGE`
911
912
913USE_UNIX=1
914USE_WIN32=0
b12915c1
VZ
915USE_BEOS=0
916
10f2d63a
VZ
917USE_LINUX=
918USE_SGI=
919USE_HPUX=
920USE_SYSV=
921USE_SVR4=
922USE_AIX=
923USE_SUN=
924USE_SOLARIS=
925USE_SUNOS=
926USE_ALPHA=
927USE_OSF=
928USE_BSD=
929USE_FREEBSD=
930USE_VMS=
931USE_ULTRIX=
932USE_CYGWIN=
933USE_MINGW=
934USE_DATA_GENERAL=
935
ab9b9eab
VZ
936NEEDS_D_REENTRANT_FOR_R_FUNCS=0
937
e07802fc 938ALL_TOOLKITS="CYGWIN GTK MINGW MOTIF WINE PM"
10f2d63a
VZ
939
940DEFAULT_wxUSE_GTK=0
941DEFAULT_wxUSE_MOTIF=0
942DEFAULT_wxUSE_MSW=0
943DEFAULT_wxUSE_WINE=0
e07802fc 944DEFAULT_wxUSE_PM=0
10f2d63a
VZ
945
946DEFAULT_DEFAULT_wxUSE_GTK=0
947DEFAULT_DEFAULT_wxUSE_MOTIF=0
948DEFAULT_DEFAULT_wxUSE_MSW=0
949DEFAULT_DEFAULT_wxUSE_WINE=0
e07802fc 950DEFAULT_DEFAULT_wxUSE_PM=0
10f2d63a
VZ
951
952case "${host}" in
953 *-hp-hpux* )
954 USE_HPUX=1
955 DEFAULT_DEFAULT_wxUSE_MOTIF=1
ab9b9eab 956 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
10f2d63a
VZ
957 cat >> confdefs.h <<\EOF
958#define __HPUX__ 1
959EOF
960
961 ;;
962 *-*-linux* )
963 USE_LINUX=1
964 cat >> confdefs.h <<\EOF
965#define __LINUX__ 1
966EOF
967
968 TMP=`uname -m`
969 if test "x$TMP" = "xalpha"; then
970 USE_ALPHA=1
971 cat >> confdefs.h <<\EOF
972#define __ALPHA__ 1
973EOF
974
975 fi
976 DEFAULT_DEFAULT_wxUSE_GTK=1
977 ;;
978 *-*-irix5* | *-*-irix6* )
979 USE_SGI=1
980 USE_SVR4=1
981 cat >> confdefs.h <<\EOF
982#define __SGI__ 1
983EOF
984
985 cat >> confdefs.h <<\EOF
986#define __SVR4__ 1
987EOF
988
989 DEFAULT_DEFAULT_wxUSE_MOTIF=1
990 ;;
991 *-*-solaris2* )
992 USE_SUN=1
993 USE_SOLARIS=1
994 USE_SVR4=1
995 cat >> confdefs.h <<\EOF
996#define __SUN__ 1
997EOF
998
999 cat >> confdefs.h <<\EOF
1000#define __SOLARIS__ 1
1001EOF
1002
1003 cat >> confdefs.h <<\EOF
1004#define __SVR4__ 1
1005EOF
1006
1007 DEFAULT_DEFAULT_wxUSE_MOTIF=1
ab9b9eab 1008 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
10f2d63a
VZ
1009 ;;
1010 *-*-sunos4* )
1011 USE_SUN=1
1012 USE_SUNOS=1
1013 USE_BSD=1
1014 cat >> confdefs.h <<\EOF
1015#define __SUN__ 1
1016EOF
1017
1018 cat >> confdefs.h <<\EOF
1019#define __SUNOS__ 1
1020EOF
1021
1022 cat >> confdefs.h <<\EOF
1023#define __BSD__ 1
1024EOF
1025
1026 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1027 ;;
1028 *-*-freebsd* | *-*-netbsd*)
1029 USE_BSD=1
1030 USE_FREEBSD=1
1031 cat >> confdefs.h <<\EOF
1032#define __FREEBSD__ 1
1033EOF
1034
1035 cat >> confdefs.h <<\EOF
1036#define __BSD__ 1
1037EOF
1038
1039 DEFAULT_DEFAULT_wxUSE_GTK=1
1040 ;;
1041 *-*-osf* )
1042 USE_ALPHA=1
1043 USE_OSF=1
1044 cat >> confdefs.h <<\EOF
1045#define __ALPHA__ 1
1046EOF
1047
1048 cat >> confdefs.h <<\EOF
1049#define __OSF__ 1
1050EOF
1051
1052 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1053 ;;
1054 *-*-dgux5* )
1055 USE_ALPHA=1
1056 USE_SVR4=1
1057 cat >> confdefs.h <<\EOF
1058#define __ALPHA__ 1
1059EOF
1060
1061 cat >> confdefs.h <<\EOF
1062#define __SVR4__ 1
1063EOF
1064
1065 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1066 ;;
1067 *-*-sysv5* )
1068 USE_SYSV=1
1069 USE_SVR4=1
1070 cat >> confdefs.h <<\EOF
1071#define __SYSV__ 1
1072EOF
1073
1074 cat >> confdefs.h <<\EOF
1075#define __SVR4__ 1
1076EOF
1077
1078 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1079 ;;
1080 *-*-aix* )
1081 USE_AIX=1
1082 USE_SYSV=1
1083 USE_SVR4=1
1084 cat >> confdefs.h <<\EOF
1085#define __AIX__ 1
1086EOF
1087
1088 cat >> confdefs.h <<\EOF
1089#define __SYSV__ 1
1090EOF
1091
1092 cat >> confdefs.h <<\EOF
1093#define __SVR4__ 1
1094EOF
1095
1096 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1097 ;;
1098
7eef8db2 1099 *-*-cygwin32* | *-*-mingw32* )
10f2d63a
VZ
1100 USE_UNIX=0
1101 USE_WIN32=1
1102 cat >> confdefs.h <<\EOF
1103#define __WIN32__ 1
1104EOF
1105
1106 cat >> confdefs.h <<\EOF
1107#define __WIN95__ 1
1108EOF
1109
1110 cat >> confdefs.h <<\EOF
1111#define __WINDOWS__ 1
1112EOF
1113
1114 cat >> confdefs.h <<\EOF
1115#define __GNUWIN32__ 1
1116EOF
1117
1118 cat >> confdefs.h <<\EOF
1119#define STRICT 1
1120EOF
1121
1122 cat >> confdefs.h <<\EOF
1123#define WINVER 0x0400
1124EOF
1125
cf27ef00 1126 PROGRAM_EXT=".exe"
10f2d63a
VZ
1127 DEFAULT_DEFAULT_wxUSE_MSW=1
1128 ;;
1129
1130 *-pc-os2_emx )
1131 cat >> confdefs.h <<\EOF
1132#define __EMX__ 1
1133EOF
1134
cf27ef00 1135 PROGRAM_EXT=".exe"
e07802fc 1136 DEFAULT_DEFAULT_wxUSE_PM=1
10f2d63a
VZ
1137 ;;
1138
b12915c1
VZ
1139 *-*-beos* )
1140 USE_BEOS=1
1141 cat >> confdefs.h <<\EOF
1142#define __BEOS__ 1
1143EOF
1144
1145 ;;
1146
10f2d63a
VZ
1147 *)
1148 { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; }
1149esac
1150
1151if test "$USE_UNIX" = 1 ; then
b12915c1
VZ
1152 wxUSE_UNIX=yes
1153 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1154#define __UNIX__ 1
1155EOF
1156
b12915c1
VZ
1157
1158 SRC_SUBDIRS="$SRC_SUBDIRS unix"
1159 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS unix"
1160fi
1161
1162if test "$USE_BEOS" = 1; then
1163 SRC_SUBDIRS="$SRC_SUBDIRS be"
1164 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS be"
10f2d63a
VZ
1165fi
1166
1167if test "$USE_LINUX" = 1; then
1168 echo $ac_n "checking for gettext in -lc""... $ac_c" 1>&6
7c66a493 1169echo "configure:1170: checking for gettext in -lc" >&5
10f2d63a
VZ
1170ac_lib_var=`echo c'_'gettext | sed 'y%./+-%__p_%'`
1171if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1172 echo $ac_n "(cached) $ac_c" 1>&6
1173else
1174 ac_save_LIBS="$LIBS"
1175LIBS="-lc $LIBS"
1176cat > conftest.$ac_ext <<EOF
7c66a493 1177#line 1178 "configure"
10f2d63a
VZ
1178#include "confdefs.h"
1179/* Override any gcc2 internal prototype to avoid an error. */
1180/* We use char because int might match the return type of a gcc2
1181 builtin and then its argument prototype would still apply. */
1182char gettext();
1183
1184int main() {
1185gettext()
1186; return 0; }
1187EOF
7c66a493 1188if { (eval echo configure:1189: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
1189 rm -rf conftest*
1190 eval "ac_cv_lib_$ac_lib_var=yes"
1191else
1192 echo "configure: failed program was:" >&5
1193 cat conftest.$ac_ext >&5
1194 rm -rf conftest*
1195 eval "ac_cv_lib_$ac_lib_var=no"
1196fi
1197rm -f conftest*
1198LIBS="$ac_save_LIBS"
1199
1200fi
1201if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1202 echo "$ac_t""yes" 1>&6
1203 cat >> confdefs.h <<\EOF
1204#define wxHAVE_GLIBC2 1
1205EOF
1206
1207else
1208 echo "$ac_t""no" 1>&6
1209fi
1210
1211fi
1212
1213
1214
1215
1216 wx_arg_cache_file="configarg.cache"
1217 echo "loading argument cache $wx_arg_cache_file"
1218 rm -f ${wx_arg_cache_file}.tmp
1219 touch ${wx_arg_cache_file}.tmp
1220 touch ${wx_arg_cache_file}
1221
1222
1223DEBUG_CONFIGURE=0
1224if test $DEBUG_CONFIGURE = 1; then
1225 DEFAULT_wxUSE_THREADS=yes
1226
1227 DEFAULT_wxUSE_SHARED=yes
1228 DEFAULT_wxUSE_OPTIMISE=yes
1229 DEFAULT_wxUSE_PROFILE=no
1230 DEFAULT_wxUSE_NO_DEPS=no
1231 DEFAULT_wxUSE_NO_RTTI=no
1232 DEFAULT_wxUSE_NO_EXCEPTIONS=no
1233 DEFAULT_wxUSE_PERMISSIVE=no
1234 DEFAULT_wxUSE_DEBUG_FLAG=yes
1235 DEFAULT_wxUSE_DEBUG_INFO=yes
1236 DEFAULT_wxUSE_DEBUG_GDB=yes
1237 DEFAULT_wxUSE_MEM_TRACING=no
1238 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1239 DEFAULT_wxUSE_DMALLOC=no
1240 DEFAULT_wxUSE_APPLE_IEEE=no
1241
1242 DEFAULT_wxUSE_LOG=yes
1243
1244 DEFAULT_wxUSE_GUI=yes
1245
1246 DEFAULT_wxUSE_ZLIB=no
1247 DEFAULT_wxUSE_LIBPNG=no
1248 DEFAULT_wxUSE_LIBJPEG=no
c7a2bf27 1249 DEFAULT_wxUSE_LIBTIFF=no
10f2d63a
VZ
1250 DEFAULT_wxUSE_ODBC=no
1251
1252 DEFAULT_wxUSE_STD_IOSTREAM=no
1253 DEFAULT_wxUSE_FILE=no
1254 DEFAULT_wxUSE_TEXTFILE=no
1255 DEFAULT_wxUSE_TIMEDATE=no
1256 DEFAULT_wxUSE_WAVE=no
1257 DEFAULT_wxUSE_INTL=no
1258 DEFAULT_wxUSE_CONFIG=no
1259 DEFAULT_wxUSE_STREAMS=no
1260 DEFAULT_wxUSE_SOCKETS=no
1261 DEFAULT_wxUSE_DIALUP_MANAGER=no
1262 DEFAULT_wxUSE_SERIAL=no
1263 DEFAULT_wxUSE_JOYSTICK=no
1264 DEFAULT_wxUSE_DYNLIB_CLASS=no
1265 DEFAULT_wxUSE_LONGLONG=no
1266
1267 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
1268 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
1269 DEFAULT_wxUSE_POSTSCRIPT=no
1270
1271 DEFAULT_wxUSE_X_RESOURCES=no
1272 DEFAULT_wxUSE_CLIPBOARD=no
1273 DEFAULT_wxUSE_TOOLTIPS=no
1274 DEFAULT_wxUSE_DRAG_AND_DROP=no
1275 DEFAULT_wxUSE_SPLINES=no
1276
1277 DEFAULT_wxUSE_MDI_ARCHITECTURE=no
1278 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
1279 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
1280
1281 DEFAULT_wxUSE_PROLOGIO=no
1282 DEFAULT_wxUSE_RESOURCES=no
1283 DEFAULT_wxUSE_CONSTRAINTS=no
1284 DEFAULT_wxUSE_IPC=no
1285 DEFAULT_wxUSE_HELP=no
1286 DEFAULT_wxUSE_WXTREE=no
1287 DEFAULT_wxUSE_METAFILE=no
1288
1289 DEFAULT_wxUSE_COMMONDLGS=no
1290 DEFAULT_wxUSE_DIRDLG=no
1291 DEFAULT_wxUSE_TEXTDLG=no
1292 DEFAULT_wxUSE_STARTUP_TIPS=no
1293 DEFAULT_wxUSE_PROGRESSDLG=no
1294 DEFAULT_wxUSE_MINIFRAME=no
1295 DEFAULT_wxUSE_HTML=no
1296 DEFAULT_wxUSE_FS_INET=no
1297 DEFAULT_wxUSE_FS_ZIP=no
1298 DEFAULT_wxUSE_BUSYINFO=no
1299 DEFAULT_wxUSE_ZIPSTREAM=no
1300 DEFAULT_wxUSE_VALIDATORS=yes
1301
1302 DEFAULT_wxUSE_ACCEL=no
1303 DEFAULT_wxUSE_CARET=no
1304 DEFAULT_wxUSE_BMPBUTTON=no
1305 DEFAULT_wxUSE_CHECKBOX=no
1306 DEFAULT_wxUSE_CHECKLST=no
1307 DEFAULT_wxUSE_CHOICE=yes
1308 DEFAULT_wxUSE_COMBOBOX=no
1309 DEFAULT_wxUSE_GAUGE=no
1310 DEFAULT_wxUSE_GRID=no
1311 DEFAULT_wxUSE_NEW_GRID=no
1312 DEFAULT_wxUSE_IMAGLIST=no
1313 DEFAULT_wxUSE_LISTBOX=no
1314 DEFAULT_wxUSE_LISTCTRL=no
1315 DEFAULT_wxUSE_NOTEBOOK=no
1316 DEFAULT_wxUSE_RADIOBOX=no
1317 DEFAULT_wxUSE_RADIOBTN=no
1318 DEFAULT_wxUSE_SASH=no
1319 DEFAULT_wxUSE_SCROLLBAR=no
1320 DEFAULT_wxUSE_SLIDER=no
1321 DEFAULT_wxUSE_SPINBTN=no
56cfaa52 1322 DEFAULT_wxUSE_SPINCTRL=no
10f2d63a
VZ
1323 DEFAULT_wxUSE_SPLITTER=no
1324 DEFAULT_wxUSE_STATBMP=no
1325 DEFAULT_wxUSE_STATBOX=no
1326 DEFAULT_wxUSE_STATLINE=no
1327 DEFAULT_wxUSE_STATUSBAR=yes
1328 DEFAULT_wxUSE_TABDIALOG=no
1329 DEFAULT_wxUSE_TOOLBAR=no
360d6699
VZ
1330 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
1331 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
10f2d63a
VZ
1332 DEFAULT_wxUSE_TREECTRL=no
1333
1334 DEFAULT_wxUSE_UNICODE=no
1335 DEFAULT_wxUSE_WCSRTOMBS=no
1336
1337 DEFAULT_wxUSE_GIF=no
1338 DEFAULT_wxUSE_PCX=no
1339 DEFAULT_wxUSE_PNM=no
1340else
1341 DEFAULT_wxUSE_THREADS=yes
1342
1343 DEFAULT_wxUSE_SHARED=yes
1344 DEFAULT_wxUSE_OPTIMISE=yes
1345 DEFAULT_wxUSE_PROFILE=no
1346 DEFAULT_wxUSE_NO_DEPS=no
1347 DEFAULT_wxUSE_NO_RTTI=no
1348 DEFAULT_wxUSE_NO_EXCEPTIONS=no
1349 DEFAULT_wxUSE_PERMISSIVE=no
1350 DEFAULT_wxUSE_DEBUG_FLAG=no
1351 DEFAULT_wxUSE_DEBUG_INFO=no
1352 DEFAULT_wxUSE_DEBUG_GDB=no
1353 DEFAULT_wxUSE_MEM_TRACING=no
1354 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1355 DEFAULT_wxUSE_DMALLOC=no
1356 DEFAULT_wxUSE_APPLE_IEEE=yes
1357
1358 DEFAULT_wxUSE_LOG=yes
1359
1360 DEFAULT_wxUSE_GUI=yes
1361
1362 DEFAULT_wxUSE_ZLIB=yes
1363 DEFAULT_wxUSE_LIBPNG=yes
1364 DEFAULT_wxUSE_LIBJPEG=yes
b47c832e 1365 DEFAULT_wxUSE_LIBTIFF=yes
16b52fa1 1366 DEFAULT_wxUSE_ODBC=no
10f2d63a
VZ
1367
1368 DEFAULT_wxUSE_STD_IOSTREAM=no
1369 DEFAULT_wxUSE_FILE=yes
1370 DEFAULT_wxUSE_TEXTFILE=yes
1371 DEFAULT_wxUSE_TIMEDATE=yes
1372 DEFAULT_wxUSE_WAVE=no
1373 DEFAULT_wxUSE_INTL=yes
1374 DEFAULT_wxUSE_CONFIG=yes
1375 DEFAULT_wxUSE_STREAMS=yes
1376 DEFAULT_wxUSE_SOCKETS=yes
1377 DEFAULT_wxUSE_DIALUP_MANAGER=yes
1378 DEFAULT_wxUSE_SERIAL=yes
1379 DEFAULT_wxUSE_JOYSTICK=yes
1380 DEFAULT_wxUSE_DYNLIB_CLASS=yes
b685cd9b 1381 DEFAULT_wxUSE_LONGLONG=yes
10f2d63a
VZ
1382
1383 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
1384 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
1385 DEFAULT_wxUSE_POSTSCRIPT=yes
1386
1387 DEFAULT_wxUSE_X_RESOURCES=no
1388 DEFAULT_wxUSE_CLIPBOARD=yes
1389 DEFAULT_wxUSE_TOOLTIPS=yes
1390 DEFAULT_wxUSE_DRAG_AND_DROP=yes
1391 DEFAULT_wxUSE_SPLINES=yes
1392
1393 DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
1394 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
1395 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
1396
1397 DEFAULT_wxUSE_PROLOGIO=yes
1398 DEFAULT_wxUSE_RESOURCES=yes
1399 DEFAULT_wxUSE_CONSTRAINTS=yes
1400 DEFAULT_wxUSE_IPC=yes
1401 DEFAULT_wxUSE_HELP=yes
1402 DEFAULT_wxUSE_WXTREE=yes
1403 DEFAULT_wxUSE_METAFILE=yes
1404
1405 DEFAULT_wxUSE_COMMONDLGS=yes
1406 DEFAULT_wxUSE_DIRDLG=yes
1407 DEFAULT_wxUSE_TEXTDLG=yes
1408 DEFAULT_wxUSE_STARTUP_TIPS=yes
1409 DEFAULT_wxUSE_PROGRESSDLG=yes
1410 DEFAULT_wxUSE_MINIFRAME=yes
1411 DEFAULT_wxUSE_HTML=yes
1412 DEFAULT_wxUSE_FS_INET=yes
1413 DEFAULT_wxUSE_FS_ZIP=yes
1414 DEFAULT_wxUSE_BUSYINFO=yes
1415 DEFAULT_wxUSE_ZIPSTREAM=yes
1416 DEFAULT_wxUSE_VALIDATORS=yes
1417
1418 DEFAULT_wxUSE_ACCEL=yes
1419 DEFAULT_wxUSE_CARET=yes
1420 DEFAULT_wxUSE_BMPBUTTON=yes
1421 DEFAULT_wxUSE_CHECKBOX=yes
1422 DEFAULT_wxUSE_CHECKLST=yes
1423 DEFAULT_wxUSE_CHOICE=yes
1424 DEFAULT_wxUSE_COMBOBOX=yes
1425 DEFAULT_wxUSE_GAUGE=yes
1426 DEFAULT_wxUSE_GRID=yes
fc9c7c09 1427 DEFAULT_wxUSE_NEW_GRID=no
10f2d63a
VZ
1428 DEFAULT_wxUSE_IMAGLIST=yes
1429 DEFAULT_wxUSE_LISTBOX=yes
1430 DEFAULT_wxUSE_LISTCTRL=yes
1431 DEFAULT_wxUSE_NOTEBOOK=yes
1432 DEFAULT_wxUSE_RADIOBOX=yes
1433 DEFAULT_wxUSE_RADIOBTN=yes
1434 DEFAULT_wxUSE_SASH=yes
1435 DEFAULT_wxUSE_SCROLLBAR=yes
1436 DEFAULT_wxUSE_SLIDER=yes
1437 DEFAULT_wxUSE_SPINBTN=yes
56cfaa52 1438 DEFAULT_wxUSE_SPINCTRL=yes
10f2d63a
VZ
1439 DEFAULT_wxUSE_SPLITTER=yes
1440 DEFAULT_wxUSE_STATBMP=yes
1441 DEFAULT_wxUSE_STATBOX=yes
1442 DEFAULT_wxUSE_STATLINE=yes
1443 DEFAULT_wxUSE_STATUSBAR=yes
1444 DEFAULT_wxUSE_TABDIALOG=no
1445 DEFAULT_wxUSE_TOOLBAR=yes
360d6699
VZ
1446 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
1447 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
10f2d63a
VZ
1448 DEFAULT_wxUSE_TREECTRL=yes
1449
1450 DEFAULT_wxUSE_UNICODE=no
1451 DEFAULT_wxUSE_WCSRTOMBS=no
1452
1453 DEFAULT_wxUSE_GIF=yes
1454 DEFAULT_wxUSE_PCX=yes
1455 DEFAULT_wxUSE_PNM=yes
1456fi
1457
1458
1459
1460for toolkit in `echo $ALL_TOOLKITS`; do
1461 LINE=`grep "wxUSE_$toolkit" ${wx_arg_cache_file}`
1462 if test "x$LINE" != x ; then
1463 has_toolkit_in_cache=1
1464 eval "DEFAULT_$LINE"
1465 eval "CACHE_$toolkit=1"
1466 fi
1467done
1468
1469
1470
1471 echo $ac_n "checking "for --enable-gui"""... $ac_c" 1>&6
7c66a493 1472echo "configure:1473: checking "for --enable-gui"" >&5
10f2d63a
VZ
1473 no_cache=0
1474 # Check whether --enable-gui or --disable-gui was given.
1475if test "${enable_gui+set}" = set; then
1476 enableval="$enable_gui"
1477
1478 if test "$enableval" = yes; then
1479 ac_cv_use_gui='wxUSE_GUI=yes'
1480 else
1481 ac_cv_use_gui='wxUSE_GUI=no'
1482 fi
1483
1484else
1485
1486 LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
1487 if test "x$LINE" != x ; then
1488 eval "DEFAULT_$LINE"
1489 else
1490 no_cache=1
1491 fi
1492
1493 ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
1494
1495fi
1496
1497
1498 eval "$ac_cv_use_gui"
1499 if test "$no_cache" != 1; then
1500 echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
1501 fi
1502
1503 if test "$wxUSE_GUI" = yes; then
1504 echo "$ac_t""yes" 1>&6
1505 else
1506 echo "$ac_t""no" 1>&6
1507 fi
1508
1509
b12915c1 1510if test "$wxUSE_GUI" = "yes"; then
10f2d63a
VZ
1511
1512# Check whether --with-gtk or --without-gtk was given.
1513if test "${with_gtk+set}" = set; then
1514 withval="$with_gtk"
1515 wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
1516fi
1517
1518# Check whether --with-motif or --without-motif was given.
1519if test "${with_motif+set}" = set; then
1520 withval="$with_motif"
1521 wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
1522fi
1523
1524# Check whether --with-wine or --without-wine was given.
1525if test "${with_wine+set}" = set; then
1526 withval="$with_wine"
1527 wxUSE_WINE="$withval" CACHE_WINE=1 TOOLKIT_GIVEN=1
1528fi
1529
1530# Check whether --with-cygwin or --without-cygwin was given.
1531if test "${with_cygwin+set}" = set; then
1532 withval="$with_cygwin"
1533 wxUSE_CYGWIN="$withval" CACHE_CYGWIN=1 TOOLKIT_GIVEN=1
1534fi
1535
1536# Check whether --with-mingw or --without-mingw was given.
1537if test "${with_mingw+set}" = set; then
1538 withval="$with_mingw"
1539 wxUSE_MINGW="$withval" CACHE_MINGW=1 TOOLKIT_GIVEN=1
1540fi
1541
e07802fc
VZ
1542# Check whether --with-pm or --without-pm was given.
1543if test "${with_pm+set}" = set; then
1544 withval="$with_pm"
1545 wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
1546fi
1547
10f2d63a
VZ
1548
1549# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
1550if test "${with_gtk_prefix+set}" = set; then
1551 withval="$with_gtk_prefix"
1552 gtk_config_prefix="$withval"
1553else
1554 gtk_config_prefix=""
1555fi
1556
1557# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
1558if test "${with_gtk_exec_prefix+set}" = set; then
1559 withval="$with_gtk_exec_prefix"
1560 gtk_config_exec_prefix="$withval"
1561else
1562 gtk_config_exec_prefix=""
1563fi
1564
1565
1566
b12915c1 1567 echo $ac_n "checking "for --with-libpng"""... $ac_c" 1>&6
7c66a493 1568echo "configure:1569: checking "for --with-libpng"" >&5
10f2d63a 1569 no_cache=0
b12915c1
VZ
1570 # Check whether --with-libpng or --without-libpng was given.
1571if test "${with_libpng+set}" = set; then
1572 withval="$with_libpng"
10f2d63a
VZ
1573
1574 if test "$withval" = yes; then
b12915c1 1575 ac_cv_use_libpng='wxUSE_LIBPNG=yes'
10f2d63a 1576 else
b12915c1 1577 ac_cv_use_libpng='wxUSE_LIBPNG=no'
10f2d63a
VZ
1578 fi
1579
1580else
1581
b12915c1 1582 LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
10f2d63a
VZ
1583 if test "x$LINE" != x ; then
1584 eval "DEFAULT_$LINE"
1585 else
1586 no_cache=1
1587 fi
1588
b12915c1 1589 ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
10f2d63a
VZ
1590
1591fi
1592
1593
b12915c1 1594 eval "$ac_cv_use_libpng"
10f2d63a 1595 if test "$no_cache" != 1; then
b12915c1 1596 echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
1597 fi
1598
b12915c1 1599 if test "$wxUSE_LIBPNG" = yes; then
10f2d63a
VZ
1600 echo "$ac_t""yes" 1>&6
1601 else
1602 echo "$ac_t""no" 1>&6
1603 fi
1604
1605
b12915c1 1606 echo $ac_n "checking "for --with-libjpeg"""... $ac_c" 1>&6
7c66a493 1607echo "configure:1608: checking "for --with-libjpeg"" >&5
10f2d63a 1608 no_cache=0
b12915c1
VZ
1609 # Check whether --with-libjpeg or --without-libjpeg was given.
1610if test "${with_libjpeg+set}" = set; then
1611 withval="$with_libjpeg"
10f2d63a
VZ
1612
1613 if test "$withval" = yes; then
b12915c1 1614 ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
10f2d63a 1615 else
b12915c1 1616 ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
10f2d63a
VZ
1617 fi
1618
1619else
1620
b12915c1 1621 LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
10f2d63a
VZ
1622 if test "x$LINE" != x ; then
1623 eval "DEFAULT_$LINE"
1624 else
1625 no_cache=1
1626 fi
1627
b12915c1 1628 ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
10f2d63a
VZ
1629
1630fi
1631
1632
b12915c1 1633 eval "$ac_cv_use_libjpeg"
10f2d63a 1634 if test "$no_cache" != 1; then
b12915c1 1635 echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
1636 fi
1637
b12915c1 1638 if test "$wxUSE_LIBJPEG" = yes; then
10f2d63a
VZ
1639 echo "$ac_t""yes" 1>&6
1640 else
1641 echo "$ac_t""no" 1>&6
1642 fi
1643
1644
b12915c1 1645 echo $ac_n "checking "for --with-libtiff"""... $ac_c" 1>&6
7c66a493 1646echo "configure:1647: checking "for --with-libtiff"" >&5
10f2d63a 1647 no_cache=0
b12915c1
VZ
1648 # Check whether --with-libtiff or --without-libtiff was given.
1649if test "${with_libtiff+set}" = set; then
1650 withval="$with_libtiff"
10f2d63a
VZ
1651
1652 if test "$withval" = yes; then
b12915c1 1653 ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
10f2d63a 1654 else
b12915c1 1655 ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
10f2d63a
VZ
1656 fi
1657
1658else
1659
b12915c1 1660 LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
10f2d63a
VZ
1661 if test "x$LINE" != x ; then
1662 eval "DEFAULT_$LINE"
1663 else
1664 no_cache=1
1665 fi
1666
b12915c1 1667 ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
10f2d63a
VZ
1668
1669fi
1670
1671
b12915c1 1672 eval "$ac_cv_use_libtiff"
10f2d63a 1673 if test "$no_cache" != 1; then
b12915c1 1674 echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
1675 fi
1676
b12915c1 1677 if test "$wxUSE_LIBTIFF" = yes; then
10f2d63a
VZ
1678 echo "$ac_t""yes" 1>&6
1679 else
1680 echo "$ac_t""no" 1>&6
1681 fi
1682
1683
b12915c1 1684 echo $ac_n "checking "for --with-opengl"""... $ac_c" 1>&6
7c66a493 1685echo "configure:1686: checking "for --with-opengl"" >&5
10f2d63a 1686 no_cache=0
b12915c1
VZ
1687 # Check whether --with-opengl or --without-opengl was given.
1688if test "${with_opengl+set}" = set; then
1689 withval="$with_opengl"
10f2d63a
VZ
1690
1691 if test "$withval" = yes; then
b12915c1 1692 ac_cv_use_opengl='wxUSE_OPENGL=yes'
10f2d63a 1693 else
b12915c1 1694 ac_cv_use_opengl='wxUSE_OPENGL=no'
10f2d63a
VZ
1695 fi
1696
1697else
1698
b12915c1 1699 LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
10f2d63a
VZ
1700 if test "x$LINE" != x ; then
1701 eval "DEFAULT_$LINE"
1702 else
1703 no_cache=1
1704 fi
1705
b12915c1 1706 ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
10f2d63a
VZ
1707
1708fi
1709
1710
b12915c1 1711 eval "$ac_cv_use_opengl"
10f2d63a 1712 if test "$no_cache" != 1; then
b12915c1 1713 echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
1714 fi
1715
b12915c1 1716 if test "$wxUSE_OPENGL" = yes; then
10f2d63a
VZ
1717 echo "$ac_t""yes" 1>&6
1718 else
1719 echo "$ac_t""no" 1>&6
1720 fi
1721
1722
b12915c1
VZ
1723fi
1724
1725
1726 echo $ac_n "checking "for --with-dmalloc"""... $ac_c" 1>&6
7c66a493 1727echo "configure:1728: checking "for --with-dmalloc"" >&5
c7a2bf27 1728 no_cache=0
b12915c1
VZ
1729 # Check whether --with-dmalloc or --without-dmalloc was given.
1730if test "${with_dmalloc+set}" = set; then
1731 withval="$with_dmalloc"
c7a2bf27
RR
1732
1733 if test "$withval" = yes; then
b12915c1 1734 ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
c7a2bf27 1735 else
b12915c1 1736 ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
c7a2bf27
RR
1737 fi
1738
1739else
1740
b12915c1 1741 LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
c7a2bf27
RR
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_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
c7a2bf27
RR
1749
1750fi
1751
1752
b12915c1 1753 eval "$ac_cv_use_dmalloc"
c7a2bf27 1754 if test "$no_cache" != 1; then
b12915c1 1755 echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
c7a2bf27
RR
1756 fi
1757
b12915c1 1758 if test "$wxUSE_DMALLOC" = yes; then
c7a2bf27
RR
1759 echo "$ac_t""yes" 1>&6
1760 else
1761 echo "$ac_t""no" 1>&6
1762 fi
1763
1764
b12915c1 1765 echo $ac_n "checking "for --with-zlib"""... $ac_c" 1>&6
7c66a493 1766echo "configure:1767: checking "for --with-zlib"" >&5
10f2d63a 1767 no_cache=0
b12915c1
VZ
1768 # Check whether --with-zlib or --without-zlib was given.
1769if test "${with_zlib+set}" = set; then
1770 withval="$with_zlib"
10f2d63a
VZ
1771
1772 if test "$withval" = yes; then
b12915c1 1773 ac_cv_use_zlib='wxUSE_ZLIB=yes'
10f2d63a 1774 else
b12915c1 1775 ac_cv_use_zlib='wxUSE_ZLIB=no'
10f2d63a
VZ
1776 fi
1777
1778else
1779
b12915c1 1780 LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
10f2d63a
VZ
1781 if test "x$LINE" != x ; then
1782 eval "DEFAULT_$LINE"
1783 else
1784 no_cache=1
1785 fi
1786
b12915c1 1787 ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
10f2d63a
VZ
1788
1789fi
1790
1791
b12915c1 1792 eval "$ac_cv_use_zlib"
10f2d63a 1793 if test "$no_cache" != 1; then
b12915c1 1794 echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
1795 fi
1796
b12915c1 1797 if test "$wxUSE_ZLIB" = yes; then
10f2d63a
VZ
1798 echo "$ac_t""yes" 1>&6
1799 else
1800 echo "$ac_t""no" 1>&6
1801 fi
1802
1803
1804 echo $ac_n "checking "for --with-odbc"""... $ac_c" 1>&6
7c66a493 1805echo "configure:1806: checking "for --with-odbc"" >&5
10f2d63a
VZ
1806 no_cache=0
1807 # Check whether --with-odbc or --without-odbc was given.
1808if test "${with_odbc+set}" = set; then
1809 withval="$with_odbc"
1810
1811 if test "$withval" = yes; then
1812 ac_cv_use_odbc='wxUSE_ODBC=yes'
1813 else
1814 ac_cv_use_odbc='wxUSE_ODBC=no'
1815 fi
1816
1817else
1818
1819 LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
1820 if test "x$LINE" != x ; then
1821 eval "DEFAULT_$LINE"
1822 else
1823 no_cache=1
1824 fi
1825
1826 ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
1827
1828fi
1829
1830
1831 eval "$ac_cv_use_odbc"
1832 if test "$no_cache" != 1; then
1833 echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
1834 fi
1835
1836 if test "$wxUSE_ODBC" = yes; then
1837 echo "$ac_t""yes" 1>&6
1838 else
1839 echo "$ac_t""no" 1>&6
1840 fi
1841
1842
1843
1844
1845
1846 echo $ac_n "checking "for --enable-shared"""... $ac_c" 1>&6
7c66a493 1847echo "configure:1848: checking "for --enable-shared"" >&5
10f2d63a
VZ
1848 no_cache=0
1849 # Check whether --enable-shared or --disable-shared was given.
1850if test "${enable_shared+set}" = set; then
1851 enableval="$enable_shared"
1852
1853 if test "$enableval" = yes; then
1854 ac_cv_use_shared='wxUSE_SHARED=yes'
1855 else
1856 ac_cv_use_shared='wxUSE_SHARED=no'
1857 fi
1858
1859else
1860
1861 LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
1862 if test "x$LINE" != x ; then
1863 eval "DEFAULT_$LINE"
1864 else
1865 no_cache=1
1866 fi
1867
1868 ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
1869
1870fi
1871
1872
1873 eval "$ac_cv_use_shared"
1874 if test "$no_cache" != 1; then
1875 echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
1876 fi
1877
1878 if test "$wxUSE_SHARED" = yes; then
1879 echo "$ac_t""yes" 1>&6
1880 else
1881 echo "$ac_t""no" 1>&6
1882 fi
1883
1884
1885 echo $ac_n "checking "for --enable-optimise"""... $ac_c" 1>&6
7c66a493 1886echo "configure:1887: checking "for --enable-optimise"" >&5
10f2d63a
VZ
1887 no_cache=0
1888 # Check whether --enable-optimise or --disable-optimise was given.
1889if test "${enable_optimise+set}" = set; then
1890 enableval="$enable_optimise"
1891
1892 if test "$enableval" = yes; then
1893 ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
1894 else
1895 ac_cv_use_optimise='wxUSE_OPTIMISE=no'
1896 fi
1897
1898else
1899
1900 LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
1901 if test "x$LINE" != x ; then
1902 eval "DEFAULT_$LINE"
1903 else
1904 no_cache=1
1905 fi
1906
1907 ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
1908
1909fi
1910
1911
1912 eval "$ac_cv_use_optimise"
1913 if test "$no_cache" != 1; then
1914 echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
1915 fi
1916
1917 if test "$wxUSE_OPTIMISE" = yes; then
1918 echo "$ac_t""yes" 1>&6
1919 else
1920 echo "$ac_t""no" 1>&6
1921 fi
1922
1923
1924 echo $ac_n "checking "for --enable-debug"""... $ac_c" 1>&6
7c66a493 1925echo "configure:1926: checking "for --enable-debug"" >&5
10f2d63a
VZ
1926 no_cache=0
1927 # Check whether --enable-debug or --disable-debug was given.
1928if test "${enable_debug+set}" = set; then
1929 enableval="$enable_debug"
1930
1931 if test "$enableval" = yes; then
1932 ac_cv_use_debug='wxUSE_DEBUG=yes'
1933 else
1934 ac_cv_use_debug='wxUSE_DEBUG=no'
1935 fi
1936
1937else
1938
1939 LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
1940 if test "x$LINE" != x ; then
1941 eval "DEFAULT_$LINE"
1942 else
1943 no_cache=1
1944 fi
1945
1946 ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
1947
1948fi
1949
1950
1951 eval "$ac_cv_use_debug"
1952 if test "$no_cache" != 1; then
1953 echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
1954 fi
1955
1956 if test "$wxUSE_DEBUG" = yes; then
1957 echo "$ac_t""yes" 1>&6
1958 else
1959 echo "$ac_t""no" 1>&6
1960 fi
1961
1962
1963if test "$wxUSE_DEBUG" = "yes"; then
1964 DEFAULT_wxUSE_DEBUG_FLAG=yes
1965 DEFAULT_wxUSE_DEBUG_INFO=yes
1966elif test "$wxUSE_DEBUG" = "no"; then
1967 DEFAULT_wxUSE_DEBUG_FLAG=no
1968 DEFAULT_wxUSE_DEBUG_INFO=no
1969fi
1970
1971
1972 echo $ac_n "checking "for --enable-debug_flag"""... $ac_c" 1>&6
7c66a493 1973echo "configure:1974: checking "for --enable-debug_flag"" >&5
10f2d63a
VZ
1974 no_cache=0
1975 # Check whether --enable-debug_flag or --disable-debug_flag was given.
1976if test "${enable_debug_flag+set}" = set; then
1977 enableval="$enable_debug_flag"
1978
1979 if test "$enableval" = yes; then
1980 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
1981 else
1982 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
1983 fi
1984
1985else
1986
1987 LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
1988 if test "x$LINE" != x ; then
1989 eval "DEFAULT_$LINE"
1990 else
1991 no_cache=1
1992 fi
1993
1994 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
1995
1996fi
1997
1998
1999 eval "$ac_cv_use_debug_flag"
2000 if test "$no_cache" != 1; then
2001 echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
2002 fi
2003
2004 if test "$wxUSE_DEBUG_FLAG" = yes; then
2005 echo "$ac_t""yes" 1>&6
2006 else
2007 echo "$ac_t""no" 1>&6
2008 fi
2009
2010
2011 echo $ac_n "checking "for --enable-debug_info"""... $ac_c" 1>&6
7c66a493 2012echo "configure:2013: checking "for --enable-debug_info"" >&5
10f2d63a
VZ
2013 no_cache=0
2014 # Check whether --enable-debug_info or --disable-debug_info was given.
2015if test "${enable_debug_info+set}" = set; then
2016 enableval="$enable_debug_info"
2017
2018 if test "$enableval" = yes; then
2019 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
2020 else
2021 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
2022 fi
2023
2024else
2025
2026 LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
2027 if test "x$LINE" != x ; then
2028 eval "DEFAULT_$LINE"
2029 else
2030 no_cache=1
2031 fi
2032
2033 ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
2034
2035fi
2036
2037
2038 eval "$ac_cv_use_debug_info"
2039 if test "$no_cache" != 1; then
2040 echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
2041 fi
2042
2043 if test "$wxUSE_DEBUG_INFO" = yes; then
2044 echo "$ac_t""yes" 1>&6
2045 else
2046 echo "$ac_t""no" 1>&6
2047 fi
2048
2049
2050 echo $ac_n "checking "for --enable-debug_gdb"""... $ac_c" 1>&6
7c66a493 2051echo "configure:2052: checking "for --enable-debug_gdb"" >&5
10f2d63a
VZ
2052 no_cache=0
2053 # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
2054if test "${enable_debug_gdb+set}" = set; then
2055 enableval="$enable_debug_gdb"
2056
2057 if test "$enableval" = yes; then
2058 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
2059 else
2060 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
2061 fi
2062
2063else
2064
2065 LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
2066 if test "x$LINE" != x ; then
2067 eval "DEFAULT_$LINE"
2068 else
2069 no_cache=1
2070 fi
2071
2072 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
2073
2074fi
2075
2076
2077 eval "$ac_cv_use_debug_gdb"
2078 if test "$no_cache" != 1; then
2079 echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
2080 fi
2081
2082 if test "$wxUSE_DEBUG_GDB" = yes; then
2083 echo "$ac_t""yes" 1>&6
2084 else
2085 echo "$ac_t""no" 1>&6
2086 fi
2087
2088
2089 echo $ac_n "checking "for --enable-debug_cntxt"""... $ac_c" 1>&6
7c66a493 2090echo "configure:2091: checking "for --enable-debug_cntxt"" >&5
10f2d63a
VZ
2091 no_cache=0
2092 # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
2093if test "${enable_debug_cntxt+set}" = set; then
2094 enableval="$enable_debug_cntxt"
2095
2096 if test "$enableval" = yes; then
2097 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
2098 else
2099 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
2100 fi
2101
2102else
2103
2104 LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
2105 if test "x$LINE" != x ; then
2106 eval "DEFAULT_$LINE"
2107 else
2108 no_cache=1
2109 fi
2110
2111 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
2112
2113fi
2114
2115
2116 eval "$ac_cv_use_debug_cntxt"
2117 if test "$no_cache" != 1; then
2118 echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
2119 fi
2120
2121 if test "$wxUSE_DEBUG_CONTEXT" = yes; then
2122 echo "$ac_t""yes" 1>&6
2123 else
2124 echo "$ac_t""no" 1>&6
2125 fi
2126
2127
2128 echo $ac_n "checking "for --enable-mem_tracing"""... $ac_c" 1>&6
7c66a493 2129echo "configure:2130: checking "for --enable-mem_tracing"" >&5
10f2d63a
VZ
2130 no_cache=0
2131 # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
2132if test "${enable_mem_tracing+set}" = set; then
2133 enableval="$enable_mem_tracing"
2134
2135 if test "$enableval" = yes; then
2136 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
2137 else
2138 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
2139 fi
2140
2141else
2142
2143 LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
2144 if test "x$LINE" != x ; then
2145 eval "DEFAULT_$LINE"
2146 else
2147 no_cache=1
2148 fi
2149
2150 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
2151
2152fi
2153
2154
2155 eval "$ac_cv_use_mem_tracing"
2156 if test "$no_cache" != 1; then
2157 echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
2158 fi
2159
2160 if test "$wxUSE_MEM_TRACING" = yes; then
2161 echo "$ac_t""yes" 1>&6
2162 else
2163 echo "$ac_t""no" 1>&6
2164 fi
2165
2166
2167 echo $ac_n "checking "for --enable-profile"""... $ac_c" 1>&6
7c66a493 2168echo "configure:2169: checking "for --enable-profile"" >&5
10f2d63a
VZ
2169 no_cache=0
2170 # Check whether --enable-profile or --disable-profile was given.
2171if test "${enable_profile+set}" = set; then
2172 enableval="$enable_profile"
2173
2174 if test "$enableval" = yes; then
2175 ac_cv_use_profile='wxUSE_PROFILE=yes'
2176 else
2177 ac_cv_use_profile='wxUSE_PROFILE=no'
2178 fi
2179
2180else
2181
2182 LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
2183 if test "x$LINE" != x ; then
2184 eval "DEFAULT_$LINE"
2185 else
2186 no_cache=1
2187 fi
2188
2189 ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
2190
2191fi
2192
2193
2194 eval "$ac_cv_use_profile"
2195 if test "$no_cache" != 1; then
2196 echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
2197 fi
2198
2199 if test "$wxUSE_PROFILE" = yes; then
2200 echo "$ac_t""yes" 1>&6
2201 else
2202 echo "$ac_t""no" 1>&6
2203 fi
2204
2205
2206 echo $ac_n "checking "for --enable-no_rtti"""... $ac_c" 1>&6
7c66a493 2207echo "configure:2208: checking "for --enable-no_rtti"" >&5
10f2d63a
VZ
2208 no_cache=0
2209 # Check whether --enable-no_rtti or --disable-no_rtti was given.
2210if test "${enable_no_rtti+set}" = set; then
2211 enableval="$enable_no_rtti"
2212
2213 if test "$enableval" = yes; then
2214 ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
2215 else
2216 ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
2217 fi
2218
2219else
2220
2221 LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
2222 if test "x$LINE" != x ; then
2223 eval "DEFAULT_$LINE"
2224 else
2225 no_cache=1
2226 fi
2227
2228 ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
2229
2230fi
2231
2232
2233 eval "$ac_cv_use_no_rtti"
2234 if test "$no_cache" != 1; then
2235 echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
2236 fi
2237
2238 if test "$wxUSE_NO_RTTI" = yes; then
2239 echo "$ac_t""yes" 1>&6
2240 else
2241 echo "$ac_t""no" 1>&6
2242 fi
2243
2244
2245 echo $ac_n "checking "for --enable-no_exceptions"""... $ac_c" 1>&6
7c66a493 2246echo "configure:2247: checking "for --enable-no_exceptions"" >&5
10f2d63a
VZ
2247 no_cache=0
2248 # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
2249if test "${enable_no_exceptions+set}" = set; then
2250 enableval="$enable_no_exceptions"
2251
2252 if test "$enableval" = yes; then
2253 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
2254 else
2255 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
2256 fi
2257
2258else
2259
2260 LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
2261 if test "x$LINE" != x ; then
2262 eval "DEFAULT_$LINE"
2263 else
2264 no_cache=1
2265 fi
2266
2267 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
2268
2269fi
2270
2271
2272 eval "$ac_cv_use_no_exceptions"
2273 if test "$no_cache" != 1; then
2274 echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
2275 fi
2276
2277 if test "$wxUSE_NO_EXCEPTIONS" = yes; then
2278 echo "$ac_t""yes" 1>&6
2279 else
2280 echo "$ac_t""no" 1>&6
2281 fi
2282
2283
2284 echo $ac_n "checking "for --enable-permissive"""... $ac_c" 1>&6
7c66a493 2285echo "configure:2286: checking "for --enable-permissive"" >&5
10f2d63a
VZ
2286 no_cache=0
2287 # Check whether --enable-permissive or --disable-permissive was given.
2288if test "${enable_permissive+set}" = set; then
2289 enableval="$enable_permissive"
2290
2291 if test "$enableval" = yes; then
2292 ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
2293 else
2294 ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
2295 fi
2296
2297else
2298
2299 LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
2300 if test "x$LINE" != x ; then
2301 eval "DEFAULT_$LINE"
2302 else
2303 no_cache=1
2304 fi
2305
2306 ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
2307
2308fi
2309
2310
2311 eval "$ac_cv_use_permissive"
2312 if test "$no_cache" != 1; then
2313 echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
2314 fi
2315
2316 if test "$wxUSE_PERMISSIVE" = yes; then
2317 echo "$ac_t""yes" 1>&6
2318 else
2319 echo "$ac_t""no" 1>&6
2320 fi
2321
2322
2323 echo $ac_n "checking "for --enable-no_deps"""... $ac_c" 1>&6
7c66a493 2324echo "configure:2325: checking "for --enable-no_deps"" >&5
10f2d63a
VZ
2325 no_cache=0
2326 # Check whether --enable-no_deps or --disable-no_deps was given.
2327if test "${enable_no_deps+set}" = set; then
2328 enableval="$enable_no_deps"
2329
2330 if test "$enableval" = yes; then
2331 ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
2332 else
2333 ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
2334 fi
2335
2336else
2337
2338 LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
2339 if test "x$LINE" != x ; then
2340 eval "DEFAULT_$LINE"
2341 else
2342 no_cache=1
2343 fi
2344
2345 ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
2346
2347fi
2348
2349
2350 eval "$ac_cv_use_no_deps"
2351 if test "$no_cache" != 1; then
2352 echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
2353 fi
2354
2355 if test "$wxUSE_NO_DEPS" = yes; then
2356 echo "$ac_t""yes" 1>&6
2357 else
2358 echo "$ac_t""no" 1>&6
2359 fi
2360
2361
2362
2363
2364 echo $ac_n "checking "for --enable-intl"""... $ac_c" 1>&6
7c66a493 2365echo "configure:2366: checking "for --enable-intl"" >&5
10f2d63a
VZ
2366 no_cache=0
2367 # Check whether --enable-intl or --disable-intl was given.
2368if test "${enable_intl+set}" = set; then
2369 enableval="$enable_intl"
2370
2371 if test "$enableval" = yes; then
2372 ac_cv_use_intl='wxUSE_INTL=yes'
2373 else
2374 ac_cv_use_intl='wxUSE_INTL=no'
2375 fi
2376
2377else
2378
2379 LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
2380 if test "x$LINE" != x ; then
2381 eval "DEFAULT_$LINE"
2382 else
2383 no_cache=1
2384 fi
2385
2386 ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
2387
2388fi
2389
2390
2391 eval "$ac_cv_use_intl"
2392 if test "$no_cache" != 1; then
2393 echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
2394 fi
2395
2396 if test "$wxUSE_INTL" = yes; then
2397 echo "$ac_t""yes" 1>&6
2398 else
2399 echo "$ac_t""no" 1>&6
2400 fi
2401
2402
2403 echo $ac_n "checking "for --enable-config"""... $ac_c" 1>&6
7c66a493 2404echo "configure:2405: checking "for --enable-config"" >&5
10f2d63a
VZ
2405 no_cache=0
2406 # Check whether --enable-config or --disable-config was given.
2407if test "${enable_config+set}" = set; then
2408 enableval="$enable_config"
2409
2410 if test "$enableval" = yes; then
2411 ac_cv_use_config='wxUSE_CONFIG=yes'
2412 else
2413 ac_cv_use_config='wxUSE_CONFIG=no'
2414 fi
2415
2416else
2417
2418 LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
2419 if test "x$LINE" != x ; then
2420 eval "DEFAULT_$LINE"
2421 else
2422 no_cache=1
2423 fi
2424
2425 ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
2426
2427fi
2428
2429
2430 eval "$ac_cv_use_config"
2431 if test "$no_cache" != 1; then
2432 echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
2433 fi
2434
2435 if test "$wxUSE_CONFIG" = yes; then
2436 echo "$ac_t""yes" 1>&6
2437 else
2438 echo "$ac_t""no" 1>&6
2439 fi
2440
2441
b12915c1
VZ
2442if test "$wxUSE_GUI" = "yes"; then
2443
10f2d63a 2444 echo $ac_n "checking "for --enable-sockets"""... $ac_c" 1>&6
7c66a493 2445echo "configure:2446: checking "for --enable-sockets"" >&5
10f2d63a
VZ
2446 no_cache=0
2447 # Check whether --enable-sockets or --disable-sockets was given.
2448if test "${enable_sockets+set}" = set; then
2449 enableval="$enable_sockets"
2450
2451 if test "$enableval" = yes; then
2452 ac_cv_use_sockets='wxUSE_SOCKETS=yes'
2453 else
2454 ac_cv_use_sockets='wxUSE_SOCKETS=no'
2455 fi
2456
2457else
2458
2459 LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
2460 if test "x$LINE" != x ; then
2461 eval "DEFAULT_$LINE"
2462 else
2463 no_cache=1
2464 fi
2465
2466 ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
2467
2468fi
2469
2470
2471 eval "$ac_cv_use_sockets"
2472 if test "$no_cache" != 1; then
2473 echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
2474 fi
2475
2476 if test "$wxUSE_SOCKETS" = yes; then
2477 echo "$ac_t""yes" 1>&6
2478 else
2479 echo "$ac_t""no" 1>&6
2480 fi
2481
b12915c1
VZ
2482else
2483wxUSE_SOCKETS=no
2484fi
2485
10f2d63a
VZ
2486
2487 echo $ac_n "checking "for --enable-dialupman"""... $ac_c" 1>&6
7c66a493 2488echo "configure:2489: checking "for --enable-dialupman"" >&5
10f2d63a
VZ
2489 no_cache=0
2490 # Check whether --enable-dialupman or --disable-dialupman was given.
2491if test "${enable_dialupman+set}" = set; then
2492 enableval="$enable_dialupman"
2493
2494 if test "$enableval" = yes; then
2495 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
2496 else
2497 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
2498 fi
2499
2500else
2501
2502 LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
2503 if test "x$LINE" != x ; then
2504 eval "DEFAULT_$LINE"
2505 else
2506 no_cache=1
2507 fi
2508
2509 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
2510
2511fi
2512
2513
2514 eval "$ac_cv_use_dialupman"
2515 if test "$no_cache" != 1; then
2516 echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
2517 fi
2518
2519 if test "$wxUSE_DIALUP_MANAGER" = yes; then
2520 echo "$ac_t""yes" 1>&6
2521 else
2522 echo "$ac_t""no" 1>&6
2523 fi
2524
2525
2526 echo $ac_n "checking "for --enable-ipc"""... $ac_c" 1>&6
7c66a493 2527echo "configure:2528: checking "for --enable-ipc"" >&5
10f2d63a
VZ
2528 no_cache=0
2529 # Check whether --enable-ipc or --disable-ipc was given.
2530if test "${enable_ipc+set}" = set; then
2531 enableval="$enable_ipc"
2532
2533 if test "$enableval" = yes; then
2534 ac_cv_use_ipc='wxUSE_IPC=yes'
2535 else
2536 ac_cv_use_ipc='wxUSE_IPC=no'
2537 fi
2538
2539else
2540
2541 LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
2542 if test "x$LINE" != x ; then
2543 eval "DEFAULT_$LINE"
2544 else
2545 no_cache=1
2546 fi
2547
2548 ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
2549
2550fi
2551
2552
2553 eval "$ac_cv_use_ipc"
2554 if test "$no_cache" != 1; then
2555 echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
2556 fi
2557
2558 if test "$wxUSE_IPC" = yes; then
2559 echo "$ac_t""yes" 1>&6
2560 else
2561 echo "$ac_t""no" 1>&6
2562 fi
2563
2564
2565 echo $ac_n "checking "for --enable-apple_ieee"""... $ac_c" 1>&6
7c66a493 2566echo "configure:2567: checking "for --enable-apple_ieee"" >&5
10f2d63a
VZ
2567 no_cache=0
2568 # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
2569if test "${enable_apple_ieee+set}" = set; then
2570 enableval="$enable_apple_ieee"
2571
2572 if test "$enableval" = yes; then
2573 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
2574 else
2575 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
2576 fi
2577
2578else
2579
2580 LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
2581 if test "x$LINE" != x ; then
2582 eval "DEFAULT_$LINE"
2583 else
2584 no_cache=1
2585 fi
2586
2587 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
2588
2589fi
2590
2591
2592 eval "$ac_cv_use_apple_ieee"
2593 if test "$no_cache" != 1; then
2594 echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
2595 fi
2596
2597 if test "$wxUSE_APPLE_IEEE" = yes; then
2598 echo "$ac_t""yes" 1>&6
2599 else
2600 echo "$ac_t""no" 1>&6
2601 fi
2602
2603
2604 echo $ac_n "checking "for --enable-timedate"""... $ac_c" 1>&6
7c66a493 2605echo "configure:2606: checking "for --enable-timedate"" >&5
10f2d63a
VZ
2606 no_cache=0
2607 # Check whether --enable-timedate or --disable-timedate was given.
2608if test "${enable_timedate+set}" = set; then
2609 enableval="$enable_timedate"
2610
2611 if test "$enableval" = yes; then
2612 ac_cv_use_timedate='wxUSE_TIMEDATE=yes'
2613 else
2614 ac_cv_use_timedate='wxUSE_TIMEDATE=no'
2615 fi
2616
2617else
2618
2619 LINE=`grep "wxUSE_TIMEDATE" ${wx_arg_cache_file}`
2620 if test "x$LINE" != x ; then
2621 eval "DEFAULT_$LINE"
2622 else
2623 no_cache=1
2624 fi
2625
2626 ac_cv_use_timedate='wxUSE_TIMEDATE='$DEFAULT_wxUSE_TIMEDATE
2627
2628fi
2629
2630
2631 eval "$ac_cv_use_timedate"
2632 if test "$no_cache" != 1; then
2633 echo $ac_cv_use_timedate >> ${wx_arg_cache_file}.tmp
2634 fi
2635
2636 if test "$wxUSE_TIMEDATE" = yes; then
2637 echo "$ac_t""yes" 1>&6
2638 else
2639 echo "$ac_t""no" 1>&6
2640 fi
2641
2642
2643 echo $ac_n "checking "for --enable-wave"""... $ac_c" 1>&6
7c66a493 2644echo "configure:2645: checking "for --enable-wave"" >&5
10f2d63a
VZ
2645 no_cache=0
2646 # Check whether --enable-wave or --disable-wave was given.
2647if test "${enable_wave+set}" = set; then
2648 enableval="$enable_wave"
2649
2650 if test "$enableval" = yes; then
2651 ac_cv_use_wave='wxUSE_WAVE=yes'
2652 else
2653 ac_cv_use_wave='wxUSE_WAVE=no'
2654 fi
2655
2656else
2657
2658 LINE=`grep "wxUSE_WAVE" ${wx_arg_cache_file}`
2659 if test "x$LINE" != x ; then
2660 eval "DEFAULT_$LINE"
2661 else
2662 no_cache=1
2663 fi
2664
2665 ac_cv_use_wave='wxUSE_WAVE='$DEFAULT_wxUSE_WAVE
2666
2667fi
2668
2669
2670 eval "$ac_cv_use_wave"
2671 if test "$no_cache" != 1; then
2672 echo $ac_cv_use_wave >> ${wx_arg_cache_file}.tmp
2673 fi
2674
2675 if test "$wxUSE_WAVE" = yes; then
2676 echo "$ac_t""yes" 1>&6
2677 else
2678 echo "$ac_t""no" 1>&6
2679 fi
2680
2681
2682 echo $ac_n "checking "for --enable-fraction"""... $ac_c" 1>&6
7c66a493 2683echo "configure:2684: checking "for --enable-fraction"" >&5
10f2d63a
VZ
2684 no_cache=0
2685 # Check whether --enable-fraction or --disable-fraction was given.
2686if test "${enable_fraction+set}" = set; then
2687 enableval="$enable_fraction"
2688
2689 if test "$enableval" = yes; then
2690 ac_cv_use_fraction='wxUSE_FRACTION=yes'
2691 else
2692 ac_cv_use_fraction='wxUSE_FRACTION=no'
2693 fi
2694
2695else
2696
2697 LINE=`grep "wxUSE_FRACTION" ${wx_arg_cache_file}`
2698 if test "x$LINE" != x ; then
2699 eval "DEFAULT_$LINE"
2700 else
2701 no_cache=1
2702 fi
2703
2704 ac_cv_use_fraction='wxUSE_FRACTION='$DEFAULT_wxUSE_FRACTION
2705
2706fi
2707
2708
2709 eval "$ac_cv_use_fraction"
2710 if test "$no_cache" != 1; then
2711 echo $ac_cv_use_fraction >> ${wx_arg_cache_file}.tmp
2712 fi
2713
2714 if test "$wxUSE_FRACTION" = yes; then
2715 echo "$ac_t""yes" 1>&6
2716 else
2717 echo "$ac_t""no" 1>&6
2718 fi
2719
2720
2721 echo $ac_n "checking "for --enable-dynlib"""... $ac_c" 1>&6
7c66a493 2722echo "configure:2723: checking "for --enable-dynlib"" >&5
10f2d63a
VZ
2723 no_cache=0
2724 # Check whether --enable-dynlib or --disable-dynlib was given.
2725if test "${enable_dynlib+set}" = set; then
2726 enableval="$enable_dynlib"
2727
2728 if test "$enableval" = yes; then
2729 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
2730 else
2731 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
2732 fi
2733
2734else
2735
2736 LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
2737 if test "x$LINE" != x ; then
2738 eval "DEFAULT_$LINE"
2739 else
2740 no_cache=1
2741 fi
2742
2743 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
2744
2745fi
2746
2747
2748 eval "$ac_cv_use_dynlib"
2749 if test "$no_cache" != 1; then
2750 echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
2751 fi
2752
2753 if test "$wxUSE_DYNLIB_CLASS" = yes; then
2754 echo "$ac_t""yes" 1>&6
2755 else
2756 echo "$ac_t""no" 1>&6
2757 fi
2758
2759
2760 echo $ac_n "checking "for --enable-longlong"""... $ac_c" 1>&6
7c66a493 2761echo "configure:2762: checking "for --enable-longlong"" >&5
10f2d63a
VZ
2762 no_cache=0
2763 # Check whether --enable-longlong or --disable-longlong was given.
2764if test "${enable_longlong+set}" = set; then
2765 enableval="$enable_longlong"
2766
2767 if test "$enableval" = yes; then
2768 ac_cv_use_longlong='wxUSE_LONGLONG=yes'
2769 else
2770 ac_cv_use_longlong='wxUSE_LONGLONG=no'
2771 fi
2772
2773else
2774
2775 LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
2776 if test "x$LINE" != x ; then
2777 eval "DEFAULT_$LINE"
2778 else
2779 no_cache=1
2780 fi
2781
2782 ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
2783
2784fi
2785
2786
2787 eval "$ac_cv_use_longlong"
2788 if test "$no_cache" != 1; then
2789 echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
2790 fi
2791
2792 if test "$wxUSE_LONGLONG" = yes; then
2793 echo "$ac_t""yes" 1>&6
2794 else
2795 echo "$ac_t""no" 1>&6
2796 fi
2797
2798
2799 echo $ac_n "checking "for --enable-log"""... $ac_c" 1>&6
7c66a493 2800echo "configure:2801: checking "for --enable-log"" >&5
10f2d63a
VZ
2801 no_cache=0
2802 # Check whether --enable-log or --disable-log was given.
2803if test "${enable_log+set}" = set; then
2804 enableval="$enable_log"
2805
2806 if test "$enableval" = yes; then
2807 ac_cv_use_log='wxUSE_LOG=yes'
2808 else
2809 ac_cv_use_log='wxUSE_LOG=no'
2810 fi
2811
2812else
2813
2814 LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
2815 if test "x$LINE" != x ; then
2816 eval "DEFAULT_$LINE"
2817 else
2818 no_cache=1
2819 fi
2820
2821 ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
2822
2823fi
2824
2825
2826 eval "$ac_cv_use_log"
2827 if test "$no_cache" != 1; then
2828 echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
2829 fi
2830
2831 if test "$wxUSE_LOG" = yes; then
2832 echo "$ac_t""yes" 1>&6
2833 else
2834 echo "$ac_t""no" 1>&6
2835 fi
2836
2837
2838 echo $ac_n "checking "for --enable-streams"""... $ac_c" 1>&6
7c66a493 2839echo "configure:2840: checking "for --enable-streams"" >&5
10f2d63a
VZ
2840 no_cache=0
2841 # Check whether --enable-streams or --disable-streams was given.
2842if test "${enable_streams+set}" = set; then
2843 enableval="$enable_streams"
2844
2845 if test "$enableval" = yes; then
2846 ac_cv_use_streams='wxUSE_STREAMS=yes'
2847 else
2848 ac_cv_use_streams='wxUSE_STREAMS=no'
2849 fi
2850
2851else
2852
2853 LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
2854 if test "x$LINE" != x ; then
2855 eval "DEFAULT_$LINE"
2856 else
2857 no_cache=1
2858 fi
2859
2860 ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
2861
2862fi
2863
2864
2865 eval "$ac_cv_use_streams"
2866 if test "$no_cache" != 1; then
2867 echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
2868 fi
2869
2870 if test "$wxUSE_STREAMS" = yes; then
2871 echo "$ac_t""yes" 1>&6
2872 else
2873 echo "$ac_t""no" 1>&6
2874 fi
2875
2876
2877 echo $ac_n "checking "for --enable-file"""... $ac_c" 1>&6
7c66a493 2878echo "configure:2879: checking "for --enable-file"" >&5
10f2d63a
VZ
2879 no_cache=0
2880 # Check whether --enable-file or --disable-file was given.
2881if test "${enable_file+set}" = set; then
2882 enableval="$enable_file"
2883
2884 if test "$enableval" = yes; then
2885 ac_cv_use_file='wxUSE_FILE=yes'
2886 else
2887 ac_cv_use_file='wxUSE_FILE=no'
2888 fi
2889
2890else
2891
2892 LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
2893 if test "x$LINE" != x ; then
2894 eval "DEFAULT_$LINE"
2895 else
2896 no_cache=1
2897 fi
2898
2899 ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
2900
2901fi
2902
2903
2904 eval "$ac_cv_use_file"
2905 if test "$no_cache" != 1; then
2906 echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
2907 fi
2908
2909 if test "$wxUSE_FILE" = yes; then
2910 echo "$ac_t""yes" 1>&6
2911 else
2912 echo "$ac_t""no" 1>&6
2913 fi
2914
2915
2916 echo $ac_n "checking "for --enable-textfile"""... $ac_c" 1>&6
7c66a493 2917echo "configure:2918: checking "for --enable-textfile"" >&5
10f2d63a
VZ
2918 no_cache=0
2919 # Check whether --enable-textfile or --disable-textfile was given.
2920if test "${enable_textfile+set}" = set; then
2921 enableval="$enable_textfile"
2922
2923 if test "$enableval" = yes; then
2924 ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
2925 else
2926 ac_cv_use_textfile='wxUSE_TEXTFILE=no'
2927 fi
2928
2929else
2930
2931 LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
2932 if test "x$LINE" != x ; then
2933 eval "DEFAULT_$LINE"
2934 else
2935 no_cache=1
2936 fi
2937
2938 ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
2939
2940fi
2941
2942
2943 eval "$ac_cv_use_textfile"
2944 if test "$no_cache" != 1; then
2945 echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
2946 fi
2947
2948 if test "$wxUSE_TEXTFILE" = yes; then
2949 echo "$ac_t""yes" 1>&6
2950 else
2951 echo "$ac_t""no" 1>&6
2952 fi
2953
2954
2955 echo $ac_n "checking "for --enable-unicode"""... $ac_c" 1>&6
7c66a493 2956echo "configure:2957: checking "for --enable-unicode"" >&5
10f2d63a
VZ
2957 no_cache=0
2958 # Check whether --enable-unicode or --disable-unicode was given.
2959if test "${enable_unicode+set}" = set; then
2960 enableval="$enable_unicode"
2961
2962 if test "$enableval" = yes; then
2963 ac_cv_use_unicode='wxUSE_UNICODE=yes'
2964 else
2965 ac_cv_use_unicode='wxUSE_UNICODE=no'
2966 fi
2967
2968else
2969
2970 LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
2971 if test "x$LINE" != x ; then
2972 eval "DEFAULT_$LINE"
2973 else
2974 no_cache=1
2975 fi
2976
2977 ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
2978
2979fi
2980
2981
2982 eval "$ac_cv_use_unicode"
2983 if test "$no_cache" != 1; then
2984 echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
2985 fi
2986
2987 if test "$wxUSE_UNICODE" = yes; then
2988 echo "$ac_t""yes" 1>&6
2989 else
2990 echo "$ac_t""no" 1>&6
2991 fi
2992
2993
2994 echo $ac_n "checking "for --enable-wcsrtombs"""... $ac_c" 1>&6
7c66a493 2995echo "configure:2996: checking "for --enable-wcsrtombs"" >&5
10f2d63a
VZ
2996 no_cache=0
2997 # Check whether --enable-wcsrtombs or --disable-wcsrtombs was given.
2998if test "${enable_wcsrtombs+set}" = set; then
2999 enableval="$enable_wcsrtombs"
3000
3001 if test "$enableval" = yes; then
3002 ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS=yes'
3003 else
3004 ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS=no'
3005 fi
3006
3007else
3008
3009 LINE=`grep "wxUSE_WCSRTOMBS" ${wx_arg_cache_file}`
3010 if test "x$LINE" != x ; then
3011 eval "DEFAULT_$LINE"
3012 else
3013 no_cache=1
3014 fi
3015
3016 ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS='$DEFAULT_wxUSE_WCSRTOMBS
3017
3018fi
3019
3020
3021 eval "$ac_cv_use_wcsrtombs"
3022 if test "$no_cache" != 1; then
3023 echo $ac_cv_use_wcsrtombs >> ${wx_arg_cache_file}.tmp
3024 fi
3025
3026 if test "$wxUSE_WCSRTOMBS" = yes; then
3027 echo "$ac_t""yes" 1>&6
3028 else
3029 echo "$ac_t""no" 1>&6
3030 fi
3031
3032
3033 echo $ac_n "checking "for --enable-wxprintfv"""... $ac_c" 1>&6
7c66a493 3034echo "configure:3035: checking "for --enable-wxprintfv"" >&5
10f2d63a
VZ
3035 no_cache=0
3036 # Check whether --enable-wxprintfv or --disable-wxprintfv was given.
3037if test "${enable_wxprintfv+set}" = set; then
3038 enableval="$enable_wxprintfv"
3039
3040 if test "$enableval" = yes; then
3041 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes'
3042 else
3043 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no'
3044 fi
3045
3046else
3047
3048 LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}`
3049 if test "x$LINE" != x ; then
3050 eval "DEFAULT_$LINE"
3051 else
3052 no_cache=1
3053 fi
3054
3055 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF
3056
3057fi
3058
3059
3060 eval "$ac_cv_use_wxprintfv"
3061 if test "$no_cache" != 1; then
3062 echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp
3063 fi
3064
3065 if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then
3066 echo "$ac_t""yes" 1>&6
3067 else
3068 echo "$ac_t""no" 1>&6
3069 fi
3070
3071
3072 echo $ac_n "checking "for --enable-joystick"""... $ac_c" 1>&6
7c66a493 3073echo "configure:3074: checking "for --enable-joystick"" >&5
10f2d63a
VZ
3074 no_cache=0
3075 # Check whether --enable-joystick or --disable-joystick was given.
3076if test "${enable_joystick+set}" = set; then
3077 enableval="$enable_joystick"
3078
3079 if test "$enableval" = yes; then
3080 ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
3081 else
3082 ac_cv_use_joystick='wxUSE_JOYSTICK=no'
3083 fi
3084
3085else
3086
3087 LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
3088 if test "x$LINE" != x ; then
3089 eval "DEFAULT_$LINE"
3090 else
3091 no_cache=1
3092 fi
3093
3094 ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
3095
3096fi
3097
3098
3099 eval "$ac_cv_use_joystick"
3100 if test "$no_cache" != 1; then
3101 echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
3102 fi
3103
3104 if test "$wxUSE_JOYSTICK" = yes; then
3105 echo "$ac_t""yes" 1>&6
3106 else
3107 echo "$ac_t""no" 1>&6
3108 fi
3109
3110
3111 echo $ac_n "checking "for --enable-std_iostreams"""... $ac_c" 1>&6
7c66a493 3112echo "configure:3113: checking "for --enable-std_iostreams"" >&5
10f2d63a
VZ
3113 no_cache=0
3114 # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
3115if test "${enable_std_iostreams+set}" = set; then
3116 enableval="$enable_std_iostreams"
3117
3118 if test "$enableval" = yes; then
3119 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
3120 else
3121 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
3122 fi
3123
3124else
3125
3126 LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
3127 if test "x$LINE" != x ; then
3128 eval "DEFAULT_$LINE"
3129 else
3130 no_cache=1
3131 fi
3132
3133 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
3134
3135fi
3136
3137
3138 eval "$ac_cv_use_std_iostreams"
3139 if test "$no_cache" != 1; then
3140 echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
3141 fi
3142
3143 if test "$wxUSE_STD_IOSTREAM" = yes; then
3144 echo "$ac_t""yes" 1>&6
3145 else
3146 echo "$ac_t""no" 1>&6
3147 fi
3148
3149
3150 echo $ac_n "checking "for --enable-fs_inet"""... $ac_c" 1>&6
7c66a493 3151echo "configure:3152: checking "for --enable-fs_inet"" >&5
10f2d63a
VZ
3152 no_cache=0
3153 # Check whether --enable-fs_inet or --disable-fs_inet was given.
3154if test "${enable_fs_inet+set}" = set; then
3155 enableval="$enable_fs_inet"
3156
3157 if test "$enableval" = yes; then
3158 ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
3159 else
3160 ac_cv_use_fs_inet='wxUSE_FS_INET=no'
3161 fi
3162
3163else
3164
3165 LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
3166 if test "x$LINE" != x ; then
3167 eval "DEFAULT_$LINE"
3168 else
3169 no_cache=1
3170 fi
3171
3172 ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
3173
3174fi
3175
3176
3177 eval "$ac_cv_use_fs_inet"
3178 if test "$no_cache" != 1; then
3179 echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
3180 fi
3181
3182 if test "$wxUSE_FS_INET" = yes; then
3183 echo "$ac_t""yes" 1>&6
3184 else
3185 echo "$ac_t""no" 1>&6
3186 fi
3187
3188
3189 echo $ac_n "checking "for --enable-fs_zip"""... $ac_c" 1>&6
7c66a493 3190echo "configure:3191: checking "for --enable-fs_zip"" >&5
10f2d63a
VZ
3191 no_cache=0
3192 # Check whether --enable-fs_zip or --disable-fs_zip was given.
3193if test "${enable_fs_zip+set}" = set; then
3194 enableval="$enable_fs_zip"
3195
3196 if test "$enableval" = yes; then
3197 ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
3198 else
3199 ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
3200 fi
3201
3202else
3203
3204 LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
3205 if test "x$LINE" != x ; then
3206 eval "DEFAULT_$LINE"
3207 else
3208 no_cache=1
3209 fi
3210
3211 ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
3212
3213fi
3214
3215
3216 eval "$ac_cv_use_fs_zip"
3217 if test "$no_cache" != 1; then
3218 echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
3219 fi
3220
3221 if test "$wxUSE_FS_ZIP" = yes; then
3222 echo "$ac_t""yes" 1>&6
3223 else
3224 echo "$ac_t""no" 1>&6
3225 fi
3226
3227
3228 echo $ac_n "checking "for --enable-zipstream"""... $ac_c" 1>&6
7c66a493 3229echo "configure:3230: checking "for --enable-zipstream"" >&5
10f2d63a
VZ
3230 no_cache=0
3231 # Check whether --enable-zipstream or --disable-zipstream was given.
3232if test "${enable_zipstream+set}" = set; then
3233 enableval="$enable_zipstream"
3234
3235 if test "$enableval" = yes; then
3236 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
3237 else
3238 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
3239 fi
3240
3241else
3242
3243 LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
3244 if test "x$LINE" != x ; then
3245 eval "DEFAULT_$LINE"
3246 else
3247 no_cache=1
3248 fi
3249
3250 ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
3251
3252fi
3253
3254
3255 eval "$ac_cv_use_zipstream"
3256 if test "$no_cache" != 1; then
3257 echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
3258 fi
3259
3260 if test "$wxUSE_ZIPSTREAM" = yes; then
3261 echo "$ac_t""yes" 1>&6
3262 else
3263 echo "$ac_t""no" 1>&6
3264 fi
3265
3266
3267
3268
3269 echo $ac_n "checking "for --enable-threads"""... $ac_c" 1>&6
7c66a493 3270echo "configure:3271: checking "for --enable-threads"" >&5
10f2d63a
VZ
3271 no_cache=0
3272 # Check whether --enable-threads or --disable-threads was given.
3273if test "${enable_threads+set}" = set; then
3274 enableval="$enable_threads"
3275
3276 if test "$enableval" = yes; then
3277 ac_cv_use_threads='wxUSE_THREADS=yes'
3278 else
3279 ac_cv_use_threads='wxUSE_THREADS=no'
3280 fi
3281
3282else
3283
3284 LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
3285 if test "x$LINE" != x ; then
3286 eval "DEFAULT_$LINE"
3287 else
3288 no_cache=1
3289 fi
3290
3291 ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
3292
3293fi
3294
3295
3296 eval "$ac_cv_use_threads"
3297 if test "$no_cache" != 1; then
3298 echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
3299 fi
3300
3301 if test "$wxUSE_THREADS" = yes; then
3302 echo "$ac_t""yes" 1>&6
3303 else
3304 echo "$ac_t""no" 1>&6
3305 fi
3306
3307
3308 echo $ac_n "checking "for --enable-serial"""... $ac_c" 1>&6
7c66a493 3309echo "configure:3310: checking "for --enable-serial"" >&5
10f2d63a
VZ
3310 no_cache=0
3311 # Check whether --enable-serial or --disable-serial was given.
3312if test "${enable_serial+set}" = set; then
3313 enableval="$enable_serial"
3314
3315 if test "$enableval" = yes; then
3316 ac_cv_use_serial='wxUSE_SERIAL=yes'
3317 else
3318 ac_cv_use_serial='wxUSE_SERIAL=no'
3319 fi
3320
3321else
3322
3323 LINE=`grep "wxUSE_SERIAL" ${wx_arg_cache_file}`
3324 if test "x$LINE" != x ; then
3325 eval "DEFAULT_$LINE"
3326 else
3327 no_cache=1
3328 fi
3329
3330 ac_cv_use_serial='wxUSE_SERIAL='$DEFAULT_wxUSE_SERIAL
3331
3332fi
3333
3334
3335 eval "$ac_cv_use_serial"
3336 if test "$no_cache" != 1; then
3337 echo $ac_cv_use_serial >> ${wx_arg_cache_file}.tmp
3338 fi
3339
3340 if test "$wxUSE_SERIAL" = yes; then
3341 echo "$ac_t""yes" 1>&6
3342 else
3343 echo "$ac_t""no" 1>&6
3344 fi
3345
3346
b12915c1
VZ
3347if test "$wxUSE_GUI" = "yes"; then
3348
10f2d63a
VZ
3349
3350
3351 echo $ac_n "checking "for --enable-docview"""... $ac_c" 1>&6
7c66a493 3352echo "configure:3353: checking "for --enable-docview"" >&5
10f2d63a
VZ
3353 no_cache=0
3354 # Check whether --enable-docview or --disable-docview was given.
3355if test "${enable_docview+set}" = set; then
3356 enableval="$enable_docview"
3357
3358 if test "$enableval" = yes; then
3359 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
3360 else
3361 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
3362 fi
3363
3364else
3365
3366 LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
3367 if test "x$LINE" != x ; then
3368 eval "DEFAULT_$LINE"
3369 else
3370 no_cache=1
3371 fi
3372
3373 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
3374
3375fi
3376
3377
3378 eval "$ac_cv_use_docview"
3379 if test "$no_cache" != 1; then
3380 echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
3381 fi
3382
3383 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
3384 echo "$ac_t""yes" 1>&6
3385 else
3386 echo "$ac_t""no" 1>&6
3387 fi
3388
3389
3390 echo $ac_n "checking "for --enable-help"""... $ac_c" 1>&6
7c66a493 3391echo "configure:3392: checking "for --enable-help"" >&5
10f2d63a
VZ
3392 no_cache=0
3393 # Check whether --enable-help or --disable-help was given.
3394if test "${enable_help+set}" = set; then
3395 enableval="$enable_help"
3396
3397 if test "$enableval" = yes; then
3398 ac_cv_use_help='wxUSE_HELP=yes'
3399 else
3400 ac_cv_use_help='wxUSE_HELP=no'
3401 fi
3402
3403else
3404
3405 LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
3406 if test "x$LINE" != x ; then
3407 eval "DEFAULT_$LINE"
3408 else
3409 no_cache=1
3410 fi
3411
3412 ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
3413
3414fi
3415
3416
3417 eval "$ac_cv_use_help"
3418 if test "$no_cache" != 1; then
3419 echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
3420 fi
3421
3422 if test "$wxUSE_HELP" = yes; then
3423 echo "$ac_t""yes" 1>&6
3424 else
3425 echo "$ac_t""no" 1>&6
3426 fi
3427
3428
3429 echo $ac_n "checking "for --enable-constraints"""... $ac_c" 1>&6
7c66a493 3430echo "configure:3431: checking "for --enable-constraints"" >&5
10f2d63a
VZ
3431 no_cache=0
3432 # Check whether --enable-constraints or --disable-constraints was given.
3433if test "${enable_constraints+set}" = set; then
3434 enableval="$enable_constraints"
3435
3436 if test "$enableval" = yes; then
3437 ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
3438 else
3439 ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
3440 fi
3441
3442else
3443
3444 LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
3445 if test "x$LINE" != x ; then
3446 eval "DEFAULT_$LINE"
3447 else
3448 no_cache=1
3449 fi
3450
3451 ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
3452
3453fi
3454
3455
3456 eval "$ac_cv_use_constraints"
3457 if test "$no_cache" != 1; then
3458 echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
3459 fi
3460
3461 if test "$wxUSE_CONSTRAINTS" = yes; then
3462 echo "$ac_t""yes" 1>&6
3463 else
3464 echo "$ac_t""no" 1>&6
3465 fi
3466
3467
3468 echo $ac_n "checking "for --enable-printarch"""... $ac_c" 1>&6
7c66a493 3469echo "configure:3470: checking "for --enable-printarch"" >&5
10f2d63a
VZ
3470 no_cache=0
3471 # Check whether --enable-printarch or --disable-printarch was given.
3472if test "${enable_printarch+set}" = set; then
3473 enableval="$enable_printarch"
3474
3475 if test "$enableval" = yes; then
3476 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
3477 else
3478 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
3479 fi
3480
3481else
3482
3483 LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
3484 if test "x$LINE" != x ; then
3485 eval "DEFAULT_$LINE"
3486 else
3487 no_cache=1
3488 fi
3489
3490 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
3491
3492fi
3493
3494
3495 eval "$ac_cv_use_printarch"
3496 if test "$no_cache" != 1; then
3497 echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
3498 fi
3499
3500 if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
3501 echo "$ac_t""yes" 1>&6
3502 else
3503 echo "$ac_t""no" 1>&6
3504 fi
3505
3506
3507 echo $ac_n "checking "for --enable-mdi"""... $ac_c" 1>&6
7c66a493 3508echo "configure:3509: checking "for --enable-mdi"" >&5
10f2d63a
VZ
3509 no_cache=0
3510 # Check whether --enable-mdi or --disable-mdi was given.
3511if test "${enable_mdi+set}" = set; then
3512 enableval="$enable_mdi"
3513
3514 if test "$enableval" = yes; then
3515 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=yes'
3516 else
3517 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=no'
3518 fi
3519
3520else
3521
3522 LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
3523 if test "x$LINE" != x ; then
3524 eval "DEFAULT_$LINE"
3525 else
3526 no_cache=1
3527 fi
3528
3529 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
3530
3531fi
3532
3533
3534 eval "$ac_cv_use_mdi"
3535 if test "$no_cache" != 1; then
3536 echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
3537 fi
3538
3539 if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
3540 echo "$ac_t""yes" 1>&6
3541 else
3542 echo "$ac_t""no" 1>&6
3543 fi
3544
3545
3546
3547 echo $ac_n "checking "for --enable-postscript"""... $ac_c" 1>&6
7c66a493 3548echo "configure:3549: checking "for --enable-postscript"" >&5
10f2d63a
VZ
3549 no_cache=0
3550 # Check whether --enable-postscript or --disable-postscript was given.
3551if test "${enable_postscript+set}" = set; then
3552 enableval="$enable_postscript"
3553
3554 if test "$enableval" = yes; then
3555 ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
3556 else
3557 ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
3558 fi
3559
3560else
3561
3562 LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
3563 if test "x$LINE" != x ; then
3564 eval "DEFAULT_$LINE"
3565 else
3566 no_cache=1
3567 fi
3568
3569 ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
3570
3571fi
3572
3573
3574 eval "$ac_cv_use_postscript"
3575 if test "$no_cache" != 1; then
3576 echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
3577 fi
3578
3579 if test "$wxUSE_POSTSCRIPT" = yes; then
3580 echo "$ac_t""yes" 1>&6
3581 else
3582 echo "$ac_t""no" 1>&6
3583 fi
3584
3585
3586
3587
3588 echo $ac_n "checking "for --enable-prologio"""... $ac_c" 1>&6
7c66a493 3589echo "configure:3590: checking "for --enable-prologio"" >&5
10f2d63a
VZ
3590 no_cache=0
3591 # Check whether --enable-prologio or --disable-prologio was given.
3592if test "${enable_prologio+set}" = set; then
3593 enableval="$enable_prologio"
3594
3595 if test "$enableval" = yes; then
3596 ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
3597 else
3598 ac_cv_use_prologio='wxUSE_PROLOGIO=no'
3599 fi
3600
3601else
3602
3603 LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
3604 if test "x$LINE" != x ; then
3605 eval "DEFAULT_$LINE"
3606 else
3607 no_cache=1
3608 fi
3609
3610 ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
3611
3612fi
3613
3614
3615 eval "$ac_cv_use_prologio"
3616 if test "$no_cache" != 1; then
3617 echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
3618 fi
3619
3620 if test "$wxUSE_PROLOGIO" = yes; then
3621 echo "$ac_t""yes" 1>&6
3622 else
3623 echo "$ac_t""no" 1>&6
3624 fi
3625
3626
3627 echo $ac_n "checking "for --enable-resources"""... $ac_c" 1>&6
7c66a493 3628echo "configure:3629: checking "for --enable-resources"" >&5
10f2d63a
VZ
3629 no_cache=0
3630 # Check whether --enable-resources or --disable-resources was given.
3631if test "${enable_resources+set}" = set; then
3632 enableval="$enable_resources"
3633
3634 if test "$enableval" = yes; then
3635 ac_cv_use_resources='wxUSE_RESOURCES=yes'
3636 else
3637 ac_cv_use_resources='wxUSE_RESOURCES=no'
3638 fi
3639
3640else
3641
3642 LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
3643 if test "x$LINE" != x ; then
3644 eval "DEFAULT_$LINE"
3645 else
3646 no_cache=1
3647 fi
3648
3649 ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
3650
3651fi
3652
3653
3654 eval "$ac_cv_use_resources"
3655 if test "$no_cache" != 1; then
3656 echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
3657 fi
3658
3659 if test "$wxUSE_RESOURCES" = yes; then
3660 echo "$ac_t""yes" 1>&6
3661 else
3662 echo "$ac_t""no" 1>&6
3663 fi
3664
3665
3666
3667 echo $ac_n "checking "for --enable-xresources"""... $ac_c" 1>&6
7c66a493 3668echo "configure:3669: checking "for --enable-xresources"" >&5
10f2d63a
VZ
3669 no_cache=0
3670 # Check whether --enable-xresources or --disable-xresources was given.
3671if test "${enable_xresources+set}" = set; then
3672 enableval="$enable_xresources"
3673
3674 if test "$enableval" = yes; then
3675 ac_cv_use_xresources='wxUSE_X_RESOURCES=yes'
3676 else
3677 ac_cv_use_xresources='wxUSE_X_RESOURCES=no'
3678 fi
3679
3680else
3681
3682 LINE=`grep "wxUSE_X_RESOURCES" ${wx_arg_cache_file}`
3683 if test "x$LINE" != x ; then
3684 eval "DEFAULT_$LINE"
3685 else
3686 no_cache=1
3687 fi
3688
3689 ac_cv_use_xresources='wxUSE_X_RESOURCES='$DEFAULT_wxUSE_X_RESOURCES
3690
3691fi
3692
3693
3694 eval "$ac_cv_use_xresources"
3695 if test "$no_cache" != 1; then
3696 echo $ac_cv_use_xresources >> ${wx_arg_cache_file}.tmp
3697 fi
3698
3699 if test "$wxUSE_X_RESOURCES" = yes; then
3700 echo "$ac_t""yes" 1>&6
3701 else
3702 echo "$ac_t""no" 1>&6
3703 fi
3704
3705
3706
3707
3708 echo $ac_n "checking "for --enable-clipboard"""... $ac_c" 1>&6
7c66a493 3709echo "configure:3710: checking "for --enable-clipboard"" >&5
10f2d63a
VZ
3710 no_cache=0
3711 # Check whether --enable-clipboard or --disable-clipboard was given.
3712if test "${enable_clipboard+set}" = set; then
3713 enableval="$enable_clipboard"
3714
3715 if test "$enableval" = yes; then
3716 ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
3717 else
3718 ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
3719 fi
3720
3721else
3722
3723 LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
3724 if test "x$LINE" != x ; then
3725 eval "DEFAULT_$LINE"
3726 else
3727 no_cache=1
3728 fi
3729
3730 ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
3731
3732fi
3733
3734
3735 eval "$ac_cv_use_clipboard"
3736 if test "$no_cache" != 1; then
3737 echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
3738 fi
3739
3740 if test "$wxUSE_CLIPBOARD" = yes; then
3741 echo "$ac_t""yes" 1>&6
3742 else
3743 echo "$ac_t""no" 1>&6
3744 fi
3745
3746
3747 echo $ac_n "checking "for --enable-dnd"""... $ac_c" 1>&6
7c66a493 3748echo "configure:3749: checking "for --enable-dnd"" >&5
10f2d63a
VZ
3749 no_cache=0
3750 # Check whether --enable-dnd or --disable-dnd was given.
3751if test "${enable_dnd+set}" = set; then
3752 enableval="$enable_dnd"
3753
3754 if test "$enableval" = yes; then
3755 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
3756 else
3757 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
3758 fi
3759
3760else
3761
3762 LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
3763 if test "x$LINE" != x ; then
3764 eval "DEFAULT_$LINE"
3765 else
3766 no_cache=1
3767 fi
3768
3769 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
3770
3771fi
3772
3773
3774 eval "$ac_cv_use_dnd"
3775 if test "$no_cache" != 1; then
3776 echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
3777 fi
3778
3779 if test "$wxUSE_DRAG_AND_DROP" = yes; then
3780 echo "$ac_t""yes" 1>&6
3781 else
3782 echo "$ac_t""no" 1>&6
3783 fi
3784
3785
3786
3787 echo $ac_n "checking "for --enable-wxtree"""... $ac_c" 1>&6
7c66a493 3788echo "configure:3789: checking "for --enable-wxtree"" >&5
10f2d63a
VZ
3789 no_cache=0
3790 # Check whether --enable-wxtree or --disable-wxtree was given.
3791if test "${enable_wxtree+set}" = set; then
3792 enableval="$enable_wxtree"
3793
3794 if test "$enableval" = yes; then
3795 ac_cv_use_wxtree='wxUSE_WXTREE=yes'
3796 else
3797 ac_cv_use_wxtree='wxUSE_WXTREE=no'
3798 fi
3799
3800else
3801
3802 LINE=`grep "wxUSE_WXTREE" ${wx_arg_cache_file}`
3803 if test "x$LINE" != x ; then
3804 eval "DEFAULT_$LINE"
3805 else
3806 no_cache=1
3807 fi
3808
3809 ac_cv_use_wxtree='wxUSE_WXTREE='$DEFAULT_wxUSE_WXTREE
3810
3811fi
3812
3813
3814 eval "$ac_cv_use_wxtree"
3815 if test "$no_cache" != 1; then
3816 echo $ac_cv_use_wxtree >> ${wx_arg_cache_file}.tmp
3817 fi
3818
3819 if test "$wxUSE_WXTREE" = yes; then
3820 echo "$ac_t""yes" 1>&6
3821 else
3822 echo "$ac_t""no" 1>&6
3823 fi
3824
3825
3826
3827
3828 echo $ac_n "checking "for --enable-controls"""... $ac_c" 1>&6
7c66a493 3829echo "configure:3830: checking "for --enable-controls"" >&5
10f2d63a
VZ
3830 no_cache=0
3831 # Check whether --enable-controls or --disable-controls was given.
3832if test "${enable_controls+set}" = set; then
3833 enableval="$enable_controls"
3834
3835 if test "$enableval" = yes; then
3836 ac_cv_use_controls='wxUSE_CONTROLS=yes'
3837 else
3838 ac_cv_use_controls='wxUSE_CONTROLS=no'
3839 fi
3840
3841else
3842
3843 LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
3844 if test "x$LINE" != x ; then
3845 eval "DEFAULT_$LINE"
3846 else
3847 no_cache=1
3848 fi
3849
3850 ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
3851
3852fi
3853
3854
3855 eval "$ac_cv_use_controls"
3856 if test "$no_cache" != 1; then
3857 echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
3858 fi
3859
3860 if test "$wxUSE_CONTROLS" = yes; then
3861 echo "$ac_t""yes" 1>&6
3862 else
3863 echo "$ac_t""no" 1>&6
3864 fi
3865
3866
3867if test "$wxUSE_CONTROLS" = "yes"; then
3868 DEFAULT_wxUSE_ACCEL=yes
3869 DEFAULT_wxUSE_CARET=yes
3870 DEFAULT_wxUSE_COMBOBOX=yes
3871 DEFAULT_wxUSE_BMPBUTTON=yes
3872 DEFAULT_wxUSE_CHECKBOX=yes
3873 DEFAULT_wxUSE_CHECKLISTBOX=yes
3874 DEFAULT_wxUSE_CHOICE=yes
3875 DEFAULT_wxUSE_GAUGE=yes
3876 DEFAULT_wxUSE_GRID=yes
fc9c7c09 3877 DEFAULT_wxUSE_NEW_GRID=no
10f2d63a
VZ
3878 DEFAULT_wxUSE_IMAGLIST=yes
3879 DEFAULT_wxUSE_LISTBOX=yes
3880 DEFAULT_wxUSE_LISTCTRL=yes
3881 DEFAULT_wxUSE_NOTEBOOK=yes
3882 DEFAULT_wxUSE_RADIOBOX=yes
3883 DEFAULT_wxUSE_RADIOBTN=yes
3884 DEFAULT_wxUSE_SASH=yes
3885 DEFAULT_wxUSE_SCROLLBAR=yes
3886 DEFAULT_wxUSE_SLIDER=yes
3887 DEFAULT_wxUSE_SPINBTN=yes
56cfaa52 3888 DEFAULT_wxUSE_SPINCTRL=yes
10f2d63a
VZ
3889 DEFAULT_wxUSE_SPLITTER=yes
3890 DEFAULT_wxUSE_STATBMP=yes
3891 DEFAULT_wxUSE_STATBOX=yes
3892 DEFAULT_wxUSE_STATLINE=yes
3893 DEFAULT_wxUSE_STATUSBAR=yes
3894 DEFAULT_wxUSE_TAB_DIALOG=yes
3895 DEFAULT_wxUSE_TOOLBAR=yes
360d6699
VZ
3896 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
3897 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
10f2d63a
VZ
3898 DEFAULT_wxUSE_TOOLTIPS=yes
3899 DEFAULT_wxUSE_TREECTRL=yes
3900elif test "$wxUSE_CONTROLS" = "no"; then
3901 DEFAULT_wxUSE_ACCEL=no
3902 DEFAULT_wxUSE_CARET=no
3903 DEFAULT_wxUSE_COMBOBOX=no
3904 DEFAULT_wxUSE_BMPBUTTON=no
3905 DEFAULT_wxUSE_CHECKBOX=no
3906 DEFAULT_wxUSE_CHECKLISTBOX=no
3907 DEFAULT_wxUSE_CHOICE=no
3908 DEFAULT_wxUSE_GAUGE=no
3909 DEFAULT_wxUSE_GRID=no
3910 DEFAULT_wxUSE_NEW_GRID=no
3911 DEFAULT_wxUSE_IMAGLIST=no
3912 DEFAULT_wxUSE_LISTBOX=no
3913 DEFAULT_wxUSE_LISTCTRL=no
3914 DEFAULT_wxUSE_NOTEBOOK=no
3915 DEFAULT_wxUSE_RADIOBOX=no
3916 DEFAULT_wxUSE_RADIOBTN=no
3917 DEFAULT_wxUSE_SASH=no
3918 DEFAULT_wxUSE_SCROLLBAR=no
3919 DEFAULT_wxUSE_SLIDER=no
3920 DEFAULT_wxUSE_SPINBTN=no
56cfaa52 3921 DEFAULT_wxUSE_SPINCTRL=no
10f2d63a
VZ
3922 DEFAULT_wxUSE_SPLITTER=no
3923 DEFAULT_wxUSE_STATBMP=no
3924 DEFAULT_wxUSE_STATBOX=no
3925 DEFAULT_wxUSE_STATLINE=no
3926 DEFAULT_wxUSE_STATUSBAR=no
3927 DEFAULT_wxUSE_TAB_DIALOG=no
3928 DEFAULT_wxUSE_TOOLBAR=no
360d6699
VZ
3929 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
3930 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
10f2d63a
VZ
3931 DEFAULT_wxUSE_TOOLTIPS=no
3932 DEFAULT_wxUSE_TREECTRL=no
3933fi
3934
3935
3936 echo $ac_n "checking "for --enable-accel"""... $ac_c" 1>&6
7c66a493 3937echo "configure:3938: checking "for --enable-accel"" >&5
10f2d63a
VZ
3938 no_cache=0
3939 # Check whether --enable-accel or --disable-accel was given.
3940if test "${enable_accel+set}" = set; then
3941 enableval="$enable_accel"
3942
3943 if test "$enableval" = yes; then
3944 ac_cv_use_accel='wxUSE_ACCEL=yes'
3945 else
3946 ac_cv_use_accel='wxUSE_ACCEL=no'
3947 fi
3948
3949else
3950
3951 LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
3952 if test "x$LINE" != x ; then
3953 eval "DEFAULT_$LINE"
3954 else
3955 no_cache=1
3956 fi
3957
3958 ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
3959
3960fi
3961
3962
3963 eval "$ac_cv_use_accel"
3964 if test "$no_cache" != 1; then
3965 echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
3966 fi
3967
3968 if test "$wxUSE_ACCEL" = yes; then
3969 echo "$ac_t""yes" 1>&6
3970 else
3971 echo "$ac_t""no" 1>&6
3972 fi
3973
3974
3975 echo $ac_n "checking "for --enable-caret"""... $ac_c" 1>&6
7c66a493 3976echo "configure:3977: checking "for --enable-caret"" >&5
10f2d63a
VZ
3977 no_cache=0
3978 # Check whether --enable-caret or --disable-caret was given.
3979if test "${enable_caret+set}" = set; then
3980 enableval="$enable_caret"
3981
3982 if test "$enableval" = yes; then
3983 ac_cv_use_caret='wxUSE_CARET=yes'
3984 else
3985 ac_cv_use_caret='wxUSE_CARET=no'
3986 fi
3987
3988else
3989
3990 LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
3991 if test "x$LINE" != x ; then
3992 eval "DEFAULT_$LINE"
3993 else
3994 no_cache=1
3995 fi
3996
3997 ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
3998
3999fi
4000
4001
4002 eval "$ac_cv_use_caret"
4003 if test "$no_cache" != 1; then
4004 echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
4005 fi
4006
4007 if test "$wxUSE_CARET" = yes; then
4008 echo "$ac_t""yes" 1>&6
4009 else
4010 echo "$ac_t""no" 1>&6
4011 fi
4012
4013
4014 echo $ac_n "checking "for --enable-bmpbutton"""... $ac_c" 1>&6
7c66a493 4015echo "configure:4016: checking "for --enable-bmpbutton"" >&5
10f2d63a
VZ
4016 no_cache=0
4017 # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
4018if test "${enable_bmpbutton+set}" = set; then
4019 enableval="$enable_bmpbutton"
4020
4021 if test "$enableval" = yes; then
4022 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
4023 else
4024 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
4025 fi
4026
4027else
4028
4029 LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
4030 if test "x$LINE" != x ; then
4031 eval "DEFAULT_$LINE"
4032 else
4033 no_cache=1
4034 fi
4035
4036 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
4037
4038fi
4039
4040
4041 eval "$ac_cv_use_bmpbutton"
4042 if test "$no_cache" != 1; then
4043 echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
4044 fi
4045
4046 if test "$wxUSE_BMPBUTTON" = yes; then
4047 echo "$ac_t""yes" 1>&6
4048 else
4049 echo "$ac_t""no" 1>&6
4050 fi
4051
4052
4053 echo $ac_n "checking "for --enable-checkbox"""... $ac_c" 1>&6
7c66a493 4054echo "configure:4055: checking "for --enable-checkbox"" >&5
10f2d63a
VZ
4055 no_cache=0
4056 # Check whether --enable-checkbox or --disable-checkbox was given.
4057if test "${enable_checkbox+set}" = set; then
4058 enableval="$enable_checkbox"
4059
4060 if test "$enableval" = yes; then
4061 ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
4062 else
4063 ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
4064 fi
4065
4066else
4067
4068 LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
4069 if test "x$LINE" != x ; then
4070 eval "DEFAULT_$LINE"
4071 else
4072 no_cache=1
4073 fi
4074
4075 ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
4076
4077fi
4078
4079
4080 eval "$ac_cv_use_checkbox"
4081 if test "$no_cache" != 1; then
4082 echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
4083 fi
4084
4085 if test "$wxUSE_CHECKBOX" = yes; then
4086 echo "$ac_t""yes" 1>&6
4087 else
4088 echo "$ac_t""no" 1>&6
4089 fi
4090
4091
4092 echo $ac_n "checking "for --enable-checklst"""... $ac_c" 1>&6
7c66a493 4093echo "configure:4094: checking "for --enable-checklst"" >&5
10f2d63a
VZ
4094 no_cache=0
4095 # Check whether --enable-checklst or --disable-checklst was given.
4096if test "${enable_checklst+set}" = set; then
4097 enableval="$enable_checklst"
4098
4099 if test "$enableval" = yes; then
4100 ac_cv_use_checklst='wxUSE_CHECKLST=yes'
4101 else
4102 ac_cv_use_checklst='wxUSE_CHECKLST=no'
4103 fi
4104
4105else
4106
4107 LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
4108 if test "x$LINE" != x ; then
4109 eval "DEFAULT_$LINE"
4110 else
4111 no_cache=1
4112 fi
4113
4114 ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
4115
4116fi
4117
4118
4119 eval "$ac_cv_use_checklst"
4120 if test "$no_cache" != 1; then
4121 echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
4122 fi
4123
4124 if test "$wxUSE_CHECKLST" = yes; then
4125 echo "$ac_t""yes" 1>&6
4126 else
4127 echo "$ac_t""no" 1>&6
4128 fi
4129
4130
4131 echo $ac_n "checking "for --enable-choice"""... $ac_c" 1>&6
7c66a493 4132echo "configure:4133: checking "for --enable-choice"" >&5
10f2d63a
VZ
4133 no_cache=0
4134 # Check whether --enable-choice or --disable-choice was given.
4135if test "${enable_choice+set}" = set; then
4136 enableval="$enable_choice"
4137
4138 if test "$enableval" = yes; then
4139 ac_cv_use_choice='wxUSE_CHOICE=yes'
4140 else
4141 ac_cv_use_choice='wxUSE_CHOICE=no'
4142 fi
4143
4144else
4145
4146 LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
4147 if test "x$LINE" != x ; then
4148 eval "DEFAULT_$LINE"
4149 else
4150 no_cache=1
4151 fi
4152
4153 ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
4154
4155fi
4156
4157
4158 eval "$ac_cv_use_choice"
4159 if test "$no_cache" != 1; then
4160 echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
4161 fi
4162
4163 if test "$wxUSE_CHOICE" = yes; then
4164 echo "$ac_t""yes" 1>&6
4165 else
4166 echo "$ac_t""no" 1>&6
4167 fi
4168
4169
4170 echo $ac_n "checking "for --enable-combobox"""... $ac_c" 1>&6
7c66a493 4171echo "configure:4172: checking "for --enable-combobox"" >&5
10f2d63a
VZ
4172 no_cache=0
4173 # Check whether --enable-combobox or --disable-combobox was given.
4174if test "${enable_combobox+set}" = set; then
4175 enableval="$enable_combobox"
4176
4177 if test "$enableval" = yes; then
4178 ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
4179 else
4180 ac_cv_use_combobox='wxUSE_COMBOBOX=no'
4181 fi
4182
4183else
4184
4185 LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
4186 if test "x$LINE" != x ; then
4187 eval "DEFAULT_$LINE"
4188 else
4189 no_cache=1
4190 fi
4191
4192 ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
4193
4194fi
4195
4196
4197 eval "$ac_cv_use_combobox"
4198 if test "$no_cache" != 1; then
4199 echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
4200 fi
4201
4202 if test "$wxUSE_COMBOBOX" = yes; then
4203 echo "$ac_t""yes" 1>&6
4204 else
4205 echo "$ac_t""no" 1>&6
4206 fi
4207
4208
4209 echo $ac_n "checking "for --enable-gauge"""... $ac_c" 1>&6
7c66a493 4210echo "configure:4211: checking "for --enable-gauge"" >&5
10f2d63a
VZ
4211 no_cache=0
4212 # Check whether --enable-gauge or --disable-gauge was given.
4213if test "${enable_gauge+set}" = set; then
4214 enableval="$enable_gauge"
4215
4216 if test "$enableval" = yes; then
4217 ac_cv_use_gauge='wxUSE_GAUGE=yes'
4218 else
4219 ac_cv_use_gauge='wxUSE_GAUGE=no'
4220 fi
4221
4222else
4223
4224 LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
4225 if test "x$LINE" != x ; then
4226 eval "DEFAULT_$LINE"
4227 else
4228 no_cache=1
4229 fi
4230
4231 ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
4232
4233fi
4234
4235
4236 eval "$ac_cv_use_gauge"
4237 if test "$no_cache" != 1; then
4238 echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
4239 fi
4240
4241 if test "$wxUSE_GAUGE" = yes; then
4242 echo "$ac_t""yes" 1>&6
4243 else
4244 echo "$ac_t""no" 1>&6
4245 fi
4246
4247
4248 echo $ac_n "checking "for --enable-grid"""... $ac_c" 1>&6
7c66a493 4249echo "configure:4250: checking "for --enable-grid"" >&5
10f2d63a
VZ
4250 no_cache=0
4251 # Check whether --enable-grid or --disable-grid was given.
4252if test "${enable_grid+set}" = set; then
4253 enableval="$enable_grid"
4254
4255 if test "$enableval" = yes; then
4256 ac_cv_use_grid='wxUSE_GRID=yes'
4257 else
4258 ac_cv_use_grid='wxUSE_GRID=no'
4259 fi
4260
4261else
4262
4263 LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
4264 if test "x$LINE" != x ; then
4265 eval "DEFAULT_$LINE"
4266 else
4267 no_cache=1
4268 fi
4269
4270 ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
4271
4272fi
4273
4274
4275 eval "$ac_cv_use_grid"
4276 if test "$no_cache" != 1; then
4277 echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
4278 fi
4279
4280 if test "$wxUSE_GRID" = yes; then
4281 echo "$ac_t""yes" 1>&6
4282 else
4283 echo "$ac_t""no" 1>&6
4284 fi
4285
4286
4287 echo $ac_n "checking "for --enable-newgrid"""... $ac_c" 1>&6
7c66a493 4288echo "configure:4289: checking "for --enable-newgrid"" >&5
10f2d63a
VZ
4289 no_cache=0
4290 # Check whether --enable-newgrid or --disable-newgrid was given.
4291if test "${enable_newgrid+set}" = set; then
4292 enableval="$enable_newgrid"
4293
4294 if test "$enableval" = yes; then
4295 ac_cv_use_newgrid='wxUSE_NEW_GRID=yes'
4296 else
4297 ac_cv_use_newgrid='wxUSE_NEW_GRID=no'
4298 fi
4299
4300else
4301
4302 LINE=`grep "wxUSE_NEW_GRID" ${wx_arg_cache_file}`
4303 if test "x$LINE" != x ; then
4304 eval "DEFAULT_$LINE"
4305 else
4306 no_cache=1
4307 fi
4308
4309 ac_cv_use_newgrid='wxUSE_NEW_GRID='$DEFAULT_wxUSE_NEW_GRID
4310
4311fi
4312
4313
4314 eval "$ac_cv_use_newgrid"
4315 if test "$no_cache" != 1; then
4316 echo $ac_cv_use_newgrid >> ${wx_arg_cache_file}.tmp
4317 fi
4318
4319 if test "$wxUSE_NEW_GRID" = yes; then
4320 echo "$ac_t""yes" 1>&6
4321 else
4322 echo "$ac_t""no" 1>&6
4323 fi
4324
4325
4326 echo $ac_n "checking "for --enable-imaglist"""... $ac_c" 1>&6
7c66a493 4327echo "configure:4328: checking "for --enable-imaglist"" >&5
10f2d63a
VZ
4328 no_cache=0
4329 # Check whether --enable-imaglist or --disable-imaglist was given.
4330if test "${enable_imaglist+set}" = set; then
4331 enableval="$enable_imaglist"
4332
4333 if test "$enableval" = yes; then
4334 ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
4335 else
4336 ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
4337 fi
4338
4339else
4340
4341 LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
4342 if test "x$LINE" != x ; then
4343 eval "DEFAULT_$LINE"
4344 else
4345 no_cache=1
4346 fi
4347
4348 ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
4349
4350fi
4351
4352
4353 eval "$ac_cv_use_imaglist"
4354 if test "$no_cache" != 1; then
4355 echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
4356 fi
4357
4358 if test "$wxUSE_IMAGLIST" = yes; then
4359 echo "$ac_t""yes" 1>&6
4360 else
4361 echo "$ac_t""no" 1>&6
4362 fi
4363
4364
4365 echo $ac_n "checking "for --enable-listbox"""... $ac_c" 1>&6
7c66a493 4366echo "configure:4367: checking "for --enable-listbox"" >&5
10f2d63a
VZ
4367 no_cache=0
4368 # Check whether --enable-listbox or --disable-listbox was given.
4369if test "${enable_listbox+set}" = set; then
4370 enableval="$enable_listbox"
4371
4372 if test "$enableval" = yes; then
4373 ac_cv_use_listbox='wxUSE_LISTBOX=yes'
4374 else
4375 ac_cv_use_listbox='wxUSE_LISTBOX=no'
4376 fi
4377
4378else
4379
4380 LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
4381 if test "x$LINE" != x ; then
4382 eval "DEFAULT_$LINE"
4383 else
4384 no_cache=1
4385 fi
4386
4387 ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
4388
4389fi
4390
4391
4392 eval "$ac_cv_use_listbox"
4393 if test "$no_cache" != 1; then
4394 echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
4395 fi
4396
4397 if test "$wxUSE_LISTBOX" = yes; then
4398 echo "$ac_t""yes" 1>&6
4399 else
4400 echo "$ac_t""no" 1>&6
4401 fi
4402
4403
4404 echo $ac_n "checking "for --enable-listctrl"""... $ac_c" 1>&6
7c66a493 4405echo "configure:4406: checking "for --enable-listctrl"" >&5
10f2d63a
VZ
4406 no_cache=0
4407 # Check whether --enable-listctrl or --disable-listctrl was given.
4408if test "${enable_listctrl+set}" = set; then
4409 enableval="$enable_listctrl"
4410
4411 if test "$enableval" = yes; then
4412 ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
4413 else
4414 ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
4415 fi
4416
4417else
4418
4419 LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
4420 if test "x$LINE" != x ; then
4421 eval "DEFAULT_$LINE"
4422 else
4423 no_cache=1
4424 fi
4425
4426 ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
4427
4428fi
4429
4430
4431 eval "$ac_cv_use_listctrl"
4432 if test "$no_cache" != 1; then
4433 echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
4434 fi
4435
4436 if test "$wxUSE_LISTCTRL" = yes; then
4437 echo "$ac_t""yes" 1>&6
4438 else
4439 echo "$ac_t""no" 1>&6
4440 fi
4441
4442
4443 echo $ac_n "checking "for --enable-notebook"""... $ac_c" 1>&6
7c66a493 4444echo "configure:4445: checking "for --enable-notebook"" >&5
10f2d63a
VZ
4445 no_cache=0
4446 # Check whether --enable-notebook or --disable-notebook was given.
4447if test "${enable_notebook+set}" = set; then
4448 enableval="$enable_notebook"
4449
4450 if test "$enableval" = yes; then
4451 ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
4452 else
4453 ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
4454 fi
4455
4456else
4457
4458 LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
4459 if test "x$LINE" != x ; then
4460 eval "DEFAULT_$LINE"
4461 else
4462 no_cache=1
4463 fi
4464
4465 ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
4466
4467fi
4468
4469
4470 eval "$ac_cv_use_notebook"
4471 if test "$no_cache" != 1; then
4472 echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
4473 fi
4474
4475 if test "$wxUSE_NOTEBOOK" = yes; then
4476 echo "$ac_t""yes" 1>&6
4477 else
4478 echo "$ac_t""no" 1>&6
4479 fi
4480
4481
4482 echo $ac_n "checking "for --enable-radiobox"""... $ac_c" 1>&6
7c66a493 4483echo "configure:4484: checking "for --enable-radiobox"" >&5
10f2d63a
VZ
4484 no_cache=0
4485 # Check whether --enable-radiobox or --disable-radiobox was given.
4486if test "${enable_radiobox+set}" = set; then
4487 enableval="$enable_radiobox"
4488
4489 if test "$enableval" = yes; then
4490 ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
4491 else
4492 ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
4493 fi
4494
4495else
4496
4497 LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
4498 if test "x$LINE" != x ; then
4499 eval "DEFAULT_$LINE"
4500 else
4501 no_cache=1
4502 fi
4503
4504 ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
4505
4506fi
4507
4508
4509 eval "$ac_cv_use_radiobox"
4510 if test "$no_cache" != 1; then
4511 echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
4512 fi
4513
4514 if test "$wxUSE_RADIOBOX" = yes; then
4515 echo "$ac_t""yes" 1>&6
4516 else
4517 echo "$ac_t""no" 1>&6
4518 fi
4519
4520
4521 echo $ac_n "checking "for --enable-radiobtn"""... $ac_c" 1>&6
7c66a493 4522echo "configure:4523: checking "for --enable-radiobtn"" >&5
10f2d63a
VZ
4523 no_cache=0
4524 # Check whether --enable-radiobtn or --disable-radiobtn was given.
4525if test "${enable_radiobtn+set}" = set; then
4526 enableval="$enable_radiobtn"
4527
4528 if test "$enableval" = yes; then
4529 ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
4530 else
4531 ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
4532 fi
4533
4534else
4535
4536 LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
4537 if test "x$LINE" != x ; then
4538 eval "DEFAULT_$LINE"
4539 else
4540 no_cache=1
4541 fi
4542
4543 ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
4544
4545fi
4546
4547
4548 eval "$ac_cv_use_radiobtn"
4549 if test "$no_cache" != 1; then
4550 echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
4551 fi
4552
4553 if test "$wxUSE_RADIOBTN" = yes; then
4554 echo "$ac_t""yes" 1>&6
4555 else
4556 echo "$ac_t""no" 1>&6
4557 fi
4558
4559
4560 echo $ac_n "checking "for --enable-sash"""... $ac_c" 1>&6
7c66a493 4561echo "configure:4562: checking "for --enable-sash"" >&5
10f2d63a
VZ
4562 no_cache=0
4563 # Check whether --enable-sash or --disable-sash was given.
4564if test "${enable_sash+set}" = set; then
4565 enableval="$enable_sash"
4566
4567 if test "$enableval" = yes; then
4568 ac_cv_use_sash='wxUSE_SASH=yes'
4569 else
4570 ac_cv_use_sash='wxUSE_SASH=no'
4571 fi
4572
4573else
4574
4575 LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
4576 if test "x$LINE" != x ; then
4577 eval "DEFAULT_$LINE"
4578 else
4579 no_cache=1
4580 fi
4581
4582 ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
4583
4584fi
4585
4586
4587 eval "$ac_cv_use_sash"
4588 if test "$no_cache" != 1; then
4589 echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
4590 fi
4591
4592 if test "$wxUSE_SASH" = yes; then
4593 echo "$ac_t""yes" 1>&6
4594 else
4595 echo "$ac_t""no" 1>&6
4596 fi
4597
4598
4599 echo $ac_n "checking "for --enable-scrollbar"""... $ac_c" 1>&6
7c66a493 4600echo "configure:4601: checking "for --enable-scrollbar"" >&5
10f2d63a
VZ
4601 no_cache=0
4602 # Check whether --enable-scrollbar or --disable-scrollbar was given.
4603if test "${enable_scrollbar+set}" = set; then
4604 enableval="$enable_scrollbar"
4605
4606 if test "$enableval" = yes; then
4607 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
4608 else
4609 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
4610 fi
4611
4612else
4613
4614 LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
4615 if test "x$LINE" != x ; then
4616 eval "DEFAULT_$LINE"
4617 else
4618 no_cache=1
4619 fi
4620
4621 ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
4622
4623fi
4624
4625
4626 eval "$ac_cv_use_scrollbar"
4627 if test "$no_cache" != 1; then
4628 echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
4629 fi
4630
4631 if test "$wxUSE_SCROLLBAR" = yes; then
4632 echo "$ac_t""yes" 1>&6
4633 else
4634 echo "$ac_t""no" 1>&6
4635 fi
4636
4637
4638 echo $ac_n "checking "for --enable-slider"""... $ac_c" 1>&6
7c66a493 4639echo "configure:4640: checking "for --enable-slider"" >&5
10f2d63a
VZ
4640 no_cache=0
4641 # Check whether --enable-slider or --disable-slider was given.
4642if test "${enable_slider+set}" = set; then
4643 enableval="$enable_slider"
4644
4645 if test "$enableval" = yes; then
4646 ac_cv_use_slider='wxUSE_SLIDER=yes'
4647 else
4648 ac_cv_use_slider='wxUSE_SLIDER=no'
4649 fi
4650
4651else
4652
4653 LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
4654 if test "x$LINE" != x ; then
4655 eval "DEFAULT_$LINE"
4656 else
4657 no_cache=1
4658 fi
4659
4660 ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
4661
4662fi
4663
4664
4665 eval "$ac_cv_use_slider"
4666 if test "$no_cache" != 1; then
4667 echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
4668 fi
4669
4670 if test "$wxUSE_SLIDER" = yes; then
4671 echo "$ac_t""yes" 1>&6
4672 else
4673 echo "$ac_t""no" 1>&6
4674 fi
4675
4676
4677 echo $ac_n "checking "for --enable-spinbtn"""... $ac_c" 1>&6
7c66a493 4678echo "configure:4679: checking "for --enable-spinbtn"" >&5
10f2d63a
VZ
4679 no_cache=0
4680 # Check whether --enable-spinbtn or --disable-spinbtn was given.
4681if test "${enable_spinbtn+set}" = set; then
4682 enableval="$enable_spinbtn"
4683
4684 if test "$enableval" = yes; then
4685 ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
4686 else
4687 ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
4688 fi
4689
4690else
4691
4692 LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
4693 if test "x$LINE" != x ; then
4694 eval "DEFAULT_$LINE"
4695 else
4696 no_cache=1
4697 fi
4698
4699 ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
4700
4701fi
4702
4703
4704 eval "$ac_cv_use_spinbtn"
4705 if test "$no_cache" != 1; then
4706 echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
4707 fi
4708
4709 if test "$wxUSE_SPINBTN" = yes; then
4710 echo "$ac_t""yes" 1>&6
4711 else
4712 echo "$ac_t""no" 1>&6
4713 fi
4714
4715
56cfaa52 4716 echo $ac_n "checking "for --enable-spinctrl"""... $ac_c" 1>&6
7c66a493 4717echo "configure:4718: checking "for --enable-spinctrl"" >&5
56cfaa52
RR
4718 no_cache=0
4719 # Check whether --enable-spinctrl or --disable-spinctrl was given.
4720if test "${enable_spinctrl+set}" = set; then
4721 enableval="$enable_spinctrl"
4722
4723 if test "$enableval" = yes; then
4724 ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
4725 else
4726 ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
4727 fi
4728
4729else
4730
4731 LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
4732 if test "x$LINE" != x ; then
4733 eval "DEFAULT_$LINE"
4734 else
4735 no_cache=1
4736 fi
4737
4738 ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
4739
4740fi
4741
4742
4743 eval "$ac_cv_use_spinctrl"
4744 if test "$no_cache" != 1; then
4745 echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
4746 fi
4747
4748 if test "$wxUSE_SPINCTRL" = yes; then
4749 echo "$ac_t""yes" 1>&6
4750 else
4751 echo "$ac_t""no" 1>&6
4752 fi
4753
4754
10f2d63a 4755 echo $ac_n "checking "for --enable-splitter"""... $ac_c" 1>&6
7c66a493 4756echo "configure:4757: checking "for --enable-splitter"" >&5
10f2d63a
VZ
4757 no_cache=0
4758 # Check whether --enable-splitter or --disable-splitter was given.
4759if test "${enable_splitter+set}" = set; then
4760 enableval="$enable_splitter"
4761
4762 if test "$enableval" = yes; then
4763 ac_cv_use_splitter='wxUSE_SPLITTER=yes'
4764 else
4765 ac_cv_use_splitter='wxUSE_SPLITTER=no'
4766 fi
4767
4768else
4769
4770 LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
4771 if test "x$LINE" != x ; then
4772 eval "DEFAULT_$LINE"
4773 else
4774 no_cache=1
4775 fi
4776
4777 ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
4778
4779fi
4780
4781
4782 eval "$ac_cv_use_splitter"
4783 if test "$no_cache" != 1; then
4784 echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
4785 fi
4786
4787 if test "$wxUSE_SPLITTER" = yes; then
4788 echo "$ac_t""yes" 1>&6
4789 else
4790 echo "$ac_t""no" 1>&6
4791 fi
4792
4793
4794 echo $ac_n "checking "for --enable-statbmp"""... $ac_c" 1>&6
7c66a493 4795echo "configure:4796: checking "for --enable-statbmp"" >&5
10f2d63a
VZ
4796 no_cache=0
4797 # Check whether --enable-statbmp or --disable-statbmp was given.
4798if test "${enable_statbmp+set}" = set; then
4799 enableval="$enable_statbmp"
4800
4801 if test "$enableval" = yes; then
4802 ac_cv_use_statbmp='wxUSE_STATBMP=yes'
4803 else
4804 ac_cv_use_statbmp='wxUSE_STATBMP=no'
4805 fi
4806
4807else
4808
4809 LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
4810 if test "x$LINE" != x ; then
4811 eval "DEFAULT_$LINE"
4812 else
4813 no_cache=1
4814 fi
4815
4816 ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
4817
4818fi
4819
4820
4821 eval "$ac_cv_use_statbmp"
4822 if test "$no_cache" != 1; then
4823 echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
4824 fi
4825
4826 if test "$wxUSE_STATBMP" = yes; then
4827 echo "$ac_t""yes" 1>&6
4828 else
4829 echo "$ac_t""no" 1>&6
4830 fi
4831
4832
4833 echo $ac_n "checking "for --enable-statbox"""... $ac_c" 1>&6
7c66a493 4834echo "configure:4835: checking "for --enable-statbox"" >&5
10f2d63a
VZ
4835 no_cache=0
4836 # Check whether --enable-statbox or --disable-statbox was given.
4837if test "${enable_statbox+set}" = set; then
4838 enableval="$enable_statbox"
4839
4840 if test "$enableval" = yes; then
4841 ac_cv_use_statbox='wxUSE_STATBOX=yes'
4842 else
4843 ac_cv_use_statbox='wxUSE_STATBOX=no'
4844 fi
4845
4846else
4847
4848 LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
4849 if test "x$LINE" != x ; then
4850 eval "DEFAULT_$LINE"
4851 else
4852 no_cache=1
4853 fi
4854
4855 ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
4856
4857fi
4858
4859
4860 eval "$ac_cv_use_statbox"
4861 if test "$no_cache" != 1; then
4862 echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
4863 fi
4864
4865 if test "$wxUSE_STATBOX" = yes; then
4866 echo "$ac_t""yes" 1>&6
4867 else
4868 echo "$ac_t""no" 1>&6
4869 fi
4870
4871
4872 echo $ac_n "checking "for --enable-statline"""... $ac_c" 1>&6
7c66a493 4873echo "configure:4874: checking "for --enable-statline"" >&5
10f2d63a
VZ
4874 no_cache=0
4875 # Check whether --enable-statline or --disable-statline was given.
4876if test "${enable_statline+set}" = set; then
4877 enableval="$enable_statline"
4878
4879 if test "$enableval" = yes; then
4880 ac_cv_use_statline='wxUSE_STATLINE=yes'
4881 else
4882 ac_cv_use_statline='wxUSE_STATLINE=no'
4883 fi
4884
4885else
4886
4887 LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
4888 if test "x$LINE" != x ; then
4889 eval "DEFAULT_$LINE"
4890 else
4891 no_cache=1
4892 fi
4893
4894 ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
4895
4896fi
4897
4898
4899 eval "$ac_cv_use_statline"
4900 if test "$no_cache" != 1; then
4901 echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
4902 fi
4903
4904 if test "$wxUSE_STATLINE" = yes; then
4905 echo "$ac_t""yes" 1>&6
4906 else
4907 echo "$ac_t""no" 1>&6
4908 fi
4909
4910
4911 echo $ac_n "checking "for --enable-statusbar"""... $ac_c" 1>&6
7c66a493 4912echo "configure:4913: checking "for --enable-statusbar"" >&5
10f2d63a
VZ
4913 no_cache=0
4914 # Check whether --enable-statusbar or --disable-statusbar was given.
4915if test "${enable_statusbar+set}" = set; then
4916 enableval="$enable_statusbar"
4917
4918 if test "$enableval" = yes; then
4919 ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
4920 else
4921 ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
4922 fi
4923
4924else
4925
4926 LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
4927 if test "x$LINE" != x ; then
4928 eval "DEFAULT_$LINE"
4929 else
4930 no_cache=1
4931 fi
4932
4933 ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
4934
4935fi
4936
4937
4938 eval "$ac_cv_use_statusbar"
4939 if test "$no_cache" != 1; then
4940 echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
4941 fi
4942
4943 if test "$wxUSE_STATUSBAR" = yes; then
4944 echo "$ac_t""yes" 1>&6
4945 else
4946 echo "$ac_t""no" 1>&6
4947 fi
4948
4949
4950 echo $ac_n "checking "for --enable-tabdialog"""... $ac_c" 1>&6
7c66a493 4951echo "configure:4952: checking "for --enable-tabdialog"" >&5
10f2d63a
VZ
4952 no_cache=0
4953 # Check whether --enable-tabdialog or --disable-tabdialog was given.
4954if test "${enable_tabdialog+set}" = set; then
4955 enableval="$enable_tabdialog"
4956
4957 if test "$enableval" = yes; then
4958 ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes'
4959 else
4960 ac_cv_use_tabdialog='wxUSE_TABDIALOG=no'
4961 fi
4962
4963else
4964
4965 LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}`
4966 if test "x$LINE" != x ; then
4967 eval "DEFAULT_$LINE"
4968 else
4969 no_cache=1
4970 fi
4971
4972 ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG
4973
4974fi
4975
4976
4977 eval "$ac_cv_use_tabdialog"
4978 if test "$no_cache" != 1; then
4979 echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
4980 fi
4981
4982 if test "$wxUSE_TABDIALOG" = yes; then
4983 echo "$ac_t""yes" 1>&6
4984 else
4985 echo "$ac_t""no" 1>&6
4986 fi
4987
4988
4989 echo $ac_n "checking "for --enable-toolbar"""... $ac_c" 1>&6
7c66a493 4990echo "configure:4991: checking "for --enable-toolbar"" >&5
10f2d63a
VZ
4991 no_cache=0
4992 # Check whether --enable-toolbar or --disable-toolbar was given.
4993if test "${enable_toolbar+set}" = set; then
4994 enableval="$enable_toolbar"
4995
4996 if test "$enableval" = yes; then
4997 ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
4998 else
4999 ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
5000 fi
5001
5002else
5003
5004 LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
5005 if test "x$LINE" != x ; then
5006 eval "DEFAULT_$LINE"
5007 else
5008 no_cache=1
5009 fi
5010
5011 ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
5012
5013fi
5014
5015
5016 eval "$ac_cv_use_toolbar"
5017 if test "$no_cache" != 1; then
5018 echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
5019 fi
5020
5021 if test "$wxUSE_TOOLBAR" = yes; then
5022 echo "$ac_t""yes" 1>&6
5023 else
5024 echo "$ac_t""no" 1>&6
5025 fi
5026
5027
360d6699 5028 echo $ac_n "checking "for --enable-tbarnative"""... $ac_c" 1>&6
7c66a493 5029echo "configure:5030: checking "for --enable-tbarnative"" >&5
360d6699
VZ
5030 no_cache=0
5031 # Check whether --enable-tbarnative or --disable-tbarnative was given.
5032if test "${enable_tbarnative+set}" = set; then
5033 enableval="$enable_tbarnative"
5034
5035 if test "$enableval" = yes; then
5036 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
5037 else
5038 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
5039 fi
5040
5041else
5042
5043 LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
5044 if test "x$LINE" != x ; then
5045 eval "DEFAULT_$LINE"
5046 else
5047 no_cache=1
5048 fi
5049
5050 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
5051
5052fi
5053
5054
5055 eval "$ac_cv_use_tbarnative"
5056 if test "$no_cache" != 1; then
5057 echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
5058 fi
5059
5060 if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
5061 echo "$ac_t""yes" 1>&6
5062 else
5063 echo "$ac_t""no" 1>&6
5064 fi
5065
5066
5067 echo $ac_n "checking "for --enable-tbarsmpl"""... $ac_c" 1>&6
7c66a493 5068echo "configure:5069: checking "for --enable-tbarsmpl"" >&5
360d6699
VZ
5069 no_cache=0
5070 # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given.
5071if test "${enable_tbarsmpl+set}" = set; then
5072 enableval="$enable_tbarsmpl"
5073
5074 if test "$enableval" = yes; then
5075 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes'
5076 else
5077 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no'
5078 fi
5079
5080else
5081
5082 LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}`
5083 if test "x$LINE" != x ; then
5084 eval "DEFAULT_$LINE"
5085 else
5086 no_cache=1
5087 fi
5088
5089 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE
5090
5091fi
5092
5093
5094 eval "$ac_cv_use_tbarsmpl"
5095 if test "$no_cache" != 1; then
5096 echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp
5097 fi
5098
5099 if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then
5100 echo "$ac_t""yes" 1>&6
5101 else
5102 echo "$ac_t""no" 1>&6
5103 fi
5104
5105
10f2d63a 5106 echo $ac_n "checking "for --enable-treectrl"""... $ac_c" 1>&6
7c66a493 5107echo "configure:5108: checking "for --enable-treectrl"" >&5
10f2d63a
VZ
5108 no_cache=0
5109 # Check whether --enable-treectrl or --disable-treectrl was given.
5110if test "${enable_treectrl+set}" = set; then
5111 enableval="$enable_treectrl"
5112
5113 if test "$enableval" = yes; then
5114 ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
5115 else
5116 ac_cv_use_treectrl='wxUSE_TREECTRL=no'
5117 fi
5118
5119else
5120
5121 LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
5122 if test "x$LINE" != x ; then
5123 eval "DEFAULT_$LINE"
5124 else
5125 no_cache=1
5126 fi
5127
5128 ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
5129
5130fi
5131
5132
5133 eval "$ac_cv_use_treectrl"
5134 if test "$no_cache" != 1; then
5135 echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
5136 fi
5137
5138 if test "$wxUSE_TREECTRL" = yes; then
5139 echo "$ac_t""yes" 1>&6
5140 else
5141 echo "$ac_t""no" 1>&6
5142 fi
5143
5144
5145
5146
5147 echo $ac_n "checking "for --enable-commondlg"""... $ac_c" 1>&6
7c66a493 5148echo "configure:5149: checking "for --enable-commondlg"" >&5
10f2d63a
VZ
5149 no_cache=0
5150 # Check whether --enable-commondlg or --disable-commondlg was given.
5151if test "${enable_commondlg+set}" = set; then
5152 enableval="$enable_commondlg"
5153
5154 if test "$enableval" = yes; then
5155 ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
5156 else
5157 ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
5158 fi
5159
5160else
5161
5162 LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
5163 if test "x$LINE" != x ; then
5164 eval "DEFAULT_$LINE"
5165 else
5166 no_cache=1
5167 fi
5168
5169 ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
5170
5171fi
5172
5173
5174 eval "$ac_cv_use_commondlg"
5175 if test "$no_cache" != 1; then
5176 echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
5177 fi
5178
5179 if test "$wxUSE_COMMONDLGS" = yes; then
5180 echo "$ac_t""yes" 1>&6
5181 else
5182 echo "$ac_t""no" 1>&6
5183 fi
5184
5185
5186 echo $ac_n "checking "for --enable-dirdlg"""... $ac_c" 1>&6
7c66a493 5187echo "configure:5188: checking "for --enable-dirdlg"" >&5
10f2d63a
VZ
5188 no_cache=0
5189 # Check whether --enable-dirdlg or --disable-dirdlg was given.
5190if test "${enable_dirdlg+set}" = set; then
5191 enableval="$enable_dirdlg"
5192
5193 if test "$enableval" = yes; then
5194 ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
5195 else
5196 ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
5197 fi
5198
5199else
5200
5201 LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
5202 if test "x$LINE" != x ; then
5203 eval "DEFAULT_$LINE"
5204 else
5205 no_cache=1
5206 fi
5207
5208 ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
5209
5210fi
5211
5212
5213 eval "$ac_cv_use_dirdlg"
5214 if test "$no_cache" != 1; then
5215 echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
5216 fi
5217
5218 if test "$wxUSE_DIRDLG" = yes; then
5219 echo "$ac_t""yes" 1>&6
5220 else
5221 echo "$ac_t""no" 1>&6
5222 fi
5223
5224
5225 echo $ac_n "checking "for --enable-textdlg"""... $ac_c" 1>&6
7c66a493 5226echo "configure:5227: checking "for --enable-textdlg"" >&5
10f2d63a
VZ
5227 no_cache=0
5228 # Check whether --enable-textdlg or --disable-textdlg was given.
5229if test "${enable_textdlg+set}" = set; then
5230 enableval="$enable_textdlg"
5231
5232 if test "$enableval" = yes; then
5233 ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
5234 else
5235 ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
5236 fi
5237
5238else
5239
5240 LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
5241 if test "x$LINE" != x ; then
5242 eval "DEFAULT_$LINE"
5243 else
5244 no_cache=1
5245 fi
5246
5247 ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
5248
5249fi
5250
5251
5252 eval "$ac_cv_use_textdlg"
5253 if test "$no_cache" != 1; then
5254 echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
5255 fi
5256
5257 if test "$wxUSE_TEXTDLG" = yes; then
5258 echo "$ac_t""yes" 1>&6
5259 else
5260 echo "$ac_t""no" 1>&6
5261 fi
5262
5263
5264 echo $ac_n "checking "for --enable-tipdlg"""... $ac_c" 1>&6
7c66a493 5265echo "configure:5266: checking "for --enable-tipdlg"" >&5
10f2d63a
VZ
5266 no_cache=0
5267 # Check whether --enable-tipdlg or --disable-tipdlg was given.
5268if test "${enable_tipdlg+set}" = set; then
5269 enableval="$enable_tipdlg"
5270
5271 if test "$enableval" = yes; then
5272 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
5273 else
5274 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
5275 fi
5276
5277else
5278
5279 LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
5280 if test "x$LINE" != x ; then
5281 eval "DEFAULT_$LINE"
5282 else
5283 no_cache=1
5284 fi
5285
5286 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
5287
5288fi
5289
5290
5291 eval "$ac_cv_use_tipdlg"
5292 if test "$no_cache" != 1; then
5293 echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
5294 fi
5295
5296 if test "$wxUSE_STARTUP_TIPS" = yes; then
5297 echo "$ac_t""yes" 1>&6
5298 else
5299 echo "$ac_t""no" 1>&6
5300 fi
5301
5302
5303 echo $ac_n "checking "for --enable-progressdlg"""... $ac_c" 1>&6
7c66a493 5304echo "configure:5305: checking "for --enable-progressdlg"" >&5
10f2d63a
VZ
5305 no_cache=0
5306 # Check whether --enable-progressdlg or --disable-progressdlg was given.
5307if test "${enable_progressdlg+set}" = set; then
5308 enableval="$enable_progressdlg"
5309
5310 if test "$enableval" = yes; then
5311 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
5312 else
5313 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
5314 fi
5315
5316else
5317
5318 LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
5319 if test "x$LINE" != x ; then
5320 eval "DEFAULT_$LINE"
5321 else
5322 no_cache=1
5323 fi
5324
5325 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
5326
5327fi
5328
5329
5330 eval "$ac_cv_use_progressdlg"
5331 if test "$no_cache" != 1; then
5332 echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
5333 fi
5334
5335 if test "$wxUSE_PROGRESSDLG" = yes; then
5336 echo "$ac_t""yes" 1>&6
5337 else
5338 echo "$ac_t""no" 1>&6
5339 fi
5340
5341
5342 echo $ac_n "checking "for --enable-miniframe"""... $ac_c" 1>&6
7c66a493 5343echo "configure:5344: checking "for --enable-miniframe"" >&5
10f2d63a
VZ
5344 no_cache=0
5345 # Check whether --enable-miniframe or --disable-miniframe was given.
5346if test "${enable_miniframe+set}" = set; then
5347 enableval="$enable_miniframe"
5348
5349 if test "$enableval" = yes; then
5350 ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
5351 else
5352 ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
5353 fi
5354
5355else
5356
5357 LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
5358 if test "x$LINE" != x ; then
5359 eval "DEFAULT_$LINE"
5360 else
5361 no_cache=1
5362 fi
5363
5364 ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
5365
5366fi
5367
5368
5369 eval "$ac_cv_use_miniframe"
5370 if test "$no_cache" != 1; then
5371 echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
5372 fi
5373
5374 if test "$wxUSE_MINIFRAME" = yes; then
5375 echo "$ac_t""yes" 1>&6
5376 else
5377 echo "$ac_t""no" 1>&6
5378 fi
5379
5380
5381 echo $ac_n "checking "for --enable-html"""... $ac_c" 1>&6
7c66a493 5382echo "configure:5383: checking "for --enable-html"" >&5
10f2d63a
VZ
5383 no_cache=0
5384 # Check whether --enable-html or --disable-html was given.
5385if test "${enable_html+set}" = set; then
5386 enableval="$enable_html"
5387
5388 if test "$enableval" = yes; then
5389 ac_cv_use_html='wxUSE_HTML=yes'
5390 else
5391 ac_cv_use_html='wxUSE_HTML=no'
5392 fi
5393
5394else
5395
5396 LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
5397 if test "x$LINE" != x ; then
5398 eval "DEFAULT_$LINE"
5399 else
5400 no_cache=1
5401 fi
5402
5403 ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
5404
5405fi
5406
5407
5408 eval "$ac_cv_use_html"
5409 if test "$no_cache" != 1; then
5410 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
5411 fi
5412
5413 if test "$wxUSE_HTML" = yes; then
5414 echo "$ac_t""yes" 1>&6
5415 else
5416 echo "$ac_t""no" 1>&6
5417 fi
5418
5419
5420 echo $ac_n "checking "for --enable-tooltips"""... $ac_c" 1>&6
7c66a493 5421echo "configure:5422: checking "for --enable-tooltips"" >&5
10f2d63a
VZ
5422 no_cache=0
5423 # Check whether --enable-tooltips or --disable-tooltips was given.
5424if test "${enable_tooltips+set}" = set; then
5425 enableval="$enable_tooltips"
5426
5427 if test "$enableval" = yes; then
5428 ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
5429 else
5430 ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
5431 fi
5432
5433else
5434
5435 LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
5436 if test "x$LINE" != x ; then
5437 eval "DEFAULT_$LINE"
5438 else
5439 no_cache=1
5440 fi
5441
5442 ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
5443
5444fi
5445
5446
5447 eval "$ac_cv_use_tooltips"
5448 if test "$no_cache" != 1; then
5449 echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
5450 fi
5451
5452 if test "$wxUSE_TOOLTIPS" = yes; then
5453 echo "$ac_t""yes" 1>&6
5454 else
5455 echo "$ac_t""no" 1>&6
5456 fi
5457
5458
5459 echo $ac_n "checking "for --enable-splines"""... $ac_c" 1>&6
7c66a493 5460echo "configure:5461: checking "for --enable-splines"" >&5
10f2d63a
VZ
5461 no_cache=0
5462 # Check whether --enable-splines or --disable-splines was given.
5463if test "${enable_splines+set}" = set; then
5464 enableval="$enable_splines"
5465
5466 if test "$enableval" = yes; then
5467 ac_cv_use_splines='wxUSE_SPLINES=yes'
5468 else
5469 ac_cv_use_splines='wxUSE_SPLINES=no'
5470 fi
5471
5472else
5473
5474 LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
5475 if test "x$LINE" != x ; then
5476 eval "DEFAULT_$LINE"
5477 else
5478 no_cache=1
5479 fi
5480
5481 ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
5482
5483fi
5484
5485
5486 eval "$ac_cv_use_splines"
5487 if test "$no_cache" != 1; then
5488 echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
5489 fi
5490
5491 if test "$wxUSE_SPLINES" = yes; then
5492 echo "$ac_t""yes" 1>&6
5493 else
5494 echo "$ac_t""no" 1>&6
5495 fi
5496
5497
5498 echo $ac_n "checking "for --enable-validators"""... $ac_c" 1>&6
7c66a493 5499echo "configure:5500: checking "for --enable-validators"" >&5
10f2d63a
VZ
5500 no_cache=0
5501 # Check whether --enable-validators or --disable-validators was given.
5502if test "${enable_validators+set}" = set; then
5503 enableval="$enable_validators"
5504
5505 if test "$enableval" = yes; then
5506 ac_cv_use_validators='wxUSE_VALIDATORS=yes'
5507 else
5508 ac_cv_use_validators='wxUSE_VALIDATORS=no'
5509 fi
5510
5511else
5512
5513 LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
5514 if test "x$LINE" != x ; then
5515 eval "DEFAULT_$LINE"
5516 else
5517 no_cache=1
5518 fi
5519
5520 ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
5521
5522fi
5523
5524
5525 eval "$ac_cv_use_validators"
5526 if test "$no_cache" != 1; then
5527 echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
5528 fi
5529
5530 if test "$wxUSE_VALIDATORS" = yes; then
5531 echo "$ac_t""yes" 1>&6
5532 else
5533 echo "$ac_t""no" 1>&6
5534 fi
5535
5536
5537 echo $ac_n "checking "for --enable-busyinfo"""... $ac_c" 1>&6
7c66a493 5538echo "configure:5539: checking "for --enable-busyinfo"" >&5
10f2d63a
VZ
5539 no_cache=0
5540 # Check whether --enable-busyinfo or --disable-busyinfo was given.
5541if test "${enable_busyinfo+set}" = set; then
5542 enableval="$enable_busyinfo"
5543
5544 if test "$enableval" = yes; then
5545 ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
5546 else
5547 ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
5548 fi
5549
5550else
5551
5552 LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
5553 if test "x$LINE" != x ; then
5554 eval "DEFAULT_$LINE"
5555 else
5556 no_cache=1
5557 fi
5558
5559 ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
5560
5561fi
5562
5563
5564 eval "$ac_cv_use_busyinfo"
5565 if test "$no_cache" != 1; then
5566 echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
5567 fi
5568
5569 if test "$wxUSE_BUSYINFO" = yes; then
5570 echo "$ac_t""yes" 1>&6
5571 else
5572 echo "$ac_t""no" 1>&6
5573 fi
5574
5575
5576
5577
5578 echo $ac_n "checking "for --enable-gif"""... $ac_c" 1>&6
7c66a493 5579echo "configure:5580: checking "for --enable-gif"" >&5
10f2d63a
VZ
5580 no_cache=0
5581 # Check whether --enable-gif or --disable-gif was given.
5582if test "${enable_gif+set}" = set; then
5583 enableval="$enable_gif"
5584
5585 if test "$enableval" = yes; then
5586 ac_cv_use_gif='wxUSE_GIF=yes'
5587 else
5588 ac_cv_use_gif='wxUSE_GIF=no'
5589 fi
5590
5591else
5592
5593 LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
5594 if test "x$LINE" != x ; then
5595 eval "DEFAULT_$LINE"
5596 else
5597 no_cache=1
5598 fi
5599
5600 ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
5601
5602fi
5603
5604
5605 eval "$ac_cv_use_gif"
5606 if test "$no_cache" != 1; then
5607 echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
5608 fi
5609
5610 if test "$wxUSE_GIF" = yes; then
5611 echo "$ac_t""yes" 1>&6
5612 else
5613 echo "$ac_t""no" 1>&6
5614 fi
5615
5616
5617 echo $ac_n "checking "for --enable-pcx"""... $ac_c" 1>&6
7c66a493 5618echo "configure:5619: checking "for --enable-pcx"" >&5
10f2d63a
VZ
5619 no_cache=0
5620 # Check whether --enable-pcx or --disable-pcx was given.
5621if test "${enable_pcx+set}" = set; then
5622 enableval="$enable_pcx"
5623
5624 if test "$enableval" = yes; then
5625 ac_cv_use_pcx='wxUSE_PCX=yes'
5626 else
5627 ac_cv_use_pcx='wxUSE_PCX=no'
5628 fi
5629
5630else
5631
5632 LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
5633 if test "x$LINE" != x ; then
5634 eval "DEFAULT_$LINE"
5635 else
5636 no_cache=1
5637 fi
5638
5639 ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
5640
5641fi
5642
5643
5644 eval "$ac_cv_use_pcx"
5645 if test "$no_cache" != 1; then
5646 echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
5647 fi
5648
5649 if test "$wxUSE_PCX" = yes; then
5650 echo "$ac_t""yes" 1>&6
5651 else
5652 echo "$ac_t""no" 1>&6
5653 fi
5654
5655
5656 echo $ac_n "checking "for --enable-pnm"""... $ac_c" 1>&6
7c66a493 5657echo "configure:5658: checking "for --enable-pnm"" >&5
10f2d63a
VZ
5658 no_cache=0
5659 # Check whether --enable-pnm or --disable-pnm was given.
5660if test "${enable_pnm+set}" = set; then
5661 enableval="$enable_pnm"
5662
5663 if test "$enableval" = yes; then
5664 ac_cv_use_pnm='wxUSE_PNM=yes'
5665 else
5666 ac_cv_use_pnm='wxUSE_PNM=no'
5667 fi
5668
5669else
5670
5671 LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
5672 if test "x$LINE" != x ; then
5673 eval "DEFAULT_$LINE"
5674 else
5675 no_cache=1
5676 fi
5677
5678 ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
5679
5680fi
5681
5682
5683 eval "$ac_cv_use_pnm"
5684 if test "$no_cache" != 1; then
5685 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
5686 fi
5687
5688 if test "$wxUSE_PNM" = yes; then
5689 echo "$ac_t""yes" 1>&6
5690 else
5691 echo "$ac_t""no" 1>&6
5692 fi
5693
5694
b12915c1
VZ
5695fi
5696
10f2d63a
VZ
5697
5698 echo "saving argument cache $wx_arg_cache_file"
5699 mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
5700
5701
5702
5703echo $ac_n "checking for toolkit""... $ac_c" 1>&6
7c66a493 5704echo "configure:5705: checking for toolkit" >&5
10f2d63a
VZ
5705
5706if test "$wxUSE_GUI" = "yes"; then
5707
b12915c1
VZ
5708if test "$USE_BEOS" = 1; then
5709 { echo "configure: error: BeOS GUI is not supported yet, use --disable-gui" 1>&2; exit 1; }
5710fi
5711
10f2d63a
VZ
5712if test "$TOOLKIT_GIVEN" = 1; then
5713 for toolkit in `echo $ALL_TOOLKITS`; do
5714 var=wxUSE_$toolkit
5715 eval "value=\$${var}"
5716 eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`"
5717 done
5718else
5719 for toolkit in `echo $ALL_TOOLKITS`; do
5720 if test "$has_toolkit_in_cache" != 1; then
5721 var=DEFAULT_DEFAULT_wxUSE_$toolkit
5722 else
5723 var=DEFAULT_wxUSE_$toolkit
5724 fi
5725 eval "wxUSE_$toolkit=\$${var}"
5726 done
5727fi
5728
ec14dd32 5729NUM_TOOLKITS=`expr ${wxUSE_GTK:-0} + ${wxUSE_MOTIF:-0} + ${wxUSE_WINE:-0} + ${wxUSE_MINGW:-0} + ${wxUSE_CYGWIN:-0}`
cf27ef00 5730
ec14dd32
VZ
5731case "${host}" in
5732 *-pc-os2_emx )
5733 NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
5734 # PATH_IFS is autodetected by OS/2's configure (usually ';')
5735 LEX_STEM="lexyy"
5736 ;;
5737 *)
5738 PATH_IFS=':'
5739 LEX_STEM="lex.yy"
cf27ef00 5740 PROGRAM_EXT=
ec14dd32
VZ
5741 ;;
5742esac
10f2d63a
VZ
5743
5744case "$NUM_TOOLKITS" in
5745 1)
5746 ;;
5747 0)
5748 { echo "configure: error: Please specify a toolkit - cannot determine the default for ${host}" 1>&2; exit 1; }
5749 ;;
5750 *)
5751 { echo "configure: error: Please specify at most one toolkit (may be some are cached?)" 1>&2; exit 1; }
5752esac
5753
5754for toolkit in `echo $ALL_TOOLKITS`; do
5755 var=wxUSE_$toolkit
5756 eval "value=\$${var}"
5757 if test "x$value" != x; then
5758 cache_var=CACHE_$toolkit
5759 eval "cache=\$${cache_var}"
5760 if test "$cache" = 1; then
5761 echo "$var=$value" >> ${wx_arg_cache_file}
5762 fi
5763 if test "$value" = 1; then
5764 echo "$ac_t""`echo $toolkit | tr A-Z a-z`" 1>&6
5765 fi
5766 fi
5767done
5768
5769else
cf27ef00 5770 PATH_IFS=':'
10f2d63a
VZ
5771 echo "$ac_t""base only" 1>&6
5772fi
5773
5774
5775cat > confcache <<\EOF
5776# This file is a shell script that caches the results of configure
5777# tests run on this system so they can be shared between configure
5778# scripts and configure runs. It is not useful on other systems.
5779# If it contains results you don't want to keep, you may remove or edit it.
5780#
5781# By default, configure uses ./config.cache as the cache file,
5782# creating it if it does not exist already. You can give configure
5783# the --cache-file=FILE option to use a different cache file; that is
5784# what configure does when it calls configure scripts in
5785# subdirectories, so they share the cache.
5786# Giving --cache-file=/dev/null disables caching, for debugging configure.
5787# config.status only pays attention to the cache file if you give it the
5788# --recheck option to rerun configure.
5789#
5790EOF
5791# The following way of writing the cache mishandles newlines in values,
5792# but we know of no workaround that is simple, portable, and efficient.
5793# So, don't put newlines in cache variables' values.
5794# Ultrix sh set writes to stderr and can't be redirected directly,
5795# and sets the high bit in the cache file unless we assign to the vars.
5796(set) 2>&1 |
5797 case `(ac_space=' '; set | grep ac_space) 2>&1` in
5798 *ac_space=\ *)
5799 # `set' does not quote correctly, so add quotes (double-quote substitution
5800 # turns \\\\ into \\, and sed turns \\ into \).
5801 sed -n \
5802 -e "s/'/'\\\\''/g" \
5803 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
5804 ;;
5805 *)
5806 # `set' quotes correctly as required by POSIX, so do not add quotes.
5807 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
5808 ;;
5809 esac >> confcache
5810if cmp -s $cache_file confcache; then
5811 :
5812else
5813 if test -w $cache_file; then
5814 echo "updating cache $cache_file"
5815 cat confcache > $cache_file
5816 else
5817 echo "not updating unwritable cache $cache_file"
5818 fi
5819fi
5820rm -f confcache
5821
5822
5823if eval "test $host != $build"; then
5824 if eval "test $host_alias != NONE"; then
5825 CC=$host_alias-gcc
5826 CXX=$host_alias-c++
5827 AR=$host_alias-ar
5828 RANLIB=$host_alias-ranlib
5829 DLLTOOL=$host_alias-dlltool
5830 LD=$host_alias-ld
5831 NM=$host_alias-nm
5832 STRIP=$host_alias-strip
5833 fi
5834fi
5835
5836# Extract the first word of "gcc", so it can be a program name with args.
5837set dummy gcc; ac_word=$2
5838echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7c66a493 5839echo "configure:5840: checking for $ac_word" >&5
10f2d63a
VZ
5840if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
5841 echo $ac_n "(cached) $ac_c" 1>&6
5842else
5843 if test -n "$CC"; then
5844 ac_cv_prog_CC="$CC" # Let the user override the test.
5845else
5846 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5847 ac_dummy="$PATH"
5848 for ac_dir in $ac_dummy; do
5849 test -z "$ac_dir" && ac_dir=.
5850 if test -f $ac_dir/$ac_word; then
5851 ac_cv_prog_CC="gcc"
5852 break
5853 fi
5854 done
5855 IFS="$ac_save_ifs"
5856fi
5857fi
5858CC="$ac_cv_prog_CC"
5859if test -n "$CC"; then
5860 echo "$ac_t""$CC" 1>&6
5861else
5862 echo "$ac_t""no" 1>&6
5863fi
5864
5865if test -z "$CC"; then
5866 # Extract the first word of "cc", so it can be a program name with args.
5867set dummy cc; ac_word=$2
5868echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7c66a493 5869echo "configure:5870: checking for $ac_word" >&5
10f2d63a
VZ
5870if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
5871 echo $ac_n "(cached) $ac_c" 1>&6
5872else
5873 if test -n "$CC"; then
5874 ac_cv_prog_CC="$CC" # Let the user override the test.
5875else
5876 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5877 ac_prog_rejected=no
5878 ac_dummy="$PATH"
5879 for ac_dir in $ac_dummy; do
5880 test -z "$ac_dir" && ac_dir=.
5881 if test -f $ac_dir/$ac_word; then
5882 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
5883 ac_prog_rejected=yes
5884 continue
5885 fi
5886 ac_cv_prog_CC="cc"
5887 break
5888 fi
5889 done
5890 IFS="$ac_save_ifs"
5891if test $ac_prog_rejected = yes; then
5892 # We found a bogon in the path, so make sure we never use it.
5893 set dummy $ac_cv_prog_CC
5894 shift
5895 if test $# -gt 0; then
5896 # We chose a different compiler from the bogus one.
5897 # However, it has the same basename, so the bogon will be chosen
5898 # first if we set CC to just the basename; use the full file name.
5899 shift
5900 set dummy "$ac_dir/$ac_word" "$@"
5901 shift
5902 ac_cv_prog_CC="$@"
5903 fi
5904fi
5905fi
5906fi
5907CC="$ac_cv_prog_CC"
5908if test -n "$CC"; then
5909 echo "$ac_t""$CC" 1>&6
5910else
5911 echo "$ac_t""no" 1>&6
5912fi
5913
5914 if test -z "$CC"; then
5915 case "`uname -s`" in
5916 *win32* | *WIN32*)
5917 # Extract the first word of "cl", so it can be a program name with args.
5918set dummy cl; ac_word=$2
5919echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7c66a493 5920echo "configure:5921: checking for $ac_word" >&5
10f2d63a
VZ
5921if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
5922 echo $ac_n "(cached) $ac_c" 1>&6
5923else
5924 if test -n "$CC"; then
5925 ac_cv_prog_CC="$CC" # Let the user override the test.
5926else
5927 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5928 ac_dummy="$PATH"
5929 for ac_dir in $ac_dummy; do
5930 test -z "$ac_dir" && ac_dir=.
5931 if test -f $ac_dir/$ac_word; then
5932 ac_cv_prog_CC="cl"
5933 break
5934 fi
5935 done
5936 IFS="$ac_save_ifs"
5937fi
5938fi
5939CC="$ac_cv_prog_CC"
5940if test -n "$CC"; then
5941 echo "$ac_t""$CC" 1>&6
5942else
5943 echo "$ac_t""no" 1>&6
5944fi
5945 ;;
5946 esac
5947 fi
5948 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
5949fi
5950
5951echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
7c66a493 5952echo "configure:5953: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
10f2d63a
VZ
5953
5954ac_ext=c
5955# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5956ac_cpp='$CPP $CPPFLAGS'
5957ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5958ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5959cross_compiling=$ac_cv_prog_cc_cross
5960
5961cat > conftest.$ac_ext << EOF
5962
7c66a493 5963#line 5964 "configure"
10f2d63a
VZ
5964#include "confdefs.h"
5965
5966main(){return(0);}
5967EOF
7c66a493 5968if { (eval echo configure:5969: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
5969 ac_cv_prog_cc_works=yes
5970 # If we can't run a trivial program, we are probably using a cross compiler.
5971 if (./conftest; exit) 2>/dev/null; then
5972 ac_cv_prog_cc_cross=no
5973 else
5974 ac_cv_prog_cc_cross=yes
5975 fi
5976else
5977 echo "configure: failed program was:" >&5
5978 cat conftest.$ac_ext >&5
5979 ac_cv_prog_cc_works=no
5980fi
5981rm -fr conftest*
5982ac_ext=c
5983# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5984ac_cpp='$CPP $CPPFLAGS'
5985ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5986ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5987cross_compiling=$ac_cv_prog_cc_cross
5988
5989echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
5990if test $ac_cv_prog_cc_works = no; then
5991 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
5992fi
5993echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
7c66a493 5994echo "configure:5995: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
10f2d63a
VZ
5995echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
5996cross_compiling=$ac_cv_prog_cc_cross
5997
5998echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
7c66a493 5999echo "configure:6000: checking whether we are using GNU C" >&5
10f2d63a
VZ
6000if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
6001 echo $ac_n "(cached) $ac_c" 1>&6
6002else
6003 cat > conftest.c <<EOF
6004#ifdef __GNUC__
6005 yes;
6006#endif
6007EOF
7c66a493 6008if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:6009: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
10f2d63a
VZ
6009 ac_cv_prog_gcc=yes
6010else
6011 ac_cv_prog_gcc=no
6012fi
6013fi
6014
6015echo "$ac_t""$ac_cv_prog_gcc" 1>&6
6016
6017if test $ac_cv_prog_gcc = yes; then
6018 GCC=yes
6019else
6020 GCC=
6021fi
6022
6023ac_test_CFLAGS="${CFLAGS+set}"
6024ac_save_CFLAGS="$CFLAGS"
6025CFLAGS=
6026echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
7c66a493 6027echo "configure:6028: checking whether ${CC-cc} accepts -g" >&5
10f2d63a
VZ
6028if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
6029 echo $ac_n "(cached) $ac_c" 1>&6
6030else
6031 echo 'void f(){}' > conftest.c
6032if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
6033 ac_cv_prog_cc_g=yes
6034else
6035 ac_cv_prog_cc_g=no
6036fi
6037rm -f conftest*
6038
6039fi
6040
6041echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
6042if test "$ac_test_CFLAGS" = set; then
6043 CFLAGS="$ac_save_CFLAGS"
6044elif test $ac_cv_prog_cc_g = yes; then
6045 if test "$GCC" = yes; then
6046 CFLAGS="-g -O2"
6047 else
6048 CFLAGS="-g"
6049 fi
6050else
6051 if test "$GCC" = yes; then
6052 CFLAGS="-O2"
6053 else
6054 CFLAGS=
6055 fi
6056fi
6057
6058
6059CFLAGS=`echo "$CFLAGS" | sed 's/-g//g'`
6060
6061echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
7c66a493 6062echo "configure:6063: checking how to run the C preprocessor" >&5
10f2d63a
VZ
6063# On Suns, sometimes $CPP names a directory.
6064if test -n "$CPP" && test -d "$CPP"; then
6065 CPP=
6066fi
6067if test -z "$CPP"; then
6068if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
6069 echo $ac_n "(cached) $ac_c" 1>&6
6070else
6071 # This must be in double quotes, not single quotes, because CPP may get
6072 # substituted into the Makefile and "${CC-cc}" will confuse make.
6073 CPP="${CC-cc} -E"
6074 # On the NeXT, cc -E runs the code through the compiler's parser,
6075 # not just through cpp.
6076 cat > conftest.$ac_ext <<EOF
7c66a493 6077#line 6078 "configure"
10f2d63a
VZ
6078#include "confdefs.h"
6079#include <assert.h>
6080Syntax Error
6081EOF
6082ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7c66a493 6083{ (eval echo configure:6084: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
6084ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6085if test -z "$ac_err"; then
6086 :
6087else
6088 echo "$ac_err" >&5
6089 echo "configure: failed program was:" >&5
6090 cat conftest.$ac_ext >&5
6091 rm -rf conftest*
6092 CPP="${CC-cc} -E -traditional-cpp"
6093 cat > conftest.$ac_ext <<EOF
7c66a493 6094#line 6095 "configure"
10f2d63a
VZ
6095#include "confdefs.h"
6096#include <assert.h>
6097Syntax Error
6098EOF
6099ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7c66a493 6100{ (eval echo configure:6101: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
6101ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6102if test -z "$ac_err"; then
6103 :
6104else
6105 echo "$ac_err" >&5
6106 echo "configure: failed program was:" >&5
6107 cat conftest.$ac_ext >&5
6108 rm -rf conftest*
6109 CPP="${CC-cc} -nologo -E"
6110 cat > conftest.$ac_ext <<EOF
7c66a493 6111#line 6112 "configure"
10f2d63a
VZ
6112#include "confdefs.h"
6113#include <assert.h>
6114Syntax Error
6115EOF
6116ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7c66a493 6117{ (eval echo configure:6118: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
6118ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6119if test -z "$ac_err"; then
6120 :
6121else
6122 echo "$ac_err" >&5
6123 echo "configure: failed program was:" >&5
6124 cat conftest.$ac_ext >&5
6125 rm -rf conftest*
6126 CPP=/lib/cpp
6127fi
6128rm -f conftest*
6129fi
6130rm -f conftest*
6131fi
6132rm -f conftest*
6133 ac_cv_prog_CPP="$CPP"
6134fi
6135 CPP="$ac_cv_prog_CPP"
6136else
6137 ac_cv_prog_CPP="$CPP"
6138fi
6139echo "$ac_t""$CPP" 1>&6
6140
6141
6142if test $ac_cv_prog_gcc = yes; then
6143 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
7c66a493 6144echo "configure:6145: checking whether ${CC-cc} needs -traditional" >&5
10f2d63a
VZ
6145if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
6146 echo $ac_n "(cached) $ac_c" 1>&6
6147else
6148 ac_pattern="Autoconf.*'x'"
6149 cat > conftest.$ac_ext <<EOF
7c66a493 6150#line 6151 "configure"
10f2d63a
VZ
6151#include "confdefs.h"
6152#include <sgtty.h>
6153Autoconf TIOCGETP
6154EOF
6155if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6156 egrep "$ac_pattern" >/dev/null 2>&1; then
6157 rm -rf conftest*
6158 ac_cv_prog_gcc_traditional=yes
6159else
6160 rm -rf conftest*
6161 ac_cv_prog_gcc_traditional=no
6162fi
6163rm -f conftest*
6164
6165
6166 if test $ac_cv_prog_gcc_traditional = no; then
6167 cat > conftest.$ac_ext <<EOF
7c66a493 6168#line 6169 "configure"
10f2d63a
VZ
6169#include "confdefs.h"
6170#include <termio.h>
6171Autoconf TCGETA
6172EOF
6173if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6174 egrep "$ac_pattern" >/dev/null 2>&1; then
6175 rm -rf conftest*
6176 ac_cv_prog_gcc_traditional=yes
6177fi
6178rm -f conftest*
6179
6180 fi
6181fi
6182
6183echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
6184 if test $ac_cv_prog_gcc_traditional = yes; then
6185 CC="$CC -traditional"
6186 fi
6187fi
6188
6189
6190
6191ac_ext=C
6192# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6193ac_cpp='$CXXCPP $CPPFLAGS'
6194ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6195ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6196cross_compiling=$ac_cv_prog_cxx_cross
6197
6198
6199for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
6200do
6201# Extract the first word of "$ac_prog", so it can be a program name with args.
6202set dummy $ac_prog; ac_word=$2
6203echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7c66a493 6204echo "configure:6205: checking for $ac_word" >&5
10f2d63a
VZ
6205if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
6206 echo $ac_n "(cached) $ac_c" 1>&6
6207else
6208 if test -n "$CXX"; then
6209 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6210else
6211 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6212 ac_dummy="$PATH"
6213 for ac_dir in $ac_dummy; do
6214 test -z "$ac_dir" && ac_dir=.
6215 if test -f $ac_dir/$ac_word; then
6216 ac_cv_prog_CXX="$ac_prog"
6217 break
6218 fi
6219 done
6220 IFS="$ac_save_ifs"
6221fi
6222fi
6223CXX="$ac_cv_prog_CXX"
6224if test -n "$CXX"; then
6225 echo "$ac_t""$CXX" 1>&6
6226else
6227 echo "$ac_t""no" 1>&6
6228fi
6229
6230test -n "$CXX" && break
6231done
6232test -n "$CXX" || CXX="gcc"
6233
6234
6235echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
7c66a493 6236echo "configure:6237: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
10f2d63a
VZ
6237
6238ac_ext=C
6239# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6240ac_cpp='$CXXCPP $CPPFLAGS'
6241ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6242ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6243cross_compiling=$ac_cv_prog_cxx_cross
6244
6245cat > conftest.$ac_ext << EOF
6246
7c66a493 6247#line 6248 "configure"
10f2d63a
VZ
6248#include "confdefs.h"
6249
6250int main(){return(0);}
6251EOF
7c66a493 6252if { (eval echo configure:6253: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
6253 ac_cv_prog_cxx_works=yes
6254 # If we can't run a trivial program, we are probably using a cross compiler.
6255 if (./conftest; exit) 2>/dev/null; then
6256 ac_cv_prog_cxx_cross=no
6257 else
6258 ac_cv_prog_cxx_cross=yes
6259 fi
6260else
6261 echo "configure: failed program was:" >&5
6262 cat conftest.$ac_ext >&5
6263 ac_cv_prog_cxx_works=no
6264fi
6265rm -fr conftest*
6266ac_ext=C
6267# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6268ac_cpp='$CXXCPP $CPPFLAGS'
6269ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6270ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6271cross_compiling=$ac_cv_prog_cxx_cross
6272
6273echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
6274if test $ac_cv_prog_cxx_works = no; then
6275 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
6276fi
6277echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
7c66a493 6278echo "configure:6279: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
10f2d63a
VZ
6279echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
6280cross_compiling=$ac_cv_prog_cxx_cross
6281
6282echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
7c66a493 6283echo "configure:6284: checking whether we are using GNU C++" >&5
10f2d63a
VZ
6284if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
6285 echo $ac_n "(cached) $ac_c" 1>&6
6286else
6287 cat > conftest.C <<EOF
6288#ifdef __GNUC__
6289 yes;
6290#endif
6291EOF
7c66a493 6292if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:6293: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
10f2d63a
VZ
6293 ac_cv_prog_gxx=yes
6294else
6295 ac_cv_prog_gxx=no
6296fi
6297fi
6298
6299echo "$ac_t""$ac_cv_prog_gxx" 1>&6
6300
6301if test $ac_cv_prog_gxx = yes; then
6302 GXX=yes
6303else
6304 GXX=
6305fi
6306
6307ac_test_CXXFLAGS="${CXXFLAGS+set}"
6308ac_save_CXXFLAGS="$CXXFLAGS"
6309CXXFLAGS=
6310echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
7c66a493 6311echo "configure:6312: checking whether ${CXX-g++} accepts -g" >&5
10f2d63a
VZ
6312if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
6313 echo $ac_n "(cached) $ac_c" 1>&6
6314else
6315 echo 'void f(){}' > conftest.cc
6316if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
6317 ac_cv_prog_cxx_g=yes
6318else
6319 ac_cv_prog_cxx_g=no
6320fi
6321rm -f conftest*
6322
6323fi
6324
6325echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
6326if test "$ac_test_CXXFLAGS" = set; then
6327 CXXFLAGS="$ac_save_CXXFLAGS"
6328elif test $ac_cv_prog_cxx_g = yes; then
6329 if test "$GXX" = yes; then
6330 CXXFLAGS="-g -O2"
6331 else
6332 CXXFLAGS="-g"
6333 fi
6334else
6335 if test "$GXX" = yes; then
6336 CXXFLAGS="-O2"
6337 else
6338 CXXFLAGS=
6339 fi
6340fi
6341
6342
6343echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
7c66a493 6344echo "configure:6345: checking how to run the C++ preprocessor" >&5
10f2d63a
VZ
6345if test -z "$CXXCPP"; then
6346if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
6347 echo $ac_n "(cached) $ac_c" 1>&6
6348else
6349 ac_ext=C
6350# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6351ac_cpp='$CXXCPP $CPPFLAGS'
6352ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6353ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6354cross_compiling=$ac_cv_prog_cxx_cross
6355 CXXCPP="${CXX-g++} -E"
6356 cat > conftest.$ac_ext <<EOF
7c66a493 6357#line 6358 "configure"
10f2d63a
VZ
6358#include "confdefs.h"
6359#include <stdlib.h>
6360EOF
6361ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7c66a493 6362{ (eval echo configure:6363: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
6363ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6364if test -z "$ac_err"; then
6365 :
6366else
6367 echo "$ac_err" >&5
6368 echo "configure: failed program was:" >&5
6369 cat conftest.$ac_ext >&5
6370 rm -rf conftest*
6371 CXXCPP=/lib/cpp
6372fi
6373rm -f conftest*
6374 ac_cv_prog_CXXCPP="$CXXCPP"
6375ac_ext=C
6376# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6377ac_cpp='$CXXCPP $CPPFLAGS'
6378ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6379ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6380cross_compiling=$ac_cv_prog_cxx_cross
6381fi
6382fi
6383CXXCPP="$ac_cv_prog_CXXCPP"
6384echo "$ac_t""$CXXCPP" 1>&6
6385
6386
6387CXXFLAGS=`echo "$CXXFLAGS" | sed 's/-g//g'`
6388
6389ac_ext=c
6390# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6391ac_cpp='$CPP $CPPFLAGS'
6392ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6393ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6394cross_compiling=$ac_cv_prog_cc_cross
6395
6396
6397# Extract the first word of "ranlib", so it can be a program name with args.
6398set dummy ranlib; ac_word=$2
6399echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7c66a493 6400echo "configure:6401: checking for $ac_word" >&5
10f2d63a
VZ
6401if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
6402 echo $ac_n "(cached) $ac_c" 1>&6
6403else
6404 if test -n "$RANLIB"; then
6405 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6406else
6407 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6408 ac_dummy="$PATH"
6409 for ac_dir in $ac_dummy; do
6410 test -z "$ac_dir" && ac_dir=.
6411 if test -f $ac_dir/$ac_word; then
6412 ac_cv_prog_RANLIB="ranlib"
6413 break
6414 fi
6415 done
6416 IFS="$ac_save_ifs"
6417 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
6418fi
6419fi
6420RANLIB="$ac_cv_prog_RANLIB"
6421if test -n "$RANLIB"; then
6422 echo "$ac_t""$RANLIB" 1>&6
6423else
6424 echo "$ac_t""no" 1>&6
6425fi
6426
6427
6428# Extract the first word of "ar", so it can be a program name with args.
6429set dummy ar; ac_word=$2
6430echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7c66a493 6431echo "configure:6432: checking for $ac_word" >&5
10f2d63a
VZ
6432if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
6433 echo $ac_n "(cached) $ac_c" 1>&6
6434else
6435 if test -n "$AR"; then
6436 ac_cv_prog_AR="$AR" # Let the user override the test.
6437else
6438 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6439 ac_dummy="$PATH"
6440 for ac_dir in $ac_dummy; do
6441 test -z "$ac_dir" && ac_dir=.
6442 if test -f $ac_dir/$ac_word; then
6443 ac_cv_prog_AR="ar"
6444 break
6445 fi
6446 done
6447 IFS="$ac_save_ifs"
6448 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
6449fi
6450fi
6451AR="$ac_cv_prog_AR"
6452if test -n "$AR"; then
6453 echo "$ac_t""$AR" 1>&6
6454else
6455 echo "$ac_t""no" 1>&6
6456fi
6457
6458
6459# Find a good install program. We prefer a C program (faster),
6460# so one script is as good as another. But avoid the broken or
6461# incompatible versions:
6462# SysV /etc/install, /usr/sbin/install
6463# SunOS /usr/etc/install
6464# IRIX /sbin/install
6465# AIX /bin/install
6466# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6467# AFS /usr/afsws/bin/install, which mishandles nonexistent args
6468# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6469# ./install, which can be erroneously created by make from ./install.sh.
6470echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
7c66a493 6471echo "configure:6472: checking for a BSD compatible install" >&5
10f2d63a
VZ
6472if test -z "$INSTALL"; then
6473if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
6474 echo $ac_n "(cached) $ac_c" 1>&6
6475else
6476 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
6477 for ac_dir in $PATH; do
6478 # Account for people who put trailing slashes in PATH elements.
6479 case "$ac_dir/" in
6480 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
6481 *)
6482 # OSF1 and SCO ODT 3.0 have their own names for install.
6483 # Don't use installbsd from OSF since it installs stuff as root
6484 # by default.
6485 for ac_prog in ginstall scoinst install; do
6486 if test -f $ac_dir/$ac_prog; then
6487 if test $ac_prog = install &&
6488 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
6489 # AIX install. It has an incompatible calling convention.
6490 :
6491 else
6492 ac_cv_path_install="$ac_dir/$ac_prog -c"
6493 break 2
6494 fi
6495 fi
6496 done
6497 ;;
6498 esac
6499 done
6500 IFS="$ac_save_IFS"
6501
6502fi
6503 if test "${ac_cv_path_install+set}" = set; then
6504 INSTALL="$ac_cv_path_install"
6505 else
6506 # As a last resort, use the slow shell script. We don't cache a
6507 # path for INSTALL within a source directory, because that will
6508 # break other packages using the cache if that directory is
6509 # removed, or if the path is relative.
6510 INSTALL="$ac_install_sh"
6511 fi
6512fi
6513echo "$ac_t""$INSTALL" 1>&6
6514
6515# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6516# It thinks the first close brace ends the variable substitution.
6517test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6518
6519test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
6520
6521test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6522
6523
6524# Extract the first word of "strip", so it can be a program name with args.
6525set dummy strip; ac_word=$2
6526echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7c66a493 6527echo "configure:6528: checking for $ac_word" >&5
10f2d63a
VZ
6528if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
6529 echo $ac_n "(cached) $ac_c" 1>&6
6530else
6531 if test -n "$STRIP"; then
6532 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6533else
6534 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6535 ac_dummy="$PATH"
6536 for ac_dir in $ac_dummy; do
6537 test -z "$ac_dir" && ac_dir=.
6538 if test -f $ac_dir/$ac_word; then
6539 ac_cv_prog_STRIP="strip"
6540 break
6541 fi
6542 done
6543 IFS="$ac_save_ifs"
6544 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true"
6545fi
6546fi
6547STRIP="$ac_cv_prog_STRIP"
6548if test -n "$STRIP"; then
6549 echo "$ac_t""$STRIP" 1>&6
6550else
6551 echo "$ac_t""no" 1>&6
6552fi
6553
6554
6555echo $ac_n "checking "make for VPATH support"""... $ac_c" 1>&6
7c66a493 6556echo "configure:6557: checking "make for VPATH support"" >&5
10f2d63a
VZ
6557cat - << EOF > confMake
6558check : file
6559 cp \$? \$@
6560 cp \$? final_file
6561EOF
6562
6563if test ! -d sub ; then
6564 mkdir sub
6565fi
6566echo dummy > sub/file
6567${MAKE-make} -f confMake VPATH=sub 2> config.log > /dev/null
6568RESULT=$?
6569rm -f sub/file check final_file confMake
6570rmdir sub
6571if test "$RESULT" = 0; then
6572 echo "$ac_t""yes" 1>&6
6573else
6574 echo "$ac_t""no" 1>&6
6575 { echo "configure: error: You need a make-utility that is able to use the variable
6576VPATH correctly.
6577If your version of make does not support VPATH correctly" 1>&2; exit 1; }
6578fi
6579
6580for ac_prog in 'bison -y' byacc
6581do
6582# Extract the first word of "$ac_prog", so it can be a program name with args.
6583set dummy $ac_prog; ac_word=$2
6584echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7c66a493 6585echo "configure:6586: checking for $ac_word" >&5
10f2d63a
VZ
6586if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
6587 echo $ac_n "(cached) $ac_c" 1>&6
6588else
6589 if test -n "$YACC"; then
6590 ac_cv_prog_YACC="$YACC" # Let the user override the test.
6591else
6592 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6593 ac_dummy="$PATH"
6594 for ac_dir in $ac_dummy; do
6595 test -z "$ac_dir" && ac_dir=.
6596 if test -f $ac_dir/$ac_word; then
6597 ac_cv_prog_YACC="$ac_prog"
6598 break
6599 fi
6600 done
6601 IFS="$ac_save_ifs"
6602fi
6603fi
6604YACC="$ac_cv_prog_YACC"
6605if test -n "$YACC"; then
6606 echo "$ac_t""$YACC" 1>&6
6607else
6608 echo "$ac_t""no" 1>&6
6609fi
6610
6611test -n "$YACC" && break
6612done
6613test -n "$YACC" || YACC="yacc"
6614
6615
6616# Extract the first word of "flex", so it can be a program name with args.
6617set dummy flex; ac_word=$2
6618echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7c66a493 6619echo "configure:6620: checking for $ac_word" >&5
10f2d63a
VZ
6620if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
6621 echo $ac_n "(cached) $ac_c" 1>&6
6622else
6623 if test -n "$LEX"; then
6624 ac_cv_prog_LEX="$LEX" # Let the user override the test.
6625else
6626 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6627 ac_dummy="$PATH"
6628 for ac_dir in $ac_dummy; do
6629 test -z "$ac_dir" && ac_dir=.
6630 if test -f $ac_dir/$ac_word; then
6631 ac_cv_prog_LEX="flex"
6632 break
6633 fi
6634 done
6635 IFS="$ac_save_ifs"
6636 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
6637fi
6638fi
6639LEX="$ac_cv_prog_LEX"
6640if test -n "$LEX"; then
6641 echo "$ac_t""$LEX" 1>&6
6642else
6643 echo "$ac_t""no" 1>&6
6644fi
6645
6646if test -z "$LEXLIB"
6647then
6648 case "$LEX" in
6649 flex*) ac_lib=fl ;;
6650 *) ac_lib=l ;;
6651 esac
6652 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
7c66a493 6653echo "configure:6654: checking for yywrap in -l$ac_lib" >&5
10f2d63a
VZ
6654ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
6655if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6656 echo $ac_n "(cached) $ac_c" 1>&6
6657else
6658 ac_save_LIBS="$LIBS"
6659LIBS="-l$ac_lib $LIBS"
6660cat > conftest.$ac_ext <<EOF
7c66a493 6661#line 6662 "configure"
10f2d63a
VZ
6662#include "confdefs.h"
6663/* Override any gcc2 internal prototype to avoid an error. */
6664/* We use char because int might match the return type of a gcc2
6665 builtin and then its argument prototype would still apply. */
6666char yywrap();
6667
6668int main() {
6669yywrap()
6670; return 0; }
6671EOF
7c66a493 6672if { (eval echo configure:6673: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
6673 rm -rf conftest*
6674 eval "ac_cv_lib_$ac_lib_var=yes"
6675else
6676 echo "configure: failed program was:" >&5
6677 cat conftest.$ac_ext >&5
6678 rm -rf conftest*
6679 eval "ac_cv_lib_$ac_lib_var=no"
6680fi
6681rm -f conftest*
6682LIBS="$ac_save_LIBS"
6683
6684fi
6685if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6686 echo "$ac_t""yes" 1>&6
6687 LEXLIB="-l$ac_lib"
6688else
6689 echo "$ac_t""no" 1>&6
6690fi
6691
6692fi
6693
6694
6695echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
7c66a493 6696echo "configure:6697: checking whether ln -s works" >&5
10f2d63a
VZ
6697if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
6698 echo $ac_n "(cached) $ac_c" 1>&6
6699else
6700 rm -f conftestdata
6701if ln -s X conftestdata 2>/dev/null
6702then
6703 rm -f conftestdata
6704 ac_cv_prog_LN_S="ln -s"
6705else
6706 ac_cv_prog_LN_S=ln
6707fi
6708fi
6709LN_S="$ac_cv_prog_LN_S"
6710if test "$ac_cv_prog_LN_S" = "ln -s"; then
6711 echo "$ac_t""yes" 1>&6
6712else
6713 echo "$ac_t""no" 1>&6
6714fi
6715
6716
6717
6718SEARCH_INCLUDE="\
6719 /usr/local/include \
6720 \
6721 /usr/Motif-1.2/include \
6722 /usr/Motif-2.1/include \
6723 \
6724 /usr/include/Motif1.2 \
6725 /opt/xpm/include/X11 \
6726 /opt/GBxpm/include/ \
6727 /opt/GBxpm/X11/include/ \
6728 \
6729 /usr/Motif1.2/include \
6730 /usr/dt/include \
afc31813
VZ
6731 /usr/openwin/include \
6732 \
10f2d63a
VZ
6733 /usr/include/Xm \
6734 \
6735 /usr/X11R6/include \
afc31813 6736 /usr/X11R6.4/include \
10f2d63a
VZ
6737 /usr/X11R5/include \
6738 /usr/X11R4/include \
6739 \
10f2d63a
VZ
6740 /usr/include/X11R6 \
6741 /usr/include/X11R5 \
6742 /usr/include/X11R4 \
6743 \
6744 /usr/local/X11R6/include \
6745 /usr/local/X11R5/include \
6746 /usr/local/X11R4/include \
6747 \
6748 /usr/local/include/X11R6 \
6749 /usr/local/include/X11R5 \
6750 /usr/local/include/X11R4 \
6751 \
6752 /usr/X11/include \
6753 /usr/include/X11 \
6754 /usr/local/X11/include \
6755 /usr/local/include/X11 \
6756 \
6757 /usr/X386/include \
6758 /usr/x386/include \
6759 /usr/XFree86/include/X11 \
6760 \
cf27ef00 6761 X:/XFree86/include \
ec14dd32
VZ
6762 X:/XFree86/include/X11 \
6763 \
10f2d63a
VZ
6764 /usr/include/gtk \
6765 /usr/local/include/gtk \
6766 /usr/include/glib \
6767 /usr/local/include/glib \
6768 \
6769 /usr/include/qt \
6770 /usr/local/include/qt \
6771 \
6772 /usr/include/windows \
6773 /usr/include/wine \
6774 /usr/local/include/wine \
6775 \
6776 /usr/unsupported/include \
6777 /usr/athena/include \
6778 /usr/local/x11r5/include \
6779 /usr/lpp/Xamples/include \
6780 \
10f2d63a 6781 /usr/openwin/share/include \
928b5c08
VZ
6782 \
6783 /usr/include"
10f2d63a
VZ
6784
6785SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s/include/lib/g` "
6786
6787
6788cat > confcache <<\EOF
6789# This file is a shell script that caches the results of configure
6790# tests run on this system so they can be shared between configure
6791# scripts and configure runs. It is not useful on other systems.
6792# If it contains results you don't want to keep, you may remove or edit it.
6793#
6794# By default, configure uses ./config.cache as the cache file,
6795# creating it if it does not exist already. You can give configure
6796# the --cache-file=FILE option to use a different cache file; that is
6797# what configure does when it calls configure scripts in
6798# subdirectories, so they share the cache.
6799# Giving --cache-file=/dev/null disables caching, for debugging configure.
6800# config.status only pays attention to the cache file if you give it the
6801# --recheck option to rerun configure.
6802#
6803EOF
6804# The following way of writing the cache mishandles newlines in values,
6805# but we know of no workaround that is simple, portable, and efficient.
6806# So, don't put newlines in cache variables' values.
6807# Ultrix sh set writes to stderr and can't be redirected directly,
6808# and sets the high bit in the cache file unless we assign to the vars.
6809(set) 2>&1 |
6810 case `(ac_space=' '; set | grep ac_space) 2>&1` in
6811 *ac_space=\ *)
6812 # `set' does not quote correctly, so add quotes (double-quote substitution
6813 # turns \\\\ into \\, and sed turns \\ into \).
6814 sed -n \
6815 -e "s/'/'\\\\''/g" \
6816 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
6817 ;;
6818 *)
6819 # `set' quotes correctly as required by POSIX, so do not add quotes.
6820 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
6821 ;;
6822 esac >> confcache
6823if cmp -s $cache_file confcache; then
6824 :
6825else
6826 if test -w $cache_file; then
6827 echo "updating cache $cache_file"
6828 cat confcache > $cache_file
6829 else
6830 echo "not updating unwritable cache $cache_file"
6831 fi
6832fi
6833rm -f confcache
6834
6835
6836
dad6c0ea
VZ
6837AFMINSTALL=
6838
10f2d63a
VZ
6839if test "$wxUSE_GUI" = "yes"; then
6840
dad6c0ea
VZ
6841USE_GUI=1
6842
10f2d63a
VZ
6843TOOLKIT=
6844TOOLKIT_INCLUDE=
6845
6846GUIOBJS=
6847COMMONOBJS=
6848GENERICOBJS=
6849
6850GUI_TK_LIBRARY=
6851GUI_TK_LINK=
6852
6853WXGTK12=
13111b2a 6854WXGTK13=
10f2d63a
VZ
6855
6856WXWINE=
6857
10f2d63a
VZ
6858if test "$wxUSE_CYGWIN" = 1 || test "$wxUSE_MINGW" = 1 ; then
6859 if test "$cross_compiling" = "yes" ; then
6860 echo "configure: warning: Cross compiling --- skipping windows.h check" 1>&2
6861 else
6862 echo $ac_n "checking for Windows headers""... $ac_c" 1>&6
7c66a493 6863echo "configure:6864: checking for Windows headers" >&5
10f2d63a
VZ
6864
6865ac_find_includes=
6866for ac_dir in $SEARCH_INCLUDE;
6867 do
6868 if test -f "$ac_dir/windows.h"; then
6869 ac_find_includes=$ac_dir
6870 break
6871 fi
6872 done
6873
6874 if test "$ac_find_includes" != "" ; then
6875 echo "$ac_t""found $ac_find_includes" 1>&6
6876 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE -I$ac_find_includes"
6877 else
6878 echo "$ac_t""no" 1>&6
6879 { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; }
6880 fi
6881 fi
6882
6883 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS msw"
6884 LIBS="$LIBS -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lctl3d32 -lcrtdll -ladvapi32 -lwsock32"
6885
6886 if test "$wxUSE_MINGW" = 1; then
6887 LDFLAGS="$LDFLAGS -mwindows"
6888 fi
6889
6890 TOOLKIT=MSW
6891
6892 GUIOBJS="\$(MSW_GUIOBJS)"
6893 GUIHEADERS="\$(MSW_HEADERS)"
6894 COMMONOBJS="\$(MSW_COMMONOBJS)"
6895 GENERICOBJS="\$(MSW_GENERICOBJS)"
6896 UNIXOBJS=
6897 GUIDIST=MSW_DIST
10f2d63a
VZ
6898fi
6899
6900if test "$wxUSE_GTK" = 1; then
6901
6902 if test x$gtk_config_exec_prefix != x ; then
6903 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
6904 if test x${GTK_CONFIG+set} != xset ; then
6905 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
6906 fi
6907 fi
6908 if test x$gtk_config_prefix != x ; then
6909 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
6910 if test x${GTK_CONFIG+set} != xset ; then
6911 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
6912 fi
6913 fi
6914
6915 # Extract the first word of "gtk-config", so it can be a program name with args.
6916set dummy gtk-config; ac_word=$2
6917echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7c66a493 6918echo "configure:6919: checking for $ac_word" >&5
10f2d63a
VZ
6919if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
6920 echo $ac_n "(cached) $ac_c" 1>&6
6921else
6922 case "$GTK_CONFIG" in
6923 /*)
6924 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
6925 ;;
6926 ?:/*)
6927 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
6928 ;;
6929 *)
6930 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6931 ac_dummy="$PATH"
6932 for ac_dir in $ac_dummy; do
6933 test -z "$ac_dir" && ac_dir=.
6934 if test -f $ac_dir/$ac_word; then
6935 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
6936 break
6937 fi
6938 done
6939 IFS="$ac_save_ifs"
6940 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
6941 ;;
6942esac
6943fi
6944GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
6945if test -n "$GTK_CONFIG"; then
6946 echo "$ac_t""$GTK_CONFIG" 1>&6
6947else
6948 echo "$ac_t""no" 1>&6
6949fi
6950
04165bec 6951 min_gtk_version=1.2.3
10f2d63a 6952 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
7c66a493 6953echo "configure:6954: checking for GTK - version >= $min_gtk_version" >&5
10f2d63a
VZ
6954 no_gtk=""
6955 if test "$GTK_CONFIG" != "no" ; then
6956 GTK_CFLAGS=`$GTK_CONFIG --cflags`
2224580a 6957 GTK_LIBS=`$GTK_CONFIG --libs gthread`
10f2d63a
VZ
6958 ac_save_CFLAGS="$CFLAGS"
6959 ac_save_LIBS="$LIBS"
6960 CFLAGS="$CFLAGS $GTK_CFLAGS"
6961 LIBS="$LIBS $GTK_LIBS"
6962 if test "$cross_compiling" = yes; then
6963 echo $ac_n "cross compiling; assumed OK... $ac_c"
6964else
6965 cat > conftest.$ac_ext <<EOF
7c66a493 6966#line 6967 "configure"
10f2d63a
VZ
6967#include "confdefs.h"
6968
6969#include <gtk/gtk.h>
f49f2b0c 6970#include <gtk/gtkfeatures.h>
10f2d63a
VZ
6971#include <stdio.h>
6972
6973int
6974main ()
6975{
6976 int major, minor, micro;
6977
6978 if (sscanf("$min_gtk_version", "%d.%d.%d", &major, &minor, &micro) != 3) {
6979 printf("%s, bad version string\n", "$min_gtk_version");
6980 exit(1);
6981 }
6982
f49f2b0c
RR
6983 if ((GTK_MAJOR_VERSION != gtk_major_version) ||
6984 (GTK_MINOR_VERSION != gtk_minor_version) ||
6985 (GTK_MICRO_VERSION != gtk_micro_version)) {
6986 printf("Headers vs. library version mismatch!\n");
6987 exit(1);
6988 }
6989
10f2d63a
VZ
6990 if (gtk_minor_version == 1) return FALSE;
6991
6992 return !((gtk_major_version > major) ||
6993 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
6994 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)));
6995}
6996
6997EOF
7c66a493 6998if { (eval echo configure:6999: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10f2d63a
VZ
6999then
7000 :
7001else
7002 echo "configure: failed program was:" >&5
7003 cat conftest.$ac_ext >&5
7004 rm -fr conftest*
7005 no_gtk=yes
7006fi
7007rm -fr conftest*
7008fi
7009
7010 CFLAGS="$ac_save_CFLAGS"
7011 LIBS="$ac_save_LIBS"
7012 else
7013 no_gtk=yes
7014 fi
7015 if test "x$no_gtk" = x ; then
7016 echo "$ac_t""yes" 1>&6
7017 WXGTK12=1
7018 else
7019 echo "$ac_t""no" 1>&6
7020 GTK_CFLAGS=""
7021 GTK_LIBS=""
7e99ad86 7022 :
10f2d63a
VZ
7023 fi
7024
7025
7026
7027
7e99ad86
VZ
7028 if test "$WXGTK12" != 1; then
7029 { echo "configure: error:
7030 Please check that gtk-config is in path, the directory
7031 where GTK+ libraries are installed (returned by
7032 'gtk-config --libs' command) is in LD_LIBRARY_PATH or
7033 equivalent variable and GTK+ is version 1.2.3 or above.
7034 " 1>&2; exit 1; }
7035 fi
7036
7037
10f2d63a 7038 TOOLKIT_INCLUDE="$GTK_CFLAGS"
2224580a
VZ
7039
7040
7041 GUI_TK_LIBRARY="$GTK_LIBS"
7042
10f2d63a
VZ
7043 TOOLKIT=GTK
7044
dad6c0ea
VZ
7045 AFMINSTALL=afminstall
7046
10f2d63a
VZ
7047 GUIOBJS="\$(GTK_GUIOBJS)"
7048 GUIHEADERS="\$(GTK_HEADERS)"
7049 COMMONOBJS="\$(GTK_COMMONOBJS)"
7050 GENERICOBJS="\$(GTK_GENERICOBJS)"
7051 GUIDEPS="\$(GTK_GUIDEPS)"
7052 COMMONDEPS="\$(GTK_COMMONDEPS)"
7053 GENERICDEPS="\$(GTK_GENERICDEPS)"
7054 UNIXOBJS="\$(UNIX_OBJS)"
d9d8273d 7055 UNIXDEPS="\$(UNIX_DEPS)"
10f2d63a 7056 GUIDIST=GTK_DIST
7ec2881a 7057
2224580a 7058 echo $ac_n "checking for gdk_im_open in -lgdk""... $ac_c" 1>&6
7c66a493 7059echo "configure:7060: checking for gdk_im_open in -lgdk" >&5
7ec2881a
RR
7060ac_lib_var=`echo gdk'_'gdk_im_open | sed 'y%./+-%__p_%'`
7061if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7062 echo $ac_n "(cached) $ac_c" 1>&6
7063else
7064 ac_save_LIBS="$LIBS"
7065LIBS="-lgdk $LIBS"
7066cat > conftest.$ac_ext <<EOF
7c66a493 7067#line 7068 "configure"
7ec2881a
RR
7068#include "confdefs.h"
7069/* Override any gcc2 internal prototype to avoid an error. */
7070/* We use char because int might match the return type of a gcc2
7071 builtin and then its argument prototype would still apply. */
7072char gdk_im_open();
7073
7074int main() {
7075gdk_im_open()
7076; return 0; }
7077EOF
7c66a493 7078if { (eval echo configure:7079: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7ec2881a
RR
7079 rm -rf conftest*
7080 eval "ac_cv_lib_$ac_lib_var=yes"
7081else
7082 echo "configure: failed program was:" >&5
7083 cat conftest.$ac_ext >&5
7084 rm -rf conftest*
7085 eval "ac_cv_lib_$ac_lib_var=no"
7086fi
7087rm -f conftest*
7088LIBS="$ac_save_LIBS"
7089
7090fi
7091if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7092 echo "$ac_t""yes" 1>&6
7093 cat >> confdefs.h <<\EOF
7094#define HAVE_XIM 1
7095EOF
7096
7097else
7098 echo "$ac_t""no" 1>&6
7099fi
7100
10f2d63a
VZ
7101fi
7102
7103if test "$wxUSE_WINE" = 1; then
7104 echo $ac_n "checking for WINE includes""... $ac_c" 1>&6
7c66a493 7105echo "configure:7106: checking for WINE includes" >&5
10f2d63a
VZ
7106
7107ac_find_includes=
7108for ac_dir in $SEARCH_INCLUDE;
7109 do
7110 if test -f "$ac_dir/windows.h"; then
7111 ac_find_includes=$ac_dir
7112 break
7113 fi
7114 done
7115
7116 if test "$ac_find_includes" != "" ; then
7117 echo "$ac_t""found $ac_find_includes" 1>&6
7118 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE -I$ac_find_includes"
7119 else
7120 echo "$ac_t""no" 1>&6
7121 { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; }
7122 fi
7123
7124 XPM_LINK=""
7125 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
7c66a493 7126echo "configure:7127: checking for Xpm library" >&5
10f2d63a
VZ
7127
7128ac_find_libraries=
7129for ac_dir in $SEARCH_LIB;
7130 do
7131 for ac_extension in a so sl; do
7132 if test -f "$ac_dir/libXpm.$ac_extension"; then
7133 ac_find_libraries=$ac_dir
7134 break 2
7135 fi
7136 done
7137 done
7138
7139 if test "$ac_find_libraries" != "" ; then
7140 GUI_TK_LIBRARY="-L$ac_find_libraries"
7141 XPM_LINK="-lXpm"
7142 cat >> confdefs.h <<\EOF
7143#define wxHAVE_LIB_XPM 1
7144EOF
7145
7146 echo "$ac_t""found at $ac_find_libraries" 1>&6
7147 else
7148 echo "$ac_t""no" 1>&6
7149 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
7150 fi
7151
7152 MESA_LINK=""
7153 echo $ac_n "checking for Mesa library""... $ac_c" 1>&6
7c66a493 7154echo "configure:7155: checking for Mesa library" >&5
10f2d63a
VZ
7155
7156ac_find_libraries=
7157for ac_dir in $SEARCH_LIB;
7158 do
7159 for ac_extension in a so sl; do
7160 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
7161 ac_find_libraries=$ac_dir
7162 break 2
7163 fi
7164 done
7165 done
7166
7167 if test "$ac_find_libraries" != "" ; then
7168 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -L$ac_find_libraries"
7169 MESA_LINK="-lMesaGL"
7170 echo "$ac_t""found at $ac_find_libraries" 1>&6
7171 else
7172 { echo "configure: error: no" 1>&2; exit 1; }
7173 fi
7174
7175 GUI_TK_LINK="-lwine $MESA_LINK $XPM_LINK -lXxf86dga -lXxf86vm -lSM -lICE -lXext -lXmu -lX11 -lncurses -lm"
7176 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $GUI_TK_LINK"
7177 WXWINE=1
7178 TOOLKIT=MSW
7179
7180 GUIHEADERS="\$(MSW_HEADERS)"
7181 GUIOBJS="\$(MSW_GUIOBJS)"
7182 COMMONOBJS="\$(MSW_COMMONOBJS)"
7183 GENERICOBJS="\$(MSW_GENERICOBJS)"
7184 GUIDEPS="\$(MSW_GUIDEPS)"
7185 COMMONDEPS="\$(MSW_COMMONDEPS)"
7186 GENERICDEPS="\$(MSW_GENERICDEPS)"
7187 UNIXOBJS="\$(UNIX_OBJS)"
d9d8273d 7188 UNIXDEPS="\$(UNIX_DEPS)"
10f2d63a
VZ
7189 GUIDIST=MSW_DIST
7190fi
7191
7192if test "$wxUSE_MOTIF" = 1; then
ab9b9eab
VZ
7193 # If we find X, set shell vars x_includes and x_libraries to the
7194# paths, otherwise set no_x=yes.
7195# Uses ac_ vars as temps to allow command line to override cache and checks.
7196# --without-x overrides everything else, but does not touch the cache.
7197echo $ac_n "checking for X""... $ac_c" 1>&6
7c66a493 7198echo "configure:7199: checking for X" >&5
ab9b9eab
VZ
7199
7200# Check whether --with-x or --without-x was given.
7201if test "${with_x+set}" = set; then
7202 withval="$with_x"
7203 :
7204fi
ba337fe7 7205
ab9b9eab
VZ
7206# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7207if test "x$with_x" = xno; then
7208 # The user explicitly disabled X.
7209 have_x=disabled
7210else
7211 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
7212 # Both variables are already set.
7213 have_x=yes
7214 else
7215if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
7216 echo $ac_n "(cached) $ac_c" 1>&6
7217else
7218 # One or both of the vars are not set, and there is no cached value.
7219ac_x_includes=NO ac_x_libraries=NO
7220rm -fr conftestdir
7221if mkdir conftestdir; then
7222 cd conftestdir
7223 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
7224 cat > Imakefile <<'EOF'
7225acfindx:
7226 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
7227EOF
7228 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
7229 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7230 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
7231 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
10f2d63a 7232 for ac_extension in a so sl; do
ab9b9eab
VZ
7233 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
7234 test -f $ac_im_libdir/libX11.$ac_extension; then
7235 ac_im_usrlibdir=$ac_im_libdir; break
10f2d63a
VZ
7236 fi
7237 done
ab9b9eab
VZ
7238 # Screen out bogus values from the imake configuration. They are
7239 # bogus both because they are the default anyway, and because
7240 # using them would break gcc on systems where it needs fixed includes.
7241 case "$ac_im_incroot" in
7242 /usr/include) ;;
7243 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
7244 esac
7245 case "$ac_im_usrlibdir" in
7246 /usr/lib | /lib) ;;
7247 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
7248 esac
ba337fe7 7249 fi
ab9b9eab
VZ
7250 cd ..
7251 rm -fr conftestdir
7252fi
10f2d63a 7253
ab9b9eab
VZ
7254if test "$ac_x_includes" = NO; then
7255 # Guess where to find include files, by looking for this one X11 .h file.
7256 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
ba337fe7 7257
ab9b9eab
VZ
7258 # First, try using that file with no special directory specified.
7259cat > conftest.$ac_ext <<EOF
7c66a493 7260#line 7261 "configure"
ab9b9eab
VZ
7261#include "confdefs.h"
7262#include <$x_direct_test_include>
7263EOF
7264ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7c66a493 7265{ (eval echo configure:7266: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ab9b9eab
VZ
7266ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7267if test -z "$ac_err"; then
7268 rm -rf conftest*
7269 # We can compile using X headers with no special include directory.
7270ac_x_includes=
7271else
7272 echo "$ac_err" >&5
7273 echo "configure: failed program was:" >&5
7274 cat conftest.$ac_ext >&5
7275 rm -rf conftest*
7276 # Look for the header file in a standard set of common directories.
7277# Check X11 before X11Rn because it is often a symlink to the current release.
7278 for ac_dir in \
7279 /usr/X11/include \
7280 /usr/X11R6/include \
7281 /usr/X11R5/include \
7282 /usr/X11R4/include \
7283 \
7284 /usr/include/X11 \
7285 /usr/include/X11R6 \
7286 /usr/include/X11R5 \
7287 /usr/include/X11R4 \
7288 \
7289 /usr/local/X11/include \
7290 /usr/local/X11R6/include \
7291 /usr/local/X11R5/include \
7292 /usr/local/X11R4/include \
7293 \
7294 /usr/local/include/X11 \
7295 /usr/local/include/X11R6 \
7296 /usr/local/include/X11R5 \
7297 /usr/local/include/X11R4 \
7298 \
7299 /usr/X386/include \
7300 /usr/x386/include \
7301 /usr/XFree86/include/X11 \
7302 \
7303 /usr/include \
7304 /usr/local/include \
7305 /usr/unsupported/include \
7306 /usr/athena/include \
7307 /usr/local/x11r5/include \
7308 /usr/lpp/Xamples/include \
7309 \
7310 /usr/openwin/include \
7311 /usr/openwin/share/include \
7312 ; \
10f2d63a 7313 do
ab9b9eab
VZ
7314 if test -r "$ac_dir/$x_direct_test_include"; then
7315 ac_x_includes=$ac_dir
10f2d63a
VZ
7316 break
7317 fi
7318 done
ab9b9eab
VZ
7319fi
7320rm -f conftest*
7321fi # $ac_x_includes = NO
10f2d63a 7322
ab9b9eab
VZ
7323if test "$ac_x_libraries" = NO; then
7324 # Check for the libraries.
10f2d63a 7325
ab9b9eab
VZ
7326 test -z "$x_direct_test_library" && x_direct_test_library=Xt
7327 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
10f2d63a 7328
ab9b9eab
VZ
7329 # See if we find them without any special options.
7330 # Don't add to $LIBS permanently.
7331 ac_save_LIBS="$LIBS"
7332 LIBS="-l$x_direct_test_library $LIBS"
7333cat > conftest.$ac_ext <<EOF
7c66a493 7334#line 7335 "configure"
ab9b9eab 7335#include "confdefs.h"
10f2d63a 7336
ab9b9eab
VZ
7337int main() {
7338${x_direct_test_function}()
7339; return 0; }
7340EOF
7c66a493 7341if { (eval echo configure:7342: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
7342 rm -rf conftest*
7343 LIBS="$ac_save_LIBS"
7344# We can link X programs with no special library path.
7345ac_x_libraries=
7346else
7347 echo "configure: failed program was:" >&5
7348 cat conftest.$ac_ext >&5
7349 rm -rf conftest*
7350 LIBS="$ac_save_LIBS"
7351# First see if replacing the include by lib works.
7352# Check X11 before X11Rn because it is often a symlink to the current release.
7353for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
7354 /usr/X11/lib \
7355 /usr/X11R6/lib \
7356 /usr/X11R5/lib \
7357 /usr/X11R4/lib \
7358 \
7359 /usr/lib/X11 \
7360 /usr/lib/X11R6 \
7361 /usr/lib/X11R5 \
7362 /usr/lib/X11R4 \
7363 \
7364 /usr/local/X11/lib \
7365 /usr/local/X11R6/lib \
7366 /usr/local/X11R5/lib \
7367 /usr/local/X11R4/lib \
7368 \
7369 /usr/local/lib/X11 \
7370 /usr/local/lib/X11R6 \
7371 /usr/local/lib/X11R5 \
7372 /usr/local/lib/X11R4 \
7373 \
7374 /usr/X386/lib \
7375 /usr/x386/lib \
7376 /usr/XFree86/lib/X11 \
7377 \
7378 /usr/lib \
7379 /usr/local/lib \
7380 /usr/unsupported/lib \
7381 /usr/athena/lib \
7382 /usr/local/x11r5/lib \
7383 /usr/lpp/Xamples/lib \
7384 /lib/usr/lib/X11 \
7385 \
7386 /usr/openwin/lib \
7387 /usr/openwin/share/lib \
7388 ; \
7389do
7390 for ac_extension in a so sl; do
7391 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
7392 ac_x_libraries=$ac_dir
7393 break 2
10f2d63a 7394 fi
10f2d63a 7395 done
ab9b9eab
VZ
7396done
7397fi
7398rm -f conftest*
7399fi # $ac_x_libraries = NO
10f2d63a 7400
ab9b9eab
VZ
7401if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
7402 # Didn't find X anywhere. Cache the known absence of X.
7403 ac_cv_have_x="have_x=no"
7404else
7405 # Record where we found X for the cache.
7406 ac_cv_have_x="have_x=yes \
7407 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
7408fi
7409fi
10f2d63a 7410 fi
ab9b9eab
VZ
7411 eval "$ac_cv_have_x"
7412fi # $with_x != no
10f2d63a 7413
ab9b9eab
VZ
7414if test "$have_x" != yes; then
7415 echo "$ac_t""$have_x" 1>&6
7416 no_x=yes
7417else
7418 # If each of the values was on the command line, it overrides each guess.
7419 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
7420 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
7421 # Update the cache value to reflect the command line values.
7422 ac_cv_have_x="have_x=yes \
7423 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
7424 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
7425fi
10f2d63a 7426
ab9b9eab
VZ
7427if test "$no_x" = yes; then
7428 # Not all programs may use this symbol, but it does not hurt to define it.
7429 cat >> confdefs.h <<\EOF
7430#define X_DISPLAY_MISSING 1
7431EOF
10f2d63a 7432
ab9b9eab
VZ
7433 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
7434else
7435 if test -n "$x_includes"; then
7436 X_CFLAGS="$X_CFLAGS -I$x_includes"
10f2d63a
VZ
7437 fi
7438
ab9b9eab
VZ
7439 # It would also be nice to do this for all -L options, not just this one.
7440 if test -n "$x_libraries"; then
7441 X_LIBS="$X_LIBS -L$x_libraries"
7442 # For Solaris; some versions of Sun CC require a space after -R and
7443 # others require no space. Words are not sufficient . . . .
7444 case "`(uname -sr) 2>/dev/null`" in
7445 "SunOS 5"*)
7446 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
7c66a493 7447echo "configure:7448: checking whether -R must be followed by a space" >&5
ab9b9eab
VZ
7448 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
7449 cat > conftest.$ac_ext <<EOF
7c66a493 7450#line 7451 "configure"
ab9b9eab 7451#include "confdefs.h"
10f2d63a 7452
ab9b9eab 7453int main() {
788deba1 7454
ab9b9eab
VZ
7455; return 0; }
7456EOF
7c66a493 7457if { (eval echo configure:7458: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
7458 rm -rf conftest*
7459 ac_R_nospace=yes
7460else
7461 echo "configure: failed program was:" >&5
7462 cat conftest.$ac_ext >&5
7463 rm -rf conftest*
7464 ac_R_nospace=no
7465fi
7466rm -f conftest*
7467 if test $ac_R_nospace = yes; then
7468 echo "$ac_t""no" 1>&6
7469 X_LIBS="$X_LIBS -R$x_libraries"
7470 else
7471 LIBS="$ac_xsave_LIBS -R $x_libraries"
7472 cat > conftest.$ac_ext <<EOF
7c66a493 7473#line 7474 "configure"
ab9b9eab 7474#include "confdefs.h"
788deba1 7475
ab9b9eab
VZ
7476int main() {
7477
7478; return 0; }
7479EOF
7c66a493 7480if { (eval echo configure:7481: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
7481 rm -rf conftest*
7482 ac_R_space=yes
7483else
7484 echo "configure: failed program was:" >&5
7485 cat conftest.$ac_ext >&5
7486 rm -rf conftest*
7487 ac_R_space=no
7488fi
7489rm -f conftest*
7490 if test $ac_R_space = yes; then
7491 echo "$ac_t""yes" 1>&6
7492 X_LIBS="$X_LIBS -R $x_libraries"
7493 else
7494 echo "$ac_t""neither works" 1>&6
7495 fi
7496 fi
7497 LIBS="$ac_xsave_LIBS"
7498 esac
7499 fi
7500
7501 # Check for system-dependent libraries X programs must link with.
7502 # Do this before checking for the system-independent R6 libraries
7503 # (-lICE), since we may need -lsocket or whatever for X linking.
7504
7505 if test "$ISC" = yes; then
7506 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
7507 else
7508 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
7509 # libraries were built with DECnet support. And karl@cs.umb.edu says
7510 # the Alpha needs dnet_stub (dnet does not exist).
7511 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
7c66a493 7512echo "configure:7513: checking for dnet_ntoa in -ldnet" >&5
ab9b9eab
VZ
7513ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
7514if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7515 echo $ac_n "(cached) $ac_c" 1>&6
7516else
7517 ac_save_LIBS="$LIBS"
7518LIBS="-ldnet $LIBS"
7519cat > conftest.$ac_ext <<EOF
7c66a493 7520#line 7521 "configure"
ab9b9eab
VZ
7521#include "confdefs.h"
7522/* Override any gcc2 internal prototype to avoid an error. */
7523/* We use char because int might match the return type of a gcc2
7524 builtin and then its argument prototype would still apply. */
7525char dnet_ntoa();
7526
7527int main() {
7528dnet_ntoa()
7529; return 0; }
7530EOF
7c66a493 7531if { (eval echo configure:7532: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
7532 rm -rf conftest*
7533 eval "ac_cv_lib_$ac_lib_var=yes"
7534else
7535 echo "configure: failed program was:" >&5
7536 cat conftest.$ac_ext >&5
7537 rm -rf conftest*
7538 eval "ac_cv_lib_$ac_lib_var=no"
7539fi
7540rm -f conftest*
7541LIBS="$ac_save_LIBS"
7542
7543fi
7544if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7545 echo "$ac_t""yes" 1>&6
7546 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
7547else
7548 echo "$ac_t""no" 1>&6
7549fi
7550
7551 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
7552 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
7c66a493 7553echo "configure:7554: checking for dnet_ntoa in -ldnet_stub" >&5
ab9b9eab
VZ
7554ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
7555if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7556 echo $ac_n "(cached) $ac_c" 1>&6
7557else
7558 ac_save_LIBS="$LIBS"
7559LIBS="-ldnet_stub $LIBS"
7560cat > conftest.$ac_ext <<EOF
7c66a493 7561#line 7562 "configure"
ab9b9eab
VZ
7562#include "confdefs.h"
7563/* Override any gcc2 internal prototype to avoid an error. */
7564/* We use char because int might match the return type of a gcc2
7565 builtin and then its argument prototype would still apply. */
7566char dnet_ntoa();
7567
7568int main() {
7569dnet_ntoa()
7570; return 0; }
7571EOF
7c66a493 7572if { (eval echo configure:7573: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
7573 rm -rf conftest*
7574 eval "ac_cv_lib_$ac_lib_var=yes"
7575else
7576 echo "configure: failed program was:" >&5
7577 cat conftest.$ac_ext >&5
7578 rm -rf conftest*
7579 eval "ac_cv_lib_$ac_lib_var=no"
7580fi
7581rm -f conftest*
7582LIBS="$ac_save_LIBS"
7583
7584fi
7585if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7586 echo "$ac_t""yes" 1>&6
7587 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
7588else
7589 echo "$ac_t""no" 1>&6
7590fi
7591
7592 fi
7593
7594 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
7595 # to get the SysV transport functions.
7596 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
7597 # needs -lnsl.
7598 # The nsl library prevents programs from opening the X display
7599 # on Irix 5.2, according to dickey@clark.net.
7600 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
7c66a493 7601echo "configure:7602: checking for gethostbyname" >&5
ab9b9eab
VZ
7602if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
7603 echo $ac_n "(cached) $ac_c" 1>&6
7604else
7605 cat > conftest.$ac_ext <<EOF
7c66a493 7606#line 7607 "configure"
ab9b9eab
VZ
7607#include "confdefs.h"
7608/* System header to define __stub macros and hopefully few prototypes,
7609 which can conflict with char gethostbyname(); below. */
7610#include <assert.h>
7611/* Override any gcc2 internal prototype to avoid an error. */
7612/* We use char because int might match the return type of a gcc2
7613 builtin and then its argument prototype would still apply. */
7614char gethostbyname();
7615
7616int main() {
7617
7618/* The GNU C library defines this for functions which it implements
7619 to always fail with ENOSYS. Some functions are actually named
7620 something starting with __ and the normal name is an alias. */
7621#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
7622choke me
7623#else
2224580a 7624gethostbyname();
ab9b9eab
VZ
7625#endif
7626
7627; return 0; }
7628EOF
7c66a493 7629if { (eval echo configure:7630: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
7630 rm -rf conftest*
7631 eval "ac_cv_func_gethostbyname=yes"
7632else
7633 echo "configure: failed program was:" >&5
7634 cat conftest.$ac_ext >&5
7635 rm -rf conftest*
7636 eval "ac_cv_func_gethostbyname=no"
7637fi
7638rm -f conftest*
7639fi
7640
7641if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
7642 echo "$ac_t""yes" 1>&6
7643 :
7644else
7645 echo "$ac_t""no" 1>&6
7646fi
7647
7648 if test $ac_cv_func_gethostbyname = no; then
7649 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
7c66a493 7650echo "configure:7651: checking for gethostbyname in -lnsl" >&5
ab9b9eab
VZ
7651ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
7652if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7653 echo $ac_n "(cached) $ac_c" 1>&6
7654else
7655 ac_save_LIBS="$LIBS"
7656LIBS="-lnsl $LIBS"
7657cat > conftest.$ac_ext <<EOF
7c66a493 7658#line 7659 "configure"
ab9b9eab
VZ
7659#include "confdefs.h"
7660/* Override any gcc2 internal prototype to avoid an error. */
7661/* We use char because int might match the return type of a gcc2
7662 builtin and then its argument prototype would still apply. */
7663char gethostbyname();
7664
7665int main() {
7666gethostbyname()
7667; return 0; }
7668EOF
7c66a493 7669if { (eval echo configure:7670: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
7670 rm -rf conftest*
7671 eval "ac_cv_lib_$ac_lib_var=yes"
7672else
7673 echo "configure: failed program was:" >&5
7674 cat conftest.$ac_ext >&5
7675 rm -rf conftest*
7676 eval "ac_cv_lib_$ac_lib_var=no"
7677fi
7678rm -f conftest*
7679LIBS="$ac_save_LIBS"
7680
7681fi
7682if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7683 echo "$ac_t""yes" 1>&6
7684 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
7685else
7686 echo "$ac_t""no" 1>&6
7687fi
7688
7689 fi
7690
7691 # lieder@skyler.mavd.honeywell.com says without -lsocket,
7692 # socket/setsockopt and other routines are undefined under SCO ODT
7693 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
7694 # on later versions), says simon@lia.di.epfl.ch: it contains
7695 # gethostby* variants that don't use the nameserver (or something).
7696 # -lsocket must be given before -lnsl if both are needed.
7697 # We assume that if connect needs -lnsl, so does gethostbyname.
7698 echo $ac_n "checking for connect""... $ac_c" 1>&6
7c66a493 7699echo "configure:7700: checking for connect" >&5
ab9b9eab
VZ
7700if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
7701 echo $ac_n "(cached) $ac_c" 1>&6
7702else
7703 cat > conftest.$ac_ext <<EOF
7c66a493 7704#line 7705 "configure"
ab9b9eab
VZ
7705#include "confdefs.h"
7706/* System header to define __stub macros and hopefully few prototypes,
7707 which can conflict with char connect(); below. */
7708#include <assert.h>
7709/* Override any gcc2 internal prototype to avoid an error. */
7710/* We use char because int might match the return type of a gcc2
7711 builtin and then its argument prototype would still apply. */
7712char connect();
7713
7714int main() {
7715
7716/* The GNU C library defines this for functions which it implements
7717 to always fail with ENOSYS. Some functions are actually named
7718 something starting with __ and the normal name is an alias. */
7719#if defined (__stub_connect) || defined (__stub___connect)
7720choke me
7721#else
2224580a 7722connect();
ab9b9eab
VZ
7723#endif
7724
7725; return 0; }
7726EOF
7c66a493 7727if { (eval echo configure:7728: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
7728 rm -rf conftest*
7729 eval "ac_cv_func_connect=yes"
7730else
7731 echo "configure: failed program was:" >&5
7732 cat conftest.$ac_ext >&5
7733 rm -rf conftest*
7734 eval "ac_cv_func_connect=no"
7735fi
7736rm -f conftest*
7737fi
7738
7739if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
7740 echo "$ac_t""yes" 1>&6
7741 :
7742else
7743 echo "$ac_t""no" 1>&6
7744fi
7745
7746 if test $ac_cv_func_connect = no; then
7747 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
7c66a493 7748echo "configure:7749: checking for connect in -lsocket" >&5
ab9b9eab
VZ
7749ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
7750if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7751 echo $ac_n "(cached) $ac_c" 1>&6
7752else
7753 ac_save_LIBS="$LIBS"
7754LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
7755cat > conftest.$ac_ext <<EOF
7c66a493 7756#line 7757 "configure"
ab9b9eab
VZ
7757#include "confdefs.h"
7758/* Override any gcc2 internal prototype to avoid an error. */
7759/* We use char because int might match the return type of a gcc2
7760 builtin and then its argument prototype would still apply. */
7761char connect();
7762
7763int main() {
7764connect()
7765; return 0; }
7766EOF
7c66a493 7767if { (eval echo configure:7768: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
7768 rm -rf conftest*
7769 eval "ac_cv_lib_$ac_lib_var=yes"
7770else
7771 echo "configure: failed program was:" >&5
7772 cat conftest.$ac_ext >&5
7773 rm -rf conftest*
7774 eval "ac_cv_lib_$ac_lib_var=no"
7775fi
7776rm -f conftest*
7777LIBS="$ac_save_LIBS"
7778
7779fi
7780if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7781 echo "$ac_t""yes" 1>&6
7782 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
7783else
7784 echo "$ac_t""no" 1>&6
7785fi
7786
7787 fi
7788
7789 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
7790 echo $ac_n "checking for remove""... $ac_c" 1>&6
7c66a493 7791echo "configure:7792: checking for remove" >&5
ab9b9eab
VZ
7792if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
7793 echo $ac_n "(cached) $ac_c" 1>&6
7794else
7795 cat > conftest.$ac_ext <<EOF
7c66a493 7796#line 7797 "configure"
ab9b9eab
VZ
7797#include "confdefs.h"
7798/* System header to define __stub macros and hopefully few prototypes,
7799 which can conflict with char remove(); below. */
7800#include <assert.h>
7801/* Override any gcc2 internal prototype to avoid an error. */
7802/* We use char because int might match the return type of a gcc2
7803 builtin and then its argument prototype would still apply. */
7804char remove();
7805
7806int main() {
7807
7808/* The GNU C library defines this for functions which it implements
7809 to always fail with ENOSYS. Some functions are actually named
7810 something starting with __ and the normal name is an alias. */
7811#if defined (__stub_remove) || defined (__stub___remove)
7812choke me
7813#else
2224580a 7814remove();
ab9b9eab
VZ
7815#endif
7816
7817; return 0; }
7818EOF
7c66a493 7819if { (eval echo configure:7820: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
7820 rm -rf conftest*
7821 eval "ac_cv_func_remove=yes"
7822else
7823 echo "configure: failed program was:" >&5
7824 cat conftest.$ac_ext >&5
7825 rm -rf conftest*
7826 eval "ac_cv_func_remove=no"
7827fi
7828rm -f conftest*
7829fi
7830
7831if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
7832 echo "$ac_t""yes" 1>&6
7833 :
7834else
7835 echo "$ac_t""no" 1>&6
7836fi
7837
7838 if test $ac_cv_func_remove = no; then
7839 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
7c66a493 7840echo "configure:7841: checking for remove in -lposix" >&5
ab9b9eab
VZ
7841ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
7842if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7843 echo $ac_n "(cached) $ac_c" 1>&6
7844else
7845 ac_save_LIBS="$LIBS"
7846LIBS="-lposix $LIBS"
7847cat > conftest.$ac_ext <<EOF
7c66a493 7848#line 7849 "configure"
ab9b9eab
VZ
7849#include "confdefs.h"
7850/* Override any gcc2 internal prototype to avoid an error. */
7851/* We use char because int might match the return type of a gcc2
7852 builtin and then its argument prototype would still apply. */
7853char remove();
7854
7855int main() {
7856remove()
7857; return 0; }
7858EOF
7c66a493 7859if { (eval echo configure:7860: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
7860 rm -rf conftest*
7861 eval "ac_cv_lib_$ac_lib_var=yes"
7862else
7863 echo "configure: failed program was:" >&5
7864 cat conftest.$ac_ext >&5
7865 rm -rf conftest*
7866 eval "ac_cv_lib_$ac_lib_var=no"
7867fi
7868rm -f conftest*
7869LIBS="$ac_save_LIBS"
7870
7871fi
7872if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7873 echo "$ac_t""yes" 1>&6
7874 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
7875else
7876 echo "$ac_t""no" 1>&6
7877fi
7878
7879 fi
7880
7881 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
7882 echo $ac_n "checking for shmat""... $ac_c" 1>&6
7c66a493 7883echo "configure:7884: checking for shmat" >&5
ab9b9eab
VZ
7884if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
7885 echo $ac_n "(cached) $ac_c" 1>&6
7886else
7887 cat > conftest.$ac_ext <<EOF
7c66a493 7888#line 7889 "configure"
ab9b9eab
VZ
7889#include "confdefs.h"
7890/* System header to define __stub macros and hopefully few prototypes,
7891 which can conflict with char shmat(); below. */
7892#include <assert.h>
7893/* Override any gcc2 internal prototype to avoid an error. */
7894/* We use char because int might match the return type of a gcc2
7895 builtin and then its argument prototype would still apply. */
7896char shmat();
7897
7898int main() {
7899
7900/* The GNU C library defines this for functions which it implements
7901 to always fail with ENOSYS. Some functions are actually named
7902 something starting with __ and the normal name is an alias. */
7903#if defined (__stub_shmat) || defined (__stub___shmat)
7904choke me
7905#else
2224580a 7906shmat();
ab9b9eab
VZ
7907#endif
7908
7909; return 0; }
7910EOF
7c66a493 7911if { (eval echo configure:7912: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
7912 rm -rf conftest*
7913 eval "ac_cv_func_shmat=yes"
7914else
7915 echo "configure: failed program was:" >&5
7916 cat conftest.$ac_ext >&5
7917 rm -rf conftest*
7918 eval "ac_cv_func_shmat=no"
7919fi
7920rm -f conftest*
7921fi
7922
7923if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
7924 echo "$ac_t""yes" 1>&6
7925 :
7926else
7927 echo "$ac_t""no" 1>&6
7928fi
7929
7930 if test $ac_cv_func_shmat = no; then
7931 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
7c66a493 7932echo "configure:7933: checking for shmat in -lipc" >&5
ab9b9eab
VZ
7933ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
7934if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7935 echo $ac_n "(cached) $ac_c" 1>&6
7936else
7937 ac_save_LIBS="$LIBS"
7938LIBS="-lipc $LIBS"
7939cat > conftest.$ac_ext <<EOF
7c66a493 7940#line 7941 "configure"
ab9b9eab
VZ
7941#include "confdefs.h"
7942/* Override any gcc2 internal prototype to avoid an error. */
7943/* We use char because int might match the return type of a gcc2
7944 builtin and then its argument prototype would still apply. */
7945char shmat();
7946
7947int main() {
7948shmat()
7949; return 0; }
7950EOF
7c66a493 7951if { (eval echo configure:7952: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
7952 rm -rf conftest*
7953 eval "ac_cv_lib_$ac_lib_var=yes"
7954else
7955 echo "configure: failed program was:" >&5
7956 cat conftest.$ac_ext >&5
7957 rm -rf conftest*
7958 eval "ac_cv_lib_$ac_lib_var=no"
7959fi
7960rm -f conftest*
7961LIBS="$ac_save_LIBS"
7962
7963fi
7964if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7965 echo "$ac_t""yes" 1>&6
7966 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
7967else
7968 echo "$ac_t""no" 1>&6
7969fi
7970
7971 fi
7972 fi
7973
7974 # Check for libraries that X11R6 Xt/Xaw programs need.
7975 ac_save_LDFLAGS="$LDFLAGS"
7976 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
7977 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
7978 # check for ICE first), but we must link in the order -lSM -lICE or
7979 # we get undefined symbols. So assume we have SM if we have ICE.
7980 # These have to be linked with before -lX11, unlike the other
7981 # libraries we check for below, so use a different variable.
7982 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
7983 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
7c66a493 7984echo "configure:7985: checking for IceConnectionNumber in -lICE" >&5
ab9b9eab
VZ
7985ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
7986if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7987 echo $ac_n "(cached) $ac_c" 1>&6
7988else
7989 ac_save_LIBS="$LIBS"
7990LIBS="-lICE $X_EXTRA_LIBS $LIBS"
7991cat > conftest.$ac_ext <<EOF
7c66a493 7992#line 7993 "configure"
ab9b9eab
VZ
7993#include "confdefs.h"
7994/* Override any gcc2 internal prototype to avoid an error. */
7995/* We use char because int might match the return type of a gcc2
7996 builtin and then its argument prototype would still apply. */
7997char IceConnectionNumber();
7998
7999int main() {
8000IceConnectionNumber()
8001; return 0; }
8002EOF
7c66a493 8003if { (eval echo configure:8004: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
8004 rm -rf conftest*
8005 eval "ac_cv_lib_$ac_lib_var=yes"
8006else
8007 echo "configure: failed program was:" >&5
8008 cat conftest.$ac_ext >&5
8009 rm -rf conftest*
8010 eval "ac_cv_lib_$ac_lib_var=no"
8011fi
8012rm -f conftest*
8013LIBS="$ac_save_LIBS"
8014
8015fi
8016if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8017 echo "$ac_t""yes" 1>&6
8018 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
8019else
8020 echo "$ac_t""no" 1>&6
8021fi
8022
8023 LDFLAGS="$ac_save_LDFLAGS"
8024
8025fi
8026
8027
8028 if test "$no_x" = "yes"; then
8029 { echo "configure: error: X11 not found" 1>&2; exit 1; }
8030 fi
8031
8032 GUI_TK_LIBRARY="$X_LIBS"
8033 TOOLKIT_INCLUDE="$X_CFLAGS"
8034
dad6c0ea
VZ
8035 AFMINSTALL=afminstall
8036
ab9b9eab 8037
cd6d6d5b
VZ
8038 COMPILED_X_PROGRAM=0
8039
ab9b9eab 8040 echo $ac_n "checking for Motif/Lesstif headers""... $ac_c" 1>&6
cd6d6d5b 8041echo "configure:8042: checking for Motif/Lesstif headers" >&5
ab9b9eab
VZ
8042
8043ac_find_includes=
8044for ac_dir in $SEARCH_INCLUDE;
8045 do
8046 if test -f "$ac_dir/Xm/Xm.h"; then
8047 ac_find_includes=$ac_dir
8048 break
8049 fi
8050 done
8051
8052 if test "$ac_find_includes" != "" ; then
8053 echo "$ac_t""found $ac_find_includes" 1>&6
8054 else
cd6d6d5b
VZ
8055 cat > conftest.$ac_ext <<EOF
8056#line 8057 "configure"
8057#include "confdefs.h"
8058
8059 #include <Xm/Xm.h>
8060
8061int main() {
8062
8063 int version;
8064
8065 version = xmUseVersion;
8066
8067; return 0; }
8068EOF
8069if { (eval echo configure:8070: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8070 rm -rf conftest*
8071
8072 echo "$ac_t""found in default search path" 1>&6
8073 COMPILED_X_PROGRAM=1
8074
8075else
8076 echo "configure: failed program was:" >&5
8077 cat conftest.$ac_ext >&5
8078 rm -rf conftest*
8079
8080 echo "$ac_t""no" 1>&6
8081 { echo "configure: error: please set CFLAGS to contain the location of Xm/Xm.h" 1>&2; exit 1; }
8082
8083
8084fi
8085rm -f conftest*
ab9b9eab
VZ
8086 fi
8087
cd6d6d5b
VZ
8088 if test "$COMPILED_X_PROGRAM" = 0; then
8089 echo $ac_n "checking for Motif/Lesstif library""... $ac_c" 1>&6
8090echo "configure:8091: checking for Motif/Lesstif library" >&5
8091
ab9b9eab
VZ
8092ac_find_libraries=
8093for ac_dir in $SEARCH_LIB;
8094 do
8095 for ac_extension in a so sl; do
8096 if test -f "$ac_dir/libXm.$ac_extension"; then
8097 ac_find_libraries=$ac_dir
8098 break 2
8099 fi
8100 done
8101 done
8102
cd6d6d5b
VZ
8103 if test "$ac_find_libraries" != "" ; then
8104
ab9b9eab
VZ
8105 ac_path_to_include=$ac_find_includes
8106 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
8107 result=$?
8108 if test $result = 0; then
8109 ac_path_to_include=""
8110 else
8111 ac_path_to_include="-I$ac_find_includes"
8112 fi
8113
cd6d6d5b 8114
ab9b9eab
VZ
8115 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
8116 result=$?
8117 if test $result = 0; then
8118 ac_path_to_link=""
8119 else
8120 ac_path_to_link="-L$ac_find_libraries"
8121 fi
8122
8123
cd6d6d5b
VZ
8124 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $ac_path_to_link"
8125 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE $ac_path_to_include"
8126 echo "$ac_t""found at $ac_find_libraries" 1>&6
8127 else
8128 cat > conftest.$ac_ext <<EOF
8129#line 8130 "configure"
8130#include "confdefs.h"
ab9b9eab 8131
cd6d6d5b
VZ
8132 #include <Xm/Xm.h>
8133
8134int main() {
ab9b9eab 8135
cd6d6d5b 8136 int version;
ab9b9eab 8137
cd6d6d5b
VZ
8138 version = xmUseVersion;
8139
8140; return 0; }
8141EOF
8142if { (eval echo configure:8143: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8143 rm -rf conftest*
8144
8145 echo "$ac_t""found in default search path" 1>&6
8146 COMPILED_X_PROGRAM=1
8147
8148else
8149 echo "configure: failed program was:" >&5
8150 cat conftest.$ac_ext >&5
8151 rm -rf conftest*
8152
8153 echo "$ac_t""no" 1>&6
8154 { echo "configure: error: please set LDFLAGS to contain the location of libXm" 1>&2; exit 1; }
8155
8156
8157fi
8158rm -f conftest*
8159 fi
ab9b9eab
VZ
8160 fi
8161
cd6d6d5b 8162
ab9b9eab
VZ
8163 XPM_LINK=""
8164 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
cd6d6d5b 8165echo "configure:8166: checking for Xpm library" >&5
ab9b9eab
VZ
8166
8167ac_find_libraries=
8168for ac_dir in $SEARCH_LIB;
8169 do
8170 for ac_extension in a so sl; do
8171 if test -f "$ac_dir/libXpm.$ac_extension"; then
8172 ac_find_libraries=$ac_dir
8173 break 2
8174 fi
8175 done
8176 done
8177
8178 if test "$ac_find_libraries" != "" ; then
8179
8180 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
8181 result=$?
8182 if test $result = 0; then
8183 ac_path_to_link=""
8184 else
8185 ac_path_to_link="-L$ac_find_libraries"
8186 fi
8187
8188 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $ac_path_to_link"
8189 XPM_LINK="-lXpm "
8190 cat >> confdefs.h <<\EOF
8191#define wxHAVE_LIB_XPM 1
8192EOF
8193
8194 echo "$ac_t""found at $ac_find_libraries" 1>&6
8195 else
cd6d6d5b
VZ
8196 cat > conftest.$ac_ext <<EOF
8197#line 8198 "configure"
8198#include "confdefs.h"
8199
8200 #include <X11/xpm.h>
8201
8202int main() {
8203
8204 int version;
8205
8206 version = XpmLibraryVersion();
8207
8208; return 0; }
8209EOF
8210if { (eval echo configure:8211: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8211 rm -rf conftest*
8212
8213 echo "$ac_t""found in default search path" 1>&6,
8214 COMPILED_X_PROGRAM=0
8215
8216else
8217 echo "configure: failed program was:" >&5
8218 cat conftest.$ac_ext >&5
8219 rm -rf conftest*
8220
8221 echo "$ac_t""no" 1>&6
8222 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
8223
8224
8225fi
8226rm -f conftest*
ab9b9eab
VZ
8227 fi
8228
8229 GUI_TK_LINK="-lXm $XPM_LINK -lXmu -lXext -lXt -lX11 -lm"
8230 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $GUI_TK_LINK"
8231 TOOLKIT=MOTIF
8232
8233 GUIHEADERS="\$(MOTIF_HEADERS)"
8234 GUIOBJS="\$(MOTIF_GUIOBJS)"
8235 COMMONOBJS="\$(MOTIF_COMMONOBJS)"
788deba1
VZ
8236 GENERICOBJS="\$(MOTIF_GENERICOBJS)"
8237 GUIDEPS="\$(MOTIF_GUIDEPS)"
8238 COMMONDEPS="\$(MOTIF_COMMONDEPS)"
10f2d63a
VZ
8239 GENERICDEPS="\$(MOTIF_GENERICDEPS)"
8240 UNIXOBJS="\$(UNIX_OBJS)"
d9d8273d 8241 UNIXDEPS="\$(UNIX_DEPS)"
10f2d63a
VZ
8242 GUIDIST=MOTIF_DIST
8243fi
8244
e07802fc
VZ
8245if test "$wxUSE_PM" = 1; then
8246 TOOLKIT=PM
8247
8248 GUIOBJS="\$(PM_GUIOBJS)"
8249 GUIHEADERS="\$(PM_HEADERS)"
8250 COMMONOBJS="\$(PM_COMMONOBJS)"
8251 GENERICOBJS="\$(PM_GENERICOBJS)"
8252 GUIDEPS="\$(PM_GUIDEPS)"
8253 COMMONDEPS="\$(PM_COMMONDEPS)"
8254 GENERICDEPS="\$(PM_GENERICDEPS)"
8255 UNIXOBJS=
8256 UNIXDEPS=
8257 GUIDIST=GTK_DIST
8258fi
8259
8260if test "$TOOLKIT" != "PM" ; then
ec14dd32 8261 TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
e07802fc
VZ
8262else
8263 TOOLKIT_DIR="os2"
8264fi
10f2d63a 8265
2224580a 8266 TOOLKIT_DEF="-D__WX${TOOLKIT}__"
10f2d63a 8267
2224580a 8268 WX_LIBRARY="wx_${TOOLKIT_DIR}"
10f2d63a 8269
3fcdd07b
VZ
8270 ALL_OBJECTS="\$(GUIOBJS) \$(COMMONOBJS) \$(GENERICOBJS) \$(UNIXOBJS) \$(HTMLOBJS)"
8271
b089607b 8272 if test "$TOOLKIT" != "MSW"; then
3fcdd07b
VZ
8273 ALL_OBJECTS="${ALL_OBJECTS} \$(IODBCOBJS)"
8274 fi
8275
d9d8273d 8276 if test "$wxUSE_LIBJPEG" = "yes" ; then
2224580a 8277 ALL_OBJECTS="${ALL_OBJECTS} \$(JPEGOBJS)"
d9d8273d
RR
8278 fi
8279 if test "$wxUSE_LIBTIFF" = "yes" ; then
8280 ALL_OBJECTS="${ALL_OBJECTS} \$(TIFFOBJS)"
8281 fi
8282 if test "$wxUSE_LIBPNG" = "yes" ; then
8283 ALL_OBJECTS="${ALL_OBJECTS} \$(PNGOBJS)"
8284 fi
8285 if test "$wxUSE_ZLIB" = "yes" ; then
8286 ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)"
8287 fi
10f2d63a 8288 ALL_DEPFILES="\$(GUIDEPS) \$(COMMONDEPS) \$(GENERICDEPS) \$(UNIXDEPS) \$(HTMLDEPS)"
2224580a
VZ
8289
8290 PORT_FILES="src/\$(TOOLKITDIR)/files.lst"
8291 RPM_FILES="src/\$(TOOLKITDIR)/rpmfiles.lst"
8292 RPM_SPEC="wx\$(TOOLKIT).spec"
8293
8294 GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
8295 DISTDIR="wx\$(TOOLKIT)"
10f2d63a
VZ
8296else
8297
dad6c0ea
VZ
8298 USE_GUI=0
8299
2224580a
VZ
8300 ALL_OBJECTS="\$(BASE_OBJS) \${BASE_UNIX_OBJS}"
8301 ALL_DEPFILES="\${BASE_DEPS} \${BASE_UNIX_DEPS}"
10f2d63a
VZ
8302
8303 WX_LIBRARY="wxbase"
2224580a
VZ
8304
8305 PORT_FILES="src/files.lst"
8306 RPM_FILES="src/rpmfiles.lst"
8307 RPM_SPEC="wxBase.spec"
8308
8309 GUIDIST="BASE_DIST"
8310 DISTDIR="wxBase"
10f2d63a
VZ
8311fi
8312
8313WX_LIBRARY_NAME="lib${WX_LIBRARY}.la"
8314
8315WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a"
8316
8317WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}-${WX_RELEASE}.so.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
8318
8319WX_LIBRARY_LINK1="lib${WX_LIBRARY}-${WX_RELEASE}.so.${WX_CURRENT}"
8320WX_LIBRARY_LINK2="lib${WX_LIBRARY}-${WX_RELEASE}.so"
8321WX_LIBRARY_LINK3="lib${WX_LIBRARY}.so"
8322
8323SHARED_LD=
8324PIC_FLAG=
8325WX_ALL=
8326WX_ALL_INSTALLED=
1d62a8b4 8327BURNT_LIBRARY_NAME=
10f2d63a 8328
b12915c1 8329
10f2d63a
VZ
8330if test "$wxUSE_SHARED" = "yes"; then
8331 case "${host}" in
8332 *-hp-hpux* )
8333 if test "$GCC" = yes ; then
69ffe1d2 8334 SHARED_LD="${CC} -shared -fPIC -o"
10f2d63a
VZ
8335 PIC_FLAG="-fPIC"
8336 else
8337 SHARED_LD="${CXX} -b -o"
8338 PIC_FLAG="+Z"
8339 fi
8340 WX_LIBRARY_NAME_SHARED="libwx_${TOOLKIT_DIR}.sl"
8341 WX_ALL=${WX_LIBRARY_NAME_SHARED}
8342 ;;
b12915c1
VZ
8343
8344 *-*-linux* )
10f2d63a
VZ
8345 SHARED_LD="${CC} -shared -o"
8346 PIC_FLAG="-fPIC"
8347 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
8348 WX_ALL="CREATE_LINKS"
b12915c1 8349 ;;
10f2d63a
VZ
8350 *-*-irix5* | *-*-irix6* )
8351 if test "$GCC" = yes ; then
8352 SHARED_LD="${CC} -shared -o"
8353 PIC_FLAG="-fPIC"
8354 else
8355 SHARED_LD="${CXX} -shared -o"
8356 fi
8357 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
8358 WX_ALL="CREATE_LINKS"
8359 ;;
8360 *-*-solaris2* )
8361 if test "$GCC" = yes ; then
8362 SHARED_LD="${CC} -shared -o"
8363 PIC_FLAG="-fPIC"
8364 else
8365 SHARED_LD="${CXX} -G -o"
8366 PIC_FLAG="-KPIC"
8367 fi
8368 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
8369 WX_ALL="CREATE_LINKS"
8370 ;;
8371 *-*-sunos4* )
8372 SHARED_LD="${CC} -shared -o"
8373 PIC_FLAG="-fPIC"
8374 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
8375 WX_ALL="CREATE_LINKS"
8376 ;;
8377 *-*-freebsd* | *-*-netbsd*)
8378 SHARED_LD="${CC} -shared -o"
8379 PIC_FLAG="-fPIC"
8380 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
8381 WX_ALL="CREATE_LINKS"
8382 ;;
8383 *-*-osf* )
8384 SHARED_LD="${CXX} -shared -o"
8385 PIC_FLAG="-fPIC"
8386 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
8387 WX_ALL="CREATE_LINKS"
8388 ;;
8389 *-*-dgux5* )
8390 SHARED_LD="${CXX} -shared -o"
8391 PIC_FLAG="-fPIC"
8392 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
8393 WX_ALL="CREATE_LINKS"
8394 ;;
8395 *-*-sysv5* )
8396 SHARED_LD="${CC} -shared -o"
8397 PIC_FLAG="-fPIC"
8398 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
8399 WX_ALL="CREATE_LINKS"
8400 ;;
8401 *-*-aix* )
8402 SHARED_LD="/usr/lpp/xlC/bin/makeC++SharedLib -p 0 -o"
8403 WX_ALL=${WX_LIBRARY_NAME_SHARED}
8404 ;;
8405 *-*-cygwin32* )
8406 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
8407 WX_ALL="${WX_LIBRARY_NAME_STATIC}"
8408 ;;
b12915c1 8409 *-*-mingw32* )
10f2d63a
VZ
8410 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
8411 WX_ALL="${WX_LIBRARY_NAME_STATIC}"
8412 ;;
8413 *-pc-os2_emx )
e07802fc
VZ
8414 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
8415 WX_ALL="${WX_LIBRARY_NAME_STATIC}"
10f2d63a 8416 ;;
b12915c1 8417 *-*-beos* )
e2b8b066 8418 SHARED_LD="${LD} -shared -o"
b12915c1
VZ
8419 PIC_FLAG="-fPIC"
8420 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
8421 WX_ALL="CREATE_LINKS"
8422 ;;
10f2d63a
VZ
8423 *)
8424 { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; }
8425 esac
8426
8427 if test "x$WX_TARGET_LIBRARY" = "x"; then
8428 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}"
8429 fi
8430else
8431 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
8432 WX_ALL="${WX_LIBRARY_NAME_STATIC}"
8433fi
8434
8435
8436for ac_hdr in strings.h
8437do
8438ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8439echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
cd6d6d5b 8440echo "configure:8441: checking for $ac_hdr" >&5
10f2d63a
VZ
8441if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8442 echo $ac_n "(cached) $ac_c" 1>&6
8443else
8444 cat > conftest.$ac_ext <<EOF
cd6d6d5b 8445#line 8446 "configure"
10f2d63a
VZ
8446#include "confdefs.h"
8447#include <$ac_hdr>
8448EOF
8449ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
cd6d6d5b 8450{ (eval echo configure:8451: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
8451ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8452if test -z "$ac_err"; then
8453 rm -rf conftest*
8454 eval "ac_cv_header_$ac_safe=yes"
8455else
8456 echo "$ac_err" >&5
8457 echo "configure: failed program was:" >&5
8458 cat conftest.$ac_ext >&5
8459 rm -rf conftest*
8460 eval "ac_cv_header_$ac_safe=no"
8461fi
8462rm -f conftest*
8463fi
8464if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8465 echo "$ac_t""yes" 1>&6
8466 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8467 cat >> confdefs.h <<EOF
8468#define $ac_tr_hdr 1
8469EOF
8470
8471else
8472 echo "$ac_t""no" 1>&6
8473fi
8474done
8475
8476for ac_hdr in unistd.h
8477do
8478ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8479echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
cd6d6d5b 8480echo "configure:8481: checking for $ac_hdr" >&5
10f2d63a
VZ
8481if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8482 echo $ac_n "(cached) $ac_c" 1>&6
8483else
8484 cat > conftest.$ac_ext <<EOF
cd6d6d5b 8485#line 8486 "configure"
10f2d63a
VZ
8486#include "confdefs.h"
8487#include <$ac_hdr>
8488EOF
8489ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
cd6d6d5b 8490{ (eval echo configure:8491: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
8491ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8492if test -z "$ac_err"; then
8493 rm -rf conftest*
8494 eval "ac_cv_header_$ac_safe=yes"
8495else
8496 echo "$ac_err" >&5
8497 echo "configure: failed program was:" >&5
8498 cat conftest.$ac_ext >&5
8499 rm -rf conftest*
8500 eval "ac_cv_header_$ac_safe=no"
8501fi
8502rm -f conftest*
8503fi
8504if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8505 echo "$ac_t""yes" 1>&6
8506 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8507 cat >> confdefs.h <<EOF
8508#define $ac_tr_hdr 1
8509EOF
8510
8511else
8512 echo "$ac_t""no" 1>&6
8513fi
8514done
8515
8516for ac_hdr in wchar.h
8517do
8518ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8519echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
cd6d6d5b 8520echo "configure:8521: checking for $ac_hdr" >&5
10f2d63a
VZ
8521if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8522 echo $ac_n "(cached) $ac_c" 1>&6
8523else
8524 cat > conftest.$ac_ext <<EOF
cd6d6d5b 8525#line 8526 "configure"
10f2d63a
VZ
8526#include "confdefs.h"
8527#include <$ac_hdr>
8528EOF
8529ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
cd6d6d5b 8530{ (eval echo configure:8531: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
8531ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8532if test -z "$ac_err"; then
8533 rm -rf conftest*
8534 eval "ac_cv_header_$ac_safe=yes"
8535else
8536 echo "$ac_err" >&5
8537 echo "configure: failed program was:" >&5
8538 cat conftest.$ac_ext >&5
8539 rm -rf conftest*
8540 eval "ac_cv_header_$ac_safe=no"
8541fi
8542rm -f conftest*
8543fi
8544if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8545 echo "$ac_t""yes" 1>&6
8546 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8547 cat >> confdefs.h <<EOF
8548#define $ac_tr_hdr 1
8549EOF
8550
8551else
8552 echo "$ac_t""no" 1>&6
8553fi
8554done
8555
8556for ac_hdr in wcstr.h
8557do
8558ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8559echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
cd6d6d5b 8560echo "configure:8561: checking for $ac_hdr" >&5
10f2d63a
VZ
8561if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8562 echo $ac_n "(cached) $ac_c" 1>&6
8563else
8564 cat > conftest.$ac_ext <<EOF
cd6d6d5b 8565#line 8566 "configure"
10f2d63a
VZ
8566#include "confdefs.h"
8567#include <$ac_hdr>
8568EOF
8569ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
cd6d6d5b 8570{ (eval echo configure:8571: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
8571ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8572if test -z "$ac_err"; then
8573 rm -rf conftest*
8574 eval "ac_cv_header_$ac_safe=yes"
8575else
8576 echo "$ac_err" >&5
8577 echo "configure: failed program was:" >&5
8578 cat conftest.$ac_ext >&5
8579 rm -rf conftest*
8580 eval "ac_cv_header_$ac_safe=no"
8581fi
8582rm -f conftest*
8583fi
8584if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8585 echo "$ac_t""yes" 1>&6
8586 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8587 cat >> confdefs.h <<EOF
8588#define $ac_tr_hdr 1
8589EOF
8590
8591else
8592 echo "$ac_t""no" 1>&6
8593fi
8594done
8595
8596for ac_hdr in fnmatch.h
8597do
8598ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8599echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
cd6d6d5b 8600echo "configure:8601: checking for $ac_hdr" >&5
10f2d63a
VZ
8601if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8602 echo $ac_n "(cached) $ac_c" 1>&6
8603else
8604 cat > conftest.$ac_ext <<EOF
cd6d6d5b 8605#line 8606 "configure"
10f2d63a
VZ
8606#include "confdefs.h"
8607#include <$ac_hdr>
8608EOF
8609ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
cd6d6d5b 8610{ (eval echo configure:8611: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
8611ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8612if test -z "$ac_err"; then
8613 rm -rf conftest*
8614 eval "ac_cv_header_$ac_safe=yes"
8615else
8616 echo "$ac_err" >&5
8617 echo "configure: failed program was:" >&5
8618 cat conftest.$ac_ext >&5
8619 rm -rf conftest*
8620 eval "ac_cv_header_$ac_safe=no"
8621fi
8622rm -f conftest*
8623fi
8624if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8625 echo "$ac_t""yes" 1>&6
8626 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8627 cat >> confdefs.h <<EOF
8628#define $ac_tr_hdr 1
8629EOF
8630
8631else
8632 echo "$ac_t""no" 1>&6
8633fi
8634done
8635
8636
8637if test "$wxUSE_GUI" = "yes"; then
8638 for ac_hdr in X11/XKBlib.h
8639do
8640ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8641echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
cd6d6d5b 8642echo "configure:8643: checking for $ac_hdr" >&5
10f2d63a
VZ
8643if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8644 echo $ac_n "(cached) $ac_c" 1>&6
8645else
8646 cat > conftest.$ac_ext <<EOF
cd6d6d5b 8647#line 8648 "configure"
10f2d63a
VZ
8648#include "confdefs.h"
8649#include <$ac_hdr>
8650EOF
8651ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
cd6d6d5b 8652{ (eval echo configure:8653: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
8653ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8654if test -z "$ac_err"; then
8655 rm -rf conftest*
8656 eval "ac_cv_header_$ac_safe=yes"
8657else
8658 echo "$ac_err" >&5
8659 echo "configure: failed program was:" >&5
8660 cat conftest.$ac_ext >&5
8661 rm -rf conftest*
8662 eval "ac_cv_header_$ac_safe=no"
8663fi
8664rm -f conftest*
8665fi
8666if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8667 echo "$ac_t""yes" 1>&6
8668 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8669 cat >> confdefs.h <<EOF
8670#define $ac_tr_hdr 1
8671EOF
8672
8673else
8674 echo "$ac_t""no" 1>&6
8675fi
8676done
8677
8678fi
8679
8680
8681echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
cd6d6d5b 8682echo "configure:8683: checking for ANSI C header files" >&5
10f2d63a
VZ
8683if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
8684 echo $ac_n "(cached) $ac_c" 1>&6
8685else
8686 cat > conftest.$ac_ext <<EOF
cd6d6d5b 8687#line 8688 "configure"
10f2d63a
VZ
8688#include "confdefs.h"
8689#include <stdlib.h>
8690#include <stdarg.h>
8691#include <string.h>
8692#include <float.h>
8693EOF
8694ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
cd6d6d5b 8695{ (eval echo configure:8696: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
8696ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8697if test -z "$ac_err"; then
8698 rm -rf conftest*
8699 ac_cv_header_stdc=yes
8700else
8701 echo "$ac_err" >&5
8702 echo "configure: failed program was:" >&5
8703 cat conftest.$ac_ext >&5
8704 rm -rf conftest*
8705 ac_cv_header_stdc=no
8706fi
8707rm -f conftest*
8708
8709if test $ac_cv_header_stdc = yes; then
8710 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8711cat > conftest.$ac_ext <<EOF
cd6d6d5b 8712#line 8713 "configure"
10f2d63a
VZ
8713#include "confdefs.h"
8714#include <string.h>
8715EOF
8716if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8717 egrep "memchr" >/dev/null 2>&1; then
8718 :
8719else
8720 rm -rf conftest*
8721 ac_cv_header_stdc=no
8722fi
8723rm -f conftest*
8724
8725fi
8726
8727if test $ac_cv_header_stdc = yes; then
8728 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8729cat > conftest.$ac_ext <<EOF
cd6d6d5b 8730#line 8731 "configure"
10f2d63a
VZ
8731#include "confdefs.h"
8732#include <stdlib.h>
8733EOF
8734if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8735 egrep "free" >/dev/null 2>&1; then
8736 :
8737else
8738 rm -rf conftest*
8739 ac_cv_header_stdc=no
8740fi
8741rm -f conftest*
8742
8743fi
8744
8745if test $ac_cv_header_stdc = yes; then
8746 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8747if test "$cross_compiling" = yes; then
8748 :
8749else
8750 cat > conftest.$ac_ext <<EOF
cd6d6d5b 8751#line 8752 "configure"
10f2d63a
VZ
8752#include "confdefs.h"
8753#include <ctype.h>
8754#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8755#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8756#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8757int main () { int i; for (i = 0; i < 256; i++)
8758if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
8759exit (0); }
8760
8761EOF
cd6d6d5b 8762if { (eval echo configure:8763: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10f2d63a
VZ
8763then
8764 :
8765else
8766 echo "configure: failed program was:" >&5
8767 cat conftest.$ac_ext >&5
8768 rm -fr conftest*
8769 ac_cv_header_stdc=no
8770fi
8771rm -fr conftest*
8772fi
8773
8774fi
8775fi
8776
8777echo "$ac_t""$ac_cv_header_stdc" 1>&6
8778if test $ac_cv_header_stdc = yes; then
8779 cat >> confdefs.h <<\EOF
8780#define STDC_HEADERS 1
8781EOF
8782
8783fi
8784
8785echo $ac_n "checking for mode_t""... $ac_c" 1>&6
cd6d6d5b 8786echo "configure:8787: checking for mode_t" >&5
10f2d63a
VZ
8787if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
8788 echo $ac_n "(cached) $ac_c" 1>&6
8789else
8790 cat > conftest.$ac_ext <<EOF
cd6d6d5b 8791#line 8792 "configure"
10f2d63a
VZ
8792#include "confdefs.h"
8793#include <sys/types.h>
8794#if STDC_HEADERS
8795#include <stdlib.h>
8796#include <stddef.h>
8797#endif
8798EOF
8799if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8800 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
8801 rm -rf conftest*
8802 ac_cv_type_mode_t=yes
8803else
8804 rm -rf conftest*
8805 ac_cv_type_mode_t=no
8806fi
8807rm -f conftest*
8808
8809fi
8810echo "$ac_t""$ac_cv_type_mode_t" 1>&6
8811if test $ac_cv_type_mode_t = no; then
8812 cat >> confdefs.h <<\EOF
8813#define mode_t int
8814EOF
8815
8816fi
8817
8818echo $ac_n "checking for off_t""... $ac_c" 1>&6
cd6d6d5b 8819echo "configure:8820: checking for off_t" >&5
10f2d63a
VZ
8820if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
8821 echo $ac_n "(cached) $ac_c" 1>&6
8822else
8823 cat > conftest.$ac_ext <<EOF
cd6d6d5b 8824#line 8825 "configure"
10f2d63a
VZ
8825#include "confdefs.h"
8826#include <sys/types.h>
8827#if STDC_HEADERS
8828#include <stdlib.h>
8829#include <stddef.h>
8830#endif
8831EOF
8832if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8833 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
8834 rm -rf conftest*
8835 ac_cv_type_off_t=yes
8836else
8837 rm -rf conftest*
8838 ac_cv_type_off_t=no
8839fi
8840rm -f conftest*
8841
8842fi
8843echo "$ac_t""$ac_cv_type_off_t" 1>&6
8844if test $ac_cv_type_off_t = no; then
8845 cat >> confdefs.h <<\EOF
8846#define off_t long
8847EOF
8848
8849fi
8850
8851echo $ac_n "checking for pid_t""... $ac_c" 1>&6
cd6d6d5b 8852echo "configure:8853: checking for pid_t" >&5
10f2d63a
VZ
8853if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
8854 echo $ac_n "(cached) $ac_c" 1>&6
8855else
8856 cat > conftest.$ac_ext <<EOF
cd6d6d5b 8857#line 8858 "configure"
10f2d63a
VZ
8858#include "confdefs.h"
8859#include <sys/types.h>
8860#if STDC_HEADERS
8861#include <stdlib.h>
8862#include <stddef.h>
8863#endif
8864EOF
8865if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8866 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
8867 rm -rf conftest*
8868 ac_cv_type_pid_t=yes
8869else
8870 rm -rf conftest*
8871 ac_cv_type_pid_t=no
8872fi
8873rm -f conftest*
8874
8875fi
8876echo "$ac_t""$ac_cv_type_pid_t" 1>&6
8877if test $ac_cv_type_pid_t = no; then
8878 cat >> confdefs.h <<\EOF
8879#define pid_t int
8880EOF
8881
8882fi
8883
8884echo $ac_n "checking for size_t""... $ac_c" 1>&6
cd6d6d5b 8885echo "configure:8886: checking for size_t" >&5
10f2d63a
VZ
8886if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
8887 echo $ac_n "(cached) $ac_c" 1>&6
8888else
8889 cat > conftest.$ac_ext <<EOF
cd6d6d5b 8890#line 8891 "configure"
10f2d63a
VZ
8891#include "confdefs.h"
8892#include <sys/types.h>
8893#if STDC_HEADERS
8894#include <stdlib.h>
8895#include <stddef.h>
8896#endif
8897EOF
8898if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8899 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
8900 rm -rf conftest*
8901 ac_cv_type_size_t=yes
8902else
8903 rm -rf conftest*
8904 ac_cv_type_size_t=no
8905fi
8906rm -f conftest*
8907
8908fi
8909echo "$ac_t""$ac_cv_type_size_t" 1>&6
8910if test $ac_cv_type_size_t = no; then
8911 cat >> confdefs.h <<\EOF
8912#define size_t unsigned
8913EOF
8914
8915fi
8916
8917echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
cd6d6d5b 8918echo "configure:8919: checking for uid_t in sys/types.h" >&5
10f2d63a
VZ
8919if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
8920 echo $ac_n "(cached) $ac_c" 1>&6
8921else
8922 cat > conftest.$ac_ext <<EOF
cd6d6d5b 8923#line 8924 "configure"
10f2d63a
VZ
8924#include "confdefs.h"
8925#include <sys/types.h>
8926EOF
8927if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8928 egrep "uid_t" >/dev/null 2>&1; then
8929 rm -rf conftest*
8930 ac_cv_type_uid_t=yes
8931else
8932 rm -rf conftest*
8933 ac_cv_type_uid_t=no
8934fi
8935rm -f conftest*
8936
8937fi
8938
8939echo "$ac_t""$ac_cv_type_uid_t" 1>&6
8940if test $ac_cv_type_uid_t = no; then
8941 cat >> confdefs.h <<\EOF
8942#define uid_t int
8943EOF
8944
8945 cat >> confdefs.h <<\EOF
8946#define gid_t int
8947EOF
8948
8949fi
8950
8951
8952
b12915c1 8953echo $ac_n "checking for pw_gecos in struct passwd""... $ac_c" 1>&6
cd6d6d5b 8954echo "configure:8955: checking for pw_gecos in struct passwd" >&5
b12915c1
VZ
8955if eval "test \"`echo '$''{'wx_cv_struct_pw_gecos'+set}'`\" = set"; then
8956 echo $ac_n "(cached) $ac_c" 1>&6
8957else
8958
8959 cat > conftest.$ac_ext <<EOF
cd6d6d5b 8960#line 8961 "configure"
b12915c1
VZ
8961#include "confdefs.h"
8962#include <pwd.h>
8963int main() {
8964
8965 char *p;
8966 struct passwd *pw;
8967 p = pw->pw_gecos;
8968
8969; return 0; }
8970EOF
cd6d6d5b 8971if { (eval echo configure:8972: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
b12915c1
VZ
8972 rm -rf conftest*
8973
8974 wx_cv_struct_pw_gecos=yes
8975 cat >> confdefs.h <<\EOF
8976#define HAVE_PW_GECOS 1
8977EOF
8978
8979
8980else
8981 echo "configure: failed program was:" >&5
8982 cat conftest.$ac_ext >&5
8983 rm -rf conftest*
8984
8985 wx_cv_struct_pw_gecos=no
8986
8987
8988fi
8989rm -f conftest*
8990
8991
8992fi
8993
8994echo "$ac_t""$wx_cv_struct_pw_gecos" 1>&6
8995
10f2d63a
VZ
8996
8997echo $ac_n "checking for working const""... $ac_c" 1>&6
cd6d6d5b 8998echo "configure:8999: checking for working const" >&5
10f2d63a
VZ
8999if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
9000 echo $ac_n "(cached) $ac_c" 1>&6
9001else
9002 cat > conftest.$ac_ext <<EOF
cd6d6d5b 9003#line 9004 "configure"
10f2d63a
VZ
9004#include "confdefs.h"
9005
9006int main() {
9007
9008/* Ultrix mips cc rejects this. */
9009typedef int charset[2]; const charset x;
9010/* SunOS 4.1.1 cc rejects this. */
9011char const *const *ccp;
9012char **p;
9013/* NEC SVR4.0.2 mips cc rejects this. */
9014struct point {int x, y;};
9015static struct point const zero = {0,0};
9016/* AIX XL C 1.02.0.0 rejects this.
9017 It does not let you subtract one const X* pointer from another in an arm
9018 of an if-expression whose if-part is not a constant expression */
9019const char *g = "string";
9020ccp = &g + (g ? g-g : 0);
9021/* HPUX 7.0 cc rejects these. */
9022++ccp;
9023p = (char**) ccp;
9024ccp = (char const *const *) p;
9025{ /* SCO 3.2v4 cc rejects this. */
9026 char *t;
9027 char const *s = 0 ? (char *) 0 : (char const *) 0;
9028
9029 *t++ = 0;
9030}
9031{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
9032 int x[] = {25, 17};
9033 const int *foo = &x[0];
9034 ++foo;
9035}
9036{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9037 typedef const int *iptr;
9038 iptr p = 0;
9039 ++p;
9040}
9041{ /* AIX XL C 1.02.0.0 rejects this saying
9042 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9043 struct s { int j; const int *ap[3]; };
9044 struct s *b; b->j = 5;
9045}
9046{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9047 const int foo = 10;
9048}
9049
9050; return 0; }
9051EOF
cd6d6d5b 9052if { (eval echo configure:9053: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10f2d63a
VZ
9053 rm -rf conftest*
9054 ac_cv_c_const=yes
9055else
9056 echo "configure: failed program was:" >&5
9057 cat conftest.$ac_ext >&5
9058 rm -rf conftest*
9059 ac_cv_c_const=no
9060fi
9061rm -f conftest*
9062fi
9063
9064echo "$ac_t""$ac_cv_c_const" 1>&6
9065if test $ac_cv_c_const = no; then
9066 cat >> confdefs.h <<\EOF
9067#define const
9068EOF
9069
9070fi
9071
9072echo $ac_n "checking for inline""... $ac_c" 1>&6
cd6d6d5b 9073echo "configure:9074: checking for inline" >&5
10f2d63a
VZ
9074if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
9075 echo $ac_n "(cached) $ac_c" 1>&6
9076else
9077 ac_cv_c_inline=no
9078for ac_kw in inline __inline__ __inline; do
9079 cat > conftest.$ac_ext <<EOF
cd6d6d5b 9080#line 9081 "configure"
10f2d63a
VZ
9081#include "confdefs.h"
9082
9083int main() {
9084} $ac_kw foo() {
9085; return 0; }
9086EOF
cd6d6d5b 9087if { (eval echo configure:9088: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10f2d63a
VZ
9088 rm -rf conftest*
9089 ac_cv_c_inline=$ac_kw; break
9090else
9091 echo "configure: failed program was:" >&5
9092 cat conftest.$ac_ext >&5
9093fi
9094rm -f conftest*
9095done
9096
9097fi
9098
9099echo "$ac_t""$ac_cv_c_inline" 1>&6
9100case "$ac_cv_c_inline" in
9101 inline | yes) ;;
9102 no) cat >> confdefs.h <<\EOF
9103#define inline
9104EOF
9105 ;;
9106 *) cat >> confdefs.h <<EOF
9107#define inline $ac_cv_c_inline
9108EOF
9109 ;;
9110esac
9111
9112
9113echo $ac_n "checking size of char""... $ac_c" 1>&6
cd6d6d5b 9114echo "configure:9115: checking size of char" >&5
10f2d63a
VZ
9115if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then
9116 echo $ac_n "(cached) $ac_c" 1>&6
9117else
9118 if test "$cross_compiling" = yes; then
9119 ac_cv_sizeof_char=1
9120else
9121 cat > conftest.$ac_ext <<EOF
cd6d6d5b 9122#line 9123 "configure"
10f2d63a
VZ
9123#include "confdefs.h"
9124#include <stdio.h>
9125main()
9126{
9127 FILE *f=fopen("conftestval", "w");
9128 if (!f) exit(1);
9129 fprintf(f, "%d\n", sizeof(char));
9130 exit(0);
9131}
9132EOF
cd6d6d5b 9133if { (eval echo configure:9134: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10f2d63a
VZ
9134then
9135 ac_cv_sizeof_char=`cat conftestval`
9136else
9137 echo "configure: failed program was:" >&5
9138 cat conftest.$ac_ext >&5
9139 rm -fr conftest*
9140 ac_cv_sizeof_char=0
9141fi
9142rm -fr conftest*
9143fi
9144
9145fi
9146echo "$ac_t""$ac_cv_sizeof_char" 1>&6
9147cat >> confdefs.h <<EOF
9148#define SIZEOF_CHAR $ac_cv_sizeof_char
9149EOF
9150
9151
9152echo $ac_n "checking size of short""... $ac_c" 1>&6
cd6d6d5b 9153echo "configure:9154: checking size of short" >&5
10f2d63a
VZ
9154if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
9155 echo $ac_n "(cached) $ac_c" 1>&6
9156else
9157 if test "$cross_compiling" = yes; then
9158 ac_cv_sizeof_short=2
9159else
9160 cat > conftest.$ac_ext <<EOF
cd6d6d5b 9161#line 9162 "configure"
10f2d63a
VZ
9162#include "confdefs.h"
9163#include <stdio.h>
9164main()
9165{
9166 FILE *f=fopen("conftestval", "w");
9167 if (!f) exit(1);
9168 fprintf(f, "%d\n", sizeof(short));
9169 exit(0);
9170}
9171EOF
cd6d6d5b 9172if { (eval echo configure:9173: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10f2d63a
VZ
9173then
9174 ac_cv_sizeof_short=`cat conftestval`
9175else
9176 echo "configure: failed program was:" >&5
9177 cat conftest.$ac_ext >&5
9178 rm -fr conftest*
9179 ac_cv_sizeof_short=0
9180fi
9181rm -fr conftest*
9182fi
9183
9184fi
9185echo "$ac_t""$ac_cv_sizeof_short" 1>&6
9186cat >> confdefs.h <<EOF
9187#define SIZEOF_SHORT $ac_cv_sizeof_short
9188EOF
9189
9190
9191echo $ac_n "checking size of int *""... $ac_c" 1>&6
cd6d6d5b 9192echo "configure:9193: checking size of int *" >&5
10f2d63a
VZ
9193if eval "test \"`echo '$''{'ac_cv_sizeof_int_p'+set}'`\" = set"; then
9194 echo $ac_n "(cached) $ac_c" 1>&6
9195else
9196 if test "$cross_compiling" = yes; then
9197 ac_cv_sizeof_int_p=4
9198else
9199 cat > conftest.$ac_ext <<EOF
cd6d6d5b 9200#line 9201 "configure"
10f2d63a
VZ
9201#include "confdefs.h"
9202#include <stdio.h>
9203main()
9204{
9205 FILE *f=fopen("conftestval", "w");
9206 if (!f) exit(1);
9207 fprintf(f, "%d\n", sizeof(int *));
9208 exit(0);
9209}
9210EOF
cd6d6d5b 9211if { (eval echo configure:9212: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10f2d63a
VZ
9212then
9213 ac_cv_sizeof_int_p=`cat conftestval`
9214else
9215 echo "configure: failed program was:" >&5
9216 cat conftest.$ac_ext >&5
9217 rm -fr conftest*
9218 ac_cv_sizeof_int_p=0
9219fi
9220rm -fr conftest*
9221fi
9222
9223fi
9224echo "$ac_t""$ac_cv_sizeof_int_p" 1>&6
9225cat >> confdefs.h <<EOF
9226#define SIZEOF_INT_P $ac_cv_sizeof_int_p
9227EOF
9228
9229
9230echo $ac_n "checking size of int""... $ac_c" 1>&6
cd6d6d5b 9231echo "configure:9232: checking size of int" >&5
10f2d63a
VZ
9232if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
9233 echo $ac_n "(cached) $ac_c" 1>&6
9234else
9235 if test "$cross_compiling" = yes; then
9236 ac_cv_sizeof_int=4
9237else
9238 cat > conftest.$ac_ext <<EOF
cd6d6d5b 9239#line 9240 "configure"
10f2d63a
VZ
9240#include "confdefs.h"
9241#include <stdio.h>
9242main()
9243{
9244 FILE *f=fopen("conftestval", "w");
9245 if (!f) exit(1);
9246 fprintf(f, "%d\n", sizeof(int));
9247 exit(0);
9248}
9249EOF
cd6d6d5b 9250if { (eval echo configure:9251: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10f2d63a
VZ
9251then
9252 ac_cv_sizeof_int=`cat conftestval`
9253else
9254 echo "configure: failed program was:" >&5
9255 cat conftest.$ac_ext >&5
9256 rm -fr conftest*
9257 ac_cv_sizeof_int=0
9258fi
9259rm -fr conftest*
9260fi
9261
9262fi
9263echo "$ac_t""$ac_cv_sizeof_int" 1>&6
9264cat >> confdefs.h <<EOF
9265#define SIZEOF_INT $ac_cv_sizeof_int
9266EOF
9267
9268
9269echo $ac_n "checking size of long""... $ac_c" 1>&6
cd6d6d5b 9270echo "configure:9271: checking size of long" >&5
10f2d63a
VZ
9271if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
9272 echo $ac_n "(cached) $ac_c" 1>&6
9273else
9274 if test "$cross_compiling" = yes; then
9275 ac_cv_sizeof_long=4
9276else
9277 cat > conftest.$ac_ext <<EOF
cd6d6d5b 9278#line 9279 "configure"
10f2d63a
VZ
9279#include "confdefs.h"
9280#include <stdio.h>
9281main()
9282{
9283 FILE *f=fopen("conftestval", "w");
9284 if (!f) exit(1);
9285 fprintf(f, "%d\n", sizeof(long));
9286 exit(0);
9287}
9288EOF
cd6d6d5b 9289if { (eval echo configure:9290: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10f2d63a
VZ
9290then
9291 ac_cv_sizeof_long=`cat conftestval`
9292else
9293 echo "configure: failed program was:" >&5
9294 cat conftest.$ac_ext >&5
9295 rm -fr conftest*
9296 ac_cv_sizeof_long=0
9297fi
9298rm -fr conftest*
9299fi
9300
9301fi
9302echo "$ac_t""$ac_cv_sizeof_long" 1>&6
9303cat >> confdefs.h <<EOF
9304#define SIZEOF_LONG $ac_cv_sizeof_long
9305EOF
9306
9307
9308echo $ac_n "checking size of long long""... $ac_c" 1>&6
cd6d6d5b 9309echo "configure:9310: checking size of long long" >&5
10f2d63a
VZ
9310if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
9311 echo $ac_n "(cached) $ac_c" 1>&6
9312else
9313 if test "$cross_compiling" = yes; then
9314 ac_cv_sizeof_long_long=0
9315else
9316 cat > conftest.$ac_ext <<EOF
cd6d6d5b 9317#line 9318 "configure"
10f2d63a
VZ
9318#include "confdefs.h"
9319#include <stdio.h>
9320main()
9321{
9322 FILE *f=fopen("conftestval", "w");
9323 if (!f) exit(1);
9324 fprintf(f, "%d\n", sizeof(long long));
9325 exit(0);
9326}
9327EOF
cd6d6d5b 9328if { (eval echo configure:9329: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10f2d63a
VZ
9329then
9330 ac_cv_sizeof_long_long=`cat conftestval`
9331else
9332 echo "configure: failed program was:" >&5
9333 cat conftest.$ac_ext >&5
9334 rm -fr conftest*
9335 ac_cv_sizeof_long_long=0
9336fi
9337rm -fr conftest*
9338fi
9339
9340fi
9341echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
9342cat >> confdefs.h <<EOF
9343#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
9344EOF
9345
9346
9347
9348echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
cd6d6d5b 9349echo "configure:9350: checking whether byte ordering is bigendian" >&5
10f2d63a
VZ
9350if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
9351 echo $ac_n "(cached) $ac_c" 1>&6
9352else
9353 ac_cv_c_bigendian=unknown
9354# See if sys/param.h defines the BYTE_ORDER macro.
9355cat > conftest.$ac_ext <<EOF
cd6d6d5b 9356#line 9357 "configure"
10f2d63a
VZ
9357#include "confdefs.h"
9358#include <sys/types.h>
9359#include <sys/param.h>
9360int main() {
9361
9362#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
9363 bogus endian macros
9364#endif
9365; return 0; }
9366EOF
cd6d6d5b 9367if { (eval echo configure:9368: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10f2d63a
VZ
9368 rm -rf conftest*
9369 # It does; now see whether it defined to BIG_ENDIAN or not.
9370cat > conftest.$ac_ext <<EOF
cd6d6d5b 9371#line 9372 "configure"
10f2d63a
VZ
9372#include "confdefs.h"
9373#include <sys/types.h>
9374#include <sys/param.h>
9375int main() {
9376
9377#if BYTE_ORDER != BIG_ENDIAN
9378 not big endian
9379#endif
9380; return 0; }
9381EOF
cd6d6d5b 9382if { (eval echo configure:9383: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10f2d63a
VZ
9383 rm -rf conftest*
9384 ac_cv_c_bigendian=yes
9385else
9386 echo "configure: failed program was:" >&5
9387 cat conftest.$ac_ext >&5
9388 rm -rf conftest*
9389 ac_cv_c_bigendian=no
9390fi
9391rm -f conftest*
9392else
9393 echo "configure: failed program was:" >&5
9394 cat conftest.$ac_ext >&5
9395fi
9396rm -f conftest*
9397if test $ac_cv_c_bigendian = unknown; then
9398if test "$cross_compiling" = yes; then
9399 ac_cv_c_bigendian=unknown
9400else
9401 cat > conftest.$ac_ext <<EOF
cd6d6d5b 9402#line 9403 "configure"
10f2d63a
VZ
9403#include "confdefs.h"
9404main () {
9405 /* Are we little or big endian? From Harbison&Steele. */
9406 union
9407 {
9408 long l;
9409 char c[sizeof (long)];
9410 } u;
9411 u.l = 1;
9412 exit (u.c[sizeof (long) - 1] == 1);
9413}
9414EOF
cd6d6d5b 9415if { (eval echo configure:9416: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10f2d63a
VZ
9416then
9417 ac_cv_c_bigendian=no
9418else
9419 echo "configure: failed program was:" >&5
9420 cat conftest.$ac_ext >&5
9421 rm -fr conftest*
9422 ac_cv_c_bigendian=yes
9423fi
9424rm -fr conftest*
9425fi
9426
9427fi
9428fi
9429
9430echo "$ac_t""$ac_cv_c_bigendian" 1>&6
9431if test $ac_cv_c_bigendian = unknown; then
9432 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
9433fi
9434if test $ac_cv_c_bigendian = yes; then
9435 cat >> confdefs.h <<\EOF
9436#define WORDS_BIGENDIAN 1
9437EOF
9438
9439fi
9440
9441
9442
9443 if test "$cross_compiling" = "yes"; then
9444 cat >> confdefs.h <<\EOF
9445#define wxUSE_IOSTREAMH 1
9446EOF
9447
9448 else
9449
9450 ac_ext=C
9451# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9452ac_cpp='$CXXCPP $CPPFLAGS'
9453ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9454ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9455cross_compiling=$ac_cv_prog_cxx_cross
9456
9457
9458 for ac_hdr in iostream
9459do
9460ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9461echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
cd6d6d5b 9462echo "configure:9463: checking for $ac_hdr" >&5
10f2d63a
VZ
9463if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9464 echo $ac_n "(cached) $ac_c" 1>&6
9465else
9466 cat > conftest.$ac_ext <<EOF
cd6d6d5b 9467#line 9468 "configure"
10f2d63a
VZ
9468#include "confdefs.h"
9469#include <$ac_hdr>
9470EOF
9471ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
cd6d6d5b 9472{ (eval echo configure:9473: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
9473ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9474if test -z "$ac_err"; then
9475 rm -rf conftest*
9476 eval "ac_cv_header_$ac_safe=yes"
9477else
9478 echo "$ac_err" >&5
9479 echo "configure: failed program was:" >&5
9480 cat conftest.$ac_ext >&5
9481 rm -rf conftest*
9482 eval "ac_cv_header_$ac_safe=no"
9483fi
9484rm -f conftest*
9485fi
9486if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9487 echo "$ac_t""yes" 1>&6
9488 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9489 cat >> confdefs.h <<EOF
9490#define $ac_tr_hdr 1
9491EOF
9492
9493else
9494 echo "$ac_t""no" 1>&6
9495fi
9496done
9497
9498
9499 if test "x$HAVE_IOSTREAM" = x ; then
9500 cat >> confdefs.h <<\EOF
9501#define wxUSE_IOSTREAMH 1
9502EOF
9503
9504 else
9505 :
9506 fi
9507
9508 ac_ext=c
9509# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9510ac_cpp='$CPP $CPPFLAGS'
9511ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9512ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9513cross_compiling=$ac_cv_prog_cc_cross
9514
9515 fi
9516
9517
9518
9519 echo $ac_n "checking if C++ compiler supports bool""... $ac_c" 1>&6
cd6d6d5b 9520echo "configure:9521: checking if C++ compiler supports bool" >&5
10f2d63a
VZ
9521if eval "test \"`echo '$''{'wx_cv_cpp_bool'+set}'`\" = set"; then
9522 echo $ac_n "(cached) $ac_c" 1>&6
9523else
9524
9525
9526 ac_ext=C
9527# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9528ac_cpp='$CXXCPP $CPPFLAGS'
9529ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9530ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9531cross_compiling=$ac_cv_prog_cxx_cross
9532
9533
9534 cat > conftest.$ac_ext <<EOF
cd6d6d5b 9535#line 9536 "configure"
10f2d63a
VZ
9536#include "confdefs.h"
9537
9538
9539int main() {
9540
9541 bool b = true;
9542
9543 return 0;
9544
9545; return 0; }
9546EOF
cd6d6d5b 9547if { (eval echo configure:9548: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10f2d63a
VZ
9548 rm -rf conftest*
9549
9550 cat >> confdefs.h <<\EOF
9551#define HAVE_BOOL 1
9552EOF
9553
9554 wx_cv_cpp_bool=yes
9555
9556else
9557 echo "configure: failed program was:" >&5
9558 cat conftest.$ac_ext >&5
9559 rm -rf conftest*
9560
9561 wx_cv_cpp_bool=no
9562
9563
9564fi
9565rm -f conftest*
9566
9567 ac_ext=c
9568# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9569ac_cpp='$CPP $CPPFLAGS'
9570ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9571ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9572cross_compiling=$ac_cv_prog_cc_cross
9573
9574
9575fi
9576
9577echo "$ac_t""$wx_cv_cpp_bool" 1>&6
9578
9579 if test "$wx_cv_cpp_bool" = "yes"; then
9580 cat >> confdefs.h <<\EOF
9581#define HAVE_BOOL 1
9582EOF
9583
9584 fi
9585
9586
9587
10f2d63a 9588echo $ac_n "checking if you need GNU extensions""... $ac_c" 1>&6
cd6d6d5b 9589echo "configure:9590: checking if you need GNU extensions" >&5
10f2d63a
VZ
9590if eval "test \"`echo '$''{'wx_cv_gnu_extensions'+set}'`\" = set"; then
9591 echo $ac_n "(cached) $ac_c" 1>&6
9592else
9593
9594 cat > conftest.$ac_ext <<EOF
cd6d6d5b 9595#line 9596 "configure"
10f2d63a
VZ
9596#include "confdefs.h"
9597#include <features.h>
9598int main() {
9599
9600
9601#ifndef __GNU_LIBRARY__
9602 Compile error wanted
9603#endif
9604
9605
9606; return 0; }
9607EOF
cd6d6d5b 9608if { (eval echo configure:9609: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10f2d63a
VZ
9609 rm -rf conftest*
9610 wx_cv_gnu_extensions=yes
9611else
9612 echo "configure: failed program was:" >&5
9613 cat conftest.$ac_ext >&5
9614 rm -rf conftest*
9615 wx_cv_gnu_extensions=no
9616fi
9617rm -f conftest*
9618
9619fi
9620
9621
9622echo "$ac_t""$wx_cv_gnu_extensions" 1>&6
9623if test "$wx_cv_gnu_extensions" = "yes"; then
9624 cat >> confdefs.h <<EOF
9625#define _GNU_SOURCE 1
9626EOF
9627
9628fi
9629
9630
9631
9632echo $ac_n "checking for wcslen in -lc""... $ac_c" 1>&6
cd6d6d5b 9633echo "configure:9634: checking for wcslen in -lc" >&5
10f2d63a
VZ
9634ac_lib_var=`echo c'_'wcslen | sed 'y%./+-%__p_%'`
9635if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9636 echo $ac_n "(cached) $ac_c" 1>&6
9637else
9638 ac_save_LIBS="$LIBS"
9639LIBS="-lc $LIBS"
9640cat > conftest.$ac_ext <<EOF
cd6d6d5b 9641#line 9642 "configure"
10f2d63a
VZ
9642#include "confdefs.h"
9643/* Override any gcc2 internal prototype to avoid an error. */
9644/* We use char because int might match the return type of a gcc2
9645 builtin and then its argument prototype would still apply. */
9646char wcslen();
9647
9648int main() {
9649wcslen()
9650; return 0; }
9651EOF
cd6d6d5b 9652if { (eval echo configure:9653: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
9653 rm -rf conftest*
9654 eval "ac_cv_lib_$ac_lib_var=yes"
9655else
9656 echo "configure: failed program was:" >&5
9657 cat conftest.$ac_ext >&5
9658 rm -rf conftest*
9659 eval "ac_cv_lib_$ac_lib_var=no"
9660fi
9661rm -f conftest*
9662LIBS="$ac_save_LIBS"
9663
9664fi
9665if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9666 echo "$ac_t""yes" 1>&6
9667
9668 cat >> confdefs.h <<\EOF
9669#define HAVE_WCSLEN 1
9670EOF
9671
9672 WCHAR_LINK=""
9673
9674else
9675 echo "$ac_t""no" 1>&6
9676
9677 echo $ac_n "checking for wcslen in -lw""... $ac_c" 1>&6
cd6d6d5b 9678echo "configure:9679: checking for wcslen in -lw" >&5
10f2d63a
VZ
9679ac_lib_var=`echo w'_'wcslen | sed 'y%./+-%__p_%'`
9680if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9681 echo $ac_n "(cached) $ac_c" 1>&6
9682else
9683 ac_save_LIBS="$LIBS"
9684LIBS="-lw $LIBS"
9685cat > conftest.$ac_ext <<EOF
cd6d6d5b 9686#line 9687 "configure"
10f2d63a
VZ
9687#include "confdefs.h"
9688/* Override any gcc2 internal prototype to avoid an error. */
9689/* We use char because int might match the return type of a gcc2
9690 builtin and then its argument prototype would still apply. */
9691char wcslen();
9692
9693int main() {
9694wcslen()
9695; return 0; }
9696EOF
cd6d6d5b 9697if { (eval echo configure:9698: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
9698 rm -rf conftest*
9699 eval "ac_cv_lib_$ac_lib_var=yes"
9700else
9701 echo "configure: failed program was:" >&5
9702 cat conftest.$ac_ext >&5
9703 rm -rf conftest*
9704 eval "ac_cv_lib_$ac_lib_var=no"
9705fi
9706rm -f conftest*
9707LIBS="$ac_save_LIBS"
9708
9709fi
9710if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9711 echo "$ac_t""yes" 1>&6
9712
9713 cat >> confdefs.h <<\EOF
9714#define HAVE_WCSLEN 1
9715EOF
9716
9717 WCHAR_LINK="-lw"
9718
9719else
9720 echo "$ac_t""no" 1>&6
9721fi
9722
9723
9724fi
9725
9726
9727echo $ac_n "checking for vprintf""... $ac_c" 1>&6
cd6d6d5b 9728echo "configure:9729: checking for vprintf" >&5
10f2d63a
VZ
9729if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
9730 echo $ac_n "(cached) $ac_c" 1>&6
9731else
9732 cat > conftest.$ac_ext <<EOF
cd6d6d5b 9733#line 9734 "configure"
10f2d63a
VZ
9734#include "confdefs.h"
9735/* System header to define __stub macros and hopefully few prototypes,
9736 which can conflict with char vprintf(); below. */
9737#include <assert.h>
9738/* Override any gcc2 internal prototype to avoid an error. */
9739/* We use char because int might match the return type of a gcc2
9740 builtin and then its argument prototype would still apply. */
9741char vprintf();
9742
9743int main() {
9744
9745/* The GNU C library defines this for functions which it implements
9746 to always fail with ENOSYS. Some functions are actually named
9747 something starting with __ and the normal name is an alias. */
9748#if defined (__stub_vprintf) || defined (__stub___vprintf)
9749choke me
9750#else
2224580a 9751vprintf();
10f2d63a
VZ
9752#endif
9753
9754; return 0; }
9755EOF
cd6d6d5b 9756if { (eval echo configure:9757: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
9757 rm -rf conftest*
9758 eval "ac_cv_func_vprintf=yes"
9759else
9760 echo "configure: failed program was:" >&5
9761 cat conftest.$ac_ext >&5
9762 rm -rf conftest*
9763 eval "ac_cv_func_vprintf=no"
9764fi
9765rm -f conftest*
9766fi
9767
9768if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
9769 echo "$ac_t""yes" 1>&6
9770 cat >> confdefs.h <<\EOF
9771#define HAVE_VPRINTF 1
9772EOF
9773
9774else
9775 echo "$ac_t""no" 1>&6
9776fi
9777
9778if test "$ac_cv_func_vprintf" != yes; then
9779echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
cd6d6d5b 9780echo "configure:9781: checking for _doprnt" >&5
10f2d63a
VZ
9781if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
9782 echo $ac_n "(cached) $ac_c" 1>&6
9783else
9784 cat > conftest.$ac_ext <<EOF
cd6d6d5b 9785#line 9786 "configure"
10f2d63a
VZ
9786#include "confdefs.h"
9787/* System header to define __stub macros and hopefully few prototypes,
9788 which can conflict with char _doprnt(); below. */
9789#include <assert.h>
9790/* Override any gcc2 internal prototype to avoid an error. */
9791/* We use char because int might match the return type of a gcc2
9792 builtin and then its argument prototype would still apply. */
9793char _doprnt();
9794
9795int main() {
9796
9797/* The GNU C library defines this for functions which it implements
9798 to always fail with ENOSYS. Some functions are actually named
9799 something starting with __ and the normal name is an alias. */
9800#if defined (__stub__doprnt) || defined (__stub____doprnt)
9801choke me
9802#else
2224580a 9803_doprnt();
10f2d63a
VZ
9804#endif
9805
9806; return 0; }
9807EOF
cd6d6d5b 9808if { (eval echo configure:9809: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
9809 rm -rf conftest*
9810 eval "ac_cv_func__doprnt=yes"
9811else
9812 echo "configure: failed program was:" >&5
9813 cat conftest.$ac_ext >&5
9814 rm -rf conftest*
9815 eval "ac_cv_func__doprnt=no"
9816fi
9817rm -f conftest*
9818fi
9819
9820if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
9821 echo "$ac_t""yes" 1>&6
9822 cat >> confdefs.h <<\EOF
9823#define HAVE_DOPRNT 1
9824EOF
9825
9826else
9827 echo "$ac_t""no" 1>&6
9828fi
9829
9830fi
9831
9832
9833for ac_func in vsnprintf
9834do
9835echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
cd6d6d5b 9836echo "configure:9837: checking for $ac_func" >&5
10f2d63a
VZ
9837if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9838 echo $ac_n "(cached) $ac_c" 1>&6
9839else
9840 cat > conftest.$ac_ext <<EOF
cd6d6d5b 9841#line 9842 "configure"
10f2d63a
VZ
9842#include "confdefs.h"
9843/* System header to define __stub macros and hopefully few prototypes,
9844 which can conflict with char $ac_func(); below. */
9845#include <assert.h>
9846/* Override any gcc2 internal prototype to avoid an error. */
9847/* We use char because int might match the return type of a gcc2
9848 builtin and then its argument prototype would still apply. */
9849char $ac_func();
9850
9851int main() {
9852
9853/* The GNU C library defines this for functions which it implements
9854 to always fail with ENOSYS. Some functions are actually named
9855 something starting with __ and the normal name is an alias. */
9856#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9857choke me
9858#else
2224580a 9859$ac_func();
10f2d63a
VZ
9860#endif
9861
9862; return 0; }
9863EOF
cd6d6d5b 9864if { (eval echo configure:9865: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
9865 rm -rf conftest*
9866 eval "ac_cv_func_$ac_func=yes"
9867else
9868 echo "configure: failed program was:" >&5
9869 cat conftest.$ac_ext >&5
9870 rm -rf conftest*
9871 eval "ac_cv_func_$ac_func=no"
9872fi
9873rm -f conftest*
9874fi
9875
9876if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9877 echo "$ac_t""yes" 1>&6
9878 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9879 cat >> confdefs.h <<EOF
9880#define $ac_tr_func 1
9881EOF
9882 cat >> confdefs.h <<\EOF
9883#define HAVE_VSNPRINTF 1
9884EOF
9885
9886else
9887 echo "$ac_t""no" 1>&6
9888echo "configure: warning: unsafe function sprintf will be used instead of snprintf" 1>&2
9889
9890fi
9891done
9892
9893
9894
9895ac_ext=C
9896# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9897ac_cpp='$CXXCPP $CPPFLAGS'
9898ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9899ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9900cross_compiling=$ac_cv_prog_cxx_cross
9901
9902
9903echo $ac_n "checking for vsscanf""... $ac_c" 1>&6
cd6d6d5b 9904echo "configure:9905: checking for vsscanf" >&5
10f2d63a
VZ
9905if eval "test \"`echo '$''{'wx_cv_func_vsscanf'+set}'`\" = set"; then
9906 echo $ac_n "(cached) $ac_c" 1>&6
9907else
9908
9909 if test "$cross_compiling" = yes; then
9910 wx_cv_func_vsscanf=no
9911
9912else
9913 cat > conftest.$ac_ext <<EOF
cd6d6d5b 9914#line 9915 "configure"
10f2d63a
VZ
9915#include "confdefs.h"
9916#ifdef __cplusplus
9917extern "C" void exit(int);
9918#endif
9919
9920 #include <stdio.h>
9921 #include <stdarg.h>
9922
9923 int try_vsscanf(const char *format, ...)
9924 {
9925 va_list ap;
9926 va_start(ap, format);
9927
9928 vsscanf("17", format, ap);
9929
9930 va_end(ap);
9931 }
9932
9933 int main()
9934 {
9935 int i;
9936 try_vsscanf("%d", &i);
9937 return i == 17 ? 0 : 1;
9938 }
9939
9940EOF
cd6d6d5b 9941if { (eval echo configure:9942: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10f2d63a
VZ
9942then
9943
9944 cat >> confdefs.h <<\EOF
9945#define HAVE_VSSCANF 1
9946EOF
9947
9948 wx_cv_func_vsscanf=yes
9949
9950else
9951 echo "configure: failed program was:" >&5
9952 cat conftest.$ac_ext >&5
9953 rm -fr conftest*
9954 wx_cv_func_vsscanf=no
9955fi
9956rm -fr conftest*
9957fi
9958
9959
9960fi
9961
9962echo "$ac_t""$wx_cv_func_vsscanf" 1>&6
9963
9964ac_ext=c
9965# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9966ac_cpp='$CPP $CPPFLAGS'
9967ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9968ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9969cross_compiling=$ac_cv_prog_cc_cross
9970
9971
b089607b 9972if test "$TOOLKIT" != "MSW"; then
10f2d63a
VZ
9973
9974for ac_func in vfork
9975do
9976echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
cd6d6d5b 9977echo "configure:9978: checking for $ac_func" >&5
10f2d63a
VZ
9978if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9979 echo $ac_n "(cached) $ac_c" 1>&6
9980else
9981 cat > conftest.$ac_ext <<EOF
cd6d6d5b 9982#line 9983 "configure"
10f2d63a
VZ
9983#include "confdefs.h"
9984/* System header to define __stub macros and hopefully few prototypes,
9985 which can conflict with char $ac_func(); below. */
9986#include <assert.h>
9987/* Override any gcc2 internal prototype to avoid an error. */
9988/* We use char because int might match the return type of a gcc2
9989 builtin and then its argument prototype would still apply. */
9990char $ac_func();
9991
9992int main() {
9993
9994/* The GNU C library defines this for functions which it implements
9995 to always fail with ENOSYS. Some functions are actually named
9996 something starting with __ and the normal name is an alias. */
9997#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9998choke me
9999#else
2224580a 10000$ac_func();
10f2d63a
VZ
10001#endif
10002
10003; return 0; }
10004EOF
cd6d6d5b 10005if { (eval echo configure:10006: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
270a909e
VZ
10006 rm -rf conftest*
10007 eval "ac_cv_func_$ac_func=yes"
10008else
10009 echo "configure: failed program was:" >&5
10010 cat conftest.$ac_ext >&5
10011 rm -rf conftest*
10012 eval "ac_cv_func_$ac_func=no"
10013fi
10014rm -f conftest*
10015fi
10016
10017if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10018 echo "$ac_t""yes" 1>&6
10019 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10020 cat >> confdefs.h <<EOF
10021#define $ac_tr_func 1
10022EOF
10023
10024else
10025 echo "$ac_t""no" 1>&6
10026fi
10027done
10028
10029
10030for ac_func in timegm
10031do
10032echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
cd6d6d5b 10033echo "configure:10034: checking for $ac_func" >&5
270a909e
VZ
10034if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10035 echo $ac_n "(cached) $ac_c" 1>&6
10036else
10037 cat > conftest.$ac_ext <<EOF
cd6d6d5b 10038#line 10039 "configure"
270a909e
VZ
10039#include "confdefs.h"
10040/* System header to define __stub macros and hopefully few prototypes,
10041 which can conflict with char $ac_func(); below. */
10042#include <assert.h>
10043/* Override any gcc2 internal prototype to avoid an error. */
10044/* We use char because int might match the return type of a gcc2
10045 builtin and then its argument prototype would still apply. */
10046char $ac_func();
10047
10048int main() {
10049
10050/* The GNU C library defines this for functions which it implements
10051 to always fail with ENOSYS. Some functions are actually named
10052 something starting with __ and the normal name is an alias. */
10053#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10054choke me
10055#else
2224580a 10056$ac_func();
270a909e
VZ
10057#endif
10058
10059; return 0; }
10060EOF
cd6d6d5b 10061if { (eval echo configure:10062: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
10062 rm -rf conftest*
10063 eval "ac_cv_func_$ac_func=yes"
10064else
10065 echo "configure: failed program was:" >&5
10066 cat conftest.$ac_ext >&5
10067 rm -rf conftest*
10068 eval "ac_cv_func_$ac_func=no"
10069fi
10070rm -f conftest*
10071fi
10072
10073if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10074 echo "$ac_t""yes" 1>&6
10075 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10076 cat >> confdefs.h <<EOF
10077#define $ac_tr_func 1
10078EOF
10079
10080else
10081 echo "$ac_t""no" 1>&6
10082fi
10083done
10084
10085
b12915c1
VZ
10086HAVE_SOME_SLEEP_FUNC=0
10087if test "$USE_BEOS" = 1; then
10088 cat >> confdefs.h <<\EOF
10089#define HAVE_SLEEP 1
10090EOF
10091
10092 HAVE_SOME_SLEEP_FUNC=1
10093fi
10094
10095if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
10096 POSIX4_LINK=
10097 for ac_func in nanosleep
10f2d63a
VZ
10098do
10099echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
cd6d6d5b 10100echo "configure:10101: checking for $ac_func" >&5
10f2d63a
VZ
10101if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10102 echo $ac_n "(cached) $ac_c" 1>&6
10103else
10104 cat > conftest.$ac_ext <<EOF
cd6d6d5b 10105#line 10106 "configure"
10f2d63a
VZ
10106#include "confdefs.h"
10107/* System header to define __stub macros and hopefully few prototypes,
10108 which can conflict with char $ac_func(); below. */
10109#include <assert.h>
10110/* Override any gcc2 internal prototype to avoid an error. */
10111/* We use char because int might match the return type of a gcc2
10112 builtin and then its argument prototype would still apply. */
10113char $ac_func();
10114
10115int main() {
10116
10117/* The GNU C library defines this for functions which it implements
10118 to always fail with ENOSYS. Some functions are actually named
10119 something starting with __ and the normal name is an alias. */
10120#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10121choke me
10122#else
2224580a 10123$ac_func();
10f2d63a
VZ
10124#endif
10125
10126; return 0; }
10127EOF
cd6d6d5b 10128if { (eval echo configure:10129: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
10129 rm -rf conftest*
10130 eval "ac_cv_func_$ac_func=yes"
10131else
10132 echo "configure: failed program was:" >&5
10133 cat conftest.$ac_ext >&5
10134 rm -rf conftest*
10135 eval "ac_cv_func_$ac_func=no"
10136fi
10137rm -f conftest*
10138fi
10139
10140if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10141 echo "$ac_t""yes" 1>&6
10142 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10143 cat >> confdefs.h <<EOF
10144#define $ac_tr_func 1
10145EOF
10146 cat >> confdefs.h <<\EOF
10147#define HAVE_NANOSLEEP 1
10148EOF
10149
10150else
10151 echo "$ac_t""no" 1>&6
10152echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6
cd6d6d5b 10153echo "configure:10154: checking for nanosleep in -lposix4" >&5
10f2d63a
VZ
10154ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'`
10155if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10156 echo $ac_n "(cached) $ac_c" 1>&6
10157else
10158 ac_save_LIBS="$LIBS"
10159LIBS="-lposix4 $LIBS"
10160cat > conftest.$ac_ext <<EOF
cd6d6d5b 10161#line 10162 "configure"
10f2d63a
VZ
10162#include "confdefs.h"
10163/* Override any gcc2 internal prototype to avoid an error. */
10164/* We use char because int might match the return type of a gcc2
10165 builtin and then its argument prototype would still apply. */
10166char nanosleep();
10167
10168int main() {
10169nanosleep()
10170; return 0; }
10171EOF
cd6d6d5b 10172if { (eval echo configure:10173: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
10173 rm -rf conftest*
10174 eval "ac_cv_lib_$ac_lib_var=yes"
10175else
10176 echo "configure: failed program was:" >&5
10177 cat conftest.$ac_ext >&5
10178 rm -rf conftest*
10179 eval "ac_cv_lib_$ac_lib_var=no"
10180fi
10181rm -f conftest*
10182LIBS="$ac_save_LIBS"
10183
10184fi
10185if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10186 echo "$ac_t""yes" 1>&6
10187
b12915c1 10188 cat >> confdefs.h <<\EOF
10f2d63a
VZ
10189#define HAVE_NANOSLEEP 1
10190EOF
10191
b12915c1
VZ
10192 POSIX4_LINK="-lposix4"
10193
10f2d63a
VZ
10194else
10195 echo "$ac_t""no" 1>&6
10196
b12915c1 10197 for ac_func in usleep
10f2d63a
VZ
10198do
10199echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
cd6d6d5b 10200echo "configure:10201: checking for $ac_func" >&5
10f2d63a
VZ
10201if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10202 echo $ac_n "(cached) $ac_c" 1>&6
10203else
10204 cat > conftest.$ac_ext <<EOF
cd6d6d5b 10205#line 10206 "configure"
10f2d63a
VZ
10206#include "confdefs.h"
10207/* System header to define __stub macros and hopefully few prototypes,
10208 which can conflict with char $ac_func(); below. */
10209#include <assert.h>
10210/* Override any gcc2 internal prototype to avoid an error. */
10211/* We use char because int might match the return type of a gcc2
10212 builtin and then its argument prototype would still apply. */
10213char $ac_func();
10214
10215int main() {
10216
10217/* The GNU C library defines this for functions which it implements
10218 to always fail with ENOSYS. Some functions are actually named
10219 something starting with __ and the normal name is an alias. */
10220#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10221choke me
10222#else
2224580a 10223$ac_func();
10f2d63a
VZ
10224#endif
10225
10226; return 0; }
10227EOF
cd6d6d5b 10228if { (eval echo configure:10229: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
10229 rm -rf conftest*
10230 eval "ac_cv_func_$ac_func=yes"
10231else
10232 echo "configure: failed program was:" >&5
10233 cat conftest.$ac_ext >&5
10234 rm -rf conftest*
10235 eval "ac_cv_func_$ac_func=no"
10236fi
10237rm -f conftest*
10238fi
10239
10240if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10241 echo "$ac_t""yes" 1>&6
10242 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10243 cat >> confdefs.h <<EOF
10244#define $ac_tr_func 1
10245EOF
b12915c1 10246
10f2d63a
VZ
10247else
10248 echo "$ac_t""no" 1>&6
10f2d63a
VZ
10249fi
10250done
10251
b12915c1
VZ
10252 echo "configure: warning: wxSleep() function will not work" 1>&2
10253
10254
10f2d63a
VZ
10255fi
10256
b12915c1
VZ
10257
10258
10f2d63a
VZ
10259fi
10260done
10261
b12915c1 10262fi
10f2d63a
VZ
10263
10264for ac_func in uname gethostname
10265do
10266echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
cd6d6d5b 10267echo "configure:10268: checking for $ac_func" >&5
10f2d63a
VZ
10268if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10269 echo $ac_n "(cached) $ac_c" 1>&6
10270else
10271 cat > conftest.$ac_ext <<EOF
cd6d6d5b 10272#line 10273 "configure"
10f2d63a
VZ
10273#include "confdefs.h"
10274/* System header to define __stub macros and hopefully few prototypes,
10275 which can conflict with char $ac_func(); below. */
10276#include <assert.h>
10277/* Override any gcc2 internal prototype to avoid an error. */
10278/* We use char because int might match the return type of a gcc2
10279 builtin and then its argument prototype would still apply. */
10280char $ac_func();
10281
10282int main() {
10283
10284/* The GNU C library defines this for functions which it implements
10285 to always fail with ENOSYS. Some functions are actually named
10286 something starting with __ and the normal name is an alias. */
10287#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10288choke me
10289#else
2224580a 10290$ac_func();
10f2d63a
VZ
10291#endif
10292
10293; return 0; }
10294EOF
cd6d6d5b 10295if { (eval echo configure:10296: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
10296 rm -rf conftest*
10297 eval "ac_cv_func_$ac_func=yes"
10298else
10299 echo "configure: failed program was:" >&5
10300 cat conftest.$ac_ext >&5
10301 rm -rf conftest*
10302 eval "ac_cv_func_$ac_func=no"
10303fi
10304rm -f conftest*
10305fi
10306
10307if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10308 echo "$ac_t""yes" 1>&6
10309 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10310 cat >> confdefs.h <<EOF
10311#define $ac_tr_func 1
10312EOF
10313 break
10314else
10315 echo "$ac_t""no" 1>&6
10316fi
10317done
10318
10319
10320for ac_func in strtok_r
10321do
10322echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
cd6d6d5b 10323echo "configure:10324: checking for $ac_func" >&5
10f2d63a
VZ
10324if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10325 echo $ac_n "(cached) $ac_c" 1>&6
10326else
10327 cat > conftest.$ac_ext <<EOF
cd6d6d5b 10328#line 10329 "configure"
10f2d63a
VZ
10329#include "confdefs.h"
10330/* System header to define __stub macros and hopefully few prototypes,
10331 which can conflict with char $ac_func(); below. */
10332#include <assert.h>
10333/* Override any gcc2 internal prototype to avoid an error. */
10334/* We use char because int might match the return type of a gcc2
10335 builtin and then its argument prototype would still apply. */
10336char $ac_func();
10337
10338int main() {
10339
10340/* The GNU C library defines this for functions which it implements
10341 to always fail with ENOSYS. Some functions are actually named
10342 something starting with __ and the normal name is an alias. */
10343#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10344choke me
10345#else
2224580a 10346$ac_func();
10f2d63a
VZ
10347#endif
10348
10349; return 0; }
10350EOF
cd6d6d5b 10351if { (eval echo configure:10352: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
10352 rm -rf conftest*
10353 eval "ac_cv_func_$ac_func=yes"
10354else
10355 echo "configure: failed program was:" >&5
10356 cat conftest.$ac_ext >&5
10357 rm -rf conftest*
10358 eval "ac_cv_func_$ac_func=no"
10359fi
10360rm -f conftest*
10361fi
10362
10363if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10364 echo "$ac_t""yes" 1>&6
10365 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10366 cat >> confdefs.h <<EOF
10367#define $ac_tr_func 1
10368EOF
10369
10370else
10371 echo "$ac_t""no" 1>&6
10372fi
10373done
10374
10375
c63c7106 10376INET_LINK=
10f2d63a
VZ
10377for ac_func in inet_addr
10378do
10379echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
cd6d6d5b 10380echo "configure:10381: checking for $ac_func" >&5
10f2d63a
VZ
10381if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10382 echo $ac_n "(cached) $ac_c" 1>&6
10383else
10384 cat > conftest.$ac_ext <<EOF
cd6d6d5b 10385#line 10386 "configure"
10f2d63a
VZ
10386#include "confdefs.h"
10387/* System header to define __stub macros and hopefully few prototypes,
10388 which can conflict with char $ac_func(); below. */
10389#include <assert.h>
10390/* Override any gcc2 internal prototype to avoid an error. */
10391/* We use char because int might match the return type of a gcc2
10392 builtin and then its argument prototype would still apply. */
10393char $ac_func();
10394
10395int main() {
10396
10397/* The GNU C library defines this for functions which it implements
10398 to always fail with ENOSYS. Some functions are actually named
10399 something starting with __ and the normal name is an alias. */
10400#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10401choke me
10402#else
2224580a 10403$ac_func();
10f2d63a
VZ
10404#endif
10405
10406; return 0; }
10407EOF
cd6d6d5b 10408if { (eval echo configure:10409: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
10409 rm -rf conftest*
10410 eval "ac_cv_func_$ac_func=yes"
10411else
10412 echo "configure: failed program was:" >&5
10413 cat conftest.$ac_ext >&5
10414 rm -rf conftest*
10415 eval "ac_cv_func_$ac_func=no"
10416fi
10417rm -f conftest*
10418fi
10419
10420if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10421 echo "$ac_t""yes" 1>&6
10422 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10423 cat >> confdefs.h <<EOF
10424#define $ac_tr_func 1
10425EOF
c63c7106
VZ
10426 cat >> confdefs.h <<\EOF
10427#define HAVE_INET_ADDR 1
10428EOF
10429
10f2d63a
VZ
10430else
10431 echo "$ac_t""no" 1>&6
c63c7106 10432echo $ac_n "checking for inet_addr in -lnsl""... $ac_c" 1>&6
cd6d6d5b 10433echo "configure:10434: checking for inet_addr in -lnsl" >&5
c63c7106
VZ
10434ac_lib_var=`echo nsl'_'inet_addr | sed 'y%./+-%__p_%'`
10435if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10436 echo $ac_n "(cached) $ac_c" 1>&6
10437else
10438 ac_save_LIBS="$LIBS"
10439LIBS="-lnsl $LIBS"
10440cat > conftest.$ac_ext <<EOF
cd6d6d5b 10441#line 10442 "configure"
c63c7106
VZ
10442#include "confdefs.h"
10443/* Override any gcc2 internal prototype to avoid an error. */
10444/* We use char because int might match the return type of a gcc2
10445 builtin and then its argument prototype would still apply. */
10446char inet_addr();
10447
10448int main() {
10449inet_addr()
10450; return 0; }
10451EOF
cd6d6d5b 10452if { (eval echo configure:10453: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
c63c7106
VZ
10453 rm -rf conftest*
10454 eval "ac_cv_lib_$ac_lib_var=yes"
10455else
10456 echo "configure: failed program was:" >&5
10457 cat conftest.$ac_ext >&5
10458 rm -rf conftest*
10459 eval "ac_cv_lib_$ac_lib_var=no"
10460fi
10461rm -f conftest*
10462LIBS="$ac_save_LIBS"
10463
10464fi
10465if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10466 echo "$ac_t""yes" 1>&6
10467 INET_LINK="nsl"
10468else
10469 echo "$ac_t""no" 1>&6
10470echo $ac_n "checking for inet_addr in -lresolv""... $ac_c" 1>&6
cd6d6d5b 10471echo "configure:10472: checking for inet_addr in -lresolv" >&5
c63c7106
VZ
10472ac_lib_var=`echo resolv'_'inet_addr | sed 'y%./+-%__p_%'`
10473if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10474 echo $ac_n "(cached) $ac_c" 1>&6
10475else
10476 ac_save_LIBS="$LIBS"
10477LIBS="-lresolv $LIBS"
10478cat > conftest.$ac_ext <<EOF
cd6d6d5b 10479#line 10480 "configure"
c63c7106
VZ
10480#include "confdefs.h"
10481/* Override any gcc2 internal prototype to avoid an error. */
10482/* We use char because int might match the return type of a gcc2
10483 builtin and then its argument prototype would still apply. */
10484char inet_addr();
10485
10486int main() {
10487inet_addr()
10488; return 0; }
10489EOF
cd6d6d5b 10490if { (eval echo configure:10491: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
c63c7106
VZ
10491 rm -rf conftest*
10492 eval "ac_cv_lib_$ac_lib_var=yes"
10493else
10494 echo "configure: failed program was:" >&5
10495 cat conftest.$ac_ext >&5
10496 rm -rf conftest*
10497 eval "ac_cv_lib_$ac_lib_var=no"
10498fi
10499rm -f conftest*
10500LIBS="$ac_save_LIBS"
10501
10502fi
10503if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10504 echo "$ac_t""yes" 1>&6
10505 INET_LINK="resolv"
10506
10507else
10508 echo "$ac_t""no" 1>&6
10509fi
10510
10511
10512fi
10513
10514
10515
10f2d63a
VZ
10516fi
10517done
10518
c63c7106 10519
10f2d63a
VZ
10520for ac_func in inet_aton
10521do
10522echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
cd6d6d5b 10523echo "configure:10524: checking for $ac_func" >&5
10f2d63a
VZ
10524if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10525 echo $ac_n "(cached) $ac_c" 1>&6
10526else
10527 cat > conftest.$ac_ext <<EOF
cd6d6d5b 10528#line 10529 "configure"
10f2d63a
VZ
10529#include "confdefs.h"
10530/* System header to define __stub macros and hopefully few prototypes,
10531 which can conflict with char $ac_func(); below. */
10532#include <assert.h>
10533/* Override any gcc2 internal prototype to avoid an error. */
10534/* We use char because int might match the return type of a gcc2
10535 builtin and then its argument prototype would still apply. */
10536char $ac_func();
10537
10538int main() {
10539
10540/* The GNU C library defines this for functions which it implements
10541 to always fail with ENOSYS. Some functions are actually named
10542 something starting with __ and the normal name is an alias. */
10543#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10544choke me
10545#else
2224580a 10546$ac_func();
10f2d63a
VZ
10547#endif
10548
10549; return 0; }
10550EOF
cd6d6d5b 10551if { (eval echo configure:10552: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
10552 rm -rf conftest*
10553 eval "ac_cv_func_$ac_func=yes"
10554else
10555 echo "configure: failed program was:" >&5
10556 cat conftest.$ac_ext >&5
10557 rm -rf conftest*
10558 eval "ac_cv_func_$ac_func=no"
10559fi
10560rm -f conftest*
10561fi
10562
10563if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10564 echo "$ac_t""yes" 1>&6
10565 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10566 cat >> confdefs.h <<EOF
10567#define $ac_tr_func 1
10568EOF
c63c7106
VZ
10569 cat >> confdefs.h <<\EOF
10570#define HAVE_INET_ATON 1
10571EOF
10572
10f2d63a
VZ
10573else
10574 echo "$ac_t""no" 1>&6
c63c7106 10575 echo $ac_n "checking for inet_aton in -l$INET_LINK""... $ac_c" 1>&6
cd6d6d5b 10576echo "configure:10577: checking for inet_aton in -l$INET_LINK" >&5
c63c7106 10577ac_lib_var=`echo $INET_LINK'_'inet_aton | sed 'y%./+-%__p_%'`
10f2d63a
VZ
10578if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10579 echo $ac_n "(cached) $ac_c" 1>&6
10580else
10581 ac_save_LIBS="$LIBS"
c63c7106 10582LIBS="-l$INET_LINK $LIBS"
10f2d63a 10583cat > conftest.$ac_ext <<EOF
cd6d6d5b 10584#line 10585 "configure"
10f2d63a
VZ
10585#include "confdefs.h"
10586/* Override any gcc2 internal prototype to avoid an error. */
10587/* We use char because int might match the return type of a gcc2
10588 builtin and then its argument prototype would still apply. */
10589char inet_aton();
10590
10591int main() {
10592inet_aton()
10593; return 0; }
10594EOF
cd6d6d5b 10595if { (eval echo configure:10596: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
10596 rm -rf conftest*
10597 eval "ac_cv_lib_$ac_lib_var=yes"
10598else
10599 echo "configure: failed program was:" >&5
10600 cat conftest.$ac_ext >&5
10601 rm -rf conftest*
10602 eval "ac_cv_lib_$ac_lib_var=no"
10603fi
10604rm -f conftest*
10605LIBS="$ac_save_LIBS"
10606
10607fi
10608if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10609 echo "$ac_t""yes" 1>&6
c63c7106
VZ
10610 cat >> confdefs.h <<\EOF
10611#define HAVE_INET_ATON 1
10f2d63a
VZ
10612EOF
10613
10f2d63a
VZ
10614else
10615 echo "$ac_t""no" 1>&6
10616fi
10617
c63c7106
VZ
10618
10619fi
10620done
10621
10622
10623if test "x$INET_LINK" != "x"; then
10624 cat >> confdefs.h <<\EOF
10625#define HAVE_INET_ADDR 1
10626EOF
10627
10628 INET_LINK="-l$INET_LINK"
10629fi
10f2d63a
VZ
10630
10631fi
10632
10633
10634cat > confcache <<\EOF
10635# This file is a shell script that caches the results of configure
10636# tests run on this system so they can be shared between configure
10637# scripts and configure runs. It is not useful on other systems.
10638# If it contains results you don't want to keep, you may remove or edit it.
10639#
10640# By default, configure uses ./config.cache as the cache file,
10641# creating it if it does not exist already. You can give configure
10642# the --cache-file=FILE option to use a different cache file; that is
10643# what configure does when it calls configure scripts in
10644# subdirectories, so they share the cache.
10645# Giving --cache-file=/dev/null disables caching, for debugging configure.
10646# config.status only pays attention to the cache file if you give it the
10647# --recheck option to rerun configure.
10648#
10649EOF
10650# The following way of writing the cache mishandles newlines in values,
10651# but we know of no workaround that is simple, portable, and efficient.
10652# So, don't put newlines in cache variables' values.
10653# Ultrix sh set writes to stderr and can't be redirected directly,
10654# and sets the high bit in the cache file unless we assign to the vars.
10655(set) 2>&1 |
10656 case `(ac_space=' '; set | grep ac_space) 2>&1` in
10657 *ac_space=\ *)
10658 # `set' does not quote correctly, so add quotes (double-quote substitution
10659 # turns \\\\ into \\, and sed turns \\ into \).
10660 sed -n \
10661 -e "s/'/'\\\\''/g" \
10662 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
10663 ;;
10664 *)
10665 # `set' quotes correctly as required by POSIX, so do not add quotes.
10666 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
10667 ;;
10668 esac >> confcache
10669if cmp -s $cache_file confcache; then
10670 :
10671else
10672 if test -w $cache_file; then
10673 echo "updating cache $cache_file"
10674 cat confcache > $cache_file
10675 else
10676 echo "not updating unwritable cache $cache_file"
10677 fi
10678fi
10679rm -f confcache
10680
10681
10682
b089607b 10683if test "$TOOLKIT" != "MSW"; then
10f2d63a
VZ
10684
10685
10686THREADS_LINK=""
10687THREADS_OBJ=""
10688
10689if test "$wxUSE_THREADS" = "yes" ; then
10690 if test "$wxUSE_WINE" = 1 ; then
10691 echo "configure: warning: Threads are not supported under WINE" 1>&2
10692 wxUSE_THREADS="no"
b12915c1
VZ
10693 elif test "$USE_BEOS" = 1; then
10694 echo "configure: warning: BeOS threads are not yet supported" 1>&2
10695 wxUSE_THREADS="no"
10f2d63a
VZ
10696 fi
10697fi
10698
10699if test "$wxUSE_THREADS" = "yes" ; then
10700
10701 echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6
cd6d6d5b 10702echo "configure:10703: checking for pthread_create in -lpthread" >&5
10f2d63a
VZ
10703ac_lib_var=`echo pthread'_'pthread_create | sed 'y%./+-%__p_%'`
10704if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10705 echo $ac_n "(cached) $ac_c" 1>&6
10706else
10707 ac_save_LIBS="$LIBS"
10708LIBS="-lpthread $LIBS"
10709cat > conftest.$ac_ext <<EOF
cd6d6d5b 10710#line 10711 "configure"
10f2d63a
VZ
10711#include "confdefs.h"
10712/* Override any gcc2 internal prototype to avoid an error. */
10713/* We use char because int might match the return type of a gcc2
10714 builtin and then its argument prototype would still apply. */
10715char pthread_create();
10716
10717int main() {
10718pthread_create()
10719; return 0; }
10720EOF
cd6d6d5b 10721if { (eval echo configure:10722: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
10722 rm -rf conftest*
10723 eval "ac_cv_lib_$ac_lib_var=yes"
10724else
10725 echo "configure: failed program was:" >&5
10726 cat conftest.$ac_ext >&5
10727 rm -rf conftest*
10728 eval "ac_cv_lib_$ac_lib_var=no"
10729fi
10730rm -f conftest*
10731LIBS="$ac_save_LIBS"
10732
10733fi
10734if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10735 echo "$ac_t""yes" 1>&6
10736
10737 THREADS_OBJ="threadpsx.lo"
10738 THREADS_LINK="pthread"
10739
10740else
10741 echo "$ac_t""no" 1>&6
10742
10743 echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6
cd6d6d5b 10744echo "configure:10745: checking for pthread_create in -lc_r" >&5
10f2d63a
VZ
10745ac_lib_var=`echo c_r'_'pthread_create | sed 'y%./+-%__p_%'`
10746if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10747 echo $ac_n "(cached) $ac_c" 1>&6
10748else
10749 ac_save_LIBS="$LIBS"
10750LIBS="-lc_r $LIBS"
10751cat > conftest.$ac_ext <<EOF
cd6d6d5b 10752#line 10753 "configure"
10f2d63a
VZ
10753#include "confdefs.h"
10754/* Override any gcc2 internal prototype to avoid an error. */
10755/* We use char because int might match the return type of a gcc2
10756 builtin and then its argument prototype would still apply. */
10757char pthread_create();
10758
10759int main() {
10760pthread_create()
10761; return 0; }
10762EOF
cd6d6d5b 10763if { (eval echo configure:10764: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
10764 rm -rf conftest*
10765 eval "ac_cv_lib_$ac_lib_var=yes"
10766else
10767 echo "configure: failed program was:" >&5
10768 cat conftest.$ac_ext >&5
10769 rm -rf conftest*
10770 eval "ac_cv_lib_$ac_lib_var=no"
10771fi
10772rm -f conftest*
10773LIBS="$ac_save_LIBS"
10774
10775fi
10776if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10777 echo "$ac_t""yes" 1>&6
10778
10779 THREADS_OBJ="threadpsx.lo"
10780 THREADS_LINK="c_r"
10781
10782else
10783 echo "$ac_t""no" 1>&6
10784
10785 ac_safe=`echo "sys/prctl.h" | sed 'y%./+-%__p_%'`
10786echo $ac_n "checking for sys/prctl.h""... $ac_c" 1>&6
cd6d6d5b 10787echo "configure:10788: checking for sys/prctl.h" >&5
10f2d63a
VZ
10788if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10789 echo $ac_n "(cached) $ac_c" 1>&6
10790else
10791 cat > conftest.$ac_ext <<EOF
cd6d6d5b 10792#line 10793 "configure"
10f2d63a
VZ
10793#include "confdefs.h"
10794#include <sys/prctl.h>
10795EOF
10796ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
cd6d6d5b 10797{ (eval echo configure:10798: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
10798ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10799if test -z "$ac_err"; then
10800 rm -rf conftest*
10801 eval "ac_cv_header_$ac_safe=yes"
10802else
10803 echo "$ac_err" >&5
10804 echo "configure: failed program was:" >&5
10805 cat conftest.$ac_ext >&5
10806 rm -rf conftest*
10807 eval "ac_cv_header_$ac_safe=no"
10808fi
10809rm -f conftest*
10810fi
10811if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10812 echo "$ac_t""yes" 1>&6
10813
10814 THREADS_OBJ="threadsgi.lo"
10815
10816else
10817 echo "$ac_t""no" 1>&6
10818fi
10819
10820
10821fi
10822
10823
10824fi
10825
10826
10827 if test -z "$THREADS_OBJ" ; then
10828 wxUSE_THREADS=no
10829 echo "configure: warning: No thread support on this system" 1>&2
10830 fi
10831fi
10832
10833if test "$wxUSE_THREADS" = "yes" ; then
70846f0a
VZ
10834 for ac_func in thr_setconcurrency
10835do
10836echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
cd6d6d5b 10837echo "configure:10838: checking for $ac_func" >&5
70846f0a
VZ
10838if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10839 echo $ac_n "(cached) $ac_c" 1>&6
10840else
10841 cat > conftest.$ac_ext <<EOF
cd6d6d5b 10842#line 10843 "configure"
70846f0a
VZ
10843#include "confdefs.h"
10844/* System header to define __stub macros and hopefully few prototypes,
10845 which can conflict with char $ac_func(); below. */
10846#include <assert.h>
10847/* Override any gcc2 internal prototype to avoid an error. */
10848/* We use char because int might match the return type of a gcc2
10849 builtin and then its argument prototype would still apply. */
10850char $ac_func();
10851
10852int main() {
10853
10854/* The GNU C library defines this for functions which it implements
10855 to always fail with ENOSYS. Some functions are actually named
10856 something starting with __ and the normal name is an alias. */
10857#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10858choke me
10859#else
2224580a 10860$ac_func();
70846f0a
VZ
10861#endif
10862
10863; return 0; }
10864EOF
cd6d6d5b 10865if { (eval echo configure:10866: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
70846f0a
VZ
10866 rm -rf conftest*
10867 eval "ac_cv_func_$ac_func=yes"
10868else
10869 echo "configure: failed program was:" >&5
10870 cat conftest.$ac_ext >&5
10871 rm -rf conftest*
10872 eval "ac_cv_func_$ac_func=no"
10873fi
10874rm -f conftest*
10875fi
10876
10877if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10878 echo "$ac_t""yes" 1>&6
10879 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10880 cat >> confdefs.h <<EOF
10881#define $ac_tr_func 1
10882EOF
10883
10884else
10885 echo "$ac_t""no" 1>&6
10886fi
10887done
10888
10889
10f2d63a
VZ
10890
10891 for ac_hdr in sched.h
10892do
10893ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10894echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
cd6d6d5b 10895echo "configure:10896: checking for $ac_hdr" >&5
10f2d63a
VZ
10896if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10897 echo $ac_n "(cached) $ac_c" 1>&6
10898else
10899 cat > conftest.$ac_ext <<EOF
cd6d6d5b 10900#line 10901 "configure"
10f2d63a
VZ
10901#include "confdefs.h"
10902#include <$ac_hdr>
10903EOF
10904ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
cd6d6d5b 10905{ (eval echo configure:10906: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
10906ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10907if test -z "$ac_err"; then
10908 rm -rf conftest*
10909 eval "ac_cv_header_$ac_safe=yes"
10910else
10911 echo "$ac_err" >&5
10912 echo "configure: failed program was:" >&5
10913 cat conftest.$ac_ext >&5
10914 rm -rf conftest*
10915 eval "ac_cv_header_$ac_safe=no"
10916fi
10917rm -f conftest*
10918fi
10919if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10920 echo "$ac_t""yes" 1>&6
10921 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10922 cat >> confdefs.h <<EOF
10923#define $ac_tr_hdr 1
10924EOF
10925
10926else
10927 echo "$ac_t""no" 1>&6
10928fi
10929done
10930
10931
10932 echo $ac_n "checking for sched_yield in -l$THREADS_LINK""... $ac_c" 1>&6
cd6d6d5b 10933echo "configure:10934: checking for sched_yield in -l$THREADS_LINK" >&5
10f2d63a
VZ
10934ac_lib_var=`echo $THREADS_LINK'_'sched_yield | sed 'y%./+-%__p_%'`
10935if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10936 echo $ac_n "(cached) $ac_c" 1>&6
10937else
10938 ac_save_LIBS="$LIBS"
10939LIBS="-l$THREADS_LINK $LIBS"
10940cat > conftest.$ac_ext <<EOF
cd6d6d5b 10941#line 10942 "configure"
10f2d63a
VZ
10942#include "confdefs.h"
10943/* Override any gcc2 internal prototype to avoid an error. */
10944/* We use char because int might match the return type of a gcc2
10945 builtin and then its argument prototype would still apply. */
10946char sched_yield();
10947
10948int main() {
10949sched_yield()
10950; return 0; }
10951EOF
cd6d6d5b 10952if { (eval echo configure:10953: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
10953 rm -rf conftest*
10954 eval "ac_cv_lib_$ac_lib_var=yes"
10955else
10956 echo "configure: failed program was:" >&5
10957 cat conftest.$ac_ext >&5
10958 rm -rf conftest*
10959 eval "ac_cv_lib_$ac_lib_var=no"
10960fi
10961rm -f conftest*
10962LIBS="$ac_save_LIBS"
10963
10964fi
10965if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10966 echo "$ac_t""yes" 1>&6
10967 cat >> confdefs.h <<\EOF
10968#define HAVE_SCHED_YIELD 1
10969EOF
10970
10971else
10972 echo "$ac_t""no" 1>&6
10973echo $ac_n "checking for sched_yield in -l"posix4"""... $ac_c" 1>&6
cd6d6d5b 10974echo "configure:10975: checking for sched_yield in -l"posix4"" >&5
10f2d63a
VZ
10975ac_lib_var=`echo "posix4"'_'sched_yield | sed 'y%./+-%__p_%'`
10976if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10977 echo $ac_n "(cached) $ac_c" 1>&6
10978else
10979 ac_save_LIBS="$LIBS"
10980LIBS="-l"posix4" $LIBS"
10981cat > conftest.$ac_ext <<EOF
cd6d6d5b 10982#line 10983 "configure"
10f2d63a
VZ
10983#include "confdefs.h"
10984/* Override any gcc2 internal prototype to avoid an error. */
10985/* We use char because int might match the return type of a gcc2
10986 builtin and then its argument prototype would still apply. */
10987char sched_yield();
10988
10989int main() {
10990sched_yield()
10991; return 0; }
10992EOF
cd6d6d5b 10993if { (eval echo configure:10994: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
10994 rm -rf conftest*
10995 eval "ac_cv_lib_$ac_lib_var=yes"
10996else
10997 echo "configure: failed program was:" >&5
10998 cat conftest.$ac_ext >&5
10999 rm -rf conftest*
11000 eval "ac_cv_lib_$ac_lib_var=no"
11001fi
11002rm -f conftest*
11003LIBS="$ac_save_LIBS"
11004
11005fi
11006if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11007 echo "$ac_t""yes" 1>&6
11008 cat >> confdefs.h <<\EOF
11009#define HAVE_SCHED_YIELD 1
11010EOF
11011 POSIX4_LINK="-lposix4"
11012else
11013 echo "$ac_t""no" 1>&6
11014echo "configure: warning: wxThread::Yield will not work properly" 1>&2
11015
11016fi
11017
11018
11019fi
11020
11021
11022 echo $ac_n "checking for pthread_attr_getschedpolicy in -l$THREADS_LINK""... $ac_c" 1>&6
cd6d6d5b 11023echo "configure:11024: checking for pthread_attr_getschedpolicy in -l$THREADS_LINK" >&5
10f2d63a
VZ
11024ac_lib_var=`echo $THREADS_LINK'_'pthread_attr_getschedpolicy | sed 'y%./+-%__p_%'`
11025if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11026 echo $ac_n "(cached) $ac_c" 1>&6
11027else
11028 ac_save_LIBS="$LIBS"
11029LIBS="-l$THREADS_LINK $LIBS"
11030cat > conftest.$ac_ext <<EOF
cd6d6d5b 11031#line 11032 "configure"
10f2d63a
VZ
11032#include "confdefs.h"
11033/* Override any gcc2 internal prototype to avoid an error. */
11034/* We use char because int might match the return type of a gcc2
11035 builtin and then its argument prototype would still apply. */
11036char pthread_attr_getschedpolicy();
11037
11038int main() {
11039pthread_attr_getschedpolicy()
11040; return 0; }
11041EOF
cd6d6d5b 11042if { (eval echo configure:11043: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
11043 rm -rf conftest*
11044 eval "ac_cv_lib_$ac_lib_var=yes"
11045else
11046 echo "configure: failed program was:" >&5
11047 cat conftest.$ac_ext >&5
11048 rm -rf conftest*
11049 eval "ac_cv_lib_$ac_lib_var=no"
11050fi
11051rm -f conftest*
11052LIBS="$ac_save_LIBS"
11053
11054fi
11055if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11056 echo "$ac_t""yes" 1>&6
11057 cat >> confdefs.h <<\EOF
11058#define HAVE_THREAD_PRIORITY_FUNCTIONS 1
11059EOF
11060
11061else
11062 echo "$ac_t""no" 1>&6
11063echo $ac_n "checking for pthread_attr_getschedpolicy in -l"posix4"""... $ac_c" 1>&6
cd6d6d5b 11064echo "configure:11065: checking for pthread_attr_getschedpolicy in -l"posix4"" >&5
10f2d63a
VZ
11065ac_lib_var=`echo "posix4"'_'pthread_attr_getschedpolicy | sed 'y%./+-%__p_%'`
11066if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11067 echo $ac_n "(cached) $ac_c" 1>&6
11068else
11069 ac_save_LIBS="$LIBS"
11070LIBS="-l"posix4" $LIBS"
11071cat > conftest.$ac_ext <<EOF
cd6d6d5b 11072#line 11073 "configure"
10f2d63a
VZ
11073#include "confdefs.h"
11074/* Override any gcc2 internal prototype to avoid an error. */
11075/* We use char because int might match the return type of a gcc2
11076 builtin and then its argument prototype would still apply. */
11077char pthread_attr_getschedpolicy();
11078
11079int main() {
11080pthread_attr_getschedpolicy()
11081; return 0; }
11082EOF
cd6d6d5b 11083if { (eval echo configure:11084: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
11084 rm -rf conftest*
11085 eval "ac_cv_lib_$ac_lib_var=yes"
11086else
11087 echo "configure: failed program was:" >&5
11088 cat conftest.$ac_ext >&5
11089 rm -rf conftest*
11090 eval "ac_cv_lib_$ac_lib_var=no"
11091fi
11092rm -f conftest*
11093LIBS="$ac_save_LIBS"
11094
11095fi
11096if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11097 echo "$ac_t""yes" 1>&6
11098 cat >> confdefs.h <<\EOF
11099#define HAVE_THREAD_PRIORITY_FUNCTIONS 1
11100EOF
11101 POSIX4_LINK="-lposix4"
11102else
11103 echo "$ac_t""no" 1>&6
11104echo "configure: warning: Setting thread priority will not work" 1>&2
11105
11106fi
11107
11108
11109fi
11110
11111
11112 echo $ac_n "checking for pthread_cancel in -l$THREADS_LINK""... $ac_c" 1>&6
cd6d6d5b 11113echo "configure:11114: checking for pthread_cancel in -l$THREADS_LINK" >&5
10f2d63a
VZ
11114ac_lib_var=`echo $THREADS_LINK'_'pthread_cancel | sed 'y%./+-%__p_%'`
11115if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11116 echo $ac_n "(cached) $ac_c" 1>&6
11117else
11118 ac_save_LIBS="$LIBS"
11119LIBS="-l$THREADS_LINK $LIBS"
11120cat > conftest.$ac_ext <<EOF
cd6d6d5b 11121#line 11122 "configure"
10f2d63a
VZ
11122#include "confdefs.h"
11123/* Override any gcc2 internal prototype to avoid an error. */
11124/* We use char because int might match the return type of a gcc2
11125 builtin and then its argument prototype would still apply. */
11126char pthread_cancel();
11127
11128int main() {
11129pthread_cancel()
11130; return 0; }
11131EOF
cd6d6d5b 11132if { (eval echo configure:11133: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
11133 rm -rf conftest*
11134 eval "ac_cv_lib_$ac_lib_var=yes"
11135else
11136 echo "configure: failed program was:" >&5
11137 cat conftest.$ac_ext >&5
11138 rm -rf conftest*
11139 eval "ac_cv_lib_$ac_lib_var=no"
11140fi
11141rm -f conftest*
11142LIBS="$ac_save_LIBS"
11143
11144fi
11145if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11146 echo "$ac_t""yes" 1>&6
11147 cat >> confdefs.h <<\EOF
11148#define HAVE_PTHREAD_CANCEL 1
11149EOF
11150
11151else
11152 echo "$ac_t""no" 1>&6
11153echo "configure: warning: wxThread::Kill() will not work properly" 1>&2
11154fi
11155
11156
11157 echo $ac_n "checking for pthread_cleanup_push/pop""... $ac_c" 1>&6
cd6d6d5b 11158echo "configure:11159: checking for pthread_cleanup_push/pop" >&5
10f2d63a
VZ
11159if eval "test \"`echo '$''{'wx_cv_func_pthread_cleanup_push'+set}'`\" = set"; then
11160 echo $ac_n "(cached) $ac_c" 1>&6
11161else
11162
11163 cat > conftest.$ac_ext <<EOF
cd6d6d5b 11164#line 11165 "configure"
10f2d63a
VZ
11165#include "confdefs.h"
11166#include <pthread.h>
11167int main() {
11168
11169 pthread_cleanup_push(NULL, NULL);
11170 pthread_cleanup_pop(0);
11171
11172; return 0; }
11173EOF
cd6d6d5b 11174if { (eval echo configure:11175: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10f2d63a
VZ
11175 rm -rf conftest*
11176
11177 wx_cv_func_pthread_cleanup_push=yes
11178 cat >> confdefs.h <<\EOF
11179#define HAVE_THREAD_CLEANUP_FUNCTIONS 1
11180EOF
11181
11182
11183else
11184 echo "configure: failed program was:" >&5
11185 cat conftest.$ac_ext >&5
11186 rm -rf conftest*
11187
11188 wx_cv_func_pthread_cleanup_push=no
11189
11190fi
11191rm -f conftest*
11192
11193fi
11194
11195echo "$ac_t""$wx_cv_func_pthread_cleanup_push" 1>&6
11196
11197 THREADS_LINK="-l$THREADS_LINK"
11198fi
11199
11200fi
11201
11202if test "$wxUSE_THREADS" = "yes"; then
11203 cat >> confdefs.h <<\EOF
11204#define wxUSE_THREADS 1
11205EOF
11206
11207
11208 CFLAGS="${CFLAGS} -D_REENTRANT"
11209 CXXFLAGS="${CXXFLAGS} -D_REENTRANT"
11210
11211 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
11212else
11213 if test "$ac_cv_func_strtok_r" = "yes"; then
ab9b9eab 11214 echo $ac_n "checking if -D_REENTRANT is needed""... $ac_c" 1>&6
cd6d6d5b 11215echo "configure:11216: checking if -D_REENTRANT is needed" >&5
ab9b9eab
VZ
11216 if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
11217 CFLAGS="${CFLAGS} -D_REENTRANT"
11218 CXXFLAGS="${CXXFLAGS} -D_REENTRANT"
11219 echo "$ac_t""yes" 1>&6
11220 else
11221 echo "$ac_t""no" 1>&6
10f2d63a
VZ
11222 fi
11223 fi
11224fi
11225
13111b2a
VZ
11226if test "$WXGTK13" = 1 ; then
11227 cat >> confdefs.h <<EOF
11228#define __WXGTK13__ $WXGTK13
11229EOF
11230
11231 WXGTK12=1
11232fi
11233
10f2d63a
VZ
11234if test "$WXGTK12" = 1 ; then
11235 cat >> confdefs.h <<EOF
11236#define __WXGTK12__ $WXGTK12
11237EOF
11238
11239fi
11240
11241if test "$WXWINE" = 1 ; then
11242 TOOLKIT_DEF="${TOOLKIT_DEF} -D__WXWINE__"
11243fi
11244
11245if test "$wxUSE_CYGWIN" = 1 ; then
11246 TOOLKIT_DEF="${TOOLKIT_DEF} -D__WIN95__"
11247fi
11248
11249WXDEBUG=
11250
11251if test "$wxUSE_DEBUG_INFO" = "yes" ; then
11252 WXDEBUG="-g"
11253 wxUSE_OPTIMISE=no
11254fi
11255
11256if test "$wxUSE_DEBUG_GDB" = "yes" ; then
11257 wxUSE_DEBUG_INFO=yes
11258 WXDEBUG="-ggdb"
11259fi
11260
11261if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
11262 cat >> confdefs.h <<\EOF
11263#define WXDEBUG 1
11264EOF
11265
11266 WXDEBUG_DEFINE="-D__WXDEBUG__"
11267else
11268 if test "$wxUSE_GTK" = 1 ; then
11269 WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS"
11270 fi
11271fi
11272
11273if test "$wxUSE_MEM_TRACING" = "yes" ; then
11274 cat >> confdefs.h <<\EOF
11275#define wxUSE_MEMORY_TRACING 1
11276EOF
11277
11278 cat >> confdefs.h <<\EOF
11279#define wxUSE_GLOBAL_MEMORY_OPERATORS 1
47c13eb7
VS
11280EOF
11281
11282 cat >> confdefs.h <<\EOF
11283#define wxUSE_DEBUG_NEW_ALWAYS 1
10f2d63a
VZ
11284EOF
11285
11286 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
11287fi
11288
11289if test "$wxUSE_DMALLOC" = "yes" ; then
11290 DMALLOC_LINK="-ldmalloc"
11291fi
11292
11293PROFILE=
11294if test "$wxUSE_PROFILE" = "yes" ; then
11295 PROFILE="-pg"
11296fi
11297
11298DEP_INFO_FLAGS=
caa2c79b 11299CODE_GEN_FLAGS=
10f2d63a
VZ
11300if test "$GCC" = yes ; then
11301 if test "$wxUSE_NO_RTTI" = "yes" ; then
caa2c79b 11302 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fno-rtti"
10f2d63a
VZ
11303 fi
11304 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
caa2c79b 11305 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fno-exceptions"
10f2d63a
VZ
11306 fi
11307 if test "$wxUSE_PERMISSIVE" = "yes" ; then
caa2c79b 11308 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive"
10f2d63a
VZ
11309 fi
11310 if test "$wxUSE_NO_DEPS" = "no" ; then
11311 DEP_INFO_FLAGS="-MMD"
11312 fi
11313fi
11314
11315
11316CXXFLAGS=`echo "${CXXFLAGS}" | sed "s/\-O.//g" `
11317CFLAGS=`echo "${CFLAGS}" | sed "s/\-O.//g" `
11318if test "$wxUSE_OPTIMISE" = "no" ; then
11319 OPTIMISE=
11320else
11321 if test "$GCC" = yes ; then
11322 OPTIMISE="-O2"
11323 case "${host}" in
11324 i586-*-*|i686-*-* )
11325 OPTIMISE="${OPTIMISE} "
11326 ;;
11327 esac
11328 else
11329 OPTIMISE="-O"
11330 fi
11331fi
11332
11333
11334ZLIB_INCLUDE=
11335if test "$wxUSE_ZLIB" = "yes" ; then
11336 cat >> confdefs.h <<\EOF
11337#define wxUSE_ZLIB 1
11338EOF
11339
11340 ZLIB_INCLUDE="-I\${top_srcdir}/src/zlib"
11341fi
11342
11343PNG_INCLUDE=
11344if test "$wxUSE_LIBPNG" = "yes" ; then
11345 cat >> confdefs.h <<\EOF
11346#define wxUSE_LIBPNG 1
11347EOF
11348
11349 PNG_INCLUDE="-I\${top_srcdir}/src/png"
11350 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
11351fi
11352
11353JPEG_INCLUDE=
11354if test "$wxUSE_LIBJPEG" = "yes" ; then
11355 cat >> confdefs.h <<\EOF
11356#define wxUSE_LIBJPEG 1
11357EOF
11358
11359 JPEG_INCLUDE="-I\${top_srcdir}/src/jpeg"
11360fi
11361
c7a2bf27
RR
11362TIFF_INCLUDE=
11363if test "$wxUSE_LIBTIFF" = "yes" ; then
11364 cat >> confdefs.h <<\EOF
11365#define wxUSE_LIBTIFF 1
11366EOF
11367
11368 TIFF_INCLUDE="-I\${top_srcdir}/src/tiff"
11369fi
11370
10f2d63a
VZ
11371if test "$wxUSE_OPENGL" = "yes"; then
11372 ac_safe=`echo "GL/gl.h" | sed 'y%./+-%__p_%'`
11373echo $ac_n "checking for GL/gl.h""... $ac_c" 1>&6
cd6d6d5b 11374echo "configure:11375: checking for GL/gl.h" >&5
10f2d63a
VZ
11375if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11376 echo $ac_n "(cached) $ac_c" 1>&6
11377else
11378 cat > conftest.$ac_ext <<EOF
cd6d6d5b 11379#line 11380 "configure"
10f2d63a
VZ
11380#include "confdefs.h"
11381#include <GL/gl.h>
11382EOF
11383ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
cd6d6d5b 11384{ (eval echo configure:11385: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
11385ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11386if test -z "$ac_err"; then
11387 rm -rf conftest*
11388 eval "ac_cv_header_$ac_safe=yes"
11389else
11390 echo "$ac_err" >&5
11391 echo "configure: failed program was:" >&5
11392 cat conftest.$ac_ext >&5
11393 rm -rf conftest*
11394 eval "ac_cv_header_$ac_safe=no"
11395fi
11396rm -f conftest*
11397fi
11398if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11399 echo "$ac_t""yes" 1>&6
11400
11401 echo $ac_n "checking for glInitNames in -lGL""... $ac_c" 1>&6
cd6d6d5b 11402echo "configure:11403: checking for glInitNames in -lGL" >&5
10f2d63a
VZ
11403ac_lib_var=`echo GL'_'glInitNames | sed 'y%./+-%__p_%'`
11404if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11405 echo $ac_n "(cached) $ac_c" 1>&6
11406else
11407 ac_save_LIBS="$LIBS"
11408LIBS="-lGL wxUSE_OPENGL=0 $LIBS"
11409cat > conftest.$ac_ext <<EOF
cd6d6d5b 11410#line 11411 "configure"
10f2d63a
VZ
11411#include "confdefs.h"
11412/* Override any gcc2 internal prototype to avoid an error. */
11413/* We use char because int might match the return type of a gcc2
11414 builtin and then its argument prototype would still apply. */
11415char glInitNames();
11416
11417int main() {
11418glInitNames()
11419; return 0; }
11420EOF
cd6d6d5b 11421if { (eval echo configure:11422: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
11422 rm -rf conftest*
11423 eval "ac_cv_lib_$ac_lib_var=yes"
11424else
11425 echo "configure: failed program was:" >&5
11426 cat conftest.$ac_ext >&5
11427 rm -rf conftest*
11428 eval "ac_cv_lib_$ac_lib_var=no"
11429fi
11430rm -f conftest*
11431LIBS="$ac_save_LIBS"
11432
11433fi
11434if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11435 echo "$ac_t""yes" 1>&6
11436
11437 OPENGL_LINK="-lGL"
11438 cat >> confdefs.h <<\EOF
11439#define wxUSE_OPENGL 1
11440EOF
11441
11442 UTILS_SUBDIRS="$UTILS_SUBDIRS glcanvas/src"
11443
11444else
11445 echo "$ac_t""no" 1>&6
11446
11447 echo $ac_n "checking for glInitNames in -lMesaGL""... $ac_c" 1>&6
cd6d6d5b 11448echo "configure:11449: checking for glInitNames in -lMesaGL" >&5
10f2d63a
VZ
11449ac_lib_var=`echo MesaGL'_'glInitNames | sed 'y%./+-%__p_%'`
11450if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11451 echo $ac_n "(cached) $ac_c" 1>&6
11452else
11453 ac_save_LIBS="$LIBS"
11454LIBS="-lMesaGL $LIBS"
11455cat > conftest.$ac_ext <<EOF
cd6d6d5b 11456#line 11457 "configure"
10f2d63a
VZ
11457#include "confdefs.h"
11458/* Override any gcc2 internal prototype to avoid an error. */
11459/* We use char because int might match the return type of a gcc2
11460 builtin and then its argument prototype would still apply. */
11461char glInitNames();
11462
11463int main() {
11464glInitNames()
11465; return 0; }
11466EOF
cd6d6d5b 11467if { (eval echo configure:11468: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
11468 rm -rf conftest*
11469 eval "ac_cv_lib_$ac_lib_var=yes"
11470else
11471 echo "configure: failed program was:" >&5
11472 cat conftest.$ac_ext >&5
11473 rm -rf conftest*
11474 eval "ac_cv_lib_$ac_lib_var=no"
11475fi
11476rm -f conftest*
11477LIBS="$ac_save_LIBS"
11478
11479fi
11480if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11481 echo "$ac_t""yes" 1>&6
11482
11483 OPENGL_LINK="-lMesaGL"
11484 cat >> confdefs.h <<\EOF
11485#define wxUSE_OPENGL 1
11486EOF
11487
11488 UTILS_SUBDIRS="$UTILS_SUBDIRS glcanvas/src"
11489
11490else
11491 echo "$ac_t""no" 1>&6
11492wxUSE_OPENGL=0
11493fi
11494
11495
11496fi
11497
11498
11499else
11500 echo "$ac_t""no" 1>&6
11501wxUSE_OPENGL=0
11502fi
11503
11504fi
11505
11506
11507if test "$wxUSE_GUI" = "yes"; then
11508 cat >> confdefs.h <<\EOF
11509#define wxUSE_GUI 1
11510EOF
11511
11512
11513 else
11514 cat >> confdefs.h <<\EOF
11515#define wxUSE_NOGUI 1
11516EOF
11517
11518fi
11519
11520
11521if test "$wxUSE_UNIX" = "yes"; then
11522 cat >> confdefs.h <<\EOF
11523#define wxUSE_UNIX 1
11524EOF
11525
11526fi
11527
11528
11529if test "$wxUSE_APPLE_IEEE" = "yes"; then
11530 cat >> confdefs.h <<\EOF
11531#define wxUSE_APPLE_IEEE 1
11532EOF
11533
11534fi
11535
10f2d63a
VZ
11536if test "$wxUSE_WAVE" = "yes"; then
11537 cat >> confdefs.h <<\EOF
11538#define wxUSE_WAVE 1
11539EOF
11540
11541fi
11542
11543if test "$wxUSE_FILE" = "yes"; then
11544 cat >> confdefs.h <<\EOF
11545#define wxUSE_FILE 1
11546EOF
11547
11548fi
11549
11550if test "$wxUSE_FS_INET" = "yes"; then
11551 cat >> confdefs.h <<\EOF
11552#define wxUSE_FS_INET 1
11553EOF
11554
11555fi
11556
11557if test "$wxUSE_FS_ZIP" = "yes"; then
11558 cat >> confdefs.h <<\EOF
11559#define wxUSE_FS_ZIP 1
11560EOF
11561
11562fi
11563
11564if test "$wxUSE_ZIPSTREAM" = "yes"; then
11565 cat >> confdefs.h <<\EOF
11566#define wxUSE_ZIPSTREAM 1
11567EOF
11568
11569fi
11570
11571if test "$wxUSE_BUSYINFO" = "yes"; then
11572 cat >> confdefs.h <<\EOF
11573#define wxUSE_BUSYINFO 1
11574EOF
11575
11576fi
11577
11578if test "$wxUSE_STD_IOSTREAM" = "yes"; then
11579 cat >> confdefs.h <<\EOF
11580#define wxUSE_STD_IOSTREAM 1
11581EOF
11582
11583fi
11584
11585if test "$wxUSE_TEXTFILE" = "yes"; then
11586 if test "$wxUSE_FILE" != "yes"; then
11587 echo "configure: warning: wxTextFile requires wxFile and it won't be compiled without it" 1>&2
11588 else
11589 cat >> confdefs.h <<\EOF
11590#define wxUSE_TEXTFILE 1
11591EOF
11592
11593 fi
11594fi
11595
11596if test "$wxUSE_CONFIG" = "yes" ; then
11597 if test "$wxUSE_TEXTFILE" != "yes"; then
11598 echo "configure: warning: wxConfig requires wxTextFile and it won't be compiled without it" 1>&2
11599 else
11600 cat >> confdefs.h <<\EOF
11601#define wxUSE_CONFIG 1
11602EOF
11603
11604 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
11605 fi
11606fi
11607
11608if test "$wxUSE_INTL" = "yes" ; then
11609 if test "$wxUSE_FILE" != "yes"; then
11610 echo "configure: warning: I18n code requires wxFile and it won't be compiled without it" 1>&2
11611 else
11612 cat >> confdefs.h <<\EOF
11613#define wxUSE_INTL 1
11614EOF
11615
11616 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
11617 fi
11618fi
11619
11620if test "$wxUSE_LOG" = "yes"; then
11621 cat >> confdefs.h <<\EOF
11622#define wxUSE_LOG 1
11623EOF
11624
11625fi
11626
11627if test "$wxUSE_LONGLONG" = "yes"; then
11628 cat >> confdefs.h <<\EOF
11629#define wxUSE_LONGLONG 1
11630EOF
11631
11632fi
11633
10f2d63a
VZ
11634if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then
11635 cat >> confdefs.h <<\EOF
11636#define wxUSE_DIALUP_MANAGER 1
11637EOF
11638
70f7a477 11639 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
10f2d63a
VZ
11640fi
11641
11642if test "$wxUSE_STREAMS" = "yes" ; then
11643 cat >> confdefs.h <<\EOF
11644#define wxUSE_STREAMS 1
11645EOF
11646
11647fi
11648
10f2d63a 11649
afc31813 11650if test "$wxUSE_TIMEDATE" = "yes"; then
83307f33
VZ
11651 for ac_func in strptime
11652do
11653echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
cd6d6d5b 11654echo "configure:11655: checking for $ac_func" >&5
83307f33
VZ
11655if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11656 echo $ac_n "(cached) $ac_c" 1>&6
11657else
11658 cat > conftest.$ac_ext <<EOF
cd6d6d5b 11659#line 11660 "configure"
83307f33
VZ
11660#include "confdefs.h"
11661/* System header to define __stub macros and hopefully few prototypes,
11662 which can conflict with char $ac_func(); below. */
11663#include <assert.h>
11664/* Override any gcc2 internal prototype to avoid an error. */
11665/* We use char because int might match the return type of a gcc2
11666 builtin and then its argument prototype would still apply. */
11667char $ac_func();
11668
11669int main() {
11670
11671/* The GNU C library defines this for functions which it implements
11672 to always fail with ENOSYS. Some functions are actually named
11673 something starting with __ and the normal name is an alias. */
11674#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11675choke me
11676#else
2224580a 11677$ac_func();
83307f33
VZ
11678#endif
11679
11680; return 0; }
11681EOF
cd6d6d5b 11682if { (eval echo configure:11683: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
83307f33
VZ
11683 rm -rf conftest*
11684 eval "ac_cv_func_$ac_func=yes"
11685else
11686 echo "configure: failed program was:" >&5
11687 cat conftest.$ac_ext >&5
11688 rm -rf conftest*
11689 eval "ac_cv_func_$ac_func=no"
11690fi
11691rm -f conftest*
11692fi
11693
11694if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11695 echo "$ac_t""yes" 1>&6
11696 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11697 cat >> confdefs.h <<EOF
11698#define $ac_tr_func 1
11699EOF
11700
11701else
11702 echo "$ac_t""no" 1>&6
11703fi
11704done
11705
11706
360d6699 11707 echo $ac_n "checking for timezone variable in <time.h>""... $ac_c" 1>&6
cd6d6d5b 11708echo "configure:11709: checking for timezone variable in <time.h>" >&5
360d6699
VZ
11709if eval "test \"`echo '$''{'wx_cv_var_timezone'+set}'`\" = set"; then
11710 echo $ac_n "(cached) $ac_c" 1>&6
11711else
11712
11713 cat > conftest.$ac_ext <<EOF
cd6d6d5b 11714#line 11715 "configure"
360d6699
VZ
11715#include "confdefs.h"
11716
11717 #include <time.h>
11718
11719int main() {
11720
11721 int tz;
11722 tz = __timezone;
11723
11724; return 0; }
11725EOF
cd6d6d5b 11726if { (eval echo configure:11727: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
360d6699
VZ
11727 rm -rf conftest*
11728
11729 wx_cv_var_timezone=__timezone
11730
11731else
11732 echo "configure: failed program was:" >&5
11733 cat conftest.$ac_ext >&5
11734 rm -rf conftest*
11735
11736 cat > conftest.$ac_ext <<EOF
cd6d6d5b 11737#line 11738 "configure"
360d6699
VZ
11738#include "confdefs.h"
11739
11740 #include <time.h>
11741
11742int main() {
11743
11744 int tz;
11745 tz = _timezone;
11746
11747; return 0; }
11748EOF
cd6d6d5b 11749if { (eval echo configure:11750: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
360d6699
VZ
11750 rm -rf conftest*
11751
11752 wx_cv_var_timezone=_timezone
11753
5357c8e8
VZ
11754else
11755 echo "configure: failed program was:" >&5
11756 cat conftest.$ac_ext >&5
11757 rm -rf conftest*
11758
11759 cat > conftest.$ac_ext <<EOF
cd6d6d5b 11760#line 11761 "configure"
5357c8e8
VZ
11761#include "confdefs.h"
11762
11763 #include <time.h>
11764
11765int main() {
11766
11767 int tz;
11768 tz = timezone;
11769
11770; return 0; }
11771EOF
cd6d6d5b 11772if { (eval echo configure:11773: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5357c8e8
VZ
11773 rm -rf conftest*
11774
11775 wx_cv_var_timezone=timezone
11776
360d6699
VZ
11777else
11778 echo "configure: failed program was:" >&5
11779 cat conftest.$ac_ext >&5
11780 rm -rf conftest*
11781 { echo "configure: error: no timezone variable" 1>&2; exit 1; }
5357c8e8
VZ
11782
11783fi
11784rm -f conftest*
11785
360d6699
VZ
11786
11787fi
11788rm -f conftest*
11789
11790
11791fi
11792rm -f conftest*
11793
11794
11795fi
11796
11797echo "$ac_t""$wx_cv_var_timezone" 1>&6
11798
11799 cat >> confdefs.h <<EOF
11800#define WX_TIMEZONE $wx_cv_var_timezone
11801EOF
11802
11803
3fcdd07b 11804 for ac_func in localtime
afc31813
VZ
11805do
11806echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
cd6d6d5b 11807echo "configure:11808: checking for $ac_func" >&5
afc31813
VZ
11808if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11809 echo $ac_n "(cached) $ac_c" 1>&6
11810else
11811 cat > conftest.$ac_ext <<EOF
cd6d6d5b 11812#line 11813 "configure"
10f2d63a 11813#include "confdefs.h"
afc31813
VZ
11814/* System header to define __stub macros and hopefully few prototypes,
11815 which can conflict with char $ac_func(); below. */
11816#include <assert.h>
11817/* Override any gcc2 internal prototype to avoid an error. */
11818/* We use char because int might match the return type of a gcc2
11819 builtin and then its argument prototype would still apply. */
11820char $ac_func();
11821
10f2d63a 11822int main() {
afc31813
VZ
11823
11824/* The GNU C library defines this for functions which it implements
11825 to always fail with ENOSYS. Some functions are actually named
11826 something starting with __ and the normal name is an alias. */
11827#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11828choke me
11829#else
2224580a 11830$ac_func();
afc31813
VZ
11831#endif
11832
10f2d63a
VZ
11833; return 0; }
11834EOF
cd6d6d5b 11835if { (eval echo configure:11836: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a 11836 rm -rf conftest*
afc31813 11837 eval "ac_cv_func_$ac_func=yes"
10f2d63a
VZ
11838else
11839 echo "configure: failed program was:" >&5
11840 cat conftest.$ac_ext >&5
11841 rm -rf conftest*
afc31813
VZ
11842 eval "ac_cv_func_$ac_func=no"
11843fi
11844rm -f conftest*
11845fi
11846
11847if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11848 echo "$ac_t""yes" 1>&6
11849 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11850 cat >> confdefs.h <<EOF
11851#define $ac_tr_func 1
11852EOF
3fcdd07b 11853
afc31813
VZ
11854else
11855 echo "$ac_t""no" 1>&6
11856fi
11857done
11858
11859
0470b1e6
VZ
11860 if test "$ac_cv_func_localtime" = "yes"; then
11861 echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6
cd6d6d5b 11862echo "configure:11863: checking for tm_gmtoff in struct tm" >&5
0470b1e6
VZ
11863if eval "test \"`echo '$''{'wx_cv_struct_tm_has_gmtoff'+set}'`\" = set"; then
11864 echo $ac_n "(cached) $ac_c" 1>&6
11865else
11866
11867 cat > conftest.$ac_ext <<EOF
cd6d6d5b 11868#line 11869 "configure"
0470b1e6
VZ
11869#include "confdefs.h"
11870
11871 #include <time.h>
11872
11873int main() {
11874
11875 struct tm tm;
11876 tm.tm_gmtoff++;
11877
11878; return 0; }
11879EOF
cd6d6d5b 11880if { (eval echo configure:11881: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
0470b1e6
VZ
11881 rm -rf conftest*
11882
f03a98d8 11883 wx_cv_struct_tm_has_gmtoff=yes
0470b1e6
VZ
11884 cat >> confdefs.h <<\EOF
11885#define WX_GMTOFF_IN_TM 1
11886EOF
11887
11888
11889else
11890 echo "configure: failed program was:" >&5
11891 cat conftest.$ac_ext >&5
11892 rm -rf conftest*
11893 wx_cv_struct_tm_has_gmtoff=no
11894
11895fi
11896rm -f conftest*
11897
11898fi
11899
11900echo "$ac_t""$wx_cv_struct_tm_has_gmtoff" 1>&6
3fcdd07b
VZ
11901 fi
11902
11903 for ac_func in gettimeofday ftime
11904do
11905echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
cd6d6d5b 11906echo "configure:11907: checking for $ac_func" >&5
3fcdd07b
VZ
11907if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11908 echo $ac_n "(cached) $ac_c" 1>&6
11909else
11910 cat > conftest.$ac_ext <<EOF
cd6d6d5b 11911#line 11912 "configure"
3fcdd07b
VZ
11912#include "confdefs.h"
11913/* System header to define __stub macros and hopefully few prototypes,
11914 which can conflict with char $ac_func(); below. */
11915#include <assert.h>
11916/* Override any gcc2 internal prototype to avoid an error. */
11917/* We use char because int might match the return type of a gcc2
11918 builtin and then its argument prototype would still apply. */
11919char $ac_func();
11920
11921int main() {
11922
11923/* The GNU C library defines this for functions which it implements
11924 to always fail with ENOSYS. Some functions are actually named
11925 something starting with __ and the normal name is an alias. */
11926#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11927choke me
11928#else
11929$ac_func();
11930#endif
11931
11932; return 0; }
11933EOF
cd6d6d5b 11934if { (eval echo configure:11935: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3fcdd07b
VZ
11935 rm -rf conftest*
11936 eval "ac_cv_func_$ac_func=yes"
11937else
11938 echo "configure: failed program was:" >&5
11939 cat conftest.$ac_ext >&5
11940 rm -rf conftest*
11941 eval "ac_cv_func_$ac_func=no"
11942fi
11943rm -f conftest*
11944fi
11945
11946if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11947 echo "$ac_t""yes" 1>&6
11948 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11949 cat >> confdefs.h <<EOF
11950#define $ac_tr_func 1
11951EOF
11952 break
11953else
11954 echo "$ac_t""no" 1>&6
11955fi
11956done
11957
11958
11959 if test "$ac_cv_func_gettimeofday" = "yes"; then
afc31813 11960 echo $ac_n "checking whether gettimeofday takes two arguments""... $ac_c" 1>&6
cd6d6d5b 11961echo "configure:11962: checking whether gettimeofday takes two arguments" >&5
afc31813
VZ
11962if eval "test \"`echo '$''{'wx_cv_func_gettimeofday_has_2_args'+set}'`\" = set"; then
11963 echo $ac_n "(cached) $ac_c" 1>&6
11964else
11965
11966
11967 ac_ext=C
11968# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11969ac_cpp='$CXXCPP $CPPFLAGS'
11970ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11971ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11972cross_compiling=$ac_cv_prog_cxx_cross
11973
11974
11975 cat > conftest.$ac_ext <<EOF
cd6d6d5b 11976#line 11977 "configure"
10f2d63a 11977#include "confdefs.h"
afc31813
VZ
11978
11979 #include <sys/time.h>
11980 #include <unistd.h>
11981
10f2d63a 11982int main() {
afc31813
VZ
11983
11984 struct timeval tv;
11985 struct timezone tz;
11986 gettimeofday(&tv, &tz);
11987
10f2d63a
VZ
11988; return 0; }
11989EOF
cd6d6d5b 11990if { (eval echo configure:11991: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10f2d63a 11991 rm -rf conftest*
afc31813 11992 wx_cv_func_gettimeofday_has_2_args=yes
10f2d63a
VZ
11993else
11994 echo "configure: failed program was:" >&5
11995 cat conftest.$ac_ext >&5
11996 rm -rf conftest*
11997 cat > conftest.$ac_ext <<EOF
cd6d6d5b 11998#line 11999 "configure"
10f2d63a 11999#include "confdefs.h"
afc31813
VZ
12000
12001 #include <sys/time.h>
12002 #include <unistd.h>
12003
10f2d63a 12004int main() {
afc31813
VZ
12005
12006 struct timeval tv;
12007 gettimeofday(&tv);
12008
10f2d63a
VZ
12009; return 0; }
12010EOF
cd6d6d5b 12011if { (eval echo configure:12012: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10f2d63a 12012 rm -rf conftest*
afc31813 12013 wx_cv_func_gettimeofday_has_2_args=no
10f2d63a
VZ
12014else
12015 echo "configure: failed program was:" >&5
12016 cat conftest.$ac_ext >&5
12017 rm -rf conftest*
afc31813
VZ
12018 wx_cv_func_gettimeofday_has_2_args=unknown
12019
10f2d63a
VZ
12020fi
12021rm -f conftest*
afc31813 12022
10f2d63a
VZ
12023fi
12024rm -f conftest*
afc31813 12025 ac_ext=c
10f2d63a
VZ
12026# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12027ac_cpp='$CPP $CPPFLAGS'
12028ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12029ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12030cross_compiling=$ac_cv_prog_cc_cross
12031
afc31813
VZ
12032
12033fi
12034
12035echo "$ac_t""$wx_cv_func_gettimeofday_has_2_args" 1>&6
c63c7106 12036
afc31813
VZ
12037 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
12038 cat >> confdefs.h <<\EOF
12039#define WX_GETTIMEOFDAY_NO_TZ 1
12040EOF
12041
12042 fi
12043 fi
12044
12045 cat >> confdefs.h <<\EOF
12046#define wxUSE_TIMEDATE 1
12047EOF
12048
12049 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
12050fi
12051
12052
b089607b
VZ
12053if test "$TOOLKIT" != "MSW"; then
12054
afc31813 12055if test "$wxUSE_SOCKETS" = "yes"; then
c63c7106 12056 echo $ac_n "checking for socket""... $ac_c" 1>&6
cd6d6d5b 12057echo "configure:12058: checking for socket" >&5
c63c7106
VZ
12058if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
12059 echo $ac_n "(cached) $ac_c" 1>&6
12060else
12061 cat > conftest.$ac_ext <<EOF
cd6d6d5b 12062#line 12063 "configure"
c63c7106
VZ
12063#include "confdefs.h"
12064/* System header to define __stub macros and hopefully few prototypes,
12065 which can conflict with char socket(); below. */
12066#include <assert.h>
12067/* Override any gcc2 internal prototype to avoid an error. */
12068/* We use char because int might match the return type of a gcc2
12069 builtin and then its argument prototype would still apply. */
12070char socket();
12071
12072int main() {
12073
12074/* The GNU C library defines this for functions which it implements
12075 to always fail with ENOSYS. Some functions are actually named
12076 something starting with __ and the normal name is an alias. */
12077#if defined (__stub_socket) || defined (__stub___socket)
12078choke me
12079#else
2224580a 12080socket();
c63c7106
VZ
12081#endif
12082
12083; return 0; }
12084EOF
cd6d6d5b 12085if { (eval echo configure:12086: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
c63c7106
VZ
12086 rm -rf conftest*
12087 eval "ac_cv_func_socket=yes"
12088else
12089 echo "configure: failed program was:" >&5
12090 cat conftest.$ac_ext >&5
12091 rm -rf conftest*
12092 eval "ac_cv_func_socket=no"
12093fi
12094rm -f conftest*
12095fi
12096
12097if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
12098 echo "$ac_t""yes" 1>&6
12099 :
12100else
12101 echo "$ac_t""no" 1>&6
12102echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
cd6d6d5b 12103echo "configure:12104: checking for socket in -lsocket" >&5
c63c7106
VZ
12104ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
12105if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12106 echo $ac_n "(cached) $ac_c" 1>&6
12107else
12108 ac_save_LIBS="$LIBS"
12109LIBS="-lsocket $LIBS"
12110cat > conftest.$ac_ext <<EOF
cd6d6d5b 12111#line 12112 "configure"
c63c7106
VZ
12112#include "confdefs.h"
12113/* Override any gcc2 internal prototype to avoid an error. */
12114/* We use char because int might match the return type of a gcc2
12115 builtin and then its argument prototype would still apply. */
12116char socket();
12117
12118int main() {
12119socket()
12120; return 0; }
12121EOF
cd6d6d5b 12122if { (eval echo configure:12123: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
c63c7106
VZ
12123 rm -rf conftest*
12124 eval "ac_cv_lib_$ac_lib_var=yes"
12125else
12126 echo "configure: failed program was:" >&5
12127 cat conftest.$ac_ext >&5
12128 rm -rf conftest*
12129 eval "ac_cv_lib_$ac_lib_var=no"
12130fi
12131rm -f conftest*
12132LIBS="$ac_save_LIBS"
12133
12134fi
12135if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12136 echo "$ac_t""yes" 1>&6
12137 INET_LINK="$INET_LINK -lsocket"
c63c7106
VZ
12138else
12139 echo "$ac_t""no" 1>&6
afc31813
VZ
12140
12141 echo "configure: warning: socket library not found - sockets will be disabled" 1>&2
12142 wxUSE_SOCKETS=no
12143
12144
c63c7106
VZ
12145fi
12146
12147
12148fi
12149
10f2d63a
VZ
12150fi
12151
b089607b
VZ
12152fi
12153
afc31813 12154if test "$wxUSE_SOCKETS" = "yes" ; then
51a9faba 12155 echo $ac_n "checking what is the type of the third argument of getsockname""... $ac_c" 1>&6
cd6d6d5b 12156echo "configure:12157: checking what is the type of the third argument of getsockname" >&5
51a9faba
VZ
12157if eval "test \"`echo '$''{'wx_cv_type_getsockname3'+set}'`\" = set"; then
12158 echo $ac_n "(cached) $ac_c" 1>&6
12159else
12160
12161
12162 ac_ext=C
afc31813
VZ
12163# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12164ac_cpp='$CXXCPP $CPPFLAGS'
12165ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12166ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12167cross_compiling=$ac_cv_prog_cxx_cross
12168
51a9faba
VZ
12169
12170 cat > conftest.$ac_ext <<EOF
cd6d6d5b 12171#line 12172 "configure"
afc31813 12172#include "confdefs.h"
51a9faba
VZ
12173
12174 #include <sys/socket.h>
12175
afc31813 12176int main() {
51a9faba
VZ
12177
12178 socklen_t len;
12179 getsockname(0, 0, &len);
12180
afc31813
VZ
12181; return 0; }
12182EOF
cd6d6d5b 12183if { (eval echo configure:12184: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
afc31813 12184 rm -rf conftest*
51a9faba 12185 wx_cv_type_getsockname3=socklen_t
afc31813
VZ
12186else
12187 echo "configure: failed program was:" >&5
12188 cat conftest.$ac_ext >&5
12189 rm -rf conftest*
12190 cat > conftest.$ac_ext <<EOF
cd6d6d5b 12191#line 12192 "configure"
afc31813 12192#include "confdefs.h"
51a9faba
VZ
12193
12194 #include <sys/socket.h>
12195
afc31813 12196int main() {
51a9faba
VZ
12197
12198 size_t len;
12199 getsockname(0, 0, &len);
12200
afc31813
VZ
12201; return 0; }
12202EOF
cd6d6d5b 12203if { (eval echo configure:12204: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
afc31813 12204 rm -rf conftest*
51a9faba 12205 wx_cv_type_getsockname3=size_t
afc31813
VZ
12206else
12207 echo "configure: failed program was:" >&5
12208 cat conftest.$ac_ext >&5
12209 rm -rf conftest*
12210 cat > conftest.$ac_ext <<EOF
cd6d6d5b 12211#line 12212 "configure"
afc31813 12212#include "confdefs.h"
51a9faba
VZ
12213
12214 #include <sys/socket.h>
12215
afc31813 12216int main() {
51a9faba
VZ
12217
12218 int len;
12219 getsockname(0, 0, &len);
12220
afc31813
VZ
12221; return 0; }
12222EOF
cd6d6d5b 12223if { (eval echo configure:12224: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
afc31813 12224 rm -rf conftest*
51a9faba
VZ
12225 wx_cv_type_getsockname3=int
12226 wx_cv_type_getsockname3=unknown
12227
afc31813
VZ
12228else
12229 echo "configure: failed program was:" >&5
12230 cat conftest.$ac_ext >&5
afc31813
VZ
12231fi
12232rm -f conftest*
51a9faba 12233
afc31813
VZ
12234fi
12235rm -f conftest*
51a9faba 12236
afc31813
VZ
12237fi
12238rm -f conftest*
51a9faba
VZ
12239
12240 ac_ext=c
afc31813
VZ
12241# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12242ac_cpp='$CPP $CPPFLAGS'
12243ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12244ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12245cross_compiling=$ac_cv_prog_cc_cross
12246
51a9faba
VZ
12247
12248fi
12249
12250echo "$ac_t""$wx_cv_type_getsockname3" 1>&6
12251
12252 if test "$wx_cv_type_getsockname3" = "unknown"; then
12253 wxUSE_SOCKETS=no
12254 echo "configure: warning: Couldn't find socklen_t synonym for this system" 1>&2
12255 else
12256 cat >> confdefs.h <<EOF
12257#define SOCKLEN_T $wx_cv_type_getsockname3
12258EOF
12259
12260 fi
12261fi
afc31813 12262
51a9faba 12263if test "$wxUSE_SOCKETS" = "yes" ; then
afc31813
VZ
12264 cat >> confdefs.h <<\EOF
12265#define wxUSE_SOCKETS 1
12266EOF
12267
70f7a477 12268 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
afc31813
VZ
12269 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS protocol"
12270fi
12271
10f2d63a 12272
b089607b
VZ
12273if test "$TOOLKIT" != "MSW"; then
12274
10f2d63a
VZ
12275if test "$wxUSE_JOYSTICK" = 1; then
12276 for ac_hdr in linux/joystick.h
12277do
12278ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12279echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
cd6d6d5b 12280echo "configure:12281: checking for $ac_hdr" >&5
10f2d63a
VZ
12281if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12282 echo $ac_n "(cached) $ac_c" 1>&6
12283else
12284 cat > conftest.$ac_ext <<EOF
cd6d6d5b 12285#line 12286 "configure"
10f2d63a
VZ
12286#include "confdefs.h"
12287#include <$ac_hdr>
12288EOF
12289ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
cd6d6d5b 12290{ (eval echo configure:12291: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
12291ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12292if test -z "$ac_err"; then
12293 rm -rf conftest*
12294 eval "ac_cv_header_$ac_safe=yes"
12295else
12296 echo "$ac_err" >&5
12297 echo "configure: failed program was:" >&5
12298 cat conftest.$ac_ext >&5
12299 rm -rf conftest*
12300 eval "ac_cv_header_$ac_safe=no"
12301fi
12302rm -f conftest*
12303fi
12304if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12305 echo "$ac_t""yes" 1>&6
12306 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12307 cat >> confdefs.h <<EOF
12308#define $ac_tr_hdr 1
12309EOF
12310
12311else
12312 echo "$ac_t""no" 1>&6
12313fi
12314done
12315
b089607b
VZ
12316 if test "$ac_cv_header_linux_joystick_h" != "yes"; then
12317 wxUSE_JOYSTICK=0
12318 echo "configure: warning: Joystick not supported yb this system" 1>&2
12319 fi
12320fi
12321
12322fi
12323
12324if test "$wxUSE_JOYSTICK" = 1; then
10f2d63a
VZ
12325 cat >> confdefs.h <<\EOF
12326#define wxUSE_JOYSTICK 1
12327EOF
12328
12329 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
10f2d63a
VZ
12330fi
12331
12332
b089607b
VZ
12333if test "$TOOLKIT" != "MSW"; then
12334
10f2d63a
VZ
12335HAVE_DL_FUNCS=0
12336HAVE_SHL_FUNCS=0
12337if test "$wxUSE_DYNLIB_CLASS" = "yes"; then
12338 for ac_func in dlopen
12339do
12340echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
cd6d6d5b 12341echo "configure:12342: checking for $ac_func" >&5
10f2d63a
VZ
12342if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12343 echo $ac_n "(cached) $ac_c" 1>&6
12344else
12345 cat > conftest.$ac_ext <<EOF
cd6d6d5b 12346#line 12347 "configure"
10f2d63a
VZ
12347#include "confdefs.h"
12348/* System header to define __stub macros and hopefully few prototypes,
12349 which can conflict with char $ac_func(); below. */
12350#include <assert.h>
12351/* Override any gcc2 internal prototype to avoid an error. */
12352/* We use char because int might match the return type of a gcc2
12353 builtin and then its argument prototype would still apply. */
12354char $ac_func();
12355
12356int main() {
12357
12358/* The GNU C library defines this for functions which it implements
12359 to always fail with ENOSYS. Some functions are actually named
12360 something starting with __ and the normal name is an alias. */
12361#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12362choke me
12363#else
2224580a 12364$ac_func();
10f2d63a
VZ
12365#endif
12366
12367; return 0; }
12368EOF
cd6d6d5b 12369if { (eval echo configure:12370: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
12370 rm -rf conftest*
12371 eval "ac_cv_func_$ac_func=yes"
12372else
12373 echo "configure: failed program was:" >&5
12374 cat conftest.$ac_ext >&5
12375 rm -rf conftest*
12376 eval "ac_cv_func_$ac_func=no"
12377fi
12378rm -f conftest*
12379fi
12380
12381if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12382 echo "$ac_t""yes" 1>&6
12383 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12384 cat >> confdefs.h <<EOF
12385#define $ac_tr_func 1
12386EOF
12387
12388 cat >> confdefs.h <<\EOF
12389#define HAVE_DLOPEN 1
12390EOF
12391
12392 HAVE_DL_FUNCS=1
12393
12394else
12395 echo "$ac_t""no" 1>&6
12396echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
cd6d6d5b 12397echo "configure:12398: checking for dlopen in -ldl" >&5
10f2d63a
VZ
12398ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
12399if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12400 echo $ac_n "(cached) $ac_c" 1>&6
12401else
12402 ac_save_LIBS="$LIBS"
12403LIBS="-ldl $LIBS"
12404cat > conftest.$ac_ext <<EOF
cd6d6d5b 12405#line 12406 "configure"
10f2d63a
VZ
12406#include "confdefs.h"
12407/* Override any gcc2 internal prototype to avoid an error. */
12408/* We use char because int might match the return type of a gcc2
12409 builtin and then its argument prototype would still apply. */
12410char dlopen();
12411
12412int main() {
12413dlopen()
12414; return 0; }
12415EOF
cd6d6d5b 12416if { (eval echo configure:12417: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
12417 rm -rf conftest*
12418 eval "ac_cv_lib_$ac_lib_var=yes"
12419else
12420 echo "configure: failed program was:" >&5
12421 cat conftest.$ac_ext >&5
12422 rm -rf conftest*
12423 eval "ac_cv_lib_$ac_lib_var=no"
12424fi
12425rm -f conftest*
12426LIBS="$ac_save_LIBS"
12427
12428fi
12429if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12430 echo "$ac_t""yes" 1>&6
12431
12432 cat >> confdefs.h <<\EOF
12433#define HAVE_DLOPEN 1
12434EOF
12435
12436 HAVE_DL_FUNCS=1
12437 LIBS="$LIBS -ldl"
12438
12439else
12440 echo "$ac_t""no" 1>&6
12441
12442 for ac_func in shl_load
12443do
12444echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
cd6d6d5b 12445echo "configure:12446: checking for $ac_func" >&5
10f2d63a
VZ
12446if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12447 echo $ac_n "(cached) $ac_c" 1>&6
12448else
12449 cat > conftest.$ac_ext <<EOF
cd6d6d5b 12450#line 12451 "configure"
10f2d63a
VZ
12451#include "confdefs.h"
12452/* System header to define __stub macros and hopefully few prototypes,
12453 which can conflict with char $ac_func(); below. */
12454#include <assert.h>
12455/* Override any gcc2 internal prototype to avoid an error. */
12456/* We use char because int might match the return type of a gcc2
12457 builtin and then its argument prototype would still apply. */
12458char $ac_func();
12459
12460int main() {
12461
12462/* The GNU C library defines this for functions which it implements
12463 to always fail with ENOSYS. Some functions are actually named
12464 something starting with __ and the normal name is an alias. */
12465#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12466choke me
12467#else
2224580a 12468$ac_func();
10f2d63a
VZ
12469#endif
12470
12471; return 0; }
12472EOF
cd6d6d5b 12473if { (eval echo configure:12474: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
12474 rm -rf conftest*
12475 eval "ac_cv_func_$ac_func=yes"
12476else
12477 echo "configure: failed program was:" >&5
12478 cat conftest.$ac_ext >&5
12479 rm -rf conftest*
12480 eval "ac_cv_func_$ac_func=no"
12481fi
12482rm -f conftest*
12483fi
12484
12485if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12486 echo "$ac_t""yes" 1>&6
12487 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12488 cat >> confdefs.h <<EOF
12489#define $ac_tr_func 1
12490EOF
12491
12492 cat >> confdefs.h <<\EOF
12493#define HAVE_SHL_LOAD 1
12494EOF
12495
12496 HAVE_SHL_FUNCS=1
12497
12498else
12499 echo "$ac_t""no" 1>&6
12500fi
12501done
12502
12503
12504fi
12505
12506
12507fi
12508done
12509
12510
12511 if test "$HAVE_DL_FUNCS" = 0; then
12512 if test "$HAVE_SHL_FUNCS" = 0; then
12513 if test "$USE_UNIX" = 1; then
b12915c1 12514 echo "configure: warning: Missing dynamic loading support, several features will be disabled" 1>&2
10f2d63a
VZ
12515 wxUSE_DYNLIB_CLASS=no
12516 else
b12915c1 12517 echo "configure: warning: Assuming wxLibrary class works on this platform" 1>&2
10f2d63a
VZ
12518 fi
12519 fi
12520 fi
12521fi
12522
b089607b
VZ
12523fi
12524
10f2d63a 12525if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
b12915c1 12526 cat >> confdefs.h <<\EOF
10f2d63a
VZ
12527#define wxUSE_DYNLIB_CLASS 1
12528EOF
12529
b12915c1
VZ
12530else
12531 wxUSE_ODBC=no
12532 wxUSE_SERIAL=no
10f2d63a
VZ
12533fi
12534
12535
12536if test "$wxUSE_UNICODE" = "yes" ; then
12537 cat >> confdefs.h <<\EOF
12538#define wxUSE_UNICODE 1
12539EOF
12540
12541fi
12542
12543if test "$wxUSE_WCSRTOMBS" = "yes" ; then
12544 cat >> confdefs.h <<\EOF
12545#define wxUSE_WCSRTOMBS 1
12546EOF
12547
12548fi
12549
12550if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
12551 cat >> confdefs.h <<\EOF
12552#define wxUSE_EXPERIMENTAL_PRINTF 1
12553EOF
12554
12555fi
12556
12557
b12915c1
VZ
12558if test "$wxUSE_SERIAL" = "yes" ; then
12559 cat >> confdefs.h <<\EOF
12560#define wxUSE_SERIAL 1
12561EOF
12562
12563fi
12564
12565
10f2d63a
VZ
12566IODBC_C_SRC=""
12567if test "$wxUSE_ODBC" = "yes" ; then
12568 cat >> confdefs.h <<\EOF
12569#define wxUSE_ODBC 1
12570EOF
12571
12572 WXODBCFLAG="-D_IODBC_"
12573 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
12574 IODBCOBJS="\$(IODBC_OBJS)"
12575else
12576 IODBCOBJS=
12577fi
12578
12579
12580if test "$wxUSE_POSTSCRIPT" = "yes" ; then
12581 cat >> confdefs.h <<\EOF
12582#define wxUSE_POSTSCRIPT 1
12583EOF
12584
12585fi
12586
12587cat >> confdefs.h <<\EOF
12588#define wxUSE_AFM_FOR_POSTSCRIPT 1
12589EOF
12590
12591
12592cat >> confdefs.h <<\EOF
12593#define wxUSE_NORMALIZED_PS_FONTS 1
12594EOF
12595
12596
12597
12598if test "$wxUSE_CONSTRAINTS" = "yes"; then
12599 cat >> confdefs.h <<\EOF
12600#define wxUSE_CONSTRAINTS 1
12601EOF
12602
12603 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
12604fi
12605
12606if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
12607 cat >> confdefs.h <<\EOF
12608#define wxUSE_MDI_ARCHITECTURE 1
12609EOF
12610
12611 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
12612fi
12613
12614if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
12615 cat >> confdefs.h <<\EOF
12616#define wxUSE_DOC_VIEW_ARCHITECTURE 1
12617EOF
12618
12619 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
12620 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
12621 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
12622 fi
12623fi
12624
12625if test "$wxUSE_HELP" = "yes"; then
12626 cat >> confdefs.h <<\EOF
12627#define wxUSE_HELP 1
12628EOF
12629
12630 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
12631fi
12632
12633if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
12634 if test "$wxUSE_CONSTRAINTS" != "yes"; then
12635 echo "configure: warning: Printing support cannot be used without constraints so it won't be compiled without it" 1>&2
12636 else
12637 cat >> confdefs.h <<\EOF
12638#define wxUSE_PRINTING_ARCHITECTURE 1
12639EOF
12640
12641 fi
12642 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
12643fi
12644
12645if test "$wxUSE_PROLOGIO" = "yes" ; then
12646 cat >> confdefs.h <<\EOF
12647#define wxUSE_PROLOGIO 1
12648EOF
12649
12650fi
12651
12652if test "$wxUSE_RESOURCES" = "yes" ; then
12653 if test "$wxUSE_PROLOGIO" = "yes" ; then
12654 cat >> confdefs.h <<\EOF
12655#define wxUSE_RESOURCES 1
12656EOF
12657
12658 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS resource"
12659 else
12660 echo "configure: warning: wxWindows ressource system requires PrologIO and can't be compiled without it." 1>&2
12661 fi
12662fi
12663
12664if test "$wxUSE_X_RESOURCES" = "yes"; then
12665 cat >> confdefs.h <<\EOF
12666#define wxUSE_X_RESOURCES 1
12667EOF
12668
12669fi
12670
12671
12672if test "$wxUSE_IPC" = "yes"; then
12673 cat >> confdefs.h <<\EOF
12674#define wxUSE_IPC 1
12675EOF
12676
12677fi
12678
12679if test "$wxUSE_CLIPBOARD" = "yes"; then
12680 cat >> confdefs.h <<\EOF
12681#define wxUSE_CLIPBOARD 1
12682EOF
12683
12684fi
12685
12686if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
12687 if test "$wxUSE_GTK" = 1; then
12688 if test "$WXGTK12" != 1; then
12689 echo "configure: warning: Drag and drop is only supported under GTK+ 1.2" 1>&2
12690 wxUSE_DRAG_AND_DROP=no
12691 fi
12692 fi
12693
12694 if test "$wxUSE_MOTIF" = 1; then
12695 echo "configure: warning: Drag and drop is not yet supported under Motif" 1>&2
12696 wxUSE_DRAG_AND_DROP=no
12697 fi
12698
12699 if test "$USE_WIN32" = 1; then
12700 for ac_hdr in ole2.h
12701do
12702ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12703echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
cd6d6d5b 12704echo "configure:12705: checking for $ac_hdr" >&5
10f2d63a
VZ
12705if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12706 echo $ac_n "(cached) $ac_c" 1>&6
12707else
12708 cat > conftest.$ac_ext <<EOF
cd6d6d5b 12709#line 12710 "configure"
10f2d63a
VZ
12710#include "confdefs.h"
12711#include <$ac_hdr>
12712EOF
12713ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
cd6d6d5b 12714{ (eval echo configure:12715: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
12715ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12716if test -z "$ac_err"; then
12717 rm -rf conftest*
12718 eval "ac_cv_header_$ac_safe=yes"
12719else
12720 echo "$ac_err" >&5
12721 echo "configure: failed program was:" >&5
12722 cat conftest.$ac_ext >&5
12723 rm -rf conftest*
12724 eval "ac_cv_header_$ac_safe=no"
12725fi
12726rm -f conftest*
12727fi
12728if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12729 echo "$ac_t""yes" 1>&6
12730 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12731 cat >> confdefs.h <<EOF
12732#define $ac_tr_hdr 1
12733EOF
12734
12735else
12736 echo "$ac_t""no" 1>&6
12737fi
12738done
12739
12740 if test "x$HAVE_OLE2_H" = x ; then
12741 echo "configure: warning: Drag and drop disabled because OLE headers not found" 1>&2
12742 wxUSE_DRAG_AND_DROP=no
12743 fi
12744 fi
12745
12746 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
12747 cat >> confdefs.h <<\EOF
12748#define wxUSE_DRAG_AND_DROP 1
12749EOF
12750
12751 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
12752 fi
12753
12754fi
12755
12756if test "$wxUSE_SPLINES" = "yes" ; then
12757 cat >> confdefs.h <<\EOF
12758#define wxUSE_SPLINES 1
12759EOF
12760
12761fi
12762
12763
12764if test "$wxUSE_ACCEL" = "yes"; then
12765 cat >> confdefs.h <<\EOF
12766#define wxUSE_ACCEL 1
12767EOF
12768
12769fi
12770
12771if test "$wxUSE_CARET" = "yes"; then
12772 cat >> confdefs.h <<\EOF
12773#define wxUSE_CARET 1
12774EOF
12775
12776 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
12777fi
12778
12779if test "$wxUSE_COMBOBOX" = "yes"; then
12780 cat >> confdefs.h <<\EOF
12781#define wxUSE_COMBOBOX 1
12782EOF
12783
12784fi
12785
12786if test "$wxUSE_CHOICE" = "yes"; then
12787 cat >> confdefs.h <<\EOF
12788#define wxUSE_CHOICE 1
12789EOF
12790
12791fi
12792
12793if test "$wxUSE_BMPBUTTON" = "yes"; then
12794 cat >> confdefs.h <<\EOF
12795#define wxUSE_BMPBUTTON 1
12796EOF
12797
12798fi
12799
12800if test "$wxUSE_CHECKBOX" = "yes"; then
12801 cat >> confdefs.h <<\EOF
12802#define wxUSE_CHECKBOX 1
12803EOF
12804
12805fi
12806
12807if test "$wxUSE_CHECKLST" = "yes"; then
12808 cat >> confdefs.h <<\EOF
12809#define wxUSE_CHECKLISTBOX 1
12810EOF
12811
12812 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
12813fi
12814
12815if test "$wxUSE_GAUGE" = "yes"; then
12816 cat >> confdefs.h <<\EOF
12817#define wxUSE_GAUGE 1
12818EOF
12819
12820fi
12821
12822if test "$wxUSE_GRID" = "yes"; then
12823 cat >> confdefs.h <<\EOF
12824#define wxUSE_GRID 1
12825EOF
12826
12827 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
12828fi
12829
12830if test "$wxUSE_NEW_GRID" = "yes"; then
12831 cat >> confdefs.h <<\EOF
12832#define wxUSE_NEW_GRID 1
12833EOF
12834
12835 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS newgrid"
12836fi
12837
12838if test "$wxUSE_IMAGLIST" = "yes"; then
12839 cat >> confdefs.h <<\EOF
12840#define wxUSE_IMAGLIST 1
12841EOF
12842
12843fi
12844
12845if test "$wxUSE_LISTBOX" = "yes"; then
12846 cat >> confdefs.h <<\EOF
12847#define wxUSE_LISTBOX 1
12848EOF
12849
12850fi
12851
12852if test "$wxUSE_LISTCTRL" = "yes"; then
12853 if test "$wxUSE_IMAGLIST" = "yes"; then
12854 cat >> confdefs.h <<\EOF
12855#define wxUSE_LISTCTRL 1
12856EOF
12857
12858 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
12859 else
12860 echo "configure: warning: wxListCtrl requires wxImageList and won't be compiled without it" 1>&2
12861 fi
12862fi
12863
12864if test "$wxUSE_NOTEBOOK" = "yes"; then
12865 cat >> confdefs.h <<\EOF
12866#define wxUSE_NOTEBOOK 1
12867EOF
12868
12869 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
12870fi
12871
12872if test "$wxUSE_RADIOBOX" = "yes"; then
12873 cat >> confdefs.h <<\EOF
12874#define wxUSE_RADIOBOX 1
12875EOF
12876
12877fi
12878
12879if test "$wxUSE_RADIOBTN" = "yes"; then
12880 cat >> confdefs.h <<\EOF
12881#define wxUSE_RADIOBTN 1
12882EOF
12883
12884fi
12885
12886if test "$wxUSE_SASH" = "yes"; then
12887 cat >> confdefs.h <<\EOF
12888#define wxUSE_SASH 1
12889EOF
12890
12891 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
12892fi
12893
12894if test "$wxUSE_SCROLLBAR" = "yes"; then
12895 cat >> confdefs.h <<\EOF
12896#define wxUSE_SCROLLBAR 1
12897EOF
12898
741a9306 12899 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
10f2d63a
VZ
12900fi
12901
12902if test "$wxUSE_SLIDER" = "yes"; then
12903 cat >> confdefs.h <<\EOF
12904#define wxUSE_SLIDER 1
12905EOF
12906
12907fi
12908
12909if test "$wxUSE_SPINBTN" = "yes"; then
12910 cat >> confdefs.h <<\EOF
12911#define wxUSE_SPINBTN 1
12912EOF
12913
12914fi
12915
56cfaa52
RR
12916if test "$wxUSE_SPINCTRL" = "yes"; then
12917 cat >> confdefs.h <<\EOF
12918#define wxUSE_SPINCTRL 1
12919EOF
12920
12921fi
12922
10f2d63a
VZ
12923if test "$wxUSE_SPLITTER" = "yes"; then
12924 cat >> confdefs.h <<\EOF
12925#define wxUSE_SPLITTER 1
12926EOF
12927
12928 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
12929fi
12930
12931if test "$wxUSE_STATBMP" = "yes"; then
12932 cat >> confdefs.h <<\EOF
12933#define wxUSE_STATBMP 1
12934EOF
12935
12936fi
12937
12938if test "$wxUSE_STATBOX" = "yes"; then
12939 cat >> confdefs.h <<\EOF
12940#define wxUSE_STATBOX 1
12941EOF
12942
12943fi
12944
12945if test "$wxUSE_STATLINE" = "yes"; then
12946 if test "$wxUSE_WINE" = 1 ; then
12947 echo "configure: warning: wxStaticLine is not supported under WINE" 1>&2
12948 else
12949 cat >> confdefs.h <<\EOF
12950#define wxUSE_STATLINE 1
12951EOF
12952
12953 fi
12954fi
12955
12956if test "$wxUSE_STATUSBAR" = "yes"; then
12957 cat >> confdefs.h <<\EOF
12958#define wxUSE_STATUSBAR 1
12959EOF
12960
2286341c
VZ
12961
12962 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
10f2d63a
VZ
12963fi
12964
12965if test "$wxUSE_TABDIALOG" = "yes"; then
12966 cat >> confdefs.h <<\EOF
12967#define wxUSE_TAB_DIALOG 1
12968EOF
12969
12970 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab"
12971fi
12972
360d6699
VZ
12973if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
12974 cat >> confdefs.h <<\EOF
12975#define wxUSE_TOOLBAR_SIMPLE 1
12976EOF
12977
12978 wxUSE_TOOLBAR="yes"
12979fi
12980
10f2d63a
VZ
12981if test "$wxUSE_TOOLBAR" = "yes"; then
12982 cat >> confdefs.h <<\EOF
12983#define wxUSE_TOOLBAR 1
12984EOF
12985
360d6699
VZ
12986
12987 if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
12988 wxUSE_TOOLBAR_NATIVE="yes"
12989 fi
12990
10f2d63a
VZ
12991 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
12992fi
12993
360d6699
VZ
12994if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
12995 cat >> confdefs.h <<\EOF
12996#define wxUSE_TOOLBAR_NATIVE 1
12997EOF
12998
12999fi
13000
10f2d63a
VZ
13001if test "$wxUSE_TOOLTIPS" = "yes"; then
13002 if test "$wxUSE_MOTIF" = 1; then
13003 echo "configure: warning: wxTooltip not supported yet under Motif" 1>&2
13004 else
13005 if test "$wxUSE_WINE" = 1; then
13006 echo "configure: warning: wxTooltip not supported under WINE" 1>&2
13007 else
13008 cat >> confdefs.h <<\EOF
13009#define wxUSE_TOOLTIPS 1
13010EOF
13011
13012 fi
13013 fi
13014fi
13015
13016if test "$wxUSE_TREECTRL" = "yes"; then
13017 if test "$wxUSE_IMAGLIST" = "yes"; then
13018 cat >> confdefs.h <<\EOF
13019#define wxUSE_TREECTRL 1
13020EOF
13021
13022 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
13023 else
13024 echo "configure: warning: wxTreeCtrl requires wxImageList and won't be compiled without it" 1>&2
13025 fi
13026fi
13027
13028
13029
13030if test "$wxUSE_METAFILE" = "yes"; then
13031 cat >> confdefs.h <<\EOF
13032#define wxUSE_METAFILE 1
13033EOF
13034
13035fi
13036
13037if test "$wxUSE_DIRDLG" = "yes"; then
13038 if test "$wxUSE_CONSTRAINTS" != "yes"; then
13039 echo "configure: warning: wxDirDialog requires constraints so it won't be compiled without them" 1>&2
13040 else
13041 if test "$wxUSE_TREECTRL" != "yes"; then
13042 echo "configure: warning: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" 1>&2
13043 else
13044 cat >> confdefs.h <<\EOF
13045#define wxUSE_DIRDLG 1
13046EOF
13047
13048 fi
13049 fi
13050fi
13051
13052if test "$wxUSE_TEXTDLG" = "yes"; then
13053 cat >> confdefs.h <<\EOF
13054#define wxUSE_TEXTDLG 1
13055EOF
13056
13057fi
13058
13059if test "$wxUSE_STARTUP_TIPS" = "yes"; then
13060 if test "$wxUSE_CONSTRAINTS" != "yes"; then
13061 echo "configure: warning: Startup tips requires constraints and won't be compiled without them" 1>&2
13062 else
13063 cat >> confdefs.h <<\EOF
13064#define wxUSE_STARTUP_TIPS 1
13065EOF
13066
13067 fi
13068fi
13069
13070if test "$wxUSE_PROGRESSDLG" = "yes"; then
13071 if test "$wxUSE_CONSTRAINTS" != "yes"; then
13072 echo "configure: warning: wxProgressDialog requires constraints so it won't be compiled without them" 1>&2
13073 else
13074 cat >> confdefs.h <<\EOF
13075#define wxUSE_PROGRESSDLG 1
13076EOF
13077
13078 fi
13079fi
13080
13081if test "$wxUSE_MINIFRAME" = "yes"; then
13082 cat >> confdefs.h <<\EOF
13083#define wxUSE_MINIFRAME 1
13084EOF
13085
13086 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
13087fi
13088
13089if test "$wxUSE_HTML" = "yes"; then
13090 cat >> confdefs.h <<\EOF
13091#define wxUSE_HTML 1
13092EOF
13093
13094 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html"
13095 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS html"
13096fi
13097
13098if test "$wxUSE_VALIDATORS" = "yes"; then
13099 cat >> confdefs.h <<\EOF
13100#define wxUSE_VALIDATORS 1
13101EOF
13102
13103 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
13104fi
13105
13106if test "$wxUSE_GIF" = "yes" ; then
13107 cat >> confdefs.h <<\EOF
13108#define wxUSE_GIF 1
13109EOF
13110
13111fi
13112
13113if test "$wxUSE_PCX" = "yes" ; then
13114 cat >> confdefs.h <<\EOF
13115#define wxUSE_PCX 1
13116EOF
13117
13118fi
13119
13120if test "$wxUSE_PNM" = "yes" ; then
13121 cat >> confdefs.h <<\EOF
13122#define wxUSE_PNM 1
13123EOF
13124
13125fi
13126
13127
aaa37c0d
VZ
13128OSINFO=`uname -s -r -m`
13129OSINFO="\"$OSINFO\""
13130cat >> confdefs.h <<EOF
13131#define WXWIN_OS_DESCRIPTION $OSINFO
13132EOF
13133
13134
13135
10f2d63a
VZ
13136GUILIBS="$GUI_TK_LIBRARY $OPENGL_LINK $LIBPNG_LINK $ZLIB_LINK $TOOLKIT_LINK"
13137
c63c7106 13138EXTRA_LIBS="$LIBS $POSIX4_LINK $INET_LINK $WCHAR_LINK $THREADS_LINK $DMALLOC_LINK $DL_LINK"
10f2d63a
VZ
13139if test "$wxUSE_GUI" = "yes"; then
13140 EXTRA_LIBS="$EXTRA_LIBS $GUILIBS"
13141fi
13142
13143LD_LIBS="\${top_builddir}/lib/${WX_LIBRARY_NAME_STATIC} $EXTRA_LIBS"
13144
c7a2bf27 13145INCLUDES="-I. -I\${top_builddir}/include -I\${top_srcdir}/include $ZLIB_INCLUDE $PNG_INCLUDE $JPEG_INCLUDE $TIFF_INCLUDE $TOOLKIT_INCLUDE"
10f2d63a
VZ
13146
13147if test "$GXX" = yes ; then
13148 CXXWARNINGS="-Wall"
13149 fi
13150EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE $INCLUDES"
13151
13152CFLAGS=`echo $CFLAGS $EXTRA_CFLAGS | sed 's/ \\+/ /g'`
13153CXXFLAGS=`echo $CXXFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \+/ /g'`
13154
e694c22c
VZ
13155LDFLAGS="$LDFLAGS $PROFILE"
13156
10f2d63a
VZ
13157if test "$wxUSE_GUI" = "yes"; then
13158
70f7a477
VZ
13159 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS controls dialogs drawing dynamic \
13160 font fractal image minimal richedit"
b12915c1 13161
e2b8b066 13162 CPPFLAGS="$CPPFLAGS \$(EXTRADEFS)"
10f2d63a
VZ
13163else
13164 SAMPLES_SUBDIRS=""
13165fi
13166
ec14dd32
VZ
13167SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
13168
13169
13170
10f2d63a
VZ
13171
13172
13173
13174
13175
13176
13177
13178
13179
13180
13181
13182
13183
13184
13185
13186
13187
13188
13189
13190
13191
13192
13193
13194
13195
13196
13197
13198
13199
13200
13201
13202
13203
13204
13205
13206
13207
13208
13209
13210
13211
13212
13213
13214
13215
13216
13217
13218
13219
13220
13221
13222
1d62a8b4 13223
e694c22c 13224
b12915c1 13225
2224580a
VZ
13226
13227
13228
13229
dad6c0ea
VZ
13230
13231
caa2c79b 13232
10f2d63a
VZ
13233
13234
13235echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
cd6d6d5b 13236echo "configure:13237: checking whether ${MAKE-make} sets \${MAKE}" >&5
10f2d63a
VZ
13237set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
13238if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
13239 echo $ac_n "(cached) $ac_c" 1>&6
13240else
13241 cat > conftestmake <<\EOF
13242all:
13243 @echo 'ac_maketemp="${MAKE}"'
13244EOF
13245# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
13246eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
13247if test -n "$ac_maketemp"; then
13248 eval ac_cv_prog_make_${ac_make}_set=yes
13249else
13250 eval ac_cv_prog_make_${ac_make}_set=no
13251fi
13252rm -f conftestmake
13253fi
13254if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
13255 echo "$ac_t""yes" 1>&6
13256 SET_MAKE=
13257else
13258 echo "$ac_t""no" 1>&6
13259 SET_MAKE="MAKE=${MAKE-make}"
13260fi
13261
13262
13263
13264
2224580a
VZ
13265if test "$wxUSE_GUI" = "yes"; then
13266 echo $ac_n "checking glcanvas subdirectory to use""... $ac_c" 1>&6
cd6d6d5b 13267echo "configure:13268: checking glcanvas subdirectory to use" >&5
2224580a
VZ
13268if eval "test \"`echo '$''{'wx_cv_path_glcanvas'+set}'`\" = set"; then
13269 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 13270else
2224580a
VZ
13271
13272 if test "${TOOLKIT_DIR}" = "msw" ; then
13273 wx_cv_path_glcanvas="win"
13274 else
13275 wx_cv_path_glcanvas="${TOOLKIT_DIR}"
13276 fi
13277
10f2d63a
VZ
13278fi
13279
2224580a
VZ
13280echo "$ac_t""$wx_cv_path_glcanvas" 1>&6
13281
ec90f5e5 13282 GL_TOOLKIT_DIR=$wx_cv_path_glcanvas
2224580a
VZ
13283
13284
ec90f5e5 13285 wx_cv_path_samplesubdirs=$SAMPLES_SUBDIRS
2224580a
VZ
13286 subdirs="demos samples utils"
13287
13288fi
10f2d63a
VZ
13289
13290trap '' 1 2 15
13291cat > confcache <<\EOF
13292# This file is a shell script that caches the results of configure
13293# tests run on this system so they can be shared between configure
13294# scripts and configure runs. It is not useful on other systems.
13295# If it contains results you don't want to keep, you may remove or edit it.
13296#
13297# By default, configure uses ./config.cache as the cache file,
13298# creating it if it does not exist already. You can give configure
13299# the --cache-file=FILE option to use a different cache file; that is
13300# what configure does when it calls configure scripts in
13301# subdirectories, so they share the cache.
13302# Giving --cache-file=/dev/null disables caching, for debugging configure.
13303# config.status only pays attention to the cache file if you give it the
13304# --recheck option to rerun configure.
13305#
13306EOF
13307# The following way of writing the cache mishandles newlines in values,
13308# but we know of no workaround that is simple, portable, and efficient.
13309# So, don't put newlines in cache variables' values.
13310# Ultrix sh set writes to stderr and can't be redirected directly,
13311# and sets the high bit in the cache file unless we assign to the vars.
13312(set) 2>&1 |
13313 case `(ac_space=' '; set | grep ac_space) 2>&1` in
13314 *ac_space=\ *)
13315 # `set' does not quote correctly, so add quotes (double-quote substitution
13316 # turns \\\\ into \\, and sed turns \\ into \).
13317 sed -n \
13318 -e "s/'/'\\\\''/g" \
13319 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
13320 ;;
13321 *)
13322 # `set' quotes correctly as required by POSIX, so do not add quotes.
13323 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
13324 ;;
13325 esac >> confcache
13326if cmp -s $cache_file confcache; then
13327 :
13328else
13329 if test -w $cache_file; then
13330 echo "updating cache $cache_file"
13331 cat confcache > $cache_file
13332 else
13333 echo "not updating unwritable cache $cache_file"
13334 fi
13335fi
13336rm -f confcache
13337
13338trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
13339
13340test "x$prefix" = xNONE && prefix=$ac_default_prefix
13341# Let make expand exec_prefix.
13342test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13343
13344# Any assignment to VPATH causes Sun make to only execute
13345# the first set of double-colon rules, so remove it if not needed.
13346# If there is a colon in the path, we need to keep it.
13347if test "x$srcdir" = x.; then
13348 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
13349fi
13350
13351trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
13352
13353DEFS=-DHAVE_CONFIG_H
13354
13355# Without the "./", some shells look in PATH for config.status.
13356: ${CONFIG_STATUS=./config.status}
13357
13358echo creating $CONFIG_STATUS
13359rm -f $CONFIG_STATUS
13360cat > $CONFIG_STATUS <<EOF
13361#! /bin/sh
13362# Generated automatically by configure.
13363# Run this file to recreate the current configuration.
13364# This directory was configured as follows,
13365# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13366#
13367# $0 $ac_configure_args
13368#
13369# Compiler output produced by configure, useful for debugging
13370# configure, is in ./config.log if it exists.
13371
13372ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
13373for ac_option
13374do
13375 case "\$ac_option" in
13376 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13377 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
13378 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
13379 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
2224580a 13380 echo "$CONFIG_STATUS generated by autoconf version 2.13"
10f2d63a
VZ
13381 exit 0 ;;
13382 -help | --help | --hel | --he | --h)
13383 echo "\$ac_cs_usage"; exit 0 ;;
13384 *) echo "\$ac_cs_usage"; exit 1 ;;
13385 esac
13386done
13387
13388ac_given_srcdir=$srcdir
13389ac_given_INSTALL="$INSTALL"
13390
13391trap 'rm -fr `echo "
13392 wx-config
13393 src/make.env
13394 src/makeprog.env
13395 src/makelib.env
13396 Makefile
10f2d63a
VZ
13397 setup.h:setup.h.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
13398EOF
13399cat >> $CONFIG_STATUS <<EOF
13400
13401# Protect against being on the right side of a sed subst in config.status.
13402sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
13403 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
13404$ac_vpsub
13405$extrasub
13406s%@SHELL@%$SHELL%g
13407s%@CFLAGS@%$CFLAGS%g
13408s%@CPPFLAGS@%$CPPFLAGS%g
13409s%@CXXFLAGS@%$CXXFLAGS%g
13410s%@FFLAGS@%$FFLAGS%g
13411s%@DEFS@%$DEFS%g
13412s%@LDFLAGS@%$LDFLAGS%g
13413s%@LIBS@%$LIBS%g
13414s%@exec_prefix@%$exec_prefix%g
13415s%@prefix@%$prefix%g
13416s%@program_transform_name@%$program_transform_name%g
13417s%@bindir@%$bindir%g
13418s%@sbindir@%$sbindir%g
13419s%@libexecdir@%$libexecdir%g
13420s%@datadir@%$datadir%g
13421s%@sysconfdir@%$sysconfdir%g
13422s%@sharedstatedir@%$sharedstatedir%g
13423s%@localstatedir@%$localstatedir%g
13424s%@libdir@%$libdir%g
13425s%@includedir@%$includedir%g
13426s%@oldincludedir@%$oldincludedir%g
13427s%@infodir@%$infodir%g
13428s%@mandir@%$mandir%g
7c66a493
VZ
13429s%@host@%$host%g
13430s%@host_alias@%$host_alias%g
13431s%@host_cpu@%$host_cpu%g
13432s%@host_vendor@%$host_vendor%g
13433s%@host_os@%$host_os%g
13434s%@target@%$target%g
13435s%@target_alias@%$target_alias%g
13436s%@target_cpu@%$target_cpu%g
13437s%@target_vendor@%$target_vendor%g
13438s%@target_os@%$target_os%g
13439s%@build@%$build%g
13440s%@build_alias@%$build_alias%g
13441s%@build_cpu@%$build_cpu%g
13442s%@build_vendor@%$build_vendor%g
13443s%@build_os@%$build_os%g
10f2d63a
VZ
13444s%@CC@%$CC%g
13445s%@CPP@%$CPP%g
13446s%@CXX@%$CXX%g
13447s%@CXXCPP@%$CXXCPP%g
13448s%@RANLIB@%$RANLIB%g
13449s%@AR@%$AR%g
13450s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
13451s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
13452s%@INSTALL_DATA@%$INSTALL_DATA%g
13453s%@STRIP@%$STRIP%g
13454s%@YACC@%$YACC%g
13455s%@LEX@%$LEX%g
13456s%@LEXLIB@%$LEXLIB%g
13457s%@LN_S@%$LN_S%g
13458s%@GTK_CONFIG@%$GTK_CONFIG%g
13459s%@GTK_CFLAGS@%$GTK_CFLAGS%g
13460s%@GTK_LIBS@%$GTK_LIBS%g
ab9b9eab
VZ
13461s%@X_CFLAGS@%$X_CFLAGS%g
13462s%@X_PRE_LIBS@%$X_PRE_LIBS%g
13463s%@X_LIBS@%$X_LIBS%g
13464s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
ec14dd32
VZ
13465s%@LEX_STEM@%$LEX_STEM%g
13466s%@PATH_IFS@%$PATH_IFS%g
10f2d63a
VZ
13467s%@WX_MAJOR_VERSION_NUMBER@%$WX_MAJOR_VERSION_NUMBER%g
13468s%@WX_MINOR_VERSION_NUMBER@%$WX_MINOR_VERSION_NUMBER%g
13469s%@WX_RELEASE_NUMBER@%$WX_RELEASE_NUMBER%g
13470s%@WX_LIBRARY_NAME@%$WX_LIBRARY_NAME%g
13471s%@WX_LIBRARY_NAME_STATIC@%$WX_LIBRARY_NAME_STATIC%g
13472s%@WX_LIBRARY_NAME_SHARED@%$WX_LIBRARY_NAME_SHARED%g
13473s%@WX_LIBRARY@%$WX_LIBRARY%g
13474s%@WX_TARGET_LIBRARY@%$WX_TARGET_LIBRARY%g
13475s%@WX_LIBRARY_LINK1@%$WX_LIBRARY_LINK1%g
13476s%@WX_LIBRARY_LINK2@%$WX_LIBRARY_LINK2%g
13477s%@WX_LIBRARY_LINK3@%$WX_LIBRARY_LINK3%g
13478s%@PROGRAM_EXT@%$PROGRAM_EXT%g
13479s%@WX_ALL@%$WX_ALL%g
13480s%@WX_ALL_INSTALLED@%$WX_ALL_INSTALLED%g
13481s%@SHARED_LD@%$SHARED_LD%g
13482s%@PIC_FLAG@%$PIC_FLAG%g
13483s%@DEP_INFO_FLAGS@%$DEP_INFO_FLAGS%g
caa2c79b 13484s%@CODE_GEN_FLAGS@%$CODE_GEN_FLAGS%g
1d62a8b4 13485s%@BURNT_LIBRARY_NAME@%$BURNT_LIBRARY_NAME%g
10f2d63a 13486s%@WXDEBUG_DEFINE@%$WXDEBUG_DEFINE%g
dad6c0ea
VZ
13487s%@USE_GUI@%$USE_GUI%g
13488s%@AFMINSTALL@%$AFMINSTALL%g
10f2d63a
VZ
13489s%@TOOLKIT@%$TOOLKIT%g
13490s%@TOOLKIT_DEF@%$TOOLKIT_DEF%g
13491s%@TOOLKIT_DIR@%$TOOLKIT_DIR%g
13492s%@TOOLKIT_INCLUDE@%$TOOLKIT_INCLUDE%g
13493s%@GUIHEADERS@%$GUIHEADERS%g
13494s%@GUIOBJS@%$GUIOBJS%g
13495s%@COMMONOBJS@%$COMMONOBJS%g
13496s%@GENERICOBJS@%$GENERICOBJS%g
13497s%@GUIDEPS@%$GUIDEPS%g
13498s%@COMMONDEPS@%$COMMONDEPS%g
13499s%@GENERICDEPS@%$GENERICDEPS%g
13500s%@IODBCOBJS@%$IODBCOBJS%g
13501s%@UNIXOBJS@%$UNIXOBJS%g
13502s%@UNIXDEPS@%$UNIXDEPS%g
13503s%@ALL_OBJECTS@%$ALL_OBJECTS%g
13504s%@ALL_DEPFILES@%$ALL_DEPFILES%g
10f2d63a 13505s%@GUIDIST@%$GUIDIST%g
2224580a
VZ
13506s%@PORT_FILES@%$PORT_FILES%g
13507s%@DISTDIR@%$DISTDIR%g
13508s%@RPM_SPEC@%$RPM_SPEC%g
13509s%@RPM_FILES@%$RPM_FILES%g
10f2d63a
VZ
13510s%@SRC_SUBDIRS@%$SRC_SUBDIRS%g
13511s%@INCLUDE_SUBDIRS@%$INCLUDE_SUBDIRS%g
13512s%@UTILS_SUBDIRS@%$UTILS_SUBDIRS%g
13513s%@DOCS_SUBDIRS@%$DOCS_SUBDIRS%g
13514s%@SAMPLES_SUBDIRS@%$SAMPLES_SUBDIRS%g
13515s%@USER_SUBDIRS@%$USER_SUBDIRS%g
13516s%@EXTRA_LIBS@%$EXTRA_LIBS%g
b12915c1 13517s%@EXTRADEFS@%$EXTRADEFS%g
10f2d63a
VZ
13518s%@LD_LIBS@%$LD_LIBS%g
13519s%@SET_MAKE@%$SET_MAKE%g
13520s%@GL_TOOLKIT_DIR@%$GL_TOOLKIT_DIR%g
2224580a 13521s%@subdirs@%$subdirs%g
10f2d63a
VZ
13522
13523CEOF
13524EOF
13525
13526cat >> $CONFIG_STATUS <<\EOF
13527
13528# Split the substitutions into bite-sized pieces for seds with
13529# small command number limits, like on Digital OSF/1 and HP-UX.
13530ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
13531ac_file=1 # Number of current file.
13532ac_beg=1 # First line for current file.
13533ac_end=$ac_max_sed_cmds # Line after last line for current file.
13534ac_more_lines=:
13535ac_sed_cmds=""
13536while $ac_more_lines; do
13537 if test $ac_beg -gt 1; then
13538 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
13539 else
13540 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
13541 fi
13542 if test ! -s conftest.s$ac_file; then
13543 ac_more_lines=false
13544 rm -f conftest.s$ac_file
13545 else
13546 if test -z "$ac_sed_cmds"; then
13547 ac_sed_cmds="sed -f conftest.s$ac_file"
13548 else
13549 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
13550 fi
13551 ac_file=`expr $ac_file + 1`
13552 ac_beg=$ac_end
13553 ac_end=`expr $ac_end + $ac_max_sed_cmds`
13554 fi
13555done
13556if test -z "$ac_sed_cmds"; then
13557 ac_sed_cmds=cat
13558fi
13559EOF
13560
13561cat >> $CONFIG_STATUS <<EOF
13562
13563CONFIG_FILES=\${CONFIG_FILES-"wx-config
13564 src/make.env
13565 src/makeprog.env
13566 src/makelib.env
13567 Makefile
10f2d63a
VZ
13568 "}
13569EOF
13570cat >> $CONFIG_STATUS <<\EOF
13571for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
13572 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13573 case "$ac_file" in
13574 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
13575 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
13576 *) ac_file_in="${ac_file}.in" ;;
13577 esac
13578
13579 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
13580
13581 # Remove last slash and all that follows it. Not all systems have dirname.
13582 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
13583 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
13584 # The file is in a subdirectory.
13585 test ! -d "$ac_dir" && mkdir "$ac_dir"
13586 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
13587 # A "../" for each directory in $ac_dir_suffix.
13588 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
13589 else
13590 ac_dir_suffix= ac_dots=
13591 fi
13592
13593 case "$ac_given_srcdir" in
13594 .) srcdir=.
13595 if test -z "$ac_dots"; then top_srcdir=.
13596 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
13597 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
13598 *) # Relative path.
13599 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
13600 top_srcdir="$ac_dots$ac_given_srcdir" ;;
13601 esac
13602
13603 case "$ac_given_INSTALL" in
13604 [/$]*) INSTALL="$ac_given_INSTALL" ;;
13605 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
13606 esac
13607
13608 echo creating "$ac_file"
13609 rm -f "$ac_file"
13610 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
13611 case "$ac_file" in
13612 *Makefile*) ac_comsub="1i\\
13613# $configure_input" ;;
13614 *) ac_comsub= ;;
13615 esac
13616
13617 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
13618 sed -e "$ac_comsub
13619s%@configure_input@%$configure_input%g
13620s%@srcdir@%$srcdir%g
13621s%@top_srcdir@%$top_srcdir%g
13622s%@INSTALL@%$INSTALL%g
13623" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
13624fi; done
13625rm -f conftest.s*
13626
13627# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
13628# NAME is the cpp macro being defined and VALUE is the value it is being given.
13629#
13630# ac_d sets the value in "#define NAME VALUE" lines.
13631ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
13632ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
13633ac_dC='\3'
13634ac_dD='%g'
13635# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
13636ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
13637ac_uB='\([ ]\)%\1#\2define\3'
13638ac_uC=' '
13639ac_uD='\4%g'
13640# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
13641ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
13642ac_eB='$%\1#\2define\3'
13643ac_eC=' '
13644ac_eD='%g'
13645
13646if test "${CONFIG_HEADERS+set}" != set; then
13647EOF
13648cat >> $CONFIG_STATUS <<EOF
13649 CONFIG_HEADERS="setup.h:setup.h.in"
13650EOF
13651cat >> $CONFIG_STATUS <<\EOF
13652fi
13653for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
13654 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13655 case "$ac_file" in
13656 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
13657 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
13658 *) ac_file_in="${ac_file}.in" ;;
13659 esac
13660
13661 echo creating $ac_file
13662
13663 rm -f conftest.frag conftest.in conftest.out
13664 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
13665 cat $ac_file_inputs > conftest.in
13666
13667EOF
13668
13669# Transform confdefs.h into a sed script conftest.vals that substitutes
13670# the proper values into config.h.in to produce config.h. And first:
13671# Protect against being on the right side of a sed subst in config.status.
13672# Protect against being in an unquoted here document in config.status.
13673rm -f conftest.vals
13674cat > conftest.hdr <<\EOF
13675s/[\\&%]/\\&/g
13676s%[\\$`]%\\&%g
13677s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
13678s%ac_d%ac_u%gp
13679s%ac_u%ac_e%gp
13680EOF
13681sed -n -f conftest.hdr confdefs.h > conftest.vals
13682rm -f conftest.hdr
13683
13684# This sed command replaces #undef with comments. This is necessary, for
13685# example, in the case of _POSIX_SOURCE, which is predefined and required
13686# on some systems where configure will not decide to define it.
13687cat >> conftest.vals <<\EOF
13688s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
13689EOF
13690
13691# Break up conftest.vals because some shells have a limit on
13692# the size of here documents, and old seds have small limits too.
13693
13694rm -f conftest.tail
13695while :
13696do
13697 ac_lines=`grep -c . conftest.vals`
13698 # grep -c gives empty output for an empty file on some AIX systems.
13699 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
13700 # Write a limited-size here document to conftest.frag.
13701 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
13702 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
13703 echo 'CEOF
13704 sed -f conftest.frag conftest.in > conftest.out
13705 rm -f conftest.in
13706 mv conftest.out conftest.in
13707' >> $CONFIG_STATUS
13708 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
13709 rm -f conftest.vals
13710 mv conftest.tail conftest.vals
13711done
13712rm -f conftest.vals
13713
13714cat >> $CONFIG_STATUS <<\EOF
13715 rm -f conftest.frag conftest.h
13716 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
13717 cat conftest.in >> conftest.h
13718 rm -f conftest.in
13719 if cmp -s $ac_file conftest.h 2>/dev/null; then
13720 echo "$ac_file is unchanged"
13721 rm -f conftest.h
13722 else
13723 # Remove last slash and all that follows it. Not all systems have dirname.
13724 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
13725 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
13726 # The file is in a subdirectory.
13727 test ! -d "$ac_dir" && mkdir "$ac_dir"
13728 fi
13729 rm -f $ac_file
13730 mv conftest.h $ac_file
13731 fi
13732fi; done
13733
13734EOF
13735cat >> $CONFIG_STATUS <<EOF
13736
13737 TOOLKIT_DIR="${TOOLKIT_DIR}"
13738
13739
13740EOF
13741cat >> $CONFIG_STATUS <<\EOF
13742
13743 chmod +x wx-config
13744 if test ! -d include; then
13745 mkdir include
13746 fi
13747 if test ! -d include/wx; then
13748 mkdir include/wx
13749 fi
13750 if test ! -d include/wx/${TOOLKIT_DIR}; then
13751 mkdir include/wx/${TOOLKIT_DIR}
13752 fi
afc31813
VZ
13753 if test -f setup.h; then
13754 mv -f setup.h include/wx/${TOOLKIT_DIR}/setup.h
13755 fi
10f2d63a
VZ
13756
13757exit 0
13758EOF
13759chmod +x $CONFIG_STATUS
13760rm -fr confdefs* $ac_clean_files
13761test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
13762
2224580a
VZ
13763if test "$no_recursion" != yes; then
13764
13765 # Remove --cache-file and --srcdir arguments so they do not pile up.
13766 ac_sub_configure_args=
13767 ac_prev=
13768 for ac_arg in $ac_configure_args; do
13769 if test -n "$ac_prev"; then
13770 ac_prev=
13771 continue
13772 fi
13773 case "$ac_arg" in
13774 -cache-file | --cache-file | --cache-fil | --cache-fi \
13775 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
13776 ac_prev=cache_file ;;
13777 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
13778 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
13779 ;;
13780 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
13781 ac_prev=srcdir ;;
13782 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
13783 ;;
13784 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
13785 esac
13786 done
13787
13788 for ac_config_dir in demos samples utils; do
13789
13790 # Do not complain, so a configure script can configure whichever
13791 # parts of a large source tree are present.
13792 if test ! -d $srcdir/$ac_config_dir; then
13793 continue
13794 fi
13795
13796 echo configuring in $ac_config_dir
13797
13798 case "$srcdir" in
13799 .) ;;
13800 *)
13801 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
13802 else
13803 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
13804 fi
13805 ;;
13806 esac
13807
13808 ac_popdir=`pwd`
13809 cd $ac_config_dir
13810
13811 # A "../" for each directory in /$ac_config_dir.
13812 ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
13813
13814 case "$srcdir" in
13815 .) # No --srcdir option. We are building in place.
13816 ac_sub_srcdir=$srcdir ;;
13817 /*) # Absolute path.
13818 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
13819 *) # Relative path.
13820 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
13821 esac
13822
13823 # Check for guested configure; otherwise get Cygnus style configure.
13824 if test -f $ac_sub_srcdir/configure; then
13825 ac_sub_configure=$ac_sub_srcdir/configure
13826 elif test -f $ac_sub_srcdir/configure.in; then
13827 ac_sub_configure=$ac_configure
13828 else
13829 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
13830 ac_sub_configure=
13831 fi
13832
13833 # The recursion is here.
13834 if test -n "$ac_sub_configure"; then
13835
13836 # Make the cache file name correct relative to the subdirectory.
13837 case "$cache_file" in
13838 /*) ac_sub_cache_file=$cache_file ;;
13839 *) # Relative path.
13840 ac_sub_cache_file="$ac_dots$cache_file" ;;
13841 esac
13842 case "$ac_given_INSTALL" in
13843 [/$]*) INSTALL="$ac_given_INSTALL" ;;
13844 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
13845 esac
13846
13847 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
13848 # The eval makes quoting arguments work.
13849 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
13850 then :
13851 else
13852 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
13853 fi
13854 fi
13855
13856 cd $ac_popdir
13857 done
13858fi
13859
10f2d63a 13860