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