]> git.saurik.com Git - wxWidgets.git/blame - configure
Fixed bug in DnD. wxDragSource will now delete itself when done.
[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.
69ffe1d2 41# Generated automatically using autoconf version 2.14
10f2d63a
VZ
42# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
43#
44# This configure script is free software; the Free Software Foundation
45# gives unlimited permission to copy, distribute and modify it.
46
47# Defaults:
48ac_help=
49ac_default_prefix=/usr/local
50# Any additions from configure.in:
51ac_help="$ac_help
52--enable-gui use GUI classes"
53ac_help="$ac_help
54 --with-gtk use GTK+"
55ac_help="$ac_help
56 --with-motif use Motif/Lesstif"
57ac_help="$ac_help
58 --with-wine use WINE"
59ac_help="$ac_help
60 --with-cygwin use Cygwin for MS-Windows"
61ac_help="$ac_help
62 --with-mingw use GCC Minimal MS-Windows"
63ac_help="$ac_help
64 --with-gtk-prefix=PFX Prefix where GTK is installed"
65ac_help="$ac_help
66 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed"
67ac_help="$ac_help
68--with-dmalloc use dmalloc library (www.letters.com/dmalloc)"
69ac_help="$ac_help
70--with-zlib use zlib for LZW compression"
71ac_help="$ac_help
72--with-libpng use libpng (PNG image format)"
73ac_help="$ac_help
74--with-libjpeg use libjpeg (JPEG file format)"
75ac_help="$ac_help
76--with-opengl use OpenGL (or Mesa)"
77ac_help="$ac_help
78--with-odbc use the IODBC and wxODBC classes"
79ac_help="$ac_help
80--enable-shared create shared library code"
81ac_help="$ac_help
82--enable-optimise create optimised code"
83ac_help="$ac_help
84--enable-debug same as debug_flag and debug_info"
85ac_help="$ac_help
86--enable-debug_flag set __WXDEBUG__ flag (recommended for developers!)"
87ac_help="$ac_help
88--enable-debug_info create code with debugging information"
89ac_help="$ac_help
90--enable-debug_gdb create code with extra GDB debugging information"
91ac_help="$ac_help
92--enable-debug_cntxt use wxDebugContext"
93ac_help="$ac_help
94--enable-mem_tracing create code with memory tracing"
95ac_help="$ac_help
96--enable-profile create code with profiling information"
97ac_help="$ac_help
98--enable-no_rtti create code without RTTI information"
99ac_help="$ac_help
100--enable-no_exceptions create code without exceptions information"
101ac_help="$ac_help
102--enable-permissive compile code disregarding strict ANSI"
103ac_help="$ac_help
104--enable-no_deps create code without dependency information"
105ac_help="$ac_help
106--enable-intl use internationalization system"
107ac_help="$ac_help
108--enable-config use wxConfig (and derived) classes"
109ac_help="$ac_help
110--enable-sockets use socket/network classes"
111ac_help="$ac_help
112--enable-dialupman use dialup network classes"
113ac_help="$ac_help
114--enable-ipc use interprocess communication (wxSocket etc.)"
115ac_help="$ac_help
116--enable-apple_ieee use the Apple IEEE codec"
117ac_help="$ac_help
118--enable-timedate use date/time classes"
119ac_help="$ac_help
120--enable-wave use wxWave class"
121ac_help="$ac_help
122--enable-fraction use wxFraction class"
123ac_help="$ac_help
124--enable-dynlib use wxLibrary class for DLL loading"
125ac_help="$ac_help
126--enable-longlong use wxLongLong class"
127ac_help="$ac_help
128--enable-log use logging system"
129ac_help="$ac_help
130--enable-streams use wxStream etc classes"
131ac_help="$ac_help
132--enable-file use wxFile classes"
133ac_help="$ac_help
134--enable-textfile use wxTextFile classes"
135ac_help="$ac_help
136--enable-unicode compile wxString with Unicode support"
137ac_help="$ac_help
138--enable-wcsrtombs use wcsrtombs instead of buggy (GNU libc1/Linux libc5) wcstombs"
139ac_help="$ac_help
140--enable-wxprintfv use wxWindows implementation of vprintf()"
141ac_help="$ac_help
142--enable-joystick compile in joystick support (Linux only)"
143ac_help="$ac_help
144--enable-std_iostreams use standard C++ stream classes"
145ac_help="$ac_help
146--enable-fs_inet use virtual HTTP/FTP filesystems"
147ac_help="$ac_help
148--enable-fs_zip use virtual ZIP filesystems"
149ac_help="$ac_help
150--enable-zipstream use wxZipInputStream"
151ac_help="$ac_help
152--enable-threads use threads"
153ac_help="$ac_help
154--enable-serial use class serialization"
155ac_help="$ac_help
156--enable-docview use document view architecture"
157ac_help="$ac_help
158--enable-help use help (using external browser at present)"
159ac_help="$ac_help
160--enable-constraints use layout-constraints system"
161ac_help="$ac_help
162--enable-printarch use printing architecture"
163ac_help="$ac_help
164--enable-mdi use multiple document interface architecture"
165ac_help="$ac_help
166--enable-postscript use wxPostscriptDC device context (default for gtk+)"
167ac_help="$ac_help
168--enable-prologio use Prolog IO library"
169ac_help="$ac_help
170--enable-resources use wxWindows resources"
171ac_help="$ac_help
172--enable-xresources use X resources for save (default for gtk+)"
173ac_help="$ac_help
174--enable-clipboard use wxClipboard classes"
175ac_help="$ac_help
176--enable-dnd use Drag'n'Drop classes"
177ac_help="$ac_help
178--enable-wxtree make wxTree library"
179ac_help="$ac_help
180--enable-controls use all usual controls"
181ac_help="$ac_help
182--enable-accel use accelerators"
183ac_help="$ac_help
184--enable-caret use wxCaret class"
185ac_help="$ac_help
186--enable-bmpbutton use wxBitmapButton class"
187ac_help="$ac_help
188--enable-checkbox use wxCheckBox class"
189ac_help="$ac_help
190--enable-checklst use wxCheckListBox (listbox with checkboxes) class"
191ac_help="$ac_help
192--enable-choice use wxChoice class"
193ac_help="$ac_help
194--enable-combobox use wxComboBox classes"
195ac_help="$ac_help
196--enable-gauge use wxGauge class"
197ac_help="$ac_help
198--enable-grid use wxGrid class"
199ac_help="$ac_help
200--enable-newgrid use new wxGrid class"
201ac_help="$ac_help
202--enable-imaglist use wxImageList class"
203ac_help="$ac_help
204--enable-listbox use wxListBox class"
205ac_help="$ac_help
206--enable-listctrl use wxListCtrl class"
207ac_help="$ac_help
208--enable-notebook use wxNotebook class"
209ac_help="$ac_help
210--enable-radiobox use wxRadioBox class"
211ac_help="$ac_help
212--enable-radiobtn use wxRadioButton class"
213ac_help="$ac_help
214--enable-sash use wxSashWindow class"
215ac_help="$ac_help
216--enable-scrollbar use wxScrollBar class and scrollable windows"
217ac_help="$ac_help
218--enable-slider use wxSlider class"
219ac_help="$ac_help
220--enable-spinbtn use wxSpinButton class"
221ac_help="$ac_help
222--enable-splitter use wxSplitterWindow class"
223ac_help="$ac_help
224--enable-statbmp use wxStaticBitmap class"
225ac_help="$ac_help
226--enable-statbox use wxStaticBox class"
227ac_help="$ac_help
228--enable-statline use wxStaticLine class"
229ac_help="$ac_help
230--enable-statusbar use wxStatusBar class"
231ac_help="$ac_help
232--enable-tabdialog use wxTabControl class"
233ac_help="$ac_help
234--enable-toolbar use wxToolBar class"
235ac_help="$ac_help
236--enable-treectrl use wxTreeCtrl class"
237ac_help="$ac_help
238--enable-commondlg use common dialogs (wxDirDialog, wxProgressDialog, wxTextDialog, ...)"
239ac_help="$ac_help
240--enable-dirdlg use wxDirDialog"
241ac_help="$ac_help
242--enable-textdlg use wxTextDialog"
243ac_help="$ac_help
244--enable-tipdlg use startup tips"
245ac_help="$ac_help
246--enable-progressdlg use wxProgressDialog"
247ac_help="$ac_help
248--enable-miniframe use wxMiniFrame class"
249ac_help="$ac_help
250--enable-html use wxHTML sub-library"
251ac_help="$ac_help
252--enable-tooltips use wxToolTip class"
253ac_help="$ac_help
254--enable-splines use spline drawing code"
255ac_help="$ac_help
256--enable-validators use wxValidator and derived classes"
257ac_help="$ac_help
258--enable-busyinfo use wxBusyInfo"
259ac_help="$ac_help
260--enable-gif use gif images (GIF file format)"
261ac_help="$ac_help
262--enable-pcx use pcx images (PCX file format)"
263ac_help="$ac_help
264--enable-pnm use pnm images (PNM file format)"
ab9b9eab
VZ
265ac_help="$ac_help
266 --with-x use the X Window System"
10f2d63a
VZ
267
268# Initialize some variables set by options.
269# The variables have the same names as the options, with
270# dashes changed to underlines.
271build=NONE
272cache_file=./config.cache
273exec_prefix=NONE
274host=NONE
275no_create=
276nonopt=NONE
277no_recursion=
278prefix=NONE
279program_prefix=NONE
280program_suffix=NONE
281program_transform_name=s,x,x,
282silent=
283site=
284srcdir=
285target=NONE
286verbose=
287x_includes=NONE
288x_libraries=NONE
289bindir='${exec_prefix}/bin'
290sbindir='${exec_prefix}/sbin'
291libexecdir='${exec_prefix}/libexec'
292datadir='${prefix}/share'
293sysconfdir='${prefix}/etc'
294sharedstatedir='${prefix}/com'
295localstatedir='${prefix}/var'
296libdir='${exec_prefix}/lib'
297includedir='${prefix}/include'
298oldincludedir='/usr/include'
299infodir='${prefix}/info'
300mandir='${prefix}/man'
301
302# Initialize some other variables.
303subdirs=
304MFLAGS= MAKEFLAGS=
305SHELL=${CONFIG_SHELL-/bin/sh}
306# Maximum number of lines to put in a shell here document.
307ac_max_here_lines=12
308
309ac_prev=
310for ac_option
311do
312
313 # If the previous option needs an argument, assign it.
314 if test -n "$ac_prev"; then
315 eval "$ac_prev=\$ac_option"
316 ac_prev=
317 continue
318 fi
319
320 case "$ac_option" in
321 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
322 *) ac_optarg= ;;
323 esac
324
325 # Accept the important Cygnus configure options, so we can diagnose typos.
326
327 case "$ac_option" in
328
329 -bindir | --bindir | --bindi | --bind | --bin | --bi)
330 ac_prev=bindir ;;
331 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
332 bindir="$ac_optarg" ;;
333
334 -build | --build | --buil | --bui | --bu)
335 ac_prev=build ;;
336 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
337 build="$ac_optarg" ;;
338
339 -cache-file | --cache-file | --cache-fil | --cache-fi \
340 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
341 ac_prev=cache_file ;;
342 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
343 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
344 cache_file="$ac_optarg" ;;
345
346 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
347 ac_prev=datadir ;;
348 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
349 | --da=*)
350 datadir="$ac_optarg" ;;
351
352 -disable-* | --disable-*)
353 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
354 # Reject names that are not valid shell variable names.
355 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
356 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
357 fi
358 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
359 eval "enable_${ac_feature}=no" ;;
360
361 -enable-* | --enable-*)
362 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
363 # Reject names that are not valid shell variable names.
364 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
365 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
366 fi
367 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
368 case "$ac_option" in
369 *=*) ;;
370 *) ac_optarg=yes ;;
371 esac
372 eval "enable_${ac_feature}='$ac_optarg'" ;;
373
374 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
375 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
376 | --exec | --exe | --ex)
377 ac_prev=exec_prefix ;;
378 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
379 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
380 | --exec=* | --exe=* | --ex=*)
381 exec_prefix="$ac_optarg" ;;
382
383 -gas | --gas | --ga | --g)
384 # Obsolete; use --with-gas.
385 with_gas=yes ;;
386
387 -help | --help | --hel | --he)
388 # Omit some internal or obsolete options to make the list less imposing.
389 # This message is too long to be a string in the A/UX 3.1 sh.
390 cat << EOF
391Usage: configure [options] [host]
392Options: [defaults in brackets after descriptions]
393Configuration:
394 --cache-file=FILE cache test results in FILE
395 --help print this message
396 --no-create do not create output files
397 --quiet, --silent do not print \`checking...' messages
398 --version print the version of autoconf that created configure
399Directory and file names:
400 --prefix=PREFIX install architecture-independent files in PREFIX
401 [$ac_default_prefix]
402 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
403 [same as prefix]
404 --bindir=DIR user executables in DIR [EPREFIX/bin]
405 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
406 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
407 --datadir=DIR read-only architecture-independent data in DIR
408 [PREFIX/share]
409 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
410 --sharedstatedir=DIR modifiable architecture-independent data in DIR
411 [PREFIX/com]
412 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
413 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
414 --includedir=DIR C header files in DIR [PREFIX/include]
415 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
416 --infodir=DIR info documentation in DIR [PREFIX/info]
417 --mandir=DIR man documentation in DIR [PREFIX/man]
418 --srcdir=DIR find the sources in DIR [configure dir or ..]
419 --program-prefix=PREFIX prepend PREFIX to installed program names
420 --program-suffix=SUFFIX append SUFFIX to installed program names
421 --program-transform-name=PROGRAM
422 run sed PROGRAM on installed program names
423EOF
424 cat << EOF
425Host type:
426 --build=BUILD configure for building on BUILD [BUILD=HOST]
427 --host=HOST configure for HOST [guessed]
428 --target=TARGET configure for TARGET [TARGET=HOST]
429Features and packages:
430 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
431 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
432 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
433 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
434 --x-includes=DIR X include files are in DIR
435 --x-libraries=DIR X library files are in DIR
436EOF
437 if test -n "$ac_help"; then
438 echo "--enable and --with options recognized:$ac_help"
439 fi
440 exit 0 ;;
441
442 -host | --host | --hos | --ho)
443 ac_prev=host ;;
444 -host=* | --host=* | --hos=* | --ho=*)
445 host="$ac_optarg" ;;
446
447 -includedir | --includedir | --includedi | --included | --include \
448 | --includ | --inclu | --incl | --inc)
449 ac_prev=includedir ;;
450 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
451 | --includ=* | --inclu=* | --incl=* | --inc=*)
452 includedir="$ac_optarg" ;;
453
454 -infodir | --infodir | --infodi | --infod | --info | --inf)
455 ac_prev=infodir ;;
456 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
457 infodir="$ac_optarg" ;;
458
459 -libdir | --libdir | --libdi | --libd)
460 ac_prev=libdir ;;
461 -libdir=* | --libdir=* | --libdi=* | --libd=*)
462 libdir="$ac_optarg" ;;
463
464 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
465 | --libexe | --libex | --libe)
466 ac_prev=libexecdir ;;
467 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
468 | --libexe=* | --libex=* | --libe=*)
469 libexecdir="$ac_optarg" ;;
470
471 -localstatedir | --localstatedir | --localstatedi | --localstated \
472 | --localstate | --localstat | --localsta | --localst \
473 | --locals | --local | --loca | --loc | --lo)
474 ac_prev=localstatedir ;;
475 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
476 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
477 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
478 localstatedir="$ac_optarg" ;;
479
480 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
481 ac_prev=mandir ;;
482 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
483 mandir="$ac_optarg" ;;
484
485 -nfp | --nfp | --nf)
486 # Obsolete; use --without-fp.
487 with_fp=no ;;
488
489 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
490 | --no-cr | --no-c)
491 no_create=yes ;;
492
493 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
494 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
495 no_recursion=yes ;;
496
497 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
498 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
499 | --oldin | --oldi | --old | --ol | --o)
500 ac_prev=oldincludedir ;;
501 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
502 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
503 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
504 oldincludedir="$ac_optarg" ;;
505
506 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
507 ac_prev=prefix ;;
508 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
509 prefix="$ac_optarg" ;;
510
511 -program-prefix | --program-prefix | --program-prefi | --program-pref \
512 | --program-pre | --program-pr | --program-p)
513 ac_prev=program_prefix ;;
514 -program-prefix=* | --program-prefix=* | --program-prefi=* \
515 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
516 program_prefix="$ac_optarg" ;;
517
518 -program-suffix | --program-suffix | --program-suffi | --program-suff \
519 | --program-suf | --program-su | --program-s)
520 ac_prev=program_suffix ;;
521 -program-suffix=* | --program-suffix=* | --program-suffi=* \
522 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
523 program_suffix="$ac_optarg" ;;
524
525 -program-transform-name | --program-transform-name \
526 | --program-transform-nam | --program-transform-na \
527 | --program-transform-n | --program-transform- \
528 | --program-transform | --program-transfor \
529 | --program-transfo | --program-transf \
530 | --program-trans | --program-tran \
531 | --progr-tra | --program-tr | --program-t)
532 ac_prev=program_transform_name ;;
533 -program-transform-name=* | --program-transform-name=* \
534 | --program-transform-nam=* | --program-transform-na=* \
535 | --program-transform-n=* | --program-transform-=* \
536 | --program-transform=* | --program-transfor=* \
537 | --program-transfo=* | --program-transf=* \
538 | --program-trans=* | --program-tran=* \
539 | --progr-tra=* | --program-tr=* | --program-t=*)
540 program_transform_name="$ac_optarg" ;;
541
542 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
543 | -silent | --silent | --silen | --sile | --sil)
544 silent=yes ;;
545
546 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
547 ac_prev=sbindir ;;
548 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
549 | --sbi=* | --sb=*)
550 sbindir="$ac_optarg" ;;
551
552 -sharedstatedir | --sharedstatedir | --sharedstatedi \
553 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
554 | --sharedst | --shareds | --shared | --share | --shar \
555 | --sha | --sh)
556 ac_prev=sharedstatedir ;;
557 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
558 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
559 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
560 | --sha=* | --sh=*)
561 sharedstatedir="$ac_optarg" ;;
562
563 -site | --site | --sit)
564 ac_prev=site ;;
565 -site=* | --site=* | --sit=*)
566 site="$ac_optarg" ;;
567
568 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
569 ac_prev=srcdir ;;
570 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
571 srcdir="$ac_optarg" ;;
572
573 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
574 | --syscon | --sysco | --sysc | --sys | --sy)
575 ac_prev=sysconfdir ;;
576 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
577 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
578 sysconfdir="$ac_optarg" ;;
579
580 -target | --target | --targe | --targ | --tar | --ta | --t)
581 ac_prev=target ;;
582 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
583 target="$ac_optarg" ;;
584
585 -v | -verbose | --verbose | --verbos | --verbo | --verb)
586 verbose=yes ;;
587
588 -version | --version | --versio | --versi | --vers)
69ffe1d2 589 echo "configure generated by autoconf version 2.14"
10f2d63a
VZ
590 exit 0 ;;
591
592 -with-* | --with-*)
593 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
594 # Reject names that are not valid shell variable names.
595 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
596 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
597 fi
598 ac_package=`echo $ac_package| sed 's/-/_/g'`
599 case "$ac_option" in
600 *=*) ;;
601 *) ac_optarg=yes ;;
602 esac
603 eval "with_${ac_package}='$ac_optarg'" ;;
604
605 -without-* | --without-*)
606 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
607 # Reject names that are not valid shell variable names.
608 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
609 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
610 fi
611 ac_package=`echo $ac_package| sed 's/-/_/g'`
612 eval "with_${ac_package}=no" ;;
613
614 --x)
615 # Obsolete; use --with-x.
616 with_x=yes ;;
617
618 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
619 | --x-incl | --x-inc | --x-in | --x-i)
620 ac_prev=x_includes ;;
621 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
622 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
623 x_includes="$ac_optarg" ;;
624
625 -x-libraries | --x-libraries | --x-librarie | --x-librari \
626 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
627 ac_prev=x_libraries ;;
628 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
629 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
630 x_libraries="$ac_optarg" ;;
631
632 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
633 ;;
634
635 *)
636 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
637 echo "configure: warning: $ac_option: invalid host type" 1>&2
638 fi
639 if test "x$nonopt" != xNONE; then
640 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
641 fi
642 nonopt="$ac_option"
643 ;;
644
645 esac
646done
647
648if test -n "$ac_prev"; then
649 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
650fi
651
652trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
653
654# File descriptor usage:
655# 0 standard input
656# 1 file creation
657# 2 errors and warnings
658# 3 some systems may open it to /dev/tty
659# 4 used on the Kubota Titan
660# 6 checking for... messages and results
661# 5 compiler messages saved in config.log
662if test "$silent" = yes; then
663 exec 6>/dev/null
664else
665 exec 6>&1
666fi
667exec 5>./config.log
668
669echo "\
670This file contains any messages produced by compilers while
671running configure, to aid debugging if configure makes a mistake.
672" 1>&5
673
674# Strip out --no-create and --no-recursion so they do not pile up.
675# Also quote any args containing shell metacharacters.
676ac_configure_args=
677for ac_arg
678do
679 case "$ac_arg" in
680 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
681 | --no-cr | --no-c) ;;
682 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
683 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
684 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
685 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
686 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
687 esac
688done
689
690# NLS nuisances.
691# Only set these to C if already set. These must not be set unconditionally
692# because not all systems understand e.g. LANG=C (notably SCO).
693# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
694# Non-C LC_CTYPE values break the ctype check.
695if test "${LANG+set}" = set; then LANG=C; export LANG; fi
696if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
697if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
698if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
699
700# confdefs.h avoids OS command line length limits that DEFS can exceed.
701rm -rf conftest* confdefs.h
702# AIX cpp loses on an empty file, so make sure it contains at least a newline.
703echo > confdefs.h
704
705# A filename unique to this package, relative to the directory that
706# configure is in, which we can look for to find out if srcdir is correct.
707ac_unique_file=wx-config.in
708
709# Find the source files, if location was not specified.
710if test -z "$srcdir"; then
711 ac_srcdir_defaulted=yes
712 # Try the directory containing this script, then its parent.
713 ac_prog=$0
714 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
715 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
716 srcdir=$ac_confdir
717 if test ! -r $srcdir/$ac_unique_file; then
718 srcdir=..
719 fi
720else
721 ac_srcdir_defaulted=no
722fi
723if test ! -r $srcdir/$ac_unique_file; then
724 if test "$ac_srcdir_defaulted" = yes; then
725 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
726 else
727 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
728 fi
729fi
730srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
731
732# Prefer explicitly selected file to automatically selected ones.
733if test -z "$CONFIG_SITE"; then
734 if test "x$prefix" != xNONE; then
735 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
736 else
737 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
738 fi
739fi
740for ac_site_file in $CONFIG_SITE; do
741 if test -r "$ac_site_file"; then
742 echo "loading site script $ac_site_file"
743 . "$ac_site_file"
744 fi
745done
746
747if test -r "$cache_file"; then
748 echo "loading cache $cache_file"
749 . $cache_file
750else
751 echo "creating cache $cache_file"
752 > $cache_file
753fi
754
755ac_ext=c
756# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
757ac_cpp='$CPP $CPPFLAGS'
758ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
759ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
760cross_compiling=$ac_cv_prog_cc_cross
761
762ac_exeext=
763ac_objext=o
764if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
765 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
766 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
767 ac_n= ac_c='
768' ac_t=' '
769 else
770 ac_n=-n ac_c= ac_t=
771 fi
772else
773 ac_n= ac_c='\c' ac_t=
774fi
775
776
777
778ac_aux_dir=
779for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
780 if test -f $ac_dir/install-sh; then
781 ac_aux_dir=$ac_dir
782 ac_install_sh="$ac_aux_dir/install-sh -c"
783 break
784 elif test -f $ac_dir/install.sh; then
785 ac_aux_dir=$ac_dir
786 ac_install_sh="$ac_aux_dir/install.sh -c"
787 break
788 fi
789done
790if test -z "$ac_aux_dir"; then
791 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
792fi
793ac_config_guess=$ac_aux_dir/config.guess
794ac_config_sub=$ac_aux_dir/config.sub
795ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
796
797
798# Do some error checking and defaulting for the host and target type.
799# The inputs are:
800# configure --host=HOST --target=TARGET --build=BUILD NONOPT
801#
802# The rules are:
803# 1. You are not allowed to specify --host, --target, and nonopt at the
804# same time.
805# 2. Host defaults to nonopt.
806# 3. If nonopt is not specified, then host defaults to the current host,
807# as determined by config.guess.
808# 4. Target and build default to nonopt.
809# 5. If nonopt is not specified, then target and build default to host.
810
811# The aliases save the names the user supplied, while $host etc.
812# will get canonicalized.
813case $host---$target---$nonopt in
814NONE---*---* | *---NONE---* | *---*---NONE) ;;
815*) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
816esac
817
818
819# Make sure we can run config.sub.
820if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
821else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
822fi
823
824echo $ac_n "checking host system type""... $ac_c" 1>&6
ab9b9eab 825echo "configure:826: checking host system type" >&5
10f2d63a
VZ
826
827host_alias=$host
828case "$host_alias" in
829NONE)
830 case $nonopt in
831 NONE)
832 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
833 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
834 fi ;;
835 *) host_alias=$nonopt ;;
836 esac ;;
837esac
838
839host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
840host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
841host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
842host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
843echo "$ac_t""$host" 1>&6
844
845echo $ac_n "checking target system type""... $ac_c" 1>&6
ab9b9eab 846echo "configure:847: checking target system type" >&5
10f2d63a
VZ
847
848target_alias=$target
849case "$target_alias" in
850NONE)
851 case $nonopt in
852 NONE) target_alias=$host_alias ;;
853 *) target_alias=$nonopt ;;
854 esac ;;
855esac
856
857target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
858target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
859target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
860target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
861echo "$ac_t""$target" 1>&6
862
863echo $ac_n "checking build system type""... $ac_c" 1>&6
ab9b9eab 864echo "configure:865: checking build system type" >&5
10f2d63a
VZ
865
866build_alias=$build
867case "$build_alias" in
868NONE)
869 case $nonopt in
870 NONE) build_alias=$host_alias ;;
871 *) build_alias=$nonopt ;;
872 esac ;;
873esac
874
875build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
876build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
877build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
878build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
879echo "$ac_t""$build" 1>&6
880
881test "$host_alias" != "$target_alias" &&
882 test "$program_prefix$program_suffix$program_transform_name" = \
883 NONENONEs,x,x, &&
884 program_prefix=${target_alias}-
885
886
887
888WX_MAJOR_VERSION_NUMBER=2
889WX_MINOR_VERSION_NUMBER=1
ba0e7d41 890WX_RELEASE_NUMBER=12
10f2d63a
VZ
891
892WX_INTERFACE_AGE=0
893WX_BINARY_AGE=0
894
895WX_VERSION=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER.$WX_RELEASE_NUMBER
896
897WX_RELEASE=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER
898WX_CURRENT=`expr $WX_RELEASE_NUMBER - $WX_INTERFACE_AGE`
899WX_REVISION=$WX_INTERFACE_AGE
900WX_AGE=`expr $WX_BINARY_AGE - $WX_INTERFACE_AGE`
901
902
903USE_UNIX=1
904USE_WIN32=0
905USE_LINUX=
906USE_SGI=
907USE_HPUX=
908USE_SYSV=
909USE_SVR4=
910USE_AIX=
911USE_SUN=
912USE_SOLARIS=
913USE_SUNOS=
914USE_ALPHA=
915USE_OSF=
916USE_BSD=
917USE_FREEBSD=
918USE_VMS=
919USE_ULTRIX=
920USE_CYGWIN=
921USE_MINGW=
922USE_DATA_GENERAL=
923
ab9b9eab
VZ
924NEEDS_D_REENTRANT_FOR_R_FUNCS=0
925
10f2d63a
VZ
926ALL_TOOLKITS="CYGWIN GTK MINGW MOTIF WINE"
927
928DEFAULT_wxUSE_GTK=0
929DEFAULT_wxUSE_MOTIF=0
930DEFAULT_wxUSE_MSW=0
931DEFAULT_wxUSE_WINE=0
932
933DEFAULT_DEFAULT_wxUSE_GTK=0
934DEFAULT_DEFAULT_wxUSE_MOTIF=0
935DEFAULT_DEFAULT_wxUSE_MSW=0
936DEFAULT_DEFAULT_wxUSE_WINE=0
937
938case "${host}" in
939 *-hp-hpux* )
940 USE_HPUX=1
941 DEFAULT_DEFAULT_wxUSE_MOTIF=1
ab9b9eab 942 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
10f2d63a
VZ
943 cat >> confdefs.h <<\EOF
944#define __HPUX__ 1
945EOF
946
947 ;;
948 *-*-linux* )
949 USE_LINUX=1
950 cat >> confdefs.h <<\EOF
951#define __LINUX__ 1
952EOF
953
954 TMP=`uname -m`
955 if test "x$TMP" = "xalpha"; then
956 USE_ALPHA=1
957 cat >> confdefs.h <<\EOF
958#define __ALPHA__ 1
959EOF
960
961 fi
962 DEFAULT_DEFAULT_wxUSE_GTK=1
963 ;;
964 *-*-irix5* | *-*-irix6* )
965 USE_SGI=1
966 USE_SVR4=1
967 cat >> confdefs.h <<\EOF
968#define __SGI__ 1
969EOF
970
971 cat >> confdefs.h <<\EOF
972#define __SVR4__ 1
973EOF
974
975 DEFAULT_DEFAULT_wxUSE_MOTIF=1
976 ;;
977 *-*-solaris2* )
978 USE_SUN=1
979 USE_SOLARIS=1
980 USE_SVR4=1
981 cat >> confdefs.h <<\EOF
982#define __SUN__ 1
983EOF
984
985 cat >> confdefs.h <<\EOF
986#define __SOLARIS__ 1
987EOF
988
989 cat >> confdefs.h <<\EOF
990#define __SVR4__ 1
991EOF
992
993 DEFAULT_DEFAULT_wxUSE_MOTIF=1
ab9b9eab 994 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
10f2d63a
VZ
995 ;;
996 *-*-sunos4* )
997 USE_SUN=1
998 USE_SUNOS=1
999 USE_BSD=1
1000 cat >> confdefs.h <<\EOF
1001#define __SUN__ 1
1002EOF
1003
1004 cat >> confdefs.h <<\EOF
1005#define __SUNOS__ 1
1006EOF
1007
1008 cat >> confdefs.h <<\EOF
1009#define __BSD__ 1
1010EOF
1011
1012 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1013 ;;
1014 *-*-freebsd* | *-*-netbsd*)
1015 USE_BSD=1
1016 USE_FREEBSD=1
1017 cat >> confdefs.h <<\EOF
1018#define __FREEBSD__ 1
1019EOF
1020
1021 cat >> confdefs.h <<\EOF
1022#define __BSD__ 1
1023EOF
1024
1025 DEFAULT_DEFAULT_wxUSE_GTK=1
1026 ;;
1027 *-*-osf* )
1028 USE_ALPHA=1
1029 USE_OSF=1
1030 cat >> confdefs.h <<\EOF
1031#define __ALPHA__ 1
1032EOF
1033
1034 cat >> confdefs.h <<\EOF
1035#define __OSF__ 1
1036EOF
1037
1038 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1039 ;;
1040 *-*-dgux5* )
1041 USE_ALPHA=1
1042 USE_SVR4=1
1043 cat >> confdefs.h <<\EOF
1044#define __ALPHA__ 1
1045EOF
1046
1047 cat >> confdefs.h <<\EOF
1048#define __SVR4__ 1
1049EOF
1050
1051 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1052 ;;
1053 *-*-sysv5* )
1054 USE_SYSV=1
1055 USE_SVR4=1
1056 cat >> confdefs.h <<\EOF
1057#define __SYSV__ 1
1058EOF
1059
1060 cat >> confdefs.h <<\EOF
1061#define __SVR4__ 1
1062EOF
1063
1064 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1065 ;;
1066 *-*-aix* )
1067 USE_AIX=1
1068 USE_SYSV=1
1069 USE_SVR4=1
1070 cat >> confdefs.h <<\EOF
1071#define __AIX__ 1
1072EOF
1073
1074 cat >> confdefs.h <<\EOF
1075#define __SYSV__ 1
1076EOF
1077
1078 cat >> confdefs.h <<\EOF
1079#define __SVR4__ 1
1080EOF
1081
1082 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1083 ;;
1084
1085 *-*-cygwin32* )
1086 USE_UNIX=0
1087 USE_WIN32=1
1088 cat >> confdefs.h <<\EOF
1089#define __WIN32__ 1
1090EOF
1091
1092 cat >> confdefs.h <<\EOF
1093#define __WIN95__ 1
1094EOF
1095
1096 cat >> confdefs.h <<\EOF
1097#define __WINDOWS__ 1
1098EOF
1099
1100 cat >> confdefs.h <<\EOF
1101#define __GNUWIN32__ 1
1102EOF
1103
1104 cat >> confdefs.h <<\EOF
1105#define STRICT 1
1106EOF
1107
1108 cat >> confdefs.h <<\EOF
1109#define WINVER 0x0400
1110EOF
1111
1112 DEFAULT_DEFAULT_wxUSE_MSW=1
1113 ;;
1114 *-*-mingw32* )
1115 USE_UNIX=0
1116 USE_WIN32=1
1117 cat >> confdefs.h <<\EOF
1118#define __WIN32__ 1
1119EOF
1120
1121 cat >> confdefs.h <<\EOF
1122#define __WIN95__ 1
1123EOF
1124
1125 cat >> confdefs.h <<\EOF
1126#define __WINDOWS__ 1
1127EOF
1128
1129 cat >> confdefs.h <<\EOF
1130#define __GNUWIN32__ 1
1131EOF
1132
1133 cat >> confdefs.h <<\EOF
1134#define STRICT 1
1135EOF
1136
1137 cat >> confdefs.h <<\EOF
1138#define WINVER 0x0400
1139EOF
1140
1141 DEFAULT_DEFAULT_wxUSE_MSW=1
1142 ;;
1143
1144 *-pc-os2_emx )
1145 cat >> confdefs.h <<\EOF
1146#define __EMX__ 1
1147EOF
1148
1149 ;;
1150
1151 *)
1152 { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; }
1153esac
1154
1155if test "$USE_UNIX" = 1 ; then
1156 wxUSE_UNIX=yes
1157 cat >> confdefs.h <<\EOF
1158#define __UNIX__ 1
1159EOF
1160
1161 SRC_SUBDIRS="$SRC_SUBDIRS unix"
1162 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS unix"
1163fi
1164
1165if test "$USE_LINUX" = 1; then
1166 echo $ac_n "checking for gettext in -lc""... $ac_c" 1>&6
ab9b9eab 1167echo "configure:1168: checking for gettext in -lc" >&5
10f2d63a
VZ
1168ac_lib_var=`echo c'_'gettext | sed 'y%./+-%__p_%'`
1169if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1170 echo $ac_n "(cached) $ac_c" 1>&6
1171else
1172 ac_save_LIBS="$LIBS"
1173LIBS="-lc $LIBS"
1174cat > conftest.$ac_ext <<EOF
ab9b9eab 1175#line 1176 "configure"
10f2d63a
VZ
1176#include "confdefs.h"
1177/* Override any gcc2 internal prototype to avoid an error. */
1178/* We use char because int might match the return type of a gcc2
1179 builtin and then its argument prototype would still apply. */
1180char gettext();
1181
1182int main() {
1183gettext()
1184; return 0; }
1185EOF
ab9b9eab 1186if { (eval echo configure:1187: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
1187 rm -rf conftest*
1188 eval "ac_cv_lib_$ac_lib_var=yes"
1189else
1190 echo "configure: failed program was:" >&5
1191 cat conftest.$ac_ext >&5
1192 rm -rf conftest*
1193 eval "ac_cv_lib_$ac_lib_var=no"
1194fi
1195rm -f conftest*
1196LIBS="$ac_save_LIBS"
1197
1198fi
1199if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1200 echo "$ac_t""yes" 1>&6
1201 cat >> confdefs.h <<\EOF
1202#define wxHAVE_GLIBC2 1
1203EOF
1204
1205else
1206 echo "$ac_t""no" 1>&6
1207fi
1208
1209fi
1210
1211
1212
1213
1214 wx_arg_cache_file="configarg.cache"
1215 echo "loading argument cache $wx_arg_cache_file"
1216 rm -f ${wx_arg_cache_file}.tmp
1217 touch ${wx_arg_cache_file}.tmp
1218 touch ${wx_arg_cache_file}
1219
1220
1221DEBUG_CONFIGURE=0
1222if test $DEBUG_CONFIGURE = 1; then
1223 DEFAULT_wxUSE_THREADS=yes
1224
1225 DEFAULT_wxUSE_SHARED=yes
1226 DEFAULT_wxUSE_OPTIMISE=yes
1227 DEFAULT_wxUSE_PROFILE=no
1228 DEFAULT_wxUSE_NO_DEPS=no
1229 DEFAULT_wxUSE_NO_RTTI=no
1230 DEFAULT_wxUSE_NO_EXCEPTIONS=no
1231 DEFAULT_wxUSE_PERMISSIVE=no
1232 DEFAULT_wxUSE_DEBUG_FLAG=yes
1233 DEFAULT_wxUSE_DEBUG_INFO=yes
1234 DEFAULT_wxUSE_DEBUG_GDB=yes
1235 DEFAULT_wxUSE_MEM_TRACING=no
1236 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1237 DEFAULT_wxUSE_DMALLOC=no
1238 DEFAULT_wxUSE_APPLE_IEEE=no
1239
1240 DEFAULT_wxUSE_LOG=yes
1241
1242 DEFAULT_wxUSE_GUI=yes
1243
1244 DEFAULT_wxUSE_ZLIB=no
1245 DEFAULT_wxUSE_LIBPNG=no
1246 DEFAULT_wxUSE_LIBJPEG=no
1247 DEFAULT_wxUSE_ODBC=no
1248
1249 DEFAULT_wxUSE_STD_IOSTREAM=no
1250 DEFAULT_wxUSE_FILE=no
1251 DEFAULT_wxUSE_TEXTFILE=no
1252 DEFAULT_wxUSE_TIMEDATE=no
1253 DEFAULT_wxUSE_WAVE=no
1254 DEFAULT_wxUSE_INTL=no
1255 DEFAULT_wxUSE_CONFIG=no
1256 DEFAULT_wxUSE_STREAMS=no
1257 DEFAULT_wxUSE_SOCKETS=no
1258 DEFAULT_wxUSE_DIALUP_MANAGER=no
1259 DEFAULT_wxUSE_SERIAL=no
1260 DEFAULT_wxUSE_JOYSTICK=no
1261 DEFAULT_wxUSE_DYNLIB_CLASS=no
1262 DEFAULT_wxUSE_LONGLONG=no
1263
1264 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
1265 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
1266 DEFAULT_wxUSE_POSTSCRIPT=no
1267
1268 DEFAULT_wxUSE_X_RESOURCES=no
1269 DEFAULT_wxUSE_CLIPBOARD=no
1270 DEFAULT_wxUSE_TOOLTIPS=no
1271 DEFAULT_wxUSE_DRAG_AND_DROP=no
1272 DEFAULT_wxUSE_SPLINES=no
1273
1274 DEFAULT_wxUSE_MDI_ARCHITECTURE=no
1275 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
1276 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
1277
1278 DEFAULT_wxUSE_PROLOGIO=no
1279 DEFAULT_wxUSE_RESOURCES=no
1280 DEFAULT_wxUSE_CONSTRAINTS=no
1281 DEFAULT_wxUSE_IPC=no
1282 DEFAULT_wxUSE_HELP=no
1283 DEFAULT_wxUSE_WXTREE=no
1284 DEFAULT_wxUSE_METAFILE=no
1285
1286 DEFAULT_wxUSE_COMMONDLGS=no
1287 DEFAULT_wxUSE_DIRDLG=no
1288 DEFAULT_wxUSE_TEXTDLG=no
1289 DEFAULT_wxUSE_STARTUP_TIPS=no
1290 DEFAULT_wxUSE_PROGRESSDLG=no
1291 DEFAULT_wxUSE_MINIFRAME=no
1292 DEFAULT_wxUSE_HTML=no
1293 DEFAULT_wxUSE_FS_INET=no
1294 DEFAULT_wxUSE_FS_ZIP=no
1295 DEFAULT_wxUSE_BUSYINFO=no
1296 DEFAULT_wxUSE_ZIPSTREAM=no
1297 DEFAULT_wxUSE_VALIDATORS=yes
1298
1299 DEFAULT_wxUSE_ACCEL=no
1300 DEFAULT_wxUSE_CARET=no
1301 DEFAULT_wxUSE_BMPBUTTON=no
1302 DEFAULT_wxUSE_CHECKBOX=no
1303 DEFAULT_wxUSE_CHECKLST=no
1304 DEFAULT_wxUSE_CHOICE=yes
1305 DEFAULT_wxUSE_COMBOBOX=no
1306 DEFAULT_wxUSE_GAUGE=no
1307 DEFAULT_wxUSE_GRID=no
1308 DEFAULT_wxUSE_NEW_GRID=no
1309 DEFAULT_wxUSE_IMAGLIST=no
1310 DEFAULT_wxUSE_LISTBOX=no
1311 DEFAULT_wxUSE_LISTCTRL=no
1312 DEFAULT_wxUSE_NOTEBOOK=no
1313 DEFAULT_wxUSE_RADIOBOX=no
1314 DEFAULT_wxUSE_RADIOBTN=no
1315 DEFAULT_wxUSE_SASH=no
1316 DEFAULT_wxUSE_SCROLLBAR=no
1317 DEFAULT_wxUSE_SLIDER=no
1318 DEFAULT_wxUSE_SPINBTN=no
1319 DEFAULT_wxUSE_SPLITTER=no
1320 DEFAULT_wxUSE_STATBMP=no
1321 DEFAULT_wxUSE_STATBOX=no
1322 DEFAULT_wxUSE_STATLINE=no
1323 DEFAULT_wxUSE_STATUSBAR=yes
1324 DEFAULT_wxUSE_TABDIALOG=no
1325 DEFAULT_wxUSE_TOOLBAR=no
1326 DEFAULT_wxUSE_TREECTRL=no
1327
1328 DEFAULT_wxUSE_UNICODE=no
1329 DEFAULT_wxUSE_WCSRTOMBS=no
1330
1331 DEFAULT_wxUSE_GIF=no
1332 DEFAULT_wxUSE_PCX=no
1333 DEFAULT_wxUSE_PNM=no
1334else
1335 DEFAULT_wxUSE_THREADS=yes
1336
1337 DEFAULT_wxUSE_SHARED=yes
1338 DEFAULT_wxUSE_OPTIMISE=yes
1339 DEFAULT_wxUSE_PROFILE=no
1340 DEFAULT_wxUSE_NO_DEPS=no
1341 DEFAULT_wxUSE_NO_RTTI=no
1342 DEFAULT_wxUSE_NO_EXCEPTIONS=no
1343 DEFAULT_wxUSE_PERMISSIVE=no
1344 DEFAULT_wxUSE_DEBUG_FLAG=no
1345 DEFAULT_wxUSE_DEBUG_INFO=no
1346 DEFAULT_wxUSE_DEBUG_GDB=no
1347 DEFAULT_wxUSE_MEM_TRACING=no
1348 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1349 DEFAULT_wxUSE_DMALLOC=no
1350 DEFAULT_wxUSE_APPLE_IEEE=yes
1351
1352 DEFAULT_wxUSE_LOG=yes
1353
1354 DEFAULT_wxUSE_GUI=yes
1355
1356 DEFAULT_wxUSE_ZLIB=yes
1357 DEFAULT_wxUSE_LIBPNG=yes
1358 DEFAULT_wxUSE_LIBJPEG=yes
1359 DEFAULT_wxUSE_ODBC=yes
1360
1361 DEFAULT_wxUSE_STD_IOSTREAM=no
1362 DEFAULT_wxUSE_FILE=yes
1363 DEFAULT_wxUSE_TEXTFILE=yes
1364 DEFAULT_wxUSE_TIMEDATE=yes
1365 DEFAULT_wxUSE_WAVE=no
1366 DEFAULT_wxUSE_INTL=yes
1367 DEFAULT_wxUSE_CONFIG=yes
1368 DEFAULT_wxUSE_STREAMS=yes
1369 DEFAULT_wxUSE_SOCKETS=yes
1370 DEFAULT_wxUSE_DIALUP_MANAGER=yes
1371 DEFAULT_wxUSE_SERIAL=yes
1372 DEFAULT_wxUSE_JOYSTICK=yes
1373 DEFAULT_wxUSE_DYNLIB_CLASS=yes
1374 DEFAULT_wxUSE_LONGLONG=no
1375
1376 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
1377 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
1378 DEFAULT_wxUSE_POSTSCRIPT=yes
1379
1380 DEFAULT_wxUSE_X_RESOURCES=no
1381 DEFAULT_wxUSE_CLIPBOARD=yes
1382 DEFAULT_wxUSE_TOOLTIPS=yes
1383 DEFAULT_wxUSE_DRAG_AND_DROP=yes
1384 DEFAULT_wxUSE_SPLINES=yes
1385
1386 DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
1387 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
1388 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
1389
1390 DEFAULT_wxUSE_PROLOGIO=yes
1391 DEFAULT_wxUSE_RESOURCES=yes
1392 DEFAULT_wxUSE_CONSTRAINTS=yes
1393 DEFAULT_wxUSE_IPC=yes
1394 DEFAULT_wxUSE_HELP=yes
1395 DEFAULT_wxUSE_WXTREE=yes
1396 DEFAULT_wxUSE_METAFILE=yes
1397
1398 DEFAULT_wxUSE_COMMONDLGS=yes
1399 DEFAULT_wxUSE_DIRDLG=yes
1400 DEFAULT_wxUSE_TEXTDLG=yes
1401 DEFAULT_wxUSE_STARTUP_TIPS=yes
1402 DEFAULT_wxUSE_PROGRESSDLG=yes
1403 DEFAULT_wxUSE_MINIFRAME=yes
1404 DEFAULT_wxUSE_HTML=yes
1405 DEFAULT_wxUSE_FS_INET=yes
1406 DEFAULT_wxUSE_FS_ZIP=yes
1407 DEFAULT_wxUSE_BUSYINFO=yes
1408 DEFAULT_wxUSE_ZIPSTREAM=yes
1409 DEFAULT_wxUSE_VALIDATORS=yes
1410
1411 DEFAULT_wxUSE_ACCEL=yes
1412 DEFAULT_wxUSE_CARET=yes
1413 DEFAULT_wxUSE_BMPBUTTON=yes
1414 DEFAULT_wxUSE_CHECKBOX=yes
1415 DEFAULT_wxUSE_CHECKLST=yes
1416 DEFAULT_wxUSE_CHOICE=yes
1417 DEFAULT_wxUSE_COMBOBOX=yes
1418 DEFAULT_wxUSE_GAUGE=yes
1419 DEFAULT_wxUSE_GRID=yes
fc9c7c09 1420 DEFAULT_wxUSE_NEW_GRID=no
10f2d63a
VZ
1421 DEFAULT_wxUSE_IMAGLIST=yes
1422 DEFAULT_wxUSE_LISTBOX=yes
1423 DEFAULT_wxUSE_LISTCTRL=yes
1424 DEFAULT_wxUSE_NOTEBOOK=yes
1425 DEFAULT_wxUSE_RADIOBOX=yes
1426 DEFAULT_wxUSE_RADIOBTN=yes
1427 DEFAULT_wxUSE_SASH=yes
1428 DEFAULT_wxUSE_SCROLLBAR=yes
1429 DEFAULT_wxUSE_SLIDER=yes
1430 DEFAULT_wxUSE_SPINBTN=yes
1431 DEFAULT_wxUSE_SPLITTER=yes
1432 DEFAULT_wxUSE_STATBMP=yes
1433 DEFAULT_wxUSE_STATBOX=yes
1434 DEFAULT_wxUSE_STATLINE=yes
1435 DEFAULT_wxUSE_STATUSBAR=yes
1436 DEFAULT_wxUSE_TABDIALOG=no
1437 DEFAULT_wxUSE_TOOLBAR=yes
1438 DEFAULT_wxUSE_TREECTRL=yes
1439
1440 DEFAULT_wxUSE_UNICODE=no
1441 DEFAULT_wxUSE_WCSRTOMBS=no
1442
1443 DEFAULT_wxUSE_GIF=yes
1444 DEFAULT_wxUSE_PCX=yes
1445 DEFAULT_wxUSE_PNM=yes
1446fi
1447
1448
1449
1450for toolkit in `echo $ALL_TOOLKITS`; do
1451 LINE=`grep "wxUSE_$toolkit" ${wx_arg_cache_file}`
1452 if test "x$LINE" != x ; then
1453 has_toolkit_in_cache=1
1454 eval "DEFAULT_$LINE"
1455 eval "CACHE_$toolkit=1"
1456 fi
1457done
1458
1459
1460
1461 echo $ac_n "checking "for --enable-gui"""... $ac_c" 1>&6
ab9b9eab 1462echo "configure:1463: checking "for --enable-gui"" >&5
10f2d63a
VZ
1463 no_cache=0
1464 # Check whether --enable-gui or --disable-gui was given.
1465if test "${enable_gui+set}" = set; then
1466 enableval="$enable_gui"
1467
1468 if test "$enableval" = yes; then
1469 ac_cv_use_gui='wxUSE_GUI=yes'
1470 else
1471 ac_cv_use_gui='wxUSE_GUI=no'
1472 fi
1473
1474else
1475
1476 LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
1477 if test "x$LINE" != x ; then
1478 eval "DEFAULT_$LINE"
1479 else
1480 no_cache=1
1481 fi
1482
1483 ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
1484
1485fi
1486
1487
1488 eval "$ac_cv_use_gui"
1489 if test "$no_cache" != 1; then
1490 echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
1491 fi
1492
1493 if test "$wxUSE_GUI" = yes; then
1494 echo "$ac_t""yes" 1>&6
1495 else
1496 echo "$ac_t""no" 1>&6
1497 fi
1498
1499
1500if test "$wxUSE_GUI" = "no"; then
1501 DEFAULT_wxUSE_ZLIB=no
1502 DEFAULT_wxUSE_LIBPNG=no
1503 DEFAULT_wxUSE_LIBJPEG=no
1504 DEFAULT_wxUSE_SOCKETS=no
1505 DEFAULT_wxUSE_JOYSTICK=no
1506 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
1507 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
1508 DEFAULT_wxUSE_POSTSCRIPT=no
1509 DEFAULT_wxUSE_X_RESOURCES=no
1510 DEFAULT_wxUSE_CLIPBOARD=no
1511 DEFAULT_wxUSE_TOOLTIPS=no
1512 DEFAULT_wxUSE_DRAG_AND_DROP=no
1513 DEFAULT_wxUSE_SPLINES=no
1514 DEFAULT_wxUSE_MDI_ARCHITECTURE=no
1515 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
1516 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
1517 DEFAULT_wxUSE_PROLOGIO=no
1518 DEFAULT_wxUSE_RESOURCES=no
1519 DEFAULT_wxUSE_CONSTRAINTS=no
1520 DEFAULT_wxUSE_IPC=no
1521 DEFAULT_wxUSE_HELP=no
1522 DEFAULT_wxUSE_WXTREE=no
1523 DEFAULT_wxUSE_METAFILE=no
1524 DEFAULT_wxUSE_COMMONDLGS=no
1525 DEFAULT_wxUSE_DIRDLG=no
1526 DEFAULT_wxUSE_TEXTDLG=no
1527 DEFAULT_wxUSE_STARTUP_TIPS=no
1528 DEFAULT_wxUSE_PROGRESSDLG=no
1529 DEFAULT_wxUSE_MINIFRAME=no
1530 DEFAULT_wxUSE_HTML=no
1531 DEFAULT_wxUSE_FS_INET=no
1532 DEFAULT_wxUSE_FS_ZIP=no
1533 DEFAULT_wxUSE_BUSYINFO=no
1534 DEFAULT_wxUSE_ZIPSTREAM=no
1535 DEFAULT_wxUSE_VALIDATORS=no
1536 DEFAULT_wxUSE_ACCEL=no
1537 DEFAULT_wxUSE_CARET=no
1538 DEFAULT_wxUSE_BMPBUTTON=no
1539 DEFAULT_wxUSE_CHECKBOX=no
1540 DEFAULT_wxUSE_CHECKLST=no
1541 DEFAULT_wxUSE_CHOICE=no
1542 DEFAULT_wxUSE_COMBOBOX=no
1543 DEFAULT_wxUSE_GAUGE=no
1544 DEFAULT_wxUSE_GRID=no
1545 DEFAULT_wxUSE_NEW_GRID=no
1546 DEFAULT_wxUSE_IMAGLIST=no
1547 DEFAULT_wxUSE_LISTBOX=no
1548 DEFAULT_wxUSE_LISTCTRL=no
1549 DEFAULT_wxUSE_NOTEBOOK=no
1550 DEFAULT_wxUSE_RADIOBOX=no
1551 DEFAULT_wxUSE_RADIOBTN=no
1552 DEFAULT_wxUSE_SASH=no
1553 DEFAULT_wxUSE_SCROLLBAR=no
1554 DEFAULT_wxUSE_SLIDER=no
1555 DEFAULT_wxUSE_SPINBTN=no
1556 DEFAULT_wxUSE_SPLITTER=no
1557 DEFAULT_wxUSE_STATBMP=no
1558 DEFAULT_wxUSE_STATBOX=no
1559 DEFAULT_wxUSE_STATLINE=no
1560 DEFAULT_wxUSE_STATUSBAR=no
1561 DEFAULT_wxUSE_TABDIALOG=no
1562 DEFAULT_wxUSE_TOOLBAR=no
1563 DEFAULT_wxUSE_TREECTRL=no
1564 DEFAULT_wxUSE_GIF=no
1565 DEFAULT_wxUSE_PCX=no
1566 DEFAULT_wxUSE_PNM=no
1567fi
1568
1569# Check whether --with-gtk or --without-gtk was given.
1570if test "${with_gtk+set}" = set; then
1571 withval="$with_gtk"
1572 wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
1573fi
1574
1575# Check whether --with-motif or --without-motif was given.
1576if test "${with_motif+set}" = set; then
1577 withval="$with_motif"
1578 wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
1579fi
1580
1581# Check whether --with-wine or --without-wine was given.
1582if test "${with_wine+set}" = set; then
1583 withval="$with_wine"
1584 wxUSE_WINE="$withval" CACHE_WINE=1 TOOLKIT_GIVEN=1
1585fi
1586
1587# Check whether --with-cygwin or --without-cygwin was given.
1588if test "${with_cygwin+set}" = set; then
1589 withval="$with_cygwin"
1590 wxUSE_CYGWIN="$withval" CACHE_CYGWIN=1 TOOLKIT_GIVEN=1
1591fi
1592
1593# Check whether --with-mingw or --without-mingw was given.
1594if test "${with_mingw+set}" = set; then
1595 withval="$with_mingw"
1596 wxUSE_MINGW="$withval" CACHE_MINGW=1 TOOLKIT_GIVEN=1
1597fi
1598
1599
1600# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
1601if test "${with_gtk_prefix+set}" = set; then
1602 withval="$with_gtk_prefix"
1603 gtk_config_prefix="$withval"
1604else
1605 gtk_config_prefix=""
1606fi
1607
1608# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
1609if test "${with_gtk_exec_prefix+set}" = set; then
1610 withval="$with_gtk_exec_prefix"
1611 gtk_config_exec_prefix="$withval"
1612else
1613 gtk_config_exec_prefix=""
1614fi
1615
1616
1617
1618 echo $ac_n "checking "for --with-dmalloc"""... $ac_c" 1>&6
ab9b9eab 1619echo "configure:1620: checking "for --with-dmalloc"" >&5
10f2d63a
VZ
1620 no_cache=0
1621 # Check whether --with-dmalloc or --without-dmalloc was given.
1622if test "${with_dmalloc+set}" = set; then
1623 withval="$with_dmalloc"
1624
1625 if test "$withval" = yes; then
1626 ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
1627 else
1628 ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
1629 fi
1630
1631else
1632
1633 LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
1634 if test "x$LINE" != x ; then
1635 eval "DEFAULT_$LINE"
1636 else
1637 no_cache=1
1638 fi
1639
1640 ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
1641
1642fi
1643
1644
1645 eval "$ac_cv_use_dmalloc"
1646 if test "$no_cache" != 1; then
1647 echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
1648 fi
1649
1650 if test "$wxUSE_DMALLOC" = yes; then
1651 echo "$ac_t""yes" 1>&6
1652 else
1653 echo "$ac_t""no" 1>&6
1654 fi
1655
1656
1657 echo $ac_n "checking "for --with-zlib"""... $ac_c" 1>&6
ab9b9eab 1658echo "configure:1659: checking "for --with-zlib"" >&5
10f2d63a
VZ
1659 no_cache=0
1660 # Check whether --with-zlib or --without-zlib was given.
1661if test "${with_zlib+set}" = set; then
1662 withval="$with_zlib"
1663
1664 if test "$withval" = yes; then
1665 ac_cv_use_zlib='wxUSE_ZLIB=yes'
1666 else
1667 ac_cv_use_zlib='wxUSE_ZLIB=no'
1668 fi
1669
1670else
1671
1672 LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
1673 if test "x$LINE" != x ; then
1674 eval "DEFAULT_$LINE"
1675 else
1676 no_cache=1
1677 fi
1678
1679 ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
1680
1681fi
1682
1683
1684 eval "$ac_cv_use_zlib"
1685 if test "$no_cache" != 1; then
1686 echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
1687 fi
1688
1689 if test "$wxUSE_ZLIB" = yes; then
1690 echo "$ac_t""yes" 1>&6
1691 else
1692 echo "$ac_t""no" 1>&6
1693 fi
1694
1695
1696 echo $ac_n "checking "for --with-libpng"""... $ac_c" 1>&6
ab9b9eab 1697echo "configure:1698: checking "for --with-libpng"" >&5
10f2d63a
VZ
1698 no_cache=0
1699 # Check whether --with-libpng or --without-libpng was given.
1700if test "${with_libpng+set}" = set; then
1701 withval="$with_libpng"
1702
1703 if test "$withval" = yes; then
1704 ac_cv_use_libpng='wxUSE_LIBPNG=yes'
1705 else
1706 ac_cv_use_libpng='wxUSE_LIBPNG=no'
1707 fi
1708
1709else
1710
1711 LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
1712 if test "x$LINE" != x ; then
1713 eval "DEFAULT_$LINE"
1714 else
1715 no_cache=1
1716 fi
1717
1718 ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
1719
1720fi
1721
1722
1723 eval "$ac_cv_use_libpng"
1724 if test "$no_cache" != 1; then
1725 echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
1726 fi
1727
1728 if test "$wxUSE_LIBPNG" = yes; then
1729 echo "$ac_t""yes" 1>&6
1730 else
1731 echo "$ac_t""no" 1>&6
1732 fi
1733
1734
1735 echo $ac_n "checking "for --with-libjpeg"""... $ac_c" 1>&6
ab9b9eab 1736echo "configure:1737: checking "for --with-libjpeg"" >&5
10f2d63a
VZ
1737 no_cache=0
1738 # Check whether --with-libjpeg or --without-libjpeg was given.
1739if test "${with_libjpeg+set}" = set; then
1740 withval="$with_libjpeg"
1741
1742 if test "$withval" = yes; then
1743 ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
1744 else
1745 ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
1746 fi
1747
1748else
1749
1750 LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
1751 if test "x$LINE" != x ; then
1752 eval "DEFAULT_$LINE"
1753 else
1754 no_cache=1
1755 fi
1756
1757 ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
1758
1759fi
1760
1761
1762 eval "$ac_cv_use_libjpeg"
1763 if test "$no_cache" != 1; then
1764 echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
1765 fi
1766
1767 if test "$wxUSE_LIBJPEG" = yes; then
1768 echo "$ac_t""yes" 1>&6
1769 else
1770 echo "$ac_t""no" 1>&6
1771 fi
1772
1773
1774 echo $ac_n "checking "for --with-opengl"""... $ac_c" 1>&6
ab9b9eab 1775echo "configure:1776: checking "for --with-opengl"" >&5
10f2d63a
VZ
1776 no_cache=0
1777 # Check whether --with-opengl or --without-opengl was given.
1778if test "${with_opengl+set}" = set; then
1779 withval="$with_opengl"
1780
1781 if test "$withval" = yes; then
1782 ac_cv_use_opengl='wxUSE_OPENGL=yes'
1783 else
1784 ac_cv_use_opengl='wxUSE_OPENGL=no'
1785 fi
1786
1787else
1788
1789 LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
1790 if test "x$LINE" != x ; then
1791 eval "DEFAULT_$LINE"
1792 else
1793 no_cache=1
1794 fi
1795
1796 ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
1797
1798fi
1799
1800
1801 eval "$ac_cv_use_opengl"
1802 if test "$no_cache" != 1; then
1803 echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
1804 fi
1805
1806 if test "$wxUSE_OPENGL" = yes; then
1807 echo "$ac_t""yes" 1>&6
1808 else
1809 echo "$ac_t""no" 1>&6
1810 fi
1811
1812
1813 echo $ac_n "checking "for --with-odbc"""... $ac_c" 1>&6
ab9b9eab 1814echo "configure:1815: checking "for --with-odbc"" >&5
10f2d63a
VZ
1815 no_cache=0
1816 # Check whether --with-odbc or --without-odbc was given.
1817if test "${with_odbc+set}" = set; then
1818 withval="$with_odbc"
1819
1820 if test "$withval" = yes; then
1821 ac_cv_use_odbc='wxUSE_ODBC=yes'
1822 else
1823 ac_cv_use_odbc='wxUSE_ODBC=no'
1824 fi
1825
1826else
1827
1828 LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
1829 if test "x$LINE" != x ; then
1830 eval "DEFAULT_$LINE"
1831 else
1832 no_cache=1
1833 fi
1834
1835 ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
1836
1837fi
1838
1839
1840 eval "$ac_cv_use_odbc"
1841 if test "$no_cache" != 1; then
1842 echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
1843 fi
1844
1845 if test "$wxUSE_ODBC" = yes; then
1846 echo "$ac_t""yes" 1>&6
1847 else
1848 echo "$ac_t""no" 1>&6
1849 fi
1850
1851
1852
1853
1854
1855 echo $ac_n "checking "for --enable-shared"""... $ac_c" 1>&6
ab9b9eab 1856echo "configure:1857: checking "for --enable-shared"" >&5
10f2d63a
VZ
1857 no_cache=0
1858 # Check whether --enable-shared or --disable-shared was given.
1859if test "${enable_shared+set}" = set; then
1860 enableval="$enable_shared"
1861
1862 if test "$enableval" = yes; then
1863 ac_cv_use_shared='wxUSE_SHARED=yes'
1864 else
1865 ac_cv_use_shared='wxUSE_SHARED=no'
1866 fi
1867
1868else
1869
1870 LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
1871 if test "x$LINE" != x ; then
1872 eval "DEFAULT_$LINE"
1873 else
1874 no_cache=1
1875 fi
1876
1877 ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
1878
1879fi
1880
1881
1882 eval "$ac_cv_use_shared"
1883 if test "$no_cache" != 1; then
1884 echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
1885 fi
1886
1887 if test "$wxUSE_SHARED" = yes; then
1888 echo "$ac_t""yes" 1>&6
1889 else
1890 echo "$ac_t""no" 1>&6
1891 fi
1892
1893
1894 echo $ac_n "checking "for --enable-optimise"""... $ac_c" 1>&6
ab9b9eab 1895echo "configure:1896: checking "for --enable-optimise"" >&5
10f2d63a
VZ
1896 no_cache=0
1897 # Check whether --enable-optimise or --disable-optimise was given.
1898if test "${enable_optimise+set}" = set; then
1899 enableval="$enable_optimise"
1900
1901 if test "$enableval" = yes; then
1902 ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
1903 else
1904 ac_cv_use_optimise='wxUSE_OPTIMISE=no'
1905 fi
1906
1907else
1908
1909 LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
1910 if test "x$LINE" != x ; then
1911 eval "DEFAULT_$LINE"
1912 else
1913 no_cache=1
1914 fi
1915
1916 ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
1917
1918fi
1919
1920
1921 eval "$ac_cv_use_optimise"
1922 if test "$no_cache" != 1; then
1923 echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
1924 fi
1925
1926 if test "$wxUSE_OPTIMISE" = yes; then
1927 echo "$ac_t""yes" 1>&6
1928 else
1929 echo "$ac_t""no" 1>&6
1930 fi
1931
1932
1933 echo $ac_n "checking "for --enable-debug"""... $ac_c" 1>&6
ab9b9eab 1934echo "configure:1935: checking "for --enable-debug"" >&5
10f2d63a
VZ
1935 no_cache=0
1936 # Check whether --enable-debug or --disable-debug was given.
1937if test "${enable_debug+set}" = set; then
1938 enableval="$enable_debug"
1939
1940 if test "$enableval" = yes; then
1941 ac_cv_use_debug='wxUSE_DEBUG=yes'
1942 else
1943 ac_cv_use_debug='wxUSE_DEBUG=no'
1944 fi
1945
1946else
1947
1948 LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
1949 if test "x$LINE" != x ; then
1950 eval "DEFAULT_$LINE"
1951 else
1952 no_cache=1
1953 fi
1954
1955 ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
1956
1957fi
1958
1959
1960 eval "$ac_cv_use_debug"
1961 if test "$no_cache" != 1; then
1962 echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
1963 fi
1964
1965 if test "$wxUSE_DEBUG" = yes; then
1966 echo "$ac_t""yes" 1>&6
1967 else
1968 echo "$ac_t""no" 1>&6
1969 fi
1970
1971
1972if test "$wxUSE_DEBUG" = "yes"; then
1973 DEFAULT_wxUSE_DEBUG_FLAG=yes
1974 DEFAULT_wxUSE_DEBUG_INFO=yes
1975elif test "$wxUSE_DEBUG" = "no"; then
1976 DEFAULT_wxUSE_DEBUG_FLAG=no
1977 DEFAULT_wxUSE_DEBUG_INFO=no
1978fi
1979
1980
1981 echo $ac_n "checking "for --enable-debug_flag"""... $ac_c" 1>&6
ab9b9eab 1982echo "configure:1983: checking "for --enable-debug_flag"" >&5
10f2d63a
VZ
1983 no_cache=0
1984 # Check whether --enable-debug_flag or --disable-debug_flag was given.
1985if test "${enable_debug_flag+set}" = set; then
1986 enableval="$enable_debug_flag"
1987
1988 if test "$enableval" = yes; then
1989 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
1990 else
1991 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
1992 fi
1993
1994else
1995
1996 LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
1997 if test "x$LINE" != x ; then
1998 eval "DEFAULT_$LINE"
1999 else
2000 no_cache=1
2001 fi
2002
2003 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
2004
2005fi
2006
2007
2008 eval "$ac_cv_use_debug_flag"
2009 if test "$no_cache" != 1; then
2010 echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
2011 fi
2012
2013 if test "$wxUSE_DEBUG_FLAG" = yes; then
2014 echo "$ac_t""yes" 1>&6
2015 else
2016 echo "$ac_t""no" 1>&6
2017 fi
2018
2019
2020 echo $ac_n "checking "for --enable-debug_info"""... $ac_c" 1>&6
ab9b9eab 2021echo "configure:2022: checking "for --enable-debug_info"" >&5
10f2d63a
VZ
2022 no_cache=0
2023 # Check whether --enable-debug_info or --disable-debug_info was given.
2024if test "${enable_debug_info+set}" = set; then
2025 enableval="$enable_debug_info"
2026
2027 if test "$enableval" = yes; then
2028 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
2029 else
2030 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
2031 fi
2032
2033else
2034
2035 LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
2036 if test "x$LINE" != x ; then
2037 eval "DEFAULT_$LINE"
2038 else
2039 no_cache=1
2040 fi
2041
2042 ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
2043
2044fi
2045
2046
2047 eval "$ac_cv_use_debug_info"
2048 if test "$no_cache" != 1; then
2049 echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
2050 fi
2051
2052 if test "$wxUSE_DEBUG_INFO" = yes; then
2053 echo "$ac_t""yes" 1>&6
2054 else
2055 echo "$ac_t""no" 1>&6
2056 fi
2057
2058
2059 echo $ac_n "checking "for --enable-debug_gdb"""... $ac_c" 1>&6
ab9b9eab 2060echo "configure:2061: checking "for --enable-debug_gdb"" >&5
10f2d63a
VZ
2061 no_cache=0
2062 # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
2063if test "${enable_debug_gdb+set}" = set; then
2064 enableval="$enable_debug_gdb"
2065
2066 if test "$enableval" = yes; then
2067 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
2068 else
2069 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
2070 fi
2071
2072else
2073
2074 LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
2075 if test "x$LINE" != x ; then
2076 eval "DEFAULT_$LINE"
2077 else
2078 no_cache=1
2079 fi
2080
2081 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
2082
2083fi
2084
2085
2086 eval "$ac_cv_use_debug_gdb"
2087 if test "$no_cache" != 1; then
2088 echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
2089 fi
2090
2091 if test "$wxUSE_DEBUG_GDB" = yes; then
2092 echo "$ac_t""yes" 1>&6
2093 else
2094 echo "$ac_t""no" 1>&6
2095 fi
2096
2097
2098 echo $ac_n "checking "for --enable-debug_cntxt"""... $ac_c" 1>&6
ab9b9eab 2099echo "configure:2100: checking "for --enable-debug_cntxt"" >&5
10f2d63a
VZ
2100 no_cache=0
2101 # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
2102if test "${enable_debug_cntxt+set}" = set; then
2103 enableval="$enable_debug_cntxt"
2104
2105 if test "$enableval" = yes; then
2106 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
2107 else
2108 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
2109 fi
2110
2111else
2112
2113 LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
2114 if test "x$LINE" != x ; then
2115 eval "DEFAULT_$LINE"
2116 else
2117 no_cache=1
2118 fi
2119
2120 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
2121
2122fi
2123
2124
2125 eval "$ac_cv_use_debug_cntxt"
2126 if test "$no_cache" != 1; then
2127 echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
2128 fi
2129
2130 if test "$wxUSE_DEBUG_CONTEXT" = yes; then
2131 echo "$ac_t""yes" 1>&6
2132 else
2133 echo "$ac_t""no" 1>&6
2134 fi
2135
2136
2137 echo $ac_n "checking "for --enable-mem_tracing"""... $ac_c" 1>&6
ab9b9eab 2138echo "configure:2139: checking "for --enable-mem_tracing"" >&5
10f2d63a
VZ
2139 no_cache=0
2140 # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
2141if test "${enable_mem_tracing+set}" = set; then
2142 enableval="$enable_mem_tracing"
2143
2144 if test "$enableval" = yes; then
2145 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
2146 else
2147 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
2148 fi
2149
2150else
2151
2152 LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
2153 if test "x$LINE" != x ; then
2154 eval "DEFAULT_$LINE"
2155 else
2156 no_cache=1
2157 fi
2158
2159 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
2160
2161fi
2162
2163
2164 eval "$ac_cv_use_mem_tracing"
2165 if test "$no_cache" != 1; then
2166 echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
2167 fi
2168
2169 if test "$wxUSE_MEM_TRACING" = yes; then
2170 echo "$ac_t""yes" 1>&6
2171 else
2172 echo "$ac_t""no" 1>&6
2173 fi
2174
2175
2176 echo $ac_n "checking "for --enable-profile"""... $ac_c" 1>&6
ab9b9eab 2177echo "configure:2178: checking "for --enable-profile"" >&5
10f2d63a
VZ
2178 no_cache=0
2179 # Check whether --enable-profile or --disable-profile was given.
2180if test "${enable_profile+set}" = set; then
2181 enableval="$enable_profile"
2182
2183 if test "$enableval" = yes; then
2184 ac_cv_use_profile='wxUSE_PROFILE=yes'
2185 else
2186 ac_cv_use_profile='wxUSE_PROFILE=no'
2187 fi
2188
2189else
2190
2191 LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
2192 if test "x$LINE" != x ; then
2193 eval "DEFAULT_$LINE"
2194 else
2195 no_cache=1
2196 fi
2197
2198 ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
2199
2200fi
2201
2202
2203 eval "$ac_cv_use_profile"
2204 if test "$no_cache" != 1; then
2205 echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
2206 fi
2207
2208 if test "$wxUSE_PROFILE" = yes; then
2209 echo "$ac_t""yes" 1>&6
2210 else
2211 echo "$ac_t""no" 1>&6
2212 fi
2213
2214
2215 echo $ac_n "checking "for --enable-no_rtti"""... $ac_c" 1>&6
ab9b9eab 2216echo "configure:2217: checking "for --enable-no_rtti"" >&5
10f2d63a
VZ
2217 no_cache=0
2218 # Check whether --enable-no_rtti or --disable-no_rtti was given.
2219if test "${enable_no_rtti+set}" = set; then
2220 enableval="$enable_no_rtti"
2221
2222 if test "$enableval" = yes; then
2223 ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
2224 else
2225 ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
2226 fi
2227
2228else
2229
2230 LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
2231 if test "x$LINE" != x ; then
2232 eval "DEFAULT_$LINE"
2233 else
2234 no_cache=1
2235 fi
2236
2237 ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
2238
2239fi
2240
2241
2242 eval "$ac_cv_use_no_rtti"
2243 if test "$no_cache" != 1; then
2244 echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
2245 fi
2246
2247 if test "$wxUSE_NO_RTTI" = yes; then
2248 echo "$ac_t""yes" 1>&6
2249 else
2250 echo "$ac_t""no" 1>&6
2251 fi
2252
2253
2254 echo $ac_n "checking "for --enable-no_exceptions"""... $ac_c" 1>&6
ab9b9eab 2255echo "configure:2256: checking "for --enable-no_exceptions"" >&5
10f2d63a
VZ
2256 no_cache=0
2257 # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
2258if test "${enable_no_exceptions+set}" = set; then
2259 enableval="$enable_no_exceptions"
2260
2261 if test "$enableval" = yes; then
2262 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
2263 else
2264 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
2265 fi
2266
2267else
2268
2269 LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
2270 if test "x$LINE" != x ; then
2271 eval "DEFAULT_$LINE"
2272 else
2273 no_cache=1
2274 fi
2275
2276 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
2277
2278fi
2279
2280
2281 eval "$ac_cv_use_no_exceptions"
2282 if test "$no_cache" != 1; then
2283 echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
2284 fi
2285
2286 if test "$wxUSE_NO_EXCEPTIONS" = yes; then
2287 echo "$ac_t""yes" 1>&6
2288 else
2289 echo "$ac_t""no" 1>&6
2290 fi
2291
2292
2293 echo $ac_n "checking "for --enable-permissive"""... $ac_c" 1>&6
ab9b9eab 2294echo "configure:2295: checking "for --enable-permissive"" >&5
10f2d63a
VZ
2295 no_cache=0
2296 # Check whether --enable-permissive or --disable-permissive was given.
2297if test "${enable_permissive+set}" = set; then
2298 enableval="$enable_permissive"
2299
2300 if test "$enableval" = yes; then
2301 ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
2302 else
2303 ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
2304 fi
2305
2306else
2307
2308 LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
2309 if test "x$LINE" != x ; then
2310 eval "DEFAULT_$LINE"
2311 else
2312 no_cache=1
2313 fi
2314
2315 ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
2316
2317fi
2318
2319
2320 eval "$ac_cv_use_permissive"
2321 if test "$no_cache" != 1; then
2322 echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
2323 fi
2324
2325 if test "$wxUSE_PERMISSIVE" = yes; then
2326 echo "$ac_t""yes" 1>&6
2327 else
2328 echo "$ac_t""no" 1>&6
2329 fi
2330
2331
2332 echo $ac_n "checking "for --enable-no_deps"""... $ac_c" 1>&6
ab9b9eab 2333echo "configure:2334: checking "for --enable-no_deps"" >&5
10f2d63a
VZ
2334 no_cache=0
2335 # Check whether --enable-no_deps or --disable-no_deps was given.
2336if test "${enable_no_deps+set}" = set; then
2337 enableval="$enable_no_deps"
2338
2339 if test "$enableval" = yes; then
2340 ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
2341 else
2342 ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
2343 fi
2344
2345else
2346
2347 LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
2348 if test "x$LINE" != x ; then
2349 eval "DEFAULT_$LINE"
2350 else
2351 no_cache=1
2352 fi
2353
2354 ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
2355
2356fi
2357
2358
2359 eval "$ac_cv_use_no_deps"
2360 if test "$no_cache" != 1; then
2361 echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
2362 fi
2363
2364 if test "$wxUSE_NO_DEPS" = yes; then
2365 echo "$ac_t""yes" 1>&6
2366 else
2367 echo "$ac_t""no" 1>&6
2368 fi
2369
2370
2371
2372
2373 echo $ac_n "checking "for --enable-intl"""... $ac_c" 1>&6
ab9b9eab 2374echo "configure:2375: checking "for --enable-intl"" >&5
10f2d63a
VZ
2375 no_cache=0
2376 # Check whether --enable-intl or --disable-intl was given.
2377if test "${enable_intl+set}" = set; then
2378 enableval="$enable_intl"
2379
2380 if test "$enableval" = yes; then
2381 ac_cv_use_intl='wxUSE_INTL=yes'
2382 else
2383 ac_cv_use_intl='wxUSE_INTL=no'
2384 fi
2385
2386else
2387
2388 LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
2389 if test "x$LINE" != x ; then
2390 eval "DEFAULT_$LINE"
2391 else
2392 no_cache=1
2393 fi
2394
2395 ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
2396
2397fi
2398
2399
2400 eval "$ac_cv_use_intl"
2401 if test "$no_cache" != 1; then
2402 echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
2403 fi
2404
2405 if test "$wxUSE_INTL" = yes; then
2406 echo "$ac_t""yes" 1>&6
2407 else
2408 echo "$ac_t""no" 1>&6
2409 fi
2410
2411
2412 echo $ac_n "checking "for --enable-config"""... $ac_c" 1>&6
ab9b9eab 2413echo "configure:2414: checking "for --enable-config"" >&5
10f2d63a
VZ
2414 no_cache=0
2415 # Check whether --enable-config or --disable-config was given.
2416if test "${enable_config+set}" = set; then
2417 enableval="$enable_config"
2418
2419 if test "$enableval" = yes; then
2420 ac_cv_use_config='wxUSE_CONFIG=yes'
2421 else
2422 ac_cv_use_config='wxUSE_CONFIG=no'
2423 fi
2424
2425else
2426
2427 LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
2428 if test "x$LINE" != x ; then
2429 eval "DEFAULT_$LINE"
2430 else
2431 no_cache=1
2432 fi
2433
2434 ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
2435
2436fi
2437
2438
2439 eval "$ac_cv_use_config"
2440 if test "$no_cache" != 1; then
2441 echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
2442 fi
2443
2444 if test "$wxUSE_CONFIG" = yes; then
2445 echo "$ac_t""yes" 1>&6
2446 else
2447 echo "$ac_t""no" 1>&6
2448 fi
2449
2450
2451 echo $ac_n "checking "for --enable-sockets"""... $ac_c" 1>&6
ab9b9eab 2452echo "configure:2453: checking "for --enable-sockets"" >&5
10f2d63a
VZ
2453 no_cache=0
2454 # Check whether --enable-sockets or --disable-sockets was given.
2455if test "${enable_sockets+set}" = set; then
2456 enableval="$enable_sockets"
2457
2458 if test "$enableval" = yes; then
2459 ac_cv_use_sockets='wxUSE_SOCKETS=yes'
2460 else
2461 ac_cv_use_sockets='wxUSE_SOCKETS=no'
2462 fi
2463
2464else
2465
2466 LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
2467 if test "x$LINE" != x ; then
2468 eval "DEFAULT_$LINE"
2469 else
2470 no_cache=1
2471 fi
2472
2473 ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
2474
2475fi
2476
2477
2478 eval "$ac_cv_use_sockets"
2479 if test "$no_cache" != 1; then
2480 echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
2481 fi
2482
2483 if test "$wxUSE_SOCKETS" = yes; then
2484 echo "$ac_t""yes" 1>&6
2485 else
2486 echo "$ac_t""no" 1>&6
2487 fi
2488
2489
2490 echo $ac_n "checking "for --enable-dialupman"""... $ac_c" 1>&6
ab9b9eab 2491echo "configure:2492: checking "for --enable-dialupman"" >&5
10f2d63a
VZ
2492 no_cache=0
2493 # Check whether --enable-dialupman or --disable-dialupman was given.
2494if test "${enable_dialupman+set}" = set; then
2495 enableval="$enable_dialupman"
2496
2497 if test "$enableval" = yes; then
2498 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
2499 else
2500 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
2501 fi
2502
2503else
2504
2505 LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
2506 if test "x$LINE" != x ; then
2507 eval "DEFAULT_$LINE"
2508 else
2509 no_cache=1
2510 fi
2511
2512 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
2513
2514fi
2515
2516
2517 eval "$ac_cv_use_dialupman"
2518 if test "$no_cache" != 1; then
2519 echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
2520 fi
2521
2522 if test "$wxUSE_DIALUP_MANAGER" = yes; then
2523 echo "$ac_t""yes" 1>&6
2524 else
2525 echo "$ac_t""no" 1>&6
2526 fi
2527
2528
2529 echo $ac_n "checking "for --enable-ipc"""... $ac_c" 1>&6
ab9b9eab 2530echo "configure:2531: checking "for --enable-ipc"" >&5
10f2d63a
VZ
2531 no_cache=0
2532 # Check whether --enable-ipc or --disable-ipc was given.
2533if test "${enable_ipc+set}" = set; then
2534 enableval="$enable_ipc"
2535
2536 if test "$enableval" = yes; then
2537 ac_cv_use_ipc='wxUSE_IPC=yes'
2538 else
2539 ac_cv_use_ipc='wxUSE_IPC=no'
2540 fi
2541
2542else
2543
2544 LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
2545 if test "x$LINE" != x ; then
2546 eval "DEFAULT_$LINE"
2547 else
2548 no_cache=1
2549 fi
2550
2551 ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
2552
2553fi
2554
2555
2556 eval "$ac_cv_use_ipc"
2557 if test "$no_cache" != 1; then
2558 echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
2559 fi
2560
2561 if test "$wxUSE_IPC" = yes; then
2562 echo "$ac_t""yes" 1>&6
2563 else
2564 echo "$ac_t""no" 1>&6
2565 fi
2566
2567
2568 echo $ac_n "checking "for --enable-apple_ieee"""... $ac_c" 1>&6
ab9b9eab 2569echo "configure:2570: checking "for --enable-apple_ieee"" >&5
10f2d63a
VZ
2570 no_cache=0
2571 # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
2572if test "${enable_apple_ieee+set}" = set; then
2573 enableval="$enable_apple_ieee"
2574
2575 if test "$enableval" = yes; then
2576 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
2577 else
2578 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
2579 fi
2580
2581else
2582
2583 LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
2584 if test "x$LINE" != x ; then
2585 eval "DEFAULT_$LINE"
2586 else
2587 no_cache=1
2588 fi
2589
2590 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
2591
2592fi
2593
2594
2595 eval "$ac_cv_use_apple_ieee"
2596 if test "$no_cache" != 1; then
2597 echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
2598 fi
2599
2600 if test "$wxUSE_APPLE_IEEE" = yes; then
2601 echo "$ac_t""yes" 1>&6
2602 else
2603 echo "$ac_t""no" 1>&6
2604 fi
2605
2606
2607 echo $ac_n "checking "for --enable-timedate"""... $ac_c" 1>&6
ab9b9eab 2608echo "configure:2609: checking "for --enable-timedate"" >&5
10f2d63a
VZ
2609 no_cache=0
2610 # Check whether --enable-timedate or --disable-timedate was given.
2611if test "${enable_timedate+set}" = set; then
2612 enableval="$enable_timedate"
2613
2614 if test "$enableval" = yes; then
2615 ac_cv_use_timedate='wxUSE_TIMEDATE=yes'
2616 else
2617 ac_cv_use_timedate='wxUSE_TIMEDATE=no'
2618 fi
2619
2620else
2621
2622 LINE=`grep "wxUSE_TIMEDATE" ${wx_arg_cache_file}`
2623 if test "x$LINE" != x ; then
2624 eval "DEFAULT_$LINE"
2625 else
2626 no_cache=1
2627 fi
2628
2629 ac_cv_use_timedate='wxUSE_TIMEDATE='$DEFAULT_wxUSE_TIMEDATE
2630
2631fi
2632
2633
2634 eval "$ac_cv_use_timedate"
2635 if test "$no_cache" != 1; then
2636 echo $ac_cv_use_timedate >> ${wx_arg_cache_file}.tmp
2637 fi
2638
2639 if test "$wxUSE_TIMEDATE" = yes; then
2640 echo "$ac_t""yes" 1>&6
2641 else
2642 echo "$ac_t""no" 1>&6
2643 fi
2644
2645
2646 echo $ac_n "checking "for --enable-wave"""... $ac_c" 1>&6
ab9b9eab 2647echo "configure:2648: checking "for --enable-wave"" >&5
10f2d63a
VZ
2648 no_cache=0
2649 # Check whether --enable-wave or --disable-wave was given.
2650if test "${enable_wave+set}" = set; then
2651 enableval="$enable_wave"
2652
2653 if test "$enableval" = yes; then
2654 ac_cv_use_wave='wxUSE_WAVE=yes'
2655 else
2656 ac_cv_use_wave='wxUSE_WAVE=no'
2657 fi
2658
2659else
2660
2661 LINE=`grep "wxUSE_WAVE" ${wx_arg_cache_file}`
2662 if test "x$LINE" != x ; then
2663 eval "DEFAULT_$LINE"
2664 else
2665 no_cache=1
2666 fi
2667
2668 ac_cv_use_wave='wxUSE_WAVE='$DEFAULT_wxUSE_WAVE
2669
2670fi
2671
2672
2673 eval "$ac_cv_use_wave"
2674 if test "$no_cache" != 1; then
2675 echo $ac_cv_use_wave >> ${wx_arg_cache_file}.tmp
2676 fi
2677
2678 if test "$wxUSE_WAVE" = yes; then
2679 echo "$ac_t""yes" 1>&6
2680 else
2681 echo "$ac_t""no" 1>&6
2682 fi
2683
2684
2685 echo $ac_n "checking "for --enable-fraction"""... $ac_c" 1>&6
ab9b9eab 2686echo "configure:2687: checking "for --enable-fraction"" >&5
10f2d63a
VZ
2687 no_cache=0
2688 # Check whether --enable-fraction or --disable-fraction was given.
2689if test "${enable_fraction+set}" = set; then
2690 enableval="$enable_fraction"
2691
2692 if test "$enableval" = yes; then
2693 ac_cv_use_fraction='wxUSE_FRACTION=yes'
2694 else
2695 ac_cv_use_fraction='wxUSE_FRACTION=no'
2696 fi
2697
2698else
2699
2700 LINE=`grep "wxUSE_FRACTION" ${wx_arg_cache_file}`
2701 if test "x$LINE" != x ; then
2702 eval "DEFAULT_$LINE"
2703 else
2704 no_cache=1
2705 fi
2706
2707 ac_cv_use_fraction='wxUSE_FRACTION='$DEFAULT_wxUSE_FRACTION
2708
2709fi
2710
2711
2712 eval "$ac_cv_use_fraction"
2713 if test "$no_cache" != 1; then
2714 echo $ac_cv_use_fraction >> ${wx_arg_cache_file}.tmp
2715 fi
2716
2717 if test "$wxUSE_FRACTION" = yes; then
2718 echo "$ac_t""yes" 1>&6
2719 else
2720 echo "$ac_t""no" 1>&6
2721 fi
2722
2723
2724 echo $ac_n "checking "for --enable-dynlib"""... $ac_c" 1>&6
ab9b9eab 2725echo "configure:2726: checking "for --enable-dynlib"" >&5
10f2d63a
VZ
2726 no_cache=0
2727 # Check whether --enable-dynlib or --disable-dynlib was given.
2728if test "${enable_dynlib+set}" = set; then
2729 enableval="$enable_dynlib"
2730
2731 if test "$enableval" = yes; then
2732 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
2733 else
2734 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
2735 fi
2736
2737else
2738
2739 LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
2740 if test "x$LINE" != x ; then
2741 eval "DEFAULT_$LINE"
2742 else
2743 no_cache=1
2744 fi
2745
2746 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
2747
2748fi
2749
2750
2751 eval "$ac_cv_use_dynlib"
2752 if test "$no_cache" != 1; then
2753 echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
2754 fi
2755
2756 if test "$wxUSE_DYNLIB_CLASS" = yes; then
2757 echo "$ac_t""yes" 1>&6
2758 else
2759 echo "$ac_t""no" 1>&6
2760 fi
2761
2762
2763 echo $ac_n "checking "for --enable-longlong"""... $ac_c" 1>&6
ab9b9eab 2764echo "configure:2765: checking "for --enable-longlong"" >&5
10f2d63a
VZ
2765 no_cache=0
2766 # Check whether --enable-longlong or --disable-longlong was given.
2767if test "${enable_longlong+set}" = set; then
2768 enableval="$enable_longlong"
2769
2770 if test "$enableval" = yes; then
2771 ac_cv_use_longlong='wxUSE_LONGLONG=yes'
2772 else
2773 ac_cv_use_longlong='wxUSE_LONGLONG=no'
2774 fi
2775
2776else
2777
2778 LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
2779 if test "x$LINE" != x ; then
2780 eval "DEFAULT_$LINE"
2781 else
2782 no_cache=1
2783 fi
2784
2785 ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
2786
2787fi
2788
2789
2790 eval "$ac_cv_use_longlong"
2791 if test "$no_cache" != 1; then
2792 echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
2793 fi
2794
2795 if test "$wxUSE_LONGLONG" = yes; then
2796 echo "$ac_t""yes" 1>&6
2797 else
2798 echo "$ac_t""no" 1>&6
2799 fi
2800
2801
2802 echo $ac_n "checking "for --enable-log"""... $ac_c" 1>&6
ab9b9eab 2803echo "configure:2804: checking "for --enable-log"" >&5
10f2d63a
VZ
2804 no_cache=0
2805 # Check whether --enable-log or --disable-log was given.
2806if test "${enable_log+set}" = set; then
2807 enableval="$enable_log"
2808
2809 if test "$enableval" = yes; then
2810 ac_cv_use_log='wxUSE_LOG=yes'
2811 else
2812 ac_cv_use_log='wxUSE_LOG=no'
2813 fi
2814
2815else
2816
2817 LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
2818 if test "x$LINE" != x ; then
2819 eval "DEFAULT_$LINE"
2820 else
2821 no_cache=1
2822 fi
2823
2824 ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
2825
2826fi
2827
2828
2829 eval "$ac_cv_use_log"
2830 if test "$no_cache" != 1; then
2831 echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
2832 fi
2833
2834 if test "$wxUSE_LOG" = yes; then
2835 echo "$ac_t""yes" 1>&6
2836 else
2837 echo "$ac_t""no" 1>&6
2838 fi
2839
2840
2841 echo $ac_n "checking "for --enable-streams"""... $ac_c" 1>&6
ab9b9eab 2842echo "configure:2843: checking "for --enable-streams"" >&5
10f2d63a
VZ
2843 no_cache=0
2844 # Check whether --enable-streams or --disable-streams was given.
2845if test "${enable_streams+set}" = set; then
2846 enableval="$enable_streams"
2847
2848 if test "$enableval" = yes; then
2849 ac_cv_use_streams='wxUSE_STREAMS=yes'
2850 else
2851 ac_cv_use_streams='wxUSE_STREAMS=no'
2852 fi
2853
2854else
2855
2856 LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
2857 if test "x$LINE" != x ; then
2858 eval "DEFAULT_$LINE"
2859 else
2860 no_cache=1
2861 fi
2862
2863 ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
2864
2865fi
2866
2867
2868 eval "$ac_cv_use_streams"
2869 if test "$no_cache" != 1; then
2870 echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
2871 fi
2872
2873 if test "$wxUSE_STREAMS" = yes; then
2874 echo "$ac_t""yes" 1>&6
2875 else
2876 echo "$ac_t""no" 1>&6
2877 fi
2878
2879
2880 echo $ac_n "checking "for --enable-file"""... $ac_c" 1>&6
ab9b9eab 2881echo "configure:2882: checking "for --enable-file"" >&5
10f2d63a
VZ
2882 no_cache=0
2883 # Check whether --enable-file or --disable-file was given.
2884if test "${enable_file+set}" = set; then
2885 enableval="$enable_file"
2886
2887 if test "$enableval" = yes; then
2888 ac_cv_use_file='wxUSE_FILE=yes'
2889 else
2890 ac_cv_use_file='wxUSE_FILE=no'
2891 fi
2892
2893else
2894
2895 LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
2896 if test "x$LINE" != x ; then
2897 eval "DEFAULT_$LINE"
2898 else
2899 no_cache=1
2900 fi
2901
2902 ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
2903
2904fi
2905
2906
2907 eval "$ac_cv_use_file"
2908 if test "$no_cache" != 1; then
2909 echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
2910 fi
2911
2912 if test "$wxUSE_FILE" = yes; then
2913 echo "$ac_t""yes" 1>&6
2914 else
2915 echo "$ac_t""no" 1>&6
2916 fi
2917
2918
2919 echo $ac_n "checking "for --enable-textfile"""... $ac_c" 1>&6
ab9b9eab 2920echo "configure:2921: checking "for --enable-textfile"" >&5
10f2d63a
VZ
2921 no_cache=0
2922 # Check whether --enable-textfile or --disable-textfile was given.
2923if test "${enable_textfile+set}" = set; then
2924 enableval="$enable_textfile"
2925
2926 if test "$enableval" = yes; then
2927 ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
2928 else
2929 ac_cv_use_textfile='wxUSE_TEXTFILE=no'
2930 fi
2931
2932else
2933
2934 LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
2935 if test "x$LINE" != x ; then
2936 eval "DEFAULT_$LINE"
2937 else
2938 no_cache=1
2939 fi
2940
2941 ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
2942
2943fi
2944
2945
2946 eval "$ac_cv_use_textfile"
2947 if test "$no_cache" != 1; then
2948 echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
2949 fi
2950
2951 if test "$wxUSE_TEXTFILE" = yes; then
2952 echo "$ac_t""yes" 1>&6
2953 else
2954 echo "$ac_t""no" 1>&6
2955 fi
2956
2957
2958 echo $ac_n "checking "for --enable-unicode"""... $ac_c" 1>&6
ab9b9eab 2959echo "configure:2960: checking "for --enable-unicode"" >&5
10f2d63a
VZ
2960 no_cache=0
2961 # Check whether --enable-unicode or --disable-unicode was given.
2962if test "${enable_unicode+set}" = set; then
2963 enableval="$enable_unicode"
2964
2965 if test "$enableval" = yes; then
2966 ac_cv_use_unicode='wxUSE_UNICODE=yes'
2967 else
2968 ac_cv_use_unicode='wxUSE_UNICODE=no'
2969 fi
2970
2971else
2972
2973 LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
2974 if test "x$LINE" != x ; then
2975 eval "DEFAULT_$LINE"
2976 else
2977 no_cache=1
2978 fi
2979
2980 ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
2981
2982fi
2983
2984
2985 eval "$ac_cv_use_unicode"
2986 if test "$no_cache" != 1; then
2987 echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
2988 fi
2989
2990 if test "$wxUSE_UNICODE" = yes; then
2991 echo "$ac_t""yes" 1>&6
2992 else
2993 echo "$ac_t""no" 1>&6
2994 fi
2995
2996
2997 echo $ac_n "checking "for --enable-wcsrtombs"""... $ac_c" 1>&6
ab9b9eab 2998echo "configure:2999: checking "for --enable-wcsrtombs"" >&5
10f2d63a
VZ
2999 no_cache=0
3000 # Check whether --enable-wcsrtombs or --disable-wcsrtombs was given.
3001if test "${enable_wcsrtombs+set}" = set; then
3002 enableval="$enable_wcsrtombs"
3003
3004 if test "$enableval" = yes; then
3005 ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS=yes'
3006 else
3007 ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS=no'
3008 fi
3009
3010else
3011
3012 LINE=`grep "wxUSE_WCSRTOMBS" ${wx_arg_cache_file}`
3013 if test "x$LINE" != x ; then
3014 eval "DEFAULT_$LINE"
3015 else
3016 no_cache=1
3017 fi
3018
3019 ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS='$DEFAULT_wxUSE_WCSRTOMBS
3020
3021fi
3022
3023
3024 eval "$ac_cv_use_wcsrtombs"
3025 if test "$no_cache" != 1; then
3026 echo $ac_cv_use_wcsrtombs >> ${wx_arg_cache_file}.tmp
3027 fi
3028
3029 if test "$wxUSE_WCSRTOMBS" = yes; then
3030 echo "$ac_t""yes" 1>&6
3031 else
3032 echo "$ac_t""no" 1>&6
3033 fi
3034
3035
3036 echo $ac_n "checking "for --enable-wxprintfv"""... $ac_c" 1>&6
ab9b9eab 3037echo "configure:3038: checking "for --enable-wxprintfv"" >&5
10f2d63a
VZ
3038 no_cache=0
3039 # Check whether --enable-wxprintfv or --disable-wxprintfv was given.
3040if test "${enable_wxprintfv+set}" = set; then
3041 enableval="$enable_wxprintfv"
3042
3043 if test "$enableval" = yes; then
3044 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes'
3045 else
3046 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no'
3047 fi
3048
3049else
3050
3051 LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}`
3052 if test "x$LINE" != x ; then
3053 eval "DEFAULT_$LINE"
3054 else
3055 no_cache=1
3056 fi
3057
3058 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF
3059
3060fi
3061
3062
3063 eval "$ac_cv_use_wxprintfv"
3064 if test "$no_cache" != 1; then
3065 echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp
3066 fi
3067
3068 if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then
3069 echo "$ac_t""yes" 1>&6
3070 else
3071 echo "$ac_t""no" 1>&6
3072 fi
3073
3074
3075 echo $ac_n "checking "for --enable-joystick"""... $ac_c" 1>&6
ab9b9eab 3076echo "configure:3077: checking "for --enable-joystick"" >&5
10f2d63a
VZ
3077 no_cache=0
3078 # Check whether --enable-joystick or --disable-joystick was given.
3079if test "${enable_joystick+set}" = set; then
3080 enableval="$enable_joystick"
3081
3082 if test "$enableval" = yes; then
3083 ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
3084 else
3085 ac_cv_use_joystick='wxUSE_JOYSTICK=no'
3086 fi
3087
3088else
3089
3090 LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
3091 if test "x$LINE" != x ; then
3092 eval "DEFAULT_$LINE"
3093 else
3094 no_cache=1
3095 fi
3096
3097 ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
3098
3099fi
3100
3101
3102 eval "$ac_cv_use_joystick"
3103 if test "$no_cache" != 1; then
3104 echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
3105 fi
3106
3107 if test "$wxUSE_JOYSTICK" = yes; then
3108 echo "$ac_t""yes" 1>&6
3109 else
3110 echo "$ac_t""no" 1>&6
3111 fi
3112
3113
3114 echo $ac_n "checking "for --enable-std_iostreams"""... $ac_c" 1>&6
ab9b9eab 3115echo "configure:3116: checking "for --enable-std_iostreams"" >&5
10f2d63a
VZ
3116 no_cache=0
3117 # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
3118if test "${enable_std_iostreams+set}" = set; then
3119 enableval="$enable_std_iostreams"
3120
3121 if test "$enableval" = yes; then
3122 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
3123 else
3124 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
3125 fi
3126
3127else
3128
3129 LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
3130 if test "x$LINE" != x ; then
3131 eval "DEFAULT_$LINE"
3132 else
3133 no_cache=1
3134 fi
3135
3136 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
3137
3138fi
3139
3140
3141 eval "$ac_cv_use_std_iostreams"
3142 if test "$no_cache" != 1; then
3143 echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
3144 fi
3145
3146 if test "$wxUSE_STD_IOSTREAM" = yes; then
3147 echo "$ac_t""yes" 1>&6
3148 else
3149 echo "$ac_t""no" 1>&6
3150 fi
3151
3152
3153 echo $ac_n "checking "for --enable-fs_inet"""... $ac_c" 1>&6
ab9b9eab 3154echo "configure:3155: checking "for --enable-fs_inet"" >&5
10f2d63a
VZ
3155 no_cache=0
3156 # Check whether --enable-fs_inet or --disable-fs_inet was given.
3157if test "${enable_fs_inet+set}" = set; then
3158 enableval="$enable_fs_inet"
3159
3160 if test "$enableval" = yes; then
3161 ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
3162 else
3163 ac_cv_use_fs_inet='wxUSE_FS_INET=no'
3164 fi
3165
3166else
3167
3168 LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
3169 if test "x$LINE" != x ; then
3170 eval "DEFAULT_$LINE"
3171 else
3172 no_cache=1
3173 fi
3174
3175 ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
3176
3177fi
3178
3179
3180 eval "$ac_cv_use_fs_inet"
3181 if test "$no_cache" != 1; then
3182 echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
3183 fi
3184
3185 if test "$wxUSE_FS_INET" = yes; then
3186 echo "$ac_t""yes" 1>&6
3187 else
3188 echo "$ac_t""no" 1>&6
3189 fi
3190
3191
3192 echo $ac_n "checking "for --enable-fs_zip"""... $ac_c" 1>&6
ab9b9eab 3193echo "configure:3194: checking "for --enable-fs_zip"" >&5
10f2d63a
VZ
3194 no_cache=0
3195 # Check whether --enable-fs_zip or --disable-fs_zip was given.
3196if test "${enable_fs_zip+set}" = set; then
3197 enableval="$enable_fs_zip"
3198
3199 if test "$enableval" = yes; then
3200 ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
3201 else
3202 ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
3203 fi
3204
3205else
3206
3207 LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
3208 if test "x$LINE" != x ; then
3209 eval "DEFAULT_$LINE"
3210 else
3211 no_cache=1
3212 fi
3213
3214 ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
3215
3216fi
3217
3218
3219 eval "$ac_cv_use_fs_zip"
3220 if test "$no_cache" != 1; then
3221 echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
3222 fi
3223
3224 if test "$wxUSE_FS_ZIP" = yes; then
3225 echo "$ac_t""yes" 1>&6
3226 else
3227 echo "$ac_t""no" 1>&6
3228 fi
3229
3230
3231 echo $ac_n "checking "for --enable-zipstream"""... $ac_c" 1>&6
ab9b9eab 3232echo "configure:3233: checking "for --enable-zipstream"" >&5
10f2d63a
VZ
3233 no_cache=0
3234 # Check whether --enable-zipstream or --disable-zipstream was given.
3235if test "${enable_zipstream+set}" = set; then
3236 enableval="$enable_zipstream"
3237
3238 if test "$enableval" = yes; then
3239 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
3240 else
3241 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
3242 fi
3243
3244else
3245
3246 LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
3247 if test "x$LINE" != x ; then
3248 eval "DEFAULT_$LINE"
3249 else
3250 no_cache=1
3251 fi
3252
3253 ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
3254
3255fi
3256
3257
3258 eval "$ac_cv_use_zipstream"
3259 if test "$no_cache" != 1; then
3260 echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
3261 fi
3262
3263 if test "$wxUSE_ZIPSTREAM" = yes; then
3264 echo "$ac_t""yes" 1>&6
3265 else
3266 echo "$ac_t""no" 1>&6
3267 fi
3268
3269
3270
3271
3272 echo $ac_n "checking "for --enable-threads"""... $ac_c" 1>&6
ab9b9eab 3273echo "configure:3274: checking "for --enable-threads"" >&5
10f2d63a
VZ
3274 no_cache=0
3275 # Check whether --enable-threads or --disable-threads was given.
3276if test "${enable_threads+set}" = set; then
3277 enableval="$enable_threads"
3278
3279 if test "$enableval" = yes; then
3280 ac_cv_use_threads='wxUSE_THREADS=yes'
3281 else
3282 ac_cv_use_threads='wxUSE_THREADS=no'
3283 fi
3284
3285else
3286
3287 LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
3288 if test "x$LINE" != x ; then
3289 eval "DEFAULT_$LINE"
3290 else
3291 no_cache=1
3292 fi
3293
3294 ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
3295
3296fi
3297
3298
3299 eval "$ac_cv_use_threads"
3300 if test "$no_cache" != 1; then
3301 echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
3302 fi
3303
3304 if test "$wxUSE_THREADS" = yes; then
3305 echo "$ac_t""yes" 1>&6
3306 else
3307 echo "$ac_t""no" 1>&6
3308 fi
3309
3310
3311 echo $ac_n "checking "for --enable-serial"""... $ac_c" 1>&6
ab9b9eab 3312echo "configure:3313: checking "for --enable-serial"" >&5
10f2d63a
VZ
3313 no_cache=0
3314 # Check whether --enable-serial or --disable-serial was given.
3315if test "${enable_serial+set}" = set; then
3316 enableval="$enable_serial"
3317
3318 if test "$enableval" = yes; then
3319 ac_cv_use_serial='wxUSE_SERIAL=yes'
3320 else
3321 ac_cv_use_serial='wxUSE_SERIAL=no'
3322 fi
3323
3324else
3325
3326 LINE=`grep "wxUSE_SERIAL" ${wx_arg_cache_file}`
3327 if test "x$LINE" != x ; then
3328 eval "DEFAULT_$LINE"
3329 else
3330 no_cache=1
3331 fi
3332
3333 ac_cv_use_serial='wxUSE_SERIAL='$DEFAULT_wxUSE_SERIAL
3334
3335fi
3336
3337
3338 eval "$ac_cv_use_serial"
3339 if test "$no_cache" != 1; then
3340 echo $ac_cv_use_serial >> ${wx_arg_cache_file}.tmp
3341 fi
3342
3343 if test "$wxUSE_SERIAL" = yes; then
3344 echo "$ac_t""yes" 1>&6
3345 else
3346 echo "$ac_t""no" 1>&6
3347 fi
3348
3349
3350
3351
3352 echo $ac_n "checking "for --enable-docview"""... $ac_c" 1>&6
ab9b9eab 3353echo "configure:3354: checking "for --enable-docview"" >&5
10f2d63a
VZ
3354 no_cache=0
3355 # Check whether --enable-docview or --disable-docview was given.
3356if test "${enable_docview+set}" = set; then
3357 enableval="$enable_docview"
3358
3359 if test "$enableval" = yes; then
3360 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
3361 else
3362 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
3363 fi
3364
3365else
3366
3367 LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
3368 if test "x$LINE" != x ; then
3369 eval "DEFAULT_$LINE"
3370 else
3371 no_cache=1
3372 fi
3373
3374 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
3375
3376fi
3377
3378
3379 eval "$ac_cv_use_docview"
3380 if test "$no_cache" != 1; then
3381 echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
3382 fi
3383
3384 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
3385 echo "$ac_t""yes" 1>&6
3386 else
3387 echo "$ac_t""no" 1>&6
3388 fi
3389
3390
3391 echo $ac_n "checking "for --enable-help"""... $ac_c" 1>&6
ab9b9eab 3392echo "configure:3393: checking "for --enable-help"" >&5
10f2d63a
VZ
3393 no_cache=0
3394 # Check whether --enable-help or --disable-help was given.
3395if test "${enable_help+set}" = set; then
3396 enableval="$enable_help"
3397
3398 if test "$enableval" = yes; then
3399 ac_cv_use_help='wxUSE_HELP=yes'
3400 else
3401 ac_cv_use_help='wxUSE_HELP=no'
3402 fi
3403
3404else
3405
3406 LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
3407 if test "x$LINE" != x ; then
3408 eval "DEFAULT_$LINE"
3409 else
3410 no_cache=1
3411 fi
3412
3413 ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
3414
3415fi
3416
3417
3418 eval "$ac_cv_use_help"
3419 if test "$no_cache" != 1; then
3420 echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
3421 fi
3422
3423 if test "$wxUSE_HELP" = yes; then
3424 echo "$ac_t""yes" 1>&6
3425 else
3426 echo "$ac_t""no" 1>&6
3427 fi
3428
3429
3430 echo $ac_n "checking "for --enable-constraints"""... $ac_c" 1>&6
ab9b9eab 3431echo "configure:3432: checking "for --enable-constraints"" >&5
10f2d63a
VZ
3432 no_cache=0
3433 # Check whether --enable-constraints or --disable-constraints was given.
3434if test "${enable_constraints+set}" = set; then
3435 enableval="$enable_constraints"
3436
3437 if test "$enableval" = yes; then
3438 ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
3439 else
3440 ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
3441 fi
3442
3443else
3444
3445 LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
3446 if test "x$LINE" != x ; then
3447 eval "DEFAULT_$LINE"
3448 else
3449 no_cache=1
3450 fi
3451
3452 ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
3453
3454fi
3455
3456
3457 eval "$ac_cv_use_constraints"
3458 if test "$no_cache" != 1; then
3459 echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
3460 fi
3461
3462 if test "$wxUSE_CONSTRAINTS" = yes; then
3463 echo "$ac_t""yes" 1>&6
3464 else
3465 echo "$ac_t""no" 1>&6
3466 fi
3467
3468
3469 echo $ac_n "checking "for --enable-printarch"""... $ac_c" 1>&6
ab9b9eab 3470echo "configure:3471: checking "for --enable-printarch"" >&5
10f2d63a
VZ
3471 no_cache=0
3472 # Check whether --enable-printarch or --disable-printarch was given.
3473if test "${enable_printarch+set}" = set; then
3474 enableval="$enable_printarch"
3475
3476 if test "$enableval" = yes; then
3477 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
3478 else
3479 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
3480 fi
3481
3482else
3483
3484 LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
3485 if test "x$LINE" != x ; then
3486 eval "DEFAULT_$LINE"
3487 else
3488 no_cache=1
3489 fi
3490
3491 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
3492
3493fi
3494
3495
3496 eval "$ac_cv_use_printarch"
3497 if test "$no_cache" != 1; then
3498 echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
3499 fi
3500
3501 if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
3502 echo "$ac_t""yes" 1>&6
3503 else
3504 echo "$ac_t""no" 1>&6
3505 fi
3506
3507
3508 echo $ac_n "checking "for --enable-mdi"""... $ac_c" 1>&6
ab9b9eab 3509echo "configure:3510: checking "for --enable-mdi"" >&5
10f2d63a
VZ
3510 no_cache=0
3511 # Check whether --enable-mdi or --disable-mdi was given.
3512if test "${enable_mdi+set}" = set; then
3513 enableval="$enable_mdi"
3514
3515 if test "$enableval" = yes; then
3516 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=yes'
3517 else
3518 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=no'
3519 fi
3520
3521else
3522
3523 LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
3524 if test "x$LINE" != x ; then
3525 eval "DEFAULT_$LINE"
3526 else
3527 no_cache=1
3528 fi
3529
3530 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
3531
3532fi
3533
3534
3535 eval "$ac_cv_use_mdi"
3536 if test "$no_cache" != 1; then
3537 echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
3538 fi
3539
3540 if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
3541 echo "$ac_t""yes" 1>&6
3542 else
3543 echo "$ac_t""no" 1>&6
3544 fi
3545
3546
3547
3548 echo $ac_n "checking "for --enable-postscript"""... $ac_c" 1>&6
ab9b9eab 3549echo "configure:3550: checking "for --enable-postscript"" >&5
10f2d63a
VZ
3550 no_cache=0
3551 # Check whether --enable-postscript or --disable-postscript was given.
3552if test "${enable_postscript+set}" = set; then
3553 enableval="$enable_postscript"
3554
3555 if test "$enableval" = yes; then
3556 ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
3557 else
3558 ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
3559 fi
3560
3561else
3562
3563 LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
3564 if test "x$LINE" != x ; then
3565 eval "DEFAULT_$LINE"
3566 else
3567 no_cache=1
3568 fi
3569
3570 ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
3571
3572fi
3573
3574
3575 eval "$ac_cv_use_postscript"
3576 if test "$no_cache" != 1; then
3577 echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
3578 fi
3579
3580 if test "$wxUSE_POSTSCRIPT" = yes; then
3581 echo "$ac_t""yes" 1>&6
3582 else
3583 echo "$ac_t""no" 1>&6
3584 fi
3585
3586
3587
3588
3589 echo $ac_n "checking "for --enable-prologio"""... $ac_c" 1>&6
ab9b9eab 3590echo "configure:3591: checking "for --enable-prologio"" >&5
10f2d63a
VZ
3591 no_cache=0
3592 # Check whether --enable-prologio or --disable-prologio was given.
3593if test "${enable_prologio+set}" = set; then
3594 enableval="$enable_prologio"
3595
3596 if test "$enableval" = yes; then
3597 ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
3598 else
3599 ac_cv_use_prologio='wxUSE_PROLOGIO=no'
3600 fi
3601
3602else
3603
3604 LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
3605 if test "x$LINE" != x ; then
3606 eval "DEFAULT_$LINE"
3607 else
3608 no_cache=1
3609 fi
3610
3611 ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
3612
3613fi
3614
3615
3616 eval "$ac_cv_use_prologio"
3617 if test "$no_cache" != 1; then
3618 echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
3619 fi
3620
3621 if test "$wxUSE_PROLOGIO" = yes; then
3622 echo "$ac_t""yes" 1>&6
3623 else
3624 echo "$ac_t""no" 1>&6
3625 fi
3626
3627
3628 echo $ac_n "checking "for --enable-resources"""... $ac_c" 1>&6
ab9b9eab 3629echo "configure:3630: checking "for --enable-resources"" >&5
10f2d63a
VZ
3630 no_cache=0
3631 # Check whether --enable-resources or --disable-resources was given.
3632if test "${enable_resources+set}" = set; then
3633 enableval="$enable_resources"
3634
3635 if test "$enableval" = yes; then
3636 ac_cv_use_resources='wxUSE_RESOURCES=yes'
3637 else
3638 ac_cv_use_resources='wxUSE_RESOURCES=no'
3639 fi
3640
3641else
3642
3643 LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
3644 if test "x$LINE" != x ; then
3645 eval "DEFAULT_$LINE"
3646 else
3647 no_cache=1
3648 fi
3649
3650 ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
3651
3652fi
3653
3654
3655 eval "$ac_cv_use_resources"
3656 if test "$no_cache" != 1; then
3657 echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
3658 fi
3659
3660 if test "$wxUSE_RESOURCES" = yes; then
3661 echo "$ac_t""yes" 1>&6
3662 else
3663 echo "$ac_t""no" 1>&6
3664 fi
3665
3666
3667
3668 echo $ac_n "checking "for --enable-xresources"""... $ac_c" 1>&6
ab9b9eab 3669echo "configure:3670: checking "for --enable-xresources"" >&5
10f2d63a
VZ
3670 no_cache=0
3671 # Check whether --enable-xresources or --disable-xresources was given.
3672if test "${enable_xresources+set}" = set; then
3673 enableval="$enable_xresources"
3674
3675 if test "$enableval" = yes; then
3676 ac_cv_use_xresources='wxUSE_X_RESOURCES=yes'
3677 else
3678 ac_cv_use_xresources='wxUSE_X_RESOURCES=no'
3679 fi
3680
3681else
3682
3683 LINE=`grep "wxUSE_X_RESOURCES" ${wx_arg_cache_file}`
3684 if test "x$LINE" != x ; then
3685 eval "DEFAULT_$LINE"
3686 else
3687 no_cache=1
3688 fi
3689
3690 ac_cv_use_xresources='wxUSE_X_RESOURCES='$DEFAULT_wxUSE_X_RESOURCES
3691
3692fi
3693
3694
3695 eval "$ac_cv_use_xresources"
3696 if test "$no_cache" != 1; then
3697 echo $ac_cv_use_xresources >> ${wx_arg_cache_file}.tmp
3698 fi
3699
3700 if test "$wxUSE_X_RESOURCES" = yes; then
3701 echo "$ac_t""yes" 1>&6
3702 else
3703 echo "$ac_t""no" 1>&6
3704 fi
3705
3706
3707
3708
3709 echo $ac_n "checking "for --enable-clipboard"""... $ac_c" 1>&6
ab9b9eab 3710echo "configure:3711: checking "for --enable-clipboard"" >&5
10f2d63a
VZ
3711 no_cache=0
3712 # Check whether --enable-clipboard or --disable-clipboard was given.
3713if test "${enable_clipboard+set}" = set; then
3714 enableval="$enable_clipboard"
3715
3716 if test "$enableval" = yes; then
3717 ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
3718 else
3719 ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
3720 fi
3721
3722else
3723
3724 LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
3725 if test "x$LINE" != x ; then
3726 eval "DEFAULT_$LINE"
3727 else
3728 no_cache=1
3729 fi
3730
3731 ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
3732
3733fi
3734
3735
3736 eval "$ac_cv_use_clipboard"
3737 if test "$no_cache" != 1; then
3738 echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
3739 fi
3740
3741 if test "$wxUSE_CLIPBOARD" = yes; then
3742 echo "$ac_t""yes" 1>&6
3743 else
3744 echo "$ac_t""no" 1>&6
3745 fi
3746
3747
3748 echo $ac_n "checking "for --enable-dnd"""... $ac_c" 1>&6
ab9b9eab 3749echo "configure:3750: checking "for --enable-dnd"" >&5
10f2d63a
VZ
3750 no_cache=0
3751 # Check whether --enable-dnd or --disable-dnd was given.
3752if test "${enable_dnd+set}" = set; then
3753 enableval="$enable_dnd"
3754
3755 if test "$enableval" = yes; then
3756 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
3757 else
3758 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
3759 fi
3760
3761else
3762
3763 LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
3764 if test "x$LINE" != x ; then
3765 eval "DEFAULT_$LINE"
3766 else
3767 no_cache=1
3768 fi
3769
3770 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
3771
3772fi
3773
3774
3775 eval "$ac_cv_use_dnd"
3776 if test "$no_cache" != 1; then
3777 echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
3778 fi
3779
3780 if test "$wxUSE_DRAG_AND_DROP" = yes; then
3781 echo "$ac_t""yes" 1>&6
3782 else
3783 echo "$ac_t""no" 1>&6
3784 fi
3785
3786
3787
3788 echo $ac_n "checking "for --enable-wxtree"""... $ac_c" 1>&6
ab9b9eab 3789echo "configure:3790: checking "for --enable-wxtree"" >&5
10f2d63a
VZ
3790 no_cache=0
3791 # Check whether --enable-wxtree or --disable-wxtree was given.
3792if test "${enable_wxtree+set}" = set; then
3793 enableval="$enable_wxtree"
3794
3795 if test "$enableval" = yes; then
3796 ac_cv_use_wxtree='wxUSE_WXTREE=yes'
3797 else
3798 ac_cv_use_wxtree='wxUSE_WXTREE=no'
3799 fi
3800
3801else
3802
3803 LINE=`grep "wxUSE_WXTREE" ${wx_arg_cache_file}`
3804 if test "x$LINE" != x ; then
3805 eval "DEFAULT_$LINE"
3806 else
3807 no_cache=1
3808 fi
3809
3810 ac_cv_use_wxtree='wxUSE_WXTREE='$DEFAULT_wxUSE_WXTREE
3811
3812fi
3813
3814
3815 eval "$ac_cv_use_wxtree"
3816 if test "$no_cache" != 1; then
3817 echo $ac_cv_use_wxtree >> ${wx_arg_cache_file}.tmp
3818 fi
3819
3820 if test "$wxUSE_WXTREE" = yes; then
3821 echo "$ac_t""yes" 1>&6
3822 else
3823 echo "$ac_t""no" 1>&6
3824 fi
3825
3826
3827
3828
3829 echo $ac_n "checking "for --enable-controls"""... $ac_c" 1>&6
ab9b9eab 3830echo "configure:3831: checking "for --enable-controls"" >&5
10f2d63a
VZ
3831 no_cache=0
3832 # Check whether --enable-controls or --disable-controls was given.
3833if test "${enable_controls+set}" = set; then
3834 enableval="$enable_controls"
3835
3836 if test "$enableval" = yes; then
3837 ac_cv_use_controls='wxUSE_CONTROLS=yes'
3838 else
3839 ac_cv_use_controls='wxUSE_CONTROLS=no'
3840 fi
3841
3842else
3843
3844 LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
3845 if test "x$LINE" != x ; then
3846 eval "DEFAULT_$LINE"
3847 else
3848 no_cache=1
3849 fi
3850
3851 ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
3852
3853fi
3854
3855
3856 eval "$ac_cv_use_controls"
3857 if test "$no_cache" != 1; then
3858 echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
3859 fi
3860
3861 if test "$wxUSE_CONTROLS" = yes; then
3862 echo "$ac_t""yes" 1>&6
3863 else
3864 echo "$ac_t""no" 1>&6
3865 fi
3866
3867
3868if test "$wxUSE_CONTROLS" = "yes"; then
3869 DEFAULT_wxUSE_ACCEL=yes
3870 DEFAULT_wxUSE_CARET=yes
3871 DEFAULT_wxUSE_COMBOBOX=yes
3872 DEFAULT_wxUSE_BMPBUTTON=yes
3873 DEFAULT_wxUSE_CHECKBOX=yes
3874 DEFAULT_wxUSE_CHECKLISTBOX=yes
3875 DEFAULT_wxUSE_CHOICE=yes
3876 DEFAULT_wxUSE_GAUGE=yes
3877 DEFAULT_wxUSE_GRID=yes
fc9c7c09 3878 DEFAULT_wxUSE_NEW_GRID=no
10f2d63a
VZ
3879 DEFAULT_wxUSE_IMAGLIST=yes
3880 DEFAULT_wxUSE_LISTBOX=yes
3881 DEFAULT_wxUSE_LISTCTRL=yes
3882 DEFAULT_wxUSE_NOTEBOOK=yes
3883 DEFAULT_wxUSE_RADIOBOX=yes
3884 DEFAULT_wxUSE_RADIOBTN=yes
3885 DEFAULT_wxUSE_SASH=yes
3886 DEFAULT_wxUSE_SCROLLBAR=yes
3887 DEFAULT_wxUSE_SLIDER=yes
3888 DEFAULT_wxUSE_SPINBTN=yes
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
3896 DEFAULT_wxUSE_TOOLTIPS=yes
3897 DEFAULT_wxUSE_TREECTRL=yes
3898elif test "$wxUSE_CONTROLS" = "no"; then
3899 DEFAULT_wxUSE_ACCEL=no
3900 DEFAULT_wxUSE_CARET=no
3901 DEFAULT_wxUSE_COMBOBOX=no
3902 DEFAULT_wxUSE_BMPBUTTON=no
3903 DEFAULT_wxUSE_CHECKBOX=no
3904 DEFAULT_wxUSE_CHECKLISTBOX=no
3905 DEFAULT_wxUSE_CHOICE=no
3906 DEFAULT_wxUSE_GAUGE=no
3907 DEFAULT_wxUSE_GRID=no
3908 DEFAULT_wxUSE_NEW_GRID=no
3909 DEFAULT_wxUSE_IMAGLIST=no
3910 DEFAULT_wxUSE_LISTBOX=no
3911 DEFAULT_wxUSE_LISTCTRL=no
3912 DEFAULT_wxUSE_NOTEBOOK=no
3913 DEFAULT_wxUSE_RADIOBOX=no
3914 DEFAULT_wxUSE_RADIOBTN=no
3915 DEFAULT_wxUSE_SASH=no
3916 DEFAULT_wxUSE_SCROLLBAR=no
3917 DEFAULT_wxUSE_SLIDER=no
3918 DEFAULT_wxUSE_SPINBTN=no
3919 DEFAULT_wxUSE_SPLITTER=no
3920 DEFAULT_wxUSE_STATBMP=no
3921 DEFAULT_wxUSE_STATBOX=no
3922 DEFAULT_wxUSE_STATLINE=no
3923 DEFAULT_wxUSE_STATUSBAR=no
3924 DEFAULT_wxUSE_TAB_DIALOG=no
3925 DEFAULT_wxUSE_TOOLBAR=no
3926 DEFAULT_wxUSE_TOOLTIPS=no
3927 DEFAULT_wxUSE_TREECTRL=no
3928fi
3929
3930
3931 echo $ac_n "checking "for --enable-accel"""... $ac_c" 1>&6
ab9b9eab 3932echo "configure:3933: checking "for --enable-accel"" >&5
10f2d63a
VZ
3933 no_cache=0
3934 # Check whether --enable-accel or --disable-accel was given.
3935if test "${enable_accel+set}" = set; then
3936 enableval="$enable_accel"
3937
3938 if test "$enableval" = yes; then
3939 ac_cv_use_accel='wxUSE_ACCEL=yes'
3940 else
3941 ac_cv_use_accel='wxUSE_ACCEL=no'
3942 fi
3943
3944else
3945
3946 LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
3947 if test "x$LINE" != x ; then
3948 eval "DEFAULT_$LINE"
3949 else
3950 no_cache=1
3951 fi
3952
3953 ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
3954
3955fi
3956
3957
3958 eval "$ac_cv_use_accel"
3959 if test "$no_cache" != 1; then
3960 echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
3961 fi
3962
3963 if test "$wxUSE_ACCEL" = yes; then
3964 echo "$ac_t""yes" 1>&6
3965 else
3966 echo "$ac_t""no" 1>&6
3967 fi
3968
3969
3970 echo $ac_n "checking "for --enable-caret"""... $ac_c" 1>&6
ab9b9eab 3971echo "configure:3972: checking "for --enable-caret"" >&5
10f2d63a
VZ
3972 no_cache=0
3973 # Check whether --enable-caret or --disable-caret was given.
3974if test "${enable_caret+set}" = set; then
3975 enableval="$enable_caret"
3976
3977 if test "$enableval" = yes; then
3978 ac_cv_use_caret='wxUSE_CARET=yes'
3979 else
3980 ac_cv_use_caret='wxUSE_CARET=no'
3981 fi
3982
3983else
3984
3985 LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
3986 if test "x$LINE" != x ; then
3987 eval "DEFAULT_$LINE"
3988 else
3989 no_cache=1
3990 fi
3991
3992 ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
3993
3994fi
3995
3996
3997 eval "$ac_cv_use_caret"
3998 if test "$no_cache" != 1; then
3999 echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
4000 fi
4001
4002 if test "$wxUSE_CARET" = yes; then
4003 echo "$ac_t""yes" 1>&6
4004 else
4005 echo "$ac_t""no" 1>&6
4006 fi
4007
4008
4009 echo $ac_n "checking "for --enable-bmpbutton"""... $ac_c" 1>&6
ab9b9eab 4010echo "configure:4011: checking "for --enable-bmpbutton"" >&5
10f2d63a
VZ
4011 no_cache=0
4012 # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
4013if test "${enable_bmpbutton+set}" = set; then
4014 enableval="$enable_bmpbutton"
4015
4016 if test "$enableval" = yes; then
4017 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
4018 else
4019 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
4020 fi
4021
4022else
4023
4024 LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
4025 if test "x$LINE" != x ; then
4026 eval "DEFAULT_$LINE"
4027 else
4028 no_cache=1
4029 fi
4030
4031 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
4032
4033fi
4034
4035
4036 eval "$ac_cv_use_bmpbutton"
4037 if test "$no_cache" != 1; then
4038 echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
4039 fi
4040
4041 if test "$wxUSE_BMPBUTTON" = yes; then
4042 echo "$ac_t""yes" 1>&6
4043 else
4044 echo "$ac_t""no" 1>&6
4045 fi
4046
4047
4048 echo $ac_n "checking "for --enable-checkbox"""... $ac_c" 1>&6
ab9b9eab 4049echo "configure:4050: checking "for --enable-checkbox"" >&5
10f2d63a
VZ
4050 no_cache=0
4051 # Check whether --enable-checkbox or --disable-checkbox was given.
4052if test "${enable_checkbox+set}" = set; then
4053 enableval="$enable_checkbox"
4054
4055 if test "$enableval" = yes; then
4056 ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
4057 else
4058 ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
4059 fi
4060
4061else
4062
4063 LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
4064 if test "x$LINE" != x ; then
4065 eval "DEFAULT_$LINE"
4066 else
4067 no_cache=1
4068 fi
4069
4070 ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
4071
4072fi
4073
4074
4075 eval "$ac_cv_use_checkbox"
4076 if test "$no_cache" != 1; then
4077 echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
4078 fi
4079
4080 if test "$wxUSE_CHECKBOX" = yes; then
4081 echo "$ac_t""yes" 1>&6
4082 else
4083 echo "$ac_t""no" 1>&6
4084 fi
4085
4086
4087 echo $ac_n "checking "for --enable-checklst"""... $ac_c" 1>&6
ab9b9eab 4088echo "configure:4089: checking "for --enable-checklst"" >&5
10f2d63a
VZ
4089 no_cache=0
4090 # Check whether --enable-checklst or --disable-checklst was given.
4091if test "${enable_checklst+set}" = set; then
4092 enableval="$enable_checklst"
4093
4094 if test "$enableval" = yes; then
4095 ac_cv_use_checklst='wxUSE_CHECKLST=yes'
4096 else
4097 ac_cv_use_checklst='wxUSE_CHECKLST=no'
4098 fi
4099
4100else
4101
4102 LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
4103 if test "x$LINE" != x ; then
4104 eval "DEFAULT_$LINE"
4105 else
4106 no_cache=1
4107 fi
4108
4109 ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
4110
4111fi
4112
4113
4114 eval "$ac_cv_use_checklst"
4115 if test "$no_cache" != 1; then
4116 echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
4117 fi
4118
4119 if test "$wxUSE_CHECKLST" = yes; then
4120 echo "$ac_t""yes" 1>&6
4121 else
4122 echo "$ac_t""no" 1>&6
4123 fi
4124
4125
4126 echo $ac_n "checking "for --enable-choice"""... $ac_c" 1>&6
ab9b9eab 4127echo "configure:4128: checking "for --enable-choice"" >&5
10f2d63a
VZ
4128 no_cache=0
4129 # Check whether --enable-choice or --disable-choice was given.
4130if test "${enable_choice+set}" = set; then
4131 enableval="$enable_choice"
4132
4133 if test "$enableval" = yes; then
4134 ac_cv_use_choice='wxUSE_CHOICE=yes'
4135 else
4136 ac_cv_use_choice='wxUSE_CHOICE=no'
4137 fi
4138
4139else
4140
4141 LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
4142 if test "x$LINE" != x ; then
4143 eval "DEFAULT_$LINE"
4144 else
4145 no_cache=1
4146 fi
4147
4148 ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
4149
4150fi
4151
4152
4153 eval "$ac_cv_use_choice"
4154 if test "$no_cache" != 1; then
4155 echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
4156 fi
4157
4158 if test "$wxUSE_CHOICE" = yes; then
4159 echo "$ac_t""yes" 1>&6
4160 else
4161 echo "$ac_t""no" 1>&6
4162 fi
4163
4164
4165 echo $ac_n "checking "for --enable-combobox"""... $ac_c" 1>&6
ab9b9eab 4166echo "configure:4167: checking "for --enable-combobox"" >&5
10f2d63a
VZ
4167 no_cache=0
4168 # Check whether --enable-combobox or --disable-combobox was given.
4169if test "${enable_combobox+set}" = set; then
4170 enableval="$enable_combobox"
4171
4172 if test "$enableval" = yes; then
4173 ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
4174 else
4175 ac_cv_use_combobox='wxUSE_COMBOBOX=no'
4176 fi
4177
4178else
4179
4180 LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
4181 if test "x$LINE" != x ; then
4182 eval "DEFAULT_$LINE"
4183 else
4184 no_cache=1
4185 fi
4186
4187 ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
4188
4189fi
4190
4191
4192 eval "$ac_cv_use_combobox"
4193 if test "$no_cache" != 1; then
4194 echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
4195 fi
4196
4197 if test "$wxUSE_COMBOBOX" = yes; then
4198 echo "$ac_t""yes" 1>&6
4199 else
4200 echo "$ac_t""no" 1>&6
4201 fi
4202
4203
4204 echo $ac_n "checking "for --enable-gauge"""... $ac_c" 1>&6
ab9b9eab 4205echo "configure:4206: checking "for --enable-gauge"" >&5
10f2d63a
VZ
4206 no_cache=0
4207 # Check whether --enable-gauge or --disable-gauge was given.
4208if test "${enable_gauge+set}" = set; then
4209 enableval="$enable_gauge"
4210
4211 if test "$enableval" = yes; then
4212 ac_cv_use_gauge='wxUSE_GAUGE=yes'
4213 else
4214 ac_cv_use_gauge='wxUSE_GAUGE=no'
4215 fi
4216
4217else
4218
4219 LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
4220 if test "x$LINE" != x ; then
4221 eval "DEFAULT_$LINE"
4222 else
4223 no_cache=1
4224 fi
4225
4226 ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
4227
4228fi
4229
4230
4231 eval "$ac_cv_use_gauge"
4232 if test "$no_cache" != 1; then
4233 echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
4234 fi
4235
4236 if test "$wxUSE_GAUGE" = yes; then
4237 echo "$ac_t""yes" 1>&6
4238 else
4239 echo "$ac_t""no" 1>&6
4240 fi
4241
4242
4243 echo $ac_n "checking "for --enable-grid"""... $ac_c" 1>&6
ab9b9eab 4244echo "configure:4245: checking "for --enable-grid"" >&5
10f2d63a
VZ
4245 no_cache=0
4246 # Check whether --enable-grid or --disable-grid was given.
4247if test "${enable_grid+set}" = set; then
4248 enableval="$enable_grid"
4249
4250 if test "$enableval" = yes; then
4251 ac_cv_use_grid='wxUSE_GRID=yes'
4252 else
4253 ac_cv_use_grid='wxUSE_GRID=no'
4254 fi
4255
4256else
4257
4258 LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
4259 if test "x$LINE" != x ; then
4260 eval "DEFAULT_$LINE"
4261 else
4262 no_cache=1
4263 fi
4264
4265 ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
4266
4267fi
4268
4269
4270 eval "$ac_cv_use_grid"
4271 if test "$no_cache" != 1; then
4272 echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
4273 fi
4274
4275 if test "$wxUSE_GRID" = yes; then
4276 echo "$ac_t""yes" 1>&6
4277 else
4278 echo "$ac_t""no" 1>&6
4279 fi
4280
4281
4282 echo $ac_n "checking "for --enable-newgrid"""... $ac_c" 1>&6
ab9b9eab 4283echo "configure:4284: checking "for --enable-newgrid"" >&5
10f2d63a
VZ
4284 no_cache=0
4285 # Check whether --enable-newgrid or --disable-newgrid was given.
4286if test "${enable_newgrid+set}" = set; then
4287 enableval="$enable_newgrid"
4288
4289 if test "$enableval" = yes; then
4290 ac_cv_use_newgrid='wxUSE_NEW_GRID=yes'
4291 else
4292 ac_cv_use_newgrid='wxUSE_NEW_GRID=no'
4293 fi
4294
4295else
4296
4297 LINE=`grep "wxUSE_NEW_GRID" ${wx_arg_cache_file}`
4298 if test "x$LINE" != x ; then
4299 eval "DEFAULT_$LINE"
4300 else
4301 no_cache=1
4302 fi
4303
4304 ac_cv_use_newgrid='wxUSE_NEW_GRID='$DEFAULT_wxUSE_NEW_GRID
4305
4306fi
4307
4308
4309 eval "$ac_cv_use_newgrid"
4310 if test "$no_cache" != 1; then
4311 echo $ac_cv_use_newgrid >> ${wx_arg_cache_file}.tmp
4312 fi
4313
4314 if test "$wxUSE_NEW_GRID" = yes; then
4315 echo "$ac_t""yes" 1>&6
4316 else
4317 echo "$ac_t""no" 1>&6
4318 fi
4319
4320
4321 echo $ac_n "checking "for --enable-imaglist"""... $ac_c" 1>&6
ab9b9eab 4322echo "configure:4323: checking "for --enable-imaglist"" >&5
10f2d63a
VZ
4323 no_cache=0
4324 # Check whether --enable-imaglist or --disable-imaglist was given.
4325if test "${enable_imaglist+set}" = set; then
4326 enableval="$enable_imaglist"
4327
4328 if test "$enableval" = yes; then
4329 ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
4330 else
4331 ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
4332 fi
4333
4334else
4335
4336 LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
4337 if test "x$LINE" != x ; then
4338 eval "DEFAULT_$LINE"
4339 else
4340 no_cache=1
4341 fi
4342
4343 ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
4344
4345fi
4346
4347
4348 eval "$ac_cv_use_imaglist"
4349 if test "$no_cache" != 1; then
4350 echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
4351 fi
4352
4353 if test "$wxUSE_IMAGLIST" = yes; then
4354 echo "$ac_t""yes" 1>&6
4355 else
4356 echo "$ac_t""no" 1>&6
4357 fi
4358
4359
4360 echo $ac_n "checking "for --enable-listbox"""... $ac_c" 1>&6
ab9b9eab 4361echo "configure:4362: checking "for --enable-listbox"" >&5
10f2d63a
VZ
4362 no_cache=0
4363 # Check whether --enable-listbox or --disable-listbox was given.
4364if test "${enable_listbox+set}" = set; then
4365 enableval="$enable_listbox"
4366
4367 if test "$enableval" = yes; then
4368 ac_cv_use_listbox='wxUSE_LISTBOX=yes'
4369 else
4370 ac_cv_use_listbox='wxUSE_LISTBOX=no'
4371 fi
4372
4373else
4374
4375 LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
4376 if test "x$LINE" != x ; then
4377 eval "DEFAULT_$LINE"
4378 else
4379 no_cache=1
4380 fi
4381
4382 ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
4383
4384fi
4385
4386
4387 eval "$ac_cv_use_listbox"
4388 if test "$no_cache" != 1; then
4389 echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
4390 fi
4391
4392 if test "$wxUSE_LISTBOX" = yes; then
4393 echo "$ac_t""yes" 1>&6
4394 else
4395 echo "$ac_t""no" 1>&6
4396 fi
4397
4398
4399 echo $ac_n "checking "for --enable-listctrl"""... $ac_c" 1>&6
ab9b9eab 4400echo "configure:4401: checking "for --enable-listctrl"" >&5
10f2d63a
VZ
4401 no_cache=0
4402 # Check whether --enable-listctrl or --disable-listctrl was given.
4403if test "${enable_listctrl+set}" = set; then
4404 enableval="$enable_listctrl"
4405
4406 if test "$enableval" = yes; then
4407 ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
4408 else
4409 ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
4410 fi
4411
4412else
4413
4414 LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
4415 if test "x$LINE" != x ; then
4416 eval "DEFAULT_$LINE"
4417 else
4418 no_cache=1
4419 fi
4420
4421 ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
4422
4423fi
4424
4425
4426 eval "$ac_cv_use_listctrl"
4427 if test "$no_cache" != 1; then
4428 echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
4429 fi
4430
4431 if test "$wxUSE_LISTCTRL" = yes; then
4432 echo "$ac_t""yes" 1>&6
4433 else
4434 echo "$ac_t""no" 1>&6
4435 fi
4436
4437
4438 echo $ac_n "checking "for --enable-notebook"""... $ac_c" 1>&6
ab9b9eab 4439echo "configure:4440: checking "for --enable-notebook"" >&5
10f2d63a
VZ
4440 no_cache=0
4441 # Check whether --enable-notebook or --disable-notebook was given.
4442if test "${enable_notebook+set}" = set; then
4443 enableval="$enable_notebook"
4444
4445 if test "$enableval" = yes; then
4446 ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
4447 else
4448 ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
4449 fi
4450
4451else
4452
4453 LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
4454 if test "x$LINE" != x ; then
4455 eval "DEFAULT_$LINE"
4456 else
4457 no_cache=1
4458 fi
4459
4460 ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
4461
4462fi
4463
4464
4465 eval "$ac_cv_use_notebook"
4466 if test "$no_cache" != 1; then
4467 echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
4468 fi
4469
4470 if test "$wxUSE_NOTEBOOK" = yes; then
4471 echo "$ac_t""yes" 1>&6
4472 else
4473 echo "$ac_t""no" 1>&6
4474 fi
4475
4476
4477 echo $ac_n "checking "for --enable-radiobox"""... $ac_c" 1>&6
ab9b9eab 4478echo "configure:4479: checking "for --enable-radiobox"" >&5
10f2d63a
VZ
4479 no_cache=0
4480 # Check whether --enable-radiobox or --disable-radiobox was given.
4481if test "${enable_radiobox+set}" = set; then
4482 enableval="$enable_radiobox"
4483
4484 if test "$enableval" = yes; then
4485 ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
4486 else
4487 ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
4488 fi
4489
4490else
4491
4492 LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
4493 if test "x$LINE" != x ; then
4494 eval "DEFAULT_$LINE"
4495 else
4496 no_cache=1
4497 fi
4498
4499 ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
4500
4501fi
4502
4503
4504 eval "$ac_cv_use_radiobox"
4505 if test "$no_cache" != 1; then
4506 echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
4507 fi
4508
4509 if test "$wxUSE_RADIOBOX" = yes; then
4510 echo "$ac_t""yes" 1>&6
4511 else
4512 echo "$ac_t""no" 1>&6
4513 fi
4514
4515
4516 echo $ac_n "checking "for --enable-radiobtn"""... $ac_c" 1>&6
ab9b9eab 4517echo "configure:4518: checking "for --enable-radiobtn"" >&5
10f2d63a
VZ
4518 no_cache=0
4519 # Check whether --enable-radiobtn or --disable-radiobtn was given.
4520if test "${enable_radiobtn+set}" = set; then
4521 enableval="$enable_radiobtn"
4522
4523 if test "$enableval" = yes; then
4524 ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
4525 else
4526 ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
4527 fi
4528
4529else
4530
4531 LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
4532 if test "x$LINE" != x ; then
4533 eval "DEFAULT_$LINE"
4534 else
4535 no_cache=1
4536 fi
4537
4538 ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
4539
4540fi
4541
4542
4543 eval "$ac_cv_use_radiobtn"
4544 if test "$no_cache" != 1; then
4545 echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
4546 fi
4547
4548 if test "$wxUSE_RADIOBTN" = yes; then
4549 echo "$ac_t""yes" 1>&6
4550 else
4551 echo "$ac_t""no" 1>&6
4552 fi
4553
4554
4555 echo $ac_n "checking "for --enable-sash"""... $ac_c" 1>&6
ab9b9eab 4556echo "configure:4557: checking "for --enable-sash"" >&5
10f2d63a
VZ
4557 no_cache=0
4558 # Check whether --enable-sash or --disable-sash was given.
4559if test "${enable_sash+set}" = set; then
4560 enableval="$enable_sash"
4561
4562 if test "$enableval" = yes; then
4563 ac_cv_use_sash='wxUSE_SASH=yes'
4564 else
4565 ac_cv_use_sash='wxUSE_SASH=no'
4566 fi
4567
4568else
4569
4570 LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
4571 if test "x$LINE" != x ; then
4572 eval "DEFAULT_$LINE"
4573 else
4574 no_cache=1
4575 fi
4576
4577 ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
4578
4579fi
4580
4581
4582 eval "$ac_cv_use_sash"
4583 if test "$no_cache" != 1; then
4584 echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
4585 fi
4586
4587 if test "$wxUSE_SASH" = yes; then
4588 echo "$ac_t""yes" 1>&6
4589 else
4590 echo "$ac_t""no" 1>&6
4591 fi
4592
4593
4594 echo $ac_n "checking "for --enable-scrollbar"""... $ac_c" 1>&6
ab9b9eab 4595echo "configure:4596: checking "for --enable-scrollbar"" >&5
10f2d63a
VZ
4596 no_cache=0
4597 # Check whether --enable-scrollbar or --disable-scrollbar was given.
4598if test "${enable_scrollbar+set}" = set; then
4599 enableval="$enable_scrollbar"
4600
4601 if test "$enableval" = yes; then
4602 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
4603 else
4604 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
4605 fi
4606
4607else
4608
4609 LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
4610 if test "x$LINE" != x ; then
4611 eval "DEFAULT_$LINE"
4612 else
4613 no_cache=1
4614 fi
4615
4616 ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
4617
4618fi
4619
4620
4621 eval "$ac_cv_use_scrollbar"
4622 if test "$no_cache" != 1; then
4623 echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
4624 fi
4625
4626 if test "$wxUSE_SCROLLBAR" = yes; then
4627 echo "$ac_t""yes" 1>&6
4628 else
4629 echo "$ac_t""no" 1>&6
4630 fi
4631
4632
4633 echo $ac_n "checking "for --enable-slider"""... $ac_c" 1>&6
ab9b9eab 4634echo "configure:4635: checking "for --enable-slider"" >&5
10f2d63a
VZ
4635 no_cache=0
4636 # Check whether --enable-slider or --disable-slider was given.
4637if test "${enable_slider+set}" = set; then
4638 enableval="$enable_slider"
4639
4640 if test "$enableval" = yes; then
4641 ac_cv_use_slider='wxUSE_SLIDER=yes'
4642 else
4643 ac_cv_use_slider='wxUSE_SLIDER=no'
4644 fi
4645
4646else
4647
4648 LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
4649 if test "x$LINE" != x ; then
4650 eval "DEFAULT_$LINE"
4651 else
4652 no_cache=1
4653 fi
4654
4655 ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
4656
4657fi
4658
4659
4660 eval "$ac_cv_use_slider"
4661 if test "$no_cache" != 1; then
4662 echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
4663 fi
4664
4665 if test "$wxUSE_SLIDER" = yes; then
4666 echo "$ac_t""yes" 1>&6
4667 else
4668 echo "$ac_t""no" 1>&6
4669 fi
4670
4671
4672 echo $ac_n "checking "for --enable-spinbtn"""... $ac_c" 1>&6
ab9b9eab 4673echo "configure:4674: checking "for --enable-spinbtn"" >&5
10f2d63a
VZ
4674 no_cache=0
4675 # Check whether --enable-spinbtn or --disable-spinbtn was given.
4676if test "${enable_spinbtn+set}" = set; then
4677 enableval="$enable_spinbtn"
4678
4679 if test "$enableval" = yes; then
4680 ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
4681 else
4682 ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
4683 fi
4684
4685else
4686
4687 LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
4688 if test "x$LINE" != x ; then
4689 eval "DEFAULT_$LINE"
4690 else
4691 no_cache=1
4692 fi
4693
4694 ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
4695
4696fi
4697
4698
4699 eval "$ac_cv_use_spinbtn"
4700 if test "$no_cache" != 1; then
4701 echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
4702 fi
4703
4704 if test "$wxUSE_SPINBTN" = yes; then
4705 echo "$ac_t""yes" 1>&6
4706 else
4707 echo "$ac_t""no" 1>&6
4708 fi
4709
4710
4711 echo $ac_n "checking "for --enable-splitter"""... $ac_c" 1>&6
ab9b9eab 4712echo "configure:4713: checking "for --enable-splitter"" >&5
10f2d63a
VZ
4713 no_cache=0
4714 # Check whether --enable-splitter or --disable-splitter was given.
4715if test "${enable_splitter+set}" = set; then
4716 enableval="$enable_splitter"
4717
4718 if test "$enableval" = yes; then
4719 ac_cv_use_splitter='wxUSE_SPLITTER=yes'
4720 else
4721 ac_cv_use_splitter='wxUSE_SPLITTER=no'
4722 fi
4723
4724else
4725
4726 LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
4727 if test "x$LINE" != x ; then
4728 eval "DEFAULT_$LINE"
4729 else
4730 no_cache=1
4731 fi
4732
4733 ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
4734
4735fi
4736
4737
4738 eval "$ac_cv_use_splitter"
4739 if test "$no_cache" != 1; then
4740 echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
4741 fi
4742
4743 if test "$wxUSE_SPLITTER" = yes; then
4744 echo "$ac_t""yes" 1>&6
4745 else
4746 echo "$ac_t""no" 1>&6
4747 fi
4748
4749
4750 echo $ac_n "checking "for --enable-statbmp"""... $ac_c" 1>&6
ab9b9eab 4751echo "configure:4752: checking "for --enable-statbmp"" >&5
10f2d63a
VZ
4752 no_cache=0
4753 # Check whether --enable-statbmp or --disable-statbmp was given.
4754if test "${enable_statbmp+set}" = set; then
4755 enableval="$enable_statbmp"
4756
4757 if test "$enableval" = yes; then
4758 ac_cv_use_statbmp='wxUSE_STATBMP=yes'
4759 else
4760 ac_cv_use_statbmp='wxUSE_STATBMP=no'
4761 fi
4762
4763else
4764
4765 LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
4766 if test "x$LINE" != x ; then
4767 eval "DEFAULT_$LINE"
4768 else
4769 no_cache=1
4770 fi
4771
4772 ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
4773
4774fi
4775
4776
4777 eval "$ac_cv_use_statbmp"
4778 if test "$no_cache" != 1; then
4779 echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
4780 fi
4781
4782 if test "$wxUSE_STATBMP" = yes; then
4783 echo "$ac_t""yes" 1>&6
4784 else
4785 echo "$ac_t""no" 1>&6
4786 fi
4787
4788
4789 echo $ac_n "checking "for --enable-statbox"""... $ac_c" 1>&6
ab9b9eab 4790echo "configure:4791: checking "for --enable-statbox"" >&5
10f2d63a
VZ
4791 no_cache=0
4792 # Check whether --enable-statbox or --disable-statbox was given.
4793if test "${enable_statbox+set}" = set; then
4794 enableval="$enable_statbox"
4795
4796 if test "$enableval" = yes; then
4797 ac_cv_use_statbox='wxUSE_STATBOX=yes'
4798 else
4799 ac_cv_use_statbox='wxUSE_STATBOX=no'
4800 fi
4801
4802else
4803
4804 LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
4805 if test "x$LINE" != x ; then
4806 eval "DEFAULT_$LINE"
4807 else
4808 no_cache=1
4809 fi
4810
4811 ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
4812
4813fi
4814
4815
4816 eval "$ac_cv_use_statbox"
4817 if test "$no_cache" != 1; then
4818 echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
4819 fi
4820
4821 if test "$wxUSE_STATBOX" = yes; then
4822 echo "$ac_t""yes" 1>&6
4823 else
4824 echo "$ac_t""no" 1>&6
4825 fi
4826
4827
4828 echo $ac_n "checking "for --enable-statline"""... $ac_c" 1>&6
ab9b9eab 4829echo "configure:4830: checking "for --enable-statline"" >&5
10f2d63a
VZ
4830 no_cache=0
4831 # Check whether --enable-statline or --disable-statline was given.
4832if test "${enable_statline+set}" = set; then
4833 enableval="$enable_statline"
4834
4835 if test "$enableval" = yes; then
4836 ac_cv_use_statline='wxUSE_STATLINE=yes'
4837 else
4838 ac_cv_use_statline='wxUSE_STATLINE=no'
4839 fi
4840
4841else
4842
4843 LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
4844 if test "x$LINE" != x ; then
4845 eval "DEFAULT_$LINE"
4846 else
4847 no_cache=1
4848 fi
4849
4850 ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
4851
4852fi
4853
4854
4855 eval "$ac_cv_use_statline"
4856 if test "$no_cache" != 1; then
4857 echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
4858 fi
4859
4860 if test "$wxUSE_STATLINE" = yes; then
4861 echo "$ac_t""yes" 1>&6
4862 else
4863 echo "$ac_t""no" 1>&6
4864 fi
4865
4866
4867 echo $ac_n "checking "for --enable-statusbar"""... $ac_c" 1>&6
ab9b9eab 4868echo "configure:4869: checking "for --enable-statusbar"" >&5
10f2d63a
VZ
4869 no_cache=0
4870 # Check whether --enable-statusbar or --disable-statusbar was given.
4871if test "${enable_statusbar+set}" = set; then
4872 enableval="$enable_statusbar"
4873
4874 if test "$enableval" = yes; then
4875 ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
4876 else
4877 ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
4878 fi
4879
4880else
4881
4882 LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
4883 if test "x$LINE" != x ; then
4884 eval "DEFAULT_$LINE"
4885 else
4886 no_cache=1
4887 fi
4888
4889 ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
4890
4891fi
4892
4893
4894 eval "$ac_cv_use_statusbar"
4895 if test "$no_cache" != 1; then
4896 echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
4897 fi
4898
4899 if test "$wxUSE_STATUSBAR" = yes; then
4900 echo "$ac_t""yes" 1>&6
4901 else
4902 echo "$ac_t""no" 1>&6
4903 fi
4904
4905
4906 echo $ac_n "checking "for --enable-tabdialog"""... $ac_c" 1>&6
ab9b9eab 4907echo "configure:4908: checking "for --enable-tabdialog"" >&5
10f2d63a
VZ
4908 no_cache=0
4909 # Check whether --enable-tabdialog or --disable-tabdialog was given.
4910if test "${enable_tabdialog+set}" = set; then
4911 enableval="$enable_tabdialog"
4912
4913 if test "$enableval" = yes; then
4914 ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes'
4915 else
4916 ac_cv_use_tabdialog='wxUSE_TABDIALOG=no'
4917 fi
4918
4919else
4920
4921 LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}`
4922 if test "x$LINE" != x ; then
4923 eval "DEFAULT_$LINE"
4924 else
4925 no_cache=1
4926 fi
4927
4928 ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG
4929
4930fi
4931
4932
4933 eval "$ac_cv_use_tabdialog"
4934 if test "$no_cache" != 1; then
4935 echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
4936 fi
4937
4938 if test "$wxUSE_TABDIALOG" = yes; then
4939 echo "$ac_t""yes" 1>&6
4940 else
4941 echo "$ac_t""no" 1>&6
4942 fi
4943
4944
4945 echo $ac_n "checking "for --enable-toolbar"""... $ac_c" 1>&6
ab9b9eab 4946echo "configure:4947: checking "for --enable-toolbar"" >&5
10f2d63a
VZ
4947 no_cache=0
4948 # Check whether --enable-toolbar or --disable-toolbar was given.
4949if test "${enable_toolbar+set}" = set; then
4950 enableval="$enable_toolbar"
4951
4952 if test "$enableval" = yes; then
4953 ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
4954 else
4955 ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
4956 fi
4957
4958else
4959
4960 LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
4961 if test "x$LINE" != x ; then
4962 eval "DEFAULT_$LINE"
4963 else
4964 no_cache=1
4965 fi
4966
4967 ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
4968
4969fi
4970
4971
4972 eval "$ac_cv_use_toolbar"
4973 if test "$no_cache" != 1; then
4974 echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
4975 fi
4976
4977 if test "$wxUSE_TOOLBAR" = yes; then
4978 echo "$ac_t""yes" 1>&6
4979 else
4980 echo "$ac_t""no" 1>&6
4981 fi
4982
4983
4984 echo $ac_n "checking "for --enable-treectrl"""... $ac_c" 1>&6
ab9b9eab 4985echo "configure:4986: checking "for --enable-treectrl"" >&5
10f2d63a
VZ
4986 no_cache=0
4987 # Check whether --enable-treectrl or --disable-treectrl was given.
4988if test "${enable_treectrl+set}" = set; then
4989 enableval="$enable_treectrl"
4990
4991 if test "$enableval" = yes; then
4992 ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
4993 else
4994 ac_cv_use_treectrl='wxUSE_TREECTRL=no'
4995 fi
4996
4997else
4998
4999 LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
5000 if test "x$LINE" != x ; then
5001 eval "DEFAULT_$LINE"
5002 else
5003 no_cache=1
5004 fi
5005
5006 ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
5007
5008fi
5009
5010
5011 eval "$ac_cv_use_treectrl"
5012 if test "$no_cache" != 1; then
5013 echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
5014 fi
5015
5016 if test "$wxUSE_TREECTRL" = yes; then
5017 echo "$ac_t""yes" 1>&6
5018 else
5019 echo "$ac_t""no" 1>&6
5020 fi
5021
5022
5023
5024
5025 echo $ac_n "checking "for --enable-commondlg"""... $ac_c" 1>&6
ab9b9eab 5026echo "configure:5027: checking "for --enable-commondlg"" >&5
10f2d63a
VZ
5027 no_cache=0
5028 # Check whether --enable-commondlg or --disable-commondlg was given.
5029if test "${enable_commondlg+set}" = set; then
5030 enableval="$enable_commondlg"
5031
5032 if test "$enableval" = yes; then
5033 ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
5034 else
5035 ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
5036 fi
5037
5038else
5039
5040 LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
5041 if test "x$LINE" != x ; then
5042 eval "DEFAULT_$LINE"
5043 else
5044 no_cache=1
5045 fi
5046
5047 ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
5048
5049fi
5050
5051
5052 eval "$ac_cv_use_commondlg"
5053 if test "$no_cache" != 1; then
5054 echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
5055 fi
5056
5057 if test "$wxUSE_COMMONDLGS" = yes; then
5058 echo "$ac_t""yes" 1>&6
5059 else
5060 echo "$ac_t""no" 1>&6
5061 fi
5062
5063
5064 echo $ac_n "checking "for --enable-dirdlg"""... $ac_c" 1>&6
ab9b9eab 5065echo "configure:5066: checking "for --enable-dirdlg"" >&5
10f2d63a
VZ
5066 no_cache=0
5067 # Check whether --enable-dirdlg or --disable-dirdlg was given.
5068if test "${enable_dirdlg+set}" = set; then
5069 enableval="$enable_dirdlg"
5070
5071 if test "$enableval" = yes; then
5072 ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
5073 else
5074 ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
5075 fi
5076
5077else
5078
5079 LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
5080 if test "x$LINE" != x ; then
5081 eval "DEFAULT_$LINE"
5082 else
5083 no_cache=1
5084 fi
5085
5086 ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
5087
5088fi
5089
5090
5091 eval "$ac_cv_use_dirdlg"
5092 if test "$no_cache" != 1; then
5093 echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
5094 fi
5095
5096 if test "$wxUSE_DIRDLG" = yes; then
5097 echo "$ac_t""yes" 1>&6
5098 else
5099 echo "$ac_t""no" 1>&6
5100 fi
5101
5102
5103 echo $ac_n "checking "for --enable-textdlg"""... $ac_c" 1>&6
ab9b9eab 5104echo "configure:5105: checking "for --enable-textdlg"" >&5
10f2d63a
VZ
5105 no_cache=0
5106 # Check whether --enable-textdlg or --disable-textdlg was given.
5107if test "${enable_textdlg+set}" = set; then
5108 enableval="$enable_textdlg"
5109
5110 if test "$enableval" = yes; then
5111 ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
5112 else
5113 ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
5114 fi
5115
5116else
5117
5118 LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
5119 if test "x$LINE" != x ; then
5120 eval "DEFAULT_$LINE"
5121 else
5122 no_cache=1
5123 fi
5124
5125 ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
5126
5127fi
5128
5129
5130 eval "$ac_cv_use_textdlg"
5131 if test "$no_cache" != 1; then
5132 echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
5133 fi
5134
5135 if test "$wxUSE_TEXTDLG" = yes; then
5136 echo "$ac_t""yes" 1>&6
5137 else
5138 echo "$ac_t""no" 1>&6
5139 fi
5140
5141
5142 echo $ac_n "checking "for --enable-tipdlg"""... $ac_c" 1>&6
ab9b9eab 5143echo "configure:5144: checking "for --enable-tipdlg"" >&5
10f2d63a
VZ
5144 no_cache=0
5145 # Check whether --enable-tipdlg or --disable-tipdlg was given.
5146if test "${enable_tipdlg+set}" = set; then
5147 enableval="$enable_tipdlg"
5148
5149 if test "$enableval" = yes; then
5150 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
5151 else
5152 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
5153 fi
5154
5155else
5156
5157 LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
5158 if test "x$LINE" != x ; then
5159 eval "DEFAULT_$LINE"
5160 else
5161 no_cache=1
5162 fi
5163
5164 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
5165
5166fi
5167
5168
5169 eval "$ac_cv_use_tipdlg"
5170 if test "$no_cache" != 1; then
5171 echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
5172 fi
5173
5174 if test "$wxUSE_STARTUP_TIPS" = yes; then
5175 echo "$ac_t""yes" 1>&6
5176 else
5177 echo "$ac_t""no" 1>&6
5178 fi
5179
5180
5181 echo $ac_n "checking "for --enable-progressdlg"""... $ac_c" 1>&6
ab9b9eab 5182echo "configure:5183: checking "for --enable-progressdlg"" >&5
10f2d63a
VZ
5183 no_cache=0
5184 # Check whether --enable-progressdlg or --disable-progressdlg was given.
5185if test "${enable_progressdlg+set}" = set; then
5186 enableval="$enable_progressdlg"
5187
5188 if test "$enableval" = yes; then
5189 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
5190 else
5191 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
5192 fi
5193
5194else
5195
5196 LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
5197 if test "x$LINE" != x ; then
5198 eval "DEFAULT_$LINE"
5199 else
5200 no_cache=1
5201 fi
5202
5203 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
5204
5205fi
5206
5207
5208 eval "$ac_cv_use_progressdlg"
5209 if test "$no_cache" != 1; then
5210 echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
5211 fi
5212
5213 if test "$wxUSE_PROGRESSDLG" = yes; then
5214 echo "$ac_t""yes" 1>&6
5215 else
5216 echo "$ac_t""no" 1>&6
5217 fi
5218
5219
5220 echo $ac_n "checking "for --enable-miniframe"""... $ac_c" 1>&6
ab9b9eab 5221echo "configure:5222: checking "for --enable-miniframe"" >&5
10f2d63a
VZ
5222 no_cache=0
5223 # Check whether --enable-miniframe or --disable-miniframe was given.
5224if test "${enable_miniframe+set}" = set; then
5225 enableval="$enable_miniframe"
5226
5227 if test "$enableval" = yes; then
5228 ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
5229 else
5230 ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
5231 fi
5232
5233else
5234
5235 LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
5236 if test "x$LINE" != x ; then
5237 eval "DEFAULT_$LINE"
5238 else
5239 no_cache=1
5240 fi
5241
5242 ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
5243
5244fi
5245
5246
5247 eval "$ac_cv_use_miniframe"
5248 if test "$no_cache" != 1; then
5249 echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
5250 fi
5251
5252 if test "$wxUSE_MINIFRAME" = yes; then
5253 echo "$ac_t""yes" 1>&6
5254 else
5255 echo "$ac_t""no" 1>&6
5256 fi
5257
5258
5259 echo $ac_n "checking "for --enable-html"""... $ac_c" 1>&6
ab9b9eab 5260echo "configure:5261: checking "for --enable-html"" >&5
10f2d63a
VZ
5261 no_cache=0
5262 # Check whether --enable-html or --disable-html was given.
5263if test "${enable_html+set}" = set; then
5264 enableval="$enable_html"
5265
5266 if test "$enableval" = yes; then
5267 ac_cv_use_html='wxUSE_HTML=yes'
5268 else
5269 ac_cv_use_html='wxUSE_HTML=no'
5270 fi
5271
5272else
5273
5274 LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
5275 if test "x$LINE" != x ; then
5276 eval "DEFAULT_$LINE"
5277 else
5278 no_cache=1
5279 fi
5280
5281 ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
5282
5283fi
5284
5285
5286 eval "$ac_cv_use_html"
5287 if test "$no_cache" != 1; then
5288 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
5289 fi
5290
5291 if test "$wxUSE_HTML" = yes; then
5292 echo "$ac_t""yes" 1>&6
5293 else
5294 echo "$ac_t""no" 1>&6
5295 fi
5296
5297
5298 echo $ac_n "checking "for --enable-tooltips"""... $ac_c" 1>&6
ab9b9eab 5299echo "configure:5300: checking "for --enable-tooltips"" >&5
10f2d63a
VZ
5300 no_cache=0
5301 # Check whether --enable-tooltips or --disable-tooltips was given.
5302if test "${enable_tooltips+set}" = set; then
5303 enableval="$enable_tooltips"
5304
5305 if test "$enableval" = yes; then
5306 ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
5307 else
5308 ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
5309 fi
5310
5311else
5312
5313 LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
5314 if test "x$LINE" != x ; then
5315 eval "DEFAULT_$LINE"
5316 else
5317 no_cache=1
5318 fi
5319
5320 ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
5321
5322fi
5323
5324
5325 eval "$ac_cv_use_tooltips"
5326 if test "$no_cache" != 1; then
5327 echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
5328 fi
5329
5330 if test "$wxUSE_TOOLTIPS" = yes; then
5331 echo "$ac_t""yes" 1>&6
5332 else
5333 echo "$ac_t""no" 1>&6
5334 fi
5335
5336
5337 echo $ac_n "checking "for --enable-splines"""... $ac_c" 1>&6
ab9b9eab 5338echo "configure:5339: checking "for --enable-splines"" >&5
10f2d63a
VZ
5339 no_cache=0
5340 # Check whether --enable-splines or --disable-splines was given.
5341if test "${enable_splines+set}" = set; then
5342 enableval="$enable_splines"
5343
5344 if test "$enableval" = yes; then
5345 ac_cv_use_splines='wxUSE_SPLINES=yes'
5346 else
5347 ac_cv_use_splines='wxUSE_SPLINES=no'
5348 fi
5349
5350else
5351
5352 LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
5353 if test "x$LINE" != x ; then
5354 eval "DEFAULT_$LINE"
5355 else
5356 no_cache=1
5357 fi
5358
5359 ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
5360
5361fi
5362
5363
5364 eval "$ac_cv_use_splines"
5365 if test "$no_cache" != 1; then
5366 echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
5367 fi
5368
5369 if test "$wxUSE_SPLINES" = yes; then
5370 echo "$ac_t""yes" 1>&6
5371 else
5372 echo "$ac_t""no" 1>&6
5373 fi
5374
5375
5376 echo $ac_n "checking "for --enable-validators"""... $ac_c" 1>&6
ab9b9eab 5377echo "configure:5378: checking "for --enable-validators"" >&5
10f2d63a
VZ
5378 no_cache=0
5379 # Check whether --enable-validators or --disable-validators was given.
5380if test "${enable_validators+set}" = set; then
5381 enableval="$enable_validators"
5382
5383 if test "$enableval" = yes; then
5384 ac_cv_use_validators='wxUSE_VALIDATORS=yes'
5385 else
5386 ac_cv_use_validators='wxUSE_VALIDATORS=no'
5387 fi
5388
5389else
5390
5391 LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
5392 if test "x$LINE" != x ; then
5393 eval "DEFAULT_$LINE"
5394 else
5395 no_cache=1
5396 fi
5397
5398 ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
5399
5400fi
5401
5402
5403 eval "$ac_cv_use_validators"
5404 if test "$no_cache" != 1; then
5405 echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
5406 fi
5407
5408 if test "$wxUSE_VALIDATORS" = yes; then
5409 echo "$ac_t""yes" 1>&6
5410 else
5411 echo "$ac_t""no" 1>&6
5412 fi
5413
5414
5415 echo $ac_n "checking "for --enable-busyinfo"""... $ac_c" 1>&6
ab9b9eab 5416echo "configure:5417: checking "for --enable-busyinfo"" >&5
10f2d63a
VZ
5417 no_cache=0
5418 # Check whether --enable-busyinfo or --disable-busyinfo was given.
5419if test "${enable_busyinfo+set}" = set; then
5420 enableval="$enable_busyinfo"
5421
5422 if test "$enableval" = yes; then
5423 ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
5424 else
5425 ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
5426 fi
5427
5428else
5429
5430 LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
5431 if test "x$LINE" != x ; then
5432 eval "DEFAULT_$LINE"
5433 else
5434 no_cache=1
5435 fi
5436
5437 ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
5438
5439fi
5440
5441
5442 eval "$ac_cv_use_busyinfo"
5443 if test "$no_cache" != 1; then
5444 echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
5445 fi
5446
5447 if test "$wxUSE_BUSYINFO" = yes; then
5448 echo "$ac_t""yes" 1>&6
5449 else
5450 echo "$ac_t""no" 1>&6
5451 fi
5452
5453
5454
5455
5456 echo $ac_n "checking "for --enable-gif"""... $ac_c" 1>&6
ab9b9eab 5457echo "configure:5458: checking "for --enable-gif"" >&5
10f2d63a
VZ
5458 no_cache=0
5459 # Check whether --enable-gif or --disable-gif was given.
5460if test "${enable_gif+set}" = set; then
5461 enableval="$enable_gif"
5462
5463 if test "$enableval" = yes; then
5464 ac_cv_use_gif='wxUSE_GIF=yes'
5465 else
5466 ac_cv_use_gif='wxUSE_GIF=no'
5467 fi
5468
5469else
5470
5471 LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
5472 if test "x$LINE" != x ; then
5473 eval "DEFAULT_$LINE"
5474 else
5475 no_cache=1
5476 fi
5477
5478 ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
5479
5480fi
5481
5482
5483 eval "$ac_cv_use_gif"
5484 if test "$no_cache" != 1; then
5485 echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
5486 fi
5487
5488 if test "$wxUSE_GIF" = yes; then
5489 echo "$ac_t""yes" 1>&6
5490 else
5491 echo "$ac_t""no" 1>&6
5492 fi
5493
5494
5495 echo $ac_n "checking "for --enable-pcx"""... $ac_c" 1>&6
ab9b9eab 5496echo "configure:5497: checking "for --enable-pcx"" >&5
10f2d63a
VZ
5497 no_cache=0
5498 # Check whether --enable-pcx or --disable-pcx was given.
5499if test "${enable_pcx+set}" = set; then
5500 enableval="$enable_pcx"
5501
5502 if test "$enableval" = yes; then
5503 ac_cv_use_pcx='wxUSE_PCX=yes'
5504 else
5505 ac_cv_use_pcx='wxUSE_PCX=no'
5506 fi
5507
5508else
5509
5510 LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
5511 if test "x$LINE" != x ; then
5512 eval "DEFAULT_$LINE"
5513 else
5514 no_cache=1
5515 fi
5516
5517 ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
5518
5519fi
5520
5521
5522 eval "$ac_cv_use_pcx"
5523 if test "$no_cache" != 1; then
5524 echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
5525 fi
5526
5527 if test "$wxUSE_PCX" = yes; then
5528 echo "$ac_t""yes" 1>&6
5529 else
5530 echo "$ac_t""no" 1>&6
5531 fi
5532
5533
5534 echo $ac_n "checking "for --enable-pnm"""... $ac_c" 1>&6
ab9b9eab 5535echo "configure:5536: checking "for --enable-pnm"" >&5
10f2d63a
VZ
5536 no_cache=0
5537 # Check whether --enable-pnm or --disable-pnm was given.
5538if test "${enable_pnm+set}" = set; then
5539 enableval="$enable_pnm"
5540
5541 if test "$enableval" = yes; then
5542 ac_cv_use_pnm='wxUSE_PNM=yes'
5543 else
5544 ac_cv_use_pnm='wxUSE_PNM=no'
5545 fi
5546
5547else
5548
5549 LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
5550 if test "x$LINE" != x ; then
5551 eval "DEFAULT_$LINE"
5552 else
5553 no_cache=1
5554 fi
5555
5556 ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
5557
5558fi
5559
5560
5561 eval "$ac_cv_use_pnm"
5562 if test "$no_cache" != 1; then
5563 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
5564 fi
5565
5566 if test "$wxUSE_PNM" = yes; then
5567 echo "$ac_t""yes" 1>&6
5568 else
5569 echo "$ac_t""no" 1>&6
5570 fi
5571
5572
5573
5574 echo "saving argument cache $wx_arg_cache_file"
5575 mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
5576
5577
5578
5579echo $ac_n "checking for toolkit""... $ac_c" 1>&6
ab9b9eab 5580echo "configure:5581: checking for toolkit" >&5
10f2d63a
VZ
5581
5582if test "$wxUSE_GUI" = "yes"; then
5583
5584if test "$TOOLKIT_GIVEN" = 1; then
5585 for toolkit in `echo $ALL_TOOLKITS`; do
5586 var=wxUSE_$toolkit
5587 eval "value=\$${var}"
5588 eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`"
5589 done
5590else
5591 for toolkit in `echo $ALL_TOOLKITS`; do
5592 if test "$has_toolkit_in_cache" != 1; then
5593 var=DEFAULT_DEFAULT_wxUSE_$toolkit
5594 else
5595 var=DEFAULT_wxUSE_$toolkit
5596 fi
5597 eval "wxUSE_$toolkit=\$${var}"
5598 done
5599fi
5600
5601NUM_TOOLKITS=`expr ${wxUSE_GTK:-0} + ${wxUSE_MOTIF:-0} + ${wxUSE_WINE:-0} + ${wxUSE_MINGW:-0} + ${wxUSE_CYGWIN:-0}`
5602
5603case "$NUM_TOOLKITS" in
5604 1)
5605 ;;
5606 0)
5607 { echo "configure: error: Please specify a toolkit - cannot determine the default for ${host}" 1>&2; exit 1; }
5608 ;;
5609 *)
5610 { echo "configure: error: Please specify at most one toolkit (may be some are cached?)" 1>&2; exit 1; }
5611esac
5612
5613for toolkit in `echo $ALL_TOOLKITS`; do
5614 var=wxUSE_$toolkit
5615 eval "value=\$${var}"
5616 if test "x$value" != x; then
5617 cache_var=CACHE_$toolkit
5618 eval "cache=\$${cache_var}"
5619 if test "$cache" = 1; then
5620 echo "$var=$value" >> ${wx_arg_cache_file}
5621 fi
5622 if test "$value" = 1; then
5623 echo "$ac_t""`echo $toolkit | tr A-Z a-z`" 1>&6
5624 fi
5625 fi
5626done
5627
5628else
5629 echo "$ac_t""base only" 1>&6
5630fi
5631
5632
5633cat > confcache <<\EOF
5634# This file is a shell script that caches the results of configure
5635# tests run on this system so they can be shared between configure
5636# scripts and configure runs. It is not useful on other systems.
5637# If it contains results you don't want to keep, you may remove or edit it.
5638#
5639# By default, configure uses ./config.cache as the cache file,
5640# creating it if it does not exist already. You can give configure
5641# the --cache-file=FILE option to use a different cache file; that is
5642# what configure does when it calls configure scripts in
5643# subdirectories, so they share the cache.
5644# Giving --cache-file=/dev/null disables caching, for debugging configure.
5645# config.status only pays attention to the cache file if you give it the
5646# --recheck option to rerun configure.
5647#
5648EOF
5649# The following way of writing the cache mishandles newlines in values,
5650# but we know of no workaround that is simple, portable, and efficient.
5651# So, don't put newlines in cache variables' values.
5652# Ultrix sh set writes to stderr and can't be redirected directly,
5653# and sets the high bit in the cache file unless we assign to the vars.
5654(set) 2>&1 |
5655 case `(ac_space=' '; set | grep ac_space) 2>&1` in
5656 *ac_space=\ *)
5657 # `set' does not quote correctly, so add quotes (double-quote substitution
5658 # turns \\\\ into \\, and sed turns \\ into \).
5659 sed -n \
5660 -e "s/'/'\\\\''/g" \
5661 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
5662 ;;
5663 *)
5664 # `set' quotes correctly as required by POSIX, so do not add quotes.
5665 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
5666 ;;
5667 esac >> confcache
5668if cmp -s $cache_file confcache; then
5669 :
5670else
5671 if test -w $cache_file; then
5672 echo "updating cache $cache_file"
5673 cat confcache > $cache_file
5674 else
5675 echo "not updating unwritable cache $cache_file"
5676 fi
5677fi
5678rm -f confcache
5679
5680
5681if eval "test $host != $build"; then
5682 if eval "test $host_alias != NONE"; then
5683 CC=$host_alias-gcc
5684 CXX=$host_alias-c++
5685 AR=$host_alias-ar
5686 RANLIB=$host_alias-ranlib
5687 DLLTOOL=$host_alias-dlltool
5688 LD=$host_alias-ld
5689 NM=$host_alias-nm
5690 STRIP=$host_alias-strip
5691 fi
5692fi
5693
5694# Extract the first word of "gcc", so it can be a program name with args.
5695set dummy gcc; ac_word=$2
5696echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
ab9b9eab 5697echo "configure:5698: checking for $ac_word" >&5
10f2d63a
VZ
5698if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
5699 echo $ac_n "(cached) $ac_c" 1>&6
5700else
5701 if test -n "$CC"; then
5702 ac_cv_prog_CC="$CC" # Let the user override the test.
5703else
5704 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5705 ac_dummy="$PATH"
5706 for ac_dir in $ac_dummy; do
5707 test -z "$ac_dir" && ac_dir=.
5708 if test -f $ac_dir/$ac_word; then
5709 ac_cv_prog_CC="gcc"
5710 break
5711 fi
5712 done
5713 IFS="$ac_save_ifs"
5714fi
5715fi
5716CC="$ac_cv_prog_CC"
5717if test -n "$CC"; then
5718 echo "$ac_t""$CC" 1>&6
5719else
5720 echo "$ac_t""no" 1>&6
5721fi
5722
5723if test -z "$CC"; then
5724 # Extract the first word of "cc", so it can be a program name with args.
5725set dummy cc; ac_word=$2
5726echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
ab9b9eab 5727echo "configure:5728: checking for $ac_word" >&5
10f2d63a
VZ
5728if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
5729 echo $ac_n "(cached) $ac_c" 1>&6
5730else
5731 if test -n "$CC"; then
5732 ac_cv_prog_CC="$CC" # Let the user override the test.
5733else
5734 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5735 ac_prog_rejected=no
5736 ac_dummy="$PATH"
5737 for ac_dir in $ac_dummy; do
5738 test -z "$ac_dir" && ac_dir=.
5739 if test -f $ac_dir/$ac_word; then
5740 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
5741 ac_prog_rejected=yes
5742 continue
5743 fi
5744 ac_cv_prog_CC="cc"
5745 break
5746 fi
5747 done
5748 IFS="$ac_save_ifs"
5749if test $ac_prog_rejected = yes; then
5750 # We found a bogon in the path, so make sure we never use it.
5751 set dummy $ac_cv_prog_CC
5752 shift
5753 if test $# -gt 0; then
5754 # We chose a different compiler from the bogus one.
5755 # However, it has the same basename, so the bogon will be chosen
5756 # first if we set CC to just the basename; use the full file name.
5757 shift
5758 set dummy "$ac_dir/$ac_word" "$@"
5759 shift
5760 ac_cv_prog_CC="$@"
5761 fi
5762fi
5763fi
5764fi
5765CC="$ac_cv_prog_CC"
5766if test -n "$CC"; then
5767 echo "$ac_t""$CC" 1>&6
5768else
5769 echo "$ac_t""no" 1>&6
5770fi
5771
5772 if test -z "$CC"; then
5773 case "`uname -s`" in
5774 *win32* | *WIN32*)
5775 # Extract the first word of "cl", so it can be a program name with args.
5776set dummy cl; ac_word=$2
5777echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
ab9b9eab 5778echo "configure:5779: checking for $ac_word" >&5
10f2d63a
VZ
5779if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
5780 echo $ac_n "(cached) $ac_c" 1>&6
5781else
5782 if test -n "$CC"; then
5783 ac_cv_prog_CC="$CC" # Let the user override the test.
5784else
5785 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5786 ac_dummy="$PATH"
5787 for ac_dir in $ac_dummy; do
5788 test -z "$ac_dir" && ac_dir=.
5789 if test -f $ac_dir/$ac_word; then
5790 ac_cv_prog_CC="cl"
5791 break
5792 fi
5793 done
5794 IFS="$ac_save_ifs"
5795fi
5796fi
5797CC="$ac_cv_prog_CC"
5798if test -n "$CC"; then
5799 echo "$ac_t""$CC" 1>&6
5800else
5801 echo "$ac_t""no" 1>&6
5802fi
5803 ;;
5804 esac
5805 fi
5806 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
5807fi
5808
5809echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
ab9b9eab 5810echo "configure:5811: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
10f2d63a
VZ
5811
5812ac_ext=c
5813# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5814ac_cpp='$CPP $CPPFLAGS'
5815ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5816ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5817cross_compiling=$ac_cv_prog_cc_cross
5818
5819cat > conftest.$ac_ext << EOF
5820
ab9b9eab 5821#line 5822 "configure"
10f2d63a
VZ
5822#include "confdefs.h"
5823
5824main(){return(0);}
5825EOF
ab9b9eab 5826if { (eval echo configure:5827: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
5827 ac_cv_prog_cc_works=yes
5828 # If we can't run a trivial program, we are probably using a cross compiler.
5829 if (./conftest; exit) 2>/dev/null; then
5830 ac_cv_prog_cc_cross=no
5831 else
5832 ac_cv_prog_cc_cross=yes
5833 fi
5834else
5835 echo "configure: failed program was:" >&5
5836 cat conftest.$ac_ext >&5
5837 ac_cv_prog_cc_works=no
5838fi
5839rm -fr conftest*
5840ac_ext=c
5841# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5842ac_cpp='$CPP $CPPFLAGS'
5843ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5844ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5845cross_compiling=$ac_cv_prog_cc_cross
5846
5847echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
5848if test $ac_cv_prog_cc_works = no; then
5849 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
5850fi
5851echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
ab9b9eab 5852echo "configure:5853: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
10f2d63a
VZ
5853echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
5854cross_compiling=$ac_cv_prog_cc_cross
5855
5856echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
ab9b9eab 5857echo "configure:5858: checking whether we are using GNU C" >&5
10f2d63a
VZ
5858if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
5859 echo $ac_n "(cached) $ac_c" 1>&6
5860else
5861 cat > conftest.c <<EOF
5862#ifdef __GNUC__
5863 yes;
5864#endif
5865EOF
ab9b9eab 5866if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:5867: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
10f2d63a
VZ
5867 ac_cv_prog_gcc=yes
5868else
5869 ac_cv_prog_gcc=no
5870fi
5871fi
5872
5873echo "$ac_t""$ac_cv_prog_gcc" 1>&6
5874
5875if test $ac_cv_prog_gcc = yes; then
5876 GCC=yes
5877else
5878 GCC=
5879fi
5880
5881ac_test_CFLAGS="${CFLAGS+set}"
5882ac_save_CFLAGS="$CFLAGS"
5883CFLAGS=
5884echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
ab9b9eab 5885echo "configure:5886: checking whether ${CC-cc} accepts -g" >&5
10f2d63a
VZ
5886if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
5887 echo $ac_n "(cached) $ac_c" 1>&6
5888else
5889 echo 'void f(){}' > conftest.c
5890if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
5891 ac_cv_prog_cc_g=yes
5892else
5893 ac_cv_prog_cc_g=no
5894fi
5895rm -f conftest*
5896
5897fi
5898
5899echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
5900if test "$ac_test_CFLAGS" = set; then
5901 CFLAGS="$ac_save_CFLAGS"
5902elif test $ac_cv_prog_cc_g = yes; then
5903 if test "$GCC" = yes; then
5904 CFLAGS="-g -O2"
5905 else
5906 CFLAGS="-g"
5907 fi
5908else
5909 if test "$GCC" = yes; then
5910 CFLAGS="-O2"
5911 else
5912 CFLAGS=
5913 fi
5914fi
5915
5916
5917CFLAGS=`echo "$CFLAGS" | sed 's/-g//g'`
5918
5919echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
ab9b9eab 5920echo "configure:5921: checking how to run the C preprocessor" >&5
10f2d63a
VZ
5921# On Suns, sometimes $CPP names a directory.
5922if test -n "$CPP" && test -d "$CPP"; then
5923 CPP=
5924fi
5925if test -z "$CPP"; then
5926if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
5927 echo $ac_n "(cached) $ac_c" 1>&6
5928else
5929 # This must be in double quotes, not single quotes, because CPP may get
5930 # substituted into the Makefile and "${CC-cc}" will confuse make.
5931 CPP="${CC-cc} -E"
5932 # On the NeXT, cc -E runs the code through the compiler's parser,
5933 # not just through cpp.
5934 cat > conftest.$ac_ext <<EOF
ab9b9eab 5935#line 5936 "configure"
10f2d63a
VZ
5936#include "confdefs.h"
5937#include <assert.h>
5938Syntax Error
5939EOF
5940ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
ab9b9eab 5941{ (eval echo configure:5942: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
5942ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5943if test -z "$ac_err"; then
5944 :
5945else
5946 echo "$ac_err" >&5
5947 echo "configure: failed program was:" >&5
5948 cat conftest.$ac_ext >&5
5949 rm -rf conftest*
5950 CPP="${CC-cc} -E -traditional-cpp"
5951 cat > conftest.$ac_ext <<EOF
ab9b9eab 5952#line 5953 "configure"
10f2d63a
VZ
5953#include "confdefs.h"
5954#include <assert.h>
5955Syntax Error
5956EOF
5957ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
ab9b9eab 5958{ (eval echo configure:5959: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
5959ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5960if test -z "$ac_err"; then
5961 :
5962else
5963 echo "$ac_err" >&5
5964 echo "configure: failed program was:" >&5
5965 cat conftest.$ac_ext >&5
5966 rm -rf conftest*
5967 CPP="${CC-cc} -nologo -E"
5968 cat > conftest.$ac_ext <<EOF
ab9b9eab 5969#line 5970 "configure"
10f2d63a
VZ
5970#include "confdefs.h"
5971#include <assert.h>
5972Syntax Error
5973EOF
5974ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
ab9b9eab 5975{ (eval echo configure:5976: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
5976ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5977if test -z "$ac_err"; then
5978 :
5979else
5980 echo "$ac_err" >&5
5981 echo "configure: failed program was:" >&5
5982 cat conftest.$ac_ext >&5
5983 rm -rf conftest*
5984 CPP=/lib/cpp
5985fi
5986rm -f conftest*
5987fi
5988rm -f conftest*
5989fi
5990rm -f conftest*
5991 ac_cv_prog_CPP="$CPP"
5992fi
5993 CPP="$ac_cv_prog_CPP"
5994else
5995 ac_cv_prog_CPP="$CPP"
5996fi
5997echo "$ac_t""$CPP" 1>&6
5998
5999
6000if test $ac_cv_prog_gcc = yes; then
6001 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
ab9b9eab 6002echo "configure:6003: checking whether ${CC-cc} needs -traditional" >&5
10f2d63a
VZ
6003if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
6004 echo $ac_n "(cached) $ac_c" 1>&6
6005else
6006 ac_pattern="Autoconf.*'x'"
6007 cat > conftest.$ac_ext <<EOF
ab9b9eab 6008#line 6009 "configure"
10f2d63a
VZ
6009#include "confdefs.h"
6010#include <sgtty.h>
6011Autoconf TIOCGETP
6012EOF
6013if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6014 egrep "$ac_pattern" >/dev/null 2>&1; then
6015 rm -rf conftest*
6016 ac_cv_prog_gcc_traditional=yes
6017else
6018 rm -rf conftest*
6019 ac_cv_prog_gcc_traditional=no
6020fi
6021rm -f conftest*
6022
6023
6024 if test $ac_cv_prog_gcc_traditional = no; then
6025 cat > conftest.$ac_ext <<EOF
ab9b9eab 6026#line 6027 "configure"
10f2d63a
VZ
6027#include "confdefs.h"
6028#include <termio.h>
6029Autoconf TCGETA
6030EOF
6031if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6032 egrep "$ac_pattern" >/dev/null 2>&1; then
6033 rm -rf conftest*
6034 ac_cv_prog_gcc_traditional=yes
6035fi
6036rm -f conftest*
6037
6038 fi
6039fi
6040
6041echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
6042 if test $ac_cv_prog_gcc_traditional = yes; then
6043 CC="$CC -traditional"
6044 fi
6045fi
6046
6047
6048
6049ac_ext=C
6050# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6051ac_cpp='$CXXCPP $CPPFLAGS'
6052ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6053ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6054cross_compiling=$ac_cv_prog_cxx_cross
6055
6056
6057for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
6058do
6059# Extract the first word of "$ac_prog", so it can be a program name with args.
6060set dummy $ac_prog; ac_word=$2
6061echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
ab9b9eab 6062echo "configure:6063: checking for $ac_word" >&5
10f2d63a
VZ
6063if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
6064 echo $ac_n "(cached) $ac_c" 1>&6
6065else
6066 if test -n "$CXX"; then
6067 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6068else
6069 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6070 ac_dummy="$PATH"
6071 for ac_dir in $ac_dummy; do
6072 test -z "$ac_dir" && ac_dir=.
6073 if test -f $ac_dir/$ac_word; then
6074 ac_cv_prog_CXX="$ac_prog"
6075 break
6076 fi
6077 done
6078 IFS="$ac_save_ifs"
6079fi
6080fi
6081CXX="$ac_cv_prog_CXX"
6082if test -n "$CXX"; then
6083 echo "$ac_t""$CXX" 1>&6
6084else
6085 echo "$ac_t""no" 1>&6
6086fi
6087
6088test -n "$CXX" && break
6089done
6090test -n "$CXX" || CXX="gcc"
6091
6092
6093echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
ab9b9eab 6094echo "configure:6095: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
10f2d63a
VZ
6095
6096ac_ext=C
6097# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6098ac_cpp='$CXXCPP $CPPFLAGS'
6099ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6100ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6101cross_compiling=$ac_cv_prog_cxx_cross
6102
6103cat > conftest.$ac_ext << EOF
6104
ab9b9eab 6105#line 6106 "configure"
10f2d63a
VZ
6106#include "confdefs.h"
6107
6108int main(){return(0);}
6109EOF
ab9b9eab 6110if { (eval echo configure:6111: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
6111 ac_cv_prog_cxx_works=yes
6112 # If we can't run a trivial program, we are probably using a cross compiler.
6113 if (./conftest; exit) 2>/dev/null; then
6114 ac_cv_prog_cxx_cross=no
6115 else
6116 ac_cv_prog_cxx_cross=yes
6117 fi
6118else
6119 echo "configure: failed program was:" >&5
6120 cat conftest.$ac_ext >&5
6121 ac_cv_prog_cxx_works=no
6122fi
6123rm -fr conftest*
6124ac_ext=C
6125# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6126ac_cpp='$CXXCPP $CPPFLAGS'
6127ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6128ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6129cross_compiling=$ac_cv_prog_cxx_cross
6130
6131echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
6132if test $ac_cv_prog_cxx_works = no; then
6133 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
6134fi
6135echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
ab9b9eab 6136echo "configure:6137: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
10f2d63a
VZ
6137echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
6138cross_compiling=$ac_cv_prog_cxx_cross
6139
6140echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
ab9b9eab 6141echo "configure:6142: checking whether we are using GNU C++" >&5
10f2d63a
VZ
6142if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
6143 echo $ac_n "(cached) $ac_c" 1>&6
6144else
6145 cat > conftest.C <<EOF
6146#ifdef __GNUC__
6147 yes;
6148#endif
6149EOF
ab9b9eab 6150if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:6151: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
10f2d63a
VZ
6151 ac_cv_prog_gxx=yes
6152else
6153 ac_cv_prog_gxx=no
6154fi
6155fi
6156
6157echo "$ac_t""$ac_cv_prog_gxx" 1>&6
6158
6159if test $ac_cv_prog_gxx = yes; then
6160 GXX=yes
6161else
6162 GXX=
6163fi
6164
6165ac_test_CXXFLAGS="${CXXFLAGS+set}"
6166ac_save_CXXFLAGS="$CXXFLAGS"
6167CXXFLAGS=
6168echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
ab9b9eab 6169echo "configure:6170: checking whether ${CXX-g++} accepts -g" >&5
10f2d63a
VZ
6170if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
6171 echo $ac_n "(cached) $ac_c" 1>&6
6172else
6173 echo 'void f(){}' > conftest.cc
6174if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
6175 ac_cv_prog_cxx_g=yes
6176else
6177 ac_cv_prog_cxx_g=no
6178fi
6179rm -f conftest*
6180
6181fi
6182
6183echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
6184if test "$ac_test_CXXFLAGS" = set; then
6185 CXXFLAGS="$ac_save_CXXFLAGS"
6186elif test $ac_cv_prog_cxx_g = yes; then
6187 if test "$GXX" = yes; then
6188 CXXFLAGS="-g -O2"
6189 else
6190 CXXFLAGS="-g"
6191 fi
6192else
6193 if test "$GXX" = yes; then
6194 CXXFLAGS="-O2"
6195 else
6196 CXXFLAGS=
6197 fi
6198fi
6199
6200
6201echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
ab9b9eab 6202echo "configure:6203: checking how to run the C++ preprocessor" >&5
10f2d63a
VZ
6203if test -z "$CXXCPP"; then
6204if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
6205 echo $ac_n "(cached) $ac_c" 1>&6
6206else
6207 ac_ext=C
6208# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6209ac_cpp='$CXXCPP $CPPFLAGS'
6210ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6211ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6212cross_compiling=$ac_cv_prog_cxx_cross
6213 CXXCPP="${CXX-g++} -E"
6214 cat > conftest.$ac_ext <<EOF
ab9b9eab 6215#line 6216 "configure"
10f2d63a
VZ
6216#include "confdefs.h"
6217#include <stdlib.h>
6218EOF
6219ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
ab9b9eab 6220{ (eval echo configure:6221: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
6221ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6222if test -z "$ac_err"; then
6223 :
6224else
6225 echo "$ac_err" >&5
6226 echo "configure: failed program was:" >&5
6227 cat conftest.$ac_ext >&5
6228 rm -rf conftest*
6229 CXXCPP=/lib/cpp
6230fi
6231rm -f conftest*
6232 ac_cv_prog_CXXCPP="$CXXCPP"
6233ac_ext=C
6234# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6235ac_cpp='$CXXCPP $CPPFLAGS'
6236ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6237ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6238cross_compiling=$ac_cv_prog_cxx_cross
6239fi
6240fi
6241CXXCPP="$ac_cv_prog_CXXCPP"
6242echo "$ac_t""$CXXCPP" 1>&6
6243
6244
6245CXXFLAGS=`echo "$CXXFLAGS" | sed 's/-g//g'`
6246
6247ac_ext=c
6248# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6249ac_cpp='$CPP $CPPFLAGS'
6250ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6251ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6252cross_compiling=$ac_cv_prog_cc_cross
6253
6254
6255# Extract the first word of "ranlib", so it can be a program name with args.
6256set dummy ranlib; ac_word=$2
6257echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
ab9b9eab 6258echo "configure:6259: checking for $ac_word" >&5
10f2d63a
VZ
6259if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
6260 echo $ac_n "(cached) $ac_c" 1>&6
6261else
6262 if test -n "$RANLIB"; then
6263 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6264else
6265 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6266 ac_dummy="$PATH"
6267 for ac_dir in $ac_dummy; do
6268 test -z "$ac_dir" && ac_dir=.
6269 if test -f $ac_dir/$ac_word; then
6270 ac_cv_prog_RANLIB="ranlib"
6271 break
6272 fi
6273 done
6274 IFS="$ac_save_ifs"
6275 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
6276fi
6277fi
6278RANLIB="$ac_cv_prog_RANLIB"
6279if test -n "$RANLIB"; then
6280 echo "$ac_t""$RANLIB" 1>&6
6281else
6282 echo "$ac_t""no" 1>&6
6283fi
6284
6285
6286# Extract the first word of "ar", so it can be a program name with args.
6287set dummy ar; ac_word=$2
6288echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
ab9b9eab 6289echo "configure:6290: checking for $ac_word" >&5
10f2d63a
VZ
6290if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
6291 echo $ac_n "(cached) $ac_c" 1>&6
6292else
6293 if test -n "$AR"; then
6294 ac_cv_prog_AR="$AR" # Let the user override the test.
6295else
6296 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6297 ac_dummy="$PATH"
6298 for ac_dir in $ac_dummy; do
6299 test -z "$ac_dir" && ac_dir=.
6300 if test -f $ac_dir/$ac_word; then
6301 ac_cv_prog_AR="ar"
6302 break
6303 fi
6304 done
6305 IFS="$ac_save_ifs"
6306 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
6307fi
6308fi
6309AR="$ac_cv_prog_AR"
6310if test -n "$AR"; then
6311 echo "$ac_t""$AR" 1>&6
6312else
6313 echo "$ac_t""no" 1>&6
6314fi
6315
6316
6317# Find a good install program. We prefer a C program (faster),
6318# so one script is as good as another. But avoid the broken or
6319# incompatible versions:
6320# SysV /etc/install, /usr/sbin/install
6321# SunOS /usr/etc/install
6322# IRIX /sbin/install
6323# AIX /bin/install
6324# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6325# AFS /usr/afsws/bin/install, which mishandles nonexistent args
6326# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6327# ./install, which can be erroneously created by make from ./install.sh.
6328echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
ab9b9eab 6329echo "configure:6330: checking for a BSD compatible install" >&5
10f2d63a
VZ
6330if test -z "$INSTALL"; then
6331if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
6332 echo $ac_n "(cached) $ac_c" 1>&6
6333else
6334 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
6335 for ac_dir in $PATH; do
6336 # Account for people who put trailing slashes in PATH elements.
6337 case "$ac_dir/" in
6338 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
6339 *)
6340 # OSF1 and SCO ODT 3.0 have their own names for install.
6341 # Don't use installbsd from OSF since it installs stuff as root
6342 # by default.
6343 for ac_prog in ginstall scoinst install; do
6344 if test -f $ac_dir/$ac_prog; then
6345 if test $ac_prog = install &&
6346 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
6347 # AIX install. It has an incompatible calling convention.
6348 :
6349 else
6350 ac_cv_path_install="$ac_dir/$ac_prog -c"
6351 break 2
6352 fi
6353 fi
6354 done
6355 ;;
6356 esac
6357 done
6358 IFS="$ac_save_IFS"
6359
6360fi
6361 if test "${ac_cv_path_install+set}" = set; then
6362 INSTALL="$ac_cv_path_install"
6363 else
6364 # As a last resort, use the slow shell script. We don't cache a
6365 # path for INSTALL within a source directory, because that will
6366 # break other packages using the cache if that directory is
6367 # removed, or if the path is relative.
6368 INSTALL="$ac_install_sh"
6369 fi
6370fi
6371echo "$ac_t""$INSTALL" 1>&6
6372
6373# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6374# It thinks the first close brace ends the variable substitution.
6375test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6376
6377test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
6378
6379test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6380
6381
6382# Extract the first word of "strip", so it can be a program name with args.
6383set dummy strip; ac_word=$2
6384echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
ab9b9eab 6385echo "configure:6386: checking for $ac_word" >&5
10f2d63a
VZ
6386if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
6387 echo $ac_n "(cached) $ac_c" 1>&6
6388else
6389 if test -n "$STRIP"; then
6390 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6391else
6392 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6393 ac_dummy="$PATH"
6394 for ac_dir in $ac_dummy; do
6395 test -z "$ac_dir" && ac_dir=.
6396 if test -f $ac_dir/$ac_word; then
6397 ac_cv_prog_STRIP="strip"
6398 break
6399 fi
6400 done
6401 IFS="$ac_save_ifs"
6402 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true"
6403fi
6404fi
6405STRIP="$ac_cv_prog_STRIP"
6406if test -n "$STRIP"; then
6407 echo "$ac_t""$STRIP" 1>&6
6408else
6409 echo "$ac_t""no" 1>&6
6410fi
6411
6412
6413echo $ac_n "checking "make for VPATH support"""... $ac_c" 1>&6
ab9b9eab 6414echo "configure:6415: checking "make for VPATH support"" >&5
10f2d63a
VZ
6415cat - << EOF > confMake
6416check : file
6417 cp \$? \$@
6418 cp \$? final_file
6419EOF
6420
6421if test ! -d sub ; then
6422 mkdir sub
6423fi
6424echo dummy > sub/file
6425${MAKE-make} -f confMake VPATH=sub 2> config.log > /dev/null
6426RESULT=$?
6427rm -f sub/file check final_file confMake
6428rmdir sub
6429if test "$RESULT" = 0; then
6430 echo "$ac_t""yes" 1>&6
6431else
6432 echo "$ac_t""no" 1>&6
6433 { echo "configure: error: You need a make-utility that is able to use the variable
6434VPATH correctly.
6435If your version of make does not support VPATH correctly" 1>&2; exit 1; }
6436fi
6437
6438for ac_prog in 'bison -y' byacc
6439do
6440# Extract the first word of "$ac_prog", so it can be a program name with args.
6441set dummy $ac_prog; ac_word=$2
6442echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
ab9b9eab 6443echo "configure:6444: checking for $ac_word" >&5
10f2d63a
VZ
6444if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
6445 echo $ac_n "(cached) $ac_c" 1>&6
6446else
6447 if test -n "$YACC"; then
6448 ac_cv_prog_YACC="$YACC" # Let the user override the test.
6449else
6450 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6451 ac_dummy="$PATH"
6452 for ac_dir in $ac_dummy; do
6453 test -z "$ac_dir" && ac_dir=.
6454 if test -f $ac_dir/$ac_word; then
6455 ac_cv_prog_YACC="$ac_prog"
6456 break
6457 fi
6458 done
6459 IFS="$ac_save_ifs"
6460fi
6461fi
6462YACC="$ac_cv_prog_YACC"
6463if test -n "$YACC"; then
6464 echo "$ac_t""$YACC" 1>&6
6465else
6466 echo "$ac_t""no" 1>&6
6467fi
6468
6469test -n "$YACC" && break
6470done
6471test -n "$YACC" || YACC="yacc"
6472
6473
6474# Extract the first word of "flex", so it can be a program name with args.
6475set dummy flex; ac_word=$2
6476echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
ab9b9eab 6477echo "configure:6478: checking for $ac_word" >&5
10f2d63a
VZ
6478if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
6479 echo $ac_n "(cached) $ac_c" 1>&6
6480else
6481 if test -n "$LEX"; then
6482 ac_cv_prog_LEX="$LEX" # Let the user override the test.
6483else
6484 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6485 ac_dummy="$PATH"
6486 for ac_dir in $ac_dummy; do
6487 test -z "$ac_dir" && ac_dir=.
6488 if test -f $ac_dir/$ac_word; then
6489 ac_cv_prog_LEX="flex"
6490 break
6491 fi
6492 done
6493 IFS="$ac_save_ifs"
6494 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
6495fi
6496fi
6497LEX="$ac_cv_prog_LEX"
6498if test -n "$LEX"; then
6499 echo "$ac_t""$LEX" 1>&6
6500else
6501 echo "$ac_t""no" 1>&6
6502fi
6503
6504if test -z "$LEXLIB"
6505then
6506 case "$LEX" in
6507 flex*) ac_lib=fl ;;
6508 *) ac_lib=l ;;
6509 esac
6510 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
ab9b9eab 6511echo "configure:6512: checking for yywrap in -l$ac_lib" >&5
10f2d63a
VZ
6512ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
6513if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6514 echo $ac_n "(cached) $ac_c" 1>&6
6515else
6516 ac_save_LIBS="$LIBS"
6517LIBS="-l$ac_lib $LIBS"
6518cat > conftest.$ac_ext <<EOF
ab9b9eab 6519#line 6520 "configure"
10f2d63a
VZ
6520#include "confdefs.h"
6521/* Override any gcc2 internal prototype to avoid an error. */
6522/* We use char because int might match the return type of a gcc2
6523 builtin and then its argument prototype would still apply. */
6524char yywrap();
6525
6526int main() {
6527yywrap()
6528; return 0; }
6529EOF
ab9b9eab 6530if { (eval echo configure:6531: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
6531 rm -rf conftest*
6532 eval "ac_cv_lib_$ac_lib_var=yes"
6533else
6534 echo "configure: failed program was:" >&5
6535 cat conftest.$ac_ext >&5
6536 rm -rf conftest*
6537 eval "ac_cv_lib_$ac_lib_var=no"
6538fi
6539rm -f conftest*
6540LIBS="$ac_save_LIBS"
6541
6542fi
6543if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6544 echo "$ac_t""yes" 1>&6
6545 LEXLIB="-l$ac_lib"
6546else
6547 echo "$ac_t""no" 1>&6
6548fi
6549
6550fi
6551
6552
6553echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
ab9b9eab 6554echo "configure:6555: checking whether ln -s works" >&5
10f2d63a
VZ
6555if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
6556 echo $ac_n "(cached) $ac_c" 1>&6
6557else
6558 rm -f conftestdata
6559if ln -s X conftestdata 2>/dev/null
6560then
6561 rm -f conftestdata
6562 ac_cv_prog_LN_S="ln -s"
6563else
6564 ac_cv_prog_LN_S=ln
6565fi
6566fi
6567LN_S="$ac_cv_prog_LN_S"
6568if test "$ac_cv_prog_LN_S" = "ln -s"; then
6569 echo "$ac_t""yes" 1>&6
6570else
6571 echo "$ac_t""no" 1>&6
6572fi
6573
6574
6575
6576SEARCH_INCLUDE="\
6577 /usr/local/include \
6578 \
6579 /usr/Motif-1.2/include \
6580 /usr/Motif-2.1/include \
6581 \
6582 /usr/include/Motif1.2 \
6583 /opt/xpm/include/X11 \
6584 /opt/GBxpm/include/ \
6585 /opt/GBxpm/X11/include/ \
6586 \
6587 /usr/Motif1.2/include \
6588 /usr/dt/include \
afc31813
VZ
6589 /usr/openwin/include \
6590 \
10f2d63a
VZ
6591 /usr/include/Xm \
6592 \
6593 /usr/X11R6/include \
afc31813 6594 /usr/X11R6.4/include \
10f2d63a
VZ
6595 /usr/X11R5/include \
6596 /usr/X11R4/include \
6597 \
10f2d63a
VZ
6598 /usr/include/X11R6 \
6599 /usr/include/X11R5 \
6600 /usr/include/X11R4 \
6601 \
6602 /usr/local/X11R6/include \
6603 /usr/local/X11R5/include \
6604 /usr/local/X11R4/include \
6605 \
6606 /usr/local/include/X11R6 \
6607 /usr/local/include/X11R5 \
6608 /usr/local/include/X11R4 \
6609 \
6610 /usr/X11/include \
6611 /usr/include/X11 \
6612 /usr/local/X11/include \
6613 /usr/local/include/X11 \
6614 \
6615 /usr/X386/include \
6616 /usr/x386/include \
6617 /usr/XFree86/include/X11 \
6618 \
6619 /usr/include/gtk \
6620 /usr/local/include/gtk \
6621 /usr/include/glib \
6622 /usr/local/include/glib \
6623 \
6624 /usr/include/qt \
6625 /usr/local/include/qt \
6626 \
6627 /usr/include/windows \
6628 /usr/include/wine \
6629 /usr/local/include/wine \
6630 \
6631 /usr/unsupported/include \
6632 /usr/athena/include \
6633 /usr/local/x11r5/include \
6634 /usr/lpp/Xamples/include \
6635 \
10f2d63a 6636 /usr/openwin/share/include \
928b5c08
VZ
6637 \
6638 /usr/include"
10f2d63a
VZ
6639
6640SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s/include/lib/g` "
6641
6642
6643cat > confcache <<\EOF
6644# This file is a shell script that caches the results of configure
6645# tests run on this system so they can be shared between configure
6646# scripts and configure runs. It is not useful on other systems.
6647# If it contains results you don't want to keep, you may remove or edit it.
6648#
6649# By default, configure uses ./config.cache as the cache file,
6650# creating it if it does not exist already. You can give configure
6651# the --cache-file=FILE option to use a different cache file; that is
6652# what configure does when it calls configure scripts in
6653# subdirectories, so they share the cache.
6654# Giving --cache-file=/dev/null disables caching, for debugging configure.
6655# config.status only pays attention to the cache file if you give it the
6656# --recheck option to rerun configure.
6657#
6658EOF
6659# The following way of writing the cache mishandles newlines in values,
6660# but we know of no workaround that is simple, portable, and efficient.
6661# So, don't put newlines in cache variables' values.
6662# Ultrix sh set writes to stderr and can't be redirected directly,
6663# and sets the high bit in the cache file unless we assign to the vars.
6664(set) 2>&1 |
6665 case `(ac_space=' '; set | grep ac_space) 2>&1` in
6666 *ac_space=\ *)
6667 # `set' does not quote correctly, so add quotes (double-quote substitution
6668 # turns \\\\ into \\, and sed turns \\ into \).
6669 sed -n \
6670 -e "s/'/'\\\\''/g" \
6671 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
6672 ;;
6673 *)
6674 # `set' quotes correctly as required by POSIX, so do not add quotes.
6675 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
6676 ;;
6677 esac >> confcache
6678if cmp -s $cache_file confcache; then
6679 :
6680else
6681 if test -w $cache_file; then
6682 echo "updating cache $cache_file"
6683 cat confcache > $cache_file
6684 else
6685 echo "not updating unwritable cache $cache_file"
6686 fi
6687fi
6688rm -f confcache
6689
6690
6691
6692if test "$wxUSE_GUI" = "yes"; then
6693
6694TOOLKIT=
6695TOOLKIT_INCLUDE=
6696
6697GUIOBJS=
6698COMMONOBJS=
6699GENERICOBJS=
6700
6701GUI_TK_LIBRARY=
6702GUI_TK_LINK=
6703
6704WXGTK12=
6705
6706WXWINE=
6707
6708PROGRAM_EXT=
6709
6710if test "$wxUSE_CYGWIN" = 1 || test "$wxUSE_MINGW" = 1 ; then
6711 if test "$cross_compiling" = "yes" ; then
6712 echo "configure: warning: Cross compiling --- skipping windows.h check" 1>&2
6713 else
6714 echo $ac_n "checking for Windows headers""... $ac_c" 1>&6
ab9b9eab 6715echo "configure:6716: checking for Windows headers" >&5
10f2d63a
VZ
6716
6717ac_find_includes=
6718for ac_dir in $SEARCH_INCLUDE;
6719 do
6720 if test -f "$ac_dir/windows.h"; then
6721 ac_find_includes=$ac_dir
6722 break
6723 fi
6724 done
6725
6726 if test "$ac_find_includes" != "" ; then
6727 echo "$ac_t""found $ac_find_includes" 1>&6
6728 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE -I$ac_find_includes"
6729 else
6730 echo "$ac_t""no" 1>&6
6731 { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; }
6732 fi
6733 fi
6734
6735 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS msw"
6736 LIBS="$LIBS -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lctl3d32 -lcrtdll -ladvapi32 -lwsock32"
6737
6738 if test "$wxUSE_MINGW" = 1; then
6739 LDFLAGS="$LDFLAGS -mwindows"
6740 fi
6741
6742 TOOLKIT=MSW
6743
6744 GUIOBJS="\$(MSW_GUIOBJS)"
6745 GUIHEADERS="\$(MSW_HEADERS)"
6746 COMMONOBJS="\$(MSW_COMMONOBJS)"
6747 GENERICOBJS="\$(MSW_GENERICOBJS)"
6748 UNIXOBJS=
6749 GUIDIST=MSW_DIST
6750 PROGRAM_EXT=.exe
6751fi
6752
6753if test "$wxUSE_GTK" = 1; then
6754
6755 if test x$gtk_config_exec_prefix != x ; then
6756 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
6757 if test x${GTK_CONFIG+set} != xset ; then
6758 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
6759 fi
6760 fi
6761 if test x$gtk_config_prefix != x ; then
6762 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
6763 if test x${GTK_CONFIG+set} != xset ; then
6764 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
6765 fi
6766 fi
6767
6768 # Extract the first word of "gtk-config", so it can be a program name with args.
6769set dummy gtk-config; ac_word=$2
6770echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
ab9b9eab 6771echo "configure:6772: checking for $ac_word" >&5
10f2d63a
VZ
6772if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
6773 echo $ac_n "(cached) $ac_c" 1>&6
6774else
6775 case "$GTK_CONFIG" in
6776 /*)
6777 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
6778 ;;
6779 ?:/*)
6780 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
6781 ;;
6782 *)
6783 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6784 ac_dummy="$PATH"
6785 for ac_dir in $ac_dummy; do
6786 test -z "$ac_dir" && ac_dir=.
6787 if test -f $ac_dir/$ac_word; then
6788 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
6789 break
6790 fi
6791 done
6792 IFS="$ac_save_ifs"
6793 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
6794 ;;
6795esac
6796fi
6797GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
6798if test -n "$GTK_CONFIG"; then
6799 echo "$ac_t""$GTK_CONFIG" 1>&6
6800else
6801 echo "$ac_t""no" 1>&6
6802fi
6803
6804 min_gtk_version=1.2.1
6805 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
ab9b9eab 6806echo "configure:6807: checking for GTK - version >= $min_gtk_version" >&5
10f2d63a
VZ
6807 no_gtk=""
6808 if test "$GTK_CONFIG" != "no" ; then
6809 GTK_CFLAGS=`$GTK_CONFIG --cflags`
6810 GTK_LIBS=`$GTK_CONFIG --libs`
6811 ac_save_CFLAGS="$CFLAGS"
6812 ac_save_LIBS="$LIBS"
6813 CFLAGS="$CFLAGS $GTK_CFLAGS"
6814 LIBS="$LIBS $GTK_LIBS"
6815 if test "$cross_compiling" = yes; then
6816 echo $ac_n "cross compiling; assumed OK... $ac_c"
6817else
6818 cat > conftest.$ac_ext <<EOF
ab9b9eab 6819#line 6820 "configure"
10f2d63a
VZ
6820#include "confdefs.h"
6821
6822#include <gtk/gtk.h>
f49f2b0c 6823#include <gtk/gtkfeatures.h>
10f2d63a
VZ
6824#include <stdio.h>
6825
6826int
6827main ()
6828{
6829 int major, minor, micro;
6830
6831 if (sscanf("$min_gtk_version", "%d.%d.%d", &major, &minor, &micro) != 3) {
6832 printf("%s, bad version string\n", "$min_gtk_version");
6833 exit(1);
6834 }
6835
f49f2b0c
RR
6836 if ((GTK_MAJOR_VERSION != gtk_major_version) ||
6837 (GTK_MINOR_VERSION != gtk_minor_version) ||
6838 (GTK_MICRO_VERSION != gtk_micro_version)) {
6839 printf("Headers vs. library version mismatch!\n");
6840 exit(1);
6841 }
6842
10f2d63a
VZ
6843 if (gtk_minor_version == 1) return FALSE;
6844
6845 return !((gtk_major_version > major) ||
6846 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
6847 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)));
6848}
6849
6850EOF
f49f2b0c 6851if { (eval echo configure:6852: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10f2d63a
VZ
6852then
6853 :
6854else
6855 echo "configure: failed program was:" >&5
6856 cat conftest.$ac_ext >&5
6857 rm -fr conftest*
6858 no_gtk=yes
6859fi
6860rm -fr conftest*
6861fi
6862
6863 CFLAGS="$ac_save_CFLAGS"
6864 LIBS="$ac_save_LIBS"
6865 else
6866 no_gtk=yes
6867 fi
6868 if test "x$no_gtk" = x ; then
6869 echo "$ac_t""yes" 1>&6
6870 WXGTK12=1
6871 else
6872 echo "$ac_t""no" 1>&6
6873 GTK_CFLAGS=""
6874 GTK_LIBS=""
6875 { echo "configure: error: Is gtk-config in path and GTK+ is version 1.2.1 or above?" 1>&2; exit 1; }
6876 fi
6877
6878
6879
6880
6881 TOOLKIT_INCLUDE="$GTK_CFLAGS"
6882 GUI_TK_LIBRARY="$GTK_LIBS"
6883 TOOLKIT=GTK
6884
6885 GUIOBJS="\$(GTK_GUIOBJS)"
6886 GUIHEADERS="\$(GTK_HEADERS)"
6887 COMMONOBJS="\$(GTK_COMMONOBJS)"
6888 GENERICOBJS="\$(GTK_GENERICOBJS)"
6889 GUIDEPS="\$(GTK_GUIDEPS)"
6890 COMMONDEPS="\$(GTK_COMMONDEPS)"
6891 GENERICDEPS="\$(GTK_GENERICDEPS)"
6892 UNIXOBJS="\$(UNIX_OBJS)"
6893 GUIDIST=GTK_DIST
6894fi
6895
6896if test "$wxUSE_WINE" = 1; then
6897 echo $ac_n "checking for WINE includes""... $ac_c" 1>&6
f49f2b0c 6898echo "configure:6899: checking for WINE includes" >&5
10f2d63a
VZ
6899
6900ac_find_includes=
6901for ac_dir in $SEARCH_INCLUDE;
6902 do
6903 if test -f "$ac_dir/windows.h"; then
6904 ac_find_includes=$ac_dir
6905 break
6906 fi
6907 done
6908
6909 if test "$ac_find_includes" != "" ; then
6910 echo "$ac_t""found $ac_find_includes" 1>&6
6911 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE -I$ac_find_includes"
6912 else
6913 echo "$ac_t""no" 1>&6
6914 { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; }
6915 fi
6916
6917 XPM_LINK=""
6918 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
f49f2b0c 6919echo "configure:6920: checking for Xpm library" >&5
10f2d63a
VZ
6920
6921ac_find_libraries=
6922for ac_dir in $SEARCH_LIB;
6923 do
6924 for ac_extension in a so sl; do
6925 if test -f "$ac_dir/libXpm.$ac_extension"; then
6926 ac_find_libraries=$ac_dir
6927 break 2
6928 fi
6929 done
6930 done
6931
6932 if test "$ac_find_libraries" != "" ; then
6933 GUI_TK_LIBRARY="-L$ac_find_libraries"
6934 XPM_LINK="-lXpm"
6935 cat >> confdefs.h <<\EOF
6936#define wxHAVE_LIB_XPM 1
6937EOF
6938
6939 echo "$ac_t""found at $ac_find_libraries" 1>&6
6940 else
6941 echo "$ac_t""no" 1>&6
6942 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
6943 fi
6944
6945 MESA_LINK=""
6946 echo $ac_n "checking for Mesa library""... $ac_c" 1>&6
f49f2b0c 6947echo "configure:6948: checking for Mesa library" >&5
10f2d63a
VZ
6948
6949ac_find_libraries=
6950for ac_dir in $SEARCH_LIB;
6951 do
6952 for ac_extension in a so sl; do
6953 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
6954 ac_find_libraries=$ac_dir
6955 break 2
6956 fi
6957 done
6958 done
6959
6960 if test "$ac_find_libraries" != "" ; then
6961 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -L$ac_find_libraries"
6962 MESA_LINK="-lMesaGL"
6963 echo "$ac_t""found at $ac_find_libraries" 1>&6
6964 else
6965 { echo "configure: error: no" 1>&2; exit 1; }
6966 fi
6967
6968 GUI_TK_LINK="-lwine $MESA_LINK $XPM_LINK -lXxf86dga -lXxf86vm -lSM -lICE -lXext -lXmu -lX11 -lncurses -lm"
6969 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $GUI_TK_LINK"
6970 WXWINE=1
6971 TOOLKIT=MSW
6972
6973 GUIHEADERS="\$(MSW_HEADERS)"
6974 GUIOBJS="\$(MSW_GUIOBJS)"
6975 COMMONOBJS="\$(MSW_COMMONOBJS)"
6976 GENERICOBJS="\$(MSW_GENERICOBJS)"
6977 GUIDEPS="\$(MSW_GUIDEPS)"
6978 COMMONDEPS="\$(MSW_COMMONDEPS)"
6979 GENERICDEPS="\$(MSW_GENERICDEPS)"
6980 UNIXOBJS="\$(UNIX_OBJS)"
6981 GUIDIST=MSW_DIST
6982fi
6983
6984if test "$wxUSE_MOTIF" = 1; then
ab9b9eab
VZ
6985 # If we find X, set shell vars x_includes and x_libraries to the
6986# paths, otherwise set no_x=yes.
6987# Uses ac_ vars as temps to allow command line to override cache and checks.
6988# --without-x overrides everything else, but does not touch the cache.
6989echo $ac_n "checking for X""... $ac_c" 1>&6
f49f2b0c 6990echo "configure:6991: checking for X" >&5
ab9b9eab
VZ
6991
6992# Check whether --with-x or --without-x was given.
6993if test "${with_x+set}" = set; then
6994 withval="$with_x"
6995 :
6996fi
ba337fe7 6997
ab9b9eab
VZ
6998# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
6999if test "x$with_x" = xno; then
7000 # The user explicitly disabled X.
7001 have_x=disabled
7002else
7003 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
7004 # Both variables are already set.
7005 have_x=yes
7006 else
7007if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
7008 echo $ac_n "(cached) $ac_c" 1>&6
7009else
7010 # One or both of the vars are not set, and there is no cached value.
7011ac_x_includes=NO ac_x_libraries=NO
7012rm -fr conftestdir
7013if mkdir conftestdir; then
7014 cd conftestdir
7015 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
7016 cat > Imakefile <<'EOF'
7017acfindx:
7018 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
7019EOF
7020 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
7021 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7022 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
7023 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
10f2d63a 7024 for ac_extension in a so sl; do
ab9b9eab
VZ
7025 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
7026 test -f $ac_im_libdir/libX11.$ac_extension; then
7027 ac_im_usrlibdir=$ac_im_libdir; break
10f2d63a
VZ
7028 fi
7029 done
ab9b9eab
VZ
7030 # Screen out bogus values from the imake configuration. They are
7031 # bogus both because they are the default anyway, and because
7032 # using them would break gcc on systems where it needs fixed includes.
7033 case "$ac_im_incroot" in
7034 /usr/include) ;;
7035 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
7036 esac
7037 case "$ac_im_usrlibdir" in
7038 /usr/lib | /lib) ;;
7039 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
7040 esac
ba337fe7 7041 fi
ab9b9eab
VZ
7042 cd ..
7043 rm -fr conftestdir
7044fi
10f2d63a 7045
ab9b9eab
VZ
7046if test "$ac_x_includes" = NO; then
7047 # Guess where to find include files, by looking for this one X11 .h file.
7048 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
ba337fe7 7049
ab9b9eab
VZ
7050 # First, try using that file with no special directory specified.
7051cat > conftest.$ac_ext <<EOF
f49f2b0c 7052#line 7053 "configure"
ab9b9eab
VZ
7053#include "confdefs.h"
7054#include <$x_direct_test_include>
7055EOF
7056ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
f49f2b0c 7057{ (eval echo configure:7058: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ab9b9eab
VZ
7058ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7059if test -z "$ac_err"; then
7060 rm -rf conftest*
7061 # We can compile using X headers with no special include directory.
7062ac_x_includes=
7063else
7064 echo "$ac_err" >&5
7065 echo "configure: failed program was:" >&5
7066 cat conftest.$ac_ext >&5
7067 rm -rf conftest*
7068 # Look for the header file in a standard set of common directories.
7069# Check X11 before X11Rn because it is often a symlink to the current release.
7070 for ac_dir in \
7071 /usr/X11/include \
7072 /usr/X11R6/include \
7073 /usr/X11R5/include \
7074 /usr/X11R4/include \
7075 \
7076 /usr/include/X11 \
7077 /usr/include/X11R6 \
7078 /usr/include/X11R5 \
7079 /usr/include/X11R4 \
7080 \
7081 /usr/local/X11/include \
7082 /usr/local/X11R6/include \
7083 /usr/local/X11R5/include \
7084 /usr/local/X11R4/include \
7085 \
7086 /usr/local/include/X11 \
7087 /usr/local/include/X11R6 \
7088 /usr/local/include/X11R5 \
7089 /usr/local/include/X11R4 \
7090 \
7091 /usr/X386/include \
7092 /usr/x386/include \
7093 /usr/XFree86/include/X11 \
7094 \
7095 /usr/include \
7096 /usr/local/include \
7097 /usr/unsupported/include \
7098 /usr/athena/include \
7099 /usr/local/x11r5/include \
7100 /usr/lpp/Xamples/include \
7101 \
7102 /usr/openwin/include \
7103 /usr/openwin/share/include \
7104 ; \
10f2d63a 7105 do
ab9b9eab
VZ
7106 if test -r "$ac_dir/$x_direct_test_include"; then
7107 ac_x_includes=$ac_dir
10f2d63a
VZ
7108 break
7109 fi
7110 done
ab9b9eab
VZ
7111fi
7112rm -f conftest*
7113fi # $ac_x_includes = NO
10f2d63a 7114
ab9b9eab
VZ
7115if test "$ac_x_libraries" = NO; then
7116 # Check for the libraries.
10f2d63a 7117
ab9b9eab
VZ
7118 test -z "$x_direct_test_library" && x_direct_test_library=Xt
7119 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
10f2d63a 7120
ab9b9eab
VZ
7121 # See if we find them without any special options.
7122 # Don't add to $LIBS permanently.
7123 ac_save_LIBS="$LIBS"
7124 LIBS="-l$x_direct_test_library $LIBS"
7125cat > conftest.$ac_ext <<EOF
f49f2b0c 7126#line 7127 "configure"
ab9b9eab 7127#include "confdefs.h"
10f2d63a 7128
ab9b9eab
VZ
7129int main() {
7130${x_direct_test_function}()
7131; return 0; }
7132EOF
f49f2b0c 7133if { (eval echo configure:7134: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
7134 rm -rf conftest*
7135 LIBS="$ac_save_LIBS"
7136# We can link X programs with no special library path.
7137ac_x_libraries=
7138else
7139 echo "configure: failed program was:" >&5
7140 cat conftest.$ac_ext >&5
7141 rm -rf conftest*
7142 LIBS="$ac_save_LIBS"
7143# First see if replacing the include by lib works.
7144# Check X11 before X11Rn because it is often a symlink to the current release.
7145for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
7146 /usr/X11/lib \
7147 /usr/X11R6/lib \
7148 /usr/X11R5/lib \
7149 /usr/X11R4/lib \
7150 \
7151 /usr/lib/X11 \
7152 /usr/lib/X11R6 \
7153 /usr/lib/X11R5 \
7154 /usr/lib/X11R4 \
7155 \
7156 /usr/local/X11/lib \
7157 /usr/local/X11R6/lib \
7158 /usr/local/X11R5/lib \
7159 /usr/local/X11R4/lib \
7160 \
7161 /usr/local/lib/X11 \
7162 /usr/local/lib/X11R6 \
7163 /usr/local/lib/X11R5 \
7164 /usr/local/lib/X11R4 \
7165 \
7166 /usr/X386/lib \
7167 /usr/x386/lib \
7168 /usr/XFree86/lib/X11 \
7169 \
7170 /usr/lib \
7171 /usr/local/lib \
7172 /usr/unsupported/lib \
7173 /usr/athena/lib \
7174 /usr/local/x11r5/lib \
7175 /usr/lpp/Xamples/lib \
7176 /lib/usr/lib/X11 \
7177 \
7178 /usr/openwin/lib \
7179 /usr/openwin/share/lib \
7180 ; \
7181do
7182 for ac_extension in a so sl; do
7183 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
7184 ac_x_libraries=$ac_dir
7185 break 2
10f2d63a 7186 fi
10f2d63a 7187 done
ab9b9eab
VZ
7188done
7189fi
7190rm -f conftest*
7191fi # $ac_x_libraries = NO
10f2d63a 7192
ab9b9eab
VZ
7193if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
7194 # Didn't find X anywhere. Cache the known absence of X.
7195 ac_cv_have_x="have_x=no"
7196else
7197 # Record where we found X for the cache.
7198 ac_cv_have_x="have_x=yes \
7199 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
7200fi
7201fi
10f2d63a 7202 fi
ab9b9eab
VZ
7203 eval "$ac_cv_have_x"
7204fi # $with_x != no
10f2d63a 7205
ab9b9eab
VZ
7206if test "$have_x" != yes; then
7207 echo "$ac_t""$have_x" 1>&6
7208 no_x=yes
7209else
7210 # If each of the values was on the command line, it overrides each guess.
7211 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
7212 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
7213 # Update the cache value to reflect the command line values.
7214 ac_cv_have_x="have_x=yes \
7215 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
7216 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
7217fi
10f2d63a 7218
ab9b9eab
VZ
7219if test "$no_x" = yes; then
7220 # Not all programs may use this symbol, but it does not hurt to define it.
7221 cat >> confdefs.h <<\EOF
7222#define X_DISPLAY_MISSING 1
7223EOF
10f2d63a 7224
ab9b9eab
VZ
7225 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
7226else
7227 if test -n "$x_includes"; then
7228 X_CFLAGS="$X_CFLAGS -I$x_includes"
10f2d63a
VZ
7229 fi
7230
ab9b9eab
VZ
7231 # It would also be nice to do this for all -L options, not just this one.
7232 if test -n "$x_libraries"; then
7233 X_LIBS="$X_LIBS -L$x_libraries"
7234 # For Solaris; some versions of Sun CC require a space after -R and
7235 # others require no space. Words are not sufficient . . . .
7236 case "`(uname -sr) 2>/dev/null`" in
7237 "SunOS 5"*)
7238 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
f49f2b0c 7239echo "configure:7240: checking whether -R must be followed by a space" >&5
ab9b9eab
VZ
7240 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
7241 cat > conftest.$ac_ext <<EOF
f49f2b0c 7242#line 7243 "configure"
ab9b9eab 7243#include "confdefs.h"
10f2d63a 7244
ab9b9eab 7245int main() {
788deba1 7246
ab9b9eab
VZ
7247; return 0; }
7248EOF
f49f2b0c 7249if { (eval echo configure:7250: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
7250 rm -rf conftest*
7251 ac_R_nospace=yes
7252else
7253 echo "configure: failed program was:" >&5
7254 cat conftest.$ac_ext >&5
7255 rm -rf conftest*
7256 ac_R_nospace=no
7257fi
7258rm -f conftest*
7259 if test $ac_R_nospace = yes; then
7260 echo "$ac_t""no" 1>&6
7261 X_LIBS="$X_LIBS -R$x_libraries"
7262 else
7263 LIBS="$ac_xsave_LIBS -R $x_libraries"
7264 cat > conftest.$ac_ext <<EOF
f49f2b0c 7265#line 7266 "configure"
ab9b9eab 7266#include "confdefs.h"
788deba1 7267
ab9b9eab
VZ
7268int main() {
7269
7270; return 0; }
7271EOF
f49f2b0c 7272if { (eval echo configure:7273: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
7273 rm -rf conftest*
7274 ac_R_space=yes
7275else
7276 echo "configure: failed program was:" >&5
7277 cat conftest.$ac_ext >&5
7278 rm -rf conftest*
7279 ac_R_space=no
7280fi
7281rm -f conftest*
7282 if test $ac_R_space = yes; then
7283 echo "$ac_t""yes" 1>&6
7284 X_LIBS="$X_LIBS -R $x_libraries"
7285 else
7286 echo "$ac_t""neither works" 1>&6
7287 fi
7288 fi
7289 LIBS="$ac_xsave_LIBS"
7290 esac
7291 fi
7292
7293 # Check for system-dependent libraries X programs must link with.
7294 # Do this before checking for the system-independent R6 libraries
7295 # (-lICE), since we may need -lsocket or whatever for X linking.
7296
7297 if test "$ISC" = yes; then
7298 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
7299 else
7300 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
7301 # libraries were built with DECnet support. And karl@cs.umb.edu says
7302 # the Alpha needs dnet_stub (dnet does not exist).
7303 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
f49f2b0c 7304echo "configure:7305: checking for dnet_ntoa in -ldnet" >&5
ab9b9eab
VZ
7305ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
7306if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7307 echo $ac_n "(cached) $ac_c" 1>&6
7308else
7309 ac_save_LIBS="$LIBS"
7310LIBS="-ldnet $LIBS"
7311cat > conftest.$ac_ext <<EOF
f49f2b0c 7312#line 7313 "configure"
ab9b9eab
VZ
7313#include "confdefs.h"
7314/* Override any gcc2 internal prototype to avoid an error. */
7315/* We use char because int might match the return type of a gcc2
7316 builtin and then its argument prototype would still apply. */
7317char dnet_ntoa();
7318
7319int main() {
7320dnet_ntoa()
7321; return 0; }
7322EOF
f49f2b0c 7323if { (eval echo configure:7324: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
7324 rm -rf conftest*
7325 eval "ac_cv_lib_$ac_lib_var=yes"
7326else
7327 echo "configure: failed program was:" >&5
7328 cat conftest.$ac_ext >&5
7329 rm -rf conftest*
7330 eval "ac_cv_lib_$ac_lib_var=no"
7331fi
7332rm -f conftest*
7333LIBS="$ac_save_LIBS"
7334
7335fi
7336if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7337 echo "$ac_t""yes" 1>&6
7338 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
7339else
7340 echo "$ac_t""no" 1>&6
7341fi
7342
7343 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
7344 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
f49f2b0c 7345echo "configure:7346: checking for dnet_ntoa in -ldnet_stub" >&5
ab9b9eab
VZ
7346ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
7347if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7348 echo $ac_n "(cached) $ac_c" 1>&6
7349else
7350 ac_save_LIBS="$LIBS"
7351LIBS="-ldnet_stub $LIBS"
7352cat > conftest.$ac_ext <<EOF
f49f2b0c 7353#line 7354 "configure"
ab9b9eab
VZ
7354#include "confdefs.h"
7355/* Override any gcc2 internal prototype to avoid an error. */
7356/* We use char because int might match the return type of a gcc2
7357 builtin and then its argument prototype would still apply. */
7358char dnet_ntoa();
7359
7360int main() {
7361dnet_ntoa()
7362; return 0; }
7363EOF
f49f2b0c 7364if { (eval echo configure:7365: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
7365 rm -rf conftest*
7366 eval "ac_cv_lib_$ac_lib_var=yes"
7367else
7368 echo "configure: failed program was:" >&5
7369 cat conftest.$ac_ext >&5
7370 rm -rf conftest*
7371 eval "ac_cv_lib_$ac_lib_var=no"
7372fi
7373rm -f conftest*
7374LIBS="$ac_save_LIBS"
7375
7376fi
7377if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7378 echo "$ac_t""yes" 1>&6
7379 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
7380else
7381 echo "$ac_t""no" 1>&6
7382fi
7383
7384 fi
7385
7386 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
7387 # to get the SysV transport functions.
7388 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
7389 # needs -lnsl.
7390 # The nsl library prevents programs from opening the X display
7391 # on Irix 5.2, according to dickey@clark.net.
7392 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
f49f2b0c 7393echo "configure:7394: checking for gethostbyname" >&5
ab9b9eab
VZ
7394if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
7395 echo $ac_n "(cached) $ac_c" 1>&6
7396else
7397 cat > conftest.$ac_ext <<EOF
f49f2b0c 7398#line 7399 "configure"
ab9b9eab
VZ
7399#include "confdefs.h"
7400/* System header to define __stub macros and hopefully few prototypes,
7401 which can conflict with char gethostbyname(); below. */
7402#include <assert.h>
7403/* Override any gcc2 internal prototype to avoid an error. */
7404/* We use char because int might match the return type of a gcc2
7405 builtin and then its argument prototype would still apply. */
7406char gethostbyname();
69ffe1d2 7407char (*f)();
ab9b9eab
VZ
7408
7409int main() {
7410
7411/* The GNU C library defines this for functions which it implements
7412 to always fail with ENOSYS. Some functions are actually named
7413 something starting with __ and the normal name is an alias. */
7414#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
7415choke me
7416#else
69ffe1d2 7417f = gethostbyname;
ab9b9eab
VZ
7418#endif
7419
7420; return 0; }
7421EOF
f49f2b0c 7422if { (eval echo configure:7423: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
7423 rm -rf conftest*
7424 eval "ac_cv_func_gethostbyname=yes"
7425else
7426 echo "configure: failed program was:" >&5
7427 cat conftest.$ac_ext >&5
7428 rm -rf conftest*
7429 eval "ac_cv_func_gethostbyname=no"
7430fi
7431rm -f conftest*
7432fi
7433
7434if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
7435 echo "$ac_t""yes" 1>&6
7436 :
7437else
7438 echo "$ac_t""no" 1>&6
7439fi
7440
7441 if test $ac_cv_func_gethostbyname = no; then
7442 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
f49f2b0c 7443echo "configure:7444: checking for gethostbyname in -lnsl" >&5
ab9b9eab
VZ
7444ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
7445if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7446 echo $ac_n "(cached) $ac_c" 1>&6
7447else
7448 ac_save_LIBS="$LIBS"
7449LIBS="-lnsl $LIBS"
7450cat > conftest.$ac_ext <<EOF
f49f2b0c 7451#line 7452 "configure"
ab9b9eab
VZ
7452#include "confdefs.h"
7453/* Override any gcc2 internal prototype to avoid an error. */
7454/* We use char because int might match the return type of a gcc2
7455 builtin and then its argument prototype would still apply. */
7456char gethostbyname();
7457
7458int main() {
7459gethostbyname()
7460; return 0; }
7461EOF
f49f2b0c 7462if { (eval echo configure:7463: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
7463 rm -rf conftest*
7464 eval "ac_cv_lib_$ac_lib_var=yes"
7465else
7466 echo "configure: failed program was:" >&5
7467 cat conftest.$ac_ext >&5
7468 rm -rf conftest*
7469 eval "ac_cv_lib_$ac_lib_var=no"
7470fi
7471rm -f conftest*
7472LIBS="$ac_save_LIBS"
7473
7474fi
7475if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7476 echo "$ac_t""yes" 1>&6
7477 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
7478else
7479 echo "$ac_t""no" 1>&6
7480fi
7481
7482 fi
7483
7484 # lieder@skyler.mavd.honeywell.com says without -lsocket,
7485 # socket/setsockopt and other routines are undefined under SCO ODT
7486 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
7487 # on later versions), says simon@lia.di.epfl.ch: it contains
7488 # gethostby* variants that don't use the nameserver (or something).
7489 # -lsocket must be given before -lnsl if both are needed.
7490 # We assume that if connect needs -lnsl, so does gethostbyname.
7491 echo $ac_n "checking for connect""... $ac_c" 1>&6
f49f2b0c 7492echo "configure:7493: checking for connect" >&5
ab9b9eab
VZ
7493if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
7494 echo $ac_n "(cached) $ac_c" 1>&6
7495else
7496 cat > conftest.$ac_ext <<EOF
f49f2b0c 7497#line 7498 "configure"
ab9b9eab
VZ
7498#include "confdefs.h"
7499/* System header to define __stub macros and hopefully few prototypes,
7500 which can conflict with char connect(); below. */
7501#include <assert.h>
7502/* Override any gcc2 internal prototype to avoid an error. */
7503/* We use char because int might match the return type of a gcc2
7504 builtin and then its argument prototype would still apply. */
7505char connect();
69ffe1d2 7506char (*f)();
ab9b9eab
VZ
7507
7508int main() {
7509
7510/* The GNU C library defines this for functions which it implements
7511 to always fail with ENOSYS. Some functions are actually named
7512 something starting with __ and the normal name is an alias. */
7513#if defined (__stub_connect) || defined (__stub___connect)
7514choke me
7515#else
69ffe1d2 7516f = connect;
ab9b9eab
VZ
7517#endif
7518
7519; return 0; }
7520EOF
f49f2b0c 7521if { (eval echo configure:7522: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
7522 rm -rf conftest*
7523 eval "ac_cv_func_connect=yes"
7524else
7525 echo "configure: failed program was:" >&5
7526 cat conftest.$ac_ext >&5
7527 rm -rf conftest*
7528 eval "ac_cv_func_connect=no"
7529fi
7530rm -f conftest*
7531fi
7532
7533if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
7534 echo "$ac_t""yes" 1>&6
7535 :
7536else
7537 echo "$ac_t""no" 1>&6
7538fi
7539
7540 if test $ac_cv_func_connect = no; then
7541 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
f49f2b0c 7542echo "configure:7543: checking for connect in -lsocket" >&5
ab9b9eab
VZ
7543ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
7544if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7545 echo $ac_n "(cached) $ac_c" 1>&6
7546else
7547 ac_save_LIBS="$LIBS"
7548LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
7549cat > conftest.$ac_ext <<EOF
f49f2b0c 7550#line 7551 "configure"
ab9b9eab
VZ
7551#include "confdefs.h"
7552/* Override any gcc2 internal prototype to avoid an error. */
7553/* We use char because int might match the return type of a gcc2
7554 builtin and then its argument prototype would still apply. */
7555char connect();
7556
7557int main() {
7558connect()
7559; return 0; }
7560EOF
f49f2b0c 7561if { (eval echo configure:7562: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
7562 rm -rf conftest*
7563 eval "ac_cv_lib_$ac_lib_var=yes"
7564else
7565 echo "configure: failed program was:" >&5
7566 cat conftest.$ac_ext >&5
7567 rm -rf conftest*
7568 eval "ac_cv_lib_$ac_lib_var=no"
7569fi
7570rm -f conftest*
7571LIBS="$ac_save_LIBS"
7572
7573fi
7574if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7575 echo "$ac_t""yes" 1>&6
7576 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
7577else
7578 echo "$ac_t""no" 1>&6
7579fi
7580
7581 fi
7582
7583 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
7584 echo $ac_n "checking for remove""... $ac_c" 1>&6
f49f2b0c 7585echo "configure:7586: checking for remove" >&5
ab9b9eab
VZ
7586if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
7587 echo $ac_n "(cached) $ac_c" 1>&6
7588else
7589 cat > conftest.$ac_ext <<EOF
f49f2b0c 7590#line 7591 "configure"
ab9b9eab
VZ
7591#include "confdefs.h"
7592/* System header to define __stub macros and hopefully few prototypes,
7593 which can conflict with char remove(); below. */
7594#include <assert.h>
7595/* Override any gcc2 internal prototype to avoid an error. */
7596/* We use char because int might match the return type of a gcc2
7597 builtin and then its argument prototype would still apply. */
7598char remove();
69ffe1d2 7599char (*f)();
ab9b9eab
VZ
7600
7601int main() {
7602
7603/* The GNU C library defines this for functions which it implements
7604 to always fail with ENOSYS. Some functions are actually named
7605 something starting with __ and the normal name is an alias. */
7606#if defined (__stub_remove) || defined (__stub___remove)
7607choke me
7608#else
69ffe1d2 7609f = remove;
ab9b9eab
VZ
7610#endif
7611
7612; return 0; }
7613EOF
f49f2b0c 7614if { (eval echo configure:7615: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
7615 rm -rf conftest*
7616 eval "ac_cv_func_remove=yes"
7617else
7618 echo "configure: failed program was:" >&5
7619 cat conftest.$ac_ext >&5
7620 rm -rf conftest*
7621 eval "ac_cv_func_remove=no"
7622fi
7623rm -f conftest*
7624fi
7625
7626if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
7627 echo "$ac_t""yes" 1>&6
7628 :
7629else
7630 echo "$ac_t""no" 1>&6
7631fi
7632
7633 if test $ac_cv_func_remove = no; then
7634 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
f49f2b0c 7635echo "configure:7636: checking for remove in -lposix" >&5
ab9b9eab
VZ
7636ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
7637if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7638 echo $ac_n "(cached) $ac_c" 1>&6
7639else
7640 ac_save_LIBS="$LIBS"
7641LIBS="-lposix $LIBS"
7642cat > conftest.$ac_ext <<EOF
f49f2b0c 7643#line 7644 "configure"
ab9b9eab
VZ
7644#include "confdefs.h"
7645/* Override any gcc2 internal prototype to avoid an error. */
7646/* We use char because int might match the return type of a gcc2
7647 builtin and then its argument prototype would still apply. */
7648char remove();
7649
7650int main() {
7651remove()
7652; return 0; }
7653EOF
f49f2b0c 7654if { (eval echo configure:7655: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
7655 rm -rf conftest*
7656 eval "ac_cv_lib_$ac_lib_var=yes"
7657else
7658 echo "configure: failed program was:" >&5
7659 cat conftest.$ac_ext >&5
7660 rm -rf conftest*
7661 eval "ac_cv_lib_$ac_lib_var=no"
7662fi
7663rm -f conftest*
7664LIBS="$ac_save_LIBS"
7665
7666fi
7667if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7668 echo "$ac_t""yes" 1>&6
7669 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
7670else
7671 echo "$ac_t""no" 1>&6
7672fi
7673
7674 fi
7675
7676 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
7677 echo $ac_n "checking for shmat""... $ac_c" 1>&6
f49f2b0c 7678echo "configure:7679: checking for shmat" >&5
ab9b9eab
VZ
7679if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
7680 echo $ac_n "(cached) $ac_c" 1>&6
7681else
7682 cat > conftest.$ac_ext <<EOF
f49f2b0c 7683#line 7684 "configure"
ab9b9eab
VZ
7684#include "confdefs.h"
7685/* System header to define __stub macros and hopefully few prototypes,
7686 which can conflict with char shmat(); below. */
7687#include <assert.h>
7688/* Override any gcc2 internal prototype to avoid an error. */
7689/* We use char because int might match the return type of a gcc2
7690 builtin and then its argument prototype would still apply. */
7691char shmat();
69ffe1d2 7692char (*f)();
ab9b9eab
VZ
7693
7694int main() {
7695
7696/* The GNU C library defines this for functions which it implements
7697 to always fail with ENOSYS. Some functions are actually named
7698 something starting with __ and the normal name is an alias. */
7699#if defined (__stub_shmat) || defined (__stub___shmat)
7700choke me
7701#else
69ffe1d2 7702f = shmat;
ab9b9eab
VZ
7703#endif
7704
7705; return 0; }
7706EOF
f49f2b0c 7707if { (eval echo configure:7708: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
7708 rm -rf conftest*
7709 eval "ac_cv_func_shmat=yes"
7710else
7711 echo "configure: failed program was:" >&5
7712 cat conftest.$ac_ext >&5
7713 rm -rf conftest*
7714 eval "ac_cv_func_shmat=no"
7715fi
7716rm -f conftest*
7717fi
7718
7719if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
7720 echo "$ac_t""yes" 1>&6
7721 :
7722else
7723 echo "$ac_t""no" 1>&6
7724fi
7725
7726 if test $ac_cv_func_shmat = no; then
7727 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
f49f2b0c 7728echo "configure:7729: checking for shmat in -lipc" >&5
ab9b9eab
VZ
7729ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
7730if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7731 echo $ac_n "(cached) $ac_c" 1>&6
7732else
7733 ac_save_LIBS="$LIBS"
7734LIBS="-lipc $LIBS"
7735cat > conftest.$ac_ext <<EOF
f49f2b0c 7736#line 7737 "configure"
ab9b9eab
VZ
7737#include "confdefs.h"
7738/* Override any gcc2 internal prototype to avoid an error. */
7739/* We use char because int might match the return type of a gcc2
7740 builtin and then its argument prototype would still apply. */
7741char shmat();
7742
7743int main() {
7744shmat()
7745; return 0; }
7746EOF
f49f2b0c 7747if { (eval echo configure:7748: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
7748 rm -rf conftest*
7749 eval "ac_cv_lib_$ac_lib_var=yes"
7750else
7751 echo "configure: failed program was:" >&5
7752 cat conftest.$ac_ext >&5
7753 rm -rf conftest*
7754 eval "ac_cv_lib_$ac_lib_var=no"
7755fi
7756rm -f conftest*
7757LIBS="$ac_save_LIBS"
7758
7759fi
7760if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7761 echo "$ac_t""yes" 1>&6
7762 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
7763else
7764 echo "$ac_t""no" 1>&6
7765fi
7766
7767 fi
7768 fi
7769
7770 # Check for libraries that X11R6 Xt/Xaw programs need.
7771 ac_save_LDFLAGS="$LDFLAGS"
7772 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
7773 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
7774 # check for ICE first), but we must link in the order -lSM -lICE or
7775 # we get undefined symbols. So assume we have SM if we have ICE.
7776 # These have to be linked with before -lX11, unlike the other
7777 # libraries we check for below, so use a different variable.
7778 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
7779 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
f49f2b0c 7780echo "configure:7781: checking for IceConnectionNumber in -lICE" >&5
ab9b9eab
VZ
7781ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
7782if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7783 echo $ac_n "(cached) $ac_c" 1>&6
7784else
7785 ac_save_LIBS="$LIBS"
7786LIBS="-lICE $X_EXTRA_LIBS $LIBS"
7787cat > conftest.$ac_ext <<EOF
f49f2b0c 7788#line 7789 "configure"
ab9b9eab
VZ
7789#include "confdefs.h"
7790/* Override any gcc2 internal prototype to avoid an error. */
7791/* We use char because int might match the return type of a gcc2
7792 builtin and then its argument prototype would still apply. */
7793char IceConnectionNumber();
7794
7795int main() {
7796IceConnectionNumber()
7797; return 0; }
7798EOF
f49f2b0c 7799if { (eval echo configure:7800: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
7800 rm -rf conftest*
7801 eval "ac_cv_lib_$ac_lib_var=yes"
7802else
7803 echo "configure: failed program was:" >&5
7804 cat conftest.$ac_ext >&5
7805 rm -rf conftest*
7806 eval "ac_cv_lib_$ac_lib_var=no"
7807fi
7808rm -f conftest*
7809LIBS="$ac_save_LIBS"
7810
7811fi
7812if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7813 echo "$ac_t""yes" 1>&6
7814 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
7815else
7816 echo "$ac_t""no" 1>&6
7817fi
7818
7819 LDFLAGS="$ac_save_LDFLAGS"
7820
7821fi
7822
7823
7824 if test "$no_x" = "yes"; then
7825 { echo "configure: error: X11 not found" 1>&2; exit 1; }
7826 fi
7827
7828 GUI_TK_LIBRARY="$X_LIBS"
7829 TOOLKIT_INCLUDE="$X_CFLAGS"
7830
7831
7832 echo $ac_n "checking for Motif/Lesstif headers""... $ac_c" 1>&6
f49f2b0c 7833echo "configure:7834: checking for Motif/Lesstif headers" >&5
ab9b9eab
VZ
7834
7835ac_find_includes=
7836for ac_dir in $SEARCH_INCLUDE;
7837 do
7838 if test -f "$ac_dir/Xm/Xm.h"; then
7839 ac_find_includes=$ac_dir
7840 break
7841 fi
7842 done
7843
7844 if test "$ac_find_includes" != "" ; then
7845 echo "$ac_t""found $ac_find_includes" 1>&6
7846 else
7847 echo "$ac_t""no" 1>&6
7848 { echo "configure: error: please set CFLAGS to contain the location of Xm/Xm.h" 1>&2; exit 1; }
7849 fi
7850
7851 echo $ac_n "checking for Motif/Lesstif library""... $ac_c" 1>&6
f49f2b0c 7852echo "configure:7853: checking for Motif/Lesstif library" >&5
ab9b9eab
VZ
7853
7854ac_find_libraries=
7855for ac_dir in $SEARCH_LIB;
7856 do
7857 for ac_extension in a so sl; do
7858 if test -f "$ac_dir/libXm.$ac_extension"; then
7859 ac_find_libraries=$ac_dir
7860 break 2
7861 fi
7862 done
7863 done
7864
7865 if test "$ac_find_libraries" != "" ; then
7866
7867 ac_path_to_include=$ac_find_includes
7868 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
7869 result=$?
7870 if test $result = 0; then
7871 ac_path_to_include=""
7872 else
7873 ac_path_to_include="-I$ac_find_includes"
7874 fi
7875
7876
7877 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
7878 result=$?
7879 if test $result = 0; then
7880 ac_path_to_link=""
7881 else
7882 ac_path_to_link="-L$ac_find_libraries"
7883 fi
7884
7885
7886 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $ac_path_to_link"
7887 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE $ac_path_to_include"
7888 echo "$ac_t""found at $ac_find_libraries" 1>&6
7889 else
7890 echo "$ac_t""no" 1>&6
7891 { echo "configure: error: please set LDFLAGS to contain the location of libXm" 1>&2; exit 1; }
7892 fi
7893
7894 echo $ac_n "checking for Xt library""... $ac_c" 1>&6
f49f2b0c 7895echo "configure:7896: checking for Xt library" >&5
ab9b9eab
VZ
7896
7897ac_find_libraries=
7898for ac_dir in $SEARCH_LIB;
7899 do
7900 for ac_extension in a so sl; do
7901 if test -f "$ac_dir/libXt.$ac_extension"; then
7902 ac_find_libraries=$ac_dir
7903 break 2
7904 fi
7905 done
7906 done
7907
7908 if test "$ac_find_libraries" != "" ; then
7909
7910 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
7911 result=$?
7912 if test $result = 0; then
7913 ac_path_to_link=""
7914 else
7915 ac_path_to_link="-L$ac_find_libraries"
7916 fi
7917
7918 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $ac_path_to_link"
7919 echo "$ac_t""found at $ac_find_libraries" 1>&6
7920 else
7921 echo "$ac_t""no" 1>&6
7922 { echo "configure: error: please set LDFLAGS to contain the location of libXt" 1>&2; exit 1; }
7923 fi
7924
7925 XPM_LINK=""
7926 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
f49f2b0c 7927echo "configure:7928: checking for Xpm library" >&5
ab9b9eab
VZ
7928
7929ac_find_libraries=
7930for ac_dir in $SEARCH_LIB;
7931 do
7932 for ac_extension in a so sl; do
7933 if test -f "$ac_dir/libXpm.$ac_extension"; then
7934 ac_find_libraries=$ac_dir
7935 break 2
7936 fi
7937 done
7938 done
7939
7940 if test "$ac_find_libraries" != "" ; then
7941
7942 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
7943 result=$?
7944 if test $result = 0; then
7945 ac_path_to_link=""
7946 else
7947 ac_path_to_link="-L$ac_find_libraries"
7948 fi
7949
7950 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $ac_path_to_link"
7951 XPM_LINK="-lXpm "
7952 cat >> confdefs.h <<\EOF
7953#define wxHAVE_LIB_XPM 1
7954EOF
7955
7956 echo "$ac_t""found at $ac_find_libraries" 1>&6
7957 else
7958 echo "$ac_t""no" 1>&6
7959 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
7960 fi
7961
7962 GUI_TK_LINK="-lXm $XPM_LINK -lXmu -lXext -lXt -lX11 -lm"
7963 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $GUI_TK_LINK"
7964 TOOLKIT=MOTIF
7965
7966 GUIHEADERS="\$(MOTIF_HEADERS)"
7967 GUIOBJS="\$(MOTIF_GUIOBJS)"
7968 COMMONOBJS="\$(MOTIF_COMMONOBJS)"
788deba1
VZ
7969 GENERICOBJS="\$(MOTIF_GENERICOBJS)"
7970 GUIDEPS="\$(MOTIF_GUIDEPS)"
7971 COMMONDEPS="\$(MOTIF_COMMONDEPS)"
10f2d63a
VZ
7972 GENERICDEPS="\$(MOTIF_GENERICDEPS)"
7973 UNIXOBJS="\$(UNIX_OBJS)"
7974 GUIDIST=MOTIF_DIST
7975fi
7976
7977TOOLKIT_DIR=`echo ${TOOLKIT} | tr "A-Z" "a-z"`
7978
7979TOOLKIT_DEF="-D__WX${TOOLKIT}__"
7980
7981WX_LIBRARY="wx_${TOOLKIT_DIR}"
7982
7983 ALL_OBJECTS="\$(GUIOBJS) \$(COMMONOBJS) \$(GENERICOBJS) \$(UNIXOBJS) \$(HTMLOBJS) \$(JPEGOBJS) \$(PNGOBJS) \$(ZLIBOBJS) \$(IODBCOBJS)"
7984 ALL_DEPFILES="\$(GUIDEPS) \$(COMMONDEPS) \$(GENERICDEPS) \$(UNIXDEPS) \$(HTMLDEPS)"
7985 ALL_HEADERS="\$(GUIHEADERS) \$(HTML_HEADERS) \$(UNIX_HEADERS) \$(PROTOCOL_HEADERS) \$(GENERIC_HEADERS) \$(WX_HEADERS)"
7986else
7987
7988 ALL_OBJECTS="\$(BASE_OBJS)"
7989 ALL_DEPFILES="\${BASE_DEPS}"
7990 ALL_HEADERS="\${BASE_HEADERS}"
7991
7992 WX_LIBRARY="wxbase"
7993fi
7994
7995WX_LIBRARY_NAME="lib${WX_LIBRARY}.la"
7996
7997WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a"
7998
7999WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}-${WX_RELEASE}.so.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
8000
8001WX_LIBRARY_LINK1="lib${WX_LIBRARY}-${WX_RELEASE}.so.${WX_CURRENT}"
8002WX_LIBRARY_LINK2="lib${WX_LIBRARY}-${WX_RELEASE}.so"
8003WX_LIBRARY_LINK3="lib${WX_LIBRARY}.so"
8004
8005SHARED_LD=
8006PIC_FLAG=
8007WX_ALL=
8008WX_ALL_INSTALLED=
8009
8010if test "$wxUSE_SHARED" = "yes"; then
8011 case "${host}" in
8012 *-hp-hpux* )
8013 if test "$GCC" = yes ; then
69ffe1d2 8014 SHARED_LD="${CC} -shared -fPIC -o"
10f2d63a
VZ
8015 PIC_FLAG="-fPIC"
8016 else
8017 SHARED_LD="${CXX} -b -o"
8018 PIC_FLAG="+Z"
8019 fi
8020 WX_LIBRARY_NAME_SHARED="libwx_${TOOLKIT_DIR}.sl"
8021 WX_ALL=${WX_LIBRARY_NAME_SHARED}
8022 ;;
8023 *-*-linux* )
8024 SHARED_LD="${CC} -shared -o"
8025 PIC_FLAG="-fPIC"
8026 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
8027 WX_ALL="CREATE_LINKS"
8028 ;;
8029 *-*-irix5* | *-*-irix6* )
8030 if test "$GCC" = yes ; then
8031 SHARED_LD="${CC} -shared -o"
8032 PIC_FLAG="-fPIC"
8033 else
8034 SHARED_LD="${CXX} -shared -o"
8035 fi
8036 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
8037 WX_ALL="CREATE_LINKS"
8038 ;;
8039 *-*-solaris2* )
8040 if test "$GCC" = yes ; then
8041 SHARED_LD="${CC} -shared -o"
8042 PIC_FLAG="-fPIC"
8043 else
8044 SHARED_LD="${CXX} -G -o"
8045 PIC_FLAG="-KPIC"
8046 fi
8047 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
8048 WX_ALL="CREATE_LINKS"
8049 ;;
8050 *-*-sunos4* )
8051 SHARED_LD="${CC} -shared -o"
8052 PIC_FLAG="-fPIC"
8053 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
8054 WX_ALL="CREATE_LINKS"
8055 ;;
8056 *-*-freebsd* | *-*-netbsd*)
8057 SHARED_LD="${CC} -shared -o"
8058 PIC_FLAG="-fPIC"
8059 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
8060 WX_ALL="CREATE_LINKS"
8061 ;;
8062 *-*-osf* )
8063 SHARED_LD="${CXX} -shared -o"
8064 PIC_FLAG="-fPIC"
8065 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
8066 WX_ALL="CREATE_LINKS"
8067 ;;
8068 *-*-dgux5* )
8069 SHARED_LD="${CXX} -shared -o"
8070 PIC_FLAG="-fPIC"
8071 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
8072 WX_ALL="CREATE_LINKS"
8073 ;;
8074 *-*-sysv5* )
8075 SHARED_LD="${CC} -shared -o"
8076 PIC_FLAG="-fPIC"
8077 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
8078 WX_ALL="CREATE_LINKS"
8079 ;;
8080 *-*-aix* )
8081 SHARED_LD="/usr/lpp/xlC/bin/makeC++SharedLib -p 0 -o"
8082 WX_ALL=${WX_LIBRARY_NAME_SHARED}
8083 ;;
8084 *-*-cygwin32* )
8085 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
8086 WX_ALL="${WX_LIBRARY_NAME_STATIC}"
8087 ;;
8088 *-*-mingw32* )
8089 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
8090 WX_ALL="${WX_LIBRARY_NAME_STATIC}"
8091 ;;
8092 *-pc-os2_emx )
8093 ;;
8094 *)
8095 { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; }
8096 esac
8097
8098 if test "x$WX_TARGET_LIBRARY" = "x"; then
8099 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}"
8100 fi
8101else
8102 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
8103 WX_ALL="${WX_LIBRARY_NAME_STATIC}"
8104fi
8105
8106
8107for ac_hdr in strings.h
8108do
8109ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8110echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
f49f2b0c 8111echo "configure:8112: checking for $ac_hdr" >&5
10f2d63a
VZ
8112if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8113 echo $ac_n "(cached) $ac_c" 1>&6
8114else
8115 cat > conftest.$ac_ext <<EOF
f49f2b0c 8116#line 8117 "configure"
10f2d63a
VZ
8117#include "confdefs.h"
8118#include <$ac_hdr>
8119EOF
8120ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
f49f2b0c 8121{ (eval echo configure:8122: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
8122ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8123if test -z "$ac_err"; then
8124 rm -rf conftest*
8125 eval "ac_cv_header_$ac_safe=yes"
8126else
8127 echo "$ac_err" >&5
8128 echo "configure: failed program was:" >&5
8129 cat conftest.$ac_ext >&5
8130 rm -rf conftest*
8131 eval "ac_cv_header_$ac_safe=no"
8132fi
8133rm -f conftest*
8134fi
8135if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8136 echo "$ac_t""yes" 1>&6
8137 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8138 cat >> confdefs.h <<EOF
8139#define $ac_tr_hdr 1
8140EOF
8141
8142else
8143 echo "$ac_t""no" 1>&6
8144fi
8145done
8146
8147for ac_hdr in unistd.h
8148do
8149ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8150echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
f49f2b0c 8151echo "configure:8152: checking for $ac_hdr" >&5
10f2d63a
VZ
8152if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8153 echo $ac_n "(cached) $ac_c" 1>&6
8154else
8155 cat > conftest.$ac_ext <<EOF
f49f2b0c 8156#line 8157 "configure"
10f2d63a
VZ
8157#include "confdefs.h"
8158#include <$ac_hdr>
8159EOF
8160ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
f49f2b0c 8161{ (eval echo configure:8162: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
8162ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8163if test -z "$ac_err"; then
8164 rm -rf conftest*
8165 eval "ac_cv_header_$ac_safe=yes"
8166else
8167 echo "$ac_err" >&5
8168 echo "configure: failed program was:" >&5
8169 cat conftest.$ac_ext >&5
8170 rm -rf conftest*
8171 eval "ac_cv_header_$ac_safe=no"
8172fi
8173rm -f conftest*
8174fi
8175if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8176 echo "$ac_t""yes" 1>&6
8177 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8178 cat >> confdefs.h <<EOF
8179#define $ac_tr_hdr 1
8180EOF
8181
8182else
8183 echo "$ac_t""no" 1>&6
8184fi
8185done
8186
8187for ac_hdr in wchar.h
8188do
8189ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8190echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
f49f2b0c 8191echo "configure:8192: checking for $ac_hdr" >&5
10f2d63a
VZ
8192if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8193 echo $ac_n "(cached) $ac_c" 1>&6
8194else
8195 cat > conftest.$ac_ext <<EOF
f49f2b0c 8196#line 8197 "configure"
10f2d63a
VZ
8197#include "confdefs.h"
8198#include <$ac_hdr>
8199EOF
8200ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
f49f2b0c 8201{ (eval echo configure:8202: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
8202ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8203if test -z "$ac_err"; then
8204 rm -rf conftest*
8205 eval "ac_cv_header_$ac_safe=yes"
8206else
8207 echo "$ac_err" >&5
8208 echo "configure: failed program was:" >&5
8209 cat conftest.$ac_ext >&5
8210 rm -rf conftest*
8211 eval "ac_cv_header_$ac_safe=no"
8212fi
8213rm -f conftest*
8214fi
8215if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8216 echo "$ac_t""yes" 1>&6
8217 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8218 cat >> confdefs.h <<EOF
8219#define $ac_tr_hdr 1
8220EOF
8221
8222else
8223 echo "$ac_t""no" 1>&6
8224fi
8225done
8226
8227for ac_hdr in wcstr.h
8228do
8229ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8230echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
f49f2b0c 8231echo "configure:8232: checking for $ac_hdr" >&5
10f2d63a
VZ
8232if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8233 echo $ac_n "(cached) $ac_c" 1>&6
8234else
8235 cat > conftest.$ac_ext <<EOF
f49f2b0c 8236#line 8237 "configure"
10f2d63a
VZ
8237#include "confdefs.h"
8238#include <$ac_hdr>
8239EOF
8240ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
f49f2b0c 8241{ (eval echo configure:8242: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
8242ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8243if test -z "$ac_err"; then
8244 rm -rf conftest*
8245 eval "ac_cv_header_$ac_safe=yes"
8246else
8247 echo "$ac_err" >&5
8248 echo "configure: failed program was:" >&5
8249 cat conftest.$ac_ext >&5
8250 rm -rf conftest*
8251 eval "ac_cv_header_$ac_safe=no"
8252fi
8253rm -f conftest*
8254fi
8255if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8256 echo "$ac_t""yes" 1>&6
8257 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8258 cat >> confdefs.h <<EOF
8259#define $ac_tr_hdr 1
8260EOF
8261
8262else
8263 echo "$ac_t""no" 1>&6
8264fi
8265done
8266
8267for ac_hdr in fnmatch.h
8268do
8269ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8270echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
f49f2b0c 8271echo "configure:8272: checking for $ac_hdr" >&5
10f2d63a
VZ
8272if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8273 echo $ac_n "(cached) $ac_c" 1>&6
8274else
8275 cat > conftest.$ac_ext <<EOF
f49f2b0c 8276#line 8277 "configure"
10f2d63a
VZ
8277#include "confdefs.h"
8278#include <$ac_hdr>
8279EOF
8280ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
f49f2b0c 8281{ (eval echo configure:8282: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
8282ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8283if test -z "$ac_err"; then
8284 rm -rf conftest*
8285 eval "ac_cv_header_$ac_safe=yes"
8286else
8287 echo "$ac_err" >&5
8288 echo "configure: failed program was:" >&5
8289 cat conftest.$ac_ext >&5
8290 rm -rf conftest*
8291 eval "ac_cv_header_$ac_safe=no"
8292fi
8293rm -f conftest*
8294fi
8295if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8296 echo "$ac_t""yes" 1>&6
8297 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8298 cat >> confdefs.h <<EOF
8299#define $ac_tr_hdr 1
8300EOF
8301
8302else
8303 echo "$ac_t""no" 1>&6
8304fi
8305done
8306
8307
8308if test "$wxUSE_GUI" = "yes"; then
8309 for ac_hdr in X11/XKBlib.h
8310do
8311ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8312echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
f49f2b0c 8313echo "configure:8314: checking for $ac_hdr" >&5
10f2d63a
VZ
8314if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8315 echo $ac_n "(cached) $ac_c" 1>&6
8316else
8317 cat > conftest.$ac_ext <<EOF
f49f2b0c 8318#line 8319 "configure"
10f2d63a
VZ
8319#include "confdefs.h"
8320#include <$ac_hdr>
8321EOF
8322ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
f49f2b0c 8323{ (eval echo configure:8324: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
8324ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8325if test -z "$ac_err"; then
8326 rm -rf conftest*
8327 eval "ac_cv_header_$ac_safe=yes"
8328else
8329 echo "$ac_err" >&5
8330 echo "configure: failed program was:" >&5
8331 cat conftest.$ac_ext >&5
8332 rm -rf conftest*
8333 eval "ac_cv_header_$ac_safe=no"
8334fi
8335rm -f conftest*
8336fi
8337if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8338 echo "$ac_t""yes" 1>&6
8339 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8340 cat >> confdefs.h <<EOF
8341#define $ac_tr_hdr 1
8342EOF
8343
8344else
8345 echo "$ac_t""no" 1>&6
8346fi
8347done
8348
8349fi
8350
8351
8352echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
f49f2b0c 8353echo "configure:8354: checking for ANSI C header files" >&5
10f2d63a
VZ
8354if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
8355 echo $ac_n "(cached) $ac_c" 1>&6
8356else
8357 cat > conftest.$ac_ext <<EOF
f49f2b0c 8358#line 8359 "configure"
10f2d63a
VZ
8359#include "confdefs.h"
8360#include <stdlib.h>
8361#include <stdarg.h>
8362#include <string.h>
8363#include <float.h>
8364EOF
8365ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
f49f2b0c 8366{ (eval echo configure:8367: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
8367ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8368if test -z "$ac_err"; then
8369 rm -rf conftest*
8370 ac_cv_header_stdc=yes
8371else
8372 echo "$ac_err" >&5
8373 echo "configure: failed program was:" >&5
8374 cat conftest.$ac_ext >&5
8375 rm -rf conftest*
8376 ac_cv_header_stdc=no
8377fi
8378rm -f conftest*
8379
8380if test $ac_cv_header_stdc = yes; then
8381 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8382cat > conftest.$ac_ext <<EOF
f49f2b0c 8383#line 8384 "configure"
10f2d63a
VZ
8384#include "confdefs.h"
8385#include <string.h>
8386EOF
8387if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8388 egrep "memchr" >/dev/null 2>&1; then
8389 :
8390else
8391 rm -rf conftest*
8392 ac_cv_header_stdc=no
8393fi
8394rm -f conftest*
8395
8396fi
8397
8398if test $ac_cv_header_stdc = yes; then
8399 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8400cat > conftest.$ac_ext <<EOF
f49f2b0c 8401#line 8402 "configure"
10f2d63a
VZ
8402#include "confdefs.h"
8403#include <stdlib.h>
8404EOF
8405if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8406 egrep "free" >/dev/null 2>&1; then
8407 :
8408else
8409 rm -rf conftest*
8410 ac_cv_header_stdc=no
8411fi
8412rm -f conftest*
8413
8414fi
8415
8416if test $ac_cv_header_stdc = yes; then
8417 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8418if test "$cross_compiling" = yes; then
8419 :
8420else
8421 cat > conftest.$ac_ext <<EOF
f49f2b0c 8422#line 8423 "configure"
10f2d63a
VZ
8423#include "confdefs.h"
8424#include <ctype.h>
8425#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8426#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8427#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8428int main () { int i; for (i = 0; i < 256; i++)
8429if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
8430exit (0); }
8431
8432EOF
f49f2b0c 8433if { (eval echo configure:8434: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10f2d63a
VZ
8434then
8435 :
8436else
8437 echo "configure: failed program was:" >&5
8438 cat conftest.$ac_ext >&5
8439 rm -fr conftest*
8440 ac_cv_header_stdc=no
8441fi
8442rm -fr conftest*
8443fi
8444
8445fi
8446fi
8447
8448echo "$ac_t""$ac_cv_header_stdc" 1>&6
8449if test $ac_cv_header_stdc = yes; then
8450 cat >> confdefs.h <<\EOF
8451#define STDC_HEADERS 1
8452EOF
8453
8454fi
8455
8456echo $ac_n "checking for mode_t""... $ac_c" 1>&6
f49f2b0c 8457echo "configure:8458: checking for mode_t" >&5
10f2d63a
VZ
8458if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
8459 echo $ac_n "(cached) $ac_c" 1>&6
8460else
8461 cat > conftest.$ac_ext <<EOF
f49f2b0c 8462#line 8463 "configure"
10f2d63a
VZ
8463#include "confdefs.h"
8464#include <sys/types.h>
8465#if STDC_HEADERS
8466#include <stdlib.h>
8467#include <stddef.h>
8468#endif
8469EOF
8470if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8471 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
8472 rm -rf conftest*
8473 ac_cv_type_mode_t=yes
8474else
8475 rm -rf conftest*
8476 ac_cv_type_mode_t=no
8477fi
8478rm -f conftest*
8479
8480fi
8481echo "$ac_t""$ac_cv_type_mode_t" 1>&6
8482if test $ac_cv_type_mode_t = no; then
8483 cat >> confdefs.h <<\EOF
8484#define mode_t int
8485EOF
8486
8487fi
8488
8489echo $ac_n "checking for off_t""... $ac_c" 1>&6
f49f2b0c 8490echo "configure:8491: checking for off_t" >&5
10f2d63a
VZ
8491if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
8492 echo $ac_n "(cached) $ac_c" 1>&6
8493else
8494 cat > conftest.$ac_ext <<EOF
f49f2b0c 8495#line 8496 "configure"
10f2d63a
VZ
8496#include "confdefs.h"
8497#include <sys/types.h>
8498#if STDC_HEADERS
8499#include <stdlib.h>
8500#include <stddef.h>
8501#endif
8502EOF
8503if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8504 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
8505 rm -rf conftest*
8506 ac_cv_type_off_t=yes
8507else
8508 rm -rf conftest*
8509 ac_cv_type_off_t=no
8510fi
8511rm -f conftest*
8512
8513fi
8514echo "$ac_t""$ac_cv_type_off_t" 1>&6
8515if test $ac_cv_type_off_t = no; then
8516 cat >> confdefs.h <<\EOF
8517#define off_t long
8518EOF
8519
8520fi
8521
8522echo $ac_n "checking for pid_t""... $ac_c" 1>&6
f49f2b0c 8523echo "configure:8524: checking for pid_t" >&5
10f2d63a
VZ
8524if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
8525 echo $ac_n "(cached) $ac_c" 1>&6
8526else
8527 cat > conftest.$ac_ext <<EOF
f49f2b0c 8528#line 8529 "configure"
10f2d63a
VZ
8529#include "confdefs.h"
8530#include <sys/types.h>
8531#if STDC_HEADERS
8532#include <stdlib.h>
8533#include <stddef.h>
8534#endif
8535EOF
8536if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8537 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
8538 rm -rf conftest*
8539 ac_cv_type_pid_t=yes
8540else
8541 rm -rf conftest*
8542 ac_cv_type_pid_t=no
8543fi
8544rm -f conftest*
8545
8546fi
8547echo "$ac_t""$ac_cv_type_pid_t" 1>&6
8548if test $ac_cv_type_pid_t = no; then
8549 cat >> confdefs.h <<\EOF
8550#define pid_t int
8551EOF
8552
8553fi
8554
8555echo $ac_n "checking for size_t""... $ac_c" 1>&6
f49f2b0c 8556echo "configure:8557: checking for size_t" >&5
10f2d63a
VZ
8557if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
8558 echo $ac_n "(cached) $ac_c" 1>&6
8559else
8560 cat > conftest.$ac_ext <<EOF
f49f2b0c 8561#line 8562 "configure"
10f2d63a
VZ
8562#include "confdefs.h"
8563#include <sys/types.h>
8564#if STDC_HEADERS
8565#include <stdlib.h>
8566#include <stddef.h>
8567#endif
8568EOF
8569if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8570 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
8571 rm -rf conftest*
8572 ac_cv_type_size_t=yes
8573else
8574 rm -rf conftest*
8575 ac_cv_type_size_t=no
8576fi
8577rm -f conftest*
8578
8579fi
8580echo "$ac_t""$ac_cv_type_size_t" 1>&6
8581if test $ac_cv_type_size_t = no; then
8582 cat >> confdefs.h <<\EOF
8583#define size_t unsigned
8584EOF
8585
8586fi
8587
8588echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
f49f2b0c 8589echo "configure:8590: checking for uid_t in sys/types.h" >&5
10f2d63a
VZ
8590if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
8591 echo $ac_n "(cached) $ac_c" 1>&6
8592else
8593 cat > conftest.$ac_ext <<EOF
f49f2b0c 8594#line 8595 "configure"
10f2d63a
VZ
8595#include "confdefs.h"
8596#include <sys/types.h>
8597EOF
8598if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8599 egrep "uid_t" >/dev/null 2>&1; then
8600 rm -rf conftest*
8601 ac_cv_type_uid_t=yes
8602else
8603 rm -rf conftest*
8604 ac_cv_type_uid_t=no
8605fi
8606rm -f conftest*
8607
8608fi
8609
8610echo "$ac_t""$ac_cv_type_uid_t" 1>&6
8611if test $ac_cv_type_uid_t = no; then
8612 cat >> confdefs.h <<\EOF
8613#define uid_t int
8614EOF
8615
8616 cat >> confdefs.h <<\EOF
8617#define gid_t int
8618EOF
8619
8620fi
8621
8622
8623
8624
8625echo $ac_n "checking for working const""... $ac_c" 1>&6
f49f2b0c 8626echo "configure:8627: checking for working const" >&5
10f2d63a
VZ
8627if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
8628 echo $ac_n "(cached) $ac_c" 1>&6
8629else
8630 cat > conftest.$ac_ext <<EOF
f49f2b0c 8631#line 8632 "configure"
10f2d63a
VZ
8632#include "confdefs.h"
8633
8634int main() {
8635
8636/* Ultrix mips cc rejects this. */
8637typedef int charset[2]; const charset x;
8638/* SunOS 4.1.1 cc rejects this. */
8639char const *const *ccp;
8640char **p;
8641/* NEC SVR4.0.2 mips cc rejects this. */
8642struct point {int x, y;};
8643static struct point const zero = {0,0};
8644/* AIX XL C 1.02.0.0 rejects this.
8645 It does not let you subtract one const X* pointer from another in an arm
8646 of an if-expression whose if-part is not a constant expression */
8647const char *g = "string";
8648ccp = &g + (g ? g-g : 0);
8649/* HPUX 7.0 cc rejects these. */
8650++ccp;
8651p = (char**) ccp;
8652ccp = (char const *const *) p;
8653{ /* SCO 3.2v4 cc rejects this. */
8654 char *t;
8655 char const *s = 0 ? (char *) 0 : (char const *) 0;
8656
8657 *t++ = 0;
8658}
8659{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8660 int x[] = {25, 17};
8661 const int *foo = &x[0];
8662 ++foo;
8663}
8664{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8665 typedef const int *iptr;
8666 iptr p = 0;
8667 ++p;
8668}
8669{ /* AIX XL C 1.02.0.0 rejects this saying
8670 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8671 struct s { int j; const int *ap[3]; };
8672 struct s *b; b->j = 5;
8673}
8674{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8675 const int foo = 10;
8676}
8677
8678; return 0; }
8679EOF
f49f2b0c 8680if { (eval echo configure:8681: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10f2d63a
VZ
8681 rm -rf conftest*
8682 ac_cv_c_const=yes
8683else
8684 echo "configure: failed program was:" >&5
8685 cat conftest.$ac_ext >&5
8686 rm -rf conftest*
8687 ac_cv_c_const=no
8688fi
8689rm -f conftest*
8690fi
8691
8692echo "$ac_t""$ac_cv_c_const" 1>&6
8693if test $ac_cv_c_const = no; then
8694 cat >> confdefs.h <<\EOF
8695#define const
8696EOF
8697
8698fi
8699
8700echo $ac_n "checking for inline""... $ac_c" 1>&6
f49f2b0c 8701echo "configure:8702: checking for inline" >&5
10f2d63a
VZ
8702if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
8703 echo $ac_n "(cached) $ac_c" 1>&6
8704else
8705 ac_cv_c_inline=no
8706for ac_kw in inline __inline__ __inline; do
8707 cat > conftest.$ac_ext <<EOF
f49f2b0c 8708#line 8709 "configure"
10f2d63a
VZ
8709#include "confdefs.h"
8710
8711int main() {
8712} $ac_kw foo() {
8713; return 0; }
8714EOF
f49f2b0c 8715if { (eval echo configure:8716: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10f2d63a
VZ
8716 rm -rf conftest*
8717 ac_cv_c_inline=$ac_kw; break
8718else
8719 echo "configure: failed program was:" >&5
8720 cat conftest.$ac_ext >&5
8721fi
8722rm -f conftest*
8723done
8724
8725fi
8726
8727echo "$ac_t""$ac_cv_c_inline" 1>&6
8728case "$ac_cv_c_inline" in
8729 inline | yes) ;;
8730 no) cat >> confdefs.h <<\EOF
8731#define inline
8732EOF
8733 ;;
8734 *) cat >> confdefs.h <<EOF
8735#define inline $ac_cv_c_inline
8736EOF
8737 ;;
8738esac
8739
8740
8741echo $ac_n "checking size of char""... $ac_c" 1>&6
f49f2b0c 8742echo "configure:8743: checking size of char" >&5
10f2d63a
VZ
8743if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then
8744 echo $ac_n "(cached) $ac_c" 1>&6
8745else
8746 if test "$cross_compiling" = yes; then
8747 ac_cv_sizeof_char=1
8748else
8749 cat > conftest.$ac_ext <<EOF
f49f2b0c 8750#line 8751 "configure"
10f2d63a
VZ
8751#include "confdefs.h"
8752#include <stdio.h>
8753main()
8754{
8755 FILE *f=fopen("conftestval", "w");
8756 if (!f) exit(1);
8757 fprintf(f, "%d\n", sizeof(char));
8758 exit(0);
8759}
8760EOF
f49f2b0c 8761if { (eval echo configure:8762: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10f2d63a
VZ
8762then
8763 ac_cv_sizeof_char=`cat conftestval`
8764else
8765 echo "configure: failed program was:" >&5
8766 cat conftest.$ac_ext >&5
8767 rm -fr conftest*
8768 ac_cv_sizeof_char=0
8769fi
8770rm -fr conftest*
8771fi
8772
8773fi
8774echo "$ac_t""$ac_cv_sizeof_char" 1>&6
8775cat >> confdefs.h <<EOF
8776#define SIZEOF_CHAR $ac_cv_sizeof_char
8777EOF
8778
8779
8780echo $ac_n "checking size of short""... $ac_c" 1>&6
f49f2b0c 8781echo "configure:8782: checking size of short" >&5
10f2d63a
VZ
8782if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
8783 echo $ac_n "(cached) $ac_c" 1>&6
8784else
8785 if test "$cross_compiling" = yes; then
8786 ac_cv_sizeof_short=2
8787else
8788 cat > conftest.$ac_ext <<EOF
f49f2b0c 8789#line 8790 "configure"
10f2d63a
VZ
8790#include "confdefs.h"
8791#include <stdio.h>
8792main()
8793{
8794 FILE *f=fopen("conftestval", "w");
8795 if (!f) exit(1);
8796 fprintf(f, "%d\n", sizeof(short));
8797 exit(0);
8798}
8799EOF
f49f2b0c 8800if { (eval echo configure:8801: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10f2d63a
VZ
8801then
8802 ac_cv_sizeof_short=`cat conftestval`
8803else
8804 echo "configure: failed program was:" >&5
8805 cat conftest.$ac_ext >&5
8806 rm -fr conftest*
8807 ac_cv_sizeof_short=0
8808fi
8809rm -fr conftest*
8810fi
8811
8812fi
8813echo "$ac_t""$ac_cv_sizeof_short" 1>&6
8814cat >> confdefs.h <<EOF
8815#define SIZEOF_SHORT $ac_cv_sizeof_short
8816EOF
8817
8818
8819echo $ac_n "checking size of int *""... $ac_c" 1>&6
f49f2b0c 8820echo "configure:8821: checking size of int *" >&5
10f2d63a
VZ
8821if eval "test \"`echo '$''{'ac_cv_sizeof_int_p'+set}'`\" = set"; then
8822 echo $ac_n "(cached) $ac_c" 1>&6
8823else
8824 if test "$cross_compiling" = yes; then
8825 ac_cv_sizeof_int_p=4
8826else
8827 cat > conftest.$ac_ext <<EOF
f49f2b0c 8828#line 8829 "configure"
10f2d63a
VZ
8829#include "confdefs.h"
8830#include <stdio.h>
8831main()
8832{
8833 FILE *f=fopen("conftestval", "w");
8834 if (!f) exit(1);
8835 fprintf(f, "%d\n", sizeof(int *));
8836 exit(0);
8837}
8838EOF
f49f2b0c 8839if { (eval echo configure:8840: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10f2d63a
VZ
8840then
8841 ac_cv_sizeof_int_p=`cat conftestval`
8842else
8843 echo "configure: failed program was:" >&5
8844 cat conftest.$ac_ext >&5
8845 rm -fr conftest*
8846 ac_cv_sizeof_int_p=0
8847fi
8848rm -fr conftest*
8849fi
8850
8851fi
8852echo "$ac_t""$ac_cv_sizeof_int_p" 1>&6
8853cat >> confdefs.h <<EOF
8854#define SIZEOF_INT_P $ac_cv_sizeof_int_p
8855EOF
8856
8857
8858echo $ac_n "checking size of int""... $ac_c" 1>&6
f49f2b0c 8859echo "configure:8860: checking size of int" >&5
10f2d63a
VZ
8860if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
8861 echo $ac_n "(cached) $ac_c" 1>&6
8862else
8863 if test "$cross_compiling" = yes; then
8864 ac_cv_sizeof_int=4
8865else
8866 cat > conftest.$ac_ext <<EOF
f49f2b0c 8867#line 8868 "configure"
10f2d63a
VZ
8868#include "confdefs.h"
8869#include <stdio.h>
8870main()
8871{
8872 FILE *f=fopen("conftestval", "w");
8873 if (!f) exit(1);
8874 fprintf(f, "%d\n", sizeof(int));
8875 exit(0);
8876}
8877EOF
f49f2b0c 8878if { (eval echo configure:8879: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10f2d63a
VZ
8879then
8880 ac_cv_sizeof_int=`cat conftestval`
8881else
8882 echo "configure: failed program was:" >&5
8883 cat conftest.$ac_ext >&5
8884 rm -fr conftest*
8885 ac_cv_sizeof_int=0
8886fi
8887rm -fr conftest*
8888fi
8889
8890fi
8891echo "$ac_t""$ac_cv_sizeof_int" 1>&6
8892cat >> confdefs.h <<EOF
8893#define SIZEOF_INT $ac_cv_sizeof_int
8894EOF
8895
8896
8897echo $ac_n "checking size of long""... $ac_c" 1>&6
f49f2b0c 8898echo "configure:8899: checking size of long" >&5
10f2d63a
VZ
8899if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
8900 echo $ac_n "(cached) $ac_c" 1>&6
8901else
8902 if test "$cross_compiling" = yes; then
8903 ac_cv_sizeof_long=4
8904else
8905 cat > conftest.$ac_ext <<EOF
f49f2b0c 8906#line 8907 "configure"
10f2d63a
VZ
8907#include "confdefs.h"
8908#include <stdio.h>
8909main()
8910{
8911 FILE *f=fopen("conftestval", "w");
8912 if (!f) exit(1);
8913 fprintf(f, "%d\n", sizeof(long));
8914 exit(0);
8915}
8916EOF
f49f2b0c 8917if { (eval echo configure:8918: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10f2d63a
VZ
8918then
8919 ac_cv_sizeof_long=`cat conftestval`
8920else
8921 echo "configure: failed program was:" >&5
8922 cat conftest.$ac_ext >&5
8923 rm -fr conftest*
8924 ac_cv_sizeof_long=0
8925fi
8926rm -fr conftest*
8927fi
8928
8929fi
8930echo "$ac_t""$ac_cv_sizeof_long" 1>&6
8931cat >> confdefs.h <<EOF
8932#define SIZEOF_LONG $ac_cv_sizeof_long
8933EOF
8934
8935
8936echo $ac_n "checking size of long long""... $ac_c" 1>&6
f49f2b0c 8937echo "configure:8938: checking size of long long" >&5
10f2d63a
VZ
8938if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
8939 echo $ac_n "(cached) $ac_c" 1>&6
8940else
8941 if test "$cross_compiling" = yes; then
8942 ac_cv_sizeof_long_long=0
8943else
8944 cat > conftest.$ac_ext <<EOF
f49f2b0c 8945#line 8946 "configure"
10f2d63a
VZ
8946#include "confdefs.h"
8947#include <stdio.h>
8948main()
8949{
8950 FILE *f=fopen("conftestval", "w");
8951 if (!f) exit(1);
8952 fprintf(f, "%d\n", sizeof(long long));
8953 exit(0);
8954}
8955EOF
f49f2b0c 8956if { (eval echo configure:8957: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10f2d63a
VZ
8957then
8958 ac_cv_sizeof_long_long=`cat conftestval`
8959else
8960 echo "configure: failed program was:" >&5
8961 cat conftest.$ac_ext >&5
8962 rm -fr conftest*
8963 ac_cv_sizeof_long_long=0
8964fi
8965rm -fr conftest*
8966fi
8967
8968fi
8969echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
8970cat >> confdefs.h <<EOF
8971#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
8972EOF
8973
8974
8975
8976echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
f49f2b0c 8977echo "configure:8978: checking whether byte ordering is bigendian" >&5
10f2d63a
VZ
8978if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
8979 echo $ac_n "(cached) $ac_c" 1>&6
8980else
8981 ac_cv_c_bigendian=unknown
8982# See if sys/param.h defines the BYTE_ORDER macro.
8983cat > conftest.$ac_ext <<EOF
f49f2b0c 8984#line 8985 "configure"
10f2d63a
VZ
8985#include "confdefs.h"
8986#include <sys/types.h>
8987#include <sys/param.h>
8988int main() {
8989
8990#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
8991 bogus endian macros
8992#endif
8993; return 0; }
8994EOF
f49f2b0c 8995if { (eval echo configure:8996: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10f2d63a
VZ
8996 rm -rf conftest*
8997 # It does; now see whether it defined to BIG_ENDIAN or not.
8998cat > conftest.$ac_ext <<EOF
f49f2b0c 8999#line 9000 "configure"
10f2d63a
VZ
9000#include "confdefs.h"
9001#include <sys/types.h>
9002#include <sys/param.h>
9003int main() {
9004
9005#if BYTE_ORDER != BIG_ENDIAN
9006 not big endian
9007#endif
9008; return 0; }
9009EOF
f49f2b0c 9010if { (eval echo configure:9011: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10f2d63a
VZ
9011 rm -rf conftest*
9012 ac_cv_c_bigendian=yes
9013else
9014 echo "configure: failed program was:" >&5
9015 cat conftest.$ac_ext >&5
9016 rm -rf conftest*
9017 ac_cv_c_bigendian=no
9018fi
9019rm -f conftest*
9020else
9021 echo "configure: failed program was:" >&5
9022 cat conftest.$ac_ext >&5
9023fi
9024rm -f conftest*
9025if test $ac_cv_c_bigendian = unknown; then
9026if test "$cross_compiling" = yes; then
9027 ac_cv_c_bigendian=unknown
9028else
9029 cat > conftest.$ac_ext <<EOF
f49f2b0c 9030#line 9031 "configure"
10f2d63a
VZ
9031#include "confdefs.h"
9032main () {
9033 /* Are we little or big endian? From Harbison&Steele. */
9034 union
9035 {
9036 long l;
9037 char c[sizeof (long)];
9038 } u;
9039 u.l = 1;
9040 exit (u.c[sizeof (long) - 1] == 1);
9041}
9042EOF
f49f2b0c 9043if { (eval echo configure:9044: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10f2d63a
VZ
9044then
9045 ac_cv_c_bigendian=no
9046else
9047 echo "configure: failed program was:" >&5
9048 cat conftest.$ac_ext >&5
9049 rm -fr conftest*
9050 ac_cv_c_bigendian=yes
9051fi
9052rm -fr conftest*
9053fi
9054
9055fi
9056fi
9057
9058echo "$ac_t""$ac_cv_c_bigendian" 1>&6
9059if test $ac_cv_c_bigendian = unknown; then
9060 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
9061fi
9062if test $ac_cv_c_bigendian = yes; then
9063 cat >> confdefs.h <<\EOF
9064#define WORDS_BIGENDIAN 1
9065EOF
9066
9067fi
9068
9069
9070
9071 if test "$cross_compiling" = "yes"; then
9072 cat >> confdefs.h <<\EOF
9073#define wxUSE_IOSTREAMH 1
9074EOF
9075
9076 else
9077
9078 ac_ext=C
9079# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9080ac_cpp='$CXXCPP $CPPFLAGS'
9081ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9082ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9083cross_compiling=$ac_cv_prog_cxx_cross
9084
9085
9086 for ac_hdr in iostream
9087do
9088ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9089echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
f49f2b0c 9090echo "configure:9091: checking for $ac_hdr" >&5
10f2d63a
VZ
9091if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9092 echo $ac_n "(cached) $ac_c" 1>&6
9093else
9094 cat > conftest.$ac_ext <<EOF
f49f2b0c 9095#line 9096 "configure"
10f2d63a
VZ
9096#include "confdefs.h"
9097#include <$ac_hdr>
9098EOF
9099ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
f49f2b0c 9100{ (eval echo configure:9101: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
9101ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9102if test -z "$ac_err"; then
9103 rm -rf conftest*
9104 eval "ac_cv_header_$ac_safe=yes"
9105else
9106 echo "$ac_err" >&5
9107 echo "configure: failed program was:" >&5
9108 cat conftest.$ac_ext >&5
9109 rm -rf conftest*
9110 eval "ac_cv_header_$ac_safe=no"
9111fi
9112rm -f conftest*
9113fi
9114if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9115 echo "$ac_t""yes" 1>&6
9116 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9117 cat >> confdefs.h <<EOF
9118#define $ac_tr_hdr 1
9119EOF
9120
9121else
9122 echo "$ac_t""no" 1>&6
9123fi
9124done
9125
9126
9127 if test "x$HAVE_IOSTREAM" = x ; then
9128 cat >> confdefs.h <<\EOF
9129#define wxUSE_IOSTREAMH 1
9130EOF
9131
9132 else
9133 :
9134 fi
9135
9136 ac_ext=c
9137# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9138ac_cpp='$CPP $CPPFLAGS'
9139ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9140ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9141cross_compiling=$ac_cv_prog_cc_cross
9142
9143 fi
9144
9145
9146
9147 echo $ac_n "checking if C++ compiler supports bool""... $ac_c" 1>&6
f49f2b0c 9148echo "configure:9149: checking if C++ compiler supports bool" >&5
10f2d63a
VZ
9149if eval "test \"`echo '$''{'wx_cv_cpp_bool'+set}'`\" = set"; then
9150 echo $ac_n "(cached) $ac_c" 1>&6
9151else
9152
9153
9154 ac_ext=C
9155# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9156ac_cpp='$CXXCPP $CPPFLAGS'
9157ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9158ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9159cross_compiling=$ac_cv_prog_cxx_cross
9160
9161
9162 cat > conftest.$ac_ext <<EOF
f49f2b0c 9163#line 9164 "configure"
10f2d63a
VZ
9164#include "confdefs.h"
9165
9166
9167int main() {
9168
9169 bool b = true;
9170
9171 return 0;
9172
9173; return 0; }
9174EOF
f49f2b0c 9175if { (eval echo configure:9176: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10f2d63a
VZ
9176 rm -rf conftest*
9177
9178 cat >> confdefs.h <<\EOF
9179#define HAVE_BOOL 1
9180EOF
9181
9182 wx_cv_cpp_bool=yes
9183
9184else
9185 echo "configure: failed program was:" >&5
9186 cat conftest.$ac_ext >&5
9187 rm -rf conftest*
9188
9189 wx_cv_cpp_bool=no
9190
9191
9192fi
9193rm -f conftest*
9194
9195 ac_ext=c
9196# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9197ac_cpp='$CPP $CPPFLAGS'
9198ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9199ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9200cross_compiling=$ac_cv_prog_cc_cross
9201
9202
9203fi
9204
9205echo "$ac_t""$wx_cv_cpp_bool" 1>&6
9206
9207 if test "$wx_cv_cpp_bool" = "yes"; then
9208 cat >> confdefs.h <<\EOF
9209#define HAVE_BOOL 1
9210EOF
9211
9212 fi
9213
9214
9215
10f2d63a 9216echo $ac_n "checking if you need GNU extensions""... $ac_c" 1>&6
f49f2b0c 9217echo "configure:9218: checking if you need GNU extensions" >&5
10f2d63a
VZ
9218if eval "test \"`echo '$''{'wx_cv_gnu_extensions'+set}'`\" = set"; then
9219 echo $ac_n "(cached) $ac_c" 1>&6
9220else
9221
9222 cat > conftest.$ac_ext <<EOF
f49f2b0c 9223#line 9224 "configure"
10f2d63a
VZ
9224#include "confdefs.h"
9225#include <features.h>
9226int main() {
9227
9228
9229#ifndef __GNU_LIBRARY__
9230 Compile error wanted
9231#endif
9232
9233
9234; return 0; }
9235EOF
f49f2b0c 9236if { (eval echo configure:9237: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10f2d63a
VZ
9237 rm -rf conftest*
9238 wx_cv_gnu_extensions=yes
9239else
9240 echo "configure: failed program was:" >&5
9241 cat conftest.$ac_ext >&5
9242 rm -rf conftest*
9243 wx_cv_gnu_extensions=no
9244fi
9245rm -f conftest*
9246
9247fi
9248
9249
9250echo "$ac_t""$wx_cv_gnu_extensions" 1>&6
9251if test "$wx_cv_gnu_extensions" = "yes"; then
9252 cat >> confdefs.h <<EOF
9253#define _GNU_SOURCE 1
9254EOF
9255
9256fi
9257
9258
9259
9260echo $ac_n "checking for wcslen in -lc""... $ac_c" 1>&6
f49f2b0c 9261echo "configure:9262: checking for wcslen in -lc" >&5
10f2d63a
VZ
9262ac_lib_var=`echo c'_'wcslen | sed 'y%./+-%__p_%'`
9263if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9264 echo $ac_n "(cached) $ac_c" 1>&6
9265else
9266 ac_save_LIBS="$LIBS"
9267LIBS="-lc $LIBS"
9268cat > conftest.$ac_ext <<EOF
f49f2b0c 9269#line 9270 "configure"
10f2d63a
VZ
9270#include "confdefs.h"
9271/* Override any gcc2 internal prototype to avoid an error. */
9272/* We use char because int might match the return type of a gcc2
9273 builtin and then its argument prototype would still apply. */
9274char wcslen();
9275
9276int main() {
9277wcslen()
9278; return 0; }
9279EOF
f49f2b0c 9280if { (eval echo configure:9281: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
9281 rm -rf conftest*
9282 eval "ac_cv_lib_$ac_lib_var=yes"
9283else
9284 echo "configure: failed program was:" >&5
9285 cat conftest.$ac_ext >&5
9286 rm -rf conftest*
9287 eval "ac_cv_lib_$ac_lib_var=no"
9288fi
9289rm -f conftest*
9290LIBS="$ac_save_LIBS"
9291
9292fi
9293if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9294 echo "$ac_t""yes" 1>&6
9295
9296 cat >> confdefs.h <<\EOF
9297#define HAVE_WCSLEN 1
9298EOF
9299
9300 WCHAR_LINK=""
9301
9302else
9303 echo "$ac_t""no" 1>&6
9304
9305 echo $ac_n "checking for wcslen in -lw""... $ac_c" 1>&6
f49f2b0c 9306echo "configure:9307: checking for wcslen in -lw" >&5
10f2d63a
VZ
9307ac_lib_var=`echo w'_'wcslen | sed 'y%./+-%__p_%'`
9308if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9309 echo $ac_n "(cached) $ac_c" 1>&6
9310else
9311 ac_save_LIBS="$LIBS"
9312LIBS="-lw $LIBS"
9313cat > conftest.$ac_ext <<EOF
f49f2b0c 9314#line 9315 "configure"
10f2d63a
VZ
9315#include "confdefs.h"
9316/* Override any gcc2 internal prototype to avoid an error. */
9317/* We use char because int might match the return type of a gcc2
9318 builtin and then its argument prototype would still apply. */
9319char wcslen();
9320
9321int main() {
9322wcslen()
9323; return 0; }
9324EOF
f49f2b0c 9325if { (eval echo configure:9326: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
9326 rm -rf conftest*
9327 eval "ac_cv_lib_$ac_lib_var=yes"
9328else
9329 echo "configure: failed program was:" >&5
9330 cat conftest.$ac_ext >&5
9331 rm -rf conftest*
9332 eval "ac_cv_lib_$ac_lib_var=no"
9333fi
9334rm -f conftest*
9335LIBS="$ac_save_LIBS"
9336
9337fi
9338if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9339 echo "$ac_t""yes" 1>&6
9340
9341 cat >> confdefs.h <<\EOF
9342#define HAVE_WCSLEN 1
9343EOF
9344
9345 WCHAR_LINK="-lw"
9346
9347else
9348 echo "$ac_t""no" 1>&6
9349fi
9350
9351
9352fi
9353
9354
9355echo $ac_n "checking for vprintf""... $ac_c" 1>&6
f49f2b0c 9356echo "configure:9357: checking for vprintf" >&5
10f2d63a
VZ
9357if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
9358 echo $ac_n "(cached) $ac_c" 1>&6
9359else
9360 cat > conftest.$ac_ext <<EOF
f49f2b0c 9361#line 9362 "configure"
10f2d63a
VZ
9362#include "confdefs.h"
9363/* System header to define __stub macros and hopefully few prototypes,
9364 which can conflict with char vprintf(); below. */
9365#include <assert.h>
9366/* Override any gcc2 internal prototype to avoid an error. */
9367/* We use char because int might match the return type of a gcc2
9368 builtin and then its argument prototype would still apply. */
9369char vprintf();
69ffe1d2 9370char (*f)();
10f2d63a
VZ
9371
9372int main() {
9373
9374/* The GNU C library defines this for functions which it implements
9375 to always fail with ENOSYS. Some functions are actually named
9376 something starting with __ and the normal name is an alias. */
9377#if defined (__stub_vprintf) || defined (__stub___vprintf)
9378choke me
9379#else
69ffe1d2 9380f = vprintf;
10f2d63a
VZ
9381#endif
9382
9383; return 0; }
9384EOF
f49f2b0c 9385if { (eval echo configure:9386: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
9386 rm -rf conftest*
9387 eval "ac_cv_func_vprintf=yes"
9388else
9389 echo "configure: failed program was:" >&5
9390 cat conftest.$ac_ext >&5
9391 rm -rf conftest*
9392 eval "ac_cv_func_vprintf=no"
9393fi
9394rm -f conftest*
9395fi
9396
9397if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
9398 echo "$ac_t""yes" 1>&6
9399 cat >> confdefs.h <<\EOF
9400#define HAVE_VPRINTF 1
9401EOF
9402
9403else
9404 echo "$ac_t""no" 1>&6
9405fi
9406
9407if test "$ac_cv_func_vprintf" != yes; then
9408echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
f49f2b0c 9409echo "configure:9410: checking for _doprnt" >&5
10f2d63a
VZ
9410if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
9411 echo $ac_n "(cached) $ac_c" 1>&6
9412else
9413 cat > conftest.$ac_ext <<EOF
f49f2b0c 9414#line 9415 "configure"
10f2d63a
VZ
9415#include "confdefs.h"
9416/* System header to define __stub macros and hopefully few prototypes,
9417 which can conflict with char _doprnt(); below. */
9418#include <assert.h>
9419/* Override any gcc2 internal prototype to avoid an error. */
9420/* We use char because int might match the return type of a gcc2
9421 builtin and then its argument prototype would still apply. */
9422char _doprnt();
69ffe1d2 9423char (*f)();
10f2d63a
VZ
9424
9425int main() {
9426
9427/* The GNU C library defines this for functions which it implements
9428 to always fail with ENOSYS. Some functions are actually named
9429 something starting with __ and the normal name is an alias. */
9430#if defined (__stub__doprnt) || defined (__stub____doprnt)
9431choke me
9432#else
69ffe1d2 9433f = _doprnt;
10f2d63a
VZ
9434#endif
9435
9436; return 0; }
9437EOF
f49f2b0c 9438if { (eval echo configure:9439: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
9439 rm -rf conftest*
9440 eval "ac_cv_func__doprnt=yes"
9441else
9442 echo "configure: failed program was:" >&5
9443 cat conftest.$ac_ext >&5
9444 rm -rf conftest*
9445 eval "ac_cv_func__doprnt=no"
9446fi
9447rm -f conftest*
9448fi
9449
9450if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
9451 echo "$ac_t""yes" 1>&6
9452 cat >> confdefs.h <<\EOF
9453#define HAVE_DOPRNT 1
9454EOF
9455
9456else
9457 echo "$ac_t""no" 1>&6
9458fi
9459
9460fi
9461
9462
9463for ac_func in vsnprintf
9464do
9465echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
f49f2b0c 9466echo "configure:9467: checking for $ac_func" >&5
10f2d63a
VZ
9467if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9468 echo $ac_n "(cached) $ac_c" 1>&6
9469else
9470 cat > conftest.$ac_ext <<EOF
f49f2b0c 9471#line 9472 "configure"
10f2d63a
VZ
9472#include "confdefs.h"
9473/* System header to define __stub macros and hopefully few prototypes,
9474 which can conflict with char $ac_func(); below. */
9475#include <assert.h>
9476/* Override any gcc2 internal prototype to avoid an error. */
9477/* We use char because int might match the return type of a gcc2
9478 builtin and then its argument prototype would still apply. */
9479char $ac_func();
69ffe1d2 9480char (*f)();
10f2d63a
VZ
9481
9482int main() {
9483
9484/* The GNU C library defines this for functions which it implements
9485 to always fail with ENOSYS. Some functions are actually named
9486 something starting with __ and the normal name is an alias. */
9487#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9488choke me
9489#else
69ffe1d2 9490f = $ac_func;
10f2d63a
VZ
9491#endif
9492
9493; return 0; }
9494EOF
f49f2b0c 9495if { (eval echo configure:9496: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
9496 rm -rf conftest*
9497 eval "ac_cv_func_$ac_func=yes"
9498else
9499 echo "configure: failed program was:" >&5
9500 cat conftest.$ac_ext >&5
9501 rm -rf conftest*
9502 eval "ac_cv_func_$ac_func=no"
9503fi
9504rm -f conftest*
9505fi
9506
9507if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9508 echo "$ac_t""yes" 1>&6
9509 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9510 cat >> confdefs.h <<EOF
9511#define $ac_tr_func 1
9512EOF
9513 cat >> confdefs.h <<\EOF
9514#define HAVE_VSNPRINTF 1
9515EOF
9516
9517else
9518 echo "$ac_t""no" 1>&6
9519echo "configure: warning: unsafe function sprintf will be used instead of snprintf" 1>&2
9520
9521fi
9522done
9523
9524
9525
9526ac_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
9534echo $ac_n "checking for vsscanf""... $ac_c" 1>&6
f49f2b0c 9535echo "configure:9536: checking for vsscanf" >&5
10f2d63a
VZ
9536if eval "test \"`echo '$''{'wx_cv_func_vsscanf'+set}'`\" = set"; then
9537 echo $ac_n "(cached) $ac_c" 1>&6
9538else
9539
9540 if test "$cross_compiling" = yes; then
9541 wx_cv_func_vsscanf=no
9542
9543else
9544 cat > conftest.$ac_ext <<EOF
f49f2b0c 9545#line 9546 "configure"
10f2d63a
VZ
9546#include "confdefs.h"
9547#ifdef __cplusplus
9548extern "C" void exit(int);
9549#endif
9550
9551 #include <stdio.h>
9552 #include <stdarg.h>
9553
9554 int try_vsscanf(const char *format, ...)
9555 {
9556 va_list ap;
9557 va_start(ap, format);
9558
9559 vsscanf("17", format, ap);
9560
9561 va_end(ap);
9562 }
9563
9564 int main()
9565 {
9566 int i;
9567 try_vsscanf("%d", &i);
9568 return i == 17 ? 0 : 1;
9569 }
9570
9571EOF
f49f2b0c 9572if { (eval echo configure:9573: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10f2d63a
VZ
9573then
9574
9575 cat >> confdefs.h <<\EOF
9576#define HAVE_VSSCANF 1
9577EOF
9578
9579 wx_cv_func_vsscanf=yes
9580
9581else
9582 echo "configure: failed program was:" >&5
9583 cat conftest.$ac_ext >&5
9584 rm -fr conftest*
9585 wx_cv_func_vsscanf=no
9586fi
9587rm -fr conftest*
9588fi
9589
9590
9591fi
9592
9593echo "$ac_t""$wx_cv_func_vsscanf" 1>&6
9594
9595ac_ext=c
9596# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9597ac_cpp='$CPP $CPPFLAGS'
9598ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9599ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9600cross_compiling=$ac_cv_prog_cc_cross
9601
9602
9603if test "$USE_UNIX" = 1; then
9604
9605for ac_func in vfork
9606do
9607echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
f49f2b0c 9608echo "configure:9609: checking for $ac_func" >&5
10f2d63a
VZ
9609if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9610 echo $ac_n "(cached) $ac_c" 1>&6
9611else
9612 cat > conftest.$ac_ext <<EOF
f49f2b0c 9613#line 9614 "configure"
10f2d63a
VZ
9614#include "confdefs.h"
9615/* System header to define __stub macros and hopefully few prototypes,
9616 which can conflict with char $ac_func(); below. */
9617#include <assert.h>
9618/* Override any gcc2 internal prototype to avoid an error. */
9619/* We use char because int might match the return type of a gcc2
9620 builtin and then its argument prototype would still apply. */
9621char $ac_func();
69ffe1d2 9622char (*f)();
10f2d63a
VZ
9623
9624int main() {
9625
9626/* The GNU C library defines this for functions which it implements
9627 to always fail with ENOSYS. Some functions are actually named
9628 something starting with __ and the normal name is an alias. */
9629#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9630choke me
9631#else
69ffe1d2 9632f = $ac_func;
10f2d63a
VZ
9633#endif
9634
9635; return 0; }
9636EOF
f49f2b0c 9637if { (eval echo configure:9638: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
9638 rm -rf conftest*
9639 eval "ac_cv_func_$ac_func=yes"
9640else
9641 echo "configure: failed program was:" >&5
9642 cat conftest.$ac_ext >&5
9643 rm -rf conftest*
9644 eval "ac_cv_func_$ac_func=no"
9645fi
9646rm -f conftest*
9647fi
9648
9649if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9650 echo "$ac_t""yes" 1>&6
9651 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9652 cat >> confdefs.h <<EOF
9653#define $ac_tr_func 1
9654EOF
9655
9656else
9657 echo "$ac_t""no" 1>&6
9658fi
9659done
9660
9661
9662POSIX4_LINK=
9663for ac_func in nanosleep
9664do
9665echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
f49f2b0c 9666echo "configure:9667: checking for $ac_func" >&5
10f2d63a
VZ
9667if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9668 echo $ac_n "(cached) $ac_c" 1>&6
9669else
9670 cat > conftest.$ac_ext <<EOF
f49f2b0c 9671#line 9672 "configure"
10f2d63a
VZ
9672#include "confdefs.h"
9673/* System header to define __stub macros and hopefully few prototypes,
9674 which can conflict with char $ac_func(); below. */
9675#include <assert.h>
9676/* Override any gcc2 internal prototype to avoid an error. */
9677/* We use char because int might match the return type of a gcc2
9678 builtin and then its argument prototype would still apply. */
9679char $ac_func();
69ffe1d2 9680char (*f)();
10f2d63a
VZ
9681
9682int main() {
9683
9684/* The GNU C library defines this for functions which it implements
9685 to always fail with ENOSYS. Some functions are actually named
9686 something starting with __ and the normal name is an alias. */
9687#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9688choke me
9689#else
69ffe1d2 9690f = $ac_func;
10f2d63a
VZ
9691#endif
9692
9693; return 0; }
9694EOF
f49f2b0c 9695if { (eval echo configure:9696: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
9696 rm -rf conftest*
9697 eval "ac_cv_func_$ac_func=yes"
9698else
9699 echo "configure: failed program was:" >&5
9700 cat conftest.$ac_ext >&5
9701 rm -rf conftest*
9702 eval "ac_cv_func_$ac_func=no"
9703fi
9704rm -f conftest*
9705fi
9706
9707if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9708 echo "$ac_t""yes" 1>&6
9709 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9710 cat >> confdefs.h <<EOF
9711#define $ac_tr_func 1
9712EOF
9713 cat >> confdefs.h <<\EOF
9714#define HAVE_NANOSLEEP 1
9715EOF
9716
9717else
9718 echo "$ac_t""no" 1>&6
9719echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6
f49f2b0c 9720echo "configure:9721: checking for nanosleep in -lposix4" >&5
10f2d63a
VZ
9721ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'`
9722if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9723 echo $ac_n "(cached) $ac_c" 1>&6
9724else
9725 ac_save_LIBS="$LIBS"
9726LIBS="-lposix4 $LIBS"
9727cat > conftest.$ac_ext <<EOF
f49f2b0c 9728#line 9729 "configure"
10f2d63a
VZ
9729#include "confdefs.h"
9730/* Override any gcc2 internal prototype to avoid an error. */
9731/* We use char because int might match the return type of a gcc2
9732 builtin and then its argument prototype would still apply. */
9733char nanosleep();
9734
9735int main() {
9736nanosleep()
9737; return 0; }
9738EOF
f49f2b0c 9739if { (eval echo configure:9740: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
9740 rm -rf conftest*
9741 eval "ac_cv_lib_$ac_lib_var=yes"
9742else
9743 echo "configure: failed program was:" >&5
9744 cat conftest.$ac_ext >&5
9745 rm -rf conftest*
9746 eval "ac_cv_lib_$ac_lib_var=no"
9747fi
9748rm -f conftest*
9749LIBS="$ac_save_LIBS"
9750
9751fi
9752if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9753 echo "$ac_t""yes" 1>&6
9754
9755 cat >> confdefs.h <<\EOF
9756#define HAVE_NANOSLEEP 1
9757EOF
9758
9759 POSIX4_LINK="-lposix4"
9760
9761else
9762 echo "$ac_t""no" 1>&6
9763
9764 for ac_func in usleep
9765do
9766echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
f49f2b0c 9767echo "configure:9768: checking for $ac_func" >&5
10f2d63a
VZ
9768if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9769 echo $ac_n "(cached) $ac_c" 1>&6
9770else
9771 cat > conftest.$ac_ext <<EOF
f49f2b0c 9772#line 9773 "configure"
10f2d63a
VZ
9773#include "confdefs.h"
9774/* System header to define __stub macros and hopefully few prototypes,
9775 which can conflict with char $ac_func(); below. */
9776#include <assert.h>
9777/* Override any gcc2 internal prototype to avoid an error. */
9778/* We use char because int might match the return type of a gcc2
9779 builtin and then its argument prototype would still apply. */
9780char $ac_func();
69ffe1d2 9781char (*f)();
10f2d63a
VZ
9782
9783int main() {
9784
9785/* The GNU C library defines this for functions which it implements
9786 to always fail with ENOSYS. Some functions are actually named
9787 something starting with __ and the normal name is an alias. */
9788#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9789choke me
9790#else
69ffe1d2 9791f = $ac_func;
10f2d63a
VZ
9792#endif
9793
9794; return 0; }
9795EOF
f49f2b0c 9796if { (eval echo configure:9797: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
9797 rm -rf conftest*
9798 eval "ac_cv_func_$ac_func=yes"
9799else
9800 echo "configure: failed program was:" >&5
9801 cat conftest.$ac_ext >&5
9802 rm -rf conftest*
9803 eval "ac_cv_func_$ac_func=no"
9804fi
9805rm -f conftest*
9806fi
9807
9808if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9809 echo "$ac_t""yes" 1>&6
9810 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9811 cat >> confdefs.h <<EOF
9812#define $ac_tr_func 1
9813EOF
9814 cat >> confdefs.h <<\EOF
9815#define HAVE_USLEEP 1
9816EOF
9817
9818else
9819 echo "$ac_t""no" 1>&6
9820echo "configure: warning: wxSleep() function will not work" 1>&2
9821fi
9822done
9823
9824
9825fi
9826
9827
9828fi
9829done
9830
9831
9832for ac_func in uname gethostname
9833do
9834echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
f49f2b0c 9835echo "configure:9836: checking for $ac_func" >&5
10f2d63a
VZ
9836if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9837 echo $ac_n "(cached) $ac_c" 1>&6
9838else
9839 cat > conftest.$ac_ext <<EOF
f49f2b0c 9840#line 9841 "configure"
10f2d63a
VZ
9841#include "confdefs.h"
9842/* System header to define __stub macros and hopefully few prototypes,
9843 which can conflict with char $ac_func(); below. */
9844#include <assert.h>
9845/* Override any gcc2 internal prototype to avoid an error. */
9846/* We use char because int might match the return type of a gcc2
9847 builtin and then its argument prototype would still apply. */
9848char $ac_func();
69ffe1d2 9849char (*f)();
10f2d63a
VZ
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
69ffe1d2 9859f = $ac_func;
10f2d63a
VZ
9860#endif
9861
9862; return 0; }
9863EOF
f49f2b0c 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 break
9883else
9884 echo "$ac_t""no" 1>&6
9885fi
9886done
9887
9888
9889for ac_func in strtok_r
9890do
9891echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
f49f2b0c 9892echo "configure:9893: checking for $ac_func" >&5
10f2d63a
VZ
9893if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9894 echo $ac_n "(cached) $ac_c" 1>&6
9895else
9896 cat > conftest.$ac_ext <<EOF
f49f2b0c 9897#line 9898 "configure"
10f2d63a
VZ
9898#include "confdefs.h"
9899/* System header to define __stub macros and hopefully few prototypes,
9900 which can conflict with char $ac_func(); below. */
9901#include <assert.h>
9902/* Override any gcc2 internal prototype to avoid an error. */
9903/* We use char because int might match the return type of a gcc2
9904 builtin and then its argument prototype would still apply. */
9905char $ac_func();
69ffe1d2 9906char (*f)();
10f2d63a
VZ
9907
9908int main() {
9909
9910/* The GNU C library defines this for functions which it implements
9911 to always fail with ENOSYS. Some functions are actually named
9912 something starting with __ and the normal name is an alias. */
9913#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9914choke me
9915#else
69ffe1d2 9916f = $ac_func;
10f2d63a
VZ
9917#endif
9918
9919; return 0; }
9920EOF
f49f2b0c 9921if { (eval echo configure:9922: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
9922 rm -rf conftest*
9923 eval "ac_cv_func_$ac_func=yes"
9924else
9925 echo "configure: failed program was:" >&5
9926 cat conftest.$ac_ext >&5
9927 rm -rf conftest*
9928 eval "ac_cv_func_$ac_func=no"
9929fi
9930rm -f conftest*
9931fi
9932
9933if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9934 echo "$ac_t""yes" 1>&6
9935 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9936 cat >> confdefs.h <<EOF
9937#define $ac_tr_func 1
9938EOF
9939
9940else
9941 echo "$ac_t""no" 1>&6
9942fi
9943done
9944
9945
c63c7106 9946INET_LINK=
10f2d63a
VZ
9947for ac_func in inet_addr
9948do
9949echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
f49f2b0c 9950echo "configure:9951: checking for $ac_func" >&5
10f2d63a
VZ
9951if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9952 echo $ac_n "(cached) $ac_c" 1>&6
9953else
9954 cat > conftest.$ac_ext <<EOF
f49f2b0c 9955#line 9956 "configure"
10f2d63a
VZ
9956#include "confdefs.h"
9957/* System header to define __stub macros and hopefully few prototypes,
9958 which can conflict with char $ac_func(); below. */
9959#include <assert.h>
9960/* Override any gcc2 internal prototype to avoid an error. */
9961/* We use char because int might match the return type of a gcc2
9962 builtin and then its argument prototype would still apply. */
9963char $ac_func();
69ffe1d2 9964char (*f)();
10f2d63a
VZ
9965
9966int main() {
9967
9968/* The GNU C library defines this for functions which it implements
9969 to always fail with ENOSYS. Some functions are actually named
9970 something starting with __ and the normal name is an alias. */
9971#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9972choke me
9973#else
69ffe1d2 9974f = $ac_func;
10f2d63a
VZ
9975#endif
9976
9977; return 0; }
9978EOF
f49f2b0c 9979if { (eval echo configure:9980: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
9980 rm -rf conftest*
9981 eval "ac_cv_func_$ac_func=yes"
9982else
9983 echo "configure: failed program was:" >&5
9984 cat conftest.$ac_ext >&5
9985 rm -rf conftest*
9986 eval "ac_cv_func_$ac_func=no"
9987fi
9988rm -f conftest*
9989fi
9990
9991if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9992 echo "$ac_t""yes" 1>&6
9993 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9994 cat >> confdefs.h <<EOF
9995#define $ac_tr_func 1
9996EOF
c63c7106
VZ
9997 cat >> confdefs.h <<\EOF
9998#define HAVE_INET_ADDR 1
9999EOF
10000
10f2d63a
VZ
10001else
10002 echo "$ac_t""no" 1>&6
c63c7106 10003echo $ac_n "checking for inet_addr in -lnsl""... $ac_c" 1>&6
f49f2b0c 10004echo "configure:10005: checking for inet_addr in -lnsl" >&5
c63c7106
VZ
10005ac_lib_var=`echo nsl'_'inet_addr | sed 'y%./+-%__p_%'`
10006if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10007 echo $ac_n "(cached) $ac_c" 1>&6
10008else
10009 ac_save_LIBS="$LIBS"
10010LIBS="-lnsl $LIBS"
10011cat > conftest.$ac_ext <<EOF
f49f2b0c 10012#line 10013 "configure"
c63c7106
VZ
10013#include "confdefs.h"
10014/* Override any gcc2 internal prototype to avoid an error. */
10015/* We use char because int might match the return type of a gcc2
10016 builtin and then its argument prototype would still apply. */
10017char inet_addr();
10018
10019int main() {
10020inet_addr()
10021; return 0; }
10022EOF
f49f2b0c 10023if { (eval echo configure:10024: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
c63c7106
VZ
10024 rm -rf conftest*
10025 eval "ac_cv_lib_$ac_lib_var=yes"
10026else
10027 echo "configure: failed program was:" >&5
10028 cat conftest.$ac_ext >&5
10029 rm -rf conftest*
10030 eval "ac_cv_lib_$ac_lib_var=no"
10031fi
10032rm -f conftest*
10033LIBS="$ac_save_LIBS"
10034
10035fi
10036if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10037 echo "$ac_t""yes" 1>&6
10038 INET_LINK="nsl"
10039else
10040 echo "$ac_t""no" 1>&6
10041echo $ac_n "checking for inet_addr in -lresolv""... $ac_c" 1>&6
f49f2b0c 10042echo "configure:10043: checking for inet_addr in -lresolv" >&5
c63c7106
VZ
10043ac_lib_var=`echo resolv'_'inet_addr | sed 'y%./+-%__p_%'`
10044if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10045 echo $ac_n "(cached) $ac_c" 1>&6
10046else
10047 ac_save_LIBS="$LIBS"
10048LIBS="-lresolv $LIBS"
10049cat > conftest.$ac_ext <<EOF
f49f2b0c 10050#line 10051 "configure"
c63c7106
VZ
10051#include "confdefs.h"
10052/* Override any gcc2 internal prototype to avoid an error. */
10053/* We use char because int might match the return type of a gcc2
10054 builtin and then its argument prototype would still apply. */
10055char inet_addr();
10056
10057int main() {
10058inet_addr()
10059; return 0; }
10060EOF
f49f2b0c 10061if { (eval echo configure:10062: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
c63c7106
VZ
10062 rm -rf conftest*
10063 eval "ac_cv_lib_$ac_lib_var=yes"
10064else
10065 echo "configure: failed program was:" >&5
10066 cat conftest.$ac_ext >&5
10067 rm -rf conftest*
10068 eval "ac_cv_lib_$ac_lib_var=no"
10069fi
10070rm -f conftest*
10071LIBS="$ac_save_LIBS"
10072
10073fi
10074if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10075 echo "$ac_t""yes" 1>&6
10076 INET_LINK="resolv"
10077
10078else
10079 echo "$ac_t""no" 1>&6
10080fi
10081
10082
10083fi
10084
10085
10086
10f2d63a
VZ
10087fi
10088done
10089
c63c7106 10090
10f2d63a
VZ
10091for ac_func in inet_aton
10092do
10093echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
f49f2b0c 10094echo "configure:10095: checking for $ac_func" >&5
10f2d63a
VZ
10095if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10096 echo $ac_n "(cached) $ac_c" 1>&6
10097else
10098 cat > conftest.$ac_ext <<EOF
f49f2b0c 10099#line 10100 "configure"
10f2d63a
VZ
10100#include "confdefs.h"
10101/* System header to define __stub macros and hopefully few prototypes,
10102 which can conflict with char $ac_func(); below. */
10103#include <assert.h>
10104/* Override any gcc2 internal prototype to avoid an error. */
10105/* We use char because int might match the return type of a gcc2
10106 builtin and then its argument prototype would still apply. */
10107char $ac_func();
69ffe1d2 10108char (*f)();
10f2d63a
VZ
10109
10110int main() {
10111
10112/* The GNU C library defines this for functions which it implements
10113 to always fail with ENOSYS. Some functions are actually named
10114 something starting with __ and the normal name is an alias. */
10115#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10116choke me
10117#else
69ffe1d2 10118f = $ac_func;
10f2d63a
VZ
10119#endif
10120
10121; return 0; }
10122EOF
f49f2b0c 10123if { (eval echo configure:10124: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
10124 rm -rf conftest*
10125 eval "ac_cv_func_$ac_func=yes"
10126else
10127 echo "configure: failed program was:" >&5
10128 cat conftest.$ac_ext >&5
10129 rm -rf conftest*
10130 eval "ac_cv_func_$ac_func=no"
10131fi
10132rm -f conftest*
10133fi
10134
10135if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10136 echo "$ac_t""yes" 1>&6
10137 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10138 cat >> confdefs.h <<EOF
10139#define $ac_tr_func 1
10140EOF
c63c7106
VZ
10141 cat >> confdefs.h <<\EOF
10142#define HAVE_INET_ATON 1
10143EOF
10144
10f2d63a
VZ
10145else
10146 echo "$ac_t""no" 1>&6
c63c7106 10147 echo $ac_n "checking for inet_aton in -l$INET_LINK""... $ac_c" 1>&6
f49f2b0c 10148echo "configure:10149: checking for inet_aton in -l$INET_LINK" >&5
c63c7106 10149ac_lib_var=`echo $INET_LINK'_'inet_aton | sed 'y%./+-%__p_%'`
10f2d63a
VZ
10150if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10151 echo $ac_n "(cached) $ac_c" 1>&6
10152else
10153 ac_save_LIBS="$LIBS"
c63c7106 10154LIBS="-l$INET_LINK $LIBS"
10f2d63a 10155cat > conftest.$ac_ext <<EOF
f49f2b0c 10156#line 10157 "configure"
10f2d63a
VZ
10157#include "confdefs.h"
10158/* Override any gcc2 internal prototype to avoid an error. */
10159/* We use char because int might match the return type of a gcc2
10160 builtin and then its argument prototype would still apply. */
10161char inet_aton();
10162
10163int main() {
10164inet_aton()
10165; return 0; }
10166EOF
f49f2b0c 10167if { (eval echo configure:10168: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
10168 rm -rf conftest*
10169 eval "ac_cv_lib_$ac_lib_var=yes"
10170else
10171 echo "configure: failed program was:" >&5
10172 cat conftest.$ac_ext >&5
10173 rm -rf conftest*
10174 eval "ac_cv_lib_$ac_lib_var=no"
10175fi
10176rm -f conftest*
10177LIBS="$ac_save_LIBS"
10178
10179fi
10180if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10181 echo "$ac_t""yes" 1>&6
c63c7106
VZ
10182 cat >> confdefs.h <<\EOF
10183#define HAVE_INET_ATON 1
10f2d63a
VZ
10184EOF
10185
10f2d63a
VZ
10186else
10187 echo "$ac_t""no" 1>&6
10188fi
10189
c63c7106
VZ
10190
10191fi
10192done
10193
10194
10195if test "x$INET_LINK" != "x"; then
10196 cat >> confdefs.h <<\EOF
10197#define HAVE_INET_ADDR 1
10198EOF
10199
10200 INET_LINK="-l$INET_LINK"
10201fi
10f2d63a
VZ
10202
10203fi
10204
10205
10206cat > confcache <<\EOF
10207# This file is a shell script that caches the results of configure
10208# tests run on this system so they can be shared between configure
10209# scripts and configure runs. It is not useful on other systems.
10210# If it contains results you don't want to keep, you may remove or edit it.
10211#
10212# By default, configure uses ./config.cache as the cache file,
10213# creating it if it does not exist already. You can give configure
10214# the --cache-file=FILE option to use a different cache file; that is
10215# what configure does when it calls configure scripts in
10216# subdirectories, so they share the cache.
10217# Giving --cache-file=/dev/null disables caching, for debugging configure.
10218# config.status only pays attention to the cache file if you give it the
10219# --recheck option to rerun configure.
10220#
10221EOF
10222# The following way of writing the cache mishandles newlines in values,
10223# but we know of no workaround that is simple, portable, and efficient.
10224# So, don't put newlines in cache variables' values.
10225# Ultrix sh set writes to stderr and can't be redirected directly,
10226# and sets the high bit in the cache file unless we assign to the vars.
10227(set) 2>&1 |
10228 case `(ac_space=' '; set | grep ac_space) 2>&1` in
10229 *ac_space=\ *)
10230 # `set' does not quote correctly, so add quotes (double-quote substitution
10231 # turns \\\\ into \\, and sed turns \\ into \).
10232 sed -n \
10233 -e "s/'/'\\\\''/g" \
10234 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
10235 ;;
10236 *)
10237 # `set' quotes correctly as required by POSIX, so do not add quotes.
10238 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
10239 ;;
10240 esac >> confcache
10241if cmp -s $cache_file confcache; then
10242 :
10243else
10244 if test -w $cache_file; then
10245 echo "updating cache $cache_file"
10246 cat confcache > $cache_file
10247 else
10248 echo "not updating unwritable cache $cache_file"
10249 fi
10250fi
10251rm -f confcache
10252
10253
10254
10255if test "$USE_UNIX" = 1; then
10256
10257
10258THREADS_LINK=""
10259THREADS_OBJ=""
10260
10261if test "$wxUSE_THREADS" = "yes" ; then
10262 if test "$wxUSE_WINE" = 1 ; then
10263 echo "configure: warning: Threads are not supported under WINE" 1>&2
10264 wxUSE_THREADS="no"
10265 fi
10266fi
10267
10268if test "$wxUSE_THREADS" = "yes" ; then
10269
10270 echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6
f49f2b0c 10271echo "configure:10272: checking for pthread_create in -lpthread" >&5
10f2d63a
VZ
10272ac_lib_var=`echo pthread'_'pthread_create | sed 'y%./+-%__p_%'`
10273if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10274 echo $ac_n "(cached) $ac_c" 1>&6
10275else
10276 ac_save_LIBS="$LIBS"
10277LIBS="-lpthread $LIBS"
10278cat > conftest.$ac_ext <<EOF
f49f2b0c 10279#line 10280 "configure"
10f2d63a
VZ
10280#include "confdefs.h"
10281/* Override any gcc2 internal prototype to avoid an error. */
10282/* We use char because int might match the return type of a gcc2
10283 builtin and then its argument prototype would still apply. */
10284char pthread_create();
10285
10286int main() {
10287pthread_create()
10288; return 0; }
10289EOF
f49f2b0c 10290if { (eval echo configure:10291: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
10291 rm -rf conftest*
10292 eval "ac_cv_lib_$ac_lib_var=yes"
10293else
10294 echo "configure: failed program was:" >&5
10295 cat conftest.$ac_ext >&5
10296 rm -rf conftest*
10297 eval "ac_cv_lib_$ac_lib_var=no"
10298fi
10299rm -f conftest*
10300LIBS="$ac_save_LIBS"
10301
10302fi
10303if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10304 echo "$ac_t""yes" 1>&6
10305
10306 THREADS_OBJ="threadpsx.lo"
10307 THREADS_LINK="pthread"
10308
10309else
10310 echo "$ac_t""no" 1>&6
10311
10312 echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6
f49f2b0c 10313echo "configure:10314: checking for pthread_create in -lc_r" >&5
10f2d63a
VZ
10314ac_lib_var=`echo c_r'_'pthread_create | sed 'y%./+-%__p_%'`
10315if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10316 echo $ac_n "(cached) $ac_c" 1>&6
10317else
10318 ac_save_LIBS="$LIBS"
10319LIBS="-lc_r $LIBS"
10320cat > conftest.$ac_ext <<EOF
f49f2b0c 10321#line 10322 "configure"
10f2d63a
VZ
10322#include "confdefs.h"
10323/* Override any gcc2 internal prototype to avoid an error. */
10324/* We use char because int might match the return type of a gcc2
10325 builtin and then its argument prototype would still apply. */
10326char pthread_create();
10327
10328int main() {
10329pthread_create()
10330; return 0; }
10331EOF
f49f2b0c 10332if { (eval echo configure:10333: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
10333 rm -rf conftest*
10334 eval "ac_cv_lib_$ac_lib_var=yes"
10335else
10336 echo "configure: failed program was:" >&5
10337 cat conftest.$ac_ext >&5
10338 rm -rf conftest*
10339 eval "ac_cv_lib_$ac_lib_var=no"
10340fi
10341rm -f conftest*
10342LIBS="$ac_save_LIBS"
10343
10344fi
10345if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10346 echo "$ac_t""yes" 1>&6
10347
10348 THREADS_OBJ="threadpsx.lo"
10349 THREADS_LINK="c_r"
10350
10351else
10352 echo "$ac_t""no" 1>&6
10353
10354 ac_safe=`echo "sys/prctl.h" | sed 'y%./+-%__p_%'`
10355echo $ac_n "checking for sys/prctl.h""... $ac_c" 1>&6
f49f2b0c 10356echo "configure:10357: checking for sys/prctl.h" >&5
10f2d63a
VZ
10357if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10358 echo $ac_n "(cached) $ac_c" 1>&6
10359else
10360 cat > conftest.$ac_ext <<EOF
f49f2b0c 10361#line 10362 "configure"
10f2d63a
VZ
10362#include "confdefs.h"
10363#include <sys/prctl.h>
10364EOF
10365ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
f49f2b0c 10366{ (eval echo configure:10367: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
10367ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10368if test -z "$ac_err"; then
10369 rm -rf conftest*
10370 eval "ac_cv_header_$ac_safe=yes"
10371else
10372 echo "$ac_err" >&5
10373 echo "configure: failed program was:" >&5
10374 cat conftest.$ac_ext >&5
10375 rm -rf conftest*
10376 eval "ac_cv_header_$ac_safe=no"
10377fi
10378rm -f conftest*
10379fi
10380if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10381 echo "$ac_t""yes" 1>&6
10382
10383 THREADS_OBJ="threadsgi.lo"
10384
10385else
10386 echo "$ac_t""no" 1>&6
10387fi
10388
10389
10390fi
10391
10392
10393fi
10394
10395
10396 if test -z "$THREADS_OBJ" ; then
10397 wxUSE_THREADS=no
10398 echo "configure: warning: No thread support on this system" 1>&2
10399 fi
10400fi
10401
10402if test "$wxUSE_THREADS" = "yes" ; then
10403
10404 for ac_hdr in sched.h
10405do
10406ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10407echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
f49f2b0c 10408echo "configure:10409: checking for $ac_hdr" >&5
10f2d63a
VZ
10409if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10410 echo $ac_n "(cached) $ac_c" 1>&6
10411else
10412 cat > conftest.$ac_ext <<EOF
f49f2b0c 10413#line 10414 "configure"
10f2d63a
VZ
10414#include "confdefs.h"
10415#include <$ac_hdr>
10416EOF
10417ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
f49f2b0c 10418{ (eval echo configure:10419: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
10419ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10420if test -z "$ac_err"; then
10421 rm -rf conftest*
10422 eval "ac_cv_header_$ac_safe=yes"
10423else
10424 echo "$ac_err" >&5
10425 echo "configure: failed program was:" >&5
10426 cat conftest.$ac_ext >&5
10427 rm -rf conftest*
10428 eval "ac_cv_header_$ac_safe=no"
10429fi
10430rm -f conftest*
10431fi
10432if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10433 echo "$ac_t""yes" 1>&6
10434 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10435 cat >> confdefs.h <<EOF
10436#define $ac_tr_hdr 1
10437EOF
10438
10439else
10440 echo "$ac_t""no" 1>&6
10441fi
10442done
10443
10444
10445 echo $ac_n "checking for sched_yield in -l$THREADS_LINK""... $ac_c" 1>&6
f49f2b0c 10446echo "configure:10447: checking for sched_yield in -l$THREADS_LINK" >&5
10f2d63a
VZ
10447ac_lib_var=`echo $THREADS_LINK'_'sched_yield | sed 'y%./+-%__p_%'`
10448if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10449 echo $ac_n "(cached) $ac_c" 1>&6
10450else
10451 ac_save_LIBS="$LIBS"
10452LIBS="-l$THREADS_LINK $LIBS"
10453cat > conftest.$ac_ext <<EOF
f49f2b0c 10454#line 10455 "configure"
10f2d63a
VZ
10455#include "confdefs.h"
10456/* Override any gcc2 internal prototype to avoid an error. */
10457/* We use char because int might match the return type of a gcc2
10458 builtin and then its argument prototype would still apply. */
10459char sched_yield();
10460
10461int main() {
10462sched_yield()
10463; return 0; }
10464EOF
f49f2b0c 10465if { (eval echo configure:10466: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
10466 rm -rf conftest*
10467 eval "ac_cv_lib_$ac_lib_var=yes"
10468else
10469 echo "configure: failed program was:" >&5
10470 cat conftest.$ac_ext >&5
10471 rm -rf conftest*
10472 eval "ac_cv_lib_$ac_lib_var=no"
10473fi
10474rm -f conftest*
10475LIBS="$ac_save_LIBS"
10476
10477fi
10478if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10479 echo "$ac_t""yes" 1>&6
10480 cat >> confdefs.h <<\EOF
10481#define HAVE_SCHED_YIELD 1
10482EOF
10483
10484else
10485 echo "$ac_t""no" 1>&6
10486echo $ac_n "checking for sched_yield in -l"posix4"""... $ac_c" 1>&6
f49f2b0c 10487echo "configure:10488: checking for sched_yield in -l"posix4"" >&5
10f2d63a
VZ
10488ac_lib_var=`echo "posix4"'_'sched_yield | sed 'y%./+-%__p_%'`
10489if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10490 echo $ac_n "(cached) $ac_c" 1>&6
10491else
10492 ac_save_LIBS="$LIBS"
10493LIBS="-l"posix4" $LIBS"
10494cat > conftest.$ac_ext <<EOF
f49f2b0c 10495#line 10496 "configure"
10f2d63a
VZ
10496#include "confdefs.h"
10497/* Override any gcc2 internal prototype to avoid an error. */
10498/* We use char because int might match the return type of a gcc2
10499 builtin and then its argument prototype would still apply. */
10500char sched_yield();
10501
10502int main() {
10503sched_yield()
10504; return 0; }
10505EOF
f49f2b0c 10506if { (eval echo configure:10507: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
10507 rm -rf conftest*
10508 eval "ac_cv_lib_$ac_lib_var=yes"
10509else
10510 echo "configure: failed program was:" >&5
10511 cat conftest.$ac_ext >&5
10512 rm -rf conftest*
10513 eval "ac_cv_lib_$ac_lib_var=no"
10514fi
10515rm -f conftest*
10516LIBS="$ac_save_LIBS"
10517
10518fi
10519if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10520 echo "$ac_t""yes" 1>&6
10521 cat >> confdefs.h <<\EOF
10522#define HAVE_SCHED_YIELD 1
10523EOF
10524 POSIX4_LINK="-lposix4"
10525else
10526 echo "$ac_t""no" 1>&6
10527echo "configure: warning: wxThread::Yield will not work properly" 1>&2
10528
10529fi
10530
10531
10532fi
10533
10534
10535 echo $ac_n "checking for pthread_attr_getschedpolicy in -l$THREADS_LINK""... $ac_c" 1>&6
f49f2b0c 10536echo "configure:10537: checking for pthread_attr_getschedpolicy in -l$THREADS_LINK" >&5
10f2d63a
VZ
10537ac_lib_var=`echo $THREADS_LINK'_'pthread_attr_getschedpolicy | sed 'y%./+-%__p_%'`
10538if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10539 echo $ac_n "(cached) $ac_c" 1>&6
10540else
10541 ac_save_LIBS="$LIBS"
10542LIBS="-l$THREADS_LINK $LIBS"
10543cat > conftest.$ac_ext <<EOF
f49f2b0c 10544#line 10545 "configure"
10f2d63a
VZ
10545#include "confdefs.h"
10546/* Override any gcc2 internal prototype to avoid an error. */
10547/* We use char because int might match the return type of a gcc2
10548 builtin and then its argument prototype would still apply. */
10549char pthread_attr_getschedpolicy();
10550
10551int main() {
10552pthread_attr_getschedpolicy()
10553; return 0; }
10554EOF
f49f2b0c 10555if { (eval echo configure:10556: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
10556 rm -rf conftest*
10557 eval "ac_cv_lib_$ac_lib_var=yes"
10558else
10559 echo "configure: failed program was:" >&5
10560 cat conftest.$ac_ext >&5
10561 rm -rf conftest*
10562 eval "ac_cv_lib_$ac_lib_var=no"
10563fi
10564rm -f conftest*
10565LIBS="$ac_save_LIBS"
10566
10567fi
10568if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10569 echo "$ac_t""yes" 1>&6
10570 cat >> confdefs.h <<\EOF
10571#define HAVE_THREAD_PRIORITY_FUNCTIONS 1
10572EOF
10573
10574else
10575 echo "$ac_t""no" 1>&6
10576echo $ac_n "checking for pthread_attr_getschedpolicy in -l"posix4"""... $ac_c" 1>&6
f49f2b0c 10577echo "configure:10578: checking for pthread_attr_getschedpolicy in -l"posix4"" >&5
10f2d63a
VZ
10578ac_lib_var=`echo "posix4"'_'pthread_attr_getschedpolicy | sed 'y%./+-%__p_%'`
10579if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10580 echo $ac_n "(cached) $ac_c" 1>&6
10581else
10582 ac_save_LIBS="$LIBS"
10583LIBS="-l"posix4" $LIBS"
10584cat > conftest.$ac_ext <<EOF
f49f2b0c 10585#line 10586 "configure"
10f2d63a
VZ
10586#include "confdefs.h"
10587/* Override any gcc2 internal prototype to avoid an error. */
10588/* We use char because int might match the return type of a gcc2
10589 builtin and then its argument prototype would still apply. */
10590char pthread_attr_getschedpolicy();
10591
10592int main() {
10593pthread_attr_getschedpolicy()
10594; return 0; }
10595EOF
f49f2b0c 10596if { (eval echo configure:10597: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
10597 rm -rf conftest*
10598 eval "ac_cv_lib_$ac_lib_var=yes"
10599else
10600 echo "configure: failed program was:" >&5
10601 cat conftest.$ac_ext >&5
10602 rm -rf conftest*
10603 eval "ac_cv_lib_$ac_lib_var=no"
10604fi
10605rm -f conftest*
10606LIBS="$ac_save_LIBS"
10607
10608fi
10609if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10610 echo "$ac_t""yes" 1>&6
10611 cat >> confdefs.h <<\EOF
10612#define HAVE_THREAD_PRIORITY_FUNCTIONS 1
10613EOF
10614 POSIX4_LINK="-lposix4"
10615else
10616 echo "$ac_t""no" 1>&6
10617echo "configure: warning: Setting thread priority will not work" 1>&2
10618
10619fi
10620
10621
10622fi
10623
10624
10625 echo $ac_n "checking for pthread_cancel in -l$THREADS_LINK""... $ac_c" 1>&6
f49f2b0c 10626echo "configure:10627: checking for pthread_cancel in -l$THREADS_LINK" >&5
10f2d63a
VZ
10627ac_lib_var=`echo $THREADS_LINK'_'pthread_cancel | sed 'y%./+-%__p_%'`
10628if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10629 echo $ac_n "(cached) $ac_c" 1>&6
10630else
10631 ac_save_LIBS="$LIBS"
10632LIBS="-l$THREADS_LINK $LIBS"
10633cat > conftest.$ac_ext <<EOF
f49f2b0c 10634#line 10635 "configure"
10f2d63a
VZ
10635#include "confdefs.h"
10636/* Override any gcc2 internal prototype to avoid an error. */
10637/* We use char because int might match the return type of a gcc2
10638 builtin and then its argument prototype would still apply. */
10639char pthread_cancel();
10640
10641int main() {
10642pthread_cancel()
10643; return 0; }
10644EOF
f49f2b0c 10645if { (eval echo configure:10646: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
10646 rm -rf conftest*
10647 eval "ac_cv_lib_$ac_lib_var=yes"
10648else
10649 echo "configure: failed program was:" >&5
10650 cat conftest.$ac_ext >&5
10651 rm -rf conftest*
10652 eval "ac_cv_lib_$ac_lib_var=no"
10653fi
10654rm -f conftest*
10655LIBS="$ac_save_LIBS"
10656
10657fi
10658if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10659 echo "$ac_t""yes" 1>&6
10660 cat >> confdefs.h <<\EOF
10661#define HAVE_PTHREAD_CANCEL 1
10662EOF
10663
10664else
10665 echo "$ac_t""no" 1>&6
10666echo "configure: warning: wxThread::Kill() will not work properly" 1>&2
10667fi
10668
10669
10670 echo $ac_n "checking for pthread_cleanup_push/pop""... $ac_c" 1>&6
f49f2b0c 10671echo "configure:10672: checking for pthread_cleanup_push/pop" >&5
10f2d63a
VZ
10672if eval "test \"`echo '$''{'wx_cv_func_pthread_cleanup_push'+set}'`\" = set"; then
10673 echo $ac_n "(cached) $ac_c" 1>&6
10674else
10675
10676 cat > conftest.$ac_ext <<EOF
f49f2b0c 10677#line 10678 "configure"
10f2d63a
VZ
10678#include "confdefs.h"
10679#include <pthread.h>
10680int main() {
10681
10682 pthread_cleanup_push(NULL, NULL);
10683 pthread_cleanup_pop(0);
10684
10685; return 0; }
10686EOF
f49f2b0c 10687if { (eval echo configure:10688: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10f2d63a
VZ
10688 rm -rf conftest*
10689
10690 wx_cv_func_pthread_cleanup_push=yes
10691 cat >> confdefs.h <<\EOF
10692#define HAVE_THREAD_CLEANUP_FUNCTIONS 1
10693EOF
10694
10695
10696else
10697 echo "configure: failed program was:" >&5
10698 cat conftest.$ac_ext >&5
10699 rm -rf conftest*
10700
10701 wx_cv_func_pthread_cleanup_push=no
10702
10703fi
10704rm -f conftest*
10705
10706fi
10707
10708echo "$ac_t""$wx_cv_func_pthread_cleanup_push" 1>&6
10709
10710 THREADS_LINK="-l$THREADS_LINK"
10711fi
10712
10713fi
10714
10715if test "$wxUSE_THREADS" = "yes"; then
10716 cat >> confdefs.h <<\EOF
10717#define wxUSE_THREADS 1
10718EOF
10719
10720
10721 CFLAGS="${CFLAGS} -D_REENTRANT"
10722 CXXFLAGS="${CXXFLAGS} -D_REENTRANT"
10723
10724 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
10725else
10726 if test "$ac_cv_func_strtok_r" = "yes"; then
ab9b9eab 10727 echo $ac_n "checking if -D_REENTRANT is needed""... $ac_c" 1>&6
f49f2b0c 10728echo "configure:10729: checking if -D_REENTRANT is needed" >&5
ab9b9eab
VZ
10729 if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
10730 CFLAGS="${CFLAGS} -D_REENTRANT"
10731 CXXFLAGS="${CXXFLAGS} -D_REENTRANT"
10732 echo "$ac_t""yes" 1>&6
10733 else
10734 echo "$ac_t""no" 1>&6
10f2d63a
VZ
10735 fi
10736 fi
10737fi
10738
10739if test "$WXGTK12" = 1 ; then
10740 cat >> confdefs.h <<EOF
10741#define __WXGTK12__ $WXGTK12
10742EOF
10743
10744fi
10745
10746if test "$WXWINE" = 1 ; then
10747 TOOLKIT_DEF="${TOOLKIT_DEF} -D__WXWINE__"
10748fi
10749
10750if test "$wxUSE_CYGWIN" = 1 ; then
10751 TOOLKIT_DEF="${TOOLKIT_DEF} -D__WIN95__"
10752fi
10753
10754WXDEBUG=
10755
10756if test "$wxUSE_DEBUG_INFO" = "yes" ; then
10757 WXDEBUG="-g"
10758 wxUSE_OPTIMISE=no
10759fi
10760
10761if test "$wxUSE_DEBUG_GDB" = "yes" ; then
10762 wxUSE_DEBUG_INFO=yes
10763 WXDEBUG="-ggdb"
10764fi
10765
10766if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
10767 cat >> confdefs.h <<\EOF
10768#define WXDEBUG 1
10769EOF
10770
10771 WXDEBUG_DEFINE="-D__WXDEBUG__"
10772else
10773 if test "$wxUSE_GTK" = 1 ; then
10774 WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS"
10775 fi
10776fi
10777
10778if test "$wxUSE_MEM_TRACING" = "yes" ; then
10779 cat >> confdefs.h <<\EOF
10780#define wxUSE_MEMORY_TRACING 1
10781EOF
10782
10783 cat >> confdefs.h <<\EOF
10784#define wxUSE_GLOBAL_MEMORY_OPERATORS 1
10785EOF
10786
10787 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
10788fi
10789
10790if test "$wxUSE_DMALLOC" = "yes" ; then
10791 DMALLOC_LINK="-ldmalloc"
10792fi
10793
10794PROFILE=
10795if test "$wxUSE_PROFILE" = "yes" ; then
10796 PROFILE="-pg"
10797fi
10798
10799DEP_INFO_FLAGS=
10800if test "$GCC" = yes ; then
10801 if test "$wxUSE_NO_RTTI" = "yes" ; then
10802 WXDEBUG_DEFINE="$WXDEBUG_DEFINE -fno-rtti"
10803 fi
10804 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
10805 WXDEBUG_DEFINE="$WXDEBUG_DEFINE -fno-exceptions"
10806 fi
10807 if test "$wxUSE_PERMISSIVE" = "yes" ; then
10808 CFLAGS="${CFLAGS} -fpermissive"
10809 CXXFLAGS="${CXXFLAGS} -fpermissive"
10810 fi
10811 if test "$wxUSE_NO_DEPS" = "no" ; then
10812 DEP_INFO_FLAGS="-MMD"
10813 fi
10814fi
10815
10816
10817CXXFLAGS=`echo "${CXXFLAGS}" | sed "s/\-O.//g" `
10818CFLAGS=`echo "${CFLAGS}" | sed "s/\-O.//g" `
10819if test "$wxUSE_OPTIMISE" = "no" ; then
10820 OPTIMISE=
10821else
10822 if test "$GCC" = yes ; then
10823 OPTIMISE="-O2"
10824 case "${host}" in
10825 i586-*-*|i686-*-* )
10826 OPTIMISE="${OPTIMISE} "
10827 ;;
10828 esac
10829 else
10830 OPTIMISE="-O"
10831 fi
10832fi
10833
10834
10835ZLIB_INCLUDE=
10836if test "$wxUSE_ZLIB" = "yes" ; then
10837 cat >> confdefs.h <<\EOF
10838#define wxUSE_ZLIB 1
10839EOF
10840
10841 ZLIB_INCLUDE="-I\${top_srcdir}/src/zlib"
10842fi
10843
10844PNG_INCLUDE=
10845if test "$wxUSE_LIBPNG" = "yes" ; then
10846 cat >> confdefs.h <<\EOF
10847#define wxUSE_LIBPNG 1
10848EOF
10849
10850 PNG_INCLUDE="-I\${top_srcdir}/src/png"
10851 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
10852fi
10853
10854JPEG_INCLUDE=
10855if test "$wxUSE_LIBJPEG" = "yes" ; then
10856 cat >> confdefs.h <<\EOF
10857#define wxUSE_LIBJPEG 1
10858EOF
10859
10860 JPEG_INCLUDE="-I\${top_srcdir}/src/jpeg"
10861fi
10862
10863if test "$wxUSE_OPENGL" = "yes"; then
10864 ac_safe=`echo "GL/gl.h" | sed 'y%./+-%__p_%'`
10865echo $ac_n "checking for GL/gl.h""... $ac_c" 1>&6
f49f2b0c 10866echo "configure:10867: checking for GL/gl.h" >&5
10f2d63a
VZ
10867if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10868 echo $ac_n "(cached) $ac_c" 1>&6
10869else
10870 cat > conftest.$ac_ext <<EOF
f49f2b0c 10871#line 10872 "configure"
10f2d63a
VZ
10872#include "confdefs.h"
10873#include <GL/gl.h>
10874EOF
10875ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
f49f2b0c 10876{ (eval echo configure:10877: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
10877ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10878if test -z "$ac_err"; then
10879 rm -rf conftest*
10880 eval "ac_cv_header_$ac_safe=yes"
10881else
10882 echo "$ac_err" >&5
10883 echo "configure: failed program was:" >&5
10884 cat conftest.$ac_ext >&5
10885 rm -rf conftest*
10886 eval "ac_cv_header_$ac_safe=no"
10887fi
10888rm -f conftest*
10889fi
10890if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10891 echo "$ac_t""yes" 1>&6
10892
10893 echo $ac_n "checking for glInitNames in -lGL""... $ac_c" 1>&6
f49f2b0c 10894echo "configure:10895: checking for glInitNames in -lGL" >&5
10f2d63a
VZ
10895ac_lib_var=`echo GL'_'glInitNames | sed 'y%./+-%__p_%'`
10896if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10897 echo $ac_n "(cached) $ac_c" 1>&6
10898else
10899 ac_save_LIBS="$LIBS"
10900LIBS="-lGL wxUSE_OPENGL=0 $LIBS"
10901cat > conftest.$ac_ext <<EOF
f49f2b0c 10902#line 10903 "configure"
10f2d63a
VZ
10903#include "confdefs.h"
10904/* Override any gcc2 internal prototype to avoid an error. */
10905/* We use char because int might match the return type of a gcc2
10906 builtin and then its argument prototype would still apply. */
10907char glInitNames();
10908
10909int main() {
10910glInitNames()
10911; return 0; }
10912EOF
f49f2b0c 10913if { (eval echo configure:10914: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
10914 rm -rf conftest*
10915 eval "ac_cv_lib_$ac_lib_var=yes"
10916else
10917 echo "configure: failed program was:" >&5
10918 cat conftest.$ac_ext >&5
10919 rm -rf conftest*
10920 eval "ac_cv_lib_$ac_lib_var=no"
10921fi
10922rm -f conftest*
10923LIBS="$ac_save_LIBS"
10924
10925fi
10926if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10927 echo "$ac_t""yes" 1>&6
10928
10929 OPENGL_LINK="-lGL"
10930 cat >> confdefs.h <<\EOF
10931#define wxUSE_OPENGL 1
10932EOF
10933
10934 UTILS_SUBDIRS="$UTILS_SUBDIRS glcanvas/src"
10935
10936else
10937 echo "$ac_t""no" 1>&6
10938
10939 echo $ac_n "checking for glInitNames in -lMesaGL""... $ac_c" 1>&6
f49f2b0c 10940echo "configure:10941: checking for glInitNames in -lMesaGL" >&5
10f2d63a
VZ
10941ac_lib_var=`echo MesaGL'_'glInitNames | sed 'y%./+-%__p_%'`
10942if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10943 echo $ac_n "(cached) $ac_c" 1>&6
10944else
10945 ac_save_LIBS="$LIBS"
10946LIBS="-lMesaGL $LIBS"
10947cat > conftest.$ac_ext <<EOF
f49f2b0c 10948#line 10949 "configure"
10f2d63a
VZ
10949#include "confdefs.h"
10950/* Override any gcc2 internal prototype to avoid an error. */
10951/* We use char because int might match the return type of a gcc2
10952 builtin and then its argument prototype would still apply. */
10953char glInitNames();
10954
10955int main() {
10956glInitNames()
10957; return 0; }
10958EOF
f49f2b0c 10959if { (eval echo configure:10960: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
10960 rm -rf conftest*
10961 eval "ac_cv_lib_$ac_lib_var=yes"
10962else
10963 echo "configure: failed program was:" >&5
10964 cat conftest.$ac_ext >&5
10965 rm -rf conftest*
10966 eval "ac_cv_lib_$ac_lib_var=no"
10967fi
10968rm -f conftest*
10969LIBS="$ac_save_LIBS"
10970
10971fi
10972if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10973 echo "$ac_t""yes" 1>&6
10974
10975 OPENGL_LINK="-lMesaGL"
10976 cat >> confdefs.h <<\EOF
10977#define wxUSE_OPENGL 1
10978EOF
10979
10980 UTILS_SUBDIRS="$UTILS_SUBDIRS glcanvas/src"
10981
10982else
10983 echo "$ac_t""no" 1>&6
10984wxUSE_OPENGL=0
10985fi
10986
10987
10988fi
10989
10990
10991else
10992 echo "$ac_t""no" 1>&6
10993wxUSE_OPENGL=0
10994fi
10995
10996fi
10997
10998
10999if test "$wxUSE_GUI" = "yes"; then
11000 cat >> confdefs.h <<\EOF
11001#define wxUSE_GUI 1
11002EOF
11003
11004
11005 else
11006 cat >> confdefs.h <<\EOF
11007#define wxUSE_NOGUI 1
11008EOF
11009
11010fi
11011
11012
11013if test "$wxUSE_UNIX" = "yes"; then
11014 cat >> confdefs.h <<\EOF
11015#define wxUSE_UNIX 1
11016EOF
11017
11018fi
11019
11020
11021if test "$wxUSE_APPLE_IEEE" = "yes"; then
11022 cat >> confdefs.h <<\EOF
11023#define wxUSE_APPLE_IEEE 1
11024EOF
11025
11026fi
11027
10f2d63a
VZ
11028if test "$wxUSE_WAVE" = "yes"; then
11029 cat >> confdefs.h <<\EOF
11030#define wxUSE_WAVE 1
11031EOF
11032
11033fi
11034
11035if test "$wxUSE_FILE" = "yes"; then
11036 cat >> confdefs.h <<\EOF
11037#define wxUSE_FILE 1
11038EOF
11039
11040fi
11041
11042if test "$wxUSE_FS_INET" = "yes"; then
11043 cat >> confdefs.h <<\EOF
11044#define wxUSE_FS_INET 1
11045EOF
11046
11047fi
11048
11049if test "$wxUSE_FS_ZIP" = "yes"; then
11050 cat >> confdefs.h <<\EOF
11051#define wxUSE_FS_ZIP 1
11052EOF
11053
11054fi
11055
11056if test "$wxUSE_ZIPSTREAM" = "yes"; then
11057 cat >> confdefs.h <<\EOF
11058#define wxUSE_ZIPSTREAM 1
11059EOF
11060
11061fi
11062
11063if test "$wxUSE_BUSYINFO" = "yes"; then
11064 cat >> confdefs.h <<\EOF
11065#define wxUSE_BUSYINFO 1
11066EOF
11067
11068fi
11069
11070if test "$wxUSE_STD_IOSTREAM" = "yes"; then
11071 cat >> confdefs.h <<\EOF
11072#define wxUSE_STD_IOSTREAM 1
11073EOF
11074
11075fi
11076
11077if test "$wxUSE_TEXTFILE" = "yes"; then
11078 if test "$wxUSE_FILE" != "yes"; then
11079 echo "configure: warning: wxTextFile requires wxFile and it won't be compiled without it" 1>&2
11080 else
11081 cat >> confdefs.h <<\EOF
11082#define wxUSE_TEXTFILE 1
11083EOF
11084
11085 fi
11086fi
11087
11088if test "$wxUSE_CONFIG" = "yes" ; then
11089 if test "$wxUSE_TEXTFILE" != "yes"; then
11090 echo "configure: warning: wxConfig requires wxTextFile and it won't be compiled without it" 1>&2
11091 else
11092 cat >> confdefs.h <<\EOF
11093#define wxUSE_CONFIG 1
11094EOF
11095
11096 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
11097 fi
11098fi
11099
11100if test "$wxUSE_INTL" = "yes" ; then
11101 if test "$wxUSE_FILE" != "yes"; then
11102 echo "configure: warning: I18n code requires wxFile and it won't be compiled without it" 1>&2
11103 else
11104 cat >> confdefs.h <<\EOF
11105#define wxUSE_INTL 1
11106EOF
11107
11108 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
11109 fi
11110fi
11111
11112if test "$wxUSE_LOG" = "yes"; then
11113 cat >> confdefs.h <<\EOF
11114#define wxUSE_LOG 1
11115EOF
11116
11117fi
11118
11119if test "$wxUSE_LONGLONG" = "yes"; then
11120 cat >> confdefs.h <<\EOF
11121#define wxUSE_LONGLONG 1
11122EOF
11123
11124fi
11125
10f2d63a
VZ
11126if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then
11127 cat >> confdefs.h <<\EOF
11128#define wxUSE_DIALUP_MANAGER 1
11129EOF
11130
678b92a9 11131 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS nettest"
10f2d63a
VZ
11132fi
11133
11134if test "$wxUSE_STREAMS" = "yes" ; then
11135 cat >> confdefs.h <<\EOF
11136#define wxUSE_STREAMS 1
11137EOF
11138
11139fi
11140
11141if test "$wxUSE_SERIAL" = "yes" ; then
11142 cat >> confdefs.h <<\EOF
11143#define wxUSE_SERIAL 1
11144EOF
11145
11146fi
11147
11148
afc31813 11149if test "$wxUSE_TIMEDATE" = "yes"; then
0470b1e6 11150 for ac_func in localtime gettimeofday ftime
afc31813
VZ
11151do
11152echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
f49f2b0c 11153echo "configure:11154: checking for $ac_func" >&5
afc31813
VZ
11154if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11155 echo $ac_n "(cached) $ac_c" 1>&6
11156else
11157 cat > conftest.$ac_ext <<EOF
f49f2b0c 11158#line 11159 "configure"
10f2d63a 11159#include "confdefs.h"
afc31813
VZ
11160/* System header to define __stub macros and hopefully few prototypes,
11161 which can conflict with char $ac_func(); below. */
11162#include <assert.h>
11163/* Override any gcc2 internal prototype to avoid an error. */
11164/* We use char because int might match the return type of a gcc2
11165 builtin and then its argument prototype would still apply. */
11166char $ac_func();
69ffe1d2 11167char (*f)();
afc31813 11168
10f2d63a 11169int main() {
afc31813
VZ
11170
11171/* The GNU C library defines this for functions which it implements
11172 to always fail with ENOSYS. Some functions are actually named
11173 something starting with __ and the normal name is an alias. */
11174#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11175choke me
11176#else
69ffe1d2 11177f = $ac_func;
afc31813
VZ
11178#endif
11179
10f2d63a
VZ
11180; return 0; }
11181EOF
f49f2b0c 11182if { (eval echo configure:11183: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a 11183 rm -rf conftest*
afc31813 11184 eval "ac_cv_func_$ac_func=yes"
10f2d63a
VZ
11185else
11186 echo "configure: failed program was:" >&5
11187 cat conftest.$ac_ext >&5
11188 rm -rf conftest*
afc31813
VZ
11189 eval "ac_cv_func_$ac_func=no"
11190fi
11191rm -f conftest*
11192fi
11193
11194if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11195 echo "$ac_t""yes" 1>&6
11196 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11197 cat >> confdefs.h <<EOF
11198#define $ac_tr_func 1
11199EOF
0470b1e6 11200 break
afc31813
VZ
11201else
11202 echo "$ac_t""no" 1>&6
11203fi
11204done
11205
11206
0470b1e6
VZ
11207 if test "$ac_cv_func_localtime" = "yes"; then
11208 echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6
f49f2b0c 11209echo "configure:11210: checking for tm_gmtoff in struct tm" >&5
0470b1e6
VZ
11210if eval "test \"`echo '$''{'wx_cv_struct_tm_has_gmtoff'+set}'`\" = set"; then
11211 echo $ac_n "(cached) $ac_c" 1>&6
11212else
11213
11214 cat > conftest.$ac_ext <<EOF
f49f2b0c 11215#line 11216 "configure"
0470b1e6
VZ
11216#include "confdefs.h"
11217
11218 #include <time.h>
11219
11220int main() {
11221
11222 struct tm tm;
11223 tm.tm_gmtoff++;
11224
11225; return 0; }
11226EOF
f49f2b0c 11227if { (eval echo configure:11228: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
0470b1e6
VZ
11228 rm -rf conftest*
11229
f03a98d8 11230 wx_cv_struct_tm_has_gmtoff=yes
0470b1e6
VZ
11231 cat >> confdefs.h <<\EOF
11232#define WX_GMTOFF_IN_TM 1
11233EOF
11234
11235
11236else
11237 echo "configure: failed program was:" >&5
11238 cat conftest.$ac_ext >&5
11239 rm -rf conftest*
11240 wx_cv_struct_tm_has_gmtoff=no
11241
11242fi
11243rm -f conftest*
11244
11245fi
11246
11247echo "$ac_t""$wx_cv_struct_tm_has_gmtoff" 1>&6
11248 elif test "$ac_cv_func_gettimeofday" = "yes"; then
afc31813 11249 echo $ac_n "checking whether gettimeofday takes two arguments""... $ac_c" 1>&6
f49f2b0c 11250echo "configure:11251: checking whether gettimeofday takes two arguments" >&5
afc31813
VZ
11251if eval "test \"`echo '$''{'wx_cv_func_gettimeofday_has_2_args'+set}'`\" = set"; then
11252 echo $ac_n "(cached) $ac_c" 1>&6
11253else
11254
11255
11256 ac_ext=C
11257# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11258ac_cpp='$CXXCPP $CPPFLAGS'
11259ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11260ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11261cross_compiling=$ac_cv_prog_cxx_cross
11262
11263
11264 cat > conftest.$ac_ext <<EOF
f49f2b0c 11265#line 11266 "configure"
10f2d63a 11266#include "confdefs.h"
afc31813
VZ
11267
11268 #include <sys/time.h>
11269 #include <unistd.h>
11270
10f2d63a 11271int main() {
afc31813
VZ
11272
11273 struct timeval tv;
11274 struct timezone tz;
11275 gettimeofday(&tv, &tz);
11276
10f2d63a
VZ
11277; return 0; }
11278EOF
f49f2b0c 11279if { (eval echo configure:11280: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10f2d63a 11280 rm -rf conftest*
afc31813 11281 wx_cv_func_gettimeofday_has_2_args=yes
10f2d63a
VZ
11282else
11283 echo "configure: failed program was:" >&5
11284 cat conftest.$ac_ext >&5
11285 rm -rf conftest*
11286 cat > conftest.$ac_ext <<EOF
f49f2b0c 11287#line 11288 "configure"
10f2d63a 11288#include "confdefs.h"
afc31813
VZ
11289
11290 #include <sys/time.h>
11291 #include <unistd.h>
11292
10f2d63a 11293int main() {
afc31813
VZ
11294
11295 struct timeval tv;
11296 gettimeofday(&tv);
11297
10f2d63a
VZ
11298; return 0; }
11299EOF
f49f2b0c 11300if { (eval echo configure:11301: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10f2d63a 11301 rm -rf conftest*
afc31813 11302 wx_cv_func_gettimeofday_has_2_args=no
10f2d63a
VZ
11303else
11304 echo "configure: failed program was:" >&5
11305 cat conftest.$ac_ext >&5
11306 rm -rf conftest*
afc31813
VZ
11307 wx_cv_func_gettimeofday_has_2_args=unknown
11308
10f2d63a
VZ
11309fi
11310rm -f conftest*
afc31813 11311
10f2d63a
VZ
11312fi
11313rm -f conftest*
afc31813 11314 ac_ext=c
10f2d63a
VZ
11315# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11316ac_cpp='$CPP $CPPFLAGS'
11317ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11318ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11319cross_compiling=$ac_cv_prog_cc_cross
11320
afc31813
VZ
11321
11322fi
11323
11324echo "$ac_t""$wx_cv_func_gettimeofday_has_2_args" 1>&6
c63c7106 11325
afc31813
VZ
11326 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
11327 cat >> confdefs.h <<\EOF
11328#define WX_GETTIMEOFDAY_NO_TZ 1
11329EOF
11330
11331 fi
11332 fi
11333
11334 cat >> confdefs.h <<\EOF
11335#define wxUSE_TIMEDATE 1
11336EOF
11337
11338 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
11339fi
11340
11341
11342if test "$wxUSE_SOCKETS" = "yes"; then
c63c7106 11343 echo $ac_n "checking for socket""... $ac_c" 1>&6
f49f2b0c 11344echo "configure:11345: checking for socket" >&5
c63c7106
VZ
11345if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
11346 echo $ac_n "(cached) $ac_c" 1>&6
11347else
11348 cat > conftest.$ac_ext <<EOF
f49f2b0c 11349#line 11350 "configure"
c63c7106
VZ
11350#include "confdefs.h"
11351/* System header to define __stub macros and hopefully few prototypes,
11352 which can conflict with char socket(); below. */
11353#include <assert.h>
11354/* Override any gcc2 internal prototype to avoid an error. */
11355/* We use char because int might match the return type of a gcc2
11356 builtin and then its argument prototype would still apply. */
11357char socket();
69ffe1d2 11358char (*f)();
c63c7106
VZ
11359
11360int main() {
11361
11362/* The GNU C library defines this for functions which it implements
11363 to always fail with ENOSYS. Some functions are actually named
11364 something starting with __ and the normal name is an alias. */
11365#if defined (__stub_socket) || defined (__stub___socket)
11366choke me
11367#else
69ffe1d2 11368f = socket;
c63c7106
VZ
11369#endif
11370
11371; return 0; }
11372EOF
f49f2b0c 11373if { (eval echo configure:11374: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
c63c7106
VZ
11374 rm -rf conftest*
11375 eval "ac_cv_func_socket=yes"
11376else
11377 echo "configure: failed program was:" >&5
11378 cat conftest.$ac_ext >&5
11379 rm -rf conftest*
11380 eval "ac_cv_func_socket=no"
11381fi
11382rm -f conftest*
11383fi
11384
11385if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
11386 echo "$ac_t""yes" 1>&6
11387 :
11388else
11389 echo "$ac_t""no" 1>&6
11390echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
f49f2b0c 11391echo "configure:11392: checking for socket in -lsocket" >&5
c63c7106
VZ
11392ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
11393if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11394 echo $ac_n "(cached) $ac_c" 1>&6
11395else
11396 ac_save_LIBS="$LIBS"
11397LIBS="-lsocket $LIBS"
11398cat > conftest.$ac_ext <<EOF
f49f2b0c 11399#line 11400 "configure"
c63c7106
VZ
11400#include "confdefs.h"
11401/* Override any gcc2 internal prototype to avoid an error. */
11402/* We use char because int might match the return type of a gcc2
11403 builtin and then its argument prototype would still apply. */
11404char socket();
11405
11406int main() {
11407socket()
11408; return 0; }
11409EOF
f49f2b0c 11410if { (eval echo configure:11411: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
c63c7106
VZ
11411 rm -rf conftest*
11412 eval "ac_cv_lib_$ac_lib_var=yes"
11413else
11414 echo "configure: failed program was:" >&5
11415 cat conftest.$ac_ext >&5
11416 rm -rf conftest*
11417 eval "ac_cv_lib_$ac_lib_var=no"
11418fi
11419rm -f conftest*
11420LIBS="$ac_save_LIBS"
11421
11422fi
11423if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11424 echo "$ac_t""yes" 1>&6
11425 INET_LINK="$INET_LINK -lsocket"
c63c7106
VZ
11426else
11427 echo "$ac_t""no" 1>&6
afc31813
VZ
11428
11429 echo "configure: warning: socket library not found - sockets will be disabled" 1>&2
11430 wxUSE_SOCKETS=no
11431
11432
c63c7106
VZ
11433fi
11434
11435
11436fi
11437
10f2d63a
VZ
11438fi
11439
afc31813
VZ
11440if test "$wxUSE_SOCKETS" = "yes" ; then
11441
11442 ac_ext=C
11443# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11444ac_cpp='$CXXCPP $CPPFLAGS'
11445ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11446ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11447cross_compiling=$ac_cv_prog_cxx_cross
11448
11449 echo $ac_n "checking the type of the third argument of getsockname""... $ac_c" 1>&6
f49f2b0c 11450echo "configure:11451: checking the type of the third argument of getsockname" >&5
afc31813 11451 cat > conftest.$ac_ext <<EOF
f49f2b0c 11452#line 11453 "configure"
afc31813
VZ
11453#include "confdefs.h"
11454#include <sys/socket.h>
11455int main() {
11456socklen_t len; getsockname(0, 0, &len);
11457; return 0; }
11458EOF
f49f2b0c 11459if { (eval echo configure:11460: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
afc31813
VZ
11460 rm -rf conftest*
11461 cat >> confdefs.h <<\EOF
11462#define SOCKLEN_T socklen_t
11463EOF
11464 echo "$ac_t""socklen_t" 1>&6
11465else
11466 echo "configure: failed program was:" >&5
11467 cat conftest.$ac_ext >&5
11468 rm -rf conftest*
11469 cat > conftest.$ac_ext <<EOF
f49f2b0c 11470#line 11471 "configure"
afc31813
VZ
11471#include "confdefs.h"
11472#include <sys/socket.h>
11473int main() {
11474size_t len; getsockname(0, 0, &len);
11475; return 0; }
11476EOF
f49f2b0c 11477if { (eval echo configure:11478: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
afc31813
VZ
11478 rm -rf conftest*
11479 cat >> confdefs.h <<\EOF
11480#define SOCKLEN_T size_t
11481EOF
11482 echo "$ac_t""size_t" 1>&6
11483else
11484 echo "configure: failed program was:" >&5
11485 cat conftest.$ac_ext >&5
11486 rm -rf conftest*
11487 cat > conftest.$ac_ext <<EOF
f49f2b0c 11488#line 11489 "configure"
afc31813
VZ
11489#include "confdefs.h"
11490#include <sys/socket.h>
11491int main() {
11492int len; getsockname(0, 0, &len);
11493; return 0; }
11494EOF
f49f2b0c 11495if { (eval echo configure:11496: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
afc31813
VZ
11496 rm -rf conftest*
11497 cat >> confdefs.h <<\EOF
11498#define SOCKLEN_T int
11499EOF
11500 echo "$ac_t""int" 1>&6
11501else
11502 echo "configure: failed program was:" >&5
11503 cat conftest.$ac_ext >&5
11504 rm -rf conftest*
11505 echo "$ac_t""unknown" 1>&6
11506
11507fi
11508rm -f conftest*
11509
11510fi
11511rm -f conftest*
11512
11513fi
11514rm -f conftest*
11515 ac_ext=c
11516# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11517ac_cpp='$CPP $CPPFLAGS'
11518ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11519ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11520cross_compiling=$ac_cv_prog_cc_cross
11521
11522
11523 cat >> confdefs.h <<\EOF
11524#define wxUSE_SOCKETS 1
11525EOF
11526
11527 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wxsocket"
11528 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS protocol"
11529fi
11530
10f2d63a
VZ
11531
11532if test "$wxUSE_JOYSTICK" = 1; then
11533 for ac_hdr in linux/joystick.h
11534do
11535ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11536echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
f49f2b0c 11537echo "configure:11538: checking for $ac_hdr" >&5
10f2d63a
VZ
11538if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11539 echo $ac_n "(cached) $ac_c" 1>&6
11540else
11541 cat > conftest.$ac_ext <<EOF
f49f2b0c 11542#line 11543 "configure"
10f2d63a
VZ
11543#include "confdefs.h"
11544#include <$ac_hdr>
11545EOF
11546ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
f49f2b0c 11547{ (eval echo configure:11548: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
11548ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11549if test -z "$ac_err"; then
11550 rm -rf conftest*
11551 eval "ac_cv_header_$ac_safe=yes"
11552else
11553 echo "$ac_err" >&5
11554 echo "configure: failed program was:" >&5
11555 cat conftest.$ac_ext >&5
11556 rm -rf conftest*
11557 eval "ac_cv_header_$ac_safe=no"
11558fi
11559rm -f conftest*
11560fi
11561if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11562 echo "$ac_t""yes" 1>&6
11563 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11564 cat >> confdefs.h <<EOF
11565#define $ac_tr_hdr 1
11566EOF
11567
11568else
11569 echo "$ac_t""no" 1>&6
11570fi
11571done
11572
11573 if test "$ac_cv_header_linux_joystick_h" = "yes"; then
11574 cat >> confdefs.h <<\EOF
11575#define wxUSE_JOYSTICK 1
11576EOF
11577
11578 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
11579 fi
11580fi
11581
11582
11583HAVE_DL_FUNCS=0
11584HAVE_SHL_FUNCS=0
11585if test "$wxUSE_DYNLIB_CLASS" = "yes"; then
11586 for ac_func in dlopen
11587do
11588echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
f49f2b0c 11589echo "configure:11590: checking for $ac_func" >&5
10f2d63a
VZ
11590if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11591 echo $ac_n "(cached) $ac_c" 1>&6
11592else
11593 cat > conftest.$ac_ext <<EOF
f49f2b0c 11594#line 11595 "configure"
10f2d63a
VZ
11595#include "confdefs.h"
11596/* System header to define __stub macros and hopefully few prototypes,
11597 which can conflict with char $ac_func(); below. */
11598#include <assert.h>
11599/* Override any gcc2 internal prototype to avoid an error. */
11600/* We use char because int might match the return type of a gcc2
11601 builtin and then its argument prototype would still apply. */
11602char $ac_func();
69ffe1d2 11603char (*f)();
10f2d63a
VZ
11604
11605int main() {
11606
11607/* The GNU C library defines this for functions which it implements
11608 to always fail with ENOSYS. Some functions are actually named
11609 something starting with __ and the normal name is an alias. */
11610#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11611choke me
11612#else
69ffe1d2 11613f = $ac_func;
10f2d63a
VZ
11614#endif
11615
11616; return 0; }
11617EOF
f49f2b0c 11618if { (eval echo configure:11619: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
11619 rm -rf conftest*
11620 eval "ac_cv_func_$ac_func=yes"
11621else
11622 echo "configure: failed program was:" >&5
11623 cat conftest.$ac_ext >&5
11624 rm -rf conftest*
11625 eval "ac_cv_func_$ac_func=no"
11626fi
11627rm -f conftest*
11628fi
11629
11630if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11631 echo "$ac_t""yes" 1>&6
11632 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11633 cat >> confdefs.h <<EOF
11634#define $ac_tr_func 1
11635EOF
11636
11637 cat >> confdefs.h <<\EOF
11638#define HAVE_DLOPEN 1
11639EOF
11640
11641 HAVE_DL_FUNCS=1
11642
11643else
11644 echo "$ac_t""no" 1>&6
11645echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
f49f2b0c 11646echo "configure:11647: checking for dlopen in -ldl" >&5
10f2d63a
VZ
11647ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
11648if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11649 echo $ac_n "(cached) $ac_c" 1>&6
11650else
11651 ac_save_LIBS="$LIBS"
11652LIBS="-ldl $LIBS"
11653cat > conftest.$ac_ext <<EOF
f49f2b0c 11654#line 11655 "configure"
10f2d63a
VZ
11655#include "confdefs.h"
11656/* Override any gcc2 internal prototype to avoid an error. */
11657/* We use char because int might match the return type of a gcc2
11658 builtin and then its argument prototype would still apply. */
11659char dlopen();
11660
11661int main() {
11662dlopen()
11663; return 0; }
11664EOF
f49f2b0c 11665if { (eval echo configure:11666: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
11666 rm -rf conftest*
11667 eval "ac_cv_lib_$ac_lib_var=yes"
11668else
11669 echo "configure: failed program was:" >&5
11670 cat conftest.$ac_ext >&5
11671 rm -rf conftest*
11672 eval "ac_cv_lib_$ac_lib_var=no"
11673fi
11674rm -f conftest*
11675LIBS="$ac_save_LIBS"
11676
11677fi
11678if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11679 echo "$ac_t""yes" 1>&6
11680
11681 cat >> confdefs.h <<\EOF
11682#define HAVE_DLOPEN 1
11683EOF
11684
11685 HAVE_DL_FUNCS=1
11686 LIBS="$LIBS -ldl"
11687
11688else
11689 echo "$ac_t""no" 1>&6
11690
11691 for ac_func in shl_load
11692do
11693echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
f49f2b0c 11694echo "configure:11695: checking for $ac_func" >&5
10f2d63a
VZ
11695if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11696 echo $ac_n "(cached) $ac_c" 1>&6
11697else
11698 cat > conftest.$ac_ext <<EOF
f49f2b0c 11699#line 11700 "configure"
10f2d63a
VZ
11700#include "confdefs.h"
11701/* System header to define __stub macros and hopefully few prototypes,
11702 which can conflict with char $ac_func(); below. */
11703#include <assert.h>
11704/* Override any gcc2 internal prototype to avoid an error. */
11705/* We use char because int might match the return type of a gcc2
11706 builtin and then its argument prototype would still apply. */
11707char $ac_func();
69ffe1d2 11708char (*f)();
10f2d63a
VZ
11709
11710int main() {
11711
11712/* The GNU C library defines this for functions which it implements
11713 to always fail with ENOSYS. Some functions are actually named
11714 something starting with __ and the normal name is an alias. */
11715#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11716choke me
11717#else
69ffe1d2 11718f = $ac_func;
10f2d63a
VZ
11719#endif
11720
11721; return 0; }
11722EOF
f49f2b0c 11723if { (eval echo configure:11724: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
11724 rm -rf conftest*
11725 eval "ac_cv_func_$ac_func=yes"
11726else
11727 echo "configure: failed program was:" >&5
11728 cat conftest.$ac_ext >&5
11729 rm -rf conftest*
11730 eval "ac_cv_func_$ac_func=no"
11731fi
11732rm -f conftest*
11733fi
11734
11735if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11736 echo "$ac_t""yes" 1>&6
11737 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11738 cat >> confdefs.h <<EOF
11739#define $ac_tr_func 1
11740EOF
11741
11742 cat >> confdefs.h <<\EOF
11743#define HAVE_SHL_LOAD 1
11744EOF
11745
11746 HAVE_SHL_FUNCS=1
11747
11748else
11749 echo "$ac_t""no" 1>&6
11750fi
11751done
11752
11753
11754fi
11755
11756
11757fi
11758done
11759
11760
11761 if test "$HAVE_DL_FUNCS" = 0; then
11762 if test "$HAVE_SHL_FUNCS" = 0; then
11763 if test "$USE_UNIX" = 1; then
11764 echo "configure: warning: "--with-dynlib and --with-odbc will be disabled due to missing shared library support"" 1>&2
11765 wxUSE_ODBC=no
11766 wxUSE_DYNLIB_CLASS=no
11767 else
11768 echo "configure: warning: "Cannot check dynlib requirements on non-Unix platforms. dynlib remains enabled."" 1>&2
11769 fi
11770 fi
11771 fi
11772fi
11773
11774if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
11775 cat >> confdefs.h <<\EOF
11776#define wxUSE_DYNLIB_CLASS 1
11777EOF
11778
11779fi
11780
11781
11782if test "$wxUSE_UNICODE" = "yes" ; then
11783 cat >> confdefs.h <<\EOF
11784#define wxUSE_UNICODE 1
11785EOF
11786
11787fi
11788
11789if test "$wxUSE_WCSRTOMBS" = "yes" ; then
11790 cat >> confdefs.h <<\EOF
11791#define wxUSE_WCSRTOMBS 1
11792EOF
11793
11794fi
11795
11796if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
11797 cat >> confdefs.h <<\EOF
11798#define wxUSE_EXPERIMENTAL_PRINTF 1
11799EOF
11800
11801fi
11802
11803
11804IODBC_C_SRC=""
11805if test "$wxUSE_ODBC" = "yes" ; then
11806 cat >> confdefs.h <<\EOF
11807#define wxUSE_ODBC 1
11808EOF
11809
11810 WXODBCFLAG="-D_IODBC_"
11811 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
11812 IODBCOBJS="\$(IODBC_OBJS)"
11813else
11814 IODBCOBJS=
11815fi
11816
11817
11818if test "$wxUSE_POSTSCRIPT" = "yes" ; then
11819 cat >> confdefs.h <<\EOF
11820#define wxUSE_POSTSCRIPT 1
11821EOF
11822
11823fi
11824
11825cat >> confdefs.h <<\EOF
11826#define wxUSE_AFM_FOR_POSTSCRIPT 1
11827EOF
11828
11829
11830cat >> confdefs.h <<\EOF
11831#define wxUSE_NORMALIZED_PS_FONTS 1
11832EOF
11833
11834
11835
11836if test "$wxUSE_CONSTRAINTS" = "yes"; then
11837 cat >> confdefs.h <<\EOF
11838#define wxUSE_CONSTRAINTS 1
11839EOF
11840
11841 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
11842fi
11843
11844if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
11845 cat >> confdefs.h <<\EOF
11846#define wxUSE_MDI_ARCHITECTURE 1
11847EOF
11848
11849 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
11850fi
11851
11852if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
11853 cat >> confdefs.h <<\EOF
11854#define wxUSE_DOC_VIEW_ARCHITECTURE 1
11855EOF
11856
11857 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
11858 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
11859 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
11860 fi
11861fi
11862
11863if test "$wxUSE_HELP" = "yes"; then
11864 cat >> confdefs.h <<\EOF
11865#define wxUSE_HELP 1
11866EOF
11867
11868 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
11869fi
11870
11871if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
11872 if test "$wxUSE_CONSTRAINTS" != "yes"; then
11873 echo "configure: warning: Printing support cannot be used without constraints so it won't be compiled without it" 1>&2
11874 else
11875 cat >> confdefs.h <<\EOF
11876#define wxUSE_PRINTING_ARCHITECTURE 1
11877EOF
11878
11879 fi
11880 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
11881fi
11882
11883if test "$wxUSE_PROLOGIO" = "yes" ; then
11884 cat >> confdefs.h <<\EOF
11885#define wxUSE_PROLOGIO 1
11886EOF
11887
11888fi
11889
11890if test "$wxUSE_RESOURCES" = "yes" ; then
11891 if test "$wxUSE_PROLOGIO" = "yes" ; then
11892 cat >> confdefs.h <<\EOF
11893#define wxUSE_RESOURCES 1
11894EOF
11895
11896 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS resource"
11897 else
11898 echo "configure: warning: wxWindows ressource system requires PrologIO and can't be compiled without it." 1>&2
11899 fi
11900fi
11901
11902if test "$wxUSE_X_RESOURCES" = "yes"; then
11903 cat >> confdefs.h <<\EOF
11904#define wxUSE_X_RESOURCES 1
11905EOF
11906
11907fi
11908
11909
11910if test "$wxUSE_IPC" = "yes"; then
11911 cat >> confdefs.h <<\EOF
11912#define wxUSE_IPC 1
11913EOF
11914
11915fi
11916
11917if test "$wxUSE_CLIPBOARD" = "yes"; then
11918 cat >> confdefs.h <<\EOF
11919#define wxUSE_CLIPBOARD 1
11920EOF
11921
11922fi
11923
11924if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
11925 if test "$wxUSE_GTK" = 1; then
11926 if test "$WXGTK12" != 1; then
11927 echo "configure: warning: Drag and drop is only supported under GTK+ 1.2" 1>&2
11928 wxUSE_DRAG_AND_DROP=no
11929 fi
11930 fi
11931
11932 if test "$wxUSE_MOTIF" = 1; then
11933 echo "configure: warning: Drag and drop is not yet supported under Motif" 1>&2
11934 wxUSE_DRAG_AND_DROP=no
11935 fi
11936
11937 if test "$USE_WIN32" = 1; then
11938 for ac_hdr in ole2.h
11939do
11940ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11941echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
f49f2b0c 11942echo "configure:11943: checking for $ac_hdr" >&5
10f2d63a
VZ
11943if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11944 echo $ac_n "(cached) $ac_c" 1>&6
11945else
11946 cat > conftest.$ac_ext <<EOF
f49f2b0c 11947#line 11948 "configure"
10f2d63a
VZ
11948#include "confdefs.h"
11949#include <$ac_hdr>
11950EOF
11951ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
f49f2b0c 11952{ (eval echo configure:11953: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
11953ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11954if test -z "$ac_err"; then
11955 rm -rf conftest*
11956 eval "ac_cv_header_$ac_safe=yes"
11957else
11958 echo "$ac_err" >&5
11959 echo "configure: failed program was:" >&5
11960 cat conftest.$ac_ext >&5
11961 rm -rf conftest*
11962 eval "ac_cv_header_$ac_safe=no"
11963fi
11964rm -f conftest*
11965fi
11966if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11967 echo "$ac_t""yes" 1>&6
11968 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11969 cat >> confdefs.h <<EOF
11970#define $ac_tr_hdr 1
11971EOF
11972
11973else
11974 echo "$ac_t""no" 1>&6
11975fi
11976done
11977
11978 if test "x$HAVE_OLE2_H" = x ; then
11979 echo "configure: warning: Drag and drop disabled because OLE headers not found" 1>&2
11980 wxUSE_DRAG_AND_DROP=no
11981 fi
11982 fi
11983
11984 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
11985 cat >> confdefs.h <<\EOF
11986#define wxUSE_DRAG_AND_DROP 1
11987EOF
11988
11989 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
11990 fi
11991
11992fi
11993
11994if test "$wxUSE_SPLINES" = "yes" ; then
11995 cat >> confdefs.h <<\EOF
11996#define wxUSE_SPLINES 1
11997EOF
11998
11999fi
12000
12001
12002if test "$wxUSE_ACCEL" = "yes"; then
12003 cat >> confdefs.h <<\EOF
12004#define wxUSE_ACCEL 1
12005EOF
12006
12007fi
12008
12009if test "$wxUSE_CARET" = "yes"; then
12010 cat >> confdefs.h <<\EOF
12011#define wxUSE_CARET 1
12012EOF
12013
12014 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
12015fi
12016
12017if test "$wxUSE_COMBOBOX" = "yes"; then
12018 cat >> confdefs.h <<\EOF
12019#define wxUSE_COMBOBOX 1
12020EOF
12021
12022fi
12023
12024if test "$wxUSE_CHOICE" = "yes"; then
12025 cat >> confdefs.h <<\EOF
12026#define wxUSE_CHOICE 1
12027EOF
12028
12029fi
12030
12031if test "$wxUSE_BMPBUTTON" = "yes"; then
12032 cat >> confdefs.h <<\EOF
12033#define wxUSE_BMPBUTTON 1
12034EOF
12035
12036fi
12037
12038if test "$wxUSE_CHECKBOX" = "yes"; then
12039 cat >> confdefs.h <<\EOF
12040#define wxUSE_CHECKBOX 1
12041EOF
12042
12043fi
12044
12045if test "$wxUSE_CHECKLST" = "yes"; then
12046 cat >> confdefs.h <<\EOF
12047#define wxUSE_CHECKLISTBOX 1
12048EOF
12049
12050 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
12051fi
12052
12053if test "$wxUSE_GAUGE" = "yes"; then
12054 cat >> confdefs.h <<\EOF
12055#define wxUSE_GAUGE 1
12056EOF
12057
12058fi
12059
12060if test "$wxUSE_GRID" = "yes"; then
12061 cat >> confdefs.h <<\EOF
12062#define wxUSE_GRID 1
12063EOF
12064
12065 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
12066fi
12067
12068if test "$wxUSE_NEW_GRID" = "yes"; then
12069 cat >> confdefs.h <<\EOF
12070#define wxUSE_NEW_GRID 1
12071EOF
12072
12073 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS newgrid"
12074fi
12075
12076if test "$wxUSE_IMAGLIST" = "yes"; then
12077 cat >> confdefs.h <<\EOF
12078#define wxUSE_IMAGLIST 1
12079EOF
12080
12081fi
12082
12083if test "$wxUSE_LISTBOX" = "yes"; then
12084 cat >> confdefs.h <<\EOF
12085#define wxUSE_LISTBOX 1
12086EOF
12087
12088fi
12089
12090if test "$wxUSE_LISTCTRL" = "yes"; then
12091 if test "$wxUSE_IMAGLIST" = "yes"; then
12092 cat >> confdefs.h <<\EOF
12093#define wxUSE_LISTCTRL 1
12094EOF
12095
12096 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
12097 else
12098 echo "configure: warning: wxListCtrl requires wxImageList and won't be compiled without it" 1>&2
12099 fi
12100fi
12101
12102if test "$wxUSE_NOTEBOOK" = "yes"; then
12103 cat >> confdefs.h <<\EOF
12104#define wxUSE_NOTEBOOK 1
12105EOF
12106
12107 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
12108fi
12109
12110if test "$wxUSE_RADIOBOX" = "yes"; then
12111 cat >> confdefs.h <<\EOF
12112#define wxUSE_RADIOBOX 1
12113EOF
12114
12115fi
12116
12117if test "$wxUSE_RADIOBTN" = "yes"; then
12118 cat >> confdefs.h <<\EOF
12119#define wxUSE_RADIOBTN 1
12120EOF
12121
12122fi
12123
12124if test "$wxUSE_SASH" = "yes"; then
12125 cat >> confdefs.h <<\EOF
12126#define wxUSE_SASH 1
12127EOF
12128
12129 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
12130fi
12131
12132if test "$wxUSE_SCROLLBAR" = "yes"; then
12133 cat >> confdefs.h <<\EOF
12134#define wxUSE_SCROLLBAR 1
12135EOF
12136
741a9306 12137 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
10f2d63a
VZ
12138fi
12139
12140if test "$wxUSE_SLIDER" = "yes"; then
12141 cat >> confdefs.h <<\EOF
12142#define wxUSE_SLIDER 1
12143EOF
12144
12145fi
12146
12147if test "$wxUSE_SPINBTN" = "yes"; then
12148 cat >> confdefs.h <<\EOF
12149#define wxUSE_SPINBTN 1
12150EOF
12151
12152fi
12153
12154if test "$wxUSE_SPLITTER" = "yes"; then
12155 cat >> confdefs.h <<\EOF
12156#define wxUSE_SPLITTER 1
12157EOF
12158
12159 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
12160fi
12161
12162if test "$wxUSE_STATBMP" = "yes"; then
12163 cat >> confdefs.h <<\EOF
12164#define wxUSE_STATBMP 1
12165EOF
12166
12167fi
12168
12169if test "$wxUSE_STATBOX" = "yes"; then
12170 cat >> confdefs.h <<\EOF
12171#define wxUSE_STATBOX 1
12172EOF
12173
12174fi
12175
12176if test "$wxUSE_STATLINE" = "yes"; then
12177 if test "$wxUSE_WINE" = 1 ; then
12178 echo "configure: warning: wxStaticLine is not supported under WINE" 1>&2
12179 else
12180 cat >> confdefs.h <<\EOF
12181#define wxUSE_STATLINE 1
12182EOF
12183
12184 fi
12185fi
12186
12187if test "$wxUSE_STATUSBAR" = "yes"; then
12188 cat >> confdefs.h <<\EOF
12189#define wxUSE_STATUSBAR 1
12190EOF
12191
12192fi
12193
12194if test "$wxUSE_TABDIALOG" = "yes"; then
12195 cat >> confdefs.h <<\EOF
12196#define wxUSE_TAB_DIALOG 1
12197EOF
12198
12199 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab"
12200fi
12201
12202if test "$wxUSE_TOOLBAR" = "yes"; then
12203 cat >> confdefs.h <<\EOF
12204#define wxUSE_TOOLBAR 1
12205EOF
12206
12207 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
12208fi
12209
12210if test "$wxUSE_TOOLTIPS" = "yes"; then
12211 if test "$wxUSE_MOTIF" = 1; then
12212 echo "configure: warning: wxTooltip not supported yet under Motif" 1>&2
12213 else
12214 if test "$wxUSE_WINE" = 1; then
12215 echo "configure: warning: wxTooltip not supported under WINE" 1>&2
12216 else
12217 cat >> confdefs.h <<\EOF
12218#define wxUSE_TOOLTIPS 1
12219EOF
12220
12221 fi
12222 fi
12223fi
12224
12225if test "$wxUSE_TREECTRL" = "yes"; then
12226 if test "$wxUSE_IMAGLIST" = "yes"; then
12227 cat >> confdefs.h <<\EOF
12228#define wxUSE_TREECTRL 1
12229EOF
12230
12231 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
12232 else
12233 echo "configure: warning: wxTreeCtrl requires wxImageList and won't be compiled without it" 1>&2
12234 fi
12235fi
12236
12237
12238
12239if test "$wxUSE_METAFILE" = "yes"; then
12240 cat >> confdefs.h <<\EOF
12241#define wxUSE_METAFILE 1
12242EOF
12243
12244fi
12245
12246if test "$wxUSE_DIRDLG" = "yes"; then
12247 if test "$wxUSE_CONSTRAINTS" != "yes"; then
12248 echo "configure: warning: wxDirDialog requires constraints so it won't be compiled without them" 1>&2
12249 else
12250 if test "$wxUSE_TREECTRL" != "yes"; then
12251 echo "configure: warning: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" 1>&2
12252 else
12253 cat >> confdefs.h <<\EOF
12254#define wxUSE_DIRDLG 1
12255EOF
12256
12257 fi
12258 fi
12259fi
12260
12261if test "$wxUSE_TEXTDLG" = "yes"; then
12262 cat >> confdefs.h <<\EOF
12263#define wxUSE_TEXTDLG 1
12264EOF
12265
12266fi
12267
12268if test "$wxUSE_STARTUP_TIPS" = "yes"; then
12269 if test "$wxUSE_CONSTRAINTS" != "yes"; then
12270 echo "configure: warning: Startup tips requires constraints and won't be compiled without them" 1>&2
12271 else
12272 cat >> confdefs.h <<\EOF
12273#define wxUSE_STARTUP_TIPS 1
12274EOF
12275
12276 fi
12277fi
12278
12279if test "$wxUSE_PROGRESSDLG" = "yes"; then
12280 if test "$wxUSE_CONSTRAINTS" != "yes"; then
12281 echo "configure: warning: wxProgressDialog requires constraints so it won't be compiled without them" 1>&2
12282 else
12283 cat >> confdefs.h <<\EOF
12284#define wxUSE_PROGRESSDLG 1
12285EOF
12286
12287 fi
12288fi
12289
12290if test "$wxUSE_MINIFRAME" = "yes"; then
12291 cat >> confdefs.h <<\EOF
12292#define wxUSE_MINIFRAME 1
12293EOF
12294
12295 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
12296fi
12297
12298if test "$wxUSE_HTML" = "yes"; then
12299 cat >> confdefs.h <<\EOF
12300#define wxUSE_HTML 1
12301EOF
12302
12303 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html"
12304 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS html"
12305fi
12306
12307if test "$wxUSE_VALIDATORS" = "yes"; then
12308 cat >> confdefs.h <<\EOF
12309#define wxUSE_VALIDATORS 1
12310EOF
12311
12312 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
12313fi
12314
12315if test "$wxUSE_GIF" = "yes" ; then
12316 cat >> confdefs.h <<\EOF
12317#define wxUSE_GIF 1
12318EOF
12319
12320fi
12321
12322if test "$wxUSE_PCX" = "yes" ; then
12323 cat >> confdefs.h <<\EOF
12324#define wxUSE_PCX 1
12325EOF
12326
12327fi
12328
12329if test "$wxUSE_PNM" = "yes" ; then
12330 cat >> confdefs.h <<\EOF
12331#define wxUSE_PNM 1
12332EOF
12333
12334fi
12335
12336
12337GUILIBS="$GUI_TK_LIBRARY $OPENGL_LINK $LIBPNG_LINK $ZLIB_LINK $TOOLKIT_LINK"
12338
c63c7106 12339EXTRA_LIBS="$LIBS $POSIX4_LINK $INET_LINK $WCHAR_LINK $THREADS_LINK $DMALLOC_LINK $DL_LINK"
10f2d63a
VZ
12340if test "$wxUSE_GUI" = "yes"; then
12341 EXTRA_LIBS="$EXTRA_LIBS $GUILIBS"
12342fi
12343
12344LD_LIBS="\${top_builddir}/lib/${WX_LIBRARY_NAME_STATIC} $EXTRA_LIBS"
12345
12346INCLUDES="-I. -I\${top_builddir}/include -I\${top_srcdir}/include $ZLIB_INCLUDE $PNG_INCLUDE $JPEG_INCLUDE $TOOLKIT_INCLUDE"
12347
12348if test "$GXX" = yes ; then
12349 CXXWARNINGS="-Wall"
12350 fi
12351EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE $INCLUDES"
12352
12353CFLAGS=`echo $CFLAGS $EXTRA_CFLAGS | sed 's/ \\+/ /g'`
12354CXXFLAGS=`echo $CXXFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \+/ /g'`
12355
12356if test "$wxUSE_GUI" = "yes"; then
12357
12358 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS bombs controls dialogs drawing dynamic \
741a9306 12359 font forty fractal image minimal richedit wxpoem"
10f2d63a
VZ
12360else
12361 SAMPLES_SUBDIRS=""
12362fi
12363
12364SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '`"
12365
12366
12367
12368
12369
12370
12371
12372
12373
12374
12375
12376
12377
12378
12379
12380
12381
12382
12383
12384
12385
12386
12387
12388
12389
12390
12391
12392
12393
12394
12395
12396
12397
12398
12399
12400
12401
12402
12403
12404
12405
12406
12407
12408
12409
12410
12411
12412
12413
12414
12415
12416
12417
12418
12419echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
f49f2b0c 12420echo "configure:12421: checking whether ${MAKE-make} sets \${MAKE}" >&5
10f2d63a
VZ
12421set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
12422if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
12423 echo $ac_n "(cached) $ac_c" 1>&6
12424else
12425 cat > conftestmake <<\EOF
12426all:
12427 @echo 'ac_maketemp="${MAKE}"'
12428EOF
12429# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
12430eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
12431if test -n "$ac_maketemp"; then
12432 eval ac_cv_prog_make_${ac_make}_set=yes
12433else
12434 eval ac_cv_prog_make_${ac_make}_set=no
12435fi
12436rm -f conftestmake
12437fi
12438if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
12439 echo "$ac_t""yes" 1>&6
12440 SET_MAKE=
12441else
12442 echo "$ac_t""no" 1>&6
12443 SET_MAKE="MAKE=${MAKE-make}"
12444fi
12445
12446
12447
12448
12449if test "${TOOLKIT_DIR}" = "msw" ; then
12450 GL_TOOLKIT_DIR="win"
12451else
12452 GL_TOOLKIT_DIR="${TOOLKIT_DIR}"
12453fi
12454
12455
12456trap '' 1 2 15
12457cat > confcache <<\EOF
12458# This file is a shell script that caches the results of configure
12459# tests run on this system so they can be shared between configure
12460# scripts and configure runs. It is not useful on other systems.
12461# If it contains results you don't want to keep, you may remove or edit it.
12462#
12463# By default, configure uses ./config.cache as the cache file,
12464# creating it if it does not exist already. You can give configure
12465# the --cache-file=FILE option to use a different cache file; that is
12466# what configure does when it calls configure scripts in
12467# subdirectories, so they share the cache.
12468# Giving --cache-file=/dev/null disables caching, for debugging configure.
12469# config.status only pays attention to the cache file if you give it the
12470# --recheck option to rerun configure.
12471#
12472EOF
12473# The following way of writing the cache mishandles newlines in values,
12474# but we know of no workaround that is simple, portable, and efficient.
12475# So, don't put newlines in cache variables' values.
12476# Ultrix sh set writes to stderr and can't be redirected directly,
12477# and sets the high bit in the cache file unless we assign to the vars.
12478(set) 2>&1 |
12479 case `(ac_space=' '; set | grep ac_space) 2>&1` in
12480 *ac_space=\ *)
12481 # `set' does not quote correctly, so add quotes (double-quote substitution
12482 # turns \\\\ into \\, and sed turns \\ into \).
12483 sed -n \
12484 -e "s/'/'\\\\''/g" \
12485 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
12486 ;;
12487 *)
12488 # `set' quotes correctly as required by POSIX, so do not add quotes.
12489 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
12490 ;;
12491 esac >> confcache
12492if cmp -s $cache_file confcache; then
12493 :
12494else
12495 if test -w $cache_file; then
12496 echo "updating cache $cache_file"
12497 cat confcache > $cache_file
12498 else
12499 echo "not updating unwritable cache $cache_file"
12500 fi
12501fi
12502rm -f confcache
12503
12504trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
12505
12506test "x$prefix" = xNONE && prefix=$ac_default_prefix
12507# Let make expand exec_prefix.
12508test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12509
12510# Any assignment to VPATH causes Sun make to only execute
12511# the first set of double-colon rules, so remove it if not needed.
12512# If there is a colon in the path, we need to keep it.
12513if test "x$srcdir" = x.; then
12514 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
12515fi
12516
12517trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
12518
12519DEFS=-DHAVE_CONFIG_H
12520
12521# Without the "./", some shells look in PATH for config.status.
12522: ${CONFIG_STATUS=./config.status}
12523
12524echo creating $CONFIG_STATUS
12525rm -f $CONFIG_STATUS
12526cat > $CONFIG_STATUS <<EOF
12527#! /bin/sh
12528# Generated automatically by configure.
12529# Run this file to recreate the current configuration.
12530# This directory was configured as follows,
12531# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12532#
12533# $0 $ac_configure_args
12534#
12535# Compiler output produced by configure, useful for debugging
12536# configure, is in ./config.log if it exists.
12537
12538ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
12539for ac_option
12540do
12541 case "\$ac_option" in
12542 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12543 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
12544 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
12545 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
69ffe1d2 12546 echo "$CONFIG_STATUS generated by autoconf version 2.14"
10f2d63a
VZ
12547 exit 0 ;;
12548 -help | --help | --hel | --he | --h)
12549 echo "\$ac_cs_usage"; exit 0 ;;
12550 *) echo "\$ac_cs_usage"; exit 1 ;;
12551 esac
12552done
12553
12554ac_given_srcdir=$srcdir
12555ac_given_INSTALL="$INSTALL"
12556
12557trap 'rm -fr `echo "
12558 wx-config
12559 src/make.env
12560 src/makeprog.env
12561 src/makelib.env
12562 Makefile
12563 samples/Makefile
12564 samples/bombs/Makefile
12565 samples/caret/Makefile
12566 samples/checklst/Makefile
12567 samples/config/Makefile
12568 samples/controls/Makefile
12569 samples/db/Makefile
12570 samples/dialogs/Makefile
12571 samples/docview/Makefile
12572 samples/docvwmdi/Makefile
12573 samples/dnd/Makefile
12574 samples/drawing/Makefile
12575 samples/forty/Makefile
678b92a9 12576 samples/font/Makefile
10f2d63a
VZ
12577 samples/fractal/Makefile
12578 samples/image/Makefile
12579 samples/internat/Makefile
12580 samples/layout/Makefile
12581 samples/listctrl/Makefile
12582 samples/mdi/Makefile
12583 samples/minifram/Makefile
12584 samples/minimal/Makefile
12585 samples/nettest/Makefile
12586 samples/newgrid/Makefile
12587 samples/notebook/Makefile
12588 samples/png/Makefile
12589 samples/printing/Makefile
12590 samples/proplist/Makefile
12591 samples/richedit/Makefile
12592 samples/resource/Makefile
12593 samples/sashtest/Makefile
12594 samples/scroll/Makefile
12595 samples/scrollsub/Makefile
12596 samples/splitter/Makefile
12597 samples/text/Makefile
12598 samples/thread/Makefile
12599 samples/toolbar/Makefile
12600 samples/treectrl/Makefile
12601 samples/typetest/Makefile
12602 samples/validate/Makefile
12603 samples/wxpoem/Makefile
12604 samples/wxsocket/Makefile
12605 samples/wizard/Makefile
12606 samples/html/Makefile
12607 samples/html/about/Makefile
12608 samples/html/help/Makefile
12609 samples/html/printing/Makefile
fc9c7c09 12610 samples/html/helpview/Makefile
10f2d63a
VZ
12611 samples/html/test/Makefile
12612 samples/html/zip/Makefile
12613 samples/html/virtual/Makefile
12614 samples/html/widget/Makefile
12615 utils/Makefile
12616 utils/wxMMedia2/Makefile
12617 utils/wxMMedia2/lib/Makefile
12618 utils/wxMMedia2/sample/Makefile
12619 utils/glcanvas/Makefile
12620 utils/glcanvas/${GL_TOOLKIT_DIR}/Makefile
12621 utils/ogl/Makefile
12622 utils/ogl/src/Makefile
12623 setup.h:setup.h.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
12624EOF
12625cat >> $CONFIG_STATUS <<EOF
12626
12627# Protect against being on the right side of a sed subst in config.status.
12628sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
12629 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
12630$ac_vpsub
12631$extrasub
12632s%@SHELL@%$SHELL%g
12633s%@CFLAGS@%$CFLAGS%g
12634s%@CPPFLAGS@%$CPPFLAGS%g
12635s%@CXXFLAGS@%$CXXFLAGS%g
12636s%@FFLAGS@%$FFLAGS%g
12637s%@DEFS@%$DEFS%g
12638s%@LDFLAGS@%$LDFLAGS%g
12639s%@LIBS@%$LIBS%g
12640s%@exec_prefix@%$exec_prefix%g
12641s%@prefix@%$prefix%g
12642s%@program_transform_name@%$program_transform_name%g
12643s%@bindir@%$bindir%g
12644s%@sbindir@%$sbindir%g
12645s%@libexecdir@%$libexecdir%g
12646s%@datadir@%$datadir%g
12647s%@sysconfdir@%$sysconfdir%g
12648s%@sharedstatedir@%$sharedstatedir%g
12649s%@localstatedir@%$localstatedir%g
12650s%@libdir@%$libdir%g
12651s%@includedir@%$includedir%g
12652s%@oldincludedir@%$oldincludedir%g
12653s%@infodir@%$infodir%g
12654s%@mandir@%$mandir%g
12655s%@host@%$host%g
12656s%@host_alias@%$host_alias%g
12657s%@host_cpu@%$host_cpu%g
12658s%@host_vendor@%$host_vendor%g
12659s%@host_os@%$host_os%g
12660s%@target@%$target%g
12661s%@target_alias@%$target_alias%g
12662s%@target_cpu@%$target_cpu%g
12663s%@target_vendor@%$target_vendor%g
12664s%@target_os@%$target_os%g
12665s%@build@%$build%g
12666s%@build_alias@%$build_alias%g
12667s%@build_cpu@%$build_cpu%g
12668s%@build_vendor@%$build_vendor%g
12669s%@build_os@%$build_os%g
12670s%@CC@%$CC%g
12671s%@CPP@%$CPP%g
12672s%@CXX@%$CXX%g
12673s%@CXXCPP@%$CXXCPP%g
12674s%@RANLIB@%$RANLIB%g
12675s%@AR@%$AR%g
12676s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
12677s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
12678s%@INSTALL_DATA@%$INSTALL_DATA%g
12679s%@STRIP@%$STRIP%g
12680s%@YACC@%$YACC%g
12681s%@LEX@%$LEX%g
12682s%@LEXLIB@%$LEXLIB%g
12683s%@LN_S@%$LN_S%g
12684s%@GTK_CONFIG@%$GTK_CONFIG%g
12685s%@GTK_CFLAGS@%$GTK_CFLAGS%g
12686s%@GTK_LIBS@%$GTK_LIBS%g
ab9b9eab
VZ
12687s%@X_CFLAGS@%$X_CFLAGS%g
12688s%@X_PRE_LIBS@%$X_PRE_LIBS%g
12689s%@X_LIBS@%$X_LIBS%g
12690s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
10f2d63a
VZ
12691s%@WX_MAJOR_VERSION_NUMBER@%$WX_MAJOR_VERSION_NUMBER%g
12692s%@WX_MINOR_VERSION_NUMBER@%$WX_MINOR_VERSION_NUMBER%g
12693s%@WX_RELEASE_NUMBER@%$WX_RELEASE_NUMBER%g
12694s%@WX_LIBRARY_NAME@%$WX_LIBRARY_NAME%g
12695s%@WX_LIBRARY_NAME_STATIC@%$WX_LIBRARY_NAME_STATIC%g
12696s%@WX_LIBRARY_NAME_SHARED@%$WX_LIBRARY_NAME_SHARED%g
12697s%@WX_LIBRARY@%$WX_LIBRARY%g
12698s%@WX_TARGET_LIBRARY@%$WX_TARGET_LIBRARY%g
12699s%@WX_LIBRARY_LINK1@%$WX_LIBRARY_LINK1%g
12700s%@WX_LIBRARY_LINK2@%$WX_LIBRARY_LINK2%g
12701s%@WX_LIBRARY_LINK3@%$WX_LIBRARY_LINK3%g
12702s%@PROGRAM_EXT@%$PROGRAM_EXT%g
12703s%@WX_ALL@%$WX_ALL%g
12704s%@WX_ALL_INSTALLED@%$WX_ALL_INSTALLED%g
12705s%@SHARED_LD@%$SHARED_LD%g
12706s%@PIC_FLAG@%$PIC_FLAG%g
12707s%@DEP_INFO_FLAGS@%$DEP_INFO_FLAGS%g
12708s%@WXDEBUG_DEFINE@%$WXDEBUG_DEFINE%g
12709s%@TOOLKIT@%$TOOLKIT%g
12710s%@TOOLKIT_DEF@%$TOOLKIT_DEF%g
12711s%@TOOLKIT_DIR@%$TOOLKIT_DIR%g
12712s%@TOOLKIT_INCLUDE@%$TOOLKIT_INCLUDE%g
12713s%@GUIHEADERS@%$GUIHEADERS%g
12714s%@GUIOBJS@%$GUIOBJS%g
12715s%@COMMONOBJS@%$COMMONOBJS%g
12716s%@GENERICOBJS@%$GENERICOBJS%g
12717s%@GUIDEPS@%$GUIDEPS%g
12718s%@COMMONDEPS@%$COMMONDEPS%g
12719s%@GENERICDEPS@%$GENERICDEPS%g
12720s%@IODBCOBJS@%$IODBCOBJS%g
12721s%@UNIXOBJS@%$UNIXOBJS%g
12722s%@UNIXDEPS@%$UNIXDEPS%g
12723s%@ALL_OBJECTS@%$ALL_OBJECTS%g
12724s%@ALL_DEPFILES@%$ALL_DEPFILES%g
12725s%@ALL_HEADERS@%$ALL_HEADERS%g
12726s%@GUIDIST@%$GUIDIST%g
12727s%@SRC_SUBDIRS@%$SRC_SUBDIRS%g
12728s%@INCLUDE_SUBDIRS@%$INCLUDE_SUBDIRS%g
12729s%@UTILS_SUBDIRS@%$UTILS_SUBDIRS%g
12730s%@DOCS_SUBDIRS@%$DOCS_SUBDIRS%g
12731s%@SAMPLES_SUBDIRS@%$SAMPLES_SUBDIRS%g
12732s%@USER_SUBDIRS@%$USER_SUBDIRS%g
12733s%@EXTRA_LIBS@%$EXTRA_LIBS%g
12734s%@LD_LIBS@%$LD_LIBS%g
12735s%@SET_MAKE@%$SET_MAKE%g
12736s%@GL_TOOLKIT_DIR@%$GL_TOOLKIT_DIR%g
12737
12738CEOF
12739EOF
12740
12741cat >> $CONFIG_STATUS <<\EOF
12742
12743# Split the substitutions into bite-sized pieces for seds with
12744# small command number limits, like on Digital OSF/1 and HP-UX.
12745ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
12746ac_file=1 # Number of current file.
12747ac_beg=1 # First line for current file.
12748ac_end=$ac_max_sed_cmds # Line after last line for current file.
12749ac_more_lines=:
12750ac_sed_cmds=""
12751while $ac_more_lines; do
12752 if test $ac_beg -gt 1; then
12753 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
12754 else
12755 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
12756 fi
12757 if test ! -s conftest.s$ac_file; then
12758 ac_more_lines=false
12759 rm -f conftest.s$ac_file
12760 else
12761 if test -z "$ac_sed_cmds"; then
12762 ac_sed_cmds="sed -f conftest.s$ac_file"
12763 else
12764 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
12765 fi
12766 ac_file=`expr $ac_file + 1`
12767 ac_beg=$ac_end
12768 ac_end=`expr $ac_end + $ac_max_sed_cmds`
12769 fi
12770done
12771if test -z "$ac_sed_cmds"; then
12772 ac_sed_cmds=cat
12773fi
12774EOF
12775
12776cat >> $CONFIG_STATUS <<EOF
12777
12778CONFIG_FILES=\${CONFIG_FILES-"wx-config
12779 src/make.env
12780 src/makeprog.env
12781 src/makelib.env
12782 Makefile
12783 samples/Makefile
12784 samples/bombs/Makefile
12785 samples/caret/Makefile
12786 samples/checklst/Makefile
12787 samples/config/Makefile
12788 samples/controls/Makefile
12789 samples/db/Makefile
12790 samples/dialogs/Makefile
12791 samples/docview/Makefile
12792 samples/docvwmdi/Makefile
12793 samples/dnd/Makefile
12794 samples/drawing/Makefile
12795 samples/forty/Makefile
678b92a9 12796 samples/font/Makefile
10f2d63a
VZ
12797 samples/fractal/Makefile
12798 samples/image/Makefile
12799 samples/internat/Makefile
12800 samples/layout/Makefile
12801 samples/listctrl/Makefile
12802 samples/mdi/Makefile
12803 samples/minifram/Makefile
12804 samples/minimal/Makefile
12805 samples/nettest/Makefile
12806 samples/newgrid/Makefile
12807 samples/notebook/Makefile
12808 samples/png/Makefile
12809 samples/printing/Makefile
12810 samples/proplist/Makefile
12811 samples/richedit/Makefile
12812 samples/resource/Makefile
12813 samples/sashtest/Makefile
12814 samples/scroll/Makefile
12815 samples/scrollsub/Makefile
12816 samples/splitter/Makefile
12817 samples/text/Makefile
12818 samples/thread/Makefile
12819 samples/toolbar/Makefile
12820 samples/treectrl/Makefile
12821 samples/typetest/Makefile
12822 samples/validate/Makefile
12823 samples/wxpoem/Makefile
12824 samples/wxsocket/Makefile
12825 samples/wizard/Makefile
12826 samples/html/Makefile
12827 samples/html/about/Makefile
12828 samples/html/help/Makefile
12829 samples/html/printing/Makefile
fc9c7c09 12830 samples/html/helpview/Makefile
10f2d63a
VZ
12831 samples/html/test/Makefile
12832 samples/html/zip/Makefile
12833 samples/html/virtual/Makefile
12834 samples/html/widget/Makefile
12835 utils/Makefile
12836 utils/wxMMedia2/Makefile
12837 utils/wxMMedia2/lib/Makefile
12838 utils/wxMMedia2/sample/Makefile
12839 utils/glcanvas/Makefile
12840 utils/glcanvas/${GL_TOOLKIT_DIR}/Makefile
12841 utils/ogl/Makefile
12842 utils/ogl/src/Makefile
12843 "}
12844EOF
12845cat >> $CONFIG_STATUS <<\EOF
12846for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
12847 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12848 case "$ac_file" in
12849 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
12850 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
12851 *) ac_file_in="${ac_file}.in" ;;
12852 esac
12853
12854 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
12855
12856 # Remove last slash and all that follows it. Not all systems have dirname.
12857 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
12858 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
12859 # The file is in a subdirectory.
12860 test ! -d "$ac_dir" && mkdir "$ac_dir"
12861 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
12862 # A "../" for each directory in $ac_dir_suffix.
12863 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
12864 else
12865 ac_dir_suffix= ac_dots=
12866 fi
12867
12868 case "$ac_given_srcdir" in
12869 .) srcdir=.
12870 if test -z "$ac_dots"; then top_srcdir=.
12871 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
12872 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
12873 *) # Relative path.
12874 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
12875 top_srcdir="$ac_dots$ac_given_srcdir" ;;
12876 esac
12877
12878 case "$ac_given_INSTALL" in
12879 [/$]*) INSTALL="$ac_given_INSTALL" ;;
12880 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
12881 esac
12882
12883 echo creating "$ac_file"
12884 rm -f "$ac_file"
12885 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
12886 case "$ac_file" in
12887 *Makefile*) ac_comsub="1i\\
12888# $configure_input" ;;
12889 *) ac_comsub= ;;
12890 esac
12891
12892 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
12893 sed -e "$ac_comsub
12894s%@configure_input@%$configure_input%g
12895s%@srcdir@%$srcdir%g
12896s%@top_srcdir@%$top_srcdir%g
12897s%@INSTALL@%$INSTALL%g
12898" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
12899fi; done
12900rm -f conftest.s*
12901
12902# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
12903# NAME is the cpp macro being defined and VALUE is the value it is being given.
12904#
12905# ac_d sets the value in "#define NAME VALUE" lines.
12906ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
12907ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
12908ac_dC='\3'
12909ac_dD='%g'
12910# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
12911ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
12912ac_uB='\([ ]\)%\1#\2define\3'
12913ac_uC=' '
12914ac_uD='\4%g'
12915# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
12916ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
12917ac_eB='$%\1#\2define\3'
12918ac_eC=' '
12919ac_eD='%g'
12920
12921if test "${CONFIG_HEADERS+set}" != set; then
12922EOF
12923cat >> $CONFIG_STATUS <<EOF
12924 CONFIG_HEADERS="setup.h:setup.h.in"
12925EOF
12926cat >> $CONFIG_STATUS <<\EOF
12927fi
12928for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
12929 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12930 case "$ac_file" in
12931 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
12932 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
12933 *) ac_file_in="${ac_file}.in" ;;
12934 esac
12935
12936 echo creating $ac_file
12937
12938 rm -f conftest.frag conftest.in conftest.out
12939 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
12940 cat $ac_file_inputs > conftest.in
12941
12942EOF
12943
12944# Transform confdefs.h into a sed script conftest.vals that substitutes
12945# the proper values into config.h.in to produce config.h. And first:
12946# Protect against being on the right side of a sed subst in config.status.
12947# Protect against being in an unquoted here document in config.status.
12948rm -f conftest.vals
12949cat > conftest.hdr <<\EOF
12950s/[\\&%]/\\&/g
12951s%[\\$`]%\\&%g
12952s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
12953s%ac_d%ac_u%gp
12954s%ac_u%ac_e%gp
12955EOF
12956sed -n -f conftest.hdr confdefs.h > conftest.vals
12957rm -f conftest.hdr
12958
12959# This sed command replaces #undef with comments. This is necessary, for
12960# example, in the case of _POSIX_SOURCE, which is predefined and required
12961# on some systems where configure will not decide to define it.
12962cat >> conftest.vals <<\EOF
12963s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
12964EOF
12965
12966# Break up conftest.vals because some shells have a limit on
12967# the size of here documents, and old seds have small limits too.
12968
12969rm -f conftest.tail
12970while :
12971do
12972 ac_lines=`grep -c . conftest.vals`
12973 # grep -c gives empty output for an empty file on some AIX systems.
12974 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
12975 # Write a limited-size here document to conftest.frag.
12976 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
12977 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
12978 echo 'CEOF
12979 sed -f conftest.frag conftest.in > conftest.out
12980 rm -f conftest.in
12981 mv conftest.out conftest.in
12982' >> $CONFIG_STATUS
12983 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
12984 rm -f conftest.vals
12985 mv conftest.tail conftest.vals
12986done
12987rm -f conftest.vals
12988
12989cat >> $CONFIG_STATUS <<\EOF
12990 rm -f conftest.frag conftest.h
12991 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
12992 cat conftest.in >> conftest.h
12993 rm -f conftest.in
12994 if cmp -s $ac_file conftest.h 2>/dev/null; then
12995 echo "$ac_file is unchanged"
12996 rm -f conftest.h
12997 else
12998 # Remove last slash and all that follows it. Not all systems have dirname.
12999 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
13000 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
13001 # The file is in a subdirectory.
13002 test ! -d "$ac_dir" && mkdir "$ac_dir"
13003 fi
13004 rm -f $ac_file
13005 mv conftest.h $ac_file
13006 fi
13007fi; done
13008
13009EOF
13010cat >> $CONFIG_STATUS <<EOF
13011
13012 TOOLKIT_DIR="${TOOLKIT_DIR}"
13013
13014
13015EOF
13016cat >> $CONFIG_STATUS <<\EOF
13017
13018 chmod +x wx-config
13019 if test ! -d include; then
13020 mkdir include
13021 fi
13022 if test ! -d include/wx; then
13023 mkdir include/wx
13024 fi
13025 if test ! -d include/wx/${TOOLKIT_DIR}; then
13026 mkdir include/wx/${TOOLKIT_DIR}
13027 fi
afc31813
VZ
13028 if test -f setup.h; then
13029 mv -f setup.h include/wx/${TOOLKIT_DIR}/setup.h
13030 fi
10f2d63a
VZ
13031
13032exit 0
13033EOF
13034chmod +x $CONFIG_STATUS
13035rm -fr confdefs* $ac_clean_files
13036test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
13037
13038