]> git.saurik.com Git - wxWidgets.git/blame - configure
updated mac sources (CW 5.3 working , CW6 still having code gen problems)
[wxWidgets.git] / configure
CommitLineData
10f2d63a
VZ
1#! /bin/sh
2
3# From configure.in Id: configure.in
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
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
10f2d63a
VZ
292--enable-gif use gif images (GIF file format)"
293ac_help="$ac_help
294--enable-pcx use pcx images (PCX file format)"
295ac_help="$ac_help
296--enable-pnm use pnm images (PNM file format)"
6f72b082
OK
297ac_help="$ac_help
298 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)"
299ac_help="$ac_help
300 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)"
301ac_help="$ac_help
302 --disable-gtktest Do not try to compile and run a test GTK program"
ab9b9eab
VZ
303ac_help="$ac_help
304 --with-x use the X Window System"
10f2d63a
VZ
305
306# Initialize some variables set by options.
307# The variables have the same names as the options, with
308# dashes changed to underlines.
309build=NONE
310cache_file=./config.cache
311exec_prefix=NONE
312host=NONE
313no_create=
314nonopt=NONE
315no_recursion=
316prefix=NONE
317program_prefix=NONE
318program_suffix=NONE
319program_transform_name=s,x,x,
320silent=
321site=
322srcdir=
323target=NONE
324verbose=
325x_includes=NONE
326x_libraries=NONE
327bindir='${exec_prefix}/bin'
328sbindir='${exec_prefix}/sbin'
329libexecdir='${exec_prefix}/libexec'
330datadir='${prefix}/share'
331sysconfdir='${prefix}/etc'
332sharedstatedir='${prefix}/com'
333localstatedir='${prefix}/var'
334libdir='${exec_prefix}/lib'
335includedir='${prefix}/include'
336oldincludedir='/usr/include'
337infodir='${prefix}/info'
338mandir='${prefix}/man'
339
340# Initialize some other variables.
341subdirs=
342MFLAGS= MAKEFLAGS=
343SHELL=${CONFIG_SHELL-/bin/sh}
344# Maximum number of lines to put in a shell here document.
345ac_max_here_lines=12
346
347ac_prev=
348for ac_option
349do
350
351 # If the previous option needs an argument, assign it.
352 if test -n "$ac_prev"; then
353 eval "$ac_prev=\$ac_option"
354 ac_prev=
355 continue
356 fi
357
358 case "$ac_option" in
359 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
360 *) ac_optarg= ;;
361 esac
362
363 # Accept the important Cygnus configure options, so we can diagnose typos.
364
365 case "$ac_option" in
366
367 -bindir | --bindir | --bindi | --bind | --bin | --bi)
368 ac_prev=bindir ;;
369 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
370 bindir="$ac_optarg" ;;
371
372 -build | --build | --buil | --bui | --bu)
373 ac_prev=build ;;
374 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
375 build="$ac_optarg" ;;
376
377 -cache-file | --cache-file | --cache-fil | --cache-fi \
378 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
379 ac_prev=cache_file ;;
380 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
381 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
382 cache_file="$ac_optarg" ;;
383
384 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
385 ac_prev=datadir ;;
386 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
387 | --da=*)
388 datadir="$ac_optarg" ;;
389
390 -disable-* | --disable-*)
391 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
392 # Reject names that are not valid shell variable names.
393 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
394 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
395 fi
396 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
397 eval "enable_${ac_feature}=no" ;;
398
399 -enable-* | --enable-*)
400 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
401 # Reject names that are not valid shell variable names.
402 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
403 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
404 fi
405 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
406 case "$ac_option" in
407 *=*) ;;
408 *) ac_optarg=yes ;;
409 esac
410 eval "enable_${ac_feature}='$ac_optarg'" ;;
411
412 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
413 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
414 | --exec | --exe | --ex)
415 ac_prev=exec_prefix ;;
416 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
417 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
418 | --exec=* | --exe=* | --ex=*)
419 exec_prefix="$ac_optarg" ;;
420
421 -gas | --gas | --ga | --g)
422 # Obsolete; use --with-gas.
423 with_gas=yes ;;
424
425 -help | --help | --hel | --he)
426 # Omit some internal or obsolete options to make the list less imposing.
427 # This message is too long to be a string in the A/UX 3.1 sh.
428 cat << EOF
429Usage: configure [options] [host]
430Options: [defaults in brackets after descriptions]
431Configuration:
432 --cache-file=FILE cache test results in FILE
433 --help print this message
434 --no-create do not create output files
435 --quiet, --silent do not print \`checking...' messages
436 --version print the version of autoconf that created configure
437Directory and file names:
438 --prefix=PREFIX install architecture-independent files in PREFIX
439 [$ac_default_prefix]
440 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
441 [same as prefix]
442 --bindir=DIR user executables in DIR [EPREFIX/bin]
443 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
444 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
445 --datadir=DIR read-only architecture-independent data in DIR
446 [PREFIX/share]
447 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
448 --sharedstatedir=DIR modifiable architecture-independent data in DIR
449 [PREFIX/com]
450 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
451 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
452 --includedir=DIR C header files in DIR [PREFIX/include]
453 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
454 --infodir=DIR info documentation in DIR [PREFIX/info]
455 --mandir=DIR man documentation in DIR [PREFIX/man]
456 --srcdir=DIR find the sources in DIR [configure dir or ..]
457 --program-prefix=PREFIX prepend PREFIX to installed program names
458 --program-suffix=SUFFIX append SUFFIX to installed program names
459 --program-transform-name=PROGRAM
460 run sed PROGRAM on installed program names
461EOF
462 cat << EOF
463Host type:
464 --build=BUILD configure for building on BUILD [BUILD=HOST]
465 --host=HOST configure for HOST [guessed]
466 --target=TARGET configure for TARGET [TARGET=HOST]
467Features and packages:
468 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
469 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
470 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
471 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
472 --x-includes=DIR X include files are in DIR
473 --x-libraries=DIR X library files are in DIR
474EOF
475 if test -n "$ac_help"; then
476 echo "--enable and --with options recognized:$ac_help"
477 fi
478 exit 0 ;;
479
480 -host | --host | --hos | --ho)
481 ac_prev=host ;;
482 -host=* | --host=* | --hos=* | --ho=*)
483 host="$ac_optarg" ;;
484
485 -includedir | --includedir | --includedi | --included | --include \
486 | --includ | --inclu | --incl | --inc)
487 ac_prev=includedir ;;
488 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
489 | --includ=* | --inclu=* | --incl=* | --inc=*)
490 includedir="$ac_optarg" ;;
491
492 -infodir | --infodir | --infodi | --infod | --info | --inf)
493 ac_prev=infodir ;;
494 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
495 infodir="$ac_optarg" ;;
496
497 -libdir | --libdir | --libdi | --libd)
498 ac_prev=libdir ;;
499 -libdir=* | --libdir=* | --libdi=* | --libd=*)
500 libdir="$ac_optarg" ;;
501
502 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
503 | --libexe | --libex | --libe)
504 ac_prev=libexecdir ;;
505 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
506 | --libexe=* | --libex=* | --libe=*)
507 libexecdir="$ac_optarg" ;;
508
509 -localstatedir | --localstatedir | --localstatedi | --localstated \
510 | --localstate | --localstat | --localsta | --localst \
511 | --locals | --local | --loca | --loc | --lo)
512 ac_prev=localstatedir ;;
513 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
514 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
515 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
516 localstatedir="$ac_optarg" ;;
517
518 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
519 ac_prev=mandir ;;
520 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
521 mandir="$ac_optarg" ;;
522
523 -nfp | --nfp | --nf)
524 # Obsolete; use --without-fp.
525 with_fp=no ;;
526
527 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
528 | --no-cr | --no-c)
529 no_create=yes ;;
530
531 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
532 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
533 no_recursion=yes ;;
534
535 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
536 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
537 | --oldin | --oldi | --old | --ol | --o)
538 ac_prev=oldincludedir ;;
539 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
540 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
541 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
542 oldincludedir="$ac_optarg" ;;
543
544 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
545 ac_prev=prefix ;;
546 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
547 prefix="$ac_optarg" ;;
548
549 -program-prefix | --program-prefix | --program-prefi | --program-pref \
550 | --program-pre | --program-pr | --program-p)
551 ac_prev=program_prefix ;;
552 -program-prefix=* | --program-prefix=* | --program-prefi=* \
553 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
554 program_prefix="$ac_optarg" ;;
555
556 -program-suffix | --program-suffix | --program-suffi | --program-suff \
557 | --program-suf | --program-su | --program-s)
558 ac_prev=program_suffix ;;
559 -program-suffix=* | --program-suffix=* | --program-suffi=* \
560 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
561 program_suffix="$ac_optarg" ;;
562
563 -program-transform-name | --program-transform-name \
564 | --program-transform-nam | --program-transform-na \
565 | --program-transform-n | --program-transform- \
566 | --program-transform | --program-transfor \
567 | --program-transfo | --program-transf \
568 | --program-trans | --program-tran \
569 | --progr-tra | --program-tr | --program-t)
570 ac_prev=program_transform_name ;;
571 -program-transform-name=* | --program-transform-name=* \
572 | --program-transform-nam=* | --program-transform-na=* \
573 | --program-transform-n=* | --program-transform-=* \
574 | --program-transform=* | --program-transfor=* \
575 | --program-transfo=* | --program-transf=* \
576 | --program-trans=* | --program-tran=* \
577 | --progr-tra=* | --program-tr=* | --program-t=*)
578 program_transform_name="$ac_optarg" ;;
579
580 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
581 | -silent | --silent | --silen | --sile | --sil)
582 silent=yes ;;
583
584 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
585 ac_prev=sbindir ;;
586 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
587 | --sbi=* | --sb=*)
588 sbindir="$ac_optarg" ;;
589
590 -sharedstatedir | --sharedstatedir | --sharedstatedi \
591 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
592 | --sharedst | --shareds | --shared | --share | --shar \
593 | --sha | --sh)
594 ac_prev=sharedstatedir ;;
595 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
596 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
597 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
598 | --sha=* | --sh=*)
599 sharedstatedir="$ac_optarg" ;;
600
601 -site | --site | --sit)
602 ac_prev=site ;;
603 -site=* | --site=* | --sit=*)
604 site="$ac_optarg" ;;
605
606 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
607 ac_prev=srcdir ;;
608 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
609 srcdir="$ac_optarg" ;;
610
611 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
612 | --syscon | --sysco | --sysc | --sys | --sy)
613 ac_prev=sysconfdir ;;
614 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
615 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
616 sysconfdir="$ac_optarg" ;;
617
618 -target | --target | --targe | --targ | --tar | --ta | --t)
619 ac_prev=target ;;
620 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
621 target="$ac_optarg" ;;
622
623 -v | -verbose | --verbose | --verbos | --verbo | --verb)
624 verbose=yes ;;
625
626 -version | --version | --versio | --versi | --vers)
e8482f24 627 echo "configure generated by autoconf version 2.13"
10f2d63a
VZ
628 exit 0 ;;
629
630 -with-* | --with-*)
631 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
632 # Reject names that are not valid shell variable names.
633 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
634 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
635 fi
636 ac_package=`echo $ac_package| sed 's/-/_/g'`
637 case "$ac_option" in
638 *=*) ;;
639 *) ac_optarg=yes ;;
640 esac
641 eval "with_${ac_package}='$ac_optarg'" ;;
642
643 -without-* | --without-*)
644 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
645 # Reject names that are not valid shell variable names.
646 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
647 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
648 fi
649 ac_package=`echo $ac_package| sed 's/-/_/g'`
650 eval "with_${ac_package}=no" ;;
651
652 --x)
653 # Obsolete; use --with-x.
654 with_x=yes ;;
655
656 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
657 | --x-incl | --x-inc | --x-in | --x-i)
658 ac_prev=x_includes ;;
659 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
660 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
661 x_includes="$ac_optarg" ;;
662
663 -x-libraries | --x-libraries | --x-librarie | --x-librari \
664 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
665 ac_prev=x_libraries ;;
666 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
667 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
668 x_libraries="$ac_optarg" ;;
669
670 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
671 ;;
672
673 *)
674 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
675 echo "configure: warning: $ac_option: invalid host type" 1>&2
676 fi
677 if test "x$nonopt" != xNONE; then
678 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
679 fi
680 nonopt="$ac_option"
681 ;;
682
683 esac
684done
685
686if test -n "$ac_prev"; then
687 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
688fi
689
690trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
691
692# File descriptor usage:
693# 0 standard input
694# 1 file creation
695# 2 errors and warnings
696# 3 some systems may open it to /dev/tty
697# 4 used on the Kubota Titan
698# 6 checking for... messages and results
699# 5 compiler messages saved in config.log
700if test "$silent" = yes; then
701 exec 6>/dev/null
702else
703 exec 6>&1
704fi
705exec 5>./config.log
706
707echo "\
708This file contains any messages produced by compilers while
709running configure, to aid debugging if configure makes a mistake.
710" 1>&5
711
712# Strip out --no-create and --no-recursion so they do not pile up.
713# Also quote any args containing shell metacharacters.
714ac_configure_args=
715for ac_arg
716do
717 case "$ac_arg" in
718 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
719 | --no-cr | --no-c) ;;
720 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
721 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
722 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
723 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
724 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
725 esac
726done
727
728# NLS nuisances.
729# Only set these to C if already set. These must not be set unconditionally
730# because not all systems understand e.g. LANG=C (notably SCO).
731# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
732# Non-C LC_CTYPE values break the ctype check.
733if test "${LANG+set}" = set; then LANG=C; export LANG; fi
734if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
735if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
736if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
737
738# confdefs.h avoids OS command line length limits that DEFS can exceed.
739rm -rf conftest* confdefs.h
740# AIX cpp loses on an empty file, so make sure it contains at least a newline.
741echo > confdefs.h
742
743# A filename unique to this package, relative to the directory that
744# configure is in, which we can look for to find out if srcdir is correct.
745ac_unique_file=wx-config.in
746
747# Find the source files, if location was not specified.
748if test -z "$srcdir"; then
749 ac_srcdir_defaulted=yes
750 # Try the directory containing this script, then its parent.
751 ac_prog=$0
752 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
753 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
754 srcdir=$ac_confdir
755 if test ! -r $srcdir/$ac_unique_file; then
756 srcdir=..
757 fi
758else
759 ac_srcdir_defaulted=no
760fi
761if test ! -r $srcdir/$ac_unique_file; then
762 if test "$ac_srcdir_defaulted" = yes; then
763 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
764 else
765 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
766 fi
767fi
768srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
769
770# Prefer explicitly selected file to automatically selected ones.
771if test -z "$CONFIG_SITE"; then
772 if test "x$prefix" != xNONE; then
773 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
774 else
775 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
776 fi
777fi
778for ac_site_file in $CONFIG_SITE; do
779 if test -r "$ac_site_file"; then
780 echo "loading site script $ac_site_file"
781 . "$ac_site_file"
782 fi
783done
784
785if test -r "$cache_file"; then
786 echo "loading cache $cache_file"
787 . $cache_file
788else
789 echo "creating cache $cache_file"
790 > $cache_file
791fi
792
793ac_ext=c
794# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
795ac_cpp='$CPP $CPPFLAGS'
796ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
797ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
798cross_compiling=$ac_cv_prog_cc_cross
799
800ac_exeext=
801ac_objext=o
802if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
803 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
804 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
805 ac_n= ac_c='
806' ac_t=' '
807 else
808 ac_n=-n ac_c= ac_t=
809 fi
810else
811 ac_n= ac_c='\c' ac_t=
812fi
813
814
815
7c66a493
VZ
816ac_aux_dir=
817for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
818 if test -f $ac_dir/install-sh; then
819 ac_aux_dir=$ac_dir
820 ac_install_sh="$ac_aux_dir/install-sh -c"
821 break
822 elif 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 fi
827done
828if test -z "$ac_aux_dir"; then
829 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
830fi
831ac_config_guess=$ac_aux_dir/config.guess
832ac_config_sub=$ac_aux_dir/config.sub
833ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
834
835
836# Do some error checking and defaulting for the host and target type.
837# The inputs are:
838# configure --host=HOST --target=TARGET --build=BUILD NONOPT
839#
840# The rules are:
841# 1. You are not allowed to specify --host, --target, and nonopt at the
842# same time.
843# 2. Host defaults to nonopt.
844# 3. If nonopt is not specified, then host defaults to the current host,
845# as determined by config.guess.
846# 4. Target and build default to nonopt.
847# 5. If nonopt is not specified, then target and build default to host.
848
849# The aliases save the names the user supplied, while $host etc.
850# will get canonicalized.
851case $host---$target---$nonopt in
852NONE---*---* | *---NONE---* | *---*---NONE) ;;
853*) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
854esac
855
856
857# Make sure we can run config.sub.
858if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
859else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
860fi
861
862echo $ac_n "checking host system type""... $ac_c" 1>&6
1db8dc4a 863echo "configure:864: checking host system type" >&5
7c66a493
VZ
864
865host_alias=$host
866case "$host_alias" in
867NONE)
868 case $nonopt in
869 NONE)
870 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
871 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
872 fi ;;
873 *) host_alias=$nonopt ;;
874 esac ;;
875esac
876
877host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
878host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
879host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
880host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
881echo "$ac_t""$host" 1>&6
882
883echo $ac_n "checking target system type""... $ac_c" 1>&6
1db8dc4a 884echo "configure:885: checking target system type" >&5
7c66a493
VZ
885
886target_alias=$target
887case "$target_alias" in
888NONE)
889 case $nonopt in
890 NONE) target_alias=$host_alias ;;
891 *) target_alias=$nonopt ;;
892 esac ;;
893esac
894
895target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
896target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
897target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
898target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
899echo "$ac_t""$target" 1>&6
900
901echo $ac_n "checking build system type""... $ac_c" 1>&6
1db8dc4a 902echo "configure:903: checking build system type" >&5
7c66a493
VZ
903
904build_alias=$build
905case "$build_alias" in
906NONE)
907 case $nonopt in
908 NONE) build_alias=$host_alias ;;
909 *) build_alias=$nonopt ;;
910 esac ;;
911esac
912
913build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
914build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
915build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
916build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
917echo "$ac_t""$build" 1>&6
918
919test "$host_alias" != "$target_alias" &&
920 test "$program_prefix$program_suffix$program_transform_name" = \
921 NONENONEs,x,x, &&
922 program_prefix=${target_alias}-
923
924
10f2d63a
VZ
925
926WX_MAJOR_VERSION_NUMBER=2
37d403aa 927WX_MINOR_VERSION_NUMBER=3
f6bcfd97 928WX_RELEASE_NUMBER=0
10f2d63a
VZ
929
930WX_INTERFACE_AGE=0
e8f65ba6 931WX_BINARY_AGE=0
10f2d63a
VZ
932
933WX_VERSION=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER.$WX_RELEASE_NUMBER
934
935WX_RELEASE=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER
936WX_CURRENT=`expr $WX_RELEASE_NUMBER - $WX_INTERFACE_AGE`
937WX_REVISION=$WX_INTERFACE_AGE
938WX_AGE=`expr $WX_BINARY_AGE - $WX_INTERFACE_AGE`
939
940
941USE_UNIX=1
942USE_WIN32=0
b12915c1
VZ
943USE_BEOS=0
944
10f2d63a
VZ
945USE_LINUX=
946USE_SGI=
947USE_HPUX=
948USE_SYSV=
949USE_SVR4=
950USE_AIX=
951USE_SUN=
952USE_SOLARIS=
953USE_SUNOS=
954USE_ALPHA=
955USE_OSF=
956USE_BSD=
957USE_FREEBSD=
f6bcfd97 958USE_NETBSD=
10f2d63a
VZ
959USE_VMS=
960USE_ULTRIX=
961USE_CYGWIN=
962USE_MINGW=
963USE_DATA_GENERAL=
964
ab9b9eab
VZ
965NEEDS_D_REENTRANT_FOR_R_FUNCS=0
966
b4085ce6 967ALL_TOOLKITS="CYGWIN GTK MINGW MOTIF MAC WINE PM"
10f2d63a
VZ
968
969DEFAULT_wxUSE_GTK=0
970DEFAULT_wxUSE_MOTIF=0
971DEFAULT_wxUSE_MSW=0
b4085ce6 972DEFAULT_wxUSE_MAC=0
10f2d63a 973DEFAULT_wxUSE_WINE=0
e07802fc 974DEFAULT_wxUSE_PM=0
10f2d63a
VZ
975
976DEFAULT_DEFAULT_wxUSE_GTK=0
977DEFAULT_DEFAULT_wxUSE_MOTIF=0
978DEFAULT_DEFAULT_wxUSE_MSW=0
b4085ce6 979DEFAULT_DEFAULT_wxUSE_MAC=0
10f2d63a 980DEFAULT_DEFAULT_wxUSE_WINE=0
e07802fc 981DEFAULT_DEFAULT_wxUSE_PM=0
10f2d63a 982
d6a55c4b
VZ
983PROGRAM_EXT=
984
10f2d63a
VZ
985case "${host}" in
986 *-hp-hpux* )
987 USE_HPUX=1
988 DEFAULT_DEFAULT_wxUSE_MOTIF=1
ab9b9eab 989 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
10f2d63a
VZ
990 cat >> confdefs.h <<\EOF
991#define __HPUX__ 1
992EOF
993
994 ;;
995 *-*-linux* )
996 USE_LINUX=1
997 cat >> confdefs.h <<\EOF
998#define __LINUX__ 1
999EOF
1000
1001 TMP=`uname -m`
1002 if test "x$TMP" = "xalpha"; then
1003 USE_ALPHA=1
1004 cat >> confdefs.h <<\EOF
1005#define __ALPHA__ 1
1006EOF
1007
1008 fi
1009 DEFAULT_DEFAULT_wxUSE_GTK=1
1010 ;;
1011 *-*-irix5* | *-*-irix6* )
1012 USE_SGI=1
1013 USE_SVR4=1
1014 cat >> confdefs.h <<\EOF
1015#define __SGI__ 1
1016EOF
1017
1018 cat >> confdefs.h <<\EOF
1019#define __SVR4__ 1
1020EOF
1021
1022 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1023 ;;
1024 *-*-solaris2* )
1025 USE_SUN=1
1026 USE_SOLARIS=1
1027 USE_SVR4=1
1028 cat >> confdefs.h <<\EOF
1029#define __SUN__ 1
1030EOF
1031
1032 cat >> confdefs.h <<\EOF
1033#define __SOLARIS__ 1
1034EOF
1035
1036 cat >> confdefs.h <<\EOF
1037#define __SVR4__ 1
1038EOF
1039
1040 DEFAULT_DEFAULT_wxUSE_MOTIF=1
ab9b9eab 1041 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
10f2d63a
VZ
1042 ;;
1043 *-*-sunos4* )
1044 USE_SUN=1
1045 USE_SUNOS=1
1046 USE_BSD=1
1047 cat >> confdefs.h <<\EOF
1048#define __SUN__ 1
1049EOF
1050
1051 cat >> confdefs.h <<\EOF
1052#define __SUNOS__ 1
1053EOF
1054
1055 cat >> confdefs.h <<\EOF
1056#define __BSD__ 1
1057EOF
1058
1059 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1060 ;;
f6bcfd97 1061 *-*-freebsd*)
10f2d63a
VZ
1062 USE_BSD=1
1063 USE_FREEBSD=1
1064 cat >> confdefs.h <<\EOF
1065#define __FREEBSD__ 1
1066EOF
1067
1068 cat >> confdefs.h <<\EOF
1069#define __BSD__ 1
f6bcfd97
BP
1070EOF
1071
1072 DEFAULT_DEFAULT_wxUSE_GTK=1
1073 ;;
1074 *-*-netbsd*)
1075 USE_BSD=1
1076 USE_NETBSD=1
1077 cat >> confdefs.h <<\EOF
1078#define __FREEBSD__ 1
1079EOF
1080
1081 cat >> confdefs.h <<\EOF
1082#define __NETBSD__ 1
10f2d63a
VZ
1083EOF
1084
1085 DEFAULT_DEFAULT_wxUSE_GTK=1
1086 ;;
1087 *-*-osf* )
1088 USE_ALPHA=1
1089 USE_OSF=1
1090 cat >> confdefs.h <<\EOF
1091#define __ALPHA__ 1
1092EOF
1093
1094 cat >> confdefs.h <<\EOF
1095#define __OSF__ 1
1096EOF
1097
1098 DEFAULT_DEFAULT_wxUSE_MOTIF=1
f6bcfd97 1099 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
10f2d63a
VZ
1100 ;;
1101 *-*-dgux5* )
1102 USE_ALPHA=1
1103 USE_SVR4=1
1104 cat >> confdefs.h <<\EOF
1105#define __ALPHA__ 1
1106EOF
1107
1108 cat >> confdefs.h <<\EOF
1109#define __SVR4__ 1
1110EOF
1111
1112 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1113 ;;
1114 *-*-sysv5* )
1115 USE_SYSV=1
1116 USE_SVR4=1
1117 cat >> confdefs.h <<\EOF
1118#define __SYSV__ 1
1119EOF
1120
1121 cat >> confdefs.h <<\EOF
1122#define __SVR4__ 1
1123EOF
1124
1125 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1126 ;;
1127 *-*-aix* )
1128 USE_AIX=1
1129 USE_SYSV=1
1130 USE_SVR4=1
1131 cat >> confdefs.h <<\EOF
1132#define __AIX__ 1
1133EOF
1134
1135 cat >> confdefs.h <<\EOF
1136#define __SYSV__ 1
1137EOF
1138
1139 cat >> confdefs.h <<\EOF
1140#define __SVR4__ 1
1141EOF
1142
1143 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1144 ;;
1145
7eef8db2 1146 *-*-cygwin32* | *-*-mingw32* )
10f2d63a
VZ
1147 USE_UNIX=0
1148 USE_WIN32=1
1149 cat >> confdefs.h <<\EOF
1150#define __WIN32__ 1
1151EOF
1152
1153 cat >> confdefs.h <<\EOF
1154#define __WIN95__ 1
1155EOF
1156
1157 cat >> confdefs.h <<\EOF
1158#define __WINDOWS__ 1
1159EOF
1160
1161 cat >> confdefs.h <<\EOF
1162#define __GNUWIN32__ 1
1163EOF
1164
1165 cat >> confdefs.h <<\EOF
1166#define STRICT 1
1167EOF
1168
1169 cat >> confdefs.h <<\EOF
1170#define WINVER 0x0400
1171EOF
1172
cf27ef00 1173 PROGRAM_EXT=".exe"
10f2d63a
VZ
1174 DEFAULT_DEFAULT_wxUSE_MSW=1
1175 ;;
1176
1177 *-pc-os2_emx )
1178 cat >> confdefs.h <<\EOF
1179#define __EMX__ 1
1180EOF
1181
cf27ef00 1182 PROGRAM_EXT=".exe"
e07802fc 1183 DEFAULT_DEFAULT_wxUSE_PM=1
10f2d63a
VZ
1184 ;;
1185
b4085ce6
GD
1186 *-*-darwin* )
1187 USE_BSD=1
1188 USE_MAC=1
1189 cat >> confdefs.h <<\EOF
1190#define __MAC__ 1
1191EOF
1192
1193 cat >> confdefs.h <<\EOF
1194#define __BSD__ 1
1195EOF
1196
1197 cat >> confdefs.h <<\EOF
1198#define __UNIX__ 1
1199EOF
1200
1201 DEFAULT_DEFAULT_wxUSE_MAC=1
1202 ;;
1203
b12915c1
VZ
1204 *-*-beos* )
1205 USE_BEOS=1
1206 cat >> confdefs.h <<\EOF
1207#define __BEOS__ 1
1208EOF
1209
1210 ;;
1211
10f2d63a
VZ
1212 *)
1213 { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; }
1214esac
1215
1216if test "$USE_UNIX" = 1 ; then
b12915c1
VZ
1217 wxUSE_UNIX=yes
1218 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1219#define __UNIX__ 1
1220EOF
1221
b12915c1
VZ
1222
1223 SRC_SUBDIRS="$SRC_SUBDIRS unix"
1224 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS unix"
1225fi
1226
1227if test "$USE_BEOS" = 1; then
1228 SRC_SUBDIRS="$SRC_SUBDIRS be"
1229 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS be"
10f2d63a
VZ
1230fi
1231
1232if test "$USE_LINUX" = 1; then
1233 echo $ac_n "checking for gettext in -lc""... $ac_c" 1>&6
1db8dc4a 1234echo "configure:1235: checking for gettext in -lc" >&5
10f2d63a
VZ
1235ac_lib_var=`echo c'_'gettext | sed 'y%./+-%__p_%'`
1236if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1237 echo $ac_n "(cached) $ac_c" 1>&6
1238else
1239 ac_save_LIBS="$LIBS"
1240LIBS="-lc $LIBS"
1241cat > conftest.$ac_ext <<EOF
1db8dc4a 1242#line 1243 "configure"
10f2d63a
VZ
1243#include "confdefs.h"
1244/* Override any gcc2 internal prototype to avoid an error. */
1245/* We use char because int might match the return type of a gcc2
1246 builtin and then its argument prototype would still apply. */
1247char gettext();
1248
1249int main() {
1250gettext()
1251; return 0; }
1252EOF
1db8dc4a 1253if { (eval echo configure:1254: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
1254 rm -rf conftest*
1255 eval "ac_cv_lib_$ac_lib_var=yes"
1256else
1257 echo "configure: failed program was:" >&5
1258 cat conftest.$ac_ext >&5
1259 rm -rf conftest*
1260 eval "ac_cv_lib_$ac_lib_var=no"
1261fi
1262rm -f conftest*
1263LIBS="$ac_save_LIBS"
1264
1265fi
1266if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1267 echo "$ac_t""yes" 1>&6
1268 cat >> confdefs.h <<\EOF
1269#define wxHAVE_GLIBC2 1
1270EOF
1271
1272else
1273 echo "$ac_t""no" 1>&6
1274fi
1275
1276fi
1277
1278
1279
1280
1281 wx_arg_cache_file="configarg.cache"
1282 echo "loading argument cache $wx_arg_cache_file"
1283 rm -f ${wx_arg_cache_file}.tmp
1284 touch ${wx_arg_cache_file}.tmp
1285 touch ${wx_arg_cache_file}
1286
1287
1288DEBUG_CONFIGURE=0
1289if test $DEBUG_CONFIGURE = 1; then
1290 DEFAULT_wxUSE_THREADS=yes
1291
1292 DEFAULT_wxUSE_SHARED=yes
00cf1208 1293 DEFAULT_wxUSE_BURNT_NAME=no
10f2d63a
VZ
1294 DEFAULT_wxUSE_OPTIMISE=yes
1295 DEFAULT_wxUSE_PROFILE=no
1296 DEFAULT_wxUSE_NO_DEPS=no
1297 DEFAULT_wxUSE_NO_RTTI=no
1298 DEFAULT_wxUSE_NO_EXCEPTIONS=no
1299 DEFAULT_wxUSE_PERMISSIVE=no
1300 DEFAULT_wxUSE_DEBUG_FLAG=yes
1301 DEFAULT_wxUSE_DEBUG_INFO=yes
1302 DEFAULT_wxUSE_DEBUG_GDB=yes
1303 DEFAULT_wxUSE_MEM_TRACING=no
1304 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1305 DEFAULT_wxUSE_DMALLOC=no
1306 DEFAULT_wxUSE_APPLE_IEEE=no
1307
1308 DEFAULT_wxUSE_LOG=yes
1309
1310 DEFAULT_wxUSE_GUI=yes
1311
1312 DEFAULT_wxUSE_ZLIB=no
1313 DEFAULT_wxUSE_LIBPNG=no
1314 DEFAULT_wxUSE_LIBJPEG=no
c7a2bf27 1315 DEFAULT_wxUSE_LIBTIFF=no
10f2d63a 1316 DEFAULT_wxUSE_ODBC=no
3fed1840 1317 DEFAULT_wxUSE_FREETYPE=no
bdad4e7e 1318 DEFAULT_wxUSE_OPENGL=no
10f2d63a 1319
eb4efbdc 1320 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no
10f2d63a
VZ
1321 DEFAULT_wxUSE_STD_IOSTREAM=no
1322 DEFAULT_wxUSE_FILE=no
1323 DEFAULT_wxUSE_TEXTFILE=no
1324 DEFAULT_wxUSE_TIMEDATE=no
1325 DEFAULT_wxUSE_WAVE=no
1326 DEFAULT_wxUSE_INTL=no
1327 DEFAULT_wxUSE_CONFIG=no
1328 DEFAULT_wxUSE_STREAMS=no
1329 DEFAULT_wxUSE_SOCKETS=no
1330 DEFAULT_wxUSE_DIALUP_MANAGER=no
1331 DEFAULT_wxUSE_SERIAL=no
1332 DEFAULT_wxUSE_JOYSTICK=no
1333 DEFAULT_wxUSE_DYNLIB_CLASS=no
1334 DEFAULT_wxUSE_LONGLONG=no
e8f65ba6 1335 DEFAULT_wxUSE_GEOMETRY=no
10f2d63a
VZ
1336
1337 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
1338 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
1339 DEFAULT_wxUSE_POSTSCRIPT=no
1340
1341 DEFAULT_wxUSE_X_RESOURCES=no
1342 DEFAULT_wxUSE_CLIPBOARD=no
1343 DEFAULT_wxUSE_TOOLTIPS=no
1344 DEFAULT_wxUSE_DRAG_AND_DROP=no
1345 DEFAULT_wxUSE_SPLINES=no
1346
1347 DEFAULT_wxUSE_MDI_ARCHITECTURE=no
1348 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
1349 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
1350
1351 DEFAULT_wxUSE_PROLOGIO=no
1352 DEFAULT_wxUSE_RESOURCES=no
1353 DEFAULT_wxUSE_CONSTRAINTS=no
1354 DEFAULT_wxUSE_IPC=no
1355 DEFAULT_wxUSE_HELP=no
1356 DEFAULT_wxUSE_WXTREE=no
1357 DEFAULT_wxUSE_METAFILE=no
1358
1359 DEFAULT_wxUSE_COMMONDLGS=no
1360 DEFAULT_wxUSE_DIRDLG=no
1361 DEFAULT_wxUSE_TEXTDLG=no
1362 DEFAULT_wxUSE_STARTUP_TIPS=no
1363 DEFAULT_wxUSE_PROGRESSDLG=no
1364 DEFAULT_wxUSE_MINIFRAME=no
1365 DEFAULT_wxUSE_HTML=no
24528b0c 1366 DEFAULT_wxUSE_FILESYSTEM=no
10f2d63a
VZ
1367 DEFAULT_wxUSE_FS_INET=no
1368 DEFAULT_wxUSE_FS_ZIP=no
1369 DEFAULT_wxUSE_BUSYINFO=no
1370 DEFAULT_wxUSE_ZIPSTREAM=no
1371 DEFAULT_wxUSE_VALIDATORS=yes
1372
1373 DEFAULT_wxUSE_ACCEL=no
1374 DEFAULT_wxUSE_CARET=no
1375 DEFAULT_wxUSE_BMPBUTTON=no
1376 DEFAULT_wxUSE_CHECKBOX=no
1377 DEFAULT_wxUSE_CHECKLST=no
1378 DEFAULT_wxUSE_CHOICE=yes
1379 DEFAULT_wxUSE_COMBOBOX=no
1380 DEFAULT_wxUSE_GAUGE=no
1381 DEFAULT_wxUSE_GRID=no
1382 DEFAULT_wxUSE_NEW_GRID=no
1383 DEFAULT_wxUSE_IMAGLIST=no
1384 DEFAULT_wxUSE_LISTBOX=no
1385 DEFAULT_wxUSE_LISTCTRL=no
1386 DEFAULT_wxUSE_NOTEBOOK=no
1387 DEFAULT_wxUSE_RADIOBOX=no
1388 DEFAULT_wxUSE_RADIOBTN=no
1389 DEFAULT_wxUSE_SASH=no
1390 DEFAULT_wxUSE_SCROLLBAR=no
1391 DEFAULT_wxUSE_SLIDER=no
1392 DEFAULT_wxUSE_SPINBTN=no
56cfaa52 1393 DEFAULT_wxUSE_SPINCTRL=no
10f2d63a
VZ
1394 DEFAULT_wxUSE_SPLITTER=no
1395 DEFAULT_wxUSE_STATBMP=no
1396 DEFAULT_wxUSE_STATBOX=no
1397 DEFAULT_wxUSE_STATLINE=no
1398 DEFAULT_wxUSE_STATUSBAR=yes
1399 DEFAULT_wxUSE_TABDIALOG=no
1db8dc4a 1400 DEFAULT_wxUSE_TOGGLEBTN=no
10f2d63a 1401 DEFAULT_wxUSE_TOOLBAR=no
360d6699
VZ
1402 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
1403 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
10f2d63a
VZ
1404 DEFAULT_wxUSE_TREECTRL=no
1405
1406 DEFAULT_wxUSE_UNICODE=no
1407 DEFAULT_wxUSE_WCSRTOMBS=no
1408
1409 DEFAULT_wxUSE_GIF=no
1410 DEFAULT_wxUSE_PCX=no
1411 DEFAULT_wxUSE_PNM=no
1412else
1413 DEFAULT_wxUSE_THREADS=yes
1414
1415 DEFAULT_wxUSE_SHARED=yes
00cf1208 1416 DEFAULT_wxUSE_BURNT_NAME=no
10f2d63a
VZ
1417 DEFAULT_wxUSE_OPTIMISE=yes
1418 DEFAULT_wxUSE_PROFILE=no
1419 DEFAULT_wxUSE_NO_DEPS=no
1420 DEFAULT_wxUSE_NO_RTTI=no
1421 DEFAULT_wxUSE_NO_EXCEPTIONS=no
1422 DEFAULT_wxUSE_PERMISSIVE=no
1423 DEFAULT_wxUSE_DEBUG_FLAG=no
1424 DEFAULT_wxUSE_DEBUG_INFO=no
1425 DEFAULT_wxUSE_DEBUG_GDB=no
1426 DEFAULT_wxUSE_MEM_TRACING=no
1427 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1428 DEFAULT_wxUSE_DMALLOC=no
1429 DEFAULT_wxUSE_APPLE_IEEE=yes
1430
1431 DEFAULT_wxUSE_LOG=yes
1432
1433 DEFAULT_wxUSE_GUI=yes
1434
1435 DEFAULT_wxUSE_ZLIB=yes
1436 DEFAULT_wxUSE_LIBPNG=yes
1437 DEFAULT_wxUSE_LIBJPEG=yes
b47c832e 1438 DEFAULT_wxUSE_LIBTIFF=yes
16b52fa1 1439 DEFAULT_wxUSE_ODBC=no
3fed1840 1440 DEFAULT_wxUSE_FREETYPE=no
bdad4e7e 1441 DEFAULT_wxUSE_OPENGL=no
10f2d63a 1442
eb4efbdc 1443 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes
10f2d63a
VZ
1444 DEFAULT_wxUSE_STD_IOSTREAM=no
1445 DEFAULT_wxUSE_FILE=yes
1446 DEFAULT_wxUSE_TEXTFILE=yes
1447 DEFAULT_wxUSE_TIMEDATE=yes
1448 DEFAULT_wxUSE_WAVE=no
1449 DEFAULT_wxUSE_INTL=yes
1450 DEFAULT_wxUSE_CONFIG=yes
1451 DEFAULT_wxUSE_STREAMS=yes
1452 DEFAULT_wxUSE_SOCKETS=yes
1453 DEFAULT_wxUSE_DIALUP_MANAGER=yes
1454 DEFAULT_wxUSE_SERIAL=yes
1455 DEFAULT_wxUSE_JOYSTICK=yes
1456 DEFAULT_wxUSE_DYNLIB_CLASS=yes
b685cd9b 1457 DEFAULT_wxUSE_LONGLONG=yes
e8f65ba6 1458 DEFAULT_wxUSE_GEOMETRY=yes
10f2d63a
VZ
1459
1460 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
1461 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
1462 DEFAULT_wxUSE_POSTSCRIPT=yes
1463
1464 DEFAULT_wxUSE_X_RESOURCES=no
1465 DEFAULT_wxUSE_CLIPBOARD=yes
1466 DEFAULT_wxUSE_TOOLTIPS=yes
1467 DEFAULT_wxUSE_DRAG_AND_DROP=yes
1468 DEFAULT_wxUSE_SPLINES=yes
1469
1470 DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
1471 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
1472 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
1473
1474 DEFAULT_wxUSE_PROLOGIO=yes
1475 DEFAULT_wxUSE_RESOURCES=yes
1476 DEFAULT_wxUSE_CONSTRAINTS=yes
1477 DEFAULT_wxUSE_IPC=yes
1478 DEFAULT_wxUSE_HELP=yes
1479 DEFAULT_wxUSE_WXTREE=yes
1480 DEFAULT_wxUSE_METAFILE=yes
1481
1482 DEFAULT_wxUSE_COMMONDLGS=yes
1483 DEFAULT_wxUSE_DIRDLG=yes
1484 DEFAULT_wxUSE_TEXTDLG=yes
1485 DEFAULT_wxUSE_STARTUP_TIPS=yes
1486 DEFAULT_wxUSE_PROGRESSDLG=yes
1487 DEFAULT_wxUSE_MINIFRAME=yes
1488 DEFAULT_wxUSE_HTML=yes
24528b0c 1489 DEFAULT_wxUSE_FILESYSTEM=yes
10f2d63a
VZ
1490 DEFAULT_wxUSE_FS_INET=yes
1491 DEFAULT_wxUSE_FS_ZIP=yes
1492 DEFAULT_wxUSE_BUSYINFO=yes
1493 DEFAULT_wxUSE_ZIPSTREAM=yes
1494 DEFAULT_wxUSE_VALIDATORS=yes
1495
1496 DEFAULT_wxUSE_ACCEL=yes
1497 DEFAULT_wxUSE_CARET=yes
1498 DEFAULT_wxUSE_BMPBUTTON=yes
1499 DEFAULT_wxUSE_CHECKBOX=yes
1500 DEFAULT_wxUSE_CHECKLST=yes
1501 DEFAULT_wxUSE_CHOICE=yes
1502 DEFAULT_wxUSE_COMBOBOX=yes
1503 DEFAULT_wxUSE_GAUGE=yes
1504 DEFAULT_wxUSE_GRID=yes
cc977e5f 1505 DEFAULT_wxUSE_NEW_GRID=yes
10f2d63a
VZ
1506 DEFAULT_wxUSE_IMAGLIST=yes
1507 DEFAULT_wxUSE_LISTBOX=yes
1508 DEFAULT_wxUSE_LISTCTRL=yes
1509 DEFAULT_wxUSE_NOTEBOOK=yes
1510 DEFAULT_wxUSE_RADIOBOX=yes
1511 DEFAULT_wxUSE_RADIOBTN=yes
1512 DEFAULT_wxUSE_SASH=yes
1513 DEFAULT_wxUSE_SCROLLBAR=yes
1514 DEFAULT_wxUSE_SLIDER=yes
1515 DEFAULT_wxUSE_SPINBTN=yes
56cfaa52 1516 DEFAULT_wxUSE_SPINCTRL=yes
10f2d63a
VZ
1517 DEFAULT_wxUSE_SPLITTER=yes
1518 DEFAULT_wxUSE_STATBMP=yes
1519 DEFAULT_wxUSE_STATBOX=yes
1520 DEFAULT_wxUSE_STATLINE=yes
1521 DEFAULT_wxUSE_STATUSBAR=yes
1522 DEFAULT_wxUSE_TABDIALOG=no
1db8dc4a 1523 DEFAULT_wxUSE_TOGGLEBTN=yes
10f2d63a 1524 DEFAULT_wxUSE_TOOLBAR=yes
360d6699
VZ
1525 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
1526 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
10f2d63a
VZ
1527 DEFAULT_wxUSE_TREECTRL=yes
1528
1529 DEFAULT_wxUSE_UNICODE=no
1530 DEFAULT_wxUSE_WCSRTOMBS=no
1531
1532 DEFAULT_wxUSE_GIF=yes
1533 DEFAULT_wxUSE_PCX=yes
1534 DEFAULT_wxUSE_PNM=yes
1535fi
1536
1537
1538
1539for toolkit in `echo $ALL_TOOLKITS`; do
1540 LINE=`grep "wxUSE_$toolkit" ${wx_arg_cache_file}`
1541 if test "x$LINE" != x ; then
1542 has_toolkit_in_cache=1
1543 eval "DEFAULT_$LINE"
1544 eval "CACHE_$toolkit=1"
1545 fi
1546done
1547
1548
1549
1550 echo $ac_n "checking "for --enable-gui"""... $ac_c" 1>&6
1db8dc4a 1551echo "configure:1552: checking "for --enable-gui"" >&5
10f2d63a
VZ
1552 no_cache=0
1553 # Check whether --enable-gui or --disable-gui was given.
1554if test "${enable_gui+set}" = set; then
1555 enableval="$enable_gui"
1556
1557 if test "$enableval" = yes; then
1558 ac_cv_use_gui='wxUSE_GUI=yes'
1559 else
1560 ac_cv_use_gui='wxUSE_GUI=no'
1561 fi
1562
1563else
1564
1565 LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
1566 if test "x$LINE" != x ; then
1567 eval "DEFAULT_$LINE"
1568 else
1569 no_cache=1
1570 fi
1571
1572 ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
1573
1574fi
1575
1576
1577 eval "$ac_cv_use_gui"
1578 if test "$no_cache" != 1; then
1579 echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
1580 fi
1581
1582 if test "$wxUSE_GUI" = yes; then
1583 echo "$ac_t""yes" 1>&6
1584 else
1585 echo "$ac_t""no" 1>&6
1586 fi
1587
1588
b12915c1 1589if test "$wxUSE_GUI" = "yes"; then
10f2d63a
VZ
1590
1591# Check whether --with-gtk or --without-gtk was given.
1592if test "${with_gtk+set}" = set; then
1593 withval="$with_gtk"
1594 wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
1595fi
1596
1597# Check whether --with-motif or --without-motif was given.
1598if test "${with_motif+set}" = set; then
1599 withval="$with_motif"
1600 wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
1601fi
1602
b4085ce6
GD
1603# Check whether --with-mac or --without-mac was given.
1604if test "${with_mac+set}" = set; then
1605 withval="$with_mac"
1606 wxUSE_MAC="$withval" TOOLKIT_GIVEN=1
1607fi
1608
10f2d63a
VZ
1609# Check whether --with-wine or --without-wine was given.
1610if test "${with_wine+set}" = set; then
1611 withval="$with_wine"
1612 wxUSE_WINE="$withval" CACHE_WINE=1 TOOLKIT_GIVEN=1
1613fi
1614
1615# Check whether --with-cygwin or --without-cygwin was given.
1616if test "${with_cygwin+set}" = set; then
1617 withval="$with_cygwin"
1618 wxUSE_CYGWIN="$withval" CACHE_CYGWIN=1 TOOLKIT_GIVEN=1
1619fi
1620
1621# Check whether --with-mingw or --without-mingw was given.
1622if test "${with_mingw+set}" = set; then
1623 withval="$with_mingw"
1624 wxUSE_MINGW="$withval" CACHE_MINGW=1 TOOLKIT_GIVEN=1
1625fi
1626
e07802fc
VZ
1627# Check whether --with-pm or --without-pm was given.
1628if test "${with_pm+set}" = set; then
1629 withval="$with_pm"
1630 wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
1631fi
1632
10f2d63a
VZ
1633
1634# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
1635if test "${with_gtk_prefix+set}" = set; then
1636 withval="$with_gtk_prefix"
1637 gtk_config_prefix="$withval"
1638else
1639 gtk_config_prefix=""
1640fi
1641
1642# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
1643if test "${with_gtk_exec_prefix+set}" = set; then
1644 withval="$with_gtk_exec_prefix"
1645 gtk_config_exec_prefix="$withval"
1646else
1647 gtk_config_exec_prefix=""
1648fi
1649
1650
1651
b12915c1 1652 echo $ac_n "checking "for --with-libpng"""... $ac_c" 1>&6
1db8dc4a 1653echo "configure:1654: checking "for --with-libpng"" >&5
10f2d63a 1654 no_cache=0
b12915c1
VZ
1655 # Check whether --with-libpng or --without-libpng was given.
1656if test "${with_libpng+set}" = set; then
1657 withval="$with_libpng"
10f2d63a
VZ
1658
1659 if test "$withval" = yes; then
b12915c1 1660 ac_cv_use_libpng='wxUSE_LIBPNG=yes'
422107f9 1661 elif test "$withval" = no; then
b12915c1 1662 ac_cv_use_libpng='wxUSE_LIBPNG=no'
422107f9
VZ
1663 elif test "$withval" = sys; then
1664 ac_cv_use_libpng='wxUSE_LIBPNG=sys'
1665 else
1666 { echo "configure: error: Invalid value for --with-libpng: should be yes, no or sys" 1>&2; exit 1; }
10f2d63a
VZ
1667 fi
1668
1669else
1670
b12915c1 1671 LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
10f2d63a
VZ
1672 if test "x$LINE" != x ; then
1673 eval "DEFAULT_$LINE"
1674 else
1675 no_cache=1
1676 fi
1677
b12915c1 1678 ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
10f2d63a
VZ
1679
1680fi
1681
1682
b12915c1 1683 eval "$ac_cv_use_libpng"
10f2d63a 1684 if test "$no_cache" != 1; then
b12915c1 1685 echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
1686 fi
1687
b12915c1 1688 if test "$wxUSE_LIBPNG" = yes; then
10f2d63a 1689 echo "$ac_t""yes" 1>&6
422107f9 1690 elif test "$wxUSE_LIBPNG" = no; then
10f2d63a 1691 echo "$ac_t""no" 1>&6
422107f9
VZ
1692 elif test "$wxUSE_LIBPNG" = sys; then
1693 echo "$ac_t""system version" 1>&6
1694 else
1695 { echo "configure: error: Invalid value for --with-libpng: should be yes, no or sys" 1>&2; exit 1; }
10f2d63a
VZ
1696 fi
1697
1698
b12915c1 1699 echo $ac_n "checking "for --with-libjpeg"""... $ac_c" 1>&6
1db8dc4a 1700echo "configure:1701: checking "for --with-libjpeg"" >&5
10f2d63a 1701 no_cache=0
b12915c1
VZ
1702 # Check whether --with-libjpeg or --without-libjpeg was given.
1703if test "${with_libjpeg+set}" = set; then
1704 withval="$with_libjpeg"
10f2d63a
VZ
1705
1706 if test "$withval" = yes; then
b12915c1 1707 ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
422107f9 1708 elif test "$withval" = no; then
b12915c1 1709 ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
422107f9
VZ
1710 elif test "$withval" = sys; then
1711 ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
1712 else
1713 { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no or sys" 1>&2; exit 1; }
10f2d63a
VZ
1714 fi
1715
1716else
1717
b12915c1 1718 LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
10f2d63a
VZ
1719 if test "x$LINE" != x ; then
1720 eval "DEFAULT_$LINE"
1721 else
1722 no_cache=1
1723 fi
1724
b12915c1 1725 ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
10f2d63a
VZ
1726
1727fi
1728
1729
b12915c1 1730 eval "$ac_cv_use_libjpeg"
10f2d63a 1731 if test "$no_cache" != 1; then
b12915c1 1732 echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
1733 fi
1734
b12915c1 1735 if test "$wxUSE_LIBJPEG" = yes; then
10f2d63a 1736 echo "$ac_t""yes" 1>&6
422107f9 1737 elif test "$wxUSE_LIBJPEG" = no; then
10f2d63a 1738 echo "$ac_t""no" 1>&6
422107f9
VZ
1739 elif test "$wxUSE_LIBJPEG" = sys; then
1740 echo "$ac_t""system version" 1>&6
1741 else
1742 { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no or sys" 1>&2; exit 1; }
10f2d63a
VZ
1743 fi
1744
1745
b12915c1 1746 echo $ac_n "checking "for --with-libtiff"""... $ac_c" 1>&6
1db8dc4a 1747echo "configure:1748: checking "for --with-libtiff"" >&5
10f2d63a 1748 no_cache=0
b12915c1
VZ
1749 # Check whether --with-libtiff or --without-libtiff was given.
1750if test "${with_libtiff+set}" = set; then
1751 withval="$with_libtiff"
10f2d63a
VZ
1752
1753 if test "$withval" = yes; then
b12915c1 1754 ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
0dcf9893 1755 elif test "$withval" = no; then
b12915c1 1756 ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
0dcf9893
VZ
1757 elif test "$withval" = sys; then
1758 ac_cv_use_libtiff='wxUSE_LIBTIFF=sys'
1759 else
1760 { echo "configure: error: Invalid value for --with-libtiff: should be yes, no or sys" 1>&2; exit 1; }
10f2d63a
VZ
1761 fi
1762
1763else
1764
b12915c1 1765 LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
10f2d63a
VZ
1766 if test "x$LINE" != x ; then
1767 eval "DEFAULT_$LINE"
1768 else
1769 no_cache=1
1770 fi
1771
b12915c1 1772 ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
10f2d63a
VZ
1773
1774fi
1775
1776
b12915c1 1777 eval "$ac_cv_use_libtiff"
10f2d63a 1778 if test "$no_cache" != 1; then
b12915c1 1779 echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
1780 fi
1781
b12915c1 1782 if test "$wxUSE_LIBTIFF" = yes; then
10f2d63a 1783 echo "$ac_t""yes" 1>&6
0dcf9893 1784 elif test "$wxUSE_LIBTIFF" = no; then
10f2d63a 1785 echo "$ac_t""no" 1>&6
0dcf9893
VZ
1786 elif test "$wxUSE_LIBTIFF" = sys; then
1787 echo "$ac_t""system version" 1>&6
1788 else
1789 { echo "configure: error: Invalid value for --with-libtiff: should be yes, no or sys" 1>&2; exit 1; }
10f2d63a
VZ
1790 fi
1791
1792
3fed1840 1793 echo $ac_n "checking "for --with-freetype"""... $ac_c" 1>&6
1db8dc4a 1794echo "configure:1795: checking "for --with-freetype"" >&5
3fed1840
RR
1795 no_cache=0
1796 # Check whether --with-freetype or --without-freetype was given.
1797if test "${with_freetype+set}" = set; then
1798 withval="$with_freetype"
1799
1800 if test "$withval" = yes; then
1801 ac_cv_use_freetype='wxUSE_FREETYPE=yes'
1802 elif test "$withval" = no; then
1803 ac_cv_use_freetype='wxUSE_FREETYPE=no'
1804 elif test "$withval" = sys; then
1805 ac_cv_use_freetype='wxUSE_FREETYPE=sys'
1806 else
1807 { echo "configure: error: Invalid value for --with-freetype: should be yes, no or sys" 1>&2; exit 1; }
1808 fi
1809
1810else
1811
1812 LINE=`grep "wxUSE_FREETYPE" ${wx_arg_cache_file}`
1813 if test "x$LINE" != x ; then
1814 eval "DEFAULT_$LINE"
1815 else
1816 no_cache=1
1817 fi
1818
1819 ac_cv_use_freetype='wxUSE_FREETYPE='$DEFAULT_wxUSE_FREETYPE
1820
1821fi
1822
1823
1824 eval "$ac_cv_use_freetype"
1825 if test "$no_cache" != 1; then
1826 echo $ac_cv_use_freetype >> ${wx_arg_cache_file}.tmp
1827 fi
1828
1829 if test "$wxUSE_FREETYPE" = yes; then
1830 echo "$ac_t""yes" 1>&6
1831 elif test "$wxUSE_FREETYPE" = no; then
1832 echo "$ac_t""no" 1>&6
1833 elif test "$wxUSE_FREETYPE" = sys; then
1834 echo "$ac_t""system version" 1>&6
1835 else
1836 { echo "configure: error: Invalid value for --with-freetype: should be yes, no or sys" 1>&2; exit 1; }
1837 fi
1838
1839
b12915c1 1840 echo $ac_n "checking "for --with-opengl"""... $ac_c" 1>&6
1db8dc4a 1841echo "configure:1842: checking "for --with-opengl"" >&5
10f2d63a 1842 no_cache=0
b12915c1
VZ
1843 # Check whether --with-opengl or --without-opengl was given.
1844if test "${with_opengl+set}" = set; then
1845 withval="$with_opengl"
10f2d63a
VZ
1846
1847 if test "$withval" = yes; then
b12915c1 1848 ac_cv_use_opengl='wxUSE_OPENGL=yes'
10f2d63a 1849 else
b12915c1 1850 ac_cv_use_opengl='wxUSE_OPENGL=no'
10f2d63a
VZ
1851 fi
1852
1853else
1854
b12915c1 1855 LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
10f2d63a
VZ
1856 if test "x$LINE" != x ; then
1857 eval "DEFAULT_$LINE"
1858 else
1859 no_cache=1
1860 fi
1861
b12915c1 1862 ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
10f2d63a
VZ
1863
1864fi
1865
1866
b12915c1 1867 eval "$ac_cv_use_opengl"
10f2d63a 1868 if test "$no_cache" != 1; then
b12915c1 1869 echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
1870 fi
1871
b12915c1 1872 if test "$wxUSE_OPENGL" = yes; then
10f2d63a
VZ
1873 echo "$ac_t""yes" 1>&6
1874 else
1875 echo "$ac_t""no" 1>&6
1876 fi
1877
1878
b12915c1
VZ
1879fi
1880
1881
1882 echo $ac_n "checking "for --with-dmalloc"""... $ac_c" 1>&6
1db8dc4a 1883echo "configure:1884: checking "for --with-dmalloc"" >&5
c7a2bf27 1884 no_cache=0
b12915c1
VZ
1885 # Check whether --with-dmalloc or --without-dmalloc was given.
1886if test "${with_dmalloc+set}" = set; then
1887 withval="$with_dmalloc"
c7a2bf27
RR
1888
1889 if test "$withval" = yes; then
b12915c1 1890 ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
c7a2bf27 1891 else
b12915c1 1892 ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
c7a2bf27
RR
1893 fi
1894
1895else
1896
b12915c1 1897 LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
c7a2bf27
RR
1898 if test "x$LINE" != x ; then
1899 eval "DEFAULT_$LINE"
1900 else
1901 no_cache=1
1902 fi
1903
b12915c1 1904 ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
c7a2bf27
RR
1905
1906fi
1907
1908
b12915c1 1909 eval "$ac_cv_use_dmalloc"
c7a2bf27 1910 if test "$no_cache" != 1; then
b12915c1 1911 echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
c7a2bf27
RR
1912 fi
1913
b12915c1 1914 if test "$wxUSE_DMALLOC" = yes; then
c7a2bf27
RR
1915 echo "$ac_t""yes" 1>&6
1916 else
1917 echo "$ac_t""no" 1>&6
1918 fi
1919
1920
b12915c1 1921 echo $ac_n "checking "for --with-zlib"""... $ac_c" 1>&6
1db8dc4a 1922echo "configure:1923: checking "for --with-zlib"" >&5
10f2d63a 1923 no_cache=0
b12915c1
VZ
1924 # Check whether --with-zlib or --without-zlib was given.
1925if test "${with_zlib+set}" = set; then
1926 withval="$with_zlib"
10f2d63a
VZ
1927
1928 if test "$withval" = yes; then
b12915c1 1929 ac_cv_use_zlib='wxUSE_ZLIB=yes'
422107f9 1930 elif test "$withval" = no; then
b12915c1 1931 ac_cv_use_zlib='wxUSE_ZLIB=no'
422107f9
VZ
1932 elif test "$withval" = sys; then
1933 ac_cv_use_zlib='wxUSE_ZLIB=sys'
1934 else
1935 { echo "configure: error: Invalid value for --with-zlib: should be yes, no or sys" 1>&2; exit 1; }
10f2d63a
VZ
1936 fi
1937
1938else
1939
b12915c1 1940 LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
10f2d63a
VZ
1941 if test "x$LINE" != x ; then
1942 eval "DEFAULT_$LINE"
1943 else
1944 no_cache=1
1945 fi
1946
b12915c1 1947 ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
10f2d63a
VZ
1948
1949fi
1950
1951
b12915c1 1952 eval "$ac_cv_use_zlib"
10f2d63a 1953 if test "$no_cache" != 1; then
b12915c1 1954 echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
1955 fi
1956
b12915c1 1957 if test "$wxUSE_ZLIB" = yes; then
10f2d63a 1958 echo "$ac_t""yes" 1>&6
422107f9 1959 elif test "$wxUSE_ZLIB" = no; then
bdad4e7e 1960 echo "$ac_t""no" 1>&6
422107f9
VZ
1961 elif test "$wxUSE_ZLIB" = sys; then
1962 echo "$ac_t""system version" 1>&6
1963 else
1964 { echo "configure: error: Invalid value for --with-zlib: should be yes, no or sys" 1>&2; exit 1; }
10f2d63a
VZ
1965 fi
1966
1967
1968 echo $ac_n "checking "for --with-odbc"""... $ac_c" 1>&6
1db8dc4a 1969echo "configure:1970: checking "for --with-odbc"" >&5
10f2d63a
VZ
1970 no_cache=0
1971 # Check whether --with-odbc or --without-odbc was given.
1972if test "${with_odbc+set}" = set; then
1973 withval="$with_odbc"
1974
1975 if test "$withval" = yes; then
1976 ac_cv_use_odbc='wxUSE_ODBC=yes'
1977 else
1978 ac_cv_use_odbc='wxUSE_ODBC=no'
1979 fi
1980
1981else
1982
1983 LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
1984 if test "x$LINE" != x ; then
1985 eval "DEFAULT_$LINE"
1986 else
1987 no_cache=1
1988 fi
1989
1990 ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
1991
1992fi
1993
1994
1995 eval "$ac_cv_use_odbc"
1996 if test "$no_cache" != 1; then
1997 echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
1998 fi
1999
2000 if test "$wxUSE_ODBC" = yes; then
2001 echo "$ac_t""yes" 1>&6
2002 else
2003 echo "$ac_t""no" 1>&6
2004 fi
2005
2006
2007
2008
2009
2010 echo $ac_n "checking "for --enable-shared"""... $ac_c" 1>&6
1db8dc4a 2011echo "configure:2012: checking "for --enable-shared"" >&5
10f2d63a
VZ
2012 no_cache=0
2013 # Check whether --enable-shared or --disable-shared was given.
2014if test "${enable_shared+set}" = set; then
2015 enableval="$enable_shared"
2016
2017 if test "$enableval" = yes; then
2018 ac_cv_use_shared='wxUSE_SHARED=yes'
2019 else
2020 ac_cv_use_shared='wxUSE_SHARED=no'
2021 fi
2022
2023else
2024
2025 LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
2026 if test "x$LINE" != x ; then
2027 eval "DEFAULT_$LINE"
2028 else
2029 no_cache=1
2030 fi
2031
2032 ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
2033
2034fi
2035
2036
2037 eval "$ac_cv_use_shared"
2038 if test "$no_cache" != 1; then
2039 echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
2040 fi
2041
2042 if test "$wxUSE_SHARED" = yes; then
2043 echo "$ac_t""yes" 1>&6
2044 else
2045 echo "$ac_t""no" 1>&6
2046 fi
2047
2048
00cf1208 2049 echo $ac_n "checking "for --enable-burnt_name"""... $ac_c" 1>&6
1db8dc4a 2050echo "configure:2051: checking "for --enable-burnt_name"" >&5
00cf1208
RR
2051 no_cache=0
2052 # Check whether --enable-burnt_name or --disable-burnt_name was given.
2053if test "${enable_burnt_name+set}" = set; then
2054 enableval="$enable_burnt_name"
2055
2056 if test "$enableval" = yes; then
2057 ac_cv_use_burnt_name='wxUSE_BURNT_NAME=yes'
2058 else
2059 ac_cv_use_burnt_name='wxUSE_BURNT_NAME=no'
2060 fi
2061
2062else
2063
2064 LINE=`grep "wxUSE_BURNT_NAME" ${wx_arg_cache_file}`
2065 if test "x$LINE" != x ; then
2066 eval "DEFAULT_$LINE"
2067 else
2068 no_cache=1
2069 fi
2070
2071 ac_cv_use_burnt_name='wxUSE_BURNT_NAME='$DEFAULT_wxUSE_BURNT_NAME
2072
2073fi
2074
2075
2076 eval "$ac_cv_use_burnt_name"
2077 if test "$no_cache" != 1; then
2078 echo $ac_cv_use_burnt_name >> ${wx_arg_cache_file}.tmp
2079 fi
2080
2081 if test "$wxUSE_BURNT_NAME" = yes; then
2082 echo "$ac_t""yes" 1>&6
2083 else
2084 echo "$ac_t""no" 1>&6
2085 fi
2086
2087
10f2d63a 2088 echo $ac_n "checking "for --enable-optimise"""... $ac_c" 1>&6
1db8dc4a 2089echo "configure:2090: checking "for --enable-optimise"" >&5
10f2d63a
VZ
2090 no_cache=0
2091 # Check whether --enable-optimise or --disable-optimise was given.
2092if test "${enable_optimise+set}" = set; then
2093 enableval="$enable_optimise"
2094
2095 if test "$enableval" = yes; then
2096 ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
2097 else
2098 ac_cv_use_optimise='wxUSE_OPTIMISE=no'
2099 fi
2100
2101else
2102
2103 LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
2104 if test "x$LINE" != x ; then
2105 eval "DEFAULT_$LINE"
2106 else
2107 no_cache=1
2108 fi
2109
2110 ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
2111
2112fi
2113
2114
2115 eval "$ac_cv_use_optimise"
2116 if test "$no_cache" != 1; then
2117 echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
2118 fi
2119
2120 if test "$wxUSE_OPTIMISE" = yes; then
2121 echo "$ac_t""yes" 1>&6
2122 else
2123 echo "$ac_t""no" 1>&6
2124 fi
2125
2126
2127 echo $ac_n "checking "for --enable-debug"""... $ac_c" 1>&6
1db8dc4a 2128echo "configure:2129: checking "for --enable-debug"" >&5
10f2d63a
VZ
2129 no_cache=0
2130 # Check whether --enable-debug or --disable-debug was given.
2131if test "${enable_debug+set}" = set; then
2132 enableval="$enable_debug"
2133
2134 if test "$enableval" = yes; then
2135 ac_cv_use_debug='wxUSE_DEBUG=yes'
2136 else
2137 ac_cv_use_debug='wxUSE_DEBUG=no'
2138 fi
2139
2140else
2141
2142 LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
2143 if test "x$LINE" != x ; then
2144 eval "DEFAULT_$LINE"
2145 else
2146 no_cache=1
2147 fi
2148
2149 ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
2150
2151fi
2152
2153
2154 eval "$ac_cv_use_debug"
2155 if test "$no_cache" != 1; then
2156 echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
2157 fi
2158
2159 if test "$wxUSE_DEBUG" = yes; then
2160 echo "$ac_t""yes" 1>&6
2161 else
2162 echo "$ac_t""no" 1>&6
2163 fi
2164
2165
2166if test "$wxUSE_DEBUG" = "yes"; then
2167 DEFAULT_wxUSE_DEBUG_FLAG=yes
2168 DEFAULT_wxUSE_DEBUG_INFO=yes
2169elif test "$wxUSE_DEBUG" = "no"; then
2170 DEFAULT_wxUSE_DEBUG_FLAG=no
2171 DEFAULT_wxUSE_DEBUG_INFO=no
2172fi
2173
2174
2175 echo $ac_n "checking "for --enable-debug_flag"""... $ac_c" 1>&6
1db8dc4a 2176echo "configure:2177: checking "for --enable-debug_flag"" >&5
10f2d63a
VZ
2177 no_cache=0
2178 # Check whether --enable-debug_flag or --disable-debug_flag was given.
2179if test "${enable_debug_flag+set}" = set; then
2180 enableval="$enable_debug_flag"
2181
2182 if test "$enableval" = yes; then
2183 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
2184 else
2185 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
2186 fi
2187
2188else
2189
2190 LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
2191 if test "x$LINE" != x ; then
2192 eval "DEFAULT_$LINE"
2193 else
2194 no_cache=1
2195 fi
2196
2197 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
2198
2199fi
2200
2201
2202 eval "$ac_cv_use_debug_flag"
2203 if test "$no_cache" != 1; then
2204 echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
2205 fi
2206
2207 if test "$wxUSE_DEBUG_FLAG" = yes; then
2208 echo "$ac_t""yes" 1>&6
2209 else
2210 echo "$ac_t""no" 1>&6
2211 fi
2212
2213
2214 echo $ac_n "checking "for --enable-debug_info"""... $ac_c" 1>&6
1db8dc4a 2215echo "configure:2216: checking "for --enable-debug_info"" >&5
10f2d63a
VZ
2216 no_cache=0
2217 # Check whether --enable-debug_info or --disable-debug_info was given.
2218if test "${enable_debug_info+set}" = set; then
2219 enableval="$enable_debug_info"
2220
2221 if test "$enableval" = yes; then
2222 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
2223 else
2224 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
2225 fi
2226
2227else
2228
2229 LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
2230 if test "x$LINE" != x ; then
2231 eval "DEFAULT_$LINE"
2232 else
2233 no_cache=1
2234 fi
2235
2236 ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
2237
2238fi
2239
2240
2241 eval "$ac_cv_use_debug_info"
2242 if test "$no_cache" != 1; then
2243 echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
2244 fi
2245
2246 if test "$wxUSE_DEBUG_INFO" = yes; then
2247 echo "$ac_t""yes" 1>&6
2248 else
2249 echo "$ac_t""no" 1>&6
2250 fi
2251
2252
2253 echo $ac_n "checking "for --enable-debug_gdb"""... $ac_c" 1>&6
1db8dc4a 2254echo "configure:2255: checking "for --enable-debug_gdb"" >&5
10f2d63a
VZ
2255 no_cache=0
2256 # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
2257if test "${enable_debug_gdb+set}" = set; then
2258 enableval="$enable_debug_gdb"
2259
2260 if test "$enableval" = yes; then
2261 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
2262 else
2263 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
2264 fi
2265
2266else
2267
2268 LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
2269 if test "x$LINE" != x ; then
2270 eval "DEFAULT_$LINE"
2271 else
2272 no_cache=1
2273 fi
2274
2275 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
2276
2277fi
2278
2279
2280 eval "$ac_cv_use_debug_gdb"
2281 if test "$no_cache" != 1; then
2282 echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
2283 fi
2284
2285 if test "$wxUSE_DEBUG_GDB" = yes; then
2286 echo "$ac_t""yes" 1>&6
2287 else
2288 echo "$ac_t""no" 1>&6
2289 fi
2290
2291
2292 echo $ac_n "checking "for --enable-debug_cntxt"""... $ac_c" 1>&6
1db8dc4a 2293echo "configure:2294: checking "for --enable-debug_cntxt"" >&5
10f2d63a
VZ
2294 no_cache=0
2295 # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
2296if test "${enable_debug_cntxt+set}" = set; then
2297 enableval="$enable_debug_cntxt"
2298
2299 if test "$enableval" = yes; then
2300 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
2301 else
2302 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
2303 fi
2304
2305else
2306
2307 LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
2308 if test "x$LINE" != x ; then
2309 eval "DEFAULT_$LINE"
2310 else
2311 no_cache=1
2312 fi
2313
2314 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
2315
2316fi
2317
2318
2319 eval "$ac_cv_use_debug_cntxt"
2320 if test "$no_cache" != 1; then
2321 echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
2322 fi
2323
2324 if test "$wxUSE_DEBUG_CONTEXT" = yes; then
2325 echo "$ac_t""yes" 1>&6
2326 else
2327 echo "$ac_t""no" 1>&6
2328 fi
2329
2330
2331 echo $ac_n "checking "for --enable-mem_tracing"""... $ac_c" 1>&6
1db8dc4a 2332echo "configure:2333: checking "for --enable-mem_tracing"" >&5
10f2d63a
VZ
2333 no_cache=0
2334 # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
2335if test "${enable_mem_tracing+set}" = set; then
2336 enableval="$enable_mem_tracing"
2337
2338 if test "$enableval" = yes; then
2339 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
2340 else
2341 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
2342 fi
2343
2344else
2345
2346 LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
2347 if test "x$LINE" != x ; then
2348 eval "DEFAULT_$LINE"
2349 else
2350 no_cache=1
2351 fi
2352
2353 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
2354
2355fi
2356
2357
2358 eval "$ac_cv_use_mem_tracing"
2359 if test "$no_cache" != 1; then
2360 echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
2361 fi
2362
2363 if test "$wxUSE_MEM_TRACING" = yes; then
2364 echo "$ac_t""yes" 1>&6
2365 else
2366 echo "$ac_t""no" 1>&6
2367 fi
2368
2369
2370 echo $ac_n "checking "for --enable-profile"""... $ac_c" 1>&6
1db8dc4a 2371echo "configure:2372: checking "for --enable-profile"" >&5
10f2d63a
VZ
2372 no_cache=0
2373 # Check whether --enable-profile or --disable-profile was given.
2374if test "${enable_profile+set}" = set; then
2375 enableval="$enable_profile"
2376
2377 if test "$enableval" = yes; then
2378 ac_cv_use_profile='wxUSE_PROFILE=yes'
2379 else
2380 ac_cv_use_profile='wxUSE_PROFILE=no'
2381 fi
2382
2383else
2384
2385 LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
2386 if test "x$LINE" != x ; then
2387 eval "DEFAULT_$LINE"
2388 else
2389 no_cache=1
2390 fi
2391
2392 ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
2393
2394fi
2395
2396
2397 eval "$ac_cv_use_profile"
2398 if test "$no_cache" != 1; then
2399 echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
2400 fi
2401
2402 if test "$wxUSE_PROFILE" = yes; then
2403 echo "$ac_t""yes" 1>&6
2404 else
2405 echo "$ac_t""no" 1>&6
2406 fi
2407
2408
2409 echo $ac_n "checking "for --enable-no_rtti"""... $ac_c" 1>&6
1db8dc4a 2410echo "configure:2411: checking "for --enable-no_rtti"" >&5
10f2d63a
VZ
2411 no_cache=0
2412 # Check whether --enable-no_rtti or --disable-no_rtti was given.
2413if test "${enable_no_rtti+set}" = set; then
2414 enableval="$enable_no_rtti"
2415
2416 if test "$enableval" = yes; then
2417 ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
2418 else
2419 ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
2420 fi
2421
2422else
2423
2424 LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
2425 if test "x$LINE" != x ; then
2426 eval "DEFAULT_$LINE"
2427 else
2428 no_cache=1
2429 fi
2430
2431 ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
2432
2433fi
2434
2435
2436 eval "$ac_cv_use_no_rtti"
2437 if test "$no_cache" != 1; then
2438 echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
2439 fi
2440
2441 if test "$wxUSE_NO_RTTI" = yes; then
2442 echo "$ac_t""yes" 1>&6
2443 else
2444 echo "$ac_t""no" 1>&6
2445 fi
2446
2447
2448 echo $ac_n "checking "for --enable-no_exceptions"""... $ac_c" 1>&6
1db8dc4a 2449echo "configure:2450: checking "for --enable-no_exceptions"" >&5
10f2d63a
VZ
2450 no_cache=0
2451 # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
2452if test "${enable_no_exceptions+set}" = set; then
2453 enableval="$enable_no_exceptions"
2454
2455 if test "$enableval" = yes; then
2456 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
2457 else
2458 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
2459 fi
2460
2461else
2462
2463 LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
2464 if test "x$LINE" != x ; then
2465 eval "DEFAULT_$LINE"
2466 else
2467 no_cache=1
2468 fi
2469
2470 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
2471
2472fi
2473
2474
2475 eval "$ac_cv_use_no_exceptions"
2476 if test "$no_cache" != 1; then
2477 echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
2478 fi
2479
2480 if test "$wxUSE_NO_EXCEPTIONS" = yes; then
2481 echo "$ac_t""yes" 1>&6
2482 else
2483 echo "$ac_t""no" 1>&6
2484 fi
2485
2486
2487 echo $ac_n "checking "for --enable-permissive"""... $ac_c" 1>&6
1db8dc4a 2488echo "configure:2489: checking "for --enable-permissive"" >&5
10f2d63a
VZ
2489 no_cache=0
2490 # Check whether --enable-permissive or --disable-permissive was given.
2491if test "${enable_permissive+set}" = set; then
2492 enableval="$enable_permissive"
2493
2494 if test "$enableval" = yes; then
2495 ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
2496 else
2497 ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
2498 fi
2499
2500else
2501
2502 LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
2503 if test "x$LINE" != x ; then
2504 eval "DEFAULT_$LINE"
2505 else
2506 no_cache=1
2507 fi
2508
2509 ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
2510
2511fi
2512
2513
2514 eval "$ac_cv_use_permissive"
2515 if test "$no_cache" != 1; then
2516 echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
2517 fi
2518
2519 if test "$wxUSE_PERMISSIVE" = yes; then
2520 echo "$ac_t""yes" 1>&6
2521 else
2522 echo "$ac_t""no" 1>&6
2523 fi
2524
2525
2526 echo $ac_n "checking "for --enable-no_deps"""... $ac_c" 1>&6
1db8dc4a 2527echo "configure:2528: checking "for --enable-no_deps"" >&5
10f2d63a
VZ
2528 no_cache=0
2529 # Check whether --enable-no_deps or --disable-no_deps was given.
2530if test "${enable_no_deps+set}" = set; then
2531 enableval="$enable_no_deps"
2532
2533 if test "$enableval" = yes; then
2534 ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
2535 else
2536 ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
2537 fi
2538
2539else
2540
2541 LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
2542 if test "x$LINE" != x ; then
2543 eval "DEFAULT_$LINE"
2544 else
2545 no_cache=1
2546 fi
2547
2548 ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
2549
2550fi
2551
2552
2553 eval "$ac_cv_use_no_deps"
2554 if test "$no_cache" != 1; then
2555 echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
2556 fi
2557
2558 if test "$wxUSE_NO_DEPS" = yes; then
2559 echo "$ac_t""yes" 1>&6
2560 else
2561 echo "$ac_t""no" 1>&6
2562 fi
2563
2564
2565
2566
2567 echo $ac_n "checking "for --enable-intl"""... $ac_c" 1>&6
1db8dc4a 2568echo "configure:2569: checking "for --enable-intl"" >&5
10f2d63a
VZ
2569 no_cache=0
2570 # Check whether --enable-intl or --disable-intl was given.
2571if test "${enable_intl+set}" = set; then
2572 enableval="$enable_intl"
2573
2574 if test "$enableval" = yes; then
2575 ac_cv_use_intl='wxUSE_INTL=yes'
2576 else
2577 ac_cv_use_intl='wxUSE_INTL=no'
2578 fi
2579
2580else
2581
2582 LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
2583 if test "x$LINE" != x ; then
2584 eval "DEFAULT_$LINE"
2585 else
2586 no_cache=1
2587 fi
2588
2589 ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
2590
2591fi
2592
2593
2594 eval "$ac_cv_use_intl"
2595 if test "$no_cache" != 1; then
2596 echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
2597 fi
2598
2599 if test "$wxUSE_INTL" = yes; then
2600 echo "$ac_t""yes" 1>&6
2601 else
2602 echo "$ac_t""no" 1>&6
2603 fi
2604
2605
2606 echo $ac_n "checking "for --enable-config"""... $ac_c" 1>&6
1db8dc4a 2607echo "configure:2608: checking "for --enable-config"" >&5
10f2d63a
VZ
2608 no_cache=0
2609 # Check whether --enable-config or --disable-config was given.
2610if test "${enable_config+set}" = set; then
2611 enableval="$enable_config"
2612
2613 if test "$enableval" = yes; then
2614 ac_cv_use_config='wxUSE_CONFIG=yes'
2615 else
2616 ac_cv_use_config='wxUSE_CONFIG=no'
2617 fi
2618
2619else
2620
2621 LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
2622 if test "x$LINE" != x ; then
2623 eval "DEFAULT_$LINE"
2624 else
2625 no_cache=1
2626 fi
2627
2628 ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
2629
2630fi
2631
2632
2633 eval "$ac_cv_use_config"
2634 if test "$no_cache" != 1; then
2635 echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
2636 fi
2637
2638 if test "$wxUSE_CONFIG" = yes; then
2639 echo "$ac_t""yes" 1>&6
2640 else
2641 echo "$ac_t""no" 1>&6
2642 fi
2643
2644
b12915c1 2645
10f2d63a 2646 echo $ac_n "checking "for --enable-sockets"""... $ac_c" 1>&6
1db8dc4a 2647echo "configure:2648: checking "for --enable-sockets"" >&5
10f2d63a
VZ
2648 no_cache=0
2649 # Check whether --enable-sockets or --disable-sockets was given.
2650if test "${enable_sockets+set}" = set; then
2651 enableval="$enable_sockets"
2652
2653 if test "$enableval" = yes; then
2654 ac_cv_use_sockets='wxUSE_SOCKETS=yes'
2655 else
2656 ac_cv_use_sockets='wxUSE_SOCKETS=no'
2657 fi
2658
2659else
2660
2661 LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
2662 if test "x$LINE" != x ; then
2663 eval "DEFAULT_$LINE"
2664 else
2665 no_cache=1
2666 fi
2667
2668 ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
2669
2670fi
2671
2672
2673 eval "$ac_cv_use_sockets"
2674 if test "$no_cache" != 1; then
2675 echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
2676 fi
2677
2678 if test "$wxUSE_SOCKETS" = yes; then
2679 echo "$ac_t""yes" 1>&6
2680 else
2681 echo "$ac_t""no" 1>&6
2682 fi
2683
b12915c1 2684
10f2d63a 2685
eb4efbdc 2686 echo $ac_n "checking "for --enable-ipc"""... $ac_c" 1>&6
1db8dc4a 2687echo "configure:2688: checking "for --enable-ipc"" >&5
10f2d63a 2688 no_cache=0
eb4efbdc
VZ
2689 # Check whether --enable-ipc or --disable-ipc was given.
2690if test "${enable_ipc+set}" = set; then
2691 enableval="$enable_ipc"
10f2d63a
VZ
2692
2693 if test "$enableval" = yes; then
eb4efbdc 2694 ac_cv_use_ipc='wxUSE_IPC=yes'
10f2d63a 2695 else
eb4efbdc 2696 ac_cv_use_ipc='wxUSE_IPC=no'
10f2d63a
VZ
2697 fi
2698
2699else
2700
eb4efbdc 2701 LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
10f2d63a
VZ
2702 if test "x$LINE" != x ; then
2703 eval "DEFAULT_$LINE"
2704 else
2705 no_cache=1
2706 fi
2707
eb4efbdc 2708 ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
10f2d63a
VZ
2709
2710fi
2711
2712
eb4efbdc 2713 eval "$ac_cv_use_ipc"
10f2d63a 2714 if test "$no_cache" != 1; then
eb4efbdc 2715 echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2716 fi
2717
eb4efbdc 2718 if test "$wxUSE_IPC" = yes; then
10f2d63a
VZ
2719 echo "$ac_t""yes" 1>&6
2720 else
2721 echo "$ac_t""no" 1>&6
2722 fi
2723
2724
eb4efbdc
VZ
2725
2726 echo $ac_n "checking "for --enable-dialupman"""... $ac_c" 1>&6
1db8dc4a 2727echo "configure:2728: checking "for --enable-dialupman"" >&5
10f2d63a 2728 no_cache=0
eb4efbdc
VZ
2729 # Check whether --enable-dialupman or --disable-dialupman was given.
2730if test "${enable_dialupman+set}" = set; then
2731 enableval="$enable_dialupman"
10f2d63a
VZ
2732
2733 if test "$enableval" = yes; then
eb4efbdc 2734 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
10f2d63a 2735 else
eb4efbdc 2736 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
10f2d63a
VZ
2737 fi
2738
2739else
2740
eb4efbdc 2741 LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
10f2d63a
VZ
2742 if test "x$LINE" != x ; then
2743 eval "DEFAULT_$LINE"
2744 else
2745 no_cache=1
2746 fi
2747
eb4efbdc 2748 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
10f2d63a
VZ
2749
2750fi
2751
2752
eb4efbdc 2753 eval "$ac_cv_use_dialupman"
10f2d63a 2754 if test "$no_cache" != 1; then
eb4efbdc 2755 echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2756 fi
2757
eb4efbdc 2758 if test "$wxUSE_DIALUP_MANAGER" = yes; then
10f2d63a
VZ
2759 echo "$ac_t""yes" 1>&6
2760 else
2761 echo "$ac_t""no" 1>&6
2762 fi
2763
2764
2765 echo $ac_n "checking "for --enable-apple_ieee"""... $ac_c" 1>&6
1db8dc4a 2766echo "configure:2767: checking "for --enable-apple_ieee"" >&5
10f2d63a
VZ
2767 no_cache=0
2768 # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
2769if test "${enable_apple_ieee+set}" = set; then
2770 enableval="$enable_apple_ieee"
2771
2772 if test "$enableval" = yes; then
2773 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
2774 else
2775 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
2776 fi
2777
2778else
2779
2780 LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
2781 if test "x$LINE" != x ; then
2782 eval "DEFAULT_$LINE"
2783 else
2784 no_cache=1
2785 fi
2786
2787 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
2788
2789fi
2790
2791
2792 eval "$ac_cv_use_apple_ieee"
2793 if test "$no_cache" != 1; then
2794 echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
2795 fi
2796
2797 if test "$wxUSE_APPLE_IEEE" = yes; then
2798 echo "$ac_t""yes" 1>&6
2799 else
2800 echo "$ac_t""no" 1>&6
2801 fi
2802
2803
2804 echo $ac_n "checking "for --enable-timedate"""... $ac_c" 1>&6
1db8dc4a 2805echo "configure:2806: checking "for --enable-timedate"" >&5
10f2d63a
VZ
2806 no_cache=0
2807 # Check whether --enable-timedate or --disable-timedate was given.
2808if test "${enable_timedate+set}" = set; then
2809 enableval="$enable_timedate"
2810
2811 if test "$enableval" = yes; then
2812 ac_cv_use_timedate='wxUSE_TIMEDATE=yes'
2813 else
2814 ac_cv_use_timedate='wxUSE_TIMEDATE=no'
2815 fi
2816
2817else
2818
2819 LINE=`grep "wxUSE_TIMEDATE" ${wx_arg_cache_file}`
2820 if test "x$LINE" != x ; then
2821 eval "DEFAULT_$LINE"
2822 else
2823 no_cache=1
2824 fi
2825
2826 ac_cv_use_timedate='wxUSE_TIMEDATE='$DEFAULT_wxUSE_TIMEDATE
2827
2828fi
2829
2830
2831 eval "$ac_cv_use_timedate"
2832 if test "$no_cache" != 1; then
2833 echo $ac_cv_use_timedate >> ${wx_arg_cache_file}.tmp
2834 fi
2835
2836 if test "$wxUSE_TIMEDATE" = yes; then
2837 echo "$ac_t""yes" 1>&6
2838 else
2839 echo "$ac_t""no" 1>&6
2840 fi
2841
2842
2843 echo $ac_n "checking "for --enable-wave"""... $ac_c" 1>&6
1db8dc4a 2844echo "configure:2845: checking "for --enable-wave"" >&5
10f2d63a
VZ
2845 no_cache=0
2846 # Check whether --enable-wave or --disable-wave was given.
2847if test "${enable_wave+set}" = set; then
2848 enableval="$enable_wave"
2849
2850 if test "$enableval" = yes; then
2851 ac_cv_use_wave='wxUSE_WAVE=yes'
2852 else
2853 ac_cv_use_wave='wxUSE_WAVE=no'
2854 fi
2855
2856else
2857
2858 LINE=`grep "wxUSE_WAVE" ${wx_arg_cache_file}`
2859 if test "x$LINE" != x ; then
2860 eval "DEFAULT_$LINE"
2861 else
2862 no_cache=1
2863 fi
2864
2865 ac_cv_use_wave='wxUSE_WAVE='$DEFAULT_wxUSE_WAVE
2866
2867fi
2868
2869
2870 eval "$ac_cv_use_wave"
2871 if test "$no_cache" != 1; then
2872 echo $ac_cv_use_wave >> ${wx_arg_cache_file}.tmp
2873 fi
2874
2875 if test "$wxUSE_WAVE" = yes; then
2876 echo "$ac_t""yes" 1>&6
2877 else
2878 echo "$ac_t""no" 1>&6
2879 fi
2880
2881
2882 echo $ac_n "checking "for --enable-fraction"""... $ac_c" 1>&6
1db8dc4a 2883echo "configure:2884: checking "for --enable-fraction"" >&5
10f2d63a
VZ
2884 no_cache=0
2885 # Check whether --enable-fraction or --disable-fraction was given.
2886if test "${enable_fraction+set}" = set; then
2887 enableval="$enable_fraction"
2888
2889 if test "$enableval" = yes; then
2890 ac_cv_use_fraction='wxUSE_FRACTION=yes'
2891 else
2892 ac_cv_use_fraction='wxUSE_FRACTION=no'
2893 fi
2894
2895else
2896
2897 LINE=`grep "wxUSE_FRACTION" ${wx_arg_cache_file}`
2898 if test "x$LINE" != x ; then
2899 eval "DEFAULT_$LINE"
2900 else
2901 no_cache=1
2902 fi
2903
2904 ac_cv_use_fraction='wxUSE_FRACTION='$DEFAULT_wxUSE_FRACTION
2905
2906fi
2907
2908
2909 eval "$ac_cv_use_fraction"
2910 if test "$no_cache" != 1; then
2911 echo $ac_cv_use_fraction >> ${wx_arg_cache_file}.tmp
2912 fi
2913
2914 if test "$wxUSE_FRACTION" = yes; then
2915 echo "$ac_t""yes" 1>&6
2916 else
2917 echo "$ac_t""no" 1>&6
2918 fi
2919
2920
2921 echo $ac_n "checking "for --enable-dynlib"""... $ac_c" 1>&6
1db8dc4a 2922echo "configure:2923: checking "for --enable-dynlib"" >&5
10f2d63a
VZ
2923 no_cache=0
2924 # Check whether --enable-dynlib or --disable-dynlib was given.
2925if test "${enable_dynlib+set}" = set; then
2926 enableval="$enable_dynlib"
2927
2928 if test "$enableval" = yes; then
2929 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
2930 else
2931 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
2932 fi
2933
2934else
2935
2936 LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
2937 if test "x$LINE" != x ; then
2938 eval "DEFAULT_$LINE"
2939 else
2940 no_cache=1
2941 fi
2942
2943 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
2944
2945fi
2946
2947
2948 eval "$ac_cv_use_dynlib"
2949 if test "$no_cache" != 1; then
2950 echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
2951 fi
2952
2953 if test "$wxUSE_DYNLIB_CLASS" = yes; then
2954 echo "$ac_t""yes" 1>&6
2955 else
2956 echo "$ac_t""no" 1>&6
2957 fi
2958
2959
2960 echo $ac_n "checking "for --enable-longlong"""... $ac_c" 1>&6
1db8dc4a 2961echo "configure:2962: checking "for --enable-longlong"" >&5
10f2d63a
VZ
2962 no_cache=0
2963 # Check whether --enable-longlong or --disable-longlong was given.
2964if test "${enable_longlong+set}" = set; then
2965 enableval="$enable_longlong"
2966
2967 if test "$enableval" = yes; then
2968 ac_cv_use_longlong='wxUSE_LONGLONG=yes'
2969 else
2970 ac_cv_use_longlong='wxUSE_LONGLONG=no'
2971 fi
2972
2973else
2974
2975 LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
2976 if test "x$LINE" != x ; then
2977 eval "DEFAULT_$LINE"
2978 else
2979 no_cache=1
2980 fi
2981
2982 ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
2983
2984fi
2985
2986
2987 eval "$ac_cv_use_longlong"
2988 if test "$no_cache" != 1; then
2989 echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
2990 fi
2991
2992 if test "$wxUSE_LONGLONG" = yes; then
2993 echo "$ac_t""yes" 1>&6
2994 else
2995 echo "$ac_t""no" 1>&6
2996 fi
2997
2998
e8f65ba6 2999 echo $ac_n "checking "for --enable-geometry"""... $ac_c" 1>&6
1db8dc4a 3000echo "configure:3001: checking "for --enable-geometry"" >&5
e8f65ba6
RR
3001 no_cache=0
3002 # Check whether --enable-geometry or --disable-geometry was given.
3003if test "${enable_geometry+set}" = set; then
3004 enableval="$enable_geometry"
3005
3006 if test "$enableval" = yes; then
3007 ac_cv_use_geometry='wxUSE_GEOMETRY=yes'
3008 else
3009 ac_cv_use_geometry='wxUSE_GEOMETRY=no'
3010 fi
3011
3012else
3013
3014 LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}`
3015 if test "x$LINE" != x ; then
3016 eval "DEFAULT_$LINE"
3017 else
3018 no_cache=1
3019 fi
3020
3021 ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY
3022
3023fi
3024
3025
3026 eval "$ac_cv_use_geometry"
3027 if test "$no_cache" != 1; then
3028 echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp
3029 fi
3030
3031 if test "$wxUSE_GEOMETRY" = yes; then
3032 echo "$ac_t""yes" 1>&6
3033 else
3034 echo "$ac_t""no" 1>&6
3035 fi
3036
3037
10f2d63a 3038 echo $ac_n "checking "for --enable-log"""... $ac_c" 1>&6
1db8dc4a 3039echo "configure:3040: checking "for --enable-log"" >&5
10f2d63a
VZ
3040 no_cache=0
3041 # Check whether --enable-log or --disable-log was given.
3042if test "${enable_log+set}" = set; then
3043 enableval="$enable_log"
3044
3045 if test "$enableval" = yes; then
3046 ac_cv_use_log='wxUSE_LOG=yes'
3047 else
3048 ac_cv_use_log='wxUSE_LOG=no'
3049 fi
3050
3051else
3052
3053 LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
3054 if test "x$LINE" != x ; then
3055 eval "DEFAULT_$LINE"
3056 else
3057 no_cache=1
3058 fi
3059
3060 ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
3061
3062fi
3063
3064
3065 eval "$ac_cv_use_log"
3066 if test "$no_cache" != 1; then
3067 echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
3068 fi
3069
3070 if test "$wxUSE_LOG" = yes; then
3071 echo "$ac_t""yes" 1>&6
3072 else
3073 echo "$ac_t""no" 1>&6
3074 fi
3075
3076
3077 echo $ac_n "checking "for --enable-streams"""... $ac_c" 1>&6
1db8dc4a 3078echo "configure:3079: checking "for --enable-streams"" >&5
10f2d63a
VZ
3079 no_cache=0
3080 # Check whether --enable-streams or --disable-streams was given.
3081if test "${enable_streams+set}" = set; then
3082 enableval="$enable_streams"
3083
3084 if test "$enableval" = yes; then
3085 ac_cv_use_streams='wxUSE_STREAMS=yes'
3086 else
3087 ac_cv_use_streams='wxUSE_STREAMS=no'
3088 fi
3089
3090else
3091
3092 LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
3093 if test "x$LINE" != x ; then
3094 eval "DEFAULT_$LINE"
3095 else
3096 no_cache=1
3097 fi
3098
3099 ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
3100
3101fi
3102
3103
3104 eval "$ac_cv_use_streams"
3105 if test "$no_cache" != 1; then
3106 echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
3107 fi
3108
3109 if test "$wxUSE_STREAMS" = yes; then
3110 echo "$ac_t""yes" 1>&6
3111 else
3112 echo "$ac_t""no" 1>&6
3113 fi
3114
3115
3116 echo $ac_n "checking "for --enable-file"""... $ac_c" 1>&6
1db8dc4a 3117echo "configure:3118: checking "for --enable-file"" >&5
10f2d63a
VZ
3118 no_cache=0
3119 # Check whether --enable-file or --disable-file was given.
3120if test "${enable_file+set}" = set; then
3121 enableval="$enable_file"
3122
3123 if test "$enableval" = yes; then
3124 ac_cv_use_file='wxUSE_FILE=yes'
3125 else
3126 ac_cv_use_file='wxUSE_FILE=no'
3127 fi
3128
3129else
3130
3131 LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
3132 if test "x$LINE" != x ; then
3133 eval "DEFAULT_$LINE"
3134 else
3135 no_cache=1
3136 fi
3137
3138 ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
3139
3140fi
3141
3142
3143 eval "$ac_cv_use_file"
3144 if test "$no_cache" != 1; then
3145 echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
3146 fi
3147
3148 if test "$wxUSE_FILE" = yes; then
3149 echo "$ac_t""yes" 1>&6
3150 else
3151 echo "$ac_t""no" 1>&6
3152 fi
3153
3154
3155 echo $ac_n "checking "for --enable-textfile"""... $ac_c" 1>&6
1db8dc4a 3156echo "configure:3157: checking "for --enable-textfile"" >&5
10f2d63a
VZ
3157 no_cache=0
3158 # Check whether --enable-textfile or --disable-textfile was given.
3159if test "${enable_textfile+set}" = set; then
3160 enableval="$enable_textfile"
3161
3162 if test "$enableval" = yes; then
3163 ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
3164 else
3165 ac_cv_use_textfile='wxUSE_TEXTFILE=no'
3166 fi
3167
3168else
3169
3170 LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
3171 if test "x$LINE" != x ; then
3172 eval "DEFAULT_$LINE"
3173 else
3174 no_cache=1
3175 fi
3176
3177 ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
3178
3179fi
3180
3181
3182 eval "$ac_cv_use_textfile"
3183 if test "$no_cache" != 1; then
3184 echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
3185 fi
3186
3187 if test "$wxUSE_TEXTFILE" = yes; then
3188 echo "$ac_t""yes" 1>&6
3189 else
3190 echo "$ac_t""no" 1>&6
3191 fi
3192
3193
3194 echo $ac_n "checking "for --enable-unicode"""... $ac_c" 1>&6
1db8dc4a 3195echo "configure:3196: checking "for --enable-unicode"" >&5
10f2d63a
VZ
3196 no_cache=0
3197 # Check whether --enable-unicode or --disable-unicode was given.
3198if test "${enable_unicode+set}" = set; then
3199 enableval="$enable_unicode"
3200
3201 if test "$enableval" = yes; then
3202 ac_cv_use_unicode='wxUSE_UNICODE=yes'
3203 else
3204 ac_cv_use_unicode='wxUSE_UNICODE=no'
3205 fi
3206
3207else
3208
3209 LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
3210 if test "x$LINE" != x ; then
3211 eval "DEFAULT_$LINE"
3212 else
3213 no_cache=1
3214 fi
3215
3216 ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
3217
3218fi
3219
3220
3221 eval "$ac_cv_use_unicode"
3222 if test "$no_cache" != 1; then
3223 echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
3224 fi
3225
3226 if test "$wxUSE_UNICODE" = yes; then
3227 echo "$ac_t""yes" 1>&6
3228 else
3229 echo "$ac_t""no" 1>&6
3230 fi
3231
3232
3233 echo $ac_n "checking "for --enable-wcsrtombs"""... $ac_c" 1>&6
1db8dc4a 3234echo "configure:3235: checking "for --enable-wcsrtombs"" >&5
10f2d63a
VZ
3235 no_cache=0
3236 # Check whether --enable-wcsrtombs or --disable-wcsrtombs was given.
3237if test "${enable_wcsrtombs+set}" = set; then
3238 enableval="$enable_wcsrtombs"
3239
3240 if test "$enableval" = yes; then
3241 ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS=yes'
3242 else
3243 ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS=no'
3244 fi
3245
3246else
3247
3248 LINE=`grep "wxUSE_WCSRTOMBS" ${wx_arg_cache_file}`
3249 if test "x$LINE" != x ; then
3250 eval "DEFAULT_$LINE"
3251 else
3252 no_cache=1
3253 fi
3254
3255 ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS='$DEFAULT_wxUSE_WCSRTOMBS
3256
3257fi
3258
3259
3260 eval "$ac_cv_use_wcsrtombs"
3261 if test "$no_cache" != 1; then
3262 echo $ac_cv_use_wcsrtombs >> ${wx_arg_cache_file}.tmp
3263 fi
3264
3265 if test "$wxUSE_WCSRTOMBS" = yes; then
3266 echo "$ac_t""yes" 1>&6
3267 else
3268 echo "$ac_t""no" 1>&6
3269 fi
3270
3271
3272 echo $ac_n "checking "for --enable-wxprintfv"""... $ac_c" 1>&6
1db8dc4a 3273echo "configure:3274: checking "for --enable-wxprintfv"" >&5
10f2d63a
VZ
3274 no_cache=0
3275 # Check whether --enable-wxprintfv or --disable-wxprintfv was given.
3276if test "${enable_wxprintfv+set}" = set; then
3277 enableval="$enable_wxprintfv"
3278
3279 if test "$enableval" = yes; then
3280 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes'
3281 else
3282 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no'
3283 fi
3284
3285else
3286
3287 LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}`
3288 if test "x$LINE" != x ; then
3289 eval "DEFAULT_$LINE"
3290 else
3291 no_cache=1
3292 fi
3293
3294 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF
3295
3296fi
3297
3298
3299 eval "$ac_cv_use_wxprintfv"
3300 if test "$no_cache" != 1; then
3301 echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp
3302 fi
3303
3304 if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then
3305 echo "$ac_t""yes" 1>&6
3306 else
3307 echo "$ac_t""no" 1>&6
3308 fi
3309
3310
10f2d63a 3311 echo $ac_n "checking "for --enable-std_iostreams"""... $ac_c" 1>&6
1db8dc4a 3312echo "configure:3313: checking "for --enable-std_iostreams"" >&5
10f2d63a
VZ
3313 no_cache=0
3314 # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
3315if test "${enable_std_iostreams+set}" = set; then
3316 enableval="$enable_std_iostreams"
3317
3318 if test "$enableval" = yes; then
3319 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
3320 else
3321 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
3322 fi
3323
3324else
3325
3326 LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
3327 if test "x$LINE" != x ; then
3328 eval "DEFAULT_$LINE"
3329 else
3330 no_cache=1
3331 fi
3332
3333 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
3334
3335fi
3336
3337
3338 eval "$ac_cv_use_std_iostreams"
3339 if test "$no_cache" != 1; then
3340 echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
3341 fi
3342
3343 if test "$wxUSE_STD_IOSTREAM" = yes; then
3344 echo "$ac_t""yes" 1>&6
3345 else
3346 echo "$ac_t""no" 1>&6
3347 fi
3348
3349
24528b0c 3350 echo $ac_n "checking "for --enable-filesystem"""... $ac_c" 1>&6
1db8dc4a 3351echo "configure:3352: checking "for --enable-filesystem"" >&5
24528b0c
VS
3352 no_cache=0
3353 # Check whether --enable-filesystem or --disable-filesystem was given.
3354if test "${enable_filesystem+set}" = set; then
3355 enableval="$enable_filesystem"
3356
3357 if test "$enableval" = yes; then
3358 ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
3359 else
3360 ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
3361 fi
3362
3363else
3364
3365 LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}`
3366 if test "x$LINE" != x ; then
3367 eval "DEFAULT_$LINE"
3368 else
3369 no_cache=1
3370 fi
3371
3372 ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
3373
3374fi
3375
3376
3377 eval "$ac_cv_use_filesystem"
3378 if test "$no_cache" != 1; then
3379 echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
3380 fi
3381
3382 if test "$wxUSE_FILESYSTEM" = yes; then
3383 echo "$ac_t""yes" 1>&6
3384 else
3385 echo "$ac_t""no" 1>&6
3386 fi
3387
3388
10f2d63a 3389 echo $ac_n "checking "for --enable-fs_inet"""... $ac_c" 1>&6
1db8dc4a 3390echo "configure:3391: checking "for --enable-fs_inet"" >&5
10f2d63a
VZ
3391 no_cache=0
3392 # Check whether --enable-fs_inet or --disable-fs_inet was given.
3393if test "${enable_fs_inet+set}" = set; then
3394 enableval="$enable_fs_inet"
3395
3396 if test "$enableval" = yes; then
3397 ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
3398 else
3399 ac_cv_use_fs_inet='wxUSE_FS_INET=no'
3400 fi
3401
3402else
3403
3404 LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
3405 if test "x$LINE" != x ; then
3406 eval "DEFAULT_$LINE"
3407 else
3408 no_cache=1
3409 fi
3410
3411 ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
3412
3413fi
3414
3415
3416 eval "$ac_cv_use_fs_inet"
3417 if test "$no_cache" != 1; then
3418 echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
3419 fi
3420
3421 if test "$wxUSE_FS_INET" = yes; then
3422 echo "$ac_t""yes" 1>&6
3423 else
3424 echo "$ac_t""no" 1>&6
3425 fi
3426
3427
3428 echo $ac_n "checking "for --enable-fs_zip"""... $ac_c" 1>&6
1db8dc4a 3429echo "configure:3430: checking "for --enable-fs_zip"" >&5
10f2d63a
VZ
3430 no_cache=0
3431 # Check whether --enable-fs_zip or --disable-fs_zip was given.
3432if test "${enable_fs_zip+set}" = set; then
3433 enableval="$enable_fs_zip"
3434
3435 if test "$enableval" = yes; then
3436 ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
3437 else
3438 ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
3439 fi
3440
3441else
3442
3443 LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
3444 if test "x$LINE" != x ; then
3445 eval "DEFAULT_$LINE"
3446 else
3447 no_cache=1
3448 fi
3449
3450 ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
3451
3452fi
3453
3454
3455 eval "$ac_cv_use_fs_zip"
3456 if test "$no_cache" != 1; then
3457 echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
3458 fi
3459
3460 if test "$wxUSE_FS_ZIP" = yes; then
3461 echo "$ac_t""yes" 1>&6
3462 else
3463 echo "$ac_t""no" 1>&6
3464 fi
3465
3466
3467 echo $ac_n "checking "for --enable-zipstream"""... $ac_c" 1>&6
1db8dc4a 3468echo "configure:3469: checking "for --enable-zipstream"" >&5
10f2d63a
VZ
3469 no_cache=0
3470 # Check whether --enable-zipstream or --disable-zipstream was given.
3471if test "${enable_zipstream+set}" = set; then
3472 enableval="$enable_zipstream"
3473
3474 if test "$enableval" = yes; then
3475 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
3476 else
3477 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
3478 fi
3479
3480else
3481
3482 LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
3483 if test "x$LINE" != x ; then
3484 eval "DEFAULT_$LINE"
3485 else
3486 no_cache=1
3487 fi
3488
3489 ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
3490
3491fi
3492
3493
3494 eval "$ac_cv_use_zipstream"
3495 if test "$no_cache" != 1; then
3496 echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
3497 fi
3498
3499 if test "$wxUSE_ZIPSTREAM" = yes; then
3500 echo "$ac_t""yes" 1>&6
3501 else
3502 echo "$ac_t""no" 1>&6
3503 fi
3504
3505
3506
eb4efbdc 3507 echo $ac_n "checking "for --enable-catch_segvs"""... $ac_c" 1>&6
1db8dc4a 3508echo "configure:3509: checking "for --enable-catch_segvs"" >&5
eb4efbdc
VZ
3509 no_cache=0
3510 # Check whether --enable-catch_segvs or --disable-catch_segvs was given.
3511if test "${enable_catch_segvs+set}" = set; then
3512 enableval="$enable_catch_segvs"
3513
3514 if test "$enableval" = yes; then
3515 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
3516 else
3517 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
3518 fi
3519
3520else
3521
3522 LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}`
3523 if test "x$LINE" != x ; then
3524 eval "DEFAULT_$LINE"
3525 else
3526 no_cache=1
3527 fi
3528
3529 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION
3530
3531fi
3532
3533
3534 eval "$ac_cv_use_catch_segvs"
3535 if test "$no_cache" != 1; then
3536 echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp
3537 fi
3538
3539 if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then
3540 echo "$ac_t""yes" 1>&6
3541 else
3542 echo "$ac_t""no" 1>&6
3543 fi
3544
3545
3546
10f2d63a
VZ
3547
3548 echo $ac_n "checking "for --enable-threads"""... $ac_c" 1>&6
1db8dc4a 3549echo "configure:3550: checking "for --enable-threads"" >&5
10f2d63a
VZ
3550 no_cache=0
3551 # Check whether --enable-threads or --disable-threads was given.
3552if test "${enable_threads+set}" = set; then
3553 enableval="$enable_threads"
3554
3555 if test "$enableval" = yes; then
3556 ac_cv_use_threads='wxUSE_THREADS=yes'
3557 else
3558 ac_cv_use_threads='wxUSE_THREADS=no'
3559 fi
3560
3561else
3562
3563 LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
3564 if test "x$LINE" != x ; then
3565 eval "DEFAULT_$LINE"
3566 else
3567 no_cache=1
3568 fi
3569
3570 ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
3571
3572fi
3573
3574
3575 eval "$ac_cv_use_threads"
3576 if test "$no_cache" != 1; then
3577 echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
3578 fi
3579
3580 if test "$wxUSE_THREADS" = yes; then
3581 echo "$ac_t""yes" 1>&6
3582 else
3583 echo "$ac_t""no" 1>&6
3584 fi
3585
3586
3587 echo $ac_n "checking "for --enable-serial"""... $ac_c" 1>&6
1db8dc4a 3588echo "configure:3589: checking "for --enable-serial"" >&5
10f2d63a
VZ
3589 no_cache=0
3590 # Check whether --enable-serial or --disable-serial was given.
3591if test "${enable_serial+set}" = set; then
3592 enableval="$enable_serial"
3593
3594 if test "$enableval" = yes; then
3595 ac_cv_use_serial='wxUSE_SERIAL=yes'
3596 else
3597 ac_cv_use_serial='wxUSE_SERIAL=no'
3598 fi
3599
3600else
3601
3602 LINE=`grep "wxUSE_SERIAL" ${wx_arg_cache_file}`
3603 if test "x$LINE" != x ; then
3604 eval "DEFAULT_$LINE"
3605 else
3606 no_cache=1
3607 fi
3608
3609 ac_cv_use_serial='wxUSE_SERIAL='$DEFAULT_wxUSE_SERIAL
3610
3611fi
3612
3613
3614 eval "$ac_cv_use_serial"
3615 if test "$no_cache" != 1; then
3616 echo $ac_cv_use_serial >> ${wx_arg_cache_file}.tmp
3617 fi
3618
3619 if test "$wxUSE_SERIAL" = yes; then
3620 echo "$ac_t""yes" 1>&6
3621 else
3622 echo "$ac_t""no" 1>&6
3623 fi
3624
3625
b12915c1
VZ
3626if test "$wxUSE_GUI" = "yes"; then
3627
10f2d63a
VZ
3628
3629
3630 echo $ac_n "checking "for --enable-docview"""... $ac_c" 1>&6
1db8dc4a 3631echo "configure:3632: checking "for --enable-docview"" >&5
10f2d63a
VZ
3632 no_cache=0
3633 # Check whether --enable-docview or --disable-docview was given.
3634if test "${enable_docview+set}" = set; then
3635 enableval="$enable_docview"
3636
3637 if test "$enableval" = yes; then
3638 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
3639 else
3640 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
3641 fi
3642
3643else
3644
3645 LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
3646 if test "x$LINE" != x ; then
3647 eval "DEFAULT_$LINE"
3648 else
3649 no_cache=1
3650 fi
3651
3652 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
3653
3654fi
3655
3656
3657 eval "$ac_cv_use_docview"
3658 if test "$no_cache" != 1; then
3659 echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
3660 fi
3661
3662 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
3663 echo "$ac_t""yes" 1>&6
3664 else
3665 echo "$ac_t""no" 1>&6
3666 fi
3667
3668
3669 echo $ac_n "checking "for --enable-help"""... $ac_c" 1>&6
1db8dc4a 3670echo "configure:3671: checking "for --enable-help"" >&5
10f2d63a
VZ
3671 no_cache=0
3672 # Check whether --enable-help or --disable-help was given.
3673if test "${enable_help+set}" = set; then
3674 enableval="$enable_help"
3675
3676 if test "$enableval" = yes; then
3677 ac_cv_use_help='wxUSE_HELP=yes'
3678 else
3679 ac_cv_use_help='wxUSE_HELP=no'
3680 fi
3681
3682else
3683
3684 LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
3685 if test "x$LINE" != x ; then
3686 eval "DEFAULT_$LINE"
3687 else
3688 no_cache=1
3689 fi
3690
3691 ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
3692
3693fi
3694
3695
3696 eval "$ac_cv_use_help"
3697 if test "$no_cache" != 1; then
3698 echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
3699 fi
3700
3701 if test "$wxUSE_HELP" = yes; then
3702 echo "$ac_t""yes" 1>&6
3703 else
3704 echo "$ac_t""no" 1>&6
3705 fi
3706
3707
3708 echo $ac_n "checking "for --enable-constraints"""... $ac_c" 1>&6
1db8dc4a 3709echo "configure:3710: checking "for --enable-constraints"" >&5
10f2d63a
VZ
3710 no_cache=0
3711 # Check whether --enable-constraints or --disable-constraints was given.
3712if test "${enable_constraints+set}" = set; then
3713 enableval="$enable_constraints"
3714
3715 if test "$enableval" = yes; then
3716 ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
3717 else
3718 ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
3719 fi
3720
3721else
3722
3723 LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
3724 if test "x$LINE" != x ; then
3725 eval "DEFAULT_$LINE"
3726 else
3727 no_cache=1
3728 fi
3729
3730 ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
3731
3732fi
3733
3734
3735 eval "$ac_cv_use_constraints"
3736 if test "$no_cache" != 1; then
3737 echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
3738 fi
3739
3740 if test "$wxUSE_CONSTRAINTS" = yes; then
3741 echo "$ac_t""yes" 1>&6
3742 else
3743 echo "$ac_t""no" 1>&6
3744 fi
3745
3746
3747 echo $ac_n "checking "for --enable-printarch"""... $ac_c" 1>&6
1db8dc4a 3748echo "configure:3749: checking "for --enable-printarch"" >&5
10f2d63a
VZ
3749 no_cache=0
3750 # Check whether --enable-printarch or --disable-printarch was given.
3751if test "${enable_printarch+set}" = set; then
3752 enableval="$enable_printarch"
3753
3754 if test "$enableval" = yes; then
3755 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
3756 else
3757 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
3758 fi
3759
3760else
3761
3762 LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
3763 if test "x$LINE" != x ; then
3764 eval "DEFAULT_$LINE"
3765 else
3766 no_cache=1
3767 fi
3768
3769 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
3770
3771fi
3772
3773
3774 eval "$ac_cv_use_printarch"
3775 if test "$no_cache" != 1; then
3776 echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
3777 fi
3778
3779 if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
3780 echo "$ac_t""yes" 1>&6
3781 else
3782 echo "$ac_t""no" 1>&6
3783 fi
3784
3785
3786 echo $ac_n "checking "for --enable-mdi"""... $ac_c" 1>&6
1db8dc4a 3787echo "configure:3788: checking "for --enable-mdi"" >&5
10f2d63a
VZ
3788 no_cache=0
3789 # Check whether --enable-mdi or --disable-mdi was given.
3790if test "${enable_mdi+set}" = set; then
3791 enableval="$enable_mdi"
3792
3793 if test "$enableval" = yes; then
3794 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=yes'
3795 else
3796 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=no'
3797 fi
3798
3799else
3800
3801 LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
3802 if test "x$LINE" != x ; then
3803 eval "DEFAULT_$LINE"
3804 else
3805 no_cache=1
3806 fi
3807
3808 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
3809
3810fi
3811
3812
3813 eval "$ac_cv_use_mdi"
3814 if test "$no_cache" != 1; then
3815 echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
3816 fi
3817
3818 if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
3819 echo "$ac_t""yes" 1>&6
3820 else
3821 echo "$ac_t""no" 1>&6
3822 fi
3823
3824
3825
3826 echo $ac_n "checking "for --enable-postscript"""... $ac_c" 1>&6
1db8dc4a 3827echo "configure:3828: checking "for --enable-postscript"" >&5
10f2d63a
VZ
3828 no_cache=0
3829 # Check whether --enable-postscript or --disable-postscript was given.
3830if test "${enable_postscript+set}" = set; then
3831 enableval="$enable_postscript"
3832
3833 if test "$enableval" = yes; then
3834 ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
3835 else
3836 ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
3837 fi
3838
3839else
3840
3841 LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
3842 if test "x$LINE" != x ; then
3843 eval "DEFAULT_$LINE"
3844 else
3845 no_cache=1
3846 fi
3847
3848 ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
3849
3850fi
3851
3852
3853 eval "$ac_cv_use_postscript"
3854 if test "$no_cache" != 1; then
3855 echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
3856 fi
3857
3858 if test "$wxUSE_POSTSCRIPT" = yes; then
3859 echo "$ac_t""yes" 1>&6
3860 else
3861 echo "$ac_t""no" 1>&6
3862 fi
3863
3864
3865
3866
3867 echo $ac_n "checking "for --enable-prologio"""... $ac_c" 1>&6
1db8dc4a 3868echo "configure:3869: checking "for --enable-prologio"" >&5
10f2d63a
VZ
3869 no_cache=0
3870 # Check whether --enable-prologio or --disable-prologio was given.
3871if test "${enable_prologio+set}" = set; then
3872 enableval="$enable_prologio"
3873
3874 if test "$enableval" = yes; then
3875 ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
3876 else
3877 ac_cv_use_prologio='wxUSE_PROLOGIO=no'
3878 fi
3879
3880else
3881
3882 LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
3883 if test "x$LINE" != x ; then
3884 eval "DEFAULT_$LINE"
3885 else
3886 no_cache=1
3887 fi
3888
3889 ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
3890
3891fi
3892
3893
3894 eval "$ac_cv_use_prologio"
3895 if test "$no_cache" != 1; then
3896 echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
3897 fi
3898
3899 if test "$wxUSE_PROLOGIO" = yes; then
3900 echo "$ac_t""yes" 1>&6
3901 else
3902 echo "$ac_t""no" 1>&6
3903 fi
3904
3905
3906 echo $ac_n "checking "for --enable-resources"""... $ac_c" 1>&6
1db8dc4a 3907echo "configure:3908: checking "for --enable-resources"" >&5
10f2d63a
VZ
3908 no_cache=0
3909 # Check whether --enable-resources or --disable-resources was given.
3910if test "${enable_resources+set}" = set; then
3911 enableval="$enable_resources"
3912
3913 if test "$enableval" = yes; then
3914 ac_cv_use_resources='wxUSE_RESOURCES=yes'
3915 else
3916 ac_cv_use_resources='wxUSE_RESOURCES=no'
3917 fi
3918
3919else
3920
3921 LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
3922 if test "x$LINE" != x ; then
3923 eval "DEFAULT_$LINE"
3924 else
3925 no_cache=1
3926 fi
3927
3928 ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
3929
3930fi
3931
3932
3933 eval "$ac_cv_use_resources"
3934 if test "$no_cache" != 1; then
3935 echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
3936 fi
3937
3938 if test "$wxUSE_RESOURCES" = yes; then
3939 echo "$ac_t""yes" 1>&6
3940 else
3941 echo "$ac_t""no" 1>&6
3942 fi
3943
3944
3945
3946 echo $ac_n "checking "for --enable-xresources"""... $ac_c" 1>&6
1db8dc4a 3947echo "configure:3948: checking "for --enable-xresources"" >&5
10f2d63a
VZ
3948 no_cache=0
3949 # Check whether --enable-xresources or --disable-xresources was given.
3950if test "${enable_xresources+set}" = set; then
3951 enableval="$enable_xresources"
3952
3953 if test "$enableval" = yes; then
3954 ac_cv_use_xresources='wxUSE_X_RESOURCES=yes'
3955 else
3956 ac_cv_use_xresources='wxUSE_X_RESOURCES=no'
3957 fi
3958
3959else
3960
3961 LINE=`grep "wxUSE_X_RESOURCES" ${wx_arg_cache_file}`
3962 if test "x$LINE" != x ; then
3963 eval "DEFAULT_$LINE"
3964 else
3965 no_cache=1
3966 fi
3967
3968 ac_cv_use_xresources='wxUSE_X_RESOURCES='$DEFAULT_wxUSE_X_RESOURCES
3969
3970fi
3971
3972
3973 eval "$ac_cv_use_xresources"
3974 if test "$no_cache" != 1; then
3975 echo $ac_cv_use_xresources >> ${wx_arg_cache_file}.tmp
3976 fi
3977
3978 if test "$wxUSE_X_RESOURCES" = yes; then
3979 echo "$ac_t""yes" 1>&6
3980 else
3981 echo "$ac_t""no" 1>&6
3982 fi
3983
3984
3985
3986
3987 echo $ac_n "checking "for --enable-clipboard"""... $ac_c" 1>&6
1db8dc4a 3988echo "configure:3989: checking "for --enable-clipboard"" >&5
10f2d63a
VZ
3989 no_cache=0
3990 # Check whether --enable-clipboard or --disable-clipboard was given.
3991if test "${enable_clipboard+set}" = set; then
3992 enableval="$enable_clipboard"
3993
3994 if test "$enableval" = yes; then
3995 ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
3996 else
3997 ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
3998 fi
3999
4000else
4001
4002 LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
4003 if test "x$LINE" != x ; then
4004 eval "DEFAULT_$LINE"
4005 else
4006 no_cache=1
4007 fi
4008
4009 ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
4010
4011fi
4012
4013
4014 eval "$ac_cv_use_clipboard"
4015 if test "$no_cache" != 1; then
4016 echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
4017 fi
4018
4019 if test "$wxUSE_CLIPBOARD" = yes; then
4020 echo "$ac_t""yes" 1>&6
4021 else
4022 echo "$ac_t""no" 1>&6
4023 fi
4024
4025
4026 echo $ac_n "checking "for --enable-dnd"""... $ac_c" 1>&6
1db8dc4a 4027echo "configure:4028: checking "for --enable-dnd"" >&5
10f2d63a
VZ
4028 no_cache=0
4029 # Check whether --enable-dnd or --disable-dnd was given.
4030if test "${enable_dnd+set}" = set; then
4031 enableval="$enable_dnd"
4032
4033 if test "$enableval" = yes; then
4034 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
4035 else
4036 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
4037 fi
4038
4039else
4040
4041 LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
4042 if test "x$LINE" != x ; then
4043 eval "DEFAULT_$LINE"
4044 else
4045 no_cache=1
4046 fi
4047
4048 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
4049
4050fi
4051
4052
4053 eval "$ac_cv_use_dnd"
4054 if test "$no_cache" != 1; then
4055 echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
4056 fi
4057
4058 if test "$wxUSE_DRAG_AND_DROP" = yes; then
4059 echo "$ac_t""yes" 1>&6
4060 else
4061 echo "$ac_t""no" 1>&6
4062 fi
4063
4064
b64f0a5f 4065 echo $ac_n "checking "for --enable-metafile"""... $ac_c" 1>&6
1db8dc4a 4066echo "configure:4067: checking "for --enable-metafile"" >&5
b64f0a5f
RL
4067 no_cache=0
4068 # Check whether --enable-metafile or --disable-metafile was given.
4069if test "${enable_metafile+set}" = set; then
4070 enableval="$enable_metafile"
4071
4072 if test "$enableval" = yes; then
4073 ac_cv_use_metafile='wxUSE_METAFILE=yes'
4074 else
4075 ac_cv_use_metafile='wxUSE_METAFILE=no'
4076 fi
4077
4078else
4079
4080 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
4081 if test "x$LINE" != x ; then
4082 eval "DEFAULT_$LINE"
4083 else
4084 no_cache=1
4085 fi
4086
4087 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
4088
4089fi
4090
4091
4092 eval "$ac_cv_use_metafile"
4093 if test "$no_cache" != 1; then
4094 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
4095 fi
4096
4097 if test "$wxUSE_METAFILE" = yes; then
4098 echo "$ac_t""yes" 1>&6
4099 else
4100 echo "$ac_t""no" 1>&6
4101 fi
4102
4103
10f2d63a
VZ
4104
4105 echo $ac_n "checking "for --enable-wxtree"""... $ac_c" 1>&6
1db8dc4a 4106echo "configure:4107: checking "for --enable-wxtree"" >&5
10f2d63a
VZ
4107 no_cache=0
4108 # Check whether --enable-wxtree or --disable-wxtree was given.
4109if test "${enable_wxtree+set}" = set; then
4110 enableval="$enable_wxtree"
4111
4112 if test "$enableval" = yes; then
4113 ac_cv_use_wxtree='wxUSE_WXTREE=yes'
4114 else
4115 ac_cv_use_wxtree='wxUSE_WXTREE=no'
4116 fi
4117
4118else
4119
4120 LINE=`grep "wxUSE_WXTREE" ${wx_arg_cache_file}`
4121 if test "x$LINE" != x ; then
4122 eval "DEFAULT_$LINE"
4123 else
4124 no_cache=1
4125 fi
4126
4127 ac_cv_use_wxtree='wxUSE_WXTREE='$DEFAULT_wxUSE_WXTREE
4128
4129fi
4130
4131
4132 eval "$ac_cv_use_wxtree"
4133 if test "$no_cache" != 1; then
4134 echo $ac_cv_use_wxtree >> ${wx_arg_cache_file}.tmp
4135 fi
4136
4137 if test "$wxUSE_WXTREE" = yes; then
4138 echo "$ac_t""yes" 1>&6
4139 else
4140 echo "$ac_t""no" 1>&6
4141 fi
4142
4143
4144
4145
4146 echo $ac_n "checking "for --enable-controls"""... $ac_c" 1>&6
1db8dc4a 4147echo "configure:4148: checking "for --enable-controls"" >&5
10f2d63a
VZ
4148 no_cache=0
4149 # Check whether --enable-controls or --disable-controls was given.
4150if test "${enable_controls+set}" = set; then
4151 enableval="$enable_controls"
4152
4153 if test "$enableval" = yes; then
4154 ac_cv_use_controls='wxUSE_CONTROLS=yes'
4155 else
4156 ac_cv_use_controls='wxUSE_CONTROLS=no'
4157 fi
4158
4159else
4160
4161 LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
4162 if test "x$LINE" != x ; then
4163 eval "DEFAULT_$LINE"
4164 else
4165 no_cache=1
4166 fi
4167
4168 ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
4169
4170fi
4171
4172
4173 eval "$ac_cv_use_controls"
4174 if test "$no_cache" != 1; then
4175 echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
4176 fi
4177
4178 if test "$wxUSE_CONTROLS" = yes; then
4179 echo "$ac_t""yes" 1>&6
4180 else
4181 echo "$ac_t""no" 1>&6
4182 fi
4183
4184
4185if test "$wxUSE_CONTROLS" = "yes"; then
4186 DEFAULT_wxUSE_ACCEL=yes
4187 DEFAULT_wxUSE_CARET=yes
4188 DEFAULT_wxUSE_COMBOBOX=yes
4189 DEFAULT_wxUSE_BMPBUTTON=yes
4190 DEFAULT_wxUSE_CHECKBOX=yes
4191 DEFAULT_wxUSE_CHECKLISTBOX=yes
4192 DEFAULT_wxUSE_CHOICE=yes
4193 DEFAULT_wxUSE_GAUGE=yes
4194 DEFAULT_wxUSE_GRID=yes
cc977e5f 4195 DEFAULT_wxUSE_NEW_GRID=yes
10f2d63a
VZ
4196 DEFAULT_wxUSE_IMAGLIST=yes
4197 DEFAULT_wxUSE_LISTBOX=yes
4198 DEFAULT_wxUSE_LISTCTRL=yes
4199 DEFAULT_wxUSE_NOTEBOOK=yes
4200 DEFAULT_wxUSE_RADIOBOX=yes
4201 DEFAULT_wxUSE_RADIOBTN=yes
4202 DEFAULT_wxUSE_SASH=yes
4203 DEFAULT_wxUSE_SCROLLBAR=yes
4204 DEFAULT_wxUSE_SLIDER=yes
4205 DEFAULT_wxUSE_SPINBTN=yes
56cfaa52 4206 DEFAULT_wxUSE_SPINCTRL=yes
10f2d63a
VZ
4207 DEFAULT_wxUSE_SPLITTER=yes
4208 DEFAULT_wxUSE_STATBMP=yes
4209 DEFAULT_wxUSE_STATBOX=yes
4210 DEFAULT_wxUSE_STATLINE=yes
4211 DEFAULT_wxUSE_STATUSBAR=yes
4212 DEFAULT_wxUSE_TAB_DIALOG=yes
1db8dc4a 4213 DEFAULT_wxUSE_TOGGLEBTN=yes
10f2d63a 4214 DEFAULT_wxUSE_TOOLBAR=yes
360d6699
VZ
4215 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
4216 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
10f2d63a
VZ
4217 DEFAULT_wxUSE_TOOLTIPS=yes
4218 DEFAULT_wxUSE_TREECTRL=yes
4219elif test "$wxUSE_CONTROLS" = "no"; then
4220 DEFAULT_wxUSE_ACCEL=no
4221 DEFAULT_wxUSE_CARET=no
4222 DEFAULT_wxUSE_COMBOBOX=no
4223 DEFAULT_wxUSE_BMPBUTTON=no
4224 DEFAULT_wxUSE_CHECKBOX=no
4225 DEFAULT_wxUSE_CHECKLISTBOX=no
4226 DEFAULT_wxUSE_CHOICE=no
4227 DEFAULT_wxUSE_GAUGE=no
4228 DEFAULT_wxUSE_GRID=no
4229 DEFAULT_wxUSE_NEW_GRID=no
4230 DEFAULT_wxUSE_IMAGLIST=no
4231 DEFAULT_wxUSE_LISTBOX=no
4232 DEFAULT_wxUSE_LISTCTRL=no
4233 DEFAULT_wxUSE_NOTEBOOK=no
4234 DEFAULT_wxUSE_RADIOBOX=no
4235 DEFAULT_wxUSE_RADIOBTN=no
4236 DEFAULT_wxUSE_SASH=no
4237 DEFAULT_wxUSE_SCROLLBAR=no
4238 DEFAULT_wxUSE_SLIDER=no
4239 DEFAULT_wxUSE_SPINBTN=no
56cfaa52 4240 DEFAULT_wxUSE_SPINCTRL=no
10f2d63a
VZ
4241 DEFAULT_wxUSE_SPLITTER=no
4242 DEFAULT_wxUSE_STATBMP=no
4243 DEFAULT_wxUSE_STATBOX=no
4244 DEFAULT_wxUSE_STATLINE=no
4245 DEFAULT_wxUSE_STATUSBAR=no
4246 DEFAULT_wxUSE_TAB_DIALOG=no
1db8dc4a 4247 DEFAULT_wxUSE_TOGGLEBTN=no
10f2d63a 4248 DEFAULT_wxUSE_TOOLBAR=no
360d6699
VZ
4249 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
4250 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
10f2d63a
VZ
4251 DEFAULT_wxUSE_TOOLTIPS=no
4252 DEFAULT_wxUSE_TREECTRL=no
4253fi
4254
4255
4256 echo $ac_n "checking "for --enable-accel"""... $ac_c" 1>&6
1db8dc4a 4257echo "configure:4258: checking "for --enable-accel"" >&5
10f2d63a
VZ
4258 no_cache=0
4259 # Check whether --enable-accel or --disable-accel was given.
4260if test "${enable_accel+set}" = set; then
4261 enableval="$enable_accel"
4262
4263 if test "$enableval" = yes; then
4264 ac_cv_use_accel='wxUSE_ACCEL=yes'
4265 else
4266 ac_cv_use_accel='wxUSE_ACCEL=no'
4267 fi
4268
4269else
4270
4271 LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
4272 if test "x$LINE" != x ; then
4273 eval "DEFAULT_$LINE"
4274 else
4275 no_cache=1
4276 fi
4277
4278 ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
4279
4280fi
4281
4282
4283 eval "$ac_cv_use_accel"
4284 if test "$no_cache" != 1; then
4285 echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
4286 fi
4287
4288 if test "$wxUSE_ACCEL" = yes; then
4289 echo "$ac_t""yes" 1>&6
4290 else
4291 echo "$ac_t""no" 1>&6
4292 fi
4293
4294
4295 echo $ac_n "checking "for --enable-caret"""... $ac_c" 1>&6
1db8dc4a 4296echo "configure:4297: checking "for --enable-caret"" >&5
10f2d63a
VZ
4297 no_cache=0
4298 # Check whether --enable-caret or --disable-caret was given.
4299if test "${enable_caret+set}" = set; then
4300 enableval="$enable_caret"
4301
4302 if test "$enableval" = yes; then
4303 ac_cv_use_caret='wxUSE_CARET=yes'
4304 else
4305 ac_cv_use_caret='wxUSE_CARET=no'
4306 fi
4307
4308else
4309
4310 LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
4311 if test "x$LINE" != x ; then
4312 eval "DEFAULT_$LINE"
4313 else
4314 no_cache=1
4315 fi
4316
4317 ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
4318
4319fi
4320
4321
4322 eval "$ac_cv_use_caret"
4323 if test "$no_cache" != 1; then
4324 echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
4325 fi
4326
4327 if test "$wxUSE_CARET" = yes; then
4328 echo "$ac_t""yes" 1>&6
4329 else
4330 echo "$ac_t""no" 1>&6
4331 fi
4332
4333
4334 echo $ac_n "checking "for --enable-bmpbutton"""... $ac_c" 1>&6
1db8dc4a 4335echo "configure:4336: checking "for --enable-bmpbutton"" >&5
10f2d63a
VZ
4336 no_cache=0
4337 # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
4338if test "${enable_bmpbutton+set}" = set; then
4339 enableval="$enable_bmpbutton"
4340
4341 if test "$enableval" = yes; then
4342 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
4343 else
4344 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
4345 fi
4346
4347else
4348
4349 LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
4350 if test "x$LINE" != x ; then
4351 eval "DEFAULT_$LINE"
4352 else
4353 no_cache=1
4354 fi
4355
4356 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
4357
4358fi
4359
4360
4361 eval "$ac_cv_use_bmpbutton"
4362 if test "$no_cache" != 1; then
4363 echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
4364 fi
4365
4366 if test "$wxUSE_BMPBUTTON" = yes; then
4367 echo "$ac_t""yes" 1>&6
4368 else
4369 echo "$ac_t""no" 1>&6
4370 fi
4371
4372
4373 echo $ac_n "checking "for --enable-checkbox"""... $ac_c" 1>&6
1db8dc4a 4374echo "configure:4375: checking "for --enable-checkbox"" >&5
10f2d63a
VZ
4375 no_cache=0
4376 # Check whether --enable-checkbox or --disable-checkbox was given.
4377if test "${enable_checkbox+set}" = set; then
4378 enableval="$enable_checkbox"
4379
4380 if test "$enableval" = yes; then
4381 ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
4382 else
4383 ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
4384 fi
4385
4386else
4387
4388 LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
4389 if test "x$LINE" != x ; then
4390 eval "DEFAULT_$LINE"
4391 else
4392 no_cache=1
4393 fi
4394
4395 ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
4396
4397fi
4398
4399
4400 eval "$ac_cv_use_checkbox"
4401 if test "$no_cache" != 1; then
4402 echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
4403 fi
4404
4405 if test "$wxUSE_CHECKBOX" = yes; then
4406 echo "$ac_t""yes" 1>&6
4407 else
4408 echo "$ac_t""no" 1>&6
4409 fi
4410
4411
4412 echo $ac_n "checking "for --enable-checklst"""... $ac_c" 1>&6
1db8dc4a 4413echo "configure:4414: checking "for --enable-checklst"" >&5
10f2d63a
VZ
4414 no_cache=0
4415 # Check whether --enable-checklst or --disable-checklst was given.
4416if test "${enable_checklst+set}" = set; then
4417 enableval="$enable_checklst"
4418
4419 if test "$enableval" = yes; then
4420 ac_cv_use_checklst='wxUSE_CHECKLST=yes'
4421 else
4422 ac_cv_use_checklst='wxUSE_CHECKLST=no'
4423 fi
4424
4425else
4426
4427 LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
4428 if test "x$LINE" != x ; then
4429 eval "DEFAULT_$LINE"
4430 else
4431 no_cache=1
4432 fi
4433
4434 ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
4435
4436fi
4437
4438
4439 eval "$ac_cv_use_checklst"
4440 if test "$no_cache" != 1; then
4441 echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
4442 fi
4443
4444 if test "$wxUSE_CHECKLST" = yes; then
4445 echo "$ac_t""yes" 1>&6
4446 else
4447 echo "$ac_t""no" 1>&6
4448 fi
4449
4450
4451 echo $ac_n "checking "for --enable-choice"""... $ac_c" 1>&6
1db8dc4a 4452echo "configure:4453: checking "for --enable-choice"" >&5
10f2d63a
VZ
4453 no_cache=0
4454 # Check whether --enable-choice or --disable-choice was given.
4455if test "${enable_choice+set}" = set; then
4456 enableval="$enable_choice"
4457
4458 if test "$enableval" = yes; then
4459 ac_cv_use_choice='wxUSE_CHOICE=yes'
4460 else
4461 ac_cv_use_choice='wxUSE_CHOICE=no'
4462 fi
4463
4464else
4465
4466 LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
4467 if test "x$LINE" != x ; then
4468 eval "DEFAULT_$LINE"
4469 else
4470 no_cache=1
4471 fi
4472
4473 ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
4474
4475fi
4476
4477
4478 eval "$ac_cv_use_choice"
4479 if test "$no_cache" != 1; then
4480 echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
4481 fi
4482
4483 if test "$wxUSE_CHOICE" = yes; then
4484 echo "$ac_t""yes" 1>&6
4485 else
4486 echo "$ac_t""no" 1>&6
4487 fi
4488
4489
4490 echo $ac_n "checking "for --enable-combobox"""... $ac_c" 1>&6
1db8dc4a 4491echo "configure:4492: checking "for --enable-combobox"" >&5
10f2d63a
VZ
4492 no_cache=0
4493 # Check whether --enable-combobox or --disable-combobox was given.
4494if test "${enable_combobox+set}" = set; then
4495 enableval="$enable_combobox"
4496
4497 if test "$enableval" = yes; then
4498 ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
4499 else
4500 ac_cv_use_combobox='wxUSE_COMBOBOX=no'
4501 fi
4502
4503else
4504
4505 LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
4506 if test "x$LINE" != x ; then
4507 eval "DEFAULT_$LINE"
4508 else
4509 no_cache=1
4510 fi
4511
4512 ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
4513
4514fi
4515
4516
4517 eval "$ac_cv_use_combobox"
4518 if test "$no_cache" != 1; then
4519 echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
4520 fi
4521
4522 if test "$wxUSE_COMBOBOX" = yes; then
4523 echo "$ac_t""yes" 1>&6
4524 else
4525 echo "$ac_t""no" 1>&6
4526 fi
4527
4528
4529 echo $ac_n "checking "for --enable-gauge"""... $ac_c" 1>&6
1db8dc4a 4530echo "configure:4531: checking "for --enable-gauge"" >&5
10f2d63a
VZ
4531 no_cache=0
4532 # Check whether --enable-gauge or --disable-gauge was given.
4533if test "${enable_gauge+set}" = set; then
4534 enableval="$enable_gauge"
4535
4536 if test "$enableval" = yes; then
4537 ac_cv_use_gauge='wxUSE_GAUGE=yes'
4538 else
4539 ac_cv_use_gauge='wxUSE_GAUGE=no'
4540 fi
4541
4542else
4543
4544 LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
4545 if test "x$LINE" != x ; then
4546 eval "DEFAULT_$LINE"
4547 else
4548 no_cache=1
4549 fi
4550
4551 ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
4552
4553fi
4554
4555
4556 eval "$ac_cv_use_gauge"
4557 if test "$no_cache" != 1; then
4558 echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
4559 fi
4560
4561 if test "$wxUSE_GAUGE" = yes; then
4562 echo "$ac_t""yes" 1>&6
4563 else
4564 echo "$ac_t""no" 1>&6
4565 fi
4566
4567
4568 echo $ac_n "checking "for --enable-grid"""... $ac_c" 1>&6
1db8dc4a 4569echo "configure:4570: checking "for --enable-grid"" >&5
10f2d63a
VZ
4570 no_cache=0
4571 # Check whether --enable-grid or --disable-grid was given.
4572if test "${enable_grid+set}" = set; then
4573 enableval="$enable_grid"
4574
4575 if test "$enableval" = yes; then
4576 ac_cv_use_grid='wxUSE_GRID=yes'
4577 else
4578 ac_cv_use_grid='wxUSE_GRID=no'
4579 fi
4580
4581else
4582
4583 LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
4584 if test "x$LINE" != x ; then
4585 eval "DEFAULT_$LINE"
4586 else
4587 no_cache=1
4588 fi
4589
4590 ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
4591
4592fi
4593
4594
4595 eval "$ac_cv_use_grid"
4596 if test "$no_cache" != 1; then
4597 echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
4598 fi
4599
4600 if test "$wxUSE_GRID" = yes; then
4601 echo "$ac_t""yes" 1>&6
4602 else
4603 echo "$ac_t""no" 1>&6
4604 fi
4605
4606
4607 echo $ac_n "checking "for --enable-newgrid"""... $ac_c" 1>&6
1db8dc4a 4608echo "configure:4609: checking "for --enable-newgrid"" >&5
10f2d63a
VZ
4609 no_cache=0
4610 # Check whether --enable-newgrid or --disable-newgrid was given.
4611if test "${enable_newgrid+set}" = set; then
4612 enableval="$enable_newgrid"
4613
4614 if test "$enableval" = yes; then
4615 ac_cv_use_newgrid='wxUSE_NEW_GRID=yes'
4616 else
4617 ac_cv_use_newgrid='wxUSE_NEW_GRID=no'
4618 fi
4619
4620else
4621
4622 LINE=`grep "wxUSE_NEW_GRID" ${wx_arg_cache_file}`
4623 if test "x$LINE" != x ; then
4624 eval "DEFAULT_$LINE"
4625 else
4626 no_cache=1
4627 fi
4628
4629 ac_cv_use_newgrid='wxUSE_NEW_GRID='$DEFAULT_wxUSE_NEW_GRID
4630
4631fi
4632
4633
4634 eval "$ac_cv_use_newgrid"
4635 if test "$no_cache" != 1; then
4636 echo $ac_cv_use_newgrid >> ${wx_arg_cache_file}.tmp
4637 fi
4638
4639 if test "$wxUSE_NEW_GRID" = yes; then
4640 echo "$ac_t""yes" 1>&6
4641 else
4642 echo "$ac_t""no" 1>&6
4643 fi
4644
4645
4646 echo $ac_n "checking "for --enable-imaglist"""... $ac_c" 1>&6
1db8dc4a 4647echo "configure:4648: checking "for --enable-imaglist"" >&5
10f2d63a
VZ
4648 no_cache=0
4649 # Check whether --enable-imaglist or --disable-imaglist was given.
4650if test "${enable_imaglist+set}" = set; then
4651 enableval="$enable_imaglist"
4652
4653 if test "$enableval" = yes; then
4654 ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
4655 else
4656 ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
4657 fi
4658
4659else
4660
4661 LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
4662 if test "x$LINE" != x ; then
4663 eval "DEFAULT_$LINE"
4664 else
4665 no_cache=1
4666 fi
4667
4668 ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
4669
4670fi
4671
4672
4673 eval "$ac_cv_use_imaglist"
4674 if test "$no_cache" != 1; then
4675 echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
4676 fi
4677
4678 if test "$wxUSE_IMAGLIST" = yes; then
4679 echo "$ac_t""yes" 1>&6
4680 else
4681 echo "$ac_t""no" 1>&6
4682 fi
4683
4684
4685 echo $ac_n "checking "for --enable-listbox"""... $ac_c" 1>&6
1db8dc4a 4686echo "configure:4687: checking "for --enable-listbox"" >&5
10f2d63a
VZ
4687 no_cache=0
4688 # Check whether --enable-listbox or --disable-listbox was given.
4689if test "${enable_listbox+set}" = set; then
4690 enableval="$enable_listbox"
4691
4692 if test "$enableval" = yes; then
4693 ac_cv_use_listbox='wxUSE_LISTBOX=yes'
4694 else
4695 ac_cv_use_listbox='wxUSE_LISTBOX=no'
4696 fi
4697
4698else
4699
4700 LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
4701 if test "x$LINE" != x ; then
4702 eval "DEFAULT_$LINE"
4703 else
4704 no_cache=1
4705 fi
4706
4707 ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
4708
4709fi
4710
4711
4712 eval "$ac_cv_use_listbox"
4713 if test "$no_cache" != 1; then
4714 echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
4715 fi
4716
4717 if test "$wxUSE_LISTBOX" = yes; then
4718 echo "$ac_t""yes" 1>&6
4719 else
4720 echo "$ac_t""no" 1>&6
4721 fi
4722
4723
4724 echo $ac_n "checking "for --enable-listctrl"""... $ac_c" 1>&6
1db8dc4a 4725echo "configure:4726: checking "for --enable-listctrl"" >&5
10f2d63a
VZ
4726 no_cache=0
4727 # Check whether --enable-listctrl or --disable-listctrl was given.
4728if test "${enable_listctrl+set}" = set; then
4729 enableval="$enable_listctrl"
4730
4731 if test "$enableval" = yes; then
4732 ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
4733 else
4734 ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
4735 fi
4736
4737else
4738
4739 LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
4740 if test "x$LINE" != x ; then
4741 eval "DEFAULT_$LINE"
4742 else
4743 no_cache=1
4744 fi
4745
4746 ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
4747
4748fi
4749
4750
4751 eval "$ac_cv_use_listctrl"
4752 if test "$no_cache" != 1; then
4753 echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
4754 fi
4755
4756 if test "$wxUSE_LISTCTRL" = yes; then
4757 echo "$ac_t""yes" 1>&6
4758 else
4759 echo "$ac_t""no" 1>&6
4760 fi
4761
4762
4763 echo $ac_n "checking "for --enable-notebook"""... $ac_c" 1>&6
1db8dc4a 4764echo "configure:4765: checking "for --enable-notebook"" >&5
10f2d63a
VZ
4765 no_cache=0
4766 # Check whether --enable-notebook or --disable-notebook was given.
4767if test "${enable_notebook+set}" = set; then
4768 enableval="$enable_notebook"
4769
4770 if test "$enableval" = yes; then
4771 ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
4772 else
4773 ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
4774 fi
4775
4776else
4777
4778 LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
4779 if test "x$LINE" != x ; then
4780 eval "DEFAULT_$LINE"
4781 else
4782 no_cache=1
4783 fi
4784
4785 ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
4786
4787fi
4788
4789
4790 eval "$ac_cv_use_notebook"
4791 if test "$no_cache" != 1; then
4792 echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
4793 fi
4794
4795 if test "$wxUSE_NOTEBOOK" = yes; then
4796 echo "$ac_t""yes" 1>&6
4797 else
4798 echo "$ac_t""no" 1>&6
4799 fi
4800
4801
4802 echo $ac_n "checking "for --enable-radiobox"""... $ac_c" 1>&6
1db8dc4a 4803echo "configure:4804: checking "for --enable-radiobox"" >&5
10f2d63a
VZ
4804 no_cache=0
4805 # Check whether --enable-radiobox or --disable-radiobox was given.
4806if test "${enable_radiobox+set}" = set; then
4807 enableval="$enable_radiobox"
4808
4809 if test "$enableval" = yes; then
4810 ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
4811 else
4812 ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
4813 fi
4814
4815else
4816
4817 LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
4818 if test "x$LINE" != x ; then
4819 eval "DEFAULT_$LINE"
4820 else
4821 no_cache=1
4822 fi
4823
4824 ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
4825
4826fi
4827
4828
4829 eval "$ac_cv_use_radiobox"
4830 if test "$no_cache" != 1; then
4831 echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
4832 fi
4833
4834 if test "$wxUSE_RADIOBOX" = yes; then
4835 echo "$ac_t""yes" 1>&6
4836 else
4837 echo "$ac_t""no" 1>&6
4838 fi
4839
4840
4841 echo $ac_n "checking "for --enable-radiobtn"""... $ac_c" 1>&6
1db8dc4a 4842echo "configure:4843: checking "for --enable-radiobtn"" >&5
10f2d63a
VZ
4843 no_cache=0
4844 # Check whether --enable-radiobtn or --disable-radiobtn was given.
4845if test "${enable_radiobtn+set}" = set; then
4846 enableval="$enable_radiobtn"
4847
4848 if test "$enableval" = yes; then
4849 ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
4850 else
4851 ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
4852 fi
4853
4854else
4855
4856 LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
4857 if test "x$LINE" != x ; then
4858 eval "DEFAULT_$LINE"
4859 else
4860 no_cache=1
4861 fi
4862
4863 ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
4864
4865fi
4866
4867
4868 eval "$ac_cv_use_radiobtn"
4869 if test "$no_cache" != 1; then
4870 echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
4871 fi
4872
4873 if test "$wxUSE_RADIOBTN" = yes; then
4874 echo "$ac_t""yes" 1>&6
4875 else
4876 echo "$ac_t""no" 1>&6
4877 fi
4878
4879
4880 echo $ac_n "checking "for --enable-sash"""... $ac_c" 1>&6
1db8dc4a 4881echo "configure:4882: checking "for --enable-sash"" >&5
10f2d63a
VZ
4882 no_cache=0
4883 # Check whether --enable-sash or --disable-sash was given.
4884if test "${enable_sash+set}" = set; then
4885 enableval="$enable_sash"
4886
4887 if test "$enableval" = yes; then
4888 ac_cv_use_sash='wxUSE_SASH=yes'
4889 else
4890 ac_cv_use_sash='wxUSE_SASH=no'
4891 fi
4892
4893else
4894
4895 LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
4896 if test "x$LINE" != x ; then
4897 eval "DEFAULT_$LINE"
4898 else
4899 no_cache=1
4900 fi
4901
4902 ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
4903
4904fi
4905
4906
4907 eval "$ac_cv_use_sash"
4908 if test "$no_cache" != 1; then
4909 echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
4910 fi
4911
4912 if test "$wxUSE_SASH" = yes; then
4913 echo "$ac_t""yes" 1>&6
4914 else
4915 echo "$ac_t""no" 1>&6
4916 fi
4917
4918
4919 echo $ac_n "checking "for --enable-scrollbar"""... $ac_c" 1>&6
1db8dc4a 4920echo "configure:4921: checking "for --enable-scrollbar"" >&5
10f2d63a
VZ
4921 no_cache=0
4922 # Check whether --enable-scrollbar or --disable-scrollbar was given.
4923if test "${enable_scrollbar+set}" = set; then
4924 enableval="$enable_scrollbar"
4925
4926 if test "$enableval" = yes; then
4927 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
4928 else
4929 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
4930 fi
4931
4932else
4933
4934 LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
4935 if test "x$LINE" != x ; then
4936 eval "DEFAULT_$LINE"
4937 else
4938 no_cache=1
4939 fi
4940
4941 ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
4942
4943fi
4944
4945
4946 eval "$ac_cv_use_scrollbar"
4947 if test "$no_cache" != 1; then
4948 echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
4949 fi
4950
4951 if test "$wxUSE_SCROLLBAR" = yes; then
4952 echo "$ac_t""yes" 1>&6
4953 else
4954 echo "$ac_t""no" 1>&6
4955 fi
4956
4957
4958 echo $ac_n "checking "for --enable-slider"""... $ac_c" 1>&6
1db8dc4a 4959echo "configure:4960: checking "for --enable-slider"" >&5
10f2d63a
VZ
4960 no_cache=0
4961 # Check whether --enable-slider or --disable-slider was given.
4962if test "${enable_slider+set}" = set; then
4963 enableval="$enable_slider"
4964
4965 if test "$enableval" = yes; then
4966 ac_cv_use_slider='wxUSE_SLIDER=yes'
4967 else
4968 ac_cv_use_slider='wxUSE_SLIDER=no'
4969 fi
4970
4971else
4972
4973 LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
4974 if test "x$LINE" != x ; then
4975 eval "DEFAULT_$LINE"
4976 else
4977 no_cache=1
4978 fi
4979
4980 ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
4981
4982fi
4983
4984
4985 eval "$ac_cv_use_slider"
4986 if test "$no_cache" != 1; then
4987 echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
4988 fi
4989
4990 if test "$wxUSE_SLIDER" = yes; then
4991 echo "$ac_t""yes" 1>&6
4992 else
4993 echo "$ac_t""no" 1>&6
4994 fi
4995
4996
4997 echo $ac_n "checking "for --enable-spinbtn"""... $ac_c" 1>&6
1db8dc4a 4998echo "configure:4999: checking "for --enable-spinbtn"" >&5
10f2d63a
VZ
4999 no_cache=0
5000 # Check whether --enable-spinbtn or --disable-spinbtn was given.
5001if test "${enable_spinbtn+set}" = set; then
5002 enableval="$enable_spinbtn"
5003
5004 if test "$enableval" = yes; then
5005 ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
5006 else
5007 ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
5008 fi
5009
5010else
5011
5012 LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
5013 if test "x$LINE" != x ; then
5014 eval "DEFAULT_$LINE"
5015 else
5016 no_cache=1
5017 fi
5018
5019 ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
5020
5021fi
5022
5023
5024 eval "$ac_cv_use_spinbtn"
5025 if test "$no_cache" != 1; then
5026 echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
5027 fi
5028
5029 if test "$wxUSE_SPINBTN" = yes; then
5030 echo "$ac_t""yes" 1>&6
5031 else
5032 echo "$ac_t""no" 1>&6
5033 fi
5034
5035
56cfaa52 5036 echo $ac_n "checking "for --enable-spinctrl"""... $ac_c" 1>&6
1db8dc4a 5037echo "configure:5038: checking "for --enable-spinctrl"" >&5
56cfaa52
RR
5038 no_cache=0
5039 # Check whether --enable-spinctrl or --disable-spinctrl was given.
5040if test "${enable_spinctrl+set}" = set; then
5041 enableval="$enable_spinctrl"
5042
5043 if test "$enableval" = yes; then
5044 ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
5045 else
5046 ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
5047 fi
5048
5049else
5050
5051 LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
5052 if test "x$LINE" != x ; then
5053 eval "DEFAULT_$LINE"
5054 else
5055 no_cache=1
5056 fi
5057
5058 ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
5059
5060fi
5061
5062
5063 eval "$ac_cv_use_spinctrl"
5064 if test "$no_cache" != 1; then
5065 echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
5066 fi
5067
5068 if test "$wxUSE_SPINCTRL" = yes; then
5069 echo "$ac_t""yes" 1>&6
5070 else
5071 echo "$ac_t""no" 1>&6
5072 fi
5073
5074
10f2d63a 5075 echo $ac_n "checking "for --enable-splitter"""... $ac_c" 1>&6
1db8dc4a 5076echo "configure:5077: checking "for --enable-splitter"" >&5
10f2d63a
VZ
5077 no_cache=0
5078 # Check whether --enable-splitter or --disable-splitter was given.
5079if test "${enable_splitter+set}" = set; then
5080 enableval="$enable_splitter"
5081
5082 if test "$enableval" = yes; then
5083 ac_cv_use_splitter='wxUSE_SPLITTER=yes'
5084 else
5085 ac_cv_use_splitter='wxUSE_SPLITTER=no'
5086 fi
5087
5088else
5089
5090 LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
5091 if test "x$LINE" != x ; then
5092 eval "DEFAULT_$LINE"
5093 else
5094 no_cache=1
5095 fi
5096
5097 ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
5098
5099fi
5100
5101
5102 eval "$ac_cv_use_splitter"
5103 if test "$no_cache" != 1; then
5104 echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
5105 fi
5106
5107 if test "$wxUSE_SPLITTER" = yes; then
5108 echo "$ac_t""yes" 1>&6
5109 else
5110 echo "$ac_t""no" 1>&6
5111 fi
5112
5113
5114 echo $ac_n "checking "for --enable-statbmp"""... $ac_c" 1>&6
1db8dc4a 5115echo "configure:5116: checking "for --enable-statbmp"" >&5
10f2d63a
VZ
5116 no_cache=0
5117 # Check whether --enable-statbmp or --disable-statbmp was given.
5118if test "${enable_statbmp+set}" = set; then
5119 enableval="$enable_statbmp"
5120
5121 if test "$enableval" = yes; then
5122 ac_cv_use_statbmp='wxUSE_STATBMP=yes'
5123 else
5124 ac_cv_use_statbmp='wxUSE_STATBMP=no'
5125 fi
5126
5127else
5128
5129 LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
5130 if test "x$LINE" != x ; then
5131 eval "DEFAULT_$LINE"
5132 else
5133 no_cache=1
5134 fi
5135
5136 ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
5137
5138fi
5139
5140
5141 eval "$ac_cv_use_statbmp"
5142 if test "$no_cache" != 1; then
5143 echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
5144 fi
5145
5146 if test "$wxUSE_STATBMP" = yes; then
5147 echo "$ac_t""yes" 1>&6
5148 else
5149 echo "$ac_t""no" 1>&6
5150 fi
5151
5152
5153 echo $ac_n "checking "for --enable-statbox"""... $ac_c" 1>&6
1db8dc4a 5154echo "configure:5155: checking "for --enable-statbox"" >&5
10f2d63a
VZ
5155 no_cache=0
5156 # Check whether --enable-statbox or --disable-statbox was given.
5157if test "${enable_statbox+set}" = set; then
5158 enableval="$enable_statbox"
5159
5160 if test "$enableval" = yes; then
5161 ac_cv_use_statbox='wxUSE_STATBOX=yes'
5162 else
5163 ac_cv_use_statbox='wxUSE_STATBOX=no'
5164 fi
5165
5166else
5167
5168 LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
5169 if test "x$LINE" != x ; then
5170 eval "DEFAULT_$LINE"
5171 else
5172 no_cache=1
5173 fi
5174
5175 ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
5176
5177fi
5178
5179
5180 eval "$ac_cv_use_statbox"
5181 if test "$no_cache" != 1; then
5182 echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
5183 fi
5184
5185 if test "$wxUSE_STATBOX" = yes; then
5186 echo "$ac_t""yes" 1>&6
5187 else
5188 echo "$ac_t""no" 1>&6
5189 fi
5190
5191
5192 echo $ac_n "checking "for --enable-statline"""... $ac_c" 1>&6
1db8dc4a 5193echo "configure:5194: checking "for --enable-statline"" >&5
10f2d63a
VZ
5194 no_cache=0
5195 # Check whether --enable-statline or --disable-statline was given.
5196if test "${enable_statline+set}" = set; then
5197 enableval="$enable_statline"
5198
5199 if test "$enableval" = yes; then
5200 ac_cv_use_statline='wxUSE_STATLINE=yes'
5201 else
5202 ac_cv_use_statline='wxUSE_STATLINE=no'
5203 fi
5204
5205else
5206
5207 LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
5208 if test "x$LINE" != x ; then
5209 eval "DEFAULT_$LINE"
5210 else
5211 no_cache=1
5212 fi
5213
5214 ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
5215
5216fi
5217
5218
5219 eval "$ac_cv_use_statline"
5220 if test "$no_cache" != 1; then
5221 echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
5222 fi
5223
5224 if test "$wxUSE_STATLINE" = yes; then
5225 echo "$ac_t""yes" 1>&6
5226 else
5227 echo "$ac_t""no" 1>&6
5228 fi
5229
5230
5231 echo $ac_n "checking "for --enable-statusbar"""... $ac_c" 1>&6
1db8dc4a 5232echo "configure:5233: checking "for --enable-statusbar"" >&5
10f2d63a
VZ
5233 no_cache=0
5234 # Check whether --enable-statusbar or --disable-statusbar was given.
5235if test "${enable_statusbar+set}" = set; then
5236 enableval="$enable_statusbar"
5237
5238 if test "$enableval" = yes; then
5239 ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
5240 else
5241 ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
5242 fi
5243
5244else
5245
5246 LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
5247 if test "x$LINE" != x ; then
5248 eval "DEFAULT_$LINE"
5249 else
5250 no_cache=1
5251 fi
5252
5253 ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
5254
5255fi
5256
5257
5258 eval "$ac_cv_use_statusbar"
5259 if test "$no_cache" != 1; then
5260 echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
5261 fi
5262
5263 if test "$wxUSE_STATUSBAR" = yes; then
5264 echo "$ac_t""yes" 1>&6
5265 else
5266 echo "$ac_t""no" 1>&6
5267 fi
5268
5269
5270 echo $ac_n "checking "for --enable-tabdialog"""... $ac_c" 1>&6
1db8dc4a 5271echo "configure:5272: checking "for --enable-tabdialog"" >&5
10f2d63a
VZ
5272 no_cache=0
5273 # Check whether --enable-tabdialog or --disable-tabdialog was given.
5274if test "${enable_tabdialog+set}" = set; then
5275 enableval="$enable_tabdialog"
5276
5277 if test "$enableval" = yes; then
5278 ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes'
5279 else
5280 ac_cv_use_tabdialog='wxUSE_TABDIALOG=no'
5281 fi
5282
5283else
5284
5285 LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}`
5286 if test "x$LINE" != x ; then
5287 eval "DEFAULT_$LINE"
5288 else
5289 no_cache=1
5290 fi
5291
5292 ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG
5293
5294fi
5295
5296
5297 eval "$ac_cv_use_tabdialog"
5298 if test "$no_cache" != 1; then
5299 echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
5300 fi
5301
5302 if test "$wxUSE_TABDIALOG" = yes; then
5303 echo "$ac_t""yes" 1>&6
5304 else
5305 echo "$ac_t""no" 1>&6
5306 fi
5307
5308
1db8dc4a
VZ
5309 echo $ac_n "checking "for --enable-togglebtn"""... $ac_c" 1>&6
5310echo "configure:5311: checking "for --enable-togglebtn"" >&5
5311 no_cache=0
5312 # Check whether --enable-togglebtn or --disable-togglebtn was given.
5313if test "${enable_togglebtn+set}" = set; then
5314 enableval="$enable_togglebtn"
5315
5316 if test "$enableval" = yes; then
5317 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
5318 else
5319 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
5320 fi
5321
5322else
5323
5324 LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}`
5325 if test "x$LINE" != x ; then
5326 eval "DEFAULT_$LINE"
5327 else
5328 no_cache=1
5329 fi
5330
5331 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN
5332
5333fi
5334
5335
5336 eval "$ac_cv_use_togglebtn"
5337 if test "$no_cache" != 1; then
5338 echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp
5339 fi
5340
5341 if test "$wxUSE_TOGGLEBTN" = yes; then
5342 echo "$ac_t""yes" 1>&6
5343 else
5344 echo "$ac_t""no" 1>&6
5345 fi
5346
5347
10f2d63a 5348 echo $ac_n "checking "for --enable-toolbar"""... $ac_c" 1>&6
1db8dc4a 5349echo "configure:5350: checking "for --enable-toolbar"" >&5
10f2d63a
VZ
5350 no_cache=0
5351 # Check whether --enable-toolbar or --disable-toolbar was given.
5352if test "${enable_toolbar+set}" = set; then
5353 enableval="$enable_toolbar"
5354
5355 if test "$enableval" = yes; then
5356 ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
5357 else
5358 ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
5359 fi
5360
5361else
5362
5363 LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
5364 if test "x$LINE" != x ; then
5365 eval "DEFAULT_$LINE"
5366 else
5367 no_cache=1
5368 fi
5369
5370 ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
5371
5372fi
5373
5374
5375 eval "$ac_cv_use_toolbar"
5376 if test "$no_cache" != 1; then
5377 echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
5378 fi
5379
5380 if test "$wxUSE_TOOLBAR" = yes; then
5381 echo "$ac_t""yes" 1>&6
5382 else
5383 echo "$ac_t""no" 1>&6
5384 fi
5385
5386
360d6699 5387 echo $ac_n "checking "for --enable-tbarnative"""... $ac_c" 1>&6
1db8dc4a 5388echo "configure:5389: checking "for --enable-tbarnative"" >&5
360d6699
VZ
5389 no_cache=0
5390 # Check whether --enable-tbarnative or --disable-tbarnative was given.
5391if test "${enable_tbarnative+set}" = set; then
5392 enableval="$enable_tbarnative"
5393
5394 if test "$enableval" = yes; then
5395 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
5396 else
5397 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
5398 fi
5399
5400else
5401
5402 LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
5403 if test "x$LINE" != x ; then
5404 eval "DEFAULT_$LINE"
5405 else
5406 no_cache=1
5407 fi
5408
5409 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
5410
5411fi
5412
5413
5414 eval "$ac_cv_use_tbarnative"
5415 if test "$no_cache" != 1; then
5416 echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
5417 fi
5418
5419 if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
5420 echo "$ac_t""yes" 1>&6
5421 else
5422 echo "$ac_t""no" 1>&6
5423 fi
5424
5425
5426 echo $ac_n "checking "for --enable-tbarsmpl"""... $ac_c" 1>&6
1db8dc4a 5427echo "configure:5428: checking "for --enable-tbarsmpl"" >&5
360d6699
VZ
5428 no_cache=0
5429 # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given.
5430if test "${enable_tbarsmpl+set}" = set; then
5431 enableval="$enable_tbarsmpl"
5432
5433 if test "$enableval" = yes; then
5434 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes'
5435 else
5436 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no'
5437 fi
5438
5439else
5440
5441 LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}`
5442 if test "x$LINE" != x ; then
5443 eval "DEFAULT_$LINE"
5444 else
5445 no_cache=1
5446 fi
5447
5448 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE
5449
5450fi
5451
5452
5453 eval "$ac_cv_use_tbarsmpl"
5454 if test "$no_cache" != 1; then
5455 echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp
5456 fi
5457
5458 if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then
5459 echo "$ac_t""yes" 1>&6
5460 else
5461 echo "$ac_t""no" 1>&6
5462 fi
5463
5464
10f2d63a 5465 echo $ac_n "checking "for --enable-treectrl"""... $ac_c" 1>&6
1db8dc4a 5466echo "configure:5467: checking "for --enable-treectrl"" >&5
10f2d63a
VZ
5467 no_cache=0
5468 # Check whether --enable-treectrl or --disable-treectrl was given.
5469if test "${enable_treectrl+set}" = set; then
5470 enableval="$enable_treectrl"
5471
5472 if test "$enableval" = yes; then
5473 ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
5474 else
5475 ac_cv_use_treectrl='wxUSE_TREECTRL=no'
5476 fi
5477
5478else
5479
5480 LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
5481 if test "x$LINE" != x ; then
5482 eval "DEFAULT_$LINE"
5483 else
5484 no_cache=1
5485 fi
5486
5487 ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
5488
5489fi
5490
5491
5492 eval "$ac_cv_use_treectrl"
5493 if test "$no_cache" != 1; then
5494 echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
5495 fi
5496
5497 if test "$wxUSE_TREECTRL" = yes; then
5498 echo "$ac_t""yes" 1>&6
5499 else
5500 echo "$ac_t""no" 1>&6
5501 fi
5502
5503
5504
5505
5506 echo $ac_n "checking "for --enable-commondlg"""... $ac_c" 1>&6
1db8dc4a 5507echo "configure:5508: checking "for --enable-commondlg"" >&5
10f2d63a
VZ
5508 no_cache=0
5509 # Check whether --enable-commondlg or --disable-commondlg was given.
5510if test "${enable_commondlg+set}" = set; then
5511 enableval="$enable_commondlg"
5512
5513 if test "$enableval" = yes; then
5514 ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
5515 else
5516 ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
5517 fi
5518
5519else
5520
5521 LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
5522 if test "x$LINE" != x ; then
5523 eval "DEFAULT_$LINE"
5524 else
5525 no_cache=1
5526 fi
5527
5528 ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
5529
5530fi
5531
5532
5533 eval "$ac_cv_use_commondlg"
5534 if test "$no_cache" != 1; then
5535 echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
5536 fi
5537
5538 if test "$wxUSE_COMMONDLGS" = yes; then
5539 echo "$ac_t""yes" 1>&6
5540 else
5541 echo "$ac_t""no" 1>&6
5542 fi
5543
5544
5545 echo $ac_n "checking "for --enable-dirdlg"""... $ac_c" 1>&6
1db8dc4a 5546echo "configure:5547: checking "for --enable-dirdlg"" >&5
10f2d63a
VZ
5547 no_cache=0
5548 # Check whether --enable-dirdlg or --disable-dirdlg was given.
5549if test "${enable_dirdlg+set}" = set; then
5550 enableval="$enable_dirdlg"
5551
5552 if test "$enableval" = yes; then
5553 ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
5554 else
5555 ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
5556 fi
5557
5558else
5559
5560 LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
5561 if test "x$LINE" != x ; then
5562 eval "DEFAULT_$LINE"
5563 else
5564 no_cache=1
5565 fi
5566
5567 ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
5568
5569fi
5570
5571
5572 eval "$ac_cv_use_dirdlg"
5573 if test "$no_cache" != 1; then
5574 echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
5575 fi
5576
5577 if test "$wxUSE_DIRDLG" = yes; then
5578 echo "$ac_t""yes" 1>&6
5579 else
5580 echo "$ac_t""no" 1>&6
5581 fi
5582
5583
5584 echo $ac_n "checking "for --enable-textdlg"""... $ac_c" 1>&6
1db8dc4a 5585echo "configure:5586: checking "for --enable-textdlg"" >&5
10f2d63a
VZ
5586 no_cache=0
5587 # Check whether --enable-textdlg or --disable-textdlg was given.
5588if test "${enable_textdlg+set}" = set; then
5589 enableval="$enable_textdlg"
5590
5591 if test "$enableval" = yes; then
5592 ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
5593 else
5594 ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
5595 fi
5596
5597else
5598
5599 LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
5600 if test "x$LINE" != x ; then
5601 eval "DEFAULT_$LINE"
5602 else
5603 no_cache=1
5604 fi
5605
5606 ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
5607
5608fi
5609
5610
5611 eval "$ac_cv_use_textdlg"
5612 if test "$no_cache" != 1; then
5613 echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
5614 fi
5615
5616 if test "$wxUSE_TEXTDLG" = yes; then
5617 echo "$ac_t""yes" 1>&6
5618 else
5619 echo "$ac_t""no" 1>&6
5620 fi
5621
5622
5623 echo $ac_n "checking "for --enable-tipdlg"""... $ac_c" 1>&6
1db8dc4a 5624echo "configure:5625: checking "for --enable-tipdlg"" >&5
10f2d63a
VZ
5625 no_cache=0
5626 # Check whether --enable-tipdlg or --disable-tipdlg was given.
5627if test "${enable_tipdlg+set}" = set; then
5628 enableval="$enable_tipdlg"
5629
5630 if test "$enableval" = yes; then
5631 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
5632 else
5633 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
5634 fi
5635
5636else
5637
5638 LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
5639 if test "x$LINE" != x ; then
5640 eval "DEFAULT_$LINE"
5641 else
5642 no_cache=1
5643 fi
5644
5645 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
5646
5647fi
5648
5649
5650 eval "$ac_cv_use_tipdlg"
5651 if test "$no_cache" != 1; then
5652 echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
5653 fi
5654
5655 if test "$wxUSE_STARTUP_TIPS" = yes; then
5656 echo "$ac_t""yes" 1>&6
5657 else
5658 echo "$ac_t""no" 1>&6
5659 fi
5660
5661
5662 echo $ac_n "checking "for --enable-progressdlg"""... $ac_c" 1>&6
1db8dc4a 5663echo "configure:5664: checking "for --enable-progressdlg"" >&5
10f2d63a
VZ
5664 no_cache=0
5665 # Check whether --enable-progressdlg or --disable-progressdlg was given.
5666if test "${enable_progressdlg+set}" = set; then
5667 enableval="$enable_progressdlg"
5668
5669 if test "$enableval" = yes; then
5670 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
5671 else
5672 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
5673 fi
5674
5675else
5676
5677 LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
5678 if test "x$LINE" != x ; then
5679 eval "DEFAULT_$LINE"
5680 else
5681 no_cache=1
5682 fi
5683
5684 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
5685
5686fi
5687
5688
5689 eval "$ac_cv_use_progressdlg"
5690 if test "$no_cache" != 1; then
5691 echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
5692 fi
5693
5694 if test "$wxUSE_PROGRESSDLG" = yes; then
5695 echo "$ac_t""yes" 1>&6
5696 else
5697 echo "$ac_t""no" 1>&6
5698 fi
5699
5700
5701 echo $ac_n "checking "for --enable-miniframe"""... $ac_c" 1>&6
1db8dc4a 5702echo "configure:5703: checking "for --enable-miniframe"" >&5
10f2d63a
VZ
5703 no_cache=0
5704 # Check whether --enable-miniframe or --disable-miniframe was given.
5705if test "${enable_miniframe+set}" = set; then
5706 enableval="$enable_miniframe"
5707
5708 if test "$enableval" = yes; then
5709 ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
5710 else
5711 ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
5712 fi
5713
5714else
5715
5716 LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
5717 if test "x$LINE" != x ; then
5718 eval "DEFAULT_$LINE"
5719 else
5720 no_cache=1
5721 fi
5722
5723 ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
5724
5725fi
5726
5727
5728 eval "$ac_cv_use_miniframe"
5729 if test "$no_cache" != 1; then
5730 echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
5731 fi
5732
5733 if test "$wxUSE_MINIFRAME" = yes; then
5734 echo "$ac_t""yes" 1>&6
5735 else
5736 echo "$ac_t""no" 1>&6
5737 fi
5738
5739
5740 echo $ac_n "checking "for --enable-html"""... $ac_c" 1>&6
1db8dc4a 5741echo "configure:5742: checking "for --enable-html"" >&5
10f2d63a
VZ
5742 no_cache=0
5743 # Check whether --enable-html or --disable-html was given.
5744if test "${enable_html+set}" = set; then
5745 enableval="$enable_html"
5746
5747 if test "$enableval" = yes; then
5748 ac_cv_use_html='wxUSE_HTML=yes'
5749 else
5750 ac_cv_use_html='wxUSE_HTML=no'
5751 fi
5752
5753else
5754
5755 LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
5756 if test "x$LINE" != x ; then
5757 eval "DEFAULT_$LINE"
5758 else
5759 no_cache=1
5760 fi
5761
5762 ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
5763
5764fi
5765
5766
5767 eval "$ac_cv_use_html"
5768 if test "$no_cache" != 1; then
5769 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
5770 fi
5771
5772 if test "$wxUSE_HTML" = yes; then
5773 echo "$ac_t""yes" 1>&6
5774 else
5775 echo "$ac_t""no" 1>&6
5776 fi
5777
5778
5779 echo $ac_n "checking "for --enable-tooltips"""... $ac_c" 1>&6
1db8dc4a 5780echo "configure:5781: checking "for --enable-tooltips"" >&5
10f2d63a
VZ
5781 no_cache=0
5782 # Check whether --enable-tooltips or --disable-tooltips was given.
5783if test "${enable_tooltips+set}" = set; then
5784 enableval="$enable_tooltips"
5785
5786 if test "$enableval" = yes; then
5787 ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
5788 else
5789 ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
5790 fi
5791
5792else
5793
5794 LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
5795 if test "x$LINE" != x ; then
5796 eval "DEFAULT_$LINE"
5797 else
5798 no_cache=1
5799 fi
5800
5801 ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
5802
5803fi
5804
5805
5806 eval "$ac_cv_use_tooltips"
5807 if test "$no_cache" != 1; then
5808 echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
5809 fi
5810
5811 if test "$wxUSE_TOOLTIPS" = yes; then
5812 echo "$ac_t""yes" 1>&6
5813 else
5814 echo "$ac_t""no" 1>&6
5815 fi
5816
5817
5818 echo $ac_n "checking "for --enable-splines"""... $ac_c" 1>&6
1db8dc4a 5819echo "configure:5820: checking "for --enable-splines"" >&5
10f2d63a
VZ
5820 no_cache=0
5821 # Check whether --enable-splines or --disable-splines was given.
5822if test "${enable_splines+set}" = set; then
5823 enableval="$enable_splines"
5824
5825 if test "$enableval" = yes; then
5826 ac_cv_use_splines='wxUSE_SPLINES=yes'
5827 else
5828 ac_cv_use_splines='wxUSE_SPLINES=no'
5829 fi
5830
5831else
5832
5833 LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
5834 if test "x$LINE" != x ; then
5835 eval "DEFAULT_$LINE"
5836 else
5837 no_cache=1
5838 fi
5839
5840 ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
5841
5842fi
5843
5844
5845 eval "$ac_cv_use_splines"
5846 if test "$no_cache" != 1; then
5847 echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
5848 fi
5849
5850 if test "$wxUSE_SPLINES" = yes; then
5851 echo "$ac_t""yes" 1>&6
5852 else
5853 echo "$ac_t""no" 1>&6
5854 fi
5855
5856
5857 echo $ac_n "checking "for --enable-validators"""... $ac_c" 1>&6
1db8dc4a 5858echo "configure:5859: checking "for --enable-validators"" >&5
10f2d63a
VZ
5859 no_cache=0
5860 # Check whether --enable-validators or --disable-validators was given.
5861if test "${enable_validators+set}" = set; then
5862 enableval="$enable_validators"
5863
5864 if test "$enableval" = yes; then
5865 ac_cv_use_validators='wxUSE_VALIDATORS=yes'
5866 else
5867 ac_cv_use_validators='wxUSE_VALIDATORS=no'
5868 fi
5869
5870else
5871
5872 LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
5873 if test "x$LINE" != x ; then
5874 eval "DEFAULT_$LINE"
5875 else
5876 no_cache=1
5877 fi
5878
5879 ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
5880
5881fi
5882
5883
5884 eval "$ac_cv_use_validators"
5885 if test "$no_cache" != 1; then
5886 echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
5887 fi
5888
5889 if test "$wxUSE_VALIDATORS" = yes; then
5890 echo "$ac_t""yes" 1>&6
5891 else
5892 echo "$ac_t""no" 1>&6
5893 fi
5894
5895
5896 echo $ac_n "checking "for --enable-busyinfo"""... $ac_c" 1>&6
1db8dc4a 5897echo "configure:5898: checking "for --enable-busyinfo"" >&5
10f2d63a
VZ
5898 no_cache=0
5899 # Check whether --enable-busyinfo or --disable-busyinfo was given.
5900if test "${enable_busyinfo+set}" = set; then
5901 enableval="$enable_busyinfo"
5902
5903 if test "$enableval" = yes; then
5904 ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
5905 else
5906 ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
5907 fi
5908
5909else
5910
5911 LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
5912 if test "x$LINE" != x ; then
5913 eval "DEFAULT_$LINE"
5914 else
5915 no_cache=1
5916 fi
5917
5918 ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
5919
5920fi
5921
5922
5923 eval "$ac_cv_use_busyinfo"
5924 if test "$no_cache" != 1; then
5925 echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
5926 fi
5927
5928 if test "$wxUSE_BUSYINFO" = yes; then
5929 echo "$ac_t""yes" 1>&6
5930 else
5931 echo "$ac_t""no" 1>&6
5932 fi
5933
5934
f6bcfd97 5935 echo $ac_n "checking "for --enable-joystick"""... $ac_c" 1>&6
1db8dc4a 5936echo "configure:5937: checking "for --enable-joystick"" >&5
f6bcfd97
BP
5937 no_cache=0
5938 # Check whether --enable-joystick or --disable-joystick was given.
5939if test "${enable_joystick+set}" = set; then
5940 enableval="$enable_joystick"
5941
5942 if test "$enableval" = yes; then
5943 ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
5944 else
5945 ac_cv_use_joystick='wxUSE_JOYSTICK=no'
5946 fi
5947
5948else
5949
5950 LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
5951 if test "x$LINE" != x ; then
5952 eval "DEFAULT_$LINE"
5953 else
5954 no_cache=1
5955 fi
5956
5957 ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
5958
5959fi
5960
5961
5962 eval "$ac_cv_use_joystick"
5963 if test "$no_cache" != 1; then
5964 echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
5965 fi
5966
5967 if test "$wxUSE_JOYSTICK" = yes; then
5968 echo "$ac_t""yes" 1>&6
5969 else
5970 echo "$ac_t""no" 1>&6
5971 fi
5972
5973
10f2d63a
VZ
5974
5975
5976 echo $ac_n "checking "for --enable-gif"""... $ac_c" 1>&6
1db8dc4a 5977echo "configure:5978: checking "for --enable-gif"" >&5
10f2d63a
VZ
5978 no_cache=0
5979 # Check whether --enable-gif or --disable-gif was given.
5980if test "${enable_gif+set}" = set; then
5981 enableval="$enable_gif"
5982
5983 if test "$enableval" = yes; then
5984 ac_cv_use_gif='wxUSE_GIF=yes'
5985 else
5986 ac_cv_use_gif='wxUSE_GIF=no'
5987 fi
5988
5989else
5990
5991 LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
5992 if test "x$LINE" != x ; then
5993 eval "DEFAULT_$LINE"
5994 else
5995 no_cache=1
5996 fi
5997
5998 ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
5999
6000fi
6001
6002
6003 eval "$ac_cv_use_gif"
6004 if test "$no_cache" != 1; then
6005 echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
6006 fi
6007
6008 if test "$wxUSE_GIF" = yes; then
6009 echo "$ac_t""yes" 1>&6
6010 else
6011 echo "$ac_t""no" 1>&6
6012 fi
6013
6014
6015 echo $ac_n "checking "for --enable-pcx"""... $ac_c" 1>&6
1db8dc4a 6016echo "configure:6017: checking "for --enable-pcx"" >&5
10f2d63a
VZ
6017 no_cache=0
6018 # Check whether --enable-pcx or --disable-pcx was given.
6019if test "${enable_pcx+set}" = set; then
6020 enableval="$enable_pcx"
6021
6022 if test "$enableval" = yes; then
6023 ac_cv_use_pcx='wxUSE_PCX=yes'
6024 else
6025 ac_cv_use_pcx='wxUSE_PCX=no'
6026 fi
6027
6028else
6029
6030 LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
6031 if test "x$LINE" != x ; then
6032 eval "DEFAULT_$LINE"
6033 else
6034 no_cache=1
6035 fi
6036
6037 ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
6038
6039fi
6040
6041
6042 eval "$ac_cv_use_pcx"
6043 if test "$no_cache" != 1; then
6044 echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
6045 fi
6046
6047 if test "$wxUSE_PCX" = yes; then
6048 echo "$ac_t""yes" 1>&6
6049 else
6050 echo "$ac_t""no" 1>&6
6051 fi
6052
6053
6054 echo $ac_n "checking "for --enable-pnm"""... $ac_c" 1>&6
1db8dc4a 6055echo "configure:6056: checking "for --enable-pnm"" >&5
10f2d63a
VZ
6056 no_cache=0
6057 # Check whether --enable-pnm or --disable-pnm was given.
6058if test "${enable_pnm+set}" = set; then
6059 enableval="$enable_pnm"
6060
6061 if test "$enableval" = yes; then
6062 ac_cv_use_pnm='wxUSE_PNM=yes'
6063 else
6064 ac_cv_use_pnm='wxUSE_PNM=no'
6065 fi
6066
6067else
6068
6069 LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
6070 if test "x$LINE" != x ; then
6071 eval "DEFAULT_$LINE"
6072 else
6073 no_cache=1
6074 fi
6075
6076 ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
6077
6078fi
6079
6080
6081 eval "$ac_cv_use_pnm"
6082 if test "$no_cache" != 1; then
6083 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
6084 fi
6085
6086 if test "$wxUSE_PNM" = yes; then
6087 echo "$ac_t""yes" 1>&6
6088 else
6089 echo "$ac_t""no" 1>&6
6090 fi
6091
6092
b12915c1
VZ
6093fi
6094
10f2d63a
VZ
6095
6096 echo "saving argument cache $wx_arg_cache_file"
6097 mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
6098
6099
6100
6101echo $ac_n "checking for toolkit""... $ac_c" 1>&6
1db8dc4a 6102echo "configure:6103: checking for toolkit" >&5
10f2d63a
VZ
6103
6104if test "$wxUSE_GUI" = "yes"; then
6105
b12915c1
VZ
6106if test "$USE_BEOS" = 1; then
6107 { echo "configure: error: BeOS GUI is not supported yet, use --disable-gui" 1>&2; exit 1; }
6108fi
6109
10f2d63a
VZ
6110if test "$TOOLKIT_GIVEN" = 1; then
6111 for toolkit in `echo $ALL_TOOLKITS`; do
6112 var=wxUSE_$toolkit
6113 eval "value=\$${var}"
6114 eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`"
6115 done
6116else
6117 for toolkit in `echo $ALL_TOOLKITS`; do
6118 if test "$has_toolkit_in_cache" != 1; then
6119 var=DEFAULT_DEFAULT_wxUSE_$toolkit
6120 else
6121 var=DEFAULT_wxUSE_$toolkit
6122 fi
6123 eval "wxUSE_$toolkit=\$${var}"
6124 done
6125fi
6126
b4085ce6 6127NUM_TOOLKITS=`expr ${wxUSE_GTK:-0} + ${wxUSE_MOTIF:-0} + ${wxUSE_MAC:-0} + ${wxUSE_WINE:-0} + ${wxUSE_MINGW:-0} + ${wxUSE_CYGWIN:-0}`
cf27ef00 6128
ec14dd32
VZ
6129case "${host}" in
6130 *-pc-os2_emx )
6131 NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
6132 # PATH_IFS is autodetected by OS/2's configure (usually ';')
6133 LEX_STEM="lexyy"
6134 ;;
6135 *)
6136 PATH_IFS=':'
6137 LEX_STEM="lex.yy"
6138 ;;
6139esac
10f2d63a
VZ
6140
6141case "$NUM_TOOLKITS" in
6142 1)
6143 ;;
6144 0)
6145 { echo "configure: error: Please specify a toolkit - cannot determine the default for ${host}" 1>&2; exit 1; }
6146 ;;
6147 *)
6148 { echo "configure: error: Please specify at most one toolkit (may be some are cached?)" 1>&2; exit 1; }
6149esac
6150
6151for toolkit in `echo $ALL_TOOLKITS`; do
6152 var=wxUSE_$toolkit
6153 eval "value=\$${var}"
6154 if test "x$value" != x; then
6155 cache_var=CACHE_$toolkit
6156 eval "cache=\$${cache_var}"
6157 if test "$cache" = 1; then
6158 echo "$var=$value" >> ${wx_arg_cache_file}
6159 fi
6160 if test "$value" = 1; then
6161 echo "$ac_t""`echo $toolkit | tr A-Z a-z`" 1>&6
6162 fi
6163 fi
6164done
6165
6166else
cf27ef00 6167 PATH_IFS=':'
10f2d63a
VZ
6168 echo "$ac_t""base only" 1>&6
6169fi
6170
6171
6172cat > confcache <<\EOF
6173# This file is a shell script that caches the results of configure
6174# tests run on this system so they can be shared between configure
6175# scripts and configure runs. It is not useful on other systems.
6176# If it contains results you don't want to keep, you may remove or edit it.
6177#
6178# By default, configure uses ./config.cache as the cache file,
6179# creating it if it does not exist already. You can give configure
6180# the --cache-file=FILE option to use a different cache file; that is
6181# what configure does when it calls configure scripts in
6182# subdirectories, so they share the cache.
6183# Giving --cache-file=/dev/null disables caching, for debugging configure.
6184# config.status only pays attention to the cache file if you give it the
6185# --recheck option to rerun configure.
6186#
6187EOF
6188# The following way of writing the cache mishandles newlines in values,
6189# but we know of no workaround that is simple, portable, and efficient.
6190# So, don't put newlines in cache variables' values.
6191# Ultrix sh set writes to stderr and can't be redirected directly,
6192# and sets the high bit in the cache file unless we assign to the vars.
6193(set) 2>&1 |
6194 case `(ac_space=' '; set | grep ac_space) 2>&1` in
6195 *ac_space=\ *)
6196 # `set' does not quote correctly, so add quotes (double-quote substitution
6197 # turns \\\\ into \\, and sed turns \\ into \).
6198 sed -n \
6199 -e "s/'/'\\\\''/g" \
6200 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
6201 ;;
6202 *)
6203 # `set' quotes correctly as required by POSIX, so do not add quotes.
6204 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
6205 ;;
6206 esac >> confcache
6207if cmp -s $cache_file confcache; then
6208 :
6209else
6210 if test -w $cache_file; then
6211 echo "updating cache $cache_file"
6212 cat confcache > $cache_file
6213 else
6214 echo "not updating unwritable cache $cache_file"
6215 fi
6216fi
6217rm -f confcache
6218
6219
e59890c3 6220if test "$build" != "$host" ; then
10f2d63a
VZ
6221 CC=$host_alias-gcc
6222 CXX=$host_alias-c++
6223 AR=$host_alias-ar
6224 RANLIB=$host_alias-ranlib
6225 DLLTOOL=$host_alias-dlltool
32832908 6226 RESCOMP=$host_alias-windres
10f2d63a
VZ
6227 LD=$host_alias-ld
6228 NM=$host_alias-nm
6229 STRIP=$host_alias-strip
10f2d63a
VZ
6230fi
6231
6232# Extract the first word of "gcc", so it can be a program name with args.
6233set dummy gcc; ac_word=$2
6234echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1db8dc4a 6235echo "configure:6236: checking for $ac_word" >&5
10f2d63a
VZ
6236if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
6237 echo $ac_n "(cached) $ac_c" 1>&6
6238else
6239 if test -n "$CC"; then
6240 ac_cv_prog_CC="$CC" # Let the user override the test.
6241else
6242 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6243 ac_dummy="$PATH"
6244 for ac_dir in $ac_dummy; do
6245 test -z "$ac_dir" && ac_dir=.
6246 if test -f $ac_dir/$ac_word; then
6247 ac_cv_prog_CC="gcc"
6248 break
6249 fi
6250 done
6251 IFS="$ac_save_ifs"
6252fi
6253fi
6254CC="$ac_cv_prog_CC"
6255if test -n "$CC"; then
6256 echo "$ac_t""$CC" 1>&6
6257else
6258 echo "$ac_t""no" 1>&6
6259fi
6260
6261if test -z "$CC"; then
6262 # Extract the first word of "cc", so it can be a program name with args.
6263set dummy cc; ac_word=$2
6264echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1db8dc4a 6265echo "configure:6266: checking for $ac_word" >&5
10f2d63a
VZ
6266if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
6267 echo $ac_n "(cached) $ac_c" 1>&6
6268else
6269 if test -n "$CC"; then
6270 ac_cv_prog_CC="$CC" # Let the user override the test.
6271else
6272 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6273 ac_prog_rejected=no
6274 ac_dummy="$PATH"
6275 for ac_dir in $ac_dummy; do
6276 test -z "$ac_dir" && ac_dir=.
6277 if test -f $ac_dir/$ac_word; then
6278 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
6279 ac_prog_rejected=yes
6280 continue
6281 fi
6282 ac_cv_prog_CC="cc"
6283 break
6284 fi
6285 done
6286 IFS="$ac_save_ifs"
6287if test $ac_prog_rejected = yes; then
6288 # We found a bogon in the path, so make sure we never use it.
6289 set dummy $ac_cv_prog_CC
6290 shift
6291 if test $# -gt 0; then
6292 # We chose a different compiler from the bogus one.
6293 # However, it has the same basename, so the bogon will be chosen
6294 # first if we set CC to just the basename; use the full file name.
6295 shift
6296 set dummy "$ac_dir/$ac_word" "$@"
6297 shift
6298 ac_cv_prog_CC="$@"
6299 fi
6300fi
6301fi
6302fi
6303CC="$ac_cv_prog_CC"
6304if test -n "$CC"; then
6305 echo "$ac_t""$CC" 1>&6
6306else
6307 echo "$ac_t""no" 1>&6
6308fi
6309
6310 if test -z "$CC"; then
6311 case "`uname -s`" in
6312 *win32* | *WIN32*)
6313 # Extract the first word of "cl", so it can be a program name with args.
6314set dummy cl; ac_word=$2
6315echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1db8dc4a 6316echo "configure:6317: checking for $ac_word" >&5
10f2d63a
VZ
6317if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
6318 echo $ac_n "(cached) $ac_c" 1>&6
6319else
6320 if test -n "$CC"; then
6321 ac_cv_prog_CC="$CC" # Let the user override the test.
6322else
6323 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6324 ac_dummy="$PATH"
6325 for ac_dir in $ac_dummy; do
6326 test -z "$ac_dir" && ac_dir=.
6327 if test -f $ac_dir/$ac_word; then
6328 ac_cv_prog_CC="cl"
6329 break
6330 fi
6331 done
6332 IFS="$ac_save_ifs"
6333fi
6334fi
6335CC="$ac_cv_prog_CC"
6336if test -n "$CC"; then
6337 echo "$ac_t""$CC" 1>&6
6338else
6339 echo "$ac_t""no" 1>&6
6340fi
6341 ;;
6342 esac
6343 fi
6344 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
6345fi
6346
6347echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1db8dc4a 6348echo "configure:6349: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
10f2d63a
VZ
6349
6350ac_ext=c
6351# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6352ac_cpp='$CPP $CPPFLAGS'
6353ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6354ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6355cross_compiling=$ac_cv_prog_cc_cross
6356
6357cat > conftest.$ac_ext << EOF
6358
1db8dc4a 6359#line 6360 "configure"
10f2d63a
VZ
6360#include "confdefs.h"
6361
6362main(){return(0);}
6363EOF
1db8dc4a 6364if { (eval echo configure:6365: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
6365 ac_cv_prog_cc_works=yes
6366 # If we can't run a trivial program, we are probably using a cross compiler.
6367 if (./conftest; exit) 2>/dev/null; then
6368 ac_cv_prog_cc_cross=no
6369 else
6370 ac_cv_prog_cc_cross=yes
6371 fi
6372else
6373 echo "configure: failed program was:" >&5
6374 cat conftest.$ac_ext >&5
6375 ac_cv_prog_cc_works=no
6376fi
6377rm -fr conftest*
6378ac_ext=c
6379# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6380ac_cpp='$CPP $CPPFLAGS'
6381ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6382ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6383cross_compiling=$ac_cv_prog_cc_cross
6384
6385echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
6386if test $ac_cv_prog_cc_works = no; then
6387 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
6388fi
6389echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1db8dc4a 6390echo "configure:6391: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
10f2d63a
VZ
6391echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
6392cross_compiling=$ac_cv_prog_cc_cross
6393
6394echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1db8dc4a 6395echo "configure:6396: checking whether we are using GNU C" >&5
10f2d63a
VZ
6396if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
6397 echo $ac_n "(cached) $ac_c" 1>&6
6398else
6399 cat > conftest.c <<EOF
6400#ifdef __GNUC__
6401 yes;
6402#endif
6403EOF
1db8dc4a 6404if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:6405: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
10f2d63a
VZ
6405 ac_cv_prog_gcc=yes
6406else
6407 ac_cv_prog_gcc=no
6408fi
6409fi
6410
6411echo "$ac_t""$ac_cv_prog_gcc" 1>&6
6412
6413if test $ac_cv_prog_gcc = yes; then
6414 GCC=yes
6415else
6416 GCC=
6417fi
6418
6419ac_test_CFLAGS="${CFLAGS+set}"
6420ac_save_CFLAGS="$CFLAGS"
6421CFLAGS=
6422echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1db8dc4a 6423echo "configure:6424: checking whether ${CC-cc} accepts -g" >&5
10f2d63a
VZ
6424if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
6425 echo $ac_n "(cached) $ac_c" 1>&6
6426else
6427 echo 'void f(){}' > conftest.c
6428if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
6429 ac_cv_prog_cc_g=yes
6430else
6431 ac_cv_prog_cc_g=no
6432fi
6433rm -f conftest*
6434
6435fi
6436
6437echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
6438if test "$ac_test_CFLAGS" = set; then
6439 CFLAGS="$ac_save_CFLAGS"
6440elif test $ac_cv_prog_cc_g = yes; then
6441 if test "$GCC" = yes; then
6442 CFLAGS="-g -O2"
6443 else
6444 CFLAGS="-g"
6445 fi
6446else
6447 if test "$GCC" = yes; then
6448 CFLAGS="-O2"
6449 else
6450 CFLAGS=
6451 fi
6452fi
6453
6454
6455CFLAGS=`echo "$CFLAGS" | sed 's/-g//g'`
6456
6457echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1db8dc4a 6458echo "configure:6459: checking how to run the C preprocessor" >&5
10f2d63a
VZ
6459# On Suns, sometimes $CPP names a directory.
6460if test -n "$CPP" && test -d "$CPP"; then
6461 CPP=
6462fi
6463if test -z "$CPP"; then
6464if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
6465 echo $ac_n "(cached) $ac_c" 1>&6
6466else
6467 # This must be in double quotes, not single quotes, because CPP may get
6468 # substituted into the Makefile and "${CC-cc}" will confuse make.
6469 CPP="${CC-cc} -E"
6470 # On the NeXT, cc -E runs the code through the compiler's parser,
6471 # not just through cpp.
6472 cat > conftest.$ac_ext <<EOF
1db8dc4a 6473#line 6474 "configure"
10f2d63a
VZ
6474#include "confdefs.h"
6475#include <assert.h>
6476Syntax Error
6477EOF
6478ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1db8dc4a 6479{ (eval echo configure:6480: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
6480ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6481if test -z "$ac_err"; then
6482 :
6483else
6484 echo "$ac_err" >&5
6485 echo "configure: failed program was:" >&5
6486 cat conftest.$ac_ext >&5
6487 rm -rf conftest*
6488 CPP="${CC-cc} -E -traditional-cpp"
6489 cat > conftest.$ac_ext <<EOF
1db8dc4a 6490#line 6491 "configure"
10f2d63a
VZ
6491#include "confdefs.h"
6492#include <assert.h>
6493Syntax Error
6494EOF
6495ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1db8dc4a 6496{ (eval echo configure:6497: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
6497ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6498if test -z "$ac_err"; then
6499 :
6500else
6501 echo "$ac_err" >&5
6502 echo "configure: failed program was:" >&5
6503 cat conftest.$ac_ext >&5
6504 rm -rf conftest*
6505 CPP="${CC-cc} -nologo -E"
6506 cat > conftest.$ac_ext <<EOF
1db8dc4a 6507#line 6508 "configure"
10f2d63a
VZ
6508#include "confdefs.h"
6509#include <assert.h>
6510Syntax Error
6511EOF
6512ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1db8dc4a 6513{ (eval echo configure:6514: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
6514ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6515if test -z "$ac_err"; then
6516 :
6517else
6518 echo "$ac_err" >&5
6519 echo "configure: failed program was:" >&5
6520 cat conftest.$ac_ext >&5
6521 rm -rf conftest*
6522 CPP=/lib/cpp
6523fi
6524rm -f conftest*
6525fi
6526rm -f conftest*
6527fi
6528rm -f conftest*
6529 ac_cv_prog_CPP="$CPP"
6530fi
6531 CPP="$ac_cv_prog_CPP"
6532else
6533 ac_cv_prog_CPP="$CPP"
6534fi
6535echo "$ac_t""$CPP" 1>&6
6536
6537
6538if test $ac_cv_prog_gcc = yes; then
6539 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
1db8dc4a 6540echo "configure:6541: checking whether ${CC-cc} needs -traditional" >&5
10f2d63a
VZ
6541if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
6542 echo $ac_n "(cached) $ac_c" 1>&6
6543else
6544 ac_pattern="Autoconf.*'x'"
6545 cat > conftest.$ac_ext <<EOF
1db8dc4a 6546#line 6547 "configure"
10f2d63a
VZ
6547#include "confdefs.h"
6548#include <sgtty.h>
6549Autoconf TIOCGETP
6550EOF
6551if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6552 egrep "$ac_pattern" >/dev/null 2>&1; then
6553 rm -rf conftest*
6554 ac_cv_prog_gcc_traditional=yes
6555else
6556 rm -rf conftest*
6557 ac_cv_prog_gcc_traditional=no
6558fi
6559rm -f conftest*
6560
6561
6562 if test $ac_cv_prog_gcc_traditional = no; then
6563 cat > conftest.$ac_ext <<EOF
1db8dc4a 6564#line 6565 "configure"
10f2d63a
VZ
6565#include "confdefs.h"
6566#include <termio.h>
6567Autoconf TCGETA
6568EOF
6569if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6570 egrep "$ac_pattern" >/dev/null 2>&1; then
6571 rm -rf conftest*
6572 ac_cv_prog_gcc_traditional=yes
6573fi
6574rm -f conftest*
6575
6576 fi
6577fi
6578
6579echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
6580 if test $ac_cv_prog_gcc_traditional = yes; then
6581 CC="$CC -traditional"
6582 fi
6583fi
6584
6585
6586
6587ac_ext=C
6588# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6589ac_cpp='$CXXCPP $CPPFLAGS'
6590ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6591ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6592cross_compiling=$ac_cv_prog_cxx_cross
6593
6594
6595for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
6596do
6597# Extract the first word of "$ac_prog", so it can be a program name with args.
6598set dummy $ac_prog; ac_word=$2
6599echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1db8dc4a 6600echo "configure:6601: checking for $ac_word" >&5
10f2d63a
VZ
6601if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
6602 echo $ac_n "(cached) $ac_c" 1>&6
6603else
6604 if test -n "$CXX"; then
6605 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6606else
6607 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6608 ac_dummy="$PATH"
6609 for ac_dir in $ac_dummy; do
6610 test -z "$ac_dir" && ac_dir=.
6611 if test -f $ac_dir/$ac_word; then
6612 ac_cv_prog_CXX="$ac_prog"
6613 break
6614 fi
6615 done
6616 IFS="$ac_save_ifs"
6617fi
6618fi
6619CXX="$ac_cv_prog_CXX"
6620if test -n "$CXX"; then
6621 echo "$ac_t""$CXX" 1>&6
6622else
6623 echo "$ac_t""no" 1>&6
6624fi
6625
6626test -n "$CXX" && break
6627done
6628test -n "$CXX" || CXX="gcc"
6629
6630
6631echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1db8dc4a 6632echo "configure:6633: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
10f2d63a
VZ
6633
6634ac_ext=C
6635# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6636ac_cpp='$CXXCPP $CPPFLAGS'
6637ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6638ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6639cross_compiling=$ac_cv_prog_cxx_cross
6640
6641cat > conftest.$ac_ext << EOF
6642
1db8dc4a 6643#line 6644 "configure"
10f2d63a
VZ
6644#include "confdefs.h"
6645
6646int main(){return(0);}
6647EOF
1db8dc4a 6648if { (eval echo configure:6649: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
6649 ac_cv_prog_cxx_works=yes
6650 # If we can't run a trivial program, we are probably using a cross compiler.
6651 if (./conftest; exit) 2>/dev/null; then
6652 ac_cv_prog_cxx_cross=no
6653 else
6654 ac_cv_prog_cxx_cross=yes
6655 fi
6656else
6657 echo "configure: failed program was:" >&5
6658 cat conftest.$ac_ext >&5
6659 ac_cv_prog_cxx_works=no
6660fi
6661rm -fr conftest*
6662ac_ext=C
6663# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6664ac_cpp='$CXXCPP $CPPFLAGS'
6665ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6666ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6667cross_compiling=$ac_cv_prog_cxx_cross
6668
6669echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
6670if test $ac_cv_prog_cxx_works = no; then
6671 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
6672fi
6673echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1db8dc4a 6674echo "configure:6675: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
10f2d63a
VZ
6675echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
6676cross_compiling=$ac_cv_prog_cxx_cross
6677
6678echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
1db8dc4a 6679echo "configure:6680: checking whether we are using GNU C++" >&5
10f2d63a
VZ
6680if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
6681 echo $ac_n "(cached) $ac_c" 1>&6
6682else
6683 cat > conftest.C <<EOF
6684#ifdef __GNUC__
6685 yes;
6686#endif
6687EOF
1db8dc4a 6688if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:6689: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
10f2d63a
VZ
6689 ac_cv_prog_gxx=yes
6690else
6691 ac_cv_prog_gxx=no
6692fi
6693fi
6694
6695echo "$ac_t""$ac_cv_prog_gxx" 1>&6
6696
6697if test $ac_cv_prog_gxx = yes; then
6698 GXX=yes
6699else
6700 GXX=
6701fi
6702
6703ac_test_CXXFLAGS="${CXXFLAGS+set}"
6704ac_save_CXXFLAGS="$CXXFLAGS"
6705CXXFLAGS=
6706echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
1db8dc4a 6707echo "configure:6708: checking whether ${CXX-g++} accepts -g" >&5
10f2d63a
VZ
6708if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
6709 echo $ac_n "(cached) $ac_c" 1>&6
6710else
6711 echo 'void f(){}' > conftest.cc
6712if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
6713 ac_cv_prog_cxx_g=yes
6714else
6715 ac_cv_prog_cxx_g=no
6716fi
6717rm -f conftest*
6718
6719fi
6720
6721echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
6722if test "$ac_test_CXXFLAGS" = set; then
6723 CXXFLAGS="$ac_save_CXXFLAGS"
6724elif test $ac_cv_prog_cxx_g = yes; then
6725 if test "$GXX" = yes; then
6726 CXXFLAGS="-g -O2"
6727 else
6728 CXXFLAGS="-g"
6729 fi
6730else
6731 if test "$GXX" = yes; then
6732 CXXFLAGS="-O2"
6733 else
6734 CXXFLAGS=
6735 fi
6736fi
6737
6738
6739echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
1db8dc4a 6740echo "configure:6741: checking how to run the C++ preprocessor" >&5
10f2d63a
VZ
6741if test -z "$CXXCPP"; then
6742if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
6743 echo $ac_n "(cached) $ac_c" 1>&6
6744else
6745 ac_ext=C
6746# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6747ac_cpp='$CXXCPP $CPPFLAGS'
6748ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6749ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6750cross_compiling=$ac_cv_prog_cxx_cross
6751 CXXCPP="${CXX-g++} -E"
6752 cat > conftest.$ac_ext <<EOF
1db8dc4a 6753#line 6754 "configure"
10f2d63a
VZ
6754#include "confdefs.h"
6755#include <stdlib.h>
6756EOF
6757ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1db8dc4a 6758{ (eval echo configure:6759: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
6759ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6760if test -z "$ac_err"; then
6761 :
6762else
6763 echo "$ac_err" >&5
6764 echo "configure: failed program was:" >&5
6765 cat conftest.$ac_ext >&5
6766 rm -rf conftest*
6767 CXXCPP=/lib/cpp
6768fi
6769rm -f conftest*
6770 ac_cv_prog_CXXCPP="$CXXCPP"
6771ac_ext=C
6772# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6773ac_cpp='$CXXCPP $CPPFLAGS'
6774ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6775ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6776cross_compiling=$ac_cv_prog_cxx_cross
6777fi
6778fi
6779CXXCPP="$ac_cv_prog_CXXCPP"
6780echo "$ac_t""$CXXCPP" 1>&6
6781
6782
6783CXXFLAGS=`echo "$CXXFLAGS" | sed 's/-g//g'`
6784
6785ac_ext=c
6786# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6787ac_cpp='$CPP $CPPFLAGS'
6788ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6789ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6790cross_compiling=$ac_cv_prog_cc_cross
6791
6792
6793# Extract the first word of "ranlib", so it can be a program name with args.
6794set dummy ranlib; ac_word=$2
6795echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1db8dc4a 6796echo "configure:6797: checking for $ac_word" >&5
10f2d63a
VZ
6797if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
6798 echo $ac_n "(cached) $ac_c" 1>&6
6799else
6800 if test -n "$RANLIB"; then
6801 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6802else
6803 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6804 ac_dummy="$PATH"
6805 for ac_dir in $ac_dummy; do
6806 test -z "$ac_dir" && ac_dir=.
6807 if test -f $ac_dir/$ac_word; then
6808 ac_cv_prog_RANLIB="ranlib"
6809 break
6810 fi
6811 done
6812 IFS="$ac_save_ifs"
6813 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
6814fi
6815fi
6816RANLIB="$ac_cv_prog_RANLIB"
6817if test -n "$RANLIB"; then
6818 echo "$ac_t""$RANLIB" 1>&6
6819else
6820 echo "$ac_t""no" 1>&6
6821fi
6822
6823
6824# Extract the first word of "ar", so it can be a program name with args.
6825set dummy ar; ac_word=$2
6826echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1db8dc4a 6827echo "configure:6828: checking for $ac_word" >&5
10f2d63a
VZ
6828if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
6829 echo $ac_n "(cached) $ac_c" 1>&6
6830else
6831 if test -n "$AR"; then
6832 ac_cv_prog_AR="$AR" # Let the user override the test.
6833else
6834 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6835 ac_dummy="$PATH"
6836 for ac_dir in $ac_dummy; do
6837 test -z "$ac_dir" && ac_dir=.
6838 if test -f $ac_dir/$ac_word; then
6839 ac_cv_prog_AR="ar"
6840 break
6841 fi
6842 done
6843 IFS="$ac_save_ifs"
6844 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
6845fi
6846fi
6847AR="$ac_cv_prog_AR"
6848if test -n "$AR"; then
6849 echo "$ac_t""$AR" 1>&6
6850else
6851 echo "$ac_t""no" 1>&6
6852fi
6853
6854
6855# Find a good install program. We prefer a C program (faster),
6856# so one script is as good as another. But avoid the broken or
6857# incompatible versions:
6858# SysV /etc/install, /usr/sbin/install
6859# SunOS /usr/etc/install
6860# IRIX /sbin/install
6861# AIX /bin/install
6862# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6863# AFS /usr/afsws/bin/install, which mishandles nonexistent args
6864# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6865# ./install, which can be erroneously created by make from ./install.sh.
6866echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1db8dc4a 6867echo "configure:6868: checking for a BSD compatible install" >&5
10f2d63a
VZ
6868if test -z "$INSTALL"; then
6869if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
6870 echo $ac_n "(cached) $ac_c" 1>&6
6871else
6872 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
6873 for ac_dir in $PATH; do
6874 # Account for people who put trailing slashes in PATH elements.
6875 case "$ac_dir/" in
6876 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
6877 *)
6878 # OSF1 and SCO ODT 3.0 have their own names for install.
6879 # Don't use installbsd from OSF since it installs stuff as root
6880 # by default.
6881 for ac_prog in ginstall scoinst install; do
6882 if test -f $ac_dir/$ac_prog; then
6883 if test $ac_prog = install &&
6884 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
6885 # AIX install. It has an incompatible calling convention.
6886 :
6887 else
6888 ac_cv_path_install="$ac_dir/$ac_prog -c"
6889 break 2
6890 fi
6891 fi
6892 done
6893 ;;
6894 esac
6895 done
6896 IFS="$ac_save_IFS"
6897
6898fi
6899 if test "${ac_cv_path_install+set}" = set; then
6900 INSTALL="$ac_cv_path_install"
6901 else
6902 # As a last resort, use the slow shell script. We don't cache a
6903 # path for INSTALL within a source directory, because that will
6904 # break other packages using the cache if that directory is
6905 # removed, or if the path is relative.
6906 INSTALL="$ac_install_sh"
6907 fi
6908fi
6909echo "$ac_t""$INSTALL" 1>&6
6910
6911# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6912# It thinks the first close brace ends the variable substitution.
6913test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6914
6915test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
6916
6917test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6918
6919
6920# Extract the first word of "strip", so it can be a program name with args.
6921set dummy strip; ac_word=$2
6922echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1db8dc4a 6923echo "configure:6924: checking for $ac_word" >&5
10f2d63a
VZ
6924if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
6925 echo $ac_n "(cached) $ac_c" 1>&6
6926else
6927 if test -n "$STRIP"; then
6928 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6929else
6930 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6931 ac_dummy="$PATH"
6932 for ac_dir in $ac_dummy; do
6933 test -z "$ac_dir" && ac_dir=.
6934 if test -f $ac_dir/$ac_word; then
6935 ac_cv_prog_STRIP="strip"
6936 break
6937 fi
6938 done
6939 IFS="$ac_save_ifs"
6940 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true"
6941fi
6942fi
6943STRIP="$ac_cv_prog_STRIP"
6944if test -n "$STRIP"; then
6945 echo "$ac_t""$STRIP" 1>&6
6946else
6947 echo "$ac_t""no" 1>&6
6948fi
6949
6950
6951echo $ac_n "checking "make for VPATH support"""... $ac_c" 1>&6
1db8dc4a 6952echo "configure:6953: checking "make for VPATH support"" >&5
10f2d63a
VZ
6953cat - << EOF > confMake
6954check : file
6955 cp \$? \$@
6956 cp \$? final_file
6957EOF
6958
6959if test ! -d sub ; then
6960 mkdir sub
6961fi
6962echo dummy > sub/file
f6bcfd97 6963${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
10f2d63a
VZ
6964RESULT=$?
6965rm -f sub/file check final_file confMake
6966rmdir sub
6967if test "$RESULT" = 0; then
6968 echo "$ac_t""yes" 1>&6
6969else
6970 echo "$ac_t""no" 1>&6
6971 { echo "configure: error: You need a make-utility that is able to use the variable
6972VPATH correctly.
6973If your version of make does not support VPATH correctly" 1>&2; exit 1; }
6974fi
6975
6976for ac_prog in 'bison -y' byacc
6977do
6978# Extract the first word of "$ac_prog", so it can be a program name with args.
6979set dummy $ac_prog; ac_word=$2
6980echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1db8dc4a 6981echo "configure:6982: checking for $ac_word" >&5
10f2d63a
VZ
6982if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
6983 echo $ac_n "(cached) $ac_c" 1>&6
6984else
6985 if test -n "$YACC"; then
6986 ac_cv_prog_YACC="$YACC" # Let the user override the test.
6987else
6988 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6989 ac_dummy="$PATH"
6990 for ac_dir in $ac_dummy; do
6991 test -z "$ac_dir" && ac_dir=.
6992 if test -f $ac_dir/$ac_word; then
6993 ac_cv_prog_YACC="$ac_prog"
6994 break
6995 fi
6996 done
6997 IFS="$ac_save_ifs"
6998fi
6999fi
7000YACC="$ac_cv_prog_YACC"
7001if test -n "$YACC"; then
7002 echo "$ac_t""$YACC" 1>&6
7003else
7004 echo "$ac_t""no" 1>&6
7005fi
7006
7007test -n "$YACC" && break
7008done
7009test -n "$YACC" || YACC="yacc"
7010
7011
7012# Extract the first word of "flex", so it can be a program name with args.
7013set dummy flex; ac_word=$2
7014echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1db8dc4a 7015echo "configure:7016: checking for $ac_word" >&5
10f2d63a
VZ
7016if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
7017 echo $ac_n "(cached) $ac_c" 1>&6
7018else
7019 if test -n "$LEX"; then
7020 ac_cv_prog_LEX="$LEX" # Let the user override the test.
7021else
7022 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7023 ac_dummy="$PATH"
7024 for ac_dir in $ac_dummy; do
7025 test -z "$ac_dir" && ac_dir=.
7026 if test -f $ac_dir/$ac_word; then
7027 ac_cv_prog_LEX="flex"
7028 break
7029 fi
7030 done
7031 IFS="$ac_save_ifs"
7032 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
7033fi
7034fi
7035LEX="$ac_cv_prog_LEX"
7036if test -n "$LEX"; then
7037 echo "$ac_t""$LEX" 1>&6
7038else
7039 echo "$ac_t""no" 1>&6
7040fi
7041
7042if test -z "$LEXLIB"
7043then
7044 case "$LEX" in
7045 flex*) ac_lib=fl ;;
7046 *) ac_lib=l ;;
7047 esac
7048 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
1db8dc4a 7049echo "configure:7050: checking for yywrap in -l$ac_lib" >&5
10f2d63a
VZ
7050ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
7051if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7052 echo $ac_n "(cached) $ac_c" 1>&6
7053else
7054 ac_save_LIBS="$LIBS"
7055LIBS="-l$ac_lib $LIBS"
7056cat > conftest.$ac_ext <<EOF
1db8dc4a 7057#line 7058 "configure"
10f2d63a
VZ
7058#include "confdefs.h"
7059/* Override any gcc2 internal prototype to avoid an error. */
7060/* We use char because int might match the return type of a gcc2
7061 builtin and then its argument prototype would still apply. */
7062char yywrap();
7063
7064int main() {
7065yywrap()
7066; return 0; }
7067EOF
1db8dc4a 7068if { (eval echo configure:7069: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
7069 rm -rf conftest*
7070 eval "ac_cv_lib_$ac_lib_var=yes"
7071else
7072 echo "configure: failed program was:" >&5
7073 cat conftest.$ac_ext >&5
7074 rm -rf conftest*
7075 eval "ac_cv_lib_$ac_lib_var=no"
7076fi
7077rm -f conftest*
7078LIBS="$ac_save_LIBS"
7079
7080fi
7081if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7082 echo "$ac_t""yes" 1>&6
7083 LEXLIB="-l$ac_lib"
7084else
7085 echo "$ac_t""no" 1>&6
7086fi
7087
7088fi
7089
7090
7091echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1db8dc4a 7092echo "configure:7093: checking whether ln -s works" >&5
10f2d63a
VZ
7093if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
7094 echo $ac_n "(cached) $ac_c" 1>&6
7095else
7096 rm -f conftestdata
7097if ln -s X conftestdata 2>/dev/null
7098then
7099 rm -f conftestdata
7100 ac_cv_prog_LN_S="ln -s"
7101else
7102 ac_cv_prog_LN_S=ln
7103fi
7104fi
7105LN_S="$ac_cv_prog_LN_S"
7106if test "$ac_cv_prog_LN_S" = "ln -s"; then
7107 echo "$ac_t""yes" 1>&6
7108else
7109 echo "$ac_t""no" 1>&6
7110fi
7111
7112
7113
7114SEARCH_INCLUDE="\
7115 /usr/local/include \
7116 \
7117 /usr/Motif-1.2/include \
7118 /usr/Motif-2.1/include \
7119 \
7120 /usr/include/Motif1.2 \
7121 /opt/xpm/include/X11 \
7122 /opt/GBxpm/include/ \
7123 /opt/GBxpm/X11/include/ \
7124 \
7125 /usr/Motif1.2/include \
7126 /usr/dt/include \
afc31813
VZ
7127 /usr/openwin/include \
7128 \
10f2d63a
VZ
7129 /usr/include/Xm \
7130 \
7131 /usr/X11R6/include \
afc31813 7132 /usr/X11R6.4/include \
10f2d63a
VZ
7133 /usr/X11R5/include \
7134 /usr/X11R4/include \
7135 \
10f2d63a
VZ
7136 /usr/include/X11R6 \
7137 /usr/include/X11R5 \
7138 /usr/include/X11R4 \
7139 \
7140 /usr/local/X11R6/include \
7141 /usr/local/X11R5/include \
7142 /usr/local/X11R4/include \
7143 \
7144 /usr/local/include/X11R6 \
7145 /usr/local/include/X11R5 \
7146 /usr/local/include/X11R4 \
7147 \
7148 /usr/X11/include \
7149 /usr/include/X11 \
7150 /usr/local/X11/include \
7151 /usr/local/include/X11 \
7152 \
7153 /usr/X386/include \
7154 /usr/x386/include \
7155 /usr/XFree86/include/X11 \
7156 \
cf27ef00 7157 X:/XFree86/include \
ec14dd32
VZ
7158 X:/XFree86/include/X11 \
7159 \
10f2d63a
VZ
7160 /usr/include/gtk \
7161 /usr/local/include/gtk \
7162 /usr/include/glib \
7163 /usr/local/include/glib \
7164 \
7165 /usr/include/qt \
7166 /usr/local/include/qt \
7167 \
7168 /usr/include/windows \
7169 /usr/include/wine \
7170 /usr/local/include/wine \
7171 \
7172 /usr/unsupported/include \
7173 /usr/athena/include \
7174 /usr/local/x11r5/include \
7175 /usr/lpp/Xamples/include \
7176 \
10f2d63a 7177 /usr/openwin/share/include \
928b5c08
VZ
7178 \
7179 /usr/include"
10f2d63a
VZ
7180
7181SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s/include/lib/g` "
7182
7183
7184cat > confcache <<\EOF
7185# This file is a shell script that caches the results of configure
7186# tests run on this system so they can be shared between configure
7187# scripts and configure runs. It is not useful on other systems.
7188# If it contains results you don't want to keep, you may remove or edit it.
7189#
7190# By default, configure uses ./config.cache as the cache file,
7191# creating it if it does not exist already. You can give configure
7192# the --cache-file=FILE option to use a different cache file; that is
7193# what configure does when it calls configure scripts in
7194# subdirectories, so they share the cache.
7195# Giving --cache-file=/dev/null disables caching, for debugging configure.
7196# config.status only pays attention to the cache file if you give it the
7197# --recheck option to rerun configure.
7198#
7199EOF
7200# The following way of writing the cache mishandles newlines in values,
7201# but we know of no workaround that is simple, portable, and efficient.
7202# So, don't put newlines in cache variables' values.
7203# Ultrix sh set writes to stderr and can't be redirected directly,
7204# and sets the high bit in the cache file unless we assign to the vars.
7205(set) 2>&1 |
7206 case `(ac_space=' '; set | grep ac_space) 2>&1` in
7207 *ac_space=\ *)
7208 # `set' does not quote correctly, so add quotes (double-quote substitution
7209 # turns \\\\ into \\, and sed turns \\ into \).
7210 sed -n \
7211 -e "s/'/'\\\\''/g" \
7212 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
7213 ;;
7214 *)
7215 # `set' quotes correctly as required by POSIX, so do not add quotes.
7216 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
7217 ;;
7218 esac >> confcache
7219if cmp -s $cache_file confcache; then
7220 :
7221else
7222 if test -w $cache_file; then
7223 echo "updating cache $cache_file"
7224 cat confcache > $cache_file
7225 else
7226 echo "not updating unwritable cache $cache_file"
7227 fi
7228fi
7229rm -f confcache
7230
7231
7232
dad6c0ea
VZ
7233AFMINSTALL=
7234
10f2d63a
VZ
7235if test "$wxUSE_GUI" = "yes"; then
7236
dad6c0ea
VZ
7237USE_GUI=1
7238
10f2d63a
VZ
7239TOOLKIT=
7240TOOLKIT_INCLUDE=
7241
7242GUIOBJS=
7243COMMONOBJS=
7244GENERICOBJS=
7245
7246GUI_TK_LIBRARY=
7247GUI_TK_LINK=
7248
7249WXGTK12=
f6bcfd97 7250WXGTK127=
6f72b082 7251WXGTK20=
10f2d63a
VZ
7252
7253WXWINE=
7254
10f2d63a
VZ
7255if test "$wxUSE_CYGWIN" = 1 || test "$wxUSE_MINGW" = 1 ; then
7256 if test "$cross_compiling" = "yes" ; then
e59890c3 7257 echo "configure: warning: skipping windows.h check for cross-compilation" 1>&2
10f2d63a
VZ
7258 else
7259 echo $ac_n "checking for Windows headers""... $ac_c" 1>&6
1db8dc4a 7260echo "configure:7261: checking for Windows headers" >&5
10f2d63a
VZ
7261
7262ac_find_includes=
7263for ac_dir in $SEARCH_INCLUDE;
7264 do
7265 if test -f "$ac_dir/windows.h"; then
7266 ac_find_includes=$ac_dir
7267 break
7268 fi
7269 done
7270
7271 if test "$ac_find_includes" != "" ; then
7272 echo "$ac_t""found $ac_find_includes" 1>&6
7273 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE -I$ac_find_includes"
7274 else
7275 echo "$ac_t""no" 1>&6
7276 { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; }
7277 fi
7278 fi
7279
7280 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS msw"
7281 LIBS="$LIBS -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lctl3d32 -lcrtdll -ladvapi32 -lwsock32"
7282
f6bcfd97
BP
7283 if test "$wxUSE_ODBC" = "yes" ; then
7284 LIBS="$LIBS -lodbc32 -lole32 -loleaut32"
7285 fi
7286
10f2d63a
VZ
7287 if test "$wxUSE_MINGW" = 1; then
7288 LDFLAGS="$LDFLAGS -mwindows"
7289 fi
7290
7291 TOOLKIT=MSW
7292
7293 GUIOBJS="\$(MSW_GUIOBJS)"
7294 GUIHEADERS="\$(MSW_HEADERS)"
7295 COMMONOBJS="\$(MSW_COMMONOBJS)"
7296 GENERICOBJS="\$(MSW_GENERICOBJS)"
7297 UNIXOBJS=
7298 GUIDIST=MSW_DIST
32832908
VZ
7299
7300 RCINCSWITCH="--include-dir"
7301 RCDEFSWITCH="--define"
7302 RCPREPROCESSOR="--preprocessor \"\$(CC) -c -E -xc-header -DRC_INVOKED\""
7303 RCINPUTSWITCH="-i"
7304 RCOUTPUTSWITCH="-o"
7305 RESFLAGS="$RCPREPROCESSOR $RCINCSWITCH \$(top_srcdir)/include $RCINCSWITCH \$(top_srcdir)/\$(program_dir) $RCDEFSWITCH __WIN32__ $RCDEFSWITCH __WIN95__ $RCDEFSWITCH __GNUWIN32__"
7306
7307 RESPROGRAM="\$(RES_PROGRAM)"
7308
10f2d63a
VZ
7309fi
7310
7311if test "$wxUSE_GTK" = 1; then
6f72b082
OK
7312 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
7313if test "${with_gtk_prefix+set}" = set; then
7314 withval="$with_gtk_prefix"
7315 gtk_config_prefix="$withval"
7316else
7317 gtk_config_prefix=""
7318fi
7319
7320# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
7321if test "${with_gtk_exec_prefix+set}" = set; then
7322 withval="$with_gtk_exec_prefix"
7323 gtk_config_exec_prefix="$withval"
7324else
7325 gtk_config_exec_prefix=""
7326fi
7327
7328# Check whether --enable-gtktest or --disable-gtktest was given.
7329if test "${enable_gtktest+set}" = set; then
7330 enableval="$enable_gtktest"
7331 :
7332else
7333 enable_gtktest=yes
7334fi
7335
7336
7337 for module in . gthread
7338 do
7339 case "$module" in
7340 gthread)
7341 gtk_config_args="$gtk_config_args gthread"
7342 ;;
7343 esac
7344 done
7345
7346 if test x$gtk_config_exec_prefix != x ; then
7347 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
7348 if test x${GTK_CONFIG_2_0+set} != xset ; then
7349 GTK_CONFIG_2_0=$gtk_config_exec_prefix/bin/gtk-config-2.0
7350 fi
7351 fi
7352 if test x$gtk_config_prefix != x ; then
7353 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
7354 if test x${GTK_CONFIG_2_0+set} != xset ; then
7355 GTK_CONFIG_2_0=$gtk_config_prefix/bin/gtk-config-2.0
7356 fi
7357 fi
7358
7359 # Extract the first word of "gtk-config-2.0", so it can be a program name with args.
7360set dummy gtk-config-2.0; ac_word=$2
7361echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1db8dc4a 7362echo "configure:7363: checking for $ac_word" >&5
6f72b082
OK
7363if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG_2_0'+set}'`\" = set"; then
7364 echo $ac_n "(cached) $ac_c" 1>&6
7365else
7366 case "$GTK_CONFIG_2_0" in
7367 /*)
7368 ac_cv_path_GTK_CONFIG_2_0="$GTK_CONFIG_2_0" # Let the user override the test with a path.
7369 ;;
7370 ?:/*)
7371 ac_cv_path_GTK_CONFIG_2_0="$GTK_CONFIG_2_0" # Let the user override the test with a dos path.
7372 ;;
7373 *)
7374 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7375 ac_dummy="$PATH"
7376 for ac_dir in $ac_dummy; do
7377 test -z "$ac_dir" && ac_dir=.
7378 if test -f $ac_dir/$ac_word; then
7379 ac_cv_path_GTK_CONFIG_2_0="$ac_dir/$ac_word"
7380 break
7381 fi
7382 done
7383 IFS="$ac_save_ifs"
7384 test -z "$ac_cv_path_GTK_CONFIG_2_0" && ac_cv_path_GTK_CONFIG_2_0="no"
7385 ;;
7386esac
7387fi
7388GTK_CONFIG_2_0="$ac_cv_path_GTK_CONFIG_2_0"
7389if test -n "$GTK_CONFIG_2_0"; then
7390 echo "$ac_t""$GTK_CONFIG_2_0" 1>&6
7391else
7392 echo "$ac_t""no" 1>&6
7393fi
7394
7395 min_gtk_version=1.3.1
7396 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
1db8dc4a 7397echo "configure:7398: checking for GTK - version >= $min_gtk_version" >&5
6f72b082
OK
7398 no_gtk=""
7399 if test "$GTK_CONFIG_2_0" = "no" ; then
7400 no_gtk=yes
7401 else
7402 GTK_CFLAGS=`$GTK_CONFIG_2_0 $gtk_config_args --cflags`
7403 GTK_LIBS=`$GTK_CONFIG_2_0 $gtk_config_args --libs`
7404 gtk_config_major_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \
7405 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
7406 gtk_config_minor_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \
7407 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
7408 gtk_config_micro_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \
7409 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
7410 if test "x$enable_gtktest" = "xyes" ; then
7411 ac_save_CFLAGS="$CFLAGS"
7412 ac_save_LIBS="$LIBS"
7413 CFLAGS="$CFLAGS $GTK_CFLAGS"
7414 LIBS="$GTK_LIBS $LIBS"
7415 rm -f conf.gtktest
7416 if test "$cross_compiling" = yes; then
7417 echo $ac_n "cross compiling; assumed OK... $ac_c"
7418else
7419 cat > conftest.$ac_ext <<EOF
1db8dc4a 7420#line 7421 "configure"
6f72b082
OK
7421#include "confdefs.h"
7422
7423#include <gtk/gtk.h>
7424#include <stdio.h>
7425#include <stdlib.h>
7426
7427int
7428main ()
7429{
7430 int major, minor, micro;
7431 char *tmp_version;
7432
7433 system ("touch conf.gtktest");
7434
7435 /* HP/UX 9 (%@#!) writes to sscanf strings */
7436 tmp_version = g_strdup("$min_gtk_version");
7437 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
7438 printf("%s, bad version string\n", "$min_gtk_version");
7439 exit(1);
7440 }
7441
7442 if ((gtk_major_version != $gtk_config_major_version) ||
7443 (gtk_minor_version != $gtk_config_minor_version) ||
7444 (gtk_micro_version != $gtk_config_micro_version))
7445 {
7446 printf("\n*** 'gtk-config-2.0 --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
7447 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
7448 gtk_major_version, gtk_minor_version, gtk_micro_version);
7449 printf ("*** was found! If gtk-config-2.0 was correct, then it is best\n");
7450 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
7451 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
7452 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
7453 printf("*** required on your system.\n");
7454 printf("*** If gtk-config-2.0 was wrong, set the environment variable GTK_CONFIG_2_0\n");
7455 printf("*** to point to the correct copy of gtk-config-2.0, and remove the file config.cache\n");
7456 printf("*** before re-running configure\n");
7457 }
7458#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
7459 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
7460 (gtk_minor_version != GTK_MINOR_VERSION) ||
7461 (gtk_micro_version != GTK_MICRO_VERSION))
7462 {
7463 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
7464 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
7465 printf("*** library (version %d.%d.%d)\n",
7466 gtk_major_version, gtk_minor_version, gtk_micro_version);
7467 }
7468#endif /* defined (GTK_MAJOR_VERSION) ... */
7469 else
7470 {
7471 if ((gtk_major_version > major) ||
7472 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
7473 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
7474 {
7475 return 0;
7476 }
7477 else
7478 {
7479 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
7480 gtk_major_version, gtk_minor_version, gtk_micro_version);
7481 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
7482 major, minor, micro);
7483 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
7484 printf("***\n");
7485 printf("*** If you have already installed a sufficiently new version, this error\n");
7486 printf("*** probably means that the wrong copy of the gtk-config-2.0 shell script is\n");
7487 printf("*** being found. The easiest way to fix this is to remove the old version\n");
7488 printf("*** of GTK+, but you can also set the GTK_CONFIG_2_0 environment to point to the\n");
7489 printf("*** correct copy of gtk-config-2.0. (In this case, you will have to\n");
7490 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
7491 printf("*** so that the correct libraries are found at run-time))\n");
7492 }
7493 }
7494 return 1;
7495}
7496
7497EOF
1db8dc4a 7498if { (eval echo configure:7499: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6f72b082
OK
7499then
7500 :
7501else
7502 echo "configure: failed program was:" >&5
7503 cat conftest.$ac_ext >&5
7504 rm -fr conftest*
7505 no_gtk=yes
7506fi
7507rm -fr conftest*
7508fi
7509
7510 CFLAGS="$ac_save_CFLAGS"
7511 LIBS="$ac_save_LIBS"
7512 fi
7513 fi
7514 if test "x$no_gtk" = x ; then
7515 echo "$ac_t""yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" 1>&6
7516 WXGTK20=1
7517 else
7518 echo "$ac_t""no" 1>&6
7519 if test "$GTK_CONFIG_2_0" = "no" ; then
7520 echo "*** The gtk-config-2.0 script installed by GTK could not be found"
7521 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
7522 echo "*** your path, or set the GTK_CONFIG_2_0 environment variable to the"
7523 echo "*** full path to gtk-config-2.0."
7524 else
7525 if test -f conf.gtktest ; then
7526 :
7527 else
7528 echo "*** Could not run GTK test program, checking why..."
7529 CFLAGS="$CFLAGS $GTK_CFLAGS"
7530 LIBS="$LIBS $GTK_LIBS"
7531 cat > conftest.$ac_ext <<EOF
1db8dc4a 7532#line 7533 "configure"
6f72b082
OK
7533#include "confdefs.h"
7534
7535#include <gtk/gtk.h>
7536#include <stdio.h>
7537
7538int main() {
7539 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
7540; return 0; }
7541EOF
1db8dc4a 7542if { (eval echo configure:7543: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6f72b082
OK
7543 rm -rf conftest*
7544 echo "*** The test program compiled, but did not run. This usually means"
7545 echo "*** that the run-time linker is not finding GTK or finding the wrong"
7546 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
7547 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
7548 echo "*** to the installed location Also, make sure you have run ldconfig if that"
7549 echo "*** is required on your system"
7550 echo "***"
7551 echo "*** If you have an old version installed, it is best to remove it, although"
7552 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
7553 echo "***"
7554 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
7555 echo "*** came with the system with the command"
7556 echo "***"
7557 echo "*** rpm --erase --nodeps gtk gtk-devel"
7558else
7559 echo "configure: failed program was:" >&5
7560 cat conftest.$ac_ext >&5
7561 rm -rf conftest*
7562 echo "*** The test program failed to compile or link. See the file config.log for the"
7563 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
7564 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
7565 echo "*** may want to edit the gtk-config-2.0 script: $GTK_CONFIG_2_0"
7566fi
7567rm -f conftest*
7568 CFLAGS="$ac_save_CFLAGS"
7569 LIBS="$ac_save_LIBS"
7570 fi
7571 fi
7572 GTK_CFLAGS=""
7573 GTK_LIBS=""
7574
7575
10f2d63a
VZ
7576 if test x$gtk_config_exec_prefix != x ; then
7577 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
7578 if test x${GTK_CONFIG+set} != xset ; then
7579 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
7580 fi
7581 fi
7582 if test x$gtk_config_prefix != x ; then
7583 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
7584 if test x${GTK_CONFIG+set} != xset ; then
7585 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
7586 fi
7587 fi
7588
7589 # Extract the first word of "gtk-config", so it can be a program name with args.
7590set dummy gtk-config; ac_word=$2
7591echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1db8dc4a 7592echo "configure:7593: checking for $ac_word" >&5
f6bcfd97
BP
7593if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
7594 echo $ac_n "(cached) $ac_c" 1>&6
7595else
7596 case "$GTK_CONFIG" in
7597 /*)
7598 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
7599 ;;
7600 ?:/*)
7601 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
7602 ;;
7603 *)
7604 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7605 ac_dummy="$PATH"
7606 for ac_dir in $ac_dummy; do
7607 test -z "$ac_dir" && ac_dir=.
7608 if test -f $ac_dir/$ac_word; then
7609 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
7610 break
7611 fi
7612 done
7613 IFS="$ac_save_ifs"
7614 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
7615 ;;
7616esac
7617fi
7618GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
7619if test -n "$GTK_CONFIG"; then
7620 echo "$ac_t""$GTK_CONFIG" 1>&6
7621else
7622 echo "$ac_t""no" 1>&6
7623fi
7624
7625 min_gtk_version=1.2.7
7626 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
1db8dc4a 7627echo "configure:7628: checking for GTK - version >= $min_gtk_version" >&5
f6bcfd97
BP
7628 no_gtk=""
7629 if test "$GTK_CONFIG" != "no" ; then
7630 GTK_CFLAGS=`$GTK_CONFIG --cflags`
7631 GTK_LIBS=`$GTK_CONFIG --libs gthread`
7632 ac_save_CFLAGS="$CFLAGS"
7633 ac_save_LIBS="$LIBS"
7634 CFLAGS="$CFLAGS $GTK_CFLAGS"
7635 LIBS="$LIBS $GTK_LIBS"
7636 if test "$cross_compiling" = yes; then
7637 echo $ac_n "cross compiling; assumed OK... $ac_c"
7638else
7639 cat > conftest.$ac_ext <<EOF
1db8dc4a 7640#line 7641 "configure"
f6bcfd97
BP
7641#include "confdefs.h"
7642
7643#include <gtk/gtk.h>
7644#include <gtk/gtkfeatures.h>
7645#include <stdio.h>
7646#include <stdlib.h>
7647
7648int
7649main ()
7650{
7651 int major, minor, micro;
7652
7653 if (sscanf("$min_gtk_version", "%d.%d.%d", &major, &minor, &micro) != 3) {
7654 printf("%s, bad version string\n", "$min_gtk_version");
7655 exit(1);
7656 }
7657
7658 if ((GTK_MAJOR_VERSION != gtk_major_version) ||
7659 (GTK_MINOR_VERSION != gtk_minor_version) ||
7660 (GTK_MICRO_VERSION != gtk_micro_version)) {
7661 printf("Headers vs. library version mismatch!\n");
7662 exit(1);
7663 }
7664
7665 if (gtk_minor_version == 1) return FALSE;
7666
7667 return !((gtk_major_version > major) ||
7668 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
7669 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)));
7670}
7671
7672EOF
1db8dc4a 7673if { (eval echo configure:7674: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
f6bcfd97
BP
7674then
7675 :
7676else
7677 echo "configure: failed program was:" >&5
7678 cat conftest.$ac_ext >&5
7679 rm -fr conftest*
7680 no_gtk=yes
7681fi
7682rm -fr conftest*
7683fi
7684
7685 CFLAGS="$ac_save_CFLAGS"
7686 LIBS="$ac_save_LIBS"
7687 else
7688 no_gtk=yes
7689 fi
7690 if test "x$no_gtk" = x ; then
7691 echo "$ac_t""yes" 1>&6
7692 WXGTK127=1
7693 else
7694 echo "$ac_t""no" 1>&6
7695 GTK_CFLAGS=""
7696 GTK_LIBS=""
7697 :
7698 fi
7699
7700
7701
6f72b082 7702
f6bcfd97
BP
7703 if test x$gtk_config_exec_prefix != x ; then
7704 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
7705 if test x${GTK_CONFIG+set} != xset ; then
7706 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
7707 fi
7708 fi
7709 if test x$gtk_config_prefix != x ; then
7710 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
7711 if test x${GTK_CONFIG+set} != xset ; then
7712 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
7713 fi
7714 fi
7715
7716 # Extract the first word of "gtk-config", so it can be a program name with args.
7717set dummy gtk-config; ac_word=$2
7718echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1db8dc4a 7719echo "configure:7720: checking for $ac_word" >&5
10f2d63a
VZ
7720if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
7721 echo $ac_n "(cached) $ac_c" 1>&6
7722else
7723 case "$GTK_CONFIG" in
7724 /*)
7725 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
7726 ;;
7727 ?:/*)
7728 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
7729 ;;
7730 *)
7731 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7732 ac_dummy="$PATH"
7733 for ac_dir in $ac_dummy; do
7734 test -z "$ac_dir" && ac_dir=.
7735 if test -f $ac_dir/$ac_word; then
7736 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
7737 break
7738 fi
7739 done
7740 IFS="$ac_save_ifs"
7741 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
7742 ;;
7743esac
7744fi
7745GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
7746if test -n "$GTK_CONFIG"; then
7747 echo "$ac_t""$GTK_CONFIG" 1>&6
7748else
7749 echo "$ac_t""no" 1>&6
7750fi
7751
04165bec 7752 min_gtk_version=1.2.3
10f2d63a 7753 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
1db8dc4a 7754echo "configure:7755: checking for GTK - version >= $min_gtk_version" >&5
10f2d63a
VZ
7755 no_gtk=""
7756 if test "$GTK_CONFIG" != "no" ; then
7757 GTK_CFLAGS=`$GTK_CONFIG --cflags`
2224580a 7758 GTK_LIBS=`$GTK_CONFIG --libs gthread`
10f2d63a
VZ
7759 ac_save_CFLAGS="$CFLAGS"
7760 ac_save_LIBS="$LIBS"
7761 CFLAGS="$CFLAGS $GTK_CFLAGS"
7762 LIBS="$LIBS $GTK_LIBS"
7763 if test "$cross_compiling" = yes; then
7764 echo $ac_n "cross compiling; assumed OK... $ac_c"
7765else
7766 cat > conftest.$ac_ext <<EOF
1db8dc4a 7767#line 7768 "configure"
10f2d63a
VZ
7768#include "confdefs.h"
7769
7770#include <gtk/gtk.h>
f49f2b0c 7771#include <gtk/gtkfeatures.h>
10f2d63a 7772#include <stdio.h>
32832908 7773#include <stdlib.h>
10f2d63a
VZ
7774
7775int
7776main ()
7777{
7778 int major, minor, micro;
7779
7780 if (sscanf("$min_gtk_version", "%d.%d.%d", &major, &minor, &micro) != 3) {
7781 printf("%s, bad version string\n", "$min_gtk_version");
7782 exit(1);
7783 }
7784
f49f2b0c
RR
7785 if ((GTK_MAJOR_VERSION != gtk_major_version) ||
7786 (GTK_MINOR_VERSION != gtk_minor_version) ||
7787 (GTK_MICRO_VERSION != gtk_micro_version)) {
7788 printf("Headers vs. library version mismatch!\n");
7789 exit(1);
7790 }
7791
10f2d63a
VZ
7792 if (gtk_minor_version == 1) return FALSE;
7793
7794 return !((gtk_major_version > major) ||
7795 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
7796 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)));
7797}
7798
7799EOF
1db8dc4a 7800if { (eval echo configure:7801: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10f2d63a
VZ
7801then
7802 :
7803else
7804 echo "configure: failed program was:" >&5
7805 cat conftest.$ac_ext >&5
7806 rm -fr conftest*
7807 no_gtk=yes
7808fi
7809rm -fr conftest*
7810fi
7811
7812 CFLAGS="$ac_save_CFLAGS"
7813 LIBS="$ac_save_LIBS"
7814 else
7815 no_gtk=yes
7816 fi
7817 if test "x$no_gtk" = x ; then
7818 echo "$ac_t""yes" 1>&6
7819 WXGTK12=1
7820 else
7821 echo "$ac_t""no" 1>&6
7822 GTK_CFLAGS=""
7823 GTK_LIBS=""
7e99ad86 7824 :
10f2d63a
VZ
7825 fi
7826
7827
7828
6f72b082
OK
7829
7830 fi
7831
7832
7833 rm -f conf.gtktest
7834
10f2d63a 7835
6f72b082 7836 if test "$WXGTK12" != 1 -a "$WXGTK20" != 1; then
7e99ad86
VZ
7837 { echo "configure: error:
7838 Please check that gtk-config is in path, the directory
7839 where GTK+ libraries are installed (returned by
7840 'gtk-config --libs' command) is in LD_LIBRARY_PATH or
7841 equivalent variable and GTK+ is version 1.2.3 or above.
7842 " 1>&2; exit 1; }
7843 fi
7844
10f2d63a 7845 TOOLKIT_INCLUDE="$GTK_CFLAGS"
2224580a
VZ
7846
7847
7848 GUI_TK_LIBRARY="$GTK_LIBS"
7849
10f2d63a
VZ
7850 TOOLKIT=GTK
7851
dad6c0ea
VZ
7852 AFMINSTALL=afminstall
7853
10f2d63a
VZ
7854 GUIOBJS="\$(GTK_GUIOBJS)"
7855 GUIHEADERS="\$(GTK_HEADERS)"
7856 COMMONOBJS="\$(GTK_COMMONOBJS)"
7857 GENERICOBJS="\$(GTK_GENERICOBJS)"
7858 GUIDEPS="\$(GTK_GUIDEPS)"
7859 COMMONDEPS="\$(GTK_COMMONDEPS)"
7860 GENERICDEPS="\$(GTK_GENERICDEPS)"
7861 UNIXOBJS="\$(UNIX_OBJS)"
d9d8273d 7862 UNIXDEPS="\$(UNIX_DEPS)"
10f2d63a 7863 GUIDIST=GTK_DIST
7ec2881a 7864
2224580a 7865 echo $ac_n "checking for gdk_im_open in -lgdk""... $ac_c" 1>&6
1db8dc4a 7866echo "configure:7867: checking for gdk_im_open in -lgdk" >&5
7ec2881a
RR
7867ac_lib_var=`echo gdk'_'gdk_im_open | sed 'y%./+-%__p_%'`
7868if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7869 echo $ac_n "(cached) $ac_c" 1>&6
7870else
7871 ac_save_LIBS="$LIBS"
7872LIBS="-lgdk $LIBS"
7873cat > conftest.$ac_ext <<EOF
1db8dc4a 7874#line 7875 "configure"
7ec2881a
RR
7875#include "confdefs.h"
7876/* Override any gcc2 internal prototype to avoid an error. */
7877/* We use char because int might match the return type of a gcc2
7878 builtin and then its argument prototype would still apply. */
7879char gdk_im_open();
7880
7881int main() {
7882gdk_im_open()
7883; return 0; }
7884EOF
1db8dc4a 7885if { (eval echo configure:7886: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7ec2881a
RR
7886 rm -rf conftest*
7887 eval "ac_cv_lib_$ac_lib_var=yes"
7888else
7889 echo "configure: failed program was:" >&5
7890 cat conftest.$ac_ext >&5
7891 rm -rf conftest*
7892 eval "ac_cv_lib_$ac_lib_var=no"
7893fi
7894rm -f conftest*
7895LIBS="$ac_save_LIBS"
7896
7897fi
7898if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7899 echo "$ac_t""yes" 1>&6
7900 cat >> confdefs.h <<\EOF
7901#define HAVE_XIM 1
7902EOF
7903
7904else
7905 echo "$ac_t""no" 1>&6
7906fi
7907
10f2d63a
VZ
7908fi
7909
7910if test "$wxUSE_WINE" = 1; then
7911 echo $ac_n "checking for WINE includes""... $ac_c" 1>&6
1db8dc4a 7912echo "configure:7913: checking for WINE includes" >&5
10f2d63a
VZ
7913
7914ac_find_includes=
7915for ac_dir in $SEARCH_INCLUDE;
7916 do
7917 if test -f "$ac_dir/windows.h"; then
7918 ac_find_includes=$ac_dir
7919 break
7920 fi
7921 done
7922
7923 if test "$ac_find_includes" != "" ; then
7924 echo "$ac_t""found $ac_find_includes" 1>&6
7925 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE -I$ac_find_includes"
7926 else
7927 echo "$ac_t""no" 1>&6
7928 { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; }
7929 fi
7930
7931 XPM_LINK=""
7932 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
1db8dc4a 7933echo "configure:7934: checking for Xpm library" >&5
10f2d63a
VZ
7934
7935ac_find_libraries=
7936for ac_dir in $SEARCH_LIB;
7937 do
7938 for ac_extension in a so sl; do
7939 if test -f "$ac_dir/libXpm.$ac_extension"; then
7940 ac_find_libraries=$ac_dir
7941 break 2
7942 fi
7943 done
7944 done
7945
7946 if test "$ac_find_libraries" != "" ; then
7947 GUI_TK_LIBRARY="-L$ac_find_libraries"
7948 XPM_LINK="-lXpm"
7949 cat >> confdefs.h <<\EOF
7950#define wxHAVE_LIB_XPM 1
7951EOF
7952
7953 echo "$ac_t""found at $ac_find_libraries" 1>&6
7954 else
7955 echo "$ac_t""no" 1>&6
7956 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
7957 fi
7958
7959 MESA_LINK=""
7960 echo $ac_n "checking for Mesa library""... $ac_c" 1>&6
1db8dc4a 7961echo "configure:7962: checking for Mesa library" >&5
10f2d63a
VZ
7962
7963ac_find_libraries=
7964for ac_dir in $SEARCH_LIB;
7965 do
7966 for ac_extension in a so sl; do
7967 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
7968 ac_find_libraries=$ac_dir
7969 break 2
7970 fi
7971 done
7972 done
7973
7974 if test "$ac_find_libraries" != "" ; then
7975 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -L$ac_find_libraries"
7976 MESA_LINK="-lMesaGL"
7977 echo "$ac_t""found at $ac_find_libraries" 1>&6
7978 else
7979 { echo "configure: error: no" 1>&2; exit 1; }
7980 fi
7981
8916026b 7982 GUI_TK_LINK="-lwine $MESA_LINK $XPM_LINK -lXxf86dga -lXxf86vm -lSM -lICE -lXext -lXmu -lX11 -lncurses"
10f2d63a
VZ
7983 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $GUI_TK_LINK"
7984 WXWINE=1
7985 TOOLKIT=MSW
7986
7987 GUIHEADERS="\$(MSW_HEADERS)"
7988 GUIOBJS="\$(MSW_GUIOBJS)"
7989 COMMONOBJS="\$(MSW_COMMONOBJS)"
7990 GENERICOBJS="\$(MSW_GENERICOBJS)"
7991 GUIDEPS="\$(MSW_GUIDEPS)"
7992 COMMONDEPS="\$(MSW_COMMONDEPS)"
7993 GENERICDEPS="\$(MSW_GENERICDEPS)"
7994 UNIXOBJS="\$(UNIX_OBJS)"
d9d8273d 7995 UNIXDEPS="\$(UNIX_DEPS)"
10f2d63a
VZ
7996 GUIDIST=MSW_DIST
7997fi
7998
37d403aa
JS
7999
8000# If we find X, set shell vars x_includes and x_libraries to the
ab9b9eab
VZ
8001# paths, otherwise set no_x=yes.
8002# Uses ac_ vars as temps to allow command line to override cache and checks.
8003# --without-x overrides everything else, but does not touch the cache.
8004echo $ac_n "checking for X""... $ac_c" 1>&6
1db8dc4a 8005echo "configure:8006: checking for X" >&5
ab9b9eab
VZ
8006
8007# Check whether --with-x or --without-x was given.
8008if test "${with_x+set}" = set; then
8009 withval="$with_x"
8010 :
8011fi
ba337fe7 8012
ab9b9eab
VZ
8013# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
8014if test "x$with_x" = xno; then
8015 # The user explicitly disabled X.
8016 have_x=disabled
8017else
8018 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
8019 # Both variables are already set.
8020 have_x=yes
8021 else
8022if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
8023 echo $ac_n "(cached) $ac_c" 1>&6
8024else
8025 # One or both of the vars are not set, and there is no cached value.
8026ac_x_includes=NO ac_x_libraries=NO
8027rm -fr conftestdir
8028if mkdir conftestdir; then
8029 cd conftestdir
8030 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
8031 cat > Imakefile <<'EOF'
8032acfindx:
8033 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
8034EOF
8035 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
8036 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8037 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
8038 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
10f2d63a 8039 for ac_extension in a so sl; do
ab9b9eab
VZ
8040 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
8041 test -f $ac_im_libdir/libX11.$ac_extension; then
8042 ac_im_usrlibdir=$ac_im_libdir; break
10f2d63a
VZ
8043 fi
8044 done
ab9b9eab
VZ
8045 # Screen out bogus values from the imake configuration. They are
8046 # bogus both because they are the default anyway, and because
8047 # using them would break gcc on systems where it needs fixed includes.
8048 case "$ac_im_incroot" in
8049 /usr/include) ;;
8050 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
8051 esac
8052 case "$ac_im_usrlibdir" in
8053 /usr/lib | /lib) ;;
8054 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
8055 esac
ba337fe7 8056 fi
ab9b9eab
VZ
8057 cd ..
8058 rm -fr conftestdir
8059fi
10f2d63a 8060
ab9b9eab
VZ
8061if test "$ac_x_includes" = NO; then
8062 # Guess where to find include files, by looking for this one X11 .h file.
8063 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
ba337fe7 8064
ab9b9eab
VZ
8065 # First, try using that file with no special directory specified.
8066cat > conftest.$ac_ext <<EOF
1db8dc4a 8067#line 8068 "configure"
ab9b9eab
VZ
8068#include "confdefs.h"
8069#include <$x_direct_test_include>
8070EOF
8071ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1db8dc4a 8072{ (eval echo configure:8073: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ab9b9eab
VZ
8073ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8074if test -z "$ac_err"; then
8075 rm -rf conftest*
8076 # We can compile using X headers with no special include directory.
8077ac_x_includes=
8078else
8079 echo "$ac_err" >&5
8080 echo "configure: failed program was:" >&5
8081 cat conftest.$ac_ext >&5
8082 rm -rf conftest*
8083 # Look for the header file in a standard set of common directories.
8084# Check X11 before X11Rn because it is often a symlink to the current release.
8085 for ac_dir in \
8086 /usr/X11/include \
8087 /usr/X11R6/include \
8088 /usr/X11R5/include \
8089 /usr/X11R4/include \
8090 \
8091 /usr/include/X11 \
8092 /usr/include/X11R6 \
8093 /usr/include/X11R5 \
8094 /usr/include/X11R4 \
8095 \
8096 /usr/local/X11/include \
8097 /usr/local/X11R6/include \
8098 /usr/local/X11R5/include \
8099 /usr/local/X11R4/include \
8100 \
8101 /usr/local/include/X11 \
8102 /usr/local/include/X11R6 \
8103 /usr/local/include/X11R5 \
8104 /usr/local/include/X11R4 \
8105 \
8106 /usr/X386/include \
8107 /usr/x386/include \
8108 /usr/XFree86/include/X11 \
8109 \
8110 /usr/include \
8111 /usr/local/include \
8112 /usr/unsupported/include \
8113 /usr/athena/include \
8114 /usr/local/x11r5/include \
8115 /usr/lpp/Xamples/include \
8116 \
8117 /usr/openwin/include \
8118 /usr/openwin/share/include \
8119 ; \
10f2d63a 8120 do
ab9b9eab
VZ
8121 if test -r "$ac_dir/$x_direct_test_include"; then
8122 ac_x_includes=$ac_dir
10f2d63a
VZ
8123 break
8124 fi
8125 done
ab9b9eab
VZ
8126fi
8127rm -f conftest*
8128fi # $ac_x_includes = NO
10f2d63a 8129
ab9b9eab
VZ
8130if test "$ac_x_libraries" = NO; then
8131 # Check for the libraries.
10f2d63a 8132
ab9b9eab
VZ
8133 test -z "$x_direct_test_library" && x_direct_test_library=Xt
8134 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
10f2d63a 8135
ab9b9eab
VZ
8136 # See if we find them without any special options.
8137 # Don't add to $LIBS permanently.
8138 ac_save_LIBS="$LIBS"
8139 LIBS="-l$x_direct_test_library $LIBS"
8140cat > conftest.$ac_ext <<EOF
1db8dc4a 8141#line 8142 "configure"
ab9b9eab 8142#include "confdefs.h"
10f2d63a 8143
ab9b9eab
VZ
8144int main() {
8145${x_direct_test_function}()
8146; return 0; }
8147EOF
1db8dc4a 8148if { (eval echo configure:8149: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
8149 rm -rf conftest*
8150 LIBS="$ac_save_LIBS"
8151# We can link X programs with no special library path.
8152ac_x_libraries=
8153else
8154 echo "configure: failed program was:" >&5
8155 cat conftest.$ac_ext >&5
8156 rm -rf conftest*
8157 LIBS="$ac_save_LIBS"
8158# First see if replacing the include by lib works.
8159# Check X11 before X11Rn because it is often a symlink to the current release.
8160for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
8161 /usr/X11/lib \
8162 /usr/X11R6/lib \
8163 /usr/X11R5/lib \
8164 /usr/X11R4/lib \
8165 \
8166 /usr/lib/X11 \
8167 /usr/lib/X11R6 \
8168 /usr/lib/X11R5 \
8169 /usr/lib/X11R4 \
8170 \
8171 /usr/local/X11/lib \
8172 /usr/local/X11R6/lib \
8173 /usr/local/X11R5/lib \
8174 /usr/local/X11R4/lib \
8175 \
8176 /usr/local/lib/X11 \
8177 /usr/local/lib/X11R6 \
8178 /usr/local/lib/X11R5 \
8179 /usr/local/lib/X11R4 \
8180 \
8181 /usr/X386/lib \
8182 /usr/x386/lib \
8183 /usr/XFree86/lib/X11 \
8184 \
8185 /usr/lib \
8186 /usr/local/lib \
8187 /usr/unsupported/lib \
8188 /usr/athena/lib \
8189 /usr/local/x11r5/lib \
8190 /usr/lpp/Xamples/lib \
8191 /lib/usr/lib/X11 \
8192 \
8193 /usr/openwin/lib \
8194 /usr/openwin/share/lib \
8195 ; \
8196do
8197 for ac_extension in a so sl; do
8198 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
8199 ac_x_libraries=$ac_dir
8200 break 2
10f2d63a 8201 fi
10f2d63a 8202 done
ab9b9eab
VZ
8203done
8204fi
8205rm -f conftest*
8206fi # $ac_x_libraries = NO
10f2d63a 8207
ab9b9eab
VZ
8208if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
8209 # Didn't find X anywhere. Cache the known absence of X.
8210 ac_cv_have_x="have_x=no"
8211else
8212 # Record where we found X for the cache.
8213 ac_cv_have_x="have_x=yes \
8214 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
8215fi
8216fi
10f2d63a 8217 fi
ab9b9eab
VZ
8218 eval "$ac_cv_have_x"
8219fi # $with_x != no
10f2d63a 8220
ab9b9eab
VZ
8221if test "$have_x" != yes; then
8222 echo "$ac_t""$have_x" 1>&6
8223 no_x=yes
8224else
8225 # If each of the values was on the command line, it overrides each guess.
8226 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
8227 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
8228 # Update the cache value to reflect the command line values.
8229 ac_cv_have_x="have_x=yes \
8230 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
8231 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
8232fi
10f2d63a 8233
ab9b9eab
VZ
8234if test "$no_x" = yes; then
8235 # Not all programs may use this symbol, but it does not hurt to define it.
8236 cat >> confdefs.h <<\EOF
8237#define X_DISPLAY_MISSING 1
8238EOF
10f2d63a 8239
ab9b9eab
VZ
8240 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
8241else
8242 if test -n "$x_includes"; then
8243 X_CFLAGS="$X_CFLAGS -I$x_includes"
10f2d63a
VZ
8244 fi
8245
ab9b9eab
VZ
8246 # It would also be nice to do this for all -L options, not just this one.
8247 if test -n "$x_libraries"; then
8248 X_LIBS="$X_LIBS -L$x_libraries"
8249 # For Solaris; some versions of Sun CC require a space after -R and
8250 # others require no space. Words are not sufficient . . . .
8251 case "`(uname -sr) 2>/dev/null`" in
8252 "SunOS 5"*)
8253 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
1db8dc4a 8254echo "configure:8255: checking whether -R must be followed by a space" >&5
ab9b9eab
VZ
8255 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
8256 cat > conftest.$ac_ext <<EOF
1db8dc4a 8257#line 8258 "configure"
ab9b9eab 8258#include "confdefs.h"
10f2d63a 8259
ab9b9eab 8260int main() {
788deba1 8261
ab9b9eab
VZ
8262; return 0; }
8263EOF
1db8dc4a 8264if { (eval echo configure:8265: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
8265 rm -rf conftest*
8266 ac_R_nospace=yes
8267else
8268 echo "configure: failed program was:" >&5
8269 cat conftest.$ac_ext >&5
8270 rm -rf conftest*
8271 ac_R_nospace=no
8272fi
8273rm -f conftest*
8274 if test $ac_R_nospace = yes; then
8275 echo "$ac_t""no" 1>&6
8276 X_LIBS="$X_LIBS -R$x_libraries"
8277 else
8278 LIBS="$ac_xsave_LIBS -R $x_libraries"
8279 cat > conftest.$ac_ext <<EOF
1db8dc4a 8280#line 8281 "configure"
ab9b9eab 8281#include "confdefs.h"
788deba1 8282
ab9b9eab
VZ
8283int main() {
8284
8285; return 0; }
8286EOF
1db8dc4a 8287if { (eval echo configure:8288: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
8288 rm -rf conftest*
8289 ac_R_space=yes
8290else
8291 echo "configure: failed program was:" >&5
8292 cat conftest.$ac_ext >&5
8293 rm -rf conftest*
8294 ac_R_space=no
8295fi
8296rm -f conftest*
8297 if test $ac_R_space = yes; then
8298 echo "$ac_t""yes" 1>&6
8299 X_LIBS="$X_LIBS -R $x_libraries"
8300 else
8301 echo "$ac_t""neither works" 1>&6
8302 fi
8303 fi
8304 LIBS="$ac_xsave_LIBS"
8305 esac
8306 fi
8307
8308 # Check for system-dependent libraries X programs must link with.
8309 # Do this before checking for the system-independent R6 libraries
8310 # (-lICE), since we may need -lsocket or whatever for X linking.
8311
8312 if test "$ISC" = yes; then
8313 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
8314 else
8315 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
8316 # libraries were built with DECnet support. And karl@cs.umb.edu says
8317 # the Alpha needs dnet_stub (dnet does not exist).
8318 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
1db8dc4a 8319echo "configure:8320: checking for dnet_ntoa in -ldnet" >&5
ab9b9eab
VZ
8320ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
8321if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8322 echo $ac_n "(cached) $ac_c" 1>&6
8323else
8324 ac_save_LIBS="$LIBS"
8325LIBS="-ldnet $LIBS"
8326cat > conftest.$ac_ext <<EOF
1db8dc4a 8327#line 8328 "configure"
ab9b9eab
VZ
8328#include "confdefs.h"
8329/* Override any gcc2 internal prototype to avoid an error. */
8330/* We use char because int might match the return type of a gcc2
8331 builtin and then its argument prototype would still apply. */
8332char dnet_ntoa();
8333
8334int main() {
8335dnet_ntoa()
8336; return 0; }
8337EOF
1db8dc4a 8338if { (eval echo configure:8339: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
8339 rm -rf conftest*
8340 eval "ac_cv_lib_$ac_lib_var=yes"
8341else
8342 echo "configure: failed program was:" >&5
8343 cat conftest.$ac_ext >&5
8344 rm -rf conftest*
8345 eval "ac_cv_lib_$ac_lib_var=no"
8346fi
8347rm -f conftest*
8348LIBS="$ac_save_LIBS"
8349
8350fi
8351if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8352 echo "$ac_t""yes" 1>&6
8353 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
8354else
8355 echo "$ac_t""no" 1>&6
8356fi
8357
8358 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
8359 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
1db8dc4a 8360echo "configure:8361: checking for dnet_ntoa in -ldnet_stub" >&5
ab9b9eab
VZ
8361ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
8362if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8363 echo $ac_n "(cached) $ac_c" 1>&6
8364else
8365 ac_save_LIBS="$LIBS"
8366LIBS="-ldnet_stub $LIBS"
8367cat > conftest.$ac_ext <<EOF
1db8dc4a 8368#line 8369 "configure"
ab9b9eab
VZ
8369#include "confdefs.h"
8370/* Override any gcc2 internal prototype to avoid an error. */
8371/* We use char because int might match the return type of a gcc2
8372 builtin and then its argument prototype would still apply. */
8373char dnet_ntoa();
8374
8375int main() {
8376dnet_ntoa()
8377; return 0; }
8378EOF
1db8dc4a 8379if { (eval echo configure:8380: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
8380 rm -rf conftest*
8381 eval "ac_cv_lib_$ac_lib_var=yes"
8382else
8383 echo "configure: failed program was:" >&5
8384 cat conftest.$ac_ext >&5
8385 rm -rf conftest*
8386 eval "ac_cv_lib_$ac_lib_var=no"
8387fi
8388rm -f conftest*
8389LIBS="$ac_save_LIBS"
8390
8391fi
8392if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8393 echo "$ac_t""yes" 1>&6
8394 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
8395else
8396 echo "$ac_t""no" 1>&6
8397fi
8398
8399 fi
8400
8401 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
8402 # to get the SysV transport functions.
8403 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
8404 # needs -lnsl.
8405 # The nsl library prevents programs from opening the X display
8406 # on Irix 5.2, according to dickey@clark.net.
8407 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
1db8dc4a 8408echo "configure:8409: checking for gethostbyname" >&5
ab9b9eab
VZ
8409if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
8410 echo $ac_n "(cached) $ac_c" 1>&6
8411else
8412 cat > conftest.$ac_ext <<EOF
1db8dc4a 8413#line 8414 "configure"
ab9b9eab
VZ
8414#include "confdefs.h"
8415/* System header to define __stub macros and hopefully few prototypes,
8416 which can conflict with char gethostbyname(); below. */
8417#include <assert.h>
8418/* Override any gcc2 internal prototype to avoid an error. */
8419/* We use char because int might match the return type of a gcc2
8420 builtin and then its argument prototype would still apply. */
8421char gethostbyname();
8422
8423int main() {
8424
8425/* The GNU C library defines this for functions which it implements
8426 to always fail with ENOSYS. Some functions are actually named
8427 something starting with __ and the normal name is an alias. */
8428#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
8429choke me
8430#else
e8482f24 8431gethostbyname();
ab9b9eab
VZ
8432#endif
8433
8434; return 0; }
8435EOF
1db8dc4a 8436if { (eval echo configure:8437: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
8437 rm -rf conftest*
8438 eval "ac_cv_func_gethostbyname=yes"
8439else
8440 echo "configure: failed program was:" >&5
8441 cat conftest.$ac_ext >&5
8442 rm -rf conftest*
8443 eval "ac_cv_func_gethostbyname=no"
8444fi
8445rm -f conftest*
8446fi
8447
8448if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
8449 echo "$ac_t""yes" 1>&6
8450 :
8451else
8452 echo "$ac_t""no" 1>&6
8453fi
8454
8455 if test $ac_cv_func_gethostbyname = no; then
8456 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
1db8dc4a 8457echo "configure:8458: checking for gethostbyname in -lnsl" >&5
ab9b9eab
VZ
8458ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
8459if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8460 echo $ac_n "(cached) $ac_c" 1>&6
8461else
8462 ac_save_LIBS="$LIBS"
8463LIBS="-lnsl $LIBS"
8464cat > conftest.$ac_ext <<EOF
1db8dc4a 8465#line 8466 "configure"
ab9b9eab
VZ
8466#include "confdefs.h"
8467/* Override any gcc2 internal prototype to avoid an error. */
8468/* We use char because int might match the return type of a gcc2
8469 builtin and then its argument prototype would still apply. */
8470char gethostbyname();
8471
8472int main() {
8473gethostbyname()
8474; return 0; }
8475EOF
1db8dc4a 8476if { (eval echo configure:8477: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
8477 rm -rf conftest*
8478 eval "ac_cv_lib_$ac_lib_var=yes"
8479else
8480 echo "configure: failed program was:" >&5
8481 cat conftest.$ac_ext >&5
8482 rm -rf conftest*
8483 eval "ac_cv_lib_$ac_lib_var=no"
8484fi
8485rm -f conftest*
8486LIBS="$ac_save_LIBS"
8487
8488fi
8489if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8490 echo "$ac_t""yes" 1>&6
8491 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
8492else
8493 echo "$ac_t""no" 1>&6
8494fi
8495
8496 fi
8497
8498 # lieder@skyler.mavd.honeywell.com says without -lsocket,
8499 # socket/setsockopt and other routines are undefined under SCO ODT
8500 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
8501 # on later versions), says simon@lia.di.epfl.ch: it contains
8502 # gethostby* variants that don't use the nameserver (or something).
8503 # -lsocket must be given before -lnsl if both are needed.
8504 # We assume that if connect needs -lnsl, so does gethostbyname.
8505 echo $ac_n "checking for connect""... $ac_c" 1>&6
1db8dc4a 8506echo "configure:8507: checking for connect" >&5
ab9b9eab
VZ
8507if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
8508 echo $ac_n "(cached) $ac_c" 1>&6
8509else
8510 cat > conftest.$ac_ext <<EOF
1db8dc4a 8511#line 8512 "configure"
ab9b9eab
VZ
8512#include "confdefs.h"
8513/* System header to define __stub macros and hopefully few prototypes,
8514 which can conflict with char connect(); below. */
8515#include <assert.h>
8516/* Override any gcc2 internal prototype to avoid an error. */
8517/* We use char because int might match the return type of a gcc2
8518 builtin and then its argument prototype would still apply. */
8519char connect();
8520
8521int main() {
8522
8523/* The GNU C library defines this for functions which it implements
8524 to always fail with ENOSYS. Some functions are actually named
8525 something starting with __ and the normal name is an alias. */
8526#if defined (__stub_connect) || defined (__stub___connect)
8527choke me
8528#else
e8482f24 8529connect();
ab9b9eab
VZ
8530#endif
8531
8532; return 0; }
8533EOF
1db8dc4a 8534if { (eval echo configure:8535: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
8535 rm -rf conftest*
8536 eval "ac_cv_func_connect=yes"
8537else
8538 echo "configure: failed program was:" >&5
8539 cat conftest.$ac_ext >&5
8540 rm -rf conftest*
8541 eval "ac_cv_func_connect=no"
8542fi
8543rm -f conftest*
8544fi
8545
8546if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
8547 echo "$ac_t""yes" 1>&6
8548 :
8549else
8550 echo "$ac_t""no" 1>&6
8551fi
8552
8553 if test $ac_cv_func_connect = no; then
8554 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
1db8dc4a 8555echo "configure:8556: checking for connect in -lsocket" >&5
ab9b9eab
VZ
8556ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
8557if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8558 echo $ac_n "(cached) $ac_c" 1>&6
8559else
8560 ac_save_LIBS="$LIBS"
8561LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
8562cat > conftest.$ac_ext <<EOF
1db8dc4a 8563#line 8564 "configure"
ab9b9eab
VZ
8564#include "confdefs.h"
8565/* Override any gcc2 internal prototype to avoid an error. */
8566/* We use char because int might match the return type of a gcc2
8567 builtin and then its argument prototype would still apply. */
8568char connect();
8569
8570int main() {
8571connect()
8572; return 0; }
8573EOF
1db8dc4a 8574if { (eval echo configure:8575: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
8575 rm -rf conftest*
8576 eval "ac_cv_lib_$ac_lib_var=yes"
8577else
8578 echo "configure: failed program was:" >&5
8579 cat conftest.$ac_ext >&5
8580 rm -rf conftest*
8581 eval "ac_cv_lib_$ac_lib_var=no"
8582fi
8583rm -f conftest*
8584LIBS="$ac_save_LIBS"
8585
8586fi
8587if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8588 echo "$ac_t""yes" 1>&6
8589 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
8590else
8591 echo "$ac_t""no" 1>&6
8592fi
8593
8594 fi
8595
8596 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
8597 echo $ac_n "checking for remove""... $ac_c" 1>&6
1db8dc4a 8598echo "configure:8599: checking for remove" >&5
ab9b9eab
VZ
8599if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
8600 echo $ac_n "(cached) $ac_c" 1>&6
8601else
8602 cat > conftest.$ac_ext <<EOF
1db8dc4a 8603#line 8604 "configure"
ab9b9eab
VZ
8604#include "confdefs.h"
8605/* System header to define __stub macros and hopefully few prototypes,
8606 which can conflict with char remove(); below. */
8607#include <assert.h>
8608/* Override any gcc2 internal prototype to avoid an error. */
8609/* We use char because int might match the return type of a gcc2
8610 builtin and then its argument prototype would still apply. */
8611char remove();
8612
8613int main() {
8614
8615/* The GNU C library defines this for functions which it implements
8616 to always fail with ENOSYS. Some functions are actually named
8617 something starting with __ and the normal name is an alias. */
8618#if defined (__stub_remove) || defined (__stub___remove)
8619choke me
8620#else
e8482f24 8621remove();
ab9b9eab
VZ
8622#endif
8623
8624; return 0; }
8625EOF
1db8dc4a 8626if { (eval echo configure:8627: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
8627 rm -rf conftest*
8628 eval "ac_cv_func_remove=yes"
8629else
8630 echo "configure: failed program was:" >&5
8631 cat conftest.$ac_ext >&5
8632 rm -rf conftest*
8633 eval "ac_cv_func_remove=no"
8634fi
8635rm -f conftest*
8636fi
8637
8638if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
8639 echo "$ac_t""yes" 1>&6
8640 :
8641else
8642 echo "$ac_t""no" 1>&6
8643fi
8644
8645 if test $ac_cv_func_remove = no; then
8646 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
1db8dc4a 8647echo "configure:8648: checking for remove in -lposix" >&5
ab9b9eab
VZ
8648ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
8649if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8650 echo $ac_n "(cached) $ac_c" 1>&6
8651else
8652 ac_save_LIBS="$LIBS"
8653LIBS="-lposix $LIBS"
8654cat > conftest.$ac_ext <<EOF
1db8dc4a 8655#line 8656 "configure"
ab9b9eab
VZ
8656#include "confdefs.h"
8657/* Override any gcc2 internal prototype to avoid an error. */
8658/* We use char because int might match the return type of a gcc2
8659 builtin and then its argument prototype would still apply. */
8660char remove();
8661
8662int main() {
8663remove()
8664; return 0; }
8665EOF
1db8dc4a 8666if { (eval echo configure:8667: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
8667 rm -rf conftest*
8668 eval "ac_cv_lib_$ac_lib_var=yes"
8669else
8670 echo "configure: failed program was:" >&5
8671 cat conftest.$ac_ext >&5
8672 rm -rf conftest*
8673 eval "ac_cv_lib_$ac_lib_var=no"
8674fi
8675rm -f conftest*
8676LIBS="$ac_save_LIBS"
8677
8678fi
8679if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8680 echo "$ac_t""yes" 1>&6
8681 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
8682else
8683 echo "$ac_t""no" 1>&6
8684fi
8685
8686 fi
8687
8688 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
8689 echo $ac_n "checking for shmat""... $ac_c" 1>&6
1db8dc4a 8690echo "configure:8691: checking for shmat" >&5
ab9b9eab
VZ
8691if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
8692 echo $ac_n "(cached) $ac_c" 1>&6
8693else
8694 cat > conftest.$ac_ext <<EOF
1db8dc4a 8695#line 8696 "configure"
ab9b9eab
VZ
8696#include "confdefs.h"
8697/* System header to define __stub macros and hopefully few prototypes,
8698 which can conflict with char shmat(); below. */
8699#include <assert.h>
8700/* Override any gcc2 internal prototype to avoid an error. */
8701/* We use char because int might match the return type of a gcc2
8702 builtin and then its argument prototype would still apply. */
8703char shmat();
8704
8705int main() {
8706
8707/* The GNU C library defines this for functions which it implements
8708 to always fail with ENOSYS. Some functions are actually named
8709 something starting with __ and the normal name is an alias. */
8710#if defined (__stub_shmat) || defined (__stub___shmat)
8711choke me
8712#else
e8482f24 8713shmat();
ab9b9eab
VZ
8714#endif
8715
8716; return 0; }
8717EOF
1db8dc4a 8718if { (eval echo configure:8719: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
8719 rm -rf conftest*
8720 eval "ac_cv_func_shmat=yes"
8721else
8722 echo "configure: failed program was:" >&5
8723 cat conftest.$ac_ext >&5
8724 rm -rf conftest*
8725 eval "ac_cv_func_shmat=no"
8726fi
8727rm -f conftest*
8728fi
8729
8730if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
8731 echo "$ac_t""yes" 1>&6
8732 :
8733else
8734 echo "$ac_t""no" 1>&6
8735fi
8736
8737 if test $ac_cv_func_shmat = no; then
8738 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
1db8dc4a 8739echo "configure:8740: checking for shmat in -lipc" >&5
ab9b9eab
VZ
8740ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
8741if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8742 echo $ac_n "(cached) $ac_c" 1>&6
8743else
8744 ac_save_LIBS="$LIBS"
8745LIBS="-lipc $LIBS"
8746cat > conftest.$ac_ext <<EOF
1db8dc4a 8747#line 8748 "configure"
ab9b9eab
VZ
8748#include "confdefs.h"
8749/* Override any gcc2 internal prototype to avoid an error. */
8750/* We use char because int might match the return type of a gcc2
8751 builtin and then its argument prototype would still apply. */
8752char shmat();
8753
8754int main() {
8755shmat()
8756; return 0; }
8757EOF
1db8dc4a 8758if { (eval echo configure:8759: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
8759 rm -rf conftest*
8760 eval "ac_cv_lib_$ac_lib_var=yes"
8761else
8762 echo "configure: failed program was:" >&5
8763 cat conftest.$ac_ext >&5
8764 rm -rf conftest*
8765 eval "ac_cv_lib_$ac_lib_var=no"
8766fi
8767rm -f conftest*
8768LIBS="$ac_save_LIBS"
8769
8770fi
8771if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8772 echo "$ac_t""yes" 1>&6
8773 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
8774else
8775 echo "$ac_t""no" 1>&6
8776fi
8777
8778 fi
8779 fi
8780
8781 # Check for libraries that X11R6 Xt/Xaw programs need.
8782 ac_save_LDFLAGS="$LDFLAGS"
8783 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
8784 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
8785 # check for ICE first), but we must link in the order -lSM -lICE or
8786 # we get undefined symbols. So assume we have SM if we have ICE.
8787 # These have to be linked with before -lX11, unlike the other
8788 # libraries we check for below, so use a different variable.
8789 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
8790 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
1db8dc4a 8791echo "configure:8792: checking for IceConnectionNumber in -lICE" >&5
ab9b9eab
VZ
8792ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
8793if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8794 echo $ac_n "(cached) $ac_c" 1>&6
8795else
8796 ac_save_LIBS="$LIBS"
8797LIBS="-lICE $X_EXTRA_LIBS $LIBS"
8798cat > conftest.$ac_ext <<EOF
1db8dc4a 8799#line 8800 "configure"
ab9b9eab
VZ
8800#include "confdefs.h"
8801/* Override any gcc2 internal prototype to avoid an error. */
8802/* We use char because int might match the return type of a gcc2
8803 builtin and then its argument prototype would still apply. */
8804char IceConnectionNumber();
8805
8806int main() {
8807IceConnectionNumber()
8808; return 0; }
8809EOF
1db8dc4a 8810if { (eval echo configure:8811: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
8811 rm -rf conftest*
8812 eval "ac_cv_lib_$ac_lib_var=yes"
8813else
8814 echo "configure: failed program was:" >&5
8815 cat conftest.$ac_ext >&5
8816 rm -rf conftest*
8817 eval "ac_cv_lib_$ac_lib_var=no"
8818fi
8819rm -f conftest*
8820LIBS="$ac_save_LIBS"
8821
8822fi
8823if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8824 echo "$ac_t""yes" 1>&6
8825 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
8826else
8827 echo "$ac_t""no" 1>&6
8828fi
8829
8830 LDFLAGS="$ac_save_LDFLAGS"
8831
8832fi
8833
37d403aa
JS
8834CPPFLAGS="$CPPFLAGS $X_CFLAGS"
8835LDFLAGS="$LDFLAGS $X_LIBS"
ab9b9eab 8836
37d403aa 8837if test "$wxUSE_MOTIF" = 1; then
ab9b9eab 8838 if test "$no_x" = "yes"; then
37d403aa 8839 { echo "configure: error: X11 not found" 1>&2; exit 1; }
ab9b9eab
VZ
8840 fi
8841
8842 GUI_TK_LIBRARY="$X_LIBS"
8843 TOOLKIT_INCLUDE="$X_CFLAGS"
8844
dad6c0ea
VZ
8845 AFMINSTALL=afminstall
8846
ab9b9eab 8847
cd6d6d5b
VZ
8848 COMPILED_X_PROGRAM=0
8849
ab9b9eab 8850 echo $ac_n "checking for Motif/Lesstif headers""... $ac_c" 1>&6
1db8dc4a 8851echo "configure:8852: checking for Motif/Lesstif headers" >&5
ab9b9eab
VZ
8852
8853ac_find_includes=
8854for ac_dir in $SEARCH_INCLUDE;
8855 do
8856 if test -f "$ac_dir/Xm/Xm.h"; then
8857 ac_find_includes=$ac_dir
8858 break
8859 fi
8860 done
8861
8862 if test "$ac_find_includes" != "" ; then
8863 echo "$ac_t""found $ac_find_includes" 1>&6
8864 else
cd6d6d5b 8865 cat > conftest.$ac_ext <<EOF
1db8dc4a 8866#line 8867 "configure"
cd6d6d5b
VZ
8867#include "confdefs.h"
8868
8869 #include <Xm/Xm.h>
8870
8871int main() {
8872
8873 int version;
8874
8875 version = xmUseVersion;
8876
8877; return 0; }
8878EOF
1db8dc4a 8879if { (eval echo configure:8880: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
cd6d6d5b
VZ
8880 rm -rf conftest*
8881
8882 echo "$ac_t""found in default search path" 1>&6
8883 COMPILED_X_PROGRAM=1
8884
8885else
8886 echo "configure: failed program was:" >&5
8887 cat conftest.$ac_ext >&5
8888 rm -rf conftest*
8889
8890 echo "$ac_t""no" 1>&6
8891 { echo "configure: error: please set CFLAGS to contain the location of Xm/Xm.h" 1>&2; exit 1; }
8892
8893
8894fi
8895rm -f conftest*
ab9b9eab
VZ
8896 fi
8897
cd6d6d5b
VZ
8898 if test "$COMPILED_X_PROGRAM" = 0; then
8899 echo $ac_n "checking for Motif/Lesstif library""... $ac_c" 1>&6
1db8dc4a 8900echo "configure:8901: checking for Motif/Lesstif library" >&5
cd6d6d5b 8901
ab9b9eab
VZ
8902ac_find_libraries=
8903for ac_dir in $SEARCH_LIB;
8904 do
8905 for ac_extension in a so sl; do
8906 if test -f "$ac_dir/libXm.$ac_extension"; then
8907 ac_find_libraries=$ac_dir
8908 break 2
8909 fi
8910 done
8911 done
8912
cd6d6d5b
VZ
8913 if test "$ac_find_libraries" != "" ; then
8914
ab9b9eab
VZ
8915 ac_path_to_include=$ac_find_includes
8916 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
8917 result=$?
8918 if test $result = 0; then
8919 ac_path_to_include=""
8920 else
8921 ac_path_to_include="-I$ac_find_includes"
8922 fi
8923
cd6d6d5b 8924
ab9b9eab
VZ
8925 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
8926 result=$?
8927 if test $result = 0; then
8928 ac_path_to_link=""
8929 else
8930 ac_path_to_link="-L$ac_find_libraries"
8931 fi
8932
8933
cd6d6d5b
VZ
8934 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $ac_path_to_link"
8935 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE $ac_path_to_include"
8936 echo "$ac_t""found at $ac_find_libraries" 1>&6
8937 else
8938 cat > conftest.$ac_ext <<EOF
1db8dc4a 8939#line 8940 "configure"
cd6d6d5b 8940#include "confdefs.h"
ab9b9eab 8941
cd6d6d5b
VZ
8942 #include <Xm/Xm.h>
8943
8944int main() {
ab9b9eab 8945
cd6d6d5b 8946 int version;
ab9b9eab 8947
cd6d6d5b
VZ
8948 version = xmUseVersion;
8949
8950; return 0; }
8951EOF
1db8dc4a 8952if { (eval echo configure:8953: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
cd6d6d5b
VZ
8953 rm -rf conftest*
8954
8955 echo "$ac_t""found in default search path" 1>&6
8956 COMPILED_X_PROGRAM=1
8957
8958else
8959 echo "configure: failed program was:" >&5
8960 cat conftest.$ac_ext >&5
8961 rm -rf conftest*
8962
8963 echo "$ac_t""no" 1>&6
8964 { echo "configure: error: please set LDFLAGS to contain the location of libXm" 1>&2; exit 1; }
8965
8966
8967fi
8968rm -f conftest*
8969 fi
ab9b9eab
VZ
8970 fi
8971
cd6d6d5b 8972
ab9b9eab
VZ
8973 XPM_LINK=""
8974 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
1db8dc4a 8975echo "configure:8976: checking for Xpm library" >&5
ab9b9eab
VZ
8976
8977ac_find_libraries=
8978for ac_dir in $SEARCH_LIB;
8979 do
8980 for ac_extension in a so sl; do
8981 if test -f "$ac_dir/libXpm.$ac_extension"; then
8982 ac_find_libraries=$ac_dir
8983 break 2
8984 fi
8985 done
8986 done
8987
8988 if test "$ac_find_libraries" != "" ; then
8989
8990 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
8991 result=$?
8992 if test $result = 0; then
8993 ac_path_to_link=""
8994 else
8995 ac_path_to_link="-L$ac_find_libraries"
8996 fi
8997
8998 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $ac_path_to_link"
8999 XPM_LINK="-lXpm "
9000 cat >> confdefs.h <<\EOF
9001#define wxHAVE_LIB_XPM 1
9002EOF
9003
9004 echo "$ac_t""found at $ac_find_libraries" 1>&6
9005 else
cd6d6d5b 9006 cat > conftest.$ac_ext <<EOF
1db8dc4a 9007#line 9008 "configure"
cd6d6d5b
VZ
9008#include "confdefs.h"
9009
9010 #include <X11/xpm.h>
9011
9012int main() {
9013
9014 int version;
9015
9016 version = XpmLibraryVersion();
9017
9018; return 0; }
9019EOF
1db8dc4a 9020if { (eval echo configure:9021: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
cd6d6d5b
VZ
9021 rm -rf conftest*
9022
f6bcfd97
BP
9023 XPM_LINK="-lXpm "
9024 cat >> confdefs.h <<\EOF
3ace2e6d
SN
9025#define wxHAVE_LIB_XPM 1
9026EOF
9027
9028 echo "$ac_t""found in default search path" 1>&6
cd6d6d5b
VZ
9029 COMPILED_X_PROGRAM=0
9030
9031else
9032 echo "configure: failed program was:" >&5
9033 cat conftest.$ac_ext >&5
9034 rm -rf conftest*
9035
9036 echo "$ac_t""no" 1>&6
9037 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
9038
9039
9040fi
9041rm -f conftest*
ab9b9eab
VZ
9042 fi
9043
8916026b 9044 GUI_TK_LINK="-lXm $XPM_LINK -lXmu -lXext -lXt -lX11"
ab9b9eab
VZ
9045 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $GUI_TK_LINK"
9046 TOOLKIT=MOTIF
9047
9048 GUIHEADERS="\$(MOTIF_HEADERS)"
9049 GUIOBJS="\$(MOTIF_GUIOBJS)"
9050 COMMONOBJS="\$(MOTIF_COMMONOBJS)"
788deba1
VZ
9051 GENERICOBJS="\$(MOTIF_GENERICOBJS)"
9052 GUIDEPS="\$(MOTIF_GUIDEPS)"
9053 COMMONDEPS="\$(MOTIF_COMMONDEPS)"
10f2d63a
VZ
9054 GENERICDEPS="\$(MOTIF_GENERICDEPS)"
9055 UNIXOBJS="\$(UNIX_OBJS)"
d9d8273d 9056 UNIXDEPS="\$(UNIX_DEPS)"
10f2d63a
VZ
9057 GUIDIST=MOTIF_DIST
9058fi
9059
b4085ce6
GD
9060if test "$wxUSE_MAC" = 1; then
9061 TOOLKIT=MAC
9062 UNIXOBJS="\$(UNIX_OBJS)"
9063 UNIXDEPS="\$(UNIX_DEPS)"
c521c494 9064 GUIDIST=MACX_DIST
b4085ce6
GD
9065fi
9066
e07802fc
VZ
9067if test "$wxUSE_PM" = 1; then
9068 TOOLKIT=PM
9069
9070 GUIOBJS="\$(PM_GUIOBJS)"
9071 GUIHEADERS="\$(PM_HEADERS)"
9072 COMMONOBJS="\$(PM_COMMONOBJS)"
9073 GENERICOBJS="\$(PM_GENERICOBJS)"
9074 GUIDEPS="\$(PM_GUIDEPS)"
9075 COMMONDEPS="\$(PM_COMMONDEPS)"
9076 GENERICDEPS="\$(PM_GENERICDEPS)"
9077 UNIXOBJS=
9078 UNIXDEPS=
9079 GUIDIST=GTK_DIST
9080fi
9081
9082if test "$TOOLKIT" != "PM" ; then
ec14dd32 9083 TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
e07802fc
VZ
9084else
9085 TOOLKIT_DIR="os2"
9086fi
10f2d63a 9087
f6bcfd97
BP
9088 if test "$wxUSE_DEBUG_FLAG" = "yes"; then
9089 TOOLKIT_NAME="${TOOLKIT_DIR}d"
9090 else
9091 TOOLKIT_NAME="${TOOLKIT_DIR}"
9092 fi
9093
2224580a 9094 TOOLKIT_DEF="-D__WX${TOOLKIT}__"
10f2d63a 9095
f6bcfd97 9096 WX_LIBRARY="wx_${TOOLKIT_NAME}"
10f2d63a 9097
bdad4e7e 9098 ALL_OBJECTS="\$(GUIOBJS) \$(COMMONOBJS) \$(GENERICOBJS) \$(UNIXOBJS) \$(HTMLOBJS) \$(OGLOBJS)"
3fcdd07b 9099
b089607b 9100 if test "$TOOLKIT" != "MSW"; then
cc977e5f
RR
9101 if test "$wxUSE_ODBC" = "yes" ; then
9102 ALL_OBJECTS="${ALL_OBJECTS} \$(IODBCOBJS)"
9103 fi
3fcdd07b
VZ
9104 fi
9105
d9d8273d 9106 if test "$wxUSE_LIBJPEG" = "yes" ; then
2224580a 9107 ALL_OBJECTS="${ALL_OBJECTS} \$(JPEGOBJS)"
d9d8273d
RR
9108 fi
9109 if test "$wxUSE_LIBTIFF" = "yes" ; then
9110 ALL_OBJECTS="${ALL_OBJECTS} \$(TIFFOBJS)"
9111 fi
9112 if test "$wxUSE_LIBPNG" = "yes" ; then
9113 ALL_OBJECTS="${ALL_OBJECTS} \$(PNGOBJS)"
9114 fi
9115 if test "$wxUSE_ZLIB" = "yes" ; then
9116 ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)"
9117 fi
3fed1840
RR
9118 if test "$wxUSE_FREETYPE" = "yes" ; then
9119 ALL_OBJECTS="${ALL_OBJECTS} \$(FREETYPEOBJS)"
9120 fi
bdad4e7e 9121 ALL_DEPFILES="\$(GUIDEPS) \$(COMMONDEPS) \$(GENERICDEPS) \$(UNIXDEPS) \$(HTMLDEPS) \$(OGLDEPS)"
2224580a
VZ
9122
9123 PORT_FILES="src/\$(TOOLKITDIR)/files.lst"
9124 RPM_FILES="src/\$(TOOLKITDIR)/rpmfiles.lst"
9125 RPM_SPEC="wx\$(TOOLKIT).spec"
9126
9127 GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
9128 DISTDIR="wx\$(TOOLKIT)"
10f2d63a 9129else
dad6c0ea
VZ
9130 USE_GUI=0
9131
f6bcfd97
BP
9132 TOOLKIT_DIR="base"
9133
9134 if test "$wxUSE_DEBUG_FLAG" = "yes"; then
9135 TOOLKIT_NAME="${TOOLKIT_DIR}d"
9136 else
9137 TOOLKIT_NAME="${TOOLKIT_DIR}"
9138 fi
9139
07eb77a6
RL
9140 TOOLKIT_DEF="-D__WXBASE__"
9141
b4085ce6
GD
9142 ALL_OBJECTS="\$(BASE_OBJS) \$(BASE_UNIX_OBJS)"
9143 ALL_DEPFILES="\$(BASE_DEPS) \$(BASE_UNIX_DEPS)"
10f2d63a 9144
a20b6d3a
VZ
9145 if test "$wxUSE_ZLIB" = "yes" ; then
9146 ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)"
9147 fi
9148
f6bcfd97 9149 WX_LIBRARY="wx_${TOOLKIT_NAME}"
2224580a
VZ
9150
9151 PORT_FILES="src/files.lst"
9152 RPM_FILES="src/rpmfiles.lst"
9153 RPM_SPEC="wxBase.spec"
9154
9155 GUIDIST="BASE_DIST"
9156 DISTDIR="wxBase"
b4085ce6
GD
9157
9158 if test "$USE_UNIX" = 1 ; then
9159 ALL_OBJECTS="${ALL_OBJECTS} dl_macosx.o"
9160 ALL_DEPFILES="${ALL_DEPFILES} dl_macosx.d"
9161 fi
10f2d63a
VZ
9162fi
9163
9164WX_LIBRARY_NAME="lib${WX_LIBRARY}.la"
bdad4e7e 9165WX_LIBRARY_NAME_GL="lib${WX_LIBRARY}_gl.la"
10f2d63a
VZ
9166
9167WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a"
bdad4e7e 9168WX_LIBRARY_NAME_STATIC_GL="lib${WX_LIBRARY}_gl.a"
10f2d63a
VZ
9169
9170WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}-${WX_RELEASE}.so.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
bdad4e7e 9171WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.so.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
10f2d63a
VZ
9172
9173WX_LIBRARY_LINK1="lib${WX_LIBRARY}-${WX_RELEASE}.so.${WX_CURRENT}"
9174WX_LIBRARY_LINK2="lib${WX_LIBRARY}-${WX_RELEASE}.so"
9175WX_LIBRARY_LINK3="lib${WX_LIBRARY}.so"
bdad4e7e
RR
9176WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.so.${WX_CURRENT}"
9177WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.so"
9178WX_LIBRARY_LINK3_GL="lib${WX_LIBRARY}_gl.so"
10f2d63a
VZ
9179
9180SHARED_LD=
9181PIC_FLAG=
9182WX_ALL=
9183WX_ALL_INSTALLED=
1d62a8b4 9184BURNT_LIBRARY_NAME=
f6bcfd97 9185WX_TARGET_LIBRARY_SONAME=
10f2d63a 9186
b12915c1 9187
10f2d63a
VZ
9188if test "$wxUSE_SHARED" = "yes"; then
9189 case "${host}" in
9190 *-hp-hpux* )
9191 if test "$GCC" = yes ; then
69ffe1d2 9192 SHARED_LD="${CC} -shared -fPIC -o"
10f2d63a
VZ
9193 PIC_FLAG="-fPIC"
9194 else
f6bcfd97
BP
9195 LDFLAGS="-L/usr/lib"
9196
10f2d63a
VZ
9197 SHARED_LD="${CXX} -b -o"
9198 PIC_FLAG="+Z"
9199 fi
f6bcfd97
BP
9200 WX_LIBRARY_NAME_SHARED="libwx_${TOOLKIT_NAME}.sl"
9201 WX_LIBRARY_NAME_SHARED_GL="libwx_${TOOLKIT_NAME}_gl.sl"
c661ecca 9202 if test "$wxUSE_OPENGL" = "yes"; then
f6bcfd97 9203 WX_ALL_INSTALLED="preinstall_gl"
c661ecca
RR
9204 WX_ALL="${WX_LIBRARY_NAME_SHARED} ${WX_LIBRARY_NAME_SHARED_GL}"
9205 else
9206 WX_ALL="${WX_LIBRARY_NAME_SHARED}"
9207 fi
10f2d63a 9208 ;;
b12915c1
VZ
9209
9210 *-*-linux* )
10f2d63a
VZ
9211 SHARED_LD="${CC} -shared -o"
9212 PIC_FLAG="-fPIC"
00cf1208 9213 if test "$wxUSE_BURNT_NAME" = "yes" ; then
05cdfc6f 9214 BURNT_LIBRARY_NAME="-Wl,-soname,${WX_LIBRARY_LINK1}"
bdad4e7e 9215 BURNT_LIBRARY_NAME_GL="-Wl,-soname,${WX_LIBRARY_LINK1_GL}"
f6bcfd97 9216 WX_TARGET_LIBRARY_SONAME="-Wl,-soname,\$(TARGETLIB_LINK1)"
00cf1208 9217 fi
c661ecca
RR
9218 if test "$wxUSE_OPENGL" = "yes"; then
9219 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
9220 WX_ALL="CREATE_LINKS CREATE_LINKS_GL"
9221 else
9222 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
9223 WX_ALL="CREATE_LINKS"
422107f9 9224 fi
00cf1208 9225 ;;
10f2d63a
VZ
9226 *-*-irix5* | *-*-irix6* )
9227 if test "$GCC" = yes ; then
9228 SHARED_LD="${CC} -shared -o"
9229 PIC_FLAG="-fPIC"
9230 else
9231 SHARED_LD="${CXX} -shared -o"
9232 fi
c661ecca
RR
9233 if test "$wxUSE_OPENGL" = "yes"; then
9234 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
9235 WX_ALL="CREATE_LINKS CREATE_LINKS_GL"
9236 else
9237 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
9238 WX_ALL="CREATE_LINKS"
422107f9 9239 fi
10f2d63a
VZ
9240 ;;
9241 *-*-solaris2* )
9242 if test "$GCC" = yes ; then
9243 SHARED_LD="${CC} -shared -o"
9244 PIC_FLAG="-fPIC"
f6bcfd97
BP
9245
9246 CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include"
10f2d63a
VZ
9247 else
9248 SHARED_LD="${CXX} -G -o"
9249 PIC_FLAG="-KPIC"
9250 fi
c661ecca
RR
9251 if test "$wxUSE_OPENGL" = "yes"; then
9252 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
9253 WX_ALL="CREATE_LINKS CREATE_LINKS_GL"
9254 else
9255 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
9256 WX_ALL="CREATE_LINKS"
9257 fi
10f2d63a
VZ
9258 ;;
9259 *-*-sunos4* )
9260 SHARED_LD="${CC} -shared -o"
9261 PIC_FLAG="-fPIC"
9262 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
9263 WX_ALL="CREATE_LINKS"
9264 ;;
b4085ce6 9265 *-*-freebsd* | *-*-netbsd* )
10f2d63a
VZ
9266 SHARED_LD="${CC} -shared -o"
9267 PIC_FLAG="-fPIC"
37d403aa
JS
9268 if test "$wxUSE_OPENGL" = "yes"; then
9269 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
9270 WX_ALL="CREATE_LINKS CREATE_LINKS_GL"
9271 else
9272 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
9273 WX_ALL="CREATE_LINKS"
9274 fi
10f2d63a 9275 ;;
b4085ce6
GD
9276 *-*-darwin* )
9277 SHARED_LD="libtool -dynamic -o"
9278 PIC_FLAG="-fPIC"
9279 if test "$wxUSE_OPENGL" = "yes"; then
9280 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
9281 WX_ALL="CREATE_LINKS CREATE_LINKS_GL"
9282 else
9283 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
9284 WX_ALL="CREATE_LINKS"
9285 fi
9286 ;;
10f2d63a
VZ
9287 *-*-osf* )
9288 SHARED_LD="${CXX} -shared -o"
9289 PIC_FLAG="-fPIC"
9290 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
9291 WX_ALL="CREATE_LINKS"
9292 ;;
9293 *-*-dgux5* )
9294 SHARED_LD="${CXX} -shared -o"
9295 PIC_FLAG="-fPIC"
9296 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
9297 WX_ALL="CREATE_LINKS"
9298 ;;
9299 *-*-sysv5* )
9300 SHARED_LD="${CC} -shared -o"
9301 PIC_FLAG="-fPIC"
9302 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
9303 WX_ALL="CREATE_LINKS"
9304 ;;
9305 *-*-aix* )
9306 SHARED_LD="/usr/lpp/xlC/bin/makeC++SharedLib -p 0 -o"
9307 WX_ALL=${WX_LIBRARY_NAME_SHARED}
9308 ;;
9309 *-*-cygwin32* )
9310 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
bdad4e7e 9311 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}"
f6bcfd97
BP
9312 if test "$wxUSE_OPENGL" = "yes"; then
9313 WX_ALL_INSTALLED="preinstall_gl"
9314 WX_ALL="${WX_LIBRARY_NAME_STATIC} ${WX_LIBRARY_NAME_STATIC_GL}"
9315 else
9316 WX_ALL="${WX_LIBRARY_NAME_STATIC}"
9317 fi
10f2d63a 9318 ;;
b12915c1 9319 *-*-mingw32* )
10f2d63a 9320 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
bdad4e7e 9321 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}"
f6bcfd97
BP
9322 if test "$wxUSE_OPENGL" = "yes"; then
9323 WX_ALL_INSTALLED="preinstall_gl"
9324 WX_ALL="${WX_LIBRARY_NAME_STATIC} ${WX_LIBRARY_NAME_STATIC_GL}"
9325 else
9326 WX_ALL="${WX_LIBRARY_NAME_STATIC}"
9327 fi
10f2d63a
VZ
9328 ;;
9329 *-pc-os2_emx )
e07802fc
VZ
9330 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
9331 WX_ALL="${WX_LIBRARY_NAME_STATIC}"
10f2d63a 9332 ;;
b12915c1 9333 *-*-beos* )
e2b8b066 9334 SHARED_LD="${LD} -shared -o"
b12915c1
VZ
9335 PIC_FLAG="-fPIC"
9336 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
9337 WX_ALL="CREATE_LINKS"
9338 ;;
10f2d63a
VZ
9339 *)
9340 { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; }
9341 esac
9342
9343 if test "x$WX_TARGET_LIBRARY" = "x"; then
9344 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}"
bdad4e7e 9345 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_SHARED_GL}"
10f2d63a 9346 fi
3711412e 9347 WX_TARGET_LIBRARY_TYPE="so"
10f2d63a
VZ
9348else
9349 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
bdad4e7e 9350 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}"
f6bcfd97
BP
9351
9352 if test "$wxUSE_OPENGL" = "yes"; then
9353 WX_ALL_INSTALLED="preinstall_gl"
9354 WX_ALL="${WX_LIBRARY_NAME_STATIC} ${WX_LIBRARY_NAME_STATIC_GL}"
9355 else
9356 WX_ALL="${WX_LIBRARY_NAME_STATIC}"
9357 fi
9358
9359 if test "$wxUSE_GUI" = "no"; then
9360 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
9361 fi
9362
3711412e 9363 WX_TARGET_LIBRARY_TYPE="a"
10f2d63a
VZ
9364fi
9365
9366
9367for ac_hdr in strings.h
9368do
9369ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9370echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1db8dc4a 9371echo "configure:9372: checking for $ac_hdr" >&5
10f2d63a
VZ
9372if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9373 echo $ac_n "(cached) $ac_c" 1>&6
9374else
9375 cat > conftest.$ac_ext <<EOF
1db8dc4a 9376#line 9377 "configure"
10f2d63a
VZ
9377#include "confdefs.h"
9378#include <$ac_hdr>
9379EOF
9380ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1db8dc4a 9381{ (eval echo configure:9382: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
9382ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9383if test -z "$ac_err"; then
9384 rm -rf conftest*
9385 eval "ac_cv_header_$ac_safe=yes"
9386else
9387 echo "$ac_err" >&5
9388 echo "configure: failed program was:" >&5
9389 cat conftest.$ac_ext >&5
9390 rm -rf conftest*
9391 eval "ac_cv_header_$ac_safe=no"
9392fi
9393rm -f conftest*
9394fi
9395if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9396 echo "$ac_t""yes" 1>&6
9397 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9398 cat >> confdefs.h <<EOF
9399#define $ac_tr_hdr 1
9400EOF
9401
9402else
9403 echo "$ac_t""no" 1>&6
9404fi
9405done
9406
9407for ac_hdr in unistd.h
9408do
9409ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9410echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1db8dc4a 9411echo "configure:9412: checking for $ac_hdr" >&5
10f2d63a
VZ
9412if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9413 echo $ac_n "(cached) $ac_c" 1>&6
9414else
9415 cat > conftest.$ac_ext <<EOF
1db8dc4a 9416#line 9417 "configure"
10f2d63a
VZ
9417#include "confdefs.h"
9418#include <$ac_hdr>
9419EOF
9420ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1db8dc4a 9421{ (eval echo configure:9422: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
9422ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9423if test -z "$ac_err"; then
9424 rm -rf conftest*
9425 eval "ac_cv_header_$ac_safe=yes"
9426else
9427 echo "$ac_err" >&5
9428 echo "configure: failed program was:" >&5
9429 cat conftest.$ac_ext >&5
9430 rm -rf conftest*
9431 eval "ac_cv_header_$ac_safe=no"
9432fi
9433rm -f conftest*
9434fi
9435if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9436 echo "$ac_t""yes" 1>&6
9437 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9438 cat >> confdefs.h <<EOF
9439#define $ac_tr_hdr 1
9440EOF
9441
9442else
9443 echo "$ac_t""no" 1>&6
9444fi
9445done
9446
0fb0dd83 9447for ac_hdr in fcntl.h
10f2d63a
VZ
9448do
9449ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9450echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1db8dc4a 9451echo "configure:9452: checking for $ac_hdr" >&5
10f2d63a
VZ
9452if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9453 echo $ac_n "(cached) $ac_c" 1>&6
9454else
9455 cat > conftest.$ac_ext <<EOF
1db8dc4a 9456#line 9457 "configure"
10f2d63a
VZ
9457#include "confdefs.h"
9458#include <$ac_hdr>
9459EOF
9460ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1db8dc4a 9461{ (eval echo configure:9462: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
9462ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9463if test -z "$ac_err"; then
9464 rm -rf conftest*
9465 eval "ac_cv_header_$ac_safe=yes"
9466else
9467 echo "$ac_err" >&5
9468 echo "configure: failed program was:" >&5
9469 cat conftest.$ac_ext >&5
9470 rm -rf conftest*
9471 eval "ac_cv_header_$ac_safe=no"
9472fi
9473rm -f conftest*
9474fi
9475if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9476 echo "$ac_t""yes" 1>&6
9477 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9478 cat >> confdefs.h <<EOF
9479#define $ac_tr_hdr 1
9480EOF
9481
9482else
9483 echo "$ac_t""no" 1>&6
9484fi
9485done
9486
0fb0dd83 9487for ac_hdr in wchar.h
10f2d63a
VZ
9488do
9489ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9490echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1db8dc4a 9491echo "configure:9492: checking for $ac_hdr" >&5
10f2d63a
VZ
9492if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9493 echo $ac_n "(cached) $ac_c" 1>&6
9494else
9495 cat > conftest.$ac_ext <<EOF
1db8dc4a 9496#line 9497 "configure"
10f2d63a
VZ
9497#include "confdefs.h"
9498#include <$ac_hdr>
9499EOF
9500ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1db8dc4a 9501{ (eval echo configure:9502: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
9502ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9503if test -z "$ac_err"; then
9504 rm -rf conftest*
9505 eval "ac_cv_header_$ac_safe=yes"
9506else
9507 echo "$ac_err" >&5
9508 echo "configure: failed program was:" >&5
9509 cat conftest.$ac_ext >&5
9510 rm -rf conftest*
9511 eval "ac_cv_header_$ac_safe=no"
9512fi
9513rm -f conftest*
9514fi
9515if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9516 echo "$ac_t""yes" 1>&6
9517 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9518 cat >> confdefs.h <<EOF
9519#define $ac_tr_hdr 1
9520EOF
9521
9522else
9523 echo "$ac_t""no" 1>&6
9524fi
9525done
9526
0fb0dd83 9527for ac_hdr in wcstr.h
10f2d63a
VZ
9528do
9529ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9530echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1db8dc4a 9531echo "configure:9532: checking for $ac_hdr" >&5
10f2d63a
VZ
9532if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9533 echo $ac_n "(cached) $ac_c" 1>&6
9534else
9535 cat > conftest.$ac_ext <<EOF
1db8dc4a 9536#line 9537 "configure"
10f2d63a
VZ
9537#include "confdefs.h"
9538#include <$ac_hdr>
9539EOF
9540ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1db8dc4a 9541{ (eval echo configure:9542: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6f72b082
OK
9542ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9543if test -z "$ac_err"; then
9544 rm -rf conftest*
9545 eval "ac_cv_header_$ac_safe=yes"
9546else
9547 echo "$ac_err" >&5
9548 echo "configure: failed program was:" >&5
9549 cat conftest.$ac_ext >&5
9550 rm -rf conftest*
9551 eval "ac_cv_header_$ac_safe=no"
9552fi
9553rm -f conftest*
9554fi
9555if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9556 echo "$ac_t""yes" 1>&6
9557 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9558 cat >> confdefs.h <<EOF
9559#define $ac_tr_hdr 1
9560EOF
9561
9562else
9563 echo "$ac_t""no" 1>&6
9564fi
9565done
9566
0fb0dd83 9567for ac_hdr in fnmatch.h
6f72b082
OK
9568do
9569ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9570echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1db8dc4a 9571echo "configure:9572: checking for $ac_hdr" >&5
6f72b082
OK
9572if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9573 echo $ac_n "(cached) $ac_c" 1>&6
9574else
9575 cat > conftest.$ac_ext <<EOF
1db8dc4a 9576#line 9577 "configure"
6f72b082
OK
9577#include "confdefs.h"
9578#include <$ac_hdr>
9579EOF
9580ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1db8dc4a 9581{ (eval echo configure:9582: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6f72b082
OK
9582ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9583if test -z "$ac_err"; then
9584 rm -rf conftest*
9585 eval "ac_cv_header_$ac_safe=yes"
9586else
9587 echo "$ac_err" >&5
9588 echo "configure: failed program was:" >&5
9589 cat conftest.$ac_ext >&5
9590 rm -rf conftest*
9591 eval "ac_cv_header_$ac_safe=no"
9592fi
9593rm -f conftest*
9594fi
9595if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9596 echo "$ac_t""yes" 1>&6
9597 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9598 cat >> confdefs.h <<EOF
9599#define $ac_tr_hdr 1
9600EOF
9601
9602else
9603 echo "$ac_t""no" 1>&6
9604fi
9605done
9606
0fb0dd83 9607for ac_hdr in iconv.h
6f72b082
OK
9608do
9609ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9610echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1db8dc4a 9611echo "configure:9612: checking for $ac_hdr" >&5
6f72b082
OK
9612if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9613 echo $ac_n "(cached) $ac_c" 1>&6
9614else
9615 cat > conftest.$ac_ext <<EOF
1db8dc4a 9616#line 9617 "configure"
6f72b082
OK
9617#include "confdefs.h"
9618#include <$ac_hdr>
9619EOF
9620ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1db8dc4a 9621{ (eval echo configure:9622: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
9622ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9623if test -z "$ac_err"; then
9624 rm -rf conftest*
9625 eval "ac_cv_header_$ac_safe=yes"
9626else
9627 echo "$ac_err" >&5
9628 echo "configure: failed program was:" >&5
9629 cat conftest.$ac_ext >&5
9630 rm -rf conftest*
9631 eval "ac_cv_header_$ac_safe=no"
9632fi
9633rm -f conftest*
9634fi
9635if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9636 echo "$ac_t""yes" 1>&6
9637 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9638 cat >> confdefs.h <<EOF
9639#define $ac_tr_hdr 1
9640EOF
9641
9642else
9643 echo "$ac_t""no" 1>&6
9644fi
9645done
9646
0fb0dd83
RR
9647for ac_hdr in langinfo.h
9648do
9649ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9650echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1db8dc4a 9651echo "configure:9652: checking for $ac_hdr" >&5
0fb0dd83
RR
9652if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9653 echo $ac_n "(cached) $ac_c" 1>&6
9654else
9655 cat > conftest.$ac_ext <<EOF
1db8dc4a 9656#line 9657 "configure"
0fb0dd83
RR
9657#include "confdefs.h"
9658#include <$ac_hdr>
9659EOF
9660ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1db8dc4a 9661{ (eval echo configure:9662: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
0fb0dd83
RR
9662ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9663if test -z "$ac_err"; then
9664 rm -rf conftest*
9665 eval "ac_cv_header_$ac_safe=yes"
9666else
9667 echo "$ac_err" >&5
9668 echo "configure: failed program was:" >&5
9669 cat conftest.$ac_ext >&5
9670 rm -rf conftest*
9671 eval "ac_cv_header_$ac_safe=no"
9672fi
9673rm -f conftest*
9674fi
9675if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9676 echo "$ac_t""yes" 1>&6
9677 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9678 cat >> confdefs.h <<EOF
9679#define $ac_tr_hdr 1
9680EOF
9681
9682else
9683 echo "$ac_t""no" 1>&6
9684fi
9685done
9686
10f2d63a 9687
73fd4a60
VZ
9688if test "$wxUSE_GUI" = "yes"; then
9689 if test "$wxUSE_UNIX" = "yes"; then
9690 for ac_hdr in X11/XKBlib.h
10f2d63a
VZ
9691do
9692ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9693echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1db8dc4a 9694echo "configure:9695: checking for $ac_hdr" >&5
10f2d63a
VZ
9695if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9696 echo $ac_n "(cached) $ac_c" 1>&6
9697else
9698 cat > conftest.$ac_ext <<EOF
1db8dc4a 9699#line 9700 "configure"
10f2d63a
VZ
9700#include "confdefs.h"
9701#include <$ac_hdr>
9702EOF
9703ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1db8dc4a 9704{ (eval echo configure:9705: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
9705ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9706if test -z "$ac_err"; then
9707 rm -rf conftest*
9708 eval "ac_cv_header_$ac_safe=yes"
9709else
9710 echo "$ac_err" >&5
9711 echo "configure: failed program was:" >&5
9712 cat conftest.$ac_ext >&5
9713 rm -rf conftest*
9714 eval "ac_cv_header_$ac_safe=no"
9715fi
9716rm -f conftest*
9717fi
9718if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9719 echo "$ac_t""yes" 1>&6
9720 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9721 cat >> confdefs.h <<EOF
9722#define $ac_tr_hdr 1
9723EOF
9724
9725else
9726 echo "$ac_t""no" 1>&6
9727fi
9728done
9729
73fd4a60 9730 fi
10f2d63a
VZ
9731fi
9732
9733
9734echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1db8dc4a 9735echo "configure:9736: checking for ANSI C header files" >&5
10f2d63a
VZ
9736if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
9737 echo $ac_n "(cached) $ac_c" 1>&6
9738else
9739 cat > conftest.$ac_ext <<EOF
1db8dc4a 9740#line 9741 "configure"
10f2d63a
VZ
9741#include "confdefs.h"
9742#include <stdlib.h>
9743#include <stdarg.h>
9744#include <string.h>
9745#include <float.h>
9746EOF
9747ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1db8dc4a 9748{ (eval echo configure:9749: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
9749ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9750if test -z "$ac_err"; then
9751 rm -rf conftest*
9752 ac_cv_header_stdc=yes
9753else
9754 echo "$ac_err" >&5
9755 echo "configure: failed program was:" >&5
9756 cat conftest.$ac_ext >&5
9757 rm -rf conftest*
9758 ac_cv_header_stdc=no
9759fi
9760rm -f conftest*
9761
9762if test $ac_cv_header_stdc = yes; then
9763 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9764cat > conftest.$ac_ext <<EOF
1db8dc4a 9765#line 9766 "configure"
10f2d63a
VZ
9766#include "confdefs.h"
9767#include <string.h>
9768EOF
9769if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9770 egrep "memchr" >/dev/null 2>&1; then
9771 :
9772else
9773 rm -rf conftest*
9774 ac_cv_header_stdc=no
9775fi
9776rm -f conftest*
9777
9778fi
9779
9780if test $ac_cv_header_stdc = yes; then
9781 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9782cat > conftest.$ac_ext <<EOF
1db8dc4a 9783#line 9784 "configure"
10f2d63a
VZ
9784#include "confdefs.h"
9785#include <stdlib.h>
9786EOF
9787if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9788 egrep "free" >/dev/null 2>&1; then
9789 :
9790else
9791 rm -rf conftest*
9792 ac_cv_header_stdc=no
9793fi
9794rm -f conftest*
9795
9796fi
9797
9798if test $ac_cv_header_stdc = yes; then
9799 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9800if test "$cross_compiling" = yes; then
9801 :
9802else
9803 cat > conftest.$ac_ext <<EOF
1db8dc4a 9804#line 9805 "configure"
10f2d63a
VZ
9805#include "confdefs.h"
9806#include <ctype.h>
9807#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9808#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9809#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9810int main () { int i; for (i = 0; i < 256; i++)
9811if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
9812exit (0); }
9813
9814EOF
1db8dc4a 9815if { (eval echo configure:9816: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10f2d63a
VZ
9816then
9817 :
9818else
9819 echo "configure: failed program was:" >&5
9820 cat conftest.$ac_ext >&5
9821 rm -fr conftest*
9822 ac_cv_header_stdc=no
9823fi
9824rm -fr conftest*
9825fi
9826
9827fi
9828fi
9829
9830echo "$ac_t""$ac_cv_header_stdc" 1>&6
9831if test $ac_cv_header_stdc = yes; then
9832 cat >> confdefs.h <<\EOF
9833#define STDC_HEADERS 1
9834EOF
9835
9836fi
9837
9838echo $ac_n "checking for mode_t""... $ac_c" 1>&6
1db8dc4a 9839echo "configure:9840: checking for mode_t" >&5
10f2d63a
VZ
9840if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
9841 echo $ac_n "(cached) $ac_c" 1>&6
9842else
9843 cat > conftest.$ac_ext <<EOF
1db8dc4a 9844#line 9845 "configure"
10f2d63a
VZ
9845#include "confdefs.h"
9846#include <sys/types.h>
9847#if STDC_HEADERS
9848#include <stdlib.h>
9849#include <stddef.h>
9850#endif
9851EOF
9852if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9853 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
9854 rm -rf conftest*
9855 ac_cv_type_mode_t=yes
9856else
9857 rm -rf conftest*
9858 ac_cv_type_mode_t=no
9859fi
9860rm -f conftest*
9861
9862fi
9863echo "$ac_t""$ac_cv_type_mode_t" 1>&6
9864if test $ac_cv_type_mode_t = no; then
9865 cat >> confdefs.h <<\EOF
9866#define mode_t int
9867EOF
9868
9869fi
9870
9871echo $ac_n "checking for off_t""... $ac_c" 1>&6
1db8dc4a 9872echo "configure:9873: checking for off_t" >&5
10f2d63a
VZ
9873if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
9874 echo $ac_n "(cached) $ac_c" 1>&6
9875else
9876 cat > conftest.$ac_ext <<EOF
1db8dc4a 9877#line 9878 "configure"
10f2d63a
VZ
9878#include "confdefs.h"
9879#include <sys/types.h>
9880#if STDC_HEADERS
9881#include <stdlib.h>
9882#include <stddef.h>
9883#endif
9884EOF
9885if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9886 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
9887 rm -rf conftest*
9888 ac_cv_type_off_t=yes
9889else
9890 rm -rf conftest*
9891 ac_cv_type_off_t=no
9892fi
9893rm -f conftest*
9894
9895fi
9896echo "$ac_t""$ac_cv_type_off_t" 1>&6
9897if test $ac_cv_type_off_t = no; then
9898 cat >> confdefs.h <<\EOF
9899#define off_t long
9900EOF
9901
9902fi
9903
9904echo $ac_n "checking for pid_t""... $ac_c" 1>&6
1db8dc4a 9905echo "configure:9906: checking for pid_t" >&5
10f2d63a
VZ
9906if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
9907 echo $ac_n "(cached) $ac_c" 1>&6
9908else
9909 cat > conftest.$ac_ext <<EOF
1db8dc4a 9910#line 9911 "configure"
10f2d63a
VZ
9911#include "confdefs.h"
9912#include <sys/types.h>
9913#if STDC_HEADERS
9914#include <stdlib.h>
9915#include <stddef.h>
9916#endif
9917EOF
9918if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9919 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
9920 rm -rf conftest*
9921 ac_cv_type_pid_t=yes
9922else
9923 rm -rf conftest*
9924 ac_cv_type_pid_t=no
9925fi
9926rm -f conftest*
9927
9928fi
9929echo "$ac_t""$ac_cv_type_pid_t" 1>&6
9930if test $ac_cv_type_pid_t = no; then
9931 cat >> confdefs.h <<\EOF
9932#define pid_t int
9933EOF
9934
9935fi
9936
9937echo $ac_n "checking for size_t""... $ac_c" 1>&6
1db8dc4a 9938echo "configure:9939: checking for size_t" >&5
10f2d63a
VZ
9939if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
9940 echo $ac_n "(cached) $ac_c" 1>&6
9941else
9942 cat > conftest.$ac_ext <<EOF
1db8dc4a 9943#line 9944 "configure"
10f2d63a
VZ
9944#include "confdefs.h"
9945#include <sys/types.h>
9946#if STDC_HEADERS
9947#include <stdlib.h>
9948#include <stddef.h>
9949#endif
9950EOF
9951if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9952 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
9953 rm -rf conftest*
9954 ac_cv_type_size_t=yes
9955else
9956 rm -rf conftest*
9957 ac_cv_type_size_t=no
9958fi
9959rm -f conftest*
9960
9961fi
9962echo "$ac_t""$ac_cv_type_size_t" 1>&6
9963if test $ac_cv_type_size_t = no; then
9964 cat >> confdefs.h <<\EOF
9965#define size_t unsigned
9966EOF
9967
9968fi
9969
9970echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
1db8dc4a 9971echo "configure:9972: checking for uid_t in sys/types.h" >&5
10f2d63a
VZ
9972if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
9973 echo $ac_n "(cached) $ac_c" 1>&6
9974else
9975 cat > conftest.$ac_ext <<EOF
1db8dc4a 9976#line 9977 "configure"
10f2d63a
VZ
9977#include "confdefs.h"
9978#include <sys/types.h>
9979EOF
9980if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9981 egrep "uid_t" >/dev/null 2>&1; then
9982 rm -rf conftest*
9983 ac_cv_type_uid_t=yes
9984else
9985 rm -rf conftest*
9986 ac_cv_type_uid_t=no
9987fi
9988rm -f conftest*
9989
9990fi
9991
9992echo "$ac_t""$ac_cv_type_uid_t" 1>&6
9993if test $ac_cv_type_uid_t = no; then
9994 cat >> confdefs.h <<\EOF
9995#define uid_t int
9996EOF
9997
9998 cat >> confdefs.h <<\EOF
9999#define gid_t int
10000EOF
10001
10002fi
10003
10004
10005
b12915c1 10006echo $ac_n "checking for pw_gecos in struct passwd""... $ac_c" 1>&6
1db8dc4a 10007echo "configure:10008: checking for pw_gecos in struct passwd" >&5
b12915c1
VZ
10008if eval "test \"`echo '$''{'wx_cv_struct_pw_gecos'+set}'`\" = set"; then
10009 echo $ac_n "(cached) $ac_c" 1>&6
10010else
10011
10012 cat > conftest.$ac_ext <<EOF
1db8dc4a 10013#line 10014 "configure"
b12915c1
VZ
10014#include "confdefs.h"
10015#include <pwd.h>
10016int main() {
10017
10018 char *p;
10019 struct passwd *pw;
10020 p = pw->pw_gecos;
10021
10022; return 0; }
10023EOF
1db8dc4a 10024if { (eval echo configure:10025: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
b12915c1
VZ
10025 rm -rf conftest*
10026
10027 wx_cv_struct_pw_gecos=yes
b12915c1
VZ
10028
10029else
10030 echo "configure: failed program was:" >&5
10031 cat conftest.$ac_ext >&5
10032 rm -rf conftest*
10033
10034 wx_cv_struct_pw_gecos=no
10035
10036
10037fi
10038rm -f conftest*
10039
10040
10041fi
10042
10043echo "$ac_t""$wx_cv_struct_pw_gecos" 1>&6
10044
bd3277fe
VZ
10045if test "$wx_cv_struct_pw_gecos" = "yes"; then
10046 cat >> confdefs.h <<\EOF
10047#define HAVE_PW_GECOS 1
10048EOF
10049
10050fi
10051
10f2d63a
VZ
10052
10053echo $ac_n "checking for working const""... $ac_c" 1>&6
1db8dc4a 10054echo "configure:10055: checking for working const" >&5
10f2d63a
VZ
10055if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
10056 echo $ac_n "(cached) $ac_c" 1>&6
10057else
10058 cat > conftest.$ac_ext <<EOF
1db8dc4a 10059#line 10060 "configure"
10f2d63a
VZ
10060#include "confdefs.h"
10061
10062int main() {
10063
10064/* Ultrix mips cc rejects this. */
186837b0 10065typedef int charset[2]; const charset x;
10f2d63a
VZ
10066/* SunOS 4.1.1 cc rejects this. */
10067char const *const *ccp;
10068char **p;
10069/* NEC SVR4.0.2 mips cc rejects this. */
10070struct point {int x, y;};
10071static struct point const zero = {0,0};
10072/* AIX XL C 1.02.0.0 rejects this.
10073 It does not let you subtract one const X* pointer from another in an arm
10074 of an if-expression whose if-part is not a constant expression */
10075const char *g = "string";
10076ccp = &g + (g ? g-g : 0);
10077/* HPUX 7.0 cc rejects these. */
10078++ccp;
10079p = (char**) ccp;
10080ccp = (char const *const *) p;
10081{ /* SCO 3.2v4 cc rejects this. */
10082 char *t;
10083 char const *s = 0 ? (char *) 0 : (char const *) 0;
10084
10085 *t++ = 0;
10086}
10087{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
10088 int x[] = {25, 17};
10089 const int *foo = &x[0];
10090 ++foo;
10091}
10092{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
10093 typedef const int *iptr;
10094 iptr p = 0;
10095 ++p;
10096}
10097{ /* AIX XL C 1.02.0.0 rejects this saying
10098 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
10099 struct s { int j; const int *ap[3]; };
10100 struct s *b; b->j = 5;
10101}
10102{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
10103 const int foo = 10;
10104}
10105
10106; return 0; }
10107EOF
1db8dc4a 10108if { (eval echo configure:10109: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10f2d63a
VZ
10109 rm -rf conftest*
10110 ac_cv_c_const=yes
10111else
10112 echo "configure: failed program was:" >&5
10113 cat conftest.$ac_ext >&5
10114 rm -rf conftest*
10115 ac_cv_c_const=no
10116fi
10117rm -f conftest*
10118fi
10119
10120echo "$ac_t""$ac_cv_c_const" 1>&6
10121if test $ac_cv_c_const = no; then
10122 cat >> confdefs.h <<\EOF
10123#define const
10124EOF
10125
10126fi
10127
10128echo $ac_n "checking for inline""... $ac_c" 1>&6
1db8dc4a 10129echo "configure:10130: checking for inline" >&5
10f2d63a
VZ
10130if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
10131 echo $ac_n "(cached) $ac_c" 1>&6
10132else
10133 ac_cv_c_inline=no
10134for ac_kw in inline __inline__ __inline; do
10135 cat > conftest.$ac_ext <<EOF
1db8dc4a 10136#line 10137 "configure"
10f2d63a
VZ
10137#include "confdefs.h"
10138
10139int main() {
186837b0 10140} $ac_kw foo() {
10f2d63a
VZ
10141; return 0; }
10142EOF
1db8dc4a 10143if { (eval echo configure:10144: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10f2d63a
VZ
10144 rm -rf conftest*
10145 ac_cv_c_inline=$ac_kw; break
10146else
10147 echo "configure: failed program was:" >&5
10148 cat conftest.$ac_ext >&5
10149fi
10150rm -f conftest*
10151done
10152
10153fi
10154
10155echo "$ac_t""$ac_cv_c_inline" 1>&6
10156case "$ac_cv_c_inline" in
10157 inline | yes) ;;
10158 no) cat >> confdefs.h <<\EOF
10159#define inline
10160EOF
10161 ;;
10162 *) cat >> confdefs.h <<EOF
10163#define inline $ac_cv_c_inline
10164EOF
10165 ;;
10166esac
10167
10168
10169echo $ac_n "checking size of char""... $ac_c" 1>&6
1db8dc4a 10170echo "configure:10171: checking size of char" >&5
10f2d63a
VZ
10171if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then
10172 echo $ac_n "(cached) $ac_c" 1>&6
10173else
10174 if test "$cross_compiling" = yes; then
10175 ac_cv_sizeof_char=1
10176else
10177 cat > conftest.$ac_ext <<EOF
1db8dc4a 10178#line 10179 "configure"
10f2d63a
VZ
10179#include "confdefs.h"
10180#include <stdio.h>
10181main()
10182{
10183 FILE *f=fopen("conftestval", "w");
10184 if (!f) exit(1);
10185 fprintf(f, "%d\n", sizeof(char));
10186 exit(0);
10187}
10188EOF
1db8dc4a 10189if { (eval echo configure:10190: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10f2d63a
VZ
10190then
10191 ac_cv_sizeof_char=`cat conftestval`
10192else
10193 echo "configure: failed program was:" >&5
10194 cat conftest.$ac_ext >&5
10195 rm -fr conftest*
10196 ac_cv_sizeof_char=0
10197fi
10198rm -fr conftest*
10199fi
10200
10201fi
10202echo "$ac_t""$ac_cv_sizeof_char" 1>&6
10203cat >> confdefs.h <<EOF
10204#define SIZEOF_CHAR $ac_cv_sizeof_char
10205EOF
10206
10207
6f72b082 10208echo $ac_n "checking size of wchar_t""... $ac_c" 1>&6
1db8dc4a 10209echo "configure:10210: checking size of wchar_t" >&5
6f72b082
OK
10210if eval "test \"`echo '$''{'ac_cv_sizeof_wchar_t'+set}'`\" = set"; then
10211 echo $ac_n "(cached) $ac_c" 1>&6
10212else
10213 if test "$cross_compiling" = yes; then
10214 ac_cv_sizeof_wchar_t=4
10215else
10216 cat > conftest.$ac_ext <<EOF
1db8dc4a 10217#line 10218 "configure"
6f72b082
OK
10218#include "confdefs.h"
10219#include <stdio.h>
10220main()
10221{
10222 FILE *f=fopen("conftestval", "w");
10223 if (!f) exit(1);
10224 fprintf(f, "%d\n", sizeof(wchar_t));
10225 exit(0);
10226}
10227EOF
1db8dc4a 10228if { (eval echo configure:10229: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6f72b082
OK
10229then
10230 ac_cv_sizeof_wchar_t=`cat conftestval`
10231else
10232 echo "configure: failed program was:" >&5
10233 cat conftest.$ac_ext >&5
10234 rm -fr conftest*
10235 ac_cv_sizeof_wchar_t=0
10236fi
10237rm -fr conftest*
10238fi
10239
10240fi
10241echo "$ac_t""$ac_cv_sizeof_wchar_t" 1>&6
10242cat >> confdefs.h <<EOF
10243#define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
10244EOF
10245
10246
10f2d63a 10247echo $ac_n "checking size of short""... $ac_c" 1>&6
1db8dc4a 10248echo "configure:10249: checking size of short" >&5
10f2d63a
VZ
10249if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
10250 echo $ac_n "(cached) $ac_c" 1>&6
10251else
10252 if test "$cross_compiling" = yes; then
10253 ac_cv_sizeof_short=2
10254else
10255 cat > conftest.$ac_ext <<EOF
1db8dc4a 10256#line 10257 "configure"
10f2d63a
VZ
10257#include "confdefs.h"
10258#include <stdio.h>
10259main()
10260{
10261 FILE *f=fopen("conftestval", "w");
10262 if (!f) exit(1);
10263 fprintf(f, "%d\n", sizeof(short));
10264 exit(0);
10265}
10266EOF
1db8dc4a 10267if { (eval echo configure:10268: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10f2d63a
VZ
10268then
10269 ac_cv_sizeof_short=`cat conftestval`
10270else
10271 echo "configure: failed program was:" >&5
10272 cat conftest.$ac_ext >&5
10273 rm -fr conftest*
10274 ac_cv_sizeof_short=0
10275fi
10276rm -fr conftest*
10277fi
10278
10279fi
10280echo "$ac_t""$ac_cv_sizeof_short" 1>&6
10281cat >> confdefs.h <<EOF
10282#define SIZEOF_SHORT $ac_cv_sizeof_short
10283EOF
10284
10285
10286echo $ac_n "checking size of int *""... $ac_c" 1>&6
1db8dc4a 10287echo "configure:10288: checking size of int *" >&5
10f2d63a
VZ
10288if eval "test \"`echo '$''{'ac_cv_sizeof_int_p'+set}'`\" = set"; then
10289 echo $ac_n "(cached) $ac_c" 1>&6
10290else
10291 if test "$cross_compiling" = yes; then
10292 ac_cv_sizeof_int_p=4
10293else
10294 cat > conftest.$ac_ext <<EOF
1db8dc4a 10295#line 10296 "configure"
10f2d63a
VZ
10296#include "confdefs.h"
10297#include <stdio.h>
10298main()
10299{
10300 FILE *f=fopen("conftestval", "w");
10301 if (!f) exit(1);
10302 fprintf(f, "%d\n", sizeof(int *));
10303 exit(0);
10304}
10305EOF
1db8dc4a 10306if { (eval echo configure:10307: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10f2d63a
VZ
10307then
10308 ac_cv_sizeof_int_p=`cat conftestval`
10309else
10310 echo "configure: failed program was:" >&5
10311 cat conftest.$ac_ext >&5
10312 rm -fr conftest*
10313 ac_cv_sizeof_int_p=0
10314fi
10315rm -fr conftest*
10316fi
10317
10318fi
10319echo "$ac_t""$ac_cv_sizeof_int_p" 1>&6
10320cat >> confdefs.h <<EOF
10321#define SIZEOF_INT_P $ac_cv_sizeof_int_p
10322EOF
10323
10324
10325echo $ac_n "checking size of int""... $ac_c" 1>&6
1db8dc4a 10326echo "configure:10327: checking size of int" >&5
10f2d63a
VZ
10327if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
10328 echo $ac_n "(cached) $ac_c" 1>&6
10329else
10330 if test "$cross_compiling" = yes; then
10331 ac_cv_sizeof_int=4
10332else
10333 cat > conftest.$ac_ext <<EOF
1db8dc4a 10334#line 10335 "configure"
10f2d63a
VZ
10335#include "confdefs.h"
10336#include <stdio.h>
10337main()
10338{
10339 FILE *f=fopen("conftestval", "w");
10340 if (!f) exit(1);
10341 fprintf(f, "%d\n", sizeof(int));
10342 exit(0);
10343}
10344EOF
1db8dc4a 10345if { (eval echo configure:10346: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10f2d63a
VZ
10346then
10347 ac_cv_sizeof_int=`cat conftestval`
10348else
10349 echo "configure: failed program was:" >&5
10350 cat conftest.$ac_ext >&5
10351 rm -fr conftest*
10352 ac_cv_sizeof_int=0
10353fi
10354rm -fr conftest*
10355fi
10356
10357fi
10358echo "$ac_t""$ac_cv_sizeof_int" 1>&6
10359cat >> confdefs.h <<EOF
10360#define SIZEOF_INT $ac_cv_sizeof_int
10361EOF
10362
10363
10364echo $ac_n "checking size of long""... $ac_c" 1>&6
1db8dc4a 10365echo "configure:10366: checking size of long" >&5
10f2d63a
VZ
10366if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
10367 echo $ac_n "(cached) $ac_c" 1>&6
10368else
10369 if test "$cross_compiling" = yes; then
10370 ac_cv_sizeof_long=4
10371else
10372 cat > conftest.$ac_ext <<EOF
1db8dc4a 10373#line 10374 "configure"
10f2d63a
VZ
10374#include "confdefs.h"
10375#include <stdio.h>
10376main()
10377{
10378 FILE *f=fopen("conftestval", "w");
10379 if (!f) exit(1);
10380 fprintf(f, "%d\n", sizeof(long));
10381 exit(0);
10382}
10383EOF
1db8dc4a 10384if { (eval echo configure:10385: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10f2d63a
VZ
10385then
10386 ac_cv_sizeof_long=`cat conftestval`
10387else
10388 echo "configure: failed program was:" >&5
10389 cat conftest.$ac_ext >&5
10390 rm -fr conftest*
10391 ac_cv_sizeof_long=0
10392fi
10393rm -fr conftest*
10394fi
10395
10396fi
10397echo "$ac_t""$ac_cv_sizeof_long" 1>&6
10398cat >> confdefs.h <<EOF
10399#define SIZEOF_LONG $ac_cv_sizeof_long
10400EOF
10401
10402
10403echo $ac_n "checking size of long long""... $ac_c" 1>&6
1db8dc4a 10404echo "configure:10405: checking size of long long" >&5
10f2d63a
VZ
10405if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
10406 echo $ac_n "(cached) $ac_c" 1>&6
10407else
10408 if test "$cross_compiling" = yes; then
10409 ac_cv_sizeof_long_long=0
10410else
10411 cat > conftest.$ac_ext <<EOF
1db8dc4a 10412#line 10413 "configure"
10f2d63a
VZ
10413#include "confdefs.h"
10414#include <stdio.h>
10415main()
10416{
10417 FILE *f=fopen("conftestval", "w");
10418 if (!f) exit(1);
10419 fprintf(f, "%d\n", sizeof(long long));
10420 exit(0);
10421}
10422EOF
1db8dc4a 10423if { (eval echo configure:10424: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10f2d63a
VZ
10424then
10425 ac_cv_sizeof_long_long=`cat conftestval`
10426else
10427 echo "configure: failed program was:" >&5
10428 cat conftest.$ac_ext >&5
10429 rm -fr conftest*
10430 ac_cv_sizeof_long_long=0
10431fi
10432rm -fr conftest*
10433fi
10434
10435fi
10436echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
10437cat >> confdefs.h <<EOF
10438#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
10439EOF
10440
10441
10442
10443echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
1db8dc4a 10444echo "configure:10445: checking whether byte ordering is bigendian" >&5
10f2d63a
VZ
10445if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
10446 echo $ac_n "(cached) $ac_c" 1>&6
10447else
10448 ac_cv_c_bigendian=unknown
10449# See if sys/param.h defines the BYTE_ORDER macro.
10450cat > conftest.$ac_ext <<EOF
1db8dc4a 10451#line 10452 "configure"
10f2d63a
VZ
10452#include "confdefs.h"
10453#include <sys/types.h>
10454#include <sys/param.h>
10455int main() {
10456
10457#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
10458 bogus endian macros
10459#endif
10460; return 0; }
10461EOF
1db8dc4a 10462if { (eval echo configure:10463: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10f2d63a
VZ
10463 rm -rf conftest*
10464 # It does; now see whether it defined to BIG_ENDIAN or not.
10465cat > conftest.$ac_ext <<EOF
1db8dc4a 10466#line 10467 "configure"
10f2d63a
VZ
10467#include "confdefs.h"
10468#include <sys/types.h>
10469#include <sys/param.h>
10470int main() {
10471
10472#if BYTE_ORDER != BIG_ENDIAN
10473 not big endian
10474#endif
10475; return 0; }
10476EOF
1db8dc4a 10477if { (eval echo configure:10478: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10f2d63a
VZ
10478 rm -rf conftest*
10479 ac_cv_c_bigendian=yes
10480else
10481 echo "configure: failed program was:" >&5
10482 cat conftest.$ac_ext >&5
10483 rm -rf conftest*
10484 ac_cv_c_bigendian=no
10485fi
10486rm -f conftest*
10487else
10488 echo "configure: failed program was:" >&5
10489 cat conftest.$ac_ext >&5
10490fi
10491rm -f conftest*
10492if test $ac_cv_c_bigendian = unknown; then
10493if test "$cross_compiling" = yes; then
10494 ac_cv_c_bigendian=unknown
10495else
10496 cat > conftest.$ac_ext <<EOF
1db8dc4a 10497#line 10498 "configure"
10f2d63a
VZ
10498#include "confdefs.h"
10499main () {
10500 /* Are we little or big endian? From Harbison&Steele. */
10501 union
10502 {
10503 long l;
10504 char c[sizeof (long)];
10505 } u;
10506 u.l = 1;
10507 exit (u.c[sizeof (long) - 1] == 1);
10508}
10509EOF
1db8dc4a 10510if { (eval echo configure:10511: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10f2d63a
VZ
10511then
10512 ac_cv_c_bigendian=no
10513else
10514 echo "configure: failed program was:" >&5
10515 cat conftest.$ac_ext >&5
10516 rm -fr conftest*
10517 ac_cv_c_bigendian=yes
10518fi
10519rm -fr conftest*
10520fi
10521
10522fi
10523fi
10524
10525echo "$ac_t""$ac_cv_c_bigendian" 1>&6
10526if test $ac_cv_c_bigendian = unknown; then
10527 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
10528fi
10529if test $ac_cv_c_bigendian = yes; then
10530 cat >> confdefs.h <<\EOF
10531#define WORDS_BIGENDIAN 1
10532EOF
10533
10534fi
10535
10536
10537
10538 if test "$cross_compiling" = "yes"; then
10539 cat >> confdefs.h <<\EOF
10540#define wxUSE_IOSTREAMH 1
10541EOF
10542
10543 else
10544
10545 ac_ext=C
10546# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10547ac_cpp='$CXXCPP $CPPFLAGS'
10548ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10549ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10550cross_compiling=$ac_cv_prog_cxx_cross
10551
10552
10553 for ac_hdr in iostream
10554do
10555ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10556echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1db8dc4a 10557echo "configure:10558: checking for $ac_hdr" >&5
10f2d63a
VZ
10558if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10559 echo $ac_n "(cached) $ac_c" 1>&6
10560else
10561 cat > conftest.$ac_ext <<EOF
1db8dc4a 10562#line 10563 "configure"
10f2d63a
VZ
10563#include "confdefs.h"
10564#include <$ac_hdr>
10565EOF
10566ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1db8dc4a 10567{ (eval echo configure:10568: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
10568ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10569if test -z "$ac_err"; then
10570 rm -rf conftest*
10571 eval "ac_cv_header_$ac_safe=yes"
10572else
10573 echo "$ac_err" >&5
10574 echo "configure: failed program was:" >&5
10575 cat conftest.$ac_ext >&5
10576 rm -rf conftest*
10577 eval "ac_cv_header_$ac_safe=no"
10578fi
10579rm -f conftest*
10580fi
10581if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10582 echo "$ac_t""yes" 1>&6
10583 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10584 cat >> confdefs.h <<EOF
10585#define $ac_tr_hdr 1
10586EOF
10587
10588else
10589 echo "$ac_t""no" 1>&6
10590fi
10591done
10592
10593
10594 if test "x$HAVE_IOSTREAM" = x ; then
10595 cat >> confdefs.h <<\EOF
10596#define wxUSE_IOSTREAMH 1
10597EOF
10598
10599 else
10600 :
10601 fi
10602
10603 ac_ext=c
10604# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10605ac_cpp='$CPP $CPPFLAGS'
10606ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10607ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10608cross_compiling=$ac_cv_prog_cc_cross
10609
10610 fi
10611
10612
10613
10614 echo $ac_n "checking if C++ compiler supports bool""... $ac_c" 1>&6
1db8dc4a 10615echo "configure:10616: checking if C++ compiler supports bool" >&5
10f2d63a
VZ
10616if eval "test \"`echo '$''{'wx_cv_cpp_bool'+set}'`\" = set"; then
10617 echo $ac_n "(cached) $ac_c" 1>&6
10618else
10619
10620
10621 ac_ext=C
10622# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10623ac_cpp='$CXXCPP $CPPFLAGS'
10624ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10625ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10626cross_compiling=$ac_cv_prog_cxx_cross
10627
10628
10629 cat > conftest.$ac_ext <<EOF
1db8dc4a 10630#line 10631 "configure"
10f2d63a
VZ
10631#include "confdefs.h"
10632
10633
10634int main() {
10635
10636 bool b = true;
10637
10638 return 0;
10639
10640; return 0; }
10641EOF
1db8dc4a 10642if { (eval echo configure:10643: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10f2d63a
VZ
10643 rm -rf conftest*
10644
10645 cat >> confdefs.h <<\EOF
10646#define HAVE_BOOL 1
10647EOF
10648
10649 wx_cv_cpp_bool=yes
10650
10651else
10652 echo "configure: failed program was:" >&5
10653 cat conftest.$ac_ext >&5
10654 rm -rf conftest*
10655
10656 wx_cv_cpp_bool=no
10657
10658
10659fi
10660rm -f conftest*
10661
10662 ac_ext=c
10663# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10664ac_cpp='$CPP $CPPFLAGS'
10665ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10666ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10667cross_compiling=$ac_cv_prog_cc_cross
10668
10669
10670fi
10671
10672echo "$ac_t""$wx_cv_cpp_bool" 1>&6
10673
10674 if test "$wx_cv_cpp_bool" = "yes"; then
10675 cat >> confdefs.h <<\EOF
10676#define HAVE_BOOL 1
10677EOF
10678
10679 fi
10680
10681
10682
10f2d63a 10683echo $ac_n "checking if you need GNU extensions""... $ac_c" 1>&6
1db8dc4a 10684echo "configure:10685: checking if you need GNU extensions" >&5
10f2d63a
VZ
10685if eval "test \"`echo '$''{'wx_cv_gnu_extensions'+set}'`\" = set"; then
10686 echo $ac_n "(cached) $ac_c" 1>&6
10687else
10688
10689 cat > conftest.$ac_ext <<EOF
1db8dc4a 10690#line 10691 "configure"
10f2d63a
VZ
10691#include "confdefs.h"
10692#include <features.h>
10693int main() {
10694
10695
10696#ifndef __GNU_LIBRARY__
10697 Compile error wanted
10698#endif
10699
10700
10701; return 0; }
10702EOF
1db8dc4a 10703if { (eval echo configure:10704: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10f2d63a
VZ
10704 rm -rf conftest*
10705 wx_cv_gnu_extensions=yes
10706else
10707 echo "configure: failed program was:" >&5
10708 cat conftest.$ac_ext >&5
10709 rm -rf conftest*
10710 wx_cv_gnu_extensions=no
10711fi
10712rm -f conftest*
10713
10714fi
10715
10716
10717echo "$ac_t""$wx_cv_gnu_extensions" 1>&6
10718if test "$wx_cv_gnu_extensions" = "yes"; then
10719 cat >> confdefs.h <<EOF
10720#define _GNU_SOURCE 1
10721EOF
10722
10723fi
10724
10725
10726
10727echo $ac_n "checking for wcslen in -lc""... $ac_c" 1>&6
1db8dc4a 10728echo "configure:10729: checking for wcslen in -lc" >&5
10f2d63a
VZ
10729ac_lib_var=`echo c'_'wcslen | sed 'y%./+-%__p_%'`
10730if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10731 echo $ac_n "(cached) $ac_c" 1>&6
10732else
10733 ac_save_LIBS="$LIBS"
10734LIBS="-lc $LIBS"
10735cat > conftest.$ac_ext <<EOF
1db8dc4a 10736#line 10737 "configure"
10f2d63a
VZ
10737#include "confdefs.h"
10738/* Override any gcc2 internal prototype to avoid an error. */
10739/* We use char because int might match the return type of a gcc2
10740 builtin and then its argument prototype would still apply. */
10741char wcslen();
10742
10743int main() {
10744wcslen()
10745; return 0; }
10746EOF
1db8dc4a 10747if { (eval echo configure:10748: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
10748 rm -rf conftest*
10749 eval "ac_cv_lib_$ac_lib_var=yes"
10750else
10751 echo "configure: failed program was:" >&5
10752 cat conftest.$ac_ext >&5
10753 rm -rf conftest*
10754 eval "ac_cv_lib_$ac_lib_var=no"
10755fi
10756rm -f conftest*
10757LIBS="$ac_save_LIBS"
10758
10759fi
10760if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10761 echo "$ac_t""yes" 1>&6
10762
10763 cat >> confdefs.h <<\EOF
10764#define HAVE_WCSLEN 1
10765EOF
10766
10767 WCHAR_LINK=""
10768
10769else
10770 echo "$ac_t""no" 1>&6
10771
10772 echo $ac_n "checking for wcslen in -lw""... $ac_c" 1>&6
1db8dc4a 10773echo "configure:10774: checking for wcslen in -lw" >&5
10f2d63a
VZ
10774ac_lib_var=`echo w'_'wcslen | sed 'y%./+-%__p_%'`
10775if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10776 echo $ac_n "(cached) $ac_c" 1>&6
10777else
10778 ac_save_LIBS="$LIBS"
10779LIBS="-lw $LIBS"
10780cat > conftest.$ac_ext <<EOF
1db8dc4a 10781#line 10782 "configure"
10f2d63a
VZ
10782#include "confdefs.h"
10783/* Override any gcc2 internal prototype to avoid an error. */
10784/* We use char because int might match the return type of a gcc2
10785 builtin and then its argument prototype would still apply. */
10786char wcslen();
10787
10788int main() {
10789wcslen()
10790; return 0; }
10791EOF
1db8dc4a 10792if { (eval echo configure:10793: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
10793 rm -rf conftest*
10794 eval "ac_cv_lib_$ac_lib_var=yes"
10795else
10796 echo "configure: failed program was:" >&5
10797 cat conftest.$ac_ext >&5
10798 rm -rf conftest*
10799 eval "ac_cv_lib_$ac_lib_var=no"
10800fi
10801rm -f conftest*
10802LIBS="$ac_save_LIBS"
10803
10804fi
10805if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10806 echo "$ac_t""yes" 1>&6
10807
10808 cat >> confdefs.h <<\EOF
10809#define HAVE_WCSLEN 1
10810EOF
10811
10812 WCHAR_LINK="-lw"
10813
10814else
10815 echo "$ac_t""no" 1>&6
10816fi
10817
10818
10819fi
10820
10821
10822echo $ac_n "checking for vprintf""... $ac_c" 1>&6
1db8dc4a 10823echo "configure:10824: checking for vprintf" >&5
10f2d63a
VZ
10824if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
10825 echo $ac_n "(cached) $ac_c" 1>&6
10826else
10827 cat > conftest.$ac_ext <<EOF
1db8dc4a 10828#line 10829 "configure"
10f2d63a
VZ
10829#include "confdefs.h"
10830/* System header to define __stub macros and hopefully few prototypes,
10831 which can conflict with char vprintf(); below. */
10832#include <assert.h>
10833/* Override any gcc2 internal prototype to avoid an error. */
10834/* We use char because int might match the return type of a gcc2
10835 builtin and then its argument prototype would still apply. */
10836char vprintf();
10837
10838int main() {
10839
10840/* The GNU C library defines this for functions which it implements
10841 to always fail with ENOSYS. Some functions are actually named
10842 something starting with __ and the normal name is an alias. */
10843#if defined (__stub_vprintf) || defined (__stub___vprintf)
10844choke me
10845#else
e8482f24 10846vprintf();
10f2d63a
VZ
10847#endif
10848
10849; return 0; }
10850EOF
1db8dc4a 10851if { (eval echo configure:10852: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
10852 rm -rf conftest*
10853 eval "ac_cv_func_vprintf=yes"
10854else
10855 echo "configure: failed program was:" >&5
10856 cat conftest.$ac_ext >&5
10857 rm -rf conftest*
10858 eval "ac_cv_func_vprintf=no"
10859fi
10860rm -f conftest*
10861fi
10862
10863if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
10864 echo "$ac_t""yes" 1>&6
10865 cat >> confdefs.h <<\EOF
10866#define HAVE_VPRINTF 1
10867EOF
10868
10869else
10870 echo "$ac_t""no" 1>&6
10871fi
10872
10873if test "$ac_cv_func_vprintf" != yes; then
10874echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
1db8dc4a 10875echo "configure:10876: checking for _doprnt" >&5
10f2d63a
VZ
10876if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
10877 echo $ac_n "(cached) $ac_c" 1>&6
10878else
10879 cat > conftest.$ac_ext <<EOF
1db8dc4a 10880#line 10881 "configure"
10f2d63a
VZ
10881#include "confdefs.h"
10882/* System header to define __stub macros and hopefully few prototypes,
10883 which can conflict with char _doprnt(); below. */
10884#include <assert.h>
10885/* Override any gcc2 internal prototype to avoid an error. */
10886/* We use char because int might match the return type of a gcc2
10887 builtin and then its argument prototype would still apply. */
10888char _doprnt();
10889
10890int main() {
10891
10892/* The GNU C library defines this for functions which it implements
10893 to always fail with ENOSYS. Some functions are actually named
10894 something starting with __ and the normal name is an alias. */
10895#if defined (__stub__doprnt) || defined (__stub____doprnt)
10896choke me
10897#else
e8482f24 10898_doprnt();
10f2d63a
VZ
10899#endif
10900
10901; return 0; }
10902EOF
1db8dc4a 10903if { (eval echo configure:10904: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
10904 rm -rf conftest*
10905 eval "ac_cv_func__doprnt=yes"
10906else
10907 echo "configure: failed program was:" >&5
10908 cat conftest.$ac_ext >&5
10909 rm -rf conftest*
10910 eval "ac_cv_func__doprnt=no"
10911fi
10912rm -f conftest*
10913fi
10914
10915if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
10916 echo "$ac_t""yes" 1>&6
10917 cat >> confdefs.h <<\EOF
10918#define HAVE_DOPRNT 1
10919EOF
10920
10921else
10922 echo "$ac_t""no" 1>&6
10923fi
10924
10925fi
10926
10927
10f2d63a 10928
f6bcfd97
BP
10929ac_ext=C
10930# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10931ac_cpp='$CXXCPP $CPPFLAGS'
10932ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10933ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10934cross_compiling=$ac_cv_prog_cxx_cross
10935
10936
10937
10938
c521c494 10939
f6bcfd97 10940echo $ac_n "checking for vsnprintf""... $ac_c" 1>&6
1db8dc4a 10941echo "configure:10942: checking for vsnprintf" >&5
f6bcfd97
BP
10942if eval "test \"`echo '$''{'wx_cv_func_vsnprintf'+set}'`\" = set"; then
10943 echo $ac_n "(cached) $ac_c" 1>&6
10944else
10945
10946 cat > conftest.$ac_ext <<EOF
1db8dc4a 10947#line 10948 "configure"
f6bcfd97
BP
10948#include "confdefs.h"
10949
10950 #include <stdio.h>
10951 #include <stdarg.h>
10952
10f2d63a
VZ
10953int main() {
10954
f6bcfd97 10955 int wx_test_vsnprintf(const char *, ...);
10f2d63a 10956
f6bcfd97
BP
10957 wx_test_vsnprintf("%s");
10958 return 0;
10959 }
10960
10961 int wx_test_vsnprintf(const char *fmt, ...)
10962 {
10963 char *s;
10964
10965 va_list argp;
10966 va_start(argp, fmt);
10967 vsnprintf(s, 42, fmt, argp);
10968 va_end(argp);
10969
10f2d63a
VZ
10970; return 0; }
10971EOF
1db8dc4a 10972if { (eval echo configure:10973: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10f2d63a 10973 rm -rf conftest*
f6bcfd97
BP
10974
10975 cat >> confdefs.h <<\EOF
10976#define HAVE_VSNPRINTF 1
10977EOF
10978
10979 wx_cv_func_vsnprintf=yes
10980
10f2d63a
VZ
10981else
10982 echo "configure: failed program was:" >&5
10983 cat conftest.$ac_ext >&5
10984 rm -rf conftest*
f6bcfd97 10985
c521c494 10986 cat > conftest.$ac_ext <<EOF
1db8dc4a 10987#line 10988 "configure"
c521c494
RL
10988#include "confdefs.h"
10989
10990 #include <stdio.h>
10991 #include <stdarg.h>
10992
10993int main() {
10994
10995 int wx_test_vsnprintf(const char *, ...);
10996
10997 wx_test_vsnprintf("%s");
10998 return 0;
10999 }
11000
11001 int wx_test_vsnprintf(const char *fmt, ...)
11002 {
11003 char *s;
11004
11005 va_list argp;
11006 va_start(argp, fmt);
11007 _vsnprintf(s, 42, fmt, argp);
11008 va_end(argp);
11009
11010; return 0; }
11011EOF
1db8dc4a 11012if { (eval echo configure:11013: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
c521c494
RL
11013 rm -rf conftest*
11014
11015 cat >> confdefs.h <<\EOF
11016#define HAVE_VSNPRINTF 1
11017EOF
11018
11019 wx_cv_func_vsnprintf=yes
11020
11021else
11022 echo "configure: failed program was:" >&5
11023 cat conftest.$ac_ext >&5
11024 rm -rf conftest*
11025
11026 echo "configure: warning: unsafe function sprintf will be used instead of snprintf" 1>&2
11027 wx_cv_func_vsnprintf=no
11028
11029fi
11030rm -f conftest*
f6bcfd97 11031
10f2d63a
VZ
11032fi
11033rm -f conftest*
10f2d63a 11034
10f2d63a 11035fi
10f2d63a 11036
f6bcfd97 11037echo "$ac_t""$wx_cv_func_vsnprintf" 1>&6
10f2d63a
VZ
11038
11039echo $ac_n "checking for vsscanf""... $ac_c" 1>&6
1db8dc4a 11040echo "configure:11041: checking for vsscanf" >&5
10f2d63a
VZ
11041if eval "test \"`echo '$''{'wx_cv_func_vsscanf'+set}'`\" = set"; then
11042 echo $ac_n "(cached) $ac_c" 1>&6
11043else
11044
10f2d63a 11045 cat > conftest.$ac_ext <<EOF
1db8dc4a 11046#line 11047 "configure"
10f2d63a 11047#include "confdefs.h"
10f2d63a 11048
f6bcfd97
BP
11049 #include <stdio.h>
11050 #include <stdarg.h>
11051
11052int main() {
10f2d63a 11053
f6bcfd97 11054 int wx_test_vsscanf(const char *, ...);
10f2d63a 11055
f6bcfd97
BP
11056 wx_test_vsscanf("%d");
11057 return 0;
10f2d63a
VZ
11058 }
11059
f6bcfd97 11060 int wx_test_vsscanf(const char *fmt, ...)
10f2d63a 11061 {
f6bcfd97
BP
11062 va_list argp;
11063 va_start(argp, fmt);
11064 vsscanf("42", fmt, argp);
11065 va_end(argp);
11066
11067; return 0; }
10f2d63a 11068EOF
1db8dc4a 11069if { (eval echo configure:11070: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
f6bcfd97 11070 rm -rf conftest*
10f2d63a 11071
f6bcfd97 11072 cat >> confdefs.h <<\EOF
10f2d63a
VZ
11073#define HAVE_VSSCANF 1
11074EOF
11075
f6bcfd97
BP
11076 wx_cv_func_vsscanf=yes
11077
10f2d63a
VZ
11078else
11079 echo "configure: failed program was:" >&5
11080 cat conftest.$ac_ext >&5
f6bcfd97
BP
11081 rm -rf conftest*
11082
11083 wx_cv_func_vsscanf=no
11084
10f2d63a 11085fi
f6bcfd97 11086rm -f conftest*
10f2d63a
VZ
11087
11088fi
11089
11090echo "$ac_t""$wx_cv_func_vsscanf" 1>&6
11091
11092ac_ext=c
11093# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11094ac_cpp='$CPP $CPPFLAGS'
11095ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11096ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11097cross_compiling=$ac_cv_prog_cc_cross
11098
11099
b089607b 11100if test "$TOOLKIT" != "MSW"; then
10f2d63a 11101
eb4efbdc
VZ
11102if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
11103 for ac_func in sigaction
11104do
11105echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1db8dc4a 11106echo "configure:11107: checking for $ac_func" >&5
eb4efbdc
VZ
11107if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11108 echo $ac_n "(cached) $ac_c" 1>&6
11109else
11110 cat > conftest.$ac_ext <<EOF
1db8dc4a 11111#line 11112 "configure"
eb4efbdc
VZ
11112#include "confdefs.h"
11113/* System header to define __stub macros and hopefully few prototypes,
11114 which can conflict with char $ac_func(); below. */
11115#include <assert.h>
11116/* Override any gcc2 internal prototype to avoid an error. */
11117/* We use char because int might match the return type of a gcc2
11118 builtin and then its argument prototype would still apply. */
11119char $ac_func();
11120
11121int main() {
11122
11123/* The GNU C library defines this for functions which it implements
11124 to always fail with ENOSYS. Some functions are actually named
11125 something starting with __ and the normal name is an alias. */
11126#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11127choke me
11128#else
11129$ac_func();
11130#endif
11131
11132; return 0; }
11133EOF
1db8dc4a 11134if { (eval echo configure:11135: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
eb4efbdc
VZ
11135 rm -rf conftest*
11136 eval "ac_cv_func_$ac_func=yes"
11137else
11138 echo "configure: failed program was:" >&5
11139 cat conftest.$ac_ext >&5
11140 rm -rf conftest*
11141 eval "ac_cv_func_$ac_func=no"
11142fi
11143rm -f conftest*
11144fi
11145
11146if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11147 echo "$ac_t""yes" 1>&6
11148 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11149 cat >> confdefs.h <<EOF
11150#define $ac_tr_func 1
11151EOF
11152
11153else
11154 echo "$ac_t""no" 1>&6
11155fi
11156done
11157
11158
11159 if test "$ac_cv_func_sigaction" = "no"; then
11160 echo "configure: warning: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" 1>&2
11161 wxUSE_ON_FATAL_EXCEPTION=no
11162 fi
f6bcfd97
BP
11163
11164 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
11165
11166 ac_ext=C
11167# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11168ac_cpp='$CXXCPP $CPPFLAGS'
11169ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11170ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11171cross_compiling=$ac_cv_prog_cxx_cross
11172
11173
11174 echo $ac_n "checking for sa_handler type""... $ac_c" 1>&6
1db8dc4a 11175echo "configure:11176: checking for sa_handler type" >&5
f6bcfd97
BP
11176if eval "test \"`echo '$''{'wx_cv_type_sa_handler'+set}'`\" = set"; then
11177 echo $ac_n "(cached) $ac_c" 1>&6
11178else
11179
11180 cat > conftest.$ac_ext <<EOF
1db8dc4a 11181#line 11182 "configure"
f6bcfd97
BP
11182#include "confdefs.h"
11183#include <signal.h>
11184int main() {
11185
11186 extern void testSigHandler(int);
11187
11188 struct sigaction sa;
11189 sa.sa_handler = testSigHandler;
11190
11191; return 0; }
11192EOF
1db8dc4a 11193if { (eval echo configure:11194: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
f6bcfd97
BP
11194 rm -rf conftest*
11195
11196 wx_cv_type_sa_handler=int
11197
11198else
11199 echo "configure: failed program was:" >&5
11200 cat conftest.$ac_ext >&5
11201 rm -rf conftest*
11202
11203 wx_cv_type_sa_handler=void
11204
11205fi
11206rm -f conftest*
11207
11208fi
11209
11210echo "$ac_t""$wx_cv_type_sa_handler" 1>&6
11211
11212 ac_ext=c
11213# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11214ac_cpp='$CPP $CPPFLAGS'
11215ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11216ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11217cross_compiling=$ac_cv_prog_cc_cross
11218
11219
11220 cat >> confdefs.h <<EOF
11221#define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
11222EOF
11223
11224 fi
eb4efbdc
VZ
11225fi
11226
10f2d63a
VZ
11227for ac_func in vfork
11228do
11229echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1db8dc4a 11230echo "configure:11231: checking for $ac_func" >&5
10f2d63a
VZ
11231if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11232 echo $ac_n "(cached) $ac_c" 1>&6
11233else
11234 cat > conftest.$ac_ext <<EOF
1db8dc4a 11235#line 11236 "configure"
10f2d63a
VZ
11236#include "confdefs.h"
11237/* System header to define __stub macros and hopefully few prototypes,
11238 which can conflict with char $ac_func(); below. */
11239#include <assert.h>
11240/* Override any gcc2 internal prototype to avoid an error. */
11241/* We use char because int might match the return type of a gcc2
11242 builtin and then its argument prototype would still apply. */
11243char $ac_func();
11244
11245int main() {
11246
11247/* The GNU C library defines this for functions which it implements
11248 to always fail with ENOSYS. Some functions are actually named
11249 something starting with __ and the normal name is an alias. */
11250#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11251choke me
11252#else
e8482f24 11253$ac_func();
10f2d63a
VZ
11254#endif
11255
11256; return 0; }
11257EOF
1db8dc4a 11258if { (eval echo configure:11259: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
270a909e
VZ
11259 rm -rf conftest*
11260 eval "ac_cv_func_$ac_func=yes"
11261else
11262 echo "configure: failed program was:" >&5
11263 cat conftest.$ac_ext >&5
11264 rm -rf conftest*
11265 eval "ac_cv_func_$ac_func=no"
11266fi
11267rm -f conftest*
11268fi
11269
11270if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11271 echo "$ac_t""yes" 1>&6
11272 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11273 cat >> confdefs.h <<EOF
11274#define $ac_tr_func 1
11275EOF
11276
11277else
11278 echo "$ac_t""no" 1>&6
11279fi
11280done
11281
11282
11283for ac_func in timegm
11284do
11285echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1db8dc4a 11286echo "configure:11287: checking for $ac_func" >&5
270a909e
VZ
11287if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11288 echo $ac_n "(cached) $ac_c" 1>&6
11289else
11290 cat > conftest.$ac_ext <<EOF
1db8dc4a 11291#line 11292 "configure"
270a909e
VZ
11292#include "confdefs.h"
11293/* System header to define __stub macros and hopefully few prototypes,
11294 which can conflict with char $ac_func(); below. */
11295#include <assert.h>
11296/* Override any gcc2 internal prototype to avoid an error. */
11297/* We use char because int might match the return type of a gcc2
11298 builtin and then its argument prototype would still apply. */
11299char $ac_func();
11300
11301int main() {
11302
11303/* The GNU C library defines this for functions which it implements
11304 to always fail with ENOSYS. Some functions are actually named
11305 something starting with __ and the normal name is an alias. */
11306#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11307choke me
11308#else
e8482f24 11309$ac_func();
270a909e
VZ
11310#endif
11311
11312; return 0; }
11313EOF
1db8dc4a 11314if { (eval echo configure:11315: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
11315 rm -rf conftest*
11316 eval "ac_cv_func_$ac_func=yes"
11317else
11318 echo "configure: failed program was:" >&5
11319 cat conftest.$ac_ext >&5
11320 rm -rf conftest*
11321 eval "ac_cv_func_$ac_func=no"
11322fi
11323rm -f conftest*
11324fi
11325
11326if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11327 echo "$ac_t""yes" 1>&6
11328 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11329 cat >> confdefs.h <<EOF
11330#define $ac_tr_func 1
11331EOF
11332
11333else
11334 echo "$ac_t""no" 1>&6
11335fi
11336done
11337
11338
8fd0d89b
VZ
11339for ac_func in putenv setenv
11340do
11341echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1db8dc4a 11342echo "configure:11343: checking for $ac_func" >&5
8fd0d89b
VZ
11343if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11344 echo $ac_n "(cached) $ac_c" 1>&6
11345else
11346 cat > conftest.$ac_ext <<EOF
1db8dc4a 11347#line 11348 "configure"
8fd0d89b
VZ
11348#include "confdefs.h"
11349/* System header to define __stub macros and hopefully few prototypes,
11350 which can conflict with char $ac_func(); below. */
11351#include <assert.h>
11352/* Override any gcc2 internal prototype to avoid an error. */
11353/* We use char because int might match the return type of a gcc2
11354 builtin and then its argument prototype would still apply. */
11355char $ac_func();
11356
11357int main() {
11358
11359/* The GNU C library defines this for functions which it implements
11360 to always fail with ENOSYS. Some functions are actually named
11361 something starting with __ and the normal name is an alias. */
11362#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11363choke me
11364#else
11365$ac_func();
11366#endif
11367
11368; return 0; }
11369EOF
1db8dc4a 11370if { (eval echo configure:11371: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8fd0d89b
VZ
11371 rm -rf conftest*
11372 eval "ac_cv_func_$ac_func=yes"
11373else
11374 echo "configure: failed program was:" >&5
11375 cat conftest.$ac_ext >&5
11376 rm -rf conftest*
11377 eval "ac_cv_func_$ac_func=no"
11378fi
11379rm -f conftest*
11380fi
11381
11382if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11383 echo "$ac_t""yes" 1>&6
11384 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11385 cat >> confdefs.h <<EOF
11386#define $ac_tr_func 1
11387EOF
11388 break
11389else
11390 echo "$ac_t""no" 1>&6
11391fi
11392done
11393
11394
b12915c1
VZ
11395HAVE_SOME_SLEEP_FUNC=0
11396if test "$USE_BEOS" = 1; then
11397 cat >> confdefs.h <<\EOF
11398#define HAVE_SLEEP 1
11399EOF
11400
11401 HAVE_SOME_SLEEP_FUNC=1
11402fi
11403
b4085ce6
GD
11404if test "$USE_MAC" = 1; then
11405 cat >> confdefs.h <<\EOF
11406#define HAVE_USLEEP 1
11407EOF
11408
11409 HAVE_SOME_SLEEP_FUNC=1
11410fi
11411
b12915c1
VZ
11412if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
11413 POSIX4_LINK=
11414 for ac_func in nanosleep
10f2d63a
VZ
11415do
11416echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1db8dc4a 11417echo "configure:11418: checking for $ac_func" >&5
10f2d63a
VZ
11418if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11419 echo $ac_n "(cached) $ac_c" 1>&6
11420else
11421 cat > conftest.$ac_ext <<EOF
1db8dc4a 11422#line 11423 "configure"
10f2d63a
VZ
11423#include "confdefs.h"
11424/* System header to define __stub macros and hopefully few prototypes,
11425 which can conflict with char $ac_func(); below. */
11426#include <assert.h>
11427/* Override any gcc2 internal prototype to avoid an error. */
11428/* We use char because int might match the return type of a gcc2
11429 builtin and then its argument prototype would still apply. */
11430char $ac_func();
11431
11432int main() {
11433
11434/* The GNU C library defines this for functions which it implements
11435 to always fail with ENOSYS. Some functions are actually named
11436 something starting with __ and the normal name is an alias. */
11437#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11438choke me
11439#else
e8482f24 11440$ac_func();
10f2d63a
VZ
11441#endif
11442
11443; return 0; }
11444EOF
1db8dc4a 11445if { (eval echo configure:11446: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
11446 rm -rf conftest*
11447 eval "ac_cv_func_$ac_func=yes"
11448else
11449 echo "configure: failed program was:" >&5
11450 cat conftest.$ac_ext >&5
11451 rm -rf conftest*
11452 eval "ac_cv_func_$ac_func=no"
11453fi
11454rm -f conftest*
11455fi
11456
11457if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11458 echo "$ac_t""yes" 1>&6
11459 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11460 cat >> confdefs.h <<EOF
11461#define $ac_tr_func 1
11462EOF
11463 cat >> confdefs.h <<\EOF
11464#define HAVE_NANOSLEEP 1
11465EOF
11466
11467else
11468 echo "$ac_t""no" 1>&6
11469echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6
1db8dc4a 11470echo "configure:11471: checking for nanosleep in -lposix4" >&5
10f2d63a
VZ
11471ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'`
11472if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11473 echo $ac_n "(cached) $ac_c" 1>&6
11474else
11475 ac_save_LIBS="$LIBS"
11476LIBS="-lposix4 $LIBS"
11477cat > conftest.$ac_ext <<EOF
1db8dc4a 11478#line 11479 "configure"
10f2d63a
VZ
11479#include "confdefs.h"
11480/* Override any gcc2 internal prototype to avoid an error. */
11481/* We use char because int might match the return type of a gcc2
11482 builtin and then its argument prototype would still apply. */
11483char nanosleep();
11484
11485int main() {
11486nanosleep()
11487; return 0; }
11488EOF
1db8dc4a 11489if { (eval echo configure:11490: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
11490 rm -rf conftest*
11491 eval "ac_cv_lib_$ac_lib_var=yes"
11492else
11493 echo "configure: failed program was:" >&5
11494 cat conftest.$ac_ext >&5
11495 rm -rf conftest*
11496 eval "ac_cv_lib_$ac_lib_var=no"
11497fi
11498rm -f conftest*
11499LIBS="$ac_save_LIBS"
11500
11501fi
11502if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11503 echo "$ac_t""yes" 1>&6
11504
b12915c1 11505 cat >> confdefs.h <<\EOF
10f2d63a
VZ
11506#define HAVE_NANOSLEEP 1
11507EOF
11508
b12915c1
VZ
11509 POSIX4_LINK="-lposix4"
11510
10f2d63a
VZ
11511else
11512 echo "$ac_t""no" 1>&6
11513
b12915c1 11514 for ac_func in usleep
10f2d63a
VZ
11515do
11516echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1db8dc4a 11517echo "configure:11518: checking for $ac_func" >&5
10f2d63a
VZ
11518if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11519 echo $ac_n "(cached) $ac_c" 1>&6
11520else
11521 cat > conftest.$ac_ext <<EOF
1db8dc4a 11522#line 11523 "configure"
10f2d63a
VZ
11523#include "confdefs.h"
11524/* System header to define __stub macros and hopefully few prototypes,
11525 which can conflict with char $ac_func(); below. */
11526#include <assert.h>
11527/* Override any gcc2 internal prototype to avoid an error. */
11528/* We use char because int might match the return type of a gcc2
11529 builtin and then its argument prototype would still apply. */
11530char $ac_func();
11531
11532int main() {
11533
11534/* The GNU C library defines this for functions which it implements
11535 to always fail with ENOSYS. Some functions are actually named
11536 something starting with __ and the normal name is an alias. */
11537#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11538choke me
11539#else
e8482f24 11540$ac_func();
10f2d63a
VZ
11541#endif
11542
11543; return 0; }
11544EOF
1db8dc4a 11545if { (eval echo configure:11546: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
11546 rm -rf conftest*
11547 eval "ac_cv_func_$ac_func=yes"
11548else
11549 echo "configure: failed program was:" >&5
11550 cat conftest.$ac_ext >&5
11551 rm -rf conftest*
11552 eval "ac_cv_func_$ac_func=no"
11553fi
11554rm -f conftest*
11555fi
11556
11557if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11558 echo "$ac_t""yes" 1>&6
11559 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11560 cat >> confdefs.h <<EOF
11561#define $ac_tr_func 1
11562EOF
b4085ce6
GD
11563 cat >> confdefs.h <<\EOF
11564#define HAVE_USLEEP 1
11565EOF
11566
10f2d63a
VZ
11567else
11568 echo "$ac_t""no" 1>&6
10f2d63a
VZ
11569fi
11570done
11571
b12915c1
VZ
11572 echo "configure: warning: wxSleep() function will not work" 1>&2
11573
11574
10f2d63a
VZ
11575fi
11576
b12915c1
VZ
11577
11578
10f2d63a
VZ
11579fi
11580done
11581
b12915c1 11582fi
10f2d63a
VZ
11583
11584for ac_func in uname gethostname
11585do
11586echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1db8dc4a 11587echo "configure:11588: checking for $ac_func" >&5
10f2d63a
VZ
11588if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11589 echo $ac_n "(cached) $ac_c" 1>&6
11590else
11591 cat > conftest.$ac_ext <<EOF
1db8dc4a 11592#line 11593 "configure"
10f2d63a
VZ
11593#include "confdefs.h"
11594/* System header to define __stub macros and hopefully few prototypes,
11595 which can conflict with char $ac_func(); below. */
11596#include <assert.h>
11597/* Override any gcc2 internal prototype to avoid an error. */
11598/* We use char because int might match the return type of a gcc2
11599 builtin and then its argument prototype would still apply. */
11600char $ac_func();
11601
11602int main() {
11603
11604/* The GNU C library defines this for functions which it implements
11605 to always fail with ENOSYS. Some functions are actually named
11606 something starting with __ and the normal name is an alias. */
11607#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11608choke me
11609#else
e8482f24 11610$ac_func();
10f2d63a
VZ
11611#endif
11612
11613; return 0; }
11614EOF
1db8dc4a 11615if { (eval echo configure:11616: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
11616 rm -rf conftest*
11617 eval "ac_cv_func_$ac_func=yes"
11618else
11619 echo "configure: failed program was:" >&5
11620 cat conftest.$ac_ext >&5
11621 rm -rf conftest*
11622 eval "ac_cv_func_$ac_func=no"
11623fi
11624rm -f conftest*
11625fi
11626
11627if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11628 echo "$ac_t""yes" 1>&6
11629 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11630 cat >> confdefs.h <<EOF
11631#define $ac_tr_func 1
11632EOF
11633 break
11634else
11635 echo "$ac_t""no" 1>&6
11636fi
11637done
11638
11639
6098c7f9
VZ
11640
11641ac_ext=C
11642# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11643ac_cpp='$CXXCPP $CPPFLAGS'
11644ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11645ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11646cross_compiling=$ac_cv_prog_cxx_cross
11647
11648
10f2d63a
VZ
11649for ac_func in strtok_r
11650do
11651echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1db8dc4a 11652echo "configure:11653: checking for $ac_func" >&5
10f2d63a
VZ
11653if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11654 echo $ac_n "(cached) $ac_c" 1>&6
11655else
11656 cat > conftest.$ac_ext <<EOF
1db8dc4a 11657#line 11658 "configure"
10f2d63a
VZ
11658#include "confdefs.h"
11659/* System header to define __stub macros and hopefully few prototypes,
11660 which can conflict with char $ac_func(); below. */
11661#include <assert.h>
11662/* Override any gcc2 internal prototype to avoid an error. */
6098c7f9
VZ
11663#ifdef __cplusplus
11664extern "C"
11665#endif
10f2d63a
VZ
11666/* We use char because int might match the return type of a gcc2
11667 builtin and then its argument prototype would still apply. */
11668char $ac_func();
11669
11670int main() {
11671
11672/* The GNU C library defines this for functions which it implements
11673 to always fail with ENOSYS. Some functions are actually named
11674 something starting with __ and the normal name is an alias. */
11675#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11676choke me
11677#else
e8482f24 11678$ac_func();
10f2d63a
VZ
11679#endif
11680
11681; return 0; }
11682EOF
1db8dc4a 11683if { (eval echo configure:11684: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
11684 rm -rf conftest*
11685 eval "ac_cv_func_$ac_func=yes"
11686else
11687 echo "configure: failed program was:" >&5
11688 cat conftest.$ac_ext >&5
11689 rm -rf conftest*
11690 eval "ac_cv_func_$ac_func=no"
11691fi
11692rm -f conftest*
11693fi
11694
11695if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11696 echo "$ac_t""yes" 1>&6
11697 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11698 cat >> confdefs.h <<EOF
11699#define $ac_tr_func 1
11700EOF
11701
11702else
11703 echo "$ac_t""no" 1>&6
11704fi
11705done
11706
11707
6098c7f9
VZ
11708ac_ext=c
11709# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11710ac_cpp='$CPP $CPPFLAGS'
11711ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11712ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11713cross_compiling=$ac_cv_prog_cc_cross
11714
11715
c63c7106 11716INET_LINK=
10f2d63a
VZ
11717for ac_func in inet_addr
11718do
11719echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1db8dc4a 11720echo "configure:11721: checking for $ac_func" >&5
10f2d63a
VZ
11721if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11722 echo $ac_n "(cached) $ac_c" 1>&6
11723else
11724 cat > conftest.$ac_ext <<EOF
1db8dc4a 11725#line 11726 "configure"
10f2d63a
VZ
11726#include "confdefs.h"
11727/* System header to define __stub macros and hopefully few prototypes,
11728 which can conflict with char $ac_func(); below. */
11729#include <assert.h>
11730/* Override any gcc2 internal prototype to avoid an error. */
11731/* We use char because int might match the return type of a gcc2
11732 builtin and then its argument prototype would still apply. */
11733char $ac_func();
11734
11735int main() {
11736
11737/* The GNU C library defines this for functions which it implements
11738 to always fail with ENOSYS. Some functions are actually named
11739 something starting with __ and the normal name is an alias. */
11740#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11741choke me
11742#else
e8482f24 11743$ac_func();
10f2d63a
VZ
11744#endif
11745
11746; return 0; }
11747EOF
1db8dc4a 11748if { (eval echo configure:11749: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
11749 rm -rf conftest*
11750 eval "ac_cv_func_$ac_func=yes"
11751else
11752 echo "configure: failed program was:" >&5
11753 cat conftest.$ac_ext >&5
11754 rm -rf conftest*
11755 eval "ac_cv_func_$ac_func=no"
11756fi
11757rm -f conftest*
11758fi
11759
11760if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11761 echo "$ac_t""yes" 1>&6
11762 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11763 cat >> confdefs.h <<EOF
11764#define $ac_tr_func 1
11765EOF
c63c7106
VZ
11766 cat >> confdefs.h <<\EOF
11767#define HAVE_INET_ADDR 1
11768EOF
11769
10f2d63a
VZ
11770else
11771 echo "$ac_t""no" 1>&6
c63c7106 11772echo $ac_n "checking for inet_addr in -lnsl""... $ac_c" 1>&6
1db8dc4a 11773echo "configure:11774: checking for inet_addr in -lnsl" >&5
c63c7106
VZ
11774ac_lib_var=`echo nsl'_'inet_addr | sed 'y%./+-%__p_%'`
11775if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11776 echo $ac_n "(cached) $ac_c" 1>&6
11777else
11778 ac_save_LIBS="$LIBS"
11779LIBS="-lnsl $LIBS"
11780cat > conftest.$ac_ext <<EOF
1db8dc4a 11781#line 11782 "configure"
c63c7106
VZ
11782#include "confdefs.h"
11783/* Override any gcc2 internal prototype to avoid an error. */
11784/* We use char because int might match the return type of a gcc2
11785 builtin and then its argument prototype would still apply. */
11786char inet_addr();
11787
11788int main() {
11789inet_addr()
11790; return 0; }
11791EOF
1db8dc4a 11792if { (eval echo configure:11793: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
c63c7106
VZ
11793 rm -rf conftest*
11794 eval "ac_cv_lib_$ac_lib_var=yes"
11795else
11796 echo "configure: failed program was:" >&5
11797 cat conftest.$ac_ext >&5
11798 rm -rf conftest*
11799 eval "ac_cv_lib_$ac_lib_var=no"
11800fi
11801rm -f conftest*
11802LIBS="$ac_save_LIBS"
11803
11804fi
11805if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11806 echo "$ac_t""yes" 1>&6
11807 INET_LINK="nsl"
11808else
11809 echo "$ac_t""no" 1>&6
11810echo $ac_n "checking for inet_addr in -lresolv""... $ac_c" 1>&6
1db8dc4a 11811echo "configure:11812: checking for inet_addr in -lresolv" >&5
c63c7106
VZ
11812ac_lib_var=`echo resolv'_'inet_addr | sed 'y%./+-%__p_%'`
11813if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11814 echo $ac_n "(cached) $ac_c" 1>&6
11815else
11816 ac_save_LIBS="$LIBS"
11817LIBS="-lresolv $LIBS"
11818cat > conftest.$ac_ext <<EOF
1db8dc4a 11819#line 11820 "configure"
c63c7106
VZ
11820#include "confdefs.h"
11821/* Override any gcc2 internal prototype to avoid an error. */
11822/* We use char because int might match the return type of a gcc2
11823 builtin and then its argument prototype would still apply. */
11824char inet_addr();
11825
11826int main() {
11827inet_addr()
11828; return 0; }
11829EOF
1db8dc4a 11830if { (eval echo configure:11831: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
c63c7106
VZ
11831 rm -rf conftest*
11832 eval "ac_cv_lib_$ac_lib_var=yes"
11833else
11834 echo "configure: failed program was:" >&5
11835 cat conftest.$ac_ext >&5
11836 rm -rf conftest*
11837 eval "ac_cv_lib_$ac_lib_var=no"
11838fi
11839rm -f conftest*
11840LIBS="$ac_save_LIBS"
11841
11842fi
11843if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11844 echo "$ac_t""yes" 1>&6
11845 INET_LINK="resolv"
11846
11847else
11848 echo "$ac_t""no" 1>&6
11849fi
11850
11851
11852fi
11853
11854
11855
10f2d63a
VZ
11856fi
11857done
11858
c63c7106 11859
10f2d63a
VZ
11860for ac_func in inet_aton
11861do
11862echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1db8dc4a 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
1db8dc4a 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
1db8dc4a 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_ATON 1
11911EOF
11912
10f2d63a
VZ
11913else
11914 echo "$ac_t""no" 1>&6
c63c7106 11915 echo $ac_n "checking for inet_aton in -l$INET_LINK""... $ac_c" 1>&6
1db8dc4a 11916echo "configure:11917: checking for inet_aton in -l$INET_LINK" >&5
c63c7106 11917ac_lib_var=`echo $INET_LINK'_'inet_aton | sed 'y%./+-%__p_%'`
10f2d63a
VZ
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"
c63c7106 11922LIBS="-l$INET_LINK $LIBS"
10f2d63a 11923cat > conftest.$ac_ext <<EOF
1db8dc4a 11924#line 11925 "configure"
10f2d63a
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_aton();
11930
11931int main() {
11932inet_aton()
11933; return 0; }
11934EOF
1db8dc4a 11935if { (eval echo configure:11936: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
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
c63c7106
VZ
11950 cat >> confdefs.h <<\EOF
11951#define HAVE_INET_ATON 1
10f2d63a
VZ
11952EOF
11953
10f2d63a
VZ
11954else
11955 echo "$ac_t""no" 1>&6
11956fi
11957
c63c7106
VZ
11958
11959fi
11960done
11961
11962
11963if test "x$INET_LINK" != "x"; then
11964 cat >> confdefs.h <<\EOF
11965#define HAVE_INET_ADDR 1
11966EOF
11967
11968 INET_LINK="-l$INET_LINK"
11969fi
10f2d63a
VZ
11970
11971fi
11972
11973
11974cat > confcache <<\EOF
11975# This file is a shell script that caches the results of configure
11976# tests run on this system so they can be shared between configure
11977# scripts and configure runs. It is not useful on other systems.
11978# If it contains results you don't want to keep, you may remove or edit it.
11979#
11980# By default, configure uses ./config.cache as the cache file,
11981# creating it if it does not exist already. You can give configure
11982# the --cache-file=FILE option to use a different cache file; that is
11983# what configure does when it calls configure scripts in
11984# subdirectories, so they share the cache.
11985# Giving --cache-file=/dev/null disables caching, for debugging configure.
11986# config.status only pays attention to the cache file if you give it the
11987# --recheck option to rerun configure.
11988#
11989EOF
11990# The following way of writing the cache mishandles newlines in values,
11991# but we know of no workaround that is simple, portable, and efficient.
11992# So, don't put newlines in cache variables' values.
11993# Ultrix sh set writes to stderr and can't be redirected directly,
11994# and sets the high bit in the cache file unless we assign to the vars.
11995(set) 2>&1 |
11996 case `(ac_space=' '; set | grep ac_space) 2>&1` in
11997 *ac_space=\ *)
11998 # `set' does not quote correctly, so add quotes (double-quote substitution
11999 # turns \\\\ into \\, and sed turns \\ into \).
12000 sed -n \
12001 -e "s/'/'\\\\''/g" \
12002 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
12003 ;;
12004 *)
12005 # `set' quotes correctly as required by POSIX, so do not add quotes.
12006 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
12007 ;;
12008 esac >> confcache
12009if cmp -s $cache_file confcache; then
12010 :
12011else
12012 if test -w $cache_file; then
12013 echo "updating cache $cache_file"
12014 cat confcache > $cache_file
12015 else
12016 echo "not updating unwritable cache $cache_file"
12017 fi
12018fi
12019rm -f confcache
12020
12021
12022
b089607b 12023if test "$TOOLKIT" != "MSW"; then
10f2d63a
VZ
12024
12025
12026THREADS_LINK=""
12027THREADS_OBJ=""
12028
12029if test "$wxUSE_THREADS" = "yes" ; then
12030 if test "$wxUSE_WINE" = 1 ; then
12031 echo "configure: warning: Threads are not supported under WINE" 1>&2
12032 wxUSE_THREADS="no"
b12915c1
VZ
12033 elif test "$USE_BEOS" = 1; then
12034 echo "configure: warning: BeOS threads are not yet supported" 1>&2
12035 wxUSE_THREADS="no"
10f2d63a
VZ
12036 fi
12037fi
12038
12039if test "$wxUSE_THREADS" = "yes" ; then
12040
186837b0 12041 if test "$USE_AIX" = 1; then
f6bcfd97
BP
12042 THREADS_LIB=pthreads
12043 else
12044 THREADS_LIB=pthread
12045 fi
12046
12047 echo $ac_n "checking for pthread_create in -l$THREADS_LIB""... $ac_c" 1>&6
1db8dc4a 12048echo "configure:12049: checking for pthread_create in -l$THREADS_LIB" >&5
f6bcfd97 12049ac_lib_var=`echo $THREADS_LIB'_'pthread_create | sed 'y%./+-%__p_%'`
10f2d63a
VZ
12050if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12051 echo $ac_n "(cached) $ac_c" 1>&6
12052else
12053 ac_save_LIBS="$LIBS"
f6bcfd97 12054LIBS="-l$THREADS_LIB $LIBS"
10f2d63a 12055cat > conftest.$ac_ext <<EOF
1db8dc4a 12056#line 12057 "configure"
10f2d63a
VZ
12057#include "confdefs.h"
12058/* Override any gcc2 internal prototype to avoid an error. */
12059/* We use char because int might match the return type of a gcc2
12060 builtin and then its argument prototype would still apply. */
12061char pthread_create();
12062
12063int main() {
12064pthread_create()
12065; return 0; }
12066EOF
1db8dc4a 12067if { (eval echo configure:12068: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
12068 rm -rf conftest*
12069 eval "ac_cv_lib_$ac_lib_var=yes"
12070else
12071 echo "configure: failed program was:" >&5
12072 cat conftest.$ac_ext >&5
12073 rm -rf conftest*
12074 eval "ac_cv_lib_$ac_lib_var=no"
12075fi
12076rm -f conftest*
12077LIBS="$ac_save_LIBS"
12078
12079fi
12080if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12081 echo "$ac_t""yes" 1>&6
12082
12083 THREADS_OBJ="threadpsx.lo"
f6bcfd97 12084 THREADS_LINK=$THREADS_LIB
10f2d63a
VZ
12085
12086else
12087 echo "$ac_t""no" 1>&6
12088
12089 echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6
1db8dc4a 12090echo "configure:12091: checking for pthread_create in -lc_r" >&5
10f2d63a
VZ
12091ac_lib_var=`echo c_r'_'pthread_create | sed 'y%./+-%__p_%'`
12092if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12093 echo $ac_n "(cached) $ac_c" 1>&6
12094else
12095 ac_save_LIBS="$LIBS"
12096LIBS="-lc_r $LIBS"
12097cat > conftest.$ac_ext <<EOF
1db8dc4a 12098#line 12099 "configure"
10f2d63a
VZ
12099#include "confdefs.h"
12100/* Override any gcc2 internal prototype to avoid an error. */
12101/* We use char because int might match the return type of a gcc2
12102 builtin and then its argument prototype would still apply. */
12103char pthread_create();
12104
12105int main() {
12106pthread_create()
12107; return 0; }
12108EOF
1db8dc4a 12109if { (eval echo configure:12110: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
12110 rm -rf conftest*
12111 eval "ac_cv_lib_$ac_lib_var=yes"
12112else
12113 echo "configure: failed program was:" >&5
12114 cat conftest.$ac_ext >&5
12115 rm -rf conftest*
12116 eval "ac_cv_lib_$ac_lib_var=no"
12117fi
12118rm -f conftest*
12119LIBS="$ac_save_LIBS"
12120
12121fi
12122if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12123 echo "$ac_t""yes" 1>&6
12124
12125 THREADS_OBJ="threadpsx.lo"
12126 THREADS_LINK="c_r"
12127
12128else
12129 echo "$ac_t""no" 1>&6
12130
b4085ce6 12131 echo $ac_n "checking for pthread_create in -lcc_dynamic""... $ac_c" 1>&6
1db8dc4a 12132echo "configure:12133: checking for pthread_create in -lcc_dynamic" >&5
b4085ce6
GD
12133ac_lib_var=`echo cc_dynamic'_'pthread_create | sed 'y%./+-%__p_%'`
12134if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12135 echo $ac_n "(cached) $ac_c" 1>&6
12136else
12137 ac_save_LIBS="$LIBS"
12138LIBS="-lcc_dynamic $LIBS"
12139cat > conftest.$ac_ext <<EOF
1db8dc4a 12140#line 12141 "configure"
b4085ce6
GD
12141#include "confdefs.h"
12142/* Override any gcc2 internal prototype to avoid an error. */
12143/* We use char because int might match the return type of a gcc2
12144 builtin and then its argument prototype would still apply. */
12145char pthread_create();
12146
12147int main() {
12148pthread_create()
12149; return 0; }
12150EOF
1db8dc4a 12151if { (eval echo configure:12152: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
b4085ce6
GD
12152 rm -rf conftest*
12153 eval "ac_cv_lib_$ac_lib_var=yes"
12154else
12155 echo "configure: failed program was:" >&5
12156 cat conftest.$ac_ext >&5
12157 rm -rf conftest*
12158 eval "ac_cv_lib_$ac_lib_var=no"
12159fi
12160rm -f conftest*
12161LIBS="$ac_save_LIBS"
12162
12163fi
12164if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12165 echo "$ac_t""yes" 1>&6
12166
12167 THREADS_OBJ="threadpsx.lo"
12168 THREADS_LINK="cc_dynamic"
12169
12170else
12171 echo "$ac_t""no" 1>&6
12172
12173 ac_safe=`echo "sys/prctl.h" | sed 'y%./+-%__p_%'`
10f2d63a 12174echo $ac_n "checking for sys/prctl.h""... $ac_c" 1>&6
1db8dc4a 12175echo "configure:12176: checking for sys/prctl.h" >&5
10f2d63a
VZ
12176if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12177 echo $ac_n "(cached) $ac_c" 1>&6
12178else
12179 cat > conftest.$ac_ext <<EOF
1db8dc4a 12180#line 12181 "configure"
10f2d63a
VZ
12181#include "confdefs.h"
12182#include <sys/prctl.h>
12183EOF
12184ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1db8dc4a 12185{ (eval echo configure:12186: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
12186ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12187if test -z "$ac_err"; then
12188 rm -rf conftest*
12189 eval "ac_cv_header_$ac_safe=yes"
12190else
12191 echo "$ac_err" >&5
12192 echo "configure: failed program was:" >&5
12193 cat conftest.$ac_ext >&5
12194 rm -rf conftest*
12195 eval "ac_cv_header_$ac_safe=no"
12196fi
12197rm -f conftest*
12198fi
12199if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12200 echo "$ac_t""yes" 1>&6
12201
b4085ce6
GD
12202 THREADS_OBJ="threadsgi.lo"
12203
10f2d63a
VZ
12204else
12205 echo "$ac_t""no" 1>&6
12206fi
12207
b4085ce6
GD
12208
12209fi
12210
10f2d63a
VZ
12211
12212fi
12213
12214
12215fi
12216
12217
12218 if test -z "$THREADS_OBJ" ; then
12219 wxUSE_THREADS=no
12220 echo "configure: warning: No thread support on this system" 1>&2
12221 fi
12222fi
12223
12224if test "$wxUSE_THREADS" = "yes" ; then
70846f0a
VZ
12225 for ac_func in thr_setconcurrency
12226do
12227echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1db8dc4a 12228echo "configure:12229: checking for $ac_func" >&5
70846f0a
VZ
12229if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12230 echo $ac_n "(cached) $ac_c" 1>&6
12231else
12232 cat > conftest.$ac_ext <<EOF
1db8dc4a 12233#line 12234 "configure"
70846f0a
VZ
12234#include "confdefs.h"
12235/* System header to define __stub macros and hopefully few prototypes,
12236 which can conflict with char $ac_func(); below. */
12237#include <assert.h>
12238/* Override any gcc2 internal prototype to avoid an error. */
12239/* We use char because int might match the return type of a gcc2
12240 builtin and then its argument prototype would still apply. */
12241char $ac_func();
12242
12243int main() {
12244
12245/* The GNU C library defines this for functions which it implements
12246 to always fail with ENOSYS. Some functions are actually named
12247 something starting with __ and the normal name is an alias. */
12248#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12249choke me
12250#else
e8482f24 12251$ac_func();
70846f0a
VZ
12252#endif
12253
12254; return 0; }
12255EOF
1db8dc4a 12256if { (eval echo configure:12257: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
70846f0a
VZ
12257 rm -rf conftest*
12258 eval "ac_cv_func_$ac_func=yes"
12259else
12260 echo "configure: failed program was:" >&5
12261 cat conftest.$ac_ext >&5
12262 rm -rf conftest*
12263 eval "ac_cv_func_$ac_func=no"
12264fi
12265rm -f conftest*
12266fi
12267
12268if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12269 echo "$ac_t""yes" 1>&6
12270 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12271 cat >> confdefs.h <<EOF
12272#define $ac_tr_func 1
12273EOF
12274
12275else
12276 echo "$ac_t""no" 1>&6
12277fi
12278done
12279
12280
10f2d63a
VZ
12281
12282 for ac_hdr in sched.h
12283do
12284ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12285echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1db8dc4a 12286echo "configure:12287: checking for $ac_hdr" >&5
10f2d63a
VZ
12287if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12288 echo $ac_n "(cached) $ac_c" 1>&6
12289else
12290 cat > conftest.$ac_ext <<EOF
1db8dc4a 12291#line 12292 "configure"
10f2d63a
VZ
12292#include "confdefs.h"
12293#include <$ac_hdr>
12294EOF
12295ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1db8dc4a 12296{ (eval echo configure:12297: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
12297ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12298if test -z "$ac_err"; then
12299 rm -rf conftest*
12300 eval "ac_cv_header_$ac_safe=yes"
12301else
12302 echo "$ac_err" >&5
12303 echo "configure: failed program was:" >&5
12304 cat conftest.$ac_ext >&5
12305 rm -rf conftest*
12306 eval "ac_cv_header_$ac_safe=no"
12307fi
12308rm -f conftest*
12309fi
12310if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12311 echo "$ac_t""yes" 1>&6
12312 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12313 cat >> confdefs.h <<EOF
12314#define $ac_tr_hdr 1
12315EOF
12316
12317else
12318 echo "$ac_t""no" 1>&6
12319fi
12320done
12321
12322
12323 echo $ac_n "checking for sched_yield in -l$THREADS_LINK""... $ac_c" 1>&6
1db8dc4a 12324echo "configure:12325: checking for sched_yield in -l$THREADS_LINK" >&5
10f2d63a
VZ
12325ac_lib_var=`echo $THREADS_LINK'_'sched_yield | sed 'y%./+-%__p_%'`
12326if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12327 echo $ac_n "(cached) $ac_c" 1>&6
12328else
12329 ac_save_LIBS="$LIBS"
12330LIBS="-l$THREADS_LINK $LIBS"
12331cat > conftest.$ac_ext <<EOF
1db8dc4a 12332#line 12333 "configure"
10f2d63a
VZ
12333#include "confdefs.h"
12334/* Override any gcc2 internal prototype to avoid an error. */
12335/* We use char because int might match the return type of a gcc2
12336 builtin and then its argument prototype would still apply. */
12337char sched_yield();
12338
12339int main() {
12340sched_yield()
12341; return 0; }
12342EOF
1db8dc4a 12343if { (eval echo configure:12344: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
12344 rm -rf conftest*
12345 eval "ac_cv_lib_$ac_lib_var=yes"
12346else
12347 echo "configure: failed program was:" >&5
12348 cat conftest.$ac_ext >&5
12349 rm -rf conftest*
12350 eval "ac_cv_lib_$ac_lib_var=no"
12351fi
12352rm -f conftest*
12353LIBS="$ac_save_LIBS"
12354
12355fi
12356if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12357 echo "$ac_t""yes" 1>&6
12358 cat >> confdefs.h <<\EOF
12359#define HAVE_SCHED_YIELD 1
12360EOF
12361
12362else
12363 echo "$ac_t""no" 1>&6
12364echo $ac_n "checking for sched_yield in -l"posix4"""... $ac_c" 1>&6
1db8dc4a 12365echo "configure:12366: checking for sched_yield in -l"posix4"" >&5
10f2d63a
VZ
12366ac_lib_var=`echo "posix4"'_'sched_yield | sed 'y%./+-%__p_%'`
12367if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12368 echo $ac_n "(cached) $ac_c" 1>&6
12369else
12370 ac_save_LIBS="$LIBS"
12371LIBS="-l"posix4" $LIBS"
12372cat > conftest.$ac_ext <<EOF
1db8dc4a 12373#line 12374 "configure"
10f2d63a
VZ
12374#include "confdefs.h"
12375/* Override any gcc2 internal prototype to avoid an error. */
12376/* We use char because int might match the return type of a gcc2
12377 builtin and then its argument prototype would still apply. */
12378char sched_yield();
12379
12380int main() {
12381sched_yield()
12382; return 0; }
12383EOF
1db8dc4a 12384if { (eval echo configure:12385: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
12385 rm -rf conftest*
12386 eval "ac_cv_lib_$ac_lib_var=yes"
12387else
12388 echo "configure: failed program was:" >&5
12389 cat conftest.$ac_ext >&5
12390 rm -rf conftest*
12391 eval "ac_cv_lib_$ac_lib_var=no"
12392fi
12393rm -f conftest*
12394LIBS="$ac_save_LIBS"
12395
12396fi
12397if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12398 echo "$ac_t""yes" 1>&6
12399 cat >> confdefs.h <<\EOF
12400#define HAVE_SCHED_YIELD 1
12401EOF
12402 POSIX4_LINK="-lposix4"
12403else
12404 echo "$ac_t""no" 1>&6
12405echo "configure: warning: wxThread::Yield will not work properly" 1>&2
12406
12407fi
12408
12409
12410fi
12411
12412
f6bcfd97
BP
12413 HAVE_PRIOR_FUNCS=0
12414 echo $ac_n "checking for pthread_attr_getschedpolicy in -l$THREADS_LINK""... $ac_c" 1>&6
1db8dc4a 12415echo "configure:12416: checking for pthread_attr_getschedpolicy in -l$THREADS_LINK" >&5
10f2d63a
VZ
12416ac_lib_var=`echo $THREADS_LINK'_'pthread_attr_getschedpolicy | sed 'y%./+-%__p_%'`
12417if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12418 echo $ac_n "(cached) $ac_c" 1>&6
12419else
12420 ac_save_LIBS="$LIBS"
12421LIBS="-l$THREADS_LINK $LIBS"
12422cat > conftest.$ac_ext <<EOF
1db8dc4a 12423#line 12424 "configure"
10f2d63a
VZ
12424#include "confdefs.h"
12425/* Override any gcc2 internal prototype to avoid an error. */
12426/* We use char because int might match the return type of a gcc2
12427 builtin and then its argument prototype would still apply. */
12428char pthread_attr_getschedpolicy();
12429
12430int main() {
12431pthread_attr_getschedpolicy()
12432; return 0; }
12433EOF
1db8dc4a 12434if { (eval echo configure:12435: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
12435 rm -rf conftest*
12436 eval "ac_cv_lib_$ac_lib_var=yes"
12437else
12438 echo "configure: failed program was:" >&5
12439 cat conftest.$ac_ext >&5
12440 rm -rf conftest*
12441 eval "ac_cv_lib_$ac_lib_var=no"
12442fi
12443rm -f conftest*
12444LIBS="$ac_save_LIBS"
12445
12446fi
12447if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12448 echo "$ac_t""yes" 1>&6
f6bcfd97 12449 echo $ac_n "checking for pthread_attr_setschedparam in -l$THREADS_LINK""... $ac_c" 1>&6
1db8dc4a 12450echo "configure:12451: checking for pthread_attr_setschedparam in -l$THREADS_LINK" >&5
f6bcfd97
BP
12451ac_lib_var=`echo $THREADS_LINK'_'pthread_attr_setschedparam | sed 'y%./+-%__p_%'`
12452if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12453 echo $ac_n "(cached) $ac_c" 1>&6
12454else
12455 ac_save_LIBS="$LIBS"
12456LIBS="-l$THREADS_LINK $LIBS"
12457cat > conftest.$ac_ext <<EOF
1db8dc4a 12458#line 12459 "configure"
f6bcfd97
BP
12459#include "confdefs.h"
12460/* Override any gcc2 internal prototype to avoid an error. */
12461/* We use char because int might match the return type of a gcc2
12462 builtin and then its argument prototype would still apply. */
12463char pthread_attr_setschedparam();
12464
12465int main() {
12466pthread_attr_setschedparam()
12467; return 0; }
10f2d63a 12468EOF
1db8dc4a 12469if { (eval echo configure:12470: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
f6bcfd97
BP
12470 rm -rf conftest*
12471 eval "ac_cv_lib_$ac_lib_var=yes"
12472else
12473 echo "configure: failed program was:" >&5
12474 cat conftest.$ac_ext >&5
12475 rm -rf conftest*
12476 eval "ac_cv_lib_$ac_lib_var=no"
12477fi
12478rm -f conftest*
12479LIBS="$ac_save_LIBS"
10f2d63a 12480
f6bcfd97
BP
12481fi
12482if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12483 echo "$ac_t""yes" 1>&6
12484 echo $ac_n "checking for sched_get_priority_max in -l$THREADS_LINK""... $ac_c" 1>&6
1db8dc4a 12485echo "configure:12486: checking for sched_get_priority_max in -l$THREADS_LINK" >&5
f6bcfd97
BP
12486ac_lib_var=`echo $THREADS_LINK'_'sched_get_priority_max | sed 'y%./+-%__p_%'`
12487if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12488 echo $ac_n "(cached) $ac_c" 1>&6
12489else
12490 ac_save_LIBS="$LIBS"
12491LIBS="-l$THREADS_LINK $LIBS"
12492cat > conftest.$ac_ext <<EOF
1db8dc4a 12493#line 12494 "configure"
f6bcfd97
BP
12494#include "confdefs.h"
12495/* Override any gcc2 internal prototype to avoid an error. */
12496/* We use char because int might match the return type of a gcc2
12497 builtin and then its argument prototype would still apply. */
12498char sched_get_priority_max();
12499
12500int main() {
12501sched_get_priority_max()
12502; return 0; }
12503EOF
1db8dc4a 12504if { (eval echo configure:12505: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
f6bcfd97
BP
12505 rm -rf conftest*
12506 eval "ac_cv_lib_$ac_lib_var=yes"
12507else
12508 echo "configure: failed program was:" >&5
12509 cat conftest.$ac_ext >&5
12510 rm -rf conftest*
12511 eval "ac_cv_lib_$ac_lib_var=no"
12512fi
12513rm -f conftest*
12514LIBS="$ac_save_LIBS"
12515
12516fi
12517if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12518 echo "$ac_t""yes" 1>&6
12519 HAVE_PRIOR_FUNCS=1
10f2d63a
VZ
12520else
12521 echo "$ac_t""no" 1>&6
f6bcfd97 12522echo $ac_n "checking for sched_get_priority_max in -l"posix4"""... $ac_c" 1>&6
1db8dc4a 12523echo "configure:12524: checking for sched_get_priority_max in -l"posix4"" >&5
f6bcfd97 12524ac_lib_var=`echo "posix4"'_'sched_get_priority_max | sed 'y%./+-%__p_%'`
10f2d63a
VZ
12525if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12526 echo $ac_n "(cached) $ac_c" 1>&6
12527else
12528 ac_save_LIBS="$LIBS"
12529LIBS="-l"posix4" $LIBS"
12530cat > conftest.$ac_ext <<EOF
1db8dc4a 12531#line 12532 "configure"
10f2d63a
VZ
12532#include "confdefs.h"
12533/* Override any gcc2 internal prototype to avoid an error. */
12534/* We use char because int might match the return type of a gcc2
12535 builtin and then its argument prototype would still apply. */
f6bcfd97 12536char sched_get_priority_max();
10f2d63a
VZ
12537
12538int main() {
f6bcfd97 12539sched_get_priority_max()
10f2d63a
VZ
12540; return 0; }
12541EOF
1db8dc4a 12542if { (eval echo configure:12543: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
12543 rm -rf conftest*
12544 eval "ac_cv_lib_$ac_lib_var=yes"
12545else
12546 echo "configure: failed program was:" >&5
12547 cat conftest.$ac_ext >&5
12548 rm -rf conftest*
12549 eval "ac_cv_lib_$ac_lib_var=no"
12550fi
12551rm -f conftest*
12552LIBS="$ac_save_LIBS"
12553
12554fi
12555if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12556 echo "$ac_t""yes" 1>&6
f6bcfd97
BP
12557
12558 HAVE_PRIOR_FUNCS=1
12559 POSIX4_LINK="-lposix4"
12560
12561else
12562 echo "$ac_t""no" 1>&6
12563fi
12564
12565
12566fi
12567
12568
10f2d63a
VZ
12569else
12570 echo "$ac_t""no" 1>&6
10f2d63a
VZ
12571fi
12572
12573
f6bcfd97
BP
12574else
12575 echo "$ac_t""no" 1>&6
10f2d63a
VZ
12576fi
12577
12578
f6bcfd97
BP
12579 if test "$HAVE_PRIOR_FUNCS" = 1; then
12580 cat >> confdefs.h <<\EOF
12581#define HAVE_THREAD_PRIORITY_FUNCTIONS 1
12582EOF
12583
12584 else
12585 echo "configure: warning: Setting thread priority will not work" 1>&2
12586 fi
12587
10f2d63a 12588 echo $ac_n "checking for pthread_cancel in -l$THREADS_LINK""... $ac_c" 1>&6
1db8dc4a 12589echo "configure:12590: checking for pthread_cancel in -l$THREADS_LINK" >&5
10f2d63a
VZ
12590ac_lib_var=`echo $THREADS_LINK'_'pthread_cancel | sed 'y%./+-%__p_%'`
12591if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12592 echo $ac_n "(cached) $ac_c" 1>&6
12593else
12594 ac_save_LIBS="$LIBS"
12595LIBS="-l$THREADS_LINK $LIBS"
12596cat > conftest.$ac_ext <<EOF
1db8dc4a 12597#line 12598 "configure"
10f2d63a
VZ
12598#include "confdefs.h"
12599/* Override any gcc2 internal prototype to avoid an error. */
12600/* We use char because int might match the return type of a gcc2
12601 builtin and then its argument prototype would still apply. */
12602char pthread_cancel();
12603
12604int main() {
12605pthread_cancel()
12606; return 0; }
12607EOF
1db8dc4a 12608if { (eval echo configure:12609: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
12609 rm -rf conftest*
12610 eval "ac_cv_lib_$ac_lib_var=yes"
12611else
12612 echo "configure: failed program was:" >&5
12613 cat conftest.$ac_ext >&5
12614 rm -rf conftest*
12615 eval "ac_cv_lib_$ac_lib_var=no"
12616fi
12617rm -f conftest*
12618LIBS="$ac_save_LIBS"
12619
12620fi
12621if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12622 echo "$ac_t""yes" 1>&6
12623 cat >> confdefs.h <<\EOF
12624#define HAVE_PTHREAD_CANCEL 1
12625EOF
12626
12627else
12628 echo "$ac_t""no" 1>&6
12629echo "configure: warning: wxThread::Kill() will not work properly" 1>&2
12630fi
12631
12632
12633 echo $ac_n "checking for pthread_cleanup_push/pop""... $ac_c" 1>&6
1db8dc4a 12634echo "configure:12635: checking for pthread_cleanup_push/pop" >&5
10f2d63a
VZ
12635if eval "test \"`echo '$''{'wx_cv_func_pthread_cleanup_push'+set}'`\" = set"; then
12636 echo $ac_n "(cached) $ac_c" 1>&6
12637else
12638
12639 cat > conftest.$ac_ext <<EOF
1db8dc4a 12640#line 12641 "configure"
10f2d63a
VZ
12641#include "confdefs.h"
12642#include <pthread.h>
12643int main() {
12644
12645 pthread_cleanup_push(NULL, NULL);
12646 pthread_cleanup_pop(0);
12647
12648; return 0; }
12649EOF
1db8dc4a 12650if { (eval echo configure:12651: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10f2d63a
VZ
12651 rm -rf conftest*
12652
12653 wx_cv_func_pthread_cleanup_push=yes
12654 cat >> confdefs.h <<\EOF
12655#define HAVE_THREAD_CLEANUP_FUNCTIONS 1
12656EOF
12657
12658
12659else
12660 echo "configure: failed program was:" >&5
12661 cat conftest.$ac_ext >&5
12662 rm -rf conftest*
12663
12664 wx_cv_func_pthread_cleanup_push=no
12665
12666fi
12667rm -f conftest*
12668
12669fi
12670
12671echo "$ac_t""$wx_cv_func_pthread_cleanup_push" 1>&6
12672
12673 THREADS_LINK="-l$THREADS_LINK"
186837b0
VZ
12674
12675 if test "$USE_SOLARIS" = "yes" -a "$GCC" != "yes"; then
12676 CFLAGS="${CFLAGS} -mt"
12677 CXXFLAGS="${CXXFLAGS} -mt"
12678 LDFLAGS="${LDFLAGS} -mt"
12679 fi
10f2d63a
VZ
12680fi
12681
12682fi
12683
12684if test "$wxUSE_THREADS" = "yes"; then
12685 cat >> confdefs.h <<\EOF
12686#define wxUSE_THREADS 1
12687EOF
12688
12689
12690 CFLAGS="${CFLAGS} -D_REENTRANT"
12691 CXXFLAGS="${CXXFLAGS} -D_REENTRANT"
12692
12693 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
12694else
12695 if test "$ac_cv_func_strtok_r" = "yes"; then
ab9b9eab 12696 echo $ac_n "checking if -D_REENTRANT is needed""... $ac_c" 1>&6
1db8dc4a 12697echo "configure:12698: checking if -D_REENTRANT is needed" >&5
ab9b9eab
VZ
12698 if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
12699 CFLAGS="${CFLAGS} -D_REENTRANT"
12700 CXXFLAGS="${CXXFLAGS} -D_REENTRANT"
12701 echo "$ac_t""yes" 1>&6
12702 else
12703 echo "$ac_t""no" 1>&6
10f2d63a
VZ
12704 fi
12705 fi
12706fi
12707
6f72b082 12708if test "$WXGTK20" = 1 ; then
13111b2a 12709 cat >> confdefs.h <<EOF
6f72b082 12710#define __WXGTK20__ $WXGTK20
13111b2a
VZ
12711EOF
12712
12713 WXGTK12=1
12714fi
12715
10f2d63a
VZ
12716if test "$WXGTK12" = 1 ; then
12717 cat >> confdefs.h <<EOF
12718#define __WXGTK12__ $WXGTK12
12719EOF
12720
12721fi
12722
f6bcfd97
BP
12723if test "$WXGTK127" = 1 ; then
12724 cat >> confdefs.h <<EOF
12725#define __WXGTK127__ $WXGTK127
12726EOF
12727
12728fi
12729
10f2d63a
VZ
12730if test "$WXWINE" = 1 ; then
12731 TOOLKIT_DEF="${TOOLKIT_DEF} -D__WXWINE__"
12732fi
12733
b4085ce6
GD
12734if test "$wxUSE_MAC" = 1 ; then
12735 TOOLKIT_DEF="${TOOLKIT_DEF} -D__UNIX__ -DTARGET_CARBON"
12736 TOOLKIT_INCLUDE="${TOOLKIT_INCLUDE}"
12737fi
12738
10f2d63a
VZ
12739if test "$wxUSE_CYGWIN" = 1 ; then
12740 TOOLKIT_DEF="${TOOLKIT_DEF} -D__WIN95__"
12741fi
12742
12743WXDEBUG=
12744
12745if test "$wxUSE_DEBUG_INFO" = "yes" ; then
12746 WXDEBUG="-g"
12747 wxUSE_OPTIMISE=no
12748fi
12749
12750if test "$wxUSE_DEBUG_GDB" = "yes" ; then
12751 wxUSE_DEBUG_INFO=yes
12752 WXDEBUG="-ggdb"
12753fi
12754
12755if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
12756 cat >> confdefs.h <<\EOF
12757#define WXDEBUG 1
12758EOF
12759
12760 WXDEBUG_DEFINE="-D__WXDEBUG__"
12761else
12762 if test "$wxUSE_GTK" = 1 ; then
12763 WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS"
12764 fi
12765fi
12766
12767if test "$wxUSE_MEM_TRACING" = "yes" ; then
12768 cat >> confdefs.h <<\EOF
12769#define wxUSE_MEMORY_TRACING 1
12770EOF
12771
12772 cat >> confdefs.h <<\EOF
12773#define wxUSE_GLOBAL_MEMORY_OPERATORS 1
47c13eb7
VS
12774EOF
12775
12776 cat >> confdefs.h <<\EOF
12777#define wxUSE_DEBUG_NEW_ALWAYS 1
10f2d63a
VZ
12778EOF
12779
12780 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
12781fi
12782
12783if test "$wxUSE_DMALLOC" = "yes" ; then
12784 DMALLOC_LINK="-ldmalloc"
12785fi
12786
12787PROFILE=
12788if test "$wxUSE_PROFILE" = "yes" ; then
12789 PROFILE="-pg"
12790fi
12791
12792DEP_INFO_FLAGS=
caa2c79b 12793CODE_GEN_FLAGS=
10f2d63a
VZ
12794if test "$GCC" = yes ; then
12795 if test "$wxUSE_NO_RTTI" = "yes" ; then
caa2c79b 12796 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fno-rtti"
10f2d63a
VZ
12797 fi
12798 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
caa2c79b 12799 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fno-exceptions"
10f2d63a
VZ
12800 fi
12801 if test "$wxUSE_PERMISSIVE" = "yes" ; then
caa2c79b 12802 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive"
10f2d63a
VZ
12803 fi
12804 if test "$wxUSE_NO_DEPS" = "no" ; then
12805 DEP_INFO_FLAGS="-MMD"
12806 fi
12807fi
12808
12809
12810CXXFLAGS=`echo "${CXXFLAGS}" | sed "s/\-O.//g" `
12811CFLAGS=`echo "${CFLAGS}" | sed "s/\-O.//g" `
12812if test "$wxUSE_OPTIMISE" = "no" ; then
12813 OPTIMISE=
12814else
12815 if test "$GCC" = yes ; then
12816 OPTIMISE="-O2"
12817 case "${host}" in
12818 i586-*-*|i686-*-* )
12819 OPTIMISE="${OPTIMISE} "
12820 ;;
12821 esac
12822 else
12823 OPTIMISE="-O"
12824 fi
12825fi
12826
12827
12828ZLIB_INCLUDE=
422107f9 12829if test "$wxUSE_ZLIB" = "yes" -o "$wxUSE_ZLIB" = "sys" ; then
10f2d63a
VZ
12830 cat >> confdefs.h <<\EOF
12831#define wxUSE_ZLIB 1
12832EOF
12833
422107f9
VZ
12834 if test "$wxUSE_ZLIB" = "yes" ; then
12835 ZLIB_INCLUDE="-I\${top_srcdir}/src/zlib"
12836 else
12837 ZLIB_LINK=
12838 ac_safe=`echo "zlib.h" | sed 'y%./+-%__p_%'`
12839echo $ac_n "checking for zlib.h""... $ac_c" 1>&6
1db8dc4a 12840echo "configure:12841: checking for zlib.h" >&5
422107f9
VZ
12841if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12842 echo $ac_n "(cached) $ac_c" 1>&6
12843else
12844 cat > conftest.$ac_ext <<EOF
1db8dc4a 12845#line 12846 "configure"
422107f9
VZ
12846#include "confdefs.h"
12847#include <zlib.h>
12848EOF
12849ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1db8dc4a 12850{ (eval echo configure:12851: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
422107f9
VZ
12851ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12852if test -z "$ac_err"; then
12853 rm -rf conftest*
12854 eval "ac_cv_header_$ac_safe=yes"
12855else
12856 echo "$ac_err" >&5
12857 echo "configure: failed program was:" >&5
12858 cat conftest.$ac_ext >&5
12859 rm -rf conftest*
12860 eval "ac_cv_header_$ac_safe=no"
12861fi
12862rm -f conftest*
12863fi
12864if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12865 echo "$ac_t""yes" 1>&6
12866 echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6
1db8dc4a 12867echo "configure:12868: checking for deflate in -lz" >&5
422107f9
VZ
12868ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'`
12869if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12870 echo $ac_n "(cached) $ac_c" 1>&6
12871else
12872 ac_save_LIBS="$LIBS"
12873LIBS="-lz $LIBS"
12874cat > conftest.$ac_ext <<EOF
1db8dc4a 12875#line 12876 "configure"
422107f9
VZ
12876#include "confdefs.h"
12877/* Override any gcc2 internal prototype to avoid an error. */
12878/* We use char because int might match the return type of a gcc2
12879 builtin and then its argument prototype would still apply. */
12880char deflate();
12881
12882int main() {
12883deflate()
12884; return 0; }
12885EOF
1db8dc4a 12886if { (eval echo configure:12887: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
422107f9
VZ
12887 rm -rf conftest*
12888 eval "ac_cv_lib_$ac_lib_var=yes"
12889else
12890 echo "configure: failed program was:" >&5
12891 cat conftest.$ac_ext >&5
12892 rm -rf conftest*
12893 eval "ac_cv_lib_$ac_lib_var=no"
12894fi
12895rm -f conftest*
12896LIBS="$ac_save_LIBS"
12897
12898fi
12899if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12900 echo "$ac_t""yes" 1>&6
12901 ZLIB_LINK="-lz"
12902else
12903 echo "$ac_t""no" 1>&6
12904fi
12905
12906else
12907 echo "$ac_t""no" 1>&6
12908fi
12909
12910 if test "x$ZLIB_LINK" = "x" ; then
12911 { echo "configure: error: system zlib compression library not found! Use --with-zlib=yes to use built-in zlib" 1>&2; exit 1; }
12912 fi
12913 fi
10f2d63a
VZ
12914fi
12915
12916PNG_INCLUDE=
422107f9 12917if test "$wxUSE_LIBPNG" = "yes" -o "$wxUSE_LIBPNG" = "sys" ; then
10f2d63a
VZ
12918 cat >> confdefs.h <<\EOF
12919#define wxUSE_LIBPNG 1
12920EOF
12921
41fd4136 12922 if test "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
422107f9
VZ
12923 echo "configure: warning: --with-libpng=sys doesn't work without --with-zlib=sys, will compile the built-in libpng instead" 1>&2
12924 wxUSE_LIBPNG=yes
12925 fi
12926
12927 if test "$wxUSE_LIBPNG" = "yes" ; then
12928 PNG_INCLUDE="-I\${top_srcdir}/src/png"
12929 else
12930 PNG_LINK=
12931 ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'`
12932echo $ac_n "checking for png.h""... $ac_c" 1>&6
1db8dc4a 12933echo "configure:12934: checking for png.h" >&5
422107f9
VZ
12934if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12935 echo $ac_n "(cached) $ac_c" 1>&6
12936else
12937 cat > conftest.$ac_ext <<EOF
1db8dc4a 12938#line 12939 "configure"
422107f9
VZ
12939#include "confdefs.h"
12940#include <png.h>
12941EOF
12942ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1db8dc4a 12943{ (eval echo configure:12944: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
422107f9
VZ
12944ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12945if test -z "$ac_err"; then
12946 rm -rf conftest*
12947 eval "ac_cv_header_$ac_safe=yes"
12948else
12949 echo "$ac_err" >&5
12950 echo "configure: failed program was:" >&5
12951 cat conftest.$ac_ext >&5
12952 rm -rf conftest*
12953 eval "ac_cv_header_$ac_safe=no"
12954fi
12955rm -f conftest*
12956fi
12957if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12958 echo "$ac_t""yes" 1>&6
12959 echo $ac_n "checking for png_check_sig in -lpng""... $ac_c" 1>&6
1db8dc4a 12960echo "configure:12961: checking for png_check_sig in -lpng" >&5
422107f9
VZ
12961ac_lib_var=`echo png'_'png_check_sig | sed 'y%./+-%__p_%'`
12962if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12963 echo $ac_n "(cached) $ac_c" 1>&6
12964else
12965 ac_save_LIBS="$LIBS"
12966LIBS="-lpng -lz -lm $LIBS"
12967cat > conftest.$ac_ext <<EOF
1db8dc4a 12968#line 12969 "configure"
422107f9
VZ
12969#include "confdefs.h"
12970/* Override any gcc2 internal prototype to avoid an error. */
12971/* We use char because int might match the return type of a gcc2
12972 builtin and then its argument prototype would still apply. */
12973char png_check_sig();
12974
12975int main() {
12976png_check_sig()
12977; return 0; }
12978EOF
1db8dc4a 12979if { (eval echo configure:12980: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
422107f9
VZ
12980 rm -rf conftest*
12981 eval "ac_cv_lib_$ac_lib_var=yes"
12982else
12983 echo "configure: failed program was:" >&5
12984 cat conftest.$ac_ext >&5
12985 rm -rf conftest*
12986 eval "ac_cv_lib_$ac_lib_var=no"
12987fi
12988rm -f conftest*
12989LIBS="$ac_save_LIBS"
12990
12991fi
12992if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12993 echo "$ac_t""yes" 1>&6
12994 PNG_LINK="-lpng"
12995else
12996 echo "$ac_t""no" 1>&6
12997fi
12998
12999
13000else
13001 echo "$ac_t""no" 1>&6
13002fi
13003
13004 if test "x$PNG_LINK" = "x" ; then
0dcf9893 13005 { echo "configure: error: system png library not found! Use --with-libpng=yes to use the built-in libpng" 1>&2; exit 1; }
422107f9
VZ
13006 fi
13007 fi
13008
10f2d63a
VZ
13009 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
13010fi
13011
13012JPEG_INCLUDE=
422107f9 13013if test "$wxUSE_LIBJPEG" = "yes" -o "$wxUSE_LIBJPEG" = "sys" ; then
10f2d63a
VZ
13014 cat >> confdefs.h <<\EOF
13015#define wxUSE_LIBJPEG 1
13016EOF
13017
422107f9
VZ
13018 if test "$wxUSE_LIBJPEG" = "yes" ; then
13019 JPEG_INCLUDE="-I\${top_srcdir}/src/jpeg"
13020 else
13021 JPEG_LINK=
13022 ac_safe=`echo "jpeglib.h" | sed 'y%./+-%__p_%'`
13023echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6
1db8dc4a 13024echo "configure:13025: checking for jpeglib.h" >&5
422107f9
VZ
13025if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
13026 echo $ac_n "(cached) $ac_c" 1>&6
13027else
13028 cat > conftest.$ac_ext <<EOF
1db8dc4a 13029#line 13030 "configure"
422107f9
VZ
13030#include "confdefs.h"
13031#include <jpeglib.h>
13032EOF
13033ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1db8dc4a 13034{ (eval echo configure:13035: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
422107f9
VZ
13035ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13036if test -z "$ac_err"; then
13037 rm -rf conftest*
13038 eval "ac_cv_header_$ac_safe=yes"
13039else
13040 echo "$ac_err" >&5
13041 echo "configure: failed program was:" >&5
13042 cat conftest.$ac_ext >&5
13043 rm -rf conftest*
13044 eval "ac_cv_header_$ac_safe=no"
13045fi
13046rm -f conftest*
13047fi
13048if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13049 echo "$ac_t""yes" 1>&6
13050 echo $ac_n "checking for jpeg_read_header in -ljpeg""... $ac_c" 1>&6
1db8dc4a 13051echo "configure:13052: checking for jpeg_read_header in -ljpeg" >&5
422107f9
VZ
13052ac_lib_var=`echo jpeg'_'jpeg_read_header | sed 'y%./+-%__p_%'`
13053if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13054 echo $ac_n "(cached) $ac_c" 1>&6
13055else
13056 ac_save_LIBS="$LIBS"
13057LIBS="-ljpeg $LIBS"
13058cat > conftest.$ac_ext <<EOF
1db8dc4a 13059#line 13060 "configure"
422107f9
VZ
13060#include "confdefs.h"
13061/* Override any gcc2 internal prototype to avoid an error. */
13062/* We use char because int might match the return type of a gcc2
13063 builtin and then its argument prototype would still apply. */
13064char jpeg_read_header();
13065
13066int main() {
13067jpeg_read_header()
13068; return 0; }
13069EOF
1db8dc4a 13070if { (eval echo configure:13071: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
422107f9
VZ
13071 rm -rf conftest*
13072 eval "ac_cv_lib_$ac_lib_var=yes"
13073else
13074 echo "configure: failed program was:" >&5
13075 cat conftest.$ac_ext >&5
13076 rm -rf conftest*
13077 eval "ac_cv_lib_$ac_lib_var=no"
13078fi
13079rm -f conftest*
13080LIBS="$ac_save_LIBS"
13081
13082fi
13083if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13084 echo "$ac_t""yes" 1>&6
13085 JPEG_LINK="-ljpeg"
13086else
13087 echo "$ac_t""no" 1>&6
13088fi
13089
13090else
13091 echo "$ac_t""no" 1>&6
13092fi
13093
13094 if test "x$JPEG_LINK" = "x" ; then
0dcf9893 13095 { echo "configure: error: system jpeg library not found! Use --with-libjpeg=yes to use the built-in one" 1>&2; exit 1; }
422107f9
VZ
13096 fi
13097 fi
10f2d63a
VZ
13098fi
13099
c7a2bf27 13100TIFF_INCLUDE=
0dcf9893 13101if test "$wxUSE_LIBTIFF" = "yes" -o "$wxUSE_LIBTIFF" = "sys" ; then
c7a2bf27
RR
13102 cat >> confdefs.h <<\EOF
13103#define wxUSE_LIBTIFF 1
13104EOF
13105
0dcf9893
VZ
13106 if test "$wxUSE_LIBTIFF" = "yes" ; then
13107 TIFF_INCLUDE="-I\${top_srcdir}/src/tiff"
13108 else
13109 TIFF_LINK=
13110 ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'`
13111echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6
1db8dc4a 13112echo "configure:13113: checking for tiffio.h" >&5
0dcf9893
VZ
13113if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
13114 echo $ac_n "(cached) $ac_c" 1>&6
13115else
13116 cat > conftest.$ac_ext <<EOF
1db8dc4a 13117#line 13118 "configure"
0dcf9893
VZ
13118#include "confdefs.h"
13119#include <tiffio.h>
13120EOF
13121ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1db8dc4a 13122{ (eval echo configure:13123: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
0dcf9893
VZ
13123ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13124if test -z "$ac_err"; then
13125 rm -rf conftest*
13126 eval "ac_cv_header_$ac_safe=yes"
13127else
13128 echo "$ac_err" >&5
13129 echo "configure: failed program was:" >&5
13130 cat conftest.$ac_ext >&5
13131 rm -rf conftest*
13132 eval "ac_cv_header_$ac_safe=no"
13133fi
13134rm -f conftest*
13135fi
13136if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13137 echo "$ac_t""yes" 1>&6
13138 echo $ac_n "checking for TIFFError in -ltiff""... $ac_c" 1>&6
1db8dc4a 13139echo "configure:13140: checking for TIFFError in -ltiff" >&5
0dcf9893
VZ
13140ac_lib_var=`echo tiff'_'TIFFError | sed 'y%./+-%__p_%'`
13141if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13142 echo $ac_n "(cached) $ac_c" 1>&6
13143else
13144 ac_save_LIBS="$LIBS"
13145LIBS="-ltiff -lm $LIBS"
13146cat > conftest.$ac_ext <<EOF
1db8dc4a 13147#line 13148 "configure"
0dcf9893
VZ
13148#include "confdefs.h"
13149/* Override any gcc2 internal prototype to avoid an error. */
13150/* We use char because int might match the return type of a gcc2
13151 builtin and then its argument prototype would still apply. */
13152char TIFFError();
13153
13154int main() {
13155TIFFError()
13156; return 0; }
13157EOF
1db8dc4a 13158if { (eval echo configure:13159: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
0dcf9893
VZ
13159 rm -rf conftest*
13160 eval "ac_cv_lib_$ac_lib_var=yes"
13161else
13162 echo "configure: failed program was:" >&5
13163 cat conftest.$ac_ext >&5
13164 rm -rf conftest*
13165 eval "ac_cv_lib_$ac_lib_var=no"
13166fi
13167rm -f conftest*
13168LIBS="$ac_save_LIBS"
13169
13170fi
13171if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13172 echo "$ac_t""yes" 1>&6
13173 TIFF_LINK="-ltiff"
13174else
13175 echo "$ac_t""no" 1>&6
13176fi
13177
13178else
13179 echo "$ac_t""no" 1>&6
13180fi
13181
13182 if test "x$TIFF_LINK" = "x" ; then
13183 { echo "configure: error: system tiff library not found! Use --with-libtiff=yes to use the built-in one" 1>&2; exit 1; }
13184 fi
13185 fi
c7a2bf27
RR
13186fi
13187
3fed1840
RR
13188FREETYPE_INCLUDE=
13189if test "$wxUSE_FREETYPE" = "yes" -o "$wxUSE_FREETYPE" = "sys" ; then
13190 cat >> confdefs.h <<\EOF
13191#define wxUSE_FREETYPE 1
13192EOF
13193
13194 if test "$wxUSE_FREETYPE" = "yes" ; then
13195 FREETYPE_INCLUDE="-I\${top_srcdir}/src/freetype"
13196 else
13197 FREETYPE_LINK=
13198 ac_safe=`echo "freetype.h" | sed 'y%./+-%__p_%'`
13199echo $ac_n "checking for freetype.h""... $ac_c" 1>&6
1db8dc4a 13200echo "configure:13201: checking for freetype.h" >&5
3fed1840
RR
13201if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
13202 echo $ac_n "(cached) $ac_c" 1>&6
13203else
13204 cat > conftest.$ac_ext <<EOF
1db8dc4a 13205#line 13206 "configure"
3fed1840
RR
13206#include "confdefs.h"
13207#include <freetype.h>
13208EOF
13209ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1db8dc4a 13210{ (eval echo configure:13211: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3fed1840
RR
13211ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13212if test -z "$ac_err"; then
13213 rm -rf conftest*
13214 eval "ac_cv_header_$ac_safe=yes"
13215else
13216 echo "$ac_err" >&5
13217 echo "configure: failed program was:" >&5
13218 cat conftest.$ac_ext >&5
13219 rm -rf conftest*
13220 eval "ac_cv_header_$ac_safe=no"
13221fi
13222rm -f conftest*
13223fi
13224if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13225 echo "$ac_t""yes" 1>&6
13226 echo $ac_n "checking for FT_Render_Glyph in -lfreetype""... $ac_c" 1>&6
1db8dc4a 13227echo "configure:13228: checking for FT_Render_Glyph in -lfreetype" >&5
3fed1840
RR
13228ac_lib_var=`echo freetype'_'FT_Render_Glyph | sed 'y%./+-%__p_%'`
13229if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13230 echo $ac_n "(cached) $ac_c" 1>&6
13231else
13232 ac_save_LIBS="$LIBS"
13233LIBS="-lfreetype -lm $LIBS"
13234cat > conftest.$ac_ext <<EOF
1db8dc4a 13235#line 13236 "configure"
3fed1840
RR
13236#include "confdefs.h"
13237/* Override any gcc2 internal prototype to avoid an error. */
13238/* We use char because int might match the return type of a gcc2
13239 builtin and then its argument prototype would still apply. */
13240char FT_Render_Glyph();
13241
13242int main() {
13243FT_Render_Glyph()
13244; return 0; }
13245EOF
1db8dc4a 13246if { (eval echo configure:13247: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3fed1840
RR
13247 rm -rf conftest*
13248 eval "ac_cv_lib_$ac_lib_var=yes"
13249else
13250 echo "configure: failed program was:" >&5
13251 cat conftest.$ac_ext >&5
13252 rm -rf conftest*
13253 eval "ac_cv_lib_$ac_lib_var=no"
13254fi
13255rm -f conftest*
13256LIBS="$ac_save_LIBS"
13257
13258fi
13259if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13260 echo "$ac_t""yes" 1>&6
13261 FREETYPE_LINK="-lfreetype"
13262else
13263 echo "$ac_t""no" 1>&6
13264fi
13265
13266
13267else
13268 echo "$ac_t""no" 1>&6
13269fi
13270
13271 if test "x$FREETYPE_LINK" = "x" ; then
13272 { echo "configure: error: system freetype library not found! Use --with-freetype=yes to use the built-in freetype" 1>&2; exit 1; }
13273 fi
13274 fi
13275fi
13276
10f2d63a
VZ
13277if test "$wxUSE_OPENGL" = "yes"; then
13278 ac_safe=`echo "GL/gl.h" | sed 'y%./+-%__p_%'`
13279echo $ac_n "checking for GL/gl.h""... $ac_c" 1>&6
1db8dc4a 13280echo "configure:13281: checking for GL/gl.h" >&5
10f2d63a
VZ
13281if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
13282 echo $ac_n "(cached) $ac_c" 1>&6
13283else
13284 cat > conftest.$ac_ext <<EOF
1db8dc4a 13285#line 13286 "configure"
10f2d63a
VZ
13286#include "confdefs.h"
13287#include <GL/gl.h>
13288EOF
13289ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1db8dc4a 13290{ (eval echo configure:13291: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
13291ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13292if test -z "$ac_err"; then
13293 rm -rf conftest*
13294 eval "ac_cv_header_$ac_safe=yes"
13295else
13296 echo "$ac_err" >&5
13297 echo "configure: failed program was:" >&5
13298 cat conftest.$ac_ext >&5
13299 rm -rf conftest*
13300 eval "ac_cv_header_$ac_safe=no"
13301fi
13302rm -f conftest*
13303fi
13304if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13305 echo "$ac_t""yes" 1>&6
13306
bdad4e7e
RR
13307 cat >> confdefs.h <<\EOF
13308#define wxUSE_OPENGL 1
13309EOF
13310
13311 cat >> confdefs.h <<\EOF
13312#define wxUSE_GLCANVAS 1
13313EOF
13314
13315 echo $ac_n "checking for glFlush in -lGL""... $ac_c" 1>&6
1db8dc4a 13316echo "configure:13317: checking for glFlush in -lGL" >&5
bdad4e7e 13317ac_lib_var=`echo GL'_'glFlush | sed 'y%./+-%__p_%'`
10f2d63a
VZ
13318if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13319 echo $ac_n "(cached) $ac_c" 1>&6
13320else
13321 ac_save_LIBS="$LIBS"
bdad4e7e 13322LIBS="-lGL $LIBS"
10f2d63a 13323cat > conftest.$ac_ext <<EOF
1db8dc4a 13324#line 13325 "configure"
10f2d63a
VZ
13325#include "confdefs.h"
13326/* Override any gcc2 internal prototype to avoid an error. */
13327/* We use char because int might match the return type of a gcc2
13328 builtin and then its argument prototype would still apply. */
bdad4e7e 13329char glFlush();
10f2d63a
VZ
13330
13331int main() {
bdad4e7e 13332glFlush()
10f2d63a
VZ
13333; return 0; }
13334EOF
1db8dc4a 13335if { (eval echo configure:13336: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
13336 rm -rf conftest*
13337 eval "ac_cv_lib_$ac_lib_var=yes"
13338else
13339 echo "configure: failed program was:" >&5
13340 cat conftest.$ac_ext >&5
13341 rm -rf conftest*
13342 eval "ac_cv_lib_$ac_lib_var=no"
13343fi
13344rm -f conftest*
13345LIBS="$ac_save_LIBS"
13346
13347fi
13348if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13349 echo "$ac_t""yes" 1>&6
13350
f6bcfd97 13351 OPENGL_LINK="-lGL -lGLU"
10f2d63a
VZ
13352
13353else
13354 echo "$ac_t""no" 1>&6
13355
bdad4e7e 13356 echo $ac_n "checking for glFlush in -lMesaGL""... $ac_c" 1>&6
1db8dc4a 13357echo "configure:13358: checking for glFlush in -lMesaGL" >&5
bdad4e7e 13358ac_lib_var=`echo MesaGL'_'glFlush | sed 'y%./+-%__p_%'`
10f2d63a
VZ
13359if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13360 echo $ac_n "(cached) $ac_c" 1>&6
13361else
13362 ac_save_LIBS="$LIBS"
13363LIBS="-lMesaGL $LIBS"
13364cat > conftest.$ac_ext <<EOF
1db8dc4a 13365#line 13366 "configure"
10f2d63a
VZ
13366#include "confdefs.h"
13367/* Override any gcc2 internal prototype to avoid an error. */
13368/* We use char because int might match the return type of a gcc2
13369 builtin and then its argument prototype would still apply. */
bdad4e7e 13370char glFlush();
10f2d63a
VZ
13371
13372int main() {
bdad4e7e 13373glFlush()
10f2d63a
VZ
13374; return 0; }
13375EOF
1db8dc4a 13376if { (eval echo configure:13377: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
13377 rm -rf conftest*
13378 eval "ac_cv_lib_$ac_lib_var=yes"
13379else
13380 echo "configure: failed program was:" >&5
13381 cat conftest.$ac_ext >&5
13382 rm -rf conftest*
13383 eval "ac_cv_lib_$ac_lib_var=no"
13384fi
13385rm -f conftest*
13386LIBS="$ac_save_LIBS"
13387
13388fi
13389if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13390 echo "$ac_t""yes" 1>&6
13391
f6bcfd97 13392 OPENGL_LINK="-lMesaGL -lMesaGLU"
10f2d63a
VZ
13393
13394else
13395 echo "$ac_t""no" 1>&6
10f2d63a
VZ
13396fi
13397
13398
13399fi
13400
13401
13402else
13403 echo "$ac_t""no" 1>&6
13404wxUSE_OPENGL=0
13405fi
13406
13407fi
13408
13409
13410if test "$wxUSE_GUI" = "yes"; then
13411 cat >> confdefs.h <<\EOF
13412#define wxUSE_GUI 1
13413EOF
13414
13415
13416 else
13417 cat >> confdefs.h <<\EOF
13418#define wxUSE_NOGUI 1
13419EOF
13420
13421fi
13422
13423
13424if test "$wxUSE_UNIX" = "yes"; then
13425 cat >> confdefs.h <<\EOF
13426#define wxUSE_UNIX 1
13427EOF
13428
13429fi
13430
13431
13432if test "$wxUSE_APPLE_IEEE" = "yes"; then
13433 cat >> confdefs.h <<\EOF
13434#define wxUSE_APPLE_IEEE 1
13435EOF
13436
13437fi
13438
10f2d63a
VZ
13439if test "$wxUSE_WAVE" = "yes"; then
13440 cat >> confdefs.h <<\EOF
13441#define wxUSE_WAVE 1
13442EOF
13443
13444fi
13445
13446if test "$wxUSE_FILE" = "yes"; then
13447 cat >> confdefs.h <<\EOF
13448#define wxUSE_FILE 1
13449EOF
13450
13451fi
13452
24528b0c
VS
13453if test "$wxUSE_FILESYSTEM" = "yes"; then
13454 cat >> confdefs.h <<\EOF
13455#define wxUSE_FILESYSTEM 1
13456EOF
13457
13458fi
13459
10f2d63a
VZ
13460if test "$wxUSE_FS_INET" = "yes"; then
13461 cat >> confdefs.h <<\EOF
13462#define wxUSE_FS_INET 1
13463EOF
13464
13465fi
13466
13467if test "$wxUSE_FS_ZIP" = "yes"; then
13468 cat >> confdefs.h <<\EOF
13469#define wxUSE_FS_ZIP 1
13470EOF
13471
13472fi
13473
13474if test "$wxUSE_ZIPSTREAM" = "yes"; then
13475 cat >> confdefs.h <<\EOF
13476#define wxUSE_ZIPSTREAM 1
13477EOF
13478
13479fi
13480
eb4efbdc
VZ
13481if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
13482 cat >> confdefs.h <<\EOF
13483#define wxUSE_ON_FATAL_EXCEPTION 1
13484EOF
13485
13486fi
13487
10f2d63a
VZ
13488if test "$wxUSE_BUSYINFO" = "yes"; then
13489 cat >> confdefs.h <<\EOF
13490#define wxUSE_BUSYINFO 1
13491EOF
13492
13493fi
13494
13495if test "$wxUSE_STD_IOSTREAM" = "yes"; then
13496 cat >> confdefs.h <<\EOF
13497#define wxUSE_STD_IOSTREAM 1
13498EOF
13499
13500fi
13501
13502if test "$wxUSE_TEXTFILE" = "yes"; then
13503 if test "$wxUSE_FILE" != "yes"; then
13504 echo "configure: warning: wxTextFile requires wxFile and it won't be compiled without it" 1>&2
13505 else
13506 cat >> confdefs.h <<\EOF
13507#define wxUSE_TEXTFILE 1
13508EOF
13509
13510 fi
13511fi
13512
13513if test "$wxUSE_CONFIG" = "yes" ; then
13514 if test "$wxUSE_TEXTFILE" != "yes"; then
13515 echo "configure: warning: wxConfig requires wxTextFile and it won't be compiled without it" 1>&2
13516 else
13517 cat >> confdefs.h <<\EOF
13518#define wxUSE_CONFIG 1
13519EOF
13520
13521 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
13522 fi
13523fi
13524
13525if test "$wxUSE_INTL" = "yes" ; then
13526 if test "$wxUSE_FILE" != "yes"; then
13527 echo "configure: warning: I18n code requires wxFile and it won't be compiled without it" 1>&2
13528 else
13529 cat >> confdefs.h <<\EOF
13530#define wxUSE_INTL 1
13531EOF
13532
13533 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
f6bcfd97 13534 GUIDIST="$GUIDIST INTL_DIST"
10f2d63a
VZ
13535 fi
13536fi
13537
13538if test "$wxUSE_LOG" = "yes"; then
13539 cat >> confdefs.h <<\EOF
13540#define wxUSE_LOG 1
13541EOF
13542
13543fi
13544
13545if test "$wxUSE_LONGLONG" = "yes"; then
13546 cat >> confdefs.h <<\EOF
13547#define wxUSE_LONGLONG 1
13548EOF
13549
13550fi
13551
e8f65ba6
RR
13552if test "$wxUSE_GEOMETRY" = "yes"; then
13553 cat >> confdefs.h <<\EOF
13554#define wxUSE_GEOMETRY 1
13555EOF
13556
13557fi
13558
10f2d63a
VZ
13559if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then
13560 cat >> confdefs.h <<\EOF
13561#define wxUSE_DIALUP_MANAGER 1
13562EOF
13563
70f7a477 13564 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
10f2d63a
VZ
13565fi
13566
13567if test "$wxUSE_STREAMS" = "yes" ; then
13568 cat >> confdefs.h <<\EOF
13569#define wxUSE_STREAMS 1
13570EOF
13571
13572fi
13573
10f2d63a 13574
afc31813 13575if test "$wxUSE_TIMEDATE" = "yes"; then
83307f33
VZ
13576 for ac_func in strptime
13577do
13578echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1db8dc4a 13579echo "configure:13580: checking for $ac_func" >&5
83307f33
VZ
13580if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13581 echo $ac_n "(cached) $ac_c" 1>&6
13582else
13583 cat > conftest.$ac_ext <<EOF
1db8dc4a 13584#line 13585 "configure"
83307f33
VZ
13585#include "confdefs.h"
13586/* System header to define __stub macros and hopefully few prototypes,
13587 which can conflict with char $ac_func(); below. */
13588#include <assert.h>
13589/* Override any gcc2 internal prototype to avoid an error. */
13590/* We use char because int might match the return type of a gcc2
13591 builtin and then its argument prototype would still apply. */
13592char $ac_func();
13593
13594int main() {
13595
13596/* The GNU C library defines this for functions which it implements
13597 to always fail with ENOSYS. Some functions are actually named
13598 something starting with __ and the normal name is an alias. */
13599#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13600choke me
13601#else
e8482f24 13602$ac_func();
83307f33
VZ
13603#endif
13604
13605; return 0; }
13606EOF
1db8dc4a 13607if { (eval echo configure:13608: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
83307f33
VZ
13608 rm -rf conftest*
13609 eval "ac_cv_func_$ac_func=yes"
13610else
13611 echo "configure: failed program was:" >&5
13612 cat conftest.$ac_ext >&5
13613 rm -rf conftest*
13614 eval "ac_cv_func_$ac_func=no"
13615fi
13616rm -f conftest*
13617fi
13618
13619if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13620 echo "$ac_t""yes" 1>&6
13621 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13622 cat >> confdefs.h <<EOF
13623#define $ac_tr_func 1
13624EOF
13625
13626else
13627 echo "$ac_t""no" 1>&6
13628fi
13629done
13630
13631
360d6699 13632 echo $ac_n "checking for timezone variable in <time.h>""... $ac_c" 1>&6
1db8dc4a 13633echo "configure:13634: checking for timezone variable in <time.h>" >&5
360d6699
VZ
13634if eval "test \"`echo '$''{'wx_cv_var_timezone'+set}'`\" = set"; then
13635 echo $ac_n "(cached) $ac_c" 1>&6
13636else
13637
13638 cat > conftest.$ac_ext <<EOF
1db8dc4a 13639#line 13640 "configure"
360d6699
VZ
13640#include "confdefs.h"
13641
b4085ce6 13642 #include <time.h>
360d6699
VZ
13643
13644int main() {
13645
13646 int tz;
13647 tz = __timezone;
13648
13649; return 0; }
13650EOF
1db8dc4a 13651if { (eval echo configure:13652: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
360d6699
VZ
13652 rm -rf conftest*
13653
13654 wx_cv_var_timezone=__timezone
13655
13656else
13657 echo "configure: failed program was:" >&5
13658 cat conftest.$ac_ext >&5
13659 rm -rf conftest*
13660
13661 cat > conftest.$ac_ext <<EOF
1db8dc4a 13662#line 13663 "configure"
360d6699
VZ
13663#include "confdefs.h"
13664
b4085ce6 13665 #include <time.h>
360d6699
VZ
13666
13667int main() {
13668
13669 int tz;
13670 tz = _timezone;
13671
13672; return 0; }
13673EOF
1db8dc4a 13674if { (eval echo configure:13675: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
360d6699
VZ
13675 rm -rf conftest*
13676
13677 wx_cv_var_timezone=_timezone
13678
5357c8e8
VZ
13679else
13680 echo "configure: failed program was:" >&5
13681 cat conftest.$ac_ext >&5
13682 rm -rf conftest*
13683
13684 cat > conftest.$ac_ext <<EOF
1db8dc4a 13685#line 13686 "configure"
5357c8e8
VZ
13686#include "confdefs.h"
13687
b4085ce6 13688 #include <time.h>
5357c8e8
VZ
13689
13690int main() {
13691
13692 int tz;
13693 tz = timezone;
13694
13695; return 0; }
13696EOF
1db8dc4a 13697if { (eval echo configure:13698: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5357c8e8
VZ
13698 rm -rf conftest*
13699
13700 wx_cv_var_timezone=timezone
13701
360d6699
VZ
13702else
13703 echo "configure: failed program was:" >&5
13704 cat conftest.$ac_ext >&5
13705 rm -rf conftest*
13706 { echo "configure: error: no timezone variable" 1>&2; exit 1; }
5357c8e8
VZ
13707
13708fi
13709rm -f conftest*
13710
360d6699
VZ
13711
13712fi
13713rm -f conftest*
13714
13715
13716fi
13717rm -f conftest*
13718
13719
13720fi
13721
13722echo "$ac_t""$wx_cv_var_timezone" 1>&6
13723
13724 cat >> confdefs.h <<EOF
13725#define WX_TIMEZONE $wx_cv_var_timezone
13726EOF
13727
13728
3fcdd07b 13729 for ac_func in localtime
afc31813
VZ
13730do
13731echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1db8dc4a 13732echo "configure:13733: checking for $ac_func" >&5
afc31813
VZ
13733if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13734 echo $ac_n "(cached) $ac_c" 1>&6
13735else
13736 cat > conftest.$ac_ext <<EOF
1db8dc4a 13737#line 13738 "configure"
10f2d63a 13738#include "confdefs.h"
afc31813
VZ
13739/* System header to define __stub macros and hopefully few prototypes,
13740 which can conflict with char $ac_func(); below. */
13741#include <assert.h>
13742/* Override any gcc2 internal prototype to avoid an error. */
13743/* We use char because int might match the return type of a gcc2
13744 builtin and then its argument prototype would still apply. */
13745char $ac_func();
13746
10f2d63a 13747int main() {
afc31813
VZ
13748
13749/* The GNU C library defines this for functions which it implements
13750 to always fail with ENOSYS. Some functions are actually named
13751 something starting with __ and the normal name is an alias. */
13752#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13753choke me
13754#else
e8482f24 13755$ac_func();
afc31813
VZ
13756#endif
13757
10f2d63a
VZ
13758; return 0; }
13759EOF
1db8dc4a 13760if { (eval echo configure:13761: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a 13761 rm -rf conftest*
afc31813 13762 eval "ac_cv_func_$ac_func=yes"
10f2d63a
VZ
13763else
13764 echo "configure: failed program was:" >&5
13765 cat conftest.$ac_ext >&5
13766 rm -rf conftest*
afc31813
VZ
13767 eval "ac_cv_func_$ac_func=no"
13768fi
13769rm -f conftest*
13770fi
13771
13772if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13773 echo "$ac_t""yes" 1>&6
13774 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13775 cat >> confdefs.h <<EOF
13776#define $ac_tr_func 1
13777EOF
3fcdd07b 13778
afc31813
VZ
13779else
13780 echo "$ac_t""no" 1>&6
13781fi
13782done
13783
13784
0470b1e6
VZ
13785 if test "$ac_cv_func_localtime" = "yes"; then
13786 echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6
1db8dc4a 13787echo "configure:13788: checking for tm_gmtoff in struct tm" >&5
0470b1e6
VZ
13788if eval "test \"`echo '$''{'wx_cv_struct_tm_has_gmtoff'+set}'`\" = set"; then
13789 echo $ac_n "(cached) $ac_c" 1>&6
13790else
13791
13792 cat > conftest.$ac_ext <<EOF
1db8dc4a 13793#line 13794 "configure"
0470b1e6
VZ
13794#include "confdefs.h"
13795
b4085ce6 13796 #include <time.h>
0470b1e6
VZ
13797
13798int main() {
13799
13800 struct tm tm;
13801 tm.tm_gmtoff++;
13802
13803; return 0; }
13804EOF
1db8dc4a 13805if { (eval echo configure:13806: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
0470b1e6
VZ
13806 rm -rf conftest*
13807
f03a98d8 13808 wx_cv_struct_tm_has_gmtoff=yes
0470b1e6
VZ
13809 cat >> confdefs.h <<\EOF
13810#define WX_GMTOFF_IN_TM 1
13811EOF
13812
13813
13814else
13815 echo "configure: failed program was:" >&5
13816 cat conftest.$ac_ext >&5
13817 rm -rf conftest*
13818 wx_cv_struct_tm_has_gmtoff=no
13819
13820fi
13821rm -f conftest*
13822
13823fi
13824
13825echo "$ac_t""$wx_cv_struct_tm_has_gmtoff" 1>&6
3fcdd07b
VZ
13826 fi
13827
13828 for ac_func in gettimeofday ftime
13829do
13830echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1db8dc4a 13831echo "configure:13832: checking for $ac_func" >&5
3fcdd07b
VZ
13832if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13833 echo $ac_n "(cached) $ac_c" 1>&6
13834else
13835 cat > conftest.$ac_ext <<EOF
1db8dc4a 13836#line 13837 "configure"
3fcdd07b
VZ
13837#include "confdefs.h"
13838/* System header to define __stub macros and hopefully few prototypes,
13839 which can conflict with char $ac_func(); below. */
13840#include <assert.h>
13841/* Override any gcc2 internal prototype to avoid an error. */
13842/* We use char because int might match the return type of a gcc2
13843 builtin and then its argument prototype would still apply. */
13844char $ac_func();
13845
13846int main() {
13847
13848/* The GNU C library defines this for functions which it implements
13849 to always fail with ENOSYS. Some functions are actually named
13850 something starting with __ and the normal name is an alias. */
13851#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13852choke me
13853#else
e8482f24 13854$ac_func();
3fcdd07b
VZ
13855#endif
13856
13857; return 0; }
13858EOF
1db8dc4a 13859if { (eval echo configure:13860: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3fcdd07b
VZ
13860 rm -rf conftest*
13861 eval "ac_cv_func_$ac_func=yes"
13862else
13863 echo "configure: failed program was:" >&5
13864 cat conftest.$ac_ext >&5
13865 rm -rf conftest*
13866 eval "ac_cv_func_$ac_func=no"
13867fi
13868rm -f conftest*
13869fi
13870
13871if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13872 echo "$ac_t""yes" 1>&6
13873 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13874 cat >> confdefs.h <<EOF
13875#define $ac_tr_func 1
13876EOF
13877 break
13878else
13879 echo "$ac_t""no" 1>&6
13880fi
13881done
13882
13883
13884 if test "$ac_cv_func_gettimeofday" = "yes"; then
afc31813 13885 echo $ac_n "checking whether gettimeofday takes two arguments""... $ac_c" 1>&6
1db8dc4a 13886echo "configure:13887: checking whether gettimeofday takes two arguments" >&5
afc31813
VZ
13887if eval "test \"`echo '$''{'wx_cv_func_gettimeofday_has_2_args'+set}'`\" = set"; then
13888 echo $ac_n "(cached) $ac_c" 1>&6
13889else
13890
13891
13892 ac_ext=C
13893# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13894ac_cpp='$CXXCPP $CPPFLAGS'
13895ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13896ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13897cross_compiling=$ac_cv_prog_cxx_cross
13898
13899
13900 cat > conftest.$ac_ext <<EOF
1db8dc4a 13901#line 13902 "configure"
10f2d63a 13902#include "confdefs.h"
afc31813
VZ
13903
13904 #include <sys/time.h>
13905 #include <unistd.h>
13906
10f2d63a 13907int main() {
afc31813
VZ
13908
13909 struct timeval tv;
13910 struct timezone tz;
13911 gettimeofday(&tv, &tz);
13912
10f2d63a
VZ
13913; return 0; }
13914EOF
1db8dc4a 13915if { (eval echo configure:13916: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10f2d63a 13916 rm -rf conftest*
afc31813 13917 wx_cv_func_gettimeofday_has_2_args=yes
10f2d63a
VZ
13918else
13919 echo "configure: failed program was:" >&5
13920 cat conftest.$ac_ext >&5
13921 rm -rf conftest*
13922 cat > conftest.$ac_ext <<EOF
1db8dc4a 13923#line 13924 "configure"
10f2d63a 13924#include "confdefs.h"
afc31813
VZ
13925
13926 #include <sys/time.h>
13927 #include <unistd.h>
13928
10f2d63a 13929int main() {
afc31813
VZ
13930
13931 struct timeval tv;
13932 gettimeofday(&tv);
13933
10f2d63a
VZ
13934; return 0; }
13935EOF
1db8dc4a 13936if { (eval echo configure:13937: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10f2d63a 13937 rm -rf conftest*
afc31813 13938 wx_cv_func_gettimeofday_has_2_args=no
10f2d63a
VZ
13939else
13940 echo "configure: failed program was:" >&5
13941 cat conftest.$ac_ext >&5
13942 rm -rf conftest*
afc31813
VZ
13943 wx_cv_func_gettimeofday_has_2_args=unknown
13944
10f2d63a
VZ
13945fi
13946rm -f conftest*
afc31813 13947
10f2d63a
VZ
13948fi
13949rm -f conftest*
afc31813 13950 ac_ext=c
10f2d63a
VZ
13951# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13952ac_cpp='$CPP $CPPFLAGS'
13953ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13954ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13955cross_compiling=$ac_cv_prog_cc_cross
13956
afc31813
VZ
13957
13958fi
13959
13960echo "$ac_t""$wx_cv_func_gettimeofday_has_2_args" 1>&6
c63c7106 13961
afc31813
VZ
13962 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
13963 cat >> confdefs.h <<\EOF
13964#define WX_GETTIMEOFDAY_NO_TZ 1
13965EOF
13966
13967 fi
13968 fi
13969
13970 cat >> confdefs.h <<\EOF
13971#define wxUSE_TIMEDATE 1
13972EOF
13973
13974 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
13975fi
13976
13977
b089607b
VZ
13978if test "$TOOLKIT" != "MSW"; then
13979
afc31813 13980if test "$wxUSE_SOCKETS" = "yes"; then
c63c7106 13981 echo $ac_n "checking for socket""... $ac_c" 1>&6
1db8dc4a 13982echo "configure:13983: checking for socket" >&5
c63c7106
VZ
13983if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
13984 echo $ac_n "(cached) $ac_c" 1>&6
13985else
13986 cat > conftest.$ac_ext <<EOF
1db8dc4a 13987#line 13988 "configure"
c63c7106
VZ
13988#include "confdefs.h"
13989/* System header to define __stub macros and hopefully few prototypes,
13990 which can conflict with char socket(); below. */
13991#include <assert.h>
13992/* Override any gcc2 internal prototype to avoid an error. */
13993/* We use char because int might match the return type of a gcc2
13994 builtin and then its argument prototype would still apply. */
13995char socket();
13996
13997int main() {
13998
13999/* The GNU C library defines this for functions which it implements
14000 to always fail with ENOSYS. Some functions are actually named
14001 something starting with __ and the normal name is an alias. */
14002#if defined (__stub_socket) || defined (__stub___socket)
14003choke me
14004#else
e8482f24 14005socket();
c63c7106
VZ
14006#endif
14007
14008; return 0; }
14009EOF
1db8dc4a 14010if { (eval echo configure:14011: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
c63c7106
VZ
14011 rm -rf conftest*
14012 eval "ac_cv_func_socket=yes"
14013else
14014 echo "configure: failed program was:" >&5
14015 cat conftest.$ac_ext >&5
14016 rm -rf conftest*
14017 eval "ac_cv_func_socket=no"
14018fi
14019rm -f conftest*
14020fi
14021
14022if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
14023 echo "$ac_t""yes" 1>&6
14024 :
14025else
14026 echo "$ac_t""no" 1>&6
14027echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
1db8dc4a 14028echo "configure:14029: checking for socket in -lsocket" >&5
c63c7106
VZ
14029ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
14030if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14031 echo $ac_n "(cached) $ac_c" 1>&6
14032else
14033 ac_save_LIBS="$LIBS"
14034LIBS="-lsocket $LIBS"
14035cat > conftest.$ac_ext <<EOF
1db8dc4a 14036#line 14037 "configure"
c63c7106
VZ
14037#include "confdefs.h"
14038/* Override any gcc2 internal prototype to avoid an error. */
14039/* We use char because int might match the return type of a gcc2
14040 builtin and then its argument prototype would still apply. */
14041char socket();
14042
14043int main() {
14044socket()
14045; return 0; }
14046EOF
1db8dc4a 14047if { (eval echo configure:14048: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
c63c7106
VZ
14048 rm -rf conftest*
14049 eval "ac_cv_lib_$ac_lib_var=yes"
14050else
14051 echo "configure: failed program was:" >&5
14052 cat conftest.$ac_ext >&5
14053 rm -rf conftest*
14054 eval "ac_cv_lib_$ac_lib_var=no"
14055fi
14056rm -f conftest*
14057LIBS="$ac_save_LIBS"
14058
14059fi
14060if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14061 echo "$ac_t""yes" 1>&6
14062 INET_LINK="$INET_LINK -lsocket"
c63c7106
VZ
14063else
14064 echo "$ac_t""no" 1>&6
afc31813
VZ
14065
14066 echo "configure: warning: socket library not found - sockets will be disabled" 1>&2
14067 wxUSE_SOCKETS=no
14068
14069
c63c7106
VZ
14070fi
14071
14072
14073fi
14074
10f2d63a
VZ
14075fi
14076
b089607b 14077
afc31813 14078if test "$wxUSE_SOCKETS" = "yes" ; then
51a9faba 14079 echo $ac_n "checking what is the type of the third argument of getsockname""... $ac_c" 1>&6
1db8dc4a 14080echo "configure:14081: checking what is the type of the third argument of getsockname" >&5
51a9faba
VZ
14081if eval "test \"`echo '$''{'wx_cv_type_getsockname3'+set}'`\" = set"; then
14082 echo $ac_n "(cached) $ac_c" 1>&6
14083else
14084
14085
14086 ac_ext=C
afc31813
VZ
14087# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14088ac_cpp='$CXXCPP $CPPFLAGS'
14089ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14090ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14091cross_compiling=$ac_cv_prog_cxx_cross
14092
51a9faba
VZ
14093
14094 cat > conftest.$ac_ext <<EOF
1db8dc4a 14095#line 14096 "configure"
afc31813 14096#include "confdefs.h"
51a9faba 14097
3ace2e6d 14098 #include <sys/types.h>
51a9faba
VZ
14099 #include <sys/socket.h>
14100
afc31813 14101int main() {
51a9faba
VZ
14102
14103 socklen_t len;
14104 getsockname(0, 0, &len);
14105
afc31813
VZ
14106; return 0; }
14107EOF
1db8dc4a 14108if { (eval echo configure:14109: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
afc31813 14109 rm -rf conftest*
51a9faba 14110 wx_cv_type_getsockname3=socklen_t
afc31813
VZ
14111else
14112 echo "configure: failed program was:" >&5
14113 cat conftest.$ac_ext >&5
14114 rm -rf conftest*
14115 cat > conftest.$ac_ext <<EOF
1db8dc4a 14116#line 14117 "configure"
afc31813 14117#include "confdefs.h"
51a9faba 14118
3ace2e6d 14119 #include <sys/types.h>
51a9faba
VZ
14120 #include <sys/socket.h>
14121
afc31813 14122int main() {
51a9faba
VZ
14123
14124 size_t len;
14125 getsockname(0, 0, &len);
14126
afc31813
VZ
14127; return 0; }
14128EOF
1db8dc4a 14129if { (eval echo configure:14130: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
afc31813 14130 rm -rf conftest*
51a9faba 14131 wx_cv_type_getsockname3=size_t
afc31813
VZ
14132else
14133 echo "configure: failed program was:" >&5
14134 cat conftest.$ac_ext >&5
14135 rm -rf conftest*
14136 cat > conftest.$ac_ext <<EOF
1db8dc4a 14137#line 14138 "configure"
afc31813 14138#include "confdefs.h"
51a9faba 14139
3ace2e6d 14140 #include <sys/types.h>
51a9faba
VZ
14141 #include <sys/socket.h>
14142
afc31813 14143int main() {
51a9faba
VZ
14144
14145 int len;
14146 getsockname(0, 0, &len);
14147
afc31813
VZ
14148; return 0; }
14149EOF
1db8dc4a 14150if { (eval echo configure:14151: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
afc31813 14151 rm -rf conftest*
51a9faba 14152 wx_cv_type_getsockname3=int
afc31813
VZ
14153else
14154 echo "configure: failed program was:" >&5
14155 cat conftest.$ac_ext >&5
3ace2e6d
SN
14156 rm -rf conftest*
14157 wx_cv_type_getsockname3=unknown
14158
afc31813
VZ
14159fi
14160rm -f conftest*
51a9faba 14161
afc31813
VZ
14162fi
14163rm -f conftest*
51a9faba 14164
afc31813
VZ
14165fi
14166rm -f conftest*
51a9faba
VZ
14167
14168 ac_ext=c
afc31813
VZ
14169# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14170ac_cpp='$CPP $CPPFLAGS'
14171ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14172ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14173cross_compiling=$ac_cv_prog_cc_cross
14174
51a9faba
VZ
14175
14176fi
14177
14178echo "$ac_t""$wx_cv_type_getsockname3" 1>&6
14179
14180 if test "$wx_cv_type_getsockname3" = "unknown"; then
14181 wxUSE_SOCKETS=no
14182 echo "configure: warning: Couldn't find socklen_t synonym for this system" 1>&2
14183 else
14184 cat >> confdefs.h <<EOF
14185#define SOCKLEN_T $wx_cv_type_getsockname3
14186EOF
14187
14188 fi
14189fi
afc31813 14190
c521c494
RL
14191fi
14192
51a9faba 14193if test "$wxUSE_SOCKETS" = "yes" ; then
afc31813
VZ
14194 cat >> confdefs.h <<\EOF
14195#define wxUSE_SOCKETS 1
14196EOF
14197
70f7a477 14198 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
afc31813
VZ
14199 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS protocol"
14200fi
14201
10f2d63a 14202
dc3d889d
VZ
14203if test "$wxUSE_GUI" = "yes"; then
14204
b089607b
VZ
14205if test "$TOOLKIT" != "MSW"; then
14206
ceded8b9 14207if test "$wxUSE_JOYSTICK" = "yes"; then
10f2d63a
VZ
14208 for ac_hdr in linux/joystick.h
14209do
14210ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
14211echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1db8dc4a 14212echo "configure:14213: checking for $ac_hdr" >&5
10f2d63a
VZ
14213if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
14214 echo $ac_n "(cached) $ac_c" 1>&6
14215else
14216 cat > conftest.$ac_ext <<EOF
1db8dc4a 14217#line 14218 "configure"
10f2d63a
VZ
14218#include "confdefs.h"
14219#include <$ac_hdr>
14220EOF
14221ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1db8dc4a 14222{ (eval echo configure:14223: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
14223ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14224if test -z "$ac_err"; then
14225 rm -rf conftest*
14226 eval "ac_cv_header_$ac_safe=yes"
14227else
14228 echo "$ac_err" >&5
14229 echo "configure: failed program was:" >&5
14230 cat conftest.$ac_ext >&5
14231 rm -rf conftest*
14232 eval "ac_cv_header_$ac_safe=no"
14233fi
14234rm -f conftest*
14235fi
14236if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14237 echo "$ac_t""yes" 1>&6
14238 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
14239 cat >> confdefs.h <<EOF
14240#define $ac_tr_hdr 1
14241EOF
14242
14243else
14244 echo "$ac_t""no" 1>&6
14245fi
14246done
14247
b089607b 14248 if test "$ac_cv_header_linux_joystick_h" != "yes"; then
ceded8b9 14249 wxUSE_JOYSTICK=no
dc3d889d 14250 echo "configure: warning: Joystick not supported by this system" 1>&2
b089607b
VZ
14251 fi
14252fi
14253
14254fi
14255
ceded8b9 14256if test "$wxUSE_JOYSTICK" = "yes"; then
10f2d63a
VZ
14257 cat >> confdefs.h <<\EOF
14258#define wxUSE_JOYSTICK 1
14259EOF
14260
14261 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
10f2d63a
VZ
14262fi
14263
dc3d889d
VZ
14264fi
14265
10f2d63a 14266
b089607b
VZ
14267if test "$TOOLKIT" != "MSW"; then
14268
10f2d63a
VZ
14269HAVE_DL_FUNCS=0
14270HAVE_SHL_FUNCS=0
14271if test "$wxUSE_DYNLIB_CLASS" = "yes"; then
b4085ce6
GD
14272 if test "$USE_MAC" = 1; then
14273 HAVE_DL_FUNCS=1
14274 else
14275 for ac_func in dlopen
10f2d63a
VZ
14276do
14277echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1db8dc4a 14278echo "configure:14279: checking for $ac_func" >&5
10f2d63a
VZ
14279if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14280 echo $ac_n "(cached) $ac_c" 1>&6
14281else
14282 cat > conftest.$ac_ext <<EOF
1db8dc4a 14283#line 14284 "configure"
10f2d63a
VZ
14284#include "confdefs.h"
14285/* System header to define __stub macros and hopefully few prototypes,
14286 which can conflict with char $ac_func(); below. */
14287#include <assert.h>
14288/* Override any gcc2 internal prototype to avoid an error. */
14289/* We use char because int might match the return type of a gcc2
14290 builtin and then its argument prototype would still apply. */
14291char $ac_func();
14292
14293int main() {
14294
14295/* The GNU C library defines this for functions which it implements
14296 to always fail with ENOSYS. Some functions are actually named
14297 something starting with __ and the normal name is an alias. */
14298#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14299choke me
14300#else
e8482f24 14301$ac_func();
10f2d63a
VZ
14302#endif
14303
14304; return 0; }
14305EOF
1db8dc4a 14306if { (eval echo configure:14307: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
14307 rm -rf conftest*
14308 eval "ac_cv_func_$ac_func=yes"
14309else
14310 echo "configure: failed program was:" >&5
14311 cat conftest.$ac_ext >&5
14312 rm -rf conftest*
14313 eval "ac_cv_func_$ac_func=no"
14314fi
14315rm -f conftest*
14316fi
14317
14318if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14319 echo "$ac_t""yes" 1>&6
14320 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14321 cat >> confdefs.h <<EOF
14322#define $ac_tr_func 1
14323EOF
14324
14325 cat >> confdefs.h <<\EOF
14326#define HAVE_DLOPEN 1
14327EOF
14328
14329 HAVE_DL_FUNCS=1
14330
14331else
14332 echo "$ac_t""no" 1>&6
14333echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
1db8dc4a 14334echo "configure:14335: checking for dlopen in -ldl" >&5
10f2d63a
VZ
14335ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
14336if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14337 echo $ac_n "(cached) $ac_c" 1>&6
14338else
14339 ac_save_LIBS="$LIBS"
14340LIBS="-ldl $LIBS"
14341cat > conftest.$ac_ext <<EOF
1db8dc4a 14342#line 14343 "configure"
10f2d63a
VZ
14343#include "confdefs.h"
14344/* Override any gcc2 internal prototype to avoid an error. */
14345/* We use char because int might match the return type of a gcc2
14346 builtin and then its argument prototype would still apply. */
14347char dlopen();
14348
14349int main() {
14350dlopen()
14351; return 0; }
14352EOF
1db8dc4a 14353if { (eval echo configure:14354: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
14354 rm -rf conftest*
14355 eval "ac_cv_lib_$ac_lib_var=yes"
14356else
14357 echo "configure: failed program was:" >&5
14358 cat conftest.$ac_ext >&5
14359 rm -rf conftest*
14360 eval "ac_cv_lib_$ac_lib_var=no"
14361fi
14362rm -f conftest*
14363LIBS="$ac_save_LIBS"
14364
14365fi
14366if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14367 echo "$ac_t""yes" 1>&6
14368
14369 cat >> confdefs.h <<\EOF
14370#define HAVE_DLOPEN 1
14371EOF
14372
14373 HAVE_DL_FUNCS=1
14374 LIBS="$LIBS -ldl"
14375
14376else
14377 echo "$ac_t""no" 1>&6
14378
14379 for ac_func in shl_load
14380do
14381echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1db8dc4a 14382echo "configure:14383: checking for $ac_func" >&5
10f2d63a
VZ
14383if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14384 echo $ac_n "(cached) $ac_c" 1>&6
14385else
14386 cat > conftest.$ac_ext <<EOF
1db8dc4a 14387#line 14388 "configure"
10f2d63a
VZ
14388#include "confdefs.h"
14389/* System header to define __stub macros and hopefully few prototypes,
14390 which can conflict with char $ac_func(); below. */
14391#include <assert.h>
14392/* Override any gcc2 internal prototype to avoid an error. */
14393/* We use char because int might match the return type of a gcc2
14394 builtin and then its argument prototype would still apply. */
14395char $ac_func();
14396
14397int main() {
14398
14399/* The GNU C library defines this for functions which it implements
14400 to always fail with ENOSYS. Some functions are actually named
14401 something starting with __ and the normal name is an alias. */
14402#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14403choke me
14404#else
e8482f24 14405$ac_func();
10f2d63a
VZ
14406#endif
14407
14408; return 0; }
14409EOF
1db8dc4a 14410if { (eval echo configure:14411: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
14411 rm -rf conftest*
14412 eval "ac_cv_func_$ac_func=yes"
14413else
14414 echo "configure: failed program was:" >&5
14415 cat conftest.$ac_ext >&5
14416 rm -rf conftest*
14417 eval "ac_cv_func_$ac_func=no"
14418fi
14419rm -f conftest*
14420fi
14421
14422if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14423 echo "$ac_t""yes" 1>&6
14424 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14425 cat >> confdefs.h <<EOF
14426#define $ac_tr_func 1
14427EOF
14428
14429 cat >> confdefs.h <<\EOF
14430#define HAVE_SHL_LOAD 1
14431EOF
14432
14433 HAVE_SHL_FUNCS=1
14434
14435else
14436 echo "$ac_t""no" 1>&6
f6bcfd97 14437echo $ac_n "checking for dld in -lshl_load""... $ac_c" 1>&6
1db8dc4a 14438echo "configure:14439: checking for dld in -lshl_load" >&5
f6bcfd97
BP
14439ac_lib_var=`echo shl_load'_'dld | sed 'y%./+-%__p_%'`
14440if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14441 echo $ac_n "(cached) $ac_c" 1>&6
14442else
14443 ac_save_LIBS="$LIBS"
14444LIBS="-lshl_load $LIBS"
14445cat > conftest.$ac_ext <<EOF
1db8dc4a 14446#line 14447 "configure"
f6bcfd97
BP
14447#include "confdefs.h"
14448/* Override any gcc2 internal prototype to avoid an error. */
14449/* We use char because int might match the return type of a gcc2
14450 builtin and then its argument prototype would still apply. */
14451char dld();
14452
14453int main() {
14454dld()
14455; return 0; }
14456EOF
1db8dc4a 14457if { (eval echo configure:14458: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
f6bcfd97
BP
14458 rm -rf conftest*
14459 eval "ac_cv_lib_$ac_lib_var=yes"
14460else
14461 echo "configure: failed program was:" >&5
14462 cat conftest.$ac_ext >&5
14463 rm -rf conftest*
14464 eval "ac_cv_lib_$ac_lib_var=no"
14465fi
14466rm -f conftest*
14467LIBS="$ac_save_LIBS"
14468
14469fi
14470if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14471 echo "$ac_t""yes" 1>&6
14472
14473 HAVE_SHL_FUNCS=1
14474 LIBS="$LIBS -ldld"
14475
14476else
14477 echo "$ac_t""no" 1>&6
14478fi
14479
14480
10f2d63a
VZ
14481fi
14482done
14483
14484
14485fi
14486
14487
14488fi
14489done
14490
14491
f6bcfd97
BP
14492 if test "$HAVE_DL_FUNCS" = 1; then
14493 for ac_func in dlerror
14494do
14495echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1db8dc4a 14496echo "configure:14497: checking for $ac_func" >&5
f6bcfd97
BP
14497if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14498 echo $ac_n "(cached) $ac_c" 1>&6
14499else
14500 cat > conftest.$ac_ext <<EOF
1db8dc4a 14501#line 14502 "configure"
f6bcfd97
BP
14502#include "confdefs.h"
14503/* System header to define __stub macros and hopefully few prototypes,
14504 which can conflict with char $ac_func(); below. */
14505#include <assert.h>
14506/* Override any gcc2 internal prototype to avoid an error. */
14507/* We use char because int might match the return type of a gcc2
14508 builtin and then its argument prototype would still apply. */
14509char $ac_func();
14510
14511int main() {
14512
14513/* The GNU C library defines this for functions which it implements
14514 to always fail with ENOSYS. Some functions are actually named
14515 something starting with __ and the normal name is an alias. */
14516#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14517choke me
14518#else
14519$ac_func();
14520#endif
14521
14522; return 0; }
14523EOF
1db8dc4a 14524if { (eval echo configure:14525: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
f6bcfd97
BP
14525 rm -rf conftest*
14526 eval "ac_cv_func_$ac_func=yes"
14527else
14528 echo "configure: failed program was:" >&5
14529 cat conftest.$ac_ext >&5
14530 rm -rf conftest*
14531 eval "ac_cv_func_$ac_func=no"
14532fi
14533rm -f conftest*
14534fi
14535
14536if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14537 echo "$ac_t""yes" 1>&6
14538 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14539 cat >> confdefs.h <<EOF
14540#define $ac_tr_func 1
14541EOF
14542 cat >> confdefs.h <<\EOF
14543#define HAVE_DLERROR 1
14544EOF
14545
14546else
14547 echo "$ac_t""no" 1>&6
14548echo $ac_n "checking for dlerror in -ldl""... $ac_c" 1>&6
1db8dc4a 14549echo "configure:14550: checking for dlerror in -ldl" >&5
f6bcfd97
BP
14550ac_lib_var=`echo dl'_'dlerror | sed 'y%./+-%__p_%'`
14551if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14552 echo $ac_n "(cached) $ac_c" 1>&6
14553else
14554 ac_save_LIBS="$LIBS"
14555LIBS="-ldl $LIBS"
14556cat > conftest.$ac_ext <<EOF
1db8dc4a 14557#line 14558 "configure"
f6bcfd97
BP
14558#include "confdefs.h"
14559/* Override any gcc2 internal prototype to avoid an error. */
14560/* We use char because int might match the return type of a gcc2
14561 builtin and then its argument prototype would still apply. */
14562char dlerror();
14563
14564int main() {
14565dlerror()
14566; return 0; }
14567EOF
1db8dc4a 14568if { (eval echo configure:14569: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
f6bcfd97
BP
14569 rm -rf conftest*
14570 eval "ac_cv_lib_$ac_lib_var=yes"
14571else
14572 echo "configure: failed program was:" >&5
14573 cat conftest.$ac_ext >&5
14574 rm -rf conftest*
14575 eval "ac_cv_lib_$ac_lib_var=no"
14576fi
14577rm -f conftest*
14578LIBS="$ac_save_LIBS"
14579
14580fi
14581if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14582 echo "$ac_t""yes" 1>&6
14583 cat >> confdefs.h <<\EOF
14584#define HAVE_DLERROR 1
14585EOF
14586
14587else
14588 echo "$ac_t""no" 1>&6
14589fi
14590
14591fi
14592done
14593
14594 fi
b4085ce6 14595 fi
f6bcfd97 14596
10f2d63a
VZ
14597 if test "$HAVE_DL_FUNCS" = 0; then
14598 if test "$HAVE_SHL_FUNCS" = 0; then
14599 if test "$USE_UNIX" = 1; then
b12915c1 14600 echo "configure: warning: Missing dynamic loading support, several features will be disabled" 1>&2
10f2d63a
VZ
14601 wxUSE_DYNLIB_CLASS=no
14602 else
b12915c1 14603 echo "configure: warning: Assuming wxLibrary class works on this platform" 1>&2
10f2d63a
VZ
14604 fi
14605 fi
14606 fi
14607fi
14608
b089607b
VZ
14609fi
14610
10f2d63a 14611if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
b12915c1 14612 cat >> confdefs.h <<\EOF
10f2d63a
VZ
14613#define wxUSE_DYNLIB_CLASS 1
14614EOF
14615
b12915c1
VZ
14616else
14617 wxUSE_ODBC=no
14618 wxUSE_SERIAL=no
10f2d63a
VZ
14619fi
14620
14621
14622if test "$wxUSE_UNICODE" = "yes" ; then
14623 cat >> confdefs.h <<\EOF
14624#define wxUSE_UNICODE 1
14625EOF
14626
14627fi
14628
14629if test "$wxUSE_WCSRTOMBS" = "yes" ; then
14630 cat >> confdefs.h <<\EOF
14631#define wxUSE_WCSRTOMBS 1
14632EOF
14633
14634fi
14635
14636if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
14637 cat >> confdefs.h <<\EOF
14638#define wxUSE_EXPERIMENTAL_PRINTF 1
14639EOF
14640
14641fi
14642
14643
b12915c1
VZ
14644if test "$wxUSE_SERIAL" = "yes" ; then
14645 cat >> confdefs.h <<\EOF
14646#define wxUSE_SERIAL 1
14647EOF
14648
14649fi
14650
14651
10f2d63a
VZ
14652IODBC_C_SRC=""
14653if test "$wxUSE_ODBC" = "yes" ; then
14654 cat >> confdefs.h <<\EOF
14655#define wxUSE_ODBC 1
14656EOF
14657
14658 WXODBCFLAG="-D_IODBC_"
14659 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
14660 IODBCOBJS="\$(IODBC_OBJS)"
14661else
14662 IODBCOBJS=
14663fi
14664
14665
14666if test "$wxUSE_POSTSCRIPT" = "yes" ; then
14667 cat >> confdefs.h <<\EOF
14668#define wxUSE_POSTSCRIPT 1
14669EOF
14670
14671fi
14672
14673cat >> confdefs.h <<\EOF
14674#define wxUSE_AFM_FOR_POSTSCRIPT 1
14675EOF
14676
14677
14678cat >> confdefs.h <<\EOF
14679#define wxUSE_NORMALIZED_PS_FONTS 1
14680EOF
14681
14682
14683
14684if test "$wxUSE_CONSTRAINTS" = "yes"; then
14685 cat >> confdefs.h <<\EOF
14686#define wxUSE_CONSTRAINTS 1
14687EOF
14688
14689 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
14690fi
14691
14692if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
14693 cat >> confdefs.h <<\EOF
14694#define wxUSE_MDI_ARCHITECTURE 1
14695EOF
14696
14697 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
14698fi
14699
14700if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
14701 cat >> confdefs.h <<\EOF
14702#define wxUSE_DOC_VIEW_ARCHITECTURE 1
14703EOF
14704
14705 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
14706 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
14707 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
14708 fi
14709fi
14710
14711if test "$wxUSE_HELP" = "yes"; then
14712 cat >> confdefs.h <<\EOF
14713#define wxUSE_HELP 1
14714EOF
14715
14716 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
14717fi
14718
14719if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
14720 if test "$wxUSE_CONSTRAINTS" != "yes"; then
14721 echo "configure: warning: Printing support cannot be used without constraints so it won't be compiled without it" 1>&2
14722 else
14723 cat >> confdefs.h <<\EOF
14724#define wxUSE_PRINTING_ARCHITECTURE 1
14725EOF
14726
14727 fi
14728 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
14729fi
14730
14731if test "$wxUSE_PROLOGIO" = "yes" ; then
14732 cat >> confdefs.h <<\EOF
14733#define wxUSE_PROLOGIO 1
14734EOF
14735
14736fi
14737
14738if test "$wxUSE_RESOURCES" = "yes" ; then
14739 if test "$wxUSE_PROLOGIO" = "yes" ; then
14740 cat >> confdefs.h <<\EOF
14741#define wxUSE_RESOURCES 1
14742EOF
14743
14744 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS resource"
14745 else
14746 echo "configure: warning: wxWindows ressource system requires PrologIO and can't be compiled without it." 1>&2
14747 fi
14748fi
14749
14750if test "$wxUSE_X_RESOURCES" = "yes"; then
14751 cat >> confdefs.h <<\EOF
14752#define wxUSE_X_RESOURCES 1
14753EOF
14754
14755fi
14756
14757
14758if test "$wxUSE_IPC" = "yes"; then
eb4efbdc
VZ
14759 if test "$wxUSE_SOCKETS" != "yes"; then
14760 echo "configure: warning: wxWindows IPC classes require sockets" 1>&2
14761 fi
14762
10f2d63a
VZ
14763 cat >> confdefs.h <<\EOF
14764#define wxUSE_IPC 1
14765EOF
14766
14767fi
14768
14769if test "$wxUSE_CLIPBOARD" = "yes"; then
14770 cat >> confdefs.h <<\EOF
14771#define wxUSE_CLIPBOARD 1
14772EOF
14773
14774fi
14775
14776if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
14777 if test "$wxUSE_GTK" = 1; then
14778 if test "$WXGTK12" != 1; then
14779 echo "configure: warning: Drag and drop is only supported under GTK+ 1.2" 1>&2
14780 wxUSE_DRAG_AND_DROP=no
14781 fi
14782 fi
14783
14784 if test "$wxUSE_MOTIF" = 1; then
14785 echo "configure: warning: Drag and drop is not yet supported under Motif" 1>&2
14786 wxUSE_DRAG_AND_DROP=no
14787 fi
14788
14789 if test "$USE_WIN32" = 1; then
c521c494
RL
14790
14791 for ac_hdr in ole2.h
10f2d63a
VZ
14792do
14793ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
14794echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1db8dc4a 14795echo "configure:14796: checking for $ac_hdr" >&5
10f2d63a
VZ
14796if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
14797 echo $ac_n "(cached) $ac_c" 1>&6
14798else
14799 cat > conftest.$ac_ext <<EOF
1db8dc4a 14800#line 14801 "configure"
10f2d63a
VZ
14801#include "confdefs.h"
14802#include <$ac_hdr>
14803EOF
14804ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1db8dc4a 14805{ (eval echo configure:14806: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
14806ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14807if test -z "$ac_err"; then
14808 rm -rf conftest*
14809 eval "ac_cv_header_$ac_safe=yes"
14810else
14811 echo "$ac_err" >&5
14812 echo "configure: failed program was:" >&5
14813 cat conftest.$ac_ext >&5
14814 rm -rf conftest*
14815 eval "ac_cv_header_$ac_safe=no"
14816fi
14817rm -f conftest*
14818fi
14819if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14820 echo "$ac_t""yes" 1>&6
14821 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
14822 cat >> confdefs.h <<EOF
14823#define $ac_tr_hdr 1
14824EOF
14825
14826else
14827 echo "$ac_t""no" 1>&6
14828fi
14829done
14830
c521c494
RL
14831
14832 if test "$ac_cv_header_ole2_h" = "yes" ; then
14833 if test "$GCC" = yes ; then
b64f0a5f
RL
14834 ALL_OBJECTS="$ALL_OBJECTS \$(OLEOBJS)"
14835 ALL_DEPFILES="$ALL_DEPFILES \$(OLEDEPS)"
c521c494 14836 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks"
b64f0a5f
RL
14837 LIBS="$LIBS -lole32 -luuid"
14838
14839 if test "$wxUSE_METAFILE" = "yes"; then
14840 cat >> confdefs.h <<\EOF
14841#define wxUSE_METAFILE 1
14842EOF
14843
14844 cat >> confdefs.h <<\EOF
14845#define wxUSE_ENH_METAFILE 1
14846EOF
14847
14848 fi
c521c494
RL
14849 fi
14850 else
10f2d63a
VZ
14851 echo "configure: warning: Drag and drop disabled because OLE headers not found" 1>&2
14852 wxUSE_DRAG_AND_DROP=no
14853 fi
14854 fi
14855
14856 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
14857 cat >> confdefs.h <<\EOF
14858#define wxUSE_DRAG_AND_DROP 1
14859EOF
14860
14861 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
14862 fi
14863
14864fi
14865
14866if test "$wxUSE_SPLINES" = "yes" ; then
14867 cat >> confdefs.h <<\EOF
14868#define wxUSE_SPLINES 1
14869EOF
14870
14871fi
14872
14873
14874if test "$wxUSE_ACCEL" = "yes"; then
14875 cat >> confdefs.h <<\EOF
14876#define wxUSE_ACCEL 1
14877EOF
14878
14879fi
14880
14881if test "$wxUSE_CARET" = "yes"; then
14882 cat >> confdefs.h <<\EOF
14883#define wxUSE_CARET 1
14884EOF
14885
14886 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
14887fi
14888
14889if test "$wxUSE_COMBOBOX" = "yes"; then
14890 cat >> confdefs.h <<\EOF
14891#define wxUSE_COMBOBOX 1
14892EOF
14893
14894fi
14895
14896if test "$wxUSE_CHOICE" = "yes"; then
14897 cat >> confdefs.h <<\EOF
14898#define wxUSE_CHOICE 1
14899EOF
14900
14901fi
14902
14903if test "$wxUSE_BMPBUTTON" = "yes"; then
14904 cat >> confdefs.h <<\EOF
14905#define wxUSE_BMPBUTTON 1
14906EOF
14907
14908fi
14909
14910if test "$wxUSE_CHECKBOX" = "yes"; then
14911 cat >> confdefs.h <<\EOF
14912#define wxUSE_CHECKBOX 1
14913EOF
14914
14915fi
14916
14917if test "$wxUSE_CHECKLST" = "yes"; then
14918 cat >> confdefs.h <<\EOF
14919#define wxUSE_CHECKLISTBOX 1
14920EOF
14921
14922 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
14923fi
14924
14925if test "$wxUSE_GAUGE" = "yes"; then
14926 cat >> confdefs.h <<\EOF
14927#define wxUSE_GAUGE 1
14928EOF
14929
14930fi
14931
d6a55c4b
VZ
14932if test "$wxUSE_NEW_GRID" = "yes"; then
14933 wxUSE_GRID="yes"
10f2d63a 14934 cat >> confdefs.h <<\EOF
d6a55c4b 14935#define wxUSE_NEW_GRID 1
10f2d63a
VZ
14936EOF
14937
d6a55c4b 14938 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS newgrid"
10f2d63a
VZ
14939fi
14940
d6a55c4b 14941if test "$wxUSE_GRID" = "yes"; then
10f2d63a 14942 cat >> confdefs.h <<\EOF
d6a55c4b 14943#define wxUSE_GRID 1
10f2d63a
VZ
14944EOF
14945
d6a55c4b 14946 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
10f2d63a
VZ
14947fi
14948
14949if test "$wxUSE_IMAGLIST" = "yes"; then
14950 cat >> confdefs.h <<\EOF
14951#define wxUSE_IMAGLIST 1
14952EOF
14953
14954fi
14955
14956if test "$wxUSE_LISTBOX" = "yes"; then
14957 cat >> confdefs.h <<\EOF
14958#define wxUSE_LISTBOX 1
14959EOF
14960
14961fi
14962
14963if test "$wxUSE_LISTCTRL" = "yes"; then
14964 if test "$wxUSE_IMAGLIST" = "yes"; then
14965 cat >> confdefs.h <<\EOF
14966#define wxUSE_LISTCTRL 1
14967EOF
14968
14969 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
14970 else
14971 echo "configure: warning: wxListCtrl requires wxImageList and won't be compiled without it" 1>&2
14972 fi
14973fi
14974
14975if test "$wxUSE_NOTEBOOK" = "yes"; then
14976 cat >> confdefs.h <<\EOF
14977#define wxUSE_NOTEBOOK 1
14978EOF
14979
14980 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
14981fi
14982
14983if test "$wxUSE_RADIOBOX" = "yes"; then
14984 cat >> confdefs.h <<\EOF
14985#define wxUSE_RADIOBOX 1
14986EOF
14987
14988fi
14989
14990if test "$wxUSE_RADIOBTN" = "yes"; then
14991 cat >> confdefs.h <<\EOF
14992#define wxUSE_RADIOBTN 1
14993EOF
14994
14995fi
14996
14997if test "$wxUSE_SASH" = "yes"; then
14998 cat >> confdefs.h <<\EOF
14999#define wxUSE_SASH 1
15000EOF
15001
15002 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
15003fi
15004
15005if test "$wxUSE_SCROLLBAR" = "yes"; then
15006 cat >> confdefs.h <<\EOF
15007#define wxUSE_SCROLLBAR 1
15008EOF
15009
741a9306 15010 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
10f2d63a
VZ
15011fi
15012
15013if test "$wxUSE_SLIDER" = "yes"; then
15014 cat >> confdefs.h <<\EOF
15015#define wxUSE_SLIDER 1
15016EOF
15017
15018fi
15019
15020if test "$wxUSE_SPINBTN" = "yes"; then
15021 cat >> confdefs.h <<\EOF
15022#define wxUSE_SPINBTN 1
15023EOF
15024
15025fi
15026
56cfaa52
RR
15027if test "$wxUSE_SPINCTRL" = "yes"; then
15028 cat >> confdefs.h <<\EOF
15029#define wxUSE_SPINCTRL 1
15030EOF
15031
15032fi
15033
10f2d63a
VZ
15034if test "$wxUSE_SPLITTER" = "yes"; then
15035 cat >> confdefs.h <<\EOF
15036#define wxUSE_SPLITTER 1
15037EOF
15038
15039 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
15040fi
15041
15042if test "$wxUSE_STATBMP" = "yes"; then
15043 cat >> confdefs.h <<\EOF
15044#define wxUSE_STATBMP 1
15045EOF
15046
15047fi
15048
15049if test "$wxUSE_STATBOX" = "yes"; then
15050 cat >> confdefs.h <<\EOF
15051#define wxUSE_STATBOX 1
15052EOF
15053
15054fi
15055
15056if test "$wxUSE_STATLINE" = "yes"; then
15057 if test "$wxUSE_WINE" = 1 ; then
15058 echo "configure: warning: wxStaticLine is not supported under WINE" 1>&2
15059 else
15060 cat >> confdefs.h <<\EOF
15061#define wxUSE_STATLINE 1
15062EOF
15063
15064 fi
15065fi
15066
15067if test "$wxUSE_STATUSBAR" = "yes"; then
15068 cat >> confdefs.h <<\EOF
15069#define wxUSE_STATUSBAR 1
15070EOF
15071
2286341c
VZ
15072
15073 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
10f2d63a
VZ
15074fi
15075
15076if test "$wxUSE_TABDIALOG" = "yes"; then
15077 cat >> confdefs.h <<\EOF
15078#define wxUSE_TAB_DIALOG 1
15079EOF
15080
15081 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab"
15082fi
15083
1db8dc4a
VZ
15084if test "$wxUSE_TOGGLEBTN" = "yes"; then
15085 cat >> confdefs.h <<\EOF
15086#define wxUSE_TOGGLEBTN 1
15087EOF
15088
15089fi
15090
360d6699
VZ
15091if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
15092 cat >> confdefs.h <<\EOF
15093#define wxUSE_TOOLBAR_SIMPLE 1
15094EOF
15095
15096 wxUSE_TOOLBAR="yes"
15097fi
15098
10f2d63a
VZ
15099if test "$wxUSE_TOOLBAR" = "yes"; then
15100 cat >> confdefs.h <<\EOF
15101#define wxUSE_TOOLBAR 1
15102EOF
15103
360d6699
VZ
15104
15105 if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
15106 wxUSE_TOOLBAR_NATIVE="yes"
15107 fi
15108
10f2d63a
VZ
15109 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
15110fi
15111
360d6699
VZ
15112if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
15113 cat >> confdefs.h <<\EOF
15114#define wxUSE_TOOLBAR_NATIVE 1
15115EOF
15116
15117fi
15118
10f2d63a
VZ
15119if test "$wxUSE_TOOLTIPS" = "yes"; then
15120 if test "$wxUSE_MOTIF" = 1; then
15121 echo "configure: warning: wxTooltip not supported yet under Motif" 1>&2
15122 else
15123 if test "$wxUSE_WINE" = 1; then
15124 echo "configure: warning: wxTooltip not supported under WINE" 1>&2
15125 else
15126 cat >> confdefs.h <<\EOF
15127#define wxUSE_TOOLTIPS 1
15128EOF
15129
15130 fi
15131 fi
15132fi
15133
15134if test "$wxUSE_TREECTRL" = "yes"; then
15135 if test "$wxUSE_IMAGLIST" = "yes"; then
15136 cat >> confdefs.h <<\EOF
15137#define wxUSE_TREECTRL 1
15138EOF
15139
15140 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
15141 else
15142 echo "configure: warning: wxTreeCtrl requires wxImageList and won't be compiled without it" 1>&2
15143 fi
15144fi
15145
15146
15147
10f2d63a
VZ
15148if test "$wxUSE_DIRDLG" = "yes"; then
15149 if test "$wxUSE_CONSTRAINTS" != "yes"; then
15150 echo "configure: warning: wxDirDialog requires constraints so it won't be compiled without them" 1>&2
15151 else
15152 if test "$wxUSE_TREECTRL" != "yes"; then
15153 echo "configure: warning: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" 1>&2
15154 else
15155 cat >> confdefs.h <<\EOF
15156#define wxUSE_DIRDLG 1
15157EOF
15158
15159 fi
15160 fi
15161fi
15162
15163if test "$wxUSE_TEXTDLG" = "yes"; then
15164 cat >> confdefs.h <<\EOF
15165#define wxUSE_TEXTDLG 1
15166EOF
15167
15168fi
15169
15170if test "$wxUSE_STARTUP_TIPS" = "yes"; then
15171 if test "$wxUSE_CONSTRAINTS" != "yes"; then
15172 echo "configure: warning: Startup tips requires constraints and won't be compiled without them" 1>&2
15173 else
15174 cat >> confdefs.h <<\EOF
15175#define wxUSE_STARTUP_TIPS 1
15176EOF
15177
15178 fi
15179fi
15180
15181if test "$wxUSE_PROGRESSDLG" = "yes"; then
15182 if test "$wxUSE_CONSTRAINTS" != "yes"; then
15183 echo "configure: warning: wxProgressDialog requires constraints so it won't be compiled without them" 1>&2
15184 else
15185 cat >> confdefs.h <<\EOF
15186#define wxUSE_PROGRESSDLG 1
15187EOF
15188
15189 fi
15190fi
15191
15192if test "$wxUSE_MINIFRAME" = "yes"; then
15193 cat >> confdefs.h <<\EOF
15194#define wxUSE_MINIFRAME 1
15195EOF
15196
15197 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
15198fi
15199
15200if test "$wxUSE_HTML" = "yes"; then
15201 cat >> confdefs.h <<\EOF
15202#define wxUSE_HTML 1
15203EOF
15204
15205 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html"
15206 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS html"
15207fi
15208
15209if test "$wxUSE_VALIDATORS" = "yes"; then
15210 cat >> confdefs.h <<\EOF
15211#define wxUSE_VALIDATORS 1
15212EOF
15213
15214 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
15215fi
15216
15217if test "$wxUSE_GIF" = "yes" ; then
15218 cat >> confdefs.h <<\EOF
15219#define wxUSE_GIF 1
15220EOF
15221
15222fi
15223
15224if test "$wxUSE_PCX" = "yes" ; then
15225 cat >> confdefs.h <<\EOF
15226#define wxUSE_PCX 1
15227EOF
15228
15229fi
15230
15231if test "$wxUSE_PNM" = "yes" ; then
15232 cat >> confdefs.h <<\EOF
15233#define wxUSE_PNM 1
15234EOF
15235
15236fi
15237
15238
32832908
VZ
15239if test "$cross_compiling" = "yes"; then
15240 OSINFO="\"$host\""
15241else
15242 OSINFO=`uname -s -r -m`
15243 OSINFO="\"$OSINFO\""
15244fi
15245
aaa37c0d
VZ
15246cat >> confdefs.h <<EOF
15247#define WXWIN_OS_DESCRIPTION $OSINFO
15248EOF
15249
15250
15251
f6bcfd97
BP
15252GUILIBS="$GUI_TK_LIBRARY $TOOLKIT_LINK"
15253OPENGL_LIBS="$OPENGL_LINK"
10f2d63a 15254
b4085ce6
GD
15255if test "$USE_MAC" = 1 ; then
15256 EXTRA_LIBS="$LIBS $POSIX4_LINK $INET_LINK $WCHAR_LINK $THREADS_LINK $DMALLOC_LINK $DL_LINK $ZLIB_LINK -framework System"
15257 CFLAGS="${CFLAGS} -fpascal-strings"
15258 CPPFLAGS="${CPPFLAGS} -fpascal-strings"
15259else
15260 EXTRA_LIBS="$LIBS $POSIX4_LINK $INET_LINK $WCHAR_LINK $THREADS_LINK $DMALLOC_LINK $DL_LINK $ZLIB_LINK -lm"
15261fi
10f2d63a 15262if test "$wxUSE_GUI" = "yes"; then
3fed1840 15263 EXTRA_LIBS="$GUILIBS $PNG_LINK $JPEG_LINK $TIFF_LINK $FREETYPE_LINK $EXTRA_LIBS"
10f2d63a
VZ
15264fi
15265
15266LD_LIBS="\${top_builddir}/lib/${WX_LIBRARY_NAME_STATIC} $EXTRA_LIBS"
15267
3fed1840 15268INCLUDES="-I. -I\${top_builddir}/include -I\${top_srcdir}/include $ZLIB_INCLUDE $PNG_INCLUDE $JPEG_INCLUDE $TIFF_INCLUDE $FREETYPE_INCLUDE $TOOLKIT_INCLUDE"
10f2d63a 15269
f6bcfd97
BP
15270if test "$wxUSE_GTK" = 1; then
15271 WXCONFIG_INCLUDE=""
15272else
15273 WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE"
15274fi
15275
10f2d63a
VZ
15276if test "$GXX" = yes ; then
15277 CXXWARNINGS="-Wall"
d6a55c4b 15278 fi
10f2d63a
VZ
15279EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE $INCLUDES"
15280
f6bcfd97 15281CFLAGS=`echo $CFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \\+/ /g'`
10f2d63a
VZ
15282CXXFLAGS=`echo $CXXFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \+/ /g'`
15283
e694c22c
VZ
15284LDFLAGS="$LDFLAGS $PROFILE"
15285
10f2d63a
VZ
15286if test "$wxUSE_GUI" = "yes"; then
15287
6164f93c
VZ
15288 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS controls dialogs dragimag \
15289 drawing dynamic event font fractal image menu \
15290 minimal richedit"
b12915c1 15291
88d3a15c 15292 CPPFLAGS="$CPPFLAGS \$(EXTRADEFS) \$(APPEXTRADEFS)"
10f2d63a
VZ
15293else
15294 SAMPLES_SUBDIRS=""
15295fi
15296
ec14dd32
VZ
15297SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
15298
15299
15300
10f2d63a
VZ
15301
15302
15303
15304
15305
15306
15307
15308
15309
15310
15311
15312
15313
15314
15315
15316
15317
15318
15319
15320
15321
15322
15323
15324
15325
15326
15327
15328
15329
15330
15331
15332
15333
15334
15335
15336
15337
15338
15339
15340
15341
15342
15343
15344
15345
15346
15347
15348
15349
15350
15351
15352
1d62a8b4 15353
bdad4e7e
RR
15354
15355
15356
15357
15358
15359
15360
32832908
VZ
15361
15362
15363
15364
15365
15366
15367
15368
15369
15370
15371
15372
15373
bdad4e7e
RR
15374
15375
15376
e694c22c 15377
b12915c1 15378
2224580a
VZ
15379
15380
15381
15382
dad6c0ea 15383
f6bcfd97
BP
15384
15385
15386
15387
dad6c0ea 15388
caa2c79b 15389
3711412e 15390
10f2d63a
VZ
15391
15392
15393echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1db8dc4a 15394echo "configure:15395: checking whether ${MAKE-make} sets \${MAKE}" >&5
10f2d63a
VZ
15395set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
15396if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
15397 echo $ac_n "(cached) $ac_c" 1>&6
15398else
15399 cat > conftestmake <<\EOF
15400all:
15401 @echo 'ac_maketemp="${MAKE}"'
15402EOF
15403# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
15404eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
15405if test -n "$ac_maketemp"; then
15406 eval ac_cv_prog_make_${ac_make}_set=yes
15407else
15408 eval ac_cv_prog_make_${ac_make}_set=no
15409fi
15410rm -f conftestmake
15411fi
15412if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
15413 echo "$ac_t""yes" 1>&6
15414 SET_MAKE=
15415else
15416 echo "$ac_t""no" 1>&6
15417 SET_MAKE="MAKE=${MAKE-make}"
15418fi
15419
15420
00cf1208
RR
15421if test -d include; then
15422 if test -d include/wx; then
15423 if test -d include/wx/${TOOLKIT_DIR}; then
15424 if test -f include/wx/${TOOLKIT_DIR}/setup.h; then
15425 mv -f include/wx/${TOOLKIT_DIR}/setup.h setup.h
15426 fi
15427 fi
15428 fi
15429fi
15430
10f2d63a
VZ
15431
15432
2224580a 15433if test "$wxUSE_GUI" = "yes"; then
ec90f5e5 15434 wx_cv_path_samplesubdirs=$SAMPLES_SUBDIRS
e8482f24
GL
15435 wx_cv_path_ifs=$PATH_IFS
15436 wx_cv_program_ext=$PROGRAM_EXT
15437 wx_cv_target_library=$WX_TARGET_LIBRARY
3711412e 15438 wx_cv_target_libtype=$WX_TARGET_LIBRARY_TYPE
e8482f24 15439 subdirs="demos samples utils contrib"
2224580a
VZ
15440
15441fi
10f2d63a
VZ
15442
15443trap '' 1 2 15
15444cat > confcache <<\EOF
15445# This file is a shell script that caches the results of configure
15446# tests run on this system so they can be shared between configure
15447# scripts and configure runs. It is not useful on other systems.
15448# If it contains results you don't want to keep, you may remove or edit it.
15449#
15450# By default, configure uses ./config.cache as the cache file,
15451# creating it if it does not exist already. You can give configure
15452# the --cache-file=FILE option to use a different cache file; that is
15453# what configure does when it calls configure scripts in
15454# subdirectories, so they share the cache.
15455# Giving --cache-file=/dev/null disables caching, for debugging configure.
15456# config.status only pays attention to the cache file if you give it the
15457# --recheck option to rerun configure.
15458#
15459EOF
15460# The following way of writing the cache mishandles newlines in values,
15461# but we know of no workaround that is simple, portable, and efficient.
15462# So, don't put newlines in cache variables' values.
15463# Ultrix sh set writes to stderr and can't be redirected directly,
15464# and sets the high bit in the cache file unless we assign to the vars.
15465(set) 2>&1 |
15466 case `(ac_space=' '; set | grep ac_space) 2>&1` in
15467 *ac_space=\ *)
15468 # `set' does not quote correctly, so add quotes (double-quote substitution
15469 # turns \\\\ into \\, and sed turns \\ into \).
15470 sed -n \
15471 -e "s/'/'\\\\''/g" \
15472 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
15473 ;;
15474 *)
15475 # `set' quotes correctly as required by POSIX, so do not add quotes.
15476 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
15477 ;;
15478 esac >> confcache
15479if cmp -s $cache_file confcache; then
15480 :
15481else
15482 if test -w $cache_file; then
15483 echo "updating cache $cache_file"
15484 cat confcache > $cache_file
15485 else
15486 echo "not updating unwritable cache $cache_file"
15487 fi
15488fi
15489rm -f confcache
15490
15491trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
15492
15493test "x$prefix" = xNONE && prefix=$ac_default_prefix
15494# Let make expand exec_prefix.
15495test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15496
15497# Any assignment to VPATH causes Sun make to only execute
15498# the first set of double-colon rules, so remove it if not needed.
15499# If there is a colon in the path, we need to keep it.
15500if test "x$srcdir" = x.; then
15501 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
15502fi
15503
15504trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
15505
15506DEFS=-DHAVE_CONFIG_H
15507
15508# Without the "./", some shells look in PATH for config.status.
15509: ${CONFIG_STATUS=./config.status}
15510
15511echo creating $CONFIG_STATUS
15512rm -f $CONFIG_STATUS
15513cat > $CONFIG_STATUS <<EOF
15514#! /bin/sh
15515# Generated automatically by configure.
15516# Run this file to recreate the current configuration.
15517# This directory was configured as follows,
15518# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15519#
15520# $0 $ac_configure_args
15521#
15522# Compiler output produced by configure, useful for debugging
15523# configure, is in ./config.log if it exists.
15524
15525ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
15526for ac_option
15527do
15528 case "\$ac_option" in
15529 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15530 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
15531 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
15532 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
e8482f24 15533 echo "$CONFIG_STATUS generated by autoconf version 2.13"
10f2d63a
VZ
15534 exit 0 ;;
15535 -help | --help | --hel | --he | --h)
15536 echo "\$ac_cs_usage"; exit 0 ;;
15537 *) echo "\$ac_cs_usage"; exit 1 ;;
15538 esac
15539done
15540
15541ac_given_srcdir=$srcdir
15542ac_given_INSTALL="$INSTALL"
15543
15544trap 'rm -fr `echo "
15545 wx-config
15546 src/make.env
15547 src/makeprog.env
15548 src/makelib.env
15549 Makefile
10f2d63a
VZ
15550 setup.h:setup.h.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
15551EOF
15552cat >> $CONFIG_STATUS <<EOF
15553
15554# Protect against being on the right side of a sed subst in config.status.
15555sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
15556 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
15557$ac_vpsub
15558$extrasub
15559s%@SHELL@%$SHELL%g
15560s%@CFLAGS@%$CFLAGS%g
15561s%@CPPFLAGS@%$CPPFLAGS%g
15562s%@CXXFLAGS@%$CXXFLAGS%g
15563s%@FFLAGS@%$FFLAGS%g
15564s%@DEFS@%$DEFS%g
15565s%@LDFLAGS@%$LDFLAGS%g
15566s%@LIBS@%$LIBS%g
15567s%@exec_prefix@%$exec_prefix%g
15568s%@prefix@%$prefix%g
15569s%@program_transform_name@%$program_transform_name%g
15570s%@bindir@%$bindir%g
15571s%@sbindir@%$sbindir%g
15572s%@libexecdir@%$libexecdir%g
15573s%@datadir@%$datadir%g
15574s%@sysconfdir@%$sysconfdir%g
15575s%@sharedstatedir@%$sharedstatedir%g
15576s%@localstatedir@%$localstatedir%g
15577s%@libdir@%$libdir%g
15578s%@includedir@%$includedir%g
15579s%@oldincludedir@%$oldincludedir%g
15580s%@infodir@%$infodir%g
15581s%@mandir@%$mandir%g
7c66a493
VZ
15582s%@host@%$host%g
15583s%@host_alias@%$host_alias%g
15584s%@host_cpu@%$host_cpu%g
15585s%@host_vendor@%$host_vendor%g
15586s%@host_os@%$host_os%g
15587s%@target@%$target%g
15588s%@target_alias@%$target_alias%g
15589s%@target_cpu@%$target_cpu%g
15590s%@target_vendor@%$target_vendor%g
15591s%@target_os@%$target_os%g
15592s%@build@%$build%g
15593s%@build_alias@%$build_alias%g
15594s%@build_cpu@%$build_cpu%g
15595s%@build_vendor@%$build_vendor%g
15596s%@build_os@%$build_os%g
10f2d63a
VZ
15597s%@CC@%$CC%g
15598s%@CPP@%$CPP%g
15599s%@CXX@%$CXX%g
15600s%@CXXCPP@%$CXXCPP%g
15601s%@RANLIB@%$RANLIB%g
15602s%@AR@%$AR%g
15603s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
15604s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
15605s%@INSTALL_DATA@%$INSTALL_DATA%g
15606s%@STRIP@%$STRIP%g
15607s%@YACC@%$YACC%g
15608s%@LEX@%$LEX%g
15609s%@LEXLIB@%$LEXLIB%g
15610s%@LN_S@%$LN_S%g
6f72b082 15611s%@GTK_CONFIG_2_0@%$GTK_CONFIG_2_0%g
10f2d63a
VZ
15612s%@GTK_CONFIG@%$GTK_CONFIG%g
15613s%@GTK_CFLAGS@%$GTK_CFLAGS%g
15614s%@GTK_LIBS@%$GTK_LIBS%g
ab9b9eab
VZ
15615s%@X_CFLAGS@%$X_CFLAGS%g
15616s%@X_PRE_LIBS@%$X_PRE_LIBS%g
15617s%@X_LIBS@%$X_LIBS%g
15618s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
ec14dd32
VZ
15619s%@LEX_STEM@%$LEX_STEM%g
15620s%@PATH_IFS@%$PATH_IFS%g
10f2d63a
VZ
15621s%@WX_MAJOR_VERSION_NUMBER@%$WX_MAJOR_VERSION_NUMBER%g
15622s%@WX_MINOR_VERSION_NUMBER@%$WX_MINOR_VERSION_NUMBER%g
15623s%@WX_RELEASE_NUMBER@%$WX_RELEASE_NUMBER%g
15624s%@WX_LIBRARY_NAME@%$WX_LIBRARY_NAME%g
15625s%@WX_LIBRARY_NAME_STATIC@%$WX_LIBRARY_NAME_STATIC%g
15626s%@WX_LIBRARY_NAME_SHARED@%$WX_LIBRARY_NAME_SHARED%g
15627s%@WX_LIBRARY@%$WX_LIBRARY%g
15628s%@WX_TARGET_LIBRARY@%$WX_TARGET_LIBRARY%g
15629s%@WX_LIBRARY_LINK1@%$WX_LIBRARY_LINK1%g
15630s%@WX_LIBRARY_LINK2@%$WX_LIBRARY_LINK2%g
15631s%@WX_LIBRARY_LINK3@%$WX_LIBRARY_LINK3%g
15632s%@PROGRAM_EXT@%$PROGRAM_EXT%g
bdad4e7e
RR
15633s%@WX_LIBRARY_NAME_GL@%$WX_LIBRARY_NAME_GL%g
15634s%@WX_LIBRARY_NAME_STATIC_GL@%$WX_LIBRARY_NAME_STATIC_GL%g
15635s%@WX_LIBRARY_NAME_SHARED_GL@%$WX_LIBRARY_NAME_SHARED_GL%g
15636s%@WX_LIBRARY_GL@%$WX_LIBRARY_GL%g
15637s%@WX_TARGET_LIBRARY_GL@%$WX_TARGET_LIBRARY_GL%g
15638s%@WX_LIBRARY_LINK1_GL@%$WX_LIBRARY_LINK1_GL%g
15639s%@WX_LIBRARY_LINK2_GL@%$WX_LIBRARY_LINK2_GL%g
15640s%@WX_LIBRARY_LINK3_GL@%$WX_LIBRARY_LINK3_GL%g
10f2d63a
VZ
15641s%@WX_ALL@%$WX_ALL%g
15642s%@WX_ALL_INSTALLED@%$WX_ALL_INSTALLED%g
15643s%@SHARED_LD@%$SHARED_LD%g
15644s%@PIC_FLAG@%$PIC_FLAG%g
15645s%@DEP_INFO_FLAGS@%$DEP_INFO_FLAGS%g
caa2c79b 15646s%@CODE_GEN_FLAGS@%$CODE_GEN_FLAGS%g
1d62a8b4 15647s%@BURNT_LIBRARY_NAME@%$BURNT_LIBRARY_NAME%g
bdad4e7e 15648s%@BURNT_LIBRARY_NAME_GL@%$BURNT_LIBRARY_NAME_GL%g
f6bcfd97 15649s%@WX_TARGET_LIBRARY_SONAME@%$WX_TARGET_LIBRARY_SONAME%g
3711412e 15650s%@WX_TARGET_LIBRARY_TYPE@%$WX_TARGET_LIBRARY_TYPE%g
10f2d63a 15651s%@WXDEBUG_DEFINE@%$WXDEBUG_DEFINE%g
dad6c0ea
VZ
15652s%@USE_GUI@%$USE_GUI%g
15653s%@AFMINSTALL@%$AFMINSTALL%g
10f2d63a
VZ
15654s%@TOOLKIT@%$TOOLKIT%g
15655s%@TOOLKIT_DEF@%$TOOLKIT_DEF%g
15656s%@TOOLKIT_DIR@%$TOOLKIT_DIR%g
f6bcfd97 15657s%@TOOLKIT_NAME@%$TOOLKIT_NAME%g
10f2d63a 15658s%@TOOLKIT_INCLUDE@%$TOOLKIT_INCLUDE%g
f6bcfd97 15659s%@WXCONFIG_INCLUDE@%$WXCONFIG_INCLUDE%g
10f2d63a
VZ
15660s%@GUIHEADERS@%$GUIHEADERS%g
15661s%@GUIOBJS@%$GUIOBJS%g
15662s%@COMMONOBJS@%$COMMONOBJS%g
15663s%@GENERICOBJS@%$GENERICOBJS%g
15664s%@GUIDEPS@%$GUIDEPS%g
15665s%@COMMONDEPS@%$COMMONDEPS%g
15666s%@GENERICDEPS@%$GENERICDEPS%g
15667s%@IODBCOBJS@%$IODBCOBJS%g
15668s%@UNIXOBJS@%$UNIXOBJS%g
15669s%@UNIXDEPS@%$UNIXDEPS%g
15670s%@ALL_OBJECTS@%$ALL_OBJECTS%g
15671s%@ALL_DEPFILES@%$ALL_DEPFILES%g
10f2d63a 15672s%@GUIDIST@%$GUIDIST%g
2224580a
VZ
15673s%@PORT_FILES@%$PORT_FILES%g
15674s%@DISTDIR@%$DISTDIR%g
15675s%@RPM_SPEC@%$RPM_SPEC%g
15676s%@RPM_FILES@%$RPM_FILES%g
10f2d63a
VZ
15677s%@SRC_SUBDIRS@%$SRC_SUBDIRS%g
15678s%@INCLUDE_SUBDIRS@%$INCLUDE_SUBDIRS%g
15679s%@UTILS_SUBDIRS@%$UTILS_SUBDIRS%g
15680s%@DOCS_SUBDIRS@%$DOCS_SUBDIRS%g
15681s%@SAMPLES_SUBDIRS@%$SAMPLES_SUBDIRS%g
15682s%@USER_SUBDIRS@%$USER_SUBDIRS%g
15683s%@EXTRA_LIBS@%$EXTRA_LIBS%g
f6bcfd97 15684s%@OPENGL_LIBS@%$OPENGL_LIBS%g
b12915c1 15685s%@EXTRADEFS@%$EXTRADEFS%g
10f2d63a 15686s%@LD_LIBS@%$LD_LIBS%g
32832908
VZ
15687s%@RCINPUTSWITCH@%$RCINPUTSWITCH%g
15688s%@RCOUTPUTSWITCH@%$RCOUTPUTSWITCH%g
15689s%@RESPROGRAM@%$RESPROGRAM%g
15690s%@RESCOMP@%$RESCOMP%g
15691s%@RESFLAGS@%$RESFLAGS%g
15692s%@DLLTOOL@%$DLLTOOL%g
15693s%@AS@%$AS%g
15694s%@NM@%$NM%g
15695s%@LD@%$LD%g
15696s%@MAKEINFO@%$MAKEINFO%g
10f2d63a 15697s%@SET_MAKE@%$SET_MAKE%g
2224580a 15698s%@subdirs@%$subdirs%g
10f2d63a
VZ
15699
15700CEOF
15701EOF
15702
15703cat >> $CONFIG_STATUS <<\EOF
15704
15705# Split the substitutions into bite-sized pieces for seds with
15706# small command number limits, like on Digital OSF/1 and HP-UX.
15707ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
15708ac_file=1 # Number of current file.
15709ac_beg=1 # First line for current file.
15710ac_end=$ac_max_sed_cmds # Line after last line for current file.
15711ac_more_lines=:
15712ac_sed_cmds=""
15713while $ac_more_lines; do
15714 if test $ac_beg -gt 1; then
15715 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
15716 else
15717 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
15718 fi
15719 if test ! -s conftest.s$ac_file; then
15720 ac_more_lines=false
15721 rm -f conftest.s$ac_file
15722 else
15723 if test -z "$ac_sed_cmds"; then
15724 ac_sed_cmds="sed -f conftest.s$ac_file"
15725 else
15726 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
15727 fi
15728 ac_file=`expr $ac_file + 1`
15729 ac_beg=$ac_end
15730 ac_end=`expr $ac_end + $ac_max_sed_cmds`
15731 fi
15732done
15733if test -z "$ac_sed_cmds"; then
15734 ac_sed_cmds=cat
15735fi
15736EOF
15737
15738cat >> $CONFIG_STATUS <<EOF
15739
15740CONFIG_FILES=\${CONFIG_FILES-"wx-config
15741 src/make.env
15742 src/makeprog.env
15743 src/makelib.env
15744 Makefile
10f2d63a
VZ
15745 "}
15746EOF
15747cat >> $CONFIG_STATUS <<\EOF
15748for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
15749 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
15750 case "$ac_file" in
15751 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
15752 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
15753 *) ac_file_in="${ac_file}.in" ;;
15754 esac
15755
15756 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
15757
15758 # Remove last slash and all that follows it. Not all systems have dirname.
15759 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
15760 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
15761 # The file is in a subdirectory.
15762 test ! -d "$ac_dir" && mkdir "$ac_dir"
15763 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
15764 # A "../" for each directory in $ac_dir_suffix.
15765 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
15766 else
15767 ac_dir_suffix= ac_dots=
15768 fi
15769
15770 case "$ac_given_srcdir" in
15771 .) srcdir=.
15772 if test -z "$ac_dots"; then top_srcdir=.
15773 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
15774 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
15775 *) # Relative path.
15776 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
15777 top_srcdir="$ac_dots$ac_given_srcdir" ;;
15778 esac
15779
15780 case "$ac_given_INSTALL" in
15781 [/$]*) INSTALL="$ac_given_INSTALL" ;;
15782 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
15783 esac
15784
15785 echo creating "$ac_file"
15786 rm -f "$ac_file"
15787 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
15788 case "$ac_file" in
15789 *Makefile*) ac_comsub="1i\\
15790# $configure_input" ;;
15791 *) ac_comsub= ;;
15792 esac
15793
15794 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
15795 sed -e "$ac_comsub
15796s%@configure_input@%$configure_input%g
15797s%@srcdir@%$srcdir%g
15798s%@top_srcdir@%$top_srcdir%g
15799s%@INSTALL@%$INSTALL%g
15800" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
15801fi; done
15802rm -f conftest.s*
15803
15804# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
15805# NAME is the cpp macro being defined and VALUE is the value it is being given.
15806#
15807# ac_d sets the value in "#define NAME VALUE" lines.
15808ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
15809ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
15810ac_dC='\3'
15811ac_dD='%g'
15812# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
15813ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
15814ac_uB='\([ ]\)%\1#\2define\3'
15815ac_uC=' '
15816ac_uD='\4%g'
15817# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
15818ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
15819ac_eB='$%\1#\2define\3'
15820ac_eC=' '
15821ac_eD='%g'
15822
15823if test "${CONFIG_HEADERS+set}" != set; then
15824EOF
15825cat >> $CONFIG_STATUS <<EOF
15826 CONFIG_HEADERS="setup.h:setup.h.in"
15827EOF
15828cat >> $CONFIG_STATUS <<\EOF
15829fi
15830for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
15831 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
15832 case "$ac_file" in
15833 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
15834 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
15835 *) ac_file_in="${ac_file}.in" ;;
15836 esac
15837
15838 echo creating $ac_file
15839
15840 rm -f conftest.frag conftest.in conftest.out
15841 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
15842 cat $ac_file_inputs > conftest.in
15843
15844EOF
15845
15846# Transform confdefs.h into a sed script conftest.vals that substitutes
15847# the proper values into config.h.in to produce config.h. And first:
15848# Protect against being on the right side of a sed subst in config.status.
15849# Protect against being in an unquoted here document in config.status.
15850rm -f conftest.vals
15851cat > conftest.hdr <<\EOF
15852s/[\\&%]/\\&/g
15853s%[\\$`]%\\&%g
15854s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
15855s%ac_d%ac_u%gp
15856s%ac_u%ac_e%gp
15857EOF
15858sed -n -f conftest.hdr confdefs.h > conftest.vals
15859rm -f conftest.hdr
15860
15861# This sed command replaces #undef with comments. This is necessary, for
15862# example, in the case of _POSIX_SOURCE, which is predefined and required
15863# on some systems where configure will not decide to define it.
15864cat >> conftest.vals <<\EOF
15865s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
15866EOF
15867
15868# Break up conftest.vals because some shells have a limit on
15869# the size of here documents, and old seds have small limits too.
15870
15871rm -f conftest.tail
15872while :
15873do
15874 ac_lines=`grep -c . conftest.vals`
15875 # grep -c gives empty output for an empty file on some AIX systems.
15876 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
15877 # Write a limited-size here document to conftest.frag.
15878 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
15879 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
15880 echo 'CEOF
15881 sed -f conftest.frag conftest.in > conftest.out
15882 rm -f conftest.in
15883 mv conftest.out conftest.in
15884' >> $CONFIG_STATUS
15885 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
15886 rm -f conftest.vals
15887 mv conftest.tail conftest.vals
15888done
15889rm -f conftest.vals
15890
15891cat >> $CONFIG_STATUS <<\EOF
15892 rm -f conftest.frag conftest.h
15893 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
15894 cat conftest.in >> conftest.h
15895 rm -f conftest.in
15896 if cmp -s $ac_file conftest.h 2>/dev/null; then
15897 echo "$ac_file is unchanged"
15898 rm -f conftest.h
15899 else
15900 # Remove last slash and all that follows it. Not all systems have dirname.
15901 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
15902 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
15903 # The file is in a subdirectory.
15904 test ! -d "$ac_dir" && mkdir "$ac_dir"
15905 fi
15906 rm -f $ac_file
15907 mv conftest.h $ac_file
15908 fi
15909fi; done
15910
15911EOF
15912cat >> $CONFIG_STATUS <<EOF
15913
15914 TOOLKIT_DIR="${TOOLKIT_DIR}"
f6bcfd97 15915 TOOLKIT_NAME="${TOOLKIT_NAME}"
07eb77a6 15916 LN_S="${LN_S}"
10f2d63a
VZ
15917
15918
15919EOF
15920cat >> $CONFIG_STATUS <<\EOF
15921
15922 chmod +x wx-config
f6bcfd97
BP
15923 mv wx-config wx${TOOLKIT_NAME}-config
15924 ${LN_S} wx${TOOLKIT_NAME}-config wx-config
00cf1208
RR
15925
15926
15927 if test ! -d lib; then
15928 mkdir lib
15929 fi
15930 if test ! -d lib/wx; then
15931 mkdir lib/wx
15932 fi
15933 if test ! -d lib/wx/include; then
15934 mkdir lib/wx/include
15935 fi
15936 if test ! -d lib/wx/include/wx; then
15937 mkdir lib/wx/include/wx
15938 fi
f6bcfd97
BP
15939 if test ! -d lib/wx/include/wx/${TOOLKIT_NAME}; then
15940 mkdir lib/wx/include/wx/${TOOLKIT_NAME}
00cf1208
RR
15941 fi
15942 if test -f setup.h; then
f6bcfd97 15943 cp -f setup.h lib/wx/include/wx/${TOOLKIT_NAME}/setup.h
00cf1208 15944 fi
07eb77a6 15945
00cf1208 15946
10f2d63a
VZ
15947 if test ! -d include; then
15948 mkdir include
15949 fi
15950 if test ! -d include/wx; then
15951 mkdir include/wx
15952 fi
15953 if test ! -d include/wx/${TOOLKIT_DIR}; then
15954 mkdir include/wx/${TOOLKIT_DIR}
15955 fi
afc31813
VZ
15956 if test -f setup.h; then
15957 mv -f setup.h include/wx/${TOOLKIT_DIR}/setup.h
15958 fi
00cf1208 15959
10f2d63a
VZ
15960
15961exit 0
15962EOF
15963chmod +x $CONFIG_STATUS
15964rm -fr confdefs* $ac_clean_files
15965test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
15966
2224580a
VZ
15967if test "$no_recursion" != yes; then
15968
15969 # Remove --cache-file and --srcdir arguments so they do not pile up.
15970 ac_sub_configure_args=
15971 ac_prev=
15972 for ac_arg in $ac_configure_args; do
15973 if test -n "$ac_prev"; then
15974 ac_prev=
15975 continue
15976 fi
15977 case "$ac_arg" in
15978 -cache-file | --cache-file | --cache-fil | --cache-fi \
15979 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
15980 ac_prev=cache_file ;;
15981 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
15982 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
15983 ;;
15984 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
15985 ac_prev=srcdir ;;
15986 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
15987 ;;
15988 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
15989 esac
15990 done
15991
e8482f24 15992 for ac_config_dir in demos samples utils contrib; do
2224580a
VZ
15993
15994 # Do not complain, so a configure script can configure whichever
15995 # parts of a large source tree are present.
15996 if test ! -d $srcdir/$ac_config_dir; then
15997 continue
15998 fi
15999
16000 echo configuring in $ac_config_dir
16001
16002 case "$srcdir" in
16003 .) ;;
16004 *)
16005 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
16006 else
16007 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
16008 fi
16009 ;;
16010 esac
16011
16012 ac_popdir=`pwd`
16013 cd $ac_config_dir
16014
16015 # A "../" for each directory in /$ac_config_dir.
16016 ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
16017
16018 case "$srcdir" in
16019 .) # No --srcdir option. We are building in place.
16020 ac_sub_srcdir=$srcdir ;;
16021 /*) # Absolute path.
16022 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
16023 *) # Relative path.
16024 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
16025 esac
16026
16027 # Check for guested configure; otherwise get Cygnus style configure.
16028 if test -f $ac_sub_srcdir/configure; then
16029 ac_sub_configure=$ac_sub_srcdir/configure
16030 elif test -f $ac_sub_srcdir/configure.in; then
16031 ac_sub_configure=$ac_configure
16032 else
16033 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
16034 ac_sub_configure=
16035 fi
16036
16037 # The recursion is here.
16038 if test -n "$ac_sub_configure"; then
16039
16040 # Make the cache file name correct relative to the subdirectory.
16041 case "$cache_file" in
16042 /*) ac_sub_cache_file=$cache_file ;;
16043 *) # Relative path.
16044 ac_sub_cache_file="$ac_dots$cache_file" ;;
16045 esac
16046 case "$ac_given_INSTALL" in
16047 [/$]*) INSTALL="$ac_given_INSTALL" ;;
16048 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
16049 esac
16050
16051 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
16052 # The eval makes quoting arguments work.
16053 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
16054 then :
16055 else
16056 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
16057 fi
16058 fi
16059
16060 cd $ac_popdir
16061 done
16062fi
16063
10f2d63a 16064