]> git.saurik.com Git - wxWidgets.git/blame - configure
distribution updates
[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.
f7a11f8c 44# Generated automatically using autoconf version 2.14
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:
f7a11f8c
RR
54ac_help="$ac_help
55--enable-gui use GUI classes"
a16d3c04
KB
56ac_help="$ac_help
57 --with-gtk use GTK+"
58ac_help="$ac_help
59 --with-motif use Motif/Lesstif"
60ac_help="$ac_help
61 --with-wine use WINE"
62ac_help="$ac_help
63 --with-cygwin use Cygwin for MS-Windows"
64ac_help="$ac_help
65 --with-mingw use GCC Minimal MS-Windows"
66ac_help="$ac_help
67 --with-gtk-prefix=PFX Prefix where GTK is installed"
68ac_help="$ac_help
69 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed"
70ac_help="$ac_help
71--with-dmalloc use dmalloc library (www.letters.com/dmalloc)"
72ac_help="$ac_help
73--with-zlib use zlib for LZW compression"
74ac_help="$ac_help
75--with-libpng use libpng (PNG image format)"
76ac_help="$ac_help
a16d3c04
KB
77--with-libjpeg use libjpeg (JPEG file format)"
78ac_help="$ac_help
79--with-opengl use OpenGL (or Mesa)"
80ac_help="$ac_help
81--with-odbc use the IODBC and wxODBC classes"
82ac_help="$ac_help
83--enable-shared create shared library code"
84ac_help="$ac_help
85--enable-optimise create optimised code"
86ac_help="$ac_help
87--enable-debug same as debug_flag and debug_info"
88ac_help="$ac_help
89--enable-debug_flag set __WXDEBUG__ flag (recommended for developers!)"
90ac_help="$ac_help
91--enable-debug_info create code with debugging information"
92ac_help="$ac_help
93--enable-debug_gdb create code with extra GDB debugging information"
94ac_help="$ac_help
95--enable-debug_cntxt use wxDebugContext"
96ac_help="$ac_help
97--enable-mem_tracing create code with memory tracing"
98ac_help="$ac_help
99--enable-profile create code with profiling information"
100ac_help="$ac_help
101--enable-no_rtti create code without RTTI information"
102ac_help="$ac_help
103--enable-no_exceptions create code without exceptions information"
104ac_help="$ac_help
105--enable-permissive compile code disregarding strict ANSI"
106ac_help="$ac_help
107--enable-no_deps create code without dependency information"
108ac_help="$ac_help
a16d3c04
KB
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)
f7a11f8c 590 echo "configure generated by autoconf version 2.14"
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
f7a11f8c 1323
1c8515f9
KB
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
f7a11f8c 1434
1c8515f9
KB
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
f7a11f8c
RR
1451
1452
1453 echo $ac_n "checking "for --enable-gui"""... $ac_c" 1>&6
1454echo "configure:1455: checking "for --enable-gui"" >&5
1455 no_cache=0
1456 # Check whether --enable-gui or --disable-gui was given.
1457if test "${enable_gui+set}" = set; then
1458 enableval="$enable_gui"
1459
1460 if test "$enableval" = yes; then
1461 ac_cv_use_gui='wxUSE_GUI=yes'
1462 else
1463 ac_cv_use_gui='wxUSE_GUI=no'
1464 fi
1465
1466else
1467
1468 LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
1469 if test "x$LINE" != x ; then
1470 eval "DEFAULT_$LINE"
1471 else
1472 no_cache=1
1473 fi
1474
1475 ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
1476
1477fi
1478
1479
1480 eval "$ac_cv_use_gui"
1481 if test "$no_cache" != 1; then
1482 echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
1483 fi
1484
1485 if test "$wxUSE_GUI" = yes; then
1486 echo "$ac_t""yes" 1>&6
1487 else
1488 echo "$ac_t""no" 1>&6
1489 fi
1490
1491
1492if test "$wxUSE_GUI" = "no"; then
1493 DEFAULT_wxUSE_ZLIB=no
1494 DEFAULT_wxUSE_LIBPNG=no
1495 DEFAULT_wxUSE_LIBJPEG=no
1496 DEFAULT_wxUSE_SOCKETS=no
1497 DEFAULT_wxUSE_JOYSTICK=no
1498 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
1499 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
1500 DEFAULT_wxUSE_POSTSCRIPT=no
1501 DEFAULT_wxUSE_X_RESOURCES=no
1502 DEFAULT_wxUSE_CLIPBOARD=no
1503 DEFAULT_wxUSE_TOOLTIPS=no
1504 DEFAULT_wxUSE_DRAG_AND_DROP=no
1505 DEFAULT_wxUSE_SPLINES=no
1506 DEFAULT_wxUSE_MDI_ARCHITECTURE=no
1507 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
1508 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
1509 DEFAULT_wxUSE_PROLOGIO=no
1510 DEFAULT_wxUSE_RESOURCES=no
1511 DEFAULT_wxUSE_CONSTRAINTS=no
1512 DEFAULT_wxUSE_IPC=no
1513 DEFAULT_wxUSE_HELP=no
1514 DEFAULT_wxUSE_WXTREE=no
1515 DEFAULT_wxUSE_METAFILE=no
1516 DEFAULT_wxUSE_COMMONDLGS=no
1517 DEFAULT_wxUSE_DIRDLG=no
1518 DEFAULT_wxUSE_TEXTDLG=no
1519 DEFAULT_wxUSE_STARTUP_TIPS=no
1520 DEFAULT_wxUSE_PROGRESSDLG=no
1521 DEFAULT_wxUSE_MINIFRAME=no
1522 DEFAULT_wxUSE_HTML=no
1523 DEFAULT_wxUSE_FS_INET=no
1524 DEFAULT_wxUSE_FS_ZIP=no
1525 DEFAULT_wxUSE_BUSYINFO=no
1526 DEFAULT_wxUSE_ZIPSTREAM=no
1527 DEFAULT_wxUSE_VALIDATORS=yes
1528 DEFAULT_wxUSE_ACCEL=no
1529 DEFAULT_wxUSE_CARET=no
1530 DEFAULT_wxUSE_BMPBUTTON=no
1531 DEFAULT_wxUSE_CHECKBOX=no
1532 DEFAULT_wxUSE_CHECKLST=no
1533 DEFAULT_wxUSE_CHOICE=yes
1534 DEFAULT_wxUSE_COMBOBOX=no
1535 DEFAULT_wxUSE_GAUGE=no
1536 DEFAULT_wxUSE_GRID=no
1537 DEFAULT_wxUSE_IMAGLIST=no
1538 DEFAULT_wxUSE_LISTBOX=no
1539 DEFAULT_wxUSE_LISTCTRL=no
1540 DEFAULT_wxUSE_NOTEBOOK=no
1541 DEFAULT_wxUSE_RADIOBOX=no
1542 DEFAULT_wxUSE_RADIOBTN=no
1543 DEFAULT_wxUSE_SASH=no
1544 DEFAULT_wxUSE_SCROLLBAR=no
1545 DEFAULT_wxUSE_SLIDER=no
1546 DEFAULT_wxUSE_SPINBTN=no
1547 DEFAULT_wxUSE_SPLITTER=no
1548 DEFAULT_wxUSE_STATBMP=no
1549 DEFAULT_wxUSE_STATBOX=no
1550 DEFAULT_wxUSE_STATLINE=no
1551 DEFAULT_wxUSE_STATUSBAR=yes
1552 DEFAULT_wxUSE_TABDIALOG=no
1553 DEFAULT_wxUSE_TOOLBAR=no
1554 DEFAULT_wxUSE_TREECTRL=no
1555 DEFAULT_wxUSE_GIF=no
1556 DEFAULT_wxUSE_PCX=no
1557 DEFAULT_wxUSE_PNM=no
1558fi
1559
a16d3c04
KB
1560# Check whether --with-gtk or --without-gtk was given.
1561if test "${with_gtk+set}" = set; then
1562 withval="$with_gtk"
1563 wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
1564fi
1565
1566# Check whether --with-motif or --without-motif was given.
1567if test "${with_motif+set}" = set; then
1568 withval="$with_motif"
1569 wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
1570fi
1571
1572# Check whether --with-wine or --without-wine was given.
1573if test "${with_wine+set}" = set; then
1574 withval="$with_wine"
1575 wxUSE_WINE="$withval" CACHE_WINE=1 TOOLKIT_GIVEN=1
1576fi
1577
1578# Check whether --with-cygwin or --without-cygwin was given.
1579if test "${with_cygwin+set}" = set; then
1580 withval="$with_cygwin"
1581 wxUSE_CYGWIN="$withval" CACHE_CYGWIN=1 TOOLKIT_GIVEN=1
1582fi
1583
1584# Check whether --with-mingw or --without-mingw was given.
1585if test "${with_mingw+set}" = set; then
1586 withval="$with_mingw"
1587 wxUSE_MINGW="$withval" CACHE_MINGW=1 TOOLKIT_GIVEN=1
1588fi
1589
1590
1591# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
1592if test "${with_gtk_prefix+set}" = set; then
1593 withval="$with_gtk_prefix"
1594 gtk_config_prefix="$withval"
1595else
1596 gtk_config_prefix=""
1597fi
1598
1599# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
1600if test "${with_gtk_exec_prefix+set}" = set; then
1601 withval="$with_gtk_exec_prefix"
1602 gtk_config_exec_prefix="$withval"
1603else
1604 gtk_config_exec_prefix=""
1605fi
1606
1607
1608
1609 echo $ac_n "checking "for --with-dmalloc"""... $ac_c" 1>&6
f7a11f8c 1610echo "configure:1611: checking "for --with-dmalloc"" >&5
a16d3c04
KB
1611 no_cache=0
1612 # Check whether --with-dmalloc or --without-dmalloc was given.
1613if test "${with_dmalloc+set}" = set; then
1614 withval="$with_dmalloc"
1615
1616 if test "$withval" = yes; then
1617 ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
1618 else
1619 ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
1620 fi
1621
1622else
1623
1624 LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
1625 if test "x$LINE" != x ; then
1626 eval "DEFAULT_$LINE"
1627 else
1628 no_cache=1
1629 fi
1630
1631 ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
1632
1633fi
1634
1635
1636 eval "$ac_cv_use_dmalloc"
1637 if test "$no_cache" != 1; then
1638 echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
1639 fi
1640
1641 if test "$wxUSE_DMALLOC" = yes; then
1642 echo "$ac_t""yes" 1>&6
1643 else
1644 echo "$ac_t""no" 1>&6
1645 fi
1646
1647
1648 echo $ac_n "checking "for --with-zlib"""... $ac_c" 1>&6
f7a11f8c 1649echo "configure:1650: checking "for --with-zlib"" >&5
a16d3c04
KB
1650 no_cache=0
1651 # Check whether --with-zlib or --without-zlib was given.
1652if test "${with_zlib+set}" = set; then
1653 withval="$with_zlib"
1654
1655 if test "$withval" = yes; then
1656 ac_cv_use_zlib='wxUSE_ZLIB=yes'
1657 else
1658 ac_cv_use_zlib='wxUSE_ZLIB=no'
1659 fi
1660
1661else
1662
1663 LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
1664 if test "x$LINE" != x ; then
1665 eval "DEFAULT_$LINE"
1666 else
1667 no_cache=1
1668 fi
1669
1670 ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
1671
1672fi
1673
1674
1675 eval "$ac_cv_use_zlib"
1676 if test "$no_cache" != 1; then
1677 echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
1678 fi
1679
1680 if test "$wxUSE_ZLIB" = yes; then
1681 echo "$ac_t""yes" 1>&6
1682 else
1683 echo "$ac_t""no" 1>&6
1684 fi
1685
1686
1687 echo $ac_n "checking "for --with-libpng"""... $ac_c" 1>&6
f7a11f8c 1688echo "configure:1689: checking "for --with-libpng"" >&5
a16d3c04
KB
1689 no_cache=0
1690 # Check whether --with-libpng or --without-libpng was given.
1691if test "${with_libpng+set}" = set; then
1692 withval="$with_libpng"
1693
1694 if test "$withval" = yes; then
1695 ac_cv_use_libpng='wxUSE_LIBPNG=yes'
1696 else
1697 ac_cv_use_libpng='wxUSE_LIBPNG=no'
1698 fi
1699
1700else
1701
1702 LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
1703 if test "x$LINE" != x ; then
1704 eval "DEFAULT_$LINE"
1705 else
1706 no_cache=1
1707 fi
1708
1709 ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
1710
1711fi
1712
1713
1714 eval "$ac_cv_use_libpng"
1715 if test "$no_cache" != 1; then
1716 echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
1717 fi
1718
1719 if test "$wxUSE_LIBPNG" = yes; then
1720 echo "$ac_t""yes" 1>&6
1721 else
1722 echo "$ac_t""no" 1>&6
1723 fi
1724
1725
a16d3c04 1726 echo $ac_n "checking "for --with-libjpeg"""... $ac_c" 1>&6
f7a11f8c 1727echo "configure:1728: checking "for --with-libjpeg"" >&5
a16d3c04
KB
1728 no_cache=0
1729 # Check whether --with-libjpeg or --without-libjpeg was given.
1730if test "${with_libjpeg+set}" = set; then
1731 withval="$with_libjpeg"
1732
1733 if test "$withval" = yes; then
1734 ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
1735 else
1736 ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
1737 fi
1738
1739else
1740
1741 LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
1742 if test "x$LINE" != x ; then
1743 eval "DEFAULT_$LINE"
1744 else
1745 no_cache=1
1746 fi
1747
1748 ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
1749
1750fi
1751
1752
1753 eval "$ac_cv_use_libjpeg"
1754 if test "$no_cache" != 1; then
1755 echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
1756 fi
1757
1758 if test "$wxUSE_LIBJPEG" = yes; then
1759 echo "$ac_t""yes" 1>&6
1760 else
1761 echo "$ac_t""no" 1>&6
1762 fi
1763
1764
1765 echo $ac_n "checking "for --with-opengl"""... $ac_c" 1>&6
f7a11f8c 1766echo "configure:1767: checking "for --with-opengl"" >&5
a16d3c04
KB
1767 no_cache=0
1768 # Check whether --with-opengl or --without-opengl was given.
1769if test "${with_opengl+set}" = set; then
1770 withval="$with_opengl"
1771
1772 if test "$withval" = yes; then
1773 ac_cv_use_opengl='wxUSE_OPENGL=yes'
1774 else
1775 ac_cv_use_opengl='wxUSE_OPENGL=no'
1776 fi
1777
1778else
1779
1780 LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
1781 if test "x$LINE" != x ; then
1782 eval "DEFAULT_$LINE"
1783 else
1784 no_cache=1
1785 fi
1786
1787 ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
1788
1789fi
1790
1791
1792 eval "$ac_cv_use_opengl"
1793 if test "$no_cache" != 1; then
1794 echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
1795 fi
1796
1797 if test "$wxUSE_OPENGL" = yes; then
1798 echo "$ac_t""yes" 1>&6
1799 else
1800 echo "$ac_t""no" 1>&6
1801 fi
1802
1803
1804 echo $ac_n "checking "for --with-odbc"""... $ac_c" 1>&6
f7a11f8c 1805echo "configure:1806: checking "for --with-odbc"" >&5
a16d3c04
KB
1806 no_cache=0
1807 # Check whether --with-odbc or --without-odbc was given.
1808if test "${with_odbc+set}" = set; then
1809 withval="$with_odbc"
1810
1811 if test "$withval" = yes; then
1812 ac_cv_use_odbc='wxUSE_ODBC=yes'
1813 else
1814 ac_cv_use_odbc='wxUSE_ODBC=no'
1815 fi
1816
1817else
1818
1819 LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
1820 if test "x$LINE" != x ; then
1821 eval "DEFAULT_$LINE"
1822 else
1823 no_cache=1
1824 fi
1825
1826 ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
1827
1828fi
1829
1830
1831 eval "$ac_cv_use_odbc"
1832 if test "$no_cache" != 1; then
1833 echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
1834 fi
1835
1836 if test "$wxUSE_ODBC" = yes; then
1837 echo "$ac_t""yes" 1>&6
1838 else
1839 echo "$ac_t""no" 1>&6
1840 fi
1841
1842
1843
1844
1845
1846 echo $ac_n "checking "for --enable-shared"""... $ac_c" 1>&6
f7a11f8c 1847echo "configure:1848: checking "for --enable-shared"" >&5
a16d3c04
KB
1848 no_cache=0
1849 # Check whether --enable-shared or --disable-shared was given.
1850if test "${enable_shared+set}" = set; then
1851 enableval="$enable_shared"
1852
1853 if test "$enableval" = yes; then
1854 ac_cv_use_shared='wxUSE_SHARED=yes'
1855 else
1856 ac_cv_use_shared='wxUSE_SHARED=no'
1857 fi
1858
1859else
1860
1861 LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
1862 if test "x$LINE" != x ; then
1863 eval "DEFAULT_$LINE"
1864 else
1865 no_cache=1
1866 fi
1867
1868 ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
1869
1870fi
1871
1872
1873 eval "$ac_cv_use_shared"
1874 if test "$no_cache" != 1; then
1875 echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
1876 fi
1877
1878 if test "$wxUSE_SHARED" = yes; then
1879 echo "$ac_t""yes" 1>&6
1880 else
1881 echo "$ac_t""no" 1>&6
1882 fi
1883
1884
1885 echo $ac_n "checking "for --enable-optimise"""... $ac_c" 1>&6
f7a11f8c 1886echo "configure:1887: checking "for --enable-optimise"" >&5
a16d3c04
KB
1887 no_cache=0
1888 # Check whether --enable-optimise or --disable-optimise was given.
1889if test "${enable_optimise+set}" = set; then
1890 enableval="$enable_optimise"
1891
1892 if test "$enableval" = yes; then
1893 ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
1894 else
1895 ac_cv_use_optimise='wxUSE_OPTIMISE=no'
1896 fi
1897
1898else
1899
1900 LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
1901 if test "x$LINE" != x ; then
1902 eval "DEFAULT_$LINE"
1903 else
1904 no_cache=1
1905 fi
1906
1907 ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
1908
1909fi
1910
1911
1912 eval "$ac_cv_use_optimise"
1913 if test "$no_cache" != 1; then
1914 echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
1915 fi
1916
1917 if test "$wxUSE_OPTIMISE" = yes; then
1918 echo "$ac_t""yes" 1>&6
1919 else
1920 echo "$ac_t""no" 1>&6
1921 fi
1922
1923
1924 echo $ac_n "checking "for --enable-debug"""... $ac_c" 1>&6
f7a11f8c 1925echo "configure:1926: checking "for --enable-debug"" >&5
a16d3c04
KB
1926 no_cache=0
1927 # Check whether --enable-debug or --disable-debug was given.
1928if test "${enable_debug+set}" = set; then
1929 enableval="$enable_debug"
1930
1931 if test "$enableval" = yes; then
1932 ac_cv_use_debug='wxUSE_DEBUG=yes'
1933 else
1934 ac_cv_use_debug='wxUSE_DEBUG=no'
1935 fi
1936
1937else
1938
1939 LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
1940 if test "x$LINE" != x ; then
1941 eval "DEFAULT_$LINE"
1942 else
1943 no_cache=1
1944 fi
1945
1946 ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
1947
1948fi
1949
1950
1951 eval "$ac_cv_use_debug"
1952 if test "$no_cache" != 1; then
1953 echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
1954 fi
1955
1956 if test "$wxUSE_DEBUG" = yes; then
1957 echo "$ac_t""yes" 1>&6
1958 else
1959 echo "$ac_t""no" 1>&6
1960 fi
1961
1962
1963if test "$wxUSE_DEBUG" = "yes"; then
1964 DEFAULT_wxUSE_DEBUG_FLAG=yes
1965 DEFAULT_wxUSE_DEBUG_INFO=yes
1966elif test "$wxUSE_DEBUG" = "no"; then
1967 DEFAULT_wxUSE_DEBUG_FLAG=no
1968 DEFAULT_wxUSE_DEBUG_INFO=no
1969fi
1970
1971
1972 echo $ac_n "checking "for --enable-debug_flag"""... $ac_c" 1>&6
f7a11f8c 1973echo "configure:1974: checking "for --enable-debug_flag"" >&5
a16d3c04
KB
1974 no_cache=0
1975 # Check whether --enable-debug_flag or --disable-debug_flag was given.
1976if test "${enable_debug_flag+set}" = set; then
1977 enableval="$enable_debug_flag"
1978
1979 if test "$enableval" = yes; then
1980 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
1981 else
1982 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
1983 fi
1984
1985else
1986
1987 LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
1988 if test "x$LINE" != x ; then
1989 eval "DEFAULT_$LINE"
1990 else
1991 no_cache=1
1992 fi
1993
1994 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
1995
1996fi
1997
1998
1999 eval "$ac_cv_use_debug_flag"
2000 if test "$no_cache" != 1; then
2001 echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
2002 fi
2003
2004 if test "$wxUSE_DEBUG_FLAG" = yes; then
2005 echo "$ac_t""yes" 1>&6
2006 else
2007 echo "$ac_t""no" 1>&6
2008 fi
2009
2010
2011 echo $ac_n "checking "for --enable-debug_info"""... $ac_c" 1>&6
f7a11f8c 2012echo "configure:2013: checking "for --enable-debug_info"" >&5
a16d3c04
KB
2013 no_cache=0
2014 # Check whether --enable-debug_info or --disable-debug_info was given.
2015if test "${enable_debug_info+set}" = set; then
2016 enableval="$enable_debug_info"
2017
2018 if test "$enableval" = yes; then
2019 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
2020 else
2021 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
2022 fi
2023
2024else
2025
2026 LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
2027 if test "x$LINE" != x ; then
2028 eval "DEFAULT_$LINE"
2029 else
2030 no_cache=1
2031 fi
2032
2033 ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
2034
2035fi
2036
2037
2038 eval "$ac_cv_use_debug_info"
2039 if test "$no_cache" != 1; then
2040 echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
2041 fi
2042
2043 if test "$wxUSE_DEBUG_INFO" = yes; then
2044 echo "$ac_t""yes" 1>&6
2045 else
2046 echo "$ac_t""no" 1>&6
2047 fi
2048
2049
2050 echo $ac_n "checking "for --enable-debug_gdb"""... $ac_c" 1>&6
f7a11f8c 2051echo "configure:2052: checking "for --enable-debug_gdb"" >&5
a16d3c04
KB
2052 no_cache=0
2053 # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
2054if test "${enable_debug_gdb+set}" = set; then
2055 enableval="$enable_debug_gdb"
2056
2057 if test "$enableval" = yes; then
2058 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
2059 else
2060 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
2061 fi
2062
2063else
2064
2065 LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
2066 if test "x$LINE" != x ; then
2067 eval "DEFAULT_$LINE"
2068 else
2069 no_cache=1
2070 fi
2071
2072 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
2073
2074fi
2075
2076
2077 eval "$ac_cv_use_debug_gdb"
2078 if test "$no_cache" != 1; then
2079 echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
2080 fi
2081
2082 if test "$wxUSE_DEBUG_GDB" = yes; then
2083 echo "$ac_t""yes" 1>&6
2084 else
2085 echo "$ac_t""no" 1>&6
2086 fi
2087
2088
2089 echo $ac_n "checking "for --enable-debug_cntxt"""... $ac_c" 1>&6
f7a11f8c 2090echo "configure:2091: checking "for --enable-debug_cntxt"" >&5
a16d3c04
KB
2091 no_cache=0
2092 # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
2093if test "${enable_debug_cntxt+set}" = set; then
2094 enableval="$enable_debug_cntxt"
2095
2096 if test "$enableval" = yes; then
2097 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
2098 else
2099 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
2100 fi
2101
2102else
2103
2104 LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
2105 if test "x$LINE" != x ; then
2106 eval "DEFAULT_$LINE"
2107 else
2108 no_cache=1
2109 fi
2110
2111 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
2112
2113fi
2114
2115
2116 eval "$ac_cv_use_debug_cntxt"
2117 if test "$no_cache" != 1; then
2118 echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
2119 fi
2120
2121 if test "$wxUSE_DEBUG_CONTEXT" = yes; then
2122 echo "$ac_t""yes" 1>&6
2123 else
2124 echo "$ac_t""no" 1>&6
2125 fi
2126
2127
2128 echo $ac_n "checking "for --enable-mem_tracing"""... $ac_c" 1>&6
f7a11f8c 2129echo "configure:2130: checking "for --enable-mem_tracing"" >&5
a16d3c04
KB
2130 no_cache=0
2131 # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
2132if test "${enable_mem_tracing+set}" = set; then
2133 enableval="$enable_mem_tracing"
2134
2135 if test "$enableval" = yes; then
2136 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
2137 else
2138 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
2139 fi
2140
2141else
2142
2143 LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
2144 if test "x$LINE" != x ; then
2145 eval "DEFAULT_$LINE"
2146 else
2147 no_cache=1
2148 fi
2149
2150 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
2151
2152fi
2153
2154
2155 eval "$ac_cv_use_mem_tracing"
2156 if test "$no_cache" != 1; then
2157 echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
2158 fi
2159
2160 if test "$wxUSE_MEM_TRACING" = yes; then
2161 echo "$ac_t""yes" 1>&6
2162 else
2163 echo "$ac_t""no" 1>&6
2164 fi
2165
2166
2167 echo $ac_n "checking "for --enable-profile"""... $ac_c" 1>&6
f7a11f8c 2168echo "configure:2169: checking "for --enable-profile"" >&5
a16d3c04
KB
2169 no_cache=0
2170 # Check whether --enable-profile or --disable-profile was given.
2171if test "${enable_profile+set}" = set; then
2172 enableval="$enable_profile"
2173
2174 if test "$enableval" = yes; then
2175 ac_cv_use_profile='wxUSE_PROFILE=yes'
2176 else
2177 ac_cv_use_profile='wxUSE_PROFILE=no'
2178 fi
2179
2180else
2181
2182 LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
2183 if test "x$LINE" != x ; then
2184 eval "DEFAULT_$LINE"
2185 else
2186 no_cache=1
2187 fi
2188
2189 ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
2190
2191fi
2192
2193
2194 eval "$ac_cv_use_profile"
2195 if test "$no_cache" != 1; then
2196 echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
2197 fi
2198
2199 if test "$wxUSE_PROFILE" = yes; then
2200 echo "$ac_t""yes" 1>&6
2201 else
2202 echo "$ac_t""no" 1>&6
2203 fi
2204
2205
2206 echo $ac_n "checking "for --enable-no_rtti"""... $ac_c" 1>&6
f7a11f8c 2207echo "configure:2208: checking "for --enable-no_rtti"" >&5
a16d3c04
KB
2208 no_cache=0
2209 # Check whether --enable-no_rtti or --disable-no_rtti was given.
2210if test "${enable_no_rtti+set}" = set; then
2211 enableval="$enable_no_rtti"
2212
2213 if test "$enableval" = yes; then
2214 ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
2215 else
2216 ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
2217 fi
2218
2219else
2220
2221 LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
2222 if test "x$LINE" != x ; then
2223 eval "DEFAULT_$LINE"
2224 else
2225 no_cache=1
2226 fi
2227
2228 ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
2229
2230fi
2231
2232
2233 eval "$ac_cv_use_no_rtti"
2234 if test "$no_cache" != 1; then
2235 echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
2236 fi
2237
2238 if test "$wxUSE_NO_RTTI" = yes; then
2239 echo "$ac_t""yes" 1>&6
2240 else
2241 echo "$ac_t""no" 1>&6
2242 fi
2243
2244
2245 echo $ac_n "checking "for --enable-no_exceptions"""... $ac_c" 1>&6
f7a11f8c 2246echo "configure:2247: checking "for --enable-no_exceptions"" >&5
a16d3c04
KB
2247 no_cache=0
2248 # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
2249if test "${enable_no_exceptions+set}" = set; then
2250 enableval="$enable_no_exceptions"
2251
2252 if test "$enableval" = yes; then
2253 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
2254 else
2255 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
2256 fi
2257
2258else
2259
2260 LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
2261 if test "x$LINE" != x ; then
2262 eval "DEFAULT_$LINE"
2263 else
2264 no_cache=1
2265 fi
2266
2267 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
2268
2269fi
2270
2271
2272 eval "$ac_cv_use_no_exceptions"
2273 if test "$no_cache" != 1; then
2274 echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
2275 fi
2276
2277 if test "$wxUSE_NO_EXCEPTIONS" = yes; then
2278 echo "$ac_t""yes" 1>&6
2279 else
2280 echo "$ac_t""no" 1>&6
2281 fi
2282
2283
2284 echo $ac_n "checking "for --enable-permissive"""... $ac_c" 1>&6
f7a11f8c 2285echo "configure:2286: checking "for --enable-permissive"" >&5
a16d3c04
KB
2286 no_cache=0
2287 # Check whether --enable-permissive or --disable-permissive was given.
2288if test "${enable_permissive+set}" = set; then
2289 enableval="$enable_permissive"
2290
2291 if test "$enableval" = yes; then
2292 ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
2293 else
2294 ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
2295 fi
2296
2297else
2298
2299 LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
2300 if test "x$LINE" != x ; then
2301 eval "DEFAULT_$LINE"
2302 else
2303 no_cache=1
2304 fi
2305
2306 ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
2307
2308fi
2309
2310
2311 eval "$ac_cv_use_permissive"
2312 if test "$no_cache" != 1; then
2313 echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
2314 fi
2315
2316 if test "$wxUSE_PERMISSIVE" = yes; then
2317 echo "$ac_t""yes" 1>&6
2318 else
2319 echo "$ac_t""no" 1>&6
2320 fi
2321
2322
2323 echo $ac_n "checking "for --enable-no_deps"""... $ac_c" 1>&6
f7a11f8c 2324echo "configure:2325: checking "for --enable-no_deps"" >&5
a16d3c04
KB
2325 no_cache=0
2326 # Check whether --enable-no_deps or --disable-no_deps was given.
2327if test "${enable_no_deps+set}" = set; then
2328 enableval="$enable_no_deps"
2329
2330 if test "$enableval" = yes; then
2331 ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
2332 else
2333 ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
2334 fi
2335
2336else
2337
2338 LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
2339 if test "x$LINE" != x ; then
2340 eval "DEFAULT_$LINE"
2341 else
2342 no_cache=1
2343 fi
2344
2345 ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
2346
2347fi
2348
2349
2350 eval "$ac_cv_use_no_deps"
2351 if test "$no_cache" != 1; then
2352 echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
2353 fi
2354
2355 if test "$wxUSE_NO_DEPS" = yes; then
2356 echo "$ac_t""yes" 1>&6
2357 else
2358 echo "$ac_t""no" 1>&6
2359 fi
2360
2361
2362
2363
a16d3c04 2364 echo $ac_n "checking "for --enable-intl"""... $ac_c" 1>&6
f7a11f8c 2365echo "configure:2366: checking "for --enable-intl"" >&5
a16d3c04
KB
2366 no_cache=0
2367 # Check whether --enable-intl or --disable-intl was given.
2368if test "${enable_intl+set}" = set; then
2369 enableval="$enable_intl"
2370
2371 if test "$enableval" = yes; then
2372 ac_cv_use_intl='wxUSE_INTL=yes'
2373 else
2374 ac_cv_use_intl='wxUSE_INTL=no'
2375 fi
2376
2377else
2378
2379 LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
2380 if test "x$LINE" != x ; then
2381 eval "DEFAULT_$LINE"
2382 else
2383 no_cache=1
2384 fi
2385
2386 ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
2387
2388fi
2389
2390
2391 eval "$ac_cv_use_intl"
2392 if test "$no_cache" != 1; then
2393 echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
2394 fi
2395
2396 if test "$wxUSE_INTL" = yes; then
2397 echo "$ac_t""yes" 1>&6
2398 else
2399 echo "$ac_t""no" 1>&6
2400 fi
2401
2402
2403 echo $ac_n "checking "for --enable-config"""... $ac_c" 1>&6
f7a11f8c 2404echo "configure:2405: checking "for --enable-config"" >&5
a16d3c04
KB
2405 no_cache=0
2406 # Check whether --enable-config or --disable-config was given.
2407if test "${enable_config+set}" = set; then
2408 enableval="$enable_config"
2409
2410 if test "$enableval" = yes; then
2411 ac_cv_use_config='wxUSE_CONFIG=yes'
2412 else
2413 ac_cv_use_config='wxUSE_CONFIG=no'
2414 fi
2415
2416else
2417
2418 LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
2419 if test "x$LINE" != x ; then
2420 eval "DEFAULT_$LINE"
2421 else
2422 no_cache=1
2423 fi
2424
2425 ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
2426
2427fi
2428
2429
2430 eval "$ac_cv_use_config"
2431 if test "$no_cache" != 1; then
2432 echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
2433 fi
2434
2435 if test "$wxUSE_CONFIG" = yes; then
2436 echo "$ac_t""yes" 1>&6
2437 else
2438 echo "$ac_t""no" 1>&6
2439 fi
2440
2441
2442 echo $ac_n "checking "for --enable-sockets"""... $ac_c" 1>&6
f7a11f8c 2443echo "configure:2444: checking "for --enable-sockets"" >&5
a16d3c04
KB
2444 no_cache=0
2445 # Check whether --enable-sockets or --disable-sockets was given.
2446if test "${enable_sockets+set}" = set; then
2447 enableval="$enable_sockets"
2448
2449 if test "$enableval" = yes; then
2450 ac_cv_use_sockets='wxUSE_SOCKETS=yes'
2451 else
2452 ac_cv_use_sockets='wxUSE_SOCKETS=no'
2453 fi
2454
2455else
2456
2457 LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
2458 if test "x$LINE" != x ; then
2459 eval "DEFAULT_$LINE"
2460 else
2461 no_cache=1
2462 fi
2463
2464 ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
2465
2466fi
2467
2468
2469 eval "$ac_cv_use_sockets"
2470 if test "$no_cache" != 1; then
2471 echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
2472 fi
2473
2474 if test "$wxUSE_SOCKETS" = yes; then
2475 echo "$ac_t""yes" 1>&6
2476 else
2477 echo "$ac_t""no" 1>&6
2478 fi
2479
2480
1c8515f9 2481 echo $ac_n "checking "for --enable-dialupman"""... $ac_c" 1>&6
f7a11f8c 2482echo "configure:2483: checking "for --enable-dialupman"" >&5
1c8515f9
KB
2483 no_cache=0
2484 # Check whether --enable-dialupman or --disable-dialupman was given.
2485if test "${enable_dialupman+set}" = set; then
2486 enableval="$enable_dialupman"
2487
2488 if test "$enableval" = yes; then
2489 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
2490 else
2491 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
2492 fi
2493
2494else
2495
2496 LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
2497 if test "x$LINE" != x ; then
2498 eval "DEFAULT_$LINE"
2499 else
2500 no_cache=1
2501 fi
2502
2503 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
2504
2505fi
2506
2507
2508 eval "$ac_cv_use_dialupman"
2509 if test "$no_cache" != 1; then
2510 echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
2511 fi
2512
2513 if test "$wxUSE_DIALUP_MANAGER" = yes; then
2514 echo "$ac_t""yes" 1>&6
2515 else
2516 echo "$ac_t""no" 1>&6
2517 fi
2518
2519
a16d3c04 2520 echo $ac_n "checking "for --enable-ipc"""... $ac_c" 1>&6
f7a11f8c 2521echo "configure:2522: checking "for --enable-ipc"" >&5
a16d3c04
KB
2522 no_cache=0
2523 # Check whether --enable-ipc or --disable-ipc was given.
2524if test "${enable_ipc+set}" = set; then
2525 enableval="$enable_ipc"
2526
2527 if test "$enableval" = yes; then
2528 ac_cv_use_ipc='wxUSE_IPC=yes'
2529 else
2530 ac_cv_use_ipc='wxUSE_IPC=no'
2531 fi
2532
2533else
2534
2535 LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
2536 if test "x$LINE" != x ; then
2537 eval "DEFAULT_$LINE"
2538 else
2539 no_cache=1
2540 fi
2541
2542 ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
2543
2544fi
2545
2546
2547 eval "$ac_cv_use_ipc"
2548 if test "$no_cache" != 1; then
2549 echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
2550 fi
2551
2552 if test "$wxUSE_IPC" = yes; then
2553 echo "$ac_t""yes" 1>&6
2554 else
2555 echo "$ac_t""no" 1>&6
2556 fi
2557
2558
2559 echo $ac_n "checking "for --enable-apple_ieee"""... $ac_c" 1>&6
f7a11f8c 2560echo "configure:2561: checking "for --enable-apple_ieee"" >&5
a16d3c04
KB
2561 no_cache=0
2562 # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
2563if test "${enable_apple_ieee+set}" = set; then
2564 enableval="$enable_apple_ieee"
2565
2566 if test "$enableval" = yes; then
2567 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
2568 else
2569 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
2570 fi
2571
2572else
2573
2574 LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
2575 if test "x$LINE" != x ; then
2576 eval "DEFAULT_$LINE"
2577 else
2578 no_cache=1
2579 fi
2580
2581 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
2582
2583fi
2584
2585
2586 eval "$ac_cv_use_apple_ieee"
2587 if test "$no_cache" != 1; then
2588 echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
2589 fi
2590
2591 if test "$wxUSE_APPLE_IEEE" = yes; then
2592 echo "$ac_t""yes" 1>&6
2593 else
2594 echo "$ac_t""no" 1>&6
2595 fi
2596
2597
2598 echo $ac_n "checking "for --enable-timedate"""... $ac_c" 1>&6
f7a11f8c 2599echo "configure:2600: checking "for --enable-timedate"" >&5
a16d3c04
KB
2600 no_cache=0
2601 # Check whether --enable-timedate or --disable-timedate was given.
2602if test "${enable_timedate+set}" = set; then
2603 enableval="$enable_timedate"
2604
2605 if test "$enableval" = yes; then
2606 ac_cv_use_timedate='wxUSE_TIMEDATE=yes'
2607 else
2608 ac_cv_use_timedate='wxUSE_TIMEDATE=no'
2609 fi
2610
2611else
2612
2613 LINE=`grep "wxUSE_TIMEDATE" ${wx_arg_cache_file}`
2614 if test "x$LINE" != x ; then
2615 eval "DEFAULT_$LINE"
2616 else
2617 no_cache=1
2618 fi
2619
2620 ac_cv_use_timedate='wxUSE_TIMEDATE='$DEFAULT_wxUSE_TIMEDATE
2621
2622fi
2623
2624
2625 eval "$ac_cv_use_timedate"
2626 if test "$no_cache" != 1; then
2627 echo $ac_cv_use_timedate >> ${wx_arg_cache_file}.tmp
2628 fi
2629
2630 if test "$wxUSE_TIMEDATE" = yes; then
2631 echo "$ac_t""yes" 1>&6
2632 else
2633 echo "$ac_t""no" 1>&6
2634 fi
2635
2636
2637 echo $ac_n "checking "for --enable-wave"""... $ac_c" 1>&6
f7a11f8c 2638echo "configure:2639: checking "for --enable-wave"" >&5
a16d3c04
KB
2639 no_cache=0
2640 # Check whether --enable-wave or --disable-wave was given.
2641if test "${enable_wave+set}" = set; then
2642 enableval="$enable_wave"
2643
2644 if test "$enableval" = yes; then
2645 ac_cv_use_wave='wxUSE_WAVE=yes'
2646 else
2647 ac_cv_use_wave='wxUSE_WAVE=no'
2648 fi
2649
2650else
2651
2652 LINE=`grep "wxUSE_WAVE" ${wx_arg_cache_file}`
2653 if test "x$LINE" != x ; then
2654 eval "DEFAULT_$LINE"
2655 else
2656 no_cache=1
2657 fi
2658
2659 ac_cv_use_wave='wxUSE_WAVE='$DEFAULT_wxUSE_WAVE
2660
2661fi
2662
2663
2664 eval "$ac_cv_use_wave"
2665 if test "$no_cache" != 1; then
2666 echo $ac_cv_use_wave >> ${wx_arg_cache_file}.tmp
2667 fi
2668
2669 if test "$wxUSE_WAVE" = yes; then
2670 echo "$ac_t""yes" 1>&6
2671 else
2672 echo "$ac_t""no" 1>&6
2673 fi
2674
2675
2676 echo $ac_n "checking "for --enable-fraction"""... $ac_c" 1>&6
f7a11f8c 2677echo "configure:2678: checking "for --enable-fraction"" >&5
a16d3c04
KB
2678 no_cache=0
2679 # Check whether --enable-fraction or --disable-fraction was given.
2680if test "${enable_fraction+set}" = set; then
2681 enableval="$enable_fraction"
2682
2683 if test "$enableval" = yes; then
2684 ac_cv_use_fraction='wxUSE_FRACTION=yes'
2685 else
2686 ac_cv_use_fraction='wxUSE_FRACTION=no'
2687 fi
2688
2689else
2690
2691 LINE=`grep "wxUSE_FRACTION" ${wx_arg_cache_file}`
2692 if test "x$LINE" != x ; then
2693 eval "DEFAULT_$LINE"
2694 else
2695 no_cache=1
2696 fi
2697
2698 ac_cv_use_fraction='wxUSE_FRACTION='$DEFAULT_wxUSE_FRACTION
2699
2700fi
2701
2702
2703 eval "$ac_cv_use_fraction"
2704 if test "$no_cache" != 1; then
2705 echo $ac_cv_use_fraction >> ${wx_arg_cache_file}.tmp
2706 fi
2707
2708 if test "$wxUSE_FRACTION" = yes; then
2709 echo "$ac_t""yes" 1>&6
2710 else
2711 echo "$ac_t""no" 1>&6
2712 fi
2713
2714
2715 echo $ac_n "checking "for --enable-dynlib"""... $ac_c" 1>&6
f7a11f8c 2716echo "configure:2717: checking "for --enable-dynlib"" >&5
a16d3c04
KB
2717 no_cache=0
2718 # Check whether --enable-dynlib or --disable-dynlib was given.
2719if test "${enable_dynlib+set}" = set; then
2720 enableval="$enable_dynlib"
2721
2722 if test "$enableval" = yes; then
2723 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
2724 else
2725 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
2726 fi
2727
2728else
2729
2730 LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
2731 if test "x$LINE" != x ; then
2732 eval "DEFAULT_$LINE"
2733 else
2734 no_cache=1
2735 fi
2736
2737 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
2738
2739fi
2740
2741
2742 eval "$ac_cv_use_dynlib"
2743 if test "$no_cache" != 1; then
2744 echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
2745 fi
2746
2747 if test "$wxUSE_DYNLIB_CLASS" = yes; then
2748 echo "$ac_t""yes" 1>&6
2749 else
2750 echo "$ac_t""no" 1>&6
2751 fi
2752
2753
2754 echo $ac_n "checking "for --enable-longlong"""... $ac_c" 1>&6
f7a11f8c 2755echo "configure:2756: checking "for --enable-longlong"" >&5
a16d3c04
KB
2756 no_cache=0
2757 # Check whether --enable-longlong or --disable-longlong was given.
2758if test "${enable_longlong+set}" = set; then
2759 enableval="$enable_longlong"
2760
2761 if test "$enableval" = yes; then
2762 ac_cv_use_longlong='wxUSE_LONGLONG=yes'
2763 else
2764 ac_cv_use_longlong='wxUSE_LONGLONG=no'
2765 fi
2766
2767else
2768
2769 LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
2770 if test "x$LINE" != x ; then
2771 eval "DEFAULT_$LINE"
2772 else
2773 no_cache=1
2774 fi
2775
2776 ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
2777
2778fi
2779
2780
2781 eval "$ac_cv_use_longlong"
2782 if test "$no_cache" != 1; then
2783 echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
2784 fi
2785
2786 if test "$wxUSE_LONGLONG" = yes; then
2787 echo "$ac_t""yes" 1>&6
2788 else
2789 echo "$ac_t""no" 1>&6
2790 fi
2791
2792
2793 echo $ac_n "checking "for --enable-log"""... $ac_c" 1>&6
f7a11f8c 2794echo "configure:2795: checking "for --enable-log"" >&5
a16d3c04
KB
2795 no_cache=0
2796 # Check whether --enable-log or --disable-log was given.
2797if test "${enable_log+set}" = set; then
2798 enableval="$enable_log"
2799
2800 if test "$enableval" = yes; then
2801 ac_cv_use_log='wxUSE_LOG=yes'
2802 else
2803 ac_cv_use_log='wxUSE_LOG=no'
2804 fi
2805
2806else
2807
2808 LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
2809 if test "x$LINE" != x ; then
2810 eval "DEFAULT_$LINE"
2811 else
2812 no_cache=1
2813 fi
2814
2815 ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
2816
2817fi
2818
2819
2820 eval "$ac_cv_use_log"
2821 if test "$no_cache" != 1; then
2822 echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
2823 fi
2824
2825 if test "$wxUSE_LOG" = yes; then
2826 echo "$ac_t""yes" 1>&6
2827 else
2828 echo "$ac_t""no" 1>&6
2829 fi
2830
2831
2832 echo $ac_n "checking "for --enable-streams"""... $ac_c" 1>&6
f7a11f8c 2833echo "configure:2834: checking "for --enable-streams"" >&5
a16d3c04
KB
2834 no_cache=0
2835 # Check whether --enable-streams or --disable-streams was given.
2836if test "${enable_streams+set}" = set; then
2837 enableval="$enable_streams"
2838
2839 if test "$enableval" = yes; then
2840 ac_cv_use_streams='wxUSE_STREAMS=yes'
2841 else
2842 ac_cv_use_streams='wxUSE_STREAMS=no'
2843 fi
2844
2845else
2846
2847 LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
2848 if test "x$LINE" != x ; then
2849 eval "DEFAULT_$LINE"
2850 else
2851 no_cache=1
2852 fi
2853
2854 ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
2855
2856fi
2857
2858
2859 eval "$ac_cv_use_streams"
2860 if test "$no_cache" != 1; then
2861 echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
2862 fi
2863
2864 if test "$wxUSE_STREAMS" = yes; then
2865 echo "$ac_t""yes" 1>&6
2866 else
2867 echo "$ac_t""no" 1>&6
2868 fi
2869
2870
2871 echo $ac_n "checking "for --enable-file"""... $ac_c" 1>&6
f7a11f8c 2872echo "configure:2873: checking "for --enable-file"" >&5
a16d3c04
KB
2873 no_cache=0
2874 # Check whether --enable-file or --disable-file was given.
2875if test "${enable_file+set}" = set; then
2876 enableval="$enable_file"
2877
2878 if test "$enableval" = yes; then
2879 ac_cv_use_file='wxUSE_FILE=yes'
2880 else
2881 ac_cv_use_file='wxUSE_FILE=no'
2882 fi
2883
2884else
2885
2886 LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
2887 if test "x$LINE" != x ; then
2888 eval "DEFAULT_$LINE"
2889 else
2890 no_cache=1
2891 fi
2892
2893 ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
2894
2895fi
2896
2897
2898 eval "$ac_cv_use_file"
2899 if test "$no_cache" != 1; then
2900 echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
2901 fi
2902
2903 if test "$wxUSE_FILE" = yes; then
2904 echo "$ac_t""yes" 1>&6
2905 else
2906 echo "$ac_t""no" 1>&6
2907 fi
2908
2909
2910 echo $ac_n "checking "for --enable-textfile"""... $ac_c" 1>&6
f7a11f8c 2911echo "configure:2912: checking "for --enable-textfile"" >&5
a16d3c04
KB
2912 no_cache=0
2913 # Check whether --enable-textfile or --disable-textfile was given.
2914if test "${enable_textfile+set}" = set; then
2915 enableval="$enable_textfile"
2916
2917 if test "$enableval" = yes; then
2918 ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
2919 else
2920 ac_cv_use_textfile='wxUSE_TEXTFILE=no'
2921 fi
2922
2923else
2924
2925 LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
2926 if test "x$LINE" != x ; then
2927 eval "DEFAULT_$LINE"
2928 else
2929 no_cache=1
2930 fi
2931
2932 ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
2933
2934fi
2935
2936
2937 eval "$ac_cv_use_textfile"
2938 if test "$no_cache" != 1; then
2939 echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
2940 fi
2941
2942 if test "$wxUSE_TEXTFILE" = yes; then
2943 echo "$ac_t""yes" 1>&6
2944 else
2945 echo "$ac_t""no" 1>&6
2946 fi
2947
2948
2949 echo $ac_n "checking "for --enable-unicode"""... $ac_c" 1>&6
f7a11f8c 2950echo "configure:2951: checking "for --enable-unicode"" >&5
a16d3c04
KB
2951 no_cache=0
2952 # Check whether --enable-unicode or --disable-unicode was given.
2953if test "${enable_unicode+set}" = set; then
2954 enableval="$enable_unicode"
2955
2956 if test "$enableval" = yes; then
2957 ac_cv_use_unicode='wxUSE_UNICODE=yes'
2958 else
2959 ac_cv_use_unicode='wxUSE_UNICODE=no'
2960 fi
2961
2962else
2963
2964 LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
2965 if test "x$LINE" != x ; then
2966 eval "DEFAULT_$LINE"
2967 else
2968 no_cache=1
2969 fi
2970
2971 ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
2972
2973fi
2974
2975
2976 eval "$ac_cv_use_unicode"
2977 if test "$no_cache" != 1; then
2978 echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
2979 fi
2980
2981 if test "$wxUSE_UNICODE" = yes; then
2982 echo "$ac_t""yes" 1>&6
2983 else
2984 echo "$ac_t""no" 1>&6
2985 fi
2986
2987
2988 echo $ac_n "checking "for --enable-wcsrtombs"""... $ac_c" 1>&6
f7a11f8c 2989echo "configure:2990: checking "for --enable-wcsrtombs"" >&5
a16d3c04
KB
2990 no_cache=0
2991 # Check whether --enable-wcsrtombs or --disable-wcsrtombs was given.
2992if test "${enable_wcsrtombs+set}" = set; then
2993 enableval="$enable_wcsrtombs"
2994
2995 if test "$enableval" = yes; then
2996 ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS=yes'
2997 else
2998 ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS=no'
2999 fi
3000
3001else
3002
3003 LINE=`grep "wxUSE_WCSRTOMBS" ${wx_arg_cache_file}`
3004 if test "x$LINE" != x ; then
3005 eval "DEFAULT_$LINE"
3006 else
3007 no_cache=1
3008 fi
3009
3010 ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS='$DEFAULT_wxUSE_WCSRTOMBS
3011
3012fi
3013
3014
3015 eval "$ac_cv_use_wcsrtombs"
3016 if test "$no_cache" != 1; then
3017 echo $ac_cv_use_wcsrtombs >> ${wx_arg_cache_file}.tmp
3018 fi
3019
3020 if test "$wxUSE_WCSRTOMBS" = yes; then
3021 echo "$ac_t""yes" 1>&6
3022 else
3023 echo "$ac_t""no" 1>&6
3024 fi
3025
3026
3027 echo $ac_n "checking "for --enable-wxprintfv"""... $ac_c" 1>&6
f7a11f8c 3028echo "configure:3029: checking "for --enable-wxprintfv"" >&5
a16d3c04
KB
3029 no_cache=0
3030 # Check whether --enable-wxprintfv or --disable-wxprintfv was given.
3031if test "${enable_wxprintfv+set}" = set; then
3032 enableval="$enable_wxprintfv"
3033
3034 if test "$enableval" = yes; then
3035 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes'
3036 else
3037 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no'
3038 fi
3039
3040else
3041
3042 LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}`
3043 if test "x$LINE" != x ; then
3044 eval "DEFAULT_$LINE"
3045 else
3046 no_cache=1
3047 fi
3048
3049 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF
3050
3051fi
3052
3053
3054 eval "$ac_cv_use_wxprintfv"
3055 if test "$no_cache" != 1; then
3056 echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp
3057 fi
3058
3059 if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then
3060 echo "$ac_t""yes" 1>&6
3061 else
3062 echo "$ac_t""no" 1>&6
3063 fi
3064
3065
3066 echo $ac_n "checking "for --enable-joystick"""... $ac_c" 1>&6
f7a11f8c 3067echo "configure:3068: checking "for --enable-joystick"" >&5
a16d3c04
KB
3068 no_cache=0
3069 # Check whether --enable-joystick or --disable-joystick was given.
3070if test "${enable_joystick+set}" = set; then
3071 enableval="$enable_joystick"
3072
3073 if test "$enableval" = yes; then
3074 ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
3075 else
3076 ac_cv_use_joystick='wxUSE_JOYSTICK=no'
3077 fi
3078
3079else
3080
3081 LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
3082 if test "x$LINE" != x ; then
3083 eval "DEFAULT_$LINE"
3084 else
3085 no_cache=1
3086 fi
3087
3088 ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
3089
3090fi
3091
3092
3093 eval "$ac_cv_use_joystick"
3094 if test "$no_cache" != 1; then
3095 echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
3096 fi
3097
3098 if test "$wxUSE_JOYSTICK" = yes; then
3099 echo "$ac_t""yes" 1>&6
3100 else
3101 echo "$ac_t""no" 1>&6
3102 fi
3103
3104
3105 echo $ac_n "checking "for --enable-std_iostreams"""... $ac_c" 1>&6
f7a11f8c 3106echo "configure:3107: checking "for --enable-std_iostreams"" >&5
a16d3c04
KB
3107 no_cache=0
3108 # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
3109if test "${enable_std_iostreams+set}" = set; then
3110 enableval="$enable_std_iostreams"
3111
3112 if test "$enableval" = yes; then
3113 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
3114 else
3115 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
3116 fi
3117
3118else
3119
3120 LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
3121 if test "x$LINE" != x ; then
3122 eval "DEFAULT_$LINE"
3123 else
3124 no_cache=1
3125 fi
3126
3127 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
3128
3129fi
3130
3131
3132 eval "$ac_cv_use_std_iostreams"
3133 if test "$no_cache" != 1; then
3134 echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
3135 fi
3136
3137 if test "$wxUSE_STD_IOSTREAM" = yes; then
3138 echo "$ac_t""yes" 1>&6
3139 else
3140 echo "$ac_t""no" 1>&6
3141 fi
3142
3143
3144 echo $ac_n "checking "for --enable-fs_inet"""... $ac_c" 1>&6
f7a11f8c 3145echo "configure:3146: checking "for --enable-fs_inet"" >&5
a16d3c04
KB
3146 no_cache=0
3147 # Check whether --enable-fs_inet or --disable-fs_inet was given.
3148if test "${enable_fs_inet+set}" = set; then
3149 enableval="$enable_fs_inet"
3150
3151 if test "$enableval" = yes; then
3152 ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
3153 else
3154 ac_cv_use_fs_inet='wxUSE_FS_INET=no'
3155 fi
3156
3157else
3158
3159 LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
3160 if test "x$LINE" != x ; then
3161 eval "DEFAULT_$LINE"
3162 else
3163 no_cache=1
3164 fi
3165
3166 ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
3167
3168fi
3169
3170
3171 eval "$ac_cv_use_fs_inet"
3172 if test "$no_cache" != 1; then
3173 echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
3174 fi
3175
3176 if test "$wxUSE_FS_INET" = yes; then
3177 echo "$ac_t""yes" 1>&6
3178 else
3179 echo "$ac_t""no" 1>&6
3180 fi
3181
3182
3183 echo $ac_n "checking "for --enable-fs_zip"""... $ac_c" 1>&6
f7a11f8c 3184echo "configure:3185: checking "for --enable-fs_zip"" >&5
a16d3c04
KB
3185 no_cache=0
3186 # Check whether --enable-fs_zip or --disable-fs_zip was given.
3187if test "${enable_fs_zip+set}" = set; then
3188 enableval="$enable_fs_zip"
3189
3190 if test "$enableval" = yes; then
3191 ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
3192 else
3193 ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
3194 fi
3195
3196else
3197
3198 LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
3199 if test "x$LINE" != x ; then
3200 eval "DEFAULT_$LINE"
3201 else
3202 no_cache=1
3203 fi
3204
3205 ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
3206
3207fi
3208
3209
3210 eval "$ac_cv_use_fs_zip"
3211 if test "$no_cache" != 1; then
3212 echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
3213 fi
3214
3215 if test "$wxUSE_FS_ZIP" = yes; then
3216 echo "$ac_t""yes" 1>&6
3217 else
3218 echo "$ac_t""no" 1>&6
3219 fi
3220
3221
3222 echo $ac_n "checking "for --enable-zipstream"""... $ac_c" 1>&6
f7a11f8c 3223echo "configure:3224: checking "for --enable-zipstream"" >&5
a16d3c04
KB
3224 no_cache=0
3225 # Check whether --enable-zipstream or --disable-zipstream was given.
3226if test "${enable_zipstream+set}" = set; then
3227 enableval="$enable_zipstream"
3228
3229 if test "$enableval" = yes; then
3230 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
3231 else
3232 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
3233 fi
3234
3235else
3236
3237 LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
3238 if test "x$LINE" != x ; then
3239 eval "DEFAULT_$LINE"
3240 else
3241 no_cache=1
3242 fi
3243
3244 ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
3245
3246fi
3247
3248
3249 eval "$ac_cv_use_zipstream"
3250 if test "$no_cache" != 1; then
3251 echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
3252 fi
3253
3254 if test "$wxUSE_ZIPSTREAM" = yes; then
3255 echo "$ac_t""yes" 1>&6
3256 else
3257 echo "$ac_t""no" 1>&6
3258 fi
3259
3260
3261
3262
3263 echo $ac_n "checking "for --enable-threads"""... $ac_c" 1>&6
f7a11f8c 3264echo "configure:3265: checking "for --enable-threads"" >&5
a16d3c04
KB
3265 no_cache=0
3266 # Check whether --enable-threads or --disable-threads was given.
3267if test "${enable_threads+set}" = set; then
3268 enableval="$enable_threads"
3269
3270 if test "$enableval" = yes; then
3271 ac_cv_use_threads='wxUSE_THREADS=yes'
3272 else
3273 ac_cv_use_threads='wxUSE_THREADS=no'
3274 fi
3275
3276else
3277
3278 LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
3279 if test "x$LINE" != x ; then
3280 eval "DEFAULT_$LINE"
3281 else
3282 no_cache=1
3283 fi
3284
3285 ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
3286
3287fi
3288
3289
3290 eval "$ac_cv_use_threads"
3291 if test "$no_cache" != 1; then
3292 echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
3293 fi
3294
3295 if test "$wxUSE_THREADS" = yes; then
3296 echo "$ac_t""yes" 1>&6
3297 else
3298 echo "$ac_t""no" 1>&6
3299 fi
3300
3301
3302 echo $ac_n "checking "for --enable-serial"""... $ac_c" 1>&6
f7a11f8c 3303echo "configure:3304: checking "for --enable-serial"" >&5
a16d3c04
KB
3304 no_cache=0
3305 # Check whether --enable-serial or --disable-serial was given.
3306if test "${enable_serial+set}" = set; then
3307 enableval="$enable_serial"
3308
3309 if test "$enableval" = yes; then
3310 ac_cv_use_serial='wxUSE_SERIAL=yes'
3311 else
3312 ac_cv_use_serial='wxUSE_SERIAL=no'
3313 fi
3314
3315else
3316
3317 LINE=`grep "wxUSE_SERIAL" ${wx_arg_cache_file}`
3318 if test "x$LINE" != x ; then
3319 eval "DEFAULT_$LINE"
3320 else
3321 no_cache=1
3322 fi
3323
3324 ac_cv_use_serial='wxUSE_SERIAL='$DEFAULT_wxUSE_SERIAL
3325
3326fi
3327
3328
3329 eval "$ac_cv_use_serial"
3330 if test "$no_cache" != 1; then
3331 echo $ac_cv_use_serial >> ${wx_arg_cache_file}.tmp
3332 fi
3333
3334 if test "$wxUSE_SERIAL" = yes; then
3335 echo "$ac_t""yes" 1>&6
3336 else
3337 echo "$ac_t""no" 1>&6
3338 fi
3339
3340
3341
3342
3343 echo $ac_n "checking "for --enable-docview"""... $ac_c" 1>&6
f7a11f8c 3344echo "configure:3345: checking "for --enable-docview"" >&5
a16d3c04
KB
3345 no_cache=0
3346 # Check whether --enable-docview or --disable-docview was given.
3347if test "${enable_docview+set}" = set; then
3348 enableval="$enable_docview"
3349
3350 if test "$enableval" = yes; then
3351 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
3352 else
3353 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
3354 fi
3355
3356else
3357
3358 LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
3359 if test "x$LINE" != x ; then
3360 eval "DEFAULT_$LINE"
3361 else
3362 no_cache=1
3363 fi
3364
3365 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
3366
3367fi
3368
3369
3370 eval "$ac_cv_use_docview"
3371 if test "$no_cache" != 1; then
3372 echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
3373 fi
3374
3375 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
3376 echo "$ac_t""yes" 1>&6
3377 else
3378 echo "$ac_t""no" 1>&6
3379 fi
3380
3381
3382 echo $ac_n "checking "for --enable-help"""... $ac_c" 1>&6
f7a11f8c 3383echo "configure:3384: checking "for --enable-help"" >&5
a16d3c04
KB
3384 no_cache=0
3385 # Check whether --enable-help or --disable-help was given.
3386if test "${enable_help+set}" = set; then
3387 enableval="$enable_help"
3388
3389 if test "$enableval" = yes; then
3390 ac_cv_use_help='wxUSE_HELP=yes'
3391 else
3392 ac_cv_use_help='wxUSE_HELP=no'
3393 fi
3394
3395else
3396
3397 LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
3398 if test "x$LINE" != x ; then
3399 eval "DEFAULT_$LINE"
3400 else
3401 no_cache=1
3402 fi
3403
3404 ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
3405
3406fi
3407
3408
3409 eval "$ac_cv_use_help"
3410 if test "$no_cache" != 1; then
3411 echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
3412 fi
3413
3414 if test "$wxUSE_HELP" = yes; then
3415 echo "$ac_t""yes" 1>&6
3416 else
3417 echo "$ac_t""no" 1>&6
3418 fi
3419
3420
3421 echo $ac_n "checking "for --enable-constraints"""... $ac_c" 1>&6
f7a11f8c 3422echo "configure:3423: checking "for --enable-constraints"" >&5
a16d3c04
KB
3423 no_cache=0
3424 # Check whether --enable-constraints or --disable-constraints was given.
3425if test "${enable_constraints+set}" = set; then
3426 enableval="$enable_constraints"
3427
3428 if test "$enableval" = yes; then
3429 ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
3430 else
3431 ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
3432 fi
3433
3434else
3435
3436 LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
3437 if test "x$LINE" != x ; then
3438 eval "DEFAULT_$LINE"
3439 else
3440 no_cache=1
3441 fi
3442
3443 ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
3444
3445fi
3446
3447
3448 eval "$ac_cv_use_constraints"
3449 if test "$no_cache" != 1; then
3450 echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
3451 fi
3452
3453 if test "$wxUSE_CONSTRAINTS" = yes; then
3454 echo "$ac_t""yes" 1>&6
3455 else
3456 echo "$ac_t""no" 1>&6
3457 fi
3458
3459
3460 echo $ac_n "checking "for --enable-printarch"""... $ac_c" 1>&6
f7a11f8c 3461echo "configure:3462: checking "for --enable-printarch"" >&5
a16d3c04
KB
3462 no_cache=0
3463 # Check whether --enable-printarch or --disable-printarch was given.
3464if test "${enable_printarch+set}" = set; then
3465 enableval="$enable_printarch"
3466
3467 if test "$enableval" = yes; then
3468 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
3469 else
3470 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
3471 fi
3472
3473else
3474
3475 LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
3476 if test "x$LINE" != x ; then
3477 eval "DEFAULT_$LINE"
3478 else
3479 no_cache=1
3480 fi
3481
3482 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
3483
3484fi
3485
3486
3487 eval "$ac_cv_use_printarch"
3488 if test "$no_cache" != 1; then
3489 echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
3490 fi
3491
3492 if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
3493 echo "$ac_t""yes" 1>&6
3494 else
3495 echo "$ac_t""no" 1>&6
3496 fi
3497
3498
3499 echo $ac_n "checking "for --enable-mdi"""... $ac_c" 1>&6
f7a11f8c 3500echo "configure:3501: checking "for --enable-mdi"" >&5
a16d3c04
KB
3501 no_cache=0
3502 # Check whether --enable-mdi or --disable-mdi was given.
3503if test "${enable_mdi+set}" = set; then
3504 enableval="$enable_mdi"
3505
3506 if test "$enableval" = yes; then
3507 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=yes'
3508 else
3509 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=no'
3510 fi
3511
3512else
3513
3514 LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
3515 if test "x$LINE" != x ; then
3516 eval "DEFAULT_$LINE"
3517 else
3518 no_cache=1
3519 fi
3520
3521 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
3522
3523fi
3524
3525
3526 eval "$ac_cv_use_mdi"
3527 if test "$no_cache" != 1; then
3528 echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
3529 fi
3530
3531 if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
3532 echo "$ac_t""yes" 1>&6
3533 else
3534 echo "$ac_t""no" 1>&6
3535 fi
3536
3537
3538
3539 echo $ac_n "checking "for --enable-postscript"""... $ac_c" 1>&6
f7a11f8c 3540echo "configure:3541: checking "for --enable-postscript"" >&5
a16d3c04
KB
3541 no_cache=0
3542 # Check whether --enable-postscript or --disable-postscript was given.
3543if test "${enable_postscript+set}" = set; then
3544 enableval="$enable_postscript"
3545
3546 if test "$enableval" = yes; then
3547 ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
3548 else
3549 ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
3550 fi
3551
3552else
3553
3554 LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
3555 if test "x$LINE" != x ; then
3556 eval "DEFAULT_$LINE"
3557 else
3558 no_cache=1
3559 fi
3560
3561 ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
3562
3563fi
3564
3565
3566 eval "$ac_cv_use_postscript"
3567 if test "$no_cache" != 1; then
3568 echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
3569 fi
3570
3571 if test "$wxUSE_POSTSCRIPT" = yes; then
3572 echo "$ac_t""yes" 1>&6
3573 else
3574 echo "$ac_t""no" 1>&6
3575 fi
3576
3577
3578
3579
3580 echo $ac_n "checking "for --enable-prologio"""... $ac_c" 1>&6
f7a11f8c 3581echo "configure:3582: checking "for --enable-prologio"" >&5
a16d3c04
KB
3582 no_cache=0
3583 # Check whether --enable-prologio or --disable-prologio was given.
3584if test "${enable_prologio+set}" = set; then
3585 enableval="$enable_prologio"
3586
3587 if test "$enableval" = yes; then
3588 ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
3589 else
3590 ac_cv_use_prologio='wxUSE_PROLOGIO=no'
3591 fi
3592
3593else
3594
3595 LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
3596 if test "x$LINE" != x ; then
3597 eval "DEFAULT_$LINE"
3598 else
3599 no_cache=1
3600 fi
3601
3602 ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
3603
3604fi
3605
3606
3607 eval "$ac_cv_use_prologio"
3608 if test "$no_cache" != 1; then
3609 echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
3610 fi
3611
3612 if test "$wxUSE_PROLOGIO" = yes; then
3613 echo "$ac_t""yes" 1>&6
3614 else
3615 echo "$ac_t""no" 1>&6
3616 fi
3617
3618
3619 echo $ac_n "checking "for --enable-resources"""... $ac_c" 1>&6
f7a11f8c 3620echo "configure:3621: checking "for --enable-resources"" >&5
a16d3c04
KB
3621 no_cache=0
3622 # Check whether --enable-resources or --disable-resources was given.
3623if test "${enable_resources+set}" = set; then
3624 enableval="$enable_resources"
3625
3626 if test "$enableval" = yes; then
3627 ac_cv_use_resources='wxUSE_RESOURCES=yes'
3628 else
3629 ac_cv_use_resources='wxUSE_RESOURCES=no'
3630 fi
3631
3632else
3633
3634 LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
3635 if test "x$LINE" != x ; then
3636 eval "DEFAULT_$LINE"
3637 else
3638 no_cache=1
3639 fi
3640
3641 ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
3642
3643fi
3644
3645
3646 eval "$ac_cv_use_resources"
3647 if test "$no_cache" != 1; then
3648 echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
3649 fi
3650
3651 if test "$wxUSE_RESOURCES" = yes; then
3652 echo "$ac_t""yes" 1>&6
3653 else
3654 echo "$ac_t""no" 1>&6
3655 fi
3656
3657
3658
3659 echo $ac_n "checking "for --enable-xresources"""... $ac_c" 1>&6
f7a11f8c 3660echo "configure:3661: checking "for --enable-xresources"" >&5
a16d3c04
KB
3661 no_cache=0
3662 # Check whether --enable-xresources or --disable-xresources was given.
3663if test "${enable_xresources+set}" = set; then
3664 enableval="$enable_xresources"
3665
3666 if test "$enableval" = yes; then
3667 ac_cv_use_xresources='wxUSE_X_RESOURCES=yes'
3668 else
3669 ac_cv_use_xresources='wxUSE_X_RESOURCES=no'
3670 fi
3671
3672else
3673
3674 LINE=`grep "wxUSE_X_RESOURCES" ${wx_arg_cache_file}`
3675 if test "x$LINE" != x ; then
3676 eval "DEFAULT_$LINE"
3677 else
3678 no_cache=1
3679 fi
3680
3681 ac_cv_use_xresources='wxUSE_X_RESOURCES='$DEFAULT_wxUSE_X_RESOURCES
3682
3683fi
3684
3685
3686 eval "$ac_cv_use_xresources"
3687 if test "$no_cache" != 1; then
3688 echo $ac_cv_use_xresources >> ${wx_arg_cache_file}.tmp
3689 fi
3690
3691 if test "$wxUSE_X_RESOURCES" = yes; then
3692 echo "$ac_t""yes" 1>&6
3693 else
3694 echo "$ac_t""no" 1>&6
3695 fi
3696
3697
3698
3699
3700 echo $ac_n "checking "for --enable-clipboard"""... $ac_c" 1>&6
f7a11f8c 3701echo "configure:3702: checking "for --enable-clipboard"" >&5
a16d3c04
KB
3702 no_cache=0
3703 # Check whether --enable-clipboard or --disable-clipboard was given.
3704if test "${enable_clipboard+set}" = set; then
3705 enableval="$enable_clipboard"
3706
3707 if test "$enableval" = yes; then
3708 ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
3709 else
3710 ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
3711 fi
3712
3713else
3714
3715 LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
3716 if test "x$LINE" != x ; then
3717 eval "DEFAULT_$LINE"
3718 else
3719 no_cache=1
3720 fi
3721
3722 ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
3723
3724fi
3725
3726
3727 eval "$ac_cv_use_clipboard"
3728 if test "$no_cache" != 1; then
3729 echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
3730 fi
3731
3732 if test "$wxUSE_CLIPBOARD" = yes; then
3733 echo "$ac_t""yes" 1>&6
3734 else
3735 echo "$ac_t""no" 1>&6
3736 fi
3737
3738
3739 echo $ac_n "checking "for --enable-dnd"""... $ac_c" 1>&6
f7a11f8c 3740echo "configure:3741: checking "for --enable-dnd"" >&5
a16d3c04
KB
3741 no_cache=0
3742 # Check whether --enable-dnd or --disable-dnd was given.
3743if test "${enable_dnd+set}" = set; then
3744 enableval="$enable_dnd"
3745
3746 if test "$enableval" = yes; then
3747 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
3748 else
3749 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
3750 fi
3751
3752else
3753
3754 LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
3755 if test "x$LINE" != x ; then
3756 eval "DEFAULT_$LINE"
3757 else
3758 no_cache=1
3759 fi
3760
3761 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
3762
3763fi
3764
3765
3766 eval "$ac_cv_use_dnd"
3767 if test "$no_cache" != 1; then
3768 echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
3769 fi
3770
3771 if test "$wxUSE_DRAG_AND_DROP" = yes; then
3772 echo "$ac_t""yes" 1>&6
3773 else
3774 echo "$ac_t""no" 1>&6
3775 fi
3776
3777
3778
3779 echo $ac_n "checking "for --enable-wxtree"""... $ac_c" 1>&6
f7a11f8c 3780echo "configure:3781: checking "for --enable-wxtree"" >&5
a16d3c04
KB
3781 no_cache=0
3782 # Check whether --enable-wxtree or --disable-wxtree was given.
3783if test "${enable_wxtree+set}" = set; then
3784 enableval="$enable_wxtree"
3785
3786 if test "$enableval" = yes; then
3787 ac_cv_use_wxtree='wxUSE_WXTREE=yes'
3788 else
3789 ac_cv_use_wxtree='wxUSE_WXTREE=no'
3790 fi
3791
3792else
3793
3794 LINE=`grep "wxUSE_WXTREE" ${wx_arg_cache_file}`
3795 if test "x$LINE" != x ; then
3796 eval "DEFAULT_$LINE"
3797 else
3798 no_cache=1
3799 fi
3800
3801 ac_cv_use_wxtree='wxUSE_WXTREE='$DEFAULT_wxUSE_WXTREE
3802
3803fi
3804
3805
3806 eval "$ac_cv_use_wxtree"
3807 if test "$no_cache" != 1; then
3808 echo $ac_cv_use_wxtree >> ${wx_arg_cache_file}.tmp
3809 fi
3810
3811 if test "$wxUSE_WXTREE" = yes; then
3812 echo "$ac_t""yes" 1>&6
3813 else
3814 echo "$ac_t""no" 1>&6
3815 fi
3816
3817
3818
3819
3820 echo $ac_n "checking "for --enable-controls"""... $ac_c" 1>&6
f7a11f8c 3821echo "configure:3822: checking "for --enable-controls"" >&5
a16d3c04
KB
3822 no_cache=0
3823 # Check whether --enable-controls or --disable-controls was given.
3824if test "${enable_controls+set}" = set; then
3825 enableval="$enable_controls"
3826
3827 if test "$enableval" = yes; then
3828 ac_cv_use_controls='wxUSE_CONTROLS=yes'
3829 else
3830 ac_cv_use_controls='wxUSE_CONTROLS=no'
3831 fi
3832
3833else
3834
3835 LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
3836 if test "x$LINE" != x ; then
3837 eval "DEFAULT_$LINE"
3838 else
3839 no_cache=1
3840 fi
3841
3842 ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
3843
3844fi
3845
3846
3847 eval "$ac_cv_use_controls"
3848 if test "$no_cache" != 1; then
3849 echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
3850 fi
3851
3852 if test "$wxUSE_CONTROLS" = yes; then
3853 echo "$ac_t""yes" 1>&6
3854 else
3855 echo "$ac_t""no" 1>&6
3856 fi
3857
3858
3859if test "$wxUSE_CONTROLS" = "yes"; then
3860 DEFAULT_wxUSE_ACCEL=yes
3861 DEFAULT_wxUSE_CARET=yes
3862 DEFAULT_wxUSE_COMBOBOX=yes
3863 DEFAULT_wxUSE_BMPBUTTON=yes
3864 DEFAULT_wxUSE_CHECKBOX=yes
3865 DEFAULT_wxUSE_CHECKLISTBOX=yes
3866 DEFAULT_wxUSE_CHOICE=yes
3867 DEFAULT_wxUSE_GAUGE=yes
3868 DEFAULT_wxUSE_GRID=yes
3869 DEFAULT_wxUSE_IMAGLIST=yes
3870 DEFAULT_wxUSE_LISTBOX=yes
3871 DEFAULT_wxUSE_LISTCTRL=yes
3872 DEFAULT_wxUSE_NOTEBOOK=yes
3873 DEFAULT_wxUSE_RADIOBOX=yes
3874 DEFAULT_wxUSE_RADIOBTN=yes
3875 DEFAULT_wxUSE_SASH=yes
3876 DEFAULT_wxUSE_SCROLLBAR=yes
3877 DEFAULT_wxUSE_SLIDER=yes
3878 DEFAULT_wxUSE_SPINBTN=yes
3879 DEFAULT_wxUSE_SPLITTER=yes
3880 DEFAULT_wxUSE_STATBMP=yes
3881 DEFAULT_wxUSE_STATBOX=yes
3882 DEFAULT_wxUSE_STATLINE=yes
3883 DEFAULT_wxUSE_STATUSBAR=yes
3884 DEFAULT_wxUSE_TAB_DIALOG=yes
3885 DEFAULT_wxUSE_TOOLBAR=yes
3886 DEFAULT_wxUSE_TOOLTIPS=yes
3887 DEFAULT_wxUSE_TREECTRL=yes
3888elif test "$wxUSE_CONTROLS" = "no"; then
3889 DEFAULT_wxUSE_ACCEL=no
3890 DEFAULT_wxUSE_CARET=no
3891 DEFAULT_wxUSE_COMBOBOX=no
3892 DEFAULT_wxUSE_BMPBUTTON=no
3893 DEFAULT_wxUSE_CHECKBOX=no
3894 DEFAULT_wxUSE_CHECKLISTBOX=no
3895 DEFAULT_wxUSE_CHOICE=no
3896 DEFAULT_wxUSE_GAUGE=no
3897 DEFAULT_wxUSE_GRID=no
3898 DEFAULT_wxUSE_IMAGLIST=no
3899 DEFAULT_wxUSE_LISTBOX=no
3900 DEFAULT_wxUSE_LISTCTRL=no
3901 DEFAULT_wxUSE_NOTEBOOK=no
3902 DEFAULT_wxUSE_RADIOBOX=no
3903 DEFAULT_wxUSE_RADIOBTN=no
3904 DEFAULT_wxUSE_SASH=no
3905 DEFAULT_wxUSE_SCROLLBAR=no
3906 DEFAULT_wxUSE_SLIDER=no
3907 DEFAULT_wxUSE_SPINBTN=no
3908 DEFAULT_wxUSE_SPLITTER=no
3909 DEFAULT_wxUSE_STATBMP=no
3910 DEFAULT_wxUSE_STATBOX=no
3911 DEFAULT_wxUSE_STATLINE=no
3912 DEFAULT_wxUSE_STATUSBAR=no
3913 DEFAULT_wxUSE_TAB_DIALOG=no
3914 DEFAULT_wxUSE_TOOLBAR=no
3915 DEFAULT_wxUSE_TOOLTIPS=no
3916 DEFAULT_wxUSE_TREECTRL=no
3917fi
3918
3919
3920 echo $ac_n "checking "for --enable-accel"""... $ac_c" 1>&6
f7a11f8c 3921echo "configure:3922: checking "for --enable-accel"" >&5
a16d3c04
KB
3922 no_cache=0
3923 # Check whether --enable-accel or --disable-accel was given.
3924if test "${enable_accel+set}" = set; then
3925 enableval="$enable_accel"
3926
3927 if test "$enableval" = yes; then
3928 ac_cv_use_accel='wxUSE_ACCEL=yes'
3929 else
3930 ac_cv_use_accel='wxUSE_ACCEL=no'
3931 fi
3932
3933else
3934
3935 LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
3936 if test "x$LINE" != x ; then
3937 eval "DEFAULT_$LINE"
3938 else
3939 no_cache=1
3940 fi
3941
3942 ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
3943
3944fi
3945
3946
3947 eval "$ac_cv_use_accel"
3948 if test "$no_cache" != 1; then
3949 echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
3950 fi
3951
3952 if test "$wxUSE_ACCEL" = yes; then
3953 echo "$ac_t""yes" 1>&6
3954 else
3955 echo "$ac_t""no" 1>&6
3956 fi
3957
3958
3959 echo $ac_n "checking "for --enable-caret"""... $ac_c" 1>&6
f7a11f8c 3960echo "configure:3961: checking "for --enable-caret"" >&5
a16d3c04
KB
3961 no_cache=0
3962 # Check whether --enable-caret or --disable-caret was given.
3963if test "${enable_caret+set}" = set; then
3964 enableval="$enable_caret"
3965
3966 if test "$enableval" = yes; then
3967 ac_cv_use_caret='wxUSE_CARET=yes'
3968 else
3969 ac_cv_use_caret='wxUSE_CARET=no'
3970 fi
3971
3972else
3973
3974 LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
3975 if test "x$LINE" != x ; then
3976 eval "DEFAULT_$LINE"
3977 else
3978 no_cache=1
3979 fi
3980
3981 ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
3982
3983fi
3984
3985
3986 eval "$ac_cv_use_caret"
3987 if test "$no_cache" != 1; then
3988 echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
3989 fi
3990
3991 if test "$wxUSE_CARET" = yes; then
3992 echo "$ac_t""yes" 1>&6
3993 else
3994 echo "$ac_t""no" 1>&6
3995 fi
3996
3997
3998 echo $ac_n "checking "for --enable-bmpbutton"""... $ac_c" 1>&6
f7a11f8c 3999echo "configure:4000: checking "for --enable-bmpbutton"" >&5
a16d3c04
KB
4000 no_cache=0
4001 # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
4002if test "${enable_bmpbutton+set}" = set; then
4003 enableval="$enable_bmpbutton"
4004
4005 if test "$enableval" = yes; then
4006 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
4007 else
4008 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
4009 fi
4010
4011else
4012
4013 LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
4014 if test "x$LINE" != x ; then
4015 eval "DEFAULT_$LINE"
4016 else
4017 no_cache=1
4018 fi
4019
4020 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
4021
4022fi
4023
4024
4025 eval "$ac_cv_use_bmpbutton"
4026 if test "$no_cache" != 1; then
4027 echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
4028 fi
4029
4030 if test "$wxUSE_BMPBUTTON" = yes; then
4031 echo "$ac_t""yes" 1>&6
4032 else
4033 echo "$ac_t""no" 1>&6
4034 fi
4035
4036
4037 echo $ac_n "checking "for --enable-checkbox"""... $ac_c" 1>&6
f7a11f8c 4038echo "configure:4039: checking "for --enable-checkbox"" >&5
a16d3c04
KB
4039 no_cache=0
4040 # Check whether --enable-checkbox or --disable-checkbox was given.
4041if test "${enable_checkbox+set}" = set; then
4042 enableval="$enable_checkbox"
4043
4044 if test "$enableval" = yes; then
4045 ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
4046 else
4047 ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
4048 fi
4049
4050else
4051
4052 LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
4053 if test "x$LINE" != x ; then
4054 eval "DEFAULT_$LINE"
4055 else
4056 no_cache=1
4057 fi
4058
4059 ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
4060
4061fi
4062
4063
4064 eval "$ac_cv_use_checkbox"
4065 if test "$no_cache" != 1; then
4066 echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
4067 fi
4068
4069 if test "$wxUSE_CHECKBOX" = yes; then
4070 echo "$ac_t""yes" 1>&6
4071 else
4072 echo "$ac_t""no" 1>&6
4073 fi
4074
4075
4076 echo $ac_n "checking "for --enable-checklst"""... $ac_c" 1>&6
f7a11f8c 4077echo "configure:4078: checking "for --enable-checklst"" >&5
a16d3c04
KB
4078 no_cache=0
4079 # Check whether --enable-checklst or --disable-checklst was given.
4080if test "${enable_checklst+set}" = set; then
4081 enableval="$enable_checklst"
4082
4083 if test "$enableval" = yes; then
4084 ac_cv_use_checklst='wxUSE_CHECKLST=yes'
4085 else
4086 ac_cv_use_checklst='wxUSE_CHECKLST=no'
4087 fi
4088
4089else
4090
4091 LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
4092 if test "x$LINE" != x ; then
4093 eval "DEFAULT_$LINE"
4094 else
4095 no_cache=1
4096 fi
4097
4098 ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
4099
4100fi
4101
4102
4103 eval "$ac_cv_use_checklst"
4104 if test "$no_cache" != 1; then
4105 echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
4106 fi
4107
4108 if test "$wxUSE_CHECKLST" = yes; then
4109 echo "$ac_t""yes" 1>&6
4110 else
4111 echo "$ac_t""no" 1>&6
4112 fi
4113
4114
4115 echo $ac_n "checking "for --enable-choice"""... $ac_c" 1>&6
f7a11f8c 4116echo "configure:4117: checking "for --enable-choice"" >&5
a16d3c04
KB
4117 no_cache=0
4118 # Check whether --enable-choice or --disable-choice was given.
4119if test "${enable_choice+set}" = set; then
4120 enableval="$enable_choice"
4121
4122 if test "$enableval" = yes; then
4123 ac_cv_use_choice='wxUSE_CHOICE=yes'
4124 else
4125 ac_cv_use_choice='wxUSE_CHOICE=no'
4126 fi
4127
4128else
4129
4130 LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
4131 if test "x$LINE" != x ; then
4132 eval "DEFAULT_$LINE"
4133 else
4134 no_cache=1
4135 fi
4136
4137 ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
4138
4139fi
4140
4141
4142 eval "$ac_cv_use_choice"
4143 if test "$no_cache" != 1; then
4144 echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
4145 fi
4146
4147 if test "$wxUSE_CHOICE" = yes; then
4148 echo "$ac_t""yes" 1>&6
4149 else
4150 echo "$ac_t""no" 1>&6
4151 fi
4152
4153
4154 echo $ac_n "checking "for --enable-combobox"""... $ac_c" 1>&6
f7a11f8c 4155echo "configure:4156: checking "for --enable-combobox"" >&5
a16d3c04
KB
4156 no_cache=0
4157 # Check whether --enable-combobox or --disable-combobox was given.
4158if test "${enable_combobox+set}" = set; then
4159 enableval="$enable_combobox"
4160
4161 if test "$enableval" = yes; then
4162 ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
4163 else
4164 ac_cv_use_combobox='wxUSE_COMBOBOX=no'
4165 fi
4166
4167else
4168
4169 LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
4170 if test "x$LINE" != x ; then
4171 eval "DEFAULT_$LINE"
4172 else
4173 no_cache=1
4174 fi
4175
4176 ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
4177
4178fi
4179
4180
4181 eval "$ac_cv_use_combobox"
4182 if test "$no_cache" != 1; then
4183 echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
4184 fi
4185
4186 if test "$wxUSE_COMBOBOX" = yes; then
4187 echo "$ac_t""yes" 1>&6
4188 else
4189 echo "$ac_t""no" 1>&6
4190 fi
4191
4192
4193 echo $ac_n "checking "for --enable-gauge"""... $ac_c" 1>&6
f7a11f8c 4194echo "configure:4195: checking "for --enable-gauge"" >&5
a16d3c04
KB
4195 no_cache=0
4196 # Check whether --enable-gauge or --disable-gauge was given.
4197if test "${enable_gauge+set}" = set; then
4198 enableval="$enable_gauge"
4199
4200 if test "$enableval" = yes; then
4201 ac_cv_use_gauge='wxUSE_GAUGE=yes'
4202 else
4203 ac_cv_use_gauge='wxUSE_GAUGE=no'
4204 fi
4205
4206else
4207
4208 LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
4209 if test "x$LINE" != x ; then
4210 eval "DEFAULT_$LINE"
4211 else
4212 no_cache=1
4213 fi
4214
4215 ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
4216
4217fi
4218
4219
4220 eval "$ac_cv_use_gauge"
4221 if test "$no_cache" != 1; then
4222 echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
4223 fi
4224
4225 if test "$wxUSE_GAUGE" = yes; then
4226 echo "$ac_t""yes" 1>&6
4227 else
4228 echo "$ac_t""no" 1>&6
4229 fi
4230
4231
4232 echo $ac_n "checking "for --enable-grid"""... $ac_c" 1>&6
f7a11f8c 4233echo "configure:4234: checking "for --enable-grid"" >&5
a16d3c04
KB
4234 no_cache=0
4235 # Check whether --enable-grid or --disable-grid was given.
4236if test "${enable_grid+set}" = set; then
4237 enableval="$enable_grid"
4238
4239 if test "$enableval" = yes; then
4240 ac_cv_use_grid='wxUSE_GRID=yes'
4241 else
4242 ac_cv_use_grid='wxUSE_GRID=no'
4243 fi
4244
4245else
4246
4247 LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
4248 if test "x$LINE" != x ; then
4249 eval "DEFAULT_$LINE"
4250 else
4251 no_cache=1
4252 fi
4253
4254 ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
4255
4256fi
4257
4258
4259 eval "$ac_cv_use_grid"
4260 if test "$no_cache" != 1; then
4261 echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
4262 fi
4263
4264 if test "$wxUSE_GRID" = yes; then
4265 echo "$ac_t""yes" 1>&6
4266 else
4267 echo "$ac_t""no" 1>&6
4268 fi
4269
4270
4271 echo $ac_n "checking "for --enable-imaglist"""... $ac_c" 1>&6
f7a11f8c 4272echo "configure:4273: checking "for --enable-imaglist"" >&5
a16d3c04
KB
4273 no_cache=0
4274 # Check whether --enable-imaglist or --disable-imaglist was given.
4275if test "${enable_imaglist+set}" = set; then
4276 enableval="$enable_imaglist"
4277
4278 if test "$enableval" = yes; then
4279 ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
4280 else
4281 ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
4282 fi
4283
4284else
4285
4286 LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
4287 if test "x$LINE" != x ; then
4288 eval "DEFAULT_$LINE"
4289 else
4290 no_cache=1
4291 fi
4292
4293 ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
4294
4295fi
4296
4297
4298 eval "$ac_cv_use_imaglist"
4299 if test "$no_cache" != 1; then
4300 echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
4301 fi
4302
4303 if test "$wxUSE_IMAGLIST" = yes; then
4304 echo "$ac_t""yes" 1>&6
4305 else
4306 echo "$ac_t""no" 1>&6
4307 fi
4308
4309
4310 echo $ac_n "checking "for --enable-listbox"""... $ac_c" 1>&6
f7a11f8c 4311echo "configure:4312: checking "for --enable-listbox"" >&5
a16d3c04
KB
4312 no_cache=0
4313 # Check whether --enable-listbox or --disable-listbox was given.
4314if test "${enable_listbox+set}" = set; then
4315 enableval="$enable_listbox"
4316
4317 if test "$enableval" = yes; then
4318 ac_cv_use_listbox='wxUSE_LISTBOX=yes'
4319 else
4320 ac_cv_use_listbox='wxUSE_LISTBOX=no'
4321 fi
4322
4323else
4324
4325 LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
4326 if test "x$LINE" != x ; then
4327 eval "DEFAULT_$LINE"
4328 else
4329 no_cache=1
4330 fi
4331
4332 ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
4333
4334fi
4335
4336
4337 eval "$ac_cv_use_listbox"
4338 if test "$no_cache" != 1; then
4339 echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
4340 fi
4341
4342 if test "$wxUSE_LISTBOX" = yes; then
4343 echo "$ac_t""yes" 1>&6
4344 else
4345 echo "$ac_t""no" 1>&6
4346 fi
4347
4348
4349 echo $ac_n "checking "for --enable-listctrl"""... $ac_c" 1>&6
f7a11f8c 4350echo "configure:4351: checking "for --enable-listctrl"" >&5
a16d3c04
KB
4351 no_cache=0
4352 # Check whether --enable-listctrl or --disable-listctrl was given.
4353if test "${enable_listctrl+set}" = set; then
4354 enableval="$enable_listctrl"
4355
4356 if test "$enableval" = yes; then
4357 ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
4358 else
4359 ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
4360 fi
4361
4362else
4363
4364 LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
4365 if test "x$LINE" != x ; then
4366 eval "DEFAULT_$LINE"
4367 else
4368 no_cache=1
4369 fi
4370
4371 ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
4372
4373fi
4374
4375
4376 eval "$ac_cv_use_listctrl"
4377 if test "$no_cache" != 1; then
4378 echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
4379 fi
4380
4381 if test "$wxUSE_LISTCTRL" = yes; then
4382 echo "$ac_t""yes" 1>&6
4383 else
4384 echo "$ac_t""no" 1>&6
4385 fi
4386
4387
4388 echo $ac_n "checking "for --enable-notebook"""... $ac_c" 1>&6
f7a11f8c 4389echo "configure:4390: checking "for --enable-notebook"" >&5
a16d3c04
KB
4390 no_cache=0
4391 # Check whether --enable-notebook or --disable-notebook was given.
4392if test "${enable_notebook+set}" = set; then
4393 enableval="$enable_notebook"
4394
4395 if test "$enableval" = yes; then
4396 ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
4397 else
4398 ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
4399 fi
4400
4401else
4402
4403 LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
4404 if test "x$LINE" != x ; then
4405 eval "DEFAULT_$LINE"
4406 else
4407 no_cache=1
4408 fi
4409
4410 ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
4411
4412fi
4413
4414
4415 eval "$ac_cv_use_notebook"
4416 if test "$no_cache" != 1; then
4417 echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
4418 fi
4419
4420 if test "$wxUSE_NOTEBOOK" = yes; then
4421 echo "$ac_t""yes" 1>&6
4422 else
4423 echo "$ac_t""no" 1>&6
4424 fi
4425
4426
4427 echo $ac_n "checking "for --enable-radiobox"""... $ac_c" 1>&6
f7a11f8c 4428echo "configure:4429: checking "for --enable-radiobox"" >&5
a16d3c04
KB
4429 no_cache=0
4430 # Check whether --enable-radiobox or --disable-radiobox was given.
4431if test "${enable_radiobox+set}" = set; then
4432 enableval="$enable_radiobox"
4433
4434 if test "$enableval" = yes; then
4435 ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
4436 else
4437 ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
4438 fi
4439
4440else
4441
4442 LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
4443 if test "x$LINE" != x ; then
4444 eval "DEFAULT_$LINE"
4445 else
4446 no_cache=1
4447 fi
4448
4449 ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
4450
4451fi
4452
4453
4454 eval "$ac_cv_use_radiobox"
4455 if test "$no_cache" != 1; then
4456 echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
4457 fi
4458
4459 if test "$wxUSE_RADIOBOX" = yes; then
4460 echo "$ac_t""yes" 1>&6
4461 else
4462 echo "$ac_t""no" 1>&6
4463 fi
4464
4465
4466 echo $ac_n "checking "for --enable-radiobtn"""... $ac_c" 1>&6
f7a11f8c 4467echo "configure:4468: checking "for --enable-radiobtn"" >&5
a16d3c04
KB
4468 no_cache=0
4469 # Check whether --enable-radiobtn or --disable-radiobtn was given.
4470if test "${enable_radiobtn+set}" = set; then
4471 enableval="$enable_radiobtn"
4472
4473 if test "$enableval" = yes; then
4474 ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
4475 else
4476 ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
4477 fi
4478
4479else
4480
4481 LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
4482 if test "x$LINE" != x ; then
4483 eval "DEFAULT_$LINE"
4484 else
4485 no_cache=1
4486 fi
4487
4488 ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
4489
4490fi
4491
4492
4493 eval "$ac_cv_use_radiobtn"
4494 if test "$no_cache" != 1; then
4495 echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
4496 fi
4497
4498 if test "$wxUSE_RADIOBTN" = yes; then
4499 echo "$ac_t""yes" 1>&6
4500 else
4501 echo "$ac_t""no" 1>&6
4502 fi
4503
4504
4505 echo $ac_n "checking "for --enable-sash"""... $ac_c" 1>&6
f7a11f8c 4506echo "configure:4507: checking "for --enable-sash"" >&5
a16d3c04
KB
4507 no_cache=0
4508 # Check whether --enable-sash or --disable-sash was given.
4509if test "${enable_sash+set}" = set; then
4510 enableval="$enable_sash"
4511
4512 if test "$enableval" = yes; then
4513 ac_cv_use_sash='wxUSE_SASH=yes'
4514 else
4515 ac_cv_use_sash='wxUSE_SASH=no'
4516 fi
4517
4518else
4519
4520 LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
4521 if test "x$LINE" != x ; then
4522 eval "DEFAULT_$LINE"
4523 else
4524 no_cache=1
4525 fi
4526
4527 ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
4528
4529fi
4530
4531
4532 eval "$ac_cv_use_sash"
4533 if test "$no_cache" != 1; then
4534 echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
4535 fi
4536
4537 if test "$wxUSE_SASH" = yes; then
4538 echo "$ac_t""yes" 1>&6
4539 else
4540 echo "$ac_t""no" 1>&6
4541 fi
4542
4543
4544 echo $ac_n "checking "for --enable-scrollbar"""... $ac_c" 1>&6
f7a11f8c 4545echo "configure:4546: checking "for --enable-scrollbar"" >&5
a16d3c04
KB
4546 no_cache=0
4547 # Check whether --enable-scrollbar or --disable-scrollbar was given.
4548if test "${enable_scrollbar+set}" = set; then
4549 enableval="$enable_scrollbar"
4550
4551 if test "$enableval" = yes; then
4552 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
4553 else
4554 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
4555 fi
4556
4557else
4558
4559 LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
4560 if test "x$LINE" != x ; then
4561 eval "DEFAULT_$LINE"
4562 else
4563 no_cache=1
4564 fi
4565
4566 ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
4567
4568fi
4569
4570
4571 eval "$ac_cv_use_scrollbar"
4572 if test "$no_cache" != 1; then
4573 echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
4574 fi
4575
4576 if test "$wxUSE_SCROLLBAR" = yes; then
4577 echo "$ac_t""yes" 1>&6
4578 else
4579 echo "$ac_t""no" 1>&6
4580 fi
4581
4582
4583 echo $ac_n "checking "for --enable-slider"""... $ac_c" 1>&6
f7a11f8c 4584echo "configure:4585: checking "for --enable-slider"" >&5
a16d3c04
KB
4585 no_cache=0
4586 # Check whether --enable-slider or --disable-slider was given.
4587if test "${enable_slider+set}" = set; then
4588 enableval="$enable_slider"
4589
4590 if test "$enableval" = yes; then
4591 ac_cv_use_slider='wxUSE_SLIDER=yes'
4592 else
4593 ac_cv_use_slider='wxUSE_SLIDER=no'
4594 fi
4595
4596else
4597
4598 LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
4599 if test "x$LINE" != x ; then
4600 eval "DEFAULT_$LINE"
4601 else
4602 no_cache=1
4603 fi
4604
4605 ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
4606
4607fi
4608
4609
4610 eval "$ac_cv_use_slider"
4611 if test "$no_cache" != 1; then
4612 echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
4613 fi
4614
4615 if test "$wxUSE_SLIDER" = yes; then
4616 echo "$ac_t""yes" 1>&6
4617 else
4618 echo "$ac_t""no" 1>&6
4619 fi
4620
4621
4622 echo $ac_n "checking "for --enable-spinbtn"""... $ac_c" 1>&6
f7a11f8c 4623echo "configure:4624: checking "for --enable-spinbtn"" >&5
a16d3c04
KB
4624 no_cache=0
4625 # Check whether --enable-spinbtn or --disable-spinbtn was given.
4626if test "${enable_spinbtn+set}" = set; then
4627 enableval="$enable_spinbtn"
4628
4629 if test "$enableval" = yes; then
4630 ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
4631 else
4632 ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
4633 fi
4634
4635else
4636
4637 LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
4638 if test "x$LINE" != x ; then
4639 eval "DEFAULT_$LINE"
4640 else
4641 no_cache=1
4642 fi
4643
4644 ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
4645
4646fi
4647
4648
4649 eval "$ac_cv_use_spinbtn"
4650 if test "$no_cache" != 1; then
4651 echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
4652 fi
4653
4654 if test "$wxUSE_SPINBTN" = yes; then
4655 echo "$ac_t""yes" 1>&6
4656 else
4657 echo "$ac_t""no" 1>&6
4658 fi
4659
4660
4661 echo $ac_n "checking "for --enable-splitter"""... $ac_c" 1>&6
f7a11f8c 4662echo "configure:4663: checking "for --enable-splitter"" >&5
a16d3c04
KB
4663 no_cache=0
4664 # Check whether --enable-splitter or --disable-splitter was given.
4665if test "${enable_splitter+set}" = set; then
4666 enableval="$enable_splitter"
4667
4668 if test "$enableval" = yes; then
4669 ac_cv_use_splitter='wxUSE_SPLITTER=yes'
4670 else
4671 ac_cv_use_splitter='wxUSE_SPLITTER=no'
4672 fi
4673
4674else
4675
4676 LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
4677 if test "x$LINE" != x ; then
4678 eval "DEFAULT_$LINE"
4679 else
4680 no_cache=1
4681 fi
4682
4683 ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
4684
4685fi
4686
4687
4688 eval "$ac_cv_use_splitter"
4689 if test "$no_cache" != 1; then
4690 echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
4691 fi
4692
4693 if test "$wxUSE_SPLITTER" = yes; then
4694 echo "$ac_t""yes" 1>&6
4695 else
4696 echo "$ac_t""no" 1>&6
4697 fi
4698
4699
4700 echo $ac_n "checking "for --enable-statbmp"""... $ac_c" 1>&6
f7a11f8c 4701echo "configure:4702: checking "for --enable-statbmp"" >&5
a16d3c04
KB
4702 no_cache=0
4703 # Check whether --enable-statbmp or --disable-statbmp was given.
4704if test "${enable_statbmp+set}" = set; then
4705 enableval="$enable_statbmp"
4706
4707 if test "$enableval" = yes; then
4708 ac_cv_use_statbmp='wxUSE_STATBMP=yes'
4709 else
4710 ac_cv_use_statbmp='wxUSE_STATBMP=no'
4711 fi
4712
4713else
4714
4715 LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
4716 if test "x$LINE" != x ; then
4717 eval "DEFAULT_$LINE"
4718 else
4719 no_cache=1
4720 fi
4721
4722 ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
4723
4724fi
4725
4726
4727 eval "$ac_cv_use_statbmp"
4728 if test "$no_cache" != 1; then
4729 echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
4730 fi
4731
4732 if test "$wxUSE_STATBMP" = yes; then
4733 echo "$ac_t""yes" 1>&6
4734 else
4735 echo "$ac_t""no" 1>&6
4736 fi
4737
4738
4739 echo $ac_n "checking "for --enable-statbox"""... $ac_c" 1>&6
f7a11f8c 4740echo "configure:4741: checking "for --enable-statbox"" >&5
a16d3c04
KB
4741 no_cache=0
4742 # Check whether --enable-statbox or --disable-statbox was given.
4743if test "${enable_statbox+set}" = set; then
4744 enableval="$enable_statbox"
4745
4746 if test "$enableval" = yes; then
4747 ac_cv_use_statbox='wxUSE_STATBOX=yes'
4748 else
4749 ac_cv_use_statbox='wxUSE_STATBOX=no'
4750 fi
4751
4752else
4753
4754 LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
4755 if test "x$LINE" != x ; then
4756 eval "DEFAULT_$LINE"
4757 else
4758 no_cache=1
4759 fi
4760
4761 ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
4762
4763fi
4764
4765
4766 eval "$ac_cv_use_statbox"
4767 if test "$no_cache" != 1; then
4768 echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
4769 fi
4770
4771 if test "$wxUSE_STATBOX" = yes; then
4772 echo "$ac_t""yes" 1>&6
4773 else
4774 echo "$ac_t""no" 1>&6
4775 fi
4776
4777
4778 echo $ac_n "checking "for --enable-statline"""... $ac_c" 1>&6
f7a11f8c 4779echo "configure:4780: checking "for --enable-statline"" >&5
a16d3c04
KB
4780 no_cache=0
4781 # Check whether --enable-statline or --disable-statline was given.
4782if test "${enable_statline+set}" = set; then
4783 enableval="$enable_statline"
4784
4785 if test "$enableval" = yes; then
4786 ac_cv_use_statline='wxUSE_STATLINE=yes'
4787 else
4788 ac_cv_use_statline='wxUSE_STATLINE=no'
4789 fi
4790
4791else
4792
4793 LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
4794 if test "x$LINE" != x ; then
4795 eval "DEFAULT_$LINE"
4796 else
4797 no_cache=1
4798 fi
4799
4800 ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
4801
4802fi
4803
4804
4805 eval "$ac_cv_use_statline"
4806 if test "$no_cache" != 1; then
4807 echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
4808 fi
4809
4810 if test "$wxUSE_STATLINE" = yes; then
4811 echo "$ac_t""yes" 1>&6
4812 else
4813 echo "$ac_t""no" 1>&6
4814 fi
4815
4816
4817 echo $ac_n "checking "for --enable-statusbar"""... $ac_c" 1>&6
f7a11f8c 4818echo "configure:4819: checking "for --enable-statusbar"" >&5
a16d3c04
KB
4819 no_cache=0
4820 # Check whether --enable-statusbar or --disable-statusbar was given.
4821if test "${enable_statusbar+set}" = set; then
4822 enableval="$enable_statusbar"
4823
4824 if test "$enableval" = yes; then
4825 ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
4826 else
4827 ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
4828 fi
4829
4830else
4831
4832 LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
4833 if test "x$LINE" != x ; then
4834 eval "DEFAULT_$LINE"
4835 else
4836 no_cache=1
4837 fi
4838
4839 ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
4840
4841fi
4842
4843
4844 eval "$ac_cv_use_statusbar"
4845 if test "$no_cache" != 1; then
4846 echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
4847 fi
4848
4849 if test "$wxUSE_STATUSBAR" = yes; then
4850 echo "$ac_t""yes" 1>&6
4851 else
4852 echo "$ac_t""no" 1>&6
4853 fi
4854
4855
4856 echo $ac_n "checking "for --enable-tabdialog"""... $ac_c" 1>&6
f7a11f8c 4857echo "configure:4858: checking "for --enable-tabdialog"" >&5
a16d3c04
KB
4858 no_cache=0
4859 # Check whether --enable-tabdialog or --disable-tabdialog was given.
4860if test "${enable_tabdialog+set}" = set; then
4861 enableval="$enable_tabdialog"
4862
4863 if test "$enableval" = yes; then
4864 ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes'
4865 else
4866 ac_cv_use_tabdialog='wxUSE_TABDIALOG=no'
4867 fi
4868
4869else
4870
4871 LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}`
4872 if test "x$LINE" != x ; then
4873 eval "DEFAULT_$LINE"
4874 else
4875 no_cache=1
4876 fi
4877
4878 ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG
4879
4880fi
4881
4882
4883 eval "$ac_cv_use_tabdialog"
4884 if test "$no_cache" != 1; then
4885 echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
4886 fi
4887
4888 if test "$wxUSE_TABDIALOG" = yes; then
4889 echo "$ac_t""yes" 1>&6
4890 else
4891 echo "$ac_t""no" 1>&6
4892 fi
4893
4894
4895 echo $ac_n "checking "for --enable-toolbar"""... $ac_c" 1>&6
f7a11f8c 4896echo "configure:4897: checking "for --enable-toolbar"" >&5
a16d3c04
KB
4897 no_cache=0
4898 # Check whether --enable-toolbar or --disable-toolbar was given.
4899if test "${enable_toolbar+set}" = set; then
4900 enableval="$enable_toolbar"
4901
4902 if test "$enableval" = yes; then
4903 ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
4904 else
4905 ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
4906 fi
4907
4908else
4909
4910 LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
4911 if test "x$LINE" != x ; then
4912 eval "DEFAULT_$LINE"
4913 else
4914 no_cache=1
4915 fi
4916
4917 ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
4918
4919fi
4920
4921
4922 eval "$ac_cv_use_toolbar"
4923 if test "$no_cache" != 1; then
4924 echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
4925 fi
4926
4927 if test "$wxUSE_TOOLBAR" = yes; then
4928 echo "$ac_t""yes" 1>&6
4929 else
4930 echo "$ac_t""no" 1>&6
4931 fi
4932
4933
4934 echo $ac_n "checking "for --enable-treectrl"""... $ac_c" 1>&6
f7a11f8c 4935echo "configure:4936: checking "for --enable-treectrl"" >&5
a16d3c04
KB
4936 no_cache=0
4937 # Check whether --enable-treectrl or --disable-treectrl was given.
4938if test "${enable_treectrl+set}" = set; then
4939 enableval="$enable_treectrl"
4940
4941 if test "$enableval" = yes; then
4942 ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
4943 else
4944 ac_cv_use_treectrl='wxUSE_TREECTRL=no'
4945 fi
4946
4947else
4948
4949 LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
4950 if test "x$LINE" != x ; then
4951 eval "DEFAULT_$LINE"
4952 else
4953 no_cache=1
4954 fi
4955
4956 ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
4957
4958fi
4959
4960
4961 eval "$ac_cv_use_treectrl"
4962 if test "$no_cache" != 1; then
4963 echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
4964 fi
4965
4966 if test "$wxUSE_TREECTRL" = yes; then
4967 echo "$ac_t""yes" 1>&6
4968 else
4969 echo "$ac_t""no" 1>&6
4970 fi
4971
4972
4973
4974
4975 echo $ac_n "checking "for --enable-commondlg"""... $ac_c" 1>&6
f7a11f8c 4976echo "configure:4977: checking "for --enable-commondlg"" >&5
a16d3c04
KB
4977 no_cache=0
4978 # Check whether --enable-commondlg or --disable-commondlg was given.
4979if test "${enable_commondlg+set}" = set; then
4980 enableval="$enable_commondlg"
4981
4982 if test "$enableval" = yes; then
4983 ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
4984 else
4985 ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
4986 fi
4987
4988else
4989
4990 LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
4991 if test "x$LINE" != x ; then
4992 eval "DEFAULT_$LINE"
4993 else
4994 no_cache=1
4995 fi
4996
4997 ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
4998
4999fi
5000
5001
5002 eval "$ac_cv_use_commondlg"
5003 if test "$no_cache" != 1; then
5004 echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
5005 fi
5006
5007 if test "$wxUSE_COMMONDLGS" = yes; then
5008 echo "$ac_t""yes" 1>&6
5009 else
5010 echo "$ac_t""no" 1>&6
5011 fi
5012
5013
5014 echo $ac_n "checking "for --enable-dirdlg"""... $ac_c" 1>&6
f7a11f8c 5015echo "configure:5016: checking "for --enable-dirdlg"" >&5
a16d3c04
KB
5016 no_cache=0
5017 # Check whether --enable-dirdlg or --disable-dirdlg was given.
5018if test "${enable_dirdlg+set}" = set; then
5019 enableval="$enable_dirdlg"
5020
5021 if test "$enableval" = yes; then
5022 ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
5023 else
5024 ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
5025 fi
5026
5027else
5028
5029 LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
5030 if test "x$LINE" != x ; then
5031 eval "DEFAULT_$LINE"
5032 else
5033 no_cache=1
5034 fi
5035
5036 ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
5037
5038fi
5039
5040
5041 eval "$ac_cv_use_dirdlg"
5042 if test "$no_cache" != 1; then
5043 echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
5044 fi
5045
5046 if test "$wxUSE_DIRDLG" = yes; then
5047 echo "$ac_t""yes" 1>&6
5048 else
5049 echo "$ac_t""no" 1>&6
5050 fi
5051
5052
5053 echo $ac_n "checking "for --enable-textdlg"""... $ac_c" 1>&6
f7a11f8c 5054echo "configure:5055: checking "for --enable-textdlg"" >&5
a16d3c04
KB
5055 no_cache=0
5056 # Check whether --enable-textdlg or --disable-textdlg was given.
5057if test "${enable_textdlg+set}" = set; then
5058 enableval="$enable_textdlg"
5059
5060 if test "$enableval" = yes; then
5061 ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
5062 else
5063 ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
5064 fi
5065
5066else
5067
5068 LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
5069 if test "x$LINE" != x ; then
5070 eval "DEFAULT_$LINE"
5071 else
5072 no_cache=1
5073 fi
5074
5075 ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
5076
5077fi
5078
5079
5080 eval "$ac_cv_use_textdlg"
5081 if test "$no_cache" != 1; then
5082 echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
5083 fi
5084
5085 if test "$wxUSE_TEXTDLG" = yes; then
5086 echo "$ac_t""yes" 1>&6
5087 else
5088 echo "$ac_t""no" 1>&6
5089 fi
5090
5091
5092 echo $ac_n "checking "for --enable-tipdlg"""... $ac_c" 1>&6
f7a11f8c 5093echo "configure:5094: checking "for --enable-tipdlg"" >&5
a16d3c04
KB
5094 no_cache=0
5095 # Check whether --enable-tipdlg or --disable-tipdlg was given.
5096if test "${enable_tipdlg+set}" = set; then
5097 enableval="$enable_tipdlg"
5098
5099 if test "$enableval" = yes; then
5100 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
5101 else
5102 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
5103 fi
5104
5105else
5106
5107 LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
5108 if test "x$LINE" != x ; then
5109 eval "DEFAULT_$LINE"
5110 else
5111 no_cache=1
5112 fi
5113
5114 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
5115
5116fi
5117
5118
5119 eval "$ac_cv_use_tipdlg"
5120 if test "$no_cache" != 1; then
5121 echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
5122 fi
5123
5124 if test "$wxUSE_STARTUP_TIPS" = yes; then
5125 echo "$ac_t""yes" 1>&6
5126 else
5127 echo "$ac_t""no" 1>&6
5128 fi
5129
5130
5131 echo $ac_n "checking "for --enable-progressdlg"""... $ac_c" 1>&6
f7a11f8c 5132echo "configure:5133: checking "for --enable-progressdlg"" >&5
a16d3c04
KB
5133 no_cache=0
5134 # Check whether --enable-progressdlg or --disable-progressdlg was given.
5135if test "${enable_progressdlg+set}" = set; then
5136 enableval="$enable_progressdlg"
5137
5138 if test "$enableval" = yes; then
5139 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
5140 else
5141 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
5142 fi
5143
5144else
5145
5146 LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
5147 if test "x$LINE" != x ; then
5148 eval "DEFAULT_$LINE"
5149 else
5150 no_cache=1
5151 fi
5152
5153 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
5154
5155fi
5156
5157
5158 eval "$ac_cv_use_progressdlg"
5159 if test "$no_cache" != 1; then
5160 echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
5161 fi
5162
5163 if test "$wxUSE_PROGRESSDLG" = yes; then
5164 echo "$ac_t""yes" 1>&6
5165 else
5166 echo "$ac_t""no" 1>&6
5167 fi
5168
5169
5170 echo $ac_n "checking "for --enable-miniframe"""... $ac_c" 1>&6
f7a11f8c 5171echo "configure:5172: checking "for --enable-miniframe"" >&5
a16d3c04
KB
5172 no_cache=0
5173 # Check whether --enable-miniframe or --disable-miniframe was given.
5174if test "${enable_miniframe+set}" = set; then
5175 enableval="$enable_miniframe"
5176
5177 if test "$enableval" = yes; then
5178 ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
5179 else
5180 ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
5181 fi
5182
5183else
5184
5185 LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
5186 if test "x$LINE" != x ; then
5187 eval "DEFAULT_$LINE"
5188 else
5189 no_cache=1
5190 fi
5191
5192 ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
5193
5194fi
5195
5196
5197 eval "$ac_cv_use_miniframe"
5198 if test "$no_cache" != 1; then
5199 echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
5200 fi
5201
5202 if test "$wxUSE_MINIFRAME" = yes; then
5203 echo "$ac_t""yes" 1>&6
5204 else
5205 echo "$ac_t""no" 1>&6
5206 fi
5207
5208
5209 echo $ac_n "checking "for --enable-html"""... $ac_c" 1>&6
f7a11f8c 5210echo "configure:5211: checking "for --enable-html"" >&5
a16d3c04
KB
5211 no_cache=0
5212 # Check whether --enable-html or --disable-html was given.
5213if test "${enable_html+set}" = set; then
5214 enableval="$enable_html"
5215
5216 if test "$enableval" = yes; then
5217 ac_cv_use_html='wxUSE_HTML=yes'
5218 else
5219 ac_cv_use_html='wxUSE_HTML=no'
5220 fi
5221
5222else
5223
5224 LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
5225 if test "x$LINE" != x ; then
5226 eval "DEFAULT_$LINE"
5227 else
5228 no_cache=1
5229 fi
5230
5231 ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
5232
5233fi
5234
5235
5236 eval "$ac_cv_use_html"
5237 if test "$no_cache" != 1; then
5238 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
5239 fi
5240
5241 if test "$wxUSE_HTML" = yes; then
5242 echo "$ac_t""yes" 1>&6
5243 else
5244 echo "$ac_t""no" 1>&6
5245 fi
5246
5247
5248 echo $ac_n "checking "for --enable-tooltips"""... $ac_c" 1>&6
f7a11f8c 5249echo "configure:5250: checking "for --enable-tooltips"" >&5
a16d3c04
KB
5250 no_cache=0
5251 # Check whether --enable-tooltips or --disable-tooltips was given.
5252if test "${enable_tooltips+set}" = set; then
5253 enableval="$enable_tooltips"
5254
5255 if test "$enableval" = yes; then
5256 ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
5257 else
5258 ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
5259 fi
5260
5261else
5262
5263 LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
5264 if test "x$LINE" != x ; then
5265 eval "DEFAULT_$LINE"
5266 else
5267 no_cache=1
5268 fi
5269
5270 ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
5271
5272fi
5273
5274
5275 eval "$ac_cv_use_tooltips"
5276 if test "$no_cache" != 1; then
5277 echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
5278 fi
5279
5280 if test "$wxUSE_TOOLTIPS" = yes; then
5281 echo "$ac_t""yes" 1>&6
5282 else
5283 echo "$ac_t""no" 1>&6
5284 fi
5285
5286
5287 echo $ac_n "checking "for --enable-splines"""... $ac_c" 1>&6
f7a11f8c 5288echo "configure:5289: checking "for --enable-splines"" >&5
a16d3c04
KB
5289 no_cache=0
5290 # Check whether --enable-splines or --disable-splines was given.
5291if test "${enable_splines+set}" = set; then
5292 enableval="$enable_splines"
5293
5294 if test "$enableval" = yes; then
5295 ac_cv_use_splines='wxUSE_SPLINES=yes'
5296 else
5297 ac_cv_use_splines='wxUSE_SPLINES=no'
5298 fi
5299
5300else
5301
5302 LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
5303 if test "x$LINE" != x ; then
5304 eval "DEFAULT_$LINE"
5305 else
5306 no_cache=1
5307 fi
5308
5309 ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
5310
5311fi
5312
5313
5314 eval "$ac_cv_use_splines"
5315 if test "$no_cache" != 1; then
5316 echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
5317 fi
5318
5319 if test "$wxUSE_SPLINES" = yes; then
5320 echo "$ac_t""yes" 1>&6
5321 else
5322 echo "$ac_t""no" 1>&6
5323 fi
5324
5325
5326 echo $ac_n "checking "for --enable-validators"""... $ac_c" 1>&6
f7a11f8c 5327echo "configure:5328: checking "for --enable-validators"" >&5
a16d3c04
KB
5328 no_cache=0
5329 # Check whether --enable-validators or --disable-validators was given.
5330if test "${enable_validators+set}" = set; then
5331 enableval="$enable_validators"
5332
5333 if test "$enableval" = yes; then
5334 ac_cv_use_validators='wxUSE_VALIDATORS=yes'
5335 else
5336 ac_cv_use_validators='wxUSE_VALIDATORS=no'
5337 fi
5338
5339else
5340
5341 LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
5342 if test "x$LINE" != x ; then
5343 eval "DEFAULT_$LINE"
5344 else
5345 no_cache=1
5346 fi
5347
5348 ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
5349
5350fi
5351
5352
5353 eval "$ac_cv_use_validators"
5354 if test "$no_cache" != 1; then
5355 echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
5356 fi
5357
5358 if test "$wxUSE_VALIDATORS" = yes; then
5359 echo "$ac_t""yes" 1>&6
5360 else
5361 echo "$ac_t""no" 1>&6
5362 fi
5363
5364
5365 echo $ac_n "checking "for --enable-busyinfo"""... $ac_c" 1>&6
f7a11f8c 5366echo "configure:5367: checking "for --enable-busyinfo"" >&5
a16d3c04
KB
5367 no_cache=0
5368 # Check whether --enable-busyinfo or --disable-busyinfo was given.
5369if test "${enable_busyinfo+set}" = set; then
5370 enableval="$enable_busyinfo"
5371
5372 if test "$enableval" = yes; then
5373 ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
5374 else
5375 ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
5376 fi
5377
5378else
5379
5380 LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
5381 if test "x$LINE" != x ; then
5382 eval "DEFAULT_$LINE"
5383 else
5384 no_cache=1
5385 fi
5386
5387 ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
5388
5389fi
5390
5391
5392 eval "$ac_cv_use_busyinfo"
5393 if test "$no_cache" != 1; then
5394 echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
5395 fi
5396
5397 if test "$wxUSE_BUSYINFO" = yes; then
5398 echo "$ac_t""yes" 1>&6
5399 else
5400 echo "$ac_t""no" 1>&6
5401 fi
5402
5403
5404
1c8515f9
KB
5405
5406 echo $ac_n "checking "for --enable-gif"""... $ac_c" 1>&6
f7a11f8c 5407echo "configure:5408: checking "for --enable-gif"" >&5
1c8515f9
KB
5408 no_cache=0
5409 # Check whether --enable-gif or --disable-gif was given.
5410if test "${enable_gif+set}" = set; then
5411 enableval="$enable_gif"
5412
5413 if test "$enableval" = yes; then
5414 ac_cv_use_gif='wxUSE_GIF=yes'
5415 else
5416 ac_cv_use_gif='wxUSE_GIF=no'
5417 fi
5418
5419else
5420
5421 LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
5422 if test "x$LINE" != x ; then
5423 eval "DEFAULT_$LINE"
5424 else
5425 no_cache=1
5426 fi
5427
5428 ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
5429
5430fi
5431
5432
5433 eval "$ac_cv_use_gif"
5434 if test "$no_cache" != 1; then
5435 echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
5436 fi
5437
5438 if test "$wxUSE_GIF" = yes; then
5439 echo "$ac_t""yes" 1>&6
5440 else
5441 echo "$ac_t""no" 1>&6
5442 fi
5443
5444
5445 echo $ac_n "checking "for --enable-pcx"""... $ac_c" 1>&6
f7a11f8c 5446echo "configure:5447: checking "for --enable-pcx"" >&5
1c8515f9
KB
5447 no_cache=0
5448 # Check whether --enable-pcx or --disable-pcx was given.
5449if test "${enable_pcx+set}" = set; then
5450 enableval="$enable_pcx"
5451
5452 if test "$enableval" = yes; then
5453 ac_cv_use_pcx='wxUSE_PCX=yes'
5454 else
5455 ac_cv_use_pcx='wxUSE_PCX=no'
5456 fi
5457
5458else
5459
5460 LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
5461 if test "x$LINE" != x ; then
5462 eval "DEFAULT_$LINE"
5463 else
5464 no_cache=1
5465 fi
5466
5467 ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
5468
5469fi
5470
5471
5472 eval "$ac_cv_use_pcx"
5473 if test "$no_cache" != 1; then
5474 echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
5475 fi
5476
5477 if test "$wxUSE_PCX" = yes; then
5478 echo "$ac_t""yes" 1>&6
5479 else
5480 echo "$ac_t""no" 1>&6
5481 fi
5482
5483
5484 echo $ac_n "checking "for --enable-pnm"""... $ac_c" 1>&6
f7a11f8c 5485echo "configure:5486: checking "for --enable-pnm"" >&5
1c8515f9
KB
5486 no_cache=0
5487 # Check whether --enable-pnm or --disable-pnm was given.
5488if test "${enable_pnm+set}" = set; then
5489 enableval="$enable_pnm"
5490
5491 if test "$enableval" = yes; then
5492 ac_cv_use_pnm='wxUSE_PNM=yes'
5493 else
5494 ac_cv_use_pnm='wxUSE_PNM=no'
5495 fi
5496
5497else
5498
5499 LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
5500 if test "x$LINE" != x ; then
5501 eval "DEFAULT_$LINE"
5502 else
5503 no_cache=1
5504 fi
5505
5506 ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
5507
5508fi
5509
5510
5511 eval "$ac_cv_use_pnm"
5512 if test "$no_cache" != 1; then
5513 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
5514 fi
5515
5516 if test "$wxUSE_PNM" = yes; then
5517 echo "$ac_t""yes" 1>&6
5518 else
5519 echo "$ac_t""no" 1>&6
5520 fi
5521
5522
5523
a16d3c04
KB
5524 echo "saving argument cache $wx_arg_cache_file"
5525 mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
5526
5527
5528
5529echo $ac_n "checking for toolkit""... $ac_c" 1>&6
f7a11f8c
RR
5530echo "configure:5531: checking for toolkit" >&5
5531
5532if test "$wxUSE_GUI" = "yes"; then
a16d3c04
KB
5533
5534if test "$TOOLKIT_GIVEN" = 1; then
5535 for toolkit in `echo $ALL_TOOLKITS`; do
5536 var=wxUSE_$toolkit
5537 eval "value=\$${var}"
5538 eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`"
5539 done
5540else
5541 for toolkit in `echo $ALL_TOOLKITS`; do
5542 if test "$has_toolkit_in_cache" != 1; then
5543 var=DEFAULT_DEFAULT_wxUSE_$toolkit
5544 else
5545 var=DEFAULT_wxUSE_$toolkit
5546 fi
5547 eval "wxUSE_$toolkit=\$${var}"
5548 done
5549fi
5550
5551NUM_TOOLKITS=`expr ${wxUSE_GTK:-0} + ${wxUSE_MOTIF:-0} + ${wxUSE_WINE:-0} + ${wxUSE_MINGW:-0} + ${wxUSE_CYGWIN:-0}`
5552
5553case "$NUM_TOOLKITS" in
5554 1)
5555 ;;
5556 0)
5557 { echo "configure: error: Please specify a toolkit - cannot determine the default for ${host}" 1>&2; exit 1; }
5558 ;;
5559 *)
5560 { echo "configure: error: Please specify at most one toolkit (may be some are cached?)" 1>&2; exit 1; }
5561esac
5562
5563for toolkit in `echo $ALL_TOOLKITS`; do
5564 var=wxUSE_$toolkit
5565 eval "value=\$${var}"
5566 if test "x$value" != x; then
5567 cache_var=CACHE_$toolkit
5568 eval "cache=\$${cache_var}"
5569 if test "$cache" = 1; then
5570 echo "$var=$value" >> ${wx_arg_cache_file}
5571 fi
5572 if test "$value" = 1; then
5573 echo "$ac_t""`echo $toolkit | tr A-Z a-z`" 1>&6
5574 fi
5575 fi
5576done
5577
f7a11f8c
RR
5578else
5579 echo "$ac_t""base only" 1>&6
5580fi
5581
a16d3c04
KB
5582
5583cat > confcache <<\EOF
5584# This file is a shell script that caches the results of configure
5585# tests run on this system so they can be shared between configure
5586# scripts and configure runs. It is not useful on other systems.
5587# If it contains results you don't want to keep, you may remove or edit it.
5588#
5589# By default, configure uses ./config.cache as the cache file,
5590# creating it if it does not exist already. You can give configure
5591# the --cache-file=FILE option to use a different cache file; that is
5592# what configure does when it calls configure scripts in
5593# subdirectories, so they share the cache.
5594# Giving --cache-file=/dev/null disables caching, for debugging configure.
5595# config.status only pays attention to the cache file if you give it the
5596# --recheck option to rerun configure.
5597#
5598EOF
5599# The following way of writing the cache mishandles newlines in values,
5600# but we know of no workaround that is simple, portable, and efficient.
5601# So, don't put newlines in cache variables' values.
5602# Ultrix sh set writes to stderr and can't be redirected directly,
5603# and sets the high bit in the cache file unless we assign to the vars.
5604(set) 2>&1 |
fa3e4baf 5605 case `(ac_space=' '; set | grep ac_space) 2>&1` in
a16d3c04
KB
5606 *ac_space=\ *)
5607 # `set' does not quote correctly, so add quotes (double-quote substitution
5608 # turns \\\\ into \\, and sed turns \\ into \).
5609 sed -n \
5610 -e "s/'/'\\\\''/g" \
5611 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
5612 ;;
5613 *)
5614 # `set' quotes correctly as required by POSIX, so do not add quotes.
5615 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
5616 ;;
5617 esac >> confcache
5618if cmp -s $cache_file confcache; then
5619 :
5620else
5621 if test -w $cache_file; then
5622 echo "updating cache $cache_file"
5623 cat confcache > $cache_file
5624 else
5625 echo "not updating unwritable cache $cache_file"
5626 fi
5627fi
5628rm -f confcache
5629
5630
5631if eval "test $host != $build"; then
5632 if eval "test $host_alias != NONE"; then
1c8515f9
KB
5633 CC=$host_alias-gcc
5634 CXX=$host_alias-c++
a16d3c04
KB
5635 AR=$host_alias-ar
5636 RANLIB=$host_alias-ranlib
1c8515f9
KB
5637 DLLTOOL=$host_alias-dlltool
5638 LD=$host_alias-ld
a16d3c04
KB
5639 NM=$host_alias-nm
5640 STRIP=$host_alias-strip
5641 fi
5642fi
5643
5644# Extract the first word of "gcc", so it can be a program name with args.
5645set dummy gcc; ac_word=$2
5646echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
f7a11f8c 5647echo "configure:5648: checking for $ac_word" >&5
a16d3c04
KB
5648if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
5649 echo $ac_n "(cached) $ac_c" 1>&6
5650else
5651 if test -n "$CC"; then
5652 ac_cv_prog_CC="$CC" # Let the user override the test.
5653else
fa3e4baf
KB
5654 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5655 ac_dummy="$PATH"
5656 for ac_dir in $ac_dummy; do
a16d3c04
KB
5657 test -z "$ac_dir" && ac_dir=.
5658 if test -f $ac_dir/$ac_word; then
5659 ac_cv_prog_CC="gcc"
5660 break
5661 fi
5662 done
5663 IFS="$ac_save_ifs"
5664fi
5665fi
5666CC="$ac_cv_prog_CC"
5667if test -n "$CC"; then
5668 echo "$ac_t""$CC" 1>&6
5669else
5670 echo "$ac_t""no" 1>&6
5671fi
5672
5673if test -z "$CC"; then
5674 # Extract the first word of "cc", so it can be a program name with args.
5675set dummy cc; ac_word=$2
5676echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
f7a11f8c 5677echo "configure:5678: checking for $ac_word" >&5
a16d3c04
KB
5678if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
5679 echo $ac_n "(cached) $ac_c" 1>&6
5680else
5681 if test -n "$CC"; then
5682 ac_cv_prog_CC="$CC" # Let the user override the test.
5683else
fa3e4baf 5684 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
a16d3c04 5685 ac_prog_rejected=no
fa3e4baf
KB
5686 ac_dummy="$PATH"
5687 for ac_dir in $ac_dummy; do
a16d3c04
KB
5688 test -z "$ac_dir" && ac_dir=.
5689 if test -f $ac_dir/$ac_word; then
5690 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
5691 ac_prog_rejected=yes
5692 continue
5693 fi
5694 ac_cv_prog_CC="cc"
5695 break
5696 fi
5697 done
5698 IFS="$ac_save_ifs"
5699if test $ac_prog_rejected = yes; then
5700 # We found a bogon in the path, so make sure we never use it.
5701 set dummy $ac_cv_prog_CC
5702 shift
5703 if test $# -gt 0; then
5704 # We chose a different compiler from the bogus one.
5705 # However, it has the same basename, so the bogon will be chosen
5706 # first if we set CC to just the basename; use the full file name.
5707 shift
5708 set dummy "$ac_dir/$ac_word" "$@"
5709 shift
5710 ac_cv_prog_CC="$@"
5711 fi
5712fi
5713fi
5714fi
5715CC="$ac_cv_prog_CC"
5716if test -n "$CC"; then
5717 echo "$ac_t""$CC" 1>&6
5718else
5719 echo "$ac_t""no" 1>&6
5720fi
5721
fa3e4baf
KB
5722 if test -z "$CC"; then
5723 case "`uname -s`" in
5724 *win32* | *WIN32*)
5725 # Extract the first word of "cl", so it can be a program name with args.
5726set dummy cl; ac_word=$2
5727echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
f7a11f8c 5728echo "configure:5729: checking for $ac_word" >&5
fa3e4baf
KB
5729if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
5730 echo $ac_n "(cached) $ac_c" 1>&6
5731else
5732 if test -n "$CC"; then
5733 ac_cv_prog_CC="$CC" # Let the user override the test.
5734else
5735 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5736 ac_dummy="$PATH"
5737 for ac_dir in $ac_dummy; do
5738 test -z "$ac_dir" && ac_dir=.
5739 if test -f $ac_dir/$ac_word; then
5740 ac_cv_prog_CC="cl"
5741 break
5742 fi
5743 done
5744 IFS="$ac_save_ifs"
5745fi
5746fi
5747CC="$ac_cv_prog_CC"
5748if test -n "$CC"; then
5749 echo "$ac_t""$CC" 1>&6
5750else
5751 echo "$ac_t""no" 1>&6
5752fi
5753 ;;
5754 esac
5755 fi
a16d3c04
KB
5756 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
5757fi
5758
5759echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
f7a11f8c 5760echo "configure:5761: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
a16d3c04
KB
5761
5762ac_ext=c
5763# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5764ac_cpp='$CPP $CPPFLAGS'
5765ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
fa3e4baf 5766ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
a16d3c04
KB
5767cross_compiling=$ac_cv_prog_cc_cross
5768
fa3e4baf
KB
5769cat > conftest.$ac_ext << EOF
5770
f7a11f8c 5771#line 5772 "configure"
a16d3c04 5772#include "confdefs.h"
fa3e4baf 5773
a16d3c04
KB
5774main(){return(0);}
5775EOF
f7a11f8c 5776if { (eval echo configure:5777: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a16d3c04
KB
5777 ac_cv_prog_cc_works=yes
5778 # If we can't run a trivial program, we are probably using a cross compiler.
5779 if (./conftest; exit) 2>/dev/null; then
5780 ac_cv_prog_cc_cross=no
5781 else
5782 ac_cv_prog_cc_cross=yes
5783 fi
5784else
5785 echo "configure: failed program was:" >&5
5786 cat conftest.$ac_ext >&5
5787 ac_cv_prog_cc_works=no
5788fi
5789rm -fr conftest*
fa3e4baf
KB
5790ac_ext=c
5791# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5792ac_cpp='$CPP $CPPFLAGS'
5793ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5794ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5795cross_compiling=$ac_cv_prog_cc_cross
a16d3c04
KB
5796
5797echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
5798if test $ac_cv_prog_cc_works = no; then
5799 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
5800fi
5801echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
f7a11f8c 5802echo "configure:5803: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
a16d3c04
KB
5803echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
5804cross_compiling=$ac_cv_prog_cc_cross
5805
5806echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
f7a11f8c 5807echo "configure:5808: checking whether we are using GNU C" >&5
a16d3c04
KB
5808if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
5809 echo $ac_n "(cached) $ac_c" 1>&6
5810else
5811 cat > conftest.c <<EOF
5812#ifdef __GNUC__
5813 yes;
5814#endif
5815EOF
f7a11f8c 5816if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:5817: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
a16d3c04
KB
5817 ac_cv_prog_gcc=yes
5818else
5819 ac_cv_prog_gcc=no
5820fi
5821fi
5822
5823echo "$ac_t""$ac_cv_prog_gcc" 1>&6
5824
5825if test $ac_cv_prog_gcc = yes; then
5826 GCC=yes
fa3e4baf
KB
5827else
5828 GCC=
5829fi
5830
5831ac_test_CFLAGS="${CFLAGS+set}"
5832ac_save_CFLAGS="$CFLAGS"
5833CFLAGS=
5834echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
f7a11f8c 5835echo "configure:5836: checking whether ${CC-cc} accepts -g" >&5
a16d3c04
KB
5836if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
5837 echo $ac_n "(cached) $ac_c" 1>&6
5838else
5839 echo 'void f(){}' > conftest.c
5840if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
5841 ac_cv_prog_cc_g=yes
5842else
5843 ac_cv_prog_cc_g=no
5844fi
5845rm -f conftest*
5846
5847fi
5848
5849echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
fa3e4baf
KB
5850if test "$ac_test_CFLAGS" = set; then
5851 CFLAGS="$ac_save_CFLAGS"
5852elif test $ac_cv_prog_cc_g = yes; then
5853 if test "$GCC" = yes; then
a16d3c04
KB
5854 CFLAGS="-g -O2"
5855 else
fa3e4baf 5856 CFLAGS="-g"
a16d3c04 5857 fi
1c8515f9 5858else
fa3e4baf
KB
5859 if test "$GCC" = yes; then
5860 CFLAGS="-O2"
5861 else
5862 CFLAGS=
5863 fi
a16d3c04
KB
5864fi
5865
5866
5867CFLAGS=`echo "$CFLAGS" | sed 's/-g//g'`
5868
5869echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
f7a11f8c 5870echo "configure:5871: checking how to run the C preprocessor" >&5
a16d3c04
KB
5871# On Suns, sometimes $CPP names a directory.
5872if test -n "$CPP" && test -d "$CPP"; then
5873 CPP=
5874fi
5875if test -z "$CPP"; then
5876if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
5877 echo $ac_n "(cached) $ac_c" 1>&6
5878else
5879 # This must be in double quotes, not single quotes, because CPP may get
5880 # substituted into the Makefile and "${CC-cc}" will confuse make.
5881 CPP="${CC-cc} -E"
5882 # On the NeXT, cc -E runs the code through the compiler's parser,
5883 # not just through cpp.
5884 cat > conftest.$ac_ext <<EOF
f7a11f8c 5885#line 5886 "configure"
a16d3c04
KB
5886#include "confdefs.h"
5887#include <assert.h>
5888Syntax Error
5889EOF
5890ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
f7a11f8c 5891{ (eval echo configure:5892: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
fa3e4baf 5892ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
a16d3c04
KB
5893if test -z "$ac_err"; then
5894 :
5895else
5896 echo "$ac_err" >&5
5897 echo "configure: failed program was:" >&5
5898 cat conftest.$ac_ext >&5
5899 rm -rf conftest*
5900 CPP="${CC-cc} -E -traditional-cpp"
5901 cat > conftest.$ac_ext <<EOF
f7a11f8c 5902#line 5903 "configure"
fa3e4baf
KB
5903#include "confdefs.h"
5904#include <assert.h>
5905Syntax Error
5906EOF
5907ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
f7a11f8c 5908{ (eval echo configure:5909: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
fa3e4baf
KB
5909ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5910if test -z "$ac_err"; then
5911 :
5912else
5913 echo "$ac_err" >&5
5914 echo "configure: failed program was:" >&5
5915 cat conftest.$ac_ext >&5
5916 rm -rf conftest*
5917 CPP="${CC-cc} -nologo -E"
5918 cat > conftest.$ac_ext <<EOF
f7a11f8c 5919#line 5920 "configure"
a16d3c04
KB
5920#include "confdefs.h"
5921#include <assert.h>
5922Syntax Error
5923EOF
5924ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
f7a11f8c 5925{ (eval echo configure:5926: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
fa3e4baf 5926ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
a16d3c04
KB
5927if test -z "$ac_err"; then
5928 :
5929else
5930 echo "$ac_err" >&5
5931 echo "configure: failed program was:" >&5
5932 cat conftest.$ac_ext >&5
5933 rm -rf conftest*
5934 CPP=/lib/cpp
5935fi
5936rm -f conftest*
5937fi
fa3e4baf
KB
5938rm -f conftest*
5939fi
a16d3c04
KB
5940rm -f conftest*
5941 ac_cv_prog_CPP="$CPP"
5942fi
5943 CPP="$ac_cv_prog_CPP"
5944else
5945 ac_cv_prog_CPP="$CPP"
5946fi
5947echo "$ac_t""$CPP" 1>&6
5948
5949
5950if test $ac_cv_prog_gcc = yes; then
5951 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
f7a11f8c 5952echo "configure:5953: checking whether ${CC-cc} needs -traditional" >&5
a16d3c04
KB
5953if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
5954 echo $ac_n "(cached) $ac_c" 1>&6
5955else
5956 ac_pattern="Autoconf.*'x'"
5957 cat > conftest.$ac_ext <<EOF
f7a11f8c 5958#line 5959 "configure"
a16d3c04
KB
5959#include "confdefs.h"
5960#include <sgtty.h>
5961Autoconf TIOCGETP
5962EOF
5963if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5964 egrep "$ac_pattern" >/dev/null 2>&1; then
5965 rm -rf conftest*
5966 ac_cv_prog_gcc_traditional=yes
5967else
5968 rm -rf conftest*
5969 ac_cv_prog_gcc_traditional=no
5970fi
5971rm -f conftest*
5972
5973
5974 if test $ac_cv_prog_gcc_traditional = no; then
5975 cat > conftest.$ac_ext <<EOF
f7a11f8c 5976#line 5977 "configure"
a16d3c04
KB
5977#include "confdefs.h"
5978#include <termio.h>
5979Autoconf TCGETA
5980EOF
5981if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5982 egrep "$ac_pattern" >/dev/null 2>&1; then
5983 rm -rf conftest*
5984 ac_cv_prog_gcc_traditional=yes
5985fi
5986rm -f conftest*
5987
5988 fi
5989fi
5990
5991echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
5992 if test $ac_cv_prog_gcc_traditional = yes; then
5993 CC="$CC -traditional"
5994 fi
5995fi
5996
5997
5998
5999ac_ext=C
6000# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6001ac_cpp='$CXXCPP $CPPFLAGS'
6002ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
fa3e4baf 6003ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
a16d3c04
KB
6004cross_compiling=$ac_cv_prog_cxx_cross
6005
6006
fa3e4baf 6007for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
a16d3c04
KB
6008do
6009# Extract the first word of "$ac_prog", so it can be a program name with args.
6010set dummy $ac_prog; ac_word=$2
6011echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
f7a11f8c 6012echo "configure:6013: checking for $ac_word" >&5
a16d3c04
KB
6013if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
6014 echo $ac_n "(cached) $ac_c" 1>&6
6015else
6016 if test -n "$CXX"; then
6017 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6018else
fa3e4baf
KB
6019 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6020 ac_dummy="$PATH"
6021 for ac_dir in $ac_dummy; do
a16d3c04
KB
6022 test -z "$ac_dir" && ac_dir=.
6023 if test -f $ac_dir/$ac_word; then
6024 ac_cv_prog_CXX="$ac_prog"
6025 break
6026 fi
6027 done
6028 IFS="$ac_save_ifs"
6029fi
6030fi
6031CXX="$ac_cv_prog_CXX"
6032if test -n "$CXX"; then
6033 echo "$ac_t""$CXX" 1>&6
6034else
6035 echo "$ac_t""no" 1>&6
6036fi
6037
6038test -n "$CXX" && break
6039done
6040test -n "$CXX" || CXX="gcc"
6041
6042
6043echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
f7a11f8c 6044echo "configure:6045: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
a16d3c04
KB
6045
6046ac_ext=C
6047# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6048ac_cpp='$CXXCPP $CPPFLAGS'
6049ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
fa3e4baf 6050ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
a16d3c04
KB
6051cross_compiling=$ac_cv_prog_cxx_cross
6052
fa3e4baf
KB
6053cat > conftest.$ac_ext << EOF
6054
f7a11f8c 6055#line 6056 "configure"
a16d3c04 6056#include "confdefs.h"
fa3e4baf
KB
6057
6058int main(){return(0);}
a16d3c04 6059EOF
f7a11f8c 6060if { (eval echo configure:6061: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a16d3c04
KB
6061 ac_cv_prog_cxx_works=yes
6062 # If we can't run a trivial program, we are probably using a cross compiler.
6063 if (./conftest; exit) 2>/dev/null; then
6064 ac_cv_prog_cxx_cross=no
6065 else
6066 ac_cv_prog_cxx_cross=yes
6067 fi
6068else
6069 echo "configure: failed program was:" >&5
6070 cat conftest.$ac_ext >&5
6071 ac_cv_prog_cxx_works=no
6072fi
6073rm -fr conftest*
fa3e4baf
KB
6074ac_ext=C
6075# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6076ac_cpp='$CXXCPP $CPPFLAGS'
6077ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6078ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6079cross_compiling=$ac_cv_prog_cxx_cross
a16d3c04
KB
6080
6081echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
6082if test $ac_cv_prog_cxx_works = no; then
6083 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
6084fi
6085echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
f7a11f8c 6086echo "configure:6087: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
a16d3c04
KB
6087echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
6088cross_compiling=$ac_cv_prog_cxx_cross
6089
6090echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
f7a11f8c 6091echo "configure:6092: checking whether we are using GNU C++" >&5
a16d3c04
KB
6092if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
6093 echo $ac_n "(cached) $ac_c" 1>&6
6094else
6095 cat > conftest.C <<EOF
6096#ifdef __GNUC__
6097 yes;
6098#endif
6099EOF
f7a11f8c 6100if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:6101: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
a16d3c04
KB
6101 ac_cv_prog_gxx=yes
6102else
6103 ac_cv_prog_gxx=no
6104fi
6105fi
6106
6107echo "$ac_t""$ac_cv_prog_gxx" 1>&6
6108
6109if test $ac_cv_prog_gxx = yes; then
6110 GXX=yes
fa3e4baf
KB
6111else
6112 GXX=
6113fi
6114
6115ac_test_CXXFLAGS="${CXXFLAGS+set}"
6116ac_save_CXXFLAGS="$CXXFLAGS"
6117CXXFLAGS=
6118echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
f7a11f8c 6119echo "configure:6120: checking whether ${CXX-g++} accepts -g" >&5
a16d3c04
KB
6120if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
6121 echo $ac_n "(cached) $ac_c" 1>&6
6122else
6123 echo 'void f(){}' > conftest.cc
6124if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
6125 ac_cv_prog_cxx_g=yes
6126else
6127 ac_cv_prog_cxx_g=no
6128fi
6129rm -f conftest*
6130
6131fi
6132
6133echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
fa3e4baf
KB
6134if test "$ac_test_CXXFLAGS" = set; then
6135 CXXFLAGS="$ac_save_CXXFLAGS"
6136elif test $ac_cv_prog_cxx_g = yes; then
6137 if test "$GXX" = yes; then
a16d3c04
KB
6138 CXXFLAGS="-g -O2"
6139 else
fa3e4baf 6140 CXXFLAGS="-g"
a16d3c04 6141 fi
1c8515f9 6142else
fa3e4baf
KB
6143 if test "$GXX" = yes; then
6144 CXXFLAGS="-O2"
6145 else
6146 CXXFLAGS=
6147 fi
a16d3c04
KB
6148fi
6149
6150
6151echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
f7a11f8c 6152echo "configure:6153: checking how to run the C++ preprocessor" >&5
a16d3c04
KB
6153if test -z "$CXXCPP"; then
6154if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
6155 echo $ac_n "(cached) $ac_c" 1>&6
6156else
6157 ac_ext=C
6158# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6159ac_cpp='$CXXCPP $CPPFLAGS'
6160ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
fa3e4baf 6161ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
a16d3c04
KB
6162cross_compiling=$ac_cv_prog_cxx_cross
6163 CXXCPP="${CXX-g++} -E"
6164 cat > conftest.$ac_ext <<EOF
f7a11f8c 6165#line 6166 "configure"
a16d3c04
KB
6166#include "confdefs.h"
6167#include <stdlib.h>
6168EOF
6169ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
f7a11f8c 6170{ (eval echo configure:6171: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
fa3e4baf 6171ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
a16d3c04
KB
6172if test -z "$ac_err"; then
6173 :
6174else
6175 echo "$ac_err" >&5
6176 echo "configure: failed program was:" >&5
6177 cat conftest.$ac_ext >&5
6178 rm -rf conftest*
6179 CXXCPP=/lib/cpp
6180fi
6181rm -f conftest*
6182 ac_cv_prog_CXXCPP="$CXXCPP"
fa3e4baf
KB
6183ac_ext=C
6184# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6185ac_cpp='$CXXCPP $CPPFLAGS'
6186ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6187ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6188cross_compiling=$ac_cv_prog_cxx_cross
a16d3c04
KB
6189fi
6190fi
6191CXXCPP="$ac_cv_prog_CXXCPP"
6192echo "$ac_t""$CXXCPP" 1>&6
6193
6194
6195CXXFLAGS=`echo "$CXXFLAGS" | sed 's/-g//g'`
6196
6197ac_ext=c
6198# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6199ac_cpp='$CPP $CPPFLAGS'
6200ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
fa3e4baf 6201ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
a16d3c04
KB
6202cross_compiling=$ac_cv_prog_cc_cross
6203
6204
6205# Extract the first word of "ranlib", so it can be a program name with args.
6206set dummy ranlib; ac_word=$2
6207echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
f7a11f8c 6208echo "configure:6209: checking for $ac_word" >&5
a16d3c04
KB
6209if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
6210 echo $ac_n "(cached) $ac_c" 1>&6
6211else
6212 if test -n "$RANLIB"; then
6213 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6214else
fa3e4baf
KB
6215 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6216 ac_dummy="$PATH"
6217 for ac_dir in $ac_dummy; do
a16d3c04
KB
6218 test -z "$ac_dir" && ac_dir=.
6219 if test -f $ac_dir/$ac_word; then
6220 ac_cv_prog_RANLIB="ranlib"
6221 break
6222 fi
6223 done
6224 IFS="$ac_save_ifs"
6225 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
6226fi
6227fi
6228RANLIB="$ac_cv_prog_RANLIB"
6229if test -n "$RANLIB"; then
6230 echo "$ac_t""$RANLIB" 1>&6
6231else
6232 echo "$ac_t""no" 1>&6
6233fi
6234
6235
6236# Extract the first word of "ar", so it can be a program name with args.
6237set dummy ar; ac_word=$2
6238echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
f7a11f8c 6239echo "configure:6240: checking for $ac_word" >&5
a16d3c04
KB
6240if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
6241 echo $ac_n "(cached) $ac_c" 1>&6
6242else
6243 if test -n "$AR"; then
6244 ac_cv_prog_AR="$AR" # Let the user override the test.
6245else
fa3e4baf
KB
6246 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6247 ac_dummy="$PATH"
6248 for ac_dir in $ac_dummy; do
a16d3c04
KB
6249 test -z "$ac_dir" && ac_dir=.
6250 if test -f $ac_dir/$ac_word; then
6251 ac_cv_prog_AR="ar"
6252 break
6253 fi
6254 done
6255 IFS="$ac_save_ifs"
6256 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
6257fi
6258fi
6259AR="$ac_cv_prog_AR"
6260if test -n "$AR"; then
6261 echo "$ac_t""$AR" 1>&6
6262else
6263 echo "$ac_t""no" 1>&6
6264fi
6265
6266
6267# Find a good install program. We prefer a C program (faster),
6268# so one script is as good as another. But avoid the broken or
6269# incompatible versions:
6270# SysV /etc/install, /usr/sbin/install
6271# SunOS /usr/etc/install
6272# IRIX /sbin/install
6273# AIX /bin/install
fa3e4baf 6274# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
a16d3c04
KB
6275# AFS /usr/afsws/bin/install, which mishandles nonexistent args
6276# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6277# ./install, which can be erroneously created by make from ./install.sh.
6278echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
f7a11f8c 6279echo "configure:6280: checking for a BSD compatible install" >&5
a16d3c04
KB
6280if test -z "$INSTALL"; then
6281if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
6282 echo $ac_n "(cached) $ac_c" 1>&6
6283else
fa3e4baf 6284 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
a16d3c04
KB
6285 for ac_dir in $PATH; do
6286 # Account for people who put trailing slashes in PATH elements.
6287 case "$ac_dir/" in
6288 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
6289 *)
6290 # OSF1 and SCO ODT 3.0 have their own names for install.
fa3e4baf
KB
6291 # Don't use installbsd from OSF since it installs stuff as root
6292 # by default.
6293 for ac_prog in ginstall scoinst install; do
a16d3c04
KB
6294 if test -f $ac_dir/$ac_prog; then
6295 if test $ac_prog = install &&
6296 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
6297 # AIX install. It has an incompatible calling convention.
6298 :
6299 else
6300 ac_cv_path_install="$ac_dir/$ac_prog -c"
6301 break 2
6302 fi
6303 fi
6304 done
6305 ;;
6306 esac
6307 done
6308 IFS="$ac_save_IFS"
6309
6310fi
6311 if test "${ac_cv_path_install+set}" = set; then
6312 INSTALL="$ac_cv_path_install"
6313 else
6314 # As a last resort, use the slow shell script. We don't cache a
6315 # path for INSTALL within a source directory, because that will
6316 # break other packages using the cache if that directory is
6317 # removed, or if the path is relative.
6318 INSTALL="$ac_install_sh"
6319 fi
6320fi
6321echo "$ac_t""$INSTALL" 1>&6
6322
6323# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6324# It thinks the first close brace ends the variable substitution.
6325test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6326
fa3e4baf
KB
6327test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
6328
a16d3c04
KB
6329test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6330
6331
6332# Extract the first word of "strip", so it can be a program name with args.
6333set dummy strip; ac_word=$2
6334echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
f7a11f8c 6335echo "configure:6336: checking for $ac_word" >&5
a16d3c04
KB
6336if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
6337 echo $ac_n "(cached) $ac_c" 1>&6
6338else
6339 if test -n "$STRIP"; then
6340 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6341else
fa3e4baf
KB
6342 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6343 ac_dummy="$PATH"
6344 for ac_dir in $ac_dummy; do
a16d3c04
KB
6345 test -z "$ac_dir" && ac_dir=.
6346 if test -f $ac_dir/$ac_word; then
6347 ac_cv_prog_STRIP="strip"
6348 break
6349 fi
6350 done
6351 IFS="$ac_save_ifs"
6352 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true"
6353fi
6354fi
6355STRIP="$ac_cv_prog_STRIP"
6356if test -n "$STRIP"; then
6357 echo "$ac_t""$STRIP" 1>&6
6358else
6359 echo "$ac_t""no" 1>&6
6360fi
6361
6362
6363echo $ac_n "checking "make for VPATH support"""... $ac_c" 1>&6
f7a11f8c 6364echo "configure:6365: checking "make for VPATH support"" >&5
a16d3c04
KB
6365cat - << EOF > confMake
6366check : file
6367 cp \$? \$@
6368 cp \$? final_file
6369EOF
6370
6371if test ! -d sub ; then
6372 mkdir sub
6373fi
6374echo dummy > sub/file
6375${MAKE-make} -f confMake VPATH=sub 2> config.log > /dev/null
6376RESULT=$?
6377rm -f sub/file check final_file confMake
6378rmdir sub
6379if test "$RESULT" = 0; then
6380 echo "$ac_t""yes" 1>&6
6381else
6382 echo "$ac_t""no" 1>&6
6383 { echo "configure: error: You need a make-utility that is able to use the variable
6384VPATH correctly.
6385If your version of make does not support VPATH correctly" 1>&2; exit 1; }
6386fi
6387
6388for ac_prog in 'bison -y' byacc
6389do
6390# Extract the first word of "$ac_prog", so it can be a program name with args.
6391set dummy $ac_prog; ac_word=$2
6392echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
f7a11f8c 6393echo "configure:6394: checking for $ac_word" >&5
a16d3c04
KB
6394if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
6395 echo $ac_n "(cached) $ac_c" 1>&6
6396else
6397 if test -n "$YACC"; then
6398 ac_cv_prog_YACC="$YACC" # Let the user override the test.
6399else
fa3e4baf
KB
6400 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6401 ac_dummy="$PATH"
6402 for ac_dir in $ac_dummy; do
a16d3c04
KB
6403 test -z "$ac_dir" && ac_dir=.
6404 if test -f $ac_dir/$ac_word; then
6405 ac_cv_prog_YACC="$ac_prog"
6406 break
6407 fi
6408 done
6409 IFS="$ac_save_ifs"
6410fi
6411fi
6412YACC="$ac_cv_prog_YACC"
6413if test -n "$YACC"; then
6414 echo "$ac_t""$YACC" 1>&6
6415else
6416 echo "$ac_t""no" 1>&6
6417fi
6418
6419test -n "$YACC" && break
6420done
6421test -n "$YACC" || YACC="yacc"
6422
6423
6424# Extract the first word of "flex", so it can be a program name with args.
6425set dummy flex; ac_word=$2
6426echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
f7a11f8c 6427echo "configure:6428: checking for $ac_word" >&5
a16d3c04
KB
6428if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
6429 echo $ac_n "(cached) $ac_c" 1>&6
6430else
6431 if test -n "$LEX"; then
6432 ac_cv_prog_LEX="$LEX" # Let the user override the test.
6433else
fa3e4baf
KB
6434 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6435 ac_dummy="$PATH"
6436 for ac_dir in $ac_dummy; do
a16d3c04
KB
6437 test -z "$ac_dir" && ac_dir=.
6438 if test -f $ac_dir/$ac_word; then
6439 ac_cv_prog_LEX="flex"
6440 break
6441 fi
6442 done
6443 IFS="$ac_save_ifs"
6444 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
6445fi
6446fi
6447LEX="$ac_cv_prog_LEX"
6448if test -n "$LEX"; then
6449 echo "$ac_t""$LEX" 1>&6
6450else
6451 echo "$ac_t""no" 1>&6
6452fi
6453
6454if test -z "$LEXLIB"
6455then
6456 case "$LEX" in
6457 flex*) ac_lib=fl ;;
6458 *) ac_lib=l ;;
6459 esac
6460 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
f7a11f8c 6461echo "configure:6462: checking for yywrap in -l$ac_lib" >&5
a16d3c04
KB
6462ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
6463if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6464 echo $ac_n "(cached) $ac_c" 1>&6
6465else
6466 ac_save_LIBS="$LIBS"
6467LIBS="-l$ac_lib $LIBS"
6468cat > conftest.$ac_ext <<EOF
f7a11f8c 6469#line 6470 "configure"
a16d3c04
KB
6470#include "confdefs.h"
6471/* Override any gcc2 internal prototype to avoid an error. */
6472/* We use char because int might match the return type of a gcc2
6473 builtin and then its argument prototype would still apply. */
6474char yywrap();
6475
6476int main() {
6477yywrap()
6478; return 0; }
6479EOF
f7a11f8c 6480if { (eval echo configure:6481: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a16d3c04
KB
6481 rm -rf conftest*
6482 eval "ac_cv_lib_$ac_lib_var=yes"
6483else
6484 echo "configure: failed program was:" >&5
6485 cat conftest.$ac_ext >&5
6486 rm -rf conftest*
6487 eval "ac_cv_lib_$ac_lib_var=no"
6488fi
6489rm -f conftest*
6490LIBS="$ac_save_LIBS"
6491
6492fi
6493if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6494 echo "$ac_t""yes" 1>&6
6495 LEXLIB="-l$ac_lib"
6496else
6497 echo "$ac_t""no" 1>&6
6498fi
6499
6500fi
6501
6502
6503echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
f7a11f8c 6504echo "configure:6505: checking whether ln -s works" >&5
a16d3c04
KB
6505if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
6506 echo $ac_n "(cached) $ac_c" 1>&6
6507else
6508 rm -f conftestdata
6509if ln -s X conftestdata 2>/dev/null
6510then
6511 rm -f conftestdata
6512 ac_cv_prog_LN_S="ln -s"
6513else
6514 ac_cv_prog_LN_S=ln
6515fi
6516fi
6517LN_S="$ac_cv_prog_LN_S"
6518if test "$ac_cv_prog_LN_S" = "ln -s"; then
6519 echo "$ac_t""yes" 1>&6
6520else
6521 echo "$ac_t""no" 1>&6
6522fi
6523
6524
6525
6526SEARCH_INCLUDE="\
6527 /usr/Motif-1.2/include \
6528 /usr/Motif-2.1/include \
6529 \
6530 /usr/include/Motif1.2 \
6531 /opt/xpm/include/X11 \
6532 /opt/GBxpm/include/ \
6533 /opt/GBxpm/X11/include/ \
6534 \
6535 /usr/Motif1.2/include \
6536 /usr/dt/include \
6537 /usr/include/Xm \
6538 \
6539 /usr/X11R6/include \
6540 /usr/X11R5/include \
6541 /usr/X11R4/include \
6542 \
6543 /usr/X11R6/lib \
6544 /usr/X11R5/lib \
6545 /usr/X11R4/lib \
6546 \
6547 /usr/include/X11R6 \
6548 /usr/include/X11R5 \
6549 /usr/include/X11R4 \
6550 \
6551 /usr/local/X11R6/include \
6552 /usr/local/X11R5/include \
6553 /usr/local/X11R4/include \
6554 \
6555 /usr/local/include/X11R6 \
6556 /usr/local/include/X11R5 \
6557 /usr/local/include/X11R4 \
6558 \
6559 /usr/X11/include \
6560 /usr/include/X11 \
6561 /usr/local/X11/include \
6562 /usr/local/include/X11 \
6563 \
6564 /usr/X386/include \
6565 /usr/x386/include \
6566 /usr/XFree86/include/X11 \
6567 \
6568 /usr/include \
6569 /usr/local/include \
6570 \
6571 /usr/include/gtk \
6572 /usr/local/include/gtk \
6573 /usr/include/glib \
6574 /usr/local/include/glib \
6575 \
6576 /usr/include/qt \
6577 /usr/local/include/qt \
6578 \
6579 /usr/include/windows \
6580 /usr/include/wine \
6581 /usr/local/include/wine \
6582 \
6583 /usr/unsupported/include \
6584 /usr/athena/include \
6585 /usr/local/x11r5/include \
6586 /usr/lpp/Xamples/include \
6587 \
6588 /usr/openwin/include \
6589 /usr/openwin/share/include \
6590 "
6591
6592SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s/include/lib/g` "
6593
6594
6595cat > confcache <<\EOF
6596# This file is a shell script that caches the results of configure
6597# tests run on this system so they can be shared between configure
6598# scripts and configure runs. It is not useful on other systems.
6599# If it contains results you don't want to keep, you may remove or edit it.
6600#
6601# By default, configure uses ./config.cache as the cache file,
6602# creating it if it does not exist already. You can give configure
6603# the --cache-file=FILE option to use a different cache file; that is
6604# what configure does when it calls configure scripts in
6605# subdirectories, so they share the cache.
6606# Giving --cache-file=/dev/null disables caching, for debugging configure.
6607# config.status only pays attention to the cache file if you give it the
6608# --recheck option to rerun configure.
6609#
6610EOF
6611# The following way of writing the cache mishandles newlines in values,
6612# but we know of no workaround that is simple, portable, and efficient.
6613# So, don't put newlines in cache variables' values.
6614# Ultrix sh set writes to stderr and can't be redirected directly,
6615# and sets the high bit in the cache file unless we assign to the vars.
6616(set) 2>&1 |
fa3e4baf 6617 case `(ac_space=' '; set | grep ac_space) 2>&1` in
a16d3c04
KB
6618 *ac_space=\ *)
6619 # `set' does not quote correctly, so add quotes (double-quote substitution
6620 # turns \\\\ into \\, and sed turns \\ into \).
6621 sed -n \
6622 -e "s/'/'\\\\''/g" \
6623 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
6624 ;;
6625 *)
6626 # `set' quotes correctly as required by POSIX, so do not add quotes.
6627 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
6628 ;;
6629 esac >> confcache
6630if cmp -s $cache_file confcache; then
6631 :
6632else
6633 if test -w $cache_file; then
6634 echo "updating cache $cache_file"
6635 cat confcache > $cache_file
6636 else
6637 echo "not updating unwritable cache $cache_file"
6638 fi
6639fi
6640rm -f confcache
6641
6642
6643
f7a11f8c
RR
6644if test "$wxUSE_GUI" = "yes"; then
6645
a16d3c04
KB
6646TOOLKIT=
6647TOOLKIT_INCLUDE=
6648
6649GUIOBJS=
6650COMMONOBJS=
6651GENERICOBJS=
6652
6653GUI_TK_LIBRARY=
6654GUI_TK_LINK=
6655
6656WXGTK12=
6657
6658WXWINE=
6659
1c8515f9 6660PROGRAM_EXT=
a16d3c04
KB
6661
6662if test "$wxUSE_CYGWIN" = 1 || test "$wxUSE_MINGW" = 1 ; then
6663 if test "$cross_compiling" = "yes" ; then
f7a11f8c 6664 echo "configure: warning: Cross compiling --- skipping windows.h check" 1>&2
a16d3c04 6665 else
f7a11f8c
RR
6666 echo $ac_n "checking for Windows headers""... $ac_c" 1>&6
6667echo "configure:6668: checking for Windows headers" >&5
6668
a16d3c04
KB
6669ac_find_includes=
6670for ac_dir in $SEARCH_INCLUDE;
6671 do
6672 if test -f "$ac_dir/windows.h"; then
6673 ac_find_includes=$ac_dir
6674 break
6675 fi
6676 done
6677
f7a11f8c 6678 if test "$ac_find_includes" != "" ; then
a16d3c04
KB
6679 echo "$ac_t""found $ac_find_includes" 1>&6
6680 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE -I$ac_find_includes"
f7a11f8c 6681 else
a16d3c04
KB
6682 echo "$ac_t""no" 1>&6
6683 { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; }
1c8515f9 6684 fi
a16d3c04 6685 fi
1c8515f9 6686
a16d3c04
KB
6687 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS msw"
6688 LIBS="$LIBS -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lctl3d32 -lcrtdll -ladvapi32 -lwsock32"
6689
6690 TOOLKIT=MSW
1c8515f9 6691
f7a11f8c
RR
6692 GUIOBJS="\$(MSW_GUIOBJS)"
6693 GUIHEADERS="\$(MSW_HEADERS)"
6694 COMMONOBJS="\$(MSW_COMMONOBJS)"
6695 GENERICOBJS="\$(MSW_GENERICOBJS)"
a16d3c04
KB
6696 UNIXOBJS=
6697 GUIDIST=MSW_DIST
6698 PROGRAM_EXT=.exe
6699fi
6700
6701if test "$wxUSE_GTK" = 1; then
6702
6703 if test x$gtk_config_exec_prefix != x ; then
6704 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
6705 if test x${GTK_CONFIG+set} != xset ; then
6706 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
6707 fi
6708 fi
6709 if test x$gtk_config_prefix != x ; then
6710 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
6711 if test x${GTK_CONFIG+set} != xset ; then
6712 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
6713 fi
6714 fi
6715
6716 # Extract the first word of "gtk-config", so it can be a program name with args.
6717set dummy gtk-config; ac_word=$2
6718echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
f7a11f8c 6719echo "configure:6720: checking for $ac_word" >&5
a16d3c04
KB
6720if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
6721 echo $ac_n "(cached) $ac_c" 1>&6
6722else
6723 case "$GTK_CONFIG" in
6724 /*)
6725 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
6726 ;;
fa3e4baf
KB
6727 ?:/*)
6728 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
6729 ;;
a16d3c04 6730 *)
fa3e4baf
KB
6731 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6732 ac_dummy="$PATH"
6733 for ac_dir in $ac_dummy; do
a16d3c04
KB
6734 test -z "$ac_dir" && ac_dir=.
6735 if test -f $ac_dir/$ac_word; then
6736 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
6737 break
6738 fi
6739 done
6740 IFS="$ac_save_ifs"
6741 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
6742 ;;
6743esac
6744fi
6745GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
6746if test -n "$GTK_CONFIG"; then
6747 echo "$ac_t""$GTK_CONFIG" 1>&6
6748else
6749 echo "$ac_t""no" 1>&6
6750fi
6751
6752 min_gtk_version=1.2.0
6753 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
f7a11f8c 6754echo "configure:6755: checking for GTK - version >= $min_gtk_version" >&5
a16d3c04
KB
6755 no_gtk=""
6756 if test "$GTK_CONFIG" != "no" ; then
6757 GTK_CFLAGS=`$GTK_CONFIG --cflags`
6758 GTK_LIBS=`$GTK_CONFIG --libs`
6759 ac_save_CFLAGS="$CFLAGS"
6760 ac_save_LIBS="$LIBS"
6761 CFLAGS="$CFLAGS $GTK_CFLAGS"
6762 LIBS="$LIBS $GTK_LIBS"
6763 if test "$cross_compiling" = yes; then
6764 echo $ac_n "cross compiling; assumed OK... $ac_c"
6765else
6766 cat > conftest.$ac_ext <<EOF
f7a11f8c 6767#line 6768 "configure"
a16d3c04
KB
6768#include "confdefs.h"
6769
6770#include <gtk/gtk.h>
6771#include <stdio.h>
6772
6773int
6774main ()
6775{
6776 int major, minor, micro;
6777
6778 if (sscanf("$min_gtk_version", "%d.%d.%d", &major, &minor, &micro) != 3) {
6779 printf("%s, bad version string\n", "$min_gtk_version");
6780 exit(1);
6781 }
6782
6783 if (gtk_minor_version == 1) return FALSE;
6784
6785 return !((gtk_major_version > major) ||
f7a11f8c
RR
6786 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
6787 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)));
a16d3c04
KB
6788}
6789
6790EOF
f7a11f8c 6791if { (eval echo configure:6792: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
a16d3c04
KB
6792then
6793 :
6794else
6795 echo "configure: failed program was:" >&5
6796 cat conftest.$ac_ext >&5
6797 rm -fr conftest*
6798 no_gtk=yes
6799fi
6800rm -fr conftest*
6801fi
6802
6803 CFLAGS="$ac_save_CFLAGS"
6804 LIBS="$ac_save_LIBS"
6805 else
6806 no_gtk=yes
6807 fi
6808 if test "x$no_gtk" = x ; then
6809 echo "$ac_t""yes" 1>&6
6810 WXGTK12=1
6811 else
6812 echo "$ac_t""no" 1>&6
6813 GTK_CFLAGS=""
6814 GTK_LIBS=""
6815 :
6816 fi
6817
6818
6819
6820 if test "$WXGTK12" != 1; then
6821
6822 if test x$gtk_config_exec_prefix != x ; then
6823 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
6824 if test x${GTK_CONFIG+set} != xset ; then
6825 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
6826 fi
6827 fi
6828 if test x$gtk_config_prefix != x ; then
6829 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
6830 if test x${GTK_CONFIG+set} != xset ; then
6831 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
6832 fi
6833 fi
6834
6835 # Extract the first word of "gtk-config", so it can be a program name with args.
6836set dummy gtk-config; ac_word=$2
6837echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
f7a11f8c 6838echo "configure:6839: checking for $ac_word" >&5
a16d3c04
KB
6839if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
6840 echo $ac_n "(cached) $ac_c" 1>&6
6841else
6842 case "$GTK_CONFIG" in
6843 /*)
6844 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
6845 ;;
fa3e4baf
KB
6846 ?:/*)
6847 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
6848 ;;
a16d3c04 6849 *)
fa3e4baf
KB
6850 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6851 ac_dummy="$PATH"
6852 for ac_dir in $ac_dummy; do
a16d3c04
KB
6853 test -z "$ac_dir" && ac_dir=.
6854 if test -f $ac_dir/$ac_word; then
6855 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
6856 break
6857 fi
6858 done
6859 IFS="$ac_save_ifs"
6860 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
6861 ;;
6862esac
6863fi
6864GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
6865if test -n "$GTK_CONFIG"; then
6866 echo "$ac_t""$GTK_CONFIG" 1>&6
6867else
6868 echo "$ac_t""no" 1>&6
6869fi
6870
6871 min_gtk_version=1.0.0
6872 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
f7a11f8c 6873echo "configure:6874: checking for GTK - version >= $min_gtk_version" >&5
a16d3c04
KB
6874 no_gtk=""
6875 if test "$GTK_CONFIG" != "no" ; then
6876 GTK_CFLAGS=`$GTK_CONFIG --cflags`
6877 GTK_LIBS=`$GTK_CONFIG --libs`
6878 ac_save_CFLAGS="$CFLAGS"
6879 ac_save_LIBS="$LIBS"
6880 CFLAGS="$CFLAGS $GTK_CFLAGS"
6881 LIBS="$LIBS $GTK_LIBS"
6882 if test "$cross_compiling" = yes; then
6883 echo $ac_n "cross compiling; assumed OK... $ac_c"
6884else
6885 cat > conftest.$ac_ext <<EOF
f7a11f8c 6886#line 6887 "configure"
a16d3c04
KB
6887#include "confdefs.h"
6888
6889#include <gtk/gtk.h>
6890#include <stdio.h>
6891
6892int
6893main ()
6894{
6895 int major, minor, micro;
6896
6897 if (sscanf("$min_gtk_version", "%d.%d.%d", &major, &minor, &micro) != 3) {
6898 printf("%s, bad version string\n", "$min_gtk_version");
6899 exit(1);
6900 }
6901
6902 if (gtk_minor_version == 1) return FALSE;
6903
6904 return !((gtk_major_version > major) ||
f7a11f8c
RR
6905 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
6906 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)));
a16d3c04
KB
6907}
6908
6909EOF
f7a11f8c 6910if { (eval echo configure:6911: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
a16d3c04
KB
6911then
6912 :
6913else
6914 echo "configure: failed program was:" >&5
6915 cat conftest.$ac_ext >&5
6916 rm -fr conftest*
6917 no_gtk=yes
6918fi
6919rm -fr conftest*
6920fi
6921
6922 CFLAGS="$ac_save_CFLAGS"
6923 LIBS="$ac_save_LIBS"
6924 else
6925 no_gtk=yes
6926 fi
6927 if test "x$no_gtk" = x ; then
6928 echo "$ac_t""yes" 1>&6
6929 :
6930 else
6931 echo "$ac_t""no" 1>&6
6932 GTK_CFLAGS=""
6933 GTK_LIBS=""
6934 { echo "configure: error: Is gtk-config in path and GTK+ is version 1.2.X or 1.0.X?" 1>&2; exit 1; }
6935 fi
6936
6937
6938
6939 fi
6940
6941 TOOLKIT_INCLUDE="$GTK_CFLAGS"
f7a11f8c 6942 GUI_TK_LIBRARY="$GTK_LIBS"
a16d3c04 6943 TOOLKIT=GTK
1c8515f9 6944
f7a11f8c
RR
6945 GUIOBJS="\$(GTK_GUIOBJS)"
6946 GUIHEADERS="\$(GTK_HEADERS)"
6947 COMMONOBJS="\$(GTK_COMMONOBJS)"
6948 GENERICOBJS="\$(GTK_GENERICOBJS)"
6949 GUIDEPS="\$(GTK_GUIDEPS)"
6950 COMMONDEPS="\$(GTK_COMMONDEPS)"
6951 GENERICDEPS="\$(GTK_GENERICDEPS)"
6952 UNIXOBJS="\$(UNIX_OBJS)"
a16d3c04
KB
6953 GUIDIST=GTK_DIST
6954fi
6955
6956if test "$wxUSE_WINE" = 1; then
6957 echo $ac_n "checking for WINE includes""... $ac_c" 1>&6
f7a11f8c 6958echo "configure:6959: checking for WINE includes" >&5
a16d3c04
KB
6959
6960ac_find_includes=
6961for ac_dir in $SEARCH_INCLUDE;
6962 do
6963 if test -f "$ac_dir/windows.h"; then
6964 ac_find_includes=$ac_dir
6965 break
6966 fi
6967 done
6968
6969 if test "$ac_find_includes" != "" ; then
6970 echo "$ac_t""found $ac_find_includes" 1>&6
6971 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE -I$ac_find_includes"
6972 else
6973 echo "$ac_t""no" 1>&6
6974 { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; }
6975 fi
6976
6977 XPM_LINK=""
6978 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
f7a11f8c 6979echo "configure:6980: checking for Xpm library" >&5
a16d3c04
KB
6980
6981ac_find_libraries=
6982for ac_dir in $SEARCH_LIB;
6983 do
6984 for ac_extension in a so sl; do
6985 if test -f "$ac_dir/libXpm.$ac_extension"; then
6986 ac_find_libraries=$ac_dir
6987 break 2
6988 fi
6989 done
6990 done
6991
6992 if test "$ac_find_libraries" != "" ; then
6993 GUI_TK_LIBRARY="-L$ac_find_libraries"
6994 XPM_LINK="-lXpm"
6995 cat >> confdefs.h <<\EOF
6996#define wxHAVE_LIB_XPM 1
6997EOF
6998
6999 echo "$ac_t""found at $ac_find_libraries" 1>&6
7000 else
7001 echo "$ac_t""no" 1>&6
7002 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
7003 fi
1c8515f9 7004
a16d3c04
KB
7005 MESA_LINK=""
7006 echo $ac_n "checking for Mesa library""... $ac_c" 1>&6
f7a11f8c 7007echo "configure:7008: checking for Mesa library" >&5
a16d3c04
KB
7008
7009ac_find_libraries=
7010for ac_dir in $SEARCH_LIB;
7011 do
7012 for ac_extension in a so sl; do
7013 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
7014 ac_find_libraries=$ac_dir
7015 break 2
7016 fi
7017 done
7018 done
7019
7020 if test "$ac_find_libraries" != "" ; then
7021 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -L$ac_find_libraries"
7022 MESA_LINK="-lMesaGL"
7023 echo "$ac_t""found at $ac_find_libraries" 1>&6
7024 else
7025 { echo "configure: error: no" 1>&2; exit 1; }
7026 fi
7027
f7a11f8c 7028 GUI_TK_LINK="-lwine $MESA_LINK $XPM_LINK -lXxf86dga -lXxf86vm -lSM -lICE -lXext -lXmu -lX11 -lncurses -lm"
a16d3c04
KB
7029 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $GUI_TK_LINK"
7030 WXWINE=1
7031 TOOLKIT=MSW
1c8515f9 7032
f7a11f8c
RR
7033 GUIHEADERS="\$(MSW_HEADERS)"
7034 GUIOBJS="\$(MSW_GUIOBJS)"
7035 COMMONOBJS="\$(MSW_COMMONOBJS)"
7036 GENERICOBJS="\$(MSW_GENERICOBJS)"
7037 GUIDEPS="\$(MSW_GUIDEPS)"
7038 COMMONDEPS="\$(MSW_COMMONDEPS)"
7039 GENERICDEPS="\$(MSW_GENERICDEPS)"
7040 UNIXOBJS="\$(UNIX_OBJS)"
a16d3c04
KB
7041 GUIDIST=MSW_DIST
7042fi
7043
7044if test "$wxUSE_MOTIF" = 1; then
7045 # If we find X, set shell vars x_includes and x_libraries to the
7046# paths, otherwise set no_x=yes.
7047# Uses ac_ vars as temps to allow command line to override cache and checks.
7048# --without-x overrides everything else, but does not touch the cache.
7049echo $ac_n "checking for X""... $ac_c" 1>&6
f7a11f8c 7050echo "configure:7051: checking for X" >&5
a16d3c04
KB
7051
7052# Check whether --with-x or --without-x was given.
7053if test "${with_x+set}" = set; then
7054 withval="$with_x"
7055 :
7056fi
7057
7058# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7059if test "x$with_x" = xno; then
7060 # The user explicitly disabled X.
7061 have_x=disabled
7062else
7063 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
7064 # Both variables are already set.
7065 have_x=yes
7066 else
7067if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
7068 echo $ac_n "(cached) $ac_c" 1>&6
7069else
7070 # One or both of the vars are not set, and there is no cached value.
7071ac_x_includes=NO ac_x_libraries=NO
7072rm -fr conftestdir
7073if mkdir conftestdir; then
7074 cd conftestdir
7075 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
7076 cat > Imakefile <<'EOF'
7077acfindx:
7078 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
7079EOF
7080 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
7081 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7082 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
7083 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
7084 for ac_extension in a so sl; do
7085 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
7086 test -f $ac_im_libdir/libX11.$ac_extension; then
7087 ac_im_usrlibdir=$ac_im_libdir; break
7088 fi
7089 done
7090 # Screen out bogus values from the imake configuration. They are
7091 # bogus both because they are the default anyway, and because
7092 # using them would break gcc on systems where it needs fixed includes.
7093 case "$ac_im_incroot" in
7094 /usr/include) ;;
7095 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
7096 esac
7097 case "$ac_im_usrlibdir" in
7098 /usr/lib | /lib) ;;
7099 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
7100 esac
7101 fi
7102 cd ..
7103 rm -fr conftestdir
7104fi
7105
7106if test "$ac_x_includes" = NO; then
7107 # Guess where to find include files, by looking for this one X11 .h file.
7108 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
7109
7110 # First, try using that file with no special directory specified.
7111cat > conftest.$ac_ext <<EOF
f7a11f8c 7112#line 7113 "configure"
a16d3c04
KB
7113#include "confdefs.h"
7114#include <$x_direct_test_include>
7115EOF
7116ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
f7a11f8c 7117{ (eval echo configure:7118: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
fa3e4baf 7118ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
a16d3c04
KB
7119if test -z "$ac_err"; then
7120 rm -rf conftest*
7121 # We can compile using X headers with no special include directory.
7122ac_x_includes=
7123else
7124 echo "$ac_err" >&5
7125 echo "configure: failed program was:" >&5
7126 cat conftest.$ac_ext >&5
7127 rm -rf conftest*
7128 # Look for the header file in a standard set of common directories.
7129# Check X11 before X11Rn because it is often a symlink to the current release.
7130 for ac_dir in \
7131 /usr/X11/include \
7132 /usr/X11R6/include \
7133 /usr/X11R5/include \
7134 /usr/X11R4/include \
7135 \
7136 /usr/include/X11 \
7137 /usr/include/X11R6 \
7138 /usr/include/X11R5 \
7139 /usr/include/X11R4 \
7140 \
7141 /usr/local/X11/include \
7142 /usr/local/X11R6/include \
7143 /usr/local/X11R5/include \
7144 /usr/local/X11R4/include \
7145 \
7146 /usr/local/include/X11 \
7147 /usr/local/include/X11R6 \
7148 /usr/local/include/X11R5 \
7149 /usr/local/include/X11R4 \
7150 \
7151 /usr/X386/include \
7152 /usr/x386/include \
7153 /usr/XFree86/include/X11 \
7154 \
7155 /usr/include \
7156 /usr/local/include \
7157 /usr/unsupported/include \
7158 /usr/athena/include \
7159 /usr/local/x11r5/include \
7160 /usr/lpp/Xamples/include \
7161 \
7162 /usr/openwin/include \
7163 /usr/openwin/share/include \
7164 ; \
7165 do
7166 if test -r "$ac_dir/$x_direct_test_include"; then
7167 ac_x_includes=$ac_dir
7168 break
7169 fi
7170 done
7171fi
7172rm -f conftest*
7173fi # $ac_x_includes = NO
7174
7175if test "$ac_x_libraries" = NO; then
7176 # Check for the libraries.
7177
7178 test -z "$x_direct_test_library" && x_direct_test_library=Xt
7179 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
7180
7181 # See if we find them without any special options.
7182 # Don't add to $LIBS permanently.
7183 ac_save_LIBS="$LIBS"
7184 LIBS="-l$x_direct_test_library $LIBS"
7185cat > conftest.$ac_ext <<EOF
f7a11f8c 7186#line 7187 "configure"
a16d3c04
KB
7187#include "confdefs.h"
7188
7189int main() {
7190${x_direct_test_function}()
7191; return 0; }
7192EOF
f7a11f8c 7193if { (eval echo configure:7194: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a16d3c04
KB
7194 rm -rf conftest*
7195 LIBS="$ac_save_LIBS"
7196# We can link X programs with no special library path.
7197ac_x_libraries=
7198else
7199 echo "configure: failed program was:" >&5
7200 cat conftest.$ac_ext >&5
7201 rm -rf conftest*
7202 LIBS="$ac_save_LIBS"
7203# First see if replacing the include by lib works.
7204# Check X11 before X11Rn because it is often a symlink to the current release.
7205for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
7206 /usr/X11/lib \
7207 /usr/X11R6/lib \
7208 /usr/X11R5/lib \
7209 /usr/X11R4/lib \
7210 \
7211 /usr/lib/X11 \
7212 /usr/lib/X11R6 \
7213 /usr/lib/X11R5 \
7214 /usr/lib/X11R4 \
7215 \
7216 /usr/local/X11/lib \
7217 /usr/local/X11R6/lib \
7218 /usr/local/X11R5/lib \
7219 /usr/local/X11R4/lib \
7220 \
7221 /usr/local/lib/X11 \
7222 /usr/local/lib/X11R6 \
7223 /usr/local/lib/X11R5 \
7224 /usr/local/lib/X11R4 \
7225 \
7226 /usr/X386/lib \
7227 /usr/x386/lib \
7228 /usr/XFree86/lib/X11 \
7229 \
7230 /usr/lib \
7231 /usr/local/lib \
7232 /usr/unsupported/lib \
7233 /usr/athena/lib \
7234 /usr/local/x11r5/lib \
7235 /usr/lpp/Xamples/lib \
7236 /lib/usr/lib/X11 \
7237 \
7238 /usr/openwin/lib \
7239 /usr/openwin/share/lib \
7240 ; \
7241do
7242 for ac_extension in a so sl; do
7243 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
7244 ac_x_libraries=$ac_dir
7245 break 2
7246 fi
7247 done
7248done
7249fi
7250rm -f conftest*
7251fi # $ac_x_libraries = NO
7252
7253if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
7254 # Didn't find X anywhere. Cache the known absence of X.
7255 ac_cv_have_x="have_x=no"
7256else
7257 # Record where we found X for the cache.
7258 ac_cv_have_x="have_x=yes \
7259 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
7260fi
7261fi
7262 fi
7263 eval "$ac_cv_have_x"
7264fi # $with_x != no
7265
7266if test "$have_x" != yes; then
7267 echo "$ac_t""$have_x" 1>&6
7268 no_x=yes
7269else
7270 # If each of the values was on the command line, it overrides each guess.
7271 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
7272 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
7273 # Update the cache value to reflect the command line values.
7274 ac_cv_have_x="have_x=yes \
7275 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
7276 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
7277fi
7278
7279if test "$no_x" = yes; then
7280 # Not all programs may use this symbol, but it does not hurt to define it.
7281 cat >> confdefs.h <<\EOF
7282#define X_DISPLAY_MISSING 1
7283EOF
7284
7285 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
7286else
7287 if test -n "$x_includes"; then
7288 X_CFLAGS="$X_CFLAGS -I$x_includes"
7289 fi
7290
7291 # It would also be nice to do this for all -L options, not just this one.
7292 if test -n "$x_libraries"; then
7293 X_LIBS="$X_LIBS -L$x_libraries"
7294 # For Solaris; some versions of Sun CC require a space after -R and
7295 # others require no space. Words are not sufficient . . . .
7296 case "`(uname -sr) 2>/dev/null`" in
7297 "SunOS 5"*)
7298 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
f7a11f8c 7299echo "configure:7300: checking whether -R must be followed by a space" >&5
a16d3c04
KB
7300 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
7301 cat > conftest.$ac_ext <<EOF
f7a11f8c 7302#line 7303 "configure"
a16d3c04
KB
7303#include "confdefs.h"
7304
7305int main() {
7306
7307; return 0; }
7308EOF
f7a11f8c 7309if { (eval echo configure:7310: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a16d3c04
KB
7310 rm -rf conftest*
7311 ac_R_nospace=yes
7312else
7313 echo "configure: failed program was:" >&5
7314 cat conftest.$ac_ext >&5
7315 rm -rf conftest*
7316 ac_R_nospace=no
7317fi
7318rm -f conftest*
7319 if test $ac_R_nospace = yes; then
7320 echo "$ac_t""no" 1>&6
7321 X_LIBS="$X_LIBS -R$x_libraries"
7322 else
7323 LIBS="$ac_xsave_LIBS -R $x_libraries"
7324 cat > conftest.$ac_ext <<EOF
f7a11f8c 7325#line 7326 "configure"
a16d3c04
KB
7326#include "confdefs.h"
7327
7328int main() {
7329
7330; return 0; }
7331EOF
f7a11f8c 7332if { (eval echo configure:7333: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a16d3c04
KB
7333 rm -rf conftest*
7334 ac_R_space=yes
7335else
7336 echo "configure: failed program was:" >&5
7337 cat conftest.$ac_ext >&5
7338 rm -rf conftest*
7339 ac_R_space=no
7340fi
7341rm -f conftest*
7342 if test $ac_R_space = yes; then
7343 echo "$ac_t""yes" 1>&6
7344 X_LIBS="$X_LIBS -R $x_libraries"
7345 else
7346 echo "$ac_t""neither works" 1>&6
7347 fi
7348 fi
7349 LIBS="$ac_xsave_LIBS"
7350 esac
7351 fi
7352
7353 # Check for system-dependent libraries X programs must link with.
7354 # Do this before checking for the system-independent R6 libraries
7355 # (-lICE), since we may need -lsocket or whatever for X linking.
7356
7357 if test "$ISC" = yes; then
7358 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
7359 else
7360 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
7361 # libraries were built with DECnet support. And karl@cs.umb.edu says
7362 # the Alpha needs dnet_stub (dnet does not exist).
7363 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
f7a11f8c 7364echo "configure:7365: checking for dnet_ntoa in -ldnet" >&5
a16d3c04
KB
7365ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
7366if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7367 echo $ac_n "(cached) $ac_c" 1>&6
7368else
7369 ac_save_LIBS="$LIBS"
7370LIBS="-ldnet $LIBS"
7371cat > conftest.$ac_ext <<EOF
f7a11f8c 7372#line 7373 "configure"
a16d3c04
KB
7373#include "confdefs.h"
7374/* Override any gcc2 internal prototype to avoid an error. */
7375/* We use char because int might match the return type of a gcc2
7376 builtin and then its argument prototype would still apply. */
7377char dnet_ntoa();
7378
7379int main() {
7380dnet_ntoa()
7381; return 0; }
7382EOF
f7a11f8c 7383if { (eval echo configure:7384: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a16d3c04
KB
7384 rm -rf conftest*
7385 eval "ac_cv_lib_$ac_lib_var=yes"
7386else
7387 echo "configure: failed program was:" >&5
7388 cat conftest.$ac_ext >&5
7389 rm -rf conftest*
7390 eval "ac_cv_lib_$ac_lib_var=no"
7391fi
7392rm -f conftest*
7393LIBS="$ac_save_LIBS"
7394
7395fi
7396if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7397 echo "$ac_t""yes" 1>&6
7398 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
7399else
7400 echo "$ac_t""no" 1>&6
7401fi
7402
7403 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
7404 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
f7a11f8c 7405echo "configure:7406: checking for dnet_ntoa in -ldnet_stub" >&5
a16d3c04
KB
7406ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
7407if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7408 echo $ac_n "(cached) $ac_c" 1>&6
7409else
7410 ac_save_LIBS="$LIBS"
7411LIBS="-ldnet_stub $LIBS"
7412cat > conftest.$ac_ext <<EOF
f7a11f8c 7413#line 7414 "configure"
a16d3c04
KB
7414#include "confdefs.h"
7415/* Override any gcc2 internal prototype to avoid an error. */
7416/* We use char because int might match the return type of a gcc2
7417 builtin and then its argument prototype would still apply. */
7418char dnet_ntoa();
7419
7420int main() {
7421dnet_ntoa()
7422; return 0; }
7423EOF
f7a11f8c 7424if { (eval echo configure:7425: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a16d3c04
KB
7425 rm -rf conftest*
7426 eval "ac_cv_lib_$ac_lib_var=yes"
7427else
7428 echo "configure: failed program was:" >&5
7429 cat conftest.$ac_ext >&5
7430 rm -rf conftest*
7431 eval "ac_cv_lib_$ac_lib_var=no"
7432fi
7433rm -f conftest*
7434LIBS="$ac_save_LIBS"
7435
7436fi
7437if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7438 echo "$ac_t""yes" 1>&6
7439 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
7440else
7441 echo "$ac_t""no" 1>&6
7442fi
7443
7444 fi
7445
7446 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
7447 # to get the SysV transport functions.
7448 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
7449 # needs -lnsl.
7450 # The nsl library prevents programs from opening the X display
7451 # on Irix 5.2, according to dickey@clark.net.
7452 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
f7a11f8c 7453echo "configure:7454: checking for gethostbyname" >&5
a16d3c04
KB
7454if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
7455 echo $ac_n "(cached) $ac_c" 1>&6
7456else
7457 cat > conftest.$ac_ext <<EOF
f7a11f8c 7458#line 7459 "configure"
a16d3c04
KB
7459#include "confdefs.h"
7460/* System header to define __stub macros and hopefully few prototypes,
7461 which can conflict with char gethostbyname(); below. */
7462#include <assert.h>
7463/* Override any gcc2 internal prototype to avoid an error. */
7464/* We use char because int might match the return type of a gcc2
7465 builtin and then its argument prototype would still apply. */
7466char gethostbyname();
f7a11f8c 7467char (*f)();
a16d3c04
KB
7468
7469int main() {
7470
7471/* The GNU C library defines this for functions which it implements
7472 to always fail with ENOSYS. Some functions are actually named
7473 something starting with __ and the normal name is an alias. */
7474#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
7475choke me
7476#else
f7a11f8c 7477f = gethostbyname;
a16d3c04
KB
7478#endif
7479
7480; return 0; }
7481EOF
f7a11f8c 7482if { (eval echo configure:7483: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a16d3c04
KB
7483 rm -rf conftest*
7484 eval "ac_cv_func_gethostbyname=yes"
7485else
7486 echo "configure: failed program was:" >&5
7487 cat conftest.$ac_ext >&5
7488 rm -rf conftest*
7489 eval "ac_cv_func_gethostbyname=no"
7490fi
7491rm -f conftest*
7492fi
7493
7494if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
7495 echo "$ac_t""yes" 1>&6
7496 :
7497else
7498 echo "$ac_t""no" 1>&6
7499fi
7500
7501 if test $ac_cv_func_gethostbyname = no; then
7502 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
f7a11f8c 7503echo "configure:7504: checking for gethostbyname in -lnsl" >&5
a16d3c04
KB
7504ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
7505if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7506 echo $ac_n "(cached) $ac_c" 1>&6
7507else
7508 ac_save_LIBS="$LIBS"
7509LIBS="-lnsl $LIBS"
7510cat > conftest.$ac_ext <<EOF
f7a11f8c 7511#line 7512 "configure"
a16d3c04
KB
7512#include "confdefs.h"
7513/* Override any gcc2 internal prototype to avoid an error. */
7514/* We use char because int might match the return type of a gcc2
7515 builtin and then its argument prototype would still apply. */
7516char gethostbyname();
7517
7518int main() {
7519gethostbyname()
7520; return 0; }
7521EOF
f7a11f8c 7522if { (eval echo configure:7523: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a16d3c04
KB
7523 rm -rf conftest*
7524 eval "ac_cv_lib_$ac_lib_var=yes"
7525else
7526 echo "configure: failed program was:" >&5
7527 cat conftest.$ac_ext >&5
7528 rm -rf conftest*
7529 eval "ac_cv_lib_$ac_lib_var=no"
7530fi
7531rm -f conftest*
7532LIBS="$ac_save_LIBS"
7533
7534fi
7535if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7536 echo "$ac_t""yes" 1>&6
7537 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
7538else
7539 echo "$ac_t""no" 1>&6
7540fi
7541
7542 fi
7543
7544 # lieder@skyler.mavd.honeywell.com says without -lsocket,
7545 # socket/setsockopt and other routines are undefined under SCO ODT
7546 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
7547 # on later versions), says simon@lia.di.epfl.ch: it contains
7548 # gethostby* variants that don't use the nameserver (or something).
7549 # -lsocket must be given before -lnsl if both are needed.
7550 # We assume that if connect needs -lnsl, so does gethostbyname.
7551 echo $ac_n "checking for connect""... $ac_c" 1>&6
f7a11f8c 7552echo "configure:7553: checking for connect" >&5
a16d3c04
KB
7553if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
7554 echo $ac_n "(cached) $ac_c" 1>&6
7555else
7556 cat > conftest.$ac_ext <<EOF
f7a11f8c 7557#line 7558 "configure"
a16d3c04
KB
7558#include "confdefs.h"
7559/* System header to define __stub macros and hopefully few prototypes,
7560 which can conflict with char connect(); below. */
7561#include <assert.h>
7562/* Override any gcc2 internal prototype to avoid an error. */
7563/* We use char because int might match the return type of a gcc2
7564 builtin and then its argument prototype would still apply. */
7565char connect();
f7a11f8c 7566char (*f)();
a16d3c04
KB
7567
7568int main() {
7569
7570/* The GNU C library defines this for functions which it implements
7571 to always fail with ENOSYS. Some functions are actually named
7572 something starting with __ and the normal name is an alias. */
7573#if defined (__stub_connect) || defined (__stub___connect)
7574choke me
7575#else
f7a11f8c 7576f = connect;
a16d3c04
KB
7577#endif
7578
7579; return 0; }
7580EOF
f7a11f8c 7581if { (eval echo configure:7582: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a16d3c04
KB
7582 rm -rf conftest*
7583 eval "ac_cv_func_connect=yes"
7584else
7585 echo "configure: failed program was:" >&5
7586 cat conftest.$ac_ext >&5
7587 rm -rf conftest*
7588 eval "ac_cv_func_connect=no"
7589fi
7590rm -f conftest*
7591fi
7592
7593if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
7594 echo "$ac_t""yes" 1>&6
7595 :
7596else
7597 echo "$ac_t""no" 1>&6
7598fi
7599
7600 if test $ac_cv_func_connect = no; then
7601 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
f7a11f8c 7602echo "configure:7603: checking for connect in -lsocket" >&5
a16d3c04
KB
7603ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
7604if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7605 echo $ac_n "(cached) $ac_c" 1>&6
7606else
7607 ac_save_LIBS="$LIBS"
7608LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
7609cat > conftest.$ac_ext <<EOF
f7a11f8c 7610#line 7611 "configure"
a16d3c04
KB
7611#include "confdefs.h"
7612/* Override any gcc2 internal prototype to avoid an error. */
7613/* We use char because int might match the return type of a gcc2
7614 builtin and then its argument prototype would still apply. */
7615char connect();
7616
7617int main() {
7618connect()
7619; return 0; }
7620EOF
f7a11f8c 7621if { (eval echo configure:7622: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a16d3c04
KB
7622 rm -rf conftest*
7623 eval "ac_cv_lib_$ac_lib_var=yes"
7624else
7625 echo "configure: failed program was:" >&5
7626 cat conftest.$ac_ext >&5
7627 rm -rf conftest*
7628 eval "ac_cv_lib_$ac_lib_var=no"
7629fi
7630rm -f conftest*
7631LIBS="$ac_save_LIBS"
7632
7633fi
7634if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7635 echo "$ac_t""yes" 1>&6
7636 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
7637else
7638 echo "$ac_t""no" 1>&6
7639fi
7640
7641 fi
7642
7643 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
7644 echo $ac_n "checking for remove""... $ac_c" 1>&6
f7a11f8c 7645echo "configure:7646: checking for remove" >&5
a16d3c04
KB
7646if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
7647 echo $ac_n "(cached) $ac_c" 1>&6
7648else
7649 cat > conftest.$ac_ext <<EOF
f7a11f8c 7650#line 7651 "configure"
a16d3c04
KB
7651#include "confdefs.h"
7652/* System header to define __stub macros and hopefully few prototypes,
7653 which can conflict with char remove(); below. */
7654#include <assert.h>
7655/* Override any gcc2 internal prototype to avoid an error. */
7656/* We use char because int might match the return type of a gcc2
7657 builtin and then its argument prototype would still apply. */
7658char remove();
f7a11f8c 7659char (*f)();
a16d3c04
KB
7660
7661int main() {
7662
7663/* The GNU C library defines this for functions which it implements
7664 to always fail with ENOSYS. Some functions are actually named
7665 something starting with __ and the normal name is an alias. */
7666#if defined (__stub_remove) || defined (__stub___remove)
7667choke me
7668#else
f7a11f8c 7669f = remove;
a16d3c04
KB
7670#endif
7671
7672; return 0; }
7673EOF
f7a11f8c 7674if { (eval echo configure:7675: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a16d3c04
KB
7675 rm -rf conftest*
7676 eval "ac_cv_func_remove=yes"
7677else
7678 echo "configure: failed program was:" >&5
7679 cat conftest.$ac_ext >&5
7680 rm -rf conftest*
7681 eval "ac_cv_func_remove=no"
7682fi
7683rm -f conftest*
7684fi
7685
7686if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
7687 echo "$ac_t""yes" 1>&6
7688 :
7689else
7690 echo "$ac_t""no" 1>&6
7691fi
7692
7693 if test $ac_cv_func_remove = no; then
7694 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
f7a11f8c 7695echo "configure:7696: checking for remove in -lposix" >&5
a16d3c04
KB
7696ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
7697if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7698 echo $ac_n "(cached) $ac_c" 1>&6
7699else
7700 ac_save_LIBS="$LIBS"
7701LIBS="-lposix $LIBS"
7702cat > conftest.$ac_ext <<EOF
f7a11f8c 7703#line 7704 "configure"
a16d3c04
KB
7704#include "confdefs.h"
7705/* Override any gcc2 internal prototype to avoid an error. */
7706/* We use char because int might match the return type of a gcc2
7707 builtin and then its argument prototype would still apply. */
7708char remove();
7709
7710int main() {
7711remove()
7712; return 0; }
7713EOF
f7a11f8c 7714if { (eval echo configure:7715: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a16d3c04
KB
7715 rm -rf conftest*
7716 eval "ac_cv_lib_$ac_lib_var=yes"
7717else
7718 echo "configure: failed program was:" >&5
7719 cat conftest.$ac_ext >&5
7720 rm -rf conftest*
7721 eval "ac_cv_lib_$ac_lib_var=no"
7722fi
7723rm -f conftest*
7724LIBS="$ac_save_LIBS"
7725
7726fi
7727if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7728 echo "$ac_t""yes" 1>&6
7729 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
7730else
7731 echo "$ac_t""no" 1>&6
7732fi
7733
7734 fi
7735
7736 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
7737 echo $ac_n "checking for shmat""... $ac_c" 1>&6
f7a11f8c 7738echo "configure:7739: checking for shmat" >&5
a16d3c04
KB
7739if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
7740 echo $ac_n "(cached) $ac_c" 1>&6
7741else
7742 cat > conftest.$ac_ext <<EOF
f7a11f8c 7743#line 7744 "configure"
a16d3c04
KB
7744#include "confdefs.h"
7745/* System header to define __stub macros and hopefully few prototypes,
7746 which can conflict with char shmat(); below. */
7747#include <assert.h>
7748/* Override any gcc2 internal prototype to avoid an error. */
7749/* We use char because int might match the return type of a gcc2
7750 builtin and then its argument prototype would still apply. */
7751char shmat();
f7a11f8c 7752char (*f)();
a16d3c04
KB
7753
7754int main() {
7755
7756/* The GNU C library defines this for functions which it implements
7757 to always fail with ENOSYS. Some functions are actually named
7758 something starting with __ and the normal name is an alias. */
7759#if defined (__stub_shmat) || defined (__stub___shmat)
7760choke me
7761#else
f7a11f8c 7762f = shmat;
a16d3c04
KB
7763#endif
7764
7765; return 0; }
7766EOF
f7a11f8c 7767if { (eval echo configure:7768: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a16d3c04
KB
7768 rm -rf conftest*
7769 eval "ac_cv_func_shmat=yes"
7770else
7771 echo "configure: failed program was:" >&5
7772 cat conftest.$ac_ext >&5
7773 rm -rf conftest*
7774 eval "ac_cv_func_shmat=no"
7775fi
7776rm -f conftest*
7777fi
7778
7779if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
7780 echo "$ac_t""yes" 1>&6
7781 :
7782else
7783 echo "$ac_t""no" 1>&6
7784fi
7785
7786 if test $ac_cv_func_shmat = no; then
7787 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
f7a11f8c 7788echo "configure:7789: checking for shmat in -lipc" >&5
a16d3c04
KB
7789ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
7790if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7791 echo $ac_n "(cached) $ac_c" 1>&6
7792else
7793 ac_save_LIBS="$LIBS"
7794LIBS="-lipc $LIBS"
7795cat > conftest.$ac_ext <<EOF
f7a11f8c 7796#line 7797 "configure"
a16d3c04
KB
7797#include "confdefs.h"
7798/* Override any gcc2 internal prototype to avoid an error. */
7799/* We use char because int might match the return type of a gcc2
7800 builtin and then its argument prototype would still apply. */
7801char shmat();
7802
7803int main() {
7804shmat()
7805; return 0; }
7806EOF
f7a11f8c 7807if { (eval echo configure:7808: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a16d3c04
KB
7808 rm -rf conftest*
7809 eval "ac_cv_lib_$ac_lib_var=yes"
7810else
7811 echo "configure: failed program was:" >&5
7812 cat conftest.$ac_ext >&5
7813 rm -rf conftest*
7814 eval "ac_cv_lib_$ac_lib_var=no"
7815fi
7816rm -f conftest*
7817LIBS="$ac_save_LIBS"
7818
7819fi
7820if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7821 echo "$ac_t""yes" 1>&6
7822 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
7823else
7824 echo "$ac_t""no" 1>&6
7825fi
7826
7827 fi
7828 fi
7829
7830 # Check for libraries that X11R6 Xt/Xaw programs need.
7831 ac_save_LDFLAGS="$LDFLAGS"
7832 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
7833 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
7834 # check for ICE first), but we must link in the order -lSM -lICE or
7835 # we get undefined symbols. So assume we have SM if we have ICE.
7836 # These have to be linked with before -lX11, unlike the other
7837 # libraries we check for below, so use a different variable.
7838 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
7839 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
f7a11f8c 7840echo "configure:7841: checking for IceConnectionNumber in -lICE" >&5
a16d3c04
KB
7841ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
7842if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7843 echo $ac_n "(cached) $ac_c" 1>&6
7844else
7845 ac_save_LIBS="$LIBS"
fa3e4baf 7846LIBS="-lICE $X_EXTRA_LIBS $LIBS"
a16d3c04 7847cat > conftest.$ac_ext <<EOF
f7a11f8c 7848#line 7849 "configure"
a16d3c04
KB
7849#include "confdefs.h"
7850/* Override any gcc2 internal prototype to avoid an error. */
7851/* We use char because int might match the return type of a gcc2
7852 builtin and then its argument prototype would still apply. */
7853char IceConnectionNumber();
7854
7855int main() {
7856IceConnectionNumber()
7857; return 0; }
7858EOF
f7a11f8c 7859if { (eval echo configure:7860: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a16d3c04
KB
7860 rm -rf conftest*
7861 eval "ac_cv_lib_$ac_lib_var=yes"
7862else
7863 echo "configure: failed program was:" >&5
7864 cat conftest.$ac_ext >&5
7865 rm -rf conftest*
7866 eval "ac_cv_lib_$ac_lib_var=no"
7867fi
7868rm -f conftest*
7869LIBS="$ac_save_LIBS"
7870
7871fi
7872if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7873 echo "$ac_t""yes" 1>&6
7874 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
7875else
7876 echo "$ac_t""no" 1>&6
7877fi
7878
7879 LDFLAGS="$ac_save_LDFLAGS"
7880
7881fi
7882
7883
7884 if test "$no_x" = "yes"; then
7885 { echo "configure: error: X11 libraries not found" 1>&2; exit 1; }
7886 fi
7887
7888 TOOLKIT_INCLUDE="$X_CFLAGS"
7889 GUI_TK_LIBRARY="$X_LIBS"
7890
7891 echo $ac_n "checking for Motif/Lesstif includes""... $ac_c" 1>&6
f7a11f8c 7892echo "configure:7893: checking for Motif/Lesstif includes" >&5
a16d3c04
KB
7893
7894ac_find_includes=
7895for ac_dir in $SEARCH_INCLUDE;
7896 do
7897 if test -f "$ac_dir/Xm/Xm.h"; then
7898 ac_find_includes=$ac_dir
7899 break
7900 fi
7901 done
7902
7903 if test "$ac_find_includes" != "" ; then
7904 echo "$ac_t""found $ac_find_includes" 1>&6
7905 else
7906 echo "$ac_t""no" 1>&6
7907 { echo "configure: error: please set CFLAGS to contain the location of Xm/Xm.h" 1>&2; exit 1; }
7908 fi
7909
7910 echo $ac_n "checking for Motif/Lesstif library""... $ac_c" 1>&6
f7a11f8c 7911echo "configure:7912: checking for Motif/Lesstif library" >&5
a16d3c04
KB
7912
7913ac_find_libraries=
7914for ac_dir in $SEARCH_LIB;
7915 do
7916 for ac_extension in a so sl; do
7917 if test -f "$ac_dir/libXm.$ac_extension"; then
7918 ac_find_libraries=$ac_dir
7919 break 2
7920 fi
7921 done
7922 done
7923
7924 if test "$ac_find_libraries" != "" ; then
7925
7926 ac_path_to_include=$ac_find_includes
7927 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
7928 result=$?
7929 if test $result = 0; then
7930 ac_path_to_include=""
7931 else
7932 ac_path_to_include="-I$ac_find_includes"
7933 fi
7934
7935
7936 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
7937 result=$?
7938 if test $result = 0; then
7939 ac_path_to_link=""
7940 else
7941 ac_path_to_link="-L$ac_find_libraries"
7942 fi
7943
7944
7945 CHECK_LINK="$GUI_TK_LIBRARY $ac_path_to_link"
7946 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE $ac_path_to_include"
7947 echo "$ac_t""found at $ac_find_libraries" 1>&6
7948 else
7949 echo "$ac_t""no" 1>&6
7950 { echo "configure: error: please set LDFLAGS to contain the location of libXm" 1>&2; exit 1; }
7951 fi
7952
7953 echo $ac_n "checking for Xt library""... $ac_c" 1>&6
f7a11f8c 7954echo "configure:7955: checking for Xt library" >&5
a16d3c04
KB
7955
7956ac_find_libraries=
7957for ac_dir in $SEARCH_LIB;
7958 do
7959 for ac_extension in a so sl; do
7960 if test -f "$ac_dir/libXt.$ac_extension"; then
7961 ac_find_libraries=$ac_dir
7962 break 2
7963 fi
7964 done
7965 done
7966
7967 if test "$ac_find_libraries" != "" ; then
7968
7969 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
7970 result=$?
7971 if test $result = 0; then
7972 ac_path_to_link=""
7973 else
7974 ac_path_to_link="-L$ac_find_libraries"
7975 fi
7976
7977 CHECK_LINK="$GUI_TK_LIBRARY $ac_path_to_link"
7978 echo "$ac_t""found at $ac_find_libraries" 1>&6
7979 else
7980 echo "$ac_t""no" 1>&6
7981 { echo "configure: error: please set LDFLAGS to contain the location of libXt" 1>&2; exit 1; }
7982 fi
7983
7984 XPM_LINK=""
7985 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
f7a11f8c 7986echo "configure:7987: checking for Xpm library" >&5
a16d3c04
KB
7987
7988ac_find_libraries=
7989for ac_dir in $SEARCH_LIB;
7990 do
7991 for ac_extension in a so sl; do
7992 if test -f "$ac_dir/libXpm.$ac_extension"; then
7993 ac_find_libraries=$ac_dir
7994 break 2
7995 fi
7996 done
7997 done
7998
7999 if test "$ac_find_libraries" != "" ; then
8000
8001 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
8002 result=$?
8003 if test $result = 0; then
8004 ac_path_to_link=""
8005 else
8006 ac_path_to_link="-L$ac_find_libraries"
8007 fi
8008
8009 CHECK_LINK="$GUI_TK_LIBRARY $ac_path_to_link"
8010 XPM_LINK="-lXpm "
8011 cat >> confdefs.h <<\EOF
8012#define wxHAVE_LIB_XPM 1
8013EOF
8014
8015 echo "$ac_t""found at $ac_find_libraries" 1>&6
8016 else
8017 echo "$ac_t""no" 1>&6
8018 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
8019 fi
8020
f7a11f8c 8021 GUI_TK_LINK="-lXm $XPM_LINK -lXmu -lXt -lX11 -lm"
a16d3c04
KB
8022 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $GUI_TK_LINK"
8023 TOOLKIT=MOTIF
1c8515f9 8024
f7a11f8c
RR
8025 GUIHEADERS="\$(MOTIF_HEADERS)"
8026 GUIOBJS="\$(MOTIF_GUIOBJS)"
8027 COMMONOBJS="\$(MOTIF_COMMONOBJS)"
8028 GENERICOBJS="\$(MOTIF_GENERICOBJS)"
8029 GUIDEPS="\$(MOTIF_GUIDEPS)"
8030 COMMONDEPS="\$(MOTIF_COMMONDEPS)"
8031 GENERICDEPS="\$(MOTIF_GENERICDEPS)"
8032 UNIXOBJS="\$(UNIX_OBJS)"
a16d3c04
KB
8033 GUIDIST=MOTIF_DIST
8034fi
8035
f7a11f8c
RR
8036if test "$wxUSE_GTK" = 1 || test "$wxUSE_MOTIF" = 1 || test "$wxUSE_WINE" = 1; then
8037 echo $ac_n "checking for main in -ldl""... $ac_c" 1>&6
8038echo "configure:8039: checking for main in -ldl" >&5
8039ac_lib_var=`echo dl'_'main | sed 'y%./+-%__p_%'`
8040if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8041 echo $ac_n "(cached) $ac_c" 1>&6
8042else
8043 ac_save_LIBS="$LIBS"
8044LIBS="-ldl $LIBS"
8045cat > conftest.$ac_ext <<EOF
8046#line 8047 "configure"
8047#include "confdefs.h"
8048
8049int main() {
8050main()
8051; return 0; }
8052EOF
8053if { (eval echo configure:8054: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8054 rm -rf conftest*
8055 eval "ac_cv_lib_$ac_lib_var=yes"
8056else
8057 echo "configure: failed program was:" >&5
8058 cat conftest.$ac_ext >&5
8059 rm -rf conftest*
8060 eval "ac_cv_lib_$ac_lib_var=no"
8061fi
8062rm -f conftest*
8063LIBS="$ac_save_LIBS"
8064
8065fi
8066if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8067 echo "$ac_t""yes" 1>&6
8068 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -ldl"
8069else
8070 echo "$ac_t""no" 1>&6
8071fi
8072
8073fi
8074
a16d3c04
KB
8075TOOLKIT_DIR=`echo ${TOOLKIT} | tr "A-Z" "a-z"`
8076
8077TOOLKIT_DEF="-D__WX${TOOLKIT}__"
8078
8079WX_LIBRARY="wx_${TOOLKIT_DIR}"
8080
f7a11f8c
RR
8081 ALL_OBJECTS="\$(GUIOBJS) \$(COMMONOBJS) \$(GENERICOBJS) \$(UNIXOBJS) \$(HTMLOBJS) \$(JPEGOBJS) \$(PNGOBJS) \$(ZLIBOBJS)"
8082 ALL_DEPFILES="\$(GUIDEPS) \$(COMMONDEPS) \$(GENERICDEPS) \$(UNIXDEPS) \$(HTMLDEPS)"
8083 ALL_HEADERS="\$(GUIHEADERS) \$(HTML_HEADERS) \$(UNIX_HEADERS) \$(PROTOCOL_HEADERS) \$(GENERIC_HEADERS) \$(WX_HEADERS)"
8084else
8085
8086 ALL_OBJECTS="\$(BASE_OBJS)"
8087 ALL_DEPFILES="\${BASE_DEPS}"
8088 ALL_HEADERS="\${BASE_HEADERS}"
8089
8090 WX_LIBRARY="wxbase"
8091fi
a16d3c04 8092
f7a11f8c 8093WX_LIBRARY_NAME="lib${WX_LIBRARY}.la"
a16d3c04 8094
f7a11f8c 8095WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a"
a16d3c04 8096
f7a11f8c
RR
8097WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}-${WX_RELEASE}.so.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
8098
8099WX_LIBRARY_LINK1="lib${WX_LIBRARY}-${WX_RELEASE}.so.${WX_CURRENT}"
8100WX_LIBRARY_LINK2="lib${WX_LIBRARY}-${WX_RELEASE}.so"
8101WX_LIBRARY_LINK3="lib${WX_LIBRARY}.so"
a16d3c04
KB
8102
8103SHARED_LD=
8104PIC_FLAG=
8105WX_CREATE_LINKS=
8106
8107if test "$wxUSE_SHARED" = "yes"; then
8108 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}"
8109
8110case "${host}" in
8111 *-hp-hpux* )
8112 WX_LIBRARY_NAME_SHARED="libwx_${TOOLKIT_DIR}.sl"
8113 SHARED_LD="${CXX} -b -o"
8114 PIC_FLAG="+Z"
8115 ;;
8116 *-*-linux* )
8117 SHARED_LD="${CC} -shared -o"
8118 PIC_FLAG="-fPIC"
8119 WX_CREATE_INSTALLED_LINKS="CREATE_INSTALLED_LINKS"
8120 WX_CREATE_LINKS="CREATE_LINKS"
8121 ;;
8122 *-*-irix5* | *-*-irix6* )
8123 if test "$GCC" = yes ; then
8124 SHARED_LD="${CC} -shared -o"
8125 PIC_FLAG="-fPIC"
8126 else
8127 SHARED_LD="${CXX} -shared -o"
8128 fi
8129 WX_CREATE_INSTALLED_LINKS="CREATE_INSTALLED_LINKS"
8130 WX_CREATE_LINKS="CREATE_LINKS"
8131 ;;
8132 *-*-solaris2* )
8133 if test "$GCC" = yes ; then
8134 SHARED_LD="${CC} -shared -o"
8135 PIC_FLAG="-fPIC"
8136 else
8137 SHARED_LD="${CXX} -G -o"
8138 PIC_FLAG="PIC"
8139 fi
8140 WX_CREATE_INSTALLED_LINKS="CREATE_INSTALLED_LINKS"
8141 WX_CREATE_LINKS="CREATE_LINKS"
8142 ;;
8143 *-*-sunos4* )
8144 SHARED_LD="${CC} -shared -o"
8145 PIC_FLAG="-fPIC"
8146 WX_CREATE_INSTALLED_LINKS="CREATE_INSTALLED_LINKS"
8147 WX_CREATE_LINKS="CREATE_LINKS"
8148 ;;
8149 *-*-freebsd* | *-*-netbsd*)
8150 SHARED_LD="${CC} -shared -o"
8151 PIC_FLAG="-fPIC"
8152 WX_CREATE_INSTALLED_LINKS="CREATE_INSTALLED_LINKS"
8153 WX_CREATE_LINKS="CREATE_LINKS"
8154 ;;
8155 *-*-osf* )
8156 SHARED_LD="${CXX} -shared -o"
8157 PIC_FLAG="-fPIC"
8158 WX_CREATE_INSTALLED_LINKS="CREATE_INSTALLED_LINKS"
8159 WX_CREATE_LINKS="CREATE_LINKS"
8160 ;;
8161 *-*-dgux5* )
8162 SHARED_LD="${CXX} -shared -o"
8163 PIC_FLAG="-fPIC"
8164 WX_CREATE_INSTALLED_LINKS="CREATE_INSTALLED_LINKS"
8165 WX_CREATE_LINKS="CREATE_LINKS"
8166 ;;
8167 *-*-sysv5* )
8168 SHARED_LD="${CC} -shared -o"
8169 PIC_FLAG="-fPIC"
8170 WX_CREATE_INSTALLED_LINKS="CREATE_INSTALLED_LINKS"
8171 WX_CREATE_LINKS="CREATE_LINKS"
8172 ;;
8173 *-*-aix* )
8174 SHARED_LD="/usr/lpp/xlC/bin/makeC++SharedLib -p 0 -o"
8175 ;;
8176 *-*-cygwin32* )
8177 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
8178 ;;
8179 *-*-mingw32* )
8180 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
8181 ;;
8182 *-pc-os2_emx )
8183 ;;
8184 *)
8185 { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; }
8186esac
8187
8188else
8189 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
8190fi
8191
8192
8193for ac_hdr in strings.h
8194do
8195ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8196echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
f7a11f8c 8197echo "configure:8198: checking for $ac_hdr" >&5
a16d3c04
KB
8198if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8199 echo $ac_n "(cached) $ac_c" 1>&6
8200else
8201 cat > conftest.$ac_ext <<EOF
f7a11f8c 8202#line 8203 "configure"
a16d3c04
KB
8203#include "confdefs.h"
8204#include <$ac_hdr>
8205EOF
8206ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
f7a11f8c 8207{ (eval echo configure:8208: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
fa3e4baf 8208ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
a16d3c04
KB
8209if test -z "$ac_err"; then
8210 rm -rf conftest*
8211 eval "ac_cv_header_$ac_safe=yes"
8212else
8213 echo "$ac_err" >&5
8214 echo "configure: failed program was:" >&5
8215 cat conftest.$ac_ext >&5
8216 rm -rf conftest*
8217 eval "ac_cv_header_$ac_safe=no"
8218fi
8219rm -f conftest*
8220fi
8221if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8222 echo "$ac_t""yes" 1>&6
8223 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8224 cat >> confdefs.h <<EOF
8225#define $ac_tr_hdr 1
8226EOF
8227
8228else
8229 echo "$ac_t""no" 1>&6
8230fi
8231done
8232
8233for ac_hdr in unistd.h
8234do
8235ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8236echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
f7a11f8c 8237echo "configure:8238: checking for $ac_hdr" >&5
a16d3c04
KB
8238if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8239 echo $ac_n "(cached) $ac_c" 1>&6
8240else
8241 cat > conftest.$ac_ext <<EOF
f7a11f8c 8242#line 8243 "configure"
a16d3c04
KB
8243#include "confdefs.h"
8244#include <$ac_hdr>
8245EOF
8246ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
f7a11f8c 8247{ (eval echo configure:8248: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
fa3e4baf 8248ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
a16d3c04
KB
8249if test -z "$ac_err"; then
8250 rm -rf conftest*
8251 eval "ac_cv_header_$ac_safe=yes"
8252else
8253 echo "$ac_err" >&5
8254 echo "configure: failed program was:" >&5
8255 cat conftest.$ac_ext >&5
8256 rm -rf conftest*
8257 eval "ac_cv_header_$ac_safe=no"
8258fi
8259rm -f conftest*
8260fi
8261if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8262 echo "$ac_t""yes" 1>&6
8263 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8264 cat >> confdefs.h <<EOF
8265#define $ac_tr_hdr 1
8266EOF
8267
8268else
8269 echo "$ac_t""no" 1>&6
8270fi
8271done
8272
8273for ac_hdr in wchar.h
8274do
8275ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8276echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
f7a11f8c 8277echo "configure:8278: checking for $ac_hdr" >&5
a16d3c04
KB
8278if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8279 echo $ac_n "(cached) $ac_c" 1>&6
8280else
8281 cat > conftest.$ac_ext <<EOF
f7a11f8c 8282#line 8283 "configure"
a16d3c04
KB
8283#include "confdefs.h"
8284#include <$ac_hdr>
8285EOF
8286ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
f7a11f8c 8287{ (eval echo configure:8288: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
fa3e4baf 8288ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
a16d3c04
KB
8289if test -z "$ac_err"; then
8290 rm -rf conftest*
8291 eval "ac_cv_header_$ac_safe=yes"
8292else
8293 echo "$ac_err" >&5
8294 echo "configure: failed program was:" >&5
8295 cat conftest.$ac_ext >&5
8296 rm -rf conftest*
8297 eval "ac_cv_header_$ac_safe=no"
8298fi
8299rm -f conftest*
8300fi
8301if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8302 echo "$ac_t""yes" 1>&6
8303 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8304 cat >> confdefs.h <<EOF
8305#define $ac_tr_hdr 1
8306EOF
8307
8308else
8309 echo "$ac_t""no" 1>&6
8310fi
8311done
8312
8313for ac_hdr in wcstr.h
8314do
8315ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8316echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
f7a11f8c 8317echo "configure:8318: checking for $ac_hdr" >&5
a16d3c04
KB
8318if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8319 echo $ac_n "(cached) $ac_c" 1>&6
8320else
8321 cat > conftest.$ac_ext <<EOF
f7a11f8c 8322#line 8323 "configure"
a16d3c04
KB
8323#include "confdefs.h"
8324#include <$ac_hdr>
8325EOF
8326ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
f7a11f8c 8327{ (eval echo configure:8328: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
fa3e4baf 8328ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
a16d3c04
KB
8329if test -z "$ac_err"; then
8330 rm -rf conftest*
8331 eval "ac_cv_header_$ac_safe=yes"
8332else
8333 echo "$ac_err" >&5
8334 echo "configure: failed program was:" >&5
8335 cat conftest.$ac_ext >&5
8336 rm -rf conftest*
8337 eval "ac_cv_header_$ac_safe=no"
8338fi
8339rm -f conftest*
8340fi
8341if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8342 echo "$ac_t""yes" 1>&6
8343 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8344 cat >> confdefs.h <<EOF
8345#define $ac_tr_hdr 1
8346EOF
8347
8348else
8349 echo "$ac_t""no" 1>&6
8350fi
8351done
8352
8353for ac_hdr in fnmatch.h
8354do
8355ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8356echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
f7a11f8c 8357echo "configure:8358: checking for $ac_hdr" >&5
a16d3c04
KB
8358if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8359 echo $ac_n "(cached) $ac_c" 1>&6
8360else
8361 cat > conftest.$ac_ext <<EOF
f7a11f8c 8362#line 8363 "configure"
a16d3c04
KB
8363#include "confdefs.h"
8364#include <$ac_hdr>
8365EOF
8366ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
f7a11f8c 8367{ (eval echo configure:8368: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
fa3e4baf 8368ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
a16d3c04
KB
8369if test -z "$ac_err"; then
8370 rm -rf conftest*
8371 eval "ac_cv_header_$ac_safe=yes"
8372else
8373 echo "$ac_err" >&5
8374 echo "configure: failed program was:" >&5
8375 cat conftest.$ac_ext >&5
8376 rm -rf conftest*
8377 eval "ac_cv_header_$ac_safe=no"
8378fi
8379rm -f conftest*
8380fi
8381if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8382 echo "$ac_t""yes" 1>&6
8383 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8384 cat >> confdefs.h <<EOF
8385#define $ac_tr_hdr 1
8386EOF
8387
8388else
8389 echo "$ac_t""no" 1>&6
8390fi
8391done
8392
f7a11f8c
RR
8393
8394if test "$wxUSE_GUI" = "yes"; then
8395 for ac_hdr in X11/XKBlib.h
a16d3c04
KB
8396do
8397ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8398echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
f7a11f8c 8399echo "configure:8400: checking for $ac_hdr" >&5
a16d3c04
KB
8400if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8401 echo $ac_n "(cached) $ac_c" 1>&6
8402else
8403 cat > conftest.$ac_ext <<EOF
f7a11f8c 8404#line 8405 "configure"
a16d3c04
KB
8405#include "confdefs.h"
8406#include <$ac_hdr>
8407EOF
8408ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
f7a11f8c 8409{ (eval echo configure:8410: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
fa3e4baf 8410ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
a16d3c04
KB
8411if test -z "$ac_err"; then
8412 rm -rf conftest*
8413 eval "ac_cv_header_$ac_safe=yes"
8414else
8415 echo "$ac_err" >&5
8416 echo "configure: failed program was:" >&5
8417 cat conftest.$ac_ext >&5
8418 rm -rf conftest*
8419 eval "ac_cv_header_$ac_safe=no"
8420fi
8421rm -f conftest*
8422fi
8423if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8424 echo "$ac_t""yes" 1>&6
8425 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8426 cat >> confdefs.h <<EOF
8427#define $ac_tr_hdr 1
8428EOF
8429
8430else
8431 echo "$ac_t""no" 1>&6
8432fi
8433done
8434
f7a11f8c 8435fi
a16d3c04
KB
8436
8437
8438echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
f7a11f8c 8439echo "configure:8440: checking for ANSI C header files" >&5
a16d3c04
KB
8440if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
8441 echo $ac_n "(cached) $ac_c" 1>&6
8442else
8443 cat > conftest.$ac_ext <<EOF
f7a11f8c 8444#line 8445 "configure"
a16d3c04
KB
8445#include "confdefs.h"
8446#include <stdlib.h>
8447#include <stdarg.h>
8448#include <string.h>
8449#include <float.h>
8450EOF
8451ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
f7a11f8c 8452{ (eval echo configure:8453: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
fa3e4baf 8453ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
a16d3c04
KB
8454if test -z "$ac_err"; then
8455 rm -rf conftest*
8456 ac_cv_header_stdc=yes
8457else
8458 echo "$ac_err" >&5
8459 echo "configure: failed program was:" >&5
8460 cat conftest.$ac_ext >&5
8461 rm -rf conftest*
8462 ac_cv_header_stdc=no
8463fi
8464rm -f conftest*
8465
8466if test $ac_cv_header_stdc = yes; then
8467 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8468cat > conftest.$ac_ext <<EOF
f7a11f8c 8469#line 8470 "configure"
a16d3c04
KB
8470#include "confdefs.h"
8471#include <string.h>
8472EOF
8473if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8474 egrep "memchr" >/dev/null 2>&1; then
8475 :
8476else
8477 rm -rf conftest*
8478 ac_cv_header_stdc=no
8479fi
8480rm -f conftest*
8481
8482fi
8483
8484if test $ac_cv_header_stdc = yes; then
8485 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8486cat > conftest.$ac_ext <<EOF
f7a11f8c 8487#line 8488 "configure"
a16d3c04
KB
8488#include "confdefs.h"
8489#include <stdlib.h>
8490EOF
8491if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8492 egrep "free" >/dev/null 2>&1; then
8493 :
8494else
8495 rm -rf conftest*
8496 ac_cv_header_stdc=no
8497fi
8498rm -f conftest*
8499
8500fi
8501
8502if test $ac_cv_header_stdc = yes; then
8503 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8504if test "$cross_compiling" = yes; then
8505 :
8506else
8507 cat > conftest.$ac_ext <<EOF
f7a11f8c 8508#line 8509 "configure"
a16d3c04
KB
8509#include "confdefs.h"
8510#include <ctype.h>
8511#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8512#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8513#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8514int main () { int i; for (i = 0; i < 256; i++)
8515if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
8516exit (0); }
8517
8518EOF
f7a11f8c 8519if { (eval echo configure:8520: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
a16d3c04
KB
8520then
8521 :
8522else
8523 echo "configure: failed program was:" >&5
8524 cat conftest.$ac_ext >&5
8525 rm -fr conftest*
8526 ac_cv_header_stdc=no
8527fi
8528rm -fr conftest*
8529fi
8530
8531fi
8532fi
8533
8534echo "$ac_t""$ac_cv_header_stdc" 1>&6
8535if test $ac_cv_header_stdc = yes; then
8536 cat >> confdefs.h <<\EOF
8537#define STDC_HEADERS 1
8538EOF
8539
8540fi
8541
8542echo $ac_n "checking for mode_t""... $ac_c" 1>&6
f7a11f8c 8543echo "configure:8544: checking for mode_t" >&5
a16d3c04
KB
8544if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
8545 echo $ac_n "(cached) $ac_c" 1>&6
8546else
8547 cat > conftest.$ac_ext <<EOF
f7a11f8c 8548#line 8549 "configure"
a16d3c04
KB
8549#include "confdefs.h"
8550#include <sys/types.h>
8551#if STDC_HEADERS
8552#include <stdlib.h>
8553#include <stddef.h>
8554#endif
8555EOF
8556if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
fa3e4baf 8557 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
a16d3c04
KB
8558 rm -rf conftest*
8559 ac_cv_type_mode_t=yes
8560else
8561 rm -rf conftest*
8562 ac_cv_type_mode_t=no
8563fi
8564rm -f conftest*
8565
8566fi
8567echo "$ac_t""$ac_cv_type_mode_t" 1>&6
8568if test $ac_cv_type_mode_t = no; then
8569 cat >> confdefs.h <<\EOF
8570#define mode_t int
8571EOF
8572
8573fi
8574
8575echo $ac_n "checking for off_t""... $ac_c" 1>&6
f7a11f8c 8576echo "configure:8577: checking for off_t" >&5
a16d3c04
KB
8577if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
8578 echo $ac_n "(cached) $ac_c" 1>&6
8579else
8580 cat > conftest.$ac_ext <<EOF
f7a11f8c 8581#line 8582 "configure"
a16d3c04
KB
8582#include "confdefs.h"
8583#include <sys/types.h>
8584#if STDC_HEADERS
8585#include <stdlib.h>
8586#include <stddef.h>
8587#endif
8588EOF
8589if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
fa3e4baf 8590 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
a16d3c04
KB
8591 rm -rf conftest*
8592 ac_cv_type_off_t=yes
8593else
8594 rm -rf conftest*
8595 ac_cv_type_off_t=no
8596fi
8597rm -f conftest*
8598
8599fi
8600echo "$ac_t""$ac_cv_type_off_t" 1>&6
8601if test $ac_cv_type_off_t = no; then
8602 cat >> confdefs.h <<\EOF
8603#define off_t long
8604EOF
8605
8606fi
8607
8608echo $ac_n "checking for pid_t""... $ac_c" 1>&6
f7a11f8c 8609echo "configure:8610: checking for pid_t" >&5
a16d3c04
KB
8610if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
8611 echo $ac_n "(cached) $ac_c" 1>&6
8612else
8613 cat > conftest.$ac_ext <<EOF
f7a11f8c 8614#line 8615 "configure"
a16d3c04
KB
8615#include "confdefs.h"
8616#include <sys/types.h>
8617#if STDC_HEADERS
8618#include <stdlib.h>
8619#include <stddef.h>
8620#endif
8621EOF
8622if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
fa3e4baf 8623 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
a16d3c04
KB
8624 rm -rf conftest*
8625 ac_cv_type_pid_t=yes
8626else
8627 rm -rf conftest*
8628 ac_cv_type_pid_t=no
8629fi
8630rm -f conftest*
8631
8632fi
8633echo "$ac_t""$ac_cv_type_pid_t" 1>&6
8634if test $ac_cv_type_pid_t = no; then
8635 cat >> confdefs.h <<\EOF
8636#define pid_t int
8637EOF
8638
8639fi
8640
8641echo $ac_n "checking for size_t""... $ac_c" 1>&6
f7a11f8c 8642echo "configure:8643: checking for size_t" >&5
a16d3c04
KB
8643if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
8644 echo $ac_n "(cached) $ac_c" 1>&6
8645else
8646 cat > conftest.$ac_ext <<EOF
f7a11f8c 8647#line 8648 "configure"
a16d3c04
KB
8648#include "confdefs.h"
8649#include <sys/types.h>
8650#if STDC_HEADERS
8651#include <stdlib.h>
8652#include <stddef.h>
8653#endif
8654EOF
8655if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
fa3e4baf 8656 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
a16d3c04
KB
8657 rm -rf conftest*
8658 ac_cv_type_size_t=yes
8659else
8660 rm -rf conftest*
8661 ac_cv_type_size_t=no
8662fi
8663rm -f conftest*
8664
8665fi
8666echo "$ac_t""$ac_cv_type_size_t" 1>&6
8667if test $ac_cv_type_size_t = no; then
8668 cat >> confdefs.h <<\EOF
8669#define size_t unsigned
8670EOF
8671
8672fi
8673
8674echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
f7a11f8c 8675echo "configure:8676: checking for uid_t in sys/types.h" >&5
a16d3c04
KB
8676if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
8677 echo $ac_n "(cached) $ac_c" 1>&6
8678else
8679 cat > conftest.$ac_ext <<EOF
f7a11f8c 8680#line 8681 "configure"
a16d3c04
KB
8681#include "confdefs.h"
8682#include <sys/types.h>
8683EOF
8684if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8685 egrep "uid_t" >/dev/null 2>&1; then
8686 rm -rf conftest*
8687 ac_cv_type_uid_t=yes
8688else
8689 rm -rf conftest*
8690 ac_cv_type_uid_t=no
8691fi
8692rm -f conftest*
8693
8694fi
8695
8696echo "$ac_t""$ac_cv_type_uid_t" 1>&6
8697if test $ac_cv_type_uid_t = no; then
8698 cat >> confdefs.h <<\EOF
8699#define uid_t int
8700EOF
8701
8702 cat >> confdefs.h <<\EOF
8703#define gid_t int
8704EOF
8705
8706fi
8707
8708
8709
8710
8711echo $ac_n "checking for working const""... $ac_c" 1>&6
f7a11f8c 8712echo "configure:8713: checking for working const" >&5
a16d3c04
KB
8713if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
8714 echo $ac_n "(cached) $ac_c" 1>&6
8715else
8716 cat > conftest.$ac_ext <<EOF
f7a11f8c 8717#line 8718 "configure"
a16d3c04
KB
8718#include "confdefs.h"
8719
8720int main() {
8721
8722/* Ultrix mips cc rejects this. */
8723typedef int charset[2]; const charset x;
8724/* SunOS 4.1.1 cc rejects this. */
8725char const *const *ccp;
8726char **p;
8727/* NEC SVR4.0.2 mips cc rejects this. */
8728struct point {int x, y;};
8729static struct point const zero = {0,0};
8730/* AIX XL C 1.02.0.0 rejects this.
8731 It does not let you subtract one const X* pointer from another in an arm
8732 of an if-expression whose if-part is not a constant expression */
8733const char *g = "string";
8734ccp = &g + (g ? g-g : 0);
8735/* HPUX 7.0 cc rejects these. */
8736++ccp;
8737p = (char**) ccp;
8738ccp = (char const *const *) p;
8739{ /* SCO 3.2v4 cc rejects this. */
8740 char *t;
8741 char const *s = 0 ? (char *) 0 : (char const *) 0;
8742
8743 *t++ = 0;
8744}
8745{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8746 int x[] = {25, 17};
8747 const int *foo = &x[0];
8748 ++foo;
8749}
8750{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8751 typedef const int *iptr;
8752 iptr p = 0;
8753 ++p;
8754}
8755{ /* AIX XL C 1.02.0.0 rejects this saying
8756 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8757 struct s { int j; const int *ap[3]; };
8758 struct s *b; b->j = 5;
8759}
8760{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8761 const int foo = 10;
8762}
8763
8764; return 0; }
8765EOF
f7a11f8c 8766if { (eval echo configure:8767: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a16d3c04
KB
8767 rm -rf conftest*
8768 ac_cv_c_const=yes
8769else
8770 echo "configure: failed program was:" >&5
8771 cat conftest.$ac_ext >&5
8772 rm -rf conftest*
8773 ac_cv_c_const=no
8774fi
8775rm -f conftest*
8776fi
8777
8778echo "$ac_t""$ac_cv_c_const" 1>&6
8779if test $ac_cv_c_const = no; then
8780 cat >> confdefs.h <<\EOF
8781#define const
8782EOF
8783
8784fi
8785
8786echo $ac_n "checking for inline""... $ac_c" 1>&6
f7a11f8c 8787echo "configure:8788: checking for inline" >&5
a16d3c04
KB
8788if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
8789 echo $ac_n "(cached) $ac_c" 1>&6
8790else
8791 ac_cv_c_inline=no
8792for ac_kw in inline __inline__ __inline; do
8793 cat > conftest.$ac_ext <<EOF
f7a11f8c 8794#line 8795 "configure"
a16d3c04
KB
8795#include "confdefs.h"
8796
8797int main() {
8798} $ac_kw foo() {
8799; return 0; }
8800EOF
f7a11f8c 8801if { (eval echo configure:8802: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a16d3c04
KB
8802 rm -rf conftest*
8803 ac_cv_c_inline=$ac_kw; break
8804else
8805 echo "configure: failed program was:" >&5
8806 cat conftest.$ac_ext >&5
8807fi
8808rm -f conftest*
8809done
8810
8811fi
8812
8813echo "$ac_t""$ac_cv_c_inline" 1>&6
8814case "$ac_cv_c_inline" in
8815 inline | yes) ;;
8816 no) cat >> confdefs.h <<\EOF
8817#define inline
8818EOF
8819 ;;
8820 *) cat >> confdefs.h <<EOF
8821#define inline $ac_cv_c_inline
8822EOF
8823 ;;
8824esac
8825
8826
8827echo $ac_n "checking size of char""... $ac_c" 1>&6
f7a11f8c 8828echo "configure:8829: checking size of char" >&5
a16d3c04
KB
8829if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then
8830 echo $ac_n "(cached) $ac_c" 1>&6
8831else
8832 if test "$cross_compiling" = yes; then
8833 ac_cv_sizeof_char=1
8834else
8835 cat > conftest.$ac_ext <<EOF
f7a11f8c 8836#line 8837 "configure"
a16d3c04
KB
8837#include "confdefs.h"
8838#include <stdio.h>
8839main()
8840{
8841 FILE *f=fopen("conftestval", "w");
8842 if (!f) exit(1);
8843 fprintf(f, "%d\n", sizeof(char));
8844 exit(0);
8845}
8846EOF
f7a11f8c 8847if { (eval echo configure:8848: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
a16d3c04
KB
8848then
8849 ac_cv_sizeof_char=`cat conftestval`
8850else
8851 echo "configure: failed program was:" >&5
8852 cat conftest.$ac_ext >&5
8853 rm -fr conftest*
8854 ac_cv_sizeof_char=0
8855fi
8856rm -fr conftest*
8857fi
8858
8859fi
8860echo "$ac_t""$ac_cv_sizeof_char" 1>&6
8861cat >> confdefs.h <<EOF
8862#define SIZEOF_CHAR $ac_cv_sizeof_char
8863EOF
8864
8865
8866echo $ac_n "checking size of short""... $ac_c" 1>&6
f7a11f8c 8867echo "configure:8868: checking size of short" >&5
a16d3c04
KB
8868if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
8869 echo $ac_n "(cached) $ac_c" 1>&6
8870else
8871 if test "$cross_compiling" = yes; then
8872 ac_cv_sizeof_short=2
8873else
8874 cat > conftest.$ac_ext <<EOF
f7a11f8c 8875#line 8876 "configure"
a16d3c04
KB
8876#include "confdefs.h"
8877#include <stdio.h>
8878main()
8879{
8880 FILE *f=fopen("conftestval", "w");
8881 if (!f) exit(1);
8882 fprintf(f, "%d\n", sizeof(short));
8883 exit(0);
8884}
8885EOF
f7a11f8c 8886if { (eval echo configure:8887: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
a16d3c04
KB
8887then
8888 ac_cv_sizeof_short=`cat conftestval`
8889else
8890 echo "configure: failed program was:" >&5
8891 cat conftest.$ac_ext >&5
8892 rm -fr conftest*
8893 ac_cv_sizeof_short=0
8894fi
8895rm -fr conftest*
8896fi
8897
8898fi
8899echo "$ac_t""$ac_cv_sizeof_short" 1>&6
8900cat >> confdefs.h <<EOF
8901#define SIZEOF_SHORT $ac_cv_sizeof_short
8902EOF
8903
8904
8905echo $ac_n "checking size of int *""... $ac_c" 1>&6
f7a11f8c 8906echo "configure:8907: checking size of int *" >&5
a16d3c04
KB
8907if eval "test \"`echo '$''{'ac_cv_sizeof_int_p'+set}'`\" = set"; then
8908 echo $ac_n "(cached) $ac_c" 1>&6
8909else
8910 if test "$cross_compiling" = yes; then
8911 ac_cv_sizeof_int_p=4
8912else
8913 cat > conftest.$ac_ext <<EOF
f7a11f8c 8914#line 8915 "configure"
a16d3c04
KB
8915#include "confdefs.h"
8916#include <stdio.h>
8917main()
8918{
8919 FILE *f=fopen("conftestval", "w");
8920 if (!f) exit(1);
8921 fprintf(f, "%d\n", sizeof(int *));
8922 exit(0);
8923}
8924EOF
f7a11f8c 8925if { (eval echo configure:8926: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
a16d3c04
KB
8926then
8927 ac_cv_sizeof_int_p=`cat conftestval`
8928else
8929 echo "configure: failed program was:" >&5
8930 cat conftest.$ac_ext >&5
8931 rm -fr conftest*
8932 ac_cv_sizeof_int_p=0
8933fi
8934rm -fr conftest*
8935fi
8936
8937fi
8938echo "$ac_t""$ac_cv_sizeof_int_p" 1>&6
8939cat >> confdefs.h <<EOF
8940#define SIZEOF_INT_P $ac_cv_sizeof_int_p
8941EOF
8942
8943
8944echo $ac_n "checking size of int""... $ac_c" 1>&6
f7a11f8c 8945echo "configure:8946: checking size of int" >&5
a16d3c04
KB
8946if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
8947 echo $ac_n "(cached) $ac_c" 1>&6
8948else
8949 if test "$cross_compiling" = yes; then
8950 ac_cv_sizeof_int=4
8951else
8952 cat > conftest.$ac_ext <<EOF
f7a11f8c 8953#line 8954 "configure"
a16d3c04
KB
8954#include "confdefs.h"
8955#include <stdio.h>
8956main()
8957{
8958 FILE *f=fopen("conftestval", "w");
8959 if (!f) exit(1);
8960 fprintf(f, "%d\n", sizeof(int));
8961 exit(0);
8962}
8963EOF
f7a11f8c 8964if { (eval echo configure:8965: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
a16d3c04
KB
8965then
8966 ac_cv_sizeof_int=`cat conftestval`
8967else
8968 echo "configure: failed program was:" >&5
8969 cat conftest.$ac_ext >&5
8970 rm -fr conftest*
8971 ac_cv_sizeof_int=0
8972fi
8973rm -fr conftest*
8974fi
8975
8976fi
8977echo "$ac_t""$ac_cv_sizeof_int" 1>&6
8978cat >> confdefs.h <<EOF
8979#define SIZEOF_INT $ac_cv_sizeof_int
8980EOF
8981
8982
8983echo $ac_n "checking size of long""... $ac_c" 1>&6
f7a11f8c 8984echo "configure:8985: checking size of long" >&5
a16d3c04
KB
8985if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
8986 echo $ac_n "(cached) $ac_c" 1>&6
8987else
8988 if test "$cross_compiling" = yes; then
8989 ac_cv_sizeof_long=4
8990else
8991 cat > conftest.$ac_ext <<EOF
f7a11f8c 8992#line 8993 "configure"
a16d3c04
KB
8993#include "confdefs.h"
8994#include <stdio.h>
8995main()
8996{
8997 FILE *f=fopen("conftestval", "w");
8998 if (!f) exit(1);
8999 fprintf(f, "%d\n", sizeof(long));
9000 exit(0);
9001}
9002EOF
f7a11f8c 9003if { (eval echo configure:9004: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
a16d3c04
KB
9004then
9005 ac_cv_sizeof_long=`cat conftestval`
9006else
9007 echo "configure: failed program was:" >&5
9008 cat conftest.$ac_ext >&5
9009 rm -fr conftest*
9010 ac_cv_sizeof_long=0
9011fi
9012rm -fr conftest*
9013fi
9014
9015fi
9016echo "$ac_t""$ac_cv_sizeof_long" 1>&6
9017cat >> confdefs.h <<EOF
9018#define SIZEOF_LONG $ac_cv_sizeof_long
9019EOF
9020
9021
9022echo $ac_n "checking size of long long""... $ac_c" 1>&6
f7a11f8c 9023echo "configure:9024: checking size of long long" >&5
a16d3c04
KB
9024if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
9025 echo $ac_n "(cached) $ac_c" 1>&6
9026else
9027 if test "$cross_compiling" = yes; then
9028 ac_cv_sizeof_long_long=0
9029else
9030 cat > conftest.$ac_ext <<EOF
f7a11f8c 9031#line 9032 "configure"
a16d3c04
KB
9032#include "confdefs.h"
9033#include <stdio.h>
9034main()
9035{
9036 FILE *f=fopen("conftestval", "w");
9037 if (!f) exit(1);
9038 fprintf(f, "%d\n", sizeof(long long));
9039 exit(0);
9040}
9041EOF
f7a11f8c 9042if { (eval echo configure:9043: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
a16d3c04
KB
9043then
9044 ac_cv_sizeof_long_long=`cat conftestval`
9045else
9046 echo "configure: failed program was:" >&5
9047 cat conftest.$ac_ext >&5
9048 rm -fr conftest*
9049 ac_cv_sizeof_long_long=0
9050fi
9051rm -fr conftest*
9052fi
9053
9054fi
9055echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
9056cat >> confdefs.h <<EOF
9057#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
9058EOF
9059
9060
9061
9062echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
f7a11f8c 9063echo "configure:9064: checking whether byte ordering is bigendian" >&5
a16d3c04
KB
9064if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
9065 echo $ac_n "(cached) $ac_c" 1>&6
9066else
9067 ac_cv_c_bigendian=unknown
9068# See if sys/param.h defines the BYTE_ORDER macro.
9069cat > conftest.$ac_ext <<EOF
f7a11f8c 9070#line 9071 "configure"
a16d3c04
KB
9071#include "confdefs.h"
9072#include <sys/types.h>
9073#include <sys/param.h>
9074int main() {
9075
9076#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
9077 bogus endian macros
9078#endif
9079; return 0; }
9080EOF
f7a11f8c 9081if { (eval echo configure:9082: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a16d3c04
KB
9082 rm -rf conftest*
9083 # It does; now see whether it defined to BIG_ENDIAN or not.
9084cat > conftest.$ac_ext <<EOF
f7a11f8c 9085#line 9086 "configure"
a16d3c04
KB
9086#include "confdefs.h"
9087#include <sys/types.h>
9088#include <sys/param.h>
9089int main() {
9090
9091#if BYTE_ORDER != BIG_ENDIAN
9092 not big endian
9093#endif
9094; return 0; }
9095EOF
f7a11f8c 9096if { (eval echo configure:9097: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a16d3c04
KB
9097 rm -rf conftest*
9098 ac_cv_c_bigendian=yes
9099else
9100 echo "configure: failed program was:" >&5
9101 cat conftest.$ac_ext >&5
9102 rm -rf conftest*
9103 ac_cv_c_bigendian=no
9104fi
9105rm -f conftest*
9106else
9107 echo "configure: failed program was:" >&5
9108 cat conftest.$ac_ext >&5
9109fi
9110rm -f conftest*
9111if test $ac_cv_c_bigendian = unknown; then
9112if test "$cross_compiling" = yes; then
9113 ac_cv_c_bigendian=unknown
9114else
9115 cat > conftest.$ac_ext <<EOF
f7a11f8c 9116#line 9117 "configure"
a16d3c04
KB
9117#include "confdefs.h"
9118main () {
9119 /* Are we little or big endian? From Harbison&Steele. */
9120 union
9121 {
9122 long l;
9123 char c[sizeof (long)];
9124 } u;
9125 u.l = 1;
9126 exit (u.c[sizeof (long) - 1] == 1);
9127}
9128EOF
f7a11f8c 9129if { (eval echo configure:9130: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
a16d3c04
KB
9130then
9131 ac_cv_c_bigendian=no
9132else
9133 echo "configure: failed program was:" >&5
9134 cat conftest.$ac_ext >&5
9135 rm -fr conftest*
9136 ac_cv_c_bigendian=yes
9137fi
9138rm -fr conftest*
9139fi
9140
9141fi
9142fi
9143
9144echo "$ac_t""$ac_cv_c_bigendian" 1>&6
9145if test $ac_cv_c_bigendian = unknown; then
9146 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
9147fi
9148if test $ac_cv_c_bigendian = yes; then
9149 cat >> confdefs.h <<\EOF
9150#define WORDS_BIGENDIAN 1
9151EOF
9152
9153fi
9154
9155
9156
9157 if test "$cross_compiling" = "yes"; then
9158 cat >> confdefs.h <<\EOF
9159#define wxUSE_IOSTREAMH 1
9160EOF
9161
9162 else
9163
9164 ac_ext=C
9165# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9166ac_cpp='$CXXCPP $CPPFLAGS'
9167ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
fa3e4baf 9168ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
a16d3c04
KB
9169cross_compiling=$ac_cv_prog_cxx_cross
9170
9171
9172 for ac_hdr in iostream
9173do
9174ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9175echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
f7a11f8c 9176echo "configure:9177: checking for $ac_hdr" >&5
a16d3c04
KB
9177if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9178 echo $ac_n "(cached) $ac_c" 1>&6
9179else
9180 cat > conftest.$ac_ext <<EOF
f7a11f8c 9181#line 9182 "configure"
a16d3c04
KB
9182#include "confdefs.h"
9183#include <$ac_hdr>
9184EOF
9185ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
f7a11f8c 9186{ (eval echo configure:9187: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
fa3e4baf 9187ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
a16d3c04
KB
9188if test -z "$ac_err"; then
9189 rm -rf conftest*
9190 eval "ac_cv_header_$ac_safe=yes"
9191else
9192 echo "$ac_err" >&5
9193 echo "configure: failed program was:" >&5
9194 cat conftest.$ac_ext >&5
9195 rm -rf conftest*
9196 eval "ac_cv_header_$ac_safe=no"
9197fi
9198rm -f conftest*
9199fi
9200if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9201 echo "$ac_t""yes" 1>&6
9202 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9203 cat >> confdefs.h <<EOF
9204#define $ac_tr_hdr 1
9205EOF
9206
9207else
9208 echo "$ac_t""no" 1>&6
9209fi
9210done
9211
9212
9213 if test "x$HAVE_IOSTREAM" = x ; then
9214 cat >> confdefs.h <<\EOF
9215#define wxUSE_IOSTREAMH 1
9216EOF
9217
9218 else
9219 :
9220 fi
9221
9222 ac_ext=c
9223# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9224ac_cpp='$CPP $CPPFLAGS'
9225ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
fa3e4baf 9226ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
a16d3c04
KB
9227cross_compiling=$ac_cv_prog_cc_cross
9228
9229 fi
9230
9231
9232
9233 echo $ac_n "checking if C++ compiler supports bool""... $ac_c" 1>&6
f7a11f8c 9234echo "configure:9235: checking if C++ compiler supports bool" >&5
a16d3c04
KB
9235if eval "test \"`echo '$''{'wx_cv_cpp_bool'+set}'`\" = set"; then
9236 echo $ac_n "(cached) $ac_c" 1>&6
9237else
9238
9239
9240 ac_ext=C
9241# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9242ac_cpp='$CXXCPP $CPPFLAGS'
9243ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
fa3e4baf 9244ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
a16d3c04
KB
9245cross_compiling=$ac_cv_prog_cxx_cross
9246
9247
9248 cat > conftest.$ac_ext <<EOF
f7a11f8c 9249#line 9250 "configure"
a16d3c04
KB
9250#include "confdefs.h"
9251
9252
9253int main() {
9254
9255 bool b = true;
9256
9257 return 0;
9258
9259; return 0; }
9260EOF
f7a11f8c 9261if { (eval echo configure:9262: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a16d3c04
KB
9262 rm -rf conftest*
9263
9264 cat >> confdefs.h <<\EOF
9265#define HAVE_BOOL 1
9266EOF
9267
9268 wx_cv_cpp_bool=yes
9269
9270else
9271 echo "configure: failed program was:" >&5
9272 cat conftest.$ac_ext >&5
9273 rm -rf conftest*
9274
9275 wx_cv_cpp_bool=no
9276
9277
9278fi
9279rm -f conftest*
9280
9281 ac_ext=c
9282# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9283ac_cpp='$CPP $CPPFLAGS'
9284ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
fa3e4baf 9285ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
a16d3c04
KB
9286cross_compiling=$ac_cv_prog_cc_cross
9287
9288
9289fi
9290
9291echo "$ac_t""$wx_cv_cpp_bool" 1>&6
9292
9293 if test "$wx_cv_cpp_bool" = "yes"; then
9294 cat >> confdefs.h <<\EOF
9295#define HAVE_BOOL 1
9296EOF
9297
9298 fi
9299
9300
9301
9302 echo $ac_n "checking if size_t and int are different types""... $ac_c" 1>&6
f7a11f8c 9303echo "configure:9304: checking if size_t and int are different types" >&5
a16d3c04
KB
9304if eval "test \"`echo '$''{'wx_cv_cpp_sizet_not_int'+set}'`\" = set"; then
9305 echo $ac_n "(cached) $ac_c" 1>&6
9306else
9307
9308
9309 ac_ext=C
9310# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9311ac_cpp='$CXXCPP $CPPFLAGS'
9312ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
fa3e4baf 9313ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
a16d3c04
KB
9314cross_compiling=$ac_cv_prog_cxx_cross
9315
9316
9317 if test "$cross_compiling" = yes; then
9318 wx_cv_cpp_sizet_not_int=no
9319
9320else
9321 cat > conftest.$ac_ext <<EOF
f7a11f8c 9322#line 9323 "configure"
a16d3c04
KB
9323#include "confdefs.h"
9324#ifdef __cplusplus
9325extern "C" void exit(int);
9326#endif
9327
9328 #include <stdlib.h>
9329
9330 class S
9331 {
9332 public:
9333 S(char *s) { m_s = s; }
9334
9335 char operator[](size_t n) const { return m_s[n]; }
9336 char operator[](int n) const { return m_s[n]; }
9337
9338 private:
9339 char *m_s;
9340 };
9341
9342 int main()
9343 {
9344 S s("dummy");
9345 size_t n1 = 2;
9346 int n2 = 3;
9347
9348 return s[n1] == s[n2];
9349 }
9350
9351EOF
f7a11f8c 9352if { (eval echo configure:9353: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
a16d3c04
KB
9353then
9354 cat >> confdefs.h <<\EOF
9355#define wxUSE_SIZE_T_STRING_OPERATOR 1
9356EOF
9357 wx_cv_cpp_sizet_not_int=yes
9358else
9359 echo "configure: failed program was:" >&5
9360 cat conftest.$ac_ext >&5
9361 rm -fr conftest*
9362 wx_cv_cpp_sizet_not_int=no
9363fi
9364rm -fr conftest*
9365fi
9366
9367
9368 ac_ext=c
9369# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9370ac_cpp='$CPP $CPPFLAGS'
9371ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
fa3e4baf 9372ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
a16d3c04
KB
9373cross_compiling=$ac_cv_prog_cc_cross
9374
9375
9376fi
9377
9378echo "$ac_t""$wx_cv_cpp_sizet_not_int" 1>&6
9379
9380
9381
9382echo $ac_n "checking if you need GNU extensions""... $ac_c" 1>&6
f7a11f8c 9383echo "configure:9384: checking if you need GNU extensions" >&5
a16d3c04
KB
9384if eval "test \"`echo '$''{'wx_cv_gnu_extensions'+set}'`\" = set"; then
9385 echo $ac_n "(cached) $ac_c" 1>&6
9386else
9387
9388 cat > conftest.$ac_ext <<EOF
f7a11f8c 9389#line 9390 "configure"
a16d3c04
KB
9390#include "confdefs.h"
9391#include <features.h>
9392int main() {
9393
9394
9395#ifndef __GNU_LIBRARY__
9396 Compile error wanted
9397#endif
9398
9399
9400; return 0; }
9401EOF
f7a11f8c 9402if { (eval echo configure:9403: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a16d3c04
KB
9403 rm -rf conftest*
9404 wx_cv_gnu_extensions=yes
9405else
9406 echo "configure: failed program was:" >&5
9407 cat conftest.$ac_ext >&5
9408 rm -rf conftest*
9409 wx_cv_gnu_extensions=no
9410fi
9411rm -f conftest*
9412
9413fi
9414
9415
9416echo "$ac_t""$wx_cv_gnu_extensions" 1>&6
9417if test "$wx_cv_gnu_extensions" = "yes"; then
9418 cat >> confdefs.h <<EOF
9419#define _GNU_SOURCE 1
9420EOF
9421
9422fi
9423
9424
9425
9426echo $ac_n "checking for wcslen in -lc""... $ac_c" 1>&6
f7a11f8c 9427echo "configure:9428: checking for wcslen in -lc" >&5
a16d3c04
KB
9428ac_lib_var=`echo c'_'wcslen | sed 'y%./+-%__p_%'`
9429if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9430 echo $ac_n "(cached) $ac_c" 1>&6
9431else
9432 ac_save_LIBS="$LIBS"
9433LIBS="-lc $LIBS"
9434cat > conftest.$ac_ext <<EOF
f7a11f8c 9435#line 9436 "configure"
a16d3c04
KB
9436#include "confdefs.h"
9437/* Override any gcc2 internal prototype to avoid an error. */
9438/* We use char because int might match the return type of a gcc2
9439 builtin and then its argument prototype would still apply. */
9440char wcslen();
9441
9442int main() {
9443wcslen()
9444; return 0; }
9445EOF
f7a11f8c 9446if { (eval echo configure:9447: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a16d3c04
KB
9447 rm -rf conftest*
9448 eval "ac_cv_lib_$ac_lib_var=yes"
9449else
9450 echo "configure: failed program was:" >&5
9451 cat conftest.$ac_ext >&5
9452 rm -rf conftest*
9453 eval "ac_cv_lib_$ac_lib_var=no"
9454fi
9455rm -f conftest*
9456LIBS="$ac_save_LIBS"
9457
9458fi
9459if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9460 echo "$ac_t""yes" 1>&6
9461
9462 cat >> confdefs.h <<\EOF
9463#define HAVE_WCSLEN 1
9464EOF
9465
9466 WCHAR_LINK=""
9467
9468else
9469 echo "$ac_t""no" 1>&6
9470
9471 echo $ac_n "checking for wcslen in -lw""... $ac_c" 1>&6
f7a11f8c 9472echo "configure:9473: checking for wcslen in -lw" >&5
a16d3c04
KB
9473ac_lib_var=`echo w'_'wcslen | sed 'y%./+-%__p_%'`
9474if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9475 echo $ac_n "(cached) $ac_c" 1>&6
9476else
9477 ac_save_LIBS="$LIBS"
9478LIBS="-lw $LIBS"
9479cat > conftest.$ac_ext <<EOF
f7a11f8c 9480#line 9481 "configure"
a16d3c04
KB
9481#include "confdefs.h"
9482/* Override any gcc2 internal prototype to avoid an error. */
9483/* We use char because int might match the return type of a gcc2
9484 builtin and then its argument prototype would still apply. */
9485char wcslen();
9486
9487int main() {
9488wcslen()
9489; return 0; }
9490EOF
f7a11f8c 9491if { (eval echo configure:9492: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a16d3c04
KB
9492 rm -rf conftest*
9493 eval "ac_cv_lib_$ac_lib_var=yes"
9494else
9495 echo "configure: failed program was:" >&5
9496 cat conftest.$ac_ext >&5
9497 rm -rf conftest*
9498 eval "ac_cv_lib_$ac_lib_var=no"
9499fi
9500rm -f conftest*
9501LIBS="$ac_save_LIBS"
9502
9503fi
9504if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9505 echo "$ac_t""yes" 1>&6
9506
9507 cat >> confdefs.h <<\EOF
9508#define HAVE_WCSLEN 1
9509EOF
9510
9511 WCHAR_LINK="-lw"
9512
9513else
9514 echo "$ac_t""no" 1>&6
9515fi
9516
9517
9518fi
9519
9520
9521echo $ac_n "checking for vprintf""... $ac_c" 1>&6
f7a11f8c 9522echo "configure:9523: checking for vprintf" >&5
a16d3c04
KB
9523if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
9524 echo $ac_n "(cached) $ac_c" 1>&6
9525else
9526 cat > conftest.$ac_ext <<EOF
f7a11f8c 9527#line 9528 "configure"
a16d3c04
KB
9528#include "confdefs.h"
9529/* System header to define __stub macros and hopefully few prototypes,
9530 which can conflict with char vprintf(); below. */
9531#include <assert.h>
9532/* Override any gcc2 internal prototype to avoid an error. */
9533/* We use char because int might match the return type of a gcc2
9534 builtin and then its argument prototype would still apply. */
9535char vprintf();
f7a11f8c 9536char (*f)();
a16d3c04
KB
9537
9538int main() {
9539
9540/* The GNU C library defines this for functions which it implements
9541 to always fail with ENOSYS. Some functions are actually named
9542 something starting with __ and the normal name is an alias. */
9543#if defined (__stub_vprintf) || defined (__stub___vprintf)
9544choke me
9545#else
f7a11f8c 9546f = vprintf;
a16d3c04
KB
9547#endif
9548
9549; return 0; }
9550EOF
f7a11f8c 9551if { (eval echo configure:9552: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a16d3c04
KB
9552 rm -rf conftest*
9553 eval "ac_cv_func_vprintf=yes"
9554else
9555 echo "configure: failed program was:" >&5
9556 cat conftest.$ac_ext >&5
9557 rm -rf conftest*
9558 eval "ac_cv_func_vprintf=no"
9559fi
9560rm -f conftest*
9561fi
9562
9563if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
9564 echo "$ac_t""yes" 1>&6
9565 cat >> confdefs.h <<\EOF
9566#define HAVE_VPRINTF 1
9567EOF
9568
9569else
9570 echo "$ac_t""no" 1>&6
9571fi
9572
9573if test "$ac_cv_func_vprintf" != yes; then
9574echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
f7a11f8c 9575echo "configure:9576: checking for _doprnt" >&5
a16d3c04
KB
9576if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
9577 echo $ac_n "(cached) $ac_c" 1>&6
9578else
9579 cat > conftest.$ac_ext <<EOF
f7a11f8c 9580#line 9581 "configure"
a16d3c04
KB
9581#include "confdefs.h"
9582/* System header to define __stub macros and hopefully few prototypes,
9583 which can conflict with char _doprnt(); below. */
9584#include <assert.h>
9585/* Override any gcc2 internal prototype to avoid an error. */
9586/* We use char because int might match the return type of a gcc2
9587 builtin and then its argument prototype would still apply. */
9588char _doprnt();
f7a11f8c 9589char (*f)();
a16d3c04
KB
9590
9591int main() {
9592
9593/* The GNU C library defines this for functions which it implements
9594 to always fail with ENOSYS. Some functions are actually named
9595 something starting with __ and the normal name is an alias. */
9596#if defined (__stub__doprnt) || defined (__stub____doprnt)
9597choke me
9598#else
f7a11f8c 9599f = _doprnt;
a16d3c04
KB
9600#endif
9601
9602; return 0; }
9603EOF
f7a11f8c 9604if { (eval echo configure:9605: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a16d3c04
KB
9605 rm -rf conftest*
9606 eval "ac_cv_func__doprnt=yes"
9607else
9608 echo "configure: failed program was:" >&5
9609 cat conftest.$ac_ext >&5
9610 rm -rf conftest*
9611 eval "ac_cv_func__doprnt=no"
9612fi
9613rm -f conftest*
9614fi
9615
9616if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
9617 echo "$ac_t""yes" 1>&6
9618 cat >> confdefs.h <<\EOF
9619#define HAVE_DOPRNT 1
9620EOF
9621
9622else
9623 echo "$ac_t""no" 1>&6
9624fi
9625
9626fi
9627
9628
9629for ac_func in vsnprintf
9630do
9631echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
f7a11f8c 9632echo "configure:9633: checking for $ac_func" >&5
a16d3c04
KB
9633if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9634 echo $ac_n "(cached) $ac_c" 1>&6
9635else
9636 cat > conftest.$ac_ext <<EOF
f7a11f8c 9637#line 9638 "configure"
a16d3c04
KB
9638#include "confdefs.h"
9639/* System header to define __stub macros and hopefully few prototypes,
9640 which can conflict with char $ac_func(); below. */
9641#include <assert.h>
9642/* Override any gcc2 internal prototype to avoid an error. */
9643/* We use char because int might match the return type of a gcc2
9644 builtin and then its argument prototype would still apply. */
9645char $ac_func();
f7a11f8c 9646char (*f)();
a16d3c04
KB
9647
9648int main() {
9649
9650/* The GNU C library defines this for functions which it implements
9651 to always fail with ENOSYS. Some functions are actually named
9652 something starting with __ and the normal name is an alias. */
9653#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9654choke me
9655#else
f7a11f8c 9656f = $ac_func;
a16d3c04
KB
9657#endif
9658
9659; return 0; }
9660EOF
f7a11f8c 9661if { (eval echo configure:9662: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a16d3c04
KB
9662 rm -rf conftest*
9663 eval "ac_cv_func_$ac_func=yes"
9664else
9665 echo "configure: failed program was:" >&5
9666 cat conftest.$ac_ext >&5
9667 rm -rf conftest*
9668 eval "ac_cv_func_$ac_func=no"
9669fi
9670rm -f conftest*
9671fi
9672
9673if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9674 echo "$ac_t""yes" 1>&6
9675 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9676 cat >> confdefs.h <<EOF
9677#define $ac_tr_func 1
9678EOF
9679 cat >> confdefs.h <<\EOF
9680#define HAVE_VSNPRINTF 1
9681EOF
9682
9683else
9684 echo "$ac_t""no" 1>&6
9685echo "configure: warning: unsafe function sprintf will be used instead of snprintf" 1>&2
9686
9687fi
9688done
9689
9690
9691
9692ac_ext=C
9693# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9694ac_cpp='$CXXCPP $CPPFLAGS'
9695ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
fa3e4baf 9696ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
a16d3c04
KB
9697cross_compiling=$ac_cv_prog_cxx_cross
9698
9699
9700echo $ac_n "checking for vsscanf""... $ac_c" 1>&6
f7a11f8c 9701echo "configure:9702: checking for vsscanf" >&5
a16d3c04
KB
9702if eval "test \"`echo '$''{'wx_cv_func_vsscanf'+set}'`\" = set"; then
9703 echo $ac_n "(cached) $ac_c" 1>&6
9704else
9705
9706 if test "$cross_compiling" = yes; then
9707 wx_cv_func_vsscanf=no
9708
9709else
9710 cat > conftest.$ac_ext <<EOF
f7a11f8c 9711#line 9712 "configure"
a16d3c04
KB
9712#include "confdefs.h"
9713#ifdef __cplusplus
9714extern "C" void exit(int);
9715#endif
9716
9717 #include <stdio.h>
9718 #include <stdarg.h>
9719
9720 int try_vsscanf(const char *format, ...)
9721 {
9722 va_list ap;
9723 va_start(ap, format);
9724
9725 vsscanf("17", format, ap);
9726
9727 va_end(ap);
9728 }
9729
9730 int main()
9731 {
9732 int i;
9733 try_vsscanf("%d", &i);
9734 return i == 17 ? 0 : 1;
9735 }
9736
9737EOF
f7a11f8c 9738if { (eval echo configure:9739: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
a16d3c04
KB
9739then
9740
9741 cat >> confdefs.h <<\EOF
9742#define HAVE_VSSCANF 1
9743EOF
9744
9745 wx_cv_func_vsscanf=yes
9746
9747else
9748 echo "configure: failed program was:" >&5
9749 cat conftest.$ac_ext >&5
9750 rm -fr conftest*
9751 wx_cv_func_vsscanf=no
9752fi
9753rm -fr conftest*
9754fi
9755
9756
9757fi
9758
9759echo "$ac_t""$wx_cv_func_vsscanf" 1>&6
9760
9761ac_ext=c
9762# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9763ac_cpp='$CPP $CPPFLAGS'
9764ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
fa3e4baf 9765ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
a16d3c04
KB
9766cross_compiling=$ac_cv_prog_cc_cross
9767
9768
9769for ac_func in vfork
9770do
9771echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
f7a11f8c 9772echo "configure:9773: checking for $ac_func" >&5
a16d3c04
KB
9773if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9774 echo $ac_n "(cached) $ac_c" 1>&6
9775else
9776 cat > conftest.$ac_ext <<EOF
f7a11f8c 9777#line 9778 "configure"
a16d3c04
KB
9778#include "confdefs.h"
9779/* System header to define __stub macros and hopefully few prototypes,
9780 which can conflict with char $ac_func(); below. */
9781#include <assert.h>
9782/* Override any gcc2 internal prototype to avoid an error. */
9783/* We use char because int might match the return type of a gcc2
9784 builtin and then its argument prototype would still apply. */
9785char $ac_func();
f7a11f8c 9786char (*f)();
a16d3c04
KB
9787
9788int main() {
9789
9790/* The GNU C library defines this for functions which it implements
9791 to always fail with ENOSYS. Some functions are actually named
9792 something starting with __ and the normal name is an alias. */
9793#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9794choke me
9795#else
f7a11f8c 9796f = $ac_func;
a16d3c04
KB
9797#endif
9798
9799; return 0; }
9800EOF
f7a11f8c 9801if { (eval echo configure:9802: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a16d3c04
KB
9802 rm -rf conftest*
9803 eval "ac_cv_func_$ac_func=yes"
9804else
9805 echo "configure: failed program was:" >&5
9806 cat conftest.$ac_ext >&5
9807 rm -rf conftest*
9808 eval "ac_cv_func_$ac_func=no"
9809fi
9810rm -f conftest*
9811fi
9812
9813if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9814 echo "$ac_t""yes" 1>&6
9815 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9816 cat >> confdefs.h <<EOF
9817#define $ac_tr_func 1
9818EOF
9819
9820else
9821 echo "$ac_t""no" 1>&6
9822fi
9823done
9824
9825
9826POSIX4_LINK=
9827for ac_func in nanosleep
9828do
9829echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
f7a11f8c 9830echo "configure:9831: checking for $ac_func" >&5
a16d3c04
KB
9831if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9832 echo $ac_n "(cached) $ac_c" 1>&6
9833else
9834 cat > conftest.$ac_ext <<EOF
f7a11f8c 9835#line 9836 "configure"
a16d3c04
KB
9836#include "confdefs.h"
9837/* System header to define __stub macros and hopefully few prototypes,
9838 which can conflict with char $ac_func(); below. */
9839#include <assert.h>
9840/* Override any gcc2 internal prototype to avoid an error. */
9841/* We use char because int might match the return type of a gcc2
9842 builtin and then its argument prototype would still apply. */
9843char $ac_func();
f7a11f8c 9844char (*f)();
a16d3c04
KB
9845
9846int main() {
9847
9848/* The GNU C library defines this for functions which it implements
9849 to always fail with ENOSYS. Some functions are actually named
9850 something starting with __ and the normal name is an alias. */
9851#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9852choke me
9853#else
f7a11f8c 9854f = $ac_func;
a16d3c04
KB
9855#endif
9856
9857; return 0; }
9858EOF
f7a11f8c 9859if { (eval echo configure:9860: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a16d3c04
KB
9860 rm -rf conftest*
9861 eval "ac_cv_func_$ac_func=yes"
9862else
9863 echo "configure: failed program was:" >&5
9864 cat conftest.$ac_ext >&5
9865 rm -rf conftest*
9866 eval "ac_cv_func_$ac_func=no"
9867fi
9868rm -f conftest*
9869fi
9870
9871if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9872 echo "$ac_t""yes" 1>&6
9873 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9874 cat >> confdefs.h <<EOF
9875#define $ac_tr_func 1
9876EOF
9877 cat >> confdefs.h <<\EOF
9878#define HAVE_NANOSLEEP 1
9879EOF
9880
9881else
9882 echo "$ac_t""no" 1>&6
9883echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6
f7a11f8c 9884echo "configure:9885: checking for nanosleep in -lposix4" >&5
a16d3c04
KB
9885ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'`
9886if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9887 echo $ac_n "(cached) $ac_c" 1>&6
9888else
9889 ac_save_LIBS="$LIBS"
9890LIBS="-lposix4 $LIBS"
9891cat > conftest.$ac_ext <<EOF
f7a11f8c 9892#line 9893 "configure"
a16d3c04
KB
9893#include "confdefs.h"
9894/* Override any gcc2 internal prototype to avoid an error. */
9895/* We use char because int might match the return type of a gcc2
9896 builtin and then its argument prototype would still apply. */
9897char nanosleep();
9898
9899int main() {
9900nanosleep()
9901; return 0; }
9902EOF
f7a11f8c 9903if { (eval echo configure:9904: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a16d3c04
KB
9904 rm -rf conftest*
9905 eval "ac_cv_lib_$ac_lib_var=yes"
9906else
9907 echo "configure: failed program was:" >&5
9908 cat conftest.$ac_ext >&5
9909 rm -rf conftest*
9910 eval "ac_cv_lib_$ac_lib_var=no"
9911fi
9912rm -f conftest*
9913LIBS="$ac_save_LIBS"
9914
9915fi
9916if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9917 echo "$ac_t""yes" 1>&6
9918
9919 cat >> confdefs.h <<\EOF
9920#define HAVE_NANOSLEEP 1
9921EOF
9922
9923 POSIX4_LINK="-lposix4"
9924
9925else
9926 echo "$ac_t""no" 1>&6
9927
9928 for ac_func in usleep
9929do
9930echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
f7a11f8c 9931echo "configure:9932: checking for $ac_func" >&5
a16d3c04
KB
9932if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9933 echo $ac_n "(cached) $ac_c" 1>&6
9934else
9935 cat > conftest.$ac_ext <<EOF
f7a11f8c 9936#line 9937 "configure"
a16d3c04
KB
9937#include "confdefs.h"
9938/* System header to define __stub macros and hopefully few prototypes,
9939 which can conflict with char $ac_func(); below. */
9940#include <assert.h>
9941/* Override any gcc2 internal prototype to avoid an error. */
9942/* We use char because int might match the return type of a gcc2
9943 builtin and then its argument prototype would still apply. */
9944char $ac_func();
f7a11f8c 9945char (*f)();
a16d3c04
KB
9946
9947int main() {
9948
9949/* The GNU C library defines this for functions which it implements
9950 to always fail with ENOSYS. Some functions are actually named
9951 something starting with __ and the normal name is an alias. */
9952#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9953choke me
9954#else
f7a11f8c 9955f = $ac_func;
a16d3c04
KB
9956#endif
9957
9958; return 0; }
9959EOF
f7a11f8c 9960if { (eval echo configure:9961: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a16d3c04
KB
9961 rm -rf conftest*
9962 eval "ac_cv_func_$ac_func=yes"
9963else
9964 echo "configure: failed program was:" >&5
9965 cat conftest.$ac_ext >&5
9966 rm -rf conftest*
9967 eval "ac_cv_func_$ac_func=no"
9968fi
9969rm -f conftest*
9970fi
9971
9972if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9973 echo "$ac_t""yes" 1>&6
9974 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9975 cat >> confdefs.h <<EOF
9976#define $ac_tr_func 1
9977EOF
9978 cat >> confdefs.h <<\EOF
9979#define HAVE_USLEEP 1
9980EOF
9981
9982else
9983 echo "$ac_t""no" 1>&6
9984echo "configure: warning: wxSleep() function will not work" 1>&2
9985fi
9986done
9987
9988
9989fi
9990
9991
9992fi
9993done
9994
9995
9996for ac_func in uname gethostname
9997do
9998echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
f7a11f8c 9999echo "configure:10000: checking for $ac_func" >&5
a16d3c04
KB
10000if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10001 echo $ac_n "(cached) $ac_c" 1>&6
10002else
10003 cat > conftest.$ac_ext <<EOF
f7a11f8c 10004#line 10005 "configure"
a16d3c04
KB
10005#include "confdefs.h"
10006/* System header to define __stub macros and hopefully few prototypes,
10007 which can conflict with char $ac_func(); below. */
10008#include <assert.h>
10009/* Override any gcc2 internal prototype to avoid an error. */
10010/* We use char because int might match the return type of a gcc2
10011 builtin and then its argument prototype would still apply. */
10012char $ac_func();
f7a11f8c 10013char (*f)();
a16d3c04
KB
10014
10015int main() {
10016
10017/* The GNU C library defines this for functions which it implements
10018 to always fail with ENOSYS. Some functions are actually named
10019 something starting with __ and the normal name is an alias. */
10020#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10021choke me
10022#else
f7a11f8c 10023f = $ac_func;
a16d3c04
KB
10024#endif
10025
10026; return 0; }
10027EOF
f7a11f8c 10028if { (eval echo configure:10029: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a16d3c04
KB
10029 rm -rf conftest*
10030 eval "ac_cv_func_$ac_func=yes"
10031else
10032 echo "configure: failed program was:" >&5
10033 cat conftest.$ac_ext >&5
10034 rm -rf conftest*
10035 eval "ac_cv_func_$ac_func=no"
10036fi
10037rm -f conftest*
10038fi
10039
10040if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10041 echo "$ac_t""yes" 1>&6
10042 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10043 cat >> confdefs.h <<EOF
10044#define $ac_tr_func 1
10045EOF
10046 break
10047else
10048 echo "$ac_t""no" 1>&6
10049fi
10050done
10051
10052
f7a11f8c
RR
10053for ac_func in strtok_r
10054do
10055echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10056echo "configure:10057: checking for $ac_func" >&5
10057if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10058 echo $ac_n "(cached) $ac_c" 1>&6
10059else
10060 cat > conftest.$ac_ext <<EOF
10061#line 10062 "configure"
10062#include "confdefs.h"
10063/* System header to define __stub macros and hopefully few prototypes,
10064 which can conflict with char $ac_func(); below. */
10065#include <assert.h>
10066/* Override any gcc2 internal prototype to avoid an error. */
10067/* We use char because int might match the return type of a gcc2
10068 builtin and then its argument prototype would still apply. */
10069char $ac_func();
10070char (*f)();
10071
10072int main() {
10073
10074/* The GNU C library defines this for functions which it implements
10075 to always fail with ENOSYS. Some functions are actually named
10076 something starting with __ and the normal name is an alias. */
10077#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10078choke me
10079#else
10080f = $ac_func;
10081#endif
10082
10083; return 0; }
10084EOF
10085if { (eval echo configure:10086: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10086 rm -rf conftest*
10087 eval "ac_cv_func_$ac_func=yes"
10088else
10089 echo "configure: failed program was:" >&5
10090 cat conftest.$ac_ext >&5
10091 rm -rf conftest*
10092 eval "ac_cv_func_$ac_func=no"
10093fi
10094rm -f conftest*
10095fi
10096
10097if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10098 echo "$ac_t""yes" 1>&6
10099 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10100 cat >> confdefs.h <<EOF
10101#define $ac_tr_func 1
10102EOF
10103
10104else
10105 echo "$ac_t""no" 1>&6
10106fi
10107done
10108
10109
a16d3c04
KB
10110for ac_func in inet_addr
10111do
10112echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
f7a11f8c 10113echo "configure:10114: checking for $ac_func" >&5
a16d3c04
KB
10114if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10115 echo $ac_n "(cached) $ac_c" 1>&6
10116else
10117 cat > conftest.$ac_ext <<EOF
f7a11f8c 10118#line 10119 "configure"
a16d3c04
KB
10119#include "confdefs.h"
10120/* System header to define __stub macros and hopefully few prototypes,
10121 which can conflict with char $ac_func(); below. */
10122#include <assert.h>
10123/* Override any gcc2 internal prototype to avoid an error. */
10124/* We use char because int might match the return type of a gcc2
10125 builtin and then its argument prototype would still apply. */
10126char $ac_func();
f7a11f8c 10127char (*f)();
a16d3c04
KB
10128
10129int main() {
10130
10131/* The GNU C library defines this for functions which it implements
10132 to always fail with ENOSYS. Some functions are actually named
10133 something starting with __ and the normal name is an alias. */
10134#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10135choke me
10136#else
f7a11f8c 10137f = $ac_func;
a16d3c04
KB
10138#endif
10139
10140; return 0; }
10141EOF
f7a11f8c 10142if { (eval echo configure:10143: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a16d3c04
KB
10143 rm -rf conftest*
10144 eval "ac_cv_func_$ac_func=yes"
10145else
10146 echo "configure: failed program was:" >&5
10147 cat conftest.$ac_ext >&5
10148 rm -rf conftest*
10149 eval "ac_cv_func_$ac_func=no"
10150fi
10151rm -f conftest*
10152fi
10153
10154if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10155 echo "$ac_t""yes" 1>&6
10156 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10157 cat >> confdefs.h <<EOF
10158#define $ac_tr_func 1
10159EOF
10160
10161else
10162 echo "$ac_t""no" 1>&6
10163fi
10164done
10165
10166for ac_func in inet_aton
10167do
10168echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
f7a11f8c 10169echo "configure:10170: checking for $ac_func" >&5
a16d3c04
KB
10170if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10171 echo $ac_n "(cached) $ac_c" 1>&6
10172else
10173 cat > conftest.$ac_ext <<EOF
f7a11f8c 10174#line 10175 "configure"
a16d3c04
KB
10175#include "confdefs.h"
10176/* System header to define __stub macros and hopefully few prototypes,
10177 which can conflict with char $ac_func(); below. */
10178#include <assert.h>
10179/* Override any gcc2 internal prototype to avoid an error. */
10180/* We use char because int might match the return type of a gcc2
10181 builtin and then its argument prototype would still apply. */
10182char $ac_func();
f7a11f8c 10183char (*f)();
a16d3c04
KB
10184
10185int main() {
10186
10187/* The GNU C library defines this for functions which it implements
10188 to always fail with ENOSYS. Some functions are actually named
10189 something starting with __ and the normal name is an alias. */
10190#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10191choke me
10192#else
f7a11f8c 10193f = $ac_func;
a16d3c04
KB
10194#endif
10195
10196; return 0; }
10197EOF
f7a11f8c 10198if { (eval echo configure:10199: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a16d3c04
KB
10199 rm -rf conftest*
10200 eval "ac_cv_func_$ac_func=yes"
10201else
10202 echo "configure: failed program was:" >&5
10203 cat conftest.$ac_ext >&5
10204 rm -rf conftest*
10205 eval "ac_cv_func_$ac_func=no"
10206fi
10207rm -f conftest*
10208fi
10209
10210if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10211 echo "$ac_t""yes" 1>&6
10212 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10213 cat >> confdefs.h <<EOF
10214#define $ac_tr_func 1
10215EOF
10216
10217else
10218 echo "$ac_t""no" 1>&6
10219fi
10220done
10221
10222echo $ac_n "checking for inet_aton in -lresolv""... $ac_c" 1>&6
f7a11f8c 10223echo "configure:10224: checking for inet_aton in -lresolv" >&5
a16d3c04
KB
10224ac_lib_var=`echo resolv'_'inet_aton | sed 'y%./+-%__p_%'`
10225if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10226 echo $ac_n "(cached) $ac_c" 1>&6
10227else
10228 ac_save_LIBS="$LIBS"
10229LIBS="-lresolv $LIBS"
10230cat > conftest.$ac_ext <<EOF
f7a11f8c 10231#line 10232 "configure"
a16d3c04
KB
10232#include "confdefs.h"
10233/* Override any gcc2 internal prototype to avoid an error. */
10234/* We use char because int might match the return type of a gcc2
10235 builtin and then its argument prototype would still apply. */
10236char inet_aton();
10237
10238int main() {
10239inet_aton()
10240; return 0; }
10241EOF
f7a11f8c 10242if { (eval echo configure:10243: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a16d3c04
KB
10243 rm -rf conftest*
10244 eval "ac_cv_lib_$ac_lib_var=yes"
10245else
10246 echo "configure: failed program was:" >&5
10247 cat conftest.$ac_ext >&5
10248 rm -rf conftest*
10249 eval "ac_cv_lib_$ac_lib_var=no"
10250fi
10251rm -f conftest*
10252LIBS="$ac_save_LIBS"
10253
10254fi
10255if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10256 echo "$ac_t""yes" 1>&6
10257 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
10258 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
10259 cat >> confdefs.h <<EOF
10260#define $ac_tr_lib 1
10261EOF
10262
10263 LIBS="-lresolv $LIBS"
10264
10265else
10266 echo "$ac_t""no" 1>&6
10267fi
10268
10269
10270
10271cat > confcache <<\EOF
10272# This file is a shell script that caches the results of configure
10273# tests run on this system so they can be shared between configure
10274# scripts and configure runs. It is not useful on other systems.
10275# If it contains results you don't want to keep, you may remove or edit it.
10276#
10277# By default, configure uses ./config.cache as the cache file,
10278# creating it if it does not exist already. You can give configure
10279# the --cache-file=FILE option to use a different cache file; that is
10280# what configure does when it calls configure scripts in
10281# subdirectories, so they share the cache.
10282# Giving --cache-file=/dev/null disables caching, for debugging configure.
10283# config.status only pays attention to the cache file if you give it the
10284# --recheck option to rerun configure.
10285#
10286EOF
10287# The following way of writing the cache mishandles newlines in values,
10288# but we know of no workaround that is simple, portable, and efficient.
10289# So, don't put newlines in cache variables' values.
10290# Ultrix sh set writes to stderr and can't be redirected directly,
10291# and sets the high bit in the cache file unless we assign to the vars.
10292(set) 2>&1 |
fa3e4baf 10293 case `(ac_space=' '; set | grep ac_space) 2>&1` in
a16d3c04
KB
10294 *ac_space=\ *)
10295 # `set' does not quote correctly, so add quotes (double-quote substitution
10296 # turns \\\\ into \\, and sed turns \\ into \).
10297 sed -n \
10298 -e "s/'/'\\\\''/g" \
10299 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
10300 ;;
10301 *)
10302 # `set' quotes correctly as required by POSIX, so do not add quotes.
10303 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
10304 ;;
10305 esac >> confcache
10306if cmp -s $cache_file confcache; then
10307 :
10308else
10309 if test -w $cache_file; then
10310 echo "updating cache $cache_file"
10311 cat confcache > $cache_file
10312 else
10313 echo "not updating unwritable cache $cache_file"
10314 fi
10315fi
10316rm -f confcache
10317
10318
10319
10320if test "$USE_UNIX" = 1; then
10321
10322
10323THREADS_LINK=""
10324THREADS_OBJ=""
10325
10326if test "$wxUSE_THREADS" = "yes" ; then
10327 if test "$wxUSE_WINE" = 1 ; then
10328 echo "configure: warning: Threads are not supported under WINE" 1>&2
10329 wxUSE_THREADS="no"
10330 fi
10331fi
10332
10333if test "$wxUSE_THREADS" = "yes" ; then
1c8515f9 10334
a16d3c04 10335 echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6
f7a11f8c 10336echo "configure:10337: checking for pthread_create in -lpthread" >&5
a16d3c04
KB
10337ac_lib_var=`echo pthread'_'pthread_create | sed 'y%./+-%__p_%'`
10338if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10339 echo $ac_n "(cached) $ac_c" 1>&6
10340else
10341 ac_save_LIBS="$LIBS"
10342LIBS="-lpthread $LIBS"
10343cat > conftest.$ac_ext <<EOF
f7a11f8c 10344#line 10345 "configure"
a16d3c04
KB
10345#include "confdefs.h"
10346/* Override any gcc2 internal prototype to avoid an error. */
10347/* We use char because int might match the return type of a gcc2
10348 builtin and then its argument prototype would still apply. */
10349char pthread_create();
10350
10351int main() {
10352pthread_create()
10353; return 0; }
10354EOF
f7a11f8c 10355if { (eval echo configure:10356: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a16d3c04
KB
10356 rm -rf conftest*
10357 eval "ac_cv_lib_$ac_lib_var=yes"
10358else
10359 echo "configure: failed program was:" >&5
10360 cat conftest.$ac_ext >&5
10361 rm -rf conftest*
10362 eval "ac_cv_lib_$ac_lib_var=no"
10363fi
10364rm -f conftest*
10365LIBS="$ac_save_LIBS"
10366
10367fi
10368if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10369 echo "$ac_t""yes" 1>&6
10370
10371 THREADS_OBJ="threadpsx.lo"
10372 THREADS_LINK="pthread"
10373
10374else
10375 echo "$ac_t""no" 1>&6
10376
10377 echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6
f7a11f8c 10378echo "configure:10379: checking for pthread_create in -lc_r" >&5
a16d3c04
KB
10379ac_lib_var=`echo c_r'_'pthread_create | sed 'y%./+-%__p_%'`
10380if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10381 echo $ac_n "(cached) $ac_c" 1>&6
10382else
10383 ac_save_LIBS="$LIBS"
10384LIBS="-lc_r $LIBS"
10385cat > conftest.$ac_ext <<EOF
f7a11f8c 10386#line 10387 "configure"
a16d3c04
KB
10387#include "confdefs.h"
10388/* Override any gcc2 internal prototype to avoid an error. */
10389/* We use char because int might match the return type of a gcc2
10390 builtin and then its argument prototype would still apply. */
10391char pthread_create();
10392
10393int main() {
10394pthread_create()
10395; return 0; }
10396EOF
f7a11f8c 10397if { (eval echo configure:10398: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a16d3c04
KB
10398 rm -rf conftest*
10399 eval "ac_cv_lib_$ac_lib_var=yes"
10400else
10401 echo "configure: failed program was:" >&5
10402 cat conftest.$ac_ext >&5
10403 rm -rf conftest*
10404 eval "ac_cv_lib_$ac_lib_var=no"
10405fi
10406rm -f conftest*
10407LIBS="$ac_save_LIBS"
10408
10409fi
10410if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10411 echo "$ac_t""yes" 1>&6
10412
10413 THREADS_OBJ="threadpsx.lo"
10414 THREADS_LINK="c_r"
10415
10416else
10417 echo "$ac_t""no" 1>&6
10418
10419 ac_safe=`echo "sys/prctl.h" | sed 'y%./+-%__p_%'`
10420echo $ac_n "checking for sys/prctl.h""... $ac_c" 1>&6
f7a11f8c 10421echo "configure:10422: checking for sys/prctl.h" >&5
a16d3c04
KB
10422if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10423 echo $ac_n "(cached) $ac_c" 1>&6
10424else
10425 cat > conftest.$ac_ext <<EOF
f7a11f8c 10426#line 10427 "configure"
a16d3c04
KB
10427#include "confdefs.h"
10428#include <sys/prctl.h>
10429EOF
10430ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
f7a11f8c 10431{ (eval echo configure:10432: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
fa3e4baf 10432ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
a16d3c04
KB
10433if test -z "$ac_err"; then
10434 rm -rf conftest*
10435 eval "ac_cv_header_$ac_safe=yes"
10436else
10437 echo "$ac_err" >&5
10438 echo "configure: failed program was:" >&5
10439 cat conftest.$ac_ext >&5
10440 rm -rf conftest*
10441 eval "ac_cv_header_$ac_safe=no"
10442fi
10443rm -f conftest*
10444fi
10445if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10446 echo "$ac_t""yes" 1>&6
10447
10448 THREADS_OBJ="threadsgi.lo"
10449
10450else
10451 echo "$ac_t""no" 1>&6
10452fi
10453
10454
10455fi
10456
10457
10458fi
10459
10460
10461 if test -z "$THREADS_OBJ" ; then
10462 wxUSE_THREADS=no
10463 echo "configure: warning: No thread support on this system" 1>&2
10464 fi
10465fi
10466
10467if test "$wxUSE_THREADS" = "yes" ; then
10468
10469 for ac_hdr in sched.h
10470do
10471ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10472echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
f7a11f8c 10473echo "configure:10474: checking for $ac_hdr" >&5
a16d3c04
KB
10474if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10475 echo $ac_n "(cached) $ac_c" 1>&6
10476else
10477 cat > conftest.$ac_ext <<EOF
f7a11f8c 10478#line 10479 "configure"
a16d3c04
KB
10479#include "confdefs.h"
10480#include <$ac_hdr>
10481EOF
10482ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
f7a11f8c 10483{ (eval echo configure:10484: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
fa3e4baf 10484ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
a16d3c04
KB
10485if test -z "$ac_err"; then
10486 rm -rf conftest*
10487 eval "ac_cv_header_$ac_safe=yes"
10488else
10489 echo "$ac_err" >&5
10490 echo "configure: failed program was:" >&5
10491 cat conftest.$ac_ext >&5
10492 rm -rf conftest*
10493 eval "ac_cv_header_$ac_safe=no"
10494fi
10495rm -f conftest*
10496fi
10497if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10498 echo "$ac_t""yes" 1>&6
10499 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10500 cat >> confdefs.h <<EOF
10501#define $ac_tr_hdr 1
10502EOF
10503
10504else
10505 echo "$ac_t""no" 1>&6
10506fi
10507done
10508
10509
10510 echo $ac_n "checking for sched_yield in -l$THREADS_LINK""... $ac_c" 1>&6
f7a11f8c 10511echo "configure:10512: checking for sched_yield in -l$THREADS_LINK" >&5
a16d3c04
KB
10512ac_lib_var=`echo $THREADS_LINK'_'sched_yield | sed 'y%./+-%__p_%'`
10513if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10514 echo $ac_n "(cached) $ac_c" 1>&6
10515else
10516 ac_save_LIBS="$LIBS"
10517LIBS="-l$THREADS_LINK $LIBS"
10518cat > conftest.$ac_ext <<EOF
f7a11f8c 10519#line 10520 "configure"
a16d3c04
KB
10520#include "confdefs.h"
10521/* Override any gcc2 internal prototype to avoid an error. */
10522/* We use char because int might match the return type of a gcc2
10523 builtin and then its argument prototype would still apply. */
10524char sched_yield();
10525
10526int main() {
10527sched_yield()
10528; return 0; }
10529EOF
f7a11f8c 10530if { (eval echo configure:10531: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a16d3c04
KB
10531 rm -rf conftest*
10532 eval "ac_cv_lib_$ac_lib_var=yes"
10533else
10534 echo "configure: failed program was:" >&5
10535 cat conftest.$ac_ext >&5
10536 rm -rf conftest*
10537 eval "ac_cv_lib_$ac_lib_var=no"
10538fi
10539rm -f conftest*
10540LIBS="$ac_save_LIBS"
10541
10542fi
10543if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10544 echo "$ac_t""yes" 1>&6
10545 cat >> confdefs.h <<\EOF
10546#define HAVE_SCHED_YIELD 1
10547EOF
10548
10549else
10550 echo "$ac_t""no" 1>&6
10551echo $ac_n "checking for sched_yield in -l"posix4"""... $ac_c" 1>&6
f7a11f8c 10552echo "configure:10553: checking for sched_yield in -l"posix4"" >&5
a16d3c04
KB
10553ac_lib_var=`echo "posix4"'_'sched_yield | sed 'y%./+-%__p_%'`
10554if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10555 echo $ac_n "(cached) $ac_c" 1>&6
10556else
10557 ac_save_LIBS="$LIBS"
10558LIBS="-l"posix4" $LIBS"
10559cat > conftest.$ac_ext <<EOF
f7a11f8c 10560#line 10561 "configure"
a16d3c04
KB
10561#include "confdefs.h"
10562/* Override any gcc2 internal prototype to avoid an error. */
10563/* We use char because int might match the return type of a gcc2
10564 builtin and then its argument prototype would still apply. */
10565char sched_yield();
10566
10567int main() {
10568sched_yield()
10569; return 0; }
10570EOF
f7a11f8c 10571if { (eval echo configure:10572: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a16d3c04
KB
10572 rm -rf conftest*
10573 eval "ac_cv_lib_$ac_lib_var=yes"
10574else
10575 echo "configure: failed program was:" >&5
10576 cat conftest.$ac_ext >&5
10577 rm -rf conftest*
10578 eval "ac_cv_lib_$ac_lib_var=no"
10579fi
10580rm -f conftest*
10581LIBS="$ac_save_LIBS"
10582
10583fi
10584if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10585 echo "$ac_t""yes" 1>&6
10586 cat >> confdefs.h <<\EOF
10587#define HAVE_SCHED_YIELD 1
10588EOF
10589 POSIX4_LINK="-lposix4"
10590else
10591 echo "$ac_t""no" 1>&6
10592echo "configure: warning: wxThread::Yield will not work properly" 1>&2
10593
10594fi
10595
10596
10597fi
10598
10599
10600 echo $ac_n "checking for pthread_attr_getschedpolicy in -l$THREADS_LINK""... $ac_c" 1>&6
f7a11f8c 10601echo "configure:10602: checking for pthread_attr_getschedpolicy in -l$THREADS_LINK" >&5
a16d3c04
KB
10602ac_lib_var=`echo $THREADS_LINK'_'pthread_attr_getschedpolicy | sed 'y%./+-%__p_%'`
10603if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10604 echo $ac_n "(cached) $ac_c" 1>&6
10605else
10606 ac_save_LIBS="$LIBS"
10607LIBS="-l$THREADS_LINK $LIBS"
10608cat > conftest.$ac_ext <<EOF
f7a11f8c 10609#line 10610 "configure"
a16d3c04
KB
10610#include "confdefs.h"
10611/* Override any gcc2 internal prototype to avoid an error. */
10612/* We use char because int might match the return type of a gcc2
10613 builtin and then its argument prototype would still apply. */
10614char pthread_attr_getschedpolicy();
10615
10616int main() {
10617pthread_attr_getschedpolicy()
10618; return 0; }
10619EOF
f7a11f8c 10620if { (eval echo configure:10621: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a16d3c04
KB
10621 rm -rf conftest*
10622 eval "ac_cv_lib_$ac_lib_var=yes"
10623else
10624 echo "configure: failed program was:" >&5
10625 cat conftest.$ac_ext >&5
10626 rm -rf conftest*
10627 eval "ac_cv_lib_$ac_lib_var=no"
10628fi
10629rm -f conftest*
10630LIBS="$ac_save_LIBS"
10631
10632fi
10633if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10634 echo "$ac_t""yes" 1>&6
10635 cat >> confdefs.h <<\EOF
10636#define HAVE_THREAD_PRIORITY_FUNCTIONS 1
10637EOF
10638
10639else
10640 echo "$ac_t""no" 1>&6
10641echo $ac_n "checking for pthread_attr_getschedpolicy in -l"posix4"""... $ac_c" 1>&6
f7a11f8c 10642echo "configure:10643: checking for pthread_attr_getschedpolicy in -l"posix4"" >&5
a16d3c04
KB
10643ac_lib_var=`echo "posix4"'_'pthread_attr_getschedpolicy | sed 'y%./+-%__p_%'`
10644if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10645 echo $ac_n "(cached) $ac_c" 1>&6
10646else
10647 ac_save_LIBS="$LIBS"
10648LIBS="-l"posix4" $LIBS"
10649cat > conftest.$ac_ext <<EOF
f7a11f8c 10650#line 10651 "configure"
a16d3c04
KB
10651#include "confdefs.h"
10652/* Override any gcc2 internal prototype to avoid an error. */
10653/* We use char because int might match the return type of a gcc2
10654 builtin and then its argument prototype would still apply. */
10655char pthread_attr_getschedpolicy();
10656
10657int main() {
10658pthread_attr_getschedpolicy()
10659; return 0; }
10660EOF
f7a11f8c 10661if { (eval echo configure:10662: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a16d3c04
KB
10662 rm -rf conftest*
10663 eval "ac_cv_lib_$ac_lib_var=yes"
10664else
10665 echo "configure: failed program was:" >&5
10666 cat conftest.$ac_ext >&5
10667 rm -rf conftest*
10668 eval "ac_cv_lib_$ac_lib_var=no"
10669fi
10670rm -f conftest*
10671LIBS="$ac_save_LIBS"
10672
10673fi
10674if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10675 echo "$ac_t""yes" 1>&6
10676 cat >> confdefs.h <<\EOF
10677#define HAVE_THREAD_PRIORITY_FUNCTIONS 1
10678EOF
10679 POSIX4_LINK="-lposix4"
10680else
10681 echo "$ac_t""no" 1>&6
10682echo "configure: warning: Setting thread priority will not work" 1>&2
10683
10684fi
10685
10686
10687fi
10688
10689
10690 echo $ac_n "checking for pthread_cancel in -l$THREADS_LINK""... $ac_c" 1>&6
f7a11f8c 10691echo "configure:10692: checking for pthread_cancel in -l$THREADS_LINK" >&5
a16d3c04
KB
10692ac_lib_var=`echo $THREADS_LINK'_'pthread_cancel | sed 'y%./+-%__p_%'`
10693if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10694 echo $ac_n "(cached) $ac_c" 1>&6
10695else
10696 ac_save_LIBS="$LIBS"
10697LIBS="-l$THREADS_LINK $LIBS"
10698cat > conftest.$ac_ext <<EOF
f7a11f8c 10699#line 10700 "configure"
a16d3c04
KB
10700#include "confdefs.h"
10701/* Override any gcc2 internal prototype to avoid an error. */
10702/* We use char because int might match the return type of a gcc2
10703 builtin and then its argument prototype would still apply. */
10704char pthread_cancel();
10705
10706int main() {
10707pthread_cancel()
10708; return 0; }
10709EOF
f7a11f8c 10710if { (eval echo configure:10711: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a16d3c04
KB
10711 rm -rf conftest*
10712 eval "ac_cv_lib_$ac_lib_var=yes"
10713else
10714 echo "configure: failed program was:" >&5
10715 cat conftest.$ac_ext >&5
10716 rm -rf conftest*
10717 eval "ac_cv_lib_$ac_lib_var=no"
10718fi
10719rm -f conftest*
10720LIBS="$ac_save_LIBS"
10721
10722fi
10723if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10724 echo "$ac_t""yes" 1>&6
10725 cat >> confdefs.h <<\EOF
10726#define HAVE_PTHREAD_CANCEL 1
10727EOF
10728
10729else
10730 echo "$ac_t""no" 1>&6
10731echo "configure: warning: wxThread::Kill() will not work properly" 1>&2
10732fi
10733
10734
10735 echo $ac_n "checking for pthread_cleanup_push/pop""... $ac_c" 1>&6
f7a11f8c 10736echo "configure:10737: checking for pthread_cleanup_push/pop" >&5
a16d3c04
KB
10737if eval "test \"`echo '$''{'wx_cv_func_pthread_cleanup_push'+set}'`\" = set"; then
10738 echo $ac_n "(cached) $ac_c" 1>&6
10739else
10740
10741 cat > conftest.$ac_ext <<EOF
f7a11f8c 10742#line 10743 "configure"
a16d3c04
KB
10743#include "confdefs.h"
10744#include <pthread.h>
10745int main() {
10746
10747 pthread_cleanup_push(NULL, NULL);
10748 pthread_cleanup_pop(0);
10749
10750; return 0; }
10751EOF
f7a11f8c 10752if { (eval echo configure:10753: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a16d3c04
KB
10753 rm -rf conftest*
10754
10755 wx_cv_func_pthread_cleanup_push=yes
10756 cat >> confdefs.h <<\EOF
10757#define HAVE_THREAD_CLEANUP_FUNCTIONS 1
10758EOF
10759
10760
10761else
10762 echo "configure: failed program was:" >&5
10763 cat conftest.$ac_ext >&5
10764 rm -rf conftest*
10765
10766 wx_cv_func_pthread_cleanup_push=no
10767
10768fi
10769rm -f conftest*
10770
10771fi
10772
10773echo "$ac_t""$wx_cv_func_pthread_cleanup_push" 1>&6
10774
10775 THREADS_LINK="-l$THREADS_LINK"
10776fi
10777
10778fi
10779
10780if test "$wxUSE_THREADS" = "yes"; then
10781 cat >> confdefs.h <<\EOF
10782#define wxUSE_THREADS 1
10783EOF
10784
10785
10786 CFLAGS="${CFLAGS} -D_REENTRANT"
10787 CXXFLAGS="${CXXFLAGS} -D_REENTRANT"
10788
10789 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
10790fi
10791
10792if test "$WXGTK12" = 1 ; then
10793 cat >> confdefs.h <<EOF
10794#define __WXGTK12__ $WXGTK12
10795EOF
10796
10797fi
10798
10799if test "$WXWINE" = 1 ; then
10800 TOOLKIT_DEF="${TOOLKIT_DEF} -D__WXWINE__"
10801fi
10802
10803if test "$wxUSE_CYGWIN" = 1 ; then
10804 TOOLKIT_DEF="${TOOLKIT_DEF} -D__WIN95__"
10805fi
10806
10807WXDEBUG=
10808
10809if test "$wxUSE_DEBUG_INFO" = "yes" ; then
10810 WXDEBUG="-g"
10811 wxUSE_OPTIMISE=no
10812fi
10813
10814if test "$wxUSE_DEBUG_GDB" = "yes" ; then
10815 wxUSE_DEBUG_INFO=yes
10816 WXDEBUG="-ggdb"
10817fi
10818
10819if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
10820 cat >> confdefs.h <<\EOF
10821#define WXDEBUG 1
10822EOF
10823
10824 WXDEBUG_DEFINE="-D__WXDEBUG__"
10825else
10826 if test "$wxUSE_GTK" = 1 ; then
10827 WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS"
10828 fi
10829fi
10830
10831if test "$wxUSE_MEM_TRACING" = "yes" ; then
10832 cat >> confdefs.h <<\EOF
10833#define wxUSE_MEMORY_TRACING 1
10834EOF
10835
10836 cat >> confdefs.h <<\EOF
10837#define wxUSE_GLOBAL_MEMORY_OPERATORS 1
10838EOF
10839
10840 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
10841fi
10842
10843if test "$wxUSE_DMALLOC" = "yes" ; then
10844 DMALLOC_LINK="-ldmalloc"
10845fi
10846
10847PROFILE=
10848if test "$wxUSE_PROFILE" = "yes" ; then
10849 PROFILE="-pg"
10850fi
10851
10852DEP_INFO_FLAGS=
10853if test "$GCC" = yes ; then
10854 if test "$wxUSE_NO_RTTI" = "yes" ; then
f7a11f8c 10855 WXDEBUG_DEFINE="$WXDEBUG_DEFINE -fno-rtti"
a16d3c04
KB
10856 fi
10857 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
f7a11f8c 10858 WXDEBUG_DEFINE="$WXDEBUG_DEFINE -fno-exceptions"
a16d3c04
KB
10859 fi
10860 if test "$wxUSE_PERMISSIVE" = "yes" ; then
10861 CFLAGS="${CFLAGS} -fpermissive"
10862 CXXFLAGS="${CXXFLAGS} -fpermissive"
10863 fi
10864 if test "$wxUSE_NO_DEPS" = "no" ; then
10865 DEP_INFO_FLAGS="-MMD"
10866 fi
1c8515f9
KB
10867fi
10868
10869
a16d3c04
KB
10870CXXFLAGS=`echo "${CXXFLAGS}" | sed "s/\-O.//g" `
10871CFLAGS=`echo "${CFLAGS}" | sed "s/\-O.//g" `
10872if test "$wxUSE_OPTIMISE" = "no" ; then
10873 OPTIMISE=
10874else
10875 if test "$GCC" = yes ; then
10876 OPTIMISE="-O2"
10877 case "${host}" in
10878 i586-*-*|i686-*-* )
10879 OPTIMISE="${OPTIMISE} "
10880 ;;
10881 esac
10882 else
10883 OPTIMISE="-O"
10884 fi
10885fi
10886
10887
10888ZLIB_INCLUDE=
10889if test "$wxUSE_ZLIB" = "yes" ; then
10890 cat >> confdefs.h <<\EOF
10891#define wxUSE_ZLIB 1
10892EOF
10893
10894 ZLIB_INCLUDE="-I\${top_srcdir}/src/zlib"
10895fi
10896
10897PNG_INCLUDE=
10898if test "$wxUSE_LIBPNG" = "yes" ; then
10899 cat >> confdefs.h <<\EOF
10900#define wxUSE_LIBPNG 1
10901EOF
10902
10903 PNG_INCLUDE="-I\${top_srcdir}/src/png"
10904 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
10905fi
10906
a16d3c04
KB
10907JPEG_INCLUDE=
10908if test "$wxUSE_LIBJPEG" = "yes" ; then
10909 cat >> confdefs.h <<\EOF
10910#define wxUSE_LIBJPEG 1
10911EOF
10912
10913 JPEG_INCLUDE="-I\${top_srcdir}/src/jpeg"
10914fi
10915
10916if test "$wxUSE_OPENGL" = "yes"; then
10917 ac_safe=`echo "GL/gl.h" | sed 'y%./+-%__p_%'`
10918echo $ac_n "checking for GL/gl.h""... $ac_c" 1>&6
f7a11f8c 10919echo "configure:10920: checking for GL/gl.h" >&5
a16d3c04
KB
10920if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10921 echo $ac_n "(cached) $ac_c" 1>&6
10922else
10923 cat > conftest.$ac_ext <<EOF
f7a11f8c 10924#line 10925 "configure"
a16d3c04
KB
10925#include "confdefs.h"
10926#include <GL/gl.h>
10927EOF
10928ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
f7a11f8c 10929{ (eval echo configure:10930: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
fa3e4baf 10930ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
a16d3c04
KB
10931if test -z "$ac_err"; then
10932 rm -rf conftest*
10933 eval "ac_cv_header_$ac_safe=yes"
10934else
10935 echo "$ac_err" >&5
10936 echo "configure: failed program was:" >&5
10937 cat conftest.$ac_ext >&5
10938 rm -rf conftest*
10939 eval "ac_cv_header_$ac_safe=no"
10940fi
10941rm -f conftest*
10942fi
10943if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10944 echo "$ac_t""yes" 1>&6
10945
10946 echo $ac_n "checking for glInitNames in -lGL""... $ac_c" 1>&6
f7a11f8c 10947echo "configure:10948: checking for glInitNames in -lGL" >&5
a16d3c04
KB
10948ac_lib_var=`echo GL'_'glInitNames | sed 'y%./+-%__p_%'`
10949if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10950 echo $ac_n "(cached) $ac_c" 1>&6
10951else
10952 ac_save_LIBS="$LIBS"
10953LIBS="-lGL wxUSE_OPENGL=0 $LIBS"
10954cat > conftest.$ac_ext <<EOF
f7a11f8c 10955#line 10956 "configure"
a16d3c04
KB
10956#include "confdefs.h"
10957/* Override any gcc2 internal prototype to avoid an error. */
10958/* We use char because int might match the return type of a gcc2
10959 builtin and then its argument prototype would still apply. */
10960char glInitNames();
10961
10962int main() {
10963glInitNames()
10964; return 0; }
10965EOF
f7a11f8c 10966if { (eval echo configure:10967: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a16d3c04
KB
10967 rm -rf conftest*
10968 eval "ac_cv_lib_$ac_lib_var=yes"
10969else
10970 echo "configure: failed program was:" >&5
10971 cat conftest.$ac_ext >&5
10972 rm -rf conftest*
10973 eval "ac_cv_lib_$ac_lib_var=no"
10974fi
10975rm -f conftest*
10976LIBS="$ac_save_LIBS"
10977
10978fi
10979if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10980 echo "$ac_t""yes" 1>&6
10981
10982 OPENGL_LINK="-lGL"
10983 cat >> confdefs.h <<\EOF
10984#define wxUSE_OPENGL 1
10985EOF
10986
10987 UTILS_SUBDIRS="$UTILS_SUBDIRS glcanvas/src"
10988
10989else
10990 echo "$ac_t""no" 1>&6
10991
10992 echo $ac_n "checking for glInitNames in -lMesaGL""... $ac_c" 1>&6
f7a11f8c 10993echo "configure:10994: checking for glInitNames in -lMesaGL" >&5
a16d3c04
KB
10994ac_lib_var=`echo MesaGL'_'glInitNames | sed 'y%./+-%__p_%'`
10995if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10996 echo $ac_n "(cached) $ac_c" 1>&6
10997else
10998 ac_save_LIBS="$LIBS"
10999LIBS="-lMesaGL $LIBS"
11000cat > conftest.$ac_ext <<EOF
f7a11f8c 11001#line 11002 "configure"
a16d3c04
KB
11002#include "confdefs.h"
11003/* Override any gcc2 internal prototype to avoid an error. */
11004/* We use char because int might match the return type of a gcc2
11005 builtin and then its argument prototype would still apply. */
11006char glInitNames();
11007
11008int main() {
11009glInitNames()
11010; return 0; }
11011EOF
f7a11f8c 11012if { (eval echo configure:11013: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a16d3c04
KB
11013 rm -rf conftest*
11014 eval "ac_cv_lib_$ac_lib_var=yes"
11015else
11016 echo "configure: failed program was:" >&5
11017 cat conftest.$ac_ext >&5
11018 rm -rf conftest*
11019 eval "ac_cv_lib_$ac_lib_var=no"
11020fi
11021rm -f conftest*
11022LIBS="$ac_save_LIBS"
11023
11024fi
11025if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11026 echo "$ac_t""yes" 1>&6
11027
11028 OPENGL_LINK="-lMesaGL"
11029 cat >> confdefs.h <<\EOF
11030#define wxUSE_OPENGL 1
11031EOF
11032
11033 UTILS_SUBDIRS="$UTILS_SUBDIRS glcanvas/src"
11034
11035else
11036 echo "$ac_t""no" 1>&6
11037wxUSE_OPENGL=0
11038fi
11039
11040
11041fi
11042
11043
11044else
11045 echo "$ac_t""no" 1>&6
11046wxUSE_OPENGL=0
11047fi
11048
11049fi
11050
11051
11052if test "$wxUSE_GUI" = "yes"; then
11053 cat >> confdefs.h <<\EOF
11054#define wxUSE_GUI 1
11055EOF
11056
11057
11058 else
11059 cat >> confdefs.h <<\EOF
11060#define wxUSE_NOGUI 1
11061EOF
11062
11063fi
11064
11065
11066if test "$wxUSE_UNIX" = "yes"; then
11067 cat >> confdefs.h <<\EOF
11068#define wxUSE_UNIX 1
11069EOF
11070
11071fi
11072
11073
11074if test "$wxUSE_APPLE_IEEE" = "yes"; then
11075 cat >> confdefs.h <<\EOF
11076#define wxUSE_APPLE_IEEE 1
11077EOF
11078
11079fi
11080
11081if test "$wxUSE_TIMEDATE" = "yes"; then
11082 cat >> confdefs.h <<\EOF
11083#define wxUSE_TIMEDATE 1
11084EOF
11085
11086 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
11087fi
11088
11089if test "$wxUSE_WAVE" = "yes"; then
11090 cat >> confdefs.h <<\EOF
11091#define wxUSE_WAVE 1
11092EOF
11093
11094fi
11095
11096if test "$wxUSE_FILE" = "yes"; then
11097 cat >> confdefs.h <<\EOF
11098#define wxUSE_FILE 1
11099EOF
11100
11101fi
11102
11103if test "$wxUSE_FS_INET" = "yes"; then
11104 cat >> confdefs.h <<\EOF
11105#define wxUSE_FS_INET 1
11106EOF
11107
11108fi
11109
11110if test "$wxUSE_FS_ZIP" = "yes"; then
11111 cat >> confdefs.h <<\EOF
11112#define wxUSE_FS_ZIP 1
11113EOF
11114
11115fi
11116
11117if test "$wxUSE_ZIPSTREAM" = "yes"; then
11118 cat >> confdefs.h <<\EOF
11119#define wxUSE_ZIPSTREAM 1
11120EOF
11121
11122fi
11123
11124if test "$wxUSE_BUSYINFO" = "yes"; then
11125 cat >> confdefs.h <<\EOF
11126#define wxUSE_BUSYINFO 1
11127EOF
11128
11129fi
11130
11131if test "$wxUSE_STD_IOSTREAM" = "yes"; then
11132 cat >> confdefs.h <<\EOF
11133#define wxUSE_STD_IOSTREAM 1
11134EOF
11135
11136fi
11137
11138if test "$wxUSE_TEXTFILE" = "yes"; then
11139 if test "$wxUSE_FILE" != "yes"; then
11140 echo "configure: warning: wxTextFile requires wxFile and it won't be compiled without it" 1>&2
11141 else
11142 cat >> confdefs.h <<\EOF
11143#define wxUSE_TEXTFILE 1
11144EOF
11145
11146 fi
11147fi
11148
11149if test "$wxUSE_CONFIG" = "yes" ; then
11150 if test "$wxUSE_TEXTFILE" != "yes"; then
11151 echo "configure: warning: wxConfig requires wxTextFile and it won't be compiled without it" 1>&2
11152 else
11153 cat >> confdefs.h <<\EOF
11154#define wxUSE_CONFIG 1
11155EOF
11156
11157 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
11158 fi
11159fi
11160
11161if test "$wxUSE_INTL" = "yes" ; then
11162 if test "$wxUSE_FILE" != "yes"; then
11163 echo "configure: warning: I18n code requires wxFile and it won't be compiled without it" 1>&2
11164 else
11165 cat >> confdefs.h <<\EOF
11166#define wxUSE_INTL 1
11167EOF
11168
11169 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
11170 fi
11171fi
11172
11173if test "$wxUSE_LOG" = "yes"; then
11174 cat >> confdefs.h <<\EOF
11175#define wxUSE_LOG 1
11176EOF
11177
11178fi
11179
11180if test "$wxUSE_LONGLONG" = "yes"; then
11181 cat >> confdefs.h <<\EOF
11182#define wxUSE_LONGLONG 1
11183EOF
11184
11185fi
11186
11187if test "$wxUSE_SOCKETS" = "yes" ; then
11188 if test "$wxUSE_THREADS" = "yes" ; then
11189 cat >> confdefs.h <<\EOF
11190#define wxUSE_SOCKETS 1
11191EOF
11192
11193 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wxsocket"
11194 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS protocol"
11195 else
11196 echo "configure: warning: Socket classes require --with-threads and won't be compiled without it" 1>&2
11197 wxUSE_SOCKETS=0
11198 fi
11199fi
11200
1c8515f9
KB
11201if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then
11202 cat >> confdefs.h <<\EOF
11203#define wxUSE_DIALUP_MANAGER 1
11204EOF
11205
11206fi
11207
a16d3c04
KB
11208if test "$wxUSE_STREAMS" = "yes" ; then
11209 cat >> confdefs.h <<\EOF
11210#define wxUSE_STREAMS 1
11211EOF
11212
11213fi
11214
11215if test "$wxUSE_SERIAL" = "yes" ; then
11216 cat >> confdefs.h <<\EOF
11217#define wxUSE_SERIAL 1
11218EOF
11219
11220fi
11221
11222
11223if test "$wxUSE_SOCKETS" = "yes"; then
11224
11225 ac_ext=C
11226# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11227ac_cpp='$CXXCPP $CPPFLAGS'
11228ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
fa3e4baf 11229ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
a16d3c04
KB
11230cross_compiling=$ac_cv_prog_cxx_cross
11231
11232 echo $ac_n "checking the type of the third argument of getsockname""... $ac_c" 1>&6
f7a11f8c 11233echo "configure:11234: checking the type of the third argument of getsockname" >&5
a16d3c04 11234 cat > conftest.$ac_ext <<EOF
f7a11f8c 11235#line 11236 "configure"
a16d3c04
KB
11236#include "confdefs.h"
11237#include <sys/socket.h>
11238int main() {
11239socklen_t len; getsockname(0, NULL, &len);
11240; return 0; }
11241EOF
f7a11f8c 11242if { (eval echo configure:11243: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a16d3c04
KB
11243 rm -rf conftest*
11244 cat >> confdefs.h <<\EOF
11245#define SOCKLEN_T socklen_t
11246EOF
11247 echo "$ac_t""socklen_t" 1>&6
11248else
11249 echo "configure: failed program was:" >&5
11250 cat conftest.$ac_ext >&5
11251 rm -rf conftest*
11252 cat > conftest.$ac_ext <<EOF
f7a11f8c 11253#line 11254 "configure"
a16d3c04
KB
11254#include "confdefs.h"
11255#include <sys/socket.h>
11256int main() {
11257size_t len; getsockname(0, NULL, &len);
11258; return 0; }
11259EOF
f7a11f8c 11260if { (eval echo configure:11261: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a16d3c04
KB
11261 rm -rf conftest*
11262 cat >> confdefs.h <<\EOF
11263#define SOCKLEN_T size_t
11264EOF
11265 echo "$ac_t""size_t" 1>&6
11266else
11267 echo "configure: failed program was:" >&5
11268 cat conftest.$ac_ext >&5
11269 rm -rf conftest*
11270 cat > conftest.$ac_ext <<EOF
f7a11f8c 11271#line 11272 "configure"
a16d3c04
KB
11272#include "confdefs.h"
11273#include <sys/socket.h>
11274int main() {
11275int len; getsockname(0, NULL, &len);
11276; return 0; }
11277EOF
f7a11f8c 11278if { (eval echo configure:11279: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a16d3c04
KB
11279 rm -rf conftest*
11280 cat >> confdefs.h <<\EOF
11281#define SOCKLEN_T int
11282EOF
11283 echo "$ac_t""int" 1>&6
11284else
11285 echo "configure: failed program was:" >&5
11286 cat conftest.$ac_ext >&5
11287 rm -rf conftest*
11288 echo "$ac_t""unknown" 1>&6
11289
11290fi
11291rm -f conftest*
11292
11293fi
11294rm -f conftest*
11295
11296fi
11297rm -f conftest*
11298 ac_ext=c
11299# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11300ac_cpp='$CPP $CPPFLAGS'
11301ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
fa3e4baf 11302ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
a16d3c04
KB
11303cross_compiling=$ac_cv_prog_cc_cross
11304
11305fi
11306
11307
11308if test "$wxUSE_JOYSTICK" = 1; then
11309 for ac_hdr in linux/joystick.h
11310do
11311ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11312echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
f7a11f8c 11313echo "configure:11314: checking for $ac_hdr" >&5
a16d3c04
KB
11314if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11315 echo $ac_n "(cached) $ac_c" 1>&6
11316else
11317 cat > conftest.$ac_ext <<EOF
f7a11f8c 11318#line 11319 "configure"
a16d3c04
KB
11319#include "confdefs.h"
11320#include <$ac_hdr>
11321EOF
11322ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
f7a11f8c 11323{ (eval echo configure:11324: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
fa3e4baf 11324ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
a16d3c04
KB
11325if test -z "$ac_err"; then
11326 rm -rf conftest*
11327 eval "ac_cv_header_$ac_safe=yes"
11328else
11329 echo "$ac_err" >&5
11330 echo "configure: failed program was:" >&5
11331 cat conftest.$ac_ext >&5
11332 rm -rf conftest*
11333 eval "ac_cv_header_$ac_safe=no"
11334fi
11335rm -f conftest*
11336fi
11337if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11338 echo "$ac_t""yes" 1>&6
11339 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11340 cat >> confdefs.h <<EOF
11341#define $ac_tr_hdr 1
11342EOF
11343
11344else
11345 echo "$ac_t""no" 1>&6
11346fi
11347done
11348
11349 if test "$ac_cv_header_linux_joystick_h" = "yes"; then
11350 cat >> confdefs.h <<\EOF
11351#define wxUSE_JOYSTICK 1
11352EOF
11353
11354 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
11355 fi
11356fi
11357
11358
11359HAVE_DL_FUNCS=0
11360HAVE_SHL_FUNCS=0
11361if test "$wxUSE_DYNLIB_CLASS" = "yes"; then
11362 for ac_func in dlopen
11363do
11364echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
f7a11f8c 11365echo "configure:11366: checking for $ac_func" >&5
a16d3c04
KB
11366if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11367 echo $ac_n "(cached) $ac_c" 1>&6
11368else
11369 cat > conftest.$ac_ext <<EOF
f7a11f8c 11370#line 11371 "configure"
a16d3c04
KB
11371#include "confdefs.h"
11372/* System header to define __stub macros and hopefully few prototypes,
11373 which can conflict with char $ac_func(); below. */
11374#include <assert.h>
11375/* Override any gcc2 internal prototype to avoid an error. */
11376/* We use char because int might match the return type of a gcc2
11377 builtin and then its argument prototype would still apply. */
11378char $ac_func();
f7a11f8c 11379char (*f)();
a16d3c04
KB
11380
11381int main() {
11382
11383/* The GNU C library defines this for functions which it implements
11384 to always fail with ENOSYS. Some functions are actually named
11385 something starting with __ and the normal name is an alias. */
11386#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11387choke me
11388#else
f7a11f8c 11389f = $ac_func;
a16d3c04
KB
11390#endif
11391
11392; return 0; }
11393EOF
f7a11f8c 11394if { (eval echo configure:11395: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a16d3c04
KB
11395 rm -rf conftest*
11396 eval "ac_cv_func_$ac_func=yes"
11397else
11398 echo "configure: failed program was:" >&5
11399 cat conftest.$ac_ext >&5
11400 rm -rf conftest*
11401 eval "ac_cv_func_$ac_func=no"
11402fi
11403rm -f conftest*
11404fi
11405
11406if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11407 echo "$ac_t""yes" 1>&6
11408 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11409 cat >> confdefs.h <<EOF
11410#define $ac_tr_func 1
11411EOF
11412 cat >> confdefs.h <<\EOF
11413#define HAVE_DLOPEN 1
11414EOF
11415 HAVE_DL_FUNCS=1
11416else
11417 echo "$ac_t""no" 1>&6
11418echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
f7a11f8c 11419echo "configure:11420: checking for dlopen in -ldl" >&5
a16d3c04
KB
11420ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
11421if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11422 echo $ac_n "(cached) $ac_c" 1>&6
11423else
11424 ac_save_LIBS="$LIBS"
11425LIBS="-ldl $LIBS"
11426cat > conftest.$ac_ext <<EOF
f7a11f8c 11427#line 11428 "configure"
a16d3c04
KB
11428#include "confdefs.h"
11429/* Override any gcc2 internal prototype to avoid an error. */
11430/* We use char because int might match the return type of a gcc2
11431 builtin and then its argument prototype would still apply. */
11432char dlopen();
11433
11434int main() {
11435dlopen()
11436; return 0; }
11437EOF
f7a11f8c 11438if { (eval echo configure:11439: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a16d3c04
KB
11439 rm -rf conftest*
11440 eval "ac_cv_lib_$ac_lib_var=yes"
11441else
11442 echo "configure: failed program was:" >&5
11443 cat conftest.$ac_ext >&5
11444 rm -rf conftest*
11445 eval "ac_cv_lib_$ac_lib_var=no"
11446fi
11447rm -f conftest*
11448LIBS="$ac_save_LIBS"
11449
11450fi
11451if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11452 echo "$ac_t""yes" 1>&6
11453 cat >> confdefs.h <<\EOF
11454#define HAVE_DLOPEN 1
11455EOF
11456 HAVE_DL_FUNCS=1
11457else
11458 echo "$ac_t""no" 1>&6
11459fi
11460
11461fi
11462done
11463
11464 for ac_func in shl_load
11465do
11466echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
f7a11f8c 11467echo "configure:11468: checking for $ac_func" >&5
a16d3c04
KB
11468if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11469 echo $ac_n "(cached) $ac_c" 1>&6
11470else
11471 cat > conftest.$ac_ext <<EOF
f7a11f8c 11472#line 11473 "configure"
a16d3c04
KB
11473#include "confdefs.h"
11474/* System header to define __stub macros and hopefully few prototypes,
11475 which can conflict with char $ac_func(); below. */
11476#include <assert.h>
11477/* Override any gcc2 internal prototype to avoid an error. */
11478/* We use char because int might match the return type of a gcc2
11479 builtin and then its argument prototype would still apply. */
11480char $ac_func();
f7a11f8c 11481char (*f)();
a16d3c04
KB
11482
11483int main() {
11484
11485/* The GNU C library defines this for functions which it implements
11486 to always fail with ENOSYS. Some functions are actually named
11487 something starting with __ and the normal name is an alias. */
11488#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11489choke me
11490#else
f7a11f8c 11491f = $ac_func;
a16d3c04
KB
11492#endif
11493
11494; return 0; }
11495EOF
f7a11f8c 11496if { (eval echo configure:11497: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a16d3c04
KB
11497 rm -rf conftest*
11498 eval "ac_cv_func_$ac_func=yes"
11499else
11500 echo "configure: failed program was:" >&5
11501 cat conftest.$ac_ext >&5
11502 rm -rf conftest*
11503 eval "ac_cv_func_$ac_func=no"
11504fi
11505rm -f conftest*
11506fi
11507
11508if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11509 echo "$ac_t""yes" 1>&6
11510 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11511 cat >> confdefs.h <<EOF
11512#define $ac_tr_func 1
11513EOF
11514 cat >> confdefs.h <<\EOF
11515#define HAVE_SHL_LOAD 1
11516EOF
11517 HAVE_DL_FUNCS=1 HAVE_SHL_FUNCS=1
11518else
11519 echo "$ac_t""no" 1>&6
11520fi
11521done
11522
11523
11524 if test "$HAVE_DL_FUNCS" = 0; then
1c8515f9 11525 if test "$USE_UNIX" = 1; then
a16d3c04
KB
11526 echo "configure: warning: "--with-dynlib and --with-odbc will be disabled due to missing shared library support"" 1>&2
11527 wxUSE_ODBC=no
11528 wxUSE_DYNLIB_CLASS=no
f7a11f8c
RR
11529 else
11530 echo "configure: warning: "Cannot check dynlib requirements on non-Unix platforms. dynlib remains enabled."" 1>&2
11531 fi
a16d3c04
KB
11532 fi
11533fi
11534
11535if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
11536 cat >> confdefs.h <<\EOF
11537#define wxUSE_DYNLIB_CLASS 1
11538EOF
11539
11540fi
11541
11542
11543if test "$wxUSE_UNICODE" = "yes" ; then
11544 cat >> confdefs.h <<\EOF
11545#define wxUSE_UNICODE 1
11546EOF
11547
11548fi
11549
11550if test "$wxUSE_WCSRTOMBS" = "yes" ; then
11551 cat >> confdefs.h <<\EOF
11552#define wxUSE_WCSRTOMBS 1
11553EOF
11554
11555fi
11556
11557if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
11558 cat >> confdefs.h <<\EOF
11559#define wxUSE_EXPERIMENTAL_PRINTF 1
11560EOF
11561
11562fi
11563
11564
11565IODBC_C_SRC=""
11566if test "$wxUSE_ODBC" = "yes" ; then
11567 cat >> confdefs.h <<\EOF
11568#define wxUSE_ODBC 1
11569EOF
11570
11571 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
11572fi
11573
11574
11575if test "$wxUSE_POSTSCRIPT" = "yes" ; then
11576 cat >> confdefs.h <<\EOF
11577#define wxUSE_POSTSCRIPT 1
11578EOF
11579
11580fi
11581
11582cat >> confdefs.h <<\EOF
11583#define wxUSE_AFM_FOR_POSTSCRIPT 1
11584EOF
11585
11586
11587cat >> confdefs.h <<\EOF
11588#define wxUSE_NORMALIZED_PS_FONTS 1
11589EOF
11590
11591
11592
11593if test "$wxUSE_CONSTRAINTS" = "yes"; then
11594 cat >> confdefs.h <<\EOF
11595#define wxUSE_CONSTRAINTS 1
11596EOF
11597
11598 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
11599fi
11600
11601if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
11602 cat >> confdefs.h <<\EOF
11603#define wxUSE_MDI_ARCHITECTURE 1
11604EOF
11605
11606 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
11607fi
11608
11609if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
11610 cat >> confdefs.h <<\EOF
11611#define wxUSE_DOC_VIEW_ARCHITECTURE 1
11612EOF
11613
11614 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
11615 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
11616 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
11617 fi
11618fi
11619
11620if test "$wxUSE_HELP" = "yes"; then
11621 cat >> confdefs.h <<\EOF
11622#define wxUSE_HELP 1
11623EOF
11624
11625 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
11626fi
11627
11628if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
11629 if test "$wxUSE_CONSTRAINTS" != "yes"; then
11630 echo "configure: warning: Printing support cannot be used without constraints so it won't be compiled without it" 1>&2
11631 else
11632 cat >> confdefs.h <<\EOF
11633#define wxUSE_PRINTING_ARCHITECTURE 1
11634EOF
11635
11636 fi
11637 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
11638fi
11639
11640if test "$wxUSE_PROLOGIO" = "yes" ; then
11641 cat >> confdefs.h <<\EOF
11642#define wxUSE_PROLOGIO 1
11643EOF
11644
11645fi
11646
11647if test "$wxUSE_RESOURCES" = "yes" ; then
11648 if test "$wxUSE_PROLOGIO" = "yes" ; then
11649 cat >> confdefs.h <<\EOF
11650#define wxUSE_RESOURCES 1
11651EOF
11652
11653 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS resource"
11654 else
11655 echo "configure: warning: wxWindows ressource system requires PrologIO and can't be compiled without it." 1>&2
11656 fi
11657fi
11658
11659if test "$wxUSE_X_RESOURCES" = "yes"; then
11660 cat >> confdefs.h <<\EOF
11661#define wxUSE_X_RESOURCES 1
11662EOF
11663
11664fi
11665
11666
11667if test "$wxUSE_IPC" = "yes"; then
11668 cat >> confdefs.h <<\EOF
11669#define wxUSE_IPC 1
11670EOF
11671
11672fi
11673
11674if test "$wxUSE_CLIPBOARD" = "yes"; then
11675 cat >> confdefs.h <<\EOF
11676#define wxUSE_CLIPBOARD 1
11677EOF
11678
11679fi
11680
11681if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
11682 if test "$wxUSE_GTK" = 1; then
11683 if test "$WXGTK12" != 1; then
11684 echo "configure: warning: Drag and drop is only supported under GTK+ 1.2" 1>&2
f7a11f8c 11685 wxUSE_DRAG_AND_DROP=no
a16d3c04
KB
11686 fi
11687 fi
11688
11689 if test "$wxUSE_MOTIF" = 1; then
11690 echo "configure: warning: Drag and drop is not yet supported under Motif" 1>&2
f7a11f8c 11691 wxUSE_DRAG_AND_DROP=no
a16d3c04
KB
11692 fi
11693
11694 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
11695 cat >> confdefs.h <<\EOF
11696#define wxUSE_DRAG_AND_DROP 1
11697EOF
11698
11699 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
11700 fi
11701fi
11702
11703if test "$wxUSE_SPLINES" = "yes" ; then
11704 cat >> confdefs.h <<\EOF
11705#define wxUSE_SPLINES 1
11706EOF
11707
11708fi
11709
11710
11711if test "$wxUSE_ACCEL" = "yes"; then
11712 cat >> confdefs.h <<\EOF
11713#define wxUSE_ACCEL 1
11714EOF
11715
11716fi
11717
11718if test "$wxUSE_CARET" = "yes"; then
11719 cat >> confdefs.h <<\EOF
11720#define wxUSE_CARET 1
11721EOF
11722
11723 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
11724fi
11725
11726if test "$wxUSE_COMBOBOX" = "yes"; then
11727 cat >> confdefs.h <<\EOF
11728#define wxUSE_COMBOBOX 1
11729EOF
11730
11731fi
11732
11733if test "$wxUSE_CHOICE" = "yes"; then
11734 cat >> confdefs.h <<\EOF
11735#define wxUSE_CHOICE 1
11736EOF
11737
11738fi
11739
11740if test "$wxUSE_BMPBUTTON" = "yes"; then
11741 cat >> confdefs.h <<\EOF
11742#define wxUSE_BMPBUTTON 1
11743EOF
11744
11745fi
11746
11747if test "$wxUSE_CHECKBOX" = "yes"; then
11748 cat >> confdefs.h <<\EOF
11749#define wxUSE_CHECKBOX 1
11750EOF
11751
11752fi
11753
11754if test "$wxUSE_CHECKLST" = "yes"; then
11755 cat >> confdefs.h <<\EOF
11756#define wxUSE_CHECKLISTBOX 1
11757EOF
11758
11759 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
11760fi
11761
11762if test "$wxUSE_GAUGE" = "yes"; then
11763 cat >> confdefs.h <<\EOF
11764#define wxUSE_GAUGE 1
11765EOF
11766
11767fi
11768
11769if test "$wxUSE_GRID" = "yes"; then
11770 cat >> confdefs.h <<\EOF
11771#define wxUSE_GRID 1
11772EOF
11773
11774 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
11775fi
11776
11777if test "$wxUSE_IMAGLIST" = "yes"; then
11778 cat >> confdefs.h <<\EOF
11779#define wxUSE_IMAGLIST 1
11780EOF
11781
11782fi
11783
11784if test "$wxUSE_LISTBOX" = "yes"; then
11785 cat >> confdefs.h <<\EOF
11786#define wxUSE_LISTBOX 1
11787EOF
11788
11789fi
11790
11791if test "$wxUSE_LISTCTRL" = "yes"; then
11792 if test "$wxUSE_IMAGLIST" = "yes"; then
11793 cat >> confdefs.h <<\EOF
11794#define wxUSE_LISTCTRL 1
11795EOF
11796
11797 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
11798 else
11799 echo "configure: warning: wxListCtrl requires wxImageList and won't be compiled without it" 1>&2
11800 fi
11801fi
11802
11803if test "$wxUSE_NOTEBOOK" = "yes"; then
11804 cat >> confdefs.h <<\EOF
11805#define wxUSE_NOTEBOOK 1
11806EOF
11807
11808 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
11809fi
11810
11811if test "$wxUSE_RADIOBOX" = "yes"; then
11812 cat >> confdefs.h <<\EOF
11813#define wxUSE_RADIOBOX 1
11814EOF
11815
11816fi
11817
11818if test "$wxUSE_RADIOBTN" = "yes"; then
11819 cat >> confdefs.h <<\EOF
11820#define wxUSE_RADIOBTN 1
11821EOF
11822
11823fi
11824
11825if test "$wxUSE_SASH" = "yes"; then
11826 cat >> confdefs.h <<\EOF
11827#define wxUSE_SASH 1
11828EOF
11829
11830 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
11831fi
11832
11833if test "$wxUSE_SCROLLBAR" = "yes"; then
11834 cat >> confdefs.h <<\EOF
11835#define wxUSE_SCROLLBAR 1
11836EOF
11837
11838 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll"
11839fi
11840
11841if test "$wxUSE_SLIDER" = "yes"; then
11842 cat >> confdefs.h <<\EOF
11843#define wxUSE_SLIDER 1
11844EOF
11845
11846fi
11847
11848if test "$wxUSE_SPINBTN" = "yes"; then
11849 cat >> confdefs.h <<\EOF
11850#define wxUSE_SPINBTN 1
11851EOF
11852
11853fi
11854
11855if test "$wxUSE_SPLITTER" = "yes"; then
11856 cat >> confdefs.h <<\EOF
11857#define wxUSE_SPLITTER 1
11858EOF
11859
11860 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
11861fi
11862
11863if test "$wxUSE_STATBMP" = "yes"; then
11864 cat >> confdefs.h <<\EOF
11865#define wxUSE_STATBMP 1
11866EOF
11867
11868fi
11869
11870if test "$wxUSE_STATBOX" = "yes"; then
11871 cat >> confdefs.h <<\EOF
11872#define wxUSE_STATBOX 1
11873EOF
11874
11875fi
11876
11877if test "$wxUSE_STATLINE" = "yes"; then
11878 if test "$wxUSE_WINE" = 1 ; then
11879 echo "configure: warning: wxStaticLine is not supported under WINE" 1>&2
11880 else
f7a11f8c 11881 cat >> confdefs.h <<\EOF
a16d3c04
KB
11882#define wxUSE_STATLINE 1
11883EOF
11884
11885 fi
11886fi
11887
11888if test "$wxUSE_STATUSBAR" = "yes"; then
11889 cat >> confdefs.h <<\EOF
11890#define wxUSE_STATUSBAR 1
11891EOF
11892
11893fi
11894
11895if test "$wxUSE_TABDIALOG" = "yes"; then
11896 cat >> confdefs.h <<\EOF
11897#define wxUSE_TAB_DIALOG 1
11898EOF
11899
11900 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab"
11901fi
11902
11903if test "$wxUSE_TOOLBAR" = "yes"; then
11904 cat >> confdefs.h <<\EOF
11905#define wxUSE_TOOLBAR 1
11906EOF
11907
11908 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
11909fi
11910
11911if test "$wxUSE_TOOLTIPS" = "yes"; then
11912 if test "$wxUSE_MOTIF" = 1; then
11913 echo "configure: warning: wxTooltip not supported yet under Motif" 1>&2
11914 else
11915 if test "$wxUSE_WINE" = 1; then
11916 echo "configure: warning: wxTooltip not supported under WINE" 1>&2
11917 else
11918 cat >> confdefs.h <<\EOF
11919#define wxUSE_TOOLTIPS 1
11920EOF
11921
11922 fi
11923 fi
11924fi
11925
11926if test "$wxUSE_TREECTRL" = "yes"; then
11927 if test "$wxUSE_IMAGLIST" = "yes"; then
11928 cat >> confdefs.h <<\EOF
11929#define wxUSE_TREECTRL 1
11930EOF
11931
11932 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
11933 else
11934 echo "configure: warning: wxTreeCtrl requires wxImageList and won't be compiled without it" 1>&2
11935 fi
11936fi
11937
11938
11939
11940if test "$wxUSE_METAFILE" = "yes"; then
11941 cat >> confdefs.h <<\EOF
11942#define wxUSE_METAFILE 1
11943EOF
11944
11945fi
11946
11947if test "$wxUSE_DIRDLG" = "yes"; then
11948 if test "$wxUSE_CONSTRAINTS" != "yes"; then
11949 echo "configure: warning: wxDirDialog requires constraints so it won't be compiled without them" 1>&2
11950 else
11951 if test "$wxUSE_TREECTRL" != "yes"; then
11952 echo "configure: warning: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" 1>&2
11953 else
11954 cat >> confdefs.h <<\EOF
11955#define wxUSE_DIRDLG 1
11956EOF
11957
11958 fi
11959 fi
11960fi
11961
11962if test "$wxUSE_TEXTDLG" = "yes"; then
11963 cat >> confdefs.h <<\EOF
11964#define wxUSE_TEXTDLG 1
11965EOF
11966
11967fi
11968
11969if test "$wxUSE_STARTUP_TIPS" = "yes"; then
11970 if test "$wxUSE_CONSTRAINTS" != "yes"; then
11971 echo "configure: warning: Startup tips requires constraints and won't be compiled without them" 1>&2
11972 else
11973 cat >> confdefs.h <<\EOF
11974#define wxUSE_STARTUP_TIPS 1
11975EOF
11976
11977 fi
11978fi
11979
11980if test "$wxUSE_PROGRESSDLG" = "yes"; then
11981 if test "$wxUSE_CONSTRAINTS" != "yes"; then
11982 echo "configure: warning: wxProgressDialog requires constraints so it won't be compiled without them" 1>&2
11983 else
11984 cat >> confdefs.h <<\EOF
11985#define wxUSE_PROGRESSDLG 1
11986EOF
11987
11988 fi
11989fi
11990
11991if test "$wxUSE_MINIFRAME" = "yes"; then
11992 cat >> confdefs.h <<\EOF
11993#define wxUSE_MINIFRAME 1
11994EOF
11995
11996 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
11997fi
11998
11999if test "$wxUSE_HTML" = "yes"; then
12000 cat >> confdefs.h <<\EOF
12001#define wxUSE_HTML 1
12002EOF
12003
12004 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html"
12005 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS html"
12006fi
12007
12008if test "$wxUSE_VALIDATORS" = "yes"; then
12009 cat >> confdefs.h <<\EOF
12010#define wxUSE_VALIDATORS 1
12011EOF
12012
12013 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
12014fi
12015
1c8515f9
KB
12016if test "$wxUSE_GIF" = "yes" ; then
12017 cat >> confdefs.h <<\EOF
12018#define wxUSE_GIF 1
12019EOF
12020
12021fi
12022
12023if test "$wxUSE_PCX" = "yes" ; then
12024 cat >> confdefs.h <<\EOF
12025#define wxUSE_PCX 1
12026EOF
12027
12028fi
12029
12030if test "$wxUSE_PNM" = "yes" ; then
12031 cat >> confdefs.h <<\EOF
12032#define wxUSE_PNM 1
12033EOF
12034
12035fi
12036
a16d3c04
KB
12037
12038GUILIBS="$GUI_TK_LIBRARY $OPENGL_LINK $LIBPNG_LINK $ZLIB_LINK $TOOLKIT_LINK"
12039
f7a11f8c
RR
12040EXTRA_LIBS="$LIBS $POSIX4_LINK $WCHAR_LINK $THREADS_LINK $DMALLOC_LINK"
12041if test "$wxUSE_GUI" = "yes"; then
12042 EXTRA_LIBS="$EXTRA_LIBS $GUILIBS"
12043fi
a16d3c04
KB
12044
12045LD_LIBS="\${top_builddir}/lib/${WX_LIBRARY_NAME_STATIC} $EXTRA_LIBS"
12046
12047INCLUDES="-I. -I\${top_builddir}/include -I\${top_srcdir}/include $ZLIB_INCLUDE $PNG_INCLUDE $JPEG_INCLUDE $TOOLKIT_INCLUDE"
12048
12049if test "$GXX" = yes ; then
12050 CXXWARNINGS="-Wall"
12051 fi
12052EXTRA_CFLAGS="$WXDEBUG $PROFILE $OPTIMISE $INCLUDES"
12053
12054CPPFLAGS="-I\${top_srcdir}/include $CPPFLAGS"
12055CFLAGS="$CFLAGS $EXTRA_CFLAGS"
12056CXXFLAGS="$CXXFLAGS $EXTRA_CFLAGS $CXXWARNINGS"
12057
12058if test "$wxUSE_GUI" = "yes"; then
12059
12060 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS bombs controls dialogs drawing dynamic \
12061 forty fractal image wxpoem"
f7a11f8c
RR
12062else
12063 SAMPLES_SUBDIRS=""
a16d3c04
KB
12064fi
12065
12066SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '`"
12067
12068
12069
12070
12071
12072
12073
12074
12075
12076
12077
12078
12079
12080
12081
12082
12083
12084
12085
12086
12087
12088
12089
12090
12091
12092
12093
12094
12095
12096
12097
12098
12099
12100
12101
12102
12103
12104
12105
12106
12107
12108
12109
12110
f7a11f8c
RR
12111
12112
12113
12114
a16d3c04
KB
12115
12116
12117
12118
12119
12120echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
f7a11f8c 12121echo "configure:12122: checking whether ${MAKE-make} sets \${MAKE}" >&5
a16d3c04
KB
12122set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
12123if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
12124 echo $ac_n "(cached) $ac_c" 1>&6
12125else
12126 cat > conftestmake <<\EOF
12127all:
12128 @echo 'ac_maketemp="${MAKE}"'
12129EOF
12130# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
12131eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
12132if test -n "$ac_maketemp"; then
12133 eval ac_cv_prog_make_${ac_make}_set=yes
12134else
12135 eval ac_cv_prog_make_${ac_make}_set=no
12136fi
12137rm -f conftestmake
12138fi
12139if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
12140 echo "$ac_t""yes" 1>&6
12141 SET_MAKE=
12142else
12143 echo "$ac_t""no" 1>&6
12144 SET_MAKE="MAKE=${MAKE-make}"
12145fi
12146
12147
12148
12149
12150if test "${TOOLKIT_DIR}" = "msw" ; then
12151 GL_TOOLKIT_DIR="win"
12152else
12153 GL_TOOLKIT_DIR="${TOOLKIT_DIR}"
12154fi
12155
12156
12157trap '' 1 2 15
12158cat > confcache <<\EOF
12159# This file is a shell script that caches the results of configure
12160# tests run on this system so they can be shared between configure
12161# scripts and configure runs. It is not useful on other systems.
12162# If it contains results you don't want to keep, you may remove or edit it.
12163#
12164# By default, configure uses ./config.cache as the cache file,
12165# creating it if it does not exist already. You can give configure
12166# the --cache-file=FILE option to use a different cache file; that is
12167# what configure does when it calls configure scripts in
12168# subdirectories, so they share the cache.
12169# Giving --cache-file=/dev/null disables caching, for debugging configure.
12170# config.status only pays attention to the cache file if you give it the
12171# --recheck option to rerun configure.
12172#
12173EOF
12174# The following way of writing the cache mishandles newlines in values,
12175# but we know of no workaround that is simple, portable, and efficient.
12176# So, don't put newlines in cache variables' values.
12177# Ultrix sh set writes to stderr and can't be redirected directly,
12178# and sets the high bit in the cache file unless we assign to the vars.
12179(set) 2>&1 |
fa3e4baf 12180 case `(ac_space=' '; set | grep ac_space) 2>&1` in
a16d3c04
KB
12181 *ac_space=\ *)
12182 # `set' does not quote correctly, so add quotes (double-quote substitution
12183 # turns \\\\ into \\, and sed turns \\ into \).
12184 sed -n \
12185 -e "s/'/'\\\\''/g" \
12186 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
12187 ;;
12188 *)
12189 # `set' quotes correctly as required by POSIX, so do not add quotes.
12190 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
12191 ;;
12192 esac >> confcache
12193if cmp -s $cache_file confcache; then
12194 :
12195else
12196 if test -w $cache_file; then
12197 echo "updating cache $cache_file"
12198 cat confcache > $cache_file
12199 else
12200 echo "not updating unwritable cache $cache_file"
12201 fi
12202fi
12203rm -f confcache
12204
12205trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
12206
12207test "x$prefix" = xNONE && prefix=$ac_default_prefix
12208# Let make expand exec_prefix.
12209test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12210
12211# Any assignment to VPATH causes Sun make to only execute
12212# the first set of double-colon rules, so remove it if not needed.
12213# If there is a colon in the path, we need to keep it.
12214if test "x$srcdir" = x.; then
12215 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
12216fi
12217
12218trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
12219
12220DEFS=-DHAVE_CONFIG_H
12221
12222# Without the "./", some shells look in PATH for config.status.
12223: ${CONFIG_STATUS=./config.status}
12224
12225echo creating $CONFIG_STATUS
12226rm -f $CONFIG_STATUS
12227cat > $CONFIG_STATUS <<EOF
12228#! /bin/sh
12229# Generated automatically by configure.
12230# Run this file to recreate the current configuration.
12231# This directory was configured as follows,
12232# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12233#
12234# $0 $ac_configure_args
12235#
12236# Compiler output produced by configure, useful for debugging
12237# configure, is in ./config.log if it exists.
12238
12239ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
12240for ac_option
12241do
12242 case "\$ac_option" in
12243 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12244 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
12245 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
12246 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
f7a11f8c 12247 echo "$CONFIG_STATUS generated by autoconf version 2.14"
a16d3c04
KB
12248 exit 0 ;;
12249 -help | --help | --hel | --he | --h)
12250 echo "\$ac_cs_usage"; exit 0 ;;
12251 *) echo "\$ac_cs_usage"; exit 1 ;;
12252 esac
12253done
12254
12255ac_given_srcdir=$srcdir
12256ac_given_INSTALL="$INSTALL"
12257
12258trap 'rm -fr `echo "
12259 wx-config
f7a11f8c
RR
12260 src/make.env
12261 src/makeprog.env
12262 src/makelib.env
a16d3c04
KB
12263 Makefile
12264 samples/Makefile
12265 samples/bombs/Makefile
12266 samples/caret/Makefile
12267 samples/checklst/Makefile
12268 samples/config/Makefile
12269 samples/controls/Makefile
f7a11f8c
RR
12270 samples/dialogs/Makefile
12271 samples/docview/Makefile
12272 samples/docvwmdi/Makefile
12273 samples/dnd/Makefile
12274 samples/drawing/Makefile
12275 samples/dynamic/Makefile
12276 samples/image/Makefile
12277 samples/internat/Makefile
12278 samples/layout/Makefile
12279 samples/listctrl/Makefile
12280 samples/mdi/Makefile
12281 samples/minifram/Makefile
12282 samples/minimal/Makefile
12283 samples/notebook/Makefile
a16d3c04
KB
12284 samples/printing/Makefile
12285 samples/proplist/Makefile
f7a11f8c
RR
12286 samples/sashtest/Makefile
12287 samples/scroll/Makefile
12288 samples/splitter/Makefile
12289 samples/text/Makefile
12290 samples/thread/Makefile
12291 samples/toolbar/Makefile
12292 samples/treectrl/Makefile
12293 samples/typetest/Makefile
12294 samples/validate/Makefile
12295 samples/wxpoem/Makefile
12296 samples/wxsocket/Makefile
12297 samples/wizard/Makefile
12298 samples/html/Makefile
12299 samples/html/about/Makefile
12300 samples/html/help/Makefile
12301 samples/html/printing/Makefile
12302 samples/html/test/Makefile
12303 samples/html/zip/Makefile
12304 samples/html/virtual/Makefile
12305 samples/html/widget/Makefile
12306 utils/Makefile
12307 utils/wxMMedia2/Makefile
12308 utils/wxMMedia2/lib/Makefile
12309 utils/wxMMedia2/sample/Makefile
12310 utils/glcanvas/Makefile
12311 utils/glcanvas/${GL_TOOLKIT_DIR}/Makefile
12312 utils/ogl/Makefile
12313 utils/ogl/src/Makefile
a16d3c04
KB
12314 setup.h:setup.h.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
12315EOF
12316cat >> $CONFIG_STATUS <<EOF
12317
12318# Protect against being on the right side of a sed subst in config.status.
12319sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
12320 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
12321$ac_vpsub
12322$extrasub
fa3e4baf 12323s%@SHELL@%$SHELL%g
a16d3c04
KB
12324s%@CFLAGS@%$CFLAGS%g
12325s%@CPPFLAGS@%$CPPFLAGS%g
12326s%@CXXFLAGS@%$CXXFLAGS%g
fa3e4baf 12327s%@FFLAGS@%$FFLAGS%g
a16d3c04
KB
12328s%@DEFS@%$DEFS%g
12329s%@LDFLAGS@%$LDFLAGS%g
12330s%@LIBS@%$LIBS%g
12331s%@exec_prefix@%$exec_prefix%g
12332s%@prefix@%$prefix%g
12333s%@program_transform_name@%$program_transform_name%g
12334s%@bindir@%$bindir%g
12335s%@sbindir@%$sbindir%g
12336s%@libexecdir@%$libexecdir%g
12337s%@datadir@%$datadir%g
12338s%@sysconfdir@%$sysconfdir%g
12339s%@sharedstatedir@%$sharedstatedir%g
12340s%@localstatedir@%$localstatedir%g
12341s%@libdir@%$libdir%g
12342s%@includedir@%$includedir%g
12343s%@oldincludedir@%$oldincludedir%g
12344s%@infodir@%$infodir%g
12345s%@mandir@%$mandir%g
12346s%@host@%$host%g
12347s%@host_alias@%$host_alias%g
12348s%@host_cpu@%$host_cpu%g
12349s%@host_vendor@%$host_vendor%g
12350s%@host_os@%$host_os%g
12351s%@target@%$target%g
12352s%@target_alias@%$target_alias%g
12353s%@target_cpu@%$target_cpu%g
12354s%@target_vendor@%$target_vendor%g
12355s%@target_os@%$target_os%g
12356s%@build@%$build%g
12357s%@build_alias@%$build_alias%g
12358s%@build_cpu@%$build_cpu%g
12359s%@build_vendor@%$build_vendor%g
12360s%@build_os@%$build_os%g
12361s%@CC@%$CC%g
12362s%@CPP@%$CPP%g
12363s%@CXX@%$CXX%g
12364s%@CXXCPP@%$CXXCPP%g
12365s%@RANLIB@%$RANLIB%g
12366s%@AR@%$AR%g
12367s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
fa3e4baf 12368s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
a16d3c04
KB
12369s%@INSTALL_DATA@%$INSTALL_DATA%g
12370s%@STRIP@%$STRIP%g
12371s%@YACC@%$YACC%g
12372s%@LEX@%$LEX%g
12373s%@LEXLIB@%$LEXLIB%g
12374s%@LN_S@%$LN_S%g
12375s%@GTK_CONFIG@%$GTK_CONFIG%g
12376s%@GTK_CFLAGS@%$GTK_CFLAGS%g
12377s%@GTK_LIBS@%$GTK_LIBS%g
12378s%@X_CFLAGS@%$X_CFLAGS%g
12379s%@X_PRE_LIBS@%$X_PRE_LIBS%g
12380s%@X_LIBS@%$X_LIBS%g
12381s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
12382s%@WX_MAJOR_VERSION_NUMBER@%$WX_MAJOR_VERSION_NUMBER%g
12383s%@WX_MINOR_VERSION_NUMBER@%$WX_MINOR_VERSION_NUMBER%g
12384s%@WX_RELEASE_NUMBER@%$WX_RELEASE_NUMBER%g
12385s%@WX_LIBRARY_NAME@%$WX_LIBRARY_NAME%g
12386s%@WX_LIBRARY_NAME_STATIC@%$WX_LIBRARY_NAME_STATIC%g
12387s%@WX_LIBRARY_NAME_SHARED@%$WX_LIBRARY_NAME_SHARED%g
12388s%@WX_LIBRARY@%$WX_LIBRARY%g
12389s%@WX_TARGET_LIBRARY@%$WX_TARGET_LIBRARY%g
12390s%@WX_LIBRARY_LINK1@%$WX_LIBRARY_LINK1%g
12391s%@WX_LIBRARY_LINK2@%$WX_LIBRARY_LINK2%g
12392s%@WX_LIBRARY_LINK3@%$WX_LIBRARY_LINK3%g
12393s%@PROGRAM_EXT@%$PROGRAM_EXT%g
12394s%@WX_CREATE_LINKS@%$WX_CREATE_LINKS%g
12395s%@WX_CREATE_INSTALLED_LINKS@%$WX_CREATE_INSTALLED_LINKS%g
12396s%@SHARED_LD@%$SHARED_LD%g
12397s%@PIC_FLAG@%$PIC_FLAG%g
12398s%@DEP_INFO_FLAGS@%$DEP_INFO_FLAGS%g
12399s%@WXDEBUG_DEFINE@%$WXDEBUG_DEFINE%g
12400s%@TOOLKIT@%$TOOLKIT%g
12401s%@TOOLKIT_DEF@%$TOOLKIT_DEF%g
12402s%@TOOLKIT_DIR@%$TOOLKIT_DIR%g
12403s%@TOOLKIT_INCLUDE@%$TOOLKIT_INCLUDE%g
12404s%@GUIHEADERS@%$GUIHEADERS%g
12405s%@GUIOBJS@%$GUIOBJS%g
12406s%@COMMONOBJS@%$COMMONOBJS%g
12407s%@GENERICOBJS@%$GENERICOBJS%g
12408s%@GUIDEPS@%$GUIDEPS%g
12409s%@COMMONDEPS@%$COMMONDEPS%g
12410s%@GENERICDEPS@%$GENERICDEPS%g
12411s%@UNIXOBJS@%$UNIXOBJS%g
f7a11f8c
RR
12412s%@UNIXDEPS@%$UNIXDEPS%g
12413s%@ALL_OBJECTS@%$ALL_OBJECTS%g
12414s%@ALL_DEPFILES@%$ALL_DEPFILES%g
12415s%@ALL_HEADERS@%$ALL_HEADERS%g
a16d3c04
KB
12416s%@GUIDIST@%$GUIDIST%g
12417s%@SRC_SUBDIRS@%$SRC_SUBDIRS%g
12418s%@INCLUDE_SUBDIRS@%$INCLUDE_SUBDIRS%g
12419s%@UTILS_SUBDIRS@%$UTILS_SUBDIRS%g
12420s%@DOCS_SUBDIRS@%$DOCS_SUBDIRS%g
12421s%@SAMPLES_SUBDIRS@%$SAMPLES_SUBDIRS%g
12422s%@USER_SUBDIRS@%$USER_SUBDIRS%g
12423s%@EXTRA_LIBS@%$EXTRA_LIBS%g
12424s%@LD_LIBS@%$LD_LIBS%g
12425s%@SET_MAKE@%$SET_MAKE%g
12426s%@GL_TOOLKIT_DIR@%$GL_TOOLKIT_DIR%g
12427
12428CEOF
12429EOF
12430
12431cat >> $CONFIG_STATUS <<\EOF
12432
12433# Split the substitutions into bite-sized pieces for seds with
12434# small command number limits, like on Digital OSF/1 and HP-UX.
12435ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
12436ac_file=1 # Number of current file.
12437ac_beg=1 # First line for current file.
12438ac_end=$ac_max_sed_cmds # Line after last line for current file.
12439ac_more_lines=:
12440ac_sed_cmds=""
12441while $ac_more_lines; do
12442 if test $ac_beg -gt 1; then
12443 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
12444 else
12445 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
12446 fi
12447 if test ! -s conftest.s$ac_file; then
12448 ac_more_lines=false
12449 rm -f conftest.s$ac_file
12450 else
12451 if test -z "$ac_sed_cmds"; then
12452 ac_sed_cmds="sed -f conftest.s$ac_file"
12453 else
12454 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
12455 fi
12456 ac_file=`expr $ac_file + 1`
12457 ac_beg=$ac_end
12458 ac_end=`expr $ac_end + $ac_max_sed_cmds`
12459 fi
12460done
12461if test -z "$ac_sed_cmds"; then
12462 ac_sed_cmds=cat
12463fi
12464EOF
12465
12466cat >> $CONFIG_STATUS <<EOF
12467
12468CONFIG_FILES=\${CONFIG_FILES-"wx-config
f7a11f8c
RR
12469 src/make.env
12470 src/makeprog.env
12471 src/makelib.env
a16d3c04
KB
12472 Makefile
12473 samples/Makefile
12474 samples/bombs/Makefile
12475 samples/caret/Makefile
12476 samples/checklst/Makefile
12477 samples/config/Makefile
12478 samples/controls/Makefile
f7a11f8c
RR
12479 samples/dialogs/Makefile
12480 samples/docview/Makefile
12481 samples/docvwmdi/Makefile
12482 samples/dnd/Makefile
12483 samples/drawing/Makefile
12484 samples/dynamic/Makefile
12485 samples/image/Makefile
12486 samples/internat/Makefile
12487 samples/layout/Makefile
12488 samples/listctrl/Makefile
12489 samples/mdi/Makefile
12490 samples/minifram/Makefile
12491 samples/minimal/Makefile
12492 samples/notebook/Makefile
a16d3c04
KB
12493 samples/printing/Makefile
12494 samples/proplist/Makefile
f7a11f8c
RR
12495 samples/sashtest/Makefile
12496 samples/scroll/Makefile
12497 samples/splitter/Makefile
12498 samples/text/Makefile
12499 samples/thread/Makefile
12500 samples/toolbar/Makefile
12501 samples/treectrl/Makefile
12502 samples/typetest/Makefile
12503 samples/validate/Makefile
12504 samples/wxpoem/Makefile
12505 samples/wxsocket/Makefile
12506 samples/wizard/Makefile
12507 samples/html/Makefile
12508 samples/html/about/Makefile
12509 samples/html/help/Makefile
12510 samples/html/printing/Makefile
12511 samples/html/test/Makefile
12512 samples/html/zip/Makefile
12513 samples/html/virtual/Makefile
12514 samples/html/widget/Makefile
12515 utils/Makefile
12516 utils/wxMMedia2/Makefile
12517 utils/wxMMedia2/lib/Makefile
12518 utils/wxMMedia2/sample/Makefile
12519 utils/glcanvas/Makefile
12520 utils/glcanvas/${GL_TOOLKIT_DIR}/Makefile
12521 utils/ogl/Makefile
12522 utils/ogl/src/Makefile
a16d3c04
KB
12523 "}
12524EOF
12525cat >> $CONFIG_STATUS <<\EOF
12526for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
12527 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12528 case "$ac_file" in
12529 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
12530 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
12531 *) ac_file_in="${ac_file}.in" ;;
12532 esac
12533
12534 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
12535
12536 # Remove last slash and all that follows it. Not all systems have dirname.
12537 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
12538 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
12539 # The file is in a subdirectory.
12540 test ! -d "$ac_dir" && mkdir "$ac_dir"
12541 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
12542 # A "../" for each directory in $ac_dir_suffix.
12543 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
12544 else
12545 ac_dir_suffix= ac_dots=
12546 fi
12547
12548 case "$ac_given_srcdir" in
12549 .) srcdir=.
12550 if test -z "$ac_dots"; then top_srcdir=.
12551 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
12552 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
12553 *) # Relative path.
12554 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
12555 top_srcdir="$ac_dots$ac_given_srcdir" ;;
12556 esac
12557
12558 case "$ac_given_INSTALL" in
12559 [/$]*) INSTALL="$ac_given_INSTALL" ;;
12560 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
12561 esac
12562
12563 echo creating "$ac_file"
12564 rm -f "$ac_file"
12565 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
12566 case "$ac_file" in
12567 *Makefile*) ac_comsub="1i\\
12568# $configure_input" ;;
12569 *) ac_comsub= ;;
12570 esac
12571
12572 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
12573 sed -e "$ac_comsub
12574s%@configure_input@%$configure_input%g
12575s%@srcdir@%$srcdir%g
12576s%@top_srcdir@%$top_srcdir%g
12577s%@INSTALL@%$INSTALL%g
12578" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
12579fi; done
12580rm -f conftest.s*
12581
12582# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
12583# NAME is the cpp macro being defined and VALUE is the value it is being given.
12584#
12585# ac_d sets the value in "#define NAME VALUE" lines.
12586ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
12587ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
12588ac_dC='\3'
12589ac_dD='%g'
12590# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
12591ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
12592ac_uB='\([ ]\)%\1#\2define\3'
12593ac_uC=' '
12594ac_uD='\4%g'
12595# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
12596ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
12597ac_eB='$%\1#\2define\3'
12598ac_eC=' '
12599ac_eD='%g'
12600
12601if test "${CONFIG_HEADERS+set}" != set; then
12602EOF
12603cat >> $CONFIG_STATUS <<EOF
12604 CONFIG_HEADERS="setup.h:setup.h.in"
12605EOF
12606cat >> $CONFIG_STATUS <<\EOF
12607fi
12608for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
12609 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12610 case "$ac_file" in
12611 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
12612 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
12613 *) ac_file_in="${ac_file}.in" ;;
12614 esac
12615
12616 echo creating $ac_file
12617
12618 rm -f conftest.frag conftest.in conftest.out
12619 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
12620 cat $ac_file_inputs > conftest.in
12621
12622EOF
12623
12624# Transform confdefs.h into a sed script conftest.vals that substitutes
12625# the proper values into config.h.in to produce config.h. And first:
12626# Protect against being on the right side of a sed subst in config.status.
12627# Protect against being in an unquoted here document in config.status.
12628rm -f conftest.vals
12629cat > conftest.hdr <<\EOF
12630s/[\\&%]/\\&/g
12631s%[\\$`]%\\&%g
12632s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
12633s%ac_d%ac_u%gp
12634s%ac_u%ac_e%gp
12635EOF
12636sed -n -f conftest.hdr confdefs.h > conftest.vals
12637rm -f conftest.hdr
12638
12639# This sed command replaces #undef with comments. This is necessary, for
12640# example, in the case of _POSIX_SOURCE, which is predefined and required
12641# on some systems where configure will not decide to define it.
12642cat >> conftest.vals <<\EOF
12643s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
12644EOF
12645
12646# Break up conftest.vals because some shells have a limit on
12647# the size of here documents, and old seds have small limits too.
12648
12649rm -f conftest.tail
12650while :
12651do
12652 ac_lines=`grep -c . conftest.vals`
12653 # grep -c gives empty output for an empty file on some AIX systems.
12654 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
12655 # Write a limited-size here document to conftest.frag.
12656 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
12657 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
12658 echo 'CEOF
12659 sed -f conftest.frag conftest.in > conftest.out
12660 rm -f conftest.in
12661 mv conftest.out conftest.in
12662' >> $CONFIG_STATUS
12663 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
12664 rm -f conftest.vals
12665 mv conftest.tail conftest.vals
12666done
12667rm -f conftest.vals
12668
12669cat >> $CONFIG_STATUS <<\EOF
12670 rm -f conftest.frag conftest.h
12671 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
12672 cat conftest.in >> conftest.h
12673 rm -f conftest.in
12674 if cmp -s $ac_file conftest.h 2>/dev/null; then
12675 echo "$ac_file is unchanged"
12676 rm -f conftest.h
12677 else
12678 # Remove last slash and all that follows it. Not all systems have dirname.
12679 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
12680 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
12681 # The file is in a subdirectory.
12682 test ! -d "$ac_dir" && mkdir "$ac_dir"
12683 fi
12684 rm -f $ac_file
12685 mv conftest.h $ac_file
12686 fi
12687fi; done
12688
12689EOF
12690cat >> $CONFIG_STATUS <<EOF
12691
12692 LN_S="${ac_cv_prog_LN_S}"
12693 TOOLKIT_DIR="${TOOLKIT_DIR}"
12694
12695
12696EOF
12697cat >> $CONFIG_STATUS <<\EOF
12698
12699 chmod +x wx-config
f7a11f8c
RR
12700 if test ! -d include; then
12701 mkdir include
12702 fi
12703 if test ! -d include/wx; then
12704 mkdir include/wx
12705 fi
12706 if test ! -d include/wx/${TOOLKIT_DIR}; then
12707 mkdir include/wx/${TOOLKIT_DIR}
12708 fi
12709 cp -f setup.h include/wx/${TOOLKIT_DIR}/setup.h
a16d3c04
KB
12710
12711exit 0
12712EOF
12713chmod +x $CONFIG_STATUS
12714rm -fr confdefs* $ac_clean_files
12715test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
12716
12717