]> git.saurik.com Git - wxWidgets.git/blame - configure
Implement wxRB_GROUP
[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 945USE_BEOS=0
1216f52d 946USE_MAC=0
b12915c1 947
10f2d63a
VZ
948USE_LINUX=
949USE_SGI=
950USE_HPUX=
951USE_SYSV=
952USE_SVR4=
953USE_AIX=
954USE_SUN=
955USE_SOLARIS=
956USE_SUNOS=
957USE_ALPHA=
958USE_OSF=
959USE_BSD=
960USE_FREEBSD=
95c8801c 961USE_OPENBSD=
f6bcfd97 962USE_NETBSD=
10f2d63a
VZ
963USE_VMS=
964USE_ULTRIX=
965USE_CYGWIN=
966USE_MINGW=
967USE_DATA_GENERAL=
968
ab9b9eab
VZ
969NEEDS_D_REENTRANT_FOR_R_FUNCS=0
970
b4085ce6 971ALL_TOOLKITS="CYGWIN GTK MINGW MOTIF MAC WINE PM"
10f2d63a
VZ
972
973DEFAULT_wxUSE_GTK=0
974DEFAULT_wxUSE_MOTIF=0
975DEFAULT_wxUSE_MSW=0
b4085ce6 976DEFAULT_wxUSE_MAC=0
10f2d63a 977DEFAULT_wxUSE_WINE=0
e07802fc 978DEFAULT_wxUSE_PM=0
10f2d63a
VZ
979
980DEFAULT_DEFAULT_wxUSE_GTK=0
981DEFAULT_DEFAULT_wxUSE_MOTIF=0
982DEFAULT_DEFAULT_wxUSE_MSW=0
b4085ce6 983DEFAULT_DEFAULT_wxUSE_MAC=0
10f2d63a 984DEFAULT_DEFAULT_wxUSE_WINE=0
e07802fc 985DEFAULT_DEFAULT_wxUSE_PM=0
10f2d63a 986
d6a55c4b
VZ
987PROGRAM_EXT=
988
10f2d63a
VZ
989case "${host}" in
990 *-hp-hpux* )
991 USE_HPUX=1
992 DEFAULT_DEFAULT_wxUSE_MOTIF=1
ab9b9eab 993 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
10f2d63a
VZ
994 cat >> confdefs.h <<\EOF
995#define __HPUX__ 1
996EOF
997
998 ;;
999 *-*-linux* )
1000 USE_LINUX=1
1001 cat >> confdefs.h <<\EOF
1002#define __LINUX__ 1
1003EOF
1004
1005 TMP=`uname -m`
1006 if test "x$TMP" = "xalpha"; then
1007 USE_ALPHA=1
1008 cat >> confdefs.h <<\EOF
1009#define __ALPHA__ 1
1010EOF
1011
1012 fi
1013 DEFAULT_DEFAULT_wxUSE_GTK=1
1014 ;;
1015 *-*-irix5* | *-*-irix6* )
1016 USE_SGI=1
1017 USE_SVR4=1
1018 cat >> confdefs.h <<\EOF
1019#define __SGI__ 1
1020EOF
1021
1022 cat >> confdefs.h <<\EOF
1023#define __SVR4__ 1
1024EOF
1025
1026 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1027 ;;
1028 *-*-solaris2* )
1029 USE_SUN=1
1030 USE_SOLARIS=1
1031 USE_SVR4=1
1032 cat >> confdefs.h <<\EOF
1033#define __SUN__ 1
1034EOF
1035
1036 cat >> confdefs.h <<\EOF
1037#define __SOLARIS__ 1
1038EOF
1039
1040 cat >> confdefs.h <<\EOF
1041#define __SVR4__ 1
1042EOF
1043
1044 DEFAULT_DEFAULT_wxUSE_MOTIF=1
ab9b9eab 1045 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
10f2d63a
VZ
1046 ;;
1047 *-*-sunos4* )
1048 USE_SUN=1
1049 USE_SUNOS=1
1050 USE_BSD=1
1051 cat >> confdefs.h <<\EOF
1052#define __SUN__ 1
1053EOF
1054
1055 cat >> confdefs.h <<\EOF
1056#define __SUNOS__ 1
1057EOF
1058
1059 cat >> confdefs.h <<\EOF
1060#define __BSD__ 1
1061EOF
1062
1063 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1064 ;;
f6bcfd97 1065 *-*-freebsd*)
10f2d63a
VZ
1066 USE_BSD=1
1067 USE_FREEBSD=1
1068 cat >> confdefs.h <<\EOF
1069#define __FREEBSD__ 1
1070EOF
1071
1072 cat >> confdefs.h <<\EOF
1073#define __BSD__ 1
95c8801c
VS
1074EOF
1075
1076 DEFAULT_DEFAULT_wxUSE_GTK=1
1077 ;;
1078 *-*-openbsd*)
1079 USE_BSD=1
1080 USE_OPENBSD=1
1081 cat >> confdefs.h <<\EOF
1082#define __FREEBSD__ 1
1083EOF
1084
1085 cat >> confdefs.h <<\EOF
1086#define __OPENBSD__ 1
f6bcfd97
BP
1087EOF
1088
1089 DEFAULT_DEFAULT_wxUSE_GTK=1
1090 ;;
1091 *-*-netbsd*)
1092 USE_BSD=1
1093 USE_NETBSD=1
1094 cat >> confdefs.h <<\EOF
1095#define __FREEBSD__ 1
1096EOF
1097
1098 cat >> confdefs.h <<\EOF
1099#define __NETBSD__ 1
10f2d63a
VZ
1100EOF
1101
1102 DEFAULT_DEFAULT_wxUSE_GTK=1
1103 ;;
1104 *-*-osf* )
1105 USE_ALPHA=1
1106 USE_OSF=1
1107 cat >> confdefs.h <<\EOF
1108#define __ALPHA__ 1
1109EOF
1110
1111 cat >> confdefs.h <<\EOF
1112#define __OSF__ 1
1113EOF
1114
1115 DEFAULT_DEFAULT_wxUSE_MOTIF=1
f6bcfd97 1116 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
10f2d63a
VZ
1117 ;;
1118 *-*-dgux5* )
1119 USE_ALPHA=1
1120 USE_SVR4=1
1121 cat >> confdefs.h <<\EOF
1122#define __ALPHA__ 1
1123EOF
1124
1125 cat >> confdefs.h <<\EOF
1126#define __SVR4__ 1
1127EOF
1128
1129 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1130 ;;
1131 *-*-sysv5* )
1132 USE_SYSV=1
1133 USE_SVR4=1
1134 cat >> confdefs.h <<\EOF
1135#define __SYSV__ 1
1136EOF
1137
1138 cat >> confdefs.h <<\EOF
1139#define __SVR4__ 1
1140EOF
1141
1142 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1143 ;;
1144 *-*-aix* )
1145 USE_AIX=1
1146 USE_SYSV=1
1147 USE_SVR4=1
1148 cat >> confdefs.h <<\EOF
1149#define __AIX__ 1
1150EOF
1151
1152 cat >> confdefs.h <<\EOF
1153#define __SYSV__ 1
1154EOF
1155
1156 cat >> confdefs.h <<\EOF
1157#define __SVR4__ 1
1158EOF
1159
1160 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1161 ;;
1162
7eef8db2 1163 *-*-cygwin32* | *-*-mingw32* )
10f2d63a
VZ
1164 USE_UNIX=0
1165 USE_WIN32=1
1166 cat >> confdefs.h <<\EOF
1167#define __WIN32__ 1
1168EOF
1169
1170 cat >> confdefs.h <<\EOF
1171#define __WIN95__ 1
1172EOF
1173
1174 cat >> confdefs.h <<\EOF
1175#define __WINDOWS__ 1
1176EOF
1177
1178 cat >> confdefs.h <<\EOF
1179#define __GNUWIN32__ 1
1180EOF
1181
1182 cat >> confdefs.h <<\EOF
1183#define STRICT 1
1184EOF
1185
1186 cat >> confdefs.h <<\EOF
1187#define WINVER 0x0400
1188EOF
1189
cf27ef00 1190 PROGRAM_EXT=".exe"
10f2d63a
VZ
1191 DEFAULT_DEFAULT_wxUSE_MSW=1
1192 ;;
1193
1194 *-pc-os2_emx )
1195 cat >> confdefs.h <<\EOF
1196#define __EMX__ 1
1197EOF
1198
cf27ef00 1199 PROGRAM_EXT=".exe"
e07802fc 1200 DEFAULT_DEFAULT_wxUSE_PM=1
10f2d63a
VZ
1201 ;;
1202
b4085ce6
GD
1203 *-*-darwin* )
1204 USE_BSD=1
1205 USE_MAC=1
1206 cat >> confdefs.h <<\EOF
1207#define __MAC__ 1
1208EOF
1209
1210 cat >> confdefs.h <<\EOF
1211#define __BSD__ 1
1212EOF
1213
1214 cat >> confdefs.h <<\EOF
1215#define __UNIX__ 1
1216EOF
1217
1218 DEFAULT_DEFAULT_wxUSE_MAC=1
1219 ;;
1220
b12915c1
VZ
1221 *-*-beos* )
1222 USE_BEOS=1
1223 cat >> confdefs.h <<\EOF
1224#define __BEOS__ 1
1225EOF
1226
1227 ;;
1228
10f2d63a
VZ
1229 *)
1230 { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; }
1231esac
1232
1233if test "$USE_UNIX" = 1 ; then
b12915c1
VZ
1234 wxUSE_UNIX=yes
1235 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1236#define __UNIX__ 1
1237EOF
1238
b12915c1
VZ
1239
1240 SRC_SUBDIRS="$SRC_SUBDIRS unix"
1241 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS unix"
1242fi
1243
1244if test "$USE_BEOS" = 1; then
1245 SRC_SUBDIRS="$SRC_SUBDIRS be"
1246 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS be"
10f2d63a
VZ
1247fi
1248
1249if test "$USE_LINUX" = 1; then
1250 echo $ac_n "checking for gettext in -lc""... $ac_c" 1>&6
1216f52d 1251echo "configure:1252: checking for gettext in -lc" >&5
10f2d63a
VZ
1252ac_lib_var=`echo c'_'gettext | sed 'y%./+-%__p_%'`
1253if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1254 echo $ac_n "(cached) $ac_c" 1>&6
1255else
1256 ac_save_LIBS="$LIBS"
1257LIBS="-lc $LIBS"
1258cat > conftest.$ac_ext <<EOF
1216f52d 1259#line 1260 "configure"
10f2d63a
VZ
1260#include "confdefs.h"
1261/* Override any gcc2 internal prototype to avoid an error. */
1262/* We use char because int might match the return type of a gcc2
1263 builtin and then its argument prototype would still apply. */
1264char gettext();
1265
1266int main() {
1267gettext()
1268; return 0; }
1269EOF
1216f52d 1270if { (eval echo configure:1271: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
1271 rm -rf conftest*
1272 eval "ac_cv_lib_$ac_lib_var=yes"
1273else
1274 echo "configure: failed program was:" >&5
1275 cat conftest.$ac_ext >&5
1276 rm -rf conftest*
1277 eval "ac_cv_lib_$ac_lib_var=no"
1278fi
1279rm -f conftest*
1280LIBS="$ac_save_LIBS"
1281
1282fi
1283if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1284 echo "$ac_t""yes" 1>&6
1285 cat >> confdefs.h <<\EOF
1286#define wxHAVE_GLIBC2 1
1287EOF
1288
1289else
1290 echo "$ac_t""no" 1>&6
1291fi
1292
1293fi
1294
1295
1296
1297
1298 wx_arg_cache_file="configarg.cache"
1299 echo "loading argument cache $wx_arg_cache_file"
1300 rm -f ${wx_arg_cache_file}.tmp
1301 touch ${wx_arg_cache_file}.tmp
1302 touch ${wx_arg_cache_file}
1303
1304
1305DEBUG_CONFIGURE=0
1306if test $DEBUG_CONFIGURE = 1; then
1307 DEFAULT_wxUSE_THREADS=yes
1308
1309 DEFAULT_wxUSE_SHARED=yes
00cf1208 1310 DEFAULT_wxUSE_BURNT_NAME=no
10f2d63a
VZ
1311 DEFAULT_wxUSE_OPTIMISE=yes
1312 DEFAULT_wxUSE_PROFILE=no
1313 DEFAULT_wxUSE_NO_DEPS=no
1314 DEFAULT_wxUSE_NO_RTTI=no
1315 DEFAULT_wxUSE_NO_EXCEPTIONS=no
1316 DEFAULT_wxUSE_PERMISSIVE=no
1317 DEFAULT_wxUSE_DEBUG_FLAG=yes
1318 DEFAULT_wxUSE_DEBUG_INFO=yes
1319 DEFAULT_wxUSE_DEBUG_GDB=yes
1320 DEFAULT_wxUSE_MEM_TRACING=no
1321 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1322 DEFAULT_wxUSE_DMALLOC=no
1323 DEFAULT_wxUSE_APPLE_IEEE=no
1324
1325 DEFAULT_wxUSE_LOG=yes
1326
1327 DEFAULT_wxUSE_GUI=yes
1328
1329 DEFAULT_wxUSE_ZLIB=no
1330 DEFAULT_wxUSE_LIBPNG=no
1331 DEFAULT_wxUSE_LIBJPEG=no
c7a2bf27 1332 DEFAULT_wxUSE_LIBTIFF=no
10f2d63a 1333 DEFAULT_wxUSE_ODBC=no
3fed1840 1334 DEFAULT_wxUSE_FREETYPE=no
bdad4e7e 1335 DEFAULT_wxUSE_OPENGL=no
10f2d63a 1336
eb4efbdc 1337 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no
10f2d63a
VZ
1338 DEFAULT_wxUSE_STD_IOSTREAM=no
1339 DEFAULT_wxUSE_FILE=no
1340 DEFAULT_wxUSE_TEXTFILE=no
1341 DEFAULT_wxUSE_TIMEDATE=no
1342 DEFAULT_wxUSE_WAVE=no
1343 DEFAULT_wxUSE_INTL=no
1344 DEFAULT_wxUSE_CONFIG=no
1345 DEFAULT_wxUSE_STREAMS=no
1346 DEFAULT_wxUSE_SOCKETS=no
1347 DEFAULT_wxUSE_DIALUP_MANAGER=no
1348 DEFAULT_wxUSE_SERIAL=no
1349 DEFAULT_wxUSE_JOYSTICK=no
1350 DEFAULT_wxUSE_DYNLIB_CLASS=no
1351 DEFAULT_wxUSE_LONGLONG=no
e8f65ba6 1352 DEFAULT_wxUSE_GEOMETRY=no
10f2d63a
VZ
1353
1354 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
1355 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
1356 DEFAULT_wxUSE_POSTSCRIPT=no
1357
1358 DEFAULT_wxUSE_X_RESOURCES=no
1359 DEFAULT_wxUSE_CLIPBOARD=no
1360 DEFAULT_wxUSE_TOOLTIPS=no
1361 DEFAULT_wxUSE_DRAG_AND_DROP=no
1362 DEFAULT_wxUSE_SPLINES=no
1363
1364 DEFAULT_wxUSE_MDI_ARCHITECTURE=no
1365 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
1366 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
1367
1368 DEFAULT_wxUSE_PROLOGIO=no
1369 DEFAULT_wxUSE_RESOURCES=no
1370 DEFAULT_wxUSE_CONSTRAINTS=no
1371 DEFAULT_wxUSE_IPC=no
1372 DEFAULT_wxUSE_HELP=no
1373 DEFAULT_wxUSE_WXTREE=no
1374 DEFAULT_wxUSE_METAFILE=no
1375
1376 DEFAULT_wxUSE_COMMONDLGS=no
1377 DEFAULT_wxUSE_DIRDLG=no
1378 DEFAULT_wxUSE_TEXTDLG=no
1379 DEFAULT_wxUSE_STARTUP_TIPS=no
1380 DEFAULT_wxUSE_PROGRESSDLG=no
1381 DEFAULT_wxUSE_MINIFRAME=no
1382 DEFAULT_wxUSE_HTML=no
24528b0c 1383 DEFAULT_wxUSE_FILESYSTEM=no
10f2d63a
VZ
1384 DEFAULT_wxUSE_FS_INET=no
1385 DEFAULT_wxUSE_FS_ZIP=no
1386 DEFAULT_wxUSE_BUSYINFO=no
1387 DEFAULT_wxUSE_ZIPSTREAM=no
1388 DEFAULT_wxUSE_VALIDATORS=yes
1389
1390 DEFAULT_wxUSE_ACCEL=no
1391 DEFAULT_wxUSE_CARET=no
1392 DEFAULT_wxUSE_BMPBUTTON=no
1393 DEFAULT_wxUSE_CHECKBOX=no
1394 DEFAULT_wxUSE_CHECKLST=no
1395 DEFAULT_wxUSE_CHOICE=yes
1396 DEFAULT_wxUSE_COMBOBOX=no
1397 DEFAULT_wxUSE_GAUGE=no
1398 DEFAULT_wxUSE_GRID=no
1399 DEFAULT_wxUSE_NEW_GRID=no
1400 DEFAULT_wxUSE_IMAGLIST=no
1401 DEFAULT_wxUSE_LISTBOX=no
1402 DEFAULT_wxUSE_LISTCTRL=no
1403 DEFAULT_wxUSE_NOTEBOOK=no
1404 DEFAULT_wxUSE_RADIOBOX=no
1405 DEFAULT_wxUSE_RADIOBTN=no
1406 DEFAULT_wxUSE_SASH=no
1407 DEFAULT_wxUSE_SCROLLBAR=no
1408 DEFAULT_wxUSE_SLIDER=no
1409 DEFAULT_wxUSE_SPINBTN=no
56cfaa52 1410 DEFAULT_wxUSE_SPINCTRL=no
10f2d63a
VZ
1411 DEFAULT_wxUSE_SPLITTER=no
1412 DEFAULT_wxUSE_STATBMP=no
1413 DEFAULT_wxUSE_STATBOX=no
1414 DEFAULT_wxUSE_STATLINE=no
1415 DEFAULT_wxUSE_STATUSBAR=yes
1416 DEFAULT_wxUSE_TABDIALOG=no
1db8dc4a 1417 DEFAULT_wxUSE_TOGGLEBTN=no
10f2d63a 1418 DEFAULT_wxUSE_TOOLBAR=no
360d6699
VZ
1419 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
1420 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
10f2d63a
VZ
1421 DEFAULT_wxUSE_TREECTRL=no
1422
1423 DEFAULT_wxUSE_UNICODE=no
1424 DEFAULT_wxUSE_WCSRTOMBS=no
1425
0046ff7c 1426 DEFAULT_wxUSE_IMAGE=no
10f2d63a
VZ
1427 DEFAULT_wxUSE_GIF=no
1428 DEFAULT_wxUSE_PCX=no
1429 DEFAULT_wxUSE_PNM=no
0046ff7c 1430 DEFAULT_wxUSE_XPM=no
10f2d63a
VZ
1431else
1432 DEFAULT_wxUSE_THREADS=yes
1433
1434 DEFAULT_wxUSE_SHARED=yes
00cf1208 1435 DEFAULT_wxUSE_BURNT_NAME=no
10f2d63a
VZ
1436 DEFAULT_wxUSE_OPTIMISE=yes
1437 DEFAULT_wxUSE_PROFILE=no
1438 DEFAULT_wxUSE_NO_DEPS=no
1439 DEFAULT_wxUSE_NO_RTTI=no
1440 DEFAULT_wxUSE_NO_EXCEPTIONS=no
1441 DEFAULT_wxUSE_PERMISSIVE=no
1442 DEFAULT_wxUSE_DEBUG_FLAG=no
1443 DEFAULT_wxUSE_DEBUG_INFO=no
1444 DEFAULT_wxUSE_DEBUG_GDB=no
1445 DEFAULT_wxUSE_MEM_TRACING=no
1446 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1447 DEFAULT_wxUSE_DMALLOC=no
1448 DEFAULT_wxUSE_APPLE_IEEE=yes
1449
1450 DEFAULT_wxUSE_LOG=yes
1451
1452 DEFAULT_wxUSE_GUI=yes
1453
1454 DEFAULT_wxUSE_ZLIB=yes
1455 DEFAULT_wxUSE_LIBPNG=yes
1456 DEFAULT_wxUSE_LIBJPEG=yes
b47c832e 1457 DEFAULT_wxUSE_LIBTIFF=yes
16b52fa1 1458 DEFAULT_wxUSE_ODBC=no
3fed1840 1459 DEFAULT_wxUSE_FREETYPE=no
bdad4e7e 1460 DEFAULT_wxUSE_OPENGL=no
10f2d63a 1461
eb4efbdc 1462 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes
10f2d63a
VZ
1463 DEFAULT_wxUSE_STD_IOSTREAM=no
1464 DEFAULT_wxUSE_FILE=yes
1465 DEFAULT_wxUSE_TEXTFILE=yes
1466 DEFAULT_wxUSE_TIMEDATE=yes
1467 DEFAULT_wxUSE_WAVE=no
1468 DEFAULT_wxUSE_INTL=yes
1469 DEFAULT_wxUSE_CONFIG=yes
1470 DEFAULT_wxUSE_STREAMS=yes
1471 DEFAULT_wxUSE_SOCKETS=yes
1472 DEFAULT_wxUSE_DIALUP_MANAGER=yes
1473 DEFAULT_wxUSE_SERIAL=yes
1474 DEFAULT_wxUSE_JOYSTICK=yes
1475 DEFAULT_wxUSE_DYNLIB_CLASS=yes
b685cd9b 1476 DEFAULT_wxUSE_LONGLONG=yes
e8f65ba6 1477 DEFAULT_wxUSE_GEOMETRY=yes
10f2d63a
VZ
1478
1479 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
1480 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
1481 DEFAULT_wxUSE_POSTSCRIPT=yes
1482
1483 DEFAULT_wxUSE_X_RESOURCES=no
1484 DEFAULT_wxUSE_CLIPBOARD=yes
1485 DEFAULT_wxUSE_TOOLTIPS=yes
1486 DEFAULT_wxUSE_DRAG_AND_DROP=yes
1487 DEFAULT_wxUSE_SPLINES=yes
1488
1489 DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
1490 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
1491 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
1492
1493 DEFAULT_wxUSE_PROLOGIO=yes
1494 DEFAULT_wxUSE_RESOURCES=yes
1495 DEFAULT_wxUSE_CONSTRAINTS=yes
1496 DEFAULT_wxUSE_IPC=yes
1497 DEFAULT_wxUSE_HELP=yes
1498 DEFAULT_wxUSE_WXTREE=yes
1499 DEFAULT_wxUSE_METAFILE=yes
1500
1501 DEFAULT_wxUSE_COMMONDLGS=yes
1502 DEFAULT_wxUSE_DIRDLG=yes
1503 DEFAULT_wxUSE_TEXTDLG=yes
1504 DEFAULT_wxUSE_STARTUP_TIPS=yes
1505 DEFAULT_wxUSE_PROGRESSDLG=yes
1506 DEFAULT_wxUSE_MINIFRAME=yes
1507 DEFAULT_wxUSE_HTML=yes
24528b0c 1508 DEFAULT_wxUSE_FILESYSTEM=yes
10f2d63a
VZ
1509 DEFAULT_wxUSE_FS_INET=yes
1510 DEFAULT_wxUSE_FS_ZIP=yes
1511 DEFAULT_wxUSE_BUSYINFO=yes
1512 DEFAULT_wxUSE_ZIPSTREAM=yes
1513 DEFAULT_wxUSE_VALIDATORS=yes
1514
1515 DEFAULT_wxUSE_ACCEL=yes
1516 DEFAULT_wxUSE_CARET=yes
1517 DEFAULT_wxUSE_BMPBUTTON=yes
1518 DEFAULT_wxUSE_CHECKBOX=yes
1519 DEFAULT_wxUSE_CHECKLST=yes
1520 DEFAULT_wxUSE_CHOICE=yes
1521 DEFAULT_wxUSE_COMBOBOX=yes
1522 DEFAULT_wxUSE_GAUGE=yes
1523 DEFAULT_wxUSE_GRID=yes
cc977e5f 1524 DEFAULT_wxUSE_NEW_GRID=yes
10f2d63a
VZ
1525 DEFAULT_wxUSE_IMAGLIST=yes
1526 DEFAULT_wxUSE_LISTBOX=yes
1527 DEFAULT_wxUSE_LISTCTRL=yes
1528 DEFAULT_wxUSE_NOTEBOOK=yes
1529 DEFAULT_wxUSE_RADIOBOX=yes
1530 DEFAULT_wxUSE_RADIOBTN=yes
1531 DEFAULT_wxUSE_SASH=yes
1532 DEFAULT_wxUSE_SCROLLBAR=yes
1533 DEFAULT_wxUSE_SLIDER=yes
1534 DEFAULT_wxUSE_SPINBTN=yes
56cfaa52 1535 DEFAULT_wxUSE_SPINCTRL=yes
10f2d63a
VZ
1536 DEFAULT_wxUSE_SPLITTER=yes
1537 DEFAULT_wxUSE_STATBMP=yes
1538 DEFAULT_wxUSE_STATBOX=yes
1539 DEFAULT_wxUSE_STATLINE=yes
1540 DEFAULT_wxUSE_STATUSBAR=yes
1541 DEFAULT_wxUSE_TABDIALOG=no
1db8dc4a 1542 DEFAULT_wxUSE_TOGGLEBTN=yes
10f2d63a 1543 DEFAULT_wxUSE_TOOLBAR=yes
360d6699
VZ
1544 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
1545 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
10f2d63a
VZ
1546 DEFAULT_wxUSE_TREECTRL=yes
1547
1548 DEFAULT_wxUSE_UNICODE=no
1549 DEFAULT_wxUSE_WCSRTOMBS=no
1550
0046ff7c 1551 DEFAULT_wxUSE_IMAGE=yes
10f2d63a
VZ
1552 DEFAULT_wxUSE_GIF=yes
1553 DEFAULT_wxUSE_PCX=yes
1554 DEFAULT_wxUSE_PNM=yes
0046ff7c 1555 DEFAULT_wxUSE_XPM=yes
10f2d63a
VZ
1556fi
1557
1558
1559
1560for toolkit in `echo $ALL_TOOLKITS`; do
1561 LINE=`grep "wxUSE_$toolkit" ${wx_arg_cache_file}`
1562 if test "x$LINE" != x ; then
1563 has_toolkit_in_cache=1
1564 eval "DEFAULT_$LINE"
1565 eval "CACHE_$toolkit=1"
1566 fi
1567done
1568
1569
1570
1571 echo $ac_n "checking "for --enable-gui"""... $ac_c" 1>&6
1216f52d 1572echo "configure:1573: checking "for --enable-gui"" >&5
10f2d63a
VZ
1573 no_cache=0
1574 # Check whether --enable-gui or --disable-gui was given.
1575if test "${enable_gui+set}" = set; then
1576 enableval="$enable_gui"
1577
1578 if test "$enableval" = yes; then
1579 ac_cv_use_gui='wxUSE_GUI=yes'
1580 else
1581 ac_cv_use_gui='wxUSE_GUI=no'
1582 fi
1583
1584else
1585
1586 LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
1587 if test "x$LINE" != x ; then
1588 eval "DEFAULT_$LINE"
1589 else
1590 no_cache=1
1591 fi
1592
1593 ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
1594
1595fi
1596
1597
1598 eval "$ac_cv_use_gui"
1599 if test "$no_cache" != 1; then
1600 echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
1601 fi
1602
1603 if test "$wxUSE_GUI" = yes; then
1604 echo "$ac_t""yes" 1>&6
1605 else
1606 echo "$ac_t""no" 1>&6
1607 fi
1608
1609
b12915c1 1610if test "$wxUSE_GUI" = "yes"; then
10f2d63a
VZ
1611
1612# Check whether --with-gtk or --without-gtk was given.
1613if test "${with_gtk+set}" = set; then
1614 withval="$with_gtk"
1615 wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
1616fi
1617
1618# Check whether --with-motif or --without-motif was given.
1619if test "${with_motif+set}" = set; then
1620 withval="$with_motif"
1621 wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
1622fi
1623
b4085ce6
GD
1624# Check whether --with-mac or --without-mac was given.
1625if test "${with_mac+set}" = set; then
1626 withval="$with_mac"
1627 wxUSE_MAC="$withval" TOOLKIT_GIVEN=1
1628fi
1629
10f2d63a
VZ
1630# Check whether --with-wine or --without-wine was given.
1631if test "${with_wine+set}" = set; then
1632 withval="$with_wine"
1633 wxUSE_WINE="$withval" CACHE_WINE=1 TOOLKIT_GIVEN=1
1634fi
1635
1636# Check whether --with-cygwin or --without-cygwin was given.
1637if test "${with_cygwin+set}" = set; then
1638 withval="$with_cygwin"
1639 wxUSE_CYGWIN="$withval" CACHE_CYGWIN=1 TOOLKIT_GIVEN=1
1640fi
1641
1642# Check whether --with-mingw or --without-mingw was given.
1643if test "${with_mingw+set}" = set; then
1644 withval="$with_mingw"
1645 wxUSE_MINGW="$withval" CACHE_MINGW=1 TOOLKIT_GIVEN=1
1646fi
1647
e07802fc
VZ
1648# Check whether --with-pm or --without-pm was given.
1649if test "${with_pm+set}" = set; then
1650 withval="$with_pm"
1651 wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
1652fi
1653
10f2d63a
VZ
1654
1655# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
1656if test "${with_gtk_prefix+set}" = set; then
1657 withval="$with_gtk_prefix"
1658 gtk_config_prefix="$withval"
1659else
1660 gtk_config_prefix=""
1661fi
1662
1663# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
1664if test "${with_gtk_exec_prefix+set}" = set; then
1665 withval="$with_gtk_exec_prefix"
1666 gtk_config_exec_prefix="$withval"
1667else
1668 gtk_config_exec_prefix=""
1669fi
1670
1671
1672
b12915c1 1673 echo $ac_n "checking "for --with-libpng"""... $ac_c" 1>&6
1216f52d 1674echo "configure:1675: checking "for --with-libpng"" >&5
10f2d63a 1675 no_cache=0
b12915c1
VZ
1676 # Check whether --with-libpng or --without-libpng was given.
1677if test "${with_libpng+set}" = set; then
1678 withval="$with_libpng"
10f2d63a
VZ
1679
1680 if test "$withval" = yes; then
b12915c1 1681 ac_cv_use_libpng='wxUSE_LIBPNG=yes'
422107f9 1682 elif test "$withval" = no; then
b12915c1 1683 ac_cv_use_libpng='wxUSE_LIBPNG=no'
422107f9
VZ
1684 elif test "$withval" = sys; then
1685 ac_cv_use_libpng='wxUSE_LIBPNG=sys'
1686 else
1687 { echo "configure: error: Invalid value for --with-libpng: should be yes, no or sys" 1>&2; exit 1; }
10f2d63a
VZ
1688 fi
1689
1690else
1691
b12915c1 1692 LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
10f2d63a
VZ
1693 if test "x$LINE" != x ; then
1694 eval "DEFAULT_$LINE"
1695 else
1696 no_cache=1
1697 fi
1698
b12915c1 1699 ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
10f2d63a
VZ
1700
1701fi
1702
1703
b12915c1 1704 eval "$ac_cv_use_libpng"
10f2d63a 1705 if test "$no_cache" != 1; then
b12915c1 1706 echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
1707 fi
1708
b12915c1 1709 if test "$wxUSE_LIBPNG" = yes; then
10f2d63a 1710 echo "$ac_t""yes" 1>&6
422107f9 1711 elif test "$wxUSE_LIBPNG" = no; then
10f2d63a 1712 echo "$ac_t""no" 1>&6
422107f9
VZ
1713 elif test "$wxUSE_LIBPNG" = sys; then
1714 echo "$ac_t""system version" 1>&6
1715 else
1716 { echo "configure: error: Invalid value for --with-libpng: should be yes, no or sys" 1>&2; exit 1; }
10f2d63a
VZ
1717 fi
1718
1719
b12915c1 1720 echo $ac_n "checking "for --with-libjpeg"""... $ac_c" 1>&6
1216f52d 1721echo "configure:1722: checking "for --with-libjpeg"" >&5
10f2d63a 1722 no_cache=0
b12915c1
VZ
1723 # Check whether --with-libjpeg or --without-libjpeg was given.
1724if test "${with_libjpeg+set}" = set; then
1725 withval="$with_libjpeg"
10f2d63a
VZ
1726
1727 if test "$withval" = yes; then
b12915c1 1728 ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
422107f9 1729 elif test "$withval" = no; then
b12915c1 1730 ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
422107f9
VZ
1731 elif test "$withval" = sys; then
1732 ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
1733 else
1734 { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no or sys" 1>&2; exit 1; }
10f2d63a
VZ
1735 fi
1736
1737else
1738
b12915c1 1739 LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
10f2d63a
VZ
1740 if test "x$LINE" != x ; then
1741 eval "DEFAULT_$LINE"
1742 else
1743 no_cache=1
1744 fi
1745
b12915c1 1746 ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
10f2d63a
VZ
1747
1748fi
1749
1750
b12915c1 1751 eval "$ac_cv_use_libjpeg"
10f2d63a 1752 if test "$no_cache" != 1; then
b12915c1 1753 echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
1754 fi
1755
b12915c1 1756 if test "$wxUSE_LIBJPEG" = yes; then
10f2d63a 1757 echo "$ac_t""yes" 1>&6
422107f9 1758 elif test "$wxUSE_LIBJPEG" = no; then
10f2d63a 1759 echo "$ac_t""no" 1>&6
422107f9
VZ
1760 elif test "$wxUSE_LIBJPEG" = sys; then
1761 echo "$ac_t""system version" 1>&6
1762 else
1763 { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no or sys" 1>&2; exit 1; }
10f2d63a
VZ
1764 fi
1765
1766
b12915c1 1767 echo $ac_n "checking "for --with-libtiff"""... $ac_c" 1>&6
1216f52d 1768echo "configure:1769: checking "for --with-libtiff"" >&5
10f2d63a 1769 no_cache=0
b12915c1
VZ
1770 # Check whether --with-libtiff or --without-libtiff was given.
1771if test "${with_libtiff+set}" = set; then
1772 withval="$with_libtiff"
10f2d63a
VZ
1773
1774 if test "$withval" = yes; then
b12915c1 1775 ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
0dcf9893 1776 elif test "$withval" = no; then
b12915c1 1777 ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
0dcf9893
VZ
1778 elif test "$withval" = sys; then
1779 ac_cv_use_libtiff='wxUSE_LIBTIFF=sys'
1780 else
1781 { echo "configure: error: Invalid value for --with-libtiff: should be yes, no or sys" 1>&2; exit 1; }
10f2d63a
VZ
1782 fi
1783
1784else
1785
b12915c1 1786 LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
10f2d63a
VZ
1787 if test "x$LINE" != x ; then
1788 eval "DEFAULT_$LINE"
1789 else
1790 no_cache=1
1791 fi
1792
b12915c1 1793 ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
10f2d63a
VZ
1794
1795fi
1796
1797
b12915c1 1798 eval "$ac_cv_use_libtiff"
10f2d63a 1799 if test "$no_cache" != 1; then
b12915c1 1800 echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
1801 fi
1802
b12915c1 1803 if test "$wxUSE_LIBTIFF" = yes; then
10f2d63a 1804 echo "$ac_t""yes" 1>&6
0dcf9893 1805 elif test "$wxUSE_LIBTIFF" = no; then
10f2d63a 1806 echo "$ac_t""no" 1>&6
0dcf9893
VZ
1807 elif test "$wxUSE_LIBTIFF" = sys; then
1808 echo "$ac_t""system version" 1>&6
1809 else
1810 { echo "configure: error: Invalid value for --with-libtiff: should be yes, no or sys" 1>&2; exit 1; }
10f2d63a
VZ
1811 fi
1812
1813
3fed1840 1814 echo $ac_n "checking "for --with-freetype"""... $ac_c" 1>&6
1216f52d 1815echo "configure:1816: checking "for --with-freetype"" >&5
3fed1840
RR
1816 no_cache=0
1817 # Check whether --with-freetype or --without-freetype was given.
1818if test "${with_freetype+set}" = set; then
1819 withval="$with_freetype"
1820
1821 if test "$withval" = yes; then
1822 ac_cv_use_freetype='wxUSE_FREETYPE=yes'
1823 elif test "$withval" = no; then
1824 ac_cv_use_freetype='wxUSE_FREETYPE=no'
1825 elif test "$withval" = sys; then
1826 ac_cv_use_freetype='wxUSE_FREETYPE=sys'
1827 else
1828 { echo "configure: error: Invalid value for --with-freetype: should be yes, no or sys" 1>&2; exit 1; }
1829 fi
1830
1831else
1832
1833 LINE=`grep "wxUSE_FREETYPE" ${wx_arg_cache_file}`
1834 if test "x$LINE" != x ; then
1835 eval "DEFAULT_$LINE"
1836 else
1837 no_cache=1
1838 fi
1839
1840 ac_cv_use_freetype='wxUSE_FREETYPE='$DEFAULT_wxUSE_FREETYPE
1841
1842fi
1843
1844
1845 eval "$ac_cv_use_freetype"
1846 if test "$no_cache" != 1; then
1847 echo $ac_cv_use_freetype >> ${wx_arg_cache_file}.tmp
1848 fi
1849
1850 if test "$wxUSE_FREETYPE" = yes; then
1851 echo "$ac_t""yes" 1>&6
1852 elif test "$wxUSE_FREETYPE" = no; then
1853 echo "$ac_t""no" 1>&6
1854 elif test "$wxUSE_FREETYPE" = sys; then
1855 echo "$ac_t""system version" 1>&6
1856 else
1857 { echo "configure: error: Invalid value for --with-freetype: should be yes, no or sys" 1>&2; exit 1; }
1858 fi
1859
1860
b12915c1 1861 echo $ac_n "checking "for --with-opengl"""... $ac_c" 1>&6
1216f52d 1862echo "configure:1863: checking "for --with-opengl"" >&5
10f2d63a 1863 no_cache=0
b12915c1
VZ
1864 # Check whether --with-opengl or --without-opengl was given.
1865if test "${with_opengl+set}" = set; then
1866 withval="$with_opengl"
10f2d63a
VZ
1867
1868 if test "$withval" = yes; then
b12915c1 1869 ac_cv_use_opengl='wxUSE_OPENGL=yes'
10f2d63a 1870 else
b12915c1 1871 ac_cv_use_opengl='wxUSE_OPENGL=no'
10f2d63a
VZ
1872 fi
1873
1874else
1875
b12915c1 1876 LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
10f2d63a
VZ
1877 if test "x$LINE" != x ; then
1878 eval "DEFAULT_$LINE"
1879 else
1880 no_cache=1
1881 fi
1882
b12915c1 1883 ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
10f2d63a
VZ
1884
1885fi
1886
1887
b12915c1 1888 eval "$ac_cv_use_opengl"
10f2d63a 1889 if test "$no_cache" != 1; then
b12915c1 1890 echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
1891 fi
1892
b12915c1 1893 if test "$wxUSE_OPENGL" = yes; then
10f2d63a
VZ
1894 echo "$ac_t""yes" 1>&6
1895 else
1896 echo "$ac_t""no" 1>&6
1897 fi
1898
1899
b12915c1
VZ
1900fi
1901
1902
1903 echo $ac_n "checking "for --with-dmalloc"""... $ac_c" 1>&6
1216f52d 1904echo "configure:1905: checking "for --with-dmalloc"" >&5
c7a2bf27 1905 no_cache=0
b12915c1
VZ
1906 # Check whether --with-dmalloc or --without-dmalloc was given.
1907if test "${with_dmalloc+set}" = set; then
1908 withval="$with_dmalloc"
c7a2bf27
RR
1909
1910 if test "$withval" = yes; then
b12915c1 1911 ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
c7a2bf27 1912 else
b12915c1 1913 ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
c7a2bf27
RR
1914 fi
1915
1916else
1917
b12915c1 1918 LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
c7a2bf27
RR
1919 if test "x$LINE" != x ; then
1920 eval "DEFAULT_$LINE"
1921 else
1922 no_cache=1
1923 fi
1924
b12915c1 1925 ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
c7a2bf27
RR
1926
1927fi
1928
1929
b12915c1 1930 eval "$ac_cv_use_dmalloc"
c7a2bf27 1931 if test "$no_cache" != 1; then
b12915c1 1932 echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
c7a2bf27
RR
1933 fi
1934
b12915c1 1935 if test "$wxUSE_DMALLOC" = yes; then
c7a2bf27
RR
1936 echo "$ac_t""yes" 1>&6
1937 else
1938 echo "$ac_t""no" 1>&6
1939 fi
1940
1941
b12915c1 1942 echo $ac_n "checking "for --with-zlib"""... $ac_c" 1>&6
1216f52d 1943echo "configure:1944: checking "for --with-zlib"" >&5
10f2d63a 1944 no_cache=0
b12915c1
VZ
1945 # Check whether --with-zlib or --without-zlib was given.
1946if test "${with_zlib+set}" = set; then
1947 withval="$with_zlib"
10f2d63a
VZ
1948
1949 if test "$withval" = yes; then
b12915c1 1950 ac_cv_use_zlib='wxUSE_ZLIB=yes'
422107f9 1951 elif test "$withval" = no; then
b12915c1 1952 ac_cv_use_zlib='wxUSE_ZLIB=no'
422107f9
VZ
1953 elif test "$withval" = sys; then
1954 ac_cv_use_zlib='wxUSE_ZLIB=sys'
1955 else
1956 { echo "configure: error: Invalid value for --with-zlib: should be yes, no or sys" 1>&2; exit 1; }
10f2d63a
VZ
1957 fi
1958
1959else
1960
b12915c1 1961 LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
10f2d63a
VZ
1962 if test "x$LINE" != x ; then
1963 eval "DEFAULT_$LINE"
1964 else
1965 no_cache=1
1966 fi
1967
b12915c1 1968 ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
10f2d63a
VZ
1969
1970fi
1971
1972
b12915c1 1973 eval "$ac_cv_use_zlib"
10f2d63a 1974 if test "$no_cache" != 1; then
b12915c1 1975 echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
1976 fi
1977
b12915c1 1978 if test "$wxUSE_ZLIB" = yes; then
10f2d63a 1979 echo "$ac_t""yes" 1>&6
422107f9 1980 elif test "$wxUSE_ZLIB" = no; then
bdad4e7e 1981 echo "$ac_t""no" 1>&6
422107f9
VZ
1982 elif test "$wxUSE_ZLIB" = sys; then
1983 echo "$ac_t""system version" 1>&6
1984 else
1985 { echo "configure: error: Invalid value for --with-zlib: should be yes, no or sys" 1>&2; exit 1; }
10f2d63a
VZ
1986 fi
1987
1988
1989 echo $ac_n "checking "for --with-odbc"""... $ac_c" 1>&6
1216f52d 1990echo "configure:1991: checking "for --with-odbc"" >&5
10f2d63a
VZ
1991 no_cache=0
1992 # Check whether --with-odbc or --without-odbc was given.
1993if test "${with_odbc+set}" = set; then
1994 withval="$with_odbc"
1995
1996 if test "$withval" = yes; then
1997 ac_cv_use_odbc='wxUSE_ODBC=yes'
1998 else
1999 ac_cv_use_odbc='wxUSE_ODBC=no'
2000 fi
2001
2002else
2003
2004 LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
2005 if test "x$LINE" != x ; then
2006 eval "DEFAULT_$LINE"
2007 else
2008 no_cache=1
2009 fi
2010
2011 ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
2012
2013fi
2014
2015
2016 eval "$ac_cv_use_odbc"
2017 if test "$no_cache" != 1; then
2018 echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
2019 fi
2020
2021 if test "$wxUSE_ODBC" = yes; then
2022 echo "$ac_t""yes" 1>&6
2023 else
2024 echo "$ac_t""no" 1>&6
2025 fi
2026
2027
2028
2029
2030
2031 echo $ac_n "checking "for --enable-shared"""... $ac_c" 1>&6
1216f52d 2032echo "configure:2033: checking "for --enable-shared"" >&5
10f2d63a
VZ
2033 no_cache=0
2034 # Check whether --enable-shared or --disable-shared was given.
2035if test "${enable_shared+set}" = set; then
2036 enableval="$enable_shared"
2037
2038 if test "$enableval" = yes; then
2039 ac_cv_use_shared='wxUSE_SHARED=yes'
2040 else
2041 ac_cv_use_shared='wxUSE_SHARED=no'
2042 fi
2043
2044else
2045
2046 LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
2047 if test "x$LINE" != x ; then
2048 eval "DEFAULT_$LINE"
2049 else
2050 no_cache=1
2051 fi
2052
2053 ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
2054
2055fi
2056
2057
2058 eval "$ac_cv_use_shared"
2059 if test "$no_cache" != 1; then
2060 echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
2061 fi
2062
2063 if test "$wxUSE_SHARED" = yes; then
2064 echo "$ac_t""yes" 1>&6
2065 else
2066 echo "$ac_t""no" 1>&6
2067 fi
2068
2069
00cf1208 2070 echo $ac_n "checking "for --enable-burnt_name"""... $ac_c" 1>&6
1216f52d 2071echo "configure:2072: checking "for --enable-burnt_name"" >&5
00cf1208
RR
2072 no_cache=0
2073 # Check whether --enable-burnt_name or --disable-burnt_name was given.
2074if test "${enable_burnt_name+set}" = set; then
2075 enableval="$enable_burnt_name"
2076
2077 if test "$enableval" = yes; then
2078 ac_cv_use_burnt_name='wxUSE_BURNT_NAME=yes'
2079 else
2080 ac_cv_use_burnt_name='wxUSE_BURNT_NAME=no'
2081 fi
2082
2083else
2084
2085 LINE=`grep "wxUSE_BURNT_NAME" ${wx_arg_cache_file}`
2086 if test "x$LINE" != x ; then
2087 eval "DEFAULT_$LINE"
2088 else
2089 no_cache=1
2090 fi
2091
2092 ac_cv_use_burnt_name='wxUSE_BURNT_NAME='$DEFAULT_wxUSE_BURNT_NAME
2093
2094fi
2095
2096
2097 eval "$ac_cv_use_burnt_name"
2098 if test "$no_cache" != 1; then
2099 echo $ac_cv_use_burnt_name >> ${wx_arg_cache_file}.tmp
2100 fi
2101
2102 if test "$wxUSE_BURNT_NAME" = yes; then
2103 echo "$ac_t""yes" 1>&6
2104 else
2105 echo "$ac_t""no" 1>&6
2106 fi
2107
2108
10f2d63a 2109 echo $ac_n "checking "for --enable-optimise"""... $ac_c" 1>&6
1216f52d 2110echo "configure:2111: checking "for --enable-optimise"" >&5
10f2d63a
VZ
2111 no_cache=0
2112 # Check whether --enable-optimise or --disable-optimise was given.
2113if test "${enable_optimise+set}" = set; then
2114 enableval="$enable_optimise"
2115
2116 if test "$enableval" = yes; then
2117 ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
2118 else
2119 ac_cv_use_optimise='wxUSE_OPTIMISE=no'
2120 fi
2121
2122else
2123
2124 LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
2125 if test "x$LINE" != x ; then
2126 eval "DEFAULT_$LINE"
2127 else
2128 no_cache=1
2129 fi
2130
2131 ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
2132
2133fi
2134
2135
2136 eval "$ac_cv_use_optimise"
2137 if test "$no_cache" != 1; then
2138 echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
2139 fi
2140
2141 if test "$wxUSE_OPTIMISE" = yes; then
2142 echo "$ac_t""yes" 1>&6
2143 else
2144 echo "$ac_t""no" 1>&6
2145 fi
2146
2147
2148 echo $ac_n "checking "for --enable-debug"""... $ac_c" 1>&6
1216f52d 2149echo "configure:2150: checking "for --enable-debug"" >&5
10f2d63a
VZ
2150 no_cache=0
2151 # Check whether --enable-debug or --disable-debug was given.
2152if test "${enable_debug+set}" = set; then
2153 enableval="$enable_debug"
2154
2155 if test "$enableval" = yes; then
2156 ac_cv_use_debug='wxUSE_DEBUG=yes'
2157 else
2158 ac_cv_use_debug='wxUSE_DEBUG=no'
2159 fi
2160
2161else
2162
2163 LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
2164 if test "x$LINE" != x ; then
2165 eval "DEFAULT_$LINE"
2166 else
2167 no_cache=1
2168 fi
2169
2170 ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
2171
2172fi
2173
2174
2175 eval "$ac_cv_use_debug"
2176 if test "$no_cache" != 1; then
2177 echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
2178 fi
2179
2180 if test "$wxUSE_DEBUG" = yes; then
2181 echo "$ac_t""yes" 1>&6
2182 else
2183 echo "$ac_t""no" 1>&6
2184 fi
2185
2186
2187if test "$wxUSE_DEBUG" = "yes"; then
2188 DEFAULT_wxUSE_DEBUG_FLAG=yes
2189 DEFAULT_wxUSE_DEBUG_INFO=yes
2190elif test "$wxUSE_DEBUG" = "no"; then
2191 DEFAULT_wxUSE_DEBUG_FLAG=no
2192 DEFAULT_wxUSE_DEBUG_INFO=no
2193fi
2194
2195
2196 echo $ac_n "checking "for --enable-debug_flag"""... $ac_c" 1>&6
1216f52d 2197echo "configure:2198: checking "for --enable-debug_flag"" >&5
10f2d63a
VZ
2198 no_cache=0
2199 # Check whether --enable-debug_flag or --disable-debug_flag was given.
2200if test "${enable_debug_flag+set}" = set; then
2201 enableval="$enable_debug_flag"
2202
2203 if test "$enableval" = yes; then
2204 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
2205 else
2206 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
2207 fi
2208
2209else
2210
2211 LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
2212 if test "x$LINE" != x ; then
2213 eval "DEFAULT_$LINE"
2214 else
2215 no_cache=1
2216 fi
2217
2218 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
2219
2220fi
2221
2222
2223 eval "$ac_cv_use_debug_flag"
2224 if test "$no_cache" != 1; then
2225 echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
2226 fi
2227
2228 if test "$wxUSE_DEBUG_FLAG" = yes; then
2229 echo "$ac_t""yes" 1>&6
2230 else
2231 echo "$ac_t""no" 1>&6
2232 fi
2233
2234
2235 echo $ac_n "checking "for --enable-debug_info"""... $ac_c" 1>&6
1216f52d 2236echo "configure:2237: checking "for --enable-debug_info"" >&5
10f2d63a
VZ
2237 no_cache=0
2238 # Check whether --enable-debug_info or --disable-debug_info was given.
2239if test "${enable_debug_info+set}" = set; then
2240 enableval="$enable_debug_info"
2241
2242 if test "$enableval" = yes; then
2243 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
2244 else
2245 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
2246 fi
2247
2248else
2249
2250 LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
2251 if test "x$LINE" != x ; then
2252 eval "DEFAULT_$LINE"
2253 else
2254 no_cache=1
2255 fi
2256
2257 ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
2258
2259fi
2260
2261
2262 eval "$ac_cv_use_debug_info"
2263 if test "$no_cache" != 1; then
2264 echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
2265 fi
2266
2267 if test "$wxUSE_DEBUG_INFO" = yes; then
2268 echo "$ac_t""yes" 1>&6
2269 else
2270 echo "$ac_t""no" 1>&6
2271 fi
2272
2273
2274 echo $ac_n "checking "for --enable-debug_gdb"""... $ac_c" 1>&6
1216f52d 2275echo "configure:2276: checking "for --enable-debug_gdb"" >&5
10f2d63a
VZ
2276 no_cache=0
2277 # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
2278if test "${enable_debug_gdb+set}" = set; then
2279 enableval="$enable_debug_gdb"
2280
2281 if test "$enableval" = yes; then
2282 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
2283 else
2284 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
2285 fi
2286
2287else
2288
2289 LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
2290 if test "x$LINE" != x ; then
2291 eval "DEFAULT_$LINE"
2292 else
2293 no_cache=1
2294 fi
2295
2296 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
2297
2298fi
2299
2300
2301 eval "$ac_cv_use_debug_gdb"
2302 if test "$no_cache" != 1; then
2303 echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
2304 fi
2305
2306 if test "$wxUSE_DEBUG_GDB" = yes; then
2307 echo "$ac_t""yes" 1>&6
2308 else
2309 echo "$ac_t""no" 1>&6
2310 fi
2311
2312
2313 echo $ac_n "checking "for --enable-debug_cntxt"""... $ac_c" 1>&6
1216f52d 2314echo "configure:2315: checking "for --enable-debug_cntxt"" >&5
10f2d63a
VZ
2315 no_cache=0
2316 # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
2317if test "${enable_debug_cntxt+set}" = set; then
2318 enableval="$enable_debug_cntxt"
2319
2320 if test "$enableval" = yes; then
2321 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
2322 else
2323 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
2324 fi
2325
2326else
2327
2328 LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
2329 if test "x$LINE" != x ; then
2330 eval "DEFAULT_$LINE"
2331 else
2332 no_cache=1
2333 fi
2334
2335 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
2336
2337fi
2338
2339
2340 eval "$ac_cv_use_debug_cntxt"
2341 if test "$no_cache" != 1; then
2342 echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
2343 fi
2344
2345 if test "$wxUSE_DEBUG_CONTEXT" = yes; then
2346 echo "$ac_t""yes" 1>&6
2347 else
2348 echo "$ac_t""no" 1>&6
2349 fi
2350
2351
2352 echo $ac_n "checking "for --enable-mem_tracing"""... $ac_c" 1>&6
1216f52d 2353echo "configure:2354: checking "for --enable-mem_tracing"" >&5
10f2d63a
VZ
2354 no_cache=0
2355 # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
2356if test "${enable_mem_tracing+set}" = set; then
2357 enableval="$enable_mem_tracing"
2358
2359 if test "$enableval" = yes; then
2360 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
2361 else
2362 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
2363 fi
2364
2365else
2366
2367 LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
2368 if test "x$LINE" != x ; then
2369 eval "DEFAULT_$LINE"
2370 else
2371 no_cache=1
2372 fi
2373
2374 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
2375
2376fi
2377
2378
2379 eval "$ac_cv_use_mem_tracing"
2380 if test "$no_cache" != 1; then
2381 echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
2382 fi
2383
2384 if test "$wxUSE_MEM_TRACING" = yes; then
2385 echo "$ac_t""yes" 1>&6
2386 else
2387 echo "$ac_t""no" 1>&6
2388 fi
2389
2390
2391 echo $ac_n "checking "for --enable-profile"""... $ac_c" 1>&6
1216f52d 2392echo "configure:2393: checking "for --enable-profile"" >&5
10f2d63a
VZ
2393 no_cache=0
2394 # Check whether --enable-profile or --disable-profile was given.
2395if test "${enable_profile+set}" = set; then
2396 enableval="$enable_profile"
2397
2398 if test "$enableval" = yes; then
2399 ac_cv_use_profile='wxUSE_PROFILE=yes'
2400 else
2401 ac_cv_use_profile='wxUSE_PROFILE=no'
2402 fi
2403
2404else
2405
2406 LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
2407 if test "x$LINE" != x ; then
2408 eval "DEFAULT_$LINE"
2409 else
2410 no_cache=1
2411 fi
2412
2413 ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
2414
2415fi
2416
2417
2418 eval "$ac_cv_use_profile"
2419 if test "$no_cache" != 1; then
2420 echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
2421 fi
2422
2423 if test "$wxUSE_PROFILE" = yes; then
2424 echo "$ac_t""yes" 1>&6
2425 else
2426 echo "$ac_t""no" 1>&6
2427 fi
2428
2429
2430 echo $ac_n "checking "for --enable-no_rtti"""... $ac_c" 1>&6
1216f52d 2431echo "configure:2432: checking "for --enable-no_rtti"" >&5
10f2d63a
VZ
2432 no_cache=0
2433 # Check whether --enable-no_rtti or --disable-no_rtti was given.
2434if test "${enable_no_rtti+set}" = set; then
2435 enableval="$enable_no_rtti"
2436
2437 if test "$enableval" = yes; then
2438 ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
2439 else
2440 ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
2441 fi
2442
2443else
2444
2445 LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
2446 if test "x$LINE" != x ; then
2447 eval "DEFAULT_$LINE"
2448 else
2449 no_cache=1
2450 fi
2451
2452 ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
2453
2454fi
2455
2456
2457 eval "$ac_cv_use_no_rtti"
2458 if test "$no_cache" != 1; then
2459 echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
2460 fi
2461
2462 if test "$wxUSE_NO_RTTI" = yes; then
2463 echo "$ac_t""yes" 1>&6
2464 else
2465 echo "$ac_t""no" 1>&6
2466 fi
2467
2468
2469 echo $ac_n "checking "for --enable-no_exceptions"""... $ac_c" 1>&6
1216f52d 2470echo "configure:2471: checking "for --enable-no_exceptions"" >&5
10f2d63a
VZ
2471 no_cache=0
2472 # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
2473if test "${enable_no_exceptions+set}" = set; then
2474 enableval="$enable_no_exceptions"
2475
2476 if test "$enableval" = yes; then
2477 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
2478 else
2479 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
2480 fi
2481
2482else
2483
2484 LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
2485 if test "x$LINE" != x ; then
2486 eval "DEFAULT_$LINE"
2487 else
2488 no_cache=1
2489 fi
2490
2491 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
2492
2493fi
2494
2495
2496 eval "$ac_cv_use_no_exceptions"
2497 if test "$no_cache" != 1; then
2498 echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
2499 fi
2500
2501 if test "$wxUSE_NO_EXCEPTIONS" = yes; then
2502 echo "$ac_t""yes" 1>&6
2503 else
2504 echo "$ac_t""no" 1>&6
2505 fi
2506
2507
2508 echo $ac_n "checking "for --enable-permissive"""... $ac_c" 1>&6
1216f52d 2509echo "configure:2510: checking "for --enable-permissive"" >&5
10f2d63a
VZ
2510 no_cache=0
2511 # Check whether --enable-permissive or --disable-permissive was given.
2512if test "${enable_permissive+set}" = set; then
2513 enableval="$enable_permissive"
2514
2515 if test "$enableval" = yes; then
2516 ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
2517 else
2518 ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
2519 fi
2520
2521else
2522
2523 LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
2524 if test "x$LINE" != x ; then
2525 eval "DEFAULT_$LINE"
2526 else
2527 no_cache=1
2528 fi
2529
2530 ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
2531
2532fi
2533
2534
2535 eval "$ac_cv_use_permissive"
2536 if test "$no_cache" != 1; then
2537 echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
2538 fi
2539
2540 if test "$wxUSE_PERMISSIVE" = yes; then
2541 echo "$ac_t""yes" 1>&6
2542 else
2543 echo "$ac_t""no" 1>&6
2544 fi
2545
2546
2547 echo $ac_n "checking "for --enable-no_deps"""... $ac_c" 1>&6
1216f52d 2548echo "configure:2549: checking "for --enable-no_deps"" >&5
10f2d63a
VZ
2549 no_cache=0
2550 # Check whether --enable-no_deps or --disable-no_deps was given.
2551if test "${enable_no_deps+set}" = set; then
2552 enableval="$enable_no_deps"
2553
2554 if test "$enableval" = yes; then
2555 ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
2556 else
2557 ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
2558 fi
2559
2560else
2561
2562 LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
2563 if test "x$LINE" != x ; then
2564 eval "DEFAULT_$LINE"
2565 else
2566 no_cache=1
2567 fi
2568
2569 ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
2570
2571fi
2572
2573
2574 eval "$ac_cv_use_no_deps"
2575 if test "$no_cache" != 1; then
2576 echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
2577 fi
2578
2579 if test "$wxUSE_NO_DEPS" = yes; then
2580 echo "$ac_t""yes" 1>&6
2581 else
2582 echo "$ac_t""no" 1>&6
2583 fi
2584
2585
2586
2587
2588 echo $ac_n "checking "for --enable-intl"""... $ac_c" 1>&6
1216f52d 2589echo "configure:2590: checking "for --enable-intl"" >&5
10f2d63a
VZ
2590 no_cache=0
2591 # Check whether --enable-intl or --disable-intl was given.
2592if test "${enable_intl+set}" = set; then
2593 enableval="$enable_intl"
2594
2595 if test "$enableval" = yes; then
2596 ac_cv_use_intl='wxUSE_INTL=yes'
2597 else
2598 ac_cv_use_intl='wxUSE_INTL=no'
2599 fi
2600
2601else
2602
2603 LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
2604 if test "x$LINE" != x ; then
2605 eval "DEFAULT_$LINE"
2606 else
2607 no_cache=1
2608 fi
2609
2610 ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
2611
2612fi
2613
2614
2615 eval "$ac_cv_use_intl"
2616 if test "$no_cache" != 1; then
2617 echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
2618 fi
2619
2620 if test "$wxUSE_INTL" = yes; then
2621 echo "$ac_t""yes" 1>&6
2622 else
2623 echo "$ac_t""no" 1>&6
2624 fi
2625
2626
2627 echo $ac_n "checking "for --enable-config"""... $ac_c" 1>&6
1216f52d 2628echo "configure:2629: checking "for --enable-config"" >&5
10f2d63a
VZ
2629 no_cache=0
2630 # Check whether --enable-config or --disable-config was given.
2631if test "${enable_config+set}" = set; then
2632 enableval="$enable_config"
2633
2634 if test "$enableval" = yes; then
2635 ac_cv_use_config='wxUSE_CONFIG=yes'
2636 else
2637 ac_cv_use_config='wxUSE_CONFIG=no'
2638 fi
2639
2640else
2641
2642 LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
2643 if test "x$LINE" != x ; then
2644 eval "DEFAULT_$LINE"
2645 else
2646 no_cache=1
2647 fi
2648
2649 ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
2650
2651fi
2652
2653
2654 eval "$ac_cv_use_config"
2655 if test "$no_cache" != 1; then
2656 echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
2657 fi
2658
2659 if test "$wxUSE_CONFIG" = yes; then
2660 echo "$ac_t""yes" 1>&6
2661 else
2662 echo "$ac_t""no" 1>&6
2663 fi
2664
2665
b12915c1 2666
10f2d63a 2667 echo $ac_n "checking "for --enable-sockets"""... $ac_c" 1>&6
1216f52d 2668echo "configure:2669: checking "for --enable-sockets"" >&5
10f2d63a
VZ
2669 no_cache=0
2670 # Check whether --enable-sockets or --disable-sockets was given.
2671if test "${enable_sockets+set}" = set; then
2672 enableval="$enable_sockets"
2673
2674 if test "$enableval" = yes; then
2675 ac_cv_use_sockets='wxUSE_SOCKETS=yes'
2676 else
2677 ac_cv_use_sockets='wxUSE_SOCKETS=no'
2678 fi
2679
2680else
2681
2682 LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
2683 if test "x$LINE" != x ; then
2684 eval "DEFAULT_$LINE"
2685 else
2686 no_cache=1
2687 fi
2688
2689 ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
2690
2691fi
2692
2693
2694 eval "$ac_cv_use_sockets"
2695 if test "$no_cache" != 1; then
2696 echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
2697 fi
2698
2699 if test "$wxUSE_SOCKETS" = yes; then
2700 echo "$ac_t""yes" 1>&6
2701 else
2702 echo "$ac_t""no" 1>&6
2703 fi
2704
b12915c1 2705
10f2d63a 2706
eb4efbdc 2707 echo $ac_n "checking "for --enable-ipc"""... $ac_c" 1>&6
1216f52d 2708echo "configure:2709: checking "for --enable-ipc"" >&5
10f2d63a 2709 no_cache=0
eb4efbdc
VZ
2710 # Check whether --enable-ipc or --disable-ipc was given.
2711if test "${enable_ipc+set}" = set; then
2712 enableval="$enable_ipc"
10f2d63a
VZ
2713
2714 if test "$enableval" = yes; then
eb4efbdc 2715 ac_cv_use_ipc='wxUSE_IPC=yes'
10f2d63a 2716 else
eb4efbdc 2717 ac_cv_use_ipc='wxUSE_IPC=no'
10f2d63a
VZ
2718 fi
2719
2720else
2721
eb4efbdc 2722 LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
10f2d63a
VZ
2723 if test "x$LINE" != x ; then
2724 eval "DEFAULT_$LINE"
2725 else
2726 no_cache=1
2727 fi
2728
eb4efbdc 2729 ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
10f2d63a
VZ
2730
2731fi
2732
2733
eb4efbdc 2734 eval "$ac_cv_use_ipc"
10f2d63a 2735 if test "$no_cache" != 1; then
eb4efbdc 2736 echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2737 fi
2738
eb4efbdc 2739 if test "$wxUSE_IPC" = yes; then
10f2d63a
VZ
2740 echo "$ac_t""yes" 1>&6
2741 else
2742 echo "$ac_t""no" 1>&6
2743 fi
2744
2745
eb4efbdc
VZ
2746
2747 echo $ac_n "checking "for --enable-dialupman"""... $ac_c" 1>&6
1216f52d 2748echo "configure:2749: checking "for --enable-dialupman"" >&5
10f2d63a 2749 no_cache=0
eb4efbdc
VZ
2750 # Check whether --enable-dialupman or --disable-dialupman was given.
2751if test "${enable_dialupman+set}" = set; then
2752 enableval="$enable_dialupman"
10f2d63a
VZ
2753
2754 if test "$enableval" = yes; then
eb4efbdc 2755 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
10f2d63a 2756 else
eb4efbdc 2757 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
10f2d63a
VZ
2758 fi
2759
2760else
2761
eb4efbdc 2762 LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
10f2d63a
VZ
2763 if test "x$LINE" != x ; then
2764 eval "DEFAULT_$LINE"
2765 else
2766 no_cache=1
2767 fi
2768
eb4efbdc 2769 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
10f2d63a
VZ
2770
2771fi
2772
2773
eb4efbdc 2774 eval "$ac_cv_use_dialupman"
10f2d63a 2775 if test "$no_cache" != 1; then
eb4efbdc 2776 echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2777 fi
2778
eb4efbdc 2779 if test "$wxUSE_DIALUP_MANAGER" = yes; then
10f2d63a
VZ
2780 echo "$ac_t""yes" 1>&6
2781 else
2782 echo "$ac_t""no" 1>&6
2783 fi
2784
2785
2786 echo $ac_n "checking "for --enable-apple_ieee"""... $ac_c" 1>&6
1216f52d 2787echo "configure:2788: checking "for --enable-apple_ieee"" >&5
10f2d63a
VZ
2788 no_cache=0
2789 # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
2790if test "${enable_apple_ieee+set}" = set; then
2791 enableval="$enable_apple_ieee"
2792
2793 if test "$enableval" = yes; then
2794 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
2795 else
2796 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
2797 fi
2798
2799else
2800
2801 LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
2802 if test "x$LINE" != x ; then
2803 eval "DEFAULT_$LINE"
2804 else
2805 no_cache=1
2806 fi
2807
2808 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
2809
2810fi
2811
2812
2813 eval "$ac_cv_use_apple_ieee"
2814 if test "$no_cache" != 1; then
2815 echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
2816 fi
2817
2818 if test "$wxUSE_APPLE_IEEE" = yes; then
2819 echo "$ac_t""yes" 1>&6
2820 else
2821 echo "$ac_t""no" 1>&6
2822 fi
2823
2824
2825 echo $ac_n "checking "for --enable-timedate"""... $ac_c" 1>&6
1216f52d 2826echo "configure:2827: checking "for --enable-timedate"" >&5
10f2d63a
VZ
2827 no_cache=0
2828 # Check whether --enable-timedate or --disable-timedate was given.
2829if test "${enable_timedate+set}" = set; then
2830 enableval="$enable_timedate"
2831
2832 if test "$enableval" = yes; then
2833 ac_cv_use_timedate='wxUSE_TIMEDATE=yes'
2834 else
2835 ac_cv_use_timedate='wxUSE_TIMEDATE=no'
2836 fi
2837
2838else
2839
2840 LINE=`grep "wxUSE_TIMEDATE" ${wx_arg_cache_file}`
2841 if test "x$LINE" != x ; then
2842 eval "DEFAULT_$LINE"
2843 else
2844 no_cache=1
2845 fi
2846
2847 ac_cv_use_timedate='wxUSE_TIMEDATE='$DEFAULT_wxUSE_TIMEDATE
2848
2849fi
2850
2851
2852 eval "$ac_cv_use_timedate"
2853 if test "$no_cache" != 1; then
2854 echo $ac_cv_use_timedate >> ${wx_arg_cache_file}.tmp
2855 fi
2856
2857 if test "$wxUSE_TIMEDATE" = yes; then
2858 echo "$ac_t""yes" 1>&6
2859 else
2860 echo "$ac_t""no" 1>&6
2861 fi
2862
2863
2864 echo $ac_n "checking "for --enable-wave"""... $ac_c" 1>&6
1216f52d 2865echo "configure:2866: checking "for --enable-wave"" >&5
10f2d63a
VZ
2866 no_cache=0
2867 # Check whether --enable-wave or --disable-wave was given.
2868if test "${enable_wave+set}" = set; then
2869 enableval="$enable_wave"
2870
2871 if test "$enableval" = yes; then
2872 ac_cv_use_wave='wxUSE_WAVE=yes'
2873 else
2874 ac_cv_use_wave='wxUSE_WAVE=no'
2875 fi
2876
2877else
2878
2879 LINE=`grep "wxUSE_WAVE" ${wx_arg_cache_file}`
2880 if test "x$LINE" != x ; then
2881 eval "DEFAULT_$LINE"
2882 else
2883 no_cache=1
2884 fi
2885
2886 ac_cv_use_wave='wxUSE_WAVE='$DEFAULT_wxUSE_WAVE
2887
2888fi
2889
2890
2891 eval "$ac_cv_use_wave"
2892 if test "$no_cache" != 1; then
2893 echo $ac_cv_use_wave >> ${wx_arg_cache_file}.tmp
2894 fi
2895
2896 if test "$wxUSE_WAVE" = yes; then
2897 echo "$ac_t""yes" 1>&6
2898 else
2899 echo "$ac_t""no" 1>&6
2900 fi
2901
2902
2903 echo $ac_n "checking "for --enable-fraction"""... $ac_c" 1>&6
1216f52d 2904echo "configure:2905: checking "for --enable-fraction"" >&5
10f2d63a
VZ
2905 no_cache=0
2906 # Check whether --enable-fraction or --disable-fraction was given.
2907if test "${enable_fraction+set}" = set; then
2908 enableval="$enable_fraction"
2909
2910 if test "$enableval" = yes; then
2911 ac_cv_use_fraction='wxUSE_FRACTION=yes'
2912 else
2913 ac_cv_use_fraction='wxUSE_FRACTION=no'
2914 fi
2915
2916else
2917
2918 LINE=`grep "wxUSE_FRACTION" ${wx_arg_cache_file}`
2919 if test "x$LINE" != x ; then
2920 eval "DEFAULT_$LINE"
2921 else
2922 no_cache=1
2923 fi
2924
2925 ac_cv_use_fraction='wxUSE_FRACTION='$DEFAULT_wxUSE_FRACTION
2926
2927fi
2928
2929
2930 eval "$ac_cv_use_fraction"
2931 if test "$no_cache" != 1; then
2932 echo $ac_cv_use_fraction >> ${wx_arg_cache_file}.tmp
2933 fi
2934
2935 if test "$wxUSE_FRACTION" = yes; then
2936 echo "$ac_t""yes" 1>&6
2937 else
2938 echo "$ac_t""no" 1>&6
2939 fi
2940
2941
2942 echo $ac_n "checking "for --enable-dynlib"""... $ac_c" 1>&6
1216f52d 2943echo "configure:2944: checking "for --enable-dynlib"" >&5
10f2d63a
VZ
2944 no_cache=0
2945 # Check whether --enable-dynlib or --disable-dynlib was given.
2946if test "${enable_dynlib+set}" = set; then
2947 enableval="$enable_dynlib"
2948
2949 if test "$enableval" = yes; then
2950 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
2951 else
2952 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
2953 fi
2954
2955else
2956
2957 LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
2958 if test "x$LINE" != x ; then
2959 eval "DEFAULT_$LINE"
2960 else
2961 no_cache=1
2962 fi
2963
2964 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
2965
2966fi
2967
2968
2969 eval "$ac_cv_use_dynlib"
2970 if test "$no_cache" != 1; then
2971 echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
2972 fi
2973
2974 if test "$wxUSE_DYNLIB_CLASS" = yes; then
2975 echo "$ac_t""yes" 1>&6
2976 else
2977 echo "$ac_t""no" 1>&6
2978 fi
2979
2980
2981 echo $ac_n "checking "for --enable-longlong"""... $ac_c" 1>&6
1216f52d 2982echo "configure:2983: checking "for --enable-longlong"" >&5
10f2d63a
VZ
2983 no_cache=0
2984 # Check whether --enable-longlong or --disable-longlong was given.
2985if test "${enable_longlong+set}" = set; then
2986 enableval="$enable_longlong"
2987
2988 if test "$enableval" = yes; then
2989 ac_cv_use_longlong='wxUSE_LONGLONG=yes'
2990 else
2991 ac_cv_use_longlong='wxUSE_LONGLONG=no'
2992 fi
2993
2994else
2995
2996 LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
2997 if test "x$LINE" != x ; then
2998 eval "DEFAULT_$LINE"
2999 else
3000 no_cache=1
3001 fi
3002
3003 ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
3004
3005fi
3006
3007
3008 eval "$ac_cv_use_longlong"
3009 if test "$no_cache" != 1; then
3010 echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
3011 fi
3012
3013 if test "$wxUSE_LONGLONG" = yes; then
3014 echo "$ac_t""yes" 1>&6
3015 else
3016 echo "$ac_t""no" 1>&6
3017 fi
3018
3019
e8f65ba6 3020 echo $ac_n "checking "for --enable-geometry"""... $ac_c" 1>&6
1216f52d 3021echo "configure:3022: checking "for --enable-geometry"" >&5
e8f65ba6
RR
3022 no_cache=0
3023 # Check whether --enable-geometry or --disable-geometry was given.
3024if test "${enable_geometry+set}" = set; then
3025 enableval="$enable_geometry"
3026
3027 if test "$enableval" = yes; then
3028 ac_cv_use_geometry='wxUSE_GEOMETRY=yes'
3029 else
3030 ac_cv_use_geometry='wxUSE_GEOMETRY=no'
3031 fi
3032
3033else
3034
3035 LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}`
3036 if test "x$LINE" != x ; then
3037 eval "DEFAULT_$LINE"
3038 else
3039 no_cache=1
3040 fi
3041
3042 ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY
3043
3044fi
3045
3046
3047 eval "$ac_cv_use_geometry"
3048 if test "$no_cache" != 1; then
3049 echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp
3050 fi
3051
3052 if test "$wxUSE_GEOMETRY" = yes; then
3053 echo "$ac_t""yes" 1>&6
3054 else
3055 echo "$ac_t""no" 1>&6
3056 fi
3057
3058
10f2d63a 3059 echo $ac_n "checking "for --enable-log"""... $ac_c" 1>&6
1216f52d 3060echo "configure:3061: checking "for --enable-log"" >&5
10f2d63a
VZ
3061 no_cache=0
3062 # Check whether --enable-log or --disable-log was given.
3063if test "${enable_log+set}" = set; then
3064 enableval="$enable_log"
3065
3066 if test "$enableval" = yes; then
3067 ac_cv_use_log='wxUSE_LOG=yes'
3068 else
3069 ac_cv_use_log='wxUSE_LOG=no'
3070 fi
3071
3072else
3073
3074 LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
3075 if test "x$LINE" != x ; then
3076 eval "DEFAULT_$LINE"
3077 else
3078 no_cache=1
3079 fi
3080
3081 ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
3082
3083fi
3084
3085
3086 eval "$ac_cv_use_log"
3087 if test "$no_cache" != 1; then
3088 echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
3089 fi
3090
3091 if test "$wxUSE_LOG" = yes; then
3092 echo "$ac_t""yes" 1>&6
3093 else
3094 echo "$ac_t""no" 1>&6
3095 fi
3096
3097
3098 echo $ac_n "checking "for --enable-streams"""... $ac_c" 1>&6
1216f52d 3099echo "configure:3100: checking "for --enable-streams"" >&5
10f2d63a
VZ
3100 no_cache=0
3101 # Check whether --enable-streams or --disable-streams was given.
3102if test "${enable_streams+set}" = set; then
3103 enableval="$enable_streams"
3104
3105 if test "$enableval" = yes; then
3106 ac_cv_use_streams='wxUSE_STREAMS=yes'
3107 else
3108 ac_cv_use_streams='wxUSE_STREAMS=no'
3109 fi
3110
3111else
3112
3113 LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
3114 if test "x$LINE" != x ; then
3115 eval "DEFAULT_$LINE"
3116 else
3117 no_cache=1
3118 fi
3119
3120 ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
3121
3122fi
3123
3124
3125 eval "$ac_cv_use_streams"
3126 if test "$no_cache" != 1; then
3127 echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
3128 fi
3129
3130 if test "$wxUSE_STREAMS" = yes; then
3131 echo "$ac_t""yes" 1>&6
3132 else
3133 echo "$ac_t""no" 1>&6
3134 fi
3135
3136
3137 echo $ac_n "checking "for --enable-file"""... $ac_c" 1>&6
1216f52d 3138echo "configure:3139: checking "for --enable-file"" >&5
10f2d63a
VZ
3139 no_cache=0
3140 # Check whether --enable-file or --disable-file was given.
3141if test "${enable_file+set}" = set; then
3142 enableval="$enable_file"
3143
3144 if test "$enableval" = yes; then
3145 ac_cv_use_file='wxUSE_FILE=yes'
3146 else
3147 ac_cv_use_file='wxUSE_FILE=no'
3148 fi
3149
3150else
3151
3152 LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
3153 if test "x$LINE" != x ; then
3154 eval "DEFAULT_$LINE"
3155 else
3156 no_cache=1
3157 fi
3158
3159 ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
3160
3161fi
3162
3163
3164 eval "$ac_cv_use_file"
3165 if test "$no_cache" != 1; then
3166 echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
3167 fi
3168
3169 if test "$wxUSE_FILE" = yes; then
3170 echo "$ac_t""yes" 1>&6
3171 else
3172 echo "$ac_t""no" 1>&6
3173 fi
3174
3175
3176 echo $ac_n "checking "for --enable-textfile"""... $ac_c" 1>&6
1216f52d 3177echo "configure:3178: checking "for --enable-textfile"" >&5
10f2d63a
VZ
3178 no_cache=0
3179 # Check whether --enable-textfile or --disable-textfile was given.
3180if test "${enable_textfile+set}" = set; then
3181 enableval="$enable_textfile"
3182
3183 if test "$enableval" = yes; then
3184 ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
3185 else
3186 ac_cv_use_textfile='wxUSE_TEXTFILE=no'
3187 fi
3188
3189else
3190
3191 LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
3192 if test "x$LINE" != x ; then
3193 eval "DEFAULT_$LINE"
3194 else
3195 no_cache=1
3196 fi
3197
3198 ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
3199
3200fi
3201
3202
3203 eval "$ac_cv_use_textfile"
3204 if test "$no_cache" != 1; then
3205 echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
3206 fi
3207
3208 if test "$wxUSE_TEXTFILE" = yes; then
3209 echo "$ac_t""yes" 1>&6
3210 else
3211 echo "$ac_t""no" 1>&6
3212 fi
3213
3214
3215 echo $ac_n "checking "for --enable-unicode"""... $ac_c" 1>&6
1216f52d 3216echo "configure:3217: checking "for --enable-unicode"" >&5
10f2d63a
VZ
3217 no_cache=0
3218 # Check whether --enable-unicode or --disable-unicode was given.
3219if test "${enable_unicode+set}" = set; then
3220 enableval="$enable_unicode"
3221
3222 if test "$enableval" = yes; then
3223 ac_cv_use_unicode='wxUSE_UNICODE=yes'
3224 else
3225 ac_cv_use_unicode='wxUSE_UNICODE=no'
3226 fi
3227
3228else
3229
3230 LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
3231 if test "x$LINE" != x ; then
3232 eval "DEFAULT_$LINE"
3233 else
3234 no_cache=1
3235 fi
3236
3237 ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
3238
3239fi
3240
3241
3242 eval "$ac_cv_use_unicode"
3243 if test "$no_cache" != 1; then
3244 echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
3245 fi
3246
3247 if test "$wxUSE_UNICODE" = yes; then
3248 echo "$ac_t""yes" 1>&6
3249 else
3250 echo "$ac_t""no" 1>&6
3251 fi
3252
3253
3254 echo $ac_n "checking "for --enable-wcsrtombs"""... $ac_c" 1>&6
1216f52d 3255echo "configure:3256: checking "for --enable-wcsrtombs"" >&5
10f2d63a
VZ
3256 no_cache=0
3257 # Check whether --enable-wcsrtombs or --disable-wcsrtombs was given.
3258if test "${enable_wcsrtombs+set}" = set; then
3259 enableval="$enable_wcsrtombs"
3260
3261 if test "$enableval" = yes; then
3262 ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS=yes'
3263 else
3264 ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS=no'
3265 fi
3266
3267else
3268
3269 LINE=`grep "wxUSE_WCSRTOMBS" ${wx_arg_cache_file}`
3270 if test "x$LINE" != x ; then
3271 eval "DEFAULT_$LINE"
3272 else
3273 no_cache=1
3274 fi
3275
3276 ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS='$DEFAULT_wxUSE_WCSRTOMBS
3277
3278fi
3279
3280
3281 eval "$ac_cv_use_wcsrtombs"
3282 if test "$no_cache" != 1; then
3283 echo $ac_cv_use_wcsrtombs >> ${wx_arg_cache_file}.tmp
3284 fi
3285
3286 if test "$wxUSE_WCSRTOMBS" = yes; then
3287 echo "$ac_t""yes" 1>&6
3288 else
3289 echo "$ac_t""no" 1>&6
3290 fi
3291
3292
3293 echo $ac_n "checking "for --enable-wxprintfv"""... $ac_c" 1>&6
1216f52d 3294echo "configure:3295: checking "for --enable-wxprintfv"" >&5
10f2d63a
VZ
3295 no_cache=0
3296 # Check whether --enable-wxprintfv or --disable-wxprintfv was given.
3297if test "${enable_wxprintfv+set}" = set; then
3298 enableval="$enable_wxprintfv"
3299
3300 if test "$enableval" = yes; then
3301 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes'
3302 else
3303 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no'
3304 fi
3305
3306else
3307
3308 LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}`
3309 if test "x$LINE" != x ; then
3310 eval "DEFAULT_$LINE"
3311 else
3312 no_cache=1
3313 fi
3314
3315 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF
3316
3317fi
3318
3319
3320 eval "$ac_cv_use_wxprintfv"
3321 if test "$no_cache" != 1; then
3322 echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp
3323 fi
3324
3325 if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then
3326 echo "$ac_t""yes" 1>&6
3327 else
3328 echo "$ac_t""no" 1>&6
3329 fi
3330
3331
10f2d63a 3332 echo $ac_n "checking "for --enable-std_iostreams"""... $ac_c" 1>&6
1216f52d 3333echo "configure:3334: checking "for --enable-std_iostreams"" >&5
10f2d63a
VZ
3334 no_cache=0
3335 # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
3336if test "${enable_std_iostreams+set}" = set; then
3337 enableval="$enable_std_iostreams"
3338
3339 if test "$enableval" = yes; then
3340 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
3341 else
3342 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
3343 fi
3344
3345else
3346
3347 LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
3348 if test "x$LINE" != x ; then
3349 eval "DEFAULT_$LINE"
3350 else
3351 no_cache=1
3352 fi
3353
3354 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
3355
3356fi
3357
3358
3359 eval "$ac_cv_use_std_iostreams"
3360 if test "$no_cache" != 1; then
3361 echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
3362 fi
3363
3364 if test "$wxUSE_STD_IOSTREAM" = yes; then
3365 echo "$ac_t""yes" 1>&6
3366 else
3367 echo "$ac_t""no" 1>&6
3368 fi
3369
3370
24528b0c 3371 echo $ac_n "checking "for --enable-filesystem"""... $ac_c" 1>&6
1216f52d 3372echo "configure:3373: checking "for --enable-filesystem"" >&5
24528b0c
VS
3373 no_cache=0
3374 # Check whether --enable-filesystem or --disable-filesystem was given.
3375if test "${enable_filesystem+set}" = set; then
3376 enableval="$enable_filesystem"
3377
3378 if test "$enableval" = yes; then
3379 ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
3380 else
3381 ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
3382 fi
3383
3384else
3385
3386 LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}`
3387 if test "x$LINE" != x ; then
3388 eval "DEFAULT_$LINE"
3389 else
3390 no_cache=1
3391 fi
3392
3393 ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
3394
3395fi
3396
3397
3398 eval "$ac_cv_use_filesystem"
3399 if test "$no_cache" != 1; then
3400 echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
3401 fi
3402
3403 if test "$wxUSE_FILESYSTEM" = yes; then
3404 echo "$ac_t""yes" 1>&6
3405 else
3406 echo "$ac_t""no" 1>&6
3407 fi
3408
3409
10f2d63a 3410 echo $ac_n "checking "for --enable-fs_inet"""... $ac_c" 1>&6
1216f52d 3411echo "configure:3412: checking "for --enable-fs_inet"" >&5
10f2d63a
VZ
3412 no_cache=0
3413 # Check whether --enable-fs_inet or --disable-fs_inet was given.
3414if test "${enable_fs_inet+set}" = set; then
3415 enableval="$enable_fs_inet"
3416
3417 if test "$enableval" = yes; then
3418 ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
3419 else
3420 ac_cv_use_fs_inet='wxUSE_FS_INET=no'
3421 fi
3422
3423else
3424
3425 LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
3426 if test "x$LINE" != x ; then
3427 eval "DEFAULT_$LINE"
3428 else
3429 no_cache=1
3430 fi
3431
3432 ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
3433
3434fi
3435
3436
3437 eval "$ac_cv_use_fs_inet"
3438 if test "$no_cache" != 1; then
3439 echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
3440 fi
3441
3442 if test "$wxUSE_FS_INET" = yes; then
3443 echo "$ac_t""yes" 1>&6
3444 else
3445 echo "$ac_t""no" 1>&6
3446 fi
3447
3448
3449 echo $ac_n "checking "for --enable-fs_zip"""... $ac_c" 1>&6
1216f52d 3450echo "configure:3451: checking "for --enable-fs_zip"" >&5
10f2d63a
VZ
3451 no_cache=0
3452 # Check whether --enable-fs_zip or --disable-fs_zip was given.
3453if test "${enable_fs_zip+set}" = set; then
3454 enableval="$enable_fs_zip"
3455
3456 if test "$enableval" = yes; then
3457 ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
3458 else
3459 ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
3460 fi
3461
3462else
3463
3464 LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
3465 if test "x$LINE" != x ; then
3466 eval "DEFAULT_$LINE"
3467 else
3468 no_cache=1
3469 fi
3470
3471 ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
3472
3473fi
3474
3475
3476 eval "$ac_cv_use_fs_zip"
3477 if test "$no_cache" != 1; then
3478 echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
3479 fi
3480
3481 if test "$wxUSE_FS_ZIP" = yes; then
3482 echo "$ac_t""yes" 1>&6
3483 else
3484 echo "$ac_t""no" 1>&6
3485 fi
3486
3487
3488 echo $ac_n "checking "for --enable-zipstream"""... $ac_c" 1>&6
1216f52d 3489echo "configure:3490: checking "for --enable-zipstream"" >&5
10f2d63a
VZ
3490 no_cache=0
3491 # Check whether --enable-zipstream or --disable-zipstream was given.
3492if test "${enable_zipstream+set}" = set; then
3493 enableval="$enable_zipstream"
3494
3495 if test "$enableval" = yes; then
3496 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
3497 else
3498 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
3499 fi
3500
3501else
3502
3503 LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
3504 if test "x$LINE" != x ; then
3505 eval "DEFAULT_$LINE"
3506 else
3507 no_cache=1
3508 fi
3509
3510 ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
3511
3512fi
3513
3514
3515 eval "$ac_cv_use_zipstream"
3516 if test "$no_cache" != 1; then
3517 echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
3518 fi
3519
3520 if test "$wxUSE_ZIPSTREAM" = yes; then
3521 echo "$ac_t""yes" 1>&6
3522 else
3523 echo "$ac_t""no" 1>&6
3524 fi
3525
3526
3527
eb4efbdc 3528 echo $ac_n "checking "for --enable-catch_segvs"""... $ac_c" 1>&6
1216f52d 3529echo "configure:3530: checking "for --enable-catch_segvs"" >&5
eb4efbdc
VZ
3530 no_cache=0
3531 # Check whether --enable-catch_segvs or --disable-catch_segvs was given.
3532if test "${enable_catch_segvs+set}" = set; then
3533 enableval="$enable_catch_segvs"
3534
3535 if test "$enableval" = yes; then
3536 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
3537 else
3538 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
3539 fi
3540
3541else
3542
3543 LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}`
3544 if test "x$LINE" != x ; then
3545 eval "DEFAULT_$LINE"
3546 else
3547 no_cache=1
3548 fi
3549
3550 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION
3551
3552fi
3553
3554
3555 eval "$ac_cv_use_catch_segvs"
3556 if test "$no_cache" != 1; then
3557 echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp
3558 fi
3559
3560 if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then
3561 echo "$ac_t""yes" 1>&6
3562 else
3563 echo "$ac_t""no" 1>&6
3564 fi
3565
3566
3567
10f2d63a
VZ
3568
3569 echo $ac_n "checking "for --enable-threads"""... $ac_c" 1>&6
1216f52d 3570echo "configure:3571: checking "for --enable-threads"" >&5
10f2d63a
VZ
3571 no_cache=0
3572 # Check whether --enable-threads or --disable-threads was given.
3573if test "${enable_threads+set}" = set; then
3574 enableval="$enable_threads"
3575
3576 if test "$enableval" = yes; then
3577 ac_cv_use_threads='wxUSE_THREADS=yes'
3578 else
3579 ac_cv_use_threads='wxUSE_THREADS=no'
3580 fi
3581
3582else
3583
3584 LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
3585 if test "x$LINE" != x ; then
3586 eval "DEFAULT_$LINE"
3587 else
3588 no_cache=1
3589 fi
3590
3591 ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
3592
3593fi
3594
3595
3596 eval "$ac_cv_use_threads"
3597 if test "$no_cache" != 1; then
3598 echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
3599 fi
3600
3601 if test "$wxUSE_THREADS" = yes; then
3602 echo "$ac_t""yes" 1>&6
3603 else
3604 echo "$ac_t""no" 1>&6
3605 fi
3606
3607
3608 echo $ac_n "checking "for --enable-serial"""... $ac_c" 1>&6
1216f52d 3609echo "configure:3610: checking "for --enable-serial"" >&5
10f2d63a
VZ
3610 no_cache=0
3611 # Check whether --enable-serial or --disable-serial was given.
3612if test "${enable_serial+set}" = set; then
3613 enableval="$enable_serial"
3614
3615 if test "$enableval" = yes; then
3616 ac_cv_use_serial='wxUSE_SERIAL=yes'
3617 else
3618 ac_cv_use_serial='wxUSE_SERIAL=no'
3619 fi
3620
3621else
3622
3623 LINE=`grep "wxUSE_SERIAL" ${wx_arg_cache_file}`
3624 if test "x$LINE" != x ; then
3625 eval "DEFAULT_$LINE"
3626 else
3627 no_cache=1
3628 fi
3629
3630 ac_cv_use_serial='wxUSE_SERIAL='$DEFAULT_wxUSE_SERIAL
3631
3632fi
3633
3634
3635 eval "$ac_cv_use_serial"
3636 if test "$no_cache" != 1; then
3637 echo $ac_cv_use_serial >> ${wx_arg_cache_file}.tmp
3638 fi
3639
3640 if test "$wxUSE_SERIAL" = yes; then
3641 echo "$ac_t""yes" 1>&6
3642 else
3643 echo "$ac_t""no" 1>&6
3644 fi
3645
3646
b12915c1
VZ
3647if test "$wxUSE_GUI" = "yes"; then
3648
10f2d63a
VZ
3649
3650
3651 echo $ac_n "checking "for --enable-docview"""... $ac_c" 1>&6
1216f52d 3652echo "configure:3653: checking "for --enable-docview"" >&5
10f2d63a
VZ
3653 no_cache=0
3654 # Check whether --enable-docview or --disable-docview was given.
3655if test "${enable_docview+set}" = set; then
3656 enableval="$enable_docview"
3657
3658 if test "$enableval" = yes; then
3659 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
3660 else
3661 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
3662 fi
3663
3664else
3665
3666 LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
3667 if test "x$LINE" != x ; then
3668 eval "DEFAULT_$LINE"
3669 else
3670 no_cache=1
3671 fi
3672
3673 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
3674
3675fi
3676
3677
3678 eval "$ac_cv_use_docview"
3679 if test "$no_cache" != 1; then
3680 echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
3681 fi
3682
3683 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
3684 echo "$ac_t""yes" 1>&6
3685 else
3686 echo "$ac_t""no" 1>&6
3687 fi
3688
3689
3690 echo $ac_n "checking "for --enable-help"""... $ac_c" 1>&6
1216f52d 3691echo "configure:3692: checking "for --enable-help"" >&5
10f2d63a
VZ
3692 no_cache=0
3693 # Check whether --enable-help or --disable-help was given.
3694if test "${enable_help+set}" = set; then
3695 enableval="$enable_help"
3696
3697 if test "$enableval" = yes; then
3698 ac_cv_use_help='wxUSE_HELP=yes'
3699 else
3700 ac_cv_use_help='wxUSE_HELP=no'
3701 fi
3702
3703else
3704
3705 LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
3706 if test "x$LINE" != x ; then
3707 eval "DEFAULT_$LINE"
3708 else
3709 no_cache=1
3710 fi
3711
3712 ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
3713
3714fi
3715
3716
3717 eval "$ac_cv_use_help"
3718 if test "$no_cache" != 1; then
3719 echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
3720 fi
3721
3722 if test "$wxUSE_HELP" = yes; then
3723 echo "$ac_t""yes" 1>&6
3724 else
3725 echo "$ac_t""no" 1>&6
3726 fi
3727
3728
3729 echo $ac_n "checking "for --enable-constraints"""... $ac_c" 1>&6
1216f52d 3730echo "configure:3731: checking "for --enable-constraints"" >&5
10f2d63a
VZ
3731 no_cache=0
3732 # Check whether --enable-constraints or --disable-constraints was given.
3733if test "${enable_constraints+set}" = set; then
3734 enableval="$enable_constraints"
3735
3736 if test "$enableval" = yes; then
3737 ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
3738 else
3739 ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
3740 fi
3741
3742else
3743
3744 LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
3745 if test "x$LINE" != x ; then
3746 eval "DEFAULT_$LINE"
3747 else
3748 no_cache=1
3749 fi
3750
3751 ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
3752
3753fi
3754
3755
3756 eval "$ac_cv_use_constraints"
3757 if test "$no_cache" != 1; then
3758 echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
3759 fi
3760
3761 if test "$wxUSE_CONSTRAINTS" = yes; then
3762 echo "$ac_t""yes" 1>&6
3763 else
3764 echo "$ac_t""no" 1>&6
3765 fi
3766
3767
3768 echo $ac_n "checking "for --enable-printarch"""... $ac_c" 1>&6
1216f52d 3769echo "configure:3770: checking "for --enable-printarch"" >&5
10f2d63a
VZ
3770 no_cache=0
3771 # Check whether --enable-printarch or --disable-printarch was given.
3772if test "${enable_printarch+set}" = set; then
3773 enableval="$enable_printarch"
3774
3775 if test "$enableval" = yes; then
3776 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
3777 else
3778 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
3779 fi
3780
3781else
3782
3783 LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
3784 if test "x$LINE" != x ; then
3785 eval "DEFAULT_$LINE"
3786 else
3787 no_cache=1
3788 fi
3789
3790 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
3791
3792fi
3793
3794
3795 eval "$ac_cv_use_printarch"
3796 if test "$no_cache" != 1; then
3797 echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
3798 fi
3799
3800 if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
3801 echo "$ac_t""yes" 1>&6
3802 else
3803 echo "$ac_t""no" 1>&6
3804 fi
3805
3806
3807 echo $ac_n "checking "for --enable-mdi"""... $ac_c" 1>&6
1216f52d 3808echo "configure:3809: checking "for --enable-mdi"" >&5
10f2d63a
VZ
3809 no_cache=0
3810 # Check whether --enable-mdi or --disable-mdi was given.
3811if test "${enable_mdi+set}" = set; then
3812 enableval="$enable_mdi"
3813
3814 if test "$enableval" = yes; then
3815 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=yes'
3816 else
3817 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=no'
3818 fi
3819
3820else
3821
3822 LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
3823 if test "x$LINE" != x ; then
3824 eval "DEFAULT_$LINE"
3825 else
3826 no_cache=1
3827 fi
3828
3829 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
3830
3831fi
3832
3833
3834 eval "$ac_cv_use_mdi"
3835 if test "$no_cache" != 1; then
3836 echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
3837 fi
3838
3839 if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
3840 echo "$ac_t""yes" 1>&6
3841 else
3842 echo "$ac_t""no" 1>&6
3843 fi
3844
3845
3846
3847 echo $ac_n "checking "for --enable-postscript"""... $ac_c" 1>&6
1216f52d 3848echo "configure:3849: checking "for --enable-postscript"" >&5
10f2d63a
VZ
3849 no_cache=0
3850 # Check whether --enable-postscript or --disable-postscript was given.
3851if test "${enable_postscript+set}" = set; then
3852 enableval="$enable_postscript"
3853
3854 if test "$enableval" = yes; then
3855 ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
3856 else
3857 ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
3858 fi
3859
3860else
3861
3862 LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
3863 if test "x$LINE" != x ; then
3864 eval "DEFAULT_$LINE"
3865 else
3866 no_cache=1
3867 fi
3868
3869 ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
3870
3871fi
3872
3873
3874 eval "$ac_cv_use_postscript"
3875 if test "$no_cache" != 1; then
3876 echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
3877 fi
3878
3879 if test "$wxUSE_POSTSCRIPT" = yes; then
3880 echo "$ac_t""yes" 1>&6
3881 else
3882 echo "$ac_t""no" 1>&6
3883 fi
3884
3885
3886
3887
3888 echo $ac_n "checking "for --enable-prologio"""... $ac_c" 1>&6
1216f52d 3889echo "configure:3890: checking "for --enable-prologio"" >&5
10f2d63a
VZ
3890 no_cache=0
3891 # Check whether --enable-prologio or --disable-prologio was given.
3892if test "${enable_prologio+set}" = set; then
3893 enableval="$enable_prologio"
3894
3895 if test "$enableval" = yes; then
3896 ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
3897 else
3898 ac_cv_use_prologio='wxUSE_PROLOGIO=no'
3899 fi
3900
3901else
3902
3903 LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
3904 if test "x$LINE" != x ; then
3905 eval "DEFAULT_$LINE"
3906 else
3907 no_cache=1
3908 fi
3909
3910 ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
3911
3912fi
3913
3914
3915 eval "$ac_cv_use_prologio"
3916 if test "$no_cache" != 1; then
3917 echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
3918 fi
3919
3920 if test "$wxUSE_PROLOGIO" = yes; then
3921 echo "$ac_t""yes" 1>&6
3922 else
3923 echo "$ac_t""no" 1>&6
3924 fi
3925
3926
3927 echo $ac_n "checking "for --enable-resources"""... $ac_c" 1>&6
1216f52d 3928echo "configure:3929: checking "for --enable-resources"" >&5
10f2d63a
VZ
3929 no_cache=0
3930 # Check whether --enable-resources or --disable-resources was given.
3931if test "${enable_resources+set}" = set; then
3932 enableval="$enable_resources"
3933
3934 if test "$enableval" = yes; then
3935 ac_cv_use_resources='wxUSE_RESOURCES=yes'
3936 else
3937 ac_cv_use_resources='wxUSE_RESOURCES=no'
3938 fi
3939
3940else
3941
3942 LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
3943 if test "x$LINE" != x ; then
3944 eval "DEFAULT_$LINE"
3945 else
3946 no_cache=1
3947 fi
3948
3949 ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
3950
3951fi
3952
3953
3954 eval "$ac_cv_use_resources"
3955 if test "$no_cache" != 1; then
3956 echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
3957 fi
3958
3959 if test "$wxUSE_RESOURCES" = yes; then
3960 echo "$ac_t""yes" 1>&6
3961 else
3962 echo "$ac_t""no" 1>&6
3963 fi
3964
3965
3966
3967 echo $ac_n "checking "for --enable-xresources"""... $ac_c" 1>&6
1216f52d 3968echo "configure:3969: checking "for --enable-xresources"" >&5
10f2d63a
VZ
3969 no_cache=0
3970 # Check whether --enable-xresources or --disable-xresources was given.
3971if test "${enable_xresources+set}" = set; then
3972 enableval="$enable_xresources"
3973
3974 if test "$enableval" = yes; then
3975 ac_cv_use_xresources='wxUSE_X_RESOURCES=yes'
3976 else
3977 ac_cv_use_xresources='wxUSE_X_RESOURCES=no'
3978 fi
3979
3980else
3981
3982 LINE=`grep "wxUSE_X_RESOURCES" ${wx_arg_cache_file}`
3983 if test "x$LINE" != x ; then
3984 eval "DEFAULT_$LINE"
3985 else
3986 no_cache=1
3987 fi
3988
3989 ac_cv_use_xresources='wxUSE_X_RESOURCES='$DEFAULT_wxUSE_X_RESOURCES
3990
3991fi
3992
3993
3994 eval "$ac_cv_use_xresources"
3995 if test "$no_cache" != 1; then
3996 echo $ac_cv_use_xresources >> ${wx_arg_cache_file}.tmp
3997 fi
3998
3999 if test "$wxUSE_X_RESOURCES" = yes; then
4000 echo "$ac_t""yes" 1>&6
4001 else
4002 echo "$ac_t""no" 1>&6
4003 fi
4004
4005
4006
4007
4008 echo $ac_n "checking "for --enable-clipboard"""... $ac_c" 1>&6
1216f52d 4009echo "configure:4010: checking "for --enable-clipboard"" >&5
10f2d63a
VZ
4010 no_cache=0
4011 # Check whether --enable-clipboard or --disable-clipboard was given.
4012if test "${enable_clipboard+set}" = set; then
4013 enableval="$enable_clipboard"
4014
4015 if test "$enableval" = yes; then
4016 ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
4017 else
4018 ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
4019 fi
4020
4021else
4022
4023 LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
4024 if test "x$LINE" != x ; then
4025 eval "DEFAULT_$LINE"
4026 else
4027 no_cache=1
4028 fi
4029
4030 ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
4031
4032fi
4033
4034
4035 eval "$ac_cv_use_clipboard"
4036 if test "$no_cache" != 1; then
4037 echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
4038 fi
4039
4040 if test "$wxUSE_CLIPBOARD" = yes; then
4041 echo "$ac_t""yes" 1>&6
4042 else
4043 echo "$ac_t""no" 1>&6
4044 fi
4045
4046
4047 echo $ac_n "checking "for --enable-dnd"""... $ac_c" 1>&6
1216f52d 4048echo "configure:4049: checking "for --enable-dnd"" >&5
10f2d63a
VZ
4049 no_cache=0
4050 # Check whether --enable-dnd or --disable-dnd was given.
4051if test "${enable_dnd+set}" = set; then
4052 enableval="$enable_dnd"
4053
4054 if test "$enableval" = yes; then
4055 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
4056 else
4057 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
4058 fi
4059
4060else
4061
4062 LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
4063 if test "x$LINE" != x ; then
4064 eval "DEFAULT_$LINE"
4065 else
4066 no_cache=1
4067 fi
4068
4069 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
4070
4071fi
4072
4073
4074 eval "$ac_cv_use_dnd"
4075 if test "$no_cache" != 1; then
4076 echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
4077 fi
4078
4079 if test "$wxUSE_DRAG_AND_DROP" = yes; then
4080 echo "$ac_t""yes" 1>&6
4081 else
4082 echo "$ac_t""no" 1>&6
4083 fi
4084
4085
b64f0a5f 4086 echo $ac_n "checking "for --enable-metafile"""... $ac_c" 1>&6
1216f52d 4087echo "configure:4088: checking "for --enable-metafile"" >&5
b64f0a5f
RL
4088 no_cache=0
4089 # Check whether --enable-metafile or --disable-metafile was given.
4090if test "${enable_metafile+set}" = set; then
4091 enableval="$enable_metafile"
4092
4093 if test "$enableval" = yes; then
4094 ac_cv_use_metafile='wxUSE_METAFILE=yes'
4095 else
4096 ac_cv_use_metafile='wxUSE_METAFILE=no'
4097 fi
4098
4099else
4100
4101 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
4102 if test "x$LINE" != x ; then
4103 eval "DEFAULT_$LINE"
4104 else
4105 no_cache=1
4106 fi
4107
4108 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
4109
4110fi
4111
4112
4113 eval "$ac_cv_use_metafile"
4114 if test "$no_cache" != 1; then
4115 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
4116 fi
4117
4118 if test "$wxUSE_METAFILE" = yes; then
4119 echo "$ac_t""yes" 1>&6
4120 else
4121 echo "$ac_t""no" 1>&6
4122 fi
4123
4124
10f2d63a
VZ
4125
4126 echo $ac_n "checking "for --enable-wxtree"""... $ac_c" 1>&6
1216f52d 4127echo "configure:4128: checking "for --enable-wxtree"" >&5
10f2d63a
VZ
4128 no_cache=0
4129 # Check whether --enable-wxtree or --disable-wxtree was given.
4130if test "${enable_wxtree+set}" = set; then
4131 enableval="$enable_wxtree"
4132
4133 if test "$enableval" = yes; then
4134 ac_cv_use_wxtree='wxUSE_WXTREE=yes'
4135 else
4136 ac_cv_use_wxtree='wxUSE_WXTREE=no'
4137 fi
4138
4139else
4140
4141 LINE=`grep "wxUSE_WXTREE" ${wx_arg_cache_file}`
4142 if test "x$LINE" != x ; then
4143 eval "DEFAULT_$LINE"
4144 else
4145 no_cache=1
4146 fi
4147
4148 ac_cv_use_wxtree='wxUSE_WXTREE='$DEFAULT_wxUSE_WXTREE
4149
4150fi
4151
4152
4153 eval "$ac_cv_use_wxtree"
4154 if test "$no_cache" != 1; then
4155 echo $ac_cv_use_wxtree >> ${wx_arg_cache_file}.tmp
4156 fi
4157
4158 if test "$wxUSE_WXTREE" = yes; then
4159 echo "$ac_t""yes" 1>&6
4160 else
4161 echo "$ac_t""no" 1>&6
4162 fi
4163
4164
4165
4166
4167 echo $ac_n "checking "for --enable-controls"""... $ac_c" 1>&6
1216f52d 4168echo "configure:4169: checking "for --enable-controls"" >&5
10f2d63a
VZ
4169 no_cache=0
4170 # Check whether --enable-controls or --disable-controls was given.
4171if test "${enable_controls+set}" = set; then
4172 enableval="$enable_controls"
4173
4174 if test "$enableval" = yes; then
4175 ac_cv_use_controls='wxUSE_CONTROLS=yes'
4176 else
4177 ac_cv_use_controls='wxUSE_CONTROLS=no'
4178 fi
4179
4180else
4181
4182 LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
4183 if test "x$LINE" != x ; then
4184 eval "DEFAULT_$LINE"
4185 else
4186 no_cache=1
4187 fi
4188
4189 ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
4190
4191fi
4192
4193
4194 eval "$ac_cv_use_controls"
4195 if test "$no_cache" != 1; then
4196 echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
4197 fi
4198
4199 if test "$wxUSE_CONTROLS" = yes; then
4200 echo "$ac_t""yes" 1>&6
4201 else
4202 echo "$ac_t""no" 1>&6
4203 fi
4204
4205
4206if test "$wxUSE_CONTROLS" = "yes"; then
4207 DEFAULT_wxUSE_ACCEL=yes
4208 DEFAULT_wxUSE_CARET=yes
4209 DEFAULT_wxUSE_COMBOBOX=yes
4210 DEFAULT_wxUSE_BMPBUTTON=yes
4211 DEFAULT_wxUSE_CHECKBOX=yes
4212 DEFAULT_wxUSE_CHECKLISTBOX=yes
4213 DEFAULT_wxUSE_CHOICE=yes
4214 DEFAULT_wxUSE_GAUGE=yes
4215 DEFAULT_wxUSE_GRID=yes
cc977e5f 4216 DEFAULT_wxUSE_NEW_GRID=yes
10f2d63a
VZ
4217 DEFAULT_wxUSE_IMAGLIST=yes
4218 DEFAULT_wxUSE_LISTBOX=yes
4219 DEFAULT_wxUSE_LISTCTRL=yes
4220 DEFAULT_wxUSE_NOTEBOOK=yes
4221 DEFAULT_wxUSE_RADIOBOX=yes
4222 DEFAULT_wxUSE_RADIOBTN=yes
4223 DEFAULT_wxUSE_SASH=yes
4224 DEFAULT_wxUSE_SCROLLBAR=yes
4225 DEFAULT_wxUSE_SLIDER=yes
4226 DEFAULT_wxUSE_SPINBTN=yes
56cfaa52 4227 DEFAULT_wxUSE_SPINCTRL=yes
10f2d63a
VZ
4228 DEFAULT_wxUSE_SPLITTER=yes
4229 DEFAULT_wxUSE_STATBMP=yes
4230 DEFAULT_wxUSE_STATBOX=yes
4231 DEFAULT_wxUSE_STATLINE=yes
4232 DEFAULT_wxUSE_STATUSBAR=yes
4233 DEFAULT_wxUSE_TAB_DIALOG=yes
1db8dc4a 4234 DEFAULT_wxUSE_TOGGLEBTN=yes
10f2d63a 4235 DEFAULT_wxUSE_TOOLBAR=yes
360d6699
VZ
4236 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
4237 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
10f2d63a
VZ
4238 DEFAULT_wxUSE_TOOLTIPS=yes
4239 DEFAULT_wxUSE_TREECTRL=yes
4240elif test "$wxUSE_CONTROLS" = "no"; then
4241 DEFAULT_wxUSE_ACCEL=no
4242 DEFAULT_wxUSE_CARET=no
4243 DEFAULT_wxUSE_COMBOBOX=no
4244 DEFAULT_wxUSE_BMPBUTTON=no
4245 DEFAULT_wxUSE_CHECKBOX=no
4246 DEFAULT_wxUSE_CHECKLISTBOX=no
4247 DEFAULT_wxUSE_CHOICE=no
4248 DEFAULT_wxUSE_GAUGE=no
4249 DEFAULT_wxUSE_GRID=no
4250 DEFAULT_wxUSE_NEW_GRID=no
4251 DEFAULT_wxUSE_IMAGLIST=no
4252 DEFAULT_wxUSE_LISTBOX=no
4253 DEFAULT_wxUSE_LISTCTRL=no
4254 DEFAULT_wxUSE_NOTEBOOK=no
4255 DEFAULT_wxUSE_RADIOBOX=no
4256 DEFAULT_wxUSE_RADIOBTN=no
4257 DEFAULT_wxUSE_SASH=no
4258 DEFAULT_wxUSE_SCROLLBAR=no
4259 DEFAULT_wxUSE_SLIDER=no
4260 DEFAULT_wxUSE_SPINBTN=no
56cfaa52 4261 DEFAULT_wxUSE_SPINCTRL=no
10f2d63a
VZ
4262 DEFAULT_wxUSE_SPLITTER=no
4263 DEFAULT_wxUSE_STATBMP=no
4264 DEFAULT_wxUSE_STATBOX=no
4265 DEFAULT_wxUSE_STATLINE=no
4266 DEFAULT_wxUSE_STATUSBAR=no
4267 DEFAULT_wxUSE_TAB_DIALOG=no
1db8dc4a 4268 DEFAULT_wxUSE_TOGGLEBTN=no
10f2d63a 4269 DEFAULT_wxUSE_TOOLBAR=no
360d6699
VZ
4270 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
4271 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
10f2d63a
VZ
4272 DEFAULT_wxUSE_TOOLTIPS=no
4273 DEFAULT_wxUSE_TREECTRL=no
4274fi
4275
4276
4277 echo $ac_n "checking "for --enable-accel"""... $ac_c" 1>&6
1216f52d 4278echo "configure:4279: checking "for --enable-accel"" >&5
10f2d63a
VZ
4279 no_cache=0
4280 # Check whether --enable-accel or --disable-accel was given.
4281if test "${enable_accel+set}" = set; then
4282 enableval="$enable_accel"
4283
4284 if test "$enableval" = yes; then
4285 ac_cv_use_accel='wxUSE_ACCEL=yes'
4286 else
4287 ac_cv_use_accel='wxUSE_ACCEL=no'
4288 fi
4289
4290else
4291
4292 LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
4293 if test "x$LINE" != x ; then
4294 eval "DEFAULT_$LINE"
4295 else
4296 no_cache=1
4297 fi
4298
4299 ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
4300
4301fi
4302
4303
4304 eval "$ac_cv_use_accel"
4305 if test "$no_cache" != 1; then
4306 echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
4307 fi
4308
4309 if test "$wxUSE_ACCEL" = yes; then
4310 echo "$ac_t""yes" 1>&6
4311 else
4312 echo "$ac_t""no" 1>&6
4313 fi
4314
4315
4316 echo $ac_n "checking "for --enable-caret"""... $ac_c" 1>&6
1216f52d 4317echo "configure:4318: checking "for --enable-caret"" >&5
10f2d63a
VZ
4318 no_cache=0
4319 # Check whether --enable-caret or --disable-caret was given.
4320if test "${enable_caret+set}" = set; then
4321 enableval="$enable_caret"
4322
4323 if test "$enableval" = yes; then
4324 ac_cv_use_caret='wxUSE_CARET=yes'
4325 else
4326 ac_cv_use_caret='wxUSE_CARET=no'
4327 fi
4328
4329else
4330
4331 LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
4332 if test "x$LINE" != x ; then
4333 eval "DEFAULT_$LINE"
4334 else
4335 no_cache=1
4336 fi
4337
4338 ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
4339
4340fi
4341
4342
4343 eval "$ac_cv_use_caret"
4344 if test "$no_cache" != 1; then
4345 echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
4346 fi
4347
4348 if test "$wxUSE_CARET" = yes; then
4349 echo "$ac_t""yes" 1>&6
4350 else
4351 echo "$ac_t""no" 1>&6
4352 fi
4353
4354
4355 echo $ac_n "checking "for --enable-bmpbutton"""... $ac_c" 1>&6
1216f52d 4356echo "configure:4357: checking "for --enable-bmpbutton"" >&5
10f2d63a
VZ
4357 no_cache=0
4358 # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
4359if test "${enable_bmpbutton+set}" = set; then
4360 enableval="$enable_bmpbutton"
4361
4362 if test "$enableval" = yes; then
4363 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
4364 else
4365 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
4366 fi
4367
4368else
4369
4370 LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
4371 if test "x$LINE" != x ; then
4372 eval "DEFAULT_$LINE"
4373 else
4374 no_cache=1
4375 fi
4376
4377 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
4378
4379fi
4380
4381
4382 eval "$ac_cv_use_bmpbutton"
4383 if test "$no_cache" != 1; then
4384 echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
4385 fi
4386
4387 if test "$wxUSE_BMPBUTTON" = yes; then
4388 echo "$ac_t""yes" 1>&6
4389 else
4390 echo "$ac_t""no" 1>&6
4391 fi
4392
4393
4394 echo $ac_n "checking "for --enable-checkbox"""... $ac_c" 1>&6
1216f52d 4395echo "configure:4396: checking "for --enable-checkbox"" >&5
10f2d63a
VZ
4396 no_cache=0
4397 # Check whether --enable-checkbox or --disable-checkbox was given.
4398if test "${enable_checkbox+set}" = set; then
4399 enableval="$enable_checkbox"
4400
4401 if test "$enableval" = yes; then
4402 ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
4403 else
4404 ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
4405 fi
4406
4407else
4408
4409 LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
4410 if test "x$LINE" != x ; then
4411 eval "DEFAULT_$LINE"
4412 else
4413 no_cache=1
4414 fi
4415
4416 ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
4417
4418fi
4419
4420
4421 eval "$ac_cv_use_checkbox"
4422 if test "$no_cache" != 1; then
4423 echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
4424 fi
4425
4426 if test "$wxUSE_CHECKBOX" = yes; then
4427 echo "$ac_t""yes" 1>&6
4428 else
4429 echo "$ac_t""no" 1>&6
4430 fi
4431
4432
4433 echo $ac_n "checking "for --enable-checklst"""... $ac_c" 1>&6
1216f52d 4434echo "configure:4435: checking "for --enable-checklst"" >&5
10f2d63a
VZ
4435 no_cache=0
4436 # Check whether --enable-checklst or --disable-checklst was given.
4437if test "${enable_checklst+set}" = set; then
4438 enableval="$enable_checklst"
4439
4440 if test "$enableval" = yes; then
4441 ac_cv_use_checklst='wxUSE_CHECKLST=yes'
4442 else
4443 ac_cv_use_checklst='wxUSE_CHECKLST=no'
4444 fi
4445
4446else
4447
4448 LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
4449 if test "x$LINE" != x ; then
4450 eval "DEFAULT_$LINE"
4451 else
4452 no_cache=1
4453 fi
4454
4455 ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
4456
4457fi
4458
4459
4460 eval "$ac_cv_use_checklst"
4461 if test "$no_cache" != 1; then
4462 echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
4463 fi
4464
4465 if test "$wxUSE_CHECKLST" = yes; then
4466 echo "$ac_t""yes" 1>&6
4467 else
4468 echo "$ac_t""no" 1>&6
4469 fi
4470
4471
4472 echo $ac_n "checking "for --enable-choice"""... $ac_c" 1>&6
1216f52d 4473echo "configure:4474: checking "for --enable-choice"" >&5
10f2d63a
VZ
4474 no_cache=0
4475 # Check whether --enable-choice or --disable-choice was given.
4476if test "${enable_choice+set}" = set; then
4477 enableval="$enable_choice"
4478
4479 if test "$enableval" = yes; then
4480 ac_cv_use_choice='wxUSE_CHOICE=yes'
4481 else
4482 ac_cv_use_choice='wxUSE_CHOICE=no'
4483 fi
4484
4485else
4486
4487 LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
4488 if test "x$LINE" != x ; then
4489 eval "DEFAULT_$LINE"
4490 else
4491 no_cache=1
4492 fi
4493
4494 ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
4495
4496fi
4497
4498
4499 eval "$ac_cv_use_choice"
4500 if test "$no_cache" != 1; then
4501 echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
4502 fi
4503
4504 if test "$wxUSE_CHOICE" = yes; then
4505 echo "$ac_t""yes" 1>&6
4506 else
4507 echo "$ac_t""no" 1>&6
4508 fi
4509
4510
4511 echo $ac_n "checking "for --enable-combobox"""... $ac_c" 1>&6
1216f52d 4512echo "configure:4513: checking "for --enable-combobox"" >&5
10f2d63a
VZ
4513 no_cache=0
4514 # Check whether --enable-combobox or --disable-combobox was given.
4515if test "${enable_combobox+set}" = set; then
4516 enableval="$enable_combobox"
4517
4518 if test "$enableval" = yes; then
4519 ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
4520 else
4521 ac_cv_use_combobox='wxUSE_COMBOBOX=no'
4522 fi
4523
4524else
4525
4526 LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
4527 if test "x$LINE" != x ; then
4528 eval "DEFAULT_$LINE"
4529 else
4530 no_cache=1
4531 fi
4532
4533 ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
4534
4535fi
4536
4537
4538 eval "$ac_cv_use_combobox"
4539 if test "$no_cache" != 1; then
4540 echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
4541 fi
4542
4543 if test "$wxUSE_COMBOBOX" = yes; then
4544 echo "$ac_t""yes" 1>&6
4545 else
4546 echo "$ac_t""no" 1>&6
4547 fi
4548
4549
4550 echo $ac_n "checking "for --enable-gauge"""... $ac_c" 1>&6
1216f52d 4551echo "configure:4552: checking "for --enable-gauge"" >&5
10f2d63a
VZ
4552 no_cache=0
4553 # Check whether --enable-gauge or --disable-gauge was given.
4554if test "${enable_gauge+set}" = set; then
4555 enableval="$enable_gauge"
4556
4557 if test "$enableval" = yes; then
4558 ac_cv_use_gauge='wxUSE_GAUGE=yes'
4559 else
4560 ac_cv_use_gauge='wxUSE_GAUGE=no'
4561 fi
4562
4563else
4564
4565 LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
4566 if test "x$LINE" != x ; then
4567 eval "DEFAULT_$LINE"
4568 else
4569 no_cache=1
4570 fi
4571
4572 ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
4573
4574fi
4575
4576
4577 eval "$ac_cv_use_gauge"
4578 if test "$no_cache" != 1; then
4579 echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
4580 fi
4581
4582 if test "$wxUSE_GAUGE" = yes; then
4583 echo "$ac_t""yes" 1>&6
4584 else
4585 echo "$ac_t""no" 1>&6
4586 fi
4587
4588
4589 echo $ac_n "checking "for --enable-grid"""... $ac_c" 1>&6
1216f52d 4590echo "configure:4591: checking "for --enable-grid"" >&5
10f2d63a
VZ
4591 no_cache=0
4592 # Check whether --enable-grid or --disable-grid was given.
4593if test "${enable_grid+set}" = set; then
4594 enableval="$enable_grid"
4595
4596 if test "$enableval" = yes; then
4597 ac_cv_use_grid='wxUSE_GRID=yes'
4598 else
4599 ac_cv_use_grid='wxUSE_GRID=no'
4600 fi
4601
4602else
4603
4604 LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
4605 if test "x$LINE" != x ; then
4606 eval "DEFAULT_$LINE"
4607 else
4608 no_cache=1
4609 fi
4610
4611 ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
4612
4613fi
4614
4615
4616 eval "$ac_cv_use_grid"
4617 if test "$no_cache" != 1; then
4618 echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
4619 fi
4620
4621 if test "$wxUSE_GRID" = yes; then
4622 echo "$ac_t""yes" 1>&6
4623 else
4624 echo "$ac_t""no" 1>&6
4625 fi
4626
4627
4628 echo $ac_n "checking "for --enable-newgrid"""... $ac_c" 1>&6
1216f52d 4629echo "configure:4630: checking "for --enable-newgrid"" >&5
10f2d63a
VZ
4630 no_cache=0
4631 # Check whether --enable-newgrid or --disable-newgrid was given.
4632if test "${enable_newgrid+set}" = set; then
4633 enableval="$enable_newgrid"
4634
4635 if test "$enableval" = yes; then
4636 ac_cv_use_newgrid='wxUSE_NEW_GRID=yes'
4637 else
4638 ac_cv_use_newgrid='wxUSE_NEW_GRID=no'
4639 fi
4640
4641else
4642
4643 LINE=`grep "wxUSE_NEW_GRID" ${wx_arg_cache_file}`
4644 if test "x$LINE" != x ; then
4645 eval "DEFAULT_$LINE"
4646 else
4647 no_cache=1
4648 fi
4649
4650 ac_cv_use_newgrid='wxUSE_NEW_GRID='$DEFAULT_wxUSE_NEW_GRID
4651
4652fi
4653
4654
4655 eval "$ac_cv_use_newgrid"
4656 if test "$no_cache" != 1; then
4657 echo $ac_cv_use_newgrid >> ${wx_arg_cache_file}.tmp
4658 fi
4659
4660 if test "$wxUSE_NEW_GRID" = yes; then
4661 echo "$ac_t""yes" 1>&6
4662 else
4663 echo "$ac_t""no" 1>&6
4664 fi
4665
4666
4667 echo $ac_n "checking "for --enable-imaglist"""... $ac_c" 1>&6
1216f52d 4668echo "configure:4669: checking "for --enable-imaglist"" >&5
10f2d63a
VZ
4669 no_cache=0
4670 # Check whether --enable-imaglist or --disable-imaglist was given.
4671if test "${enable_imaglist+set}" = set; then
4672 enableval="$enable_imaglist"
4673
4674 if test "$enableval" = yes; then
4675 ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
4676 else
4677 ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
4678 fi
4679
4680else
4681
4682 LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
4683 if test "x$LINE" != x ; then
4684 eval "DEFAULT_$LINE"
4685 else
4686 no_cache=1
4687 fi
4688
4689 ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
4690
4691fi
4692
4693
4694 eval "$ac_cv_use_imaglist"
4695 if test "$no_cache" != 1; then
4696 echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
4697 fi
4698
4699 if test "$wxUSE_IMAGLIST" = yes; then
4700 echo "$ac_t""yes" 1>&6
4701 else
4702 echo "$ac_t""no" 1>&6
4703 fi
4704
4705
4706 echo $ac_n "checking "for --enable-listbox"""... $ac_c" 1>&6
1216f52d 4707echo "configure:4708: checking "for --enable-listbox"" >&5
10f2d63a
VZ
4708 no_cache=0
4709 # Check whether --enable-listbox or --disable-listbox was given.
4710if test "${enable_listbox+set}" = set; then
4711 enableval="$enable_listbox"
4712
4713 if test "$enableval" = yes; then
4714 ac_cv_use_listbox='wxUSE_LISTBOX=yes'
4715 else
4716 ac_cv_use_listbox='wxUSE_LISTBOX=no'
4717 fi
4718
4719else
4720
4721 LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
4722 if test "x$LINE" != x ; then
4723 eval "DEFAULT_$LINE"
4724 else
4725 no_cache=1
4726 fi
4727
4728 ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
4729
4730fi
4731
4732
4733 eval "$ac_cv_use_listbox"
4734 if test "$no_cache" != 1; then
4735 echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
4736 fi
4737
4738 if test "$wxUSE_LISTBOX" = yes; then
4739 echo "$ac_t""yes" 1>&6
4740 else
4741 echo "$ac_t""no" 1>&6
4742 fi
4743
4744
4745 echo $ac_n "checking "for --enable-listctrl"""... $ac_c" 1>&6
1216f52d 4746echo "configure:4747: checking "for --enable-listctrl"" >&5
10f2d63a
VZ
4747 no_cache=0
4748 # Check whether --enable-listctrl or --disable-listctrl was given.
4749if test "${enable_listctrl+set}" = set; then
4750 enableval="$enable_listctrl"
4751
4752 if test "$enableval" = yes; then
4753 ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
4754 else
4755 ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
4756 fi
4757
4758else
4759
4760 LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
4761 if test "x$LINE" != x ; then
4762 eval "DEFAULT_$LINE"
4763 else
4764 no_cache=1
4765 fi
4766
4767 ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
4768
4769fi
4770
4771
4772 eval "$ac_cv_use_listctrl"
4773 if test "$no_cache" != 1; then
4774 echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
4775 fi
4776
4777 if test "$wxUSE_LISTCTRL" = yes; then
4778 echo "$ac_t""yes" 1>&6
4779 else
4780 echo "$ac_t""no" 1>&6
4781 fi
4782
4783
4784 echo $ac_n "checking "for --enable-notebook"""... $ac_c" 1>&6
1216f52d 4785echo "configure:4786: checking "for --enable-notebook"" >&5
10f2d63a
VZ
4786 no_cache=0
4787 # Check whether --enable-notebook or --disable-notebook was given.
4788if test "${enable_notebook+set}" = set; then
4789 enableval="$enable_notebook"
4790
4791 if test "$enableval" = yes; then
4792 ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
4793 else
4794 ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
4795 fi
4796
4797else
4798
4799 LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
4800 if test "x$LINE" != x ; then
4801 eval "DEFAULT_$LINE"
4802 else
4803 no_cache=1
4804 fi
4805
4806 ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
4807
4808fi
4809
4810
4811 eval "$ac_cv_use_notebook"
4812 if test "$no_cache" != 1; then
4813 echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
4814 fi
4815
4816 if test "$wxUSE_NOTEBOOK" = yes; then
4817 echo "$ac_t""yes" 1>&6
4818 else
4819 echo "$ac_t""no" 1>&6
4820 fi
4821
4822
4823 echo $ac_n "checking "for --enable-radiobox"""... $ac_c" 1>&6
1216f52d 4824echo "configure:4825: checking "for --enable-radiobox"" >&5
10f2d63a
VZ
4825 no_cache=0
4826 # Check whether --enable-radiobox or --disable-radiobox was given.
4827if test "${enable_radiobox+set}" = set; then
4828 enableval="$enable_radiobox"
4829
4830 if test "$enableval" = yes; then
4831 ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
4832 else
4833 ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
4834 fi
4835
4836else
4837
4838 LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
4839 if test "x$LINE" != x ; then
4840 eval "DEFAULT_$LINE"
4841 else
4842 no_cache=1
4843 fi
4844
4845 ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
4846
4847fi
4848
4849
4850 eval "$ac_cv_use_radiobox"
4851 if test "$no_cache" != 1; then
4852 echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
4853 fi
4854
4855 if test "$wxUSE_RADIOBOX" = yes; then
4856 echo "$ac_t""yes" 1>&6
4857 else
4858 echo "$ac_t""no" 1>&6
4859 fi
4860
4861
4862 echo $ac_n "checking "for --enable-radiobtn"""... $ac_c" 1>&6
1216f52d 4863echo "configure:4864: checking "for --enable-radiobtn"" >&5
10f2d63a
VZ
4864 no_cache=0
4865 # Check whether --enable-radiobtn or --disable-radiobtn was given.
4866if test "${enable_radiobtn+set}" = set; then
4867 enableval="$enable_radiobtn"
4868
4869 if test "$enableval" = yes; then
4870 ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
4871 else
4872 ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
4873 fi
4874
4875else
4876
4877 LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
4878 if test "x$LINE" != x ; then
4879 eval "DEFAULT_$LINE"
4880 else
4881 no_cache=1
4882 fi
4883
4884 ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
4885
4886fi
4887
4888
4889 eval "$ac_cv_use_radiobtn"
4890 if test "$no_cache" != 1; then
4891 echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
4892 fi
4893
4894 if test "$wxUSE_RADIOBTN" = yes; then
4895 echo "$ac_t""yes" 1>&6
4896 else
4897 echo "$ac_t""no" 1>&6
4898 fi
4899
4900
4901 echo $ac_n "checking "for --enable-sash"""... $ac_c" 1>&6
1216f52d 4902echo "configure:4903: checking "for --enable-sash"" >&5
10f2d63a
VZ
4903 no_cache=0
4904 # Check whether --enable-sash or --disable-sash was given.
4905if test "${enable_sash+set}" = set; then
4906 enableval="$enable_sash"
4907
4908 if test "$enableval" = yes; then
4909 ac_cv_use_sash='wxUSE_SASH=yes'
4910 else
4911 ac_cv_use_sash='wxUSE_SASH=no'
4912 fi
4913
4914else
4915
4916 LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
4917 if test "x$LINE" != x ; then
4918 eval "DEFAULT_$LINE"
4919 else
4920 no_cache=1
4921 fi
4922
4923 ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
4924
4925fi
4926
4927
4928 eval "$ac_cv_use_sash"
4929 if test "$no_cache" != 1; then
4930 echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
4931 fi
4932
4933 if test "$wxUSE_SASH" = yes; then
4934 echo "$ac_t""yes" 1>&6
4935 else
4936 echo "$ac_t""no" 1>&6
4937 fi
4938
4939
4940 echo $ac_n "checking "for --enable-scrollbar"""... $ac_c" 1>&6
1216f52d 4941echo "configure:4942: checking "for --enable-scrollbar"" >&5
10f2d63a
VZ
4942 no_cache=0
4943 # Check whether --enable-scrollbar or --disable-scrollbar was given.
4944if test "${enable_scrollbar+set}" = set; then
4945 enableval="$enable_scrollbar"
4946
4947 if test "$enableval" = yes; then
4948 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
4949 else
4950 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
4951 fi
4952
4953else
4954
4955 LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
4956 if test "x$LINE" != x ; then
4957 eval "DEFAULT_$LINE"
4958 else
4959 no_cache=1
4960 fi
4961
4962 ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
4963
4964fi
4965
4966
4967 eval "$ac_cv_use_scrollbar"
4968 if test "$no_cache" != 1; then
4969 echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
4970 fi
4971
4972 if test "$wxUSE_SCROLLBAR" = yes; then
4973 echo "$ac_t""yes" 1>&6
4974 else
4975 echo "$ac_t""no" 1>&6
4976 fi
4977
4978
4979 echo $ac_n "checking "for --enable-slider"""... $ac_c" 1>&6
1216f52d 4980echo "configure:4981: checking "for --enable-slider"" >&5
10f2d63a
VZ
4981 no_cache=0
4982 # Check whether --enable-slider or --disable-slider was given.
4983if test "${enable_slider+set}" = set; then
4984 enableval="$enable_slider"
4985
4986 if test "$enableval" = yes; then
4987 ac_cv_use_slider='wxUSE_SLIDER=yes'
4988 else
4989 ac_cv_use_slider='wxUSE_SLIDER=no'
4990 fi
4991
4992else
4993
4994 LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
4995 if test "x$LINE" != x ; then
4996 eval "DEFAULT_$LINE"
4997 else
4998 no_cache=1
4999 fi
5000
5001 ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
5002
5003fi
5004
5005
5006 eval "$ac_cv_use_slider"
5007 if test "$no_cache" != 1; then
5008 echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
5009 fi
5010
5011 if test "$wxUSE_SLIDER" = yes; then
5012 echo "$ac_t""yes" 1>&6
5013 else
5014 echo "$ac_t""no" 1>&6
5015 fi
5016
5017
5018 echo $ac_n "checking "for --enable-spinbtn"""... $ac_c" 1>&6
1216f52d 5019echo "configure:5020: checking "for --enable-spinbtn"" >&5
10f2d63a
VZ
5020 no_cache=0
5021 # Check whether --enable-spinbtn or --disable-spinbtn was given.
5022if test "${enable_spinbtn+set}" = set; then
5023 enableval="$enable_spinbtn"
5024
5025 if test "$enableval" = yes; then
5026 ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
5027 else
5028 ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
5029 fi
5030
5031else
5032
5033 LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
5034 if test "x$LINE" != x ; then
5035 eval "DEFAULT_$LINE"
5036 else
5037 no_cache=1
5038 fi
5039
5040 ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
5041
5042fi
5043
5044
5045 eval "$ac_cv_use_spinbtn"
5046 if test "$no_cache" != 1; then
5047 echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
5048 fi
5049
5050 if test "$wxUSE_SPINBTN" = yes; then
5051 echo "$ac_t""yes" 1>&6
5052 else
5053 echo "$ac_t""no" 1>&6
5054 fi
5055
5056
56cfaa52 5057 echo $ac_n "checking "for --enable-spinctrl"""... $ac_c" 1>&6
1216f52d 5058echo "configure:5059: checking "for --enable-spinctrl"" >&5
56cfaa52
RR
5059 no_cache=0
5060 # Check whether --enable-spinctrl or --disable-spinctrl was given.
5061if test "${enable_spinctrl+set}" = set; then
5062 enableval="$enable_spinctrl"
5063
5064 if test "$enableval" = yes; then
5065 ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
5066 else
5067 ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
5068 fi
5069
5070else
5071
5072 LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
5073 if test "x$LINE" != x ; then
5074 eval "DEFAULT_$LINE"
5075 else
5076 no_cache=1
5077 fi
5078
5079 ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
5080
5081fi
5082
5083
5084 eval "$ac_cv_use_spinctrl"
5085 if test "$no_cache" != 1; then
5086 echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
5087 fi
5088
5089 if test "$wxUSE_SPINCTRL" = yes; then
5090 echo "$ac_t""yes" 1>&6
5091 else
5092 echo "$ac_t""no" 1>&6
5093 fi
5094
5095
10f2d63a 5096 echo $ac_n "checking "for --enable-splitter"""... $ac_c" 1>&6
1216f52d 5097echo "configure:5098: checking "for --enable-splitter"" >&5
10f2d63a
VZ
5098 no_cache=0
5099 # Check whether --enable-splitter or --disable-splitter was given.
5100if test "${enable_splitter+set}" = set; then
5101 enableval="$enable_splitter"
5102
5103 if test "$enableval" = yes; then
5104 ac_cv_use_splitter='wxUSE_SPLITTER=yes'
5105 else
5106 ac_cv_use_splitter='wxUSE_SPLITTER=no'
5107 fi
5108
5109else
5110
5111 LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
5112 if test "x$LINE" != x ; then
5113 eval "DEFAULT_$LINE"
5114 else
5115 no_cache=1
5116 fi
5117
5118 ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
5119
5120fi
5121
5122
5123 eval "$ac_cv_use_splitter"
5124 if test "$no_cache" != 1; then
5125 echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
5126 fi
5127
5128 if test "$wxUSE_SPLITTER" = yes; then
5129 echo "$ac_t""yes" 1>&6
5130 else
5131 echo "$ac_t""no" 1>&6
5132 fi
5133
5134
5135 echo $ac_n "checking "for --enable-statbmp"""... $ac_c" 1>&6
1216f52d 5136echo "configure:5137: checking "for --enable-statbmp"" >&5
10f2d63a
VZ
5137 no_cache=0
5138 # Check whether --enable-statbmp or --disable-statbmp was given.
5139if test "${enable_statbmp+set}" = set; then
5140 enableval="$enable_statbmp"
5141
5142 if test "$enableval" = yes; then
5143 ac_cv_use_statbmp='wxUSE_STATBMP=yes'
5144 else
5145 ac_cv_use_statbmp='wxUSE_STATBMP=no'
5146 fi
5147
5148else
5149
5150 LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
5151 if test "x$LINE" != x ; then
5152 eval "DEFAULT_$LINE"
5153 else
5154 no_cache=1
5155 fi
5156
5157 ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
5158
5159fi
5160
5161
5162 eval "$ac_cv_use_statbmp"
5163 if test "$no_cache" != 1; then
5164 echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
5165 fi
5166
5167 if test "$wxUSE_STATBMP" = yes; then
5168 echo "$ac_t""yes" 1>&6
5169 else
5170 echo "$ac_t""no" 1>&6
5171 fi
5172
5173
5174 echo $ac_n "checking "for --enable-statbox"""... $ac_c" 1>&6
1216f52d 5175echo "configure:5176: checking "for --enable-statbox"" >&5
10f2d63a
VZ
5176 no_cache=0
5177 # Check whether --enable-statbox or --disable-statbox was given.
5178if test "${enable_statbox+set}" = set; then
5179 enableval="$enable_statbox"
5180
5181 if test "$enableval" = yes; then
5182 ac_cv_use_statbox='wxUSE_STATBOX=yes'
5183 else
5184 ac_cv_use_statbox='wxUSE_STATBOX=no'
5185 fi
5186
5187else
5188
5189 LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
5190 if test "x$LINE" != x ; then
5191 eval "DEFAULT_$LINE"
5192 else
5193 no_cache=1
5194 fi
5195
5196 ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
5197
5198fi
5199
5200
5201 eval "$ac_cv_use_statbox"
5202 if test "$no_cache" != 1; then
5203 echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
5204 fi
5205
5206 if test "$wxUSE_STATBOX" = yes; then
5207 echo "$ac_t""yes" 1>&6
5208 else
5209 echo "$ac_t""no" 1>&6
5210 fi
5211
5212
5213 echo $ac_n "checking "for --enable-statline"""... $ac_c" 1>&6
1216f52d 5214echo "configure:5215: checking "for --enable-statline"" >&5
10f2d63a
VZ
5215 no_cache=0
5216 # Check whether --enable-statline or --disable-statline was given.
5217if test "${enable_statline+set}" = set; then
5218 enableval="$enable_statline"
5219
5220 if test "$enableval" = yes; then
5221 ac_cv_use_statline='wxUSE_STATLINE=yes'
5222 else
5223 ac_cv_use_statline='wxUSE_STATLINE=no'
5224 fi
5225
5226else
5227
5228 LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
5229 if test "x$LINE" != x ; then
5230 eval "DEFAULT_$LINE"
5231 else
5232 no_cache=1
5233 fi
5234
5235 ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
5236
5237fi
5238
5239
5240 eval "$ac_cv_use_statline"
5241 if test "$no_cache" != 1; then
5242 echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
5243 fi
5244
5245 if test "$wxUSE_STATLINE" = yes; then
5246 echo "$ac_t""yes" 1>&6
5247 else
5248 echo "$ac_t""no" 1>&6
5249 fi
5250
5251
5252 echo $ac_n "checking "for --enable-statusbar"""... $ac_c" 1>&6
1216f52d 5253echo "configure:5254: checking "for --enable-statusbar"" >&5
10f2d63a
VZ
5254 no_cache=0
5255 # Check whether --enable-statusbar or --disable-statusbar was given.
5256if test "${enable_statusbar+set}" = set; then
5257 enableval="$enable_statusbar"
5258
5259 if test "$enableval" = yes; then
5260 ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
5261 else
5262 ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
5263 fi
5264
5265else
5266
5267 LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
5268 if test "x$LINE" != x ; then
5269 eval "DEFAULT_$LINE"
5270 else
5271 no_cache=1
5272 fi
5273
5274 ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
5275
5276fi
5277
5278
5279 eval "$ac_cv_use_statusbar"
5280 if test "$no_cache" != 1; then
5281 echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
5282 fi
5283
5284 if test "$wxUSE_STATUSBAR" = yes; then
5285 echo "$ac_t""yes" 1>&6
5286 else
5287 echo "$ac_t""no" 1>&6
5288 fi
5289
5290
5291 echo $ac_n "checking "for --enable-tabdialog"""... $ac_c" 1>&6
1216f52d 5292echo "configure:5293: checking "for --enable-tabdialog"" >&5
10f2d63a
VZ
5293 no_cache=0
5294 # Check whether --enable-tabdialog or --disable-tabdialog was given.
5295if test "${enable_tabdialog+set}" = set; then
5296 enableval="$enable_tabdialog"
5297
5298 if test "$enableval" = yes; then
5299 ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes'
5300 else
5301 ac_cv_use_tabdialog='wxUSE_TABDIALOG=no'
5302 fi
5303
5304else
5305
5306 LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}`
5307 if test "x$LINE" != x ; then
5308 eval "DEFAULT_$LINE"
5309 else
5310 no_cache=1
5311 fi
5312
5313 ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG
5314
5315fi
5316
5317
5318 eval "$ac_cv_use_tabdialog"
5319 if test "$no_cache" != 1; then
5320 echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
5321 fi
5322
5323 if test "$wxUSE_TABDIALOG" = yes; then
5324 echo "$ac_t""yes" 1>&6
5325 else
5326 echo "$ac_t""no" 1>&6
5327 fi
5328
5329
1db8dc4a 5330 echo $ac_n "checking "for --enable-togglebtn"""... $ac_c" 1>&6
1216f52d 5331echo "configure:5332: checking "for --enable-togglebtn"" >&5
1db8dc4a
VZ
5332 no_cache=0
5333 # Check whether --enable-togglebtn or --disable-togglebtn was given.
5334if test "${enable_togglebtn+set}" = set; then
5335 enableval="$enable_togglebtn"
5336
5337 if test "$enableval" = yes; then
5338 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
5339 else
5340 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
5341 fi
5342
5343else
5344
5345 LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}`
5346 if test "x$LINE" != x ; then
5347 eval "DEFAULT_$LINE"
5348 else
5349 no_cache=1
5350 fi
5351
5352 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN
5353
5354fi
5355
5356
5357 eval "$ac_cv_use_togglebtn"
5358 if test "$no_cache" != 1; then
5359 echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp
5360 fi
5361
5362 if test "$wxUSE_TOGGLEBTN" = yes; then
5363 echo "$ac_t""yes" 1>&6
5364 else
5365 echo "$ac_t""no" 1>&6
5366 fi
5367
5368
10f2d63a 5369 echo $ac_n "checking "for --enable-toolbar"""... $ac_c" 1>&6
1216f52d 5370echo "configure:5371: checking "for --enable-toolbar"" >&5
10f2d63a
VZ
5371 no_cache=0
5372 # Check whether --enable-toolbar or --disable-toolbar was given.
5373if test "${enable_toolbar+set}" = set; then
5374 enableval="$enable_toolbar"
5375
5376 if test "$enableval" = yes; then
5377 ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
5378 else
5379 ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
5380 fi
5381
5382else
5383
5384 LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
5385 if test "x$LINE" != x ; then
5386 eval "DEFAULT_$LINE"
5387 else
5388 no_cache=1
5389 fi
5390
5391 ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
5392
5393fi
5394
5395
5396 eval "$ac_cv_use_toolbar"
5397 if test "$no_cache" != 1; then
5398 echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
5399 fi
5400
5401 if test "$wxUSE_TOOLBAR" = yes; then
5402 echo "$ac_t""yes" 1>&6
5403 else
5404 echo "$ac_t""no" 1>&6
5405 fi
5406
5407
360d6699 5408 echo $ac_n "checking "for --enable-tbarnative"""... $ac_c" 1>&6
1216f52d 5409echo "configure:5410: checking "for --enable-tbarnative"" >&5
360d6699
VZ
5410 no_cache=0
5411 # Check whether --enable-tbarnative or --disable-tbarnative was given.
5412if test "${enable_tbarnative+set}" = set; then
5413 enableval="$enable_tbarnative"
5414
5415 if test "$enableval" = yes; then
5416 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
5417 else
5418 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
5419 fi
5420
5421else
5422
5423 LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
5424 if test "x$LINE" != x ; then
5425 eval "DEFAULT_$LINE"
5426 else
5427 no_cache=1
5428 fi
5429
5430 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
5431
5432fi
5433
5434
5435 eval "$ac_cv_use_tbarnative"
5436 if test "$no_cache" != 1; then
5437 echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
5438 fi
5439
5440 if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
5441 echo "$ac_t""yes" 1>&6
5442 else
5443 echo "$ac_t""no" 1>&6
5444 fi
5445
5446
5447 echo $ac_n "checking "for --enable-tbarsmpl"""... $ac_c" 1>&6
1216f52d 5448echo "configure:5449: checking "for --enable-tbarsmpl"" >&5
360d6699
VZ
5449 no_cache=0
5450 # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given.
5451if test "${enable_tbarsmpl+set}" = set; then
5452 enableval="$enable_tbarsmpl"
5453
5454 if test "$enableval" = yes; then
5455 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes'
5456 else
5457 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no'
5458 fi
5459
5460else
5461
5462 LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}`
5463 if test "x$LINE" != x ; then
5464 eval "DEFAULT_$LINE"
5465 else
5466 no_cache=1
5467 fi
5468
5469 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE
5470
5471fi
5472
5473
5474 eval "$ac_cv_use_tbarsmpl"
5475 if test "$no_cache" != 1; then
5476 echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp
5477 fi
5478
5479 if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then
5480 echo "$ac_t""yes" 1>&6
5481 else
5482 echo "$ac_t""no" 1>&6
5483 fi
5484
5485
10f2d63a 5486 echo $ac_n "checking "for --enable-treectrl"""... $ac_c" 1>&6
1216f52d 5487echo "configure:5488: checking "for --enable-treectrl"" >&5
10f2d63a
VZ
5488 no_cache=0
5489 # Check whether --enable-treectrl or --disable-treectrl was given.
5490if test "${enable_treectrl+set}" = set; then
5491 enableval="$enable_treectrl"
5492
5493 if test "$enableval" = yes; then
5494 ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
5495 else
5496 ac_cv_use_treectrl='wxUSE_TREECTRL=no'
5497 fi
5498
5499else
5500
5501 LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
5502 if test "x$LINE" != x ; then
5503 eval "DEFAULT_$LINE"
5504 else
5505 no_cache=1
5506 fi
5507
5508 ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
5509
5510fi
5511
5512
5513 eval "$ac_cv_use_treectrl"
5514 if test "$no_cache" != 1; then
5515 echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
5516 fi
5517
5518 if test "$wxUSE_TREECTRL" = yes; then
5519 echo "$ac_t""yes" 1>&6
5520 else
5521 echo "$ac_t""no" 1>&6
5522 fi
5523
5524
5525
5526
5527 echo $ac_n "checking "for --enable-commondlg"""... $ac_c" 1>&6
1216f52d 5528echo "configure:5529: checking "for --enable-commondlg"" >&5
10f2d63a
VZ
5529 no_cache=0
5530 # Check whether --enable-commondlg or --disable-commondlg was given.
5531if test "${enable_commondlg+set}" = set; then
5532 enableval="$enable_commondlg"
5533
5534 if test "$enableval" = yes; then
5535 ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
5536 else
5537 ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
5538 fi
5539
5540else
5541
5542 LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
5543 if test "x$LINE" != x ; then
5544 eval "DEFAULT_$LINE"
5545 else
5546 no_cache=1
5547 fi
5548
5549 ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
5550
5551fi
5552
5553
5554 eval "$ac_cv_use_commondlg"
5555 if test "$no_cache" != 1; then
5556 echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
5557 fi
5558
5559 if test "$wxUSE_COMMONDLGS" = yes; then
5560 echo "$ac_t""yes" 1>&6
5561 else
5562 echo "$ac_t""no" 1>&6
5563 fi
5564
5565
5566 echo $ac_n "checking "for --enable-dirdlg"""... $ac_c" 1>&6
1216f52d 5567echo "configure:5568: checking "for --enable-dirdlg"" >&5
10f2d63a
VZ
5568 no_cache=0
5569 # Check whether --enable-dirdlg or --disable-dirdlg was given.
5570if test "${enable_dirdlg+set}" = set; then
5571 enableval="$enable_dirdlg"
5572
5573 if test "$enableval" = yes; then
5574 ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
5575 else
5576 ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
5577 fi
5578
5579else
5580
5581 LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
5582 if test "x$LINE" != x ; then
5583 eval "DEFAULT_$LINE"
5584 else
5585 no_cache=1
5586 fi
5587
5588 ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
5589
5590fi
5591
5592
5593 eval "$ac_cv_use_dirdlg"
5594 if test "$no_cache" != 1; then
5595 echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
5596 fi
5597
5598 if test "$wxUSE_DIRDLG" = yes; then
5599 echo "$ac_t""yes" 1>&6
5600 else
5601 echo "$ac_t""no" 1>&6
5602 fi
5603
5604
5605 echo $ac_n "checking "for --enable-textdlg"""... $ac_c" 1>&6
1216f52d 5606echo "configure:5607: checking "for --enable-textdlg"" >&5
10f2d63a
VZ
5607 no_cache=0
5608 # Check whether --enable-textdlg or --disable-textdlg was given.
5609if test "${enable_textdlg+set}" = set; then
5610 enableval="$enable_textdlg"
5611
5612 if test "$enableval" = yes; then
5613 ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
5614 else
5615 ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
5616 fi
5617
5618else
5619
5620 LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
5621 if test "x$LINE" != x ; then
5622 eval "DEFAULT_$LINE"
5623 else
5624 no_cache=1
5625 fi
5626
5627 ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
5628
5629fi
5630
5631
5632 eval "$ac_cv_use_textdlg"
5633 if test "$no_cache" != 1; then
5634 echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
5635 fi
5636
5637 if test "$wxUSE_TEXTDLG" = yes; then
5638 echo "$ac_t""yes" 1>&6
5639 else
5640 echo "$ac_t""no" 1>&6
5641 fi
5642
5643
5644 echo $ac_n "checking "for --enable-tipdlg"""... $ac_c" 1>&6
1216f52d 5645echo "configure:5646: checking "for --enable-tipdlg"" >&5
10f2d63a
VZ
5646 no_cache=0
5647 # Check whether --enable-tipdlg or --disable-tipdlg was given.
5648if test "${enable_tipdlg+set}" = set; then
5649 enableval="$enable_tipdlg"
5650
5651 if test "$enableval" = yes; then
5652 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
5653 else
5654 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
5655 fi
5656
5657else
5658
5659 LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
5660 if test "x$LINE" != x ; then
5661 eval "DEFAULT_$LINE"
5662 else
5663 no_cache=1
5664 fi
5665
5666 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
5667
5668fi
5669
5670
5671 eval "$ac_cv_use_tipdlg"
5672 if test "$no_cache" != 1; then
5673 echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
5674 fi
5675
5676 if test "$wxUSE_STARTUP_TIPS" = yes; then
5677 echo "$ac_t""yes" 1>&6
5678 else
5679 echo "$ac_t""no" 1>&6
5680 fi
5681
5682
5683 echo $ac_n "checking "for --enable-progressdlg"""... $ac_c" 1>&6
1216f52d 5684echo "configure:5685: checking "for --enable-progressdlg"" >&5
10f2d63a
VZ
5685 no_cache=0
5686 # Check whether --enable-progressdlg or --disable-progressdlg was given.
5687if test "${enable_progressdlg+set}" = set; then
5688 enableval="$enable_progressdlg"
5689
5690 if test "$enableval" = yes; then
5691 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
5692 else
5693 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
5694 fi
5695
5696else
5697
5698 LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
5699 if test "x$LINE" != x ; then
5700 eval "DEFAULT_$LINE"
5701 else
5702 no_cache=1
5703 fi
5704
5705 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
5706
5707fi
5708
5709
5710 eval "$ac_cv_use_progressdlg"
5711 if test "$no_cache" != 1; then
5712 echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
5713 fi
5714
5715 if test "$wxUSE_PROGRESSDLG" = yes; then
5716 echo "$ac_t""yes" 1>&6
5717 else
5718 echo "$ac_t""no" 1>&6
5719 fi
5720
5721
5722 echo $ac_n "checking "for --enable-miniframe"""... $ac_c" 1>&6
1216f52d 5723echo "configure:5724: checking "for --enable-miniframe"" >&5
10f2d63a
VZ
5724 no_cache=0
5725 # Check whether --enable-miniframe or --disable-miniframe was given.
5726if test "${enable_miniframe+set}" = set; then
5727 enableval="$enable_miniframe"
5728
5729 if test "$enableval" = yes; then
5730 ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
5731 else
5732 ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
5733 fi
5734
5735else
5736
5737 LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
5738 if test "x$LINE" != x ; then
5739 eval "DEFAULT_$LINE"
5740 else
5741 no_cache=1
5742 fi
5743
5744 ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
5745
5746fi
5747
5748
5749 eval "$ac_cv_use_miniframe"
5750 if test "$no_cache" != 1; then
5751 echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
5752 fi
5753
5754 if test "$wxUSE_MINIFRAME" = yes; then
5755 echo "$ac_t""yes" 1>&6
5756 else
5757 echo "$ac_t""no" 1>&6
5758 fi
5759
5760
5761 echo $ac_n "checking "for --enable-html"""... $ac_c" 1>&6
1216f52d 5762echo "configure:5763: checking "for --enable-html"" >&5
10f2d63a
VZ
5763 no_cache=0
5764 # Check whether --enable-html or --disable-html was given.
5765if test "${enable_html+set}" = set; then
5766 enableval="$enable_html"
5767
5768 if test "$enableval" = yes; then
5769 ac_cv_use_html='wxUSE_HTML=yes'
5770 else
5771 ac_cv_use_html='wxUSE_HTML=no'
5772 fi
5773
5774else
5775
5776 LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
5777 if test "x$LINE" != x ; then
5778 eval "DEFAULT_$LINE"
5779 else
5780 no_cache=1
5781 fi
5782
5783 ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
5784
5785fi
5786
5787
5788 eval "$ac_cv_use_html"
5789 if test "$no_cache" != 1; then
5790 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
5791 fi
5792
5793 if test "$wxUSE_HTML" = yes; then
5794 echo "$ac_t""yes" 1>&6
5795 else
5796 echo "$ac_t""no" 1>&6
5797 fi
5798
5799
5800 echo $ac_n "checking "for --enable-tooltips"""... $ac_c" 1>&6
1216f52d 5801echo "configure:5802: checking "for --enable-tooltips"" >&5
10f2d63a
VZ
5802 no_cache=0
5803 # Check whether --enable-tooltips or --disable-tooltips was given.
5804if test "${enable_tooltips+set}" = set; then
5805 enableval="$enable_tooltips"
5806
5807 if test "$enableval" = yes; then
5808 ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
5809 else
5810 ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
5811 fi
5812
5813else
5814
5815 LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
5816 if test "x$LINE" != x ; then
5817 eval "DEFAULT_$LINE"
5818 else
5819 no_cache=1
5820 fi
5821
5822 ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
5823
5824fi
5825
5826
5827 eval "$ac_cv_use_tooltips"
5828 if test "$no_cache" != 1; then
5829 echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
5830 fi
5831
5832 if test "$wxUSE_TOOLTIPS" = yes; then
5833 echo "$ac_t""yes" 1>&6
5834 else
5835 echo "$ac_t""no" 1>&6
5836 fi
5837
5838
5839 echo $ac_n "checking "for --enable-splines"""... $ac_c" 1>&6
1216f52d 5840echo "configure:5841: checking "for --enable-splines"" >&5
10f2d63a
VZ
5841 no_cache=0
5842 # Check whether --enable-splines or --disable-splines was given.
5843if test "${enable_splines+set}" = set; then
5844 enableval="$enable_splines"
5845
5846 if test "$enableval" = yes; then
5847 ac_cv_use_splines='wxUSE_SPLINES=yes'
5848 else
5849 ac_cv_use_splines='wxUSE_SPLINES=no'
5850 fi
5851
5852else
5853
5854 LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
5855 if test "x$LINE" != x ; then
5856 eval "DEFAULT_$LINE"
5857 else
5858 no_cache=1
5859 fi
5860
5861 ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
5862
5863fi
5864
5865
5866 eval "$ac_cv_use_splines"
5867 if test "$no_cache" != 1; then
5868 echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
5869 fi
5870
5871 if test "$wxUSE_SPLINES" = yes; then
5872 echo "$ac_t""yes" 1>&6
5873 else
5874 echo "$ac_t""no" 1>&6
5875 fi
5876
5877
5878 echo $ac_n "checking "for --enable-validators"""... $ac_c" 1>&6
1216f52d 5879echo "configure:5880: checking "for --enable-validators"" >&5
10f2d63a
VZ
5880 no_cache=0
5881 # Check whether --enable-validators or --disable-validators was given.
5882if test "${enable_validators+set}" = set; then
5883 enableval="$enable_validators"
5884
5885 if test "$enableval" = yes; then
5886 ac_cv_use_validators='wxUSE_VALIDATORS=yes'
5887 else
5888 ac_cv_use_validators='wxUSE_VALIDATORS=no'
5889 fi
5890
5891else
5892
5893 LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
5894 if test "x$LINE" != x ; then
5895 eval "DEFAULT_$LINE"
5896 else
5897 no_cache=1
5898 fi
5899
5900 ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
5901
5902fi
5903
5904
5905 eval "$ac_cv_use_validators"
5906 if test "$no_cache" != 1; then
5907 echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
5908 fi
5909
5910 if test "$wxUSE_VALIDATORS" = yes; then
5911 echo "$ac_t""yes" 1>&6
5912 else
5913 echo "$ac_t""no" 1>&6
5914 fi
5915
5916
5917 echo $ac_n "checking "for --enable-busyinfo"""... $ac_c" 1>&6
1216f52d 5918echo "configure:5919: checking "for --enable-busyinfo"" >&5
10f2d63a
VZ
5919 no_cache=0
5920 # Check whether --enable-busyinfo or --disable-busyinfo was given.
5921if test "${enable_busyinfo+set}" = set; then
5922 enableval="$enable_busyinfo"
5923
5924 if test "$enableval" = yes; then
5925 ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
5926 else
5927 ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
5928 fi
5929
5930else
5931
5932 LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
5933 if test "x$LINE" != x ; then
5934 eval "DEFAULT_$LINE"
5935 else
5936 no_cache=1
5937 fi
5938
5939 ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
5940
5941fi
5942
5943
5944 eval "$ac_cv_use_busyinfo"
5945 if test "$no_cache" != 1; then
5946 echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
5947 fi
5948
5949 if test "$wxUSE_BUSYINFO" = yes; then
5950 echo "$ac_t""yes" 1>&6
5951 else
5952 echo "$ac_t""no" 1>&6
5953 fi
5954
5955
f6bcfd97 5956 echo $ac_n "checking "for --enable-joystick"""... $ac_c" 1>&6
1216f52d 5957echo "configure:5958: checking "for --enable-joystick"" >&5
f6bcfd97
BP
5958 no_cache=0
5959 # Check whether --enable-joystick or --disable-joystick was given.
5960if test "${enable_joystick+set}" = set; then
5961 enableval="$enable_joystick"
5962
5963 if test "$enableval" = yes; then
5964 ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
5965 else
5966 ac_cv_use_joystick='wxUSE_JOYSTICK=no'
5967 fi
5968
5969else
5970
5971 LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
5972 if test "x$LINE" != x ; then
5973 eval "DEFAULT_$LINE"
5974 else
5975 no_cache=1
5976 fi
5977
5978 ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
5979
5980fi
5981
5982
5983 eval "$ac_cv_use_joystick"
5984 if test "$no_cache" != 1; then
5985 echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
5986 fi
5987
5988 if test "$wxUSE_JOYSTICK" = yes; then
5989 echo "$ac_t""yes" 1>&6
5990 else
5991 echo "$ac_t""no" 1>&6
5992 fi
5993
5994
10f2d63a
VZ
5995
5996
0046ff7c 5997 echo $ac_n "checking "for --enable-image"""... $ac_c" 1>&6
1216f52d 5998echo "configure:5999: checking "for --enable-image"" >&5
0046ff7c
VS
5999 no_cache=0
6000 # Check whether --enable-image or --disable-image was given.
6001if test "${enable_image+set}" = set; then
6002 enableval="$enable_image"
6003
6004 if test "$enableval" = yes; then
6005 ac_cv_use_image='wxUSE_IMAGE=yes'
6006 else
6007 ac_cv_use_image='wxUSE_IMAGE=no'
6008 fi
6009
6010else
6011
6012 LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}`
6013 if test "x$LINE" != x ; then
6014 eval "DEFAULT_$LINE"
6015 else
6016 no_cache=1
6017 fi
6018
6019 ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE
6020
6021fi
6022
6023
6024 eval "$ac_cv_use_image"
6025 if test "$no_cache" != 1; then
6026 echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp
6027 fi
6028
6029 if test "$wxUSE_IMAGE" = yes; then
6030 echo "$ac_t""yes" 1>&6
6031 else
6032 echo "$ac_t""no" 1>&6
6033 fi
6034
6035
10f2d63a 6036 echo $ac_n "checking "for --enable-gif"""... $ac_c" 1>&6
1216f52d 6037echo "configure:6038: checking "for --enable-gif"" >&5
10f2d63a
VZ
6038 no_cache=0
6039 # Check whether --enable-gif or --disable-gif was given.
6040if test "${enable_gif+set}" = set; then
6041 enableval="$enable_gif"
6042
6043 if test "$enableval" = yes; then
6044 ac_cv_use_gif='wxUSE_GIF=yes'
6045 else
6046 ac_cv_use_gif='wxUSE_GIF=no'
6047 fi
6048
6049else
6050
6051 LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
6052 if test "x$LINE" != x ; then
6053 eval "DEFAULT_$LINE"
6054 else
6055 no_cache=1
6056 fi
6057
6058 ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
6059
6060fi
6061
6062
6063 eval "$ac_cv_use_gif"
6064 if test "$no_cache" != 1; then
6065 echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
6066 fi
6067
6068 if test "$wxUSE_GIF" = yes; then
6069 echo "$ac_t""yes" 1>&6
6070 else
6071 echo "$ac_t""no" 1>&6
6072 fi
6073
6074
6075 echo $ac_n "checking "for --enable-pcx"""... $ac_c" 1>&6
1216f52d 6076echo "configure:6077: checking "for --enable-pcx"" >&5
10f2d63a
VZ
6077 no_cache=0
6078 # Check whether --enable-pcx or --disable-pcx was given.
6079if test "${enable_pcx+set}" = set; then
6080 enableval="$enable_pcx"
6081
6082 if test "$enableval" = yes; then
6083 ac_cv_use_pcx='wxUSE_PCX=yes'
6084 else
6085 ac_cv_use_pcx='wxUSE_PCX=no'
6086 fi
6087
6088else
6089
6090 LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
6091 if test "x$LINE" != x ; then
6092 eval "DEFAULT_$LINE"
6093 else
6094 no_cache=1
6095 fi
6096
6097 ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
6098
6099fi
6100
6101
6102 eval "$ac_cv_use_pcx"
6103 if test "$no_cache" != 1; then
6104 echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
6105 fi
6106
6107 if test "$wxUSE_PCX" = yes; then
6108 echo "$ac_t""yes" 1>&6
6109 else
6110 echo "$ac_t""no" 1>&6
6111 fi
6112
6113
6114 echo $ac_n "checking "for --enable-pnm"""... $ac_c" 1>&6
1216f52d 6115echo "configure:6116: checking "for --enable-pnm"" >&5
10f2d63a
VZ
6116 no_cache=0
6117 # Check whether --enable-pnm or --disable-pnm was given.
6118if test "${enable_pnm+set}" = set; then
6119 enableval="$enable_pnm"
6120
6121 if test "$enableval" = yes; then
6122 ac_cv_use_pnm='wxUSE_PNM=yes'
6123 else
6124 ac_cv_use_pnm='wxUSE_PNM=no'
6125 fi
6126
6127else
6128
6129 LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
6130 if test "x$LINE" != x ; then
6131 eval "DEFAULT_$LINE"
6132 else
6133 no_cache=1
6134 fi
6135
6136 ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
6137
6138fi
6139
6140
6141 eval "$ac_cv_use_pnm"
6142 if test "$no_cache" != 1; then
6143 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
6144 fi
6145
6146 if test "$wxUSE_PNM" = yes; then
6147 echo "$ac_t""yes" 1>&6
6148 else
6149 echo "$ac_t""no" 1>&6
6150 fi
6151
6152
0046ff7c 6153 echo $ac_n "checking "for --enable-pnm"""... $ac_c" 1>&6
1216f52d 6154echo "configure:6155: checking "for --enable-pnm"" >&5
0046ff7c
VS
6155 no_cache=0
6156 # Check whether --enable-pnm or --disable-pnm was given.
6157if test "${enable_pnm+set}" = set; then
6158 enableval="$enable_pnm"
6159
6160 if test "$enableval" = yes; then
6161 ac_cv_use_pnm='wxUSE_XPM=yes'
6162 else
6163 ac_cv_use_pnm='wxUSE_XPM=no'
6164 fi
6165
6166else
6167
6168 LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}`
6169 if test "x$LINE" != x ; then
6170 eval "DEFAULT_$LINE"
6171 else
6172 no_cache=1
6173 fi
6174
6175 ac_cv_use_pnm='wxUSE_XPM='$DEFAULT_wxUSE_XPM
6176
6177fi
6178
6179
6180 eval "$ac_cv_use_pnm"
6181 if test "$no_cache" != 1; then
6182 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
6183 fi
6184
6185 if test "$wxUSE_XPM" = yes; then
6186 echo "$ac_t""yes" 1>&6
6187 else
6188 echo "$ac_t""no" 1>&6
6189 fi
6190
6191
b12915c1
VZ
6192fi
6193
10f2d63a
VZ
6194
6195 echo "saving argument cache $wx_arg_cache_file"
6196 mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
6197
6198
6199
6200echo $ac_n "checking for toolkit""... $ac_c" 1>&6
1216f52d 6201echo "configure:6202: checking for toolkit" >&5
10f2d63a
VZ
6202
6203if test "$wxUSE_GUI" = "yes"; then
6204
b12915c1
VZ
6205if test "$USE_BEOS" = 1; then
6206 { echo "configure: error: BeOS GUI is not supported yet, use --disable-gui" 1>&2; exit 1; }
6207fi
6208
10f2d63a
VZ
6209if test "$TOOLKIT_GIVEN" = 1; then
6210 for toolkit in `echo $ALL_TOOLKITS`; do
6211 var=wxUSE_$toolkit
6212 eval "value=\$${var}"
6213 eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`"
6214 done
6215else
6216 for toolkit in `echo $ALL_TOOLKITS`; do
6217 if test "$has_toolkit_in_cache" != 1; then
6218 var=DEFAULT_DEFAULT_wxUSE_$toolkit
6219 else
6220 var=DEFAULT_wxUSE_$toolkit
6221 fi
6222 eval "wxUSE_$toolkit=\$${var}"
6223 done
6224fi
6225
b4085ce6 6226NUM_TOOLKITS=`expr ${wxUSE_GTK:-0} + ${wxUSE_MOTIF:-0} + ${wxUSE_MAC:-0} + ${wxUSE_WINE:-0} + ${wxUSE_MINGW:-0} + ${wxUSE_CYGWIN:-0}`
cf27ef00 6227
ec14dd32
VZ
6228case "${host}" in
6229 *-pc-os2_emx )
6230 NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
6231 # PATH_IFS is autodetected by OS/2's configure (usually ';')
6232 LEX_STEM="lexyy"
6233 ;;
6234 *)
6235 PATH_IFS=':'
6236 LEX_STEM="lex.yy"
6237 ;;
6238esac
10f2d63a
VZ
6239
6240case "$NUM_TOOLKITS" in
6241 1)
6242 ;;
6243 0)
6244 { echo "configure: error: Please specify a toolkit - cannot determine the default for ${host}" 1>&2; exit 1; }
6245 ;;
6246 *)
6247 { echo "configure: error: Please specify at most one toolkit (may be some are cached?)" 1>&2; exit 1; }
6248esac
6249
6250for toolkit in `echo $ALL_TOOLKITS`; do
6251 var=wxUSE_$toolkit
6252 eval "value=\$${var}"
6253 if test "x$value" != x; then
6254 cache_var=CACHE_$toolkit
6255 eval "cache=\$${cache_var}"
6256 if test "$cache" = 1; then
6257 echo "$var=$value" >> ${wx_arg_cache_file}
6258 fi
6259 if test "$value" = 1; then
6260 echo "$ac_t""`echo $toolkit | tr A-Z a-z`" 1>&6
6261 fi
6262 fi
6263done
6264
6265else
cf27ef00 6266 PATH_IFS=':'
10f2d63a
VZ
6267 echo "$ac_t""base only" 1>&6
6268fi
6269
6270
6271cat > confcache <<\EOF
6272# This file is a shell script that caches the results of configure
6273# tests run on this system so they can be shared between configure
6274# scripts and configure runs. It is not useful on other systems.
6275# If it contains results you don't want to keep, you may remove or edit it.
6276#
6277# By default, configure uses ./config.cache as the cache file,
6278# creating it if it does not exist already. You can give configure
6279# the --cache-file=FILE option to use a different cache file; that is
6280# what configure does when it calls configure scripts in
6281# subdirectories, so they share the cache.
6282# Giving --cache-file=/dev/null disables caching, for debugging configure.
6283# config.status only pays attention to the cache file if you give it the
6284# --recheck option to rerun configure.
6285#
6286EOF
6287# The following way of writing the cache mishandles newlines in values,
6288# but we know of no workaround that is simple, portable, and efficient.
6289# So, don't put newlines in cache variables' values.
6290# Ultrix sh set writes to stderr and can't be redirected directly,
6291# and sets the high bit in the cache file unless we assign to the vars.
6292(set) 2>&1 |
6293 case `(ac_space=' '; set | grep ac_space) 2>&1` in
6294 *ac_space=\ *)
6295 # `set' does not quote correctly, so add quotes (double-quote substitution
6296 # turns \\\\ into \\, and sed turns \\ into \).
6297 sed -n \
6298 -e "s/'/'\\\\''/g" \
6299 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
6300 ;;
6301 *)
6302 # `set' quotes correctly as required by POSIX, so do not add quotes.
6303 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
6304 ;;
6305 esac >> confcache
6306if cmp -s $cache_file confcache; then
6307 :
6308else
6309 if test -w $cache_file; then
6310 echo "updating cache $cache_file"
6311 cat confcache > $cache_file
6312 else
6313 echo "not updating unwritable cache $cache_file"
6314 fi
6315fi
6316rm -f confcache
6317
6318
e59890c3 6319if test "$build" != "$host" ; then
10f2d63a
VZ
6320 CC=$host_alias-gcc
6321 CXX=$host_alias-c++
6322 AR=$host_alias-ar
6323 RANLIB=$host_alias-ranlib
6324 DLLTOOL=$host_alias-dlltool
32832908 6325 RESCOMP=$host_alias-windres
10f2d63a
VZ
6326 LD=$host_alias-ld
6327 NM=$host_alias-nm
6328 STRIP=$host_alias-strip
10f2d63a
VZ
6329fi
6330
6331# Extract the first word of "gcc", so it can be a program name with args.
6332set dummy gcc; ac_word=$2
6333echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1216f52d 6334echo "configure:6335: checking for $ac_word" >&5
10f2d63a
VZ
6335if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
6336 echo $ac_n "(cached) $ac_c" 1>&6
6337else
6338 if test -n "$CC"; then
6339 ac_cv_prog_CC="$CC" # Let the user override the test.
6340else
6341 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6342 ac_dummy="$PATH"
6343 for ac_dir in $ac_dummy; do
6344 test -z "$ac_dir" && ac_dir=.
6345 if test -f $ac_dir/$ac_word; then
6346 ac_cv_prog_CC="gcc"
6347 break
6348 fi
6349 done
6350 IFS="$ac_save_ifs"
6351fi
6352fi
6353CC="$ac_cv_prog_CC"
6354if test -n "$CC"; then
6355 echo "$ac_t""$CC" 1>&6
6356else
6357 echo "$ac_t""no" 1>&6
6358fi
6359
6360if test -z "$CC"; then
6361 # Extract the first word of "cc", so it can be a program name with args.
6362set dummy cc; ac_word=$2
6363echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1216f52d 6364echo "configure:6365: checking for $ac_word" >&5
10f2d63a
VZ
6365if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
6366 echo $ac_n "(cached) $ac_c" 1>&6
6367else
6368 if test -n "$CC"; then
6369 ac_cv_prog_CC="$CC" # Let the user override the test.
6370else
6371 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6372 ac_prog_rejected=no
6373 ac_dummy="$PATH"
6374 for ac_dir in $ac_dummy; do
6375 test -z "$ac_dir" && ac_dir=.
6376 if test -f $ac_dir/$ac_word; then
6377 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
6378 ac_prog_rejected=yes
6379 continue
6380 fi
6381 ac_cv_prog_CC="cc"
6382 break
6383 fi
6384 done
6385 IFS="$ac_save_ifs"
6386if test $ac_prog_rejected = yes; then
6387 # We found a bogon in the path, so make sure we never use it.
6388 set dummy $ac_cv_prog_CC
6389 shift
6390 if test $# -gt 0; then
6391 # We chose a different compiler from the bogus one.
6392 # However, it has the same basename, so the bogon will be chosen
6393 # first if we set CC to just the basename; use the full file name.
6394 shift
6395 set dummy "$ac_dir/$ac_word" "$@"
6396 shift
6397 ac_cv_prog_CC="$@"
6398 fi
6399fi
6400fi
6401fi
6402CC="$ac_cv_prog_CC"
6403if test -n "$CC"; then
6404 echo "$ac_t""$CC" 1>&6
6405else
6406 echo "$ac_t""no" 1>&6
6407fi
6408
6409 if test -z "$CC"; then
6410 case "`uname -s`" in
6411 *win32* | *WIN32*)
6412 # Extract the first word of "cl", so it can be a program name with args.
6413set dummy cl; ac_word=$2
6414echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1216f52d 6415echo "configure:6416: checking for $ac_word" >&5
10f2d63a
VZ
6416if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
6417 echo $ac_n "(cached) $ac_c" 1>&6
6418else
6419 if test -n "$CC"; then
6420 ac_cv_prog_CC="$CC" # Let the user override the test.
6421else
6422 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6423 ac_dummy="$PATH"
6424 for ac_dir in $ac_dummy; do
6425 test -z "$ac_dir" && ac_dir=.
6426 if test -f $ac_dir/$ac_word; then
6427 ac_cv_prog_CC="cl"
6428 break
6429 fi
6430 done
6431 IFS="$ac_save_ifs"
6432fi
6433fi
6434CC="$ac_cv_prog_CC"
6435if test -n "$CC"; then
6436 echo "$ac_t""$CC" 1>&6
6437else
6438 echo "$ac_t""no" 1>&6
6439fi
6440 ;;
6441 esac
6442 fi
6443 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
6444fi
6445
6446echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1216f52d 6447echo "configure:6448: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
10f2d63a
VZ
6448
6449ac_ext=c
6450# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6451ac_cpp='$CPP $CPPFLAGS'
6452ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6453ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6454cross_compiling=$ac_cv_prog_cc_cross
6455
6456cat > conftest.$ac_ext << EOF
6457
1216f52d 6458#line 6459 "configure"
10f2d63a
VZ
6459#include "confdefs.h"
6460
6461main(){return(0);}
6462EOF
1216f52d 6463if { (eval echo configure:6464: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
6464 ac_cv_prog_cc_works=yes
6465 # If we can't run a trivial program, we are probably using a cross compiler.
6466 if (./conftest; exit) 2>/dev/null; then
6467 ac_cv_prog_cc_cross=no
6468 else
6469 ac_cv_prog_cc_cross=yes
6470 fi
6471else
6472 echo "configure: failed program was:" >&5
6473 cat conftest.$ac_ext >&5
6474 ac_cv_prog_cc_works=no
6475fi
6476rm -fr conftest*
6477ac_ext=c
6478# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6479ac_cpp='$CPP $CPPFLAGS'
6480ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6481ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6482cross_compiling=$ac_cv_prog_cc_cross
6483
6484echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
6485if test $ac_cv_prog_cc_works = no; then
6486 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
6487fi
6488echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1216f52d 6489echo "configure:6490: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
10f2d63a
VZ
6490echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
6491cross_compiling=$ac_cv_prog_cc_cross
6492
6493echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1216f52d 6494echo "configure:6495: checking whether we are using GNU C" >&5
10f2d63a
VZ
6495if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
6496 echo $ac_n "(cached) $ac_c" 1>&6
6497else
6498 cat > conftest.c <<EOF
6499#ifdef __GNUC__
6500 yes;
6501#endif
6502EOF
1216f52d 6503if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:6504: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
10f2d63a
VZ
6504 ac_cv_prog_gcc=yes
6505else
6506 ac_cv_prog_gcc=no
6507fi
6508fi
6509
6510echo "$ac_t""$ac_cv_prog_gcc" 1>&6
6511
6512if test $ac_cv_prog_gcc = yes; then
6513 GCC=yes
6514else
6515 GCC=
6516fi
6517
6518ac_test_CFLAGS="${CFLAGS+set}"
6519ac_save_CFLAGS="$CFLAGS"
6520CFLAGS=
6521echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1216f52d 6522echo "configure:6523: checking whether ${CC-cc} accepts -g" >&5
10f2d63a
VZ
6523if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
6524 echo $ac_n "(cached) $ac_c" 1>&6
6525else
6526 echo 'void f(){}' > conftest.c
6527if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
6528 ac_cv_prog_cc_g=yes
6529else
6530 ac_cv_prog_cc_g=no
6531fi
6532rm -f conftest*
6533
6534fi
6535
6536echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
6537if test "$ac_test_CFLAGS" = set; then
6538 CFLAGS="$ac_save_CFLAGS"
6539elif test $ac_cv_prog_cc_g = yes; then
6540 if test "$GCC" = yes; then
6541 CFLAGS="-g -O2"
6542 else
6543 CFLAGS="-g"
6544 fi
6545else
6546 if test "$GCC" = yes; then
6547 CFLAGS="-O2"
6548 else
6549 CFLAGS=
6550 fi
6551fi
6552
6553
6554CFLAGS=`echo "$CFLAGS" | sed 's/-g//g'`
6555
6556echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1216f52d 6557echo "configure:6558: checking how to run the C preprocessor" >&5
10f2d63a
VZ
6558# On Suns, sometimes $CPP names a directory.
6559if test -n "$CPP" && test -d "$CPP"; then
6560 CPP=
6561fi
6562if test -z "$CPP"; then
6563if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
6564 echo $ac_n "(cached) $ac_c" 1>&6
6565else
6566 # This must be in double quotes, not single quotes, because CPP may get
6567 # substituted into the Makefile and "${CC-cc}" will confuse make.
6568 CPP="${CC-cc} -E"
6569 # On the NeXT, cc -E runs the code through the compiler's parser,
6570 # not just through cpp.
6571 cat > conftest.$ac_ext <<EOF
1216f52d 6572#line 6573 "configure"
10f2d63a
VZ
6573#include "confdefs.h"
6574#include <assert.h>
6575Syntax Error
6576EOF
6577ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1216f52d 6578{ (eval echo configure:6579: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
6579ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6580if test -z "$ac_err"; then
6581 :
6582else
6583 echo "$ac_err" >&5
6584 echo "configure: failed program was:" >&5
6585 cat conftest.$ac_ext >&5
6586 rm -rf conftest*
6587 CPP="${CC-cc} -E -traditional-cpp"
6588 cat > conftest.$ac_ext <<EOF
1216f52d 6589#line 6590 "configure"
10f2d63a
VZ
6590#include "confdefs.h"
6591#include <assert.h>
6592Syntax Error
6593EOF
6594ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1216f52d 6595{ (eval echo configure:6596: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
6596ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6597if test -z "$ac_err"; then
6598 :
6599else
6600 echo "$ac_err" >&5
6601 echo "configure: failed program was:" >&5
6602 cat conftest.$ac_ext >&5
6603 rm -rf conftest*
6604 CPP="${CC-cc} -nologo -E"
6605 cat > conftest.$ac_ext <<EOF
1216f52d 6606#line 6607 "configure"
10f2d63a
VZ
6607#include "confdefs.h"
6608#include <assert.h>
6609Syntax Error
6610EOF
6611ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1216f52d 6612{ (eval echo configure:6613: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
6613ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6614if test -z "$ac_err"; then
6615 :
6616else
6617 echo "$ac_err" >&5
6618 echo "configure: failed program was:" >&5
6619 cat conftest.$ac_ext >&5
6620 rm -rf conftest*
6621 CPP=/lib/cpp
6622fi
6623rm -f conftest*
6624fi
6625rm -f conftest*
6626fi
6627rm -f conftest*
6628 ac_cv_prog_CPP="$CPP"
6629fi
6630 CPP="$ac_cv_prog_CPP"
6631else
6632 ac_cv_prog_CPP="$CPP"
6633fi
6634echo "$ac_t""$CPP" 1>&6
6635
6636
6637if test $ac_cv_prog_gcc = yes; then
6638 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
1216f52d 6639echo "configure:6640: checking whether ${CC-cc} needs -traditional" >&5
10f2d63a
VZ
6640if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
6641 echo $ac_n "(cached) $ac_c" 1>&6
6642else
6643 ac_pattern="Autoconf.*'x'"
6644 cat > conftest.$ac_ext <<EOF
1216f52d 6645#line 6646 "configure"
10f2d63a
VZ
6646#include "confdefs.h"
6647#include <sgtty.h>
6648Autoconf TIOCGETP
6649EOF
6650if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6651 egrep "$ac_pattern" >/dev/null 2>&1; then
6652 rm -rf conftest*
6653 ac_cv_prog_gcc_traditional=yes
6654else
6655 rm -rf conftest*
6656 ac_cv_prog_gcc_traditional=no
6657fi
6658rm -f conftest*
6659
6660
6661 if test $ac_cv_prog_gcc_traditional = no; then
6662 cat > conftest.$ac_ext <<EOF
1216f52d 6663#line 6664 "configure"
10f2d63a
VZ
6664#include "confdefs.h"
6665#include <termio.h>
6666Autoconf TCGETA
6667EOF
6668if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6669 egrep "$ac_pattern" >/dev/null 2>&1; then
6670 rm -rf conftest*
6671 ac_cv_prog_gcc_traditional=yes
6672fi
6673rm -f conftest*
6674
6675 fi
6676fi
6677
6678echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
6679 if test $ac_cv_prog_gcc_traditional = yes; then
6680 CC="$CC -traditional"
6681 fi
6682fi
6683
6684
6685
6686ac_ext=C
6687# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6688ac_cpp='$CXXCPP $CPPFLAGS'
6689ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6690ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6691cross_compiling=$ac_cv_prog_cxx_cross
6692
6693
6694for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
6695do
6696# Extract the first word of "$ac_prog", so it can be a program name with args.
6697set dummy $ac_prog; ac_word=$2
6698echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1216f52d 6699echo "configure:6700: checking for $ac_word" >&5
10f2d63a
VZ
6700if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
6701 echo $ac_n "(cached) $ac_c" 1>&6
6702else
6703 if test -n "$CXX"; then
6704 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6705else
6706 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6707 ac_dummy="$PATH"
6708 for ac_dir in $ac_dummy; do
6709 test -z "$ac_dir" && ac_dir=.
6710 if test -f $ac_dir/$ac_word; then
6711 ac_cv_prog_CXX="$ac_prog"
6712 break
6713 fi
6714 done
6715 IFS="$ac_save_ifs"
6716fi
6717fi
6718CXX="$ac_cv_prog_CXX"
6719if test -n "$CXX"; then
6720 echo "$ac_t""$CXX" 1>&6
6721else
6722 echo "$ac_t""no" 1>&6
6723fi
6724
6725test -n "$CXX" && break
6726done
6727test -n "$CXX" || CXX="gcc"
6728
6729
6730echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1216f52d 6731echo "configure:6732: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
10f2d63a
VZ
6732
6733ac_ext=C
6734# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6735ac_cpp='$CXXCPP $CPPFLAGS'
6736ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6737ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6738cross_compiling=$ac_cv_prog_cxx_cross
6739
6740cat > conftest.$ac_ext << EOF
6741
1216f52d 6742#line 6743 "configure"
10f2d63a
VZ
6743#include "confdefs.h"
6744
6745int main(){return(0);}
6746EOF
1216f52d 6747if { (eval echo configure:6748: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
6748 ac_cv_prog_cxx_works=yes
6749 # If we can't run a trivial program, we are probably using a cross compiler.
6750 if (./conftest; exit) 2>/dev/null; then
6751 ac_cv_prog_cxx_cross=no
6752 else
6753 ac_cv_prog_cxx_cross=yes
6754 fi
6755else
6756 echo "configure: failed program was:" >&5
6757 cat conftest.$ac_ext >&5
6758 ac_cv_prog_cxx_works=no
6759fi
6760rm -fr conftest*
6761ac_ext=C
6762# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6763ac_cpp='$CXXCPP $CPPFLAGS'
6764ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6765ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6766cross_compiling=$ac_cv_prog_cxx_cross
6767
6768echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
6769if test $ac_cv_prog_cxx_works = no; then
6770 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
6771fi
6772echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1216f52d 6773echo "configure:6774: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
10f2d63a
VZ
6774echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
6775cross_compiling=$ac_cv_prog_cxx_cross
6776
6777echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
1216f52d 6778echo "configure:6779: checking whether we are using GNU C++" >&5
10f2d63a
VZ
6779if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
6780 echo $ac_n "(cached) $ac_c" 1>&6
6781else
6782 cat > conftest.C <<EOF
6783#ifdef __GNUC__
6784 yes;
6785#endif
6786EOF
1216f52d 6787if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:6788: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
10f2d63a
VZ
6788 ac_cv_prog_gxx=yes
6789else
6790 ac_cv_prog_gxx=no
6791fi
6792fi
6793
6794echo "$ac_t""$ac_cv_prog_gxx" 1>&6
6795
6796if test $ac_cv_prog_gxx = yes; then
6797 GXX=yes
6798else
6799 GXX=
6800fi
6801
6802ac_test_CXXFLAGS="${CXXFLAGS+set}"
6803ac_save_CXXFLAGS="$CXXFLAGS"
6804CXXFLAGS=
6805echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
1216f52d 6806echo "configure:6807: checking whether ${CXX-g++} accepts -g" >&5
10f2d63a
VZ
6807if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
6808 echo $ac_n "(cached) $ac_c" 1>&6
6809else
6810 echo 'void f(){}' > conftest.cc
6811if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
6812 ac_cv_prog_cxx_g=yes
6813else
6814 ac_cv_prog_cxx_g=no
6815fi
6816rm -f conftest*
6817
6818fi
6819
6820echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
6821if test "$ac_test_CXXFLAGS" = set; then
6822 CXXFLAGS="$ac_save_CXXFLAGS"
6823elif test $ac_cv_prog_cxx_g = yes; then
6824 if test "$GXX" = yes; then
6825 CXXFLAGS="-g -O2"
6826 else
6827 CXXFLAGS="-g"
6828 fi
6829else
6830 if test "$GXX" = yes; then
6831 CXXFLAGS="-O2"
6832 else
6833 CXXFLAGS=
6834 fi
6835fi
6836
6837
6838echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
1216f52d 6839echo "configure:6840: checking how to run the C++ preprocessor" >&5
10f2d63a
VZ
6840if test -z "$CXXCPP"; then
6841if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
6842 echo $ac_n "(cached) $ac_c" 1>&6
6843else
6844 ac_ext=C
6845# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6846ac_cpp='$CXXCPP $CPPFLAGS'
6847ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6848ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6849cross_compiling=$ac_cv_prog_cxx_cross
6850 CXXCPP="${CXX-g++} -E"
6851 cat > conftest.$ac_ext <<EOF
1216f52d 6852#line 6853 "configure"
10f2d63a
VZ
6853#include "confdefs.h"
6854#include <stdlib.h>
6855EOF
6856ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1216f52d 6857{ (eval echo configure:6858: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
6858ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6859if test -z "$ac_err"; then
6860 :
6861else
6862 echo "$ac_err" >&5
6863 echo "configure: failed program was:" >&5
6864 cat conftest.$ac_ext >&5
6865 rm -rf conftest*
6866 CXXCPP=/lib/cpp
6867fi
6868rm -f conftest*
6869 ac_cv_prog_CXXCPP="$CXXCPP"
6870ac_ext=C
6871# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6872ac_cpp='$CXXCPP $CPPFLAGS'
6873ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6874ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6875cross_compiling=$ac_cv_prog_cxx_cross
6876fi
6877fi
6878CXXCPP="$ac_cv_prog_CXXCPP"
6879echo "$ac_t""$CXXCPP" 1>&6
6880
6881
6882CXXFLAGS=`echo "$CXXFLAGS" | sed 's/-g//g'`
6883
6884ac_ext=c
6885# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6886ac_cpp='$CPP $CPPFLAGS'
6887ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6888ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6889cross_compiling=$ac_cv_prog_cc_cross
6890
6891
6892# Extract the first word of "ranlib", so it can be a program name with args.
6893set dummy ranlib; ac_word=$2
6894echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1216f52d 6895echo "configure:6896: checking for $ac_word" >&5
10f2d63a
VZ
6896if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
6897 echo $ac_n "(cached) $ac_c" 1>&6
6898else
6899 if test -n "$RANLIB"; then
6900 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6901else
6902 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6903 ac_dummy="$PATH"
6904 for ac_dir in $ac_dummy; do
6905 test -z "$ac_dir" && ac_dir=.
6906 if test -f $ac_dir/$ac_word; then
6907 ac_cv_prog_RANLIB="ranlib"
6908 break
6909 fi
6910 done
6911 IFS="$ac_save_ifs"
6912 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
6913fi
6914fi
6915RANLIB="$ac_cv_prog_RANLIB"
6916if test -n "$RANLIB"; then
6917 echo "$ac_t""$RANLIB" 1>&6
6918else
6919 echo "$ac_t""no" 1>&6
6920fi
6921
6922
6923# Extract the first word of "ar", so it can be a program name with args.
6924set dummy ar; ac_word=$2
6925echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1216f52d 6926echo "configure:6927: checking for $ac_word" >&5
10f2d63a
VZ
6927if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
6928 echo $ac_n "(cached) $ac_c" 1>&6
6929else
6930 if test -n "$AR"; then
6931 ac_cv_prog_AR="$AR" # Let the user override the test.
6932else
6933 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6934 ac_dummy="$PATH"
6935 for ac_dir in $ac_dummy; do
6936 test -z "$ac_dir" && ac_dir=.
6937 if test -f $ac_dir/$ac_word; then
6938 ac_cv_prog_AR="ar"
6939 break
6940 fi
6941 done
6942 IFS="$ac_save_ifs"
6943 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
6944fi
6945fi
6946AR="$ac_cv_prog_AR"
6947if test -n "$AR"; then
6948 echo "$ac_t""$AR" 1>&6
6949else
6950 echo "$ac_t""no" 1>&6
6951fi
6952
6953
6954# Find a good install program. We prefer a C program (faster),
6955# so one script is as good as another. But avoid the broken or
6956# incompatible versions:
6957# SysV /etc/install, /usr/sbin/install
6958# SunOS /usr/etc/install
6959# IRIX /sbin/install
6960# AIX /bin/install
6961# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6962# AFS /usr/afsws/bin/install, which mishandles nonexistent args
6963# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6964# ./install, which can be erroneously created by make from ./install.sh.
6965echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1216f52d 6966echo "configure:6967: checking for a BSD compatible install" >&5
10f2d63a
VZ
6967if test -z "$INSTALL"; then
6968if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
6969 echo $ac_n "(cached) $ac_c" 1>&6
6970else
6971 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
6972 for ac_dir in $PATH; do
6973 # Account for people who put trailing slashes in PATH elements.
6974 case "$ac_dir/" in
6975 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
6976 *)
6977 # OSF1 and SCO ODT 3.0 have their own names for install.
6978 # Don't use installbsd from OSF since it installs stuff as root
6979 # by default.
6980 for ac_prog in ginstall scoinst install; do
6981 if test -f $ac_dir/$ac_prog; then
6982 if test $ac_prog = install &&
6983 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
6984 # AIX install. It has an incompatible calling convention.
6985 :
6986 else
6987 ac_cv_path_install="$ac_dir/$ac_prog -c"
6988 break 2
6989 fi
6990 fi
6991 done
6992 ;;
6993 esac
6994 done
6995 IFS="$ac_save_IFS"
6996
6997fi
6998 if test "${ac_cv_path_install+set}" = set; then
6999 INSTALL="$ac_cv_path_install"
7000 else
7001 # As a last resort, use the slow shell script. We don't cache a
7002 # path for INSTALL within a source directory, because that will
7003 # break other packages using the cache if that directory is
7004 # removed, or if the path is relative.
7005 INSTALL="$ac_install_sh"
7006 fi
7007fi
7008echo "$ac_t""$INSTALL" 1>&6
7009
7010# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7011# It thinks the first close brace ends the variable substitution.
7012test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7013
7014test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
7015
7016test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7017
7018
7019# Extract the first word of "strip", so it can be a program name with args.
7020set dummy strip; ac_word=$2
7021echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1216f52d 7022echo "configure:7023: checking for $ac_word" >&5
10f2d63a
VZ
7023if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
7024 echo $ac_n "(cached) $ac_c" 1>&6
7025else
7026 if test -n "$STRIP"; then
7027 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7028else
7029 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7030 ac_dummy="$PATH"
7031 for ac_dir in $ac_dummy; do
7032 test -z "$ac_dir" && ac_dir=.
7033 if test -f $ac_dir/$ac_word; then
7034 ac_cv_prog_STRIP="strip"
7035 break
7036 fi
7037 done
7038 IFS="$ac_save_ifs"
7039 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true"
7040fi
7041fi
7042STRIP="$ac_cv_prog_STRIP"
7043if test -n "$STRIP"; then
7044 echo "$ac_t""$STRIP" 1>&6
7045else
7046 echo "$ac_t""no" 1>&6
7047fi
7048
7049
7050echo $ac_n "checking "make for VPATH support"""... $ac_c" 1>&6
1216f52d 7051echo "configure:7052: checking "make for VPATH support"" >&5
10f2d63a
VZ
7052cat - << EOF > confMake
7053check : file
7054 cp \$? \$@
7055 cp \$? final_file
7056EOF
7057
7058if test ! -d sub ; then
7059 mkdir sub
7060fi
7061echo dummy > sub/file
f6bcfd97 7062${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
10f2d63a
VZ
7063RESULT=$?
7064rm -f sub/file check final_file confMake
7065rmdir sub
7066if test "$RESULT" = 0; then
7067 echo "$ac_t""yes" 1>&6
7068else
7069 echo "$ac_t""no" 1>&6
7070 { echo "configure: error: You need a make-utility that is able to use the variable
7071VPATH correctly.
7072If your version of make does not support VPATH correctly" 1>&2; exit 1; }
7073fi
7074
7075for ac_prog in 'bison -y' byacc
7076do
7077# Extract the first word of "$ac_prog", so it can be a program name with args.
7078set dummy $ac_prog; ac_word=$2
7079echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1216f52d 7080echo "configure:7081: checking for $ac_word" >&5
10f2d63a
VZ
7081if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
7082 echo $ac_n "(cached) $ac_c" 1>&6
7083else
7084 if test -n "$YACC"; then
7085 ac_cv_prog_YACC="$YACC" # Let the user override the test.
7086else
7087 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7088 ac_dummy="$PATH"
7089 for ac_dir in $ac_dummy; do
7090 test -z "$ac_dir" && ac_dir=.
7091 if test -f $ac_dir/$ac_word; then
7092 ac_cv_prog_YACC="$ac_prog"
7093 break
7094 fi
7095 done
7096 IFS="$ac_save_ifs"
7097fi
7098fi
7099YACC="$ac_cv_prog_YACC"
7100if test -n "$YACC"; then
7101 echo "$ac_t""$YACC" 1>&6
7102else
7103 echo "$ac_t""no" 1>&6
7104fi
7105
7106test -n "$YACC" && break
7107done
7108test -n "$YACC" || YACC="yacc"
7109
7110
7111# Extract the first word of "flex", so it can be a program name with args.
7112set dummy flex; ac_word=$2
7113echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1216f52d 7114echo "configure:7115: checking for $ac_word" >&5
10f2d63a
VZ
7115if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
7116 echo $ac_n "(cached) $ac_c" 1>&6
7117else
7118 if test -n "$LEX"; then
7119 ac_cv_prog_LEX="$LEX" # Let the user override the test.
7120else
7121 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7122 ac_dummy="$PATH"
7123 for ac_dir in $ac_dummy; do
7124 test -z "$ac_dir" && ac_dir=.
7125 if test -f $ac_dir/$ac_word; then
7126 ac_cv_prog_LEX="flex"
7127 break
7128 fi
7129 done
7130 IFS="$ac_save_ifs"
7131 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
7132fi
7133fi
7134LEX="$ac_cv_prog_LEX"
7135if test -n "$LEX"; then
7136 echo "$ac_t""$LEX" 1>&6
7137else
7138 echo "$ac_t""no" 1>&6
7139fi
7140
7141if test -z "$LEXLIB"
7142then
7143 case "$LEX" in
7144 flex*) ac_lib=fl ;;
7145 *) ac_lib=l ;;
7146 esac
7147 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
1216f52d 7148echo "configure:7149: checking for yywrap in -l$ac_lib" >&5
10f2d63a
VZ
7149ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
7150if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7151 echo $ac_n "(cached) $ac_c" 1>&6
7152else
7153 ac_save_LIBS="$LIBS"
7154LIBS="-l$ac_lib $LIBS"
7155cat > conftest.$ac_ext <<EOF
1216f52d 7156#line 7157 "configure"
10f2d63a
VZ
7157#include "confdefs.h"
7158/* Override any gcc2 internal prototype to avoid an error. */
7159/* We use char because int might match the return type of a gcc2
7160 builtin and then its argument prototype would still apply. */
7161char yywrap();
7162
7163int main() {
7164yywrap()
7165; return 0; }
7166EOF
1216f52d 7167if { (eval echo configure:7168: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
7168 rm -rf conftest*
7169 eval "ac_cv_lib_$ac_lib_var=yes"
7170else
7171 echo "configure: failed program was:" >&5
7172 cat conftest.$ac_ext >&5
7173 rm -rf conftest*
7174 eval "ac_cv_lib_$ac_lib_var=no"
7175fi
7176rm -f conftest*
7177LIBS="$ac_save_LIBS"
7178
7179fi
7180if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7181 echo "$ac_t""yes" 1>&6
7182 LEXLIB="-l$ac_lib"
7183else
7184 echo "$ac_t""no" 1>&6
7185fi
7186
7187fi
7188
7189
7190echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1216f52d 7191echo "configure:7192: checking whether ln -s works" >&5
10f2d63a
VZ
7192if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
7193 echo $ac_n "(cached) $ac_c" 1>&6
7194else
7195 rm -f conftestdata
7196if ln -s X conftestdata 2>/dev/null
7197then
7198 rm -f conftestdata
7199 ac_cv_prog_LN_S="ln -s"
7200else
7201 ac_cv_prog_LN_S=ln
7202fi
7203fi
7204LN_S="$ac_cv_prog_LN_S"
7205if test "$ac_cv_prog_LN_S" = "ln -s"; then
7206 echo "$ac_t""yes" 1>&6
7207else
7208 echo "$ac_t""no" 1>&6
7209fi
7210
7211
7212
7213SEARCH_INCLUDE="\
7214 /usr/local/include \
7215 \
7216 /usr/Motif-1.2/include \
7217 /usr/Motif-2.1/include \
7218 \
7219 /usr/include/Motif1.2 \
7220 /opt/xpm/include/X11 \
7221 /opt/GBxpm/include/ \
7222 /opt/GBxpm/X11/include/ \
7223 \
7224 /usr/Motif1.2/include \
7225 /usr/dt/include \
afc31813
VZ
7226 /usr/openwin/include \
7227 \
10f2d63a
VZ
7228 /usr/include/Xm \
7229 \
7230 /usr/X11R6/include \
afc31813 7231 /usr/X11R6.4/include \
10f2d63a
VZ
7232 /usr/X11R5/include \
7233 /usr/X11R4/include \
7234 \
10f2d63a
VZ
7235 /usr/include/X11R6 \
7236 /usr/include/X11R5 \
7237 /usr/include/X11R4 \
7238 \
7239 /usr/local/X11R6/include \
7240 /usr/local/X11R5/include \
7241 /usr/local/X11R4/include \
7242 \
7243 /usr/local/include/X11R6 \
7244 /usr/local/include/X11R5 \
7245 /usr/local/include/X11R4 \
7246 \
7247 /usr/X11/include \
7248 /usr/include/X11 \
7249 /usr/local/X11/include \
7250 /usr/local/include/X11 \
7251 \
7252 /usr/X386/include \
7253 /usr/x386/include \
7254 /usr/XFree86/include/X11 \
7255 \
cf27ef00 7256 X:/XFree86/include \
ec14dd32
VZ
7257 X:/XFree86/include/X11 \
7258 \
10f2d63a
VZ
7259 /usr/include/gtk \
7260 /usr/local/include/gtk \
7261 /usr/include/glib \
7262 /usr/local/include/glib \
7263 \
7264 /usr/include/qt \
7265 /usr/local/include/qt \
7266 \
7267 /usr/include/windows \
7268 /usr/include/wine \
7269 /usr/local/include/wine \
7270 \
7271 /usr/unsupported/include \
7272 /usr/athena/include \
7273 /usr/local/x11r5/include \
7274 /usr/lpp/Xamples/include \
7275 \
10f2d63a 7276 /usr/openwin/share/include \
928b5c08
VZ
7277 \
7278 /usr/include"
10f2d63a
VZ
7279
7280SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s/include/lib/g` "
7281
7282
7283cat > confcache <<\EOF
7284# This file is a shell script that caches the results of configure
7285# tests run on this system so they can be shared between configure
7286# scripts and configure runs. It is not useful on other systems.
7287# If it contains results you don't want to keep, you may remove or edit it.
7288#
7289# By default, configure uses ./config.cache as the cache file,
7290# creating it if it does not exist already. You can give configure
7291# the --cache-file=FILE option to use a different cache file; that is
7292# what configure does when it calls configure scripts in
7293# subdirectories, so they share the cache.
7294# Giving --cache-file=/dev/null disables caching, for debugging configure.
7295# config.status only pays attention to the cache file if you give it the
7296# --recheck option to rerun configure.
7297#
7298EOF
7299# The following way of writing the cache mishandles newlines in values,
7300# but we know of no workaround that is simple, portable, and efficient.
7301# So, don't put newlines in cache variables' values.
7302# Ultrix sh set writes to stderr and can't be redirected directly,
7303# and sets the high bit in the cache file unless we assign to the vars.
7304(set) 2>&1 |
7305 case `(ac_space=' '; set | grep ac_space) 2>&1` in
7306 *ac_space=\ *)
7307 # `set' does not quote correctly, so add quotes (double-quote substitution
7308 # turns \\\\ into \\, and sed turns \\ into \).
7309 sed -n \
7310 -e "s/'/'\\\\''/g" \
7311 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
7312 ;;
7313 *)
7314 # `set' quotes correctly as required by POSIX, so do not add quotes.
7315 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
7316 ;;
7317 esac >> confcache
7318if cmp -s $cache_file confcache; then
7319 :
7320else
7321 if test -w $cache_file; then
7322 echo "updating cache $cache_file"
7323 cat confcache > $cache_file
7324 else
7325 echo "not updating unwritable cache $cache_file"
7326 fi
7327fi
7328rm -f confcache
7329
7330
7331
dad6c0ea
VZ
7332AFMINSTALL=
7333
10f2d63a
VZ
7334if test "$wxUSE_GUI" = "yes"; then
7335
dad6c0ea
VZ
7336USE_GUI=1
7337
10f2d63a
VZ
7338TOOLKIT=
7339TOOLKIT_INCLUDE=
7340
10f2d63a
VZ
7341GUI_TK_LIBRARY=
7342GUI_TK_LINK=
7343
7344WXGTK12=
f6bcfd97 7345WXGTK127=
6f72b082 7346WXGTK20=
10f2d63a
VZ
7347
7348WXWINE=
7349
10f2d63a
VZ
7350if test "$wxUSE_CYGWIN" = 1 || test "$wxUSE_MINGW" = 1 ; then
7351 if test "$cross_compiling" = "yes" ; then
e59890c3 7352 echo "configure: warning: skipping windows.h check for cross-compilation" 1>&2
10f2d63a
VZ
7353 else
7354 echo $ac_n "checking for Windows headers""... $ac_c" 1>&6
1216f52d 7355echo "configure:7356: checking for Windows headers" >&5
10f2d63a
VZ
7356
7357ac_find_includes=
7358for ac_dir in $SEARCH_INCLUDE;
7359 do
7360 if test -f "$ac_dir/windows.h"; then
7361 ac_find_includes=$ac_dir
7362 break
7363 fi
7364 done
7365
7366 if test "$ac_find_includes" != "" ; then
7367 echo "$ac_t""found $ac_find_includes" 1>&6
7368 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE -I$ac_find_includes"
7369 else
7370 echo "$ac_t""no" 1>&6
7371 { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; }
7372 fi
7373 fi
7374
7375 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS msw"
7376 LIBS="$LIBS -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lctl3d32 -lcrtdll -ladvapi32 -lwsock32"
7377
f6bcfd97
BP
7378 if test "$wxUSE_ODBC" = "yes" ; then
7379 LIBS="$LIBS -lodbc32 -lole32 -loleaut32"
7380 fi
7381
10f2d63a
VZ
7382 if test "$wxUSE_MINGW" = 1; then
7383 LDFLAGS="$LDFLAGS -mwindows"
7384 fi
7385
7386 TOOLKIT=MSW
10f2d63a 7387 GUIDIST=MSW_DIST
32832908
VZ
7388
7389 RCINCSWITCH="--include-dir"
7390 RCDEFSWITCH="--define"
7391 RCPREPROCESSOR="--preprocessor \"\$(CC) -c -E -xc-header -DRC_INVOKED\""
7392 RCINPUTSWITCH="-i"
7393 RCOUTPUTSWITCH="-o"
7394 RESFLAGS="$RCPREPROCESSOR $RCINCSWITCH \$(top_srcdir)/include $RCINCSWITCH \$(top_srcdir)/\$(program_dir) $RCDEFSWITCH __WIN32__ $RCDEFSWITCH __WIN95__ $RCDEFSWITCH __GNUWIN32__"
7395
7396 RESPROGRAM="\$(RES_PROGRAM)"
7397
10f2d63a
VZ
7398fi
7399
7400if test "$wxUSE_GTK" = 1; then
6f72b082
OK
7401 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
7402if test "${with_gtk_prefix+set}" = set; then
7403 withval="$with_gtk_prefix"
7404 gtk_config_prefix="$withval"
7405else
7406 gtk_config_prefix=""
7407fi
7408
7409# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
7410if test "${with_gtk_exec_prefix+set}" = set; then
7411 withval="$with_gtk_exec_prefix"
7412 gtk_config_exec_prefix="$withval"
7413else
7414 gtk_config_exec_prefix=""
7415fi
7416
7417# Check whether --enable-gtktest or --disable-gtktest was given.
7418if test "${enable_gtktest+set}" = set; then
7419 enableval="$enable_gtktest"
7420 :
7421else
7422 enable_gtktest=yes
7423fi
7424
7425
7426 for module in . gthread
7427 do
7428 case "$module" in
7429 gthread)
7430 gtk_config_args="$gtk_config_args gthread"
7431 ;;
7432 esac
7433 done
7434
7435 if test x$gtk_config_exec_prefix != x ; then
7436 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
7437 if test x${GTK_CONFIG_2_0+set} != xset ; then
7438 GTK_CONFIG_2_0=$gtk_config_exec_prefix/bin/gtk-config-2.0
7439 fi
7440 fi
7441 if test x$gtk_config_prefix != x ; then
7442 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
7443 if test x${GTK_CONFIG_2_0+set} != xset ; then
7444 GTK_CONFIG_2_0=$gtk_config_prefix/bin/gtk-config-2.0
7445 fi
7446 fi
7447
7448 # Extract the first word of "gtk-config-2.0", so it can be a program name with args.
7449set dummy gtk-config-2.0; ac_word=$2
7450echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1216f52d 7451echo "configure:7452: checking for $ac_word" >&5
6f72b082
OK
7452if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG_2_0'+set}'`\" = set"; then
7453 echo $ac_n "(cached) $ac_c" 1>&6
7454else
7455 case "$GTK_CONFIG_2_0" in
7456 /*)
7457 ac_cv_path_GTK_CONFIG_2_0="$GTK_CONFIG_2_0" # Let the user override the test with a path.
7458 ;;
7459 ?:/*)
7460 ac_cv_path_GTK_CONFIG_2_0="$GTK_CONFIG_2_0" # Let the user override the test with a dos path.
7461 ;;
7462 *)
7463 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7464 ac_dummy="$PATH"
7465 for ac_dir in $ac_dummy; do
7466 test -z "$ac_dir" && ac_dir=.
7467 if test -f $ac_dir/$ac_word; then
7468 ac_cv_path_GTK_CONFIG_2_0="$ac_dir/$ac_word"
7469 break
7470 fi
7471 done
7472 IFS="$ac_save_ifs"
7473 test -z "$ac_cv_path_GTK_CONFIG_2_0" && ac_cv_path_GTK_CONFIG_2_0="no"
7474 ;;
7475esac
7476fi
7477GTK_CONFIG_2_0="$ac_cv_path_GTK_CONFIG_2_0"
7478if test -n "$GTK_CONFIG_2_0"; then
7479 echo "$ac_t""$GTK_CONFIG_2_0" 1>&6
7480else
7481 echo "$ac_t""no" 1>&6
7482fi
7483
7484 min_gtk_version=1.3.1
7485 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
1216f52d 7486echo "configure:7487: checking for GTK - version >= $min_gtk_version" >&5
6f72b082
OK
7487 no_gtk=""
7488 if test "$GTK_CONFIG_2_0" = "no" ; then
7489 no_gtk=yes
7490 else
7491 GTK_CFLAGS=`$GTK_CONFIG_2_0 $gtk_config_args --cflags`
7492 GTK_LIBS=`$GTK_CONFIG_2_0 $gtk_config_args --libs`
7493 gtk_config_major_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \
7494 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
7495 gtk_config_minor_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \
7496 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
7497 gtk_config_micro_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \
7498 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
7499 if test "x$enable_gtktest" = "xyes" ; then
7500 ac_save_CFLAGS="$CFLAGS"
7501 ac_save_LIBS="$LIBS"
7502 CFLAGS="$CFLAGS $GTK_CFLAGS"
7503 LIBS="$GTK_LIBS $LIBS"
7504 rm -f conf.gtktest
7505 if test "$cross_compiling" = yes; then
7506 echo $ac_n "cross compiling; assumed OK... $ac_c"
7507else
7508 cat > conftest.$ac_ext <<EOF
1216f52d 7509#line 7510 "configure"
6f72b082
OK
7510#include "confdefs.h"
7511
7512#include <gtk/gtk.h>
7513#include <stdio.h>
7514#include <stdlib.h>
7515
7516int
7517main ()
7518{
7519 int major, minor, micro;
7520 char *tmp_version;
7521
7522 system ("touch conf.gtktest");
7523
7524 /* HP/UX 9 (%@#!) writes to sscanf strings */
7525 tmp_version = g_strdup("$min_gtk_version");
7526 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
7527 printf("%s, bad version string\n", "$min_gtk_version");
7528 exit(1);
7529 }
7530
7531 if ((gtk_major_version != $gtk_config_major_version) ||
7532 (gtk_minor_version != $gtk_config_minor_version) ||
7533 (gtk_micro_version != $gtk_config_micro_version))
7534 {
7535 printf("\n*** 'gtk-config-2.0 --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
7536 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
7537 gtk_major_version, gtk_minor_version, gtk_micro_version);
7538 printf ("*** was found! If gtk-config-2.0 was correct, then it is best\n");
7539 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
7540 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
7541 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
7542 printf("*** required on your system.\n");
7543 printf("*** If gtk-config-2.0 was wrong, set the environment variable GTK_CONFIG_2_0\n");
7544 printf("*** to point to the correct copy of gtk-config-2.0, and remove the file config.cache\n");
7545 printf("*** before re-running configure\n");
7546 }
7547#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
7548 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
7549 (gtk_minor_version != GTK_MINOR_VERSION) ||
7550 (gtk_micro_version != GTK_MICRO_VERSION))
7551 {
7552 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
7553 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
7554 printf("*** library (version %d.%d.%d)\n",
7555 gtk_major_version, gtk_minor_version, gtk_micro_version);
7556 }
7557#endif /* defined (GTK_MAJOR_VERSION) ... */
7558 else
7559 {
7560 if ((gtk_major_version > major) ||
7561 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
7562 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
7563 {
7564 return 0;
7565 }
7566 else
7567 {
7568 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
7569 gtk_major_version, gtk_minor_version, gtk_micro_version);
7570 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
7571 major, minor, micro);
7572 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
7573 printf("***\n");
7574 printf("*** If you have already installed a sufficiently new version, this error\n");
7575 printf("*** probably means that the wrong copy of the gtk-config-2.0 shell script is\n");
7576 printf("*** being found. The easiest way to fix this is to remove the old version\n");
7577 printf("*** of GTK+, but you can also set the GTK_CONFIG_2_0 environment to point to the\n");
7578 printf("*** correct copy of gtk-config-2.0. (In this case, you will have to\n");
7579 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
7580 printf("*** so that the correct libraries are found at run-time))\n");
7581 }
7582 }
7583 return 1;
7584}
7585
7586EOF
1216f52d 7587if { (eval echo configure:7588: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6f72b082
OK
7588then
7589 :
7590else
7591 echo "configure: failed program was:" >&5
7592 cat conftest.$ac_ext >&5
7593 rm -fr conftest*
7594 no_gtk=yes
7595fi
7596rm -fr conftest*
7597fi
7598
7599 CFLAGS="$ac_save_CFLAGS"
7600 LIBS="$ac_save_LIBS"
7601 fi
7602 fi
7603 if test "x$no_gtk" = x ; then
7604 echo "$ac_t""yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" 1>&6
7605 WXGTK20=1
7606 else
7607 echo "$ac_t""no" 1>&6
7608 if test "$GTK_CONFIG_2_0" = "no" ; then
7609 echo "*** The gtk-config-2.0 script installed by GTK could not be found"
7610 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
7611 echo "*** your path, or set the GTK_CONFIG_2_0 environment variable to the"
7612 echo "*** full path to gtk-config-2.0."
7613 else
7614 if test -f conf.gtktest ; then
7615 :
7616 else
7617 echo "*** Could not run GTK test program, checking why..."
7618 CFLAGS="$CFLAGS $GTK_CFLAGS"
7619 LIBS="$LIBS $GTK_LIBS"
7620 cat > conftest.$ac_ext <<EOF
1216f52d 7621#line 7622 "configure"
6f72b082
OK
7622#include "confdefs.h"
7623
7624#include <gtk/gtk.h>
7625#include <stdio.h>
7626
7627int main() {
7628 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
7629; return 0; }
7630EOF
1216f52d 7631if { (eval echo configure:7632: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6f72b082
OK
7632 rm -rf conftest*
7633 echo "*** The test program compiled, but did not run. This usually means"
7634 echo "*** that the run-time linker is not finding GTK or finding the wrong"
7635 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
7636 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
7637 echo "*** to the installed location Also, make sure you have run ldconfig if that"
7638 echo "*** is required on your system"
7639 echo "***"
7640 echo "*** If you have an old version installed, it is best to remove it, although"
7641 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
7642 echo "***"
7643 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
7644 echo "*** came with the system with the command"
7645 echo "***"
7646 echo "*** rpm --erase --nodeps gtk gtk-devel"
7647else
7648 echo "configure: failed program was:" >&5
7649 cat conftest.$ac_ext >&5
7650 rm -rf conftest*
7651 echo "*** The test program failed to compile or link. See the file config.log for the"
7652 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
7653 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
7654 echo "*** may want to edit the gtk-config-2.0 script: $GTK_CONFIG_2_0"
7655fi
7656rm -f conftest*
7657 CFLAGS="$ac_save_CFLAGS"
7658 LIBS="$ac_save_LIBS"
7659 fi
7660 fi
7661 GTK_CFLAGS=""
7662 GTK_LIBS=""
7663
7664
10f2d63a
VZ
7665 if test x$gtk_config_exec_prefix != x ; then
7666 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
7667 if test x${GTK_CONFIG+set} != xset ; then
7668 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
7669 fi
7670 fi
7671 if test x$gtk_config_prefix != x ; then
7672 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
7673 if test x${GTK_CONFIG+set} != xset ; then
7674 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
7675 fi
7676 fi
7677
7678 # Extract the first word of "gtk-config", so it can be a program name with args.
7679set dummy gtk-config; ac_word=$2
7680echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1216f52d 7681echo "configure:7682: checking for $ac_word" >&5
f6bcfd97
BP
7682if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
7683 echo $ac_n "(cached) $ac_c" 1>&6
7684else
7685 case "$GTK_CONFIG" in
7686 /*)
7687 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
7688 ;;
7689 ?:/*)
7690 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
7691 ;;
7692 *)
7693 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7694 ac_dummy="$PATH"
7695 for ac_dir in $ac_dummy; do
7696 test -z "$ac_dir" && ac_dir=.
7697 if test -f $ac_dir/$ac_word; then
7698 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
7699 break
7700 fi
7701 done
7702 IFS="$ac_save_ifs"
7703 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
7704 ;;
7705esac
7706fi
7707GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
7708if test -n "$GTK_CONFIG"; then
7709 echo "$ac_t""$GTK_CONFIG" 1>&6
7710else
7711 echo "$ac_t""no" 1>&6
7712fi
7713
7714 min_gtk_version=1.2.7
7715 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
1216f52d 7716echo "configure:7717: checking for GTK - version >= $min_gtk_version" >&5
f6bcfd97
BP
7717 no_gtk=""
7718 if test "$GTK_CONFIG" != "no" ; then
7719 GTK_CFLAGS=`$GTK_CONFIG --cflags`
7720 GTK_LIBS=`$GTK_CONFIG --libs gthread`
7721 ac_save_CFLAGS="$CFLAGS"
7722 ac_save_LIBS="$LIBS"
7723 CFLAGS="$CFLAGS $GTK_CFLAGS"
7724 LIBS="$LIBS $GTK_LIBS"
7725 if test "$cross_compiling" = yes; then
7726 echo $ac_n "cross compiling; assumed OK... $ac_c"
7727else
7728 cat > conftest.$ac_ext <<EOF
1216f52d 7729#line 7730 "configure"
f6bcfd97
BP
7730#include "confdefs.h"
7731
7732#include <gtk/gtk.h>
7733#include <gtk/gtkfeatures.h>
7734#include <stdio.h>
7735#include <stdlib.h>
7736
7737int
7738main ()
7739{
7740 int major, minor, micro;
7741
7742 if (sscanf("$min_gtk_version", "%d.%d.%d", &major, &minor, &micro) != 3) {
7743 printf("%s, bad version string\n", "$min_gtk_version");
7744 exit(1);
7745 }
7746
7747 if ((GTK_MAJOR_VERSION != gtk_major_version) ||
7748 (GTK_MINOR_VERSION != gtk_minor_version) ||
7749 (GTK_MICRO_VERSION != gtk_micro_version)) {
7750 printf("Headers vs. library version mismatch!\n");
7751 exit(1);
7752 }
7753
7754 if (gtk_minor_version == 1) return FALSE;
7755
7756 return !((gtk_major_version > major) ||
7757 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
7758 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)));
7759}
7760
7761EOF
1216f52d 7762if { (eval echo configure:7763: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
f6bcfd97
BP
7763then
7764 :
7765else
7766 echo "configure: failed program was:" >&5
7767 cat conftest.$ac_ext >&5
7768 rm -fr conftest*
7769 no_gtk=yes
7770fi
7771rm -fr conftest*
7772fi
7773
7774 CFLAGS="$ac_save_CFLAGS"
7775 LIBS="$ac_save_LIBS"
7776 else
7777 no_gtk=yes
7778 fi
7779 if test "x$no_gtk" = x ; then
7780 echo "$ac_t""yes" 1>&6
7781 WXGTK127=1
7782 else
7783 echo "$ac_t""no" 1>&6
7784 GTK_CFLAGS=""
7785 GTK_LIBS=""
7786 :
7787 fi
7788
7789
7790
6f72b082 7791
f6bcfd97
BP
7792 if test x$gtk_config_exec_prefix != x ; then
7793 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
7794 if test x${GTK_CONFIG+set} != xset ; then
7795 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
7796 fi
7797 fi
7798 if test x$gtk_config_prefix != x ; then
7799 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
7800 if test x${GTK_CONFIG+set} != xset ; then
7801 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
7802 fi
7803 fi
7804
7805 # Extract the first word of "gtk-config", so it can be a program name with args.
7806set dummy gtk-config; ac_word=$2
7807echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1216f52d 7808echo "configure:7809: checking for $ac_word" >&5
10f2d63a
VZ
7809if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
7810 echo $ac_n "(cached) $ac_c" 1>&6
7811else
7812 case "$GTK_CONFIG" in
7813 /*)
7814 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
7815 ;;
7816 ?:/*)
7817 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
7818 ;;
7819 *)
7820 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7821 ac_dummy="$PATH"
7822 for ac_dir in $ac_dummy; do
7823 test -z "$ac_dir" && ac_dir=.
7824 if test -f $ac_dir/$ac_word; then
7825 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
7826 break
7827 fi
7828 done
7829 IFS="$ac_save_ifs"
7830 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
7831 ;;
7832esac
7833fi
7834GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
7835if test -n "$GTK_CONFIG"; then
7836 echo "$ac_t""$GTK_CONFIG" 1>&6
7837else
7838 echo "$ac_t""no" 1>&6
7839fi
7840
04165bec 7841 min_gtk_version=1.2.3
10f2d63a 7842 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
1216f52d 7843echo "configure:7844: checking for GTK - version >= $min_gtk_version" >&5
10f2d63a
VZ
7844 no_gtk=""
7845 if test "$GTK_CONFIG" != "no" ; then
7846 GTK_CFLAGS=`$GTK_CONFIG --cflags`
2224580a 7847 GTK_LIBS=`$GTK_CONFIG --libs gthread`
10f2d63a
VZ
7848 ac_save_CFLAGS="$CFLAGS"
7849 ac_save_LIBS="$LIBS"
7850 CFLAGS="$CFLAGS $GTK_CFLAGS"
7851 LIBS="$LIBS $GTK_LIBS"
7852 if test "$cross_compiling" = yes; then
7853 echo $ac_n "cross compiling; assumed OK... $ac_c"
7854else
7855 cat > conftest.$ac_ext <<EOF
1216f52d 7856#line 7857 "configure"
10f2d63a
VZ
7857#include "confdefs.h"
7858
7859#include <gtk/gtk.h>
f49f2b0c 7860#include <gtk/gtkfeatures.h>
10f2d63a 7861#include <stdio.h>
32832908 7862#include <stdlib.h>
10f2d63a
VZ
7863
7864int
7865main ()
7866{
7867 int major, minor, micro;
7868
7869 if (sscanf("$min_gtk_version", "%d.%d.%d", &major, &minor, &micro) != 3) {
7870 printf("%s, bad version string\n", "$min_gtk_version");
7871 exit(1);
7872 }
7873
f49f2b0c
RR
7874 if ((GTK_MAJOR_VERSION != gtk_major_version) ||
7875 (GTK_MINOR_VERSION != gtk_minor_version) ||
7876 (GTK_MICRO_VERSION != gtk_micro_version)) {
7877 printf("Headers vs. library version mismatch!\n");
7878 exit(1);
7879 }
7880
10f2d63a
VZ
7881 if (gtk_minor_version == 1) return FALSE;
7882
7883 return !((gtk_major_version > major) ||
7884 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
7885 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)));
7886}
7887
7888EOF
1216f52d 7889if { (eval echo configure:7890: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10f2d63a
VZ
7890then
7891 :
7892else
7893 echo "configure: failed program was:" >&5
7894 cat conftest.$ac_ext >&5
7895 rm -fr conftest*
7896 no_gtk=yes
7897fi
7898rm -fr conftest*
7899fi
7900
7901 CFLAGS="$ac_save_CFLAGS"
7902 LIBS="$ac_save_LIBS"
7903 else
7904 no_gtk=yes
7905 fi
7906 if test "x$no_gtk" = x ; then
7907 echo "$ac_t""yes" 1>&6
7908 WXGTK12=1
7909 else
7910 echo "$ac_t""no" 1>&6
7911 GTK_CFLAGS=""
7912 GTK_LIBS=""
7e99ad86 7913 :
10f2d63a
VZ
7914 fi
7915
7916
7917
6f72b082
OK
7918
7919 fi
7920
7921
7922 rm -f conf.gtktest
7923
10f2d63a 7924
6f72b082 7925 if test "$WXGTK12" != 1 -a "$WXGTK20" != 1; then
7e99ad86
VZ
7926 { echo "configure: error:
7927 Please check that gtk-config is in path, the directory
7928 where GTK+ libraries are installed (returned by
7929 'gtk-config --libs' command) is in LD_LIBRARY_PATH or
7930 equivalent variable and GTK+ is version 1.2.3 or above.
7931 " 1>&2; exit 1; }
7932 fi
7933
10f2d63a 7934 TOOLKIT_INCLUDE="$GTK_CFLAGS"
2224580a
VZ
7935
7936
7937 GUI_TK_LIBRARY="$GTK_LIBS"
7938
10f2d63a 7939
dad6c0ea 7940 AFMINSTALL=afminstall
9ad43c8b 7941 TOOLKIT=GTK
10f2d63a 7942 GUIDIST=GTK_DIST
7ec2881a 7943
2224580a 7944 echo $ac_n "checking for gdk_im_open in -lgdk""... $ac_c" 1>&6
1216f52d 7945echo "configure:7946: checking for gdk_im_open in -lgdk" >&5
7ec2881a
RR
7946ac_lib_var=`echo gdk'_'gdk_im_open | sed 'y%./+-%__p_%'`
7947if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7948 echo $ac_n "(cached) $ac_c" 1>&6
7949else
7950 ac_save_LIBS="$LIBS"
7951LIBS="-lgdk $LIBS"
7952cat > conftest.$ac_ext <<EOF
1216f52d 7953#line 7954 "configure"
7ec2881a
RR
7954#include "confdefs.h"
7955/* Override any gcc2 internal prototype to avoid an error. */
7956/* We use char because int might match the return type of a gcc2
7957 builtin and then its argument prototype would still apply. */
7958char gdk_im_open();
7959
7960int main() {
7961gdk_im_open()
7962; return 0; }
7963EOF
1216f52d 7964if { (eval echo configure:7965: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7ec2881a
RR
7965 rm -rf conftest*
7966 eval "ac_cv_lib_$ac_lib_var=yes"
7967else
7968 echo "configure: failed program was:" >&5
7969 cat conftest.$ac_ext >&5
7970 rm -rf conftest*
7971 eval "ac_cv_lib_$ac_lib_var=no"
7972fi
7973rm -f conftest*
7974LIBS="$ac_save_LIBS"
7975
7976fi
7977if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7978 echo "$ac_t""yes" 1>&6
7979 cat >> confdefs.h <<\EOF
7980#define HAVE_XIM 1
7981EOF
7982
7983else
7984 echo "$ac_t""no" 1>&6
7985fi
7986
10f2d63a
VZ
7987fi
7988
7989if test "$wxUSE_WINE" = 1; then
7990 echo $ac_n "checking for WINE includes""... $ac_c" 1>&6
1216f52d 7991echo "configure:7992: checking for WINE includes" >&5
10f2d63a
VZ
7992
7993ac_find_includes=
7994for ac_dir in $SEARCH_INCLUDE;
7995 do
7996 if test -f "$ac_dir/windows.h"; then
7997 ac_find_includes=$ac_dir
7998 break
7999 fi
8000 done
8001
8002 if test "$ac_find_includes" != "" ; then
8003 echo "$ac_t""found $ac_find_includes" 1>&6
8004 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE -I$ac_find_includes"
8005 else
8006 echo "$ac_t""no" 1>&6
8007 { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; }
8008 fi
8009
8010 XPM_LINK=""
8011 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
1216f52d 8012echo "configure:8013: checking for Xpm library" >&5
10f2d63a
VZ
8013
8014ac_find_libraries=
8015for ac_dir in $SEARCH_LIB;
8016 do
8017 for ac_extension in a so sl; do
8018 if test -f "$ac_dir/libXpm.$ac_extension"; then
8019 ac_find_libraries=$ac_dir
8020 break 2
8021 fi
8022 done
8023 done
8024
8025 if test "$ac_find_libraries" != "" ; then
8026 GUI_TK_LIBRARY="-L$ac_find_libraries"
8027 XPM_LINK="-lXpm"
8028 cat >> confdefs.h <<\EOF
8029#define wxHAVE_LIB_XPM 1
8030EOF
8031
8032 echo "$ac_t""found at $ac_find_libraries" 1>&6
8033 else
8034 echo "$ac_t""no" 1>&6
8035 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
8036 fi
8037
8038 MESA_LINK=""
8039 echo $ac_n "checking for Mesa library""... $ac_c" 1>&6
1216f52d 8040echo "configure:8041: checking for Mesa library" >&5
10f2d63a
VZ
8041
8042ac_find_libraries=
8043for ac_dir in $SEARCH_LIB;
8044 do
8045 for ac_extension in a so sl; do
8046 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
8047 ac_find_libraries=$ac_dir
8048 break 2
8049 fi
8050 done
8051 done
8052
8053 if test "$ac_find_libraries" != "" ; then
8054 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -L$ac_find_libraries"
8055 MESA_LINK="-lMesaGL"
8056 echo "$ac_t""found at $ac_find_libraries" 1>&6
8057 else
8058 { echo "configure: error: no" 1>&2; exit 1; }
8059 fi
8060
8916026b 8061 GUI_TK_LINK="-lwine $MESA_LINK $XPM_LINK -lXxf86dga -lXxf86vm -lSM -lICE -lXext -lXmu -lX11 -lncurses"
10f2d63a
VZ
8062 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $GUI_TK_LINK"
8063 WXWINE=1
8064 TOOLKIT=MSW
10f2d63a
VZ
8065 GUIDIST=MSW_DIST
8066fi
8067
37d403aa
JS
8068
8069# If we find X, set shell vars x_includes and x_libraries to the
ab9b9eab
VZ
8070# paths, otherwise set no_x=yes.
8071# Uses ac_ vars as temps to allow command line to override cache and checks.
8072# --without-x overrides everything else, but does not touch the cache.
8073echo $ac_n "checking for X""... $ac_c" 1>&6
1216f52d 8074echo "configure:8075: checking for X" >&5
ab9b9eab
VZ
8075
8076# Check whether --with-x or --without-x was given.
8077if test "${with_x+set}" = set; then
8078 withval="$with_x"
8079 :
8080fi
ba337fe7 8081
ab9b9eab
VZ
8082# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
8083if test "x$with_x" = xno; then
8084 # The user explicitly disabled X.
8085 have_x=disabled
8086else
8087 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
8088 # Both variables are already set.
8089 have_x=yes
8090 else
8091if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
8092 echo $ac_n "(cached) $ac_c" 1>&6
8093else
8094 # One or both of the vars are not set, and there is no cached value.
8095ac_x_includes=NO ac_x_libraries=NO
8096rm -fr conftestdir
8097if mkdir conftestdir; then
8098 cd conftestdir
8099 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
8100 cat > Imakefile <<'EOF'
8101acfindx:
8102 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
8103EOF
8104 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
8105 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8106 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
8107 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
10f2d63a 8108 for ac_extension in a so sl; do
ab9b9eab
VZ
8109 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
8110 test -f $ac_im_libdir/libX11.$ac_extension; then
8111 ac_im_usrlibdir=$ac_im_libdir; break
10f2d63a
VZ
8112 fi
8113 done
ab9b9eab
VZ
8114 # Screen out bogus values from the imake configuration. They are
8115 # bogus both because they are the default anyway, and because
8116 # using them would break gcc on systems where it needs fixed includes.
8117 case "$ac_im_incroot" in
8118 /usr/include) ;;
8119 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
8120 esac
8121 case "$ac_im_usrlibdir" in
8122 /usr/lib | /lib) ;;
8123 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
8124 esac
ba337fe7 8125 fi
ab9b9eab
VZ
8126 cd ..
8127 rm -fr conftestdir
8128fi
10f2d63a 8129
ab9b9eab
VZ
8130if test "$ac_x_includes" = NO; then
8131 # Guess where to find include files, by looking for this one X11 .h file.
8132 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
ba337fe7 8133
ab9b9eab
VZ
8134 # First, try using that file with no special directory specified.
8135cat > conftest.$ac_ext <<EOF
1216f52d 8136#line 8137 "configure"
ab9b9eab
VZ
8137#include "confdefs.h"
8138#include <$x_direct_test_include>
8139EOF
8140ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1216f52d 8141{ (eval echo configure:8142: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ab9b9eab
VZ
8142ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8143if test -z "$ac_err"; then
8144 rm -rf conftest*
8145 # We can compile using X headers with no special include directory.
8146ac_x_includes=
8147else
8148 echo "$ac_err" >&5
8149 echo "configure: failed program was:" >&5
8150 cat conftest.$ac_ext >&5
8151 rm -rf conftest*
8152 # Look for the header file in a standard set of common directories.
8153# Check X11 before X11Rn because it is often a symlink to the current release.
8154 for ac_dir in \
8155 /usr/X11/include \
8156 /usr/X11R6/include \
8157 /usr/X11R5/include \
8158 /usr/X11R4/include \
8159 \
8160 /usr/include/X11 \
8161 /usr/include/X11R6 \
8162 /usr/include/X11R5 \
8163 /usr/include/X11R4 \
8164 \
8165 /usr/local/X11/include \
8166 /usr/local/X11R6/include \
8167 /usr/local/X11R5/include \
8168 /usr/local/X11R4/include \
8169 \
8170 /usr/local/include/X11 \
8171 /usr/local/include/X11R6 \
8172 /usr/local/include/X11R5 \
8173 /usr/local/include/X11R4 \
8174 \
8175 /usr/X386/include \
8176 /usr/x386/include \
8177 /usr/XFree86/include/X11 \
8178 \
8179 /usr/include \
8180 /usr/local/include \
8181 /usr/unsupported/include \
8182 /usr/athena/include \
8183 /usr/local/x11r5/include \
8184 /usr/lpp/Xamples/include \
8185 \
8186 /usr/openwin/include \
8187 /usr/openwin/share/include \
8188 ; \
10f2d63a 8189 do
ab9b9eab
VZ
8190 if test -r "$ac_dir/$x_direct_test_include"; then
8191 ac_x_includes=$ac_dir
10f2d63a
VZ
8192 break
8193 fi
8194 done
ab9b9eab
VZ
8195fi
8196rm -f conftest*
8197fi # $ac_x_includes = NO
10f2d63a 8198
ab9b9eab
VZ
8199if test "$ac_x_libraries" = NO; then
8200 # Check for the libraries.
10f2d63a 8201
ab9b9eab
VZ
8202 test -z "$x_direct_test_library" && x_direct_test_library=Xt
8203 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
10f2d63a 8204
ab9b9eab
VZ
8205 # See if we find them without any special options.
8206 # Don't add to $LIBS permanently.
8207 ac_save_LIBS="$LIBS"
8208 LIBS="-l$x_direct_test_library $LIBS"
8209cat > conftest.$ac_ext <<EOF
1216f52d 8210#line 8211 "configure"
ab9b9eab 8211#include "confdefs.h"
10f2d63a 8212
ab9b9eab
VZ
8213int main() {
8214${x_direct_test_function}()
8215; return 0; }
8216EOF
1216f52d 8217if { (eval echo configure:8218: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
8218 rm -rf conftest*
8219 LIBS="$ac_save_LIBS"
8220# We can link X programs with no special library path.
8221ac_x_libraries=
8222else
8223 echo "configure: failed program was:" >&5
8224 cat conftest.$ac_ext >&5
8225 rm -rf conftest*
8226 LIBS="$ac_save_LIBS"
8227# First see if replacing the include by lib works.
8228# Check X11 before X11Rn because it is often a symlink to the current release.
8229for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
8230 /usr/X11/lib \
8231 /usr/X11R6/lib \
8232 /usr/X11R5/lib \
8233 /usr/X11R4/lib \
8234 \
8235 /usr/lib/X11 \
8236 /usr/lib/X11R6 \
8237 /usr/lib/X11R5 \
8238 /usr/lib/X11R4 \
8239 \
8240 /usr/local/X11/lib \
8241 /usr/local/X11R6/lib \
8242 /usr/local/X11R5/lib \
8243 /usr/local/X11R4/lib \
8244 \
8245 /usr/local/lib/X11 \
8246 /usr/local/lib/X11R6 \
8247 /usr/local/lib/X11R5 \
8248 /usr/local/lib/X11R4 \
8249 \
8250 /usr/X386/lib \
8251 /usr/x386/lib \
8252 /usr/XFree86/lib/X11 \
8253 \
8254 /usr/lib \
8255 /usr/local/lib \
8256 /usr/unsupported/lib \
8257 /usr/athena/lib \
8258 /usr/local/x11r5/lib \
8259 /usr/lpp/Xamples/lib \
8260 /lib/usr/lib/X11 \
8261 \
8262 /usr/openwin/lib \
8263 /usr/openwin/share/lib \
8264 ; \
8265do
8266 for ac_extension in a so sl; do
8267 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
8268 ac_x_libraries=$ac_dir
8269 break 2
10f2d63a 8270 fi
10f2d63a 8271 done
ab9b9eab
VZ
8272done
8273fi
8274rm -f conftest*
8275fi # $ac_x_libraries = NO
10f2d63a 8276
ab9b9eab
VZ
8277if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
8278 # Didn't find X anywhere. Cache the known absence of X.
8279 ac_cv_have_x="have_x=no"
8280else
8281 # Record where we found X for the cache.
8282 ac_cv_have_x="have_x=yes \
8283 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
8284fi
8285fi
10f2d63a 8286 fi
ab9b9eab
VZ
8287 eval "$ac_cv_have_x"
8288fi # $with_x != no
10f2d63a 8289
ab9b9eab
VZ
8290if test "$have_x" != yes; then
8291 echo "$ac_t""$have_x" 1>&6
8292 no_x=yes
8293else
8294 # If each of the values was on the command line, it overrides each guess.
8295 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
8296 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
8297 # Update the cache value to reflect the command line values.
8298 ac_cv_have_x="have_x=yes \
8299 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
8300 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
8301fi
10f2d63a 8302
ab9b9eab
VZ
8303if test "$no_x" = yes; then
8304 # Not all programs may use this symbol, but it does not hurt to define it.
8305 cat >> confdefs.h <<\EOF
8306#define X_DISPLAY_MISSING 1
8307EOF
10f2d63a 8308
ab9b9eab
VZ
8309 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
8310else
8311 if test -n "$x_includes"; then
8312 X_CFLAGS="$X_CFLAGS -I$x_includes"
10f2d63a
VZ
8313 fi
8314
ab9b9eab
VZ
8315 # It would also be nice to do this for all -L options, not just this one.
8316 if test -n "$x_libraries"; then
8317 X_LIBS="$X_LIBS -L$x_libraries"
8318 # For Solaris; some versions of Sun CC require a space after -R and
8319 # others require no space. Words are not sufficient . . . .
8320 case "`(uname -sr) 2>/dev/null`" in
8321 "SunOS 5"*)
8322 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
1216f52d 8323echo "configure:8324: checking whether -R must be followed by a space" >&5
ab9b9eab
VZ
8324 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
8325 cat > conftest.$ac_ext <<EOF
1216f52d 8326#line 8327 "configure"
ab9b9eab 8327#include "confdefs.h"
10f2d63a 8328
ab9b9eab 8329int main() {
788deba1 8330
ab9b9eab
VZ
8331; return 0; }
8332EOF
1216f52d 8333if { (eval echo configure:8334: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
8334 rm -rf conftest*
8335 ac_R_nospace=yes
8336else
8337 echo "configure: failed program was:" >&5
8338 cat conftest.$ac_ext >&5
8339 rm -rf conftest*
8340 ac_R_nospace=no
8341fi
8342rm -f conftest*
8343 if test $ac_R_nospace = yes; then
8344 echo "$ac_t""no" 1>&6
8345 X_LIBS="$X_LIBS -R$x_libraries"
8346 else
8347 LIBS="$ac_xsave_LIBS -R $x_libraries"
8348 cat > conftest.$ac_ext <<EOF
1216f52d 8349#line 8350 "configure"
ab9b9eab 8350#include "confdefs.h"
788deba1 8351
ab9b9eab
VZ
8352int main() {
8353
8354; return 0; }
8355EOF
1216f52d 8356if { (eval echo configure:8357: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
8357 rm -rf conftest*
8358 ac_R_space=yes
8359else
8360 echo "configure: failed program was:" >&5
8361 cat conftest.$ac_ext >&5
8362 rm -rf conftest*
8363 ac_R_space=no
8364fi
8365rm -f conftest*
8366 if test $ac_R_space = yes; then
8367 echo "$ac_t""yes" 1>&6
8368 X_LIBS="$X_LIBS -R $x_libraries"
8369 else
8370 echo "$ac_t""neither works" 1>&6
8371 fi
8372 fi
8373 LIBS="$ac_xsave_LIBS"
8374 esac
8375 fi
8376
8377 # Check for system-dependent libraries X programs must link with.
8378 # Do this before checking for the system-independent R6 libraries
8379 # (-lICE), since we may need -lsocket or whatever for X linking.
8380
8381 if test "$ISC" = yes; then
8382 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
8383 else
8384 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
8385 # libraries were built with DECnet support. And karl@cs.umb.edu says
8386 # the Alpha needs dnet_stub (dnet does not exist).
8387 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
1216f52d 8388echo "configure:8389: checking for dnet_ntoa in -ldnet" >&5
ab9b9eab
VZ
8389ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
8390if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8391 echo $ac_n "(cached) $ac_c" 1>&6
8392else
8393 ac_save_LIBS="$LIBS"
8394LIBS="-ldnet $LIBS"
8395cat > conftest.$ac_ext <<EOF
1216f52d 8396#line 8397 "configure"
ab9b9eab
VZ
8397#include "confdefs.h"
8398/* Override any gcc2 internal prototype to avoid an error. */
8399/* We use char because int might match the return type of a gcc2
8400 builtin and then its argument prototype would still apply. */
8401char dnet_ntoa();
8402
8403int main() {
8404dnet_ntoa()
8405; return 0; }
8406EOF
1216f52d 8407if { (eval echo configure:8408: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
8408 rm -rf conftest*
8409 eval "ac_cv_lib_$ac_lib_var=yes"
8410else
8411 echo "configure: failed program was:" >&5
8412 cat conftest.$ac_ext >&5
8413 rm -rf conftest*
8414 eval "ac_cv_lib_$ac_lib_var=no"
8415fi
8416rm -f conftest*
8417LIBS="$ac_save_LIBS"
8418
8419fi
8420if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8421 echo "$ac_t""yes" 1>&6
8422 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
8423else
8424 echo "$ac_t""no" 1>&6
8425fi
8426
8427 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
8428 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
1216f52d 8429echo "configure:8430: checking for dnet_ntoa in -ldnet_stub" >&5
ab9b9eab
VZ
8430ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
8431if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8432 echo $ac_n "(cached) $ac_c" 1>&6
8433else
8434 ac_save_LIBS="$LIBS"
8435LIBS="-ldnet_stub $LIBS"
8436cat > conftest.$ac_ext <<EOF
1216f52d 8437#line 8438 "configure"
ab9b9eab
VZ
8438#include "confdefs.h"
8439/* Override any gcc2 internal prototype to avoid an error. */
8440/* We use char because int might match the return type of a gcc2
8441 builtin and then its argument prototype would still apply. */
8442char dnet_ntoa();
8443
8444int main() {
8445dnet_ntoa()
8446; return 0; }
8447EOF
1216f52d 8448if { (eval echo configure:8449: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
8449 rm -rf conftest*
8450 eval "ac_cv_lib_$ac_lib_var=yes"
8451else
8452 echo "configure: failed program was:" >&5
8453 cat conftest.$ac_ext >&5
8454 rm -rf conftest*
8455 eval "ac_cv_lib_$ac_lib_var=no"
8456fi
8457rm -f conftest*
8458LIBS="$ac_save_LIBS"
8459
8460fi
8461if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8462 echo "$ac_t""yes" 1>&6
8463 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
8464else
8465 echo "$ac_t""no" 1>&6
8466fi
8467
8468 fi
8469
8470 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
8471 # to get the SysV transport functions.
8472 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
8473 # needs -lnsl.
8474 # The nsl library prevents programs from opening the X display
8475 # on Irix 5.2, according to dickey@clark.net.
8476 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
1216f52d 8477echo "configure:8478: checking for gethostbyname" >&5
ab9b9eab
VZ
8478if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
8479 echo $ac_n "(cached) $ac_c" 1>&6
8480else
8481 cat > conftest.$ac_ext <<EOF
1216f52d 8482#line 8483 "configure"
ab9b9eab
VZ
8483#include "confdefs.h"
8484/* System header to define __stub macros and hopefully few prototypes,
8485 which can conflict with char gethostbyname(); below. */
8486#include <assert.h>
8487/* Override any gcc2 internal prototype to avoid an error. */
8488/* We use char because int might match the return type of a gcc2
8489 builtin and then its argument prototype would still apply. */
8490char gethostbyname();
8491
8492int main() {
8493
8494/* The GNU C library defines this for functions which it implements
8495 to always fail with ENOSYS. Some functions are actually named
8496 something starting with __ and the normal name is an alias. */
8497#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
8498choke me
8499#else
e8482f24 8500gethostbyname();
ab9b9eab
VZ
8501#endif
8502
8503; return 0; }
8504EOF
1216f52d 8505if { (eval echo configure:8506: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
8506 rm -rf conftest*
8507 eval "ac_cv_func_gethostbyname=yes"
8508else
8509 echo "configure: failed program was:" >&5
8510 cat conftest.$ac_ext >&5
8511 rm -rf conftest*
8512 eval "ac_cv_func_gethostbyname=no"
8513fi
8514rm -f conftest*
8515fi
8516
8517if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
8518 echo "$ac_t""yes" 1>&6
8519 :
8520else
8521 echo "$ac_t""no" 1>&6
8522fi
8523
8524 if test $ac_cv_func_gethostbyname = no; then
8525 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
1216f52d 8526echo "configure:8527: checking for gethostbyname in -lnsl" >&5
ab9b9eab
VZ
8527ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
8528if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8529 echo $ac_n "(cached) $ac_c" 1>&6
8530else
8531 ac_save_LIBS="$LIBS"
8532LIBS="-lnsl $LIBS"
8533cat > conftest.$ac_ext <<EOF
1216f52d 8534#line 8535 "configure"
ab9b9eab
VZ
8535#include "confdefs.h"
8536/* Override any gcc2 internal prototype to avoid an error. */
8537/* We use char because int might match the return type of a gcc2
8538 builtin and then its argument prototype would still apply. */
8539char gethostbyname();
8540
8541int main() {
8542gethostbyname()
8543; return 0; }
8544EOF
1216f52d 8545if { (eval echo configure:8546: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
8546 rm -rf conftest*
8547 eval "ac_cv_lib_$ac_lib_var=yes"
8548else
8549 echo "configure: failed program was:" >&5
8550 cat conftest.$ac_ext >&5
8551 rm -rf conftest*
8552 eval "ac_cv_lib_$ac_lib_var=no"
8553fi
8554rm -f conftest*
8555LIBS="$ac_save_LIBS"
8556
8557fi
8558if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8559 echo "$ac_t""yes" 1>&6
8560 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
8561else
8562 echo "$ac_t""no" 1>&6
8563fi
8564
8565 fi
8566
8567 # lieder@skyler.mavd.honeywell.com says without -lsocket,
8568 # socket/setsockopt and other routines are undefined under SCO ODT
8569 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
8570 # on later versions), says simon@lia.di.epfl.ch: it contains
8571 # gethostby* variants that don't use the nameserver (or something).
8572 # -lsocket must be given before -lnsl if both are needed.
8573 # We assume that if connect needs -lnsl, so does gethostbyname.
8574 echo $ac_n "checking for connect""... $ac_c" 1>&6
1216f52d 8575echo "configure:8576: checking for connect" >&5
ab9b9eab
VZ
8576if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
8577 echo $ac_n "(cached) $ac_c" 1>&6
8578else
8579 cat > conftest.$ac_ext <<EOF
1216f52d 8580#line 8581 "configure"
ab9b9eab
VZ
8581#include "confdefs.h"
8582/* System header to define __stub macros and hopefully few prototypes,
8583 which can conflict with char connect(); below. */
8584#include <assert.h>
8585/* Override any gcc2 internal prototype to avoid an error. */
8586/* We use char because int might match the return type of a gcc2
8587 builtin and then its argument prototype would still apply. */
8588char connect();
8589
8590int main() {
8591
8592/* The GNU C library defines this for functions which it implements
8593 to always fail with ENOSYS. Some functions are actually named
8594 something starting with __ and the normal name is an alias. */
8595#if defined (__stub_connect) || defined (__stub___connect)
8596choke me
8597#else
e8482f24 8598connect();
ab9b9eab
VZ
8599#endif
8600
8601; return 0; }
8602EOF
1216f52d 8603if { (eval echo configure:8604: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
8604 rm -rf conftest*
8605 eval "ac_cv_func_connect=yes"
8606else
8607 echo "configure: failed program was:" >&5
8608 cat conftest.$ac_ext >&5
8609 rm -rf conftest*
8610 eval "ac_cv_func_connect=no"
8611fi
8612rm -f conftest*
8613fi
8614
8615if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
8616 echo "$ac_t""yes" 1>&6
8617 :
8618else
8619 echo "$ac_t""no" 1>&6
8620fi
8621
8622 if test $ac_cv_func_connect = no; then
8623 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
1216f52d 8624echo "configure:8625: checking for connect in -lsocket" >&5
ab9b9eab
VZ
8625ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
8626if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8627 echo $ac_n "(cached) $ac_c" 1>&6
8628else
8629 ac_save_LIBS="$LIBS"
8630LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
8631cat > conftest.$ac_ext <<EOF
1216f52d 8632#line 8633 "configure"
ab9b9eab
VZ
8633#include "confdefs.h"
8634/* Override any gcc2 internal prototype to avoid an error. */
8635/* We use char because int might match the return type of a gcc2
8636 builtin and then its argument prototype would still apply. */
8637char connect();
8638
8639int main() {
8640connect()
8641; return 0; }
8642EOF
1216f52d 8643if { (eval echo configure:8644: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
8644 rm -rf conftest*
8645 eval "ac_cv_lib_$ac_lib_var=yes"
8646else
8647 echo "configure: failed program was:" >&5
8648 cat conftest.$ac_ext >&5
8649 rm -rf conftest*
8650 eval "ac_cv_lib_$ac_lib_var=no"
8651fi
8652rm -f conftest*
8653LIBS="$ac_save_LIBS"
8654
8655fi
8656if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8657 echo "$ac_t""yes" 1>&6
8658 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
8659else
8660 echo "$ac_t""no" 1>&6
8661fi
8662
8663 fi
8664
8665 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
8666 echo $ac_n "checking for remove""... $ac_c" 1>&6
1216f52d 8667echo "configure:8668: checking for remove" >&5
ab9b9eab
VZ
8668if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
8669 echo $ac_n "(cached) $ac_c" 1>&6
8670else
8671 cat > conftest.$ac_ext <<EOF
1216f52d 8672#line 8673 "configure"
ab9b9eab
VZ
8673#include "confdefs.h"
8674/* System header to define __stub macros and hopefully few prototypes,
8675 which can conflict with char remove(); below. */
8676#include <assert.h>
8677/* Override any gcc2 internal prototype to avoid an error. */
8678/* We use char because int might match the return type of a gcc2
8679 builtin and then its argument prototype would still apply. */
8680char remove();
8681
8682int main() {
8683
8684/* The GNU C library defines this for functions which it implements
8685 to always fail with ENOSYS. Some functions are actually named
8686 something starting with __ and the normal name is an alias. */
8687#if defined (__stub_remove) || defined (__stub___remove)
8688choke me
8689#else
e8482f24 8690remove();
ab9b9eab
VZ
8691#endif
8692
8693; return 0; }
8694EOF
1216f52d 8695if { (eval echo configure:8696: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
8696 rm -rf conftest*
8697 eval "ac_cv_func_remove=yes"
8698else
8699 echo "configure: failed program was:" >&5
8700 cat conftest.$ac_ext >&5
8701 rm -rf conftest*
8702 eval "ac_cv_func_remove=no"
8703fi
8704rm -f conftest*
8705fi
8706
8707if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
8708 echo "$ac_t""yes" 1>&6
8709 :
8710else
8711 echo "$ac_t""no" 1>&6
8712fi
8713
8714 if test $ac_cv_func_remove = no; then
8715 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
1216f52d 8716echo "configure:8717: checking for remove in -lposix" >&5
ab9b9eab
VZ
8717ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
8718if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8719 echo $ac_n "(cached) $ac_c" 1>&6
8720else
8721 ac_save_LIBS="$LIBS"
8722LIBS="-lposix $LIBS"
8723cat > conftest.$ac_ext <<EOF
1216f52d 8724#line 8725 "configure"
ab9b9eab
VZ
8725#include "confdefs.h"
8726/* Override any gcc2 internal prototype to avoid an error. */
8727/* We use char because int might match the return type of a gcc2
8728 builtin and then its argument prototype would still apply. */
8729char remove();
8730
8731int main() {
8732remove()
8733; return 0; }
8734EOF
1216f52d 8735if { (eval echo configure:8736: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
8736 rm -rf conftest*
8737 eval "ac_cv_lib_$ac_lib_var=yes"
8738else
8739 echo "configure: failed program was:" >&5
8740 cat conftest.$ac_ext >&5
8741 rm -rf conftest*
8742 eval "ac_cv_lib_$ac_lib_var=no"
8743fi
8744rm -f conftest*
8745LIBS="$ac_save_LIBS"
8746
8747fi
8748if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8749 echo "$ac_t""yes" 1>&6
8750 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
8751else
8752 echo "$ac_t""no" 1>&6
8753fi
8754
8755 fi
8756
8757 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
8758 echo $ac_n "checking for shmat""... $ac_c" 1>&6
1216f52d 8759echo "configure:8760: checking for shmat" >&5
ab9b9eab
VZ
8760if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
8761 echo $ac_n "(cached) $ac_c" 1>&6
8762else
8763 cat > conftest.$ac_ext <<EOF
1216f52d 8764#line 8765 "configure"
ab9b9eab
VZ
8765#include "confdefs.h"
8766/* System header to define __stub macros and hopefully few prototypes,
8767 which can conflict with char shmat(); below. */
8768#include <assert.h>
8769/* Override any gcc2 internal prototype to avoid an error. */
8770/* We use char because int might match the return type of a gcc2
8771 builtin and then its argument prototype would still apply. */
8772char shmat();
8773
8774int main() {
8775
8776/* The GNU C library defines this for functions which it implements
8777 to always fail with ENOSYS. Some functions are actually named
8778 something starting with __ and the normal name is an alias. */
8779#if defined (__stub_shmat) || defined (__stub___shmat)
8780choke me
8781#else
e8482f24 8782shmat();
ab9b9eab
VZ
8783#endif
8784
8785; return 0; }
8786EOF
1216f52d 8787if { (eval echo configure:8788: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
8788 rm -rf conftest*
8789 eval "ac_cv_func_shmat=yes"
8790else
8791 echo "configure: failed program was:" >&5
8792 cat conftest.$ac_ext >&5
8793 rm -rf conftest*
8794 eval "ac_cv_func_shmat=no"
8795fi
8796rm -f conftest*
8797fi
8798
8799if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
8800 echo "$ac_t""yes" 1>&6
8801 :
8802else
8803 echo "$ac_t""no" 1>&6
8804fi
8805
8806 if test $ac_cv_func_shmat = no; then
8807 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
1216f52d 8808echo "configure:8809: checking for shmat in -lipc" >&5
ab9b9eab
VZ
8809ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
8810if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8811 echo $ac_n "(cached) $ac_c" 1>&6
8812else
8813 ac_save_LIBS="$LIBS"
8814LIBS="-lipc $LIBS"
8815cat > conftest.$ac_ext <<EOF
1216f52d 8816#line 8817 "configure"
ab9b9eab
VZ
8817#include "confdefs.h"
8818/* Override any gcc2 internal prototype to avoid an error. */
8819/* We use char because int might match the return type of a gcc2
8820 builtin and then its argument prototype would still apply. */
8821char shmat();
8822
8823int main() {
8824shmat()
8825; return 0; }
8826EOF
1216f52d 8827if { (eval echo configure:8828: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
8828 rm -rf conftest*
8829 eval "ac_cv_lib_$ac_lib_var=yes"
8830else
8831 echo "configure: failed program was:" >&5
8832 cat conftest.$ac_ext >&5
8833 rm -rf conftest*
8834 eval "ac_cv_lib_$ac_lib_var=no"
8835fi
8836rm -f conftest*
8837LIBS="$ac_save_LIBS"
8838
8839fi
8840if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8841 echo "$ac_t""yes" 1>&6
8842 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
8843else
8844 echo "$ac_t""no" 1>&6
8845fi
8846
8847 fi
8848 fi
8849
8850 # Check for libraries that X11R6 Xt/Xaw programs need.
8851 ac_save_LDFLAGS="$LDFLAGS"
8852 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
8853 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
8854 # check for ICE first), but we must link in the order -lSM -lICE or
8855 # we get undefined symbols. So assume we have SM if we have ICE.
8856 # These have to be linked with before -lX11, unlike the other
8857 # libraries we check for below, so use a different variable.
8858 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
8859 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
1216f52d 8860echo "configure:8861: checking for IceConnectionNumber in -lICE" >&5
ab9b9eab
VZ
8861ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
8862if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8863 echo $ac_n "(cached) $ac_c" 1>&6
8864else
8865 ac_save_LIBS="$LIBS"
8866LIBS="-lICE $X_EXTRA_LIBS $LIBS"
8867cat > conftest.$ac_ext <<EOF
1216f52d 8868#line 8869 "configure"
ab9b9eab
VZ
8869#include "confdefs.h"
8870/* Override any gcc2 internal prototype to avoid an error. */
8871/* We use char because int might match the return type of a gcc2
8872 builtin and then its argument prototype would still apply. */
8873char IceConnectionNumber();
8874
8875int main() {
8876IceConnectionNumber()
8877; return 0; }
8878EOF
1216f52d 8879if { (eval echo configure:8880: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
8880 rm -rf conftest*
8881 eval "ac_cv_lib_$ac_lib_var=yes"
8882else
8883 echo "configure: failed program was:" >&5
8884 cat conftest.$ac_ext >&5
8885 rm -rf conftest*
8886 eval "ac_cv_lib_$ac_lib_var=no"
8887fi
8888rm -f conftest*
8889LIBS="$ac_save_LIBS"
8890
8891fi
8892if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8893 echo "$ac_t""yes" 1>&6
8894 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
8895else
8896 echo "$ac_t""no" 1>&6
8897fi
8898
8899 LDFLAGS="$ac_save_LDFLAGS"
8900
8901fi
8902
37d403aa
JS
8903CPPFLAGS="$CPPFLAGS $X_CFLAGS"
8904LDFLAGS="$LDFLAGS $X_LIBS"
ab9b9eab 8905
37d403aa 8906if test "$wxUSE_MOTIF" = 1; then
ab9b9eab 8907 if test "$no_x" = "yes"; then
37d403aa 8908 { echo "configure: error: X11 not found" 1>&2; exit 1; }
ab9b9eab
VZ
8909 fi
8910
8911 GUI_TK_LIBRARY="$X_LIBS"
8912 TOOLKIT_INCLUDE="$X_CFLAGS"
8913
dad6c0ea
VZ
8914 AFMINSTALL=afminstall
8915
ab9b9eab 8916
cd6d6d5b
VZ
8917 COMPILED_X_PROGRAM=0
8918
ab9b9eab 8919 echo $ac_n "checking for Motif/Lesstif headers""... $ac_c" 1>&6
1216f52d 8920echo "configure:8921: checking for Motif/Lesstif headers" >&5
ab9b9eab
VZ
8921
8922ac_find_includes=
8923for ac_dir in $SEARCH_INCLUDE;
8924 do
8925 if test -f "$ac_dir/Xm/Xm.h"; then
8926 ac_find_includes=$ac_dir
8927 break
8928 fi
8929 done
8930
8931 if test "$ac_find_includes" != "" ; then
8932 echo "$ac_t""found $ac_find_includes" 1>&6
8933 else
cd6d6d5b 8934 cat > conftest.$ac_ext <<EOF
1216f52d 8935#line 8936 "configure"
cd6d6d5b
VZ
8936#include "confdefs.h"
8937
8938 #include <Xm/Xm.h>
8939
8940int main() {
8941
8942 int version;
8943
8944 version = xmUseVersion;
8945
8946; return 0; }
8947EOF
1216f52d 8948if { (eval echo configure:8949: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
cd6d6d5b
VZ
8949 rm -rf conftest*
8950
8951 echo "$ac_t""found in default search path" 1>&6
8952 COMPILED_X_PROGRAM=1
8953
8954else
8955 echo "configure: failed program was:" >&5
8956 cat conftest.$ac_ext >&5
8957 rm -rf conftest*
8958
8959 echo "$ac_t""no" 1>&6
8960 { echo "configure: error: please set CFLAGS to contain the location of Xm/Xm.h" 1>&2; exit 1; }
8961
8962
8963fi
8964rm -f conftest*
ab9b9eab
VZ
8965 fi
8966
cd6d6d5b
VZ
8967 if test "$COMPILED_X_PROGRAM" = 0; then
8968 echo $ac_n "checking for Motif/Lesstif library""... $ac_c" 1>&6
1216f52d 8969echo "configure:8970: checking for Motif/Lesstif library" >&5
cd6d6d5b 8970
ab9b9eab
VZ
8971ac_find_libraries=
8972for ac_dir in $SEARCH_LIB;
8973 do
8974 for ac_extension in a so sl; do
8975 if test -f "$ac_dir/libXm.$ac_extension"; then
8976 ac_find_libraries=$ac_dir
8977 break 2
8978 fi
8979 done
8980 done
8981
cd6d6d5b
VZ
8982 if test "$ac_find_libraries" != "" ; then
8983
ab9b9eab
VZ
8984 ac_path_to_include=$ac_find_includes
8985 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
8986 result=$?
8987 if test $result = 0; then
8988 ac_path_to_include=""
8989 else
8990 ac_path_to_include="-I$ac_find_includes"
8991 fi
8992
cd6d6d5b 8993
ab9b9eab
VZ
8994 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
8995 result=$?
8996 if test $result = 0; then
8997 ac_path_to_link=""
8998 else
8999 ac_path_to_link="-L$ac_find_libraries"
9000 fi
9001
9002
cd6d6d5b
VZ
9003 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $ac_path_to_link"
9004 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE $ac_path_to_include"
9005 echo "$ac_t""found at $ac_find_libraries" 1>&6
9006 else
9007 cat > conftest.$ac_ext <<EOF
1216f52d 9008#line 9009 "configure"
cd6d6d5b 9009#include "confdefs.h"
ab9b9eab 9010
cd6d6d5b
VZ
9011 #include <Xm/Xm.h>
9012
9013int main() {
ab9b9eab 9014
cd6d6d5b 9015 int version;
ab9b9eab 9016
cd6d6d5b
VZ
9017 version = xmUseVersion;
9018
9019; return 0; }
9020EOF
1216f52d 9021if { (eval echo configure:9022: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
cd6d6d5b
VZ
9022 rm -rf conftest*
9023
9024 echo "$ac_t""found in default search path" 1>&6
9025 COMPILED_X_PROGRAM=1
9026
9027else
9028 echo "configure: failed program was:" >&5
9029 cat conftest.$ac_ext >&5
9030 rm -rf conftest*
9031
9032 echo "$ac_t""no" 1>&6
9033 { echo "configure: error: please set LDFLAGS to contain the location of libXm" 1>&2; exit 1; }
9034
9035
9036fi
9037rm -f conftest*
9038 fi
ab9b9eab
VZ
9039 fi
9040
cd6d6d5b 9041
ab9b9eab
VZ
9042 XPM_LINK=""
9043 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
1216f52d 9044echo "configure:9045: checking for Xpm library" >&5
ab9b9eab
VZ
9045
9046ac_find_libraries=
9047for ac_dir in $SEARCH_LIB;
9048 do
9049 for ac_extension in a so sl; do
9050 if test -f "$ac_dir/libXpm.$ac_extension"; then
9051 ac_find_libraries=$ac_dir
9052 break 2
9053 fi
9054 done
9055 done
9056
9057 if test "$ac_find_libraries" != "" ; then
9058
9059 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
9060 result=$?
9061 if test $result = 0; then
9062 ac_path_to_link=""
9063 else
9064 ac_path_to_link="-L$ac_find_libraries"
9065 fi
9066
9067 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $ac_path_to_link"
9068 XPM_LINK="-lXpm "
9069 cat >> confdefs.h <<\EOF
9070#define wxHAVE_LIB_XPM 1
9071EOF
9072
9073 echo "$ac_t""found at $ac_find_libraries" 1>&6
9074 else
cd6d6d5b 9075 cat > conftest.$ac_ext <<EOF
1216f52d 9076#line 9077 "configure"
cd6d6d5b
VZ
9077#include "confdefs.h"
9078
9079 #include <X11/xpm.h>
9080
9081int main() {
9082
9083 int version;
9084
9085 version = XpmLibraryVersion();
9086
9087; return 0; }
9088EOF
1216f52d 9089if { (eval echo configure:9090: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
cd6d6d5b
VZ
9090 rm -rf conftest*
9091
f6bcfd97
BP
9092 XPM_LINK="-lXpm "
9093 cat >> confdefs.h <<\EOF
3ace2e6d
SN
9094#define wxHAVE_LIB_XPM 1
9095EOF
9096
9097 echo "$ac_t""found in default search path" 1>&6
cd6d6d5b
VZ
9098 COMPILED_X_PROGRAM=0
9099
9100else
9101 echo "configure: failed program was:" >&5
9102 cat conftest.$ac_ext >&5
9103 rm -rf conftest*
9104
9105 echo "$ac_t""no" 1>&6
9106 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
9107
9108
9109fi
9110rm -f conftest*
ab9b9eab
VZ
9111 fi
9112
8916026b 9113 GUI_TK_LINK="-lXm $XPM_LINK -lXmu -lXext -lXt -lX11"
ab9b9eab
VZ
9114 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $GUI_TK_LINK"
9115 TOOLKIT=MOTIF
10f2d63a
VZ
9116 GUIDIST=MOTIF_DIST
9117fi
9118
b4085ce6
GD
9119if test "$wxUSE_MAC" = 1; then
9120 TOOLKIT=MAC
c521c494 9121 GUIDIST=MACX_DIST
b4085ce6
GD
9122fi
9123
e07802fc
VZ
9124if test "$wxUSE_PM" = 1; then
9125 TOOLKIT=PM
e07802fc
VZ
9126 GUIDIST=GTK_DIST
9127fi
9128
9129if test "$TOOLKIT" != "PM" ; then
ec14dd32 9130 TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
e07802fc
VZ
9131else
9132 TOOLKIT_DIR="os2"
9133fi
10f2d63a 9134
f6bcfd97
BP
9135 if test "$wxUSE_DEBUG_FLAG" = "yes"; then
9136 TOOLKIT_NAME="${TOOLKIT_DIR}d"
9137 else
9138 TOOLKIT_NAME="${TOOLKIT_DIR}"
9139 fi
9140
2224580a 9141 TOOLKIT_DEF="-D__WX${TOOLKIT}__"
10f2d63a 9142
f6bcfd97 9143 WX_LIBRARY="wx_${TOOLKIT_NAME}"
10f2d63a 9144
bdad4e7e 9145 ALL_OBJECTS="\$(GUIOBJS) \$(COMMONOBJS) \$(GENERICOBJS) \$(UNIXOBJS) \$(HTMLOBJS) \$(OGLOBJS)"
3fcdd07b 9146
9ad43c8b
RL
9147 if test "$TOOLKIT" != "MSW" -a "$wxUSE_ODBC" = "yes" ; then
9148 ALL_OBJECTS="${ALL_OBJECTS} \$(IODBCOBJS)"
3fcdd07b
VZ
9149 fi
9150
d9d8273d 9151 if test "$wxUSE_LIBJPEG" = "yes" ; then
2224580a 9152 ALL_OBJECTS="${ALL_OBJECTS} \$(JPEGOBJS)"
d9d8273d
RR
9153 fi
9154 if test "$wxUSE_LIBTIFF" = "yes" ; then
9155 ALL_OBJECTS="${ALL_OBJECTS} \$(TIFFOBJS)"
9156 fi
9157 if test "$wxUSE_LIBPNG" = "yes" ; then
9158 ALL_OBJECTS="${ALL_OBJECTS} \$(PNGOBJS)"
9159 fi
9160 if test "$wxUSE_ZLIB" = "yes" ; then
9161 ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)"
9162 fi
3fed1840
RR
9163 if test "$wxUSE_FREETYPE" = "yes" ; then
9164 ALL_OBJECTS="${ALL_OBJECTS} \$(FREETYPEOBJS)"
9165 fi
bdad4e7e 9166 ALL_DEPFILES="\$(GUIDEPS) \$(COMMONDEPS) \$(GENERICDEPS) \$(UNIXDEPS) \$(HTMLDEPS) \$(OGLDEPS)"
2224580a
VZ
9167
9168 PORT_FILES="src/\$(TOOLKITDIR)/files.lst"
9169 RPM_FILES="src/\$(TOOLKITDIR)/rpmfiles.lst"
9170 RPM_SPEC="wx\$(TOOLKIT).spec"
9171
9172 GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
9173 DISTDIR="wx\$(TOOLKIT)"
10f2d63a 9174else
dad6c0ea
VZ
9175 USE_GUI=0
9176
f6bcfd97
BP
9177 TOOLKIT_DIR="base"
9178
9179 if test "$wxUSE_DEBUG_FLAG" = "yes"; then
9180 TOOLKIT_NAME="${TOOLKIT_DIR}d"
9181 else
9182 TOOLKIT_NAME="${TOOLKIT_DIR}"
9183 fi
9184
07eb77a6
RL
9185 TOOLKIT_DEF="-D__WXBASE__"
9186
b4085ce6
GD
9187 ALL_OBJECTS="\$(BASE_OBJS) \$(BASE_UNIX_OBJS)"
9188 ALL_DEPFILES="\$(BASE_DEPS) \$(BASE_UNIX_DEPS)"
10f2d63a 9189
a20b6d3a
VZ
9190 if test "$wxUSE_ZLIB" = "yes" ; then
9191 ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)"
9192 fi
9193
f6bcfd97 9194 WX_LIBRARY="wx_${TOOLKIT_NAME}"
2224580a
VZ
9195
9196 PORT_FILES="src/files.lst"
9197 RPM_FILES="src/rpmfiles.lst"
9198 RPM_SPEC="wxBase.spec"
9199
9200 GUIDIST="BASE_DIST"
9201 DISTDIR="wxBase"
10f2d63a
VZ
9202fi
9203
9204WX_LIBRARY_NAME="lib${WX_LIBRARY}.la"
bdad4e7e 9205WX_LIBRARY_NAME_GL="lib${WX_LIBRARY}_gl.la"
10f2d63a
VZ
9206
9207WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a"
bdad4e7e 9208WX_LIBRARY_NAME_STATIC_GL="lib${WX_LIBRARY}_gl.a"
10f2d63a
VZ
9209
9210WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}-${WX_RELEASE}.so.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
bdad4e7e 9211WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.so.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
10f2d63a
VZ
9212
9213WX_LIBRARY_LINK1="lib${WX_LIBRARY}-${WX_RELEASE}.so.${WX_CURRENT}"
9214WX_LIBRARY_LINK2="lib${WX_LIBRARY}-${WX_RELEASE}.so"
9215WX_LIBRARY_LINK3="lib${WX_LIBRARY}.so"
bdad4e7e
RR
9216WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.so.${WX_CURRENT}"
9217WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.so"
9218WX_LIBRARY_LINK3_GL="lib${WX_LIBRARY}_gl.so"
10f2d63a
VZ
9219
9220SHARED_LD=
9221PIC_FLAG=
9222WX_ALL=
9223WX_ALL_INSTALLED=
1d62a8b4 9224BURNT_LIBRARY_NAME=
f6bcfd97 9225WX_TARGET_LIBRARY_SONAME=
10f2d63a 9226
b12915c1 9227
10f2d63a
VZ
9228if test "$wxUSE_SHARED" = "yes"; then
9229 case "${host}" in
9230 *-hp-hpux* )
9231 if test "$GCC" = yes ; then
69ffe1d2 9232 SHARED_LD="${CC} -shared -fPIC -o"
10f2d63a
VZ
9233 PIC_FLAG="-fPIC"
9234 else
f6bcfd97
BP
9235 LDFLAGS="-L/usr/lib"
9236
10f2d63a
VZ
9237 SHARED_LD="${CXX} -b -o"
9238 PIC_FLAG="+Z"
9239 fi
f6bcfd97
BP
9240 WX_LIBRARY_NAME_SHARED="libwx_${TOOLKIT_NAME}.sl"
9241 WX_LIBRARY_NAME_SHARED_GL="libwx_${TOOLKIT_NAME}_gl.sl"
c661ecca 9242 if test "$wxUSE_OPENGL" = "yes"; then
f6bcfd97 9243 WX_ALL_INSTALLED="preinstall_gl"
c661ecca
RR
9244 WX_ALL="${WX_LIBRARY_NAME_SHARED} ${WX_LIBRARY_NAME_SHARED_GL}"
9245 else
9246 WX_ALL="${WX_LIBRARY_NAME_SHARED}"
9247 fi
10f2d63a 9248 ;;
b12915c1
VZ
9249
9250 *-*-linux* )
10f2d63a
VZ
9251 SHARED_LD="${CC} -shared -o"
9252 PIC_FLAG="-fPIC"
00cf1208 9253 if test "$wxUSE_BURNT_NAME" = "yes" ; then
05cdfc6f 9254 BURNT_LIBRARY_NAME="-Wl,-soname,${WX_LIBRARY_LINK1}"
bdad4e7e 9255 BURNT_LIBRARY_NAME_GL="-Wl,-soname,${WX_LIBRARY_LINK1_GL}"
f6bcfd97 9256 WX_TARGET_LIBRARY_SONAME="-Wl,-soname,\$(TARGETLIB_LINK1)"
00cf1208 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
00cf1208 9265 ;;
10f2d63a
VZ
9266 *-*-irix5* | *-*-irix6* )
9267 if test "$GCC" = yes ; then
9268 SHARED_LD="${CC} -shared -o"
9269 PIC_FLAG="-fPIC"
9270 else
9271 SHARED_LD="${CXX} -shared -o"
9272 fi
c661ecca
RR
9273 if test "$wxUSE_OPENGL" = "yes"; then
9274 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
9275 WX_ALL="CREATE_LINKS CREATE_LINKS_GL"
9276 else
9277 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
9278 WX_ALL="CREATE_LINKS"
422107f9 9279 fi
10f2d63a
VZ
9280 ;;
9281 *-*-solaris2* )
9282 if test "$GCC" = yes ; then
9283 SHARED_LD="${CC} -shared -o"
9284 PIC_FLAG="-fPIC"
f6bcfd97
BP
9285
9286 CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include"
10f2d63a
VZ
9287 else
9288 SHARED_LD="${CXX} -G -o"
9289 PIC_FLAG="-KPIC"
9290 fi
c661ecca
RR
9291 if test "$wxUSE_OPENGL" = "yes"; then
9292 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
9293 WX_ALL="CREATE_LINKS CREATE_LINKS_GL"
9294 else
9295 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
9296 WX_ALL="CREATE_LINKS"
9297 fi
10f2d63a
VZ
9298 ;;
9299 *-*-sunos4* )
9300 SHARED_LD="${CC} -shared -o"
9301 PIC_FLAG="-fPIC"
9302 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
9303 WX_ALL="CREATE_LINKS"
9304 ;;
95c8801c 9305 *-*-freebsd* | *-*-openbsd* | *-*-netbsd* )
10f2d63a
VZ
9306 SHARED_LD="${CC} -shared -o"
9307 PIC_FLAG="-fPIC"
37d403aa
JS
9308 if test "$wxUSE_OPENGL" = "yes"; then
9309 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
9310 WX_ALL="CREATE_LINKS CREATE_LINKS_GL"
9311 else
9312 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
9313 WX_ALL="CREATE_LINKS"
9314 fi
10f2d63a 9315 ;;
b4085ce6 9316 *-*-darwin* )
ea5999b9
GD
9317 SHARED_LD="${CXX} -dynamiclib -o"
9318 PIC_FLAG="-dynamic -fPIC"
b4085ce6
GD
9319 if test "$wxUSE_OPENGL" = "yes"; then
9320 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
9321 WX_ALL="CREATE_LINKS CREATE_LINKS_GL"
9322 else
9323 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
9324 WX_ALL="CREATE_LINKS"
9325 fi
f3c067d2
GD
9326 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}-${WX_RELEASE}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}.dylib"
9327 WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}.dylib"
9328 WX_LIBRARY_LINK1="lib${WX_LIBRARY}-${WX_RELEASE}.${WX_CURRENT}.dylib"
9329 WX_LIBRARY_LINK2="lib${WX_LIBRARY}-${WX_RELEASE}.dylib"
9330 WX_LIBRARY_LINK3="lib${WX_LIBRARY}.dylib"
9331 WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.${WX_CURRENT}.dylib"
9332 WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.dylib"
9333 WX_LIBRARY_LINK3_GL="lib${WX_LIBRARY}_gl.dylib"
b4085ce6 9334 ;;
10f2d63a
VZ
9335 *-*-osf* )
9336 SHARED_LD="${CXX} -shared -o"
9337 PIC_FLAG="-fPIC"
9338 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
9339 WX_ALL="CREATE_LINKS"
9340 ;;
9341 *-*-dgux5* )
9342 SHARED_LD="${CXX} -shared -o"
9343 PIC_FLAG="-fPIC"
9344 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
9345 WX_ALL="CREATE_LINKS"
9346 ;;
9347 *-*-sysv5* )
9348 SHARED_LD="${CC} -shared -o"
9349 PIC_FLAG="-fPIC"
9350 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
9351 WX_ALL="CREATE_LINKS"
9352 ;;
9353 *-*-aix* )
9354 SHARED_LD="/usr/lpp/xlC/bin/makeC++SharedLib -p 0 -o"
9355 WX_ALL=${WX_LIBRARY_NAME_SHARED}
9356 ;;
9357 *-*-cygwin32* )
9358 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
bdad4e7e 9359 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}"
f6bcfd97
BP
9360 if test "$wxUSE_OPENGL" = "yes"; then
9361 WX_ALL_INSTALLED="preinstall_gl"
9362 WX_ALL="${WX_LIBRARY_NAME_STATIC} ${WX_LIBRARY_NAME_STATIC_GL}"
9363 else
9364 WX_ALL="${WX_LIBRARY_NAME_STATIC}"
9365 fi
10f2d63a 9366 ;;
b12915c1 9367 *-*-mingw32* )
10f2d63a 9368 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
bdad4e7e 9369 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}"
f6bcfd97
BP
9370 if test "$wxUSE_OPENGL" = "yes"; then
9371 WX_ALL_INSTALLED="preinstall_gl"
9372 WX_ALL="${WX_LIBRARY_NAME_STATIC} ${WX_LIBRARY_NAME_STATIC_GL}"
9373 else
9374 WX_ALL="${WX_LIBRARY_NAME_STATIC}"
9375 fi
10f2d63a
VZ
9376 ;;
9377 *-pc-os2_emx )
e07802fc
VZ
9378 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
9379 WX_ALL="${WX_LIBRARY_NAME_STATIC}"
10f2d63a 9380 ;;
b12915c1 9381 *-*-beos* )
e2b8b066 9382 SHARED_LD="${LD} -shared -o"
b12915c1
VZ
9383 PIC_FLAG="-fPIC"
9384 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
9385 WX_ALL="CREATE_LINKS"
9386 ;;
10f2d63a
VZ
9387 *)
9388 { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; }
9389 esac
9390
9391 if test "x$WX_TARGET_LIBRARY" = "x"; then
9392 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}"
bdad4e7e 9393 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_SHARED_GL}"
10f2d63a 9394 fi
3711412e 9395 WX_TARGET_LIBRARY_TYPE="so"
10f2d63a
VZ
9396else
9397 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
bdad4e7e 9398 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}"
f6bcfd97
BP
9399
9400 if test "$wxUSE_OPENGL" = "yes"; then
9401 WX_ALL_INSTALLED="preinstall_gl"
9402 WX_ALL="${WX_LIBRARY_NAME_STATIC} ${WX_LIBRARY_NAME_STATIC_GL}"
9403 else
9404 WX_ALL="${WX_LIBRARY_NAME_STATIC}"
9405 fi
9406
9407 if test "$wxUSE_GUI" = "no"; then
9408 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
9409 fi
9410
3711412e 9411 WX_TARGET_LIBRARY_TYPE="a"
10f2d63a
VZ
9412fi
9413
9414
9415for ac_hdr in strings.h
9416do
9417ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9418echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1216f52d 9419echo "configure:9420: checking for $ac_hdr" >&5
10f2d63a
VZ
9420if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9421 echo $ac_n "(cached) $ac_c" 1>&6
9422else
9423 cat > conftest.$ac_ext <<EOF
1216f52d 9424#line 9425 "configure"
10f2d63a
VZ
9425#include "confdefs.h"
9426#include <$ac_hdr>
9427EOF
9428ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1216f52d 9429{ (eval echo configure:9430: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
9430ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9431if test -z "$ac_err"; then
9432 rm -rf conftest*
9433 eval "ac_cv_header_$ac_safe=yes"
9434else
9435 echo "$ac_err" >&5
9436 echo "configure: failed program was:" >&5
9437 cat conftest.$ac_ext >&5
9438 rm -rf conftest*
9439 eval "ac_cv_header_$ac_safe=no"
9440fi
9441rm -f conftest*
9442fi
9443if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9444 echo "$ac_t""yes" 1>&6
9445 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9446 cat >> confdefs.h <<EOF
9447#define $ac_tr_hdr 1
9448EOF
9449
9450else
9451 echo "$ac_t""no" 1>&6
9452fi
9453done
9454
9455for ac_hdr in unistd.h
9456do
9457ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9458echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1216f52d 9459echo "configure:9460: checking for $ac_hdr" >&5
10f2d63a
VZ
9460if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9461 echo $ac_n "(cached) $ac_c" 1>&6
9462else
9463 cat > conftest.$ac_ext <<EOF
1216f52d 9464#line 9465 "configure"
10f2d63a
VZ
9465#include "confdefs.h"
9466#include <$ac_hdr>
9467EOF
9468ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1216f52d 9469{ (eval echo configure:9470: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
9470ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9471if test -z "$ac_err"; then
9472 rm -rf conftest*
9473 eval "ac_cv_header_$ac_safe=yes"
9474else
9475 echo "$ac_err" >&5
9476 echo "configure: failed program was:" >&5
9477 cat conftest.$ac_ext >&5
9478 rm -rf conftest*
9479 eval "ac_cv_header_$ac_safe=no"
9480fi
9481rm -f conftest*
9482fi
9483if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9484 echo "$ac_t""yes" 1>&6
9485 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9486 cat >> confdefs.h <<EOF
9487#define $ac_tr_hdr 1
9488EOF
9489
9490else
9491 echo "$ac_t""no" 1>&6
9492fi
9493done
9494
0fb0dd83 9495for ac_hdr in fcntl.h
10f2d63a
VZ
9496do
9497ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9498echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1216f52d 9499echo "configure:9500: checking for $ac_hdr" >&5
10f2d63a
VZ
9500if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9501 echo $ac_n "(cached) $ac_c" 1>&6
9502else
9503 cat > conftest.$ac_ext <<EOF
1216f52d 9504#line 9505 "configure"
10f2d63a
VZ
9505#include "confdefs.h"
9506#include <$ac_hdr>
9507EOF
9508ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1216f52d 9509{ (eval echo configure:9510: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
9510ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9511if test -z "$ac_err"; then
9512 rm -rf conftest*
9513 eval "ac_cv_header_$ac_safe=yes"
9514else
9515 echo "$ac_err" >&5
9516 echo "configure: failed program was:" >&5
9517 cat conftest.$ac_ext >&5
9518 rm -rf conftest*
9519 eval "ac_cv_header_$ac_safe=no"
9520fi
9521rm -f conftest*
9522fi
9523if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9524 echo "$ac_t""yes" 1>&6
9525 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9526 cat >> confdefs.h <<EOF
9527#define $ac_tr_hdr 1
9528EOF
9529
9530else
9531 echo "$ac_t""no" 1>&6
9532fi
9533done
9534
0fb0dd83 9535for ac_hdr in wchar.h
10f2d63a
VZ
9536do
9537ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9538echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1216f52d 9539echo "configure:9540: checking for $ac_hdr" >&5
10f2d63a
VZ
9540if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9541 echo $ac_n "(cached) $ac_c" 1>&6
9542else
9543 cat > conftest.$ac_ext <<EOF
1216f52d 9544#line 9545 "configure"
10f2d63a
VZ
9545#include "confdefs.h"
9546#include <$ac_hdr>
9547EOF
9548ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1216f52d 9549{ (eval echo configure:9550: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
9550ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9551if test -z "$ac_err"; then
9552 rm -rf conftest*
9553 eval "ac_cv_header_$ac_safe=yes"
9554else
9555 echo "$ac_err" >&5
9556 echo "configure: failed program was:" >&5
9557 cat conftest.$ac_ext >&5
9558 rm -rf conftest*
9559 eval "ac_cv_header_$ac_safe=no"
9560fi
9561rm -f conftest*
9562fi
9563if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9564 echo "$ac_t""yes" 1>&6
9565 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9566 cat >> confdefs.h <<EOF
9567#define $ac_tr_hdr 1
9568EOF
9569
9570else
9571 echo "$ac_t""no" 1>&6
9572fi
9573done
9574
0fb0dd83 9575for ac_hdr in wcstr.h
10f2d63a
VZ
9576do
9577ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9578echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1216f52d 9579echo "configure:9580: checking for $ac_hdr" >&5
10f2d63a
VZ
9580if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9581 echo $ac_n "(cached) $ac_c" 1>&6
9582else
9583 cat > conftest.$ac_ext <<EOF
1216f52d 9584#line 9585 "configure"
10f2d63a
VZ
9585#include "confdefs.h"
9586#include <$ac_hdr>
9587EOF
9588ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1216f52d 9589{ (eval echo configure:9590: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6f72b082
OK
9590ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9591if test -z "$ac_err"; then
9592 rm -rf conftest*
9593 eval "ac_cv_header_$ac_safe=yes"
9594else
9595 echo "$ac_err" >&5
9596 echo "configure: failed program was:" >&5
9597 cat conftest.$ac_ext >&5
9598 rm -rf conftest*
9599 eval "ac_cv_header_$ac_safe=no"
9600fi
9601rm -f conftest*
9602fi
9603if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9604 echo "$ac_t""yes" 1>&6
9605 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9606 cat >> confdefs.h <<EOF
9607#define $ac_tr_hdr 1
9608EOF
9609
9610else
9611 echo "$ac_t""no" 1>&6
9612fi
9613done
9614
0fb0dd83 9615for ac_hdr in fnmatch.h
6f72b082
OK
9616do
9617ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9618echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1216f52d 9619echo "configure:9620: checking for $ac_hdr" >&5
6f72b082
OK
9620if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9621 echo $ac_n "(cached) $ac_c" 1>&6
9622else
9623 cat > conftest.$ac_ext <<EOF
1216f52d 9624#line 9625 "configure"
6f72b082
OK
9625#include "confdefs.h"
9626#include <$ac_hdr>
9627EOF
9628ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1216f52d 9629{ (eval echo configure:9630: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6f72b082
OK
9630ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9631if test -z "$ac_err"; then
9632 rm -rf conftest*
9633 eval "ac_cv_header_$ac_safe=yes"
9634else
9635 echo "$ac_err" >&5
9636 echo "configure: failed program was:" >&5
9637 cat conftest.$ac_ext >&5
9638 rm -rf conftest*
9639 eval "ac_cv_header_$ac_safe=no"
9640fi
9641rm -f conftest*
9642fi
9643if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9644 echo "$ac_t""yes" 1>&6
9645 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9646 cat >> confdefs.h <<EOF
9647#define $ac_tr_hdr 1
9648EOF
9649
9650else
9651 echo "$ac_t""no" 1>&6
9652fi
9653done
9654
0fb0dd83 9655for ac_hdr in iconv.h
6f72b082
OK
9656do
9657ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9658echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1216f52d 9659echo "configure:9660: checking for $ac_hdr" >&5
6f72b082
OK
9660if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9661 echo $ac_n "(cached) $ac_c" 1>&6
9662else
9663 cat > conftest.$ac_ext <<EOF
1216f52d 9664#line 9665 "configure"
6f72b082
OK
9665#include "confdefs.h"
9666#include <$ac_hdr>
9667EOF
9668ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1216f52d 9669{ (eval echo configure:9670: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
9670ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9671if test -z "$ac_err"; then
9672 rm -rf conftest*
9673 eval "ac_cv_header_$ac_safe=yes"
9674else
9675 echo "$ac_err" >&5
9676 echo "configure: failed program was:" >&5
9677 cat conftest.$ac_ext >&5
9678 rm -rf conftest*
9679 eval "ac_cv_header_$ac_safe=no"
9680fi
9681rm -f conftest*
9682fi
9683if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9684 echo "$ac_t""yes" 1>&6
9685 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9686 cat >> confdefs.h <<EOF
9687#define $ac_tr_hdr 1
9688EOF
9689
9690else
9691 echo "$ac_t""no" 1>&6
9692fi
9693done
9694
0fb0dd83
RR
9695for ac_hdr in langinfo.h
9696do
9697ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9698echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1216f52d 9699echo "configure:9700: checking for $ac_hdr" >&5
0fb0dd83
RR
9700if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9701 echo $ac_n "(cached) $ac_c" 1>&6
9702else
9703 cat > conftest.$ac_ext <<EOF
1216f52d 9704#line 9705 "configure"
0fb0dd83
RR
9705#include "confdefs.h"
9706#include <$ac_hdr>
9707EOF
9708ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1216f52d 9709{ (eval echo configure:9710: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
0fb0dd83
RR
9710ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9711if test -z "$ac_err"; then
9712 rm -rf conftest*
9713 eval "ac_cv_header_$ac_safe=yes"
9714else
9715 echo "$ac_err" >&5
9716 echo "configure: failed program was:" >&5
9717 cat conftest.$ac_ext >&5
9718 rm -rf conftest*
9719 eval "ac_cv_header_$ac_safe=no"
9720fi
9721rm -f conftest*
9722fi
9723if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9724 echo "$ac_t""yes" 1>&6
9725 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9726 cat >> confdefs.h <<EOF
9727#define $ac_tr_hdr 1
9728EOF
9729
9730else
9731 echo "$ac_t""no" 1>&6
9732fi
9733done
9734
10f2d63a 9735
73fd4a60
VZ
9736if test "$wxUSE_GUI" = "yes"; then
9737 if test "$wxUSE_UNIX" = "yes"; then
9738 for ac_hdr in X11/XKBlib.h
10f2d63a
VZ
9739do
9740ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9741echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1216f52d 9742echo "configure:9743: checking for $ac_hdr" >&5
10f2d63a
VZ
9743if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9744 echo $ac_n "(cached) $ac_c" 1>&6
9745else
9746 cat > conftest.$ac_ext <<EOF
1216f52d 9747#line 9748 "configure"
10f2d63a
VZ
9748#include "confdefs.h"
9749#include <$ac_hdr>
9750EOF
9751ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1216f52d 9752{ (eval echo configure:9753: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
9753ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9754if test -z "$ac_err"; then
9755 rm -rf conftest*
9756 eval "ac_cv_header_$ac_safe=yes"
9757else
9758 echo "$ac_err" >&5
9759 echo "configure: failed program was:" >&5
9760 cat conftest.$ac_ext >&5
9761 rm -rf conftest*
9762 eval "ac_cv_header_$ac_safe=no"
9763fi
9764rm -f conftest*
9765fi
9766if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9767 echo "$ac_t""yes" 1>&6
9768 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9769 cat >> confdefs.h <<EOF
9770#define $ac_tr_hdr 1
9771EOF
9772
9773else
9774 echo "$ac_t""no" 1>&6
9775fi
9776done
9777
73fd4a60 9778 fi
10f2d63a
VZ
9779fi
9780
9781
9782echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1216f52d 9783echo "configure:9784: checking for ANSI C header files" >&5
10f2d63a
VZ
9784if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
9785 echo $ac_n "(cached) $ac_c" 1>&6
9786else
9787 cat > conftest.$ac_ext <<EOF
1216f52d 9788#line 9789 "configure"
10f2d63a
VZ
9789#include "confdefs.h"
9790#include <stdlib.h>
9791#include <stdarg.h>
9792#include <string.h>
9793#include <float.h>
9794EOF
9795ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1216f52d 9796{ (eval echo configure:9797: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
9797ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9798if test -z "$ac_err"; then
9799 rm -rf conftest*
9800 ac_cv_header_stdc=yes
9801else
9802 echo "$ac_err" >&5
9803 echo "configure: failed program was:" >&5
9804 cat conftest.$ac_ext >&5
9805 rm -rf conftest*
9806 ac_cv_header_stdc=no
9807fi
9808rm -f conftest*
9809
9810if test $ac_cv_header_stdc = yes; then
9811 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9812cat > conftest.$ac_ext <<EOF
1216f52d 9813#line 9814 "configure"
10f2d63a
VZ
9814#include "confdefs.h"
9815#include <string.h>
9816EOF
9817if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9818 egrep "memchr" >/dev/null 2>&1; then
9819 :
9820else
9821 rm -rf conftest*
9822 ac_cv_header_stdc=no
9823fi
9824rm -f conftest*
9825
9826fi
9827
9828if test $ac_cv_header_stdc = yes; then
9829 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9830cat > conftest.$ac_ext <<EOF
1216f52d 9831#line 9832 "configure"
10f2d63a
VZ
9832#include "confdefs.h"
9833#include <stdlib.h>
9834EOF
9835if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9836 egrep "free" >/dev/null 2>&1; then
9837 :
9838else
9839 rm -rf conftest*
9840 ac_cv_header_stdc=no
9841fi
9842rm -f conftest*
9843
9844fi
9845
9846if test $ac_cv_header_stdc = yes; then
9847 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9848if test "$cross_compiling" = yes; then
9849 :
9850else
9851 cat > conftest.$ac_ext <<EOF
1216f52d 9852#line 9853 "configure"
10f2d63a
VZ
9853#include "confdefs.h"
9854#include <ctype.h>
9855#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9856#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9857#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9858int main () { int i; for (i = 0; i < 256; i++)
9859if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
9860exit (0); }
9861
9862EOF
1216f52d 9863if { (eval echo configure:9864: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10f2d63a
VZ
9864then
9865 :
9866else
9867 echo "configure: failed program was:" >&5
9868 cat conftest.$ac_ext >&5
9869 rm -fr conftest*
9870 ac_cv_header_stdc=no
9871fi
9872rm -fr conftest*
9873fi
9874
9875fi
9876fi
9877
9878echo "$ac_t""$ac_cv_header_stdc" 1>&6
9879if test $ac_cv_header_stdc = yes; then
9880 cat >> confdefs.h <<\EOF
9881#define STDC_HEADERS 1
9882EOF
9883
9884fi
9885
9886echo $ac_n "checking for mode_t""... $ac_c" 1>&6
1216f52d 9887echo "configure:9888: checking for mode_t" >&5
10f2d63a
VZ
9888if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
9889 echo $ac_n "(cached) $ac_c" 1>&6
9890else
9891 cat > conftest.$ac_ext <<EOF
1216f52d 9892#line 9893 "configure"
10f2d63a
VZ
9893#include "confdefs.h"
9894#include <sys/types.h>
9895#if STDC_HEADERS
9896#include <stdlib.h>
9897#include <stddef.h>
9898#endif
9899EOF
9900if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9901 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
9902 rm -rf conftest*
9903 ac_cv_type_mode_t=yes
9904else
9905 rm -rf conftest*
9906 ac_cv_type_mode_t=no
9907fi
9908rm -f conftest*
9909
9910fi
9911echo "$ac_t""$ac_cv_type_mode_t" 1>&6
9912if test $ac_cv_type_mode_t = no; then
9913 cat >> confdefs.h <<\EOF
9914#define mode_t int
9915EOF
9916
9917fi
9918
9919echo $ac_n "checking for off_t""... $ac_c" 1>&6
1216f52d 9920echo "configure:9921: checking for off_t" >&5
10f2d63a
VZ
9921if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
9922 echo $ac_n "(cached) $ac_c" 1>&6
9923else
9924 cat > conftest.$ac_ext <<EOF
1216f52d 9925#line 9926 "configure"
10f2d63a
VZ
9926#include "confdefs.h"
9927#include <sys/types.h>
9928#if STDC_HEADERS
9929#include <stdlib.h>
9930#include <stddef.h>
9931#endif
9932EOF
9933if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9934 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
9935 rm -rf conftest*
9936 ac_cv_type_off_t=yes
9937else
9938 rm -rf conftest*
9939 ac_cv_type_off_t=no
9940fi
9941rm -f conftest*
9942
9943fi
9944echo "$ac_t""$ac_cv_type_off_t" 1>&6
9945if test $ac_cv_type_off_t = no; then
9946 cat >> confdefs.h <<\EOF
9947#define off_t long
9948EOF
9949
9950fi
9951
9952echo $ac_n "checking for pid_t""... $ac_c" 1>&6
1216f52d 9953echo "configure:9954: checking for pid_t" >&5
10f2d63a
VZ
9954if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
9955 echo $ac_n "(cached) $ac_c" 1>&6
9956else
9957 cat > conftest.$ac_ext <<EOF
1216f52d 9958#line 9959 "configure"
10f2d63a
VZ
9959#include "confdefs.h"
9960#include <sys/types.h>
9961#if STDC_HEADERS
9962#include <stdlib.h>
9963#include <stddef.h>
9964#endif
9965EOF
9966if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9967 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
9968 rm -rf conftest*
9969 ac_cv_type_pid_t=yes
9970else
9971 rm -rf conftest*
9972 ac_cv_type_pid_t=no
9973fi
9974rm -f conftest*
9975
9976fi
9977echo "$ac_t""$ac_cv_type_pid_t" 1>&6
9978if test $ac_cv_type_pid_t = no; then
9979 cat >> confdefs.h <<\EOF
9980#define pid_t int
9981EOF
9982
9983fi
9984
9985echo $ac_n "checking for size_t""... $ac_c" 1>&6
1216f52d 9986echo "configure:9987: checking for size_t" >&5
10f2d63a
VZ
9987if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
9988 echo $ac_n "(cached) $ac_c" 1>&6
9989else
9990 cat > conftest.$ac_ext <<EOF
1216f52d 9991#line 9992 "configure"
10f2d63a
VZ
9992#include "confdefs.h"
9993#include <sys/types.h>
9994#if STDC_HEADERS
9995#include <stdlib.h>
9996#include <stddef.h>
9997#endif
9998EOF
9999if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10000 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
10001 rm -rf conftest*
10002 ac_cv_type_size_t=yes
10003else
10004 rm -rf conftest*
10005 ac_cv_type_size_t=no
10006fi
10007rm -f conftest*
10008
10009fi
10010echo "$ac_t""$ac_cv_type_size_t" 1>&6
10011if test $ac_cv_type_size_t = no; then
10012 cat >> confdefs.h <<\EOF
10013#define size_t unsigned
10014EOF
10015
10016fi
10017
10018echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
1216f52d 10019echo "configure:10020: checking for uid_t in sys/types.h" >&5
10f2d63a
VZ
10020if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
10021 echo $ac_n "(cached) $ac_c" 1>&6
10022else
10023 cat > conftest.$ac_ext <<EOF
1216f52d 10024#line 10025 "configure"
10f2d63a
VZ
10025#include "confdefs.h"
10026#include <sys/types.h>
10027EOF
10028if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10029 egrep "uid_t" >/dev/null 2>&1; then
10030 rm -rf conftest*
10031 ac_cv_type_uid_t=yes
10032else
10033 rm -rf conftest*
10034 ac_cv_type_uid_t=no
10035fi
10036rm -f conftest*
10037
10038fi
10039
10040echo "$ac_t""$ac_cv_type_uid_t" 1>&6
10041if test $ac_cv_type_uid_t = no; then
10042 cat >> confdefs.h <<\EOF
10043#define uid_t int
10044EOF
10045
10046 cat >> confdefs.h <<\EOF
10047#define gid_t int
10048EOF
10049
10050fi
10051
10052
0046ff7c 10053echo $ac_n "checking for wchar_t""... $ac_c" 1>&6
1216f52d 10054echo "configure:10055: checking for wchar_t" >&5
0046ff7c
VS
10055if eval "test \"`echo '$''{'wx_cv_type_wchar_t'+set}'`\" = set"; then
10056 echo $ac_n "(cached) $ac_c" 1>&6
10057else
10058
10059 cat > conftest.$ac_ext <<EOF
1216f52d 10060#line 10061 "configure"
0046ff7c
VS
10061#include "confdefs.h"
10062#include <wchar.h>
10063int main() {
10064
10065 wchar_t wc, *ws;
10066 wc = L'a';
10067 ws = L"Hello, world!";
10068
10069; return 0; }
10070EOF
1216f52d 10071if { (eval echo configure:10072: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
0046ff7c
VS
10072 rm -rf conftest*
10073 wx_cv_type_wchar_t=yes
10074else
10075 echo "configure: failed program was:" >&5
10076 cat conftest.$ac_ext >&5
10077 rm -rf conftest*
10078 wx_cv_type_wchar_t=no
10079fi
10080rm -f conftest*
10081
10082fi
10083
10084echo "$ac_t""$wx_cv_type_wchar_t" 1>&6
10085if test "$wx_cv_type_wchar_t" = yes ; then
10086 cat >> confdefs.h <<\EOF
10087#define wxUSE_WCHAR_T 1
10088EOF
10089
10090fi
10091
10f2d63a 10092
b12915c1 10093echo $ac_n "checking for pw_gecos in struct passwd""... $ac_c" 1>&6
1216f52d 10094echo "configure:10095: checking for pw_gecos in struct passwd" >&5
b12915c1
VZ
10095if eval "test \"`echo '$''{'wx_cv_struct_pw_gecos'+set}'`\" = set"; then
10096 echo $ac_n "(cached) $ac_c" 1>&6
10097else
10098
10099 cat > conftest.$ac_ext <<EOF
1216f52d 10100#line 10101 "configure"
b12915c1
VZ
10101#include "confdefs.h"
10102#include <pwd.h>
10103int main() {
10104
10105 char *p;
10106 struct passwd *pw;
10107 p = pw->pw_gecos;
10108
10109; return 0; }
10110EOF
1216f52d 10111if { (eval echo configure:10112: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
b12915c1
VZ
10112 rm -rf conftest*
10113
10114 wx_cv_struct_pw_gecos=yes
b12915c1
VZ
10115
10116else
10117 echo "configure: failed program was:" >&5
10118 cat conftest.$ac_ext >&5
10119 rm -rf conftest*
10120
10121 wx_cv_struct_pw_gecos=no
10122
10123
10124fi
10125rm -f conftest*
10126
10127
10128fi
10129
10130echo "$ac_t""$wx_cv_struct_pw_gecos" 1>&6
10131
bd3277fe
VZ
10132if test "$wx_cv_struct_pw_gecos" = "yes"; then
10133 cat >> confdefs.h <<\EOF
10134#define HAVE_PW_GECOS 1
10135EOF
10136
10137fi
10138
10f2d63a
VZ
10139
10140echo $ac_n "checking for working const""... $ac_c" 1>&6
1216f52d 10141echo "configure:10142: checking for working const" >&5
10f2d63a
VZ
10142if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
10143 echo $ac_n "(cached) $ac_c" 1>&6
10144else
10145 cat > conftest.$ac_ext <<EOF
1216f52d 10146#line 10147 "configure"
10f2d63a
VZ
10147#include "confdefs.h"
10148
10149int main() {
10150
10151/* Ultrix mips cc rejects this. */
186837b0 10152typedef int charset[2]; const charset x;
10f2d63a
VZ
10153/* SunOS 4.1.1 cc rejects this. */
10154char const *const *ccp;
10155char **p;
10156/* NEC SVR4.0.2 mips cc rejects this. */
10157struct point {int x, y;};
10158static struct point const zero = {0,0};
10159/* AIX XL C 1.02.0.0 rejects this.
10160 It does not let you subtract one const X* pointer from another in an arm
10161 of an if-expression whose if-part is not a constant expression */
10162const char *g = "string";
10163ccp = &g + (g ? g-g : 0);
10164/* HPUX 7.0 cc rejects these. */
10165++ccp;
10166p = (char**) ccp;
10167ccp = (char const *const *) p;
10168{ /* SCO 3.2v4 cc rejects this. */
10169 char *t;
10170 char const *s = 0 ? (char *) 0 : (char const *) 0;
10171
10172 *t++ = 0;
10173}
10174{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
10175 int x[] = {25, 17};
10176 const int *foo = &x[0];
10177 ++foo;
10178}
10179{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
10180 typedef const int *iptr;
10181 iptr p = 0;
10182 ++p;
10183}
10184{ /* AIX XL C 1.02.0.0 rejects this saying
10185 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
10186 struct s { int j; const int *ap[3]; };
10187 struct s *b; b->j = 5;
10188}
10189{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
10190 const int foo = 10;
10191}
10192
10193; return 0; }
10194EOF
1216f52d 10195if { (eval echo configure:10196: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10f2d63a
VZ
10196 rm -rf conftest*
10197 ac_cv_c_const=yes
10198else
10199 echo "configure: failed program was:" >&5
10200 cat conftest.$ac_ext >&5
10201 rm -rf conftest*
10202 ac_cv_c_const=no
10203fi
10204rm -f conftest*
10205fi
10206
10207echo "$ac_t""$ac_cv_c_const" 1>&6
10208if test $ac_cv_c_const = no; then
10209 cat >> confdefs.h <<\EOF
10210#define const
10211EOF
10212
10213fi
10214
10215echo $ac_n "checking for inline""... $ac_c" 1>&6
1216f52d 10216echo "configure:10217: checking for inline" >&5
10f2d63a
VZ
10217if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
10218 echo $ac_n "(cached) $ac_c" 1>&6
10219else
10220 ac_cv_c_inline=no
10221for ac_kw in inline __inline__ __inline; do
10222 cat > conftest.$ac_ext <<EOF
1216f52d 10223#line 10224 "configure"
10f2d63a
VZ
10224#include "confdefs.h"
10225
10226int main() {
186837b0 10227} $ac_kw foo() {
10f2d63a
VZ
10228; return 0; }
10229EOF
1216f52d 10230if { (eval echo configure:10231: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10f2d63a
VZ
10231 rm -rf conftest*
10232 ac_cv_c_inline=$ac_kw; break
10233else
10234 echo "configure: failed program was:" >&5
10235 cat conftest.$ac_ext >&5
10236fi
10237rm -f conftest*
10238done
10239
10240fi
10241
10242echo "$ac_t""$ac_cv_c_inline" 1>&6
10243case "$ac_cv_c_inline" in
10244 inline | yes) ;;
10245 no) cat >> confdefs.h <<\EOF
10246#define inline
10247EOF
10248 ;;
10249 *) cat >> confdefs.h <<EOF
10250#define inline $ac_cv_c_inline
10251EOF
10252 ;;
10253esac
10254
10255
10256echo $ac_n "checking size of char""... $ac_c" 1>&6
1216f52d 10257echo "configure:10258: checking size of char" >&5
10f2d63a
VZ
10258if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then
10259 echo $ac_n "(cached) $ac_c" 1>&6
10260else
10261 if test "$cross_compiling" = yes; then
10262 ac_cv_sizeof_char=1
10263else
10264 cat > conftest.$ac_ext <<EOF
1216f52d 10265#line 10266 "configure"
10f2d63a
VZ
10266#include "confdefs.h"
10267#include <stdio.h>
10268main()
10269{
10270 FILE *f=fopen("conftestval", "w");
10271 if (!f) exit(1);
10272 fprintf(f, "%d\n", sizeof(char));
10273 exit(0);
10274}
10275EOF
1216f52d 10276if { (eval echo configure:10277: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10f2d63a
VZ
10277then
10278 ac_cv_sizeof_char=`cat conftestval`
10279else
10280 echo "configure: failed program was:" >&5
10281 cat conftest.$ac_ext >&5
10282 rm -fr conftest*
10283 ac_cv_sizeof_char=0
10284fi
10285rm -fr conftest*
10286fi
10287
10288fi
10289echo "$ac_t""$ac_cv_sizeof_char" 1>&6
10290cat >> confdefs.h <<EOF
10291#define SIZEOF_CHAR $ac_cv_sizeof_char
10292EOF
10293
10294
10295echo $ac_n "checking size of short""... $ac_c" 1>&6
1216f52d 10296echo "configure:10297: checking size of short" >&5
10f2d63a
VZ
10297if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
10298 echo $ac_n "(cached) $ac_c" 1>&6
10299else
10300 if test "$cross_compiling" = yes; then
10301 ac_cv_sizeof_short=2
10302else
10303 cat > conftest.$ac_ext <<EOF
1216f52d 10304#line 10305 "configure"
10f2d63a
VZ
10305#include "confdefs.h"
10306#include <stdio.h>
10307main()
10308{
10309 FILE *f=fopen("conftestval", "w");
10310 if (!f) exit(1);
10311 fprintf(f, "%d\n", sizeof(short));
10312 exit(0);
10313}
10314EOF
1216f52d 10315if { (eval echo configure:10316: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10f2d63a
VZ
10316then
10317 ac_cv_sizeof_short=`cat conftestval`
10318else
10319 echo "configure: failed program was:" >&5
10320 cat conftest.$ac_ext >&5
10321 rm -fr conftest*
10322 ac_cv_sizeof_short=0
10323fi
10324rm -fr conftest*
10325fi
10326
10327fi
10328echo "$ac_t""$ac_cv_sizeof_short" 1>&6
10329cat >> confdefs.h <<EOF
10330#define SIZEOF_SHORT $ac_cv_sizeof_short
10331EOF
10332
10333
10334echo $ac_n "checking size of int *""... $ac_c" 1>&6
1216f52d 10335echo "configure:10336: checking size of int *" >&5
10f2d63a
VZ
10336if eval "test \"`echo '$''{'ac_cv_sizeof_int_p'+set}'`\" = set"; then
10337 echo $ac_n "(cached) $ac_c" 1>&6
10338else
10339 if test "$cross_compiling" = yes; then
10340 ac_cv_sizeof_int_p=4
10341else
10342 cat > conftest.$ac_ext <<EOF
1216f52d 10343#line 10344 "configure"
10f2d63a
VZ
10344#include "confdefs.h"
10345#include <stdio.h>
10346main()
10347{
10348 FILE *f=fopen("conftestval", "w");
10349 if (!f) exit(1);
10350 fprintf(f, "%d\n", sizeof(int *));
10351 exit(0);
10352}
10353EOF
1216f52d 10354if { (eval echo configure:10355: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10f2d63a
VZ
10355then
10356 ac_cv_sizeof_int_p=`cat conftestval`
10357else
10358 echo "configure: failed program was:" >&5
10359 cat conftest.$ac_ext >&5
10360 rm -fr conftest*
10361 ac_cv_sizeof_int_p=0
10362fi
10363rm -fr conftest*
10364fi
10365
10366fi
10367echo "$ac_t""$ac_cv_sizeof_int_p" 1>&6
10368cat >> confdefs.h <<EOF
10369#define SIZEOF_INT_P $ac_cv_sizeof_int_p
10370EOF
10371
10372
10373echo $ac_n "checking size of int""... $ac_c" 1>&6
1216f52d 10374echo "configure:10375: checking size of int" >&5
10f2d63a
VZ
10375if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
10376 echo $ac_n "(cached) $ac_c" 1>&6
10377else
10378 if test "$cross_compiling" = yes; then
10379 ac_cv_sizeof_int=4
10380else
10381 cat > conftest.$ac_ext <<EOF
1216f52d 10382#line 10383 "configure"
10f2d63a
VZ
10383#include "confdefs.h"
10384#include <stdio.h>
10385main()
10386{
10387 FILE *f=fopen("conftestval", "w");
10388 if (!f) exit(1);
10389 fprintf(f, "%d\n", sizeof(int));
10390 exit(0);
10391}
10392EOF
1216f52d 10393if { (eval echo configure:10394: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10f2d63a
VZ
10394then
10395 ac_cv_sizeof_int=`cat conftestval`
10396else
10397 echo "configure: failed program was:" >&5
10398 cat conftest.$ac_ext >&5
10399 rm -fr conftest*
10400 ac_cv_sizeof_int=0
10401fi
10402rm -fr conftest*
10403fi
10404
10405fi
10406echo "$ac_t""$ac_cv_sizeof_int" 1>&6
10407cat >> confdefs.h <<EOF
10408#define SIZEOF_INT $ac_cv_sizeof_int
10409EOF
10410
10411
10412echo $ac_n "checking size of long""... $ac_c" 1>&6
1216f52d 10413echo "configure:10414: checking size of long" >&5
10f2d63a
VZ
10414if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
10415 echo $ac_n "(cached) $ac_c" 1>&6
10416else
10417 if test "$cross_compiling" = yes; then
10418 ac_cv_sizeof_long=4
10419else
10420 cat > conftest.$ac_ext <<EOF
1216f52d 10421#line 10422 "configure"
10f2d63a
VZ
10422#include "confdefs.h"
10423#include <stdio.h>
10424main()
10425{
10426 FILE *f=fopen("conftestval", "w");
10427 if (!f) exit(1);
10428 fprintf(f, "%d\n", sizeof(long));
10429 exit(0);
10430}
10431EOF
1216f52d 10432if { (eval echo configure:10433: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10f2d63a
VZ
10433then
10434 ac_cv_sizeof_long=`cat conftestval`
10435else
10436 echo "configure: failed program was:" >&5
10437 cat conftest.$ac_ext >&5
10438 rm -fr conftest*
10439 ac_cv_sizeof_long=0
10440fi
10441rm -fr conftest*
10442fi
10443
10444fi
10445echo "$ac_t""$ac_cv_sizeof_long" 1>&6
10446cat >> confdefs.h <<EOF
10447#define SIZEOF_LONG $ac_cv_sizeof_long
10448EOF
10449
10450
10451echo $ac_n "checking size of long long""... $ac_c" 1>&6
1216f52d 10452echo "configure:10453: checking size of long long" >&5
10f2d63a
VZ
10453if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
10454 echo $ac_n "(cached) $ac_c" 1>&6
10455else
10456 if test "$cross_compiling" = yes; then
10457 ac_cv_sizeof_long_long=0
10458else
10459 cat > conftest.$ac_ext <<EOF
1216f52d 10460#line 10461 "configure"
10f2d63a
VZ
10461#include "confdefs.h"
10462#include <stdio.h>
10463main()
10464{
10465 FILE *f=fopen("conftestval", "w");
10466 if (!f) exit(1);
10467 fprintf(f, "%d\n", sizeof(long long));
10468 exit(0);
10469}
10470EOF
1216f52d 10471if { (eval echo configure:10472: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10f2d63a
VZ
10472then
10473 ac_cv_sizeof_long_long=`cat conftestval`
10474else
10475 echo "configure: failed program was:" >&5
10476 cat conftest.$ac_ext >&5
10477 rm -fr conftest*
10478 ac_cv_sizeof_long_long=0
10479fi
10480rm -fr conftest*
10481fi
10482
10483fi
10484echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
10485cat >> confdefs.h <<EOF
10486#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
10487EOF
10488
10489
10490
b93d0d08 10491echo $ac_n "checking size of wchar_t""... $ac_c" 1>&6
1216f52d 10492echo "configure:10493: checking size of wchar_t" >&5
b93d0d08
VS
10493if eval "test \"`echo '$''{'wx_cv_sizeof_wchar_t'+set}'`\" = set"; then
10494 echo $ac_n "(cached) $ac_c" 1>&6
10495else
10496
10497 if test "$cross_compiling" = yes; then
10498 wx_cv_sizeof_wchar_t=4
10499
10500else
10501 cat > conftest.$ac_ext <<EOF
1216f52d 10502#line 10503 "configure"
b93d0d08
VS
10503#include "confdefs.h"
10504
10505 #include <wchar.h>
10506 #include <stdio.h>
10507 int main()
10508 {
10509 FILE *f=fopen("conftestval", "w");
10510 if (!f) exit(1);
10511 fprintf(f, "%i", sizeof(wchar_t));
10512 exit(0);
10513 }
10514
10515EOF
1216f52d 10516if { (eval echo configure:10517: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
b93d0d08
VS
10517then
10518 wx_cv_sizeof_wchar_t=`cat conftestval`
10519else
10520 echo "configure: failed program was:" >&5
10521 cat conftest.$ac_ext >&5
10522 rm -fr conftest*
10523 wx_cv_sizeof_wchar_t=0
10524fi
10525rm -fr conftest*
10526fi
10527
10528
10529fi
10530
10531echo "$ac_t""$wx_cv_sizeof_wchar_t" 1>&6
10532
10533cat >> confdefs.h <<EOF
28c6addc 10534#define SIZEOF_WCHAR_T $wx_cv_sizeof_wchar_t
b93d0d08
VS
10535EOF
10536
10537
10538
10f2d63a 10539echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
1216f52d 10540echo "configure:10541: checking whether byte ordering is bigendian" >&5
10f2d63a
VZ
10541if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
10542 echo $ac_n "(cached) $ac_c" 1>&6
10543else
10544 ac_cv_c_bigendian=unknown
10545# See if sys/param.h defines the BYTE_ORDER macro.
10546cat > conftest.$ac_ext <<EOF
1216f52d 10547#line 10548 "configure"
10f2d63a
VZ
10548#include "confdefs.h"
10549#include <sys/types.h>
10550#include <sys/param.h>
10551int main() {
10552
10553#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
10554 bogus endian macros
10555#endif
10556; return 0; }
10557EOF
1216f52d 10558if { (eval echo configure:10559: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10f2d63a
VZ
10559 rm -rf conftest*
10560 # It does; now see whether it defined to BIG_ENDIAN or not.
10561cat > conftest.$ac_ext <<EOF
1216f52d 10562#line 10563 "configure"
10f2d63a
VZ
10563#include "confdefs.h"
10564#include <sys/types.h>
10565#include <sys/param.h>
10566int main() {
10567
10568#if BYTE_ORDER != BIG_ENDIAN
10569 not big endian
10570#endif
10571; return 0; }
10572EOF
1216f52d 10573if { (eval echo configure:10574: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10f2d63a
VZ
10574 rm -rf conftest*
10575 ac_cv_c_bigendian=yes
10576else
10577 echo "configure: failed program was:" >&5
10578 cat conftest.$ac_ext >&5
10579 rm -rf conftest*
10580 ac_cv_c_bigendian=no
10581fi
10582rm -f conftest*
10583else
10584 echo "configure: failed program was:" >&5
10585 cat conftest.$ac_ext >&5
10586fi
10587rm -f conftest*
10588if test $ac_cv_c_bigendian = unknown; then
10589if test "$cross_compiling" = yes; then
10590 ac_cv_c_bigendian=unknown
10591else
10592 cat > conftest.$ac_ext <<EOF
1216f52d 10593#line 10594 "configure"
10f2d63a
VZ
10594#include "confdefs.h"
10595main () {
10596 /* Are we little or big endian? From Harbison&Steele. */
10597 union
10598 {
10599 long l;
10600 char c[sizeof (long)];
10601 } u;
10602 u.l = 1;
10603 exit (u.c[sizeof (long) - 1] == 1);
10604}
10605EOF
1216f52d 10606if { (eval echo configure:10607: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10f2d63a
VZ
10607then
10608 ac_cv_c_bigendian=no
10609else
10610 echo "configure: failed program was:" >&5
10611 cat conftest.$ac_ext >&5
10612 rm -fr conftest*
10613 ac_cv_c_bigendian=yes
10614fi
10615rm -fr conftest*
10616fi
10617
10618fi
10619fi
10620
10621echo "$ac_t""$ac_cv_c_bigendian" 1>&6
10622if test $ac_cv_c_bigendian = unknown; then
10623 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
10624fi
10625if test $ac_cv_c_bigendian = yes; then
10626 cat >> confdefs.h <<\EOF
10627#define WORDS_BIGENDIAN 1
10628EOF
10629
10630fi
10631
10632
10633
10634 if test "$cross_compiling" = "yes"; then
10635 cat >> confdefs.h <<\EOF
10636#define wxUSE_IOSTREAMH 1
10637EOF
10638
10639 else
10640
10641 ac_ext=C
10642# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10643ac_cpp='$CXXCPP $CPPFLAGS'
10644ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10645ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10646cross_compiling=$ac_cv_prog_cxx_cross
10647
10648
10649 for ac_hdr in iostream
10650do
10651ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10652echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1216f52d 10653echo "configure:10654: checking for $ac_hdr" >&5
10f2d63a
VZ
10654if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10655 echo $ac_n "(cached) $ac_c" 1>&6
10656else
10657 cat > conftest.$ac_ext <<EOF
1216f52d 10658#line 10659 "configure"
10f2d63a
VZ
10659#include "confdefs.h"
10660#include <$ac_hdr>
10661EOF
10662ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1216f52d 10663{ (eval echo configure:10664: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
10664ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10665if test -z "$ac_err"; then
10666 rm -rf conftest*
10667 eval "ac_cv_header_$ac_safe=yes"
10668else
10669 echo "$ac_err" >&5
10670 echo "configure: failed program was:" >&5
10671 cat conftest.$ac_ext >&5
10672 rm -rf conftest*
10673 eval "ac_cv_header_$ac_safe=no"
10674fi
10675rm -f conftest*
10676fi
10677if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10678 echo "$ac_t""yes" 1>&6
10679 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10680 cat >> confdefs.h <<EOF
10681#define $ac_tr_hdr 1
10682EOF
10683
10684else
10685 echo "$ac_t""no" 1>&6
10686fi
10687done
10688
10689
10690 if test "x$HAVE_IOSTREAM" = x ; then
10691 cat >> confdefs.h <<\EOF
10692#define wxUSE_IOSTREAMH 1
10693EOF
10694
10695 else
10696 :
10697 fi
10698
10699 ac_ext=c
10700# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10701ac_cpp='$CPP $CPPFLAGS'
10702ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10703ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10704cross_compiling=$ac_cv_prog_cc_cross
10705
10706 fi
10707
10708
10709
10710 echo $ac_n "checking if C++ compiler supports bool""... $ac_c" 1>&6
1216f52d 10711echo "configure:10712: checking if C++ compiler supports bool" >&5
10f2d63a
VZ
10712if eval "test \"`echo '$''{'wx_cv_cpp_bool'+set}'`\" = set"; then
10713 echo $ac_n "(cached) $ac_c" 1>&6
10714else
10715
10716
10717 ac_ext=C
10718# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10719ac_cpp='$CXXCPP $CPPFLAGS'
10720ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10721ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10722cross_compiling=$ac_cv_prog_cxx_cross
10723
10724
10725 cat > conftest.$ac_ext <<EOF
1216f52d 10726#line 10727 "configure"
10f2d63a
VZ
10727#include "confdefs.h"
10728
10729
10730int main() {
10731
10732 bool b = true;
10733
10734 return 0;
10735
10736; return 0; }
10737EOF
1216f52d 10738if { (eval echo configure:10739: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10f2d63a
VZ
10739 rm -rf conftest*
10740
10741 cat >> confdefs.h <<\EOF
10742#define HAVE_BOOL 1
10743EOF
10744
10745 wx_cv_cpp_bool=yes
10746
10747else
10748 echo "configure: failed program was:" >&5
10749 cat conftest.$ac_ext >&5
10750 rm -rf conftest*
10751
10752 wx_cv_cpp_bool=no
10753
10754
10755fi
10756rm -f conftest*
10757
10758 ac_ext=c
10759# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10760ac_cpp='$CPP $CPPFLAGS'
10761ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10762ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10763cross_compiling=$ac_cv_prog_cc_cross
10764
10765
10766fi
10767
10768echo "$ac_t""$wx_cv_cpp_bool" 1>&6
10769
10770 if test "$wx_cv_cpp_bool" = "yes"; then
10771 cat >> confdefs.h <<\EOF
10772#define HAVE_BOOL 1
10773EOF
10774
10775 fi
10776
10777
10778
10f2d63a 10779echo $ac_n "checking if you need GNU extensions""... $ac_c" 1>&6
1216f52d 10780echo "configure:10781: checking if you need GNU extensions" >&5
10f2d63a
VZ
10781if eval "test \"`echo '$''{'wx_cv_gnu_extensions'+set}'`\" = set"; then
10782 echo $ac_n "(cached) $ac_c" 1>&6
10783else
10784
10785 cat > conftest.$ac_ext <<EOF
1216f52d 10786#line 10787 "configure"
10f2d63a
VZ
10787#include "confdefs.h"
10788#include <features.h>
10789int main() {
10790
10791
10792#ifndef __GNU_LIBRARY__
10793 Compile error wanted
10794#endif
10795
10796
10797; return 0; }
10798EOF
1216f52d 10799if { (eval echo configure:10800: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10f2d63a
VZ
10800 rm -rf conftest*
10801 wx_cv_gnu_extensions=yes
10802else
10803 echo "configure: failed program was:" >&5
10804 cat conftest.$ac_ext >&5
10805 rm -rf conftest*
10806 wx_cv_gnu_extensions=no
10807fi
10808rm -f conftest*
10809
10810fi
10811
10812
10813echo "$ac_t""$wx_cv_gnu_extensions" 1>&6
10814if test "$wx_cv_gnu_extensions" = "yes"; then
10815 cat >> confdefs.h <<EOF
10816#define _GNU_SOURCE 1
10817EOF
10818
10819fi
10820
10821
10822
10823echo $ac_n "checking for wcslen in -lc""... $ac_c" 1>&6
1216f52d 10824echo "configure:10825: checking for wcslen in -lc" >&5
10f2d63a
VZ
10825ac_lib_var=`echo c'_'wcslen | sed 'y%./+-%__p_%'`
10826if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10827 echo $ac_n "(cached) $ac_c" 1>&6
10828else
10829 ac_save_LIBS="$LIBS"
10830LIBS="-lc $LIBS"
10831cat > conftest.$ac_ext <<EOF
1216f52d 10832#line 10833 "configure"
10f2d63a
VZ
10833#include "confdefs.h"
10834/* Override any gcc2 internal prototype to avoid an error. */
10835/* We use char because int might match the return type of a gcc2
10836 builtin and then its argument prototype would still apply. */
10837char wcslen();
10838
10839int main() {
10840wcslen()
10841; return 0; }
10842EOF
1216f52d 10843if { (eval echo configure:10844: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
10844 rm -rf conftest*
10845 eval "ac_cv_lib_$ac_lib_var=yes"
10846else
10847 echo "configure: failed program was:" >&5
10848 cat conftest.$ac_ext >&5
10849 rm -rf conftest*
10850 eval "ac_cv_lib_$ac_lib_var=no"
10851fi
10852rm -f conftest*
10853LIBS="$ac_save_LIBS"
10854
10855fi
10856if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10857 echo "$ac_t""yes" 1>&6
10858
10859 cat >> confdefs.h <<\EOF
10860#define HAVE_WCSLEN 1
10861EOF
10862
10863 WCHAR_LINK=""
10864
10865else
10866 echo "$ac_t""no" 1>&6
10867
10868 echo $ac_n "checking for wcslen in -lw""... $ac_c" 1>&6
1216f52d 10869echo "configure:10870: checking for wcslen in -lw" >&5
10f2d63a
VZ
10870ac_lib_var=`echo w'_'wcslen | sed 'y%./+-%__p_%'`
10871if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10872 echo $ac_n "(cached) $ac_c" 1>&6
10873else
10874 ac_save_LIBS="$LIBS"
10875LIBS="-lw $LIBS"
10876cat > conftest.$ac_ext <<EOF
1216f52d 10877#line 10878 "configure"
10f2d63a
VZ
10878#include "confdefs.h"
10879/* Override any gcc2 internal prototype to avoid an error. */
10880/* We use char because int might match the return type of a gcc2
10881 builtin and then its argument prototype would still apply. */
10882char wcslen();
10883
10884int main() {
10885wcslen()
10886; return 0; }
10887EOF
1216f52d 10888if { (eval echo configure:10889: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
10889 rm -rf conftest*
10890 eval "ac_cv_lib_$ac_lib_var=yes"
10891else
10892 echo "configure: failed program was:" >&5
10893 cat conftest.$ac_ext >&5
10894 rm -rf conftest*
10895 eval "ac_cv_lib_$ac_lib_var=no"
10896fi
10897rm -f conftest*
10898LIBS="$ac_save_LIBS"
10899
10900fi
10901if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10902 echo "$ac_t""yes" 1>&6
10903
10904 cat >> confdefs.h <<\EOF
10905#define HAVE_WCSLEN 1
10906EOF
10907
10908 WCHAR_LINK="-lw"
10909
10910else
10911 echo "$ac_t""no" 1>&6
10912fi
10913
10914
10915fi
10916
10917
10918echo $ac_n "checking for vprintf""... $ac_c" 1>&6
1216f52d 10919echo "configure:10920: checking for vprintf" >&5
10f2d63a
VZ
10920if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
10921 echo $ac_n "(cached) $ac_c" 1>&6
10922else
10923 cat > conftest.$ac_ext <<EOF
1216f52d 10924#line 10925 "configure"
10f2d63a
VZ
10925#include "confdefs.h"
10926/* System header to define __stub macros and hopefully few prototypes,
10927 which can conflict with char vprintf(); below. */
10928#include <assert.h>
10929/* Override any gcc2 internal prototype to avoid an error. */
10930/* We use char because int might match the return type of a gcc2
10931 builtin and then its argument prototype would still apply. */
10932char vprintf();
10933
10934int main() {
10935
10936/* The GNU C library defines this for functions which it implements
10937 to always fail with ENOSYS. Some functions are actually named
10938 something starting with __ and the normal name is an alias. */
10939#if defined (__stub_vprintf) || defined (__stub___vprintf)
10940choke me
10941#else
e8482f24 10942vprintf();
10f2d63a
VZ
10943#endif
10944
10945; return 0; }
10946EOF
1216f52d 10947if { (eval echo configure:10948: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
10948 rm -rf conftest*
10949 eval "ac_cv_func_vprintf=yes"
10950else
10951 echo "configure: failed program was:" >&5
10952 cat conftest.$ac_ext >&5
10953 rm -rf conftest*
10954 eval "ac_cv_func_vprintf=no"
10955fi
10956rm -f conftest*
10957fi
10958
10959if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
10960 echo "$ac_t""yes" 1>&6
10961 cat >> confdefs.h <<\EOF
10962#define HAVE_VPRINTF 1
10963EOF
10964
10965else
10966 echo "$ac_t""no" 1>&6
10967fi
10968
10969if test "$ac_cv_func_vprintf" != yes; then
10970echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
1216f52d 10971echo "configure:10972: checking for _doprnt" >&5
10f2d63a
VZ
10972if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
10973 echo $ac_n "(cached) $ac_c" 1>&6
10974else
10975 cat > conftest.$ac_ext <<EOF
1216f52d 10976#line 10977 "configure"
10f2d63a
VZ
10977#include "confdefs.h"
10978/* System header to define __stub macros and hopefully few prototypes,
10979 which can conflict with char _doprnt(); below. */
10980#include <assert.h>
10981/* Override any gcc2 internal prototype to avoid an error. */
10982/* We use char because int might match the return type of a gcc2
10983 builtin and then its argument prototype would still apply. */
10984char _doprnt();
10985
10986int main() {
10987
10988/* The GNU C library defines this for functions which it implements
10989 to always fail with ENOSYS. Some functions are actually named
10990 something starting with __ and the normal name is an alias. */
10991#if defined (__stub__doprnt) || defined (__stub____doprnt)
10992choke me
10993#else
e8482f24 10994_doprnt();
10f2d63a
VZ
10995#endif
10996
10997; return 0; }
10998EOF
1216f52d 10999if { (eval echo configure:11000: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
11000 rm -rf conftest*
11001 eval "ac_cv_func__doprnt=yes"
11002else
11003 echo "configure: failed program was:" >&5
11004 cat conftest.$ac_ext >&5
11005 rm -rf conftest*
11006 eval "ac_cv_func__doprnt=no"
11007fi
11008rm -f conftest*
11009fi
11010
11011if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
11012 echo "$ac_t""yes" 1>&6
11013 cat >> confdefs.h <<\EOF
11014#define HAVE_DOPRNT 1
11015EOF
11016
11017else
11018 echo "$ac_t""no" 1>&6
11019fi
11020
11021fi
11022
11023
10f2d63a 11024
f6bcfd97
BP
11025
11026
c521c494 11027
9d8deca0 11028
f6bcfd97 11029echo $ac_n "checking for vsnprintf""... $ac_c" 1>&6
1216f52d 11030echo "configure:11031: checking for vsnprintf" >&5
f6bcfd97
BP
11031if eval "test \"`echo '$''{'wx_cv_func_vsnprintf'+set}'`\" = set"; then
11032 echo $ac_n "(cached) $ac_c" 1>&6
11033else
11034
11035 cat > conftest.$ac_ext <<EOF
1216f52d 11036#line 11037 "configure"
f6bcfd97
BP
11037#include "confdefs.h"
11038
11039 #include <stdio.h>
11040 #include <stdarg.h>
11041
10f2d63a
VZ
11042int main() {
11043
f6bcfd97 11044 int wx_test_vsnprintf(const char *, ...);
10f2d63a 11045
f6bcfd97
BP
11046 wx_test_vsnprintf("%s");
11047 return 0;
11048 }
11049
11050 int wx_test_vsnprintf(const char *fmt, ...)
11051 {
11052 char *s;
11053
11054 va_list argp;
11055 va_start(argp, fmt);
11056 vsnprintf(s, 42, fmt, argp);
11057 va_end(argp);
11058
10f2d63a
VZ
11059; return 0; }
11060EOF
1216f52d 11061if { (eval echo configure:11062: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10f2d63a 11062 rm -rf conftest*
f6bcfd97 11063
f6bcfd97
BP
11064 wx_cv_func_vsnprintf=yes
11065
10f2d63a
VZ
11066else
11067 echo "configure: failed program was:" >&5
11068 cat conftest.$ac_ext >&5
11069 rm -rf conftest*
f6bcfd97 11070
c521c494 11071 cat > conftest.$ac_ext <<EOF
1216f52d 11072#line 11073 "configure"
c521c494
RL
11073#include "confdefs.h"
11074
11075 #include <stdio.h>
11076 #include <stdarg.h>
11077
11078int main() {
11079
11080 int wx_test_vsnprintf(const char *, ...);
11081
11082 wx_test_vsnprintf("%s");
11083 return 0;
11084 }
11085
11086 int wx_test_vsnprintf(const char *fmt, ...)
11087 {
11088 char *s;
11089
11090 va_list argp;
11091 va_start(argp, fmt);
11092 _vsnprintf(s, 42, fmt, argp);
11093 va_end(argp);
11094
11095; return 0; }
11096EOF
1216f52d 11097if { (eval echo configure:11098: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
c521c494
RL
11098 rm -rf conftest*
11099
c521c494
RL
11100 wx_cv_func_vsnprintf=yes
11101
11102else
11103 echo "configure: failed program was:" >&5
11104 cat conftest.$ac_ext >&5
11105 rm -rf conftest*
11106
c521c494
RL
11107 wx_cv_func_vsnprintf=no
11108
11109fi
11110rm -f conftest*
f6bcfd97 11111
10f2d63a
VZ
11112fi
11113rm -f conftest*
10f2d63a 11114
10f2d63a 11115fi
10f2d63a 11116
f6bcfd97 11117echo "$ac_t""$wx_cv_func_vsnprintf" 1>&6
10f2d63a 11118
9d8deca0
VZ
11119if test "$wx_cv_func_vsnprintf" = yes; then
11120 cat >> confdefs.h <<\EOF
11121#define HAVE_VSNPRINTF 1
11122EOF
11123
11124else
11125 echo "configure: warning: unsafe function sprintf will be used instead of snprintf" 1>&2
11126fi
11127
10f2d63a 11128echo $ac_n "checking for vsscanf""... $ac_c" 1>&6
1216f52d 11129echo "configure:11130: checking for vsscanf" >&5
10f2d63a
VZ
11130if eval "test \"`echo '$''{'wx_cv_func_vsscanf'+set}'`\" = set"; then
11131 echo $ac_n "(cached) $ac_c" 1>&6
11132else
11133
10f2d63a 11134 cat > conftest.$ac_ext <<EOF
1216f52d 11135#line 11136 "configure"
10f2d63a 11136#include "confdefs.h"
10f2d63a 11137
f6bcfd97
BP
11138 #include <stdio.h>
11139 #include <stdarg.h>
11140
11141int main() {
10f2d63a 11142
f6bcfd97 11143 int wx_test_vsscanf(const char *, ...);
10f2d63a 11144
f6bcfd97
BP
11145 wx_test_vsscanf("%d");
11146 return 0;
10f2d63a
VZ
11147 }
11148
f6bcfd97 11149 int wx_test_vsscanf(const char *fmt, ...)
10f2d63a 11150 {
f6bcfd97
BP
11151 va_list argp;
11152 va_start(argp, fmt);
11153 vsscanf("42", fmt, argp);
11154 va_end(argp);
11155
11156; return 0; }
10f2d63a 11157EOF
1216f52d 11158if { (eval echo configure:11159: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
f6bcfd97 11159 rm -rf conftest*
10f2d63a 11160
f6bcfd97
BP
11161 wx_cv_func_vsscanf=yes
11162
10f2d63a
VZ
11163else
11164 echo "configure: failed program was:" >&5
11165 cat conftest.$ac_ext >&5
f6bcfd97
BP
11166 rm -rf conftest*
11167
11168 wx_cv_func_vsscanf=no
11169
10f2d63a 11170fi
f6bcfd97 11171rm -f conftest*
10f2d63a
VZ
11172
11173fi
11174
11175echo "$ac_t""$wx_cv_func_vsscanf" 1>&6
11176
9d8deca0
VZ
11177if test "$wx_cv_func_vsscanf" = yes; then
11178 cat >> confdefs.h <<\EOF
11179#define HAVE_VSSCANF 1
11180EOF
11181
11182fi
11183
95c8801c
VS
11184
11185
11186if test "$TOOLKIT" != "MSW"; then
11187
11188
11189
11190ac_ext=C
11191# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11192ac_cpp='$CXXCPP $CPPFLAGS'
11193ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11194ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11195cross_compiling=$ac_cv_prog_cxx_cross
11196
11197echo $ac_n "checking if iconv() takes char**""... $ac_c" 1>&6
1216f52d 11198echo "configure:11199: checking if iconv() takes char**" >&5
95c8801c
VS
11199if eval "test \"`echo '$''{'wx_cv_iconv_takes_char'+set}'`\" = set"; then
11200 echo $ac_n "(cached) $ac_c" 1>&6
11201else
11202
11203 cat > conftest.$ac_ext <<EOF
1216f52d 11204#line 11205 "configure"
95c8801c
VS
11205#include "confdefs.h"
11206#include <iconv.h>
11207int main() {
11208
11209 char **inbuf, **outbuf;
11210 iconv_t cd;
11211 size_t insz, outsz;
11212 iconv(cd, inbuf, &insz, outbuf, &outsz);
11213
11214; return 0; }
11215EOF
1216f52d 11216if { (eval echo configure:11217: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
95c8801c
VS
11217 rm -rf conftest*
11218 wx_cv_iconv_takes_char=yes
11219else
11220 echo "configure: failed program was:" >&5
11221 cat conftest.$ac_ext >&5
11222 rm -rf conftest*
11223 wx_cv_iconv_takes_char=no
11224fi
11225rm -f conftest*
11226
11227fi
11228
11229echo "$ac_t""$wx_cv_iconv_takes_char" 1>&6
10f2d63a
VZ
11230ac_ext=c
11231# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11232ac_cpp='$CPP $CPPFLAGS'
11233ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11234ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11235cross_compiling=$ac_cv_prog_cc_cross
11236
95c8801c
VS
11237if test "$wx_cv_iconv_takes_char" = yes ; then
11238 cat >> confdefs.h <<\EOF
11239#define WX_ICONV_TAKES_CHAR 1
11240EOF
11241
11242fi
10f2d63a 11243
10f2d63a 11244
eb4efbdc
VZ
11245if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
11246 for ac_func in sigaction
11247do
11248echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1216f52d 11249echo "configure:11250: checking for $ac_func" >&5
eb4efbdc
VZ
11250if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11251 echo $ac_n "(cached) $ac_c" 1>&6
11252else
11253 cat > conftest.$ac_ext <<EOF
1216f52d 11254#line 11255 "configure"
eb4efbdc
VZ
11255#include "confdefs.h"
11256/* System header to define __stub macros and hopefully few prototypes,
11257 which can conflict with char $ac_func(); below. */
11258#include <assert.h>
11259/* Override any gcc2 internal prototype to avoid an error. */
11260/* We use char because int might match the return type of a gcc2
11261 builtin and then its argument prototype would still apply. */
11262char $ac_func();
11263
11264int main() {
11265
11266/* The GNU C library defines this for functions which it implements
11267 to always fail with ENOSYS. Some functions are actually named
11268 something starting with __ and the normal name is an alias. */
11269#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11270choke me
11271#else
11272$ac_func();
11273#endif
11274
11275; return 0; }
11276EOF
1216f52d 11277if { (eval echo configure:11278: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
eb4efbdc
VZ
11278 rm -rf conftest*
11279 eval "ac_cv_func_$ac_func=yes"
11280else
11281 echo "configure: failed program was:" >&5
11282 cat conftest.$ac_ext >&5
11283 rm -rf conftest*
11284 eval "ac_cv_func_$ac_func=no"
11285fi
11286rm -f conftest*
11287fi
11288
11289if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11290 echo "$ac_t""yes" 1>&6
11291 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11292 cat >> confdefs.h <<EOF
11293#define $ac_tr_func 1
11294EOF
11295
11296else
11297 echo "$ac_t""no" 1>&6
11298fi
11299done
11300
11301
11302 if test "$ac_cv_func_sigaction" = "no"; then
11303 echo "configure: warning: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" 1>&2
11304 wxUSE_ON_FATAL_EXCEPTION=no
11305 fi
f6bcfd97
BP
11306
11307 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
11308
11309 ac_ext=C
11310# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11311ac_cpp='$CXXCPP $CPPFLAGS'
11312ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11313ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11314cross_compiling=$ac_cv_prog_cxx_cross
11315
11316
11317 echo $ac_n "checking for sa_handler type""... $ac_c" 1>&6
1216f52d 11318echo "configure:11319: checking for sa_handler type" >&5
f6bcfd97
BP
11319if eval "test \"`echo '$''{'wx_cv_type_sa_handler'+set}'`\" = set"; then
11320 echo $ac_n "(cached) $ac_c" 1>&6
11321else
11322
11323 cat > conftest.$ac_ext <<EOF
1216f52d 11324#line 11325 "configure"
f6bcfd97
BP
11325#include "confdefs.h"
11326#include <signal.h>
11327int main() {
11328
11329 extern void testSigHandler(int);
11330
11331 struct sigaction sa;
11332 sa.sa_handler = testSigHandler;
11333
11334; return 0; }
11335EOF
1216f52d 11336if { (eval echo configure:11337: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
f6bcfd97
BP
11337 rm -rf conftest*
11338
11339 wx_cv_type_sa_handler=int
11340
11341else
11342 echo "configure: failed program was:" >&5
11343 cat conftest.$ac_ext >&5
11344 rm -rf conftest*
11345
11346 wx_cv_type_sa_handler=void
11347
11348fi
11349rm -f conftest*
11350
11351fi
11352
11353echo "$ac_t""$wx_cv_type_sa_handler" 1>&6
11354
11355 ac_ext=c
11356# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11357ac_cpp='$CPP $CPPFLAGS'
11358ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11359ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11360cross_compiling=$ac_cv_prog_cc_cross
11361
11362
11363 cat >> confdefs.h <<EOF
11364#define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
11365EOF
11366
11367 fi
eb4efbdc
VZ
11368fi
11369
10f2d63a
VZ
11370for ac_func in vfork
11371do
11372echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1216f52d 11373echo "configure:11374: checking for $ac_func" >&5
10f2d63a
VZ
11374if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11375 echo $ac_n "(cached) $ac_c" 1>&6
11376else
11377 cat > conftest.$ac_ext <<EOF
1216f52d 11378#line 11379 "configure"
10f2d63a
VZ
11379#include "confdefs.h"
11380/* System header to define __stub macros and hopefully few prototypes,
11381 which can conflict with char $ac_func(); below. */
11382#include <assert.h>
11383/* Override any gcc2 internal prototype to avoid an error. */
11384/* We use char because int might match the return type of a gcc2
11385 builtin and then its argument prototype would still apply. */
11386char $ac_func();
11387
11388int main() {
11389
11390/* The GNU C library defines this for functions which it implements
11391 to always fail with ENOSYS. Some functions are actually named
11392 something starting with __ and the normal name is an alias. */
11393#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11394choke me
11395#else
e8482f24 11396$ac_func();
10f2d63a
VZ
11397#endif
11398
11399; return 0; }
11400EOF
1216f52d 11401if { (eval echo configure:11402: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
270a909e
VZ
11402 rm -rf conftest*
11403 eval "ac_cv_func_$ac_func=yes"
11404else
11405 echo "configure: failed program was:" >&5
11406 cat conftest.$ac_ext >&5
11407 rm -rf conftest*
11408 eval "ac_cv_func_$ac_func=no"
11409fi
11410rm -f conftest*
11411fi
11412
11413if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11414 echo "$ac_t""yes" 1>&6
11415 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11416 cat >> confdefs.h <<EOF
11417#define $ac_tr_func 1
11418EOF
11419
11420else
11421 echo "$ac_t""no" 1>&6
11422fi
11423done
11424
11425
11426for ac_func in timegm
11427do
11428echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1216f52d 11429echo "configure:11430: checking for $ac_func" >&5
270a909e
VZ
11430if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11431 echo $ac_n "(cached) $ac_c" 1>&6
11432else
11433 cat > conftest.$ac_ext <<EOF
1216f52d 11434#line 11435 "configure"
270a909e
VZ
11435#include "confdefs.h"
11436/* System header to define __stub macros and hopefully few prototypes,
11437 which can conflict with char $ac_func(); below. */
11438#include <assert.h>
11439/* Override any gcc2 internal prototype to avoid an error. */
11440/* We use char because int might match the return type of a gcc2
11441 builtin and then its argument prototype would still apply. */
11442char $ac_func();
11443
11444int main() {
11445
11446/* The GNU C library defines this for functions which it implements
11447 to always fail with ENOSYS. Some functions are actually named
11448 something starting with __ and the normal name is an alias. */
11449#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11450choke me
11451#else
e8482f24 11452$ac_func();
270a909e
VZ
11453#endif
11454
11455; return 0; }
11456EOF
1216f52d 11457if { (eval echo configure:11458: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
11458 rm -rf conftest*
11459 eval "ac_cv_func_$ac_func=yes"
11460else
11461 echo "configure: failed program was:" >&5
11462 cat conftest.$ac_ext >&5
11463 rm -rf conftest*
11464 eval "ac_cv_func_$ac_func=no"
11465fi
11466rm -f conftest*
11467fi
11468
11469if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11470 echo "$ac_t""yes" 1>&6
11471 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11472 cat >> confdefs.h <<EOF
11473#define $ac_tr_func 1
11474EOF
11475
11476else
11477 echo "$ac_t""no" 1>&6
11478fi
11479done
11480
11481
8fd0d89b
VZ
11482for ac_func in putenv setenv
11483do
11484echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1216f52d 11485echo "configure:11486: checking for $ac_func" >&5
8fd0d89b
VZ
11486if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11487 echo $ac_n "(cached) $ac_c" 1>&6
11488else
11489 cat > conftest.$ac_ext <<EOF
1216f52d 11490#line 11491 "configure"
8fd0d89b
VZ
11491#include "confdefs.h"
11492/* System header to define __stub macros and hopefully few prototypes,
11493 which can conflict with char $ac_func(); below. */
11494#include <assert.h>
11495/* Override any gcc2 internal prototype to avoid an error. */
11496/* We use char because int might match the return type of a gcc2
11497 builtin and then its argument prototype would still apply. */
11498char $ac_func();
11499
11500int main() {
11501
11502/* The GNU C library defines this for functions which it implements
11503 to always fail with ENOSYS. Some functions are actually named
11504 something starting with __ and the normal name is an alias. */
11505#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11506choke me
11507#else
11508$ac_func();
11509#endif
11510
11511; return 0; }
11512EOF
1216f52d 11513if { (eval echo configure:11514: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8fd0d89b
VZ
11514 rm -rf conftest*
11515 eval "ac_cv_func_$ac_func=yes"
11516else
11517 echo "configure: failed program was:" >&5
11518 cat conftest.$ac_ext >&5
11519 rm -rf conftest*
11520 eval "ac_cv_func_$ac_func=no"
11521fi
11522rm -f conftest*
11523fi
11524
11525if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11526 echo "$ac_t""yes" 1>&6
11527 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11528 cat >> confdefs.h <<EOF
11529#define $ac_tr_func 1
11530EOF
11531 break
11532else
11533 echo "$ac_t""no" 1>&6
11534fi
11535done
11536
11537
b12915c1
VZ
11538HAVE_SOME_SLEEP_FUNC=0
11539if test "$USE_BEOS" = 1; then
11540 cat >> confdefs.h <<\EOF
11541#define HAVE_SLEEP 1
11542EOF
11543
11544 HAVE_SOME_SLEEP_FUNC=1
11545fi
11546
b4085ce6
GD
11547if test "$USE_MAC" = 1; then
11548 cat >> confdefs.h <<\EOF
11549#define HAVE_USLEEP 1
11550EOF
11551
11552 HAVE_SOME_SLEEP_FUNC=1
11553fi
11554
b12915c1
VZ
11555if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
11556 POSIX4_LINK=
11557 for ac_func in nanosleep
10f2d63a
VZ
11558do
11559echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1216f52d 11560echo "configure:11561: checking for $ac_func" >&5
10f2d63a
VZ
11561if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11562 echo $ac_n "(cached) $ac_c" 1>&6
11563else
11564 cat > conftest.$ac_ext <<EOF
1216f52d 11565#line 11566 "configure"
10f2d63a
VZ
11566#include "confdefs.h"
11567/* System header to define __stub macros and hopefully few prototypes,
11568 which can conflict with char $ac_func(); below. */
11569#include <assert.h>
11570/* Override any gcc2 internal prototype to avoid an error. */
11571/* We use char because int might match the return type of a gcc2
11572 builtin and then its argument prototype would still apply. */
11573char $ac_func();
11574
11575int main() {
11576
11577/* The GNU C library defines this for functions which it implements
11578 to always fail with ENOSYS. Some functions are actually named
11579 something starting with __ and the normal name is an alias. */
11580#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11581choke me
11582#else
e8482f24 11583$ac_func();
10f2d63a
VZ
11584#endif
11585
11586; return 0; }
11587EOF
1216f52d 11588if { (eval echo configure:11589: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
11589 rm -rf conftest*
11590 eval "ac_cv_func_$ac_func=yes"
11591else
11592 echo "configure: failed program was:" >&5
11593 cat conftest.$ac_ext >&5
11594 rm -rf conftest*
11595 eval "ac_cv_func_$ac_func=no"
11596fi
11597rm -f conftest*
11598fi
11599
11600if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11601 echo "$ac_t""yes" 1>&6
11602 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11603 cat >> confdefs.h <<EOF
11604#define $ac_tr_func 1
11605EOF
11606 cat >> confdefs.h <<\EOF
11607#define HAVE_NANOSLEEP 1
11608EOF
11609
11610else
11611 echo "$ac_t""no" 1>&6
11612echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6
1216f52d 11613echo "configure:11614: checking for nanosleep in -lposix4" >&5
10f2d63a
VZ
11614ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'`
11615if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11616 echo $ac_n "(cached) $ac_c" 1>&6
11617else
11618 ac_save_LIBS="$LIBS"
11619LIBS="-lposix4 $LIBS"
11620cat > conftest.$ac_ext <<EOF
1216f52d 11621#line 11622 "configure"
10f2d63a
VZ
11622#include "confdefs.h"
11623/* Override any gcc2 internal prototype to avoid an error. */
11624/* We use char because int might match the return type of a gcc2
11625 builtin and then its argument prototype would still apply. */
11626char nanosleep();
11627
11628int main() {
11629nanosleep()
11630; return 0; }
11631EOF
1216f52d 11632if { (eval echo configure:11633: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
11633 rm -rf conftest*
11634 eval "ac_cv_lib_$ac_lib_var=yes"
11635else
11636 echo "configure: failed program was:" >&5
11637 cat conftest.$ac_ext >&5
11638 rm -rf conftest*
11639 eval "ac_cv_lib_$ac_lib_var=no"
11640fi
11641rm -f conftest*
11642LIBS="$ac_save_LIBS"
11643
11644fi
11645if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11646 echo "$ac_t""yes" 1>&6
11647
b12915c1 11648 cat >> confdefs.h <<\EOF
10f2d63a
VZ
11649#define HAVE_NANOSLEEP 1
11650EOF
11651
b12915c1
VZ
11652 POSIX4_LINK="-lposix4"
11653
10f2d63a
VZ
11654else
11655 echo "$ac_t""no" 1>&6
11656
b12915c1 11657 for ac_func in usleep
10f2d63a
VZ
11658do
11659echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1216f52d 11660echo "configure:11661: checking for $ac_func" >&5
10f2d63a
VZ
11661if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11662 echo $ac_n "(cached) $ac_c" 1>&6
11663else
11664 cat > conftest.$ac_ext <<EOF
1216f52d 11665#line 11666 "configure"
10f2d63a
VZ
11666#include "confdefs.h"
11667/* System header to define __stub macros and hopefully few prototypes,
11668 which can conflict with char $ac_func(); below. */
11669#include <assert.h>
11670/* Override any gcc2 internal prototype to avoid an error. */
11671/* We use char because int might match the return type of a gcc2
11672 builtin and then its argument prototype would still apply. */
11673char $ac_func();
11674
11675int main() {
11676
11677/* The GNU C library defines this for functions which it implements
11678 to always fail with ENOSYS. Some functions are actually named
11679 something starting with __ and the normal name is an alias. */
11680#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11681choke me
11682#else
e8482f24 11683$ac_func();
10f2d63a
VZ
11684#endif
11685
11686; return 0; }
11687EOF
1216f52d 11688if { (eval echo configure:11689: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
11689 rm -rf conftest*
11690 eval "ac_cv_func_$ac_func=yes"
11691else
11692 echo "configure: failed program was:" >&5
11693 cat conftest.$ac_ext >&5
11694 rm -rf conftest*
11695 eval "ac_cv_func_$ac_func=no"
11696fi
11697rm -f conftest*
11698fi
11699
11700if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11701 echo "$ac_t""yes" 1>&6
11702 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11703 cat >> confdefs.h <<EOF
11704#define $ac_tr_func 1
11705EOF
b4085ce6
GD
11706 cat >> confdefs.h <<\EOF
11707#define HAVE_USLEEP 1
11708EOF
11709
10f2d63a
VZ
11710else
11711 echo "$ac_t""no" 1>&6
10f2d63a
VZ
11712fi
11713done
11714
b12915c1
VZ
11715 echo "configure: warning: wxSleep() function will not work" 1>&2
11716
11717
10f2d63a
VZ
11718fi
11719
b12915c1
VZ
11720
11721
10f2d63a
VZ
11722fi
11723done
11724
b12915c1 11725fi
10f2d63a
VZ
11726
11727for ac_func in uname gethostname
11728do
11729echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1216f52d 11730echo "configure:11731: checking for $ac_func" >&5
10f2d63a
VZ
11731if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11732 echo $ac_n "(cached) $ac_c" 1>&6
11733else
11734 cat > conftest.$ac_ext <<EOF
1216f52d 11735#line 11736 "configure"
10f2d63a
VZ
11736#include "confdefs.h"
11737/* System header to define __stub macros and hopefully few prototypes,
11738 which can conflict with char $ac_func(); below. */
11739#include <assert.h>
11740/* Override any gcc2 internal prototype to avoid an error. */
11741/* We use char because int might match the return type of a gcc2
11742 builtin and then its argument prototype would still apply. */
11743char $ac_func();
11744
11745int main() {
11746
11747/* The GNU C library defines this for functions which it implements
11748 to always fail with ENOSYS. Some functions are actually named
11749 something starting with __ and the normal name is an alias. */
11750#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11751choke me
11752#else
e8482f24 11753$ac_func();
10f2d63a
VZ
11754#endif
11755
11756; return 0; }
11757EOF
1216f52d 11758if { (eval echo configure:11759: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
11759 rm -rf conftest*
11760 eval "ac_cv_func_$ac_func=yes"
11761else
11762 echo "configure: failed program was:" >&5
11763 cat conftest.$ac_ext >&5
11764 rm -rf conftest*
11765 eval "ac_cv_func_$ac_func=no"
11766fi
11767rm -f conftest*
11768fi
11769
11770if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11771 echo "$ac_t""yes" 1>&6
11772 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11773 cat >> confdefs.h <<EOF
11774#define $ac_tr_func 1
11775EOF
11776 break
11777else
11778 echo "$ac_t""no" 1>&6
11779fi
11780done
11781
11782
6098c7f9
VZ
11783
11784ac_ext=C
11785# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11786ac_cpp='$CXXCPP $CPPFLAGS'
11787ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11788ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11789cross_compiling=$ac_cv_prog_cxx_cross
11790
11791
10f2d63a
VZ
11792for ac_func in strtok_r
11793do
11794echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1216f52d 11795echo "configure:11796: checking for $ac_func" >&5
10f2d63a
VZ
11796if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11797 echo $ac_n "(cached) $ac_c" 1>&6
11798else
11799 cat > conftest.$ac_ext <<EOF
1216f52d 11800#line 11801 "configure"
10f2d63a
VZ
11801#include "confdefs.h"
11802/* System header to define __stub macros and hopefully few prototypes,
11803 which can conflict with char $ac_func(); below. */
11804#include <assert.h>
11805/* Override any gcc2 internal prototype to avoid an error. */
6098c7f9
VZ
11806#ifdef __cplusplus
11807extern "C"
11808#endif
10f2d63a
VZ
11809/* We use char because int might match the return type of a gcc2
11810 builtin and then its argument prototype would still apply. */
11811char $ac_func();
11812
11813int main() {
11814
11815/* The GNU C library defines this for functions which it implements
11816 to always fail with ENOSYS. Some functions are actually named
11817 something starting with __ and the normal name is an alias. */
11818#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11819choke me
11820#else
e8482f24 11821$ac_func();
10f2d63a
VZ
11822#endif
11823
11824; return 0; }
11825EOF
1216f52d 11826if { (eval echo configure:11827: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
11827 rm -rf conftest*
11828 eval "ac_cv_func_$ac_func=yes"
11829else
11830 echo "configure: failed program was:" >&5
11831 cat conftest.$ac_ext >&5
11832 rm -rf conftest*
11833 eval "ac_cv_func_$ac_func=no"
11834fi
11835rm -f conftest*
11836fi
11837
11838if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11839 echo "$ac_t""yes" 1>&6
11840 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11841 cat >> confdefs.h <<EOF
11842#define $ac_tr_func 1
11843EOF
11844
11845else
11846 echo "$ac_t""no" 1>&6
11847fi
11848done
11849
11850
6098c7f9
VZ
11851ac_ext=c
11852# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11853ac_cpp='$CPP $CPPFLAGS'
11854ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11855ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11856cross_compiling=$ac_cv_prog_cc_cross
11857
11858
c63c7106 11859INET_LINK=
10f2d63a
VZ
11860for ac_func in inet_addr
11861do
11862echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1216f52d 11863echo "configure:11864: checking for $ac_func" >&5
10f2d63a
VZ
11864if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11865 echo $ac_n "(cached) $ac_c" 1>&6
11866else
11867 cat > conftest.$ac_ext <<EOF
1216f52d 11868#line 11869 "configure"
10f2d63a
VZ
11869#include "confdefs.h"
11870/* System header to define __stub macros and hopefully few prototypes,
11871 which can conflict with char $ac_func(); below. */
11872#include <assert.h>
11873/* Override any gcc2 internal prototype to avoid an error. */
11874/* We use char because int might match the return type of a gcc2
11875 builtin and then its argument prototype would still apply. */
11876char $ac_func();
11877
11878int main() {
11879
11880/* The GNU C library defines this for functions which it implements
11881 to always fail with ENOSYS. Some functions are actually named
11882 something starting with __ and the normal name is an alias. */
11883#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11884choke me
11885#else
e8482f24 11886$ac_func();
10f2d63a
VZ
11887#endif
11888
11889; return 0; }
11890EOF
1216f52d 11891if { (eval echo configure:11892: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
11892 rm -rf conftest*
11893 eval "ac_cv_func_$ac_func=yes"
11894else
11895 echo "configure: failed program was:" >&5
11896 cat conftest.$ac_ext >&5
11897 rm -rf conftest*
11898 eval "ac_cv_func_$ac_func=no"
11899fi
11900rm -f conftest*
11901fi
11902
11903if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11904 echo "$ac_t""yes" 1>&6
11905 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11906 cat >> confdefs.h <<EOF
11907#define $ac_tr_func 1
11908EOF
c63c7106
VZ
11909 cat >> confdefs.h <<\EOF
11910#define HAVE_INET_ADDR 1
11911EOF
11912
10f2d63a
VZ
11913else
11914 echo "$ac_t""no" 1>&6
c63c7106 11915echo $ac_n "checking for inet_addr in -lnsl""... $ac_c" 1>&6
1216f52d 11916echo "configure:11917: checking for inet_addr in -lnsl" >&5
c63c7106
VZ
11917ac_lib_var=`echo nsl'_'inet_addr | sed 'y%./+-%__p_%'`
11918if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11919 echo $ac_n "(cached) $ac_c" 1>&6
11920else
11921 ac_save_LIBS="$LIBS"
11922LIBS="-lnsl $LIBS"
11923cat > conftest.$ac_ext <<EOF
1216f52d 11924#line 11925 "configure"
c63c7106
VZ
11925#include "confdefs.h"
11926/* Override any gcc2 internal prototype to avoid an error. */
11927/* We use char because int might match the return type of a gcc2
11928 builtin and then its argument prototype would still apply. */
11929char inet_addr();
11930
11931int main() {
11932inet_addr()
11933; return 0; }
11934EOF
1216f52d 11935if { (eval echo configure:11936: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
c63c7106
VZ
11936 rm -rf conftest*
11937 eval "ac_cv_lib_$ac_lib_var=yes"
11938else
11939 echo "configure: failed program was:" >&5
11940 cat conftest.$ac_ext >&5
11941 rm -rf conftest*
11942 eval "ac_cv_lib_$ac_lib_var=no"
11943fi
11944rm -f conftest*
11945LIBS="$ac_save_LIBS"
11946
11947fi
11948if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11949 echo "$ac_t""yes" 1>&6
11950 INET_LINK="nsl"
11951else
11952 echo "$ac_t""no" 1>&6
11953echo $ac_n "checking for inet_addr in -lresolv""... $ac_c" 1>&6
1216f52d 11954echo "configure:11955: checking for inet_addr in -lresolv" >&5
c63c7106
VZ
11955ac_lib_var=`echo resolv'_'inet_addr | sed 'y%./+-%__p_%'`
11956if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11957 echo $ac_n "(cached) $ac_c" 1>&6
11958else
11959 ac_save_LIBS="$LIBS"
11960LIBS="-lresolv $LIBS"
11961cat > conftest.$ac_ext <<EOF
1216f52d 11962#line 11963 "configure"
c63c7106
VZ
11963#include "confdefs.h"
11964/* Override any gcc2 internal prototype to avoid an error. */
11965/* We use char because int might match the return type of a gcc2
11966 builtin and then its argument prototype would still apply. */
11967char inet_addr();
11968
11969int main() {
11970inet_addr()
11971; return 0; }
11972EOF
1216f52d 11973if { (eval echo configure:11974: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
c63c7106
VZ
11974 rm -rf conftest*
11975 eval "ac_cv_lib_$ac_lib_var=yes"
11976else
11977 echo "configure: failed program was:" >&5
11978 cat conftest.$ac_ext >&5
11979 rm -rf conftest*
11980 eval "ac_cv_lib_$ac_lib_var=no"
11981fi
11982rm -f conftest*
11983LIBS="$ac_save_LIBS"
11984
11985fi
11986if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11987 echo "$ac_t""yes" 1>&6
11988 INET_LINK="resolv"
11989
11990else
11991 echo "$ac_t""no" 1>&6
11992fi
11993
11994
11995fi
11996
11997
11998
10f2d63a
VZ
11999fi
12000done
12001
c63c7106 12002
10f2d63a
VZ
12003for ac_func in inet_aton
12004do
12005echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1216f52d 12006echo "configure:12007: checking for $ac_func" >&5
10f2d63a
VZ
12007if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12008 echo $ac_n "(cached) $ac_c" 1>&6
12009else
12010 cat > conftest.$ac_ext <<EOF
1216f52d 12011#line 12012 "configure"
10f2d63a
VZ
12012#include "confdefs.h"
12013/* System header to define __stub macros and hopefully few prototypes,
12014 which can conflict with char $ac_func(); below. */
12015#include <assert.h>
12016/* Override any gcc2 internal prototype to avoid an error. */
12017/* We use char because int might match the return type of a gcc2
12018 builtin and then its argument prototype would still apply. */
12019char $ac_func();
12020
12021int main() {
12022
12023/* The GNU C library defines this for functions which it implements
12024 to always fail with ENOSYS. Some functions are actually named
12025 something starting with __ and the normal name is an alias. */
12026#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12027choke me
12028#else
e8482f24 12029$ac_func();
10f2d63a
VZ
12030#endif
12031
12032; return 0; }
12033EOF
1216f52d 12034if { (eval echo configure:12035: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
12035 rm -rf conftest*
12036 eval "ac_cv_func_$ac_func=yes"
12037else
12038 echo "configure: failed program was:" >&5
12039 cat conftest.$ac_ext >&5
12040 rm -rf conftest*
12041 eval "ac_cv_func_$ac_func=no"
12042fi
12043rm -f conftest*
12044fi
12045
12046if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12047 echo "$ac_t""yes" 1>&6
12048 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12049 cat >> confdefs.h <<EOF
12050#define $ac_tr_func 1
12051EOF
c63c7106
VZ
12052 cat >> confdefs.h <<\EOF
12053#define HAVE_INET_ATON 1
12054EOF
12055
10f2d63a
VZ
12056else
12057 echo "$ac_t""no" 1>&6
c63c7106 12058 echo $ac_n "checking for inet_aton in -l$INET_LINK""... $ac_c" 1>&6
1216f52d 12059echo "configure:12060: checking for inet_aton in -l$INET_LINK" >&5
c63c7106 12060ac_lib_var=`echo $INET_LINK'_'inet_aton | sed 'y%./+-%__p_%'`
10f2d63a
VZ
12061if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12062 echo $ac_n "(cached) $ac_c" 1>&6
12063else
12064 ac_save_LIBS="$LIBS"
c63c7106 12065LIBS="-l$INET_LINK $LIBS"
10f2d63a 12066cat > conftest.$ac_ext <<EOF
1216f52d 12067#line 12068 "configure"
10f2d63a
VZ
12068#include "confdefs.h"
12069/* Override any gcc2 internal prototype to avoid an error. */
12070/* We use char because int might match the return type of a gcc2
12071 builtin and then its argument prototype would still apply. */
12072char inet_aton();
12073
12074int main() {
12075inet_aton()
12076; return 0; }
12077EOF
1216f52d 12078if { (eval echo configure:12079: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
12079 rm -rf conftest*
12080 eval "ac_cv_lib_$ac_lib_var=yes"
12081else
12082 echo "configure: failed program was:" >&5
12083 cat conftest.$ac_ext >&5
12084 rm -rf conftest*
12085 eval "ac_cv_lib_$ac_lib_var=no"
12086fi
12087rm -f conftest*
12088LIBS="$ac_save_LIBS"
12089
12090fi
12091if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12092 echo "$ac_t""yes" 1>&6
c63c7106
VZ
12093 cat >> confdefs.h <<\EOF
12094#define HAVE_INET_ATON 1
10f2d63a
VZ
12095EOF
12096
10f2d63a
VZ
12097else
12098 echo "$ac_t""no" 1>&6
12099fi
12100
c63c7106
VZ
12101
12102fi
12103done
12104
12105
12106if test "x$INET_LINK" != "x"; then
12107 cat >> confdefs.h <<\EOF
12108#define HAVE_INET_ADDR 1
12109EOF
12110
12111 INET_LINK="-l$INET_LINK"
12112fi
10f2d63a
VZ
12113
12114fi
12115
12116
12117cat > confcache <<\EOF
12118# This file is a shell script that caches the results of configure
12119# tests run on this system so they can be shared between configure
12120# scripts and configure runs. It is not useful on other systems.
12121# If it contains results you don't want to keep, you may remove or edit it.
12122#
12123# By default, configure uses ./config.cache as the cache file,
12124# creating it if it does not exist already. You can give configure
12125# the --cache-file=FILE option to use a different cache file; that is
12126# what configure does when it calls configure scripts in
12127# subdirectories, so they share the cache.
12128# Giving --cache-file=/dev/null disables caching, for debugging configure.
12129# config.status only pays attention to the cache file if you give it the
12130# --recheck option to rerun configure.
12131#
12132EOF
12133# The following way of writing the cache mishandles newlines in values,
12134# but we know of no workaround that is simple, portable, and efficient.
12135# So, don't put newlines in cache variables' values.
12136# Ultrix sh set writes to stderr and can't be redirected directly,
12137# and sets the high bit in the cache file unless we assign to the vars.
12138(set) 2>&1 |
12139 case `(ac_space=' '; set | grep ac_space) 2>&1` in
12140 *ac_space=\ *)
12141 # `set' does not quote correctly, so add quotes (double-quote substitution
12142 # turns \\\\ into \\, and sed turns \\ into \).
12143 sed -n \
12144 -e "s/'/'\\\\''/g" \
12145 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
12146 ;;
12147 *)
12148 # `set' quotes correctly as required by POSIX, so do not add quotes.
12149 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
12150 ;;
12151 esac >> confcache
12152if cmp -s $cache_file confcache; then
12153 :
12154else
12155 if test -w $cache_file; then
12156 echo "updating cache $cache_file"
12157 cat confcache > $cache_file
12158 else
12159 echo "not updating unwritable cache $cache_file"
12160 fi
12161fi
12162rm -f confcache
12163
12164
12165
b089607b 12166if test "$TOOLKIT" != "MSW"; then
10f2d63a
VZ
12167
12168
12169THREADS_LINK=""
12170THREADS_OBJ=""
12171
12172if test "$wxUSE_THREADS" = "yes" ; then
12173 if test "$wxUSE_WINE" = 1 ; then
12174 echo "configure: warning: Threads are not supported under WINE" 1>&2
12175 wxUSE_THREADS="no"
b12915c1
VZ
12176 elif test "$USE_BEOS" = 1; then
12177 echo "configure: warning: BeOS threads are not yet supported" 1>&2
12178 wxUSE_THREADS="no"
10f2d63a
VZ
12179 fi
12180fi
12181
12182if test "$wxUSE_THREADS" = "yes" ; then
12183
186837b0 12184 if test "$USE_AIX" = 1; then
f6bcfd97 12185 THREADS_LIB=pthreads
f3c067d2
GD
12186 elif test "$USE_MAC" = 1; then
12187 THREADS_LIB=cc_dynamic
f6bcfd97
BP
12188 else
12189 THREADS_LIB=pthread
12190 fi
12191
12192 echo $ac_n "checking for pthread_create in -l$THREADS_LIB""... $ac_c" 1>&6
1216f52d 12193echo "configure:12194: checking for pthread_create in -l$THREADS_LIB" >&5
f6bcfd97 12194ac_lib_var=`echo $THREADS_LIB'_'pthread_create | sed 'y%./+-%__p_%'`
10f2d63a
VZ
12195if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12196 echo $ac_n "(cached) $ac_c" 1>&6
12197else
12198 ac_save_LIBS="$LIBS"
f6bcfd97 12199LIBS="-l$THREADS_LIB $LIBS"
10f2d63a 12200cat > conftest.$ac_ext <<EOF
1216f52d 12201#line 12202 "configure"
10f2d63a
VZ
12202#include "confdefs.h"
12203/* Override any gcc2 internal prototype to avoid an error. */
12204/* We use char because int might match the return type of a gcc2
12205 builtin and then its argument prototype would still apply. */
12206char pthread_create();
12207
12208int main() {
12209pthread_create()
12210; return 0; }
12211EOF
1216f52d 12212if { (eval echo configure:12213: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
12213 rm -rf conftest*
12214 eval "ac_cv_lib_$ac_lib_var=yes"
12215else
12216 echo "configure: failed program was:" >&5
12217 cat conftest.$ac_ext >&5
12218 rm -rf conftest*
12219 eval "ac_cv_lib_$ac_lib_var=no"
12220fi
12221rm -f conftest*
12222LIBS="$ac_save_LIBS"
12223
12224fi
12225if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12226 echo "$ac_t""yes" 1>&6
12227
12228 THREADS_OBJ="threadpsx.lo"
f6bcfd97 12229 THREADS_LINK=$THREADS_LIB
10f2d63a
VZ
12230
12231else
12232 echo "$ac_t""no" 1>&6
12233
12234 echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6
1216f52d 12235echo "configure:12236: checking for pthread_create in -lc_r" >&5
10f2d63a
VZ
12236ac_lib_var=`echo c_r'_'pthread_create | sed 'y%./+-%__p_%'`
12237if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12238 echo $ac_n "(cached) $ac_c" 1>&6
12239else
12240 ac_save_LIBS="$LIBS"
12241LIBS="-lc_r $LIBS"
12242cat > conftest.$ac_ext <<EOF
1216f52d 12243#line 12244 "configure"
10f2d63a
VZ
12244#include "confdefs.h"
12245/* Override any gcc2 internal prototype to avoid an error. */
12246/* We use char because int might match the return type of a gcc2
12247 builtin and then its argument prototype would still apply. */
12248char pthread_create();
12249
12250int main() {
12251pthread_create()
12252; return 0; }
12253EOF
1216f52d 12254if { (eval echo configure:12255: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
12255 rm -rf conftest*
12256 eval "ac_cv_lib_$ac_lib_var=yes"
12257else
12258 echo "configure: failed program was:" >&5
12259 cat conftest.$ac_ext >&5
12260 rm -rf conftest*
12261 eval "ac_cv_lib_$ac_lib_var=no"
12262fi
12263rm -f conftest*
12264LIBS="$ac_save_LIBS"
12265
12266fi
12267if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12268 echo "$ac_t""yes" 1>&6
12269
12270 THREADS_OBJ="threadpsx.lo"
12271 THREADS_LINK="c_r"
12272
12273else
12274 echo "$ac_t""no" 1>&6
12275
b4085ce6 12276 echo $ac_n "checking for pthread_create in -lcc_dynamic""... $ac_c" 1>&6
1216f52d 12277echo "configure:12278: checking for pthread_create in -lcc_dynamic" >&5
b4085ce6
GD
12278ac_lib_var=`echo cc_dynamic'_'pthread_create | sed 'y%./+-%__p_%'`
12279if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12280 echo $ac_n "(cached) $ac_c" 1>&6
12281else
12282 ac_save_LIBS="$LIBS"
12283LIBS="-lcc_dynamic $LIBS"
12284cat > conftest.$ac_ext <<EOF
1216f52d 12285#line 12286 "configure"
b4085ce6
GD
12286#include "confdefs.h"
12287/* Override any gcc2 internal prototype to avoid an error. */
12288/* We use char because int might match the return type of a gcc2
12289 builtin and then its argument prototype would still apply. */
12290char pthread_create();
12291
12292int main() {
12293pthread_create()
12294; return 0; }
12295EOF
1216f52d 12296if { (eval echo configure:12297: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
b4085ce6
GD
12297 rm -rf conftest*
12298 eval "ac_cv_lib_$ac_lib_var=yes"
12299else
12300 echo "configure: failed program was:" >&5
12301 cat conftest.$ac_ext >&5
12302 rm -rf conftest*
12303 eval "ac_cv_lib_$ac_lib_var=no"
12304fi
12305rm -f conftest*
12306LIBS="$ac_save_LIBS"
12307
12308fi
12309if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12310 echo "$ac_t""yes" 1>&6
12311
12312 THREADS_OBJ="threadpsx.lo"
12313 THREADS_LINK="cc_dynamic"
12314
12315else
12316 echo "$ac_t""no" 1>&6
12317
12318 ac_safe=`echo "sys/prctl.h" | sed 'y%./+-%__p_%'`
10f2d63a 12319echo $ac_n "checking for sys/prctl.h""... $ac_c" 1>&6
1216f52d 12320echo "configure:12321: checking for sys/prctl.h" >&5
10f2d63a
VZ
12321if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12322 echo $ac_n "(cached) $ac_c" 1>&6
12323else
12324 cat > conftest.$ac_ext <<EOF
1216f52d 12325#line 12326 "configure"
10f2d63a
VZ
12326#include "confdefs.h"
12327#include <sys/prctl.h>
12328EOF
12329ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1216f52d 12330{ (eval echo configure:12331: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
12331ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12332if test -z "$ac_err"; then
12333 rm -rf conftest*
12334 eval "ac_cv_header_$ac_safe=yes"
12335else
12336 echo "$ac_err" >&5
12337 echo "configure: failed program was:" >&5
12338 cat conftest.$ac_ext >&5
12339 rm -rf conftest*
12340 eval "ac_cv_header_$ac_safe=no"
12341fi
12342rm -f conftest*
12343fi
12344if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12345 echo "$ac_t""yes" 1>&6
12346
b4085ce6
GD
12347 THREADS_OBJ="threadsgi.lo"
12348
10f2d63a
VZ
12349else
12350 echo "$ac_t""no" 1>&6
12351fi
12352
b4085ce6
GD
12353
12354fi
12355
10f2d63a
VZ
12356
12357fi
12358
12359
12360fi
12361
12362
12363 if test -z "$THREADS_OBJ" ; then
12364 wxUSE_THREADS=no
12365 echo "configure: warning: No thread support on this system" 1>&2
12366 fi
12367fi
12368
12369if test "$wxUSE_THREADS" = "yes" ; then
70846f0a
VZ
12370 for ac_func in thr_setconcurrency
12371do
12372echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1216f52d 12373echo "configure:12374: checking for $ac_func" >&5
70846f0a
VZ
12374if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12375 echo $ac_n "(cached) $ac_c" 1>&6
12376else
12377 cat > conftest.$ac_ext <<EOF
1216f52d 12378#line 12379 "configure"
70846f0a
VZ
12379#include "confdefs.h"
12380/* System header to define __stub macros and hopefully few prototypes,
12381 which can conflict with char $ac_func(); below. */
12382#include <assert.h>
12383/* Override any gcc2 internal prototype to avoid an error. */
12384/* We use char because int might match the return type of a gcc2
12385 builtin and then its argument prototype would still apply. */
12386char $ac_func();
12387
12388int main() {
12389
12390/* The GNU C library defines this for functions which it implements
12391 to always fail with ENOSYS. Some functions are actually named
12392 something starting with __ and the normal name is an alias. */
12393#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12394choke me
12395#else
e8482f24 12396$ac_func();
70846f0a
VZ
12397#endif
12398
12399; return 0; }
12400EOF
1216f52d 12401if { (eval echo configure:12402: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
70846f0a
VZ
12402 rm -rf conftest*
12403 eval "ac_cv_func_$ac_func=yes"
12404else
12405 echo "configure: failed program was:" >&5
12406 cat conftest.$ac_ext >&5
12407 rm -rf conftest*
12408 eval "ac_cv_func_$ac_func=no"
12409fi
12410rm -f conftest*
12411fi
12412
12413if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12414 echo "$ac_t""yes" 1>&6
12415 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12416 cat >> confdefs.h <<EOF
12417#define $ac_tr_func 1
12418EOF
12419
12420else
12421 echo "$ac_t""no" 1>&6
12422fi
12423done
12424
12425
10f2d63a
VZ
12426
12427 for ac_hdr in sched.h
12428do
12429ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12430echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1216f52d 12431echo "configure:12432: checking for $ac_hdr" >&5
10f2d63a
VZ
12432if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12433 echo $ac_n "(cached) $ac_c" 1>&6
12434else
12435 cat > conftest.$ac_ext <<EOF
1216f52d 12436#line 12437 "configure"
10f2d63a
VZ
12437#include "confdefs.h"
12438#include <$ac_hdr>
12439EOF
12440ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1216f52d 12441{ (eval echo configure:12442: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
12442ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12443if test -z "$ac_err"; then
12444 rm -rf conftest*
12445 eval "ac_cv_header_$ac_safe=yes"
12446else
12447 echo "$ac_err" >&5
12448 echo "configure: failed program was:" >&5
12449 cat conftest.$ac_ext >&5
12450 rm -rf conftest*
12451 eval "ac_cv_header_$ac_safe=no"
12452fi
12453rm -f conftest*
12454fi
12455if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12456 echo "$ac_t""yes" 1>&6
12457 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12458 cat >> confdefs.h <<EOF
12459#define $ac_tr_hdr 1
12460EOF
12461
12462else
12463 echo "$ac_t""no" 1>&6
12464fi
12465done
12466
12467
12468 echo $ac_n "checking for sched_yield in -l$THREADS_LINK""... $ac_c" 1>&6
1216f52d 12469echo "configure:12470: checking for sched_yield in -l$THREADS_LINK" >&5
10f2d63a
VZ
12470ac_lib_var=`echo $THREADS_LINK'_'sched_yield | sed 'y%./+-%__p_%'`
12471if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12472 echo $ac_n "(cached) $ac_c" 1>&6
12473else
12474 ac_save_LIBS="$LIBS"
12475LIBS="-l$THREADS_LINK $LIBS"
12476cat > conftest.$ac_ext <<EOF
1216f52d 12477#line 12478 "configure"
10f2d63a
VZ
12478#include "confdefs.h"
12479/* Override any gcc2 internal prototype to avoid an error. */
12480/* We use char because int might match the return type of a gcc2
12481 builtin and then its argument prototype would still apply. */
12482char sched_yield();
12483
12484int main() {
12485sched_yield()
12486; return 0; }
12487EOF
1216f52d 12488if { (eval echo configure:12489: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
12489 rm -rf conftest*
12490 eval "ac_cv_lib_$ac_lib_var=yes"
12491else
12492 echo "configure: failed program was:" >&5
12493 cat conftest.$ac_ext >&5
12494 rm -rf conftest*
12495 eval "ac_cv_lib_$ac_lib_var=no"
12496fi
12497rm -f conftest*
12498LIBS="$ac_save_LIBS"
12499
12500fi
12501if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12502 echo "$ac_t""yes" 1>&6
12503 cat >> confdefs.h <<\EOF
12504#define HAVE_SCHED_YIELD 1
12505EOF
12506
12507else
12508 echo "$ac_t""no" 1>&6
12509echo $ac_n "checking for sched_yield in -l"posix4"""... $ac_c" 1>&6
1216f52d 12510echo "configure:12511: checking for sched_yield in -l"posix4"" >&5
10f2d63a
VZ
12511ac_lib_var=`echo "posix4"'_'sched_yield | sed 'y%./+-%__p_%'`
12512if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12513 echo $ac_n "(cached) $ac_c" 1>&6
12514else
12515 ac_save_LIBS="$LIBS"
12516LIBS="-l"posix4" $LIBS"
12517cat > conftest.$ac_ext <<EOF
1216f52d 12518#line 12519 "configure"
10f2d63a
VZ
12519#include "confdefs.h"
12520/* Override any gcc2 internal prototype to avoid an error. */
12521/* We use char because int might match the return type of a gcc2
12522 builtin and then its argument prototype would still apply. */
12523char sched_yield();
12524
12525int main() {
12526sched_yield()
12527; return 0; }
12528EOF
1216f52d 12529if { (eval echo configure:12530: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
12530 rm -rf conftest*
12531 eval "ac_cv_lib_$ac_lib_var=yes"
12532else
12533 echo "configure: failed program was:" >&5
12534 cat conftest.$ac_ext >&5
12535 rm -rf conftest*
12536 eval "ac_cv_lib_$ac_lib_var=no"
12537fi
12538rm -f conftest*
12539LIBS="$ac_save_LIBS"
12540
12541fi
12542if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12543 echo "$ac_t""yes" 1>&6
12544 cat >> confdefs.h <<\EOF
12545#define HAVE_SCHED_YIELD 1
12546EOF
12547 POSIX4_LINK="-lposix4"
12548else
12549 echo "$ac_t""no" 1>&6
12550echo "configure: warning: wxThread::Yield will not work properly" 1>&2
12551
12552fi
12553
12554
12555fi
12556
12557
f6bcfd97
BP
12558 HAVE_PRIOR_FUNCS=0
12559 echo $ac_n "checking for pthread_attr_getschedpolicy in -l$THREADS_LINK""... $ac_c" 1>&6
1216f52d 12560echo "configure:12561: checking for pthread_attr_getschedpolicy in -l$THREADS_LINK" >&5
10f2d63a
VZ
12561ac_lib_var=`echo $THREADS_LINK'_'pthread_attr_getschedpolicy | sed 'y%./+-%__p_%'`
12562if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12563 echo $ac_n "(cached) $ac_c" 1>&6
12564else
12565 ac_save_LIBS="$LIBS"
12566LIBS="-l$THREADS_LINK $LIBS"
12567cat > conftest.$ac_ext <<EOF
1216f52d 12568#line 12569 "configure"
10f2d63a
VZ
12569#include "confdefs.h"
12570/* Override any gcc2 internal prototype to avoid an error. */
12571/* We use char because int might match the return type of a gcc2
12572 builtin and then its argument prototype would still apply. */
12573char pthread_attr_getschedpolicy();
12574
12575int main() {
12576pthread_attr_getschedpolicy()
12577; return 0; }
12578EOF
1216f52d 12579if { (eval echo configure:12580: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
12580 rm -rf conftest*
12581 eval "ac_cv_lib_$ac_lib_var=yes"
12582else
12583 echo "configure: failed program was:" >&5
12584 cat conftest.$ac_ext >&5
12585 rm -rf conftest*
12586 eval "ac_cv_lib_$ac_lib_var=no"
12587fi
12588rm -f conftest*
12589LIBS="$ac_save_LIBS"
12590
12591fi
12592if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12593 echo "$ac_t""yes" 1>&6
f6bcfd97 12594 echo $ac_n "checking for pthread_attr_setschedparam in -l$THREADS_LINK""... $ac_c" 1>&6
1216f52d 12595echo "configure:12596: checking for pthread_attr_setschedparam in -l$THREADS_LINK" >&5
f6bcfd97
BP
12596ac_lib_var=`echo $THREADS_LINK'_'pthread_attr_setschedparam | sed 'y%./+-%__p_%'`
12597if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12598 echo $ac_n "(cached) $ac_c" 1>&6
12599else
12600 ac_save_LIBS="$LIBS"
12601LIBS="-l$THREADS_LINK $LIBS"
12602cat > conftest.$ac_ext <<EOF
1216f52d 12603#line 12604 "configure"
f6bcfd97
BP
12604#include "confdefs.h"
12605/* Override any gcc2 internal prototype to avoid an error. */
12606/* We use char because int might match the return type of a gcc2
12607 builtin and then its argument prototype would still apply. */
12608char pthread_attr_setschedparam();
12609
12610int main() {
12611pthread_attr_setschedparam()
12612; return 0; }
10f2d63a 12613EOF
1216f52d 12614if { (eval echo configure:12615: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
f6bcfd97
BP
12615 rm -rf conftest*
12616 eval "ac_cv_lib_$ac_lib_var=yes"
12617else
12618 echo "configure: failed program was:" >&5
12619 cat conftest.$ac_ext >&5
12620 rm -rf conftest*
12621 eval "ac_cv_lib_$ac_lib_var=no"
12622fi
12623rm -f conftest*
12624LIBS="$ac_save_LIBS"
10f2d63a 12625
f6bcfd97
BP
12626fi
12627if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12628 echo "$ac_t""yes" 1>&6
12629 echo $ac_n "checking for sched_get_priority_max in -l$THREADS_LINK""... $ac_c" 1>&6
1216f52d 12630echo "configure:12631: checking for sched_get_priority_max in -l$THREADS_LINK" >&5
f6bcfd97
BP
12631ac_lib_var=`echo $THREADS_LINK'_'sched_get_priority_max | sed 'y%./+-%__p_%'`
12632if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12633 echo $ac_n "(cached) $ac_c" 1>&6
12634else
12635 ac_save_LIBS="$LIBS"
12636LIBS="-l$THREADS_LINK $LIBS"
12637cat > conftest.$ac_ext <<EOF
1216f52d 12638#line 12639 "configure"
f6bcfd97
BP
12639#include "confdefs.h"
12640/* Override any gcc2 internal prototype to avoid an error. */
12641/* We use char because int might match the return type of a gcc2
12642 builtin and then its argument prototype would still apply. */
12643char sched_get_priority_max();
12644
12645int main() {
12646sched_get_priority_max()
12647; return 0; }
12648EOF
1216f52d 12649if { (eval echo configure:12650: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
f6bcfd97
BP
12650 rm -rf conftest*
12651 eval "ac_cv_lib_$ac_lib_var=yes"
12652else
12653 echo "configure: failed program was:" >&5
12654 cat conftest.$ac_ext >&5
12655 rm -rf conftest*
12656 eval "ac_cv_lib_$ac_lib_var=no"
12657fi
12658rm -f conftest*
12659LIBS="$ac_save_LIBS"
12660
12661fi
12662if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12663 echo "$ac_t""yes" 1>&6
12664 HAVE_PRIOR_FUNCS=1
10f2d63a
VZ
12665else
12666 echo "$ac_t""no" 1>&6
f6bcfd97 12667echo $ac_n "checking for sched_get_priority_max in -l"posix4"""... $ac_c" 1>&6
1216f52d 12668echo "configure:12669: checking for sched_get_priority_max in -l"posix4"" >&5
f6bcfd97 12669ac_lib_var=`echo "posix4"'_'sched_get_priority_max | sed 'y%./+-%__p_%'`
10f2d63a
VZ
12670if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12671 echo $ac_n "(cached) $ac_c" 1>&6
12672else
12673 ac_save_LIBS="$LIBS"
12674LIBS="-l"posix4" $LIBS"
12675cat > conftest.$ac_ext <<EOF
1216f52d 12676#line 12677 "configure"
10f2d63a
VZ
12677#include "confdefs.h"
12678/* Override any gcc2 internal prototype to avoid an error. */
12679/* We use char because int might match the return type of a gcc2
12680 builtin and then its argument prototype would still apply. */
f6bcfd97 12681char sched_get_priority_max();
10f2d63a
VZ
12682
12683int main() {
f6bcfd97 12684sched_get_priority_max()
10f2d63a
VZ
12685; return 0; }
12686EOF
1216f52d 12687if { (eval echo configure:12688: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
12688 rm -rf conftest*
12689 eval "ac_cv_lib_$ac_lib_var=yes"
12690else
12691 echo "configure: failed program was:" >&5
12692 cat conftest.$ac_ext >&5
12693 rm -rf conftest*
12694 eval "ac_cv_lib_$ac_lib_var=no"
12695fi
12696rm -f conftest*
12697LIBS="$ac_save_LIBS"
12698
12699fi
12700if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12701 echo "$ac_t""yes" 1>&6
f6bcfd97
BP
12702
12703 HAVE_PRIOR_FUNCS=1
12704 POSIX4_LINK="-lposix4"
12705
12706else
12707 echo "$ac_t""no" 1>&6
12708fi
12709
12710
12711fi
12712
12713
10f2d63a
VZ
12714else
12715 echo "$ac_t""no" 1>&6
10f2d63a
VZ
12716fi
12717
12718
f6bcfd97
BP
12719else
12720 echo "$ac_t""no" 1>&6
10f2d63a
VZ
12721fi
12722
12723
f6bcfd97
BP
12724 if test "$HAVE_PRIOR_FUNCS" = 1; then
12725 cat >> confdefs.h <<\EOF
12726#define HAVE_THREAD_PRIORITY_FUNCTIONS 1
12727EOF
12728
12729 else
12730 echo "configure: warning: Setting thread priority will not work" 1>&2
12731 fi
12732
10f2d63a 12733 echo $ac_n "checking for pthread_cancel in -l$THREADS_LINK""... $ac_c" 1>&6
1216f52d 12734echo "configure:12735: checking for pthread_cancel in -l$THREADS_LINK" >&5
10f2d63a
VZ
12735ac_lib_var=`echo $THREADS_LINK'_'pthread_cancel | sed 'y%./+-%__p_%'`
12736if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12737 echo $ac_n "(cached) $ac_c" 1>&6
12738else
12739 ac_save_LIBS="$LIBS"
12740LIBS="-l$THREADS_LINK $LIBS"
12741cat > conftest.$ac_ext <<EOF
1216f52d 12742#line 12743 "configure"
10f2d63a
VZ
12743#include "confdefs.h"
12744/* Override any gcc2 internal prototype to avoid an error. */
12745/* We use char because int might match the return type of a gcc2
12746 builtin and then its argument prototype would still apply. */
12747char pthread_cancel();
12748
12749int main() {
12750pthread_cancel()
12751; return 0; }
12752EOF
1216f52d 12753if { (eval echo configure:12754: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
12754 rm -rf conftest*
12755 eval "ac_cv_lib_$ac_lib_var=yes"
12756else
12757 echo "configure: failed program was:" >&5
12758 cat conftest.$ac_ext >&5
12759 rm -rf conftest*
12760 eval "ac_cv_lib_$ac_lib_var=no"
12761fi
12762rm -f conftest*
12763LIBS="$ac_save_LIBS"
12764
12765fi
12766if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12767 echo "$ac_t""yes" 1>&6
12768 cat >> confdefs.h <<\EOF
12769#define HAVE_PTHREAD_CANCEL 1
12770EOF
12771
12772else
12773 echo "$ac_t""no" 1>&6
12774echo "configure: warning: wxThread::Kill() will not work properly" 1>&2
12775fi
12776
12777
12778 echo $ac_n "checking for pthread_cleanup_push/pop""... $ac_c" 1>&6
1216f52d 12779echo "configure:12780: checking for pthread_cleanup_push/pop" >&5
10f2d63a
VZ
12780if eval "test \"`echo '$''{'wx_cv_func_pthread_cleanup_push'+set}'`\" = set"; then
12781 echo $ac_n "(cached) $ac_c" 1>&6
12782else
12783
12784 cat > conftest.$ac_ext <<EOF
1216f52d 12785#line 12786 "configure"
10f2d63a
VZ
12786#include "confdefs.h"
12787#include <pthread.h>
12788int main() {
12789
12790 pthread_cleanup_push(NULL, NULL);
12791 pthread_cleanup_pop(0);
12792
12793; return 0; }
12794EOF
1216f52d 12795if { (eval echo configure:12796: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10f2d63a
VZ
12796 rm -rf conftest*
12797
12798 wx_cv_func_pthread_cleanup_push=yes
10f2d63a
VZ
12799
12800else
12801 echo "configure: failed program was:" >&5
12802 cat conftest.$ac_ext >&5
12803 rm -rf conftest*
12804
12805 wx_cv_func_pthread_cleanup_push=no
12806
12807fi
12808rm -f conftest*
12809
12810fi
12811
12812echo "$ac_t""$wx_cv_func_pthread_cleanup_push" 1>&6
12813
d9b9876f
VZ
12814 if test "$wx_cv_func_pthread_cleanup_push" = "yes"; then
12815 cat >> confdefs.h <<\EOF
12816#define HAVE_THREAD_CLEANUP_FUNCTIONS 1
12817EOF
12818
12819 fi
12820
12821
d9b9876f 12822 echo $ac_n "checking for pthread_mutexattr_t""... $ac_c" 1>&6
1216f52d 12823echo "configure:12824: checking for pthread_mutexattr_t" >&5
d9b9876f
VZ
12824if eval "test \"`echo '$''{'wx_cv_type_pthread_mutexattr_t'+set}'`\" = set"; then
12825 echo $ac_n "(cached) $ac_c" 1>&6
12826else
12827
12828 cat > conftest.$ac_ext <<EOF
1216f52d 12829#line 12830 "configure"
d9b9876f
VZ
12830#include "confdefs.h"
12831#include <pthread.h>
12832int main() {
12833
12834 pthread_mutexattr_t attr;
12835 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
12836
12837; return 0; }
12838EOF
1216f52d 12839if { (eval echo configure:12840: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d9b9876f
VZ
12840 rm -rf conftest*
12841
12842 wx_cv_type_pthread_mutexattr_t=yes
12843
12844else
12845 echo "configure: failed program was:" >&5
12846 cat conftest.$ac_ext >&5
12847 rm -rf conftest*
12848
12849 wx_cv_type_pthread_mutexattr_t=no
12850
12851
12852fi
12853rm -f conftest*
12854
12855fi
12856
12857echo "$ac_t""$wx_cv_type_pthread_mutexattr_t" 1>&6
12858
12859 if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
12860 cat >> confdefs.h <<\EOF
12861#define HAVE_PTHREAD_MUTEXATTR_T 1
12862EOF
12863
12864 else
12865 echo $ac_n "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER""... $ac_c" 1>&6
1216f52d 12866echo "configure:12867: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
d9b9876f
VZ
12867if eval "test \"`echo '$''{'wx_cv_type_pthread_rec_mutex_init'+set}'`\" = set"; then
12868 echo $ac_n "(cached) $ac_c" 1>&6
12869else
12870
12871 cat > conftest.$ac_ext <<EOF
1216f52d 12872#line 12873 "configure"
d9b9876f
VZ
12873#include "confdefs.h"
12874#include <pthread.h>
12875int main() {
12876
12877 pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
12878
12879; return 0; }
12880EOF
1216f52d 12881if { (eval echo configure:12882: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d9b9876f
VZ
12882 rm -rf conftest*
12883
12884 wx_cv_type_pthread_rec_mutex_init=yes
12885
12886else
12887 echo "configure: failed program was:" >&5
12888 cat conftest.$ac_ext >&5
12889 rm -rf conftest*
12890
12891 wx_cv_type_pthread_rec_mutex_init=no
12892
12893
12894fi
12895rm -f conftest*
12896
12897fi
12898
12899echo "$ac_t""$wx_cv_type_pthread_rec_mutex_init" 1>&6
12900 if test "$wx_cv_type_pthread_rec_mutex_init"="yes"; then
12901 cat >> confdefs.h <<\EOF
12902#define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
12903EOF
12904
12905 else
12906 echo "configure: warning: wxMutex won't be recursive on this platform" 1>&2
12907 fi
12908 fi
12909
10f2d63a 12910 THREADS_LINK="-l$THREADS_LINK"
186837b0
VZ
12911
12912 if test "$USE_SOLARIS" = "yes" -a "$GCC" != "yes"; then
12913 CFLAGS="${CFLAGS} -mt"
12914 CXXFLAGS="${CXXFLAGS} -mt"
12915 LDFLAGS="${LDFLAGS} -mt"
12916 fi
10f2d63a
VZ
12917fi
12918
12919fi
12920
12921if test "$wxUSE_THREADS" = "yes"; then
12922 cat >> confdefs.h <<\EOF
12923#define wxUSE_THREADS 1
12924EOF
12925
12926
2c6025bc 12927 if test "$wxUSE_MAC" = "0"; then
10f2d63a 12928 CFLAGS="${CFLAGS} -D_REENTRANT"
2c6025bc
GD
12929 CXXFLAGS="${CXXFLAGS} -D_REENTRANT"
12930 fi
10f2d63a
VZ
12931
12932 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
12933else
12934 if test "$ac_cv_func_strtok_r" = "yes"; then
ab9b9eab 12935 echo $ac_n "checking if -D_REENTRANT is needed""... $ac_c" 1>&6
1216f52d 12936echo "configure:12937: checking if -D_REENTRANT is needed" >&5
ab9b9eab
VZ
12937 if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
12938 CFLAGS="${CFLAGS} -D_REENTRANT"
12939 CXXFLAGS="${CXXFLAGS} -D_REENTRANT"
12940 echo "$ac_t""yes" 1>&6
12941 else
12942 echo "$ac_t""no" 1>&6
10f2d63a
VZ
12943 fi
12944 fi
12945fi
12946
6f72b082 12947if test "$WXGTK20" = 1 ; then
13111b2a 12948 cat >> confdefs.h <<EOF
6f72b082 12949#define __WXGTK20__ $WXGTK20
13111b2a
VZ
12950EOF
12951
12952 WXGTK12=1
12953fi
12954
10f2d63a
VZ
12955if test "$WXGTK12" = 1 ; then
12956 cat >> confdefs.h <<EOF
12957#define __WXGTK12__ $WXGTK12
12958EOF
12959
12960fi
12961
f6bcfd97
BP
12962if test "$WXGTK127" = 1 ; then
12963 cat >> confdefs.h <<EOF
12964#define __WXGTK127__ $WXGTK127
12965EOF
12966
12967fi
12968
10f2d63a
VZ
12969if test "$WXWINE" = 1 ; then
12970 TOOLKIT_DEF="${TOOLKIT_DEF} -D__WXWINE__"
12971fi
12972
b4085ce6 12973if test "$wxUSE_MAC" = 1 ; then
2c6025bc 12974 TOOLKIT_DEF="${TOOLKIT_DEF} -D__UNIX__ -D__POWERPC__ -DTARGET_CARBON"
ea5999b9
GD
12975 CFLAGS="${CFLAGS} -fno-common -fpascal-strings"
12976 CPPFLAGS="${CPPFLAGS} -fno-common -fpascal-strings"
b4085ce6
GD
12977fi
12978
10f2d63a
VZ
12979if test "$wxUSE_CYGWIN" = 1 ; then
12980 TOOLKIT_DEF="${TOOLKIT_DEF} -D__WIN95__"
12981fi
12982
12983WXDEBUG=
12984
12985if test "$wxUSE_DEBUG_INFO" = "yes" ; then
12986 WXDEBUG="-g"
12987 wxUSE_OPTIMISE=no
12988fi
12989
12990if test "$wxUSE_DEBUG_GDB" = "yes" ; then
12991 wxUSE_DEBUG_INFO=yes
12992 WXDEBUG="-ggdb"
12993fi
12994
12995if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
12996 cat >> confdefs.h <<\EOF
12997#define WXDEBUG 1
12998EOF
12999
13000 WXDEBUG_DEFINE="-D__WXDEBUG__"
13001else
13002 if test "$wxUSE_GTK" = 1 ; then
13003 WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS"
13004 fi
13005fi
13006
13007if test "$wxUSE_MEM_TRACING" = "yes" ; then
13008 cat >> confdefs.h <<\EOF
13009#define wxUSE_MEMORY_TRACING 1
13010EOF
13011
13012 cat >> confdefs.h <<\EOF
13013#define wxUSE_GLOBAL_MEMORY_OPERATORS 1
47c13eb7
VS
13014EOF
13015
13016 cat >> confdefs.h <<\EOF
13017#define wxUSE_DEBUG_NEW_ALWAYS 1
10f2d63a
VZ
13018EOF
13019
13020 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
13021fi
13022
13023if test "$wxUSE_DMALLOC" = "yes" ; then
13024 DMALLOC_LINK="-ldmalloc"
13025fi
13026
13027PROFILE=
13028if test "$wxUSE_PROFILE" = "yes" ; then
13029 PROFILE="-pg"
13030fi
13031
13032DEP_INFO_FLAGS=
caa2c79b 13033CODE_GEN_FLAGS=
0f3f1cbc 13034CODE_GEN_FLAGS_CXX=
10f2d63a
VZ
13035if test "$GCC" = yes ; then
13036 if test "$wxUSE_NO_RTTI" = "yes" ; then
0f3f1cbc 13037 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS -fno-rtti"
10f2d63a
VZ
13038 fi
13039 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
0f3f1cbc 13040 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS -fno-exceptions"
10f2d63a
VZ
13041 fi
13042 if test "$wxUSE_PERMISSIVE" = "yes" ; then
caa2c79b 13043 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive"
10f2d63a
VZ
13044 fi
13045 if test "$wxUSE_NO_DEPS" = "no" ; then
13046 DEP_INFO_FLAGS="-MMD"
13047 fi
13048fi
13049
13050
13051CXXFLAGS=`echo "${CXXFLAGS}" | sed "s/\-O.//g" `
13052CFLAGS=`echo "${CFLAGS}" | sed "s/\-O.//g" `
13053if test "$wxUSE_OPTIMISE" = "no" ; then
13054 OPTIMISE=
13055else
13056 if test "$GCC" = yes ; then
13057 OPTIMISE="-O2"
13058 case "${host}" in
13059 i586-*-*|i686-*-* )
13060 OPTIMISE="${OPTIMISE} "
13061 ;;
13062 esac
13063 else
13064 OPTIMISE="-O"
13065 fi
13066fi
13067
13068
13069ZLIB_INCLUDE=
422107f9 13070if test "$wxUSE_ZLIB" = "yes" -o "$wxUSE_ZLIB" = "sys" ; then
10f2d63a
VZ
13071 cat >> confdefs.h <<\EOF
13072#define wxUSE_ZLIB 1
13073EOF
13074
422107f9
VZ
13075 if test "$wxUSE_ZLIB" = "yes" ; then
13076 ZLIB_INCLUDE="-I\${top_srcdir}/src/zlib"
13077 else
13078 ZLIB_LINK=
13079 ac_safe=`echo "zlib.h" | sed 'y%./+-%__p_%'`
13080echo $ac_n "checking for zlib.h""... $ac_c" 1>&6
1216f52d 13081echo "configure:13082: checking for zlib.h" >&5
422107f9
VZ
13082if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
13083 echo $ac_n "(cached) $ac_c" 1>&6
13084else
13085 cat > conftest.$ac_ext <<EOF
1216f52d 13086#line 13087 "configure"
422107f9
VZ
13087#include "confdefs.h"
13088#include <zlib.h>
13089EOF
13090ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1216f52d 13091{ (eval echo configure:13092: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
422107f9
VZ
13092ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13093if test -z "$ac_err"; then
13094 rm -rf conftest*
13095 eval "ac_cv_header_$ac_safe=yes"
13096else
13097 echo "$ac_err" >&5
13098 echo "configure: failed program was:" >&5
13099 cat conftest.$ac_ext >&5
13100 rm -rf conftest*
13101 eval "ac_cv_header_$ac_safe=no"
13102fi
13103rm -f conftest*
13104fi
13105if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13106 echo "$ac_t""yes" 1>&6
13107 echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6
1216f52d 13108echo "configure:13109: checking for deflate in -lz" >&5
422107f9
VZ
13109ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'`
13110if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13111 echo $ac_n "(cached) $ac_c" 1>&6
13112else
13113 ac_save_LIBS="$LIBS"
13114LIBS="-lz $LIBS"
13115cat > conftest.$ac_ext <<EOF
1216f52d 13116#line 13117 "configure"
422107f9
VZ
13117#include "confdefs.h"
13118/* Override any gcc2 internal prototype to avoid an error. */
13119/* We use char because int might match the return type of a gcc2
13120 builtin and then its argument prototype would still apply. */
13121char deflate();
13122
13123int main() {
13124deflate()
13125; return 0; }
13126EOF
1216f52d 13127if { (eval echo configure:13128: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
422107f9
VZ
13128 rm -rf conftest*
13129 eval "ac_cv_lib_$ac_lib_var=yes"
13130else
13131 echo "configure: failed program was:" >&5
13132 cat conftest.$ac_ext >&5
13133 rm -rf conftest*
13134 eval "ac_cv_lib_$ac_lib_var=no"
13135fi
13136rm -f conftest*
13137LIBS="$ac_save_LIBS"
13138
13139fi
13140if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13141 echo "$ac_t""yes" 1>&6
13142 ZLIB_LINK="-lz"
13143else
13144 echo "$ac_t""no" 1>&6
13145fi
13146
13147else
13148 echo "$ac_t""no" 1>&6
13149fi
13150
13151 if test "x$ZLIB_LINK" = "x" ; then
13152 { echo "configure: error: system zlib compression library not found! Use --with-zlib=yes to use built-in zlib" 1>&2; exit 1; }
13153 fi
13154 fi
10f2d63a
VZ
13155fi
13156
13157PNG_INCLUDE=
422107f9 13158if test "$wxUSE_LIBPNG" = "yes" -o "$wxUSE_LIBPNG" = "sys" ; then
10f2d63a
VZ
13159 cat >> confdefs.h <<\EOF
13160#define wxUSE_LIBPNG 1
13161EOF
13162
41fd4136 13163 if test "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
422107f9
VZ
13164 echo "configure: warning: --with-libpng=sys doesn't work without --with-zlib=sys, will compile the built-in libpng instead" 1>&2
13165 wxUSE_LIBPNG=yes
13166 fi
13167
13168 if test "$wxUSE_LIBPNG" = "yes" ; then
13169 PNG_INCLUDE="-I\${top_srcdir}/src/png"
13170 else
13171 PNG_LINK=
13172 ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'`
13173echo $ac_n "checking for png.h""... $ac_c" 1>&6
1216f52d 13174echo "configure:13175: checking for png.h" >&5
422107f9
VZ
13175if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
13176 echo $ac_n "(cached) $ac_c" 1>&6
13177else
13178 cat > conftest.$ac_ext <<EOF
1216f52d 13179#line 13180 "configure"
422107f9
VZ
13180#include "confdefs.h"
13181#include <png.h>
13182EOF
13183ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1216f52d 13184{ (eval echo configure:13185: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
422107f9
VZ
13185ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13186if test -z "$ac_err"; then
13187 rm -rf conftest*
13188 eval "ac_cv_header_$ac_safe=yes"
13189else
13190 echo "$ac_err" >&5
13191 echo "configure: failed program was:" >&5
13192 cat conftest.$ac_ext >&5
13193 rm -rf conftest*
13194 eval "ac_cv_header_$ac_safe=no"
13195fi
13196rm -f conftest*
13197fi
13198if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13199 echo "$ac_t""yes" 1>&6
13200 echo $ac_n "checking for png_check_sig in -lpng""... $ac_c" 1>&6
1216f52d 13201echo "configure:13202: checking for png_check_sig in -lpng" >&5
422107f9
VZ
13202ac_lib_var=`echo png'_'png_check_sig | sed 'y%./+-%__p_%'`
13203if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13204 echo $ac_n "(cached) $ac_c" 1>&6
13205else
13206 ac_save_LIBS="$LIBS"
13207LIBS="-lpng -lz -lm $LIBS"
13208cat > conftest.$ac_ext <<EOF
1216f52d 13209#line 13210 "configure"
422107f9
VZ
13210#include "confdefs.h"
13211/* Override any gcc2 internal prototype to avoid an error. */
13212/* We use char because int might match the return type of a gcc2
13213 builtin and then its argument prototype would still apply. */
13214char png_check_sig();
13215
13216int main() {
13217png_check_sig()
13218; return 0; }
13219EOF
1216f52d 13220if { (eval echo configure:13221: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
422107f9
VZ
13221 rm -rf conftest*
13222 eval "ac_cv_lib_$ac_lib_var=yes"
13223else
13224 echo "configure: failed program was:" >&5
13225 cat conftest.$ac_ext >&5
13226 rm -rf conftest*
13227 eval "ac_cv_lib_$ac_lib_var=no"
13228fi
13229rm -f conftest*
13230LIBS="$ac_save_LIBS"
13231
13232fi
13233if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13234 echo "$ac_t""yes" 1>&6
13235 PNG_LINK="-lpng"
13236else
13237 echo "$ac_t""no" 1>&6
13238fi
13239
13240
13241else
13242 echo "$ac_t""no" 1>&6
13243fi
13244
13245 if test "x$PNG_LINK" = "x" ; then
0dcf9893 13246 { echo "configure: error: system png library not found! Use --with-libpng=yes to use the built-in libpng" 1>&2; exit 1; }
422107f9
VZ
13247 fi
13248 fi
13249
10f2d63a
VZ
13250 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
13251fi
13252
13253JPEG_INCLUDE=
422107f9 13254if test "$wxUSE_LIBJPEG" = "yes" -o "$wxUSE_LIBJPEG" = "sys" ; then
10f2d63a
VZ
13255 cat >> confdefs.h <<\EOF
13256#define wxUSE_LIBJPEG 1
13257EOF
13258
422107f9
VZ
13259 if test "$wxUSE_LIBJPEG" = "yes" ; then
13260 JPEG_INCLUDE="-I\${top_srcdir}/src/jpeg"
13261 else
13262 JPEG_LINK=
13263 ac_safe=`echo "jpeglib.h" | sed 'y%./+-%__p_%'`
13264echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6
1216f52d 13265echo "configure:13266: checking for jpeglib.h" >&5
422107f9
VZ
13266if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
13267 echo $ac_n "(cached) $ac_c" 1>&6
13268else
13269 cat > conftest.$ac_ext <<EOF
1216f52d 13270#line 13271 "configure"
422107f9
VZ
13271#include "confdefs.h"
13272#include <jpeglib.h>
13273EOF
13274ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1216f52d 13275{ (eval echo configure:13276: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
422107f9
VZ
13276ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13277if test -z "$ac_err"; then
13278 rm -rf conftest*
13279 eval "ac_cv_header_$ac_safe=yes"
13280else
13281 echo "$ac_err" >&5
13282 echo "configure: failed program was:" >&5
13283 cat conftest.$ac_ext >&5
13284 rm -rf conftest*
13285 eval "ac_cv_header_$ac_safe=no"
13286fi
13287rm -f conftest*
13288fi
13289if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13290 echo "$ac_t""yes" 1>&6
13291 echo $ac_n "checking for jpeg_read_header in -ljpeg""... $ac_c" 1>&6
1216f52d 13292echo "configure:13293: checking for jpeg_read_header in -ljpeg" >&5
422107f9
VZ
13293ac_lib_var=`echo jpeg'_'jpeg_read_header | sed 'y%./+-%__p_%'`
13294if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13295 echo $ac_n "(cached) $ac_c" 1>&6
13296else
13297 ac_save_LIBS="$LIBS"
13298LIBS="-ljpeg $LIBS"
13299cat > conftest.$ac_ext <<EOF
1216f52d 13300#line 13301 "configure"
422107f9
VZ
13301#include "confdefs.h"
13302/* Override any gcc2 internal prototype to avoid an error. */
13303/* We use char because int might match the return type of a gcc2
13304 builtin and then its argument prototype would still apply. */
13305char jpeg_read_header();
13306
13307int main() {
13308jpeg_read_header()
13309; return 0; }
13310EOF
1216f52d 13311if { (eval echo configure:13312: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
422107f9
VZ
13312 rm -rf conftest*
13313 eval "ac_cv_lib_$ac_lib_var=yes"
13314else
13315 echo "configure: failed program was:" >&5
13316 cat conftest.$ac_ext >&5
13317 rm -rf conftest*
13318 eval "ac_cv_lib_$ac_lib_var=no"
13319fi
13320rm -f conftest*
13321LIBS="$ac_save_LIBS"
13322
13323fi
13324if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13325 echo "$ac_t""yes" 1>&6
13326 JPEG_LINK="-ljpeg"
13327else
13328 echo "$ac_t""no" 1>&6
13329fi
13330
13331else
13332 echo "$ac_t""no" 1>&6
13333fi
13334
13335 if test "x$JPEG_LINK" = "x" ; then
0dcf9893 13336 { echo "configure: error: system jpeg library not found! Use --with-libjpeg=yes to use the built-in one" 1>&2; exit 1; }
422107f9
VZ
13337 fi
13338 fi
10f2d63a
VZ
13339fi
13340
c7a2bf27 13341TIFF_INCLUDE=
0dcf9893 13342if test "$wxUSE_LIBTIFF" = "yes" -o "$wxUSE_LIBTIFF" = "sys" ; then
c7a2bf27
RR
13343 cat >> confdefs.h <<\EOF
13344#define wxUSE_LIBTIFF 1
13345EOF
13346
0dcf9893
VZ
13347 if test "$wxUSE_LIBTIFF" = "yes" ; then
13348 TIFF_INCLUDE="-I\${top_srcdir}/src/tiff"
13349 else
13350 TIFF_LINK=
13351 ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'`
13352echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6
1216f52d 13353echo "configure:13354: checking for tiffio.h" >&5
0dcf9893
VZ
13354if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
13355 echo $ac_n "(cached) $ac_c" 1>&6
13356else
13357 cat > conftest.$ac_ext <<EOF
1216f52d 13358#line 13359 "configure"
0dcf9893
VZ
13359#include "confdefs.h"
13360#include <tiffio.h>
13361EOF
13362ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1216f52d 13363{ (eval echo configure:13364: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
0dcf9893
VZ
13364ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13365if test -z "$ac_err"; then
13366 rm -rf conftest*
13367 eval "ac_cv_header_$ac_safe=yes"
13368else
13369 echo "$ac_err" >&5
13370 echo "configure: failed program was:" >&5
13371 cat conftest.$ac_ext >&5
13372 rm -rf conftest*
13373 eval "ac_cv_header_$ac_safe=no"
13374fi
13375rm -f conftest*
13376fi
13377if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13378 echo "$ac_t""yes" 1>&6
13379 echo $ac_n "checking for TIFFError in -ltiff""... $ac_c" 1>&6
1216f52d 13380echo "configure:13381: checking for TIFFError in -ltiff" >&5
0dcf9893
VZ
13381ac_lib_var=`echo tiff'_'TIFFError | sed 'y%./+-%__p_%'`
13382if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13383 echo $ac_n "(cached) $ac_c" 1>&6
13384else
13385 ac_save_LIBS="$LIBS"
13386LIBS="-ltiff -lm $LIBS"
13387cat > conftest.$ac_ext <<EOF
1216f52d 13388#line 13389 "configure"
0dcf9893
VZ
13389#include "confdefs.h"
13390/* Override any gcc2 internal prototype to avoid an error. */
13391/* We use char because int might match the return type of a gcc2
13392 builtin and then its argument prototype would still apply. */
13393char TIFFError();
13394
13395int main() {
13396TIFFError()
13397; return 0; }
13398EOF
1216f52d 13399if { (eval echo configure:13400: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
0dcf9893
VZ
13400 rm -rf conftest*
13401 eval "ac_cv_lib_$ac_lib_var=yes"
13402else
13403 echo "configure: failed program was:" >&5
13404 cat conftest.$ac_ext >&5
13405 rm -rf conftest*
13406 eval "ac_cv_lib_$ac_lib_var=no"
13407fi
13408rm -f conftest*
13409LIBS="$ac_save_LIBS"
13410
13411fi
13412if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13413 echo "$ac_t""yes" 1>&6
13414 TIFF_LINK="-ltiff"
13415else
13416 echo "$ac_t""no" 1>&6
13417fi
13418
13419else
13420 echo "$ac_t""no" 1>&6
13421fi
13422
13423 if test "x$TIFF_LINK" = "x" ; then
13424 { echo "configure: error: system tiff library not found! Use --with-libtiff=yes to use the built-in one" 1>&2; exit 1; }
13425 fi
13426 fi
c7a2bf27
RR
13427fi
13428
3fed1840
RR
13429FREETYPE_INCLUDE=
13430if test "$wxUSE_FREETYPE" = "yes" -o "$wxUSE_FREETYPE" = "sys" ; then
13431 cat >> confdefs.h <<\EOF
13432#define wxUSE_FREETYPE 1
13433EOF
13434
13435 if test "$wxUSE_FREETYPE" = "yes" ; then
13436 FREETYPE_INCLUDE="-I\${top_srcdir}/src/freetype"
13437 else
13438 FREETYPE_LINK=
13439 ac_safe=`echo "freetype.h" | sed 'y%./+-%__p_%'`
13440echo $ac_n "checking for freetype.h""... $ac_c" 1>&6
1216f52d 13441echo "configure:13442: checking for freetype.h" >&5
3fed1840
RR
13442if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
13443 echo $ac_n "(cached) $ac_c" 1>&6
13444else
13445 cat > conftest.$ac_ext <<EOF
1216f52d 13446#line 13447 "configure"
3fed1840
RR
13447#include "confdefs.h"
13448#include <freetype.h>
13449EOF
13450ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1216f52d 13451{ (eval echo configure:13452: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3fed1840
RR
13452ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13453if test -z "$ac_err"; then
13454 rm -rf conftest*
13455 eval "ac_cv_header_$ac_safe=yes"
13456else
13457 echo "$ac_err" >&5
13458 echo "configure: failed program was:" >&5
13459 cat conftest.$ac_ext >&5
13460 rm -rf conftest*
13461 eval "ac_cv_header_$ac_safe=no"
13462fi
13463rm -f conftest*
13464fi
13465if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13466 echo "$ac_t""yes" 1>&6
13467 echo $ac_n "checking for FT_Render_Glyph in -lfreetype""... $ac_c" 1>&6
1216f52d 13468echo "configure:13469: checking for FT_Render_Glyph in -lfreetype" >&5
3fed1840
RR
13469ac_lib_var=`echo freetype'_'FT_Render_Glyph | sed 'y%./+-%__p_%'`
13470if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13471 echo $ac_n "(cached) $ac_c" 1>&6
13472else
13473 ac_save_LIBS="$LIBS"
13474LIBS="-lfreetype -lm $LIBS"
13475cat > conftest.$ac_ext <<EOF
1216f52d 13476#line 13477 "configure"
3fed1840
RR
13477#include "confdefs.h"
13478/* Override any gcc2 internal prototype to avoid an error. */
13479/* We use char because int might match the return type of a gcc2
13480 builtin and then its argument prototype would still apply. */
13481char FT_Render_Glyph();
13482
13483int main() {
13484FT_Render_Glyph()
13485; return 0; }
13486EOF
1216f52d 13487if { (eval echo configure:13488: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3fed1840
RR
13488 rm -rf conftest*
13489 eval "ac_cv_lib_$ac_lib_var=yes"
13490else
13491 echo "configure: failed program was:" >&5
13492 cat conftest.$ac_ext >&5
13493 rm -rf conftest*
13494 eval "ac_cv_lib_$ac_lib_var=no"
13495fi
13496rm -f conftest*
13497LIBS="$ac_save_LIBS"
13498
13499fi
13500if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13501 echo "$ac_t""yes" 1>&6
13502 FREETYPE_LINK="-lfreetype"
13503else
13504 echo "$ac_t""no" 1>&6
13505fi
13506
13507
13508else
13509 echo "$ac_t""no" 1>&6
13510fi
13511
13512 if test "x$FREETYPE_LINK" = "x" ; then
13513 { echo "configure: error: system freetype library not found! Use --with-freetype=yes to use the built-in freetype" 1>&2; exit 1; }
13514 fi
13515 fi
13516fi
13517
10f2d63a
VZ
13518if test "$wxUSE_OPENGL" = "yes"; then
13519 ac_safe=`echo "GL/gl.h" | sed 'y%./+-%__p_%'`
13520echo $ac_n "checking for GL/gl.h""... $ac_c" 1>&6
1216f52d 13521echo "configure:13522: checking for GL/gl.h" >&5
10f2d63a
VZ
13522if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
13523 echo $ac_n "(cached) $ac_c" 1>&6
13524else
13525 cat > conftest.$ac_ext <<EOF
1216f52d 13526#line 13527 "configure"
10f2d63a
VZ
13527#include "confdefs.h"
13528#include <GL/gl.h>
13529EOF
13530ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1216f52d 13531{ (eval echo configure:13532: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
13532ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13533if test -z "$ac_err"; then
13534 rm -rf conftest*
13535 eval "ac_cv_header_$ac_safe=yes"
13536else
13537 echo "$ac_err" >&5
13538 echo "configure: failed program was:" >&5
13539 cat conftest.$ac_ext >&5
13540 rm -rf conftest*
13541 eval "ac_cv_header_$ac_safe=no"
13542fi
13543rm -f conftest*
13544fi
13545if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13546 echo "$ac_t""yes" 1>&6
13547
bdad4e7e
RR
13548 cat >> confdefs.h <<\EOF
13549#define wxUSE_OPENGL 1
13550EOF
13551
13552 cat >> confdefs.h <<\EOF
13553#define wxUSE_GLCANVAS 1
13554EOF
13555
13556 echo $ac_n "checking for glFlush in -lGL""... $ac_c" 1>&6
1216f52d 13557echo "configure:13558: checking for glFlush in -lGL" >&5
bdad4e7e 13558ac_lib_var=`echo GL'_'glFlush | sed 'y%./+-%__p_%'`
10f2d63a
VZ
13559if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13560 echo $ac_n "(cached) $ac_c" 1>&6
13561else
13562 ac_save_LIBS="$LIBS"
bdad4e7e 13563LIBS="-lGL $LIBS"
10f2d63a 13564cat > conftest.$ac_ext <<EOF
1216f52d 13565#line 13566 "configure"
10f2d63a
VZ
13566#include "confdefs.h"
13567/* Override any gcc2 internal prototype to avoid an error. */
13568/* We use char because int might match the return type of a gcc2
13569 builtin and then its argument prototype would still apply. */
bdad4e7e 13570char glFlush();
10f2d63a
VZ
13571
13572int main() {
bdad4e7e 13573glFlush()
10f2d63a
VZ
13574; return 0; }
13575EOF
1216f52d 13576if { (eval echo configure:13577: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
13577 rm -rf conftest*
13578 eval "ac_cv_lib_$ac_lib_var=yes"
13579else
13580 echo "configure: failed program was:" >&5
13581 cat conftest.$ac_ext >&5
13582 rm -rf conftest*
13583 eval "ac_cv_lib_$ac_lib_var=no"
13584fi
13585rm -f conftest*
13586LIBS="$ac_save_LIBS"
13587
13588fi
13589if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13590 echo "$ac_t""yes" 1>&6
13591
f6bcfd97 13592 OPENGL_LINK="-lGL -lGLU"
10f2d63a
VZ
13593
13594else
13595 echo "$ac_t""no" 1>&6
13596
bdad4e7e 13597 echo $ac_n "checking for glFlush in -lMesaGL""... $ac_c" 1>&6
1216f52d 13598echo "configure:13599: checking for glFlush in -lMesaGL" >&5
bdad4e7e 13599ac_lib_var=`echo MesaGL'_'glFlush | sed 'y%./+-%__p_%'`
10f2d63a
VZ
13600if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13601 echo $ac_n "(cached) $ac_c" 1>&6
13602else
13603 ac_save_LIBS="$LIBS"
13604LIBS="-lMesaGL $LIBS"
13605cat > conftest.$ac_ext <<EOF
1216f52d 13606#line 13607 "configure"
10f2d63a
VZ
13607#include "confdefs.h"
13608/* Override any gcc2 internal prototype to avoid an error. */
13609/* We use char because int might match the return type of a gcc2
13610 builtin and then its argument prototype would still apply. */
bdad4e7e 13611char glFlush();
10f2d63a
VZ
13612
13613int main() {
bdad4e7e 13614glFlush()
10f2d63a
VZ
13615; return 0; }
13616EOF
1216f52d 13617if { (eval echo configure:13618: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
13618 rm -rf conftest*
13619 eval "ac_cv_lib_$ac_lib_var=yes"
13620else
13621 echo "configure: failed program was:" >&5
13622 cat conftest.$ac_ext >&5
13623 rm -rf conftest*
13624 eval "ac_cv_lib_$ac_lib_var=no"
13625fi
13626rm -f conftest*
13627LIBS="$ac_save_LIBS"
13628
13629fi
13630if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13631 echo "$ac_t""yes" 1>&6
13632
f6bcfd97 13633 OPENGL_LINK="-lMesaGL -lMesaGLU"
10f2d63a
VZ
13634
13635else
13636 echo "$ac_t""no" 1>&6
10f2d63a
VZ
13637fi
13638
13639
13640fi
13641
13642
13643else
13644 echo "$ac_t""no" 1>&6
13645wxUSE_OPENGL=0
13646fi
13647
13648fi
13649
13650
13651if test "$wxUSE_GUI" = "yes"; then
13652 cat >> confdefs.h <<\EOF
13653#define wxUSE_GUI 1
13654EOF
13655
13656
13657 else
13658 cat >> confdefs.h <<\EOF
13659#define wxUSE_NOGUI 1
13660EOF
13661
13662fi
13663
13664
13665if test "$wxUSE_UNIX" = "yes"; then
13666 cat >> confdefs.h <<\EOF
13667#define wxUSE_UNIX 1
13668EOF
13669
13670fi
13671
13672
13673if test "$wxUSE_APPLE_IEEE" = "yes"; then
13674 cat >> confdefs.h <<\EOF
13675#define wxUSE_APPLE_IEEE 1
13676EOF
13677
13678fi
13679
10f2d63a
VZ
13680if test "$wxUSE_WAVE" = "yes"; then
13681 cat >> confdefs.h <<\EOF
13682#define wxUSE_WAVE 1
13683EOF
13684
13685fi
13686
13687if test "$wxUSE_FILE" = "yes"; then
13688 cat >> confdefs.h <<\EOF
13689#define wxUSE_FILE 1
13690EOF
13691
13692fi
13693
24528b0c
VS
13694if test "$wxUSE_FILESYSTEM" = "yes"; then
13695 cat >> confdefs.h <<\EOF
13696#define wxUSE_FILESYSTEM 1
13697EOF
13698
13699fi
13700
10f2d63a
VZ
13701if test "$wxUSE_FS_INET" = "yes"; then
13702 cat >> confdefs.h <<\EOF
13703#define wxUSE_FS_INET 1
13704EOF
13705
13706fi
13707
13708if test "$wxUSE_FS_ZIP" = "yes"; then
13709 cat >> confdefs.h <<\EOF
13710#define wxUSE_FS_ZIP 1
13711EOF
13712
13713fi
13714
13715if test "$wxUSE_ZIPSTREAM" = "yes"; then
13716 cat >> confdefs.h <<\EOF
13717#define wxUSE_ZIPSTREAM 1
13718EOF
13719
13720fi
13721
eb4efbdc
VZ
13722if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
13723 cat >> confdefs.h <<\EOF
13724#define wxUSE_ON_FATAL_EXCEPTION 1
13725EOF
13726
13727fi
13728
10f2d63a
VZ
13729if test "$wxUSE_BUSYINFO" = "yes"; then
13730 cat >> confdefs.h <<\EOF
13731#define wxUSE_BUSYINFO 1
13732EOF
13733
13734fi
13735
13736if test "$wxUSE_STD_IOSTREAM" = "yes"; then
13737 cat >> confdefs.h <<\EOF
13738#define wxUSE_STD_IOSTREAM 1
13739EOF
13740
13741fi
13742
13743if test "$wxUSE_TEXTFILE" = "yes"; then
13744 if test "$wxUSE_FILE" != "yes"; then
13745 echo "configure: warning: wxTextFile requires wxFile and it won't be compiled without it" 1>&2
13746 else
13747 cat >> confdefs.h <<\EOF
13748#define wxUSE_TEXTFILE 1
13749EOF
13750
13751 fi
13752fi
13753
13754if test "$wxUSE_CONFIG" = "yes" ; then
13755 if test "$wxUSE_TEXTFILE" != "yes"; then
13756 echo "configure: warning: wxConfig requires wxTextFile and it won't be compiled without it" 1>&2
13757 else
13758 cat >> confdefs.h <<\EOF
13759#define wxUSE_CONFIG 1
13760EOF
13761
13762 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
13763 fi
13764fi
13765
13766if test "$wxUSE_INTL" = "yes" ; then
13767 if test "$wxUSE_FILE" != "yes"; then
13768 echo "configure: warning: I18n code requires wxFile and it won't be compiled without it" 1>&2
13769 else
13770 cat >> confdefs.h <<\EOF
13771#define wxUSE_INTL 1
13772EOF
13773
13774 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
f6bcfd97 13775 GUIDIST="$GUIDIST INTL_DIST"
10f2d63a
VZ
13776 fi
13777fi
13778
13779if test "$wxUSE_LOG" = "yes"; then
13780 cat >> confdefs.h <<\EOF
13781#define wxUSE_LOG 1
13782EOF
13783
13784fi
13785
13786if test "$wxUSE_LONGLONG" = "yes"; then
13787 cat >> confdefs.h <<\EOF
13788#define wxUSE_LONGLONG 1
13789EOF
13790
13791fi
13792
e8f65ba6
RR
13793if test "$wxUSE_GEOMETRY" = "yes"; then
13794 cat >> confdefs.h <<\EOF
13795#define wxUSE_GEOMETRY 1
13796EOF
13797
13798fi
13799
10f2d63a
VZ
13800if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then
13801 cat >> confdefs.h <<\EOF
13802#define wxUSE_DIALUP_MANAGER 1
13803EOF
13804
70f7a477 13805 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
10f2d63a
VZ
13806fi
13807
13808if test "$wxUSE_STREAMS" = "yes" ; then
13809 cat >> confdefs.h <<\EOF
13810#define wxUSE_STREAMS 1
13811EOF
13812
13813fi
13814
10f2d63a 13815
afc31813 13816if test "$wxUSE_TIMEDATE" = "yes"; then
83307f33
VZ
13817 for ac_func in strptime
13818do
13819echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1216f52d 13820echo "configure:13821: checking for $ac_func" >&5
83307f33
VZ
13821if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13822 echo $ac_n "(cached) $ac_c" 1>&6
13823else
13824 cat > conftest.$ac_ext <<EOF
1216f52d 13825#line 13826 "configure"
83307f33
VZ
13826#include "confdefs.h"
13827/* System header to define __stub macros and hopefully few prototypes,
13828 which can conflict with char $ac_func(); below. */
13829#include <assert.h>
13830/* Override any gcc2 internal prototype to avoid an error. */
13831/* We use char because int might match the return type of a gcc2
13832 builtin and then its argument prototype would still apply. */
13833char $ac_func();
13834
13835int main() {
13836
13837/* The GNU C library defines this for functions which it implements
13838 to always fail with ENOSYS. Some functions are actually named
13839 something starting with __ and the normal name is an alias. */
13840#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13841choke me
13842#else
e8482f24 13843$ac_func();
83307f33
VZ
13844#endif
13845
13846; return 0; }
13847EOF
1216f52d 13848if { (eval echo configure:13849: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
83307f33
VZ
13849 rm -rf conftest*
13850 eval "ac_cv_func_$ac_func=yes"
13851else
13852 echo "configure: failed program was:" >&5
13853 cat conftest.$ac_ext >&5
13854 rm -rf conftest*
13855 eval "ac_cv_func_$ac_func=no"
13856fi
13857rm -f conftest*
13858fi
13859
13860if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13861 echo "$ac_t""yes" 1>&6
13862 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13863 cat >> confdefs.h <<EOF
13864#define $ac_tr_func 1
13865EOF
13866
13867else
13868 echo "$ac_t""no" 1>&6
13869fi
13870done
13871
13872
360d6699 13873 echo $ac_n "checking for timezone variable in <time.h>""... $ac_c" 1>&6
1216f52d 13874echo "configure:13875: checking for timezone variable in <time.h>" >&5
360d6699
VZ
13875if eval "test \"`echo '$''{'wx_cv_var_timezone'+set}'`\" = set"; then
13876 echo $ac_n "(cached) $ac_c" 1>&6
13877else
13878
13879 cat > conftest.$ac_ext <<EOF
1216f52d 13880#line 13881 "configure"
360d6699
VZ
13881#include "confdefs.h"
13882
b4085ce6 13883 #include <time.h>
360d6699
VZ
13884
13885int main() {
13886
13887 int tz;
13888 tz = __timezone;
13889
13890; return 0; }
13891EOF
1216f52d 13892if { (eval echo configure:13893: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
360d6699
VZ
13893 rm -rf conftest*
13894
13895 wx_cv_var_timezone=__timezone
13896
13897else
13898 echo "configure: failed program was:" >&5
13899 cat conftest.$ac_ext >&5
13900 rm -rf conftest*
13901
13902 cat > conftest.$ac_ext <<EOF
1216f52d 13903#line 13904 "configure"
360d6699
VZ
13904#include "confdefs.h"
13905
b4085ce6 13906 #include <time.h>
360d6699
VZ
13907
13908int main() {
13909
13910 int tz;
13911 tz = _timezone;
13912
13913; return 0; }
13914EOF
1216f52d 13915if { (eval echo configure:13916: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
360d6699
VZ
13916 rm -rf conftest*
13917
13918 wx_cv_var_timezone=_timezone
13919
5357c8e8
VZ
13920else
13921 echo "configure: failed program was:" >&5
13922 cat conftest.$ac_ext >&5
13923 rm -rf conftest*
13924
13925 cat > conftest.$ac_ext <<EOF
1216f52d 13926#line 13927 "configure"
5357c8e8
VZ
13927#include "confdefs.h"
13928
b4085ce6 13929 #include <time.h>
5357c8e8
VZ
13930
13931int main() {
13932
13933 int tz;
13934 tz = timezone;
13935
13936; return 0; }
13937EOF
1216f52d 13938if { (eval echo configure:13939: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5357c8e8
VZ
13939 rm -rf conftest*
13940
13941 wx_cv_var_timezone=timezone
13942
360d6699
VZ
13943else
13944 echo "configure: failed program was:" >&5
13945 cat conftest.$ac_ext >&5
13946 rm -rf conftest*
13947 { echo "configure: error: no timezone variable" 1>&2; exit 1; }
5357c8e8
VZ
13948
13949fi
13950rm -f conftest*
13951
360d6699
VZ
13952
13953fi
13954rm -f conftest*
13955
13956
13957fi
13958rm -f conftest*
13959
13960
13961fi
13962
13963echo "$ac_t""$wx_cv_var_timezone" 1>&6
13964
13965 cat >> confdefs.h <<EOF
13966#define WX_TIMEZONE $wx_cv_var_timezone
13967EOF
13968
13969
3fcdd07b 13970 for ac_func in localtime
afc31813
VZ
13971do
13972echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1216f52d 13973echo "configure:13974: checking for $ac_func" >&5
afc31813
VZ
13974if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13975 echo $ac_n "(cached) $ac_c" 1>&6
13976else
13977 cat > conftest.$ac_ext <<EOF
1216f52d 13978#line 13979 "configure"
10f2d63a 13979#include "confdefs.h"
afc31813
VZ
13980/* System header to define __stub macros and hopefully few prototypes,
13981 which can conflict with char $ac_func(); below. */
13982#include <assert.h>
13983/* Override any gcc2 internal prototype to avoid an error. */
13984/* We use char because int might match the return type of a gcc2
13985 builtin and then its argument prototype would still apply. */
13986char $ac_func();
13987
10f2d63a 13988int main() {
afc31813
VZ
13989
13990/* The GNU C library defines this for functions which it implements
13991 to always fail with ENOSYS. Some functions are actually named
13992 something starting with __ and the normal name is an alias. */
13993#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13994choke me
13995#else
e8482f24 13996$ac_func();
afc31813
VZ
13997#endif
13998
10f2d63a
VZ
13999; return 0; }
14000EOF
1216f52d 14001if { (eval echo configure:14002: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a 14002 rm -rf conftest*
afc31813 14003 eval "ac_cv_func_$ac_func=yes"
10f2d63a
VZ
14004else
14005 echo "configure: failed program was:" >&5
14006 cat conftest.$ac_ext >&5
14007 rm -rf conftest*
afc31813
VZ
14008 eval "ac_cv_func_$ac_func=no"
14009fi
14010rm -f conftest*
14011fi
14012
14013if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14014 echo "$ac_t""yes" 1>&6
14015 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14016 cat >> confdefs.h <<EOF
14017#define $ac_tr_func 1
14018EOF
3fcdd07b 14019
afc31813
VZ
14020else
14021 echo "$ac_t""no" 1>&6
14022fi
14023done
14024
14025
0470b1e6
VZ
14026 if test "$ac_cv_func_localtime" = "yes"; then
14027 echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6
1216f52d 14028echo "configure:14029: checking for tm_gmtoff in struct tm" >&5
0470b1e6
VZ
14029if eval "test \"`echo '$''{'wx_cv_struct_tm_has_gmtoff'+set}'`\" = set"; then
14030 echo $ac_n "(cached) $ac_c" 1>&6
14031else
14032
14033 cat > conftest.$ac_ext <<EOF
1216f52d 14034#line 14035 "configure"
0470b1e6
VZ
14035#include "confdefs.h"
14036
b4085ce6 14037 #include <time.h>
0470b1e6
VZ
14038
14039int main() {
14040
14041 struct tm tm;
14042 tm.tm_gmtoff++;
14043
14044; return 0; }
14045EOF
1216f52d 14046if { (eval echo configure:14047: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
0470b1e6
VZ
14047 rm -rf conftest*
14048
f03a98d8 14049 wx_cv_struct_tm_has_gmtoff=yes
0470b1e6
VZ
14050 cat >> confdefs.h <<\EOF
14051#define WX_GMTOFF_IN_TM 1
14052EOF
14053
14054
14055else
14056 echo "configure: failed program was:" >&5
14057 cat conftest.$ac_ext >&5
14058 rm -rf conftest*
14059 wx_cv_struct_tm_has_gmtoff=no
14060
14061fi
14062rm -f conftest*
14063
14064fi
14065
14066echo "$ac_t""$wx_cv_struct_tm_has_gmtoff" 1>&6
3fcdd07b
VZ
14067 fi
14068
14069 for ac_func in gettimeofday ftime
14070do
14071echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1216f52d 14072echo "configure:14073: checking for $ac_func" >&5
3fcdd07b
VZ
14073if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14074 echo $ac_n "(cached) $ac_c" 1>&6
14075else
14076 cat > conftest.$ac_ext <<EOF
1216f52d 14077#line 14078 "configure"
3fcdd07b
VZ
14078#include "confdefs.h"
14079/* System header to define __stub macros and hopefully few prototypes,
14080 which can conflict with char $ac_func(); below. */
14081#include <assert.h>
14082/* Override any gcc2 internal prototype to avoid an error. */
14083/* We use char because int might match the return type of a gcc2
14084 builtin and then its argument prototype would still apply. */
14085char $ac_func();
14086
14087int main() {
14088
14089/* The GNU C library defines this for functions which it implements
14090 to always fail with ENOSYS. Some functions are actually named
14091 something starting with __ and the normal name is an alias. */
14092#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14093choke me
14094#else
e8482f24 14095$ac_func();
3fcdd07b
VZ
14096#endif
14097
14098; return 0; }
14099EOF
1216f52d 14100if { (eval echo configure:14101: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3fcdd07b
VZ
14101 rm -rf conftest*
14102 eval "ac_cv_func_$ac_func=yes"
14103else
14104 echo "configure: failed program was:" >&5
14105 cat conftest.$ac_ext >&5
14106 rm -rf conftest*
14107 eval "ac_cv_func_$ac_func=no"
14108fi
14109rm -f conftest*
14110fi
14111
14112if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14113 echo "$ac_t""yes" 1>&6
14114 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14115 cat >> confdefs.h <<EOF
14116#define $ac_tr_func 1
14117EOF
14118 break
14119else
14120 echo "$ac_t""no" 1>&6
14121fi
14122done
14123
14124
14125 if test "$ac_cv_func_gettimeofday" = "yes"; then
afc31813 14126 echo $ac_n "checking whether gettimeofday takes two arguments""... $ac_c" 1>&6
1216f52d 14127echo "configure:14128: checking whether gettimeofday takes two arguments" >&5
afc31813
VZ
14128if eval "test \"`echo '$''{'wx_cv_func_gettimeofday_has_2_args'+set}'`\" = set"; then
14129 echo $ac_n "(cached) $ac_c" 1>&6
14130else
14131
14132
14133 ac_ext=C
14134# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14135ac_cpp='$CXXCPP $CPPFLAGS'
14136ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14137ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14138cross_compiling=$ac_cv_prog_cxx_cross
14139
14140
14141 cat > conftest.$ac_ext <<EOF
1216f52d 14142#line 14143 "configure"
10f2d63a 14143#include "confdefs.h"
afc31813
VZ
14144
14145 #include <sys/time.h>
14146 #include <unistd.h>
14147
10f2d63a 14148int main() {
afc31813
VZ
14149
14150 struct timeval tv;
14151 struct timezone tz;
14152 gettimeofday(&tv, &tz);
14153
10f2d63a
VZ
14154; return 0; }
14155EOF
1216f52d 14156if { (eval echo configure:14157: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10f2d63a 14157 rm -rf conftest*
afc31813 14158 wx_cv_func_gettimeofday_has_2_args=yes
10f2d63a
VZ
14159else
14160 echo "configure: failed program was:" >&5
14161 cat conftest.$ac_ext >&5
14162 rm -rf conftest*
14163 cat > conftest.$ac_ext <<EOF
1216f52d 14164#line 14165 "configure"
10f2d63a 14165#include "confdefs.h"
afc31813
VZ
14166
14167 #include <sys/time.h>
14168 #include <unistd.h>
14169
10f2d63a 14170int main() {
afc31813
VZ
14171
14172 struct timeval tv;
14173 gettimeofday(&tv);
14174
10f2d63a
VZ
14175; return 0; }
14176EOF
1216f52d 14177if { (eval echo configure:14178: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10f2d63a 14178 rm -rf conftest*
afc31813 14179 wx_cv_func_gettimeofday_has_2_args=no
10f2d63a
VZ
14180else
14181 echo "configure: failed program was:" >&5
14182 cat conftest.$ac_ext >&5
14183 rm -rf conftest*
afc31813
VZ
14184 wx_cv_func_gettimeofday_has_2_args=unknown
14185
10f2d63a
VZ
14186fi
14187rm -f conftest*
afc31813 14188
10f2d63a
VZ
14189fi
14190rm -f conftest*
afc31813 14191 ac_ext=c
10f2d63a
VZ
14192# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14193ac_cpp='$CPP $CPPFLAGS'
14194ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14195ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14196cross_compiling=$ac_cv_prog_cc_cross
14197
afc31813
VZ
14198
14199fi
14200
14201echo "$ac_t""$wx_cv_func_gettimeofday_has_2_args" 1>&6
c63c7106 14202
afc31813
VZ
14203 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
14204 cat >> confdefs.h <<\EOF
14205#define WX_GETTIMEOFDAY_NO_TZ 1
14206EOF
14207
14208 fi
14209 fi
14210
14211 cat >> confdefs.h <<\EOF
14212#define wxUSE_TIMEDATE 1
14213EOF
14214
14215 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
14216fi
14217
14218
b089607b
VZ
14219if test "$TOOLKIT" != "MSW"; then
14220
afc31813 14221if test "$wxUSE_SOCKETS" = "yes"; then
c63c7106 14222 echo $ac_n "checking for socket""... $ac_c" 1>&6
1216f52d 14223echo "configure:14224: checking for socket" >&5
c63c7106
VZ
14224if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
14225 echo $ac_n "(cached) $ac_c" 1>&6
14226else
14227 cat > conftest.$ac_ext <<EOF
1216f52d 14228#line 14229 "configure"
c63c7106
VZ
14229#include "confdefs.h"
14230/* System header to define __stub macros and hopefully few prototypes,
14231 which can conflict with char socket(); below. */
14232#include <assert.h>
14233/* Override any gcc2 internal prototype to avoid an error. */
14234/* We use char because int might match the return type of a gcc2
14235 builtin and then its argument prototype would still apply. */
14236char socket();
14237
14238int main() {
14239
14240/* The GNU C library defines this for functions which it implements
14241 to always fail with ENOSYS. Some functions are actually named
14242 something starting with __ and the normal name is an alias. */
14243#if defined (__stub_socket) || defined (__stub___socket)
14244choke me
14245#else
e8482f24 14246socket();
c63c7106
VZ
14247#endif
14248
14249; return 0; }
14250EOF
1216f52d 14251if { (eval echo configure:14252: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
c63c7106
VZ
14252 rm -rf conftest*
14253 eval "ac_cv_func_socket=yes"
14254else
14255 echo "configure: failed program was:" >&5
14256 cat conftest.$ac_ext >&5
14257 rm -rf conftest*
14258 eval "ac_cv_func_socket=no"
14259fi
14260rm -f conftest*
14261fi
14262
14263if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
14264 echo "$ac_t""yes" 1>&6
14265 :
14266else
14267 echo "$ac_t""no" 1>&6
14268echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
1216f52d 14269echo "configure:14270: checking for socket in -lsocket" >&5
c63c7106
VZ
14270ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
14271if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14272 echo $ac_n "(cached) $ac_c" 1>&6
14273else
14274 ac_save_LIBS="$LIBS"
14275LIBS="-lsocket $LIBS"
14276cat > conftest.$ac_ext <<EOF
1216f52d 14277#line 14278 "configure"
c63c7106
VZ
14278#include "confdefs.h"
14279/* Override any gcc2 internal prototype to avoid an error. */
14280/* We use char because int might match the return type of a gcc2
14281 builtin and then its argument prototype would still apply. */
14282char socket();
14283
14284int main() {
14285socket()
14286; return 0; }
14287EOF
1216f52d 14288if { (eval echo configure:14289: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
c63c7106
VZ
14289 rm -rf conftest*
14290 eval "ac_cv_lib_$ac_lib_var=yes"
14291else
14292 echo "configure: failed program was:" >&5
14293 cat conftest.$ac_ext >&5
14294 rm -rf conftest*
14295 eval "ac_cv_lib_$ac_lib_var=no"
14296fi
14297rm -f conftest*
14298LIBS="$ac_save_LIBS"
14299
14300fi
14301if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14302 echo "$ac_t""yes" 1>&6
14303 INET_LINK="$INET_LINK -lsocket"
c63c7106
VZ
14304else
14305 echo "$ac_t""no" 1>&6
afc31813
VZ
14306
14307 echo "configure: warning: socket library not found - sockets will be disabled" 1>&2
14308 wxUSE_SOCKETS=no
14309
14310
c63c7106
VZ
14311fi
14312
14313
14314fi
14315
10f2d63a
VZ
14316fi
14317
b089607b 14318
afc31813 14319if test "$wxUSE_SOCKETS" = "yes" ; then
51a9faba 14320 echo $ac_n "checking what is the type of the third argument of getsockname""... $ac_c" 1>&6
1216f52d 14321echo "configure:14322: checking what is the type of the third argument of getsockname" >&5
51a9faba
VZ
14322if eval "test \"`echo '$''{'wx_cv_type_getsockname3'+set}'`\" = set"; then
14323 echo $ac_n "(cached) $ac_c" 1>&6
14324else
14325
14326
14327 ac_ext=C
afc31813
VZ
14328# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14329ac_cpp='$CXXCPP $CPPFLAGS'
14330ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14331ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14332cross_compiling=$ac_cv_prog_cxx_cross
14333
51a9faba
VZ
14334
14335 cat > conftest.$ac_ext <<EOF
1216f52d 14336#line 14337 "configure"
afc31813 14337#include "confdefs.h"
51a9faba 14338
3ace2e6d 14339 #include <sys/types.h>
51a9faba
VZ
14340 #include <sys/socket.h>
14341
afc31813 14342int main() {
51a9faba
VZ
14343
14344 socklen_t len;
14345 getsockname(0, 0, &len);
14346
afc31813
VZ
14347; return 0; }
14348EOF
1216f52d 14349if { (eval echo configure:14350: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
afc31813 14350 rm -rf conftest*
51a9faba 14351 wx_cv_type_getsockname3=socklen_t
afc31813
VZ
14352else
14353 echo "configure: failed program was:" >&5
14354 cat conftest.$ac_ext >&5
14355 rm -rf conftest*
14356 cat > conftest.$ac_ext <<EOF
1216f52d 14357#line 14358 "configure"
afc31813 14358#include "confdefs.h"
51a9faba 14359
3ace2e6d 14360 #include <sys/types.h>
51a9faba
VZ
14361 #include <sys/socket.h>
14362
afc31813 14363int main() {
51a9faba
VZ
14364
14365 size_t len;
14366 getsockname(0, 0, &len);
14367
afc31813
VZ
14368; return 0; }
14369EOF
1216f52d 14370if { (eval echo configure:14371: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
afc31813 14371 rm -rf conftest*
51a9faba 14372 wx_cv_type_getsockname3=size_t
afc31813
VZ
14373else
14374 echo "configure: failed program was:" >&5
14375 cat conftest.$ac_ext >&5
14376 rm -rf conftest*
14377 cat > conftest.$ac_ext <<EOF
1216f52d 14378#line 14379 "configure"
afc31813 14379#include "confdefs.h"
51a9faba 14380
3ace2e6d 14381 #include <sys/types.h>
51a9faba
VZ
14382 #include <sys/socket.h>
14383
afc31813 14384int main() {
51a9faba
VZ
14385
14386 int len;
14387 getsockname(0, 0, &len);
14388
afc31813
VZ
14389; return 0; }
14390EOF
1216f52d 14391if { (eval echo configure:14392: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
afc31813 14392 rm -rf conftest*
51a9faba 14393 wx_cv_type_getsockname3=int
afc31813
VZ
14394else
14395 echo "configure: failed program was:" >&5
14396 cat conftest.$ac_ext >&5
3ace2e6d
SN
14397 rm -rf conftest*
14398 wx_cv_type_getsockname3=unknown
14399
afc31813
VZ
14400fi
14401rm -f conftest*
51a9faba 14402
afc31813
VZ
14403fi
14404rm -f conftest*
51a9faba 14405
afc31813
VZ
14406fi
14407rm -f conftest*
51a9faba
VZ
14408
14409 ac_ext=c
afc31813
VZ
14410# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14411ac_cpp='$CPP $CPPFLAGS'
14412ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14413ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14414cross_compiling=$ac_cv_prog_cc_cross
14415
51a9faba
VZ
14416
14417fi
14418
14419echo "$ac_t""$wx_cv_type_getsockname3" 1>&6
14420
14421 if test "$wx_cv_type_getsockname3" = "unknown"; then
14422 wxUSE_SOCKETS=no
14423 echo "configure: warning: Couldn't find socklen_t synonym for this system" 1>&2
14424 else
14425 cat >> confdefs.h <<EOF
14426#define SOCKLEN_T $wx_cv_type_getsockname3
14427EOF
14428
14429 fi
14430fi
afc31813 14431
c521c494
RL
14432fi
14433
51a9faba 14434if test "$wxUSE_SOCKETS" = "yes" ; then
afc31813
VZ
14435 cat >> confdefs.h <<\EOF
14436#define wxUSE_SOCKETS 1
14437EOF
14438
70f7a477 14439 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
afc31813
VZ
14440 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS protocol"
14441fi
14442
10f2d63a 14443
dc3d889d
VZ
14444if test "$wxUSE_GUI" = "yes"; then
14445
b089607b
VZ
14446if test "$TOOLKIT" != "MSW"; then
14447
ceded8b9 14448if test "$wxUSE_JOYSTICK" = "yes"; then
10f2d63a
VZ
14449 for ac_hdr in linux/joystick.h
14450do
14451ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
14452echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1216f52d 14453echo "configure:14454: checking for $ac_hdr" >&5
10f2d63a
VZ
14454if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
14455 echo $ac_n "(cached) $ac_c" 1>&6
14456else
14457 cat > conftest.$ac_ext <<EOF
1216f52d 14458#line 14459 "configure"
10f2d63a
VZ
14459#include "confdefs.h"
14460#include <$ac_hdr>
14461EOF
14462ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1216f52d 14463{ (eval echo configure:14464: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
14464ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14465if test -z "$ac_err"; then
14466 rm -rf conftest*
14467 eval "ac_cv_header_$ac_safe=yes"
14468else
14469 echo "$ac_err" >&5
14470 echo "configure: failed program was:" >&5
14471 cat conftest.$ac_ext >&5
14472 rm -rf conftest*
14473 eval "ac_cv_header_$ac_safe=no"
14474fi
14475rm -f conftest*
14476fi
14477if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14478 echo "$ac_t""yes" 1>&6
14479 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
14480 cat >> confdefs.h <<EOF
14481#define $ac_tr_hdr 1
14482EOF
14483
14484else
14485 echo "$ac_t""no" 1>&6
14486fi
14487done
14488
b089607b 14489 if test "$ac_cv_header_linux_joystick_h" != "yes"; then
ceded8b9 14490 wxUSE_JOYSTICK=no
dc3d889d 14491 echo "configure: warning: Joystick not supported by this system" 1>&2
b089607b
VZ
14492 fi
14493fi
14494
14495fi
14496
ceded8b9 14497if test "$wxUSE_JOYSTICK" = "yes"; then
10f2d63a
VZ
14498 cat >> confdefs.h <<\EOF
14499#define wxUSE_JOYSTICK 1
14500EOF
14501
14502 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
10f2d63a
VZ
14503fi
14504
dc3d889d
VZ
14505fi
14506
10f2d63a 14507
b089607b
VZ
14508if test "$TOOLKIT" != "MSW"; then
14509
10f2d63a
VZ
14510HAVE_DL_FUNCS=0
14511HAVE_SHL_FUNCS=0
14512if test "$wxUSE_DYNLIB_CLASS" = "yes"; then
b4085ce6
GD
14513 if test "$USE_MAC" = 1; then
14514 HAVE_DL_FUNCS=1
14515 else
14516 for ac_func in dlopen
10f2d63a
VZ
14517do
14518echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1216f52d 14519echo "configure:14520: checking for $ac_func" >&5
10f2d63a
VZ
14520if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14521 echo $ac_n "(cached) $ac_c" 1>&6
14522else
14523 cat > conftest.$ac_ext <<EOF
1216f52d 14524#line 14525 "configure"
10f2d63a
VZ
14525#include "confdefs.h"
14526/* System header to define __stub macros and hopefully few prototypes,
14527 which can conflict with char $ac_func(); below. */
14528#include <assert.h>
14529/* Override any gcc2 internal prototype to avoid an error. */
14530/* We use char because int might match the return type of a gcc2
14531 builtin and then its argument prototype would still apply. */
14532char $ac_func();
14533
14534int main() {
14535
14536/* The GNU C library defines this for functions which it implements
14537 to always fail with ENOSYS. Some functions are actually named
14538 something starting with __ and the normal name is an alias. */
14539#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14540choke me
14541#else
e8482f24 14542$ac_func();
10f2d63a
VZ
14543#endif
14544
14545; return 0; }
14546EOF
1216f52d 14547if { (eval echo configure:14548: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
14548 rm -rf conftest*
14549 eval "ac_cv_func_$ac_func=yes"
14550else
14551 echo "configure: failed program was:" >&5
14552 cat conftest.$ac_ext >&5
14553 rm -rf conftest*
14554 eval "ac_cv_func_$ac_func=no"
14555fi
14556rm -f conftest*
14557fi
14558
14559if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14560 echo "$ac_t""yes" 1>&6
14561 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14562 cat >> confdefs.h <<EOF
14563#define $ac_tr_func 1
14564EOF
14565
14566 cat >> confdefs.h <<\EOF
14567#define HAVE_DLOPEN 1
14568EOF
14569
14570 HAVE_DL_FUNCS=1
14571
14572else
14573 echo "$ac_t""no" 1>&6
14574echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
1216f52d 14575echo "configure:14576: checking for dlopen in -ldl" >&5
10f2d63a
VZ
14576ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
14577if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14578 echo $ac_n "(cached) $ac_c" 1>&6
14579else
14580 ac_save_LIBS="$LIBS"
14581LIBS="-ldl $LIBS"
14582cat > conftest.$ac_ext <<EOF
1216f52d 14583#line 14584 "configure"
10f2d63a
VZ
14584#include "confdefs.h"
14585/* Override any gcc2 internal prototype to avoid an error. */
14586/* We use char because int might match the return type of a gcc2
14587 builtin and then its argument prototype would still apply. */
14588char dlopen();
14589
14590int main() {
14591dlopen()
14592; return 0; }
14593EOF
1216f52d 14594if { (eval echo configure:14595: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
14595 rm -rf conftest*
14596 eval "ac_cv_lib_$ac_lib_var=yes"
14597else
14598 echo "configure: failed program was:" >&5
14599 cat conftest.$ac_ext >&5
14600 rm -rf conftest*
14601 eval "ac_cv_lib_$ac_lib_var=no"
14602fi
14603rm -f conftest*
14604LIBS="$ac_save_LIBS"
14605
14606fi
14607if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14608 echo "$ac_t""yes" 1>&6
14609
14610 cat >> confdefs.h <<\EOF
14611#define HAVE_DLOPEN 1
14612EOF
14613
14614 HAVE_DL_FUNCS=1
14615 LIBS="$LIBS -ldl"
14616
14617else
14618 echo "$ac_t""no" 1>&6
14619
14620 for ac_func in shl_load
14621do
14622echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1216f52d 14623echo "configure:14624: checking for $ac_func" >&5
10f2d63a
VZ
14624if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14625 echo $ac_n "(cached) $ac_c" 1>&6
14626else
14627 cat > conftest.$ac_ext <<EOF
1216f52d 14628#line 14629 "configure"
10f2d63a
VZ
14629#include "confdefs.h"
14630/* System header to define __stub macros and hopefully few prototypes,
14631 which can conflict with char $ac_func(); below. */
14632#include <assert.h>
14633/* Override any gcc2 internal prototype to avoid an error. */
14634/* We use char because int might match the return type of a gcc2
14635 builtin and then its argument prototype would still apply. */
14636char $ac_func();
14637
14638int main() {
14639
14640/* The GNU C library defines this for functions which it implements
14641 to always fail with ENOSYS. Some functions are actually named
14642 something starting with __ and the normal name is an alias. */
14643#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14644choke me
14645#else
e8482f24 14646$ac_func();
10f2d63a
VZ
14647#endif
14648
14649; return 0; }
14650EOF
1216f52d 14651if { (eval echo configure:14652: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
14652 rm -rf conftest*
14653 eval "ac_cv_func_$ac_func=yes"
14654else
14655 echo "configure: failed program was:" >&5
14656 cat conftest.$ac_ext >&5
14657 rm -rf conftest*
14658 eval "ac_cv_func_$ac_func=no"
14659fi
14660rm -f conftest*
14661fi
14662
14663if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14664 echo "$ac_t""yes" 1>&6
14665 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14666 cat >> confdefs.h <<EOF
14667#define $ac_tr_func 1
14668EOF
14669
14670 cat >> confdefs.h <<\EOF
14671#define HAVE_SHL_LOAD 1
14672EOF
14673
14674 HAVE_SHL_FUNCS=1
14675
14676else
14677 echo "$ac_t""no" 1>&6
f6bcfd97 14678echo $ac_n "checking for dld in -lshl_load""... $ac_c" 1>&6
1216f52d 14679echo "configure:14680: checking for dld in -lshl_load" >&5
f6bcfd97
BP
14680ac_lib_var=`echo shl_load'_'dld | sed 'y%./+-%__p_%'`
14681if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14682 echo $ac_n "(cached) $ac_c" 1>&6
14683else
14684 ac_save_LIBS="$LIBS"
14685LIBS="-lshl_load $LIBS"
14686cat > conftest.$ac_ext <<EOF
1216f52d 14687#line 14688 "configure"
f6bcfd97
BP
14688#include "confdefs.h"
14689/* Override any gcc2 internal prototype to avoid an error. */
14690/* We use char because int might match the return type of a gcc2
14691 builtin and then its argument prototype would still apply. */
14692char dld();
14693
14694int main() {
14695dld()
14696; return 0; }
14697EOF
1216f52d 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_lib_$ac_lib_var=yes"
14701else
14702 echo "configure: failed program was:" >&5
14703 cat conftest.$ac_ext >&5
14704 rm -rf conftest*
14705 eval "ac_cv_lib_$ac_lib_var=no"
14706fi
14707rm -f conftest*
14708LIBS="$ac_save_LIBS"
14709
14710fi
14711if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14712 echo "$ac_t""yes" 1>&6
14713
14714 HAVE_SHL_FUNCS=1
14715 LIBS="$LIBS -ldld"
14716
14717else
14718 echo "$ac_t""no" 1>&6
14719fi
14720
14721
10f2d63a
VZ
14722fi
14723done
14724
14725
14726fi
14727
14728
14729fi
14730done
14731
14732
f6bcfd97
BP
14733 if test "$HAVE_DL_FUNCS" = 1; then
14734 for ac_func in dlerror
14735do
14736echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1216f52d 14737echo "configure:14738: checking for $ac_func" >&5
f6bcfd97
BP
14738if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14739 echo $ac_n "(cached) $ac_c" 1>&6
14740else
14741 cat > conftest.$ac_ext <<EOF
1216f52d 14742#line 14743 "configure"
f6bcfd97
BP
14743#include "confdefs.h"
14744/* System header to define __stub macros and hopefully few prototypes,
14745 which can conflict with char $ac_func(); below. */
14746#include <assert.h>
14747/* Override any gcc2 internal prototype to avoid an error. */
14748/* We use char because int might match the return type of a gcc2
14749 builtin and then its argument prototype would still apply. */
14750char $ac_func();
14751
14752int main() {
14753
14754/* The GNU C library defines this for functions which it implements
14755 to always fail with ENOSYS. Some functions are actually named
14756 something starting with __ and the normal name is an alias. */
14757#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14758choke me
14759#else
14760$ac_func();
14761#endif
14762
14763; return 0; }
14764EOF
1216f52d 14765if { (eval echo configure:14766: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
f6bcfd97
BP
14766 rm -rf conftest*
14767 eval "ac_cv_func_$ac_func=yes"
14768else
14769 echo "configure: failed program was:" >&5
14770 cat conftest.$ac_ext >&5
14771 rm -rf conftest*
14772 eval "ac_cv_func_$ac_func=no"
14773fi
14774rm -f conftest*
14775fi
14776
14777if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14778 echo "$ac_t""yes" 1>&6
14779 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14780 cat >> confdefs.h <<EOF
14781#define $ac_tr_func 1
14782EOF
14783 cat >> confdefs.h <<\EOF
14784#define HAVE_DLERROR 1
14785EOF
14786
14787else
14788 echo "$ac_t""no" 1>&6
14789echo $ac_n "checking for dlerror in -ldl""... $ac_c" 1>&6
1216f52d 14790echo "configure:14791: checking for dlerror in -ldl" >&5
f6bcfd97
BP
14791ac_lib_var=`echo dl'_'dlerror | sed 'y%./+-%__p_%'`
14792if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14793 echo $ac_n "(cached) $ac_c" 1>&6
14794else
14795 ac_save_LIBS="$LIBS"
14796LIBS="-ldl $LIBS"
14797cat > conftest.$ac_ext <<EOF
1216f52d 14798#line 14799 "configure"
f6bcfd97
BP
14799#include "confdefs.h"
14800/* Override any gcc2 internal prototype to avoid an error. */
14801/* We use char because int might match the return type of a gcc2
14802 builtin and then its argument prototype would still apply. */
14803char dlerror();
14804
14805int main() {
14806dlerror()
14807; return 0; }
14808EOF
1216f52d 14809if { (eval echo configure:14810: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
f6bcfd97
BP
14810 rm -rf conftest*
14811 eval "ac_cv_lib_$ac_lib_var=yes"
14812else
14813 echo "configure: failed program was:" >&5
14814 cat conftest.$ac_ext >&5
14815 rm -rf conftest*
14816 eval "ac_cv_lib_$ac_lib_var=no"
14817fi
14818rm -f conftest*
14819LIBS="$ac_save_LIBS"
14820
14821fi
14822if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14823 echo "$ac_t""yes" 1>&6
14824 cat >> confdefs.h <<\EOF
14825#define HAVE_DLERROR 1
14826EOF
14827
14828else
14829 echo "$ac_t""no" 1>&6
14830fi
14831
14832fi
14833done
14834
14835 fi
b4085ce6 14836 fi
f6bcfd97 14837
10f2d63a
VZ
14838 if test "$HAVE_DL_FUNCS" = 0; then
14839 if test "$HAVE_SHL_FUNCS" = 0; then
14840 if test "$USE_UNIX" = 1; then
b12915c1 14841 echo "configure: warning: Missing dynamic loading support, several features will be disabled" 1>&2
10f2d63a
VZ
14842 wxUSE_DYNLIB_CLASS=no
14843 else
b12915c1 14844 echo "configure: warning: Assuming wxLibrary class works on this platform" 1>&2
10f2d63a
VZ
14845 fi
14846 fi
14847 fi
14848fi
14849
b089607b
VZ
14850fi
14851
10f2d63a 14852if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
b12915c1 14853 cat >> confdefs.h <<\EOF
10f2d63a
VZ
14854#define wxUSE_DYNLIB_CLASS 1
14855EOF
14856
b12915c1
VZ
14857else
14858 wxUSE_ODBC=no
14859 wxUSE_SERIAL=no
10f2d63a
VZ
14860fi
14861
14862
14863if test "$wxUSE_UNICODE" = "yes" ; then
14864 cat >> confdefs.h <<\EOF
14865#define wxUSE_UNICODE 1
14866EOF
14867
14868fi
14869
14870if test "$wxUSE_WCSRTOMBS" = "yes" ; then
14871 cat >> confdefs.h <<\EOF
14872#define wxUSE_WCSRTOMBS 1
14873EOF
14874
14875fi
14876
14877if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
14878 cat >> confdefs.h <<\EOF
14879#define wxUSE_EXPERIMENTAL_PRINTF 1
14880EOF
14881
14882fi
14883
14884
b12915c1
VZ
14885if test "$wxUSE_SERIAL" = "yes" ; then
14886 cat >> confdefs.h <<\EOF
14887#define wxUSE_SERIAL 1
14888EOF
14889
14890fi
14891
14892
10f2d63a
VZ
14893IODBC_C_SRC=""
14894if test "$wxUSE_ODBC" = "yes" ; then
14895 cat >> confdefs.h <<\EOF
14896#define wxUSE_ODBC 1
14897EOF
14898
14899 WXODBCFLAG="-D_IODBC_"
14900 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
10f2d63a
VZ
14901fi
14902
14903
14904if test "$wxUSE_POSTSCRIPT" = "yes" ; then
14905 cat >> confdefs.h <<\EOF
14906#define wxUSE_POSTSCRIPT 1
14907EOF
14908
14909fi
14910
14911cat >> confdefs.h <<\EOF
14912#define wxUSE_AFM_FOR_POSTSCRIPT 1
14913EOF
14914
14915
14916cat >> confdefs.h <<\EOF
14917#define wxUSE_NORMALIZED_PS_FONTS 1
14918EOF
14919
14920
14921
14922if test "$wxUSE_CONSTRAINTS" = "yes"; then
14923 cat >> confdefs.h <<\EOF
14924#define wxUSE_CONSTRAINTS 1
14925EOF
14926
14927 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
14928fi
14929
14930if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
14931 cat >> confdefs.h <<\EOF
14932#define wxUSE_MDI_ARCHITECTURE 1
14933EOF
14934
14935 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
14936fi
14937
14938if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
14939 cat >> confdefs.h <<\EOF
14940#define wxUSE_DOC_VIEW_ARCHITECTURE 1
14941EOF
14942
14943 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
14944 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
14945 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
14946 fi
14947fi
14948
14949if test "$wxUSE_HELP" = "yes"; then
14950 cat >> confdefs.h <<\EOF
14951#define wxUSE_HELP 1
14952EOF
14953
14954 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
14955fi
14956
14957if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
14958 if test "$wxUSE_CONSTRAINTS" != "yes"; then
14959 echo "configure: warning: Printing support cannot be used without constraints so it won't be compiled without it" 1>&2
14960 else
14961 cat >> confdefs.h <<\EOF
14962#define wxUSE_PRINTING_ARCHITECTURE 1
14963EOF
14964
14965 fi
14966 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
14967fi
14968
14969if test "$wxUSE_PROLOGIO" = "yes" ; then
14970 cat >> confdefs.h <<\EOF
14971#define wxUSE_PROLOGIO 1
14972EOF
14973
14974fi
14975
14976if test "$wxUSE_RESOURCES" = "yes" ; then
14977 if test "$wxUSE_PROLOGIO" = "yes" ; then
14978 cat >> confdefs.h <<\EOF
14979#define wxUSE_RESOURCES 1
14980EOF
14981
14982 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS resource"
14983 else
14984 echo "configure: warning: wxWindows ressource system requires PrologIO and can't be compiled without it." 1>&2
14985 fi
14986fi
14987
14988if test "$wxUSE_X_RESOURCES" = "yes"; then
14989 cat >> confdefs.h <<\EOF
14990#define wxUSE_X_RESOURCES 1
14991EOF
14992
14993fi
14994
14995
14996if test "$wxUSE_IPC" = "yes"; then
eb4efbdc
VZ
14997 if test "$wxUSE_SOCKETS" != "yes"; then
14998 echo "configure: warning: wxWindows IPC classes require sockets" 1>&2
14999 fi
15000
10f2d63a
VZ
15001 cat >> confdefs.h <<\EOF
15002#define wxUSE_IPC 1
15003EOF
15004
15005fi
15006
15007if test "$wxUSE_CLIPBOARD" = "yes"; then
15008 cat >> confdefs.h <<\EOF
15009#define wxUSE_CLIPBOARD 1
15010EOF
15011
15012fi
15013
15014if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
15015 if test "$wxUSE_GTK" = 1; then
15016 if test "$WXGTK12" != 1; then
15017 echo "configure: warning: Drag and drop is only supported under GTK+ 1.2" 1>&2
15018 wxUSE_DRAG_AND_DROP=no
15019 fi
15020 fi
15021
15022 if test "$wxUSE_MOTIF" = 1; then
15023 echo "configure: warning: Drag and drop is not yet supported under Motif" 1>&2
15024 wxUSE_DRAG_AND_DROP=no
15025 fi
15026
2c6025bc
GD
15027 if test "$wxUSE_MAC" = 1; then
15028 echo "configure: warning: Drag and drop is not yet supported under Mac OS X" 1>&2
15029 wxUSE_DRAG_AND_DROP=no
15030 fi
15031
10f2d63a 15032 if test "$USE_WIN32" = 1; then
c521c494
RL
15033
15034 for ac_hdr in ole2.h
10f2d63a
VZ
15035do
15036ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
15037echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1216f52d 15038echo "configure:15039: checking for $ac_hdr" >&5
10f2d63a
VZ
15039if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
15040 echo $ac_n "(cached) $ac_c" 1>&6
15041else
15042 cat > conftest.$ac_ext <<EOF
1216f52d 15043#line 15044 "configure"
10f2d63a
VZ
15044#include "confdefs.h"
15045#include <$ac_hdr>
15046EOF
15047ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1216f52d 15048{ (eval echo configure:15049: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
15049ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15050if test -z "$ac_err"; then
15051 rm -rf conftest*
15052 eval "ac_cv_header_$ac_safe=yes"
15053else
15054 echo "$ac_err" >&5
15055 echo "configure: failed program was:" >&5
15056 cat conftest.$ac_ext >&5
15057 rm -rf conftest*
15058 eval "ac_cv_header_$ac_safe=no"
15059fi
15060rm -f conftest*
15061fi
15062if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15063 echo "$ac_t""yes" 1>&6
15064 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
15065 cat >> confdefs.h <<EOF
15066#define $ac_tr_hdr 1
15067EOF
15068
15069else
15070 echo "$ac_t""no" 1>&6
15071fi
15072done
15073
c521c494
RL
15074
15075 if test "$ac_cv_header_ole2_h" = "yes" ; then
15076 if test "$GCC" = yes ; then
b64f0a5f
RL
15077 ALL_OBJECTS="$ALL_OBJECTS \$(OLEOBJS)"
15078 ALL_DEPFILES="$ALL_DEPFILES \$(OLEDEPS)"
c521c494 15079 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks"
b64f0a5f
RL
15080 LIBS="$LIBS -lole32 -luuid"
15081
15082 if test "$wxUSE_METAFILE" = "yes"; then
15083 cat >> confdefs.h <<\EOF
15084#define wxUSE_METAFILE 1
15085EOF
15086
15087 cat >> confdefs.h <<\EOF
15088#define wxUSE_ENH_METAFILE 1
15089EOF
15090
15091 fi
c521c494
RL
15092 fi
15093 else
10f2d63a
VZ
15094 echo "configure: warning: Drag and drop disabled because OLE headers not found" 1>&2
15095 wxUSE_DRAG_AND_DROP=no
15096 fi
15097 fi
15098
15099 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
15100 cat >> confdefs.h <<\EOF
15101#define wxUSE_DRAG_AND_DROP 1
15102EOF
15103
15104 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
15105 fi
15106
15107fi
15108
15109if test "$wxUSE_SPLINES" = "yes" ; then
15110 cat >> confdefs.h <<\EOF
15111#define wxUSE_SPLINES 1
15112EOF
15113
15114fi
15115
15116
15117if test "$wxUSE_ACCEL" = "yes"; then
15118 cat >> confdefs.h <<\EOF
15119#define wxUSE_ACCEL 1
15120EOF
15121
15122fi
15123
15124if test "$wxUSE_CARET" = "yes"; then
15125 cat >> confdefs.h <<\EOF
15126#define wxUSE_CARET 1
15127EOF
15128
15129 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
15130fi
15131
15132if test "$wxUSE_COMBOBOX" = "yes"; then
15133 cat >> confdefs.h <<\EOF
15134#define wxUSE_COMBOBOX 1
15135EOF
15136
15137fi
15138
15139if test "$wxUSE_CHOICE" = "yes"; then
15140 cat >> confdefs.h <<\EOF
15141#define wxUSE_CHOICE 1
15142EOF
15143
15144fi
15145
15146if test "$wxUSE_BMPBUTTON" = "yes"; then
15147 cat >> confdefs.h <<\EOF
15148#define wxUSE_BMPBUTTON 1
15149EOF
15150
15151fi
15152
15153if test "$wxUSE_CHECKBOX" = "yes"; then
15154 cat >> confdefs.h <<\EOF
15155#define wxUSE_CHECKBOX 1
15156EOF
15157
15158fi
15159
15160if test "$wxUSE_CHECKLST" = "yes"; then
15161 cat >> confdefs.h <<\EOF
15162#define wxUSE_CHECKLISTBOX 1
15163EOF
15164
15165 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
15166fi
15167
15168if test "$wxUSE_GAUGE" = "yes"; then
15169 cat >> confdefs.h <<\EOF
15170#define wxUSE_GAUGE 1
15171EOF
15172
15173fi
15174
d6a55c4b
VZ
15175if test "$wxUSE_NEW_GRID" = "yes"; then
15176 wxUSE_GRID="yes"
10f2d63a 15177 cat >> confdefs.h <<\EOF
d6a55c4b 15178#define wxUSE_NEW_GRID 1
10f2d63a
VZ
15179EOF
15180
d6a55c4b 15181 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS newgrid"
10f2d63a
VZ
15182fi
15183
d6a55c4b 15184if test "$wxUSE_GRID" = "yes"; then
10f2d63a 15185 cat >> confdefs.h <<\EOF
d6a55c4b 15186#define wxUSE_GRID 1
10f2d63a
VZ
15187EOF
15188
d6a55c4b 15189 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
10f2d63a
VZ
15190fi
15191
15192if test "$wxUSE_IMAGLIST" = "yes"; then
15193 cat >> confdefs.h <<\EOF
15194#define wxUSE_IMAGLIST 1
15195EOF
15196
15197fi
15198
15199if test "$wxUSE_LISTBOX" = "yes"; then
15200 cat >> confdefs.h <<\EOF
15201#define wxUSE_LISTBOX 1
15202EOF
15203
15204fi
15205
15206if test "$wxUSE_LISTCTRL" = "yes"; then
15207 if test "$wxUSE_IMAGLIST" = "yes"; then
15208 cat >> confdefs.h <<\EOF
15209#define wxUSE_LISTCTRL 1
15210EOF
15211
15212 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
15213 else
15214 echo "configure: warning: wxListCtrl requires wxImageList and won't be compiled without it" 1>&2
15215 fi
15216fi
15217
15218if test "$wxUSE_NOTEBOOK" = "yes"; then
15219 cat >> confdefs.h <<\EOF
15220#define wxUSE_NOTEBOOK 1
15221EOF
15222
15223 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
15224fi
15225
15226if test "$wxUSE_RADIOBOX" = "yes"; then
15227 cat >> confdefs.h <<\EOF
15228#define wxUSE_RADIOBOX 1
15229EOF
15230
15231fi
15232
15233if test "$wxUSE_RADIOBTN" = "yes"; then
15234 cat >> confdefs.h <<\EOF
15235#define wxUSE_RADIOBTN 1
15236EOF
15237
15238fi
15239
15240if test "$wxUSE_SASH" = "yes"; then
15241 cat >> confdefs.h <<\EOF
15242#define wxUSE_SASH 1
15243EOF
15244
15245 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
15246fi
15247
15248if test "$wxUSE_SCROLLBAR" = "yes"; then
15249 cat >> confdefs.h <<\EOF
15250#define wxUSE_SCROLLBAR 1
15251EOF
15252
741a9306 15253 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
10f2d63a
VZ
15254fi
15255
15256if test "$wxUSE_SLIDER" = "yes"; then
15257 cat >> confdefs.h <<\EOF
15258#define wxUSE_SLIDER 1
15259EOF
15260
15261fi
15262
15263if test "$wxUSE_SPINBTN" = "yes"; then
15264 cat >> confdefs.h <<\EOF
15265#define wxUSE_SPINBTN 1
15266EOF
15267
15268fi
15269
56cfaa52
RR
15270if test "$wxUSE_SPINCTRL" = "yes"; then
15271 cat >> confdefs.h <<\EOF
15272#define wxUSE_SPINCTRL 1
15273EOF
15274
15275fi
15276
10f2d63a
VZ
15277if test "$wxUSE_SPLITTER" = "yes"; then
15278 cat >> confdefs.h <<\EOF
15279#define wxUSE_SPLITTER 1
15280EOF
15281
15282 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
15283fi
15284
15285if test "$wxUSE_STATBMP" = "yes"; then
15286 cat >> confdefs.h <<\EOF
15287#define wxUSE_STATBMP 1
15288EOF
15289
15290fi
15291
15292if test "$wxUSE_STATBOX" = "yes"; then
15293 cat >> confdefs.h <<\EOF
15294#define wxUSE_STATBOX 1
15295EOF
15296
15297fi
15298
15299if test "$wxUSE_STATLINE" = "yes"; then
15300 if test "$wxUSE_WINE" = 1 ; then
15301 echo "configure: warning: wxStaticLine is not supported under WINE" 1>&2
15302 else
15303 cat >> confdefs.h <<\EOF
15304#define wxUSE_STATLINE 1
15305EOF
15306
15307 fi
15308fi
15309
15310if test "$wxUSE_STATUSBAR" = "yes"; then
15311 cat >> confdefs.h <<\EOF
15312#define wxUSE_STATUSBAR 1
15313EOF
15314
2286341c
VZ
15315
15316 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
10f2d63a
VZ
15317fi
15318
15319if test "$wxUSE_TABDIALOG" = "yes"; then
15320 cat >> confdefs.h <<\EOF
15321#define wxUSE_TAB_DIALOG 1
15322EOF
15323
15324 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab"
15325fi
15326
1db8dc4a
VZ
15327if test "$wxUSE_TOGGLEBTN" = "yes"; then
15328 cat >> confdefs.h <<\EOF
15329#define wxUSE_TOGGLEBTN 1
15330EOF
15331
15332fi
15333
360d6699
VZ
15334if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
15335 cat >> confdefs.h <<\EOF
15336#define wxUSE_TOOLBAR_SIMPLE 1
15337EOF
15338
15339 wxUSE_TOOLBAR="yes"
15340fi
15341
10f2d63a
VZ
15342if test "$wxUSE_TOOLBAR" = "yes"; then
15343 cat >> confdefs.h <<\EOF
15344#define wxUSE_TOOLBAR 1
15345EOF
15346
360d6699
VZ
15347
15348 if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
15349 wxUSE_TOOLBAR_NATIVE="yes"
15350 fi
15351
10f2d63a
VZ
15352 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
15353fi
15354
360d6699
VZ
15355if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
15356 cat >> confdefs.h <<\EOF
15357#define wxUSE_TOOLBAR_NATIVE 1
15358EOF
15359
15360fi
15361
10f2d63a
VZ
15362if test "$wxUSE_TOOLTIPS" = "yes"; then
15363 if test "$wxUSE_MOTIF" = 1; then
15364 echo "configure: warning: wxTooltip not supported yet under Motif" 1>&2
15365 else
15366 if test "$wxUSE_WINE" = 1; then
15367 echo "configure: warning: wxTooltip not supported under WINE" 1>&2
15368 else
15369 cat >> confdefs.h <<\EOF
15370#define wxUSE_TOOLTIPS 1
15371EOF
15372
15373 fi
15374 fi
15375fi
15376
15377if test "$wxUSE_TREECTRL" = "yes"; then
15378 if test "$wxUSE_IMAGLIST" = "yes"; then
15379 cat >> confdefs.h <<\EOF
15380#define wxUSE_TREECTRL 1
15381EOF
15382
15383 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
15384 else
15385 echo "configure: warning: wxTreeCtrl requires wxImageList and won't be compiled without it" 1>&2
15386 fi
15387fi
15388
15389
15390
10f2d63a
VZ
15391if test "$wxUSE_DIRDLG" = "yes"; then
15392 if test "$wxUSE_CONSTRAINTS" != "yes"; then
15393 echo "configure: warning: wxDirDialog requires constraints so it won't be compiled without them" 1>&2
15394 else
15395 if test "$wxUSE_TREECTRL" != "yes"; then
15396 echo "configure: warning: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" 1>&2
15397 else
15398 cat >> confdefs.h <<\EOF
15399#define wxUSE_DIRDLG 1
15400EOF
15401
15402 fi
15403 fi
15404fi
15405
15406if test "$wxUSE_TEXTDLG" = "yes"; then
15407 cat >> confdefs.h <<\EOF
15408#define wxUSE_TEXTDLG 1
15409EOF
15410
15411fi
15412
15413if test "$wxUSE_STARTUP_TIPS" = "yes"; then
15414 if test "$wxUSE_CONSTRAINTS" != "yes"; then
15415 echo "configure: warning: Startup tips requires constraints and won't be compiled without them" 1>&2
15416 else
15417 cat >> confdefs.h <<\EOF
15418#define wxUSE_STARTUP_TIPS 1
15419EOF
15420
15421 fi
15422fi
15423
15424if test "$wxUSE_PROGRESSDLG" = "yes"; then
15425 if test "$wxUSE_CONSTRAINTS" != "yes"; then
15426 echo "configure: warning: wxProgressDialog requires constraints so it won't be compiled without them" 1>&2
15427 else
15428 cat >> confdefs.h <<\EOF
15429#define wxUSE_PROGRESSDLG 1
15430EOF
15431
15432 fi
15433fi
15434
15435if test "$wxUSE_MINIFRAME" = "yes"; then
15436 cat >> confdefs.h <<\EOF
15437#define wxUSE_MINIFRAME 1
15438EOF
15439
15440 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
15441fi
15442
15443if test "$wxUSE_HTML" = "yes"; then
15444 cat >> confdefs.h <<\EOF
15445#define wxUSE_HTML 1
15446EOF
15447
15448 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html"
15449 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS html"
15450fi
15451
15452if test "$wxUSE_VALIDATORS" = "yes"; then
15453 cat >> confdefs.h <<\EOF
15454#define wxUSE_VALIDATORS 1
15455EOF
15456
15457 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
15458fi
15459
0046ff7c
VS
15460if test "$wxUSE_IMAGE" = "yes" ; then
15461 cat >> confdefs.h <<\EOF
15462#define wxUSE_IMAGE 1
15463EOF
15464
15465fi
15466
10f2d63a
VZ
15467if test "$wxUSE_GIF" = "yes" ; then
15468 cat >> confdefs.h <<\EOF
15469#define wxUSE_GIF 1
15470EOF
15471
15472fi
15473
15474if test "$wxUSE_PCX" = "yes" ; then
15475 cat >> confdefs.h <<\EOF
15476#define wxUSE_PCX 1
15477EOF
15478
15479fi
15480
15481if test "$wxUSE_PNM" = "yes" ; then
15482 cat >> confdefs.h <<\EOF
15483#define wxUSE_PNM 1
15484EOF
15485
15486fi
15487
0046ff7c
VS
15488if test "$wxUSE_XPM" = "yes" ; then
15489 cat >> confdefs.h <<\EOF
15490#define wxUSE_XPM 1
15491EOF
15492
15493fi
15494
10f2d63a 15495
32832908
VZ
15496if test "$cross_compiling" = "yes"; then
15497 OSINFO="\"$host\""
15498else
15499 OSINFO=`uname -s -r -m`
15500 OSINFO="\"$OSINFO\""
15501fi
15502
aaa37c0d
VZ
15503cat >> confdefs.h <<EOF
15504#define WXWIN_OS_DESCRIPTION $OSINFO
15505EOF
15506
15507
15508
f6bcfd97
BP
15509GUILIBS="$GUI_TK_LIBRARY $TOOLKIT_LINK"
15510OPENGL_LIBS="$OPENGL_LINK"
10f2d63a 15511
ea5999b9 15512EXTRA_LIBS="$LIBS $POSIX4_LINK $INET_LINK $WCHAR_LINK $THREADS_LINK $DMALLOC_LINK $DL_LINK $ZLIB_LINK -lm"
b4085ce6 15513if test "$USE_MAC" = 1 ; then
ea5999b9 15514 EXTRA_LIBS="$EXTRA_LIBS -framework Carbon -framework System"
b4085ce6 15515fi
10f2d63a 15516if test "$wxUSE_GUI" = "yes"; then
3fed1840 15517 EXTRA_LIBS="$GUILIBS $PNG_LINK $JPEG_LINK $TIFF_LINK $FREETYPE_LINK $EXTRA_LIBS"
10f2d63a
VZ
15518fi
15519
15520LD_LIBS="\${top_builddir}/lib/${WX_LIBRARY_NAME_STATIC} $EXTRA_LIBS"
15521
3fed1840 15522INCLUDES="-I. -I\${top_builddir}/include -I\${top_srcdir}/include $ZLIB_INCLUDE $PNG_INCLUDE $JPEG_INCLUDE $TIFF_INCLUDE $FREETYPE_INCLUDE $TOOLKIT_INCLUDE"
10f2d63a 15523
f6bcfd97
BP
15524if test "$wxUSE_GTK" = 1; then
15525 WXCONFIG_INCLUDE=""
15526else
15527 WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE"
15528fi
15529
10f2d63a
VZ
15530if test "$GXX" = yes ; then
15531 CXXWARNINGS="-Wall"
d6a55c4b 15532 fi
10f2d63a
VZ
15533EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE $INCLUDES"
15534
f6bcfd97 15535CFLAGS=`echo $CFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \\+/ /g'`
10f2d63a
VZ
15536CXXFLAGS=`echo $CXXFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \+/ /g'`
15537
e694c22c
VZ
15538LDFLAGS="$LDFLAGS $PROFILE"
15539
10f2d63a
VZ
15540if test "$wxUSE_GUI" = "yes"; then
15541
6164f93c
VZ
15542 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS controls dialogs dragimag \
15543 drawing dynamic event font fractal image menu \
15544 minimal richedit"
b12915c1 15545
88d3a15c 15546 CPPFLAGS="$CPPFLAGS \$(EXTRADEFS) \$(APPEXTRADEFS)"
10f2d63a
VZ
15547else
15548 SAMPLES_SUBDIRS=""
15549fi
15550
ec14dd32
VZ
15551SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
15552
15553
15554
10f2d63a
VZ
15555
15556
15557
15558
15559
15560
15561
15562
15563
15564
15565
15566
15567
15568
15569
15570
15571
15572
15573
15574
15575
15576
15577
15578
15579
15580
15581
15582
15583
15584
15585
15586
15587
15588
15589
15590
15591
15592
15593
15594
15595
15596
15597
15598
15599
15600
15601
15602
15603
15604
15605
15606
1d62a8b4 15607
bdad4e7e
RR
15608
15609
15610
15611
15612
15613
15614
32832908
VZ
15615
15616
15617
15618
15619
15620
15621
15622
15623
15624
15625
2224580a 15626
dad6c0ea 15627
f6bcfd97
BP
15628
15629
15630
15631
dad6c0ea 15632
caa2c79b 15633
3711412e 15634
0f3f1cbc 15635
10f2d63a
VZ
15636
15637
15638echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1216f52d 15639echo "configure:15640: checking whether ${MAKE-make} sets \${MAKE}" >&5
10f2d63a
VZ
15640set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
15641if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
15642 echo $ac_n "(cached) $ac_c" 1>&6
15643else
15644 cat > conftestmake <<\EOF
15645all:
15646 @echo 'ac_maketemp="${MAKE}"'
15647EOF
15648# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
15649eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
15650if test -n "$ac_maketemp"; then
15651 eval ac_cv_prog_make_${ac_make}_set=yes
15652else
15653 eval ac_cv_prog_make_${ac_make}_set=no
15654fi
15655rm -f conftestmake
15656fi
15657if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
15658 echo "$ac_t""yes" 1>&6
15659 SET_MAKE=
15660else
15661 echo "$ac_t""no" 1>&6
15662 SET_MAKE="MAKE=${MAKE-make}"
15663fi
15664
15665
00cf1208
RR
15666if test -d include; then
15667 if test -d include/wx; then
15668 if test -d include/wx/${TOOLKIT_DIR}; then
15669 if test -f include/wx/${TOOLKIT_DIR}/setup.h; then
15670 mv -f include/wx/${TOOLKIT_DIR}/setup.h setup.h
15671 fi
15672 fi
15673 fi
15674fi
15675
10f2d63a
VZ
15676
15677
2224580a 15678if test "$wxUSE_GUI" = "yes"; then
ec90f5e5 15679 wx_cv_path_samplesubdirs=$SAMPLES_SUBDIRS
e8482f24
GL
15680 wx_cv_path_ifs=$PATH_IFS
15681 wx_cv_program_ext=$PROGRAM_EXT
15682 wx_cv_target_library=$WX_TARGET_LIBRARY
3711412e 15683 wx_cv_target_libtype=$WX_TARGET_LIBRARY_TYPE
e8482f24 15684 subdirs="demos samples utils contrib"
2224580a
VZ
15685
15686fi
10f2d63a
VZ
15687
15688trap '' 1 2 15
15689cat > confcache <<\EOF
15690# This file is a shell script that caches the results of configure
15691# tests run on this system so they can be shared between configure
15692# scripts and configure runs. It is not useful on other systems.
15693# If it contains results you don't want to keep, you may remove or edit it.
15694#
15695# By default, configure uses ./config.cache as the cache file,
15696# creating it if it does not exist already. You can give configure
15697# the --cache-file=FILE option to use a different cache file; that is
15698# what configure does when it calls configure scripts in
15699# subdirectories, so they share the cache.
15700# Giving --cache-file=/dev/null disables caching, for debugging configure.
15701# config.status only pays attention to the cache file if you give it the
15702# --recheck option to rerun configure.
15703#
15704EOF
15705# The following way of writing the cache mishandles newlines in values,
15706# but we know of no workaround that is simple, portable, and efficient.
15707# So, don't put newlines in cache variables' values.
15708# Ultrix sh set writes to stderr and can't be redirected directly,
15709# and sets the high bit in the cache file unless we assign to the vars.
15710(set) 2>&1 |
15711 case `(ac_space=' '; set | grep ac_space) 2>&1` in
15712 *ac_space=\ *)
15713 # `set' does not quote correctly, so add quotes (double-quote substitution
15714 # turns \\\\ into \\, and sed turns \\ into \).
15715 sed -n \
15716 -e "s/'/'\\\\''/g" \
15717 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
15718 ;;
15719 *)
15720 # `set' quotes correctly as required by POSIX, so do not add quotes.
15721 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
15722 ;;
15723 esac >> confcache
15724if cmp -s $cache_file confcache; then
15725 :
15726else
15727 if test -w $cache_file; then
15728 echo "updating cache $cache_file"
15729 cat confcache > $cache_file
15730 else
15731 echo "not updating unwritable cache $cache_file"
15732 fi
15733fi
15734rm -f confcache
15735
15736trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
15737
15738test "x$prefix" = xNONE && prefix=$ac_default_prefix
15739# Let make expand exec_prefix.
15740test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15741
15742# Any assignment to VPATH causes Sun make to only execute
15743# the first set of double-colon rules, so remove it if not needed.
15744# If there is a colon in the path, we need to keep it.
15745if test "x$srcdir" = x.; then
15746 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
15747fi
15748
15749trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
15750
15751DEFS=-DHAVE_CONFIG_H
15752
15753# Without the "./", some shells look in PATH for config.status.
15754: ${CONFIG_STATUS=./config.status}
15755
15756echo creating $CONFIG_STATUS
15757rm -f $CONFIG_STATUS
15758cat > $CONFIG_STATUS <<EOF
15759#! /bin/sh
15760# Generated automatically by configure.
15761# Run this file to recreate the current configuration.
15762# This directory was configured as follows,
15763# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15764#
15765# $0 $ac_configure_args
15766#
15767# Compiler output produced by configure, useful for debugging
15768# configure, is in ./config.log if it exists.
15769
15770ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
15771for ac_option
15772do
15773 case "\$ac_option" in
15774 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15775 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
15776 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
15777 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
e8482f24 15778 echo "$CONFIG_STATUS generated by autoconf version 2.13"
10f2d63a
VZ
15779 exit 0 ;;
15780 -help | --help | --hel | --he | --h)
15781 echo "\$ac_cs_usage"; exit 0 ;;
15782 *) echo "\$ac_cs_usage"; exit 1 ;;
15783 esac
15784done
15785
15786ac_given_srcdir=$srcdir
15787ac_given_INSTALL="$INSTALL"
15788
15789trap 'rm -fr `echo "
15790 wx-config
15791 src/make.env
15792 src/makeprog.env
15793 src/makelib.env
15794 Makefile
10f2d63a
VZ
15795 setup.h:setup.h.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
15796EOF
15797cat >> $CONFIG_STATUS <<EOF
15798
15799# Protect against being on the right side of a sed subst in config.status.
15800sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
15801 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
15802$ac_vpsub
15803$extrasub
15804s%@SHELL@%$SHELL%g
15805s%@CFLAGS@%$CFLAGS%g
15806s%@CPPFLAGS@%$CPPFLAGS%g
15807s%@CXXFLAGS@%$CXXFLAGS%g
15808s%@FFLAGS@%$FFLAGS%g
15809s%@DEFS@%$DEFS%g
15810s%@LDFLAGS@%$LDFLAGS%g
15811s%@LIBS@%$LIBS%g
15812s%@exec_prefix@%$exec_prefix%g
15813s%@prefix@%$prefix%g
15814s%@program_transform_name@%$program_transform_name%g
15815s%@bindir@%$bindir%g
15816s%@sbindir@%$sbindir%g
15817s%@libexecdir@%$libexecdir%g
15818s%@datadir@%$datadir%g
15819s%@sysconfdir@%$sysconfdir%g
15820s%@sharedstatedir@%$sharedstatedir%g
15821s%@localstatedir@%$localstatedir%g
15822s%@libdir@%$libdir%g
15823s%@includedir@%$includedir%g
15824s%@oldincludedir@%$oldincludedir%g
15825s%@infodir@%$infodir%g
15826s%@mandir@%$mandir%g
7c66a493
VZ
15827s%@host@%$host%g
15828s%@host_alias@%$host_alias%g
15829s%@host_cpu@%$host_cpu%g
15830s%@host_vendor@%$host_vendor%g
15831s%@host_os@%$host_os%g
15832s%@target@%$target%g
15833s%@target_alias@%$target_alias%g
15834s%@target_cpu@%$target_cpu%g
15835s%@target_vendor@%$target_vendor%g
15836s%@target_os@%$target_os%g
15837s%@build@%$build%g
15838s%@build_alias@%$build_alias%g
15839s%@build_cpu@%$build_cpu%g
15840s%@build_vendor@%$build_vendor%g
15841s%@build_os@%$build_os%g
10f2d63a
VZ
15842s%@CC@%$CC%g
15843s%@CPP@%$CPP%g
15844s%@CXX@%$CXX%g
15845s%@CXXCPP@%$CXXCPP%g
15846s%@RANLIB@%$RANLIB%g
15847s%@AR@%$AR%g
15848s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
15849s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
15850s%@INSTALL_DATA@%$INSTALL_DATA%g
15851s%@STRIP@%$STRIP%g
15852s%@YACC@%$YACC%g
15853s%@LEX@%$LEX%g
15854s%@LEXLIB@%$LEXLIB%g
15855s%@LN_S@%$LN_S%g
6f72b082 15856s%@GTK_CONFIG_2_0@%$GTK_CONFIG_2_0%g
10f2d63a
VZ
15857s%@GTK_CONFIG@%$GTK_CONFIG%g
15858s%@GTK_CFLAGS@%$GTK_CFLAGS%g
15859s%@GTK_LIBS@%$GTK_LIBS%g
ab9b9eab
VZ
15860s%@X_CFLAGS@%$X_CFLAGS%g
15861s%@X_PRE_LIBS@%$X_PRE_LIBS%g
15862s%@X_LIBS@%$X_LIBS%g
15863s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
ec14dd32
VZ
15864s%@LEX_STEM@%$LEX_STEM%g
15865s%@PATH_IFS@%$PATH_IFS%g
10f2d63a
VZ
15866s%@WX_MAJOR_VERSION_NUMBER@%$WX_MAJOR_VERSION_NUMBER%g
15867s%@WX_MINOR_VERSION_NUMBER@%$WX_MINOR_VERSION_NUMBER%g
15868s%@WX_RELEASE_NUMBER@%$WX_RELEASE_NUMBER%g
15869s%@WX_LIBRARY_NAME@%$WX_LIBRARY_NAME%g
15870s%@WX_LIBRARY_NAME_STATIC@%$WX_LIBRARY_NAME_STATIC%g
15871s%@WX_LIBRARY_NAME_SHARED@%$WX_LIBRARY_NAME_SHARED%g
15872s%@WX_LIBRARY@%$WX_LIBRARY%g
15873s%@WX_TARGET_LIBRARY@%$WX_TARGET_LIBRARY%g
15874s%@WX_LIBRARY_LINK1@%$WX_LIBRARY_LINK1%g
15875s%@WX_LIBRARY_LINK2@%$WX_LIBRARY_LINK2%g
15876s%@WX_LIBRARY_LINK3@%$WX_LIBRARY_LINK3%g
15877s%@PROGRAM_EXT@%$PROGRAM_EXT%g
bdad4e7e
RR
15878s%@WX_LIBRARY_NAME_GL@%$WX_LIBRARY_NAME_GL%g
15879s%@WX_LIBRARY_NAME_STATIC_GL@%$WX_LIBRARY_NAME_STATIC_GL%g
15880s%@WX_LIBRARY_NAME_SHARED_GL@%$WX_LIBRARY_NAME_SHARED_GL%g
15881s%@WX_LIBRARY_GL@%$WX_LIBRARY_GL%g
15882s%@WX_TARGET_LIBRARY_GL@%$WX_TARGET_LIBRARY_GL%g
15883s%@WX_LIBRARY_LINK1_GL@%$WX_LIBRARY_LINK1_GL%g
15884s%@WX_LIBRARY_LINK2_GL@%$WX_LIBRARY_LINK2_GL%g
15885s%@WX_LIBRARY_LINK3_GL@%$WX_LIBRARY_LINK3_GL%g
10f2d63a
VZ
15886s%@WX_ALL@%$WX_ALL%g
15887s%@WX_ALL_INSTALLED@%$WX_ALL_INSTALLED%g
15888s%@SHARED_LD@%$SHARED_LD%g
15889s%@PIC_FLAG@%$PIC_FLAG%g
15890s%@DEP_INFO_FLAGS@%$DEP_INFO_FLAGS%g
caa2c79b 15891s%@CODE_GEN_FLAGS@%$CODE_GEN_FLAGS%g
0f3f1cbc 15892s%@CODE_GEN_FLAGS_CXX@%$CODE_GEN_FLAGS_CXX%g
1d62a8b4 15893s%@BURNT_LIBRARY_NAME@%$BURNT_LIBRARY_NAME%g
bdad4e7e 15894s%@BURNT_LIBRARY_NAME_GL@%$BURNT_LIBRARY_NAME_GL%g
f6bcfd97 15895s%@WX_TARGET_LIBRARY_SONAME@%$WX_TARGET_LIBRARY_SONAME%g
3711412e 15896s%@WX_TARGET_LIBRARY_TYPE@%$WX_TARGET_LIBRARY_TYPE%g
10f2d63a 15897s%@WXDEBUG_DEFINE@%$WXDEBUG_DEFINE%g
dad6c0ea
VZ
15898s%@USE_GUI@%$USE_GUI%g
15899s%@AFMINSTALL@%$AFMINSTALL%g
10f2d63a
VZ
15900s%@TOOLKIT@%$TOOLKIT%g
15901s%@TOOLKIT_DEF@%$TOOLKIT_DEF%g
15902s%@TOOLKIT_DIR@%$TOOLKIT_DIR%g
f6bcfd97 15903s%@TOOLKIT_NAME@%$TOOLKIT_NAME%g
10f2d63a 15904s%@TOOLKIT_INCLUDE@%$TOOLKIT_INCLUDE%g
f6bcfd97 15905s%@WXCONFIG_INCLUDE@%$WXCONFIG_INCLUDE%g
10f2d63a
VZ
15906s%@ALL_OBJECTS@%$ALL_OBJECTS%g
15907s%@ALL_DEPFILES@%$ALL_DEPFILES%g
10f2d63a 15908s%@GUIDIST@%$GUIDIST%g
2224580a
VZ
15909s%@PORT_FILES@%$PORT_FILES%g
15910s%@DISTDIR@%$DISTDIR%g
15911s%@RPM_SPEC@%$RPM_SPEC%g
15912s%@RPM_FILES@%$RPM_FILES%g
10f2d63a
VZ
15913s%@SRC_SUBDIRS@%$SRC_SUBDIRS%g
15914s%@INCLUDE_SUBDIRS@%$INCLUDE_SUBDIRS%g
15915s%@UTILS_SUBDIRS@%$UTILS_SUBDIRS%g
15916s%@DOCS_SUBDIRS@%$DOCS_SUBDIRS%g
15917s%@SAMPLES_SUBDIRS@%$SAMPLES_SUBDIRS%g
15918s%@USER_SUBDIRS@%$USER_SUBDIRS%g
15919s%@EXTRA_LIBS@%$EXTRA_LIBS%g
f6bcfd97 15920s%@OPENGL_LIBS@%$OPENGL_LIBS%g
b12915c1 15921s%@EXTRADEFS@%$EXTRADEFS%g
10f2d63a 15922s%@LD_LIBS@%$LD_LIBS%g
32832908
VZ
15923s%@RCINPUTSWITCH@%$RCINPUTSWITCH%g
15924s%@RCOUTPUTSWITCH@%$RCOUTPUTSWITCH%g
15925s%@RESPROGRAM@%$RESPROGRAM%g
15926s%@RESCOMP@%$RESCOMP%g
15927s%@RESFLAGS@%$RESFLAGS%g
15928s%@DLLTOOL@%$DLLTOOL%g
15929s%@AS@%$AS%g
15930s%@NM@%$NM%g
15931s%@LD@%$LD%g
15932s%@MAKEINFO@%$MAKEINFO%g
10f2d63a 15933s%@SET_MAKE@%$SET_MAKE%g
2224580a 15934s%@subdirs@%$subdirs%g
10f2d63a
VZ
15935
15936CEOF
15937EOF
15938
15939cat >> $CONFIG_STATUS <<\EOF
15940
15941# Split the substitutions into bite-sized pieces for seds with
15942# small command number limits, like on Digital OSF/1 and HP-UX.
15943ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
15944ac_file=1 # Number of current file.
15945ac_beg=1 # First line for current file.
15946ac_end=$ac_max_sed_cmds # Line after last line for current file.
15947ac_more_lines=:
15948ac_sed_cmds=""
15949while $ac_more_lines; do
15950 if test $ac_beg -gt 1; then
15951 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
15952 else
15953 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
15954 fi
15955 if test ! -s conftest.s$ac_file; then
15956 ac_more_lines=false
15957 rm -f conftest.s$ac_file
15958 else
15959 if test -z "$ac_sed_cmds"; then
15960 ac_sed_cmds="sed -f conftest.s$ac_file"
15961 else
15962 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
15963 fi
15964 ac_file=`expr $ac_file + 1`
15965 ac_beg=$ac_end
15966 ac_end=`expr $ac_end + $ac_max_sed_cmds`
15967 fi
15968done
15969if test -z "$ac_sed_cmds"; then
15970 ac_sed_cmds=cat
15971fi
15972EOF
15973
15974cat >> $CONFIG_STATUS <<EOF
15975
15976CONFIG_FILES=\${CONFIG_FILES-"wx-config
15977 src/make.env
15978 src/makeprog.env
15979 src/makelib.env
15980 Makefile
10f2d63a
VZ
15981 "}
15982EOF
15983cat >> $CONFIG_STATUS <<\EOF
15984for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
15985 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
15986 case "$ac_file" in
15987 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
15988 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
15989 *) ac_file_in="${ac_file}.in" ;;
15990 esac
15991
15992 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
15993
15994 # Remove last slash and all that follows it. Not all systems have dirname.
15995 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
15996 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
15997 # The file is in a subdirectory.
15998 test ! -d "$ac_dir" && mkdir "$ac_dir"
15999 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
16000 # A "../" for each directory in $ac_dir_suffix.
16001 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
16002 else
16003 ac_dir_suffix= ac_dots=
16004 fi
16005
16006 case "$ac_given_srcdir" in
16007 .) srcdir=.
16008 if test -z "$ac_dots"; then top_srcdir=.
16009 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
16010 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
16011 *) # Relative path.
16012 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
16013 top_srcdir="$ac_dots$ac_given_srcdir" ;;
16014 esac
16015
16016 case "$ac_given_INSTALL" in
16017 [/$]*) INSTALL="$ac_given_INSTALL" ;;
16018 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
16019 esac
16020
16021 echo creating "$ac_file"
16022 rm -f "$ac_file"
16023 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
16024 case "$ac_file" in
16025 *Makefile*) ac_comsub="1i\\
16026# $configure_input" ;;
16027 *) ac_comsub= ;;
16028 esac
16029
16030 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
16031 sed -e "$ac_comsub
16032s%@configure_input@%$configure_input%g
16033s%@srcdir@%$srcdir%g
16034s%@top_srcdir@%$top_srcdir%g
16035s%@INSTALL@%$INSTALL%g
16036" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
16037fi; done
16038rm -f conftest.s*
16039
16040# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
16041# NAME is the cpp macro being defined and VALUE is the value it is being given.
16042#
16043# ac_d sets the value in "#define NAME VALUE" lines.
16044ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
16045ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
16046ac_dC='\3'
16047ac_dD='%g'
16048# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
16049ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
16050ac_uB='\([ ]\)%\1#\2define\3'
16051ac_uC=' '
16052ac_uD='\4%g'
16053# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
16054ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
16055ac_eB='$%\1#\2define\3'
16056ac_eC=' '
16057ac_eD='%g'
16058
16059if test "${CONFIG_HEADERS+set}" != set; then
16060EOF
16061cat >> $CONFIG_STATUS <<EOF
16062 CONFIG_HEADERS="setup.h:setup.h.in"
16063EOF
16064cat >> $CONFIG_STATUS <<\EOF
16065fi
16066for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
16067 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16068 case "$ac_file" in
16069 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
16070 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
16071 *) ac_file_in="${ac_file}.in" ;;
16072 esac
16073
16074 echo creating $ac_file
16075
16076 rm -f conftest.frag conftest.in conftest.out
16077 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
16078 cat $ac_file_inputs > conftest.in
16079
16080EOF
16081
16082# Transform confdefs.h into a sed script conftest.vals that substitutes
16083# the proper values into config.h.in to produce config.h. And first:
16084# Protect against being on the right side of a sed subst in config.status.
16085# Protect against being in an unquoted here document in config.status.
16086rm -f conftest.vals
16087cat > conftest.hdr <<\EOF
16088s/[\\&%]/\\&/g
16089s%[\\$`]%\\&%g
16090s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
16091s%ac_d%ac_u%gp
16092s%ac_u%ac_e%gp
16093EOF
16094sed -n -f conftest.hdr confdefs.h > conftest.vals
16095rm -f conftest.hdr
16096
16097# This sed command replaces #undef with comments. This is necessary, for
16098# example, in the case of _POSIX_SOURCE, which is predefined and required
16099# on some systems where configure will not decide to define it.
16100cat >> conftest.vals <<\EOF
16101s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
16102EOF
16103
16104# Break up conftest.vals because some shells have a limit on
16105# the size of here documents, and old seds have small limits too.
16106
16107rm -f conftest.tail
16108while :
16109do
16110 ac_lines=`grep -c . conftest.vals`
16111 # grep -c gives empty output for an empty file on some AIX systems.
16112 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
16113 # Write a limited-size here document to conftest.frag.
16114 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
16115 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
16116 echo 'CEOF
16117 sed -f conftest.frag conftest.in > conftest.out
16118 rm -f conftest.in
16119 mv conftest.out conftest.in
16120' >> $CONFIG_STATUS
16121 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
16122 rm -f conftest.vals
16123 mv conftest.tail conftest.vals
16124done
16125rm -f conftest.vals
16126
16127cat >> $CONFIG_STATUS <<\EOF
16128 rm -f conftest.frag conftest.h
16129 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
16130 cat conftest.in >> conftest.h
16131 rm -f conftest.in
16132 if cmp -s $ac_file conftest.h 2>/dev/null; then
16133 echo "$ac_file is unchanged"
16134 rm -f conftest.h
16135 else
16136 # Remove last slash and all that follows it. Not all systems have dirname.
16137 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
16138 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
16139 # The file is in a subdirectory.
16140 test ! -d "$ac_dir" && mkdir "$ac_dir"
16141 fi
16142 rm -f $ac_file
16143 mv conftest.h $ac_file
16144 fi
16145fi; done
16146
16147EOF
16148cat >> $CONFIG_STATUS <<EOF
16149
16150 TOOLKIT_DIR="${TOOLKIT_DIR}"
f6bcfd97 16151 TOOLKIT_NAME="${TOOLKIT_NAME}"
07eb77a6 16152 LN_S="${LN_S}"
10f2d63a
VZ
16153
16154
16155EOF
16156cat >> $CONFIG_STATUS <<\EOF
16157
16158 chmod +x wx-config
f6bcfd97
BP
16159 mv wx-config wx${TOOLKIT_NAME}-config
16160 ${LN_S} wx${TOOLKIT_NAME}-config wx-config
00cf1208 16161
f3c067d2 16162
00cf1208
RR
16163 if test ! -d lib; then
16164 mkdir lib
16165 fi
16166 if test ! -d lib/wx; then
16167 mkdir lib/wx
16168 fi
16169 if test ! -d lib/wx/include; then
16170 mkdir lib/wx/include
16171 fi
16172 if test ! -d lib/wx/include/wx; then
16173 mkdir lib/wx/include/wx
16174 fi
f6bcfd97
BP
16175 if test ! -d lib/wx/include/wx/${TOOLKIT_NAME}; then
16176 mkdir lib/wx/include/wx/${TOOLKIT_NAME}
00cf1208
RR
16177 fi
16178 if test -f setup.h; then
066b00aa 16179 cp -fp setup.h lib/wx/include/wx/${TOOLKIT_NAME}/setup.h
00cf1208 16180 fi
07eb77a6 16181
00cf1208 16182
10f2d63a
VZ
16183 if test ! -d include; then
16184 mkdir include
16185 fi
16186 if test ! -d include/wx; then
16187 mkdir include/wx
16188 fi
16189 if test ! -d include/wx/${TOOLKIT_DIR}; then
16190 mkdir include/wx/${TOOLKIT_DIR}
16191 fi
afc31813 16192 if test -f setup.h; then
066b00aa 16193 cp -fp setup.h include/wx/${TOOLKIT_DIR}/setup.h
afc31813 16194 fi
00cf1208 16195
10f2d63a
VZ
16196
16197exit 0
16198EOF
16199chmod +x $CONFIG_STATUS
16200rm -fr confdefs* $ac_clean_files
16201test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
16202
2224580a
VZ
16203if test "$no_recursion" != yes; then
16204
16205 # Remove --cache-file and --srcdir arguments so they do not pile up.
16206 ac_sub_configure_args=
16207 ac_prev=
16208 for ac_arg in $ac_configure_args; do
16209 if test -n "$ac_prev"; then
16210 ac_prev=
16211 continue
16212 fi
16213 case "$ac_arg" in
16214 -cache-file | --cache-file | --cache-fil | --cache-fi \
16215 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
16216 ac_prev=cache_file ;;
16217 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
16218 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
16219 ;;
16220 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
16221 ac_prev=srcdir ;;
16222 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
16223 ;;
16224 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
16225 esac
16226 done
16227
e8482f24 16228 for ac_config_dir in demos samples utils contrib; do
2224580a
VZ
16229
16230 # Do not complain, so a configure script can configure whichever
16231 # parts of a large source tree are present.
16232 if test ! -d $srcdir/$ac_config_dir; then
16233 continue
16234 fi
16235
16236 echo configuring in $ac_config_dir
16237
16238 case "$srcdir" in
16239 .) ;;
16240 *)
16241 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
16242 else
16243 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
16244 fi
16245 ;;
16246 esac
16247
16248 ac_popdir=`pwd`
16249 cd $ac_config_dir
16250
16251 # A "../" for each directory in /$ac_config_dir.
16252 ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
16253
16254 case "$srcdir" in
16255 .) # No --srcdir option. We are building in place.
16256 ac_sub_srcdir=$srcdir ;;
16257 /*) # Absolute path.
16258 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
16259 *) # Relative path.
16260 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
16261 esac
16262
16263 # Check for guested configure; otherwise get Cygnus style configure.
16264 if test -f $ac_sub_srcdir/configure; then
16265 ac_sub_configure=$ac_sub_srcdir/configure
16266 elif test -f $ac_sub_srcdir/configure.in; then
16267 ac_sub_configure=$ac_configure
16268 else
16269 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
16270 ac_sub_configure=
16271 fi
16272
16273 # The recursion is here.
16274 if test -n "$ac_sub_configure"; then
16275
16276 # Make the cache file name correct relative to the subdirectory.
16277 case "$cache_file" in
16278 /*) ac_sub_cache_file=$cache_file ;;
16279 *) # Relative path.
16280 ac_sub_cache_file="$ac_dots$cache_file" ;;
16281 esac
16282 case "$ac_given_INSTALL" in
16283 [/$]*) INSTALL="$ac_given_INSTALL" ;;
16284 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
16285 esac
16286
16287 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
16288 # The eval makes quoting arguments work.
16289 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
16290 then :
16291 else
16292 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
16293 fi
16294 fi
16295
16296 cd $ac_popdir
16297 done
16298fi
16299
10f2d63a 16300