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