]> git.saurik.com Git - wxWidgets.git/blame - configure
regenerated
[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
d9b9876f 12755 echo $ac_n "checking for pthread_mutexattr_t""... $ac_c" 1>&6
2c1c448a 12756echo "configure:12757: checking for pthread_mutexattr_t" >&5
d9b9876f
VZ
12757if eval "test \"`echo '$''{'wx_cv_type_pthread_mutexattr_t'+set}'`\" = set"; then
12758 echo $ac_n "(cached) $ac_c" 1>&6
12759else
12760
12761 cat > conftest.$ac_ext <<EOF
2c1c448a 12762#line 12763 "configure"
d9b9876f
VZ
12763#include "confdefs.h"
12764#include <pthread.h>
12765int main() {
12766
12767 pthread_mutexattr_t attr;
12768 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
12769
12770; return 0; }
12771EOF
2c1c448a 12772if { (eval echo configure:12773: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d9b9876f
VZ
12773 rm -rf conftest*
12774
12775 wx_cv_type_pthread_mutexattr_t=yes
12776
12777else
12778 echo "configure: failed program was:" >&5
12779 cat conftest.$ac_ext >&5
12780 rm -rf conftest*
12781
12782 wx_cv_type_pthread_mutexattr_t=no
12783
12784
12785fi
12786rm -f conftest*
12787
12788fi
12789
12790echo "$ac_t""$wx_cv_type_pthread_mutexattr_t" 1>&6
12791
12792 if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
12793 cat >> confdefs.h <<\EOF
12794#define HAVE_PTHREAD_MUTEXATTR_T 1
12795EOF
12796
12797 else
12798 echo $ac_n "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER""... $ac_c" 1>&6
2c1c448a 12799echo "configure:12800: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
d9b9876f
VZ
12800if eval "test \"`echo '$''{'wx_cv_type_pthread_rec_mutex_init'+set}'`\" = set"; then
12801 echo $ac_n "(cached) $ac_c" 1>&6
12802else
12803
12804 cat > conftest.$ac_ext <<EOF
2c1c448a 12805#line 12806 "configure"
d9b9876f
VZ
12806#include "confdefs.h"
12807#include <pthread.h>
12808int main() {
12809
12810 pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
12811
12812; return 0; }
12813EOF
2c1c448a 12814if { (eval echo configure:12815: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d9b9876f
VZ
12815 rm -rf conftest*
12816
12817 wx_cv_type_pthread_rec_mutex_init=yes
12818
12819else
12820 echo "configure: failed program was:" >&5
12821 cat conftest.$ac_ext >&5
12822 rm -rf conftest*
12823
12824 wx_cv_type_pthread_rec_mutex_init=no
12825
12826
12827fi
12828rm -f conftest*
12829
12830fi
12831
12832echo "$ac_t""$wx_cv_type_pthread_rec_mutex_init" 1>&6
12833 if test "$wx_cv_type_pthread_rec_mutex_init"="yes"; then
12834 cat >> confdefs.h <<\EOF
12835#define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
12836EOF
12837
12838 else
12839 echo "configure: warning: wxMutex won't be recursive on this platform" 1>&2
12840 fi
12841 fi
12842
10f2d63a 12843 THREADS_LINK="-l$THREADS_LINK"
186837b0
VZ
12844
12845 if test "$USE_SOLARIS" = "yes" -a "$GCC" != "yes"; then
12846 CFLAGS="${CFLAGS} -mt"
12847 CXXFLAGS="${CXXFLAGS} -mt"
12848 LDFLAGS="${LDFLAGS} -mt"
12849 fi
10f2d63a
VZ
12850fi
12851
12852fi
12853
12854if test "$wxUSE_THREADS" = "yes"; then
12855 cat >> confdefs.h <<\EOF
12856#define wxUSE_THREADS 1
12857EOF
12858
12859
2c6025bc 12860 if test "$wxUSE_MAC" = "0"; then
10f2d63a 12861 CFLAGS="${CFLAGS} -D_REENTRANT"
2c6025bc
GD
12862 CXXFLAGS="${CXXFLAGS} -D_REENTRANT"
12863 fi
10f2d63a
VZ
12864
12865 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
12866else
12867 if test "$ac_cv_func_strtok_r" = "yes"; then
ab9b9eab 12868 echo $ac_n "checking if -D_REENTRANT is needed""... $ac_c" 1>&6
2c1c448a 12869echo "configure:12870: checking if -D_REENTRANT is needed" >&5
ab9b9eab
VZ
12870 if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
12871 CFLAGS="${CFLAGS} -D_REENTRANT"
12872 CXXFLAGS="${CXXFLAGS} -D_REENTRANT"
12873 echo "$ac_t""yes" 1>&6
12874 else
12875 echo "$ac_t""no" 1>&6
10f2d63a
VZ
12876 fi
12877 fi
12878fi
12879
6f72b082 12880if test "$WXGTK20" = 1 ; then
13111b2a 12881 cat >> confdefs.h <<EOF
6f72b082 12882#define __WXGTK20__ $WXGTK20
13111b2a
VZ
12883EOF
12884
12885 WXGTK12=1
12886fi
12887
10f2d63a
VZ
12888if test "$WXGTK12" = 1 ; then
12889 cat >> confdefs.h <<EOF
12890#define __WXGTK12__ $WXGTK12
12891EOF
12892
12893fi
12894
f6bcfd97
BP
12895if test "$WXGTK127" = 1 ; then
12896 cat >> confdefs.h <<EOF
12897#define __WXGTK127__ $WXGTK127
12898EOF
12899
12900fi
12901
10f2d63a
VZ
12902if test "$WXWINE" = 1 ; then
12903 TOOLKIT_DEF="${TOOLKIT_DEF} -D__WXWINE__"
12904fi
12905
b4085ce6 12906if test "$wxUSE_MAC" = 1 ; then
2c6025bc 12907 TOOLKIT_DEF="${TOOLKIT_DEF} -D__UNIX__ -D__POWERPC__ -DTARGET_CARBON"
ea5999b9
GD
12908 CFLAGS="${CFLAGS} -fno-common -fpascal-strings"
12909 CPPFLAGS="${CPPFLAGS} -fno-common -fpascal-strings"
b4085ce6
GD
12910fi
12911
10f2d63a
VZ
12912if test "$wxUSE_CYGWIN" = 1 ; then
12913 TOOLKIT_DEF="${TOOLKIT_DEF} -D__WIN95__"
12914fi
12915
12916WXDEBUG=
12917
12918if test "$wxUSE_DEBUG_INFO" = "yes" ; then
12919 WXDEBUG="-g"
12920 wxUSE_OPTIMISE=no
12921fi
12922
12923if test "$wxUSE_DEBUG_GDB" = "yes" ; then
12924 wxUSE_DEBUG_INFO=yes
12925 WXDEBUG="-ggdb"
12926fi
12927
12928if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
12929 cat >> confdefs.h <<\EOF
12930#define WXDEBUG 1
12931EOF
12932
12933 WXDEBUG_DEFINE="-D__WXDEBUG__"
12934else
12935 if test "$wxUSE_GTK" = 1 ; then
12936 WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS"
12937 fi
12938fi
12939
12940if test "$wxUSE_MEM_TRACING" = "yes" ; then
12941 cat >> confdefs.h <<\EOF
12942#define wxUSE_MEMORY_TRACING 1
12943EOF
12944
12945 cat >> confdefs.h <<\EOF
12946#define wxUSE_GLOBAL_MEMORY_OPERATORS 1
47c13eb7
VS
12947EOF
12948
12949 cat >> confdefs.h <<\EOF
12950#define wxUSE_DEBUG_NEW_ALWAYS 1
10f2d63a
VZ
12951EOF
12952
12953 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
12954fi
12955
12956if test "$wxUSE_DMALLOC" = "yes" ; then
12957 DMALLOC_LINK="-ldmalloc"
12958fi
12959
12960PROFILE=
12961if test "$wxUSE_PROFILE" = "yes" ; then
12962 PROFILE="-pg"
12963fi
12964
12965DEP_INFO_FLAGS=
caa2c79b 12966CODE_GEN_FLAGS=
0f3f1cbc 12967CODE_GEN_FLAGS_CXX=
10f2d63a
VZ
12968if test "$GCC" = yes ; then
12969 if test "$wxUSE_NO_RTTI" = "yes" ; then
0f3f1cbc 12970 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS -fno-rtti"
10f2d63a
VZ
12971 fi
12972 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
0f3f1cbc 12973 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS -fno-exceptions"
10f2d63a
VZ
12974 fi
12975 if test "$wxUSE_PERMISSIVE" = "yes" ; then
caa2c79b 12976 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive"
10f2d63a
VZ
12977 fi
12978 if test "$wxUSE_NO_DEPS" = "no" ; then
12979 DEP_INFO_FLAGS="-MMD"
12980 fi
12981fi
12982
12983
12984CXXFLAGS=`echo "${CXXFLAGS}" | sed "s/\-O.//g" `
12985CFLAGS=`echo "${CFLAGS}" | sed "s/\-O.//g" `
12986if test "$wxUSE_OPTIMISE" = "no" ; then
12987 OPTIMISE=
12988else
12989 if test "$GCC" = yes ; then
12990 OPTIMISE="-O2"
12991 case "${host}" in
12992 i586-*-*|i686-*-* )
12993 OPTIMISE="${OPTIMISE} "
12994 ;;
12995 esac
12996 else
12997 OPTIMISE="-O"
12998 fi
12999fi
13000
13001
13002ZLIB_INCLUDE=
422107f9 13003if test "$wxUSE_ZLIB" = "yes" -o "$wxUSE_ZLIB" = "sys" ; then
10f2d63a
VZ
13004 cat >> confdefs.h <<\EOF
13005#define wxUSE_ZLIB 1
13006EOF
13007
422107f9
VZ
13008 if test "$wxUSE_ZLIB" = "yes" ; then
13009 ZLIB_INCLUDE="-I\${top_srcdir}/src/zlib"
13010 else
13011 ZLIB_LINK=
13012 ac_safe=`echo "zlib.h" | sed 'y%./+-%__p_%'`
13013echo $ac_n "checking for zlib.h""... $ac_c" 1>&6
2c1c448a 13014echo "configure:13015: checking for zlib.h" >&5
422107f9
VZ
13015if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
13016 echo $ac_n "(cached) $ac_c" 1>&6
13017else
13018 cat > conftest.$ac_ext <<EOF
2c1c448a 13019#line 13020 "configure"
422107f9
VZ
13020#include "confdefs.h"
13021#include <zlib.h>
13022EOF
13023ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2c1c448a 13024{ (eval echo configure:13025: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
422107f9
VZ
13025ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13026if test -z "$ac_err"; then
13027 rm -rf conftest*
13028 eval "ac_cv_header_$ac_safe=yes"
13029else
13030 echo "$ac_err" >&5
13031 echo "configure: failed program was:" >&5
13032 cat conftest.$ac_ext >&5
13033 rm -rf conftest*
13034 eval "ac_cv_header_$ac_safe=no"
13035fi
13036rm -f conftest*
13037fi
13038if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13039 echo "$ac_t""yes" 1>&6
13040 echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6
2c1c448a 13041echo "configure:13042: checking for deflate in -lz" >&5
422107f9
VZ
13042ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'`
13043if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13044 echo $ac_n "(cached) $ac_c" 1>&6
13045else
13046 ac_save_LIBS="$LIBS"
13047LIBS="-lz $LIBS"
13048cat > conftest.$ac_ext <<EOF
2c1c448a 13049#line 13050 "configure"
422107f9
VZ
13050#include "confdefs.h"
13051/* Override any gcc2 internal prototype to avoid an error. */
13052/* We use char because int might match the return type of a gcc2
13053 builtin and then its argument prototype would still apply. */
13054char deflate();
13055
13056int main() {
13057deflate()
13058; return 0; }
13059EOF
2c1c448a 13060if { (eval echo configure:13061: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
422107f9
VZ
13061 rm -rf conftest*
13062 eval "ac_cv_lib_$ac_lib_var=yes"
13063else
13064 echo "configure: failed program was:" >&5
13065 cat conftest.$ac_ext >&5
13066 rm -rf conftest*
13067 eval "ac_cv_lib_$ac_lib_var=no"
13068fi
13069rm -f conftest*
13070LIBS="$ac_save_LIBS"
13071
13072fi
13073if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13074 echo "$ac_t""yes" 1>&6
13075 ZLIB_LINK="-lz"
13076else
13077 echo "$ac_t""no" 1>&6
13078fi
13079
13080else
13081 echo "$ac_t""no" 1>&6
13082fi
13083
13084 if test "x$ZLIB_LINK" = "x" ; then
13085 { echo "configure: error: system zlib compression library not found! Use --with-zlib=yes to use built-in zlib" 1>&2; exit 1; }
13086 fi
13087 fi
10f2d63a
VZ
13088fi
13089
13090PNG_INCLUDE=
422107f9 13091if test "$wxUSE_LIBPNG" = "yes" -o "$wxUSE_LIBPNG" = "sys" ; then
10f2d63a
VZ
13092 cat >> confdefs.h <<\EOF
13093#define wxUSE_LIBPNG 1
13094EOF
13095
41fd4136 13096 if test "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
422107f9
VZ
13097 echo "configure: warning: --with-libpng=sys doesn't work without --with-zlib=sys, will compile the built-in libpng instead" 1>&2
13098 wxUSE_LIBPNG=yes
13099 fi
13100
13101 if test "$wxUSE_LIBPNG" = "yes" ; then
13102 PNG_INCLUDE="-I\${top_srcdir}/src/png"
13103 else
13104 PNG_LINK=
13105 ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'`
13106echo $ac_n "checking for png.h""... $ac_c" 1>&6
2c1c448a 13107echo "configure:13108: checking for png.h" >&5
422107f9
VZ
13108if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
13109 echo $ac_n "(cached) $ac_c" 1>&6
13110else
13111 cat > conftest.$ac_ext <<EOF
2c1c448a 13112#line 13113 "configure"
422107f9
VZ
13113#include "confdefs.h"
13114#include <png.h>
13115EOF
13116ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2c1c448a 13117{ (eval echo configure:13118: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
422107f9
VZ
13118ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13119if test -z "$ac_err"; then
13120 rm -rf conftest*
13121 eval "ac_cv_header_$ac_safe=yes"
13122else
13123 echo "$ac_err" >&5
13124 echo "configure: failed program was:" >&5
13125 cat conftest.$ac_ext >&5
13126 rm -rf conftest*
13127 eval "ac_cv_header_$ac_safe=no"
13128fi
13129rm -f conftest*
13130fi
13131if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13132 echo "$ac_t""yes" 1>&6
13133 echo $ac_n "checking for png_check_sig in -lpng""... $ac_c" 1>&6
2c1c448a 13134echo "configure:13135: checking for png_check_sig in -lpng" >&5
422107f9
VZ
13135ac_lib_var=`echo png'_'png_check_sig | sed 'y%./+-%__p_%'`
13136if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13137 echo $ac_n "(cached) $ac_c" 1>&6
13138else
13139 ac_save_LIBS="$LIBS"
13140LIBS="-lpng -lz -lm $LIBS"
13141cat > conftest.$ac_ext <<EOF
2c1c448a 13142#line 13143 "configure"
422107f9
VZ
13143#include "confdefs.h"
13144/* Override any gcc2 internal prototype to avoid an error. */
13145/* We use char because int might match the return type of a gcc2
13146 builtin and then its argument prototype would still apply. */
13147char png_check_sig();
13148
13149int main() {
13150png_check_sig()
13151; return 0; }
13152EOF
2c1c448a 13153if { (eval echo configure:13154: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
422107f9
VZ
13154 rm -rf conftest*
13155 eval "ac_cv_lib_$ac_lib_var=yes"
13156else
13157 echo "configure: failed program was:" >&5
13158 cat conftest.$ac_ext >&5
13159 rm -rf conftest*
13160 eval "ac_cv_lib_$ac_lib_var=no"
13161fi
13162rm -f conftest*
13163LIBS="$ac_save_LIBS"
13164
13165fi
13166if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13167 echo "$ac_t""yes" 1>&6
13168 PNG_LINK="-lpng"
13169else
13170 echo "$ac_t""no" 1>&6
13171fi
13172
13173
13174else
13175 echo "$ac_t""no" 1>&6
13176fi
13177
13178 if test "x$PNG_LINK" = "x" ; then
0dcf9893 13179 { echo "configure: error: system png library not found! Use --with-libpng=yes to use the built-in libpng" 1>&2; exit 1; }
422107f9
VZ
13180 fi
13181 fi
13182
10f2d63a
VZ
13183 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
13184fi
13185
13186JPEG_INCLUDE=
422107f9 13187if test "$wxUSE_LIBJPEG" = "yes" -o "$wxUSE_LIBJPEG" = "sys" ; then
10f2d63a
VZ
13188 cat >> confdefs.h <<\EOF
13189#define wxUSE_LIBJPEG 1
13190EOF
13191
422107f9
VZ
13192 if test "$wxUSE_LIBJPEG" = "yes" ; then
13193 JPEG_INCLUDE="-I\${top_srcdir}/src/jpeg"
13194 else
13195 JPEG_LINK=
13196 ac_safe=`echo "jpeglib.h" | sed 'y%./+-%__p_%'`
13197echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6
2c1c448a 13198echo "configure:13199: checking for jpeglib.h" >&5
422107f9
VZ
13199if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
13200 echo $ac_n "(cached) $ac_c" 1>&6
13201else
13202 cat > conftest.$ac_ext <<EOF
2c1c448a 13203#line 13204 "configure"
422107f9
VZ
13204#include "confdefs.h"
13205#include <jpeglib.h>
13206EOF
13207ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2c1c448a 13208{ (eval echo configure:13209: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
422107f9
VZ
13209ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13210if test -z "$ac_err"; then
13211 rm -rf conftest*
13212 eval "ac_cv_header_$ac_safe=yes"
13213else
13214 echo "$ac_err" >&5
13215 echo "configure: failed program was:" >&5
13216 cat conftest.$ac_ext >&5
13217 rm -rf conftest*
13218 eval "ac_cv_header_$ac_safe=no"
13219fi
13220rm -f conftest*
13221fi
13222if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13223 echo "$ac_t""yes" 1>&6
13224 echo $ac_n "checking for jpeg_read_header in -ljpeg""... $ac_c" 1>&6
2c1c448a 13225echo "configure:13226: checking for jpeg_read_header in -ljpeg" >&5
422107f9
VZ
13226ac_lib_var=`echo jpeg'_'jpeg_read_header | sed 'y%./+-%__p_%'`
13227if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13228 echo $ac_n "(cached) $ac_c" 1>&6
13229else
13230 ac_save_LIBS="$LIBS"
13231LIBS="-ljpeg $LIBS"
13232cat > conftest.$ac_ext <<EOF
2c1c448a 13233#line 13234 "configure"
422107f9
VZ
13234#include "confdefs.h"
13235/* Override any gcc2 internal prototype to avoid an error. */
13236/* We use char because int might match the return type of a gcc2
13237 builtin and then its argument prototype would still apply. */
13238char jpeg_read_header();
13239
13240int main() {
13241jpeg_read_header()
13242; return 0; }
13243EOF
2c1c448a 13244if { (eval echo configure:13245: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
422107f9
VZ
13245 rm -rf conftest*
13246 eval "ac_cv_lib_$ac_lib_var=yes"
13247else
13248 echo "configure: failed program was:" >&5
13249 cat conftest.$ac_ext >&5
13250 rm -rf conftest*
13251 eval "ac_cv_lib_$ac_lib_var=no"
13252fi
13253rm -f conftest*
13254LIBS="$ac_save_LIBS"
13255
13256fi
13257if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13258 echo "$ac_t""yes" 1>&6
13259 JPEG_LINK="-ljpeg"
13260else
13261 echo "$ac_t""no" 1>&6
13262fi
13263
13264else
13265 echo "$ac_t""no" 1>&6
13266fi
13267
13268 if test "x$JPEG_LINK" = "x" ; then
0dcf9893 13269 { echo "configure: error: system jpeg library not found! Use --with-libjpeg=yes to use the built-in one" 1>&2; exit 1; }
422107f9
VZ
13270 fi
13271 fi
10f2d63a
VZ
13272fi
13273
c7a2bf27 13274TIFF_INCLUDE=
0dcf9893 13275if test "$wxUSE_LIBTIFF" = "yes" -o "$wxUSE_LIBTIFF" = "sys" ; then
c7a2bf27
RR
13276 cat >> confdefs.h <<\EOF
13277#define wxUSE_LIBTIFF 1
13278EOF
13279
0dcf9893
VZ
13280 if test "$wxUSE_LIBTIFF" = "yes" ; then
13281 TIFF_INCLUDE="-I\${top_srcdir}/src/tiff"
13282 else
13283 TIFF_LINK=
13284 ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'`
13285echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6
2c1c448a 13286echo "configure:13287: checking for tiffio.h" >&5
0dcf9893
VZ
13287if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
13288 echo $ac_n "(cached) $ac_c" 1>&6
13289else
13290 cat > conftest.$ac_ext <<EOF
2c1c448a 13291#line 13292 "configure"
0dcf9893
VZ
13292#include "confdefs.h"
13293#include <tiffio.h>
13294EOF
13295ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2c1c448a 13296{ (eval echo configure:13297: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
0dcf9893
VZ
13297ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13298if test -z "$ac_err"; then
13299 rm -rf conftest*
13300 eval "ac_cv_header_$ac_safe=yes"
13301else
13302 echo "$ac_err" >&5
13303 echo "configure: failed program was:" >&5
13304 cat conftest.$ac_ext >&5
13305 rm -rf conftest*
13306 eval "ac_cv_header_$ac_safe=no"
13307fi
13308rm -f conftest*
13309fi
13310if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13311 echo "$ac_t""yes" 1>&6
13312 echo $ac_n "checking for TIFFError in -ltiff""... $ac_c" 1>&6
2c1c448a 13313echo "configure:13314: checking for TIFFError in -ltiff" >&5
0dcf9893
VZ
13314ac_lib_var=`echo tiff'_'TIFFError | sed 'y%./+-%__p_%'`
13315if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13316 echo $ac_n "(cached) $ac_c" 1>&6
13317else
13318 ac_save_LIBS="$LIBS"
13319LIBS="-ltiff -lm $LIBS"
13320cat > conftest.$ac_ext <<EOF
2c1c448a 13321#line 13322 "configure"
0dcf9893
VZ
13322#include "confdefs.h"
13323/* Override any gcc2 internal prototype to avoid an error. */
13324/* We use char because int might match the return type of a gcc2
13325 builtin and then its argument prototype would still apply. */
13326char TIFFError();
13327
13328int main() {
13329TIFFError()
13330; return 0; }
13331EOF
2c1c448a 13332if { (eval echo configure:13333: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
0dcf9893
VZ
13333 rm -rf conftest*
13334 eval "ac_cv_lib_$ac_lib_var=yes"
13335else
13336 echo "configure: failed program was:" >&5
13337 cat conftest.$ac_ext >&5
13338 rm -rf conftest*
13339 eval "ac_cv_lib_$ac_lib_var=no"
13340fi
13341rm -f conftest*
13342LIBS="$ac_save_LIBS"
13343
13344fi
13345if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13346 echo "$ac_t""yes" 1>&6
13347 TIFF_LINK="-ltiff"
13348else
13349 echo "$ac_t""no" 1>&6
13350fi
13351
13352else
13353 echo "$ac_t""no" 1>&6
13354fi
13355
13356 if test "x$TIFF_LINK" = "x" ; then
13357 { echo "configure: error: system tiff library not found! Use --with-libtiff=yes to use the built-in one" 1>&2; exit 1; }
13358 fi
13359 fi
c7a2bf27
RR
13360fi
13361
3fed1840
RR
13362FREETYPE_INCLUDE=
13363if test "$wxUSE_FREETYPE" = "yes" -o "$wxUSE_FREETYPE" = "sys" ; then
13364 cat >> confdefs.h <<\EOF
13365#define wxUSE_FREETYPE 1
13366EOF
13367
13368 if test "$wxUSE_FREETYPE" = "yes" ; then
13369 FREETYPE_INCLUDE="-I\${top_srcdir}/src/freetype"
13370 else
13371 FREETYPE_LINK=
13372 ac_safe=`echo "freetype.h" | sed 'y%./+-%__p_%'`
13373echo $ac_n "checking for freetype.h""... $ac_c" 1>&6
2c1c448a 13374echo "configure:13375: checking for freetype.h" >&5
3fed1840
RR
13375if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
13376 echo $ac_n "(cached) $ac_c" 1>&6
13377else
13378 cat > conftest.$ac_ext <<EOF
2c1c448a 13379#line 13380 "configure"
3fed1840
RR
13380#include "confdefs.h"
13381#include <freetype.h>
13382EOF
13383ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2c1c448a 13384{ (eval echo configure:13385: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3fed1840
RR
13385ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13386if test -z "$ac_err"; then
13387 rm -rf conftest*
13388 eval "ac_cv_header_$ac_safe=yes"
13389else
13390 echo "$ac_err" >&5
13391 echo "configure: failed program was:" >&5
13392 cat conftest.$ac_ext >&5
13393 rm -rf conftest*
13394 eval "ac_cv_header_$ac_safe=no"
13395fi
13396rm -f conftest*
13397fi
13398if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13399 echo "$ac_t""yes" 1>&6
13400 echo $ac_n "checking for FT_Render_Glyph in -lfreetype""... $ac_c" 1>&6
2c1c448a 13401echo "configure:13402: checking for FT_Render_Glyph in -lfreetype" >&5
3fed1840
RR
13402ac_lib_var=`echo freetype'_'FT_Render_Glyph | sed 'y%./+-%__p_%'`
13403if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13404 echo $ac_n "(cached) $ac_c" 1>&6
13405else
13406 ac_save_LIBS="$LIBS"
13407LIBS="-lfreetype -lm $LIBS"
13408cat > conftest.$ac_ext <<EOF
2c1c448a 13409#line 13410 "configure"
3fed1840
RR
13410#include "confdefs.h"
13411/* Override any gcc2 internal prototype to avoid an error. */
13412/* We use char because int might match the return type of a gcc2
13413 builtin and then its argument prototype would still apply. */
13414char FT_Render_Glyph();
13415
13416int main() {
13417FT_Render_Glyph()
13418; return 0; }
13419EOF
2c1c448a 13420if { (eval echo configure:13421: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3fed1840
RR
13421 rm -rf conftest*
13422 eval "ac_cv_lib_$ac_lib_var=yes"
13423else
13424 echo "configure: failed program was:" >&5
13425 cat conftest.$ac_ext >&5
13426 rm -rf conftest*
13427 eval "ac_cv_lib_$ac_lib_var=no"
13428fi
13429rm -f conftest*
13430LIBS="$ac_save_LIBS"
13431
13432fi
13433if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13434 echo "$ac_t""yes" 1>&6
13435 FREETYPE_LINK="-lfreetype"
13436else
13437 echo "$ac_t""no" 1>&6
13438fi
13439
13440
13441else
13442 echo "$ac_t""no" 1>&6
13443fi
13444
13445 if test "x$FREETYPE_LINK" = "x" ; then
13446 { echo "configure: error: system freetype library not found! Use --with-freetype=yes to use the built-in freetype" 1>&2; exit 1; }
13447 fi
13448 fi
13449fi
13450
10f2d63a
VZ
13451if test "$wxUSE_OPENGL" = "yes"; then
13452 ac_safe=`echo "GL/gl.h" | sed 'y%./+-%__p_%'`
13453echo $ac_n "checking for GL/gl.h""... $ac_c" 1>&6
2c1c448a 13454echo "configure:13455: checking for GL/gl.h" >&5
10f2d63a
VZ
13455if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
13456 echo $ac_n "(cached) $ac_c" 1>&6
13457else
13458 cat > conftest.$ac_ext <<EOF
2c1c448a 13459#line 13460 "configure"
10f2d63a
VZ
13460#include "confdefs.h"
13461#include <GL/gl.h>
13462EOF
13463ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2c1c448a 13464{ (eval echo configure:13465: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
13465ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13466if test -z "$ac_err"; then
13467 rm -rf conftest*
13468 eval "ac_cv_header_$ac_safe=yes"
13469else
13470 echo "$ac_err" >&5
13471 echo "configure: failed program was:" >&5
13472 cat conftest.$ac_ext >&5
13473 rm -rf conftest*
13474 eval "ac_cv_header_$ac_safe=no"
13475fi
13476rm -f conftest*
13477fi
13478if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13479 echo "$ac_t""yes" 1>&6
13480
bdad4e7e
RR
13481 cat >> confdefs.h <<\EOF
13482#define wxUSE_OPENGL 1
13483EOF
13484
13485 cat >> confdefs.h <<\EOF
13486#define wxUSE_GLCANVAS 1
13487EOF
13488
13489 echo $ac_n "checking for glFlush in -lGL""... $ac_c" 1>&6
2c1c448a 13490echo "configure:13491: checking for glFlush in -lGL" >&5
bdad4e7e 13491ac_lib_var=`echo GL'_'glFlush | sed 'y%./+-%__p_%'`
10f2d63a
VZ
13492if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13493 echo $ac_n "(cached) $ac_c" 1>&6
13494else
13495 ac_save_LIBS="$LIBS"
bdad4e7e 13496LIBS="-lGL $LIBS"
10f2d63a 13497cat > conftest.$ac_ext <<EOF
2c1c448a 13498#line 13499 "configure"
10f2d63a
VZ
13499#include "confdefs.h"
13500/* Override any gcc2 internal prototype to avoid an error. */
13501/* We use char because int might match the return type of a gcc2
13502 builtin and then its argument prototype would still apply. */
bdad4e7e 13503char glFlush();
10f2d63a
VZ
13504
13505int main() {
bdad4e7e 13506glFlush()
10f2d63a
VZ
13507; return 0; }
13508EOF
2c1c448a 13509if { (eval echo configure:13510: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
13510 rm -rf conftest*
13511 eval "ac_cv_lib_$ac_lib_var=yes"
13512else
13513 echo "configure: failed program was:" >&5
13514 cat conftest.$ac_ext >&5
13515 rm -rf conftest*
13516 eval "ac_cv_lib_$ac_lib_var=no"
13517fi
13518rm -f conftest*
13519LIBS="$ac_save_LIBS"
13520
13521fi
13522if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13523 echo "$ac_t""yes" 1>&6
13524
f6bcfd97 13525 OPENGL_LINK="-lGL -lGLU"
10f2d63a
VZ
13526
13527else
13528 echo "$ac_t""no" 1>&6
13529
bdad4e7e 13530 echo $ac_n "checking for glFlush in -lMesaGL""... $ac_c" 1>&6
2c1c448a 13531echo "configure:13532: checking for glFlush in -lMesaGL" >&5
bdad4e7e 13532ac_lib_var=`echo MesaGL'_'glFlush | sed 'y%./+-%__p_%'`
10f2d63a
VZ
13533if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13534 echo $ac_n "(cached) $ac_c" 1>&6
13535else
13536 ac_save_LIBS="$LIBS"
13537LIBS="-lMesaGL $LIBS"
13538cat > conftest.$ac_ext <<EOF
2c1c448a 13539#line 13540 "configure"
10f2d63a
VZ
13540#include "confdefs.h"
13541/* Override any gcc2 internal prototype to avoid an error. */
13542/* We use char because int might match the return type of a gcc2
13543 builtin and then its argument prototype would still apply. */
bdad4e7e 13544char glFlush();
10f2d63a
VZ
13545
13546int main() {
bdad4e7e 13547glFlush()
10f2d63a
VZ
13548; return 0; }
13549EOF
2c1c448a 13550if { (eval echo configure:13551: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
13551 rm -rf conftest*
13552 eval "ac_cv_lib_$ac_lib_var=yes"
13553else
13554 echo "configure: failed program was:" >&5
13555 cat conftest.$ac_ext >&5
13556 rm -rf conftest*
13557 eval "ac_cv_lib_$ac_lib_var=no"
13558fi
13559rm -f conftest*
13560LIBS="$ac_save_LIBS"
13561
13562fi
13563if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13564 echo "$ac_t""yes" 1>&6
13565
f6bcfd97 13566 OPENGL_LINK="-lMesaGL -lMesaGLU"
10f2d63a
VZ
13567
13568else
13569 echo "$ac_t""no" 1>&6
10f2d63a
VZ
13570fi
13571
13572
13573fi
13574
13575
13576else
13577 echo "$ac_t""no" 1>&6
13578wxUSE_OPENGL=0
13579fi
13580
13581fi
13582
13583
13584if test "$wxUSE_GUI" = "yes"; then
13585 cat >> confdefs.h <<\EOF
13586#define wxUSE_GUI 1
13587EOF
13588
13589
13590 else
13591 cat >> confdefs.h <<\EOF
13592#define wxUSE_NOGUI 1
13593EOF
13594
13595fi
13596
13597
13598if test "$wxUSE_UNIX" = "yes"; then
13599 cat >> confdefs.h <<\EOF
13600#define wxUSE_UNIX 1
13601EOF
13602
13603fi
13604
13605
13606if test "$wxUSE_APPLE_IEEE" = "yes"; then
13607 cat >> confdefs.h <<\EOF
13608#define wxUSE_APPLE_IEEE 1
13609EOF
13610
13611fi
13612
10f2d63a
VZ
13613if test "$wxUSE_WAVE" = "yes"; then
13614 cat >> confdefs.h <<\EOF
13615#define wxUSE_WAVE 1
13616EOF
13617
13618fi
13619
13620if test "$wxUSE_FILE" = "yes"; then
13621 cat >> confdefs.h <<\EOF
13622#define wxUSE_FILE 1
13623EOF
13624
13625fi
13626
24528b0c
VS
13627if test "$wxUSE_FILESYSTEM" = "yes"; then
13628 cat >> confdefs.h <<\EOF
13629#define wxUSE_FILESYSTEM 1
13630EOF
13631
13632fi
13633
10f2d63a
VZ
13634if test "$wxUSE_FS_INET" = "yes"; then
13635 cat >> confdefs.h <<\EOF
13636#define wxUSE_FS_INET 1
13637EOF
13638
13639fi
13640
13641if test "$wxUSE_FS_ZIP" = "yes"; then
13642 cat >> confdefs.h <<\EOF
13643#define wxUSE_FS_ZIP 1
13644EOF
13645
13646fi
13647
13648if test "$wxUSE_ZIPSTREAM" = "yes"; then
13649 cat >> confdefs.h <<\EOF
13650#define wxUSE_ZIPSTREAM 1
13651EOF
13652
13653fi
13654
eb4efbdc
VZ
13655if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
13656 cat >> confdefs.h <<\EOF
13657#define wxUSE_ON_FATAL_EXCEPTION 1
13658EOF
13659
13660fi
13661
10f2d63a
VZ
13662if test "$wxUSE_BUSYINFO" = "yes"; then
13663 cat >> confdefs.h <<\EOF
13664#define wxUSE_BUSYINFO 1
13665EOF
13666
13667fi
13668
13669if test "$wxUSE_STD_IOSTREAM" = "yes"; then
13670 cat >> confdefs.h <<\EOF
13671#define wxUSE_STD_IOSTREAM 1
13672EOF
13673
13674fi
13675
13676if test "$wxUSE_TEXTFILE" = "yes"; then
13677 if test "$wxUSE_FILE" != "yes"; then
13678 echo "configure: warning: wxTextFile requires wxFile and it won't be compiled without it" 1>&2
13679 else
13680 cat >> confdefs.h <<\EOF
13681#define wxUSE_TEXTFILE 1
13682EOF
13683
13684 fi
13685fi
13686
13687if test "$wxUSE_CONFIG" = "yes" ; then
13688 if test "$wxUSE_TEXTFILE" != "yes"; then
13689 echo "configure: warning: wxConfig requires wxTextFile and it won't be compiled without it" 1>&2
13690 else
13691 cat >> confdefs.h <<\EOF
13692#define wxUSE_CONFIG 1
13693EOF
13694
13695 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
13696 fi
13697fi
13698
13699if test "$wxUSE_INTL" = "yes" ; then
13700 if test "$wxUSE_FILE" != "yes"; then
13701 echo "configure: warning: I18n code requires wxFile and it won't be compiled without it" 1>&2
13702 else
13703 cat >> confdefs.h <<\EOF
13704#define wxUSE_INTL 1
13705EOF
13706
13707 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
f6bcfd97 13708 GUIDIST="$GUIDIST INTL_DIST"
10f2d63a
VZ
13709 fi
13710fi
13711
13712if test "$wxUSE_LOG" = "yes"; then
13713 cat >> confdefs.h <<\EOF
13714#define wxUSE_LOG 1
13715EOF
13716
13717fi
13718
13719if test "$wxUSE_LONGLONG" = "yes"; then
13720 cat >> confdefs.h <<\EOF
13721#define wxUSE_LONGLONG 1
13722EOF
13723
13724fi
13725
e8f65ba6
RR
13726if test "$wxUSE_GEOMETRY" = "yes"; then
13727 cat >> confdefs.h <<\EOF
13728#define wxUSE_GEOMETRY 1
13729EOF
13730
13731fi
13732
10f2d63a
VZ
13733if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then
13734 cat >> confdefs.h <<\EOF
13735#define wxUSE_DIALUP_MANAGER 1
13736EOF
13737
70f7a477 13738 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
10f2d63a
VZ
13739fi
13740
13741if test "$wxUSE_STREAMS" = "yes" ; then
13742 cat >> confdefs.h <<\EOF
13743#define wxUSE_STREAMS 1
13744EOF
13745
13746fi
13747
10f2d63a 13748
afc31813 13749if test "$wxUSE_TIMEDATE" = "yes"; then
83307f33
VZ
13750 for ac_func in strptime
13751do
13752echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2c1c448a 13753echo "configure:13754: checking for $ac_func" >&5
83307f33
VZ
13754if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13755 echo $ac_n "(cached) $ac_c" 1>&6
13756else
13757 cat > conftest.$ac_ext <<EOF
2c1c448a 13758#line 13759 "configure"
83307f33
VZ
13759#include "confdefs.h"
13760/* System header to define __stub macros and hopefully few prototypes,
13761 which can conflict with char $ac_func(); below. */
13762#include <assert.h>
13763/* Override any gcc2 internal prototype to avoid an error. */
13764/* We use char because int might match the return type of a gcc2
13765 builtin and then its argument prototype would still apply. */
13766char $ac_func();
13767
13768int main() {
13769
13770/* The GNU C library defines this for functions which it implements
13771 to always fail with ENOSYS. Some functions are actually named
13772 something starting with __ and the normal name is an alias. */
13773#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13774choke me
13775#else
e8482f24 13776$ac_func();
83307f33
VZ
13777#endif
13778
13779; return 0; }
13780EOF
2c1c448a 13781if { (eval echo configure:13782: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
83307f33
VZ
13782 rm -rf conftest*
13783 eval "ac_cv_func_$ac_func=yes"
13784else
13785 echo "configure: failed program was:" >&5
13786 cat conftest.$ac_ext >&5
13787 rm -rf conftest*
13788 eval "ac_cv_func_$ac_func=no"
13789fi
13790rm -f conftest*
13791fi
13792
13793if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13794 echo "$ac_t""yes" 1>&6
13795 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13796 cat >> confdefs.h <<EOF
13797#define $ac_tr_func 1
13798EOF
13799
13800else
13801 echo "$ac_t""no" 1>&6
13802fi
13803done
13804
13805
360d6699 13806 echo $ac_n "checking for timezone variable in <time.h>""... $ac_c" 1>&6
2c1c448a 13807echo "configure:13808: checking for timezone variable in <time.h>" >&5
360d6699
VZ
13808if eval "test \"`echo '$''{'wx_cv_var_timezone'+set}'`\" = set"; then
13809 echo $ac_n "(cached) $ac_c" 1>&6
13810else
13811
13812 cat > conftest.$ac_ext <<EOF
2c1c448a 13813#line 13814 "configure"
360d6699
VZ
13814#include "confdefs.h"
13815
b4085ce6 13816 #include <time.h>
360d6699
VZ
13817
13818int main() {
13819
13820 int tz;
13821 tz = __timezone;
13822
13823; return 0; }
13824EOF
2c1c448a 13825if { (eval echo configure:13826: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
360d6699
VZ
13826 rm -rf conftest*
13827
13828 wx_cv_var_timezone=__timezone
13829
13830else
13831 echo "configure: failed program was:" >&5
13832 cat conftest.$ac_ext >&5
13833 rm -rf conftest*
13834
13835 cat > conftest.$ac_ext <<EOF
2c1c448a 13836#line 13837 "configure"
360d6699
VZ
13837#include "confdefs.h"
13838
b4085ce6 13839 #include <time.h>
360d6699
VZ
13840
13841int main() {
13842
13843 int tz;
13844 tz = _timezone;
13845
13846; return 0; }
13847EOF
2c1c448a 13848if { (eval echo configure:13849: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
360d6699
VZ
13849 rm -rf conftest*
13850
13851 wx_cv_var_timezone=_timezone
13852
5357c8e8
VZ
13853else
13854 echo "configure: failed program was:" >&5
13855 cat conftest.$ac_ext >&5
13856 rm -rf conftest*
13857
13858 cat > conftest.$ac_ext <<EOF
2c1c448a 13859#line 13860 "configure"
5357c8e8
VZ
13860#include "confdefs.h"
13861
b4085ce6 13862 #include <time.h>
5357c8e8
VZ
13863
13864int main() {
13865
13866 int tz;
13867 tz = timezone;
13868
13869; return 0; }
13870EOF
2c1c448a 13871if { (eval echo configure:13872: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5357c8e8
VZ
13872 rm -rf conftest*
13873
13874 wx_cv_var_timezone=timezone
13875
360d6699
VZ
13876else
13877 echo "configure: failed program was:" >&5
13878 cat conftest.$ac_ext >&5
13879 rm -rf conftest*
13880 { echo "configure: error: no timezone variable" 1>&2; exit 1; }
5357c8e8
VZ
13881
13882fi
13883rm -f conftest*
13884
360d6699
VZ
13885
13886fi
13887rm -f conftest*
13888
13889
13890fi
13891rm -f conftest*
13892
13893
13894fi
13895
13896echo "$ac_t""$wx_cv_var_timezone" 1>&6
13897
13898 cat >> confdefs.h <<EOF
13899#define WX_TIMEZONE $wx_cv_var_timezone
13900EOF
13901
13902
3fcdd07b 13903 for ac_func in localtime
afc31813
VZ
13904do
13905echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2c1c448a 13906echo "configure:13907: checking for $ac_func" >&5
afc31813
VZ
13907if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13908 echo $ac_n "(cached) $ac_c" 1>&6
13909else
13910 cat > conftest.$ac_ext <<EOF
2c1c448a 13911#line 13912 "configure"
10f2d63a 13912#include "confdefs.h"
afc31813
VZ
13913/* System header to define __stub macros and hopefully few prototypes,
13914 which can conflict with char $ac_func(); below. */
13915#include <assert.h>
13916/* Override any gcc2 internal prototype to avoid an error. */
13917/* We use char because int might match the return type of a gcc2
13918 builtin and then its argument prototype would still apply. */
13919char $ac_func();
13920
10f2d63a 13921int main() {
afc31813
VZ
13922
13923/* The GNU C library defines this for functions which it implements
13924 to always fail with ENOSYS. Some functions are actually named
13925 something starting with __ and the normal name is an alias. */
13926#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13927choke me
13928#else
e8482f24 13929$ac_func();
afc31813
VZ
13930#endif
13931
10f2d63a
VZ
13932; return 0; }
13933EOF
2c1c448a 13934if { (eval echo configure:13935: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a 13935 rm -rf conftest*
afc31813 13936 eval "ac_cv_func_$ac_func=yes"
10f2d63a
VZ
13937else
13938 echo "configure: failed program was:" >&5
13939 cat conftest.$ac_ext >&5
13940 rm -rf conftest*
afc31813
VZ
13941 eval "ac_cv_func_$ac_func=no"
13942fi
13943rm -f conftest*
13944fi
13945
13946if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13947 echo "$ac_t""yes" 1>&6
13948 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13949 cat >> confdefs.h <<EOF
13950#define $ac_tr_func 1
13951EOF
3fcdd07b 13952
afc31813
VZ
13953else
13954 echo "$ac_t""no" 1>&6
13955fi
13956done
13957
13958
0470b1e6
VZ
13959 if test "$ac_cv_func_localtime" = "yes"; then
13960 echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6
2c1c448a 13961echo "configure:13962: checking for tm_gmtoff in struct tm" >&5
0470b1e6
VZ
13962if eval "test \"`echo '$''{'wx_cv_struct_tm_has_gmtoff'+set}'`\" = set"; then
13963 echo $ac_n "(cached) $ac_c" 1>&6
13964else
13965
13966 cat > conftest.$ac_ext <<EOF
2c1c448a 13967#line 13968 "configure"
0470b1e6
VZ
13968#include "confdefs.h"
13969
b4085ce6 13970 #include <time.h>
0470b1e6
VZ
13971
13972int main() {
13973
13974 struct tm tm;
13975 tm.tm_gmtoff++;
13976
13977; return 0; }
13978EOF
2c1c448a 13979if { (eval echo configure:13980: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
0470b1e6
VZ
13980 rm -rf conftest*
13981
f03a98d8 13982 wx_cv_struct_tm_has_gmtoff=yes
0470b1e6
VZ
13983 cat >> confdefs.h <<\EOF
13984#define WX_GMTOFF_IN_TM 1
13985EOF
13986
13987
13988else
13989 echo "configure: failed program was:" >&5
13990 cat conftest.$ac_ext >&5
13991 rm -rf conftest*
13992 wx_cv_struct_tm_has_gmtoff=no
13993
13994fi
13995rm -f conftest*
13996
13997fi
13998
13999echo "$ac_t""$wx_cv_struct_tm_has_gmtoff" 1>&6
3fcdd07b
VZ
14000 fi
14001
14002 for ac_func in gettimeofday ftime
14003do
14004echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2c1c448a 14005echo "configure:14006: checking for $ac_func" >&5
3fcdd07b
VZ
14006if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14007 echo $ac_n "(cached) $ac_c" 1>&6
14008else
14009 cat > conftest.$ac_ext <<EOF
2c1c448a 14010#line 14011 "configure"
3fcdd07b
VZ
14011#include "confdefs.h"
14012/* System header to define __stub macros and hopefully few prototypes,
14013 which can conflict with char $ac_func(); below. */
14014#include <assert.h>
14015/* Override any gcc2 internal prototype to avoid an error. */
14016/* We use char because int might match the return type of a gcc2
14017 builtin and then its argument prototype would still apply. */
14018char $ac_func();
14019
14020int main() {
14021
14022/* The GNU C library defines this for functions which it implements
14023 to always fail with ENOSYS. Some functions are actually named
14024 something starting with __ and the normal name is an alias. */
14025#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14026choke me
14027#else
e8482f24 14028$ac_func();
3fcdd07b
VZ
14029#endif
14030
14031; return 0; }
14032EOF
2c1c448a 14033if { (eval echo configure:14034: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3fcdd07b
VZ
14034 rm -rf conftest*
14035 eval "ac_cv_func_$ac_func=yes"
14036else
14037 echo "configure: failed program was:" >&5
14038 cat conftest.$ac_ext >&5
14039 rm -rf conftest*
14040 eval "ac_cv_func_$ac_func=no"
14041fi
14042rm -f conftest*
14043fi
14044
14045if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14046 echo "$ac_t""yes" 1>&6
14047 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14048 cat >> confdefs.h <<EOF
14049#define $ac_tr_func 1
14050EOF
14051 break
14052else
14053 echo "$ac_t""no" 1>&6
14054fi
14055done
14056
14057
14058 if test "$ac_cv_func_gettimeofday" = "yes"; then
afc31813 14059 echo $ac_n "checking whether gettimeofday takes two arguments""... $ac_c" 1>&6
2c1c448a 14060echo "configure:14061: checking whether gettimeofday takes two arguments" >&5
afc31813
VZ
14061if eval "test \"`echo '$''{'wx_cv_func_gettimeofday_has_2_args'+set}'`\" = set"; then
14062 echo $ac_n "(cached) $ac_c" 1>&6
14063else
14064
14065
14066 ac_ext=C
14067# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14068ac_cpp='$CXXCPP $CPPFLAGS'
14069ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14070ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14071cross_compiling=$ac_cv_prog_cxx_cross
14072
14073
14074 cat > conftest.$ac_ext <<EOF
2c1c448a 14075#line 14076 "configure"
10f2d63a 14076#include "confdefs.h"
afc31813
VZ
14077
14078 #include <sys/time.h>
14079 #include <unistd.h>
14080
10f2d63a 14081int main() {
afc31813
VZ
14082
14083 struct timeval tv;
14084 struct timezone tz;
14085 gettimeofday(&tv, &tz);
14086
10f2d63a
VZ
14087; return 0; }
14088EOF
2c1c448a 14089if { (eval echo configure:14090: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10f2d63a 14090 rm -rf conftest*
afc31813 14091 wx_cv_func_gettimeofday_has_2_args=yes
10f2d63a
VZ
14092else
14093 echo "configure: failed program was:" >&5
14094 cat conftest.$ac_ext >&5
14095 rm -rf conftest*
14096 cat > conftest.$ac_ext <<EOF
2c1c448a 14097#line 14098 "configure"
10f2d63a 14098#include "confdefs.h"
afc31813
VZ
14099
14100 #include <sys/time.h>
14101 #include <unistd.h>
14102
10f2d63a 14103int main() {
afc31813
VZ
14104
14105 struct timeval tv;
14106 gettimeofday(&tv);
14107
10f2d63a
VZ
14108; return 0; }
14109EOF
2c1c448a 14110if { (eval echo configure:14111: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10f2d63a 14111 rm -rf conftest*
afc31813 14112 wx_cv_func_gettimeofday_has_2_args=no
10f2d63a
VZ
14113else
14114 echo "configure: failed program was:" >&5
14115 cat conftest.$ac_ext >&5
14116 rm -rf conftest*
afc31813
VZ
14117 wx_cv_func_gettimeofday_has_2_args=unknown
14118
10f2d63a
VZ
14119fi
14120rm -f conftest*
afc31813 14121
10f2d63a
VZ
14122fi
14123rm -f conftest*
afc31813 14124 ac_ext=c
10f2d63a
VZ
14125# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14126ac_cpp='$CPP $CPPFLAGS'
14127ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14128ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14129cross_compiling=$ac_cv_prog_cc_cross
14130
afc31813
VZ
14131
14132fi
14133
14134echo "$ac_t""$wx_cv_func_gettimeofday_has_2_args" 1>&6
c63c7106 14135
afc31813
VZ
14136 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
14137 cat >> confdefs.h <<\EOF
14138#define WX_GETTIMEOFDAY_NO_TZ 1
14139EOF
14140
14141 fi
14142 fi
14143
14144 cat >> confdefs.h <<\EOF
14145#define wxUSE_TIMEDATE 1
14146EOF
14147
14148 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
14149fi
14150
14151
b089607b
VZ
14152if test "$TOOLKIT" != "MSW"; then
14153
afc31813 14154if test "$wxUSE_SOCKETS" = "yes"; then
c63c7106 14155 echo $ac_n "checking for socket""... $ac_c" 1>&6
2c1c448a 14156echo "configure:14157: checking for socket" >&5
c63c7106
VZ
14157if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
14158 echo $ac_n "(cached) $ac_c" 1>&6
14159else
14160 cat > conftest.$ac_ext <<EOF
2c1c448a 14161#line 14162 "configure"
c63c7106
VZ
14162#include "confdefs.h"
14163/* System header to define __stub macros and hopefully few prototypes,
14164 which can conflict with char socket(); below. */
14165#include <assert.h>
14166/* Override any gcc2 internal prototype to avoid an error. */
14167/* We use char because int might match the return type of a gcc2
14168 builtin and then its argument prototype would still apply. */
14169char socket();
14170
14171int main() {
14172
14173/* The GNU C library defines this for functions which it implements
14174 to always fail with ENOSYS. Some functions are actually named
14175 something starting with __ and the normal name is an alias. */
14176#if defined (__stub_socket) || defined (__stub___socket)
14177choke me
14178#else
e8482f24 14179socket();
c63c7106
VZ
14180#endif
14181
14182; return 0; }
14183EOF
2c1c448a 14184if { (eval echo configure:14185: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
c63c7106
VZ
14185 rm -rf conftest*
14186 eval "ac_cv_func_socket=yes"
14187else
14188 echo "configure: failed program was:" >&5
14189 cat conftest.$ac_ext >&5
14190 rm -rf conftest*
14191 eval "ac_cv_func_socket=no"
14192fi
14193rm -f conftest*
14194fi
14195
14196if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
14197 echo "$ac_t""yes" 1>&6
14198 :
14199else
14200 echo "$ac_t""no" 1>&6
14201echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
2c1c448a 14202echo "configure:14203: checking for socket in -lsocket" >&5
c63c7106
VZ
14203ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
14204if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14205 echo $ac_n "(cached) $ac_c" 1>&6
14206else
14207 ac_save_LIBS="$LIBS"
14208LIBS="-lsocket $LIBS"
14209cat > conftest.$ac_ext <<EOF
2c1c448a 14210#line 14211 "configure"
c63c7106
VZ
14211#include "confdefs.h"
14212/* Override any gcc2 internal prototype to avoid an error. */
14213/* We use char because int might match the return type of a gcc2
14214 builtin and then its argument prototype would still apply. */
14215char socket();
14216
14217int main() {
14218socket()
14219; return 0; }
14220EOF
2c1c448a 14221if { (eval echo configure:14222: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
c63c7106
VZ
14222 rm -rf conftest*
14223 eval "ac_cv_lib_$ac_lib_var=yes"
14224else
14225 echo "configure: failed program was:" >&5
14226 cat conftest.$ac_ext >&5
14227 rm -rf conftest*
14228 eval "ac_cv_lib_$ac_lib_var=no"
14229fi
14230rm -f conftest*
14231LIBS="$ac_save_LIBS"
14232
14233fi
14234if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14235 echo "$ac_t""yes" 1>&6
14236 INET_LINK="$INET_LINK -lsocket"
c63c7106
VZ
14237else
14238 echo "$ac_t""no" 1>&6
afc31813
VZ
14239
14240 echo "configure: warning: socket library not found - sockets will be disabled" 1>&2
14241 wxUSE_SOCKETS=no
14242
14243
c63c7106
VZ
14244fi
14245
14246
14247fi
14248
10f2d63a
VZ
14249fi
14250
b089607b 14251
afc31813 14252if test "$wxUSE_SOCKETS" = "yes" ; then
51a9faba 14253 echo $ac_n "checking what is the type of the third argument of getsockname""... $ac_c" 1>&6
2c1c448a 14254echo "configure:14255: checking what is the type of the third argument of getsockname" >&5
51a9faba
VZ
14255if eval "test \"`echo '$''{'wx_cv_type_getsockname3'+set}'`\" = set"; then
14256 echo $ac_n "(cached) $ac_c" 1>&6
14257else
14258
14259
14260 ac_ext=C
afc31813
VZ
14261# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14262ac_cpp='$CXXCPP $CPPFLAGS'
14263ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14264ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14265cross_compiling=$ac_cv_prog_cxx_cross
14266
51a9faba
VZ
14267
14268 cat > conftest.$ac_ext <<EOF
2c1c448a 14269#line 14270 "configure"
afc31813 14270#include "confdefs.h"
51a9faba 14271
3ace2e6d 14272 #include <sys/types.h>
51a9faba
VZ
14273 #include <sys/socket.h>
14274
afc31813 14275int main() {
51a9faba
VZ
14276
14277 socklen_t len;
14278 getsockname(0, 0, &len);
14279
afc31813
VZ
14280; return 0; }
14281EOF
2c1c448a 14282if { (eval echo configure:14283: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
afc31813 14283 rm -rf conftest*
51a9faba 14284 wx_cv_type_getsockname3=socklen_t
afc31813
VZ
14285else
14286 echo "configure: failed program was:" >&5
14287 cat conftest.$ac_ext >&5
14288 rm -rf conftest*
14289 cat > conftest.$ac_ext <<EOF
2c1c448a 14290#line 14291 "configure"
afc31813 14291#include "confdefs.h"
51a9faba 14292
3ace2e6d 14293 #include <sys/types.h>
51a9faba
VZ
14294 #include <sys/socket.h>
14295
afc31813 14296int main() {
51a9faba
VZ
14297
14298 size_t len;
14299 getsockname(0, 0, &len);
14300
afc31813
VZ
14301; return 0; }
14302EOF
2c1c448a 14303if { (eval echo configure:14304: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
afc31813 14304 rm -rf conftest*
51a9faba 14305 wx_cv_type_getsockname3=size_t
afc31813
VZ
14306else
14307 echo "configure: failed program was:" >&5
14308 cat conftest.$ac_ext >&5
14309 rm -rf conftest*
14310 cat > conftest.$ac_ext <<EOF
2c1c448a 14311#line 14312 "configure"
afc31813 14312#include "confdefs.h"
51a9faba 14313
3ace2e6d 14314 #include <sys/types.h>
51a9faba
VZ
14315 #include <sys/socket.h>
14316
afc31813 14317int main() {
51a9faba
VZ
14318
14319 int len;
14320 getsockname(0, 0, &len);
14321
afc31813
VZ
14322; return 0; }
14323EOF
2c1c448a 14324if { (eval echo configure:14325: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
afc31813 14325 rm -rf conftest*
51a9faba 14326 wx_cv_type_getsockname3=int
afc31813
VZ
14327else
14328 echo "configure: failed program was:" >&5
14329 cat conftest.$ac_ext >&5
3ace2e6d
SN
14330 rm -rf conftest*
14331 wx_cv_type_getsockname3=unknown
14332
afc31813
VZ
14333fi
14334rm -f conftest*
51a9faba 14335
afc31813
VZ
14336fi
14337rm -f conftest*
51a9faba 14338
afc31813
VZ
14339fi
14340rm -f conftest*
51a9faba
VZ
14341
14342 ac_ext=c
afc31813
VZ
14343# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14344ac_cpp='$CPP $CPPFLAGS'
14345ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14346ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14347cross_compiling=$ac_cv_prog_cc_cross
14348
51a9faba
VZ
14349
14350fi
14351
14352echo "$ac_t""$wx_cv_type_getsockname3" 1>&6
14353
14354 if test "$wx_cv_type_getsockname3" = "unknown"; then
14355 wxUSE_SOCKETS=no
14356 echo "configure: warning: Couldn't find socklen_t synonym for this system" 1>&2
14357 else
14358 cat >> confdefs.h <<EOF
14359#define SOCKLEN_T $wx_cv_type_getsockname3
14360EOF
14361
14362 fi
14363fi
afc31813 14364
c521c494
RL
14365fi
14366
51a9faba 14367if test "$wxUSE_SOCKETS" = "yes" ; then
afc31813
VZ
14368 cat >> confdefs.h <<\EOF
14369#define wxUSE_SOCKETS 1
14370EOF
14371
70f7a477 14372 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
afc31813
VZ
14373 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS protocol"
14374fi
14375
10f2d63a 14376
dc3d889d
VZ
14377if test "$wxUSE_GUI" = "yes"; then
14378
b089607b
VZ
14379if test "$TOOLKIT" != "MSW"; then
14380
ceded8b9 14381if test "$wxUSE_JOYSTICK" = "yes"; then
10f2d63a
VZ
14382 for ac_hdr in linux/joystick.h
14383do
14384ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
14385echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2c1c448a 14386echo "configure:14387: checking for $ac_hdr" >&5
10f2d63a
VZ
14387if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
14388 echo $ac_n "(cached) $ac_c" 1>&6
14389else
14390 cat > conftest.$ac_ext <<EOF
2c1c448a 14391#line 14392 "configure"
10f2d63a
VZ
14392#include "confdefs.h"
14393#include <$ac_hdr>
14394EOF
14395ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2c1c448a 14396{ (eval echo configure:14397: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
14397ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14398if test -z "$ac_err"; then
14399 rm -rf conftest*
14400 eval "ac_cv_header_$ac_safe=yes"
14401else
14402 echo "$ac_err" >&5
14403 echo "configure: failed program was:" >&5
14404 cat conftest.$ac_ext >&5
14405 rm -rf conftest*
14406 eval "ac_cv_header_$ac_safe=no"
14407fi
14408rm -f conftest*
14409fi
14410if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14411 echo "$ac_t""yes" 1>&6
14412 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
14413 cat >> confdefs.h <<EOF
14414#define $ac_tr_hdr 1
14415EOF
14416
14417else
14418 echo "$ac_t""no" 1>&6
14419fi
14420done
14421
b089607b 14422 if test "$ac_cv_header_linux_joystick_h" != "yes"; then
ceded8b9 14423 wxUSE_JOYSTICK=no
dc3d889d 14424 echo "configure: warning: Joystick not supported by this system" 1>&2
b089607b
VZ
14425 fi
14426fi
14427
14428fi
14429
ceded8b9 14430if test "$wxUSE_JOYSTICK" = "yes"; then
10f2d63a
VZ
14431 cat >> confdefs.h <<\EOF
14432#define wxUSE_JOYSTICK 1
14433EOF
14434
14435 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
10f2d63a
VZ
14436fi
14437
dc3d889d
VZ
14438fi
14439
10f2d63a 14440
b089607b
VZ
14441if test "$TOOLKIT" != "MSW"; then
14442
10f2d63a
VZ
14443HAVE_DL_FUNCS=0
14444HAVE_SHL_FUNCS=0
14445if test "$wxUSE_DYNLIB_CLASS" = "yes"; then
b4085ce6
GD
14446 if test "$USE_MAC" = 1; then
14447 HAVE_DL_FUNCS=1
14448 else
14449 for ac_func in dlopen
10f2d63a
VZ
14450do
14451echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2c1c448a 14452echo "configure:14453: checking for $ac_func" >&5
10f2d63a
VZ
14453if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14454 echo $ac_n "(cached) $ac_c" 1>&6
14455else
14456 cat > conftest.$ac_ext <<EOF
2c1c448a 14457#line 14458 "configure"
10f2d63a
VZ
14458#include "confdefs.h"
14459/* System header to define __stub macros and hopefully few prototypes,
14460 which can conflict with char $ac_func(); below. */
14461#include <assert.h>
14462/* Override any gcc2 internal prototype to avoid an error. */
14463/* We use char because int might match the return type of a gcc2
14464 builtin and then its argument prototype would still apply. */
14465char $ac_func();
14466
14467int main() {
14468
14469/* The GNU C library defines this for functions which it implements
14470 to always fail with ENOSYS. Some functions are actually named
14471 something starting with __ and the normal name is an alias. */
14472#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14473choke me
14474#else
e8482f24 14475$ac_func();
10f2d63a
VZ
14476#endif
14477
14478; return 0; }
14479EOF
2c1c448a 14480if { (eval echo configure:14481: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
14481 rm -rf conftest*
14482 eval "ac_cv_func_$ac_func=yes"
14483else
14484 echo "configure: failed program was:" >&5
14485 cat conftest.$ac_ext >&5
14486 rm -rf conftest*
14487 eval "ac_cv_func_$ac_func=no"
14488fi
14489rm -f conftest*
14490fi
14491
14492if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14493 echo "$ac_t""yes" 1>&6
14494 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14495 cat >> confdefs.h <<EOF
14496#define $ac_tr_func 1
14497EOF
14498
14499 cat >> confdefs.h <<\EOF
14500#define HAVE_DLOPEN 1
14501EOF
14502
14503 HAVE_DL_FUNCS=1
14504
14505else
14506 echo "$ac_t""no" 1>&6
14507echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
2c1c448a 14508echo "configure:14509: checking for dlopen in -ldl" >&5
10f2d63a
VZ
14509ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
14510if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14511 echo $ac_n "(cached) $ac_c" 1>&6
14512else
14513 ac_save_LIBS="$LIBS"
14514LIBS="-ldl $LIBS"
14515cat > conftest.$ac_ext <<EOF
2c1c448a 14516#line 14517 "configure"
10f2d63a
VZ
14517#include "confdefs.h"
14518/* Override any gcc2 internal prototype to avoid an error. */
14519/* We use char because int might match the return type of a gcc2
14520 builtin and then its argument prototype would still apply. */
14521char dlopen();
14522
14523int main() {
14524dlopen()
14525; return 0; }
14526EOF
2c1c448a 14527if { (eval echo configure:14528: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
14528 rm -rf conftest*
14529 eval "ac_cv_lib_$ac_lib_var=yes"
14530else
14531 echo "configure: failed program was:" >&5
14532 cat conftest.$ac_ext >&5
14533 rm -rf conftest*
14534 eval "ac_cv_lib_$ac_lib_var=no"
14535fi
14536rm -f conftest*
14537LIBS="$ac_save_LIBS"
14538
14539fi
14540if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14541 echo "$ac_t""yes" 1>&6
14542
14543 cat >> confdefs.h <<\EOF
14544#define HAVE_DLOPEN 1
14545EOF
14546
14547 HAVE_DL_FUNCS=1
14548 LIBS="$LIBS -ldl"
14549
14550else
14551 echo "$ac_t""no" 1>&6
14552
14553 for ac_func in shl_load
14554do
14555echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2c1c448a 14556echo "configure:14557: checking for $ac_func" >&5
10f2d63a
VZ
14557if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14558 echo $ac_n "(cached) $ac_c" 1>&6
14559else
14560 cat > conftest.$ac_ext <<EOF
2c1c448a 14561#line 14562 "configure"
10f2d63a
VZ
14562#include "confdefs.h"
14563/* System header to define __stub macros and hopefully few prototypes,
14564 which can conflict with char $ac_func(); below. */
14565#include <assert.h>
14566/* Override any gcc2 internal prototype to avoid an error. */
14567/* We use char because int might match the return type of a gcc2
14568 builtin and then its argument prototype would still apply. */
14569char $ac_func();
14570
14571int main() {
14572
14573/* The GNU C library defines this for functions which it implements
14574 to always fail with ENOSYS. Some functions are actually named
14575 something starting with __ and the normal name is an alias. */
14576#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14577choke me
14578#else
e8482f24 14579$ac_func();
10f2d63a
VZ
14580#endif
14581
14582; return 0; }
14583EOF
2c1c448a 14584if { (eval echo configure:14585: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
14585 rm -rf conftest*
14586 eval "ac_cv_func_$ac_func=yes"
14587else
14588 echo "configure: failed program was:" >&5
14589 cat conftest.$ac_ext >&5
14590 rm -rf conftest*
14591 eval "ac_cv_func_$ac_func=no"
14592fi
14593rm -f conftest*
14594fi
14595
14596if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14597 echo "$ac_t""yes" 1>&6
14598 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14599 cat >> confdefs.h <<EOF
14600#define $ac_tr_func 1
14601EOF
14602
14603 cat >> confdefs.h <<\EOF
14604#define HAVE_SHL_LOAD 1
14605EOF
14606
14607 HAVE_SHL_FUNCS=1
14608
14609else
14610 echo "$ac_t""no" 1>&6
f6bcfd97 14611echo $ac_n "checking for dld in -lshl_load""... $ac_c" 1>&6
2c1c448a 14612echo "configure:14613: checking for dld in -lshl_load" >&5
f6bcfd97
BP
14613ac_lib_var=`echo shl_load'_'dld | sed 'y%./+-%__p_%'`
14614if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14615 echo $ac_n "(cached) $ac_c" 1>&6
14616else
14617 ac_save_LIBS="$LIBS"
14618LIBS="-lshl_load $LIBS"
14619cat > conftest.$ac_ext <<EOF
2c1c448a 14620#line 14621 "configure"
f6bcfd97
BP
14621#include "confdefs.h"
14622/* Override any gcc2 internal prototype to avoid an error. */
14623/* We use char because int might match the return type of a gcc2
14624 builtin and then its argument prototype would still apply. */
14625char dld();
14626
14627int main() {
14628dld()
14629; return 0; }
14630EOF
2c1c448a 14631if { (eval echo configure:14632: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
f6bcfd97
BP
14632 rm -rf conftest*
14633 eval "ac_cv_lib_$ac_lib_var=yes"
14634else
14635 echo "configure: failed program was:" >&5
14636 cat conftest.$ac_ext >&5
14637 rm -rf conftest*
14638 eval "ac_cv_lib_$ac_lib_var=no"
14639fi
14640rm -f conftest*
14641LIBS="$ac_save_LIBS"
14642
14643fi
14644if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14645 echo "$ac_t""yes" 1>&6
14646
14647 HAVE_SHL_FUNCS=1
14648 LIBS="$LIBS -ldld"
14649
14650else
14651 echo "$ac_t""no" 1>&6
14652fi
14653
14654
10f2d63a
VZ
14655fi
14656done
14657
14658
14659fi
14660
14661
14662fi
14663done
14664
14665
f6bcfd97
BP
14666 if test "$HAVE_DL_FUNCS" = 1; then
14667 for ac_func in dlerror
14668do
14669echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2c1c448a 14670echo "configure:14671: checking for $ac_func" >&5
f6bcfd97
BP
14671if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14672 echo $ac_n "(cached) $ac_c" 1>&6
14673else
14674 cat > conftest.$ac_ext <<EOF
2c1c448a 14675#line 14676 "configure"
f6bcfd97
BP
14676#include "confdefs.h"
14677/* System header to define __stub macros and hopefully few prototypes,
14678 which can conflict with char $ac_func(); below. */
14679#include <assert.h>
14680/* Override any gcc2 internal prototype to avoid an error. */
14681/* We use char because int might match the return type of a gcc2
14682 builtin and then its argument prototype would still apply. */
14683char $ac_func();
14684
14685int main() {
14686
14687/* The GNU C library defines this for functions which it implements
14688 to always fail with ENOSYS. Some functions are actually named
14689 something starting with __ and the normal name is an alias. */
14690#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14691choke me
14692#else
14693$ac_func();
14694#endif
14695
14696; return 0; }
14697EOF
2c1c448a 14698if { (eval echo configure:14699: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
f6bcfd97
BP
14699 rm -rf conftest*
14700 eval "ac_cv_func_$ac_func=yes"
14701else
14702 echo "configure: failed program was:" >&5
14703 cat conftest.$ac_ext >&5
14704 rm -rf conftest*
14705 eval "ac_cv_func_$ac_func=no"
14706fi
14707rm -f conftest*
14708fi
14709
14710if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14711 echo "$ac_t""yes" 1>&6
14712 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14713 cat >> confdefs.h <<EOF
14714#define $ac_tr_func 1
14715EOF
14716 cat >> confdefs.h <<\EOF
14717#define HAVE_DLERROR 1
14718EOF
14719
14720else
14721 echo "$ac_t""no" 1>&6
14722echo $ac_n "checking for dlerror in -ldl""... $ac_c" 1>&6
2c1c448a 14723echo "configure:14724: checking for dlerror in -ldl" >&5
f6bcfd97
BP
14724ac_lib_var=`echo dl'_'dlerror | sed 'y%./+-%__p_%'`
14725if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14726 echo $ac_n "(cached) $ac_c" 1>&6
14727else
14728 ac_save_LIBS="$LIBS"
14729LIBS="-ldl $LIBS"
14730cat > conftest.$ac_ext <<EOF
2c1c448a 14731#line 14732 "configure"
f6bcfd97
BP
14732#include "confdefs.h"
14733/* Override any gcc2 internal prototype to avoid an error. */
14734/* We use char because int might match the return type of a gcc2
14735 builtin and then its argument prototype would still apply. */
14736char dlerror();
14737
14738int main() {
14739dlerror()
14740; return 0; }
14741EOF
2c1c448a 14742if { (eval echo configure:14743: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
f6bcfd97
BP
14743 rm -rf conftest*
14744 eval "ac_cv_lib_$ac_lib_var=yes"
14745else
14746 echo "configure: failed program was:" >&5
14747 cat conftest.$ac_ext >&5
14748 rm -rf conftest*
14749 eval "ac_cv_lib_$ac_lib_var=no"
14750fi
14751rm -f conftest*
14752LIBS="$ac_save_LIBS"
14753
14754fi
14755if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14756 echo "$ac_t""yes" 1>&6
14757 cat >> confdefs.h <<\EOF
14758#define HAVE_DLERROR 1
14759EOF
14760
14761else
14762 echo "$ac_t""no" 1>&6
14763fi
14764
14765fi
14766done
14767
14768 fi
b4085ce6 14769 fi
f6bcfd97 14770
10f2d63a
VZ
14771 if test "$HAVE_DL_FUNCS" = 0; then
14772 if test "$HAVE_SHL_FUNCS" = 0; then
14773 if test "$USE_UNIX" = 1; then
b12915c1 14774 echo "configure: warning: Missing dynamic loading support, several features will be disabled" 1>&2
10f2d63a
VZ
14775 wxUSE_DYNLIB_CLASS=no
14776 else
b12915c1 14777 echo "configure: warning: Assuming wxLibrary class works on this platform" 1>&2
10f2d63a
VZ
14778 fi
14779 fi
14780 fi
14781fi
14782
b089607b
VZ
14783fi
14784
10f2d63a 14785if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
b12915c1 14786 cat >> confdefs.h <<\EOF
10f2d63a
VZ
14787#define wxUSE_DYNLIB_CLASS 1
14788EOF
14789
b12915c1
VZ
14790else
14791 wxUSE_ODBC=no
14792 wxUSE_SERIAL=no
10f2d63a
VZ
14793fi
14794
14795
14796if test "$wxUSE_UNICODE" = "yes" ; then
14797 cat >> confdefs.h <<\EOF
14798#define wxUSE_UNICODE 1
14799EOF
14800
14801fi
14802
14803if test "$wxUSE_WCSRTOMBS" = "yes" ; then
14804 cat >> confdefs.h <<\EOF
14805#define wxUSE_WCSRTOMBS 1
14806EOF
14807
14808fi
14809
14810if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
14811 cat >> confdefs.h <<\EOF
14812#define wxUSE_EXPERIMENTAL_PRINTF 1
14813EOF
14814
14815fi
14816
14817
b12915c1
VZ
14818if test "$wxUSE_SERIAL" = "yes" ; then
14819 cat >> confdefs.h <<\EOF
14820#define wxUSE_SERIAL 1
14821EOF
14822
14823fi
14824
14825
10f2d63a
VZ
14826IODBC_C_SRC=""
14827if test "$wxUSE_ODBC" = "yes" ; then
14828 cat >> confdefs.h <<\EOF
14829#define wxUSE_ODBC 1
14830EOF
14831
14832 WXODBCFLAG="-D_IODBC_"
14833 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
10f2d63a
VZ
14834fi
14835
14836
14837if test "$wxUSE_POSTSCRIPT" = "yes" ; then
14838 cat >> confdefs.h <<\EOF
14839#define wxUSE_POSTSCRIPT 1
14840EOF
14841
14842fi
14843
14844cat >> confdefs.h <<\EOF
14845#define wxUSE_AFM_FOR_POSTSCRIPT 1
14846EOF
14847
14848
14849cat >> confdefs.h <<\EOF
14850#define wxUSE_NORMALIZED_PS_FONTS 1
14851EOF
14852
14853
14854
14855if test "$wxUSE_CONSTRAINTS" = "yes"; then
14856 cat >> confdefs.h <<\EOF
14857#define wxUSE_CONSTRAINTS 1
14858EOF
14859
14860 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
14861fi
14862
14863if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
14864 cat >> confdefs.h <<\EOF
14865#define wxUSE_MDI_ARCHITECTURE 1
14866EOF
14867
14868 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
14869fi
14870
14871if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
14872 cat >> confdefs.h <<\EOF
14873#define wxUSE_DOC_VIEW_ARCHITECTURE 1
14874EOF
14875
14876 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
14877 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
14878 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
14879 fi
14880fi
14881
14882if test "$wxUSE_HELP" = "yes"; then
14883 cat >> confdefs.h <<\EOF
14884#define wxUSE_HELP 1
14885EOF
14886
14887 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
14888fi
14889
14890if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
14891 if test "$wxUSE_CONSTRAINTS" != "yes"; then
14892 echo "configure: warning: Printing support cannot be used without constraints so it won't be compiled without it" 1>&2
14893 else
14894 cat >> confdefs.h <<\EOF
14895#define wxUSE_PRINTING_ARCHITECTURE 1
14896EOF
14897
14898 fi
14899 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
14900fi
14901
14902if test "$wxUSE_PROLOGIO" = "yes" ; then
14903 cat >> confdefs.h <<\EOF
14904#define wxUSE_PROLOGIO 1
14905EOF
14906
14907fi
14908
14909if test "$wxUSE_RESOURCES" = "yes" ; then
14910 if test "$wxUSE_PROLOGIO" = "yes" ; then
14911 cat >> confdefs.h <<\EOF
14912#define wxUSE_RESOURCES 1
14913EOF
14914
14915 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS resource"
14916 else
14917 echo "configure: warning: wxWindows ressource system requires PrologIO and can't be compiled without it." 1>&2
14918 fi
14919fi
14920
14921if test "$wxUSE_X_RESOURCES" = "yes"; then
14922 cat >> confdefs.h <<\EOF
14923#define wxUSE_X_RESOURCES 1
14924EOF
14925
14926fi
14927
14928
14929if test "$wxUSE_IPC" = "yes"; then
eb4efbdc
VZ
14930 if test "$wxUSE_SOCKETS" != "yes"; then
14931 echo "configure: warning: wxWindows IPC classes require sockets" 1>&2
14932 fi
14933
10f2d63a
VZ
14934 cat >> confdefs.h <<\EOF
14935#define wxUSE_IPC 1
14936EOF
14937
14938fi
14939
14940if test "$wxUSE_CLIPBOARD" = "yes"; then
14941 cat >> confdefs.h <<\EOF
14942#define wxUSE_CLIPBOARD 1
14943EOF
14944
14945fi
14946
14947if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
14948 if test "$wxUSE_GTK" = 1; then
14949 if test "$WXGTK12" != 1; then
14950 echo "configure: warning: Drag and drop is only supported under GTK+ 1.2" 1>&2
14951 wxUSE_DRAG_AND_DROP=no
14952 fi
14953 fi
14954
14955 if test "$wxUSE_MOTIF" = 1; then
14956 echo "configure: warning: Drag and drop is not yet supported under Motif" 1>&2
14957 wxUSE_DRAG_AND_DROP=no
14958 fi
14959
2c6025bc
GD
14960 if test "$wxUSE_MAC" = 1; then
14961 echo "configure: warning: Drag and drop is not yet supported under Mac OS X" 1>&2
14962 wxUSE_DRAG_AND_DROP=no
14963 fi
14964
10f2d63a 14965 if test "$USE_WIN32" = 1; then
c521c494
RL
14966
14967 for ac_hdr in ole2.h
10f2d63a
VZ
14968do
14969ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
14970echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2c1c448a 14971echo "configure:14972: checking for $ac_hdr" >&5
10f2d63a
VZ
14972if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
14973 echo $ac_n "(cached) $ac_c" 1>&6
14974else
14975 cat > conftest.$ac_ext <<EOF
2c1c448a 14976#line 14977 "configure"
10f2d63a
VZ
14977#include "confdefs.h"
14978#include <$ac_hdr>
14979EOF
14980ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2c1c448a 14981{ (eval echo configure:14982: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
14982ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14983if test -z "$ac_err"; then
14984 rm -rf conftest*
14985 eval "ac_cv_header_$ac_safe=yes"
14986else
14987 echo "$ac_err" >&5
14988 echo "configure: failed program was:" >&5
14989 cat conftest.$ac_ext >&5
14990 rm -rf conftest*
14991 eval "ac_cv_header_$ac_safe=no"
14992fi
14993rm -f conftest*
14994fi
14995if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14996 echo "$ac_t""yes" 1>&6
14997 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
14998 cat >> confdefs.h <<EOF
14999#define $ac_tr_hdr 1
15000EOF
15001
15002else
15003 echo "$ac_t""no" 1>&6
15004fi
15005done
15006
c521c494
RL
15007
15008 if test "$ac_cv_header_ole2_h" = "yes" ; then
15009 if test "$GCC" = yes ; then
b64f0a5f
RL
15010 ALL_OBJECTS="$ALL_OBJECTS \$(OLEOBJS)"
15011 ALL_DEPFILES="$ALL_DEPFILES \$(OLEDEPS)"
c521c494 15012 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks"
b64f0a5f
RL
15013 LIBS="$LIBS -lole32 -luuid"
15014
15015 if test "$wxUSE_METAFILE" = "yes"; then
15016 cat >> confdefs.h <<\EOF
15017#define wxUSE_METAFILE 1
15018EOF
15019
15020 cat >> confdefs.h <<\EOF
15021#define wxUSE_ENH_METAFILE 1
15022EOF
15023
15024 fi
c521c494
RL
15025 fi
15026 else
10f2d63a
VZ
15027 echo "configure: warning: Drag and drop disabled because OLE headers not found" 1>&2
15028 wxUSE_DRAG_AND_DROP=no
15029 fi
15030 fi
15031
15032 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
15033 cat >> confdefs.h <<\EOF
15034#define wxUSE_DRAG_AND_DROP 1
15035EOF
15036
15037 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
15038 fi
15039
15040fi
15041
15042if test "$wxUSE_SPLINES" = "yes" ; then
15043 cat >> confdefs.h <<\EOF
15044#define wxUSE_SPLINES 1
15045EOF
15046
15047fi
15048
15049
15050if test "$wxUSE_ACCEL" = "yes"; then
15051 cat >> confdefs.h <<\EOF
15052#define wxUSE_ACCEL 1
15053EOF
15054
15055fi
15056
15057if test "$wxUSE_CARET" = "yes"; then
15058 cat >> confdefs.h <<\EOF
15059#define wxUSE_CARET 1
15060EOF
15061
15062 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
15063fi
15064
15065if test "$wxUSE_COMBOBOX" = "yes"; then
15066 cat >> confdefs.h <<\EOF
15067#define wxUSE_COMBOBOX 1
15068EOF
15069
15070fi
15071
15072if test "$wxUSE_CHOICE" = "yes"; then
15073 cat >> confdefs.h <<\EOF
15074#define wxUSE_CHOICE 1
15075EOF
15076
15077fi
15078
15079if test "$wxUSE_BMPBUTTON" = "yes"; then
15080 cat >> confdefs.h <<\EOF
15081#define wxUSE_BMPBUTTON 1
15082EOF
15083
15084fi
15085
15086if test "$wxUSE_CHECKBOX" = "yes"; then
15087 cat >> confdefs.h <<\EOF
15088#define wxUSE_CHECKBOX 1
15089EOF
15090
15091fi
15092
15093if test "$wxUSE_CHECKLST" = "yes"; then
15094 cat >> confdefs.h <<\EOF
15095#define wxUSE_CHECKLISTBOX 1
15096EOF
15097
15098 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
15099fi
15100
15101if test "$wxUSE_GAUGE" = "yes"; then
15102 cat >> confdefs.h <<\EOF
15103#define wxUSE_GAUGE 1
15104EOF
15105
15106fi
15107
d6a55c4b
VZ
15108if test "$wxUSE_NEW_GRID" = "yes"; then
15109 wxUSE_GRID="yes"
10f2d63a 15110 cat >> confdefs.h <<\EOF
d6a55c4b 15111#define wxUSE_NEW_GRID 1
10f2d63a
VZ
15112EOF
15113
d6a55c4b 15114 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS newgrid"
10f2d63a
VZ
15115fi
15116
d6a55c4b 15117if test "$wxUSE_GRID" = "yes"; then
10f2d63a 15118 cat >> confdefs.h <<\EOF
d6a55c4b 15119#define wxUSE_GRID 1
10f2d63a
VZ
15120EOF
15121
d6a55c4b 15122 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
10f2d63a
VZ
15123fi
15124
15125if test "$wxUSE_IMAGLIST" = "yes"; then
15126 cat >> confdefs.h <<\EOF
15127#define wxUSE_IMAGLIST 1
15128EOF
15129
15130fi
15131
15132if test "$wxUSE_LISTBOX" = "yes"; then
15133 cat >> confdefs.h <<\EOF
15134#define wxUSE_LISTBOX 1
15135EOF
15136
15137fi
15138
15139if test "$wxUSE_LISTCTRL" = "yes"; then
15140 if test "$wxUSE_IMAGLIST" = "yes"; then
15141 cat >> confdefs.h <<\EOF
15142#define wxUSE_LISTCTRL 1
15143EOF
15144
15145 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
15146 else
15147 echo "configure: warning: wxListCtrl requires wxImageList and won't be compiled without it" 1>&2
15148 fi
15149fi
15150
15151if test "$wxUSE_NOTEBOOK" = "yes"; then
15152 cat >> confdefs.h <<\EOF
15153#define wxUSE_NOTEBOOK 1
15154EOF
15155
15156 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
15157fi
15158
15159if test "$wxUSE_RADIOBOX" = "yes"; then
15160 cat >> confdefs.h <<\EOF
15161#define wxUSE_RADIOBOX 1
15162EOF
15163
15164fi
15165
15166if test "$wxUSE_RADIOBTN" = "yes"; then
15167 cat >> confdefs.h <<\EOF
15168#define wxUSE_RADIOBTN 1
15169EOF
15170
15171fi
15172
15173if test "$wxUSE_SASH" = "yes"; then
15174 cat >> confdefs.h <<\EOF
15175#define wxUSE_SASH 1
15176EOF
15177
15178 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
15179fi
15180
15181if test "$wxUSE_SCROLLBAR" = "yes"; then
15182 cat >> confdefs.h <<\EOF
15183#define wxUSE_SCROLLBAR 1
15184EOF
15185
741a9306 15186 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
10f2d63a
VZ
15187fi
15188
15189if test "$wxUSE_SLIDER" = "yes"; then
15190 cat >> confdefs.h <<\EOF
15191#define wxUSE_SLIDER 1
15192EOF
15193
15194fi
15195
15196if test "$wxUSE_SPINBTN" = "yes"; then
15197 cat >> confdefs.h <<\EOF
15198#define wxUSE_SPINBTN 1
15199EOF
15200
15201fi
15202
56cfaa52
RR
15203if test "$wxUSE_SPINCTRL" = "yes"; then
15204 cat >> confdefs.h <<\EOF
15205#define wxUSE_SPINCTRL 1
15206EOF
15207
15208fi
15209
10f2d63a
VZ
15210if test "$wxUSE_SPLITTER" = "yes"; then
15211 cat >> confdefs.h <<\EOF
15212#define wxUSE_SPLITTER 1
15213EOF
15214
15215 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
15216fi
15217
15218if test "$wxUSE_STATBMP" = "yes"; then
15219 cat >> confdefs.h <<\EOF
15220#define wxUSE_STATBMP 1
15221EOF
15222
15223fi
15224
15225if test "$wxUSE_STATBOX" = "yes"; then
15226 cat >> confdefs.h <<\EOF
15227#define wxUSE_STATBOX 1
15228EOF
15229
15230fi
15231
15232if test "$wxUSE_STATLINE" = "yes"; then
15233 if test "$wxUSE_WINE" = 1 ; then
15234 echo "configure: warning: wxStaticLine is not supported under WINE" 1>&2
15235 else
15236 cat >> confdefs.h <<\EOF
15237#define wxUSE_STATLINE 1
15238EOF
15239
15240 fi
15241fi
15242
15243if test "$wxUSE_STATUSBAR" = "yes"; then
15244 cat >> confdefs.h <<\EOF
15245#define wxUSE_STATUSBAR 1
15246EOF
15247
2286341c
VZ
15248
15249 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
10f2d63a
VZ
15250fi
15251
15252if test "$wxUSE_TABDIALOG" = "yes"; then
15253 cat >> confdefs.h <<\EOF
15254#define wxUSE_TAB_DIALOG 1
15255EOF
15256
15257 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab"
15258fi
15259
1db8dc4a
VZ
15260if test "$wxUSE_TOGGLEBTN" = "yes"; then
15261 cat >> confdefs.h <<\EOF
15262#define wxUSE_TOGGLEBTN 1
15263EOF
15264
15265fi
15266
360d6699
VZ
15267if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
15268 cat >> confdefs.h <<\EOF
15269#define wxUSE_TOOLBAR_SIMPLE 1
15270EOF
15271
15272 wxUSE_TOOLBAR="yes"
15273fi
15274
10f2d63a
VZ
15275if test "$wxUSE_TOOLBAR" = "yes"; then
15276 cat >> confdefs.h <<\EOF
15277#define wxUSE_TOOLBAR 1
15278EOF
15279
360d6699
VZ
15280
15281 if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
15282 wxUSE_TOOLBAR_NATIVE="yes"
15283 fi
15284
10f2d63a
VZ
15285 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
15286fi
15287
360d6699
VZ
15288if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
15289 cat >> confdefs.h <<\EOF
15290#define wxUSE_TOOLBAR_NATIVE 1
15291EOF
15292
15293fi
15294
10f2d63a
VZ
15295if test "$wxUSE_TOOLTIPS" = "yes"; then
15296 if test "$wxUSE_MOTIF" = 1; then
15297 echo "configure: warning: wxTooltip not supported yet under Motif" 1>&2
15298 else
15299 if test "$wxUSE_WINE" = 1; then
15300 echo "configure: warning: wxTooltip not supported under WINE" 1>&2
15301 else
15302 cat >> confdefs.h <<\EOF
15303#define wxUSE_TOOLTIPS 1
15304EOF
15305
15306 fi
15307 fi
15308fi
15309
15310if test "$wxUSE_TREECTRL" = "yes"; then
15311 if test "$wxUSE_IMAGLIST" = "yes"; then
15312 cat >> confdefs.h <<\EOF
15313#define wxUSE_TREECTRL 1
15314EOF
15315
15316 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
15317 else
15318 echo "configure: warning: wxTreeCtrl requires wxImageList and won't be compiled without it" 1>&2
15319 fi
15320fi
15321
15322
15323
10f2d63a
VZ
15324if test "$wxUSE_DIRDLG" = "yes"; then
15325 if test "$wxUSE_CONSTRAINTS" != "yes"; then
15326 echo "configure: warning: wxDirDialog requires constraints so it won't be compiled without them" 1>&2
15327 else
15328 if test "$wxUSE_TREECTRL" != "yes"; then
15329 echo "configure: warning: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" 1>&2
15330 else
15331 cat >> confdefs.h <<\EOF
15332#define wxUSE_DIRDLG 1
15333EOF
15334
15335 fi
15336 fi
15337fi
15338
15339if test "$wxUSE_TEXTDLG" = "yes"; then
15340 cat >> confdefs.h <<\EOF
15341#define wxUSE_TEXTDLG 1
15342EOF
15343
15344fi
15345
15346if test "$wxUSE_STARTUP_TIPS" = "yes"; then
15347 if test "$wxUSE_CONSTRAINTS" != "yes"; then
15348 echo "configure: warning: Startup tips requires constraints and won't be compiled without them" 1>&2
15349 else
15350 cat >> confdefs.h <<\EOF
15351#define wxUSE_STARTUP_TIPS 1
15352EOF
15353
15354 fi
15355fi
15356
15357if test "$wxUSE_PROGRESSDLG" = "yes"; then
15358 if test "$wxUSE_CONSTRAINTS" != "yes"; then
15359 echo "configure: warning: wxProgressDialog requires constraints so it won't be compiled without them" 1>&2
15360 else
15361 cat >> confdefs.h <<\EOF
15362#define wxUSE_PROGRESSDLG 1
15363EOF
15364
15365 fi
15366fi
15367
15368if test "$wxUSE_MINIFRAME" = "yes"; then
15369 cat >> confdefs.h <<\EOF
15370#define wxUSE_MINIFRAME 1
15371EOF
15372
15373 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
15374fi
15375
15376if test "$wxUSE_HTML" = "yes"; then
15377 cat >> confdefs.h <<\EOF
15378#define wxUSE_HTML 1
15379EOF
15380
15381 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html"
15382 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS html"
15383fi
15384
15385if test "$wxUSE_VALIDATORS" = "yes"; then
15386 cat >> confdefs.h <<\EOF
15387#define wxUSE_VALIDATORS 1
15388EOF
15389
15390 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
15391fi
15392
0046ff7c
VS
15393if test "$wxUSE_IMAGE" = "yes" ; then
15394 cat >> confdefs.h <<\EOF
15395#define wxUSE_IMAGE 1
15396EOF
15397
15398fi
15399
10f2d63a
VZ
15400if test "$wxUSE_GIF" = "yes" ; then
15401 cat >> confdefs.h <<\EOF
15402#define wxUSE_GIF 1
15403EOF
15404
15405fi
15406
15407if test "$wxUSE_PCX" = "yes" ; then
15408 cat >> confdefs.h <<\EOF
15409#define wxUSE_PCX 1
15410EOF
15411
15412fi
15413
15414if test "$wxUSE_PNM" = "yes" ; then
15415 cat >> confdefs.h <<\EOF
15416#define wxUSE_PNM 1
15417EOF
15418
15419fi
15420
0046ff7c
VS
15421if test "$wxUSE_XPM" = "yes" ; then
15422 cat >> confdefs.h <<\EOF
15423#define wxUSE_XPM 1
15424EOF
15425
15426fi
15427
10f2d63a 15428
32832908
VZ
15429if test "$cross_compiling" = "yes"; then
15430 OSINFO="\"$host\""
15431else
15432 OSINFO=`uname -s -r -m`
15433 OSINFO="\"$OSINFO\""
15434fi
15435
aaa37c0d
VZ
15436cat >> confdefs.h <<EOF
15437#define WXWIN_OS_DESCRIPTION $OSINFO
15438EOF
15439
15440
15441
f6bcfd97
BP
15442GUILIBS="$GUI_TK_LIBRARY $TOOLKIT_LINK"
15443OPENGL_LIBS="$OPENGL_LINK"
10f2d63a 15444
ea5999b9 15445EXTRA_LIBS="$LIBS $POSIX4_LINK $INET_LINK $WCHAR_LINK $THREADS_LINK $DMALLOC_LINK $DL_LINK $ZLIB_LINK -lm"
b4085ce6 15446if test "$USE_MAC" = 1 ; then
ea5999b9 15447 EXTRA_LIBS="$EXTRA_LIBS -framework Carbon -framework System"
b4085ce6 15448fi
10f2d63a 15449if test "$wxUSE_GUI" = "yes"; then
3fed1840 15450 EXTRA_LIBS="$GUILIBS $PNG_LINK $JPEG_LINK $TIFF_LINK $FREETYPE_LINK $EXTRA_LIBS"
10f2d63a
VZ
15451fi
15452
15453LD_LIBS="\${top_builddir}/lib/${WX_LIBRARY_NAME_STATIC} $EXTRA_LIBS"
15454
3fed1840 15455INCLUDES="-I. -I\${top_builddir}/include -I\${top_srcdir}/include $ZLIB_INCLUDE $PNG_INCLUDE $JPEG_INCLUDE $TIFF_INCLUDE $FREETYPE_INCLUDE $TOOLKIT_INCLUDE"
10f2d63a 15456
f6bcfd97
BP
15457if test "$wxUSE_GTK" = 1; then
15458 WXCONFIG_INCLUDE=""
15459else
15460 WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE"
15461fi
15462
10f2d63a
VZ
15463if test "$GXX" = yes ; then
15464 CXXWARNINGS="-Wall"
d6a55c4b 15465 fi
10f2d63a
VZ
15466EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE $INCLUDES"
15467
f6bcfd97 15468CFLAGS=`echo $CFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \\+/ /g'`
10f2d63a
VZ
15469CXXFLAGS=`echo $CXXFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \+/ /g'`
15470
e694c22c
VZ
15471LDFLAGS="$LDFLAGS $PROFILE"
15472
10f2d63a
VZ
15473if test "$wxUSE_GUI" = "yes"; then
15474
6164f93c
VZ
15475 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS controls dialogs dragimag \
15476 drawing dynamic event font fractal image menu \
15477 minimal richedit"
b12915c1 15478
88d3a15c 15479 CPPFLAGS="$CPPFLAGS \$(EXTRADEFS) \$(APPEXTRADEFS)"
10f2d63a
VZ
15480else
15481 SAMPLES_SUBDIRS=""
15482fi
15483
ec14dd32
VZ
15484SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
15485
15486
15487
10f2d63a
VZ
15488
15489
15490
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
1d62a8b4 15540
bdad4e7e
RR
15541
15542
15543
15544
15545
15546
15547
32832908
VZ
15548
15549
15550
15551
15552
15553
15554
15555
15556
15557
15558
2224580a 15559
dad6c0ea 15560
f6bcfd97
BP
15561
15562
15563
15564
dad6c0ea 15565
caa2c79b 15566
3711412e 15567
0f3f1cbc 15568
10f2d63a
VZ
15569
15570
15571echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
2c1c448a 15572echo "configure:15573: checking whether ${MAKE-make} sets \${MAKE}" >&5
10f2d63a
VZ
15573set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
15574if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
15575 echo $ac_n "(cached) $ac_c" 1>&6
15576else
15577 cat > conftestmake <<\EOF
15578all:
15579 @echo 'ac_maketemp="${MAKE}"'
15580EOF
15581# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
15582eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
15583if test -n "$ac_maketemp"; then
15584 eval ac_cv_prog_make_${ac_make}_set=yes
15585else
15586 eval ac_cv_prog_make_${ac_make}_set=no
15587fi
15588rm -f conftestmake
15589fi
15590if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
15591 echo "$ac_t""yes" 1>&6
15592 SET_MAKE=
15593else
15594 echo "$ac_t""no" 1>&6
15595 SET_MAKE="MAKE=${MAKE-make}"
15596fi
15597
15598
00cf1208
RR
15599if test -d include; then
15600 if test -d include/wx; then
15601 if test -d include/wx/${TOOLKIT_DIR}; then
15602 if test -f include/wx/${TOOLKIT_DIR}/setup.h; then
15603 mv -f include/wx/${TOOLKIT_DIR}/setup.h setup.h
15604 fi
15605 fi
15606 fi
15607fi
15608
10f2d63a
VZ
15609
15610
2224580a 15611if test "$wxUSE_GUI" = "yes"; then
ec90f5e5 15612 wx_cv_path_samplesubdirs=$SAMPLES_SUBDIRS
e8482f24
GL
15613 wx_cv_path_ifs=$PATH_IFS
15614 wx_cv_program_ext=$PROGRAM_EXT
15615 wx_cv_target_library=$WX_TARGET_LIBRARY
3711412e 15616 wx_cv_target_libtype=$WX_TARGET_LIBRARY_TYPE
e8482f24 15617 subdirs="demos samples utils contrib"
2224580a
VZ
15618
15619fi
10f2d63a
VZ
15620
15621trap '' 1 2 15
15622cat > confcache <<\EOF
15623# This file is a shell script that caches the results of configure
15624# tests run on this system so they can be shared between configure
15625# scripts and configure runs. It is not useful on other systems.
15626# If it contains results you don't want to keep, you may remove or edit it.
15627#
15628# By default, configure uses ./config.cache as the cache file,
15629# creating it if it does not exist already. You can give configure
15630# the --cache-file=FILE option to use a different cache file; that is
15631# what configure does when it calls configure scripts in
15632# subdirectories, so they share the cache.
15633# Giving --cache-file=/dev/null disables caching, for debugging configure.
15634# config.status only pays attention to the cache file if you give it the
15635# --recheck option to rerun configure.
15636#
15637EOF
15638# The following way of writing the cache mishandles newlines in values,
15639# but we know of no workaround that is simple, portable, and efficient.
15640# So, don't put newlines in cache variables' values.
15641# Ultrix sh set writes to stderr and can't be redirected directly,
15642# and sets the high bit in the cache file unless we assign to the vars.
15643(set) 2>&1 |
15644 case `(ac_space=' '; set | grep ac_space) 2>&1` in
15645 *ac_space=\ *)
15646 # `set' does not quote correctly, so add quotes (double-quote substitution
15647 # turns \\\\ into \\, and sed turns \\ into \).
15648 sed -n \
15649 -e "s/'/'\\\\''/g" \
15650 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
15651 ;;
15652 *)
15653 # `set' quotes correctly as required by POSIX, so do not add quotes.
15654 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
15655 ;;
15656 esac >> confcache
15657if cmp -s $cache_file confcache; then
15658 :
15659else
15660 if test -w $cache_file; then
15661 echo "updating cache $cache_file"
15662 cat confcache > $cache_file
15663 else
15664 echo "not updating unwritable cache $cache_file"
15665 fi
15666fi
15667rm -f confcache
15668
15669trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
15670
15671test "x$prefix" = xNONE && prefix=$ac_default_prefix
15672# Let make expand exec_prefix.
15673test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15674
15675# Any assignment to VPATH causes Sun make to only execute
15676# the first set of double-colon rules, so remove it if not needed.
15677# If there is a colon in the path, we need to keep it.
15678if test "x$srcdir" = x.; then
15679 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
15680fi
15681
15682trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
15683
15684DEFS=-DHAVE_CONFIG_H
15685
15686# Without the "./", some shells look in PATH for config.status.
15687: ${CONFIG_STATUS=./config.status}
15688
15689echo creating $CONFIG_STATUS
15690rm -f $CONFIG_STATUS
15691cat > $CONFIG_STATUS <<EOF
15692#! /bin/sh
15693# Generated automatically by configure.
15694# Run this file to recreate the current configuration.
15695# This directory was configured as follows,
15696# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15697#
15698# $0 $ac_configure_args
15699#
15700# Compiler output produced by configure, useful for debugging
15701# configure, is in ./config.log if it exists.
15702
15703ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
15704for ac_option
15705do
15706 case "\$ac_option" in
15707 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15708 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
15709 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
15710 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
e8482f24 15711 echo "$CONFIG_STATUS generated by autoconf version 2.13"
10f2d63a
VZ
15712 exit 0 ;;
15713 -help | --help | --hel | --he | --h)
15714 echo "\$ac_cs_usage"; exit 0 ;;
15715 *) echo "\$ac_cs_usage"; exit 1 ;;
15716 esac
15717done
15718
15719ac_given_srcdir=$srcdir
15720ac_given_INSTALL="$INSTALL"
15721
15722trap 'rm -fr `echo "
15723 wx-config
15724 src/make.env
15725 src/makeprog.env
15726 src/makelib.env
15727 Makefile
10f2d63a
VZ
15728 setup.h:setup.h.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
15729EOF
15730cat >> $CONFIG_STATUS <<EOF
15731
15732# Protect against being on the right side of a sed subst in config.status.
15733sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
15734 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
15735$ac_vpsub
15736$extrasub
15737s%@SHELL@%$SHELL%g
15738s%@CFLAGS@%$CFLAGS%g
15739s%@CPPFLAGS@%$CPPFLAGS%g
15740s%@CXXFLAGS@%$CXXFLAGS%g
15741s%@FFLAGS@%$FFLAGS%g
15742s%@DEFS@%$DEFS%g
15743s%@LDFLAGS@%$LDFLAGS%g
15744s%@LIBS@%$LIBS%g
15745s%@exec_prefix@%$exec_prefix%g
15746s%@prefix@%$prefix%g
15747s%@program_transform_name@%$program_transform_name%g
15748s%@bindir@%$bindir%g
15749s%@sbindir@%$sbindir%g
15750s%@libexecdir@%$libexecdir%g
15751s%@datadir@%$datadir%g
15752s%@sysconfdir@%$sysconfdir%g
15753s%@sharedstatedir@%$sharedstatedir%g
15754s%@localstatedir@%$localstatedir%g
15755s%@libdir@%$libdir%g
15756s%@includedir@%$includedir%g
15757s%@oldincludedir@%$oldincludedir%g
15758s%@infodir@%$infodir%g
15759s%@mandir@%$mandir%g
7c66a493
VZ
15760s%@host@%$host%g
15761s%@host_alias@%$host_alias%g
15762s%@host_cpu@%$host_cpu%g
15763s%@host_vendor@%$host_vendor%g
15764s%@host_os@%$host_os%g
15765s%@target@%$target%g
15766s%@target_alias@%$target_alias%g
15767s%@target_cpu@%$target_cpu%g
15768s%@target_vendor@%$target_vendor%g
15769s%@target_os@%$target_os%g
15770s%@build@%$build%g
15771s%@build_alias@%$build_alias%g
15772s%@build_cpu@%$build_cpu%g
15773s%@build_vendor@%$build_vendor%g
15774s%@build_os@%$build_os%g
10f2d63a
VZ
15775s%@CC@%$CC%g
15776s%@CPP@%$CPP%g
15777s%@CXX@%$CXX%g
15778s%@CXXCPP@%$CXXCPP%g
15779s%@RANLIB@%$RANLIB%g
15780s%@AR@%$AR%g
15781s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
15782s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
15783s%@INSTALL_DATA@%$INSTALL_DATA%g
15784s%@STRIP@%$STRIP%g
15785s%@YACC@%$YACC%g
15786s%@LEX@%$LEX%g
15787s%@LEXLIB@%$LEXLIB%g
15788s%@LN_S@%$LN_S%g
6f72b082 15789s%@GTK_CONFIG_2_0@%$GTK_CONFIG_2_0%g
10f2d63a
VZ
15790s%@GTK_CONFIG@%$GTK_CONFIG%g
15791s%@GTK_CFLAGS@%$GTK_CFLAGS%g
15792s%@GTK_LIBS@%$GTK_LIBS%g
ab9b9eab
VZ
15793s%@X_CFLAGS@%$X_CFLAGS%g
15794s%@X_PRE_LIBS@%$X_PRE_LIBS%g
15795s%@X_LIBS@%$X_LIBS%g
15796s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
ec14dd32
VZ
15797s%@LEX_STEM@%$LEX_STEM%g
15798s%@PATH_IFS@%$PATH_IFS%g
10f2d63a
VZ
15799s%@WX_MAJOR_VERSION_NUMBER@%$WX_MAJOR_VERSION_NUMBER%g
15800s%@WX_MINOR_VERSION_NUMBER@%$WX_MINOR_VERSION_NUMBER%g
15801s%@WX_RELEASE_NUMBER@%$WX_RELEASE_NUMBER%g
15802s%@WX_LIBRARY_NAME@%$WX_LIBRARY_NAME%g
15803s%@WX_LIBRARY_NAME_STATIC@%$WX_LIBRARY_NAME_STATIC%g
15804s%@WX_LIBRARY_NAME_SHARED@%$WX_LIBRARY_NAME_SHARED%g
15805s%@WX_LIBRARY@%$WX_LIBRARY%g
15806s%@WX_TARGET_LIBRARY@%$WX_TARGET_LIBRARY%g
15807s%@WX_LIBRARY_LINK1@%$WX_LIBRARY_LINK1%g
15808s%@WX_LIBRARY_LINK2@%$WX_LIBRARY_LINK2%g
15809s%@WX_LIBRARY_LINK3@%$WX_LIBRARY_LINK3%g
15810s%@PROGRAM_EXT@%$PROGRAM_EXT%g
bdad4e7e
RR
15811s%@WX_LIBRARY_NAME_GL@%$WX_LIBRARY_NAME_GL%g
15812s%@WX_LIBRARY_NAME_STATIC_GL@%$WX_LIBRARY_NAME_STATIC_GL%g
15813s%@WX_LIBRARY_NAME_SHARED_GL@%$WX_LIBRARY_NAME_SHARED_GL%g
15814s%@WX_LIBRARY_GL@%$WX_LIBRARY_GL%g
15815s%@WX_TARGET_LIBRARY_GL@%$WX_TARGET_LIBRARY_GL%g
15816s%@WX_LIBRARY_LINK1_GL@%$WX_LIBRARY_LINK1_GL%g
15817s%@WX_LIBRARY_LINK2_GL@%$WX_LIBRARY_LINK2_GL%g
15818s%@WX_LIBRARY_LINK3_GL@%$WX_LIBRARY_LINK3_GL%g
10f2d63a
VZ
15819s%@WX_ALL@%$WX_ALL%g
15820s%@WX_ALL_INSTALLED@%$WX_ALL_INSTALLED%g
15821s%@SHARED_LD@%$SHARED_LD%g
15822s%@PIC_FLAG@%$PIC_FLAG%g
15823s%@DEP_INFO_FLAGS@%$DEP_INFO_FLAGS%g
caa2c79b 15824s%@CODE_GEN_FLAGS@%$CODE_GEN_FLAGS%g
0f3f1cbc 15825s%@CODE_GEN_FLAGS_CXX@%$CODE_GEN_FLAGS_CXX%g
1d62a8b4 15826s%@BURNT_LIBRARY_NAME@%$BURNT_LIBRARY_NAME%g
bdad4e7e 15827s%@BURNT_LIBRARY_NAME_GL@%$BURNT_LIBRARY_NAME_GL%g
f6bcfd97 15828s%@WX_TARGET_LIBRARY_SONAME@%$WX_TARGET_LIBRARY_SONAME%g
3711412e 15829s%@WX_TARGET_LIBRARY_TYPE@%$WX_TARGET_LIBRARY_TYPE%g
10f2d63a 15830s%@WXDEBUG_DEFINE@%$WXDEBUG_DEFINE%g
dad6c0ea
VZ
15831s%@USE_GUI@%$USE_GUI%g
15832s%@AFMINSTALL@%$AFMINSTALL%g
10f2d63a
VZ
15833s%@TOOLKIT@%$TOOLKIT%g
15834s%@TOOLKIT_DEF@%$TOOLKIT_DEF%g
15835s%@TOOLKIT_DIR@%$TOOLKIT_DIR%g
f6bcfd97 15836s%@TOOLKIT_NAME@%$TOOLKIT_NAME%g
10f2d63a 15837s%@TOOLKIT_INCLUDE@%$TOOLKIT_INCLUDE%g
f6bcfd97 15838s%@WXCONFIG_INCLUDE@%$WXCONFIG_INCLUDE%g
10f2d63a
VZ
15839s%@ALL_OBJECTS@%$ALL_OBJECTS%g
15840s%@ALL_DEPFILES@%$ALL_DEPFILES%g
10f2d63a 15841s%@GUIDIST@%$GUIDIST%g
2224580a
VZ
15842s%@PORT_FILES@%$PORT_FILES%g
15843s%@DISTDIR@%$DISTDIR%g
15844s%@RPM_SPEC@%$RPM_SPEC%g
15845s%@RPM_FILES@%$RPM_FILES%g
10f2d63a
VZ
15846s%@SRC_SUBDIRS@%$SRC_SUBDIRS%g
15847s%@INCLUDE_SUBDIRS@%$INCLUDE_SUBDIRS%g
15848s%@UTILS_SUBDIRS@%$UTILS_SUBDIRS%g
15849s%@DOCS_SUBDIRS@%$DOCS_SUBDIRS%g
15850s%@SAMPLES_SUBDIRS@%$SAMPLES_SUBDIRS%g
15851s%@USER_SUBDIRS@%$USER_SUBDIRS%g
15852s%@EXTRA_LIBS@%$EXTRA_LIBS%g
f6bcfd97 15853s%@OPENGL_LIBS@%$OPENGL_LIBS%g
b12915c1 15854s%@EXTRADEFS@%$EXTRADEFS%g
10f2d63a 15855s%@LD_LIBS@%$LD_LIBS%g
32832908
VZ
15856s%@RCINPUTSWITCH@%$RCINPUTSWITCH%g
15857s%@RCOUTPUTSWITCH@%$RCOUTPUTSWITCH%g
15858s%@RESPROGRAM@%$RESPROGRAM%g
15859s%@RESCOMP@%$RESCOMP%g
15860s%@RESFLAGS@%$RESFLAGS%g
15861s%@DLLTOOL@%$DLLTOOL%g
15862s%@AS@%$AS%g
15863s%@NM@%$NM%g
15864s%@LD@%$LD%g
15865s%@MAKEINFO@%$MAKEINFO%g
10f2d63a 15866s%@SET_MAKE@%$SET_MAKE%g
2224580a 15867s%@subdirs@%$subdirs%g
10f2d63a
VZ
15868
15869CEOF
15870EOF
15871
15872cat >> $CONFIG_STATUS <<\EOF
15873
15874# Split the substitutions into bite-sized pieces for seds with
15875# small command number limits, like on Digital OSF/1 and HP-UX.
15876ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
15877ac_file=1 # Number of current file.
15878ac_beg=1 # First line for current file.
15879ac_end=$ac_max_sed_cmds # Line after last line for current file.
15880ac_more_lines=:
15881ac_sed_cmds=""
15882while $ac_more_lines; do
15883 if test $ac_beg -gt 1; then
15884 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
15885 else
15886 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
15887 fi
15888 if test ! -s conftest.s$ac_file; then
15889 ac_more_lines=false
15890 rm -f conftest.s$ac_file
15891 else
15892 if test -z "$ac_sed_cmds"; then
15893 ac_sed_cmds="sed -f conftest.s$ac_file"
15894 else
15895 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
15896 fi
15897 ac_file=`expr $ac_file + 1`
15898 ac_beg=$ac_end
15899 ac_end=`expr $ac_end + $ac_max_sed_cmds`
15900 fi
15901done
15902if test -z "$ac_sed_cmds"; then
15903 ac_sed_cmds=cat
15904fi
15905EOF
15906
15907cat >> $CONFIG_STATUS <<EOF
15908
15909CONFIG_FILES=\${CONFIG_FILES-"wx-config
15910 src/make.env
15911 src/makeprog.env
15912 src/makelib.env
15913 Makefile
10f2d63a
VZ
15914 "}
15915EOF
15916cat >> $CONFIG_STATUS <<\EOF
15917for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
15918 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
15919 case "$ac_file" in
15920 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
15921 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
15922 *) ac_file_in="${ac_file}.in" ;;
15923 esac
15924
15925 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
15926
15927 # Remove last slash and all that follows it. Not all systems have dirname.
15928 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
15929 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
15930 # The file is in a subdirectory.
15931 test ! -d "$ac_dir" && mkdir "$ac_dir"
15932 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
15933 # A "../" for each directory in $ac_dir_suffix.
15934 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
15935 else
15936 ac_dir_suffix= ac_dots=
15937 fi
15938
15939 case "$ac_given_srcdir" in
15940 .) srcdir=.
15941 if test -z "$ac_dots"; then top_srcdir=.
15942 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
15943 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
15944 *) # Relative path.
15945 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
15946 top_srcdir="$ac_dots$ac_given_srcdir" ;;
15947 esac
15948
15949 case "$ac_given_INSTALL" in
15950 [/$]*) INSTALL="$ac_given_INSTALL" ;;
15951 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
15952 esac
15953
15954 echo creating "$ac_file"
15955 rm -f "$ac_file"
15956 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
15957 case "$ac_file" in
15958 *Makefile*) ac_comsub="1i\\
15959# $configure_input" ;;
15960 *) ac_comsub= ;;
15961 esac
15962
15963 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
15964 sed -e "$ac_comsub
15965s%@configure_input@%$configure_input%g
15966s%@srcdir@%$srcdir%g
15967s%@top_srcdir@%$top_srcdir%g
15968s%@INSTALL@%$INSTALL%g
15969" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
15970fi; done
15971rm -f conftest.s*
15972
15973# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
15974# NAME is the cpp macro being defined and VALUE is the value it is being given.
15975#
15976# ac_d sets the value in "#define NAME VALUE" lines.
15977ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
15978ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
15979ac_dC='\3'
15980ac_dD='%g'
15981# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
15982ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
15983ac_uB='\([ ]\)%\1#\2define\3'
15984ac_uC=' '
15985ac_uD='\4%g'
15986# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
15987ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
15988ac_eB='$%\1#\2define\3'
15989ac_eC=' '
15990ac_eD='%g'
15991
15992if test "${CONFIG_HEADERS+set}" != set; then
15993EOF
15994cat >> $CONFIG_STATUS <<EOF
15995 CONFIG_HEADERS="setup.h:setup.h.in"
15996EOF
15997cat >> $CONFIG_STATUS <<\EOF
15998fi
15999for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
16000 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16001 case "$ac_file" in
16002 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
16003 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
16004 *) ac_file_in="${ac_file}.in" ;;
16005 esac
16006
16007 echo creating $ac_file
16008
16009 rm -f conftest.frag conftest.in conftest.out
16010 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
16011 cat $ac_file_inputs > conftest.in
16012
16013EOF
16014
16015# Transform confdefs.h into a sed script conftest.vals that substitutes
16016# the proper values into config.h.in to produce config.h. And first:
16017# Protect against being on the right side of a sed subst in config.status.
16018# Protect against being in an unquoted here document in config.status.
16019rm -f conftest.vals
16020cat > conftest.hdr <<\EOF
16021s/[\\&%]/\\&/g
16022s%[\\$`]%\\&%g
16023s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
16024s%ac_d%ac_u%gp
16025s%ac_u%ac_e%gp
16026EOF
16027sed -n -f conftest.hdr confdefs.h > conftest.vals
16028rm -f conftest.hdr
16029
16030# This sed command replaces #undef with comments. This is necessary, for
16031# example, in the case of _POSIX_SOURCE, which is predefined and required
16032# on some systems where configure will not decide to define it.
16033cat >> conftest.vals <<\EOF
16034s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
16035EOF
16036
16037# Break up conftest.vals because some shells have a limit on
16038# the size of here documents, and old seds have small limits too.
16039
16040rm -f conftest.tail
16041while :
16042do
16043 ac_lines=`grep -c . conftest.vals`
16044 # grep -c gives empty output for an empty file on some AIX systems.
16045 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
16046 # Write a limited-size here document to conftest.frag.
16047 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
16048 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
16049 echo 'CEOF
16050 sed -f conftest.frag conftest.in > conftest.out
16051 rm -f conftest.in
16052 mv conftest.out conftest.in
16053' >> $CONFIG_STATUS
16054 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
16055 rm -f conftest.vals
16056 mv conftest.tail conftest.vals
16057done
16058rm -f conftest.vals
16059
16060cat >> $CONFIG_STATUS <<\EOF
16061 rm -f conftest.frag conftest.h
16062 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
16063 cat conftest.in >> conftest.h
16064 rm -f conftest.in
16065 if cmp -s $ac_file conftest.h 2>/dev/null; then
16066 echo "$ac_file is unchanged"
16067 rm -f conftest.h
16068 else
16069 # Remove last slash and all that follows it. Not all systems have dirname.
16070 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
16071 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
16072 # The file is in a subdirectory.
16073 test ! -d "$ac_dir" && mkdir "$ac_dir"
16074 fi
16075 rm -f $ac_file
16076 mv conftest.h $ac_file
16077 fi
16078fi; done
16079
16080EOF
16081cat >> $CONFIG_STATUS <<EOF
16082
16083 TOOLKIT_DIR="${TOOLKIT_DIR}"
f6bcfd97 16084 TOOLKIT_NAME="${TOOLKIT_NAME}"
07eb77a6 16085 LN_S="${LN_S}"
10f2d63a
VZ
16086
16087
16088EOF
16089cat >> $CONFIG_STATUS <<\EOF
16090
16091 chmod +x wx-config
f6bcfd97
BP
16092 mv wx-config wx${TOOLKIT_NAME}-config
16093 ${LN_S} wx${TOOLKIT_NAME}-config wx-config
00cf1208 16094
f3c067d2 16095
00cf1208
RR
16096 if test ! -d lib; then
16097 mkdir lib
16098 fi
16099 if test ! -d lib/wx; then
16100 mkdir lib/wx
16101 fi
16102 if test ! -d lib/wx/include; then
16103 mkdir lib/wx/include
16104 fi
16105 if test ! -d lib/wx/include/wx; then
16106 mkdir lib/wx/include/wx
16107 fi
f6bcfd97
BP
16108 if test ! -d lib/wx/include/wx/${TOOLKIT_NAME}; then
16109 mkdir lib/wx/include/wx/${TOOLKIT_NAME}
00cf1208
RR
16110 fi
16111 if test -f setup.h; then
066b00aa 16112 cp -fp setup.h lib/wx/include/wx/${TOOLKIT_NAME}/setup.h
00cf1208 16113 fi
07eb77a6 16114
00cf1208 16115
10f2d63a
VZ
16116 if test ! -d include; then
16117 mkdir include
16118 fi
16119 if test ! -d include/wx; then
16120 mkdir include/wx
16121 fi
16122 if test ! -d include/wx/${TOOLKIT_DIR}; then
16123 mkdir include/wx/${TOOLKIT_DIR}
16124 fi
afc31813 16125 if test -f setup.h; then
066b00aa 16126 cp -fp setup.h include/wx/${TOOLKIT_DIR}/setup.h
afc31813 16127 fi
00cf1208 16128
10f2d63a
VZ
16129
16130exit 0
16131EOF
16132chmod +x $CONFIG_STATUS
16133rm -fr confdefs* $ac_clean_files
16134test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
16135
2224580a
VZ
16136if test "$no_recursion" != yes; then
16137
16138 # Remove --cache-file and --srcdir arguments so they do not pile up.
16139 ac_sub_configure_args=
16140 ac_prev=
16141 for ac_arg in $ac_configure_args; do
16142 if test -n "$ac_prev"; then
16143 ac_prev=
16144 continue
16145 fi
16146 case "$ac_arg" in
16147 -cache-file | --cache-file | --cache-fil | --cache-fi \
16148 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
16149 ac_prev=cache_file ;;
16150 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
16151 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
16152 ;;
16153 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
16154 ac_prev=srcdir ;;
16155 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
16156 ;;
16157 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
16158 esac
16159 done
16160
e8482f24 16161 for ac_config_dir in demos samples utils contrib; do
2224580a
VZ
16162
16163 # Do not complain, so a configure script can configure whichever
16164 # parts of a large source tree are present.
16165 if test ! -d $srcdir/$ac_config_dir; then
16166 continue
16167 fi
16168
16169 echo configuring in $ac_config_dir
16170
16171 case "$srcdir" in
16172 .) ;;
16173 *)
16174 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
16175 else
16176 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
16177 fi
16178 ;;
16179 esac
16180
16181 ac_popdir=`pwd`
16182 cd $ac_config_dir
16183
16184 # A "../" for each directory in /$ac_config_dir.
16185 ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
16186
16187 case "$srcdir" in
16188 .) # No --srcdir option. We are building in place.
16189 ac_sub_srcdir=$srcdir ;;
16190 /*) # Absolute path.
16191 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
16192 *) # Relative path.
16193 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
16194 esac
16195
16196 # Check for guested configure; otherwise get Cygnus style configure.
16197 if test -f $ac_sub_srcdir/configure; then
16198 ac_sub_configure=$ac_sub_srcdir/configure
16199 elif test -f $ac_sub_srcdir/configure.in; then
16200 ac_sub_configure=$ac_configure
16201 else
16202 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
16203 ac_sub_configure=
16204 fi
16205
16206 # The recursion is here.
16207 if test -n "$ac_sub_configure"; then
16208
16209 # Make the cache file name correct relative to the subdirectory.
16210 case "$cache_file" in
16211 /*) ac_sub_cache_file=$cache_file ;;
16212 *) # Relative path.
16213 ac_sub_cache_file="$ac_dots$cache_file" ;;
16214 esac
16215 case "$ac_given_INSTALL" in
16216 [/$]*) INSTALL="$ac_given_INSTALL" ;;
16217 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
16218 esac
16219
16220 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
16221 # The eval makes quoting arguments work.
16222 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
16223 then :
16224 else
16225 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
16226 fi
16227 fi
16228
16229 cd $ac_popdir
16230 done
16231fi
16232
10f2d63a 16233