]> git.saurik.com Git - wxWidgets.git/blame - configure
minor fixes
[wxWidgets.git] / configure
CommitLineData
a16d3c04
KB
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
43# Guess values for system-dependent variables and create Makefiles.
fa3e4baf 44# Generated automatically using autoconf version 2.13
a16d3c04
KB
45# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
46#
47# This configure script is free software; the Free Software Foundation
48# gives unlimited permission to copy, distribute and modify it.
49
50# Defaults:
51ac_help=
52ac_default_prefix=/usr/local
53# Any additions from configure.in:
54ac_help="$ac_help
55 --with-gtk use GTK+"
56ac_help="$ac_help
57 --with-motif use Motif/Lesstif"
58ac_help="$ac_help
59 --with-wine use WINE"
60ac_help="$ac_help
61 --with-cygwin use Cygwin for MS-Windows"
62ac_help="$ac_help
63 --with-mingw use GCC Minimal MS-Windows"
64ac_help="$ac_help
65 --with-gtk-prefix=PFX Prefix where GTK is installed"
66ac_help="$ac_help
67 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed"
68ac_help="$ac_help
69--with-dmalloc use dmalloc library (www.letters.com/dmalloc)"
70ac_help="$ac_help
71--with-zlib use zlib for LZW compression"
72ac_help="$ac_help
73--with-libpng use libpng (PNG image format)"
74ac_help="$ac_help
a16d3c04
KB
75--with-libjpeg use libjpeg (JPEG file format)"
76ac_help="$ac_help
77--with-opengl use OpenGL (or Mesa)"
78ac_help="$ac_help
79--with-odbc use the IODBC and wxODBC classes"
80ac_help="$ac_help
81--enable-shared create shared library code"
82ac_help="$ac_help
83--enable-optimise create optimised code"
84ac_help="$ac_help
85--enable-debug same as debug_flag and debug_info"
86ac_help="$ac_help
87--enable-debug_flag set __WXDEBUG__ flag (recommended for developers!)"
88ac_help="$ac_help
89--enable-debug_info create code with debugging information"
90ac_help="$ac_help
91--enable-debug_gdb create code with extra GDB debugging information"
92ac_help="$ac_help
93--enable-debug_cntxt use wxDebugContext"
94ac_help="$ac_help
95--enable-mem_tracing create code with memory tracing"
96ac_help="$ac_help
97--enable-profile create code with profiling information"
98ac_help="$ac_help
99--enable-no_rtti create code without RTTI information"
100ac_help="$ac_help
101--enable-no_exceptions create code without exceptions information"
102ac_help="$ac_help
103--enable-permissive compile code disregarding strict ANSI"
104ac_help="$ac_help
105--enable-no_deps create code without dependency information"
106ac_help="$ac_help
107--enable-gui use GUI classes"
108ac_help="$ac_help
109--enable-intl use internationalization system"
110ac_help="$ac_help
111--enable-config use wxConfig (and derived) classes"
112ac_help="$ac_help
113--enable-sockets use socket/network classes"
114ac_help="$ac_help
1c8515f9
KB
115--enable-dialupman use dialup network classes"
116ac_help="$ac_help
a16d3c04
KB
117--enable-ipc use interprocess communication (wxSocket etc.)"
118ac_help="$ac_help
119--enable-apple_ieee use the Apple IEEE codec"
120ac_help="$ac_help
121--enable-timedate use date/time classes"
122ac_help="$ac_help
123--enable-wave use wxWave class"
124ac_help="$ac_help
125--enable-fraction use wxFraction class"
126ac_help="$ac_help
127--enable-dynlib use wxLibrary class for DLL loading"
128ac_help="$ac_help
129--enable-longlong use wxLongLong class"
130ac_help="$ac_help
131--enable-log use logging system"
132ac_help="$ac_help
133--enable-streams use wxStream etc classes"
134ac_help="$ac_help
135--enable-file use wxFile classes"
136ac_help="$ac_help
137--enable-textfile use wxTextFile classes"
138ac_help="$ac_help
139--enable-unicode compile wxString with Unicode support"
140ac_help="$ac_help
141--enable-wcsrtombs use wcsrtombs instead of buggy (GNU libc1/Linux libc5) wcstombs"
142ac_help="$ac_help
143--enable-wxprintfv use wxWindows implementation of vprintf()"
144ac_help="$ac_help
145--enable-joystick compile in joystick support (Linux only)"
146ac_help="$ac_help
147--enable-std_iostreams use standard C++ stream classes"
148ac_help="$ac_help
149--enable-fs_inet use virtual HTTP/FTP filesystems"
150ac_help="$ac_help
151--enable-fs_zip use virtual ZIP filesystems"
152ac_help="$ac_help
153--enable-zipstream use wxZipInputStream"
154ac_help="$ac_help
155--enable-threads use threads"
156ac_help="$ac_help
157--enable-serial use class serialization"
158ac_help="$ac_help
159--enable-docview use document view architecture"
160ac_help="$ac_help
161--enable-help use help (using external browser at present)"
162ac_help="$ac_help
163--enable-constraints use layout-constraints system"
164ac_help="$ac_help
165--enable-printarch use printing architecture"
166ac_help="$ac_help
167--enable-mdi use multiple document interface architecture"
168ac_help="$ac_help
169--enable-postscript use wxPostscriptDC device context (default for gtk+)"
170ac_help="$ac_help
171--enable-prologio use Prolog IO library"
172ac_help="$ac_help
173--enable-resources use wxWindows resources"
174ac_help="$ac_help
175--enable-xresources use X resources for save (default for gtk+)"
176ac_help="$ac_help
177--enable-clipboard use wxClipboard classes"
178ac_help="$ac_help
179--enable-dnd use Drag'n'Drop classes"
180ac_help="$ac_help
181--enable-wxtree make wxTree library"
182ac_help="$ac_help
183--enable-controls use all usual controls"
184ac_help="$ac_help
185--enable-accel use accelerators"
186ac_help="$ac_help
187--enable-caret use wxCaret class"
188ac_help="$ac_help
189--enable-bmpbutton use wxBitmapButton class"
190ac_help="$ac_help
191--enable-checkbox use wxCheckBox class"
192ac_help="$ac_help
193--enable-checklst use wxCheckListBox (listbox with checkboxes) class"
194ac_help="$ac_help
195--enable-choice use wxChoice class"
196ac_help="$ac_help
197--enable-combobox use wxComboBox classes"
198ac_help="$ac_help
199--enable-gauge use wxGauge class"
200ac_help="$ac_help
201--enable-grid use wxGrid class"
202ac_help="$ac_help
203--enable-imaglist use wxImageList class"
204ac_help="$ac_help
205--enable-listbox use wxListBox class"
206ac_help="$ac_help
207--enable-listctrl use wxListCtrl class"
208ac_help="$ac_help
209--enable-notebook use wxNotebook class"
210ac_help="$ac_help
211--enable-radiobox use wxRadioBox class"
212ac_help="$ac_help
213--enable-radiobtn use wxRadioButton class"
214ac_help="$ac_help
215--enable-sash use wxSashWindow class"
216ac_help="$ac_help
217--enable-scrollbar use wxScrollBar class and scrollable windows"
218ac_help="$ac_help
219--enable-slider use wxSlider class"
220ac_help="$ac_help
221--enable-spinbtn use wxSpinButton class"
222ac_help="$ac_help
223--enable-splitter use wxSplitterWindow class"
224ac_help="$ac_help
225--enable-statbmp use wxStaticBitmap class"
226ac_help="$ac_help
227--enable-statbox use wxStaticBox class"
228ac_help="$ac_help
229--enable-statline use wxStaticLine class"
230ac_help="$ac_help
231--enable-statusbar use wxStatusBar class"
232ac_help="$ac_help
233--enable-tabdialog use wxTabControl class"
234ac_help="$ac_help
235--enable-toolbar use wxToolBar class"
236ac_help="$ac_help
237--enable-treectrl use wxTreeCtrl class"
238ac_help="$ac_help
239--enable-commondlg use common dialogs (wxDirDialog, wxProgressDialog, wxTextDialog, ...)"
240ac_help="$ac_help
241--enable-dirdlg use wxDirDialog"
242ac_help="$ac_help
243--enable-textdlg use wxTextDialog"
244ac_help="$ac_help
245--enable-tipdlg use startup tips"
246ac_help="$ac_help
247--enable-progressdlg use wxProgressDialog"
248ac_help="$ac_help
249--enable-miniframe use wxMiniFrame class"
250ac_help="$ac_help
251--enable-html use wxHTML sub-library"
252ac_help="$ac_help
253--enable-tooltips use wxToolTip class"
254ac_help="$ac_help
255--enable-splines use spline drawing code"
256ac_help="$ac_help
257--enable-validators use wxValidator and derived classes"
258ac_help="$ac_help
259--enable-busyinfo use wxBusyInfo"
1c8515f9
KB
260ac_help="$ac_help
261--enable-gif use gif images (GIF file format)"
262ac_help="$ac_help
263--enable-pcx use pcx images (PCX file format)"
264ac_help="$ac_help
265--enable-pnm use pnm images (PNM file format)"
a16d3c04
KB
266ac_help="$ac_help
267 --with-x use the X Window System"
268
269# Initialize some variables set by options.
270# The variables have the same names as the options, with
271# dashes changed to underlines.
272build=NONE
273cache_file=./config.cache
274exec_prefix=NONE
275host=NONE
276no_create=
277nonopt=NONE
278no_recursion=
279prefix=NONE
280program_prefix=NONE
281program_suffix=NONE
282program_transform_name=s,x,x,
283silent=
284site=
285srcdir=
286target=NONE
287verbose=
288x_includes=NONE
289x_libraries=NONE
290bindir='${exec_prefix}/bin'
291sbindir='${exec_prefix}/sbin'
292libexecdir='${exec_prefix}/libexec'
293datadir='${prefix}/share'
294sysconfdir='${prefix}/etc'
295sharedstatedir='${prefix}/com'
296localstatedir='${prefix}/var'
297libdir='${exec_prefix}/lib'
298includedir='${prefix}/include'
299oldincludedir='/usr/include'
300infodir='${prefix}/info'
301mandir='${prefix}/man'
302
303# Initialize some other variables.
304subdirs=
305MFLAGS= MAKEFLAGS=
fa3e4baf 306SHELL=${CONFIG_SHELL-/bin/sh}
a16d3c04
KB
307# Maximum number of lines to put in a shell here document.
308ac_max_here_lines=12
309
310ac_prev=
311for ac_option
312do
313
314 # If the previous option needs an argument, assign it.
315 if test -n "$ac_prev"; then
316 eval "$ac_prev=\$ac_option"
317 ac_prev=
318 continue
319 fi
320
321 case "$ac_option" in
322 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
323 *) ac_optarg= ;;
324 esac
325
326 # Accept the important Cygnus configure options, so we can diagnose typos.
327
328 case "$ac_option" in
329
330 -bindir | --bindir | --bindi | --bind | --bin | --bi)
331 ac_prev=bindir ;;
332 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
333 bindir="$ac_optarg" ;;
334
335 -build | --build | --buil | --bui | --bu)
336 ac_prev=build ;;
337 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
338 build="$ac_optarg" ;;
339
340 -cache-file | --cache-file | --cache-fil | --cache-fi \
341 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
342 ac_prev=cache_file ;;
343 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
344 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
345 cache_file="$ac_optarg" ;;
346
347 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
348 ac_prev=datadir ;;
349 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
350 | --da=*)
351 datadir="$ac_optarg" ;;
352
353 -disable-* | --disable-*)
354 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
355 # Reject names that are not valid shell variable names.
356 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
357 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
358 fi
359 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
360 eval "enable_${ac_feature}=no" ;;
361
362 -enable-* | --enable-*)
363 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
364 # Reject names that are not valid shell variable names.
365 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
366 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
367 fi
368 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
369 case "$ac_option" in
370 *=*) ;;
371 *) ac_optarg=yes ;;
372 esac
373 eval "enable_${ac_feature}='$ac_optarg'" ;;
374
375 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
376 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
377 | --exec | --exe | --ex)
378 ac_prev=exec_prefix ;;
379 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
380 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
381 | --exec=* | --exe=* | --ex=*)
382 exec_prefix="$ac_optarg" ;;
383
384 -gas | --gas | --ga | --g)
385 # Obsolete; use --with-gas.
386 with_gas=yes ;;
387
388 -help | --help | --hel | --he)
389 # Omit some internal or obsolete options to make the list less imposing.
390 # This message is too long to be a string in the A/UX 3.1 sh.
391 cat << EOF
392Usage: configure [options] [host]
393Options: [defaults in brackets after descriptions]
394Configuration:
395 --cache-file=FILE cache test results in FILE
396 --help print this message
397 --no-create do not create output files
398 --quiet, --silent do not print \`checking...' messages
399 --version print the version of autoconf that created configure
400Directory and file names:
401 --prefix=PREFIX install architecture-independent files in PREFIX
402 [$ac_default_prefix]
403 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
404 [same as prefix]
405 --bindir=DIR user executables in DIR [EPREFIX/bin]
406 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
407 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
408 --datadir=DIR read-only architecture-independent data in DIR
409 [PREFIX/share]
410 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
411 --sharedstatedir=DIR modifiable architecture-independent data in DIR
412 [PREFIX/com]
413 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
414 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
415 --includedir=DIR C header files in DIR [PREFIX/include]
416 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
417 --infodir=DIR info documentation in DIR [PREFIX/info]
418 --mandir=DIR man documentation in DIR [PREFIX/man]
419 --srcdir=DIR find the sources in DIR [configure dir or ..]
420 --program-prefix=PREFIX prepend PREFIX to installed program names
421 --program-suffix=SUFFIX append SUFFIX to installed program names
422 --program-transform-name=PROGRAM
423 run sed PROGRAM on installed program names
424EOF
425 cat << EOF
426Host type:
427 --build=BUILD configure for building on BUILD [BUILD=HOST]
428 --host=HOST configure for HOST [guessed]
429 --target=TARGET configure for TARGET [TARGET=HOST]
430Features and packages:
431 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
432 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
433 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
434 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
435 --x-includes=DIR X include files are in DIR
436 --x-libraries=DIR X library files are in DIR
437EOF
438 if test -n "$ac_help"; then
439 echo "--enable and --with options recognized:$ac_help"
440 fi
441 exit 0 ;;
442
443 -host | --host | --hos | --ho)
444 ac_prev=host ;;
445 -host=* | --host=* | --hos=* | --ho=*)
446 host="$ac_optarg" ;;
447
448 -includedir | --includedir | --includedi | --included | --include \
449 | --includ | --inclu | --incl | --inc)
450 ac_prev=includedir ;;
451 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
452 | --includ=* | --inclu=* | --incl=* | --inc=*)
453 includedir="$ac_optarg" ;;
454
455 -infodir | --infodir | --infodi | --infod | --info | --inf)
456 ac_prev=infodir ;;
457 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
458 infodir="$ac_optarg" ;;
459
460 -libdir | --libdir | --libdi | --libd)
461 ac_prev=libdir ;;
462 -libdir=* | --libdir=* | --libdi=* | --libd=*)
463 libdir="$ac_optarg" ;;
464
465 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
466 | --libexe | --libex | --libe)
467 ac_prev=libexecdir ;;
468 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
469 | --libexe=* | --libex=* | --libe=*)
470 libexecdir="$ac_optarg" ;;
471
472 -localstatedir | --localstatedir | --localstatedi | --localstated \
473 | --localstate | --localstat | --localsta | --localst \
474 | --locals | --local | --loca | --loc | --lo)
475 ac_prev=localstatedir ;;
476 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
477 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
478 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
479 localstatedir="$ac_optarg" ;;
480
481 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
482 ac_prev=mandir ;;
483 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
484 mandir="$ac_optarg" ;;
485
486 -nfp | --nfp | --nf)
487 # Obsolete; use --without-fp.
488 with_fp=no ;;
489
490 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
491 | --no-cr | --no-c)
492 no_create=yes ;;
493
494 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
495 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
496 no_recursion=yes ;;
497
498 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
499 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
500 | --oldin | --oldi | --old | --ol | --o)
501 ac_prev=oldincludedir ;;
502 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
503 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
504 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
505 oldincludedir="$ac_optarg" ;;
506
507 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
508 ac_prev=prefix ;;
509 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
510 prefix="$ac_optarg" ;;
511
512 -program-prefix | --program-prefix | --program-prefi | --program-pref \
513 | --program-pre | --program-pr | --program-p)
514 ac_prev=program_prefix ;;
515 -program-prefix=* | --program-prefix=* | --program-prefi=* \
516 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
517 program_prefix="$ac_optarg" ;;
518
519 -program-suffix | --program-suffix | --program-suffi | --program-suff \
520 | --program-suf | --program-su | --program-s)
521 ac_prev=program_suffix ;;
522 -program-suffix=* | --program-suffix=* | --program-suffi=* \
523 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
524 program_suffix="$ac_optarg" ;;
525
526 -program-transform-name | --program-transform-name \
527 | --program-transform-nam | --program-transform-na \
528 | --program-transform-n | --program-transform- \
529 | --program-transform | --program-transfor \
530 | --program-transfo | --program-transf \
531 | --program-trans | --program-tran \
532 | --progr-tra | --program-tr | --program-t)
533 ac_prev=program_transform_name ;;
534 -program-transform-name=* | --program-transform-name=* \
535 | --program-transform-nam=* | --program-transform-na=* \
536 | --program-transform-n=* | --program-transform-=* \
537 | --program-transform=* | --program-transfor=* \
538 | --program-transfo=* | --program-transf=* \
539 | --program-trans=* | --program-tran=* \
540 | --progr-tra=* | --program-tr=* | --program-t=*)
541 program_transform_name="$ac_optarg" ;;
542
543 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
544 | -silent | --silent | --silen | --sile | --sil)
545 silent=yes ;;
546
547 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
548 ac_prev=sbindir ;;
549 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
550 | --sbi=* | --sb=*)
551 sbindir="$ac_optarg" ;;
552
553 -sharedstatedir | --sharedstatedir | --sharedstatedi \
554 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
555 | --sharedst | --shareds | --shared | --share | --shar \
556 | --sha | --sh)
557 ac_prev=sharedstatedir ;;
558 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
559 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
560 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
561 | --sha=* | --sh=*)
562 sharedstatedir="$ac_optarg" ;;
563
564 -site | --site | --sit)
565 ac_prev=site ;;
566 -site=* | --site=* | --sit=*)
567 site="$ac_optarg" ;;
568
569 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
570 ac_prev=srcdir ;;
571 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
572 srcdir="$ac_optarg" ;;
573
574 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
575 | --syscon | --sysco | --sysc | --sys | --sy)
576 ac_prev=sysconfdir ;;
577 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
578 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
579 sysconfdir="$ac_optarg" ;;
580
581 -target | --target | --targe | --targ | --tar | --ta | --t)
582 ac_prev=target ;;
583 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
584 target="$ac_optarg" ;;
585
586 -v | -verbose | --verbose | --verbos | --verbo | --verb)
587 verbose=yes ;;
588
589 -version | --version | --versio | --versi | --vers)
fa3e4baf 590 echo "configure generated by autoconf version 2.13"
a16d3c04
KB
591 exit 0 ;;
592
593 -with-* | --with-*)
594 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
595 # Reject names that are not valid shell variable names.
596 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
597 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
598 fi
599 ac_package=`echo $ac_package| sed 's/-/_/g'`
600 case "$ac_option" in
601 *=*) ;;
602 *) ac_optarg=yes ;;
603 esac
604 eval "with_${ac_package}='$ac_optarg'" ;;
605
606 -without-* | --without-*)
607 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
608 # Reject names that are not valid shell variable names.
609 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
610 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
611 fi
612 ac_package=`echo $ac_package| sed 's/-/_/g'`
613 eval "with_${ac_package}=no" ;;
614
615 --x)
616 # Obsolete; use --with-x.
617 with_x=yes ;;
618
619 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
620 | --x-incl | --x-inc | --x-in | --x-i)
621 ac_prev=x_includes ;;
622 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
623 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
624 x_includes="$ac_optarg" ;;
625
626 -x-libraries | --x-libraries | --x-librarie | --x-librari \
627 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
628 ac_prev=x_libraries ;;
629 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
630 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
631 x_libraries="$ac_optarg" ;;
632
633 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
634 ;;
635
636 *)
637 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
638 echo "configure: warning: $ac_option: invalid host type" 1>&2
639 fi
640 if test "x$nonopt" != xNONE; then
641 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
642 fi
643 nonopt="$ac_option"
644 ;;
645
646 esac
647done
648
649if test -n "$ac_prev"; then
650 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
651fi
652
653trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
654
655# File descriptor usage:
656# 0 standard input
657# 1 file creation
658# 2 errors and warnings
659# 3 some systems may open it to /dev/tty
660# 4 used on the Kubota Titan
661# 6 checking for... messages and results
662# 5 compiler messages saved in config.log
663if test "$silent" = yes; then
664 exec 6>/dev/null
665else
666 exec 6>&1
667fi
668exec 5>./config.log
669
670echo "\
671This file contains any messages produced by compilers while
672running configure, to aid debugging if configure makes a mistake.
673" 1>&5
674
675# Strip out --no-create and --no-recursion so they do not pile up.
676# Also quote any args containing shell metacharacters.
677ac_configure_args=
678for ac_arg
679do
680 case "$ac_arg" in
681 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
682 | --no-cr | --no-c) ;;
683 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
684 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
685 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
686 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
687 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
688 esac
689done
690
691# NLS nuisances.
692# Only set these to C if already set. These must not be set unconditionally
693# because not all systems understand e.g. LANG=C (notably SCO).
694# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
695# Non-C LC_CTYPE values break the ctype check.
696if test "${LANG+set}" = set; then LANG=C; export LANG; fi
697if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
698if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
699if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
700
701# confdefs.h avoids OS command line length limits that DEFS can exceed.
702rm -rf conftest* confdefs.h
703# AIX cpp loses on an empty file, so make sure it contains at least a newline.
704echo > confdefs.h
705
706# A filename unique to this package, relative to the directory that
707# configure is in, which we can look for to find out if srcdir is correct.
708ac_unique_file=wx-config.in
709
710# Find the source files, if location was not specified.
711if test -z "$srcdir"; then
712 ac_srcdir_defaulted=yes
713 # Try the directory containing this script, then its parent.
714 ac_prog=$0
715 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
716 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
717 srcdir=$ac_confdir
718 if test ! -r $srcdir/$ac_unique_file; then
719 srcdir=..
720 fi
721else
722 ac_srcdir_defaulted=no
723fi
724if test ! -r $srcdir/$ac_unique_file; then
725 if test "$ac_srcdir_defaulted" = yes; then
726 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
727 else
728 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
729 fi
730fi
731srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
732
733# Prefer explicitly selected file to automatically selected ones.
734if test -z "$CONFIG_SITE"; then
735 if test "x$prefix" != xNONE; then
736 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
737 else
738 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
739 fi
740fi
741for ac_site_file in $CONFIG_SITE; do
742 if test -r "$ac_site_file"; then
743 echo "loading site script $ac_site_file"
744 . "$ac_site_file"
745 fi
746done
747
748if test -r "$cache_file"; then
749 echo "loading cache $cache_file"
750 . $cache_file
751else
752 echo "creating cache $cache_file"
753 > $cache_file
754fi
755
756ac_ext=c
757# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
758ac_cpp='$CPP $CPPFLAGS'
759ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
fa3e4baf 760ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
a16d3c04
KB
761cross_compiling=$ac_cv_prog_cc_cross
762
fa3e4baf
KB
763ac_exeext=
764ac_objext=o
a16d3c04
KB
765if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
766 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
767 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
768 ac_n= ac_c='
769' ac_t=' '
770 else
771 ac_n=-n ac_c= ac_t=
772 fi
773else
774 ac_n= ac_c='\c' ac_t=
775fi
776
777
778
779ac_aux_dir=
780for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
781 if test -f $ac_dir/install-sh; then
782 ac_aux_dir=$ac_dir
783 ac_install_sh="$ac_aux_dir/install-sh -c"
784 break
785 elif test -f $ac_dir/install.sh; then
786 ac_aux_dir=$ac_dir
787 ac_install_sh="$ac_aux_dir/install.sh -c"
788 break
789 fi
790done
791if test -z "$ac_aux_dir"; then
792 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
793fi
794ac_config_guess=$ac_aux_dir/config.guess
795ac_config_sub=$ac_aux_dir/config.sub
796ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
797
798
799# Do some error checking and defaulting for the host and target type.
800# The inputs are:
801# configure --host=HOST --target=TARGET --build=BUILD NONOPT
802#
803# The rules are:
804# 1. You are not allowed to specify --host, --target, and nonopt at the
805# same time.
806# 2. Host defaults to nonopt.
807# 3. If nonopt is not specified, then host defaults to the current host,
808# as determined by config.guess.
809# 4. Target and build default to nonopt.
810# 5. If nonopt is not specified, then target and build default to host.
811
812# The aliases save the names the user supplied, while $host etc.
813# will get canonicalized.
814case $host---$target---$nonopt in
815NONE---*---* | *---NONE---* | *---*---NONE) ;;
816*) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
817esac
818
819
820# Make sure we can run config.sub.
fa3e4baf 821if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
a16d3c04
KB
822else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
823fi
824
825echo $ac_n "checking host system type""... $ac_c" 1>&6
fa3e4baf 826echo "configure:827: checking host system type" >&5
a16d3c04
KB
827
828host_alias=$host
829case "$host_alias" in
830NONE)
831 case $nonopt in
832 NONE)
fa3e4baf 833 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
a16d3c04
KB
834 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
835 fi ;;
836 *) host_alias=$nonopt ;;
837 esac ;;
838esac
839
fa3e4baf 840host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
a16d3c04
KB
841host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
842host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
843host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
844echo "$ac_t""$host" 1>&6
845
846echo $ac_n "checking target system type""... $ac_c" 1>&6
fa3e4baf 847echo "configure:848: checking target system type" >&5
a16d3c04
KB
848
849target_alias=$target
850case "$target_alias" in
851NONE)
852 case $nonopt in
853 NONE) target_alias=$host_alias ;;
854 *) target_alias=$nonopt ;;
855 esac ;;
856esac
857
fa3e4baf 858target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
a16d3c04
KB
859target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
860target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
861target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
862echo "$ac_t""$target" 1>&6
863
864echo $ac_n "checking build system type""... $ac_c" 1>&6
fa3e4baf 865echo "configure:866: checking build system type" >&5
a16d3c04
KB
866
867build_alias=$build
868case "$build_alias" in
869NONE)
870 case $nonopt in
871 NONE) build_alias=$host_alias ;;
872 *) build_alias=$nonopt ;;
873 esac ;;
874esac
875
fa3e4baf 876build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
a16d3c04
KB
877build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
878build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
879build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
880echo "$ac_t""$build" 1>&6
881
882test "$host_alias" != "$target_alias" &&
883 test "$program_prefix$program_suffix$program_transform_name" = \
884 NONENONEs,x,x, &&
885 program_prefix=${target_alias}-
886
887
888
889WX_MAJOR_VERSION_NUMBER=2
890WX_MINOR_VERSION_NUMBER=1
891WX_RELEASE_NUMBER=0
892
893WX_INTERFACE_AGE=0
894WX_BINARY_AGE=0
895
896WX_VERSION=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER.$WX_RELEASE_NUMBER
897
898WX_RELEASE=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER
899WX_CURRENT=`expr $WX_RELEASE_NUMBER - $WX_INTERFACE_AGE`
900WX_REVISION=$WX_INTERFACE_AGE
901WX_AGE=`expr $WX_BINARY_AGE - $WX_INTERFACE_AGE`
902
903
904USE_UNIX=1
905USE_LINUX=
906USE_SGI=
907USE_HPUX=
908USE_SYSV=
909USE_SVR4=
910USE_AIX=
911USE_SUN=
912USE_SOLARIS=
913USE_SUNOS=
914USE_ALPHA=
915USE_OSF=
916USE_BSD=
917USE_FREEBSD=
918USE_VMS=
919USE_ULTRIX=
920USE_CYGWIN=
921USE_MINGW=
922USE_DATA_GENERAL=
923
924ALL_TOOLKITS="CYGWIN GTK MINGW MOTIF WINE"
925
926DEFAULT_wxUSE_GTK=0
927DEFAULT_wxUSE_MOTIF=0
928DEFAULT_wxUSE_MSW=0
929DEFAULT_wxUSE_WINE=0
930
931DEFAULT_DEFAULT_wxUSE_GTK=0
932DEFAULT_DEFAULT_wxUSE_MOTIF=0
933DEFAULT_DEFAULT_wxUSE_MSW=0
934DEFAULT_DEFAULT_wxUSE_WINE=0
935
936case "${host}" in
937 *-hp-hpux* )
938 USE_HPUX=1
939 DEFAULT_DEFAULT_wxUSE_MOTIF=1
940 cat >> confdefs.h <<\EOF
941#define __HPUX__ 1
942EOF
943
944 ;;
945 *-*-linux* )
946 USE_LINUX=1
947 cat >> confdefs.h <<\EOF
948#define __LINUX__ 1
949EOF
950
951 TMP=`uname -m`
952 if test "x$TMP" = "xalpha"; then
953 USE_ALPHA=1
954 cat >> confdefs.h <<\EOF
955#define __ALPHA__ 1
956EOF
957
958 fi
959 DEFAULT_DEFAULT_wxUSE_GTK=1
960 ;;
961 *-*-irix5* | *-*-irix6* )
962 USE_SGI=1
963 USE_SVR4=1
964 cat >> confdefs.h <<\EOF
965#define __SGI__ 1
966EOF
967
968 cat >> confdefs.h <<\EOF
969#define __SVR4__ 1
970EOF
971
972 DEFAULT_DEFAULT_wxUSE_MOTIF=1
973 ;;
974 *-*-solaris2* )
975 USE_SUN=1
976 USE_SOLARIS=1
977 USE_SVR4=1
978 cat >> confdefs.h <<\EOF
979#define __SUN__ 1
980EOF
981
982 cat >> confdefs.h <<\EOF
983#define __SOLARIS__ 1
984EOF
985
986 cat >> confdefs.h <<\EOF
987#define __SVR4__ 1
988EOF
989
990 DEFAULT_DEFAULT_wxUSE_MOTIF=1
991 ;;
992 *-*-sunos4* )
993 USE_SUN=1
994 USE_SUNOS=1
995 USE_BSD=1
996 cat >> confdefs.h <<\EOF
997#define __SUN__ 1
998EOF
999
1000 cat >> confdefs.h <<\EOF
1001#define __SUNOS__ 1
1002EOF
1003
1004 cat >> confdefs.h <<\EOF
1005#define __BSD__ 1
1006EOF
1007
1008 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1009 ;;
1010 *-*-freebsd* | *-*-netbsd*)
1011 USE_BSD=1
1012 USE_FREEBSD=1
1013 cat >> confdefs.h <<\EOF
1014#define __FREEBSD__ 1
1015EOF
1016
1017 cat >> confdefs.h <<\EOF
1018#define __BSD__ 1
1019EOF
1020
1021 DEFAULT_DEFAULT_wxUSE_GTK=1
1022 ;;
1023 *-*-osf* )
1024 USE_ALPHA=1
1025 USE_OSF=1
1026 cat >> confdefs.h <<\EOF
1027#define __ALPHA__ 1
1028EOF
1029
1030 cat >> confdefs.h <<\EOF
1031#define __OSF__ 1
1032EOF
1033
1034 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1035 ;;
1036 *-*-dgux5* )
1037 USE_ALPHA=1
1038 USE_SVR4=1
1039 cat >> confdefs.h <<\EOF
1040#define __ALPHA__ 1
1041EOF
1042
1043 cat >> confdefs.h <<\EOF
1044#define __SVR4__ 1
1045EOF
1046
1047 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1048 ;;
1049 *-*-sysv5* )
1050 USE_SYSV=1
1051 USE_SVR4=1
1052 cat >> confdefs.h <<\EOF
1053#define __SYSV__ 1
1054EOF
1055
1056 cat >> confdefs.h <<\EOF
1057#define __SVR4__ 1
1058EOF
1059
1060 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1061 ;;
1062 *-*-aix* )
1063 USE_AIX=1
1064 USE_SYSV=1
1065 USE_SVR4=1
1066 cat >> confdefs.h <<\EOF
1067#define __AIX__ 1
1068EOF
1069
1070 cat >> confdefs.h <<\EOF
1071#define __SYSV__ 1
1072EOF
1073
1074 cat >> confdefs.h <<\EOF
1075#define __SVR4__ 1
1076EOF
1077
1078 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1079 ;;
1080
1081 *-*-cygwin32* )
1082 USE_UNIX=0
1083 cat >> confdefs.h <<\EOF
1084#define __WIN32__ 1
1085EOF
1086
1087 cat >> confdefs.h <<\EOF
1088#define __WIN95__ 1
1089EOF
1090
1091 cat >> confdefs.h <<\EOF
1092#define __WINDOWS__ 1
1093EOF
1094
1095 cat >> confdefs.h <<\EOF
1096#define __GNUWIN32__ 1
1097EOF
1098
1099 cat >> confdefs.h <<\EOF
1100#define STRICT 1
1101EOF
1102
1103 cat >> confdefs.h <<\EOF
1104#define WINVER 0x0400
1105EOF
1106
1107 DEFAULT_DEFAULT_wxUSE_MSW=1
1108 ;;
1109 *-*-mingw32* )
1110 USE_UNIX=0
1111 cat >> confdefs.h <<\EOF
1112#define __WIN32__ 1
1113EOF
1114
1115 cat >> confdefs.h <<\EOF
1116#define __WIN95__ 1
1117EOF
1118
1119 cat >> confdefs.h <<\EOF
1120#define __WINDOWS__ 1
1121EOF
1122
1123 cat >> confdefs.h <<\EOF
1124#define __GNUWIN32__ 1
1125EOF
1126
1127 cat >> confdefs.h <<\EOF
1128#define STRICT 1
1129EOF
1130
1131 cat >> confdefs.h <<\EOF
1132#define WINVER 0x0400
1133EOF
1134
1135 DEFAULT_DEFAULT_wxUSE_MSW=1
1136 ;;
1137
1138 *-pc-os2_emx )
1139 cat >> confdefs.h <<\EOF
1140#define __EMX__ 1
1141EOF
1142
1143 ;;
1144
1145 *)
1146 { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; }
1147esac
1148
1149if test "$USE_UNIX" = 1 ; then
1150 wxUSE_UNIX=yes
1151 cat >> confdefs.h <<\EOF
1152#define __UNIX__ 1
1153EOF
1154
1155 SRC_SUBDIRS="$SRC_SUBDIRS unix"
1156 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS unix"
1157fi
1158
1159if test "$USE_LINUX" = 1; then
1160 echo $ac_n "checking for gettext in -lc""... $ac_c" 1>&6
fa3e4baf 1161echo "configure:1162: checking for gettext in -lc" >&5
a16d3c04
KB
1162ac_lib_var=`echo c'_'gettext | sed 'y%./+-%__p_%'`
1163if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1164 echo $ac_n "(cached) $ac_c" 1>&6
1165else
1166 ac_save_LIBS="$LIBS"
1167LIBS="-lc $LIBS"
1168cat > conftest.$ac_ext <<EOF
fa3e4baf 1169#line 1170 "configure"
a16d3c04
KB
1170#include "confdefs.h"
1171/* Override any gcc2 internal prototype to avoid an error. */
1172/* We use char because int might match the return type of a gcc2
1173 builtin and then its argument prototype would still apply. */
1174char gettext();
1175
1176int main() {
1177gettext()
1178; return 0; }
1179EOF
fa3e4baf 1180if { (eval echo configure:1181: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a16d3c04
KB
1181 rm -rf conftest*
1182 eval "ac_cv_lib_$ac_lib_var=yes"
1183else
1184 echo "configure: failed program was:" >&5
1185 cat conftest.$ac_ext >&5
1186 rm -rf conftest*
1187 eval "ac_cv_lib_$ac_lib_var=no"
1188fi
1189rm -f conftest*
1190LIBS="$ac_save_LIBS"
1191
1192fi
1193if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1194 echo "$ac_t""yes" 1>&6
1195 cat >> confdefs.h <<\EOF
1196#define wxHAVE_GLIBC2 1
1197EOF
1198
1199else
1200 echo "$ac_t""no" 1>&6
1201fi
1202
1203fi
1204
1205
1206
1207
1208 wx_arg_cache_file="configarg.cache"
1209 echo "loading argument cache $wx_arg_cache_file"
1210 rm -f ${wx_arg_cache_file}.tmp
1211 touch ${wx_arg_cache_file}.tmp
1212 touch ${wx_arg_cache_file}
1213
1214
1215DEBUG_CONFIGURE=0
1216if test $DEBUG_CONFIGURE = 1; then
1217 DEFAULT_wxUSE_THREADS=yes
1218
1219 DEFAULT_wxUSE_SHARED=yes
1220 DEFAULT_wxUSE_OPTIMISE=yes
1221 DEFAULT_wxUSE_PROFILE=no
1222 DEFAULT_wxUSE_NO_DEPS=no
1223 DEFAULT_wxUSE_NO_RTTI=no
1224 DEFAULT_wxUSE_NO_EXCEPTIONS=no
1225 DEFAULT_wxUSE_PERMISSIVE=no
1226 DEFAULT_wxUSE_DEBUG_FLAG=yes
1227 DEFAULT_wxUSE_DEBUG_INFO=yes
1228 DEFAULT_wxUSE_DEBUG_GDB=yes
1229 DEFAULT_wxUSE_MEM_TRACING=no
1230 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1231 DEFAULT_wxUSE_DMALLOC=no
1232 DEFAULT_wxUSE_APPLE_IEEE=no
1233
1234 DEFAULT_wxUSE_LOG=yes
1235
1236 DEFAULT_wxUSE_GUI=yes
1237
1238 DEFAULT_wxUSE_ZLIB=no
1239 DEFAULT_wxUSE_LIBPNG=no
a16d3c04
KB
1240 DEFAULT_wxUSE_LIBJPEG=no
1241 DEFAULT_wxUSE_ODBC=no
1242
1243 DEFAULT_wxUSE_STD_IOSTREAM=no
1244 DEFAULT_wxUSE_FILE=no
1245 DEFAULT_wxUSE_TEXTFILE=no
1246 DEFAULT_wxUSE_TIMEDATE=no
1247 DEFAULT_wxUSE_WAVE=no
1248 DEFAULT_wxUSE_INTL=no
1249 DEFAULT_wxUSE_CONFIG=no
1250 DEFAULT_wxUSE_STREAMS=no
1251 DEFAULT_wxUSE_SOCKETS=no
1c8515f9 1252 DEFAULT_wxUSE_DIALUP_MANAGER=no
a16d3c04
KB
1253 DEFAULT_wxUSE_SERIAL=no
1254 DEFAULT_wxUSE_JOYSTICK=no
1255 DEFAULT_wxUSE_DYNLIB_CLASS=no
1256 DEFAULT_wxUSE_LONGLONG=no
1257
1258 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
1259 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
1260 DEFAULT_wxUSE_POSTSCRIPT=no
1261
1262 DEFAULT_wxUSE_X_RESOURCES=no
1263 DEFAULT_wxUSE_CLIPBOARD=no
1264 DEFAULT_wxUSE_TOOLTIPS=no
1265 DEFAULT_wxUSE_DRAG_AND_DROP=no
1266 DEFAULT_wxUSE_SPLINES=no
1267
1268 DEFAULT_wxUSE_MDI_ARCHITECTURE=no
1269 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
1270 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
1271
1272 DEFAULT_wxUSE_PROLOGIO=no
1273 DEFAULT_wxUSE_RESOURCES=no
1274 DEFAULT_wxUSE_CONSTRAINTS=no
1275 DEFAULT_wxUSE_IPC=no
1276 DEFAULT_wxUSE_HELP=no
1277 DEFAULT_wxUSE_WXTREE=no
1278 DEFAULT_wxUSE_METAFILE=no
1279
1280 DEFAULT_wxUSE_COMMONDLGS=no
1281 DEFAULT_wxUSE_DIRDLG=no
1282 DEFAULT_wxUSE_TEXTDLG=no
1283 DEFAULT_wxUSE_STARTUP_TIPS=no
1284 DEFAULT_wxUSE_PROGRESSDLG=no
1285 DEFAULT_wxUSE_MINIFRAME=no
1286 DEFAULT_wxUSE_HTML=no
1287 DEFAULT_wxUSE_FS_INET=no
1288 DEFAULT_wxUSE_FS_ZIP=no
1289 DEFAULT_wxUSE_BUSYINFO=no
1290 DEFAULT_wxUSE_ZIPSTREAM=no
1291 DEFAULT_wxUSE_VALIDATORS=yes
1292
1293 DEFAULT_wxUSE_ACCEL=no
1294 DEFAULT_wxUSE_CARET=no
1295 DEFAULT_wxUSE_BMPBUTTON=no
1296 DEFAULT_wxUSE_CHECKBOX=no
1297 DEFAULT_wxUSE_CHECKLST=no
1298 DEFAULT_wxUSE_CHOICE=yes
1299 DEFAULT_wxUSE_COMBOBOX=no
1300 DEFAULT_wxUSE_GAUGE=no
1301 DEFAULT_wxUSE_GRID=no
1302 DEFAULT_wxUSE_IMAGLIST=no
1303 DEFAULT_wxUSE_LISTBOX=no
1304 DEFAULT_wxUSE_LISTCTRL=no
1305 DEFAULT_wxUSE_NOTEBOOK=no
1306 DEFAULT_wxUSE_RADIOBOX=no
1307 DEFAULT_wxUSE_RADIOBTN=no
1308 DEFAULT_wxUSE_SASH=no
1309 DEFAULT_wxUSE_SCROLLBAR=no
1310 DEFAULT_wxUSE_SLIDER=no
1311 DEFAULT_wxUSE_SPINBTN=no
1312 DEFAULT_wxUSE_SPLITTER=no
1313 DEFAULT_wxUSE_STATBMP=no
1314 DEFAULT_wxUSE_STATBOX=no
1315 DEFAULT_wxUSE_STATLINE=no
1316 DEFAULT_wxUSE_STATUSBAR=yes
1317 DEFAULT_wxUSE_TABDIALOG=no
1318 DEFAULT_wxUSE_TOOLBAR=no
1319 DEFAULT_wxUSE_TREECTRL=no
1320
1321 DEFAULT_wxUSE_UNICODE=no
1322 DEFAULT_wxUSE_WCSRTOMBS=no
1c8515f9
KB
1323
1324 DEFAULT_wxUSE_GIF=no
1325 DEFAULT_wxUSE_PCX=no
1326 DEFAULT_wxUSE_PNM=no
a16d3c04
KB
1327else
1328 DEFAULT_wxUSE_THREADS=yes
1329
1330 DEFAULT_wxUSE_SHARED=yes
1331 DEFAULT_wxUSE_OPTIMISE=yes
1332 DEFAULT_wxUSE_PROFILE=no
1333 DEFAULT_wxUSE_NO_DEPS=no
1334 DEFAULT_wxUSE_NO_RTTI=no
1335 DEFAULT_wxUSE_NO_EXCEPTIONS=no
1336 DEFAULT_wxUSE_PERMISSIVE=no
1337 DEFAULT_wxUSE_DEBUG_FLAG=no
1338 DEFAULT_wxUSE_DEBUG_INFO=no
1339 DEFAULT_wxUSE_DEBUG_GDB=no
1340 DEFAULT_wxUSE_MEM_TRACING=no
1341 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1342 DEFAULT_wxUSE_DMALLOC=no
1343 DEFAULT_wxUSE_APPLE_IEEE=yes
1344
1345 DEFAULT_wxUSE_LOG=yes
1346
1347 DEFAULT_wxUSE_GUI=yes
1348
1349 DEFAULT_wxUSE_ZLIB=yes
1350 DEFAULT_wxUSE_LIBPNG=yes
a16d3c04
KB
1351 DEFAULT_wxUSE_LIBJPEG=yes
1352 DEFAULT_wxUSE_ODBC=no
1353
1354 DEFAULT_wxUSE_STD_IOSTREAM=no
1355 DEFAULT_wxUSE_FILE=yes
1356 DEFAULT_wxUSE_TEXTFILE=yes
1357 DEFAULT_wxUSE_TIMEDATE=yes
1358 DEFAULT_wxUSE_WAVE=no
1359 DEFAULT_wxUSE_INTL=yes
1360 DEFAULT_wxUSE_CONFIG=yes
1361 DEFAULT_wxUSE_STREAMS=yes
1362 DEFAULT_wxUSE_SOCKETS=yes
1c8515f9 1363 DEFAULT_wxUSE_DIALUP_MANAGER=yes
a16d3c04
KB
1364 DEFAULT_wxUSE_SERIAL=yes
1365 DEFAULT_wxUSE_JOYSTICK=yes
1366 DEFAULT_wxUSE_DYNLIB_CLASS=yes
1367 DEFAULT_wxUSE_LONGLONG=no
1368
1369 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
1370 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
1371 DEFAULT_wxUSE_POSTSCRIPT=yes
1372
1373 DEFAULT_wxUSE_X_RESOURCES=no
1374 DEFAULT_wxUSE_CLIPBOARD=yes
1375 DEFAULT_wxUSE_TOOLTIPS=yes
1376 DEFAULT_wxUSE_DRAG_AND_DROP=yes
1377 DEFAULT_wxUSE_SPLINES=yes
1378
1379 DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
1380 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
1381 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
1382
1383 DEFAULT_wxUSE_PROLOGIO=yes
1384 DEFAULT_wxUSE_RESOURCES=yes
1385 DEFAULT_wxUSE_CONSTRAINTS=yes
1386 DEFAULT_wxUSE_IPC=yes
1387 DEFAULT_wxUSE_HELP=yes
1388 DEFAULT_wxUSE_WXTREE=yes
1389 DEFAULT_wxUSE_METAFILE=yes
1390
1391 DEFAULT_wxUSE_COMMONDLGS=yes
1392 DEFAULT_wxUSE_DIRDLG=yes
1393 DEFAULT_wxUSE_TEXTDLG=yes
1394 DEFAULT_wxUSE_STARTUP_TIPS=yes
1395 DEFAULT_wxUSE_PROGRESSDLG=yes
1396 DEFAULT_wxUSE_MINIFRAME=yes
1397 DEFAULT_wxUSE_HTML=yes
1398 DEFAULT_wxUSE_FS_INET=yes
1399 DEFAULT_wxUSE_FS_ZIP=yes
1400 DEFAULT_wxUSE_BUSYINFO=yes
1401 DEFAULT_wxUSE_ZIPSTREAM=yes
1402 DEFAULT_wxUSE_VALIDATORS=yes
1403
1404 DEFAULT_wxUSE_ACCEL=yes
1405 DEFAULT_wxUSE_CARET=yes
1406 DEFAULT_wxUSE_BMPBUTTON=yes
1407 DEFAULT_wxUSE_CHECKBOX=yes
1408 DEFAULT_wxUSE_CHECKLST=yes
1409 DEFAULT_wxUSE_CHOICE=yes
1410 DEFAULT_wxUSE_COMBOBOX=yes
1411 DEFAULT_wxUSE_GAUGE=yes
1412 DEFAULT_wxUSE_GRID=yes
1413 DEFAULT_wxUSE_IMAGLIST=yes
1414 DEFAULT_wxUSE_LISTBOX=yes
1415 DEFAULT_wxUSE_LISTCTRL=yes
1416 DEFAULT_wxUSE_NOTEBOOK=yes
1417 DEFAULT_wxUSE_RADIOBOX=yes
1418 DEFAULT_wxUSE_RADIOBTN=yes
1419 DEFAULT_wxUSE_SASH=yes
1420 DEFAULT_wxUSE_SCROLLBAR=yes
1421 DEFAULT_wxUSE_SLIDER=yes
1422 DEFAULT_wxUSE_SPINBTN=yes
1423 DEFAULT_wxUSE_SPLITTER=yes
1424 DEFAULT_wxUSE_STATBMP=yes
1425 DEFAULT_wxUSE_STATBOX=yes
1426 DEFAULT_wxUSE_STATLINE=yes
1427 DEFAULT_wxUSE_STATUSBAR=yes
1428 DEFAULT_wxUSE_TABDIALOG=no
1429 DEFAULT_wxUSE_TOOLBAR=yes
1430 DEFAULT_wxUSE_TREECTRL=yes
1431
1432 DEFAULT_wxUSE_UNICODE=no
1433 DEFAULT_wxUSE_WCSRTOMBS=no
1c8515f9
KB
1434
1435 DEFAULT_wxUSE_GIF=yes
1436 DEFAULT_wxUSE_PCX=yes
1437 DEFAULT_wxUSE_PNM=yes
a16d3c04
KB
1438fi
1439
1440
1441
1442for toolkit in `echo $ALL_TOOLKITS`; do
1443 LINE=`grep "wxUSE_$toolkit" ${wx_arg_cache_file}`
1444 if test "x$LINE" != x ; then
1445 has_toolkit_in_cache=1
1446 eval "DEFAULT_$LINE"
1447 eval "CACHE_$toolkit=1"
1448 fi
1449done
1450
1451# Check whether --with-gtk or --without-gtk was given.
1452if test "${with_gtk+set}" = set; then
1453 withval="$with_gtk"
1454 wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
1455fi
1456
1457# Check whether --with-motif or --without-motif was given.
1458if test "${with_motif+set}" = set; then
1459 withval="$with_motif"
1460 wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
1461fi
1462
1463# Check whether --with-wine or --without-wine was given.
1464if test "${with_wine+set}" = set; then
1465 withval="$with_wine"
1466 wxUSE_WINE="$withval" CACHE_WINE=1 TOOLKIT_GIVEN=1
1467fi
1468
1469# Check whether --with-cygwin or --without-cygwin was given.
1470if test "${with_cygwin+set}" = set; then
1471 withval="$with_cygwin"
1472 wxUSE_CYGWIN="$withval" CACHE_CYGWIN=1 TOOLKIT_GIVEN=1
1473fi
1474
1475# Check whether --with-mingw or --without-mingw was given.
1476if test "${with_mingw+set}" = set; then
1477 withval="$with_mingw"
1478 wxUSE_MINGW="$withval" CACHE_MINGW=1 TOOLKIT_GIVEN=1
1479fi
1480
1481
1482# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
1483if test "${with_gtk_prefix+set}" = set; then
1484 withval="$with_gtk_prefix"
1485 gtk_config_prefix="$withval"
1486else
1487 gtk_config_prefix=""
1488fi
1489
1490# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
1491if test "${with_gtk_exec_prefix+set}" = set; then
1492 withval="$with_gtk_exec_prefix"
1493 gtk_config_exec_prefix="$withval"
1494else
1495 gtk_config_exec_prefix=""
1496fi
1497
1498
1499
1500 echo $ac_n "checking "for --with-dmalloc"""... $ac_c" 1>&6
fa3e4baf 1501echo "configure:1502: checking "for --with-dmalloc"" >&5
a16d3c04
KB
1502 no_cache=0
1503 # Check whether --with-dmalloc or --without-dmalloc was given.
1504if test "${with_dmalloc+set}" = set; then
1505 withval="$with_dmalloc"
1506
1507 if test "$withval" = yes; then
1508 ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
1509 else
1510 ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
1511 fi
1512
1513else
1514
1515 LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
1516 if test "x$LINE" != x ; then
1517 eval "DEFAULT_$LINE"
1518 else
1519 no_cache=1
1520 fi
1521
1522 ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
1523
1524fi
1525
1526
1527 eval "$ac_cv_use_dmalloc"
1528 if test "$no_cache" != 1; then
1529 echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
1530 fi
1531
1532 if test "$wxUSE_DMALLOC" = yes; then
1533 echo "$ac_t""yes" 1>&6
1534 else
1535 echo "$ac_t""no" 1>&6
1536 fi
1537
1538
1539 echo $ac_n "checking "for --with-zlib"""... $ac_c" 1>&6
fa3e4baf 1540echo "configure:1541: checking "for --with-zlib"" >&5
a16d3c04
KB
1541 no_cache=0
1542 # Check whether --with-zlib or --without-zlib was given.
1543if test "${with_zlib+set}" = set; then
1544 withval="$with_zlib"
1545
1546 if test "$withval" = yes; then
1547 ac_cv_use_zlib='wxUSE_ZLIB=yes'
1548 else
1549 ac_cv_use_zlib='wxUSE_ZLIB=no'
1550 fi
1551
1552else
1553
1554 LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
1555 if test "x$LINE" != x ; then
1556 eval "DEFAULT_$LINE"
1557 else
1558 no_cache=1
1559 fi
1560
1561 ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
1562
1563fi
1564
1565
1566 eval "$ac_cv_use_zlib"
1567 if test "$no_cache" != 1; then
1568 echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
1569 fi
1570
1571 if test "$wxUSE_ZLIB" = yes; then
1572 echo "$ac_t""yes" 1>&6
1573 else
1574 echo "$ac_t""no" 1>&6
1575 fi
1576
1577
1578 echo $ac_n "checking "for --with-libpng"""... $ac_c" 1>&6
fa3e4baf 1579echo "configure:1580: checking "for --with-libpng"" >&5
a16d3c04
KB
1580 no_cache=0
1581 # Check whether --with-libpng or --without-libpng was given.
1582if test "${with_libpng+set}" = set; then
1583 withval="$with_libpng"
1584
1585 if test "$withval" = yes; then
1586 ac_cv_use_libpng='wxUSE_LIBPNG=yes'
1587 else
1588 ac_cv_use_libpng='wxUSE_LIBPNG=no'
1589 fi
1590
1591else
1592
1593 LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
1594 if test "x$LINE" != x ; then
1595 eval "DEFAULT_$LINE"
1596 else
1597 no_cache=1
1598 fi
1599
1600 ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
1601
1602fi
1603
1604
1605 eval "$ac_cv_use_libpng"
1606 if test "$no_cache" != 1; then
1607 echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
1608 fi
1609
1610 if test "$wxUSE_LIBPNG" = yes; then
1611 echo "$ac_t""yes" 1>&6
1612 else
1613 echo "$ac_t""no" 1>&6
1614 fi
1615
1616
a16d3c04 1617 echo $ac_n "checking "for --with-libjpeg"""... $ac_c" 1>&6
fa3e4baf 1618echo "configure:1619: checking "for --with-libjpeg"" >&5
a16d3c04
KB
1619 no_cache=0
1620 # Check whether --with-libjpeg or --without-libjpeg was given.
1621if test "${with_libjpeg+set}" = set; then
1622 withval="$with_libjpeg"
1623
1624 if test "$withval" = yes; then
1625 ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
1626 else
1627 ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
1628 fi
1629
1630else
1631
1632 LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
1633 if test "x$LINE" != x ; then
1634 eval "DEFAULT_$LINE"
1635 else
1636 no_cache=1
1637 fi
1638
1639 ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
1640
1641fi
1642
1643
1644 eval "$ac_cv_use_libjpeg"
1645 if test "$no_cache" != 1; then
1646 echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
1647 fi
1648
1649 if test "$wxUSE_LIBJPEG" = yes; then
1650 echo "$ac_t""yes" 1>&6
1651 else
1652 echo "$ac_t""no" 1>&6
1653 fi
1654
1655
1656 echo $ac_n "checking "for --with-opengl"""... $ac_c" 1>&6
fa3e4baf 1657echo "configure:1658: checking "for --with-opengl"" >&5
a16d3c04
KB
1658 no_cache=0
1659 # Check whether --with-opengl or --without-opengl was given.
1660if test "${with_opengl+set}" = set; then
1661 withval="$with_opengl"
1662
1663 if test "$withval" = yes; then
1664 ac_cv_use_opengl='wxUSE_OPENGL=yes'
1665 else
1666 ac_cv_use_opengl='wxUSE_OPENGL=no'
1667 fi
1668
1669else
1670
1671 LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
1672 if test "x$LINE" != x ; then
1673 eval "DEFAULT_$LINE"
1674 else
1675 no_cache=1
1676 fi
1677
1678 ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
1679
1680fi
1681
1682
1683 eval "$ac_cv_use_opengl"
1684 if test "$no_cache" != 1; then
1685 echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
1686 fi
1687
1688 if test "$wxUSE_OPENGL" = yes; then
1689 echo "$ac_t""yes" 1>&6
1690 else
1691 echo "$ac_t""no" 1>&6
1692 fi
1693
1694
1695 echo $ac_n "checking "for --with-odbc"""... $ac_c" 1>&6
fa3e4baf 1696echo "configure:1697: checking "for --with-odbc"" >&5
a16d3c04
KB
1697 no_cache=0
1698 # Check whether --with-odbc or --without-odbc was given.
1699if test "${with_odbc+set}" = set; then
1700 withval="$with_odbc"
1701
1702 if test "$withval" = yes; then
1703 ac_cv_use_odbc='wxUSE_ODBC=yes'
1704 else
1705 ac_cv_use_odbc='wxUSE_ODBC=no'
1706 fi
1707
1708else
1709
1710 LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
1711 if test "x$LINE" != x ; then
1712 eval "DEFAULT_$LINE"
1713 else
1714 no_cache=1
1715 fi
1716
1717 ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
1718
1719fi
1720
1721
1722 eval "$ac_cv_use_odbc"
1723 if test "$no_cache" != 1; then
1724 echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
1725 fi
1726
1727 if test "$wxUSE_ODBC" = yes; then
1728 echo "$ac_t""yes" 1>&6
1729 else
1730 echo "$ac_t""no" 1>&6
1731 fi
1732
1733
1734
1735
1736
1737 echo $ac_n "checking "for --enable-shared"""... $ac_c" 1>&6
fa3e4baf 1738echo "configure:1739: checking "for --enable-shared"" >&5
a16d3c04
KB
1739 no_cache=0
1740 # Check whether --enable-shared or --disable-shared was given.
1741if test "${enable_shared+set}" = set; then
1742 enableval="$enable_shared"
1743
1744 if test "$enableval" = yes; then
1745 ac_cv_use_shared='wxUSE_SHARED=yes'
1746 else
1747 ac_cv_use_shared='wxUSE_SHARED=no'
1748 fi
1749
1750else
1751
1752 LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
1753 if test "x$LINE" != x ; then
1754 eval "DEFAULT_$LINE"
1755 else
1756 no_cache=1
1757 fi
1758
1759 ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
1760
1761fi
1762
1763
1764 eval "$ac_cv_use_shared"
1765 if test "$no_cache" != 1; then
1766 echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
1767 fi
1768
1769 if test "$wxUSE_SHARED" = yes; then
1770 echo "$ac_t""yes" 1>&6
1771 else
1772 echo "$ac_t""no" 1>&6
1773 fi
1774
1775
1776 echo $ac_n "checking "for --enable-optimise"""... $ac_c" 1>&6
fa3e4baf 1777echo "configure:1778: checking "for --enable-optimise"" >&5
a16d3c04
KB
1778 no_cache=0
1779 # Check whether --enable-optimise or --disable-optimise was given.
1780if test "${enable_optimise+set}" = set; then
1781 enableval="$enable_optimise"
1782
1783 if test "$enableval" = yes; then
1784 ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
1785 else
1786 ac_cv_use_optimise='wxUSE_OPTIMISE=no'
1787 fi
1788
1789else
1790
1791 LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
1792 if test "x$LINE" != x ; then
1793 eval "DEFAULT_$LINE"
1794 else
1795 no_cache=1
1796 fi
1797
1798 ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
1799
1800fi
1801
1802
1803 eval "$ac_cv_use_optimise"
1804 if test "$no_cache" != 1; then
1805 echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
1806 fi
1807
1808 if test "$wxUSE_OPTIMISE" = yes; then
1809 echo "$ac_t""yes" 1>&6
1810 else
1811 echo "$ac_t""no" 1>&6
1812 fi
1813
1814
1815 echo $ac_n "checking "for --enable-debug"""... $ac_c" 1>&6
fa3e4baf 1816echo "configure:1817: checking "for --enable-debug"" >&5
a16d3c04
KB
1817 no_cache=0
1818 # Check whether --enable-debug or --disable-debug was given.
1819if test "${enable_debug+set}" = set; then
1820 enableval="$enable_debug"
1821
1822 if test "$enableval" = yes; then
1823 ac_cv_use_debug='wxUSE_DEBUG=yes'
1824 else
1825 ac_cv_use_debug='wxUSE_DEBUG=no'
1826 fi
1827
1828else
1829
1830 LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
1831 if test "x$LINE" != x ; then
1832 eval "DEFAULT_$LINE"
1833 else
1834 no_cache=1
1835 fi
1836
1837 ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
1838
1839fi
1840
1841
1842 eval "$ac_cv_use_debug"
1843 if test "$no_cache" != 1; then
1844 echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
1845 fi
1846
1847 if test "$wxUSE_DEBUG" = yes; then
1848 echo "$ac_t""yes" 1>&6
1849 else
1850 echo "$ac_t""no" 1>&6
1851 fi
1852
1853
1854if test "$wxUSE_DEBUG" = "yes"; then
1855 DEFAULT_wxUSE_DEBUG_FLAG=yes
1856 DEFAULT_wxUSE_DEBUG_INFO=yes
1857elif test "$wxUSE_DEBUG" = "no"; then
1858 DEFAULT_wxUSE_DEBUG_FLAG=no
1859 DEFAULT_wxUSE_DEBUG_INFO=no
1860fi
1861
1862
1863 echo $ac_n "checking "for --enable-debug_flag"""... $ac_c" 1>&6
fa3e4baf 1864echo "configure:1865: checking "for --enable-debug_flag"" >&5
a16d3c04
KB
1865 no_cache=0
1866 # Check whether --enable-debug_flag or --disable-debug_flag was given.
1867if test "${enable_debug_flag+set}" = set; then
1868 enableval="$enable_debug_flag"
1869
1870 if test "$enableval" = yes; then
1871 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
1872 else
1873 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
1874 fi
1875
1876else
1877
1878 LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
1879 if test "x$LINE" != x ; then
1880 eval "DEFAULT_$LINE"
1881 else
1882 no_cache=1
1883 fi
1884
1885 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
1886
1887fi
1888
1889
1890 eval "$ac_cv_use_debug_flag"
1891 if test "$no_cache" != 1; then
1892 echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
1893 fi
1894
1895 if test "$wxUSE_DEBUG_FLAG" = yes; then
1896 echo "$ac_t""yes" 1>&6
1897 else
1898 echo "$ac_t""no" 1>&6
1899 fi
1900
1901
1902 echo $ac_n "checking "for --enable-debug_info"""... $ac_c" 1>&6
fa3e4baf 1903echo "configure:1904: checking "for --enable-debug_info"" >&5
a16d3c04
KB
1904 no_cache=0
1905 # Check whether --enable-debug_info or --disable-debug_info was given.
1906if test "${enable_debug_info+set}" = set; then
1907 enableval="$enable_debug_info"
1908
1909 if test "$enableval" = yes; then
1910 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
1911 else
1912 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
1913 fi
1914
1915else
1916
1917 LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
1918 if test "x$LINE" != x ; then
1919 eval "DEFAULT_$LINE"
1920 else
1921 no_cache=1
1922 fi
1923
1924 ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
1925
1926fi
1927
1928
1929 eval "$ac_cv_use_debug_info"
1930 if test "$no_cache" != 1; then
1931 echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
1932 fi
1933
1934 if test "$wxUSE_DEBUG_INFO" = yes; then
1935 echo "$ac_t""yes" 1>&6
1936 else
1937 echo "$ac_t""no" 1>&6
1938 fi
1939
1940
1941 echo $ac_n "checking "for --enable-debug_gdb"""... $ac_c" 1>&6
fa3e4baf 1942echo "configure:1943: checking "for --enable-debug_gdb"" >&5
a16d3c04
KB
1943 no_cache=0
1944 # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
1945if test "${enable_debug_gdb+set}" = set; then
1946 enableval="$enable_debug_gdb"
1947
1948 if test "$enableval" = yes; then
1949 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
1950 else
1951 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
1952 fi
1953
1954else
1955
1956 LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
1957 if test "x$LINE" != x ; then
1958 eval "DEFAULT_$LINE"
1959 else
1960 no_cache=1
1961 fi
1962
1963 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
1964
1965fi
1966
1967
1968 eval "$ac_cv_use_debug_gdb"
1969 if test "$no_cache" != 1; then
1970 echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
1971 fi
1972
1973 if test "$wxUSE_DEBUG_GDB" = yes; then
1974 echo "$ac_t""yes" 1>&6
1975 else
1976 echo "$ac_t""no" 1>&6
1977 fi
1978
1979
1980 echo $ac_n "checking "for --enable-debug_cntxt"""... $ac_c" 1>&6
fa3e4baf 1981echo "configure:1982: checking "for --enable-debug_cntxt"" >&5
a16d3c04
KB
1982 no_cache=0
1983 # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
1984if test "${enable_debug_cntxt+set}" = set; then
1985 enableval="$enable_debug_cntxt"
1986
1987 if test "$enableval" = yes; then
1988 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
1989 else
1990 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
1991 fi
1992
1993else
1994
1995 LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
1996 if test "x$LINE" != x ; then
1997 eval "DEFAULT_$LINE"
1998 else
1999 no_cache=1
2000 fi
2001
2002 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
2003
2004fi
2005
2006
2007 eval "$ac_cv_use_debug_cntxt"
2008 if test "$no_cache" != 1; then
2009 echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
2010 fi
2011
2012 if test "$wxUSE_DEBUG_CONTEXT" = yes; then
2013 echo "$ac_t""yes" 1>&6
2014 else
2015 echo "$ac_t""no" 1>&6
2016 fi
2017
2018
2019 echo $ac_n "checking "for --enable-mem_tracing"""... $ac_c" 1>&6
fa3e4baf 2020echo "configure:2021: checking "for --enable-mem_tracing"" >&5
a16d3c04
KB
2021 no_cache=0
2022 # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
2023if test "${enable_mem_tracing+set}" = set; then
2024 enableval="$enable_mem_tracing"
2025
2026 if test "$enableval" = yes; then
2027 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
2028 else
2029 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
2030 fi
2031
2032else
2033
2034 LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
2035 if test "x$LINE" != x ; then
2036 eval "DEFAULT_$LINE"
2037 else
2038 no_cache=1
2039 fi
2040
2041 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
2042
2043fi
2044
2045
2046 eval "$ac_cv_use_mem_tracing"
2047 if test "$no_cache" != 1; then
2048 echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
2049 fi
2050
2051 if test "$wxUSE_MEM_TRACING" = yes; then
2052 echo "$ac_t""yes" 1>&6
2053 else
2054 echo "$ac_t""no" 1>&6
2055 fi
2056
2057
2058 echo $ac_n "checking "for --enable-profile"""... $ac_c" 1>&6
fa3e4baf 2059echo "configure:2060: checking "for --enable-profile"" >&5
a16d3c04
KB
2060 no_cache=0
2061 # Check whether --enable-profile or --disable-profile was given.
2062if test "${enable_profile+set}" = set; then
2063 enableval="$enable_profile"
2064
2065 if test "$enableval" = yes; then
2066 ac_cv_use_profile='wxUSE_PROFILE=yes'
2067 else
2068 ac_cv_use_profile='wxUSE_PROFILE=no'
2069 fi
2070
2071else
2072
2073 LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
2074 if test "x$LINE" != x ; then
2075 eval "DEFAULT_$LINE"
2076 else
2077 no_cache=1
2078 fi
2079
2080 ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
2081
2082fi
2083
2084
2085 eval "$ac_cv_use_profile"
2086 if test "$no_cache" != 1; then
2087 echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
2088 fi
2089
2090 if test "$wxUSE_PROFILE" = yes; then
2091 echo "$ac_t""yes" 1>&6
2092 else
2093 echo "$ac_t""no" 1>&6
2094 fi
2095
2096
2097 echo $ac_n "checking "for --enable-no_rtti"""... $ac_c" 1>&6
fa3e4baf 2098echo "configure:2099: checking "for --enable-no_rtti"" >&5
a16d3c04
KB
2099 no_cache=0
2100 # Check whether --enable-no_rtti or --disable-no_rtti was given.
2101if test "${enable_no_rtti+set}" = set; then
2102 enableval="$enable_no_rtti"
2103
2104 if test "$enableval" = yes; then
2105 ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
2106 else
2107 ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
2108 fi
2109
2110else
2111
2112 LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
2113 if test "x$LINE" != x ; then
2114 eval "DEFAULT_$LINE"
2115 else
2116 no_cache=1
2117 fi
2118
2119 ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
2120
2121fi
2122
2123
2124 eval "$ac_cv_use_no_rtti"
2125 if test "$no_cache" != 1; then
2126 echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
2127 fi
2128
2129 if test "$wxUSE_NO_RTTI" = yes; then
2130 echo "$ac_t""yes" 1>&6
2131 else
2132 echo "$ac_t""no" 1>&6
2133 fi
2134
2135
2136 echo $ac_n "checking "for --enable-no_exceptions"""... $ac_c" 1>&6
fa3e4baf 2137echo "configure:2138: checking "for --enable-no_exceptions"" >&5
a16d3c04
KB
2138 no_cache=0
2139 # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
2140if test "${enable_no_exceptions+set}" = set; then
2141 enableval="$enable_no_exceptions"
2142
2143 if test "$enableval" = yes; then
2144 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
2145 else
2146 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
2147 fi
2148
2149else
2150
2151 LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
2152 if test "x$LINE" != x ; then
2153 eval "DEFAULT_$LINE"
2154 else
2155 no_cache=1
2156 fi
2157
2158 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
2159
2160fi
2161
2162
2163 eval "$ac_cv_use_no_exceptions"
2164 if test "$no_cache" != 1; then
2165 echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
2166 fi
2167
2168 if test "$wxUSE_NO_EXCEPTIONS" = yes; then
2169 echo "$ac_t""yes" 1>&6
2170 else
2171 echo "$ac_t""no" 1>&6
2172 fi
2173
2174
2175 echo $ac_n "checking "for --enable-permissive"""... $ac_c" 1>&6
fa3e4baf 2176echo "configure:2177: checking "for --enable-permissive"" >&5
a16d3c04
KB
2177 no_cache=0
2178 # Check whether --enable-permissive or --disable-permissive was given.
2179if test "${enable_permissive+set}" = set; then
2180 enableval="$enable_permissive"
2181
2182 if test "$enableval" = yes; then
2183 ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
2184 else
2185 ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
2186 fi
2187
2188else
2189
2190 LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
2191 if test "x$LINE" != x ; then
2192 eval "DEFAULT_$LINE"
2193 else
2194 no_cache=1
2195 fi
2196
2197 ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
2198
2199fi
2200
2201
2202 eval "$ac_cv_use_permissive"
2203 if test "$no_cache" != 1; then
2204 echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
2205 fi
2206
2207 if test "$wxUSE_PERMISSIVE" = yes; then
2208 echo "$ac_t""yes" 1>&6
2209 else
2210 echo "$ac_t""no" 1>&6
2211 fi
2212
2213
2214 echo $ac_n "checking "for --enable-no_deps"""... $ac_c" 1>&6
fa3e4baf 2215echo "configure:2216: checking "for --enable-no_deps"" >&5
a16d3c04
KB
2216 no_cache=0
2217 # Check whether --enable-no_deps or --disable-no_deps was given.
2218if test "${enable_no_deps+set}" = set; then
2219 enableval="$enable_no_deps"
2220
2221 if test "$enableval" = yes; then
2222 ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
2223 else
2224 ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
2225 fi
2226
2227else
2228
2229 LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
2230 if test "x$LINE" != x ; then
2231 eval "DEFAULT_$LINE"
2232 else
2233 no_cache=1
2234 fi
2235
2236 ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
2237
2238fi
2239
2240
2241 eval "$ac_cv_use_no_deps"
2242 if test "$no_cache" != 1; then
2243 echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
2244 fi
2245
2246 if test "$wxUSE_NO_DEPS" = yes; then
2247 echo "$ac_t""yes" 1>&6
2248 else
2249 echo "$ac_t""no" 1>&6
2250 fi
2251
2252
2253
2254
2255 echo $ac_n "checking "for --enable-gui"""... $ac_c" 1>&6
fa3e4baf 2256echo "configure:2257: checking "for --enable-gui"" >&5
a16d3c04
KB
2257 no_cache=0
2258 # Check whether --enable-gui or --disable-gui was given.
2259if test "${enable_gui+set}" = set; then
2260 enableval="$enable_gui"
2261
2262 if test "$enableval" = yes; then
2263 ac_cv_use_gui='wxUSE_GUI=yes'
2264 else
2265 ac_cv_use_gui='wxUSE_GUI=no'
2266 fi
2267
2268else
2269
2270 LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
2271 if test "x$LINE" != x ; then
2272 eval "DEFAULT_$LINE"
2273 else
2274 no_cache=1
2275 fi
2276
2277 ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
2278
2279fi
2280
2281
2282 eval "$ac_cv_use_gui"
2283 if test "$no_cache" != 1; then
2284 echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
2285 fi
2286
2287 if test "$wxUSE_GUI" = yes; then
2288 echo "$ac_t""yes" 1>&6
2289 else
2290 echo "$ac_t""no" 1>&6
2291 fi
2292
2293
2294
2295
2296 echo $ac_n "checking "for --enable-intl"""... $ac_c" 1>&6
fa3e4baf 2297echo "configure:2298: checking "for --enable-intl"" >&5
a16d3c04
KB
2298 no_cache=0
2299 # Check whether --enable-intl or --disable-intl was given.
2300if test "${enable_intl+set}" = set; then
2301 enableval="$enable_intl"
2302
2303 if test "$enableval" = yes; then
2304 ac_cv_use_intl='wxUSE_INTL=yes'
2305 else
2306 ac_cv_use_intl='wxUSE_INTL=no'
2307 fi
2308
2309else
2310
2311 LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
2312 if test "x$LINE" != x ; then
2313 eval "DEFAULT_$LINE"
2314 else
2315 no_cache=1
2316 fi
2317
2318 ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
2319
2320fi
2321
2322
2323 eval "$ac_cv_use_intl"
2324 if test "$no_cache" != 1; then
2325 echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
2326 fi
2327
2328 if test "$wxUSE_INTL" = yes; then
2329 echo "$ac_t""yes" 1>&6
2330 else
2331 echo "$ac_t""no" 1>&6
2332 fi
2333
2334
2335 echo $ac_n "checking "for --enable-config"""... $ac_c" 1>&6
fa3e4baf 2336echo "configure:2337: checking "for --enable-config"" >&5
a16d3c04
KB
2337 no_cache=0
2338 # Check whether --enable-config or --disable-config was given.
2339if test "${enable_config+set}" = set; then
2340 enableval="$enable_config"
2341
2342 if test "$enableval" = yes; then
2343 ac_cv_use_config='wxUSE_CONFIG=yes'
2344 else
2345 ac_cv_use_config='wxUSE_CONFIG=no'
2346 fi
2347
2348else
2349
2350 LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
2351 if test "x$LINE" != x ; then
2352 eval "DEFAULT_$LINE"
2353 else
2354 no_cache=1
2355 fi
2356
2357 ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
2358
2359fi
2360
2361
2362 eval "$ac_cv_use_config"
2363 if test "$no_cache" != 1; then
2364 echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
2365 fi
2366
2367 if test "$wxUSE_CONFIG" = yes; then
2368 echo "$ac_t""yes" 1>&6
2369 else
2370 echo "$ac_t""no" 1>&6
2371 fi
2372
2373
2374 echo $ac_n "checking "for --enable-sockets"""... $ac_c" 1>&6
fa3e4baf 2375echo "configure:2376: checking "for --enable-sockets"" >&5
a16d3c04
KB
2376 no_cache=0
2377 # Check whether --enable-sockets or --disable-sockets was given.
2378if test "${enable_sockets+set}" = set; then
2379 enableval="$enable_sockets"
2380
2381 if test "$enableval" = yes; then
2382 ac_cv_use_sockets='wxUSE_SOCKETS=yes'
2383 else
2384 ac_cv_use_sockets='wxUSE_SOCKETS=no'
2385 fi
2386
2387else
2388
2389 LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
2390 if test "x$LINE" != x ; then
2391 eval "DEFAULT_$LINE"
2392 else
2393 no_cache=1
2394 fi
2395
2396 ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
2397
2398fi
2399
2400
2401 eval "$ac_cv_use_sockets"
2402 if test "$no_cache" != 1; then
2403 echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
2404 fi
2405
2406 if test "$wxUSE_SOCKETS" = yes; then
2407 echo "$ac_t""yes" 1>&6
2408 else
2409 echo "$ac_t""no" 1>&6
2410 fi
2411
2412
1c8515f9 2413 echo $ac_n "checking "for --enable-dialupman"""... $ac_c" 1>&6
fa3e4baf 2414echo "configure:2415: checking "for --enable-dialupman"" >&5
1c8515f9
KB
2415 no_cache=0
2416 # Check whether --enable-dialupman or --disable-dialupman was given.
2417if test "${enable_dialupman+set}" = set; then
2418 enableval="$enable_dialupman"
2419
2420 if test "$enableval" = yes; then
2421 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
2422 else
2423 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
2424 fi
2425
2426else
2427
2428 LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
2429 if test "x$LINE" != x ; then
2430 eval "DEFAULT_$LINE"
2431 else
2432 no_cache=1
2433 fi
2434
2435 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
2436
2437fi
2438
2439
2440 eval "$ac_cv_use_dialupman"
2441 if test "$no_cache" != 1; then
2442 echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
2443 fi
2444
2445 if test "$wxUSE_DIALUP_MANAGER" = yes; then
2446 echo "$ac_t""yes" 1>&6
2447 else
2448 echo "$ac_t""no" 1>&6
2449 fi
2450
2451
a16d3c04 2452 echo $ac_n "checking "for --enable-ipc"""... $ac_c" 1>&6
fa3e4baf 2453echo "configure:2454: checking "for --enable-ipc"" >&5
a16d3c04
KB
2454 no_cache=0
2455 # Check whether --enable-ipc or --disable-ipc was given.
2456if test "${enable_ipc+set}" = set; then
2457 enableval="$enable_ipc"
2458
2459 if test "$enableval" = yes; then
2460 ac_cv_use_ipc='wxUSE_IPC=yes'
2461 else
2462 ac_cv_use_ipc='wxUSE_IPC=no'
2463 fi
2464
2465else
2466
2467 LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
2468 if test "x$LINE" != x ; then
2469 eval "DEFAULT_$LINE"
2470 else
2471 no_cache=1
2472 fi
2473
2474 ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
2475
2476fi
2477
2478
2479 eval "$ac_cv_use_ipc"
2480 if test "$no_cache" != 1; then
2481 echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
2482 fi
2483
2484 if test "$wxUSE_IPC" = yes; then
2485 echo "$ac_t""yes" 1>&6
2486 else
2487 echo "$ac_t""no" 1>&6
2488 fi
2489
2490
2491 echo $ac_n "checking "for --enable-apple_ieee"""... $ac_c" 1>&6
fa3e4baf 2492echo "configure:2493: checking "for --enable-apple_ieee"" >&5
a16d3c04
KB
2493 no_cache=0
2494 # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
2495if test "${enable_apple_ieee+set}" = set; then
2496 enableval="$enable_apple_ieee"
2497
2498 if test "$enableval" = yes; then
2499 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
2500 else
2501 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
2502 fi
2503
2504else
2505
2506 LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
2507 if test "x$LINE" != x ; then
2508 eval "DEFAULT_$LINE"
2509 else
2510 no_cache=1
2511 fi
2512
2513 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
2514
2515fi
2516
2517
2518 eval "$ac_cv_use_apple_ieee"
2519 if test "$no_cache" != 1; then
2520 echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
2521 fi
2522
2523 if test "$wxUSE_APPLE_IEEE" = yes; then
2524 echo "$ac_t""yes" 1>&6
2525 else
2526 echo "$ac_t""no" 1>&6
2527 fi
2528
2529
2530 echo $ac_n "checking "for --enable-timedate"""... $ac_c" 1>&6
fa3e4baf 2531echo "configure:2532: checking "for --enable-timedate"" >&5
a16d3c04
KB
2532 no_cache=0
2533 # Check whether --enable-timedate or --disable-timedate was given.
2534if test "${enable_timedate+set}" = set; then
2535 enableval="$enable_timedate"
2536
2537 if test "$enableval" = yes; then
2538 ac_cv_use_timedate='wxUSE_TIMEDATE=yes'
2539 else
2540 ac_cv_use_timedate='wxUSE_TIMEDATE=no'
2541 fi
2542
2543else
2544
2545 LINE=`grep "wxUSE_TIMEDATE" ${wx_arg_cache_file}`
2546 if test "x$LINE" != x ; then
2547 eval "DEFAULT_$LINE"
2548 else
2549 no_cache=1
2550 fi
2551
2552 ac_cv_use_timedate='wxUSE_TIMEDATE='$DEFAULT_wxUSE_TIMEDATE
2553
2554fi
2555
2556
2557 eval "$ac_cv_use_timedate"
2558 if test "$no_cache" != 1; then
2559 echo $ac_cv_use_timedate >> ${wx_arg_cache_file}.tmp
2560 fi
2561
2562 if test "$wxUSE_TIMEDATE" = yes; then
2563 echo "$ac_t""yes" 1>&6
2564 else
2565 echo "$ac_t""no" 1>&6
2566 fi
2567
2568
2569 echo $ac_n "checking "for --enable-wave"""... $ac_c" 1>&6
fa3e4baf 2570echo "configure:2571: checking "for --enable-wave"" >&5
a16d3c04
KB
2571 no_cache=0
2572 # Check whether --enable-wave or --disable-wave was given.
2573if test "${enable_wave+set}" = set; then
2574 enableval="$enable_wave"
2575
2576 if test "$enableval" = yes; then
2577 ac_cv_use_wave='wxUSE_WAVE=yes'
2578 else
2579 ac_cv_use_wave='wxUSE_WAVE=no'
2580 fi
2581
2582else
2583
2584 LINE=`grep "wxUSE_WAVE" ${wx_arg_cache_file}`
2585 if test "x$LINE" != x ; then
2586 eval "DEFAULT_$LINE"
2587 else
2588 no_cache=1
2589 fi
2590
2591 ac_cv_use_wave='wxUSE_WAVE='$DEFAULT_wxUSE_WAVE
2592
2593fi
2594
2595
2596 eval "$ac_cv_use_wave"
2597 if test "$no_cache" != 1; then
2598 echo $ac_cv_use_wave >> ${wx_arg_cache_file}.tmp
2599 fi
2600
2601 if test "$wxUSE_WAVE" = yes; then
2602 echo "$ac_t""yes" 1>&6
2603 else
2604 echo "$ac_t""no" 1>&6
2605 fi
2606
2607
2608 echo $ac_n "checking "for --enable-fraction"""... $ac_c" 1>&6
fa3e4baf 2609echo "configure:2610: checking "for --enable-fraction"" >&5
a16d3c04
KB
2610 no_cache=0
2611 # Check whether --enable-fraction or --disable-fraction was given.
2612if test "${enable_fraction+set}" = set; then
2613 enableval="$enable_fraction"
2614
2615 if test "$enableval" = yes; then
2616 ac_cv_use_fraction='wxUSE_FRACTION=yes'
2617 else
2618 ac_cv_use_fraction='wxUSE_FRACTION=no'
2619 fi
2620
2621else
2622
2623 LINE=`grep "wxUSE_FRACTION" ${wx_arg_cache_file}`
2624 if test "x$LINE" != x ; then
2625 eval "DEFAULT_$LINE"
2626 else
2627 no_cache=1
2628 fi
2629
2630 ac_cv_use_fraction='wxUSE_FRACTION='$DEFAULT_wxUSE_FRACTION
2631
2632fi
2633
2634
2635 eval "$ac_cv_use_fraction"
2636 if test "$no_cache" != 1; then
2637 echo $ac_cv_use_fraction >> ${wx_arg_cache_file}.tmp
2638 fi
2639
2640 if test "$wxUSE_FRACTION" = yes; then
2641 echo "$ac_t""yes" 1>&6
2642 else
2643 echo "$ac_t""no" 1>&6
2644 fi
2645
2646
2647 echo $ac_n "checking "for --enable-dynlib"""... $ac_c" 1>&6
fa3e4baf 2648echo "configure:2649: checking "for --enable-dynlib"" >&5
a16d3c04
KB
2649 no_cache=0
2650 # Check whether --enable-dynlib or --disable-dynlib was given.
2651if test "${enable_dynlib+set}" = set; then
2652 enableval="$enable_dynlib"
2653
2654 if test "$enableval" = yes; then
2655 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
2656 else
2657 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
2658 fi
2659
2660else
2661
2662 LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
2663 if test "x$LINE" != x ; then
2664 eval "DEFAULT_$LINE"
2665 else
2666 no_cache=1
2667 fi
2668
2669 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
2670
2671fi
2672
2673
2674 eval "$ac_cv_use_dynlib"
2675 if test "$no_cache" != 1; then
2676 echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
2677 fi
2678
2679 if test "$wxUSE_DYNLIB_CLASS" = yes; then
2680 echo "$ac_t""yes" 1>&6
2681 else
2682 echo "$ac_t""no" 1>&6
2683 fi
2684
2685
2686 echo $ac_n "checking "for --enable-longlong"""... $ac_c" 1>&6
fa3e4baf 2687echo "configure:2688: checking "for --enable-longlong"" >&5
a16d3c04
KB
2688 no_cache=0
2689 # Check whether --enable-longlong or --disable-longlong was given.
2690if test "${enable_longlong+set}" = set; then
2691 enableval="$enable_longlong"
2692
2693 if test "$enableval" = yes; then
2694 ac_cv_use_longlong='wxUSE_LONGLONG=yes'
2695 else
2696 ac_cv_use_longlong='wxUSE_LONGLONG=no'
2697 fi
2698
2699else
2700
2701 LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
2702 if test "x$LINE" != x ; then
2703 eval "DEFAULT_$LINE"
2704 else
2705 no_cache=1
2706 fi
2707
2708 ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
2709
2710fi
2711
2712
2713 eval "$ac_cv_use_longlong"
2714 if test "$no_cache" != 1; then
2715 echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
2716 fi
2717
2718 if test "$wxUSE_LONGLONG" = yes; then
2719 echo "$ac_t""yes" 1>&6
2720 else
2721 echo "$ac_t""no" 1>&6
2722 fi
2723
2724
2725 echo $ac_n "checking "for --enable-log"""... $ac_c" 1>&6
fa3e4baf 2726echo "configure:2727: checking "for --enable-log"" >&5
a16d3c04
KB
2727 no_cache=0
2728 # Check whether --enable-log or --disable-log was given.
2729if test "${enable_log+set}" = set; then
2730 enableval="$enable_log"
2731
2732 if test "$enableval" = yes; then
2733 ac_cv_use_log='wxUSE_LOG=yes'
2734 else
2735 ac_cv_use_log='wxUSE_LOG=no'
2736 fi
2737
2738else
2739
2740 LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
2741 if test "x$LINE" != x ; then
2742 eval "DEFAULT_$LINE"
2743 else
2744 no_cache=1
2745 fi
2746
2747 ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
2748
2749fi
2750
2751
2752 eval "$ac_cv_use_log"
2753 if test "$no_cache" != 1; then
2754 echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
2755 fi
2756
2757 if test "$wxUSE_LOG" = yes; then
2758 echo "$ac_t""yes" 1>&6
2759 else
2760 echo "$ac_t""no" 1>&6
2761 fi
2762
2763
2764 echo $ac_n "checking "for --enable-streams"""... $ac_c" 1>&6
fa3e4baf 2765echo "configure:2766: checking "for --enable-streams"" >&5
a16d3c04
KB
2766 no_cache=0
2767 # Check whether --enable-streams or --disable-streams was given.
2768if test "${enable_streams+set}" = set; then
2769 enableval="$enable_streams"
2770
2771 if test "$enableval" = yes; then
2772 ac_cv_use_streams='wxUSE_STREAMS=yes'
2773 else
2774 ac_cv_use_streams='wxUSE_STREAMS=no'
2775 fi
2776
2777else
2778
2779 LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
2780 if test "x$LINE" != x ; then
2781 eval "DEFAULT_$LINE"
2782 else
2783 no_cache=1
2784 fi
2785
2786 ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
2787
2788fi
2789
2790
2791 eval "$ac_cv_use_streams"
2792 if test "$no_cache" != 1; then
2793 echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
2794 fi
2795
2796 if test "$wxUSE_STREAMS" = yes; then
2797 echo "$ac_t""yes" 1>&6
2798 else
2799 echo "$ac_t""no" 1>&6
2800 fi
2801
2802
2803 echo $ac_n "checking "for --enable-file"""... $ac_c" 1>&6
fa3e4baf 2804echo "configure:2805: checking "for --enable-file"" >&5
a16d3c04
KB
2805 no_cache=0
2806 # Check whether --enable-file or --disable-file was given.
2807if test "${enable_file+set}" = set; then
2808 enableval="$enable_file"
2809
2810 if test "$enableval" = yes; then
2811 ac_cv_use_file='wxUSE_FILE=yes'
2812 else
2813 ac_cv_use_file='wxUSE_FILE=no'
2814 fi
2815
2816else
2817
2818 LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
2819 if test "x$LINE" != x ; then
2820 eval "DEFAULT_$LINE"
2821 else
2822 no_cache=1
2823 fi
2824
2825 ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
2826
2827fi
2828
2829
2830 eval "$ac_cv_use_file"
2831 if test "$no_cache" != 1; then
2832 echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
2833 fi
2834
2835 if test "$wxUSE_FILE" = yes; then
2836 echo "$ac_t""yes" 1>&6
2837 else
2838 echo "$ac_t""no" 1>&6
2839 fi
2840
2841
2842 echo $ac_n "checking "for --enable-textfile"""... $ac_c" 1>&6
fa3e4baf 2843echo "configure:2844: checking "for --enable-textfile"" >&5
a16d3c04
KB
2844 no_cache=0
2845 # Check whether --enable-textfile or --disable-textfile was given.
2846if test "${enable_textfile+set}" = set; then
2847 enableval="$enable_textfile"
2848
2849 if test "$enableval" = yes; then
2850 ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
2851 else
2852 ac_cv_use_textfile='wxUSE_TEXTFILE=no'
2853 fi
2854
2855else
2856
2857 LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
2858 if test "x$LINE" != x ; then
2859 eval "DEFAULT_$LINE"
2860 else
2861 no_cache=1
2862 fi
2863
2864 ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
2865
2866fi
2867
2868
2869 eval "$ac_cv_use_textfile"
2870 if test "$no_cache" != 1; then
2871 echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
2872 fi
2873
2874 if test "$wxUSE_TEXTFILE" = yes; then
2875 echo "$ac_t""yes" 1>&6
2876 else
2877 echo "$ac_t""no" 1>&6
2878 fi
2879
2880
2881 echo $ac_n "checking "for --enable-unicode"""... $ac_c" 1>&6
fa3e4baf 2882echo "configure:2883: checking "for --enable-unicode"" >&5
a16d3c04
KB
2883 no_cache=0
2884 # Check whether --enable-unicode or --disable-unicode was given.
2885if test "${enable_unicode+set}" = set; then
2886 enableval="$enable_unicode"
2887
2888 if test "$enableval" = yes; then
2889 ac_cv_use_unicode='wxUSE_UNICODE=yes'
2890 else
2891 ac_cv_use_unicode='wxUSE_UNICODE=no'
2892 fi
2893
2894else
2895
2896 LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
2897 if test "x$LINE" != x ; then
2898 eval "DEFAULT_$LINE"
2899 else
2900 no_cache=1
2901 fi
2902
2903 ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
2904
2905fi
2906
2907
2908 eval "$ac_cv_use_unicode"
2909 if test "$no_cache" != 1; then
2910 echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
2911 fi
2912
2913 if test "$wxUSE_UNICODE" = yes; then
2914 echo "$ac_t""yes" 1>&6
2915 else
2916 echo "$ac_t""no" 1>&6
2917 fi
2918
2919
2920 echo $ac_n "checking "for --enable-wcsrtombs"""... $ac_c" 1>&6
fa3e4baf 2921echo "configure:2922: checking "for --enable-wcsrtombs"" >&5
a16d3c04
KB
2922 no_cache=0
2923 # Check whether --enable-wcsrtombs or --disable-wcsrtombs was given.
2924if test "${enable_wcsrtombs+set}" = set; then
2925 enableval="$enable_wcsrtombs"
2926
2927 if test "$enableval" = yes; then
2928 ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS=yes'
2929 else
2930 ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS=no'
2931 fi
2932
2933else
2934
2935 LINE=`grep "wxUSE_WCSRTOMBS" ${wx_arg_cache_file}`
2936 if test "x$LINE" != x ; then
2937 eval "DEFAULT_$LINE"
2938 else
2939 no_cache=1
2940 fi
2941
2942 ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS='$DEFAULT_wxUSE_WCSRTOMBS
2943
2944fi
2945
2946
2947 eval "$ac_cv_use_wcsrtombs"
2948 if test "$no_cache" != 1; then
2949 echo $ac_cv_use_wcsrtombs >> ${wx_arg_cache_file}.tmp
2950 fi
2951
2952 if test "$wxUSE_WCSRTOMBS" = yes; then
2953 echo "$ac_t""yes" 1>&6
2954 else
2955 echo "$ac_t""no" 1>&6
2956 fi
2957
2958
2959 echo $ac_n "checking "for --enable-wxprintfv"""... $ac_c" 1>&6
fa3e4baf 2960echo "configure:2961: checking "for --enable-wxprintfv"" >&5
a16d3c04
KB
2961 no_cache=0
2962 # Check whether --enable-wxprintfv or --disable-wxprintfv was given.
2963if test "${enable_wxprintfv+set}" = set; then
2964 enableval="$enable_wxprintfv"
2965
2966 if test "$enableval" = yes; then
2967 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes'
2968 else
2969 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no'
2970 fi
2971
2972else
2973
2974 LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}`
2975 if test "x$LINE" != x ; then
2976 eval "DEFAULT_$LINE"
2977 else
2978 no_cache=1
2979 fi
2980
2981 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF
2982
2983fi
2984
2985
2986 eval "$ac_cv_use_wxprintfv"
2987 if test "$no_cache" != 1; then
2988 echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp
2989 fi
2990
2991 if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then
2992 echo "$ac_t""yes" 1>&6
2993 else
2994 echo "$ac_t""no" 1>&6
2995 fi
2996
2997
2998 echo $ac_n "checking "for --enable-joystick"""... $ac_c" 1>&6
fa3e4baf 2999echo "configure:3000: checking "for --enable-joystick"" >&5
a16d3c04
KB
3000 no_cache=0
3001 # Check whether --enable-joystick or --disable-joystick was given.
3002if test "${enable_joystick+set}" = set; then
3003 enableval="$enable_joystick"
3004
3005 if test "$enableval" = yes; then
3006 ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
3007 else
3008 ac_cv_use_joystick='wxUSE_JOYSTICK=no'
3009 fi
3010
3011else
3012
3013 LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
3014 if test "x$LINE" != x ; then
3015 eval "DEFAULT_$LINE"
3016 else
3017 no_cache=1
3018 fi
3019
3020 ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
3021
3022fi
3023
3024
3025 eval "$ac_cv_use_joystick"
3026 if test "$no_cache" != 1; then
3027 echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
3028 fi
3029
3030 if test "$wxUSE_JOYSTICK" = yes; then
3031 echo "$ac_t""yes" 1>&6
3032 else
3033 echo "$ac_t""no" 1>&6
3034 fi
3035
3036
3037 echo $ac_n "checking "for --enable-std_iostreams"""... $ac_c" 1>&6
fa3e4baf 3038echo "configure:3039: checking "for --enable-std_iostreams"" >&5
a16d3c04
KB
3039 no_cache=0
3040 # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
3041if test "${enable_std_iostreams+set}" = set; then
3042 enableval="$enable_std_iostreams"
3043
3044 if test "$enableval" = yes; then
3045 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
3046 else
3047 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
3048 fi
3049
3050else
3051
3052 LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
3053 if test "x$LINE" != x ; then
3054 eval "DEFAULT_$LINE"
3055 else
3056 no_cache=1
3057 fi
3058
3059 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
3060
3061fi
3062
3063
3064 eval "$ac_cv_use_std_iostreams"
3065 if test "$no_cache" != 1; then
3066 echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
3067 fi
3068
3069 if test "$wxUSE_STD_IOSTREAM" = yes; then
3070 echo "$ac_t""yes" 1>&6
3071 else
3072 echo "$ac_t""no" 1>&6
3073 fi
3074
3075
3076 echo $ac_n "checking "for --enable-fs_inet"""... $ac_c" 1>&6
fa3e4baf 3077echo "configure:3078: checking "for --enable-fs_inet"" >&5
a16d3c04
KB
3078 no_cache=0
3079 # Check whether --enable-fs_inet or --disable-fs_inet was given.
3080if test "${enable_fs_inet+set}" = set; then
3081 enableval="$enable_fs_inet"
3082
3083 if test "$enableval" = yes; then
3084 ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
3085 else
3086 ac_cv_use_fs_inet='wxUSE_FS_INET=no'
3087 fi
3088
3089else
3090
3091 LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
3092 if test "x$LINE" != x ; then
3093 eval "DEFAULT_$LINE"
3094 else
3095 no_cache=1
3096 fi
3097
3098 ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
3099
3100fi
3101
3102
3103 eval "$ac_cv_use_fs_inet"
3104 if test "$no_cache" != 1; then
3105 echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
3106 fi
3107
3108 if test "$wxUSE_FS_INET" = yes; then
3109 echo "$ac_t""yes" 1>&6
3110 else
3111 echo "$ac_t""no" 1>&6
3112 fi
3113
3114
3115 echo $ac_n "checking "for --enable-fs_zip"""... $ac_c" 1>&6
fa3e4baf 3116echo "configure:3117: checking "for --enable-fs_zip"" >&5
a16d3c04
KB
3117 no_cache=0
3118 # Check whether --enable-fs_zip or --disable-fs_zip was given.
3119if test "${enable_fs_zip+set}" = set; then
3120 enableval="$enable_fs_zip"
3121
3122 if test "$enableval" = yes; then
3123 ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
3124 else
3125 ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
3126 fi
3127
3128else
3129
3130 LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
3131 if test "x$LINE" != x ; then
3132 eval "DEFAULT_$LINE"
3133 else
3134 no_cache=1
3135 fi
3136
3137 ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
3138
3139fi
3140
3141
3142 eval "$ac_cv_use_fs_zip"
3143 if test "$no_cache" != 1; then
3144 echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
3145 fi
3146
3147 if test "$wxUSE_FS_ZIP" = yes; then
3148 echo "$ac_t""yes" 1>&6
3149 else
3150 echo "$ac_t""no" 1>&6
3151 fi
3152
3153
3154 echo $ac_n "checking "for --enable-zipstream"""... $ac_c" 1>&6
fa3e4baf 3155echo "configure:3156: checking "for --enable-zipstream"" >&5
a16d3c04
KB
3156 no_cache=0
3157 # Check whether --enable-zipstream or --disable-zipstream was given.
3158if test "${enable_zipstream+set}" = set; then
3159 enableval="$enable_zipstream"
3160
3161 if test "$enableval" = yes; then
3162 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
3163 else
3164 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
3165 fi
3166
3167else
3168
3169 LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
3170 if test "x$LINE" != x ; then
3171 eval "DEFAULT_$LINE"
3172 else
3173 no_cache=1
3174 fi
3175
3176 ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
3177
3178fi
3179
3180
3181 eval "$ac_cv_use_zipstream"
3182 if test "$no_cache" != 1; then
3183 echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
3184 fi
3185
3186 if test "$wxUSE_ZIPSTREAM" = yes; then
3187 echo "$ac_t""yes" 1>&6
3188 else
3189 echo "$ac_t""no" 1>&6
3190 fi
3191
3192
3193
3194
3195 echo $ac_n "checking "for --enable-threads"""... $ac_c" 1>&6
fa3e4baf 3196echo "configure:3197: checking "for --enable-threads"" >&5
a16d3c04
KB
3197 no_cache=0
3198 # Check whether --enable-threads or --disable-threads was given.
3199if test "${enable_threads+set}" = set; then
3200 enableval="$enable_threads"
3201
3202 if test "$enableval" = yes; then
3203 ac_cv_use_threads='wxUSE_THREADS=yes'
3204 else
3205 ac_cv_use_threads='wxUSE_THREADS=no'
3206 fi
3207
3208else
3209
3210 LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
3211 if test "x$LINE" != x ; then
3212 eval "DEFAULT_$LINE"
3213 else
3214 no_cache=1
3215 fi
3216
3217 ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
3218
3219fi
3220
3221
3222 eval "$ac_cv_use_threads"
3223 if test "$no_cache" != 1; then
3224 echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
3225 fi
3226
3227 if test "$wxUSE_THREADS" = yes; then
3228 echo "$ac_t""yes" 1>&6
3229 else
3230 echo "$ac_t""no" 1>&6
3231 fi
3232
3233
3234 echo $ac_n "checking "for --enable-serial"""... $ac_c" 1>&6
fa3e4baf 3235echo "configure:3236: checking "for --enable-serial"" >&5
a16d3c04
KB
3236 no_cache=0
3237 # Check whether --enable-serial or --disable-serial was given.
3238if test "${enable_serial+set}" = set; then
3239 enableval="$enable_serial"
3240
3241 if test "$enableval" = yes; then
3242 ac_cv_use_serial='wxUSE_SERIAL=yes'
3243 else
3244 ac_cv_use_serial='wxUSE_SERIAL=no'
3245 fi
3246
3247else
3248
3249 LINE=`grep "wxUSE_SERIAL" ${wx_arg_cache_file}`
3250 if test "x$LINE" != x ; then
3251 eval "DEFAULT_$LINE"
3252 else
3253 no_cache=1
3254 fi
3255
3256 ac_cv_use_serial='wxUSE_SERIAL='$DEFAULT_wxUSE_SERIAL
3257
3258fi
3259
3260
3261 eval "$ac_cv_use_serial"
3262 if test "$no_cache" != 1; then
3263 echo $ac_cv_use_serial >> ${wx_arg_cache_file}.tmp
3264 fi
3265
3266 if test "$wxUSE_SERIAL" = yes; then
3267 echo "$ac_t""yes" 1>&6
3268 else
3269 echo "$ac_t""no" 1>&6
3270 fi
3271
3272
3273
3274
3275 echo $ac_n "checking "for --enable-docview"""... $ac_c" 1>&6
fa3e4baf 3276echo "configure:3277: checking "for --enable-docview"" >&5
a16d3c04
KB
3277 no_cache=0
3278 # Check whether --enable-docview or --disable-docview was given.
3279if test "${enable_docview+set}" = set; then
3280 enableval="$enable_docview"
3281
3282 if test "$enableval" = yes; then
3283 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
3284 else
3285 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
3286 fi
3287
3288else
3289
3290 LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
3291 if test "x$LINE" != x ; then
3292 eval "DEFAULT_$LINE"
3293 else
3294 no_cache=1
3295 fi
3296
3297 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
3298
3299fi
3300
3301
3302 eval "$ac_cv_use_docview"
3303 if test "$no_cache" != 1; then
3304 echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
3305 fi
3306
3307 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
3308 echo "$ac_t""yes" 1>&6
3309 else
3310 echo "$ac_t""no" 1>&6
3311 fi
3312
3313
3314 echo $ac_n "checking "for --enable-help"""... $ac_c" 1>&6
fa3e4baf 3315echo "configure:3316: checking "for --enable-help"" >&5
a16d3c04
KB
3316 no_cache=0
3317 # Check whether --enable-help or --disable-help was given.
3318if test "${enable_help+set}" = set; then
3319 enableval="$enable_help"
3320
3321 if test "$enableval" = yes; then
3322 ac_cv_use_help='wxUSE_HELP=yes'
3323 else
3324 ac_cv_use_help='wxUSE_HELP=no'
3325 fi
3326
3327else
3328
3329 LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
3330 if test "x$LINE" != x ; then
3331 eval "DEFAULT_$LINE"
3332 else
3333 no_cache=1
3334 fi
3335
3336 ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
3337
3338fi
3339
3340
3341 eval "$ac_cv_use_help"
3342 if test "$no_cache" != 1; then
3343 echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
3344 fi
3345
3346 if test "$wxUSE_HELP" = yes; then
3347 echo "$ac_t""yes" 1>&6
3348 else
3349 echo "$ac_t""no" 1>&6
3350 fi
3351
3352
3353 echo $ac_n "checking "for --enable-constraints"""... $ac_c" 1>&6
fa3e4baf 3354echo "configure:3355: checking "for --enable-constraints"" >&5
a16d3c04
KB
3355 no_cache=0
3356 # Check whether --enable-constraints or --disable-constraints was given.
3357if test "${enable_constraints+set}" = set; then
3358 enableval="$enable_constraints"
3359
3360 if test "$enableval" = yes; then
3361 ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
3362 else
3363 ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
3364 fi
3365
3366else
3367
3368 LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
3369 if test "x$LINE" != x ; then
3370 eval "DEFAULT_$LINE"
3371 else
3372 no_cache=1
3373 fi
3374
3375 ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
3376
3377fi
3378
3379
3380 eval "$ac_cv_use_constraints"
3381 if test "$no_cache" != 1; then
3382 echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
3383 fi
3384
3385 if test "$wxUSE_CONSTRAINTS" = yes; then
3386 echo "$ac_t""yes" 1>&6
3387 else
3388 echo "$ac_t""no" 1>&6
3389 fi
3390
3391
3392 echo $ac_n "checking "for --enable-printarch"""... $ac_c" 1>&6
fa3e4baf 3393echo "configure:3394: checking "for --enable-printarch"" >&5
a16d3c04
KB
3394 no_cache=0
3395 # Check whether --enable-printarch or --disable-printarch was given.
3396if test "${enable_printarch+set}" = set; then
3397 enableval="$enable_printarch"
3398
3399 if test "$enableval" = yes; then
3400 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
3401 else
3402 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
3403 fi
3404
3405else
3406
3407 LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
3408 if test "x$LINE" != x ; then
3409 eval "DEFAULT_$LINE"
3410 else
3411 no_cache=1
3412 fi
3413
3414 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
3415
3416fi
3417
3418
3419 eval "$ac_cv_use_printarch"
3420 if test "$no_cache" != 1; then
3421 echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
3422 fi
3423
3424 if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
3425 echo "$ac_t""yes" 1>&6
3426 else
3427 echo "$ac_t""no" 1>&6
3428 fi
3429
3430
3431 echo $ac_n "checking "for --enable-mdi"""... $ac_c" 1>&6
fa3e4baf 3432echo "configure:3433: checking "for --enable-mdi"" >&5
a16d3c04
KB
3433 no_cache=0
3434 # Check whether --enable-mdi or --disable-mdi was given.
3435if test "${enable_mdi+set}" = set; then
3436 enableval="$enable_mdi"
3437
3438 if test "$enableval" = yes; then
3439 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=yes'
3440 else
3441 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=no'
3442 fi
3443
3444else
3445
3446 LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
3447 if test "x$LINE" != x ; then
3448 eval "DEFAULT_$LINE"
3449 else
3450 no_cache=1
3451 fi
3452
3453 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
3454
3455fi
3456
3457
3458 eval "$ac_cv_use_mdi"
3459 if test "$no_cache" != 1; then
3460 echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
3461 fi
3462
3463 if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
3464 echo "$ac_t""yes" 1>&6
3465 else
3466 echo "$ac_t""no" 1>&6
3467 fi
3468
3469
3470
3471 echo $ac_n "checking "for --enable-postscript"""... $ac_c" 1>&6
fa3e4baf 3472echo "configure:3473: checking "for --enable-postscript"" >&5
a16d3c04
KB
3473 no_cache=0
3474 # Check whether --enable-postscript or --disable-postscript was given.
3475if test "${enable_postscript+set}" = set; then
3476 enableval="$enable_postscript"
3477
3478 if test "$enableval" = yes; then
3479 ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
3480 else
3481 ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
3482 fi
3483
3484else
3485
3486 LINE=`grep "wxUSE_POSTSCRIPT" ${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_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
3494
3495fi
3496
3497
3498 eval "$ac_cv_use_postscript"
3499 if test "$no_cache" != 1; then
3500 echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
3501 fi
3502
3503 if test "$wxUSE_POSTSCRIPT" = yes; then
3504 echo "$ac_t""yes" 1>&6
3505 else
3506 echo "$ac_t""no" 1>&6
3507 fi
3508
3509
3510
3511
3512 echo $ac_n "checking "for --enable-prologio"""... $ac_c" 1>&6
fa3e4baf 3513echo "configure:3514: checking "for --enable-prologio"" >&5
a16d3c04
KB
3514 no_cache=0
3515 # Check whether --enable-prologio or --disable-prologio was given.
3516if test "${enable_prologio+set}" = set; then
3517 enableval="$enable_prologio"
3518
3519 if test "$enableval" = yes; then
3520 ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
3521 else
3522 ac_cv_use_prologio='wxUSE_PROLOGIO=no'
3523 fi
3524
3525else
3526
3527 LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
3528 if test "x$LINE" != x ; then
3529 eval "DEFAULT_$LINE"
3530 else
3531 no_cache=1
3532 fi
3533
3534 ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
3535
3536fi
3537
3538
3539 eval "$ac_cv_use_prologio"
3540 if test "$no_cache" != 1; then
3541 echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
3542 fi
3543
3544 if test "$wxUSE_PROLOGIO" = yes; then
3545 echo "$ac_t""yes" 1>&6
3546 else
3547 echo "$ac_t""no" 1>&6
3548 fi
3549
3550
3551 echo $ac_n "checking "for --enable-resources"""... $ac_c" 1>&6
fa3e4baf 3552echo "configure:3553: checking "for --enable-resources"" >&5
a16d3c04
KB
3553 no_cache=0
3554 # Check whether --enable-resources or --disable-resources was given.
3555if test "${enable_resources+set}" = set; then
3556 enableval="$enable_resources"
3557
3558 if test "$enableval" = yes; then
3559 ac_cv_use_resources='wxUSE_RESOURCES=yes'
3560 else
3561 ac_cv_use_resources='wxUSE_RESOURCES=no'
3562 fi
3563
3564else
3565
3566 LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
3567 if test "x$LINE" != x ; then
3568 eval "DEFAULT_$LINE"
3569 else
3570 no_cache=1
3571 fi
3572
3573 ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
3574
3575fi
3576
3577
3578 eval "$ac_cv_use_resources"
3579 if test "$no_cache" != 1; then
3580 echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
3581 fi
3582
3583 if test "$wxUSE_RESOURCES" = yes; then
3584 echo "$ac_t""yes" 1>&6
3585 else
3586 echo "$ac_t""no" 1>&6
3587 fi
3588
3589
3590
3591 echo $ac_n "checking "for --enable-xresources"""... $ac_c" 1>&6
fa3e4baf 3592echo "configure:3593: checking "for --enable-xresources"" >&5
a16d3c04
KB
3593 no_cache=0
3594 # Check whether --enable-xresources or --disable-xresources was given.
3595if test "${enable_xresources+set}" = set; then
3596 enableval="$enable_xresources"
3597
3598 if test "$enableval" = yes; then
3599 ac_cv_use_xresources='wxUSE_X_RESOURCES=yes'
3600 else
3601 ac_cv_use_xresources='wxUSE_X_RESOURCES=no'
3602 fi
3603
3604else
3605
3606 LINE=`grep "wxUSE_X_RESOURCES" ${wx_arg_cache_file}`
3607 if test "x$LINE" != x ; then
3608 eval "DEFAULT_$LINE"
3609 else
3610 no_cache=1
3611 fi
3612
3613 ac_cv_use_xresources='wxUSE_X_RESOURCES='$DEFAULT_wxUSE_X_RESOURCES
3614
3615fi
3616
3617
3618 eval "$ac_cv_use_xresources"
3619 if test "$no_cache" != 1; then
3620 echo $ac_cv_use_xresources >> ${wx_arg_cache_file}.tmp
3621 fi
3622
3623 if test "$wxUSE_X_RESOURCES" = yes; then
3624 echo "$ac_t""yes" 1>&6
3625 else
3626 echo "$ac_t""no" 1>&6
3627 fi
3628
3629
3630
3631
3632 echo $ac_n "checking "for --enable-clipboard"""... $ac_c" 1>&6
fa3e4baf 3633echo "configure:3634: checking "for --enable-clipboard"" >&5
a16d3c04
KB
3634 no_cache=0
3635 # Check whether --enable-clipboard or --disable-clipboard was given.
3636if test "${enable_clipboard+set}" = set; then
3637 enableval="$enable_clipboard"
3638
3639 if test "$enableval" = yes; then
3640 ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
3641 else
3642 ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
3643 fi
3644
3645else
3646
3647 LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
3648 if test "x$LINE" != x ; then
3649 eval "DEFAULT_$LINE"
3650 else
3651 no_cache=1
3652 fi
3653
3654 ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
3655
3656fi
3657
3658
3659 eval "$ac_cv_use_clipboard"
3660 if test "$no_cache" != 1; then
3661 echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
3662 fi
3663
3664 if test "$wxUSE_CLIPBOARD" = yes; then
3665 echo "$ac_t""yes" 1>&6
3666 else
3667 echo "$ac_t""no" 1>&6
3668 fi
3669
3670
3671 echo $ac_n "checking "for --enable-dnd"""... $ac_c" 1>&6
fa3e4baf 3672echo "configure:3673: checking "for --enable-dnd"" >&5
a16d3c04
KB
3673 no_cache=0
3674 # Check whether --enable-dnd or --disable-dnd was given.
3675if test "${enable_dnd+set}" = set; then
3676 enableval="$enable_dnd"
3677
3678 if test "$enableval" = yes; then
3679 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
3680 else
3681 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
3682 fi
3683
3684else
3685
3686 LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
3687 if test "x$LINE" != x ; then
3688 eval "DEFAULT_$LINE"
3689 else
3690 no_cache=1
3691 fi
3692
3693 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
3694
3695fi
3696
3697
3698 eval "$ac_cv_use_dnd"
3699 if test "$no_cache" != 1; then
3700 echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
3701 fi
3702
3703 if test "$wxUSE_DRAG_AND_DROP" = yes; then
3704 echo "$ac_t""yes" 1>&6
3705 else
3706 echo "$ac_t""no" 1>&6
3707 fi
3708
3709
3710
3711 echo $ac_n "checking "for --enable-wxtree"""... $ac_c" 1>&6
fa3e4baf 3712echo "configure:3713: checking "for --enable-wxtree"" >&5
a16d3c04
KB
3713 no_cache=0
3714 # Check whether --enable-wxtree or --disable-wxtree was given.
3715if test "${enable_wxtree+set}" = set; then
3716 enableval="$enable_wxtree"
3717
3718 if test "$enableval" = yes; then
3719 ac_cv_use_wxtree='wxUSE_WXTREE=yes'
3720 else
3721 ac_cv_use_wxtree='wxUSE_WXTREE=no'
3722 fi
3723
3724else
3725
3726 LINE=`grep "wxUSE_WXTREE" ${wx_arg_cache_file}`
3727 if test "x$LINE" != x ; then
3728 eval "DEFAULT_$LINE"
3729 else
3730 no_cache=1
3731 fi
3732
3733 ac_cv_use_wxtree='wxUSE_WXTREE='$DEFAULT_wxUSE_WXTREE
3734
3735fi
3736
3737
3738 eval "$ac_cv_use_wxtree"
3739 if test "$no_cache" != 1; then
3740 echo $ac_cv_use_wxtree >> ${wx_arg_cache_file}.tmp
3741 fi
3742
3743 if test "$wxUSE_WXTREE" = yes; then
3744 echo "$ac_t""yes" 1>&6
3745 else
3746 echo "$ac_t""no" 1>&6
3747 fi
3748
3749
3750
3751
3752 echo $ac_n "checking "for --enable-controls"""... $ac_c" 1>&6
fa3e4baf 3753echo "configure:3754: checking "for --enable-controls"" >&5
a16d3c04
KB
3754 no_cache=0
3755 # Check whether --enable-controls or --disable-controls was given.
3756if test "${enable_controls+set}" = set; then
3757 enableval="$enable_controls"
3758
3759 if test "$enableval" = yes; then
3760 ac_cv_use_controls='wxUSE_CONTROLS=yes'
3761 else
3762 ac_cv_use_controls='wxUSE_CONTROLS=no'
3763 fi
3764
3765else
3766
3767 LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
3768 if test "x$LINE" != x ; then
3769 eval "DEFAULT_$LINE"
3770 else
3771 no_cache=1
3772 fi
3773
3774 ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
3775
3776fi
3777
3778
3779 eval "$ac_cv_use_controls"
3780 if test "$no_cache" != 1; then
3781 echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
3782 fi
3783
3784 if test "$wxUSE_CONTROLS" = yes; then
3785 echo "$ac_t""yes" 1>&6
3786 else
3787 echo "$ac_t""no" 1>&6
3788 fi
3789
3790
3791if test "$wxUSE_CONTROLS" = "yes"; then
3792 DEFAULT_wxUSE_ACCEL=yes
3793 DEFAULT_wxUSE_CARET=yes
3794 DEFAULT_wxUSE_COMBOBOX=yes
3795 DEFAULT_wxUSE_BMPBUTTON=yes
3796 DEFAULT_wxUSE_CHECKBOX=yes
3797 DEFAULT_wxUSE_CHECKLISTBOX=yes
3798 DEFAULT_wxUSE_CHOICE=yes
3799 DEFAULT_wxUSE_GAUGE=yes
3800 DEFAULT_wxUSE_GRID=yes
3801 DEFAULT_wxUSE_IMAGLIST=yes
3802 DEFAULT_wxUSE_LISTBOX=yes
3803 DEFAULT_wxUSE_LISTCTRL=yes
3804 DEFAULT_wxUSE_NOTEBOOK=yes
3805 DEFAULT_wxUSE_RADIOBOX=yes
3806 DEFAULT_wxUSE_RADIOBTN=yes
3807 DEFAULT_wxUSE_SASH=yes
3808 DEFAULT_wxUSE_SCROLLBAR=yes
3809 DEFAULT_wxUSE_SLIDER=yes
3810 DEFAULT_wxUSE_SPINBTN=yes
3811 DEFAULT_wxUSE_SPLITTER=yes
3812 DEFAULT_wxUSE_STATBMP=yes
3813 DEFAULT_wxUSE_STATBOX=yes
3814 DEFAULT_wxUSE_STATLINE=yes
3815 DEFAULT_wxUSE_STATUSBAR=yes
3816 DEFAULT_wxUSE_TAB_DIALOG=yes
3817 DEFAULT_wxUSE_TOOLBAR=yes
3818 DEFAULT_wxUSE_TOOLTIPS=yes
3819 DEFAULT_wxUSE_TREECTRL=yes
3820elif test "$wxUSE_CONTROLS" = "no"; then
3821 DEFAULT_wxUSE_ACCEL=no
3822 DEFAULT_wxUSE_CARET=no
3823 DEFAULT_wxUSE_COMBOBOX=no
3824 DEFAULT_wxUSE_BMPBUTTON=no
3825 DEFAULT_wxUSE_CHECKBOX=no
3826 DEFAULT_wxUSE_CHECKLISTBOX=no
3827 DEFAULT_wxUSE_CHOICE=no
3828 DEFAULT_wxUSE_GAUGE=no
3829 DEFAULT_wxUSE_GRID=no
3830 DEFAULT_wxUSE_IMAGLIST=no
3831 DEFAULT_wxUSE_LISTBOX=no
3832 DEFAULT_wxUSE_LISTCTRL=no
3833 DEFAULT_wxUSE_NOTEBOOK=no
3834 DEFAULT_wxUSE_RADIOBOX=no
3835 DEFAULT_wxUSE_RADIOBTN=no
3836 DEFAULT_wxUSE_SASH=no
3837 DEFAULT_wxUSE_SCROLLBAR=no
3838 DEFAULT_wxUSE_SLIDER=no
3839 DEFAULT_wxUSE_SPINBTN=no
3840 DEFAULT_wxUSE_SPLITTER=no
3841 DEFAULT_wxUSE_STATBMP=no
3842 DEFAULT_wxUSE_STATBOX=no
3843 DEFAULT_wxUSE_STATLINE=no
3844 DEFAULT_wxUSE_STATUSBAR=no
3845 DEFAULT_wxUSE_TAB_DIALOG=no
3846 DEFAULT_wxUSE_TOOLBAR=no
3847 DEFAULT_wxUSE_TOOLTIPS=no
3848 DEFAULT_wxUSE_TREECTRL=no
3849fi
3850
3851
3852 echo $ac_n "checking "for --enable-accel"""... $ac_c" 1>&6
fa3e4baf 3853echo "configure:3854: checking "for --enable-accel"" >&5
a16d3c04
KB
3854 no_cache=0
3855 # Check whether --enable-accel or --disable-accel was given.
3856if test "${enable_accel+set}" = set; then
3857 enableval="$enable_accel"
3858
3859 if test "$enableval" = yes; then
3860 ac_cv_use_accel='wxUSE_ACCEL=yes'
3861 else
3862 ac_cv_use_accel='wxUSE_ACCEL=no'
3863 fi
3864
3865else
3866
3867 LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
3868 if test "x$LINE" != x ; then
3869 eval "DEFAULT_$LINE"
3870 else
3871 no_cache=1
3872 fi
3873
3874 ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
3875
3876fi
3877
3878
3879 eval "$ac_cv_use_accel"
3880 if test "$no_cache" != 1; then
3881 echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
3882 fi
3883
3884 if test "$wxUSE_ACCEL" = yes; then
3885 echo "$ac_t""yes" 1>&6
3886 else
3887 echo "$ac_t""no" 1>&6
3888 fi
3889
3890
3891 echo $ac_n "checking "for --enable-caret"""... $ac_c" 1>&6
fa3e4baf 3892echo "configure:3893: checking "for --enable-caret"" >&5
a16d3c04
KB
3893 no_cache=0
3894 # Check whether --enable-caret or --disable-caret was given.
3895if test "${enable_caret+set}" = set; then
3896 enableval="$enable_caret"
3897
3898 if test "$enableval" = yes; then
3899 ac_cv_use_caret='wxUSE_CARET=yes'
3900 else
3901 ac_cv_use_caret='wxUSE_CARET=no'
3902 fi
3903
3904else
3905
3906 LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
3907 if test "x$LINE" != x ; then
3908 eval "DEFAULT_$LINE"
3909 else
3910 no_cache=1
3911 fi
3912
3913 ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
3914
3915fi
3916
3917
3918 eval "$ac_cv_use_caret"
3919 if test "$no_cache" != 1; then
3920 echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
3921 fi
3922
3923 if test "$wxUSE_CARET" = yes; then
3924 echo "$ac_t""yes" 1>&6
3925 else
3926 echo "$ac_t""no" 1>&6
3927 fi
3928
3929
3930 echo $ac_n "checking "for --enable-bmpbutton"""... $ac_c" 1>&6
fa3e4baf 3931echo "configure:3932: checking "for --enable-bmpbutton"" >&5
a16d3c04
KB
3932 no_cache=0
3933 # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
3934if test "${enable_bmpbutton+set}" = set; then
3935 enableval="$enable_bmpbutton"
3936
3937 if test "$enableval" = yes; then
3938 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
3939 else
3940 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
3941 fi
3942
3943else
3944
3945 LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
3946 if test "x$LINE" != x ; then
3947 eval "DEFAULT_$LINE"
3948 else
3949 no_cache=1
3950 fi
3951
3952 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
3953
3954fi
3955
3956
3957 eval "$ac_cv_use_bmpbutton"
3958 if test "$no_cache" != 1; then
3959 echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
3960 fi
3961
3962 if test "$wxUSE_BMPBUTTON" = yes; then
3963 echo "$ac_t""yes" 1>&6
3964 else
3965 echo "$ac_t""no" 1>&6
3966 fi
3967
3968
3969 echo $ac_n "checking "for --enable-checkbox"""... $ac_c" 1>&6
fa3e4baf 3970echo "configure:3971: checking "for --enable-checkbox"" >&5
a16d3c04
KB
3971 no_cache=0
3972 # Check whether --enable-checkbox or --disable-checkbox was given.
3973if test "${enable_checkbox+set}" = set; then
3974 enableval="$enable_checkbox"
3975
3976 if test "$enableval" = yes; then
3977 ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
3978 else
3979 ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
3980 fi
3981
3982else
3983
3984 LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
3985 if test "x$LINE" != x ; then
3986 eval "DEFAULT_$LINE"
3987 else
3988 no_cache=1
3989 fi
3990
3991 ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
3992
3993fi
3994
3995
3996 eval "$ac_cv_use_checkbox"
3997 if test "$no_cache" != 1; then
3998 echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
3999 fi
4000
4001 if test "$wxUSE_CHECKBOX" = yes; then
4002 echo "$ac_t""yes" 1>&6
4003 else
4004 echo "$ac_t""no" 1>&6
4005 fi
4006
4007
4008 echo $ac_n "checking "for --enable-checklst"""... $ac_c" 1>&6
fa3e4baf 4009echo "configure:4010: checking "for --enable-checklst"" >&5
a16d3c04
KB
4010 no_cache=0
4011 # Check whether --enable-checklst or --disable-checklst was given.
4012if test "${enable_checklst+set}" = set; then
4013 enableval="$enable_checklst"
4014
4015 if test "$enableval" = yes; then
4016 ac_cv_use_checklst='wxUSE_CHECKLST=yes'
4017 else
4018 ac_cv_use_checklst='wxUSE_CHECKLST=no'
4019 fi
4020
4021else
4022
4023 LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
4024 if test "x$LINE" != x ; then
4025 eval "DEFAULT_$LINE"
4026 else
4027 no_cache=1
4028 fi
4029
4030 ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
4031
4032fi
4033
4034
4035 eval "$ac_cv_use_checklst"
4036 if test "$no_cache" != 1; then
4037 echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
4038 fi
4039
4040 if test "$wxUSE_CHECKLST" = yes; then
4041 echo "$ac_t""yes" 1>&6
4042 else
4043 echo "$ac_t""no" 1>&6
4044 fi
4045
4046
4047 echo $ac_n "checking "for --enable-choice"""... $ac_c" 1>&6
fa3e4baf 4048echo "configure:4049: checking "for --enable-choice"" >&5
a16d3c04
KB
4049 no_cache=0
4050 # Check whether --enable-choice or --disable-choice was given.
4051if test "${enable_choice+set}" = set; then
4052 enableval="$enable_choice"
4053
4054 if test "$enableval" = yes; then
4055 ac_cv_use_choice='wxUSE_CHOICE=yes'
4056 else
4057 ac_cv_use_choice='wxUSE_CHOICE=no'
4058 fi
4059
4060else
4061
4062 LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
4063 if test "x$LINE" != x ; then
4064 eval "DEFAULT_$LINE"
4065 else
4066 no_cache=1
4067 fi
4068
4069 ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
4070
4071fi
4072
4073
4074 eval "$ac_cv_use_choice"
4075 if test "$no_cache" != 1; then
4076 echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
4077 fi
4078
4079 if test "$wxUSE_CHOICE" = yes; then
4080 echo "$ac_t""yes" 1>&6
4081 else
4082 echo "$ac_t""no" 1>&6
4083 fi
4084
4085
4086 echo $ac_n "checking "for --enable-combobox"""... $ac_c" 1>&6
fa3e4baf 4087echo "configure:4088: checking "for --enable-combobox"" >&5
a16d3c04
KB
4088 no_cache=0
4089 # Check whether --enable-combobox or --disable-combobox was given.
4090if test "${enable_combobox+set}" = set; then
4091 enableval="$enable_combobox"
4092
4093 if test "$enableval" = yes; then
4094 ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
4095 else
4096 ac_cv_use_combobox='wxUSE_COMBOBOX=no'
4097 fi
4098
4099else
4100
4101 LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
4102 if test "x$LINE" != x ; then
4103 eval "DEFAULT_$LINE"
4104 else
4105 no_cache=1
4106 fi
4107
4108 ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
4109
4110fi
4111
4112
4113 eval "$ac_cv_use_combobox"
4114 if test "$no_cache" != 1; then
4115 echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
4116 fi
4117
4118 if test "$wxUSE_COMBOBOX" = yes; then
4119 echo "$ac_t""yes" 1>&6
4120 else
4121 echo "$ac_t""no" 1>&6
4122 fi
4123
4124
4125 echo $ac_n "checking "for --enable-gauge"""... $ac_c" 1>&6
fa3e4baf 4126echo "configure:4127: checking "for --enable-gauge"" >&5
a16d3c04
KB
4127 no_cache=0
4128 # Check whether --enable-gauge or --disable-gauge was given.
4129if test "${enable_gauge+set}" = set; then
4130 enableval="$enable_gauge"
4131
4132 if test "$enableval" = yes; then
4133 ac_cv_use_gauge='wxUSE_GAUGE=yes'
4134 else
4135 ac_cv_use_gauge='wxUSE_GAUGE=no'
4136 fi
4137
4138else
4139
4140 LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
4141 if test "x$LINE" != x ; then
4142 eval "DEFAULT_$LINE"
4143 else
4144 no_cache=1
4145 fi
4146
4147 ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
4148
4149fi
4150
4151
4152 eval "$ac_cv_use_gauge"
4153 if test "$no_cache" != 1; then
4154 echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
4155 fi
4156
4157 if test "$wxUSE_GAUGE" = yes; then
4158 echo "$ac_t""yes" 1>&6
4159 else
4160 echo "$ac_t""no" 1>&6
4161 fi
4162
4163
4164 echo $ac_n "checking "for --enable-grid"""... $ac_c" 1>&6
fa3e4baf 4165echo "configure:4166: checking "for --enable-grid"" >&5
a16d3c04
KB
4166 no_cache=0
4167 # Check whether --enable-grid or --disable-grid was given.
4168if test "${enable_grid+set}" = set; then
4169 enableval="$enable_grid"
4170
4171 if test "$enableval" = yes; then
4172 ac_cv_use_grid='wxUSE_GRID=yes'
4173 else
4174 ac_cv_use_grid='wxUSE_GRID=no'
4175 fi
4176
4177else
4178
4179 LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
4180 if test "x$LINE" != x ; then
4181 eval "DEFAULT_$LINE"
4182 else
4183 no_cache=1
4184 fi
4185
4186 ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
4187
4188fi
4189
4190
4191 eval "$ac_cv_use_grid"
4192 if test "$no_cache" != 1; then
4193 echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
4194 fi
4195
4196 if test "$wxUSE_GRID" = yes; then
4197 echo "$ac_t""yes" 1>&6
4198 else
4199 echo "$ac_t""no" 1>&6
4200 fi
4201
4202
4203 echo $ac_n "checking "for --enable-imaglist"""... $ac_c" 1>&6
fa3e4baf 4204echo "configure:4205: checking "for --enable-imaglist"" >&5
a16d3c04
KB
4205 no_cache=0
4206 # Check whether --enable-imaglist or --disable-imaglist was given.
4207if test "${enable_imaglist+set}" = set; then
4208 enableval="$enable_imaglist"
4209
4210 if test "$enableval" = yes; then
4211 ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
4212 else
4213 ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
4214 fi
4215
4216else
4217
4218 LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
4219 if test "x$LINE" != x ; then
4220 eval "DEFAULT_$LINE"
4221 else
4222 no_cache=1
4223 fi
4224
4225 ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
4226
4227fi
4228
4229
4230 eval "$ac_cv_use_imaglist"
4231 if test "$no_cache" != 1; then
4232 echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
4233 fi
4234
4235 if test "$wxUSE_IMAGLIST" = yes; then
4236 echo "$ac_t""yes" 1>&6
4237 else
4238 echo "$ac_t""no" 1>&6
4239 fi
4240
4241
4242 echo $ac_n "checking "for --enable-listbox"""... $ac_c" 1>&6
fa3e4baf 4243echo "configure:4244: checking "for --enable-listbox"" >&5
a16d3c04
KB
4244 no_cache=0
4245 # Check whether --enable-listbox or --disable-listbox was given.
4246if test "${enable_listbox+set}" = set; then
4247 enableval="$enable_listbox"
4248
4249 if test "$enableval" = yes; then
4250 ac_cv_use_listbox='wxUSE_LISTBOX=yes'
4251 else
4252 ac_cv_use_listbox='wxUSE_LISTBOX=no'
4253 fi
4254
4255else
4256
4257 LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
4258 if test "x$LINE" != x ; then
4259 eval "DEFAULT_$LINE"
4260 else
4261 no_cache=1
4262 fi
4263
4264 ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
4265
4266fi
4267
4268
4269 eval "$ac_cv_use_listbox"
4270 if test "$no_cache" != 1; then
4271 echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
4272 fi
4273
4274 if test "$wxUSE_LISTBOX" = yes; then
4275 echo "$ac_t""yes" 1>&6
4276 else
4277 echo "$ac_t""no" 1>&6
4278 fi
4279
4280
4281 echo $ac_n "checking "for --enable-listctrl"""... $ac_c" 1>&6
fa3e4baf 4282echo "configure:4283: checking "for --enable-listctrl"" >&5
a16d3c04
KB
4283 no_cache=0
4284 # Check whether --enable-listctrl or --disable-listctrl was given.
4285if test "${enable_listctrl+set}" = set; then
4286 enableval="$enable_listctrl"
4287
4288 if test "$enableval" = yes; then
4289 ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
4290 else
4291 ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
4292 fi
4293
4294else
4295
4296 LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
4297 if test "x$LINE" != x ; then
4298 eval "DEFAULT_$LINE"
4299 else
4300 no_cache=1
4301 fi
4302
4303 ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
4304
4305fi
4306
4307
4308 eval "$ac_cv_use_listctrl"
4309 if test "$no_cache" != 1; then
4310 echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
4311 fi
4312
4313 if test "$wxUSE_LISTCTRL" = yes; then
4314 echo "$ac_t""yes" 1>&6
4315 else
4316 echo "$ac_t""no" 1>&6
4317 fi
4318
4319
4320 echo $ac_n "checking "for --enable-notebook"""... $ac_c" 1>&6
fa3e4baf 4321echo "configure:4322: checking "for --enable-notebook"" >&5
a16d3c04
KB
4322 no_cache=0
4323 # Check whether --enable-notebook or --disable-notebook was given.
4324if test "${enable_notebook+set}" = set; then
4325 enableval="$enable_notebook"
4326
4327 if test "$enableval" = yes; then
4328 ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
4329 else
4330 ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
4331 fi
4332
4333else
4334
4335 LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
4336 if test "x$LINE" != x ; then
4337 eval "DEFAULT_$LINE"
4338 else
4339 no_cache=1
4340 fi
4341
4342 ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
4343
4344fi
4345
4346
4347 eval "$ac_cv_use_notebook"
4348 if test "$no_cache" != 1; then
4349 echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
4350 fi
4351
4352 if test "$wxUSE_NOTEBOOK" = yes; then
4353 echo "$ac_t""yes" 1>&6
4354 else
4355 echo "$ac_t""no" 1>&6
4356 fi
4357
4358
4359 echo $ac_n "checking "for --enable-radiobox"""... $ac_c" 1>&6
fa3e4baf 4360echo "configure:4361: checking "for --enable-radiobox"" >&5
a16d3c04
KB
4361 no_cache=0
4362 # Check whether --enable-radiobox or --disable-radiobox was given.
4363if test "${enable_radiobox+set}" = set; then
4364 enableval="$enable_radiobox"
4365
4366 if test "$enableval" = yes; then
4367 ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
4368 else
4369 ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
4370 fi
4371
4372else
4373
4374 LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
4375 if test "x$LINE" != x ; then
4376 eval "DEFAULT_$LINE"
4377 else
4378 no_cache=1
4379 fi
4380
4381 ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
4382
4383fi
4384
4385
4386 eval "$ac_cv_use_radiobox"
4387 if test "$no_cache" != 1; then
4388 echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
4389 fi
4390
4391 if test "$wxUSE_RADIOBOX" = yes; then
4392 echo "$ac_t""yes" 1>&6
4393 else
4394 echo "$ac_t""no" 1>&6
4395 fi
4396
4397
4398 echo $ac_n "checking "for --enable-radiobtn"""... $ac_c" 1>&6
fa3e4baf 4399echo "configure:4400: checking "for --enable-radiobtn"" >&5
a16d3c04
KB
4400 no_cache=0
4401 # Check whether --enable-radiobtn or --disable-radiobtn was given.
4402if test "${enable_radiobtn+set}" = set; then
4403 enableval="$enable_radiobtn"
4404
4405 if test "$enableval" = yes; then
4406 ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
4407 else
4408 ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
4409 fi
4410
4411else
4412
4413 LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
4414 if test "x$LINE" != x ; then
4415 eval "DEFAULT_$LINE"
4416 else
4417 no_cache=1
4418 fi
4419
4420 ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
4421
4422fi
4423
4424
4425 eval "$ac_cv_use_radiobtn"
4426 if test "$no_cache" != 1; then
4427 echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
4428 fi
4429
4430 if test "$wxUSE_RADIOBTN" = yes; then
4431 echo "$ac_t""yes" 1>&6
4432 else
4433 echo "$ac_t""no" 1>&6
4434 fi
4435
4436
4437 echo $ac_n "checking "for --enable-sash"""... $ac_c" 1>&6
fa3e4baf 4438echo "configure:4439: checking "for --enable-sash"" >&5
a16d3c04
KB
4439 no_cache=0
4440 # Check whether --enable-sash or --disable-sash was given.
4441if test "${enable_sash+set}" = set; then
4442 enableval="$enable_sash"
4443
4444 if test "$enableval" = yes; then
4445 ac_cv_use_sash='wxUSE_SASH=yes'
4446 else
4447 ac_cv_use_sash='wxUSE_SASH=no'
4448 fi
4449
4450else
4451
4452 LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
4453 if test "x$LINE" != x ; then
4454 eval "DEFAULT_$LINE"
4455 else
4456 no_cache=1
4457 fi
4458
4459 ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
4460
4461fi
4462
4463
4464 eval "$ac_cv_use_sash"
4465 if test "$no_cache" != 1; then
4466 echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
4467 fi
4468
4469 if test "$wxUSE_SASH" = yes; then
4470 echo "$ac_t""yes" 1>&6
4471 else
4472 echo "$ac_t""no" 1>&6
4473 fi
4474
4475
4476 echo $ac_n "checking "for --enable-scrollbar"""... $ac_c" 1>&6
fa3e4baf 4477echo "configure:4478: checking "for --enable-scrollbar"" >&5
a16d3c04
KB
4478 no_cache=0
4479 # Check whether --enable-scrollbar or --disable-scrollbar was given.
4480if test "${enable_scrollbar+set}" = set; then
4481 enableval="$enable_scrollbar"
4482
4483 if test "$enableval" = yes; then
4484 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
4485 else
4486 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
4487 fi
4488
4489else
4490
4491 LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
4492 if test "x$LINE" != x ; then
4493 eval "DEFAULT_$LINE"
4494 else
4495 no_cache=1
4496 fi
4497
4498 ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
4499
4500fi
4501
4502
4503 eval "$ac_cv_use_scrollbar"
4504 if test "$no_cache" != 1; then
4505 echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
4506 fi
4507
4508 if test "$wxUSE_SCROLLBAR" = yes; then
4509 echo "$ac_t""yes" 1>&6
4510 else
4511 echo "$ac_t""no" 1>&6
4512 fi
4513
4514
4515 echo $ac_n "checking "for --enable-slider"""... $ac_c" 1>&6
fa3e4baf 4516echo "configure:4517: checking "for --enable-slider"" >&5
a16d3c04
KB
4517 no_cache=0
4518 # Check whether --enable-slider or --disable-slider was given.
4519if test "${enable_slider+set}" = set; then
4520 enableval="$enable_slider"
4521
4522 if test "$enableval" = yes; then
4523 ac_cv_use_slider='wxUSE_SLIDER=yes'
4524 else
4525 ac_cv_use_slider='wxUSE_SLIDER=no'
4526 fi
4527
4528else
4529
4530 LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
4531 if test "x$LINE" != x ; then
4532 eval "DEFAULT_$LINE"
4533 else
4534 no_cache=1
4535 fi
4536
4537 ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
4538
4539fi
4540
4541
4542 eval "$ac_cv_use_slider"
4543 if test "$no_cache" != 1; then
4544 echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
4545 fi
4546
4547 if test "$wxUSE_SLIDER" = yes; then
4548 echo "$ac_t""yes" 1>&6
4549 else
4550 echo "$ac_t""no" 1>&6
4551 fi
4552
4553
4554 echo $ac_n "checking "for --enable-spinbtn"""... $ac_c" 1>&6
fa3e4baf 4555echo "configure:4556: checking "for --enable-spinbtn"" >&5
a16d3c04
KB
4556 no_cache=0
4557 # Check whether --enable-spinbtn or --disable-spinbtn was given.
4558if test "${enable_spinbtn+set}" = set; then
4559 enableval="$enable_spinbtn"
4560
4561 if test "$enableval" = yes; then
4562 ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
4563 else
4564 ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
4565 fi
4566
4567else
4568
4569 LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
4570 if test "x$LINE" != x ; then
4571 eval "DEFAULT_$LINE"
4572 else
4573 no_cache=1
4574 fi
4575
4576 ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
4577
4578fi
4579
4580
4581 eval "$ac_cv_use_spinbtn"
4582 if test "$no_cache" != 1; then
4583 echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
4584 fi
4585
4586 if test "$wxUSE_SPINBTN" = yes; then
4587 echo "$ac_t""yes" 1>&6
4588 else
4589 echo "$ac_t""no" 1>&6
4590 fi
4591
4592
4593 echo $ac_n "checking "for --enable-splitter"""... $ac_c" 1>&6
fa3e4baf 4594echo "configure:4595: checking "for --enable-splitter"" >&5
a16d3c04
KB
4595 no_cache=0
4596 # Check whether --enable-splitter or --disable-splitter was given.
4597if test "${enable_splitter+set}" = set; then
4598 enableval="$enable_splitter"
4599
4600 if test "$enableval" = yes; then
4601 ac_cv_use_splitter='wxUSE_SPLITTER=yes'
4602 else
4603 ac_cv_use_splitter='wxUSE_SPLITTER=no'
4604 fi
4605
4606else
4607
4608 LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
4609 if test "x$LINE" != x ; then
4610 eval "DEFAULT_$LINE"
4611 else
4612 no_cache=1
4613 fi
4614
4615 ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
4616
4617fi
4618
4619
4620 eval "$ac_cv_use_splitter"
4621 if test "$no_cache" != 1; then
4622 echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
4623 fi
4624
4625 if test "$wxUSE_SPLITTER" = yes; then
4626 echo "$ac_t""yes" 1>&6
4627 else
4628 echo "$ac_t""no" 1>&6
4629 fi
4630
4631
4632 echo $ac_n "checking "for --enable-statbmp"""... $ac_c" 1>&6
fa3e4baf 4633echo "configure:4634: checking "for --enable-statbmp"" >&5
a16d3c04
KB
4634 no_cache=0
4635 # Check whether --enable-statbmp or --disable-statbmp was given.
4636if test "${enable_statbmp+set}" = set; then
4637 enableval="$enable_statbmp"
4638
4639 if test "$enableval" = yes; then
4640 ac_cv_use_statbmp='wxUSE_STATBMP=yes'
4641 else
4642 ac_cv_use_statbmp='wxUSE_STATBMP=no'
4643 fi
4644
4645else
4646
4647 LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
4648 if test "x$LINE" != x ; then
4649 eval "DEFAULT_$LINE"
4650 else
4651 no_cache=1
4652 fi
4653
4654 ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
4655
4656fi
4657
4658
4659 eval "$ac_cv_use_statbmp"
4660 if test "$no_cache" != 1; then
4661 echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
4662 fi
4663
4664 if test "$wxUSE_STATBMP" = yes; then
4665 echo "$ac_t""yes" 1>&6
4666 else
4667 echo "$ac_t""no" 1>&6
4668 fi
4669
4670
4671 echo $ac_n "checking "for --enable-statbox"""... $ac_c" 1>&6
fa3e4baf 4672echo "configure:4673: checking "for --enable-statbox"" >&5
a16d3c04
KB
4673 no_cache=0
4674 # Check whether --enable-statbox or --disable-statbox was given.
4675if test "${enable_statbox+set}" = set; then
4676 enableval="$enable_statbox"
4677
4678 if test "$enableval" = yes; then
4679 ac_cv_use_statbox='wxUSE_STATBOX=yes'
4680 else
4681 ac_cv_use_statbox='wxUSE_STATBOX=no'
4682 fi
4683
4684else
4685
4686 LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
4687 if test "x$LINE" != x ; then
4688 eval "DEFAULT_$LINE"
4689 else
4690 no_cache=1
4691 fi
4692
4693 ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
4694
4695fi
4696
4697
4698 eval "$ac_cv_use_statbox"
4699 if test "$no_cache" != 1; then
4700 echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
4701 fi
4702
4703 if test "$wxUSE_STATBOX" = yes; then
4704 echo "$ac_t""yes" 1>&6
4705 else
4706 echo "$ac_t""no" 1>&6
4707 fi
4708
4709
4710 echo $ac_n "checking "for --enable-statline"""... $ac_c" 1>&6
fa3e4baf 4711echo "configure:4712: checking "for --enable-statline"" >&5
a16d3c04
KB
4712 no_cache=0
4713 # Check whether --enable-statline or --disable-statline was given.
4714if test "${enable_statline+set}" = set; then
4715 enableval="$enable_statline"
4716
4717 if test "$enableval" = yes; then
4718 ac_cv_use_statline='wxUSE_STATLINE=yes'
4719 else
4720 ac_cv_use_statline='wxUSE_STATLINE=no'
4721 fi
4722
4723else
4724
4725 LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
4726 if test "x$LINE" != x ; then
4727 eval "DEFAULT_$LINE"
4728 else
4729 no_cache=1
4730 fi
4731
4732 ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
4733
4734fi
4735
4736
4737 eval "$ac_cv_use_statline"
4738 if test "$no_cache" != 1; then
4739 echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
4740 fi
4741
4742 if test "$wxUSE_STATLINE" = yes; then
4743 echo "$ac_t""yes" 1>&6
4744 else
4745 echo "$ac_t""no" 1>&6
4746 fi
4747
4748
4749 echo $ac_n "checking "for --enable-statusbar"""... $ac_c" 1>&6
fa3e4baf 4750echo "configure:4751: checking "for --enable-statusbar"" >&5
a16d3c04
KB
4751 no_cache=0
4752 # Check whether --enable-statusbar or --disable-statusbar was given.
4753if test "${enable_statusbar+set}" = set; then
4754 enableval="$enable_statusbar"
4755
4756 if test "$enableval" = yes; then
4757 ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
4758 else
4759 ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
4760 fi
4761
4762else
4763
4764 LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
4765 if test "x$LINE" != x ; then
4766 eval "DEFAULT_$LINE"
4767 else
4768 no_cache=1
4769 fi
4770
4771 ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
4772
4773fi
4774
4775
4776 eval "$ac_cv_use_statusbar"
4777 if test "$no_cache" != 1; then
4778 echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
4779 fi
4780
4781 if test "$wxUSE_STATUSBAR" = yes; then
4782 echo "$ac_t""yes" 1>&6
4783 else
4784 echo "$ac_t""no" 1>&6
4785 fi
4786
4787
4788 echo $ac_n "checking "for --enable-tabdialog"""... $ac_c" 1>&6
fa3e4baf 4789echo "configure:4790: checking "for --enable-tabdialog"" >&5
a16d3c04
KB
4790 no_cache=0
4791 # Check whether --enable-tabdialog or --disable-tabdialog was given.
4792if test "${enable_tabdialog+set}" = set; then
4793 enableval="$enable_tabdialog"
4794
4795 if test "$enableval" = yes; then
4796 ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes'
4797 else
4798 ac_cv_use_tabdialog='wxUSE_TABDIALOG=no'
4799 fi
4800
4801else
4802
4803 LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}`
4804 if test "x$LINE" != x ; then
4805 eval "DEFAULT_$LINE"
4806 else
4807 no_cache=1
4808 fi
4809
4810 ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG
4811
4812fi
4813
4814
4815 eval "$ac_cv_use_tabdialog"
4816 if test "$no_cache" != 1; then
4817 echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
4818 fi
4819
4820 if test "$wxUSE_TABDIALOG" = yes; then
4821 echo "$ac_t""yes" 1>&6
4822 else
4823 echo "$ac_t""no" 1>&6
4824 fi
4825
4826
4827 echo $ac_n "checking "for --enable-toolbar"""... $ac_c" 1>&6
fa3e4baf 4828echo "configure:4829: checking "for --enable-toolbar"" >&5
a16d3c04
KB
4829 no_cache=0
4830 # Check whether --enable-toolbar or --disable-toolbar was given.
4831if test "${enable_toolbar+set}" = set; then
4832 enableval="$enable_toolbar"
4833
4834 if test "$enableval" = yes; then
4835 ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
4836 else
4837 ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
4838 fi
4839
4840else
4841
4842 LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
4843 if test "x$LINE" != x ; then
4844 eval "DEFAULT_$LINE"
4845 else
4846 no_cache=1
4847 fi
4848
4849 ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
4850
4851fi
4852
4853
4854 eval "$ac_cv_use_toolbar"
4855 if test "$no_cache" != 1; then
4856 echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
4857 fi
4858
4859 if test "$wxUSE_TOOLBAR" = yes; then
4860 echo "$ac_t""yes" 1>&6
4861 else
4862 echo "$ac_t""no" 1>&6
4863 fi
4864
4865
4866 echo $ac_n "checking "for --enable-treectrl"""... $ac_c" 1>&6
fa3e4baf 4867echo "configure:4868: checking "for --enable-treectrl"" >&5
a16d3c04
KB
4868 no_cache=0
4869 # Check whether --enable-treectrl or --disable-treectrl was given.
4870if test "${enable_treectrl+set}" = set; then
4871 enableval="$enable_treectrl"
4872
4873 if test "$enableval" = yes; then
4874 ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
4875 else
4876 ac_cv_use_treectrl='wxUSE_TREECTRL=no'
4877 fi
4878
4879else
4880
4881 LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
4882 if test "x$LINE" != x ; then
4883 eval "DEFAULT_$LINE"
4884 else
4885 no_cache=1
4886 fi
4887
4888 ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
4889
4890fi
4891
4892
4893 eval "$ac_cv_use_treectrl"
4894 if test "$no_cache" != 1; then
4895 echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
4896 fi
4897
4898 if test "$wxUSE_TREECTRL" = yes; then
4899 echo "$ac_t""yes" 1>&6
4900 else
4901 echo "$ac_t""no" 1>&6
4902 fi
4903
4904
4905
4906
4907 echo $ac_n "checking "for --enable-commondlg"""... $ac_c" 1>&6
fa3e4baf 4908echo "configure:4909: checking "for --enable-commondlg"" >&5
a16d3c04
KB
4909 no_cache=0
4910 # Check whether --enable-commondlg or --disable-commondlg was given.
4911if test "${enable_commondlg+set}" = set; then
4912 enableval="$enable_commondlg"
4913
4914 if test "$enableval" = yes; then
4915 ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
4916 else
4917 ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
4918 fi
4919
4920else
4921
4922 LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
4923 if test "x$LINE" != x ; then
4924 eval "DEFAULT_$LINE"
4925 else
4926 no_cache=1
4927 fi
4928
4929 ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
4930
4931fi
4932
4933
4934 eval "$ac_cv_use_commondlg"
4935 if test "$no_cache" != 1; then
4936 echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
4937 fi
4938
4939 if test "$wxUSE_COMMONDLGS" = yes; then
4940 echo "$ac_t""yes" 1>&6
4941 else
4942 echo "$ac_t""no" 1>&6
4943 fi
4944
4945
4946 echo $ac_n "checking "for --enable-dirdlg"""... $ac_c" 1>&6
fa3e4baf 4947echo "configure:4948: checking "for --enable-dirdlg"" >&5
a16d3c04
KB
4948 no_cache=0
4949 # Check whether --enable-dirdlg or --disable-dirdlg was given.
4950if test "${enable_dirdlg+set}" = set; then
4951 enableval="$enable_dirdlg"
4952
4953 if test "$enableval" = yes; then
4954 ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
4955 else
4956 ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
4957 fi
4958
4959else
4960
4961 LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
4962 if test "x$LINE" != x ; then
4963 eval "DEFAULT_$LINE"
4964 else
4965 no_cache=1
4966 fi
4967
4968 ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
4969
4970fi
4971
4972
4973 eval "$ac_cv_use_dirdlg"
4974 if test "$no_cache" != 1; then
4975 echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
4976 fi
4977
4978 if test "$wxUSE_DIRDLG" = yes; then
4979 echo "$ac_t""yes" 1>&6
4980 else
4981 echo "$ac_t""no" 1>&6
4982 fi
4983
4984
4985 echo $ac_n "checking "for --enable-textdlg"""... $ac_c" 1>&6
fa3e4baf 4986echo "configure:4987: checking "for --enable-textdlg"" >&5
a16d3c04
KB
4987 no_cache=0
4988 # Check whether --enable-textdlg or --disable-textdlg was given.
4989if test "${enable_textdlg+set}" = set; then
4990 enableval="$enable_textdlg"
4991
4992 if test "$enableval" = yes; then
4993 ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
4994 else
4995 ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
4996 fi
4997
4998else
4999
5000 LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
5001 if test "x$LINE" != x ; then
5002 eval "DEFAULT_$LINE"
5003 else
5004 no_cache=1
5005 fi
5006
5007 ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
5008
5009fi
5010
5011
5012 eval "$ac_cv_use_textdlg"
5013 if test "$no_cache" != 1; then
5014 echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
5015 fi
5016
5017 if test "$wxUSE_TEXTDLG" = yes; then
5018 echo "$ac_t""yes" 1>&6
5019 else
5020 echo "$ac_t""no" 1>&6
5021 fi
5022
5023
5024 echo $ac_n "checking "for --enable-tipdlg"""... $ac_c" 1>&6
fa3e4baf 5025echo "configure:5026: checking "for --enable-tipdlg"" >&5
a16d3c04
KB
5026 no_cache=0
5027 # Check whether --enable-tipdlg or --disable-tipdlg was given.
5028if test "${enable_tipdlg+set}" = set; then
5029 enableval="$enable_tipdlg"
5030
5031 if test "$enableval" = yes; then
5032 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
5033 else
5034 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
5035 fi
5036
5037else
5038
5039 LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
5040 if test "x$LINE" != x ; then
5041 eval "DEFAULT_$LINE"
5042 else
5043 no_cache=1
5044 fi
5045
5046 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
5047
5048fi
5049
5050
5051 eval "$ac_cv_use_tipdlg"
5052 if test "$no_cache" != 1; then
5053 echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
5054 fi
5055
5056 if test "$wxUSE_STARTUP_TIPS" = yes; then
5057 echo "$ac_t""yes" 1>&6
5058 else
5059 echo "$ac_t""no" 1>&6
5060 fi
5061
5062
5063 echo $ac_n "checking "for --enable-progressdlg"""... $ac_c" 1>&6
fa3e4baf 5064echo "configure:5065: checking "for --enable-progressdlg"" >&5
a16d3c04
KB
5065 no_cache=0
5066 # Check whether --enable-progressdlg or --disable-progressdlg was given.
5067if test "${enable_progressdlg+set}" = set; then
5068 enableval="$enable_progressdlg"
5069
5070 if test "$enableval" = yes; then
5071 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
5072 else
5073 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
5074 fi
5075
5076else
5077
5078 LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
5079 if test "x$LINE" != x ; then
5080 eval "DEFAULT_$LINE"
5081 else
5082 no_cache=1
5083 fi
5084
5085 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
5086
5087fi
5088
5089
5090 eval "$ac_cv_use_progressdlg"
5091 if test "$no_cache" != 1; then
5092 echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
5093 fi
5094
5095 if test "$wxUSE_PROGRESSDLG" = yes; then
5096 echo "$ac_t""yes" 1>&6
5097 else
5098 echo "$ac_t""no" 1>&6
5099 fi
5100
5101
5102 echo $ac_n "checking "for --enable-miniframe"""... $ac_c" 1>&6
fa3e4baf 5103echo "configure:5104: checking "for --enable-miniframe"" >&5
a16d3c04
KB
5104 no_cache=0
5105 # Check whether --enable-miniframe or --disable-miniframe was given.
5106if test "${enable_miniframe+set}" = set; then
5107 enableval="$enable_miniframe"
5108
5109 if test "$enableval" = yes; then
5110 ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
5111 else
5112 ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
5113 fi
5114
5115else
5116
5117 LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
5118 if test "x$LINE" != x ; then
5119 eval "DEFAULT_$LINE"
5120 else
5121 no_cache=1
5122 fi
5123
5124 ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
5125
5126fi
5127
5128
5129 eval "$ac_cv_use_miniframe"
5130 if test "$no_cache" != 1; then
5131 echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
5132 fi
5133
5134 if test "$wxUSE_MINIFRAME" = yes; then
5135 echo "$ac_t""yes" 1>&6
5136 else
5137 echo "$ac_t""no" 1>&6
5138 fi
5139
5140
5141 echo $ac_n "checking "for --enable-html"""... $ac_c" 1>&6
fa3e4baf 5142echo "configure:5143: checking "for --enable-html"" >&5
a16d3c04
KB
5143 no_cache=0
5144 # Check whether --enable-html or --disable-html was given.
5145if test "${enable_html+set}" = set; then
5146 enableval="$enable_html"
5147
5148 if test "$enableval" = yes; then
5149 ac_cv_use_html='wxUSE_HTML=yes'
5150 else
5151 ac_cv_use_html='wxUSE_HTML=no'
5152 fi
5153
5154else
5155
5156 LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
5157 if test "x$LINE" != x ; then
5158 eval "DEFAULT_$LINE"
5159 else
5160 no_cache=1
5161 fi
5162
5163 ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
5164
5165fi
5166
5167
5168 eval "$ac_cv_use_html"
5169 if test "$no_cache" != 1; then
5170 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
5171 fi
5172
5173 if test "$wxUSE_HTML" = yes; then
5174 echo "$ac_t""yes" 1>&6
5175 else
5176 echo "$ac_t""no" 1>&6
5177 fi
5178
5179
5180 echo $ac_n "checking "for --enable-tooltips"""... $ac_c" 1>&6
fa3e4baf 5181echo "configure:5182: checking "for --enable-tooltips"" >&5
a16d3c04
KB
5182 no_cache=0
5183 # Check whether --enable-tooltips or --disable-tooltips was given.
5184if test "${enable_tooltips+set}" = set; then
5185 enableval="$enable_tooltips"
5186
5187 if test "$enableval" = yes; then
5188 ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
5189 else
5190 ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
5191 fi
5192
5193else
5194
5195 LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
5196 if test "x$LINE" != x ; then
5197 eval "DEFAULT_$LINE"
5198 else
5199 no_cache=1
5200 fi
5201
5202 ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
5203
5204fi
5205
5206
5207 eval "$ac_cv_use_tooltips"
5208 if test "$no_cache" != 1; then
5209 echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
5210 fi
5211
5212 if test "$wxUSE_TOOLTIPS" = yes; then
5213 echo "$ac_t""yes" 1>&6
5214 else
5215 echo "$ac_t""no" 1>&6
5216 fi
5217
5218
5219 echo $ac_n "checking "for --enable-splines"""... $ac_c" 1>&6
fa3e4baf 5220echo "configure:5221: checking "for --enable-splines"" >&5
a16d3c04
KB
5221 no_cache=0
5222 # Check whether --enable-splines or --disable-splines was given.
5223if test "${enable_splines+set}" = set; then
5224 enableval="$enable_splines"
5225
5226 if test "$enableval" = yes; then
5227 ac_cv_use_splines='wxUSE_SPLINES=yes'
5228 else
5229 ac_cv_use_splines='wxUSE_SPLINES=no'
5230 fi
5231
5232else
5233
5234 LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
5235 if test "x$LINE" != x ; then
5236 eval "DEFAULT_$LINE"
5237 else
5238 no_cache=1
5239 fi
5240
5241 ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
5242
5243fi
5244
5245
5246 eval "$ac_cv_use_splines"
5247 if test "$no_cache" != 1; then
5248 echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
5249 fi
5250
5251 if test "$wxUSE_SPLINES" = yes; then
5252 echo "$ac_t""yes" 1>&6
5253 else
5254 echo "$ac_t""no" 1>&6
5255 fi
5256
5257
5258 echo $ac_n "checking "for --enable-validators"""... $ac_c" 1>&6
fa3e4baf 5259echo "configure:5260: checking "for --enable-validators"" >&5
a16d3c04
KB
5260 no_cache=0
5261 # Check whether --enable-validators or --disable-validators was given.
5262if test "${enable_validators+set}" = set; then
5263 enableval="$enable_validators"
5264
5265 if test "$enableval" = yes; then
5266 ac_cv_use_validators='wxUSE_VALIDATORS=yes'
5267 else
5268 ac_cv_use_validators='wxUSE_VALIDATORS=no'
5269 fi
5270
5271else
5272
5273 LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
5274 if test "x$LINE" != x ; then
5275 eval "DEFAULT_$LINE"
5276 else
5277 no_cache=1
5278 fi
5279
5280 ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
5281
5282fi
5283
5284
5285 eval "$ac_cv_use_validators"
5286 if test "$no_cache" != 1; then
5287 echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
5288 fi
5289
5290 if test "$wxUSE_VALIDATORS" = yes; then
5291 echo "$ac_t""yes" 1>&6
5292 else
5293 echo "$ac_t""no" 1>&6
5294 fi
5295
5296
5297 echo $ac_n "checking "for --enable-busyinfo"""... $ac_c" 1>&6
fa3e4baf 5298echo "configure:5299: checking "for --enable-busyinfo"" >&5
a16d3c04
KB
5299 no_cache=0
5300 # Check whether --enable-busyinfo or --disable-busyinfo was given.
5301if test "${enable_busyinfo+set}" = set; then
5302 enableval="$enable_busyinfo"
5303
5304 if test "$enableval" = yes; then
5305 ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
5306 else
5307 ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
5308 fi
5309
5310else
5311
5312 LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
5313 if test "x$LINE" != x ; then
5314 eval "DEFAULT_$LINE"
5315 else
5316 no_cache=1
5317 fi
5318
5319 ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
5320
5321fi
5322
5323
5324 eval "$ac_cv_use_busyinfo"
5325 if test "$no_cache" != 1; then
5326 echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
5327 fi
5328
5329 if test "$wxUSE_BUSYINFO" = yes; then
5330 echo "$ac_t""yes" 1>&6
5331 else
5332 echo "$ac_t""no" 1>&6
5333 fi
5334
5335
5336
1c8515f9
KB
5337
5338 echo $ac_n "checking "for --enable-gif"""... $ac_c" 1>&6
fa3e4baf 5339echo "configure:5340: checking "for --enable-gif"" >&5
1c8515f9
KB
5340 no_cache=0
5341 # Check whether --enable-gif or --disable-gif was given.
5342if test "${enable_gif+set}" = set; then
5343 enableval="$enable_gif"
5344
5345 if test "$enableval" = yes; then
5346 ac_cv_use_gif='wxUSE_GIF=yes'
5347 else
5348 ac_cv_use_gif='wxUSE_GIF=no'
5349 fi
5350
5351else
5352
5353 LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
5354 if test "x$LINE" != x ; then
5355 eval "DEFAULT_$LINE"
5356 else
5357 no_cache=1
5358 fi
5359
5360 ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
5361
5362fi
5363
5364
5365 eval "$ac_cv_use_gif"
5366 if test "$no_cache" != 1; then
5367 echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
5368 fi
5369
5370 if test "$wxUSE_GIF" = yes; then
5371 echo "$ac_t""yes" 1>&6
5372 else
5373 echo "$ac_t""no" 1>&6
5374 fi
5375
5376
5377 echo $ac_n "checking "for --enable-pcx"""... $ac_c" 1>&6
fa3e4baf 5378echo "configure:5379: checking "for --enable-pcx"" >&5
1c8515f9
KB
5379 no_cache=0
5380 # Check whether --enable-pcx or --disable-pcx was given.
5381if test "${enable_pcx+set}" = set; then
5382 enableval="$enable_pcx"
5383
5384 if test "$enableval" = yes; then
5385 ac_cv_use_pcx='wxUSE_PCX=yes'
5386 else
5387 ac_cv_use_pcx='wxUSE_PCX=no'
5388 fi
5389
5390else
5391
5392 LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
5393 if test "x$LINE" != x ; then
5394 eval "DEFAULT_$LINE"
5395 else
5396 no_cache=1
5397 fi
5398
5399 ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
5400
5401fi
5402
5403
5404 eval "$ac_cv_use_pcx"
5405 if test "$no_cache" != 1; then
5406 echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
5407 fi
5408
5409 if test "$wxUSE_PCX" = yes; then
5410 echo "$ac_t""yes" 1>&6
5411 else
5412 echo "$ac_t""no" 1>&6
5413 fi
5414
5415
5416 echo $ac_n "checking "for --enable-pnm"""... $ac_c" 1>&6
fa3e4baf 5417echo "configure:5418: checking "for --enable-pnm"" >&5
1c8515f9
KB
5418 no_cache=0
5419 # Check whether --enable-pnm or --disable-pnm was given.
5420if test "${enable_pnm+set}" = set; then
5421 enableval="$enable_pnm"
5422
5423 if test "$enableval" = yes; then
5424 ac_cv_use_pnm='wxUSE_PNM=yes'
5425 else
5426 ac_cv_use_pnm='wxUSE_PNM=no'
5427 fi
5428
5429else
5430
5431 LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
5432 if test "x$LINE" != x ; then
5433 eval "DEFAULT_$LINE"
5434 else
5435 no_cache=1
5436 fi
5437
5438 ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
5439
5440fi
5441
5442
5443 eval "$ac_cv_use_pnm"
5444 if test "$no_cache" != 1; then
5445 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
5446 fi
5447
5448 if test "$wxUSE_PNM" = yes; then
5449 echo "$ac_t""yes" 1>&6
5450 else
5451 echo "$ac_t""no" 1>&6
5452 fi
5453
5454
5455
a16d3c04
KB
5456 echo "saving argument cache $wx_arg_cache_file"
5457 mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
5458
5459
5460
5461echo $ac_n "checking for toolkit""... $ac_c" 1>&6
fa3e4baf 5462echo "configure:5463: checking for toolkit" >&5
a16d3c04
KB
5463
5464if test "$TOOLKIT_GIVEN" = 1; then
5465 for toolkit in `echo $ALL_TOOLKITS`; do
5466 var=wxUSE_$toolkit
5467 eval "value=\$${var}"
5468 eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`"
5469 done
5470else
5471 for toolkit in `echo $ALL_TOOLKITS`; do
5472 if test "$has_toolkit_in_cache" != 1; then
5473 var=DEFAULT_DEFAULT_wxUSE_$toolkit
5474 else
5475 var=DEFAULT_wxUSE_$toolkit
5476 fi
5477 eval "wxUSE_$toolkit=\$${var}"
5478 done
5479fi
5480
5481NUM_TOOLKITS=`expr ${wxUSE_GTK:-0} + ${wxUSE_MOTIF:-0} + ${wxUSE_WINE:-0} + ${wxUSE_MINGW:-0} + ${wxUSE_CYGWIN:-0}`
5482
5483case "$NUM_TOOLKITS" in
5484 1)
5485 ;;
5486 0)
5487 { echo "configure: error: Please specify a toolkit - cannot determine the default for ${host}" 1>&2; exit 1; }
5488 ;;
5489 *)
5490 { echo "configure: error: Please specify at most one toolkit (may be some are cached?)" 1>&2; exit 1; }
5491esac
5492
5493for toolkit in `echo $ALL_TOOLKITS`; do
5494 var=wxUSE_$toolkit
5495 eval "value=\$${var}"
5496 if test "x$value" != x; then
5497 cache_var=CACHE_$toolkit
5498 eval "cache=\$${cache_var}"
5499 if test "$cache" = 1; then
5500 echo "$var=$value" >> ${wx_arg_cache_file}
5501 fi
5502 if test "$value" = 1; then
5503 echo "$ac_t""`echo $toolkit | tr A-Z a-z`" 1>&6
5504 fi
5505 fi
5506done
5507
5508
5509cat > confcache <<\EOF
5510# This file is a shell script that caches the results of configure
5511# tests run on this system so they can be shared between configure
5512# scripts and configure runs. It is not useful on other systems.
5513# If it contains results you don't want to keep, you may remove or edit it.
5514#
5515# By default, configure uses ./config.cache as the cache file,
5516# creating it if it does not exist already. You can give configure
5517# the --cache-file=FILE option to use a different cache file; that is
5518# what configure does when it calls configure scripts in
5519# subdirectories, so they share the cache.
5520# Giving --cache-file=/dev/null disables caching, for debugging configure.
5521# config.status only pays attention to the cache file if you give it the
5522# --recheck option to rerun configure.
5523#
5524EOF
5525# The following way of writing the cache mishandles newlines in values,
5526# but we know of no workaround that is simple, portable, and efficient.
5527# So, don't put newlines in cache variables' values.
5528# Ultrix sh set writes to stderr and can't be redirected directly,
5529# and sets the high bit in the cache file unless we assign to the vars.
5530(set) 2>&1 |
fa3e4baf 5531 case `(ac_space=' '; set | grep ac_space) 2>&1` in
a16d3c04
KB
5532 *ac_space=\ *)
5533 # `set' does not quote correctly, so add quotes (double-quote substitution
5534 # turns \\\\ into \\, and sed turns \\ into \).
5535 sed -n \
5536 -e "s/'/'\\\\''/g" \
5537 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
5538 ;;
5539 *)
5540 # `set' quotes correctly as required by POSIX, so do not add quotes.
5541 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
5542 ;;
5543 esac >> confcache
5544if cmp -s $cache_file confcache; then
5545 :
5546else
5547 if test -w $cache_file; then
5548 echo "updating cache $cache_file"
5549 cat confcache > $cache_file
5550 else
5551 echo "not updating unwritable cache $cache_file"
5552 fi
5553fi
5554rm -f confcache
5555
5556
5557if eval "test $host != $build"; then
5558 if eval "test $host_alias != NONE"; then
1c8515f9
KB
5559 CC=$host_alias-gcc
5560 CXX=$host_alias-c++
a16d3c04
KB
5561 AR=$host_alias-ar
5562 RANLIB=$host_alias-ranlib
1c8515f9
KB
5563 DLLTOOL=$host_alias-dlltool
5564 LD=$host_alias-ld
a16d3c04
KB
5565 NM=$host_alias-nm
5566 STRIP=$host_alias-strip
5567 fi
5568fi
5569
5570# Extract the first word of "gcc", so it can be a program name with args.
5571set dummy gcc; ac_word=$2
5572echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
fa3e4baf 5573echo "configure:5574: checking for $ac_word" >&5
a16d3c04
KB
5574if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
5575 echo $ac_n "(cached) $ac_c" 1>&6
5576else
5577 if test -n "$CC"; then
5578 ac_cv_prog_CC="$CC" # Let the user override the test.
5579else
fa3e4baf
KB
5580 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5581 ac_dummy="$PATH"
5582 for ac_dir in $ac_dummy; do
a16d3c04
KB
5583 test -z "$ac_dir" && ac_dir=.
5584 if test -f $ac_dir/$ac_word; then
5585 ac_cv_prog_CC="gcc"
5586 break
5587 fi
5588 done
5589 IFS="$ac_save_ifs"
5590fi
5591fi
5592CC="$ac_cv_prog_CC"
5593if test -n "$CC"; then
5594 echo "$ac_t""$CC" 1>&6
5595else
5596 echo "$ac_t""no" 1>&6
5597fi
5598
5599if test -z "$CC"; then
5600 # Extract the first word of "cc", so it can be a program name with args.
5601set dummy cc; ac_word=$2
5602echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
fa3e4baf 5603echo "configure:5604: checking for $ac_word" >&5
a16d3c04
KB
5604if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
5605 echo $ac_n "(cached) $ac_c" 1>&6
5606else
5607 if test -n "$CC"; then
5608 ac_cv_prog_CC="$CC" # Let the user override the test.
5609else
fa3e4baf 5610 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
a16d3c04 5611 ac_prog_rejected=no
fa3e4baf
KB
5612 ac_dummy="$PATH"
5613 for ac_dir in $ac_dummy; do
a16d3c04
KB
5614 test -z "$ac_dir" && ac_dir=.
5615 if test -f $ac_dir/$ac_word; then
5616 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
5617 ac_prog_rejected=yes
5618 continue
5619 fi
5620 ac_cv_prog_CC="cc"
5621 break
5622 fi
5623 done
5624 IFS="$ac_save_ifs"
5625if test $ac_prog_rejected = yes; then
5626 # We found a bogon in the path, so make sure we never use it.
5627 set dummy $ac_cv_prog_CC
5628 shift
5629 if test $# -gt 0; then
5630 # We chose a different compiler from the bogus one.
5631 # However, it has the same basename, so the bogon will be chosen
5632 # first if we set CC to just the basename; use the full file name.
5633 shift
5634 set dummy "$ac_dir/$ac_word" "$@"
5635 shift
5636 ac_cv_prog_CC="$@"
5637 fi
5638fi
5639fi
5640fi
5641CC="$ac_cv_prog_CC"
5642if test -n "$CC"; then
5643 echo "$ac_t""$CC" 1>&6
5644else
5645 echo "$ac_t""no" 1>&6
5646fi
5647
fa3e4baf
KB
5648 if test -z "$CC"; then
5649 case "`uname -s`" in
5650 *win32* | *WIN32*)
5651 # Extract the first word of "cl", so it can be a program name with args.
5652set dummy cl; ac_word=$2
5653echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5654echo "configure:5655: checking for $ac_word" >&5
5655if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
5656 echo $ac_n "(cached) $ac_c" 1>&6
5657else
5658 if test -n "$CC"; then
5659 ac_cv_prog_CC="$CC" # Let the user override the test.
5660else
5661 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5662 ac_dummy="$PATH"
5663 for ac_dir in $ac_dummy; do
5664 test -z "$ac_dir" && ac_dir=.
5665 if test -f $ac_dir/$ac_word; then
5666 ac_cv_prog_CC="cl"
5667 break
5668 fi
5669 done
5670 IFS="$ac_save_ifs"
5671fi
5672fi
5673CC="$ac_cv_prog_CC"
5674if test -n "$CC"; then
5675 echo "$ac_t""$CC" 1>&6
5676else
5677 echo "$ac_t""no" 1>&6
5678fi
5679 ;;
5680 esac
5681 fi
a16d3c04
KB
5682 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
5683fi
5684
5685echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
fa3e4baf 5686echo "configure:5687: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
a16d3c04
KB
5687
5688ac_ext=c
5689# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5690ac_cpp='$CPP $CPPFLAGS'
5691ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
fa3e4baf 5692ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
a16d3c04
KB
5693cross_compiling=$ac_cv_prog_cc_cross
5694
fa3e4baf
KB
5695cat > conftest.$ac_ext << EOF
5696
5697#line 5698 "configure"
a16d3c04 5698#include "confdefs.h"
fa3e4baf 5699
a16d3c04
KB
5700main(){return(0);}
5701EOF
fa3e4baf 5702if { (eval echo configure:5703: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a16d3c04
KB
5703 ac_cv_prog_cc_works=yes
5704 # If we can't run a trivial program, we are probably using a cross compiler.
5705 if (./conftest; exit) 2>/dev/null; then
5706 ac_cv_prog_cc_cross=no
5707 else
5708 ac_cv_prog_cc_cross=yes
5709 fi
5710else
5711 echo "configure: failed program was:" >&5
5712 cat conftest.$ac_ext >&5
5713 ac_cv_prog_cc_works=no
5714fi
5715rm -fr conftest*
fa3e4baf
KB
5716ac_ext=c
5717# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5718ac_cpp='$CPP $CPPFLAGS'
5719ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5720ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5721cross_compiling=$ac_cv_prog_cc_cross
a16d3c04
KB
5722
5723echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
5724if test $ac_cv_prog_cc_works = no; then
5725 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
5726fi
5727echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
fa3e4baf 5728echo "configure:5729: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
a16d3c04
KB
5729echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
5730cross_compiling=$ac_cv_prog_cc_cross
5731
5732echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
fa3e4baf 5733echo "configure:5734: checking whether we are using GNU C" >&5
a16d3c04
KB
5734if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
5735 echo $ac_n "(cached) $ac_c" 1>&6
5736else
5737 cat > conftest.c <<EOF
5738#ifdef __GNUC__
5739 yes;
5740#endif
5741EOF
fa3e4baf 5742if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:5743: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
a16d3c04
KB
5743 ac_cv_prog_gcc=yes
5744else
5745 ac_cv_prog_gcc=no
5746fi
5747fi
5748
5749echo "$ac_t""$ac_cv_prog_gcc" 1>&6
5750
5751if test $ac_cv_prog_gcc = yes; then
5752 GCC=yes
fa3e4baf
KB
5753else
5754 GCC=
5755fi
5756
5757ac_test_CFLAGS="${CFLAGS+set}"
5758ac_save_CFLAGS="$CFLAGS"
5759CFLAGS=
5760echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
5761echo "configure:5762: checking whether ${CC-cc} accepts -g" >&5
a16d3c04
KB
5762if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
5763 echo $ac_n "(cached) $ac_c" 1>&6
5764else
5765 echo 'void f(){}' > conftest.c
5766if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
5767 ac_cv_prog_cc_g=yes
5768else
5769 ac_cv_prog_cc_g=no
5770fi
5771rm -f conftest*
5772
5773fi
5774
5775echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
fa3e4baf
KB
5776if test "$ac_test_CFLAGS" = set; then
5777 CFLAGS="$ac_save_CFLAGS"
5778elif test $ac_cv_prog_cc_g = yes; then
5779 if test "$GCC" = yes; then
a16d3c04
KB
5780 CFLAGS="-g -O2"
5781 else
fa3e4baf 5782 CFLAGS="-g"
a16d3c04 5783 fi
1c8515f9 5784else
fa3e4baf
KB
5785 if test "$GCC" = yes; then
5786 CFLAGS="-O2"
5787 else
5788 CFLAGS=
5789 fi
a16d3c04
KB
5790fi
5791
5792
5793CFLAGS=`echo "$CFLAGS" | sed 's/-g//g'`
5794
5795echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
fa3e4baf 5796echo "configure:5797: checking how to run the C preprocessor" >&5
a16d3c04
KB
5797# On Suns, sometimes $CPP names a directory.
5798if test -n "$CPP" && test -d "$CPP"; then
5799 CPP=
5800fi
5801if test -z "$CPP"; then
5802if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
5803 echo $ac_n "(cached) $ac_c" 1>&6
5804else
5805 # This must be in double quotes, not single quotes, because CPP may get
5806 # substituted into the Makefile and "${CC-cc}" will confuse make.
5807 CPP="${CC-cc} -E"
5808 # On the NeXT, cc -E runs the code through the compiler's parser,
5809 # not just through cpp.
5810 cat > conftest.$ac_ext <<EOF
fa3e4baf 5811#line 5812 "configure"
a16d3c04
KB
5812#include "confdefs.h"
5813#include <assert.h>
5814Syntax Error
5815EOF
5816ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
fa3e4baf
KB
5817{ (eval echo configure:5818: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5818ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
a16d3c04
KB
5819if test -z "$ac_err"; then
5820 :
5821else
5822 echo "$ac_err" >&5
5823 echo "configure: failed program was:" >&5
5824 cat conftest.$ac_ext >&5
5825 rm -rf conftest*
5826 CPP="${CC-cc} -E -traditional-cpp"
5827 cat > conftest.$ac_ext <<EOF
fa3e4baf
KB
5828#line 5829 "configure"
5829#include "confdefs.h"
5830#include <assert.h>
5831Syntax Error
5832EOF
5833ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5834{ (eval echo configure:5835: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5835ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5836if test -z "$ac_err"; then
5837 :
5838else
5839 echo "$ac_err" >&5
5840 echo "configure: failed program was:" >&5
5841 cat conftest.$ac_ext >&5
5842 rm -rf conftest*
5843 CPP="${CC-cc} -nologo -E"
5844 cat > conftest.$ac_ext <<EOF
5845#line 5846 "configure"
a16d3c04
KB
5846#include "confdefs.h"
5847#include <assert.h>
5848Syntax Error
5849EOF
5850ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
fa3e4baf
KB
5851{ (eval echo configure:5852: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5852ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
a16d3c04
KB
5853if test -z "$ac_err"; then
5854 :
5855else
5856 echo "$ac_err" >&5
5857 echo "configure: failed program was:" >&5
5858 cat conftest.$ac_ext >&5
5859 rm -rf conftest*
5860 CPP=/lib/cpp
5861fi
5862rm -f conftest*
5863fi
fa3e4baf
KB
5864rm -f conftest*
5865fi
a16d3c04
KB
5866rm -f conftest*
5867 ac_cv_prog_CPP="$CPP"
5868fi
5869 CPP="$ac_cv_prog_CPP"
5870else
5871 ac_cv_prog_CPP="$CPP"
5872fi
5873echo "$ac_t""$CPP" 1>&6
5874
5875
5876if test $ac_cv_prog_gcc = yes; then
5877 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
fa3e4baf 5878echo "configure:5879: checking whether ${CC-cc} needs -traditional" >&5
a16d3c04
KB
5879if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
5880 echo $ac_n "(cached) $ac_c" 1>&6
5881else
5882 ac_pattern="Autoconf.*'x'"
5883 cat > conftest.$ac_ext <<EOF
fa3e4baf 5884#line 5885 "configure"
a16d3c04
KB
5885#include "confdefs.h"
5886#include <sgtty.h>
5887Autoconf TIOCGETP
5888EOF
5889if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5890 egrep "$ac_pattern" >/dev/null 2>&1; then
5891 rm -rf conftest*
5892 ac_cv_prog_gcc_traditional=yes
5893else
5894 rm -rf conftest*
5895 ac_cv_prog_gcc_traditional=no
5896fi
5897rm -f conftest*
5898
5899
5900 if test $ac_cv_prog_gcc_traditional = no; then
5901 cat > conftest.$ac_ext <<EOF
fa3e4baf 5902#line 5903 "configure"
a16d3c04
KB
5903#include "confdefs.h"
5904#include <termio.h>
5905Autoconf TCGETA
5906EOF
5907if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5908 egrep "$ac_pattern" >/dev/null 2>&1; then
5909 rm -rf conftest*
5910 ac_cv_prog_gcc_traditional=yes
5911fi
5912rm -f conftest*
5913
5914 fi
5915fi
5916
5917echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
5918 if test $ac_cv_prog_gcc_traditional = yes; then
5919 CC="$CC -traditional"
5920 fi
5921fi
5922
5923
5924
5925ac_ext=C
5926# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5927ac_cpp='$CXXCPP $CPPFLAGS'
5928ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
fa3e4baf 5929ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
a16d3c04
KB
5930cross_compiling=$ac_cv_prog_cxx_cross
5931
5932
fa3e4baf 5933for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
a16d3c04
KB
5934do
5935# Extract the first word of "$ac_prog", so it can be a program name with args.
5936set dummy $ac_prog; ac_word=$2
5937echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
fa3e4baf 5938echo "configure:5939: checking for $ac_word" >&5
a16d3c04
KB
5939if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
5940 echo $ac_n "(cached) $ac_c" 1>&6
5941else
5942 if test -n "$CXX"; then
5943 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5944else
fa3e4baf
KB
5945 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5946 ac_dummy="$PATH"
5947 for ac_dir in $ac_dummy; do
a16d3c04
KB
5948 test -z "$ac_dir" && ac_dir=.
5949 if test -f $ac_dir/$ac_word; then
5950 ac_cv_prog_CXX="$ac_prog"
5951 break
5952 fi
5953 done
5954 IFS="$ac_save_ifs"
5955fi
5956fi
5957CXX="$ac_cv_prog_CXX"
5958if test -n "$CXX"; then
5959 echo "$ac_t""$CXX" 1>&6
5960else
5961 echo "$ac_t""no" 1>&6
5962fi
5963
5964test -n "$CXX" && break
5965done
5966test -n "$CXX" || CXX="gcc"
5967
5968
5969echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
fa3e4baf 5970echo "configure:5971: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
a16d3c04
KB
5971
5972ac_ext=C
5973# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5974ac_cpp='$CXXCPP $CPPFLAGS'
5975ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
fa3e4baf 5976ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
a16d3c04
KB
5977cross_compiling=$ac_cv_prog_cxx_cross
5978
fa3e4baf
KB
5979cat > conftest.$ac_ext << EOF
5980
5981#line 5982 "configure"
a16d3c04 5982#include "confdefs.h"
fa3e4baf
KB
5983
5984int main(){return(0);}
a16d3c04 5985EOF
fa3e4baf 5986if { (eval echo configure:5987: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a16d3c04
KB
5987 ac_cv_prog_cxx_works=yes
5988 # If we can't run a trivial program, we are probably using a cross compiler.
5989 if (./conftest; exit) 2>/dev/null; then
5990 ac_cv_prog_cxx_cross=no
5991 else
5992 ac_cv_prog_cxx_cross=yes
5993 fi
5994else
5995 echo "configure: failed program was:" >&5
5996 cat conftest.$ac_ext >&5
5997 ac_cv_prog_cxx_works=no
5998fi
5999rm -fr conftest*
fa3e4baf
KB
6000ac_ext=C
6001# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6002ac_cpp='$CXXCPP $CPPFLAGS'
6003ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6004ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6005cross_compiling=$ac_cv_prog_cxx_cross
a16d3c04
KB
6006
6007echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
6008if test $ac_cv_prog_cxx_works = no; then
6009 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
6010fi
6011echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
fa3e4baf 6012echo "configure:6013: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
a16d3c04
KB
6013echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
6014cross_compiling=$ac_cv_prog_cxx_cross
6015
6016echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
fa3e4baf 6017echo "configure:6018: checking whether we are using GNU C++" >&5
a16d3c04
KB
6018if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
6019 echo $ac_n "(cached) $ac_c" 1>&6
6020else
6021 cat > conftest.C <<EOF
6022#ifdef __GNUC__
6023 yes;
6024#endif
6025EOF
fa3e4baf 6026if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:6027: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
a16d3c04
KB
6027 ac_cv_prog_gxx=yes
6028else
6029 ac_cv_prog_gxx=no
6030fi
6031fi
6032
6033echo "$ac_t""$ac_cv_prog_gxx" 1>&6
6034
6035if test $ac_cv_prog_gxx = yes; then
6036 GXX=yes
fa3e4baf
KB
6037else
6038 GXX=
6039fi
6040
6041ac_test_CXXFLAGS="${CXXFLAGS+set}"
6042ac_save_CXXFLAGS="$CXXFLAGS"
6043CXXFLAGS=
6044echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
6045echo "configure:6046: checking whether ${CXX-g++} accepts -g" >&5
a16d3c04
KB
6046if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
6047 echo $ac_n "(cached) $ac_c" 1>&6
6048else
6049 echo 'void f(){}' > conftest.cc
6050if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
6051 ac_cv_prog_cxx_g=yes
6052else
6053 ac_cv_prog_cxx_g=no
6054fi
6055rm -f conftest*
6056
6057fi
6058
6059echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
fa3e4baf
KB
6060if test "$ac_test_CXXFLAGS" = set; then
6061 CXXFLAGS="$ac_save_CXXFLAGS"
6062elif test $ac_cv_prog_cxx_g = yes; then
6063 if test "$GXX" = yes; then
a16d3c04
KB
6064 CXXFLAGS="-g -O2"
6065 else
fa3e4baf 6066 CXXFLAGS="-g"
a16d3c04 6067 fi
1c8515f9 6068else
fa3e4baf
KB
6069 if test "$GXX" = yes; then
6070 CXXFLAGS="-O2"
6071 else
6072 CXXFLAGS=
6073 fi
a16d3c04
KB
6074fi
6075
6076
6077echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
fa3e4baf 6078echo "configure:6079: checking how to run the C++ preprocessor" >&5
a16d3c04
KB
6079if test -z "$CXXCPP"; then
6080if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
6081 echo $ac_n "(cached) $ac_c" 1>&6
6082else
6083 ac_ext=C
6084# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6085ac_cpp='$CXXCPP $CPPFLAGS'
6086ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
fa3e4baf 6087ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
a16d3c04
KB
6088cross_compiling=$ac_cv_prog_cxx_cross
6089 CXXCPP="${CXX-g++} -E"
6090 cat > conftest.$ac_ext <<EOF
fa3e4baf 6091#line 6092 "configure"
a16d3c04
KB
6092#include "confdefs.h"
6093#include <stdlib.h>
6094EOF
6095ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
fa3e4baf
KB
6096{ (eval echo configure:6097: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6097ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
a16d3c04
KB
6098if test -z "$ac_err"; then
6099 :
6100else
6101 echo "$ac_err" >&5
6102 echo "configure: failed program was:" >&5
6103 cat conftest.$ac_ext >&5
6104 rm -rf conftest*
6105 CXXCPP=/lib/cpp
6106fi
6107rm -f conftest*
6108 ac_cv_prog_CXXCPP="$CXXCPP"
fa3e4baf
KB
6109ac_ext=C
6110# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6111ac_cpp='$CXXCPP $CPPFLAGS'
6112ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6113ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6114cross_compiling=$ac_cv_prog_cxx_cross
a16d3c04
KB
6115fi
6116fi
6117CXXCPP="$ac_cv_prog_CXXCPP"
6118echo "$ac_t""$CXXCPP" 1>&6
6119
6120
6121CXXFLAGS=`echo "$CXXFLAGS" | sed 's/-g//g'`
6122
6123ac_ext=c
6124# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6125ac_cpp='$CPP $CPPFLAGS'
6126ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
fa3e4baf 6127ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
a16d3c04
KB
6128cross_compiling=$ac_cv_prog_cc_cross
6129
6130
6131# Extract the first word of "ranlib", so it can be a program name with args.
6132set dummy ranlib; ac_word=$2
6133echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
fa3e4baf 6134echo "configure:6135: checking for $ac_word" >&5
a16d3c04
KB
6135if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
6136 echo $ac_n "(cached) $ac_c" 1>&6
6137else
6138 if test -n "$RANLIB"; then
6139 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6140else
fa3e4baf
KB
6141 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6142 ac_dummy="$PATH"
6143 for ac_dir in $ac_dummy; do
a16d3c04
KB
6144 test -z "$ac_dir" && ac_dir=.
6145 if test -f $ac_dir/$ac_word; then
6146 ac_cv_prog_RANLIB="ranlib"
6147 break
6148 fi
6149 done
6150 IFS="$ac_save_ifs"
6151 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
6152fi
6153fi
6154RANLIB="$ac_cv_prog_RANLIB"
6155if test -n "$RANLIB"; then
6156 echo "$ac_t""$RANLIB" 1>&6
6157else
6158 echo "$ac_t""no" 1>&6
6159fi
6160
6161
6162# Extract the first word of "ar", so it can be a program name with args.
6163set dummy ar; ac_word=$2
6164echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
fa3e4baf 6165echo "configure:6166: checking for $ac_word" >&5
a16d3c04
KB
6166if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
6167 echo $ac_n "(cached) $ac_c" 1>&6
6168else
6169 if test -n "$AR"; then
6170 ac_cv_prog_AR="$AR" # Let the user override the test.
6171else
fa3e4baf
KB
6172 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6173 ac_dummy="$PATH"
6174 for ac_dir in $ac_dummy; do
a16d3c04
KB
6175 test -z "$ac_dir" && ac_dir=.
6176 if test -f $ac_dir/$ac_word; then
6177 ac_cv_prog_AR="ar"
6178 break
6179 fi
6180 done
6181 IFS="$ac_save_ifs"
6182 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
6183fi
6184fi
6185AR="$ac_cv_prog_AR"
6186if test -n "$AR"; then
6187 echo "$ac_t""$AR" 1>&6
6188else
6189 echo "$ac_t""no" 1>&6
6190fi
6191
6192
6193# Find a good install program. We prefer a C program (faster),
6194# so one script is as good as another. But avoid the broken or
6195# incompatible versions:
6196# SysV /etc/install, /usr/sbin/install
6197# SunOS /usr/etc/install
6198# IRIX /sbin/install
6199# AIX /bin/install
fa3e4baf 6200# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
a16d3c04
KB
6201# AFS /usr/afsws/bin/install, which mishandles nonexistent args
6202# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6203# ./install, which can be erroneously created by make from ./install.sh.
6204echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
fa3e4baf 6205echo "configure:6206: checking for a BSD compatible install" >&5
a16d3c04
KB
6206if test -z "$INSTALL"; then
6207if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
6208 echo $ac_n "(cached) $ac_c" 1>&6
6209else
fa3e4baf 6210 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
a16d3c04
KB
6211 for ac_dir in $PATH; do
6212 # Account for people who put trailing slashes in PATH elements.
6213 case "$ac_dir/" in
6214 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
6215 *)
6216 # OSF1 and SCO ODT 3.0 have their own names for install.
fa3e4baf
KB
6217 # Don't use installbsd from OSF since it installs stuff as root
6218 # by default.
6219 for ac_prog in ginstall scoinst install; do
a16d3c04
KB
6220 if test -f $ac_dir/$ac_prog; then
6221 if test $ac_prog = install &&
6222 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
6223 # AIX install. It has an incompatible calling convention.
6224 :
6225 else
6226 ac_cv_path_install="$ac_dir/$ac_prog -c"
6227 break 2
6228 fi
6229 fi
6230 done
6231 ;;
6232 esac
6233 done
6234 IFS="$ac_save_IFS"
6235
6236fi
6237 if test "${ac_cv_path_install+set}" = set; then
6238 INSTALL="$ac_cv_path_install"
6239 else
6240 # As a last resort, use the slow shell script. We don't cache a
6241 # path for INSTALL within a source directory, because that will
6242 # break other packages using the cache if that directory is
6243 # removed, or if the path is relative.
6244 INSTALL="$ac_install_sh"
6245 fi
6246fi
6247echo "$ac_t""$INSTALL" 1>&6
6248
6249# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6250# It thinks the first close brace ends the variable substitution.
6251test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6252
fa3e4baf
KB
6253test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
6254
a16d3c04
KB
6255test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6256
6257
6258# Extract the first word of "strip", so it can be a program name with args.
6259set dummy strip; ac_word=$2
6260echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
fa3e4baf 6261echo "configure:6262: checking for $ac_word" >&5
a16d3c04
KB
6262if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
6263 echo $ac_n "(cached) $ac_c" 1>&6
6264else
6265 if test -n "$STRIP"; then
6266 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6267else
fa3e4baf
KB
6268 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6269 ac_dummy="$PATH"
6270 for ac_dir in $ac_dummy; do
a16d3c04
KB
6271 test -z "$ac_dir" && ac_dir=.
6272 if test -f $ac_dir/$ac_word; then
6273 ac_cv_prog_STRIP="strip"
6274 break
6275 fi
6276 done
6277 IFS="$ac_save_ifs"
6278 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true"
6279fi
6280fi
6281STRIP="$ac_cv_prog_STRIP"
6282if test -n "$STRIP"; then
6283 echo "$ac_t""$STRIP" 1>&6
6284else
6285 echo "$ac_t""no" 1>&6
6286fi
6287
6288
6289echo $ac_n "checking "make for VPATH support"""... $ac_c" 1>&6
fa3e4baf 6290echo "configure:6291: checking "make for VPATH support"" >&5
a16d3c04
KB
6291cat - << EOF > confMake
6292check : file
6293 cp \$? \$@
6294 cp \$? final_file
6295EOF
6296
6297if test ! -d sub ; then
6298 mkdir sub
6299fi
6300echo dummy > sub/file
6301${MAKE-make} -f confMake VPATH=sub 2> config.log > /dev/null
6302RESULT=$?
6303rm -f sub/file check final_file confMake
6304rmdir sub
6305if test "$RESULT" = 0; then
6306 echo "$ac_t""yes" 1>&6
6307else
6308 echo "$ac_t""no" 1>&6
6309 { echo "configure: error: You need a make-utility that is able to use the variable
6310VPATH correctly.
6311If your version of make does not support VPATH correctly" 1>&2; exit 1; }
6312fi
6313
6314for ac_prog in 'bison -y' byacc
6315do
6316# Extract the first word of "$ac_prog", so it can be a program name with args.
6317set dummy $ac_prog; ac_word=$2
6318echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
fa3e4baf 6319echo "configure:6320: checking for $ac_word" >&5
a16d3c04
KB
6320if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
6321 echo $ac_n "(cached) $ac_c" 1>&6
6322else
6323 if test -n "$YACC"; then
6324 ac_cv_prog_YACC="$YACC" # Let the user override the test.
6325else
fa3e4baf
KB
6326 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6327 ac_dummy="$PATH"
6328 for ac_dir in $ac_dummy; do
a16d3c04
KB
6329 test -z "$ac_dir" && ac_dir=.
6330 if test -f $ac_dir/$ac_word; then
6331 ac_cv_prog_YACC="$ac_prog"
6332 break
6333 fi
6334 done
6335 IFS="$ac_save_ifs"
6336fi
6337fi
6338YACC="$ac_cv_prog_YACC"
6339if test -n "$YACC"; then
6340 echo "$ac_t""$YACC" 1>&6
6341else
6342 echo "$ac_t""no" 1>&6
6343fi
6344
6345test -n "$YACC" && break
6346done
6347test -n "$YACC" || YACC="yacc"
6348
6349
6350# Extract the first word of "flex", so it can be a program name with args.
6351set dummy flex; ac_word=$2
6352echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
fa3e4baf 6353echo "configure:6354: checking for $ac_word" >&5
a16d3c04
KB
6354if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
6355 echo $ac_n "(cached) $ac_c" 1>&6
6356else
6357 if test -n "$LEX"; then
6358 ac_cv_prog_LEX="$LEX" # Let the user override the test.
6359else
fa3e4baf
KB
6360 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6361 ac_dummy="$PATH"
6362 for ac_dir in $ac_dummy; do
a16d3c04
KB
6363 test -z "$ac_dir" && ac_dir=.
6364 if test -f $ac_dir/$ac_word; then
6365 ac_cv_prog_LEX="flex"
6366 break
6367 fi
6368 done
6369 IFS="$ac_save_ifs"
6370 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
6371fi
6372fi
6373LEX="$ac_cv_prog_LEX"
6374if test -n "$LEX"; then
6375 echo "$ac_t""$LEX" 1>&6
6376else
6377 echo "$ac_t""no" 1>&6
6378fi
6379
6380if test -z "$LEXLIB"
6381then
6382 case "$LEX" in
6383 flex*) ac_lib=fl ;;
6384 *) ac_lib=l ;;
6385 esac
6386 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
fa3e4baf 6387echo "configure:6388: checking for yywrap in -l$ac_lib" >&5
a16d3c04
KB
6388ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
6389if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6390 echo $ac_n "(cached) $ac_c" 1>&6
6391else
6392 ac_save_LIBS="$LIBS"
6393LIBS="-l$ac_lib $LIBS"
6394cat > conftest.$ac_ext <<EOF
fa3e4baf 6395#line 6396 "configure"
a16d3c04
KB
6396#include "confdefs.h"
6397/* Override any gcc2 internal prototype to avoid an error. */
6398/* We use char because int might match the return type of a gcc2
6399 builtin and then its argument prototype would still apply. */
6400char yywrap();
6401
6402int main() {
6403yywrap()
6404; return 0; }
6405EOF
fa3e4baf 6406if { (eval echo configure:6407: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a16d3c04
KB
6407 rm -rf conftest*
6408 eval "ac_cv_lib_$ac_lib_var=yes"
6409else
6410 echo "configure: failed program was:" >&5
6411 cat conftest.$ac_ext >&5
6412 rm -rf conftest*
6413 eval "ac_cv_lib_$ac_lib_var=no"
6414fi
6415rm -f conftest*
6416LIBS="$ac_save_LIBS"
6417
6418fi
6419if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6420 echo "$ac_t""yes" 1>&6
6421 LEXLIB="-l$ac_lib"
6422else
6423 echo "$ac_t""no" 1>&6
6424fi
6425
6426fi
6427
6428
6429echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
fa3e4baf 6430echo "configure:6431: checking whether ln -s works" >&5
a16d3c04
KB
6431if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
6432 echo $ac_n "(cached) $ac_c" 1>&6
6433else
6434 rm -f conftestdata
6435if ln -s X conftestdata 2>/dev/null
6436then
6437 rm -f conftestdata
6438 ac_cv_prog_LN_S="ln -s"
6439else
6440 ac_cv_prog_LN_S=ln
6441fi
6442fi
6443LN_S="$ac_cv_prog_LN_S"
6444if test "$ac_cv_prog_LN_S" = "ln -s"; then
6445 echo "$ac_t""yes" 1>&6
6446else
6447 echo "$ac_t""no" 1>&6
6448fi
6449
6450
6451
6452SEARCH_INCLUDE="\
6453 /usr/Motif-1.2/include \
6454 /usr/Motif-2.1/include \
6455 \
6456 /usr/include/Motif1.2 \
6457 /opt/xpm/include/X11 \
6458 /opt/GBxpm/include/ \
6459 /opt/GBxpm/X11/include/ \
6460 \
6461 /usr/Motif1.2/include \
6462 /usr/dt/include \
6463 /usr/include/Xm \
6464 \
6465 /usr/X11R6/include \
6466 /usr/X11R5/include \
6467 /usr/X11R4/include \
6468 \
6469 /usr/X11R6/lib \
6470 /usr/X11R5/lib \
6471 /usr/X11R4/lib \
6472 \
6473 /usr/include/X11R6 \
6474 /usr/include/X11R5 \
6475 /usr/include/X11R4 \
6476 \
6477 /usr/local/X11R6/include \
6478 /usr/local/X11R5/include \
6479 /usr/local/X11R4/include \
6480 \
6481 /usr/local/include/X11R6 \
6482 /usr/local/include/X11R5 \
6483 /usr/local/include/X11R4 \
6484 \
6485 /usr/X11/include \
6486 /usr/include/X11 \
6487 /usr/local/X11/include \
6488 /usr/local/include/X11 \
6489 \
6490 /usr/X386/include \
6491 /usr/x386/include \
6492 /usr/XFree86/include/X11 \
6493 \
6494 /usr/include \
6495 /usr/local/include \
6496 \
6497 /usr/include/gtk \
6498 /usr/local/include/gtk \
6499 /usr/include/glib \
6500 /usr/local/include/glib \
6501 \
6502 /usr/include/qt \
6503 /usr/local/include/qt \
6504 \
6505 /usr/include/windows \
6506 /usr/include/wine \
6507 /usr/local/include/wine \
6508 \
6509 /usr/unsupported/include \
6510 /usr/athena/include \
6511 /usr/local/x11r5/include \
6512 /usr/lpp/Xamples/include \
6513 \
6514 /usr/openwin/include \
6515 /usr/openwin/share/include \
6516 "
6517
6518SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s/include/lib/g` "
6519
6520
6521cat > confcache <<\EOF
6522# This file is a shell script that caches the results of configure
6523# tests run on this system so they can be shared between configure
6524# scripts and configure runs. It is not useful on other systems.
6525# If it contains results you don't want to keep, you may remove or edit it.
6526#
6527# By default, configure uses ./config.cache as the cache file,
6528# creating it if it does not exist already. You can give configure
6529# the --cache-file=FILE option to use a different cache file; that is
6530# what configure does when it calls configure scripts in
6531# subdirectories, so they share the cache.
6532# Giving --cache-file=/dev/null disables caching, for debugging configure.
6533# config.status only pays attention to the cache file if you give it the
6534# --recheck option to rerun configure.
6535#
6536EOF
6537# The following way of writing the cache mishandles newlines in values,
6538# but we know of no workaround that is simple, portable, and efficient.
6539# So, don't put newlines in cache variables' values.
6540# Ultrix sh set writes to stderr and can't be redirected directly,
6541# and sets the high bit in the cache file unless we assign to the vars.
6542(set) 2>&1 |
fa3e4baf 6543 case `(ac_space=' '; set | grep ac_space) 2>&1` in
a16d3c04
KB
6544 *ac_space=\ *)
6545 # `set' does not quote correctly, so add quotes (double-quote substitution
6546 # turns \\\\ into \\, and sed turns \\ into \).
6547 sed -n \
6548 -e "s/'/'\\\\''/g" \
6549 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
6550 ;;
6551 *)
6552 # `set' quotes correctly as required by POSIX, so do not add quotes.
6553 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
6554 ;;
6555 esac >> confcache
6556if cmp -s $cache_file confcache; then
6557 :
6558else
6559 if test -w $cache_file; then
6560 echo "updating cache $cache_file"
6561 cat confcache > $cache_file
6562 else
6563 echo "not updating unwritable cache $cache_file"
6564 fi
6565fi
6566rm -f confcache
6567
6568
6569
6570TOOLKIT=
6571TOOLKIT_INCLUDE=
6572
6573GUIOBJS=
6574COMMONOBJS=
6575GENERICOBJS=
6576
6577GUI_TK_LIBRARY=
6578GUI_TK_LINK=
6579
6580WXGTK12=
6581
6582WXWINE=
6583
1c8515f9 6584PROGRAM_EXT=
a16d3c04
KB
6585
6586if test "$wxUSE_CYGWIN" = 1 || test "$wxUSE_MINGW" = 1 ; then
6587 if test "$cross_compiling" = "yes" ; then
6588 echo "configure: warning: Cross compiling --- skipping windows.h check" 1>&2
6589 else
6590 echo $ac_n "checking for Windows headers""... $ac_c" 1>&6
fa3e4baf 6591echo "configure:6592: checking for Windows headers" >&5
a16d3c04
KB
6592
6593ac_find_includes=
6594for ac_dir in $SEARCH_INCLUDE;
6595 do
6596 if test -f "$ac_dir/windows.h"; then
6597 ac_find_includes=$ac_dir
6598 break
6599 fi
6600 done
6601
6602 if test "$ac_find_includes" != "" ; then
6603 echo "$ac_t""found $ac_find_includes" 1>&6
6604 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE -I$ac_find_includes"
6605 else
6606 echo "$ac_t""no" 1>&6
6607 { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; }
1c8515f9 6608 fi
a16d3c04 6609 fi
1c8515f9 6610
a16d3c04
KB
6611 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS msw"
6612 LIBS="$LIBS -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lctl3d32 -lcrtdll -ladvapi32 -lwsock32"
6613
6614 TOOLKIT=MSW
1c8515f9 6615
a16d3c04
KB
6616 GUIOBJS=MSW_GUIOBJS
6617 GUIHEADERS=MSW_HEADERS
6618 COMMONOBJS=MSW_COMMONOBJS
6619 GENERICOBJS=MSW_GENERICOBJS
6620 UNIXOBJS=
6621 GUIDIST=MSW_DIST
6622 PROGRAM_EXT=.exe
6623fi
6624
6625if test "$wxUSE_GTK" = 1; then
6626
6627 if test x$gtk_config_exec_prefix != x ; then
6628 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
6629 if test x${GTK_CONFIG+set} != xset ; then
6630 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
6631 fi
6632 fi
6633 if test x$gtk_config_prefix != x ; then
6634 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
6635 if test x${GTK_CONFIG+set} != xset ; then
6636 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
6637 fi
6638 fi
6639
6640 # Extract the first word of "gtk-config", so it can be a program name with args.
6641set dummy gtk-config; ac_word=$2
6642echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
fa3e4baf 6643echo "configure:6644: checking for $ac_word" >&5
a16d3c04
KB
6644if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
6645 echo $ac_n "(cached) $ac_c" 1>&6
6646else
6647 case "$GTK_CONFIG" in
6648 /*)
6649 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
6650 ;;
fa3e4baf
KB
6651 ?:/*)
6652 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
6653 ;;
a16d3c04 6654 *)
fa3e4baf
KB
6655 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6656 ac_dummy="$PATH"
6657 for ac_dir in $ac_dummy; do
a16d3c04
KB
6658 test -z "$ac_dir" && ac_dir=.
6659 if test -f $ac_dir/$ac_word; then
6660 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
6661 break
6662 fi
6663 done
6664 IFS="$ac_save_ifs"
6665 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
6666 ;;
6667esac
6668fi
6669GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
6670if test -n "$GTK_CONFIG"; then
6671 echo "$ac_t""$GTK_CONFIG" 1>&6
6672else
6673 echo "$ac_t""no" 1>&6
6674fi
6675
6676 min_gtk_version=1.2.0
6677 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
fa3e4baf 6678echo "configure:6679: checking for GTK - version >= $min_gtk_version" >&5
a16d3c04
KB
6679 no_gtk=""
6680 if test "$GTK_CONFIG" != "no" ; then
6681 GTK_CFLAGS=`$GTK_CONFIG --cflags`
6682 GTK_LIBS=`$GTK_CONFIG --libs`
6683 ac_save_CFLAGS="$CFLAGS"
6684 ac_save_LIBS="$LIBS"
6685 CFLAGS="$CFLAGS $GTK_CFLAGS"
6686 LIBS="$LIBS $GTK_LIBS"
6687 if test "$cross_compiling" = yes; then
6688 echo $ac_n "cross compiling; assumed OK... $ac_c"
6689else
6690 cat > conftest.$ac_ext <<EOF
fa3e4baf 6691#line 6692 "configure"
a16d3c04
KB
6692#include "confdefs.h"
6693
6694#include <gtk/gtk.h>
6695#include <stdio.h>
6696
6697int
6698main ()
6699{
6700 int major, minor, micro;
6701
6702 if (sscanf("$min_gtk_version", "%d.%d.%d", &major, &minor, &micro) != 3) {
6703 printf("%s, bad version string\n", "$min_gtk_version");
6704 exit(1);
6705 }
6706
6707 if (gtk_minor_version == 1) return FALSE;
6708
6709 return !((gtk_major_version > major) ||
6710 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
6711 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)));
6712}
6713
6714EOF
fa3e4baf 6715if { (eval echo configure:6716: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
a16d3c04
KB
6716then
6717 :
6718else
6719 echo "configure: failed program was:" >&5
6720 cat conftest.$ac_ext >&5
6721 rm -fr conftest*
6722 no_gtk=yes
6723fi
6724rm -fr conftest*
6725fi
6726
6727 CFLAGS="$ac_save_CFLAGS"
6728 LIBS="$ac_save_LIBS"
6729 else
6730 no_gtk=yes
6731 fi
6732 if test "x$no_gtk" = x ; then
6733 echo "$ac_t""yes" 1>&6
6734 WXGTK12=1
6735 else
6736 echo "$ac_t""no" 1>&6
6737 GTK_CFLAGS=""
6738 GTK_LIBS=""
6739 :
6740 fi
6741
6742
6743
6744 if test "$WXGTK12" != 1; then
6745
6746 if test x$gtk_config_exec_prefix != x ; then
6747 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
6748 if test x${GTK_CONFIG+set} != xset ; then
6749 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
6750 fi
6751 fi
6752 if test x$gtk_config_prefix != x ; then
6753 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
6754 if test x${GTK_CONFIG+set} != xset ; then
6755 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
6756 fi
6757 fi
6758
6759 # Extract the first word of "gtk-config", so it can be a program name with args.
6760set dummy gtk-config; ac_word=$2
6761echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
fa3e4baf 6762echo "configure:6763: checking for $ac_word" >&5
a16d3c04
KB
6763if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
6764 echo $ac_n "(cached) $ac_c" 1>&6
6765else
6766 case "$GTK_CONFIG" in
6767 /*)
6768 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
6769 ;;
fa3e4baf
KB
6770 ?:/*)
6771 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
6772 ;;
a16d3c04 6773 *)
fa3e4baf
KB
6774 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6775 ac_dummy="$PATH"
6776 for ac_dir in $ac_dummy; do
a16d3c04
KB
6777 test -z "$ac_dir" && ac_dir=.
6778 if test -f $ac_dir/$ac_word; then
6779 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
6780 break
6781 fi
6782 done
6783 IFS="$ac_save_ifs"
6784 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
6785 ;;
6786esac
6787fi
6788GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
6789if test -n "$GTK_CONFIG"; then
6790 echo "$ac_t""$GTK_CONFIG" 1>&6
6791else
6792 echo "$ac_t""no" 1>&6
6793fi
6794
6795 min_gtk_version=1.0.0
6796 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
fa3e4baf 6797echo "configure:6798: checking for GTK - version >= $min_gtk_version" >&5
a16d3c04
KB
6798 no_gtk=""
6799 if test "$GTK_CONFIG" != "no" ; then
6800 GTK_CFLAGS=`$GTK_CONFIG --cflags`
6801 GTK_LIBS=`$GTK_CONFIG --libs`
6802 ac_save_CFLAGS="$CFLAGS"
6803 ac_save_LIBS="$LIBS"
6804 CFLAGS="$CFLAGS $GTK_CFLAGS"
6805 LIBS="$LIBS $GTK_LIBS"
6806 if test "$cross_compiling" = yes; then
6807 echo $ac_n "cross compiling; assumed OK... $ac_c"
6808else
6809 cat > conftest.$ac_ext <<EOF
fa3e4baf 6810#line 6811 "configure"
a16d3c04
KB
6811#include "confdefs.h"
6812
6813#include <gtk/gtk.h>
6814#include <stdio.h>
6815
6816int
6817main ()
6818{
6819 int major, minor, micro;
6820
6821 if (sscanf("$min_gtk_version", "%d.%d.%d", &major, &minor, &micro) != 3) {
6822 printf("%s, bad version string\n", "$min_gtk_version");
6823 exit(1);
6824 }
6825
6826 if (gtk_minor_version == 1) return FALSE;
6827
6828 return !((gtk_major_version > major) ||
6829 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
6830 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)));
6831}
6832
6833EOF
fa3e4baf 6834if { (eval echo configure:6835: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
a16d3c04
KB
6835then
6836 :
6837else
6838 echo "configure: failed program was:" >&5
6839 cat conftest.$ac_ext >&5
6840 rm -fr conftest*
6841 no_gtk=yes
6842fi
6843rm -fr conftest*
6844fi
6845
6846 CFLAGS="$ac_save_CFLAGS"
6847 LIBS="$ac_save_LIBS"
6848 else
6849 no_gtk=yes
6850 fi
6851 if test "x$no_gtk" = x ; then
6852 echo "$ac_t""yes" 1>&6
6853 :
6854 else
6855 echo "$ac_t""no" 1>&6
6856 GTK_CFLAGS=""
6857 GTK_LIBS=""
6858 { echo "configure: error: Is gtk-config in path and GTK+ is version 1.2.X or 1.0.X?" 1>&2; exit 1; }
6859 fi
6860
6861
6862
6863 fi
6864
6865 TOOLKIT_INCLUDE="$GTK_CFLAGS"
6866 GUI_TK_LIBRARY="$GTK_LIBS -ldl"
6867 TOOLKIT=GTK
1c8515f9 6868
a16d3c04
KB
6869 GUIHEADERS=GTK_HEADERS
6870 GUIOBJS=GTK_GUIOBJS
6871 COMMONOBJS=GTK_COMMONOBJS
6872 GENERICOBJS=GTK_GENERICOBJS
6873 GUIDEPS=GTK_GUIDEPS
6874 COMMONDEPS=GTK_COMMONDEPS
6875 GENERICDEPS=GTK_GENERICDEPS
6876 UNIXOBJS=UNIXOBJS
6877 GUIDIST=GTK_DIST
6878fi
6879
6880if test "$wxUSE_WINE" = 1; then
6881 echo $ac_n "checking for WINE includes""... $ac_c" 1>&6
fa3e4baf 6882echo "configure:6883: checking for WINE includes" >&5
a16d3c04
KB
6883
6884ac_find_includes=
6885for ac_dir in $SEARCH_INCLUDE;
6886 do
6887 if test -f "$ac_dir/windows.h"; then
6888 ac_find_includes=$ac_dir
6889 break
6890 fi
6891 done
6892
6893 if test "$ac_find_includes" != "" ; then
6894 echo "$ac_t""found $ac_find_includes" 1>&6
6895 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE -I$ac_find_includes"
6896 else
6897 echo "$ac_t""no" 1>&6
6898 { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; }
6899 fi
6900
6901 XPM_LINK=""
6902 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
fa3e4baf 6903echo "configure:6904: checking for Xpm library" >&5
a16d3c04
KB
6904
6905ac_find_libraries=
6906for ac_dir in $SEARCH_LIB;
6907 do
6908 for ac_extension in a so sl; do
6909 if test -f "$ac_dir/libXpm.$ac_extension"; then
6910 ac_find_libraries=$ac_dir
6911 break 2
6912 fi
6913 done
6914 done
6915
6916 if test "$ac_find_libraries" != "" ; then
6917 GUI_TK_LIBRARY="-L$ac_find_libraries"
6918 XPM_LINK="-lXpm"
6919 cat >> confdefs.h <<\EOF
6920#define wxHAVE_LIB_XPM 1
6921EOF
6922
6923 echo "$ac_t""found at $ac_find_libraries" 1>&6
6924 else
6925 echo "$ac_t""no" 1>&6
6926 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
6927 fi
1c8515f9 6928
a16d3c04
KB
6929 MESA_LINK=""
6930 echo $ac_n "checking for Mesa library""... $ac_c" 1>&6
fa3e4baf 6931echo "configure:6932: checking for Mesa library" >&5
a16d3c04
KB
6932
6933ac_find_libraries=
6934for ac_dir in $SEARCH_LIB;
6935 do
6936 for ac_extension in a so sl; do
6937 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
6938 ac_find_libraries=$ac_dir
6939 break 2
6940 fi
6941 done
6942 done
6943
6944 if test "$ac_find_libraries" != "" ; then
6945 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -L$ac_find_libraries"
6946 MESA_LINK="-lMesaGL"
6947 echo "$ac_t""found at $ac_find_libraries" 1>&6
6948 else
6949 { echo "configure: error: no" 1>&2; exit 1; }
6950 fi
6951
6952 GUI_TK_LINK="-lwine $MESA_LINK $XPM_LINK -lXxf86dga -lXxf86vm -lSM -lICE -lXext -lXmu -lX11 -lncurses -ldl -lm"
6953 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $GUI_TK_LINK"
6954 WXWINE=1
6955 TOOLKIT=MSW
1c8515f9 6956
a16d3c04
KB
6957 GUIHEADERS=MSW_HEADERS
6958 GUIOBJS=MSW_GUIOBJS
6959 COMMONOBJS=MSW_COMMONOBJS
6960 GENERICOBJS=MSW_GENERICOBJS
6961 GUIDEPS=MSW_GUIDEPS
6962 COMMONDEPS=MSW_COMMONDEPS
6963 GENERICDEPS=MSW_GENERICDEPS
6964 UNIXOBJS=UNIXOBJS
6965 GUIDIST=MSW_DIST
6966fi
6967
6968if test "$wxUSE_MOTIF" = 1; then
6969 # If we find X, set shell vars x_includes and x_libraries to the
6970# paths, otherwise set no_x=yes.
6971# Uses ac_ vars as temps to allow command line to override cache and checks.
6972# --without-x overrides everything else, but does not touch the cache.
6973echo $ac_n "checking for X""... $ac_c" 1>&6
fa3e4baf 6974echo "configure:6975: checking for X" >&5
a16d3c04
KB
6975
6976# Check whether --with-x or --without-x was given.
6977if test "${with_x+set}" = set; then
6978 withval="$with_x"
6979 :
6980fi
6981
6982# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
6983if test "x$with_x" = xno; then
6984 # The user explicitly disabled X.
6985 have_x=disabled
6986else
6987 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
6988 # Both variables are already set.
6989 have_x=yes
6990 else
6991if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
6992 echo $ac_n "(cached) $ac_c" 1>&6
6993else
6994 # One or both of the vars are not set, and there is no cached value.
6995ac_x_includes=NO ac_x_libraries=NO
6996rm -fr conftestdir
6997if mkdir conftestdir; then
6998 cd conftestdir
6999 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
7000 cat > Imakefile <<'EOF'
7001acfindx:
7002 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
7003EOF
7004 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
7005 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7006 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
7007 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
7008 for ac_extension in a so sl; do
7009 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
7010 test -f $ac_im_libdir/libX11.$ac_extension; then
7011 ac_im_usrlibdir=$ac_im_libdir; break
7012 fi
7013 done
7014 # Screen out bogus values from the imake configuration. They are
7015 # bogus both because they are the default anyway, and because
7016 # using them would break gcc on systems where it needs fixed includes.
7017 case "$ac_im_incroot" in
7018 /usr/include) ;;
7019 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
7020 esac
7021 case "$ac_im_usrlibdir" in
7022 /usr/lib | /lib) ;;
7023 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
7024 esac
7025 fi
7026 cd ..
7027 rm -fr conftestdir
7028fi
7029
7030if test "$ac_x_includes" = NO; then
7031 # Guess where to find include files, by looking for this one X11 .h file.
7032 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
7033
7034 # First, try using that file with no special directory specified.
7035cat > conftest.$ac_ext <<EOF
fa3e4baf 7036#line 7037 "configure"
a16d3c04
KB
7037#include "confdefs.h"
7038#include <$x_direct_test_include>
7039EOF
7040ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
fa3e4baf
KB
7041{ (eval echo configure:7042: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7042ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
a16d3c04
KB
7043if test -z "$ac_err"; then
7044 rm -rf conftest*
7045 # We can compile using X headers with no special include directory.
7046ac_x_includes=
7047else
7048 echo "$ac_err" >&5
7049 echo "configure: failed program was:" >&5
7050 cat conftest.$ac_ext >&5
7051 rm -rf conftest*
7052 # Look for the header file in a standard set of common directories.
7053# Check X11 before X11Rn because it is often a symlink to the current release.
7054 for ac_dir in \
7055 /usr/X11/include \
7056 /usr/X11R6/include \
7057 /usr/X11R5/include \
7058 /usr/X11R4/include \
7059 \
7060 /usr/include/X11 \
7061 /usr/include/X11R6 \
7062 /usr/include/X11R5 \
7063 /usr/include/X11R4 \
7064 \
7065 /usr/local/X11/include \
7066 /usr/local/X11R6/include \
7067 /usr/local/X11R5/include \
7068 /usr/local/X11R4/include \
7069 \
7070 /usr/local/include/X11 \
7071 /usr/local/include/X11R6 \
7072 /usr/local/include/X11R5 \
7073 /usr/local/include/X11R4 \
7074 \
7075 /usr/X386/include \
7076 /usr/x386/include \
7077 /usr/XFree86/include/X11 \
7078 \
7079 /usr/include \
7080 /usr/local/include \
7081 /usr/unsupported/include \
7082 /usr/athena/include \
7083 /usr/local/x11r5/include \
7084 /usr/lpp/Xamples/include \
7085 \
7086 /usr/openwin/include \
7087 /usr/openwin/share/include \
7088 ; \
7089 do
7090 if test -r "$ac_dir/$x_direct_test_include"; then
7091 ac_x_includes=$ac_dir
7092 break
7093 fi
7094 done
7095fi
7096rm -f conftest*
7097fi # $ac_x_includes = NO
7098
7099if test "$ac_x_libraries" = NO; then
7100 # Check for the libraries.
7101
7102 test -z "$x_direct_test_library" && x_direct_test_library=Xt
7103 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
7104
7105 # See if we find them without any special options.
7106 # Don't add to $LIBS permanently.
7107 ac_save_LIBS="$LIBS"
7108 LIBS="-l$x_direct_test_library $LIBS"
7109cat > conftest.$ac_ext <<EOF
fa3e4baf 7110#line 7111 "configure"
a16d3c04
KB
7111#include "confdefs.h"
7112
7113int main() {
7114${x_direct_test_function}()
7115; return 0; }
7116EOF
fa3e4baf 7117if { (eval echo configure:7118: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a16d3c04
KB
7118 rm -rf conftest*
7119 LIBS="$ac_save_LIBS"
7120# We can link X programs with no special library path.
7121ac_x_libraries=
7122else
7123 echo "configure: failed program was:" >&5
7124 cat conftest.$ac_ext >&5
7125 rm -rf conftest*
7126 LIBS="$ac_save_LIBS"
7127# First see if replacing the include by lib works.
7128# Check X11 before X11Rn because it is often a symlink to the current release.
7129for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
7130 /usr/X11/lib \
7131 /usr/X11R6/lib \
7132 /usr/X11R5/lib \
7133 /usr/X11R4/lib \
7134 \
7135 /usr/lib/X11 \
7136 /usr/lib/X11R6 \
7137 /usr/lib/X11R5 \
7138 /usr/lib/X11R4 \
7139 \
7140 /usr/local/X11/lib \
7141 /usr/local/X11R6/lib \
7142 /usr/local/X11R5/lib \
7143 /usr/local/X11R4/lib \
7144 \
7145 /usr/local/lib/X11 \
7146 /usr/local/lib/X11R6 \
7147 /usr/local/lib/X11R5 \
7148 /usr/local/lib/X11R4 \
7149 \
7150 /usr/X386/lib \
7151 /usr/x386/lib \
7152 /usr/XFree86/lib/X11 \
7153 \
7154 /usr/lib \
7155 /usr/local/lib \
7156 /usr/unsupported/lib \
7157 /usr/athena/lib \
7158 /usr/local/x11r5/lib \
7159 /usr/lpp/Xamples/lib \
7160 /lib/usr/lib/X11 \
7161 \
7162 /usr/openwin/lib \
7163 /usr/openwin/share/lib \
7164 ; \
7165do
7166 for ac_extension in a so sl; do
7167 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
7168 ac_x_libraries=$ac_dir
7169 break 2
7170 fi
7171 done
7172done
7173fi
7174rm -f conftest*
7175fi # $ac_x_libraries = NO
7176
7177if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
7178 # Didn't find X anywhere. Cache the known absence of X.
7179 ac_cv_have_x="have_x=no"
7180else
7181 # Record where we found X for the cache.
7182 ac_cv_have_x="have_x=yes \
7183 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
7184fi
7185fi
7186 fi
7187 eval "$ac_cv_have_x"
7188fi # $with_x != no
7189
7190if test "$have_x" != yes; then
7191 echo "$ac_t""$have_x" 1>&6
7192 no_x=yes
7193else
7194 # If each of the values was on the command line, it overrides each guess.
7195 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
7196 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
7197 # Update the cache value to reflect the command line values.
7198 ac_cv_have_x="have_x=yes \
7199 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
7200 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
7201fi
7202
7203if test "$no_x" = yes; then
7204 # Not all programs may use this symbol, but it does not hurt to define it.
7205 cat >> confdefs.h <<\EOF
7206#define X_DISPLAY_MISSING 1
7207EOF
7208
7209 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
7210else
7211 if test -n "$x_includes"; then
7212 X_CFLAGS="$X_CFLAGS -I$x_includes"
7213 fi
7214
7215 # It would also be nice to do this for all -L options, not just this one.
7216 if test -n "$x_libraries"; then
7217 X_LIBS="$X_LIBS -L$x_libraries"
7218 # For Solaris; some versions of Sun CC require a space after -R and
7219 # others require no space. Words are not sufficient . . . .
7220 case "`(uname -sr) 2>/dev/null`" in
7221 "SunOS 5"*)
7222 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
fa3e4baf 7223echo "configure:7224: checking whether -R must be followed by a space" >&5
a16d3c04
KB
7224 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
7225 cat > conftest.$ac_ext <<EOF
fa3e4baf 7226#line 7227 "configure"
a16d3c04
KB
7227#include "confdefs.h"
7228
7229int main() {
7230
7231; return 0; }
7232EOF
fa3e4baf 7233if { (eval echo configure:7234: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a16d3c04
KB
7234 rm -rf conftest*
7235 ac_R_nospace=yes
7236else
7237 echo "configure: failed program was:" >&5
7238 cat conftest.$ac_ext >&5
7239 rm -rf conftest*
7240 ac_R_nospace=no
7241fi
7242rm -f conftest*
7243 if test $ac_R_nospace = yes; then
7244 echo "$ac_t""no" 1>&6
7245 X_LIBS="$X_LIBS -R$x_libraries"
7246 else
7247 LIBS="$ac_xsave_LIBS -R $x_libraries"
7248 cat > conftest.$ac_ext <<EOF
fa3e4baf 7249#line 7250 "configure"
a16d3c04
KB
7250#include "confdefs.h"
7251
7252int main() {
7253
7254; return 0; }
7255EOF
fa3e4baf 7256if { (eval echo configure:7257: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a16d3c04
KB
7257 rm -rf conftest*
7258 ac_R_space=yes
7259else
7260 echo "configure: failed program was:" >&5
7261 cat conftest.$ac_ext >&5
7262 rm -rf conftest*
7263 ac_R_space=no
7264fi
7265rm -f conftest*
7266 if test $ac_R_space = yes; then
7267 echo "$ac_t""yes" 1>&6
7268 X_LIBS="$X_LIBS -R $x_libraries"
7269 else
7270 echo "$ac_t""neither works" 1>&6
7271 fi
7272 fi
7273 LIBS="$ac_xsave_LIBS"
7274 esac
7275 fi
7276
7277 # Check for system-dependent libraries X programs must link with.
7278 # Do this before checking for the system-independent R6 libraries
7279 # (-lICE), since we may need -lsocket or whatever for X linking.
7280
7281 if test "$ISC" = yes; then
7282 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
7283 else
7284 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
7285 # libraries were built with DECnet support. And karl@cs.umb.edu says
7286 # the Alpha needs dnet_stub (dnet does not exist).
7287 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
fa3e4baf 7288echo "configure:7289: checking for dnet_ntoa in -ldnet" >&5
a16d3c04
KB
7289ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
7290if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7291 echo $ac_n "(cached) $ac_c" 1>&6
7292else
7293 ac_save_LIBS="$LIBS"
7294LIBS="-ldnet $LIBS"
7295cat > conftest.$ac_ext <<EOF
fa3e4baf 7296#line 7297 "configure"
a16d3c04
KB
7297#include "confdefs.h"
7298/* Override any gcc2 internal prototype to avoid an error. */
7299/* We use char because int might match the return type of a gcc2
7300 builtin and then its argument prototype would still apply. */
7301char dnet_ntoa();
7302
7303int main() {
7304dnet_ntoa()
7305; return 0; }
7306EOF
fa3e4baf 7307if { (eval echo configure:7308: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a16d3c04
KB
7308 rm -rf conftest*
7309 eval "ac_cv_lib_$ac_lib_var=yes"
7310else
7311 echo "configure: failed program was:" >&5
7312 cat conftest.$ac_ext >&5
7313 rm -rf conftest*
7314 eval "ac_cv_lib_$ac_lib_var=no"
7315fi
7316rm -f conftest*
7317LIBS="$ac_save_LIBS"
7318
7319fi
7320if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7321 echo "$ac_t""yes" 1>&6
7322 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
7323else
7324 echo "$ac_t""no" 1>&6
7325fi
7326
7327 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
7328 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
fa3e4baf 7329echo "configure:7330: checking for dnet_ntoa in -ldnet_stub" >&5
a16d3c04
KB
7330ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
7331if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7332 echo $ac_n "(cached) $ac_c" 1>&6
7333else
7334 ac_save_LIBS="$LIBS"
7335LIBS="-ldnet_stub $LIBS"
7336cat > conftest.$ac_ext <<EOF
fa3e4baf 7337#line 7338 "configure"
a16d3c04
KB
7338#include "confdefs.h"
7339/* Override any gcc2 internal prototype to avoid an error. */
7340/* We use char because int might match the return type of a gcc2
7341 builtin and then its argument prototype would still apply. */
7342char dnet_ntoa();
7343
7344int main() {
7345dnet_ntoa()
7346; return 0; }
7347EOF
fa3e4baf 7348if { (eval echo configure:7349: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a16d3c04
KB
7349 rm -rf conftest*
7350 eval "ac_cv_lib_$ac_lib_var=yes"
7351else
7352 echo "configure: failed program was:" >&5
7353 cat conftest.$ac_ext >&5
7354 rm -rf conftest*
7355 eval "ac_cv_lib_$ac_lib_var=no"
7356fi
7357rm -f conftest*
7358LIBS="$ac_save_LIBS"
7359
7360fi
7361if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7362 echo "$ac_t""yes" 1>&6
7363 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
7364else
7365 echo "$ac_t""no" 1>&6
7366fi
7367
7368 fi
7369
7370 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
7371 # to get the SysV transport functions.
7372 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
7373 # needs -lnsl.
7374 # The nsl library prevents programs from opening the X display
7375 # on Irix 5.2, according to dickey@clark.net.
7376 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
fa3e4baf 7377echo "configure:7378: checking for gethostbyname" >&5
a16d3c04
KB
7378if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
7379 echo $ac_n "(cached) $ac_c" 1>&6
7380else
7381 cat > conftest.$ac_ext <<EOF
fa3e4baf 7382#line 7383 "configure"
a16d3c04
KB
7383#include "confdefs.h"
7384/* System header to define __stub macros and hopefully few prototypes,
7385 which can conflict with char gethostbyname(); below. */
7386#include <assert.h>
7387/* Override any gcc2 internal prototype to avoid an error. */
7388/* We use char because int might match the return type of a gcc2
7389 builtin and then its argument prototype would still apply. */
7390char gethostbyname();
7391
7392int main() {
7393
7394/* The GNU C library defines this for functions which it implements
7395 to always fail with ENOSYS. Some functions are actually named
7396 something starting with __ and the normal name is an alias. */
7397#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
7398choke me
7399#else
7400gethostbyname();
7401#endif
7402
7403; return 0; }
7404EOF
fa3e4baf 7405if { (eval echo configure:7406: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a16d3c04
KB
7406 rm -rf conftest*
7407 eval "ac_cv_func_gethostbyname=yes"
7408else
7409 echo "configure: failed program was:" >&5
7410 cat conftest.$ac_ext >&5
7411 rm -rf conftest*
7412 eval "ac_cv_func_gethostbyname=no"
7413fi
7414rm -f conftest*
7415fi
7416
7417if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
7418 echo "$ac_t""yes" 1>&6
7419 :
7420else
7421 echo "$ac_t""no" 1>&6
7422fi
7423
7424 if test $ac_cv_func_gethostbyname = no; then
7425 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
fa3e4baf 7426echo "configure:7427: checking for gethostbyname in -lnsl" >&5
a16d3c04
KB
7427ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
7428if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7429 echo $ac_n "(cached) $ac_c" 1>&6
7430else
7431 ac_save_LIBS="$LIBS"
7432LIBS="-lnsl $LIBS"
7433cat > conftest.$ac_ext <<EOF
fa3e4baf 7434#line 7435 "configure"
a16d3c04
KB
7435#include "confdefs.h"
7436/* Override any gcc2 internal prototype to avoid an error. */
7437/* We use char because int might match the return type of a gcc2
7438 builtin and then its argument prototype would still apply. */
7439char gethostbyname();
7440
7441int main() {
7442gethostbyname()
7443; return 0; }
7444EOF
fa3e4baf 7445if { (eval echo configure:7446: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a16d3c04
KB
7446 rm -rf conftest*
7447 eval "ac_cv_lib_$ac_lib_var=yes"
7448else
7449 echo "configure: failed program was:" >&5
7450 cat conftest.$ac_ext >&5
7451 rm -rf conftest*
7452 eval "ac_cv_lib_$ac_lib_var=no"
7453fi
7454rm -f conftest*
7455LIBS="$ac_save_LIBS"
7456
7457fi
7458if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7459 echo "$ac_t""yes" 1>&6
7460 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
7461else
7462 echo "$ac_t""no" 1>&6
7463fi
7464
7465 fi
7466
7467 # lieder@skyler.mavd.honeywell.com says without -lsocket,
7468 # socket/setsockopt and other routines are undefined under SCO ODT
7469 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
7470 # on later versions), says simon@lia.di.epfl.ch: it contains
7471 # gethostby* variants that don't use the nameserver (or something).
7472 # -lsocket must be given before -lnsl if both are needed.
7473 # We assume that if connect needs -lnsl, so does gethostbyname.
7474 echo $ac_n "checking for connect""... $ac_c" 1>&6
fa3e4baf 7475echo "configure:7476: checking for connect" >&5
a16d3c04
KB
7476if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
7477 echo $ac_n "(cached) $ac_c" 1>&6
7478else
7479 cat > conftest.$ac_ext <<EOF
fa3e4baf 7480#line 7481 "configure"
a16d3c04
KB
7481#include "confdefs.h"
7482/* System header to define __stub macros and hopefully few prototypes,
7483 which can conflict with char connect(); below. */
7484#include <assert.h>
7485/* Override any gcc2 internal prototype to avoid an error. */
7486/* We use char because int might match the return type of a gcc2
7487 builtin and then its argument prototype would still apply. */
7488char connect();
7489
7490int main() {
7491
7492/* The GNU C library defines this for functions which it implements
7493 to always fail with ENOSYS. Some functions are actually named
7494 something starting with __ and the normal name is an alias. */
7495#if defined (__stub_connect) || defined (__stub___connect)
7496choke me
7497#else
7498connect();
7499#endif
7500
7501; return 0; }
7502EOF
fa3e4baf 7503if { (eval echo configure:7504: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a16d3c04
KB
7504 rm -rf conftest*
7505 eval "ac_cv_func_connect=yes"
7506else
7507 echo "configure: failed program was:" >&5
7508 cat conftest.$ac_ext >&5
7509 rm -rf conftest*
7510 eval "ac_cv_func_connect=no"
7511fi
7512rm -f conftest*
7513fi
7514
7515if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
7516 echo "$ac_t""yes" 1>&6
7517 :
7518else
7519 echo "$ac_t""no" 1>&6
7520fi
7521
7522 if test $ac_cv_func_connect = no; then
7523 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
fa3e4baf 7524echo "configure:7525: checking for connect in -lsocket" >&5
a16d3c04
KB
7525ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
7526if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7527 echo $ac_n "(cached) $ac_c" 1>&6
7528else
7529 ac_save_LIBS="$LIBS"
7530LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
7531cat > conftest.$ac_ext <<EOF
fa3e4baf 7532#line 7533 "configure"
a16d3c04
KB
7533#include "confdefs.h"
7534/* Override any gcc2 internal prototype to avoid an error. */
7535/* We use char because int might match the return type of a gcc2
7536 builtin and then its argument prototype would still apply. */
7537char connect();
7538
7539int main() {
7540connect()
7541; return 0; }
7542EOF
fa3e4baf 7543if { (eval echo configure:7544: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a16d3c04
KB
7544 rm -rf conftest*
7545 eval "ac_cv_lib_$ac_lib_var=yes"
7546else
7547 echo "configure: failed program was:" >&5
7548 cat conftest.$ac_ext >&5
7549 rm -rf conftest*
7550 eval "ac_cv_lib_$ac_lib_var=no"
7551fi
7552rm -f conftest*
7553LIBS="$ac_save_LIBS"
7554
7555fi
7556if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7557 echo "$ac_t""yes" 1>&6
7558 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
7559else
7560 echo "$ac_t""no" 1>&6
7561fi
7562
7563 fi
7564
7565 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
7566 echo $ac_n "checking for remove""... $ac_c" 1>&6
fa3e4baf 7567echo "configure:7568: checking for remove" >&5
a16d3c04
KB
7568if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
7569 echo $ac_n "(cached) $ac_c" 1>&6
7570else
7571 cat > conftest.$ac_ext <<EOF
fa3e4baf 7572#line 7573 "configure"
a16d3c04
KB
7573#include "confdefs.h"
7574/* System header to define __stub macros and hopefully few prototypes,
7575 which can conflict with char remove(); below. */
7576#include <assert.h>
7577/* Override any gcc2 internal prototype to avoid an error. */
7578/* We use char because int might match the return type of a gcc2
7579 builtin and then its argument prototype would still apply. */
7580char remove();
7581
7582int main() {
7583
7584/* The GNU C library defines this for functions which it implements
7585 to always fail with ENOSYS. Some functions are actually named
7586 something starting with __ and the normal name is an alias. */
7587#if defined (__stub_remove) || defined (__stub___remove)
7588choke me
7589#else
7590remove();
7591#endif
7592
7593; return 0; }
7594EOF
fa3e4baf 7595if { (eval echo configure:7596: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a16d3c04
KB
7596 rm -rf conftest*
7597 eval "ac_cv_func_remove=yes"
7598else
7599 echo "configure: failed program was:" >&5
7600 cat conftest.$ac_ext >&5
7601 rm -rf conftest*
7602 eval "ac_cv_func_remove=no"
7603fi
7604rm -f conftest*
7605fi
7606
7607if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
7608 echo "$ac_t""yes" 1>&6
7609 :
7610else
7611 echo "$ac_t""no" 1>&6
7612fi
7613
7614 if test $ac_cv_func_remove = no; then
7615 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
fa3e4baf 7616echo "configure:7617: checking for remove in -lposix" >&5
a16d3c04
KB
7617ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
7618if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7619 echo $ac_n "(cached) $ac_c" 1>&6
7620else
7621 ac_save_LIBS="$LIBS"
7622LIBS="-lposix $LIBS"
7623cat > conftest.$ac_ext <<EOF
fa3e4baf 7624#line 7625 "configure"
a16d3c04
KB
7625#include "confdefs.h"
7626/* Override any gcc2 internal prototype to avoid an error. */
7627/* We use char because int might match the return type of a gcc2
7628 builtin and then its argument prototype would still apply. */
7629char remove();
7630
7631int main() {
7632remove()
7633; return 0; }
7634EOF
fa3e4baf 7635if { (eval echo configure:7636: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a16d3c04
KB
7636 rm -rf conftest*
7637 eval "ac_cv_lib_$ac_lib_var=yes"
7638else
7639 echo "configure: failed program was:" >&5
7640 cat conftest.$ac_ext >&5
7641 rm -rf conftest*
7642 eval "ac_cv_lib_$ac_lib_var=no"
7643fi
7644rm -f conftest*
7645LIBS="$ac_save_LIBS"
7646
7647fi
7648if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7649 echo "$ac_t""yes" 1>&6
7650 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
7651else
7652 echo "$ac_t""no" 1>&6
7653fi
7654
7655 fi
7656
7657 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
7658 echo $ac_n "checking for shmat""... $ac_c" 1>&6
fa3e4baf 7659echo "configure:7660: checking for shmat" >&5
a16d3c04
KB
7660if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
7661 echo $ac_n "(cached) $ac_c" 1>&6
7662else
7663 cat > conftest.$ac_ext <<EOF
fa3e4baf 7664#line 7665 "configure"
a16d3c04
KB
7665#include "confdefs.h"
7666/* System header to define __stub macros and hopefully few prototypes,
7667 which can conflict with char shmat(); below. */
7668#include <assert.h>
7669/* Override any gcc2 internal prototype to avoid an error. */
7670/* We use char because int might match the return type of a gcc2
7671 builtin and then its argument prototype would still apply. */
7672char shmat();
7673
7674int main() {
7675
7676/* The GNU C library defines this for functions which it implements
7677 to always fail with ENOSYS. Some functions are actually named
7678 something starting with __ and the normal name is an alias. */
7679#if defined (__stub_shmat) || defined (__stub___shmat)
7680choke me
7681#else
7682shmat();
7683#endif
7684
7685; return 0; }
7686EOF
fa3e4baf 7687if { (eval echo configure:7688: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a16d3c04
KB
7688 rm -rf conftest*
7689 eval "ac_cv_func_shmat=yes"
7690else
7691 echo "configure: failed program was:" >&5
7692 cat conftest.$ac_ext >&5
7693 rm -rf conftest*
7694 eval "ac_cv_func_shmat=no"
7695fi
7696rm -f conftest*
7697fi
7698
7699if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
7700 echo "$ac_t""yes" 1>&6
7701 :
7702else
7703 echo "$ac_t""no" 1>&6
7704fi
7705
7706 if test $ac_cv_func_shmat = no; then
7707 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
fa3e4baf 7708echo "configure:7709: checking for shmat in -lipc" >&5
a16d3c04
KB
7709ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
7710if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7711 echo $ac_n "(cached) $ac_c" 1>&6
7712else
7713 ac_save_LIBS="$LIBS"
7714LIBS="-lipc $LIBS"
7715cat > conftest.$ac_ext <<EOF
fa3e4baf 7716#line 7717 "configure"
a16d3c04
KB
7717#include "confdefs.h"
7718/* Override any gcc2 internal prototype to avoid an error. */
7719/* We use char because int might match the return type of a gcc2
7720 builtin and then its argument prototype would still apply. */
7721char shmat();
7722
7723int main() {
7724shmat()
7725; return 0; }
7726EOF
fa3e4baf 7727if { (eval echo configure:7728: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a16d3c04
KB
7728 rm -rf conftest*
7729 eval "ac_cv_lib_$ac_lib_var=yes"
7730else
7731 echo "configure: failed program was:" >&5
7732 cat conftest.$ac_ext >&5
7733 rm -rf conftest*
7734 eval "ac_cv_lib_$ac_lib_var=no"
7735fi
7736rm -f conftest*
7737LIBS="$ac_save_LIBS"
7738
7739fi
7740if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7741 echo "$ac_t""yes" 1>&6
7742 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
7743else
7744 echo "$ac_t""no" 1>&6
7745fi
7746
7747 fi
7748 fi
7749
7750 # Check for libraries that X11R6 Xt/Xaw programs need.
7751 ac_save_LDFLAGS="$LDFLAGS"
7752 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
7753 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
7754 # check for ICE first), but we must link in the order -lSM -lICE or
7755 # we get undefined symbols. So assume we have SM if we have ICE.
7756 # These have to be linked with before -lX11, unlike the other
7757 # libraries we check for below, so use a different variable.
7758 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
7759 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
fa3e4baf 7760echo "configure:7761: checking for IceConnectionNumber in -lICE" >&5
a16d3c04
KB
7761ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
7762if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7763 echo $ac_n "(cached) $ac_c" 1>&6
7764else
7765 ac_save_LIBS="$LIBS"
fa3e4baf 7766LIBS="-lICE $X_EXTRA_LIBS $LIBS"
a16d3c04 7767cat > conftest.$ac_ext <<EOF
fa3e4baf 7768#line 7769 "configure"
a16d3c04
KB
7769#include "confdefs.h"
7770/* Override any gcc2 internal prototype to avoid an error. */
7771/* We use char because int might match the return type of a gcc2
7772 builtin and then its argument prototype would still apply. */
7773char IceConnectionNumber();
7774
7775int main() {
7776IceConnectionNumber()
7777; return 0; }
7778EOF
fa3e4baf 7779if { (eval echo configure:7780: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a16d3c04
KB
7780 rm -rf conftest*
7781 eval "ac_cv_lib_$ac_lib_var=yes"
7782else
7783 echo "configure: failed program was:" >&5
7784 cat conftest.$ac_ext >&5
7785 rm -rf conftest*
7786 eval "ac_cv_lib_$ac_lib_var=no"
7787fi
7788rm -f conftest*
7789LIBS="$ac_save_LIBS"
7790
7791fi
7792if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7793 echo "$ac_t""yes" 1>&6
7794 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
7795else
7796 echo "$ac_t""no" 1>&6
7797fi
7798
7799 LDFLAGS="$ac_save_LDFLAGS"
7800
7801fi
7802
7803
7804 if test "$no_x" = "yes"; then
7805 { echo "configure: error: X11 libraries not found" 1>&2; exit 1; }
7806 fi
7807
7808 TOOLKIT_INCLUDE="$X_CFLAGS"
7809 GUI_TK_LIBRARY="$X_LIBS"
7810
7811 echo $ac_n "checking for Motif/Lesstif includes""... $ac_c" 1>&6
fa3e4baf 7812echo "configure:7813: checking for Motif/Lesstif includes" >&5
a16d3c04
KB
7813
7814ac_find_includes=
7815for ac_dir in $SEARCH_INCLUDE;
7816 do
7817 if test -f "$ac_dir/Xm/Xm.h"; then
7818 ac_find_includes=$ac_dir
7819 break
7820 fi
7821 done
7822
7823 if test "$ac_find_includes" != "" ; then
7824 echo "$ac_t""found $ac_find_includes" 1>&6
7825 else
7826 echo "$ac_t""no" 1>&6
7827 { echo "configure: error: please set CFLAGS to contain the location of Xm/Xm.h" 1>&2; exit 1; }
7828 fi
7829
7830 echo $ac_n "checking for Motif/Lesstif library""... $ac_c" 1>&6
fa3e4baf 7831echo "configure:7832: checking for Motif/Lesstif library" >&5
a16d3c04
KB
7832
7833ac_find_libraries=
7834for ac_dir in $SEARCH_LIB;
7835 do
7836 for ac_extension in a so sl; do
7837 if test -f "$ac_dir/libXm.$ac_extension"; then
7838 ac_find_libraries=$ac_dir
7839 break 2
7840 fi
7841 done
7842 done
7843
7844 if test "$ac_find_libraries" != "" ; then
7845
7846 ac_path_to_include=$ac_find_includes
7847 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
7848 result=$?
7849 if test $result = 0; then
7850 ac_path_to_include=""
7851 else
7852 ac_path_to_include="-I$ac_find_includes"
7853 fi
7854
7855
7856 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
7857 result=$?
7858 if test $result = 0; then
7859 ac_path_to_link=""
7860 else
7861 ac_path_to_link="-L$ac_find_libraries"
7862 fi
7863
7864
7865 CHECK_LINK="$GUI_TK_LIBRARY $ac_path_to_link"
7866 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE $ac_path_to_include"
7867 echo "$ac_t""found at $ac_find_libraries" 1>&6
7868 else
7869 echo "$ac_t""no" 1>&6
7870 { echo "configure: error: please set LDFLAGS to contain the location of libXm" 1>&2; exit 1; }
7871 fi
7872
7873 echo $ac_n "checking for Xt library""... $ac_c" 1>&6
fa3e4baf 7874echo "configure:7875: checking for Xt library" >&5
a16d3c04
KB
7875
7876ac_find_libraries=
7877for ac_dir in $SEARCH_LIB;
7878 do
7879 for ac_extension in a so sl; do
7880 if test -f "$ac_dir/libXt.$ac_extension"; then
7881 ac_find_libraries=$ac_dir
7882 break 2
7883 fi
7884 done
7885 done
7886
7887 if test "$ac_find_libraries" != "" ; then
7888
7889 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
7890 result=$?
7891 if test $result = 0; then
7892 ac_path_to_link=""
7893 else
7894 ac_path_to_link="-L$ac_find_libraries"
7895 fi
7896
7897 CHECK_LINK="$GUI_TK_LIBRARY $ac_path_to_link"
7898 echo "$ac_t""found at $ac_find_libraries" 1>&6
7899 else
7900 echo "$ac_t""no" 1>&6
7901 { echo "configure: error: please set LDFLAGS to contain the location of libXt" 1>&2; exit 1; }
7902 fi
7903
7904 XPM_LINK=""
7905 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
fa3e4baf 7906echo "configure:7907: checking for Xpm library" >&5
a16d3c04
KB
7907
7908ac_find_libraries=
7909for ac_dir in $SEARCH_LIB;
7910 do
7911 for ac_extension in a so sl; do
7912 if test -f "$ac_dir/libXpm.$ac_extension"; then
7913 ac_find_libraries=$ac_dir
7914 break 2
7915 fi
7916 done
7917 done
7918
7919 if test "$ac_find_libraries" != "" ; then
7920
7921 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
7922 result=$?
7923 if test $result = 0; then
7924 ac_path_to_link=""
7925 else
7926 ac_path_to_link="-L$ac_find_libraries"
7927 fi
7928
7929 CHECK_LINK="$GUI_TK_LIBRARY $ac_path_to_link"
7930 XPM_LINK="-lXpm "
7931 cat >> confdefs.h <<\EOF
7932#define wxHAVE_LIB_XPM 1
7933EOF
7934
7935 echo "$ac_t""found at $ac_find_libraries" 1>&6
7936 else
7937 echo "$ac_t""no" 1>&6
7938 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
7939 fi
7940
7941 GUI_TK_LINK="-lXm $XPM_LINK -lXmu -lXt -lX11 -ldl -lm"
7942 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $GUI_TK_LINK"
7943 TOOLKIT=MOTIF
1c8515f9 7944
a16d3c04
KB
7945 GUIHEADERS=MOTIF_HEADERS
7946 GUIOBJS=MOTIF_GUIOBJS
7947 COMMONOBJS=MOTIF_COMMONOBJS
7948 GENERICOBJS=MOTIF_GENERICOBJS
7949 GUIDEPS=MOTIF_GUIDEPS
7950 COMMONDEPS=MOTIF_COMMONDEPS
7951 GENERICDEPS=MOTIF_GENERICDEPS
7952 UNIXOBJS=UNIXOBJS
7953 GUIDIST=MOTIF_DIST
7954fi
7955
7956TOOLKIT_DIR=`echo ${TOOLKIT} | tr "A-Z" "a-z"`
7957
7958TOOLKIT_DEF="-D__WX${TOOLKIT}__"
7959
7960WX_LIBRARY="wx_${TOOLKIT_DIR}"
7961
7962WX_LIBRARY_NAME="libwx_${TOOLKIT_DIR}.la"
7963
7964WX_LIBRARY_NAME_STATIC="libwx_${TOOLKIT_DIR}.a"
7965
7966WX_LIBRARY_NAME_SHARED="libwx_${TOOLKIT_DIR}-${WX_RELEASE}.so.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
7967
7968WX_LIBRARY_LINK1="libwx_${TOOLKIT_DIR}-${WX_RELEASE}.so.${WX_CURRENT}"
7969WX_LIBRARY_LINK2="libwx_${TOOLKIT_DIR}-${WX_RELEASE}.so"
7970WX_LIBRARY_LINK3="libwx_${TOOLKIT_DIR}.so"
7971
7972SHARED_LD=
7973PIC_FLAG=
7974WX_CREATE_LINKS=
7975
7976if test "$wxUSE_SHARED" = "yes"; then
7977 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}"
7978
7979case "${host}" in
7980 *-hp-hpux* )
7981 WX_LIBRARY_NAME_SHARED="libwx_${TOOLKIT_DIR}.sl"
7982 SHARED_LD="${CXX} -b -o"
7983 PIC_FLAG="+Z"
7984 ;;
7985 *-*-linux* )
7986 SHARED_LD="${CC} -shared -o"
7987 PIC_FLAG="-fPIC"
7988 WX_CREATE_INSTALLED_LINKS="CREATE_INSTALLED_LINKS"
7989 WX_CREATE_LINKS="CREATE_LINKS"
7990 ;;
7991 *-*-irix5* | *-*-irix6* )
7992 if test "$GCC" = yes ; then
7993 SHARED_LD="${CC} -shared -o"
7994 PIC_FLAG="-fPIC"
7995 else
7996 SHARED_LD="${CXX} -shared -o"
7997 fi
7998 WX_CREATE_INSTALLED_LINKS="CREATE_INSTALLED_LINKS"
7999 WX_CREATE_LINKS="CREATE_LINKS"
8000 ;;
8001 *-*-solaris2* )
8002 if test "$GCC" = yes ; then
8003 SHARED_LD="${CC} -shared -o"
8004 PIC_FLAG="-fPIC"
8005 else
8006 SHARED_LD="${CXX} -G -o"
8007 PIC_FLAG="PIC"
8008 fi
8009 WX_CREATE_INSTALLED_LINKS="CREATE_INSTALLED_LINKS"
8010 WX_CREATE_LINKS="CREATE_LINKS"
8011 ;;
8012 *-*-sunos4* )
8013 SHARED_LD="${CC} -shared -o"
8014 PIC_FLAG="-fPIC"
8015 WX_CREATE_INSTALLED_LINKS="CREATE_INSTALLED_LINKS"
8016 WX_CREATE_LINKS="CREATE_LINKS"
8017 ;;
8018 *-*-freebsd* | *-*-netbsd*)
8019 SHARED_LD="${CC} -shared -o"
8020 PIC_FLAG="-fPIC"
8021 WX_CREATE_INSTALLED_LINKS="CREATE_INSTALLED_LINKS"
8022 WX_CREATE_LINKS="CREATE_LINKS"
8023 ;;
8024 *-*-osf* )
8025 SHARED_LD="${CXX} -shared -o"
8026 PIC_FLAG="-fPIC"
8027 WX_CREATE_INSTALLED_LINKS="CREATE_INSTALLED_LINKS"
8028 WX_CREATE_LINKS="CREATE_LINKS"
8029 ;;
8030 *-*-dgux5* )
8031 SHARED_LD="${CXX} -shared -o"
8032 PIC_FLAG="-fPIC"
8033 WX_CREATE_INSTALLED_LINKS="CREATE_INSTALLED_LINKS"
8034 WX_CREATE_LINKS="CREATE_LINKS"
8035 ;;
8036 *-*-sysv5* )
8037 SHARED_LD="${CC} -shared -o"
8038 PIC_FLAG="-fPIC"
8039 WX_CREATE_INSTALLED_LINKS="CREATE_INSTALLED_LINKS"
8040 WX_CREATE_LINKS="CREATE_LINKS"
8041 ;;
8042 *-*-aix* )
8043 SHARED_LD="/usr/lpp/xlC/bin/makeC++SharedLib -p 0 -o"
8044 ;;
8045 *-*-cygwin32* )
8046 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
8047 ;;
8048 *-*-mingw32* )
8049 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
8050 ;;
8051 *-pc-os2_emx )
8052 ;;
8053 *)
8054 { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; }
8055esac
8056
8057else
8058 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
8059fi
8060
8061
8062for ac_hdr in strings.h
8063do
8064ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8065echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
fa3e4baf 8066echo "configure:8067: checking for $ac_hdr" >&5
a16d3c04
KB
8067if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8068 echo $ac_n "(cached) $ac_c" 1>&6
8069else
8070 cat > conftest.$ac_ext <<EOF
fa3e4baf 8071#line 8072 "configure"
a16d3c04
KB
8072#include "confdefs.h"
8073#include <$ac_hdr>
8074EOF
8075ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
fa3e4baf
KB
8076{ (eval echo configure:8077: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8077ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
a16d3c04
KB
8078if test -z "$ac_err"; then
8079 rm -rf conftest*
8080 eval "ac_cv_header_$ac_safe=yes"
8081else
8082 echo "$ac_err" >&5
8083 echo "configure: failed program was:" >&5
8084 cat conftest.$ac_ext >&5
8085 rm -rf conftest*
8086 eval "ac_cv_header_$ac_safe=no"
8087fi
8088rm -f conftest*
8089fi
8090if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8091 echo "$ac_t""yes" 1>&6
8092 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8093 cat >> confdefs.h <<EOF
8094#define $ac_tr_hdr 1
8095EOF
8096
8097else
8098 echo "$ac_t""no" 1>&6
8099fi
8100done
8101
8102for ac_hdr in unistd.h
8103do
8104ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8105echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
fa3e4baf 8106echo "configure:8107: checking for $ac_hdr" >&5
a16d3c04
KB
8107if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8108 echo $ac_n "(cached) $ac_c" 1>&6
8109else
8110 cat > conftest.$ac_ext <<EOF
fa3e4baf 8111#line 8112 "configure"
a16d3c04
KB
8112#include "confdefs.h"
8113#include <$ac_hdr>
8114EOF
8115ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
fa3e4baf
KB
8116{ (eval echo configure:8117: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8117ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
a16d3c04
KB
8118if test -z "$ac_err"; then
8119 rm -rf conftest*
8120 eval "ac_cv_header_$ac_safe=yes"
8121else
8122 echo "$ac_err" >&5
8123 echo "configure: failed program was:" >&5
8124 cat conftest.$ac_ext >&5
8125 rm -rf conftest*
8126 eval "ac_cv_header_$ac_safe=no"
8127fi
8128rm -f conftest*
8129fi
8130if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8131 echo "$ac_t""yes" 1>&6
8132 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8133 cat >> confdefs.h <<EOF
8134#define $ac_tr_hdr 1
8135EOF
8136
8137else
8138 echo "$ac_t""no" 1>&6
8139fi
8140done
8141
8142for ac_hdr in wchar.h
8143do
8144ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8145echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
fa3e4baf 8146echo "configure:8147: checking for $ac_hdr" >&5
a16d3c04
KB
8147if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8148 echo $ac_n "(cached) $ac_c" 1>&6
8149else
8150 cat > conftest.$ac_ext <<EOF
fa3e4baf 8151#line 8152 "configure"
a16d3c04
KB
8152#include "confdefs.h"
8153#include <$ac_hdr>
8154EOF
8155ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
fa3e4baf
KB
8156{ (eval echo configure:8157: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8157ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
a16d3c04
KB
8158if test -z "$ac_err"; then
8159 rm -rf conftest*
8160 eval "ac_cv_header_$ac_safe=yes"
8161else
8162 echo "$ac_err" >&5
8163 echo "configure: failed program was:" >&5
8164 cat conftest.$ac_ext >&5
8165 rm -rf conftest*
8166 eval "ac_cv_header_$ac_safe=no"
8167fi
8168rm -f conftest*
8169fi
8170if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8171 echo "$ac_t""yes" 1>&6
8172 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8173 cat >> confdefs.h <<EOF
8174#define $ac_tr_hdr 1
8175EOF
8176
8177else
8178 echo "$ac_t""no" 1>&6
8179fi
8180done
8181
8182for ac_hdr in wcstr.h
8183do
8184ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8185echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
fa3e4baf 8186echo "configure:8187: checking for $ac_hdr" >&5
a16d3c04
KB
8187if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8188 echo $ac_n "(cached) $ac_c" 1>&6
8189else
8190 cat > conftest.$ac_ext <<EOF
fa3e4baf 8191#line 8192 "configure"
a16d3c04
KB
8192#include "confdefs.h"
8193#include <$ac_hdr>
8194EOF
8195ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
fa3e4baf
KB
8196{ (eval echo configure:8197: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8197ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
a16d3c04
KB
8198if test -z "$ac_err"; then
8199 rm -rf conftest*
8200 eval "ac_cv_header_$ac_safe=yes"
8201else
8202 echo "$ac_err" >&5
8203 echo "configure: failed program was:" >&5
8204 cat conftest.$ac_ext >&5
8205 rm -rf conftest*
8206 eval "ac_cv_header_$ac_safe=no"
8207fi
8208rm -f conftest*
8209fi
8210if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8211 echo "$ac_t""yes" 1>&6
8212 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8213 cat >> confdefs.h <<EOF
8214#define $ac_tr_hdr 1
8215EOF
8216
8217else
8218 echo "$ac_t""no" 1>&6
8219fi
8220done
8221
8222for ac_hdr in fnmatch.h
8223do
8224ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8225echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
fa3e4baf 8226echo "configure:8227: checking for $ac_hdr" >&5
a16d3c04
KB
8227if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8228 echo $ac_n "(cached) $ac_c" 1>&6
8229else
8230 cat > conftest.$ac_ext <<EOF
fa3e4baf 8231#line 8232 "configure"
a16d3c04
KB
8232#include "confdefs.h"
8233#include <$ac_hdr>
8234EOF
8235ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
fa3e4baf
KB
8236{ (eval echo configure:8237: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8237ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
a16d3c04
KB
8238if test -z "$ac_err"; then
8239 rm -rf conftest*
8240 eval "ac_cv_header_$ac_safe=yes"
8241else
8242 echo "$ac_err" >&5
8243 echo "configure: failed program was:" >&5
8244 cat conftest.$ac_ext >&5
8245 rm -rf conftest*
8246 eval "ac_cv_header_$ac_safe=no"
8247fi
8248rm -f conftest*
8249fi
8250if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8251 echo "$ac_t""yes" 1>&6
8252 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8253 cat >> confdefs.h <<EOF
8254#define $ac_tr_hdr 1
8255EOF
8256
8257else
8258 echo "$ac_t""no" 1>&6
8259fi
8260done
8261
8262for ac_hdr in X11/XKBlib.h
8263do
8264ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8265echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
fa3e4baf 8266echo "configure:8267: checking for $ac_hdr" >&5
a16d3c04
KB
8267if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8268 echo $ac_n "(cached) $ac_c" 1>&6
8269else
8270 cat > conftest.$ac_ext <<EOF
fa3e4baf 8271#line 8272 "configure"
a16d3c04
KB
8272#include "confdefs.h"
8273#include <$ac_hdr>
8274EOF
8275ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
fa3e4baf
KB
8276{ (eval echo configure:8277: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8277ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
a16d3c04
KB
8278if test -z "$ac_err"; then
8279 rm -rf conftest*
8280 eval "ac_cv_header_$ac_safe=yes"
8281else
8282 echo "$ac_err" >&5
8283 echo "configure: failed program was:" >&5
8284 cat conftest.$ac_ext >&5
8285 rm -rf conftest*
8286 eval "ac_cv_header_$ac_safe=no"
8287fi
8288rm -f conftest*
8289fi
8290if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8291 echo "$ac_t""yes" 1>&6
8292 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8293 cat >> confdefs.h <<EOF
8294#define $ac_tr_hdr 1
8295EOF
8296
8297else
8298 echo "$ac_t""no" 1>&6
8299fi
8300done
8301
8302
8303
8304echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
fa3e4baf 8305echo "configure:8306: checking for ANSI C header files" >&5
a16d3c04
KB
8306if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
8307 echo $ac_n "(cached) $ac_c" 1>&6
8308else
8309 cat > conftest.$ac_ext <<EOF
fa3e4baf 8310#line 8311 "configure"
a16d3c04
KB
8311#include "confdefs.h"
8312#include <stdlib.h>
8313#include <stdarg.h>
8314#include <string.h>
8315#include <float.h>
8316EOF
8317ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
fa3e4baf
KB
8318{ (eval echo configure:8319: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8319ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
a16d3c04
KB
8320if test -z "$ac_err"; then
8321 rm -rf conftest*
8322 ac_cv_header_stdc=yes
8323else
8324 echo "$ac_err" >&5
8325 echo "configure: failed program was:" >&5
8326 cat conftest.$ac_ext >&5
8327 rm -rf conftest*
8328 ac_cv_header_stdc=no
8329fi
8330rm -f conftest*
8331
8332if test $ac_cv_header_stdc = yes; then
8333 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8334cat > conftest.$ac_ext <<EOF
fa3e4baf 8335#line 8336 "configure"
a16d3c04
KB
8336#include "confdefs.h"
8337#include <string.h>
8338EOF
8339if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8340 egrep "memchr" >/dev/null 2>&1; then
8341 :
8342else
8343 rm -rf conftest*
8344 ac_cv_header_stdc=no
8345fi
8346rm -f conftest*
8347
8348fi
8349
8350if test $ac_cv_header_stdc = yes; then
8351 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8352cat > conftest.$ac_ext <<EOF
fa3e4baf 8353#line 8354 "configure"
a16d3c04
KB
8354#include "confdefs.h"
8355#include <stdlib.h>
8356EOF
8357if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8358 egrep "free" >/dev/null 2>&1; then
8359 :
8360else
8361 rm -rf conftest*
8362 ac_cv_header_stdc=no
8363fi
8364rm -f conftest*
8365
8366fi
8367
8368if test $ac_cv_header_stdc = yes; then
8369 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8370if test "$cross_compiling" = yes; then
8371 :
8372else
8373 cat > conftest.$ac_ext <<EOF
fa3e4baf 8374#line 8375 "configure"
a16d3c04
KB
8375#include "confdefs.h"
8376#include <ctype.h>
8377#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8378#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8379#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8380int main () { int i; for (i = 0; i < 256; i++)
8381if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
8382exit (0); }
8383
8384EOF
fa3e4baf 8385if { (eval echo configure:8386: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
a16d3c04
KB
8386then
8387 :
8388else
8389 echo "configure: failed program was:" >&5
8390 cat conftest.$ac_ext >&5
8391 rm -fr conftest*
8392 ac_cv_header_stdc=no
8393fi
8394rm -fr conftest*
8395fi
8396
8397fi
8398fi
8399
8400echo "$ac_t""$ac_cv_header_stdc" 1>&6
8401if test $ac_cv_header_stdc = yes; then
8402 cat >> confdefs.h <<\EOF
8403#define STDC_HEADERS 1
8404EOF
8405
8406fi
8407
8408echo $ac_n "checking for mode_t""... $ac_c" 1>&6
fa3e4baf 8409echo "configure:8410: checking for mode_t" >&5
a16d3c04
KB
8410if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
8411 echo $ac_n "(cached) $ac_c" 1>&6
8412else
8413 cat > conftest.$ac_ext <<EOF
fa3e4baf 8414#line 8415 "configure"
a16d3c04
KB
8415#include "confdefs.h"
8416#include <sys/types.h>
8417#if STDC_HEADERS
8418#include <stdlib.h>
8419#include <stddef.h>
8420#endif
8421EOF
8422if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
fa3e4baf 8423 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
a16d3c04
KB
8424 rm -rf conftest*
8425 ac_cv_type_mode_t=yes
8426else
8427 rm -rf conftest*
8428 ac_cv_type_mode_t=no
8429fi
8430rm -f conftest*
8431
8432fi
8433echo "$ac_t""$ac_cv_type_mode_t" 1>&6
8434if test $ac_cv_type_mode_t = no; then
8435 cat >> confdefs.h <<\EOF
8436#define mode_t int
8437EOF
8438
8439fi
8440
8441echo $ac_n "checking for off_t""... $ac_c" 1>&6
fa3e4baf 8442echo "configure:8443: checking for off_t" >&5
a16d3c04
KB
8443if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
8444 echo $ac_n "(cached) $ac_c" 1>&6
8445else
8446 cat > conftest.$ac_ext <<EOF
fa3e4baf 8447#line 8448 "configure"
a16d3c04
KB
8448#include "confdefs.h"
8449#include <sys/types.h>
8450#if STDC_HEADERS
8451#include <stdlib.h>
8452#include <stddef.h>
8453#endif
8454EOF
8455if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
fa3e4baf 8456 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
a16d3c04
KB
8457 rm -rf conftest*
8458 ac_cv_type_off_t=yes
8459else
8460 rm -rf conftest*
8461 ac_cv_type_off_t=no
8462fi
8463rm -f conftest*
8464
8465fi
8466echo "$ac_t""$ac_cv_type_off_t" 1>&6
8467if test $ac_cv_type_off_t = no; then
8468 cat >> confdefs.h <<\EOF
8469#define off_t long
8470EOF
8471
8472fi
8473
8474echo $ac_n "checking for pid_t""... $ac_c" 1>&6
fa3e4baf 8475echo "configure:8476: checking for pid_t" >&5
a16d3c04
KB
8476if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
8477 echo $ac_n "(cached) $ac_c" 1>&6
8478else
8479 cat > conftest.$ac_ext <<EOF
fa3e4baf 8480#line 8481 "configure"
a16d3c04
KB
8481#include "confdefs.h"
8482#include <sys/types.h>
8483#if STDC_HEADERS
8484#include <stdlib.h>
8485#include <stddef.h>
8486#endif
8487EOF
8488if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
fa3e4baf 8489 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
a16d3c04
KB
8490 rm -rf conftest*
8491 ac_cv_type_pid_t=yes
8492else
8493 rm -rf conftest*
8494 ac_cv_type_pid_t=no
8495fi
8496rm -f conftest*
8497
8498fi
8499echo "$ac_t""$ac_cv_type_pid_t" 1>&6
8500if test $ac_cv_type_pid_t = no; then
8501 cat >> confdefs.h <<\EOF
8502#define pid_t int
8503EOF
8504
8505fi
8506
8507echo $ac_n "checking for size_t""... $ac_c" 1>&6
fa3e4baf 8508echo "configure:8509: checking for size_t" >&5
a16d3c04
KB
8509if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
8510 echo $ac_n "(cached) $ac_c" 1>&6
8511else
8512 cat > conftest.$ac_ext <<EOF
fa3e4baf 8513#line 8514 "configure"
a16d3c04
KB
8514#include "confdefs.h"
8515#include <sys/types.h>
8516#if STDC_HEADERS
8517#include <stdlib.h>
8518#include <stddef.h>
8519#endif
8520EOF
8521if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
fa3e4baf 8522 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
a16d3c04
KB
8523 rm -rf conftest*
8524 ac_cv_type_size_t=yes
8525else
8526 rm -rf conftest*
8527 ac_cv_type_size_t=no
8528fi
8529rm -f conftest*
8530
8531fi
8532echo "$ac_t""$ac_cv_type_size_t" 1>&6
8533if test $ac_cv_type_size_t = no; then
8534 cat >> confdefs.h <<\EOF
8535#define size_t unsigned
8536EOF
8537
8538fi
8539
8540echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
fa3e4baf 8541echo "configure:8542: checking for uid_t in sys/types.h" >&5
a16d3c04
KB
8542if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
8543 echo $ac_n "(cached) $ac_c" 1>&6
8544else
8545 cat > conftest.$ac_ext <<EOF
fa3e4baf 8546#line 8547 "configure"
a16d3c04
KB
8547#include "confdefs.h"
8548#include <sys/types.h>
8549EOF
8550if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8551 egrep "uid_t" >/dev/null 2>&1; then
8552 rm -rf conftest*
8553 ac_cv_type_uid_t=yes
8554else
8555 rm -rf conftest*
8556 ac_cv_type_uid_t=no
8557fi
8558rm -f conftest*
8559
8560fi
8561
8562echo "$ac_t""$ac_cv_type_uid_t" 1>&6
8563if test $ac_cv_type_uid_t = no; then
8564 cat >> confdefs.h <<\EOF
8565#define uid_t int
8566EOF
8567
8568 cat >> confdefs.h <<\EOF
8569#define gid_t int
8570EOF
8571
8572fi
8573
8574
8575
8576
8577echo $ac_n "checking for working const""... $ac_c" 1>&6
fa3e4baf 8578echo "configure:8579: checking for working const" >&5
a16d3c04
KB
8579if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
8580 echo $ac_n "(cached) $ac_c" 1>&6
8581else
8582 cat > conftest.$ac_ext <<EOF
fa3e4baf 8583#line 8584 "configure"
a16d3c04
KB
8584#include "confdefs.h"
8585
8586int main() {
8587
8588/* Ultrix mips cc rejects this. */
8589typedef int charset[2]; const charset x;
8590/* SunOS 4.1.1 cc rejects this. */
8591char const *const *ccp;
8592char **p;
8593/* NEC SVR4.0.2 mips cc rejects this. */
8594struct point {int x, y;};
8595static struct point const zero = {0,0};
8596/* AIX XL C 1.02.0.0 rejects this.
8597 It does not let you subtract one const X* pointer from another in an arm
8598 of an if-expression whose if-part is not a constant expression */
8599const char *g = "string";
8600ccp = &g + (g ? g-g : 0);
8601/* HPUX 7.0 cc rejects these. */
8602++ccp;
8603p = (char**) ccp;
8604ccp = (char const *const *) p;
8605{ /* SCO 3.2v4 cc rejects this. */
8606 char *t;
8607 char const *s = 0 ? (char *) 0 : (char const *) 0;
8608
8609 *t++ = 0;
8610}
8611{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8612 int x[] = {25, 17};
8613 const int *foo = &x[0];
8614 ++foo;
8615}
8616{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8617 typedef const int *iptr;
8618 iptr p = 0;
8619 ++p;
8620}
8621{ /* AIX XL C 1.02.0.0 rejects this saying
8622 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8623 struct s { int j; const int *ap[3]; };
8624 struct s *b; b->j = 5;
8625}
8626{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8627 const int foo = 10;
8628}
8629
8630; return 0; }
8631EOF
fa3e4baf 8632if { (eval echo configure:8633: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a16d3c04
KB
8633 rm -rf conftest*
8634 ac_cv_c_const=yes
8635else
8636 echo "configure: failed program was:" >&5
8637 cat conftest.$ac_ext >&5
8638 rm -rf conftest*
8639 ac_cv_c_const=no
8640fi
8641rm -f conftest*
8642fi
8643
8644echo "$ac_t""$ac_cv_c_const" 1>&6
8645if test $ac_cv_c_const = no; then
8646 cat >> confdefs.h <<\EOF
8647#define const
8648EOF
8649
8650fi
8651
8652echo $ac_n "checking for inline""... $ac_c" 1>&6
fa3e4baf 8653echo "configure:8654: checking for inline" >&5
a16d3c04
KB
8654if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
8655 echo $ac_n "(cached) $ac_c" 1>&6
8656else
8657 ac_cv_c_inline=no
8658for ac_kw in inline __inline__ __inline; do
8659 cat > conftest.$ac_ext <<EOF
fa3e4baf 8660#line 8661 "configure"
a16d3c04
KB
8661#include "confdefs.h"
8662
8663int main() {
8664} $ac_kw foo() {
8665; return 0; }
8666EOF
fa3e4baf 8667if { (eval echo configure:8668: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a16d3c04
KB
8668 rm -rf conftest*
8669 ac_cv_c_inline=$ac_kw; break
8670else
8671 echo "configure: failed program was:" >&5
8672 cat conftest.$ac_ext >&5
8673fi
8674rm -f conftest*
8675done
8676
8677fi
8678
8679echo "$ac_t""$ac_cv_c_inline" 1>&6
8680case "$ac_cv_c_inline" in
8681 inline | yes) ;;
8682 no) cat >> confdefs.h <<\EOF
8683#define inline
8684EOF
8685 ;;
8686 *) cat >> confdefs.h <<EOF
8687#define inline $ac_cv_c_inline
8688EOF
8689 ;;
8690esac
8691
8692
8693echo $ac_n "checking size of char""... $ac_c" 1>&6
fa3e4baf 8694echo "configure:8695: checking size of char" >&5
a16d3c04
KB
8695if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then
8696 echo $ac_n "(cached) $ac_c" 1>&6
8697else
8698 if test "$cross_compiling" = yes; then
8699 ac_cv_sizeof_char=1
8700else
8701 cat > conftest.$ac_ext <<EOF
fa3e4baf 8702#line 8703 "configure"
a16d3c04
KB
8703#include "confdefs.h"
8704#include <stdio.h>
8705main()
8706{
8707 FILE *f=fopen("conftestval", "w");
8708 if (!f) exit(1);
8709 fprintf(f, "%d\n", sizeof(char));
8710 exit(0);
8711}
8712EOF
fa3e4baf 8713if { (eval echo configure:8714: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
a16d3c04
KB
8714then
8715 ac_cv_sizeof_char=`cat conftestval`
8716else
8717 echo "configure: failed program was:" >&5
8718 cat conftest.$ac_ext >&5
8719 rm -fr conftest*
8720 ac_cv_sizeof_char=0
8721fi
8722rm -fr conftest*
8723fi
8724
8725fi
8726echo "$ac_t""$ac_cv_sizeof_char" 1>&6
8727cat >> confdefs.h <<EOF
8728#define SIZEOF_CHAR $ac_cv_sizeof_char
8729EOF
8730
8731
8732echo $ac_n "checking size of short""... $ac_c" 1>&6
fa3e4baf 8733echo "configure:8734: checking size of short" >&5
a16d3c04
KB
8734if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
8735 echo $ac_n "(cached) $ac_c" 1>&6
8736else
8737 if test "$cross_compiling" = yes; then
8738 ac_cv_sizeof_short=2
8739else
8740 cat > conftest.$ac_ext <<EOF
fa3e4baf 8741#line 8742 "configure"
a16d3c04
KB
8742#include "confdefs.h"
8743#include <stdio.h>
8744main()
8745{
8746 FILE *f=fopen("conftestval", "w");
8747 if (!f) exit(1);
8748 fprintf(f, "%d\n", sizeof(short));
8749 exit(0);
8750}
8751EOF
fa3e4baf 8752if { (eval echo configure:8753: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
a16d3c04
KB
8753then
8754 ac_cv_sizeof_short=`cat conftestval`
8755else
8756 echo "configure: failed program was:" >&5
8757 cat conftest.$ac_ext >&5
8758 rm -fr conftest*
8759 ac_cv_sizeof_short=0
8760fi
8761rm -fr conftest*
8762fi
8763
8764fi
8765echo "$ac_t""$ac_cv_sizeof_short" 1>&6
8766cat >> confdefs.h <<EOF
8767#define SIZEOF_SHORT $ac_cv_sizeof_short
8768EOF
8769
8770
8771echo $ac_n "checking size of int *""... $ac_c" 1>&6
fa3e4baf 8772echo "configure:8773: checking size of int *" >&5
a16d3c04
KB
8773if eval "test \"`echo '$''{'ac_cv_sizeof_int_p'+set}'`\" = set"; then
8774 echo $ac_n "(cached) $ac_c" 1>&6
8775else
8776 if test "$cross_compiling" = yes; then
8777 ac_cv_sizeof_int_p=4
8778else
8779 cat > conftest.$ac_ext <<EOF
fa3e4baf 8780#line 8781 "configure"
a16d3c04
KB
8781#include "confdefs.h"
8782#include <stdio.h>
8783main()
8784{
8785 FILE *f=fopen("conftestval", "w");
8786 if (!f) exit(1);
8787 fprintf(f, "%d\n", sizeof(int *));
8788 exit(0);
8789}
8790EOF
fa3e4baf 8791if { (eval echo configure:8792: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
a16d3c04
KB
8792then
8793 ac_cv_sizeof_int_p=`cat conftestval`
8794else
8795 echo "configure: failed program was:" >&5
8796 cat conftest.$ac_ext >&5
8797 rm -fr conftest*
8798 ac_cv_sizeof_int_p=0
8799fi
8800rm -fr conftest*
8801fi
8802
8803fi
8804echo "$ac_t""$ac_cv_sizeof_int_p" 1>&6
8805cat >> confdefs.h <<EOF
8806#define SIZEOF_INT_P $ac_cv_sizeof_int_p
8807EOF
8808
8809
8810echo $ac_n "checking size of int""... $ac_c" 1>&6
fa3e4baf 8811echo "configure:8812: checking size of int" >&5
a16d3c04
KB
8812if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
8813 echo $ac_n "(cached) $ac_c" 1>&6
8814else
8815 if test "$cross_compiling" = yes; then
8816 ac_cv_sizeof_int=4
8817else
8818 cat > conftest.$ac_ext <<EOF
fa3e4baf 8819#line 8820 "configure"
a16d3c04
KB
8820#include "confdefs.h"
8821#include <stdio.h>
8822main()
8823{
8824 FILE *f=fopen("conftestval", "w");
8825 if (!f) exit(1);
8826 fprintf(f, "%d\n", sizeof(int));
8827 exit(0);
8828}
8829EOF
fa3e4baf 8830if { (eval echo configure:8831: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
a16d3c04
KB
8831then
8832 ac_cv_sizeof_int=`cat conftestval`
8833else
8834 echo "configure: failed program was:" >&5
8835 cat conftest.$ac_ext >&5
8836 rm -fr conftest*
8837 ac_cv_sizeof_int=0
8838fi
8839rm -fr conftest*
8840fi
8841
8842fi
8843echo "$ac_t""$ac_cv_sizeof_int" 1>&6
8844cat >> confdefs.h <<EOF
8845#define SIZEOF_INT $ac_cv_sizeof_int
8846EOF
8847
8848
8849echo $ac_n "checking size of long""... $ac_c" 1>&6
fa3e4baf 8850echo "configure:8851: checking size of long" >&5
a16d3c04
KB
8851if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
8852 echo $ac_n "(cached) $ac_c" 1>&6
8853else
8854 if test "$cross_compiling" = yes; then
8855 ac_cv_sizeof_long=4
8856else
8857 cat > conftest.$ac_ext <<EOF
fa3e4baf 8858#line 8859 "configure"
a16d3c04
KB
8859#include "confdefs.h"
8860#include <stdio.h>
8861main()
8862{
8863 FILE *f=fopen("conftestval", "w");
8864 if (!f) exit(1);
8865 fprintf(f, "%d\n", sizeof(long));
8866 exit(0);
8867}
8868EOF
fa3e4baf 8869if { (eval echo configure:8870: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
a16d3c04
KB
8870then
8871 ac_cv_sizeof_long=`cat conftestval`
8872else
8873 echo "configure: failed program was:" >&5
8874 cat conftest.$ac_ext >&5
8875 rm -fr conftest*
8876 ac_cv_sizeof_long=0
8877fi
8878rm -fr conftest*
8879fi
8880
8881fi
8882echo "$ac_t""$ac_cv_sizeof_long" 1>&6
8883cat >> confdefs.h <<EOF
8884#define SIZEOF_LONG $ac_cv_sizeof_long
8885EOF
8886
8887
8888echo $ac_n "checking size of long long""... $ac_c" 1>&6
fa3e4baf 8889echo "configure:8890: checking size of long long" >&5
a16d3c04
KB
8890if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
8891 echo $ac_n "(cached) $ac_c" 1>&6
8892else
8893 if test "$cross_compiling" = yes; then
8894 ac_cv_sizeof_long_long=0
8895else
8896 cat > conftest.$ac_ext <<EOF
fa3e4baf 8897#line 8898 "configure"
a16d3c04
KB
8898#include "confdefs.h"
8899#include <stdio.h>
8900main()
8901{
8902 FILE *f=fopen("conftestval", "w");
8903 if (!f) exit(1);
8904 fprintf(f, "%d\n", sizeof(long long));
8905 exit(0);
8906}
8907EOF
fa3e4baf 8908if { (eval echo configure:8909: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
a16d3c04
KB
8909then
8910 ac_cv_sizeof_long_long=`cat conftestval`
8911else
8912 echo "configure: failed program was:" >&5
8913 cat conftest.$ac_ext >&5
8914 rm -fr conftest*
8915 ac_cv_sizeof_long_long=0
8916fi
8917rm -fr conftest*
8918fi
8919
8920fi
8921echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
8922cat >> confdefs.h <<EOF
8923#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
8924EOF
8925
8926
8927
8928echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
fa3e4baf 8929echo "configure:8930: checking whether byte ordering is bigendian" >&5
a16d3c04
KB
8930if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
8931 echo $ac_n "(cached) $ac_c" 1>&6
8932else
8933 ac_cv_c_bigendian=unknown
8934# See if sys/param.h defines the BYTE_ORDER macro.
8935cat > conftest.$ac_ext <<EOF
fa3e4baf 8936#line 8937 "configure"
a16d3c04
KB
8937#include "confdefs.h"
8938#include <sys/types.h>
8939#include <sys/param.h>
8940int main() {
8941
8942#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
8943 bogus endian macros
8944#endif
8945; return 0; }
8946EOF
fa3e4baf 8947if { (eval echo configure:8948: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a16d3c04
KB
8948 rm -rf conftest*
8949 # It does; now see whether it defined to BIG_ENDIAN or not.
8950cat > conftest.$ac_ext <<EOF
fa3e4baf 8951#line 8952 "configure"
a16d3c04
KB
8952#include "confdefs.h"
8953#include <sys/types.h>
8954#include <sys/param.h>
8955int main() {
8956
8957#if BYTE_ORDER != BIG_ENDIAN
8958 not big endian
8959#endif
8960; return 0; }
8961EOF
fa3e4baf 8962if { (eval echo configure:8963: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a16d3c04
KB
8963 rm -rf conftest*
8964 ac_cv_c_bigendian=yes
8965else
8966 echo "configure: failed program was:" >&5
8967 cat conftest.$ac_ext >&5
8968 rm -rf conftest*
8969 ac_cv_c_bigendian=no
8970fi
8971rm -f conftest*
8972else
8973 echo "configure: failed program was:" >&5
8974 cat conftest.$ac_ext >&5
8975fi
8976rm -f conftest*
8977if test $ac_cv_c_bigendian = unknown; then
8978if test "$cross_compiling" = yes; then
8979 ac_cv_c_bigendian=unknown
8980else
8981 cat > conftest.$ac_ext <<EOF
fa3e4baf 8982#line 8983 "configure"
a16d3c04
KB
8983#include "confdefs.h"
8984main () {
8985 /* Are we little or big endian? From Harbison&Steele. */
8986 union
8987 {
8988 long l;
8989 char c[sizeof (long)];
8990 } u;
8991 u.l = 1;
8992 exit (u.c[sizeof (long) - 1] == 1);
8993}
8994EOF
fa3e4baf 8995if { (eval echo configure:8996: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
a16d3c04
KB
8996then
8997 ac_cv_c_bigendian=no
8998else
8999 echo "configure: failed program was:" >&5
9000 cat conftest.$ac_ext >&5
9001 rm -fr conftest*
9002 ac_cv_c_bigendian=yes
9003fi
9004rm -fr conftest*
9005fi
9006
9007fi
9008fi
9009
9010echo "$ac_t""$ac_cv_c_bigendian" 1>&6
9011if test $ac_cv_c_bigendian = unknown; then
9012 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
9013fi
9014if test $ac_cv_c_bigendian = yes; then
9015 cat >> confdefs.h <<\EOF
9016#define WORDS_BIGENDIAN 1
9017EOF
9018
9019fi
9020
9021
9022
9023 if test "$cross_compiling" = "yes"; then
9024 cat >> confdefs.h <<\EOF
9025#define wxUSE_IOSTREAMH 1
9026EOF
9027
9028 else
9029
9030 ac_ext=C
9031# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9032ac_cpp='$CXXCPP $CPPFLAGS'
9033ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
fa3e4baf 9034ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
a16d3c04
KB
9035cross_compiling=$ac_cv_prog_cxx_cross
9036
9037
9038 for ac_hdr in iostream
9039do
9040ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9041echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
fa3e4baf 9042echo "configure:9043: checking for $ac_hdr" >&5
a16d3c04
KB
9043if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9044 echo $ac_n "(cached) $ac_c" 1>&6
9045else
9046 cat > conftest.$ac_ext <<EOF
fa3e4baf 9047#line 9048 "configure"
a16d3c04
KB
9048#include "confdefs.h"
9049#include <$ac_hdr>
9050EOF
9051ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
fa3e4baf
KB
9052{ (eval echo configure:9053: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9053ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
a16d3c04
KB
9054if test -z "$ac_err"; then
9055 rm -rf conftest*
9056 eval "ac_cv_header_$ac_safe=yes"
9057else
9058 echo "$ac_err" >&5
9059 echo "configure: failed program was:" >&5
9060 cat conftest.$ac_ext >&5
9061 rm -rf conftest*
9062 eval "ac_cv_header_$ac_safe=no"
9063fi
9064rm -f conftest*
9065fi
9066if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9067 echo "$ac_t""yes" 1>&6
9068 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9069 cat >> confdefs.h <<EOF
9070#define $ac_tr_hdr 1
9071EOF
9072
9073else
9074 echo "$ac_t""no" 1>&6
9075fi
9076done
9077
9078
9079 if test "x$HAVE_IOSTREAM" = x ; then
9080 cat >> confdefs.h <<\EOF
9081#define wxUSE_IOSTREAMH 1
9082EOF
9083
9084 else
9085 :
9086 fi
9087
9088 ac_ext=c
9089# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9090ac_cpp='$CPP $CPPFLAGS'
9091ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
fa3e4baf 9092ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
a16d3c04
KB
9093cross_compiling=$ac_cv_prog_cc_cross
9094
9095 fi
9096
9097
9098
9099 echo $ac_n "checking if C++ compiler supports bool""... $ac_c" 1>&6
fa3e4baf 9100echo "configure:9101: checking if C++ compiler supports bool" >&5
a16d3c04
KB
9101if eval "test \"`echo '$''{'wx_cv_cpp_bool'+set}'`\" = set"; then
9102 echo $ac_n "(cached) $ac_c" 1>&6
9103else
9104
9105
9106 ac_ext=C
9107# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9108ac_cpp='$CXXCPP $CPPFLAGS'
9109ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
fa3e4baf 9110ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
a16d3c04
KB
9111cross_compiling=$ac_cv_prog_cxx_cross
9112
9113
9114 cat > conftest.$ac_ext <<EOF
fa3e4baf 9115#line 9116 "configure"
a16d3c04
KB
9116#include "confdefs.h"
9117
9118
9119int main() {
9120
9121 bool b = true;
9122
9123 return 0;
9124
9125; return 0; }
9126EOF
fa3e4baf 9127if { (eval echo configure:9128: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a16d3c04
KB
9128 rm -rf conftest*
9129
9130 cat >> confdefs.h <<\EOF
9131#define HAVE_BOOL 1
9132EOF
9133
9134 wx_cv_cpp_bool=yes
9135
9136else
9137 echo "configure: failed program was:" >&5
9138 cat conftest.$ac_ext >&5
9139 rm -rf conftest*
9140
9141 wx_cv_cpp_bool=no
9142
9143
9144fi
9145rm -f conftest*
9146
9147 ac_ext=c
9148# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9149ac_cpp='$CPP $CPPFLAGS'
9150ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
fa3e4baf 9151ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
a16d3c04
KB
9152cross_compiling=$ac_cv_prog_cc_cross
9153
9154
9155fi
9156
9157echo "$ac_t""$wx_cv_cpp_bool" 1>&6
9158
9159 if test "$wx_cv_cpp_bool" = "yes"; then
9160 cat >> confdefs.h <<\EOF
9161#define HAVE_BOOL 1
9162EOF
9163
9164 fi
9165
9166
9167
9168 echo $ac_n "checking if size_t and int are different types""... $ac_c" 1>&6
fa3e4baf 9169echo "configure:9170: checking if size_t and int are different types" >&5
a16d3c04
KB
9170if eval "test \"`echo '$''{'wx_cv_cpp_sizet_not_int'+set}'`\" = set"; then
9171 echo $ac_n "(cached) $ac_c" 1>&6
9172else
9173
9174
9175 ac_ext=C
9176# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9177ac_cpp='$CXXCPP $CPPFLAGS'
9178ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
fa3e4baf 9179ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
a16d3c04
KB
9180cross_compiling=$ac_cv_prog_cxx_cross
9181
9182
9183 if test "$cross_compiling" = yes; then
9184 wx_cv_cpp_sizet_not_int=no
9185
9186else
9187 cat > conftest.$ac_ext <<EOF
fa3e4baf 9188#line 9189 "configure"
a16d3c04
KB
9189#include "confdefs.h"
9190#ifdef __cplusplus
9191extern "C" void exit(int);
9192#endif
9193
9194 #include <stdlib.h>
9195
9196 class S
9197 {
9198 public:
9199 S(char *s) { m_s = s; }
9200
9201 char operator[](size_t n) const { return m_s[n]; }
9202 char operator[](int n) const { return m_s[n]; }
9203
9204 private:
9205 char *m_s;
9206 };
9207
9208 int main()
9209 {
9210 S s("dummy");
9211 size_t n1 = 2;
9212 int n2 = 3;
9213
9214 return s[n1] == s[n2];
9215 }
9216
9217EOF
fa3e4baf 9218if { (eval echo configure:9219: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
a16d3c04
KB
9219then
9220 cat >> confdefs.h <<\EOF
9221#define wxUSE_SIZE_T_STRING_OPERATOR 1
9222EOF
9223 wx_cv_cpp_sizet_not_int=yes
9224else
9225 echo "configure: failed program was:" >&5
9226 cat conftest.$ac_ext >&5
9227 rm -fr conftest*
9228 wx_cv_cpp_sizet_not_int=no
9229fi
9230rm -fr conftest*
9231fi
9232
9233
9234 ac_ext=c
9235# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9236ac_cpp='$CPP $CPPFLAGS'
9237ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
fa3e4baf 9238ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
a16d3c04
KB
9239cross_compiling=$ac_cv_prog_cc_cross
9240
9241
9242fi
9243
9244echo "$ac_t""$wx_cv_cpp_sizet_not_int" 1>&6
9245
9246
9247
9248echo $ac_n "checking if you need GNU extensions""... $ac_c" 1>&6
fa3e4baf 9249echo "configure:9250: checking if you need GNU extensions" >&5
a16d3c04
KB
9250if eval "test \"`echo '$''{'wx_cv_gnu_extensions'+set}'`\" = set"; then
9251 echo $ac_n "(cached) $ac_c" 1>&6
9252else
9253
9254 cat > conftest.$ac_ext <<EOF
fa3e4baf 9255#line 9256 "configure"
a16d3c04
KB
9256#include "confdefs.h"
9257#include <features.h>
9258int main() {
9259
9260
9261#ifndef __GNU_LIBRARY__
9262 Compile error wanted
9263#endif
9264
9265
9266; return 0; }
9267EOF
fa3e4baf 9268if { (eval echo configure:9269: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a16d3c04
KB
9269 rm -rf conftest*
9270 wx_cv_gnu_extensions=yes
9271else
9272 echo "configure: failed program was:" >&5
9273 cat conftest.$ac_ext >&5
9274 rm -rf conftest*
9275 wx_cv_gnu_extensions=no
9276fi
9277rm -f conftest*
9278
9279fi
9280
9281
9282echo "$ac_t""$wx_cv_gnu_extensions" 1>&6
9283if test "$wx_cv_gnu_extensions" = "yes"; then
9284 cat >> confdefs.h <<EOF
9285#define _GNU_SOURCE 1
9286EOF
9287
9288fi
9289
9290
9291
9292echo $ac_n "checking for wcslen in -lc""... $ac_c" 1>&6
fa3e4baf 9293echo "configure:9294: checking for wcslen in -lc" >&5
a16d3c04
KB
9294ac_lib_var=`echo c'_'wcslen | sed 'y%./+-%__p_%'`
9295if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9296 echo $ac_n "(cached) $ac_c" 1>&6
9297else
9298 ac_save_LIBS="$LIBS"
9299LIBS="-lc $LIBS"
9300cat > conftest.$ac_ext <<EOF
fa3e4baf 9301#line 9302 "configure"
a16d3c04
KB
9302#include "confdefs.h"
9303/* Override any gcc2 internal prototype to avoid an error. */
9304/* We use char because int might match the return type of a gcc2
9305 builtin and then its argument prototype would still apply. */
9306char wcslen();
9307
9308int main() {
9309wcslen()
9310; return 0; }
9311EOF
fa3e4baf 9312if { (eval echo configure:9313: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a16d3c04
KB
9313 rm -rf conftest*
9314 eval "ac_cv_lib_$ac_lib_var=yes"
9315else
9316 echo "configure: failed program was:" >&5
9317 cat conftest.$ac_ext >&5
9318 rm -rf conftest*
9319 eval "ac_cv_lib_$ac_lib_var=no"
9320fi
9321rm -f conftest*
9322LIBS="$ac_save_LIBS"
9323
9324fi
9325if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9326 echo "$ac_t""yes" 1>&6
9327
9328 cat >> confdefs.h <<\EOF
9329#define HAVE_WCSLEN 1
9330EOF
9331
9332 WCHAR_LINK=""
9333
9334else
9335 echo "$ac_t""no" 1>&6
9336
9337 echo $ac_n "checking for wcslen in -lw""... $ac_c" 1>&6
fa3e4baf 9338echo "configure:9339: checking for wcslen in -lw" >&5
a16d3c04
KB
9339ac_lib_var=`echo w'_'wcslen | sed 'y%./+-%__p_%'`
9340if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9341 echo $ac_n "(cached) $ac_c" 1>&6
9342else
9343 ac_save_LIBS="$LIBS"
9344LIBS="-lw $LIBS"
9345cat > conftest.$ac_ext <<EOF
fa3e4baf 9346#line 9347 "configure"
a16d3c04
KB
9347#include "confdefs.h"
9348/* Override any gcc2 internal prototype to avoid an error. */
9349/* We use char because int might match the return type of a gcc2
9350 builtin and then its argument prototype would still apply. */
9351char wcslen();
9352
9353int main() {
9354wcslen()
9355; return 0; }
9356EOF
fa3e4baf 9357if { (eval echo configure:9358: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a16d3c04
KB
9358 rm -rf conftest*
9359 eval "ac_cv_lib_$ac_lib_var=yes"
9360else
9361 echo "configure: failed program was:" >&5
9362 cat conftest.$ac_ext >&5
9363 rm -rf conftest*
9364 eval "ac_cv_lib_$ac_lib_var=no"
9365fi
9366rm -f conftest*
9367LIBS="$ac_save_LIBS"
9368
9369fi
9370if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9371 echo "$ac_t""yes" 1>&6
9372
9373 cat >> confdefs.h <<\EOF
9374#define HAVE_WCSLEN 1
9375EOF
9376
9377 WCHAR_LINK="-lw"
9378
9379else
9380 echo "$ac_t""no" 1>&6
9381fi
9382
9383
9384fi
9385
9386
9387echo $ac_n "checking for vprintf""... $ac_c" 1>&6
fa3e4baf 9388echo "configure:9389: checking for vprintf" >&5
a16d3c04
KB
9389if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
9390 echo $ac_n "(cached) $ac_c" 1>&6
9391else
9392 cat > conftest.$ac_ext <<EOF
fa3e4baf 9393#line 9394 "configure"
a16d3c04
KB
9394#include "confdefs.h"
9395/* System header to define __stub macros and hopefully few prototypes,
9396 which can conflict with char vprintf(); below. */
9397#include <assert.h>
9398/* Override any gcc2 internal prototype to avoid an error. */
9399/* We use char because int might match the return type of a gcc2
9400 builtin and then its argument prototype would still apply. */
9401char vprintf();
9402
9403int main() {
9404
9405/* The GNU C library defines this for functions which it implements
9406 to always fail with ENOSYS. Some functions are actually named
9407 something starting with __ and the normal name is an alias. */
9408#if defined (__stub_vprintf) || defined (__stub___vprintf)
9409choke me
9410#else
9411vprintf();
9412#endif
9413
9414; return 0; }
9415EOF
fa3e4baf 9416if { (eval echo configure:9417: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a16d3c04
KB
9417 rm -rf conftest*
9418 eval "ac_cv_func_vprintf=yes"
9419else
9420 echo "configure: failed program was:" >&5
9421 cat conftest.$ac_ext >&5
9422 rm -rf conftest*
9423 eval "ac_cv_func_vprintf=no"
9424fi
9425rm -f conftest*
9426fi
9427
9428if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
9429 echo "$ac_t""yes" 1>&6
9430 cat >> confdefs.h <<\EOF
9431#define HAVE_VPRINTF 1
9432EOF
9433
9434else
9435 echo "$ac_t""no" 1>&6
9436fi
9437
9438if test "$ac_cv_func_vprintf" != yes; then
9439echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
fa3e4baf 9440echo "configure:9441: checking for _doprnt" >&5
a16d3c04
KB
9441if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
9442 echo $ac_n "(cached) $ac_c" 1>&6
9443else
9444 cat > conftest.$ac_ext <<EOF
fa3e4baf 9445#line 9446 "configure"
a16d3c04
KB
9446#include "confdefs.h"
9447/* System header to define __stub macros and hopefully few prototypes,
9448 which can conflict with char _doprnt(); below. */
9449#include <assert.h>
9450/* Override any gcc2 internal prototype to avoid an error. */
9451/* We use char because int might match the return type of a gcc2
9452 builtin and then its argument prototype would still apply. */
9453char _doprnt();
9454
9455int main() {
9456
9457/* The GNU C library defines this for functions which it implements
9458 to always fail with ENOSYS. Some functions are actually named
9459 something starting with __ and the normal name is an alias. */
9460#if defined (__stub__doprnt) || defined (__stub____doprnt)
9461choke me
9462#else
9463_doprnt();
9464#endif
9465
9466; return 0; }
9467EOF
fa3e4baf 9468if { (eval echo configure:9469: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a16d3c04
KB
9469 rm -rf conftest*
9470 eval "ac_cv_func__doprnt=yes"
9471else
9472 echo "configure: failed program was:" >&5
9473 cat conftest.$ac_ext >&5
9474 rm -rf conftest*
9475 eval "ac_cv_func__doprnt=no"
9476fi
9477rm -f conftest*
9478fi
9479
9480if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
9481 echo "$ac_t""yes" 1>&6
9482 cat >> confdefs.h <<\EOF
9483#define HAVE_DOPRNT 1
9484EOF
9485
9486else
9487 echo "$ac_t""no" 1>&6
9488fi
9489
9490fi
9491
9492
9493for ac_func in vsnprintf
9494do
9495echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
fa3e4baf 9496echo "configure:9497: checking for $ac_func" >&5
a16d3c04
KB
9497if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9498 echo $ac_n "(cached) $ac_c" 1>&6
9499else
9500 cat > conftest.$ac_ext <<EOF
fa3e4baf 9501#line 9502 "configure"
a16d3c04
KB
9502#include "confdefs.h"
9503/* System header to define __stub macros and hopefully few prototypes,
9504 which can conflict with char $ac_func(); below. */
9505#include <assert.h>
9506/* Override any gcc2 internal prototype to avoid an error. */
9507/* We use char because int might match the return type of a gcc2
9508 builtin and then its argument prototype would still apply. */
9509char $ac_func();
9510
9511int main() {
9512
9513/* The GNU C library defines this for functions which it implements
9514 to always fail with ENOSYS. Some functions are actually named
9515 something starting with __ and the normal name is an alias. */
9516#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9517choke me
9518#else
9519$ac_func();
9520#endif
9521
9522; return 0; }
9523EOF
fa3e4baf 9524if { (eval echo configure:9525: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a16d3c04
KB
9525 rm -rf conftest*
9526 eval "ac_cv_func_$ac_func=yes"
9527else
9528 echo "configure: failed program was:" >&5
9529 cat conftest.$ac_ext >&5
9530 rm -rf conftest*
9531 eval "ac_cv_func_$ac_func=no"
9532fi
9533rm -f conftest*
9534fi
9535
9536if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9537 echo "$ac_t""yes" 1>&6
9538 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9539 cat >> confdefs.h <<EOF
9540#define $ac_tr_func 1
9541EOF
9542 cat >> confdefs.h <<\EOF
9543#define HAVE_VSNPRINTF 1
9544EOF
9545
9546else
9547 echo "$ac_t""no" 1>&6
9548echo "configure: warning: unsafe function sprintf will be used instead of snprintf" 1>&2
9549
9550fi
9551done
9552
9553
9554
9555ac_ext=C
9556# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9557ac_cpp='$CXXCPP $CPPFLAGS'
9558ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
fa3e4baf 9559ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
a16d3c04
KB
9560cross_compiling=$ac_cv_prog_cxx_cross
9561
9562
9563echo $ac_n "checking for vsscanf""... $ac_c" 1>&6
fa3e4baf 9564echo "configure:9565: checking for vsscanf" >&5
a16d3c04
KB
9565if eval "test \"`echo '$''{'wx_cv_func_vsscanf'+set}'`\" = set"; then
9566 echo $ac_n "(cached) $ac_c" 1>&6
9567else
9568
9569 if test "$cross_compiling" = yes; then
9570 wx_cv_func_vsscanf=no
9571
9572else
9573 cat > conftest.$ac_ext <<EOF
fa3e4baf 9574#line 9575 "configure"
a16d3c04
KB
9575#include "confdefs.h"
9576#ifdef __cplusplus
9577extern "C" void exit(int);
9578#endif
9579
9580 #include <stdio.h>
9581 #include <stdarg.h>
9582
9583 int try_vsscanf(const char *format, ...)
9584 {
9585 va_list ap;
9586 va_start(ap, format);
9587
9588 vsscanf("17", format, ap);
9589
9590 va_end(ap);
9591 }
9592
9593 int main()
9594 {
9595 int i;
9596 try_vsscanf("%d", &i);
9597 return i == 17 ? 0 : 1;
9598 }
9599
9600EOF
fa3e4baf 9601if { (eval echo configure:9602: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
a16d3c04
KB
9602then
9603
9604 cat >> confdefs.h <<\EOF
9605#define HAVE_VSSCANF 1
9606EOF
9607
9608 wx_cv_func_vsscanf=yes
9609
9610else
9611 echo "configure: failed program was:" >&5
9612 cat conftest.$ac_ext >&5
9613 rm -fr conftest*
9614 wx_cv_func_vsscanf=no
9615fi
9616rm -fr conftest*
9617fi
9618
9619
9620fi
9621
9622echo "$ac_t""$wx_cv_func_vsscanf" 1>&6
9623
9624ac_ext=c
9625# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9626ac_cpp='$CPP $CPPFLAGS'
9627ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
fa3e4baf 9628ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
a16d3c04
KB
9629cross_compiling=$ac_cv_prog_cc_cross
9630
9631
9632for ac_func in vfork
9633do
9634echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
fa3e4baf 9635echo "configure:9636: checking for $ac_func" >&5
a16d3c04
KB
9636if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9637 echo $ac_n "(cached) $ac_c" 1>&6
9638else
9639 cat > conftest.$ac_ext <<EOF
fa3e4baf 9640#line 9641 "configure"
a16d3c04
KB
9641#include "confdefs.h"
9642/* System header to define __stub macros and hopefully few prototypes,
9643 which can conflict with char $ac_func(); below. */
9644#include <assert.h>
9645/* Override any gcc2 internal prototype to avoid an error. */
9646/* We use char because int might match the return type of a gcc2
9647 builtin and then its argument prototype would still apply. */
9648char $ac_func();
9649
9650int main() {
9651
9652/* The GNU C library defines this for functions which it implements
9653 to always fail with ENOSYS. Some functions are actually named
9654 something starting with __ and the normal name is an alias. */
9655#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9656choke me
9657#else
9658$ac_func();
9659#endif
9660
9661; return 0; }
9662EOF
fa3e4baf 9663if { (eval echo configure:9664: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a16d3c04
KB
9664 rm -rf conftest*
9665 eval "ac_cv_func_$ac_func=yes"
9666else
9667 echo "configure: failed program was:" >&5
9668 cat conftest.$ac_ext >&5
9669 rm -rf conftest*
9670 eval "ac_cv_func_$ac_func=no"
9671fi
9672rm -f conftest*
9673fi
9674
9675if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9676 echo "$ac_t""yes" 1>&6
9677 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9678 cat >> confdefs.h <<EOF
9679#define $ac_tr_func 1
9680EOF
9681
9682else
9683 echo "$ac_t""no" 1>&6
9684fi
9685done
9686
9687
9688POSIX4_LINK=
9689for ac_func in nanosleep
9690do
9691echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
fa3e4baf 9692echo "configure:9693: checking for $ac_func" >&5
a16d3c04
KB
9693if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9694 echo $ac_n "(cached) $ac_c" 1>&6
9695else
9696 cat > conftest.$ac_ext <<EOF
fa3e4baf 9697#line 9698 "configure"
a16d3c04
KB
9698#include "confdefs.h"
9699/* System header to define __stub macros and hopefully few prototypes,
9700 which can conflict with char $ac_func(); below. */
9701#include <assert.h>
9702/* Override any gcc2 internal prototype to avoid an error. */
9703/* We use char because int might match the return type of a gcc2
9704 builtin and then its argument prototype would still apply. */
9705char $ac_func();
9706
9707int main() {
9708
9709/* The GNU C library defines this for functions which it implements
9710 to always fail with ENOSYS. Some functions are actually named
9711 something starting with __ and the normal name is an alias. */
9712#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9713choke me
9714#else
9715$ac_func();
9716#endif
9717
9718; return 0; }
9719EOF
fa3e4baf 9720if { (eval echo configure:9721: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a16d3c04
KB
9721 rm -rf conftest*
9722 eval "ac_cv_func_$ac_func=yes"
9723else
9724 echo "configure: failed program was:" >&5
9725 cat conftest.$ac_ext >&5
9726 rm -rf conftest*
9727 eval "ac_cv_func_$ac_func=no"
9728fi
9729rm -f conftest*
9730fi
9731
9732if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9733 echo "$ac_t""yes" 1>&6
9734 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9735 cat >> confdefs.h <<EOF
9736#define $ac_tr_func 1
9737EOF
9738 cat >> confdefs.h <<\EOF
9739#define HAVE_NANOSLEEP 1
9740EOF
9741
9742else
9743 echo "$ac_t""no" 1>&6
9744echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6
fa3e4baf 9745echo "configure:9746: checking for nanosleep in -lposix4" >&5
a16d3c04
KB
9746ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'`
9747if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9748 echo $ac_n "(cached) $ac_c" 1>&6
9749else
9750 ac_save_LIBS="$LIBS"
9751LIBS="-lposix4 $LIBS"
9752cat > conftest.$ac_ext <<EOF
fa3e4baf 9753#line 9754 "configure"
a16d3c04
KB
9754#include "confdefs.h"
9755/* Override any gcc2 internal prototype to avoid an error. */
9756/* We use char because int might match the return type of a gcc2
9757 builtin and then its argument prototype would still apply. */
9758char nanosleep();
9759
9760int main() {
9761nanosleep()
9762; return 0; }
9763EOF
fa3e4baf 9764if { (eval echo configure:9765: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a16d3c04
KB
9765 rm -rf conftest*
9766 eval "ac_cv_lib_$ac_lib_var=yes"
9767else
9768 echo "configure: failed program was:" >&5
9769 cat conftest.$ac_ext >&5
9770 rm -rf conftest*
9771 eval "ac_cv_lib_$ac_lib_var=no"
9772fi
9773rm -f conftest*
9774LIBS="$ac_save_LIBS"
9775
9776fi
9777if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9778 echo "$ac_t""yes" 1>&6
9779
9780 cat >> confdefs.h <<\EOF
9781#define HAVE_NANOSLEEP 1
9782EOF
9783
9784 POSIX4_LINK="-lposix4"
9785
9786else
9787 echo "$ac_t""no" 1>&6
9788
9789 for ac_func in usleep
9790do
9791echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
fa3e4baf 9792echo "configure:9793: checking for $ac_func" >&5
a16d3c04
KB
9793if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9794 echo $ac_n "(cached) $ac_c" 1>&6
9795else
9796 cat > conftest.$ac_ext <<EOF
fa3e4baf 9797#line 9798 "configure"
a16d3c04
KB
9798#include "confdefs.h"
9799/* System header to define __stub macros and hopefully few prototypes,
9800 which can conflict with char $ac_func(); below. */
9801#include <assert.h>
9802/* Override any gcc2 internal prototype to avoid an error. */
9803/* We use char because int might match the return type of a gcc2
9804 builtin and then its argument prototype would still apply. */
9805char $ac_func();
9806
9807int main() {
9808
9809/* The GNU C library defines this for functions which it implements
9810 to always fail with ENOSYS. Some functions are actually named
9811 something starting with __ and the normal name is an alias. */
9812#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9813choke me
9814#else
9815$ac_func();
9816#endif
9817
9818; return 0; }
9819EOF
fa3e4baf 9820if { (eval echo configure:9821: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a16d3c04
KB
9821 rm -rf conftest*
9822 eval "ac_cv_func_$ac_func=yes"
9823else
9824 echo "configure: failed program was:" >&5
9825 cat conftest.$ac_ext >&5
9826 rm -rf conftest*
9827 eval "ac_cv_func_$ac_func=no"
9828fi
9829rm -f conftest*
9830fi
9831
9832if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9833 echo "$ac_t""yes" 1>&6
9834 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9835 cat >> confdefs.h <<EOF
9836#define $ac_tr_func 1
9837EOF
9838 cat >> confdefs.h <<\EOF
9839#define HAVE_USLEEP 1
9840EOF
9841
9842else
9843 echo "$ac_t""no" 1>&6
9844echo "configure: warning: wxSleep() function will not work" 1>&2
9845fi
9846done
9847
9848
9849fi
9850
9851
9852fi
9853done
9854
9855
9856for ac_func in uname gethostname
9857do
9858echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
fa3e4baf 9859echo "configure:9860: checking for $ac_func" >&5
a16d3c04
KB
9860if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9861 echo $ac_n "(cached) $ac_c" 1>&6
9862else
9863 cat > conftest.$ac_ext <<EOF
fa3e4baf 9864#line 9865 "configure"
a16d3c04
KB
9865#include "confdefs.h"
9866/* System header to define __stub macros and hopefully few prototypes,
9867 which can conflict with char $ac_func(); below. */
9868#include <assert.h>
9869/* Override any gcc2 internal prototype to avoid an error. */
9870/* We use char because int might match the return type of a gcc2
9871 builtin and then its argument prototype would still apply. */
9872char $ac_func();
9873
9874int main() {
9875
9876/* The GNU C library defines this for functions which it implements
9877 to always fail with ENOSYS. Some functions are actually named
9878 something starting with __ and the normal name is an alias. */
9879#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9880choke me
9881#else
9882$ac_func();
9883#endif
9884
9885; return 0; }
9886EOF
fa3e4baf 9887if { (eval echo configure:9888: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a16d3c04
KB
9888 rm -rf conftest*
9889 eval "ac_cv_func_$ac_func=yes"
9890else
9891 echo "configure: failed program was:" >&5
9892 cat conftest.$ac_ext >&5
9893 rm -rf conftest*
9894 eval "ac_cv_func_$ac_func=no"
9895fi
9896rm -f conftest*
9897fi
9898
9899if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9900 echo "$ac_t""yes" 1>&6
9901 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9902 cat >> confdefs.h <<EOF
9903#define $ac_tr_func 1
9904EOF
9905 break
9906else
9907 echo "$ac_t""no" 1>&6
9908fi
9909done
9910
9911
9912for ac_func in inet_addr
9913do
9914echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
fa3e4baf 9915echo "configure:9916: checking for $ac_func" >&5
a16d3c04
KB
9916if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9917 echo $ac_n "(cached) $ac_c" 1>&6
9918else
9919 cat > conftest.$ac_ext <<EOF
fa3e4baf 9920#line 9921 "configure"
a16d3c04
KB
9921#include "confdefs.h"
9922/* System header to define __stub macros and hopefully few prototypes,
9923 which can conflict with char $ac_func(); below. */
9924#include <assert.h>
9925/* Override any gcc2 internal prototype to avoid an error. */
9926/* We use char because int might match the return type of a gcc2
9927 builtin and then its argument prototype would still apply. */
9928char $ac_func();
9929
9930int main() {
9931
9932/* The GNU C library defines this for functions which it implements
9933 to always fail with ENOSYS. Some functions are actually named
9934 something starting with __ and the normal name is an alias. */
9935#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9936choke me
9937#else
9938$ac_func();
9939#endif
9940
9941; return 0; }
9942EOF
fa3e4baf 9943if { (eval echo configure:9944: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a16d3c04
KB
9944 rm -rf conftest*
9945 eval "ac_cv_func_$ac_func=yes"
9946else
9947 echo "configure: failed program was:" >&5
9948 cat conftest.$ac_ext >&5
9949 rm -rf conftest*
9950 eval "ac_cv_func_$ac_func=no"
9951fi
9952rm -f conftest*
9953fi
9954
9955if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9956 echo "$ac_t""yes" 1>&6
9957 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9958 cat >> confdefs.h <<EOF
9959#define $ac_tr_func 1
9960EOF
9961
9962else
9963 echo "$ac_t""no" 1>&6
9964fi
9965done
9966
9967for ac_func in inet_aton
9968do
9969echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
fa3e4baf 9970echo "configure:9971: checking for $ac_func" >&5
a16d3c04
KB
9971if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9972 echo $ac_n "(cached) $ac_c" 1>&6
9973else
9974 cat > conftest.$ac_ext <<EOF
fa3e4baf 9975#line 9976 "configure"
a16d3c04
KB
9976#include "confdefs.h"
9977/* System header to define __stub macros and hopefully few prototypes,
9978 which can conflict with char $ac_func(); below. */
9979#include <assert.h>
9980/* Override any gcc2 internal prototype to avoid an error. */
9981/* We use char because int might match the return type of a gcc2
9982 builtin and then its argument prototype would still apply. */
9983char $ac_func();
9984
9985int main() {
9986
9987/* The GNU C library defines this for functions which it implements
9988 to always fail with ENOSYS. Some functions are actually named
9989 something starting with __ and the normal name is an alias. */
9990#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9991choke me
9992#else
9993$ac_func();
9994#endif
9995
9996; return 0; }
9997EOF
fa3e4baf 9998if { (eval echo configure:9999: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a16d3c04
KB
9999 rm -rf conftest*
10000 eval "ac_cv_func_$ac_func=yes"
10001else
10002 echo "configure: failed program was:" >&5
10003 cat conftest.$ac_ext >&5
10004 rm -rf conftest*
10005 eval "ac_cv_func_$ac_func=no"
10006fi
10007rm -f conftest*
10008fi
10009
10010if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10011 echo "$ac_t""yes" 1>&6
10012 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10013 cat >> confdefs.h <<EOF
10014#define $ac_tr_func 1
10015EOF
10016
10017else
10018 echo "$ac_t""no" 1>&6
10019fi
10020done
10021
10022echo $ac_n "checking for inet_aton in -lresolv""... $ac_c" 1>&6
fa3e4baf 10023echo "configure:10024: checking for inet_aton in -lresolv" >&5
a16d3c04
KB
10024ac_lib_var=`echo resolv'_'inet_aton | sed 'y%./+-%__p_%'`
10025if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10026 echo $ac_n "(cached) $ac_c" 1>&6
10027else
10028 ac_save_LIBS="$LIBS"
10029LIBS="-lresolv $LIBS"
10030cat > conftest.$ac_ext <<EOF
fa3e4baf 10031#line 10032 "configure"
a16d3c04
KB
10032#include "confdefs.h"
10033/* Override any gcc2 internal prototype to avoid an error. */
10034/* We use char because int might match the return type of a gcc2
10035 builtin and then its argument prototype would still apply. */
10036char inet_aton();
10037
10038int main() {
10039inet_aton()
10040; return 0; }
10041EOF
fa3e4baf 10042if { (eval echo configure:10043: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a16d3c04
KB
10043 rm -rf conftest*
10044 eval "ac_cv_lib_$ac_lib_var=yes"
10045else
10046 echo "configure: failed program was:" >&5
10047 cat conftest.$ac_ext >&5
10048 rm -rf conftest*
10049 eval "ac_cv_lib_$ac_lib_var=no"
10050fi
10051rm -f conftest*
10052LIBS="$ac_save_LIBS"
10053
10054fi
10055if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10056 echo "$ac_t""yes" 1>&6
10057 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
10058 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
10059 cat >> confdefs.h <<EOF
10060#define $ac_tr_lib 1
10061EOF
10062
10063 LIBS="-lresolv $LIBS"
10064
10065else
10066 echo "$ac_t""no" 1>&6
10067fi
10068
10069
10070
10071cat > confcache <<\EOF
10072# This file is a shell script that caches the results of configure
10073# tests run on this system so they can be shared between configure
10074# scripts and configure runs. It is not useful on other systems.
10075# If it contains results you don't want to keep, you may remove or edit it.
10076#
10077# By default, configure uses ./config.cache as the cache file,
10078# creating it if it does not exist already. You can give configure
10079# the --cache-file=FILE option to use a different cache file; that is
10080# what configure does when it calls configure scripts in
10081# subdirectories, so they share the cache.
10082# Giving --cache-file=/dev/null disables caching, for debugging configure.
10083# config.status only pays attention to the cache file if you give it the
10084# --recheck option to rerun configure.
10085#
10086EOF
10087# The following way of writing the cache mishandles newlines in values,
10088# but we know of no workaround that is simple, portable, and efficient.
10089# So, don't put newlines in cache variables' values.
10090# Ultrix sh set writes to stderr and can't be redirected directly,
10091# and sets the high bit in the cache file unless we assign to the vars.
10092(set) 2>&1 |
fa3e4baf 10093 case `(ac_space=' '; set | grep ac_space) 2>&1` in
a16d3c04
KB
10094 *ac_space=\ *)
10095 # `set' does not quote correctly, so add quotes (double-quote substitution
10096 # turns \\\\ into \\, and sed turns \\ into \).
10097 sed -n \
10098 -e "s/'/'\\\\''/g" \
10099 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
10100 ;;
10101 *)
10102 # `set' quotes correctly as required by POSIX, so do not add quotes.
10103 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
10104 ;;
10105 esac >> confcache
10106if cmp -s $cache_file confcache; then
10107 :
10108else
10109 if test -w $cache_file; then
10110 echo "updating cache $cache_file"
10111 cat confcache > $cache_file
10112 else
10113 echo "not updating unwritable cache $cache_file"
10114 fi
10115fi
10116rm -f confcache
10117
10118
10119
10120if test "$USE_UNIX" = 1; then
10121
10122
10123THREADS_LINK=""
10124THREADS_OBJ=""
10125
10126if test "$wxUSE_THREADS" = "yes" ; then
10127 if test "$wxUSE_WINE" = 1 ; then
10128 echo "configure: warning: Threads are not supported under WINE" 1>&2
10129 wxUSE_THREADS="no"
10130 fi
10131fi
10132
10133if test "$wxUSE_THREADS" = "yes" ; then
1c8515f9 10134
a16d3c04 10135 echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6
fa3e4baf 10136echo "configure:10137: checking for pthread_create in -lpthread" >&5
a16d3c04
KB
10137ac_lib_var=`echo pthread'_'pthread_create | sed 'y%./+-%__p_%'`
10138if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10139 echo $ac_n "(cached) $ac_c" 1>&6
10140else
10141 ac_save_LIBS="$LIBS"
10142LIBS="-lpthread $LIBS"
10143cat > conftest.$ac_ext <<EOF
fa3e4baf 10144#line 10145 "configure"
a16d3c04
KB
10145#include "confdefs.h"
10146/* Override any gcc2 internal prototype to avoid an error. */
10147/* We use char because int might match the return type of a gcc2
10148 builtin and then its argument prototype would still apply. */
10149char pthread_create();
10150
10151int main() {
10152pthread_create()
10153; return 0; }
10154EOF
fa3e4baf 10155if { (eval echo configure:10156: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a16d3c04
KB
10156 rm -rf conftest*
10157 eval "ac_cv_lib_$ac_lib_var=yes"
10158else
10159 echo "configure: failed program was:" >&5
10160 cat conftest.$ac_ext >&5
10161 rm -rf conftest*
10162 eval "ac_cv_lib_$ac_lib_var=no"
10163fi
10164rm -f conftest*
10165LIBS="$ac_save_LIBS"
10166
10167fi
10168if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10169 echo "$ac_t""yes" 1>&6
10170
10171 THREADS_OBJ="threadpsx.lo"
10172 THREADS_LINK="pthread"
10173
10174else
10175 echo "$ac_t""no" 1>&6
10176
10177 echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6
fa3e4baf 10178echo "configure:10179: checking for pthread_create in -lc_r" >&5
a16d3c04
KB
10179ac_lib_var=`echo c_r'_'pthread_create | sed 'y%./+-%__p_%'`
10180if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10181 echo $ac_n "(cached) $ac_c" 1>&6
10182else
10183 ac_save_LIBS="$LIBS"
10184LIBS="-lc_r $LIBS"
10185cat > conftest.$ac_ext <<EOF
fa3e4baf 10186#line 10187 "configure"
a16d3c04
KB
10187#include "confdefs.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 pthread_create();
10192
10193int main() {
10194pthread_create()
10195; return 0; }
10196EOF
fa3e4baf 10197if { (eval echo configure:10198: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a16d3c04
KB
10198 rm -rf conftest*
10199 eval "ac_cv_lib_$ac_lib_var=yes"
10200else
10201 echo "configure: failed program was:" >&5
10202 cat conftest.$ac_ext >&5
10203 rm -rf conftest*
10204 eval "ac_cv_lib_$ac_lib_var=no"
10205fi
10206rm -f conftest*
10207LIBS="$ac_save_LIBS"
10208
10209fi
10210if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10211 echo "$ac_t""yes" 1>&6
10212
10213 THREADS_OBJ="threadpsx.lo"
10214 THREADS_LINK="c_r"
10215
10216else
10217 echo "$ac_t""no" 1>&6
10218
10219 ac_safe=`echo "sys/prctl.h" | sed 'y%./+-%__p_%'`
10220echo $ac_n "checking for sys/prctl.h""... $ac_c" 1>&6
fa3e4baf 10221echo "configure:10222: checking for sys/prctl.h" >&5
a16d3c04
KB
10222if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10223 echo $ac_n "(cached) $ac_c" 1>&6
10224else
10225 cat > conftest.$ac_ext <<EOF
fa3e4baf 10226#line 10227 "configure"
a16d3c04
KB
10227#include "confdefs.h"
10228#include <sys/prctl.h>
10229EOF
10230ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
fa3e4baf
KB
10231{ (eval echo configure:10232: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10232ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
a16d3c04
KB
10233if test -z "$ac_err"; then
10234 rm -rf conftest*
10235 eval "ac_cv_header_$ac_safe=yes"
10236else
10237 echo "$ac_err" >&5
10238 echo "configure: failed program was:" >&5
10239 cat conftest.$ac_ext >&5
10240 rm -rf conftest*
10241 eval "ac_cv_header_$ac_safe=no"
10242fi
10243rm -f conftest*
10244fi
10245if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10246 echo "$ac_t""yes" 1>&6
10247
10248 THREADS_OBJ="threadsgi.lo"
10249
10250else
10251 echo "$ac_t""no" 1>&6
10252fi
10253
10254
10255fi
10256
10257
10258fi
10259
10260
10261 if test -z "$THREADS_OBJ" ; then
10262 wxUSE_THREADS=no
10263 echo "configure: warning: No thread support on this system" 1>&2
10264 fi
10265fi
10266
10267if test "$wxUSE_THREADS" = "yes" ; then
10268
10269 for ac_hdr in sched.h
10270do
10271ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10272echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
fa3e4baf 10273echo "configure:10274: checking for $ac_hdr" >&5
a16d3c04
KB
10274if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10275 echo $ac_n "(cached) $ac_c" 1>&6
10276else
10277 cat > conftest.$ac_ext <<EOF
fa3e4baf 10278#line 10279 "configure"
a16d3c04
KB
10279#include "confdefs.h"
10280#include <$ac_hdr>
10281EOF
10282ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
fa3e4baf
KB
10283{ (eval echo configure:10284: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10284ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
a16d3c04
KB
10285if test -z "$ac_err"; then
10286 rm -rf conftest*
10287 eval "ac_cv_header_$ac_safe=yes"
10288else
10289 echo "$ac_err" >&5
10290 echo "configure: failed program was:" >&5
10291 cat conftest.$ac_ext >&5
10292 rm -rf conftest*
10293 eval "ac_cv_header_$ac_safe=no"
10294fi
10295rm -f conftest*
10296fi
10297if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10298 echo "$ac_t""yes" 1>&6
10299 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10300 cat >> confdefs.h <<EOF
10301#define $ac_tr_hdr 1
10302EOF
10303
10304else
10305 echo "$ac_t""no" 1>&6
10306fi
10307done
10308
10309
10310 echo $ac_n "checking for sched_yield in -l$THREADS_LINK""... $ac_c" 1>&6
fa3e4baf 10311echo "configure:10312: checking for sched_yield in -l$THREADS_LINK" >&5
a16d3c04
KB
10312ac_lib_var=`echo $THREADS_LINK'_'sched_yield | sed 'y%./+-%__p_%'`
10313if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10314 echo $ac_n "(cached) $ac_c" 1>&6
10315else
10316 ac_save_LIBS="$LIBS"
10317LIBS="-l$THREADS_LINK $LIBS"
10318cat > conftest.$ac_ext <<EOF
fa3e4baf 10319#line 10320 "configure"
a16d3c04
KB
10320#include "confdefs.h"
10321/* Override any gcc2 internal prototype to avoid an error. */
10322/* We use char because int might match the return type of a gcc2
10323 builtin and then its argument prototype would still apply. */
10324char sched_yield();
10325
10326int main() {
10327sched_yield()
10328; return 0; }
10329EOF
fa3e4baf 10330if { (eval echo configure:10331: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a16d3c04
KB
10331 rm -rf conftest*
10332 eval "ac_cv_lib_$ac_lib_var=yes"
10333else
10334 echo "configure: failed program was:" >&5
10335 cat conftest.$ac_ext >&5
10336 rm -rf conftest*
10337 eval "ac_cv_lib_$ac_lib_var=no"
10338fi
10339rm -f conftest*
10340LIBS="$ac_save_LIBS"
10341
10342fi
10343if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10344 echo "$ac_t""yes" 1>&6
10345 cat >> confdefs.h <<\EOF
10346#define HAVE_SCHED_YIELD 1
10347EOF
10348
10349else
10350 echo "$ac_t""no" 1>&6
10351echo $ac_n "checking for sched_yield in -l"posix4"""... $ac_c" 1>&6
fa3e4baf 10352echo "configure:10353: checking for sched_yield in -l"posix4"" >&5
a16d3c04
KB
10353ac_lib_var=`echo "posix4"'_'sched_yield | sed 'y%./+-%__p_%'`
10354if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10355 echo $ac_n "(cached) $ac_c" 1>&6
10356else
10357 ac_save_LIBS="$LIBS"
10358LIBS="-l"posix4" $LIBS"
10359cat > conftest.$ac_ext <<EOF
fa3e4baf 10360#line 10361 "configure"
a16d3c04
KB
10361#include "confdefs.h"
10362/* Override any gcc2 internal prototype to avoid an error. */
10363/* We use char because int might match the return type of a gcc2
10364 builtin and then its argument prototype would still apply. */
10365char sched_yield();
10366
10367int main() {
10368sched_yield()
10369; return 0; }
10370EOF
fa3e4baf 10371if { (eval echo configure:10372: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a16d3c04
KB
10372 rm -rf conftest*
10373 eval "ac_cv_lib_$ac_lib_var=yes"
10374else
10375 echo "configure: failed program was:" >&5
10376 cat conftest.$ac_ext >&5
10377 rm -rf conftest*
10378 eval "ac_cv_lib_$ac_lib_var=no"
10379fi
10380rm -f conftest*
10381LIBS="$ac_save_LIBS"
10382
10383fi
10384if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10385 echo "$ac_t""yes" 1>&6
10386 cat >> confdefs.h <<\EOF
10387#define HAVE_SCHED_YIELD 1
10388EOF
10389 POSIX4_LINK="-lposix4"
10390else
10391 echo "$ac_t""no" 1>&6
10392echo "configure: warning: wxThread::Yield will not work properly" 1>&2
10393
10394fi
10395
10396
10397fi
10398
10399
10400 echo $ac_n "checking for pthread_attr_getschedpolicy in -l$THREADS_LINK""... $ac_c" 1>&6
fa3e4baf 10401echo "configure:10402: checking for pthread_attr_getschedpolicy in -l$THREADS_LINK" >&5
a16d3c04
KB
10402ac_lib_var=`echo $THREADS_LINK'_'pthread_attr_getschedpolicy | sed 'y%./+-%__p_%'`
10403if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10404 echo $ac_n "(cached) $ac_c" 1>&6
10405else
10406 ac_save_LIBS="$LIBS"
10407LIBS="-l$THREADS_LINK $LIBS"
10408cat > conftest.$ac_ext <<EOF
fa3e4baf 10409#line 10410 "configure"
a16d3c04
KB
10410#include "confdefs.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 pthread_attr_getschedpolicy();
10415
10416int main() {
10417pthread_attr_getschedpolicy()
10418; return 0; }
10419EOF
fa3e4baf 10420if { (eval echo configure:10421: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a16d3c04
KB
10421 rm -rf conftest*
10422 eval "ac_cv_lib_$ac_lib_var=yes"
10423else
10424 echo "configure: failed program was:" >&5
10425 cat conftest.$ac_ext >&5
10426 rm -rf conftest*
10427 eval "ac_cv_lib_$ac_lib_var=no"
10428fi
10429rm -f conftest*
10430LIBS="$ac_save_LIBS"
10431
10432fi
10433if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10434 echo "$ac_t""yes" 1>&6
10435 cat >> confdefs.h <<\EOF
10436#define HAVE_THREAD_PRIORITY_FUNCTIONS 1
10437EOF
10438
10439else
10440 echo "$ac_t""no" 1>&6
10441echo $ac_n "checking for pthread_attr_getschedpolicy in -l"posix4"""... $ac_c" 1>&6
fa3e4baf 10442echo "configure:10443: checking for pthread_attr_getschedpolicy in -l"posix4"" >&5
a16d3c04
KB
10443ac_lib_var=`echo "posix4"'_'pthread_attr_getschedpolicy | sed 'y%./+-%__p_%'`
10444if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10445 echo $ac_n "(cached) $ac_c" 1>&6
10446else
10447 ac_save_LIBS="$LIBS"
10448LIBS="-l"posix4" $LIBS"
10449cat > conftest.$ac_ext <<EOF
fa3e4baf 10450#line 10451 "configure"
a16d3c04
KB
10451#include "confdefs.h"
10452/* Override any gcc2 internal prototype to avoid an error. */
10453/* We use char because int might match the return type of a gcc2
10454 builtin and then its argument prototype would still apply. */
10455char pthread_attr_getschedpolicy();
10456
10457int main() {
10458pthread_attr_getschedpolicy()
10459; return 0; }
10460EOF
fa3e4baf 10461if { (eval echo configure:10462: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a16d3c04
KB
10462 rm -rf conftest*
10463 eval "ac_cv_lib_$ac_lib_var=yes"
10464else
10465 echo "configure: failed program was:" >&5
10466 cat conftest.$ac_ext >&5
10467 rm -rf conftest*
10468 eval "ac_cv_lib_$ac_lib_var=no"
10469fi
10470rm -f conftest*
10471LIBS="$ac_save_LIBS"
10472
10473fi
10474if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10475 echo "$ac_t""yes" 1>&6
10476 cat >> confdefs.h <<\EOF
10477#define HAVE_THREAD_PRIORITY_FUNCTIONS 1
10478EOF
10479 POSIX4_LINK="-lposix4"
10480else
10481 echo "$ac_t""no" 1>&6
10482echo "configure: warning: Setting thread priority will not work" 1>&2
10483
10484fi
10485
10486
10487fi
10488
10489
10490 echo $ac_n "checking for pthread_cancel in -l$THREADS_LINK""... $ac_c" 1>&6
fa3e4baf 10491echo "configure:10492: checking for pthread_cancel in -l$THREADS_LINK" >&5
a16d3c04
KB
10492ac_lib_var=`echo $THREADS_LINK'_'pthread_cancel | sed 'y%./+-%__p_%'`
10493if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10494 echo $ac_n "(cached) $ac_c" 1>&6
10495else
10496 ac_save_LIBS="$LIBS"
10497LIBS="-l$THREADS_LINK $LIBS"
10498cat > conftest.$ac_ext <<EOF
fa3e4baf 10499#line 10500 "configure"
a16d3c04
KB
10500#include "confdefs.h"
10501/* Override any gcc2 internal prototype to avoid an error. */
10502/* We use char because int might match the return type of a gcc2
10503 builtin and then its argument prototype would still apply. */
10504char pthread_cancel();
10505
10506int main() {
10507pthread_cancel()
10508; return 0; }
10509EOF
fa3e4baf 10510if { (eval echo configure:10511: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a16d3c04
KB
10511 rm -rf conftest*
10512 eval "ac_cv_lib_$ac_lib_var=yes"
10513else
10514 echo "configure: failed program was:" >&5
10515 cat conftest.$ac_ext >&5
10516 rm -rf conftest*
10517 eval "ac_cv_lib_$ac_lib_var=no"
10518fi
10519rm -f conftest*
10520LIBS="$ac_save_LIBS"
10521
10522fi
10523if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10524 echo "$ac_t""yes" 1>&6
10525 cat >> confdefs.h <<\EOF
10526#define HAVE_PTHREAD_CANCEL 1
10527EOF
10528
10529else
10530 echo "$ac_t""no" 1>&6
10531echo "configure: warning: wxThread::Kill() will not work properly" 1>&2
10532fi
10533
10534
10535 echo $ac_n "checking for pthread_cleanup_push/pop""... $ac_c" 1>&6
fa3e4baf 10536echo "configure:10537: checking for pthread_cleanup_push/pop" >&5
a16d3c04
KB
10537if eval "test \"`echo '$''{'wx_cv_func_pthread_cleanup_push'+set}'`\" = set"; then
10538 echo $ac_n "(cached) $ac_c" 1>&6
10539else
10540
10541 cat > conftest.$ac_ext <<EOF
fa3e4baf 10542#line 10543 "configure"
a16d3c04
KB
10543#include "confdefs.h"
10544#include <pthread.h>
10545int main() {
10546
10547 pthread_cleanup_push(NULL, NULL);
10548 pthread_cleanup_pop(0);
10549
10550; return 0; }
10551EOF
fa3e4baf 10552if { (eval echo configure:10553: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a16d3c04
KB
10553 rm -rf conftest*
10554
10555 wx_cv_func_pthread_cleanup_push=yes
10556 cat >> confdefs.h <<\EOF
10557#define HAVE_THREAD_CLEANUP_FUNCTIONS 1
10558EOF
10559
10560
10561else
10562 echo "configure: failed program was:" >&5
10563 cat conftest.$ac_ext >&5
10564 rm -rf conftest*
10565
10566 wx_cv_func_pthread_cleanup_push=no
10567
10568fi
10569rm -f conftest*
10570
10571fi
10572
10573echo "$ac_t""$wx_cv_func_pthread_cleanup_push" 1>&6
10574
10575 THREADS_LINK="-l$THREADS_LINK"
10576fi
10577
10578fi
10579
10580if test "$wxUSE_THREADS" = "yes"; then
10581 cat >> confdefs.h <<\EOF
10582#define wxUSE_THREADS 1
10583EOF
10584
10585
10586 CFLAGS="${CFLAGS} -D_REENTRANT"
10587 CXXFLAGS="${CXXFLAGS} -D_REENTRANT"
10588
10589 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
10590fi
10591
10592if test "$WXGTK12" = 1 ; then
10593 cat >> confdefs.h <<EOF
10594#define __WXGTK12__ $WXGTK12
10595EOF
10596
10597fi
10598
10599if test "$WXWINE" = 1 ; then
10600 TOOLKIT_DEF="${TOOLKIT_DEF} -D__WXWINE__"
10601fi
10602
10603if test "$wxUSE_CYGWIN" = 1 ; then
10604 TOOLKIT_DEF="${TOOLKIT_DEF} -D__WIN95__"
10605fi
10606
10607WXDEBUG=
10608
10609if test "$wxUSE_DEBUG_INFO" = "yes" ; then
10610 WXDEBUG="-g"
10611 wxUSE_OPTIMISE=no
10612fi
10613
10614if test "$wxUSE_DEBUG_GDB" = "yes" ; then
10615 wxUSE_DEBUG_INFO=yes
10616 WXDEBUG="-ggdb"
10617fi
10618
10619if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
10620 cat >> confdefs.h <<\EOF
10621#define WXDEBUG 1
10622EOF
10623
10624 WXDEBUG_DEFINE="-D__WXDEBUG__"
10625else
10626 if test "$wxUSE_GTK" = 1 ; then
10627 WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS"
10628 fi
10629fi
10630
10631if test "$wxUSE_MEM_TRACING" = "yes" ; then
10632 cat >> confdefs.h <<\EOF
10633#define wxUSE_MEMORY_TRACING 1
10634EOF
10635
10636 cat >> confdefs.h <<\EOF
10637#define wxUSE_GLOBAL_MEMORY_OPERATORS 1
10638EOF
10639
10640 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
10641fi
10642
10643if test "$wxUSE_DMALLOC" = "yes" ; then
10644 DMALLOC_LINK="-ldmalloc"
10645fi
10646
10647PROFILE=
10648if test "$wxUSE_PROFILE" = "yes" ; then
10649 PROFILE="-pg"
10650fi
10651
10652DEP_INFO_FLAGS=
10653if test "$GCC" = yes ; then
10654 if test "$wxUSE_NO_RTTI" = "yes" ; then
10655 WXDEBUG_DEFINE="$WXDEBUG_DEFINE -fno-rtti"
10656 fi
10657 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
10658 WXDEBUG_DEFINE="$WXDEBUG_DEFINE -fno-exceptions"
10659 fi
10660 if test "$wxUSE_PERMISSIVE" = "yes" ; then
10661 CFLAGS="${CFLAGS} -fpermissive"
10662 CXXFLAGS="${CXXFLAGS} -fpermissive"
10663 fi
10664 if test "$wxUSE_NO_DEPS" = "no" ; then
10665 DEP_INFO_FLAGS="-MMD"
10666 fi
1c8515f9
KB
10667fi
10668
10669
a16d3c04
KB
10670CXXFLAGS=`echo "${CXXFLAGS}" | sed "s/\-O.//g" `
10671CFLAGS=`echo "${CFLAGS}" | sed "s/\-O.//g" `
10672if test "$wxUSE_OPTIMISE" = "no" ; then
10673 OPTIMISE=
10674else
10675 if test "$GCC" = yes ; then
10676 OPTIMISE="-O2"
10677 case "${host}" in
10678 i586-*-*|i686-*-* )
10679 OPTIMISE="${OPTIMISE} "
10680 ;;
10681 esac
10682 else
10683 OPTIMISE="-O"
10684 fi
10685fi
10686
10687
10688ZLIB_INCLUDE=
10689if test "$wxUSE_ZLIB" = "yes" ; then
10690 cat >> confdefs.h <<\EOF
10691#define wxUSE_ZLIB 1
10692EOF
10693
10694 ZLIB_INCLUDE="-I\${top_srcdir}/src/zlib"
10695fi
10696
10697PNG_INCLUDE=
10698if test "$wxUSE_LIBPNG" = "yes" ; then
10699 cat >> confdefs.h <<\EOF
10700#define wxUSE_LIBPNG 1
10701EOF
10702
10703 PNG_INCLUDE="-I\${top_srcdir}/src/png"
10704 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
10705fi
10706
a16d3c04
KB
10707JPEG_INCLUDE=
10708if test "$wxUSE_LIBJPEG" = "yes" ; then
10709 cat >> confdefs.h <<\EOF
10710#define wxUSE_LIBJPEG 1
10711EOF
10712
10713 JPEG_INCLUDE="-I\${top_srcdir}/src/jpeg"
10714fi
10715
10716if test "$wxUSE_OPENGL" = "yes"; then
10717 ac_safe=`echo "GL/gl.h" | sed 'y%./+-%__p_%'`
10718echo $ac_n "checking for GL/gl.h""... $ac_c" 1>&6
fa3e4baf 10719echo "configure:10720: checking for GL/gl.h" >&5
a16d3c04
KB
10720if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10721 echo $ac_n "(cached) $ac_c" 1>&6
10722else
10723 cat > conftest.$ac_ext <<EOF
fa3e4baf 10724#line 10725 "configure"
a16d3c04
KB
10725#include "confdefs.h"
10726#include <GL/gl.h>
10727EOF
10728ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
fa3e4baf
KB
10729{ (eval echo configure:10730: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10730ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
a16d3c04
KB
10731if test -z "$ac_err"; then
10732 rm -rf conftest*
10733 eval "ac_cv_header_$ac_safe=yes"
10734else
10735 echo "$ac_err" >&5
10736 echo "configure: failed program was:" >&5
10737 cat conftest.$ac_ext >&5
10738 rm -rf conftest*
10739 eval "ac_cv_header_$ac_safe=no"
10740fi
10741rm -f conftest*
10742fi
10743if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10744 echo "$ac_t""yes" 1>&6
10745
10746 echo $ac_n "checking for glInitNames in -lGL""... $ac_c" 1>&6
fa3e4baf 10747echo "configure:10748: checking for glInitNames in -lGL" >&5
a16d3c04
KB
10748ac_lib_var=`echo GL'_'glInitNames | sed 'y%./+-%__p_%'`
10749if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10750 echo $ac_n "(cached) $ac_c" 1>&6
10751else
10752 ac_save_LIBS="$LIBS"
10753LIBS="-lGL wxUSE_OPENGL=0 $LIBS"
10754cat > conftest.$ac_ext <<EOF
fa3e4baf 10755#line 10756 "configure"
a16d3c04
KB
10756#include "confdefs.h"
10757/* Override any gcc2 internal prototype to avoid an error. */
10758/* We use char because int might match the return type of a gcc2
10759 builtin and then its argument prototype would still apply. */
10760char glInitNames();
10761
10762int main() {
10763glInitNames()
10764; return 0; }
10765EOF
fa3e4baf 10766if { (eval echo configure:10767: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a16d3c04
KB
10767 rm -rf conftest*
10768 eval "ac_cv_lib_$ac_lib_var=yes"
10769else
10770 echo "configure: failed program was:" >&5
10771 cat conftest.$ac_ext >&5
10772 rm -rf conftest*
10773 eval "ac_cv_lib_$ac_lib_var=no"
10774fi
10775rm -f conftest*
10776LIBS="$ac_save_LIBS"
10777
10778fi
10779if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10780 echo "$ac_t""yes" 1>&6
10781
10782 OPENGL_LINK="-lGL"
10783 cat >> confdefs.h <<\EOF
10784#define wxUSE_OPENGL 1
10785EOF
10786
10787 UTILS_SUBDIRS="$UTILS_SUBDIRS glcanvas/src"
10788
10789else
10790 echo "$ac_t""no" 1>&6
10791
10792 echo $ac_n "checking for glInitNames in -lMesaGL""... $ac_c" 1>&6
fa3e4baf 10793echo "configure:10794: checking for glInitNames in -lMesaGL" >&5
a16d3c04
KB
10794ac_lib_var=`echo MesaGL'_'glInitNames | sed 'y%./+-%__p_%'`
10795if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10796 echo $ac_n "(cached) $ac_c" 1>&6
10797else
10798 ac_save_LIBS="$LIBS"
10799LIBS="-lMesaGL $LIBS"
10800cat > conftest.$ac_ext <<EOF
fa3e4baf 10801#line 10802 "configure"
a16d3c04
KB
10802#include "confdefs.h"
10803/* Override any gcc2 internal prototype to avoid an error. */
10804/* We use char because int might match the return type of a gcc2
10805 builtin and then its argument prototype would still apply. */
10806char glInitNames();
10807
10808int main() {
10809glInitNames()
10810; return 0; }
10811EOF
fa3e4baf 10812if { (eval echo configure:10813: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a16d3c04
KB
10813 rm -rf conftest*
10814 eval "ac_cv_lib_$ac_lib_var=yes"
10815else
10816 echo "configure: failed program was:" >&5
10817 cat conftest.$ac_ext >&5
10818 rm -rf conftest*
10819 eval "ac_cv_lib_$ac_lib_var=no"
10820fi
10821rm -f conftest*
10822LIBS="$ac_save_LIBS"
10823
10824fi
10825if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10826 echo "$ac_t""yes" 1>&6
10827
10828 OPENGL_LINK="-lMesaGL"
10829 cat >> confdefs.h <<\EOF
10830#define wxUSE_OPENGL 1
10831EOF
10832
10833 UTILS_SUBDIRS="$UTILS_SUBDIRS glcanvas/src"
10834
10835else
10836 echo "$ac_t""no" 1>&6
10837wxUSE_OPENGL=0
10838fi
10839
10840
10841fi
10842
10843
10844else
10845 echo "$ac_t""no" 1>&6
10846wxUSE_OPENGL=0
10847fi
10848
10849fi
10850
10851
10852if test "$wxUSE_GUI" = "yes"; then
10853 cat >> confdefs.h <<\EOF
10854#define wxUSE_GUI 1
10855EOF
10856
10857
10858 else
10859 cat >> confdefs.h <<\EOF
10860#define wxUSE_NOGUI 1
10861EOF
10862
10863fi
10864
10865
10866if test "$wxUSE_UNIX" = "yes"; then
10867 cat >> confdefs.h <<\EOF
10868#define wxUSE_UNIX 1
10869EOF
10870
10871fi
10872
10873
10874if test "$wxUSE_APPLE_IEEE" = "yes"; then
10875 cat >> confdefs.h <<\EOF
10876#define wxUSE_APPLE_IEEE 1
10877EOF
10878
10879fi
10880
10881if test "$wxUSE_TIMEDATE" = "yes"; then
10882 cat >> confdefs.h <<\EOF
10883#define wxUSE_TIMEDATE 1
10884EOF
10885
10886 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
10887fi
10888
10889if test "$wxUSE_WAVE" = "yes"; then
10890 cat >> confdefs.h <<\EOF
10891#define wxUSE_WAVE 1
10892EOF
10893
10894fi
10895
10896if test "$wxUSE_FILE" = "yes"; then
10897 cat >> confdefs.h <<\EOF
10898#define wxUSE_FILE 1
10899EOF
10900
10901fi
10902
10903if test "$wxUSE_FS_INET" = "yes"; then
10904 cat >> confdefs.h <<\EOF
10905#define wxUSE_FS_INET 1
10906EOF
10907
10908fi
10909
10910if test "$wxUSE_FS_ZIP" = "yes"; then
10911 cat >> confdefs.h <<\EOF
10912#define wxUSE_FS_ZIP 1
10913EOF
10914
10915fi
10916
10917if test "$wxUSE_ZIPSTREAM" = "yes"; then
10918 cat >> confdefs.h <<\EOF
10919#define wxUSE_ZIPSTREAM 1
10920EOF
10921
10922fi
10923
10924if test "$wxUSE_BUSYINFO" = "yes"; then
10925 cat >> confdefs.h <<\EOF
10926#define wxUSE_BUSYINFO 1
10927EOF
10928
10929fi
10930
10931if test "$wxUSE_STD_IOSTREAM" = "yes"; then
10932 cat >> confdefs.h <<\EOF
10933#define wxUSE_STD_IOSTREAM 1
10934EOF
10935
10936fi
10937
10938if test "$wxUSE_TEXTFILE" = "yes"; then
10939 if test "$wxUSE_FILE" != "yes"; then
10940 echo "configure: warning: wxTextFile requires wxFile and it won't be compiled without it" 1>&2
10941 else
10942 cat >> confdefs.h <<\EOF
10943#define wxUSE_TEXTFILE 1
10944EOF
10945
10946 fi
10947fi
10948
10949if test "$wxUSE_CONFIG" = "yes" ; then
10950 if test "$wxUSE_TEXTFILE" != "yes"; then
10951 echo "configure: warning: wxConfig requires wxTextFile and it won't be compiled without it" 1>&2
10952 else
10953 cat >> confdefs.h <<\EOF
10954#define wxUSE_CONFIG 1
10955EOF
10956
10957 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
10958 fi
10959fi
10960
10961if test "$wxUSE_INTL" = "yes" ; then
10962 if test "$wxUSE_FILE" != "yes"; then
10963 echo "configure: warning: I18n code requires wxFile and it won't be compiled without it" 1>&2
10964 else
10965 cat >> confdefs.h <<\EOF
10966#define wxUSE_INTL 1
10967EOF
10968
10969 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
10970 fi
10971fi
10972
10973if test "$wxUSE_LOG" = "yes"; then
10974 cat >> confdefs.h <<\EOF
10975#define wxUSE_LOG 1
10976EOF
10977
10978fi
10979
10980if test "$wxUSE_LONGLONG" = "yes"; then
10981 cat >> confdefs.h <<\EOF
10982#define wxUSE_LONGLONG 1
10983EOF
10984
10985fi
10986
10987if test "$wxUSE_SOCKETS" = "yes" ; then
10988 if test "$wxUSE_THREADS" = "yes" ; then
10989 cat >> confdefs.h <<\EOF
10990#define wxUSE_SOCKETS 1
10991EOF
10992
10993 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wxsocket"
10994 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS protocol"
10995 else
10996 echo "configure: warning: Socket classes require --with-threads and won't be compiled without it" 1>&2
10997 wxUSE_SOCKETS=0
10998 fi
10999fi
11000
1c8515f9
KB
11001if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then
11002 cat >> confdefs.h <<\EOF
11003#define wxUSE_DIALUP_MANAGER 1
11004EOF
11005
11006fi
11007
a16d3c04
KB
11008if test "$wxUSE_STREAMS" = "yes" ; then
11009 cat >> confdefs.h <<\EOF
11010#define wxUSE_STREAMS 1
11011EOF
11012
11013fi
11014
11015if test "$wxUSE_SERIAL" = "yes" ; then
11016 cat >> confdefs.h <<\EOF
11017#define wxUSE_SERIAL 1
11018EOF
11019
11020fi
11021
11022
11023if test "$wxUSE_SOCKETS" = "yes"; then
11024
11025 ac_ext=C
11026# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11027ac_cpp='$CXXCPP $CPPFLAGS'
11028ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
fa3e4baf 11029ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
a16d3c04
KB
11030cross_compiling=$ac_cv_prog_cxx_cross
11031
11032 echo $ac_n "checking the type of the third argument of getsockname""... $ac_c" 1>&6
fa3e4baf 11033echo "configure:11034: checking the type of the third argument of getsockname" >&5
a16d3c04 11034 cat > conftest.$ac_ext <<EOF
fa3e4baf 11035#line 11036 "configure"
a16d3c04
KB
11036#include "confdefs.h"
11037#include <sys/socket.h>
11038int main() {
11039socklen_t len; getsockname(0, NULL, &len);
11040; return 0; }
11041EOF
fa3e4baf 11042if { (eval echo configure:11043: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a16d3c04
KB
11043 rm -rf conftest*
11044 cat >> confdefs.h <<\EOF
11045#define SOCKLEN_T socklen_t
11046EOF
11047 echo "$ac_t""socklen_t" 1>&6
11048else
11049 echo "configure: failed program was:" >&5
11050 cat conftest.$ac_ext >&5
11051 rm -rf conftest*
11052 cat > conftest.$ac_ext <<EOF
fa3e4baf 11053#line 11054 "configure"
a16d3c04
KB
11054#include "confdefs.h"
11055#include <sys/socket.h>
11056int main() {
11057size_t len; getsockname(0, NULL, &len);
11058; return 0; }
11059EOF
fa3e4baf 11060if { (eval echo configure:11061: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a16d3c04
KB
11061 rm -rf conftest*
11062 cat >> confdefs.h <<\EOF
11063#define SOCKLEN_T size_t
11064EOF
11065 echo "$ac_t""size_t" 1>&6
11066else
11067 echo "configure: failed program was:" >&5
11068 cat conftest.$ac_ext >&5
11069 rm -rf conftest*
11070 cat > conftest.$ac_ext <<EOF
fa3e4baf 11071#line 11072 "configure"
a16d3c04
KB
11072#include "confdefs.h"
11073#include <sys/socket.h>
11074int main() {
11075int len; getsockname(0, NULL, &len);
11076; return 0; }
11077EOF
fa3e4baf 11078if { (eval echo configure:11079: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a16d3c04
KB
11079 rm -rf conftest*
11080 cat >> confdefs.h <<\EOF
11081#define SOCKLEN_T int
11082EOF
11083 echo "$ac_t""int" 1>&6
11084else
11085 echo "configure: failed program was:" >&5
11086 cat conftest.$ac_ext >&5
11087 rm -rf conftest*
11088 echo "$ac_t""unknown" 1>&6
11089
11090fi
11091rm -f conftest*
11092
11093fi
11094rm -f conftest*
11095
11096fi
11097rm -f conftest*
11098 ac_ext=c
11099# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11100ac_cpp='$CPP $CPPFLAGS'
11101ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
fa3e4baf 11102ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
a16d3c04
KB
11103cross_compiling=$ac_cv_prog_cc_cross
11104
11105fi
11106
11107
11108if test "$wxUSE_JOYSTICK" = 1; then
11109 for ac_hdr in linux/joystick.h
11110do
11111ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11112echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
fa3e4baf 11113echo "configure:11114: checking for $ac_hdr" >&5
a16d3c04
KB
11114if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11115 echo $ac_n "(cached) $ac_c" 1>&6
11116else
11117 cat > conftest.$ac_ext <<EOF
fa3e4baf 11118#line 11119 "configure"
a16d3c04
KB
11119#include "confdefs.h"
11120#include <$ac_hdr>
11121EOF
11122ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
fa3e4baf
KB
11123{ (eval echo configure:11124: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11124ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
a16d3c04
KB
11125if test -z "$ac_err"; then
11126 rm -rf conftest*
11127 eval "ac_cv_header_$ac_safe=yes"
11128else
11129 echo "$ac_err" >&5
11130 echo "configure: failed program was:" >&5
11131 cat conftest.$ac_ext >&5
11132 rm -rf conftest*
11133 eval "ac_cv_header_$ac_safe=no"
11134fi
11135rm -f conftest*
11136fi
11137if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11138 echo "$ac_t""yes" 1>&6
11139 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11140 cat >> confdefs.h <<EOF
11141#define $ac_tr_hdr 1
11142EOF
11143
11144else
11145 echo "$ac_t""no" 1>&6
11146fi
11147done
11148
11149 if test "$ac_cv_header_linux_joystick_h" = "yes"; then
11150 cat >> confdefs.h <<\EOF
11151#define wxUSE_JOYSTICK 1
11152EOF
11153
11154 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
11155 fi
11156fi
11157
11158
11159HAVE_DL_FUNCS=0
11160HAVE_SHL_FUNCS=0
11161if test "$wxUSE_DYNLIB_CLASS" = "yes"; then
11162 for ac_func in dlopen
11163do
11164echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
fa3e4baf 11165echo "configure:11166: checking for $ac_func" >&5
a16d3c04
KB
11166if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11167 echo $ac_n "(cached) $ac_c" 1>&6
11168else
11169 cat > conftest.$ac_ext <<EOF
fa3e4baf 11170#line 11171 "configure"
a16d3c04
KB
11171#include "confdefs.h"
11172/* System header to define __stub macros and hopefully few prototypes,
11173 which can conflict with char $ac_func(); below. */
11174#include <assert.h>
11175/* Override any gcc2 internal prototype to avoid an error. */
11176/* We use char because int might match the return type of a gcc2
11177 builtin and then its argument prototype would still apply. */
11178char $ac_func();
11179
11180int main() {
11181
11182/* The GNU C library defines this for functions which it implements
11183 to always fail with ENOSYS. Some functions are actually named
11184 something starting with __ and the normal name is an alias. */
11185#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11186choke me
11187#else
11188$ac_func();
11189#endif
11190
11191; return 0; }
11192EOF
fa3e4baf 11193if { (eval echo configure:11194: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a16d3c04
KB
11194 rm -rf conftest*
11195 eval "ac_cv_func_$ac_func=yes"
11196else
11197 echo "configure: failed program was:" >&5
11198 cat conftest.$ac_ext >&5
11199 rm -rf conftest*
11200 eval "ac_cv_func_$ac_func=no"
11201fi
11202rm -f conftest*
11203fi
11204
11205if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11206 echo "$ac_t""yes" 1>&6
11207 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11208 cat >> confdefs.h <<EOF
11209#define $ac_tr_func 1
11210EOF
11211 cat >> confdefs.h <<\EOF
11212#define HAVE_DLOPEN 1
11213EOF
11214 HAVE_DL_FUNCS=1
11215else
11216 echo "$ac_t""no" 1>&6
11217echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
fa3e4baf 11218echo "configure:11219: checking for dlopen in -ldl" >&5
a16d3c04
KB
11219ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
11220if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11221 echo $ac_n "(cached) $ac_c" 1>&6
11222else
11223 ac_save_LIBS="$LIBS"
11224LIBS="-ldl $LIBS"
11225cat > conftest.$ac_ext <<EOF
fa3e4baf 11226#line 11227 "configure"
a16d3c04
KB
11227#include "confdefs.h"
11228/* Override any gcc2 internal prototype to avoid an error. */
11229/* We use char because int might match the return type of a gcc2
11230 builtin and then its argument prototype would still apply. */
11231char dlopen();
11232
11233int main() {
11234dlopen()
11235; return 0; }
11236EOF
fa3e4baf 11237if { (eval echo configure:11238: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a16d3c04
KB
11238 rm -rf conftest*
11239 eval "ac_cv_lib_$ac_lib_var=yes"
11240else
11241 echo "configure: failed program was:" >&5
11242 cat conftest.$ac_ext >&5
11243 rm -rf conftest*
11244 eval "ac_cv_lib_$ac_lib_var=no"
11245fi
11246rm -f conftest*
11247LIBS="$ac_save_LIBS"
11248
11249fi
11250if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11251 echo "$ac_t""yes" 1>&6
11252 cat >> confdefs.h <<\EOF
11253#define HAVE_DLOPEN 1
11254EOF
11255 HAVE_DL_FUNCS=1
11256else
11257 echo "$ac_t""no" 1>&6
11258fi
11259
11260fi
11261done
11262
11263 for ac_func in shl_load
11264do
11265echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
fa3e4baf 11266echo "configure:11267: checking for $ac_func" >&5
a16d3c04
KB
11267if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11268 echo $ac_n "(cached) $ac_c" 1>&6
11269else
11270 cat > conftest.$ac_ext <<EOF
fa3e4baf 11271#line 11272 "configure"
a16d3c04
KB
11272#include "confdefs.h"
11273/* System header to define __stub macros and hopefully few prototypes,
11274 which can conflict with char $ac_func(); below. */
11275#include <assert.h>
11276/* Override any gcc2 internal prototype to avoid an error. */
11277/* We use char because int might match the return type of a gcc2
11278 builtin and then its argument prototype would still apply. */
11279char $ac_func();
11280
11281int main() {
11282
11283/* The GNU C library defines this for functions which it implements
11284 to always fail with ENOSYS. Some functions are actually named
11285 something starting with __ and the normal name is an alias. */
11286#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11287choke me
11288#else
11289$ac_func();
11290#endif
11291
11292; return 0; }
11293EOF
fa3e4baf 11294if { (eval echo configure:11295: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a16d3c04
KB
11295 rm -rf conftest*
11296 eval "ac_cv_func_$ac_func=yes"
11297else
11298 echo "configure: failed program was:" >&5
11299 cat conftest.$ac_ext >&5
11300 rm -rf conftest*
11301 eval "ac_cv_func_$ac_func=no"
11302fi
11303rm -f conftest*
11304fi
11305
11306if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11307 echo "$ac_t""yes" 1>&6
11308 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11309 cat >> confdefs.h <<EOF
11310#define $ac_tr_func 1
11311EOF
11312 cat >> confdefs.h <<\EOF
11313#define HAVE_SHL_LOAD 1
11314EOF
11315 HAVE_DL_FUNCS=1 HAVE_SHL_FUNCS=1
11316else
11317 echo "$ac_t""no" 1>&6
11318fi
11319done
11320
11321
11322 if test "$HAVE_DL_FUNCS" = 0; then
1c8515f9 11323 if test "$USE_UNIX" = 1; then
a16d3c04
KB
11324 echo "configure: warning: "--with-dynlib and --with-odbc will be disabled due to missing shared library support"" 1>&2
11325 wxUSE_ODBC=no
11326 wxUSE_DYNLIB_CLASS=no
11327 else
11328 echo "configure: warning: "Cannot check dynlib requirements on non-Unix platforms. dynlib remains enabled."" 1>&2
1c8515f9 11329 fi
a16d3c04
KB
11330 fi
11331fi
11332
11333if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
11334 cat >> confdefs.h <<\EOF
11335#define wxUSE_DYNLIB_CLASS 1
11336EOF
11337
11338fi
11339
11340
11341if test "$wxUSE_UNICODE" = "yes" ; then
11342 cat >> confdefs.h <<\EOF
11343#define wxUSE_UNICODE 1
11344EOF
11345
11346fi
11347
11348if test "$wxUSE_WCSRTOMBS" = "yes" ; then
11349 cat >> confdefs.h <<\EOF
11350#define wxUSE_WCSRTOMBS 1
11351EOF
11352
11353fi
11354
11355if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
11356 cat >> confdefs.h <<\EOF
11357#define wxUSE_EXPERIMENTAL_PRINTF 1
11358EOF
11359
11360fi
11361
11362
11363IODBC_C_SRC=""
11364if test "$wxUSE_ODBC" = "yes" ; then
11365 cat >> confdefs.h <<\EOF
11366#define wxUSE_ODBC 1
11367EOF
11368
11369 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
11370fi
11371
11372
11373if test "$wxUSE_POSTSCRIPT" = "yes" ; then
11374 cat >> confdefs.h <<\EOF
11375#define wxUSE_POSTSCRIPT 1
11376EOF
11377
11378fi
11379
11380cat >> confdefs.h <<\EOF
11381#define wxUSE_AFM_FOR_POSTSCRIPT 1
11382EOF
11383
11384
11385cat >> confdefs.h <<\EOF
11386#define wxUSE_NORMALIZED_PS_FONTS 1
11387EOF
11388
11389
11390
11391if test "$wxUSE_CONSTRAINTS" = "yes"; then
11392 cat >> confdefs.h <<\EOF
11393#define wxUSE_CONSTRAINTS 1
11394EOF
11395
11396 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
11397fi
11398
11399if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
11400 cat >> confdefs.h <<\EOF
11401#define wxUSE_MDI_ARCHITECTURE 1
11402EOF
11403
11404 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
11405fi
11406
11407if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
11408 cat >> confdefs.h <<\EOF
11409#define wxUSE_DOC_VIEW_ARCHITECTURE 1
11410EOF
11411
11412 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
11413 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
11414 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
11415 fi
11416fi
11417
11418if test "$wxUSE_HELP" = "yes"; then
11419 cat >> confdefs.h <<\EOF
11420#define wxUSE_HELP 1
11421EOF
11422
11423 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
11424fi
11425
11426if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
11427 if test "$wxUSE_CONSTRAINTS" != "yes"; then
11428 echo "configure: warning: Printing support cannot be used without constraints so it won't be compiled without it" 1>&2
11429 else
11430 cat >> confdefs.h <<\EOF
11431#define wxUSE_PRINTING_ARCHITECTURE 1
11432EOF
11433
11434 fi
11435 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
11436fi
11437
11438if test "$wxUSE_PROLOGIO" = "yes" ; then
11439 cat >> confdefs.h <<\EOF
11440#define wxUSE_PROLOGIO 1
11441EOF
11442
11443fi
11444
11445if test "$wxUSE_RESOURCES" = "yes" ; then
11446 if test "$wxUSE_PROLOGIO" = "yes" ; then
11447 cat >> confdefs.h <<\EOF
11448#define wxUSE_RESOURCES 1
11449EOF
11450
11451 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS resource"
11452 else
11453 echo "configure: warning: wxWindows ressource system requires PrologIO and can't be compiled without it." 1>&2
11454 fi
11455fi
11456
11457if test "$wxUSE_X_RESOURCES" = "yes"; then
11458 cat >> confdefs.h <<\EOF
11459#define wxUSE_X_RESOURCES 1
11460EOF
11461
11462fi
11463
11464
11465if test "$wxUSE_IPC" = "yes"; then
11466 cat >> confdefs.h <<\EOF
11467#define wxUSE_IPC 1
11468EOF
11469
11470fi
11471
11472if test "$wxUSE_CLIPBOARD" = "yes"; then
11473 cat >> confdefs.h <<\EOF
11474#define wxUSE_CLIPBOARD 1
11475EOF
11476
11477fi
11478
11479if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
11480 if test "$wxUSE_GTK" = 1; then
11481 if test "$WXGTK12" != 1; then
11482 echo "configure: warning: Drag and drop is only supported under GTK+ 1.2" 1>&2
11483 wxUSE_DRAG_AND_DROP=no
11484 fi
11485 fi
11486
11487 if test "$wxUSE_MOTIF" = 1; then
11488 echo "configure: warning: Drag and drop is not yet supported under Motif" 1>&2
11489 wxUSE_DRAG_AND_DROP=no
11490 fi
11491
11492 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
11493 cat >> confdefs.h <<\EOF
11494#define wxUSE_DRAG_AND_DROP 1
11495EOF
11496
11497 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
11498 fi
11499fi
11500
11501if test "$wxUSE_SPLINES" = "yes" ; then
11502 cat >> confdefs.h <<\EOF
11503#define wxUSE_SPLINES 1
11504EOF
11505
11506fi
11507
11508
11509if test "$wxUSE_ACCEL" = "yes"; then
11510 cat >> confdefs.h <<\EOF
11511#define wxUSE_ACCEL 1
11512EOF
11513
11514fi
11515
11516if test "$wxUSE_CARET" = "yes"; then
11517 cat >> confdefs.h <<\EOF
11518#define wxUSE_CARET 1
11519EOF
11520
11521 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
11522fi
11523
11524if test "$wxUSE_COMBOBOX" = "yes"; then
11525 cat >> confdefs.h <<\EOF
11526#define wxUSE_COMBOBOX 1
11527EOF
11528
11529fi
11530
11531if test "$wxUSE_CHOICE" = "yes"; then
11532 cat >> confdefs.h <<\EOF
11533#define wxUSE_CHOICE 1
11534EOF
11535
11536fi
11537
11538if test "$wxUSE_BMPBUTTON" = "yes"; then
11539 cat >> confdefs.h <<\EOF
11540#define wxUSE_BMPBUTTON 1
11541EOF
11542
11543fi
11544
11545if test "$wxUSE_CHECKBOX" = "yes"; then
11546 cat >> confdefs.h <<\EOF
11547#define wxUSE_CHECKBOX 1
11548EOF
11549
11550fi
11551
11552if test "$wxUSE_CHECKLST" = "yes"; then
11553 cat >> confdefs.h <<\EOF
11554#define wxUSE_CHECKLISTBOX 1
11555EOF
11556
11557 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
11558fi
11559
11560if test "$wxUSE_GAUGE" = "yes"; then
11561 cat >> confdefs.h <<\EOF
11562#define wxUSE_GAUGE 1
11563EOF
11564
11565fi
11566
11567if test "$wxUSE_GRID" = "yes"; then
11568 cat >> confdefs.h <<\EOF
11569#define wxUSE_GRID 1
11570EOF
11571
11572 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
11573fi
11574
11575if test "$wxUSE_IMAGLIST" = "yes"; then
11576 cat >> confdefs.h <<\EOF
11577#define wxUSE_IMAGLIST 1
11578EOF
11579
11580fi
11581
11582if test "$wxUSE_LISTBOX" = "yes"; then
11583 cat >> confdefs.h <<\EOF
11584#define wxUSE_LISTBOX 1
11585EOF
11586
11587fi
11588
11589if test "$wxUSE_LISTCTRL" = "yes"; then
11590 if test "$wxUSE_IMAGLIST" = "yes"; then
11591 cat >> confdefs.h <<\EOF
11592#define wxUSE_LISTCTRL 1
11593EOF
11594
11595 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
11596 else
11597 echo "configure: warning: wxListCtrl requires wxImageList and won't be compiled without it" 1>&2
11598 fi
11599fi
11600
11601if test "$wxUSE_NOTEBOOK" = "yes"; then
11602 cat >> confdefs.h <<\EOF
11603#define wxUSE_NOTEBOOK 1
11604EOF
11605
11606 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
11607fi
11608
11609if test "$wxUSE_RADIOBOX" = "yes"; then
11610 cat >> confdefs.h <<\EOF
11611#define wxUSE_RADIOBOX 1
11612EOF
11613
11614fi
11615
11616if test "$wxUSE_RADIOBTN" = "yes"; then
11617 cat >> confdefs.h <<\EOF
11618#define wxUSE_RADIOBTN 1
11619EOF
11620
11621fi
11622
11623if test "$wxUSE_SASH" = "yes"; then
11624 cat >> confdefs.h <<\EOF
11625#define wxUSE_SASH 1
11626EOF
11627
11628 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
11629fi
11630
11631if test "$wxUSE_SCROLLBAR" = "yes"; then
11632 cat >> confdefs.h <<\EOF
11633#define wxUSE_SCROLLBAR 1
11634EOF
11635
11636 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll"
11637fi
11638
11639if test "$wxUSE_SLIDER" = "yes"; then
11640 cat >> confdefs.h <<\EOF
11641#define wxUSE_SLIDER 1
11642EOF
11643
11644fi
11645
11646if test "$wxUSE_SPINBTN" = "yes"; then
11647 cat >> confdefs.h <<\EOF
11648#define wxUSE_SPINBTN 1
11649EOF
11650
11651fi
11652
11653if test "$wxUSE_SPLITTER" = "yes"; then
11654 cat >> confdefs.h <<\EOF
11655#define wxUSE_SPLITTER 1
11656EOF
11657
11658 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
11659fi
11660
11661if test "$wxUSE_STATBMP" = "yes"; then
11662 cat >> confdefs.h <<\EOF
11663#define wxUSE_STATBMP 1
11664EOF
11665
11666fi
11667
11668if test "$wxUSE_STATBOX" = "yes"; then
11669 cat >> confdefs.h <<\EOF
11670#define wxUSE_STATBOX 1
11671EOF
11672
11673fi
11674
11675if test "$wxUSE_STATLINE" = "yes"; then
11676 if test "$wxUSE_WINE" = 1 ; then
11677 echo "configure: warning: wxStaticLine is not supported under WINE" 1>&2
11678 else
11679 cat >> confdefs.h <<\EOF
11680#define wxUSE_STATLINE 1
11681EOF
11682
11683 fi
11684fi
11685
11686if test "$wxUSE_STATUSBAR" = "yes"; then
11687 cat >> confdefs.h <<\EOF
11688#define wxUSE_STATUSBAR 1
11689EOF
11690
11691fi
11692
11693if test "$wxUSE_TABDIALOG" = "yes"; then
11694 cat >> confdefs.h <<\EOF
11695#define wxUSE_TAB_DIALOG 1
11696EOF
11697
11698 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab"
11699fi
11700
11701if test "$wxUSE_TOOLBAR" = "yes"; then
11702 cat >> confdefs.h <<\EOF
11703#define wxUSE_TOOLBAR 1
11704EOF
11705
11706 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
11707fi
11708
11709if test "$wxUSE_TOOLTIPS" = "yes"; then
11710 if test "$wxUSE_MOTIF" = 1; then
11711 echo "configure: warning: wxTooltip not supported yet under Motif" 1>&2
11712 else
11713 if test "$wxUSE_WINE" = 1; then
11714 echo "configure: warning: wxTooltip not supported under WINE" 1>&2
11715 else
11716 cat >> confdefs.h <<\EOF
11717#define wxUSE_TOOLTIPS 1
11718EOF
11719
11720 fi
11721 fi
11722fi
11723
11724if test "$wxUSE_TREECTRL" = "yes"; then
11725 if test "$wxUSE_IMAGLIST" = "yes"; then
11726 cat >> confdefs.h <<\EOF
11727#define wxUSE_TREECTRL 1
11728EOF
11729
11730 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
11731 else
11732 echo "configure: warning: wxTreeCtrl requires wxImageList and won't be compiled without it" 1>&2
11733 fi
11734fi
11735
11736
11737
11738if test "$wxUSE_METAFILE" = "yes"; then
11739 cat >> confdefs.h <<\EOF
11740#define wxUSE_METAFILE 1
11741EOF
11742
11743fi
11744
11745if test "$wxUSE_DIRDLG" = "yes"; then
11746 if test "$wxUSE_CONSTRAINTS" != "yes"; then
11747 echo "configure: warning: wxDirDialog requires constraints so it won't be compiled without them" 1>&2
11748 else
11749 if test "$wxUSE_TREECTRL" != "yes"; then
11750 echo "configure: warning: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" 1>&2
11751 else
11752 cat >> confdefs.h <<\EOF
11753#define wxUSE_DIRDLG 1
11754EOF
11755
11756 fi
11757 fi
11758fi
11759
11760if test "$wxUSE_TEXTDLG" = "yes"; then
11761 cat >> confdefs.h <<\EOF
11762#define wxUSE_TEXTDLG 1
11763EOF
11764
11765fi
11766
11767if test "$wxUSE_STARTUP_TIPS" = "yes"; then
11768 if test "$wxUSE_CONSTRAINTS" != "yes"; then
11769 echo "configure: warning: Startup tips requires constraints and won't be compiled without them" 1>&2
11770 else
11771 cat >> confdefs.h <<\EOF
11772#define wxUSE_STARTUP_TIPS 1
11773EOF
11774
11775 fi
11776fi
11777
11778if test "$wxUSE_PROGRESSDLG" = "yes"; then
11779 if test "$wxUSE_CONSTRAINTS" != "yes"; then
11780 echo "configure: warning: wxProgressDialog requires constraints so it won't be compiled without them" 1>&2
11781 else
11782 cat >> confdefs.h <<\EOF
11783#define wxUSE_PROGRESSDLG 1
11784EOF
11785
11786 fi
11787fi
11788
11789if test "$wxUSE_MINIFRAME" = "yes"; then
11790 cat >> confdefs.h <<\EOF
11791#define wxUSE_MINIFRAME 1
11792EOF
11793
11794 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
11795fi
11796
11797if test "$wxUSE_HTML" = "yes"; then
11798 cat >> confdefs.h <<\EOF
11799#define wxUSE_HTML 1
11800EOF
11801
11802 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html"
11803 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS html"
11804fi
11805
11806if test "$wxUSE_VALIDATORS" = "yes"; then
11807 cat >> confdefs.h <<\EOF
11808#define wxUSE_VALIDATORS 1
11809EOF
11810
11811 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
11812fi
11813
1c8515f9
KB
11814if test "$wxUSE_GIF" = "yes" ; then
11815 cat >> confdefs.h <<\EOF
11816#define wxUSE_GIF 1
11817EOF
11818
11819fi
11820
11821if test "$wxUSE_PCX" = "yes" ; then
11822 cat >> confdefs.h <<\EOF
11823#define wxUSE_PCX 1
11824EOF
11825
11826fi
11827
11828if test "$wxUSE_PNM" = "yes" ; then
11829 cat >> confdefs.h <<\EOF
11830#define wxUSE_PNM 1
11831EOF
11832
11833fi
11834
a16d3c04
KB
11835
11836GUILIBS="$GUI_TK_LIBRARY $OPENGL_LINK $LIBPNG_LINK $ZLIB_LINK $TOOLKIT_LINK"
11837
11838EXTRA_LIBS="$LIBS $POSIX4_LINK $WCHAR_LINK $THREADS_LINK $DMALLOC_LINK $GUILIBS"
11839
11840LIBS="\${top_builddir}/src/${TOOLKIT_DIR}/${WX_LIBRARY_NAME} $EXTRA_LIBS"
11841
11842LD_LIBS="\${top_builddir}/lib/${WX_LIBRARY_NAME_STATIC} $EXTRA_LIBS"
11843
11844INCLUDES="-I. -I\${top_builddir}/include -I\${top_srcdir}/include $ZLIB_INCLUDE $PNG_INCLUDE $JPEG_INCLUDE $TOOLKIT_INCLUDE"
11845
11846if test "$GXX" = yes ; then
11847 CXXWARNINGS="-Wall"
11848 fi
11849EXTRA_CFLAGS="$WXDEBUG $PROFILE $OPTIMISE $INCLUDES"
11850
11851CPPFLAGS="-I\${top_srcdir}/include $CPPFLAGS"
11852CFLAGS="$CFLAGS $EXTRA_CFLAGS"
11853CXXFLAGS="$CXXFLAGS $EXTRA_CFLAGS $CXXWARNINGS"
11854
11855if test "$wxUSE_GUI" = "yes"; then
11856
11857 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS bombs controls dialogs drawing dynamic \
11858 forty fractal image wxpoem"
11859fi
11860
11861SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '`"
11862
11863
11864
11865
11866
11867
11868
11869
11870
11871
11872
11873
11874
11875
11876
11877
11878
11879
11880
11881
11882
11883
11884
11885
11886
11887
11888
11889
11890
11891
11892
11893
11894
11895
11896
11897
11898
11899
11900
11901
11902
11903
11904
11905
11906
11907
11908
11909
11910
11911echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
fa3e4baf 11912echo "configure:11913: checking whether ${MAKE-make} sets \${MAKE}" >&5
a16d3c04
KB
11913set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
11914if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
11915 echo $ac_n "(cached) $ac_c" 1>&6
11916else
11917 cat > conftestmake <<\EOF
11918all:
11919 @echo 'ac_maketemp="${MAKE}"'
11920EOF
11921# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
11922eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
11923if test -n "$ac_maketemp"; then
11924 eval ac_cv_prog_make_${ac_make}_set=yes
11925else
11926 eval ac_cv_prog_make_${ac_make}_set=no
11927fi
11928rm -f conftestmake
11929fi
11930if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
11931 echo "$ac_t""yes" 1>&6
11932 SET_MAKE=
11933else
11934 echo "$ac_t""no" 1>&6
11935 SET_MAKE="MAKE=${MAKE-make}"
11936fi
11937
11938
11939
11940
11941if test "${TOOLKIT_DIR}" = "msw" ; then
11942 GL_TOOLKIT_DIR="win"
11943else
11944 GL_TOOLKIT_DIR="${TOOLKIT_DIR}"
11945fi
11946
11947
11948trap '' 1 2 15
11949cat > confcache <<\EOF
11950# This file is a shell script that caches the results of configure
11951# tests run on this system so they can be shared between configure
11952# scripts and configure runs. It is not useful on other systems.
11953# If it contains results you don't want to keep, you may remove or edit it.
11954#
11955# By default, configure uses ./config.cache as the cache file,
11956# creating it if it does not exist already. You can give configure
11957# the --cache-file=FILE option to use a different cache file; that is
11958# what configure does when it calls configure scripts in
11959# subdirectories, so they share the cache.
11960# Giving --cache-file=/dev/null disables caching, for debugging configure.
11961# config.status only pays attention to the cache file if you give it the
11962# --recheck option to rerun configure.
11963#
11964EOF
11965# The following way of writing the cache mishandles newlines in values,
11966# but we know of no workaround that is simple, portable, and efficient.
11967# So, don't put newlines in cache variables' values.
11968# Ultrix sh set writes to stderr and can't be redirected directly,
11969# and sets the high bit in the cache file unless we assign to the vars.
11970(set) 2>&1 |
fa3e4baf 11971 case `(ac_space=' '; set | grep ac_space) 2>&1` in
a16d3c04
KB
11972 *ac_space=\ *)
11973 # `set' does not quote correctly, so add quotes (double-quote substitution
11974 # turns \\\\ into \\, and sed turns \\ into \).
11975 sed -n \
11976 -e "s/'/'\\\\''/g" \
11977 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
11978 ;;
11979 *)
11980 # `set' quotes correctly as required by POSIX, so do not add quotes.
11981 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
11982 ;;
11983 esac >> confcache
11984if cmp -s $cache_file confcache; then
11985 :
11986else
11987 if test -w $cache_file; then
11988 echo "updating cache $cache_file"
11989 cat confcache > $cache_file
11990 else
11991 echo "not updating unwritable cache $cache_file"
11992 fi
11993fi
11994rm -f confcache
11995
11996trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
11997
11998test "x$prefix" = xNONE && prefix=$ac_default_prefix
11999# Let make expand exec_prefix.
12000test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12001
12002# Any assignment to VPATH causes Sun make to only execute
12003# the first set of double-colon rules, so remove it if not needed.
12004# If there is a colon in the path, we need to keep it.
12005if test "x$srcdir" = x.; then
12006 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
12007fi
12008
12009trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
12010
12011DEFS=-DHAVE_CONFIG_H
12012
12013# Without the "./", some shells look in PATH for config.status.
12014: ${CONFIG_STATUS=./config.status}
12015
12016echo creating $CONFIG_STATUS
12017rm -f $CONFIG_STATUS
12018cat > $CONFIG_STATUS <<EOF
12019#! /bin/sh
12020# Generated automatically by configure.
12021# Run this file to recreate the current configuration.
12022# This directory was configured as follows,
12023# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12024#
12025# $0 $ac_configure_args
12026#
12027# Compiler output produced by configure, useful for debugging
12028# configure, is in ./config.log if it exists.
12029
12030ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
12031for ac_option
12032do
12033 case "\$ac_option" in
12034 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12035 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
12036 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
12037 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
fa3e4baf 12038 echo "$CONFIG_STATUS generated by autoconf version 2.13"
a16d3c04
KB
12039 exit 0 ;;
12040 -help | --help | --hel | --he | --h)
12041 echo "\$ac_cs_usage"; exit 0 ;;
12042 *) echo "\$ac_cs_usage"; exit 1 ;;
12043 esac
12044done
12045
12046ac_given_srcdir=$srcdir
12047ac_given_INSTALL="$INSTALL"
12048
12049trap 'rm -fr `echo "
12050 wx-config
12051 src/make.env
12052 src/makeprog.env
12053 src/makelib.env
12054 Makefile
12055 samples/Makefile
12056 samples/bombs/Makefile
12057 samples/caret/Makefile
12058 samples/checklst/Makefile
12059 samples/config/Makefile
12060 samples/controls/Makefile
12061 samples/dialogs/Makefile
12062 samples/docview/Makefile
12063 samples/docvwmdi/Makefile
12064 samples/dnd/Makefile
12065 samples/drawing/Makefile
12066 samples/dynamic/Makefile
12067 samples/image/Makefile
12068 samples/internat/Makefile
12069 samples/layout/Makefile
12070 samples/listctrl/Makefile
12071 samples/mdi/Makefile
12072 samples/minifram/Makefile
12073 samples/minimal/Makefile
12074 samples/notebook/Makefile
12075 samples/printing/Makefile
12076 samples/proplist/Makefile
12077 samples/sashtest/Makefile
12078 samples/scroll/Makefile
12079 samples/splitter/Makefile
12080 samples/text/Makefile
12081 samples/thread/Makefile
12082 samples/toolbar/Makefile
12083 samples/treectrl/Makefile
12084 samples/typetest/Makefile
12085 samples/validate/Makefile
12086 samples/wxpoem/Makefile
12087 samples/wxsocket/Makefile
12088 samples/wizard/Makefile
12089 samples/html/Makefile
12090 samples/html/about/Makefile
12091 samples/html/help/Makefile
12092 samples/html/printing/Makefile
12093 samples/html/test/Makefile
12094 samples/html/zip/Makefile
12095 samples/html/virtual/Makefile
12096 samples/html/widget/Makefile
12097 utils/Makefile
12098 utils/wxMMedia2/Makefile
12099 utils/wxMMedia2/lib/Makefile
12100 utils/wxMMedia2/sample/Makefile
12101 utils/glcanvas/Makefile
12102 utils/glcanvas/${GL_TOOLKIT_DIR}/Makefile
1c8515f9
KB
12103 utils/ogl/Makefile
12104 utils/ogl/src/Makefile
a16d3c04
KB
12105 setup.h:setup.h.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
12106EOF
12107cat >> $CONFIG_STATUS <<EOF
12108
12109# Protect against being on the right side of a sed subst in config.status.
12110sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
12111 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
12112$ac_vpsub
12113$extrasub
fa3e4baf 12114s%@SHELL@%$SHELL%g
a16d3c04
KB
12115s%@CFLAGS@%$CFLAGS%g
12116s%@CPPFLAGS@%$CPPFLAGS%g
12117s%@CXXFLAGS@%$CXXFLAGS%g
fa3e4baf 12118s%@FFLAGS@%$FFLAGS%g
a16d3c04
KB
12119s%@DEFS@%$DEFS%g
12120s%@LDFLAGS@%$LDFLAGS%g
12121s%@LIBS@%$LIBS%g
12122s%@exec_prefix@%$exec_prefix%g
12123s%@prefix@%$prefix%g
12124s%@program_transform_name@%$program_transform_name%g
12125s%@bindir@%$bindir%g
12126s%@sbindir@%$sbindir%g
12127s%@libexecdir@%$libexecdir%g
12128s%@datadir@%$datadir%g
12129s%@sysconfdir@%$sysconfdir%g
12130s%@sharedstatedir@%$sharedstatedir%g
12131s%@localstatedir@%$localstatedir%g
12132s%@libdir@%$libdir%g
12133s%@includedir@%$includedir%g
12134s%@oldincludedir@%$oldincludedir%g
12135s%@infodir@%$infodir%g
12136s%@mandir@%$mandir%g
12137s%@host@%$host%g
12138s%@host_alias@%$host_alias%g
12139s%@host_cpu@%$host_cpu%g
12140s%@host_vendor@%$host_vendor%g
12141s%@host_os@%$host_os%g
12142s%@target@%$target%g
12143s%@target_alias@%$target_alias%g
12144s%@target_cpu@%$target_cpu%g
12145s%@target_vendor@%$target_vendor%g
12146s%@target_os@%$target_os%g
12147s%@build@%$build%g
12148s%@build_alias@%$build_alias%g
12149s%@build_cpu@%$build_cpu%g
12150s%@build_vendor@%$build_vendor%g
12151s%@build_os@%$build_os%g
12152s%@CC@%$CC%g
12153s%@CPP@%$CPP%g
12154s%@CXX@%$CXX%g
12155s%@CXXCPP@%$CXXCPP%g
12156s%@RANLIB@%$RANLIB%g
12157s%@AR@%$AR%g
12158s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
fa3e4baf 12159s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
a16d3c04
KB
12160s%@INSTALL_DATA@%$INSTALL_DATA%g
12161s%@STRIP@%$STRIP%g
12162s%@YACC@%$YACC%g
12163s%@LEX@%$LEX%g
12164s%@LEXLIB@%$LEXLIB%g
12165s%@LN_S@%$LN_S%g
12166s%@GTK_CONFIG@%$GTK_CONFIG%g
12167s%@GTK_CFLAGS@%$GTK_CFLAGS%g
12168s%@GTK_LIBS@%$GTK_LIBS%g
12169s%@X_CFLAGS@%$X_CFLAGS%g
12170s%@X_PRE_LIBS@%$X_PRE_LIBS%g
12171s%@X_LIBS@%$X_LIBS%g
12172s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
12173s%@WX_MAJOR_VERSION_NUMBER@%$WX_MAJOR_VERSION_NUMBER%g
12174s%@WX_MINOR_VERSION_NUMBER@%$WX_MINOR_VERSION_NUMBER%g
12175s%@WX_RELEASE_NUMBER@%$WX_RELEASE_NUMBER%g
12176s%@WX_LIBRARY_NAME@%$WX_LIBRARY_NAME%g
12177s%@WX_LIBRARY_NAME_STATIC@%$WX_LIBRARY_NAME_STATIC%g
12178s%@WX_LIBRARY_NAME_SHARED@%$WX_LIBRARY_NAME_SHARED%g
12179s%@WX_LIBRARY@%$WX_LIBRARY%g
12180s%@WX_TARGET_LIBRARY@%$WX_TARGET_LIBRARY%g
12181s%@WX_LIBRARY_LINK1@%$WX_LIBRARY_LINK1%g
12182s%@WX_LIBRARY_LINK2@%$WX_LIBRARY_LINK2%g
12183s%@WX_LIBRARY_LINK3@%$WX_LIBRARY_LINK3%g
12184s%@PROGRAM_EXT@%$PROGRAM_EXT%g
12185s%@WX_CREATE_LINKS@%$WX_CREATE_LINKS%g
12186s%@WX_CREATE_INSTALLED_LINKS@%$WX_CREATE_INSTALLED_LINKS%g
12187s%@SHARED_LD@%$SHARED_LD%g
12188s%@PIC_FLAG@%$PIC_FLAG%g
12189s%@DEP_INFO_FLAGS@%$DEP_INFO_FLAGS%g
12190s%@WXDEBUG_DEFINE@%$WXDEBUG_DEFINE%g
12191s%@TOOLKIT@%$TOOLKIT%g
12192s%@TOOLKIT_DEF@%$TOOLKIT_DEF%g
12193s%@TOOLKIT_DIR@%$TOOLKIT_DIR%g
12194s%@TOOLKIT_INCLUDE@%$TOOLKIT_INCLUDE%g
12195s%@GUIHEADERS@%$GUIHEADERS%g
12196s%@GUIOBJS@%$GUIOBJS%g
12197s%@COMMONOBJS@%$COMMONOBJS%g
12198s%@GENERICOBJS@%$GENERICOBJS%g
12199s%@GUIDEPS@%$GUIDEPS%g
12200s%@COMMONDEPS@%$COMMONDEPS%g
12201s%@GENERICDEPS@%$GENERICDEPS%g
12202s%@UNIXOBJS@%$UNIXOBJS%g
12203s%@GUIDIST@%$GUIDIST%g
12204s%@SRC_SUBDIRS@%$SRC_SUBDIRS%g
12205s%@INCLUDE_SUBDIRS@%$INCLUDE_SUBDIRS%g
12206s%@UTILS_SUBDIRS@%$UTILS_SUBDIRS%g
12207s%@DOCS_SUBDIRS@%$DOCS_SUBDIRS%g
12208s%@SAMPLES_SUBDIRS@%$SAMPLES_SUBDIRS%g
12209s%@USER_SUBDIRS@%$USER_SUBDIRS%g
12210s%@EXTRA_LIBS@%$EXTRA_LIBS%g
12211s%@LD_LIBS@%$LD_LIBS%g
12212s%@SET_MAKE@%$SET_MAKE%g
12213s%@GL_TOOLKIT_DIR@%$GL_TOOLKIT_DIR%g
12214
12215CEOF
12216EOF
12217
12218cat >> $CONFIG_STATUS <<\EOF
12219
12220# Split the substitutions into bite-sized pieces for seds with
12221# small command number limits, like on Digital OSF/1 and HP-UX.
12222ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
12223ac_file=1 # Number of current file.
12224ac_beg=1 # First line for current file.
12225ac_end=$ac_max_sed_cmds # Line after last line for current file.
12226ac_more_lines=:
12227ac_sed_cmds=""
12228while $ac_more_lines; do
12229 if test $ac_beg -gt 1; then
12230 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
12231 else
12232 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
12233 fi
12234 if test ! -s conftest.s$ac_file; then
12235 ac_more_lines=false
12236 rm -f conftest.s$ac_file
12237 else
12238 if test -z "$ac_sed_cmds"; then
12239 ac_sed_cmds="sed -f conftest.s$ac_file"
12240 else
12241 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
12242 fi
12243 ac_file=`expr $ac_file + 1`
12244 ac_beg=$ac_end
12245 ac_end=`expr $ac_end + $ac_max_sed_cmds`
12246 fi
12247done
12248if test -z "$ac_sed_cmds"; then
12249 ac_sed_cmds=cat
12250fi
12251EOF
12252
12253cat >> $CONFIG_STATUS <<EOF
12254
12255CONFIG_FILES=\${CONFIG_FILES-"wx-config
12256 src/make.env
12257 src/makeprog.env
12258 src/makelib.env
12259 Makefile
12260 samples/Makefile
12261 samples/bombs/Makefile
12262 samples/caret/Makefile
12263 samples/checklst/Makefile
12264 samples/config/Makefile
12265 samples/controls/Makefile
12266 samples/dialogs/Makefile
12267 samples/docview/Makefile
12268 samples/docvwmdi/Makefile
12269 samples/dnd/Makefile
12270 samples/drawing/Makefile
12271 samples/dynamic/Makefile
12272 samples/image/Makefile
12273 samples/internat/Makefile
12274 samples/layout/Makefile
12275 samples/listctrl/Makefile
12276 samples/mdi/Makefile
12277 samples/minifram/Makefile
12278 samples/minimal/Makefile
12279 samples/notebook/Makefile
12280 samples/printing/Makefile
12281 samples/proplist/Makefile
12282 samples/sashtest/Makefile
12283 samples/scroll/Makefile
12284 samples/splitter/Makefile
12285 samples/text/Makefile
12286 samples/thread/Makefile
12287 samples/toolbar/Makefile
12288 samples/treectrl/Makefile
12289 samples/typetest/Makefile
12290 samples/validate/Makefile
12291 samples/wxpoem/Makefile
12292 samples/wxsocket/Makefile
12293 samples/wizard/Makefile
12294 samples/html/Makefile
12295 samples/html/about/Makefile
12296 samples/html/help/Makefile
12297 samples/html/printing/Makefile
12298 samples/html/test/Makefile
12299 samples/html/zip/Makefile
12300 samples/html/virtual/Makefile
12301 samples/html/widget/Makefile
12302 utils/Makefile
12303 utils/wxMMedia2/Makefile
12304 utils/wxMMedia2/lib/Makefile
12305 utils/wxMMedia2/sample/Makefile
12306 utils/glcanvas/Makefile
12307 utils/glcanvas/${GL_TOOLKIT_DIR}/Makefile
1c8515f9
KB
12308 utils/ogl/Makefile
12309 utils/ogl/src/Makefile
a16d3c04
KB
12310 "}
12311EOF
12312cat >> $CONFIG_STATUS <<\EOF
12313for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
12314 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12315 case "$ac_file" in
12316 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
12317 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
12318 *) ac_file_in="${ac_file}.in" ;;
12319 esac
12320
12321 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
12322
12323 # Remove last slash and all that follows it. Not all systems have dirname.
12324 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
12325 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
12326 # The file is in a subdirectory.
12327 test ! -d "$ac_dir" && mkdir "$ac_dir"
12328 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
12329 # A "../" for each directory in $ac_dir_suffix.
12330 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
12331 else
12332 ac_dir_suffix= ac_dots=
12333 fi
12334
12335 case "$ac_given_srcdir" in
12336 .) srcdir=.
12337 if test -z "$ac_dots"; then top_srcdir=.
12338 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
12339 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
12340 *) # Relative path.
12341 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
12342 top_srcdir="$ac_dots$ac_given_srcdir" ;;
12343 esac
12344
12345 case "$ac_given_INSTALL" in
12346 [/$]*) INSTALL="$ac_given_INSTALL" ;;
12347 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
12348 esac
12349
12350 echo creating "$ac_file"
12351 rm -f "$ac_file"
12352 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
12353 case "$ac_file" in
12354 *Makefile*) ac_comsub="1i\\
12355# $configure_input" ;;
12356 *) ac_comsub= ;;
12357 esac
12358
12359 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
12360 sed -e "$ac_comsub
12361s%@configure_input@%$configure_input%g
12362s%@srcdir@%$srcdir%g
12363s%@top_srcdir@%$top_srcdir%g
12364s%@INSTALL@%$INSTALL%g
12365" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
12366fi; done
12367rm -f conftest.s*
12368
12369# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
12370# NAME is the cpp macro being defined and VALUE is the value it is being given.
12371#
12372# ac_d sets the value in "#define NAME VALUE" lines.
12373ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
12374ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
12375ac_dC='\3'
12376ac_dD='%g'
12377# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
12378ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
12379ac_uB='\([ ]\)%\1#\2define\3'
12380ac_uC=' '
12381ac_uD='\4%g'
12382# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
12383ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
12384ac_eB='$%\1#\2define\3'
12385ac_eC=' '
12386ac_eD='%g'
12387
12388if test "${CONFIG_HEADERS+set}" != set; then
12389EOF
12390cat >> $CONFIG_STATUS <<EOF
12391 CONFIG_HEADERS="setup.h:setup.h.in"
12392EOF
12393cat >> $CONFIG_STATUS <<\EOF
12394fi
12395for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
12396 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12397 case "$ac_file" in
12398 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
12399 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
12400 *) ac_file_in="${ac_file}.in" ;;
12401 esac
12402
12403 echo creating $ac_file
12404
12405 rm -f conftest.frag conftest.in conftest.out
12406 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
12407 cat $ac_file_inputs > conftest.in
12408
12409EOF
12410
12411# Transform confdefs.h into a sed script conftest.vals that substitutes
12412# the proper values into config.h.in to produce config.h. And first:
12413# Protect against being on the right side of a sed subst in config.status.
12414# Protect against being in an unquoted here document in config.status.
12415rm -f conftest.vals
12416cat > conftest.hdr <<\EOF
12417s/[\\&%]/\\&/g
12418s%[\\$`]%\\&%g
12419s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
12420s%ac_d%ac_u%gp
12421s%ac_u%ac_e%gp
12422EOF
12423sed -n -f conftest.hdr confdefs.h > conftest.vals
12424rm -f conftest.hdr
12425
12426# This sed command replaces #undef with comments. This is necessary, for
12427# example, in the case of _POSIX_SOURCE, which is predefined and required
12428# on some systems where configure will not decide to define it.
12429cat >> conftest.vals <<\EOF
12430s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
12431EOF
12432
12433# Break up conftest.vals because some shells have a limit on
12434# the size of here documents, and old seds have small limits too.
12435
12436rm -f conftest.tail
12437while :
12438do
12439 ac_lines=`grep -c . conftest.vals`
12440 # grep -c gives empty output for an empty file on some AIX systems.
12441 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
12442 # Write a limited-size here document to conftest.frag.
12443 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
12444 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
12445 echo 'CEOF
12446 sed -f conftest.frag conftest.in > conftest.out
12447 rm -f conftest.in
12448 mv conftest.out conftest.in
12449' >> $CONFIG_STATUS
12450 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
12451 rm -f conftest.vals
12452 mv conftest.tail conftest.vals
12453done
12454rm -f conftest.vals
12455
12456cat >> $CONFIG_STATUS <<\EOF
12457 rm -f conftest.frag conftest.h
12458 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
12459 cat conftest.in >> conftest.h
12460 rm -f conftest.in
12461 if cmp -s $ac_file conftest.h 2>/dev/null; then
12462 echo "$ac_file is unchanged"
12463 rm -f conftest.h
12464 else
12465 # Remove last slash and all that follows it. Not all systems have dirname.
12466 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
12467 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
12468 # The file is in a subdirectory.
12469 test ! -d "$ac_dir" && mkdir "$ac_dir"
12470 fi
12471 rm -f $ac_file
12472 mv conftest.h $ac_file
12473 fi
12474fi; done
12475
12476EOF
12477cat >> $CONFIG_STATUS <<EOF
12478
12479 LN_S="${ac_cv_prog_LN_S}"
12480 TOOLKIT_DIR="${TOOLKIT_DIR}"
12481
12482
12483EOF
12484cat >> $CONFIG_STATUS <<\EOF
12485
12486 chmod +x wx-config
1c8515f9
KB
12487 if test ! -d include; then
12488 mkdir include
a16d3c04 12489 fi
1c8515f9
KB
12490 if test ! -d include/wx; then
12491 mkdir include/wx
a16d3c04 12492 fi
1c8515f9
KB
12493 if test ! -d include/wx/${TOOLKIT_DIR}; then
12494 mkdir include/wx/${TOOLKIT_DIR}
a16d3c04
KB
12495 fi
12496 cp -f setup.h include/wx/${TOOLKIT_DIR}/setup.h
12497
12498exit 0
12499EOF
12500chmod +x $CONFIG_STATUS
12501rm -fr confdefs* $ac_clean_files
12502test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
12503
12504