]> git.saurik.com Git - wxWidgets.git/blame_incremental - configure
Corrections
[wxWidgets.git] / configure
... / ...
CommitLineData
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
36
37
38
39
40
41
42# Guess values for system-dependent variables and create Makefiles.
43# Generated automatically using autoconf version 2.13
44# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
45#
46# This configure script is free software; the Free Software Foundation
47# gives unlimited permission to copy, distribute and modify it.
48
49# Defaults:
50ac_help=
51ac_default_prefix=/usr/local
52# Any additions from configure.in:
53ac_help="$ac_help
54--enable-gui use GUI classes"
55ac_help="$ac_help
56 --with-gtk use GTK+"
57ac_help="$ac_help
58 --with-motif use Motif/Lesstif"
59ac_help="$ac_help
60 --with-wine use WINE"
61ac_help="$ac_help
62 --with-cygwin use Cygwin for MS-Windows"
63ac_help="$ac_help
64 --with-mingw use GCC Minimal MS-Windows"
65ac_help="$ac_help
66 --with-pm use OS/2 Presentation Manager"
67ac_help="$ac_help
68 --with-gtk-prefix=PFX Prefix where GTK is installed"
69ac_help="$ac_help
70 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed"
71ac_help="$ac_help
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-libtiff use libtiff (TIFF file format)"
77ac_help="$ac_help
78--with-opengl use OpenGL (or Mesa)"
79ac_help="$ac_help
80--with-dmalloc use dmalloc library (www.letters.com/dmalloc)"
81ac_help="$ac_help
82--with-zlib use zlib for LZW compression"
83ac_help="$ac_help
84--with-odbc use the IODBC and wxODBC classes"
85ac_help="$ac_help
86--enable-shared create shared library code"
87ac_help="$ac_help
88--enable-burnt_name create set name in shared library "
89ac_help="$ac_help
90--enable-optimise create optimised code"
91ac_help="$ac_help
92--enable-debug same as debug_flag and debug_info"
93ac_help="$ac_help
94--enable-debug_flag set __WXDEBUG__ flag (recommended for developers!)"
95ac_help="$ac_help
96--enable-debug_info create code with debugging information"
97ac_help="$ac_help
98--enable-debug_gdb create code with extra GDB debugging information"
99ac_help="$ac_help
100--enable-debug_cntxt use wxDebugContext"
101ac_help="$ac_help
102--enable-mem_tracing create code with memory tracing"
103ac_help="$ac_help
104--enable-profile create code with profiling information"
105ac_help="$ac_help
106--enable-no_rtti create code without RTTI information"
107ac_help="$ac_help
108--enable-no_exceptions create code without exceptions information"
109ac_help="$ac_help
110--enable-permissive compile code disregarding strict ANSI"
111ac_help="$ac_help
112--enable-no_deps create code without dependency information"
113ac_help="$ac_help
114--enable-intl use internationalization system"
115ac_help="$ac_help
116--enable-config use wxConfig (and derived) classes"
117ac_help="$ac_help
118--enable-sockets use socket/network classes"
119ac_help="$ac_help
120--enable-dialupman use dialup network classes"
121ac_help="$ac_help
122--enable-ipc use interprocess communication (wxSocket etc.)"
123ac_help="$ac_help
124--enable-apple_ieee use the Apple IEEE codec"
125ac_help="$ac_help
126--enable-timedate use date/time classes"
127ac_help="$ac_help
128--enable-wave use wxWave class"
129ac_help="$ac_help
130--enable-fraction use wxFraction class"
131ac_help="$ac_help
132--enable-dynlib use wxLibrary class for DLL loading"
133ac_help="$ac_help
134--enable-longlong use wxLongLong class"
135ac_help="$ac_help
136--enable-log use logging system"
137ac_help="$ac_help
138--enable-streams use wxStream etc classes"
139ac_help="$ac_help
140--enable-file use wxFile classes"
141ac_help="$ac_help
142--enable-textfile use wxTextFile classes"
143ac_help="$ac_help
144--enable-unicode compile wxString with Unicode support"
145ac_help="$ac_help
146--enable-wcsrtombs use wcsrtombs instead of buggy (GNU libc1/Linux libc5) wcstombs"
147ac_help="$ac_help
148--enable-wxprintfv use wxWindows implementation of vprintf()"
149ac_help="$ac_help
150--enable-joystick compile in joystick support (Linux only)"
151ac_help="$ac_help
152--enable-std_iostreams use standard C++ stream classes"
153ac_help="$ac_help
154--enable-filesystem use virtual file systems classes"
155ac_help="$ac_help
156--enable-fs_inet use virtual HTTP/FTP filesystems"
157ac_help="$ac_help
158--enable-fs_zip use virtual ZIP filesystems"
159ac_help="$ac_help
160--enable-zipstream use wxZipInputStream"
161ac_help="$ac_help
162--enable-threads use threads"
163ac_help="$ac_help
164--enable-serial use class serialization"
165ac_help="$ac_help
166--enable-docview use document view architecture"
167ac_help="$ac_help
168--enable-help use help (using external browser at present)"
169ac_help="$ac_help
170--enable-constraints use layout-constraints system"
171ac_help="$ac_help
172--enable-printarch use printing architecture"
173ac_help="$ac_help
174--enable-mdi use multiple document interface architecture"
175ac_help="$ac_help
176--enable-postscript use wxPostscriptDC device context (default for gtk+)"
177ac_help="$ac_help
178--enable-prologio use Prolog IO library"
179ac_help="$ac_help
180--enable-resources use wxWindows resources"
181ac_help="$ac_help
182--enable-xresources use X resources for save (default for gtk+)"
183ac_help="$ac_help
184--enable-clipboard use wxClipboard classes"
185ac_help="$ac_help
186--enable-dnd use Drag'n'Drop classes"
187ac_help="$ac_help
188--enable-wxtree make wxTree library"
189ac_help="$ac_help
190--enable-controls use all usual controls"
191ac_help="$ac_help
192--enable-accel use accelerators"
193ac_help="$ac_help
194--enable-caret use wxCaret class"
195ac_help="$ac_help
196--enable-bmpbutton use wxBitmapButton class"
197ac_help="$ac_help
198--enable-checkbox use wxCheckBox class"
199ac_help="$ac_help
200--enable-checklst use wxCheckListBox (listbox with checkboxes) class"
201ac_help="$ac_help
202--enable-choice use wxChoice class"
203ac_help="$ac_help
204--enable-combobox use wxComboBox classes"
205ac_help="$ac_help
206--enable-gauge use wxGauge class"
207ac_help="$ac_help
208--enable-grid use wxGrid class"
209ac_help="$ac_help
210--enable-newgrid use new wxGrid class"
211ac_help="$ac_help
212--enable-imaglist use wxImageList class"
213ac_help="$ac_help
214--enable-listbox use wxListBox class"
215ac_help="$ac_help
216--enable-listctrl use wxListCtrl class"
217ac_help="$ac_help
218--enable-notebook use wxNotebook class"
219ac_help="$ac_help
220--enable-radiobox use wxRadioBox class"
221ac_help="$ac_help
222--enable-radiobtn use wxRadioButton class"
223ac_help="$ac_help
224--enable-sash use wxSashWindow class"
225ac_help="$ac_help
226--enable-scrollbar use wxScrollBar class and scrollable windows"
227ac_help="$ac_help
228--enable-slider use wxSlider class"
229ac_help="$ac_help
230--enable-spinbtn use wxSpinButton class"
231ac_help="$ac_help
232--enable-spinctrl use wxSpinCtrl class"
233ac_help="$ac_help
234--enable-splitter use wxSplitterWindow class"
235ac_help="$ac_help
236--enable-statbmp use wxStaticBitmap class"
237ac_help="$ac_help
238--enable-statbox use wxStaticBox class"
239ac_help="$ac_help
240--enable-statline use wxStaticLine class"
241ac_help="$ac_help
242--enable-statusbar use wxStatusBar class"
243ac_help="$ac_help
244--enable-tabdialog use wxTabControl class"
245ac_help="$ac_help
246--enable-toolbar use wxToolBar class"
247ac_help="$ac_help
248--enable-tbarnative use native wxToolBar class"
249ac_help="$ac_help
250--enable-tbarsmpl use wxToolBarSimple class"
251ac_help="$ac_help
252--enable-treectrl use wxTreeCtrl class"
253ac_help="$ac_help
254--enable-commondlg use common dialogs (wxDirDialog, wxProgressDialog, wxTextDialog, ...)"
255ac_help="$ac_help
256--enable-dirdlg use wxDirDialog"
257ac_help="$ac_help
258--enable-textdlg use wxTextDialog"
259ac_help="$ac_help
260--enable-tipdlg use startup tips"
261ac_help="$ac_help
262--enable-progressdlg use wxProgressDialog"
263ac_help="$ac_help
264--enable-miniframe use wxMiniFrame class"
265ac_help="$ac_help
266--enable-html use wxHTML sub-library"
267ac_help="$ac_help
268--enable-tooltips use wxToolTip class"
269ac_help="$ac_help
270--enable-splines use spline drawing code"
271ac_help="$ac_help
272--enable-validators use wxValidator and derived classes"
273ac_help="$ac_help
274--enable-busyinfo use wxBusyInfo"
275ac_help="$ac_help
276--enable-plot use wxPlot"
277ac_help="$ac_help
278--enable-gif use gif images (GIF file format)"
279ac_help="$ac_help
280--enable-pcx use pcx images (PCX file format)"
281ac_help="$ac_help
282--enable-pnm use pnm images (PNM file format)"
283ac_help="$ac_help
284 --with-x use the X Window System"
285
286# Initialize some variables set by options.
287# The variables have the same names as the options, with
288# dashes changed to underlines.
289build=NONE
290cache_file=./config.cache
291exec_prefix=NONE
292host=NONE
293no_create=
294nonopt=NONE
295no_recursion=
296prefix=NONE
297program_prefix=NONE
298program_suffix=NONE
299program_transform_name=s,x,x,
300silent=
301site=
302srcdir=
303target=NONE
304verbose=
305x_includes=NONE
306x_libraries=NONE
307bindir='${exec_prefix}/bin'
308sbindir='${exec_prefix}/sbin'
309libexecdir='${exec_prefix}/libexec'
310datadir='${prefix}/share'
311sysconfdir='${prefix}/etc'
312sharedstatedir='${prefix}/com'
313localstatedir='${prefix}/var'
314libdir='${exec_prefix}/lib'
315includedir='${prefix}/include'
316oldincludedir='/usr/include'
317infodir='${prefix}/info'
318mandir='${prefix}/man'
319
320# Initialize some other variables.
321subdirs=
322MFLAGS= MAKEFLAGS=
323SHELL=${CONFIG_SHELL-/bin/sh}
324# Maximum number of lines to put in a shell here document.
325ac_max_here_lines=12
326
327ac_prev=
328for ac_option
329do
330
331 # If the previous option needs an argument, assign it.
332 if test -n "$ac_prev"; then
333 eval "$ac_prev=\$ac_option"
334 ac_prev=
335 continue
336 fi
337
338 case "$ac_option" in
339 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
340 *) ac_optarg= ;;
341 esac
342
343 # Accept the important Cygnus configure options, so we can diagnose typos.
344
345 case "$ac_option" in
346
347 -bindir | --bindir | --bindi | --bind | --bin | --bi)
348 ac_prev=bindir ;;
349 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
350 bindir="$ac_optarg" ;;
351
352 -build | --build | --buil | --bui | --bu)
353 ac_prev=build ;;
354 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
355 build="$ac_optarg" ;;
356
357 -cache-file | --cache-file | --cache-fil | --cache-fi \
358 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
359 ac_prev=cache_file ;;
360 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
361 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
362 cache_file="$ac_optarg" ;;
363
364 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
365 ac_prev=datadir ;;
366 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
367 | --da=*)
368 datadir="$ac_optarg" ;;
369
370 -disable-* | --disable-*)
371 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
372 # Reject names that are not valid shell variable names.
373 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
374 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
375 fi
376 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
377 eval "enable_${ac_feature}=no" ;;
378
379 -enable-* | --enable-*)
380 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
381 # Reject names that are not valid shell variable names.
382 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
383 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
384 fi
385 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
386 case "$ac_option" in
387 *=*) ;;
388 *) ac_optarg=yes ;;
389 esac
390 eval "enable_${ac_feature}='$ac_optarg'" ;;
391
392 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
393 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
394 | --exec | --exe | --ex)
395 ac_prev=exec_prefix ;;
396 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
397 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
398 | --exec=* | --exe=* | --ex=*)
399 exec_prefix="$ac_optarg" ;;
400
401 -gas | --gas | --ga | --g)
402 # Obsolete; use --with-gas.
403 with_gas=yes ;;
404
405 -help | --help | --hel | --he)
406 # Omit some internal or obsolete options to make the list less imposing.
407 # This message is too long to be a string in the A/UX 3.1 sh.
408 cat << EOF
409Usage: configure [options] [host]
410Options: [defaults in brackets after descriptions]
411Configuration:
412 --cache-file=FILE cache test results in FILE
413 --help print this message
414 --no-create do not create output files
415 --quiet, --silent do not print \`checking...' messages
416 --version print the version of autoconf that created configure
417Directory and file names:
418 --prefix=PREFIX install architecture-independent files in PREFIX
419 [$ac_default_prefix]
420 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
421 [same as prefix]
422 --bindir=DIR user executables in DIR [EPREFIX/bin]
423 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
424 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
425 --datadir=DIR read-only architecture-independent data in DIR
426 [PREFIX/share]
427 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
428 --sharedstatedir=DIR modifiable architecture-independent data in DIR
429 [PREFIX/com]
430 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
431 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
432 --includedir=DIR C header files in DIR [PREFIX/include]
433 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
434 --infodir=DIR info documentation in DIR [PREFIX/info]
435 --mandir=DIR man documentation in DIR [PREFIX/man]
436 --srcdir=DIR find the sources in DIR [configure dir or ..]
437 --program-prefix=PREFIX prepend PREFIX to installed program names
438 --program-suffix=SUFFIX append SUFFIX to installed program names
439 --program-transform-name=PROGRAM
440 run sed PROGRAM on installed program names
441EOF
442 cat << EOF
443Host type:
444 --build=BUILD configure for building on BUILD [BUILD=HOST]
445 --host=HOST configure for HOST [guessed]
446 --target=TARGET configure for TARGET [TARGET=HOST]
447Features and packages:
448 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
449 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
450 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
451 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
452 --x-includes=DIR X include files are in DIR
453 --x-libraries=DIR X library files are in DIR
454EOF
455 if test -n "$ac_help"; then
456 echo "--enable and --with options recognized:$ac_help"
457 fi
458 exit 0 ;;
459
460 -host | --host | --hos | --ho)
461 ac_prev=host ;;
462 -host=* | --host=* | --hos=* | --ho=*)
463 host="$ac_optarg" ;;
464
465 -includedir | --includedir | --includedi | --included | --include \
466 | --includ | --inclu | --incl | --inc)
467 ac_prev=includedir ;;
468 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
469 | --includ=* | --inclu=* | --incl=* | --inc=*)
470 includedir="$ac_optarg" ;;
471
472 -infodir | --infodir | --infodi | --infod | --info | --inf)
473 ac_prev=infodir ;;
474 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
475 infodir="$ac_optarg" ;;
476
477 -libdir | --libdir | --libdi | --libd)
478 ac_prev=libdir ;;
479 -libdir=* | --libdir=* | --libdi=* | --libd=*)
480 libdir="$ac_optarg" ;;
481
482 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
483 | --libexe | --libex | --libe)
484 ac_prev=libexecdir ;;
485 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
486 | --libexe=* | --libex=* | --libe=*)
487 libexecdir="$ac_optarg" ;;
488
489 -localstatedir | --localstatedir | --localstatedi | --localstated \
490 | --localstate | --localstat | --localsta | --localst \
491 | --locals | --local | --loca | --loc | --lo)
492 ac_prev=localstatedir ;;
493 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
494 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
495 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
496 localstatedir="$ac_optarg" ;;
497
498 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
499 ac_prev=mandir ;;
500 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
501 mandir="$ac_optarg" ;;
502
503 -nfp | --nfp | --nf)
504 # Obsolete; use --without-fp.
505 with_fp=no ;;
506
507 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
508 | --no-cr | --no-c)
509 no_create=yes ;;
510
511 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
512 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
513 no_recursion=yes ;;
514
515 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
516 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
517 | --oldin | --oldi | --old | --ol | --o)
518 ac_prev=oldincludedir ;;
519 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
520 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
521 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
522 oldincludedir="$ac_optarg" ;;
523
524 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
525 ac_prev=prefix ;;
526 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
527 prefix="$ac_optarg" ;;
528
529 -program-prefix | --program-prefix | --program-prefi | --program-pref \
530 | --program-pre | --program-pr | --program-p)
531 ac_prev=program_prefix ;;
532 -program-prefix=* | --program-prefix=* | --program-prefi=* \
533 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
534 program_prefix="$ac_optarg" ;;
535
536 -program-suffix | --program-suffix | --program-suffi | --program-suff \
537 | --program-suf | --program-su | --program-s)
538 ac_prev=program_suffix ;;
539 -program-suffix=* | --program-suffix=* | --program-suffi=* \
540 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
541 program_suffix="$ac_optarg" ;;
542
543 -program-transform-name | --program-transform-name \
544 | --program-transform-nam | --program-transform-na \
545 | --program-transform-n | --program-transform- \
546 | --program-transform | --program-transfor \
547 | --program-transfo | --program-transf \
548 | --program-trans | --program-tran \
549 | --progr-tra | --program-tr | --program-t)
550 ac_prev=program_transform_name ;;
551 -program-transform-name=* | --program-transform-name=* \
552 | --program-transform-nam=* | --program-transform-na=* \
553 | --program-transform-n=* | --program-transform-=* \
554 | --program-transform=* | --program-transfor=* \
555 | --program-transfo=* | --program-transf=* \
556 | --program-trans=* | --program-tran=* \
557 | --progr-tra=* | --program-tr=* | --program-t=*)
558 program_transform_name="$ac_optarg" ;;
559
560 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
561 | -silent | --silent | --silen | --sile | --sil)
562 silent=yes ;;
563
564 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
565 ac_prev=sbindir ;;
566 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
567 | --sbi=* | --sb=*)
568 sbindir="$ac_optarg" ;;
569
570 -sharedstatedir | --sharedstatedir | --sharedstatedi \
571 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
572 | --sharedst | --shareds | --shared | --share | --shar \
573 | --sha | --sh)
574 ac_prev=sharedstatedir ;;
575 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
576 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
577 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
578 | --sha=* | --sh=*)
579 sharedstatedir="$ac_optarg" ;;
580
581 -site | --site | --sit)
582 ac_prev=site ;;
583 -site=* | --site=* | --sit=*)
584 site="$ac_optarg" ;;
585
586 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
587 ac_prev=srcdir ;;
588 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
589 srcdir="$ac_optarg" ;;
590
591 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
592 | --syscon | --sysco | --sysc | --sys | --sy)
593 ac_prev=sysconfdir ;;
594 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
595 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
596 sysconfdir="$ac_optarg" ;;
597
598 -target | --target | --targe | --targ | --tar | --ta | --t)
599 ac_prev=target ;;
600 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
601 target="$ac_optarg" ;;
602
603 -v | -verbose | --verbose | --verbos | --verbo | --verb)
604 verbose=yes ;;
605
606 -version | --version | --versio | --versi | --vers)
607 echo "configure generated by autoconf version 2.13"
608 exit 0 ;;
609
610 -with-* | --with-*)
611 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
612 # Reject names that are not valid shell variable names.
613 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
614 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
615 fi
616 ac_package=`echo $ac_package| sed 's/-/_/g'`
617 case "$ac_option" in
618 *=*) ;;
619 *) ac_optarg=yes ;;
620 esac
621 eval "with_${ac_package}='$ac_optarg'" ;;
622
623 -without-* | --without-*)
624 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
625 # Reject names that are not valid shell variable names.
626 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
627 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
628 fi
629 ac_package=`echo $ac_package| sed 's/-/_/g'`
630 eval "with_${ac_package}=no" ;;
631
632 --x)
633 # Obsolete; use --with-x.
634 with_x=yes ;;
635
636 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
637 | --x-incl | --x-inc | --x-in | --x-i)
638 ac_prev=x_includes ;;
639 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
640 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
641 x_includes="$ac_optarg" ;;
642
643 -x-libraries | --x-libraries | --x-librarie | --x-librari \
644 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
645 ac_prev=x_libraries ;;
646 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
647 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
648 x_libraries="$ac_optarg" ;;
649
650 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
651 ;;
652
653 *)
654 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
655 echo "configure: warning: $ac_option: invalid host type" 1>&2
656 fi
657 if test "x$nonopt" != xNONE; then
658 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
659 fi
660 nonopt="$ac_option"
661 ;;
662
663 esac
664done
665
666if test -n "$ac_prev"; then
667 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
668fi
669
670trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
671
672# File descriptor usage:
673# 0 standard input
674# 1 file creation
675# 2 errors and warnings
676# 3 some systems may open it to /dev/tty
677# 4 used on the Kubota Titan
678# 6 checking for... messages and results
679# 5 compiler messages saved in config.log
680if test "$silent" = yes; then
681 exec 6>/dev/null
682else
683 exec 6>&1
684fi
685exec 5>./config.log
686
687echo "\
688This file contains any messages produced by compilers while
689running configure, to aid debugging if configure makes a mistake.
690" 1>&5
691
692# Strip out --no-create and --no-recursion so they do not pile up.
693# Also quote any args containing shell metacharacters.
694ac_configure_args=
695for ac_arg
696do
697 case "$ac_arg" in
698 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
699 | --no-cr | --no-c) ;;
700 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
701 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
702 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
703 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
704 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
705 esac
706done
707
708# NLS nuisances.
709# Only set these to C if already set. These must not be set unconditionally
710# because not all systems understand e.g. LANG=C (notably SCO).
711# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
712# Non-C LC_CTYPE values break the ctype check.
713if test "${LANG+set}" = set; then LANG=C; export LANG; fi
714if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
715if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
716if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
717
718# confdefs.h avoids OS command line length limits that DEFS can exceed.
719rm -rf conftest* confdefs.h
720# AIX cpp loses on an empty file, so make sure it contains at least a newline.
721echo > confdefs.h
722
723# A filename unique to this package, relative to the directory that
724# configure is in, which we can look for to find out if srcdir is correct.
725ac_unique_file=wx-config.in
726
727# Find the source files, if location was not specified.
728if test -z "$srcdir"; then
729 ac_srcdir_defaulted=yes
730 # Try the directory containing this script, then its parent.
731 ac_prog=$0
732 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
733 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
734 srcdir=$ac_confdir
735 if test ! -r $srcdir/$ac_unique_file; then
736 srcdir=..
737 fi
738else
739 ac_srcdir_defaulted=no
740fi
741if test ! -r $srcdir/$ac_unique_file; then
742 if test "$ac_srcdir_defaulted" = yes; then
743 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
744 else
745 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
746 fi
747fi
748srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
749
750# Prefer explicitly selected file to automatically selected ones.
751if test -z "$CONFIG_SITE"; then
752 if test "x$prefix" != xNONE; then
753 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
754 else
755 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
756 fi
757fi
758for ac_site_file in $CONFIG_SITE; do
759 if test -r "$ac_site_file"; then
760 echo "loading site script $ac_site_file"
761 . "$ac_site_file"
762 fi
763done
764
765if test -r "$cache_file"; then
766 echo "loading cache $cache_file"
767 . $cache_file
768else
769 echo "creating cache $cache_file"
770 > $cache_file
771fi
772
773ac_ext=c
774# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
775ac_cpp='$CPP $CPPFLAGS'
776ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
777ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
778cross_compiling=$ac_cv_prog_cc_cross
779
780ac_exeext=
781ac_objext=o
782if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
783 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
784 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
785 ac_n= ac_c='
786' ac_t=' '
787 else
788 ac_n=-n ac_c= ac_t=
789 fi
790else
791 ac_n= ac_c='\c' ac_t=
792fi
793
794
795
796ac_aux_dir=
797for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
798 if test -f $ac_dir/install-sh; then
799 ac_aux_dir=$ac_dir
800 ac_install_sh="$ac_aux_dir/install-sh -c"
801 break
802 elif test -f $ac_dir/install.sh; then
803 ac_aux_dir=$ac_dir
804 ac_install_sh="$ac_aux_dir/install.sh -c"
805 break
806 fi
807done
808if test -z "$ac_aux_dir"; then
809 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
810fi
811ac_config_guess=$ac_aux_dir/config.guess
812ac_config_sub=$ac_aux_dir/config.sub
813ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
814
815
816# Do some error checking and defaulting for the host and target type.
817# The inputs are:
818# configure --host=HOST --target=TARGET --build=BUILD NONOPT
819#
820# The rules are:
821# 1. You are not allowed to specify --host, --target, and nonopt at the
822# same time.
823# 2. Host defaults to nonopt.
824# 3. If nonopt is not specified, then host defaults to the current host,
825# as determined by config.guess.
826# 4. Target and build default to nonopt.
827# 5. If nonopt is not specified, then target and build default to host.
828
829# The aliases save the names the user supplied, while $host etc.
830# will get canonicalized.
831case $host---$target---$nonopt in
832NONE---*---* | *---NONE---* | *---*---NONE) ;;
833*) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
834esac
835
836
837# Make sure we can run config.sub.
838if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
839else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
840fi
841
842echo $ac_n "checking host system type""... $ac_c" 1>&6
843echo "configure:844: checking host system type" >&5
844
845host_alias=$host
846case "$host_alias" in
847NONE)
848 case $nonopt in
849 NONE)
850 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
851 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
852 fi ;;
853 *) host_alias=$nonopt ;;
854 esac ;;
855esac
856
857host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
858host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
859host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
860host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
861echo "$ac_t""$host" 1>&6
862
863echo $ac_n "checking target system type""... $ac_c" 1>&6
864echo "configure:865: checking target system type" >&5
865
866target_alias=$target
867case "$target_alias" in
868NONE)
869 case $nonopt in
870 NONE) target_alias=$host_alias ;;
871 *) target_alias=$nonopt ;;
872 esac ;;
873esac
874
875target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
876target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
877target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
878target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
879echo "$ac_t""$target" 1>&6
880
881echo $ac_n "checking build system type""... $ac_c" 1>&6
882echo "configure:883: checking build system type" >&5
883
884build_alias=$build
885case "$build_alias" in
886NONE)
887 case $nonopt in
888 NONE) build_alias=$host_alias ;;
889 *) build_alias=$nonopt ;;
890 esac ;;
891esac
892
893build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
894build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
895build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
896build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
897echo "$ac_t""$build" 1>&6
898
899test "$host_alias" != "$target_alias" &&
900 test "$program_prefix$program_suffix$program_transform_name" = \
901 NONENONEs,x,x, &&
902 program_prefix=${target_alias}-
903
904
905
906WX_MAJOR_VERSION_NUMBER=2
907WX_MINOR_VERSION_NUMBER=1
908WX_RELEASE_NUMBER=14
909
910WX_INTERFACE_AGE=0
911WX_BINARY_AGE=0
912
913WX_VERSION=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER.$WX_RELEASE_NUMBER
914
915WX_RELEASE=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER
916WX_CURRENT=`expr $WX_RELEASE_NUMBER - $WX_INTERFACE_AGE`
917WX_REVISION=$WX_INTERFACE_AGE
918WX_AGE=`expr $WX_BINARY_AGE - $WX_INTERFACE_AGE`
919
920
921USE_UNIX=1
922USE_WIN32=0
923USE_BEOS=0
924
925USE_LINUX=
926USE_SGI=
927USE_HPUX=
928USE_SYSV=
929USE_SVR4=
930USE_AIX=
931USE_SUN=
932USE_SOLARIS=
933USE_SUNOS=
934USE_ALPHA=
935USE_OSF=
936USE_BSD=
937USE_FREEBSD=
938USE_VMS=
939USE_ULTRIX=
940USE_CYGWIN=
941USE_MINGW=
942USE_DATA_GENERAL=
943
944NEEDS_D_REENTRANT_FOR_R_FUNCS=0
945
946ALL_TOOLKITS="CYGWIN GTK MINGW MOTIF WINE PM"
947
948DEFAULT_wxUSE_GTK=0
949DEFAULT_wxUSE_MOTIF=0
950DEFAULT_wxUSE_MSW=0
951DEFAULT_wxUSE_WINE=0
952DEFAULT_wxUSE_PM=0
953
954DEFAULT_DEFAULT_wxUSE_GTK=0
955DEFAULT_DEFAULT_wxUSE_MOTIF=0
956DEFAULT_DEFAULT_wxUSE_MSW=0
957DEFAULT_DEFAULT_wxUSE_WINE=0
958DEFAULT_DEFAULT_wxUSE_PM=0
959
960PROGRAM_EXT=
961
962case "${host}" in
963 *-hp-hpux* )
964 USE_HPUX=1
965 DEFAULT_DEFAULT_wxUSE_MOTIF=1
966 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
967 cat >> confdefs.h <<\EOF
968#define __HPUX__ 1
969EOF
970
971 ;;
972 *-*-linux* )
973 USE_LINUX=1
974 cat >> confdefs.h <<\EOF
975#define __LINUX__ 1
976EOF
977
978 TMP=`uname -m`
979 if test "x$TMP" = "xalpha"; then
980 USE_ALPHA=1
981 cat >> confdefs.h <<\EOF
982#define __ALPHA__ 1
983EOF
984
985 fi
986 DEFAULT_DEFAULT_wxUSE_GTK=1
987 ;;
988 *-*-irix5* | *-*-irix6* )
989 USE_SGI=1
990 USE_SVR4=1
991 cat >> confdefs.h <<\EOF
992#define __SGI__ 1
993EOF
994
995 cat >> confdefs.h <<\EOF
996#define __SVR4__ 1
997EOF
998
999 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1000 ;;
1001 *-*-solaris2* )
1002 USE_SUN=1
1003 USE_SOLARIS=1
1004 USE_SVR4=1
1005 cat >> confdefs.h <<\EOF
1006#define __SUN__ 1
1007EOF
1008
1009 cat >> confdefs.h <<\EOF
1010#define __SOLARIS__ 1
1011EOF
1012
1013 cat >> confdefs.h <<\EOF
1014#define __SVR4__ 1
1015EOF
1016
1017 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1018 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1019 ;;
1020 *-*-sunos4* )
1021 USE_SUN=1
1022 USE_SUNOS=1
1023 USE_BSD=1
1024 cat >> confdefs.h <<\EOF
1025#define __SUN__ 1
1026EOF
1027
1028 cat >> confdefs.h <<\EOF
1029#define __SUNOS__ 1
1030EOF
1031
1032 cat >> confdefs.h <<\EOF
1033#define __BSD__ 1
1034EOF
1035
1036 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1037 ;;
1038 *-*-freebsd* | *-*-netbsd*)
1039 USE_BSD=1
1040 USE_FREEBSD=1
1041 cat >> confdefs.h <<\EOF
1042#define __FREEBSD__ 1
1043EOF
1044
1045 cat >> confdefs.h <<\EOF
1046#define __BSD__ 1
1047EOF
1048
1049 DEFAULT_DEFAULT_wxUSE_GTK=1
1050 ;;
1051 *-*-osf* )
1052 USE_ALPHA=1
1053 USE_OSF=1
1054 cat >> confdefs.h <<\EOF
1055#define __ALPHA__ 1
1056EOF
1057
1058 cat >> confdefs.h <<\EOF
1059#define __OSF__ 1
1060EOF
1061
1062 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1063 ;;
1064 *-*-dgux5* )
1065 USE_ALPHA=1
1066 USE_SVR4=1
1067 cat >> confdefs.h <<\EOF
1068#define __ALPHA__ 1
1069EOF
1070
1071 cat >> confdefs.h <<\EOF
1072#define __SVR4__ 1
1073EOF
1074
1075 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1076 ;;
1077 *-*-sysv5* )
1078 USE_SYSV=1
1079 USE_SVR4=1
1080 cat >> confdefs.h <<\EOF
1081#define __SYSV__ 1
1082EOF
1083
1084 cat >> confdefs.h <<\EOF
1085#define __SVR4__ 1
1086EOF
1087
1088 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1089 ;;
1090 *-*-aix* )
1091 USE_AIX=1
1092 USE_SYSV=1
1093 USE_SVR4=1
1094 cat >> confdefs.h <<\EOF
1095#define __AIX__ 1
1096EOF
1097
1098 cat >> confdefs.h <<\EOF
1099#define __SYSV__ 1
1100EOF
1101
1102 cat >> confdefs.h <<\EOF
1103#define __SVR4__ 1
1104EOF
1105
1106 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1107 ;;
1108
1109 *-*-cygwin32* | *-*-mingw32* )
1110 USE_UNIX=0
1111 USE_WIN32=1
1112 cat >> confdefs.h <<\EOF
1113#define __WIN32__ 1
1114EOF
1115
1116 cat >> confdefs.h <<\EOF
1117#define __WIN95__ 1
1118EOF
1119
1120 cat >> confdefs.h <<\EOF
1121#define __WINDOWS__ 1
1122EOF
1123
1124 cat >> confdefs.h <<\EOF
1125#define __GNUWIN32__ 1
1126EOF
1127
1128 cat >> confdefs.h <<\EOF
1129#define STRICT 1
1130EOF
1131
1132 cat >> confdefs.h <<\EOF
1133#define WINVER 0x0400
1134EOF
1135
1136 PROGRAM_EXT=".exe"
1137 DEFAULT_DEFAULT_wxUSE_MSW=1
1138 ;;
1139
1140 *-pc-os2_emx )
1141 cat >> confdefs.h <<\EOF
1142#define __EMX__ 1
1143EOF
1144
1145 PROGRAM_EXT=".exe"
1146 DEFAULT_DEFAULT_wxUSE_PM=1
1147 ;;
1148
1149 *-*-beos* )
1150 USE_BEOS=1
1151 cat >> confdefs.h <<\EOF
1152#define __BEOS__ 1
1153EOF
1154
1155 ;;
1156
1157 *)
1158 { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; }
1159esac
1160
1161if test "$USE_UNIX" = 1 ; then
1162 wxUSE_UNIX=yes
1163 cat >> confdefs.h <<\EOF
1164#define __UNIX__ 1
1165EOF
1166
1167
1168 SRC_SUBDIRS="$SRC_SUBDIRS unix"
1169 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS unix"
1170fi
1171
1172if test "$USE_BEOS" = 1; then
1173 SRC_SUBDIRS="$SRC_SUBDIRS be"
1174 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS be"
1175fi
1176
1177if test "$USE_LINUX" = 1; then
1178 echo $ac_n "checking for gettext in -lc""... $ac_c" 1>&6
1179echo "configure:1180: checking for gettext in -lc" >&5
1180ac_lib_var=`echo c'_'gettext | sed 'y%./+-%__p_%'`
1181if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1182 echo $ac_n "(cached) $ac_c" 1>&6
1183else
1184 ac_save_LIBS="$LIBS"
1185LIBS="-lc $LIBS"
1186cat > conftest.$ac_ext <<EOF
1187#line 1188 "configure"
1188#include "confdefs.h"
1189/* Override any gcc2 internal prototype to avoid an error. */
1190/* We use char because int might match the return type of a gcc2
1191 builtin and then its argument prototype would still apply. */
1192char gettext();
1193
1194int main() {
1195gettext()
1196; return 0; }
1197EOF
1198if { (eval echo configure:1199: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1199 rm -rf conftest*
1200 eval "ac_cv_lib_$ac_lib_var=yes"
1201else
1202 echo "configure: failed program was:" >&5
1203 cat conftest.$ac_ext >&5
1204 rm -rf conftest*
1205 eval "ac_cv_lib_$ac_lib_var=no"
1206fi
1207rm -f conftest*
1208LIBS="$ac_save_LIBS"
1209
1210fi
1211if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1212 echo "$ac_t""yes" 1>&6
1213 cat >> confdefs.h <<\EOF
1214#define wxHAVE_GLIBC2 1
1215EOF
1216
1217else
1218 echo "$ac_t""no" 1>&6
1219fi
1220
1221fi
1222
1223
1224
1225
1226 wx_arg_cache_file="configarg.cache"
1227 echo "loading argument cache $wx_arg_cache_file"
1228 rm -f ${wx_arg_cache_file}.tmp
1229 touch ${wx_arg_cache_file}.tmp
1230 touch ${wx_arg_cache_file}
1231
1232
1233DEBUG_CONFIGURE=0
1234if test $DEBUG_CONFIGURE = 1; then
1235 DEFAULT_wxUSE_THREADS=yes
1236
1237 DEFAULT_wxUSE_SHARED=yes
1238 DEFAULT_wxUSE_BURNT_NAME=no
1239 DEFAULT_wxUSE_OPTIMISE=yes
1240 DEFAULT_wxUSE_PROFILE=no
1241 DEFAULT_wxUSE_NO_DEPS=no
1242 DEFAULT_wxUSE_NO_RTTI=no
1243 DEFAULT_wxUSE_NO_EXCEPTIONS=no
1244 DEFAULT_wxUSE_PERMISSIVE=no
1245 DEFAULT_wxUSE_DEBUG_FLAG=yes
1246 DEFAULT_wxUSE_DEBUG_INFO=yes
1247 DEFAULT_wxUSE_DEBUG_GDB=yes
1248 DEFAULT_wxUSE_MEM_TRACING=no
1249 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1250 DEFAULT_wxUSE_DMALLOC=no
1251 DEFAULT_wxUSE_APPLE_IEEE=no
1252
1253 DEFAULT_wxUSE_LOG=yes
1254
1255 DEFAULT_wxUSE_GUI=yes
1256
1257 DEFAULT_wxUSE_ZLIB=no
1258 DEFAULT_wxUSE_LIBPNG=no
1259 DEFAULT_wxUSE_LIBJPEG=no
1260 DEFAULT_wxUSE_LIBTIFF=no
1261 DEFAULT_wxUSE_ODBC=no
1262 DEFAULT_wxUSE_OPENGL=no
1263
1264 DEFAULT_wxUSE_STD_IOSTREAM=no
1265 DEFAULT_wxUSE_FILE=no
1266 DEFAULT_wxUSE_TEXTFILE=no
1267 DEFAULT_wxUSE_TIMEDATE=no
1268 DEFAULT_wxUSE_WAVE=no
1269 DEFAULT_wxUSE_INTL=no
1270 DEFAULT_wxUSE_CONFIG=no
1271 DEFAULT_wxUSE_STREAMS=no
1272 DEFAULT_wxUSE_SOCKETS=no
1273 DEFAULT_wxUSE_DIALUP_MANAGER=no
1274 DEFAULT_wxUSE_SERIAL=no
1275 DEFAULT_wxUSE_JOYSTICK=no
1276 DEFAULT_wxUSE_DYNLIB_CLASS=no
1277 DEFAULT_wxUSE_LONGLONG=no
1278
1279 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
1280 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
1281 DEFAULT_wxUSE_POSTSCRIPT=no
1282
1283 DEFAULT_wxUSE_X_RESOURCES=no
1284 DEFAULT_wxUSE_CLIPBOARD=no
1285 DEFAULT_wxUSE_TOOLTIPS=no
1286 DEFAULT_wxUSE_DRAG_AND_DROP=no
1287 DEFAULT_wxUSE_SPLINES=no
1288
1289 DEFAULT_wxUSE_MDI_ARCHITECTURE=no
1290 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
1291 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
1292
1293 DEFAULT_wxUSE_PROLOGIO=no
1294 DEFAULT_wxUSE_RESOURCES=no
1295 DEFAULT_wxUSE_CONSTRAINTS=no
1296 DEFAULT_wxUSE_IPC=no
1297 DEFAULT_wxUSE_HELP=no
1298 DEFAULT_wxUSE_WXTREE=no
1299 DEFAULT_wxUSE_METAFILE=no
1300
1301 DEFAULT_wxUSE_COMMONDLGS=no
1302 DEFAULT_wxUSE_DIRDLG=no
1303 DEFAULT_wxUSE_TEXTDLG=no
1304 DEFAULT_wxUSE_STARTUP_TIPS=no
1305 DEFAULT_wxUSE_PROGRESSDLG=no
1306 DEFAULT_wxUSE_MINIFRAME=no
1307 DEFAULT_wxUSE_HTML=no
1308 DEFAULT_wxUSE_FILESYSTEM=no
1309 DEFAULT_wxUSE_FS_INET=no
1310 DEFAULT_wxUSE_FS_ZIP=no
1311 DEFAULT_wxUSE_BUSYINFO=no
1312 DEFAULT_wxUSE_ZIPSTREAM=no
1313 DEFAULT_wxUSE_VALIDATORS=yes
1314
1315 DEFAULT_wxUSE_ACCEL=no
1316 DEFAULT_wxUSE_CARET=no
1317 DEFAULT_wxUSE_BMPBUTTON=no
1318 DEFAULT_wxUSE_CHECKBOX=no
1319 DEFAULT_wxUSE_CHECKLST=no
1320 DEFAULT_wxUSE_CHOICE=yes
1321 DEFAULT_wxUSE_COMBOBOX=no
1322 DEFAULT_wxUSE_GAUGE=no
1323 DEFAULT_wxUSE_GRID=no
1324 DEFAULT_wxUSE_NEW_GRID=no
1325 DEFAULT_wxUSE_IMAGLIST=no
1326 DEFAULT_wxUSE_LISTBOX=no
1327 DEFAULT_wxUSE_LISTCTRL=no
1328 DEFAULT_wxUSE_NOTEBOOK=no
1329 DEFAULT_wxUSE_PLOT=no
1330 DEFAULT_wxUSE_RADIOBOX=no
1331 DEFAULT_wxUSE_RADIOBTN=no
1332 DEFAULT_wxUSE_SASH=no
1333 DEFAULT_wxUSE_SCROLLBAR=no
1334 DEFAULT_wxUSE_SLIDER=no
1335 DEFAULT_wxUSE_SPINBTN=no
1336 DEFAULT_wxUSE_SPINCTRL=no
1337 DEFAULT_wxUSE_SPLITTER=no
1338 DEFAULT_wxUSE_STATBMP=no
1339 DEFAULT_wxUSE_STATBOX=no
1340 DEFAULT_wxUSE_STATLINE=no
1341 DEFAULT_wxUSE_STATUSBAR=yes
1342 DEFAULT_wxUSE_TABDIALOG=no
1343 DEFAULT_wxUSE_TOOLBAR=no
1344 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
1345 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
1346 DEFAULT_wxUSE_TREECTRL=no
1347
1348 DEFAULT_wxUSE_UNICODE=no
1349 DEFAULT_wxUSE_WCSRTOMBS=no
1350
1351 DEFAULT_wxUSE_GIF=no
1352 DEFAULT_wxUSE_PCX=no
1353 DEFAULT_wxUSE_PNM=no
1354else
1355 DEFAULT_wxUSE_THREADS=yes
1356
1357 DEFAULT_wxUSE_SHARED=yes
1358 DEFAULT_wxUSE_BURNT_NAME=no
1359 DEFAULT_wxUSE_OPTIMISE=yes
1360 DEFAULT_wxUSE_PROFILE=no
1361 DEFAULT_wxUSE_NO_DEPS=no
1362 DEFAULT_wxUSE_NO_RTTI=no
1363 DEFAULT_wxUSE_NO_EXCEPTIONS=no
1364 DEFAULT_wxUSE_PERMISSIVE=no
1365 DEFAULT_wxUSE_DEBUG_FLAG=no
1366 DEFAULT_wxUSE_DEBUG_INFO=no
1367 DEFAULT_wxUSE_DEBUG_GDB=no
1368 DEFAULT_wxUSE_MEM_TRACING=no
1369 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1370 DEFAULT_wxUSE_DMALLOC=no
1371 DEFAULT_wxUSE_APPLE_IEEE=yes
1372
1373 DEFAULT_wxUSE_LOG=yes
1374
1375 DEFAULT_wxUSE_GUI=yes
1376
1377 DEFAULT_wxUSE_ZLIB=yes
1378 DEFAULT_wxUSE_LIBPNG=yes
1379 DEFAULT_wxUSE_LIBJPEG=yes
1380 DEFAULT_wxUSE_LIBTIFF=yes
1381 DEFAULT_wxUSE_ODBC=no
1382 DEFAULT_wxUSE_OPENGL=no
1383
1384 DEFAULT_wxUSE_STD_IOSTREAM=no
1385 DEFAULT_wxUSE_FILE=yes
1386 DEFAULT_wxUSE_TEXTFILE=yes
1387 DEFAULT_wxUSE_TIMEDATE=yes
1388 DEFAULT_wxUSE_WAVE=no
1389 DEFAULT_wxUSE_INTL=yes
1390 DEFAULT_wxUSE_CONFIG=yes
1391 DEFAULT_wxUSE_STREAMS=yes
1392 DEFAULT_wxUSE_SOCKETS=yes
1393 DEFAULT_wxUSE_DIALUP_MANAGER=yes
1394 DEFAULT_wxUSE_SERIAL=yes
1395 DEFAULT_wxUSE_JOYSTICK=yes
1396 DEFAULT_wxUSE_DYNLIB_CLASS=yes
1397 DEFAULT_wxUSE_LONGLONG=yes
1398
1399 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
1400 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
1401 DEFAULT_wxUSE_POSTSCRIPT=yes
1402
1403 DEFAULT_wxUSE_X_RESOURCES=no
1404 DEFAULT_wxUSE_CLIPBOARD=yes
1405 DEFAULT_wxUSE_TOOLTIPS=yes
1406 DEFAULT_wxUSE_DRAG_AND_DROP=yes
1407 DEFAULT_wxUSE_SPLINES=yes
1408
1409 DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
1410 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
1411 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
1412
1413 DEFAULT_wxUSE_PROLOGIO=yes
1414 DEFAULT_wxUSE_RESOURCES=yes
1415 DEFAULT_wxUSE_CONSTRAINTS=yes
1416 DEFAULT_wxUSE_IPC=yes
1417 DEFAULT_wxUSE_HELP=yes
1418 DEFAULT_wxUSE_WXTREE=yes
1419 DEFAULT_wxUSE_METAFILE=yes
1420
1421 DEFAULT_wxUSE_COMMONDLGS=yes
1422 DEFAULT_wxUSE_DIRDLG=yes
1423 DEFAULT_wxUSE_TEXTDLG=yes
1424 DEFAULT_wxUSE_STARTUP_TIPS=yes
1425 DEFAULT_wxUSE_PROGRESSDLG=yes
1426 DEFAULT_wxUSE_MINIFRAME=yes
1427 DEFAULT_wxUSE_HTML=yes
1428 DEFAULT_wxUSE_FILESYSTEM=yes
1429 DEFAULT_wxUSE_FS_INET=yes
1430 DEFAULT_wxUSE_FS_ZIP=yes
1431 DEFAULT_wxUSE_BUSYINFO=yes
1432 DEFAULT_wxUSE_ZIPSTREAM=yes
1433 DEFAULT_wxUSE_VALIDATORS=yes
1434
1435 DEFAULT_wxUSE_ACCEL=yes
1436 DEFAULT_wxUSE_CARET=yes
1437 DEFAULT_wxUSE_BMPBUTTON=yes
1438 DEFAULT_wxUSE_CHECKBOX=yes
1439 DEFAULT_wxUSE_CHECKLST=yes
1440 DEFAULT_wxUSE_CHOICE=yes
1441 DEFAULT_wxUSE_COMBOBOX=yes
1442 DEFAULT_wxUSE_GAUGE=yes
1443 DEFAULT_wxUSE_GRID=yes
1444 DEFAULT_wxUSE_NEW_GRID=yes
1445 DEFAULT_wxUSE_IMAGLIST=yes
1446 DEFAULT_wxUSE_LISTBOX=yes
1447 DEFAULT_wxUSE_LISTCTRL=yes
1448 DEFAULT_wxUSE_NOTEBOOK=yes
1449 DEFAULT_wxUSE_PLOT=yes
1450 DEFAULT_wxUSE_RADIOBOX=yes
1451 DEFAULT_wxUSE_RADIOBTN=yes
1452 DEFAULT_wxUSE_SASH=yes
1453 DEFAULT_wxUSE_SCROLLBAR=yes
1454 DEFAULT_wxUSE_SLIDER=yes
1455 DEFAULT_wxUSE_SPINBTN=yes
1456 DEFAULT_wxUSE_SPINCTRL=yes
1457 DEFAULT_wxUSE_SPLITTER=yes
1458 DEFAULT_wxUSE_STATBMP=yes
1459 DEFAULT_wxUSE_STATBOX=yes
1460 DEFAULT_wxUSE_STATLINE=yes
1461 DEFAULT_wxUSE_STATUSBAR=yes
1462 DEFAULT_wxUSE_TABDIALOG=no
1463 DEFAULT_wxUSE_TOOLBAR=yes
1464 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
1465 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
1466 DEFAULT_wxUSE_TREECTRL=yes
1467
1468 DEFAULT_wxUSE_UNICODE=no
1469 DEFAULT_wxUSE_WCSRTOMBS=no
1470
1471 DEFAULT_wxUSE_GIF=yes
1472 DEFAULT_wxUSE_PCX=yes
1473 DEFAULT_wxUSE_PNM=yes
1474fi
1475
1476
1477
1478for toolkit in `echo $ALL_TOOLKITS`; do
1479 LINE=`grep "wxUSE_$toolkit" ${wx_arg_cache_file}`
1480 if test "x$LINE" != x ; then
1481 has_toolkit_in_cache=1
1482 eval "DEFAULT_$LINE"
1483 eval "CACHE_$toolkit=1"
1484 fi
1485done
1486
1487
1488
1489 echo $ac_n "checking "for --enable-gui"""... $ac_c" 1>&6
1490echo "configure:1491: checking "for --enable-gui"" >&5
1491 no_cache=0
1492 # Check whether --enable-gui or --disable-gui was given.
1493if test "${enable_gui+set}" = set; then
1494 enableval="$enable_gui"
1495
1496 if test "$enableval" = yes; then
1497 ac_cv_use_gui='wxUSE_GUI=yes'
1498 else
1499 ac_cv_use_gui='wxUSE_GUI=no'
1500 fi
1501
1502else
1503
1504 LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
1505 if test "x$LINE" != x ; then
1506 eval "DEFAULT_$LINE"
1507 else
1508 no_cache=1
1509 fi
1510
1511 ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
1512
1513fi
1514
1515
1516 eval "$ac_cv_use_gui"
1517 if test "$no_cache" != 1; then
1518 echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
1519 fi
1520
1521 if test "$wxUSE_GUI" = yes; then
1522 echo "$ac_t""yes" 1>&6
1523 else
1524 echo "$ac_t""no" 1>&6
1525 fi
1526
1527
1528if test "$wxUSE_GUI" = "yes"; then
1529
1530# Check whether --with-gtk or --without-gtk was given.
1531if test "${with_gtk+set}" = set; then
1532 withval="$with_gtk"
1533 wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
1534fi
1535
1536# Check whether --with-motif or --without-motif was given.
1537if test "${with_motif+set}" = set; then
1538 withval="$with_motif"
1539 wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
1540fi
1541
1542# Check whether --with-wine or --without-wine was given.
1543if test "${with_wine+set}" = set; then
1544 withval="$with_wine"
1545 wxUSE_WINE="$withval" CACHE_WINE=1 TOOLKIT_GIVEN=1
1546fi
1547
1548# Check whether --with-cygwin or --without-cygwin was given.
1549if test "${with_cygwin+set}" = set; then
1550 withval="$with_cygwin"
1551 wxUSE_CYGWIN="$withval" CACHE_CYGWIN=1 TOOLKIT_GIVEN=1
1552fi
1553
1554# Check whether --with-mingw or --without-mingw was given.
1555if test "${with_mingw+set}" = set; then
1556 withval="$with_mingw"
1557 wxUSE_MINGW="$withval" CACHE_MINGW=1 TOOLKIT_GIVEN=1
1558fi
1559
1560# Check whether --with-pm or --without-pm was given.
1561if test "${with_pm+set}" = set; then
1562 withval="$with_pm"
1563 wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
1564fi
1565
1566
1567# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
1568if test "${with_gtk_prefix+set}" = set; then
1569 withval="$with_gtk_prefix"
1570 gtk_config_prefix="$withval"
1571else
1572 gtk_config_prefix=""
1573fi
1574
1575# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
1576if test "${with_gtk_exec_prefix+set}" = set; then
1577 withval="$with_gtk_exec_prefix"
1578 gtk_config_exec_prefix="$withval"
1579else
1580 gtk_config_exec_prefix=""
1581fi
1582
1583
1584
1585 echo $ac_n "checking "for --with-libpng"""... $ac_c" 1>&6
1586echo "configure:1587: checking "for --with-libpng"" >&5
1587 no_cache=0
1588 # Check whether --with-libpng or --without-libpng was given.
1589if test "${with_libpng+set}" = set; then
1590 withval="$with_libpng"
1591
1592 if test "$withval" = yes; then
1593 ac_cv_use_libpng='wxUSE_LIBPNG=yes'
1594 elif test "$withval" = no; then
1595 ac_cv_use_libpng='wxUSE_LIBPNG=no'
1596 elif test "$withval" = sys; then
1597 ac_cv_use_libpng='wxUSE_LIBPNG=sys'
1598 else
1599 { echo "configure: error: Invalid value for --with-libpng: should be yes, no or sys" 1>&2; exit 1; }
1600 fi
1601
1602else
1603
1604 LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
1605 if test "x$LINE" != x ; then
1606 eval "DEFAULT_$LINE"
1607 else
1608 no_cache=1
1609 fi
1610
1611 ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
1612
1613fi
1614
1615
1616 eval "$ac_cv_use_libpng"
1617 if test "$no_cache" != 1; then
1618 echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
1619 fi
1620
1621 if test "$wxUSE_LIBPNG" = yes; then
1622 echo "$ac_t""yes" 1>&6
1623 elif test "$wxUSE_LIBPNG" = no; then
1624 echo "$ac_t""no" 1>&6
1625 elif test "$wxUSE_LIBPNG" = sys; then
1626 echo "$ac_t""system version" 1>&6
1627 else
1628 { echo "configure: error: Invalid value for --with-libpng: should be yes, no or sys" 1>&2; exit 1; }
1629 fi
1630
1631
1632 echo $ac_n "checking "for --with-libjpeg"""... $ac_c" 1>&6
1633echo "configure:1634: checking "for --with-libjpeg"" >&5
1634 no_cache=0
1635 # Check whether --with-libjpeg or --without-libjpeg was given.
1636if test "${with_libjpeg+set}" = set; then
1637 withval="$with_libjpeg"
1638
1639 if test "$withval" = yes; then
1640 ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
1641 elif test "$withval" = no; then
1642 ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
1643 elif test "$withval" = sys; then
1644 ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
1645 else
1646 { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no or sys" 1>&2; exit 1; }
1647 fi
1648
1649else
1650
1651 LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
1652 if test "x$LINE" != x ; then
1653 eval "DEFAULT_$LINE"
1654 else
1655 no_cache=1
1656 fi
1657
1658 ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
1659
1660fi
1661
1662
1663 eval "$ac_cv_use_libjpeg"
1664 if test "$no_cache" != 1; then
1665 echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
1666 fi
1667
1668 if test "$wxUSE_LIBJPEG" = yes; then
1669 echo "$ac_t""yes" 1>&6
1670 elif test "$wxUSE_LIBJPEG" = no; then
1671 echo "$ac_t""no" 1>&6
1672 elif test "$wxUSE_LIBJPEG" = sys; then
1673 echo "$ac_t""system version" 1>&6
1674 else
1675 { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no or sys" 1>&2; exit 1; }
1676 fi
1677
1678
1679 echo $ac_n "checking "for --with-libtiff"""... $ac_c" 1>&6
1680echo "configure:1681: checking "for --with-libtiff"" >&5
1681 no_cache=0
1682 # Check whether --with-libtiff or --without-libtiff was given.
1683if test "${with_libtiff+set}" = set; then
1684 withval="$with_libtiff"
1685
1686 if test "$withval" = yes; then
1687 ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
1688 else
1689 ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
1690 fi
1691
1692else
1693
1694 LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
1695 if test "x$LINE" != x ; then
1696 eval "DEFAULT_$LINE"
1697 else
1698 no_cache=1
1699 fi
1700
1701 ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
1702
1703fi
1704
1705
1706 eval "$ac_cv_use_libtiff"
1707 if test "$no_cache" != 1; then
1708 echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
1709 fi
1710
1711 if test "$wxUSE_LIBTIFF" = yes; then
1712 echo "$ac_t""yes" 1>&6
1713 else
1714 echo "$ac_t""no" 1>&6
1715 fi
1716
1717
1718 echo $ac_n "checking "for --with-opengl"""... $ac_c" 1>&6
1719echo "configure:1720: checking "for --with-opengl"" >&5
1720 no_cache=0
1721 # Check whether --with-opengl or --without-opengl was given.
1722if test "${with_opengl+set}" = set; then
1723 withval="$with_opengl"
1724
1725 if test "$withval" = yes; then
1726 ac_cv_use_opengl='wxUSE_OPENGL=yes'
1727 else
1728 ac_cv_use_opengl='wxUSE_OPENGL=no'
1729 fi
1730
1731else
1732
1733 LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
1734 if test "x$LINE" != x ; then
1735 eval "DEFAULT_$LINE"
1736 else
1737 no_cache=1
1738 fi
1739
1740 ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
1741
1742fi
1743
1744
1745 eval "$ac_cv_use_opengl"
1746 if test "$no_cache" != 1; then
1747 echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
1748 fi
1749
1750 if test "$wxUSE_OPENGL" = yes; then
1751 echo "$ac_t""yes" 1>&6
1752 else
1753 echo "$ac_t""no" 1>&6
1754 fi
1755
1756
1757fi
1758
1759
1760 echo $ac_n "checking "for --with-dmalloc"""... $ac_c" 1>&6
1761echo "configure:1762: checking "for --with-dmalloc"" >&5
1762 no_cache=0
1763 # Check whether --with-dmalloc or --without-dmalloc was given.
1764if test "${with_dmalloc+set}" = set; then
1765 withval="$with_dmalloc"
1766
1767 if test "$withval" = yes; then
1768 ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
1769 else
1770 ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
1771 fi
1772
1773else
1774
1775 LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
1776 if test "x$LINE" != x ; then
1777 eval "DEFAULT_$LINE"
1778 else
1779 no_cache=1
1780 fi
1781
1782 ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
1783
1784fi
1785
1786
1787 eval "$ac_cv_use_dmalloc"
1788 if test "$no_cache" != 1; then
1789 echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
1790 fi
1791
1792 if test "$wxUSE_DMALLOC" = yes; then
1793 echo "$ac_t""yes" 1>&6
1794 else
1795 echo "$ac_t""no" 1>&6
1796 fi
1797
1798
1799 echo $ac_n "checking "for --with-zlib"""... $ac_c" 1>&6
1800echo "configure:1801: checking "for --with-zlib"" >&5
1801 no_cache=0
1802 # Check whether --with-zlib or --without-zlib was given.
1803if test "${with_zlib+set}" = set; then
1804 withval="$with_zlib"
1805
1806 if test "$withval" = yes; then
1807 ac_cv_use_zlib='wxUSE_ZLIB=yes'
1808 elif test "$withval" = no; then
1809 ac_cv_use_zlib='wxUSE_ZLIB=no'
1810 elif test "$withval" = sys; then
1811 ac_cv_use_zlib='wxUSE_ZLIB=sys'
1812 else
1813 { echo "configure: error: Invalid value for --with-zlib: should be yes, no or sys" 1>&2; exit 1; }
1814 fi
1815
1816else
1817
1818 LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
1819 if test "x$LINE" != x ; then
1820 eval "DEFAULT_$LINE"
1821 else
1822 no_cache=1
1823 fi
1824
1825 ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
1826
1827fi
1828
1829
1830 eval "$ac_cv_use_zlib"
1831 if test "$no_cache" != 1; then
1832 echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
1833 fi
1834
1835 if test "$wxUSE_ZLIB" = yes; then
1836 echo "$ac_t""yes" 1>&6
1837 elif test "$wxUSE_ZLIB" = no; then
1838 echo "$ac_t""no" 1>&6
1839 elif test "$wxUSE_ZLIB" = sys; then
1840 echo "$ac_t""system version" 1>&6
1841 else
1842 { echo "configure: error: Invalid value for --with-zlib: should be yes, no or sys" 1>&2; exit 1; }
1843 fi
1844
1845
1846 echo $ac_n "checking "for --with-odbc"""... $ac_c" 1>&6
1847echo "configure:1848: checking "for --with-odbc"" >&5
1848 no_cache=0
1849 # Check whether --with-odbc or --without-odbc was given.
1850if test "${with_odbc+set}" = set; then
1851 withval="$with_odbc"
1852
1853 if test "$withval" = yes; then
1854 ac_cv_use_odbc='wxUSE_ODBC=yes'
1855 else
1856 ac_cv_use_odbc='wxUSE_ODBC=no'
1857 fi
1858
1859else
1860
1861 LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
1862 if test "x$LINE" != x ; then
1863 eval "DEFAULT_$LINE"
1864 else
1865 no_cache=1
1866 fi
1867
1868 ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
1869
1870fi
1871
1872
1873 eval "$ac_cv_use_odbc"
1874 if test "$no_cache" != 1; then
1875 echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
1876 fi
1877
1878 if test "$wxUSE_ODBC" = yes; then
1879 echo "$ac_t""yes" 1>&6
1880 else
1881 echo "$ac_t""no" 1>&6
1882 fi
1883
1884
1885
1886
1887
1888 echo $ac_n "checking "for --enable-shared"""... $ac_c" 1>&6
1889echo "configure:1890: checking "for --enable-shared"" >&5
1890 no_cache=0
1891 # Check whether --enable-shared or --disable-shared was given.
1892if test "${enable_shared+set}" = set; then
1893 enableval="$enable_shared"
1894
1895 if test "$enableval" = yes; then
1896 ac_cv_use_shared='wxUSE_SHARED=yes'
1897 else
1898 ac_cv_use_shared='wxUSE_SHARED=no'
1899 fi
1900
1901else
1902
1903 LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
1904 if test "x$LINE" != x ; then
1905 eval "DEFAULT_$LINE"
1906 else
1907 no_cache=1
1908 fi
1909
1910 ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
1911
1912fi
1913
1914
1915 eval "$ac_cv_use_shared"
1916 if test "$no_cache" != 1; then
1917 echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
1918 fi
1919
1920 if test "$wxUSE_SHARED" = yes; then
1921 echo "$ac_t""yes" 1>&6
1922 else
1923 echo "$ac_t""no" 1>&6
1924 fi
1925
1926
1927 echo $ac_n "checking "for --enable-burnt_name"""... $ac_c" 1>&6
1928echo "configure:1929: checking "for --enable-burnt_name"" >&5
1929 no_cache=0
1930 # Check whether --enable-burnt_name or --disable-burnt_name was given.
1931if test "${enable_burnt_name+set}" = set; then
1932 enableval="$enable_burnt_name"
1933
1934 if test "$enableval" = yes; then
1935 ac_cv_use_burnt_name='wxUSE_BURNT_NAME=yes'
1936 else
1937 ac_cv_use_burnt_name='wxUSE_BURNT_NAME=no'
1938 fi
1939
1940else
1941
1942 LINE=`grep "wxUSE_BURNT_NAME" ${wx_arg_cache_file}`
1943 if test "x$LINE" != x ; then
1944 eval "DEFAULT_$LINE"
1945 else
1946 no_cache=1
1947 fi
1948
1949 ac_cv_use_burnt_name='wxUSE_BURNT_NAME='$DEFAULT_wxUSE_BURNT_NAME
1950
1951fi
1952
1953
1954 eval "$ac_cv_use_burnt_name"
1955 if test "$no_cache" != 1; then
1956 echo $ac_cv_use_burnt_name >> ${wx_arg_cache_file}.tmp
1957 fi
1958
1959 if test "$wxUSE_BURNT_NAME" = yes; then
1960 echo "$ac_t""yes" 1>&6
1961 else
1962 echo "$ac_t""no" 1>&6
1963 fi
1964
1965
1966 echo $ac_n "checking "for --enable-optimise"""... $ac_c" 1>&6
1967echo "configure:1968: checking "for --enable-optimise"" >&5
1968 no_cache=0
1969 # Check whether --enable-optimise or --disable-optimise was given.
1970if test "${enable_optimise+set}" = set; then
1971 enableval="$enable_optimise"
1972
1973 if test "$enableval" = yes; then
1974 ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
1975 else
1976 ac_cv_use_optimise='wxUSE_OPTIMISE=no'
1977 fi
1978
1979else
1980
1981 LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
1982 if test "x$LINE" != x ; then
1983 eval "DEFAULT_$LINE"
1984 else
1985 no_cache=1
1986 fi
1987
1988 ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
1989
1990fi
1991
1992
1993 eval "$ac_cv_use_optimise"
1994 if test "$no_cache" != 1; then
1995 echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
1996 fi
1997
1998 if test "$wxUSE_OPTIMISE" = yes; then
1999 echo "$ac_t""yes" 1>&6
2000 else
2001 echo "$ac_t""no" 1>&6
2002 fi
2003
2004
2005 echo $ac_n "checking "for --enable-debug"""... $ac_c" 1>&6
2006echo "configure:2007: checking "for --enable-debug"" >&5
2007 no_cache=0
2008 # Check whether --enable-debug or --disable-debug was given.
2009if test "${enable_debug+set}" = set; then
2010 enableval="$enable_debug"
2011
2012 if test "$enableval" = yes; then
2013 ac_cv_use_debug='wxUSE_DEBUG=yes'
2014 else
2015 ac_cv_use_debug='wxUSE_DEBUG=no'
2016 fi
2017
2018else
2019
2020 LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
2021 if test "x$LINE" != x ; then
2022 eval "DEFAULT_$LINE"
2023 else
2024 no_cache=1
2025 fi
2026
2027 ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
2028
2029fi
2030
2031
2032 eval "$ac_cv_use_debug"
2033 if test "$no_cache" != 1; then
2034 echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
2035 fi
2036
2037 if test "$wxUSE_DEBUG" = yes; then
2038 echo "$ac_t""yes" 1>&6
2039 else
2040 echo "$ac_t""no" 1>&6
2041 fi
2042
2043
2044if test "$wxUSE_DEBUG" = "yes"; then
2045 DEFAULT_wxUSE_DEBUG_FLAG=yes
2046 DEFAULT_wxUSE_DEBUG_INFO=yes
2047elif test "$wxUSE_DEBUG" = "no"; then
2048 DEFAULT_wxUSE_DEBUG_FLAG=no
2049 DEFAULT_wxUSE_DEBUG_INFO=no
2050fi
2051
2052
2053 echo $ac_n "checking "for --enable-debug_flag"""... $ac_c" 1>&6
2054echo "configure:2055: checking "for --enable-debug_flag"" >&5
2055 no_cache=0
2056 # Check whether --enable-debug_flag or --disable-debug_flag was given.
2057if test "${enable_debug_flag+set}" = set; then
2058 enableval="$enable_debug_flag"
2059
2060 if test "$enableval" = yes; then
2061 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
2062 else
2063 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
2064 fi
2065
2066else
2067
2068 LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
2069 if test "x$LINE" != x ; then
2070 eval "DEFAULT_$LINE"
2071 else
2072 no_cache=1
2073 fi
2074
2075 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
2076
2077fi
2078
2079
2080 eval "$ac_cv_use_debug_flag"
2081 if test "$no_cache" != 1; then
2082 echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
2083 fi
2084
2085 if test "$wxUSE_DEBUG_FLAG" = yes; then
2086 echo "$ac_t""yes" 1>&6
2087 else
2088 echo "$ac_t""no" 1>&6
2089 fi
2090
2091
2092 echo $ac_n "checking "for --enable-debug_info"""... $ac_c" 1>&6
2093echo "configure:2094: checking "for --enable-debug_info"" >&5
2094 no_cache=0
2095 # Check whether --enable-debug_info or --disable-debug_info was given.
2096if test "${enable_debug_info+set}" = set; then
2097 enableval="$enable_debug_info"
2098
2099 if test "$enableval" = yes; then
2100 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
2101 else
2102 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
2103 fi
2104
2105else
2106
2107 LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
2108 if test "x$LINE" != x ; then
2109 eval "DEFAULT_$LINE"
2110 else
2111 no_cache=1
2112 fi
2113
2114 ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
2115
2116fi
2117
2118
2119 eval "$ac_cv_use_debug_info"
2120 if test "$no_cache" != 1; then
2121 echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
2122 fi
2123
2124 if test "$wxUSE_DEBUG_INFO" = yes; then
2125 echo "$ac_t""yes" 1>&6
2126 else
2127 echo "$ac_t""no" 1>&6
2128 fi
2129
2130
2131 echo $ac_n "checking "for --enable-debug_gdb"""... $ac_c" 1>&6
2132echo "configure:2133: checking "for --enable-debug_gdb"" >&5
2133 no_cache=0
2134 # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
2135if test "${enable_debug_gdb+set}" = set; then
2136 enableval="$enable_debug_gdb"
2137
2138 if test "$enableval" = yes; then
2139 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
2140 else
2141 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
2142 fi
2143
2144else
2145
2146 LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
2147 if test "x$LINE" != x ; then
2148 eval "DEFAULT_$LINE"
2149 else
2150 no_cache=1
2151 fi
2152
2153 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
2154
2155fi
2156
2157
2158 eval "$ac_cv_use_debug_gdb"
2159 if test "$no_cache" != 1; then
2160 echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
2161 fi
2162
2163 if test "$wxUSE_DEBUG_GDB" = yes; then
2164 echo "$ac_t""yes" 1>&6
2165 else
2166 echo "$ac_t""no" 1>&6
2167 fi
2168
2169
2170 echo $ac_n "checking "for --enable-debug_cntxt"""... $ac_c" 1>&6
2171echo "configure:2172: checking "for --enable-debug_cntxt"" >&5
2172 no_cache=0
2173 # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
2174if test "${enable_debug_cntxt+set}" = set; then
2175 enableval="$enable_debug_cntxt"
2176
2177 if test "$enableval" = yes; then
2178 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
2179 else
2180 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
2181 fi
2182
2183else
2184
2185 LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
2186 if test "x$LINE" != x ; then
2187 eval "DEFAULT_$LINE"
2188 else
2189 no_cache=1
2190 fi
2191
2192 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
2193
2194fi
2195
2196
2197 eval "$ac_cv_use_debug_cntxt"
2198 if test "$no_cache" != 1; then
2199 echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
2200 fi
2201
2202 if test "$wxUSE_DEBUG_CONTEXT" = yes; then
2203 echo "$ac_t""yes" 1>&6
2204 else
2205 echo "$ac_t""no" 1>&6
2206 fi
2207
2208
2209 echo $ac_n "checking "for --enable-mem_tracing"""... $ac_c" 1>&6
2210echo "configure:2211: checking "for --enable-mem_tracing"" >&5
2211 no_cache=0
2212 # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
2213if test "${enable_mem_tracing+set}" = set; then
2214 enableval="$enable_mem_tracing"
2215
2216 if test "$enableval" = yes; then
2217 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
2218 else
2219 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
2220 fi
2221
2222else
2223
2224 LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
2225 if test "x$LINE" != x ; then
2226 eval "DEFAULT_$LINE"
2227 else
2228 no_cache=1
2229 fi
2230
2231 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
2232
2233fi
2234
2235
2236 eval "$ac_cv_use_mem_tracing"
2237 if test "$no_cache" != 1; then
2238 echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
2239 fi
2240
2241 if test "$wxUSE_MEM_TRACING" = yes; then
2242 echo "$ac_t""yes" 1>&6
2243 else
2244 echo "$ac_t""no" 1>&6
2245 fi
2246
2247
2248 echo $ac_n "checking "for --enable-profile"""... $ac_c" 1>&6
2249echo "configure:2250: checking "for --enable-profile"" >&5
2250 no_cache=0
2251 # Check whether --enable-profile or --disable-profile was given.
2252if test "${enable_profile+set}" = set; then
2253 enableval="$enable_profile"
2254
2255 if test "$enableval" = yes; then
2256 ac_cv_use_profile='wxUSE_PROFILE=yes'
2257 else
2258 ac_cv_use_profile='wxUSE_PROFILE=no'
2259 fi
2260
2261else
2262
2263 LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
2264 if test "x$LINE" != x ; then
2265 eval "DEFAULT_$LINE"
2266 else
2267 no_cache=1
2268 fi
2269
2270 ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
2271
2272fi
2273
2274
2275 eval "$ac_cv_use_profile"
2276 if test "$no_cache" != 1; then
2277 echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
2278 fi
2279
2280 if test "$wxUSE_PROFILE" = yes; then
2281 echo "$ac_t""yes" 1>&6
2282 else
2283 echo "$ac_t""no" 1>&6
2284 fi
2285
2286
2287 echo $ac_n "checking "for --enable-no_rtti"""... $ac_c" 1>&6
2288echo "configure:2289: checking "for --enable-no_rtti"" >&5
2289 no_cache=0
2290 # Check whether --enable-no_rtti or --disable-no_rtti was given.
2291if test "${enable_no_rtti+set}" = set; then
2292 enableval="$enable_no_rtti"
2293
2294 if test "$enableval" = yes; then
2295 ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
2296 else
2297 ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
2298 fi
2299
2300else
2301
2302 LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
2303 if test "x$LINE" != x ; then
2304 eval "DEFAULT_$LINE"
2305 else
2306 no_cache=1
2307 fi
2308
2309 ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
2310
2311fi
2312
2313
2314 eval "$ac_cv_use_no_rtti"
2315 if test "$no_cache" != 1; then
2316 echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
2317 fi
2318
2319 if test "$wxUSE_NO_RTTI" = yes; then
2320 echo "$ac_t""yes" 1>&6
2321 else
2322 echo "$ac_t""no" 1>&6
2323 fi
2324
2325
2326 echo $ac_n "checking "for --enable-no_exceptions"""... $ac_c" 1>&6
2327echo "configure:2328: checking "for --enable-no_exceptions"" >&5
2328 no_cache=0
2329 # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
2330if test "${enable_no_exceptions+set}" = set; then
2331 enableval="$enable_no_exceptions"
2332
2333 if test "$enableval" = yes; then
2334 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
2335 else
2336 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
2337 fi
2338
2339else
2340
2341 LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
2342 if test "x$LINE" != x ; then
2343 eval "DEFAULT_$LINE"
2344 else
2345 no_cache=1
2346 fi
2347
2348 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
2349
2350fi
2351
2352
2353 eval "$ac_cv_use_no_exceptions"
2354 if test "$no_cache" != 1; then
2355 echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
2356 fi
2357
2358 if test "$wxUSE_NO_EXCEPTIONS" = yes; then
2359 echo "$ac_t""yes" 1>&6
2360 else
2361 echo "$ac_t""no" 1>&6
2362 fi
2363
2364
2365 echo $ac_n "checking "for --enable-permissive"""... $ac_c" 1>&6
2366echo "configure:2367: checking "for --enable-permissive"" >&5
2367 no_cache=0
2368 # Check whether --enable-permissive or --disable-permissive was given.
2369if test "${enable_permissive+set}" = set; then
2370 enableval="$enable_permissive"
2371
2372 if test "$enableval" = yes; then
2373 ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
2374 else
2375 ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
2376 fi
2377
2378else
2379
2380 LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
2381 if test "x$LINE" != x ; then
2382 eval "DEFAULT_$LINE"
2383 else
2384 no_cache=1
2385 fi
2386
2387 ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
2388
2389fi
2390
2391
2392 eval "$ac_cv_use_permissive"
2393 if test "$no_cache" != 1; then
2394 echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
2395 fi
2396
2397 if test "$wxUSE_PERMISSIVE" = yes; then
2398 echo "$ac_t""yes" 1>&6
2399 else
2400 echo "$ac_t""no" 1>&6
2401 fi
2402
2403
2404 echo $ac_n "checking "for --enable-no_deps"""... $ac_c" 1>&6
2405echo "configure:2406: checking "for --enable-no_deps"" >&5
2406 no_cache=0
2407 # Check whether --enable-no_deps or --disable-no_deps was given.
2408if test "${enable_no_deps+set}" = set; then
2409 enableval="$enable_no_deps"
2410
2411 if test "$enableval" = yes; then
2412 ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
2413 else
2414 ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
2415 fi
2416
2417else
2418
2419 LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
2420 if test "x$LINE" != x ; then
2421 eval "DEFAULT_$LINE"
2422 else
2423 no_cache=1
2424 fi
2425
2426 ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
2427
2428fi
2429
2430
2431 eval "$ac_cv_use_no_deps"
2432 if test "$no_cache" != 1; then
2433 echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
2434 fi
2435
2436 if test "$wxUSE_NO_DEPS" = yes; then
2437 echo "$ac_t""yes" 1>&6
2438 else
2439 echo "$ac_t""no" 1>&6
2440 fi
2441
2442
2443
2444
2445 echo $ac_n "checking "for --enable-intl"""... $ac_c" 1>&6
2446echo "configure:2447: checking "for --enable-intl"" >&5
2447 no_cache=0
2448 # Check whether --enable-intl or --disable-intl was given.
2449if test "${enable_intl+set}" = set; then
2450 enableval="$enable_intl"
2451
2452 if test "$enableval" = yes; then
2453 ac_cv_use_intl='wxUSE_INTL=yes'
2454 else
2455 ac_cv_use_intl='wxUSE_INTL=no'
2456 fi
2457
2458else
2459
2460 LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
2461 if test "x$LINE" != x ; then
2462 eval "DEFAULT_$LINE"
2463 else
2464 no_cache=1
2465 fi
2466
2467 ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
2468
2469fi
2470
2471
2472 eval "$ac_cv_use_intl"
2473 if test "$no_cache" != 1; then
2474 echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
2475 fi
2476
2477 if test "$wxUSE_INTL" = yes; then
2478 echo "$ac_t""yes" 1>&6
2479 else
2480 echo "$ac_t""no" 1>&6
2481 fi
2482
2483
2484 echo $ac_n "checking "for --enable-config"""... $ac_c" 1>&6
2485echo "configure:2486: checking "for --enable-config"" >&5
2486 no_cache=0
2487 # Check whether --enable-config or --disable-config was given.
2488if test "${enable_config+set}" = set; then
2489 enableval="$enable_config"
2490
2491 if test "$enableval" = yes; then
2492 ac_cv_use_config='wxUSE_CONFIG=yes'
2493 else
2494 ac_cv_use_config='wxUSE_CONFIG=no'
2495 fi
2496
2497else
2498
2499 LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
2500 if test "x$LINE" != x ; then
2501 eval "DEFAULT_$LINE"
2502 else
2503 no_cache=1
2504 fi
2505
2506 ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
2507
2508fi
2509
2510
2511 eval "$ac_cv_use_config"
2512 if test "$no_cache" != 1; then
2513 echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
2514 fi
2515
2516 if test "$wxUSE_CONFIG" = yes; then
2517 echo "$ac_t""yes" 1>&6
2518 else
2519 echo "$ac_t""no" 1>&6
2520 fi
2521
2522
2523if test "$wxUSE_GUI" = "yes"; then
2524
2525 echo $ac_n "checking "for --enable-sockets"""... $ac_c" 1>&6
2526echo "configure:2527: checking "for --enable-sockets"" >&5
2527 no_cache=0
2528 # Check whether --enable-sockets or --disable-sockets was given.
2529if test "${enable_sockets+set}" = set; then
2530 enableval="$enable_sockets"
2531
2532 if test "$enableval" = yes; then
2533 ac_cv_use_sockets='wxUSE_SOCKETS=yes'
2534 else
2535 ac_cv_use_sockets='wxUSE_SOCKETS=no'
2536 fi
2537
2538else
2539
2540 LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
2541 if test "x$LINE" != x ; then
2542 eval "DEFAULT_$LINE"
2543 else
2544 no_cache=1
2545 fi
2546
2547 ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
2548
2549fi
2550
2551
2552 eval "$ac_cv_use_sockets"
2553 if test "$no_cache" != 1; then
2554 echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
2555 fi
2556
2557 if test "$wxUSE_SOCKETS" = yes; then
2558 echo "$ac_t""yes" 1>&6
2559 else
2560 echo "$ac_t""no" 1>&6
2561 fi
2562
2563else
2564wxUSE_SOCKETS=no
2565fi
2566
2567
2568 echo $ac_n "checking "for --enable-dialupman"""... $ac_c" 1>&6
2569echo "configure:2570: checking "for --enable-dialupman"" >&5
2570 no_cache=0
2571 # Check whether --enable-dialupman or --disable-dialupman was given.
2572if test "${enable_dialupman+set}" = set; then
2573 enableval="$enable_dialupman"
2574
2575 if test "$enableval" = yes; then
2576 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
2577 else
2578 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
2579 fi
2580
2581else
2582
2583 LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
2584 if test "x$LINE" != x ; then
2585 eval "DEFAULT_$LINE"
2586 else
2587 no_cache=1
2588 fi
2589
2590 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
2591
2592fi
2593
2594
2595 eval "$ac_cv_use_dialupman"
2596 if test "$no_cache" != 1; then
2597 echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
2598 fi
2599
2600 if test "$wxUSE_DIALUP_MANAGER" = yes; then
2601 echo "$ac_t""yes" 1>&6
2602 else
2603 echo "$ac_t""no" 1>&6
2604 fi
2605
2606
2607 echo $ac_n "checking "for --enable-ipc"""... $ac_c" 1>&6
2608echo "configure:2609: checking "for --enable-ipc"" >&5
2609 no_cache=0
2610 # Check whether --enable-ipc or --disable-ipc was given.
2611if test "${enable_ipc+set}" = set; then
2612 enableval="$enable_ipc"
2613
2614 if test "$enableval" = yes; then
2615 ac_cv_use_ipc='wxUSE_IPC=yes'
2616 else
2617 ac_cv_use_ipc='wxUSE_IPC=no'
2618 fi
2619
2620else
2621
2622 LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
2623 if test "x$LINE" != x ; then
2624 eval "DEFAULT_$LINE"
2625 else
2626 no_cache=1
2627 fi
2628
2629 ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
2630
2631fi
2632
2633
2634 eval "$ac_cv_use_ipc"
2635 if test "$no_cache" != 1; then
2636 echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
2637 fi
2638
2639 if test "$wxUSE_IPC" = yes; then
2640 echo "$ac_t""yes" 1>&6
2641 else
2642 echo "$ac_t""no" 1>&6
2643 fi
2644
2645
2646 echo $ac_n "checking "for --enable-apple_ieee"""... $ac_c" 1>&6
2647echo "configure:2648: checking "for --enable-apple_ieee"" >&5
2648 no_cache=0
2649 # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
2650if test "${enable_apple_ieee+set}" = set; then
2651 enableval="$enable_apple_ieee"
2652
2653 if test "$enableval" = yes; then
2654 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
2655 else
2656 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
2657 fi
2658
2659else
2660
2661 LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
2662 if test "x$LINE" != x ; then
2663 eval "DEFAULT_$LINE"
2664 else
2665 no_cache=1
2666 fi
2667
2668 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
2669
2670fi
2671
2672
2673 eval "$ac_cv_use_apple_ieee"
2674 if test "$no_cache" != 1; then
2675 echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
2676 fi
2677
2678 if test "$wxUSE_APPLE_IEEE" = yes; then
2679 echo "$ac_t""yes" 1>&6
2680 else
2681 echo "$ac_t""no" 1>&6
2682 fi
2683
2684
2685 echo $ac_n "checking "for --enable-timedate"""... $ac_c" 1>&6
2686echo "configure:2687: checking "for --enable-timedate"" >&5
2687 no_cache=0
2688 # Check whether --enable-timedate or --disable-timedate was given.
2689if test "${enable_timedate+set}" = set; then
2690 enableval="$enable_timedate"
2691
2692 if test "$enableval" = yes; then
2693 ac_cv_use_timedate='wxUSE_TIMEDATE=yes'
2694 else
2695 ac_cv_use_timedate='wxUSE_TIMEDATE=no'
2696 fi
2697
2698else
2699
2700 LINE=`grep "wxUSE_TIMEDATE" ${wx_arg_cache_file}`
2701 if test "x$LINE" != x ; then
2702 eval "DEFAULT_$LINE"
2703 else
2704 no_cache=1
2705 fi
2706
2707 ac_cv_use_timedate='wxUSE_TIMEDATE='$DEFAULT_wxUSE_TIMEDATE
2708
2709fi
2710
2711
2712 eval "$ac_cv_use_timedate"
2713 if test "$no_cache" != 1; then
2714 echo $ac_cv_use_timedate >> ${wx_arg_cache_file}.tmp
2715 fi
2716
2717 if test "$wxUSE_TIMEDATE" = yes; then
2718 echo "$ac_t""yes" 1>&6
2719 else
2720 echo "$ac_t""no" 1>&6
2721 fi
2722
2723
2724 echo $ac_n "checking "for --enable-wave"""... $ac_c" 1>&6
2725echo "configure:2726: checking "for --enable-wave"" >&5
2726 no_cache=0
2727 # Check whether --enable-wave or --disable-wave was given.
2728if test "${enable_wave+set}" = set; then
2729 enableval="$enable_wave"
2730
2731 if test "$enableval" = yes; then
2732 ac_cv_use_wave='wxUSE_WAVE=yes'
2733 else
2734 ac_cv_use_wave='wxUSE_WAVE=no'
2735 fi
2736
2737else
2738
2739 LINE=`grep "wxUSE_WAVE" ${wx_arg_cache_file}`
2740 if test "x$LINE" != x ; then
2741 eval "DEFAULT_$LINE"
2742 else
2743 no_cache=1
2744 fi
2745
2746 ac_cv_use_wave='wxUSE_WAVE='$DEFAULT_wxUSE_WAVE
2747
2748fi
2749
2750
2751 eval "$ac_cv_use_wave"
2752 if test "$no_cache" != 1; then
2753 echo $ac_cv_use_wave >> ${wx_arg_cache_file}.tmp
2754 fi
2755
2756 if test "$wxUSE_WAVE" = yes; then
2757 echo "$ac_t""yes" 1>&6
2758 else
2759 echo "$ac_t""no" 1>&6
2760 fi
2761
2762
2763 echo $ac_n "checking "for --enable-fraction"""... $ac_c" 1>&6
2764echo "configure:2765: checking "for --enable-fraction"" >&5
2765 no_cache=0
2766 # Check whether --enable-fraction or --disable-fraction was given.
2767if test "${enable_fraction+set}" = set; then
2768 enableval="$enable_fraction"
2769
2770 if test "$enableval" = yes; then
2771 ac_cv_use_fraction='wxUSE_FRACTION=yes'
2772 else
2773 ac_cv_use_fraction='wxUSE_FRACTION=no'
2774 fi
2775
2776else
2777
2778 LINE=`grep "wxUSE_FRACTION" ${wx_arg_cache_file}`
2779 if test "x$LINE" != x ; then
2780 eval "DEFAULT_$LINE"
2781 else
2782 no_cache=1
2783 fi
2784
2785 ac_cv_use_fraction='wxUSE_FRACTION='$DEFAULT_wxUSE_FRACTION
2786
2787fi
2788
2789
2790 eval "$ac_cv_use_fraction"
2791 if test "$no_cache" != 1; then
2792 echo $ac_cv_use_fraction >> ${wx_arg_cache_file}.tmp
2793 fi
2794
2795 if test "$wxUSE_FRACTION" = yes; then
2796 echo "$ac_t""yes" 1>&6
2797 else
2798 echo "$ac_t""no" 1>&6
2799 fi
2800
2801
2802 echo $ac_n "checking "for --enable-dynlib"""... $ac_c" 1>&6
2803echo "configure:2804: checking "for --enable-dynlib"" >&5
2804 no_cache=0
2805 # Check whether --enable-dynlib or --disable-dynlib was given.
2806if test "${enable_dynlib+set}" = set; then
2807 enableval="$enable_dynlib"
2808
2809 if test "$enableval" = yes; then
2810 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
2811 else
2812 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
2813 fi
2814
2815else
2816
2817 LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
2818 if test "x$LINE" != x ; then
2819 eval "DEFAULT_$LINE"
2820 else
2821 no_cache=1
2822 fi
2823
2824 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
2825
2826fi
2827
2828
2829 eval "$ac_cv_use_dynlib"
2830 if test "$no_cache" != 1; then
2831 echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
2832 fi
2833
2834 if test "$wxUSE_DYNLIB_CLASS" = yes; then
2835 echo "$ac_t""yes" 1>&6
2836 else
2837 echo "$ac_t""no" 1>&6
2838 fi
2839
2840
2841 echo $ac_n "checking "for --enable-longlong"""... $ac_c" 1>&6
2842echo "configure:2843: checking "for --enable-longlong"" >&5
2843 no_cache=0
2844 # Check whether --enable-longlong or --disable-longlong was given.
2845if test "${enable_longlong+set}" = set; then
2846 enableval="$enable_longlong"
2847
2848 if test "$enableval" = yes; then
2849 ac_cv_use_longlong='wxUSE_LONGLONG=yes'
2850 else
2851 ac_cv_use_longlong='wxUSE_LONGLONG=no'
2852 fi
2853
2854else
2855
2856 LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
2857 if test "x$LINE" != x ; then
2858 eval "DEFAULT_$LINE"
2859 else
2860 no_cache=1
2861 fi
2862
2863 ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
2864
2865fi
2866
2867
2868 eval "$ac_cv_use_longlong"
2869 if test "$no_cache" != 1; then
2870 echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
2871 fi
2872
2873 if test "$wxUSE_LONGLONG" = yes; then
2874 echo "$ac_t""yes" 1>&6
2875 else
2876 echo "$ac_t""no" 1>&6
2877 fi
2878
2879
2880 echo $ac_n "checking "for --enable-log"""... $ac_c" 1>&6
2881echo "configure:2882: checking "for --enable-log"" >&5
2882 no_cache=0
2883 # Check whether --enable-log or --disable-log was given.
2884if test "${enable_log+set}" = set; then
2885 enableval="$enable_log"
2886
2887 if test "$enableval" = yes; then
2888 ac_cv_use_log='wxUSE_LOG=yes'
2889 else
2890 ac_cv_use_log='wxUSE_LOG=no'
2891 fi
2892
2893else
2894
2895 LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
2896 if test "x$LINE" != x ; then
2897 eval "DEFAULT_$LINE"
2898 else
2899 no_cache=1
2900 fi
2901
2902 ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
2903
2904fi
2905
2906
2907 eval "$ac_cv_use_log"
2908 if test "$no_cache" != 1; then
2909 echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
2910 fi
2911
2912 if test "$wxUSE_LOG" = yes; then
2913 echo "$ac_t""yes" 1>&6
2914 else
2915 echo "$ac_t""no" 1>&6
2916 fi
2917
2918
2919 echo $ac_n "checking "for --enable-streams"""... $ac_c" 1>&6
2920echo "configure:2921: checking "for --enable-streams"" >&5
2921 no_cache=0
2922 # Check whether --enable-streams or --disable-streams was given.
2923if test "${enable_streams+set}" = set; then
2924 enableval="$enable_streams"
2925
2926 if test "$enableval" = yes; then
2927 ac_cv_use_streams='wxUSE_STREAMS=yes'
2928 else
2929 ac_cv_use_streams='wxUSE_STREAMS=no'
2930 fi
2931
2932else
2933
2934 LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
2935 if test "x$LINE" != x ; then
2936 eval "DEFAULT_$LINE"
2937 else
2938 no_cache=1
2939 fi
2940
2941 ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
2942
2943fi
2944
2945
2946 eval "$ac_cv_use_streams"
2947 if test "$no_cache" != 1; then
2948 echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
2949 fi
2950
2951 if test "$wxUSE_STREAMS" = yes; then
2952 echo "$ac_t""yes" 1>&6
2953 else
2954 echo "$ac_t""no" 1>&6
2955 fi
2956
2957
2958 echo $ac_n "checking "for --enable-file"""... $ac_c" 1>&6
2959echo "configure:2960: checking "for --enable-file"" >&5
2960 no_cache=0
2961 # Check whether --enable-file or --disable-file was given.
2962if test "${enable_file+set}" = set; then
2963 enableval="$enable_file"
2964
2965 if test "$enableval" = yes; then
2966 ac_cv_use_file='wxUSE_FILE=yes'
2967 else
2968 ac_cv_use_file='wxUSE_FILE=no'
2969 fi
2970
2971else
2972
2973 LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
2974 if test "x$LINE" != x ; then
2975 eval "DEFAULT_$LINE"
2976 else
2977 no_cache=1
2978 fi
2979
2980 ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
2981
2982fi
2983
2984
2985 eval "$ac_cv_use_file"
2986 if test "$no_cache" != 1; then
2987 echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
2988 fi
2989
2990 if test "$wxUSE_FILE" = yes; then
2991 echo "$ac_t""yes" 1>&6
2992 else
2993 echo "$ac_t""no" 1>&6
2994 fi
2995
2996
2997 echo $ac_n "checking "for --enable-textfile"""... $ac_c" 1>&6
2998echo "configure:2999: checking "for --enable-textfile"" >&5
2999 no_cache=0
3000 # Check whether --enable-textfile or --disable-textfile was given.
3001if test "${enable_textfile+set}" = set; then
3002 enableval="$enable_textfile"
3003
3004 if test "$enableval" = yes; then
3005 ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
3006 else
3007 ac_cv_use_textfile='wxUSE_TEXTFILE=no'
3008 fi
3009
3010else
3011
3012 LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
3013 if test "x$LINE" != x ; then
3014 eval "DEFAULT_$LINE"
3015 else
3016 no_cache=1
3017 fi
3018
3019 ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
3020
3021fi
3022
3023
3024 eval "$ac_cv_use_textfile"
3025 if test "$no_cache" != 1; then
3026 echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
3027 fi
3028
3029 if test "$wxUSE_TEXTFILE" = yes; then
3030 echo "$ac_t""yes" 1>&6
3031 else
3032 echo "$ac_t""no" 1>&6
3033 fi
3034
3035
3036 echo $ac_n "checking "for --enable-unicode"""... $ac_c" 1>&6
3037echo "configure:3038: checking "for --enable-unicode"" >&5
3038 no_cache=0
3039 # Check whether --enable-unicode or --disable-unicode was given.
3040if test "${enable_unicode+set}" = set; then
3041 enableval="$enable_unicode"
3042
3043 if test "$enableval" = yes; then
3044 ac_cv_use_unicode='wxUSE_UNICODE=yes'
3045 else
3046 ac_cv_use_unicode='wxUSE_UNICODE=no'
3047 fi
3048
3049else
3050
3051 LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
3052 if test "x$LINE" != x ; then
3053 eval "DEFAULT_$LINE"
3054 else
3055 no_cache=1
3056 fi
3057
3058 ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
3059
3060fi
3061
3062
3063 eval "$ac_cv_use_unicode"
3064 if test "$no_cache" != 1; then
3065 echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
3066 fi
3067
3068 if test "$wxUSE_UNICODE" = yes; then
3069 echo "$ac_t""yes" 1>&6
3070 else
3071 echo "$ac_t""no" 1>&6
3072 fi
3073
3074
3075 echo $ac_n "checking "for --enable-wcsrtombs"""... $ac_c" 1>&6
3076echo "configure:3077: checking "for --enable-wcsrtombs"" >&5
3077 no_cache=0
3078 # Check whether --enable-wcsrtombs or --disable-wcsrtombs was given.
3079if test "${enable_wcsrtombs+set}" = set; then
3080 enableval="$enable_wcsrtombs"
3081
3082 if test "$enableval" = yes; then
3083 ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS=yes'
3084 else
3085 ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS=no'
3086 fi
3087
3088else
3089
3090 LINE=`grep "wxUSE_WCSRTOMBS" ${wx_arg_cache_file}`
3091 if test "x$LINE" != x ; then
3092 eval "DEFAULT_$LINE"
3093 else
3094 no_cache=1
3095 fi
3096
3097 ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS='$DEFAULT_wxUSE_WCSRTOMBS
3098
3099fi
3100
3101
3102 eval "$ac_cv_use_wcsrtombs"
3103 if test "$no_cache" != 1; then
3104 echo $ac_cv_use_wcsrtombs >> ${wx_arg_cache_file}.tmp
3105 fi
3106
3107 if test "$wxUSE_WCSRTOMBS" = yes; then
3108 echo "$ac_t""yes" 1>&6
3109 else
3110 echo "$ac_t""no" 1>&6
3111 fi
3112
3113
3114 echo $ac_n "checking "for --enable-wxprintfv"""... $ac_c" 1>&6
3115echo "configure:3116: checking "for --enable-wxprintfv"" >&5
3116 no_cache=0
3117 # Check whether --enable-wxprintfv or --disable-wxprintfv was given.
3118if test "${enable_wxprintfv+set}" = set; then
3119 enableval="$enable_wxprintfv"
3120
3121 if test "$enableval" = yes; then
3122 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes'
3123 else
3124 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no'
3125 fi
3126
3127else
3128
3129 LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}`
3130 if test "x$LINE" != x ; then
3131 eval "DEFAULT_$LINE"
3132 else
3133 no_cache=1
3134 fi
3135
3136 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF
3137
3138fi
3139
3140
3141 eval "$ac_cv_use_wxprintfv"
3142 if test "$no_cache" != 1; then
3143 echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp
3144 fi
3145
3146 if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then
3147 echo "$ac_t""yes" 1>&6
3148 else
3149 echo "$ac_t""no" 1>&6
3150 fi
3151
3152
3153 echo $ac_n "checking "for --enable-joystick"""... $ac_c" 1>&6
3154echo "configure:3155: checking "for --enable-joystick"" >&5
3155 no_cache=0
3156 # Check whether --enable-joystick or --disable-joystick was given.
3157if test "${enable_joystick+set}" = set; then
3158 enableval="$enable_joystick"
3159
3160 if test "$enableval" = yes; then
3161 ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
3162 else
3163 ac_cv_use_joystick='wxUSE_JOYSTICK=no'
3164 fi
3165
3166else
3167
3168 LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
3169 if test "x$LINE" != x ; then
3170 eval "DEFAULT_$LINE"
3171 else
3172 no_cache=1
3173 fi
3174
3175 ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
3176
3177fi
3178
3179
3180 eval "$ac_cv_use_joystick"
3181 if test "$no_cache" != 1; then
3182 echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
3183 fi
3184
3185 if test "$wxUSE_JOYSTICK" = yes; then
3186 echo "$ac_t""yes" 1>&6
3187 else
3188 echo "$ac_t""no" 1>&6
3189 fi
3190
3191
3192 echo $ac_n "checking "for --enable-std_iostreams"""... $ac_c" 1>&6
3193echo "configure:3194: checking "for --enable-std_iostreams"" >&5
3194 no_cache=0
3195 # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
3196if test "${enable_std_iostreams+set}" = set; then
3197 enableval="$enable_std_iostreams"
3198
3199 if test "$enableval" = yes; then
3200 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
3201 else
3202 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
3203 fi
3204
3205else
3206
3207 LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
3208 if test "x$LINE" != x ; then
3209 eval "DEFAULT_$LINE"
3210 else
3211 no_cache=1
3212 fi
3213
3214 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
3215
3216fi
3217
3218
3219 eval "$ac_cv_use_std_iostreams"
3220 if test "$no_cache" != 1; then
3221 echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
3222 fi
3223
3224 if test "$wxUSE_STD_IOSTREAM" = yes; then
3225 echo "$ac_t""yes" 1>&6
3226 else
3227 echo "$ac_t""no" 1>&6
3228 fi
3229
3230
3231 echo $ac_n "checking "for --enable-filesystem"""... $ac_c" 1>&6
3232echo "configure:3233: checking "for --enable-filesystem"" >&5
3233 no_cache=0
3234 # Check whether --enable-filesystem or --disable-filesystem was given.
3235if test "${enable_filesystem+set}" = set; then
3236 enableval="$enable_filesystem"
3237
3238 if test "$enableval" = yes; then
3239 ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
3240 else
3241 ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
3242 fi
3243
3244else
3245
3246 LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}`
3247 if test "x$LINE" != x ; then
3248 eval "DEFAULT_$LINE"
3249 else
3250 no_cache=1
3251 fi
3252
3253 ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
3254
3255fi
3256
3257
3258 eval "$ac_cv_use_filesystem"
3259 if test "$no_cache" != 1; then
3260 echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
3261 fi
3262
3263 if test "$wxUSE_FILESYSTEM" = yes; then
3264 echo "$ac_t""yes" 1>&6
3265 else
3266 echo "$ac_t""no" 1>&6
3267 fi
3268
3269
3270 echo $ac_n "checking "for --enable-fs_inet"""... $ac_c" 1>&6
3271echo "configure:3272: checking "for --enable-fs_inet"" >&5
3272 no_cache=0
3273 # Check whether --enable-fs_inet or --disable-fs_inet was given.
3274if test "${enable_fs_inet+set}" = set; then
3275 enableval="$enable_fs_inet"
3276
3277 if test "$enableval" = yes; then
3278 ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
3279 else
3280 ac_cv_use_fs_inet='wxUSE_FS_INET=no'
3281 fi
3282
3283else
3284
3285 LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
3286 if test "x$LINE" != x ; then
3287 eval "DEFAULT_$LINE"
3288 else
3289 no_cache=1
3290 fi
3291
3292 ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
3293
3294fi
3295
3296
3297 eval "$ac_cv_use_fs_inet"
3298 if test "$no_cache" != 1; then
3299 echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
3300 fi
3301
3302 if test "$wxUSE_FS_INET" = yes; then
3303 echo "$ac_t""yes" 1>&6
3304 else
3305 echo "$ac_t""no" 1>&6
3306 fi
3307
3308
3309 echo $ac_n "checking "for --enable-fs_zip"""... $ac_c" 1>&6
3310echo "configure:3311: checking "for --enable-fs_zip"" >&5
3311 no_cache=0
3312 # Check whether --enable-fs_zip or --disable-fs_zip was given.
3313if test "${enable_fs_zip+set}" = set; then
3314 enableval="$enable_fs_zip"
3315
3316 if test "$enableval" = yes; then
3317 ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
3318 else
3319 ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
3320 fi
3321
3322else
3323
3324 LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
3325 if test "x$LINE" != x ; then
3326 eval "DEFAULT_$LINE"
3327 else
3328 no_cache=1
3329 fi
3330
3331 ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
3332
3333fi
3334
3335
3336 eval "$ac_cv_use_fs_zip"
3337 if test "$no_cache" != 1; then
3338 echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
3339 fi
3340
3341 if test "$wxUSE_FS_ZIP" = yes; then
3342 echo "$ac_t""yes" 1>&6
3343 else
3344 echo "$ac_t""no" 1>&6
3345 fi
3346
3347
3348 echo $ac_n "checking "for --enable-zipstream"""... $ac_c" 1>&6
3349echo "configure:3350: checking "for --enable-zipstream"" >&5
3350 no_cache=0
3351 # Check whether --enable-zipstream or --disable-zipstream was given.
3352if test "${enable_zipstream+set}" = set; then
3353 enableval="$enable_zipstream"
3354
3355 if test "$enableval" = yes; then
3356 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
3357 else
3358 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
3359 fi
3360
3361else
3362
3363 LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
3364 if test "x$LINE" != x ; then
3365 eval "DEFAULT_$LINE"
3366 else
3367 no_cache=1
3368 fi
3369
3370 ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
3371
3372fi
3373
3374
3375 eval "$ac_cv_use_zipstream"
3376 if test "$no_cache" != 1; then
3377 echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
3378 fi
3379
3380 if test "$wxUSE_ZIPSTREAM" = yes; then
3381 echo "$ac_t""yes" 1>&6
3382 else
3383 echo "$ac_t""no" 1>&6
3384 fi
3385
3386
3387
3388
3389 echo $ac_n "checking "for --enable-threads"""... $ac_c" 1>&6
3390echo "configure:3391: checking "for --enable-threads"" >&5
3391 no_cache=0
3392 # Check whether --enable-threads or --disable-threads was given.
3393if test "${enable_threads+set}" = set; then
3394 enableval="$enable_threads"
3395
3396 if test "$enableval" = yes; then
3397 ac_cv_use_threads='wxUSE_THREADS=yes'
3398 else
3399 ac_cv_use_threads='wxUSE_THREADS=no'
3400 fi
3401
3402else
3403
3404 LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
3405 if test "x$LINE" != x ; then
3406 eval "DEFAULT_$LINE"
3407 else
3408 no_cache=1
3409 fi
3410
3411 ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
3412
3413fi
3414
3415
3416 eval "$ac_cv_use_threads"
3417 if test "$no_cache" != 1; then
3418 echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
3419 fi
3420
3421 if test "$wxUSE_THREADS" = yes; then
3422 echo "$ac_t""yes" 1>&6
3423 else
3424 echo "$ac_t""no" 1>&6
3425 fi
3426
3427
3428 echo $ac_n "checking "for --enable-serial"""... $ac_c" 1>&6
3429echo "configure:3430: checking "for --enable-serial"" >&5
3430 no_cache=0
3431 # Check whether --enable-serial or --disable-serial was given.
3432if test "${enable_serial+set}" = set; then
3433 enableval="$enable_serial"
3434
3435 if test "$enableval" = yes; then
3436 ac_cv_use_serial='wxUSE_SERIAL=yes'
3437 else
3438 ac_cv_use_serial='wxUSE_SERIAL=no'
3439 fi
3440
3441else
3442
3443 LINE=`grep "wxUSE_SERIAL" ${wx_arg_cache_file}`
3444 if test "x$LINE" != x ; then
3445 eval "DEFAULT_$LINE"
3446 else
3447 no_cache=1
3448 fi
3449
3450 ac_cv_use_serial='wxUSE_SERIAL='$DEFAULT_wxUSE_SERIAL
3451
3452fi
3453
3454
3455 eval "$ac_cv_use_serial"
3456 if test "$no_cache" != 1; then
3457 echo $ac_cv_use_serial >> ${wx_arg_cache_file}.tmp
3458 fi
3459
3460 if test "$wxUSE_SERIAL" = yes; then
3461 echo "$ac_t""yes" 1>&6
3462 else
3463 echo "$ac_t""no" 1>&6
3464 fi
3465
3466
3467if test "$wxUSE_GUI" = "yes"; then
3468
3469
3470
3471 echo $ac_n "checking "for --enable-docview"""... $ac_c" 1>&6
3472echo "configure:3473: checking "for --enable-docview"" >&5
3473 no_cache=0
3474 # Check whether --enable-docview or --disable-docview was given.
3475if test "${enable_docview+set}" = set; then
3476 enableval="$enable_docview"
3477
3478 if test "$enableval" = yes; then
3479 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
3480 else
3481 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
3482 fi
3483
3484else
3485
3486 LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
3487 if test "x$LINE" != x ; then
3488 eval "DEFAULT_$LINE"
3489 else
3490 no_cache=1
3491 fi
3492
3493 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
3494
3495fi
3496
3497
3498 eval "$ac_cv_use_docview"
3499 if test "$no_cache" != 1; then
3500 echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
3501 fi
3502
3503 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
3504 echo "$ac_t""yes" 1>&6
3505 else
3506 echo "$ac_t""no" 1>&6
3507 fi
3508
3509
3510 echo $ac_n "checking "for --enable-help"""... $ac_c" 1>&6
3511echo "configure:3512: checking "for --enable-help"" >&5
3512 no_cache=0
3513 # Check whether --enable-help or --disable-help was given.
3514if test "${enable_help+set}" = set; then
3515 enableval="$enable_help"
3516
3517 if test "$enableval" = yes; then
3518 ac_cv_use_help='wxUSE_HELP=yes'
3519 else
3520 ac_cv_use_help='wxUSE_HELP=no'
3521 fi
3522
3523else
3524
3525 LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
3526 if test "x$LINE" != x ; then
3527 eval "DEFAULT_$LINE"
3528 else
3529 no_cache=1
3530 fi
3531
3532 ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
3533
3534fi
3535
3536
3537 eval "$ac_cv_use_help"
3538 if test "$no_cache" != 1; then
3539 echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
3540 fi
3541
3542 if test "$wxUSE_HELP" = yes; then
3543 echo "$ac_t""yes" 1>&6
3544 else
3545 echo "$ac_t""no" 1>&6
3546 fi
3547
3548
3549 echo $ac_n "checking "for --enable-constraints"""... $ac_c" 1>&6
3550echo "configure:3551: checking "for --enable-constraints"" >&5
3551 no_cache=0
3552 # Check whether --enable-constraints or --disable-constraints was given.
3553if test "${enable_constraints+set}" = set; then
3554 enableval="$enable_constraints"
3555
3556 if test "$enableval" = yes; then
3557 ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
3558 else
3559 ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
3560 fi
3561
3562else
3563
3564 LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
3565 if test "x$LINE" != x ; then
3566 eval "DEFAULT_$LINE"
3567 else
3568 no_cache=1
3569 fi
3570
3571 ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
3572
3573fi
3574
3575
3576 eval "$ac_cv_use_constraints"
3577 if test "$no_cache" != 1; then
3578 echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
3579 fi
3580
3581 if test "$wxUSE_CONSTRAINTS" = yes; then
3582 echo "$ac_t""yes" 1>&6
3583 else
3584 echo "$ac_t""no" 1>&6
3585 fi
3586
3587
3588 echo $ac_n "checking "for --enable-printarch"""... $ac_c" 1>&6
3589echo "configure:3590: checking "for --enable-printarch"" >&5
3590 no_cache=0
3591 # Check whether --enable-printarch or --disable-printarch was given.
3592if test "${enable_printarch+set}" = set; then
3593 enableval="$enable_printarch"
3594
3595 if test "$enableval" = yes; then
3596 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
3597 else
3598 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
3599 fi
3600
3601else
3602
3603 LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
3604 if test "x$LINE" != x ; then
3605 eval "DEFAULT_$LINE"
3606 else
3607 no_cache=1
3608 fi
3609
3610 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
3611
3612fi
3613
3614
3615 eval "$ac_cv_use_printarch"
3616 if test "$no_cache" != 1; then
3617 echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
3618 fi
3619
3620 if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
3621 echo "$ac_t""yes" 1>&6
3622 else
3623 echo "$ac_t""no" 1>&6
3624 fi
3625
3626
3627 echo $ac_n "checking "for --enable-mdi"""... $ac_c" 1>&6
3628echo "configure:3629: checking "for --enable-mdi"" >&5
3629 no_cache=0
3630 # Check whether --enable-mdi or --disable-mdi was given.
3631if test "${enable_mdi+set}" = set; then
3632 enableval="$enable_mdi"
3633
3634 if test "$enableval" = yes; then
3635 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=yes'
3636 else
3637 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=no'
3638 fi
3639
3640else
3641
3642 LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
3643 if test "x$LINE" != x ; then
3644 eval "DEFAULT_$LINE"
3645 else
3646 no_cache=1
3647 fi
3648
3649 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
3650
3651fi
3652
3653
3654 eval "$ac_cv_use_mdi"
3655 if test "$no_cache" != 1; then
3656 echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
3657 fi
3658
3659 if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
3660 echo "$ac_t""yes" 1>&6
3661 else
3662 echo "$ac_t""no" 1>&6
3663 fi
3664
3665
3666
3667 echo $ac_n "checking "for --enable-postscript"""... $ac_c" 1>&6
3668echo "configure:3669: checking "for --enable-postscript"" >&5
3669 no_cache=0
3670 # Check whether --enable-postscript or --disable-postscript was given.
3671if test "${enable_postscript+set}" = set; then
3672 enableval="$enable_postscript"
3673
3674 if test "$enableval" = yes; then
3675 ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
3676 else
3677 ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
3678 fi
3679
3680else
3681
3682 LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
3683 if test "x$LINE" != x ; then
3684 eval "DEFAULT_$LINE"
3685 else
3686 no_cache=1
3687 fi
3688
3689 ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
3690
3691fi
3692
3693
3694 eval "$ac_cv_use_postscript"
3695 if test "$no_cache" != 1; then
3696 echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
3697 fi
3698
3699 if test "$wxUSE_POSTSCRIPT" = yes; then
3700 echo "$ac_t""yes" 1>&6
3701 else
3702 echo "$ac_t""no" 1>&6
3703 fi
3704
3705
3706
3707
3708 echo $ac_n "checking "for --enable-prologio"""... $ac_c" 1>&6
3709echo "configure:3710: checking "for --enable-prologio"" >&5
3710 no_cache=0
3711 # Check whether --enable-prologio or --disable-prologio was given.
3712if test "${enable_prologio+set}" = set; then
3713 enableval="$enable_prologio"
3714
3715 if test "$enableval" = yes; then
3716 ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
3717 else
3718 ac_cv_use_prologio='wxUSE_PROLOGIO=no'
3719 fi
3720
3721else
3722
3723 LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
3724 if test "x$LINE" != x ; then
3725 eval "DEFAULT_$LINE"
3726 else
3727 no_cache=1
3728 fi
3729
3730 ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
3731
3732fi
3733
3734
3735 eval "$ac_cv_use_prologio"
3736 if test "$no_cache" != 1; then
3737 echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
3738 fi
3739
3740 if test "$wxUSE_PROLOGIO" = yes; then
3741 echo "$ac_t""yes" 1>&6
3742 else
3743 echo "$ac_t""no" 1>&6
3744 fi
3745
3746
3747 echo $ac_n "checking "for --enable-resources"""... $ac_c" 1>&6
3748echo "configure:3749: checking "for --enable-resources"" >&5
3749 no_cache=0
3750 # Check whether --enable-resources or --disable-resources was given.
3751if test "${enable_resources+set}" = set; then
3752 enableval="$enable_resources"
3753
3754 if test "$enableval" = yes; then
3755 ac_cv_use_resources='wxUSE_RESOURCES=yes'
3756 else
3757 ac_cv_use_resources='wxUSE_RESOURCES=no'
3758 fi
3759
3760else
3761
3762 LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
3763 if test "x$LINE" != x ; then
3764 eval "DEFAULT_$LINE"
3765 else
3766 no_cache=1
3767 fi
3768
3769 ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
3770
3771fi
3772
3773
3774 eval "$ac_cv_use_resources"
3775 if test "$no_cache" != 1; then
3776 echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
3777 fi
3778
3779 if test "$wxUSE_RESOURCES" = yes; then
3780 echo "$ac_t""yes" 1>&6
3781 else
3782 echo "$ac_t""no" 1>&6
3783 fi
3784
3785
3786
3787 echo $ac_n "checking "for --enable-xresources"""... $ac_c" 1>&6
3788echo "configure:3789: checking "for --enable-xresources"" >&5
3789 no_cache=0
3790 # Check whether --enable-xresources or --disable-xresources was given.
3791if test "${enable_xresources+set}" = set; then
3792 enableval="$enable_xresources"
3793
3794 if test "$enableval" = yes; then
3795 ac_cv_use_xresources='wxUSE_X_RESOURCES=yes'
3796 else
3797 ac_cv_use_xresources='wxUSE_X_RESOURCES=no'
3798 fi
3799
3800else
3801
3802 LINE=`grep "wxUSE_X_RESOURCES" ${wx_arg_cache_file}`
3803 if test "x$LINE" != x ; then
3804 eval "DEFAULT_$LINE"
3805 else
3806 no_cache=1
3807 fi
3808
3809 ac_cv_use_xresources='wxUSE_X_RESOURCES='$DEFAULT_wxUSE_X_RESOURCES
3810
3811fi
3812
3813
3814 eval "$ac_cv_use_xresources"
3815 if test "$no_cache" != 1; then
3816 echo $ac_cv_use_xresources >> ${wx_arg_cache_file}.tmp
3817 fi
3818
3819 if test "$wxUSE_X_RESOURCES" = yes; then
3820 echo "$ac_t""yes" 1>&6
3821 else
3822 echo "$ac_t""no" 1>&6
3823 fi
3824
3825
3826
3827
3828 echo $ac_n "checking "for --enable-clipboard"""... $ac_c" 1>&6
3829echo "configure:3830: checking "for --enable-clipboard"" >&5
3830 no_cache=0
3831 # Check whether --enable-clipboard or --disable-clipboard was given.
3832if test "${enable_clipboard+set}" = set; then
3833 enableval="$enable_clipboard"
3834
3835 if test "$enableval" = yes; then
3836 ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
3837 else
3838 ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
3839 fi
3840
3841else
3842
3843 LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
3844 if test "x$LINE" != x ; then
3845 eval "DEFAULT_$LINE"
3846 else
3847 no_cache=1
3848 fi
3849
3850 ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
3851
3852fi
3853
3854
3855 eval "$ac_cv_use_clipboard"
3856 if test "$no_cache" != 1; then
3857 echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
3858 fi
3859
3860 if test "$wxUSE_CLIPBOARD" = yes; then
3861 echo "$ac_t""yes" 1>&6
3862 else
3863 echo "$ac_t""no" 1>&6
3864 fi
3865
3866
3867 echo $ac_n "checking "for --enable-dnd"""... $ac_c" 1>&6
3868echo "configure:3869: checking "for --enable-dnd"" >&5
3869 no_cache=0
3870 # Check whether --enable-dnd or --disable-dnd was given.
3871if test "${enable_dnd+set}" = set; then
3872 enableval="$enable_dnd"
3873
3874 if test "$enableval" = yes; then
3875 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
3876 else
3877 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
3878 fi
3879
3880else
3881
3882 LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
3883 if test "x$LINE" != x ; then
3884 eval "DEFAULT_$LINE"
3885 else
3886 no_cache=1
3887 fi
3888
3889 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
3890
3891fi
3892
3893
3894 eval "$ac_cv_use_dnd"
3895 if test "$no_cache" != 1; then
3896 echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
3897 fi
3898
3899 if test "$wxUSE_DRAG_AND_DROP" = yes; then
3900 echo "$ac_t""yes" 1>&6
3901 else
3902 echo "$ac_t""no" 1>&6
3903 fi
3904
3905
3906
3907 echo $ac_n "checking "for --enable-wxtree"""... $ac_c" 1>&6
3908echo "configure:3909: checking "for --enable-wxtree"" >&5
3909 no_cache=0
3910 # Check whether --enable-wxtree or --disable-wxtree was given.
3911if test "${enable_wxtree+set}" = set; then
3912 enableval="$enable_wxtree"
3913
3914 if test "$enableval" = yes; then
3915 ac_cv_use_wxtree='wxUSE_WXTREE=yes'
3916 else
3917 ac_cv_use_wxtree='wxUSE_WXTREE=no'
3918 fi
3919
3920else
3921
3922 LINE=`grep "wxUSE_WXTREE" ${wx_arg_cache_file}`
3923 if test "x$LINE" != x ; then
3924 eval "DEFAULT_$LINE"
3925 else
3926 no_cache=1
3927 fi
3928
3929 ac_cv_use_wxtree='wxUSE_WXTREE='$DEFAULT_wxUSE_WXTREE
3930
3931fi
3932
3933
3934 eval "$ac_cv_use_wxtree"
3935 if test "$no_cache" != 1; then
3936 echo $ac_cv_use_wxtree >> ${wx_arg_cache_file}.tmp
3937 fi
3938
3939 if test "$wxUSE_WXTREE" = yes; then
3940 echo "$ac_t""yes" 1>&6
3941 else
3942 echo "$ac_t""no" 1>&6
3943 fi
3944
3945
3946
3947
3948 echo $ac_n "checking "for --enable-controls"""... $ac_c" 1>&6
3949echo "configure:3950: checking "for --enable-controls"" >&5
3950 no_cache=0
3951 # Check whether --enable-controls or --disable-controls was given.
3952if test "${enable_controls+set}" = set; then
3953 enableval="$enable_controls"
3954
3955 if test "$enableval" = yes; then
3956 ac_cv_use_controls='wxUSE_CONTROLS=yes'
3957 else
3958 ac_cv_use_controls='wxUSE_CONTROLS=no'
3959 fi
3960
3961else
3962
3963 LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
3964 if test "x$LINE" != x ; then
3965 eval "DEFAULT_$LINE"
3966 else
3967 no_cache=1
3968 fi
3969
3970 ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
3971
3972fi
3973
3974
3975 eval "$ac_cv_use_controls"
3976 if test "$no_cache" != 1; then
3977 echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
3978 fi
3979
3980 if test "$wxUSE_CONTROLS" = yes; then
3981 echo "$ac_t""yes" 1>&6
3982 else
3983 echo "$ac_t""no" 1>&6
3984 fi
3985
3986
3987if test "$wxUSE_CONTROLS" = "yes"; then
3988 DEFAULT_wxUSE_ACCEL=yes
3989 DEFAULT_wxUSE_CARET=yes
3990 DEFAULT_wxUSE_COMBOBOX=yes
3991 DEFAULT_wxUSE_BMPBUTTON=yes
3992 DEFAULT_wxUSE_CHECKBOX=yes
3993 DEFAULT_wxUSE_CHECKLISTBOX=yes
3994 DEFAULT_wxUSE_CHOICE=yes
3995 DEFAULT_wxUSE_GAUGE=yes
3996 DEFAULT_wxUSE_GRID=yes
3997 DEFAULT_wxUSE_NEW_GRID=yes
3998 DEFAULT_wxUSE_IMAGLIST=yes
3999 DEFAULT_wxUSE_LISTBOX=yes
4000 DEFAULT_wxUSE_LISTCTRL=yes
4001 DEFAULT_wxUSE_NOTEBOOK=yes
4002 DEFAULT_wxUSE_RADIOBOX=yes
4003 DEFAULT_wxUSE_RADIOBTN=yes
4004 DEFAULT_wxUSE_SASH=yes
4005 DEFAULT_wxUSE_SCROLLBAR=yes
4006 DEFAULT_wxUSE_SLIDER=yes
4007 DEFAULT_wxUSE_SPINBTN=yes
4008 DEFAULT_wxUSE_SPINCTRL=yes
4009 DEFAULT_wxUSE_SPLITTER=yes
4010 DEFAULT_wxUSE_STATBMP=yes
4011 DEFAULT_wxUSE_STATBOX=yes
4012 DEFAULT_wxUSE_STATLINE=yes
4013 DEFAULT_wxUSE_STATUSBAR=yes
4014 DEFAULT_wxUSE_TAB_DIALOG=yes
4015 DEFAULT_wxUSE_TOOLBAR=yes
4016 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
4017 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
4018 DEFAULT_wxUSE_TOOLTIPS=yes
4019 DEFAULT_wxUSE_TREECTRL=yes
4020elif test "$wxUSE_CONTROLS" = "no"; then
4021 DEFAULT_wxUSE_ACCEL=no
4022 DEFAULT_wxUSE_CARET=no
4023 DEFAULT_wxUSE_COMBOBOX=no
4024 DEFAULT_wxUSE_BMPBUTTON=no
4025 DEFAULT_wxUSE_CHECKBOX=no
4026 DEFAULT_wxUSE_CHECKLISTBOX=no
4027 DEFAULT_wxUSE_CHOICE=no
4028 DEFAULT_wxUSE_GAUGE=no
4029 DEFAULT_wxUSE_GRID=no
4030 DEFAULT_wxUSE_NEW_GRID=no
4031 DEFAULT_wxUSE_IMAGLIST=no
4032 DEFAULT_wxUSE_LISTBOX=no
4033 DEFAULT_wxUSE_LISTCTRL=no
4034 DEFAULT_wxUSE_NOTEBOOK=no
4035 DEFAULT_wxUSE_RADIOBOX=no
4036 DEFAULT_wxUSE_RADIOBTN=no
4037 DEFAULT_wxUSE_SASH=no
4038 DEFAULT_wxUSE_SCROLLBAR=no
4039 DEFAULT_wxUSE_SLIDER=no
4040 DEFAULT_wxUSE_SPINBTN=no
4041 DEFAULT_wxUSE_SPINCTRL=no
4042 DEFAULT_wxUSE_SPLITTER=no
4043 DEFAULT_wxUSE_STATBMP=no
4044 DEFAULT_wxUSE_STATBOX=no
4045 DEFAULT_wxUSE_STATLINE=no
4046 DEFAULT_wxUSE_STATUSBAR=no
4047 DEFAULT_wxUSE_TAB_DIALOG=no
4048 DEFAULT_wxUSE_TOOLBAR=no
4049 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
4050 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
4051 DEFAULT_wxUSE_TOOLTIPS=no
4052 DEFAULT_wxUSE_TREECTRL=no
4053fi
4054
4055
4056 echo $ac_n "checking "for --enable-accel"""... $ac_c" 1>&6
4057echo "configure:4058: checking "for --enable-accel"" >&5
4058 no_cache=0
4059 # Check whether --enable-accel or --disable-accel was given.
4060if test "${enable_accel+set}" = set; then
4061 enableval="$enable_accel"
4062
4063 if test "$enableval" = yes; then
4064 ac_cv_use_accel='wxUSE_ACCEL=yes'
4065 else
4066 ac_cv_use_accel='wxUSE_ACCEL=no'
4067 fi
4068
4069else
4070
4071 LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
4072 if test "x$LINE" != x ; then
4073 eval "DEFAULT_$LINE"
4074 else
4075 no_cache=1
4076 fi
4077
4078 ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
4079
4080fi
4081
4082
4083 eval "$ac_cv_use_accel"
4084 if test "$no_cache" != 1; then
4085 echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
4086 fi
4087
4088 if test "$wxUSE_ACCEL" = yes; then
4089 echo "$ac_t""yes" 1>&6
4090 else
4091 echo "$ac_t""no" 1>&6
4092 fi
4093
4094
4095 echo $ac_n "checking "for --enable-caret"""... $ac_c" 1>&6
4096echo "configure:4097: checking "for --enable-caret"" >&5
4097 no_cache=0
4098 # Check whether --enable-caret or --disable-caret was given.
4099if test "${enable_caret+set}" = set; then
4100 enableval="$enable_caret"
4101
4102 if test "$enableval" = yes; then
4103 ac_cv_use_caret='wxUSE_CARET=yes'
4104 else
4105 ac_cv_use_caret='wxUSE_CARET=no'
4106 fi
4107
4108else
4109
4110 LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
4111 if test "x$LINE" != x ; then
4112 eval "DEFAULT_$LINE"
4113 else
4114 no_cache=1
4115 fi
4116
4117 ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
4118
4119fi
4120
4121
4122 eval "$ac_cv_use_caret"
4123 if test "$no_cache" != 1; then
4124 echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
4125 fi
4126
4127 if test "$wxUSE_CARET" = yes; then
4128 echo "$ac_t""yes" 1>&6
4129 else
4130 echo "$ac_t""no" 1>&6
4131 fi
4132
4133
4134 echo $ac_n "checking "for --enable-bmpbutton"""... $ac_c" 1>&6
4135echo "configure:4136: checking "for --enable-bmpbutton"" >&5
4136 no_cache=0
4137 # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
4138if test "${enable_bmpbutton+set}" = set; then
4139 enableval="$enable_bmpbutton"
4140
4141 if test "$enableval" = yes; then
4142 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
4143 else
4144 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
4145 fi
4146
4147else
4148
4149 LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
4150 if test "x$LINE" != x ; then
4151 eval "DEFAULT_$LINE"
4152 else
4153 no_cache=1
4154 fi
4155
4156 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
4157
4158fi
4159
4160
4161 eval "$ac_cv_use_bmpbutton"
4162 if test "$no_cache" != 1; then
4163 echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
4164 fi
4165
4166 if test "$wxUSE_BMPBUTTON" = yes; then
4167 echo "$ac_t""yes" 1>&6
4168 else
4169 echo "$ac_t""no" 1>&6
4170 fi
4171
4172
4173 echo $ac_n "checking "for --enable-checkbox"""... $ac_c" 1>&6
4174echo "configure:4175: checking "for --enable-checkbox"" >&5
4175 no_cache=0
4176 # Check whether --enable-checkbox or --disable-checkbox was given.
4177if test "${enable_checkbox+set}" = set; then
4178 enableval="$enable_checkbox"
4179
4180 if test "$enableval" = yes; then
4181 ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
4182 else
4183 ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
4184 fi
4185
4186else
4187
4188 LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
4189 if test "x$LINE" != x ; then
4190 eval "DEFAULT_$LINE"
4191 else
4192 no_cache=1
4193 fi
4194
4195 ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
4196
4197fi
4198
4199
4200 eval "$ac_cv_use_checkbox"
4201 if test "$no_cache" != 1; then
4202 echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
4203 fi
4204
4205 if test "$wxUSE_CHECKBOX" = yes; then
4206 echo "$ac_t""yes" 1>&6
4207 else
4208 echo "$ac_t""no" 1>&6
4209 fi
4210
4211
4212 echo $ac_n "checking "for --enable-checklst"""... $ac_c" 1>&6
4213echo "configure:4214: checking "for --enable-checklst"" >&5
4214 no_cache=0
4215 # Check whether --enable-checklst or --disable-checklst was given.
4216if test "${enable_checklst+set}" = set; then
4217 enableval="$enable_checklst"
4218
4219 if test "$enableval" = yes; then
4220 ac_cv_use_checklst='wxUSE_CHECKLST=yes'
4221 else
4222 ac_cv_use_checklst='wxUSE_CHECKLST=no'
4223 fi
4224
4225else
4226
4227 LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
4228 if test "x$LINE" != x ; then
4229 eval "DEFAULT_$LINE"
4230 else
4231 no_cache=1
4232 fi
4233
4234 ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
4235
4236fi
4237
4238
4239 eval "$ac_cv_use_checklst"
4240 if test "$no_cache" != 1; then
4241 echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
4242 fi
4243
4244 if test "$wxUSE_CHECKLST" = yes; then
4245 echo "$ac_t""yes" 1>&6
4246 else
4247 echo "$ac_t""no" 1>&6
4248 fi
4249
4250
4251 echo $ac_n "checking "for --enable-choice"""... $ac_c" 1>&6
4252echo "configure:4253: checking "for --enable-choice"" >&5
4253 no_cache=0
4254 # Check whether --enable-choice or --disable-choice was given.
4255if test "${enable_choice+set}" = set; then
4256 enableval="$enable_choice"
4257
4258 if test "$enableval" = yes; then
4259 ac_cv_use_choice='wxUSE_CHOICE=yes'
4260 else
4261 ac_cv_use_choice='wxUSE_CHOICE=no'
4262 fi
4263
4264else
4265
4266 LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
4267 if test "x$LINE" != x ; then
4268 eval "DEFAULT_$LINE"
4269 else
4270 no_cache=1
4271 fi
4272
4273 ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
4274
4275fi
4276
4277
4278 eval "$ac_cv_use_choice"
4279 if test "$no_cache" != 1; then
4280 echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
4281 fi
4282
4283 if test "$wxUSE_CHOICE" = yes; then
4284 echo "$ac_t""yes" 1>&6
4285 else
4286 echo "$ac_t""no" 1>&6
4287 fi
4288
4289
4290 echo $ac_n "checking "for --enable-combobox"""... $ac_c" 1>&6
4291echo "configure:4292: checking "for --enable-combobox"" >&5
4292 no_cache=0
4293 # Check whether --enable-combobox or --disable-combobox was given.
4294if test "${enable_combobox+set}" = set; then
4295 enableval="$enable_combobox"
4296
4297 if test "$enableval" = yes; then
4298 ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
4299 else
4300 ac_cv_use_combobox='wxUSE_COMBOBOX=no'
4301 fi
4302
4303else
4304
4305 LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
4306 if test "x$LINE" != x ; then
4307 eval "DEFAULT_$LINE"
4308 else
4309 no_cache=1
4310 fi
4311
4312 ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
4313
4314fi
4315
4316
4317 eval "$ac_cv_use_combobox"
4318 if test "$no_cache" != 1; then
4319 echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
4320 fi
4321
4322 if test "$wxUSE_COMBOBOX" = yes; then
4323 echo "$ac_t""yes" 1>&6
4324 else
4325 echo "$ac_t""no" 1>&6
4326 fi
4327
4328
4329 echo $ac_n "checking "for --enable-gauge"""... $ac_c" 1>&6
4330echo "configure:4331: checking "for --enable-gauge"" >&5
4331 no_cache=0
4332 # Check whether --enable-gauge or --disable-gauge was given.
4333if test "${enable_gauge+set}" = set; then
4334 enableval="$enable_gauge"
4335
4336 if test "$enableval" = yes; then
4337 ac_cv_use_gauge='wxUSE_GAUGE=yes'
4338 else
4339 ac_cv_use_gauge='wxUSE_GAUGE=no'
4340 fi
4341
4342else
4343
4344 LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
4345 if test "x$LINE" != x ; then
4346 eval "DEFAULT_$LINE"
4347 else
4348 no_cache=1
4349 fi
4350
4351 ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
4352
4353fi
4354
4355
4356 eval "$ac_cv_use_gauge"
4357 if test "$no_cache" != 1; then
4358 echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
4359 fi
4360
4361 if test "$wxUSE_GAUGE" = yes; then
4362 echo "$ac_t""yes" 1>&6
4363 else
4364 echo "$ac_t""no" 1>&6
4365 fi
4366
4367
4368 echo $ac_n "checking "for --enable-grid"""... $ac_c" 1>&6
4369echo "configure:4370: checking "for --enable-grid"" >&5
4370 no_cache=0
4371 # Check whether --enable-grid or --disable-grid was given.
4372if test "${enable_grid+set}" = set; then
4373 enableval="$enable_grid"
4374
4375 if test "$enableval" = yes; then
4376 ac_cv_use_grid='wxUSE_GRID=yes'
4377 else
4378 ac_cv_use_grid='wxUSE_GRID=no'
4379 fi
4380
4381else
4382
4383 LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
4384 if test "x$LINE" != x ; then
4385 eval "DEFAULT_$LINE"
4386 else
4387 no_cache=1
4388 fi
4389
4390 ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
4391
4392fi
4393
4394
4395 eval "$ac_cv_use_grid"
4396 if test "$no_cache" != 1; then
4397 echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
4398 fi
4399
4400 if test "$wxUSE_GRID" = yes; then
4401 echo "$ac_t""yes" 1>&6
4402 else
4403 echo "$ac_t""no" 1>&6
4404 fi
4405
4406
4407 echo $ac_n "checking "for --enable-newgrid"""... $ac_c" 1>&6
4408echo "configure:4409: checking "for --enable-newgrid"" >&5
4409 no_cache=0
4410 # Check whether --enable-newgrid or --disable-newgrid was given.
4411if test "${enable_newgrid+set}" = set; then
4412 enableval="$enable_newgrid"
4413
4414 if test "$enableval" = yes; then
4415 ac_cv_use_newgrid='wxUSE_NEW_GRID=yes'
4416 else
4417 ac_cv_use_newgrid='wxUSE_NEW_GRID=no'
4418 fi
4419
4420else
4421
4422 LINE=`grep "wxUSE_NEW_GRID" ${wx_arg_cache_file}`
4423 if test "x$LINE" != x ; then
4424 eval "DEFAULT_$LINE"
4425 else
4426 no_cache=1
4427 fi
4428
4429 ac_cv_use_newgrid='wxUSE_NEW_GRID='$DEFAULT_wxUSE_NEW_GRID
4430
4431fi
4432
4433
4434 eval "$ac_cv_use_newgrid"
4435 if test "$no_cache" != 1; then
4436 echo $ac_cv_use_newgrid >> ${wx_arg_cache_file}.tmp
4437 fi
4438
4439 if test "$wxUSE_NEW_GRID" = yes; then
4440 echo "$ac_t""yes" 1>&6
4441 else
4442 echo "$ac_t""no" 1>&6
4443 fi
4444
4445
4446 echo $ac_n "checking "for --enable-imaglist"""... $ac_c" 1>&6
4447echo "configure:4448: checking "for --enable-imaglist"" >&5
4448 no_cache=0
4449 # Check whether --enable-imaglist or --disable-imaglist was given.
4450if test "${enable_imaglist+set}" = set; then
4451 enableval="$enable_imaglist"
4452
4453 if test "$enableval" = yes; then
4454 ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
4455 else
4456 ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
4457 fi
4458
4459else
4460
4461 LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
4462 if test "x$LINE" != x ; then
4463 eval "DEFAULT_$LINE"
4464 else
4465 no_cache=1
4466 fi
4467
4468 ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
4469
4470fi
4471
4472
4473 eval "$ac_cv_use_imaglist"
4474 if test "$no_cache" != 1; then
4475 echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
4476 fi
4477
4478 if test "$wxUSE_IMAGLIST" = yes; then
4479 echo "$ac_t""yes" 1>&6
4480 else
4481 echo "$ac_t""no" 1>&6
4482 fi
4483
4484
4485 echo $ac_n "checking "for --enable-listbox"""... $ac_c" 1>&6
4486echo "configure:4487: checking "for --enable-listbox"" >&5
4487 no_cache=0
4488 # Check whether --enable-listbox or --disable-listbox was given.
4489if test "${enable_listbox+set}" = set; then
4490 enableval="$enable_listbox"
4491
4492 if test "$enableval" = yes; then
4493 ac_cv_use_listbox='wxUSE_LISTBOX=yes'
4494 else
4495 ac_cv_use_listbox='wxUSE_LISTBOX=no'
4496 fi
4497
4498else
4499
4500 LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
4501 if test "x$LINE" != x ; then
4502 eval "DEFAULT_$LINE"
4503 else
4504 no_cache=1
4505 fi
4506
4507 ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
4508
4509fi
4510
4511
4512 eval "$ac_cv_use_listbox"
4513 if test "$no_cache" != 1; then
4514 echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
4515 fi
4516
4517 if test "$wxUSE_LISTBOX" = yes; then
4518 echo "$ac_t""yes" 1>&6
4519 else
4520 echo "$ac_t""no" 1>&6
4521 fi
4522
4523
4524 echo $ac_n "checking "for --enable-listctrl"""... $ac_c" 1>&6
4525echo "configure:4526: checking "for --enable-listctrl"" >&5
4526 no_cache=0
4527 # Check whether --enable-listctrl or --disable-listctrl was given.
4528if test "${enable_listctrl+set}" = set; then
4529 enableval="$enable_listctrl"
4530
4531 if test "$enableval" = yes; then
4532 ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
4533 else
4534 ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
4535 fi
4536
4537else
4538
4539 LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
4540 if test "x$LINE" != x ; then
4541 eval "DEFAULT_$LINE"
4542 else
4543 no_cache=1
4544 fi
4545
4546 ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
4547
4548fi
4549
4550
4551 eval "$ac_cv_use_listctrl"
4552 if test "$no_cache" != 1; then
4553 echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
4554 fi
4555
4556 if test "$wxUSE_LISTCTRL" = yes; then
4557 echo "$ac_t""yes" 1>&6
4558 else
4559 echo "$ac_t""no" 1>&6
4560 fi
4561
4562
4563 echo $ac_n "checking "for --enable-notebook"""... $ac_c" 1>&6
4564echo "configure:4565: checking "for --enable-notebook"" >&5
4565 no_cache=0
4566 # Check whether --enable-notebook or --disable-notebook was given.
4567if test "${enable_notebook+set}" = set; then
4568 enableval="$enable_notebook"
4569
4570 if test "$enableval" = yes; then
4571 ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
4572 else
4573 ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
4574 fi
4575
4576else
4577
4578 LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
4579 if test "x$LINE" != x ; then
4580 eval "DEFAULT_$LINE"
4581 else
4582 no_cache=1
4583 fi
4584
4585 ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
4586
4587fi
4588
4589
4590 eval "$ac_cv_use_notebook"
4591 if test "$no_cache" != 1; then
4592 echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
4593 fi
4594
4595 if test "$wxUSE_NOTEBOOK" = yes; then
4596 echo "$ac_t""yes" 1>&6
4597 else
4598 echo "$ac_t""no" 1>&6
4599 fi
4600
4601
4602 echo $ac_n "checking "for --enable-radiobox"""... $ac_c" 1>&6
4603echo "configure:4604: checking "for --enable-radiobox"" >&5
4604 no_cache=0
4605 # Check whether --enable-radiobox or --disable-radiobox was given.
4606if test "${enable_radiobox+set}" = set; then
4607 enableval="$enable_radiobox"
4608
4609 if test "$enableval" = yes; then
4610 ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
4611 else
4612 ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
4613 fi
4614
4615else
4616
4617 LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
4618 if test "x$LINE" != x ; then
4619 eval "DEFAULT_$LINE"
4620 else
4621 no_cache=1
4622 fi
4623
4624 ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
4625
4626fi
4627
4628
4629 eval "$ac_cv_use_radiobox"
4630 if test "$no_cache" != 1; then
4631 echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
4632 fi
4633
4634 if test "$wxUSE_RADIOBOX" = yes; then
4635 echo "$ac_t""yes" 1>&6
4636 else
4637 echo "$ac_t""no" 1>&6
4638 fi
4639
4640
4641 echo $ac_n "checking "for --enable-radiobtn"""... $ac_c" 1>&6
4642echo "configure:4643: checking "for --enable-radiobtn"" >&5
4643 no_cache=0
4644 # Check whether --enable-radiobtn or --disable-radiobtn was given.
4645if test "${enable_radiobtn+set}" = set; then
4646 enableval="$enable_radiobtn"
4647
4648 if test "$enableval" = yes; then
4649 ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
4650 else
4651 ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
4652 fi
4653
4654else
4655
4656 LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
4657 if test "x$LINE" != x ; then
4658 eval "DEFAULT_$LINE"
4659 else
4660 no_cache=1
4661 fi
4662
4663 ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
4664
4665fi
4666
4667
4668 eval "$ac_cv_use_radiobtn"
4669 if test "$no_cache" != 1; then
4670 echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
4671 fi
4672
4673 if test "$wxUSE_RADIOBTN" = yes; then
4674 echo "$ac_t""yes" 1>&6
4675 else
4676 echo "$ac_t""no" 1>&6
4677 fi
4678
4679
4680 echo $ac_n "checking "for --enable-sash"""... $ac_c" 1>&6
4681echo "configure:4682: checking "for --enable-sash"" >&5
4682 no_cache=0
4683 # Check whether --enable-sash or --disable-sash was given.
4684if test "${enable_sash+set}" = set; then
4685 enableval="$enable_sash"
4686
4687 if test "$enableval" = yes; then
4688 ac_cv_use_sash='wxUSE_SASH=yes'
4689 else
4690 ac_cv_use_sash='wxUSE_SASH=no'
4691 fi
4692
4693else
4694
4695 LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
4696 if test "x$LINE" != x ; then
4697 eval "DEFAULT_$LINE"
4698 else
4699 no_cache=1
4700 fi
4701
4702 ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
4703
4704fi
4705
4706
4707 eval "$ac_cv_use_sash"
4708 if test "$no_cache" != 1; then
4709 echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
4710 fi
4711
4712 if test "$wxUSE_SASH" = yes; then
4713 echo "$ac_t""yes" 1>&6
4714 else
4715 echo "$ac_t""no" 1>&6
4716 fi
4717
4718
4719 echo $ac_n "checking "for --enable-scrollbar"""... $ac_c" 1>&6
4720echo "configure:4721: checking "for --enable-scrollbar"" >&5
4721 no_cache=0
4722 # Check whether --enable-scrollbar or --disable-scrollbar was given.
4723if test "${enable_scrollbar+set}" = set; then
4724 enableval="$enable_scrollbar"
4725
4726 if test "$enableval" = yes; then
4727 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
4728 else
4729 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
4730 fi
4731
4732else
4733
4734 LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
4735 if test "x$LINE" != x ; then
4736 eval "DEFAULT_$LINE"
4737 else
4738 no_cache=1
4739 fi
4740
4741 ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
4742
4743fi
4744
4745
4746 eval "$ac_cv_use_scrollbar"
4747 if test "$no_cache" != 1; then
4748 echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
4749 fi
4750
4751 if test "$wxUSE_SCROLLBAR" = yes; then
4752 echo "$ac_t""yes" 1>&6
4753 else
4754 echo "$ac_t""no" 1>&6
4755 fi
4756
4757
4758 echo $ac_n "checking "for --enable-slider"""... $ac_c" 1>&6
4759echo "configure:4760: checking "for --enable-slider"" >&5
4760 no_cache=0
4761 # Check whether --enable-slider or --disable-slider was given.
4762if test "${enable_slider+set}" = set; then
4763 enableval="$enable_slider"
4764
4765 if test "$enableval" = yes; then
4766 ac_cv_use_slider='wxUSE_SLIDER=yes'
4767 else
4768 ac_cv_use_slider='wxUSE_SLIDER=no'
4769 fi
4770
4771else
4772
4773 LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
4774 if test "x$LINE" != x ; then
4775 eval "DEFAULT_$LINE"
4776 else
4777 no_cache=1
4778 fi
4779
4780 ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
4781
4782fi
4783
4784
4785 eval "$ac_cv_use_slider"
4786 if test "$no_cache" != 1; then
4787 echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
4788 fi
4789
4790 if test "$wxUSE_SLIDER" = yes; then
4791 echo "$ac_t""yes" 1>&6
4792 else
4793 echo "$ac_t""no" 1>&6
4794 fi
4795
4796
4797 echo $ac_n "checking "for --enable-spinbtn"""... $ac_c" 1>&6
4798echo "configure:4799: checking "for --enable-spinbtn"" >&5
4799 no_cache=0
4800 # Check whether --enable-spinbtn or --disable-spinbtn was given.
4801if test "${enable_spinbtn+set}" = set; then
4802 enableval="$enable_spinbtn"
4803
4804 if test "$enableval" = yes; then
4805 ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
4806 else
4807 ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
4808 fi
4809
4810else
4811
4812 LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
4813 if test "x$LINE" != x ; then
4814 eval "DEFAULT_$LINE"
4815 else
4816 no_cache=1
4817 fi
4818
4819 ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
4820
4821fi
4822
4823
4824 eval "$ac_cv_use_spinbtn"
4825 if test "$no_cache" != 1; then
4826 echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
4827 fi
4828
4829 if test "$wxUSE_SPINBTN" = yes; then
4830 echo "$ac_t""yes" 1>&6
4831 else
4832 echo "$ac_t""no" 1>&6
4833 fi
4834
4835
4836 echo $ac_n "checking "for --enable-spinctrl"""... $ac_c" 1>&6
4837echo "configure:4838: checking "for --enable-spinctrl"" >&5
4838 no_cache=0
4839 # Check whether --enable-spinctrl or --disable-spinctrl was given.
4840if test "${enable_spinctrl+set}" = set; then
4841 enableval="$enable_spinctrl"
4842
4843 if test "$enableval" = yes; then
4844 ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
4845 else
4846 ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
4847 fi
4848
4849else
4850
4851 LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
4852 if test "x$LINE" != x ; then
4853 eval "DEFAULT_$LINE"
4854 else
4855 no_cache=1
4856 fi
4857
4858 ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
4859
4860fi
4861
4862
4863 eval "$ac_cv_use_spinctrl"
4864 if test "$no_cache" != 1; then
4865 echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
4866 fi
4867
4868 if test "$wxUSE_SPINCTRL" = yes; then
4869 echo "$ac_t""yes" 1>&6
4870 else
4871 echo "$ac_t""no" 1>&6
4872 fi
4873
4874
4875 echo $ac_n "checking "for --enable-splitter"""... $ac_c" 1>&6
4876echo "configure:4877: checking "for --enable-splitter"" >&5
4877 no_cache=0
4878 # Check whether --enable-splitter or --disable-splitter was given.
4879if test "${enable_splitter+set}" = set; then
4880 enableval="$enable_splitter"
4881
4882 if test "$enableval" = yes; then
4883 ac_cv_use_splitter='wxUSE_SPLITTER=yes'
4884 else
4885 ac_cv_use_splitter='wxUSE_SPLITTER=no'
4886 fi
4887
4888else
4889
4890 LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
4891 if test "x$LINE" != x ; then
4892 eval "DEFAULT_$LINE"
4893 else
4894 no_cache=1
4895 fi
4896
4897 ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
4898
4899fi
4900
4901
4902 eval "$ac_cv_use_splitter"
4903 if test "$no_cache" != 1; then
4904 echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
4905 fi
4906
4907 if test "$wxUSE_SPLITTER" = yes; then
4908 echo "$ac_t""yes" 1>&6
4909 else
4910 echo "$ac_t""no" 1>&6
4911 fi
4912
4913
4914 echo $ac_n "checking "for --enable-statbmp"""... $ac_c" 1>&6
4915echo "configure:4916: checking "for --enable-statbmp"" >&5
4916 no_cache=0
4917 # Check whether --enable-statbmp or --disable-statbmp was given.
4918if test "${enable_statbmp+set}" = set; then
4919 enableval="$enable_statbmp"
4920
4921 if test "$enableval" = yes; then
4922 ac_cv_use_statbmp='wxUSE_STATBMP=yes'
4923 else
4924 ac_cv_use_statbmp='wxUSE_STATBMP=no'
4925 fi
4926
4927else
4928
4929 LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
4930 if test "x$LINE" != x ; then
4931 eval "DEFAULT_$LINE"
4932 else
4933 no_cache=1
4934 fi
4935
4936 ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
4937
4938fi
4939
4940
4941 eval "$ac_cv_use_statbmp"
4942 if test "$no_cache" != 1; then
4943 echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
4944 fi
4945
4946 if test "$wxUSE_STATBMP" = yes; then
4947 echo "$ac_t""yes" 1>&6
4948 else
4949 echo "$ac_t""no" 1>&6
4950 fi
4951
4952
4953 echo $ac_n "checking "for --enable-statbox"""... $ac_c" 1>&6
4954echo "configure:4955: checking "for --enable-statbox"" >&5
4955 no_cache=0
4956 # Check whether --enable-statbox or --disable-statbox was given.
4957if test "${enable_statbox+set}" = set; then
4958 enableval="$enable_statbox"
4959
4960 if test "$enableval" = yes; then
4961 ac_cv_use_statbox='wxUSE_STATBOX=yes'
4962 else
4963 ac_cv_use_statbox='wxUSE_STATBOX=no'
4964 fi
4965
4966else
4967
4968 LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
4969 if test "x$LINE" != x ; then
4970 eval "DEFAULT_$LINE"
4971 else
4972 no_cache=1
4973 fi
4974
4975 ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
4976
4977fi
4978
4979
4980 eval "$ac_cv_use_statbox"
4981 if test "$no_cache" != 1; then
4982 echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
4983 fi
4984
4985 if test "$wxUSE_STATBOX" = yes; then
4986 echo "$ac_t""yes" 1>&6
4987 else
4988 echo "$ac_t""no" 1>&6
4989 fi
4990
4991
4992 echo $ac_n "checking "for --enable-statline"""... $ac_c" 1>&6
4993echo "configure:4994: checking "for --enable-statline"" >&5
4994 no_cache=0
4995 # Check whether --enable-statline or --disable-statline was given.
4996if test "${enable_statline+set}" = set; then
4997 enableval="$enable_statline"
4998
4999 if test "$enableval" = yes; then
5000 ac_cv_use_statline='wxUSE_STATLINE=yes'
5001 else
5002 ac_cv_use_statline='wxUSE_STATLINE=no'
5003 fi
5004
5005else
5006
5007 LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
5008 if test "x$LINE" != x ; then
5009 eval "DEFAULT_$LINE"
5010 else
5011 no_cache=1
5012 fi
5013
5014 ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
5015
5016fi
5017
5018
5019 eval "$ac_cv_use_statline"
5020 if test "$no_cache" != 1; then
5021 echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
5022 fi
5023
5024 if test "$wxUSE_STATLINE" = yes; then
5025 echo "$ac_t""yes" 1>&6
5026 else
5027 echo "$ac_t""no" 1>&6
5028 fi
5029
5030
5031 echo $ac_n "checking "for --enable-statusbar"""... $ac_c" 1>&6
5032echo "configure:5033: checking "for --enable-statusbar"" >&5
5033 no_cache=0
5034 # Check whether --enable-statusbar or --disable-statusbar was given.
5035if test "${enable_statusbar+set}" = set; then
5036 enableval="$enable_statusbar"
5037
5038 if test "$enableval" = yes; then
5039 ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
5040 else
5041 ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
5042 fi
5043
5044else
5045
5046 LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
5047 if test "x$LINE" != x ; then
5048 eval "DEFAULT_$LINE"
5049 else
5050 no_cache=1
5051 fi
5052
5053 ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
5054
5055fi
5056
5057
5058 eval "$ac_cv_use_statusbar"
5059 if test "$no_cache" != 1; then
5060 echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
5061 fi
5062
5063 if test "$wxUSE_STATUSBAR" = yes; then
5064 echo "$ac_t""yes" 1>&6
5065 else
5066 echo "$ac_t""no" 1>&6
5067 fi
5068
5069
5070 echo $ac_n "checking "for --enable-tabdialog"""... $ac_c" 1>&6
5071echo "configure:5072: checking "for --enable-tabdialog"" >&5
5072 no_cache=0
5073 # Check whether --enable-tabdialog or --disable-tabdialog was given.
5074if test "${enable_tabdialog+set}" = set; then
5075 enableval="$enable_tabdialog"
5076
5077 if test "$enableval" = yes; then
5078 ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes'
5079 else
5080 ac_cv_use_tabdialog='wxUSE_TABDIALOG=no'
5081 fi
5082
5083else
5084
5085 LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}`
5086 if test "x$LINE" != x ; then
5087 eval "DEFAULT_$LINE"
5088 else
5089 no_cache=1
5090 fi
5091
5092 ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG
5093
5094fi
5095
5096
5097 eval "$ac_cv_use_tabdialog"
5098 if test "$no_cache" != 1; then
5099 echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
5100 fi
5101
5102 if test "$wxUSE_TABDIALOG" = yes; then
5103 echo "$ac_t""yes" 1>&6
5104 else
5105 echo "$ac_t""no" 1>&6
5106 fi
5107
5108
5109 echo $ac_n "checking "for --enable-toolbar"""... $ac_c" 1>&6
5110echo "configure:5111: checking "for --enable-toolbar"" >&5
5111 no_cache=0
5112 # Check whether --enable-toolbar or --disable-toolbar was given.
5113if test "${enable_toolbar+set}" = set; then
5114 enableval="$enable_toolbar"
5115
5116 if test "$enableval" = yes; then
5117 ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
5118 else
5119 ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
5120 fi
5121
5122else
5123
5124 LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
5125 if test "x$LINE" != x ; then
5126 eval "DEFAULT_$LINE"
5127 else
5128 no_cache=1
5129 fi
5130
5131 ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
5132
5133fi
5134
5135
5136 eval "$ac_cv_use_toolbar"
5137 if test "$no_cache" != 1; then
5138 echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
5139 fi
5140
5141 if test "$wxUSE_TOOLBAR" = yes; then
5142 echo "$ac_t""yes" 1>&6
5143 else
5144 echo "$ac_t""no" 1>&6
5145 fi
5146
5147
5148 echo $ac_n "checking "for --enable-tbarnative"""... $ac_c" 1>&6
5149echo "configure:5150: checking "for --enable-tbarnative"" >&5
5150 no_cache=0
5151 # Check whether --enable-tbarnative or --disable-tbarnative was given.
5152if test "${enable_tbarnative+set}" = set; then
5153 enableval="$enable_tbarnative"
5154
5155 if test "$enableval" = yes; then
5156 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
5157 else
5158 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
5159 fi
5160
5161else
5162
5163 LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
5164 if test "x$LINE" != x ; then
5165 eval "DEFAULT_$LINE"
5166 else
5167 no_cache=1
5168 fi
5169
5170 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
5171
5172fi
5173
5174
5175 eval "$ac_cv_use_tbarnative"
5176 if test "$no_cache" != 1; then
5177 echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
5178 fi
5179
5180 if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
5181 echo "$ac_t""yes" 1>&6
5182 else
5183 echo "$ac_t""no" 1>&6
5184 fi
5185
5186
5187 echo $ac_n "checking "for --enable-tbarsmpl"""... $ac_c" 1>&6
5188echo "configure:5189: checking "for --enable-tbarsmpl"" >&5
5189 no_cache=0
5190 # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given.
5191if test "${enable_tbarsmpl+set}" = set; then
5192 enableval="$enable_tbarsmpl"
5193
5194 if test "$enableval" = yes; then
5195 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes'
5196 else
5197 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no'
5198 fi
5199
5200else
5201
5202 LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}`
5203 if test "x$LINE" != x ; then
5204 eval "DEFAULT_$LINE"
5205 else
5206 no_cache=1
5207 fi
5208
5209 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE
5210
5211fi
5212
5213
5214 eval "$ac_cv_use_tbarsmpl"
5215 if test "$no_cache" != 1; then
5216 echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp
5217 fi
5218
5219 if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then
5220 echo "$ac_t""yes" 1>&6
5221 else
5222 echo "$ac_t""no" 1>&6
5223 fi
5224
5225
5226 echo $ac_n "checking "for --enable-treectrl"""... $ac_c" 1>&6
5227echo "configure:5228: checking "for --enable-treectrl"" >&5
5228 no_cache=0
5229 # Check whether --enable-treectrl or --disable-treectrl was given.
5230if test "${enable_treectrl+set}" = set; then
5231 enableval="$enable_treectrl"
5232
5233 if test "$enableval" = yes; then
5234 ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
5235 else
5236 ac_cv_use_treectrl='wxUSE_TREECTRL=no'
5237 fi
5238
5239else
5240
5241 LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
5242 if test "x$LINE" != x ; then
5243 eval "DEFAULT_$LINE"
5244 else
5245 no_cache=1
5246 fi
5247
5248 ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
5249
5250fi
5251
5252
5253 eval "$ac_cv_use_treectrl"
5254 if test "$no_cache" != 1; then
5255 echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
5256 fi
5257
5258 if test "$wxUSE_TREECTRL" = yes; then
5259 echo "$ac_t""yes" 1>&6
5260 else
5261 echo "$ac_t""no" 1>&6
5262 fi
5263
5264
5265
5266
5267 echo $ac_n "checking "for --enable-commondlg"""... $ac_c" 1>&6
5268echo "configure:5269: checking "for --enable-commondlg"" >&5
5269 no_cache=0
5270 # Check whether --enable-commondlg or --disable-commondlg was given.
5271if test "${enable_commondlg+set}" = set; then
5272 enableval="$enable_commondlg"
5273
5274 if test "$enableval" = yes; then
5275 ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
5276 else
5277 ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
5278 fi
5279
5280else
5281
5282 LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
5283 if test "x$LINE" != x ; then
5284 eval "DEFAULT_$LINE"
5285 else
5286 no_cache=1
5287 fi
5288
5289 ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
5290
5291fi
5292
5293
5294 eval "$ac_cv_use_commondlg"
5295 if test "$no_cache" != 1; then
5296 echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
5297 fi
5298
5299 if test "$wxUSE_COMMONDLGS" = yes; then
5300 echo "$ac_t""yes" 1>&6
5301 else
5302 echo "$ac_t""no" 1>&6
5303 fi
5304
5305
5306 echo $ac_n "checking "for --enable-dirdlg"""... $ac_c" 1>&6
5307echo "configure:5308: checking "for --enable-dirdlg"" >&5
5308 no_cache=0
5309 # Check whether --enable-dirdlg or --disable-dirdlg was given.
5310if test "${enable_dirdlg+set}" = set; then
5311 enableval="$enable_dirdlg"
5312
5313 if test "$enableval" = yes; then
5314 ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
5315 else
5316 ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
5317 fi
5318
5319else
5320
5321 LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
5322 if test "x$LINE" != x ; then
5323 eval "DEFAULT_$LINE"
5324 else
5325 no_cache=1
5326 fi
5327
5328 ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
5329
5330fi
5331
5332
5333 eval "$ac_cv_use_dirdlg"
5334 if test "$no_cache" != 1; then
5335 echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
5336 fi
5337
5338 if test "$wxUSE_DIRDLG" = yes; then
5339 echo "$ac_t""yes" 1>&6
5340 else
5341 echo "$ac_t""no" 1>&6
5342 fi
5343
5344
5345 echo $ac_n "checking "for --enable-textdlg"""... $ac_c" 1>&6
5346echo "configure:5347: checking "for --enable-textdlg"" >&5
5347 no_cache=0
5348 # Check whether --enable-textdlg or --disable-textdlg was given.
5349if test "${enable_textdlg+set}" = set; then
5350 enableval="$enable_textdlg"
5351
5352 if test "$enableval" = yes; then
5353 ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
5354 else
5355 ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
5356 fi
5357
5358else
5359
5360 LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
5361 if test "x$LINE" != x ; then
5362 eval "DEFAULT_$LINE"
5363 else
5364 no_cache=1
5365 fi
5366
5367 ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
5368
5369fi
5370
5371
5372 eval "$ac_cv_use_textdlg"
5373 if test "$no_cache" != 1; then
5374 echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
5375 fi
5376
5377 if test "$wxUSE_TEXTDLG" = yes; then
5378 echo "$ac_t""yes" 1>&6
5379 else
5380 echo "$ac_t""no" 1>&6
5381 fi
5382
5383
5384 echo $ac_n "checking "for --enable-tipdlg"""... $ac_c" 1>&6
5385echo "configure:5386: checking "for --enable-tipdlg"" >&5
5386 no_cache=0
5387 # Check whether --enable-tipdlg or --disable-tipdlg was given.
5388if test "${enable_tipdlg+set}" = set; then
5389 enableval="$enable_tipdlg"
5390
5391 if test "$enableval" = yes; then
5392 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
5393 else
5394 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
5395 fi
5396
5397else
5398
5399 LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
5400 if test "x$LINE" != x ; then
5401 eval "DEFAULT_$LINE"
5402 else
5403 no_cache=1
5404 fi
5405
5406 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
5407
5408fi
5409
5410
5411 eval "$ac_cv_use_tipdlg"
5412 if test "$no_cache" != 1; then
5413 echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
5414 fi
5415
5416 if test "$wxUSE_STARTUP_TIPS" = yes; then
5417 echo "$ac_t""yes" 1>&6
5418 else
5419 echo "$ac_t""no" 1>&6
5420 fi
5421
5422
5423 echo $ac_n "checking "for --enable-progressdlg"""... $ac_c" 1>&6
5424echo "configure:5425: checking "for --enable-progressdlg"" >&5
5425 no_cache=0
5426 # Check whether --enable-progressdlg or --disable-progressdlg was given.
5427if test "${enable_progressdlg+set}" = set; then
5428 enableval="$enable_progressdlg"
5429
5430 if test "$enableval" = yes; then
5431 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
5432 else
5433 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
5434 fi
5435
5436else
5437
5438 LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
5439 if test "x$LINE" != x ; then
5440 eval "DEFAULT_$LINE"
5441 else
5442 no_cache=1
5443 fi
5444
5445 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
5446
5447fi
5448
5449
5450 eval "$ac_cv_use_progressdlg"
5451 if test "$no_cache" != 1; then
5452 echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
5453 fi
5454
5455 if test "$wxUSE_PROGRESSDLG" = yes; then
5456 echo "$ac_t""yes" 1>&6
5457 else
5458 echo "$ac_t""no" 1>&6
5459 fi
5460
5461
5462 echo $ac_n "checking "for --enable-miniframe"""... $ac_c" 1>&6
5463echo "configure:5464: checking "for --enable-miniframe"" >&5
5464 no_cache=0
5465 # Check whether --enable-miniframe or --disable-miniframe was given.
5466if test "${enable_miniframe+set}" = set; then
5467 enableval="$enable_miniframe"
5468
5469 if test "$enableval" = yes; then
5470 ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
5471 else
5472 ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
5473 fi
5474
5475else
5476
5477 LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
5478 if test "x$LINE" != x ; then
5479 eval "DEFAULT_$LINE"
5480 else
5481 no_cache=1
5482 fi
5483
5484 ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
5485
5486fi
5487
5488
5489 eval "$ac_cv_use_miniframe"
5490 if test "$no_cache" != 1; then
5491 echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
5492 fi
5493
5494 if test "$wxUSE_MINIFRAME" = yes; then
5495 echo "$ac_t""yes" 1>&6
5496 else
5497 echo "$ac_t""no" 1>&6
5498 fi
5499
5500
5501 echo $ac_n "checking "for --enable-html"""... $ac_c" 1>&6
5502echo "configure:5503: checking "for --enable-html"" >&5
5503 no_cache=0
5504 # Check whether --enable-html or --disable-html was given.
5505if test "${enable_html+set}" = set; then
5506 enableval="$enable_html"
5507
5508 if test "$enableval" = yes; then
5509 ac_cv_use_html='wxUSE_HTML=yes'
5510 else
5511 ac_cv_use_html='wxUSE_HTML=no'
5512 fi
5513
5514else
5515
5516 LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
5517 if test "x$LINE" != x ; then
5518 eval "DEFAULT_$LINE"
5519 else
5520 no_cache=1
5521 fi
5522
5523 ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
5524
5525fi
5526
5527
5528 eval "$ac_cv_use_html"
5529 if test "$no_cache" != 1; then
5530 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
5531 fi
5532
5533 if test "$wxUSE_HTML" = yes; then
5534 echo "$ac_t""yes" 1>&6
5535 else
5536 echo "$ac_t""no" 1>&6
5537 fi
5538
5539
5540 echo $ac_n "checking "for --enable-tooltips"""... $ac_c" 1>&6
5541echo "configure:5542: checking "for --enable-tooltips"" >&5
5542 no_cache=0
5543 # Check whether --enable-tooltips or --disable-tooltips was given.
5544if test "${enable_tooltips+set}" = set; then
5545 enableval="$enable_tooltips"
5546
5547 if test "$enableval" = yes; then
5548 ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
5549 else
5550 ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
5551 fi
5552
5553else
5554
5555 LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
5556 if test "x$LINE" != x ; then
5557 eval "DEFAULT_$LINE"
5558 else
5559 no_cache=1
5560 fi
5561
5562 ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
5563
5564fi
5565
5566
5567 eval "$ac_cv_use_tooltips"
5568 if test "$no_cache" != 1; then
5569 echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
5570 fi
5571
5572 if test "$wxUSE_TOOLTIPS" = yes; then
5573 echo "$ac_t""yes" 1>&6
5574 else
5575 echo "$ac_t""no" 1>&6
5576 fi
5577
5578
5579 echo $ac_n "checking "for --enable-splines"""... $ac_c" 1>&6
5580echo "configure:5581: checking "for --enable-splines"" >&5
5581 no_cache=0
5582 # Check whether --enable-splines or --disable-splines was given.
5583if test "${enable_splines+set}" = set; then
5584 enableval="$enable_splines"
5585
5586 if test "$enableval" = yes; then
5587 ac_cv_use_splines='wxUSE_SPLINES=yes'
5588 else
5589 ac_cv_use_splines='wxUSE_SPLINES=no'
5590 fi
5591
5592else
5593
5594 LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
5595 if test "x$LINE" != x ; then
5596 eval "DEFAULT_$LINE"
5597 else
5598 no_cache=1
5599 fi
5600
5601 ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
5602
5603fi
5604
5605
5606 eval "$ac_cv_use_splines"
5607 if test "$no_cache" != 1; then
5608 echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
5609 fi
5610
5611 if test "$wxUSE_SPLINES" = yes; then
5612 echo "$ac_t""yes" 1>&6
5613 else
5614 echo "$ac_t""no" 1>&6
5615 fi
5616
5617
5618 echo $ac_n "checking "for --enable-validators"""... $ac_c" 1>&6
5619echo "configure:5620: checking "for --enable-validators"" >&5
5620 no_cache=0
5621 # Check whether --enable-validators or --disable-validators was given.
5622if test "${enable_validators+set}" = set; then
5623 enableval="$enable_validators"
5624
5625 if test "$enableval" = yes; then
5626 ac_cv_use_validators='wxUSE_VALIDATORS=yes'
5627 else
5628 ac_cv_use_validators='wxUSE_VALIDATORS=no'
5629 fi
5630
5631else
5632
5633 LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
5634 if test "x$LINE" != x ; then
5635 eval "DEFAULT_$LINE"
5636 else
5637 no_cache=1
5638 fi
5639
5640 ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
5641
5642fi
5643
5644
5645 eval "$ac_cv_use_validators"
5646 if test "$no_cache" != 1; then
5647 echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
5648 fi
5649
5650 if test "$wxUSE_VALIDATORS" = yes; then
5651 echo "$ac_t""yes" 1>&6
5652 else
5653 echo "$ac_t""no" 1>&6
5654 fi
5655
5656
5657 echo $ac_n "checking "for --enable-busyinfo"""... $ac_c" 1>&6
5658echo "configure:5659: checking "for --enable-busyinfo"" >&5
5659 no_cache=0
5660 # Check whether --enable-busyinfo or --disable-busyinfo was given.
5661if test "${enable_busyinfo+set}" = set; then
5662 enableval="$enable_busyinfo"
5663
5664 if test "$enableval" = yes; then
5665 ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
5666 else
5667 ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
5668 fi
5669
5670else
5671
5672 LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
5673 if test "x$LINE" != x ; then
5674 eval "DEFAULT_$LINE"
5675 else
5676 no_cache=1
5677 fi
5678
5679 ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
5680
5681fi
5682
5683
5684 eval "$ac_cv_use_busyinfo"
5685 if test "$no_cache" != 1; then
5686 echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
5687 fi
5688
5689 if test "$wxUSE_BUSYINFO" = yes; then
5690 echo "$ac_t""yes" 1>&6
5691 else
5692 echo "$ac_t""no" 1>&6
5693 fi
5694
5695
5696 echo $ac_n "checking "for --enable-plot"""... $ac_c" 1>&6
5697echo "configure:5698: checking "for --enable-plot"" >&5
5698 no_cache=0
5699 # Check whether --enable-plot or --disable-plot was given.
5700if test "${enable_plot+set}" = set; then
5701 enableval="$enable_plot"
5702
5703 if test "$enableval" = yes; then
5704 ac_cv_use_plot='wxUSE_PLOT=yes'
5705 else
5706 ac_cv_use_plot='wxUSE_PLOT=no'
5707 fi
5708
5709else
5710
5711 LINE=`grep "wxUSE_PLOT" ${wx_arg_cache_file}`
5712 if test "x$LINE" != x ; then
5713 eval "DEFAULT_$LINE"
5714 else
5715 no_cache=1
5716 fi
5717
5718 ac_cv_use_plot='wxUSE_PLOT='$DEFAULT_wxUSE_PLOT
5719
5720fi
5721
5722
5723 eval "$ac_cv_use_plot"
5724 if test "$no_cache" != 1; then
5725 echo $ac_cv_use_plot >> ${wx_arg_cache_file}.tmp
5726 fi
5727
5728 if test "$wxUSE_PLOT" = yes; then
5729 echo "$ac_t""yes" 1>&6
5730 else
5731 echo "$ac_t""no" 1>&6
5732 fi
5733
5734
5735
5736
5737 echo $ac_n "checking "for --enable-gif"""... $ac_c" 1>&6
5738echo "configure:5739: checking "for --enable-gif"" >&5
5739 no_cache=0
5740 # Check whether --enable-gif or --disable-gif was given.
5741if test "${enable_gif+set}" = set; then
5742 enableval="$enable_gif"
5743
5744 if test "$enableval" = yes; then
5745 ac_cv_use_gif='wxUSE_GIF=yes'
5746 else
5747 ac_cv_use_gif='wxUSE_GIF=no'
5748 fi
5749
5750else
5751
5752 LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
5753 if test "x$LINE" != x ; then
5754 eval "DEFAULT_$LINE"
5755 else
5756 no_cache=1
5757 fi
5758
5759 ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
5760
5761fi
5762
5763
5764 eval "$ac_cv_use_gif"
5765 if test "$no_cache" != 1; then
5766 echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
5767 fi
5768
5769 if test "$wxUSE_GIF" = yes; then
5770 echo "$ac_t""yes" 1>&6
5771 else
5772 echo "$ac_t""no" 1>&6
5773 fi
5774
5775
5776 echo $ac_n "checking "for --enable-pcx"""... $ac_c" 1>&6
5777echo "configure:5778: checking "for --enable-pcx"" >&5
5778 no_cache=0
5779 # Check whether --enable-pcx or --disable-pcx was given.
5780if test "${enable_pcx+set}" = set; then
5781 enableval="$enable_pcx"
5782
5783 if test "$enableval" = yes; then
5784 ac_cv_use_pcx='wxUSE_PCX=yes'
5785 else
5786 ac_cv_use_pcx='wxUSE_PCX=no'
5787 fi
5788
5789else
5790
5791 LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
5792 if test "x$LINE" != x ; then
5793 eval "DEFAULT_$LINE"
5794 else
5795 no_cache=1
5796 fi
5797
5798 ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
5799
5800fi
5801
5802
5803 eval "$ac_cv_use_pcx"
5804 if test "$no_cache" != 1; then
5805 echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
5806 fi
5807
5808 if test "$wxUSE_PCX" = yes; then
5809 echo "$ac_t""yes" 1>&6
5810 else
5811 echo "$ac_t""no" 1>&6
5812 fi
5813
5814
5815 echo $ac_n "checking "for --enable-pnm"""... $ac_c" 1>&6
5816echo "configure:5817: checking "for --enable-pnm"" >&5
5817 no_cache=0
5818 # Check whether --enable-pnm or --disable-pnm was given.
5819if test "${enable_pnm+set}" = set; then
5820 enableval="$enable_pnm"
5821
5822 if test "$enableval" = yes; then
5823 ac_cv_use_pnm='wxUSE_PNM=yes'
5824 else
5825 ac_cv_use_pnm='wxUSE_PNM=no'
5826 fi
5827
5828else
5829
5830 LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
5831 if test "x$LINE" != x ; then
5832 eval "DEFAULT_$LINE"
5833 else
5834 no_cache=1
5835 fi
5836
5837 ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
5838
5839fi
5840
5841
5842 eval "$ac_cv_use_pnm"
5843 if test "$no_cache" != 1; then
5844 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
5845 fi
5846
5847 if test "$wxUSE_PNM" = yes; then
5848 echo "$ac_t""yes" 1>&6
5849 else
5850 echo "$ac_t""no" 1>&6
5851 fi
5852
5853
5854fi
5855
5856
5857 echo "saving argument cache $wx_arg_cache_file"
5858 mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
5859
5860
5861
5862echo $ac_n "checking for toolkit""... $ac_c" 1>&6
5863echo "configure:5864: checking for toolkit" >&5
5864
5865if test "$wxUSE_GUI" = "yes"; then
5866
5867if test "$USE_BEOS" = 1; then
5868 { echo "configure: error: BeOS GUI is not supported yet, use --disable-gui" 1>&2; exit 1; }
5869fi
5870
5871if test "$TOOLKIT_GIVEN" = 1; then
5872 for toolkit in `echo $ALL_TOOLKITS`; do
5873 var=wxUSE_$toolkit
5874 eval "value=\$${var}"
5875 eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`"
5876 done
5877else
5878 for toolkit in `echo $ALL_TOOLKITS`; do
5879 if test "$has_toolkit_in_cache" != 1; then
5880 var=DEFAULT_DEFAULT_wxUSE_$toolkit
5881 else
5882 var=DEFAULT_wxUSE_$toolkit
5883 fi
5884 eval "wxUSE_$toolkit=\$${var}"
5885 done
5886fi
5887
5888NUM_TOOLKITS=`expr ${wxUSE_GTK:-0} + ${wxUSE_MOTIF:-0} + ${wxUSE_WINE:-0} + ${wxUSE_MINGW:-0} + ${wxUSE_CYGWIN:-0}`
5889
5890case "${host}" in
5891 *-pc-os2_emx )
5892 NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
5893 # PATH_IFS is autodetected by OS/2's configure (usually ';')
5894 LEX_STEM="lexyy"
5895 ;;
5896 *)
5897 PATH_IFS=':'
5898 LEX_STEM="lex.yy"
5899 ;;
5900esac
5901
5902case "$NUM_TOOLKITS" in
5903 1)
5904 ;;
5905 0)
5906 { echo "configure: error: Please specify a toolkit - cannot determine the default for ${host}" 1>&2; exit 1; }
5907 ;;
5908 *)
5909 { echo "configure: error: Please specify at most one toolkit (may be some are cached?)" 1>&2; exit 1; }
5910esac
5911
5912for toolkit in `echo $ALL_TOOLKITS`; do
5913 var=wxUSE_$toolkit
5914 eval "value=\$${var}"
5915 if test "x$value" != x; then
5916 cache_var=CACHE_$toolkit
5917 eval "cache=\$${cache_var}"
5918 if test "$cache" = 1; then
5919 echo "$var=$value" >> ${wx_arg_cache_file}
5920 fi
5921 if test "$value" = 1; then
5922 echo "$ac_t""`echo $toolkit | tr A-Z a-z`" 1>&6
5923 fi
5924 fi
5925done
5926
5927else
5928 PATH_IFS=':'
5929 echo "$ac_t""base only" 1>&6
5930fi
5931
5932
5933cat > confcache <<\EOF
5934# This file is a shell script that caches the results of configure
5935# tests run on this system so they can be shared between configure
5936# scripts and configure runs. It is not useful on other systems.
5937# If it contains results you don't want to keep, you may remove or edit it.
5938#
5939# By default, configure uses ./config.cache as the cache file,
5940# creating it if it does not exist already. You can give configure
5941# the --cache-file=FILE option to use a different cache file; that is
5942# what configure does when it calls configure scripts in
5943# subdirectories, so they share the cache.
5944# Giving --cache-file=/dev/null disables caching, for debugging configure.
5945# config.status only pays attention to the cache file if you give it the
5946# --recheck option to rerun configure.
5947#
5948EOF
5949# The following way of writing the cache mishandles newlines in values,
5950# but we know of no workaround that is simple, portable, and efficient.
5951# So, don't put newlines in cache variables' values.
5952# Ultrix sh set writes to stderr and can't be redirected directly,
5953# and sets the high bit in the cache file unless we assign to the vars.
5954(set) 2>&1 |
5955 case `(ac_space=' '; set | grep ac_space) 2>&1` in
5956 *ac_space=\ *)
5957 # `set' does not quote correctly, so add quotes (double-quote substitution
5958 # turns \\\\ into \\, and sed turns \\ into \).
5959 sed -n \
5960 -e "s/'/'\\\\''/g" \
5961 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
5962 ;;
5963 *)
5964 # `set' quotes correctly as required by POSIX, so do not add quotes.
5965 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
5966 ;;
5967 esac >> confcache
5968if cmp -s $cache_file confcache; then
5969 :
5970else
5971 if test -w $cache_file; then
5972 echo "updating cache $cache_file"
5973 cat confcache > $cache_file
5974 else
5975 echo "not updating unwritable cache $cache_file"
5976 fi
5977fi
5978rm -f confcache
5979
5980
5981if eval "test $host != $build"; then
5982 if eval "test $host_alias != NONE"; then
5983 CC=$host_alias-gcc
5984 CXX=$host_alias-c++
5985 AR=$host_alias-ar
5986 RANLIB=$host_alias-ranlib
5987 DLLTOOL=$host_alias-dlltool
5988 LD=$host_alias-ld
5989 NM=$host_alias-nm
5990 STRIP=$host_alias-strip
5991 fi
5992fi
5993
5994# Extract the first word of "gcc", so it can be a program name with args.
5995set dummy gcc; ac_word=$2
5996echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5997echo "configure:5998: checking for $ac_word" >&5
5998if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
5999 echo $ac_n "(cached) $ac_c" 1>&6
6000else
6001 if test -n "$CC"; then
6002 ac_cv_prog_CC="$CC" # Let the user override the test.
6003else
6004 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6005 ac_dummy="$PATH"
6006 for ac_dir in $ac_dummy; do
6007 test -z "$ac_dir" && ac_dir=.
6008 if test -f $ac_dir/$ac_word; then
6009 ac_cv_prog_CC="gcc"
6010 break
6011 fi
6012 done
6013 IFS="$ac_save_ifs"
6014fi
6015fi
6016CC="$ac_cv_prog_CC"
6017if test -n "$CC"; then
6018 echo "$ac_t""$CC" 1>&6
6019else
6020 echo "$ac_t""no" 1>&6
6021fi
6022
6023if test -z "$CC"; then
6024 # Extract the first word of "cc", so it can be a program name with args.
6025set dummy cc; ac_word=$2
6026echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6027echo "configure:6028: checking for $ac_word" >&5
6028if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
6029 echo $ac_n "(cached) $ac_c" 1>&6
6030else
6031 if test -n "$CC"; then
6032 ac_cv_prog_CC="$CC" # Let the user override the test.
6033else
6034 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6035 ac_prog_rejected=no
6036 ac_dummy="$PATH"
6037 for ac_dir in $ac_dummy; do
6038 test -z "$ac_dir" && ac_dir=.
6039 if test -f $ac_dir/$ac_word; then
6040 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
6041 ac_prog_rejected=yes
6042 continue
6043 fi
6044 ac_cv_prog_CC="cc"
6045 break
6046 fi
6047 done
6048 IFS="$ac_save_ifs"
6049if test $ac_prog_rejected = yes; then
6050 # We found a bogon in the path, so make sure we never use it.
6051 set dummy $ac_cv_prog_CC
6052 shift
6053 if test $# -gt 0; then
6054 # We chose a different compiler from the bogus one.
6055 # However, it has the same basename, so the bogon will be chosen
6056 # first if we set CC to just the basename; use the full file name.
6057 shift
6058 set dummy "$ac_dir/$ac_word" "$@"
6059 shift
6060 ac_cv_prog_CC="$@"
6061 fi
6062fi
6063fi
6064fi
6065CC="$ac_cv_prog_CC"
6066if test -n "$CC"; then
6067 echo "$ac_t""$CC" 1>&6
6068else
6069 echo "$ac_t""no" 1>&6
6070fi
6071
6072 if test -z "$CC"; then
6073 case "`uname -s`" in
6074 *win32* | *WIN32*)
6075 # Extract the first word of "cl", so it can be a program name with args.
6076set dummy cl; ac_word=$2
6077echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6078echo "configure:6079: checking for $ac_word" >&5
6079if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
6080 echo $ac_n "(cached) $ac_c" 1>&6
6081else
6082 if test -n "$CC"; then
6083 ac_cv_prog_CC="$CC" # Let the user override the test.
6084else
6085 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6086 ac_dummy="$PATH"
6087 for ac_dir in $ac_dummy; do
6088 test -z "$ac_dir" && ac_dir=.
6089 if test -f $ac_dir/$ac_word; then
6090 ac_cv_prog_CC="cl"
6091 break
6092 fi
6093 done
6094 IFS="$ac_save_ifs"
6095fi
6096fi
6097CC="$ac_cv_prog_CC"
6098if test -n "$CC"; then
6099 echo "$ac_t""$CC" 1>&6
6100else
6101 echo "$ac_t""no" 1>&6
6102fi
6103 ;;
6104 esac
6105 fi
6106 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
6107fi
6108
6109echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
6110echo "configure:6111: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
6111
6112ac_ext=c
6113# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6114ac_cpp='$CPP $CPPFLAGS'
6115ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6116ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6117cross_compiling=$ac_cv_prog_cc_cross
6118
6119cat > conftest.$ac_ext << EOF
6120
6121#line 6122 "configure"
6122#include "confdefs.h"
6123
6124main(){return(0);}
6125EOF
6126if { (eval echo configure:6127: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6127 ac_cv_prog_cc_works=yes
6128 # If we can't run a trivial program, we are probably using a cross compiler.
6129 if (./conftest; exit) 2>/dev/null; then
6130 ac_cv_prog_cc_cross=no
6131 else
6132 ac_cv_prog_cc_cross=yes
6133 fi
6134else
6135 echo "configure: failed program was:" >&5
6136 cat conftest.$ac_ext >&5
6137 ac_cv_prog_cc_works=no
6138fi
6139rm -fr conftest*
6140ac_ext=c
6141# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6142ac_cpp='$CPP $CPPFLAGS'
6143ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6144ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6145cross_compiling=$ac_cv_prog_cc_cross
6146
6147echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
6148if test $ac_cv_prog_cc_works = no; then
6149 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
6150fi
6151echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
6152echo "configure:6153: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
6153echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
6154cross_compiling=$ac_cv_prog_cc_cross
6155
6156echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
6157echo "configure:6158: checking whether we are using GNU C" >&5
6158if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
6159 echo $ac_n "(cached) $ac_c" 1>&6
6160else
6161 cat > conftest.c <<EOF
6162#ifdef __GNUC__
6163 yes;
6164#endif
6165EOF
6166if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:6167: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
6167 ac_cv_prog_gcc=yes
6168else
6169 ac_cv_prog_gcc=no
6170fi
6171fi
6172
6173echo "$ac_t""$ac_cv_prog_gcc" 1>&6
6174
6175if test $ac_cv_prog_gcc = yes; then
6176 GCC=yes
6177else
6178 GCC=
6179fi
6180
6181ac_test_CFLAGS="${CFLAGS+set}"
6182ac_save_CFLAGS="$CFLAGS"
6183CFLAGS=
6184echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
6185echo "configure:6186: checking whether ${CC-cc} accepts -g" >&5
6186if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
6187 echo $ac_n "(cached) $ac_c" 1>&6
6188else
6189 echo 'void f(){}' > conftest.c
6190if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
6191 ac_cv_prog_cc_g=yes
6192else
6193 ac_cv_prog_cc_g=no
6194fi
6195rm -f conftest*
6196
6197fi
6198
6199echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
6200if test "$ac_test_CFLAGS" = set; then
6201 CFLAGS="$ac_save_CFLAGS"
6202elif test $ac_cv_prog_cc_g = yes; then
6203 if test "$GCC" = yes; then
6204 CFLAGS="-g -O2"
6205 else
6206 CFLAGS="-g"
6207 fi
6208else
6209 if test "$GCC" = yes; then
6210 CFLAGS="-O2"
6211 else
6212 CFLAGS=
6213 fi
6214fi
6215
6216
6217CFLAGS=`echo "$CFLAGS" | sed 's/-g//g'`
6218
6219echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
6220echo "configure:6221: checking how to run the C preprocessor" >&5
6221# On Suns, sometimes $CPP names a directory.
6222if test -n "$CPP" && test -d "$CPP"; then
6223 CPP=
6224fi
6225if test -z "$CPP"; then
6226if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
6227 echo $ac_n "(cached) $ac_c" 1>&6
6228else
6229 # This must be in double quotes, not single quotes, because CPP may get
6230 # substituted into the Makefile and "${CC-cc}" will confuse make.
6231 CPP="${CC-cc} -E"
6232 # On the NeXT, cc -E runs the code through the compiler's parser,
6233 # not just through cpp.
6234 cat > conftest.$ac_ext <<EOF
6235#line 6236 "configure"
6236#include "confdefs.h"
6237#include <assert.h>
6238Syntax Error
6239EOF
6240ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6241{ (eval echo configure:6242: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6242ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6243if test -z "$ac_err"; then
6244 :
6245else
6246 echo "$ac_err" >&5
6247 echo "configure: failed program was:" >&5
6248 cat conftest.$ac_ext >&5
6249 rm -rf conftest*
6250 CPP="${CC-cc} -E -traditional-cpp"
6251 cat > conftest.$ac_ext <<EOF
6252#line 6253 "configure"
6253#include "confdefs.h"
6254#include <assert.h>
6255Syntax Error
6256EOF
6257ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6258{ (eval echo configure:6259: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6259ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6260if test -z "$ac_err"; then
6261 :
6262else
6263 echo "$ac_err" >&5
6264 echo "configure: failed program was:" >&5
6265 cat conftest.$ac_ext >&5
6266 rm -rf conftest*
6267 CPP="${CC-cc} -nologo -E"
6268 cat > conftest.$ac_ext <<EOF
6269#line 6270 "configure"
6270#include "confdefs.h"
6271#include <assert.h>
6272Syntax Error
6273EOF
6274ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6275{ (eval echo configure:6276: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6276ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6277if test -z "$ac_err"; then
6278 :
6279else
6280 echo "$ac_err" >&5
6281 echo "configure: failed program was:" >&5
6282 cat conftest.$ac_ext >&5
6283 rm -rf conftest*
6284 CPP=/lib/cpp
6285fi
6286rm -f conftest*
6287fi
6288rm -f conftest*
6289fi
6290rm -f conftest*
6291 ac_cv_prog_CPP="$CPP"
6292fi
6293 CPP="$ac_cv_prog_CPP"
6294else
6295 ac_cv_prog_CPP="$CPP"
6296fi
6297echo "$ac_t""$CPP" 1>&6
6298
6299
6300if test $ac_cv_prog_gcc = yes; then
6301 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
6302echo "configure:6303: checking whether ${CC-cc} needs -traditional" >&5
6303if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
6304 echo $ac_n "(cached) $ac_c" 1>&6
6305else
6306 ac_pattern="Autoconf.*'x'"
6307 cat > conftest.$ac_ext <<EOF
6308#line 6309 "configure"
6309#include "confdefs.h"
6310#include <sgtty.h>
6311Autoconf TIOCGETP
6312EOF
6313if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6314 egrep "$ac_pattern" >/dev/null 2>&1; then
6315 rm -rf conftest*
6316 ac_cv_prog_gcc_traditional=yes
6317else
6318 rm -rf conftest*
6319 ac_cv_prog_gcc_traditional=no
6320fi
6321rm -f conftest*
6322
6323
6324 if test $ac_cv_prog_gcc_traditional = no; then
6325 cat > conftest.$ac_ext <<EOF
6326#line 6327 "configure"
6327#include "confdefs.h"
6328#include <termio.h>
6329Autoconf TCGETA
6330EOF
6331if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6332 egrep "$ac_pattern" >/dev/null 2>&1; then
6333 rm -rf conftest*
6334 ac_cv_prog_gcc_traditional=yes
6335fi
6336rm -f conftest*
6337
6338 fi
6339fi
6340
6341echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
6342 if test $ac_cv_prog_gcc_traditional = yes; then
6343 CC="$CC -traditional"
6344 fi
6345fi
6346
6347
6348
6349ac_ext=C
6350# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6351ac_cpp='$CXXCPP $CPPFLAGS'
6352ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6353ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6354cross_compiling=$ac_cv_prog_cxx_cross
6355
6356
6357for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
6358do
6359# Extract the first word of "$ac_prog", so it can be a program name with args.
6360set dummy $ac_prog; ac_word=$2
6361echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6362echo "configure:6363: checking for $ac_word" >&5
6363if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
6364 echo $ac_n "(cached) $ac_c" 1>&6
6365else
6366 if test -n "$CXX"; then
6367 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6368else
6369 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6370 ac_dummy="$PATH"
6371 for ac_dir in $ac_dummy; do
6372 test -z "$ac_dir" && ac_dir=.
6373 if test -f $ac_dir/$ac_word; then
6374 ac_cv_prog_CXX="$ac_prog"
6375 break
6376 fi
6377 done
6378 IFS="$ac_save_ifs"
6379fi
6380fi
6381CXX="$ac_cv_prog_CXX"
6382if test -n "$CXX"; then
6383 echo "$ac_t""$CXX" 1>&6
6384else
6385 echo "$ac_t""no" 1>&6
6386fi
6387
6388test -n "$CXX" && break
6389done
6390test -n "$CXX" || CXX="gcc"
6391
6392
6393echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
6394echo "configure:6395: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
6395
6396ac_ext=C
6397# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6398ac_cpp='$CXXCPP $CPPFLAGS'
6399ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6400ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6401cross_compiling=$ac_cv_prog_cxx_cross
6402
6403cat > conftest.$ac_ext << EOF
6404
6405#line 6406 "configure"
6406#include "confdefs.h"
6407
6408int main(){return(0);}
6409EOF
6410if { (eval echo configure:6411: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6411 ac_cv_prog_cxx_works=yes
6412 # If we can't run a trivial program, we are probably using a cross compiler.
6413 if (./conftest; exit) 2>/dev/null; then
6414 ac_cv_prog_cxx_cross=no
6415 else
6416 ac_cv_prog_cxx_cross=yes
6417 fi
6418else
6419 echo "configure: failed program was:" >&5
6420 cat conftest.$ac_ext >&5
6421 ac_cv_prog_cxx_works=no
6422fi
6423rm -fr conftest*
6424ac_ext=C
6425# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6426ac_cpp='$CXXCPP $CPPFLAGS'
6427ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6428ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6429cross_compiling=$ac_cv_prog_cxx_cross
6430
6431echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
6432if test $ac_cv_prog_cxx_works = no; then
6433 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
6434fi
6435echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
6436echo "configure:6437: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
6437echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
6438cross_compiling=$ac_cv_prog_cxx_cross
6439
6440echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
6441echo "configure:6442: checking whether we are using GNU C++" >&5
6442if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
6443 echo $ac_n "(cached) $ac_c" 1>&6
6444else
6445 cat > conftest.C <<EOF
6446#ifdef __GNUC__
6447 yes;
6448#endif
6449EOF
6450if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:6451: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
6451 ac_cv_prog_gxx=yes
6452else
6453 ac_cv_prog_gxx=no
6454fi
6455fi
6456
6457echo "$ac_t""$ac_cv_prog_gxx" 1>&6
6458
6459if test $ac_cv_prog_gxx = yes; then
6460 GXX=yes
6461else
6462 GXX=
6463fi
6464
6465ac_test_CXXFLAGS="${CXXFLAGS+set}"
6466ac_save_CXXFLAGS="$CXXFLAGS"
6467CXXFLAGS=
6468echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
6469echo "configure:6470: checking whether ${CXX-g++} accepts -g" >&5
6470if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
6471 echo $ac_n "(cached) $ac_c" 1>&6
6472else
6473 echo 'void f(){}' > conftest.cc
6474if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
6475 ac_cv_prog_cxx_g=yes
6476else
6477 ac_cv_prog_cxx_g=no
6478fi
6479rm -f conftest*
6480
6481fi
6482
6483echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
6484if test "$ac_test_CXXFLAGS" = set; then
6485 CXXFLAGS="$ac_save_CXXFLAGS"
6486elif test $ac_cv_prog_cxx_g = yes; then
6487 if test "$GXX" = yes; then
6488 CXXFLAGS="-g -O2"
6489 else
6490 CXXFLAGS="-g"
6491 fi
6492else
6493 if test "$GXX" = yes; then
6494 CXXFLAGS="-O2"
6495 else
6496 CXXFLAGS=
6497 fi
6498fi
6499
6500
6501echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
6502echo "configure:6503: checking how to run the C++ preprocessor" >&5
6503if test -z "$CXXCPP"; then
6504if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
6505 echo $ac_n "(cached) $ac_c" 1>&6
6506else
6507 ac_ext=C
6508# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6509ac_cpp='$CXXCPP $CPPFLAGS'
6510ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6511ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6512cross_compiling=$ac_cv_prog_cxx_cross
6513 CXXCPP="${CXX-g++} -E"
6514 cat > conftest.$ac_ext <<EOF
6515#line 6516 "configure"
6516#include "confdefs.h"
6517#include <stdlib.h>
6518EOF
6519ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6520{ (eval echo configure:6521: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6521ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6522if test -z "$ac_err"; then
6523 :
6524else
6525 echo "$ac_err" >&5
6526 echo "configure: failed program was:" >&5
6527 cat conftest.$ac_ext >&5
6528 rm -rf conftest*
6529 CXXCPP=/lib/cpp
6530fi
6531rm -f conftest*
6532 ac_cv_prog_CXXCPP="$CXXCPP"
6533ac_ext=C
6534# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6535ac_cpp='$CXXCPP $CPPFLAGS'
6536ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6537ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6538cross_compiling=$ac_cv_prog_cxx_cross
6539fi
6540fi
6541CXXCPP="$ac_cv_prog_CXXCPP"
6542echo "$ac_t""$CXXCPP" 1>&6
6543
6544
6545CXXFLAGS=`echo "$CXXFLAGS" | sed 's/-g//g'`
6546
6547ac_ext=c
6548# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6549ac_cpp='$CPP $CPPFLAGS'
6550ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6551ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6552cross_compiling=$ac_cv_prog_cc_cross
6553
6554
6555# Extract the first word of "ranlib", so it can be a program name with args.
6556set dummy ranlib; ac_word=$2
6557echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6558echo "configure:6559: checking for $ac_word" >&5
6559if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
6560 echo $ac_n "(cached) $ac_c" 1>&6
6561else
6562 if test -n "$RANLIB"; then
6563 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6564else
6565 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6566 ac_dummy="$PATH"
6567 for ac_dir in $ac_dummy; do
6568 test -z "$ac_dir" && ac_dir=.
6569 if test -f $ac_dir/$ac_word; then
6570 ac_cv_prog_RANLIB="ranlib"
6571 break
6572 fi
6573 done
6574 IFS="$ac_save_ifs"
6575 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
6576fi
6577fi
6578RANLIB="$ac_cv_prog_RANLIB"
6579if test -n "$RANLIB"; then
6580 echo "$ac_t""$RANLIB" 1>&6
6581else
6582 echo "$ac_t""no" 1>&6
6583fi
6584
6585
6586# Extract the first word of "ar", so it can be a program name with args.
6587set dummy ar; ac_word=$2
6588echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6589echo "configure:6590: checking for $ac_word" >&5
6590if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
6591 echo $ac_n "(cached) $ac_c" 1>&6
6592else
6593 if test -n "$AR"; then
6594 ac_cv_prog_AR="$AR" # Let the user override the test.
6595else
6596 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6597 ac_dummy="$PATH"
6598 for ac_dir in $ac_dummy; do
6599 test -z "$ac_dir" && ac_dir=.
6600 if test -f $ac_dir/$ac_word; then
6601 ac_cv_prog_AR="ar"
6602 break
6603 fi
6604 done
6605 IFS="$ac_save_ifs"
6606 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
6607fi
6608fi
6609AR="$ac_cv_prog_AR"
6610if test -n "$AR"; then
6611 echo "$ac_t""$AR" 1>&6
6612else
6613 echo "$ac_t""no" 1>&6
6614fi
6615
6616
6617# Find a good install program. We prefer a C program (faster),
6618# so one script is as good as another. But avoid the broken or
6619# incompatible versions:
6620# SysV /etc/install, /usr/sbin/install
6621# SunOS /usr/etc/install
6622# IRIX /sbin/install
6623# AIX /bin/install
6624# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6625# AFS /usr/afsws/bin/install, which mishandles nonexistent args
6626# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6627# ./install, which can be erroneously created by make from ./install.sh.
6628echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
6629echo "configure:6630: checking for a BSD compatible install" >&5
6630if test -z "$INSTALL"; then
6631if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
6632 echo $ac_n "(cached) $ac_c" 1>&6
6633else
6634 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
6635 for ac_dir in $PATH; do
6636 # Account for people who put trailing slashes in PATH elements.
6637 case "$ac_dir/" in
6638 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
6639 *)
6640 # OSF1 and SCO ODT 3.0 have their own names for install.
6641 # Don't use installbsd from OSF since it installs stuff as root
6642 # by default.
6643 for ac_prog in ginstall scoinst install; do
6644 if test -f $ac_dir/$ac_prog; then
6645 if test $ac_prog = install &&
6646 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
6647 # AIX install. It has an incompatible calling convention.
6648 :
6649 else
6650 ac_cv_path_install="$ac_dir/$ac_prog -c"
6651 break 2
6652 fi
6653 fi
6654 done
6655 ;;
6656 esac
6657 done
6658 IFS="$ac_save_IFS"
6659
6660fi
6661 if test "${ac_cv_path_install+set}" = set; then
6662 INSTALL="$ac_cv_path_install"
6663 else
6664 # As a last resort, use the slow shell script. We don't cache a
6665 # path for INSTALL within a source directory, because that will
6666 # break other packages using the cache if that directory is
6667 # removed, or if the path is relative.
6668 INSTALL="$ac_install_sh"
6669 fi
6670fi
6671echo "$ac_t""$INSTALL" 1>&6
6672
6673# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6674# It thinks the first close brace ends the variable substitution.
6675test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6676
6677test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
6678
6679test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6680
6681
6682# Extract the first word of "strip", so it can be a program name with args.
6683set dummy strip; ac_word=$2
6684echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6685echo "configure:6686: checking for $ac_word" >&5
6686if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
6687 echo $ac_n "(cached) $ac_c" 1>&6
6688else
6689 if test -n "$STRIP"; then
6690 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6691else
6692 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6693 ac_dummy="$PATH"
6694 for ac_dir in $ac_dummy; do
6695 test -z "$ac_dir" && ac_dir=.
6696 if test -f $ac_dir/$ac_word; then
6697 ac_cv_prog_STRIP="strip"
6698 break
6699 fi
6700 done
6701 IFS="$ac_save_ifs"
6702 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true"
6703fi
6704fi
6705STRIP="$ac_cv_prog_STRIP"
6706if test -n "$STRIP"; then
6707 echo "$ac_t""$STRIP" 1>&6
6708else
6709 echo "$ac_t""no" 1>&6
6710fi
6711
6712
6713echo $ac_n "checking "make for VPATH support"""... $ac_c" 1>&6
6714echo "configure:6715: checking "make for VPATH support"" >&5
6715cat - << EOF > confMake
6716check : file
6717 cp \$? \$@
6718 cp \$? final_file
6719EOF
6720
6721if test ! -d sub ; then
6722 mkdir sub
6723fi
6724echo dummy > sub/file
6725${MAKE-make} -f confMake VPATH=sub 2> config.log > /dev/null
6726RESULT=$?
6727rm -f sub/file check final_file confMake
6728rmdir sub
6729if test "$RESULT" = 0; then
6730 echo "$ac_t""yes" 1>&6
6731else
6732 echo "$ac_t""no" 1>&6
6733 { echo "configure: error: You need a make-utility that is able to use the variable
6734VPATH correctly.
6735If your version of make does not support VPATH correctly" 1>&2; exit 1; }
6736fi
6737
6738for ac_prog in 'bison -y' byacc
6739do
6740# Extract the first word of "$ac_prog", so it can be a program name with args.
6741set dummy $ac_prog; ac_word=$2
6742echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6743echo "configure:6744: checking for $ac_word" >&5
6744if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
6745 echo $ac_n "(cached) $ac_c" 1>&6
6746else
6747 if test -n "$YACC"; then
6748 ac_cv_prog_YACC="$YACC" # Let the user override the test.
6749else
6750 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6751 ac_dummy="$PATH"
6752 for ac_dir in $ac_dummy; do
6753 test -z "$ac_dir" && ac_dir=.
6754 if test -f $ac_dir/$ac_word; then
6755 ac_cv_prog_YACC="$ac_prog"
6756 break
6757 fi
6758 done
6759 IFS="$ac_save_ifs"
6760fi
6761fi
6762YACC="$ac_cv_prog_YACC"
6763if test -n "$YACC"; then
6764 echo "$ac_t""$YACC" 1>&6
6765else
6766 echo "$ac_t""no" 1>&6
6767fi
6768
6769test -n "$YACC" && break
6770done
6771test -n "$YACC" || YACC="yacc"
6772
6773
6774# Extract the first word of "flex", so it can be a program name with args.
6775set dummy flex; ac_word=$2
6776echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6777echo "configure:6778: checking for $ac_word" >&5
6778if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
6779 echo $ac_n "(cached) $ac_c" 1>&6
6780else
6781 if test -n "$LEX"; then
6782 ac_cv_prog_LEX="$LEX" # Let the user override the test.
6783else
6784 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6785 ac_dummy="$PATH"
6786 for ac_dir in $ac_dummy; do
6787 test -z "$ac_dir" && ac_dir=.
6788 if test -f $ac_dir/$ac_word; then
6789 ac_cv_prog_LEX="flex"
6790 break
6791 fi
6792 done
6793 IFS="$ac_save_ifs"
6794 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
6795fi
6796fi
6797LEX="$ac_cv_prog_LEX"
6798if test -n "$LEX"; then
6799 echo "$ac_t""$LEX" 1>&6
6800else
6801 echo "$ac_t""no" 1>&6
6802fi
6803
6804if test -z "$LEXLIB"
6805then
6806 case "$LEX" in
6807 flex*) ac_lib=fl ;;
6808 *) ac_lib=l ;;
6809 esac
6810 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
6811echo "configure:6812: checking for yywrap in -l$ac_lib" >&5
6812ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
6813if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6814 echo $ac_n "(cached) $ac_c" 1>&6
6815else
6816 ac_save_LIBS="$LIBS"
6817LIBS="-l$ac_lib $LIBS"
6818cat > conftest.$ac_ext <<EOF
6819#line 6820 "configure"
6820#include "confdefs.h"
6821/* Override any gcc2 internal prototype to avoid an error. */
6822/* We use char because int might match the return type of a gcc2
6823 builtin and then its argument prototype would still apply. */
6824char yywrap();
6825
6826int main() {
6827yywrap()
6828; return 0; }
6829EOF
6830if { (eval echo configure:6831: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6831 rm -rf conftest*
6832 eval "ac_cv_lib_$ac_lib_var=yes"
6833else
6834 echo "configure: failed program was:" >&5
6835 cat conftest.$ac_ext >&5
6836 rm -rf conftest*
6837 eval "ac_cv_lib_$ac_lib_var=no"
6838fi
6839rm -f conftest*
6840LIBS="$ac_save_LIBS"
6841
6842fi
6843if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6844 echo "$ac_t""yes" 1>&6
6845 LEXLIB="-l$ac_lib"
6846else
6847 echo "$ac_t""no" 1>&6
6848fi
6849
6850fi
6851
6852
6853echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
6854echo "configure:6855: checking whether ln -s works" >&5
6855if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
6856 echo $ac_n "(cached) $ac_c" 1>&6
6857else
6858 rm -f conftestdata
6859if ln -s X conftestdata 2>/dev/null
6860then
6861 rm -f conftestdata
6862 ac_cv_prog_LN_S="ln -s"
6863else
6864 ac_cv_prog_LN_S=ln
6865fi
6866fi
6867LN_S="$ac_cv_prog_LN_S"
6868if test "$ac_cv_prog_LN_S" = "ln -s"; then
6869 echo "$ac_t""yes" 1>&6
6870else
6871 echo "$ac_t""no" 1>&6
6872fi
6873
6874
6875
6876SEARCH_INCLUDE="\
6877 /usr/local/include \
6878 \
6879 /usr/Motif-1.2/include \
6880 /usr/Motif-2.1/include \
6881 \
6882 /usr/include/Motif1.2 \
6883 /opt/xpm/include/X11 \
6884 /opt/GBxpm/include/ \
6885 /opt/GBxpm/X11/include/ \
6886 \
6887 /usr/Motif1.2/include \
6888 /usr/dt/include \
6889 /usr/openwin/include \
6890 \
6891 /usr/include/Xm \
6892 \
6893 /usr/X11R6/include \
6894 /usr/X11R6.4/include \
6895 /usr/X11R5/include \
6896 /usr/X11R4/include \
6897 \
6898 /usr/include/X11R6 \
6899 /usr/include/X11R5 \
6900 /usr/include/X11R4 \
6901 \
6902 /usr/local/X11R6/include \
6903 /usr/local/X11R5/include \
6904 /usr/local/X11R4/include \
6905 \
6906 /usr/local/include/X11R6 \
6907 /usr/local/include/X11R5 \
6908 /usr/local/include/X11R4 \
6909 \
6910 /usr/X11/include \
6911 /usr/include/X11 \
6912 /usr/local/X11/include \
6913 /usr/local/include/X11 \
6914 \
6915 /usr/X386/include \
6916 /usr/x386/include \
6917 /usr/XFree86/include/X11 \
6918 \
6919 X:/XFree86/include \
6920 X:/XFree86/include/X11 \
6921 \
6922 /usr/include/gtk \
6923 /usr/local/include/gtk \
6924 /usr/include/glib \
6925 /usr/local/include/glib \
6926 \
6927 /usr/include/qt \
6928 /usr/local/include/qt \
6929 \
6930 /usr/include/windows \
6931 /usr/include/wine \
6932 /usr/local/include/wine \
6933 \
6934 /usr/unsupported/include \
6935 /usr/athena/include \
6936 /usr/local/x11r5/include \
6937 /usr/lpp/Xamples/include \
6938 \
6939 /usr/openwin/share/include \
6940 \
6941 /usr/include"
6942
6943SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s/include/lib/g` "
6944
6945
6946cat > confcache <<\EOF
6947# This file is a shell script that caches the results of configure
6948# tests run on this system so they can be shared between configure
6949# scripts and configure runs. It is not useful on other systems.
6950# If it contains results you don't want to keep, you may remove or edit it.
6951#
6952# By default, configure uses ./config.cache as the cache file,
6953# creating it if it does not exist already. You can give configure
6954# the --cache-file=FILE option to use a different cache file; that is
6955# what configure does when it calls configure scripts in
6956# subdirectories, so they share the cache.
6957# Giving --cache-file=/dev/null disables caching, for debugging configure.
6958# config.status only pays attention to the cache file if you give it the
6959# --recheck option to rerun configure.
6960#
6961EOF
6962# The following way of writing the cache mishandles newlines in values,
6963# but we know of no workaround that is simple, portable, and efficient.
6964# So, don't put newlines in cache variables' values.
6965# Ultrix sh set writes to stderr and can't be redirected directly,
6966# and sets the high bit in the cache file unless we assign to the vars.
6967(set) 2>&1 |
6968 case `(ac_space=' '; set | grep ac_space) 2>&1` in
6969 *ac_space=\ *)
6970 # `set' does not quote correctly, so add quotes (double-quote substitution
6971 # turns \\\\ into \\, and sed turns \\ into \).
6972 sed -n \
6973 -e "s/'/'\\\\''/g" \
6974 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
6975 ;;
6976 *)
6977 # `set' quotes correctly as required by POSIX, so do not add quotes.
6978 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
6979 ;;
6980 esac >> confcache
6981if cmp -s $cache_file confcache; then
6982 :
6983else
6984 if test -w $cache_file; then
6985 echo "updating cache $cache_file"
6986 cat confcache > $cache_file
6987 else
6988 echo "not updating unwritable cache $cache_file"
6989 fi
6990fi
6991rm -f confcache
6992
6993
6994
6995AFMINSTALL=
6996
6997if test "$wxUSE_GUI" = "yes"; then
6998
6999USE_GUI=1
7000
7001TOOLKIT=
7002TOOLKIT_INCLUDE=
7003
7004GUIOBJS=
7005COMMONOBJS=
7006GENERICOBJS=
7007
7008GUI_TK_LIBRARY=
7009GUI_TK_LINK=
7010
7011WXGTK12=
7012WXGTK13=
7013
7014WXWINE=
7015
7016if test "$wxUSE_CYGWIN" = 1 || test "$wxUSE_MINGW" = 1 ; then
7017 if test "$cross_compiling" = "yes" ; then
7018 echo "configure: warning: Cross compiling --- skipping windows.h check" 1>&2
7019 else
7020 echo $ac_n "checking for Windows headers""... $ac_c" 1>&6
7021echo "configure:7022: checking for Windows headers" >&5
7022
7023ac_find_includes=
7024for ac_dir in $SEARCH_INCLUDE;
7025 do
7026 if test -f "$ac_dir/windows.h"; then
7027 ac_find_includes=$ac_dir
7028 break
7029 fi
7030 done
7031
7032 if test "$ac_find_includes" != "" ; then
7033 echo "$ac_t""found $ac_find_includes" 1>&6
7034 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE -I$ac_find_includes"
7035 else
7036 echo "$ac_t""no" 1>&6
7037 { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; }
7038 fi
7039 fi
7040
7041 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS msw"
7042 LIBS="$LIBS -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lctl3d32 -lcrtdll -ladvapi32 -lwsock32"
7043
7044 if test "$wxUSE_MINGW" = 1; then
7045 LDFLAGS="$LDFLAGS -mwindows"
7046 fi
7047
7048 TOOLKIT=MSW
7049
7050 GUIOBJS="\$(MSW_GUIOBJS)"
7051 GUIHEADERS="\$(MSW_HEADERS)"
7052 COMMONOBJS="\$(MSW_COMMONOBJS)"
7053 GENERICOBJS="\$(MSW_GENERICOBJS)"
7054 UNIXOBJS=
7055 GUIDIST=MSW_DIST
7056fi
7057
7058if test "$wxUSE_GTK" = 1; then
7059
7060 if test x$gtk_config_exec_prefix != x ; then
7061 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
7062 if test x${GTK_CONFIG+set} != xset ; then
7063 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
7064 fi
7065 fi
7066 if test x$gtk_config_prefix != x ; then
7067 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
7068 if test x${GTK_CONFIG+set} != xset ; then
7069 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
7070 fi
7071 fi
7072
7073 # Extract the first word of "gtk-config", so it can be a program name with args.
7074set dummy gtk-config; ac_word=$2
7075echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7076echo "configure:7077: checking for $ac_word" >&5
7077if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
7078 echo $ac_n "(cached) $ac_c" 1>&6
7079else
7080 case "$GTK_CONFIG" in
7081 /*)
7082 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
7083 ;;
7084 ?:/*)
7085 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
7086 ;;
7087 *)
7088 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7089 ac_dummy="$PATH"
7090 for ac_dir in $ac_dummy; do
7091 test -z "$ac_dir" && ac_dir=.
7092 if test -f $ac_dir/$ac_word; then
7093 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
7094 break
7095 fi
7096 done
7097 IFS="$ac_save_ifs"
7098 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
7099 ;;
7100esac
7101fi
7102GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
7103if test -n "$GTK_CONFIG"; then
7104 echo "$ac_t""$GTK_CONFIG" 1>&6
7105else
7106 echo "$ac_t""no" 1>&6
7107fi
7108
7109 min_gtk_version=1.2.3
7110 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
7111echo "configure:7112: checking for GTK - version >= $min_gtk_version" >&5
7112 no_gtk=""
7113 if test "$GTK_CONFIG" != "no" ; then
7114 GTK_CFLAGS=`$GTK_CONFIG --cflags`
7115 GTK_LIBS=`$GTK_CONFIG --libs gthread`
7116 ac_save_CFLAGS="$CFLAGS"
7117 ac_save_LIBS="$LIBS"
7118 CFLAGS="$CFLAGS $GTK_CFLAGS"
7119 LIBS="$LIBS $GTK_LIBS"
7120 if test "$cross_compiling" = yes; then
7121 echo $ac_n "cross compiling; assumed OK... $ac_c"
7122else
7123 cat > conftest.$ac_ext <<EOF
7124#line 7125 "configure"
7125#include "confdefs.h"
7126
7127#include <gtk/gtk.h>
7128#include <gtk/gtkfeatures.h>
7129#include <stdio.h>
7130
7131int
7132main ()
7133{
7134 int major, minor, micro;
7135
7136 if (sscanf("$min_gtk_version", "%d.%d.%d", &major, &minor, &micro) != 3) {
7137 printf("%s, bad version string\n", "$min_gtk_version");
7138 exit(1);
7139 }
7140
7141 if ((GTK_MAJOR_VERSION != gtk_major_version) ||
7142 (GTK_MINOR_VERSION != gtk_minor_version) ||
7143 (GTK_MICRO_VERSION != gtk_micro_version)) {
7144 printf("Headers vs. library version mismatch!\n");
7145 exit(1);
7146 }
7147
7148 if (gtk_minor_version == 1) return FALSE;
7149
7150 return !((gtk_major_version > major) ||
7151 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
7152 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)));
7153}
7154
7155EOF
7156if { (eval echo configure:7157: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7157then
7158 :
7159else
7160 echo "configure: failed program was:" >&5
7161 cat conftest.$ac_ext >&5
7162 rm -fr conftest*
7163 no_gtk=yes
7164fi
7165rm -fr conftest*
7166fi
7167
7168 CFLAGS="$ac_save_CFLAGS"
7169 LIBS="$ac_save_LIBS"
7170 else
7171 no_gtk=yes
7172 fi
7173 if test "x$no_gtk" = x ; then
7174 echo "$ac_t""yes" 1>&6
7175 WXGTK12=1
7176 else
7177 echo "$ac_t""no" 1>&6
7178 GTK_CFLAGS=""
7179 GTK_LIBS=""
7180 :
7181 fi
7182
7183
7184
7185
7186 if test "$WXGTK12" != 1; then
7187 { echo "configure: error:
7188 Please check that gtk-config is in path, the directory
7189 where GTK+ libraries are installed (returned by
7190 'gtk-config --libs' command) is in LD_LIBRARY_PATH or
7191 equivalent variable and GTK+ is version 1.2.3 or above.
7192 " 1>&2; exit 1; }
7193 fi
7194
7195
7196 TOOLKIT_INCLUDE="$GTK_CFLAGS"
7197
7198
7199 GUI_TK_LIBRARY="$GTK_LIBS"
7200
7201 TOOLKIT=GTK
7202
7203 AFMINSTALL=afminstall
7204
7205 GUIOBJS="\$(GTK_GUIOBJS)"
7206 GUIHEADERS="\$(GTK_HEADERS)"
7207 COMMONOBJS="\$(GTK_COMMONOBJS)"
7208 GENERICOBJS="\$(GTK_GENERICOBJS)"
7209 GUIDEPS="\$(GTK_GUIDEPS)"
7210 COMMONDEPS="\$(GTK_COMMONDEPS)"
7211 GENERICDEPS="\$(GTK_GENERICDEPS)"
7212 UNIXOBJS="\$(UNIX_OBJS)"
7213 UNIXDEPS="\$(UNIX_DEPS)"
7214 GUIDIST=GTK_DIST
7215
7216 echo $ac_n "checking for gdk_im_open in -lgdk""... $ac_c" 1>&6
7217echo "configure:7218: checking for gdk_im_open in -lgdk" >&5
7218ac_lib_var=`echo gdk'_'gdk_im_open | sed 'y%./+-%__p_%'`
7219if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7220 echo $ac_n "(cached) $ac_c" 1>&6
7221else
7222 ac_save_LIBS="$LIBS"
7223LIBS="-lgdk $LIBS"
7224cat > conftest.$ac_ext <<EOF
7225#line 7226 "configure"
7226#include "confdefs.h"
7227/* Override any gcc2 internal prototype to avoid an error. */
7228/* We use char because int might match the return type of a gcc2
7229 builtin and then its argument prototype would still apply. */
7230char gdk_im_open();
7231
7232int main() {
7233gdk_im_open()
7234; return 0; }
7235EOF
7236if { (eval echo configure:7237: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7237 rm -rf conftest*
7238 eval "ac_cv_lib_$ac_lib_var=yes"
7239else
7240 echo "configure: failed program was:" >&5
7241 cat conftest.$ac_ext >&5
7242 rm -rf conftest*
7243 eval "ac_cv_lib_$ac_lib_var=no"
7244fi
7245rm -f conftest*
7246LIBS="$ac_save_LIBS"
7247
7248fi
7249if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7250 echo "$ac_t""yes" 1>&6
7251 cat >> confdefs.h <<\EOF
7252#define HAVE_XIM 1
7253EOF
7254
7255else
7256 echo "$ac_t""no" 1>&6
7257fi
7258
7259fi
7260
7261if test "$wxUSE_WINE" = 1; then
7262 echo $ac_n "checking for WINE includes""... $ac_c" 1>&6
7263echo "configure:7264: checking for WINE includes" >&5
7264
7265ac_find_includes=
7266for ac_dir in $SEARCH_INCLUDE;
7267 do
7268 if test -f "$ac_dir/windows.h"; then
7269 ac_find_includes=$ac_dir
7270 break
7271 fi
7272 done
7273
7274 if test "$ac_find_includes" != "" ; then
7275 echo "$ac_t""found $ac_find_includes" 1>&6
7276 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE -I$ac_find_includes"
7277 else
7278 echo "$ac_t""no" 1>&6
7279 { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; }
7280 fi
7281
7282 XPM_LINK=""
7283 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
7284echo "configure:7285: checking for Xpm library" >&5
7285
7286ac_find_libraries=
7287for ac_dir in $SEARCH_LIB;
7288 do
7289 for ac_extension in a so sl; do
7290 if test -f "$ac_dir/libXpm.$ac_extension"; then
7291 ac_find_libraries=$ac_dir
7292 break 2
7293 fi
7294 done
7295 done
7296
7297 if test "$ac_find_libraries" != "" ; then
7298 GUI_TK_LIBRARY="-L$ac_find_libraries"
7299 XPM_LINK="-lXpm"
7300 cat >> confdefs.h <<\EOF
7301#define wxHAVE_LIB_XPM 1
7302EOF
7303
7304 echo "$ac_t""found at $ac_find_libraries" 1>&6
7305 else
7306 echo "$ac_t""no" 1>&6
7307 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
7308 fi
7309
7310 MESA_LINK=""
7311 echo $ac_n "checking for Mesa library""... $ac_c" 1>&6
7312echo "configure:7313: checking for Mesa library" >&5
7313
7314ac_find_libraries=
7315for ac_dir in $SEARCH_LIB;
7316 do
7317 for ac_extension in a so sl; do
7318 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
7319 ac_find_libraries=$ac_dir
7320 break 2
7321 fi
7322 done
7323 done
7324
7325 if test "$ac_find_libraries" != "" ; then
7326 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -L$ac_find_libraries"
7327 MESA_LINK="-lMesaGL"
7328 echo "$ac_t""found at $ac_find_libraries" 1>&6
7329 else
7330 { echo "configure: error: no" 1>&2; exit 1; }
7331 fi
7332
7333 GUI_TK_LINK="-lwine $MESA_LINK $XPM_LINK -lXxf86dga -lXxf86vm -lSM -lICE -lXext -lXmu -lX11 -lncurses -lm"
7334 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $GUI_TK_LINK"
7335 WXWINE=1
7336 TOOLKIT=MSW
7337
7338 GUIHEADERS="\$(MSW_HEADERS)"
7339 GUIOBJS="\$(MSW_GUIOBJS)"
7340 COMMONOBJS="\$(MSW_COMMONOBJS)"
7341 GENERICOBJS="\$(MSW_GENERICOBJS)"
7342 GUIDEPS="\$(MSW_GUIDEPS)"
7343 COMMONDEPS="\$(MSW_COMMONDEPS)"
7344 GENERICDEPS="\$(MSW_GENERICDEPS)"
7345 UNIXOBJS="\$(UNIX_OBJS)"
7346 UNIXDEPS="\$(UNIX_DEPS)"
7347 GUIDIST=MSW_DIST
7348fi
7349
7350if test "$wxUSE_MOTIF" = 1; then
7351 # If we find X, set shell vars x_includes and x_libraries to the
7352# paths, otherwise set no_x=yes.
7353# Uses ac_ vars as temps to allow command line to override cache and checks.
7354# --without-x overrides everything else, but does not touch the cache.
7355echo $ac_n "checking for X""... $ac_c" 1>&6
7356echo "configure:7357: checking for X" >&5
7357
7358# Check whether --with-x or --without-x was given.
7359if test "${with_x+set}" = set; then
7360 withval="$with_x"
7361 :
7362fi
7363
7364# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7365if test "x$with_x" = xno; then
7366 # The user explicitly disabled X.
7367 have_x=disabled
7368else
7369 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
7370 # Both variables are already set.
7371 have_x=yes
7372 else
7373if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
7374 echo $ac_n "(cached) $ac_c" 1>&6
7375else
7376 # One or both of the vars are not set, and there is no cached value.
7377ac_x_includes=NO ac_x_libraries=NO
7378rm -fr conftestdir
7379if mkdir conftestdir; then
7380 cd conftestdir
7381 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
7382 cat > Imakefile <<'EOF'
7383acfindx:
7384 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
7385EOF
7386 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
7387 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7388 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
7389 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
7390 for ac_extension in a so sl; do
7391 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
7392 test -f $ac_im_libdir/libX11.$ac_extension; then
7393 ac_im_usrlibdir=$ac_im_libdir; break
7394 fi
7395 done
7396 # Screen out bogus values from the imake configuration. They are
7397 # bogus both because they are the default anyway, and because
7398 # using them would break gcc on systems where it needs fixed includes.
7399 case "$ac_im_incroot" in
7400 /usr/include) ;;
7401 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
7402 esac
7403 case "$ac_im_usrlibdir" in
7404 /usr/lib | /lib) ;;
7405 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
7406 esac
7407 fi
7408 cd ..
7409 rm -fr conftestdir
7410fi
7411
7412if test "$ac_x_includes" = NO; then
7413 # Guess where to find include files, by looking for this one X11 .h file.
7414 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
7415
7416 # First, try using that file with no special directory specified.
7417cat > conftest.$ac_ext <<EOF
7418#line 7419 "configure"
7419#include "confdefs.h"
7420#include <$x_direct_test_include>
7421EOF
7422ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7423{ (eval echo configure:7424: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7424ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7425if test -z "$ac_err"; then
7426 rm -rf conftest*
7427 # We can compile using X headers with no special include directory.
7428ac_x_includes=
7429else
7430 echo "$ac_err" >&5
7431 echo "configure: failed program was:" >&5
7432 cat conftest.$ac_ext >&5
7433 rm -rf conftest*
7434 # Look for the header file in a standard set of common directories.
7435# Check X11 before X11Rn because it is often a symlink to the current release.
7436 for ac_dir in \
7437 /usr/X11/include \
7438 /usr/X11R6/include \
7439 /usr/X11R5/include \
7440 /usr/X11R4/include \
7441 \
7442 /usr/include/X11 \
7443 /usr/include/X11R6 \
7444 /usr/include/X11R5 \
7445 /usr/include/X11R4 \
7446 \
7447 /usr/local/X11/include \
7448 /usr/local/X11R6/include \
7449 /usr/local/X11R5/include \
7450 /usr/local/X11R4/include \
7451 \
7452 /usr/local/include/X11 \
7453 /usr/local/include/X11R6 \
7454 /usr/local/include/X11R5 \
7455 /usr/local/include/X11R4 \
7456 \
7457 /usr/X386/include \
7458 /usr/x386/include \
7459 /usr/XFree86/include/X11 \
7460 \
7461 /usr/include \
7462 /usr/local/include \
7463 /usr/unsupported/include \
7464 /usr/athena/include \
7465 /usr/local/x11r5/include \
7466 /usr/lpp/Xamples/include \
7467 \
7468 /usr/openwin/include \
7469 /usr/openwin/share/include \
7470 ; \
7471 do
7472 if test -r "$ac_dir/$x_direct_test_include"; then
7473 ac_x_includes=$ac_dir
7474 break
7475 fi
7476 done
7477fi
7478rm -f conftest*
7479fi # $ac_x_includes = NO
7480
7481if test "$ac_x_libraries" = NO; then
7482 # Check for the libraries.
7483
7484 test -z "$x_direct_test_library" && x_direct_test_library=Xt
7485 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
7486
7487 # See if we find them without any special options.
7488 # Don't add to $LIBS permanently.
7489 ac_save_LIBS="$LIBS"
7490 LIBS="-l$x_direct_test_library $LIBS"
7491cat > conftest.$ac_ext <<EOF
7492#line 7493 "configure"
7493#include "confdefs.h"
7494
7495int main() {
7496${x_direct_test_function}()
7497; return 0; }
7498EOF
7499if { (eval echo configure:7500: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7500 rm -rf conftest*
7501 LIBS="$ac_save_LIBS"
7502# We can link X programs with no special library path.
7503ac_x_libraries=
7504else
7505 echo "configure: failed program was:" >&5
7506 cat conftest.$ac_ext >&5
7507 rm -rf conftest*
7508 LIBS="$ac_save_LIBS"
7509# First see if replacing the include by lib works.
7510# Check X11 before X11Rn because it is often a symlink to the current release.
7511for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
7512 /usr/X11/lib \
7513 /usr/X11R6/lib \
7514 /usr/X11R5/lib \
7515 /usr/X11R4/lib \
7516 \
7517 /usr/lib/X11 \
7518 /usr/lib/X11R6 \
7519 /usr/lib/X11R5 \
7520 /usr/lib/X11R4 \
7521 \
7522 /usr/local/X11/lib \
7523 /usr/local/X11R6/lib \
7524 /usr/local/X11R5/lib \
7525 /usr/local/X11R4/lib \
7526 \
7527 /usr/local/lib/X11 \
7528 /usr/local/lib/X11R6 \
7529 /usr/local/lib/X11R5 \
7530 /usr/local/lib/X11R4 \
7531 \
7532 /usr/X386/lib \
7533 /usr/x386/lib \
7534 /usr/XFree86/lib/X11 \
7535 \
7536 /usr/lib \
7537 /usr/local/lib \
7538 /usr/unsupported/lib \
7539 /usr/athena/lib \
7540 /usr/local/x11r5/lib \
7541 /usr/lpp/Xamples/lib \
7542 /lib/usr/lib/X11 \
7543 \
7544 /usr/openwin/lib \
7545 /usr/openwin/share/lib \
7546 ; \
7547do
7548 for ac_extension in a so sl; do
7549 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
7550 ac_x_libraries=$ac_dir
7551 break 2
7552 fi
7553 done
7554done
7555fi
7556rm -f conftest*
7557fi # $ac_x_libraries = NO
7558
7559if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
7560 # Didn't find X anywhere. Cache the known absence of X.
7561 ac_cv_have_x="have_x=no"
7562else
7563 # Record where we found X for the cache.
7564 ac_cv_have_x="have_x=yes \
7565 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
7566fi
7567fi
7568 fi
7569 eval "$ac_cv_have_x"
7570fi # $with_x != no
7571
7572if test "$have_x" != yes; then
7573 echo "$ac_t""$have_x" 1>&6
7574 no_x=yes
7575else
7576 # If each of the values was on the command line, it overrides each guess.
7577 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
7578 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
7579 # Update the cache value to reflect the command line values.
7580 ac_cv_have_x="have_x=yes \
7581 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
7582 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
7583fi
7584
7585if test "$no_x" = yes; then
7586 # Not all programs may use this symbol, but it does not hurt to define it.
7587 cat >> confdefs.h <<\EOF
7588#define X_DISPLAY_MISSING 1
7589EOF
7590
7591 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
7592else
7593 if test -n "$x_includes"; then
7594 X_CFLAGS="$X_CFLAGS -I$x_includes"
7595 fi
7596
7597 # It would also be nice to do this for all -L options, not just this one.
7598 if test -n "$x_libraries"; then
7599 X_LIBS="$X_LIBS -L$x_libraries"
7600 # For Solaris; some versions of Sun CC require a space after -R and
7601 # others require no space. Words are not sufficient . . . .
7602 case "`(uname -sr) 2>/dev/null`" in
7603 "SunOS 5"*)
7604 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
7605echo "configure:7606: checking whether -R must be followed by a space" >&5
7606 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
7607 cat > conftest.$ac_ext <<EOF
7608#line 7609 "configure"
7609#include "confdefs.h"
7610
7611int main() {
7612
7613; return 0; }
7614EOF
7615if { (eval echo configure:7616: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7616 rm -rf conftest*
7617 ac_R_nospace=yes
7618else
7619 echo "configure: failed program was:" >&5
7620 cat conftest.$ac_ext >&5
7621 rm -rf conftest*
7622 ac_R_nospace=no
7623fi
7624rm -f conftest*
7625 if test $ac_R_nospace = yes; then
7626 echo "$ac_t""no" 1>&6
7627 X_LIBS="$X_LIBS -R$x_libraries"
7628 else
7629 LIBS="$ac_xsave_LIBS -R $x_libraries"
7630 cat > conftest.$ac_ext <<EOF
7631#line 7632 "configure"
7632#include "confdefs.h"
7633
7634int main() {
7635
7636; return 0; }
7637EOF
7638if { (eval echo configure:7639: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7639 rm -rf conftest*
7640 ac_R_space=yes
7641else
7642 echo "configure: failed program was:" >&5
7643 cat conftest.$ac_ext >&5
7644 rm -rf conftest*
7645 ac_R_space=no
7646fi
7647rm -f conftest*
7648 if test $ac_R_space = yes; then
7649 echo "$ac_t""yes" 1>&6
7650 X_LIBS="$X_LIBS -R $x_libraries"
7651 else
7652 echo "$ac_t""neither works" 1>&6
7653 fi
7654 fi
7655 LIBS="$ac_xsave_LIBS"
7656 esac
7657 fi
7658
7659 # Check for system-dependent libraries X programs must link with.
7660 # Do this before checking for the system-independent R6 libraries
7661 # (-lICE), since we may need -lsocket or whatever for X linking.
7662
7663 if test "$ISC" = yes; then
7664 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
7665 else
7666 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
7667 # libraries were built with DECnet support. And karl@cs.umb.edu says
7668 # the Alpha needs dnet_stub (dnet does not exist).
7669 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
7670echo "configure:7671: checking for dnet_ntoa in -ldnet" >&5
7671ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
7672if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7673 echo $ac_n "(cached) $ac_c" 1>&6
7674else
7675 ac_save_LIBS="$LIBS"
7676LIBS="-ldnet $LIBS"
7677cat > conftest.$ac_ext <<EOF
7678#line 7679 "configure"
7679#include "confdefs.h"
7680/* Override any gcc2 internal prototype to avoid an error. */
7681/* We use char because int might match the return type of a gcc2
7682 builtin and then its argument prototype would still apply. */
7683char dnet_ntoa();
7684
7685int main() {
7686dnet_ntoa()
7687; return 0; }
7688EOF
7689if { (eval echo configure:7690: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7690 rm -rf conftest*
7691 eval "ac_cv_lib_$ac_lib_var=yes"
7692else
7693 echo "configure: failed program was:" >&5
7694 cat conftest.$ac_ext >&5
7695 rm -rf conftest*
7696 eval "ac_cv_lib_$ac_lib_var=no"
7697fi
7698rm -f conftest*
7699LIBS="$ac_save_LIBS"
7700
7701fi
7702if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7703 echo "$ac_t""yes" 1>&6
7704 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
7705else
7706 echo "$ac_t""no" 1>&6
7707fi
7708
7709 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
7710 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
7711echo "configure:7712: checking for dnet_ntoa in -ldnet_stub" >&5
7712ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
7713if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7714 echo $ac_n "(cached) $ac_c" 1>&6
7715else
7716 ac_save_LIBS="$LIBS"
7717LIBS="-ldnet_stub $LIBS"
7718cat > conftest.$ac_ext <<EOF
7719#line 7720 "configure"
7720#include "confdefs.h"
7721/* Override any gcc2 internal prototype to avoid an error. */
7722/* We use char because int might match the return type of a gcc2
7723 builtin and then its argument prototype would still apply. */
7724char dnet_ntoa();
7725
7726int main() {
7727dnet_ntoa()
7728; return 0; }
7729EOF
7730if { (eval echo configure:7731: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7731 rm -rf conftest*
7732 eval "ac_cv_lib_$ac_lib_var=yes"
7733else
7734 echo "configure: failed program was:" >&5
7735 cat conftest.$ac_ext >&5
7736 rm -rf conftest*
7737 eval "ac_cv_lib_$ac_lib_var=no"
7738fi
7739rm -f conftest*
7740LIBS="$ac_save_LIBS"
7741
7742fi
7743if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7744 echo "$ac_t""yes" 1>&6
7745 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
7746else
7747 echo "$ac_t""no" 1>&6
7748fi
7749
7750 fi
7751
7752 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
7753 # to get the SysV transport functions.
7754 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
7755 # needs -lnsl.
7756 # The nsl library prevents programs from opening the X display
7757 # on Irix 5.2, according to dickey@clark.net.
7758 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
7759echo "configure:7760: checking for gethostbyname" >&5
7760if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
7761 echo $ac_n "(cached) $ac_c" 1>&6
7762else
7763 cat > conftest.$ac_ext <<EOF
7764#line 7765 "configure"
7765#include "confdefs.h"
7766/* System header to define __stub macros and hopefully few prototypes,
7767 which can conflict with char gethostbyname(); below. */
7768#include <assert.h>
7769/* Override any gcc2 internal prototype to avoid an error. */
7770/* We use char because int might match the return type of a gcc2
7771 builtin and then its argument prototype would still apply. */
7772char gethostbyname();
7773
7774int main() {
7775
7776/* The GNU C library defines this for functions which it implements
7777 to always fail with ENOSYS. Some functions are actually named
7778 something starting with __ and the normal name is an alias. */
7779#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
7780choke me
7781#else
7782gethostbyname();
7783#endif
7784
7785; return 0; }
7786EOF
7787if { (eval echo configure:7788: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7788 rm -rf conftest*
7789 eval "ac_cv_func_gethostbyname=yes"
7790else
7791 echo "configure: failed program was:" >&5
7792 cat conftest.$ac_ext >&5
7793 rm -rf conftest*
7794 eval "ac_cv_func_gethostbyname=no"
7795fi
7796rm -f conftest*
7797fi
7798
7799if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
7800 echo "$ac_t""yes" 1>&6
7801 :
7802else
7803 echo "$ac_t""no" 1>&6
7804fi
7805
7806 if test $ac_cv_func_gethostbyname = no; then
7807 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
7808echo "configure:7809: checking for gethostbyname in -lnsl" >&5
7809ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
7810if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7811 echo $ac_n "(cached) $ac_c" 1>&6
7812else
7813 ac_save_LIBS="$LIBS"
7814LIBS="-lnsl $LIBS"
7815cat > conftest.$ac_ext <<EOF
7816#line 7817 "configure"
7817#include "confdefs.h"
7818/* Override any gcc2 internal prototype to avoid an error. */
7819/* We use char because int might match the return type of a gcc2
7820 builtin and then its argument prototype would still apply. */
7821char gethostbyname();
7822
7823int main() {
7824gethostbyname()
7825; return 0; }
7826EOF
7827if { (eval echo configure:7828: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7828 rm -rf conftest*
7829 eval "ac_cv_lib_$ac_lib_var=yes"
7830else
7831 echo "configure: failed program was:" >&5
7832 cat conftest.$ac_ext >&5
7833 rm -rf conftest*
7834 eval "ac_cv_lib_$ac_lib_var=no"
7835fi
7836rm -f conftest*
7837LIBS="$ac_save_LIBS"
7838
7839fi
7840if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7841 echo "$ac_t""yes" 1>&6
7842 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
7843else
7844 echo "$ac_t""no" 1>&6
7845fi
7846
7847 fi
7848
7849 # lieder@skyler.mavd.honeywell.com says without -lsocket,
7850 # socket/setsockopt and other routines are undefined under SCO ODT
7851 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
7852 # on later versions), says simon@lia.di.epfl.ch: it contains
7853 # gethostby* variants that don't use the nameserver (or something).
7854 # -lsocket must be given before -lnsl if both are needed.
7855 # We assume that if connect needs -lnsl, so does gethostbyname.
7856 echo $ac_n "checking for connect""... $ac_c" 1>&6
7857echo "configure:7858: checking for connect" >&5
7858if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
7859 echo $ac_n "(cached) $ac_c" 1>&6
7860else
7861 cat > conftest.$ac_ext <<EOF
7862#line 7863 "configure"
7863#include "confdefs.h"
7864/* System header to define __stub macros and hopefully few prototypes,
7865 which can conflict with char connect(); below. */
7866#include <assert.h>
7867/* Override any gcc2 internal prototype to avoid an error. */
7868/* We use char because int might match the return type of a gcc2
7869 builtin and then its argument prototype would still apply. */
7870char connect();
7871
7872int main() {
7873
7874/* The GNU C library defines this for functions which it implements
7875 to always fail with ENOSYS. Some functions are actually named
7876 something starting with __ and the normal name is an alias. */
7877#if defined (__stub_connect) || defined (__stub___connect)
7878choke me
7879#else
7880connect();
7881#endif
7882
7883; return 0; }
7884EOF
7885if { (eval echo configure:7886: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7886 rm -rf conftest*
7887 eval "ac_cv_func_connect=yes"
7888else
7889 echo "configure: failed program was:" >&5
7890 cat conftest.$ac_ext >&5
7891 rm -rf conftest*
7892 eval "ac_cv_func_connect=no"
7893fi
7894rm -f conftest*
7895fi
7896
7897if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
7898 echo "$ac_t""yes" 1>&6
7899 :
7900else
7901 echo "$ac_t""no" 1>&6
7902fi
7903
7904 if test $ac_cv_func_connect = no; then
7905 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
7906echo "configure:7907: checking for connect in -lsocket" >&5
7907ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
7908if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7909 echo $ac_n "(cached) $ac_c" 1>&6
7910else
7911 ac_save_LIBS="$LIBS"
7912LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
7913cat > conftest.$ac_ext <<EOF
7914#line 7915 "configure"
7915#include "confdefs.h"
7916/* Override any gcc2 internal prototype to avoid an error. */
7917/* We use char because int might match the return type of a gcc2
7918 builtin and then its argument prototype would still apply. */
7919char connect();
7920
7921int main() {
7922connect()
7923; return 0; }
7924EOF
7925if { (eval echo configure:7926: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7926 rm -rf conftest*
7927 eval "ac_cv_lib_$ac_lib_var=yes"
7928else
7929 echo "configure: failed program was:" >&5
7930 cat conftest.$ac_ext >&5
7931 rm -rf conftest*
7932 eval "ac_cv_lib_$ac_lib_var=no"
7933fi
7934rm -f conftest*
7935LIBS="$ac_save_LIBS"
7936
7937fi
7938if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7939 echo "$ac_t""yes" 1>&6
7940 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
7941else
7942 echo "$ac_t""no" 1>&6
7943fi
7944
7945 fi
7946
7947 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
7948 echo $ac_n "checking for remove""... $ac_c" 1>&6
7949echo "configure:7950: checking for remove" >&5
7950if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
7951 echo $ac_n "(cached) $ac_c" 1>&6
7952else
7953 cat > conftest.$ac_ext <<EOF
7954#line 7955 "configure"
7955#include "confdefs.h"
7956/* System header to define __stub macros and hopefully few prototypes,
7957 which can conflict with char remove(); below. */
7958#include <assert.h>
7959/* Override any gcc2 internal prototype to avoid an error. */
7960/* We use char because int might match the return type of a gcc2
7961 builtin and then its argument prototype would still apply. */
7962char remove();
7963
7964int main() {
7965
7966/* The GNU C library defines this for functions which it implements
7967 to always fail with ENOSYS. Some functions are actually named
7968 something starting with __ and the normal name is an alias. */
7969#if defined (__stub_remove) || defined (__stub___remove)
7970choke me
7971#else
7972remove();
7973#endif
7974
7975; return 0; }
7976EOF
7977if { (eval echo configure:7978: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7978 rm -rf conftest*
7979 eval "ac_cv_func_remove=yes"
7980else
7981 echo "configure: failed program was:" >&5
7982 cat conftest.$ac_ext >&5
7983 rm -rf conftest*
7984 eval "ac_cv_func_remove=no"
7985fi
7986rm -f conftest*
7987fi
7988
7989if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
7990 echo "$ac_t""yes" 1>&6
7991 :
7992else
7993 echo "$ac_t""no" 1>&6
7994fi
7995
7996 if test $ac_cv_func_remove = no; then
7997 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
7998echo "configure:7999: checking for remove in -lposix" >&5
7999ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
8000if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8001 echo $ac_n "(cached) $ac_c" 1>&6
8002else
8003 ac_save_LIBS="$LIBS"
8004LIBS="-lposix $LIBS"
8005cat > conftest.$ac_ext <<EOF
8006#line 8007 "configure"
8007#include "confdefs.h"
8008/* Override any gcc2 internal prototype to avoid an error. */
8009/* We use char because int might match the return type of a gcc2
8010 builtin and then its argument prototype would still apply. */
8011char remove();
8012
8013int main() {
8014remove()
8015; return 0; }
8016EOF
8017if { (eval echo configure:8018: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8018 rm -rf conftest*
8019 eval "ac_cv_lib_$ac_lib_var=yes"
8020else
8021 echo "configure: failed program was:" >&5
8022 cat conftest.$ac_ext >&5
8023 rm -rf conftest*
8024 eval "ac_cv_lib_$ac_lib_var=no"
8025fi
8026rm -f conftest*
8027LIBS="$ac_save_LIBS"
8028
8029fi
8030if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8031 echo "$ac_t""yes" 1>&6
8032 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
8033else
8034 echo "$ac_t""no" 1>&6
8035fi
8036
8037 fi
8038
8039 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
8040 echo $ac_n "checking for shmat""... $ac_c" 1>&6
8041echo "configure:8042: checking for shmat" >&5
8042if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
8043 echo $ac_n "(cached) $ac_c" 1>&6
8044else
8045 cat > conftest.$ac_ext <<EOF
8046#line 8047 "configure"
8047#include "confdefs.h"
8048/* System header to define __stub macros and hopefully few prototypes,
8049 which can conflict with char shmat(); below. */
8050#include <assert.h>
8051/* Override any gcc2 internal prototype to avoid an error. */
8052/* We use char because int might match the return type of a gcc2
8053 builtin and then its argument prototype would still apply. */
8054char shmat();
8055
8056int main() {
8057
8058/* The GNU C library defines this for functions which it implements
8059 to always fail with ENOSYS. Some functions are actually named
8060 something starting with __ and the normal name is an alias. */
8061#if defined (__stub_shmat) || defined (__stub___shmat)
8062choke me
8063#else
8064shmat();
8065#endif
8066
8067; return 0; }
8068EOF
8069if { (eval echo configure:8070: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8070 rm -rf conftest*
8071 eval "ac_cv_func_shmat=yes"
8072else
8073 echo "configure: failed program was:" >&5
8074 cat conftest.$ac_ext >&5
8075 rm -rf conftest*
8076 eval "ac_cv_func_shmat=no"
8077fi
8078rm -f conftest*
8079fi
8080
8081if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
8082 echo "$ac_t""yes" 1>&6
8083 :
8084else
8085 echo "$ac_t""no" 1>&6
8086fi
8087
8088 if test $ac_cv_func_shmat = no; then
8089 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
8090echo "configure:8091: checking for shmat in -lipc" >&5
8091ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
8092if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8093 echo $ac_n "(cached) $ac_c" 1>&6
8094else
8095 ac_save_LIBS="$LIBS"
8096LIBS="-lipc $LIBS"
8097cat > conftest.$ac_ext <<EOF
8098#line 8099 "configure"
8099#include "confdefs.h"
8100/* Override any gcc2 internal prototype to avoid an error. */
8101/* We use char because int might match the return type of a gcc2
8102 builtin and then its argument prototype would still apply. */
8103char shmat();
8104
8105int main() {
8106shmat()
8107; return 0; }
8108EOF
8109if { (eval echo configure:8110: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8110 rm -rf conftest*
8111 eval "ac_cv_lib_$ac_lib_var=yes"
8112else
8113 echo "configure: failed program was:" >&5
8114 cat conftest.$ac_ext >&5
8115 rm -rf conftest*
8116 eval "ac_cv_lib_$ac_lib_var=no"
8117fi
8118rm -f conftest*
8119LIBS="$ac_save_LIBS"
8120
8121fi
8122if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8123 echo "$ac_t""yes" 1>&6
8124 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
8125else
8126 echo "$ac_t""no" 1>&6
8127fi
8128
8129 fi
8130 fi
8131
8132 # Check for libraries that X11R6 Xt/Xaw programs need.
8133 ac_save_LDFLAGS="$LDFLAGS"
8134 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
8135 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
8136 # check for ICE first), but we must link in the order -lSM -lICE or
8137 # we get undefined symbols. So assume we have SM if we have ICE.
8138 # These have to be linked with before -lX11, unlike the other
8139 # libraries we check for below, so use a different variable.
8140 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
8141 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
8142echo "configure:8143: checking for IceConnectionNumber in -lICE" >&5
8143ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
8144if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8145 echo $ac_n "(cached) $ac_c" 1>&6
8146else
8147 ac_save_LIBS="$LIBS"
8148LIBS="-lICE $X_EXTRA_LIBS $LIBS"
8149cat > conftest.$ac_ext <<EOF
8150#line 8151 "configure"
8151#include "confdefs.h"
8152/* Override any gcc2 internal prototype to avoid an error. */
8153/* We use char because int might match the return type of a gcc2
8154 builtin and then its argument prototype would still apply. */
8155char IceConnectionNumber();
8156
8157int main() {
8158IceConnectionNumber()
8159; return 0; }
8160EOF
8161if { (eval echo configure:8162: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8162 rm -rf conftest*
8163 eval "ac_cv_lib_$ac_lib_var=yes"
8164else
8165 echo "configure: failed program was:" >&5
8166 cat conftest.$ac_ext >&5
8167 rm -rf conftest*
8168 eval "ac_cv_lib_$ac_lib_var=no"
8169fi
8170rm -f conftest*
8171LIBS="$ac_save_LIBS"
8172
8173fi
8174if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8175 echo "$ac_t""yes" 1>&6
8176 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
8177else
8178 echo "$ac_t""no" 1>&6
8179fi
8180
8181 LDFLAGS="$ac_save_LDFLAGS"
8182
8183fi
8184
8185
8186 if test "$no_x" = "yes"; then
8187 { echo "configure: error: X11 not found" 1>&2; exit 1; }
8188 fi
8189
8190 GUI_TK_LIBRARY="$X_LIBS"
8191 TOOLKIT_INCLUDE="$X_CFLAGS"
8192
8193 AFMINSTALL=afminstall
8194
8195
8196 COMPILED_X_PROGRAM=0
8197
8198 echo $ac_n "checking for Motif/Lesstif headers""... $ac_c" 1>&6
8199echo "configure:8200: checking for Motif/Lesstif headers" >&5
8200
8201ac_find_includes=
8202for ac_dir in $SEARCH_INCLUDE;
8203 do
8204 if test -f "$ac_dir/Xm/Xm.h"; then
8205 ac_find_includes=$ac_dir
8206 break
8207 fi
8208 done
8209
8210 if test "$ac_find_includes" != "" ; then
8211 echo "$ac_t""found $ac_find_includes" 1>&6
8212 else
8213 cat > conftest.$ac_ext <<EOF
8214#line 8215 "configure"
8215#include "confdefs.h"
8216
8217 #include <Xm/Xm.h>
8218
8219int main() {
8220
8221 int version;
8222
8223 version = xmUseVersion;
8224
8225; return 0; }
8226EOF
8227if { (eval echo configure:8228: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8228 rm -rf conftest*
8229
8230 echo "$ac_t""found in default search path" 1>&6
8231 COMPILED_X_PROGRAM=1
8232
8233else
8234 echo "configure: failed program was:" >&5
8235 cat conftest.$ac_ext >&5
8236 rm -rf conftest*
8237
8238 echo "$ac_t""no" 1>&6
8239 { echo "configure: error: please set CFLAGS to contain the location of Xm/Xm.h" 1>&2; exit 1; }
8240
8241
8242fi
8243rm -f conftest*
8244 fi
8245
8246 if test "$COMPILED_X_PROGRAM" = 0; then
8247 echo $ac_n "checking for Motif/Lesstif library""... $ac_c" 1>&6
8248echo "configure:8249: checking for Motif/Lesstif library" >&5
8249
8250ac_find_libraries=
8251for ac_dir in $SEARCH_LIB;
8252 do
8253 for ac_extension in a so sl; do
8254 if test -f "$ac_dir/libXm.$ac_extension"; then
8255 ac_find_libraries=$ac_dir
8256 break 2
8257 fi
8258 done
8259 done
8260
8261 if test "$ac_find_libraries" != "" ; then
8262
8263 ac_path_to_include=$ac_find_includes
8264 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
8265 result=$?
8266 if test $result = 0; then
8267 ac_path_to_include=""
8268 else
8269 ac_path_to_include="-I$ac_find_includes"
8270 fi
8271
8272
8273 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
8274 result=$?
8275 if test $result = 0; then
8276 ac_path_to_link=""
8277 else
8278 ac_path_to_link="-L$ac_find_libraries"
8279 fi
8280
8281
8282 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $ac_path_to_link"
8283 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE $ac_path_to_include"
8284 echo "$ac_t""found at $ac_find_libraries" 1>&6
8285 else
8286 cat > conftest.$ac_ext <<EOF
8287#line 8288 "configure"
8288#include "confdefs.h"
8289
8290 #include <Xm/Xm.h>
8291
8292int main() {
8293
8294 int version;
8295
8296 version = xmUseVersion;
8297
8298; return 0; }
8299EOF
8300if { (eval echo configure:8301: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8301 rm -rf conftest*
8302
8303 echo "$ac_t""found in default search path" 1>&6
8304 COMPILED_X_PROGRAM=1
8305
8306else
8307 echo "configure: failed program was:" >&5
8308 cat conftest.$ac_ext >&5
8309 rm -rf conftest*
8310
8311 echo "$ac_t""no" 1>&6
8312 { echo "configure: error: please set LDFLAGS to contain the location of libXm" 1>&2; exit 1; }
8313
8314
8315fi
8316rm -f conftest*
8317 fi
8318 fi
8319
8320
8321 XPM_LINK=""
8322 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
8323echo "configure:8324: checking for Xpm library" >&5
8324
8325ac_find_libraries=
8326for ac_dir in $SEARCH_LIB;
8327 do
8328 for ac_extension in a so sl; do
8329 if test -f "$ac_dir/libXpm.$ac_extension"; then
8330 ac_find_libraries=$ac_dir
8331 break 2
8332 fi
8333 done
8334 done
8335
8336 if test "$ac_find_libraries" != "" ; then
8337
8338 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
8339 result=$?
8340 if test $result = 0; then
8341 ac_path_to_link=""
8342 else
8343 ac_path_to_link="-L$ac_find_libraries"
8344 fi
8345
8346 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $ac_path_to_link"
8347 XPM_LINK="-lXpm "
8348 cat >> confdefs.h <<\EOF
8349#define wxHAVE_LIB_XPM 1
8350EOF
8351
8352 echo "$ac_t""found at $ac_find_libraries" 1>&6
8353 else
8354 cat > conftest.$ac_ext <<EOF
8355#line 8356 "configure"
8356#include "confdefs.h"
8357
8358 #include <X11/xpm.h>
8359
8360int main() {
8361
8362 int version;
8363
8364 version = XpmLibraryVersion();
8365
8366; return 0; }
8367EOF
8368if { (eval echo configure:8369: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8369 rm -rf conftest*
8370
8371 XPM_LINK="-lXpm "
8372 cat >> confdefs.h <<\EOF
8373#define wxHAVE_LIB_XPM 1
8374EOF
8375
8376 echo "$ac_t""found in default search path" 1>&6
8377 COMPILED_X_PROGRAM=0
8378
8379else
8380 echo "configure: failed program was:" >&5
8381 cat conftest.$ac_ext >&5
8382 rm -rf conftest*
8383
8384 echo "$ac_t""no" 1>&6
8385 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
8386
8387
8388fi
8389rm -f conftest*
8390 fi
8391
8392 GUI_TK_LINK="-lXm $XPM_LINK -lXmu -lXext -lXt -lX11 -lm"
8393 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $GUI_TK_LINK"
8394 TOOLKIT=MOTIF
8395
8396 GUIHEADERS="\$(MOTIF_HEADERS)"
8397 GUIOBJS="\$(MOTIF_GUIOBJS)"
8398 COMMONOBJS="\$(MOTIF_COMMONOBJS)"
8399 GENERICOBJS="\$(MOTIF_GENERICOBJS)"
8400 GUIDEPS="\$(MOTIF_GUIDEPS)"
8401 COMMONDEPS="\$(MOTIF_COMMONDEPS)"
8402 GENERICDEPS="\$(MOTIF_GENERICDEPS)"
8403 UNIXOBJS="\$(UNIX_OBJS)"
8404 UNIXDEPS="\$(UNIX_DEPS)"
8405 GUIDIST=MOTIF_DIST
8406fi
8407
8408if test "$wxUSE_PM" = 1; then
8409 TOOLKIT=PM
8410
8411 GUIOBJS="\$(PM_GUIOBJS)"
8412 GUIHEADERS="\$(PM_HEADERS)"
8413 COMMONOBJS="\$(PM_COMMONOBJS)"
8414 GENERICOBJS="\$(PM_GENERICOBJS)"
8415 GUIDEPS="\$(PM_GUIDEPS)"
8416 COMMONDEPS="\$(PM_COMMONDEPS)"
8417 GENERICDEPS="\$(PM_GENERICDEPS)"
8418 UNIXOBJS=
8419 UNIXDEPS=
8420 GUIDIST=GTK_DIST
8421fi
8422
8423if test "$TOOLKIT" != "PM" ; then
8424 TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
8425else
8426 TOOLKIT_DIR="os2"
8427fi
8428
8429 TOOLKIT_DEF="-D__WX${TOOLKIT}__"
8430
8431 WX_LIBRARY="wx_${TOOLKIT_DIR}"
8432
8433 ALL_OBJECTS="\$(GUIOBJS) \$(COMMONOBJS) \$(GENERICOBJS) \$(UNIXOBJS) \$(HTMLOBJS) \$(OGLOBJS)"
8434
8435 if test "$TOOLKIT" != "MSW"; then
8436 if test "$wxUSE_ODBC" = "yes" ; then
8437 ALL_OBJECTS="${ALL_OBJECTS} \$(IODBCOBJS)"
8438 fi
8439 fi
8440
8441 if test "$wxUSE_LIBJPEG" = "yes" ; then
8442 ALL_OBJECTS="${ALL_OBJECTS} \$(JPEGOBJS)"
8443 fi
8444 if test "$wxUSE_LIBTIFF" = "yes" ; then
8445 ALL_OBJECTS="${ALL_OBJECTS} \$(TIFFOBJS)"
8446 fi
8447 if test "$wxUSE_LIBPNG" = "yes" ; then
8448 ALL_OBJECTS="${ALL_OBJECTS} \$(PNGOBJS)"
8449 fi
8450 if test "$wxUSE_ZLIB" = "yes" ; then
8451 ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)"
8452 fi
8453 ALL_DEPFILES="\$(GUIDEPS) \$(COMMONDEPS) \$(GENERICDEPS) \$(UNIXDEPS) \$(HTMLDEPS) \$(OGLDEPS)"
8454
8455 PORT_FILES="src/\$(TOOLKITDIR)/files.lst"
8456 RPM_FILES="src/\$(TOOLKITDIR)/rpmfiles.lst"
8457 RPM_SPEC="wx\$(TOOLKIT).spec"
8458
8459 GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
8460 DISTDIR="wx\$(TOOLKIT)"
8461else
8462 USE_GUI=0
8463
8464 TOOLKIT_DIR="base"
8465 TOOLKIT_DEF="-D__WXBASE__"
8466
8467 ALL_OBJECTS="\$(BASE_OBJS) \${BASE_UNIX_OBJS}"
8468 ALL_DEPFILES="\${BASE_DEPS} \${BASE_UNIX_DEPS}"
8469
8470 WX_LIBRARY="wxbase"
8471
8472 PORT_FILES="src/files.lst"
8473 RPM_FILES="src/rpmfiles.lst"
8474 RPM_SPEC="wxBase.spec"
8475
8476 GUIDIST="BASE_DIST"
8477 DISTDIR="wxBase"
8478fi
8479
8480WX_LIBRARY_NAME="lib${WX_LIBRARY}.la"
8481WX_LIBRARY_NAME_GL="lib${WX_LIBRARY}_gl.la"
8482
8483WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a"
8484WX_LIBRARY_NAME_STATIC_GL="lib${WX_LIBRARY}_gl.a"
8485
8486WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}-${WX_RELEASE}.so.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
8487WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.so.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
8488
8489WX_LIBRARY_LINK1="lib${WX_LIBRARY}-${WX_RELEASE}.so.${WX_CURRENT}"
8490WX_LIBRARY_LINK2="lib${WX_LIBRARY}-${WX_RELEASE}.so"
8491WX_LIBRARY_LINK3="lib${WX_LIBRARY}.so"
8492WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.so.${WX_CURRENT}"
8493WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.so"
8494WX_LIBRARY_LINK3_GL="lib${WX_LIBRARY}_gl.so"
8495
8496SHARED_LD=
8497PIC_FLAG=
8498WX_ALL=
8499WX_ALL_INSTALLED=
8500BURNT_LIBRARY_NAME=
8501
8502
8503if test "$wxUSE_SHARED" = "yes"; then
8504 case "${host}" in
8505 *-hp-hpux* )
8506 if test "$GCC" = yes ; then
8507 SHARED_LD="${CC} -shared -fPIC -o"
8508 PIC_FLAG="-fPIC"
8509 else
8510 SHARED_LD="${CXX} -b -o"
8511 PIC_FLAG="+Z"
8512 fi
8513 WX_LIBRARY_NAME_SHARED="libwx_${TOOLKIT_DIR}.sl"
8514 WX_LIBRARY_NAME_SHARED_GL="libwx_${TOOLKIT_DIR}_gl.sl"
8515 if test "$wxUSE_OPENGL" = "yes"; then
8516 WX_ALL="${WX_LIBRARY_NAME_SHARED} ${WX_LIBRARY_NAME_SHARED_GL}"
8517 else
8518 WX_ALL="${WX_LIBRARY_NAME_SHARED}"
8519 fi
8520 ;;
8521
8522 *-*-linux* )
8523 SHARED_LD="${CC} -shared -o"
8524 PIC_FLAG="-fPIC"
8525 if test "$wxUSE_BURNT_NAME" = "yes" ; then
8526 BURNT_LIBRARY_NAME="-Wl,-soname,${WX_LIBRARY_LINK1}"
8527 BURNT_LIBRARY_NAME_GL="-Wl,-soname,${WX_LIBRARY_LINK1_GL}"
8528 fi
8529 if test "$wxUSE_OPENGL" = "yes"; then
8530 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
8531 WX_ALL="CREATE_LINKS CREATE_LINKS_GL"
8532 else
8533 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
8534 WX_ALL="CREATE_LINKS"
8535 fi
8536 ;;
8537 *-*-irix5* | *-*-irix6* )
8538 if test "$GCC" = yes ; then
8539 SHARED_LD="${CC} -shared -o"
8540 PIC_FLAG="-fPIC"
8541 else
8542 SHARED_LD="${CXX} -shared -o"
8543 fi
8544 if test "$wxUSE_OPENGL" = "yes"; then
8545 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
8546 WX_ALL="CREATE_LINKS CREATE_LINKS_GL"
8547 else
8548 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
8549 WX_ALL="CREATE_LINKS"
8550 fi
8551 ;;
8552 *-*-solaris2* )
8553 if test "$GCC" = yes ; then
8554 SHARED_LD="${CC} -shared -o"
8555 PIC_FLAG="-fPIC"
8556 else
8557 SHARED_LD="${CXX} -G -o"
8558 PIC_FLAG="-KPIC"
8559 fi
8560 if test "$wxUSE_OPENGL" = "yes"; then
8561 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
8562 WX_ALL="CREATE_LINKS CREATE_LINKS_GL"
8563 else
8564 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
8565 WX_ALL="CREATE_LINKS"
8566 fi
8567 ;;
8568 *-*-sunos4* )
8569 SHARED_LD="${CC} -shared -o"
8570 PIC_FLAG="-fPIC"
8571 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
8572 WX_ALL="CREATE_LINKS"
8573 ;;
8574 *-*-freebsd* | *-*-netbsd*)
8575 SHARED_LD="${CC} -shared -o"
8576 PIC_FLAG="-fPIC"
8577 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
8578 WX_ALL="CREATE_LINKS"
8579 ;;
8580 *-*-osf* )
8581 SHARED_LD="${CXX} -shared -o"
8582 PIC_FLAG="-fPIC"
8583 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
8584 WX_ALL="CREATE_LINKS"
8585 ;;
8586 *-*-dgux5* )
8587 SHARED_LD="${CXX} -shared -o"
8588 PIC_FLAG="-fPIC"
8589 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
8590 WX_ALL="CREATE_LINKS"
8591 ;;
8592 *-*-sysv5* )
8593 SHARED_LD="${CC} -shared -o"
8594 PIC_FLAG="-fPIC"
8595 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
8596 WX_ALL="CREATE_LINKS"
8597 ;;
8598 *-*-aix* )
8599 SHARED_LD="/usr/lpp/xlC/bin/makeC++SharedLib -p 0 -o"
8600 WX_ALL=${WX_LIBRARY_NAME_SHARED}
8601 ;;
8602 *-*-cygwin32* )
8603 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
8604 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}"
8605 WX_ALL="${WX_LIBRARY_NAME_STATIC}"
8606 ;;
8607 *-*-mingw32* )
8608 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
8609 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}"
8610 WX_ALL="${WX_LIBRARY_NAME_STATIC}"
8611 ;;
8612 *-pc-os2_emx )
8613 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
8614 WX_ALL="${WX_LIBRARY_NAME_STATIC}"
8615 ;;
8616 *-*-beos* )
8617 SHARED_LD="${LD} -shared -o"
8618 PIC_FLAG="-fPIC"
8619 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
8620 WX_ALL="CREATE_LINKS"
8621 ;;
8622 *)
8623 { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; }
8624 esac
8625
8626 if test "x$WX_TARGET_LIBRARY" = "x"; then
8627 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}"
8628 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_SHARED_GL}"
8629 fi
8630else
8631 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
8632 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}"
8633 WX_ALL="${WX_LIBRARY_NAME_STATIC}"
8634fi
8635
8636
8637for ac_hdr in strings.h
8638do
8639ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8640echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8641echo "configure:8642: checking for $ac_hdr" >&5
8642if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8643 echo $ac_n "(cached) $ac_c" 1>&6
8644else
8645 cat > conftest.$ac_ext <<EOF
8646#line 8647 "configure"
8647#include "confdefs.h"
8648#include <$ac_hdr>
8649EOF
8650ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8651{ (eval echo configure:8652: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8652ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8653if test -z "$ac_err"; then
8654 rm -rf conftest*
8655 eval "ac_cv_header_$ac_safe=yes"
8656else
8657 echo "$ac_err" >&5
8658 echo "configure: failed program was:" >&5
8659 cat conftest.$ac_ext >&5
8660 rm -rf conftest*
8661 eval "ac_cv_header_$ac_safe=no"
8662fi
8663rm -f conftest*
8664fi
8665if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8666 echo "$ac_t""yes" 1>&6
8667 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8668 cat >> confdefs.h <<EOF
8669#define $ac_tr_hdr 1
8670EOF
8671
8672else
8673 echo "$ac_t""no" 1>&6
8674fi
8675done
8676
8677for ac_hdr in unistd.h
8678do
8679ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8680echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8681echo "configure:8682: checking for $ac_hdr" >&5
8682if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8683 echo $ac_n "(cached) $ac_c" 1>&6
8684else
8685 cat > conftest.$ac_ext <<EOF
8686#line 8687 "configure"
8687#include "confdefs.h"
8688#include <$ac_hdr>
8689EOF
8690ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8691{ (eval echo configure:8692: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8692ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8693if test -z "$ac_err"; then
8694 rm -rf conftest*
8695 eval "ac_cv_header_$ac_safe=yes"
8696else
8697 echo "$ac_err" >&5
8698 echo "configure: failed program was:" >&5
8699 cat conftest.$ac_ext >&5
8700 rm -rf conftest*
8701 eval "ac_cv_header_$ac_safe=no"
8702fi
8703rm -f conftest*
8704fi
8705if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8706 echo "$ac_t""yes" 1>&6
8707 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8708 cat >> confdefs.h <<EOF
8709#define $ac_tr_hdr 1
8710EOF
8711
8712else
8713 echo "$ac_t""no" 1>&6
8714fi
8715done
8716
8717for ac_hdr in wchar.h
8718do
8719ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8720echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8721echo "configure:8722: checking for $ac_hdr" >&5
8722if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8723 echo $ac_n "(cached) $ac_c" 1>&6
8724else
8725 cat > conftest.$ac_ext <<EOF
8726#line 8727 "configure"
8727#include "confdefs.h"
8728#include <$ac_hdr>
8729EOF
8730ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8731{ (eval echo configure:8732: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8732ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8733if test -z "$ac_err"; then
8734 rm -rf conftest*
8735 eval "ac_cv_header_$ac_safe=yes"
8736else
8737 echo "$ac_err" >&5
8738 echo "configure: failed program was:" >&5
8739 cat conftest.$ac_ext >&5
8740 rm -rf conftest*
8741 eval "ac_cv_header_$ac_safe=no"
8742fi
8743rm -f conftest*
8744fi
8745if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8746 echo "$ac_t""yes" 1>&6
8747 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8748 cat >> confdefs.h <<EOF
8749#define $ac_tr_hdr 1
8750EOF
8751
8752else
8753 echo "$ac_t""no" 1>&6
8754fi
8755done
8756
8757for ac_hdr in wcstr.h
8758do
8759ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8760echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8761echo "configure:8762: checking for $ac_hdr" >&5
8762if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8763 echo $ac_n "(cached) $ac_c" 1>&6
8764else
8765 cat > conftest.$ac_ext <<EOF
8766#line 8767 "configure"
8767#include "confdefs.h"
8768#include <$ac_hdr>
8769EOF
8770ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8771{ (eval echo configure:8772: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8772ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8773if test -z "$ac_err"; then
8774 rm -rf conftest*
8775 eval "ac_cv_header_$ac_safe=yes"
8776else
8777 echo "$ac_err" >&5
8778 echo "configure: failed program was:" >&5
8779 cat conftest.$ac_ext >&5
8780 rm -rf conftest*
8781 eval "ac_cv_header_$ac_safe=no"
8782fi
8783rm -f conftest*
8784fi
8785if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8786 echo "$ac_t""yes" 1>&6
8787 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8788 cat >> confdefs.h <<EOF
8789#define $ac_tr_hdr 1
8790EOF
8791
8792else
8793 echo "$ac_t""no" 1>&6
8794fi
8795done
8796
8797for ac_hdr in fnmatch.h
8798do
8799ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8800echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8801echo "configure:8802: checking for $ac_hdr" >&5
8802if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8803 echo $ac_n "(cached) $ac_c" 1>&6
8804else
8805 cat > conftest.$ac_ext <<EOF
8806#line 8807 "configure"
8807#include "confdefs.h"
8808#include <$ac_hdr>
8809EOF
8810ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8811{ (eval echo configure:8812: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8812ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8813if test -z "$ac_err"; then
8814 rm -rf conftest*
8815 eval "ac_cv_header_$ac_safe=yes"
8816else
8817 echo "$ac_err" >&5
8818 echo "configure: failed program was:" >&5
8819 cat conftest.$ac_ext >&5
8820 rm -rf conftest*
8821 eval "ac_cv_header_$ac_safe=no"
8822fi
8823rm -f conftest*
8824fi
8825if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8826 echo "$ac_t""yes" 1>&6
8827 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8828 cat >> confdefs.h <<EOF
8829#define $ac_tr_hdr 1
8830EOF
8831
8832else
8833 echo "$ac_t""no" 1>&6
8834fi
8835done
8836
8837
8838if test "$wxUSE_GUI" = "yes"; then
8839 for ac_hdr in X11/XKBlib.h
8840do
8841ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8842echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8843echo "configure:8844: checking for $ac_hdr" >&5
8844if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8845 echo $ac_n "(cached) $ac_c" 1>&6
8846else
8847 cat > conftest.$ac_ext <<EOF
8848#line 8849 "configure"
8849#include "confdefs.h"
8850#include <$ac_hdr>
8851EOF
8852ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8853{ (eval echo configure:8854: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8854ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8855if test -z "$ac_err"; then
8856 rm -rf conftest*
8857 eval "ac_cv_header_$ac_safe=yes"
8858else
8859 echo "$ac_err" >&5
8860 echo "configure: failed program was:" >&5
8861 cat conftest.$ac_ext >&5
8862 rm -rf conftest*
8863 eval "ac_cv_header_$ac_safe=no"
8864fi
8865rm -f conftest*
8866fi
8867if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8868 echo "$ac_t""yes" 1>&6
8869 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8870 cat >> confdefs.h <<EOF
8871#define $ac_tr_hdr 1
8872EOF
8873
8874else
8875 echo "$ac_t""no" 1>&6
8876fi
8877done
8878
8879fi
8880
8881
8882echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
8883echo "configure:8884: checking for ANSI C header files" >&5
8884if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
8885 echo $ac_n "(cached) $ac_c" 1>&6
8886else
8887 cat > conftest.$ac_ext <<EOF
8888#line 8889 "configure"
8889#include "confdefs.h"
8890#include <stdlib.h>
8891#include <stdarg.h>
8892#include <string.h>
8893#include <float.h>
8894EOF
8895ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8896{ (eval echo configure:8897: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8897ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8898if test -z "$ac_err"; then
8899 rm -rf conftest*
8900 ac_cv_header_stdc=yes
8901else
8902 echo "$ac_err" >&5
8903 echo "configure: failed program was:" >&5
8904 cat conftest.$ac_ext >&5
8905 rm -rf conftest*
8906 ac_cv_header_stdc=no
8907fi
8908rm -f conftest*
8909
8910if test $ac_cv_header_stdc = yes; then
8911 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8912cat > conftest.$ac_ext <<EOF
8913#line 8914 "configure"
8914#include "confdefs.h"
8915#include <string.h>
8916EOF
8917if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8918 egrep "memchr" >/dev/null 2>&1; then
8919 :
8920else
8921 rm -rf conftest*
8922 ac_cv_header_stdc=no
8923fi
8924rm -f conftest*
8925
8926fi
8927
8928if test $ac_cv_header_stdc = yes; then
8929 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8930cat > conftest.$ac_ext <<EOF
8931#line 8932 "configure"
8932#include "confdefs.h"
8933#include <stdlib.h>
8934EOF
8935if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8936 egrep "free" >/dev/null 2>&1; then
8937 :
8938else
8939 rm -rf conftest*
8940 ac_cv_header_stdc=no
8941fi
8942rm -f conftest*
8943
8944fi
8945
8946if test $ac_cv_header_stdc = yes; then
8947 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8948if test "$cross_compiling" = yes; then
8949 :
8950else
8951 cat > conftest.$ac_ext <<EOF
8952#line 8953 "configure"
8953#include "confdefs.h"
8954#include <ctype.h>
8955#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8956#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8957#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8958int main () { int i; for (i = 0; i < 256; i++)
8959if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
8960exit (0); }
8961
8962EOF
8963if { (eval echo configure:8964: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8964then
8965 :
8966else
8967 echo "configure: failed program was:" >&5
8968 cat conftest.$ac_ext >&5
8969 rm -fr conftest*
8970 ac_cv_header_stdc=no
8971fi
8972rm -fr conftest*
8973fi
8974
8975fi
8976fi
8977
8978echo "$ac_t""$ac_cv_header_stdc" 1>&6
8979if test $ac_cv_header_stdc = yes; then
8980 cat >> confdefs.h <<\EOF
8981#define STDC_HEADERS 1
8982EOF
8983
8984fi
8985
8986echo $ac_n "checking for mode_t""... $ac_c" 1>&6
8987echo "configure:8988: checking for mode_t" >&5
8988if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
8989 echo $ac_n "(cached) $ac_c" 1>&6
8990else
8991 cat > conftest.$ac_ext <<EOF
8992#line 8993 "configure"
8993#include "confdefs.h"
8994#include <sys/types.h>
8995#if STDC_HEADERS
8996#include <stdlib.h>
8997#include <stddef.h>
8998#endif
8999EOF
9000if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9001 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
9002 rm -rf conftest*
9003 ac_cv_type_mode_t=yes
9004else
9005 rm -rf conftest*
9006 ac_cv_type_mode_t=no
9007fi
9008rm -f conftest*
9009
9010fi
9011echo "$ac_t""$ac_cv_type_mode_t" 1>&6
9012if test $ac_cv_type_mode_t = no; then
9013 cat >> confdefs.h <<\EOF
9014#define mode_t int
9015EOF
9016
9017fi
9018
9019echo $ac_n "checking for off_t""... $ac_c" 1>&6
9020echo "configure:9021: checking for off_t" >&5
9021if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
9022 echo $ac_n "(cached) $ac_c" 1>&6
9023else
9024 cat > conftest.$ac_ext <<EOF
9025#line 9026 "configure"
9026#include "confdefs.h"
9027#include <sys/types.h>
9028#if STDC_HEADERS
9029#include <stdlib.h>
9030#include <stddef.h>
9031#endif
9032EOF
9033if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9034 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
9035 rm -rf conftest*
9036 ac_cv_type_off_t=yes
9037else
9038 rm -rf conftest*
9039 ac_cv_type_off_t=no
9040fi
9041rm -f conftest*
9042
9043fi
9044echo "$ac_t""$ac_cv_type_off_t" 1>&6
9045if test $ac_cv_type_off_t = no; then
9046 cat >> confdefs.h <<\EOF
9047#define off_t long
9048EOF
9049
9050fi
9051
9052echo $ac_n "checking for pid_t""... $ac_c" 1>&6
9053echo "configure:9054: checking for pid_t" >&5
9054if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
9055 echo $ac_n "(cached) $ac_c" 1>&6
9056else
9057 cat > conftest.$ac_ext <<EOF
9058#line 9059 "configure"
9059#include "confdefs.h"
9060#include <sys/types.h>
9061#if STDC_HEADERS
9062#include <stdlib.h>
9063#include <stddef.h>
9064#endif
9065EOF
9066if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9067 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
9068 rm -rf conftest*
9069 ac_cv_type_pid_t=yes
9070else
9071 rm -rf conftest*
9072 ac_cv_type_pid_t=no
9073fi
9074rm -f conftest*
9075
9076fi
9077echo "$ac_t""$ac_cv_type_pid_t" 1>&6
9078if test $ac_cv_type_pid_t = no; then
9079 cat >> confdefs.h <<\EOF
9080#define pid_t int
9081EOF
9082
9083fi
9084
9085echo $ac_n "checking for size_t""... $ac_c" 1>&6
9086echo "configure:9087: checking for size_t" >&5
9087if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
9088 echo $ac_n "(cached) $ac_c" 1>&6
9089else
9090 cat > conftest.$ac_ext <<EOF
9091#line 9092 "configure"
9092#include "confdefs.h"
9093#include <sys/types.h>
9094#if STDC_HEADERS
9095#include <stdlib.h>
9096#include <stddef.h>
9097#endif
9098EOF
9099if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9100 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
9101 rm -rf conftest*
9102 ac_cv_type_size_t=yes
9103else
9104 rm -rf conftest*
9105 ac_cv_type_size_t=no
9106fi
9107rm -f conftest*
9108
9109fi
9110echo "$ac_t""$ac_cv_type_size_t" 1>&6
9111if test $ac_cv_type_size_t = no; then
9112 cat >> confdefs.h <<\EOF
9113#define size_t unsigned
9114EOF
9115
9116fi
9117
9118echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
9119echo "configure:9120: checking for uid_t in sys/types.h" >&5
9120if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
9121 echo $ac_n "(cached) $ac_c" 1>&6
9122else
9123 cat > conftest.$ac_ext <<EOF
9124#line 9125 "configure"
9125#include "confdefs.h"
9126#include <sys/types.h>
9127EOF
9128if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9129 egrep "uid_t" >/dev/null 2>&1; then
9130 rm -rf conftest*
9131 ac_cv_type_uid_t=yes
9132else
9133 rm -rf conftest*
9134 ac_cv_type_uid_t=no
9135fi
9136rm -f conftest*
9137
9138fi
9139
9140echo "$ac_t""$ac_cv_type_uid_t" 1>&6
9141if test $ac_cv_type_uid_t = no; then
9142 cat >> confdefs.h <<\EOF
9143#define uid_t int
9144EOF
9145
9146 cat >> confdefs.h <<\EOF
9147#define gid_t int
9148EOF
9149
9150fi
9151
9152
9153
9154echo $ac_n "checking for pw_gecos in struct passwd""... $ac_c" 1>&6
9155echo "configure:9156: checking for pw_gecos in struct passwd" >&5
9156if eval "test \"`echo '$''{'wx_cv_struct_pw_gecos'+set}'`\" = set"; then
9157 echo $ac_n "(cached) $ac_c" 1>&6
9158else
9159
9160 cat > conftest.$ac_ext <<EOF
9161#line 9162 "configure"
9162#include "confdefs.h"
9163#include <pwd.h>
9164int main() {
9165
9166 char *p;
9167 struct passwd *pw;
9168 p = pw->pw_gecos;
9169
9170; return 0; }
9171EOF
9172if { (eval echo configure:9173: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9173 rm -rf conftest*
9174
9175 wx_cv_struct_pw_gecos=yes
9176 cat >> confdefs.h <<\EOF
9177#define HAVE_PW_GECOS 1
9178EOF
9179
9180
9181else
9182 echo "configure: failed program was:" >&5
9183 cat conftest.$ac_ext >&5
9184 rm -rf conftest*
9185
9186 wx_cv_struct_pw_gecos=no
9187
9188
9189fi
9190rm -f conftest*
9191
9192
9193fi
9194
9195echo "$ac_t""$wx_cv_struct_pw_gecos" 1>&6
9196
9197
9198echo $ac_n "checking for working const""... $ac_c" 1>&6
9199echo "configure:9200: checking for working const" >&5
9200if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
9201 echo $ac_n "(cached) $ac_c" 1>&6
9202else
9203 cat > conftest.$ac_ext <<EOF
9204#line 9205 "configure"
9205#include "confdefs.h"
9206
9207int main() {
9208
9209/* Ultrix mips cc rejects this. */
9210typedef int charset[2]; const charset x;
9211/* SunOS 4.1.1 cc rejects this. */
9212char const *const *ccp;
9213char **p;
9214/* NEC SVR4.0.2 mips cc rejects this. */
9215struct point {int x, y;};
9216static struct point const zero = {0,0};
9217/* AIX XL C 1.02.0.0 rejects this.
9218 It does not let you subtract one const X* pointer from another in an arm
9219 of an if-expression whose if-part is not a constant expression */
9220const char *g = "string";
9221ccp = &g + (g ? g-g : 0);
9222/* HPUX 7.0 cc rejects these. */
9223++ccp;
9224p = (char**) ccp;
9225ccp = (char const *const *) p;
9226{ /* SCO 3.2v4 cc rejects this. */
9227 char *t;
9228 char const *s = 0 ? (char *) 0 : (char const *) 0;
9229
9230 *t++ = 0;
9231}
9232{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
9233 int x[] = {25, 17};
9234 const int *foo = &x[0];
9235 ++foo;
9236}
9237{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9238 typedef const int *iptr;
9239 iptr p = 0;
9240 ++p;
9241}
9242{ /* AIX XL C 1.02.0.0 rejects this saying
9243 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9244 struct s { int j; const int *ap[3]; };
9245 struct s *b; b->j = 5;
9246}
9247{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9248 const int foo = 10;
9249}
9250
9251; return 0; }
9252EOF
9253if { (eval echo configure:9254: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9254 rm -rf conftest*
9255 ac_cv_c_const=yes
9256else
9257 echo "configure: failed program was:" >&5
9258 cat conftest.$ac_ext >&5
9259 rm -rf conftest*
9260 ac_cv_c_const=no
9261fi
9262rm -f conftest*
9263fi
9264
9265echo "$ac_t""$ac_cv_c_const" 1>&6
9266if test $ac_cv_c_const = no; then
9267 cat >> confdefs.h <<\EOF
9268#define const
9269EOF
9270
9271fi
9272
9273echo $ac_n "checking for inline""... $ac_c" 1>&6
9274echo "configure:9275: checking for inline" >&5
9275if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
9276 echo $ac_n "(cached) $ac_c" 1>&6
9277else
9278 ac_cv_c_inline=no
9279for ac_kw in inline __inline__ __inline; do
9280 cat > conftest.$ac_ext <<EOF
9281#line 9282 "configure"
9282#include "confdefs.h"
9283
9284int main() {
9285} $ac_kw foo() {
9286; return 0; }
9287EOF
9288if { (eval echo configure:9289: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9289 rm -rf conftest*
9290 ac_cv_c_inline=$ac_kw; break
9291else
9292 echo "configure: failed program was:" >&5
9293 cat conftest.$ac_ext >&5
9294fi
9295rm -f conftest*
9296done
9297
9298fi
9299
9300echo "$ac_t""$ac_cv_c_inline" 1>&6
9301case "$ac_cv_c_inline" in
9302 inline | yes) ;;
9303 no) cat >> confdefs.h <<\EOF
9304#define inline
9305EOF
9306 ;;
9307 *) cat >> confdefs.h <<EOF
9308#define inline $ac_cv_c_inline
9309EOF
9310 ;;
9311esac
9312
9313
9314echo $ac_n "checking size of char""... $ac_c" 1>&6
9315echo "configure:9316: checking size of char" >&5
9316if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then
9317 echo $ac_n "(cached) $ac_c" 1>&6
9318else
9319 if test "$cross_compiling" = yes; then
9320 ac_cv_sizeof_char=1
9321else
9322 cat > conftest.$ac_ext <<EOF
9323#line 9324 "configure"
9324#include "confdefs.h"
9325#include <stdio.h>
9326main()
9327{
9328 FILE *f=fopen("conftestval", "w");
9329 if (!f) exit(1);
9330 fprintf(f, "%d\n", sizeof(char));
9331 exit(0);
9332}
9333EOF
9334if { (eval echo configure:9335: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9335then
9336 ac_cv_sizeof_char=`cat conftestval`
9337else
9338 echo "configure: failed program was:" >&5
9339 cat conftest.$ac_ext >&5
9340 rm -fr conftest*
9341 ac_cv_sizeof_char=0
9342fi
9343rm -fr conftest*
9344fi
9345
9346fi
9347echo "$ac_t""$ac_cv_sizeof_char" 1>&6
9348cat >> confdefs.h <<EOF
9349#define SIZEOF_CHAR $ac_cv_sizeof_char
9350EOF
9351
9352
9353echo $ac_n "checking size of short""... $ac_c" 1>&6
9354echo "configure:9355: checking size of short" >&5
9355if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
9356 echo $ac_n "(cached) $ac_c" 1>&6
9357else
9358 if test "$cross_compiling" = yes; then
9359 ac_cv_sizeof_short=2
9360else
9361 cat > conftest.$ac_ext <<EOF
9362#line 9363 "configure"
9363#include "confdefs.h"
9364#include <stdio.h>
9365main()
9366{
9367 FILE *f=fopen("conftestval", "w");
9368 if (!f) exit(1);
9369 fprintf(f, "%d\n", sizeof(short));
9370 exit(0);
9371}
9372EOF
9373if { (eval echo configure:9374: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9374then
9375 ac_cv_sizeof_short=`cat conftestval`
9376else
9377 echo "configure: failed program was:" >&5
9378 cat conftest.$ac_ext >&5
9379 rm -fr conftest*
9380 ac_cv_sizeof_short=0
9381fi
9382rm -fr conftest*
9383fi
9384
9385fi
9386echo "$ac_t""$ac_cv_sizeof_short" 1>&6
9387cat >> confdefs.h <<EOF
9388#define SIZEOF_SHORT $ac_cv_sizeof_short
9389EOF
9390
9391
9392echo $ac_n "checking size of int *""... $ac_c" 1>&6
9393echo "configure:9394: checking size of int *" >&5
9394if eval "test \"`echo '$''{'ac_cv_sizeof_int_p'+set}'`\" = set"; then
9395 echo $ac_n "(cached) $ac_c" 1>&6
9396else
9397 if test "$cross_compiling" = yes; then
9398 ac_cv_sizeof_int_p=4
9399else
9400 cat > conftest.$ac_ext <<EOF
9401#line 9402 "configure"
9402#include "confdefs.h"
9403#include <stdio.h>
9404main()
9405{
9406 FILE *f=fopen("conftestval", "w");
9407 if (!f) exit(1);
9408 fprintf(f, "%d\n", sizeof(int *));
9409 exit(0);
9410}
9411EOF
9412if { (eval echo configure:9413: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9413then
9414 ac_cv_sizeof_int_p=`cat conftestval`
9415else
9416 echo "configure: failed program was:" >&5
9417 cat conftest.$ac_ext >&5
9418 rm -fr conftest*
9419 ac_cv_sizeof_int_p=0
9420fi
9421rm -fr conftest*
9422fi
9423
9424fi
9425echo "$ac_t""$ac_cv_sizeof_int_p" 1>&6
9426cat >> confdefs.h <<EOF
9427#define SIZEOF_INT_P $ac_cv_sizeof_int_p
9428EOF
9429
9430
9431echo $ac_n "checking size of int""... $ac_c" 1>&6
9432echo "configure:9433: checking size of int" >&5
9433if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
9434 echo $ac_n "(cached) $ac_c" 1>&6
9435else
9436 if test "$cross_compiling" = yes; then
9437 ac_cv_sizeof_int=4
9438else
9439 cat > conftest.$ac_ext <<EOF
9440#line 9441 "configure"
9441#include "confdefs.h"
9442#include <stdio.h>
9443main()
9444{
9445 FILE *f=fopen("conftestval", "w");
9446 if (!f) exit(1);
9447 fprintf(f, "%d\n", sizeof(int));
9448 exit(0);
9449}
9450EOF
9451if { (eval echo configure:9452: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9452then
9453 ac_cv_sizeof_int=`cat conftestval`
9454else
9455 echo "configure: failed program was:" >&5
9456 cat conftest.$ac_ext >&5
9457 rm -fr conftest*
9458 ac_cv_sizeof_int=0
9459fi
9460rm -fr conftest*
9461fi
9462
9463fi
9464echo "$ac_t""$ac_cv_sizeof_int" 1>&6
9465cat >> confdefs.h <<EOF
9466#define SIZEOF_INT $ac_cv_sizeof_int
9467EOF
9468
9469
9470echo $ac_n "checking size of long""... $ac_c" 1>&6
9471echo "configure:9472: checking size of long" >&5
9472if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
9473 echo $ac_n "(cached) $ac_c" 1>&6
9474else
9475 if test "$cross_compiling" = yes; then
9476 ac_cv_sizeof_long=4
9477else
9478 cat > conftest.$ac_ext <<EOF
9479#line 9480 "configure"
9480#include "confdefs.h"
9481#include <stdio.h>
9482main()
9483{
9484 FILE *f=fopen("conftestval", "w");
9485 if (!f) exit(1);
9486 fprintf(f, "%d\n", sizeof(long));
9487 exit(0);
9488}
9489EOF
9490if { (eval echo configure:9491: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9491then
9492 ac_cv_sizeof_long=`cat conftestval`
9493else
9494 echo "configure: failed program was:" >&5
9495 cat conftest.$ac_ext >&5
9496 rm -fr conftest*
9497 ac_cv_sizeof_long=0
9498fi
9499rm -fr conftest*
9500fi
9501
9502fi
9503echo "$ac_t""$ac_cv_sizeof_long" 1>&6
9504cat >> confdefs.h <<EOF
9505#define SIZEOF_LONG $ac_cv_sizeof_long
9506EOF
9507
9508
9509echo $ac_n "checking size of long long""... $ac_c" 1>&6
9510echo "configure:9511: checking size of long long" >&5
9511if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
9512 echo $ac_n "(cached) $ac_c" 1>&6
9513else
9514 if test "$cross_compiling" = yes; then
9515 ac_cv_sizeof_long_long=0
9516else
9517 cat > conftest.$ac_ext <<EOF
9518#line 9519 "configure"
9519#include "confdefs.h"
9520#include <stdio.h>
9521main()
9522{
9523 FILE *f=fopen("conftestval", "w");
9524 if (!f) exit(1);
9525 fprintf(f, "%d\n", sizeof(long long));
9526 exit(0);
9527}
9528EOF
9529if { (eval echo configure:9530: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9530then
9531 ac_cv_sizeof_long_long=`cat conftestval`
9532else
9533 echo "configure: failed program was:" >&5
9534 cat conftest.$ac_ext >&5
9535 rm -fr conftest*
9536 ac_cv_sizeof_long_long=0
9537fi
9538rm -fr conftest*
9539fi
9540
9541fi
9542echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
9543cat >> confdefs.h <<EOF
9544#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
9545EOF
9546
9547
9548
9549echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
9550echo "configure:9551: checking whether byte ordering is bigendian" >&5
9551if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
9552 echo $ac_n "(cached) $ac_c" 1>&6
9553else
9554 ac_cv_c_bigendian=unknown
9555# See if sys/param.h defines the BYTE_ORDER macro.
9556cat > conftest.$ac_ext <<EOF
9557#line 9558 "configure"
9558#include "confdefs.h"
9559#include <sys/types.h>
9560#include <sys/param.h>
9561int main() {
9562
9563#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
9564 bogus endian macros
9565#endif
9566; return 0; }
9567EOF
9568if { (eval echo configure:9569: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9569 rm -rf conftest*
9570 # It does; now see whether it defined to BIG_ENDIAN or not.
9571cat > conftest.$ac_ext <<EOF
9572#line 9573 "configure"
9573#include "confdefs.h"
9574#include <sys/types.h>
9575#include <sys/param.h>
9576int main() {
9577
9578#if BYTE_ORDER != BIG_ENDIAN
9579 not big endian
9580#endif
9581; return 0; }
9582EOF
9583if { (eval echo configure:9584: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9584 rm -rf conftest*
9585 ac_cv_c_bigendian=yes
9586else
9587 echo "configure: failed program was:" >&5
9588 cat conftest.$ac_ext >&5
9589 rm -rf conftest*
9590 ac_cv_c_bigendian=no
9591fi
9592rm -f conftest*
9593else
9594 echo "configure: failed program was:" >&5
9595 cat conftest.$ac_ext >&5
9596fi
9597rm -f conftest*
9598if test $ac_cv_c_bigendian = unknown; then
9599if test "$cross_compiling" = yes; then
9600 ac_cv_c_bigendian=unknown
9601else
9602 cat > conftest.$ac_ext <<EOF
9603#line 9604 "configure"
9604#include "confdefs.h"
9605main () {
9606 /* Are we little or big endian? From Harbison&Steele. */
9607 union
9608 {
9609 long l;
9610 char c[sizeof (long)];
9611 } u;
9612 u.l = 1;
9613 exit (u.c[sizeof (long) - 1] == 1);
9614}
9615EOF
9616if { (eval echo configure:9617: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9617then
9618 ac_cv_c_bigendian=no
9619else
9620 echo "configure: failed program was:" >&5
9621 cat conftest.$ac_ext >&5
9622 rm -fr conftest*
9623 ac_cv_c_bigendian=yes
9624fi
9625rm -fr conftest*
9626fi
9627
9628fi
9629fi
9630
9631echo "$ac_t""$ac_cv_c_bigendian" 1>&6
9632if test $ac_cv_c_bigendian = unknown; then
9633 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
9634fi
9635if test $ac_cv_c_bigendian = yes; then
9636 cat >> confdefs.h <<\EOF
9637#define WORDS_BIGENDIAN 1
9638EOF
9639
9640fi
9641
9642
9643
9644 if test "$cross_compiling" = "yes"; then
9645 cat >> confdefs.h <<\EOF
9646#define wxUSE_IOSTREAMH 1
9647EOF
9648
9649 else
9650
9651 ac_ext=C
9652# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9653ac_cpp='$CXXCPP $CPPFLAGS'
9654ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9655ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9656cross_compiling=$ac_cv_prog_cxx_cross
9657
9658
9659 for ac_hdr in iostream
9660do
9661ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9662echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9663echo "configure:9664: checking for $ac_hdr" >&5
9664if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9665 echo $ac_n "(cached) $ac_c" 1>&6
9666else
9667 cat > conftest.$ac_ext <<EOF
9668#line 9669 "configure"
9669#include "confdefs.h"
9670#include <$ac_hdr>
9671EOF
9672ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9673{ (eval echo configure:9674: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9674ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9675if test -z "$ac_err"; then
9676 rm -rf conftest*
9677 eval "ac_cv_header_$ac_safe=yes"
9678else
9679 echo "$ac_err" >&5
9680 echo "configure: failed program was:" >&5
9681 cat conftest.$ac_ext >&5
9682 rm -rf conftest*
9683 eval "ac_cv_header_$ac_safe=no"
9684fi
9685rm -f conftest*
9686fi
9687if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9688 echo "$ac_t""yes" 1>&6
9689 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9690 cat >> confdefs.h <<EOF
9691#define $ac_tr_hdr 1
9692EOF
9693
9694else
9695 echo "$ac_t""no" 1>&6
9696fi
9697done
9698
9699
9700 if test "x$HAVE_IOSTREAM" = x ; then
9701 cat >> confdefs.h <<\EOF
9702#define wxUSE_IOSTREAMH 1
9703EOF
9704
9705 else
9706 :
9707 fi
9708
9709 ac_ext=c
9710# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9711ac_cpp='$CPP $CPPFLAGS'
9712ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9713ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9714cross_compiling=$ac_cv_prog_cc_cross
9715
9716 fi
9717
9718
9719
9720 echo $ac_n "checking if C++ compiler supports bool""... $ac_c" 1>&6
9721echo "configure:9722: checking if C++ compiler supports bool" >&5
9722if eval "test \"`echo '$''{'wx_cv_cpp_bool'+set}'`\" = set"; then
9723 echo $ac_n "(cached) $ac_c" 1>&6
9724else
9725
9726
9727 ac_ext=C
9728# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9729ac_cpp='$CXXCPP $CPPFLAGS'
9730ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9731ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9732cross_compiling=$ac_cv_prog_cxx_cross
9733
9734
9735 cat > conftest.$ac_ext <<EOF
9736#line 9737 "configure"
9737#include "confdefs.h"
9738
9739
9740int main() {
9741
9742 bool b = true;
9743
9744 return 0;
9745
9746; return 0; }
9747EOF
9748if { (eval echo configure:9749: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9749 rm -rf conftest*
9750
9751 cat >> confdefs.h <<\EOF
9752#define HAVE_BOOL 1
9753EOF
9754
9755 wx_cv_cpp_bool=yes
9756
9757else
9758 echo "configure: failed program was:" >&5
9759 cat conftest.$ac_ext >&5
9760 rm -rf conftest*
9761
9762 wx_cv_cpp_bool=no
9763
9764
9765fi
9766rm -f conftest*
9767
9768 ac_ext=c
9769# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9770ac_cpp='$CPP $CPPFLAGS'
9771ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9772ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9773cross_compiling=$ac_cv_prog_cc_cross
9774
9775
9776fi
9777
9778echo "$ac_t""$wx_cv_cpp_bool" 1>&6
9779
9780 if test "$wx_cv_cpp_bool" = "yes"; then
9781 cat >> confdefs.h <<\EOF
9782#define HAVE_BOOL 1
9783EOF
9784
9785 fi
9786
9787
9788
9789echo $ac_n "checking if you need GNU extensions""... $ac_c" 1>&6
9790echo "configure:9791: checking if you need GNU extensions" >&5
9791if eval "test \"`echo '$''{'wx_cv_gnu_extensions'+set}'`\" = set"; then
9792 echo $ac_n "(cached) $ac_c" 1>&6
9793else
9794
9795 cat > conftest.$ac_ext <<EOF
9796#line 9797 "configure"
9797#include "confdefs.h"
9798#include <features.h>
9799int main() {
9800
9801
9802#ifndef __GNU_LIBRARY__
9803 Compile error wanted
9804#endif
9805
9806
9807; return 0; }
9808EOF
9809if { (eval echo configure:9810: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9810 rm -rf conftest*
9811 wx_cv_gnu_extensions=yes
9812else
9813 echo "configure: failed program was:" >&5
9814 cat conftest.$ac_ext >&5
9815 rm -rf conftest*
9816 wx_cv_gnu_extensions=no
9817fi
9818rm -f conftest*
9819
9820fi
9821
9822
9823echo "$ac_t""$wx_cv_gnu_extensions" 1>&6
9824if test "$wx_cv_gnu_extensions" = "yes"; then
9825 cat >> confdefs.h <<EOF
9826#define _GNU_SOURCE 1
9827EOF
9828
9829fi
9830
9831
9832
9833echo $ac_n "checking for wcslen in -lc""... $ac_c" 1>&6
9834echo "configure:9835: checking for wcslen in -lc" >&5
9835ac_lib_var=`echo c'_'wcslen | sed 'y%./+-%__p_%'`
9836if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9837 echo $ac_n "(cached) $ac_c" 1>&6
9838else
9839 ac_save_LIBS="$LIBS"
9840LIBS="-lc $LIBS"
9841cat > conftest.$ac_ext <<EOF
9842#line 9843 "configure"
9843#include "confdefs.h"
9844/* Override any gcc2 internal prototype to avoid an error. */
9845/* We use char because int might match the return type of a gcc2
9846 builtin and then its argument prototype would still apply. */
9847char wcslen();
9848
9849int main() {
9850wcslen()
9851; return 0; }
9852EOF
9853if { (eval echo configure:9854: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9854 rm -rf conftest*
9855 eval "ac_cv_lib_$ac_lib_var=yes"
9856else
9857 echo "configure: failed program was:" >&5
9858 cat conftest.$ac_ext >&5
9859 rm -rf conftest*
9860 eval "ac_cv_lib_$ac_lib_var=no"
9861fi
9862rm -f conftest*
9863LIBS="$ac_save_LIBS"
9864
9865fi
9866if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9867 echo "$ac_t""yes" 1>&6
9868
9869 cat >> confdefs.h <<\EOF
9870#define HAVE_WCSLEN 1
9871EOF
9872
9873 WCHAR_LINK=""
9874
9875else
9876 echo "$ac_t""no" 1>&6
9877
9878 echo $ac_n "checking for wcslen in -lw""... $ac_c" 1>&6
9879echo "configure:9880: checking for wcslen in -lw" >&5
9880ac_lib_var=`echo w'_'wcslen | sed 'y%./+-%__p_%'`
9881if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9882 echo $ac_n "(cached) $ac_c" 1>&6
9883else
9884 ac_save_LIBS="$LIBS"
9885LIBS="-lw $LIBS"
9886cat > conftest.$ac_ext <<EOF
9887#line 9888 "configure"
9888#include "confdefs.h"
9889/* Override any gcc2 internal prototype to avoid an error. */
9890/* We use char because int might match the return type of a gcc2
9891 builtin and then its argument prototype would still apply. */
9892char wcslen();
9893
9894int main() {
9895wcslen()
9896; return 0; }
9897EOF
9898if { (eval echo configure:9899: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9899 rm -rf conftest*
9900 eval "ac_cv_lib_$ac_lib_var=yes"
9901else
9902 echo "configure: failed program was:" >&5
9903 cat conftest.$ac_ext >&5
9904 rm -rf conftest*
9905 eval "ac_cv_lib_$ac_lib_var=no"
9906fi
9907rm -f conftest*
9908LIBS="$ac_save_LIBS"
9909
9910fi
9911if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9912 echo "$ac_t""yes" 1>&6
9913
9914 cat >> confdefs.h <<\EOF
9915#define HAVE_WCSLEN 1
9916EOF
9917
9918 WCHAR_LINK="-lw"
9919
9920else
9921 echo "$ac_t""no" 1>&6
9922fi
9923
9924
9925fi
9926
9927
9928echo $ac_n "checking for vprintf""... $ac_c" 1>&6
9929echo "configure:9930: checking for vprintf" >&5
9930if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
9931 echo $ac_n "(cached) $ac_c" 1>&6
9932else
9933 cat > conftest.$ac_ext <<EOF
9934#line 9935 "configure"
9935#include "confdefs.h"
9936/* System header to define __stub macros and hopefully few prototypes,
9937 which can conflict with char vprintf(); below. */
9938#include <assert.h>
9939/* Override any gcc2 internal prototype to avoid an error. */
9940/* We use char because int might match the return type of a gcc2
9941 builtin and then its argument prototype would still apply. */
9942char vprintf();
9943
9944int main() {
9945
9946/* The GNU C library defines this for functions which it implements
9947 to always fail with ENOSYS. Some functions are actually named
9948 something starting with __ and the normal name is an alias. */
9949#if defined (__stub_vprintf) || defined (__stub___vprintf)
9950choke me
9951#else
9952vprintf();
9953#endif
9954
9955; return 0; }
9956EOF
9957if { (eval echo configure:9958: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9958 rm -rf conftest*
9959 eval "ac_cv_func_vprintf=yes"
9960else
9961 echo "configure: failed program was:" >&5
9962 cat conftest.$ac_ext >&5
9963 rm -rf conftest*
9964 eval "ac_cv_func_vprintf=no"
9965fi
9966rm -f conftest*
9967fi
9968
9969if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
9970 echo "$ac_t""yes" 1>&6
9971 cat >> confdefs.h <<\EOF
9972#define HAVE_VPRINTF 1
9973EOF
9974
9975else
9976 echo "$ac_t""no" 1>&6
9977fi
9978
9979if test "$ac_cv_func_vprintf" != yes; then
9980echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
9981echo "configure:9982: checking for _doprnt" >&5
9982if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
9983 echo $ac_n "(cached) $ac_c" 1>&6
9984else
9985 cat > conftest.$ac_ext <<EOF
9986#line 9987 "configure"
9987#include "confdefs.h"
9988/* System header to define __stub macros and hopefully few prototypes,
9989 which can conflict with char _doprnt(); below. */
9990#include <assert.h>
9991/* Override any gcc2 internal prototype to avoid an error. */
9992/* We use char because int might match the return type of a gcc2
9993 builtin and then its argument prototype would still apply. */
9994char _doprnt();
9995
9996int main() {
9997
9998/* The GNU C library defines this for functions which it implements
9999 to always fail with ENOSYS. Some functions are actually named
10000 something starting with __ and the normal name is an alias. */
10001#if defined (__stub__doprnt) || defined (__stub____doprnt)
10002choke me
10003#else
10004_doprnt();
10005#endif
10006
10007; return 0; }
10008EOF
10009if { (eval echo configure:10010: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10010 rm -rf conftest*
10011 eval "ac_cv_func__doprnt=yes"
10012else
10013 echo "configure: failed program was:" >&5
10014 cat conftest.$ac_ext >&5
10015 rm -rf conftest*
10016 eval "ac_cv_func__doprnt=no"
10017fi
10018rm -f conftest*
10019fi
10020
10021if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
10022 echo "$ac_t""yes" 1>&6
10023 cat >> confdefs.h <<\EOF
10024#define HAVE_DOPRNT 1
10025EOF
10026
10027else
10028 echo "$ac_t""no" 1>&6
10029fi
10030
10031fi
10032
10033
10034for ac_func in vsnprintf
10035do
10036echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10037echo "configure:10038: checking for $ac_func" >&5
10038if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10039 echo $ac_n "(cached) $ac_c" 1>&6
10040else
10041 cat > conftest.$ac_ext <<EOF
10042#line 10043 "configure"
10043#include "confdefs.h"
10044/* System header to define __stub macros and hopefully few prototypes,
10045 which can conflict with char $ac_func(); below. */
10046#include <assert.h>
10047/* Override any gcc2 internal prototype to avoid an error. */
10048/* We use char because int might match the return type of a gcc2
10049 builtin and then its argument prototype would still apply. */
10050char $ac_func();
10051
10052int main() {
10053
10054/* The GNU C library defines this for functions which it implements
10055 to always fail with ENOSYS. Some functions are actually named
10056 something starting with __ and the normal name is an alias. */
10057#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10058choke me
10059#else
10060$ac_func();
10061#endif
10062
10063; return 0; }
10064EOF
10065if { (eval echo configure:10066: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10066 rm -rf conftest*
10067 eval "ac_cv_func_$ac_func=yes"
10068else
10069 echo "configure: failed program was:" >&5
10070 cat conftest.$ac_ext >&5
10071 rm -rf conftest*
10072 eval "ac_cv_func_$ac_func=no"
10073fi
10074rm -f conftest*
10075fi
10076
10077if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10078 echo "$ac_t""yes" 1>&6
10079 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10080 cat >> confdefs.h <<EOF
10081#define $ac_tr_func 1
10082EOF
10083 cat >> confdefs.h <<\EOF
10084#define HAVE_VSNPRINTF 1
10085EOF
10086
10087else
10088 echo "$ac_t""no" 1>&6
10089echo "configure: warning: unsafe function sprintf will be used instead of snprintf" 1>&2
10090
10091fi
10092done
10093
10094
10095
10096ac_ext=C
10097# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10098ac_cpp='$CXXCPP $CPPFLAGS'
10099ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10100ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10101cross_compiling=$ac_cv_prog_cxx_cross
10102
10103
10104echo $ac_n "checking for vsscanf""... $ac_c" 1>&6
10105echo "configure:10106: checking for vsscanf" >&5
10106if eval "test \"`echo '$''{'wx_cv_func_vsscanf'+set}'`\" = set"; then
10107 echo $ac_n "(cached) $ac_c" 1>&6
10108else
10109
10110 if test "$cross_compiling" = yes; then
10111 wx_cv_func_vsscanf=no
10112
10113else
10114 cat > conftest.$ac_ext <<EOF
10115#line 10116 "configure"
10116#include "confdefs.h"
10117#ifdef __cplusplus
10118extern "C" void exit(int);
10119#endif
10120
10121 #include <stdio.h>
10122 #include <stdarg.h>
10123
10124 int try_vsscanf(const char *format, ...)
10125 {
10126 va_list ap;
10127 va_start(ap, format);
10128
10129 vsscanf("17", format, ap);
10130
10131 va_end(ap);
10132 }
10133
10134 int main()
10135 {
10136 int i;
10137 try_vsscanf("%d", &i);
10138 return i == 17 ? 0 : 1;
10139 }
10140
10141EOF
10142if { (eval echo configure:10143: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10143then
10144
10145 cat >> confdefs.h <<\EOF
10146#define HAVE_VSSCANF 1
10147EOF
10148
10149 wx_cv_func_vsscanf=yes
10150
10151else
10152 echo "configure: failed program was:" >&5
10153 cat conftest.$ac_ext >&5
10154 rm -fr conftest*
10155 wx_cv_func_vsscanf=no
10156fi
10157rm -fr conftest*
10158fi
10159
10160
10161fi
10162
10163echo "$ac_t""$wx_cv_func_vsscanf" 1>&6
10164
10165ac_ext=c
10166# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10167ac_cpp='$CPP $CPPFLAGS'
10168ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10169ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10170cross_compiling=$ac_cv_prog_cc_cross
10171
10172
10173if test "$TOOLKIT" != "MSW"; then
10174
10175for ac_func in vfork
10176do
10177echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10178echo "configure:10179: checking for $ac_func" >&5
10179if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10180 echo $ac_n "(cached) $ac_c" 1>&6
10181else
10182 cat > conftest.$ac_ext <<EOF
10183#line 10184 "configure"
10184#include "confdefs.h"
10185/* System header to define __stub macros and hopefully few prototypes,
10186 which can conflict with char $ac_func(); below. */
10187#include <assert.h>
10188/* Override any gcc2 internal prototype to avoid an error. */
10189/* We use char because int might match the return type of a gcc2
10190 builtin and then its argument prototype would still apply. */
10191char $ac_func();
10192
10193int main() {
10194
10195/* The GNU C library defines this for functions which it implements
10196 to always fail with ENOSYS. Some functions are actually named
10197 something starting with __ and the normal name is an alias. */
10198#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10199choke me
10200#else
10201$ac_func();
10202#endif
10203
10204; return 0; }
10205EOF
10206if { (eval echo configure:10207: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10207 rm -rf conftest*
10208 eval "ac_cv_func_$ac_func=yes"
10209else
10210 echo "configure: failed program was:" >&5
10211 cat conftest.$ac_ext >&5
10212 rm -rf conftest*
10213 eval "ac_cv_func_$ac_func=no"
10214fi
10215rm -f conftest*
10216fi
10217
10218if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10219 echo "$ac_t""yes" 1>&6
10220 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10221 cat >> confdefs.h <<EOF
10222#define $ac_tr_func 1
10223EOF
10224
10225else
10226 echo "$ac_t""no" 1>&6
10227fi
10228done
10229
10230
10231for ac_func in timegm
10232do
10233echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10234echo "configure:10235: checking for $ac_func" >&5
10235if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10236 echo $ac_n "(cached) $ac_c" 1>&6
10237else
10238 cat > conftest.$ac_ext <<EOF
10239#line 10240 "configure"
10240#include "confdefs.h"
10241/* System header to define __stub macros and hopefully few prototypes,
10242 which can conflict with char $ac_func(); below. */
10243#include <assert.h>
10244/* Override any gcc2 internal prototype to avoid an error. */
10245/* We use char because int might match the return type of a gcc2
10246 builtin and then its argument prototype would still apply. */
10247char $ac_func();
10248
10249int main() {
10250
10251/* The GNU C library defines this for functions which it implements
10252 to always fail with ENOSYS. Some functions are actually named
10253 something starting with __ and the normal name is an alias. */
10254#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10255choke me
10256#else
10257$ac_func();
10258#endif
10259
10260; return 0; }
10261EOF
10262if { (eval echo configure:10263: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10263 rm -rf conftest*
10264 eval "ac_cv_func_$ac_func=yes"
10265else
10266 echo "configure: failed program was:" >&5
10267 cat conftest.$ac_ext >&5
10268 rm -rf conftest*
10269 eval "ac_cv_func_$ac_func=no"
10270fi
10271rm -f conftest*
10272fi
10273
10274if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10275 echo "$ac_t""yes" 1>&6
10276 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10277 cat >> confdefs.h <<EOF
10278#define $ac_tr_func 1
10279EOF
10280
10281else
10282 echo "$ac_t""no" 1>&6
10283fi
10284done
10285
10286
10287HAVE_SOME_SLEEP_FUNC=0
10288if test "$USE_BEOS" = 1; then
10289 cat >> confdefs.h <<\EOF
10290#define HAVE_SLEEP 1
10291EOF
10292
10293 HAVE_SOME_SLEEP_FUNC=1
10294fi
10295
10296if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
10297 POSIX4_LINK=
10298 for ac_func in nanosleep
10299do
10300echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10301echo "configure:10302: checking for $ac_func" >&5
10302if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10303 echo $ac_n "(cached) $ac_c" 1>&6
10304else
10305 cat > conftest.$ac_ext <<EOF
10306#line 10307 "configure"
10307#include "confdefs.h"
10308/* System header to define __stub macros and hopefully few prototypes,
10309 which can conflict with char $ac_func(); below. */
10310#include <assert.h>
10311/* Override any gcc2 internal prototype to avoid an error. */
10312/* We use char because int might match the return type of a gcc2
10313 builtin and then its argument prototype would still apply. */
10314char $ac_func();
10315
10316int main() {
10317
10318/* The GNU C library defines this for functions which it implements
10319 to always fail with ENOSYS. Some functions are actually named
10320 something starting with __ and the normal name is an alias. */
10321#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10322choke me
10323#else
10324$ac_func();
10325#endif
10326
10327; return 0; }
10328EOF
10329if { (eval echo configure:10330: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10330 rm -rf conftest*
10331 eval "ac_cv_func_$ac_func=yes"
10332else
10333 echo "configure: failed program was:" >&5
10334 cat conftest.$ac_ext >&5
10335 rm -rf conftest*
10336 eval "ac_cv_func_$ac_func=no"
10337fi
10338rm -f conftest*
10339fi
10340
10341if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10342 echo "$ac_t""yes" 1>&6
10343 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10344 cat >> confdefs.h <<EOF
10345#define $ac_tr_func 1
10346EOF
10347 cat >> confdefs.h <<\EOF
10348#define HAVE_NANOSLEEP 1
10349EOF
10350
10351else
10352 echo "$ac_t""no" 1>&6
10353echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6
10354echo "configure:10355: checking for nanosleep in -lposix4" >&5
10355ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'`
10356if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10357 echo $ac_n "(cached) $ac_c" 1>&6
10358else
10359 ac_save_LIBS="$LIBS"
10360LIBS="-lposix4 $LIBS"
10361cat > conftest.$ac_ext <<EOF
10362#line 10363 "configure"
10363#include "confdefs.h"
10364/* Override any gcc2 internal prototype to avoid an error. */
10365/* We use char because int might match the return type of a gcc2
10366 builtin and then its argument prototype would still apply. */
10367char nanosleep();
10368
10369int main() {
10370nanosleep()
10371; return 0; }
10372EOF
10373if { (eval echo configure:10374: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10374 rm -rf conftest*
10375 eval "ac_cv_lib_$ac_lib_var=yes"
10376else
10377 echo "configure: failed program was:" >&5
10378 cat conftest.$ac_ext >&5
10379 rm -rf conftest*
10380 eval "ac_cv_lib_$ac_lib_var=no"
10381fi
10382rm -f conftest*
10383LIBS="$ac_save_LIBS"
10384
10385fi
10386if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10387 echo "$ac_t""yes" 1>&6
10388
10389 cat >> confdefs.h <<\EOF
10390#define HAVE_NANOSLEEP 1
10391EOF
10392
10393 POSIX4_LINK="-lposix4"
10394
10395else
10396 echo "$ac_t""no" 1>&6
10397
10398 for ac_func in usleep
10399do
10400echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10401echo "configure:10402: checking for $ac_func" >&5
10402if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10403 echo $ac_n "(cached) $ac_c" 1>&6
10404else
10405 cat > conftest.$ac_ext <<EOF
10406#line 10407 "configure"
10407#include "confdefs.h"
10408/* System header to define __stub macros and hopefully few prototypes,
10409 which can conflict with char $ac_func(); below. */
10410#include <assert.h>
10411/* Override any gcc2 internal prototype to avoid an error. */
10412/* We use char because int might match the return type of a gcc2
10413 builtin and then its argument prototype would still apply. */
10414char $ac_func();
10415
10416int main() {
10417
10418/* The GNU C library defines this for functions which it implements
10419 to always fail with ENOSYS. Some functions are actually named
10420 something starting with __ and the normal name is an alias. */
10421#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10422choke me
10423#else
10424$ac_func();
10425#endif
10426
10427; return 0; }
10428EOF
10429if { (eval echo configure:10430: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10430 rm -rf conftest*
10431 eval "ac_cv_func_$ac_func=yes"
10432else
10433 echo "configure: failed program was:" >&5
10434 cat conftest.$ac_ext >&5
10435 rm -rf conftest*
10436 eval "ac_cv_func_$ac_func=no"
10437fi
10438rm -f conftest*
10439fi
10440
10441if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10442 echo "$ac_t""yes" 1>&6
10443 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10444 cat >> confdefs.h <<EOF
10445#define $ac_tr_func 1
10446EOF
10447
10448else
10449 echo "$ac_t""no" 1>&6
10450fi
10451done
10452
10453 echo "configure: warning: wxSleep() function will not work" 1>&2
10454
10455
10456fi
10457
10458
10459
10460fi
10461done
10462
10463fi
10464
10465for ac_func in uname gethostname
10466do
10467echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10468echo "configure:10469: checking for $ac_func" >&5
10469if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10470 echo $ac_n "(cached) $ac_c" 1>&6
10471else
10472 cat > conftest.$ac_ext <<EOF
10473#line 10474 "configure"
10474#include "confdefs.h"
10475/* System header to define __stub macros and hopefully few prototypes,
10476 which can conflict with char $ac_func(); below. */
10477#include <assert.h>
10478/* Override any gcc2 internal prototype to avoid an error. */
10479/* We use char because int might match the return type of a gcc2
10480 builtin and then its argument prototype would still apply. */
10481char $ac_func();
10482
10483int main() {
10484
10485/* The GNU C library defines this for functions which it implements
10486 to always fail with ENOSYS. Some functions are actually named
10487 something starting with __ and the normal name is an alias. */
10488#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10489choke me
10490#else
10491$ac_func();
10492#endif
10493
10494; return 0; }
10495EOF
10496if { (eval echo configure:10497: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10497 rm -rf conftest*
10498 eval "ac_cv_func_$ac_func=yes"
10499else
10500 echo "configure: failed program was:" >&5
10501 cat conftest.$ac_ext >&5
10502 rm -rf conftest*
10503 eval "ac_cv_func_$ac_func=no"
10504fi
10505rm -f conftest*
10506fi
10507
10508if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10509 echo "$ac_t""yes" 1>&6
10510 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10511 cat >> confdefs.h <<EOF
10512#define $ac_tr_func 1
10513EOF
10514 break
10515else
10516 echo "$ac_t""no" 1>&6
10517fi
10518done
10519
10520
10521for ac_func in strtok_r
10522do
10523echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10524echo "configure:10525: checking for $ac_func" >&5
10525if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10526 echo $ac_n "(cached) $ac_c" 1>&6
10527else
10528 cat > conftest.$ac_ext <<EOF
10529#line 10530 "configure"
10530#include "confdefs.h"
10531/* System header to define __stub macros and hopefully few prototypes,
10532 which can conflict with char $ac_func(); below. */
10533#include <assert.h>
10534/* Override any gcc2 internal prototype to avoid an error. */
10535/* We use char because int might match the return type of a gcc2
10536 builtin and then its argument prototype would still apply. */
10537char $ac_func();
10538
10539int main() {
10540
10541/* The GNU C library defines this for functions which it implements
10542 to always fail with ENOSYS. Some functions are actually named
10543 something starting with __ and the normal name is an alias. */
10544#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10545choke me
10546#else
10547$ac_func();
10548#endif
10549
10550; return 0; }
10551EOF
10552if { (eval echo configure:10553: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10553 rm -rf conftest*
10554 eval "ac_cv_func_$ac_func=yes"
10555else
10556 echo "configure: failed program was:" >&5
10557 cat conftest.$ac_ext >&5
10558 rm -rf conftest*
10559 eval "ac_cv_func_$ac_func=no"
10560fi
10561rm -f conftest*
10562fi
10563
10564if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10565 echo "$ac_t""yes" 1>&6
10566 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10567 cat >> confdefs.h <<EOF
10568#define $ac_tr_func 1
10569EOF
10570
10571else
10572 echo "$ac_t""no" 1>&6
10573fi
10574done
10575
10576
10577INET_LINK=
10578for ac_func in inet_addr
10579do
10580echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10581echo "configure:10582: checking for $ac_func" >&5
10582if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10583 echo $ac_n "(cached) $ac_c" 1>&6
10584else
10585 cat > conftest.$ac_ext <<EOF
10586#line 10587 "configure"
10587#include "confdefs.h"
10588/* System header to define __stub macros and hopefully few prototypes,
10589 which can conflict with char $ac_func(); below. */
10590#include <assert.h>
10591/* Override any gcc2 internal prototype to avoid an error. */
10592/* We use char because int might match the return type of a gcc2
10593 builtin and then its argument prototype would still apply. */
10594char $ac_func();
10595
10596int main() {
10597
10598/* The GNU C library defines this for functions which it implements
10599 to always fail with ENOSYS. Some functions are actually named
10600 something starting with __ and the normal name is an alias. */
10601#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10602choke me
10603#else
10604$ac_func();
10605#endif
10606
10607; return 0; }
10608EOF
10609if { (eval echo configure:10610: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10610 rm -rf conftest*
10611 eval "ac_cv_func_$ac_func=yes"
10612else
10613 echo "configure: failed program was:" >&5
10614 cat conftest.$ac_ext >&5
10615 rm -rf conftest*
10616 eval "ac_cv_func_$ac_func=no"
10617fi
10618rm -f conftest*
10619fi
10620
10621if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10622 echo "$ac_t""yes" 1>&6
10623 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10624 cat >> confdefs.h <<EOF
10625#define $ac_tr_func 1
10626EOF
10627 cat >> confdefs.h <<\EOF
10628#define HAVE_INET_ADDR 1
10629EOF
10630
10631else
10632 echo "$ac_t""no" 1>&6
10633echo $ac_n "checking for inet_addr in -lnsl""... $ac_c" 1>&6
10634echo "configure:10635: checking for inet_addr in -lnsl" >&5
10635ac_lib_var=`echo nsl'_'inet_addr | sed 'y%./+-%__p_%'`
10636if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10637 echo $ac_n "(cached) $ac_c" 1>&6
10638else
10639 ac_save_LIBS="$LIBS"
10640LIBS="-lnsl $LIBS"
10641cat > conftest.$ac_ext <<EOF
10642#line 10643 "configure"
10643#include "confdefs.h"
10644/* Override any gcc2 internal prototype to avoid an error. */
10645/* We use char because int might match the return type of a gcc2
10646 builtin and then its argument prototype would still apply. */
10647char inet_addr();
10648
10649int main() {
10650inet_addr()
10651; return 0; }
10652EOF
10653if { (eval echo configure:10654: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10654 rm -rf conftest*
10655 eval "ac_cv_lib_$ac_lib_var=yes"
10656else
10657 echo "configure: failed program was:" >&5
10658 cat conftest.$ac_ext >&5
10659 rm -rf conftest*
10660 eval "ac_cv_lib_$ac_lib_var=no"
10661fi
10662rm -f conftest*
10663LIBS="$ac_save_LIBS"
10664
10665fi
10666if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10667 echo "$ac_t""yes" 1>&6
10668 INET_LINK="nsl"
10669else
10670 echo "$ac_t""no" 1>&6
10671echo $ac_n "checking for inet_addr in -lresolv""... $ac_c" 1>&6
10672echo "configure:10673: checking for inet_addr in -lresolv" >&5
10673ac_lib_var=`echo resolv'_'inet_addr | sed 'y%./+-%__p_%'`
10674if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10675 echo $ac_n "(cached) $ac_c" 1>&6
10676else
10677 ac_save_LIBS="$LIBS"
10678LIBS="-lresolv $LIBS"
10679cat > conftest.$ac_ext <<EOF
10680#line 10681 "configure"
10681#include "confdefs.h"
10682/* Override any gcc2 internal prototype to avoid an error. */
10683/* We use char because int might match the return type of a gcc2
10684 builtin and then its argument prototype would still apply. */
10685char inet_addr();
10686
10687int main() {
10688inet_addr()
10689; return 0; }
10690EOF
10691if { (eval echo configure:10692: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10692 rm -rf conftest*
10693 eval "ac_cv_lib_$ac_lib_var=yes"
10694else
10695 echo "configure: failed program was:" >&5
10696 cat conftest.$ac_ext >&5
10697 rm -rf conftest*
10698 eval "ac_cv_lib_$ac_lib_var=no"
10699fi
10700rm -f conftest*
10701LIBS="$ac_save_LIBS"
10702
10703fi
10704if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10705 echo "$ac_t""yes" 1>&6
10706 INET_LINK="resolv"
10707
10708else
10709 echo "$ac_t""no" 1>&6
10710fi
10711
10712
10713fi
10714
10715
10716
10717fi
10718done
10719
10720
10721for ac_func in inet_aton
10722do
10723echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10724echo "configure:10725: checking for $ac_func" >&5
10725if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10726 echo $ac_n "(cached) $ac_c" 1>&6
10727else
10728 cat > conftest.$ac_ext <<EOF
10729#line 10730 "configure"
10730#include "confdefs.h"
10731/* System header to define __stub macros and hopefully few prototypes,
10732 which can conflict with char $ac_func(); below. */
10733#include <assert.h>
10734/* Override any gcc2 internal prototype to avoid an error. */
10735/* We use char because int might match the return type of a gcc2
10736 builtin and then its argument prototype would still apply. */
10737char $ac_func();
10738
10739int main() {
10740
10741/* The GNU C library defines this for functions which it implements
10742 to always fail with ENOSYS. Some functions are actually named
10743 something starting with __ and the normal name is an alias. */
10744#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10745choke me
10746#else
10747$ac_func();
10748#endif
10749
10750; return 0; }
10751EOF
10752if { (eval echo configure:10753: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10753 rm -rf conftest*
10754 eval "ac_cv_func_$ac_func=yes"
10755else
10756 echo "configure: failed program was:" >&5
10757 cat conftest.$ac_ext >&5
10758 rm -rf conftest*
10759 eval "ac_cv_func_$ac_func=no"
10760fi
10761rm -f conftest*
10762fi
10763
10764if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10765 echo "$ac_t""yes" 1>&6
10766 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10767 cat >> confdefs.h <<EOF
10768#define $ac_tr_func 1
10769EOF
10770 cat >> confdefs.h <<\EOF
10771#define HAVE_INET_ATON 1
10772EOF
10773
10774else
10775 echo "$ac_t""no" 1>&6
10776 echo $ac_n "checking for inet_aton in -l$INET_LINK""... $ac_c" 1>&6
10777echo "configure:10778: checking for inet_aton in -l$INET_LINK" >&5
10778ac_lib_var=`echo $INET_LINK'_'inet_aton | sed 'y%./+-%__p_%'`
10779if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10780 echo $ac_n "(cached) $ac_c" 1>&6
10781else
10782 ac_save_LIBS="$LIBS"
10783LIBS="-l$INET_LINK $LIBS"
10784cat > conftest.$ac_ext <<EOF
10785#line 10786 "configure"
10786#include "confdefs.h"
10787/* Override any gcc2 internal prototype to avoid an error. */
10788/* We use char because int might match the return type of a gcc2
10789 builtin and then its argument prototype would still apply. */
10790char inet_aton();
10791
10792int main() {
10793inet_aton()
10794; return 0; }
10795EOF
10796if { (eval echo configure:10797: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10797 rm -rf conftest*
10798 eval "ac_cv_lib_$ac_lib_var=yes"
10799else
10800 echo "configure: failed program was:" >&5
10801 cat conftest.$ac_ext >&5
10802 rm -rf conftest*
10803 eval "ac_cv_lib_$ac_lib_var=no"
10804fi
10805rm -f conftest*
10806LIBS="$ac_save_LIBS"
10807
10808fi
10809if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10810 echo "$ac_t""yes" 1>&6
10811 cat >> confdefs.h <<\EOF
10812#define HAVE_INET_ATON 1
10813EOF
10814
10815else
10816 echo "$ac_t""no" 1>&6
10817fi
10818
10819
10820fi
10821done
10822
10823
10824if test "x$INET_LINK" != "x"; then
10825 cat >> confdefs.h <<\EOF
10826#define HAVE_INET_ADDR 1
10827EOF
10828
10829 INET_LINK="-l$INET_LINK"
10830fi
10831
10832fi
10833
10834
10835cat > confcache <<\EOF
10836# This file is a shell script that caches the results of configure
10837# tests run on this system so they can be shared between configure
10838# scripts and configure runs. It is not useful on other systems.
10839# If it contains results you don't want to keep, you may remove or edit it.
10840#
10841# By default, configure uses ./config.cache as the cache file,
10842# creating it if it does not exist already. You can give configure
10843# the --cache-file=FILE option to use a different cache file; that is
10844# what configure does when it calls configure scripts in
10845# subdirectories, so they share the cache.
10846# Giving --cache-file=/dev/null disables caching, for debugging configure.
10847# config.status only pays attention to the cache file if you give it the
10848# --recheck option to rerun configure.
10849#
10850EOF
10851# The following way of writing the cache mishandles newlines in values,
10852# but we know of no workaround that is simple, portable, and efficient.
10853# So, don't put newlines in cache variables' values.
10854# Ultrix sh set writes to stderr and can't be redirected directly,
10855# and sets the high bit in the cache file unless we assign to the vars.
10856(set) 2>&1 |
10857 case `(ac_space=' '; set | grep ac_space) 2>&1` in
10858 *ac_space=\ *)
10859 # `set' does not quote correctly, so add quotes (double-quote substitution
10860 # turns \\\\ into \\, and sed turns \\ into \).
10861 sed -n \
10862 -e "s/'/'\\\\''/g" \
10863 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
10864 ;;
10865 *)
10866 # `set' quotes correctly as required by POSIX, so do not add quotes.
10867 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
10868 ;;
10869 esac >> confcache
10870if cmp -s $cache_file confcache; then
10871 :
10872else
10873 if test -w $cache_file; then
10874 echo "updating cache $cache_file"
10875 cat confcache > $cache_file
10876 else
10877 echo "not updating unwritable cache $cache_file"
10878 fi
10879fi
10880rm -f confcache
10881
10882
10883
10884if test "$TOOLKIT" != "MSW"; then
10885
10886
10887THREADS_LINK=""
10888THREADS_OBJ=""
10889
10890if test "$wxUSE_THREADS" = "yes" ; then
10891 if test "$wxUSE_WINE" = 1 ; then
10892 echo "configure: warning: Threads are not supported under WINE" 1>&2
10893 wxUSE_THREADS="no"
10894 elif test "$USE_BEOS" = 1; then
10895 echo "configure: warning: BeOS threads are not yet supported" 1>&2
10896 wxUSE_THREADS="no"
10897 fi
10898fi
10899
10900if test "$wxUSE_THREADS" = "yes" ; then
10901
10902 echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6
10903echo "configure:10904: checking for pthread_create in -lpthread" >&5
10904ac_lib_var=`echo pthread'_'pthread_create | sed 'y%./+-%__p_%'`
10905if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10906 echo $ac_n "(cached) $ac_c" 1>&6
10907else
10908 ac_save_LIBS="$LIBS"
10909LIBS="-lpthread $LIBS"
10910cat > conftest.$ac_ext <<EOF
10911#line 10912 "configure"
10912#include "confdefs.h"
10913/* Override any gcc2 internal prototype to avoid an error. */
10914/* We use char because int might match the return type of a gcc2
10915 builtin and then its argument prototype would still apply. */
10916char pthread_create();
10917
10918int main() {
10919pthread_create()
10920; return 0; }
10921EOF
10922if { (eval echo configure:10923: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10923 rm -rf conftest*
10924 eval "ac_cv_lib_$ac_lib_var=yes"
10925else
10926 echo "configure: failed program was:" >&5
10927 cat conftest.$ac_ext >&5
10928 rm -rf conftest*
10929 eval "ac_cv_lib_$ac_lib_var=no"
10930fi
10931rm -f conftest*
10932LIBS="$ac_save_LIBS"
10933
10934fi
10935if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10936 echo "$ac_t""yes" 1>&6
10937
10938 THREADS_OBJ="threadpsx.lo"
10939 THREADS_LINK="pthread"
10940
10941else
10942 echo "$ac_t""no" 1>&6
10943
10944 echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6
10945echo "configure:10946: checking for pthread_create in -lc_r" >&5
10946ac_lib_var=`echo c_r'_'pthread_create | sed 'y%./+-%__p_%'`
10947if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10948 echo $ac_n "(cached) $ac_c" 1>&6
10949else
10950 ac_save_LIBS="$LIBS"
10951LIBS="-lc_r $LIBS"
10952cat > conftest.$ac_ext <<EOF
10953#line 10954 "configure"
10954#include "confdefs.h"
10955/* Override any gcc2 internal prototype to avoid an error. */
10956/* We use char because int might match the return type of a gcc2
10957 builtin and then its argument prototype would still apply. */
10958char pthread_create();
10959
10960int main() {
10961pthread_create()
10962; return 0; }
10963EOF
10964if { (eval echo configure:10965: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10965 rm -rf conftest*
10966 eval "ac_cv_lib_$ac_lib_var=yes"
10967else
10968 echo "configure: failed program was:" >&5
10969 cat conftest.$ac_ext >&5
10970 rm -rf conftest*
10971 eval "ac_cv_lib_$ac_lib_var=no"
10972fi
10973rm -f conftest*
10974LIBS="$ac_save_LIBS"
10975
10976fi
10977if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10978 echo "$ac_t""yes" 1>&6
10979
10980 THREADS_OBJ="threadpsx.lo"
10981 THREADS_LINK="c_r"
10982
10983else
10984 echo "$ac_t""no" 1>&6
10985
10986 ac_safe=`echo "sys/prctl.h" | sed 'y%./+-%__p_%'`
10987echo $ac_n "checking for sys/prctl.h""... $ac_c" 1>&6
10988echo "configure:10989: checking for sys/prctl.h" >&5
10989if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10990 echo $ac_n "(cached) $ac_c" 1>&6
10991else
10992 cat > conftest.$ac_ext <<EOF
10993#line 10994 "configure"
10994#include "confdefs.h"
10995#include <sys/prctl.h>
10996EOF
10997ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10998{ (eval echo configure:10999: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10999ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11000if test -z "$ac_err"; then
11001 rm -rf conftest*
11002 eval "ac_cv_header_$ac_safe=yes"
11003else
11004 echo "$ac_err" >&5
11005 echo "configure: failed program was:" >&5
11006 cat conftest.$ac_ext >&5
11007 rm -rf conftest*
11008 eval "ac_cv_header_$ac_safe=no"
11009fi
11010rm -f conftest*
11011fi
11012if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11013 echo "$ac_t""yes" 1>&6
11014
11015 THREADS_OBJ="threadsgi.lo"
11016
11017else
11018 echo "$ac_t""no" 1>&6
11019fi
11020
11021
11022fi
11023
11024
11025fi
11026
11027
11028 if test -z "$THREADS_OBJ" ; then
11029 wxUSE_THREADS=no
11030 echo "configure: warning: No thread support on this system" 1>&2
11031 fi
11032fi
11033
11034if test "$wxUSE_THREADS" = "yes" ; then
11035 for ac_func in thr_setconcurrency
11036do
11037echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11038echo "configure:11039: checking for $ac_func" >&5
11039if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11040 echo $ac_n "(cached) $ac_c" 1>&6
11041else
11042 cat > conftest.$ac_ext <<EOF
11043#line 11044 "configure"
11044#include "confdefs.h"
11045/* System header to define __stub macros and hopefully few prototypes,
11046 which can conflict with char $ac_func(); below. */
11047#include <assert.h>
11048/* Override any gcc2 internal prototype to avoid an error. */
11049/* We use char because int might match the return type of a gcc2
11050 builtin and then its argument prototype would still apply. */
11051char $ac_func();
11052
11053int main() {
11054
11055/* The GNU C library defines this for functions which it implements
11056 to always fail with ENOSYS. Some functions are actually named
11057 something starting with __ and the normal name is an alias. */
11058#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11059choke me
11060#else
11061$ac_func();
11062#endif
11063
11064; return 0; }
11065EOF
11066if { (eval echo configure:11067: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11067 rm -rf conftest*
11068 eval "ac_cv_func_$ac_func=yes"
11069else
11070 echo "configure: failed program was:" >&5
11071 cat conftest.$ac_ext >&5
11072 rm -rf conftest*
11073 eval "ac_cv_func_$ac_func=no"
11074fi
11075rm -f conftest*
11076fi
11077
11078if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11079 echo "$ac_t""yes" 1>&6
11080 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11081 cat >> confdefs.h <<EOF
11082#define $ac_tr_func 1
11083EOF
11084
11085else
11086 echo "$ac_t""no" 1>&6
11087fi
11088done
11089
11090
11091
11092 for ac_hdr in sched.h
11093do
11094ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11095echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11096echo "configure:11097: checking for $ac_hdr" >&5
11097if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11098 echo $ac_n "(cached) $ac_c" 1>&6
11099else
11100 cat > conftest.$ac_ext <<EOF
11101#line 11102 "configure"
11102#include "confdefs.h"
11103#include <$ac_hdr>
11104EOF
11105ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11106{ (eval echo configure:11107: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11107ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11108if test -z "$ac_err"; then
11109 rm -rf conftest*
11110 eval "ac_cv_header_$ac_safe=yes"
11111else
11112 echo "$ac_err" >&5
11113 echo "configure: failed program was:" >&5
11114 cat conftest.$ac_ext >&5
11115 rm -rf conftest*
11116 eval "ac_cv_header_$ac_safe=no"
11117fi
11118rm -f conftest*
11119fi
11120if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11121 echo "$ac_t""yes" 1>&6
11122 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11123 cat >> confdefs.h <<EOF
11124#define $ac_tr_hdr 1
11125EOF
11126
11127else
11128 echo "$ac_t""no" 1>&6
11129fi
11130done
11131
11132
11133 echo $ac_n "checking for sched_yield in -l$THREADS_LINK""... $ac_c" 1>&6
11134echo "configure:11135: checking for sched_yield in -l$THREADS_LINK" >&5
11135ac_lib_var=`echo $THREADS_LINK'_'sched_yield | sed 'y%./+-%__p_%'`
11136if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11137 echo $ac_n "(cached) $ac_c" 1>&6
11138else
11139 ac_save_LIBS="$LIBS"
11140LIBS="-l$THREADS_LINK $LIBS"
11141cat > conftest.$ac_ext <<EOF
11142#line 11143 "configure"
11143#include "confdefs.h"
11144/* Override any gcc2 internal prototype to avoid an error. */
11145/* We use char because int might match the return type of a gcc2
11146 builtin and then its argument prototype would still apply. */
11147char sched_yield();
11148
11149int main() {
11150sched_yield()
11151; return 0; }
11152EOF
11153if { (eval echo configure:11154: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11154 rm -rf conftest*
11155 eval "ac_cv_lib_$ac_lib_var=yes"
11156else
11157 echo "configure: failed program was:" >&5
11158 cat conftest.$ac_ext >&5
11159 rm -rf conftest*
11160 eval "ac_cv_lib_$ac_lib_var=no"
11161fi
11162rm -f conftest*
11163LIBS="$ac_save_LIBS"
11164
11165fi
11166if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11167 echo "$ac_t""yes" 1>&6
11168 cat >> confdefs.h <<\EOF
11169#define HAVE_SCHED_YIELD 1
11170EOF
11171
11172else
11173 echo "$ac_t""no" 1>&6
11174echo $ac_n "checking for sched_yield in -l"posix4"""... $ac_c" 1>&6
11175echo "configure:11176: checking for sched_yield in -l"posix4"" >&5
11176ac_lib_var=`echo "posix4"'_'sched_yield | sed 'y%./+-%__p_%'`
11177if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11178 echo $ac_n "(cached) $ac_c" 1>&6
11179else
11180 ac_save_LIBS="$LIBS"
11181LIBS="-l"posix4" $LIBS"
11182cat > conftest.$ac_ext <<EOF
11183#line 11184 "configure"
11184#include "confdefs.h"
11185/* Override any gcc2 internal prototype to avoid an error. */
11186/* We use char because int might match the return type of a gcc2
11187 builtin and then its argument prototype would still apply. */
11188char sched_yield();
11189
11190int main() {
11191sched_yield()
11192; return 0; }
11193EOF
11194if { (eval echo configure:11195: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11195 rm -rf conftest*
11196 eval "ac_cv_lib_$ac_lib_var=yes"
11197else
11198 echo "configure: failed program was:" >&5
11199 cat conftest.$ac_ext >&5
11200 rm -rf conftest*
11201 eval "ac_cv_lib_$ac_lib_var=no"
11202fi
11203rm -f conftest*
11204LIBS="$ac_save_LIBS"
11205
11206fi
11207if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11208 echo "$ac_t""yes" 1>&6
11209 cat >> confdefs.h <<\EOF
11210#define HAVE_SCHED_YIELD 1
11211EOF
11212 POSIX4_LINK="-lposix4"
11213else
11214 echo "$ac_t""no" 1>&6
11215echo "configure: warning: wxThread::Yield will not work properly" 1>&2
11216
11217fi
11218
11219
11220fi
11221
11222
11223 echo $ac_n "checking for pthread_attr_getschedpolicy in -l$THREADS_LINK""... $ac_c" 1>&6
11224echo "configure:11225: checking for pthread_attr_getschedpolicy in -l$THREADS_LINK" >&5
11225ac_lib_var=`echo $THREADS_LINK'_'pthread_attr_getschedpolicy | sed 'y%./+-%__p_%'`
11226if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11227 echo $ac_n "(cached) $ac_c" 1>&6
11228else
11229 ac_save_LIBS="$LIBS"
11230LIBS="-l$THREADS_LINK $LIBS"
11231cat > conftest.$ac_ext <<EOF
11232#line 11233 "configure"
11233#include "confdefs.h"
11234/* Override any gcc2 internal prototype to avoid an error. */
11235/* We use char because int might match the return type of a gcc2
11236 builtin and then its argument prototype would still apply. */
11237char pthread_attr_getschedpolicy();
11238
11239int main() {
11240pthread_attr_getschedpolicy()
11241; return 0; }
11242EOF
11243if { (eval echo configure:11244: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11244 rm -rf conftest*
11245 eval "ac_cv_lib_$ac_lib_var=yes"
11246else
11247 echo "configure: failed program was:" >&5
11248 cat conftest.$ac_ext >&5
11249 rm -rf conftest*
11250 eval "ac_cv_lib_$ac_lib_var=no"
11251fi
11252rm -f conftest*
11253LIBS="$ac_save_LIBS"
11254
11255fi
11256if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11257 echo "$ac_t""yes" 1>&6
11258 cat >> confdefs.h <<\EOF
11259#define HAVE_THREAD_PRIORITY_FUNCTIONS 1
11260EOF
11261
11262else
11263 echo "$ac_t""no" 1>&6
11264echo $ac_n "checking for pthread_attr_getschedpolicy in -l"posix4"""... $ac_c" 1>&6
11265echo "configure:11266: checking for pthread_attr_getschedpolicy in -l"posix4"" >&5
11266ac_lib_var=`echo "posix4"'_'pthread_attr_getschedpolicy | sed 'y%./+-%__p_%'`
11267if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11268 echo $ac_n "(cached) $ac_c" 1>&6
11269else
11270 ac_save_LIBS="$LIBS"
11271LIBS="-l"posix4" $LIBS"
11272cat > conftest.$ac_ext <<EOF
11273#line 11274 "configure"
11274#include "confdefs.h"
11275/* Override any gcc2 internal prototype to avoid an error. */
11276/* We use char because int might match the return type of a gcc2
11277 builtin and then its argument prototype would still apply. */
11278char pthread_attr_getschedpolicy();
11279
11280int main() {
11281pthread_attr_getschedpolicy()
11282; return 0; }
11283EOF
11284if { (eval echo configure:11285: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11285 rm -rf conftest*
11286 eval "ac_cv_lib_$ac_lib_var=yes"
11287else
11288 echo "configure: failed program was:" >&5
11289 cat conftest.$ac_ext >&5
11290 rm -rf conftest*
11291 eval "ac_cv_lib_$ac_lib_var=no"
11292fi
11293rm -f conftest*
11294LIBS="$ac_save_LIBS"
11295
11296fi
11297if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11298 echo "$ac_t""yes" 1>&6
11299 cat >> confdefs.h <<\EOF
11300#define HAVE_THREAD_PRIORITY_FUNCTIONS 1
11301EOF
11302 POSIX4_LINK="-lposix4"
11303else
11304 echo "$ac_t""no" 1>&6
11305echo "configure: warning: Setting thread priority will not work" 1>&2
11306
11307fi
11308
11309
11310fi
11311
11312
11313 echo $ac_n "checking for pthread_cancel in -l$THREADS_LINK""... $ac_c" 1>&6
11314echo "configure:11315: checking for pthread_cancel in -l$THREADS_LINK" >&5
11315ac_lib_var=`echo $THREADS_LINK'_'pthread_cancel | sed 'y%./+-%__p_%'`
11316if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11317 echo $ac_n "(cached) $ac_c" 1>&6
11318else
11319 ac_save_LIBS="$LIBS"
11320LIBS="-l$THREADS_LINK $LIBS"
11321cat > conftest.$ac_ext <<EOF
11322#line 11323 "configure"
11323#include "confdefs.h"
11324/* Override any gcc2 internal prototype to avoid an error. */
11325/* We use char because int might match the return type of a gcc2
11326 builtin and then its argument prototype would still apply. */
11327char pthread_cancel();
11328
11329int main() {
11330pthread_cancel()
11331; return 0; }
11332EOF
11333if { (eval echo configure:11334: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11334 rm -rf conftest*
11335 eval "ac_cv_lib_$ac_lib_var=yes"
11336else
11337 echo "configure: failed program was:" >&5
11338 cat conftest.$ac_ext >&5
11339 rm -rf conftest*
11340 eval "ac_cv_lib_$ac_lib_var=no"
11341fi
11342rm -f conftest*
11343LIBS="$ac_save_LIBS"
11344
11345fi
11346if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11347 echo "$ac_t""yes" 1>&6
11348 cat >> confdefs.h <<\EOF
11349#define HAVE_PTHREAD_CANCEL 1
11350EOF
11351
11352else
11353 echo "$ac_t""no" 1>&6
11354echo "configure: warning: wxThread::Kill() will not work properly" 1>&2
11355fi
11356
11357
11358 echo $ac_n "checking for pthread_cleanup_push/pop""... $ac_c" 1>&6
11359echo "configure:11360: checking for pthread_cleanup_push/pop" >&5
11360if eval "test \"`echo '$''{'wx_cv_func_pthread_cleanup_push'+set}'`\" = set"; then
11361 echo $ac_n "(cached) $ac_c" 1>&6
11362else
11363
11364 cat > conftest.$ac_ext <<EOF
11365#line 11366 "configure"
11366#include "confdefs.h"
11367#include <pthread.h>
11368int main() {
11369
11370 pthread_cleanup_push(NULL, NULL);
11371 pthread_cleanup_pop(0);
11372
11373; return 0; }
11374EOF
11375if { (eval echo configure:11376: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11376 rm -rf conftest*
11377
11378 wx_cv_func_pthread_cleanup_push=yes
11379 cat >> confdefs.h <<\EOF
11380#define HAVE_THREAD_CLEANUP_FUNCTIONS 1
11381EOF
11382
11383
11384else
11385 echo "configure: failed program was:" >&5
11386 cat conftest.$ac_ext >&5
11387 rm -rf conftest*
11388
11389 wx_cv_func_pthread_cleanup_push=no
11390
11391fi
11392rm -f conftest*
11393
11394fi
11395
11396echo "$ac_t""$wx_cv_func_pthread_cleanup_push" 1>&6
11397
11398 THREADS_LINK="-l$THREADS_LINK"
11399fi
11400
11401fi
11402
11403if test "$wxUSE_THREADS" = "yes"; then
11404 cat >> confdefs.h <<\EOF
11405#define wxUSE_THREADS 1
11406EOF
11407
11408
11409 CFLAGS="${CFLAGS} -D_REENTRANT"
11410 CXXFLAGS="${CXXFLAGS} -D_REENTRANT"
11411
11412 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
11413else
11414 if test "$ac_cv_func_strtok_r" = "yes"; then
11415 echo $ac_n "checking if -D_REENTRANT is needed""... $ac_c" 1>&6
11416echo "configure:11417: checking if -D_REENTRANT is needed" >&5
11417 if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
11418 CFLAGS="${CFLAGS} -D_REENTRANT"
11419 CXXFLAGS="${CXXFLAGS} -D_REENTRANT"
11420 echo "$ac_t""yes" 1>&6
11421 else
11422 echo "$ac_t""no" 1>&6
11423 fi
11424 fi
11425fi
11426
11427if test "$WXGTK13" = 1 ; then
11428 cat >> confdefs.h <<EOF
11429#define __WXGTK13__ $WXGTK13
11430EOF
11431
11432 WXGTK12=1
11433fi
11434
11435if test "$WXGTK12" = 1 ; then
11436 cat >> confdefs.h <<EOF
11437#define __WXGTK12__ $WXGTK12
11438EOF
11439
11440fi
11441
11442if test "$WXWINE" = 1 ; then
11443 TOOLKIT_DEF="${TOOLKIT_DEF} -D__WXWINE__"
11444fi
11445
11446if test "$wxUSE_CYGWIN" = 1 ; then
11447 TOOLKIT_DEF="${TOOLKIT_DEF} -D__WIN95__"
11448fi
11449
11450WXDEBUG=
11451
11452if test "$wxUSE_DEBUG_INFO" = "yes" ; then
11453 WXDEBUG="-g"
11454 wxUSE_OPTIMISE=no
11455fi
11456
11457if test "$wxUSE_DEBUG_GDB" = "yes" ; then
11458 wxUSE_DEBUG_INFO=yes
11459 WXDEBUG="-ggdb"
11460fi
11461
11462if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
11463 cat >> confdefs.h <<\EOF
11464#define WXDEBUG 1
11465EOF
11466
11467 WXDEBUG_DEFINE="-D__WXDEBUG__"
11468else
11469 if test "$wxUSE_GTK" = 1 ; then
11470 WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS"
11471 fi
11472fi
11473
11474if test "$wxUSE_MEM_TRACING" = "yes" ; then
11475 cat >> confdefs.h <<\EOF
11476#define wxUSE_MEMORY_TRACING 1
11477EOF
11478
11479 cat >> confdefs.h <<\EOF
11480#define wxUSE_GLOBAL_MEMORY_OPERATORS 1
11481EOF
11482
11483 cat >> confdefs.h <<\EOF
11484#define wxUSE_DEBUG_NEW_ALWAYS 1
11485EOF
11486
11487 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
11488fi
11489
11490if test "$wxUSE_DMALLOC" = "yes" ; then
11491 DMALLOC_LINK="-ldmalloc"
11492fi
11493
11494PROFILE=
11495if test "$wxUSE_PROFILE" = "yes" ; then
11496 PROFILE="-pg"
11497fi
11498
11499DEP_INFO_FLAGS=
11500CODE_GEN_FLAGS=
11501if test "$GCC" = yes ; then
11502 if test "$wxUSE_NO_RTTI" = "yes" ; then
11503 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fno-rtti"
11504 fi
11505 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
11506 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fno-exceptions"
11507 fi
11508 if test "$wxUSE_PERMISSIVE" = "yes" ; then
11509 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive"
11510 fi
11511 if test "$wxUSE_NO_DEPS" = "no" ; then
11512 DEP_INFO_FLAGS="-MMD"
11513 fi
11514fi
11515
11516
11517CXXFLAGS=`echo "${CXXFLAGS}" | sed "s/\-O.//g" `
11518CFLAGS=`echo "${CFLAGS}" | sed "s/\-O.//g" `
11519if test "$wxUSE_OPTIMISE" = "no" ; then
11520 OPTIMISE=
11521else
11522 if test "$GCC" = yes ; then
11523 OPTIMISE="-O2"
11524 case "${host}" in
11525 i586-*-*|i686-*-* )
11526 OPTIMISE="${OPTIMISE} "
11527 ;;
11528 esac
11529 else
11530 OPTIMISE="-O"
11531 fi
11532fi
11533
11534
11535ZLIB_INCLUDE=
11536if test "$wxUSE_ZLIB" = "yes" -o "$wxUSE_ZLIB" = "sys" ; then
11537 cat >> confdefs.h <<\EOF
11538#define wxUSE_ZLIB 1
11539EOF
11540
11541 if test "$wxUSE_ZLIB" = "yes" ; then
11542 ZLIB_INCLUDE="-I\${top_srcdir}/src/zlib"
11543 else
11544 ZLIB_LINK=
11545 ac_safe=`echo "zlib.h" | sed 'y%./+-%__p_%'`
11546echo $ac_n "checking for zlib.h""... $ac_c" 1>&6
11547echo "configure:11548: checking for zlib.h" >&5
11548if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11549 echo $ac_n "(cached) $ac_c" 1>&6
11550else
11551 cat > conftest.$ac_ext <<EOF
11552#line 11553 "configure"
11553#include "confdefs.h"
11554#include <zlib.h>
11555EOF
11556ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11557{ (eval echo configure:11558: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11558ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11559if test -z "$ac_err"; then
11560 rm -rf conftest*
11561 eval "ac_cv_header_$ac_safe=yes"
11562else
11563 echo "$ac_err" >&5
11564 echo "configure: failed program was:" >&5
11565 cat conftest.$ac_ext >&5
11566 rm -rf conftest*
11567 eval "ac_cv_header_$ac_safe=no"
11568fi
11569rm -f conftest*
11570fi
11571if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11572 echo "$ac_t""yes" 1>&6
11573 echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6
11574echo "configure:11575: checking for deflate in -lz" >&5
11575ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'`
11576if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11577 echo $ac_n "(cached) $ac_c" 1>&6
11578else
11579 ac_save_LIBS="$LIBS"
11580LIBS="-lz $LIBS"
11581cat > conftest.$ac_ext <<EOF
11582#line 11583 "configure"
11583#include "confdefs.h"
11584/* Override any gcc2 internal prototype to avoid an error. */
11585/* We use char because int might match the return type of a gcc2
11586 builtin and then its argument prototype would still apply. */
11587char deflate();
11588
11589int main() {
11590deflate()
11591; return 0; }
11592EOF
11593if { (eval echo configure:11594: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11594 rm -rf conftest*
11595 eval "ac_cv_lib_$ac_lib_var=yes"
11596else
11597 echo "configure: failed program was:" >&5
11598 cat conftest.$ac_ext >&5
11599 rm -rf conftest*
11600 eval "ac_cv_lib_$ac_lib_var=no"
11601fi
11602rm -f conftest*
11603LIBS="$ac_save_LIBS"
11604
11605fi
11606if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11607 echo "$ac_t""yes" 1>&6
11608 ZLIB_LINK="-lz"
11609else
11610 echo "$ac_t""no" 1>&6
11611fi
11612
11613else
11614 echo "$ac_t""no" 1>&6
11615fi
11616
11617 if test "x$ZLIB_LINK" = "x" ; then
11618 { echo "configure: error: system zlib compression library not found! Use --with-zlib=yes to use built-in zlib" 1>&2; exit 1; }
11619 fi
11620 fi
11621fi
11622
11623PNG_INCLUDE=
11624if test "$wxUSE_LIBPNG" = "yes" -o "$wxUSE_LIBPNG" = "sys" ; then
11625 cat >> confdefs.h <<\EOF
11626#define wxUSE_LIBPNG 1
11627EOF
11628
11629 if test "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
11630 echo "configure: warning: --with-libpng=sys doesn't work without --with-zlib=sys, will compile the built-in libpng instead" 1>&2
11631 wxUSE_LIBPNG=yes
11632 fi
11633
11634 if test "$wxUSE_LIBPNG" = "yes" ; then
11635 PNG_INCLUDE="-I\${top_srcdir}/src/png"
11636 else
11637 PNG_LINK=
11638 ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'`
11639echo $ac_n "checking for png.h""... $ac_c" 1>&6
11640echo "configure:11641: checking for png.h" >&5
11641if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11642 echo $ac_n "(cached) $ac_c" 1>&6
11643else
11644 cat > conftest.$ac_ext <<EOF
11645#line 11646 "configure"
11646#include "confdefs.h"
11647#include <png.h>
11648EOF
11649ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11650{ (eval echo configure:11651: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11651ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11652if test -z "$ac_err"; then
11653 rm -rf conftest*
11654 eval "ac_cv_header_$ac_safe=yes"
11655else
11656 echo "$ac_err" >&5
11657 echo "configure: failed program was:" >&5
11658 cat conftest.$ac_ext >&5
11659 rm -rf conftest*
11660 eval "ac_cv_header_$ac_safe=no"
11661fi
11662rm -f conftest*
11663fi
11664if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11665 echo "$ac_t""yes" 1>&6
11666 echo $ac_n "checking for png_check_sig in -lpng""... $ac_c" 1>&6
11667echo "configure:11668: checking for png_check_sig in -lpng" >&5
11668ac_lib_var=`echo png'_'png_check_sig | sed 'y%./+-%__p_%'`
11669if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11670 echo $ac_n "(cached) $ac_c" 1>&6
11671else
11672 ac_save_LIBS="$LIBS"
11673LIBS="-lpng -lz -lm $LIBS"
11674cat > conftest.$ac_ext <<EOF
11675#line 11676 "configure"
11676#include "confdefs.h"
11677/* Override any gcc2 internal prototype to avoid an error. */
11678/* We use char because int might match the return type of a gcc2
11679 builtin and then its argument prototype would still apply. */
11680char png_check_sig();
11681
11682int main() {
11683png_check_sig()
11684; return 0; }
11685EOF
11686if { (eval echo configure:11687: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11687 rm -rf conftest*
11688 eval "ac_cv_lib_$ac_lib_var=yes"
11689else
11690 echo "configure: failed program was:" >&5
11691 cat conftest.$ac_ext >&5
11692 rm -rf conftest*
11693 eval "ac_cv_lib_$ac_lib_var=no"
11694fi
11695rm -f conftest*
11696LIBS="$ac_save_LIBS"
11697
11698fi
11699if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11700 echo "$ac_t""yes" 1>&6
11701 PNG_LINK="-lpng"
11702else
11703 echo "$ac_t""no" 1>&6
11704fi
11705
11706
11707else
11708 echo "$ac_t""no" 1>&6
11709fi
11710
11711 if test "x$PNG_LINK" = "x" ; then
11712 { echo "configure: error: system png library not found! Use --with-png=yes to use built-in libpng" 1>&2; exit 1; }
11713 fi
11714 fi
11715
11716 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
11717fi
11718
11719JPEG_INCLUDE=
11720if test "$wxUSE_LIBJPEG" = "yes" -o "$wxUSE_LIBJPEG" = "sys" ; then
11721 cat >> confdefs.h <<\EOF
11722#define wxUSE_LIBJPEG 1
11723EOF
11724
11725 if test "$wxUSE_LIBJPEG" = "yes" ; then
11726 JPEG_INCLUDE="-I\${top_srcdir}/src/jpeg"
11727 else
11728 JPEG_LINK=
11729 ac_safe=`echo "jpeglib.h" | sed 'y%./+-%__p_%'`
11730echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6
11731echo "configure:11732: checking for jpeglib.h" >&5
11732if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11733 echo $ac_n "(cached) $ac_c" 1>&6
11734else
11735 cat > conftest.$ac_ext <<EOF
11736#line 11737 "configure"
11737#include "confdefs.h"
11738#include <jpeglib.h>
11739EOF
11740ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11741{ (eval echo configure:11742: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11742ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11743if test -z "$ac_err"; then
11744 rm -rf conftest*
11745 eval "ac_cv_header_$ac_safe=yes"
11746else
11747 echo "$ac_err" >&5
11748 echo "configure: failed program was:" >&5
11749 cat conftest.$ac_ext >&5
11750 rm -rf conftest*
11751 eval "ac_cv_header_$ac_safe=no"
11752fi
11753rm -f conftest*
11754fi
11755if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11756 echo "$ac_t""yes" 1>&6
11757 echo $ac_n "checking for jpeg_read_header in -ljpeg""... $ac_c" 1>&6
11758echo "configure:11759: checking for jpeg_read_header in -ljpeg" >&5
11759ac_lib_var=`echo jpeg'_'jpeg_read_header | sed 'y%./+-%__p_%'`
11760if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11761 echo $ac_n "(cached) $ac_c" 1>&6
11762else
11763 ac_save_LIBS="$LIBS"
11764LIBS="-ljpeg $LIBS"
11765cat > conftest.$ac_ext <<EOF
11766#line 11767 "configure"
11767#include "confdefs.h"
11768/* Override any gcc2 internal prototype to avoid an error. */
11769/* We use char because int might match the return type of a gcc2
11770 builtin and then its argument prototype would still apply. */
11771char jpeg_read_header();
11772
11773int main() {
11774jpeg_read_header()
11775; return 0; }
11776EOF
11777if { (eval echo configure:11778: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11778 rm -rf conftest*
11779 eval "ac_cv_lib_$ac_lib_var=yes"
11780else
11781 echo "configure: failed program was:" >&5
11782 cat conftest.$ac_ext >&5
11783 rm -rf conftest*
11784 eval "ac_cv_lib_$ac_lib_var=no"
11785fi
11786rm -f conftest*
11787LIBS="$ac_save_LIBS"
11788
11789fi
11790if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11791 echo "$ac_t""yes" 1>&6
11792 JPEG_LINK="-ljpeg"
11793else
11794 echo "$ac_t""no" 1>&6
11795fi
11796
11797else
11798 echo "$ac_t""no" 1>&6
11799fi
11800
11801 if test "x$JPEG_LINK" = "x" ; then
11802 { echo "configure: error: system jpeg library not found! Use --with-jpeg=yes to use built-in one" 1>&2; exit 1; }
11803 fi
11804 fi
11805fi
11806
11807TIFF_INCLUDE=
11808if test "$wxUSE_LIBTIFF" = "yes" ; then
11809 cat >> confdefs.h <<\EOF
11810#define wxUSE_LIBTIFF 1
11811EOF
11812
11813 TIFF_INCLUDE="-I\${top_srcdir}/src/tiff"
11814fi
11815
11816if test "$wxUSE_OPENGL" = "yes"; then
11817 ac_safe=`echo "GL/gl.h" | sed 'y%./+-%__p_%'`
11818echo $ac_n "checking for GL/gl.h""... $ac_c" 1>&6
11819echo "configure:11820: checking for GL/gl.h" >&5
11820if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11821 echo $ac_n "(cached) $ac_c" 1>&6
11822else
11823 cat > conftest.$ac_ext <<EOF
11824#line 11825 "configure"
11825#include "confdefs.h"
11826#include <GL/gl.h>
11827EOF
11828ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11829{ (eval echo configure:11830: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11830ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11831if test -z "$ac_err"; then
11832 rm -rf conftest*
11833 eval "ac_cv_header_$ac_safe=yes"
11834else
11835 echo "$ac_err" >&5
11836 echo "configure: failed program was:" >&5
11837 cat conftest.$ac_ext >&5
11838 rm -rf conftest*
11839 eval "ac_cv_header_$ac_safe=no"
11840fi
11841rm -f conftest*
11842fi
11843if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11844 echo "$ac_t""yes" 1>&6
11845
11846 cat >> confdefs.h <<\EOF
11847#define wxUSE_OPENGL 1
11848EOF
11849
11850 cat >> confdefs.h <<\EOF
11851#define wxUSE_GLCANVAS 1
11852EOF
11853
11854 echo $ac_n "checking for glFlush in -lGL""... $ac_c" 1>&6
11855echo "configure:11856: checking for glFlush in -lGL" >&5
11856ac_lib_var=`echo GL'_'glFlush | sed 'y%./+-%__p_%'`
11857if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11858 echo $ac_n "(cached) $ac_c" 1>&6
11859else
11860 ac_save_LIBS="$LIBS"
11861LIBS="-lGL $LIBS"
11862cat > conftest.$ac_ext <<EOF
11863#line 11864 "configure"
11864#include "confdefs.h"
11865/* Override any gcc2 internal prototype to avoid an error. */
11866/* We use char because int might match the return type of a gcc2
11867 builtin and then its argument prototype would still apply. */
11868char glFlush();
11869
11870int main() {
11871glFlush()
11872; return 0; }
11873EOF
11874if { (eval echo configure:11875: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11875 rm -rf conftest*
11876 eval "ac_cv_lib_$ac_lib_var=yes"
11877else
11878 echo "configure: failed program was:" >&5
11879 cat conftest.$ac_ext >&5
11880 rm -rf conftest*
11881 eval "ac_cv_lib_$ac_lib_var=no"
11882fi
11883rm -f conftest*
11884LIBS="$ac_save_LIBS"
11885
11886fi
11887if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11888 echo "$ac_t""yes" 1>&6
11889
11890 OPENGL_LINK="-lGL"
11891
11892else
11893 echo "$ac_t""no" 1>&6
11894
11895 echo $ac_n "checking for glFlush in -lMesaGL""... $ac_c" 1>&6
11896echo "configure:11897: checking for glFlush in -lMesaGL" >&5
11897ac_lib_var=`echo MesaGL'_'glFlush | sed 'y%./+-%__p_%'`
11898if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11899 echo $ac_n "(cached) $ac_c" 1>&6
11900else
11901 ac_save_LIBS="$LIBS"
11902LIBS="-lMesaGL $LIBS"
11903cat > conftest.$ac_ext <<EOF
11904#line 11905 "configure"
11905#include "confdefs.h"
11906/* Override any gcc2 internal prototype to avoid an error. */
11907/* We use char because int might match the return type of a gcc2
11908 builtin and then its argument prototype would still apply. */
11909char glFlush();
11910
11911int main() {
11912glFlush()
11913; return 0; }
11914EOF
11915if { (eval echo configure:11916: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11916 rm -rf conftest*
11917 eval "ac_cv_lib_$ac_lib_var=yes"
11918else
11919 echo "configure: failed program was:" >&5
11920 cat conftest.$ac_ext >&5
11921 rm -rf conftest*
11922 eval "ac_cv_lib_$ac_lib_var=no"
11923fi
11924rm -f conftest*
11925LIBS="$ac_save_LIBS"
11926
11927fi
11928if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11929 echo "$ac_t""yes" 1>&6
11930
11931 OPENGL_LINK="-lMesaGL"
11932
11933else
11934 echo "$ac_t""no" 1>&6
11935fi
11936
11937
11938fi
11939
11940
11941else
11942 echo "$ac_t""no" 1>&6
11943wxUSE_OPENGL=0
11944fi
11945
11946fi
11947
11948
11949if test "$wxUSE_GUI" = "yes"; then
11950 cat >> confdefs.h <<\EOF
11951#define wxUSE_GUI 1
11952EOF
11953
11954
11955 else
11956 cat >> confdefs.h <<\EOF
11957#define wxUSE_NOGUI 1
11958EOF
11959
11960fi
11961
11962
11963if test "$wxUSE_UNIX" = "yes"; then
11964 cat >> confdefs.h <<\EOF
11965#define wxUSE_UNIX 1
11966EOF
11967
11968fi
11969
11970
11971if test "$wxUSE_APPLE_IEEE" = "yes"; then
11972 cat >> confdefs.h <<\EOF
11973#define wxUSE_APPLE_IEEE 1
11974EOF
11975
11976fi
11977
11978if test "$wxUSE_WAVE" = "yes"; then
11979 cat >> confdefs.h <<\EOF
11980#define wxUSE_WAVE 1
11981EOF
11982
11983fi
11984
11985if test "$wxUSE_FILE" = "yes"; then
11986 cat >> confdefs.h <<\EOF
11987#define wxUSE_FILE 1
11988EOF
11989
11990fi
11991
11992if test "$wxUSE_FILESYSTEM" = "yes"; then
11993 cat >> confdefs.h <<\EOF
11994#define wxUSE_FILESYSTEM 1
11995EOF
11996
11997fi
11998
11999if test "$wxUSE_FS_INET" = "yes"; then
12000 cat >> confdefs.h <<\EOF
12001#define wxUSE_FS_INET 1
12002EOF
12003
12004fi
12005
12006if test "$wxUSE_FS_ZIP" = "yes"; then
12007 cat >> confdefs.h <<\EOF
12008#define wxUSE_FS_ZIP 1
12009EOF
12010
12011fi
12012
12013if test "$wxUSE_ZIPSTREAM" = "yes"; then
12014 cat >> confdefs.h <<\EOF
12015#define wxUSE_ZIPSTREAM 1
12016EOF
12017
12018fi
12019
12020if test "$wxUSE_BUSYINFO" = "yes"; then
12021 cat >> confdefs.h <<\EOF
12022#define wxUSE_BUSYINFO 1
12023EOF
12024
12025fi
12026
12027if test "$wxUSE_STD_IOSTREAM" = "yes"; then
12028 cat >> confdefs.h <<\EOF
12029#define wxUSE_STD_IOSTREAM 1
12030EOF
12031
12032fi
12033
12034if test "$wxUSE_TEXTFILE" = "yes"; then
12035 if test "$wxUSE_FILE" != "yes"; then
12036 echo "configure: warning: wxTextFile requires wxFile and it won't be compiled without it" 1>&2
12037 else
12038 cat >> confdefs.h <<\EOF
12039#define wxUSE_TEXTFILE 1
12040EOF
12041
12042 fi
12043fi
12044
12045if test "$wxUSE_CONFIG" = "yes" ; then
12046 if test "$wxUSE_TEXTFILE" != "yes"; then
12047 echo "configure: warning: wxConfig requires wxTextFile and it won't be compiled without it" 1>&2
12048 else
12049 cat >> confdefs.h <<\EOF
12050#define wxUSE_CONFIG 1
12051EOF
12052
12053 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
12054 fi
12055fi
12056
12057if test "$wxUSE_INTL" = "yes" ; then
12058 if test "$wxUSE_FILE" != "yes"; then
12059 echo "configure: warning: I18n code requires wxFile and it won't be compiled without it" 1>&2
12060 else
12061 cat >> confdefs.h <<\EOF
12062#define wxUSE_INTL 1
12063EOF
12064
12065 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
12066 fi
12067fi
12068
12069if test "$wxUSE_LOG" = "yes"; then
12070 cat >> confdefs.h <<\EOF
12071#define wxUSE_LOG 1
12072EOF
12073
12074fi
12075
12076if test "$wxUSE_LONGLONG" = "yes"; then
12077 cat >> confdefs.h <<\EOF
12078#define wxUSE_LONGLONG 1
12079EOF
12080
12081fi
12082
12083if test "$wxUSE_PLOT" = "yes"; then
12084 cat >> confdefs.h <<\EOF
12085#define wxUSE_PLOT 1
12086EOF
12087
12088fi
12089
12090if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then
12091 cat >> confdefs.h <<\EOF
12092#define wxUSE_DIALUP_MANAGER 1
12093EOF
12094
12095 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
12096fi
12097
12098if test "$wxUSE_STREAMS" = "yes" ; then
12099 cat >> confdefs.h <<\EOF
12100#define wxUSE_STREAMS 1
12101EOF
12102
12103fi
12104
12105
12106if test "$wxUSE_TIMEDATE" = "yes"; then
12107 for ac_func in strptime
12108do
12109echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12110echo "configure:12111: checking for $ac_func" >&5
12111if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12112 echo $ac_n "(cached) $ac_c" 1>&6
12113else
12114 cat > conftest.$ac_ext <<EOF
12115#line 12116 "configure"
12116#include "confdefs.h"
12117/* System header to define __stub macros and hopefully few prototypes,
12118 which can conflict with char $ac_func(); below. */
12119#include <assert.h>
12120/* Override any gcc2 internal prototype to avoid an error. */
12121/* We use char because int might match the return type of a gcc2
12122 builtin and then its argument prototype would still apply. */
12123char $ac_func();
12124
12125int main() {
12126
12127/* The GNU C library defines this for functions which it implements
12128 to always fail with ENOSYS. Some functions are actually named
12129 something starting with __ and the normal name is an alias. */
12130#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12131choke me
12132#else
12133$ac_func();
12134#endif
12135
12136; return 0; }
12137EOF
12138if { (eval echo configure:12139: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12139 rm -rf conftest*
12140 eval "ac_cv_func_$ac_func=yes"
12141else
12142 echo "configure: failed program was:" >&5
12143 cat conftest.$ac_ext >&5
12144 rm -rf conftest*
12145 eval "ac_cv_func_$ac_func=no"
12146fi
12147rm -f conftest*
12148fi
12149
12150if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12151 echo "$ac_t""yes" 1>&6
12152 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12153 cat >> confdefs.h <<EOF
12154#define $ac_tr_func 1
12155EOF
12156
12157else
12158 echo "$ac_t""no" 1>&6
12159fi
12160done
12161
12162
12163 echo $ac_n "checking for timezone variable in <time.h>""... $ac_c" 1>&6
12164echo "configure:12165: checking for timezone variable in <time.h>" >&5
12165if eval "test \"`echo '$''{'wx_cv_var_timezone'+set}'`\" = set"; then
12166 echo $ac_n "(cached) $ac_c" 1>&6
12167else
12168
12169 cat > conftest.$ac_ext <<EOF
12170#line 12171 "configure"
12171#include "confdefs.h"
12172
12173 #include <time.h>
12174
12175int main() {
12176
12177 int tz;
12178 tz = __timezone;
12179
12180; return 0; }
12181EOF
12182if { (eval echo configure:12183: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12183 rm -rf conftest*
12184
12185 wx_cv_var_timezone=__timezone
12186
12187else
12188 echo "configure: failed program was:" >&5
12189 cat conftest.$ac_ext >&5
12190 rm -rf conftest*
12191
12192 cat > conftest.$ac_ext <<EOF
12193#line 12194 "configure"
12194#include "confdefs.h"
12195
12196 #include <time.h>
12197
12198int main() {
12199
12200 int tz;
12201 tz = _timezone;
12202
12203; return 0; }
12204EOF
12205if { (eval echo configure:12206: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12206 rm -rf conftest*
12207
12208 wx_cv_var_timezone=_timezone
12209
12210else
12211 echo "configure: failed program was:" >&5
12212 cat conftest.$ac_ext >&5
12213 rm -rf conftest*
12214
12215 cat > conftest.$ac_ext <<EOF
12216#line 12217 "configure"
12217#include "confdefs.h"
12218
12219 #include <time.h>
12220
12221int main() {
12222
12223 int tz;
12224 tz = timezone;
12225
12226; return 0; }
12227EOF
12228if { (eval echo configure:12229: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12229 rm -rf conftest*
12230
12231 wx_cv_var_timezone=timezone
12232
12233else
12234 echo "configure: failed program was:" >&5
12235 cat conftest.$ac_ext >&5
12236 rm -rf conftest*
12237 { echo "configure: error: no timezone variable" 1>&2; exit 1; }
12238
12239fi
12240rm -f conftest*
12241
12242
12243fi
12244rm -f conftest*
12245
12246
12247fi
12248rm -f conftest*
12249
12250
12251fi
12252
12253echo "$ac_t""$wx_cv_var_timezone" 1>&6
12254
12255 cat >> confdefs.h <<EOF
12256#define WX_TIMEZONE $wx_cv_var_timezone
12257EOF
12258
12259
12260 for ac_func in localtime
12261do
12262echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12263echo "configure:12264: checking for $ac_func" >&5
12264if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12265 echo $ac_n "(cached) $ac_c" 1>&6
12266else
12267 cat > conftest.$ac_ext <<EOF
12268#line 12269 "configure"
12269#include "confdefs.h"
12270/* System header to define __stub macros and hopefully few prototypes,
12271 which can conflict with char $ac_func(); below. */
12272#include <assert.h>
12273/* Override any gcc2 internal prototype to avoid an error. */
12274/* We use char because int might match the return type of a gcc2
12275 builtin and then its argument prototype would still apply. */
12276char $ac_func();
12277
12278int main() {
12279
12280/* The GNU C library defines this for functions which it implements
12281 to always fail with ENOSYS. Some functions are actually named
12282 something starting with __ and the normal name is an alias. */
12283#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12284choke me
12285#else
12286$ac_func();
12287#endif
12288
12289; return 0; }
12290EOF
12291if { (eval echo configure:12292: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12292 rm -rf conftest*
12293 eval "ac_cv_func_$ac_func=yes"
12294else
12295 echo "configure: failed program was:" >&5
12296 cat conftest.$ac_ext >&5
12297 rm -rf conftest*
12298 eval "ac_cv_func_$ac_func=no"
12299fi
12300rm -f conftest*
12301fi
12302
12303if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12304 echo "$ac_t""yes" 1>&6
12305 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12306 cat >> confdefs.h <<EOF
12307#define $ac_tr_func 1
12308EOF
12309
12310else
12311 echo "$ac_t""no" 1>&6
12312fi
12313done
12314
12315
12316 if test "$ac_cv_func_localtime" = "yes"; then
12317 echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6
12318echo "configure:12319: checking for tm_gmtoff in struct tm" >&5
12319if eval "test \"`echo '$''{'wx_cv_struct_tm_has_gmtoff'+set}'`\" = set"; then
12320 echo $ac_n "(cached) $ac_c" 1>&6
12321else
12322
12323 cat > conftest.$ac_ext <<EOF
12324#line 12325 "configure"
12325#include "confdefs.h"
12326
12327 #include <time.h>
12328
12329int main() {
12330
12331 struct tm tm;
12332 tm.tm_gmtoff++;
12333
12334; return 0; }
12335EOF
12336if { (eval echo configure:12337: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12337 rm -rf conftest*
12338
12339 wx_cv_struct_tm_has_gmtoff=yes
12340 cat >> confdefs.h <<\EOF
12341#define WX_GMTOFF_IN_TM 1
12342EOF
12343
12344
12345else
12346 echo "configure: failed program was:" >&5
12347 cat conftest.$ac_ext >&5
12348 rm -rf conftest*
12349 wx_cv_struct_tm_has_gmtoff=no
12350
12351fi
12352rm -f conftest*
12353
12354fi
12355
12356echo "$ac_t""$wx_cv_struct_tm_has_gmtoff" 1>&6
12357 fi
12358
12359 for ac_func in gettimeofday ftime
12360do
12361echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12362echo "configure:12363: checking for $ac_func" >&5
12363if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12364 echo $ac_n "(cached) $ac_c" 1>&6
12365else
12366 cat > conftest.$ac_ext <<EOF
12367#line 12368 "configure"
12368#include "confdefs.h"
12369/* System header to define __stub macros and hopefully few prototypes,
12370 which can conflict with char $ac_func(); below. */
12371#include <assert.h>
12372/* Override any gcc2 internal prototype to avoid an error. */
12373/* We use char because int might match the return type of a gcc2
12374 builtin and then its argument prototype would still apply. */
12375char $ac_func();
12376
12377int main() {
12378
12379/* The GNU C library defines this for functions which it implements
12380 to always fail with ENOSYS. Some functions are actually named
12381 something starting with __ and the normal name is an alias. */
12382#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12383choke me
12384#else
12385$ac_func();
12386#endif
12387
12388; return 0; }
12389EOF
12390if { (eval echo configure:12391: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12391 rm -rf conftest*
12392 eval "ac_cv_func_$ac_func=yes"
12393else
12394 echo "configure: failed program was:" >&5
12395 cat conftest.$ac_ext >&5
12396 rm -rf conftest*
12397 eval "ac_cv_func_$ac_func=no"
12398fi
12399rm -f conftest*
12400fi
12401
12402if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12403 echo "$ac_t""yes" 1>&6
12404 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12405 cat >> confdefs.h <<EOF
12406#define $ac_tr_func 1
12407EOF
12408 break
12409else
12410 echo "$ac_t""no" 1>&6
12411fi
12412done
12413
12414
12415 if test "$ac_cv_func_gettimeofday" = "yes"; then
12416 echo $ac_n "checking whether gettimeofday takes two arguments""... $ac_c" 1>&6
12417echo "configure:12418: checking whether gettimeofday takes two arguments" >&5
12418if eval "test \"`echo '$''{'wx_cv_func_gettimeofday_has_2_args'+set}'`\" = set"; then
12419 echo $ac_n "(cached) $ac_c" 1>&6
12420else
12421
12422
12423 ac_ext=C
12424# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12425ac_cpp='$CXXCPP $CPPFLAGS'
12426ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12427ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12428cross_compiling=$ac_cv_prog_cxx_cross
12429
12430
12431 cat > conftest.$ac_ext <<EOF
12432#line 12433 "configure"
12433#include "confdefs.h"
12434
12435 #include <sys/time.h>
12436 #include <unistd.h>
12437
12438int main() {
12439
12440 struct timeval tv;
12441 struct timezone tz;
12442 gettimeofday(&tv, &tz);
12443
12444; return 0; }
12445EOF
12446if { (eval echo configure:12447: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12447 rm -rf conftest*
12448 wx_cv_func_gettimeofday_has_2_args=yes
12449else
12450 echo "configure: failed program was:" >&5
12451 cat conftest.$ac_ext >&5
12452 rm -rf conftest*
12453 cat > conftest.$ac_ext <<EOF
12454#line 12455 "configure"
12455#include "confdefs.h"
12456
12457 #include <sys/time.h>
12458 #include <unistd.h>
12459
12460int main() {
12461
12462 struct timeval tv;
12463 gettimeofday(&tv);
12464
12465; return 0; }
12466EOF
12467if { (eval echo configure:12468: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12468 rm -rf conftest*
12469 wx_cv_func_gettimeofday_has_2_args=no
12470else
12471 echo "configure: failed program was:" >&5
12472 cat conftest.$ac_ext >&5
12473 rm -rf conftest*
12474 wx_cv_func_gettimeofday_has_2_args=unknown
12475
12476fi
12477rm -f conftest*
12478
12479fi
12480rm -f conftest*
12481 ac_ext=c
12482# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12483ac_cpp='$CPP $CPPFLAGS'
12484ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12485ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12486cross_compiling=$ac_cv_prog_cc_cross
12487
12488
12489fi
12490
12491echo "$ac_t""$wx_cv_func_gettimeofday_has_2_args" 1>&6
12492
12493 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
12494 cat >> confdefs.h <<\EOF
12495#define WX_GETTIMEOFDAY_NO_TZ 1
12496EOF
12497
12498 fi
12499 fi
12500
12501 cat >> confdefs.h <<\EOF
12502#define wxUSE_TIMEDATE 1
12503EOF
12504
12505 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
12506fi
12507
12508
12509if test "$TOOLKIT" != "MSW"; then
12510
12511if test "$wxUSE_SOCKETS" = "yes"; then
12512 echo $ac_n "checking for socket""... $ac_c" 1>&6
12513echo "configure:12514: checking for socket" >&5
12514if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
12515 echo $ac_n "(cached) $ac_c" 1>&6
12516else
12517 cat > conftest.$ac_ext <<EOF
12518#line 12519 "configure"
12519#include "confdefs.h"
12520/* System header to define __stub macros and hopefully few prototypes,
12521 which can conflict with char socket(); below. */
12522#include <assert.h>
12523/* Override any gcc2 internal prototype to avoid an error. */
12524/* We use char because int might match the return type of a gcc2
12525 builtin and then its argument prototype would still apply. */
12526char socket();
12527
12528int main() {
12529
12530/* The GNU C library defines this for functions which it implements
12531 to always fail with ENOSYS. Some functions are actually named
12532 something starting with __ and the normal name is an alias. */
12533#if defined (__stub_socket) || defined (__stub___socket)
12534choke me
12535#else
12536socket();
12537#endif
12538
12539; return 0; }
12540EOF
12541if { (eval echo configure:12542: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12542 rm -rf conftest*
12543 eval "ac_cv_func_socket=yes"
12544else
12545 echo "configure: failed program was:" >&5
12546 cat conftest.$ac_ext >&5
12547 rm -rf conftest*
12548 eval "ac_cv_func_socket=no"
12549fi
12550rm -f conftest*
12551fi
12552
12553if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
12554 echo "$ac_t""yes" 1>&6
12555 :
12556else
12557 echo "$ac_t""no" 1>&6
12558echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
12559echo "configure:12560: checking for socket in -lsocket" >&5
12560ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
12561if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12562 echo $ac_n "(cached) $ac_c" 1>&6
12563else
12564 ac_save_LIBS="$LIBS"
12565LIBS="-lsocket $LIBS"
12566cat > conftest.$ac_ext <<EOF
12567#line 12568 "configure"
12568#include "confdefs.h"
12569/* Override any gcc2 internal prototype to avoid an error. */
12570/* We use char because int might match the return type of a gcc2
12571 builtin and then its argument prototype would still apply. */
12572char socket();
12573
12574int main() {
12575socket()
12576; return 0; }
12577EOF
12578if { (eval echo configure:12579: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12579 rm -rf conftest*
12580 eval "ac_cv_lib_$ac_lib_var=yes"
12581else
12582 echo "configure: failed program was:" >&5
12583 cat conftest.$ac_ext >&5
12584 rm -rf conftest*
12585 eval "ac_cv_lib_$ac_lib_var=no"
12586fi
12587rm -f conftest*
12588LIBS="$ac_save_LIBS"
12589
12590fi
12591if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12592 echo "$ac_t""yes" 1>&6
12593 INET_LINK="$INET_LINK -lsocket"
12594else
12595 echo "$ac_t""no" 1>&6
12596
12597 echo "configure: warning: socket library not found - sockets will be disabled" 1>&2
12598 wxUSE_SOCKETS=no
12599
12600
12601fi
12602
12603
12604fi
12605
12606fi
12607
12608fi
12609
12610if test "$wxUSE_SOCKETS" = "yes" ; then
12611 echo $ac_n "checking what is the type of the third argument of getsockname""... $ac_c" 1>&6
12612echo "configure:12613: checking what is the type of the third argument of getsockname" >&5
12613if eval "test \"`echo '$''{'wx_cv_type_getsockname3'+set}'`\" = set"; then
12614 echo $ac_n "(cached) $ac_c" 1>&6
12615else
12616
12617
12618 ac_ext=C
12619# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12620ac_cpp='$CXXCPP $CPPFLAGS'
12621ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12622ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12623cross_compiling=$ac_cv_prog_cxx_cross
12624
12625
12626 cat > conftest.$ac_ext <<EOF
12627#line 12628 "configure"
12628#include "confdefs.h"
12629
12630 #include <sys/types.h>
12631 #include <sys/socket.h>
12632
12633int main() {
12634
12635 socklen_t len;
12636 getsockname(0, 0, &len);
12637
12638; return 0; }
12639EOF
12640if { (eval echo configure:12641: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12641 rm -rf conftest*
12642 wx_cv_type_getsockname3=socklen_t
12643else
12644 echo "configure: failed program was:" >&5
12645 cat conftest.$ac_ext >&5
12646 rm -rf conftest*
12647 cat > conftest.$ac_ext <<EOF
12648#line 12649 "configure"
12649#include "confdefs.h"
12650
12651 #include <sys/types.h>
12652 #include <sys/socket.h>
12653
12654int main() {
12655
12656 size_t len;
12657 getsockname(0, 0, &len);
12658
12659; return 0; }
12660EOF
12661if { (eval echo configure:12662: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12662 rm -rf conftest*
12663 wx_cv_type_getsockname3=size_t
12664else
12665 echo "configure: failed program was:" >&5
12666 cat conftest.$ac_ext >&5
12667 rm -rf conftest*
12668 cat > conftest.$ac_ext <<EOF
12669#line 12670 "configure"
12670#include "confdefs.h"
12671
12672 #include <sys/types.h>
12673 #include <sys/socket.h>
12674
12675int main() {
12676
12677 int len;
12678 getsockname(0, 0, &len);
12679
12680; return 0; }
12681EOF
12682if { (eval echo configure:12683: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12683 rm -rf conftest*
12684 wx_cv_type_getsockname3=int
12685else
12686 echo "configure: failed program was:" >&5
12687 cat conftest.$ac_ext >&5
12688 rm -rf conftest*
12689 wx_cv_type_getsockname3=unknown
12690
12691fi
12692rm -f conftest*
12693
12694fi
12695rm -f conftest*
12696
12697fi
12698rm -f conftest*
12699
12700 ac_ext=c
12701# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12702ac_cpp='$CPP $CPPFLAGS'
12703ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12704ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12705cross_compiling=$ac_cv_prog_cc_cross
12706
12707
12708fi
12709
12710echo "$ac_t""$wx_cv_type_getsockname3" 1>&6
12711
12712 if test "$wx_cv_type_getsockname3" = "unknown"; then
12713 wxUSE_SOCKETS=no
12714 echo "configure: warning: Couldn't find socklen_t synonym for this system" 1>&2
12715 else
12716 cat >> confdefs.h <<EOF
12717#define SOCKLEN_T $wx_cv_type_getsockname3
12718EOF
12719
12720 fi
12721fi
12722
12723if test "$wxUSE_SOCKETS" = "yes" ; then
12724 cat >> confdefs.h <<\EOF
12725#define wxUSE_SOCKETS 1
12726EOF
12727
12728 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
12729 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS protocol"
12730fi
12731
12732
12733if test "$TOOLKIT" != "MSW"; then
12734
12735if test "$wxUSE_JOYSTICK" = 1; then
12736 for ac_hdr in linux/joystick.h
12737do
12738ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12739echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12740echo "configure:12741: checking for $ac_hdr" >&5
12741if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12742 echo $ac_n "(cached) $ac_c" 1>&6
12743else
12744 cat > conftest.$ac_ext <<EOF
12745#line 12746 "configure"
12746#include "confdefs.h"
12747#include <$ac_hdr>
12748EOF
12749ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12750{ (eval echo configure:12751: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12751ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12752if test -z "$ac_err"; then
12753 rm -rf conftest*
12754 eval "ac_cv_header_$ac_safe=yes"
12755else
12756 echo "$ac_err" >&5
12757 echo "configure: failed program was:" >&5
12758 cat conftest.$ac_ext >&5
12759 rm -rf conftest*
12760 eval "ac_cv_header_$ac_safe=no"
12761fi
12762rm -f conftest*
12763fi
12764if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12765 echo "$ac_t""yes" 1>&6
12766 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12767 cat >> confdefs.h <<EOF
12768#define $ac_tr_hdr 1
12769EOF
12770
12771else
12772 echo "$ac_t""no" 1>&6
12773fi
12774done
12775
12776 if test "$ac_cv_header_linux_joystick_h" != "yes"; then
12777 wxUSE_JOYSTICK=0
12778 echo "configure: warning: Joystick not supported yb this system" 1>&2
12779 fi
12780fi
12781
12782fi
12783
12784if test "$wxUSE_JOYSTICK" = 1; then
12785 cat >> confdefs.h <<\EOF
12786#define wxUSE_JOYSTICK 1
12787EOF
12788
12789 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
12790fi
12791
12792
12793if test "$TOOLKIT" != "MSW"; then
12794
12795HAVE_DL_FUNCS=0
12796HAVE_SHL_FUNCS=0
12797if test "$wxUSE_DYNLIB_CLASS" = "yes"; then
12798 for ac_func in dlopen
12799do
12800echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12801echo "configure:12802: checking for $ac_func" >&5
12802if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12803 echo $ac_n "(cached) $ac_c" 1>&6
12804else
12805 cat > conftest.$ac_ext <<EOF
12806#line 12807 "configure"
12807#include "confdefs.h"
12808/* System header to define __stub macros and hopefully few prototypes,
12809 which can conflict with char $ac_func(); below. */
12810#include <assert.h>
12811/* Override any gcc2 internal prototype to avoid an error. */
12812/* We use char because int might match the return type of a gcc2
12813 builtin and then its argument prototype would still apply. */
12814char $ac_func();
12815
12816int main() {
12817
12818/* The GNU C library defines this for functions which it implements
12819 to always fail with ENOSYS. Some functions are actually named
12820 something starting with __ and the normal name is an alias. */
12821#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12822choke me
12823#else
12824$ac_func();
12825#endif
12826
12827; return 0; }
12828EOF
12829if { (eval echo configure:12830: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12830 rm -rf conftest*
12831 eval "ac_cv_func_$ac_func=yes"
12832else
12833 echo "configure: failed program was:" >&5
12834 cat conftest.$ac_ext >&5
12835 rm -rf conftest*
12836 eval "ac_cv_func_$ac_func=no"
12837fi
12838rm -f conftest*
12839fi
12840
12841if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12842 echo "$ac_t""yes" 1>&6
12843 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12844 cat >> confdefs.h <<EOF
12845#define $ac_tr_func 1
12846EOF
12847
12848 cat >> confdefs.h <<\EOF
12849#define HAVE_DLOPEN 1
12850EOF
12851
12852 HAVE_DL_FUNCS=1
12853
12854else
12855 echo "$ac_t""no" 1>&6
12856echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
12857echo "configure:12858: checking for dlopen in -ldl" >&5
12858ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
12859if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12860 echo $ac_n "(cached) $ac_c" 1>&6
12861else
12862 ac_save_LIBS="$LIBS"
12863LIBS="-ldl $LIBS"
12864cat > conftest.$ac_ext <<EOF
12865#line 12866 "configure"
12866#include "confdefs.h"
12867/* Override any gcc2 internal prototype to avoid an error. */
12868/* We use char because int might match the return type of a gcc2
12869 builtin and then its argument prototype would still apply. */
12870char dlopen();
12871
12872int main() {
12873dlopen()
12874; return 0; }
12875EOF
12876if { (eval echo configure:12877: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12877 rm -rf conftest*
12878 eval "ac_cv_lib_$ac_lib_var=yes"
12879else
12880 echo "configure: failed program was:" >&5
12881 cat conftest.$ac_ext >&5
12882 rm -rf conftest*
12883 eval "ac_cv_lib_$ac_lib_var=no"
12884fi
12885rm -f conftest*
12886LIBS="$ac_save_LIBS"
12887
12888fi
12889if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12890 echo "$ac_t""yes" 1>&6
12891
12892 cat >> confdefs.h <<\EOF
12893#define HAVE_DLOPEN 1
12894EOF
12895
12896 HAVE_DL_FUNCS=1
12897 LIBS="$LIBS -ldl"
12898
12899else
12900 echo "$ac_t""no" 1>&6
12901
12902 for ac_func in shl_load
12903do
12904echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12905echo "configure:12906: checking for $ac_func" >&5
12906if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12907 echo $ac_n "(cached) $ac_c" 1>&6
12908else
12909 cat > conftest.$ac_ext <<EOF
12910#line 12911 "configure"
12911#include "confdefs.h"
12912/* System header to define __stub macros and hopefully few prototypes,
12913 which can conflict with char $ac_func(); below. */
12914#include <assert.h>
12915/* Override any gcc2 internal prototype to avoid an error. */
12916/* We use char because int might match the return type of a gcc2
12917 builtin and then its argument prototype would still apply. */
12918char $ac_func();
12919
12920int main() {
12921
12922/* The GNU C library defines this for functions which it implements
12923 to always fail with ENOSYS. Some functions are actually named
12924 something starting with __ and the normal name is an alias. */
12925#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12926choke me
12927#else
12928$ac_func();
12929#endif
12930
12931; return 0; }
12932EOF
12933if { (eval echo configure:12934: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12934 rm -rf conftest*
12935 eval "ac_cv_func_$ac_func=yes"
12936else
12937 echo "configure: failed program was:" >&5
12938 cat conftest.$ac_ext >&5
12939 rm -rf conftest*
12940 eval "ac_cv_func_$ac_func=no"
12941fi
12942rm -f conftest*
12943fi
12944
12945if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12946 echo "$ac_t""yes" 1>&6
12947 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12948 cat >> confdefs.h <<EOF
12949#define $ac_tr_func 1
12950EOF
12951
12952 cat >> confdefs.h <<\EOF
12953#define HAVE_SHL_LOAD 1
12954EOF
12955
12956 HAVE_SHL_FUNCS=1
12957
12958else
12959 echo "$ac_t""no" 1>&6
12960fi
12961done
12962
12963
12964fi
12965
12966
12967fi
12968done
12969
12970
12971 if test "$HAVE_DL_FUNCS" = 0; then
12972 if test "$HAVE_SHL_FUNCS" = 0; then
12973 if test "$USE_UNIX" = 1; then
12974 echo "configure: warning: Missing dynamic loading support, several features will be disabled" 1>&2
12975 wxUSE_DYNLIB_CLASS=no
12976 else
12977 echo "configure: warning: Assuming wxLibrary class works on this platform" 1>&2
12978 fi
12979 fi
12980 fi
12981fi
12982
12983fi
12984
12985if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
12986 cat >> confdefs.h <<\EOF
12987#define wxUSE_DYNLIB_CLASS 1
12988EOF
12989
12990else
12991 wxUSE_ODBC=no
12992 wxUSE_SERIAL=no
12993fi
12994
12995
12996if test "$wxUSE_UNICODE" = "yes" ; then
12997 cat >> confdefs.h <<\EOF
12998#define wxUSE_UNICODE 1
12999EOF
13000
13001fi
13002
13003if test "$wxUSE_WCSRTOMBS" = "yes" ; then
13004 cat >> confdefs.h <<\EOF
13005#define wxUSE_WCSRTOMBS 1
13006EOF
13007
13008fi
13009
13010if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
13011 cat >> confdefs.h <<\EOF
13012#define wxUSE_EXPERIMENTAL_PRINTF 1
13013EOF
13014
13015fi
13016
13017
13018if test "$wxUSE_SERIAL" = "yes" ; then
13019 cat >> confdefs.h <<\EOF
13020#define wxUSE_SERIAL 1
13021EOF
13022
13023fi
13024
13025
13026IODBC_C_SRC=""
13027if test "$wxUSE_ODBC" = "yes" ; then
13028 cat >> confdefs.h <<\EOF
13029#define wxUSE_ODBC 1
13030EOF
13031
13032 WXODBCFLAG="-D_IODBC_"
13033 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
13034 IODBCOBJS="\$(IODBC_OBJS)"
13035else
13036 IODBCOBJS=
13037fi
13038
13039
13040if test "$wxUSE_POSTSCRIPT" = "yes" ; then
13041 cat >> confdefs.h <<\EOF
13042#define wxUSE_POSTSCRIPT 1
13043EOF
13044
13045fi
13046
13047cat >> confdefs.h <<\EOF
13048#define wxUSE_AFM_FOR_POSTSCRIPT 1
13049EOF
13050
13051
13052cat >> confdefs.h <<\EOF
13053#define wxUSE_NORMALIZED_PS_FONTS 1
13054EOF
13055
13056
13057
13058if test "$wxUSE_CONSTRAINTS" = "yes"; then
13059 cat >> confdefs.h <<\EOF
13060#define wxUSE_CONSTRAINTS 1
13061EOF
13062
13063 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
13064fi
13065
13066if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
13067 cat >> confdefs.h <<\EOF
13068#define wxUSE_MDI_ARCHITECTURE 1
13069EOF
13070
13071 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
13072fi
13073
13074if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
13075 cat >> confdefs.h <<\EOF
13076#define wxUSE_DOC_VIEW_ARCHITECTURE 1
13077EOF
13078
13079 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
13080 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
13081 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
13082 fi
13083fi
13084
13085if test "$wxUSE_HELP" = "yes"; then
13086 cat >> confdefs.h <<\EOF
13087#define wxUSE_HELP 1
13088EOF
13089
13090 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
13091fi
13092
13093if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
13094 if test "$wxUSE_CONSTRAINTS" != "yes"; then
13095 echo "configure: warning: Printing support cannot be used without constraints so it won't be compiled without it" 1>&2
13096 else
13097 cat >> confdefs.h <<\EOF
13098#define wxUSE_PRINTING_ARCHITECTURE 1
13099EOF
13100
13101 fi
13102 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
13103fi
13104
13105if test "$wxUSE_PROLOGIO" = "yes" ; then
13106 cat >> confdefs.h <<\EOF
13107#define wxUSE_PROLOGIO 1
13108EOF
13109
13110fi
13111
13112if test "$wxUSE_RESOURCES" = "yes" ; then
13113 if test "$wxUSE_PROLOGIO" = "yes" ; then
13114 cat >> confdefs.h <<\EOF
13115#define wxUSE_RESOURCES 1
13116EOF
13117
13118 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS resource"
13119 else
13120 echo "configure: warning: wxWindows ressource system requires PrologIO and can't be compiled without it." 1>&2
13121 fi
13122fi
13123
13124if test "$wxUSE_X_RESOURCES" = "yes"; then
13125 cat >> confdefs.h <<\EOF
13126#define wxUSE_X_RESOURCES 1
13127EOF
13128
13129fi
13130
13131
13132if test "$wxUSE_IPC" = "yes"; then
13133 cat >> confdefs.h <<\EOF
13134#define wxUSE_IPC 1
13135EOF
13136
13137fi
13138
13139if test "$wxUSE_CLIPBOARD" = "yes"; then
13140 cat >> confdefs.h <<\EOF
13141#define wxUSE_CLIPBOARD 1
13142EOF
13143
13144fi
13145
13146if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
13147 if test "$wxUSE_GTK" = 1; then
13148 if test "$WXGTK12" != 1; then
13149 echo "configure: warning: Drag and drop is only supported under GTK+ 1.2" 1>&2
13150 wxUSE_DRAG_AND_DROP=no
13151 fi
13152 fi
13153
13154 if test "$wxUSE_MOTIF" = 1; then
13155 echo "configure: warning: Drag and drop is not yet supported under Motif" 1>&2
13156 wxUSE_DRAG_AND_DROP=no
13157 fi
13158
13159 if test "$USE_WIN32" = 1; then
13160 for ac_hdr in ole2.h
13161do
13162ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13163echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
13164echo "configure:13165: checking for $ac_hdr" >&5
13165if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
13166 echo $ac_n "(cached) $ac_c" 1>&6
13167else
13168 cat > conftest.$ac_ext <<EOF
13169#line 13170 "configure"
13170#include "confdefs.h"
13171#include <$ac_hdr>
13172EOF
13173ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13174{ (eval echo configure:13175: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13175ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13176if test -z "$ac_err"; then
13177 rm -rf conftest*
13178 eval "ac_cv_header_$ac_safe=yes"
13179else
13180 echo "$ac_err" >&5
13181 echo "configure: failed program was:" >&5
13182 cat conftest.$ac_ext >&5
13183 rm -rf conftest*
13184 eval "ac_cv_header_$ac_safe=no"
13185fi
13186rm -f conftest*
13187fi
13188if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13189 echo "$ac_t""yes" 1>&6
13190 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13191 cat >> confdefs.h <<EOF
13192#define $ac_tr_hdr 1
13193EOF
13194
13195else
13196 echo "$ac_t""no" 1>&6
13197fi
13198done
13199
13200 if test "x$HAVE_OLE2_H" = x ; then
13201 echo "configure: warning: Drag and drop disabled because OLE headers not found" 1>&2
13202 wxUSE_DRAG_AND_DROP=no
13203 fi
13204 fi
13205
13206 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
13207 cat >> confdefs.h <<\EOF
13208#define wxUSE_DRAG_AND_DROP 1
13209EOF
13210
13211 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
13212 fi
13213
13214fi
13215
13216if test "$wxUSE_SPLINES" = "yes" ; then
13217 cat >> confdefs.h <<\EOF
13218#define wxUSE_SPLINES 1
13219EOF
13220
13221fi
13222
13223
13224if test "$wxUSE_ACCEL" = "yes"; then
13225 cat >> confdefs.h <<\EOF
13226#define wxUSE_ACCEL 1
13227EOF
13228
13229fi
13230
13231if test "$wxUSE_CARET" = "yes"; then
13232 cat >> confdefs.h <<\EOF
13233#define wxUSE_CARET 1
13234EOF
13235
13236 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
13237fi
13238
13239if test "$wxUSE_COMBOBOX" = "yes"; then
13240 cat >> confdefs.h <<\EOF
13241#define wxUSE_COMBOBOX 1
13242EOF
13243
13244fi
13245
13246if test "$wxUSE_CHOICE" = "yes"; then
13247 cat >> confdefs.h <<\EOF
13248#define wxUSE_CHOICE 1
13249EOF
13250
13251fi
13252
13253if test "$wxUSE_BMPBUTTON" = "yes"; then
13254 cat >> confdefs.h <<\EOF
13255#define wxUSE_BMPBUTTON 1
13256EOF
13257
13258fi
13259
13260if test "$wxUSE_CHECKBOX" = "yes"; then
13261 cat >> confdefs.h <<\EOF
13262#define wxUSE_CHECKBOX 1
13263EOF
13264
13265fi
13266
13267if test "$wxUSE_CHECKLST" = "yes"; then
13268 cat >> confdefs.h <<\EOF
13269#define wxUSE_CHECKLISTBOX 1
13270EOF
13271
13272 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
13273fi
13274
13275if test "$wxUSE_GAUGE" = "yes"; then
13276 cat >> confdefs.h <<\EOF
13277#define wxUSE_GAUGE 1
13278EOF
13279
13280fi
13281
13282if test "$wxUSE_NEW_GRID" = "yes"; then
13283 wxUSE_GRID="yes"
13284 cat >> confdefs.h <<\EOF
13285#define wxUSE_NEW_GRID 1
13286EOF
13287
13288 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS newgrid"
13289fi
13290
13291if test "$wxUSE_GRID" = "yes"; then
13292 cat >> confdefs.h <<\EOF
13293#define wxUSE_GRID 1
13294EOF
13295
13296 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
13297fi
13298
13299if test "$wxUSE_IMAGLIST" = "yes"; then
13300 cat >> confdefs.h <<\EOF
13301#define wxUSE_IMAGLIST 1
13302EOF
13303
13304fi
13305
13306if test "$wxUSE_LISTBOX" = "yes"; then
13307 cat >> confdefs.h <<\EOF
13308#define wxUSE_LISTBOX 1
13309EOF
13310
13311fi
13312
13313if test "$wxUSE_LISTCTRL" = "yes"; then
13314 if test "$wxUSE_IMAGLIST" = "yes"; then
13315 cat >> confdefs.h <<\EOF
13316#define wxUSE_LISTCTRL 1
13317EOF
13318
13319 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
13320 else
13321 echo "configure: warning: wxListCtrl requires wxImageList and won't be compiled without it" 1>&2
13322 fi
13323fi
13324
13325if test "$wxUSE_NOTEBOOK" = "yes"; then
13326 cat >> confdefs.h <<\EOF
13327#define wxUSE_NOTEBOOK 1
13328EOF
13329
13330 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
13331fi
13332
13333if test "$wxUSE_RADIOBOX" = "yes"; then
13334 cat >> confdefs.h <<\EOF
13335#define wxUSE_RADIOBOX 1
13336EOF
13337
13338fi
13339
13340if test "$wxUSE_RADIOBTN" = "yes"; then
13341 cat >> confdefs.h <<\EOF
13342#define wxUSE_RADIOBTN 1
13343EOF
13344
13345fi
13346
13347if test "$wxUSE_SASH" = "yes"; then
13348 cat >> confdefs.h <<\EOF
13349#define wxUSE_SASH 1
13350EOF
13351
13352 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
13353fi
13354
13355if test "$wxUSE_SCROLLBAR" = "yes"; then
13356 cat >> confdefs.h <<\EOF
13357#define wxUSE_SCROLLBAR 1
13358EOF
13359
13360 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
13361fi
13362
13363if test "$wxUSE_SLIDER" = "yes"; then
13364 cat >> confdefs.h <<\EOF
13365#define wxUSE_SLIDER 1
13366EOF
13367
13368fi
13369
13370if test "$wxUSE_SPINBTN" = "yes"; then
13371 cat >> confdefs.h <<\EOF
13372#define wxUSE_SPINBTN 1
13373EOF
13374
13375fi
13376
13377if test "$wxUSE_SPINCTRL" = "yes"; then
13378 cat >> confdefs.h <<\EOF
13379#define wxUSE_SPINCTRL 1
13380EOF
13381
13382fi
13383
13384if test "$wxUSE_SPLITTER" = "yes"; then
13385 cat >> confdefs.h <<\EOF
13386#define wxUSE_SPLITTER 1
13387EOF
13388
13389 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
13390fi
13391
13392if test "$wxUSE_STATBMP" = "yes"; then
13393 cat >> confdefs.h <<\EOF
13394#define wxUSE_STATBMP 1
13395EOF
13396
13397fi
13398
13399if test "$wxUSE_STATBOX" = "yes"; then
13400 cat >> confdefs.h <<\EOF
13401#define wxUSE_STATBOX 1
13402EOF
13403
13404fi
13405
13406if test "$wxUSE_STATLINE" = "yes"; then
13407 if test "$wxUSE_WINE" = 1 ; then
13408 echo "configure: warning: wxStaticLine is not supported under WINE" 1>&2
13409 else
13410 cat >> confdefs.h <<\EOF
13411#define wxUSE_STATLINE 1
13412EOF
13413
13414 fi
13415fi
13416
13417if test "$wxUSE_STATUSBAR" = "yes"; then
13418 cat >> confdefs.h <<\EOF
13419#define wxUSE_STATUSBAR 1
13420EOF
13421
13422
13423 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
13424fi
13425
13426if test "$wxUSE_TABDIALOG" = "yes"; then
13427 cat >> confdefs.h <<\EOF
13428#define wxUSE_TAB_DIALOG 1
13429EOF
13430
13431 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab"
13432fi
13433
13434if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
13435 cat >> confdefs.h <<\EOF
13436#define wxUSE_TOOLBAR_SIMPLE 1
13437EOF
13438
13439 wxUSE_TOOLBAR="yes"
13440fi
13441
13442if test "$wxUSE_TOOLBAR" = "yes"; then
13443 cat >> confdefs.h <<\EOF
13444#define wxUSE_TOOLBAR 1
13445EOF
13446
13447
13448 if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
13449 wxUSE_TOOLBAR_NATIVE="yes"
13450 fi
13451
13452 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
13453fi
13454
13455if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
13456 cat >> confdefs.h <<\EOF
13457#define wxUSE_TOOLBAR_NATIVE 1
13458EOF
13459
13460fi
13461
13462if test "$wxUSE_TOOLTIPS" = "yes"; then
13463 if test "$wxUSE_MOTIF" = 1; then
13464 echo "configure: warning: wxTooltip not supported yet under Motif" 1>&2
13465 else
13466 if test "$wxUSE_WINE" = 1; then
13467 echo "configure: warning: wxTooltip not supported under WINE" 1>&2
13468 else
13469 cat >> confdefs.h <<\EOF
13470#define wxUSE_TOOLTIPS 1
13471EOF
13472
13473 fi
13474 fi
13475fi
13476
13477if test "$wxUSE_TREECTRL" = "yes"; then
13478 if test "$wxUSE_IMAGLIST" = "yes"; then
13479 cat >> confdefs.h <<\EOF
13480#define wxUSE_TREECTRL 1
13481EOF
13482
13483 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
13484 else
13485 echo "configure: warning: wxTreeCtrl requires wxImageList and won't be compiled without it" 1>&2
13486 fi
13487fi
13488
13489
13490
13491if test "$wxUSE_METAFILE" = "yes"; then
13492 cat >> confdefs.h <<\EOF
13493#define wxUSE_METAFILE 1
13494EOF
13495
13496fi
13497
13498if test "$wxUSE_DIRDLG" = "yes"; then
13499 if test "$wxUSE_CONSTRAINTS" != "yes"; then
13500 echo "configure: warning: wxDirDialog requires constraints so it won't be compiled without them" 1>&2
13501 else
13502 if test "$wxUSE_TREECTRL" != "yes"; then
13503 echo "configure: warning: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" 1>&2
13504 else
13505 cat >> confdefs.h <<\EOF
13506#define wxUSE_DIRDLG 1
13507EOF
13508
13509 fi
13510 fi
13511fi
13512
13513if test "$wxUSE_TEXTDLG" = "yes"; then
13514 cat >> confdefs.h <<\EOF
13515#define wxUSE_TEXTDLG 1
13516EOF
13517
13518fi
13519
13520if test "$wxUSE_STARTUP_TIPS" = "yes"; then
13521 if test "$wxUSE_CONSTRAINTS" != "yes"; then
13522 echo "configure: warning: Startup tips requires constraints and won't be compiled without them" 1>&2
13523 else
13524 cat >> confdefs.h <<\EOF
13525#define wxUSE_STARTUP_TIPS 1
13526EOF
13527
13528 fi
13529fi
13530
13531if test "$wxUSE_PROGRESSDLG" = "yes"; then
13532 if test "$wxUSE_CONSTRAINTS" != "yes"; then
13533 echo "configure: warning: wxProgressDialog requires constraints so it won't be compiled without them" 1>&2
13534 else
13535 cat >> confdefs.h <<\EOF
13536#define wxUSE_PROGRESSDLG 1
13537EOF
13538
13539 fi
13540fi
13541
13542if test "$wxUSE_MINIFRAME" = "yes"; then
13543 cat >> confdefs.h <<\EOF
13544#define wxUSE_MINIFRAME 1
13545EOF
13546
13547 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
13548fi
13549
13550if test "$wxUSE_HTML" = "yes"; then
13551 cat >> confdefs.h <<\EOF
13552#define wxUSE_HTML 1
13553EOF
13554
13555 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html"
13556 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS html"
13557fi
13558
13559if test "$wxUSE_VALIDATORS" = "yes"; then
13560 cat >> confdefs.h <<\EOF
13561#define wxUSE_VALIDATORS 1
13562EOF
13563
13564 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
13565fi
13566
13567if test "$wxUSE_GIF" = "yes" ; then
13568 cat >> confdefs.h <<\EOF
13569#define wxUSE_GIF 1
13570EOF
13571
13572fi
13573
13574if test "$wxUSE_PCX" = "yes" ; then
13575 cat >> confdefs.h <<\EOF
13576#define wxUSE_PCX 1
13577EOF
13578
13579fi
13580
13581if test "$wxUSE_PNM" = "yes" ; then
13582 cat >> confdefs.h <<\EOF
13583#define wxUSE_PNM 1
13584EOF
13585
13586fi
13587
13588
13589OSINFO=`uname -s -r -m`
13590OSINFO="\"$OSINFO\""
13591cat >> confdefs.h <<EOF
13592#define WXWIN_OS_DESCRIPTION $OSINFO
13593EOF
13594
13595
13596
13597GUILIBS="$GUI_TK_LIBRARY $OPENGL_LINK $TOOLKIT_LINK"
13598
13599EXTRA_LIBS="$LIBS $ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $THREADS_LINK $DMALLOC_LINK $DL_LINK"
13600if test "$wxUSE_GUI" = "yes"; then
13601 EXTRA_LIBS="$EXTRA_LIBS $GUILIBS $PNG_LINK $JPEG_LINK"
13602fi
13603
13604LD_LIBS="\${top_builddir}/lib/${WX_LIBRARY_NAME_STATIC} $EXTRA_LIBS"
13605
13606INCLUDES="-I. -I\${top_builddir}/include -I\${top_srcdir}/include -I\${top_srcdir}/contrib/include $ZLIB_INCLUDE $PNG_INCLUDE $JPEG_INCLUDE $TIFF_INCLUDE $TOOLKIT_INCLUDE"
13607
13608if test "$GXX" = yes ; then
13609 CXXWARNINGS="-Wall"
13610 fi
13611EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE $INCLUDES"
13612
13613CFLAGS=`echo $CFLAGS $EXTRA_CFLAGS | sed 's/ \\+/ /g'`
13614CXXFLAGS=`echo $CXXFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \+/ /g'`
13615
13616LDFLAGS="$LDFLAGS $PROFILE"
13617
13618if test "$wxUSE_GUI" = "yes"; then
13619
13620 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS controls dialogs dragimag drawing dynamic \
13621 font fractal image menu minimal richedit"
13622
13623 CPPFLAGS="$CPPFLAGS \$(EXTRADEFS) \$(APPEXTRADEFS)"
13624else
13625 SAMPLES_SUBDIRS=""
13626fi
13627
13628SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
13629
13630
13631
13632
13633
13634
13635
13636
13637
13638
13639
13640
13641
13642
13643
13644
13645
13646
13647
13648
13649
13650
13651
13652
13653
13654
13655
13656
13657
13658
13659
13660
13661
13662
13663
13664
13665
13666
13667
13668
13669
13670
13671
13672
13673
13674
13675
13676
13677
13678
13679
13680
13681
13682
13683
13684
13685
13686
13687
13688
13689
13690
13691
13692
13693
13694
13695
13696
13697
13698
13699
13700
13701
13702
13703
13704
13705
13706echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
13707echo "configure:13708: checking whether ${MAKE-make} sets \${MAKE}" >&5
13708set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
13709if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
13710 echo $ac_n "(cached) $ac_c" 1>&6
13711else
13712 cat > conftestmake <<\EOF
13713all:
13714 @echo 'ac_maketemp="${MAKE}"'
13715EOF
13716# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
13717eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
13718if test -n "$ac_maketemp"; then
13719 eval ac_cv_prog_make_${ac_make}_set=yes
13720else
13721 eval ac_cv_prog_make_${ac_make}_set=no
13722fi
13723rm -f conftestmake
13724fi
13725if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
13726 echo "$ac_t""yes" 1>&6
13727 SET_MAKE=
13728else
13729 echo "$ac_t""no" 1>&6
13730 SET_MAKE="MAKE=${MAKE-make}"
13731fi
13732
13733
13734if test -d include; then
13735 if test -d include/wx; then
13736 if test -d include/wx/${TOOLKIT_DIR}; then
13737 if test -f include/wx/${TOOLKIT_DIR}/setup.h; then
13738 mv -f include/wx/${TOOLKIT_DIR}/setup.h setup.h
13739 fi
13740 fi
13741 fi
13742fi
13743
13744
13745
13746if test "$wxUSE_GUI" = "yes"; then
13747 wx_cv_path_samplesubdirs=$SAMPLES_SUBDIRS
13748 wx_cv_path_ifs=$PATH_IFS
13749 wx_cv_program_ext=$PROGRAM_EXT
13750 wx_cv_target_library=$WX_TARGET_LIBRARY
13751 subdirs="demos samples utils contrib"
13752
13753fi
13754
13755trap '' 1 2 15
13756cat > confcache <<\EOF
13757# This file is a shell script that caches the results of configure
13758# tests run on this system so they can be shared between configure
13759# scripts and configure runs. It is not useful on other systems.
13760# If it contains results you don't want to keep, you may remove or edit it.
13761#
13762# By default, configure uses ./config.cache as the cache file,
13763# creating it if it does not exist already. You can give configure
13764# the --cache-file=FILE option to use a different cache file; that is
13765# what configure does when it calls configure scripts in
13766# subdirectories, so they share the cache.
13767# Giving --cache-file=/dev/null disables caching, for debugging configure.
13768# config.status only pays attention to the cache file if you give it the
13769# --recheck option to rerun configure.
13770#
13771EOF
13772# The following way of writing the cache mishandles newlines in values,
13773# but we know of no workaround that is simple, portable, and efficient.
13774# So, don't put newlines in cache variables' values.
13775# Ultrix sh set writes to stderr and can't be redirected directly,
13776# and sets the high bit in the cache file unless we assign to the vars.
13777(set) 2>&1 |
13778 case `(ac_space=' '; set | grep ac_space) 2>&1` in
13779 *ac_space=\ *)
13780 # `set' does not quote correctly, so add quotes (double-quote substitution
13781 # turns \\\\ into \\, and sed turns \\ into \).
13782 sed -n \
13783 -e "s/'/'\\\\''/g" \
13784 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
13785 ;;
13786 *)
13787 # `set' quotes correctly as required by POSIX, so do not add quotes.
13788 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
13789 ;;
13790 esac >> confcache
13791if cmp -s $cache_file confcache; then
13792 :
13793else
13794 if test -w $cache_file; then
13795 echo "updating cache $cache_file"
13796 cat confcache > $cache_file
13797 else
13798 echo "not updating unwritable cache $cache_file"
13799 fi
13800fi
13801rm -f confcache
13802
13803trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
13804
13805test "x$prefix" = xNONE && prefix=$ac_default_prefix
13806# Let make expand exec_prefix.
13807test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13808
13809# Any assignment to VPATH causes Sun make to only execute
13810# the first set of double-colon rules, so remove it if not needed.
13811# If there is a colon in the path, we need to keep it.
13812if test "x$srcdir" = x.; then
13813 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
13814fi
13815
13816trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
13817
13818DEFS=-DHAVE_CONFIG_H
13819
13820# Without the "./", some shells look in PATH for config.status.
13821: ${CONFIG_STATUS=./config.status}
13822
13823echo creating $CONFIG_STATUS
13824rm -f $CONFIG_STATUS
13825cat > $CONFIG_STATUS <<EOF
13826#! /bin/sh
13827# Generated automatically by configure.
13828# Run this file to recreate the current configuration.
13829# This directory was configured as follows,
13830# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13831#
13832# $0 $ac_configure_args
13833#
13834# Compiler output produced by configure, useful for debugging
13835# configure, is in ./config.log if it exists.
13836
13837ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
13838for ac_option
13839do
13840 case "\$ac_option" in
13841 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13842 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
13843 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
13844 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
13845 echo "$CONFIG_STATUS generated by autoconf version 2.13"
13846 exit 0 ;;
13847 -help | --help | --hel | --he | --h)
13848 echo "\$ac_cs_usage"; exit 0 ;;
13849 *) echo "\$ac_cs_usage"; exit 1 ;;
13850 esac
13851done
13852
13853ac_given_srcdir=$srcdir
13854ac_given_INSTALL="$INSTALL"
13855
13856trap 'rm -fr `echo "
13857 wx-config
13858 src/make.env
13859 src/makeprog.env
13860 src/makelib.env
13861 Makefile
13862 setup.h:setup.h.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
13863EOF
13864cat >> $CONFIG_STATUS <<EOF
13865
13866# Protect against being on the right side of a sed subst in config.status.
13867sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
13868 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
13869$ac_vpsub
13870$extrasub
13871s%@SHELL@%$SHELL%g
13872s%@CFLAGS@%$CFLAGS%g
13873s%@CPPFLAGS@%$CPPFLAGS%g
13874s%@CXXFLAGS@%$CXXFLAGS%g
13875s%@FFLAGS@%$FFLAGS%g
13876s%@DEFS@%$DEFS%g
13877s%@LDFLAGS@%$LDFLAGS%g
13878s%@LIBS@%$LIBS%g
13879s%@exec_prefix@%$exec_prefix%g
13880s%@prefix@%$prefix%g
13881s%@program_transform_name@%$program_transform_name%g
13882s%@bindir@%$bindir%g
13883s%@sbindir@%$sbindir%g
13884s%@libexecdir@%$libexecdir%g
13885s%@datadir@%$datadir%g
13886s%@sysconfdir@%$sysconfdir%g
13887s%@sharedstatedir@%$sharedstatedir%g
13888s%@localstatedir@%$localstatedir%g
13889s%@libdir@%$libdir%g
13890s%@includedir@%$includedir%g
13891s%@oldincludedir@%$oldincludedir%g
13892s%@infodir@%$infodir%g
13893s%@mandir@%$mandir%g
13894s%@host@%$host%g
13895s%@host_alias@%$host_alias%g
13896s%@host_cpu@%$host_cpu%g
13897s%@host_vendor@%$host_vendor%g
13898s%@host_os@%$host_os%g
13899s%@target@%$target%g
13900s%@target_alias@%$target_alias%g
13901s%@target_cpu@%$target_cpu%g
13902s%@target_vendor@%$target_vendor%g
13903s%@target_os@%$target_os%g
13904s%@build@%$build%g
13905s%@build_alias@%$build_alias%g
13906s%@build_cpu@%$build_cpu%g
13907s%@build_vendor@%$build_vendor%g
13908s%@build_os@%$build_os%g
13909s%@CC@%$CC%g
13910s%@CPP@%$CPP%g
13911s%@CXX@%$CXX%g
13912s%@CXXCPP@%$CXXCPP%g
13913s%@RANLIB@%$RANLIB%g
13914s%@AR@%$AR%g
13915s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
13916s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
13917s%@INSTALL_DATA@%$INSTALL_DATA%g
13918s%@STRIP@%$STRIP%g
13919s%@YACC@%$YACC%g
13920s%@LEX@%$LEX%g
13921s%@LEXLIB@%$LEXLIB%g
13922s%@LN_S@%$LN_S%g
13923s%@GTK_CONFIG@%$GTK_CONFIG%g
13924s%@GTK_CFLAGS@%$GTK_CFLAGS%g
13925s%@GTK_LIBS@%$GTK_LIBS%g
13926s%@X_CFLAGS@%$X_CFLAGS%g
13927s%@X_PRE_LIBS@%$X_PRE_LIBS%g
13928s%@X_LIBS@%$X_LIBS%g
13929s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
13930s%@LEX_STEM@%$LEX_STEM%g
13931s%@PATH_IFS@%$PATH_IFS%g
13932s%@WX_MAJOR_VERSION_NUMBER@%$WX_MAJOR_VERSION_NUMBER%g
13933s%@WX_MINOR_VERSION_NUMBER@%$WX_MINOR_VERSION_NUMBER%g
13934s%@WX_RELEASE_NUMBER@%$WX_RELEASE_NUMBER%g
13935s%@WX_LIBRARY_NAME@%$WX_LIBRARY_NAME%g
13936s%@WX_LIBRARY_NAME_STATIC@%$WX_LIBRARY_NAME_STATIC%g
13937s%@WX_LIBRARY_NAME_SHARED@%$WX_LIBRARY_NAME_SHARED%g
13938s%@WX_LIBRARY@%$WX_LIBRARY%g
13939s%@WX_TARGET_LIBRARY@%$WX_TARGET_LIBRARY%g
13940s%@WX_LIBRARY_LINK1@%$WX_LIBRARY_LINK1%g
13941s%@WX_LIBRARY_LINK2@%$WX_LIBRARY_LINK2%g
13942s%@WX_LIBRARY_LINK3@%$WX_LIBRARY_LINK3%g
13943s%@PROGRAM_EXT@%$PROGRAM_EXT%g
13944s%@WX_LIBRARY_NAME_GL@%$WX_LIBRARY_NAME_GL%g
13945s%@WX_LIBRARY_NAME_STATIC_GL@%$WX_LIBRARY_NAME_STATIC_GL%g
13946s%@WX_LIBRARY_NAME_SHARED_GL@%$WX_LIBRARY_NAME_SHARED_GL%g
13947s%@WX_LIBRARY_GL@%$WX_LIBRARY_GL%g
13948s%@WX_TARGET_LIBRARY_GL@%$WX_TARGET_LIBRARY_GL%g
13949s%@WX_LIBRARY_LINK1_GL@%$WX_LIBRARY_LINK1_GL%g
13950s%@WX_LIBRARY_LINK2_GL@%$WX_LIBRARY_LINK2_GL%g
13951s%@WX_LIBRARY_LINK3_GL@%$WX_LIBRARY_LINK3_GL%g
13952s%@WX_ALL@%$WX_ALL%g
13953s%@WX_ALL_INSTALLED@%$WX_ALL_INSTALLED%g
13954s%@SHARED_LD@%$SHARED_LD%g
13955s%@PIC_FLAG@%$PIC_FLAG%g
13956s%@DEP_INFO_FLAGS@%$DEP_INFO_FLAGS%g
13957s%@CODE_GEN_FLAGS@%$CODE_GEN_FLAGS%g
13958s%@BURNT_LIBRARY_NAME@%$BURNT_LIBRARY_NAME%g
13959s%@BURNT_LIBRARY_NAME_GL@%$BURNT_LIBRARY_NAME_GL%g
13960s%@WXDEBUG_DEFINE@%$WXDEBUG_DEFINE%g
13961s%@USE_GUI@%$USE_GUI%g
13962s%@AFMINSTALL@%$AFMINSTALL%g
13963s%@TOOLKIT@%$TOOLKIT%g
13964s%@TOOLKIT_DEF@%$TOOLKIT_DEF%g
13965s%@TOOLKIT_DIR@%$TOOLKIT_DIR%g
13966s%@TOOLKIT_INCLUDE@%$TOOLKIT_INCLUDE%g
13967s%@GUIHEADERS@%$GUIHEADERS%g
13968s%@GUIOBJS@%$GUIOBJS%g
13969s%@COMMONOBJS@%$COMMONOBJS%g
13970s%@GENERICOBJS@%$GENERICOBJS%g
13971s%@GUIDEPS@%$GUIDEPS%g
13972s%@COMMONDEPS@%$COMMONDEPS%g
13973s%@GENERICDEPS@%$GENERICDEPS%g
13974s%@IODBCOBJS@%$IODBCOBJS%g
13975s%@UNIXOBJS@%$UNIXOBJS%g
13976s%@UNIXDEPS@%$UNIXDEPS%g
13977s%@ALL_OBJECTS@%$ALL_OBJECTS%g
13978s%@ALL_DEPFILES@%$ALL_DEPFILES%g
13979s%@GUIDIST@%$GUIDIST%g
13980s%@PORT_FILES@%$PORT_FILES%g
13981s%@DISTDIR@%$DISTDIR%g
13982s%@RPM_SPEC@%$RPM_SPEC%g
13983s%@RPM_FILES@%$RPM_FILES%g
13984s%@SRC_SUBDIRS@%$SRC_SUBDIRS%g
13985s%@INCLUDE_SUBDIRS@%$INCLUDE_SUBDIRS%g
13986s%@UTILS_SUBDIRS@%$UTILS_SUBDIRS%g
13987s%@DOCS_SUBDIRS@%$DOCS_SUBDIRS%g
13988s%@SAMPLES_SUBDIRS@%$SAMPLES_SUBDIRS%g
13989s%@USER_SUBDIRS@%$USER_SUBDIRS%g
13990s%@EXTRA_LIBS@%$EXTRA_LIBS%g
13991s%@EXTRADEFS@%$EXTRADEFS%g
13992s%@LD_LIBS@%$LD_LIBS%g
13993s%@SET_MAKE@%$SET_MAKE%g
13994s%@subdirs@%$subdirs%g
13995
13996CEOF
13997EOF
13998
13999cat >> $CONFIG_STATUS <<\EOF
14000
14001# Split the substitutions into bite-sized pieces for seds with
14002# small command number limits, like on Digital OSF/1 and HP-UX.
14003ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
14004ac_file=1 # Number of current file.
14005ac_beg=1 # First line for current file.
14006ac_end=$ac_max_sed_cmds # Line after last line for current file.
14007ac_more_lines=:
14008ac_sed_cmds=""
14009while $ac_more_lines; do
14010 if test $ac_beg -gt 1; then
14011 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
14012 else
14013 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
14014 fi
14015 if test ! -s conftest.s$ac_file; then
14016 ac_more_lines=false
14017 rm -f conftest.s$ac_file
14018 else
14019 if test -z "$ac_sed_cmds"; then
14020 ac_sed_cmds="sed -f conftest.s$ac_file"
14021 else
14022 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
14023 fi
14024 ac_file=`expr $ac_file + 1`
14025 ac_beg=$ac_end
14026 ac_end=`expr $ac_end + $ac_max_sed_cmds`
14027 fi
14028done
14029if test -z "$ac_sed_cmds"; then
14030 ac_sed_cmds=cat
14031fi
14032EOF
14033
14034cat >> $CONFIG_STATUS <<EOF
14035
14036CONFIG_FILES=\${CONFIG_FILES-"wx-config
14037 src/make.env
14038 src/makeprog.env
14039 src/makelib.env
14040 Makefile
14041 "}
14042EOF
14043cat >> $CONFIG_STATUS <<\EOF
14044for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
14045 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
14046 case "$ac_file" in
14047 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
14048 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
14049 *) ac_file_in="${ac_file}.in" ;;
14050 esac
14051
14052 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
14053
14054 # Remove last slash and all that follows it. Not all systems have dirname.
14055 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
14056 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
14057 # The file is in a subdirectory.
14058 test ! -d "$ac_dir" && mkdir "$ac_dir"
14059 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
14060 # A "../" for each directory in $ac_dir_suffix.
14061 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
14062 else
14063 ac_dir_suffix= ac_dots=
14064 fi
14065
14066 case "$ac_given_srcdir" in
14067 .) srcdir=.
14068 if test -z "$ac_dots"; then top_srcdir=.
14069 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
14070 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
14071 *) # Relative path.
14072 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
14073 top_srcdir="$ac_dots$ac_given_srcdir" ;;
14074 esac
14075
14076 case "$ac_given_INSTALL" in
14077 [/$]*) INSTALL="$ac_given_INSTALL" ;;
14078 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
14079 esac
14080
14081 echo creating "$ac_file"
14082 rm -f "$ac_file"
14083 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
14084 case "$ac_file" in
14085 *Makefile*) ac_comsub="1i\\
14086# $configure_input" ;;
14087 *) ac_comsub= ;;
14088 esac
14089
14090 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
14091 sed -e "$ac_comsub
14092s%@configure_input@%$configure_input%g
14093s%@srcdir@%$srcdir%g
14094s%@top_srcdir@%$top_srcdir%g
14095s%@INSTALL@%$INSTALL%g
14096" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
14097fi; done
14098rm -f conftest.s*
14099
14100# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
14101# NAME is the cpp macro being defined and VALUE is the value it is being given.
14102#
14103# ac_d sets the value in "#define NAME VALUE" lines.
14104ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
14105ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
14106ac_dC='\3'
14107ac_dD='%g'
14108# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
14109ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
14110ac_uB='\([ ]\)%\1#\2define\3'
14111ac_uC=' '
14112ac_uD='\4%g'
14113# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
14114ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
14115ac_eB='$%\1#\2define\3'
14116ac_eC=' '
14117ac_eD='%g'
14118
14119if test "${CONFIG_HEADERS+set}" != set; then
14120EOF
14121cat >> $CONFIG_STATUS <<EOF
14122 CONFIG_HEADERS="setup.h:setup.h.in"
14123EOF
14124cat >> $CONFIG_STATUS <<\EOF
14125fi
14126for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
14127 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
14128 case "$ac_file" in
14129 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
14130 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
14131 *) ac_file_in="${ac_file}.in" ;;
14132 esac
14133
14134 echo creating $ac_file
14135
14136 rm -f conftest.frag conftest.in conftest.out
14137 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
14138 cat $ac_file_inputs > conftest.in
14139
14140EOF
14141
14142# Transform confdefs.h into a sed script conftest.vals that substitutes
14143# the proper values into config.h.in to produce config.h. And first:
14144# Protect against being on the right side of a sed subst in config.status.
14145# Protect against being in an unquoted here document in config.status.
14146rm -f conftest.vals
14147cat > conftest.hdr <<\EOF
14148s/[\\&%]/\\&/g
14149s%[\\$`]%\\&%g
14150s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
14151s%ac_d%ac_u%gp
14152s%ac_u%ac_e%gp
14153EOF
14154sed -n -f conftest.hdr confdefs.h > conftest.vals
14155rm -f conftest.hdr
14156
14157# This sed command replaces #undef with comments. This is necessary, for
14158# example, in the case of _POSIX_SOURCE, which is predefined and required
14159# on some systems where configure will not decide to define it.
14160cat >> conftest.vals <<\EOF
14161s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
14162EOF
14163
14164# Break up conftest.vals because some shells have a limit on
14165# the size of here documents, and old seds have small limits too.
14166
14167rm -f conftest.tail
14168while :
14169do
14170 ac_lines=`grep -c . conftest.vals`
14171 # grep -c gives empty output for an empty file on some AIX systems.
14172 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
14173 # Write a limited-size here document to conftest.frag.
14174 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
14175 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
14176 echo 'CEOF
14177 sed -f conftest.frag conftest.in > conftest.out
14178 rm -f conftest.in
14179 mv conftest.out conftest.in
14180' >> $CONFIG_STATUS
14181 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
14182 rm -f conftest.vals
14183 mv conftest.tail conftest.vals
14184done
14185rm -f conftest.vals
14186
14187cat >> $CONFIG_STATUS <<\EOF
14188 rm -f conftest.frag conftest.h
14189 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
14190 cat conftest.in >> conftest.h
14191 rm -f conftest.in
14192 if cmp -s $ac_file conftest.h 2>/dev/null; then
14193 echo "$ac_file is unchanged"
14194 rm -f conftest.h
14195 else
14196 # Remove last slash and all that follows it. Not all systems have dirname.
14197 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
14198 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
14199 # The file is in a subdirectory.
14200 test ! -d "$ac_dir" && mkdir "$ac_dir"
14201 fi
14202 rm -f $ac_file
14203 mv conftest.h $ac_file
14204 fi
14205fi; done
14206
14207EOF
14208cat >> $CONFIG_STATUS <<EOF
14209
14210 TOOLKIT_DIR="${TOOLKIT_DIR}"
14211 LN_S="${LN_S}"
14212
14213
14214EOF
14215cat >> $CONFIG_STATUS <<\EOF
14216
14217 chmod +x wx-config
14218 mv wx-config wx${TOOLKIT_DIR}-config
14219 ${LN_S} wx${TOOLKIT_DIR}-config wx-config
14220
14221
14222 if test ! -d lib; then
14223 mkdir lib
14224 fi
14225 if test ! -d lib/wx; then
14226 mkdir lib/wx
14227 fi
14228 if test ! -d lib/wx/include; then
14229 mkdir lib/wx/include
14230 fi
14231 if test ! -d lib/wx/include/wx; then
14232 mkdir lib/wx/include/wx
14233 fi
14234 if test ! -d lib/wx/include/wx/${TOOLKIT_DIR}; then
14235 mkdir lib/wx/include/wx/${TOOLKIT_DIR}
14236 fi
14237 if test -f setup.h; then
14238 cp -f setup.h lib/wx/include/wx/${TOOLKIT_DIR}/setup.h
14239 fi
14240
14241
14242 if test ! -d include; then
14243 mkdir include
14244 fi
14245 if test ! -d include/wx; then
14246 mkdir include/wx
14247 fi
14248 if test ! -d include/wx/${TOOLKIT_DIR}; then
14249 mkdir include/wx/${TOOLKIT_DIR}
14250 fi
14251 if test -f setup.h; then
14252 mv -f setup.h include/wx/${TOOLKIT_DIR}/setup.h
14253 fi
14254
14255
14256exit 0
14257EOF
14258chmod +x $CONFIG_STATUS
14259rm -fr confdefs* $ac_clean_files
14260test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
14261
14262if test "$no_recursion" != yes; then
14263
14264 # Remove --cache-file and --srcdir arguments so they do not pile up.
14265 ac_sub_configure_args=
14266 ac_prev=
14267 for ac_arg in $ac_configure_args; do
14268 if test -n "$ac_prev"; then
14269 ac_prev=
14270 continue
14271 fi
14272 case "$ac_arg" in
14273 -cache-file | --cache-file | --cache-fil | --cache-fi \
14274 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
14275 ac_prev=cache_file ;;
14276 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
14277 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
14278 ;;
14279 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
14280 ac_prev=srcdir ;;
14281 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
14282 ;;
14283 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
14284 esac
14285 done
14286
14287 for ac_config_dir in demos samples utils contrib; do
14288
14289 # Do not complain, so a configure script can configure whichever
14290 # parts of a large source tree are present.
14291 if test ! -d $srcdir/$ac_config_dir; then
14292 continue
14293 fi
14294
14295 echo configuring in $ac_config_dir
14296
14297 case "$srcdir" in
14298 .) ;;
14299 *)
14300 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
14301 else
14302 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
14303 fi
14304 ;;
14305 esac
14306
14307 ac_popdir=`pwd`
14308 cd $ac_config_dir
14309
14310 # A "../" for each directory in /$ac_config_dir.
14311 ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
14312
14313 case "$srcdir" in
14314 .) # No --srcdir option. We are building in place.
14315 ac_sub_srcdir=$srcdir ;;
14316 /*) # Absolute path.
14317 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
14318 *) # Relative path.
14319 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
14320 esac
14321
14322 # Check for guested configure; otherwise get Cygnus style configure.
14323 if test -f $ac_sub_srcdir/configure; then
14324 ac_sub_configure=$ac_sub_srcdir/configure
14325 elif test -f $ac_sub_srcdir/configure.in; then
14326 ac_sub_configure=$ac_configure
14327 else
14328 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
14329 ac_sub_configure=
14330 fi
14331
14332 # The recursion is here.
14333 if test -n "$ac_sub_configure"; then
14334
14335 # Make the cache file name correct relative to the subdirectory.
14336 case "$cache_file" in
14337 /*) ac_sub_cache_file=$cache_file ;;
14338 *) # Relative path.
14339 ac_sub_cache_file="$ac_dots$cache_file" ;;
14340 esac
14341 case "$ac_given_INSTALL" in
14342 [/$]*) INSTALL="$ac_given_INSTALL" ;;
14343 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
14344 esac
14345
14346 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
14347 # The eval makes quoting arguments work.
14348 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
14349 then :
14350 else
14351 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
14352 fi
14353 fi
14354
14355 cd $ac_popdir
14356 done
14357fi
14358
14359