]> git.saurik.com Git - wxWidgets.git/blame - configure
applied MIME patch(es) from Chris Elliott
[wxWidgets.git] / configure
CommitLineData
10f2d63a
VZ
1#! /bin/sh
2
2c6025bc 3# From configure.in Id: configure.in
10f2d63a
VZ
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
10f2d63a 36
422107f9
VZ
37
38
10f2d63a 39
6f72b082
OK
40
41
42# Configure paths for GTK+
43# Owen Taylor 97-11-3
10f2d63a
VZ
44
45
46# Guess values for system-dependent variables and create Makefiles.
e8482f24 47# Generated automatically using autoconf version 2.13
10f2d63a
VZ
48# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
49#
50# This configure script is free software; the Free Software Foundation
51# gives unlimited permission to copy, distribute and modify it.
52
53# Defaults:
54ac_help=
55ac_default_prefix=/usr/local
56# Any additions from configure.in:
57ac_help="$ac_help
58--enable-gui use GUI classes"
59ac_help="$ac_help
60 --with-gtk use GTK+"
61ac_help="$ac_help
62 --with-motif use Motif/Lesstif"
b4085ce6
GD
63ac_help="$ac_help
64 --with-mac use Mac OS X"
10f2d63a
VZ
65ac_help="$ac_help
66 --with-wine use WINE"
67ac_help="$ac_help
68 --with-cygwin use Cygwin for MS-Windows"
69ac_help="$ac_help
70 --with-mingw use GCC Minimal MS-Windows"
e07802fc
VZ
71ac_help="$ac_help
72 --with-pm use OS/2 Presentation Manager"
10f2d63a
VZ
73ac_help="$ac_help
74 --with-gtk-prefix=PFX Prefix where GTK is installed"
75ac_help="$ac_help
76 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed"
77ac_help="$ac_help
10f2d63a
VZ
78--with-libpng use libpng (PNG image format)"
79ac_help="$ac_help
80--with-libjpeg use libjpeg (JPEG file format)"
81ac_help="$ac_help
c7a2bf27
RR
82--with-libtiff use libtiff (TIFF file format)"
83ac_help="$ac_help
3fed1840
RR
84--with-freetype use freetype (font rasterizer)"
85ac_help="$ac_help
10f2d63a
VZ
86--with-opengl use OpenGL (or Mesa)"
87ac_help="$ac_help
b12915c1
VZ
88--with-dmalloc use dmalloc library (www.letters.com/dmalloc)"
89ac_help="$ac_help
90--with-zlib use zlib for LZW compression"
91ac_help="$ac_help
10f2d63a
VZ
92--with-odbc use the IODBC and wxODBC classes"
93ac_help="$ac_help
94--enable-shared create shared library code"
95ac_help="$ac_help
00cf1208
RR
96--enable-burnt_name create set name in shared library "
97ac_help="$ac_help
10f2d63a
VZ
98--enable-optimise create optimised code"
99ac_help="$ac_help
100--enable-debug same as debug_flag and debug_info"
101ac_help="$ac_help
102--enable-debug_flag set __WXDEBUG__ flag (recommended for developers!)"
103ac_help="$ac_help
104--enable-debug_info create code with debugging information"
105ac_help="$ac_help
106--enable-debug_gdb create code with extra GDB debugging information"
107ac_help="$ac_help
108--enable-debug_cntxt use wxDebugContext"
109ac_help="$ac_help
110--enable-mem_tracing create code with memory tracing"
111ac_help="$ac_help
112--enable-profile create code with profiling information"
113ac_help="$ac_help
114--enable-no_rtti create code without RTTI information"
115ac_help="$ac_help
116--enable-no_exceptions create code without exceptions information"
117ac_help="$ac_help
118--enable-permissive compile code disregarding strict ANSI"
119ac_help="$ac_help
120--enable-no_deps create code without dependency information"
121ac_help="$ac_help
122--enable-intl use internationalization system"
123ac_help="$ac_help
124--enable-config use wxConfig (and derived) classes"
125ac_help="$ac_help
126--enable-sockets use socket/network classes"
127ac_help="$ac_help
10f2d63a
VZ
128--enable-ipc use interprocess communication (wxSocket etc.)"
129ac_help="$ac_help
eb4efbdc
VZ
130--enable-dialupman use dialup network classes"
131ac_help="$ac_help
10f2d63a
VZ
132--enable-apple_ieee use the Apple IEEE codec"
133ac_help="$ac_help
134--enable-timedate use date/time classes"
135ac_help="$ac_help
136--enable-wave use wxWave class"
137ac_help="$ac_help
138--enable-fraction use wxFraction class"
139ac_help="$ac_help
140--enable-dynlib use wxLibrary class for DLL loading"
141ac_help="$ac_help
142--enable-longlong use wxLongLong class"
143ac_help="$ac_help
e8f65ba6
RR
144--enable-geometry use geometry class"
145ac_help="$ac_help
10f2d63a
VZ
146--enable-log use logging system"
147ac_help="$ac_help
148--enable-streams use wxStream etc classes"
149ac_help="$ac_help
150--enable-file use wxFile classes"
151ac_help="$ac_help
152--enable-textfile use wxTextFile classes"
153ac_help="$ac_help
154--enable-unicode compile wxString with Unicode support"
155ac_help="$ac_help
156--enable-wcsrtombs use wcsrtombs instead of buggy (GNU libc1/Linux libc5) wcstombs"
157ac_help="$ac_help
158--enable-wxprintfv use wxWindows implementation of vprintf()"
159ac_help="$ac_help
10f2d63a
VZ
160--enable-std_iostreams use standard C++ stream classes"
161ac_help="$ac_help
24528b0c
VS
162--enable-filesystem use virtual file systems classes"
163ac_help="$ac_help
10f2d63a
VZ
164--enable-fs_inet use virtual HTTP/FTP filesystems"
165ac_help="$ac_help
166--enable-fs_zip use virtual ZIP filesystems"
167ac_help="$ac_help
168--enable-zipstream use wxZipInputStream"
169ac_help="$ac_help
eb4efbdc
VZ
170--enable-catch_segvs catch signals and pass them to wxApp::OnFatalException"
171ac_help="$ac_help
10f2d63a
VZ
172--enable-threads use threads"
173ac_help="$ac_help
174--enable-serial use class serialization"
175ac_help="$ac_help
176--enable-docview use document view architecture"
177ac_help="$ac_help
178--enable-help use help (using external browser at present)"
179ac_help="$ac_help
180--enable-constraints use layout-constraints system"
181ac_help="$ac_help
182--enable-printarch use printing architecture"
183ac_help="$ac_help
184--enable-mdi use multiple document interface architecture"
185ac_help="$ac_help
186--enable-postscript use wxPostscriptDC device context (default for gtk+)"
187ac_help="$ac_help
188--enable-prologio use Prolog IO library"
189ac_help="$ac_help
190--enable-resources use wxWindows resources"
191ac_help="$ac_help
192--enable-xresources use X resources for save (default for gtk+)"
193ac_help="$ac_help
194--enable-clipboard use wxClipboard classes"
195ac_help="$ac_help
196--enable-dnd use Drag'n'Drop classes"
197ac_help="$ac_help
b64f0a5f
RL
198--enable-metafile use win32 metafiles"
199ac_help="$ac_help
10f2d63a
VZ
200--enable-wxtree make wxTree library"
201ac_help="$ac_help
202--enable-controls use all usual controls"
203ac_help="$ac_help
204--enable-accel use accelerators"
205ac_help="$ac_help
206--enable-caret use wxCaret class"
207ac_help="$ac_help
208--enable-bmpbutton use wxBitmapButton class"
209ac_help="$ac_help
210--enable-checkbox use wxCheckBox class"
211ac_help="$ac_help
212--enable-checklst use wxCheckListBox (listbox with checkboxes) class"
213ac_help="$ac_help
214--enable-choice use wxChoice class"
215ac_help="$ac_help
216--enable-combobox use wxComboBox classes"
217ac_help="$ac_help
218--enable-gauge use wxGauge class"
219ac_help="$ac_help
220--enable-grid use wxGrid class"
221ac_help="$ac_help
222--enable-newgrid use new wxGrid class"
223ac_help="$ac_help
224--enable-imaglist use wxImageList class"
225ac_help="$ac_help
226--enable-listbox use wxListBox class"
227ac_help="$ac_help
228--enable-listctrl use wxListCtrl class"
229ac_help="$ac_help
230--enable-notebook use wxNotebook class"
231ac_help="$ac_help
232--enable-radiobox use wxRadioBox class"
233ac_help="$ac_help
234--enable-radiobtn use wxRadioButton class"
235ac_help="$ac_help
236--enable-sash use wxSashWindow class"
237ac_help="$ac_help
238--enable-scrollbar use wxScrollBar class and scrollable windows"
239ac_help="$ac_help
240--enable-slider use wxSlider class"
241ac_help="$ac_help
242--enable-spinbtn use wxSpinButton class"
243ac_help="$ac_help
56cfaa52
RR
244--enable-spinctrl use wxSpinCtrl class"
245ac_help="$ac_help
10f2d63a
VZ
246--enable-splitter use wxSplitterWindow class"
247ac_help="$ac_help
248--enable-statbmp use wxStaticBitmap class"
249ac_help="$ac_help
250--enable-statbox use wxStaticBox class"
251ac_help="$ac_help
252--enable-statline use wxStaticLine class"
253ac_help="$ac_help
254--enable-statusbar use wxStatusBar class"
255ac_help="$ac_help
256--enable-tabdialog use wxTabControl class"
257ac_help="$ac_help
1db8dc4a
VZ
258--enable-togglebtn use wxToggleButton class"
259ac_help="$ac_help
10f2d63a
VZ
260--enable-toolbar use wxToolBar class"
261ac_help="$ac_help
360d6699
VZ
262--enable-tbarnative use native wxToolBar class"
263ac_help="$ac_help
264--enable-tbarsmpl use wxToolBarSimple class"
265ac_help="$ac_help
10f2d63a
VZ
266--enable-treectrl use wxTreeCtrl class"
267ac_help="$ac_help
268--enable-commondlg use common dialogs (wxDirDialog, wxProgressDialog, wxTextDialog, ...)"
269ac_help="$ac_help
270--enable-dirdlg use wxDirDialog"
271ac_help="$ac_help
272--enable-textdlg use wxTextDialog"
273ac_help="$ac_help
274--enable-tipdlg use startup tips"
275ac_help="$ac_help
276--enable-progressdlg use wxProgressDialog"
277ac_help="$ac_help
278--enable-miniframe use wxMiniFrame class"
279ac_help="$ac_help
280--enable-html use wxHTML sub-library"
281ac_help="$ac_help
282--enable-tooltips use wxToolTip class"
283ac_help="$ac_help
284--enable-splines use spline drawing code"
285ac_help="$ac_help
286--enable-validators use wxValidator and derived classes"
287ac_help="$ac_help
288--enable-busyinfo use wxBusyInfo"
289ac_help="$ac_help
f6bcfd97
BP
290--enable-joystick compile in joystick support (Linux only)"
291ac_help="$ac_help
0046ff7c
VS
292--enable-image use wxImage class"
293ac_help="$ac_help
10f2d63a
VZ
294--enable-gif use gif images (GIF file format)"
295ac_help="$ac_help
296--enable-pcx use pcx images (PCX file format)"
297ac_help="$ac_help
298--enable-pnm use pnm images (PNM file format)"
0046ff7c
VS
299ac_help="$ac_help
300--enable-xpm use xpm images (XPM file format)"
6f72b082
OK
301ac_help="$ac_help
302 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)"
303ac_help="$ac_help
304 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)"
305ac_help="$ac_help
306 --disable-gtktest Do not try to compile and run a test GTK program"
ab9b9eab
VZ
307ac_help="$ac_help
308 --with-x use the X Window System"
10f2d63a
VZ
309
310# Initialize some variables set by options.
311# The variables have the same names as the options, with
312# dashes changed to underlines.
313build=NONE
314cache_file=./config.cache
315exec_prefix=NONE
316host=NONE
317no_create=
318nonopt=NONE
319no_recursion=
320prefix=NONE
321program_prefix=NONE
322program_suffix=NONE
323program_transform_name=s,x,x,
324silent=
325site=
326srcdir=
327target=NONE
328verbose=
329x_includes=NONE
330x_libraries=NONE
331bindir='${exec_prefix}/bin'
332sbindir='${exec_prefix}/sbin'
333libexecdir='${exec_prefix}/libexec'
334datadir='${prefix}/share'
335sysconfdir='${prefix}/etc'
336sharedstatedir='${prefix}/com'
337localstatedir='${prefix}/var'
338libdir='${exec_prefix}/lib'
339includedir='${prefix}/include'
340oldincludedir='/usr/include'
341infodir='${prefix}/info'
342mandir='${prefix}/man'
343
344# Initialize some other variables.
345subdirs=
346MFLAGS= MAKEFLAGS=
347SHELL=${CONFIG_SHELL-/bin/sh}
348# Maximum number of lines to put in a shell here document.
349ac_max_here_lines=12
350
351ac_prev=
352for ac_option
353do
354
355 # If the previous option needs an argument, assign it.
356 if test -n "$ac_prev"; then
357 eval "$ac_prev=\$ac_option"
358 ac_prev=
359 continue
360 fi
361
362 case "$ac_option" in
363 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
364 *) ac_optarg= ;;
365 esac
366
367 # Accept the important Cygnus configure options, so we can diagnose typos.
368
369 case "$ac_option" in
370
371 -bindir | --bindir | --bindi | --bind | --bin | --bi)
372 ac_prev=bindir ;;
373 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
374 bindir="$ac_optarg" ;;
375
376 -build | --build | --buil | --bui | --bu)
377 ac_prev=build ;;
378 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
379 build="$ac_optarg" ;;
380
381 -cache-file | --cache-file | --cache-fil | --cache-fi \
382 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
383 ac_prev=cache_file ;;
384 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
385 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
386 cache_file="$ac_optarg" ;;
387
388 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
389 ac_prev=datadir ;;
390 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
391 | --da=*)
392 datadir="$ac_optarg" ;;
393
394 -disable-* | --disable-*)
395 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
396 # Reject names that are not valid shell variable names.
397 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
398 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
399 fi
400 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
401 eval "enable_${ac_feature}=no" ;;
402
403 -enable-* | --enable-*)
404 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
405 # Reject names that are not valid shell variable names.
406 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
407 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
408 fi
409 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
410 case "$ac_option" in
411 *=*) ;;
412 *) ac_optarg=yes ;;
413 esac
414 eval "enable_${ac_feature}='$ac_optarg'" ;;
415
416 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
417 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
418 | --exec | --exe | --ex)
419 ac_prev=exec_prefix ;;
420 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
421 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
422 | --exec=* | --exe=* | --ex=*)
423 exec_prefix="$ac_optarg" ;;
424
425 -gas | --gas | --ga | --g)
426 # Obsolete; use --with-gas.
427 with_gas=yes ;;
428
429 -help | --help | --hel | --he)
430 # Omit some internal or obsolete options to make the list less imposing.
431 # This message is too long to be a string in the A/UX 3.1 sh.
432 cat << EOF
433Usage: configure [options] [host]
434Options: [defaults in brackets after descriptions]
435Configuration:
436 --cache-file=FILE cache test results in FILE
437 --help print this message
438 --no-create do not create output files
439 --quiet, --silent do not print \`checking...' messages
440 --version print the version of autoconf that created configure
441Directory and file names:
442 --prefix=PREFIX install architecture-independent files in PREFIX
443 [$ac_default_prefix]
444 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
445 [same as prefix]
446 --bindir=DIR user executables in DIR [EPREFIX/bin]
447 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
448 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
449 --datadir=DIR read-only architecture-independent data in DIR
450 [PREFIX/share]
451 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
452 --sharedstatedir=DIR modifiable architecture-independent data in DIR
453 [PREFIX/com]
454 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
455 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
456 --includedir=DIR C header files in DIR [PREFIX/include]
457 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
458 --infodir=DIR info documentation in DIR [PREFIX/info]
459 --mandir=DIR man documentation in DIR [PREFIX/man]
460 --srcdir=DIR find the sources in DIR [configure dir or ..]
461 --program-prefix=PREFIX prepend PREFIX to installed program names
462 --program-suffix=SUFFIX append SUFFIX to installed program names
463 --program-transform-name=PROGRAM
464 run sed PROGRAM on installed program names
465EOF
466 cat << EOF
467Host type:
468 --build=BUILD configure for building on BUILD [BUILD=HOST]
469 --host=HOST configure for HOST [guessed]
470 --target=TARGET configure for TARGET [TARGET=HOST]
471Features and packages:
472 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
473 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
474 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
475 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
476 --x-includes=DIR X include files are in DIR
477 --x-libraries=DIR X library files are in DIR
478EOF
479 if test -n "$ac_help"; then
480 echo "--enable and --with options recognized:$ac_help"
481 fi
482 exit 0 ;;
483
484 -host | --host | --hos | --ho)
485 ac_prev=host ;;
486 -host=* | --host=* | --hos=* | --ho=*)
487 host="$ac_optarg" ;;
488
489 -includedir | --includedir | --includedi | --included | --include \
490 | --includ | --inclu | --incl | --inc)
491 ac_prev=includedir ;;
492 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
493 | --includ=* | --inclu=* | --incl=* | --inc=*)
494 includedir="$ac_optarg" ;;
495
496 -infodir | --infodir | --infodi | --infod | --info | --inf)
497 ac_prev=infodir ;;
498 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
499 infodir="$ac_optarg" ;;
500
501 -libdir | --libdir | --libdi | --libd)
502 ac_prev=libdir ;;
503 -libdir=* | --libdir=* | --libdi=* | --libd=*)
504 libdir="$ac_optarg" ;;
505
506 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
507 | --libexe | --libex | --libe)
508 ac_prev=libexecdir ;;
509 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
510 | --libexe=* | --libex=* | --libe=*)
511 libexecdir="$ac_optarg" ;;
512
513 -localstatedir | --localstatedir | --localstatedi | --localstated \
514 | --localstate | --localstat | --localsta | --localst \
515 | --locals | --local | --loca | --loc | --lo)
516 ac_prev=localstatedir ;;
517 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
518 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
519 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
520 localstatedir="$ac_optarg" ;;
521
522 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
523 ac_prev=mandir ;;
524 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
525 mandir="$ac_optarg" ;;
526
527 -nfp | --nfp | --nf)
528 # Obsolete; use --without-fp.
529 with_fp=no ;;
530
531 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
532 | --no-cr | --no-c)
533 no_create=yes ;;
534
535 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
536 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
537 no_recursion=yes ;;
538
539 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
540 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
541 | --oldin | --oldi | --old | --ol | --o)
542 ac_prev=oldincludedir ;;
543 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
544 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
545 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
546 oldincludedir="$ac_optarg" ;;
547
548 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
549 ac_prev=prefix ;;
550 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
551 prefix="$ac_optarg" ;;
552
553 -program-prefix | --program-prefix | --program-prefi | --program-pref \
554 | --program-pre | --program-pr | --program-p)
555 ac_prev=program_prefix ;;
556 -program-prefix=* | --program-prefix=* | --program-prefi=* \
557 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
558 program_prefix="$ac_optarg" ;;
559
560 -program-suffix | --program-suffix | --program-suffi | --program-suff \
561 | --program-suf | --program-su | --program-s)
562 ac_prev=program_suffix ;;
563 -program-suffix=* | --program-suffix=* | --program-suffi=* \
564 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
565 program_suffix="$ac_optarg" ;;
566
567 -program-transform-name | --program-transform-name \
568 | --program-transform-nam | --program-transform-na \
569 | --program-transform-n | --program-transform- \
570 | --program-transform | --program-transfor \
571 | --program-transfo | --program-transf \
572 | --program-trans | --program-tran \
573 | --progr-tra | --program-tr | --program-t)
574 ac_prev=program_transform_name ;;
575 -program-transform-name=* | --program-transform-name=* \
576 | --program-transform-nam=* | --program-transform-na=* \
577 | --program-transform-n=* | --program-transform-=* \
578 | --program-transform=* | --program-transfor=* \
579 | --program-transfo=* | --program-transf=* \
580 | --program-trans=* | --program-tran=* \
581 | --progr-tra=* | --program-tr=* | --program-t=*)
582 program_transform_name="$ac_optarg" ;;
583
584 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
585 | -silent | --silent | --silen | --sile | --sil)
586 silent=yes ;;
587
588 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
589 ac_prev=sbindir ;;
590 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
591 | --sbi=* | --sb=*)
592 sbindir="$ac_optarg" ;;
593
594 -sharedstatedir | --sharedstatedir | --sharedstatedi \
595 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
596 | --sharedst | --shareds | --shared | --share | --shar \
597 | --sha | --sh)
598 ac_prev=sharedstatedir ;;
599 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
600 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
601 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
602 | --sha=* | --sh=*)
603 sharedstatedir="$ac_optarg" ;;
604
605 -site | --site | --sit)
606 ac_prev=site ;;
607 -site=* | --site=* | --sit=*)
608 site="$ac_optarg" ;;
609
610 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
611 ac_prev=srcdir ;;
612 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
613 srcdir="$ac_optarg" ;;
614
615 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
616 | --syscon | --sysco | --sysc | --sys | --sy)
617 ac_prev=sysconfdir ;;
618 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
619 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
620 sysconfdir="$ac_optarg" ;;
621
622 -target | --target | --targe | --targ | --tar | --ta | --t)
623 ac_prev=target ;;
624 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
625 target="$ac_optarg" ;;
626
627 -v | -verbose | --verbose | --verbos | --verbo | --verb)
628 verbose=yes ;;
629
630 -version | --version | --versio | --versi | --vers)
e8482f24 631 echo "configure generated by autoconf version 2.13"
10f2d63a
VZ
632 exit 0 ;;
633
634 -with-* | --with-*)
635 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
636 # Reject names that are not valid shell variable names.
637 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
638 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
639 fi
640 ac_package=`echo $ac_package| sed 's/-/_/g'`
641 case "$ac_option" in
642 *=*) ;;
643 *) ac_optarg=yes ;;
644 esac
645 eval "with_${ac_package}='$ac_optarg'" ;;
646
647 -without-* | --without-*)
648 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
649 # Reject names that are not valid shell variable names.
650 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
651 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
652 fi
653 ac_package=`echo $ac_package| sed 's/-/_/g'`
654 eval "with_${ac_package}=no" ;;
655
656 --x)
657 # Obsolete; use --with-x.
658 with_x=yes ;;
659
660 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
661 | --x-incl | --x-inc | --x-in | --x-i)
662 ac_prev=x_includes ;;
663 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
664 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
665 x_includes="$ac_optarg" ;;
666
667 -x-libraries | --x-libraries | --x-librarie | --x-librari \
668 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
669 ac_prev=x_libraries ;;
670 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
671 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
672 x_libraries="$ac_optarg" ;;
673
674 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
675 ;;
676
677 *)
678 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
679 echo "configure: warning: $ac_option: invalid host type" 1>&2
680 fi
681 if test "x$nonopt" != xNONE; then
682 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
683 fi
684 nonopt="$ac_option"
685 ;;
686
687 esac
688done
689
690if test -n "$ac_prev"; then
691 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
692fi
693
694trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
695
696# File descriptor usage:
697# 0 standard input
698# 1 file creation
699# 2 errors and warnings
700# 3 some systems may open it to /dev/tty
701# 4 used on the Kubota Titan
702# 6 checking for... messages and results
703# 5 compiler messages saved in config.log
704if test "$silent" = yes; then
705 exec 6>/dev/null
706else
707 exec 6>&1
708fi
709exec 5>./config.log
710
711echo "\
712This file contains any messages produced by compilers while
713running configure, to aid debugging if configure makes a mistake.
714" 1>&5
715
716# Strip out --no-create and --no-recursion so they do not pile up.
717# Also quote any args containing shell metacharacters.
718ac_configure_args=
719for ac_arg
720do
721 case "$ac_arg" in
722 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
723 | --no-cr | --no-c) ;;
724 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
725 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
726 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
727 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
728 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
729 esac
730done
731
732# NLS nuisances.
733# Only set these to C if already set. These must not be set unconditionally
734# because not all systems understand e.g. LANG=C (notably SCO).
735# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
736# Non-C LC_CTYPE values break the ctype check.
737if test "${LANG+set}" = set; then LANG=C; export LANG; fi
738if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
739if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
740if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
741
742# confdefs.h avoids OS command line length limits that DEFS can exceed.
743rm -rf conftest* confdefs.h
744# AIX cpp loses on an empty file, so make sure it contains at least a newline.
745echo > confdefs.h
746
747# A filename unique to this package, relative to the directory that
748# configure is in, which we can look for to find out if srcdir is correct.
749ac_unique_file=wx-config.in
750
751# Find the source files, if location was not specified.
752if test -z "$srcdir"; then
753 ac_srcdir_defaulted=yes
754 # Try the directory containing this script, then its parent.
755 ac_prog=$0
756 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
757 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
758 srcdir=$ac_confdir
759 if test ! -r $srcdir/$ac_unique_file; then
760 srcdir=..
761 fi
762else
763 ac_srcdir_defaulted=no
764fi
765if test ! -r $srcdir/$ac_unique_file; then
766 if test "$ac_srcdir_defaulted" = yes; then
767 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
768 else
769 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
770 fi
771fi
772srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
773
774# Prefer explicitly selected file to automatically selected ones.
775if test -z "$CONFIG_SITE"; then
776 if test "x$prefix" != xNONE; then
777 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
778 else
779 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
780 fi
781fi
782for ac_site_file in $CONFIG_SITE; do
783 if test -r "$ac_site_file"; then
784 echo "loading site script $ac_site_file"
785 . "$ac_site_file"
786 fi
787done
788
789if test -r "$cache_file"; then
790 echo "loading cache $cache_file"
791 . $cache_file
792else
793 echo "creating cache $cache_file"
794 > $cache_file
795fi
796
797ac_ext=c
798# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
799ac_cpp='$CPP $CPPFLAGS'
800ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
801ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
802cross_compiling=$ac_cv_prog_cc_cross
803
804ac_exeext=
805ac_objext=o
806if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
807 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
808 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
809 ac_n= ac_c='
810' ac_t=' '
811 else
812 ac_n=-n ac_c= ac_t=
813 fi
814else
815 ac_n= ac_c='\c' ac_t=
816fi
817
818
819
7c66a493
VZ
820ac_aux_dir=
821for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
822 if test -f $ac_dir/install-sh; then
823 ac_aux_dir=$ac_dir
824 ac_install_sh="$ac_aux_dir/install-sh -c"
825 break
826 elif test -f $ac_dir/install.sh; then
827 ac_aux_dir=$ac_dir
828 ac_install_sh="$ac_aux_dir/install.sh -c"
829 break
830 fi
831done
832if test -z "$ac_aux_dir"; then
833 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
834fi
835ac_config_guess=$ac_aux_dir/config.guess
836ac_config_sub=$ac_aux_dir/config.sub
837ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
838
839
840# Do some error checking and defaulting for the host and target type.
841# The inputs are:
842# configure --host=HOST --target=TARGET --build=BUILD NONOPT
843#
844# The rules are:
845# 1. You are not allowed to specify --host, --target, and nonopt at the
846# same time.
847# 2. Host defaults to nonopt.
848# 3. If nonopt is not specified, then host defaults to the current host,
849# as determined by config.guess.
850# 4. Target and build default to nonopt.
851# 5. If nonopt is not specified, then target and build default to host.
852
853# The aliases save the names the user supplied, while $host etc.
854# will get canonicalized.
855case $host---$target---$nonopt in
856NONE---*---* | *---NONE---* | *---*---NONE) ;;
857*) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
858esac
859
860
861# Make sure we can run config.sub.
862if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
863else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
864fi
865
866echo $ac_n "checking host system type""... $ac_c" 1>&6
0046ff7c 867echo "configure:868: checking host system type" >&5
7c66a493
VZ
868
869host_alias=$host
870case "$host_alias" in
871NONE)
872 case $nonopt in
873 NONE)
874 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
875 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
876 fi ;;
877 *) host_alias=$nonopt ;;
878 esac ;;
879esac
880
881host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
882host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
883host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
884host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
885echo "$ac_t""$host" 1>&6
886
887echo $ac_n "checking target system type""... $ac_c" 1>&6
0046ff7c 888echo "configure:889: checking target system type" >&5
7c66a493
VZ
889
890target_alias=$target
891case "$target_alias" in
892NONE)
893 case $nonopt in
894 NONE) target_alias=$host_alias ;;
895 *) target_alias=$nonopt ;;
896 esac ;;
897esac
898
899target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
900target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
901target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
902target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
903echo "$ac_t""$target" 1>&6
904
905echo $ac_n "checking build system type""... $ac_c" 1>&6
0046ff7c 906echo "configure:907: checking build system type" >&5
7c66a493
VZ
907
908build_alias=$build
909case "$build_alias" in
910NONE)
911 case $nonopt in
912 NONE) build_alias=$host_alias ;;
913 *) build_alias=$nonopt ;;
914 esac ;;
915esac
916
917build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
918build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
919build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
920build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
921echo "$ac_t""$build" 1>&6
922
923test "$host_alias" != "$target_alias" &&
924 test "$program_prefix$program_suffix$program_transform_name" = \
925 NONENONEs,x,x, &&
926 program_prefix=${target_alias}-
927
928
10f2d63a
VZ
929
930WX_MAJOR_VERSION_NUMBER=2
37d403aa 931WX_MINOR_VERSION_NUMBER=3
f6bcfd97 932WX_RELEASE_NUMBER=0
10f2d63a 933
10f2d63a 934WX_VERSION=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER.$WX_RELEASE_NUMBER
10f2d63a 935WX_RELEASE=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER
6426998c
RL
936
937WX_CURRENT=0
938WX_REVISION=0
939WX_AGE=0
940
10f2d63a
VZ
941
942
943USE_UNIX=1
944USE_WIN32=0
b12915c1
VZ
945USE_BEOS=0
946
10f2d63a
VZ
947USE_LINUX=
948USE_SGI=
949USE_HPUX=
950USE_SYSV=
951USE_SVR4=
952USE_AIX=
953USE_SUN=
954USE_SOLARIS=
955USE_SUNOS=
956USE_ALPHA=
957USE_OSF=
958USE_BSD=
959USE_FREEBSD=
f6bcfd97 960USE_NETBSD=
10f2d63a
VZ
961USE_VMS=
962USE_ULTRIX=
963USE_CYGWIN=
964USE_MINGW=
965USE_DATA_GENERAL=
966
ab9b9eab
VZ
967NEEDS_D_REENTRANT_FOR_R_FUNCS=0
968
b4085ce6 969ALL_TOOLKITS="CYGWIN GTK MINGW MOTIF MAC WINE PM"
10f2d63a
VZ
970
971DEFAULT_wxUSE_GTK=0
972DEFAULT_wxUSE_MOTIF=0
973DEFAULT_wxUSE_MSW=0
b4085ce6 974DEFAULT_wxUSE_MAC=0
10f2d63a 975DEFAULT_wxUSE_WINE=0
e07802fc 976DEFAULT_wxUSE_PM=0
10f2d63a
VZ
977
978DEFAULT_DEFAULT_wxUSE_GTK=0
979DEFAULT_DEFAULT_wxUSE_MOTIF=0
980DEFAULT_DEFAULT_wxUSE_MSW=0
b4085ce6 981DEFAULT_DEFAULT_wxUSE_MAC=0
10f2d63a 982DEFAULT_DEFAULT_wxUSE_WINE=0
e07802fc 983DEFAULT_DEFAULT_wxUSE_PM=0
10f2d63a 984
d6a55c4b
VZ
985PROGRAM_EXT=
986
10f2d63a
VZ
987case "${host}" in
988 *-hp-hpux* )
989 USE_HPUX=1
990 DEFAULT_DEFAULT_wxUSE_MOTIF=1
ab9b9eab 991 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
10f2d63a
VZ
992 cat >> confdefs.h <<\EOF
993#define __HPUX__ 1
994EOF
995
996 ;;
997 *-*-linux* )
998 USE_LINUX=1
999 cat >> confdefs.h <<\EOF
1000#define __LINUX__ 1
1001EOF
1002
1003 TMP=`uname -m`
1004 if test "x$TMP" = "xalpha"; then
1005 USE_ALPHA=1
1006 cat >> confdefs.h <<\EOF
1007#define __ALPHA__ 1
1008EOF
1009
1010 fi
1011 DEFAULT_DEFAULT_wxUSE_GTK=1
1012 ;;
1013 *-*-irix5* | *-*-irix6* )
1014 USE_SGI=1
1015 USE_SVR4=1
1016 cat >> confdefs.h <<\EOF
1017#define __SGI__ 1
1018EOF
1019
1020 cat >> confdefs.h <<\EOF
1021#define __SVR4__ 1
1022EOF
1023
1024 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1025 ;;
1026 *-*-solaris2* )
1027 USE_SUN=1
1028 USE_SOLARIS=1
1029 USE_SVR4=1
1030 cat >> confdefs.h <<\EOF
1031#define __SUN__ 1
1032EOF
1033
1034 cat >> confdefs.h <<\EOF
1035#define __SOLARIS__ 1
1036EOF
1037
1038 cat >> confdefs.h <<\EOF
1039#define __SVR4__ 1
1040EOF
1041
1042 DEFAULT_DEFAULT_wxUSE_MOTIF=1
ab9b9eab 1043 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
10f2d63a
VZ
1044 ;;
1045 *-*-sunos4* )
1046 USE_SUN=1
1047 USE_SUNOS=1
1048 USE_BSD=1
1049 cat >> confdefs.h <<\EOF
1050#define __SUN__ 1
1051EOF
1052
1053 cat >> confdefs.h <<\EOF
1054#define __SUNOS__ 1
1055EOF
1056
1057 cat >> confdefs.h <<\EOF
1058#define __BSD__ 1
1059EOF
1060
1061 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1062 ;;
f6bcfd97 1063 *-*-freebsd*)
10f2d63a
VZ
1064 USE_BSD=1
1065 USE_FREEBSD=1
1066 cat >> confdefs.h <<\EOF
1067#define __FREEBSD__ 1
1068EOF
1069
1070 cat >> confdefs.h <<\EOF
1071#define __BSD__ 1
f6bcfd97
BP
1072EOF
1073
1074 DEFAULT_DEFAULT_wxUSE_GTK=1
1075 ;;
1076 *-*-netbsd*)
1077 USE_BSD=1
1078 USE_NETBSD=1
1079 cat >> confdefs.h <<\EOF
1080#define __FREEBSD__ 1
1081EOF
1082
1083 cat >> confdefs.h <<\EOF
1084#define __NETBSD__ 1
10f2d63a
VZ
1085EOF
1086
1087 DEFAULT_DEFAULT_wxUSE_GTK=1
1088 ;;
1089 *-*-osf* )
1090 USE_ALPHA=1
1091 USE_OSF=1
1092 cat >> confdefs.h <<\EOF
1093#define __ALPHA__ 1
1094EOF
1095
1096 cat >> confdefs.h <<\EOF
1097#define __OSF__ 1
1098EOF
1099
1100 DEFAULT_DEFAULT_wxUSE_MOTIF=1
f6bcfd97 1101 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
10f2d63a
VZ
1102 ;;
1103 *-*-dgux5* )
1104 USE_ALPHA=1
1105 USE_SVR4=1
1106 cat >> confdefs.h <<\EOF
1107#define __ALPHA__ 1
1108EOF
1109
1110 cat >> confdefs.h <<\EOF
1111#define __SVR4__ 1
1112EOF
1113
1114 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1115 ;;
1116 *-*-sysv5* )
1117 USE_SYSV=1
1118 USE_SVR4=1
1119 cat >> confdefs.h <<\EOF
1120#define __SYSV__ 1
1121EOF
1122
1123 cat >> confdefs.h <<\EOF
1124#define __SVR4__ 1
1125EOF
1126
1127 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1128 ;;
1129 *-*-aix* )
1130 USE_AIX=1
1131 USE_SYSV=1
1132 USE_SVR4=1
1133 cat >> confdefs.h <<\EOF
1134#define __AIX__ 1
1135EOF
1136
1137 cat >> confdefs.h <<\EOF
1138#define __SYSV__ 1
1139EOF
1140
1141 cat >> confdefs.h <<\EOF
1142#define __SVR4__ 1
1143EOF
1144
1145 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1146 ;;
1147
7eef8db2 1148 *-*-cygwin32* | *-*-mingw32* )
10f2d63a
VZ
1149 USE_UNIX=0
1150 USE_WIN32=1
1151 cat >> confdefs.h <<\EOF
1152#define __WIN32__ 1
1153EOF
1154
1155 cat >> confdefs.h <<\EOF
1156#define __WIN95__ 1
1157EOF
1158
1159 cat >> confdefs.h <<\EOF
1160#define __WINDOWS__ 1
1161EOF
1162
1163 cat >> confdefs.h <<\EOF
1164#define __GNUWIN32__ 1
1165EOF
1166
1167 cat >> confdefs.h <<\EOF
1168#define STRICT 1
1169EOF
1170
1171 cat >> confdefs.h <<\EOF
1172#define WINVER 0x0400
1173EOF
1174
cf27ef00 1175 PROGRAM_EXT=".exe"
10f2d63a
VZ
1176 DEFAULT_DEFAULT_wxUSE_MSW=1
1177 ;;
1178
1179 *-pc-os2_emx )
1180 cat >> confdefs.h <<\EOF
1181#define __EMX__ 1
1182EOF
1183
cf27ef00 1184 PROGRAM_EXT=".exe"
e07802fc 1185 DEFAULT_DEFAULT_wxUSE_PM=1
10f2d63a
VZ
1186 ;;
1187
b4085ce6
GD
1188 *-*-darwin* )
1189 USE_BSD=1
1190 USE_MAC=1
1191 cat >> confdefs.h <<\EOF
1192#define __MAC__ 1
1193EOF
1194
1195 cat >> confdefs.h <<\EOF
1196#define __BSD__ 1
1197EOF
1198
1199 cat >> confdefs.h <<\EOF
1200#define __UNIX__ 1
1201EOF
1202
1203 DEFAULT_DEFAULT_wxUSE_MAC=1
1204 ;;
1205
b12915c1
VZ
1206 *-*-beos* )
1207 USE_BEOS=1
1208 cat >> confdefs.h <<\EOF
1209#define __BEOS__ 1
1210EOF
1211
1212 ;;
1213
10f2d63a
VZ
1214 *)
1215 { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; }
1216esac
1217
1218if test "$USE_UNIX" = 1 ; then
b12915c1
VZ
1219 wxUSE_UNIX=yes
1220 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1221#define __UNIX__ 1
1222EOF
1223
b12915c1
VZ
1224
1225 SRC_SUBDIRS="$SRC_SUBDIRS unix"
1226 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS unix"
1227fi
1228
1229if test "$USE_BEOS" = 1; then
1230 SRC_SUBDIRS="$SRC_SUBDIRS be"
1231 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS be"
10f2d63a
VZ
1232fi
1233
1234if test "$USE_LINUX" = 1; then
1235 echo $ac_n "checking for gettext in -lc""... $ac_c" 1>&6
0046ff7c 1236echo "configure:1237: checking for gettext in -lc" >&5
10f2d63a
VZ
1237ac_lib_var=`echo c'_'gettext | sed 'y%./+-%__p_%'`
1238if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1239 echo $ac_n "(cached) $ac_c" 1>&6
1240else
1241 ac_save_LIBS="$LIBS"
1242LIBS="-lc $LIBS"
1243cat > conftest.$ac_ext <<EOF
0046ff7c 1244#line 1245 "configure"
10f2d63a
VZ
1245#include "confdefs.h"
1246/* Override any gcc2 internal prototype to avoid an error. */
1247/* We use char because int might match the return type of a gcc2
1248 builtin and then its argument prototype would still apply. */
1249char gettext();
1250
1251int main() {
1252gettext()
1253; return 0; }
1254EOF
0046ff7c 1255if { (eval echo configure:1256: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
1256 rm -rf conftest*
1257 eval "ac_cv_lib_$ac_lib_var=yes"
1258else
1259 echo "configure: failed program was:" >&5
1260 cat conftest.$ac_ext >&5
1261 rm -rf conftest*
1262 eval "ac_cv_lib_$ac_lib_var=no"
1263fi
1264rm -f conftest*
1265LIBS="$ac_save_LIBS"
1266
1267fi
1268if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1269 echo "$ac_t""yes" 1>&6
1270 cat >> confdefs.h <<\EOF
1271#define wxHAVE_GLIBC2 1
1272EOF
1273
1274else
1275 echo "$ac_t""no" 1>&6
1276fi
1277
1278fi
1279
1280
1281
1282
1283 wx_arg_cache_file="configarg.cache"
1284 echo "loading argument cache $wx_arg_cache_file"
1285 rm -f ${wx_arg_cache_file}.tmp
1286 touch ${wx_arg_cache_file}.tmp
1287 touch ${wx_arg_cache_file}
1288
1289
1290DEBUG_CONFIGURE=0
1291if test $DEBUG_CONFIGURE = 1; then
1292 DEFAULT_wxUSE_THREADS=yes
1293
1294 DEFAULT_wxUSE_SHARED=yes
00cf1208 1295 DEFAULT_wxUSE_BURNT_NAME=no
10f2d63a
VZ
1296 DEFAULT_wxUSE_OPTIMISE=yes
1297 DEFAULT_wxUSE_PROFILE=no
1298 DEFAULT_wxUSE_NO_DEPS=no
1299 DEFAULT_wxUSE_NO_RTTI=no
1300 DEFAULT_wxUSE_NO_EXCEPTIONS=no
1301 DEFAULT_wxUSE_PERMISSIVE=no
1302 DEFAULT_wxUSE_DEBUG_FLAG=yes
1303 DEFAULT_wxUSE_DEBUG_INFO=yes
1304 DEFAULT_wxUSE_DEBUG_GDB=yes
1305 DEFAULT_wxUSE_MEM_TRACING=no
1306 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1307 DEFAULT_wxUSE_DMALLOC=no
1308 DEFAULT_wxUSE_APPLE_IEEE=no
1309
1310 DEFAULT_wxUSE_LOG=yes
1311
1312 DEFAULT_wxUSE_GUI=yes
1313
1314 DEFAULT_wxUSE_ZLIB=no
1315 DEFAULT_wxUSE_LIBPNG=no
1316 DEFAULT_wxUSE_LIBJPEG=no
c7a2bf27 1317 DEFAULT_wxUSE_LIBTIFF=no
10f2d63a 1318 DEFAULT_wxUSE_ODBC=no
3fed1840 1319 DEFAULT_wxUSE_FREETYPE=no
bdad4e7e 1320 DEFAULT_wxUSE_OPENGL=no
10f2d63a 1321
eb4efbdc 1322 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no
10f2d63a
VZ
1323 DEFAULT_wxUSE_STD_IOSTREAM=no
1324 DEFAULT_wxUSE_FILE=no
1325 DEFAULT_wxUSE_TEXTFILE=no
1326 DEFAULT_wxUSE_TIMEDATE=no
1327 DEFAULT_wxUSE_WAVE=no
1328 DEFAULT_wxUSE_INTL=no
1329 DEFAULT_wxUSE_CONFIG=no
1330 DEFAULT_wxUSE_STREAMS=no
1331 DEFAULT_wxUSE_SOCKETS=no
1332 DEFAULT_wxUSE_DIALUP_MANAGER=no
1333 DEFAULT_wxUSE_SERIAL=no
1334 DEFAULT_wxUSE_JOYSTICK=no
1335 DEFAULT_wxUSE_DYNLIB_CLASS=no
1336 DEFAULT_wxUSE_LONGLONG=no
e8f65ba6 1337 DEFAULT_wxUSE_GEOMETRY=no
10f2d63a
VZ
1338
1339 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
1340 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
1341 DEFAULT_wxUSE_POSTSCRIPT=no
1342
1343 DEFAULT_wxUSE_X_RESOURCES=no
1344 DEFAULT_wxUSE_CLIPBOARD=no
1345 DEFAULT_wxUSE_TOOLTIPS=no
1346 DEFAULT_wxUSE_DRAG_AND_DROP=no
1347 DEFAULT_wxUSE_SPLINES=no
1348
1349 DEFAULT_wxUSE_MDI_ARCHITECTURE=no
1350 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
1351 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
1352
1353 DEFAULT_wxUSE_PROLOGIO=no
1354 DEFAULT_wxUSE_RESOURCES=no
1355 DEFAULT_wxUSE_CONSTRAINTS=no
1356 DEFAULT_wxUSE_IPC=no
1357 DEFAULT_wxUSE_HELP=no
1358 DEFAULT_wxUSE_WXTREE=no
1359 DEFAULT_wxUSE_METAFILE=no
1360
1361 DEFAULT_wxUSE_COMMONDLGS=no
1362 DEFAULT_wxUSE_DIRDLG=no
1363 DEFAULT_wxUSE_TEXTDLG=no
1364 DEFAULT_wxUSE_STARTUP_TIPS=no
1365 DEFAULT_wxUSE_PROGRESSDLG=no
1366 DEFAULT_wxUSE_MINIFRAME=no
1367 DEFAULT_wxUSE_HTML=no
24528b0c 1368 DEFAULT_wxUSE_FILESYSTEM=no
10f2d63a
VZ
1369 DEFAULT_wxUSE_FS_INET=no
1370 DEFAULT_wxUSE_FS_ZIP=no
1371 DEFAULT_wxUSE_BUSYINFO=no
1372 DEFAULT_wxUSE_ZIPSTREAM=no
1373 DEFAULT_wxUSE_VALIDATORS=yes
1374
1375 DEFAULT_wxUSE_ACCEL=no
1376 DEFAULT_wxUSE_CARET=no
1377 DEFAULT_wxUSE_BMPBUTTON=no
1378 DEFAULT_wxUSE_CHECKBOX=no
1379 DEFAULT_wxUSE_CHECKLST=no
1380 DEFAULT_wxUSE_CHOICE=yes
1381 DEFAULT_wxUSE_COMBOBOX=no
1382 DEFAULT_wxUSE_GAUGE=no
1383 DEFAULT_wxUSE_GRID=no
1384 DEFAULT_wxUSE_NEW_GRID=no
1385 DEFAULT_wxUSE_IMAGLIST=no
1386 DEFAULT_wxUSE_LISTBOX=no
1387 DEFAULT_wxUSE_LISTCTRL=no
1388 DEFAULT_wxUSE_NOTEBOOK=no
1389 DEFAULT_wxUSE_RADIOBOX=no
1390 DEFAULT_wxUSE_RADIOBTN=no
1391 DEFAULT_wxUSE_SASH=no
1392 DEFAULT_wxUSE_SCROLLBAR=no
1393 DEFAULT_wxUSE_SLIDER=no
1394 DEFAULT_wxUSE_SPINBTN=no
56cfaa52 1395 DEFAULT_wxUSE_SPINCTRL=no
10f2d63a
VZ
1396 DEFAULT_wxUSE_SPLITTER=no
1397 DEFAULT_wxUSE_STATBMP=no
1398 DEFAULT_wxUSE_STATBOX=no
1399 DEFAULT_wxUSE_STATLINE=no
1400 DEFAULT_wxUSE_STATUSBAR=yes
1401 DEFAULT_wxUSE_TABDIALOG=no
1db8dc4a 1402 DEFAULT_wxUSE_TOGGLEBTN=no
10f2d63a 1403 DEFAULT_wxUSE_TOOLBAR=no
360d6699
VZ
1404 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
1405 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
10f2d63a
VZ
1406 DEFAULT_wxUSE_TREECTRL=no
1407
1408 DEFAULT_wxUSE_UNICODE=no
1409 DEFAULT_wxUSE_WCSRTOMBS=no
1410
0046ff7c 1411 DEFAULT_wxUSE_IMAGE=no
10f2d63a
VZ
1412 DEFAULT_wxUSE_GIF=no
1413 DEFAULT_wxUSE_PCX=no
1414 DEFAULT_wxUSE_PNM=no
0046ff7c 1415 DEFAULT_wxUSE_XPM=no
10f2d63a
VZ
1416else
1417 DEFAULT_wxUSE_THREADS=yes
1418
1419 DEFAULT_wxUSE_SHARED=yes
00cf1208 1420 DEFAULT_wxUSE_BURNT_NAME=no
10f2d63a
VZ
1421 DEFAULT_wxUSE_OPTIMISE=yes
1422 DEFAULT_wxUSE_PROFILE=no
1423 DEFAULT_wxUSE_NO_DEPS=no
1424 DEFAULT_wxUSE_NO_RTTI=no
1425 DEFAULT_wxUSE_NO_EXCEPTIONS=no
1426 DEFAULT_wxUSE_PERMISSIVE=no
1427 DEFAULT_wxUSE_DEBUG_FLAG=no
1428 DEFAULT_wxUSE_DEBUG_INFO=no
1429 DEFAULT_wxUSE_DEBUG_GDB=no
1430 DEFAULT_wxUSE_MEM_TRACING=no
1431 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1432 DEFAULT_wxUSE_DMALLOC=no
1433 DEFAULT_wxUSE_APPLE_IEEE=yes
1434
1435 DEFAULT_wxUSE_LOG=yes
1436
1437 DEFAULT_wxUSE_GUI=yes
1438
1439 DEFAULT_wxUSE_ZLIB=yes
1440 DEFAULT_wxUSE_LIBPNG=yes
1441 DEFAULT_wxUSE_LIBJPEG=yes
b47c832e 1442 DEFAULT_wxUSE_LIBTIFF=yes
16b52fa1 1443 DEFAULT_wxUSE_ODBC=no
3fed1840 1444 DEFAULT_wxUSE_FREETYPE=no
bdad4e7e 1445 DEFAULT_wxUSE_OPENGL=no
10f2d63a 1446
eb4efbdc 1447 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes
10f2d63a
VZ
1448 DEFAULT_wxUSE_STD_IOSTREAM=no
1449 DEFAULT_wxUSE_FILE=yes
1450 DEFAULT_wxUSE_TEXTFILE=yes
1451 DEFAULT_wxUSE_TIMEDATE=yes
1452 DEFAULT_wxUSE_WAVE=no
1453 DEFAULT_wxUSE_INTL=yes
1454 DEFAULT_wxUSE_CONFIG=yes
1455 DEFAULT_wxUSE_STREAMS=yes
1456 DEFAULT_wxUSE_SOCKETS=yes
1457 DEFAULT_wxUSE_DIALUP_MANAGER=yes
1458 DEFAULT_wxUSE_SERIAL=yes
1459 DEFAULT_wxUSE_JOYSTICK=yes
1460 DEFAULT_wxUSE_DYNLIB_CLASS=yes
b685cd9b 1461 DEFAULT_wxUSE_LONGLONG=yes
e8f65ba6 1462 DEFAULT_wxUSE_GEOMETRY=yes
10f2d63a
VZ
1463
1464 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
1465 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
1466 DEFAULT_wxUSE_POSTSCRIPT=yes
1467
1468 DEFAULT_wxUSE_X_RESOURCES=no
1469 DEFAULT_wxUSE_CLIPBOARD=yes
1470 DEFAULT_wxUSE_TOOLTIPS=yes
1471 DEFAULT_wxUSE_DRAG_AND_DROP=yes
1472 DEFAULT_wxUSE_SPLINES=yes
1473
1474 DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
1475 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
1476 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
1477
1478 DEFAULT_wxUSE_PROLOGIO=yes
1479 DEFAULT_wxUSE_RESOURCES=yes
1480 DEFAULT_wxUSE_CONSTRAINTS=yes
1481 DEFAULT_wxUSE_IPC=yes
1482 DEFAULT_wxUSE_HELP=yes
1483 DEFAULT_wxUSE_WXTREE=yes
1484 DEFAULT_wxUSE_METAFILE=yes
1485
1486 DEFAULT_wxUSE_COMMONDLGS=yes
1487 DEFAULT_wxUSE_DIRDLG=yes
1488 DEFAULT_wxUSE_TEXTDLG=yes
1489 DEFAULT_wxUSE_STARTUP_TIPS=yes
1490 DEFAULT_wxUSE_PROGRESSDLG=yes
1491 DEFAULT_wxUSE_MINIFRAME=yes
1492 DEFAULT_wxUSE_HTML=yes
24528b0c 1493 DEFAULT_wxUSE_FILESYSTEM=yes
10f2d63a
VZ
1494 DEFAULT_wxUSE_FS_INET=yes
1495 DEFAULT_wxUSE_FS_ZIP=yes
1496 DEFAULT_wxUSE_BUSYINFO=yes
1497 DEFAULT_wxUSE_ZIPSTREAM=yes
1498 DEFAULT_wxUSE_VALIDATORS=yes
1499
1500 DEFAULT_wxUSE_ACCEL=yes
1501 DEFAULT_wxUSE_CARET=yes
1502 DEFAULT_wxUSE_BMPBUTTON=yes
1503 DEFAULT_wxUSE_CHECKBOX=yes
1504 DEFAULT_wxUSE_CHECKLST=yes
1505 DEFAULT_wxUSE_CHOICE=yes
1506 DEFAULT_wxUSE_COMBOBOX=yes
1507 DEFAULT_wxUSE_GAUGE=yes
1508 DEFAULT_wxUSE_GRID=yes
cc977e5f 1509 DEFAULT_wxUSE_NEW_GRID=yes
10f2d63a
VZ
1510 DEFAULT_wxUSE_IMAGLIST=yes
1511 DEFAULT_wxUSE_LISTBOX=yes
1512 DEFAULT_wxUSE_LISTCTRL=yes
1513 DEFAULT_wxUSE_NOTEBOOK=yes
1514 DEFAULT_wxUSE_RADIOBOX=yes
1515 DEFAULT_wxUSE_RADIOBTN=yes
1516 DEFAULT_wxUSE_SASH=yes
1517 DEFAULT_wxUSE_SCROLLBAR=yes
1518 DEFAULT_wxUSE_SLIDER=yes
1519 DEFAULT_wxUSE_SPINBTN=yes
56cfaa52 1520 DEFAULT_wxUSE_SPINCTRL=yes
10f2d63a
VZ
1521 DEFAULT_wxUSE_SPLITTER=yes
1522 DEFAULT_wxUSE_STATBMP=yes
1523 DEFAULT_wxUSE_STATBOX=yes
1524 DEFAULT_wxUSE_STATLINE=yes
1525 DEFAULT_wxUSE_STATUSBAR=yes
1526 DEFAULT_wxUSE_TABDIALOG=no
1db8dc4a 1527 DEFAULT_wxUSE_TOGGLEBTN=yes
10f2d63a 1528 DEFAULT_wxUSE_TOOLBAR=yes
360d6699
VZ
1529 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
1530 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
10f2d63a
VZ
1531 DEFAULT_wxUSE_TREECTRL=yes
1532
1533 DEFAULT_wxUSE_UNICODE=no
1534 DEFAULT_wxUSE_WCSRTOMBS=no
1535
0046ff7c 1536 DEFAULT_wxUSE_IMAGE=yes
10f2d63a
VZ
1537 DEFAULT_wxUSE_GIF=yes
1538 DEFAULT_wxUSE_PCX=yes
1539 DEFAULT_wxUSE_PNM=yes
0046ff7c 1540 DEFAULT_wxUSE_XPM=yes
10f2d63a
VZ
1541fi
1542
1543
1544
1545for toolkit in `echo $ALL_TOOLKITS`; do
1546 LINE=`grep "wxUSE_$toolkit" ${wx_arg_cache_file}`
1547 if test "x$LINE" != x ; then
1548 has_toolkit_in_cache=1
1549 eval "DEFAULT_$LINE"
1550 eval "CACHE_$toolkit=1"
1551 fi
1552done
1553
1554
1555
1556 echo $ac_n "checking "for --enable-gui"""... $ac_c" 1>&6
0046ff7c 1557echo "configure:1558: checking "for --enable-gui"" >&5
10f2d63a
VZ
1558 no_cache=0
1559 # Check whether --enable-gui or --disable-gui was given.
1560if test "${enable_gui+set}" = set; then
1561 enableval="$enable_gui"
1562
1563 if test "$enableval" = yes; then
1564 ac_cv_use_gui='wxUSE_GUI=yes'
1565 else
1566 ac_cv_use_gui='wxUSE_GUI=no'
1567 fi
1568
1569else
1570
1571 LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
1572 if test "x$LINE" != x ; then
1573 eval "DEFAULT_$LINE"
1574 else
1575 no_cache=1
1576 fi
1577
1578 ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
1579
1580fi
1581
1582
1583 eval "$ac_cv_use_gui"
1584 if test "$no_cache" != 1; then
1585 echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
1586 fi
1587
1588 if test "$wxUSE_GUI" = yes; then
1589 echo "$ac_t""yes" 1>&6
1590 else
1591 echo "$ac_t""no" 1>&6
1592 fi
1593
1594
b12915c1 1595if test "$wxUSE_GUI" = "yes"; then
10f2d63a
VZ
1596
1597# Check whether --with-gtk or --without-gtk was given.
1598if test "${with_gtk+set}" = set; then
1599 withval="$with_gtk"
1600 wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
1601fi
1602
1603# Check whether --with-motif or --without-motif was given.
1604if test "${with_motif+set}" = set; then
1605 withval="$with_motif"
1606 wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
1607fi
1608
b4085ce6
GD
1609# Check whether --with-mac or --without-mac was given.
1610if test "${with_mac+set}" = set; then
1611 withval="$with_mac"
1612 wxUSE_MAC="$withval" TOOLKIT_GIVEN=1
1613fi
1614
10f2d63a
VZ
1615# Check whether --with-wine or --without-wine was given.
1616if test "${with_wine+set}" = set; then
1617 withval="$with_wine"
1618 wxUSE_WINE="$withval" CACHE_WINE=1 TOOLKIT_GIVEN=1
1619fi
1620
1621# Check whether --with-cygwin or --without-cygwin was given.
1622if test "${with_cygwin+set}" = set; then
1623 withval="$with_cygwin"
1624 wxUSE_CYGWIN="$withval" CACHE_CYGWIN=1 TOOLKIT_GIVEN=1
1625fi
1626
1627# Check whether --with-mingw or --without-mingw was given.
1628if test "${with_mingw+set}" = set; then
1629 withval="$with_mingw"
1630 wxUSE_MINGW="$withval" CACHE_MINGW=1 TOOLKIT_GIVEN=1
1631fi
1632
e07802fc
VZ
1633# Check whether --with-pm or --without-pm was given.
1634if test "${with_pm+set}" = set; then
1635 withval="$with_pm"
1636 wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
1637fi
1638
10f2d63a
VZ
1639
1640# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
1641if test "${with_gtk_prefix+set}" = set; then
1642 withval="$with_gtk_prefix"
1643 gtk_config_prefix="$withval"
1644else
1645 gtk_config_prefix=""
1646fi
1647
1648# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
1649if test "${with_gtk_exec_prefix+set}" = set; then
1650 withval="$with_gtk_exec_prefix"
1651 gtk_config_exec_prefix="$withval"
1652else
1653 gtk_config_exec_prefix=""
1654fi
1655
1656
1657
b12915c1 1658 echo $ac_n "checking "for --with-libpng"""... $ac_c" 1>&6
0046ff7c 1659echo "configure:1660: checking "for --with-libpng"" >&5
10f2d63a 1660 no_cache=0
b12915c1
VZ
1661 # Check whether --with-libpng or --without-libpng was given.
1662if test "${with_libpng+set}" = set; then
1663 withval="$with_libpng"
10f2d63a
VZ
1664
1665 if test "$withval" = yes; then
b12915c1 1666 ac_cv_use_libpng='wxUSE_LIBPNG=yes'
422107f9 1667 elif test "$withval" = no; then
b12915c1 1668 ac_cv_use_libpng='wxUSE_LIBPNG=no'
422107f9
VZ
1669 elif test "$withval" = sys; then
1670 ac_cv_use_libpng='wxUSE_LIBPNG=sys'
1671 else
1672 { echo "configure: error: Invalid value for --with-libpng: should be yes, no or sys" 1>&2; exit 1; }
10f2d63a
VZ
1673 fi
1674
1675else
1676
b12915c1 1677 LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
10f2d63a
VZ
1678 if test "x$LINE" != x ; then
1679 eval "DEFAULT_$LINE"
1680 else
1681 no_cache=1
1682 fi
1683
b12915c1 1684 ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
10f2d63a
VZ
1685
1686fi
1687
1688
b12915c1 1689 eval "$ac_cv_use_libpng"
10f2d63a 1690 if test "$no_cache" != 1; then
b12915c1 1691 echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
1692 fi
1693
b12915c1 1694 if test "$wxUSE_LIBPNG" = yes; then
10f2d63a 1695 echo "$ac_t""yes" 1>&6
422107f9 1696 elif test "$wxUSE_LIBPNG" = no; then
10f2d63a 1697 echo "$ac_t""no" 1>&6
422107f9
VZ
1698 elif test "$wxUSE_LIBPNG" = sys; then
1699 echo "$ac_t""system version" 1>&6
1700 else
1701 { echo "configure: error: Invalid value for --with-libpng: should be yes, no or sys" 1>&2; exit 1; }
10f2d63a
VZ
1702 fi
1703
1704
b12915c1 1705 echo $ac_n "checking "for --with-libjpeg"""... $ac_c" 1>&6
0046ff7c 1706echo "configure:1707: checking "for --with-libjpeg"" >&5
10f2d63a 1707 no_cache=0
b12915c1
VZ
1708 # Check whether --with-libjpeg or --without-libjpeg was given.
1709if test "${with_libjpeg+set}" = set; then
1710 withval="$with_libjpeg"
10f2d63a
VZ
1711
1712 if test "$withval" = yes; then
b12915c1 1713 ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
422107f9 1714 elif test "$withval" = no; then
b12915c1 1715 ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
422107f9
VZ
1716 elif test "$withval" = sys; then
1717 ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
1718 else
1719 { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no or sys" 1>&2; exit 1; }
10f2d63a
VZ
1720 fi
1721
1722else
1723
b12915c1 1724 LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
10f2d63a
VZ
1725 if test "x$LINE" != x ; then
1726 eval "DEFAULT_$LINE"
1727 else
1728 no_cache=1
1729 fi
1730
b12915c1 1731 ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
10f2d63a
VZ
1732
1733fi
1734
1735
b12915c1 1736 eval "$ac_cv_use_libjpeg"
10f2d63a 1737 if test "$no_cache" != 1; then
b12915c1 1738 echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
1739 fi
1740
b12915c1 1741 if test "$wxUSE_LIBJPEG" = yes; then
10f2d63a 1742 echo "$ac_t""yes" 1>&6
422107f9 1743 elif test "$wxUSE_LIBJPEG" = no; then
10f2d63a 1744 echo "$ac_t""no" 1>&6
422107f9
VZ
1745 elif test "$wxUSE_LIBJPEG" = sys; then
1746 echo "$ac_t""system version" 1>&6
1747 else
1748 { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no or sys" 1>&2; exit 1; }
10f2d63a
VZ
1749 fi
1750
1751
b12915c1 1752 echo $ac_n "checking "for --with-libtiff"""... $ac_c" 1>&6
0046ff7c 1753echo "configure:1754: checking "for --with-libtiff"" >&5
10f2d63a 1754 no_cache=0
b12915c1
VZ
1755 # Check whether --with-libtiff or --without-libtiff was given.
1756if test "${with_libtiff+set}" = set; then
1757 withval="$with_libtiff"
10f2d63a
VZ
1758
1759 if test "$withval" = yes; then
b12915c1 1760 ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
0dcf9893 1761 elif test "$withval" = no; then
b12915c1 1762 ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
0dcf9893
VZ
1763 elif test "$withval" = sys; then
1764 ac_cv_use_libtiff='wxUSE_LIBTIFF=sys'
1765 else
1766 { echo "configure: error: Invalid value for --with-libtiff: should be yes, no or sys" 1>&2; exit 1; }
10f2d63a
VZ
1767 fi
1768
1769else
1770
b12915c1 1771 LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
10f2d63a
VZ
1772 if test "x$LINE" != x ; then
1773 eval "DEFAULT_$LINE"
1774 else
1775 no_cache=1
1776 fi
1777
b12915c1 1778 ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
10f2d63a
VZ
1779
1780fi
1781
1782
b12915c1 1783 eval "$ac_cv_use_libtiff"
10f2d63a 1784 if test "$no_cache" != 1; then
b12915c1 1785 echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
1786 fi
1787
b12915c1 1788 if test "$wxUSE_LIBTIFF" = yes; then
10f2d63a 1789 echo "$ac_t""yes" 1>&6
0dcf9893 1790 elif test "$wxUSE_LIBTIFF" = no; then
10f2d63a 1791 echo "$ac_t""no" 1>&6
0dcf9893
VZ
1792 elif test "$wxUSE_LIBTIFF" = sys; then
1793 echo "$ac_t""system version" 1>&6
1794 else
1795 { echo "configure: error: Invalid value for --with-libtiff: should be yes, no or sys" 1>&2; exit 1; }
10f2d63a
VZ
1796 fi
1797
1798
3fed1840 1799 echo $ac_n "checking "for --with-freetype"""... $ac_c" 1>&6
0046ff7c 1800echo "configure:1801: checking "for --with-freetype"" >&5
3fed1840
RR
1801 no_cache=0
1802 # Check whether --with-freetype or --without-freetype was given.
1803if test "${with_freetype+set}" = set; then
1804 withval="$with_freetype"
1805
1806 if test "$withval" = yes; then
1807 ac_cv_use_freetype='wxUSE_FREETYPE=yes'
1808 elif test "$withval" = no; then
1809 ac_cv_use_freetype='wxUSE_FREETYPE=no'
1810 elif test "$withval" = sys; then
1811 ac_cv_use_freetype='wxUSE_FREETYPE=sys'
1812 else
1813 { echo "configure: error: Invalid value for --with-freetype: should be yes, no or sys" 1>&2; exit 1; }
1814 fi
1815
1816else
1817
1818 LINE=`grep "wxUSE_FREETYPE" ${wx_arg_cache_file}`
1819 if test "x$LINE" != x ; then
1820 eval "DEFAULT_$LINE"
1821 else
1822 no_cache=1
1823 fi
1824
1825 ac_cv_use_freetype='wxUSE_FREETYPE='$DEFAULT_wxUSE_FREETYPE
1826
1827fi
1828
1829
1830 eval "$ac_cv_use_freetype"
1831 if test "$no_cache" != 1; then
1832 echo $ac_cv_use_freetype >> ${wx_arg_cache_file}.tmp
1833 fi
1834
1835 if test "$wxUSE_FREETYPE" = yes; then
1836 echo "$ac_t""yes" 1>&6
1837 elif test "$wxUSE_FREETYPE" = no; then
1838 echo "$ac_t""no" 1>&6
1839 elif test "$wxUSE_FREETYPE" = sys; then
1840 echo "$ac_t""system version" 1>&6
1841 else
1842 { echo "configure: error: Invalid value for --with-freetype: should be yes, no or sys" 1>&2; exit 1; }
1843 fi
1844
1845
b12915c1 1846 echo $ac_n "checking "for --with-opengl"""... $ac_c" 1>&6
0046ff7c 1847echo "configure:1848: checking "for --with-opengl"" >&5
10f2d63a 1848 no_cache=0
b12915c1
VZ
1849 # Check whether --with-opengl or --without-opengl was given.
1850if test "${with_opengl+set}" = set; then
1851 withval="$with_opengl"
10f2d63a
VZ
1852
1853 if test "$withval" = yes; then
b12915c1 1854 ac_cv_use_opengl='wxUSE_OPENGL=yes'
10f2d63a 1855 else
b12915c1 1856 ac_cv_use_opengl='wxUSE_OPENGL=no'
10f2d63a
VZ
1857 fi
1858
1859else
1860
b12915c1 1861 LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
10f2d63a
VZ
1862 if test "x$LINE" != x ; then
1863 eval "DEFAULT_$LINE"
1864 else
1865 no_cache=1
1866 fi
1867
b12915c1 1868 ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
10f2d63a
VZ
1869
1870fi
1871
1872
b12915c1 1873 eval "$ac_cv_use_opengl"
10f2d63a 1874 if test "$no_cache" != 1; then
b12915c1 1875 echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
1876 fi
1877
b12915c1 1878 if test "$wxUSE_OPENGL" = yes; then
10f2d63a
VZ
1879 echo "$ac_t""yes" 1>&6
1880 else
1881 echo "$ac_t""no" 1>&6
1882 fi
1883
1884
b12915c1
VZ
1885fi
1886
1887
1888 echo $ac_n "checking "for --with-dmalloc"""... $ac_c" 1>&6
0046ff7c 1889echo "configure:1890: checking "for --with-dmalloc"" >&5
c7a2bf27 1890 no_cache=0
b12915c1
VZ
1891 # Check whether --with-dmalloc or --without-dmalloc was given.
1892if test "${with_dmalloc+set}" = set; then
1893 withval="$with_dmalloc"
c7a2bf27
RR
1894
1895 if test "$withval" = yes; then
b12915c1 1896 ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
c7a2bf27 1897 else
b12915c1 1898 ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
c7a2bf27
RR
1899 fi
1900
1901else
1902
b12915c1 1903 LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
c7a2bf27
RR
1904 if test "x$LINE" != x ; then
1905 eval "DEFAULT_$LINE"
1906 else
1907 no_cache=1
1908 fi
1909
b12915c1 1910 ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
c7a2bf27
RR
1911
1912fi
1913
1914
b12915c1 1915 eval "$ac_cv_use_dmalloc"
c7a2bf27 1916 if test "$no_cache" != 1; then
b12915c1 1917 echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
c7a2bf27
RR
1918 fi
1919
b12915c1 1920 if test "$wxUSE_DMALLOC" = yes; then
c7a2bf27
RR
1921 echo "$ac_t""yes" 1>&6
1922 else
1923 echo "$ac_t""no" 1>&6
1924 fi
1925
1926
b12915c1 1927 echo $ac_n "checking "for --with-zlib"""... $ac_c" 1>&6
0046ff7c 1928echo "configure:1929: checking "for --with-zlib"" >&5
10f2d63a 1929 no_cache=0
b12915c1
VZ
1930 # Check whether --with-zlib or --without-zlib was given.
1931if test "${with_zlib+set}" = set; then
1932 withval="$with_zlib"
10f2d63a
VZ
1933
1934 if test "$withval" = yes; then
b12915c1 1935 ac_cv_use_zlib='wxUSE_ZLIB=yes'
422107f9 1936 elif test "$withval" = no; then
b12915c1 1937 ac_cv_use_zlib='wxUSE_ZLIB=no'
422107f9
VZ
1938 elif test "$withval" = sys; then
1939 ac_cv_use_zlib='wxUSE_ZLIB=sys'
1940 else
1941 { echo "configure: error: Invalid value for --with-zlib: should be yes, no or sys" 1>&2; exit 1; }
10f2d63a
VZ
1942 fi
1943
1944else
1945
b12915c1 1946 LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
10f2d63a
VZ
1947 if test "x$LINE" != x ; then
1948 eval "DEFAULT_$LINE"
1949 else
1950 no_cache=1
1951 fi
1952
b12915c1 1953 ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
10f2d63a
VZ
1954
1955fi
1956
1957
b12915c1 1958 eval "$ac_cv_use_zlib"
10f2d63a 1959 if test "$no_cache" != 1; then
b12915c1 1960 echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
1961 fi
1962
b12915c1 1963 if test "$wxUSE_ZLIB" = yes; then
10f2d63a 1964 echo "$ac_t""yes" 1>&6
422107f9 1965 elif test "$wxUSE_ZLIB" = no; then
bdad4e7e 1966 echo "$ac_t""no" 1>&6
422107f9
VZ
1967 elif test "$wxUSE_ZLIB" = sys; then
1968 echo "$ac_t""system version" 1>&6
1969 else
1970 { echo "configure: error: Invalid value for --with-zlib: should be yes, no or sys" 1>&2; exit 1; }
10f2d63a
VZ
1971 fi
1972
1973
1974 echo $ac_n "checking "for --with-odbc"""... $ac_c" 1>&6
0046ff7c 1975echo "configure:1976: checking "for --with-odbc"" >&5
10f2d63a
VZ
1976 no_cache=0
1977 # Check whether --with-odbc or --without-odbc was given.
1978if test "${with_odbc+set}" = set; then
1979 withval="$with_odbc"
1980
1981 if test "$withval" = yes; then
1982 ac_cv_use_odbc='wxUSE_ODBC=yes'
1983 else
1984 ac_cv_use_odbc='wxUSE_ODBC=no'
1985 fi
1986
1987else
1988
1989 LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
1990 if test "x$LINE" != x ; then
1991 eval "DEFAULT_$LINE"
1992 else
1993 no_cache=1
1994 fi
1995
1996 ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
1997
1998fi
1999
2000
2001 eval "$ac_cv_use_odbc"
2002 if test "$no_cache" != 1; then
2003 echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
2004 fi
2005
2006 if test "$wxUSE_ODBC" = yes; then
2007 echo "$ac_t""yes" 1>&6
2008 else
2009 echo "$ac_t""no" 1>&6
2010 fi
2011
2012
2013
2014
2015
2016 echo $ac_n "checking "for --enable-shared"""... $ac_c" 1>&6
0046ff7c 2017echo "configure:2018: checking "for --enable-shared"" >&5
10f2d63a
VZ
2018 no_cache=0
2019 # Check whether --enable-shared or --disable-shared was given.
2020if test "${enable_shared+set}" = set; then
2021 enableval="$enable_shared"
2022
2023 if test "$enableval" = yes; then
2024 ac_cv_use_shared='wxUSE_SHARED=yes'
2025 else
2026 ac_cv_use_shared='wxUSE_SHARED=no'
2027 fi
2028
2029else
2030
2031 LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
2032 if test "x$LINE" != x ; then
2033 eval "DEFAULT_$LINE"
2034 else
2035 no_cache=1
2036 fi
2037
2038 ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
2039
2040fi
2041
2042
2043 eval "$ac_cv_use_shared"
2044 if test "$no_cache" != 1; then
2045 echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
2046 fi
2047
2048 if test "$wxUSE_SHARED" = yes; then
2049 echo "$ac_t""yes" 1>&6
2050 else
2051 echo "$ac_t""no" 1>&6
2052 fi
2053
2054
00cf1208 2055 echo $ac_n "checking "for --enable-burnt_name"""... $ac_c" 1>&6
0046ff7c 2056echo "configure:2057: checking "for --enable-burnt_name"" >&5
00cf1208
RR
2057 no_cache=0
2058 # Check whether --enable-burnt_name or --disable-burnt_name was given.
2059if test "${enable_burnt_name+set}" = set; then
2060 enableval="$enable_burnt_name"
2061
2062 if test "$enableval" = yes; then
2063 ac_cv_use_burnt_name='wxUSE_BURNT_NAME=yes'
2064 else
2065 ac_cv_use_burnt_name='wxUSE_BURNT_NAME=no'
2066 fi
2067
2068else
2069
2070 LINE=`grep "wxUSE_BURNT_NAME" ${wx_arg_cache_file}`
2071 if test "x$LINE" != x ; then
2072 eval "DEFAULT_$LINE"
2073 else
2074 no_cache=1
2075 fi
2076
2077 ac_cv_use_burnt_name='wxUSE_BURNT_NAME='$DEFAULT_wxUSE_BURNT_NAME
2078
2079fi
2080
2081
2082 eval "$ac_cv_use_burnt_name"
2083 if test "$no_cache" != 1; then
2084 echo $ac_cv_use_burnt_name >> ${wx_arg_cache_file}.tmp
2085 fi
2086
2087 if test "$wxUSE_BURNT_NAME" = yes; then
2088 echo "$ac_t""yes" 1>&6
2089 else
2090 echo "$ac_t""no" 1>&6
2091 fi
2092
2093
10f2d63a 2094 echo $ac_n "checking "for --enable-optimise"""... $ac_c" 1>&6
0046ff7c 2095echo "configure:2096: checking "for --enable-optimise"" >&5
10f2d63a
VZ
2096 no_cache=0
2097 # Check whether --enable-optimise or --disable-optimise was given.
2098if test "${enable_optimise+set}" = set; then
2099 enableval="$enable_optimise"
2100
2101 if test "$enableval" = yes; then
2102 ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
2103 else
2104 ac_cv_use_optimise='wxUSE_OPTIMISE=no'
2105 fi
2106
2107else
2108
2109 LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
2110 if test "x$LINE" != x ; then
2111 eval "DEFAULT_$LINE"
2112 else
2113 no_cache=1
2114 fi
2115
2116 ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
2117
2118fi
2119
2120
2121 eval "$ac_cv_use_optimise"
2122 if test "$no_cache" != 1; then
2123 echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
2124 fi
2125
2126 if test "$wxUSE_OPTIMISE" = yes; then
2127 echo "$ac_t""yes" 1>&6
2128 else
2129 echo "$ac_t""no" 1>&6
2130 fi
2131
2132
2133 echo $ac_n "checking "for --enable-debug"""... $ac_c" 1>&6
0046ff7c 2134echo "configure:2135: checking "for --enable-debug"" >&5
10f2d63a
VZ
2135 no_cache=0
2136 # Check whether --enable-debug or --disable-debug was given.
2137if test "${enable_debug+set}" = set; then
2138 enableval="$enable_debug"
2139
2140 if test "$enableval" = yes; then
2141 ac_cv_use_debug='wxUSE_DEBUG=yes'
2142 else
2143 ac_cv_use_debug='wxUSE_DEBUG=no'
2144 fi
2145
2146else
2147
2148 LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
2149 if test "x$LINE" != x ; then
2150 eval "DEFAULT_$LINE"
2151 else
2152 no_cache=1
2153 fi
2154
2155 ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
2156
2157fi
2158
2159
2160 eval "$ac_cv_use_debug"
2161 if test "$no_cache" != 1; then
2162 echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
2163 fi
2164
2165 if test "$wxUSE_DEBUG" = yes; then
2166 echo "$ac_t""yes" 1>&6
2167 else
2168 echo "$ac_t""no" 1>&6
2169 fi
2170
2171
2172if test "$wxUSE_DEBUG" = "yes"; then
2173 DEFAULT_wxUSE_DEBUG_FLAG=yes
2174 DEFAULT_wxUSE_DEBUG_INFO=yes
2175elif test "$wxUSE_DEBUG" = "no"; then
2176 DEFAULT_wxUSE_DEBUG_FLAG=no
2177 DEFAULT_wxUSE_DEBUG_INFO=no
2178fi
2179
2180
2181 echo $ac_n "checking "for --enable-debug_flag"""... $ac_c" 1>&6
0046ff7c 2182echo "configure:2183: checking "for --enable-debug_flag"" >&5
10f2d63a
VZ
2183 no_cache=0
2184 # Check whether --enable-debug_flag or --disable-debug_flag was given.
2185if test "${enable_debug_flag+set}" = set; then
2186 enableval="$enable_debug_flag"
2187
2188 if test "$enableval" = yes; then
2189 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
2190 else
2191 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
2192 fi
2193
2194else
2195
2196 LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
2197 if test "x$LINE" != x ; then
2198 eval "DEFAULT_$LINE"
2199 else
2200 no_cache=1
2201 fi
2202
2203 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
2204
2205fi
2206
2207
2208 eval "$ac_cv_use_debug_flag"
2209 if test "$no_cache" != 1; then
2210 echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
2211 fi
2212
2213 if test "$wxUSE_DEBUG_FLAG" = yes; then
2214 echo "$ac_t""yes" 1>&6
2215 else
2216 echo "$ac_t""no" 1>&6
2217 fi
2218
2219
2220 echo $ac_n "checking "for --enable-debug_info"""... $ac_c" 1>&6
0046ff7c 2221echo "configure:2222: checking "for --enable-debug_info"" >&5
10f2d63a
VZ
2222 no_cache=0
2223 # Check whether --enable-debug_info or --disable-debug_info was given.
2224if test "${enable_debug_info+set}" = set; then
2225 enableval="$enable_debug_info"
2226
2227 if test "$enableval" = yes; then
2228 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
2229 else
2230 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
2231 fi
2232
2233else
2234
2235 LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
2236 if test "x$LINE" != x ; then
2237 eval "DEFAULT_$LINE"
2238 else
2239 no_cache=1
2240 fi
2241
2242 ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
2243
2244fi
2245
2246
2247 eval "$ac_cv_use_debug_info"
2248 if test "$no_cache" != 1; then
2249 echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
2250 fi
2251
2252 if test "$wxUSE_DEBUG_INFO" = yes; then
2253 echo "$ac_t""yes" 1>&6
2254 else
2255 echo "$ac_t""no" 1>&6
2256 fi
2257
2258
2259 echo $ac_n "checking "for --enable-debug_gdb"""... $ac_c" 1>&6
0046ff7c 2260echo "configure:2261: checking "for --enable-debug_gdb"" >&5
10f2d63a
VZ
2261 no_cache=0
2262 # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
2263if test "${enable_debug_gdb+set}" = set; then
2264 enableval="$enable_debug_gdb"
2265
2266 if test "$enableval" = yes; then
2267 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
2268 else
2269 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
2270 fi
2271
2272else
2273
2274 LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
2275 if test "x$LINE" != x ; then
2276 eval "DEFAULT_$LINE"
2277 else
2278 no_cache=1
2279 fi
2280
2281 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
2282
2283fi
2284
2285
2286 eval "$ac_cv_use_debug_gdb"
2287 if test "$no_cache" != 1; then
2288 echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
2289 fi
2290
2291 if test "$wxUSE_DEBUG_GDB" = yes; then
2292 echo "$ac_t""yes" 1>&6
2293 else
2294 echo "$ac_t""no" 1>&6
2295 fi
2296
2297
2298 echo $ac_n "checking "for --enable-debug_cntxt"""... $ac_c" 1>&6
0046ff7c 2299echo "configure:2300: checking "for --enable-debug_cntxt"" >&5
10f2d63a
VZ
2300 no_cache=0
2301 # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
2302if test "${enable_debug_cntxt+set}" = set; then
2303 enableval="$enable_debug_cntxt"
2304
2305 if test "$enableval" = yes; then
2306 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
2307 else
2308 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
2309 fi
2310
2311else
2312
2313 LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
2314 if test "x$LINE" != x ; then
2315 eval "DEFAULT_$LINE"
2316 else
2317 no_cache=1
2318 fi
2319
2320 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
2321
2322fi
2323
2324
2325 eval "$ac_cv_use_debug_cntxt"
2326 if test "$no_cache" != 1; then
2327 echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
2328 fi
2329
2330 if test "$wxUSE_DEBUG_CONTEXT" = yes; then
2331 echo "$ac_t""yes" 1>&6
2332 else
2333 echo "$ac_t""no" 1>&6
2334 fi
2335
2336
2337 echo $ac_n "checking "for --enable-mem_tracing"""... $ac_c" 1>&6
0046ff7c 2338echo "configure:2339: checking "for --enable-mem_tracing"" >&5
10f2d63a
VZ
2339 no_cache=0
2340 # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
2341if test "${enable_mem_tracing+set}" = set; then
2342 enableval="$enable_mem_tracing"
2343
2344 if test "$enableval" = yes; then
2345 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
2346 else
2347 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
2348 fi
2349
2350else
2351
2352 LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
2353 if test "x$LINE" != x ; then
2354 eval "DEFAULT_$LINE"
2355 else
2356 no_cache=1
2357 fi
2358
2359 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
2360
2361fi
2362
2363
2364 eval "$ac_cv_use_mem_tracing"
2365 if test "$no_cache" != 1; then
2366 echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
2367 fi
2368
2369 if test "$wxUSE_MEM_TRACING" = yes; then
2370 echo "$ac_t""yes" 1>&6
2371 else
2372 echo "$ac_t""no" 1>&6
2373 fi
2374
2375
2376 echo $ac_n "checking "for --enable-profile"""... $ac_c" 1>&6
0046ff7c 2377echo "configure:2378: checking "for --enable-profile"" >&5
10f2d63a
VZ
2378 no_cache=0
2379 # Check whether --enable-profile or --disable-profile was given.
2380if test "${enable_profile+set}" = set; then
2381 enableval="$enable_profile"
2382
2383 if test "$enableval" = yes; then
2384 ac_cv_use_profile='wxUSE_PROFILE=yes'
2385 else
2386 ac_cv_use_profile='wxUSE_PROFILE=no'
2387 fi
2388
2389else
2390
2391 LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
2392 if test "x$LINE" != x ; then
2393 eval "DEFAULT_$LINE"
2394 else
2395 no_cache=1
2396 fi
2397
2398 ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
2399
2400fi
2401
2402
2403 eval "$ac_cv_use_profile"
2404 if test "$no_cache" != 1; then
2405 echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
2406 fi
2407
2408 if test "$wxUSE_PROFILE" = yes; then
2409 echo "$ac_t""yes" 1>&6
2410 else
2411 echo "$ac_t""no" 1>&6
2412 fi
2413
2414
2415 echo $ac_n "checking "for --enable-no_rtti"""... $ac_c" 1>&6
0046ff7c 2416echo "configure:2417: checking "for --enable-no_rtti"" >&5
10f2d63a
VZ
2417 no_cache=0
2418 # Check whether --enable-no_rtti or --disable-no_rtti was given.
2419if test "${enable_no_rtti+set}" = set; then
2420 enableval="$enable_no_rtti"
2421
2422 if test "$enableval" = yes; then
2423 ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
2424 else
2425 ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
2426 fi
2427
2428else
2429
2430 LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
2431 if test "x$LINE" != x ; then
2432 eval "DEFAULT_$LINE"
2433 else
2434 no_cache=1
2435 fi
2436
2437 ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
2438
2439fi
2440
2441
2442 eval "$ac_cv_use_no_rtti"
2443 if test "$no_cache" != 1; then
2444 echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
2445 fi
2446
2447 if test "$wxUSE_NO_RTTI" = yes; then
2448 echo "$ac_t""yes" 1>&6
2449 else
2450 echo "$ac_t""no" 1>&6
2451 fi
2452
2453
2454 echo $ac_n "checking "for --enable-no_exceptions"""... $ac_c" 1>&6
0046ff7c 2455echo "configure:2456: checking "for --enable-no_exceptions"" >&5
10f2d63a
VZ
2456 no_cache=0
2457 # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
2458if test "${enable_no_exceptions+set}" = set; then
2459 enableval="$enable_no_exceptions"
2460
2461 if test "$enableval" = yes; then
2462 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
2463 else
2464 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
2465 fi
2466
2467else
2468
2469 LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
2470 if test "x$LINE" != x ; then
2471 eval "DEFAULT_$LINE"
2472 else
2473 no_cache=1
2474 fi
2475
2476 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
2477
2478fi
2479
2480
2481 eval "$ac_cv_use_no_exceptions"
2482 if test "$no_cache" != 1; then
2483 echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
2484 fi
2485
2486 if test "$wxUSE_NO_EXCEPTIONS" = yes; then
2487 echo "$ac_t""yes" 1>&6
2488 else
2489 echo "$ac_t""no" 1>&6
2490 fi
2491
2492
2493 echo $ac_n "checking "for --enable-permissive"""... $ac_c" 1>&6
0046ff7c 2494echo "configure:2495: checking "for --enable-permissive"" >&5
10f2d63a
VZ
2495 no_cache=0
2496 # Check whether --enable-permissive or --disable-permissive was given.
2497if test "${enable_permissive+set}" = set; then
2498 enableval="$enable_permissive"
2499
2500 if test "$enableval" = yes; then
2501 ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
2502 else
2503 ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
2504 fi
2505
2506else
2507
2508 LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
2509 if test "x$LINE" != x ; then
2510 eval "DEFAULT_$LINE"
2511 else
2512 no_cache=1
2513 fi
2514
2515 ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
2516
2517fi
2518
2519
2520 eval "$ac_cv_use_permissive"
2521 if test "$no_cache" != 1; then
2522 echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
2523 fi
2524
2525 if test "$wxUSE_PERMISSIVE" = yes; then
2526 echo "$ac_t""yes" 1>&6
2527 else
2528 echo "$ac_t""no" 1>&6
2529 fi
2530
2531
2532 echo $ac_n "checking "for --enable-no_deps"""... $ac_c" 1>&6
0046ff7c 2533echo "configure:2534: checking "for --enable-no_deps"" >&5
10f2d63a
VZ
2534 no_cache=0
2535 # Check whether --enable-no_deps or --disable-no_deps was given.
2536if test "${enable_no_deps+set}" = set; then
2537 enableval="$enable_no_deps"
2538
2539 if test "$enableval" = yes; then
2540 ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
2541 else
2542 ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
2543 fi
2544
2545else
2546
2547 LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
2548 if test "x$LINE" != x ; then
2549 eval "DEFAULT_$LINE"
2550 else
2551 no_cache=1
2552 fi
2553
2554 ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
2555
2556fi
2557
2558
2559 eval "$ac_cv_use_no_deps"
2560 if test "$no_cache" != 1; then
2561 echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
2562 fi
2563
2564 if test "$wxUSE_NO_DEPS" = yes; then
2565 echo "$ac_t""yes" 1>&6
2566 else
2567 echo "$ac_t""no" 1>&6
2568 fi
2569
2570
2571
2572
2573 echo $ac_n "checking "for --enable-intl"""... $ac_c" 1>&6
0046ff7c 2574echo "configure:2575: checking "for --enable-intl"" >&5
10f2d63a
VZ
2575 no_cache=0
2576 # Check whether --enable-intl or --disable-intl was given.
2577if test "${enable_intl+set}" = set; then
2578 enableval="$enable_intl"
2579
2580 if test "$enableval" = yes; then
2581 ac_cv_use_intl='wxUSE_INTL=yes'
2582 else
2583 ac_cv_use_intl='wxUSE_INTL=no'
2584 fi
2585
2586else
2587
2588 LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
2589 if test "x$LINE" != x ; then
2590 eval "DEFAULT_$LINE"
2591 else
2592 no_cache=1
2593 fi
2594
2595 ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
2596
2597fi
2598
2599
2600 eval "$ac_cv_use_intl"
2601 if test "$no_cache" != 1; then
2602 echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
2603 fi
2604
2605 if test "$wxUSE_INTL" = yes; then
2606 echo "$ac_t""yes" 1>&6
2607 else
2608 echo "$ac_t""no" 1>&6
2609 fi
2610
2611
2612 echo $ac_n "checking "for --enable-config"""... $ac_c" 1>&6
0046ff7c 2613echo "configure:2614: checking "for --enable-config"" >&5
10f2d63a
VZ
2614 no_cache=0
2615 # Check whether --enable-config or --disable-config was given.
2616if test "${enable_config+set}" = set; then
2617 enableval="$enable_config"
2618
2619 if test "$enableval" = yes; then
2620 ac_cv_use_config='wxUSE_CONFIG=yes'
2621 else
2622 ac_cv_use_config='wxUSE_CONFIG=no'
2623 fi
2624
2625else
2626
2627 LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
2628 if test "x$LINE" != x ; then
2629 eval "DEFAULT_$LINE"
2630 else
2631 no_cache=1
2632 fi
2633
2634 ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
2635
2636fi
2637
2638
2639 eval "$ac_cv_use_config"
2640 if test "$no_cache" != 1; then
2641 echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
2642 fi
2643
2644 if test "$wxUSE_CONFIG" = yes; then
2645 echo "$ac_t""yes" 1>&6
2646 else
2647 echo "$ac_t""no" 1>&6
2648 fi
2649
2650
b12915c1 2651
10f2d63a 2652 echo $ac_n "checking "for --enable-sockets"""... $ac_c" 1>&6
0046ff7c 2653echo "configure:2654: checking "for --enable-sockets"" >&5
10f2d63a
VZ
2654 no_cache=0
2655 # Check whether --enable-sockets or --disable-sockets was given.
2656if test "${enable_sockets+set}" = set; then
2657 enableval="$enable_sockets"
2658
2659 if test "$enableval" = yes; then
2660 ac_cv_use_sockets='wxUSE_SOCKETS=yes'
2661 else
2662 ac_cv_use_sockets='wxUSE_SOCKETS=no'
2663 fi
2664
2665else
2666
2667 LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
2668 if test "x$LINE" != x ; then
2669 eval "DEFAULT_$LINE"
2670 else
2671 no_cache=1
2672 fi
2673
2674 ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
2675
2676fi
2677
2678
2679 eval "$ac_cv_use_sockets"
2680 if test "$no_cache" != 1; then
2681 echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
2682 fi
2683
2684 if test "$wxUSE_SOCKETS" = yes; then
2685 echo "$ac_t""yes" 1>&6
2686 else
2687 echo "$ac_t""no" 1>&6
2688 fi
2689
b12915c1 2690
10f2d63a 2691
eb4efbdc 2692 echo $ac_n "checking "for --enable-ipc"""... $ac_c" 1>&6
0046ff7c 2693echo "configure:2694: checking "for --enable-ipc"" >&5
10f2d63a 2694 no_cache=0
eb4efbdc
VZ
2695 # Check whether --enable-ipc or --disable-ipc was given.
2696if test "${enable_ipc+set}" = set; then
2697 enableval="$enable_ipc"
10f2d63a
VZ
2698
2699 if test "$enableval" = yes; then
eb4efbdc 2700 ac_cv_use_ipc='wxUSE_IPC=yes'
10f2d63a 2701 else
eb4efbdc 2702 ac_cv_use_ipc='wxUSE_IPC=no'
10f2d63a
VZ
2703 fi
2704
2705else
2706
eb4efbdc 2707 LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
10f2d63a
VZ
2708 if test "x$LINE" != x ; then
2709 eval "DEFAULT_$LINE"
2710 else
2711 no_cache=1
2712 fi
2713
eb4efbdc 2714 ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
10f2d63a
VZ
2715
2716fi
2717
2718
eb4efbdc 2719 eval "$ac_cv_use_ipc"
10f2d63a 2720 if test "$no_cache" != 1; then
eb4efbdc 2721 echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2722 fi
2723
eb4efbdc 2724 if test "$wxUSE_IPC" = yes; then
10f2d63a
VZ
2725 echo "$ac_t""yes" 1>&6
2726 else
2727 echo "$ac_t""no" 1>&6
2728 fi
2729
2730
eb4efbdc
VZ
2731
2732 echo $ac_n "checking "for --enable-dialupman"""... $ac_c" 1>&6
0046ff7c 2733echo "configure:2734: checking "for --enable-dialupman"" >&5
10f2d63a 2734 no_cache=0
eb4efbdc
VZ
2735 # Check whether --enable-dialupman or --disable-dialupman was given.
2736if test "${enable_dialupman+set}" = set; then
2737 enableval="$enable_dialupman"
10f2d63a
VZ
2738
2739 if test "$enableval" = yes; then
eb4efbdc 2740 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
10f2d63a 2741 else
eb4efbdc 2742 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
10f2d63a
VZ
2743 fi
2744
2745else
2746
eb4efbdc 2747 LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
10f2d63a
VZ
2748 if test "x$LINE" != x ; then
2749 eval "DEFAULT_$LINE"
2750 else
2751 no_cache=1
2752 fi
2753
eb4efbdc 2754 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
10f2d63a
VZ
2755
2756fi
2757
2758
eb4efbdc 2759 eval "$ac_cv_use_dialupman"
10f2d63a 2760 if test "$no_cache" != 1; then
eb4efbdc 2761 echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2762 fi
2763
eb4efbdc 2764 if test "$wxUSE_DIALUP_MANAGER" = yes; then
10f2d63a
VZ
2765 echo "$ac_t""yes" 1>&6
2766 else
2767 echo "$ac_t""no" 1>&6
2768 fi
2769
2770
2771 echo $ac_n "checking "for --enable-apple_ieee"""... $ac_c" 1>&6
0046ff7c 2772echo "configure:2773: checking "for --enable-apple_ieee"" >&5
10f2d63a
VZ
2773 no_cache=0
2774 # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
2775if test "${enable_apple_ieee+set}" = set; then
2776 enableval="$enable_apple_ieee"
2777
2778 if test "$enableval" = yes; then
2779 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
2780 else
2781 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
2782 fi
2783
2784else
2785
2786 LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
2787 if test "x$LINE" != x ; then
2788 eval "DEFAULT_$LINE"
2789 else
2790 no_cache=1
2791 fi
2792
2793 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
2794
2795fi
2796
2797
2798 eval "$ac_cv_use_apple_ieee"
2799 if test "$no_cache" != 1; then
2800 echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
2801 fi
2802
2803 if test "$wxUSE_APPLE_IEEE" = yes; then
2804 echo "$ac_t""yes" 1>&6
2805 else
2806 echo "$ac_t""no" 1>&6
2807 fi
2808
2809
2810 echo $ac_n "checking "for --enable-timedate"""... $ac_c" 1>&6
0046ff7c 2811echo "configure:2812: checking "for --enable-timedate"" >&5
10f2d63a
VZ
2812 no_cache=0
2813 # Check whether --enable-timedate or --disable-timedate was given.
2814if test "${enable_timedate+set}" = set; then
2815 enableval="$enable_timedate"
2816
2817 if test "$enableval" = yes; then
2818 ac_cv_use_timedate='wxUSE_TIMEDATE=yes'
2819 else
2820 ac_cv_use_timedate='wxUSE_TIMEDATE=no'
2821 fi
2822
2823else
2824
2825 LINE=`grep "wxUSE_TIMEDATE" ${wx_arg_cache_file}`
2826 if test "x$LINE" != x ; then
2827 eval "DEFAULT_$LINE"
2828 else
2829 no_cache=1
2830 fi
2831
2832 ac_cv_use_timedate='wxUSE_TIMEDATE='$DEFAULT_wxUSE_TIMEDATE
2833
2834fi
2835
2836
2837 eval "$ac_cv_use_timedate"
2838 if test "$no_cache" != 1; then
2839 echo $ac_cv_use_timedate >> ${wx_arg_cache_file}.tmp
2840 fi
2841
2842 if test "$wxUSE_TIMEDATE" = yes; then
2843 echo "$ac_t""yes" 1>&6
2844 else
2845 echo "$ac_t""no" 1>&6
2846 fi
2847
2848
2849 echo $ac_n "checking "for --enable-wave"""... $ac_c" 1>&6
0046ff7c 2850echo "configure:2851: checking "for --enable-wave"" >&5
10f2d63a
VZ
2851 no_cache=0
2852 # Check whether --enable-wave or --disable-wave was given.
2853if test "${enable_wave+set}" = set; then
2854 enableval="$enable_wave"
2855
2856 if test "$enableval" = yes; then
2857 ac_cv_use_wave='wxUSE_WAVE=yes'
2858 else
2859 ac_cv_use_wave='wxUSE_WAVE=no'
2860 fi
2861
2862else
2863
2864 LINE=`grep "wxUSE_WAVE" ${wx_arg_cache_file}`
2865 if test "x$LINE" != x ; then
2866 eval "DEFAULT_$LINE"
2867 else
2868 no_cache=1
2869 fi
2870
2871 ac_cv_use_wave='wxUSE_WAVE='$DEFAULT_wxUSE_WAVE
2872
2873fi
2874
2875
2876 eval "$ac_cv_use_wave"
2877 if test "$no_cache" != 1; then
2878 echo $ac_cv_use_wave >> ${wx_arg_cache_file}.tmp
2879 fi
2880
2881 if test "$wxUSE_WAVE" = yes; then
2882 echo "$ac_t""yes" 1>&6
2883 else
2884 echo "$ac_t""no" 1>&6
2885 fi
2886
2887
2888 echo $ac_n "checking "for --enable-fraction"""... $ac_c" 1>&6
0046ff7c 2889echo "configure:2890: checking "for --enable-fraction"" >&5
10f2d63a
VZ
2890 no_cache=0
2891 # Check whether --enable-fraction or --disable-fraction was given.
2892if test "${enable_fraction+set}" = set; then
2893 enableval="$enable_fraction"
2894
2895 if test "$enableval" = yes; then
2896 ac_cv_use_fraction='wxUSE_FRACTION=yes'
2897 else
2898 ac_cv_use_fraction='wxUSE_FRACTION=no'
2899 fi
2900
2901else
2902
2903 LINE=`grep "wxUSE_FRACTION" ${wx_arg_cache_file}`
2904 if test "x$LINE" != x ; then
2905 eval "DEFAULT_$LINE"
2906 else
2907 no_cache=1
2908 fi
2909
2910 ac_cv_use_fraction='wxUSE_FRACTION='$DEFAULT_wxUSE_FRACTION
2911
2912fi
2913
2914
2915 eval "$ac_cv_use_fraction"
2916 if test "$no_cache" != 1; then
2917 echo $ac_cv_use_fraction >> ${wx_arg_cache_file}.tmp
2918 fi
2919
2920 if test "$wxUSE_FRACTION" = yes; then
2921 echo "$ac_t""yes" 1>&6
2922 else
2923 echo "$ac_t""no" 1>&6
2924 fi
2925
2926
2927 echo $ac_n "checking "for --enable-dynlib"""... $ac_c" 1>&6
0046ff7c 2928echo "configure:2929: checking "for --enable-dynlib"" >&5
10f2d63a
VZ
2929 no_cache=0
2930 # Check whether --enable-dynlib or --disable-dynlib was given.
2931if test "${enable_dynlib+set}" = set; then
2932 enableval="$enable_dynlib"
2933
2934 if test "$enableval" = yes; then
2935 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
2936 else
2937 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
2938 fi
2939
2940else
2941
2942 LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
2943 if test "x$LINE" != x ; then
2944 eval "DEFAULT_$LINE"
2945 else
2946 no_cache=1
2947 fi
2948
2949 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
2950
2951fi
2952
2953
2954 eval "$ac_cv_use_dynlib"
2955 if test "$no_cache" != 1; then
2956 echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
2957 fi
2958
2959 if test "$wxUSE_DYNLIB_CLASS" = yes; then
2960 echo "$ac_t""yes" 1>&6
2961 else
2962 echo "$ac_t""no" 1>&6
2963 fi
2964
2965
2966 echo $ac_n "checking "for --enable-longlong"""... $ac_c" 1>&6
0046ff7c 2967echo "configure:2968: checking "for --enable-longlong"" >&5
10f2d63a
VZ
2968 no_cache=0
2969 # Check whether --enable-longlong or --disable-longlong was given.
2970if test "${enable_longlong+set}" = set; then
2971 enableval="$enable_longlong"
2972
2973 if test "$enableval" = yes; then
2974 ac_cv_use_longlong='wxUSE_LONGLONG=yes'
2975 else
2976 ac_cv_use_longlong='wxUSE_LONGLONG=no'
2977 fi
2978
2979else
2980
2981 LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
2982 if test "x$LINE" != x ; then
2983 eval "DEFAULT_$LINE"
2984 else
2985 no_cache=1
2986 fi
2987
2988 ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
2989
2990fi
2991
2992
2993 eval "$ac_cv_use_longlong"
2994 if test "$no_cache" != 1; then
2995 echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
2996 fi
2997
2998 if test "$wxUSE_LONGLONG" = yes; then
2999 echo "$ac_t""yes" 1>&6
3000 else
3001 echo "$ac_t""no" 1>&6
3002 fi
3003
3004
e8f65ba6 3005 echo $ac_n "checking "for --enable-geometry"""... $ac_c" 1>&6
0046ff7c 3006echo "configure:3007: checking "for --enable-geometry"" >&5
e8f65ba6
RR
3007 no_cache=0
3008 # Check whether --enable-geometry or --disable-geometry was given.
3009if test "${enable_geometry+set}" = set; then
3010 enableval="$enable_geometry"
3011
3012 if test "$enableval" = yes; then
3013 ac_cv_use_geometry='wxUSE_GEOMETRY=yes'
3014 else
3015 ac_cv_use_geometry='wxUSE_GEOMETRY=no'
3016 fi
3017
3018else
3019
3020 LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}`
3021 if test "x$LINE" != x ; then
3022 eval "DEFAULT_$LINE"
3023 else
3024 no_cache=1
3025 fi
3026
3027 ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY
3028
3029fi
3030
3031
3032 eval "$ac_cv_use_geometry"
3033 if test "$no_cache" != 1; then
3034 echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp
3035 fi
3036
3037 if test "$wxUSE_GEOMETRY" = yes; then
3038 echo "$ac_t""yes" 1>&6
3039 else
3040 echo "$ac_t""no" 1>&6
3041 fi
3042
3043
10f2d63a 3044 echo $ac_n "checking "for --enable-log"""... $ac_c" 1>&6
0046ff7c 3045echo "configure:3046: checking "for --enable-log"" >&5
10f2d63a
VZ
3046 no_cache=0
3047 # Check whether --enable-log or --disable-log was given.
3048if test "${enable_log+set}" = set; then
3049 enableval="$enable_log"
3050
3051 if test "$enableval" = yes; then
3052 ac_cv_use_log='wxUSE_LOG=yes'
3053 else
3054 ac_cv_use_log='wxUSE_LOG=no'
3055 fi
3056
3057else
3058
3059 LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
3060 if test "x$LINE" != x ; then
3061 eval "DEFAULT_$LINE"
3062 else
3063 no_cache=1
3064 fi
3065
3066 ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
3067
3068fi
3069
3070
3071 eval "$ac_cv_use_log"
3072 if test "$no_cache" != 1; then
3073 echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
3074 fi
3075
3076 if test "$wxUSE_LOG" = yes; then
3077 echo "$ac_t""yes" 1>&6
3078 else
3079 echo "$ac_t""no" 1>&6
3080 fi
3081
3082
3083 echo $ac_n "checking "for --enable-streams"""... $ac_c" 1>&6
0046ff7c 3084echo "configure:3085: checking "for --enable-streams"" >&5
10f2d63a
VZ
3085 no_cache=0
3086 # Check whether --enable-streams or --disable-streams was given.
3087if test "${enable_streams+set}" = set; then
3088 enableval="$enable_streams"
3089
3090 if test "$enableval" = yes; then
3091 ac_cv_use_streams='wxUSE_STREAMS=yes'
3092 else
3093 ac_cv_use_streams='wxUSE_STREAMS=no'
3094 fi
3095
3096else
3097
3098 LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
3099 if test "x$LINE" != x ; then
3100 eval "DEFAULT_$LINE"
3101 else
3102 no_cache=1
3103 fi
3104
3105 ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
3106
3107fi
3108
3109
3110 eval "$ac_cv_use_streams"
3111 if test "$no_cache" != 1; then
3112 echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
3113 fi
3114
3115 if test "$wxUSE_STREAMS" = yes; then
3116 echo "$ac_t""yes" 1>&6
3117 else
3118 echo "$ac_t""no" 1>&6
3119 fi
3120
3121
3122 echo $ac_n "checking "for --enable-file"""... $ac_c" 1>&6
0046ff7c 3123echo "configure:3124: checking "for --enable-file"" >&5
10f2d63a
VZ
3124 no_cache=0
3125 # Check whether --enable-file or --disable-file was given.
3126if test "${enable_file+set}" = set; then
3127 enableval="$enable_file"
3128
3129 if test "$enableval" = yes; then
3130 ac_cv_use_file='wxUSE_FILE=yes'
3131 else
3132 ac_cv_use_file='wxUSE_FILE=no'
3133 fi
3134
3135else
3136
3137 LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
3138 if test "x$LINE" != x ; then
3139 eval "DEFAULT_$LINE"
3140 else
3141 no_cache=1
3142 fi
3143
3144 ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
3145
3146fi
3147
3148
3149 eval "$ac_cv_use_file"
3150 if test "$no_cache" != 1; then
3151 echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
3152 fi
3153
3154 if test "$wxUSE_FILE" = yes; then
3155 echo "$ac_t""yes" 1>&6
3156 else
3157 echo "$ac_t""no" 1>&6
3158 fi
3159
3160
3161 echo $ac_n "checking "for --enable-textfile"""... $ac_c" 1>&6
0046ff7c 3162echo "configure:3163: checking "for --enable-textfile"" >&5
10f2d63a
VZ
3163 no_cache=0
3164 # Check whether --enable-textfile or --disable-textfile was given.
3165if test "${enable_textfile+set}" = set; then
3166 enableval="$enable_textfile"
3167
3168 if test "$enableval" = yes; then
3169 ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
3170 else
3171 ac_cv_use_textfile='wxUSE_TEXTFILE=no'
3172 fi
3173
3174else
3175
3176 LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
3177 if test "x$LINE" != x ; then
3178 eval "DEFAULT_$LINE"
3179 else
3180 no_cache=1
3181 fi
3182
3183 ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
3184
3185fi
3186
3187
3188 eval "$ac_cv_use_textfile"
3189 if test "$no_cache" != 1; then
3190 echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
3191 fi
3192
3193 if test "$wxUSE_TEXTFILE" = yes; then
3194 echo "$ac_t""yes" 1>&6
3195 else
3196 echo "$ac_t""no" 1>&6
3197 fi
3198
3199
3200 echo $ac_n "checking "for --enable-unicode"""... $ac_c" 1>&6
0046ff7c 3201echo "configure:3202: checking "for --enable-unicode"" >&5
10f2d63a
VZ
3202 no_cache=0
3203 # Check whether --enable-unicode or --disable-unicode was given.
3204if test "${enable_unicode+set}" = set; then
3205 enableval="$enable_unicode"
3206
3207 if test "$enableval" = yes; then
3208 ac_cv_use_unicode='wxUSE_UNICODE=yes'
3209 else
3210 ac_cv_use_unicode='wxUSE_UNICODE=no'
3211 fi
3212
3213else
3214
3215 LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
3216 if test "x$LINE" != x ; then
3217 eval "DEFAULT_$LINE"
3218 else
3219 no_cache=1
3220 fi
3221
3222 ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
3223
3224fi
3225
3226
3227 eval "$ac_cv_use_unicode"
3228 if test "$no_cache" != 1; then
3229 echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
3230 fi
3231
3232 if test "$wxUSE_UNICODE" = yes; then
3233 echo "$ac_t""yes" 1>&6
3234 else
3235 echo "$ac_t""no" 1>&6
3236 fi
3237
3238
3239 echo $ac_n "checking "for --enable-wcsrtombs"""... $ac_c" 1>&6
0046ff7c 3240echo "configure:3241: checking "for --enable-wcsrtombs"" >&5
10f2d63a
VZ
3241 no_cache=0
3242 # Check whether --enable-wcsrtombs or --disable-wcsrtombs was given.
3243if test "${enable_wcsrtombs+set}" = set; then
3244 enableval="$enable_wcsrtombs"
3245
3246 if test "$enableval" = yes; then
3247 ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS=yes'
3248 else
3249 ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS=no'
3250 fi
3251
3252else
3253
3254 LINE=`grep "wxUSE_WCSRTOMBS" ${wx_arg_cache_file}`
3255 if test "x$LINE" != x ; then
3256 eval "DEFAULT_$LINE"
3257 else
3258 no_cache=1
3259 fi
3260
3261 ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS='$DEFAULT_wxUSE_WCSRTOMBS
3262
3263fi
3264
3265
3266 eval "$ac_cv_use_wcsrtombs"
3267 if test "$no_cache" != 1; then
3268 echo $ac_cv_use_wcsrtombs >> ${wx_arg_cache_file}.tmp
3269 fi
3270
3271 if test "$wxUSE_WCSRTOMBS" = yes; then
3272 echo "$ac_t""yes" 1>&6
3273 else
3274 echo "$ac_t""no" 1>&6
3275 fi
3276
3277
3278 echo $ac_n "checking "for --enable-wxprintfv"""... $ac_c" 1>&6
0046ff7c 3279echo "configure:3280: checking "for --enable-wxprintfv"" >&5
10f2d63a
VZ
3280 no_cache=0
3281 # Check whether --enable-wxprintfv or --disable-wxprintfv was given.
3282if test "${enable_wxprintfv+set}" = set; then
3283 enableval="$enable_wxprintfv"
3284
3285 if test "$enableval" = yes; then
3286 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes'
3287 else
3288 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no'
3289 fi
3290
3291else
3292
3293 LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}`
3294 if test "x$LINE" != x ; then
3295 eval "DEFAULT_$LINE"
3296 else
3297 no_cache=1
3298 fi
3299
3300 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF
3301
3302fi
3303
3304
3305 eval "$ac_cv_use_wxprintfv"
3306 if test "$no_cache" != 1; then
3307 echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp
3308 fi
3309
3310 if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then
3311 echo "$ac_t""yes" 1>&6
3312 else
3313 echo "$ac_t""no" 1>&6
3314 fi
3315
3316
10f2d63a 3317 echo $ac_n "checking "for --enable-std_iostreams"""... $ac_c" 1>&6
0046ff7c 3318echo "configure:3319: checking "for --enable-std_iostreams"" >&5
10f2d63a
VZ
3319 no_cache=0
3320 # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
3321if test "${enable_std_iostreams+set}" = set; then
3322 enableval="$enable_std_iostreams"
3323
3324 if test "$enableval" = yes; then
3325 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
3326 else
3327 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
3328 fi
3329
3330else
3331
3332 LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
3333 if test "x$LINE" != x ; then
3334 eval "DEFAULT_$LINE"
3335 else
3336 no_cache=1
3337 fi
3338
3339 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
3340
3341fi
3342
3343
3344 eval "$ac_cv_use_std_iostreams"
3345 if test "$no_cache" != 1; then
3346 echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
3347 fi
3348
3349 if test "$wxUSE_STD_IOSTREAM" = yes; then
3350 echo "$ac_t""yes" 1>&6
3351 else
3352 echo "$ac_t""no" 1>&6
3353 fi
3354
3355
24528b0c 3356 echo $ac_n "checking "for --enable-filesystem"""... $ac_c" 1>&6
0046ff7c 3357echo "configure:3358: checking "for --enable-filesystem"" >&5
24528b0c
VS
3358 no_cache=0
3359 # Check whether --enable-filesystem or --disable-filesystem was given.
3360if test "${enable_filesystem+set}" = set; then
3361 enableval="$enable_filesystem"
3362
3363 if test "$enableval" = yes; then
3364 ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
3365 else
3366 ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
3367 fi
3368
3369else
3370
3371 LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}`
3372 if test "x$LINE" != x ; then
3373 eval "DEFAULT_$LINE"
3374 else
3375 no_cache=1
3376 fi
3377
3378 ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
3379
3380fi
3381
3382
3383 eval "$ac_cv_use_filesystem"
3384 if test "$no_cache" != 1; then
3385 echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
3386 fi
3387
3388 if test "$wxUSE_FILESYSTEM" = yes; then
3389 echo "$ac_t""yes" 1>&6
3390 else
3391 echo "$ac_t""no" 1>&6
3392 fi
3393
3394
10f2d63a 3395 echo $ac_n "checking "for --enable-fs_inet"""... $ac_c" 1>&6
0046ff7c 3396echo "configure:3397: checking "for --enable-fs_inet"" >&5
10f2d63a
VZ
3397 no_cache=0
3398 # Check whether --enable-fs_inet or --disable-fs_inet was given.
3399if test "${enable_fs_inet+set}" = set; then
3400 enableval="$enable_fs_inet"
3401
3402 if test "$enableval" = yes; then
3403 ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
3404 else
3405 ac_cv_use_fs_inet='wxUSE_FS_INET=no'
3406 fi
3407
3408else
3409
3410 LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
3411 if test "x$LINE" != x ; then
3412 eval "DEFAULT_$LINE"
3413 else
3414 no_cache=1
3415 fi
3416
3417 ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
3418
3419fi
3420
3421
3422 eval "$ac_cv_use_fs_inet"
3423 if test "$no_cache" != 1; then
3424 echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
3425 fi
3426
3427 if test "$wxUSE_FS_INET" = yes; then
3428 echo "$ac_t""yes" 1>&6
3429 else
3430 echo "$ac_t""no" 1>&6
3431 fi
3432
3433
3434 echo $ac_n "checking "for --enable-fs_zip"""... $ac_c" 1>&6
0046ff7c 3435echo "configure:3436: checking "for --enable-fs_zip"" >&5
10f2d63a
VZ
3436 no_cache=0
3437 # Check whether --enable-fs_zip or --disable-fs_zip was given.
3438if test "${enable_fs_zip+set}" = set; then
3439 enableval="$enable_fs_zip"
3440
3441 if test "$enableval" = yes; then
3442 ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
3443 else
3444 ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
3445 fi
3446
3447else
3448
3449 LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
3450 if test "x$LINE" != x ; then
3451 eval "DEFAULT_$LINE"
3452 else
3453 no_cache=1
3454 fi
3455
3456 ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
3457
3458fi
3459
3460
3461 eval "$ac_cv_use_fs_zip"
3462 if test "$no_cache" != 1; then
3463 echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
3464 fi
3465
3466 if test "$wxUSE_FS_ZIP" = yes; then
3467 echo "$ac_t""yes" 1>&6
3468 else
3469 echo "$ac_t""no" 1>&6
3470 fi
3471
3472
3473 echo $ac_n "checking "for --enable-zipstream"""... $ac_c" 1>&6
0046ff7c 3474echo "configure:3475: checking "for --enable-zipstream"" >&5
10f2d63a
VZ
3475 no_cache=0
3476 # Check whether --enable-zipstream or --disable-zipstream was given.
3477if test "${enable_zipstream+set}" = set; then
3478 enableval="$enable_zipstream"
3479
3480 if test "$enableval" = yes; then
3481 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
3482 else
3483 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
3484 fi
3485
3486else
3487
3488 LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
3489 if test "x$LINE" != x ; then
3490 eval "DEFAULT_$LINE"
3491 else
3492 no_cache=1
3493 fi
3494
3495 ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
3496
3497fi
3498
3499
3500 eval "$ac_cv_use_zipstream"
3501 if test "$no_cache" != 1; then
3502 echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
3503 fi
3504
3505 if test "$wxUSE_ZIPSTREAM" = yes; then
3506 echo "$ac_t""yes" 1>&6
3507 else
3508 echo "$ac_t""no" 1>&6
3509 fi
3510
3511
3512
eb4efbdc 3513 echo $ac_n "checking "for --enable-catch_segvs"""... $ac_c" 1>&6
0046ff7c 3514echo "configure:3515: checking "for --enable-catch_segvs"" >&5
eb4efbdc
VZ
3515 no_cache=0
3516 # Check whether --enable-catch_segvs or --disable-catch_segvs was given.
3517if test "${enable_catch_segvs+set}" = set; then
3518 enableval="$enable_catch_segvs"
3519
3520 if test "$enableval" = yes; then
3521 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
3522 else
3523 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
3524 fi
3525
3526else
3527
3528 LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}`
3529 if test "x$LINE" != x ; then
3530 eval "DEFAULT_$LINE"
3531 else
3532 no_cache=1
3533 fi
3534
3535 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION
3536
3537fi
3538
3539
3540 eval "$ac_cv_use_catch_segvs"
3541 if test "$no_cache" != 1; then
3542 echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp
3543 fi
3544
3545 if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then
3546 echo "$ac_t""yes" 1>&6
3547 else
3548 echo "$ac_t""no" 1>&6
3549 fi
3550
3551
3552
10f2d63a
VZ
3553
3554 echo $ac_n "checking "for --enable-threads"""... $ac_c" 1>&6
0046ff7c 3555echo "configure:3556: checking "for --enable-threads"" >&5
10f2d63a
VZ
3556 no_cache=0
3557 # Check whether --enable-threads or --disable-threads was given.
3558if test "${enable_threads+set}" = set; then
3559 enableval="$enable_threads"
3560
3561 if test "$enableval" = yes; then
3562 ac_cv_use_threads='wxUSE_THREADS=yes'
3563 else
3564 ac_cv_use_threads='wxUSE_THREADS=no'
3565 fi
3566
3567else
3568
3569 LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
3570 if test "x$LINE" != x ; then
3571 eval "DEFAULT_$LINE"
3572 else
3573 no_cache=1
3574 fi
3575
3576 ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
3577
3578fi
3579
3580
3581 eval "$ac_cv_use_threads"
3582 if test "$no_cache" != 1; then
3583 echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
3584 fi
3585
3586 if test "$wxUSE_THREADS" = yes; then
3587 echo "$ac_t""yes" 1>&6
3588 else
3589 echo "$ac_t""no" 1>&6
3590 fi
3591
3592
3593 echo $ac_n "checking "for --enable-serial"""... $ac_c" 1>&6
0046ff7c 3594echo "configure:3595: checking "for --enable-serial"" >&5
10f2d63a
VZ
3595 no_cache=0
3596 # Check whether --enable-serial or --disable-serial was given.
3597if test "${enable_serial+set}" = set; then
3598 enableval="$enable_serial"
3599
3600 if test "$enableval" = yes; then
3601 ac_cv_use_serial='wxUSE_SERIAL=yes'
3602 else
3603 ac_cv_use_serial='wxUSE_SERIAL=no'
3604 fi
3605
3606else
3607
3608 LINE=`grep "wxUSE_SERIAL" ${wx_arg_cache_file}`
3609 if test "x$LINE" != x ; then
3610 eval "DEFAULT_$LINE"
3611 else
3612 no_cache=1
3613 fi
3614
3615 ac_cv_use_serial='wxUSE_SERIAL='$DEFAULT_wxUSE_SERIAL
3616
3617fi
3618
3619
3620 eval "$ac_cv_use_serial"
3621 if test "$no_cache" != 1; then
3622 echo $ac_cv_use_serial >> ${wx_arg_cache_file}.tmp
3623 fi
3624
3625 if test "$wxUSE_SERIAL" = yes; then
3626 echo "$ac_t""yes" 1>&6
3627 else
3628 echo "$ac_t""no" 1>&6
3629 fi
3630
3631
b12915c1
VZ
3632if test "$wxUSE_GUI" = "yes"; then
3633
10f2d63a
VZ
3634
3635
3636 echo $ac_n "checking "for --enable-docview"""... $ac_c" 1>&6
0046ff7c 3637echo "configure:3638: checking "for --enable-docview"" >&5
10f2d63a
VZ
3638 no_cache=0
3639 # Check whether --enable-docview or --disable-docview was given.
3640if test "${enable_docview+set}" = set; then
3641 enableval="$enable_docview"
3642
3643 if test "$enableval" = yes; then
3644 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
3645 else
3646 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
3647 fi
3648
3649else
3650
3651 LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
3652 if test "x$LINE" != x ; then
3653 eval "DEFAULT_$LINE"
3654 else
3655 no_cache=1
3656 fi
3657
3658 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
3659
3660fi
3661
3662
3663 eval "$ac_cv_use_docview"
3664 if test "$no_cache" != 1; then
3665 echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
3666 fi
3667
3668 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
3669 echo "$ac_t""yes" 1>&6
3670 else
3671 echo "$ac_t""no" 1>&6
3672 fi
3673
3674
3675 echo $ac_n "checking "for --enable-help"""... $ac_c" 1>&6
0046ff7c 3676echo "configure:3677: checking "for --enable-help"" >&5
10f2d63a
VZ
3677 no_cache=0
3678 # Check whether --enable-help or --disable-help was given.
3679if test "${enable_help+set}" = set; then
3680 enableval="$enable_help"
3681
3682 if test "$enableval" = yes; then
3683 ac_cv_use_help='wxUSE_HELP=yes'
3684 else
3685 ac_cv_use_help='wxUSE_HELP=no'
3686 fi
3687
3688else
3689
3690 LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
3691 if test "x$LINE" != x ; then
3692 eval "DEFAULT_$LINE"
3693 else
3694 no_cache=1
3695 fi
3696
3697 ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
3698
3699fi
3700
3701
3702 eval "$ac_cv_use_help"
3703 if test "$no_cache" != 1; then
3704 echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
3705 fi
3706
3707 if test "$wxUSE_HELP" = yes; then
3708 echo "$ac_t""yes" 1>&6
3709 else
3710 echo "$ac_t""no" 1>&6
3711 fi
3712
3713
3714 echo $ac_n "checking "for --enable-constraints"""... $ac_c" 1>&6
0046ff7c 3715echo "configure:3716: checking "for --enable-constraints"" >&5
10f2d63a
VZ
3716 no_cache=0
3717 # Check whether --enable-constraints or --disable-constraints was given.
3718if test "${enable_constraints+set}" = set; then
3719 enableval="$enable_constraints"
3720
3721 if test "$enableval" = yes; then
3722 ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
3723 else
3724 ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
3725 fi
3726
3727else
3728
3729 LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
3730 if test "x$LINE" != x ; then
3731 eval "DEFAULT_$LINE"
3732 else
3733 no_cache=1
3734 fi
3735
3736 ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
3737
3738fi
3739
3740
3741 eval "$ac_cv_use_constraints"
3742 if test "$no_cache" != 1; then
3743 echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
3744 fi
3745
3746 if test "$wxUSE_CONSTRAINTS" = yes; then
3747 echo "$ac_t""yes" 1>&6
3748 else
3749 echo "$ac_t""no" 1>&6
3750 fi
3751
3752
3753 echo $ac_n "checking "for --enable-printarch"""... $ac_c" 1>&6
0046ff7c 3754echo "configure:3755: checking "for --enable-printarch"" >&5
10f2d63a
VZ
3755 no_cache=0
3756 # Check whether --enable-printarch or --disable-printarch was given.
3757if test "${enable_printarch+set}" = set; then
3758 enableval="$enable_printarch"
3759
3760 if test "$enableval" = yes; then
3761 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
3762 else
3763 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
3764 fi
3765
3766else
3767
3768 LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
3769 if test "x$LINE" != x ; then
3770 eval "DEFAULT_$LINE"
3771 else
3772 no_cache=1
3773 fi
3774
3775 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
3776
3777fi
3778
3779
3780 eval "$ac_cv_use_printarch"
3781 if test "$no_cache" != 1; then
3782 echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
3783 fi
3784
3785 if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
3786 echo "$ac_t""yes" 1>&6
3787 else
3788 echo "$ac_t""no" 1>&6
3789 fi
3790
3791
3792 echo $ac_n "checking "for --enable-mdi"""... $ac_c" 1>&6
0046ff7c 3793echo "configure:3794: checking "for --enable-mdi"" >&5
10f2d63a
VZ
3794 no_cache=0
3795 # Check whether --enable-mdi or --disable-mdi was given.
3796if test "${enable_mdi+set}" = set; then
3797 enableval="$enable_mdi"
3798
3799 if test "$enableval" = yes; then
3800 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=yes'
3801 else
3802 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=no'
3803 fi
3804
3805else
3806
3807 LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
3808 if test "x$LINE" != x ; then
3809 eval "DEFAULT_$LINE"
3810 else
3811 no_cache=1
3812 fi
3813
3814 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
3815
3816fi
3817
3818
3819 eval "$ac_cv_use_mdi"
3820 if test "$no_cache" != 1; then
3821 echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
3822 fi
3823
3824 if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
3825 echo "$ac_t""yes" 1>&6
3826 else
3827 echo "$ac_t""no" 1>&6
3828 fi
3829
3830
3831
3832 echo $ac_n "checking "for --enable-postscript"""... $ac_c" 1>&6
0046ff7c 3833echo "configure:3834: checking "for --enable-postscript"" >&5
10f2d63a
VZ
3834 no_cache=0
3835 # Check whether --enable-postscript or --disable-postscript was given.
3836if test "${enable_postscript+set}" = set; then
3837 enableval="$enable_postscript"
3838
3839 if test "$enableval" = yes; then
3840 ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
3841 else
3842 ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
3843 fi
3844
3845else
3846
3847 LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
3848 if test "x$LINE" != x ; then
3849 eval "DEFAULT_$LINE"
3850 else
3851 no_cache=1
3852 fi
3853
3854 ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
3855
3856fi
3857
3858
3859 eval "$ac_cv_use_postscript"
3860 if test "$no_cache" != 1; then
3861 echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
3862 fi
3863
3864 if test "$wxUSE_POSTSCRIPT" = yes; then
3865 echo "$ac_t""yes" 1>&6
3866 else
3867 echo "$ac_t""no" 1>&6
3868 fi
3869
3870
3871
3872
3873 echo $ac_n "checking "for --enable-prologio"""... $ac_c" 1>&6
0046ff7c 3874echo "configure:3875: checking "for --enable-prologio"" >&5
10f2d63a
VZ
3875 no_cache=0
3876 # Check whether --enable-prologio or --disable-prologio was given.
3877if test "${enable_prologio+set}" = set; then
3878 enableval="$enable_prologio"
3879
3880 if test "$enableval" = yes; then
3881 ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
3882 else
3883 ac_cv_use_prologio='wxUSE_PROLOGIO=no'
3884 fi
3885
3886else
3887
3888 LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
3889 if test "x$LINE" != x ; then
3890 eval "DEFAULT_$LINE"
3891 else
3892 no_cache=1
3893 fi
3894
3895 ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
3896
3897fi
3898
3899
3900 eval "$ac_cv_use_prologio"
3901 if test "$no_cache" != 1; then
3902 echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
3903 fi
3904
3905 if test "$wxUSE_PROLOGIO" = yes; then
3906 echo "$ac_t""yes" 1>&6
3907 else
3908 echo "$ac_t""no" 1>&6
3909 fi
3910
3911
3912 echo $ac_n "checking "for --enable-resources"""... $ac_c" 1>&6
0046ff7c 3913echo "configure:3914: checking "for --enable-resources"" >&5
10f2d63a
VZ
3914 no_cache=0
3915 # Check whether --enable-resources or --disable-resources was given.
3916if test "${enable_resources+set}" = set; then
3917 enableval="$enable_resources"
3918
3919 if test "$enableval" = yes; then
3920 ac_cv_use_resources='wxUSE_RESOURCES=yes'
3921 else
3922 ac_cv_use_resources='wxUSE_RESOURCES=no'
3923 fi
3924
3925else
3926
3927 LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
3928 if test "x$LINE" != x ; then
3929 eval "DEFAULT_$LINE"
3930 else
3931 no_cache=1
3932 fi
3933
3934 ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
3935
3936fi
3937
3938
3939 eval "$ac_cv_use_resources"
3940 if test "$no_cache" != 1; then
3941 echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
3942 fi
3943
3944 if test "$wxUSE_RESOURCES" = yes; then
3945 echo "$ac_t""yes" 1>&6
3946 else
3947 echo "$ac_t""no" 1>&6
3948 fi
3949
3950
3951
3952 echo $ac_n "checking "for --enable-xresources"""... $ac_c" 1>&6
0046ff7c 3953echo "configure:3954: checking "for --enable-xresources"" >&5
10f2d63a
VZ
3954 no_cache=0
3955 # Check whether --enable-xresources or --disable-xresources was given.
3956if test "${enable_xresources+set}" = set; then
3957 enableval="$enable_xresources"
3958
3959 if test "$enableval" = yes; then
3960 ac_cv_use_xresources='wxUSE_X_RESOURCES=yes'
3961 else
3962 ac_cv_use_xresources='wxUSE_X_RESOURCES=no'
3963 fi
3964
3965else
3966
3967 LINE=`grep "wxUSE_X_RESOURCES" ${wx_arg_cache_file}`
3968 if test "x$LINE" != x ; then
3969 eval "DEFAULT_$LINE"
3970 else
3971 no_cache=1
3972 fi
3973
3974 ac_cv_use_xresources='wxUSE_X_RESOURCES='$DEFAULT_wxUSE_X_RESOURCES
3975
3976fi
3977
3978
3979 eval "$ac_cv_use_xresources"
3980 if test "$no_cache" != 1; then
3981 echo $ac_cv_use_xresources >> ${wx_arg_cache_file}.tmp
3982 fi
3983
3984 if test "$wxUSE_X_RESOURCES" = yes; then
3985 echo "$ac_t""yes" 1>&6
3986 else
3987 echo "$ac_t""no" 1>&6
3988 fi
3989
3990
3991
3992
3993 echo $ac_n "checking "for --enable-clipboard"""... $ac_c" 1>&6
0046ff7c 3994echo "configure:3995: checking "for --enable-clipboard"" >&5
10f2d63a
VZ
3995 no_cache=0
3996 # Check whether --enable-clipboard or --disable-clipboard was given.
3997if test "${enable_clipboard+set}" = set; then
3998 enableval="$enable_clipboard"
3999
4000 if test "$enableval" = yes; then
4001 ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
4002 else
4003 ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
4004 fi
4005
4006else
4007
4008 LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
4009 if test "x$LINE" != x ; then
4010 eval "DEFAULT_$LINE"
4011 else
4012 no_cache=1
4013 fi
4014
4015 ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
4016
4017fi
4018
4019
4020 eval "$ac_cv_use_clipboard"
4021 if test "$no_cache" != 1; then
4022 echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
4023 fi
4024
4025 if test "$wxUSE_CLIPBOARD" = yes; then
4026 echo "$ac_t""yes" 1>&6
4027 else
4028 echo "$ac_t""no" 1>&6
4029 fi
4030
4031
4032 echo $ac_n "checking "for --enable-dnd"""... $ac_c" 1>&6
0046ff7c 4033echo "configure:4034: checking "for --enable-dnd"" >&5
10f2d63a
VZ
4034 no_cache=0
4035 # Check whether --enable-dnd or --disable-dnd was given.
4036if test "${enable_dnd+set}" = set; then
4037 enableval="$enable_dnd"
4038
4039 if test "$enableval" = yes; then
4040 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
4041 else
4042 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
4043 fi
4044
4045else
4046
4047 LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
4048 if test "x$LINE" != x ; then
4049 eval "DEFAULT_$LINE"
4050 else
4051 no_cache=1
4052 fi
4053
4054 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
4055
4056fi
4057
4058
4059 eval "$ac_cv_use_dnd"
4060 if test "$no_cache" != 1; then
4061 echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
4062 fi
4063
4064 if test "$wxUSE_DRAG_AND_DROP" = yes; then
4065 echo "$ac_t""yes" 1>&6
4066 else
4067 echo "$ac_t""no" 1>&6
4068 fi
4069
4070
b64f0a5f 4071 echo $ac_n "checking "for --enable-metafile"""... $ac_c" 1>&6
0046ff7c 4072echo "configure:4073: checking "for --enable-metafile"" >&5
b64f0a5f
RL
4073 no_cache=0
4074 # Check whether --enable-metafile or --disable-metafile was given.
4075if test "${enable_metafile+set}" = set; then
4076 enableval="$enable_metafile"
4077
4078 if test "$enableval" = yes; then
4079 ac_cv_use_metafile='wxUSE_METAFILE=yes'
4080 else
4081 ac_cv_use_metafile='wxUSE_METAFILE=no'
4082 fi
4083
4084else
4085
4086 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
4087 if test "x$LINE" != x ; then
4088 eval "DEFAULT_$LINE"
4089 else
4090 no_cache=1
4091 fi
4092
4093 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
4094
4095fi
4096
4097
4098 eval "$ac_cv_use_metafile"
4099 if test "$no_cache" != 1; then
4100 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
4101 fi
4102
4103 if test "$wxUSE_METAFILE" = yes; then
4104 echo "$ac_t""yes" 1>&6
4105 else
4106 echo "$ac_t""no" 1>&6
4107 fi
4108
4109
10f2d63a
VZ
4110
4111 echo $ac_n "checking "for --enable-wxtree"""... $ac_c" 1>&6
0046ff7c 4112echo "configure:4113: checking "for --enable-wxtree"" >&5
10f2d63a
VZ
4113 no_cache=0
4114 # Check whether --enable-wxtree or --disable-wxtree was given.
4115if test "${enable_wxtree+set}" = set; then
4116 enableval="$enable_wxtree"
4117
4118 if test "$enableval" = yes; then
4119 ac_cv_use_wxtree='wxUSE_WXTREE=yes'
4120 else
4121 ac_cv_use_wxtree='wxUSE_WXTREE=no'
4122 fi
4123
4124else
4125
4126 LINE=`grep "wxUSE_WXTREE" ${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_wxtree='wxUSE_WXTREE='$DEFAULT_wxUSE_WXTREE
4134
4135fi
4136
4137
4138 eval "$ac_cv_use_wxtree"
4139 if test "$no_cache" != 1; then
4140 echo $ac_cv_use_wxtree >> ${wx_arg_cache_file}.tmp
4141 fi
4142
4143 if test "$wxUSE_WXTREE" = yes; then
4144 echo "$ac_t""yes" 1>&6
4145 else
4146 echo "$ac_t""no" 1>&6
4147 fi
4148
4149
4150
4151
4152 echo $ac_n "checking "for --enable-controls"""... $ac_c" 1>&6
0046ff7c 4153echo "configure:4154: checking "for --enable-controls"" >&5
10f2d63a
VZ
4154 no_cache=0
4155 # Check whether --enable-controls or --disable-controls was given.
4156if test "${enable_controls+set}" = set; then
4157 enableval="$enable_controls"
4158
4159 if test "$enableval" = yes; then
4160 ac_cv_use_controls='wxUSE_CONTROLS=yes'
4161 else
4162 ac_cv_use_controls='wxUSE_CONTROLS=no'
4163 fi
4164
4165else
4166
4167 LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
4168 if test "x$LINE" != x ; then
4169 eval "DEFAULT_$LINE"
4170 else
4171 no_cache=1
4172 fi
4173
4174 ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
4175
4176fi
4177
4178
4179 eval "$ac_cv_use_controls"
4180 if test "$no_cache" != 1; then
4181 echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
4182 fi
4183
4184 if test "$wxUSE_CONTROLS" = yes; then
4185 echo "$ac_t""yes" 1>&6
4186 else
4187 echo "$ac_t""no" 1>&6
4188 fi
4189
4190
4191if test "$wxUSE_CONTROLS" = "yes"; then
4192 DEFAULT_wxUSE_ACCEL=yes
4193 DEFAULT_wxUSE_CARET=yes
4194 DEFAULT_wxUSE_COMBOBOX=yes
4195 DEFAULT_wxUSE_BMPBUTTON=yes
4196 DEFAULT_wxUSE_CHECKBOX=yes
4197 DEFAULT_wxUSE_CHECKLISTBOX=yes
4198 DEFAULT_wxUSE_CHOICE=yes
4199 DEFAULT_wxUSE_GAUGE=yes
4200 DEFAULT_wxUSE_GRID=yes
cc977e5f 4201 DEFAULT_wxUSE_NEW_GRID=yes
10f2d63a
VZ
4202 DEFAULT_wxUSE_IMAGLIST=yes
4203 DEFAULT_wxUSE_LISTBOX=yes
4204 DEFAULT_wxUSE_LISTCTRL=yes
4205 DEFAULT_wxUSE_NOTEBOOK=yes
4206 DEFAULT_wxUSE_RADIOBOX=yes
4207 DEFAULT_wxUSE_RADIOBTN=yes
4208 DEFAULT_wxUSE_SASH=yes
4209 DEFAULT_wxUSE_SCROLLBAR=yes
4210 DEFAULT_wxUSE_SLIDER=yes
4211 DEFAULT_wxUSE_SPINBTN=yes
56cfaa52 4212 DEFAULT_wxUSE_SPINCTRL=yes
10f2d63a
VZ
4213 DEFAULT_wxUSE_SPLITTER=yes
4214 DEFAULT_wxUSE_STATBMP=yes
4215 DEFAULT_wxUSE_STATBOX=yes
4216 DEFAULT_wxUSE_STATLINE=yes
4217 DEFAULT_wxUSE_STATUSBAR=yes
4218 DEFAULT_wxUSE_TAB_DIALOG=yes
1db8dc4a 4219 DEFAULT_wxUSE_TOGGLEBTN=yes
10f2d63a 4220 DEFAULT_wxUSE_TOOLBAR=yes
360d6699
VZ
4221 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
4222 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
10f2d63a
VZ
4223 DEFAULT_wxUSE_TOOLTIPS=yes
4224 DEFAULT_wxUSE_TREECTRL=yes
4225elif test "$wxUSE_CONTROLS" = "no"; then
4226 DEFAULT_wxUSE_ACCEL=no
4227 DEFAULT_wxUSE_CARET=no
4228 DEFAULT_wxUSE_COMBOBOX=no
4229 DEFAULT_wxUSE_BMPBUTTON=no
4230 DEFAULT_wxUSE_CHECKBOX=no
4231 DEFAULT_wxUSE_CHECKLISTBOX=no
4232 DEFAULT_wxUSE_CHOICE=no
4233 DEFAULT_wxUSE_GAUGE=no
4234 DEFAULT_wxUSE_GRID=no
4235 DEFAULT_wxUSE_NEW_GRID=no
4236 DEFAULT_wxUSE_IMAGLIST=no
4237 DEFAULT_wxUSE_LISTBOX=no
4238 DEFAULT_wxUSE_LISTCTRL=no
4239 DEFAULT_wxUSE_NOTEBOOK=no
4240 DEFAULT_wxUSE_RADIOBOX=no
4241 DEFAULT_wxUSE_RADIOBTN=no
4242 DEFAULT_wxUSE_SASH=no
4243 DEFAULT_wxUSE_SCROLLBAR=no
4244 DEFAULT_wxUSE_SLIDER=no
4245 DEFAULT_wxUSE_SPINBTN=no
56cfaa52 4246 DEFAULT_wxUSE_SPINCTRL=no
10f2d63a
VZ
4247 DEFAULT_wxUSE_SPLITTER=no
4248 DEFAULT_wxUSE_STATBMP=no
4249 DEFAULT_wxUSE_STATBOX=no
4250 DEFAULT_wxUSE_STATLINE=no
4251 DEFAULT_wxUSE_STATUSBAR=no
4252 DEFAULT_wxUSE_TAB_DIALOG=no
1db8dc4a 4253 DEFAULT_wxUSE_TOGGLEBTN=no
10f2d63a 4254 DEFAULT_wxUSE_TOOLBAR=no
360d6699
VZ
4255 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
4256 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
10f2d63a
VZ
4257 DEFAULT_wxUSE_TOOLTIPS=no
4258 DEFAULT_wxUSE_TREECTRL=no
4259fi
4260
4261
4262 echo $ac_n "checking "for --enable-accel"""... $ac_c" 1>&6
0046ff7c 4263echo "configure:4264: checking "for --enable-accel"" >&5
10f2d63a
VZ
4264 no_cache=0
4265 # Check whether --enable-accel or --disable-accel was given.
4266if test "${enable_accel+set}" = set; then
4267 enableval="$enable_accel"
4268
4269 if test "$enableval" = yes; then
4270 ac_cv_use_accel='wxUSE_ACCEL=yes'
4271 else
4272 ac_cv_use_accel='wxUSE_ACCEL=no'
4273 fi
4274
4275else
4276
4277 LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
4278 if test "x$LINE" != x ; then
4279 eval "DEFAULT_$LINE"
4280 else
4281 no_cache=1
4282 fi
4283
4284 ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
4285
4286fi
4287
4288
4289 eval "$ac_cv_use_accel"
4290 if test "$no_cache" != 1; then
4291 echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
4292 fi
4293
4294 if test "$wxUSE_ACCEL" = yes; then
4295 echo "$ac_t""yes" 1>&6
4296 else
4297 echo "$ac_t""no" 1>&6
4298 fi
4299
4300
4301 echo $ac_n "checking "for --enable-caret"""... $ac_c" 1>&6
0046ff7c 4302echo "configure:4303: checking "for --enable-caret"" >&5
10f2d63a
VZ
4303 no_cache=0
4304 # Check whether --enable-caret or --disable-caret was given.
4305if test "${enable_caret+set}" = set; then
4306 enableval="$enable_caret"
4307
4308 if test "$enableval" = yes; then
4309 ac_cv_use_caret='wxUSE_CARET=yes'
4310 else
4311 ac_cv_use_caret='wxUSE_CARET=no'
4312 fi
4313
4314else
4315
4316 LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
4317 if test "x$LINE" != x ; then
4318 eval "DEFAULT_$LINE"
4319 else
4320 no_cache=1
4321 fi
4322
4323 ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
4324
4325fi
4326
4327
4328 eval "$ac_cv_use_caret"
4329 if test "$no_cache" != 1; then
4330 echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
4331 fi
4332
4333 if test "$wxUSE_CARET" = yes; then
4334 echo "$ac_t""yes" 1>&6
4335 else
4336 echo "$ac_t""no" 1>&6
4337 fi
4338
4339
4340 echo $ac_n "checking "for --enable-bmpbutton"""... $ac_c" 1>&6
0046ff7c 4341echo "configure:4342: checking "for --enable-bmpbutton"" >&5
10f2d63a
VZ
4342 no_cache=0
4343 # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
4344if test "${enable_bmpbutton+set}" = set; then
4345 enableval="$enable_bmpbutton"
4346
4347 if test "$enableval" = yes; then
4348 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
4349 else
4350 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
4351 fi
4352
4353else
4354
4355 LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
4356 if test "x$LINE" != x ; then
4357 eval "DEFAULT_$LINE"
4358 else
4359 no_cache=1
4360 fi
4361
4362 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
4363
4364fi
4365
4366
4367 eval "$ac_cv_use_bmpbutton"
4368 if test "$no_cache" != 1; then
4369 echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
4370 fi
4371
4372 if test "$wxUSE_BMPBUTTON" = yes; then
4373 echo "$ac_t""yes" 1>&6
4374 else
4375 echo "$ac_t""no" 1>&6
4376 fi
4377
4378
4379 echo $ac_n "checking "for --enable-checkbox"""... $ac_c" 1>&6
0046ff7c 4380echo "configure:4381: checking "for --enable-checkbox"" >&5
10f2d63a
VZ
4381 no_cache=0
4382 # Check whether --enable-checkbox or --disable-checkbox was given.
4383if test "${enable_checkbox+set}" = set; then
4384 enableval="$enable_checkbox"
4385
4386 if test "$enableval" = yes; then
4387 ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
4388 else
4389 ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
4390 fi
4391
4392else
4393
4394 LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
4395 if test "x$LINE" != x ; then
4396 eval "DEFAULT_$LINE"
4397 else
4398 no_cache=1
4399 fi
4400
4401 ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
4402
4403fi
4404
4405
4406 eval "$ac_cv_use_checkbox"
4407 if test "$no_cache" != 1; then
4408 echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
4409 fi
4410
4411 if test "$wxUSE_CHECKBOX" = yes; then
4412 echo "$ac_t""yes" 1>&6
4413 else
4414 echo "$ac_t""no" 1>&6
4415 fi
4416
4417
4418 echo $ac_n "checking "for --enable-checklst"""... $ac_c" 1>&6
0046ff7c 4419echo "configure:4420: checking "for --enable-checklst"" >&5
10f2d63a
VZ
4420 no_cache=0
4421 # Check whether --enable-checklst or --disable-checklst was given.
4422if test "${enable_checklst+set}" = set; then
4423 enableval="$enable_checklst"
4424
4425 if test "$enableval" = yes; then
4426 ac_cv_use_checklst='wxUSE_CHECKLST=yes'
4427 else
4428 ac_cv_use_checklst='wxUSE_CHECKLST=no'
4429 fi
4430
4431else
4432
4433 LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
4434 if test "x$LINE" != x ; then
4435 eval "DEFAULT_$LINE"
4436 else
4437 no_cache=1
4438 fi
4439
4440 ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
4441
4442fi
4443
4444
4445 eval "$ac_cv_use_checklst"
4446 if test "$no_cache" != 1; then
4447 echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
4448 fi
4449
4450 if test "$wxUSE_CHECKLST" = yes; then
4451 echo "$ac_t""yes" 1>&6
4452 else
4453 echo "$ac_t""no" 1>&6
4454 fi
4455
4456
4457 echo $ac_n "checking "for --enable-choice"""... $ac_c" 1>&6
0046ff7c 4458echo "configure:4459: checking "for --enable-choice"" >&5
10f2d63a
VZ
4459 no_cache=0
4460 # Check whether --enable-choice or --disable-choice was given.
4461if test "${enable_choice+set}" = set; then
4462 enableval="$enable_choice"
4463
4464 if test "$enableval" = yes; then
4465 ac_cv_use_choice='wxUSE_CHOICE=yes'
4466 else
4467 ac_cv_use_choice='wxUSE_CHOICE=no'
4468 fi
4469
4470else
4471
4472 LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
4473 if test "x$LINE" != x ; then
4474 eval "DEFAULT_$LINE"
4475 else
4476 no_cache=1
4477 fi
4478
4479 ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
4480
4481fi
4482
4483
4484 eval "$ac_cv_use_choice"
4485 if test "$no_cache" != 1; then
4486 echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
4487 fi
4488
4489 if test "$wxUSE_CHOICE" = yes; then
4490 echo "$ac_t""yes" 1>&6
4491 else
4492 echo "$ac_t""no" 1>&6
4493 fi
4494
4495
4496 echo $ac_n "checking "for --enable-combobox"""... $ac_c" 1>&6
0046ff7c 4497echo "configure:4498: checking "for --enable-combobox"" >&5
10f2d63a
VZ
4498 no_cache=0
4499 # Check whether --enable-combobox or --disable-combobox was given.
4500if test "${enable_combobox+set}" = set; then
4501 enableval="$enable_combobox"
4502
4503 if test "$enableval" = yes; then
4504 ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
4505 else
4506 ac_cv_use_combobox='wxUSE_COMBOBOX=no'
4507 fi
4508
4509else
4510
4511 LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
4512 if test "x$LINE" != x ; then
4513 eval "DEFAULT_$LINE"
4514 else
4515 no_cache=1
4516 fi
4517
4518 ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
4519
4520fi
4521
4522
4523 eval "$ac_cv_use_combobox"
4524 if test "$no_cache" != 1; then
4525 echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
4526 fi
4527
4528 if test "$wxUSE_COMBOBOX" = yes; then
4529 echo "$ac_t""yes" 1>&6
4530 else
4531 echo "$ac_t""no" 1>&6
4532 fi
4533
4534
4535 echo $ac_n "checking "for --enable-gauge"""... $ac_c" 1>&6
0046ff7c 4536echo "configure:4537: checking "for --enable-gauge"" >&5
10f2d63a
VZ
4537 no_cache=0
4538 # Check whether --enable-gauge or --disable-gauge was given.
4539if test "${enable_gauge+set}" = set; then
4540 enableval="$enable_gauge"
4541
4542 if test "$enableval" = yes; then
4543 ac_cv_use_gauge='wxUSE_GAUGE=yes'
4544 else
4545 ac_cv_use_gauge='wxUSE_GAUGE=no'
4546 fi
4547
4548else
4549
4550 LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
4551 if test "x$LINE" != x ; then
4552 eval "DEFAULT_$LINE"
4553 else
4554 no_cache=1
4555 fi
4556
4557 ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
4558
4559fi
4560
4561
4562 eval "$ac_cv_use_gauge"
4563 if test "$no_cache" != 1; then
4564 echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
4565 fi
4566
4567 if test "$wxUSE_GAUGE" = yes; then
4568 echo "$ac_t""yes" 1>&6
4569 else
4570 echo "$ac_t""no" 1>&6
4571 fi
4572
4573
4574 echo $ac_n "checking "for --enable-grid"""... $ac_c" 1>&6
0046ff7c 4575echo "configure:4576: checking "for --enable-grid"" >&5
10f2d63a
VZ
4576 no_cache=0
4577 # Check whether --enable-grid or --disable-grid was given.
4578if test "${enable_grid+set}" = set; then
4579 enableval="$enable_grid"
4580
4581 if test "$enableval" = yes; then
4582 ac_cv_use_grid='wxUSE_GRID=yes'
4583 else
4584 ac_cv_use_grid='wxUSE_GRID=no'
4585 fi
4586
4587else
4588
4589 LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
4590 if test "x$LINE" != x ; then
4591 eval "DEFAULT_$LINE"
4592 else
4593 no_cache=1
4594 fi
4595
4596 ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
4597
4598fi
4599
4600
4601 eval "$ac_cv_use_grid"
4602 if test "$no_cache" != 1; then
4603 echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
4604 fi
4605
4606 if test "$wxUSE_GRID" = yes; then
4607 echo "$ac_t""yes" 1>&6
4608 else
4609 echo "$ac_t""no" 1>&6
4610 fi
4611
4612
4613 echo $ac_n "checking "for --enable-newgrid"""... $ac_c" 1>&6
0046ff7c 4614echo "configure:4615: checking "for --enable-newgrid"" >&5
10f2d63a
VZ
4615 no_cache=0
4616 # Check whether --enable-newgrid or --disable-newgrid was given.
4617if test "${enable_newgrid+set}" = set; then
4618 enableval="$enable_newgrid"
4619
4620 if test "$enableval" = yes; then
4621 ac_cv_use_newgrid='wxUSE_NEW_GRID=yes'
4622 else
4623 ac_cv_use_newgrid='wxUSE_NEW_GRID=no'
4624 fi
4625
4626else
4627
4628 LINE=`grep "wxUSE_NEW_GRID" ${wx_arg_cache_file}`
4629 if test "x$LINE" != x ; then
4630 eval "DEFAULT_$LINE"
4631 else
4632 no_cache=1
4633 fi
4634
4635 ac_cv_use_newgrid='wxUSE_NEW_GRID='$DEFAULT_wxUSE_NEW_GRID
4636
4637fi
4638
4639
4640 eval "$ac_cv_use_newgrid"
4641 if test "$no_cache" != 1; then
4642 echo $ac_cv_use_newgrid >> ${wx_arg_cache_file}.tmp
4643 fi
4644
4645 if test "$wxUSE_NEW_GRID" = yes; then
4646 echo "$ac_t""yes" 1>&6
4647 else
4648 echo "$ac_t""no" 1>&6
4649 fi
4650
4651
4652 echo $ac_n "checking "for --enable-imaglist"""... $ac_c" 1>&6
0046ff7c 4653echo "configure:4654: checking "for --enable-imaglist"" >&5
10f2d63a
VZ
4654 no_cache=0
4655 # Check whether --enable-imaglist or --disable-imaglist was given.
4656if test "${enable_imaglist+set}" = set; then
4657 enableval="$enable_imaglist"
4658
4659 if test "$enableval" = yes; then
4660 ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
4661 else
4662 ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
4663 fi
4664
4665else
4666
4667 LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
4668 if test "x$LINE" != x ; then
4669 eval "DEFAULT_$LINE"
4670 else
4671 no_cache=1
4672 fi
4673
4674 ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
4675
4676fi
4677
4678
4679 eval "$ac_cv_use_imaglist"
4680 if test "$no_cache" != 1; then
4681 echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
4682 fi
4683
4684 if test "$wxUSE_IMAGLIST" = yes; then
4685 echo "$ac_t""yes" 1>&6
4686 else
4687 echo "$ac_t""no" 1>&6
4688 fi
4689
4690
4691 echo $ac_n "checking "for --enable-listbox"""... $ac_c" 1>&6
0046ff7c 4692echo "configure:4693: checking "for --enable-listbox"" >&5
10f2d63a
VZ
4693 no_cache=0
4694 # Check whether --enable-listbox or --disable-listbox was given.
4695if test "${enable_listbox+set}" = set; then
4696 enableval="$enable_listbox"
4697
4698 if test "$enableval" = yes; then
4699 ac_cv_use_listbox='wxUSE_LISTBOX=yes'
4700 else
4701 ac_cv_use_listbox='wxUSE_LISTBOX=no'
4702 fi
4703
4704else
4705
4706 LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
4707 if test "x$LINE" != x ; then
4708 eval "DEFAULT_$LINE"
4709 else
4710 no_cache=1
4711 fi
4712
4713 ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
4714
4715fi
4716
4717
4718 eval "$ac_cv_use_listbox"
4719 if test "$no_cache" != 1; then
4720 echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
4721 fi
4722
4723 if test "$wxUSE_LISTBOX" = yes; then
4724 echo "$ac_t""yes" 1>&6
4725 else
4726 echo "$ac_t""no" 1>&6
4727 fi
4728
4729
4730 echo $ac_n "checking "for --enable-listctrl"""... $ac_c" 1>&6
0046ff7c 4731echo "configure:4732: checking "for --enable-listctrl"" >&5
10f2d63a
VZ
4732 no_cache=0
4733 # Check whether --enable-listctrl or --disable-listctrl was given.
4734if test "${enable_listctrl+set}" = set; then
4735 enableval="$enable_listctrl"
4736
4737 if test "$enableval" = yes; then
4738 ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
4739 else
4740 ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
4741 fi
4742
4743else
4744
4745 LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
4746 if test "x$LINE" != x ; then
4747 eval "DEFAULT_$LINE"
4748 else
4749 no_cache=1
4750 fi
4751
4752 ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
4753
4754fi
4755
4756
4757 eval "$ac_cv_use_listctrl"
4758 if test "$no_cache" != 1; then
4759 echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
4760 fi
4761
4762 if test "$wxUSE_LISTCTRL" = yes; then
4763 echo "$ac_t""yes" 1>&6
4764 else
4765 echo "$ac_t""no" 1>&6
4766 fi
4767
4768
4769 echo $ac_n "checking "for --enable-notebook"""... $ac_c" 1>&6
0046ff7c 4770echo "configure:4771: checking "for --enable-notebook"" >&5
10f2d63a
VZ
4771 no_cache=0
4772 # Check whether --enable-notebook or --disable-notebook was given.
4773if test "${enable_notebook+set}" = set; then
4774 enableval="$enable_notebook"
4775
4776 if test "$enableval" = yes; then
4777 ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
4778 else
4779 ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
4780 fi
4781
4782else
4783
4784 LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
4785 if test "x$LINE" != x ; then
4786 eval "DEFAULT_$LINE"
4787 else
4788 no_cache=1
4789 fi
4790
4791 ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
4792
4793fi
4794
4795
4796 eval "$ac_cv_use_notebook"
4797 if test "$no_cache" != 1; then
4798 echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
4799 fi
4800
4801 if test "$wxUSE_NOTEBOOK" = yes; then
4802 echo "$ac_t""yes" 1>&6
4803 else
4804 echo "$ac_t""no" 1>&6
4805 fi
4806
4807
4808 echo $ac_n "checking "for --enable-radiobox"""... $ac_c" 1>&6
0046ff7c 4809echo "configure:4810: checking "for --enable-radiobox"" >&5
10f2d63a
VZ
4810 no_cache=0
4811 # Check whether --enable-radiobox or --disable-radiobox was given.
4812if test "${enable_radiobox+set}" = set; then
4813 enableval="$enable_radiobox"
4814
4815 if test "$enableval" = yes; then
4816 ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
4817 else
4818 ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
4819 fi
4820
4821else
4822
4823 LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
4824 if test "x$LINE" != x ; then
4825 eval "DEFAULT_$LINE"
4826 else
4827 no_cache=1
4828 fi
4829
4830 ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
4831
4832fi
4833
4834
4835 eval "$ac_cv_use_radiobox"
4836 if test "$no_cache" != 1; then
4837 echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
4838 fi
4839
4840 if test "$wxUSE_RADIOBOX" = yes; then
4841 echo "$ac_t""yes" 1>&6
4842 else
4843 echo "$ac_t""no" 1>&6
4844 fi
4845
4846
4847 echo $ac_n "checking "for --enable-radiobtn"""... $ac_c" 1>&6
0046ff7c 4848echo "configure:4849: checking "for --enable-radiobtn"" >&5
10f2d63a
VZ
4849 no_cache=0
4850 # Check whether --enable-radiobtn or --disable-radiobtn was given.
4851if test "${enable_radiobtn+set}" = set; then
4852 enableval="$enable_radiobtn"
4853
4854 if test "$enableval" = yes; then
4855 ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
4856 else
4857 ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
4858 fi
4859
4860else
4861
4862 LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
4863 if test "x$LINE" != x ; then
4864 eval "DEFAULT_$LINE"
4865 else
4866 no_cache=1
4867 fi
4868
4869 ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
4870
4871fi
4872
4873
4874 eval "$ac_cv_use_radiobtn"
4875 if test "$no_cache" != 1; then
4876 echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
4877 fi
4878
4879 if test "$wxUSE_RADIOBTN" = yes; then
4880 echo "$ac_t""yes" 1>&6
4881 else
4882 echo "$ac_t""no" 1>&6
4883 fi
4884
4885
4886 echo $ac_n "checking "for --enable-sash"""... $ac_c" 1>&6
0046ff7c 4887echo "configure:4888: checking "for --enable-sash"" >&5
10f2d63a
VZ
4888 no_cache=0
4889 # Check whether --enable-sash or --disable-sash was given.
4890if test "${enable_sash+set}" = set; then
4891 enableval="$enable_sash"
4892
4893 if test "$enableval" = yes; then
4894 ac_cv_use_sash='wxUSE_SASH=yes'
4895 else
4896 ac_cv_use_sash='wxUSE_SASH=no'
4897 fi
4898
4899else
4900
4901 LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
4902 if test "x$LINE" != x ; then
4903 eval "DEFAULT_$LINE"
4904 else
4905 no_cache=1
4906 fi
4907
4908 ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
4909
4910fi
4911
4912
4913 eval "$ac_cv_use_sash"
4914 if test "$no_cache" != 1; then
4915 echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
4916 fi
4917
4918 if test "$wxUSE_SASH" = yes; then
4919 echo "$ac_t""yes" 1>&6
4920 else
4921 echo "$ac_t""no" 1>&6
4922 fi
4923
4924
4925 echo $ac_n "checking "for --enable-scrollbar"""... $ac_c" 1>&6
0046ff7c 4926echo "configure:4927: checking "for --enable-scrollbar"" >&5
10f2d63a
VZ
4927 no_cache=0
4928 # Check whether --enable-scrollbar or --disable-scrollbar was given.
4929if test "${enable_scrollbar+set}" = set; then
4930 enableval="$enable_scrollbar"
4931
4932 if test "$enableval" = yes; then
4933 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
4934 else
4935 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
4936 fi
4937
4938else
4939
4940 LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
4941 if test "x$LINE" != x ; then
4942 eval "DEFAULT_$LINE"
4943 else
4944 no_cache=1
4945 fi
4946
4947 ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
4948
4949fi
4950
4951
4952 eval "$ac_cv_use_scrollbar"
4953 if test "$no_cache" != 1; then
4954 echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
4955 fi
4956
4957 if test "$wxUSE_SCROLLBAR" = yes; then
4958 echo "$ac_t""yes" 1>&6
4959 else
4960 echo "$ac_t""no" 1>&6
4961 fi
4962
4963
4964 echo $ac_n "checking "for --enable-slider"""... $ac_c" 1>&6
0046ff7c 4965echo "configure:4966: checking "for --enable-slider"" >&5
10f2d63a
VZ
4966 no_cache=0
4967 # Check whether --enable-slider or --disable-slider was given.
4968if test "${enable_slider+set}" = set; then
4969 enableval="$enable_slider"
4970
4971 if test "$enableval" = yes; then
4972 ac_cv_use_slider='wxUSE_SLIDER=yes'
4973 else
4974 ac_cv_use_slider='wxUSE_SLIDER=no'
4975 fi
4976
4977else
4978
4979 LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
4980 if test "x$LINE" != x ; then
4981 eval "DEFAULT_$LINE"
4982 else
4983 no_cache=1
4984 fi
4985
4986 ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
4987
4988fi
4989
4990
4991 eval "$ac_cv_use_slider"
4992 if test "$no_cache" != 1; then
4993 echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
4994 fi
4995
4996 if test "$wxUSE_SLIDER" = yes; then
4997 echo "$ac_t""yes" 1>&6
4998 else
4999 echo "$ac_t""no" 1>&6
5000 fi
5001
5002
5003 echo $ac_n "checking "for --enable-spinbtn"""... $ac_c" 1>&6
0046ff7c 5004echo "configure:5005: checking "for --enable-spinbtn"" >&5
10f2d63a
VZ
5005 no_cache=0
5006 # Check whether --enable-spinbtn or --disable-spinbtn was given.
5007if test "${enable_spinbtn+set}" = set; then
5008 enableval="$enable_spinbtn"
5009
5010 if test "$enableval" = yes; then
5011 ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
5012 else
5013 ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
5014 fi
5015
5016else
5017
5018 LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
5019 if test "x$LINE" != x ; then
5020 eval "DEFAULT_$LINE"
5021 else
5022 no_cache=1
5023 fi
5024
5025 ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
5026
5027fi
5028
5029
5030 eval "$ac_cv_use_spinbtn"
5031 if test "$no_cache" != 1; then
5032 echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
5033 fi
5034
5035 if test "$wxUSE_SPINBTN" = yes; then
5036 echo "$ac_t""yes" 1>&6
5037 else
5038 echo "$ac_t""no" 1>&6
5039 fi
5040
5041
56cfaa52 5042 echo $ac_n "checking "for --enable-spinctrl"""... $ac_c" 1>&6
0046ff7c 5043echo "configure:5044: checking "for --enable-spinctrl"" >&5
56cfaa52
RR
5044 no_cache=0
5045 # Check whether --enable-spinctrl or --disable-spinctrl was given.
5046if test "${enable_spinctrl+set}" = set; then
5047 enableval="$enable_spinctrl"
5048
5049 if test "$enableval" = yes; then
5050 ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
5051 else
5052 ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
5053 fi
5054
5055else
5056
5057 LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
5058 if test "x$LINE" != x ; then
5059 eval "DEFAULT_$LINE"
5060 else
5061 no_cache=1
5062 fi
5063
5064 ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
5065
5066fi
5067
5068
5069 eval "$ac_cv_use_spinctrl"
5070 if test "$no_cache" != 1; then
5071 echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
5072 fi
5073
5074 if test "$wxUSE_SPINCTRL" = yes; then
5075 echo "$ac_t""yes" 1>&6
5076 else
5077 echo "$ac_t""no" 1>&6
5078 fi
5079
5080
10f2d63a 5081 echo $ac_n "checking "for --enable-splitter"""... $ac_c" 1>&6
0046ff7c 5082echo "configure:5083: checking "for --enable-splitter"" >&5
10f2d63a
VZ
5083 no_cache=0
5084 # Check whether --enable-splitter or --disable-splitter was given.
5085if test "${enable_splitter+set}" = set; then
5086 enableval="$enable_splitter"
5087
5088 if test "$enableval" = yes; then
5089 ac_cv_use_splitter='wxUSE_SPLITTER=yes'
5090 else
5091 ac_cv_use_splitter='wxUSE_SPLITTER=no'
5092 fi
5093
5094else
5095
5096 LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
5097 if test "x$LINE" != x ; then
5098 eval "DEFAULT_$LINE"
5099 else
5100 no_cache=1
5101 fi
5102
5103 ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
5104
5105fi
5106
5107
5108 eval "$ac_cv_use_splitter"
5109 if test "$no_cache" != 1; then
5110 echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
5111 fi
5112
5113 if test "$wxUSE_SPLITTER" = yes; then
5114 echo "$ac_t""yes" 1>&6
5115 else
5116 echo "$ac_t""no" 1>&6
5117 fi
5118
5119
5120 echo $ac_n "checking "for --enable-statbmp"""... $ac_c" 1>&6
0046ff7c 5121echo "configure:5122: checking "for --enable-statbmp"" >&5
10f2d63a
VZ
5122 no_cache=0
5123 # Check whether --enable-statbmp or --disable-statbmp was given.
5124if test "${enable_statbmp+set}" = set; then
5125 enableval="$enable_statbmp"
5126
5127 if test "$enableval" = yes; then
5128 ac_cv_use_statbmp='wxUSE_STATBMP=yes'
5129 else
5130 ac_cv_use_statbmp='wxUSE_STATBMP=no'
5131 fi
5132
5133else
5134
5135 LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
5136 if test "x$LINE" != x ; then
5137 eval "DEFAULT_$LINE"
5138 else
5139 no_cache=1
5140 fi
5141
5142 ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
5143
5144fi
5145
5146
5147 eval "$ac_cv_use_statbmp"
5148 if test "$no_cache" != 1; then
5149 echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
5150 fi
5151
5152 if test "$wxUSE_STATBMP" = yes; then
5153 echo "$ac_t""yes" 1>&6
5154 else
5155 echo "$ac_t""no" 1>&6
5156 fi
5157
5158
5159 echo $ac_n "checking "for --enable-statbox"""... $ac_c" 1>&6
0046ff7c 5160echo "configure:5161: checking "for --enable-statbox"" >&5
10f2d63a
VZ
5161 no_cache=0
5162 # Check whether --enable-statbox or --disable-statbox was given.
5163if test "${enable_statbox+set}" = set; then
5164 enableval="$enable_statbox"
5165
5166 if test "$enableval" = yes; then
5167 ac_cv_use_statbox='wxUSE_STATBOX=yes'
5168 else
5169 ac_cv_use_statbox='wxUSE_STATBOX=no'
5170 fi
5171
5172else
5173
5174 LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
5175 if test "x$LINE" != x ; then
5176 eval "DEFAULT_$LINE"
5177 else
5178 no_cache=1
5179 fi
5180
5181 ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
5182
5183fi
5184
5185
5186 eval "$ac_cv_use_statbox"
5187 if test "$no_cache" != 1; then
5188 echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
5189 fi
5190
5191 if test "$wxUSE_STATBOX" = yes; then
5192 echo "$ac_t""yes" 1>&6
5193 else
5194 echo "$ac_t""no" 1>&6
5195 fi
5196
5197
5198 echo $ac_n "checking "for --enable-statline"""... $ac_c" 1>&6
0046ff7c 5199echo "configure:5200: checking "for --enable-statline"" >&5
10f2d63a
VZ
5200 no_cache=0
5201 # Check whether --enable-statline or --disable-statline was given.
5202if test "${enable_statline+set}" = set; then
5203 enableval="$enable_statline"
5204
5205 if test "$enableval" = yes; then
5206 ac_cv_use_statline='wxUSE_STATLINE=yes'
5207 else
5208 ac_cv_use_statline='wxUSE_STATLINE=no'
5209 fi
5210
5211else
5212
5213 LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
5214 if test "x$LINE" != x ; then
5215 eval "DEFAULT_$LINE"
5216 else
5217 no_cache=1
5218 fi
5219
5220 ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
5221
5222fi
5223
5224
5225 eval "$ac_cv_use_statline"
5226 if test "$no_cache" != 1; then
5227 echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
5228 fi
5229
5230 if test "$wxUSE_STATLINE" = yes; then
5231 echo "$ac_t""yes" 1>&6
5232 else
5233 echo "$ac_t""no" 1>&6
5234 fi
5235
5236
5237 echo $ac_n "checking "for --enable-statusbar"""... $ac_c" 1>&6
0046ff7c 5238echo "configure:5239: checking "for --enable-statusbar"" >&5
10f2d63a
VZ
5239 no_cache=0
5240 # Check whether --enable-statusbar or --disable-statusbar was given.
5241if test "${enable_statusbar+set}" = set; then
5242 enableval="$enable_statusbar"
5243
5244 if test "$enableval" = yes; then
5245 ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
5246 else
5247 ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
5248 fi
5249
5250else
5251
5252 LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
5253 if test "x$LINE" != x ; then
5254 eval "DEFAULT_$LINE"
5255 else
5256 no_cache=1
5257 fi
5258
5259 ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
5260
5261fi
5262
5263
5264 eval "$ac_cv_use_statusbar"
5265 if test "$no_cache" != 1; then
5266 echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
5267 fi
5268
5269 if test "$wxUSE_STATUSBAR" = yes; then
5270 echo "$ac_t""yes" 1>&6
5271 else
5272 echo "$ac_t""no" 1>&6
5273 fi
5274
5275
5276 echo $ac_n "checking "for --enable-tabdialog"""... $ac_c" 1>&6
0046ff7c 5277echo "configure:5278: checking "for --enable-tabdialog"" >&5
10f2d63a
VZ
5278 no_cache=0
5279 # Check whether --enable-tabdialog or --disable-tabdialog was given.
5280if test "${enable_tabdialog+set}" = set; then
5281 enableval="$enable_tabdialog"
5282
5283 if test "$enableval" = yes; then
5284 ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes'
5285 else
5286 ac_cv_use_tabdialog='wxUSE_TABDIALOG=no'
5287 fi
5288
5289else
5290
5291 LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}`
5292 if test "x$LINE" != x ; then
5293 eval "DEFAULT_$LINE"
5294 else
5295 no_cache=1
5296 fi
5297
5298 ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG
5299
5300fi
5301
5302
5303 eval "$ac_cv_use_tabdialog"
5304 if test "$no_cache" != 1; then
5305 echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
5306 fi
5307
5308 if test "$wxUSE_TABDIALOG" = yes; then
5309 echo "$ac_t""yes" 1>&6
5310 else
5311 echo "$ac_t""no" 1>&6
5312 fi
5313
5314
1db8dc4a 5315 echo $ac_n "checking "for --enable-togglebtn"""... $ac_c" 1>&6
0046ff7c 5316echo "configure:5317: checking "for --enable-togglebtn"" >&5
1db8dc4a
VZ
5317 no_cache=0
5318 # Check whether --enable-togglebtn or --disable-togglebtn was given.
5319if test "${enable_togglebtn+set}" = set; then
5320 enableval="$enable_togglebtn"
5321
5322 if test "$enableval" = yes; then
5323 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
5324 else
5325 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
5326 fi
5327
5328else
5329
5330 LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}`
5331 if test "x$LINE" != x ; then
5332 eval "DEFAULT_$LINE"
5333 else
5334 no_cache=1
5335 fi
5336
5337 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN
5338
5339fi
5340
5341
5342 eval "$ac_cv_use_togglebtn"
5343 if test "$no_cache" != 1; then
5344 echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp
5345 fi
5346
5347 if test "$wxUSE_TOGGLEBTN" = yes; then
5348 echo "$ac_t""yes" 1>&6
5349 else
5350 echo "$ac_t""no" 1>&6
5351 fi
5352
5353
10f2d63a 5354 echo $ac_n "checking "for --enable-toolbar"""... $ac_c" 1>&6
0046ff7c 5355echo "configure:5356: checking "for --enable-toolbar"" >&5
10f2d63a
VZ
5356 no_cache=0
5357 # Check whether --enable-toolbar or --disable-toolbar was given.
5358if test "${enable_toolbar+set}" = set; then
5359 enableval="$enable_toolbar"
5360
5361 if test "$enableval" = yes; then
5362 ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
5363 else
5364 ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
5365 fi
5366
5367else
5368
5369 LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
5370 if test "x$LINE" != x ; then
5371 eval "DEFAULT_$LINE"
5372 else
5373 no_cache=1
5374 fi
5375
5376 ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
5377
5378fi
5379
5380
5381 eval "$ac_cv_use_toolbar"
5382 if test "$no_cache" != 1; then
5383 echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
5384 fi
5385
5386 if test "$wxUSE_TOOLBAR" = yes; then
5387 echo "$ac_t""yes" 1>&6
5388 else
5389 echo "$ac_t""no" 1>&6
5390 fi
5391
5392
360d6699 5393 echo $ac_n "checking "for --enable-tbarnative"""... $ac_c" 1>&6
0046ff7c 5394echo "configure:5395: checking "for --enable-tbarnative"" >&5
360d6699
VZ
5395 no_cache=0
5396 # Check whether --enable-tbarnative or --disable-tbarnative was given.
5397if test "${enable_tbarnative+set}" = set; then
5398 enableval="$enable_tbarnative"
5399
5400 if test "$enableval" = yes; then
5401 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
5402 else
5403 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
5404 fi
5405
5406else
5407
5408 LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
5409 if test "x$LINE" != x ; then
5410 eval "DEFAULT_$LINE"
5411 else
5412 no_cache=1
5413 fi
5414
5415 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
5416
5417fi
5418
5419
5420 eval "$ac_cv_use_tbarnative"
5421 if test "$no_cache" != 1; then
5422 echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
5423 fi
5424
5425 if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
5426 echo "$ac_t""yes" 1>&6
5427 else
5428 echo "$ac_t""no" 1>&6
5429 fi
5430
5431
5432 echo $ac_n "checking "for --enable-tbarsmpl"""... $ac_c" 1>&6
0046ff7c 5433echo "configure:5434: checking "for --enable-tbarsmpl"" >&5
360d6699
VZ
5434 no_cache=0
5435 # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given.
5436if test "${enable_tbarsmpl+set}" = set; then
5437 enableval="$enable_tbarsmpl"
5438
5439 if test "$enableval" = yes; then
5440 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes'
5441 else
5442 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no'
5443 fi
5444
5445else
5446
5447 LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}`
5448 if test "x$LINE" != x ; then
5449 eval "DEFAULT_$LINE"
5450 else
5451 no_cache=1
5452 fi
5453
5454 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE
5455
5456fi
5457
5458
5459 eval "$ac_cv_use_tbarsmpl"
5460 if test "$no_cache" != 1; then
5461 echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp
5462 fi
5463
5464 if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then
5465 echo "$ac_t""yes" 1>&6
5466 else
5467 echo "$ac_t""no" 1>&6
5468 fi
5469
5470
10f2d63a 5471 echo $ac_n "checking "for --enable-treectrl"""... $ac_c" 1>&6
0046ff7c 5472echo "configure:5473: checking "for --enable-treectrl"" >&5
10f2d63a
VZ
5473 no_cache=0
5474 # Check whether --enable-treectrl or --disable-treectrl was given.
5475if test "${enable_treectrl+set}" = set; then
5476 enableval="$enable_treectrl"
5477
5478 if test "$enableval" = yes; then
5479 ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
5480 else
5481 ac_cv_use_treectrl='wxUSE_TREECTRL=no'
5482 fi
5483
5484else
5485
5486 LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
5487 if test "x$LINE" != x ; then
5488 eval "DEFAULT_$LINE"
5489 else
5490 no_cache=1
5491 fi
5492
5493 ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
5494
5495fi
5496
5497
5498 eval "$ac_cv_use_treectrl"
5499 if test "$no_cache" != 1; then
5500 echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
5501 fi
5502
5503 if test "$wxUSE_TREECTRL" = yes; then
5504 echo "$ac_t""yes" 1>&6
5505 else
5506 echo "$ac_t""no" 1>&6
5507 fi
5508
5509
5510
5511
5512 echo $ac_n "checking "for --enable-commondlg"""... $ac_c" 1>&6
0046ff7c 5513echo "configure:5514: checking "for --enable-commondlg"" >&5
10f2d63a
VZ
5514 no_cache=0
5515 # Check whether --enable-commondlg or --disable-commondlg was given.
5516if test "${enable_commondlg+set}" = set; then
5517 enableval="$enable_commondlg"
5518
5519 if test "$enableval" = yes; then
5520 ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
5521 else
5522 ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
5523 fi
5524
5525else
5526
5527 LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
5528 if test "x$LINE" != x ; then
5529 eval "DEFAULT_$LINE"
5530 else
5531 no_cache=1
5532 fi
5533
5534 ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
5535
5536fi
5537
5538
5539 eval "$ac_cv_use_commondlg"
5540 if test "$no_cache" != 1; then
5541 echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
5542 fi
5543
5544 if test "$wxUSE_COMMONDLGS" = yes; then
5545 echo "$ac_t""yes" 1>&6
5546 else
5547 echo "$ac_t""no" 1>&6
5548 fi
5549
5550
5551 echo $ac_n "checking "for --enable-dirdlg"""... $ac_c" 1>&6
0046ff7c 5552echo "configure:5553: checking "for --enable-dirdlg"" >&5
10f2d63a
VZ
5553 no_cache=0
5554 # Check whether --enable-dirdlg or --disable-dirdlg was given.
5555if test "${enable_dirdlg+set}" = set; then
5556 enableval="$enable_dirdlg"
5557
5558 if test "$enableval" = yes; then
5559 ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
5560 else
5561 ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
5562 fi
5563
5564else
5565
5566 LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
5567 if test "x$LINE" != x ; then
5568 eval "DEFAULT_$LINE"
5569 else
5570 no_cache=1
5571 fi
5572
5573 ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
5574
5575fi
5576
5577
5578 eval "$ac_cv_use_dirdlg"
5579 if test "$no_cache" != 1; then
5580 echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
5581 fi
5582
5583 if test "$wxUSE_DIRDLG" = yes; then
5584 echo "$ac_t""yes" 1>&6
5585 else
5586 echo "$ac_t""no" 1>&6
5587 fi
5588
5589
5590 echo $ac_n "checking "for --enable-textdlg"""... $ac_c" 1>&6
0046ff7c 5591echo "configure:5592: checking "for --enable-textdlg"" >&5
10f2d63a
VZ
5592 no_cache=0
5593 # Check whether --enable-textdlg or --disable-textdlg was given.
5594if test "${enable_textdlg+set}" = set; then
5595 enableval="$enable_textdlg"
5596
5597 if test "$enableval" = yes; then
5598 ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
5599 else
5600 ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
5601 fi
5602
5603else
5604
5605 LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
5606 if test "x$LINE" != x ; then
5607 eval "DEFAULT_$LINE"
5608 else
5609 no_cache=1
5610 fi
5611
5612 ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
5613
5614fi
5615
5616
5617 eval "$ac_cv_use_textdlg"
5618 if test "$no_cache" != 1; then
5619 echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
5620 fi
5621
5622 if test "$wxUSE_TEXTDLG" = yes; then
5623 echo "$ac_t""yes" 1>&6
5624 else
5625 echo "$ac_t""no" 1>&6
5626 fi
5627
5628
5629 echo $ac_n "checking "for --enable-tipdlg"""... $ac_c" 1>&6
0046ff7c 5630echo "configure:5631: checking "for --enable-tipdlg"" >&5
10f2d63a
VZ
5631 no_cache=0
5632 # Check whether --enable-tipdlg or --disable-tipdlg was given.
5633if test "${enable_tipdlg+set}" = set; then
5634 enableval="$enable_tipdlg"
5635
5636 if test "$enableval" = yes; then
5637 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
5638 else
5639 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
5640 fi
5641
5642else
5643
5644 LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
5645 if test "x$LINE" != x ; then
5646 eval "DEFAULT_$LINE"
5647 else
5648 no_cache=1
5649 fi
5650
5651 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
5652
5653fi
5654
5655
5656 eval "$ac_cv_use_tipdlg"
5657 if test "$no_cache" != 1; then
5658 echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
5659 fi
5660
5661 if test "$wxUSE_STARTUP_TIPS" = yes; then
5662 echo "$ac_t""yes" 1>&6
5663 else
5664 echo "$ac_t""no" 1>&6
5665 fi
5666
5667
5668 echo $ac_n "checking "for --enable-progressdlg"""... $ac_c" 1>&6
0046ff7c 5669echo "configure:5670: checking "for --enable-progressdlg"" >&5
10f2d63a
VZ
5670 no_cache=0
5671 # Check whether --enable-progressdlg or --disable-progressdlg was given.
5672if test "${enable_progressdlg+set}" = set; then
5673 enableval="$enable_progressdlg"
5674
5675 if test "$enableval" = yes; then
5676 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
5677 else
5678 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
5679 fi
5680
5681else
5682
5683 LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
5684 if test "x$LINE" != x ; then
5685 eval "DEFAULT_$LINE"
5686 else
5687 no_cache=1
5688 fi
5689
5690 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
5691
5692fi
5693
5694
5695 eval "$ac_cv_use_progressdlg"
5696 if test "$no_cache" != 1; then
5697 echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
5698 fi
5699
5700 if test "$wxUSE_PROGRESSDLG" = yes; then
5701 echo "$ac_t""yes" 1>&6
5702 else
5703 echo "$ac_t""no" 1>&6
5704 fi
5705
5706
5707 echo $ac_n "checking "for --enable-miniframe"""... $ac_c" 1>&6
0046ff7c 5708echo "configure:5709: checking "for --enable-miniframe"" >&5
10f2d63a
VZ
5709 no_cache=0
5710 # Check whether --enable-miniframe or --disable-miniframe was given.
5711if test "${enable_miniframe+set}" = set; then
5712 enableval="$enable_miniframe"
5713
5714 if test "$enableval" = yes; then
5715 ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
5716 else
5717 ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
5718 fi
5719
5720else
5721
5722 LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
5723 if test "x$LINE" != x ; then
5724 eval "DEFAULT_$LINE"
5725 else
5726 no_cache=1
5727 fi
5728
5729 ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
5730
5731fi
5732
5733
5734 eval "$ac_cv_use_miniframe"
5735 if test "$no_cache" != 1; then
5736 echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
5737 fi
5738
5739 if test "$wxUSE_MINIFRAME" = yes; then
5740 echo "$ac_t""yes" 1>&6
5741 else
5742 echo "$ac_t""no" 1>&6
5743 fi
5744
5745
5746 echo $ac_n "checking "for --enable-html"""... $ac_c" 1>&6
0046ff7c 5747echo "configure:5748: checking "for --enable-html"" >&5
10f2d63a
VZ
5748 no_cache=0
5749 # Check whether --enable-html or --disable-html was given.
5750if test "${enable_html+set}" = set; then
5751 enableval="$enable_html"
5752
5753 if test "$enableval" = yes; then
5754 ac_cv_use_html='wxUSE_HTML=yes'
5755 else
5756 ac_cv_use_html='wxUSE_HTML=no'
5757 fi
5758
5759else
5760
5761 LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
5762 if test "x$LINE" != x ; then
5763 eval "DEFAULT_$LINE"
5764 else
5765 no_cache=1
5766 fi
5767
5768 ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
5769
5770fi
5771
5772
5773 eval "$ac_cv_use_html"
5774 if test "$no_cache" != 1; then
5775 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
5776 fi
5777
5778 if test "$wxUSE_HTML" = yes; then
5779 echo "$ac_t""yes" 1>&6
5780 else
5781 echo "$ac_t""no" 1>&6
5782 fi
5783
5784
5785 echo $ac_n "checking "for --enable-tooltips"""... $ac_c" 1>&6
0046ff7c 5786echo "configure:5787: checking "for --enable-tooltips"" >&5
10f2d63a
VZ
5787 no_cache=0
5788 # Check whether --enable-tooltips or --disable-tooltips was given.
5789if test "${enable_tooltips+set}" = set; then
5790 enableval="$enable_tooltips"
5791
5792 if test "$enableval" = yes; then
5793 ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
5794 else
5795 ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
5796 fi
5797
5798else
5799
5800 LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
5801 if test "x$LINE" != x ; then
5802 eval "DEFAULT_$LINE"
5803 else
5804 no_cache=1
5805 fi
5806
5807 ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
5808
5809fi
5810
5811
5812 eval "$ac_cv_use_tooltips"
5813 if test "$no_cache" != 1; then
5814 echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
5815 fi
5816
5817 if test "$wxUSE_TOOLTIPS" = yes; then
5818 echo "$ac_t""yes" 1>&6
5819 else
5820 echo "$ac_t""no" 1>&6
5821 fi
5822
5823
5824 echo $ac_n "checking "for --enable-splines"""... $ac_c" 1>&6
0046ff7c 5825echo "configure:5826: checking "for --enable-splines"" >&5
10f2d63a
VZ
5826 no_cache=0
5827 # Check whether --enable-splines or --disable-splines was given.
5828if test "${enable_splines+set}" = set; then
5829 enableval="$enable_splines"
5830
5831 if test "$enableval" = yes; then
5832 ac_cv_use_splines='wxUSE_SPLINES=yes'
5833 else
5834 ac_cv_use_splines='wxUSE_SPLINES=no'
5835 fi
5836
5837else
5838
5839 LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
5840 if test "x$LINE" != x ; then
5841 eval "DEFAULT_$LINE"
5842 else
5843 no_cache=1
5844 fi
5845
5846 ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
5847
5848fi
5849
5850
5851 eval "$ac_cv_use_splines"
5852 if test "$no_cache" != 1; then
5853 echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
5854 fi
5855
5856 if test "$wxUSE_SPLINES" = yes; then
5857 echo "$ac_t""yes" 1>&6
5858 else
5859 echo "$ac_t""no" 1>&6
5860 fi
5861
5862
5863 echo $ac_n "checking "for --enable-validators"""... $ac_c" 1>&6
0046ff7c 5864echo "configure:5865: checking "for --enable-validators"" >&5
10f2d63a
VZ
5865 no_cache=0
5866 # Check whether --enable-validators or --disable-validators was given.
5867if test "${enable_validators+set}" = set; then
5868 enableval="$enable_validators"
5869
5870 if test "$enableval" = yes; then
5871 ac_cv_use_validators='wxUSE_VALIDATORS=yes'
5872 else
5873 ac_cv_use_validators='wxUSE_VALIDATORS=no'
5874 fi
5875
5876else
5877
5878 LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
5879 if test "x$LINE" != x ; then
5880 eval "DEFAULT_$LINE"
5881 else
5882 no_cache=1
5883 fi
5884
5885 ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
5886
5887fi
5888
5889
5890 eval "$ac_cv_use_validators"
5891 if test "$no_cache" != 1; then
5892 echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
5893 fi
5894
5895 if test "$wxUSE_VALIDATORS" = yes; then
5896 echo "$ac_t""yes" 1>&6
5897 else
5898 echo "$ac_t""no" 1>&6
5899 fi
5900
5901
5902 echo $ac_n "checking "for --enable-busyinfo"""... $ac_c" 1>&6
0046ff7c 5903echo "configure:5904: checking "for --enable-busyinfo"" >&5
10f2d63a
VZ
5904 no_cache=0
5905 # Check whether --enable-busyinfo or --disable-busyinfo was given.
5906if test "${enable_busyinfo+set}" = set; then
5907 enableval="$enable_busyinfo"
5908
5909 if test "$enableval" = yes; then
5910 ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
5911 else
5912 ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
5913 fi
5914
5915else
5916
5917 LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
5918 if test "x$LINE" != x ; then
5919 eval "DEFAULT_$LINE"
5920 else
5921 no_cache=1
5922 fi
5923
5924 ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
5925
5926fi
5927
5928
5929 eval "$ac_cv_use_busyinfo"
5930 if test "$no_cache" != 1; then
5931 echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
5932 fi
5933
5934 if test "$wxUSE_BUSYINFO" = yes; then
5935 echo "$ac_t""yes" 1>&6
5936 else
5937 echo "$ac_t""no" 1>&6
5938 fi
5939
5940
f6bcfd97 5941 echo $ac_n "checking "for --enable-joystick"""... $ac_c" 1>&6
0046ff7c 5942echo "configure:5943: checking "for --enable-joystick"" >&5
f6bcfd97
BP
5943 no_cache=0
5944 # Check whether --enable-joystick or --disable-joystick was given.
5945if test "${enable_joystick+set}" = set; then
5946 enableval="$enable_joystick"
5947
5948 if test "$enableval" = yes; then
5949 ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
5950 else
5951 ac_cv_use_joystick='wxUSE_JOYSTICK=no'
5952 fi
5953
5954else
5955
5956 LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
5957 if test "x$LINE" != x ; then
5958 eval "DEFAULT_$LINE"
5959 else
5960 no_cache=1
5961 fi
5962
5963 ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
5964
5965fi
5966
5967
5968 eval "$ac_cv_use_joystick"
5969 if test "$no_cache" != 1; then
5970 echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
5971 fi
5972
5973 if test "$wxUSE_JOYSTICK" = yes; then
5974 echo "$ac_t""yes" 1>&6
5975 else
5976 echo "$ac_t""no" 1>&6
5977 fi
5978
5979
10f2d63a
VZ
5980
5981
0046ff7c
VS
5982 echo $ac_n "checking "for --enable-image"""... $ac_c" 1>&6
5983echo "configure:5984: checking "for --enable-image"" >&5
5984 no_cache=0
5985 # Check whether --enable-image or --disable-image was given.
5986if test "${enable_image+set}" = set; then
5987 enableval="$enable_image"
5988
5989 if test "$enableval" = yes; then
5990 ac_cv_use_image='wxUSE_IMAGE=yes'
5991 else
5992 ac_cv_use_image='wxUSE_IMAGE=no'
5993 fi
5994
5995else
5996
5997 LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}`
5998 if test "x$LINE" != x ; then
5999 eval "DEFAULT_$LINE"
6000 else
6001 no_cache=1
6002 fi
6003
6004 ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE
6005
6006fi
6007
6008
6009 eval "$ac_cv_use_image"
6010 if test "$no_cache" != 1; then
6011 echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp
6012 fi
6013
6014 if test "$wxUSE_IMAGE" = yes; then
6015 echo "$ac_t""yes" 1>&6
6016 else
6017 echo "$ac_t""no" 1>&6
6018 fi
6019
6020
10f2d63a 6021 echo $ac_n "checking "for --enable-gif"""... $ac_c" 1>&6
0046ff7c 6022echo "configure:6023: checking "for --enable-gif"" >&5
10f2d63a
VZ
6023 no_cache=0
6024 # Check whether --enable-gif or --disable-gif was given.
6025if test "${enable_gif+set}" = set; then
6026 enableval="$enable_gif"
6027
6028 if test "$enableval" = yes; then
6029 ac_cv_use_gif='wxUSE_GIF=yes'
6030 else
6031 ac_cv_use_gif='wxUSE_GIF=no'
6032 fi
6033
6034else
6035
6036 LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
6037 if test "x$LINE" != x ; then
6038 eval "DEFAULT_$LINE"
6039 else
6040 no_cache=1
6041 fi
6042
6043 ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
6044
6045fi
6046
6047
6048 eval "$ac_cv_use_gif"
6049 if test "$no_cache" != 1; then
6050 echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
6051 fi
6052
6053 if test "$wxUSE_GIF" = yes; then
6054 echo "$ac_t""yes" 1>&6
6055 else
6056 echo "$ac_t""no" 1>&6
6057 fi
6058
6059
6060 echo $ac_n "checking "for --enable-pcx"""... $ac_c" 1>&6
0046ff7c 6061echo "configure:6062: checking "for --enable-pcx"" >&5
10f2d63a
VZ
6062 no_cache=0
6063 # Check whether --enable-pcx or --disable-pcx was given.
6064if test "${enable_pcx+set}" = set; then
6065 enableval="$enable_pcx"
6066
6067 if test "$enableval" = yes; then
6068 ac_cv_use_pcx='wxUSE_PCX=yes'
6069 else
6070 ac_cv_use_pcx='wxUSE_PCX=no'
6071 fi
6072
6073else
6074
6075 LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
6076 if test "x$LINE" != x ; then
6077 eval "DEFAULT_$LINE"
6078 else
6079 no_cache=1
6080 fi
6081
6082 ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
6083
6084fi
6085
6086
6087 eval "$ac_cv_use_pcx"
6088 if test "$no_cache" != 1; then
6089 echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
6090 fi
6091
6092 if test "$wxUSE_PCX" = yes; then
6093 echo "$ac_t""yes" 1>&6
6094 else
6095 echo "$ac_t""no" 1>&6
6096 fi
6097
6098
6099 echo $ac_n "checking "for --enable-pnm"""... $ac_c" 1>&6
0046ff7c 6100echo "configure:6101: checking "for --enable-pnm"" >&5
10f2d63a
VZ
6101 no_cache=0
6102 # Check whether --enable-pnm or --disable-pnm was given.
6103if test "${enable_pnm+set}" = set; then
6104 enableval="$enable_pnm"
6105
6106 if test "$enableval" = yes; then
6107 ac_cv_use_pnm='wxUSE_PNM=yes'
6108 else
6109 ac_cv_use_pnm='wxUSE_PNM=no'
6110 fi
6111
6112else
6113
6114 LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
6115 if test "x$LINE" != x ; then
6116 eval "DEFAULT_$LINE"
6117 else
6118 no_cache=1
6119 fi
6120
6121 ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
6122
6123fi
6124
6125
6126 eval "$ac_cv_use_pnm"
6127 if test "$no_cache" != 1; then
6128 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
6129 fi
6130
6131 if test "$wxUSE_PNM" = yes; then
6132 echo "$ac_t""yes" 1>&6
6133 else
6134 echo "$ac_t""no" 1>&6
6135 fi
6136
6137
0046ff7c
VS
6138 echo $ac_n "checking "for --enable-pnm"""... $ac_c" 1>&6
6139echo "configure:6140: checking "for --enable-pnm"" >&5
6140 no_cache=0
6141 # Check whether --enable-pnm or --disable-pnm was given.
6142if test "${enable_pnm+set}" = set; then
6143 enableval="$enable_pnm"
6144
6145 if test "$enableval" = yes; then
6146 ac_cv_use_pnm='wxUSE_XPM=yes'
6147 else
6148 ac_cv_use_pnm='wxUSE_XPM=no'
6149 fi
6150
6151else
6152
6153 LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}`
6154 if test "x$LINE" != x ; then
6155 eval "DEFAULT_$LINE"
6156 else
6157 no_cache=1
6158 fi
6159
6160 ac_cv_use_pnm='wxUSE_XPM='$DEFAULT_wxUSE_XPM
6161
6162fi
6163
6164
6165 eval "$ac_cv_use_pnm"
6166 if test "$no_cache" != 1; then
6167 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
6168 fi
6169
6170 if test "$wxUSE_XPM" = yes; then
6171 echo "$ac_t""yes" 1>&6
6172 else
6173 echo "$ac_t""no" 1>&6
6174 fi
6175
6176
b12915c1
VZ
6177fi
6178
10f2d63a
VZ
6179
6180 echo "saving argument cache $wx_arg_cache_file"
6181 mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
6182
6183
6184
6185echo $ac_n "checking for toolkit""... $ac_c" 1>&6
0046ff7c 6186echo "configure:6187: checking for toolkit" >&5
10f2d63a
VZ
6187
6188if test "$wxUSE_GUI" = "yes"; then
6189
b12915c1
VZ
6190if test "$USE_BEOS" = 1; then
6191 { echo "configure: error: BeOS GUI is not supported yet, use --disable-gui" 1>&2; exit 1; }
6192fi
6193
10f2d63a
VZ
6194if test "$TOOLKIT_GIVEN" = 1; then
6195 for toolkit in `echo $ALL_TOOLKITS`; do
6196 var=wxUSE_$toolkit
6197 eval "value=\$${var}"
6198 eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`"
6199 done
6200else
6201 for toolkit in `echo $ALL_TOOLKITS`; do
6202 if test "$has_toolkit_in_cache" != 1; then
6203 var=DEFAULT_DEFAULT_wxUSE_$toolkit
6204 else
6205 var=DEFAULT_wxUSE_$toolkit
6206 fi
6207 eval "wxUSE_$toolkit=\$${var}"
6208 done
6209fi
6210
b4085ce6 6211NUM_TOOLKITS=`expr ${wxUSE_GTK:-0} + ${wxUSE_MOTIF:-0} + ${wxUSE_MAC:-0} + ${wxUSE_WINE:-0} + ${wxUSE_MINGW:-0} + ${wxUSE_CYGWIN:-0}`
cf27ef00 6212
ec14dd32
VZ
6213case "${host}" in
6214 *-pc-os2_emx )
6215 NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
6216 # PATH_IFS is autodetected by OS/2's configure (usually ';')
6217 LEX_STEM="lexyy"
6218 ;;
6219 *)
6220 PATH_IFS=':'
6221 LEX_STEM="lex.yy"
6222 ;;
6223esac
10f2d63a
VZ
6224
6225case "$NUM_TOOLKITS" in
6226 1)
6227 ;;
6228 0)
6229 { echo "configure: error: Please specify a toolkit - cannot determine the default for ${host}" 1>&2; exit 1; }
6230 ;;
6231 *)
6232 { echo "configure: error: Please specify at most one toolkit (may be some are cached?)" 1>&2; exit 1; }
6233esac
6234
6235for toolkit in `echo $ALL_TOOLKITS`; do
6236 var=wxUSE_$toolkit
6237 eval "value=\$${var}"
6238 if test "x$value" != x; then
6239 cache_var=CACHE_$toolkit
6240 eval "cache=\$${cache_var}"
6241 if test "$cache" = 1; then
6242 echo "$var=$value" >> ${wx_arg_cache_file}
6243 fi
6244 if test "$value" = 1; then
6245 echo "$ac_t""`echo $toolkit | tr A-Z a-z`" 1>&6
6246 fi
6247 fi
6248done
6249
6250else
cf27ef00 6251 PATH_IFS=':'
10f2d63a
VZ
6252 echo "$ac_t""base only" 1>&6
6253fi
6254
6255
6256cat > confcache <<\EOF
6257# This file is a shell script that caches the results of configure
6258# tests run on this system so they can be shared between configure
6259# scripts and configure runs. It is not useful on other systems.
6260# If it contains results you don't want to keep, you may remove or edit it.
6261#
6262# By default, configure uses ./config.cache as the cache file,
6263# creating it if it does not exist already. You can give configure
6264# the --cache-file=FILE option to use a different cache file; that is
6265# what configure does when it calls configure scripts in
6266# subdirectories, so they share the cache.
6267# Giving --cache-file=/dev/null disables caching, for debugging configure.
6268# config.status only pays attention to the cache file if you give it the
6269# --recheck option to rerun configure.
6270#
6271EOF
6272# The following way of writing the cache mishandles newlines in values,
6273# but we know of no workaround that is simple, portable, and efficient.
6274# So, don't put newlines in cache variables' values.
6275# Ultrix sh set writes to stderr and can't be redirected directly,
6276# and sets the high bit in the cache file unless we assign to the vars.
6277(set) 2>&1 |
6278 case `(ac_space=' '; set | grep ac_space) 2>&1` in
6279 *ac_space=\ *)
6280 # `set' does not quote correctly, so add quotes (double-quote substitution
6281 # turns \\\\ into \\, and sed turns \\ into \).
6282 sed -n \
6283 -e "s/'/'\\\\''/g" \
6284 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
6285 ;;
6286 *)
6287 # `set' quotes correctly as required by POSIX, so do not add quotes.
6288 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
6289 ;;
6290 esac >> confcache
6291if cmp -s $cache_file confcache; then
6292 :
6293else
6294 if test -w $cache_file; then
6295 echo "updating cache $cache_file"
6296 cat confcache > $cache_file
6297 else
6298 echo "not updating unwritable cache $cache_file"
6299 fi
6300fi
6301rm -f confcache
6302
6303
e59890c3 6304if test "$build" != "$host" ; then
10f2d63a
VZ
6305 CC=$host_alias-gcc
6306 CXX=$host_alias-c++
6307 AR=$host_alias-ar
6308 RANLIB=$host_alias-ranlib
6309 DLLTOOL=$host_alias-dlltool
32832908 6310 RESCOMP=$host_alias-windres
10f2d63a
VZ
6311 LD=$host_alias-ld
6312 NM=$host_alias-nm
6313 STRIP=$host_alias-strip
10f2d63a
VZ
6314fi
6315
6316# Extract the first word of "gcc", so it can be a program name with args.
6317set dummy gcc; ac_word=$2
6318echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
0046ff7c 6319echo "configure:6320: checking for $ac_word" >&5
10f2d63a
VZ
6320if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
6321 echo $ac_n "(cached) $ac_c" 1>&6
6322else
6323 if test -n "$CC"; then
6324 ac_cv_prog_CC="$CC" # Let the user override the test.
6325else
6326 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6327 ac_dummy="$PATH"
6328 for ac_dir in $ac_dummy; do
6329 test -z "$ac_dir" && ac_dir=.
6330 if test -f $ac_dir/$ac_word; then
6331 ac_cv_prog_CC="gcc"
6332 break
6333 fi
6334 done
6335 IFS="$ac_save_ifs"
6336fi
6337fi
6338CC="$ac_cv_prog_CC"
6339if test -n "$CC"; then
6340 echo "$ac_t""$CC" 1>&6
6341else
6342 echo "$ac_t""no" 1>&6
6343fi
6344
6345if test -z "$CC"; then
6346 # Extract the first word of "cc", so it can be a program name with args.
6347set dummy cc; ac_word=$2
6348echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
0046ff7c 6349echo "configure:6350: checking for $ac_word" >&5
10f2d63a
VZ
6350if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
6351 echo $ac_n "(cached) $ac_c" 1>&6
6352else
6353 if test -n "$CC"; then
6354 ac_cv_prog_CC="$CC" # Let the user override the test.
6355else
6356 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6357 ac_prog_rejected=no
6358 ac_dummy="$PATH"
6359 for ac_dir in $ac_dummy; do
6360 test -z "$ac_dir" && ac_dir=.
6361 if test -f $ac_dir/$ac_word; then
6362 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
6363 ac_prog_rejected=yes
6364 continue
6365 fi
6366 ac_cv_prog_CC="cc"
6367 break
6368 fi
6369 done
6370 IFS="$ac_save_ifs"
6371if test $ac_prog_rejected = yes; then
6372 # We found a bogon in the path, so make sure we never use it.
6373 set dummy $ac_cv_prog_CC
6374 shift
6375 if test $# -gt 0; then
6376 # We chose a different compiler from the bogus one.
6377 # However, it has the same basename, so the bogon will be chosen
6378 # first if we set CC to just the basename; use the full file name.
6379 shift
6380 set dummy "$ac_dir/$ac_word" "$@"
6381 shift
6382 ac_cv_prog_CC="$@"
6383 fi
6384fi
6385fi
6386fi
6387CC="$ac_cv_prog_CC"
6388if test -n "$CC"; then
6389 echo "$ac_t""$CC" 1>&6
6390else
6391 echo "$ac_t""no" 1>&6
6392fi
6393
6394 if test -z "$CC"; then
6395 case "`uname -s`" in
6396 *win32* | *WIN32*)
6397 # Extract the first word of "cl", so it can be a program name with args.
6398set dummy cl; ac_word=$2
6399echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
0046ff7c 6400echo "configure:6401: checking for $ac_word" >&5
10f2d63a
VZ
6401if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
6402 echo $ac_n "(cached) $ac_c" 1>&6
6403else
6404 if test -n "$CC"; then
6405 ac_cv_prog_CC="$CC" # Let the user override the test.
6406else
6407 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6408 ac_dummy="$PATH"
6409 for ac_dir in $ac_dummy; do
6410 test -z "$ac_dir" && ac_dir=.
6411 if test -f $ac_dir/$ac_word; then
6412 ac_cv_prog_CC="cl"
6413 break
6414 fi
6415 done
6416 IFS="$ac_save_ifs"
6417fi
6418fi
6419CC="$ac_cv_prog_CC"
6420if test -n "$CC"; then
6421 echo "$ac_t""$CC" 1>&6
6422else
6423 echo "$ac_t""no" 1>&6
6424fi
6425 ;;
6426 esac
6427 fi
6428 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
6429fi
6430
6431echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
0046ff7c 6432echo "configure:6433: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
10f2d63a
VZ
6433
6434ac_ext=c
6435# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6436ac_cpp='$CPP $CPPFLAGS'
6437ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6438ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6439cross_compiling=$ac_cv_prog_cc_cross
6440
6441cat > conftest.$ac_ext << EOF
6442
0046ff7c 6443#line 6444 "configure"
10f2d63a
VZ
6444#include "confdefs.h"
6445
6446main(){return(0);}
6447EOF
0046ff7c 6448if { (eval echo configure:6449: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
6449 ac_cv_prog_cc_works=yes
6450 # If we can't run a trivial program, we are probably using a cross compiler.
6451 if (./conftest; exit) 2>/dev/null; then
6452 ac_cv_prog_cc_cross=no
6453 else
6454 ac_cv_prog_cc_cross=yes
6455 fi
6456else
6457 echo "configure: failed program was:" >&5
6458 cat conftest.$ac_ext >&5
6459 ac_cv_prog_cc_works=no
6460fi
6461rm -fr conftest*
6462ac_ext=c
6463# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6464ac_cpp='$CPP $CPPFLAGS'
6465ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6466ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6467cross_compiling=$ac_cv_prog_cc_cross
6468
6469echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
6470if test $ac_cv_prog_cc_works = no; then
6471 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
6472fi
6473echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
0046ff7c 6474echo "configure:6475: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
10f2d63a
VZ
6475echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
6476cross_compiling=$ac_cv_prog_cc_cross
6477
6478echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
0046ff7c 6479echo "configure:6480: checking whether we are using GNU C" >&5
10f2d63a
VZ
6480if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
6481 echo $ac_n "(cached) $ac_c" 1>&6
6482else
6483 cat > conftest.c <<EOF
6484#ifdef __GNUC__
6485 yes;
6486#endif
6487EOF
0046ff7c 6488if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:6489: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
10f2d63a
VZ
6489 ac_cv_prog_gcc=yes
6490else
6491 ac_cv_prog_gcc=no
6492fi
6493fi
6494
6495echo "$ac_t""$ac_cv_prog_gcc" 1>&6
6496
6497if test $ac_cv_prog_gcc = yes; then
6498 GCC=yes
6499else
6500 GCC=
6501fi
6502
6503ac_test_CFLAGS="${CFLAGS+set}"
6504ac_save_CFLAGS="$CFLAGS"
6505CFLAGS=
6506echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
0046ff7c 6507echo "configure:6508: checking whether ${CC-cc} accepts -g" >&5
10f2d63a
VZ
6508if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
6509 echo $ac_n "(cached) $ac_c" 1>&6
6510else
6511 echo 'void f(){}' > conftest.c
6512if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
6513 ac_cv_prog_cc_g=yes
6514else
6515 ac_cv_prog_cc_g=no
6516fi
6517rm -f conftest*
6518
6519fi
6520
6521echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
6522if test "$ac_test_CFLAGS" = set; then
6523 CFLAGS="$ac_save_CFLAGS"
6524elif test $ac_cv_prog_cc_g = yes; then
6525 if test "$GCC" = yes; then
6526 CFLAGS="-g -O2"
6527 else
6528 CFLAGS="-g"
6529 fi
6530else
6531 if test "$GCC" = yes; then
6532 CFLAGS="-O2"
6533 else
6534 CFLAGS=
6535 fi
6536fi
6537
6538
6539CFLAGS=`echo "$CFLAGS" | sed 's/-g//g'`
6540
6541echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
0046ff7c 6542echo "configure:6543: checking how to run the C preprocessor" >&5
10f2d63a
VZ
6543# On Suns, sometimes $CPP names a directory.
6544if test -n "$CPP" && test -d "$CPP"; then
6545 CPP=
6546fi
6547if test -z "$CPP"; then
6548if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
6549 echo $ac_n "(cached) $ac_c" 1>&6
6550else
6551 # This must be in double quotes, not single quotes, because CPP may get
6552 # substituted into the Makefile and "${CC-cc}" will confuse make.
6553 CPP="${CC-cc} -E"
6554 # On the NeXT, cc -E runs the code through the compiler's parser,
6555 # not just through cpp.
6556 cat > conftest.$ac_ext <<EOF
0046ff7c 6557#line 6558 "configure"
10f2d63a
VZ
6558#include "confdefs.h"
6559#include <assert.h>
6560Syntax Error
6561EOF
6562ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
0046ff7c 6563{ (eval echo configure:6564: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
6564ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6565if test -z "$ac_err"; then
6566 :
6567else
6568 echo "$ac_err" >&5
6569 echo "configure: failed program was:" >&5
6570 cat conftest.$ac_ext >&5
6571 rm -rf conftest*
6572 CPP="${CC-cc} -E -traditional-cpp"
6573 cat > conftest.$ac_ext <<EOF
0046ff7c 6574#line 6575 "configure"
10f2d63a
VZ
6575#include "confdefs.h"
6576#include <assert.h>
6577Syntax Error
6578EOF
6579ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
0046ff7c 6580{ (eval echo configure:6581: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
6581ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6582if test -z "$ac_err"; then
6583 :
6584else
6585 echo "$ac_err" >&5
6586 echo "configure: failed program was:" >&5
6587 cat conftest.$ac_ext >&5
6588 rm -rf conftest*
6589 CPP="${CC-cc} -nologo -E"
6590 cat > conftest.$ac_ext <<EOF
0046ff7c 6591#line 6592 "configure"
10f2d63a
VZ
6592#include "confdefs.h"
6593#include <assert.h>
6594Syntax Error
6595EOF
6596ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
0046ff7c 6597{ (eval echo configure:6598: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
6598ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6599if test -z "$ac_err"; then
6600 :
6601else
6602 echo "$ac_err" >&5
6603 echo "configure: failed program was:" >&5
6604 cat conftest.$ac_ext >&5
6605 rm -rf conftest*
6606 CPP=/lib/cpp
6607fi
6608rm -f conftest*
6609fi
6610rm -f conftest*
6611fi
6612rm -f conftest*
6613 ac_cv_prog_CPP="$CPP"
6614fi
6615 CPP="$ac_cv_prog_CPP"
6616else
6617 ac_cv_prog_CPP="$CPP"
6618fi
6619echo "$ac_t""$CPP" 1>&6
6620
6621
6622if test $ac_cv_prog_gcc = yes; then
6623 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
0046ff7c 6624echo "configure:6625: checking whether ${CC-cc} needs -traditional" >&5
10f2d63a
VZ
6625if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
6626 echo $ac_n "(cached) $ac_c" 1>&6
6627else
6628 ac_pattern="Autoconf.*'x'"
6629 cat > conftest.$ac_ext <<EOF
0046ff7c 6630#line 6631 "configure"
10f2d63a
VZ
6631#include "confdefs.h"
6632#include <sgtty.h>
6633Autoconf TIOCGETP
6634EOF
6635if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6636 egrep "$ac_pattern" >/dev/null 2>&1; then
6637 rm -rf conftest*
6638 ac_cv_prog_gcc_traditional=yes
6639else
6640 rm -rf conftest*
6641 ac_cv_prog_gcc_traditional=no
6642fi
6643rm -f conftest*
6644
6645
6646 if test $ac_cv_prog_gcc_traditional = no; then
6647 cat > conftest.$ac_ext <<EOF
0046ff7c 6648#line 6649 "configure"
10f2d63a
VZ
6649#include "confdefs.h"
6650#include <termio.h>
6651Autoconf TCGETA
6652EOF
6653if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6654 egrep "$ac_pattern" >/dev/null 2>&1; then
6655 rm -rf conftest*
6656 ac_cv_prog_gcc_traditional=yes
6657fi
6658rm -f conftest*
6659
6660 fi
6661fi
6662
6663echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
6664 if test $ac_cv_prog_gcc_traditional = yes; then
6665 CC="$CC -traditional"
6666 fi
6667fi
6668
6669
6670
6671ac_ext=C
6672# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6673ac_cpp='$CXXCPP $CPPFLAGS'
6674ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6675ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6676cross_compiling=$ac_cv_prog_cxx_cross
6677
6678
6679for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
6680do
6681# Extract the first word of "$ac_prog", so it can be a program name with args.
6682set dummy $ac_prog; ac_word=$2
6683echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
0046ff7c 6684echo "configure:6685: checking for $ac_word" >&5
10f2d63a
VZ
6685if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
6686 echo $ac_n "(cached) $ac_c" 1>&6
6687else
6688 if test -n "$CXX"; then
6689 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6690else
6691 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6692 ac_dummy="$PATH"
6693 for ac_dir in $ac_dummy; do
6694 test -z "$ac_dir" && ac_dir=.
6695 if test -f $ac_dir/$ac_word; then
6696 ac_cv_prog_CXX="$ac_prog"
6697 break
6698 fi
6699 done
6700 IFS="$ac_save_ifs"
6701fi
6702fi
6703CXX="$ac_cv_prog_CXX"
6704if test -n "$CXX"; then
6705 echo "$ac_t""$CXX" 1>&6
6706else
6707 echo "$ac_t""no" 1>&6
6708fi
6709
6710test -n "$CXX" && break
6711done
6712test -n "$CXX" || CXX="gcc"
6713
6714
6715echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
0046ff7c 6716echo "configure:6717: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
10f2d63a
VZ
6717
6718ac_ext=C
6719# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6720ac_cpp='$CXXCPP $CPPFLAGS'
6721ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6722ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6723cross_compiling=$ac_cv_prog_cxx_cross
6724
6725cat > conftest.$ac_ext << EOF
6726
0046ff7c 6727#line 6728 "configure"
10f2d63a
VZ
6728#include "confdefs.h"
6729
6730int main(){return(0);}
6731EOF
0046ff7c 6732if { (eval echo configure:6733: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
6733 ac_cv_prog_cxx_works=yes
6734 # If we can't run a trivial program, we are probably using a cross compiler.
6735 if (./conftest; exit) 2>/dev/null; then
6736 ac_cv_prog_cxx_cross=no
6737 else
6738 ac_cv_prog_cxx_cross=yes
6739 fi
6740else
6741 echo "configure: failed program was:" >&5
6742 cat conftest.$ac_ext >&5
6743 ac_cv_prog_cxx_works=no
6744fi
6745rm -fr conftest*
6746ac_ext=C
6747# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6748ac_cpp='$CXXCPP $CPPFLAGS'
6749ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6750ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6751cross_compiling=$ac_cv_prog_cxx_cross
6752
6753echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
6754if test $ac_cv_prog_cxx_works = no; then
6755 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
6756fi
6757echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
0046ff7c 6758echo "configure:6759: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
10f2d63a
VZ
6759echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
6760cross_compiling=$ac_cv_prog_cxx_cross
6761
6762echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
0046ff7c 6763echo "configure:6764: checking whether we are using GNU C++" >&5
10f2d63a
VZ
6764if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
6765 echo $ac_n "(cached) $ac_c" 1>&6
6766else
6767 cat > conftest.C <<EOF
6768#ifdef __GNUC__
6769 yes;
6770#endif
6771EOF
0046ff7c 6772if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:6773: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
10f2d63a
VZ
6773 ac_cv_prog_gxx=yes
6774else
6775 ac_cv_prog_gxx=no
6776fi
6777fi
6778
6779echo "$ac_t""$ac_cv_prog_gxx" 1>&6
6780
6781if test $ac_cv_prog_gxx = yes; then
6782 GXX=yes
6783else
6784 GXX=
6785fi
6786
6787ac_test_CXXFLAGS="${CXXFLAGS+set}"
6788ac_save_CXXFLAGS="$CXXFLAGS"
6789CXXFLAGS=
6790echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
0046ff7c 6791echo "configure:6792: checking whether ${CXX-g++} accepts -g" >&5
10f2d63a
VZ
6792if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
6793 echo $ac_n "(cached) $ac_c" 1>&6
6794else
6795 echo 'void f(){}' > conftest.cc
6796if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
6797 ac_cv_prog_cxx_g=yes
6798else
6799 ac_cv_prog_cxx_g=no
6800fi
6801rm -f conftest*
6802
6803fi
6804
6805echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
6806if test "$ac_test_CXXFLAGS" = set; then
6807 CXXFLAGS="$ac_save_CXXFLAGS"
6808elif test $ac_cv_prog_cxx_g = yes; then
6809 if test "$GXX" = yes; then
6810 CXXFLAGS="-g -O2"
6811 else
6812 CXXFLAGS="-g"
6813 fi
6814else
6815 if test "$GXX" = yes; then
6816 CXXFLAGS="-O2"
6817 else
6818 CXXFLAGS=
6819 fi
6820fi
6821
6822
6823echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
0046ff7c 6824echo "configure:6825: checking how to run the C++ preprocessor" >&5
10f2d63a
VZ
6825if test -z "$CXXCPP"; then
6826if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
6827 echo $ac_n "(cached) $ac_c" 1>&6
6828else
6829 ac_ext=C
6830# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6831ac_cpp='$CXXCPP $CPPFLAGS'
6832ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6833ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6834cross_compiling=$ac_cv_prog_cxx_cross
6835 CXXCPP="${CXX-g++} -E"
6836 cat > conftest.$ac_ext <<EOF
0046ff7c 6837#line 6838 "configure"
10f2d63a
VZ
6838#include "confdefs.h"
6839#include <stdlib.h>
6840EOF
6841ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
0046ff7c 6842{ (eval echo configure:6843: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
6843ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6844if test -z "$ac_err"; then
6845 :
6846else
6847 echo "$ac_err" >&5
6848 echo "configure: failed program was:" >&5
6849 cat conftest.$ac_ext >&5
6850 rm -rf conftest*
6851 CXXCPP=/lib/cpp
6852fi
6853rm -f conftest*
6854 ac_cv_prog_CXXCPP="$CXXCPP"
6855ac_ext=C
6856# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6857ac_cpp='$CXXCPP $CPPFLAGS'
6858ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6859ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6860cross_compiling=$ac_cv_prog_cxx_cross
6861fi
6862fi
6863CXXCPP="$ac_cv_prog_CXXCPP"
6864echo "$ac_t""$CXXCPP" 1>&6
6865
6866
6867CXXFLAGS=`echo "$CXXFLAGS" | sed 's/-g//g'`
6868
6869ac_ext=c
6870# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6871ac_cpp='$CPP $CPPFLAGS'
6872ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6873ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6874cross_compiling=$ac_cv_prog_cc_cross
6875
6876
6877# Extract the first word of "ranlib", so it can be a program name with args.
6878set dummy ranlib; ac_word=$2
6879echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
0046ff7c 6880echo "configure:6881: checking for $ac_word" >&5
10f2d63a
VZ
6881if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
6882 echo $ac_n "(cached) $ac_c" 1>&6
6883else
6884 if test -n "$RANLIB"; then
6885 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6886else
6887 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6888 ac_dummy="$PATH"
6889 for ac_dir in $ac_dummy; do
6890 test -z "$ac_dir" && ac_dir=.
6891 if test -f $ac_dir/$ac_word; then
6892 ac_cv_prog_RANLIB="ranlib"
6893 break
6894 fi
6895 done
6896 IFS="$ac_save_ifs"
6897 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
6898fi
6899fi
6900RANLIB="$ac_cv_prog_RANLIB"
6901if test -n "$RANLIB"; then
6902 echo "$ac_t""$RANLIB" 1>&6
6903else
6904 echo "$ac_t""no" 1>&6
6905fi
6906
6907
6908# Extract the first word of "ar", so it can be a program name with args.
6909set dummy ar; ac_word=$2
6910echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
0046ff7c 6911echo "configure:6912: checking for $ac_word" >&5
10f2d63a
VZ
6912if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
6913 echo $ac_n "(cached) $ac_c" 1>&6
6914else
6915 if test -n "$AR"; then
6916 ac_cv_prog_AR="$AR" # Let the user override the test.
6917else
6918 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6919 ac_dummy="$PATH"
6920 for ac_dir in $ac_dummy; do
6921 test -z "$ac_dir" && ac_dir=.
6922 if test -f $ac_dir/$ac_word; then
6923 ac_cv_prog_AR="ar"
6924 break
6925 fi
6926 done
6927 IFS="$ac_save_ifs"
6928 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
6929fi
6930fi
6931AR="$ac_cv_prog_AR"
6932if test -n "$AR"; then
6933 echo "$ac_t""$AR" 1>&6
6934else
6935 echo "$ac_t""no" 1>&6
6936fi
6937
6938
6939# Find a good install program. We prefer a C program (faster),
6940# so one script is as good as another. But avoid the broken or
6941# incompatible versions:
6942# SysV /etc/install, /usr/sbin/install
6943# SunOS /usr/etc/install
6944# IRIX /sbin/install
6945# AIX /bin/install
6946# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6947# AFS /usr/afsws/bin/install, which mishandles nonexistent args
6948# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6949# ./install, which can be erroneously created by make from ./install.sh.
6950echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
0046ff7c 6951echo "configure:6952: checking for a BSD compatible install" >&5
10f2d63a
VZ
6952if test -z "$INSTALL"; then
6953if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
6954 echo $ac_n "(cached) $ac_c" 1>&6
6955else
6956 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
6957 for ac_dir in $PATH; do
6958 # Account for people who put trailing slashes in PATH elements.
6959 case "$ac_dir/" in
6960 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
6961 *)
6962 # OSF1 and SCO ODT 3.0 have their own names for install.
6963 # Don't use installbsd from OSF since it installs stuff as root
6964 # by default.
6965 for ac_prog in ginstall scoinst install; do
6966 if test -f $ac_dir/$ac_prog; then
6967 if test $ac_prog = install &&
6968 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
6969 # AIX install. It has an incompatible calling convention.
6970 :
6971 else
6972 ac_cv_path_install="$ac_dir/$ac_prog -c"
6973 break 2
6974 fi
6975 fi
6976 done
6977 ;;
6978 esac
6979 done
6980 IFS="$ac_save_IFS"
6981
6982fi
6983 if test "${ac_cv_path_install+set}" = set; then
6984 INSTALL="$ac_cv_path_install"
6985 else
6986 # As a last resort, use the slow shell script. We don't cache a
6987 # path for INSTALL within a source directory, because that will
6988 # break other packages using the cache if that directory is
6989 # removed, or if the path is relative.
6990 INSTALL="$ac_install_sh"
6991 fi
6992fi
6993echo "$ac_t""$INSTALL" 1>&6
6994
6995# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6996# It thinks the first close brace ends the variable substitution.
6997test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6998
6999test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
7000
7001test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7002
7003
7004# Extract the first word of "strip", so it can be a program name with args.
7005set dummy strip; ac_word=$2
7006echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
0046ff7c 7007echo "configure:7008: checking for $ac_word" >&5
10f2d63a
VZ
7008if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
7009 echo $ac_n "(cached) $ac_c" 1>&6
7010else
7011 if test -n "$STRIP"; then
7012 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7013else
7014 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7015 ac_dummy="$PATH"
7016 for ac_dir in $ac_dummy; do
7017 test -z "$ac_dir" && ac_dir=.
7018 if test -f $ac_dir/$ac_word; then
7019 ac_cv_prog_STRIP="strip"
7020 break
7021 fi
7022 done
7023 IFS="$ac_save_ifs"
7024 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true"
7025fi
7026fi
7027STRIP="$ac_cv_prog_STRIP"
7028if test -n "$STRIP"; then
7029 echo "$ac_t""$STRIP" 1>&6
7030else
7031 echo "$ac_t""no" 1>&6
7032fi
7033
7034
7035echo $ac_n "checking "make for VPATH support"""... $ac_c" 1>&6
0046ff7c 7036echo "configure:7037: checking "make for VPATH support"" >&5
10f2d63a
VZ
7037cat - << EOF > confMake
7038check : file
7039 cp \$? \$@
7040 cp \$? final_file
7041EOF
7042
7043if test ! -d sub ; then
7044 mkdir sub
7045fi
7046echo dummy > sub/file
f6bcfd97 7047${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
10f2d63a
VZ
7048RESULT=$?
7049rm -f sub/file check final_file confMake
7050rmdir sub
7051if test "$RESULT" = 0; then
7052 echo "$ac_t""yes" 1>&6
7053else
7054 echo "$ac_t""no" 1>&6
7055 { echo "configure: error: You need a make-utility that is able to use the variable
7056VPATH correctly.
7057If your version of make does not support VPATH correctly" 1>&2; exit 1; }
7058fi
7059
7060for ac_prog in 'bison -y' byacc
7061do
7062# Extract the first word of "$ac_prog", so it can be a program name with args.
7063set dummy $ac_prog; ac_word=$2
7064echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
0046ff7c 7065echo "configure:7066: checking for $ac_word" >&5
10f2d63a
VZ
7066if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
7067 echo $ac_n "(cached) $ac_c" 1>&6
7068else
7069 if test -n "$YACC"; then
7070 ac_cv_prog_YACC="$YACC" # Let the user override the test.
7071else
7072 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7073 ac_dummy="$PATH"
7074 for ac_dir in $ac_dummy; do
7075 test -z "$ac_dir" && ac_dir=.
7076 if test -f $ac_dir/$ac_word; then
7077 ac_cv_prog_YACC="$ac_prog"
7078 break
7079 fi
7080 done
7081 IFS="$ac_save_ifs"
7082fi
7083fi
7084YACC="$ac_cv_prog_YACC"
7085if test -n "$YACC"; then
7086 echo "$ac_t""$YACC" 1>&6
7087else
7088 echo "$ac_t""no" 1>&6
7089fi
7090
7091test -n "$YACC" && break
7092done
7093test -n "$YACC" || YACC="yacc"
7094
7095
7096# Extract the first word of "flex", so it can be a program name with args.
7097set dummy flex; ac_word=$2
7098echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
0046ff7c 7099echo "configure:7100: checking for $ac_word" >&5
10f2d63a
VZ
7100if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
7101 echo $ac_n "(cached) $ac_c" 1>&6
7102else
7103 if test -n "$LEX"; then
7104 ac_cv_prog_LEX="$LEX" # Let the user override the test.
7105else
7106 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7107 ac_dummy="$PATH"
7108 for ac_dir in $ac_dummy; do
7109 test -z "$ac_dir" && ac_dir=.
7110 if test -f $ac_dir/$ac_word; then
7111 ac_cv_prog_LEX="flex"
7112 break
7113 fi
7114 done
7115 IFS="$ac_save_ifs"
7116 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
7117fi
7118fi
7119LEX="$ac_cv_prog_LEX"
7120if test -n "$LEX"; then
7121 echo "$ac_t""$LEX" 1>&6
7122else
7123 echo "$ac_t""no" 1>&6
7124fi
7125
7126if test -z "$LEXLIB"
7127then
7128 case "$LEX" in
7129 flex*) ac_lib=fl ;;
7130 *) ac_lib=l ;;
7131 esac
7132 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
0046ff7c 7133echo "configure:7134: checking for yywrap in -l$ac_lib" >&5
10f2d63a
VZ
7134ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
7135if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7136 echo $ac_n "(cached) $ac_c" 1>&6
7137else
7138 ac_save_LIBS="$LIBS"
7139LIBS="-l$ac_lib $LIBS"
7140cat > conftest.$ac_ext <<EOF
0046ff7c 7141#line 7142 "configure"
10f2d63a
VZ
7142#include "confdefs.h"
7143/* Override any gcc2 internal prototype to avoid an error. */
7144/* We use char because int might match the return type of a gcc2
7145 builtin and then its argument prototype would still apply. */
7146char yywrap();
7147
7148int main() {
7149yywrap()
7150; return 0; }
7151EOF
0046ff7c 7152if { (eval echo configure:7153: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
7153 rm -rf conftest*
7154 eval "ac_cv_lib_$ac_lib_var=yes"
7155else
7156 echo "configure: failed program was:" >&5
7157 cat conftest.$ac_ext >&5
7158 rm -rf conftest*
7159 eval "ac_cv_lib_$ac_lib_var=no"
7160fi
7161rm -f conftest*
7162LIBS="$ac_save_LIBS"
7163
7164fi
7165if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7166 echo "$ac_t""yes" 1>&6
7167 LEXLIB="-l$ac_lib"
7168else
7169 echo "$ac_t""no" 1>&6
7170fi
7171
7172fi
7173
7174
7175echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
0046ff7c 7176echo "configure:7177: checking whether ln -s works" >&5
10f2d63a
VZ
7177if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
7178 echo $ac_n "(cached) $ac_c" 1>&6
7179else
7180 rm -f conftestdata
7181if ln -s X conftestdata 2>/dev/null
7182then
7183 rm -f conftestdata
7184 ac_cv_prog_LN_S="ln -s"
7185else
7186 ac_cv_prog_LN_S=ln
7187fi
7188fi
7189LN_S="$ac_cv_prog_LN_S"
7190if test "$ac_cv_prog_LN_S" = "ln -s"; then
7191 echo "$ac_t""yes" 1>&6
7192else
7193 echo "$ac_t""no" 1>&6
7194fi
7195
7196
7197
7198SEARCH_INCLUDE="\
7199 /usr/local/include \
7200 \
7201 /usr/Motif-1.2/include \
7202 /usr/Motif-2.1/include \
7203 \
7204 /usr/include/Motif1.2 \
7205 /opt/xpm/include/X11 \
7206 /opt/GBxpm/include/ \
7207 /opt/GBxpm/X11/include/ \
7208 \
7209 /usr/Motif1.2/include \
7210 /usr/dt/include \
afc31813
VZ
7211 /usr/openwin/include \
7212 \
10f2d63a
VZ
7213 /usr/include/Xm \
7214 \
7215 /usr/X11R6/include \
afc31813 7216 /usr/X11R6.4/include \
10f2d63a
VZ
7217 /usr/X11R5/include \
7218 /usr/X11R4/include \
7219 \
10f2d63a
VZ
7220 /usr/include/X11R6 \
7221 /usr/include/X11R5 \
7222 /usr/include/X11R4 \
7223 \
7224 /usr/local/X11R6/include \
7225 /usr/local/X11R5/include \
7226 /usr/local/X11R4/include \
7227 \
7228 /usr/local/include/X11R6 \
7229 /usr/local/include/X11R5 \
7230 /usr/local/include/X11R4 \
7231 \
7232 /usr/X11/include \
7233 /usr/include/X11 \
7234 /usr/local/X11/include \
7235 /usr/local/include/X11 \
7236 \
7237 /usr/X386/include \
7238 /usr/x386/include \
7239 /usr/XFree86/include/X11 \
7240 \
cf27ef00 7241 X:/XFree86/include \
ec14dd32
VZ
7242 X:/XFree86/include/X11 \
7243 \
10f2d63a
VZ
7244 /usr/include/gtk \
7245 /usr/local/include/gtk \
7246 /usr/include/glib \
7247 /usr/local/include/glib \
7248 \
7249 /usr/include/qt \
7250 /usr/local/include/qt \
7251 \
7252 /usr/include/windows \
7253 /usr/include/wine \
7254 /usr/local/include/wine \
7255 \
7256 /usr/unsupported/include \
7257 /usr/athena/include \
7258 /usr/local/x11r5/include \
7259 /usr/lpp/Xamples/include \
7260 \
10f2d63a 7261 /usr/openwin/share/include \
928b5c08
VZ
7262 \
7263 /usr/include"
10f2d63a
VZ
7264
7265SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s/include/lib/g` "
7266
7267
7268cat > confcache <<\EOF
7269# This file is a shell script that caches the results of configure
7270# tests run on this system so they can be shared between configure
7271# scripts and configure runs. It is not useful on other systems.
7272# If it contains results you don't want to keep, you may remove or edit it.
7273#
7274# By default, configure uses ./config.cache as the cache file,
7275# creating it if it does not exist already. You can give configure
7276# the --cache-file=FILE option to use a different cache file; that is
7277# what configure does when it calls configure scripts in
7278# subdirectories, so they share the cache.
7279# Giving --cache-file=/dev/null disables caching, for debugging configure.
7280# config.status only pays attention to the cache file if you give it the
7281# --recheck option to rerun configure.
7282#
7283EOF
7284# The following way of writing the cache mishandles newlines in values,
7285# but we know of no workaround that is simple, portable, and efficient.
7286# So, don't put newlines in cache variables' values.
7287# Ultrix sh set writes to stderr and can't be redirected directly,
7288# and sets the high bit in the cache file unless we assign to the vars.
7289(set) 2>&1 |
7290 case `(ac_space=' '; set | grep ac_space) 2>&1` in
7291 *ac_space=\ *)
7292 # `set' does not quote correctly, so add quotes (double-quote substitution
7293 # turns \\\\ into \\, and sed turns \\ into \).
7294 sed -n \
7295 -e "s/'/'\\\\''/g" \
7296 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
7297 ;;
7298 *)
7299 # `set' quotes correctly as required by POSIX, so do not add quotes.
7300 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
7301 ;;
7302 esac >> confcache
7303if cmp -s $cache_file confcache; then
7304 :
7305else
7306 if test -w $cache_file; then
7307 echo "updating cache $cache_file"
7308 cat confcache > $cache_file
7309 else
7310 echo "not updating unwritable cache $cache_file"
7311 fi
7312fi
7313rm -f confcache
7314
7315
7316
dad6c0ea
VZ
7317AFMINSTALL=
7318
10f2d63a
VZ
7319if test "$wxUSE_GUI" = "yes"; then
7320
dad6c0ea
VZ
7321USE_GUI=1
7322
10f2d63a
VZ
7323TOOLKIT=
7324TOOLKIT_INCLUDE=
7325
10f2d63a
VZ
7326GUI_TK_LIBRARY=
7327GUI_TK_LINK=
7328
7329WXGTK12=
f6bcfd97 7330WXGTK127=
6f72b082 7331WXGTK20=
10f2d63a
VZ
7332
7333WXWINE=
7334
10f2d63a
VZ
7335if test "$wxUSE_CYGWIN" = 1 || test "$wxUSE_MINGW" = 1 ; then
7336 if test "$cross_compiling" = "yes" ; then
e59890c3 7337 echo "configure: warning: skipping windows.h check for cross-compilation" 1>&2
10f2d63a
VZ
7338 else
7339 echo $ac_n "checking for Windows headers""... $ac_c" 1>&6
0046ff7c 7340echo "configure:7341: checking for Windows headers" >&5
10f2d63a
VZ
7341
7342ac_find_includes=
7343for ac_dir in $SEARCH_INCLUDE;
7344 do
7345 if test -f "$ac_dir/windows.h"; then
7346 ac_find_includes=$ac_dir
7347 break
7348 fi
7349 done
7350
7351 if test "$ac_find_includes" != "" ; then
7352 echo "$ac_t""found $ac_find_includes" 1>&6
7353 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE -I$ac_find_includes"
7354 else
7355 echo "$ac_t""no" 1>&6
7356 { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; }
7357 fi
7358 fi
7359
7360 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS msw"
7361 LIBS="$LIBS -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lctl3d32 -lcrtdll -ladvapi32 -lwsock32"
7362
f6bcfd97
BP
7363 if test "$wxUSE_ODBC" = "yes" ; then
7364 LIBS="$LIBS -lodbc32 -lole32 -loleaut32"
7365 fi
7366
10f2d63a
VZ
7367 if test "$wxUSE_MINGW" = 1; then
7368 LDFLAGS="$LDFLAGS -mwindows"
7369 fi
7370
7371 TOOLKIT=MSW
10f2d63a 7372 GUIDIST=MSW_DIST
32832908
VZ
7373
7374 RCINCSWITCH="--include-dir"
7375 RCDEFSWITCH="--define"
7376 RCPREPROCESSOR="--preprocessor \"\$(CC) -c -E -xc-header -DRC_INVOKED\""
7377 RCINPUTSWITCH="-i"
7378 RCOUTPUTSWITCH="-o"
7379 RESFLAGS="$RCPREPROCESSOR $RCINCSWITCH \$(top_srcdir)/include $RCINCSWITCH \$(top_srcdir)/\$(program_dir) $RCDEFSWITCH __WIN32__ $RCDEFSWITCH __WIN95__ $RCDEFSWITCH __GNUWIN32__"
7380
7381 RESPROGRAM="\$(RES_PROGRAM)"
7382
10f2d63a
VZ
7383fi
7384
7385if test "$wxUSE_GTK" = 1; then
6f72b082
OK
7386 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
7387if test "${with_gtk_prefix+set}" = set; then
7388 withval="$with_gtk_prefix"
7389 gtk_config_prefix="$withval"
7390else
7391 gtk_config_prefix=""
7392fi
7393
7394# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
7395if test "${with_gtk_exec_prefix+set}" = set; then
7396 withval="$with_gtk_exec_prefix"
7397 gtk_config_exec_prefix="$withval"
7398else
7399 gtk_config_exec_prefix=""
7400fi
7401
7402# Check whether --enable-gtktest or --disable-gtktest was given.
7403if test "${enable_gtktest+set}" = set; then
7404 enableval="$enable_gtktest"
7405 :
7406else
7407 enable_gtktest=yes
7408fi
7409
7410
7411 for module in . gthread
7412 do
7413 case "$module" in
7414 gthread)
7415 gtk_config_args="$gtk_config_args gthread"
7416 ;;
7417 esac
7418 done
7419
7420 if test x$gtk_config_exec_prefix != x ; then
7421 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
7422 if test x${GTK_CONFIG_2_0+set} != xset ; then
7423 GTK_CONFIG_2_0=$gtk_config_exec_prefix/bin/gtk-config-2.0
7424 fi
7425 fi
7426 if test x$gtk_config_prefix != x ; then
7427 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
7428 if test x${GTK_CONFIG_2_0+set} != xset ; then
7429 GTK_CONFIG_2_0=$gtk_config_prefix/bin/gtk-config-2.0
7430 fi
7431 fi
7432
7433 # Extract the first word of "gtk-config-2.0", so it can be a program name with args.
7434set dummy gtk-config-2.0; ac_word=$2
7435echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
0046ff7c 7436echo "configure:7437: checking for $ac_word" >&5
6f72b082
OK
7437if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG_2_0'+set}'`\" = set"; then
7438 echo $ac_n "(cached) $ac_c" 1>&6
7439else
7440 case "$GTK_CONFIG_2_0" in
7441 /*)
7442 ac_cv_path_GTK_CONFIG_2_0="$GTK_CONFIG_2_0" # Let the user override the test with a path.
7443 ;;
7444 ?:/*)
7445 ac_cv_path_GTK_CONFIG_2_0="$GTK_CONFIG_2_0" # Let the user override the test with a dos path.
7446 ;;
7447 *)
7448 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7449 ac_dummy="$PATH"
7450 for ac_dir in $ac_dummy; do
7451 test -z "$ac_dir" && ac_dir=.
7452 if test -f $ac_dir/$ac_word; then
7453 ac_cv_path_GTK_CONFIG_2_0="$ac_dir/$ac_word"
7454 break
7455 fi
7456 done
7457 IFS="$ac_save_ifs"
7458 test -z "$ac_cv_path_GTK_CONFIG_2_0" && ac_cv_path_GTK_CONFIG_2_0="no"
7459 ;;
7460esac
7461fi
7462GTK_CONFIG_2_0="$ac_cv_path_GTK_CONFIG_2_0"
7463if test -n "$GTK_CONFIG_2_0"; then
7464 echo "$ac_t""$GTK_CONFIG_2_0" 1>&6
7465else
7466 echo "$ac_t""no" 1>&6
7467fi
7468
7469 min_gtk_version=1.3.1
7470 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
0046ff7c 7471echo "configure:7472: checking for GTK - version >= $min_gtk_version" >&5
6f72b082
OK
7472 no_gtk=""
7473 if test "$GTK_CONFIG_2_0" = "no" ; then
7474 no_gtk=yes
7475 else
7476 GTK_CFLAGS=`$GTK_CONFIG_2_0 $gtk_config_args --cflags`
7477 GTK_LIBS=`$GTK_CONFIG_2_0 $gtk_config_args --libs`
7478 gtk_config_major_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \
7479 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
7480 gtk_config_minor_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \
7481 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
7482 gtk_config_micro_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \
7483 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
7484 if test "x$enable_gtktest" = "xyes" ; then
7485 ac_save_CFLAGS="$CFLAGS"
7486 ac_save_LIBS="$LIBS"
7487 CFLAGS="$CFLAGS $GTK_CFLAGS"
7488 LIBS="$GTK_LIBS $LIBS"
7489 rm -f conf.gtktest
7490 if test "$cross_compiling" = yes; then
7491 echo $ac_n "cross compiling; assumed OK... $ac_c"
7492else
7493 cat > conftest.$ac_ext <<EOF
0046ff7c 7494#line 7495 "configure"
6f72b082
OK
7495#include "confdefs.h"
7496
7497#include <gtk/gtk.h>
7498#include <stdio.h>
7499#include <stdlib.h>
7500
7501int
7502main ()
7503{
7504 int major, minor, micro;
7505 char *tmp_version;
7506
7507 system ("touch conf.gtktest");
7508
7509 /* HP/UX 9 (%@#!) writes to sscanf strings */
7510 tmp_version = g_strdup("$min_gtk_version");
7511 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
7512 printf("%s, bad version string\n", "$min_gtk_version");
7513 exit(1);
7514 }
7515
7516 if ((gtk_major_version != $gtk_config_major_version) ||
7517 (gtk_minor_version != $gtk_config_minor_version) ||
7518 (gtk_micro_version != $gtk_config_micro_version))
7519 {
7520 printf("\n*** 'gtk-config-2.0 --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
7521 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
7522 gtk_major_version, gtk_minor_version, gtk_micro_version);
7523 printf ("*** was found! If gtk-config-2.0 was correct, then it is best\n");
7524 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
7525 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
7526 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
7527 printf("*** required on your system.\n");
7528 printf("*** If gtk-config-2.0 was wrong, set the environment variable GTK_CONFIG_2_0\n");
7529 printf("*** to point to the correct copy of gtk-config-2.0, and remove the file config.cache\n");
7530 printf("*** before re-running configure\n");
7531 }
7532#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
7533 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
7534 (gtk_minor_version != GTK_MINOR_VERSION) ||
7535 (gtk_micro_version != GTK_MICRO_VERSION))
7536 {
7537 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
7538 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
7539 printf("*** library (version %d.%d.%d)\n",
7540 gtk_major_version, gtk_minor_version, gtk_micro_version);
7541 }
7542#endif /* defined (GTK_MAJOR_VERSION) ... */
7543 else
7544 {
7545 if ((gtk_major_version > major) ||
7546 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
7547 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
7548 {
7549 return 0;
7550 }
7551 else
7552 {
7553 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
7554 gtk_major_version, gtk_minor_version, gtk_micro_version);
7555 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
7556 major, minor, micro);
7557 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
7558 printf("***\n");
7559 printf("*** If you have already installed a sufficiently new version, this error\n");
7560 printf("*** probably means that the wrong copy of the gtk-config-2.0 shell script is\n");
7561 printf("*** being found. The easiest way to fix this is to remove the old version\n");
7562 printf("*** of GTK+, but you can also set the GTK_CONFIG_2_0 environment to point to the\n");
7563 printf("*** correct copy of gtk-config-2.0. (In this case, you will have to\n");
7564 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
7565 printf("*** so that the correct libraries are found at run-time))\n");
7566 }
7567 }
7568 return 1;
7569}
7570
7571EOF
0046ff7c 7572if { (eval echo configure:7573: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6f72b082
OK
7573then
7574 :
7575else
7576 echo "configure: failed program was:" >&5
7577 cat conftest.$ac_ext >&5
7578 rm -fr conftest*
7579 no_gtk=yes
7580fi
7581rm -fr conftest*
7582fi
7583
7584 CFLAGS="$ac_save_CFLAGS"
7585 LIBS="$ac_save_LIBS"
7586 fi
7587 fi
7588 if test "x$no_gtk" = x ; then
7589 echo "$ac_t""yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" 1>&6
7590 WXGTK20=1
7591 else
7592 echo "$ac_t""no" 1>&6
7593 if test "$GTK_CONFIG_2_0" = "no" ; then
7594 echo "*** The gtk-config-2.0 script installed by GTK could not be found"
7595 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
7596 echo "*** your path, or set the GTK_CONFIG_2_0 environment variable to the"
7597 echo "*** full path to gtk-config-2.0."
7598 else
7599 if test -f conf.gtktest ; then
7600 :
7601 else
7602 echo "*** Could not run GTK test program, checking why..."
7603 CFLAGS="$CFLAGS $GTK_CFLAGS"
7604 LIBS="$LIBS $GTK_LIBS"
7605 cat > conftest.$ac_ext <<EOF
0046ff7c 7606#line 7607 "configure"
6f72b082
OK
7607#include "confdefs.h"
7608
7609#include <gtk/gtk.h>
7610#include <stdio.h>
7611
7612int main() {
7613 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
7614; return 0; }
7615EOF
0046ff7c 7616if { (eval echo configure:7617: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6f72b082
OK
7617 rm -rf conftest*
7618 echo "*** The test program compiled, but did not run. This usually means"
7619 echo "*** that the run-time linker is not finding GTK or finding the wrong"
7620 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
7621 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
7622 echo "*** to the installed location Also, make sure you have run ldconfig if that"
7623 echo "*** is required on your system"
7624 echo "***"
7625 echo "*** If you have an old version installed, it is best to remove it, although"
7626 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
7627 echo "***"
7628 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
7629 echo "*** came with the system with the command"
7630 echo "***"
7631 echo "*** rpm --erase --nodeps gtk gtk-devel"
7632else
7633 echo "configure: failed program was:" >&5
7634 cat conftest.$ac_ext >&5
7635 rm -rf conftest*
7636 echo "*** The test program failed to compile or link. See the file config.log for the"
7637 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
7638 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
7639 echo "*** may want to edit the gtk-config-2.0 script: $GTK_CONFIG_2_0"
7640fi
7641rm -f conftest*
7642 CFLAGS="$ac_save_CFLAGS"
7643 LIBS="$ac_save_LIBS"
7644 fi
7645 fi
7646 GTK_CFLAGS=""
7647 GTK_LIBS=""
7648
7649
10f2d63a
VZ
7650 if test x$gtk_config_exec_prefix != x ; then
7651 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
7652 if test x${GTK_CONFIG+set} != xset ; then
7653 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
7654 fi
7655 fi
7656 if test x$gtk_config_prefix != x ; then
7657 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
7658 if test x${GTK_CONFIG+set} != xset ; then
7659 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
7660 fi
7661 fi
7662
7663 # Extract the first word of "gtk-config", so it can be a program name with args.
7664set dummy gtk-config; ac_word=$2
7665echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
0046ff7c 7666echo "configure:7667: checking for $ac_word" >&5
f6bcfd97
BP
7667if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
7668 echo $ac_n "(cached) $ac_c" 1>&6
7669else
7670 case "$GTK_CONFIG" in
7671 /*)
7672 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
7673 ;;
7674 ?:/*)
7675 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
7676 ;;
7677 *)
7678 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7679 ac_dummy="$PATH"
7680 for ac_dir in $ac_dummy; do
7681 test -z "$ac_dir" && ac_dir=.
7682 if test -f $ac_dir/$ac_word; then
7683 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
7684 break
7685 fi
7686 done
7687 IFS="$ac_save_ifs"
7688 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
7689 ;;
7690esac
7691fi
7692GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
7693if test -n "$GTK_CONFIG"; then
7694 echo "$ac_t""$GTK_CONFIG" 1>&6
7695else
7696 echo "$ac_t""no" 1>&6
7697fi
7698
7699 min_gtk_version=1.2.7
7700 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
0046ff7c 7701echo "configure:7702: checking for GTK - version >= $min_gtk_version" >&5
f6bcfd97
BP
7702 no_gtk=""
7703 if test "$GTK_CONFIG" != "no" ; then
7704 GTK_CFLAGS=`$GTK_CONFIG --cflags`
7705 GTK_LIBS=`$GTK_CONFIG --libs gthread`
7706 ac_save_CFLAGS="$CFLAGS"
7707 ac_save_LIBS="$LIBS"
7708 CFLAGS="$CFLAGS $GTK_CFLAGS"
7709 LIBS="$LIBS $GTK_LIBS"
7710 if test "$cross_compiling" = yes; then
7711 echo $ac_n "cross compiling; assumed OK... $ac_c"
7712else
7713 cat > conftest.$ac_ext <<EOF
0046ff7c 7714#line 7715 "configure"
f6bcfd97
BP
7715#include "confdefs.h"
7716
7717#include <gtk/gtk.h>
7718#include <gtk/gtkfeatures.h>
7719#include <stdio.h>
7720#include <stdlib.h>
7721
7722int
7723main ()
7724{
7725 int major, minor, micro;
7726
7727 if (sscanf("$min_gtk_version", "%d.%d.%d", &major, &minor, &micro) != 3) {
7728 printf("%s, bad version string\n", "$min_gtk_version");
7729 exit(1);
7730 }
7731
7732 if ((GTK_MAJOR_VERSION != gtk_major_version) ||
7733 (GTK_MINOR_VERSION != gtk_minor_version) ||
7734 (GTK_MICRO_VERSION != gtk_micro_version)) {
7735 printf("Headers vs. library version mismatch!\n");
7736 exit(1);
7737 }
7738
7739 if (gtk_minor_version == 1) return FALSE;
7740
7741 return !((gtk_major_version > major) ||
7742 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
7743 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)));
7744}
7745
7746EOF
0046ff7c 7747if { (eval echo configure:7748: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
f6bcfd97
BP
7748then
7749 :
7750else
7751 echo "configure: failed program was:" >&5
7752 cat conftest.$ac_ext >&5
7753 rm -fr conftest*
7754 no_gtk=yes
7755fi
7756rm -fr conftest*
7757fi
7758
7759 CFLAGS="$ac_save_CFLAGS"
7760 LIBS="$ac_save_LIBS"
7761 else
7762 no_gtk=yes
7763 fi
7764 if test "x$no_gtk" = x ; then
7765 echo "$ac_t""yes" 1>&6
7766 WXGTK127=1
7767 else
7768 echo "$ac_t""no" 1>&6
7769 GTK_CFLAGS=""
7770 GTK_LIBS=""
7771 :
7772 fi
7773
7774
7775
6f72b082 7776
f6bcfd97
BP
7777 if test x$gtk_config_exec_prefix != x ; then
7778 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
7779 if test x${GTK_CONFIG+set} != xset ; then
7780 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
7781 fi
7782 fi
7783 if test x$gtk_config_prefix != x ; then
7784 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
7785 if test x${GTK_CONFIG+set} != xset ; then
7786 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
7787 fi
7788 fi
7789
7790 # Extract the first word of "gtk-config", so it can be a program name with args.
7791set dummy gtk-config; ac_word=$2
7792echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
0046ff7c 7793echo "configure:7794: checking for $ac_word" >&5
10f2d63a
VZ
7794if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
7795 echo $ac_n "(cached) $ac_c" 1>&6
7796else
7797 case "$GTK_CONFIG" in
7798 /*)
7799 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
7800 ;;
7801 ?:/*)
7802 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
7803 ;;
7804 *)
7805 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7806 ac_dummy="$PATH"
7807 for ac_dir in $ac_dummy; do
7808 test -z "$ac_dir" && ac_dir=.
7809 if test -f $ac_dir/$ac_word; then
7810 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
7811 break
7812 fi
7813 done
7814 IFS="$ac_save_ifs"
7815 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
7816 ;;
7817esac
7818fi
7819GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
7820if test -n "$GTK_CONFIG"; then
7821 echo "$ac_t""$GTK_CONFIG" 1>&6
7822else
7823 echo "$ac_t""no" 1>&6
7824fi
7825
04165bec 7826 min_gtk_version=1.2.3
10f2d63a 7827 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
0046ff7c 7828echo "configure:7829: checking for GTK - version >= $min_gtk_version" >&5
10f2d63a
VZ
7829 no_gtk=""
7830 if test "$GTK_CONFIG" != "no" ; then
7831 GTK_CFLAGS=`$GTK_CONFIG --cflags`
2224580a 7832 GTK_LIBS=`$GTK_CONFIG --libs gthread`
10f2d63a
VZ
7833 ac_save_CFLAGS="$CFLAGS"
7834 ac_save_LIBS="$LIBS"
7835 CFLAGS="$CFLAGS $GTK_CFLAGS"
7836 LIBS="$LIBS $GTK_LIBS"
7837 if test "$cross_compiling" = yes; then
7838 echo $ac_n "cross compiling; assumed OK... $ac_c"
7839else
7840 cat > conftest.$ac_ext <<EOF
0046ff7c 7841#line 7842 "configure"
10f2d63a
VZ
7842#include "confdefs.h"
7843
7844#include <gtk/gtk.h>
f49f2b0c 7845#include <gtk/gtkfeatures.h>
10f2d63a 7846#include <stdio.h>
32832908 7847#include <stdlib.h>
10f2d63a
VZ
7848
7849int
7850main ()
7851{
7852 int major, minor, micro;
7853
7854 if (sscanf("$min_gtk_version", "%d.%d.%d", &major, &minor, &micro) != 3) {
7855 printf("%s, bad version string\n", "$min_gtk_version");
7856 exit(1);
7857 }
7858
f49f2b0c
RR
7859 if ((GTK_MAJOR_VERSION != gtk_major_version) ||
7860 (GTK_MINOR_VERSION != gtk_minor_version) ||
7861 (GTK_MICRO_VERSION != gtk_micro_version)) {
7862 printf("Headers vs. library version mismatch!\n");
7863 exit(1);
7864 }
7865
10f2d63a
VZ
7866 if (gtk_minor_version == 1) return FALSE;
7867
7868 return !((gtk_major_version > major) ||
7869 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
7870 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)));
7871}
7872
7873EOF
0046ff7c 7874if { (eval echo configure:7875: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10f2d63a
VZ
7875then
7876 :
7877else
7878 echo "configure: failed program was:" >&5
7879 cat conftest.$ac_ext >&5
7880 rm -fr conftest*
7881 no_gtk=yes
7882fi
7883rm -fr conftest*
7884fi
7885
7886 CFLAGS="$ac_save_CFLAGS"
7887 LIBS="$ac_save_LIBS"
7888 else
7889 no_gtk=yes
7890 fi
7891 if test "x$no_gtk" = x ; then
7892 echo "$ac_t""yes" 1>&6
7893 WXGTK12=1
7894 else
7895 echo "$ac_t""no" 1>&6
7896 GTK_CFLAGS=""
7897 GTK_LIBS=""
7e99ad86 7898 :
10f2d63a
VZ
7899 fi
7900
7901
7902
6f72b082
OK
7903
7904 fi
7905
7906
7907 rm -f conf.gtktest
7908
10f2d63a 7909
6f72b082 7910 if test "$WXGTK12" != 1 -a "$WXGTK20" != 1; then
7e99ad86
VZ
7911 { echo "configure: error:
7912 Please check that gtk-config is in path, the directory
7913 where GTK+ libraries are installed (returned by
7914 'gtk-config --libs' command) is in LD_LIBRARY_PATH or
7915 equivalent variable and GTK+ is version 1.2.3 or above.
7916 " 1>&2; exit 1; }
7917 fi
7918
10f2d63a 7919 TOOLKIT_INCLUDE="$GTK_CFLAGS"
2224580a
VZ
7920
7921
7922 GUI_TK_LIBRARY="$GTK_LIBS"
7923
10f2d63a 7924
dad6c0ea 7925 AFMINSTALL=afminstall
9ad43c8b 7926 TOOLKIT=GTK
10f2d63a 7927 GUIDIST=GTK_DIST
7ec2881a 7928
2224580a 7929 echo $ac_n "checking for gdk_im_open in -lgdk""... $ac_c" 1>&6
0046ff7c 7930echo "configure:7931: checking for gdk_im_open in -lgdk" >&5
7ec2881a
RR
7931ac_lib_var=`echo gdk'_'gdk_im_open | sed 'y%./+-%__p_%'`
7932if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7933 echo $ac_n "(cached) $ac_c" 1>&6
7934else
7935 ac_save_LIBS="$LIBS"
7936LIBS="-lgdk $LIBS"
7937cat > conftest.$ac_ext <<EOF
0046ff7c 7938#line 7939 "configure"
7ec2881a
RR
7939#include "confdefs.h"
7940/* Override any gcc2 internal prototype to avoid an error. */
7941/* We use char because int might match the return type of a gcc2
7942 builtin and then its argument prototype would still apply. */
7943char gdk_im_open();
7944
7945int main() {
7946gdk_im_open()
7947; return 0; }
7948EOF
0046ff7c 7949if { (eval echo configure:7950: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7ec2881a
RR
7950 rm -rf conftest*
7951 eval "ac_cv_lib_$ac_lib_var=yes"
7952else
7953 echo "configure: failed program was:" >&5
7954 cat conftest.$ac_ext >&5
7955 rm -rf conftest*
7956 eval "ac_cv_lib_$ac_lib_var=no"
7957fi
7958rm -f conftest*
7959LIBS="$ac_save_LIBS"
7960
7961fi
7962if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7963 echo "$ac_t""yes" 1>&6
7964 cat >> confdefs.h <<\EOF
7965#define HAVE_XIM 1
7966EOF
7967
7968else
7969 echo "$ac_t""no" 1>&6
7970fi
7971
10f2d63a
VZ
7972fi
7973
7974if test "$wxUSE_WINE" = 1; then
7975 echo $ac_n "checking for WINE includes""... $ac_c" 1>&6
0046ff7c 7976echo "configure:7977: checking for WINE includes" >&5
10f2d63a
VZ
7977
7978ac_find_includes=
7979for ac_dir in $SEARCH_INCLUDE;
7980 do
7981 if test -f "$ac_dir/windows.h"; then
7982 ac_find_includes=$ac_dir
7983 break
7984 fi
7985 done
7986
7987 if test "$ac_find_includes" != "" ; then
7988 echo "$ac_t""found $ac_find_includes" 1>&6
7989 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE -I$ac_find_includes"
7990 else
7991 echo "$ac_t""no" 1>&6
7992 { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; }
7993 fi
7994
7995 XPM_LINK=""
7996 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
0046ff7c 7997echo "configure:7998: checking for Xpm library" >&5
10f2d63a
VZ
7998
7999ac_find_libraries=
8000for ac_dir in $SEARCH_LIB;
8001 do
8002 for ac_extension in a so sl; do
8003 if test -f "$ac_dir/libXpm.$ac_extension"; then
8004 ac_find_libraries=$ac_dir
8005 break 2
8006 fi
8007 done
8008 done
8009
8010 if test "$ac_find_libraries" != "" ; then
8011 GUI_TK_LIBRARY="-L$ac_find_libraries"
8012 XPM_LINK="-lXpm"
8013 cat >> confdefs.h <<\EOF
8014#define wxHAVE_LIB_XPM 1
8015EOF
8016
8017 echo "$ac_t""found at $ac_find_libraries" 1>&6
8018 else
8019 echo "$ac_t""no" 1>&6
8020 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
8021 fi
8022
8023 MESA_LINK=""
8024 echo $ac_n "checking for Mesa library""... $ac_c" 1>&6
0046ff7c 8025echo "configure:8026: checking for Mesa library" >&5
10f2d63a
VZ
8026
8027ac_find_libraries=
8028for ac_dir in $SEARCH_LIB;
8029 do
8030 for ac_extension in a so sl; do
8031 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
8032 ac_find_libraries=$ac_dir
8033 break 2
8034 fi
8035 done
8036 done
8037
8038 if test "$ac_find_libraries" != "" ; then
8039 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -L$ac_find_libraries"
8040 MESA_LINK="-lMesaGL"
8041 echo "$ac_t""found at $ac_find_libraries" 1>&6
8042 else
8043 { echo "configure: error: no" 1>&2; exit 1; }
8044 fi
8045
8916026b 8046 GUI_TK_LINK="-lwine $MESA_LINK $XPM_LINK -lXxf86dga -lXxf86vm -lSM -lICE -lXext -lXmu -lX11 -lncurses"
10f2d63a
VZ
8047 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $GUI_TK_LINK"
8048 WXWINE=1
8049 TOOLKIT=MSW
10f2d63a
VZ
8050 GUIDIST=MSW_DIST
8051fi
8052
37d403aa
JS
8053
8054# If we find X, set shell vars x_includes and x_libraries to the
ab9b9eab
VZ
8055# paths, otherwise set no_x=yes.
8056# Uses ac_ vars as temps to allow command line to override cache and checks.
8057# --without-x overrides everything else, but does not touch the cache.
8058echo $ac_n "checking for X""... $ac_c" 1>&6
0046ff7c 8059echo "configure:8060: checking for X" >&5
ab9b9eab
VZ
8060
8061# Check whether --with-x or --without-x was given.
8062if test "${with_x+set}" = set; then
8063 withval="$with_x"
8064 :
8065fi
ba337fe7 8066
ab9b9eab
VZ
8067# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
8068if test "x$with_x" = xno; then
8069 # The user explicitly disabled X.
8070 have_x=disabled
8071else
8072 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
8073 # Both variables are already set.
8074 have_x=yes
8075 else
8076if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
8077 echo $ac_n "(cached) $ac_c" 1>&6
8078else
8079 # One or both of the vars are not set, and there is no cached value.
8080ac_x_includes=NO ac_x_libraries=NO
8081rm -fr conftestdir
8082if mkdir conftestdir; then
8083 cd conftestdir
8084 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
8085 cat > Imakefile <<'EOF'
8086acfindx:
8087 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
8088EOF
8089 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
8090 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8091 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
8092 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
10f2d63a 8093 for ac_extension in a so sl; do
ab9b9eab
VZ
8094 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
8095 test -f $ac_im_libdir/libX11.$ac_extension; then
8096 ac_im_usrlibdir=$ac_im_libdir; break
10f2d63a
VZ
8097 fi
8098 done
ab9b9eab
VZ
8099 # Screen out bogus values from the imake configuration. They are
8100 # bogus both because they are the default anyway, and because
8101 # using them would break gcc on systems where it needs fixed includes.
8102 case "$ac_im_incroot" in
8103 /usr/include) ;;
8104 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
8105 esac
8106 case "$ac_im_usrlibdir" in
8107 /usr/lib | /lib) ;;
8108 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
8109 esac
ba337fe7 8110 fi
ab9b9eab
VZ
8111 cd ..
8112 rm -fr conftestdir
8113fi
10f2d63a 8114
ab9b9eab
VZ
8115if test "$ac_x_includes" = NO; then
8116 # Guess where to find include files, by looking for this one X11 .h file.
8117 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
ba337fe7 8118
ab9b9eab
VZ
8119 # First, try using that file with no special directory specified.
8120cat > conftest.$ac_ext <<EOF
0046ff7c 8121#line 8122 "configure"
ab9b9eab
VZ
8122#include "confdefs.h"
8123#include <$x_direct_test_include>
8124EOF
8125ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
0046ff7c 8126{ (eval echo configure:8127: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ab9b9eab
VZ
8127ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8128if test -z "$ac_err"; then
8129 rm -rf conftest*
8130 # We can compile using X headers with no special include directory.
8131ac_x_includes=
8132else
8133 echo "$ac_err" >&5
8134 echo "configure: failed program was:" >&5
8135 cat conftest.$ac_ext >&5
8136 rm -rf conftest*
8137 # Look for the header file in a standard set of common directories.
8138# Check X11 before X11Rn because it is often a symlink to the current release.
8139 for ac_dir in \
8140 /usr/X11/include \
8141 /usr/X11R6/include \
8142 /usr/X11R5/include \
8143 /usr/X11R4/include \
8144 \
8145 /usr/include/X11 \
8146 /usr/include/X11R6 \
8147 /usr/include/X11R5 \
8148 /usr/include/X11R4 \
8149 \
8150 /usr/local/X11/include \
8151 /usr/local/X11R6/include \
8152 /usr/local/X11R5/include \
8153 /usr/local/X11R4/include \
8154 \
8155 /usr/local/include/X11 \
8156 /usr/local/include/X11R6 \
8157 /usr/local/include/X11R5 \
8158 /usr/local/include/X11R4 \
8159 \
8160 /usr/X386/include \
8161 /usr/x386/include \
8162 /usr/XFree86/include/X11 \
8163 \
8164 /usr/include \
8165 /usr/local/include \
8166 /usr/unsupported/include \
8167 /usr/athena/include \
8168 /usr/local/x11r5/include \
8169 /usr/lpp/Xamples/include \
8170 \
8171 /usr/openwin/include \
8172 /usr/openwin/share/include \
8173 ; \
10f2d63a 8174 do
ab9b9eab
VZ
8175 if test -r "$ac_dir/$x_direct_test_include"; then
8176 ac_x_includes=$ac_dir
10f2d63a
VZ
8177 break
8178 fi
8179 done
ab9b9eab
VZ
8180fi
8181rm -f conftest*
8182fi # $ac_x_includes = NO
10f2d63a 8183
ab9b9eab
VZ
8184if test "$ac_x_libraries" = NO; then
8185 # Check for the libraries.
10f2d63a 8186
ab9b9eab
VZ
8187 test -z "$x_direct_test_library" && x_direct_test_library=Xt
8188 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
10f2d63a 8189
ab9b9eab
VZ
8190 # See if we find them without any special options.
8191 # Don't add to $LIBS permanently.
8192 ac_save_LIBS="$LIBS"
8193 LIBS="-l$x_direct_test_library $LIBS"
8194cat > conftest.$ac_ext <<EOF
0046ff7c 8195#line 8196 "configure"
ab9b9eab 8196#include "confdefs.h"
10f2d63a 8197
ab9b9eab
VZ
8198int main() {
8199${x_direct_test_function}()
8200; return 0; }
8201EOF
0046ff7c 8202if { (eval echo configure:8203: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
8203 rm -rf conftest*
8204 LIBS="$ac_save_LIBS"
8205# We can link X programs with no special library path.
8206ac_x_libraries=
8207else
8208 echo "configure: failed program was:" >&5
8209 cat conftest.$ac_ext >&5
8210 rm -rf conftest*
8211 LIBS="$ac_save_LIBS"
8212# First see if replacing the include by lib works.
8213# Check X11 before X11Rn because it is often a symlink to the current release.
8214for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
8215 /usr/X11/lib \
8216 /usr/X11R6/lib \
8217 /usr/X11R5/lib \
8218 /usr/X11R4/lib \
8219 \
8220 /usr/lib/X11 \
8221 /usr/lib/X11R6 \
8222 /usr/lib/X11R5 \
8223 /usr/lib/X11R4 \
8224 \
8225 /usr/local/X11/lib \
8226 /usr/local/X11R6/lib \
8227 /usr/local/X11R5/lib \
8228 /usr/local/X11R4/lib \
8229 \
8230 /usr/local/lib/X11 \
8231 /usr/local/lib/X11R6 \
8232 /usr/local/lib/X11R5 \
8233 /usr/local/lib/X11R4 \
8234 \
8235 /usr/X386/lib \
8236 /usr/x386/lib \
8237 /usr/XFree86/lib/X11 \
8238 \
8239 /usr/lib \
8240 /usr/local/lib \
8241 /usr/unsupported/lib \
8242 /usr/athena/lib \
8243 /usr/local/x11r5/lib \
8244 /usr/lpp/Xamples/lib \
8245 /lib/usr/lib/X11 \
8246 \
8247 /usr/openwin/lib \
8248 /usr/openwin/share/lib \
8249 ; \
8250do
8251 for ac_extension in a so sl; do
8252 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
8253 ac_x_libraries=$ac_dir
8254 break 2
10f2d63a 8255 fi
10f2d63a 8256 done
ab9b9eab
VZ
8257done
8258fi
8259rm -f conftest*
8260fi # $ac_x_libraries = NO
10f2d63a 8261
ab9b9eab
VZ
8262if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
8263 # Didn't find X anywhere. Cache the known absence of X.
8264 ac_cv_have_x="have_x=no"
8265else
8266 # Record where we found X for the cache.
8267 ac_cv_have_x="have_x=yes \
8268 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
8269fi
8270fi
10f2d63a 8271 fi
ab9b9eab
VZ
8272 eval "$ac_cv_have_x"
8273fi # $with_x != no
10f2d63a 8274
ab9b9eab
VZ
8275if test "$have_x" != yes; then
8276 echo "$ac_t""$have_x" 1>&6
8277 no_x=yes
8278else
8279 # If each of the values was on the command line, it overrides each guess.
8280 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
8281 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
8282 # Update the cache value to reflect the command line values.
8283 ac_cv_have_x="have_x=yes \
8284 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
8285 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
8286fi
10f2d63a 8287
ab9b9eab
VZ
8288if test "$no_x" = yes; then
8289 # Not all programs may use this symbol, but it does not hurt to define it.
8290 cat >> confdefs.h <<\EOF
8291#define X_DISPLAY_MISSING 1
8292EOF
10f2d63a 8293
ab9b9eab
VZ
8294 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
8295else
8296 if test -n "$x_includes"; then
8297 X_CFLAGS="$X_CFLAGS -I$x_includes"
10f2d63a
VZ
8298 fi
8299
ab9b9eab
VZ
8300 # It would also be nice to do this for all -L options, not just this one.
8301 if test -n "$x_libraries"; then
8302 X_LIBS="$X_LIBS -L$x_libraries"
8303 # For Solaris; some versions of Sun CC require a space after -R and
8304 # others require no space. Words are not sufficient . . . .
8305 case "`(uname -sr) 2>/dev/null`" in
8306 "SunOS 5"*)
8307 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
0046ff7c 8308echo "configure:8309: checking whether -R must be followed by a space" >&5
ab9b9eab
VZ
8309 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
8310 cat > conftest.$ac_ext <<EOF
0046ff7c 8311#line 8312 "configure"
ab9b9eab 8312#include "confdefs.h"
10f2d63a 8313
ab9b9eab 8314int main() {
788deba1 8315
ab9b9eab
VZ
8316; return 0; }
8317EOF
0046ff7c 8318if { (eval echo configure:8319: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
8319 rm -rf conftest*
8320 ac_R_nospace=yes
8321else
8322 echo "configure: failed program was:" >&5
8323 cat conftest.$ac_ext >&5
8324 rm -rf conftest*
8325 ac_R_nospace=no
8326fi
8327rm -f conftest*
8328 if test $ac_R_nospace = yes; then
8329 echo "$ac_t""no" 1>&6
8330 X_LIBS="$X_LIBS -R$x_libraries"
8331 else
8332 LIBS="$ac_xsave_LIBS -R $x_libraries"
8333 cat > conftest.$ac_ext <<EOF
0046ff7c 8334#line 8335 "configure"
ab9b9eab 8335#include "confdefs.h"
788deba1 8336
ab9b9eab
VZ
8337int main() {
8338
8339; return 0; }
8340EOF
0046ff7c 8341if { (eval echo configure:8342: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
8342 rm -rf conftest*
8343 ac_R_space=yes
8344else
8345 echo "configure: failed program was:" >&5
8346 cat conftest.$ac_ext >&5
8347 rm -rf conftest*
8348 ac_R_space=no
8349fi
8350rm -f conftest*
8351 if test $ac_R_space = yes; then
8352 echo "$ac_t""yes" 1>&6
8353 X_LIBS="$X_LIBS -R $x_libraries"
8354 else
8355 echo "$ac_t""neither works" 1>&6
8356 fi
8357 fi
8358 LIBS="$ac_xsave_LIBS"
8359 esac
8360 fi
8361
8362 # Check for system-dependent libraries X programs must link with.
8363 # Do this before checking for the system-independent R6 libraries
8364 # (-lICE), since we may need -lsocket or whatever for X linking.
8365
8366 if test "$ISC" = yes; then
8367 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
8368 else
8369 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
8370 # libraries were built with DECnet support. And karl@cs.umb.edu says
8371 # the Alpha needs dnet_stub (dnet does not exist).
8372 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
0046ff7c 8373echo "configure:8374: checking for dnet_ntoa in -ldnet" >&5
ab9b9eab
VZ
8374ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
8375if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8376 echo $ac_n "(cached) $ac_c" 1>&6
8377else
8378 ac_save_LIBS="$LIBS"
8379LIBS="-ldnet $LIBS"
8380cat > conftest.$ac_ext <<EOF
0046ff7c 8381#line 8382 "configure"
ab9b9eab
VZ
8382#include "confdefs.h"
8383/* Override any gcc2 internal prototype to avoid an error. */
8384/* We use char because int might match the return type of a gcc2
8385 builtin and then its argument prototype would still apply. */
8386char dnet_ntoa();
8387
8388int main() {
8389dnet_ntoa()
8390; return 0; }
8391EOF
0046ff7c 8392if { (eval echo configure:8393: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
8393 rm -rf conftest*
8394 eval "ac_cv_lib_$ac_lib_var=yes"
8395else
8396 echo "configure: failed program was:" >&5
8397 cat conftest.$ac_ext >&5
8398 rm -rf conftest*
8399 eval "ac_cv_lib_$ac_lib_var=no"
8400fi
8401rm -f conftest*
8402LIBS="$ac_save_LIBS"
8403
8404fi
8405if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8406 echo "$ac_t""yes" 1>&6
8407 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
8408else
8409 echo "$ac_t""no" 1>&6
8410fi
8411
8412 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
8413 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
0046ff7c 8414echo "configure:8415: checking for dnet_ntoa in -ldnet_stub" >&5
ab9b9eab
VZ
8415ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
8416if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8417 echo $ac_n "(cached) $ac_c" 1>&6
8418else
8419 ac_save_LIBS="$LIBS"
8420LIBS="-ldnet_stub $LIBS"
8421cat > conftest.$ac_ext <<EOF
0046ff7c 8422#line 8423 "configure"
ab9b9eab
VZ
8423#include "confdefs.h"
8424/* Override any gcc2 internal prototype to avoid an error. */
8425/* We use char because int might match the return type of a gcc2
8426 builtin and then its argument prototype would still apply. */
8427char dnet_ntoa();
8428
8429int main() {
8430dnet_ntoa()
8431; return 0; }
8432EOF
0046ff7c 8433if { (eval echo configure:8434: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
8434 rm -rf conftest*
8435 eval "ac_cv_lib_$ac_lib_var=yes"
8436else
8437 echo "configure: failed program was:" >&5
8438 cat conftest.$ac_ext >&5
8439 rm -rf conftest*
8440 eval "ac_cv_lib_$ac_lib_var=no"
8441fi
8442rm -f conftest*
8443LIBS="$ac_save_LIBS"
8444
8445fi
8446if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8447 echo "$ac_t""yes" 1>&6
8448 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
8449else
8450 echo "$ac_t""no" 1>&6
8451fi
8452
8453 fi
8454
8455 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
8456 # to get the SysV transport functions.
8457 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
8458 # needs -lnsl.
8459 # The nsl library prevents programs from opening the X display
8460 # on Irix 5.2, according to dickey@clark.net.
8461 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
0046ff7c 8462echo "configure:8463: checking for gethostbyname" >&5
ab9b9eab
VZ
8463if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
8464 echo $ac_n "(cached) $ac_c" 1>&6
8465else
8466 cat > conftest.$ac_ext <<EOF
0046ff7c 8467#line 8468 "configure"
ab9b9eab
VZ
8468#include "confdefs.h"
8469/* System header to define __stub macros and hopefully few prototypes,
8470 which can conflict with char gethostbyname(); below. */
8471#include <assert.h>
8472/* Override any gcc2 internal prototype to avoid an error. */
8473/* We use char because int might match the return type of a gcc2
8474 builtin and then its argument prototype would still apply. */
8475char gethostbyname();
8476
8477int main() {
8478
8479/* The GNU C library defines this for functions which it implements
8480 to always fail with ENOSYS. Some functions are actually named
8481 something starting with __ and the normal name is an alias. */
8482#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
8483choke me
8484#else
e8482f24 8485gethostbyname();
ab9b9eab
VZ
8486#endif
8487
8488; return 0; }
8489EOF
0046ff7c 8490if { (eval echo configure:8491: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
8491 rm -rf conftest*
8492 eval "ac_cv_func_gethostbyname=yes"
8493else
8494 echo "configure: failed program was:" >&5
8495 cat conftest.$ac_ext >&5
8496 rm -rf conftest*
8497 eval "ac_cv_func_gethostbyname=no"
8498fi
8499rm -f conftest*
8500fi
8501
8502if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
8503 echo "$ac_t""yes" 1>&6
8504 :
8505else
8506 echo "$ac_t""no" 1>&6
8507fi
8508
8509 if test $ac_cv_func_gethostbyname = no; then
8510 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
0046ff7c 8511echo "configure:8512: checking for gethostbyname in -lnsl" >&5
ab9b9eab
VZ
8512ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
8513if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8514 echo $ac_n "(cached) $ac_c" 1>&6
8515else
8516 ac_save_LIBS="$LIBS"
8517LIBS="-lnsl $LIBS"
8518cat > conftest.$ac_ext <<EOF
0046ff7c 8519#line 8520 "configure"
ab9b9eab
VZ
8520#include "confdefs.h"
8521/* Override any gcc2 internal prototype to avoid an error. */
8522/* We use char because int might match the return type of a gcc2
8523 builtin and then its argument prototype would still apply. */
8524char gethostbyname();
8525
8526int main() {
8527gethostbyname()
8528; return 0; }
8529EOF
0046ff7c 8530if { (eval echo configure:8531: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
8531 rm -rf conftest*
8532 eval "ac_cv_lib_$ac_lib_var=yes"
8533else
8534 echo "configure: failed program was:" >&5
8535 cat conftest.$ac_ext >&5
8536 rm -rf conftest*
8537 eval "ac_cv_lib_$ac_lib_var=no"
8538fi
8539rm -f conftest*
8540LIBS="$ac_save_LIBS"
8541
8542fi
8543if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8544 echo "$ac_t""yes" 1>&6
8545 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
8546else
8547 echo "$ac_t""no" 1>&6
8548fi
8549
8550 fi
8551
8552 # lieder@skyler.mavd.honeywell.com says without -lsocket,
8553 # socket/setsockopt and other routines are undefined under SCO ODT
8554 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
8555 # on later versions), says simon@lia.di.epfl.ch: it contains
8556 # gethostby* variants that don't use the nameserver (or something).
8557 # -lsocket must be given before -lnsl if both are needed.
8558 # We assume that if connect needs -lnsl, so does gethostbyname.
8559 echo $ac_n "checking for connect""... $ac_c" 1>&6
0046ff7c 8560echo "configure:8561: checking for connect" >&5
ab9b9eab
VZ
8561if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
8562 echo $ac_n "(cached) $ac_c" 1>&6
8563else
8564 cat > conftest.$ac_ext <<EOF
0046ff7c 8565#line 8566 "configure"
ab9b9eab
VZ
8566#include "confdefs.h"
8567/* System header to define __stub macros and hopefully few prototypes,
8568 which can conflict with char connect(); below. */
8569#include <assert.h>
8570/* Override any gcc2 internal prototype to avoid an error. */
8571/* We use char because int might match the return type of a gcc2
8572 builtin and then its argument prototype would still apply. */
8573char connect();
8574
8575int main() {
8576
8577/* The GNU C library defines this for functions which it implements
8578 to always fail with ENOSYS. Some functions are actually named
8579 something starting with __ and the normal name is an alias. */
8580#if defined (__stub_connect) || defined (__stub___connect)
8581choke me
8582#else
e8482f24 8583connect();
ab9b9eab
VZ
8584#endif
8585
8586; return 0; }
8587EOF
0046ff7c 8588if { (eval echo configure:8589: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
8589 rm -rf conftest*
8590 eval "ac_cv_func_connect=yes"
8591else
8592 echo "configure: failed program was:" >&5
8593 cat conftest.$ac_ext >&5
8594 rm -rf conftest*
8595 eval "ac_cv_func_connect=no"
8596fi
8597rm -f conftest*
8598fi
8599
8600if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
8601 echo "$ac_t""yes" 1>&6
8602 :
8603else
8604 echo "$ac_t""no" 1>&6
8605fi
8606
8607 if test $ac_cv_func_connect = no; then
8608 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
0046ff7c 8609echo "configure:8610: checking for connect in -lsocket" >&5
ab9b9eab
VZ
8610ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
8611if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8612 echo $ac_n "(cached) $ac_c" 1>&6
8613else
8614 ac_save_LIBS="$LIBS"
8615LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
8616cat > conftest.$ac_ext <<EOF
0046ff7c 8617#line 8618 "configure"
ab9b9eab
VZ
8618#include "confdefs.h"
8619/* Override any gcc2 internal prototype to avoid an error. */
8620/* We use char because int might match the return type of a gcc2
8621 builtin and then its argument prototype would still apply. */
8622char connect();
8623
8624int main() {
8625connect()
8626; return 0; }
8627EOF
0046ff7c 8628if { (eval echo configure:8629: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
8629 rm -rf conftest*
8630 eval "ac_cv_lib_$ac_lib_var=yes"
8631else
8632 echo "configure: failed program was:" >&5
8633 cat conftest.$ac_ext >&5
8634 rm -rf conftest*
8635 eval "ac_cv_lib_$ac_lib_var=no"
8636fi
8637rm -f conftest*
8638LIBS="$ac_save_LIBS"
8639
8640fi
8641if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8642 echo "$ac_t""yes" 1>&6
8643 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
8644else
8645 echo "$ac_t""no" 1>&6
8646fi
8647
8648 fi
8649
8650 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
8651 echo $ac_n "checking for remove""... $ac_c" 1>&6
0046ff7c 8652echo "configure:8653: checking for remove" >&5
ab9b9eab
VZ
8653if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
8654 echo $ac_n "(cached) $ac_c" 1>&6
8655else
8656 cat > conftest.$ac_ext <<EOF
0046ff7c 8657#line 8658 "configure"
ab9b9eab
VZ
8658#include "confdefs.h"
8659/* System header to define __stub macros and hopefully few prototypes,
8660 which can conflict with char remove(); below. */
8661#include <assert.h>
8662/* Override any gcc2 internal prototype to avoid an error. */
8663/* We use char because int might match the return type of a gcc2
8664 builtin and then its argument prototype would still apply. */
8665char remove();
8666
8667int main() {
8668
8669/* The GNU C library defines this for functions which it implements
8670 to always fail with ENOSYS. Some functions are actually named
8671 something starting with __ and the normal name is an alias. */
8672#if defined (__stub_remove) || defined (__stub___remove)
8673choke me
8674#else
e8482f24 8675remove();
ab9b9eab
VZ
8676#endif
8677
8678; return 0; }
8679EOF
0046ff7c 8680if { (eval echo configure:8681: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
8681 rm -rf conftest*
8682 eval "ac_cv_func_remove=yes"
8683else
8684 echo "configure: failed program was:" >&5
8685 cat conftest.$ac_ext >&5
8686 rm -rf conftest*
8687 eval "ac_cv_func_remove=no"
8688fi
8689rm -f conftest*
8690fi
8691
8692if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
8693 echo "$ac_t""yes" 1>&6
8694 :
8695else
8696 echo "$ac_t""no" 1>&6
8697fi
8698
8699 if test $ac_cv_func_remove = no; then
8700 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
0046ff7c 8701echo "configure:8702: checking for remove in -lposix" >&5
ab9b9eab
VZ
8702ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
8703if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8704 echo $ac_n "(cached) $ac_c" 1>&6
8705else
8706 ac_save_LIBS="$LIBS"
8707LIBS="-lposix $LIBS"
8708cat > conftest.$ac_ext <<EOF
0046ff7c 8709#line 8710 "configure"
ab9b9eab
VZ
8710#include "confdefs.h"
8711/* Override any gcc2 internal prototype to avoid an error. */
8712/* We use char because int might match the return type of a gcc2
8713 builtin and then its argument prototype would still apply. */
8714char remove();
8715
8716int main() {
8717remove()
8718; return 0; }
8719EOF
0046ff7c 8720if { (eval echo configure:8721: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
8721 rm -rf conftest*
8722 eval "ac_cv_lib_$ac_lib_var=yes"
8723else
8724 echo "configure: failed program was:" >&5
8725 cat conftest.$ac_ext >&5
8726 rm -rf conftest*
8727 eval "ac_cv_lib_$ac_lib_var=no"
8728fi
8729rm -f conftest*
8730LIBS="$ac_save_LIBS"
8731
8732fi
8733if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8734 echo "$ac_t""yes" 1>&6
8735 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
8736else
8737 echo "$ac_t""no" 1>&6
8738fi
8739
8740 fi
8741
8742 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
8743 echo $ac_n "checking for shmat""... $ac_c" 1>&6
0046ff7c 8744echo "configure:8745: checking for shmat" >&5
ab9b9eab
VZ
8745if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
8746 echo $ac_n "(cached) $ac_c" 1>&6
8747else
8748 cat > conftest.$ac_ext <<EOF
0046ff7c 8749#line 8750 "configure"
ab9b9eab
VZ
8750#include "confdefs.h"
8751/* System header to define __stub macros and hopefully few prototypes,
8752 which can conflict with char shmat(); below. */
8753#include <assert.h>
8754/* Override any gcc2 internal prototype to avoid an error. */
8755/* We use char because int might match the return type of a gcc2
8756 builtin and then its argument prototype would still apply. */
8757char shmat();
8758
8759int main() {
8760
8761/* The GNU C library defines this for functions which it implements
8762 to always fail with ENOSYS. Some functions are actually named
8763 something starting with __ and the normal name is an alias. */
8764#if defined (__stub_shmat) || defined (__stub___shmat)
8765choke me
8766#else
e8482f24 8767shmat();
ab9b9eab
VZ
8768#endif
8769
8770; return 0; }
8771EOF
0046ff7c 8772if { (eval echo configure:8773: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
8773 rm -rf conftest*
8774 eval "ac_cv_func_shmat=yes"
8775else
8776 echo "configure: failed program was:" >&5
8777 cat conftest.$ac_ext >&5
8778 rm -rf conftest*
8779 eval "ac_cv_func_shmat=no"
8780fi
8781rm -f conftest*
8782fi
8783
8784if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
8785 echo "$ac_t""yes" 1>&6
8786 :
8787else
8788 echo "$ac_t""no" 1>&6
8789fi
8790
8791 if test $ac_cv_func_shmat = no; then
8792 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
0046ff7c 8793echo "configure:8794: checking for shmat in -lipc" >&5
ab9b9eab
VZ
8794ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
8795if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8796 echo $ac_n "(cached) $ac_c" 1>&6
8797else
8798 ac_save_LIBS="$LIBS"
8799LIBS="-lipc $LIBS"
8800cat > conftest.$ac_ext <<EOF
0046ff7c 8801#line 8802 "configure"
ab9b9eab
VZ
8802#include "confdefs.h"
8803/* Override any gcc2 internal prototype to avoid an error. */
8804/* We use char because int might match the return type of a gcc2
8805 builtin and then its argument prototype would still apply. */
8806char shmat();
8807
8808int main() {
8809shmat()
8810; return 0; }
8811EOF
0046ff7c 8812if { (eval echo configure:8813: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
8813 rm -rf conftest*
8814 eval "ac_cv_lib_$ac_lib_var=yes"
8815else
8816 echo "configure: failed program was:" >&5
8817 cat conftest.$ac_ext >&5
8818 rm -rf conftest*
8819 eval "ac_cv_lib_$ac_lib_var=no"
8820fi
8821rm -f conftest*
8822LIBS="$ac_save_LIBS"
8823
8824fi
8825if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8826 echo "$ac_t""yes" 1>&6
8827 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
8828else
8829 echo "$ac_t""no" 1>&6
8830fi
8831
8832 fi
8833 fi
8834
8835 # Check for libraries that X11R6 Xt/Xaw programs need.
8836 ac_save_LDFLAGS="$LDFLAGS"
8837 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
8838 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
8839 # check for ICE first), but we must link in the order -lSM -lICE or
8840 # we get undefined symbols. So assume we have SM if we have ICE.
8841 # These have to be linked with before -lX11, unlike the other
8842 # libraries we check for below, so use a different variable.
8843 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
8844 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
0046ff7c 8845echo "configure:8846: checking for IceConnectionNumber in -lICE" >&5
ab9b9eab
VZ
8846ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
8847if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8848 echo $ac_n "(cached) $ac_c" 1>&6
8849else
8850 ac_save_LIBS="$LIBS"
8851LIBS="-lICE $X_EXTRA_LIBS $LIBS"
8852cat > conftest.$ac_ext <<EOF
0046ff7c 8853#line 8854 "configure"
ab9b9eab
VZ
8854#include "confdefs.h"
8855/* Override any gcc2 internal prototype to avoid an error. */
8856/* We use char because int might match the return type of a gcc2
8857 builtin and then its argument prototype would still apply. */
8858char IceConnectionNumber();
8859
8860int main() {
8861IceConnectionNumber()
8862; return 0; }
8863EOF
0046ff7c 8864if { (eval echo configure:8865: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
8865 rm -rf conftest*
8866 eval "ac_cv_lib_$ac_lib_var=yes"
8867else
8868 echo "configure: failed program was:" >&5
8869 cat conftest.$ac_ext >&5
8870 rm -rf conftest*
8871 eval "ac_cv_lib_$ac_lib_var=no"
8872fi
8873rm -f conftest*
8874LIBS="$ac_save_LIBS"
8875
8876fi
8877if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8878 echo "$ac_t""yes" 1>&6
8879 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
8880else
8881 echo "$ac_t""no" 1>&6
8882fi
8883
8884 LDFLAGS="$ac_save_LDFLAGS"
8885
8886fi
8887
37d403aa
JS
8888CPPFLAGS="$CPPFLAGS $X_CFLAGS"
8889LDFLAGS="$LDFLAGS $X_LIBS"
ab9b9eab 8890
37d403aa 8891if test "$wxUSE_MOTIF" = 1; then
ab9b9eab 8892 if test "$no_x" = "yes"; then
37d403aa 8893 { echo "configure: error: X11 not found" 1>&2; exit 1; }
ab9b9eab
VZ
8894 fi
8895
8896 GUI_TK_LIBRARY="$X_LIBS"
8897 TOOLKIT_INCLUDE="$X_CFLAGS"
8898
dad6c0ea
VZ
8899 AFMINSTALL=afminstall
8900
ab9b9eab 8901
cd6d6d5b
VZ
8902 COMPILED_X_PROGRAM=0
8903
ab9b9eab 8904 echo $ac_n "checking for Motif/Lesstif headers""... $ac_c" 1>&6
0046ff7c 8905echo "configure:8906: checking for Motif/Lesstif headers" >&5
ab9b9eab
VZ
8906
8907ac_find_includes=
8908for ac_dir in $SEARCH_INCLUDE;
8909 do
8910 if test -f "$ac_dir/Xm/Xm.h"; then
8911 ac_find_includes=$ac_dir
8912 break
8913 fi
8914 done
8915
8916 if test "$ac_find_includes" != "" ; then
8917 echo "$ac_t""found $ac_find_includes" 1>&6
8918 else
cd6d6d5b 8919 cat > conftest.$ac_ext <<EOF
0046ff7c 8920#line 8921 "configure"
cd6d6d5b
VZ
8921#include "confdefs.h"
8922
8923 #include <Xm/Xm.h>
8924
8925int main() {
8926
8927 int version;
8928
8929 version = xmUseVersion;
8930
8931; return 0; }
8932EOF
0046ff7c 8933if { (eval echo configure:8934: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
cd6d6d5b
VZ
8934 rm -rf conftest*
8935
8936 echo "$ac_t""found in default search path" 1>&6
8937 COMPILED_X_PROGRAM=1
8938
8939else
8940 echo "configure: failed program was:" >&5
8941 cat conftest.$ac_ext >&5
8942 rm -rf conftest*
8943
8944 echo "$ac_t""no" 1>&6
8945 { echo "configure: error: please set CFLAGS to contain the location of Xm/Xm.h" 1>&2; exit 1; }
8946
8947
8948fi
8949rm -f conftest*
ab9b9eab
VZ
8950 fi
8951
cd6d6d5b
VZ
8952 if test "$COMPILED_X_PROGRAM" = 0; then
8953 echo $ac_n "checking for Motif/Lesstif library""... $ac_c" 1>&6
0046ff7c 8954echo "configure:8955: checking for Motif/Lesstif library" >&5
cd6d6d5b 8955
ab9b9eab
VZ
8956ac_find_libraries=
8957for ac_dir in $SEARCH_LIB;
8958 do
8959 for ac_extension in a so sl; do
8960 if test -f "$ac_dir/libXm.$ac_extension"; then
8961 ac_find_libraries=$ac_dir
8962 break 2
8963 fi
8964 done
8965 done
8966
cd6d6d5b
VZ
8967 if test "$ac_find_libraries" != "" ; then
8968
ab9b9eab
VZ
8969 ac_path_to_include=$ac_find_includes
8970 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
8971 result=$?
8972 if test $result = 0; then
8973 ac_path_to_include=""
8974 else
8975 ac_path_to_include="-I$ac_find_includes"
8976 fi
8977
cd6d6d5b 8978
ab9b9eab
VZ
8979 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
8980 result=$?
8981 if test $result = 0; then
8982 ac_path_to_link=""
8983 else
8984 ac_path_to_link="-L$ac_find_libraries"
8985 fi
8986
8987
cd6d6d5b
VZ
8988 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $ac_path_to_link"
8989 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE $ac_path_to_include"
8990 echo "$ac_t""found at $ac_find_libraries" 1>&6
8991 else
8992 cat > conftest.$ac_ext <<EOF
0046ff7c 8993#line 8994 "configure"
cd6d6d5b 8994#include "confdefs.h"
ab9b9eab 8995
cd6d6d5b
VZ
8996 #include <Xm/Xm.h>
8997
8998int main() {
ab9b9eab 8999
cd6d6d5b 9000 int version;
ab9b9eab 9001
cd6d6d5b
VZ
9002 version = xmUseVersion;
9003
9004; return 0; }
9005EOF
0046ff7c 9006if { (eval echo configure:9007: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
cd6d6d5b
VZ
9007 rm -rf conftest*
9008
9009 echo "$ac_t""found in default search path" 1>&6
9010 COMPILED_X_PROGRAM=1
9011
9012else
9013 echo "configure: failed program was:" >&5
9014 cat conftest.$ac_ext >&5
9015 rm -rf conftest*
9016
9017 echo "$ac_t""no" 1>&6
9018 { echo "configure: error: please set LDFLAGS to contain the location of libXm" 1>&2; exit 1; }
9019
9020
9021fi
9022rm -f conftest*
9023 fi
ab9b9eab
VZ
9024 fi
9025
cd6d6d5b 9026
ab9b9eab
VZ
9027 XPM_LINK=""
9028 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
0046ff7c 9029echo "configure:9030: checking for Xpm library" >&5
ab9b9eab
VZ
9030
9031ac_find_libraries=
9032for ac_dir in $SEARCH_LIB;
9033 do
9034 for ac_extension in a so sl; do
9035 if test -f "$ac_dir/libXpm.$ac_extension"; then
9036 ac_find_libraries=$ac_dir
9037 break 2
9038 fi
9039 done
9040 done
9041
9042 if test "$ac_find_libraries" != "" ; then
9043
9044 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
9045 result=$?
9046 if test $result = 0; then
9047 ac_path_to_link=""
9048 else
9049 ac_path_to_link="-L$ac_find_libraries"
9050 fi
9051
9052 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $ac_path_to_link"
9053 XPM_LINK="-lXpm "
9054 cat >> confdefs.h <<\EOF
9055#define wxHAVE_LIB_XPM 1
9056EOF
9057
9058 echo "$ac_t""found at $ac_find_libraries" 1>&6
9059 else
cd6d6d5b 9060 cat > conftest.$ac_ext <<EOF
0046ff7c 9061#line 9062 "configure"
cd6d6d5b
VZ
9062#include "confdefs.h"
9063
9064 #include <X11/xpm.h>
9065
9066int main() {
9067
9068 int version;
9069
9070 version = XpmLibraryVersion();
9071
9072; return 0; }
9073EOF
0046ff7c 9074if { (eval echo configure:9075: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
cd6d6d5b
VZ
9075 rm -rf conftest*
9076
f6bcfd97
BP
9077 XPM_LINK="-lXpm "
9078 cat >> confdefs.h <<\EOF
3ace2e6d
SN
9079#define wxHAVE_LIB_XPM 1
9080EOF
9081
9082 echo "$ac_t""found in default search path" 1>&6
cd6d6d5b
VZ
9083 COMPILED_X_PROGRAM=0
9084
9085else
9086 echo "configure: failed program was:" >&5
9087 cat conftest.$ac_ext >&5
9088 rm -rf conftest*
9089
9090 echo "$ac_t""no" 1>&6
9091 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
9092
9093
9094fi
9095rm -f conftest*
ab9b9eab
VZ
9096 fi
9097
8916026b 9098 GUI_TK_LINK="-lXm $XPM_LINK -lXmu -lXext -lXt -lX11"
ab9b9eab
VZ
9099 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $GUI_TK_LINK"
9100 TOOLKIT=MOTIF
10f2d63a
VZ
9101 GUIDIST=MOTIF_DIST
9102fi
9103
b4085ce6
GD
9104if test "$wxUSE_MAC" = 1; then
9105 TOOLKIT=MAC
c521c494 9106 GUIDIST=MACX_DIST
b4085ce6
GD
9107fi
9108
e07802fc
VZ
9109if test "$wxUSE_PM" = 1; then
9110 TOOLKIT=PM
e07802fc
VZ
9111 GUIDIST=GTK_DIST
9112fi
9113
9114if test "$TOOLKIT" != "PM" ; then
ec14dd32 9115 TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
e07802fc
VZ
9116else
9117 TOOLKIT_DIR="os2"
9118fi
10f2d63a 9119
f6bcfd97
BP
9120 if test "$wxUSE_DEBUG_FLAG" = "yes"; then
9121 TOOLKIT_NAME="${TOOLKIT_DIR}d"
9122 else
9123 TOOLKIT_NAME="${TOOLKIT_DIR}"
9124 fi
9125
2224580a 9126 TOOLKIT_DEF="-D__WX${TOOLKIT}__"
10f2d63a 9127
f6bcfd97 9128 WX_LIBRARY="wx_${TOOLKIT_NAME}"
10f2d63a 9129
bdad4e7e 9130 ALL_OBJECTS="\$(GUIOBJS) \$(COMMONOBJS) \$(GENERICOBJS) \$(UNIXOBJS) \$(HTMLOBJS) \$(OGLOBJS)"
3fcdd07b 9131
9ad43c8b
RL
9132 if test "$TOOLKIT" != "MSW" -a "$wxUSE_ODBC" = "yes" ; then
9133 ALL_OBJECTS="${ALL_OBJECTS} \$(IODBCOBJS)"
3fcdd07b
VZ
9134 fi
9135
d9d8273d 9136 if test "$wxUSE_LIBJPEG" = "yes" ; then
2224580a 9137 ALL_OBJECTS="${ALL_OBJECTS} \$(JPEGOBJS)"
d9d8273d
RR
9138 fi
9139 if test "$wxUSE_LIBTIFF" = "yes" ; then
9140 ALL_OBJECTS="${ALL_OBJECTS} \$(TIFFOBJS)"
9141 fi
9142 if test "$wxUSE_LIBPNG" = "yes" ; then
9143 ALL_OBJECTS="${ALL_OBJECTS} \$(PNGOBJS)"
9144 fi
9145 if test "$wxUSE_ZLIB" = "yes" ; then
9146 ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)"
9147 fi
3fed1840
RR
9148 if test "$wxUSE_FREETYPE" = "yes" ; then
9149 ALL_OBJECTS="${ALL_OBJECTS} \$(FREETYPEOBJS)"
9150 fi
bdad4e7e 9151 ALL_DEPFILES="\$(GUIDEPS) \$(COMMONDEPS) \$(GENERICDEPS) \$(UNIXDEPS) \$(HTMLDEPS) \$(OGLDEPS)"
2224580a
VZ
9152
9153 PORT_FILES="src/\$(TOOLKITDIR)/files.lst"
9154 RPM_FILES="src/\$(TOOLKITDIR)/rpmfiles.lst"
9155 RPM_SPEC="wx\$(TOOLKIT).spec"
9156
9157 GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
9158 DISTDIR="wx\$(TOOLKIT)"
10f2d63a 9159else
dad6c0ea
VZ
9160 USE_GUI=0
9161
f6bcfd97
BP
9162 TOOLKIT_DIR="base"
9163
9164 if test "$wxUSE_DEBUG_FLAG" = "yes"; then
9165 TOOLKIT_NAME="${TOOLKIT_DIR}d"
9166 else
9167 TOOLKIT_NAME="${TOOLKIT_DIR}"
9168 fi
9169
07eb77a6
RL
9170 TOOLKIT_DEF="-D__WXBASE__"
9171
b4085ce6
GD
9172 ALL_OBJECTS="\$(BASE_OBJS) \$(BASE_UNIX_OBJS)"
9173 ALL_DEPFILES="\$(BASE_DEPS) \$(BASE_UNIX_DEPS)"
10f2d63a 9174
a20b6d3a
VZ
9175 if test "$wxUSE_ZLIB" = "yes" ; then
9176 ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)"
9177 fi
9178
f6bcfd97 9179 WX_LIBRARY="wx_${TOOLKIT_NAME}"
2224580a
VZ
9180
9181 PORT_FILES="src/files.lst"
9182 RPM_FILES="src/rpmfiles.lst"
9183 RPM_SPEC="wxBase.spec"
9184
9185 GUIDIST="BASE_DIST"
9186 DISTDIR="wxBase"
10f2d63a
VZ
9187fi
9188
9189WX_LIBRARY_NAME="lib${WX_LIBRARY}.la"
bdad4e7e 9190WX_LIBRARY_NAME_GL="lib${WX_LIBRARY}_gl.la"
10f2d63a
VZ
9191
9192WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a"
bdad4e7e 9193WX_LIBRARY_NAME_STATIC_GL="lib${WX_LIBRARY}_gl.a"
10f2d63a
VZ
9194
9195WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}-${WX_RELEASE}.so.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
bdad4e7e 9196WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.so.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
10f2d63a
VZ
9197
9198WX_LIBRARY_LINK1="lib${WX_LIBRARY}-${WX_RELEASE}.so.${WX_CURRENT}"
9199WX_LIBRARY_LINK2="lib${WX_LIBRARY}-${WX_RELEASE}.so"
9200WX_LIBRARY_LINK3="lib${WX_LIBRARY}.so"
bdad4e7e
RR
9201WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.so.${WX_CURRENT}"
9202WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.so"
9203WX_LIBRARY_LINK3_GL="lib${WX_LIBRARY}_gl.so"
10f2d63a
VZ
9204
9205SHARED_LD=
9206PIC_FLAG=
9207WX_ALL=
9208WX_ALL_INSTALLED=
1d62a8b4 9209BURNT_LIBRARY_NAME=
f6bcfd97 9210WX_TARGET_LIBRARY_SONAME=
10f2d63a 9211
b12915c1 9212
10f2d63a
VZ
9213if test "$wxUSE_SHARED" = "yes"; then
9214 case "${host}" in
9215 *-hp-hpux* )
9216 if test "$GCC" = yes ; then
69ffe1d2 9217 SHARED_LD="${CC} -shared -fPIC -o"
10f2d63a
VZ
9218 PIC_FLAG="-fPIC"
9219 else
f6bcfd97
BP
9220 LDFLAGS="-L/usr/lib"
9221
10f2d63a
VZ
9222 SHARED_LD="${CXX} -b -o"
9223 PIC_FLAG="+Z"
9224 fi
f6bcfd97
BP
9225 WX_LIBRARY_NAME_SHARED="libwx_${TOOLKIT_NAME}.sl"
9226 WX_LIBRARY_NAME_SHARED_GL="libwx_${TOOLKIT_NAME}_gl.sl"
c661ecca 9227 if test "$wxUSE_OPENGL" = "yes"; then
f6bcfd97 9228 WX_ALL_INSTALLED="preinstall_gl"
c661ecca
RR
9229 WX_ALL="${WX_LIBRARY_NAME_SHARED} ${WX_LIBRARY_NAME_SHARED_GL}"
9230 else
9231 WX_ALL="${WX_LIBRARY_NAME_SHARED}"
9232 fi
10f2d63a 9233 ;;
b12915c1
VZ
9234
9235 *-*-linux* )
10f2d63a
VZ
9236 SHARED_LD="${CC} -shared -o"
9237 PIC_FLAG="-fPIC"
00cf1208 9238 if test "$wxUSE_BURNT_NAME" = "yes" ; then
05cdfc6f 9239 BURNT_LIBRARY_NAME="-Wl,-soname,${WX_LIBRARY_LINK1}"
bdad4e7e 9240 BURNT_LIBRARY_NAME_GL="-Wl,-soname,${WX_LIBRARY_LINK1_GL}"
f6bcfd97 9241 WX_TARGET_LIBRARY_SONAME="-Wl,-soname,\$(TARGETLIB_LINK1)"
00cf1208 9242 fi
c661ecca
RR
9243 if test "$wxUSE_OPENGL" = "yes"; then
9244 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
9245 WX_ALL="CREATE_LINKS CREATE_LINKS_GL"
9246 else
9247 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
9248 WX_ALL="CREATE_LINKS"
422107f9 9249 fi
00cf1208 9250 ;;
10f2d63a
VZ
9251 *-*-irix5* | *-*-irix6* )
9252 if test "$GCC" = yes ; then
9253 SHARED_LD="${CC} -shared -o"
9254 PIC_FLAG="-fPIC"
9255 else
9256 SHARED_LD="${CXX} -shared -o"
9257 fi
c661ecca
RR
9258 if test "$wxUSE_OPENGL" = "yes"; then
9259 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
9260 WX_ALL="CREATE_LINKS CREATE_LINKS_GL"
9261 else
9262 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
9263 WX_ALL="CREATE_LINKS"
422107f9 9264 fi
10f2d63a
VZ
9265 ;;
9266 *-*-solaris2* )
9267 if test "$GCC" = yes ; then
9268 SHARED_LD="${CC} -shared -o"
9269 PIC_FLAG="-fPIC"
f6bcfd97
BP
9270
9271 CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include"
10f2d63a
VZ
9272 else
9273 SHARED_LD="${CXX} -G -o"
9274 PIC_FLAG="-KPIC"
9275 fi
c661ecca
RR
9276 if test "$wxUSE_OPENGL" = "yes"; then
9277 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
9278 WX_ALL="CREATE_LINKS CREATE_LINKS_GL"
9279 else
9280 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
9281 WX_ALL="CREATE_LINKS"
9282 fi
10f2d63a
VZ
9283 ;;
9284 *-*-sunos4* )
9285 SHARED_LD="${CC} -shared -o"
9286 PIC_FLAG="-fPIC"
9287 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
9288 WX_ALL="CREATE_LINKS"
9289 ;;
b4085ce6 9290 *-*-freebsd* | *-*-netbsd* )
10f2d63a
VZ
9291 SHARED_LD="${CC} -shared -o"
9292 PIC_FLAG="-fPIC"
37d403aa
JS
9293 if test "$wxUSE_OPENGL" = "yes"; then
9294 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
9295 WX_ALL="CREATE_LINKS CREATE_LINKS_GL"
9296 else
9297 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
9298 WX_ALL="CREATE_LINKS"
9299 fi
10f2d63a 9300 ;;
b4085ce6 9301 *-*-darwin* )
ea5999b9
GD
9302 SHARED_LD="${CXX} -dynamiclib -o"
9303 PIC_FLAG="-dynamic -fPIC"
b4085ce6
GD
9304 if test "$wxUSE_OPENGL" = "yes"; then
9305 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
9306 WX_ALL="CREATE_LINKS CREATE_LINKS_GL"
9307 else
9308 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
9309 WX_ALL="CREATE_LINKS"
9310 fi
f3c067d2
GD
9311 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}-${WX_RELEASE}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}.dylib"
9312 WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}.dylib"
9313 WX_LIBRARY_LINK1="lib${WX_LIBRARY}-${WX_RELEASE}.${WX_CURRENT}.dylib"
9314 WX_LIBRARY_LINK2="lib${WX_LIBRARY}-${WX_RELEASE}.dylib"
9315 WX_LIBRARY_LINK3="lib${WX_LIBRARY}.dylib"
9316 WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.${WX_CURRENT}.dylib"
9317 WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.dylib"
9318 WX_LIBRARY_LINK3_GL="lib${WX_LIBRARY}_gl.dylib"
b4085ce6 9319 ;;
10f2d63a
VZ
9320 *-*-osf* )
9321 SHARED_LD="${CXX} -shared -o"
9322 PIC_FLAG="-fPIC"
9323 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
9324 WX_ALL="CREATE_LINKS"
9325 ;;
9326 *-*-dgux5* )
9327 SHARED_LD="${CXX} -shared -o"
9328 PIC_FLAG="-fPIC"
9329 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
9330 WX_ALL="CREATE_LINKS"
9331 ;;
9332 *-*-sysv5* )
9333 SHARED_LD="${CC} -shared -o"
9334 PIC_FLAG="-fPIC"
9335 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
9336 WX_ALL="CREATE_LINKS"
9337 ;;
9338 *-*-aix* )
9339 SHARED_LD="/usr/lpp/xlC/bin/makeC++SharedLib -p 0 -o"
9340 WX_ALL=${WX_LIBRARY_NAME_SHARED}
9341 ;;
9342 *-*-cygwin32* )
9343 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
bdad4e7e 9344 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}"
f6bcfd97
BP
9345 if test "$wxUSE_OPENGL" = "yes"; then
9346 WX_ALL_INSTALLED="preinstall_gl"
9347 WX_ALL="${WX_LIBRARY_NAME_STATIC} ${WX_LIBRARY_NAME_STATIC_GL}"
9348 else
9349 WX_ALL="${WX_LIBRARY_NAME_STATIC}"
9350 fi
10f2d63a 9351 ;;
b12915c1 9352 *-*-mingw32* )
10f2d63a 9353 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
bdad4e7e 9354 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}"
f6bcfd97
BP
9355 if test "$wxUSE_OPENGL" = "yes"; then
9356 WX_ALL_INSTALLED="preinstall_gl"
9357 WX_ALL="${WX_LIBRARY_NAME_STATIC} ${WX_LIBRARY_NAME_STATIC_GL}"
9358 else
9359 WX_ALL="${WX_LIBRARY_NAME_STATIC}"
9360 fi
10f2d63a
VZ
9361 ;;
9362 *-pc-os2_emx )
e07802fc
VZ
9363 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
9364 WX_ALL="${WX_LIBRARY_NAME_STATIC}"
10f2d63a 9365 ;;
b12915c1 9366 *-*-beos* )
e2b8b066 9367 SHARED_LD="${LD} -shared -o"
b12915c1
VZ
9368 PIC_FLAG="-fPIC"
9369 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
9370 WX_ALL="CREATE_LINKS"
9371 ;;
10f2d63a
VZ
9372 *)
9373 { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; }
9374 esac
9375
9376 if test "x$WX_TARGET_LIBRARY" = "x"; then
9377 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}"
bdad4e7e 9378 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_SHARED_GL}"
10f2d63a 9379 fi
3711412e 9380 WX_TARGET_LIBRARY_TYPE="so"
10f2d63a
VZ
9381else
9382 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
bdad4e7e 9383 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}"
f6bcfd97
BP
9384
9385 if test "$wxUSE_OPENGL" = "yes"; then
9386 WX_ALL_INSTALLED="preinstall_gl"
9387 WX_ALL="${WX_LIBRARY_NAME_STATIC} ${WX_LIBRARY_NAME_STATIC_GL}"
9388 else
9389 WX_ALL="${WX_LIBRARY_NAME_STATIC}"
9390 fi
9391
9392 if test "$wxUSE_GUI" = "no"; then
9393 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
9394 fi
9395
3711412e 9396 WX_TARGET_LIBRARY_TYPE="a"
10f2d63a
VZ
9397fi
9398
9399
9400for ac_hdr in strings.h
9401do
9402ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9403echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
0046ff7c 9404echo "configure:9405: checking for $ac_hdr" >&5
10f2d63a
VZ
9405if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9406 echo $ac_n "(cached) $ac_c" 1>&6
9407else
9408 cat > conftest.$ac_ext <<EOF
0046ff7c 9409#line 9410 "configure"
10f2d63a
VZ
9410#include "confdefs.h"
9411#include <$ac_hdr>
9412EOF
9413ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
0046ff7c 9414{ (eval echo configure:9415: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
9415ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9416if test -z "$ac_err"; then
9417 rm -rf conftest*
9418 eval "ac_cv_header_$ac_safe=yes"
9419else
9420 echo "$ac_err" >&5
9421 echo "configure: failed program was:" >&5
9422 cat conftest.$ac_ext >&5
9423 rm -rf conftest*
9424 eval "ac_cv_header_$ac_safe=no"
9425fi
9426rm -f conftest*
9427fi
9428if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9429 echo "$ac_t""yes" 1>&6
9430 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9431 cat >> confdefs.h <<EOF
9432#define $ac_tr_hdr 1
9433EOF
9434
9435else
9436 echo "$ac_t""no" 1>&6
9437fi
9438done
9439
9440for ac_hdr in unistd.h
9441do
9442ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9443echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
0046ff7c 9444echo "configure:9445: checking for $ac_hdr" >&5
10f2d63a
VZ
9445if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9446 echo $ac_n "(cached) $ac_c" 1>&6
9447else
9448 cat > conftest.$ac_ext <<EOF
0046ff7c 9449#line 9450 "configure"
10f2d63a
VZ
9450#include "confdefs.h"
9451#include <$ac_hdr>
9452EOF
9453ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
0046ff7c 9454{ (eval echo configure:9455: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
9455ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9456if test -z "$ac_err"; then
9457 rm -rf conftest*
9458 eval "ac_cv_header_$ac_safe=yes"
9459else
9460 echo "$ac_err" >&5
9461 echo "configure: failed program was:" >&5
9462 cat conftest.$ac_ext >&5
9463 rm -rf conftest*
9464 eval "ac_cv_header_$ac_safe=no"
9465fi
9466rm -f conftest*
9467fi
9468if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9469 echo "$ac_t""yes" 1>&6
9470 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9471 cat >> confdefs.h <<EOF
9472#define $ac_tr_hdr 1
9473EOF
9474
9475else
9476 echo "$ac_t""no" 1>&6
9477fi
9478done
9479
0fb0dd83 9480for ac_hdr in fcntl.h
10f2d63a
VZ
9481do
9482ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9483echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
0046ff7c 9484echo "configure:9485: checking for $ac_hdr" >&5
10f2d63a
VZ
9485if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9486 echo $ac_n "(cached) $ac_c" 1>&6
9487else
9488 cat > conftest.$ac_ext <<EOF
0046ff7c 9489#line 9490 "configure"
10f2d63a
VZ
9490#include "confdefs.h"
9491#include <$ac_hdr>
9492EOF
9493ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
0046ff7c 9494{ (eval echo configure:9495: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
9495ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9496if test -z "$ac_err"; then
9497 rm -rf conftest*
9498 eval "ac_cv_header_$ac_safe=yes"
9499else
9500 echo "$ac_err" >&5
9501 echo "configure: failed program was:" >&5
9502 cat conftest.$ac_ext >&5
9503 rm -rf conftest*
9504 eval "ac_cv_header_$ac_safe=no"
9505fi
9506rm -f conftest*
9507fi
9508if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9509 echo "$ac_t""yes" 1>&6
9510 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9511 cat >> confdefs.h <<EOF
9512#define $ac_tr_hdr 1
9513EOF
9514
9515else
9516 echo "$ac_t""no" 1>&6
9517fi
9518done
9519
0fb0dd83 9520for ac_hdr in wchar.h
10f2d63a
VZ
9521do
9522ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9523echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
0046ff7c 9524echo "configure:9525: checking for $ac_hdr" >&5
10f2d63a
VZ
9525if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9526 echo $ac_n "(cached) $ac_c" 1>&6
9527else
9528 cat > conftest.$ac_ext <<EOF
0046ff7c 9529#line 9530 "configure"
10f2d63a
VZ
9530#include "confdefs.h"
9531#include <$ac_hdr>
9532EOF
9533ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
0046ff7c 9534{ (eval echo configure:9535: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
9535ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9536if test -z "$ac_err"; then
9537 rm -rf conftest*
9538 eval "ac_cv_header_$ac_safe=yes"
9539else
9540 echo "$ac_err" >&5
9541 echo "configure: failed program was:" >&5
9542 cat conftest.$ac_ext >&5
9543 rm -rf conftest*
9544 eval "ac_cv_header_$ac_safe=no"
9545fi
9546rm -f conftest*
9547fi
9548if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9549 echo "$ac_t""yes" 1>&6
9550 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9551 cat >> confdefs.h <<EOF
9552#define $ac_tr_hdr 1
9553EOF
9554
9555else
9556 echo "$ac_t""no" 1>&6
9557fi
9558done
9559
0fb0dd83 9560for ac_hdr in wcstr.h
10f2d63a
VZ
9561do
9562ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9563echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
0046ff7c 9564echo "configure:9565: checking for $ac_hdr" >&5
10f2d63a
VZ
9565if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9566 echo $ac_n "(cached) $ac_c" 1>&6
9567else
9568 cat > conftest.$ac_ext <<EOF
0046ff7c 9569#line 9570 "configure"
10f2d63a
VZ
9570#include "confdefs.h"
9571#include <$ac_hdr>
9572EOF
9573ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
0046ff7c 9574{ (eval echo configure:9575: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6f72b082
OK
9575ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9576if test -z "$ac_err"; then
9577 rm -rf conftest*
9578 eval "ac_cv_header_$ac_safe=yes"
9579else
9580 echo "$ac_err" >&5
9581 echo "configure: failed program was:" >&5
9582 cat conftest.$ac_ext >&5
9583 rm -rf conftest*
9584 eval "ac_cv_header_$ac_safe=no"
9585fi
9586rm -f conftest*
9587fi
9588if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9589 echo "$ac_t""yes" 1>&6
9590 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9591 cat >> confdefs.h <<EOF
9592#define $ac_tr_hdr 1
9593EOF
9594
9595else
9596 echo "$ac_t""no" 1>&6
9597fi
9598done
9599
0fb0dd83 9600for ac_hdr in fnmatch.h
6f72b082
OK
9601do
9602ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9603echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
0046ff7c 9604echo "configure:9605: checking for $ac_hdr" >&5
6f72b082
OK
9605if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9606 echo $ac_n "(cached) $ac_c" 1>&6
9607else
9608 cat > conftest.$ac_ext <<EOF
0046ff7c 9609#line 9610 "configure"
6f72b082
OK
9610#include "confdefs.h"
9611#include <$ac_hdr>
9612EOF
9613ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
0046ff7c 9614{ (eval echo configure:9615: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6f72b082
OK
9615ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9616if test -z "$ac_err"; then
9617 rm -rf conftest*
9618 eval "ac_cv_header_$ac_safe=yes"
9619else
9620 echo "$ac_err" >&5
9621 echo "configure: failed program was:" >&5
9622 cat conftest.$ac_ext >&5
9623 rm -rf conftest*
9624 eval "ac_cv_header_$ac_safe=no"
9625fi
9626rm -f conftest*
9627fi
9628if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9629 echo "$ac_t""yes" 1>&6
9630 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9631 cat >> confdefs.h <<EOF
9632#define $ac_tr_hdr 1
9633EOF
9634
9635else
9636 echo "$ac_t""no" 1>&6
9637fi
9638done
9639
0fb0dd83 9640for ac_hdr in iconv.h
6f72b082
OK
9641do
9642ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9643echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
0046ff7c 9644echo "configure:9645: checking for $ac_hdr" >&5
6f72b082
OK
9645if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9646 echo $ac_n "(cached) $ac_c" 1>&6
9647else
9648 cat > conftest.$ac_ext <<EOF
0046ff7c 9649#line 9650 "configure"
6f72b082
OK
9650#include "confdefs.h"
9651#include <$ac_hdr>
9652EOF
9653ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
0046ff7c 9654{ (eval echo configure:9655: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
9655ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9656if test -z "$ac_err"; then
9657 rm -rf conftest*
9658 eval "ac_cv_header_$ac_safe=yes"
9659else
9660 echo "$ac_err" >&5
9661 echo "configure: failed program was:" >&5
9662 cat conftest.$ac_ext >&5
9663 rm -rf conftest*
9664 eval "ac_cv_header_$ac_safe=no"
9665fi
9666rm -f conftest*
9667fi
9668if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9669 echo "$ac_t""yes" 1>&6
9670 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9671 cat >> confdefs.h <<EOF
9672#define $ac_tr_hdr 1
9673EOF
9674
9675else
9676 echo "$ac_t""no" 1>&6
9677fi
9678done
9679
0fb0dd83
RR
9680for ac_hdr in langinfo.h
9681do
9682ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9683echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
0046ff7c 9684echo "configure:9685: checking for $ac_hdr" >&5
0fb0dd83
RR
9685if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9686 echo $ac_n "(cached) $ac_c" 1>&6
9687else
9688 cat > conftest.$ac_ext <<EOF
0046ff7c 9689#line 9690 "configure"
0fb0dd83
RR
9690#include "confdefs.h"
9691#include <$ac_hdr>
9692EOF
9693ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
0046ff7c 9694{ (eval echo configure:9695: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
0fb0dd83
RR
9695ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9696if test -z "$ac_err"; then
9697 rm -rf conftest*
9698 eval "ac_cv_header_$ac_safe=yes"
9699else
9700 echo "$ac_err" >&5
9701 echo "configure: failed program was:" >&5
9702 cat conftest.$ac_ext >&5
9703 rm -rf conftest*
9704 eval "ac_cv_header_$ac_safe=no"
9705fi
9706rm -f conftest*
9707fi
9708if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9709 echo "$ac_t""yes" 1>&6
9710 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9711 cat >> confdefs.h <<EOF
9712#define $ac_tr_hdr 1
9713EOF
9714
9715else
9716 echo "$ac_t""no" 1>&6
9717fi
9718done
9719
10f2d63a 9720
73fd4a60
VZ
9721if test "$wxUSE_GUI" = "yes"; then
9722 if test "$wxUSE_UNIX" = "yes"; then
9723 for ac_hdr in X11/XKBlib.h
10f2d63a
VZ
9724do
9725ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9726echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
0046ff7c 9727echo "configure:9728: checking for $ac_hdr" >&5
10f2d63a
VZ
9728if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9729 echo $ac_n "(cached) $ac_c" 1>&6
9730else
9731 cat > conftest.$ac_ext <<EOF
0046ff7c 9732#line 9733 "configure"
10f2d63a
VZ
9733#include "confdefs.h"
9734#include <$ac_hdr>
9735EOF
9736ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
0046ff7c 9737{ (eval echo configure:9738: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
9738ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9739if test -z "$ac_err"; then
9740 rm -rf conftest*
9741 eval "ac_cv_header_$ac_safe=yes"
9742else
9743 echo "$ac_err" >&5
9744 echo "configure: failed program was:" >&5
9745 cat conftest.$ac_ext >&5
9746 rm -rf conftest*
9747 eval "ac_cv_header_$ac_safe=no"
9748fi
9749rm -f conftest*
9750fi
9751if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9752 echo "$ac_t""yes" 1>&6
9753 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9754 cat >> confdefs.h <<EOF
9755#define $ac_tr_hdr 1
9756EOF
9757
9758else
9759 echo "$ac_t""no" 1>&6
9760fi
9761done
9762
73fd4a60 9763 fi
10f2d63a
VZ
9764fi
9765
9766
9767echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
0046ff7c 9768echo "configure:9769: checking for ANSI C header files" >&5
10f2d63a
VZ
9769if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
9770 echo $ac_n "(cached) $ac_c" 1>&6
9771else
9772 cat > conftest.$ac_ext <<EOF
0046ff7c 9773#line 9774 "configure"
10f2d63a
VZ
9774#include "confdefs.h"
9775#include <stdlib.h>
9776#include <stdarg.h>
9777#include <string.h>
9778#include <float.h>
9779EOF
9780ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
0046ff7c 9781{ (eval echo configure:9782: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
9782ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9783if test -z "$ac_err"; then
9784 rm -rf conftest*
9785 ac_cv_header_stdc=yes
9786else
9787 echo "$ac_err" >&5
9788 echo "configure: failed program was:" >&5
9789 cat conftest.$ac_ext >&5
9790 rm -rf conftest*
9791 ac_cv_header_stdc=no
9792fi
9793rm -f conftest*
9794
9795if test $ac_cv_header_stdc = yes; then
9796 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9797cat > conftest.$ac_ext <<EOF
0046ff7c 9798#line 9799 "configure"
10f2d63a
VZ
9799#include "confdefs.h"
9800#include <string.h>
9801EOF
9802if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9803 egrep "memchr" >/dev/null 2>&1; then
9804 :
9805else
9806 rm -rf conftest*
9807 ac_cv_header_stdc=no
9808fi
9809rm -f conftest*
9810
9811fi
9812
9813if test $ac_cv_header_stdc = yes; then
9814 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9815cat > conftest.$ac_ext <<EOF
0046ff7c 9816#line 9817 "configure"
10f2d63a
VZ
9817#include "confdefs.h"
9818#include <stdlib.h>
9819EOF
9820if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9821 egrep "free" >/dev/null 2>&1; then
9822 :
9823else
9824 rm -rf conftest*
9825 ac_cv_header_stdc=no
9826fi
9827rm -f conftest*
9828
9829fi
9830
9831if test $ac_cv_header_stdc = yes; then
9832 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9833if test "$cross_compiling" = yes; then
9834 :
9835else
9836 cat > conftest.$ac_ext <<EOF
0046ff7c 9837#line 9838 "configure"
10f2d63a
VZ
9838#include "confdefs.h"
9839#include <ctype.h>
9840#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9841#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9842#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9843int main () { int i; for (i = 0; i < 256; i++)
9844if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
9845exit (0); }
9846
9847EOF
0046ff7c 9848if { (eval echo configure:9849: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10f2d63a
VZ
9849then
9850 :
9851else
9852 echo "configure: failed program was:" >&5
9853 cat conftest.$ac_ext >&5
9854 rm -fr conftest*
9855 ac_cv_header_stdc=no
9856fi
9857rm -fr conftest*
9858fi
9859
9860fi
9861fi
9862
9863echo "$ac_t""$ac_cv_header_stdc" 1>&6
9864if test $ac_cv_header_stdc = yes; then
9865 cat >> confdefs.h <<\EOF
9866#define STDC_HEADERS 1
9867EOF
9868
9869fi
9870
9871echo $ac_n "checking for mode_t""... $ac_c" 1>&6
0046ff7c 9872echo "configure:9873: checking for mode_t" >&5
10f2d63a
VZ
9873if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
9874 echo $ac_n "(cached) $ac_c" 1>&6
9875else
9876 cat > conftest.$ac_ext <<EOF
0046ff7c 9877#line 9878 "configure"
10f2d63a
VZ
9878#include "confdefs.h"
9879#include <sys/types.h>
9880#if STDC_HEADERS
9881#include <stdlib.h>
9882#include <stddef.h>
9883#endif
9884EOF
9885if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9886 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
9887 rm -rf conftest*
9888 ac_cv_type_mode_t=yes
9889else
9890 rm -rf conftest*
9891 ac_cv_type_mode_t=no
9892fi
9893rm -f conftest*
9894
9895fi
9896echo "$ac_t""$ac_cv_type_mode_t" 1>&6
9897if test $ac_cv_type_mode_t = no; then
9898 cat >> confdefs.h <<\EOF
9899#define mode_t int
9900EOF
9901
9902fi
9903
9904echo $ac_n "checking for off_t""... $ac_c" 1>&6
0046ff7c 9905echo "configure:9906: checking for off_t" >&5
10f2d63a
VZ
9906if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
9907 echo $ac_n "(cached) $ac_c" 1>&6
9908else
9909 cat > conftest.$ac_ext <<EOF
0046ff7c 9910#line 9911 "configure"
10f2d63a
VZ
9911#include "confdefs.h"
9912#include <sys/types.h>
9913#if STDC_HEADERS
9914#include <stdlib.h>
9915#include <stddef.h>
9916#endif
9917EOF
9918if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9919 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
9920 rm -rf conftest*
9921 ac_cv_type_off_t=yes
9922else
9923 rm -rf conftest*
9924 ac_cv_type_off_t=no
9925fi
9926rm -f conftest*
9927
9928fi
9929echo "$ac_t""$ac_cv_type_off_t" 1>&6
9930if test $ac_cv_type_off_t = no; then
9931 cat >> confdefs.h <<\EOF
9932#define off_t long
9933EOF
9934
9935fi
9936
9937echo $ac_n "checking for pid_t""... $ac_c" 1>&6
0046ff7c 9938echo "configure:9939: checking for pid_t" >&5
10f2d63a
VZ
9939if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
9940 echo $ac_n "(cached) $ac_c" 1>&6
9941else
9942 cat > conftest.$ac_ext <<EOF
0046ff7c 9943#line 9944 "configure"
10f2d63a
VZ
9944#include "confdefs.h"
9945#include <sys/types.h>
9946#if STDC_HEADERS
9947#include <stdlib.h>
9948#include <stddef.h>
9949#endif
9950EOF
9951if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9952 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
9953 rm -rf conftest*
9954 ac_cv_type_pid_t=yes
9955else
9956 rm -rf conftest*
9957 ac_cv_type_pid_t=no
9958fi
9959rm -f conftest*
9960
9961fi
9962echo "$ac_t""$ac_cv_type_pid_t" 1>&6
9963if test $ac_cv_type_pid_t = no; then
9964 cat >> confdefs.h <<\EOF
9965#define pid_t int
9966EOF
9967
9968fi
9969
9970echo $ac_n "checking for size_t""... $ac_c" 1>&6
0046ff7c 9971echo "configure:9972: checking for size_t" >&5
10f2d63a
VZ
9972if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
9973 echo $ac_n "(cached) $ac_c" 1>&6
9974else
9975 cat > conftest.$ac_ext <<EOF
0046ff7c 9976#line 9977 "configure"
10f2d63a
VZ
9977#include "confdefs.h"
9978#include <sys/types.h>
9979#if STDC_HEADERS
9980#include <stdlib.h>
9981#include <stddef.h>
9982#endif
9983EOF
9984if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9985 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
9986 rm -rf conftest*
9987 ac_cv_type_size_t=yes
9988else
9989 rm -rf conftest*
9990 ac_cv_type_size_t=no
9991fi
9992rm -f conftest*
9993
9994fi
9995echo "$ac_t""$ac_cv_type_size_t" 1>&6
9996if test $ac_cv_type_size_t = no; then
9997 cat >> confdefs.h <<\EOF
9998#define size_t unsigned
9999EOF
10000
10001fi
10002
10003echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
0046ff7c 10004echo "configure:10005: checking for uid_t in sys/types.h" >&5
10f2d63a
VZ
10005if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
10006 echo $ac_n "(cached) $ac_c" 1>&6
10007else
10008 cat > conftest.$ac_ext <<EOF
0046ff7c 10009#line 10010 "configure"
10f2d63a
VZ
10010#include "confdefs.h"
10011#include <sys/types.h>
10012EOF
10013if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10014 egrep "uid_t" >/dev/null 2>&1; then
10015 rm -rf conftest*
10016 ac_cv_type_uid_t=yes
10017else
10018 rm -rf conftest*
10019 ac_cv_type_uid_t=no
10020fi
10021rm -f conftest*
10022
10023fi
10024
10025echo "$ac_t""$ac_cv_type_uid_t" 1>&6
10026if test $ac_cv_type_uid_t = no; then
10027 cat >> confdefs.h <<\EOF
10028#define uid_t int
10029EOF
10030
10031 cat >> confdefs.h <<\EOF
10032#define gid_t int
10033EOF
10034
10035fi
10036
10037
0046ff7c
VS
10038echo $ac_n "checking for wchar_t""... $ac_c" 1>&6
10039echo "configure:10040: checking for wchar_t" >&5
10040if eval "test \"`echo '$''{'wx_cv_type_wchar_t'+set}'`\" = set"; then
10041 echo $ac_n "(cached) $ac_c" 1>&6
10042else
10043
10044 cat > conftest.$ac_ext <<EOF
10045#line 10046 "configure"
10046#include "confdefs.h"
10047#include <wchar.h>
10048int main() {
10049
10050 wchar_t wc, *ws;
10051 wc = L'a';
10052 ws = L"Hello, world!";
10053
10054; return 0; }
10055EOF
10056if { (eval echo configure:10057: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10057 rm -rf conftest*
10058 wx_cv_type_wchar_t=yes
10059else
10060 echo "configure: failed program was:" >&5
10061 cat conftest.$ac_ext >&5
10062 rm -rf conftest*
10063 wx_cv_type_wchar_t=no
10064fi
10065rm -f conftest*
10066
10067fi
10068
10069echo "$ac_t""$wx_cv_type_wchar_t" 1>&6
10070if test "$wx_cv_type_wchar_t" = yes ; then
10071 cat >> confdefs.h <<\EOF
10072#define wxUSE_WCHAR_T 1
10073EOF
10074
10075fi
10076
10f2d63a 10077
b12915c1 10078echo $ac_n "checking for pw_gecos in struct passwd""... $ac_c" 1>&6
0046ff7c 10079echo "configure:10080: checking for pw_gecos in struct passwd" >&5
b12915c1
VZ
10080if eval "test \"`echo '$''{'wx_cv_struct_pw_gecos'+set}'`\" = set"; then
10081 echo $ac_n "(cached) $ac_c" 1>&6
10082else
10083
10084 cat > conftest.$ac_ext <<EOF
0046ff7c 10085#line 10086 "configure"
b12915c1
VZ
10086#include "confdefs.h"
10087#include <pwd.h>
10088int main() {
10089
10090 char *p;
10091 struct passwd *pw;
10092 p = pw->pw_gecos;
10093
10094; return 0; }
10095EOF
0046ff7c 10096if { (eval echo configure:10097: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
b12915c1
VZ
10097 rm -rf conftest*
10098
10099 wx_cv_struct_pw_gecos=yes
b12915c1
VZ
10100
10101else
10102 echo "configure: failed program was:" >&5
10103 cat conftest.$ac_ext >&5
10104 rm -rf conftest*
10105
10106 wx_cv_struct_pw_gecos=no
10107
10108
10109fi
10110rm -f conftest*
10111
10112
10113fi
10114
10115echo "$ac_t""$wx_cv_struct_pw_gecos" 1>&6
10116
bd3277fe
VZ
10117if test "$wx_cv_struct_pw_gecos" = "yes"; then
10118 cat >> confdefs.h <<\EOF
10119#define HAVE_PW_GECOS 1
10120EOF
10121
10122fi
10123
10f2d63a
VZ
10124
10125echo $ac_n "checking for working const""... $ac_c" 1>&6
0046ff7c 10126echo "configure:10127: checking for working const" >&5
10f2d63a
VZ
10127if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
10128 echo $ac_n "(cached) $ac_c" 1>&6
10129else
10130 cat > conftest.$ac_ext <<EOF
0046ff7c 10131#line 10132 "configure"
10f2d63a
VZ
10132#include "confdefs.h"
10133
10134int main() {
10135
10136/* Ultrix mips cc rejects this. */
186837b0 10137typedef int charset[2]; const charset x;
10f2d63a
VZ
10138/* SunOS 4.1.1 cc rejects this. */
10139char const *const *ccp;
10140char **p;
10141/* NEC SVR4.0.2 mips cc rejects this. */
10142struct point {int x, y;};
10143static struct point const zero = {0,0};
10144/* AIX XL C 1.02.0.0 rejects this.
10145 It does not let you subtract one const X* pointer from another in an arm
10146 of an if-expression whose if-part is not a constant expression */
10147const char *g = "string";
10148ccp = &g + (g ? g-g : 0);
10149/* HPUX 7.0 cc rejects these. */
10150++ccp;
10151p = (char**) ccp;
10152ccp = (char const *const *) p;
10153{ /* SCO 3.2v4 cc rejects this. */
10154 char *t;
10155 char const *s = 0 ? (char *) 0 : (char const *) 0;
10156
10157 *t++ = 0;
10158}
10159{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
10160 int x[] = {25, 17};
10161 const int *foo = &x[0];
10162 ++foo;
10163}
10164{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
10165 typedef const int *iptr;
10166 iptr p = 0;
10167 ++p;
10168}
10169{ /* AIX XL C 1.02.0.0 rejects this saying
10170 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
10171 struct s { int j; const int *ap[3]; };
10172 struct s *b; b->j = 5;
10173}
10174{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
10175 const int foo = 10;
10176}
10177
10178; return 0; }
10179EOF
0046ff7c 10180if { (eval echo configure:10181: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10f2d63a
VZ
10181 rm -rf conftest*
10182 ac_cv_c_const=yes
10183else
10184 echo "configure: failed program was:" >&5
10185 cat conftest.$ac_ext >&5
10186 rm -rf conftest*
10187 ac_cv_c_const=no
10188fi
10189rm -f conftest*
10190fi
10191
10192echo "$ac_t""$ac_cv_c_const" 1>&6
10193if test $ac_cv_c_const = no; then
10194 cat >> confdefs.h <<\EOF
10195#define const
10196EOF
10197
10198fi
10199
10200echo $ac_n "checking for inline""... $ac_c" 1>&6
0046ff7c 10201echo "configure:10202: checking for inline" >&5
10f2d63a
VZ
10202if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
10203 echo $ac_n "(cached) $ac_c" 1>&6
10204else
10205 ac_cv_c_inline=no
10206for ac_kw in inline __inline__ __inline; do
10207 cat > conftest.$ac_ext <<EOF
0046ff7c 10208#line 10209 "configure"
10f2d63a
VZ
10209#include "confdefs.h"
10210
10211int main() {
186837b0 10212} $ac_kw foo() {
10f2d63a
VZ
10213; return 0; }
10214EOF
0046ff7c 10215if { (eval echo configure:10216: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10f2d63a
VZ
10216 rm -rf conftest*
10217 ac_cv_c_inline=$ac_kw; break
10218else
10219 echo "configure: failed program was:" >&5
10220 cat conftest.$ac_ext >&5
10221fi
10222rm -f conftest*
10223done
10224
10225fi
10226
10227echo "$ac_t""$ac_cv_c_inline" 1>&6
10228case "$ac_cv_c_inline" in
10229 inline | yes) ;;
10230 no) cat >> confdefs.h <<\EOF
10231#define inline
10232EOF
10233 ;;
10234 *) cat >> confdefs.h <<EOF
10235#define inline $ac_cv_c_inline
10236EOF
10237 ;;
10238esac
10239
10240
10241echo $ac_n "checking size of char""... $ac_c" 1>&6
0046ff7c 10242echo "configure:10243: checking size of char" >&5
10f2d63a
VZ
10243if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then
10244 echo $ac_n "(cached) $ac_c" 1>&6
10245else
10246 if test "$cross_compiling" = yes; then
10247 ac_cv_sizeof_char=1
10248else
10249 cat > conftest.$ac_ext <<EOF
0046ff7c 10250#line 10251 "configure"
10f2d63a
VZ
10251#include "confdefs.h"
10252#include <stdio.h>
10253main()
10254{
10255 FILE *f=fopen("conftestval", "w");
10256 if (!f) exit(1);
10257 fprintf(f, "%d\n", sizeof(char));
10258 exit(0);
10259}
10260EOF
0046ff7c 10261if { (eval echo configure:10262: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10f2d63a
VZ
10262then
10263 ac_cv_sizeof_char=`cat conftestval`
10264else
10265 echo "configure: failed program was:" >&5
10266 cat conftest.$ac_ext >&5
10267 rm -fr conftest*
10268 ac_cv_sizeof_char=0
10269fi
10270rm -fr conftest*
10271fi
10272
10273fi
10274echo "$ac_t""$ac_cv_sizeof_char" 1>&6
10275cat >> confdefs.h <<EOF
10276#define SIZEOF_CHAR $ac_cv_sizeof_char
10277EOF
10278
10279
6f72b082 10280echo $ac_n "checking size of wchar_t""... $ac_c" 1>&6
0046ff7c 10281echo "configure:10282: checking size of wchar_t" >&5
6f72b082
OK
10282if eval "test \"`echo '$''{'ac_cv_sizeof_wchar_t'+set}'`\" = set"; then
10283 echo $ac_n "(cached) $ac_c" 1>&6
10284else
10285 if test "$cross_compiling" = yes; then
10286 ac_cv_sizeof_wchar_t=4
10287else
10288 cat > conftest.$ac_ext <<EOF
0046ff7c 10289#line 10290 "configure"
6f72b082
OK
10290#include "confdefs.h"
10291#include <stdio.h>
10292main()
10293{
10294 FILE *f=fopen("conftestval", "w");
10295 if (!f) exit(1);
10296 fprintf(f, "%d\n", sizeof(wchar_t));
10297 exit(0);
10298}
10299EOF
0046ff7c 10300if { (eval echo configure:10301: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6f72b082
OK
10301then
10302 ac_cv_sizeof_wchar_t=`cat conftestval`
10303else
10304 echo "configure: failed program was:" >&5
10305 cat conftest.$ac_ext >&5
10306 rm -fr conftest*
10307 ac_cv_sizeof_wchar_t=0
10308fi
10309rm -fr conftest*
10310fi
10311
10312fi
10313echo "$ac_t""$ac_cv_sizeof_wchar_t" 1>&6
10314cat >> confdefs.h <<EOF
10315#define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
10316EOF
10317
10318
10f2d63a 10319echo $ac_n "checking size of short""... $ac_c" 1>&6
0046ff7c 10320echo "configure:10321: checking size of short" >&5
10f2d63a
VZ
10321if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
10322 echo $ac_n "(cached) $ac_c" 1>&6
10323else
10324 if test "$cross_compiling" = yes; then
10325 ac_cv_sizeof_short=2
10326else
10327 cat > conftest.$ac_ext <<EOF
0046ff7c 10328#line 10329 "configure"
10f2d63a
VZ
10329#include "confdefs.h"
10330#include <stdio.h>
10331main()
10332{
10333 FILE *f=fopen("conftestval", "w");
10334 if (!f) exit(1);
10335 fprintf(f, "%d\n", sizeof(short));
10336 exit(0);
10337}
10338EOF
0046ff7c 10339if { (eval echo configure:10340: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10f2d63a
VZ
10340then
10341 ac_cv_sizeof_short=`cat conftestval`
10342else
10343 echo "configure: failed program was:" >&5
10344 cat conftest.$ac_ext >&5
10345 rm -fr conftest*
10346 ac_cv_sizeof_short=0
10347fi
10348rm -fr conftest*
10349fi
10350
10351fi
10352echo "$ac_t""$ac_cv_sizeof_short" 1>&6
10353cat >> confdefs.h <<EOF
10354#define SIZEOF_SHORT $ac_cv_sizeof_short
10355EOF
10356
10357
10358echo $ac_n "checking size of int *""... $ac_c" 1>&6
0046ff7c 10359echo "configure:10360: checking size of int *" >&5
10f2d63a
VZ
10360if eval "test \"`echo '$''{'ac_cv_sizeof_int_p'+set}'`\" = set"; then
10361 echo $ac_n "(cached) $ac_c" 1>&6
10362else
10363 if test "$cross_compiling" = yes; then
10364 ac_cv_sizeof_int_p=4
10365else
10366 cat > conftest.$ac_ext <<EOF
0046ff7c 10367#line 10368 "configure"
10f2d63a
VZ
10368#include "confdefs.h"
10369#include <stdio.h>
10370main()
10371{
10372 FILE *f=fopen("conftestval", "w");
10373 if (!f) exit(1);
10374 fprintf(f, "%d\n", sizeof(int *));
10375 exit(0);
10376}
10377EOF
0046ff7c 10378if { (eval echo configure:10379: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10f2d63a
VZ
10379then
10380 ac_cv_sizeof_int_p=`cat conftestval`
10381else
10382 echo "configure: failed program was:" >&5
10383 cat conftest.$ac_ext >&5
10384 rm -fr conftest*
10385 ac_cv_sizeof_int_p=0
10386fi
10387rm -fr conftest*
10388fi
10389
10390fi
10391echo "$ac_t""$ac_cv_sizeof_int_p" 1>&6
10392cat >> confdefs.h <<EOF
10393#define SIZEOF_INT_P $ac_cv_sizeof_int_p
10394EOF
10395
10396
10397echo $ac_n "checking size of int""... $ac_c" 1>&6
0046ff7c 10398echo "configure:10399: checking size of int" >&5
10f2d63a
VZ
10399if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
10400 echo $ac_n "(cached) $ac_c" 1>&6
10401else
10402 if test "$cross_compiling" = yes; then
10403 ac_cv_sizeof_int=4
10404else
10405 cat > conftest.$ac_ext <<EOF
0046ff7c 10406#line 10407 "configure"
10f2d63a
VZ
10407#include "confdefs.h"
10408#include <stdio.h>
10409main()
10410{
10411 FILE *f=fopen("conftestval", "w");
10412 if (!f) exit(1);
10413 fprintf(f, "%d\n", sizeof(int));
10414 exit(0);
10415}
10416EOF
0046ff7c 10417if { (eval echo configure:10418: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10f2d63a
VZ
10418then
10419 ac_cv_sizeof_int=`cat conftestval`
10420else
10421 echo "configure: failed program was:" >&5
10422 cat conftest.$ac_ext >&5
10423 rm -fr conftest*
10424 ac_cv_sizeof_int=0
10425fi
10426rm -fr conftest*
10427fi
10428
10429fi
10430echo "$ac_t""$ac_cv_sizeof_int" 1>&6
10431cat >> confdefs.h <<EOF
10432#define SIZEOF_INT $ac_cv_sizeof_int
10433EOF
10434
10435
10436echo $ac_n "checking size of long""... $ac_c" 1>&6
0046ff7c 10437echo "configure:10438: checking size of long" >&5
10f2d63a
VZ
10438if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
10439 echo $ac_n "(cached) $ac_c" 1>&6
10440else
10441 if test "$cross_compiling" = yes; then
10442 ac_cv_sizeof_long=4
10443else
10444 cat > conftest.$ac_ext <<EOF
0046ff7c 10445#line 10446 "configure"
10f2d63a
VZ
10446#include "confdefs.h"
10447#include <stdio.h>
10448main()
10449{
10450 FILE *f=fopen("conftestval", "w");
10451 if (!f) exit(1);
10452 fprintf(f, "%d\n", sizeof(long));
10453 exit(0);
10454}
10455EOF
0046ff7c 10456if { (eval echo configure:10457: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10f2d63a
VZ
10457then
10458 ac_cv_sizeof_long=`cat conftestval`
10459else
10460 echo "configure: failed program was:" >&5
10461 cat conftest.$ac_ext >&5
10462 rm -fr conftest*
10463 ac_cv_sizeof_long=0
10464fi
10465rm -fr conftest*
10466fi
10467
10468fi
10469echo "$ac_t""$ac_cv_sizeof_long" 1>&6
10470cat >> confdefs.h <<EOF
10471#define SIZEOF_LONG $ac_cv_sizeof_long
10472EOF
10473
10474
10475echo $ac_n "checking size of long long""... $ac_c" 1>&6
0046ff7c 10476echo "configure:10477: checking size of long long" >&5
10f2d63a
VZ
10477if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
10478 echo $ac_n "(cached) $ac_c" 1>&6
10479else
10480 if test "$cross_compiling" = yes; then
10481 ac_cv_sizeof_long_long=0
10482else
10483 cat > conftest.$ac_ext <<EOF
0046ff7c 10484#line 10485 "configure"
10f2d63a
VZ
10485#include "confdefs.h"
10486#include <stdio.h>
10487main()
10488{
10489 FILE *f=fopen("conftestval", "w");
10490 if (!f) exit(1);
10491 fprintf(f, "%d\n", sizeof(long long));
10492 exit(0);
10493}
10494EOF
0046ff7c 10495if { (eval echo configure:10496: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10f2d63a
VZ
10496then
10497 ac_cv_sizeof_long_long=`cat conftestval`
10498else
10499 echo "configure: failed program was:" >&5
10500 cat conftest.$ac_ext >&5
10501 rm -fr conftest*
10502 ac_cv_sizeof_long_long=0
10503fi
10504rm -fr conftest*
10505fi
10506
10507fi
10508echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
10509cat >> confdefs.h <<EOF
10510#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
10511EOF
10512
10513
10514
10515echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
0046ff7c 10516echo "configure:10517: checking whether byte ordering is bigendian" >&5
10f2d63a
VZ
10517if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
10518 echo $ac_n "(cached) $ac_c" 1>&6
10519else
10520 ac_cv_c_bigendian=unknown
10521# See if sys/param.h defines the BYTE_ORDER macro.
10522cat > conftest.$ac_ext <<EOF
0046ff7c 10523#line 10524 "configure"
10f2d63a
VZ
10524#include "confdefs.h"
10525#include <sys/types.h>
10526#include <sys/param.h>
10527int main() {
10528
10529#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
10530 bogus endian macros
10531#endif
10532; return 0; }
10533EOF
0046ff7c 10534if { (eval echo configure:10535: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10f2d63a
VZ
10535 rm -rf conftest*
10536 # It does; now see whether it defined to BIG_ENDIAN or not.
10537cat > conftest.$ac_ext <<EOF
0046ff7c 10538#line 10539 "configure"
10f2d63a
VZ
10539#include "confdefs.h"
10540#include <sys/types.h>
10541#include <sys/param.h>
10542int main() {
10543
10544#if BYTE_ORDER != BIG_ENDIAN
10545 not big endian
10546#endif
10547; return 0; }
10548EOF
0046ff7c 10549if { (eval echo configure:10550: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10f2d63a
VZ
10550 rm -rf conftest*
10551 ac_cv_c_bigendian=yes
10552else
10553 echo "configure: failed program was:" >&5
10554 cat conftest.$ac_ext >&5
10555 rm -rf conftest*
10556 ac_cv_c_bigendian=no
10557fi
10558rm -f conftest*
10559else
10560 echo "configure: failed program was:" >&5
10561 cat conftest.$ac_ext >&5
10562fi
10563rm -f conftest*
10564if test $ac_cv_c_bigendian = unknown; then
10565if test "$cross_compiling" = yes; then
10566 ac_cv_c_bigendian=unknown
10567else
10568 cat > conftest.$ac_ext <<EOF
0046ff7c 10569#line 10570 "configure"
10f2d63a
VZ
10570#include "confdefs.h"
10571main () {
10572 /* Are we little or big endian? From Harbison&Steele. */
10573 union
10574 {
10575 long l;
10576 char c[sizeof (long)];
10577 } u;
10578 u.l = 1;
10579 exit (u.c[sizeof (long) - 1] == 1);
10580}
10581EOF
0046ff7c 10582if { (eval echo configure:10583: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10f2d63a
VZ
10583then
10584 ac_cv_c_bigendian=no
10585else
10586 echo "configure: failed program was:" >&5
10587 cat conftest.$ac_ext >&5
10588 rm -fr conftest*
10589 ac_cv_c_bigendian=yes
10590fi
10591rm -fr conftest*
10592fi
10593
10594fi
10595fi
10596
10597echo "$ac_t""$ac_cv_c_bigendian" 1>&6
10598if test $ac_cv_c_bigendian = unknown; then
10599 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
10600fi
10601if test $ac_cv_c_bigendian = yes; then
10602 cat >> confdefs.h <<\EOF
10603#define WORDS_BIGENDIAN 1
10604EOF
10605
10606fi
10607
10608
10609
10610 if test "$cross_compiling" = "yes"; then
10611 cat >> confdefs.h <<\EOF
10612#define wxUSE_IOSTREAMH 1
10613EOF
10614
10615 else
10616
10617 ac_ext=C
10618# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10619ac_cpp='$CXXCPP $CPPFLAGS'
10620ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10621ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10622cross_compiling=$ac_cv_prog_cxx_cross
10623
10624
10625 for ac_hdr in iostream
10626do
10627ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10628echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
0046ff7c 10629echo "configure:10630: checking for $ac_hdr" >&5
10f2d63a
VZ
10630if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10631 echo $ac_n "(cached) $ac_c" 1>&6
10632else
10633 cat > conftest.$ac_ext <<EOF
0046ff7c 10634#line 10635 "configure"
10f2d63a
VZ
10635#include "confdefs.h"
10636#include <$ac_hdr>
10637EOF
10638ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
0046ff7c 10639{ (eval echo configure:10640: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
10640ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10641if test -z "$ac_err"; then
10642 rm -rf conftest*
10643 eval "ac_cv_header_$ac_safe=yes"
10644else
10645 echo "$ac_err" >&5
10646 echo "configure: failed program was:" >&5
10647 cat conftest.$ac_ext >&5
10648 rm -rf conftest*
10649 eval "ac_cv_header_$ac_safe=no"
10650fi
10651rm -f conftest*
10652fi
10653if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10654 echo "$ac_t""yes" 1>&6
10655 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10656 cat >> confdefs.h <<EOF
10657#define $ac_tr_hdr 1
10658EOF
10659
10660else
10661 echo "$ac_t""no" 1>&6
10662fi
10663done
10664
10665
10666 if test "x$HAVE_IOSTREAM" = x ; then
10667 cat >> confdefs.h <<\EOF
10668#define wxUSE_IOSTREAMH 1
10669EOF
10670
10671 else
10672 :
10673 fi
10674
10675 ac_ext=c
10676# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10677ac_cpp='$CPP $CPPFLAGS'
10678ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10679ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10680cross_compiling=$ac_cv_prog_cc_cross
10681
10682 fi
10683
10684
10685
10686 echo $ac_n "checking if C++ compiler supports bool""... $ac_c" 1>&6
0046ff7c 10687echo "configure:10688: checking if C++ compiler supports bool" >&5
10f2d63a
VZ
10688if eval "test \"`echo '$''{'wx_cv_cpp_bool'+set}'`\" = set"; then
10689 echo $ac_n "(cached) $ac_c" 1>&6
10690else
10691
10692
10693 ac_ext=C
10694# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10695ac_cpp='$CXXCPP $CPPFLAGS'
10696ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10697ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10698cross_compiling=$ac_cv_prog_cxx_cross
10699
10700
10701 cat > conftest.$ac_ext <<EOF
0046ff7c 10702#line 10703 "configure"
10f2d63a
VZ
10703#include "confdefs.h"
10704
10705
10706int main() {
10707
10708 bool b = true;
10709
10710 return 0;
10711
10712; return 0; }
10713EOF
0046ff7c 10714if { (eval echo configure:10715: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10f2d63a
VZ
10715 rm -rf conftest*
10716
10717 cat >> confdefs.h <<\EOF
10718#define HAVE_BOOL 1
10719EOF
10720
10721 wx_cv_cpp_bool=yes
10722
10723else
10724 echo "configure: failed program was:" >&5
10725 cat conftest.$ac_ext >&5
10726 rm -rf conftest*
10727
10728 wx_cv_cpp_bool=no
10729
10730
10731fi
10732rm -f conftest*
10733
10734 ac_ext=c
10735# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10736ac_cpp='$CPP $CPPFLAGS'
10737ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10738ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10739cross_compiling=$ac_cv_prog_cc_cross
10740
10741
10742fi
10743
10744echo "$ac_t""$wx_cv_cpp_bool" 1>&6
10745
10746 if test "$wx_cv_cpp_bool" = "yes"; then
10747 cat >> confdefs.h <<\EOF
10748#define HAVE_BOOL 1
10749EOF
10750
10751 fi
10752
10753
10754
10f2d63a 10755echo $ac_n "checking if you need GNU extensions""... $ac_c" 1>&6
0046ff7c 10756echo "configure:10757: checking if you need GNU extensions" >&5
10f2d63a
VZ
10757if eval "test \"`echo '$''{'wx_cv_gnu_extensions'+set}'`\" = set"; then
10758 echo $ac_n "(cached) $ac_c" 1>&6
10759else
10760
10761 cat > conftest.$ac_ext <<EOF
0046ff7c 10762#line 10763 "configure"
10f2d63a
VZ
10763#include "confdefs.h"
10764#include <features.h>
10765int main() {
10766
10767
10768#ifndef __GNU_LIBRARY__
10769 Compile error wanted
10770#endif
10771
10772
10773; return 0; }
10774EOF
0046ff7c 10775if { (eval echo configure:10776: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10f2d63a
VZ
10776 rm -rf conftest*
10777 wx_cv_gnu_extensions=yes
10778else
10779 echo "configure: failed program was:" >&5
10780 cat conftest.$ac_ext >&5
10781 rm -rf conftest*
10782 wx_cv_gnu_extensions=no
10783fi
10784rm -f conftest*
10785
10786fi
10787
10788
10789echo "$ac_t""$wx_cv_gnu_extensions" 1>&6
10790if test "$wx_cv_gnu_extensions" = "yes"; then
10791 cat >> confdefs.h <<EOF
10792#define _GNU_SOURCE 1
10793EOF
10794
10795fi
10796
10797
10798
10799echo $ac_n "checking for wcslen in -lc""... $ac_c" 1>&6
0046ff7c 10800echo "configure:10801: checking for wcslen in -lc" >&5
10f2d63a
VZ
10801ac_lib_var=`echo c'_'wcslen | sed 'y%./+-%__p_%'`
10802if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10803 echo $ac_n "(cached) $ac_c" 1>&6
10804else
10805 ac_save_LIBS="$LIBS"
10806LIBS="-lc $LIBS"
10807cat > conftest.$ac_ext <<EOF
0046ff7c 10808#line 10809 "configure"
10f2d63a
VZ
10809#include "confdefs.h"
10810/* Override any gcc2 internal prototype to avoid an error. */
10811/* We use char because int might match the return type of a gcc2
10812 builtin and then its argument prototype would still apply. */
10813char wcslen();
10814
10815int main() {
10816wcslen()
10817; return 0; }
10818EOF
0046ff7c 10819if { (eval echo configure:10820: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
10820 rm -rf conftest*
10821 eval "ac_cv_lib_$ac_lib_var=yes"
10822else
10823 echo "configure: failed program was:" >&5
10824 cat conftest.$ac_ext >&5
10825 rm -rf conftest*
10826 eval "ac_cv_lib_$ac_lib_var=no"
10827fi
10828rm -f conftest*
10829LIBS="$ac_save_LIBS"
10830
10831fi
10832if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10833 echo "$ac_t""yes" 1>&6
10834
10835 cat >> confdefs.h <<\EOF
10836#define HAVE_WCSLEN 1
10837EOF
10838
10839 WCHAR_LINK=""
10840
10841else
10842 echo "$ac_t""no" 1>&6
10843
10844 echo $ac_n "checking for wcslen in -lw""... $ac_c" 1>&6
0046ff7c 10845echo "configure:10846: checking for wcslen in -lw" >&5
10f2d63a
VZ
10846ac_lib_var=`echo w'_'wcslen | sed 'y%./+-%__p_%'`
10847if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10848 echo $ac_n "(cached) $ac_c" 1>&6
10849else
10850 ac_save_LIBS="$LIBS"
10851LIBS="-lw $LIBS"
10852cat > conftest.$ac_ext <<EOF
0046ff7c 10853#line 10854 "configure"
10f2d63a
VZ
10854#include "confdefs.h"
10855/* Override any gcc2 internal prototype to avoid an error. */
10856/* We use char because int might match the return type of a gcc2
10857 builtin and then its argument prototype would still apply. */
10858char wcslen();
10859
10860int main() {
10861wcslen()
10862; return 0; }
10863EOF
0046ff7c 10864if { (eval echo configure:10865: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
10865 rm -rf conftest*
10866 eval "ac_cv_lib_$ac_lib_var=yes"
10867else
10868 echo "configure: failed program was:" >&5
10869 cat conftest.$ac_ext >&5
10870 rm -rf conftest*
10871 eval "ac_cv_lib_$ac_lib_var=no"
10872fi
10873rm -f conftest*
10874LIBS="$ac_save_LIBS"
10875
10876fi
10877if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10878 echo "$ac_t""yes" 1>&6
10879
10880 cat >> confdefs.h <<\EOF
10881#define HAVE_WCSLEN 1
10882EOF
10883
10884 WCHAR_LINK="-lw"
10885
10886else
10887 echo "$ac_t""no" 1>&6
10888fi
10889
10890
10891fi
10892
10893
10894echo $ac_n "checking for vprintf""... $ac_c" 1>&6
0046ff7c 10895echo "configure:10896: checking for vprintf" >&5
10f2d63a
VZ
10896if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
10897 echo $ac_n "(cached) $ac_c" 1>&6
10898else
10899 cat > conftest.$ac_ext <<EOF
0046ff7c 10900#line 10901 "configure"
10f2d63a
VZ
10901#include "confdefs.h"
10902/* System header to define __stub macros and hopefully few prototypes,
10903 which can conflict with char vprintf(); below. */
10904#include <assert.h>
10905/* Override any gcc2 internal prototype to avoid an error. */
10906/* We use char because int might match the return type of a gcc2
10907 builtin and then its argument prototype would still apply. */
10908char vprintf();
10909
10910int main() {
10911
10912/* The GNU C library defines this for functions which it implements
10913 to always fail with ENOSYS. Some functions are actually named
10914 something starting with __ and the normal name is an alias. */
10915#if defined (__stub_vprintf) || defined (__stub___vprintf)
10916choke me
10917#else
e8482f24 10918vprintf();
10f2d63a
VZ
10919#endif
10920
10921; return 0; }
10922EOF
0046ff7c 10923if { (eval echo configure:10924: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
10924 rm -rf conftest*
10925 eval "ac_cv_func_vprintf=yes"
10926else
10927 echo "configure: failed program was:" >&5
10928 cat conftest.$ac_ext >&5
10929 rm -rf conftest*
10930 eval "ac_cv_func_vprintf=no"
10931fi
10932rm -f conftest*
10933fi
10934
10935if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
10936 echo "$ac_t""yes" 1>&6
10937 cat >> confdefs.h <<\EOF
10938#define HAVE_VPRINTF 1
10939EOF
10940
10941else
10942 echo "$ac_t""no" 1>&6
10943fi
10944
10945if test "$ac_cv_func_vprintf" != yes; then
10946echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
0046ff7c 10947echo "configure:10948: checking for _doprnt" >&5
10f2d63a
VZ
10948if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
10949 echo $ac_n "(cached) $ac_c" 1>&6
10950else
10951 cat > conftest.$ac_ext <<EOF
0046ff7c 10952#line 10953 "configure"
10f2d63a
VZ
10953#include "confdefs.h"
10954/* System header to define __stub macros and hopefully few prototypes,
10955 which can conflict with char _doprnt(); below. */
10956#include <assert.h>
10957/* Override any gcc2 internal prototype to avoid an error. */
10958/* We use char because int might match the return type of a gcc2
10959 builtin and then its argument prototype would still apply. */
10960char _doprnt();
10961
10962int main() {
10963
10964/* The GNU C library defines this for functions which it implements
10965 to always fail with ENOSYS. Some functions are actually named
10966 something starting with __ and the normal name is an alias. */
10967#if defined (__stub__doprnt) || defined (__stub____doprnt)
10968choke me
10969#else
e8482f24 10970_doprnt();
10f2d63a
VZ
10971#endif
10972
10973; return 0; }
10974EOF
0046ff7c 10975if { (eval echo configure:10976: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
10976 rm -rf conftest*
10977 eval "ac_cv_func__doprnt=yes"
10978else
10979 echo "configure: failed program was:" >&5
10980 cat conftest.$ac_ext >&5
10981 rm -rf conftest*
10982 eval "ac_cv_func__doprnt=no"
10983fi
10984rm -f conftest*
10985fi
10986
10987if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
10988 echo "$ac_t""yes" 1>&6
10989 cat >> confdefs.h <<\EOF
10990#define HAVE_DOPRNT 1
10991EOF
10992
10993else
10994 echo "$ac_t""no" 1>&6
10995fi
10996
10997fi
10998
10999
10f2d63a 11000
f6bcfd97
BP
11001ac_ext=C
11002# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11003ac_cpp='$CXXCPP $CPPFLAGS'
11004ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11005ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11006cross_compiling=$ac_cv_prog_cxx_cross
11007
11008
11009
11010
c521c494 11011
9d8deca0 11012
f6bcfd97 11013echo $ac_n "checking for vsnprintf""... $ac_c" 1>&6
0046ff7c 11014echo "configure:11015: checking for vsnprintf" >&5
f6bcfd97
BP
11015if eval "test \"`echo '$''{'wx_cv_func_vsnprintf'+set}'`\" = set"; then
11016 echo $ac_n "(cached) $ac_c" 1>&6
11017else
11018
11019 cat > conftest.$ac_ext <<EOF
0046ff7c 11020#line 11021 "configure"
f6bcfd97
BP
11021#include "confdefs.h"
11022
11023 #include <stdio.h>
11024 #include <stdarg.h>
11025
10f2d63a
VZ
11026int main() {
11027
f6bcfd97 11028 int wx_test_vsnprintf(const char *, ...);
10f2d63a 11029
f6bcfd97
BP
11030 wx_test_vsnprintf("%s");
11031 return 0;
11032 }
11033
11034 int wx_test_vsnprintf(const char *fmt, ...)
11035 {
11036 char *s;
11037
11038 va_list argp;
11039 va_start(argp, fmt);
11040 vsnprintf(s, 42, fmt, argp);
11041 va_end(argp);
11042
10f2d63a
VZ
11043; return 0; }
11044EOF
0046ff7c 11045if { (eval echo configure:11046: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10f2d63a 11046 rm -rf conftest*
f6bcfd97 11047
f6bcfd97
BP
11048 wx_cv_func_vsnprintf=yes
11049
10f2d63a
VZ
11050else
11051 echo "configure: failed program was:" >&5
11052 cat conftest.$ac_ext >&5
11053 rm -rf conftest*
f6bcfd97 11054
c521c494 11055 cat > conftest.$ac_ext <<EOF
0046ff7c 11056#line 11057 "configure"
c521c494
RL
11057#include "confdefs.h"
11058
11059 #include <stdio.h>
11060 #include <stdarg.h>
11061
11062int main() {
11063
11064 int wx_test_vsnprintf(const char *, ...);
11065
11066 wx_test_vsnprintf("%s");
11067 return 0;
11068 }
11069
11070 int wx_test_vsnprintf(const char *fmt, ...)
11071 {
11072 char *s;
11073
11074 va_list argp;
11075 va_start(argp, fmt);
11076 _vsnprintf(s, 42, fmt, argp);
11077 va_end(argp);
11078
11079; return 0; }
11080EOF
0046ff7c 11081if { (eval echo configure:11082: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
c521c494
RL
11082 rm -rf conftest*
11083
c521c494
RL
11084 wx_cv_func_vsnprintf=yes
11085
11086else
11087 echo "configure: failed program was:" >&5
11088 cat conftest.$ac_ext >&5
11089 rm -rf conftest*
11090
c521c494
RL
11091 wx_cv_func_vsnprintf=no
11092
11093fi
11094rm -f conftest*
f6bcfd97 11095
10f2d63a
VZ
11096fi
11097rm -f conftest*
10f2d63a 11098
10f2d63a 11099fi
10f2d63a 11100
f6bcfd97 11101echo "$ac_t""$wx_cv_func_vsnprintf" 1>&6
10f2d63a 11102
9d8deca0
VZ
11103if test "$wx_cv_func_vsnprintf" = yes; then
11104 cat >> confdefs.h <<\EOF
11105#define HAVE_VSNPRINTF 1
11106EOF
11107
11108else
11109 echo "configure: warning: unsafe function sprintf will be used instead of snprintf" 1>&2
11110fi
11111
10f2d63a 11112echo $ac_n "checking for vsscanf""... $ac_c" 1>&6
0046ff7c 11113echo "configure:11114: checking for vsscanf" >&5
10f2d63a
VZ
11114if eval "test \"`echo '$''{'wx_cv_func_vsscanf'+set}'`\" = set"; then
11115 echo $ac_n "(cached) $ac_c" 1>&6
11116else
11117
10f2d63a 11118 cat > conftest.$ac_ext <<EOF
0046ff7c 11119#line 11120 "configure"
10f2d63a 11120#include "confdefs.h"
10f2d63a 11121
f6bcfd97
BP
11122 #include <stdio.h>
11123 #include <stdarg.h>
11124
11125int main() {
10f2d63a 11126
f6bcfd97 11127 int wx_test_vsscanf(const char *, ...);
10f2d63a 11128
f6bcfd97
BP
11129 wx_test_vsscanf("%d");
11130 return 0;
10f2d63a
VZ
11131 }
11132
f6bcfd97 11133 int wx_test_vsscanf(const char *fmt, ...)
10f2d63a 11134 {
f6bcfd97
BP
11135 va_list argp;
11136 va_start(argp, fmt);
11137 vsscanf("42", fmt, argp);
11138 va_end(argp);
11139
11140; return 0; }
10f2d63a 11141EOF
0046ff7c 11142if { (eval echo configure:11143: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
f6bcfd97 11143 rm -rf conftest*
10f2d63a 11144
f6bcfd97
BP
11145 wx_cv_func_vsscanf=yes
11146
10f2d63a
VZ
11147else
11148 echo "configure: failed program was:" >&5
11149 cat conftest.$ac_ext >&5
f6bcfd97
BP
11150 rm -rf conftest*
11151
11152 wx_cv_func_vsscanf=no
11153
10f2d63a 11154fi
f6bcfd97 11155rm -f conftest*
10f2d63a
VZ
11156
11157fi
11158
11159echo "$ac_t""$wx_cv_func_vsscanf" 1>&6
11160
9d8deca0
VZ
11161if test "$wx_cv_func_vsscanf" = yes; then
11162 cat >> confdefs.h <<\EOF
11163#define HAVE_VSSCANF 1
11164EOF
11165
11166fi
11167
10f2d63a
VZ
11168ac_ext=c
11169# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11170ac_cpp='$CPP $CPPFLAGS'
11171ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11172ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11173cross_compiling=$ac_cv_prog_cc_cross
11174
11175
b089607b 11176if test "$TOOLKIT" != "MSW"; then
10f2d63a 11177
eb4efbdc
VZ
11178if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
11179 for ac_func in sigaction
11180do
11181echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
0046ff7c 11182echo "configure:11183: checking for $ac_func" >&5
eb4efbdc
VZ
11183if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11184 echo $ac_n "(cached) $ac_c" 1>&6
11185else
11186 cat > conftest.$ac_ext <<EOF
0046ff7c 11187#line 11188 "configure"
eb4efbdc
VZ
11188#include "confdefs.h"
11189/* System header to define __stub macros and hopefully few prototypes,
11190 which can conflict with char $ac_func(); below. */
11191#include <assert.h>
11192/* Override any gcc2 internal prototype to avoid an error. */
11193/* We use char because int might match the return type of a gcc2
11194 builtin and then its argument prototype would still apply. */
11195char $ac_func();
11196
11197int main() {
11198
11199/* The GNU C library defines this for functions which it implements
11200 to always fail with ENOSYS. Some functions are actually named
11201 something starting with __ and the normal name is an alias. */
11202#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11203choke me
11204#else
11205$ac_func();
11206#endif
11207
11208; return 0; }
11209EOF
0046ff7c 11210if { (eval echo configure:11211: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
eb4efbdc
VZ
11211 rm -rf conftest*
11212 eval "ac_cv_func_$ac_func=yes"
11213else
11214 echo "configure: failed program was:" >&5
11215 cat conftest.$ac_ext >&5
11216 rm -rf conftest*
11217 eval "ac_cv_func_$ac_func=no"
11218fi
11219rm -f conftest*
11220fi
11221
11222if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11223 echo "$ac_t""yes" 1>&6
11224 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11225 cat >> confdefs.h <<EOF
11226#define $ac_tr_func 1
11227EOF
11228
11229else
11230 echo "$ac_t""no" 1>&6
11231fi
11232done
11233
11234
11235 if test "$ac_cv_func_sigaction" = "no"; then
11236 echo "configure: warning: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" 1>&2
11237 wxUSE_ON_FATAL_EXCEPTION=no
11238 fi
f6bcfd97
BP
11239
11240 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
11241
11242 ac_ext=C
11243# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11244ac_cpp='$CXXCPP $CPPFLAGS'
11245ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11246ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11247cross_compiling=$ac_cv_prog_cxx_cross
11248
11249
11250 echo $ac_n "checking for sa_handler type""... $ac_c" 1>&6
0046ff7c 11251echo "configure:11252: checking for sa_handler type" >&5
f6bcfd97
BP
11252if eval "test \"`echo '$''{'wx_cv_type_sa_handler'+set}'`\" = set"; then
11253 echo $ac_n "(cached) $ac_c" 1>&6
11254else
11255
11256 cat > conftest.$ac_ext <<EOF
0046ff7c 11257#line 11258 "configure"
f6bcfd97
BP
11258#include "confdefs.h"
11259#include <signal.h>
11260int main() {
11261
11262 extern void testSigHandler(int);
11263
11264 struct sigaction sa;
11265 sa.sa_handler = testSigHandler;
11266
11267; return 0; }
11268EOF
0046ff7c 11269if { (eval echo configure:11270: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
f6bcfd97
BP
11270 rm -rf conftest*
11271
11272 wx_cv_type_sa_handler=int
11273
11274else
11275 echo "configure: failed program was:" >&5
11276 cat conftest.$ac_ext >&5
11277 rm -rf conftest*
11278
11279 wx_cv_type_sa_handler=void
11280
11281fi
11282rm -f conftest*
11283
11284fi
11285
11286echo "$ac_t""$wx_cv_type_sa_handler" 1>&6
11287
11288 ac_ext=c
11289# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11290ac_cpp='$CPP $CPPFLAGS'
11291ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11292ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11293cross_compiling=$ac_cv_prog_cc_cross
11294
11295
11296 cat >> confdefs.h <<EOF
11297#define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
11298EOF
11299
11300 fi
eb4efbdc
VZ
11301fi
11302
10f2d63a
VZ
11303for ac_func in vfork
11304do
11305echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
0046ff7c 11306echo "configure:11307: checking for $ac_func" >&5
10f2d63a
VZ
11307if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11308 echo $ac_n "(cached) $ac_c" 1>&6
11309else
11310 cat > conftest.$ac_ext <<EOF
0046ff7c 11311#line 11312 "configure"
10f2d63a
VZ
11312#include "confdefs.h"
11313/* System header to define __stub macros and hopefully few prototypes,
11314 which can conflict with char $ac_func(); below. */
11315#include <assert.h>
11316/* Override any gcc2 internal prototype to avoid an error. */
11317/* We use char because int might match the return type of a gcc2
11318 builtin and then its argument prototype would still apply. */
11319char $ac_func();
11320
11321int main() {
11322
11323/* The GNU C library defines this for functions which it implements
11324 to always fail with ENOSYS. Some functions are actually named
11325 something starting with __ and the normal name is an alias. */
11326#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11327choke me
11328#else
e8482f24 11329$ac_func();
10f2d63a
VZ
11330#endif
11331
11332; return 0; }
11333EOF
0046ff7c 11334if { (eval echo configure:11335: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
270a909e
VZ
11335 rm -rf conftest*
11336 eval "ac_cv_func_$ac_func=yes"
11337else
11338 echo "configure: failed program was:" >&5
11339 cat conftest.$ac_ext >&5
11340 rm -rf conftest*
11341 eval "ac_cv_func_$ac_func=no"
11342fi
11343rm -f conftest*
11344fi
11345
11346if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11347 echo "$ac_t""yes" 1>&6
11348 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11349 cat >> confdefs.h <<EOF
11350#define $ac_tr_func 1
11351EOF
11352
11353else
11354 echo "$ac_t""no" 1>&6
11355fi
11356done
11357
11358
11359for ac_func in timegm
11360do
11361echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
0046ff7c 11362echo "configure:11363: checking for $ac_func" >&5
270a909e
VZ
11363if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11364 echo $ac_n "(cached) $ac_c" 1>&6
11365else
11366 cat > conftest.$ac_ext <<EOF
0046ff7c 11367#line 11368 "configure"
270a909e
VZ
11368#include "confdefs.h"
11369/* System header to define __stub macros and hopefully few prototypes,
11370 which can conflict with char $ac_func(); below. */
11371#include <assert.h>
11372/* Override any gcc2 internal prototype to avoid an error. */
11373/* We use char because int might match the return type of a gcc2
11374 builtin and then its argument prototype would still apply. */
11375char $ac_func();
11376
11377int main() {
11378
11379/* The GNU C library defines this for functions which it implements
11380 to always fail with ENOSYS. Some functions are actually named
11381 something starting with __ and the normal name is an alias. */
11382#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11383choke me
11384#else
e8482f24 11385$ac_func();
270a909e
VZ
11386#endif
11387
11388; return 0; }
11389EOF
0046ff7c 11390if { (eval echo configure:11391: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
11391 rm -rf conftest*
11392 eval "ac_cv_func_$ac_func=yes"
11393else
11394 echo "configure: failed program was:" >&5
11395 cat conftest.$ac_ext >&5
11396 rm -rf conftest*
11397 eval "ac_cv_func_$ac_func=no"
11398fi
11399rm -f conftest*
11400fi
11401
11402if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11403 echo "$ac_t""yes" 1>&6
11404 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11405 cat >> confdefs.h <<EOF
11406#define $ac_tr_func 1
11407EOF
11408
11409else
11410 echo "$ac_t""no" 1>&6
11411fi
11412done
11413
11414
8fd0d89b
VZ
11415for ac_func in putenv setenv
11416do
11417echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
0046ff7c 11418echo "configure:11419: checking for $ac_func" >&5
8fd0d89b
VZ
11419if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11420 echo $ac_n "(cached) $ac_c" 1>&6
11421else
11422 cat > conftest.$ac_ext <<EOF
0046ff7c 11423#line 11424 "configure"
8fd0d89b
VZ
11424#include "confdefs.h"
11425/* System header to define __stub macros and hopefully few prototypes,
11426 which can conflict with char $ac_func(); below. */
11427#include <assert.h>
11428/* Override any gcc2 internal prototype to avoid an error. */
11429/* We use char because int might match the return type of a gcc2
11430 builtin and then its argument prototype would still apply. */
11431char $ac_func();
11432
11433int main() {
11434
11435/* The GNU C library defines this for functions which it implements
11436 to always fail with ENOSYS. Some functions are actually named
11437 something starting with __ and the normal name is an alias. */
11438#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11439choke me
11440#else
11441$ac_func();
11442#endif
11443
11444; return 0; }
11445EOF
0046ff7c 11446if { (eval echo configure:11447: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8fd0d89b
VZ
11447 rm -rf conftest*
11448 eval "ac_cv_func_$ac_func=yes"
11449else
11450 echo "configure: failed program was:" >&5
11451 cat conftest.$ac_ext >&5
11452 rm -rf conftest*
11453 eval "ac_cv_func_$ac_func=no"
11454fi
11455rm -f conftest*
11456fi
11457
11458if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11459 echo "$ac_t""yes" 1>&6
11460 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11461 cat >> confdefs.h <<EOF
11462#define $ac_tr_func 1
11463EOF
11464 break
11465else
11466 echo "$ac_t""no" 1>&6
11467fi
11468done
11469
11470
b12915c1
VZ
11471HAVE_SOME_SLEEP_FUNC=0
11472if test "$USE_BEOS" = 1; then
11473 cat >> confdefs.h <<\EOF
11474#define HAVE_SLEEP 1
11475EOF
11476
11477 HAVE_SOME_SLEEP_FUNC=1
11478fi
11479
b4085ce6
GD
11480if test "$USE_MAC" = 1; then
11481 cat >> confdefs.h <<\EOF
11482#define HAVE_USLEEP 1
11483EOF
11484
11485 HAVE_SOME_SLEEP_FUNC=1
11486fi
11487
b12915c1
VZ
11488if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
11489 POSIX4_LINK=
11490 for ac_func in nanosleep
10f2d63a
VZ
11491do
11492echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
0046ff7c 11493echo "configure:11494: checking for $ac_func" >&5
10f2d63a
VZ
11494if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11495 echo $ac_n "(cached) $ac_c" 1>&6
11496else
11497 cat > conftest.$ac_ext <<EOF
0046ff7c 11498#line 11499 "configure"
10f2d63a
VZ
11499#include "confdefs.h"
11500/* System header to define __stub macros and hopefully few prototypes,
11501 which can conflict with char $ac_func(); below. */
11502#include <assert.h>
11503/* Override any gcc2 internal prototype to avoid an error. */
11504/* We use char because int might match the return type of a gcc2
11505 builtin and then its argument prototype would still apply. */
11506char $ac_func();
11507
11508int main() {
11509
11510/* The GNU C library defines this for functions which it implements
11511 to always fail with ENOSYS. Some functions are actually named
11512 something starting with __ and the normal name is an alias. */
11513#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11514choke me
11515#else
e8482f24 11516$ac_func();
10f2d63a
VZ
11517#endif
11518
11519; return 0; }
11520EOF
0046ff7c 11521if { (eval echo configure:11522: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
11522 rm -rf conftest*
11523 eval "ac_cv_func_$ac_func=yes"
11524else
11525 echo "configure: failed program was:" >&5
11526 cat conftest.$ac_ext >&5
11527 rm -rf conftest*
11528 eval "ac_cv_func_$ac_func=no"
11529fi
11530rm -f conftest*
11531fi
11532
11533if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11534 echo "$ac_t""yes" 1>&6
11535 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11536 cat >> confdefs.h <<EOF
11537#define $ac_tr_func 1
11538EOF
11539 cat >> confdefs.h <<\EOF
11540#define HAVE_NANOSLEEP 1
11541EOF
11542
11543else
11544 echo "$ac_t""no" 1>&6
11545echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6
0046ff7c 11546echo "configure:11547: checking for nanosleep in -lposix4" >&5
10f2d63a
VZ
11547ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'`
11548if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11549 echo $ac_n "(cached) $ac_c" 1>&6
11550else
11551 ac_save_LIBS="$LIBS"
11552LIBS="-lposix4 $LIBS"
11553cat > conftest.$ac_ext <<EOF
0046ff7c 11554#line 11555 "configure"
10f2d63a
VZ
11555#include "confdefs.h"
11556/* Override any gcc2 internal prototype to avoid an error. */
11557/* We use char because int might match the return type of a gcc2
11558 builtin and then its argument prototype would still apply. */
11559char nanosleep();
11560
11561int main() {
11562nanosleep()
11563; return 0; }
11564EOF
0046ff7c 11565if { (eval echo configure:11566: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
11566 rm -rf conftest*
11567 eval "ac_cv_lib_$ac_lib_var=yes"
11568else
11569 echo "configure: failed program was:" >&5
11570 cat conftest.$ac_ext >&5
11571 rm -rf conftest*
11572 eval "ac_cv_lib_$ac_lib_var=no"
11573fi
11574rm -f conftest*
11575LIBS="$ac_save_LIBS"
11576
11577fi
11578if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11579 echo "$ac_t""yes" 1>&6
11580
b12915c1 11581 cat >> confdefs.h <<\EOF
10f2d63a
VZ
11582#define HAVE_NANOSLEEP 1
11583EOF
11584
b12915c1
VZ
11585 POSIX4_LINK="-lposix4"
11586
10f2d63a
VZ
11587else
11588 echo "$ac_t""no" 1>&6
11589
b12915c1 11590 for ac_func in usleep
10f2d63a
VZ
11591do
11592echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
0046ff7c 11593echo "configure:11594: checking for $ac_func" >&5
10f2d63a
VZ
11594if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11595 echo $ac_n "(cached) $ac_c" 1>&6
11596else
11597 cat > conftest.$ac_ext <<EOF
0046ff7c 11598#line 11599 "configure"
10f2d63a
VZ
11599#include "confdefs.h"
11600/* System header to define __stub macros and hopefully few prototypes,
11601 which can conflict with char $ac_func(); below. */
11602#include <assert.h>
11603/* Override any gcc2 internal prototype to avoid an error. */
11604/* We use char because int might match the return type of a gcc2
11605 builtin and then its argument prototype would still apply. */
11606char $ac_func();
11607
11608int main() {
11609
11610/* The GNU C library defines this for functions which it implements
11611 to always fail with ENOSYS. Some functions are actually named
11612 something starting with __ and the normal name is an alias. */
11613#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11614choke me
11615#else
e8482f24 11616$ac_func();
10f2d63a
VZ
11617#endif
11618
11619; return 0; }
11620EOF
0046ff7c 11621if { (eval echo configure:11622: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
11622 rm -rf conftest*
11623 eval "ac_cv_func_$ac_func=yes"
11624else
11625 echo "configure: failed program was:" >&5
11626 cat conftest.$ac_ext >&5
11627 rm -rf conftest*
11628 eval "ac_cv_func_$ac_func=no"
11629fi
11630rm -f conftest*
11631fi
11632
11633if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11634 echo "$ac_t""yes" 1>&6
11635 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11636 cat >> confdefs.h <<EOF
11637#define $ac_tr_func 1
11638EOF
b4085ce6
GD
11639 cat >> confdefs.h <<\EOF
11640#define HAVE_USLEEP 1
11641EOF
11642
10f2d63a
VZ
11643else
11644 echo "$ac_t""no" 1>&6
10f2d63a
VZ
11645fi
11646done
11647
b12915c1
VZ
11648 echo "configure: warning: wxSleep() function will not work" 1>&2
11649
11650
10f2d63a
VZ
11651fi
11652
b12915c1
VZ
11653
11654
10f2d63a
VZ
11655fi
11656done
11657
b12915c1 11658fi
10f2d63a
VZ
11659
11660for ac_func in uname gethostname
11661do
11662echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
0046ff7c 11663echo "configure:11664: checking for $ac_func" >&5
10f2d63a
VZ
11664if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11665 echo $ac_n "(cached) $ac_c" 1>&6
11666else
11667 cat > conftest.$ac_ext <<EOF
0046ff7c 11668#line 11669 "configure"
10f2d63a
VZ
11669#include "confdefs.h"
11670/* System header to define __stub macros and hopefully few prototypes,
11671 which can conflict with char $ac_func(); below. */
11672#include <assert.h>
11673/* Override any gcc2 internal prototype to avoid an error. */
11674/* We use char because int might match the return type of a gcc2
11675 builtin and then its argument prototype would still apply. */
11676char $ac_func();
11677
11678int main() {
11679
11680/* The GNU C library defines this for functions which it implements
11681 to always fail with ENOSYS. Some functions are actually named
11682 something starting with __ and the normal name is an alias. */
11683#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11684choke me
11685#else
e8482f24 11686$ac_func();
10f2d63a
VZ
11687#endif
11688
11689; return 0; }
11690EOF
0046ff7c 11691if { (eval echo configure:11692: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
11692 rm -rf conftest*
11693 eval "ac_cv_func_$ac_func=yes"
11694else
11695 echo "configure: failed program was:" >&5
11696 cat conftest.$ac_ext >&5
11697 rm -rf conftest*
11698 eval "ac_cv_func_$ac_func=no"
11699fi
11700rm -f conftest*
11701fi
11702
11703if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11704 echo "$ac_t""yes" 1>&6
11705 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11706 cat >> confdefs.h <<EOF
11707#define $ac_tr_func 1
11708EOF
11709 break
11710else
11711 echo "$ac_t""no" 1>&6
11712fi
11713done
11714
11715
6098c7f9
VZ
11716
11717ac_ext=C
11718# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11719ac_cpp='$CXXCPP $CPPFLAGS'
11720ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11721ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11722cross_compiling=$ac_cv_prog_cxx_cross
11723
11724
10f2d63a
VZ
11725for ac_func in strtok_r
11726do
11727echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
0046ff7c 11728echo "configure:11729: checking for $ac_func" >&5
10f2d63a
VZ
11729if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11730 echo $ac_n "(cached) $ac_c" 1>&6
11731else
11732 cat > conftest.$ac_ext <<EOF
0046ff7c 11733#line 11734 "configure"
10f2d63a
VZ
11734#include "confdefs.h"
11735/* System header to define __stub macros and hopefully few prototypes,
11736 which can conflict with char $ac_func(); below. */
11737#include <assert.h>
11738/* Override any gcc2 internal prototype to avoid an error. */
6098c7f9
VZ
11739#ifdef __cplusplus
11740extern "C"
11741#endif
10f2d63a
VZ
11742/* We use char because int might match the return type of a gcc2
11743 builtin and then its argument prototype would still apply. */
11744char $ac_func();
11745
11746int main() {
11747
11748/* The GNU C library defines this for functions which it implements
11749 to always fail with ENOSYS. Some functions are actually named
11750 something starting with __ and the normal name is an alias. */
11751#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11752choke me
11753#else
e8482f24 11754$ac_func();
10f2d63a
VZ
11755#endif
11756
11757; return 0; }
11758EOF
0046ff7c 11759if { (eval echo configure:11760: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
11760 rm -rf conftest*
11761 eval "ac_cv_func_$ac_func=yes"
11762else
11763 echo "configure: failed program was:" >&5
11764 cat conftest.$ac_ext >&5
11765 rm -rf conftest*
11766 eval "ac_cv_func_$ac_func=no"
11767fi
11768rm -f conftest*
11769fi
11770
11771if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11772 echo "$ac_t""yes" 1>&6
11773 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11774 cat >> confdefs.h <<EOF
11775#define $ac_tr_func 1
11776EOF
11777
11778else
11779 echo "$ac_t""no" 1>&6
11780fi
11781done
11782
11783
6098c7f9
VZ
11784ac_ext=c
11785# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11786ac_cpp='$CPP $CPPFLAGS'
11787ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11788ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11789cross_compiling=$ac_cv_prog_cc_cross
11790
11791
c63c7106 11792INET_LINK=
10f2d63a
VZ
11793for ac_func in inet_addr
11794do
11795echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
0046ff7c 11796echo "configure:11797: checking for $ac_func" >&5
10f2d63a
VZ
11797if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11798 echo $ac_n "(cached) $ac_c" 1>&6
11799else
11800 cat > conftest.$ac_ext <<EOF
0046ff7c 11801#line 11802 "configure"
10f2d63a
VZ
11802#include "confdefs.h"
11803/* System header to define __stub macros and hopefully few prototypes,
11804 which can conflict with char $ac_func(); below. */
11805#include <assert.h>
11806/* Override any gcc2 internal prototype to avoid an error. */
11807/* We use char because int might match the return type of a gcc2
11808 builtin and then its argument prototype would still apply. */
11809char $ac_func();
11810
11811int main() {
11812
11813/* The GNU C library defines this for functions which it implements
11814 to always fail with ENOSYS. Some functions are actually named
11815 something starting with __ and the normal name is an alias. */
11816#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11817choke me
11818#else
e8482f24 11819$ac_func();
10f2d63a
VZ
11820#endif
11821
11822; return 0; }
11823EOF
0046ff7c 11824if { (eval echo configure:11825: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
11825 rm -rf conftest*
11826 eval "ac_cv_func_$ac_func=yes"
11827else
11828 echo "configure: failed program was:" >&5
11829 cat conftest.$ac_ext >&5
11830 rm -rf conftest*
11831 eval "ac_cv_func_$ac_func=no"
11832fi
11833rm -f conftest*
11834fi
11835
11836if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11837 echo "$ac_t""yes" 1>&6
11838 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11839 cat >> confdefs.h <<EOF
11840#define $ac_tr_func 1
11841EOF
c63c7106
VZ
11842 cat >> confdefs.h <<\EOF
11843#define HAVE_INET_ADDR 1
11844EOF
11845
10f2d63a
VZ
11846else
11847 echo "$ac_t""no" 1>&6
c63c7106 11848echo $ac_n "checking for inet_addr in -lnsl""... $ac_c" 1>&6
0046ff7c 11849echo "configure:11850: checking for inet_addr in -lnsl" >&5
c63c7106
VZ
11850ac_lib_var=`echo nsl'_'inet_addr | sed 'y%./+-%__p_%'`
11851if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11852 echo $ac_n "(cached) $ac_c" 1>&6
11853else
11854 ac_save_LIBS="$LIBS"
11855LIBS="-lnsl $LIBS"
11856cat > conftest.$ac_ext <<EOF
0046ff7c 11857#line 11858 "configure"
c63c7106
VZ
11858#include "confdefs.h"
11859/* Override any gcc2 internal prototype to avoid an error. */
11860/* We use char because int might match the return type of a gcc2
11861 builtin and then its argument prototype would still apply. */
11862char inet_addr();
11863
11864int main() {
11865inet_addr()
11866; return 0; }
11867EOF
0046ff7c 11868if { (eval echo configure:11869: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
c63c7106
VZ
11869 rm -rf conftest*
11870 eval "ac_cv_lib_$ac_lib_var=yes"
11871else
11872 echo "configure: failed program was:" >&5
11873 cat conftest.$ac_ext >&5
11874 rm -rf conftest*
11875 eval "ac_cv_lib_$ac_lib_var=no"
11876fi
11877rm -f conftest*
11878LIBS="$ac_save_LIBS"
11879
11880fi
11881if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11882 echo "$ac_t""yes" 1>&6
11883 INET_LINK="nsl"
11884else
11885 echo "$ac_t""no" 1>&6
11886echo $ac_n "checking for inet_addr in -lresolv""... $ac_c" 1>&6
0046ff7c 11887echo "configure:11888: checking for inet_addr in -lresolv" >&5
c63c7106
VZ
11888ac_lib_var=`echo resolv'_'inet_addr | sed 'y%./+-%__p_%'`
11889if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11890 echo $ac_n "(cached) $ac_c" 1>&6
11891else
11892 ac_save_LIBS="$LIBS"
11893LIBS="-lresolv $LIBS"
11894cat > conftest.$ac_ext <<EOF
0046ff7c 11895#line 11896 "configure"
c63c7106
VZ
11896#include "confdefs.h"
11897/* Override any gcc2 internal prototype to avoid an error. */
11898/* We use char because int might match the return type of a gcc2
11899 builtin and then its argument prototype would still apply. */
11900char inet_addr();
11901
11902int main() {
11903inet_addr()
11904; return 0; }
11905EOF
0046ff7c 11906if { (eval echo configure:11907: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
c63c7106
VZ
11907 rm -rf conftest*
11908 eval "ac_cv_lib_$ac_lib_var=yes"
11909else
11910 echo "configure: failed program was:" >&5
11911 cat conftest.$ac_ext >&5
11912 rm -rf conftest*
11913 eval "ac_cv_lib_$ac_lib_var=no"
11914fi
11915rm -f conftest*
11916LIBS="$ac_save_LIBS"
11917
11918fi
11919if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11920 echo "$ac_t""yes" 1>&6
11921 INET_LINK="resolv"
11922
11923else
11924 echo "$ac_t""no" 1>&6
11925fi
11926
11927
11928fi
11929
11930
11931
10f2d63a
VZ
11932fi
11933done
11934
c63c7106 11935
10f2d63a
VZ
11936for ac_func in inet_aton
11937do
11938echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
0046ff7c 11939echo "configure:11940: checking for $ac_func" >&5
10f2d63a
VZ
11940if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11941 echo $ac_n "(cached) $ac_c" 1>&6
11942else
11943 cat > conftest.$ac_ext <<EOF
0046ff7c 11944#line 11945 "configure"
10f2d63a
VZ
11945#include "confdefs.h"
11946/* System header to define __stub macros and hopefully few prototypes,
11947 which can conflict with char $ac_func(); below. */
11948#include <assert.h>
11949/* Override any gcc2 internal prototype to avoid an error. */
11950/* We use char because int might match the return type of a gcc2
11951 builtin and then its argument prototype would still apply. */
11952char $ac_func();
11953
11954int main() {
11955
11956/* The GNU C library defines this for functions which it implements
11957 to always fail with ENOSYS. Some functions are actually named
11958 something starting with __ and the normal name is an alias. */
11959#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11960choke me
11961#else
e8482f24 11962$ac_func();
10f2d63a
VZ
11963#endif
11964
11965; return 0; }
11966EOF
0046ff7c 11967if { (eval echo configure:11968: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
11968 rm -rf conftest*
11969 eval "ac_cv_func_$ac_func=yes"
11970else
11971 echo "configure: failed program was:" >&5
11972 cat conftest.$ac_ext >&5
11973 rm -rf conftest*
11974 eval "ac_cv_func_$ac_func=no"
11975fi
11976rm -f conftest*
11977fi
11978
11979if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11980 echo "$ac_t""yes" 1>&6
11981 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11982 cat >> confdefs.h <<EOF
11983#define $ac_tr_func 1
11984EOF
c63c7106
VZ
11985 cat >> confdefs.h <<\EOF
11986#define HAVE_INET_ATON 1
11987EOF
11988
10f2d63a
VZ
11989else
11990 echo "$ac_t""no" 1>&6
c63c7106 11991 echo $ac_n "checking for inet_aton in -l$INET_LINK""... $ac_c" 1>&6
0046ff7c 11992echo "configure:11993: checking for inet_aton in -l$INET_LINK" >&5
c63c7106 11993ac_lib_var=`echo $INET_LINK'_'inet_aton | sed 'y%./+-%__p_%'`
10f2d63a
VZ
11994if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11995 echo $ac_n "(cached) $ac_c" 1>&6
11996else
11997 ac_save_LIBS="$LIBS"
c63c7106 11998LIBS="-l$INET_LINK $LIBS"
10f2d63a 11999cat > conftest.$ac_ext <<EOF
0046ff7c 12000#line 12001 "configure"
10f2d63a
VZ
12001#include "confdefs.h"
12002/* Override any gcc2 internal prototype to avoid an error. */
12003/* We use char because int might match the return type of a gcc2
12004 builtin and then its argument prototype would still apply. */
12005char inet_aton();
12006
12007int main() {
12008inet_aton()
12009; return 0; }
12010EOF
0046ff7c 12011if { (eval echo configure:12012: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
12012 rm -rf conftest*
12013 eval "ac_cv_lib_$ac_lib_var=yes"
12014else
12015 echo "configure: failed program was:" >&5
12016 cat conftest.$ac_ext >&5
12017 rm -rf conftest*
12018 eval "ac_cv_lib_$ac_lib_var=no"
12019fi
12020rm -f conftest*
12021LIBS="$ac_save_LIBS"
12022
12023fi
12024if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12025 echo "$ac_t""yes" 1>&6
c63c7106
VZ
12026 cat >> confdefs.h <<\EOF
12027#define HAVE_INET_ATON 1
10f2d63a
VZ
12028EOF
12029
10f2d63a
VZ
12030else
12031 echo "$ac_t""no" 1>&6
12032fi
12033
c63c7106
VZ
12034
12035fi
12036done
12037
12038
12039if test "x$INET_LINK" != "x"; then
12040 cat >> confdefs.h <<\EOF
12041#define HAVE_INET_ADDR 1
12042EOF
12043
12044 INET_LINK="-l$INET_LINK"
12045fi
10f2d63a
VZ
12046
12047fi
12048
12049
12050cat > confcache <<\EOF
12051# This file is a shell script that caches the results of configure
12052# tests run on this system so they can be shared between configure
12053# scripts and configure runs. It is not useful on other systems.
12054# If it contains results you don't want to keep, you may remove or edit it.
12055#
12056# By default, configure uses ./config.cache as the cache file,
12057# creating it if it does not exist already. You can give configure
12058# the --cache-file=FILE option to use a different cache file; that is
12059# what configure does when it calls configure scripts in
12060# subdirectories, so they share the cache.
12061# Giving --cache-file=/dev/null disables caching, for debugging configure.
12062# config.status only pays attention to the cache file if you give it the
12063# --recheck option to rerun configure.
12064#
12065EOF
12066# The following way of writing the cache mishandles newlines in values,
12067# but we know of no workaround that is simple, portable, and efficient.
12068# So, don't put newlines in cache variables' values.
12069# Ultrix sh set writes to stderr and can't be redirected directly,
12070# and sets the high bit in the cache file unless we assign to the vars.
12071(set) 2>&1 |
12072 case `(ac_space=' '; set | grep ac_space) 2>&1` in
12073 *ac_space=\ *)
12074 # `set' does not quote correctly, so add quotes (double-quote substitution
12075 # turns \\\\ into \\, and sed turns \\ into \).
12076 sed -n \
12077 -e "s/'/'\\\\''/g" \
12078 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
12079 ;;
12080 *)
12081 # `set' quotes correctly as required by POSIX, so do not add quotes.
12082 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
12083 ;;
12084 esac >> confcache
12085if cmp -s $cache_file confcache; then
12086 :
12087else
12088 if test -w $cache_file; then
12089 echo "updating cache $cache_file"
12090 cat confcache > $cache_file
12091 else
12092 echo "not updating unwritable cache $cache_file"
12093 fi
12094fi
12095rm -f confcache
12096
12097
12098
b089607b 12099if test "$TOOLKIT" != "MSW"; then
10f2d63a
VZ
12100
12101
12102THREADS_LINK=""
12103THREADS_OBJ=""
12104
12105if test "$wxUSE_THREADS" = "yes" ; then
12106 if test "$wxUSE_WINE" = 1 ; then
12107 echo "configure: warning: Threads are not supported under WINE" 1>&2
12108 wxUSE_THREADS="no"
b12915c1
VZ
12109 elif test "$USE_BEOS" = 1; then
12110 echo "configure: warning: BeOS threads are not yet supported" 1>&2
12111 wxUSE_THREADS="no"
10f2d63a
VZ
12112 fi
12113fi
12114
12115if test "$wxUSE_THREADS" = "yes" ; then
12116
186837b0 12117 if test "$USE_AIX" = 1; then
f6bcfd97 12118 THREADS_LIB=pthreads
f3c067d2
GD
12119 elif test "$USE_MAC" = 1; then
12120 THREADS_LIB=cc_dynamic
f6bcfd97
BP
12121 else
12122 THREADS_LIB=pthread
12123 fi
12124
12125 echo $ac_n "checking for pthread_create in -l$THREADS_LIB""... $ac_c" 1>&6
0046ff7c 12126echo "configure:12127: checking for pthread_create in -l$THREADS_LIB" >&5
f6bcfd97 12127ac_lib_var=`echo $THREADS_LIB'_'pthread_create | sed 'y%./+-%__p_%'`
10f2d63a
VZ
12128if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12129 echo $ac_n "(cached) $ac_c" 1>&6
12130else
12131 ac_save_LIBS="$LIBS"
f6bcfd97 12132LIBS="-l$THREADS_LIB $LIBS"
10f2d63a 12133cat > conftest.$ac_ext <<EOF
0046ff7c 12134#line 12135 "configure"
10f2d63a
VZ
12135#include "confdefs.h"
12136/* Override any gcc2 internal prototype to avoid an error. */
12137/* We use char because int might match the return type of a gcc2
12138 builtin and then its argument prototype would still apply. */
12139char pthread_create();
12140
12141int main() {
12142pthread_create()
12143; return 0; }
12144EOF
0046ff7c 12145if { (eval echo configure:12146: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
12146 rm -rf conftest*
12147 eval "ac_cv_lib_$ac_lib_var=yes"
12148else
12149 echo "configure: failed program was:" >&5
12150 cat conftest.$ac_ext >&5
12151 rm -rf conftest*
12152 eval "ac_cv_lib_$ac_lib_var=no"
12153fi
12154rm -f conftest*
12155LIBS="$ac_save_LIBS"
12156
12157fi
12158if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12159 echo "$ac_t""yes" 1>&6
12160
12161 THREADS_OBJ="threadpsx.lo"
f6bcfd97 12162 THREADS_LINK=$THREADS_LIB
10f2d63a
VZ
12163
12164else
12165 echo "$ac_t""no" 1>&6
12166
12167 echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6
0046ff7c 12168echo "configure:12169: checking for pthread_create in -lc_r" >&5
10f2d63a
VZ
12169ac_lib_var=`echo c_r'_'pthread_create | sed 'y%./+-%__p_%'`
12170if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12171 echo $ac_n "(cached) $ac_c" 1>&6
12172else
12173 ac_save_LIBS="$LIBS"
12174LIBS="-lc_r $LIBS"
12175cat > conftest.$ac_ext <<EOF
0046ff7c 12176#line 12177 "configure"
10f2d63a
VZ
12177#include "confdefs.h"
12178/* Override any gcc2 internal prototype to avoid an error. */
12179/* We use char because int might match the return type of a gcc2
12180 builtin and then its argument prototype would still apply. */
12181char pthread_create();
12182
12183int main() {
12184pthread_create()
12185; return 0; }
12186EOF
0046ff7c 12187if { (eval echo configure:12188: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
12188 rm -rf conftest*
12189 eval "ac_cv_lib_$ac_lib_var=yes"
12190else
12191 echo "configure: failed program was:" >&5
12192 cat conftest.$ac_ext >&5
12193 rm -rf conftest*
12194 eval "ac_cv_lib_$ac_lib_var=no"
12195fi
12196rm -f conftest*
12197LIBS="$ac_save_LIBS"
12198
12199fi
12200if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12201 echo "$ac_t""yes" 1>&6
12202
12203 THREADS_OBJ="threadpsx.lo"
12204 THREADS_LINK="c_r"
12205
12206else
12207 echo "$ac_t""no" 1>&6
12208
b4085ce6 12209 echo $ac_n "checking for pthread_create in -lcc_dynamic""... $ac_c" 1>&6
0046ff7c 12210echo "configure:12211: checking for pthread_create in -lcc_dynamic" >&5
b4085ce6
GD
12211ac_lib_var=`echo cc_dynamic'_'pthread_create | sed 'y%./+-%__p_%'`
12212if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12213 echo $ac_n "(cached) $ac_c" 1>&6
12214else
12215 ac_save_LIBS="$LIBS"
12216LIBS="-lcc_dynamic $LIBS"
12217cat > conftest.$ac_ext <<EOF
0046ff7c 12218#line 12219 "configure"
b4085ce6
GD
12219#include "confdefs.h"
12220/* Override any gcc2 internal prototype to avoid an error. */
12221/* We use char because int might match the return type of a gcc2
12222 builtin and then its argument prototype would still apply. */
12223char pthread_create();
12224
12225int main() {
12226pthread_create()
12227; return 0; }
12228EOF
0046ff7c 12229if { (eval echo configure:12230: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
b4085ce6
GD
12230 rm -rf conftest*
12231 eval "ac_cv_lib_$ac_lib_var=yes"
12232else
12233 echo "configure: failed program was:" >&5
12234 cat conftest.$ac_ext >&5
12235 rm -rf conftest*
12236 eval "ac_cv_lib_$ac_lib_var=no"
12237fi
12238rm -f conftest*
12239LIBS="$ac_save_LIBS"
12240
12241fi
12242if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12243 echo "$ac_t""yes" 1>&6
12244
12245 THREADS_OBJ="threadpsx.lo"
12246 THREADS_LINK="cc_dynamic"
12247
12248else
12249 echo "$ac_t""no" 1>&6
12250
12251 ac_safe=`echo "sys/prctl.h" | sed 'y%./+-%__p_%'`
10f2d63a 12252echo $ac_n "checking for sys/prctl.h""... $ac_c" 1>&6
0046ff7c 12253echo "configure:12254: checking for sys/prctl.h" >&5
10f2d63a
VZ
12254if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12255 echo $ac_n "(cached) $ac_c" 1>&6
12256else
12257 cat > conftest.$ac_ext <<EOF
0046ff7c 12258#line 12259 "configure"
10f2d63a
VZ
12259#include "confdefs.h"
12260#include <sys/prctl.h>
12261EOF
12262ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
0046ff7c 12263{ (eval echo configure:12264: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
12264ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12265if test -z "$ac_err"; then
12266 rm -rf conftest*
12267 eval "ac_cv_header_$ac_safe=yes"
12268else
12269 echo "$ac_err" >&5
12270 echo "configure: failed program was:" >&5
12271 cat conftest.$ac_ext >&5
12272 rm -rf conftest*
12273 eval "ac_cv_header_$ac_safe=no"
12274fi
12275rm -f conftest*
12276fi
12277if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12278 echo "$ac_t""yes" 1>&6
12279
b4085ce6
GD
12280 THREADS_OBJ="threadsgi.lo"
12281
10f2d63a
VZ
12282else
12283 echo "$ac_t""no" 1>&6
12284fi
12285
b4085ce6
GD
12286
12287fi
12288
10f2d63a
VZ
12289
12290fi
12291
12292
12293fi
12294
12295
12296 if test -z "$THREADS_OBJ" ; then
12297 wxUSE_THREADS=no
12298 echo "configure: warning: No thread support on this system" 1>&2
12299 fi
12300fi
12301
12302if test "$wxUSE_THREADS" = "yes" ; then
70846f0a
VZ
12303 for ac_func in thr_setconcurrency
12304do
12305echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
0046ff7c 12306echo "configure:12307: checking for $ac_func" >&5
70846f0a
VZ
12307if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12308 echo $ac_n "(cached) $ac_c" 1>&6
12309else
12310 cat > conftest.$ac_ext <<EOF
0046ff7c 12311#line 12312 "configure"
70846f0a
VZ
12312#include "confdefs.h"
12313/* System header to define __stub macros and hopefully few prototypes,
12314 which can conflict with char $ac_func(); below. */
12315#include <assert.h>
12316/* Override any gcc2 internal prototype to avoid an error. */
12317/* We use char because int might match the return type of a gcc2
12318 builtin and then its argument prototype would still apply. */
12319char $ac_func();
12320
12321int main() {
12322
12323/* The GNU C library defines this for functions which it implements
12324 to always fail with ENOSYS. Some functions are actually named
12325 something starting with __ and the normal name is an alias. */
12326#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12327choke me
12328#else
e8482f24 12329$ac_func();
70846f0a
VZ
12330#endif
12331
12332; return 0; }
12333EOF
0046ff7c 12334if { (eval echo configure:12335: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
70846f0a
VZ
12335 rm -rf conftest*
12336 eval "ac_cv_func_$ac_func=yes"
12337else
12338 echo "configure: failed program was:" >&5
12339 cat conftest.$ac_ext >&5
12340 rm -rf conftest*
12341 eval "ac_cv_func_$ac_func=no"
12342fi
12343rm -f conftest*
12344fi
12345
12346if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12347 echo "$ac_t""yes" 1>&6
12348 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12349 cat >> confdefs.h <<EOF
12350#define $ac_tr_func 1
12351EOF
12352
12353else
12354 echo "$ac_t""no" 1>&6
12355fi
12356done
12357
12358
10f2d63a
VZ
12359
12360 for ac_hdr in sched.h
12361do
12362ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12363echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
0046ff7c 12364echo "configure:12365: checking for $ac_hdr" >&5
10f2d63a
VZ
12365if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12366 echo $ac_n "(cached) $ac_c" 1>&6
12367else
12368 cat > conftest.$ac_ext <<EOF
0046ff7c 12369#line 12370 "configure"
10f2d63a
VZ
12370#include "confdefs.h"
12371#include <$ac_hdr>
12372EOF
12373ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
0046ff7c 12374{ (eval echo configure:12375: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
12375ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12376if test -z "$ac_err"; then
12377 rm -rf conftest*
12378 eval "ac_cv_header_$ac_safe=yes"
12379else
12380 echo "$ac_err" >&5
12381 echo "configure: failed program was:" >&5
12382 cat conftest.$ac_ext >&5
12383 rm -rf conftest*
12384 eval "ac_cv_header_$ac_safe=no"
12385fi
12386rm -f conftest*
12387fi
12388if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12389 echo "$ac_t""yes" 1>&6
12390 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12391 cat >> confdefs.h <<EOF
12392#define $ac_tr_hdr 1
12393EOF
12394
12395else
12396 echo "$ac_t""no" 1>&6
12397fi
12398done
12399
12400
12401 echo $ac_n "checking for sched_yield in -l$THREADS_LINK""... $ac_c" 1>&6
0046ff7c 12402echo "configure:12403: checking for sched_yield in -l$THREADS_LINK" >&5
10f2d63a
VZ
12403ac_lib_var=`echo $THREADS_LINK'_'sched_yield | sed 'y%./+-%__p_%'`
12404if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12405 echo $ac_n "(cached) $ac_c" 1>&6
12406else
12407 ac_save_LIBS="$LIBS"
12408LIBS="-l$THREADS_LINK $LIBS"
12409cat > conftest.$ac_ext <<EOF
0046ff7c 12410#line 12411 "configure"
10f2d63a
VZ
12411#include "confdefs.h"
12412/* Override any gcc2 internal prototype to avoid an error. */
12413/* We use char because int might match the return type of a gcc2
12414 builtin and then its argument prototype would still apply. */
12415char sched_yield();
12416
12417int main() {
12418sched_yield()
12419; return 0; }
12420EOF
0046ff7c 12421if { (eval echo configure:12422: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
12422 rm -rf conftest*
12423 eval "ac_cv_lib_$ac_lib_var=yes"
12424else
12425 echo "configure: failed program was:" >&5
12426 cat conftest.$ac_ext >&5
12427 rm -rf conftest*
12428 eval "ac_cv_lib_$ac_lib_var=no"
12429fi
12430rm -f conftest*
12431LIBS="$ac_save_LIBS"
12432
12433fi
12434if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12435 echo "$ac_t""yes" 1>&6
12436 cat >> confdefs.h <<\EOF
12437#define HAVE_SCHED_YIELD 1
12438EOF
12439
12440else
12441 echo "$ac_t""no" 1>&6
12442echo $ac_n "checking for sched_yield in -l"posix4"""... $ac_c" 1>&6
0046ff7c 12443echo "configure:12444: checking for sched_yield in -l"posix4"" >&5
10f2d63a
VZ
12444ac_lib_var=`echo "posix4"'_'sched_yield | sed 'y%./+-%__p_%'`
12445if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12446 echo $ac_n "(cached) $ac_c" 1>&6
12447else
12448 ac_save_LIBS="$LIBS"
12449LIBS="-l"posix4" $LIBS"
12450cat > conftest.$ac_ext <<EOF
0046ff7c 12451#line 12452 "configure"
10f2d63a
VZ
12452#include "confdefs.h"
12453/* Override any gcc2 internal prototype to avoid an error. */
12454/* We use char because int might match the return type of a gcc2
12455 builtin and then its argument prototype would still apply. */
12456char sched_yield();
12457
12458int main() {
12459sched_yield()
12460; return 0; }
12461EOF
0046ff7c 12462if { (eval echo configure:12463: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
12463 rm -rf conftest*
12464 eval "ac_cv_lib_$ac_lib_var=yes"
12465else
12466 echo "configure: failed program was:" >&5
12467 cat conftest.$ac_ext >&5
12468 rm -rf conftest*
12469 eval "ac_cv_lib_$ac_lib_var=no"
12470fi
12471rm -f conftest*
12472LIBS="$ac_save_LIBS"
12473
12474fi
12475if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12476 echo "$ac_t""yes" 1>&6
12477 cat >> confdefs.h <<\EOF
12478#define HAVE_SCHED_YIELD 1
12479EOF
12480 POSIX4_LINK="-lposix4"
12481else
12482 echo "$ac_t""no" 1>&6
12483echo "configure: warning: wxThread::Yield will not work properly" 1>&2
12484
12485fi
12486
12487
12488fi
12489
12490
f6bcfd97
BP
12491 HAVE_PRIOR_FUNCS=0
12492 echo $ac_n "checking for pthread_attr_getschedpolicy in -l$THREADS_LINK""... $ac_c" 1>&6
0046ff7c 12493echo "configure:12494: checking for pthread_attr_getschedpolicy in -l$THREADS_LINK" >&5
10f2d63a
VZ
12494ac_lib_var=`echo $THREADS_LINK'_'pthread_attr_getschedpolicy | sed 'y%./+-%__p_%'`
12495if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12496 echo $ac_n "(cached) $ac_c" 1>&6
12497else
12498 ac_save_LIBS="$LIBS"
12499LIBS="-l$THREADS_LINK $LIBS"
12500cat > conftest.$ac_ext <<EOF
0046ff7c 12501#line 12502 "configure"
10f2d63a
VZ
12502#include "confdefs.h"
12503/* Override any gcc2 internal prototype to avoid an error. */
12504/* We use char because int might match the return type of a gcc2
12505 builtin and then its argument prototype would still apply. */
12506char pthread_attr_getschedpolicy();
12507
12508int main() {
12509pthread_attr_getschedpolicy()
12510; return 0; }
12511EOF
0046ff7c 12512if { (eval echo configure:12513: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
12513 rm -rf conftest*
12514 eval "ac_cv_lib_$ac_lib_var=yes"
12515else
12516 echo "configure: failed program was:" >&5
12517 cat conftest.$ac_ext >&5
12518 rm -rf conftest*
12519 eval "ac_cv_lib_$ac_lib_var=no"
12520fi
12521rm -f conftest*
12522LIBS="$ac_save_LIBS"
12523
12524fi
12525if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12526 echo "$ac_t""yes" 1>&6
f6bcfd97 12527 echo $ac_n "checking for pthread_attr_setschedparam in -l$THREADS_LINK""... $ac_c" 1>&6
0046ff7c 12528echo "configure:12529: checking for pthread_attr_setschedparam in -l$THREADS_LINK" >&5
f6bcfd97
BP
12529ac_lib_var=`echo $THREADS_LINK'_'pthread_attr_setschedparam | sed 'y%./+-%__p_%'`
12530if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12531 echo $ac_n "(cached) $ac_c" 1>&6
12532else
12533 ac_save_LIBS="$LIBS"
12534LIBS="-l$THREADS_LINK $LIBS"
12535cat > conftest.$ac_ext <<EOF
0046ff7c 12536#line 12537 "configure"
f6bcfd97
BP
12537#include "confdefs.h"
12538/* Override any gcc2 internal prototype to avoid an error. */
12539/* We use char because int might match the return type of a gcc2
12540 builtin and then its argument prototype would still apply. */
12541char pthread_attr_setschedparam();
12542
12543int main() {
12544pthread_attr_setschedparam()
12545; return 0; }
10f2d63a 12546EOF
0046ff7c 12547if { (eval echo configure:12548: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
f6bcfd97
BP
12548 rm -rf conftest*
12549 eval "ac_cv_lib_$ac_lib_var=yes"
12550else
12551 echo "configure: failed program was:" >&5
12552 cat conftest.$ac_ext >&5
12553 rm -rf conftest*
12554 eval "ac_cv_lib_$ac_lib_var=no"
12555fi
12556rm -f conftest*
12557LIBS="$ac_save_LIBS"
10f2d63a 12558
f6bcfd97
BP
12559fi
12560if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12561 echo "$ac_t""yes" 1>&6
12562 echo $ac_n "checking for sched_get_priority_max in -l$THREADS_LINK""... $ac_c" 1>&6
0046ff7c 12563echo "configure:12564: checking for sched_get_priority_max in -l$THREADS_LINK" >&5
f6bcfd97
BP
12564ac_lib_var=`echo $THREADS_LINK'_'sched_get_priority_max | sed 'y%./+-%__p_%'`
12565if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12566 echo $ac_n "(cached) $ac_c" 1>&6
12567else
12568 ac_save_LIBS="$LIBS"
12569LIBS="-l$THREADS_LINK $LIBS"
12570cat > conftest.$ac_ext <<EOF
0046ff7c 12571#line 12572 "configure"
f6bcfd97
BP
12572#include "confdefs.h"
12573/* Override any gcc2 internal prototype to avoid an error. */
12574/* We use char because int might match the return type of a gcc2
12575 builtin and then its argument prototype would still apply. */
12576char sched_get_priority_max();
12577
12578int main() {
12579sched_get_priority_max()
12580; return 0; }
12581EOF
0046ff7c 12582if { (eval echo configure:12583: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
f6bcfd97
BP
12583 rm -rf conftest*
12584 eval "ac_cv_lib_$ac_lib_var=yes"
12585else
12586 echo "configure: failed program was:" >&5
12587 cat conftest.$ac_ext >&5
12588 rm -rf conftest*
12589 eval "ac_cv_lib_$ac_lib_var=no"
12590fi
12591rm -f conftest*
12592LIBS="$ac_save_LIBS"
12593
12594fi
12595if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12596 echo "$ac_t""yes" 1>&6
12597 HAVE_PRIOR_FUNCS=1
10f2d63a
VZ
12598else
12599 echo "$ac_t""no" 1>&6
f6bcfd97 12600echo $ac_n "checking for sched_get_priority_max in -l"posix4"""... $ac_c" 1>&6
0046ff7c 12601echo "configure:12602: checking for sched_get_priority_max in -l"posix4"" >&5
f6bcfd97 12602ac_lib_var=`echo "posix4"'_'sched_get_priority_max | sed 'y%./+-%__p_%'`
10f2d63a
VZ
12603if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12604 echo $ac_n "(cached) $ac_c" 1>&6
12605else
12606 ac_save_LIBS="$LIBS"
12607LIBS="-l"posix4" $LIBS"
12608cat > conftest.$ac_ext <<EOF
0046ff7c 12609#line 12610 "configure"
10f2d63a
VZ
12610#include "confdefs.h"
12611/* Override any gcc2 internal prototype to avoid an error. */
12612/* We use char because int might match the return type of a gcc2
12613 builtin and then its argument prototype would still apply. */
f6bcfd97 12614char sched_get_priority_max();
10f2d63a
VZ
12615
12616int main() {
f6bcfd97 12617sched_get_priority_max()
10f2d63a
VZ
12618; return 0; }
12619EOF
0046ff7c 12620if { (eval echo configure:12621: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
12621 rm -rf conftest*
12622 eval "ac_cv_lib_$ac_lib_var=yes"
12623else
12624 echo "configure: failed program was:" >&5
12625 cat conftest.$ac_ext >&5
12626 rm -rf conftest*
12627 eval "ac_cv_lib_$ac_lib_var=no"
12628fi
12629rm -f conftest*
12630LIBS="$ac_save_LIBS"
12631
12632fi
12633if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12634 echo "$ac_t""yes" 1>&6
f6bcfd97
BP
12635
12636 HAVE_PRIOR_FUNCS=1
12637 POSIX4_LINK="-lposix4"
12638
12639else
12640 echo "$ac_t""no" 1>&6
12641fi
12642
12643
12644fi
12645
12646
10f2d63a
VZ
12647else
12648 echo "$ac_t""no" 1>&6
10f2d63a
VZ
12649fi
12650
12651
f6bcfd97
BP
12652else
12653 echo "$ac_t""no" 1>&6
10f2d63a
VZ
12654fi
12655
12656
f6bcfd97
BP
12657 if test "$HAVE_PRIOR_FUNCS" = 1; then
12658 cat >> confdefs.h <<\EOF
12659#define HAVE_THREAD_PRIORITY_FUNCTIONS 1
12660EOF
12661
12662 else
12663 echo "configure: warning: Setting thread priority will not work" 1>&2
12664 fi
12665
10f2d63a 12666 echo $ac_n "checking for pthread_cancel in -l$THREADS_LINK""... $ac_c" 1>&6
0046ff7c 12667echo "configure:12668: checking for pthread_cancel in -l$THREADS_LINK" >&5
10f2d63a
VZ
12668ac_lib_var=`echo $THREADS_LINK'_'pthread_cancel | sed 'y%./+-%__p_%'`
12669if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12670 echo $ac_n "(cached) $ac_c" 1>&6
12671else
12672 ac_save_LIBS="$LIBS"
12673LIBS="-l$THREADS_LINK $LIBS"
12674cat > conftest.$ac_ext <<EOF
0046ff7c 12675#line 12676 "configure"
10f2d63a
VZ
12676#include "confdefs.h"
12677/* Override any gcc2 internal prototype to avoid an error. */
12678/* We use char because int might match the return type of a gcc2
12679 builtin and then its argument prototype would still apply. */
12680char pthread_cancel();
12681
12682int main() {
12683pthread_cancel()
12684; return 0; }
12685EOF
0046ff7c 12686if { (eval echo configure:12687: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
12687 rm -rf conftest*
12688 eval "ac_cv_lib_$ac_lib_var=yes"
12689else
12690 echo "configure: failed program was:" >&5
12691 cat conftest.$ac_ext >&5
12692 rm -rf conftest*
12693 eval "ac_cv_lib_$ac_lib_var=no"
12694fi
12695rm -f conftest*
12696LIBS="$ac_save_LIBS"
12697
12698fi
12699if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12700 echo "$ac_t""yes" 1>&6
12701 cat >> confdefs.h <<\EOF
12702#define HAVE_PTHREAD_CANCEL 1
12703EOF
12704
12705else
12706 echo "$ac_t""no" 1>&6
12707echo "configure: warning: wxThread::Kill() will not work properly" 1>&2
12708fi
12709
12710
12711 echo $ac_n "checking for pthread_cleanup_push/pop""... $ac_c" 1>&6
0046ff7c 12712echo "configure:12713: checking for pthread_cleanup_push/pop" >&5
10f2d63a
VZ
12713if eval "test \"`echo '$''{'wx_cv_func_pthread_cleanup_push'+set}'`\" = set"; then
12714 echo $ac_n "(cached) $ac_c" 1>&6
12715else
12716
12717 cat > conftest.$ac_ext <<EOF
0046ff7c 12718#line 12719 "configure"
10f2d63a
VZ
12719#include "confdefs.h"
12720#include <pthread.h>
12721int main() {
12722
12723 pthread_cleanup_push(NULL, NULL);
12724 pthread_cleanup_pop(0);
12725
12726; return 0; }
12727EOF
0046ff7c 12728if { (eval echo configure:12729: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10f2d63a
VZ
12729 rm -rf conftest*
12730
12731 wx_cv_func_pthread_cleanup_push=yes
10f2d63a
VZ
12732
12733else
12734 echo "configure: failed program was:" >&5
12735 cat conftest.$ac_ext >&5
12736 rm -rf conftest*
12737
12738 wx_cv_func_pthread_cleanup_push=no
12739
12740fi
12741rm -f conftest*
12742
12743fi
12744
12745echo "$ac_t""$wx_cv_func_pthread_cleanup_push" 1>&6
12746
d9b9876f
VZ
12747 if test "$wx_cv_func_pthread_cleanup_push" = "yes"; then
12748 cat >> confdefs.h <<\EOF
12749#define HAVE_THREAD_CLEANUP_FUNCTIONS 1
12750EOF
12751
12752 fi
12753
12754
12755#ifdef HAVE_PTHREAD_MUTEXATTR_T
12756#elif defined(HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER)
12757
12758 echo $ac_n "checking for pthread_mutexattr_t""... $ac_c" 1>&6
0046ff7c 12759echo "configure:12760: checking for pthread_mutexattr_t" >&5
d9b9876f
VZ
12760if eval "test \"`echo '$''{'wx_cv_type_pthread_mutexattr_t'+set}'`\" = set"; then
12761 echo $ac_n "(cached) $ac_c" 1>&6
12762else
12763
12764 cat > conftest.$ac_ext <<EOF
0046ff7c 12765#line 12766 "configure"
d9b9876f
VZ
12766#include "confdefs.h"
12767#include <pthread.h>
12768int main() {
12769
12770 pthread_mutexattr_t attr;
12771 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
12772
12773; return 0; }
12774EOF
0046ff7c 12775if { (eval echo configure:12776: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d9b9876f
VZ
12776 rm -rf conftest*
12777
12778 wx_cv_type_pthread_mutexattr_t=yes
12779
12780else
12781 echo "configure: failed program was:" >&5
12782 cat conftest.$ac_ext >&5
12783 rm -rf conftest*
12784
12785 wx_cv_type_pthread_mutexattr_t=no
12786
12787
12788fi
12789rm -f conftest*
12790
12791fi
12792
12793echo "$ac_t""$wx_cv_type_pthread_mutexattr_t" 1>&6
12794
12795 if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
12796 cat >> confdefs.h <<\EOF
12797#define HAVE_PTHREAD_MUTEXATTR_T 1
12798EOF
12799
12800 else
12801 echo $ac_n "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER""... $ac_c" 1>&6
0046ff7c 12802echo "configure:12803: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
d9b9876f
VZ
12803if eval "test \"`echo '$''{'wx_cv_type_pthread_rec_mutex_init'+set}'`\" = set"; then
12804 echo $ac_n "(cached) $ac_c" 1>&6
12805else
12806
12807 cat > conftest.$ac_ext <<EOF
0046ff7c 12808#line 12809 "configure"
d9b9876f
VZ
12809#include "confdefs.h"
12810#include <pthread.h>
12811int main() {
12812
12813 pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
12814
12815; return 0; }
12816EOF
0046ff7c 12817if { (eval echo configure:12818: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d9b9876f
VZ
12818 rm -rf conftest*
12819
12820 wx_cv_type_pthread_rec_mutex_init=yes
12821
12822else
12823 echo "configure: failed program was:" >&5
12824 cat conftest.$ac_ext >&5
12825 rm -rf conftest*
12826
12827 wx_cv_type_pthread_rec_mutex_init=no
12828
12829
12830fi
12831rm -f conftest*
12832
12833fi
12834
12835echo "$ac_t""$wx_cv_type_pthread_rec_mutex_init" 1>&6
12836 if test "$wx_cv_type_pthread_rec_mutex_init"="yes"; then
12837 cat >> confdefs.h <<\EOF
12838#define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
12839EOF
12840
12841 else
12842 echo "configure: warning: wxMutex won't be recursive on this platform" 1>&2
12843 fi
12844 fi
12845
10f2d63a 12846 THREADS_LINK="-l$THREADS_LINK"
186837b0
VZ
12847
12848 if test "$USE_SOLARIS" = "yes" -a "$GCC" != "yes"; then
12849 CFLAGS="${CFLAGS} -mt"
12850 CXXFLAGS="${CXXFLAGS} -mt"
12851 LDFLAGS="${LDFLAGS} -mt"
12852 fi
10f2d63a
VZ
12853fi
12854
12855fi
12856
12857if test "$wxUSE_THREADS" = "yes"; then
12858 cat >> confdefs.h <<\EOF
12859#define wxUSE_THREADS 1
12860EOF
12861
12862
2c6025bc 12863 if test "$wxUSE_MAC" = "0"; then
10f2d63a 12864 CFLAGS="${CFLAGS} -D_REENTRANT"
2c6025bc
GD
12865 CXXFLAGS="${CXXFLAGS} -D_REENTRANT"
12866 fi
10f2d63a
VZ
12867
12868 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
12869else
12870 if test "$ac_cv_func_strtok_r" = "yes"; then
ab9b9eab 12871 echo $ac_n "checking if -D_REENTRANT is needed""... $ac_c" 1>&6
0046ff7c 12872echo "configure:12873: checking if -D_REENTRANT is needed" >&5
ab9b9eab
VZ
12873 if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
12874 CFLAGS="${CFLAGS} -D_REENTRANT"
12875 CXXFLAGS="${CXXFLAGS} -D_REENTRANT"
12876 echo "$ac_t""yes" 1>&6
12877 else
12878 echo "$ac_t""no" 1>&6
10f2d63a
VZ
12879 fi
12880 fi
12881fi
12882
6f72b082 12883if test "$WXGTK20" = 1 ; then
13111b2a 12884 cat >> confdefs.h <<EOF
6f72b082 12885#define __WXGTK20__ $WXGTK20
13111b2a
VZ
12886EOF
12887
12888 WXGTK12=1
12889fi
12890
10f2d63a
VZ
12891if test "$WXGTK12" = 1 ; then
12892 cat >> confdefs.h <<EOF
12893#define __WXGTK12__ $WXGTK12
12894EOF
12895
12896fi
12897
f6bcfd97
BP
12898if test "$WXGTK127" = 1 ; then
12899 cat >> confdefs.h <<EOF
12900#define __WXGTK127__ $WXGTK127
12901EOF
12902
12903fi
12904
10f2d63a
VZ
12905if test "$WXWINE" = 1 ; then
12906 TOOLKIT_DEF="${TOOLKIT_DEF} -D__WXWINE__"
12907fi
12908
b4085ce6 12909if test "$wxUSE_MAC" = 1 ; then
2c6025bc 12910 TOOLKIT_DEF="${TOOLKIT_DEF} -D__UNIX__ -D__POWERPC__ -DTARGET_CARBON"
ea5999b9
GD
12911 CFLAGS="${CFLAGS} -fno-common -fpascal-strings"
12912 CPPFLAGS="${CPPFLAGS} -fno-common -fpascal-strings"
b4085ce6
GD
12913fi
12914
10f2d63a
VZ
12915if test "$wxUSE_CYGWIN" = 1 ; then
12916 TOOLKIT_DEF="${TOOLKIT_DEF} -D__WIN95__"
12917fi
12918
12919WXDEBUG=
12920
12921if test "$wxUSE_DEBUG_INFO" = "yes" ; then
12922 WXDEBUG="-g"
12923 wxUSE_OPTIMISE=no
12924fi
12925
12926if test "$wxUSE_DEBUG_GDB" = "yes" ; then
12927 wxUSE_DEBUG_INFO=yes
12928 WXDEBUG="-ggdb"
12929fi
12930
12931if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
12932 cat >> confdefs.h <<\EOF
12933#define WXDEBUG 1
12934EOF
12935
12936 WXDEBUG_DEFINE="-D__WXDEBUG__"
12937else
12938 if test "$wxUSE_GTK" = 1 ; then
12939 WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS"
12940 fi
12941fi
12942
12943if test "$wxUSE_MEM_TRACING" = "yes" ; then
12944 cat >> confdefs.h <<\EOF
12945#define wxUSE_MEMORY_TRACING 1
12946EOF
12947
12948 cat >> confdefs.h <<\EOF
12949#define wxUSE_GLOBAL_MEMORY_OPERATORS 1
47c13eb7
VS
12950EOF
12951
12952 cat >> confdefs.h <<\EOF
12953#define wxUSE_DEBUG_NEW_ALWAYS 1
10f2d63a
VZ
12954EOF
12955
12956 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
12957fi
12958
12959if test "$wxUSE_DMALLOC" = "yes" ; then
12960 DMALLOC_LINK="-ldmalloc"
12961fi
12962
12963PROFILE=
12964if test "$wxUSE_PROFILE" = "yes" ; then
12965 PROFILE="-pg"
12966fi
12967
12968DEP_INFO_FLAGS=
caa2c79b 12969CODE_GEN_FLAGS=
0f3f1cbc 12970CODE_GEN_FLAGS_CXX=
10f2d63a
VZ
12971if test "$GCC" = yes ; then
12972 if test "$wxUSE_NO_RTTI" = "yes" ; then
0f3f1cbc 12973 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS -fno-rtti"
10f2d63a
VZ
12974 fi
12975 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
0f3f1cbc 12976 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS -fno-exceptions"
10f2d63a
VZ
12977 fi
12978 if test "$wxUSE_PERMISSIVE" = "yes" ; then
caa2c79b 12979 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive"
10f2d63a
VZ
12980 fi
12981 if test "$wxUSE_NO_DEPS" = "no" ; then
12982 DEP_INFO_FLAGS="-MMD"
12983 fi
12984fi
12985
12986
12987CXXFLAGS=`echo "${CXXFLAGS}" | sed "s/\-O.//g" `
12988CFLAGS=`echo "${CFLAGS}" | sed "s/\-O.//g" `
12989if test "$wxUSE_OPTIMISE" = "no" ; then
12990 OPTIMISE=
12991else
12992 if test "$GCC" = yes ; then
12993 OPTIMISE="-O2"
12994 case "${host}" in
12995 i586-*-*|i686-*-* )
12996 OPTIMISE="${OPTIMISE} "
12997 ;;
12998 esac
12999 else
13000 OPTIMISE="-O"
13001 fi
13002fi
13003
13004
13005ZLIB_INCLUDE=
422107f9 13006if test "$wxUSE_ZLIB" = "yes" -o "$wxUSE_ZLIB" = "sys" ; then
10f2d63a
VZ
13007 cat >> confdefs.h <<\EOF
13008#define wxUSE_ZLIB 1
13009EOF
13010
422107f9
VZ
13011 if test "$wxUSE_ZLIB" = "yes" ; then
13012 ZLIB_INCLUDE="-I\${top_srcdir}/src/zlib"
13013 else
13014 ZLIB_LINK=
13015 ac_safe=`echo "zlib.h" | sed 'y%./+-%__p_%'`
13016echo $ac_n "checking for zlib.h""... $ac_c" 1>&6
0046ff7c 13017echo "configure:13018: checking for zlib.h" >&5
422107f9
VZ
13018if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
13019 echo $ac_n "(cached) $ac_c" 1>&6
13020else
13021 cat > conftest.$ac_ext <<EOF
0046ff7c 13022#line 13023 "configure"
422107f9
VZ
13023#include "confdefs.h"
13024#include <zlib.h>
13025EOF
13026ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
0046ff7c 13027{ (eval echo configure:13028: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
422107f9
VZ
13028ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13029if test -z "$ac_err"; then
13030 rm -rf conftest*
13031 eval "ac_cv_header_$ac_safe=yes"
13032else
13033 echo "$ac_err" >&5
13034 echo "configure: failed program was:" >&5
13035 cat conftest.$ac_ext >&5
13036 rm -rf conftest*
13037 eval "ac_cv_header_$ac_safe=no"
13038fi
13039rm -f conftest*
13040fi
13041if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13042 echo "$ac_t""yes" 1>&6
13043 echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6
0046ff7c 13044echo "configure:13045: checking for deflate in -lz" >&5
422107f9
VZ
13045ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'`
13046if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13047 echo $ac_n "(cached) $ac_c" 1>&6
13048else
13049 ac_save_LIBS="$LIBS"
13050LIBS="-lz $LIBS"
13051cat > conftest.$ac_ext <<EOF
0046ff7c 13052#line 13053 "configure"
422107f9
VZ
13053#include "confdefs.h"
13054/* Override any gcc2 internal prototype to avoid an error. */
13055/* We use char because int might match the return type of a gcc2
13056 builtin and then its argument prototype would still apply. */
13057char deflate();
13058
13059int main() {
13060deflate()
13061; return 0; }
13062EOF
0046ff7c 13063if { (eval echo configure:13064: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
422107f9
VZ
13064 rm -rf conftest*
13065 eval "ac_cv_lib_$ac_lib_var=yes"
13066else
13067 echo "configure: failed program was:" >&5
13068 cat conftest.$ac_ext >&5
13069 rm -rf conftest*
13070 eval "ac_cv_lib_$ac_lib_var=no"
13071fi
13072rm -f conftest*
13073LIBS="$ac_save_LIBS"
13074
13075fi
13076if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13077 echo "$ac_t""yes" 1>&6
13078 ZLIB_LINK="-lz"
13079else
13080 echo "$ac_t""no" 1>&6
13081fi
13082
13083else
13084 echo "$ac_t""no" 1>&6
13085fi
13086
13087 if test "x$ZLIB_LINK" = "x" ; then
13088 { echo "configure: error: system zlib compression library not found! Use --with-zlib=yes to use built-in zlib" 1>&2; exit 1; }
13089 fi
13090 fi
10f2d63a
VZ
13091fi
13092
13093PNG_INCLUDE=
422107f9 13094if test "$wxUSE_LIBPNG" = "yes" -o "$wxUSE_LIBPNG" = "sys" ; then
10f2d63a
VZ
13095 cat >> confdefs.h <<\EOF
13096#define wxUSE_LIBPNG 1
13097EOF
13098
41fd4136 13099 if test "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
422107f9
VZ
13100 echo "configure: warning: --with-libpng=sys doesn't work without --with-zlib=sys, will compile the built-in libpng instead" 1>&2
13101 wxUSE_LIBPNG=yes
13102 fi
13103
13104 if test "$wxUSE_LIBPNG" = "yes" ; then
13105 PNG_INCLUDE="-I\${top_srcdir}/src/png"
13106 else
13107 PNG_LINK=
13108 ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'`
13109echo $ac_n "checking for png.h""... $ac_c" 1>&6
0046ff7c 13110echo "configure:13111: checking for png.h" >&5
422107f9
VZ
13111if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
13112 echo $ac_n "(cached) $ac_c" 1>&6
13113else
13114 cat > conftest.$ac_ext <<EOF
0046ff7c 13115#line 13116 "configure"
422107f9
VZ
13116#include "confdefs.h"
13117#include <png.h>
13118EOF
13119ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
0046ff7c 13120{ (eval echo configure:13121: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
422107f9
VZ
13121ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13122if test -z "$ac_err"; then
13123 rm -rf conftest*
13124 eval "ac_cv_header_$ac_safe=yes"
13125else
13126 echo "$ac_err" >&5
13127 echo "configure: failed program was:" >&5
13128 cat conftest.$ac_ext >&5
13129 rm -rf conftest*
13130 eval "ac_cv_header_$ac_safe=no"
13131fi
13132rm -f conftest*
13133fi
13134if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13135 echo "$ac_t""yes" 1>&6
13136 echo $ac_n "checking for png_check_sig in -lpng""... $ac_c" 1>&6
0046ff7c 13137echo "configure:13138: checking for png_check_sig in -lpng" >&5
422107f9
VZ
13138ac_lib_var=`echo png'_'png_check_sig | sed 'y%./+-%__p_%'`
13139if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13140 echo $ac_n "(cached) $ac_c" 1>&6
13141else
13142 ac_save_LIBS="$LIBS"
13143LIBS="-lpng -lz -lm $LIBS"
13144cat > conftest.$ac_ext <<EOF
0046ff7c 13145#line 13146 "configure"
422107f9
VZ
13146#include "confdefs.h"
13147/* Override any gcc2 internal prototype to avoid an error. */
13148/* We use char because int might match the return type of a gcc2
13149 builtin and then its argument prototype would still apply. */
13150char png_check_sig();
13151
13152int main() {
13153png_check_sig()
13154; return 0; }
13155EOF
0046ff7c 13156if { (eval echo configure:13157: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
422107f9
VZ
13157 rm -rf conftest*
13158 eval "ac_cv_lib_$ac_lib_var=yes"
13159else
13160 echo "configure: failed program was:" >&5
13161 cat conftest.$ac_ext >&5
13162 rm -rf conftest*
13163 eval "ac_cv_lib_$ac_lib_var=no"
13164fi
13165rm -f conftest*
13166LIBS="$ac_save_LIBS"
13167
13168fi
13169if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13170 echo "$ac_t""yes" 1>&6
13171 PNG_LINK="-lpng"
13172else
13173 echo "$ac_t""no" 1>&6
13174fi
13175
13176
13177else
13178 echo "$ac_t""no" 1>&6
13179fi
13180
13181 if test "x$PNG_LINK" = "x" ; then
0dcf9893 13182 { echo "configure: error: system png library not found! Use --with-libpng=yes to use the built-in libpng" 1>&2; exit 1; }
422107f9
VZ
13183 fi
13184 fi
13185
10f2d63a
VZ
13186 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
13187fi
13188
13189JPEG_INCLUDE=
422107f9 13190if test "$wxUSE_LIBJPEG" = "yes" -o "$wxUSE_LIBJPEG" = "sys" ; then
10f2d63a
VZ
13191 cat >> confdefs.h <<\EOF
13192#define wxUSE_LIBJPEG 1
13193EOF
13194
422107f9
VZ
13195 if test "$wxUSE_LIBJPEG" = "yes" ; then
13196 JPEG_INCLUDE="-I\${top_srcdir}/src/jpeg"
13197 else
13198 JPEG_LINK=
13199 ac_safe=`echo "jpeglib.h" | sed 'y%./+-%__p_%'`
13200echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6
0046ff7c 13201echo "configure:13202: checking for jpeglib.h" >&5
422107f9
VZ
13202if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
13203 echo $ac_n "(cached) $ac_c" 1>&6
13204else
13205 cat > conftest.$ac_ext <<EOF
0046ff7c 13206#line 13207 "configure"
422107f9
VZ
13207#include "confdefs.h"
13208#include <jpeglib.h>
13209EOF
13210ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
0046ff7c 13211{ (eval echo configure:13212: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
422107f9
VZ
13212ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13213if test -z "$ac_err"; then
13214 rm -rf conftest*
13215 eval "ac_cv_header_$ac_safe=yes"
13216else
13217 echo "$ac_err" >&5
13218 echo "configure: failed program was:" >&5
13219 cat conftest.$ac_ext >&5
13220 rm -rf conftest*
13221 eval "ac_cv_header_$ac_safe=no"
13222fi
13223rm -f conftest*
13224fi
13225if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13226 echo "$ac_t""yes" 1>&6
13227 echo $ac_n "checking for jpeg_read_header in -ljpeg""... $ac_c" 1>&6
0046ff7c 13228echo "configure:13229: checking for jpeg_read_header in -ljpeg" >&5
422107f9
VZ
13229ac_lib_var=`echo jpeg'_'jpeg_read_header | sed 'y%./+-%__p_%'`
13230if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13231 echo $ac_n "(cached) $ac_c" 1>&6
13232else
13233 ac_save_LIBS="$LIBS"
13234LIBS="-ljpeg $LIBS"
13235cat > conftest.$ac_ext <<EOF
0046ff7c 13236#line 13237 "configure"
422107f9
VZ
13237#include "confdefs.h"
13238/* Override any gcc2 internal prototype to avoid an error. */
13239/* We use char because int might match the return type of a gcc2
13240 builtin and then its argument prototype would still apply. */
13241char jpeg_read_header();
13242
13243int main() {
13244jpeg_read_header()
13245; return 0; }
13246EOF
0046ff7c 13247if { (eval echo configure:13248: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
422107f9
VZ
13248 rm -rf conftest*
13249 eval "ac_cv_lib_$ac_lib_var=yes"
13250else
13251 echo "configure: failed program was:" >&5
13252 cat conftest.$ac_ext >&5
13253 rm -rf conftest*
13254 eval "ac_cv_lib_$ac_lib_var=no"
13255fi
13256rm -f conftest*
13257LIBS="$ac_save_LIBS"
13258
13259fi
13260if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13261 echo "$ac_t""yes" 1>&6
13262 JPEG_LINK="-ljpeg"
13263else
13264 echo "$ac_t""no" 1>&6
13265fi
13266
13267else
13268 echo "$ac_t""no" 1>&6
13269fi
13270
13271 if test "x$JPEG_LINK" = "x" ; then
0dcf9893 13272 { echo "configure: error: system jpeg library not found! Use --with-libjpeg=yes to use the built-in one" 1>&2; exit 1; }
422107f9
VZ
13273 fi
13274 fi
10f2d63a
VZ
13275fi
13276
c7a2bf27 13277TIFF_INCLUDE=
0dcf9893 13278if test "$wxUSE_LIBTIFF" = "yes" -o "$wxUSE_LIBTIFF" = "sys" ; then
c7a2bf27
RR
13279 cat >> confdefs.h <<\EOF
13280#define wxUSE_LIBTIFF 1
13281EOF
13282
0dcf9893
VZ
13283 if test "$wxUSE_LIBTIFF" = "yes" ; then
13284 TIFF_INCLUDE="-I\${top_srcdir}/src/tiff"
13285 else
13286 TIFF_LINK=
13287 ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'`
13288echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6
0046ff7c 13289echo "configure:13290: checking for tiffio.h" >&5
0dcf9893
VZ
13290if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
13291 echo $ac_n "(cached) $ac_c" 1>&6
13292else
13293 cat > conftest.$ac_ext <<EOF
0046ff7c 13294#line 13295 "configure"
0dcf9893
VZ
13295#include "confdefs.h"
13296#include <tiffio.h>
13297EOF
13298ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
0046ff7c 13299{ (eval echo configure:13300: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
0dcf9893
VZ
13300ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13301if test -z "$ac_err"; then
13302 rm -rf conftest*
13303 eval "ac_cv_header_$ac_safe=yes"
13304else
13305 echo "$ac_err" >&5
13306 echo "configure: failed program was:" >&5
13307 cat conftest.$ac_ext >&5
13308 rm -rf conftest*
13309 eval "ac_cv_header_$ac_safe=no"
13310fi
13311rm -f conftest*
13312fi
13313if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13314 echo "$ac_t""yes" 1>&6
13315 echo $ac_n "checking for TIFFError in -ltiff""... $ac_c" 1>&6
0046ff7c 13316echo "configure:13317: checking for TIFFError in -ltiff" >&5
0dcf9893
VZ
13317ac_lib_var=`echo tiff'_'TIFFError | sed 'y%./+-%__p_%'`
13318if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13319 echo $ac_n "(cached) $ac_c" 1>&6
13320else
13321 ac_save_LIBS="$LIBS"
13322LIBS="-ltiff -lm $LIBS"
13323cat > conftest.$ac_ext <<EOF
0046ff7c 13324#line 13325 "configure"
0dcf9893
VZ
13325#include "confdefs.h"
13326/* Override any gcc2 internal prototype to avoid an error. */
13327/* We use char because int might match the return type of a gcc2
13328 builtin and then its argument prototype would still apply. */
13329char TIFFError();
13330
13331int main() {
13332TIFFError()
13333; return 0; }
13334EOF
0046ff7c 13335if { (eval echo configure:13336: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
0dcf9893
VZ
13336 rm -rf conftest*
13337 eval "ac_cv_lib_$ac_lib_var=yes"
13338else
13339 echo "configure: failed program was:" >&5
13340 cat conftest.$ac_ext >&5
13341 rm -rf conftest*
13342 eval "ac_cv_lib_$ac_lib_var=no"
13343fi
13344rm -f conftest*
13345LIBS="$ac_save_LIBS"
13346
13347fi
13348if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13349 echo "$ac_t""yes" 1>&6
13350 TIFF_LINK="-ltiff"
13351else
13352 echo "$ac_t""no" 1>&6
13353fi
13354
13355else
13356 echo "$ac_t""no" 1>&6
13357fi
13358
13359 if test "x$TIFF_LINK" = "x" ; then
13360 { echo "configure: error: system tiff library not found! Use --with-libtiff=yes to use the built-in one" 1>&2; exit 1; }
13361 fi
13362 fi
c7a2bf27
RR
13363fi
13364
3fed1840
RR
13365FREETYPE_INCLUDE=
13366if test "$wxUSE_FREETYPE" = "yes" -o "$wxUSE_FREETYPE" = "sys" ; then
13367 cat >> confdefs.h <<\EOF
13368#define wxUSE_FREETYPE 1
13369EOF
13370
13371 if test "$wxUSE_FREETYPE" = "yes" ; then
13372 FREETYPE_INCLUDE="-I\${top_srcdir}/src/freetype"
13373 else
13374 FREETYPE_LINK=
13375 ac_safe=`echo "freetype.h" | sed 'y%./+-%__p_%'`
13376echo $ac_n "checking for freetype.h""... $ac_c" 1>&6
0046ff7c 13377echo "configure:13378: checking for freetype.h" >&5
3fed1840
RR
13378if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
13379 echo $ac_n "(cached) $ac_c" 1>&6
13380else
13381 cat > conftest.$ac_ext <<EOF
0046ff7c 13382#line 13383 "configure"
3fed1840
RR
13383#include "confdefs.h"
13384#include <freetype.h>
13385EOF
13386ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
0046ff7c 13387{ (eval echo configure:13388: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3fed1840
RR
13388ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13389if test -z "$ac_err"; then
13390 rm -rf conftest*
13391 eval "ac_cv_header_$ac_safe=yes"
13392else
13393 echo "$ac_err" >&5
13394 echo "configure: failed program was:" >&5
13395 cat conftest.$ac_ext >&5
13396 rm -rf conftest*
13397 eval "ac_cv_header_$ac_safe=no"
13398fi
13399rm -f conftest*
13400fi
13401if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13402 echo "$ac_t""yes" 1>&6
13403 echo $ac_n "checking for FT_Render_Glyph in -lfreetype""... $ac_c" 1>&6
0046ff7c 13404echo "configure:13405: checking for FT_Render_Glyph in -lfreetype" >&5
3fed1840
RR
13405ac_lib_var=`echo freetype'_'FT_Render_Glyph | sed 'y%./+-%__p_%'`
13406if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13407 echo $ac_n "(cached) $ac_c" 1>&6
13408else
13409 ac_save_LIBS="$LIBS"
13410LIBS="-lfreetype -lm $LIBS"
13411cat > conftest.$ac_ext <<EOF
0046ff7c 13412#line 13413 "configure"
3fed1840
RR
13413#include "confdefs.h"
13414/* Override any gcc2 internal prototype to avoid an error. */
13415/* We use char because int might match the return type of a gcc2
13416 builtin and then its argument prototype would still apply. */
13417char FT_Render_Glyph();
13418
13419int main() {
13420FT_Render_Glyph()
13421; return 0; }
13422EOF
0046ff7c 13423if { (eval echo configure:13424: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3fed1840
RR
13424 rm -rf conftest*
13425 eval "ac_cv_lib_$ac_lib_var=yes"
13426else
13427 echo "configure: failed program was:" >&5
13428 cat conftest.$ac_ext >&5
13429 rm -rf conftest*
13430 eval "ac_cv_lib_$ac_lib_var=no"
13431fi
13432rm -f conftest*
13433LIBS="$ac_save_LIBS"
13434
13435fi
13436if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13437 echo "$ac_t""yes" 1>&6
13438 FREETYPE_LINK="-lfreetype"
13439else
13440 echo "$ac_t""no" 1>&6
13441fi
13442
13443
13444else
13445 echo "$ac_t""no" 1>&6
13446fi
13447
13448 if test "x$FREETYPE_LINK" = "x" ; then
13449 { echo "configure: error: system freetype library not found! Use --with-freetype=yes to use the built-in freetype" 1>&2; exit 1; }
13450 fi
13451 fi
13452fi
13453
10f2d63a
VZ
13454if test "$wxUSE_OPENGL" = "yes"; then
13455 ac_safe=`echo "GL/gl.h" | sed 'y%./+-%__p_%'`
13456echo $ac_n "checking for GL/gl.h""... $ac_c" 1>&6
0046ff7c 13457echo "configure:13458: checking for GL/gl.h" >&5
10f2d63a
VZ
13458if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
13459 echo $ac_n "(cached) $ac_c" 1>&6
13460else
13461 cat > conftest.$ac_ext <<EOF
0046ff7c 13462#line 13463 "configure"
10f2d63a
VZ
13463#include "confdefs.h"
13464#include <GL/gl.h>
13465EOF
13466ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
0046ff7c 13467{ (eval echo configure:13468: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
13468ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13469if test -z "$ac_err"; then
13470 rm -rf conftest*
13471 eval "ac_cv_header_$ac_safe=yes"
13472else
13473 echo "$ac_err" >&5
13474 echo "configure: failed program was:" >&5
13475 cat conftest.$ac_ext >&5
13476 rm -rf conftest*
13477 eval "ac_cv_header_$ac_safe=no"
13478fi
13479rm -f conftest*
13480fi
13481if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13482 echo "$ac_t""yes" 1>&6
13483
bdad4e7e
RR
13484 cat >> confdefs.h <<\EOF
13485#define wxUSE_OPENGL 1
13486EOF
13487
13488 cat >> confdefs.h <<\EOF
13489#define wxUSE_GLCANVAS 1
13490EOF
13491
13492 echo $ac_n "checking for glFlush in -lGL""... $ac_c" 1>&6
0046ff7c 13493echo "configure:13494: checking for glFlush in -lGL" >&5
bdad4e7e 13494ac_lib_var=`echo GL'_'glFlush | sed 'y%./+-%__p_%'`
10f2d63a
VZ
13495if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13496 echo $ac_n "(cached) $ac_c" 1>&6
13497else
13498 ac_save_LIBS="$LIBS"
bdad4e7e 13499LIBS="-lGL $LIBS"
10f2d63a 13500cat > conftest.$ac_ext <<EOF
0046ff7c 13501#line 13502 "configure"
10f2d63a
VZ
13502#include "confdefs.h"
13503/* Override any gcc2 internal prototype to avoid an error. */
13504/* We use char because int might match the return type of a gcc2
13505 builtin and then its argument prototype would still apply. */
bdad4e7e 13506char glFlush();
10f2d63a
VZ
13507
13508int main() {
bdad4e7e 13509glFlush()
10f2d63a
VZ
13510; return 0; }
13511EOF
0046ff7c 13512if { (eval echo configure:13513: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
13513 rm -rf conftest*
13514 eval "ac_cv_lib_$ac_lib_var=yes"
13515else
13516 echo "configure: failed program was:" >&5
13517 cat conftest.$ac_ext >&5
13518 rm -rf conftest*
13519 eval "ac_cv_lib_$ac_lib_var=no"
13520fi
13521rm -f conftest*
13522LIBS="$ac_save_LIBS"
13523
13524fi
13525if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13526 echo "$ac_t""yes" 1>&6
13527
f6bcfd97 13528 OPENGL_LINK="-lGL -lGLU"
10f2d63a
VZ
13529
13530else
13531 echo "$ac_t""no" 1>&6
13532
bdad4e7e 13533 echo $ac_n "checking for glFlush in -lMesaGL""... $ac_c" 1>&6
0046ff7c 13534echo "configure:13535: checking for glFlush in -lMesaGL" >&5
bdad4e7e 13535ac_lib_var=`echo MesaGL'_'glFlush | sed 'y%./+-%__p_%'`
10f2d63a
VZ
13536if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13537 echo $ac_n "(cached) $ac_c" 1>&6
13538else
13539 ac_save_LIBS="$LIBS"
13540LIBS="-lMesaGL $LIBS"
13541cat > conftest.$ac_ext <<EOF
0046ff7c 13542#line 13543 "configure"
10f2d63a
VZ
13543#include "confdefs.h"
13544/* Override any gcc2 internal prototype to avoid an error. */
13545/* We use char because int might match the return type of a gcc2
13546 builtin and then its argument prototype would still apply. */
bdad4e7e 13547char glFlush();
10f2d63a
VZ
13548
13549int main() {
bdad4e7e 13550glFlush()
10f2d63a
VZ
13551; return 0; }
13552EOF
0046ff7c 13553if { (eval echo configure:13554: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
13554 rm -rf conftest*
13555 eval "ac_cv_lib_$ac_lib_var=yes"
13556else
13557 echo "configure: failed program was:" >&5
13558 cat conftest.$ac_ext >&5
13559 rm -rf conftest*
13560 eval "ac_cv_lib_$ac_lib_var=no"
13561fi
13562rm -f conftest*
13563LIBS="$ac_save_LIBS"
13564
13565fi
13566if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13567 echo "$ac_t""yes" 1>&6
13568
f6bcfd97 13569 OPENGL_LINK="-lMesaGL -lMesaGLU"
10f2d63a
VZ
13570
13571else
13572 echo "$ac_t""no" 1>&6
10f2d63a
VZ
13573fi
13574
13575
13576fi
13577
13578
13579else
13580 echo "$ac_t""no" 1>&6
13581wxUSE_OPENGL=0
13582fi
13583
13584fi
13585
13586
13587if test "$wxUSE_GUI" = "yes"; then
13588 cat >> confdefs.h <<\EOF
13589#define wxUSE_GUI 1
13590EOF
13591
13592
13593 else
13594 cat >> confdefs.h <<\EOF
13595#define wxUSE_NOGUI 1
13596EOF
13597
13598fi
13599
13600
13601if test "$wxUSE_UNIX" = "yes"; then
13602 cat >> confdefs.h <<\EOF
13603#define wxUSE_UNIX 1
13604EOF
13605
13606fi
13607
13608
13609if test "$wxUSE_APPLE_IEEE" = "yes"; then
13610 cat >> confdefs.h <<\EOF
13611#define wxUSE_APPLE_IEEE 1
13612EOF
13613
13614fi
13615
10f2d63a
VZ
13616if test "$wxUSE_WAVE" = "yes"; then
13617 cat >> confdefs.h <<\EOF
13618#define wxUSE_WAVE 1
13619EOF
13620
13621fi
13622
13623if test "$wxUSE_FILE" = "yes"; then
13624 cat >> confdefs.h <<\EOF
13625#define wxUSE_FILE 1
13626EOF
13627
13628fi
13629
24528b0c
VS
13630if test "$wxUSE_FILESYSTEM" = "yes"; then
13631 cat >> confdefs.h <<\EOF
13632#define wxUSE_FILESYSTEM 1
13633EOF
13634
13635fi
13636
10f2d63a
VZ
13637if test "$wxUSE_FS_INET" = "yes"; then
13638 cat >> confdefs.h <<\EOF
13639#define wxUSE_FS_INET 1
13640EOF
13641
13642fi
13643
13644if test "$wxUSE_FS_ZIP" = "yes"; then
13645 cat >> confdefs.h <<\EOF
13646#define wxUSE_FS_ZIP 1
13647EOF
13648
13649fi
13650
13651if test "$wxUSE_ZIPSTREAM" = "yes"; then
13652 cat >> confdefs.h <<\EOF
13653#define wxUSE_ZIPSTREAM 1
13654EOF
13655
13656fi
13657
eb4efbdc
VZ
13658if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
13659 cat >> confdefs.h <<\EOF
13660#define wxUSE_ON_FATAL_EXCEPTION 1
13661EOF
13662
13663fi
13664
10f2d63a
VZ
13665if test "$wxUSE_BUSYINFO" = "yes"; then
13666 cat >> confdefs.h <<\EOF
13667#define wxUSE_BUSYINFO 1
13668EOF
13669
13670fi
13671
13672if test "$wxUSE_STD_IOSTREAM" = "yes"; then
13673 cat >> confdefs.h <<\EOF
13674#define wxUSE_STD_IOSTREAM 1
13675EOF
13676
13677fi
13678
13679if test "$wxUSE_TEXTFILE" = "yes"; then
13680 if test "$wxUSE_FILE" != "yes"; then
13681 echo "configure: warning: wxTextFile requires wxFile and it won't be compiled without it" 1>&2
13682 else
13683 cat >> confdefs.h <<\EOF
13684#define wxUSE_TEXTFILE 1
13685EOF
13686
13687 fi
13688fi
13689
13690if test "$wxUSE_CONFIG" = "yes" ; then
13691 if test "$wxUSE_TEXTFILE" != "yes"; then
13692 echo "configure: warning: wxConfig requires wxTextFile and it won't be compiled without it" 1>&2
13693 else
13694 cat >> confdefs.h <<\EOF
13695#define wxUSE_CONFIG 1
13696EOF
13697
13698 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
13699 fi
13700fi
13701
13702if test "$wxUSE_INTL" = "yes" ; then
13703 if test "$wxUSE_FILE" != "yes"; then
13704 echo "configure: warning: I18n code requires wxFile and it won't be compiled without it" 1>&2
13705 else
13706 cat >> confdefs.h <<\EOF
13707#define wxUSE_INTL 1
13708EOF
13709
13710 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
f6bcfd97 13711 GUIDIST="$GUIDIST INTL_DIST"
10f2d63a
VZ
13712 fi
13713fi
13714
13715if test "$wxUSE_LOG" = "yes"; then
13716 cat >> confdefs.h <<\EOF
13717#define wxUSE_LOG 1
13718EOF
13719
13720fi
13721
13722if test "$wxUSE_LONGLONG" = "yes"; then
13723 cat >> confdefs.h <<\EOF
13724#define wxUSE_LONGLONG 1
13725EOF
13726
13727fi
13728
e8f65ba6
RR
13729if test "$wxUSE_GEOMETRY" = "yes"; then
13730 cat >> confdefs.h <<\EOF
13731#define wxUSE_GEOMETRY 1
13732EOF
13733
13734fi
13735
10f2d63a
VZ
13736if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then
13737 cat >> confdefs.h <<\EOF
13738#define wxUSE_DIALUP_MANAGER 1
13739EOF
13740
70f7a477 13741 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
10f2d63a
VZ
13742fi
13743
13744if test "$wxUSE_STREAMS" = "yes" ; then
13745 cat >> confdefs.h <<\EOF
13746#define wxUSE_STREAMS 1
13747EOF
13748
13749fi
13750
10f2d63a 13751
afc31813 13752if test "$wxUSE_TIMEDATE" = "yes"; then
83307f33
VZ
13753 for ac_func in strptime
13754do
13755echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
0046ff7c 13756echo "configure:13757: checking for $ac_func" >&5
83307f33
VZ
13757if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13758 echo $ac_n "(cached) $ac_c" 1>&6
13759else
13760 cat > conftest.$ac_ext <<EOF
0046ff7c 13761#line 13762 "configure"
83307f33
VZ
13762#include "confdefs.h"
13763/* System header to define __stub macros and hopefully few prototypes,
13764 which can conflict with char $ac_func(); below. */
13765#include <assert.h>
13766/* Override any gcc2 internal prototype to avoid an error. */
13767/* We use char because int might match the return type of a gcc2
13768 builtin and then its argument prototype would still apply. */
13769char $ac_func();
13770
13771int main() {
13772
13773/* The GNU C library defines this for functions which it implements
13774 to always fail with ENOSYS. Some functions are actually named
13775 something starting with __ and the normal name is an alias. */
13776#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13777choke me
13778#else
e8482f24 13779$ac_func();
83307f33
VZ
13780#endif
13781
13782; return 0; }
13783EOF
0046ff7c 13784if { (eval echo configure:13785: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
83307f33
VZ
13785 rm -rf conftest*
13786 eval "ac_cv_func_$ac_func=yes"
13787else
13788 echo "configure: failed program was:" >&5
13789 cat conftest.$ac_ext >&5
13790 rm -rf conftest*
13791 eval "ac_cv_func_$ac_func=no"
13792fi
13793rm -f conftest*
13794fi
13795
13796if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13797 echo "$ac_t""yes" 1>&6
13798 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13799 cat >> confdefs.h <<EOF
13800#define $ac_tr_func 1
13801EOF
13802
13803else
13804 echo "$ac_t""no" 1>&6
13805fi
13806done
13807
13808
360d6699 13809 echo $ac_n "checking for timezone variable in <time.h>""... $ac_c" 1>&6
0046ff7c 13810echo "configure:13811: checking for timezone variable in <time.h>" >&5
360d6699
VZ
13811if eval "test \"`echo '$''{'wx_cv_var_timezone'+set}'`\" = set"; then
13812 echo $ac_n "(cached) $ac_c" 1>&6
13813else
13814
13815 cat > conftest.$ac_ext <<EOF
0046ff7c 13816#line 13817 "configure"
360d6699
VZ
13817#include "confdefs.h"
13818
b4085ce6 13819 #include <time.h>
360d6699
VZ
13820
13821int main() {
13822
13823 int tz;
13824 tz = __timezone;
13825
13826; return 0; }
13827EOF
0046ff7c 13828if { (eval echo configure:13829: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
360d6699
VZ
13829 rm -rf conftest*
13830
13831 wx_cv_var_timezone=__timezone
13832
13833else
13834 echo "configure: failed program was:" >&5
13835 cat conftest.$ac_ext >&5
13836 rm -rf conftest*
13837
13838 cat > conftest.$ac_ext <<EOF
0046ff7c 13839#line 13840 "configure"
360d6699
VZ
13840#include "confdefs.h"
13841
b4085ce6 13842 #include <time.h>
360d6699
VZ
13843
13844int main() {
13845
13846 int tz;
13847 tz = _timezone;
13848
13849; return 0; }
13850EOF
0046ff7c 13851if { (eval echo configure:13852: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
360d6699
VZ
13852 rm -rf conftest*
13853
13854 wx_cv_var_timezone=_timezone
13855
5357c8e8
VZ
13856else
13857 echo "configure: failed program was:" >&5
13858 cat conftest.$ac_ext >&5
13859 rm -rf conftest*
13860
13861 cat > conftest.$ac_ext <<EOF
0046ff7c 13862#line 13863 "configure"
5357c8e8
VZ
13863#include "confdefs.h"
13864
b4085ce6 13865 #include <time.h>
5357c8e8
VZ
13866
13867int main() {
13868
13869 int tz;
13870 tz = timezone;
13871
13872; return 0; }
13873EOF
0046ff7c 13874if { (eval echo configure:13875: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5357c8e8
VZ
13875 rm -rf conftest*
13876
13877 wx_cv_var_timezone=timezone
13878
360d6699
VZ
13879else
13880 echo "configure: failed program was:" >&5
13881 cat conftest.$ac_ext >&5
13882 rm -rf conftest*
13883 { echo "configure: error: no timezone variable" 1>&2; exit 1; }
5357c8e8
VZ
13884
13885fi
13886rm -f conftest*
13887
360d6699
VZ
13888
13889fi
13890rm -f conftest*
13891
13892
13893fi
13894rm -f conftest*
13895
13896
13897fi
13898
13899echo "$ac_t""$wx_cv_var_timezone" 1>&6
13900
13901 cat >> confdefs.h <<EOF
13902#define WX_TIMEZONE $wx_cv_var_timezone
13903EOF
13904
13905
3fcdd07b 13906 for ac_func in localtime
afc31813
VZ
13907do
13908echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
0046ff7c 13909echo "configure:13910: checking for $ac_func" >&5
afc31813
VZ
13910if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13911 echo $ac_n "(cached) $ac_c" 1>&6
13912else
13913 cat > conftest.$ac_ext <<EOF
0046ff7c 13914#line 13915 "configure"
10f2d63a 13915#include "confdefs.h"
afc31813
VZ
13916/* System header to define __stub macros and hopefully few prototypes,
13917 which can conflict with char $ac_func(); below. */
13918#include <assert.h>
13919/* Override any gcc2 internal prototype to avoid an error. */
13920/* We use char because int might match the return type of a gcc2
13921 builtin and then its argument prototype would still apply. */
13922char $ac_func();
13923
10f2d63a 13924int main() {
afc31813
VZ
13925
13926/* The GNU C library defines this for functions which it implements
13927 to always fail with ENOSYS. Some functions are actually named
13928 something starting with __ and the normal name is an alias. */
13929#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13930choke me
13931#else
e8482f24 13932$ac_func();
afc31813
VZ
13933#endif
13934
10f2d63a
VZ
13935; return 0; }
13936EOF
0046ff7c 13937if { (eval echo configure:13938: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a 13938 rm -rf conftest*
afc31813 13939 eval "ac_cv_func_$ac_func=yes"
10f2d63a
VZ
13940else
13941 echo "configure: failed program was:" >&5
13942 cat conftest.$ac_ext >&5
13943 rm -rf conftest*
afc31813
VZ
13944 eval "ac_cv_func_$ac_func=no"
13945fi
13946rm -f conftest*
13947fi
13948
13949if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13950 echo "$ac_t""yes" 1>&6
13951 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13952 cat >> confdefs.h <<EOF
13953#define $ac_tr_func 1
13954EOF
3fcdd07b 13955
afc31813
VZ
13956else
13957 echo "$ac_t""no" 1>&6
13958fi
13959done
13960
13961
0470b1e6
VZ
13962 if test "$ac_cv_func_localtime" = "yes"; then
13963 echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6
0046ff7c 13964echo "configure:13965: checking for tm_gmtoff in struct tm" >&5
0470b1e6
VZ
13965if eval "test \"`echo '$''{'wx_cv_struct_tm_has_gmtoff'+set}'`\" = set"; then
13966 echo $ac_n "(cached) $ac_c" 1>&6
13967else
13968
13969 cat > conftest.$ac_ext <<EOF
0046ff7c 13970#line 13971 "configure"
0470b1e6
VZ
13971#include "confdefs.h"
13972
b4085ce6 13973 #include <time.h>
0470b1e6
VZ
13974
13975int main() {
13976
13977 struct tm tm;
13978 tm.tm_gmtoff++;
13979
13980; return 0; }
13981EOF
0046ff7c 13982if { (eval echo configure:13983: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
0470b1e6
VZ
13983 rm -rf conftest*
13984
f03a98d8 13985 wx_cv_struct_tm_has_gmtoff=yes
0470b1e6
VZ
13986 cat >> confdefs.h <<\EOF
13987#define WX_GMTOFF_IN_TM 1
13988EOF
13989
13990
13991else
13992 echo "configure: failed program was:" >&5
13993 cat conftest.$ac_ext >&5
13994 rm -rf conftest*
13995 wx_cv_struct_tm_has_gmtoff=no
13996
13997fi
13998rm -f conftest*
13999
14000fi
14001
14002echo "$ac_t""$wx_cv_struct_tm_has_gmtoff" 1>&6
3fcdd07b
VZ
14003 fi
14004
14005 for ac_func in gettimeofday ftime
14006do
14007echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
0046ff7c 14008echo "configure:14009: checking for $ac_func" >&5
3fcdd07b
VZ
14009if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14010 echo $ac_n "(cached) $ac_c" 1>&6
14011else
14012 cat > conftest.$ac_ext <<EOF
0046ff7c 14013#line 14014 "configure"
3fcdd07b
VZ
14014#include "confdefs.h"
14015/* System header to define __stub macros and hopefully few prototypes,
14016 which can conflict with char $ac_func(); below. */
14017#include <assert.h>
14018/* Override any gcc2 internal prototype to avoid an error. */
14019/* We use char because int might match the return type of a gcc2
14020 builtin and then its argument prototype would still apply. */
14021char $ac_func();
14022
14023int main() {
14024
14025/* The GNU C library defines this for functions which it implements
14026 to always fail with ENOSYS. Some functions are actually named
14027 something starting with __ and the normal name is an alias. */
14028#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14029choke me
14030#else
e8482f24 14031$ac_func();
3fcdd07b
VZ
14032#endif
14033
14034; return 0; }
14035EOF
0046ff7c 14036if { (eval echo configure:14037: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3fcdd07b
VZ
14037 rm -rf conftest*
14038 eval "ac_cv_func_$ac_func=yes"
14039else
14040 echo "configure: failed program was:" >&5
14041 cat conftest.$ac_ext >&5
14042 rm -rf conftest*
14043 eval "ac_cv_func_$ac_func=no"
14044fi
14045rm -f conftest*
14046fi
14047
14048if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14049 echo "$ac_t""yes" 1>&6
14050 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14051 cat >> confdefs.h <<EOF
14052#define $ac_tr_func 1
14053EOF
14054 break
14055else
14056 echo "$ac_t""no" 1>&6
14057fi
14058done
14059
14060
14061 if test "$ac_cv_func_gettimeofday" = "yes"; then
afc31813 14062 echo $ac_n "checking whether gettimeofday takes two arguments""... $ac_c" 1>&6
0046ff7c 14063echo "configure:14064: checking whether gettimeofday takes two arguments" >&5
afc31813
VZ
14064if eval "test \"`echo '$''{'wx_cv_func_gettimeofday_has_2_args'+set}'`\" = set"; then
14065 echo $ac_n "(cached) $ac_c" 1>&6
14066else
14067
14068
14069 ac_ext=C
14070# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14071ac_cpp='$CXXCPP $CPPFLAGS'
14072ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14073ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14074cross_compiling=$ac_cv_prog_cxx_cross
14075
14076
14077 cat > conftest.$ac_ext <<EOF
0046ff7c 14078#line 14079 "configure"
10f2d63a 14079#include "confdefs.h"
afc31813
VZ
14080
14081 #include <sys/time.h>
14082 #include <unistd.h>
14083
10f2d63a 14084int main() {
afc31813
VZ
14085
14086 struct timeval tv;
14087 struct timezone tz;
14088 gettimeofday(&tv, &tz);
14089
10f2d63a
VZ
14090; return 0; }
14091EOF
0046ff7c 14092if { (eval echo configure:14093: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10f2d63a 14093 rm -rf conftest*
afc31813 14094 wx_cv_func_gettimeofday_has_2_args=yes
10f2d63a
VZ
14095else
14096 echo "configure: failed program was:" >&5
14097 cat conftest.$ac_ext >&5
14098 rm -rf conftest*
14099 cat > conftest.$ac_ext <<EOF
0046ff7c 14100#line 14101 "configure"
10f2d63a 14101#include "confdefs.h"
afc31813
VZ
14102
14103 #include <sys/time.h>
14104 #include <unistd.h>
14105
10f2d63a 14106int main() {
afc31813
VZ
14107
14108 struct timeval tv;
14109 gettimeofday(&tv);
14110
10f2d63a
VZ
14111; return 0; }
14112EOF
0046ff7c 14113if { (eval echo configure:14114: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10f2d63a 14114 rm -rf conftest*
afc31813 14115 wx_cv_func_gettimeofday_has_2_args=no
10f2d63a
VZ
14116else
14117 echo "configure: failed program was:" >&5
14118 cat conftest.$ac_ext >&5
14119 rm -rf conftest*
afc31813
VZ
14120 wx_cv_func_gettimeofday_has_2_args=unknown
14121
10f2d63a
VZ
14122fi
14123rm -f conftest*
afc31813 14124
10f2d63a
VZ
14125fi
14126rm -f conftest*
afc31813 14127 ac_ext=c
10f2d63a
VZ
14128# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14129ac_cpp='$CPP $CPPFLAGS'
14130ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14131ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14132cross_compiling=$ac_cv_prog_cc_cross
14133
afc31813
VZ
14134
14135fi
14136
14137echo "$ac_t""$wx_cv_func_gettimeofday_has_2_args" 1>&6
c63c7106 14138
afc31813
VZ
14139 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
14140 cat >> confdefs.h <<\EOF
14141#define WX_GETTIMEOFDAY_NO_TZ 1
14142EOF
14143
14144 fi
14145 fi
14146
14147 cat >> confdefs.h <<\EOF
14148#define wxUSE_TIMEDATE 1
14149EOF
14150
14151 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
14152fi
14153
14154
b089607b
VZ
14155if test "$TOOLKIT" != "MSW"; then
14156
afc31813 14157if test "$wxUSE_SOCKETS" = "yes"; then
c63c7106 14158 echo $ac_n "checking for socket""... $ac_c" 1>&6
0046ff7c 14159echo "configure:14160: checking for socket" >&5
c63c7106
VZ
14160if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
14161 echo $ac_n "(cached) $ac_c" 1>&6
14162else
14163 cat > conftest.$ac_ext <<EOF
0046ff7c 14164#line 14165 "configure"
c63c7106
VZ
14165#include "confdefs.h"
14166/* System header to define __stub macros and hopefully few prototypes,
14167 which can conflict with char socket(); below. */
14168#include <assert.h>
14169/* Override any gcc2 internal prototype to avoid an error. */
14170/* We use char because int might match the return type of a gcc2
14171 builtin and then its argument prototype would still apply. */
14172char socket();
14173
14174int main() {
14175
14176/* The GNU C library defines this for functions which it implements
14177 to always fail with ENOSYS. Some functions are actually named
14178 something starting with __ and the normal name is an alias. */
14179#if defined (__stub_socket) || defined (__stub___socket)
14180choke me
14181#else
e8482f24 14182socket();
c63c7106
VZ
14183#endif
14184
14185; return 0; }
14186EOF
0046ff7c 14187if { (eval echo configure:14188: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
c63c7106
VZ
14188 rm -rf conftest*
14189 eval "ac_cv_func_socket=yes"
14190else
14191 echo "configure: failed program was:" >&5
14192 cat conftest.$ac_ext >&5
14193 rm -rf conftest*
14194 eval "ac_cv_func_socket=no"
14195fi
14196rm -f conftest*
14197fi
14198
14199if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
14200 echo "$ac_t""yes" 1>&6
14201 :
14202else
14203 echo "$ac_t""no" 1>&6
14204echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
0046ff7c 14205echo "configure:14206: checking for socket in -lsocket" >&5
c63c7106
VZ
14206ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
14207if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14208 echo $ac_n "(cached) $ac_c" 1>&6
14209else
14210 ac_save_LIBS="$LIBS"
14211LIBS="-lsocket $LIBS"
14212cat > conftest.$ac_ext <<EOF
0046ff7c 14213#line 14214 "configure"
c63c7106
VZ
14214#include "confdefs.h"
14215/* Override any gcc2 internal prototype to avoid an error. */
14216/* We use char because int might match the return type of a gcc2
14217 builtin and then its argument prototype would still apply. */
14218char socket();
14219
14220int main() {
14221socket()
14222; return 0; }
14223EOF
0046ff7c 14224if { (eval echo configure:14225: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
c63c7106
VZ
14225 rm -rf conftest*
14226 eval "ac_cv_lib_$ac_lib_var=yes"
14227else
14228 echo "configure: failed program was:" >&5
14229 cat conftest.$ac_ext >&5
14230 rm -rf conftest*
14231 eval "ac_cv_lib_$ac_lib_var=no"
14232fi
14233rm -f conftest*
14234LIBS="$ac_save_LIBS"
14235
14236fi
14237if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14238 echo "$ac_t""yes" 1>&6
14239 INET_LINK="$INET_LINK -lsocket"
c63c7106
VZ
14240else
14241 echo "$ac_t""no" 1>&6
afc31813
VZ
14242
14243 echo "configure: warning: socket library not found - sockets will be disabled" 1>&2
14244 wxUSE_SOCKETS=no
14245
14246
c63c7106
VZ
14247fi
14248
14249
14250fi
14251
10f2d63a
VZ
14252fi
14253
b089607b 14254
afc31813 14255if test "$wxUSE_SOCKETS" = "yes" ; then
51a9faba 14256 echo $ac_n "checking what is the type of the third argument of getsockname""... $ac_c" 1>&6
0046ff7c 14257echo "configure:14258: checking what is the type of the third argument of getsockname" >&5
51a9faba
VZ
14258if eval "test \"`echo '$''{'wx_cv_type_getsockname3'+set}'`\" = set"; then
14259 echo $ac_n "(cached) $ac_c" 1>&6
14260else
14261
14262
14263 ac_ext=C
afc31813
VZ
14264# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14265ac_cpp='$CXXCPP $CPPFLAGS'
14266ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14267ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14268cross_compiling=$ac_cv_prog_cxx_cross
14269
51a9faba
VZ
14270
14271 cat > conftest.$ac_ext <<EOF
0046ff7c 14272#line 14273 "configure"
afc31813 14273#include "confdefs.h"
51a9faba 14274
3ace2e6d 14275 #include <sys/types.h>
51a9faba
VZ
14276 #include <sys/socket.h>
14277
afc31813 14278int main() {
51a9faba
VZ
14279
14280 socklen_t len;
14281 getsockname(0, 0, &len);
14282
afc31813
VZ
14283; return 0; }
14284EOF
0046ff7c 14285if { (eval echo configure:14286: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
afc31813 14286 rm -rf conftest*
51a9faba 14287 wx_cv_type_getsockname3=socklen_t
afc31813
VZ
14288else
14289 echo "configure: failed program was:" >&5
14290 cat conftest.$ac_ext >&5
14291 rm -rf conftest*
14292 cat > conftest.$ac_ext <<EOF
0046ff7c 14293#line 14294 "configure"
afc31813 14294#include "confdefs.h"
51a9faba 14295
3ace2e6d 14296 #include <sys/types.h>
51a9faba
VZ
14297 #include <sys/socket.h>
14298
afc31813 14299int main() {
51a9faba
VZ
14300
14301 size_t len;
14302 getsockname(0, 0, &len);
14303
afc31813
VZ
14304; return 0; }
14305EOF
0046ff7c 14306if { (eval echo configure:14307: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
afc31813 14307 rm -rf conftest*
51a9faba 14308 wx_cv_type_getsockname3=size_t
afc31813
VZ
14309else
14310 echo "configure: failed program was:" >&5
14311 cat conftest.$ac_ext >&5
14312 rm -rf conftest*
14313 cat > conftest.$ac_ext <<EOF
0046ff7c 14314#line 14315 "configure"
afc31813 14315#include "confdefs.h"
51a9faba 14316
3ace2e6d 14317 #include <sys/types.h>
51a9faba
VZ
14318 #include <sys/socket.h>
14319
afc31813 14320int main() {
51a9faba
VZ
14321
14322 int len;
14323 getsockname(0, 0, &len);
14324
afc31813
VZ
14325; return 0; }
14326EOF
0046ff7c 14327if { (eval echo configure:14328: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
afc31813 14328 rm -rf conftest*
51a9faba 14329 wx_cv_type_getsockname3=int
afc31813
VZ
14330else
14331 echo "configure: failed program was:" >&5
14332 cat conftest.$ac_ext >&5
3ace2e6d
SN
14333 rm -rf conftest*
14334 wx_cv_type_getsockname3=unknown
14335
afc31813
VZ
14336fi
14337rm -f conftest*
51a9faba 14338
afc31813
VZ
14339fi
14340rm -f conftest*
51a9faba 14341
afc31813
VZ
14342fi
14343rm -f conftest*
51a9faba
VZ
14344
14345 ac_ext=c
afc31813
VZ
14346# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14347ac_cpp='$CPP $CPPFLAGS'
14348ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14349ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14350cross_compiling=$ac_cv_prog_cc_cross
14351
51a9faba
VZ
14352
14353fi
14354
14355echo "$ac_t""$wx_cv_type_getsockname3" 1>&6
14356
14357 if test "$wx_cv_type_getsockname3" = "unknown"; then
14358 wxUSE_SOCKETS=no
14359 echo "configure: warning: Couldn't find socklen_t synonym for this system" 1>&2
14360 else
14361 cat >> confdefs.h <<EOF
14362#define SOCKLEN_T $wx_cv_type_getsockname3
14363EOF
14364
14365 fi
14366fi
afc31813 14367
c521c494
RL
14368fi
14369
51a9faba 14370if test "$wxUSE_SOCKETS" = "yes" ; then
afc31813
VZ
14371 cat >> confdefs.h <<\EOF
14372#define wxUSE_SOCKETS 1
14373EOF
14374
70f7a477 14375 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
afc31813
VZ
14376 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS protocol"
14377fi
14378
10f2d63a 14379
dc3d889d
VZ
14380if test "$wxUSE_GUI" = "yes"; then
14381
b089607b
VZ
14382if test "$TOOLKIT" != "MSW"; then
14383
ceded8b9 14384if test "$wxUSE_JOYSTICK" = "yes"; then
10f2d63a
VZ
14385 for ac_hdr in linux/joystick.h
14386do
14387ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
14388echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
0046ff7c 14389echo "configure:14390: checking for $ac_hdr" >&5
10f2d63a
VZ
14390if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
14391 echo $ac_n "(cached) $ac_c" 1>&6
14392else
14393 cat > conftest.$ac_ext <<EOF
0046ff7c 14394#line 14395 "configure"
10f2d63a
VZ
14395#include "confdefs.h"
14396#include <$ac_hdr>
14397EOF
14398ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
0046ff7c 14399{ (eval echo configure:14400: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
14400ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14401if test -z "$ac_err"; then
14402 rm -rf conftest*
14403 eval "ac_cv_header_$ac_safe=yes"
14404else
14405 echo "$ac_err" >&5
14406 echo "configure: failed program was:" >&5
14407 cat conftest.$ac_ext >&5
14408 rm -rf conftest*
14409 eval "ac_cv_header_$ac_safe=no"
14410fi
14411rm -f conftest*
14412fi
14413if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14414 echo "$ac_t""yes" 1>&6
14415 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
14416 cat >> confdefs.h <<EOF
14417#define $ac_tr_hdr 1
14418EOF
14419
14420else
14421 echo "$ac_t""no" 1>&6
14422fi
14423done
14424
b089607b 14425 if test "$ac_cv_header_linux_joystick_h" != "yes"; then
ceded8b9 14426 wxUSE_JOYSTICK=no
dc3d889d 14427 echo "configure: warning: Joystick not supported by this system" 1>&2
b089607b
VZ
14428 fi
14429fi
14430
14431fi
14432
ceded8b9 14433if test "$wxUSE_JOYSTICK" = "yes"; then
10f2d63a
VZ
14434 cat >> confdefs.h <<\EOF
14435#define wxUSE_JOYSTICK 1
14436EOF
14437
14438 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
10f2d63a
VZ
14439fi
14440
dc3d889d
VZ
14441fi
14442
10f2d63a 14443
b089607b
VZ
14444if test "$TOOLKIT" != "MSW"; then
14445
10f2d63a
VZ
14446HAVE_DL_FUNCS=0
14447HAVE_SHL_FUNCS=0
14448if test "$wxUSE_DYNLIB_CLASS" = "yes"; then
b4085ce6
GD
14449 if test "$USE_MAC" = 1; then
14450 HAVE_DL_FUNCS=1
14451 else
14452 for ac_func in dlopen
10f2d63a
VZ
14453do
14454echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
0046ff7c 14455echo "configure:14456: checking for $ac_func" >&5
10f2d63a
VZ
14456if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14457 echo $ac_n "(cached) $ac_c" 1>&6
14458else
14459 cat > conftest.$ac_ext <<EOF
0046ff7c 14460#line 14461 "configure"
10f2d63a
VZ
14461#include "confdefs.h"
14462/* System header to define __stub macros and hopefully few prototypes,
14463 which can conflict with char $ac_func(); below. */
14464#include <assert.h>
14465/* Override any gcc2 internal prototype to avoid an error. */
14466/* We use char because int might match the return type of a gcc2
14467 builtin and then its argument prototype would still apply. */
14468char $ac_func();
14469
14470int main() {
14471
14472/* The GNU C library defines this for functions which it implements
14473 to always fail with ENOSYS. Some functions are actually named
14474 something starting with __ and the normal name is an alias. */
14475#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14476choke me
14477#else
e8482f24 14478$ac_func();
10f2d63a
VZ
14479#endif
14480
14481; return 0; }
14482EOF
0046ff7c 14483if { (eval echo configure:14484: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
14484 rm -rf conftest*
14485 eval "ac_cv_func_$ac_func=yes"
14486else
14487 echo "configure: failed program was:" >&5
14488 cat conftest.$ac_ext >&5
14489 rm -rf conftest*
14490 eval "ac_cv_func_$ac_func=no"
14491fi
14492rm -f conftest*
14493fi
14494
14495if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14496 echo "$ac_t""yes" 1>&6
14497 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14498 cat >> confdefs.h <<EOF
14499#define $ac_tr_func 1
14500EOF
14501
14502 cat >> confdefs.h <<\EOF
14503#define HAVE_DLOPEN 1
14504EOF
14505
14506 HAVE_DL_FUNCS=1
14507
14508else
14509 echo "$ac_t""no" 1>&6
14510echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
0046ff7c 14511echo "configure:14512: checking for dlopen in -ldl" >&5
10f2d63a
VZ
14512ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
14513if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14514 echo $ac_n "(cached) $ac_c" 1>&6
14515else
14516 ac_save_LIBS="$LIBS"
14517LIBS="-ldl $LIBS"
14518cat > conftest.$ac_ext <<EOF
0046ff7c 14519#line 14520 "configure"
10f2d63a
VZ
14520#include "confdefs.h"
14521/* Override any gcc2 internal prototype to avoid an error. */
14522/* We use char because int might match the return type of a gcc2
14523 builtin and then its argument prototype would still apply. */
14524char dlopen();
14525
14526int main() {
14527dlopen()
14528; return 0; }
14529EOF
0046ff7c 14530if { (eval echo configure:14531: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
14531 rm -rf conftest*
14532 eval "ac_cv_lib_$ac_lib_var=yes"
14533else
14534 echo "configure: failed program was:" >&5
14535 cat conftest.$ac_ext >&5
14536 rm -rf conftest*
14537 eval "ac_cv_lib_$ac_lib_var=no"
14538fi
14539rm -f conftest*
14540LIBS="$ac_save_LIBS"
14541
14542fi
14543if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14544 echo "$ac_t""yes" 1>&6
14545
14546 cat >> confdefs.h <<\EOF
14547#define HAVE_DLOPEN 1
14548EOF
14549
14550 HAVE_DL_FUNCS=1
14551 LIBS="$LIBS -ldl"
14552
14553else
14554 echo "$ac_t""no" 1>&6
14555
14556 for ac_func in shl_load
14557do
14558echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
0046ff7c 14559echo "configure:14560: checking for $ac_func" >&5
10f2d63a
VZ
14560if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14561 echo $ac_n "(cached) $ac_c" 1>&6
14562else
14563 cat > conftest.$ac_ext <<EOF
0046ff7c 14564#line 14565 "configure"
10f2d63a
VZ
14565#include "confdefs.h"
14566/* System header to define __stub macros and hopefully few prototypes,
14567 which can conflict with char $ac_func(); below. */
14568#include <assert.h>
14569/* Override any gcc2 internal prototype to avoid an error. */
14570/* We use char because int might match the return type of a gcc2
14571 builtin and then its argument prototype would still apply. */
14572char $ac_func();
14573
14574int main() {
14575
14576/* The GNU C library defines this for functions which it implements
14577 to always fail with ENOSYS. Some functions are actually named
14578 something starting with __ and the normal name is an alias. */
14579#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14580choke me
14581#else
e8482f24 14582$ac_func();
10f2d63a
VZ
14583#endif
14584
14585; return 0; }
14586EOF
0046ff7c 14587if { (eval echo configure:14588: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
14588 rm -rf conftest*
14589 eval "ac_cv_func_$ac_func=yes"
14590else
14591 echo "configure: failed program was:" >&5
14592 cat conftest.$ac_ext >&5
14593 rm -rf conftest*
14594 eval "ac_cv_func_$ac_func=no"
14595fi
14596rm -f conftest*
14597fi
14598
14599if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14600 echo "$ac_t""yes" 1>&6
14601 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14602 cat >> confdefs.h <<EOF
14603#define $ac_tr_func 1
14604EOF
14605
14606 cat >> confdefs.h <<\EOF
14607#define HAVE_SHL_LOAD 1
14608EOF
14609
14610 HAVE_SHL_FUNCS=1
14611
14612else
14613 echo "$ac_t""no" 1>&6
f6bcfd97 14614echo $ac_n "checking for dld in -lshl_load""... $ac_c" 1>&6
0046ff7c 14615echo "configure:14616: checking for dld in -lshl_load" >&5
f6bcfd97
BP
14616ac_lib_var=`echo shl_load'_'dld | sed 'y%./+-%__p_%'`
14617if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14618 echo $ac_n "(cached) $ac_c" 1>&6
14619else
14620 ac_save_LIBS="$LIBS"
14621LIBS="-lshl_load $LIBS"
14622cat > conftest.$ac_ext <<EOF
0046ff7c 14623#line 14624 "configure"
f6bcfd97
BP
14624#include "confdefs.h"
14625/* Override any gcc2 internal prototype to avoid an error. */
14626/* We use char because int might match the return type of a gcc2
14627 builtin and then its argument prototype would still apply. */
14628char dld();
14629
14630int main() {
14631dld()
14632; return 0; }
14633EOF
0046ff7c 14634if { (eval echo configure:14635: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
f6bcfd97
BP
14635 rm -rf conftest*
14636 eval "ac_cv_lib_$ac_lib_var=yes"
14637else
14638 echo "configure: failed program was:" >&5
14639 cat conftest.$ac_ext >&5
14640 rm -rf conftest*
14641 eval "ac_cv_lib_$ac_lib_var=no"
14642fi
14643rm -f conftest*
14644LIBS="$ac_save_LIBS"
14645
14646fi
14647if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14648 echo "$ac_t""yes" 1>&6
14649
14650 HAVE_SHL_FUNCS=1
14651 LIBS="$LIBS -ldld"
14652
14653else
14654 echo "$ac_t""no" 1>&6
14655fi
14656
14657
10f2d63a
VZ
14658fi
14659done
14660
14661
14662fi
14663
14664
14665fi
14666done
14667
14668
f6bcfd97
BP
14669 if test "$HAVE_DL_FUNCS" = 1; then
14670 for ac_func in dlerror
14671do
14672echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
0046ff7c 14673echo "configure:14674: checking for $ac_func" >&5
f6bcfd97
BP
14674if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14675 echo $ac_n "(cached) $ac_c" 1>&6
14676else
14677 cat > conftest.$ac_ext <<EOF
0046ff7c 14678#line 14679 "configure"
f6bcfd97
BP
14679#include "confdefs.h"
14680/* System header to define __stub macros and hopefully few prototypes,
14681 which can conflict with char $ac_func(); below. */
14682#include <assert.h>
14683/* Override any gcc2 internal prototype to avoid an error. */
14684/* We use char because int might match the return type of a gcc2
14685 builtin and then its argument prototype would still apply. */
14686char $ac_func();
14687
14688int main() {
14689
14690/* The GNU C library defines this for functions which it implements
14691 to always fail with ENOSYS. Some functions are actually named
14692 something starting with __ and the normal name is an alias. */
14693#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14694choke me
14695#else
14696$ac_func();
14697#endif
14698
14699; return 0; }
14700EOF
0046ff7c 14701if { (eval echo configure:14702: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
f6bcfd97
BP
14702 rm -rf conftest*
14703 eval "ac_cv_func_$ac_func=yes"
14704else
14705 echo "configure: failed program was:" >&5
14706 cat conftest.$ac_ext >&5
14707 rm -rf conftest*
14708 eval "ac_cv_func_$ac_func=no"
14709fi
14710rm -f conftest*
14711fi
14712
14713if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14714 echo "$ac_t""yes" 1>&6
14715 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14716 cat >> confdefs.h <<EOF
14717#define $ac_tr_func 1
14718EOF
14719 cat >> confdefs.h <<\EOF
14720#define HAVE_DLERROR 1
14721EOF
14722
14723else
14724 echo "$ac_t""no" 1>&6
14725echo $ac_n "checking for dlerror in -ldl""... $ac_c" 1>&6
0046ff7c 14726echo "configure:14727: checking for dlerror in -ldl" >&5
f6bcfd97
BP
14727ac_lib_var=`echo dl'_'dlerror | sed 'y%./+-%__p_%'`
14728if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14729 echo $ac_n "(cached) $ac_c" 1>&6
14730else
14731 ac_save_LIBS="$LIBS"
14732LIBS="-ldl $LIBS"
14733cat > conftest.$ac_ext <<EOF
0046ff7c 14734#line 14735 "configure"
f6bcfd97
BP
14735#include "confdefs.h"
14736/* Override any gcc2 internal prototype to avoid an error. */
14737/* We use char because int might match the return type of a gcc2
14738 builtin and then its argument prototype would still apply. */
14739char dlerror();
14740
14741int main() {
14742dlerror()
14743; return 0; }
14744EOF
0046ff7c 14745if { (eval echo configure:14746: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
f6bcfd97
BP
14746 rm -rf conftest*
14747 eval "ac_cv_lib_$ac_lib_var=yes"
14748else
14749 echo "configure: failed program was:" >&5
14750 cat conftest.$ac_ext >&5
14751 rm -rf conftest*
14752 eval "ac_cv_lib_$ac_lib_var=no"
14753fi
14754rm -f conftest*
14755LIBS="$ac_save_LIBS"
14756
14757fi
14758if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14759 echo "$ac_t""yes" 1>&6
14760 cat >> confdefs.h <<\EOF
14761#define HAVE_DLERROR 1
14762EOF
14763
14764else
14765 echo "$ac_t""no" 1>&6
14766fi
14767
14768fi
14769done
14770
14771 fi
b4085ce6 14772 fi
f6bcfd97 14773
10f2d63a
VZ
14774 if test "$HAVE_DL_FUNCS" = 0; then
14775 if test "$HAVE_SHL_FUNCS" = 0; then
14776 if test "$USE_UNIX" = 1; then
b12915c1 14777 echo "configure: warning: Missing dynamic loading support, several features will be disabled" 1>&2
10f2d63a
VZ
14778 wxUSE_DYNLIB_CLASS=no
14779 else
b12915c1 14780 echo "configure: warning: Assuming wxLibrary class works on this platform" 1>&2
10f2d63a
VZ
14781 fi
14782 fi
14783 fi
14784fi
14785
b089607b
VZ
14786fi
14787
10f2d63a 14788if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
b12915c1 14789 cat >> confdefs.h <<\EOF
10f2d63a
VZ
14790#define wxUSE_DYNLIB_CLASS 1
14791EOF
14792
b12915c1
VZ
14793else
14794 wxUSE_ODBC=no
14795 wxUSE_SERIAL=no
10f2d63a
VZ
14796fi
14797
14798
14799if test "$wxUSE_UNICODE" = "yes" ; then
14800 cat >> confdefs.h <<\EOF
14801#define wxUSE_UNICODE 1
14802EOF
14803
14804fi
14805
14806if test "$wxUSE_WCSRTOMBS" = "yes" ; then
14807 cat >> confdefs.h <<\EOF
14808#define wxUSE_WCSRTOMBS 1
14809EOF
14810
14811fi
14812
14813if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
14814 cat >> confdefs.h <<\EOF
14815#define wxUSE_EXPERIMENTAL_PRINTF 1
14816EOF
14817
14818fi
14819
14820
b12915c1
VZ
14821if test "$wxUSE_SERIAL" = "yes" ; then
14822 cat >> confdefs.h <<\EOF
14823#define wxUSE_SERIAL 1
14824EOF
14825
14826fi
14827
14828
10f2d63a
VZ
14829IODBC_C_SRC=""
14830if test "$wxUSE_ODBC" = "yes" ; then
14831 cat >> confdefs.h <<\EOF
14832#define wxUSE_ODBC 1
14833EOF
14834
14835 WXODBCFLAG="-D_IODBC_"
14836 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
10f2d63a
VZ
14837fi
14838
14839
14840if test "$wxUSE_POSTSCRIPT" = "yes" ; then
14841 cat >> confdefs.h <<\EOF
14842#define wxUSE_POSTSCRIPT 1
14843EOF
14844
14845fi
14846
14847cat >> confdefs.h <<\EOF
14848#define wxUSE_AFM_FOR_POSTSCRIPT 1
14849EOF
14850
14851
14852cat >> confdefs.h <<\EOF
14853#define wxUSE_NORMALIZED_PS_FONTS 1
14854EOF
14855
14856
14857
14858if test "$wxUSE_CONSTRAINTS" = "yes"; then
14859 cat >> confdefs.h <<\EOF
14860#define wxUSE_CONSTRAINTS 1
14861EOF
14862
14863 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
14864fi
14865
14866if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
14867 cat >> confdefs.h <<\EOF
14868#define wxUSE_MDI_ARCHITECTURE 1
14869EOF
14870
14871 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
14872fi
14873
14874if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
14875 cat >> confdefs.h <<\EOF
14876#define wxUSE_DOC_VIEW_ARCHITECTURE 1
14877EOF
14878
14879 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
14880 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
14881 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
14882 fi
14883fi
14884
14885if test "$wxUSE_HELP" = "yes"; then
14886 cat >> confdefs.h <<\EOF
14887#define wxUSE_HELP 1
14888EOF
14889
14890 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
14891fi
14892
14893if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
14894 if test "$wxUSE_CONSTRAINTS" != "yes"; then
14895 echo "configure: warning: Printing support cannot be used without constraints so it won't be compiled without it" 1>&2
14896 else
14897 cat >> confdefs.h <<\EOF
14898#define wxUSE_PRINTING_ARCHITECTURE 1
14899EOF
14900
14901 fi
14902 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
14903fi
14904
14905if test "$wxUSE_PROLOGIO" = "yes" ; then
14906 cat >> confdefs.h <<\EOF
14907#define wxUSE_PROLOGIO 1
14908EOF
14909
14910fi
14911
14912if test "$wxUSE_RESOURCES" = "yes" ; then
14913 if test "$wxUSE_PROLOGIO" = "yes" ; then
14914 cat >> confdefs.h <<\EOF
14915#define wxUSE_RESOURCES 1
14916EOF
14917
14918 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS resource"
14919 else
14920 echo "configure: warning: wxWindows ressource system requires PrologIO and can't be compiled without it." 1>&2
14921 fi
14922fi
14923
14924if test "$wxUSE_X_RESOURCES" = "yes"; then
14925 cat >> confdefs.h <<\EOF
14926#define wxUSE_X_RESOURCES 1
14927EOF
14928
14929fi
14930
14931
14932if test "$wxUSE_IPC" = "yes"; then
eb4efbdc
VZ
14933 if test "$wxUSE_SOCKETS" != "yes"; then
14934 echo "configure: warning: wxWindows IPC classes require sockets" 1>&2
14935 fi
14936
10f2d63a
VZ
14937 cat >> confdefs.h <<\EOF
14938#define wxUSE_IPC 1
14939EOF
14940
14941fi
14942
14943if test "$wxUSE_CLIPBOARD" = "yes"; then
14944 cat >> confdefs.h <<\EOF
14945#define wxUSE_CLIPBOARD 1
14946EOF
14947
14948fi
14949
14950if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
14951 if test "$wxUSE_GTK" = 1; then
14952 if test "$WXGTK12" != 1; then
14953 echo "configure: warning: Drag and drop is only supported under GTK+ 1.2" 1>&2
14954 wxUSE_DRAG_AND_DROP=no
14955 fi
14956 fi
14957
14958 if test "$wxUSE_MOTIF" = 1; then
14959 echo "configure: warning: Drag and drop is not yet supported under Motif" 1>&2
14960 wxUSE_DRAG_AND_DROP=no
14961 fi
14962
2c6025bc
GD
14963 if test "$wxUSE_MAC" = 1; then
14964 echo "configure: warning: Drag and drop is not yet supported under Mac OS X" 1>&2
14965 wxUSE_DRAG_AND_DROP=no
14966 fi
14967
10f2d63a 14968 if test "$USE_WIN32" = 1; then
c521c494
RL
14969
14970 for ac_hdr in ole2.h
10f2d63a
VZ
14971do
14972ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
14973echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
0046ff7c 14974echo "configure:14975: checking for $ac_hdr" >&5
10f2d63a
VZ
14975if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
14976 echo $ac_n "(cached) $ac_c" 1>&6
14977else
14978 cat > conftest.$ac_ext <<EOF
0046ff7c 14979#line 14980 "configure"
10f2d63a
VZ
14980#include "confdefs.h"
14981#include <$ac_hdr>
14982EOF
14983ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
0046ff7c 14984{ (eval echo configure:14985: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
14985ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14986if test -z "$ac_err"; then
14987 rm -rf conftest*
14988 eval "ac_cv_header_$ac_safe=yes"
14989else
14990 echo "$ac_err" >&5
14991 echo "configure: failed program was:" >&5
14992 cat conftest.$ac_ext >&5
14993 rm -rf conftest*
14994 eval "ac_cv_header_$ac_safe=no"
14995fi
14996rm -f conftest*
14997fi
14998if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14999 echo "$ac_t""yes" 1>&6
15000 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
15001 cat >> confdefs.h <<EOF
15002#define $ac_tr_hdr 1
15003EOF
15004
15005else
15006 echo "$ac_t""no" 1>&6
15007fi
15008done
15009
c521c494
RL
15010
15011 if test "$ac_cv_header_ole2_h" = "yes" ; then
15012 if test "$GCC" = yes ; then
b64f0a5f
RL
15013 ALL_OBJECTS="$ALL_OBJECTS \$(OLEOBJS)"
15014 ALL_DEPFILES="$ALL_DEPFILES \$(OLEDEPS)"
c521c494 15015 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks"
b64f0a5f
RL
15016 LIBS="$LIBS -lole32 -luuid"
15017
15018 if test "$wxUSE_METAFILE" = "yes"; then
15019 cat >> confdefs.h <<\EOF
15020#define wxUSE_METAFILE 1
15021EOF
15022
15023 cat >> confdefs.h <<\EOF
15024#define wxUSE_ENH_METAFILE 1
15025EOF
15026
15027 fi
c521c494
RL
15028 fi
15029 else
10f2d63a
VZ
15030 echo "configure: warning: Drag and drop disabled because OLE headers not found" 1>&2
15031 wxUSE_DRAG_AND_DROP=no
15032 fi
15033 fi
15034
15035 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
15036 cat >> confdefs.h <<\EOF
15037#define wxUSE_DRAG_AND_DROP 1
15038EOF
15039
15040 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
15041 fi
15042
15043fi
15044
15045if test "$wxUSE_SPLINES" = "yes" ; then
15046 cat >> confdefs.h <<\EOF
15047#define wxUSE_SPLINES 1
15048EOF
15049
15050fi
15051
15052
15053if test "$wxUSE_ACCEL" = "yes"; then
15054 cat >> confdefs.h <<\EOF
15055#define wxUSE_ACCEL 1
15056EOF
15057
15058fi
15059
15060if test "$wxUSE_CARET" = "yes"; then
15061 cat >> confdefs.h <<\EOF
15062#define wxUSE_CARET 1
15063EOF
15064
15065 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
15066fi
15067
15068if test "$wxUSE_COMBOBOX" = "yes"; then
15069 cat >> confdefs.h <<\EOF
15070#define wxUSE_COMBOBOX 1
15071EOF
15072
15073fi
15074
15075if test "$wxUSE_CHOICE" = "yes"; then
15076 cat >> confdefs.h <<\EOF
15077#define wxUSE_CHOICE 1
15078EOF
15079
15080fi
15081
15082if test "$wxUSE_BMPBUTTON" = "yes"; then
15083 cat >> confdefs.h <<\EOF
15084#define wxUSE_BMPBUTTON 1
15085EOF
15086
15087fi
15088
15089if test "$wxUSE_CHECKBOX" = "yes"; then
15090 cat >> confdefs.h <<\EOF
15091#define wxUSE_CHECKBOX 1
15092EOF
15093
15094fi
15095
15096if test "$wxUSE_CHECKLST" = "yes"; then
15097 cat >> confdefs.h <<\EOF
15098#define wxUSE_CHECKLISTBOX 1
15099EOF
15100
15101 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
15102fi
15103
15104if test "$wxUSE_GAUGE" = "yes"; then
15105 cat >> confdefs.h <<\EOF
15106#define wxUSE_GAUGE 1
15107EOF
15108
15109fi
15110
d6a55c4b
VZ
15111if test "$wxUSE_NEW_GRID" = "yes"; then
15112 wxUSE_GRID="yes"
10f2d63a 15113 cat >> confdefs.h <<\EOF
d6a55c4b 15114#define wxUSE_NEW_GRID 1
10f2d63a
VZ
15115EOF
15116
d6a55c4b 15117 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS newgrid"
10f2d63a
VZ
15118fi
15119
d6a55c4b 15120if test "$wxUSE_GRID" = "yes"; then
10f2d63a 15121 cat >> confdefs.h <<\EOF
d6a55c4b 15122#define wxUSE_GRID 1
10f2d63a
VZ
15123EOF
15124
d6a55c4b 15125 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
10f2d63a
VZ
15126fi
15127
15128if test "$wxUSE_IMAGLIST" = "yes"; then
15129 cat >> confdefs.h <<\EOF
15130#define wxUSE_IMAGLIST 1
15131EOF
15132
15133fi
15134
15135if test "$wxUSE_LISTBOX" = "yes"; then
15136 cat >> confdefs.h <<\EOF
15137#define wxUSE_LISTBOX 1
15138EOF
15139
15140fi
15141
15142if test "$wxUSE_LISTCTRL" = "yes"; then
15143 if test "$wxUSE_IMAGLIST" = "yes"; then
15144 cat >> confdefs.h <<\EOF
15145#define wxUSE_LISTCTRL 1
15146EOF
15147
15148 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
15149 else
15150 echo "configure: warning: wxListCtrl requires wxImageList and won't be compiled without it" 1>&2
15151 fi
15152fi
15153
15154if test "$wxUSE_NOTEBOOK" = "yes"; then
15155 cat >> confdefs.h <<\EOF
15156#define wxUSE_NOTEBOOK 1
15157EOF
15158
15159 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
15160fi
15161
15162if test "$wxUSE_RADIOBOX" = "yes"; then
15163 cat >> confdefs.h <<\EOF
15164#define wxUSE_RADIOBOX 1
15165EOF
15166
15167fi
15168
15169if test "$wxUSE_RADIOBTN" = "yes"; then
15170 cat >> confdefs.h <<\EOF
15171#define wxUSE_RADIOBTN 1
15172EOF
15173
15174fi
15175
15176if test "$wxUSE_SASH" = "yes"; then
15177 cat >> confdefs.h <<\EOF
15178#define wxUSE_SASH 1
15179EOF
15180
15181 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
15182fi
15183
15184if test "$wxUSE_SCROLLBAR" = "yes"; then
15185 cat >> confdefs.h <<\EOF
15186#define wxUSE_SCROLLBAR 1
15187EOF
15188
741a9306 15189 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
10f2d63a
VZ
15190fi
15191
15192if test "$wxUSE_SLIDER" = "yes"; then
15193 cat >> confdefs.h <<\EOF
15194#define wxUSE_SLIDER 1
15195EOF
15196
15197fi
15198
15199if test "$wxUSE_SPINBTN" = "yes"; then
15200 cat >> confdefs.h <<\EOF
15201#define wxUSE_SPINBTN 1
15202EOF
15203
15204fi
15205
56cfaa52
RR
15206if test "$wxUSE_SPINCTRL" = "yes"; then
15207 cat >> confdefs.h <<\EOF
15208#define wxUSE_SPINCTRL 1
15209EOF
15210
15211fi
15212
10f2d63a
VZ
15213if test "$wxUSE_SPLITTER" = "yes"; then
15214 cat >> confdefs.h <<\EOF
15215#define wxUSE_SPLITTER 1
15216EOF
15217
15218 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
15219fi
15220
15221if test "$wxUSE_STATBMP" = "yes"; then
15222 cat >> confdefs.h <<\EOF
15223#define wxUSE_STATBMP 1
15224EOF
15225
15226fi
15227
15228if test "$wxUSE_STATBOX" = "yes"; then
15229 cat >> confdefs.h <<\EOF
15230#define wxUSE_STATBOX 1
15231EOF
15232
15233fi
15234
15235if test "$wxUSE_STATLINE" = "yes"; then
15236 if test "$wxUSE_WINE" = 1 ; then
15237 echo "configure: warning: wxStaticLine is not supported under WINE" 1>&2
15238 else
15239 cat >> confdefs.h <<\EOF
15240#define wxUSE_STATLINE 1
15241EOF
15242
15243 fi
15244fi
15245
15246if test "$wxUSE_STATUSBAR" = "yes"; then
15247 cat >> confdefs.h <<\EOF
15248#define wxUSE_STATUSBAR 1
15249EOF
15250
2286341c
VZ
15251
15252 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
10f2d63a
VZ
15253fi
15254
15255if test "$wxUSE_TABDIALOG" = "yes"; then
15256 cat >> confdefs.h <<\EOF
15257#define wxUSE_TAB_DIALOG 1
15258EOF
15259
15260 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab"
15261fi
15262
1db8dc4a
VZ
15263if test "$wxUSE_TOGGLEBTN" = "yes"; then
15264 cat >> confdefs.h <<\EOF
15265#define wxUSE_TOGGLEBTN 1
15266EOF
15267
15268fi
15269
360d6699
VZ
15270if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
15271 cat >> confdefs.h <<\EOF
15272#define wxUSE_TOOLBAR_SIMPLE 1
15273EOF
15274
15275 wxUSE_TOOLBAR="yes"
15276fi
15277
10f2d63a
VZ
15278if test "$wxUSE_TOOLBAR" = "yes"; then
15279 cat >> confdefs.h <<\EOF
15280#define wxUSE_TOOLBAR 1
15281EOF
15282
360d6699
VZ
15283
15284 if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
15285 wxUSE_TOOLBAR_NATIVE="yes"
15286 fi
15287
10f2d63a
VZ
15288 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
15289fi
15290
360d6699
VZ
15291if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
15292 cat >> confdefs.h <<\EOF
15293#define wxUSE_TOOLBAR_NATIVE 1
15294EOF
15295
15296fi
15297
10f2d63a
VZ
15298if test "$wxUSE_TOOLTIPS" = "yes"; then
15299 if test "$wxUSE_MOTIF" = 1; then
15300 echo "configure: warning: wxTooltip not supported yet under Motif" 1>&2
15301 else
15302 if test "$wxUSE_WINE" = 1; then
15303 echo "configure: warning: wxTooltip not supported under WINE" 1>&2
15304 else
15305 cat >> confdefs.h <<\EOF
15306#define wxUSE_TOOLTIPS 1
15307EOF
15308
15309 fi
15310 fi
15311fi
15312
15313if test "$wxUSE_TREECTRL" = "yes"; then
15314 if test "$wxUSE_IMAGLIST" = "yes"; then
15315 cat >> confdefs.h <<\EOF
15316#define wxUSE_TREECTRL 1
15317EOF
15318
15319 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
15320 else
15321 echo "configure: warning: wxTreeCtrl requires wxImageList and won't be compiled without it" 1>&2
15322 fi
15323fi
15324
15325
15326
10f2d63a
VZ
15327if test "$wxUSE_DIRDLG" = "yes"; then
15328 if test "$wxUSE_CONSTRAINTS" != "yes"; then
15329 echo "configure: warning: wxDirDialog requires constraints so it won't be compiled without them" 1>&2
15330 else
15331 if test "$wxUSE_TREECTRL" != "yes"; then
15332 echo "configure: warning: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" 1>&2
15333 else
15334 cat >> confdefs.h <<\EOF
15335#define wxUSE_DIRDLG 1
15336EOF
15337
15338 fi
15339 fi
15340fi
15341
15342if test "$wxUSE_TEXTDLG" = "yes"; then
15343 cat >> confdefs.h <<\EOF
15344#define wxUSE_TEXTDLG 1
15345EOF
15346
15347fi
15348
15349if test "$wxUSE_STARTUP_TIPS" = "yes"; then
15350 if test "$wxUSE_CONSTRAINTS" != "yes"; then
15351 echo "configure: warning: Startup tips requires constraints and won't be compiled without them" 1>&2
15352 else
15353 cat >> confdefs.h <<\EOF
15354#define wxUSE_STARTUP_TIPS 1
15355EOF
15356
15357 fi
15358fi
15359
15360if test "$wxUSE_PROGRESSDLG" = "yes"; then
15361 if test "$wxUSE_CONSTRAINTS" != "yes"; then
15362 echo "configure: warning: wxProgressDialog requires constraints so it won't be compiled without them" 1>&2
15363 else
15364 cat >> confdefs.h <<\EOF
15365#define wxUSE_PROGRESSDLG 1
15366EOF
15367
15368 fi
15369fi
15370
15371if test "$wxUSE_MINIFRAME" = "yes"; then
15372 cat >> confdefs.h <<\EOF
15373#define wxUSE_MINIFRAME 1
15374EOF
15375
15376 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
15377fi
15378
15379if test "$wxUSE_HTML" = "yes"; then
15380 cat >> confdefs.h <<\EOF
15381#define wxUSE_HTML 1
15382EOF
15383
15384 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html"
15385 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS html"
15386fi
15387
15388if test "$wxUSE_VALIDATORS" = "yes"; then
15389 cat >> confdefs.h <<\EOF
15390#define wxUSE_VALIDATORS 1
15391EOF
15392
15393 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
15394fi
15395
0046ff7c
VS
15396if test "$wxUSE_IMAGE" = "yes" ; then
15397 cat >> confdefs.h <<\EOF
15398#define wxUSE_IMAGE 1
15399EOF
15400
15401fi
15402
10f2d63a
VZ
15403if test "$wxUSE_GIF" = "yes" ; then
15404 cat >> confdefs.h <<\EOF
15405#define wxUSE_GIF 1
15406EOF
15407
15408fi
15409
15410if test "$wxUSE_PCX" = "yes" ; then
15411 cat >> confdefs.h <<\EOF
15412#define wxUSE_PCX 1
15413EOF
15414
15415fi
15416
15417if test "$wxUSE_PNM" = "yes" ; then
15418 cat >> confdefs.h <<\EOF
15419#define wxUSE_PNM 1
15420EOF
15421
15422fi
15423
0046ff7c
VS
15424if test "$wxUSE_XPM" = "yes" ; then
15425 cat >> confdefs.h <<\EOF
15426#define wxUSE_XPM 1
15427EOF
15428
15429fi
15430
10f2d63a 15431
32832908
VZ
15432if test "$cross_compiling" = "yes"; then
15433 OSINFO="\"$host\""
15434else
15435 OSINFO=`uname -s -r -m`
15436 OSINFO="\"$OSINFO\""
15437fi
15438
aaa37c0d
VZ
15439cat >> confdefs.h <<EOF
15440#define WXWIN_OS_DESCRIPTION $OSINFO
15441EOF
15442
15443
15444
f6bcfd97
BP
15445GUILIBS="$GUI_TK_LIBRARY $TOOLKIT_LINK"
15446OPENGL_LIBS="$OPENGL_LINK"
10f2d63a 15447
ea5999b9 15448EXTRA_LIBS="$LIBS $POSIX4_LINK $INET_LINK $WCHAR_LINK $THREADS_LINK $DMALLOC_LINK $DL_LINK $ZLIB_LINK -lm"
b4085ce6 15449if test "$USE_MAC" = 1 ; then
ea5999b9 15450 EXTRA_LIBS="$EXTRA_LIBS -framework Carbon -framework System"
b4085ce6 15451fi
10f2d63a 15452if test "$wxUSE_GUI" = "yes"; then
3fed1840 15453 EXTRA_LIBS="$GUILIBS $PNG_LINK $JPEG_LINK $TIFF_LINK $FREETYPE_LINK $EXTRA_LIBS"
10f2d63a
VZ
15454fi
15455
15456LD_LIBS="\${top_builddir}/lib/${WX_LIBRARY_NAME_STATIC} $EXTRA_LIBS"
15457
3fed1840 15458INCLUDES="-I. -I\${top_builddir}/include -I\${top_srcdir}/include $ZLIB_INCLUDE $PNG_INCLUDE $JPEG_INCLUDE $TIFF_INCLUDE $FREETYPE_INCLUDE $TOOLKIT_INCLUDE"
10f2d63a 15459
f6bcfd97
BP
15460if test "$wxUSE_GTK" = 1; then
15461 WXCONFIG_INCLUDE=""
15462else
15463 WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE"
15464fi
15465
10f2d63a
VZ
15466if test "$GXX" = yes ; then
15467 CXXWARNINGS="-Wall"
d6a55c4b 15468 fi
10f2d63a
VZ
15469EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE $INCLUDES"
15470
f6bcfd97 15471CFLAGS=`echo $CFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \\+/ /g'`
10f2d63a
VZ
15472CXXFLAGS=`echo $CXXFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \+/ /g'`
15473
e694c22c
VZ
15474LDFLAGS="$LDFLAGS $PROFILE"
15475
10f2d63a
VZ
15476if test "$wxUSE_GUI" = "yes"; then
15477
6164f93c
VZ
15478 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS controls dialogs dragimag \
15479 drawing dynamic event font fractal image menu \
15480 minimal richedit"
b12915c1 15481
88d3a15c 15482 CPPFLAGS="$CPPFLAGS \$(EXTRADEFS) \$(APPEXTRADEFS)"
10f2d63a
VZ
15483else
15484 SAMPLES_SUBDIRS=""
15485fi
15486
ec14dd32
VZ
15487SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
15488
15489
15490
10f2d63a
VZ
15491
15492
15493
15494
15495
15496
15497
15498
15499
15500
15501
15502
15503
15504
15505
15506
15507
15508
15509
15510
15511
15512
15513
15514
15515
15516
15517
15518
15519
15520
15521
15522
15523
15524
15525
15526
15527
15528
15529
15530
15531
15532
15533
15534
15535
15536
15537
15538
15539
15540
15541
15542
1d62a8b4 15543
bdad4e7e
RR
15544
15545
15546
15547
15548
15549
15550
32832908
VZ
15551
15552
15553
15554
15555
15556
15557
15558
15559
15560
15561
2224580a 15562
dad6c0ea 15563
f6bcfd97
BP
15564
15565
15566
15567
dad6c0ea 15568
caa2c79b 15569
3711412e 15570
0f3f1cbc 15571
10f2d63a
VZ
15572
15573
15574echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
0046ff7c 15575echo "configure:15576: checking whether ${MAKE-make} sets \${MAKE}" >&5
10f2d63a
VZ
15576set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
15577if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
15578 echo $ac_n "(cached) $ac_c" 1>&6
15579else
15580 cat > conftestmake <<\EOF
15581all:
15582 @echo 'ac_maketemp="${MAKE}"'
15583EOF
15584# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
15585eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
15586if test -n "$ac_maketemp"; then
15587 eval ac_cv_prog_make_${ac_make}_set=yes
15588else
15589 eval ac_cv_prog_make_${ac_make}_set=no
15590fi
15591rm -f conftestmake
15592fi
15593if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
15594 echo "$ac_t""yes" 1>&6
15595 SET_MAKE=
15596else
15597 echo "$ac_t""no" 1>&6
15598 SET_MAKE="MAKE=${MAKE-make}"
15599fi
15600
15601
00cf1208
RR
15602if test -d include; then
15603 if test -d include/wx; then
15604 if test -d include/wx/${TOOLKIT_DIR}; then
15605 if test -f include/wx/${TOOLKIT_DIR}/setup.h; then
15606 mv -f include/wx/${TOOLKIT_DIR}/setup.h setup.h
15607 fi
15608 fi
15609 fi
15610fi
15611
10f2d63a
VZ
15612
15613
2224580a 15614if test "$wxUSE_GUI" = "yes"; then
ec90f5e5 15615 wx_cv_path_samplesubdirs=$SAMPLES_SUBDIRS
e8482f24
GL
15616 wx_cv_path_ifs=$PATH_IFS
15617 wx_cv_program_ext=$PROGRAM_EXT
15618 wx_cv_target_library=$WX_TARGET_LIBRARY
3711412e 15619 wx_cv_target_libtype=$WX_TARGET_LIBRARY_TYPE
e8482f24 15620 subdirs="demos samples utils contrib"
2224580a
VZ
15621
15622fi
10f2d63a
VZ
15623
15624trap '' 1 2 15
15625cat > confcache <<\EOF
15626# This file is a shell script that caches the results of configure
15627# tests run on this system so they can be shared between configure
15628# scripts and configure runs. It is not useful on other systems.
15629# If it contains results you don't want to keep, you may remove or edit it.
15630#
15631# By default, configure uses ./config.cache as the cache file,
15632# creating it if it does not exist already. You can give configure
15633# the --cache-file=FILE option to use a different cache file; that is
15634# what configure does when it calls configure scripts in
15635# subdirectories, so they share the cache.
15636# Giving --cache-file=/dev/null disables caching, for debugging configure.
15637# config.status only pays attention to the cache file if you give it the
15638# --recheck option to rerun configure.
15639#
15640EOF
15641# The following way of writing the cache mishandles newlines in values,
15642# but we know of no workaround that is simple, portable, and efficient.
15643# So, don't put newlines in cache variables' values.
15644# Ultrix sh set writes to stderr and can't be redirected directly,
15645# and sets the high bit in the cache file unless we assign to the vars.
15646(set) 2>&1 |
15647 case `(ac_space=' '; set | grep ac_space) 2>&1` in
15648 *ac_space=\ *)
15649 # `set' does not quote correctly, so add quotes (double-quote substitution
15650 # turns \\\\ into \\, and sed turns \\ into \).
15651 sed -n \
15652 -e "s/'/'\\\\''/g" \
15653 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
15654 ;;
15655 *)
15656 # `set' quotes correctly as required by POSIX, so do not add quotes.
15657 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
15658 ;;
15659 esac >> confcache
15660if cmp -s $cache_file confcache; then
15661 :
15662else
15663 if test -w $cache_file; then
15664 echo "updating cache $cache_file"
15665 cat confcache > $cache_file
15666 else
15667 echo "not updating unwritable cache $cache_file"
15668 fi
15669fi
15670rm -f confcache
15671
15672trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
15673
15674test "x$prefix" = xNONE && prefix=$ac_default_prefix
15675# Let make expand exec_prefix.
15676test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15677
15678# Any assignment to VPATH causes Sun make to only execute
15679# the first set of double-colon rules, so remove it if not needed.
15680# If there is a colon in the path, we need to keep it.
15681if test "x$srcdir" = x.; then
15682 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
15683fi
15684
15685trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
15686
15687DEFS=-DHAVE_CONFIG_H
15688
15689# Without the "./", some shells look in PATH for config.status.
15690: ${CONFIG_STATUS=./config.status}
15691
15692echo creating $CONFIG_STATUS
15693rm -f $CONFIG_STATUS
15694cat > $CONFIG_STATUS <<EOF
15695#! /bin/sh
15696# Generated automatically by configure.
15697# Run this file to recreate the current configuration.
15698# This directory was configured as follows,
15699# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15700#
15701# $0 $ac_configure_args
15702#
15703# Compiler output produced by configure, useful for debugging
15704# configure, is in ./config.log if it exists.
15705
15706ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
15707for ac_option
15708do
15709 case "\$ac_option" in
15710 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15711 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
15712 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
15713 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
e8482f24 15714 echo "$CONFIG_STATUS generated by autoconf version 2.13"
10f2d63a
VZ
15715 exit 0 ;;
15716 -help | --help | --hel | --he | --h)
15717 echo "\$ac_cs_usage"; exit 0 ;;
15718 *) echo "\$ac_cs_usage"; exit 1 ;;
15719 esac
15720done
15721
15722ac_given_srcdir=$srcdir
15723ac_given_INSTALL="$INSTALL"
15724
15725trap 'rm -fr `echo "
15726 wx-config
15727 src/make.env
15728 src/makeprog.env
15729 src/makelib.env
15730 Makefile
10f2d63a
VZ
15731 setup.h:setup.h.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
15732EOF
15733cat >> $CONFIG_STATUS <<EOF
15734
15735# Protect against being on the right side of a sed subst in config.status.
15736sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
15737 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
15738$ac_vpsub
15739$extrasub
15740s%@SHELL@%$SHELL%g
15741s%@CFLAGS@%$CFLAGS%g
15742s%@CPPFLAGS@%$CPPFLAGS%g
15743s%@CXXFLAGS@%$CXXFLAGS%g
15744s%@FFLAGS@%$FFLAGS%g
15745s%@DEFS@%$DEFS%g
15746s%@LDFLAGS@%$LDFLAGS%g
15747s%@LIBS@%$LIBS%g
15748s%@exec_prefix@%$exec_prefix%g
15749s%@prefix@%$prefix%g
15750s%@program_transform_name@%$program_transform_name%g
15751s%@bindir@%$bindir%g
15752s%@sbindir@%$sbindir%g
15753s%@libexecdir@%$libexecdir%g
15754s%@datadir@%$datadir%g
15755s%@sysconfdir@%$sysconfdir%g
15756s%@sharedstatedir@%$sharedstatedir%g
15757s%@localstatedir@%$localstatedir%g
15758s%@libdir@%$libdir%g
15759s%@includedir@%$includedir%g
15760s%@oldincludedir@%$oldincludedir%g
15761s%@infodir@%$infodir%g
15762s%@mandir@%$mandir%g
7c66a493
VZ
15763s%@host@%$host%g
15764s%@host_alias@%$host_alias%g
15765s%@host_cpu@%$host_cpu%g
15766s%@host_vendor@%$host_vendor%g
15767s%@host_os@%$host_os%g
15768s%@target@%$target%g
15769s%@target_alias@%$target_alias%g
15770s%@target_cpu@%$target_cpu%g
15771s%@target_vendor@%$target_vendor%g
15772s%@target_os@%$target_os%g
15773s%@build@%$build%g
15774s%@build_alias@%$build_alias%g
15775s%@build_cpu@%$build_cpu%g
15776s%@build_vendor@%$build_vendor%g
15777s%@build_os@%$build_os%g
10f2d63a
VZ
15778s%@CC@%$CC%g
15779s%@CPP@%$CPP%g
15780s%@CXX@%$CXX%g
15781s%@CXXCPP@%$CXXCPP%g
15782s%@RANLIB@%$RANLIB%g
15783s%@AR@%$AR%g
15784s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
15785s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
15786s%@INSTALL_DATA@%$INSTALL_DATA%g
15787s%@STRIP@%$STRIP%g
15788s%@YACC@%$YACC%g
15789s%@LEX@%$LEX%g
15790s%@LEXLIB@%$LEXLIB%g
15791s%@LN_S@%$LN_S%g
6f72b082 15792s%@GTK_CONFIG_2_0@%$GTK_CONFIG_2_0%g
10f2d63a
VZ
15793s%@GTK_CONFIG@%$GTK_CONFIG%g
15794s%@GTK_CFLAGS@%$GTK_CFLAGS%g
15795s%@GTK_LIBS@%$GTK_LIBS%g
ab9b9eab
VZ
15796s%@X_CFLAGS@%$X_CFLAGS%g
15797s%@X_PRE_LIBS@%$X_PRE_LIBS%g
15798s%@X_LIBS@%$X_LIBS%g
15799s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
ec14dd32
VZ
15800s%@LEX_STEM@%$LEX_STEM%g
15801s%@PATH_IFS@%$PATH_IFS%g
10f2d63a
VZ
15802s%@WX_MAJOR_VERSION_NUMBER@%$WX_MAJOR_VERSION_NUMBER%g
15803s%@WX_MINOR_VERSION_NUMBER@%$WX_MINOR_VERSION_NUMBER%g
15804s%@WX_RELEASE_NUMBER@%$WX_RELEASE_NUMBER%g
15805s%@WX_LIBRARY_NAME@%$WX_LIBRARY_NAME%g
15806s%@WX_LIBRARY_NAME_STATIC@%$WX_LIBRARY_NAME_STATIC%g
15807s%@WX_LIBRARY_NAME_SHARED@%$WX_LIBRARY_NAME_SHARED%g
15808s%@WX_LIBRARY@%$WX_LIBRARY%g
15809s%@WX_TARGET_LIBRARY@%$WX_TARGET_LIBRARY%g
15810s%@WX_LIBRARY_LINK1@%$WX_LIBRARY_LINK1%g
15811s%@WX_LIBRARY_LINK2@%$WX_LIBRARY_LINK2%g
15812s%@WX_LIBRARY_LINK3@%$WX_LIBRARY_LINK3%g
15813s%@PROGRAM_EXT@%$PROGRAM_EXT%g
bdad4e7e
RR
15814s%@WX_LIBRARY_NAME_GL@%$WX_LIBRARY_NAME_GL%g
15815s%@WX_LIBRARY_NAME_STATIC_GL@%$WX_LIBRARY_NAME_STATIC_GL%g
15816s%@WX_LIBRARY_NAME_SHARED_GL@%$WX_LIBRARY_NAME_SHARED_GL%g
15817s%@WX_LIBRARY_GL@%$WX_LIBRARY_GL%g
15818s%@WX_TARGET_LIBRARY_GL@%$WX_TARGET_LIBRARY_GL%g
15819s%@WX_LIBRARY_LINK1_GL@%$WX_LIBRARY_LINK1_GL%g
15820s%@WX_LIBRARY_LINK2_GL@%$WX_LIBRARY_LINK2_GL%g
15821s%@WX_LIBRARY_LINK3_GL@%$WX_LIBRARY_LINK3_GL%g
10f2d63a
VZ
15822s%@WX_ALL@%$WX_ALL%g
15823s%@WX_ALL_INSTALLED@%$WX_ALL_INSTALLED%g
15824s%@SHARED_LD@%$SHARED_LD%g
15825s%@PIC_FLAG@%$PIC_FLAG%g
15826s%@DEP_INFO_FLAGS@%$DEP_INFO_FLAGS%g
caa2c79b 15827s%@CODE_GEN_FLAGS@%$CODE_GEN_FLAGS%g
0f3f1cbc 15828s%@CODE_GEN_FLAGS_CXX@%$CODE_GEN_FLAGS_CXX%g
1d62a8b4 15829s%@BURNT_LIBRARY_NAME@%$BURNT_LIBRARY_NAME%g
bdad4e7e 15830s%@BURNT_LIBRARY_NAME_GL@%$BURNT_LIBRARY_NAME_GL%g
f6bcfd97 15831s%@WX_TARGET_LIBRARY_SONAME@%$WX_TARGET_LIBRARY_SONAME%g
3711412e 15832s%@WX_TARGET_LIBRARY_TYPE@%$WX_TARGET_LIBRARY_TYPE%g
10f2d63a 15833s%@WXDEBUG_DEFINE@%$WXDEBUG_DEFINE%g
dad6c0ea
VZ
15834s%@USE_GUI@%$USE_GUI%g
15835s%@AFMINSTALL@%$AFMINSTALL%g
10f2d63a
VZ
15836s%@TOOLKIT@%$TOOLKIT%g
15837s%@TOOLKIT_DEF@%$TOOLKIT_DEF%g
15838s%@TOOLKIT_DIR@%$TOOLKIT_DIR%g
f6bcfd97 15839s%@TOOLKIT_NAME@%$TOOLKIT_NAME%g
10f2d63a 15840s%@TOOLKIT_INCLUDE@%$TOOLKIT_INCLUDE%g
f6bcfd97 15841s%@WXCONFIG_INCLUDE@%$WXCONFIG_INCLUDE%g
10f2d63a
VZ
15842s%@ALL_OBJECTS@%$ALL_OBJECTS%g
15843s%@ALL_DEPFILES@%$ALL_DEPFILES%g
10f2d63a 15844s%@GUIDIST@%$GUIDIST%g
2224580a
VZ
15845s%@PORT_FILES@%$PORT_FILES%g
15846s%@DISTDIR@%$DISTDIR%g
15847s%@RPM_SPEC@%$RPM_SPEC%g
15848s%@RPM_FILES@%$RPM_FILES%g
10f2d63a
VZ
15849s%@SRC_SUBDIRS@%$SRC_SUBDIRS%g
15850s%@INCLUDE_SUBDIRS@%$INCLUDE_SUBDIRS%g
15851s%@UTILS_SUBDIRS@%$UTILS_SUBDIRS%g
15852s%@DOCS_SUBDIRS@%$DOCS_SUBDIRS%g
15853s%@SAMPLES_SUBDIRS@%$SAMPLES_SUBDIRS%g
15854s%@USER_SUBDIRS@%$USER_SUBDIRS%g
15855s%@EXTRA_LIBS@%$EXTRA_LIBS%g
f6bcfd97 15856s%@OPENGL_LIBS@%$OPENGL_LIBS%g
b12915c1 15857s%@EXTRADEFS@%$EXTRADEFS%g
10f2d63a 15858s%@LD_LIBS@%$LD_LIBS%g
32832908
VZ
15859s%@RCINPUTSWITCH@%$RCINPUTSWITCH%g
15860s%@RCOUTPUTSWITCH@%$RCOUTPUTSWITCH%g
15861s%@RESPROGRAM@%$RESPROGRAM%g
15862s%@RESCOMP@%$RESCOMP%g
15863s%@RESFLAGS@%$RESFLAGS%g
15864s%@DLLTOOL@%$DLLTOOL%g
15865s%@AS@%$AS%g
15866s%@NM@%$NM%g
15867s%@LD@%$LD%g
15868s%@MAKEINFO@%$MAKEINFO%g
10f2d63a 15869s%@SET_MAKE@%$SET_MAKE%g
2224580a 15870s%@subdirs@%$subdirs%g
10f2d63a
VZ
15871
15872CEOF
15873EOF
15874
15875cat >> $CONFIG_STATUS <<\EOF
15876
15877# Split the substitutions into bite-sized pieces for seds with
15878# small command number limits, like on Digital OSF/1 and HP-UX.
15879ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
15880ac_file=1 # Number of current file.
15881ac_beg=1 # First line for current file.
15882ac_end=$ac_max_sed_cmds # Line after last line for current file.
15883ac_more_lines=:
15884ac_sed_cmds=""
15885while $ac_more_lines; do
15886 if test $ac_beg -gt 1; then
15887 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
15888 else
15889 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
15890 fi
15891 if test ! -s conftest.s$ac_file; then
15892 ac_more_lines=false
15893 rm -f conftest.s$ac_file
15894 else
15895 if test -z "$ac_sed_cmds"; then
15896 ac_sed_cmds="sed -f conftest.s$ac_file"
15897 else
15898 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
15899 fi
15900 ac_file=`expr $ac_file + 1`
15901 ac_beg=$ac_end
15902 ac_end=`expr $ac_end + $ac_max_sed_cmds`
15903 fi
15904done
15905if test -z "$ac_sed_cmds"; then
15906 ac_sed_cmds=cat
15907fi
15908EOF
15909
15910cat >> $CONFIG_STATUS <<EOF
15911
15912CONFIG_FILES=\${CONFIG_FILES-"wx-config
15913 src/make.env
15914 src/makeprog.env
15915 src/makelib.env
15916 Makefile
10f2d63a
VZ
15917 "}
15918EOF
15919cat >> $CONFIG_STATUS <<\EOF
15920for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
15921 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
15922 case "$ac_file" in
15923 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
15924 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
15925 *) ac_file_in="${ac_file}.in" ;;
15926 esac
15927
15928 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
15929
15930 # Remove last slash and all that follows it. Not all systems have dirname.
15931 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
15932 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
15933 # The file is in a subdirectory.
15934 test ! -d "$ac_dir" && mkdir "$ac_dir"
15935 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
15936 # A "../" for each directory in $ac_dir_suffix.
15937 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
15938 else
15939 ac_dir_suffix= ac_dots=
15940 fi
15941
15942 case "$ac_given_srcdir" in
15943 .) srcdir=.
15944 if test -z "$ac_dots"; then top_srcdir=.
15945 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
15946 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
15947 *) # Relative path.
15948 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
15949 top_srcdir="$ac_dots$ac_given_srcdir" ;;
15950 esac
15951
15952 case "$ac_given_INSTALL" in
15953 [/$]*) INSTALL="$ac_given_INSTALL" ;;
15954 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
15955 esac
15956
15957 echo creating "$ac_file"
15958 rm -f "$ac_file"
15959 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
15960 case "$ac_file" in
15961 *Makefile*) ac_comsub="1i\\
15962# $configure_input" ;;
15963 *) ac_comsub= ;;
15964 esac
15965
15966 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
15967 sed -e "$ac_comsub
15968s%@configure_input@%$configure_input%g
15969s%@srcdir@%$srcdir%g
15970s%@top_srcdir@%$top_srcdir%g
15971s%@INSTALL@%$INSTALL%g
15972" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
15973fi; done
15974rm -f conftest.s*
15975
15976# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
15977# NAME is the cpp macro being defined and VALUE is the value it is being given.
15978#
15979# ac_d sets the value in "#define NAME VALUE" lines.
15980ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
15981ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
15982ac_dC='\3'
15983ac_dD='%g'
15984# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
15985ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
15986ac_uB='\([ ]\)%\1#\2define\3'
15987ac_uC=' '
15988ac_uD='\4%g'
15989# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
15990ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
15991ac_eB='$%\1#\2define\3'
15992ac_eC=' '
15993ac_eD='%g'
15994
15995if test "${CONFIG_HEADERS+set}" != set; then
15996EOF
15997cat >> $CONFIG_STATUS <<EOF
15998 CONFIG_HEADERS="setup.h:setup.h.in"
15999EOF
16000cat >> $CONFIG_STATUS <<\EOF
16001fi
16002for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
16003 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16004 case "$ac_file" in
16005 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
16006 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
16007 *) ac_file_in="${ac_file}.in" ;;
16008 esac
16009
16010 echo creating $ac_file
16011
16012 rm -f conftest.frag conftest.in conftest.out
16013 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
16014 cat $ac_file_inputs > conftest.in
16015
16016EOF
16017
16018# Transform confdefs.h into a sed script conftest.vals that substitutes
16019# the proper values into config.h.in to produce config.h. And first:
16020# Protect against being on the right side of a sed subst in config.status.
16021# Protect against being in an unquoted here document in config.status.
16022rm -f conftest.vals
16023cat > conftest.hdr <<\EOF
16024s/[\\&%]/\\&/g
16025s%[\\$`]%\\&%g
16026s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
16027s%ac_d%ac_u%gp
16028s%ac_u%ac_e%gp
16029EOF
16030sed -n -f conftest.hdr confdefs.h > conftest.vals
16031rm -f conftest.hdr
16032
16033# This sed command replaces #undef with comments. This is necessary, for
16034# example, in the case of _POSIX_SOURCE, which is predefined and required
16035# on some systems where configure will not decide to define it.
16036cat >> conftest.vals <<\EOF
16037s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
16038EOF
16039
16040# Break up conftest.vals because some shells have a limit on
16041# the size of here documents, and old seds have small limits too.
16042
16043rm -f conftest.tail
16044while :
16045do
16046 ac_lines=`grep -c . conftest.vals`
16047 # grep -c gives empty output for an empty file on some AIX systems.
16048 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
16049 # Write a limited-size here document to conftest.frag.
16050 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
16051 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
16052 echo 'CEOF
16053 sed -f conftest.frag conftest.in > conftest.out
16054 rm -f conftest.in
16055 mv conftest.out conftest.in
16056' >> $CONFIG_STATUS
16057 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
16058 rm -f conftest.vals
16059 mv conftest.tail conftest.vals
16060done
16061rm -f conftest.vals
16062
16063cat >> $CONFIG_STATUS <<\EOF
16064 rm -f conftest.frag conftest.h
16065 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
16066 cat conftest.in >> conftest.h
16067 rm -f conftest.in
16068 if cmp -s $ac_file conftest.h 2>/dev/null; then
16069 echo "$ac_file is unchanged"
16070 rm -f conftest.h
16071 else
16072 # Remove last slash and all that follows it. Not all systems have dirname.
16073 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
16074 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
16075 # The file is in a subdirectory.
16076 test ! -d "$ac_dir" && mkdir "$ac_dir"
16077 fi
16078 rm -f $ac_file
16079 mv conftest.h $ac_file
16080 fi
16081fi; done
16082
16083EOF
16084cat >> $CONFIG_STATUS <<EOF
16085
16086 TOOLKIT_DIR="${TOOLKIT_DIR}"
f6bcfd97 16087 TOOLKIT_NAME="${TOOLKIT_NAME}"
07eb77a6 16088 LN_S="${LN_S}"
10f2d63a
VZ
16089
16090
16091EOF
16092cat >> $CONFIG_STATUS <<\EOF
16093
16094 chmod +x wx-config
f6bcfd97
BP
16095 mv wx-config wx${TOOLKIT_NAME}-config
16096 ${LN_S} wx${TOOLKIT_NAME}-config wx-config
00cf1208 16097
f3c067d2 16098
00cf1208
RR
16099 if test ! -d lib; then
16100 mkdir lib
16101 fi
16102 if test ! -d lib/wx; then
16103 mkdir lib/wx
16104 fi
16105 if test ! -d lib/wx/include; then
16106 mkdir lib/wx/include
16107 fi
16108 if test ! -d lib/wx/include/wx; then
16109 mkdir lib/wx/include/wx
16110 fi
f6bcfd97
BP
16111 if test ! -d lib/wx/include/wx/${TOOLKIT_NAME}; then
16112 mkdir lib/wx/include/wx/${TOOLKIT_NAME}
00cf1208
RR
16113 fi
16114 if test -f setup.h; then
066b00aa 16115 cp -fp setup.h lib/wx/include/wx/${TOOLKIT_NAME}/setup.h
00cf1208 16116 fi
07eb77a6 16117
00cf1208 16118
10f2d63a
VZ
16119 if test ! -d include; then
16120 mkdir include
16121 fi
16122 if test ! -d include/wx; then
16123 mkdir include/wx
16124 fi
16125 if test ! -d include/wx/${TOOLKIT_DIR}; then
16126 mkdir include/wx/${TOOLKIT_DIR}
16127 fi
afc31813 16128 if test -f setup.h; then
066b00aa 16129 cp -fp setup.h include/wx/${TOOLKIT_DIR}/setup.h
afc31813 16130 fi
00cf1208 16131
10f2d63a
VZ
16132
16133exit 0
16134EOF
16135chmod +x $CONFIG_STATUS
16136rm -fr confdefs* $ac_clean_files
16137test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
16138
2224580a
VZ
16139if test "$no_recursion" != yes; then
16140
16141 # Remove --cache-file and --srcdir arguments so they do not pile up.
16142 ac_sub_configure_args=
16143 ac_prev=
16144 for ac_arg in $ac_configure_args; do
16145 if test -n "$ac_prev"; then
16146 ac_prev=
16147 continue
16148 fi
16149 case "$ac_arg" in
16150 -cache-file | --cache-file | --cache-fil | --cache-fi \
16151 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
16152 ac_prev=cache_file ;;
16153 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
16154 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
16155 ;;
16156 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
16157 ac_prev=srcdir ;;
16158 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
16159 ;;
16160 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
16161 esac
16162 done
16163
e8482f24 16164 for ac_config_dir in demos samples utils contrib; do
2224580a
VZ
16165
16166 # Do not complain, so a configure script can configure whichever
16167 # parts of a large source tree are present.
16168 if test ! -d $srcdir/$ac_config_dir; then
16169 continue
16170 fi
16171
16172 echo configuring in $ac_config_dir
16173
16174 case "$srcdir" in
16175 .) ;;
16176 *)
16177 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
16178 else
16179 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
16180 fi
16181 ;;
16182 esac
16183
16184 ac_popdir=`pwd`
16185 cd $ac_config_dir
16186
16187 # A "../" for each directory in /$ac_config_dir.
16188 ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
16189
16190 case "$srcdir" in
16191 .) # No --srcdir option. We are building in place.
16192 ac_sub_srcdir=$srcdir ;;
16193 /*) # Absolute path.
16194 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
16195 *) # Relative path.
16196 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
16197 esac
16198
16199 # Check for guested configure; otherwise get Cygnus style configure.
16200 if test -f $ac_sub_srcdir/configure; then
16201 ac_sub_configure=$ac_sub_srcdir/configure
16202 elif test -f $ac_sub_srcdir/configure.in; then
16203 ac_sub_configure=$ac_configure
16204 else
16205 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
16206 ac_sub_configure=
16207 fi
16208
16209 # The recursion is here.
16210 if test -n "$ac_sub_configure"; then
16211
16212 # Make the cache file name correct relative to the subdirectory.
16213 case "$cache_file" in
16214 /*) ac_sub_cache_file=$cache_file ;;
16215 *) # Relative path.
16216 ac_sub_cache_file="$ac_dots$cache_file" ;;
16217 esac
16218 case "$ac_given_INSTALL" in
16219 [/$]*) INSTALL="$ac_given_INSTALL" ;;
16220 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
16221 esac
16222
16223 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
16224 # The eval makes quoting arguments work.
16225 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
16226 then :
16227 else
16228 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
16229 fi
16230 fi
16231
16232 cd $ac_popdir
16233 done
16234fi
16235
10f2d63a 16236