]> git.saurik.com Git - wxWidgets.git/blame - configure
fixed broken links to string functions
[wxWidgets.git] / configure
CommitLineData
10f2d63a
VZ
1#! /bin/sh
2
703e0a69 3# From configure.in Id: configure.in
422107f9
VZ
4
5
10f2d63a 6
6f72b082
OK
7
8
10f2d63a
VZ
9
10
6232543b 11
6232543b 12
703e0a69
VZ
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42# Configure paths for GTK+
43# Owen Taylor 97-11-3
44
45
46# Guess values for system-dependent variables and create Makefiles.
47# Generated automatically using autoconf version 2.13
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"
63ac_help="$ac_help
64 --with-mac use Mac OS X"
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"
71ac_help="$ac_help
72 --with-pm use OS/2 Presentation Manager"
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
78--with-libpng use libpng (PNG image format)"
79ac_help="$ac_help
80--with-libjpeg use libjpeg (JPEG file format)"
81ac_help="$ac_help
82--with-libtiff use libtiff (TIFF file format)"
83ac_help="$ac_help
84--with-freetype use freetype (font rasterizer)"
85ac_help="$ac_help
86--with-opengl use OpenGL (or Mesa)"
87ac_help="$ac_help
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
92--with-odbc use the IODBC and wxODBC classes"
93ac_help="$ac_help
94--enable-shared create shared library code"
95ac_help="$ac_help
96--enable-burnt_name create set name in shared library "
97ac_help="$ac_help
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
128--enable-ipc use interprocess communication (wxSocket etc.)"
129ac_help="$ac_help
130--enable-dialupman use dialup network classes"
131ac_help="$ac_help
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
144--enable-geometry use geometry class"
145ac_help="$ac_help
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
160--enable-std_iostreams use standard C++ stream classes"
161ac_help="$ac_help
162--enable-filesystem use virtual file systems classes"
163ac_help="$ac_help
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
170--enable-catch_segvs catch signals and pass them to wxApp::OnFatalException"
171ac_help="$ac_help
172--enable-snglinst use wxSingleInstanceChecker class"
173ac_help="$ac_help
174--enable-threads use threads"
175ac_help="$ac_help
176--enable-serial use class serialization"
177ac_help="$ac_help
178--enable-docview use document view architecture"
179ac_help="$ac_help
180--enable-help use help (using external browser at present)"
181ac_help="$ac_help
182--enable-constraints use layout-constraints system"
183ac_help="$ac_help
184--enable-printarch use printing architecture"
185ac_help="$ac_help
186--enable-mdi use multiple document interface architecture"
187ac_help="$ac_help
188--enable-postscript use wxPostscriptDC device context (default for gtk+)"
189ac_help="$ac_help
190--enable-prologio use Prolog IO library"
191ac_help="$ac_help
192--enable-resources use wxWindows resources"
193ac_help="$ac_help
194--enable-xresources use X resources for save (default for gtk+)"
195ac_help="$ac_help
196--enable-clipboard use wxClipboard classes"
197ac_help="$ac_help
198--enable-dnd use Drag'n'Drop classes"
199ac_help="$ac_help
200--enable-metafile use win32 metafiles"
201ac_help="$ac_help
202--enable-wxtree make wxTree library"
203ac_help="$ac_help
204--enable-controls use all usual controls"
205ac_help="$ac_help
206--enable-accel use accelerators"
207ac_help="$ac_help
208--enable-caret use wxCaret class"
209ac_help="$ac_help
210--enable-bmpbutton use wxBitmapButton class"
211ac_help="$ac_help
212--enable-checkbox use wxCheckBox class"
213ac_help="$ac_help
214--enable-checklst use wxCheckListBox (listbox with checkboxes) class"
215ac_help="$ac_help
216--enable-choice use wxChoice class"
217ac_help="$ac_help
218--enable-combobox use wxComboBox classes"
219ac_help="$ac_help
220--enable-gauge use wxGauge class"
221ac_help="$ac_help
222--enable-grid use wxGrid class"
223ac_help="$ac_help
224--enable-newgrid use new wxGrid class"
225ac_help="$ac_help
226--enable-imaglist use wxImageList class"
227ac_help="$ac_help
228--enable-listbox use wxListBox class"
229ac_help="$ac_help
230--enable-listctrl use wxListCtrl class"
231ac_help="$ac_help
232--enable-notebook use wxNotebook class"
233ac_help="$ac_help
234--enable-radiobox use wxRadioBox class"
235ac_help="$ac_help
236--enable-radiobtn use wxRadioButton class"
237ac_help="$ac_help
238--enable-sash use wxSashWindow class"
239ac_help="$ac_help
240--enable-scrollbar use wxScrollBar class and scrollable windows"
241ac_help="$ac_help
242--enable-slider use wxSlider class"
243ac_help="$ac_help
244--enable-spinbtn use wxSpinButton class"
245ac_help="$ac_help
246--enable-spinctrl use wxSpinCtrl class"
247ac_help="$ac_help
248--enable-splitter use wxSplitterWindow class"
249ac_help="$ac_help
250--enable-statbmp use wxStaticBitmap class"
251ac_help="$ac_help
252--enable-statbox use wxStaticBox class"
253ac_help="$ac_help
254--enable-statline use wxStaticLine class"
255ac_help="$ac_help
256--enable-statusbar use wxStatusBar class"
257ac_help="$ac_help
258--enable-tabdialog use wxTabControl class"
259ac_help="$ac_help
260--enable-togglebtn use wxToggleButton class"
261ac_help="$ac_help
262--enable-toolbar use wxToolBar class"
263ac_help="$ac_help
264--enable-tbarnative use native wxToolBar class"
265ac_help="$ac_help
266--enable-tbarsmpl use wxToolBarSimple class"
267ac_help="$ac_help
268--enable-treectrl use wxTreeCtrl class"
269ac_help="$ac_help
270--enable-commondlg use common dialogs (wxDirDialog, wxProgressDialog, wxTextDialog, ...)"
271ac_help="$ac_help
272--enable-dirdlg use wxDirDialog"
273ac_help="$ac_help
274--enable-textdlg use wxTextDialog"
275ac_help="$ac_help
276--enable-tipdlg use startup tips"
277ac_help="$ac_help
278--enable-progressdlg use wxProgressDialog"
279ac_help="$ac_help
280--enable-miniframe use wxMiniFrame class"
281ac_help="$ac_help
282--enable-html use wxHTML sub-library"
283ac_help="$ac_help
284--enable-tooltips use wxToolTip class"
285ac_help="$ac_help
286--enable-splines use spline drawing code"
287ac_help="$ac_help
288--enable-validators use wxValidator and derived classes"
289ac_help="$ac_help
290--enable-busyinfo use wxBusyInfo"
291ac_help="$ac_help
292--enable-joystick compile in joystick support (Linux only)"
293ac_help="$ac_help
294--enable-image use wxImage class"
295ac_help="$ac_help
296--enable-gif use gif images (GIF file format)"
297ac_help="$ac_help
298--enable-pcx use pcx images (PCX file format)"
299ac_help="$ac_help
300--enable-pnm use pnm images (PNM file format)"
301ac_help="$ac_help
302--enable-xpm use xpm images (XPM file format)"
303ac_help="$ac_help
304 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)"
305ac_help="$ac_help
306 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)"
307ac_help="$ac_help
308 --disable-gtktest Do not try to compile and run a test GTK program"
309ac_help="$ac_help
310 --with-x use the X Window System"
10f2d63a
VZ
311
312# Initialize some variables set by options.
313# The variables have the same names as the options, with
314# dashes changed to underlines.
703e0a69
VZ
315build=NONE
316cache_file=./config.cache
10f2d63a 317exec_prefix=NONE
703e0a69 318host=NONE
10f2d63a 319no_create=
703e0a69 320nonopt=NONE
10f2d63a
VZ
321no_recursion=
322prefix=NONE
323program_prefix=NONE
324program_suffix=NONE
325program_transform_name=s,x,x,
326silent=
327site=
328srcdir=
703e0a69 329target=NONE
10f2d63a
VZ
330verbose=
331x_includes=NONE
332x_libraries=NONE
333bindir='${exec_prefix}/bin'
334sbindir='${exec_prefix}/sbin'
335libexecdir='${exec_prefix}/libexec'
336datadir='${prefix}/share'
337sysconfdir='${prefix}/etc'
338sharedstatedir='${prefix}/com'
339localstatedir='${prefix}/var'
340libdir='${exec_prefix}/lib'
341includedir='${prefix}/include'
342oldincludedir='/usr/include'
343infodir='${prefix}/info'
344mandir='${prefix}/man'
345
703e0a69
VZ
346# Initialize some other variables.
347subdirs=
348MFLAGS= MAKEFLAGS=
349SHELL=${CONFIG_SHELL-/bin/sh}
350# Maximum number of lines to put in a shell here document.
351ac_max_here_lines=12
10f2d63a
VZ
352
353ac_prev=
354for ac_option
355do
703e0a69 356
10f2d63a
VZ
357 # If the previous option needs an argument, assign it.
358 if test -n "$ac_prev"; then
359 eval "$ac_prev=\$ac_option"
360 ac_prev=
361 continue
362 fi
363
703e0a69
VZ
364 case "$ac_option" in
365 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
366 *) ac_optarg= ;;
367 esac
10f2d63a
VZ
368
369 # Accept the important Cygnus configure options, so we can diagnose typos.
370
703e0a69 371 case "$ac_option" in
10f2d63a
VZ
372
373 -bindir | --bindir | --bindi | --bind | --bin | --bi)
374 ac_prev=bindir ;;
375 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
703e0a69 376 bindir="$ac_optarg" ;;
10f2d63a
VZ
377
378 -build | --build | --buil | --bui | --bu)
703e0a69 379 ac_prev=build ;;
10f2d63a 380 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
703e0a69 381 build="$ac_optarg" ;;
10f2d63a
VZ
382
383 -cache-file | --cache-file | --cache-fil | --cache-fi \
384 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
385 ac_prev=cache_file ;;
386 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
387 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
703e0a69 388 cache_file="$ac_optarg" ;;
10f2d63a
VZ
389
390 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
391 ac_prev=datadir ;;
392 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
393 | --da=*)
703e0a69 394 datadir="$ac_optarg" ;;
10f2d63a
VZ
395
396 -disable-* | --disable-*)
703e0a69 397 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
10f2d63a 398 # Reject names that are not valid shell variable names.
703e0a69
VZ
399 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
400 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
401 fi
402 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
403 eval "enable_${ac_feature}=no" ;;
10f2d63a
VZ
404
405 -enable-* | --enable-*)
703e0a69 406 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
10f2d63a 407 # Reject names that are not valid shell variable names.
703e0a69
VZ
408 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
409 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
410 fi
411 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
412 case "$ac_option" in
413 *=*) ;;
10f2d63a
VZ
414 *) ac_optarg=yes ;;
415 esac
703e0a69 416 eval "enable_${ac_feature}='$ac_optarg'" ;;
10f2d63a
VZ
417
418 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
419 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
420 | --exec | --exe | --ex)
421 ac_prev=exec_prefix ;;
422 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
423 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
424 | --exec=* | --exe=* | --ex=*)
703e0a69 425 exec_prefix="$ac_optarg" ;;
10f2d63a
VZ
426
427 -gas | --gas | --ga | --g)
428 # Obsolete; use --with-gas.
429 with_gas=yes ;;
430
703e0a69
VZ
431 -help | --help | --hel | --he)
432 # Omit some internal or obsolete options to make the list less imposing.
433 # This message is too long to be a string in the A/UX 3.1 sh.
434 cat << EOF
435Usage: configure [options] [host]
436Options: [defaults in brackets after descriptions]
437Configuration:
438 --cache-file=FILE cache test results in FILE
439 --help print this message
440 --no-create do not create output files
441 --quiet, --silent do not print \`checking...' messages
442 --version print the version of autoconf that created configure
443Directory and file names:
444 --prefix=PREFIX install architecture-independent files in PREFIX
445 [$ac_default_prefix]
446 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
447 [same as prefix]
448 --bindir=DIR user executables in DIR [EPREFIX/bin]
449 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
450 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
451 --datadir=DIR read-only architecture-independent data in DIR
452 [PREFIX/share]
453 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
454 --sharedstatedir=DIR modifiable architecture-independent data in DIR
455 [PREFIX/com]
456 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
457 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
458 --includedir=DIR C header files in DIR [PREFIX/include]
459 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
460 --infodir=DIR info documentation in DIR [PREFIX/info]
461 --mandir=DIR man documentation in DIR [PREFIX/man]
462 --srcdir=DIR find the sources in DIR [configure dir or ..]
463 --program-prefix=PREFIX prepend PREFIX to installed program names
464 --program-suffix=SUFFIX append SUFFIX to installed program names
465 --program-transform-name=PROGRAM
466 run sed PROGRAM on installed program names
467EOF
468 cat << EOF
469Host type:
470 --build=BUILD configure for building on BUILD [BUILD=HOST]
471 --host=HOST configure for HOST [guessed]
472 --target=TARGET configure for TARGET [TARGET=HOST]
473Features and packages:
474 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
475 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
476 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
477 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
478 --x-includes=DIR X include files are in DIR
479 --x-libraries=DIR X library files are in DIR
480EOF
481 if test -n "$ac_help"; then
482 echo "--enable and --with options recognized:$ac_help"
483 fi
484 exit 0 ;;
10f2d63a
VZ
485
486 -host | --host | --hos | --ho)
703e0a69 487 ac_prev=host ;;
10f2d63a 488 -host=* | --host=* | --hos=* | --ho=*)
703e0a69 489 host="$ac_optarg" ;;
10f2d63a
VZ
490
491 -includedir | --includedir | --includedi | --included | --include \
492 | --includ | --inclu | --incl | --inc)
493 ac_prev=includedir ;;
494 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
495 | --includ=* | --inclu=* | --incl=* | --inc=*)
703e0a69 496 includedir="$ac_optarg" ;;
10f2d63a
VZ
497
498 -infodir | --infodir | --infodi | --infod | --info | --inf)
499 ac_prev=infodir ;;
500 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
703e0a69 501 infodir="$ac_optarg" ;;
10f2d63a
VZ
502
503 -libdir | --libdir | --libdi | --libd)
504 ac_prev=libdir ;;
505 -libdir=* | --libdir=* | --libdi=* | --libd=*)
703e0a69 506 libdir="$ac_optarg" ;;
10f2d63a
VZ
507
508 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
509 | --libexe | --libex | --libe)
510 ac_prev=libexecdir ;;
511 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
512 | --libexe=* | --libex=* | --libe=*)
703e0a69 513 libexecdir="$ac_optarg" ;;
10f2d63a
VZ
514
515 -localstatedir | --localstatedir | --localstatedi | --localstated \
516 | --localstate | --localstat | --localsta | --localst \
517 | --locals | --local | --loca | --loc | --lo)
518 ac_prev=localstatedir ;;
519 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
520 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
521 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
703e0a69 522 localstatedir="$ac_optarg" ;;
10f2d63a
VZ
523
524 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
525 ac_prev=mandir ;;
526 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
703e0a69 527 mandir="$ac_optarg" ;;
10f2d63a
VZ
528
529 -nfp | --nfp | --nf)
530 # Obsolete; use --without-fp.
531 with_fp=no ;;
532
533 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
534 | --no-cr | --no-c)
535 no_create=yes ;;
536
537 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
538 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
539 no_recursion=yes ;;
540
541 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
542 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
543 | --oldin | --oldi | --old | --ol | --o)
544 ac_prev=oldincludedir ;;
545 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
546 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
547 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
703e0a69 548 oldincludedir="$ac_optarg" ;;
10f2d63a
VZ
549
550 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
551 ac_prev=prefix ;;
552 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
703e0a69 553 prefix="$ac_optarg" ;;
10f2d63a
VZ
554
555 -program-prefix | --program-prefix | --program-prefi | --program-pref \
556 | --program-pre | --program-pr | --program-p)
557 ac_prev=program_prefix ;;
558 -program-prefix=* | --program-prefix=* | --program-prefi=* \
559 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
703e0a69 560 program_prefix="$ac_optarg" ;;
10f2d63a
VZ
561
562 -program-suffix | --program-suffix | --program-suffi | --program-suff \
563 | --program-suf | --program-su | --program-s)
564 ac_prev=program_suffix ;;
565 -program-suffix=* | --program-suffix=* | --program-suffi=* \
566 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
703e0a69 567 program_suffix="$ac_optarg" ;;
10f2d63a
VZ
568
569 -program-transform-name | --program-transform-name \
570 | --program-transform-nam | --program-transform-na \
571 | --program-transform-n | --program-transform- \
572 | --program-transform | --program-transfor \
573 | --program-transfo | --program-transf \
574 | --program-trans | --program-tran \
575 | --progr-tra | --program-tr | --program-t)
576 ac_prev=program_transform_name ;;
577 -program-transform-name=* | --program-transform-name=* \
578 | --program-transform-nam=* | --program-transform-na=* \
579 | --program-transform-n=* | --program-transform-=* \
580 | --program-transform=* | --program-transfor=* \
581 | --program-transfo=* | --program-transf=* \
582 | --program-trans=* | --program-tran=* \
583 | --progr-tra=* | --program-tr=* | --program-t=*)
703e0a69 584 program_transform_name="$ac_optarg" ;;
10f2d63a
VZ
585
586 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
587 | -silent | --silent | --silen | --sile | --sil)
588 silent=yes ;;
589
590 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
591 ac_prev=sbindir ;;
592 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
593 | --sbi=* | --sb=*)
703e0a69 594 sbindir="$ac_optarg" ;;
10f2d63a
VZ
595
596 -sharedstatedir | --sharedstatedir | --sharedstatedi \
597 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
598 | --sharedst | --shareds | --shared | --share | --shar \
599 | --sha | --sh)
600 ac_prev=sharedstatedir ;;
601 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
602 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
603 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
604 | --sha=* | --sh=*)
703e0a69 605 sharedstatedir="$ac_optarg" ;;
10f2d63a
VZ
606
607 -site | --site | --sit)
608 ac_prev=site ;;
609 -site=* | --site=* | --sit=*)
703e0a69 610 site="$ac_optarg" ;;
10f2d63a
VZ
611
612 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
613 ac_prev=srcdir ;;
614 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
703e0a69 615 srcdir="$ac_optarg" ;;
10f2d63a
VZ
616
617 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
618 | --syscon | --sysco | --sysc | --sys | --sy)
619 ac_prev=sysconfdir ;;
620 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
621 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
703e0a69 622 sysconfdir="$ac_optarg" ;;
10f2d63a
VZ
623
624 -target | --target | --targe | --targ | --tar | --ta | --t)
703e0a69 625 ac_prev=target ;;
10f2d63a 626 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
703e0a69 627 target="$ac_optarg" ;;
10f2d63a
VZ
628
629 -v | -verbose | --verbose | --verbos | --verbo | --verb)
630 verbose=yes ;;
631
703e0a69
VZ
632 -version | --version | --versio | --versi | --vers)
633 echo "configure generated by autoconf version 2.13"
634 exit 0 ;;
10f2d63a
VZ
635
636 -with-* | --with-*)
703e0a69 637 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
10f2d63a 638 # Reject names that are not valid shell variable names.
703e0a69
VZ
639 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
640 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
641 fi
10f2d63a 642 ac_package=`echo $ac_package| sed 's/-/_/g'`
703e0a69
VZ
643 case "$ac_option" in
644 *=*) ;;
10f2d63a
VZ
645 *) ac_optarg=yes ;;
646 esac
703e0a69 647 eval "with_${ac_package}='$ac_optarg'" ;;
10f2d63a
VZ
648
649 -without-* | --without-*)
703e0a69 650 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
10f2d63a 651 # Reject names that are not valid shell variable names.
703e0a69
VZ
652 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
653 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
654 fi
655 ac_package=`echo $ac_package| sed 's/-/_/g'`
656 eval "with_${ac_package}=no" ;;
10f2d63a
VZ
657
658 --x)
659 # Obsolete; use --with-x.
660 with_x=yes ;;
661
662 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
663 | --x-incl | --x-inc | --x-in | --x-i)
664 ac_prev=x_includes ;;
665 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
666 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
703e0a69 667 x_includes="$ac_optarg" ;;
10f2d63a
VZ
668
669 -x-libraries | --x-libraries | --x-librarie | --x-librari \
670 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
671 ac_prev=x_libraries ;;
672 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
673 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
703e0a69 674 x_libraries="$ac_optarg" ;;
10f2d63a 675
703e0a69 676 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
10f2d63a
VZ
677 ;;
678
679 *)
703e0a69
VZ
680 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
681 echo "configure: warning: $ac_option: invalid host type" 1>&2
682 fi
683 if test "x$nonopt" != xNONE; then
684 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
685 fi
686 nonopt="$ac_option"
10f2d63a
VZ
687 ;;
688
689 esac
690done
691
692if test -n "$ac_prev"; then
703e0a69
VZ
693 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
694fi
695
696trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
697
698# File descriptor usage:
699# 0 standard input
700# 1 file creation
701# 2 errors and warnings
702# 3 some systems may open it to /dev/tty
703# 4 used on the Kubota Titan
704# 6 checking for... messages and results
705# 5 compiler messages saved in config.log
706if test "$silent" = yes; then
707 exec 6>/dev/null
708else
709 exec 6>&1
10f2d63a 710fi
703e0a69
VZ
711exec 5>./config.log
712
713echo "\
714This file contains any messages produced by compilers while
715running configure, to aid debugging if configure makes a mistake.
716" 1>&5
10f2d63a 717
703e0a69
VZ
718# Strip out --no-create and --no-recursion so they do not pile up.
719# Also quote any args containing shell metacharacters.
720ac_configure_args=
721for ac_arg
10f2d63a 722do
703e0a69
VZ
723 case "$ac_arg" in
724 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
725 | --no-cr | --no-c) ;;
726 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
727 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
728 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
729 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
730 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
10f2d63a
VZ
731 esac
732done
733
703e0a69
VZ
734# NLS nuisances.
735# Only set these to C if already set. These must not be set unconditionally
736# because not all systems understand e.g. LANG=C (notably SCO).
737# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
738# Non-C LC_CTYPE values break the ctype check.
739if test "${LANG+set}" = set; then LANG=C; export LANG; fi
740if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
741if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
742if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
10f2d63a 743
703e0a69
VZ
744# confdefs.h avoids OS command line length limits that DEFS can exceed.
745rm -rf conftest* confdefs.h
746# AIX cpp loses on an empty file, so make sure it contains at least a newline.
747echo > confdefs.h
10f2d63a 748
703e0a69
VZ
749# A filename unique to this package, relative to the directory that
750# configure is in, which we can look for to find out if srcdir is correct.
751ac_unique_file=wx-config.in
10f2d63a
VZ
752
753# Find the source files, if location was not specified.
754if test -z "$srcdir"; then
755 ac_srcdir_defaulted=yes
756 # Try the directory containing this script, then its parent.
757 ac_prog=$0
703e0a69 758 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
10f2d63a
VZ
759 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
760 srcdir=$ac_confdir
761 if test ! -r $srcdir/$ac_unique_file; then
762 srcdir=..
763 fi
764else
765 ac_srcdir_defaulted=no
766fi
767if test ! -r $srcdir/$ac_unique_file; then
768 if test "$ac_srcdir_defaulted" = yes; then
703e0a69 769 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
10f2d63a 770 else
703e0a69 771 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
10f2d63a
VZ
772 fi
773fi
703e0a69 774srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
10f2d63a
VZ
775
776# Prefer explicitly selected file to automatically selected ones.
777if test -z "$CONFIG_SITE"; then
778 if test "x$prefix" != xNONE; then
779 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
780 else
781 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
782 fi
783fi
784for ac_site_file in $CONFIG_SITE; do
785 if test -r "$ac_site_file"; then
703e0a69 786 echo "loading site script $ac_site_file"
10f2d63a
VZ
787 . "$ac_site_file"
788 fi
789done
790
791if test -r "$cache_file"; then
703e0a69
VZ
792 echo "loading cache $cache_file"
793 . $cache_file
10f2d63a 794else
703e0a69
VZ
795 echo "creating cache $cache_file"
796 > $cache_file
10f2d63a
VZ
797fi
798
799ac_ext=c
703e0a69 800# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10f2d63a 801ac_cpp='$CPP $CPPFLAGS'
703e0a69
VZ
802ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
803ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
804cross_compiling=$ac_cv_prog_cc_cross
805
806ac_exeext=
807ac_objext=o
808if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
809 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
810 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
811 ac_n= ac_c='
812' ac_t=' '
813 else
814 ac_n=-n ac_c= ac_t=
815 fi
10f2d63a 816else
703e0a69 817 ac_n= ac_c='\c' ac_t=
10f2d63a 818fi
703e0a69
VZ
819
820
10f2d63a 821
7c66a493
VZ
822ac_aux_dir=
823for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
824 if test -f $ac_dir/install-sh; then
825 ac_aux_dir=$ac_dir
826 ac_install_sh="$ac_aux_dir/install-sh -c"
827 break
828 elif test -f $ac_dir/install.sh; then
829 ac_aux_dir=$ac_dir
830 ac_install_sh="$ac_aux_dir/install.sh -c"
831 break
832 fi
833done
834if test -z "$ac_aux_dir"; then
703e0a69 835 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
7c66a493 836fi
703e0a69
VZ
837ac_config_guess=$ac_aux_dir/config.guess
838ac_config_sub=$ac_aux_dir/config.sub
839ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
7c66a493 840
703e0a69
VZ
841
842# Do some error checking and defaulting for the host and target type.
843# The inputs are:
844# configure --host=HOST --target=TARGET --build=BUILD NONOPT
845#
846# The rules are:
847# 1. You are not allowed to specify --host, --target, and nonopt at the
848# same time.
849# 2. Host defaults to nonopt.
850# 3. If nonopt is not specified, then host defaults to the current host,
851# as determined by config.guess.
852# 4. Target and build default to nonopt.
853# 5. If nonopt is not specified, then target and build default to host.
7c66a493
VZ
854
855# The aliases save the names the user supplied, while $host etc.
856# will get canonicalized.
703e0a69
VZ
857case $host---$target---$nonopt in
858NONE---*---* | *---NONE---* | *---*---NONE) ;;
859*) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
860esac
861
862
863# Make sure we can run config.sub.
864if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
865else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
866fi
867
868echo $ac_n "checking host system type""... $ac_c" 1>&6
869echo "configure:870: checking host system type" >&5
870
871host_alias=$host
872case "$host_alias" in
873NONE)
874 case $nonopt in
875 NONE)
876 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
877 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
878 fi ;;
879 *) host_alias=$nonopt ;;
880 esac ;;
881esac
882
883host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
884host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
885host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
886host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
887echo "$ac_t""$host" 1>&6
888
889echo $ac_n "checking target system type""... $ac_c" 1>&6
890echo "configure:891: checking target system type" >&5
891
892target_alias=$target
893case "$target_alias" in
894NONE)
895 case $nonopt in
896 NONE) target_alias=$host_alias ;;
897 *) target_alias=$nonopt ;;
898 esac ;;
899esac
900
901target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
902target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
903target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
904target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
905echo "$ac_t""$target" 1>&6
906
907echo $ac_n "checking build system type""... $ac_c" 1>&6
908echo "configure:909: checking build system type" >&5
909
910build_alias=$build
911case "$build_alias" in
912NONE)
913 case $nonopt in
914 NONE) build_alias=$host_alias ;;
915 *) build_alias=$nonopt ;;
916 esac ;;
917esac
918
919build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
920build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
921build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
922build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
923echo "$ac_t""$build" 1>&6
924
925test "$host_alias" != "$target_alias" &&
7c66a493
VZ
926 test "$program_prefix$program_suffix$program_transform_name" = \
927 NONENONEs,x,x, &&
928 program_prefix=${target_alias}-
929
703e0a69
VZ
930
931
10f2d63a 932WX_MAJOR_VERSION_NUMBER=2
37d403aa 933WX_MINOR_VERSION_NUMBER=3
665bbe97 934WX_RELEASE_NUMBER=1
10f2d63a 935
10f2d63a 936WX_VERSION=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER.$WX_RELEASE_NUMBER
10f2d63a 937WX_RELEASE=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER
6426998c
RL
938
939WX_CURRENT=0
940WX_REVISION=0
941WX_AGE=0
942
703e0a69
VZ
943
944
10f2d63a
VZ
945USE_UNIX=1
946USE_WIN32=0
b12915c1 947USE_BEOS=0
1216f52d 948USE_MAC=0
b12915c1 949
10f2d63a
VZ
950USE_LINUX=
951USE_SGI=
952USE_HPUX=
953USE_SYSV=
954USE_SVR4=
955USE_AIX=
956USE_SUN=
957USE_SOLARIS=
958USE_SUNOS=
959USE_ALPHA=
960USE_OSF=
961USE_BSD=
962USE_FREEBSD=
95c8801c 963USE_OPENBSD=
f6bcfd97 964USE_NETBSD=
10f2d63a
VZ
965USE_VMS=
966USE_ULTRIX=
967USE_CYGWIN=
968USE_MINGW=
969USE_DATA_GENERAL=
970
ab9b9eab
VZ
971NEEDS_D_REENTRANT_FOR_R_FUNCS=0
972
b4085ce6 973ALL_TOOLKITS="CYGWIN GTK MINGW MOTIF MAC WINE PM"
10f2d63a
VZ
974
975DEFAULT_wxUSE_GTK=0
976DEFAULT_wxUSE_MOTIF=0
977DEFAULT_wxUSE_MSW=0
b4085ce6 978DEFAULT_wxUSE_MAC=0
10f2d63a 979DEFAULT_wxUSE_WINE=0
e07802fc 980DEFAULT_wxUSE_PM=0
10f2d63a
VZ
981
982DEFAULT_DEFAULT_wxUSE_GTK=0
983DEFAULT_DEFAULT_wxUSE_MOTIF=0
984DEFAULT_DEFAULT_wxUSE_MSW=0
b4085ce6 985DEFAULT_DEFAULT_wxUSE_MAC=0
10f2d63a 986DEFAULT_DEFAULT_wxUSE_WINE=0
e07802fc 987DEFAULT_DEFAULT_wxUSE_PM=0
10f2d63a 988
d6a55c4b
VZ
989PROGRAM_EXT=
990
10f2d63a
VZ
991case "${host}" in
992 *-hp-hpux* )
993 USE_HPUX=1
994 DEFAULT_DEFAULT_wxUSE_MOTIF=1
ab9b9eab 995 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
703e0a69 996 cat >> confdefs.h <<\EOF
10f2d63a
VZ
997#define __HPUX__ 1
998EOF
999
1000 ;;
1001 *-*-linux* )
1002 USE_LINUX=1
703e0a69 1003 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1004#define __LINUX__ 1
1005EOF
1006
1007 TMP=`uname -m`
1008 if test "x$TMP" = "xalpha"; then
1009 USE_ALPHA=1
703e0a69 1010 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1011#define __ALPHA__ 1
1012EOF
1013
1014 fi
1015 DEFAULT_DEFAULT_wxUSE_GTK=1
1016 ;;
1017 *-*-irix5* | *-*-irix6* )
1018 USE_SGI=1
1019 USE_SVR4=1
703e0a69 1020 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1021#define __SGI__ 1
1022EOF
1023
703e0a69 1024 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1025#define __SVR4__ 1
1026EOF
1027
1028 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1029 ;;
1030 *-*-solaris2* )
1031 USE_SUN=1
1032 USE_SOLARIS=1
1033 USE_SVR4=1
703e0a69 1034 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1035#define __SUN__ 1
1036EOF
1037
703e0a69 1038 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1039#define __SOLARIS__ 1
1040EOF
1041
703e0a69 1042 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1043#define __SVR4__ 1
1044EOF
1045
1046 DEFAULT_DEFAULT_wxUSE_MOTIF=1
ab9b9eab 1047 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
10f2d63a
VZ
1048 ;;
1049 *-*-sunos4* )
1050 USE_SUN=1
1051 USE_SUNOS=1
1052 USE_BSD=1
703e0a69 1053 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1054#define __SUN__ 1
1055EOF
1056
703e0a69 1057 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1058#define __SUNOS__ 1
1059EOF
1060
703e0a69 1061 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1062#define __BSD__ 1
1063EOF
1064
1065 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1066 ;;
f6bcfd97 1067 *-*-freebsd*)
10f2d63a
VZ
1068 USE_BSD=1
1069 USE_FREEBSD=1
703e0a69 1070 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1071#define __FREEBSD__ 1
1072EOF
1073
703e0a69 1074 cat >> confdefs.h <<\EOF
10f2d63a 1075#define __BSD__ 1
95c8801c
VS
1076EOF
1077
1078 DEFAULT_DEFAULT_wxUSE_GTK=1
1079 ;;
1080 *-*-openbsd*)
1081 USE_BSD=1
1082 USE_OPENBSD=1
703e0a69 1083 cat >> confdefs.h <<\EOF
95c8801c
VS
1084#define __FREEBSD__ 1
1085EOF
1086
703e0a69 1087 cat >> confdefs.h <<\EOF
95c8801c 1088#define __OPENBSD__ 1
f6bcfd97
BP
1089EOF
1090
1091 DEFAULT_DEFAULT_wxUSE_GTK=1
1092 ;;
1093 *-*-netbsd*)
1094 USE_BSD=1
1095 USE_NETBSD=1
703e0a69 1096 cat >> confdefs.h <<\EOF
f6bcfd97
BP
1097#define __FREEBSD__ 1
1098EOF
1099
703e0a69 1100 cat >> confdefs.h <<\EOF
f6bcfd97 1101#define __NETBSD__ 1
10f2d63a
VZ
1102EOF
1103
1104 DEFAULT_DEFAULT_wxUSE_GTK=1
1105 ;;
1106 *-*-osf* )
1107 USE_ALPHA=1
1108 USE_OSF=1
703e0a69 1109 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1110#define __ALPHA__ 1
1111EOF
1112
703e0a69 1113 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1114#define __OSF__ 1
1115EOF
1116
1117 DEFAULT_DEFAULT_wxUSE_MOTIF=1
f6bcfd97 1118 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
10f2d63a
VZ
1119 ;;
1120 *-*-dgux5* )
1121 USE_ALPHA=1
1122 USE_SVR4=1
703e0a69 1123 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1124#define __ALPHA__ 1
1125EOF
1126
703e0a69 1127 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1128#define __SVR4__ 1
1129EOF
1130
1131 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1132 ;;
1133 *-*-sysv5* )
1134 USE_SYSV=1
1135 USE_SVR4=1
703e0a69 1136 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1137#define __SYSV__ 1
1138EOF
1139
703e0a69 1140 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1141#define __SVR4__ 1
1142EOF
1143
1144 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1145 ;;
1146 *-*-aix* )
1147 USE_AIX=1
1148 USE_SYSV=1
1149 USE_SVR4=1
703e0a69 1150 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1151#define __AIX__ 1
1152EOF
1153
703e0a69 1154 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1155#define __SYSV__ 1
1156EOF
1157
703e0a69 1158 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1159#define __SVR4__ 1
1160EOF
1161
1162 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1163 ;;
1164
1c8183e2 1165 *-*-cygwin* | *-*-mingw32* )
10f2d63a
VZ
1166 USE_UNIX=0
1167 USE_WIN32=1
703e0a69 1168 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1169#define __WIN32__ 1
1170EOF
1171
703e0a69 1172 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1173#define __WIN95__ 1
1174EOF
1175
703e0a69 1176 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1177#define __WINDOWS__ 1
1178EOF
1179
703e0a69 1180 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1181#define __GNUWIN32__ 1
1182EOF
1183
703e0a69 1184 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1185#define STRICT 1
1186EOF
1187
703e0a69 1188 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1189#define WINVER 0x0400
1190EOF
1191
cf27ef00 1192 PROGRAM_EXT=".exe"
10f2d63a
VZ
1193 DEFAULT_DEFAULT_wxUSE_MSW=1
1194 ;;
1195
1196 *-pc-os2_emx )
703e0a69 1197 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1198#define __EMX__ 1
1199EOF
1200
cf27ef00 1201 PROGRAM_EXT=".exe"
e07802fc 1202 DEFAULT_DEFAULT_wxUSE_PM=1
10f2d63a
VZ
1203 ;;
1204
b4085ce6
GD
1205 *-*-darwin* )
1206 USE_BSD=1
1207 USE_MAC=1
703e0a69 1208 cat >> confdefs.h <<\EOF
b4085ce6
GD
1209#define __MAC__ 1
1210EOF
1211
703e0a69 1212 cat >> confdefs.h <<\EOF
b4085ce6
GD
1213#define __BSD__ 1
1214EOF
1215
703e0a69 1216 cat >> confdefs.h <<\EOF
b4085ce6
GD
1217#define __UNIX__ 1
1218EOF
1219
1220 DEFAULT_DEFAULT_wxUSE_MAC=1
1221 ;;
1222
b12915c1
VZ
1223 *-*-beos* )
1224 USE_BEOS=1
703e0a69 1225 cat >> confdefs.h <<\EOF
b12915c1
VZ
1226#define __BEOS__ 1
1227EOF
1228
1229 ;;
1230
10f2d63a 1231 *)
703e0a69 1232 { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; }
10f2d63a
VZ
1233esac
1234
1235if test "$USE_UNIX" = 1 ; then
b12915c1 1236 wxUSE_UNIX=yes
703e0a69 1237 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1238#define __UNIX__ 1
1239EOF
1240
703e0a69 1241
b12915c1
VZ
1242 SRC_SUBDIRS="$SRC_SUBDIRS unix"
1243 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS unix"
1244fi
1245
1246if test "$USE_BEOS" = 1; then
1247 SRC_SUBDIRS="$SRC_SUBDIRS be"
1248 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS be"
10f2d63a
VZ
1249fi
1250
1251if test "$USE_LINUX" = 1; then
703e0a69
VZ
1252 echo $ac_n "checking for gettext in -lc""... $ac_c" 1>&6
1253echo "configure:1254: checking for gettext in -lc" >&5
1254ac_lib_var=`echo c'_'gettext | sed 'y%./+-%__p_%'`
1255if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1256 echo $ac_n "(cached) $ac_c" 1>&6
6232543b 1257else
703e0a69
VZ
1258 ac_save_LIBS="$LIBS"
1259LIBS="-lc $LIBS"
1260cat > conftest.$ac_ext <<EOF
1261#line 1262 "configure"
1262#include "confdefs.h"
1263/* Override any gcc2 internal prototype to avoid an error. */
1264/* We use char because int might match the return type of a gcc2
1265 builtin and then its argument prototype would still apply. */
1266char gettext();
10f2d63a 1267
703e0a69
VZ
1268int main() {
1269gettext()
1270; return 0; }
1271EOF
1272if { (eval echo configure:1273: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1273 rm -rf conftest*
1274 eval "ac_cv_lib_$ac_lib_var=yes"
10f2d63a 1275else
703e0a69
VZ
1276 echo "configure: failed program was:" >&5
1277 cat conftest.$ac_ext >&5
1278 rm -rf conftest*
1279 eval "ac_cv_lib_$ac_lib_var=no"
10f2d63a 1280fi
703e0a69
VZ
1281rm -f conftest*
1282LIBS="$ac_save_LIBS"
10f2d63a
VZ
1283
1284fi
703e0a69
VZ
1285if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1286 echo "$ac_t""yes" 1>&6
1287 cat >> confdefs.h <<\EOF
1288#define wxHAVE_GLIBC2 1
1289EOF
10f2d63a
VZ
1290
1291else
703e0a69 1292 echo "$ac_t""no" 1>&6
10f2d63a
VZ
1293fi
1294
1295fi
1296
6232543b 1297
6232543b 1298
10f2d63a 1299
10f2d63a
VZ
1300 wx_arg_cache_file="configarg.cache"
1301 echo "loading argument cache $wx_arg_cache_file"
1302 rm -f ${wx_arg_cache_file}.tmp
1303 touch ${wx_arg_cache_file}.tmp
1304 touch ${wx_arg_cache_file}
703e0a69 1305
10f2d63a
VZ
1306
1307DEBUG_CONFIGURE=0
1308if test $DEBUG_CONFIGURE = 1; then
1309 DEFAULT_wxUSE_THREADS=yes
1310
1311 DEFAULT_wxUSE_SHARED=yes
00cf1208 1312 DEFAULT_wxUSE_BURNT_NAME=no
10f2d63a
VZ
1313 DEFAULT_wxUSE_OPTIMISE=yes
1314 DEFAULT_wxUSE_PROFILE=no
1315 DEFAULT_wxUSE_NO_DEPS=no
1316 DEFAULT_wxUSE_NO_RTTI=no
1317 DEFAULT_wxUSE_NO_EXCEPTIONS=no
1318 DEFAULT_wxUSE_PERMISSIVE=no
1319 DEFAULT_wxUSE_DEBUG_FLAG=yes
1320 DEFAULT_wxUSE_DEBUG_INFO=yes
1321 DEFAULT_wxUSE_DEBUG_GDB=yes
1322 DEFAULT_wxUSE_MEM_TRACING=no
1323 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1324 DEFAULT_wxUSE_DMALLOC=no
1325 DEFAULT_wxUSE_APPLE_IEEE=no
1326
1327 DEFAULT_wxUSE_LOG=yes
1328
1329 DEFAULT_wxUSE_GUI=yes
1330
1331 DEFAULT_wxUSE_ZLIB=no
1332 DEFAULT_wxUSE_LIBPNG=no
1333 DEFAULT_wxUSE_LIBJPEG=no
c7a2bf27 1334 DEFAULT_wxUSE_LIBTIFF=no
10f2d63a 1335 DEFAULT_wxUSE_ODBC=no
3fed1840 1336 DEFAULT_wxUSE_FREETYPE=no
bdad4e7e 1337 DEFAULT_wxUSE_OPENGL=no
10f2d63a 1338
eb4efbdc 1339 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no
4f3c5f06 1340 DEFAULT_wxUSE_SNGLINST_CHECKER=no
10f2d63a
VZ
1341 DEFAULT_wxUSE_STD_IOSTREAM=no
1342 DEFAULT_wxUSE_FILE=no
1343 DEFAULT_wxUSE_TEXTFILE=no
1344 DEFAULT_wxUSE_TIMEDATE=no
1345 DEFAULT_wxUSE_WAVE=no
1346 DEFAULT_wxUSE_INTL=no
1347 DEFAULT_wxUSE_CONFIG=no
1348 DEFAULT_wxUSE_STREAMS=no
1349 DEFAULT_wxUSE_SOCKETS=no
1350 DEFAULT_wxUSE_DIALUP_MANAGER=no
1351 DEFAULT_wxUSE_SERIAL=no
1352 DEFAULT_wxUSE_JOYSTICK=no
1353 DEFAULT_wxUSE_DYNLIB_CLASS=no
1354 DEFAULT_wxUSE_LONGLONG=no
e8f65ba6 1355 DEFAULT_wxUSE_GEOMETRY=no
10f2d63a
VZ
1356
1357 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
1358 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
1359 DEFAULT_wxUSE_POSTSCRIPT=no
1360
1361 DEFAULT_wxUSE_X_RESOURCES=no
1362 DEFAULT_wxUSE_CLIPBOARD=no
1363 DEFAULT_wxUSE_TOOLTIPS=no
1364 DEFAULT_wxUSE_DRAG_AND_DROP=no
1365 DEFAULT_wxUSE_SPLINES=no
1366
1367 DEFAULT_wxUSE_MDI_ARCHITECTURE=no
1368 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
1369 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
1370
1371 DEFAULT_wxUSE_PROLOGIO=no
1372 DEFAULT_wxUSE_RESOURCES=no
1373 DEFAULT_wxUSE_CONSTRAINTS=no
1374 DEFAULT_wxUSE_IPC=no
1375 DEFAULT_wxUSE_HELP=no
1376 DEFAULT_wxUSE_WXTREE=no
1377 DEFAULT_wxUSE_METAFILE=no
1378
1379 DEFAULT_wxUSE_COMMONDLGS=no
1380 DEFAULT_wxUSE_DIRDLG=no
1381 DEFAULT_wxUSE_TEXTDLG=no
1382 DEFAULT_wxUSE_STARTUP_TIPS=no
1383 DEFAULT_wxUSE_PROGRESSDLG=no
1384 DEFAULT_wxUSE_MINIFRAME=no
1385 DEFAULT_wxUSE_HTML=no
24528b0c 1386 DEFAULT_wxUSE_FILESYSTEM=no
10f2d63a
VZ
1387 DEFAULT_wxUSE_FS_INET=no
1388 DEFAULT_wxUSE_FS_ZIP=no
1389 DEFAULT_wxUSE_BUSYINFO=no
1390 DEFAULT_wxUSE_ZIPSTREAM=no
1391 DEFAULT_wxUSE_VALIDATORS=yes
1392
1393 DEFAULT_wxUSE_ACCEL=no
1394 DEFAULT_wxUSE_CARET=no
1395 DEFAULT_wxUSE_BMPBUTTON=no
1396 DEFAULT_wxUSE_CHECKBOX=no
1397 DEFAULT_wxUSE_CHECKLST=no
1398 DEFAULT_wxUSE_CHOICE=yes
1399 DEFAULT_wxUSE_COMBOBOX=no
1400 DEFAULT_wxUSE_GAUGE=no
1401 DEFAULT_wxUSE_GRID=no
1402 DEFAULT_wxUSE_NEW_GRID=no
1403 DEFAULT_wxUSE_IMAGLIST=no
1404 DEFAULT_wxUSE_LISTBOX=no
1405 DEFAULT_wxUSE_LISTCTRL=no
1406 DEFAULT_wxUSE_NOTEBOOK=no
1407 DEFAULT_wxUSE_RADIOBOX=no
1408 DEFAULT_wxUSE_RADIOBTN=no
1409 DEFAULT_wxUSE_SASH=no
1410 DEFAULT_wxUSE_SCROLLBAR=no
1411 DEFAULT_wxUSE_SLIDER=no
1412 DEFAULT_wxUSE_SPINBTN=no
56cfaa52 1413 DEFAULT_wxUSE_SPINCTRL=no
10f2d63a
VZ
1414 DEFAULT_wxUSE_SPLITTER=no
1415 DEFAULT_wxUSE_STATBMP=no
1416 DEFAULT_wxUSE_STATBOX=no
1417 DEFAULT_wxUSE_STATLINE=no
1418 DEFAULT_wxUSE_STATUSBAR=yes
1419 DEFAULT_wxUSE_TABDIALOG=no
1db8dc4a 1420 DEFAULT_wxUSE_TOGGLEBTN=no
10f2d63a 1421 DEFAULT_wxUSE_TOOLBAR=no
360d6699
VZ
1422 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
1423 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
10f2d63a
VZ
1424 DEFAULT_wxUSE_TREECTRL=no
1425
1426 DEFAULT_wxUSE_UNICODE=no
1427 DEFAULT_wxUSE_WCSRTOMBS=no
1428
0046ff7c 1429 DEFAULT_wxUSE_IMAGE=no
10f2d63a
VZ
1430 DEFAULT_wxUSE_GIF=no
1431 DEFAULT_wxUSE_PCX=no
1432 DEFAULT_wxUSE_PNM=no
0046ff7c 1433 DEFAULT_wxUSE_XPM=no
10f2d63a
VZ
1434else
1435 DEFAULT_wxUSE_THREADS=yes
1436
1437 DEFAULT_wxUSE_SHARED=yes
00cf1208 1438 DEFAULT_wxUSE_BURNT_NAME=no
10f2d63a
VZ
1439 DEFAULT_wxUSE_OPTIMISE=yes
1440 DEFAULT_wxUSE_PROFILE=no
1441 DEFAULT_wxUSE_NO_DEPS=no
1442 DEFAULT_wxUSE_NO_RTTI=no
1443 DEFAULT_wxUSE_NO_EXCEPTIONS=no
1444 DEFAULT_wxUSE_PERMISSIVE=no
1445 DEFAULT_wxUSE_DEBUG_FLAG=no
1446 DEFAULT_wxUSE_DEBUG_INFO=no
1447 DEFAULT_wxUSE_DEBUG_GDB=no
1448 DEFAULT_wxUSE_MEM_TRACING=no
1449 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1450 DEFAULT_wxUSE_DMALLOC=no
1451 DEFAULT_wxUSE_APPLE_IEEE=yes
1452
1453 DEFAULT_wxUSE_LOG=yes
1454
1455 DEFAULT_wxUSE_GUI=yes
1456
1457 DEFAULT_wxUSE_ZLIB=yes
1458 DEFAULT_wxUSE_LIBPNG=yes
1459 DEFAULT_wxUSE_LIBJPEG=yes
b47c832e 1460 DEFAULT_wxUSE_LIBTIFF=yes
16b52fa1 1461 DEFAULT_wxUSE_ODBC=no
3fed1840 1462 DEFAULT_wxUSE_FREETYPE=no
bdad4e7e 1463 DEFAULT_wxUSE_OPENGL=no
10f2d63a 1464
eb4efbdc 1465 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes
4f3c5f06 1466 DEFAULT_wxUSE_SNGLINST_CHECKER=yes
10f2d63a
VZ
1467 DEFAULT_wxUSE_STD_IOSTREAM=no
1468 DEFAULT_wxUSE_FILE=yes
1469 DEFAULT_wxUSE_TEXTFILE=yes
1470 DEFAULT_wxUSE_TIMEDATE=yes
1471 DEFAULT_wxUSE_WAVE=no
1472 DEFAULT_wxUSE_INTL=yes
1473 DEFAULT_wxUSE_CONFIG=yes
1474 DEFAULT_wxUSE_STREAMS=yes
1475 DEFAULT_wxUSE_SOCKETS=yes
1476 DEFAULT_wxUSE_DIALUP_MANAGER=yes
1477 DEFAULT_wxUSE_SERIAL=yes
1478 DEFAULT_wxUSE_JOYSTICK=yes
1479 DEFAULT_wxUSE_DYNLIB_CLASS=yes
b685cd9b 1480 DEFAULT_wxUSE_LONGLONG=yes
e8f65ba6 1481 DEFAULT_wxUSE_GEOMETRY=yes
10f2d63a
VZ
1482
1483 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
1484 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
1485 DEFAULT_wxUSE_POSTSCRIPT=yes
1486
1487 DEFAULT_wxUSE_X_RESOURCES=no
1488 DEFAULT_wxUSE_CLIPBOARD=yes
1489 DEFAULT_wxUSE_TOOLTIPS=yes
1490 DEFAULT_wxUSE_DRAG_AND_DROP=yes
1491 DEFAULT_wxUSE_SPLINES=yes
1492
1493 DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
1494 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
1495 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
1496
1497 DEFAULT_wxUSE_PROLOGIO=yes
1498 DEFAULT_wxUSE_RESOURCES=yes
1499 DEFAULT_wxUSE_CONSTRAINTS=yes
1500 DEFAULT_wxUSE_IPC=yes
1501 DEFAULT_wxUSE_HELP=yes
1502 DEFAULT_wxUSE_WXTREE=yes
1503 DEFAULT_wxUSE_METAFILE=yes
1504
1505 DEFAULT_wxUSE_COMMONDLGS=yes
1506 DEFAULT_wxUSE_DIRDLG=yes
1507 DEFAULT_wxUSE_TEXTDLG=yes
1508 DEFAULT_wxUSE_STARTUP_TIPS=yes
1509 DEFAULT_wxUSE_PROGRESSDLG=yes
1510 DEFAULT_wxUSE_MINIFRAME=yes
1511 DEFAULT_wxUSE_HTML=yes
24528b0c 1512 DEFAULT_wxUSE_FILESYSTEM=yes
10f2d63a
VZ
1513 DEFAULT_wxUSE_FS_INET=yes
1514 DEFAULT_wxUSE_FS_ZIP=yes
1515 DEFAULT_wxUSE_BUSYINFO=yes
1516 DEFAULT_wxUSE_ZIPSTREAM=yes
1517 DEFAULT_wxUSE_VALIDATORS=yes
1518
1519 DEFAULT_wxUSE_ACCEL=yes
1520 DEFAULT_wxUSE_CARET=yes
1521 DEFAULT_wxUSE_BMPBUTTON=yes
1522 DEFAULT_wxUSE_CHECKBOX=yes
1523 DEFAULT_wxUSE_CHECKLST=yes
1524 DEFAULT_wxUSE_CHOICE=yes
1525 DEFAULT_wxUSE_COMBOBOX=yes
1526 DEFAULT_wxUSE_GAUGE=yes
1527 DEFAULT_wxUSE_GRID=yes
cc977e5f 1528 DEFAULT_wxUSE_NEW_GRID=yes
10f2d63a
VZ
1529 DEFAULT_wxUSE_IMAGLIST=yes
1530 DEFAULT_wxUSE_LISTBOX=yes
1531 DEFAULT_wxUSE_LISTCTRL=yes
1532 DEFAULT_wxUSE_NOTEBOOK=yes
1533 DEFAULT_wxUSE_RADIOBOX=yes
1534 DEFAULT_wxUSE_RADIOBTN=yes
1535 DEFAULT_wxUSE_SASH=yes
1536 DEFAULT_wxUSE_SCROLLBAR=yes
1537 DEFAULT_wxUSE_SLIDER=yes
1538 DEFAULT_wxUSE_SPINBTN=yes
56cfaa52 1539 DEFAULT_wxUSE_SPINCTRL=yes
10f2d63a
VZ
1540 DEFAULT_wxUSE_SPLITTER=yes
1541 DEFAULT_wxUSE_STATBMP=yes
1542 DEFAULT_wxUSE_STATBOX=yes
1543 DEFAULT_wxUSE_STATLINE=yes
1544 DEFAULT_wxUSE_STATUSBAR=yes
1545 DEFAULT_wxUSE_TABDIALOG=no
1db8dc4a 1546 DEFAULT_wxUSE_TOGGLEBTN=yes
10f2d63a 1547 DEFAULT_wxUSE_TOOLBAR=yes
360d6699
VZ
1548 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
1549 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
10f2d63a
VZ
1550 DEFAULT_wxUSE_TREECTRL=yes
1551
1552 DEFAULT_wxUSE_UNICODE=no
1553 DEFAULT_wxUSE_WCSRTOMBS=no
1554
0046ff7c 1555 DEFAULT_wxUSE_IMAGE=yes
10f2d63a
VZ
1556 DEFAULT_wxUSE_GIF=yes
1557 DEFAULT_wxUSE_PCX=yes
1558 DEFAULT_wxUSE_PNM=yes
0046ff7c 1559 DEFAULT_wxUSE_XPM=yes
10f2d63a
VZ
1560fi
1561
703e0a69
VZ
1562
1563
10f2d63a
VZ
1564for toolkit in `echo $ALL_TOOLKITS`; do
1565 LINE=`grep "wxUSE_$toolkit" ${wx_arg_cache_file}`
1566 if test "x$LINE" != x ; then
1567 has_toolkit_in_cache=1
1568 eval "DEFAULT_$LINE"
1569 eval "CACHE_$toolkit=1"
1570 fi
1571done
1572
703e0a69
VZ
1573
1574
1575 echo $ac_n "checking "for --enable-gui"""... $ac_c" 1>&6
1576echo "configure:1577: checking "for --enable-gui"" >&5
10f2d63a
VZ
1577 no_cache=0
1578 # Check whether --enable-gui or --disable-gui was given.
1579if test "${enable_gui+set}" = set; then
1580 enableval="$enable_gui"
703e0a69 1581
10f2d63a
VZ
1582 if test "$enableval" = yes; then
1583 ac_cv_use_gui='wxUSE_GUI=yes'
1584 else
1585 ac_cv_use_gui='wxUSE_GUI=no'
1586 fi
703e0a69 1587
10f2d63a 1588else
703e0a69 1589
10f2d63a
VZ
1590 LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
1591 if test "x$LINE" != x ; then
1592 eval "DEFAULT_$LINE"
1593 else
1594 no_cache=1
1595 fi
1596
1597 ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
703e0a69
VZ
1598
1599fi
10f2d63a
VZ
1600
1601
1602 eval "$ac_cv_use_gui"
1603 if test "$no_cache" != 1; then
1604 echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
1605 fi
1606
1607 if test "$wxUSE_GUI" = yes; then
703e0a69 1608 echo "$ac_t""yes" 1>&6
10f2d63a 1609 else
703e0a69 1610 echo "$ac_t""no" 1>&6
10f2d63a 1611 fi
703e0a69 1612
10f2d63a 1613
b12915c1 1614if test "$wxUSE_GUI" = "yes"; then
10f2d63a
VZ
1615
1616# Check whether --with-gtk or --without-gtk was given.
1617if test "${with_gtk+set}" = set; then
1618 withval="$with_gtk"
1619 wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
703e0a69 1620fi
10f2d63a
VZ
1621
1622# Check whether --with-motif or --without-motif was given.
1623if test "${with_motif+set}" = set; then
1624 withval="$with_motif"
1625 wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
703e0a69 1626fi
10f2d63a 1627
b4085ce6
GD
1628# Check whether --with-mac or --without-mac was given.
1629if test "${with_mac+set}" = set; then
1630 withval="$with_mac"
1631 wxUSE_MAC="$withval" TOOLKIT_GIVEN=1
703e0a69 1632fi
b4085ce6 1633
10f2d63a
VZ
1634# Check whether --with-wine or --without-wine was given.
1635if test "${with_wine+set}" = set; then
1636 withval="$with_wine"
1637 wxUSE_WINE="$withval" CACHE_WINE=1 TOOLKIT_GIVEN=1
703e0a69 1638fi
10f2d63a
VZ
1639
1640# Check whether --with-cygwin or --without-cygwin was given.
1641if test "${with_cygwin+set}" = set; then
1642 withval="$with_cygwin"
1643 wxUSE_CYGWIN="$withval" CACHE_CYGWIN=1 TOOLKIT_GIVEN=1
703e0a69 1644fi
10f2d63a
VZ
1645
1646# Check whether --with-mingw or --without-mingw was given.
1647if test "${with_mingw+set}" = set; then
1648 withval="$with_mingw"
1649 wxUSE_MINGW="$withval" CACHE_MINGW=1 TOOLKIT_GIVEN=1
703e0a69 1650fi
10f2d63a 1651
e07802fc
VZ
1652# Check whether --with-pm or --without-pm was given.
1653if test "${with_pm+set}" = set; then
1654 withval="$with_pm"
1655 wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
703e0a69
VZ
1656fi
1657
10f2d63a
VZ
1658
1659# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
1660if test "${with_gtk_prefix+set}" = set; then
1661 withval="$with_gtk_prefix"
1662 gtk_config_prefix="$withval"
1663else
1664 gtk_config_prefix=""
703e0a69 1665fi
10f2d63a
VZ
1666
1667# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
1668if test "${with_gtk_exec_prefix+set}" = set; then
1669 withval="$with_gtk_exec_prefix"
1670 gtk_config_exec_prefix="$withval"
1671else
1672 gtk_config_exec_prefix=""
703e0a69
VZ
1673fi
1674
10f2d63a 1675
6232543b 1676
703e0a69
VZ
1677 echo $ac_n "checking "for --with-libpng"""... $ac_c" 1>&6
1678echo "configure:1679: checking "for --with-libpng"" >&5
1679 no_cache=0
1680 # Check whether --with-libpng or --without-libpng was given.
b12915c1
VZ
1681if test "${with_libpng+set}" = set; then
1682 withval="$with_libpng"
703e0a69 1683
10f2d63a 1684 if test "$withval" = yes; then
b12915c1 1685 ac_cv_use_libpng='wxUSE_LIBPNG=yes'
422107f9 1686 elif test "$withval" = no; then
b12915c1 1687 ac_cv_use_libpng='wxUSE_LIBPNG=no'
422107f9
VZ
1688 elif test "$withval" = sys; then
1689 ac_cv_use_libpng='wxUSE_LIBPNG=sys'
1690 else
703e0a69 1691 { echo "configure: error: Invalid value for --with-libpng: should be yes, no or sys" 1>&2; exit 1; }
10f2d63a 1692 fi
703e0a69 1693
10f2d63a 1694else
703e0a69 1695
b12915c1 1696 LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
10f2d63a
VZ
1697 if test "x$LINE" != x ; then
1698 eval "DEFAULT_$LINE"
1699 else
1700 no_cache=1
1701 fi
1702
b12915c1 1703 ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
703e0a69
VZ
1704
1705fi
10f2d63a
VZ
1706
1707
b12915c1 1708 eval "$ac_cv_use_libpng"
10f2d63a 1709 if test "$no_cache" != 1; then
b12915c1 1710 echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
1711 fi
1712
b12915c1 1713 if test "$wxUSE_LIBPNG" = yes; then
703e0a69 1714 echo "$ac_t""yes" 1>&6
422107f9 1715 elif test "$wxUSE_LIBPNG" = no; then
703e0a69 1716 echo "$ac_t""no" 1>&6
422107f9 1717 elif test "$wxUSE_LIBPNG" = sys; then
703e0a69 1718 echo "$ac_t""system version" 1>&6
422107f9 1719 else
703e0a69 1720 { echo "configure: error: Invalid value for --with-libpng: should be yes, no or sys" 1>&2; exit 1; }
10f2d63a 1721 fi
703e0a69 1722
10f2d63a 1723
703e0a69
VZ
1724 echo $ac_n "checking "for --with-libjpeg"""... $ac_c" 1>&6
1725echo "configure:1726: checking "for --with-libjpeg"" >&5
10f2d63a 1726 no_cache=0
703e0a69 1727 # Check whether --with-libjpeg or --without-libjpeg was given.
b12915c1
VZ
1728if test "${with_libjpeg+set}" = set; then
1729 withval="$with_libjpeg"
703e0a69 1730
10f2d63a 1731 if test "$withval" = yes; then
b12915c1 1732 ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
422107f9 1733 elif test "$withval" = no; then
b12915c1 1734 ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
422107f9
VZ
1735 elif test "$withval" = sys; then
1736 ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
1737 else
703e0a69 1738 { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no or sys" 1>&2; exit 1; }
10f2d63a 1739 fi
703e0a69 1740
10f2d63a 1741else
703e0a69 1742
b12915c1 1743 LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
10f2d63a
VZ
1744 if test "x$LINE" != x ; then
1745 eval "DEFAULT_$LINE"
1746 else
1747 no_cache=1
1748 fi
1749
b12915c1 1750 ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
703e0a69
VZ
1751
1752fi
10f2d63a
VZ
1753
1754
b12915c1 1755 eval "$ac_cv_use_libjpeg"
10f2d63a 1756 if test "$no_cache" != 1; then
b12915c1 1757 echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
1758 fi
1759
b12915c1 1760 if test "$wxUSE_LIBJPEG" = yes; then
703e0a69 1761 echo "$ac_t""yes" 1>&6
422107f9 1762 elif test "$wxUSE_LIBJPEG" = no; then
703e0a69 1763 echo "$ac_t""no" 1>&6
422107f9 1764 elif test "$wxUSE_LIBJPEG" = sys; then
703e0a69 1765 echo "$ac_t""system version" 1>&6
422107f9 1766 else
703e0a69 1767 { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no or sys" 1>&2; exit 1; }
10f2d63a 1768 fi
703e0a69 1769
10f2d63a 1770
703e0a69
VZ
1771 echo $ac_n "checking "for --with-libtiff"""... $ac_c" 1>&6
1772echo "configure:1773: checking "for --with-libtiff"" >&5
10f2d63a 1773 no_cache=0
703e0a69 1774 # Check whether --with-libtiff or --without-libtiff was given.
b12915c1
VZ
1775if test "${with_libtiff+set}" = set; then
1776 withval="$with_libtiff"
703e0a69 1777
10f2d63a 1778 if test "$withval" = yes; then
b12915c1 1779 ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
0dcf9893 1780 elif test "$withval" = no; then
b12915c1 1781 ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
0dcf9893
VZ
1782 elif test "$withval" = sys; then
1783 ac_cv_use_libtiff='wxUSE_LIBTIFF=sys'
1784 else
703e0a69 1785 { echo "configure: error: Invalid value for --with-libtiff: should be yes, no or sys" 1>&2; exit 1; }
10f2d63a 1786 fi
703e0a69 1787
10f2d63a 1788else
703e0a69 1789
b12915c1 1790 LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
10f2d63a
VZ
1791 if test "x$LINE" != x ; then
1792 eval "DEFAULT_$LINE"
1793 else
1794 no_cache=1
1795 fi
1796
b12915c1 1797 ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
703e0a69
VZ
1798
1799fi
10f2d63a
VZ
1800
1801
b12915c1 1802 eval "$ac_cv_use_libtiff"
10f2d63a 1803 if test "$no_cache" != 1; then
b12915c1 1804 echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
1805 fi
1806
b12915c1 1807 if test "$wxUSE_LIBTIFF" = yes; then
703e0a69 1808 echo "$ac_t""yes" 1>&6
0dcf9893 1809 elif test "$wxUSE_LIBTIFF" = no; then
703e0a69 1810 echo "$ac_t""no" 1>&6
0dcf9893 1811 elif test "$wxUSE_LIBTIFF" = sys; then
703e0a69 1812 echo "$ac_t""system version" 1>&6
0dcf9893 1813 else
703e0a69 1814 { echo "configure: error: Invalid value for --with-libtiff: should be yes, no or sys" 1>&2; exit 1; }
10f2d63a 1815 fi
703e0a69 1816
10f2d63a 1817
703e0a69
VZ
1818 echo $ac_n "checking "for --with-freetype"""... $ac_c" 1>&6
1819echo "configure:1820: checking "for --with-freetype"" >&5
3fed1840 1820 no_cache=0
703e0a69 1821 # Check whether --with-freetype or --without-freetype was given.
3fed1840
RR
1822if test "${with_freetype+set}" = set; then
1823 withval="$with_freetype"
703e0a69 1824
3fed1840
RR
1825 if test "$withval" = yes; then
1826 ac_cv_use_freetype='wxUSE_FREETYPE=yes'
1827 elif test "$withval" = no; then
1828 ac_cv_use_freetype='wxUSE_FREETYPE=no'
1829 elif test "$withval" = sys; then
1830 ac_cv_use_freetype='wxUSE_FREETYPE=sys'
1831 else
703e0a69 1832 { echo "configure: error: Invalid value for --with-freetype: should be yes, no or sys" 1>&2; exit 1; }
3fed1840 1833 fi
703e0a69 1834
3fed1840 1835else
703e0a69 1836
3fed1840
RR
1837 LINE=`grep "wxUSE_FREETYPE" ${wx_arg_cache_file}`
1838 if test "x$LINE" != x ; then
1839 eval "DEFAULT_$LINE"
1840 else
1841 no_cache=1
1842 fi
1843
1844 ac_cv_use_freetype='wxUSE_FREETYPE='$DEFAULT_wxUSE_FREETYPE
703e0a69
VZ
1845
1846fi
3fed1840
RR
1847
1848
1849 eval "$ac_cv_use_freetype"
1850 if test "$no_cache" != 1; then
1851 echo $ac_cv_use_freetype >> ${wx_arg_cache_file}.tmp
1852 fi
1853
1854 if test "$wxUSE_FREETYPE" = yes; then
703e0a69 1855 echo "$ac_t""yes" 1>&6
3fed1840 1856 elif test "$wxUSE_FREETYPE" = no; then
703e0a69 1857 echo "$ac_t""no" 1>&6
3fed1840 1858 elif test "$wxUSE_FREETYPE" = sys; then
703e0a69 1859 echo "$ac_t""system version" 1>&6
3fed1840 1860 else
703e0a69 1861 { echo "configure: error: Invalid value for --with-freetype: should be yes, no or sys" 1>&2; exit 1; }
3fed1840 1862 fi
703e0a69 1863
3fed1840 1864
703e0a69
VZ
1865 echo $ac_n "checking "for --with-opengl"""... $ac_c" 1>&6
1866echo "configure:1867: checking "for --with-opengl"" >&5
10f2d63a 1867 no_cache=0
703e0a69 1868 # Check whether --with-opengl or --without-opengl was given.
b12915c1
VZ
1869if test "${with_opengl+set}" = set; then
1870 withval="$with_opengl"
703e0a69 1871
10f2d63a 1872 if test "$withval" = yes; then
b12915c1 1873 ac_cv_use_opengl='wxUSE_OPENGL=yes'
10f2d63a 1874 else
b12915c1 1875 ac_cv_use_opengl='wxUSE_OPENGL=no'
10f2d63a 1876 fi
703e0a69 1877
10f2d63a 1878else
703e0a69 1879
b12915c1 1880 LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
10f2d63a
VZ
1881 if test "x$LINE" != x ; then
1882 eval "DEFAULT_$LINE"
1883 else
1884 no_cache=1
1885 fi
1886
b12915c1 1887 ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
703e0a69
VZ
1888
1889fi
10f2d63a
VZ
1890
1891
b12915c1 1892 eval "$ac_cv_use_opengl"
10f2d63a 1893 if test "$no_cache" != 1; then
b12915c1 1894 echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
1895 fi
1896
b12915c1 1897 if test "$wxUSE_OPENGL" = yes; then
703e0a69 1898 echo "$ac_t""yes" 1>&6
10f2d63a 1899 else
703e0a69 1900 echo "$ac_t""no" 1>&6
10f2d63a 1901 fi
703e0a69 1902
10f2d63a 1903
b12915c1
VZ
1904fi
1905
6232543b 1906
703e0a69
VZ
1907 echo $ac_n "checking "for --with-dmalloc"""... $ac_c" 1>&6
1908echo "configure:1909: checking "for --with-dmalloc"" >&5
1909 no_cache=0
1910 # Check whether --with-dmalloc or --without-dmalloc was given.
b12915c1
VZ
1911if test "${with_dmalloc+set}" = set; then
1912 withval="$with_dmalloc"
703e0a69 1913
c7a2bf27 1914 if test "$withval" = yes; then
b12915c1 1915 ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
c7a2bf27 1916 else
b12915c1 1917 ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
c7a2bf27 1918 fi
703e0a69 1919
c7a2bf27 1920else
703e0a69 1921
b12915c1 1922 LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
c7a2bf27
RR
1923 if test "x$LINE" != x ; then
1924 eval "DEFAULT_$LINE"
1925 else
1926 no_cache=1
1927 fi
1928
b12915c1 1929 ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
703e0a69
VZ
1930
1931fi
c7a2bf27
RR
1932
1933
b12915c1 1934 eval "$ac_cv_use_dmalloc"
c7a2bf27 1935 if test "$no_cache" != 1; then
b12915c1 1936 echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
c7a2bf27
RR
1937 fi
1938
b12915c1 1939 if test "$wxUSE_DMALLOC" = yes; then
703e0a69 1940 echo "$ac_t""yes" 1>&6
c7a2bf27 1941 else
703e0a69 1942 echo "$ac_t""no" 1>&6
c7a2bf27 1943 fi
703e0a69 1944
c7a2bf27 1945
703e0a69
VZ
1946 echo $ac_n "checking "for --with-zlib"""... $ac_c" 1>&6
1947echo "configure:1948: checking "for --with-zlib"" >&5
10f2d63a 1948 no_cache=0
703e0a69 1949 # Check whether --with-zlib or --without-zlib was given.
b12915c1
VZ
1950if test "${with_zlib+set}" = set; then
1951 withval="$with_zlib"
703e0a69 1952
10f2d63a 1953 if test "$withval" = yes; then
b12915c1 1954 ac_cv_use_zlib='wxUSE_ZLIB=yes'
422107f9 1955 elif test "$withval" = no; then
b12915c1 1956 ac_cv_use_zlib='wxUSE_ZLIB=no'
422107f9
VZ
1957 elif test "$withval" = sys; then
1958 ac_cv_use_zlib='wxUSE_ZLIB=sys'
1959 else
703e0a69 1960 { echo "configure: error: Invalid value for --with-zlib: should be yes, no or sys" 1>&2; exit 1; }
10f2d63a 1961 fi
703e0a69 1962
10f2d63a 1963else
703e0a69 1964
b12915c1 1965 LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
10f2d63a
VZ
1966 if test "x$LINE" != x ; then
1967 eval "DEFAULT_$LINE"
1968 else
1969 no_cache=1
1970 fi
1971
b12915c1 1972 ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
703e0a69
VZ
1973
1974fi
10f2d63a
VZ
1975
1976
b12915c1 1977 eval "$ac_cv_use_zlib"
10f2d63a 1978 if test "$no_cache" != 1; then
b12915c1 1979 echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
1980 fi
1981
b12915c1 1982 if test "$wxUSE_ZLIB" = yes; then
703e0a69 1983 echo "$ac_t""yes" 1>&6
422107f9 1984 elif test "$wxUSE_ZLIB" = no; then
703e0a69 1985 echo "$ac_t""no" 1>&6
422107f9 1986 elif test "$wxUSE_ZLIB" = sys; then
703e0a69 1987 echo "$ac_t""system version" 1>&6
422107f9 1988 else
703e0a69 1989 { echo "configure: error: Invalid value for --with-zlib: should be yes, no or sys" 1>&2; exit 1; }
10f2d63a 1990 fi
703e0a69 1991
10f2d63a 1992
703e0a69
VZ
1993 echo $ac_n "checking "for --with-odbc"""... $ac_c" 1>&6
1994echo "configure:1995: checking "for --with-odbc"" >&5
10f2d63a 1995 no_cache=0
703e0a69 1996 # Check whether --with-odbc or --without-odbc was given.
10f2d63a
VZ
1997if test "${with_odbc+set}" = set; then
1998 withval="$with_odbc"
703e0a69 1999
10f2d63a
VZ
2000 if test "$withval" = yes; then
2001 ac_cv_use_odbc='wxUSE_ODBC=yes'
2002 else
2003 ac_cv_use_odbc='wxUSE_ODBC=no'
2004 fi
703e0a69 2005
10f2d63a 2006else
703e0a69 2007
10f2d63a
VZ
2008 LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
2009 if test "x$LINE" != x ; then
2010 eval "DEFAULT_$LINE"
2011 else
2012 no_cache=1
2013 fi
2014
2015 ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
703e0a69
VZ
2016
2017fi
10f2d63a
VZ
2018
2019
2020 eval "$ac_cv_use_odbc"
2021 if test "$no_cache" != 1; then
2022 echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
2023 fi
2024
2025 if test "$wxUSE_ODBC" = yes; then
703e0a69 2026 echo "$ac_t""yes" 1>&6
10f2d63a 2027 else
703e0a69 2028 echo "$ac_t""no" 1>&6
10f2d63a 2029 fi
703e0a69
VZ
2030
2031
10f2d63a 2032
703e0a69
VZ
2033
2034
2035 echo $ac_n "checking "for --enable-shared"""... $ac_c" 1>&6
2036echo "configure:2037: checking "for --enable-shared"" >&5
10f2d63a
VZ
2037 no_cache=0
2038 # Check whether --enable-shared or --disable-shared was given.
2039if test "${enable_shared+set}" = set; then
2040 enableval="$enable_shared"
703e0a69 2041
10f2d63a
VZ
2042 if test "$enableval" = yes; then
2043 ac_cv_use_shared='wxUSE_SHARED=yes'
2044 else
2045 ac_cv_use_shared='wxUSE_SHARED=no'
2046 fi
703e0a69 2047
10f2d63a 2048else
703e0a69 2049
10f2d63a
VZ
2050 LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
2051 if test "x$LINE" != x ; then
2052 eval "DEFAULT_$LINE"
2053 else
2054 no_cache=1
2055 fi
2056
2057 ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
703e0a69
VZ
2058
2059fi
10f2d63a
VZ
2060
2061
2062 eval "$ac_cv_use_shared"
2063 if test "$no_cache" != 1; then
2064 echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
2065 fi
2066
2067 if test "$wxUSE_SHARED" = yes; then
703e0a69 2068 echo "$ac_t""yes" 1>&6
10f2d63a 2069 else
703e0a69 2070 echo "$ac_t""no" 1>&6
10f2d63a 2071 fi
703e0a69 2072
10f2d63a 2073
703e0a69
VZ
2074 echo $ac_n "checking "for --enable-burnt_name"""... $ac_c" 1>&6
2075echo "configure:2076: checking "for --enable-burnt_name"" >&5
00cf1208
RR
2076 no_cache=0
2077 # Check whether --enable-burnt_name or --disable-burnt_name was given.
2078if test "${enable_burnt_name+set}" = set; then
2079 enableval="$enable_burnt_name"
703e0a69 2080
00cf1208
RR
2081 if test "$enableval" = yes; then
2082 ac_cv_use_burnt_name='wxUSE_BURNT_NAME=yes'
2083 else
2084 ac_cv_use_burnt_name='wxUSE_BURNT_NAME=no'
2085 fi
703e0a69 2086
00cf1208 2087else
703e0a69 2088
00cf1208
RR
2089 LINE=`grep "wxUSE_BURNT_NAME" ${wx_arg_cache_file}`
2090 if test "x$LINE" != x ; then
2091 eval "DEFAULT_$LINE"
2092 else
2093 no_cache=1
2094 fi
2095
2096 ac_cv_use_burnt_name='wxUSE_BURNT_NAME='$DEFAULT_wxUSE_BURNT_NAME
703e0a69
VZ
2097
2098fi
00cf1208
RR
2099
2100
2101 eval "$ac_cv_use_burnt_name"
2102 if test "$no_cache" != 1; then
2103 echo $ac_cv_use_burnt_name >> ${wx_arg_cache_file}.tmp
2104 fi
2105
2106 if test "$wxUSE_BURNT_NAME" = yes; then
703e0a69 2107 echo "$ac_t""yes" 1>&6
00cf1208 2108 else
703e0a69 2109 echo "$ac_t""no" 1>&6
00cf1208 2110 fi
703e0a69 2111
00cf1208 2112
703e0a69
VZ
2113 echo $ac_n "checking "for --enable-optimise"""... $ac_c" 1>&6
2114echo "configure:2115: checking "for --enable-optimise"" >&5
10f2d63a
VZ
2115 no_cache=0
2116 # Check whether --enable-optimise or --disable-optimise was given.
2117if test "${enable_optimise+set}" = set; then
2118 enableval="$enable_optimise"
703e0a69 2119
10f2d63a
VZ
2120 if test "$enableval" = yes; then
2121 ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
2122 else
2123 ac_cv_use_optimise='wxUSE_OPTIMISE=no'
2124 fi
703e0a69 2125
10f2d63a 2126else
703e0a69 2127
10f2d63a
VZ
2128 LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
2129 if test "x$LINE" != x ; then
2130 eval "DEFAULT_$LINE"
2131 else
2132 no_cache=1
2133 fi
2134
2135 ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
703e0a69
VZ
2136
2137fi
10f2d63a
VZ
2138
2139
2140 eval "$ac_cv_use_optimise"
2141 if test "$no_cache" != 1; then
2142 echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
2143 fi
2144
2145 if test "$wxUSE_OPTIMISE" = yes; then
703e0a69 2146 echo "$ac_t""yes" 1>&6
10f2d63a 2147 else
703e0a69 2148 echo "$ac_t""no" 1>&6
10f2d63a 2149 fi
703e0a69 2150
10f2d63a 2151
703e0a69
VZ
2152 echo $ac_n "checking "for --enable-debug"""... $ac_c" 1>&6
2153echo "configure:2154: checking "for --enable-debug"" >&5
10f2d63a
VZ
2154 no_cache=0
2155 # Check whether --enable-debug or --disable-debug was given.
2156if test "${enable_debug+set}" = set; then
2157 enableval="$enable_debug"
703e0a69 2158
10f2d63a
VZ
2159 if test "$enableval" = yes; then
2160 ac_cv_use_debug='wxUSE_DEBUG=yes'
2161 else
2162 ac_cv_use_debug='wxUSE_DEBUG=no'
2163 fi
703e0a69 2164
10f2d63a 2165else
703e0a69 2166
10f2d63a
VZ
2167 LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
2168 if test "x$LINE" != x ; then
2169 eval "DEFAULT_$LINE"
2170 else
2171 no_cache=1
2172 fi
2173
2174 ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
703e0a69
VZ
2175
2176fi
10f2d63a
VZ
2177
2178
2179 eval "$ac_cv_use_debug"
2180 if test "$no_cache" != 1; then
2181 echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
2182 fi
2183
2184 if test "$wxUSE_DEBUG" = yes; then
703e0a69 2185 echo "$ac_t""yes" 1>&6
10f2d63a 2186 else
703e0a69 2187 echo "$ac_t""no" 1>&6
10f2d63a 2188 fi
703e0a69 2189
10f2d63a
VZ
2190
2191if test "$wxUSE_DEBUG" = "yes"; then
2192 DEFAULT_wxUSE_DEBUG_FLAG=yes
2193 DEFAULT_wxUSE_DEBUG_INFO=yes
2194elif test "$wxUSE_DEBUG" = "no"; then
2195 DEFAULT_wxUSE_DEBUG_FLAG=no
2196 DEFAULT_wxUSE_DEBUG_INFO=no
2197fi
2198
703e0a69
VZ
2199
2200 echo $ac_n "checking "for --enable-debug_flag"""... $ac_c" 1>&6
2201echo "configure:2202: checking "for --enable-debug_flag"" >&5
10f2d63a
VZ
2202 no_cache=0
2203 # Check whether --enable-debug_flag or --disable-debug_flag was given.
2204if test "${enable_debug_flag+set}" = set; then
2205 enableval="$enable_debug_flag"
703e0a69 2206
10f2d63a
VZ
2207 if test "$enableval" = yes; then
2208 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
2209 else
2210 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
2211 fi
703e0a69 2212
10f2d63a 2213else
703e0a69 2214
10f2d63a
VZ
2215 LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
2216 if test "x$LINE" != x ; then
2217 eval "DEFAULT_$LINE"
2218 else
2219 no_cache=1
2220 fi
2221
2222 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
703e0a69
VZ
2223
2224fi
10f2d63a
VZ
2225
2226
2227 eval "$ac_cv_use_debug_flag"
2228 if test "$no_cache" != 1; then
2229 echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
2230 fi
2231
2232 if test "$wxUSE_DEBUG_FLAG" = yes; then
703e0a69 2233 echo "$ac_t""yes" 1>&6
10f2d63a 2234 else
703e0a69 2235 echo "$ac_t""no" 1>&6
10f2d63a 2236 fi
703e0a69 2237
10f2d63a 2238
703e0a69
VZ
2239 echo $ac_n "checking "for --enable-debug_info"""... $ac_c" 1>&6
2240echo "configure:2241: checking "for --enable-debug_info"" >&5
10f2d63a
VZ
2241 no_cache=0
2242 # Check whether --enable-debug_info or --disable-debug_info was given.
2243if test "${enable_debug_info+set}" = set; then
2244 enableval="$enable_debug_info"
703e0a69 2245
10f2d63a
VZ
2246 if test "$enableval" = yes; then
2247 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
2248 else
2249 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
2250 fi
703e0a69 2251
10f2d63a 2252else
703e0a69 2253
10f2d63a
VZ
2254 LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
2255 if test "x$LINE" != x ; then
2256 eval "DEFAULT_$LINE"
2257 else
2258 no_cache=1
2259 fi
2260
2261 ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
703e0a69
VZ
2262
2263fi
10f2d63a
VZ
2264
2265
2266 eval "$ac_cv_use_debug_info"
2267 if test "$no_cache" != 1; then
2268 echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
2269 fi
2270
2271 if test "$wxUSE_DEBUG_INFO" = yes; then
703e0a69 2272 echo "$ac_t""yes" 1>&6
10f2d63a 2273 else
703e0a69 2274 echo "$ac_t""no" 1>&6
10f2d63a 2275 fi
703e0a69 2276
10f2d63a 2277
703e0a69
VZ
2278 echo $ac_n "checking "for --enable-debug_gdb"""... $ac_c" 1>&6
2279echo "configure:2280: checking "for --enable-debug_gdb"" >&5
10f2d63a
VZ
2280 no_cache=0
2281 # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
2282if test "${enable_debug_gdb+set}" = set; then
2283 enableval="$enable_debug_gdb"
703e0a69 2284
10f2d63a
VZ
2285 if test "$enableval" = yes; then
2286 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
2287 else
2288 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
2289 fi
703e0a69 2290
10f2d63a 2291else
703e0a69 2292
10f2d63a
VZ
2293 LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
2294 if test "x$LINE" != x ; then
2295 eval "DEFAULT_$LINE"
2296 else
2297 no_cache=1
2298 fi
2299
2300 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
703e0a69
VZ
2301
2302fi
10f2d63a
VZ
2303
2304
2305 eval "$ac_cv_use_debug_gdb"
2306 if test "$no_cache" != 1; then
2307 echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
2308 fi
2309
2310 if test "$wxUSE_DEBUG_GDB" = yes; then
703e0a69 2311 echo "$ac_t""yes" 1>&6
10f2d63a 2312 else
703e0a69 2313 echo "$ac_t""no" 1>&6
10f2d63a 2314 fi
703e0a69 2315
10f2d63a 2316
703e0a69
VZ
2317 echo $ac_n "checking "for --enable-debug_cntxt"""... $ac_c" 1>&6
2318echo "configure:2319: checking "for --enable-debug_cntxt"" >&5
10f2d63a
VZ
2319 no_cache=0
2320 # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
2321if test "${enable_debug_cntxt+set}" = set; then
2322 enableval="$enable_debug_cntxt"
703e0a69 2323
10f2d63a
VZ
2324 if test "$enableval" = yes; then
2325 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
2326 else
2327 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
2328 fi
703e0a69 2329
10f2d63a 2330else
703e0a69 2331
10f2d63a
VZ
2332 LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
2333 if test "x$LINE" != x ; then
2334 eval "DEFAULT_$LINE"
2335 else
2336 no_cache=1
2337 fi
2338
2339 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
703e0a69
VZ
2340
2341fi
10f2d63a
VZ
2342
2343
2344 eval "$ac_cv_use_debug_cntxt"
2345 if test "$no_cache" != 1; then
2346 echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
2347 fi
2348
2349 if test "$wxUSE_DEBUG_CONTEXT" = yes; then
703e0a69 2350 echo "$ac_t""yes" 1>&6
10f2d63a 2351 else
703e0a69 2352 echo "$ac_t""no" 1>&6
10f2d63a 2353 fi
703e0a69 2354
10f2d63a 2355
703e0a69
VZ
2356 echo $ac_n "checking "for --enable-mem_tracing"""... $ac_c" 1>&6
2357echo "configure:2358: checking "for --enable-mem_tracing"" >&5
10f2d63a
VZ
2358 no_cache=0
2359 # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
2360if test "${enable_mem_tracing+set}" = set; then
2361 enableval="$enable_mem_tracing"
703e0a69 2362
10f2d63a
VZ
2363 if test "$enableval" = yes; then
2364 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
2365 else
2366 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
2367 fi
703e0a69 2368
10f2d63a 2369else
703e0a69 2370
10f2d63a
VZ
2371 LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
2372 if test "x$LINE" != x ; then
2373 eval "DEFAULT_$LINE"
2374 else
2375 no_cache=1
2376 fi
2377
2378 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
703e0a69
VZ
2379
2380fi
10f2d63a
VZ
2381
2382
2383 eval "$ac_cv_use_mem_tracing"
2384 if test "$no_cache" != 1; then
2385 echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
2386 fi
2387
2388 if test "$wxUSE_MEM_TRACING" = yes; then
703e0a69 2389 echo "$ac_t""yes" 1>&6
10f2d63a 2390 else
703e0a69 2391 echo "$ac_t""no" 1>&6
10f2d63a 2392 fi
703e0a69 2393
10f2d63a 2394
703e0a69
VZ
2395 echo $ac_n "checking "for --enable-profile"""... $ac_c" 1>&6
2396echo "configure:2397: checking "for --enable-profile"" >&5
10f2d63a
VZ
2397 no_cache=0
2398 # Check whether --enable-profile or --disable-profile was given.
2399if test "${enable_profile+set}" = set; then
2400 enableval="$enable_profile"
703e0a69 2401
10f2d63a
VZ
2402 if test "$enableval" = yes; then
2403 ac_cv_use_profile='wxUSE_PROFILE=yes'
2404 else
2405 ac_cv_use_profile='wxUSE_PROFILE=no'
2406 fi
703e0a69 2407
10f2d63a 2408else
703e0a69 2409
10f2d63a
VZ
2410 LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
2411 if test "x$LINE" != x ; then
2412 eval "DEFAULT_$LINE"
2413 else
2414 no_cache=1
2415 fi
2416
2417 ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
703e0a69
VZ
2418
2419fi
10f2d63a
VZ
2420
2421
2422 eval "$ac_cv_use_profile"
2423 if test "$no_cache" != 1; then
2424 echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
2425 fi
2426
2427 if test "$wxUSE_PROFILE" = yes; then
703e0a69 2428 echo "$ac_t""yes" 1>&6
10f2d63a 2429 else
703e0a69 2430 echo "$ac_t""no" 1>&6
10f2d63a 2431 fi
703e0a69 2432
10f2d63a 2433
703e0a69
VZ
2434 echo $ac_n "checking "for --enable-no_rtti"""... $ac_c" 1>&6
2435echo "configure:2436: checking "for --enable-no_rtti"" >&5
10f2d63a
VZ
2436 no_cache=0
2437 # Check whether --enable-no_rtti or --disable-no_rtti was given.
2438if test "${enable_no_rtti+set}" = set; then
2439 enableval="$enable_no_rtti"
703e0a69 2440
10f2d63a
VZ
2441 if test "$enableval" = yes; then
2442 ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
2443 else
2444 ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
2445 fi
703e0a69 2446
10f2d63a 2447else
703e0a69 2448
10f2d63a
VZ
2449 LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
2450 if test "x$LINE" != x ; then
2451 eval "DEFAULT_$LINE"
2452 else
2453 no_cache=1
2454 fi
2455
2456 ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
703e0a69
VZ
2457
2458fi
10f2d63a
VZ
2459
2460
2461 eval "$ac_cv_use_no_rtti"
2462 if test "$no_cache" != 1; then
2463 echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
2464 fi
2465
2466 if test "$wxUSE_NO_RTTI" = yes; then
703e0a69 2467 echo "$ac_t""yes" 1>&6
10f2d63a 2468 else
703e0a69 2469 echo "$ac_t""no" 1>&6
10f2d63a 2470 fi
703e0a69 2471
10f2d63a 2472
703e0a69
VZ
2473 echo $ac_n "checking "for --enable-no_exceptions"""... $ac_c" 1>&6
2474echo "configure:2475: checking "for --enable-no_exceptions"" >&5
10f2d63a
VZ
2475 no_cache=0
2476 # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
2477if test "${enable_no_exceptions+set}" = set; then
2478 enableval="$enable_no_exceptions"
703e0a69 2479
10f2d63a
VZ
2480 if test "$enableval" = yes; then
2481 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
2482 else
2483 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
2484 fi
703e0a69 2485
10f2d63a 2486else
703e0a69 2487
10f2d63a
VZ
2488 LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
2489 if test "x$LINE" != x ; then
2490 eval "DEFAULT_$LINE"
2491 else
2492 no_cache=1
2493 fi
2494
2495 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
703e0a69
VZ
2496
2497fi
10f2d63a
VZ
2498
2499
2500 eval "$ac_cv_use_no_exceptions"
2501 if test "$no_cache" != 1; then
2502 echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
2503 fi
2504
2505 if test "$wxUSE_NO_EXCEPTIONS" = yes; then
703e0a69 2506 echo "$ac_t""yes" 1>&6
10f2d63a 2507 else
703e0a69 2508 echo "$ac_t""no" 1>&6
10f2d63a 2509 fi
703e0a69 2510
10f2d63a 2511
703e0a69
VZ
2512 echo $ac_n "checking "for --enable-permissive"""... $ac_c" 1>&6
2513echo "configure:2514: checking "for --enable-permissive"" >&5
10f2d63a
VZ
2514 no_cache=0
2515 # Check whether --enable-permissive or --disable-permissive was given.
2516if test "${enable_permissive+set}" = set; then
2517 enableval="$enable_permissive"
703e0a69 2518
10f2d63a
VZ
2519 if test "$enableval" = yes; then
2520 ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
2521 else
2522 ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
2523 fi
703e0a69 2524
10f2d63a 2525else
703e0a69 2526
10f2d63a
VZ
2527 LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
2528 if test "x$LINE" != x ; then
2529 eval "DEFAULT_$LINE"
2530 else
2531 no_cache=1
2532 fi
2533
2534 ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
703e0a69
VZ
2535
2536fi
10f2d63a
VZ
2537
2538
2539 eval "$ac_cv_use_permissive"
2540 if test "$no_cache" != 1; then
2541 echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
2542 fi
2543
2544 if test "$wxUSE_PERMISSIVE" = yes; then
703e0a69 2545 echo "$ac_t""yes" 1>&6
10f2d63a 2546 else
703e0a69 2547 echo "$ac_t""no" 1>&6
10f2d63a 2548 fi
703e0a69 2549
10f2d63a 2550
703e0a69
VZ
2551 echo $ac_n "checking "for --enable-no_deps"""... $ac_c" 1>&6
2552echo "configure:2553: checking "for --enable-no_deps"" >&5
10f2d63a
VZ
2553 no_cache=0
2554 # Check whether --enable-no_deps or --disable-no_deps was given.
2555if test "${enable_no_deps+set}" = set; then
2556 enableval="$enable_no_deps"
703e0a69 2557
10f2d63a
VZ
2558 if test "$enableval" = yes; then
2559 ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
2560 else
2561 ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
2562 fi
703e0a69 2563
10f2d63a 2564else
703e0a69 2565
10f2d63a
VZ
2566 LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
2567 if test "x$LINE" != x ; then
2568 eval "DEFAULT_$LINE"
2569 else
2570 no_cache=1
2571 fi
2572
2573 ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
703e0a69
VZ
2574
2575fi
10f2d63a
VZ
2576
2577
2578 eval "$ac_cv_use_no_deps"
2579 if test "$no_cache" != 1; then
2580 echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
2581 fi
2582
2583 if test "$wxUSE_NO_DEPS" = yes; then
703e0a69 2584 echo "$ac_t""yes" 1>&6
10f2d63a 2585 else
703e0a69 2586 echo "$ac_t""no" 1>&6
10f2d63a 2587 fi
703e0a69
VZ
2588
2589
10f2d63a 2590
703e0a69
VZ
2591
2592 echo $ac_n "checking "for --enable-intl"""... $ac_c" 1>&6
2593echo "configure:2594: checking "for --enable-intl"" >&5
10f2d63a
VZ
2594 no_cache=0
2595 # Check whether --enable-intl or --disable-intl was given.
2596if test "${enable_intl+set}" = set; then
2597 enableval="$enable_intl"
703e0a69 2598
10f2d63a
VZ
2599 if test "$enableval" = yes; then
2600 ac_cv_use_intl='wxUSE_INTL=yes'
2601 else
2602 ac_cv_use_intl='wxUSE_INTL=no'
2603 fi
703e0a69 2604
10f2d63a 2605else
703e0a69 2606
10f2d63a
VZ
2607 LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
2608 if test "x$LINE" != x ; then
2609 eval "DEFAULT_$LINE"
2610 else
2611 no_cache=1
2612 fi
2613
2614 ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
703e0a69
VZ
2615
2616fi
10f2d63a
VZ
2617
2618
2619 eval "$ac_cv_use_intl"
2620 if test "$no_cache" != 1; then
2621 echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
2622 fi
2623
2624 if test "$wxUSE_INTL" = yes; then
703e0a69 2625 echo "$ac_t""yes" 1>&6
10f2d63a 2626 else
703e0a69 2627 echo "$ac_t""no" 1>&6
10f2d63a 2628 fi
703e0a69 2629
10f2d63a 2630
703e0a69
VZ
2631 echo $ac_n "checking "for --enable-config"""... $ac_c" 1>&6
2632echo "configure:2633: checking "for --enable-config"" >&5
10f2d63a
VZ
2633 no_cache=0
2634 # Check whether --enable-config or --disable-config was given.
2635if test "${enable_config+set}" = set; then
2636 enableval="$enable_config"
703e0a69 2637
10f2d63a
VZ
2638 if test "$enableval" = yes; then
2639 ac_cv_use_config='wxUSE_CONFIG=yes'
2640 else
2641 ac_cv_use_config='wxUSE_CONFIG=no'
2642 fi
703e0a69 2643
10f2d63a 2644else
703e0a69 2645
10f2d63a
VZ
2646 LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
2647 if test "x$LINE" != x ; then
2648 eval "DEFAULT_$LINE"
2649 else
2650 no_cache=1
2651 fi
2652
2653 ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
703e0a69
VZ
2654
2655fi
10f2d63a
VZ
2656
2657
2658 eval "$ac_cv_use_config"
2659 if test "$no_cache" != 1; then
2660 echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
2661 fi
2662
2663 if test "$wxUSE_CONFIG" = yes; then
703e0a69 2664 echo "$ac_t""yes" 1>&6
10f2d63a 2665 else
703e0a69 2666 echo "$ac_t""no" 1>&6
10f2d63a 2667 fi
703e0a69
VZ
2668
2669
b12915c1 2670
703e0a69
VZ
2671 echo $ac_n "checking "for --enable-sockets"""... $ac_c" 1>&6
2672echo "configure:2673: checking "for --enable-sockets"" >&5
10f2d63a
VZ
2673 no_cache=0
2674 # Check whether --enable-sockets or --disable-sockets was given.
2675if test "${enable_sockets+set}" = set; then
2676 enableval="$enable_sockets"
703e0a69 2677
10f2d63a
VZ
2678 if test "$enableval" = yes; then
2679 ac_cv_use_sockets='wxUSE_SOCKETS=yes'
2680 else
2681 ac_cv_use_sockets='wxUSE_SOCKETS=no'
2682 fi
703e0a69 2683
10f2d63a 2684else
703e0a69 2685
10f2d63a
VZ
2686 LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
2687 if test "x$LINE" != x ; then
2688 eval "DEFAULT_$LINE"
2689 else
2690 no_cache=1
2691 fi
2692
2693 ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
703e0a69
VZ
2694
2695fi
10f2d63a
VZ
2696
2697
2698 eval "$ac_cv_use_sockets"
2699 if test "$no_cache" != 1; then
2700 echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
2701 fi
2702
2703 if test "$wxUSE_SOCKETS" = yes; then
703e0a69 2704 echo "$ac_t""yes" 1>&6
10f2d63a 2705 else
703e0a69 2706 echo "$ac_t""no" 1>&6
10f2d63a 2707 fi
703e0a69 2708
b12915c1 2709
703e0a69
VZ
2710
2711 echo $ac_n "checking "for --enable-ipc"""... $ac_c" 1>&6
2712echo "configure:2713: checking "for --enable-ipc"" >&5
10f2d63a 2713 no_cache=0
eb4efbdc
VZ
2714 # Check whether --enable-ipc or --disable-ipc was given.
2715if test "${enable_ipc+set}" = set; then
2716 enableval="$enable_ipc"
703e0a69 2717
10f2d63a 2718 if test "$enableval" = yes; then
eb4efbdc 2719 ac_cv_use_ipc='wxUSE_IPC=yes'
10f2d63a 2720 else
eb4efbdc 2721 ac_cv_use_ipc='wxUSE_IPC=no'
10f2d63a 2722 fi
703e0a69 2723
10f2d63a 2724else
703e0a69 2725
eb4efbdc 2726 LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
10f2d63a
VZ
2727 if test "x$LINE" != x ; then
2728 eval "DEFAULT_$LINE"
2729 else
2730 no_cache=1
2731 fi
2732
eb4efbdc 2733 ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
703e0a69
VZ
2734
2735fi
10f2d63a
VZ
2736
2737
eb4efbdc 2738 eval "$ac_cv_use_ipc"
10f2d63a 2739 if test "$no_cache" != 1; then
eb4efbdc 2740 echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2741 fi
2742
eb4efbdc 2743 if test "$wxUSE_IPC" = yes; then
703e0a69 2744 echo "$ac_t""yes" 1>&6
10f2d63a 2745 else
703e0a69 2746 echo "$ac_t""no" 1>&6
10f2d63a 2747 fi
703e0a69
VZ
2748
2749
eb4efbdc 2750
703e0a69
VZ
2751 echo $ac_n "checking "for --enable-dialupman"""... $ac_c" 1>&6
2752echo "configure:2753: checking "for --enable-dialupman"" >&5
10f2d63a 2753 no_cache=0
eb4efbdc
VZ
2754 # Check whether --enable-dialupman or --disable-dialupman was given.
2755if test "${enable_dialupman+set}" = set; then
2756 enableval="$enable_dialupman"
703e0a69 2757
10f2d63a 2758 if test "$enableval" = yes; then
eb4efbdc 2759 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
10f2d63a 2760 else
eb4efbdc 2761 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
10f2d63a 2762 fi
703e0a69 2763
10f2d63a 2764else
703e0a69 2765
eb4efbdc 2766 LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
10f2d63a
VZ
2767 if test "x$LINE" != x ; then
2768 eval "DEFAULT_$LINE"
2769 else
2770 no_cache=1
2771 fi
2772
eb4efbdc 2773 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
703e0a69
VZ
2774
2775fi
10f2d63a
VZ
2776
2777
eb4efbdc 2778 eval "$ac_cv_use_dialupman"
10f2d63a 2779 if test "$no_cache" != 1; then
eb4efbdc 2780 echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2781 fi
2782
eb4efbdc 2783 if test "$wxUSE_DIALUP_MANAGER" = yes; then
703e0a69 2784 echo "$ac_t""yes" 1>&6
10f2d63a 2785 else
703e0a69 2786 echo "$ac_t""no" 1>&6
10f2d63a 2787 fi
703e0a69 2788
10f2d63a 2789
703e0a69
VZ
2790 echo $ac_n "checking "for --enable-apple_ieee"""... $ac_c" 1>&6
2791echo "configure:2792: checking "for --enable-apple_ieee"" >&5
10f2d63a
VZ
2792 no_cache=0
2793 # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
2794if test "${enable_apple_ieee+set}" = set; then
2795 enableval="$enable_apple_ieee"
703e0a69 2796
10f2d63a
VZ
2797 if test "$enableval" = yes; then
2798 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
2799 else
2800 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
2801 fi
703e0a69 2802
10f2d63a 2803else
703e0a69 2804
10f2d63a
VZ
2805 LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
2806 if test "x$LINE" != x ; then
2807 eval "DEFAULT_$LINE"
2808 else
2809 no_cache=1
2810 fi
2811
2812 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
703e0a69
VZ
2813
2814fi
10f2d63a
VZ
2815
2816
2817 eval "$ac_cv_use_apple_ieee"
2818 if test "$no_cache" != 1; then
2819 echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
2820 fi
2821
2822 if test "$wxUSE_APPLE_IEEE" = yes; then
703e0a69 2823 echo "$ac_t""yes" 1>&6
10f2d63a 2824 else
703e0a69 2825 echo "$ac_t""no" 1>&6
10f2d63a 2826 fi
703e0a69 2827
10f2d63a 2828
703e0a69
VZ
2829 echo $ac_n "checking "for --enable-timedate"""... $ac_c" 1>&6
2830echo "configure:2831: checking "for --enable-timedate"" >&5
10f2d63a
VZ
2831 no_cache=0
2832 # Check whether --enable-timedate or --disable-timedate was given.
2833if test "${enable_timedate+set}" = set; then
2834 enableval="$enable_timedate"
703e0a69 2835
10f2d63a
VZ
2836 if test "$enableval" = yes; then
2837 ac_cv_use_timedate='wxUSE_TIMEDATE=yes'
2838 else
2839 ac_cv_use_timedate='wxUSE_TIMEDATE=no'
2840 fi
703e0a69 2841
10f2d63a 2842else
703e0a69 2843
10f2d63a
VZ
2844 LINE=`grep "wxUSE_TIMEDATE" ${wx_arg_cache_file}`
2845 if test "x$LINE" != x ; then
2846 eval "DEFAULT_$LINE"
2847 else
2848 no_cache=1
2849 fi
2850
2851 ac_cv_use_timedate='wxUSE_TIMEDATE='$DEFAULT_wxUSE_TIMEDATE
703e0a69
VZ
2852
2853fi
10f2d63a
VZ
2854
2855
2856 eval "$ac_cv_use_timedate"
2857 if test "$no_cache" != 1; then
2858 echo $ac_cv_use_timedate >> ${wx_arg_cache_file}.tmp
2859 fi
2860
2861 if test "$wxUSE_TIMEDATE" = yes; then
703e0a69 2862 echo "$ac_t""yes" 1>&6
10f2d63a 2863 else
703e0a69 2864 echo "$ac_t""no" 1>&6
10f2d63a 2865 fi
703e0a69 2866
10f2d63a 2867
703e0a69
VZ
2868 echo $ac_n "checking "for --enable-wave"""... $ac_c" 1>&6
2869echo "configure:2870: checking "for --enable-wave"" >&5
10f2d63a
VZ
2870 no_cache=0
2871 # Check whether --enable-wave or --disable-wave was given.
2872if test "${enable_wave+set}" = set; then
2873 enableval="$enable_wave"
703e0a69 2874
10f2d63a
VZ
2875 if test "$enableval" = yes; then
2876 ac_cv_use_wave='wxUSE_WAVE=yes'
2877 else
2878 ac_cv_use_wave='wxUSE_WAVE=no'
2879 fi
703e0a69 2880
10f2d63a 2881else
703e0a69 2882
10f2d63a
VZ
2883 LINE=`grep "wxUSE_WAVE" ${wx_arg_cache_file}`
2884 if test "x$LINE" != x ; then
2885 eval "DEFAULT_$LINE"
2886 else
2887 no_cache=1
2888 fi
2889
2890 ac_cv_use_wave='wxUSE_WAVE='$DEFAULT_wxUSE_WAVE
703e0a69
VZ
2891
2892fi
10f2d63a
VZ
2893
2894
2895 eval "$ac_cv_use_wave"
2896 if test "$no_cache" != 1; then
2897 echo $ac_cv_use_wave >> ${wx_arg_cache_file}.tmp
2898 fi
2899
2900 if test "$wxUSE_WAVE" = yes; then
703e0a69 2901 echo "$ac_t""yes" 1>&6
10f2d63a 2902 else
703e0a69 2903 echo "$ac_t""no" 1>&6
10f2d63a 2904 fi
703e0a69 2905
10f2d63a 2906
703e0a69
VZ
2907 echo $ac_n "checking "for --enable-fraction"""... $ac_c" 1>&6
2908echo "configure:2909: checking "for --enable-fraction"" >&5
10f2d63a
VZ
2909 no_cache=0
2910 # Check whether --enable-fraction or --disable-fraction was given.
2911if test "${enable_fraction+set}" = set; then
2912 enableval="$enable_fraction"
703e0a69 2913
10f2d63a
VZ
2914 if test "$enableval" = yes; then
2915 ac_cv_use_fraction='wxUSE_FRACTION=yes'
2916 else
2917 ac_cv_use_fraction='wxUSE_FRACTION=no'
2918 fi
703e0a69 2919
10f2d63a 2920else
703e0a69 2921
10f2d63a
VZ
2922 LINE=`grep "wxUSE_FRACTION" ${wx_arg_cache_file}`
2923 if test "x$LINE" != x ; then
2924 eval "DEFAULT_$LINE"
2925 else
2926 no_cache=1
2927 fi
2928
2929 ac_cv_use_fraction='wxUSE_FRACTION='$DEFAULT_wxUSE_FRACTION
703e0a69
VZ
2930
2931fi
10f2d63a
VZ
2932
2933
2934 eval "$ac_cv_use_fraction"
2935 if test "$no_cache" != 1; then
2936 echo $ac_cv_use_fraction >> ${wx_arg_cache_file}.tmp
2937 fi
2938
2939 if test "$wxUSE_FRACTION" = yes; then
703e0a69 2940 echo "$ac_t""yes" 1>&6
10f2d63a 2941 else
703e0a69 2942 echo "$ac_t""no" 1>&6
10f2d63a 2943 fi
703e0a69 2944
10f2d63a 2945
703e0a69
VZ
2946 echo $ac_n "checking "for --enable-dynlib"""... $ac_c" 1>&6
2947echo "configure:2948: checking "for --enable-dynlib"" >&5
10f2d63a
VZ
2948 no_cache=0
2949 # Check whether --enable-dynlib or --disable-dynlib was given.
2950if test "${enable_dynlib+set}" = set; then
2951 enableval="$enable_dynlib"
703e0a69 2952
10f2d63a
VZ
2953 if test "$enableval" = yes; then
2954 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
2955 else
2956 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
2957 fi
703e0a69 2958
10f2d63a 2959else
703e0a69 2960
10f2d63a
VZ
2961 LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
2962 if test "x$LINE" != x ; then
2963 eval "DEFAULT_$LINE"
2964 else
2965 no_cache=1
2966 fi
2967
2968 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
703e0a69
VZ
2969
2970fi
10f2d63a
VZ
2971
2972
2973 eval "$ac_cv_use_dynlib"
2974 if test "$no_cache" != 1; then
2975 echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
2976 fi
2977
2978 if test "$wxUSE_DYNLIB_CLASS" = yes; then
703e0a69 2979 echo "$ac_t""yes" 1>&6
10f2d63a 2980 else
703e0a69 2981 echo "$ac_t""no" 1>&6
10f2d63a 2982 fi
703e0a69 2983
10f2d63a 2984
703e0a69
VZ
2985 echo $ac_n "checking "for --enable-longlong"""... $ac_c" 1>&6
2986echo "configure:2987: checking "for --enable-longlong"" >&5
10f2d63a
VZ
2987 no_cache=0
2988 # Check whether --enable-longlong or --disable-longlong was given.
2989if test "${enable_longlong+set}" = set; then
2990 enableval="$enable_longlong"
703e0a69 2991
10f2d63a
VZ
2992 if test "$enableval" = yes; then
2993 ac_cv_use_longlong='wxUSE_LONGLONG=yes'
2994 else
2995 ac_cv_use_longlong='wxUSE_LONGLONG=no'
2996 fi
703e0a69 2997
10f2d63a 2998else
703e0a69 2999
10f2d63a
VZ
3000 LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
3001 if test "x$LINE" != x ; then
3002 eval "DEFAULT_$LINE"
3003 else
3004 no_cache=1
3005 fi
3006
3007 ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
703e0a69
VZ
3008
3009fi
10f2d63a
VZ
3010
3011
3012 eval "$ac_cv_use_longlong"
3013 if test "$no_cache" != 1; then
3014 echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
3015 fi
3016
3017 if test "$wxUSE_LONGLONG" = yes; then
703e0a69 3018 echo "$ac_t""yes" 1>&6
10f2d63a 3019 else
703e0a69 3020 echo "$ac_t""no" 1>&6
10f2d63a 3021 fi
703e0a69 3022
10f2d63a 3023
703e0a69
VZ
3024 echo $ac_n "checking "for --enable-geometry"""... $ac_c" 1>&6
3025echo "configure:3026: checking "for --enable-geometry"" >&5
e8f65ba6
RR
3026 no_cache=0
3027 # Check whether --enable-geometry or --disable-geometry was given.
3028if test "${enable_geometry+set}" = set; then
3029 enableval="$enable_geometry"
703e0a69 3030
e8f65ba6
RR
3031 if test "$enableval" = yes; then
3032 ac_cv_use_geometry='wxUSE_GEOMETRY=yes'
3033 else
3034 ac_cv_use_geometry='wxUSE_GEOMETRY=no'
3035 fi
703e0a69 3036
e8f65ba6 3037else
703e0a69 3038
e8f65ba6
RR
3039 LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}`
3040 if test "x$LINE" != x ; then
3041 eval "DEFAULT_$LINE"
3042 else
3043 no_cache=1
3044 fi
3045
3046 ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY
703e0a69
VZ
3047
3048fi
e8f65ba6
RR
3049
3050
3051 eval "$ac_cv_use_geometry"
3052 if test "$no_cache" != 1; then
3053 echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp
3054 fi
3055
3056 if test "$wxUSE_GEOMETRY" = yes; then
703e0a69 3057 echo "$ac_t""yes" 1>&6
e8f65ba6 3058 else
703e0a69 3059 echo "$ac_t""no" 1>&6
e8f65ba6 3060 fi
703e0a69 3061
e8f65ba6 3062
703e0a69
VZ
3063 echo $ac_n "checking "for --enable-log"""... $ac_c" 1>&6
3064echo "configure:3065: checking "for --enable-log"" >&5
10f2d63a
VZ
3065 no_cache=0
3066 # Check whether --enable-log or --disable-log was given.
3067if test "${enable_log+set}" = set; then
3068 enableval="$enable_log"
703e0a69 3069
10f2d63a
VZ
3070 if test "$enableval" = yes; then
3071 ac_cv_use_log='wxUSE_LOG=yes'
3072 else
3073 ac_cv_use_log='wxUSE_LOG=no'
3074 fi
703e0a69 3075
10f2d63a 3076else
703e0a69 3077
10f2d63a
VZ
3078 LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
3079 if test "x$LINE" != x ; then
3080 eval "DEFAULT_$LINE"
3081 else
3082 no_cache=1
3083 fi
3084
3085 ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
703e0a69
VZ
3086
3087fi
10f2d63a
VZ
3088
3089
3090 eval "$ac_cv_use_log"
3091 if test "$no_cache" != 1; then
3092 echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
3093 fi
3094
3095 if test "$wxUSE_LOG" = yes; then
703e0a69 3096 echo "$ac_t""yes" 1>&6
10f2d63a 3097 else
703e0a69 3098 echo "$ac_t""no" 1>&6
10f2d63a 3099 fi
703e0a69 3100
10f2d63a 3101
703e0a69
VZ
3102 echo $ac_n "checking "for --enable-streams"""... $ac_c" 1>&6
3103echo "configure:3104: checking "for --enable-streams"" >&5
10f2d63a
VZ
3104 no_cache=0
3105 # Check whether --enable-streams or --disable-streams was given.
3106if test "${enable_streams+set}" = set; then
3107 enableval="$enable_streams"
703e0a69 3108
10f2d63a
VZ
3109 if test "$enableval" = yes; then
3110 ac_cv_use_streams='wxUSE_STREAMS=yes'
3111 else
3112 ac_cv_use_streams='wxUSE_STREAMS=no'
3113 fi
703e0a69 3114
10f2d63a 3115else
703e0a69 3116
10f2d63a
VZ
3117 LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
3118 if test "x$LINE" != x ; then
3119 eval "DEFAULT_$LINE"
3120 else
3121 no_cache=1
3122 fi
3123
3124 ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
703e0a69
VZ
3125
3126fi
10f2d63a
VZ
3127
3128
3129 eval "$ac_cv_use_streams"
3130 if test "$no_cache" != 1; then
3131 echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
3132 fi
3133
3134 if test "$wxUSE_STREAMS" = yes; then
703e0a69 3135 echo "$ac_t""yes" 1>&6
10f2d63a 3136 else
703e0a69 3137 echo "$ac_t""no" 1>&6
10f2d63a 3138 fi
703e0a69 3139
10f2d63a 3140
703e0a69
VZ
3141 echo $ac_n "checking "for --enable-file"""... $ac_c" 1>&6
3142echo "configure:3143: checking "for --enable-file"" >&5
10f2d63a
VZ
3143 no_cache=0
3144 # Check whether --enable-file or --disable-file was given.
3145if test "${enable_file+set}" = set; then
3146 enableval="$enable_file"
703e0a69 3147
10f2d63a
VZ
3148 if test "$enableval" = yes; then
3149 ac_cv_use_file='wxUSE_FILE=yes'
3150 else
3151 ac_cv_use_file='wxUSE_FILE=no'
3152 fi
703e0a69 3153
10f2d63a 3154else
703e0a69 3155
10f2d63a
VZ
3156 LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
3157 if test "x$LINE" != x ; then
3158 eval "DEFAULT_$LINE"
3159 else
3160 no_cache=1
3161 fi
3162
3163 ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
703e0a69
VZ
3164
3165fi
10f2d63a
VZ
3166
3167
3168 eval "$ac_cv_use_file"
3169 if test "$no_cache" != 1; then
3170 echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
3171 fi
3172
3173 if test "$wxUSE_FILE" = yes; then
703e0a69 3174 echo "$ac_t""yes" 1>&6
10f2d63a 3175 else
703e0a69 3176 echo "$ac_t""no" 1>&6
10f2d63a 3177 fi
703e0a69 3178
10f2d63a 3179
703e0a69
VZ
3180 echo $ac_n "checking "for --enable-textfile"""... $ac_c" 1>&6
3181echo "configure:3182: checking "for --enable-textfile"" >&5
10f2d63a
VZ
3182 no_cache=0
3183 # Check whether --enable-textfile or --disable-textfile was given.
3184if test "${enable_textfile+set}" = set; then
3185 enableval="$enable_textfile"
703e0a69 3186
10f2d63a
VZ
3187 if test "$enableval" = yes; then
3188 ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
3189 else
3190 ac_cv_use_textfile='wxUSE_TEXTFILE=no'
3191 fi
703e0a69 3192
10f2d63a 3193else
703e0a69 3194
10f2d63a
VZ
3195 LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
3196 if test "x$LINE" != x ; then
3197 eval "DEFAULT_$LINE"
3198 else
3199 no_cache=1
3200 fi
3201
3202 ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
703e0a69
VZ
3203
3204fi
10f2d63a
VZ
3205
3206
3207 eval "$ac_cv_use_textfile"
3208 if test "$no_cache" != 1; then
3209 echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
3210 fi
3211
3212 if test "$wxUSE_TEXTFILE" = yes; then
703e0a69 3213 echo "$ac_t""yes" 1>&6
10f2d63a 3214 else
703e0a69 3215 echo "$ac_t""no" 1>&6
10f2d63a 3216 fi
703e0a69 3217
10f2d63a 3218
703e0a69
VZ
3219 echo $ac_n "checking "for --enable-unicode"""... $ac_c" 1>&6
3220echo "configure:3221: checking "for --enable-unicode"" >&5
10f2d63a
VZ
3221 no_cache=0
3222 # Check whether --enable-unicode or --disable-unicode was given.
3223if test "${enable_unicode+set}" = set; then
3224 enableval="$enable_unicode"
703e0a69 3225
10f2d63a
VZ
3226 if test "$enableval" = yes; then
3227 ac_cv_use_unicode='wxUSE_UNICODE=yes'
3228 else
3229 ac_cv_use_unicode='wxUSE_UNICODE=no'
3230 fi
703e0a69 3231
10f2d63a 3232else
703e0a69 3233
10f2d63a
VZ
3234 LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
3235 if test "x$LINE" != x ; then
3236 eval "DEFAULT_$LINE"
3237 else
3238 no_cache=1
3239 fi
3240
3241 ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
703e0a69
VZ
3242
3243fi
10f2d63a
VZ
3244
3245
3246 eval "$ac_cv_use_unicode"
3247 if test "$no_cache" != 1; then
3248 echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
3249 fi
3250
3251 if test "$wxUSE_UNICODE" = yes; then
703e0a69 3252 echo "$ac_t""yes" 1>&6
10f2d63a 3253 else
703e0a69 3254 echo "$ac_t""no" 1>&6
10f2d63a 3255 fi
703e0a69 3256
10f2d63a 3257
703e0a69
VZ
3258 echo $ac_n "checking "for --enable-wcsrtombs"""... $ac_c" 1>&6
3259echo "configure:3260: checking "for --enable-wcsrtombs"" >&5
10f2d63a
VZ
3260 no_cache=0
3261 # Check whether --enable-wcsrtombs or --disable-wcsrtombs was given.
3262if test "${enable_wcsrtombs+set}" = set; then
3263 enableval="$enable_wcsrtombs"
703e0a69 3264
10f2d63a
VZ
3265 if test "$enableval" = yes; then
3266 ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS=yes'
3267 else
3268 ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS=no'
3269 fi
703e0a69 3270
10f2d63a 3271else
703e0a69 3272
10f2d63a
VZ
3273 LINE=`grep "wxUSE_WCSRTOMBS" ${wx_arg_cache_file}`
3274 if test "x$LINE" != x ; then
3275 eval "DEFAULT_$LINE"
3276 else
3277 no_cache=1
3278 fi
3279
3280 ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS='$DEFAULT_wxUSE_WCSRTOMBS
703e0a69
VZ
3281
3282fi
10f2d63a
VZ
3283
3284
3285 eval "$ac_cv_use_wcsrtombs"
3286 if test "$no_cache" != 1; then
3287 echo $ac_cv_use_wcsrtombs >> ${wx_arg_cache_file}.tmp
3288 fi
3289
3290 if test "$wxUSE_WCSRTOMBS" = yes; then
703e0a69 3291 echo "$ac_t""yes" 1>&6
10f2d63a 3292 else
703e0a69 3293 echo "$ac_t""no" 1>&6
10f2d63a 3294 fi
703e0a69 3295
10f2d63a 3296
703e0a69
VZ
3297 echo $ac_n "checking "for --enable-wxprintfv"""... $ac_c" 1>&6
3298echo "configure:3299: checking "for --enable-wxprintfv"" >&5
10f2d63a
VZ
3299 no_cache=0
3300 # Check whether --enable-wxprintfv or --disable-wxprintfv was given.
3301if test "${enable_wxprintfv+set}" = set; then
3302 enableval="$enable_wxprintfv"
703e0a69 3303
10f2d63a
VZ
3304 if test "$enableval" = yes; then
3305 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes'
3306 else
3307 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no'
3308 fi
703e0a69 3309
10f2d63a 3310else
703e0a69 3311
10f2d63a
VZ
3312 LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}`
3313 if test "x$LINE" != x ; then
3314 eval "DEFAULT_$LINE"
3315 else
3316 no_cache=1
3317 fi
3318
3319 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF
703e0a69
VZ
3320
3321fi
10f2d63a
VZ
3322
3323
3324 eval "$ac_cv_use_wxprintfv"
3325 if test "$no_cache" != 1; then
3326 echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp
3327 fi
3328
3329 if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then
703e0a69 3330 echo "$ac_t""yes" 1>&6
10f2d63a 3331 else
703e0a69 3332 echo "$ac_t""no" 1>&6
10f2d63a 3333 fi
703e0a69 3334
10f2d63a 3335
703e0a69
VZ
3336 echo $ac_n "checking "for --enable-std_iostreams"""... $ac_c" 1>&6
3337echo "configure:3338: checking "for --enable-std_iostreams"" >&5
10f2d63a
VZ
3338 no_cache=0
3339 # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
3340if test "${enable_std_iostreams+set}" = set; then
3341 enableval="$enable_std_iostreams"
703e0a69 3342
10f2d63a
VZ
3343 if test "$enableval" = yes; then
3344 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
3345 else
3346 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
3347 fi
703e0a69 3348
10f2d63a 3349else
703e0a69 3350
10f2d63a
VZ
3351 LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
3352 if test "x$LINE" != x ; then
3353 eval "DEFAULT_$LINE"
3354 else
3355 no_cache=1
3356 fi
3357
3358 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
703e0a69
VZ
3359
3360fi
10f2d63a
VZ
3361
3362
3363 eval "$ac_cv_use_std_iostreams"
3364 if test "$no_cache" != 1; then
3365 echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
3366 fi
3367
3368 if test "$wxUSE_STD_IOSTREAM" = yes; then
703e0a69 3369 echo "$ac_t""yes" 1>&6
10f2d63a 3370 else
703e0a69 3371 echo "$ac_t""no" 1>&6
10f2d63a 3372 fi
703e0a69 3373
10f2d63a 3374
703e0a69
VZ
3375 echo $ac_n "checking "for --enable-filesystem"""... $ac_c" 1>&6
3376echo "configure:3377: checking "for --enable-filesystem"" >&5
24528b0c
VS
3377 no_cache=0
3378 # Check whether --enable-filesystem or --disable-filesystem was given.
3379if test "${enable_filesystem+set}" = set; then
3380 enableval="$enable_filesystem"
703e0a69 3381
24528b0c
VS
3382 if test "$enableval" = yes; then
3383 ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
3384 else
3385 ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
3386 fi
703e0a69 3387
24528b0c 3388else
703e0a69 3389
24528b0c
VS
3390 LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}`
3391 if test "x$LINE" != x ; then
3392 eval "DEFAULT_$LINE"
3393 else
3394 no_cache=1
3395 fi
3396
3397 ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
703e0a69
VZ
3398
3399fi
24528b0c
VS
3400
3401
3402 eval "$ac_cv_use_filesystem"
3403 if test "$no_cache" != 1; then
3404 echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
3405 fi
3406
3407 if test "$wxUSE_FILESYSTEM" = yes; then
703e0a69 3408 echo "$ac_t""yes" 1>&6
24528b0c 3409 else
703e0a69 3410 echo "$ac_t""no" 1>&6
24528b0c 3411 fi
703e0a69 3412
24528b0c 3413
703e0a69
VZ
3414 echo $ac_n "checking "for --enable-fs_inet"""... $ac_c" 1>&6
3415echo "configure:3416: checking "for --enable-fs_inet"" >&5
10f2d63a
VZ
3416 no_cache=0
3417 # Check whether --enable-fs_inet or --disable-fs_inet was given.
3418if test "${enable_fs_inet+set}" = set; then
3419 enableval="$enable_fs_inet"
703e0a69 3420
10f2d63a
VZ
3421 if test "$enableval" = yes; then
3422 ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
3423 else
3424 ac_cv_use_fs_inet='wxUSE_FS_INET=no'
3425 fi
703e0a69 3426
10f2d63a 3427else
703e0a69 3428
10f2d63a
VZ
3429 LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
3430 if test "x$LINE" != x ; then
3431 eval "DEFAULT_$LINE"
3432 else
3433 no_cache=1
3434 fi
3435
3436 ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
703e0a69
VZ
3437
3438fi
10f2d63a
VZ
3439
3440
3441 eval "$ac_cv_use_fs_inet"
3442 if test "$no_cache" != 1; then
3443 echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
3444 fi
3445
3446 if test "$wxUSE_FS_INET" = yes; then
703e0a69 3447 echo "$ac_t""yes" 1>&6
10f2d63a 3448 else
703e0a69 3449 echo "$ac_t""no" 1>&6
10f2d63a 3450 fi
703e0a69 3451
10f2d63a 3452
703e0a69
VZ
3453 echo $ac_n "checking "for --enable-fs_zip"""... $ac_c" 1>&6
3454echo "configure:3455: checking "for --enable-fs_zip"" >&5
10f2d63a
VZ
3455 no_cache=0
3456 # Check whether --enable-fs_zip or --disable-fs_zip was given.
3457if test "${enable_fs_zip+set}" = set; then
3458 enableval="$enable_fs_zip"
703e0a69 3459
10f2d63a
VZ
3460 if test "$enableval" = yes; then
3461 ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
3462 else
3463 ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
3464 fi
703e0a69 3465
10f2d63a 3466else
703e0a69 3467
10f2d63a
VZ
3468 LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
3469 if test "x$LINE" != x ; then
3470 eval "DEFAULT_$LINE"
3471 else
3472 no_cache=1
3473 fi
3474
3475 ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
703e0a69
VZ
3476
3477fi
10f2d63a
VZ
3478
3479
3480 eval "$ac_cv_use_fs_zip"
3481 if test "$no_cache" != 1; then
3482 echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
3483 fi
3484
3485 if test "$wxUSE_FS_ZIP" = yes; then
703e0a69 3486 echo "$ac_t""yes" 1>&6
10f2d63a 3487 else
703e0a69 3488 echo "$ac_t""no" 1>&6
10f2d63a 3489 fi
703e0a69 3490
10f2d63a 3491
703e0a69
VZ
3492 echo $ac_n "checking "for --enable-zipstream"""... $ac_c" 1>&6
3493echo "configure:3494: checking "for --enable-zipstream"" >&5
10f2d63a
VZ
3494 no_cache=0
3495 # Check whether --enable-zipstream or --disable-zipstream was given.
3496if test "${enable_zipstream+set}" = set; then
3497 enableval="$enable_zipstream"
703e0a69 3498
10f2d63a
VZ
3499 if test "$enableval" = yes; then
3500 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
3501 else
3502 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
3503 fi
703e0a69 3504
10f2d63a 3505else
703e0a69 3506
10f2d63a
VZ
3507 LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
3508 if test "x$LINE" != x ; then
3509 eval "DEFAULT_$LINE"
3510 else
3511 no_cache=1
3512 fi
3513
3514 ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
703e0a69
VZ
3515
3516fi
10f2d63a
VZ
3517
3518
3519 eval "$ac_cv_use_zipstream"
3520 if test "$no_cache" != 1; then
3521 echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
3522 fi
3523
3524 if test "$wxUSE_ZIPSTREAM" = yes; then
703e0a69 3525 echo "$ac_t""yes" 1>&6
10f2d63a 3526 else
703e0a69 3527 echo "$ac_t""no" 1>&6
10f2d63a 3528 fi
703e0a69 3529
10f2d63a 3530
703e0a69
VZ
3531
3532 echo $ac_n "checking "for --enable-catch_segvs"""... $ac_c" 1>&6
3533echo "configure:3534: checking "for --enable-catch_segvs"" >&5
eb4efbdc
VZ
3534 no_cache=0
3535 # Check whether --enable-catch_segvs or --disable-catch_segvs was given.
3536if test "${enable_catch_segvs+set}" = set; then
3537 enableval="$enable_catch_segvs"
703e0a69 3538
eb4efbdc
VZ
3539 if test "$enableval" = yes; then
3540 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
3541 else
3542 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
3543 fi
703e0a69 3544
eb4efbdc 3545else
703e0a69 3546
eb4efbdc
VZ
3547 LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}`
3548 if test "x$LINE" != x ; then
3549 eval "DEFAULT_$LINE"
3550 else
3551 no_cache=1
3552 fi
3553
3554 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION
703e0a69
VZ
3555
3556fi
eb4efbdc
VZ
3557
3558
3559 eval "$ac_cv_use_catch_segvs"
3560 if test "$no_cache" != 1; then
3561 echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp
3562 fi
3563
3564 if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then
703e0a69 3565 echo "$ac_t""yes" 1>&6
eb4efbdc 3566 else
703e0a69 3567 echo "$ac_t""no" 1>&6
eb4efbdc 3568 fi
703e0a69 3569
eb4efbdc 3570
703e0a69
VZ
3571 echo $ac_n "checking "for --enable-snglinst"""... $ac_c" 1>&6
3572echo "configure:3573: checking "for --enable-snglinst"" >&5
4f3c5f06
VZ
3573 no_cache=0
3574 # Check whether --enable-snglinst or --disable-snglinst was given.
3575if test "${enable_snglinst+set}" = set; then
3576 enableval="$enable_snglinst"
703e0a69 3577
4f3c5f06
VZ
3578 if test "$enableval" = yes; then
3579 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
3580 else
3581 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
3582 fi
703e0a69 3583
4f3c5f06 3584else
703e0a69 3585
4f3c5f06
VZ
3586 LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}`
3587 if test "x$LINE" != x ; then
3588 eval "DEFAULT_$LINE"
3589 else
3590 no_cache=1
3591 fi
3592
3593 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER
703e0a69
VZ
3594
3595fi
4f3c5f06
VZ
3596
3597
3598 eval "$ac_cv_use_snglinst"
3599 if test "$no_cache" != 1; then
3600 echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp
3601 fi
3602
3603 if test "$wxUSE_SNGLINST_CHECKER" = yes; then
703e0a69 3604 echo "$ac_t""yes" 1>&6
4f3c5f06 3605 else
703e0a69 3606 echo "$ac_t""no" 1>&6
4f3c5f06 3607 fi
703e0a69
VZ
3608
3609
eb4efbdc 3610
703e0a69
VZ
3611
3612 echo $ac_n "checking "for --enable-threads"""... $ac_c" 1>&6
3613echo "configure:3614: checking "for --enable-threads"" >&5
10f2d63a
VZ
3614 no_cache=0
3615 # Check whether --enable-threads or --disable-threads was given.
3616if test "${enable_threads+set}" = set; then
3617 enableval="$enable_threads"
703e0a69 3618
10f2d63a
VZ
3619 if test "$enableval" = yes; then
3620 ac_cv_use_threads='wxUSE_THREADS=yes'
3621 else
3622 ac_cv_use_threads='wxUSE_THREADS=no'
3623 fi
703e0a69 3624
10f2d63a 3625else
703e0a69 3626
10f2d63a
VZ
3627 LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
3628 if test "x$LINE" != x ; then
3629 eval "DEFAULT_$LINE"
3630 else
3631 no_cache=1
3632 fi
3633
3634 ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
703e0a69
VZ
3635
3636fi
10f2d63a
VZ
3637
3638
3639 eval "$ac_cv_use_threads"
3640 if test "$no_cache" != 1; then
3641 echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
3642 fi
3643
3644 if test "$wxUSE_THREADS" = yes; then
703e0a69 3645 echo "$ac_t""yes" 1>&6
10f2d63a 3646 else
703e0a69 3647 echo "$ac_t""no" 1>&6
10f2d63a 3648 fi
703e0a69 3649
10f2d63a 3650
703e0a69
VZ
3651 echo $ac_n "checking "for --enable-serial"""... $ac_c" 1>&6
3652echo "configure:3653: checking "for --enable-serial"" >&5
10f2d63a
VZ
3653 no_cache=0
3654 # Check whether --enable-serial or --disable-serial was given.
3655if test "${enable_serial+set}" = set; then
3656 enableval="$enable_serial"
703e0a69 3657
10f2d63a
VZ
3658 if test "$enableval" = yes; then
3659 ac_cv_use_serial='wxUSE_SERIAL=yes'
3660 else
3661 ac_cv_use_serial='wxUSE_SERIAL=no'
3662 fi
703e0a69 3663
10f2d63a 3664else
703e0a69 3665
10f2d63a
VZ
3666 LINE=`grep "wxUSE_SERIAL" ${wx_arg_cache_file}`
3667 if test "x$LINE" != x ; then
3668 eval "DEFAULT_$LINE"
3669 else
3670 no_cache=1
3671 fi
3672
3673 ac_cv_use_serial='wxUSE_SERIAL='$DEFAULT_wxUSE_SERIAL
703e0a69
VZ
3674
3675fi
10f2d63a
VZ
3676
3677
3678 eval "$ac_cv_use_serial"
3679 if test "$no_cache" != 1; then
3680 echo $ac_cv_use_serial >> ${wx_arg_cache_file}.tmp
3681 fi
3682
3683 if test "$wxUSE_SERIAL" = yes; then
703e0a69 3684 echo "$ac_t""yes" 1>&6
10f2d63a 3685 else
703e0a69 3686 echo "$ac_t""no" 1>&6
10f2d63a 3687 fi
703e0a69 3688
10f2d63a 3689
b12915c1
VZ
3690if test "$wxUSE_GUI" = "yes"; then
3691
703e0a69
VZ
3692
3693
3694 echo $ac_n "checking "for --enable-docview"""... $ac_c" 1>&6
3695echo "configure:3696: checking "for --enable-docview"" >&5
10f2d63a
VZ
3696 no_cache=0
3697 # Check whether --enable-docview or --disable-docview was given.
3698if test "${enable_docview+set}" = set; then
3699 enableval="$enable_docview"
703e0a69 3700
10f2d63a
VZ
3701 if test "$enableval" = yes; then
3702 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
3703 else
3704 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
3705 fi
703e0a69 3706
10f2d63a 3707else
703e0a69 3708
10f2d63a
VZ
3709 LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
3710 if test "x$LINE" != x ; then
3711 eval "DEFAULT_$LINE"
3712 else
3713 no_cache=1
3714 fi
3715
3716 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
703e0a69
VZ
3717
3718fi
10f2d63a
VZ
3719
3720
3721 eval "$ac_cv_use_docview"
3722 if test "$no_cache" != 1; then
3723 echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
3724 fi
3725
3726 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
703e0a69 3727 echo "$ac_t""yes" 1>&6
10f2d63a 3728 else
703e0a69 3729 echo "$ac_t""no" 1>&6
10f2d63a 3730 fi
703e0a69 3731
10f2d63a 3732
703e0a69
VZ
3733 echo $ac_n "checking "for --enable-help"""... $ac_c" 1>&6
3734echo "configure:3735: checking "for --enable-help"" >&5
10f2d63a
VZ
3735 no_cache=0
3736 # Check whether --enable-help or --disable-help was given.
3737if test "${enable_help+set}" = set; then
3738 enableval="$enable_help"
703e0a69 3739
10f2d63a
VZ
3740 if test "$enableval" = yes; then
3741 ac_cv_use_help='wxUSE_HELP=yes'
3742 else
3743 ac_cv_use_help='wxUSE_HELP=no'
3744 fi
703e0a69 3745
10f2d63a 3746else
703e0a69 3747
10f2d63a
VZ
3748 LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
3749 if test "x$LINE" != x ; then
3750 eval "DEFAULT_$LINE"
3751 else
3752 no_cache=1
3753 fi
3754
3755 ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
703e0a69
VZ
3756
3757fi
10f2d63a
VZ
3758
3759
3760 eval "$ac_cv_use_help"
3761 if test "$no_cache" != 1; then
3762 echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
3763 fi
3764
3765 if test "$wxUSE_HELP" = yes; then
703e0a69 3766 echo "$ac_t""yes" 1>&6
10f2d63a 3767 else
703e0a69 3768 echo "$ac_t""no" 1>&6
10f2d63a 3769 fi
703e0a69 3770
10f2d63a 3771
703e0a69
VZ
3772 echo $ac_n "checking "for --enable-constraints"""... $ac_c" 1>&6
3773echo "configure:3774: checking "for --enable-constraints"" >&5
10f2d63a
VZ
3774 no_cache=0
3775 # Check whether --enable-constraints or --disable-constraints was given.
3776if test "${enable_constraints+set}" = set; then
3777 enableval="$enable_constraints"
703e0a69 3778
10f2d63a
VZ
3779 if test "$enableval" = yes; then
3780 ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
3781 else
3782 ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
3783 fi
703e0a69 3784
10f2d63a 3785else
703e0a69 3786
10f2d63a
VZ
3787 LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
3788 if test "x$LINE" != x ; then
3789 eval "DEFAULT_$LINE"
3790 else
3791 no_cache=1
3792 fi
3793
3794 ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
703e0a69
VZ
3795
3796fi
10f2d63a
VZ
3797
3798
3799 eval "$ac_cv_use_constraints"
3800 if test "$no_cache" != 1; then
3801 echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
3802 fi
3803
3804 if test "$wxUSE_CONSTRAINTS" = yes; then
703e0a69 3805 echo "$ac_t""yes" 1>&6
10f2d63a 3806 else
703e0a69 3807 echo "$ac_t""no" 1>&6
10f2d63a 3808 fi
703e0a69 3809
10f2d63a 3810
703e0a69
VZ
3811 echo $ac_n "checking "for --enable-printarch"""... $ac_c" 1>&6
3812echo "configure:3813: checking "for --enable-printarch"" >&5
10f2d63a
VZ
3813 no_cache=0
3814 # Check whether --enable-printarch or --disable-printarch was given.
3815if test "${enable_printarch+set}" = set; then
3816 enableval="$enable_printarch"
703e0a69 3817
10f2d63a
VZ
3818 if test "$enableval" = yes; then
3819 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
3820 else
3821 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
3822 fi
703e0a69 3823
10f2d63a 3824else
703e0a69 3825
10f2d63a
VZ
3826 LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
3827 if test "x$LINE" != x ; then
3828 eval "DEFAULT_$LINE"
3829 else
3830 no_cache=1
3831 fi
3832
3833 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
703e0a69
VZ
3834
3835fi
10f2d63a
VZ
3836
3837
3838 eval "$ac_cv_use_printarch"
3839 if test "$no_cache" != 1; then
3840 echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
3841 fi
3842
3843 if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
703e0a69 3844 echo "$ac_t""yes" 1>&6
10f2d63a 3845 else
703e0a69 3846 echo "$ac_t""no" 1>&6
10f2d63a 3847 fi
703e0a69 3848
10f2d63a 3849
703e0a69
VZ
3850 echo $ac_n "checking "for --enable-mdi"""... $ac_c" 1>&6
3851echo "configure:3852: checking "for --enable-mdi"" >&5
10f2d63a
VZ
3852 no_cache=0
3853 # Check whether --enable-mdi or --disable-mdi was given.
3854if test "${enable_mdi+set}" = set; then
3855 enableval="$enable_mdi"
703e0a69 3856
10f2d63a
VZ
3857 if test "$enableval" = yes; then
3858 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=yes'
3859 else
3860 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=no'
3861 fi
703e0a69 3862
10f2d63a 3863else
703e0a69 3864
10f2d63a
VZ
3865 LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
3866 if test "x$LINE" != x ; then
3867 eval "DEFAULT_$LINE"
3868 else
3869 no_cache=1
3870 fi
3871
3872 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
703e0a69
VZ
3873
3874fi
10f2d63a
VZ
3875
3876
3877 eval "$ac_cv_use_mdi"
3878 if test "$no_cache" != 1; then
3879 echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
3880 fi
3881
3882 if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
703e0a69 3883 echo "$ac_t""yes" 1>&6
10f2d63a 3884 else
703e0a69 3885 echo "$ac_t""no" 1>&6
10f2d63a 3886 fi
703e0a69
VZ
3887
3888
10f2d63a 3889
703e0a69
VZ
3890 echo $ac_n "checking "for --enable-postscript"""... $ac_c" 1>&6
3891echo "configure:3892: checking "for --enable-postscript"" >&5
10f2d63a
VZ
3892 no_cache=0
3893 # Check whether --enable-postscript or --disable-postscript was given.
3894if test "${enable_postscript+set}" = set; then
3895 enableval="$enable_postscript"
703e0a69 3896
10f2d63a
VZ
3897 if test "$enableval" = yes; then
3898 ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
3899 else
3900 ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
3901 fi
703e0a69 3902
10f2d63a 3903else
703e0a69 3904
10f2d63a
VZ
3905 LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
3906 if test "x$LINE" != x ; then
3907 eval "DEFAULT_$LINE"
3908 else
3909 no_cache=1
3910 fi
3911
3912 ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
703e0a69
VZ
3913
3914fi
10f2d63a
VZ
3915
3916
3917 eval "$ac_cv_use_postscript"
3918 if test "$no_cache" != 1; then
3919 echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
3920 fi
3921
3922 if test "$wxUSE_POSTSCRIPT" = yes; then
703e0a69 3923 echo "$ac_t""yes" 1>&6
10f2d63a 3924 else
703e0a69 3925 echo "$ac_t""no" 1>&6
10f2d63a 3926 fi
703e0a69
VZ
3927
3928
3929
10f2d63a 3930
703e0a69
VZ
3931 echo $ac_n "checking "for --enable-prologio"""... $ac_c" 1>&6
3932echo "configure:3933: checking "for --enable-prologio"" >&5
10f2d63a
VZ
3933 no_cache=0
3934 # Check whether --enable-prologio or --disable-prologio was given.
3935if test "${enable_prologio+set}" = set; then
3936 enableval="$enable_prologio"
703e0a69 3937
10f2d63a
VZ
3938 if test "$enableval" = yes; then
3939 ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
3940 else
3941 ac_cv_use_prologio='wxUSE_PROLOGIO=no'
3942 fi
703e0a69 3943
10f2d63a 3944else
703e0a69 3945
10f2d63a
VZ
3946 LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
3947 if test "x$LINE" != x ; then
3948 eval "DEFAULT_$LINE"
3949 else
3950 no_cache=1
3951 fi
3952
3953 ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
703e0a69
VZ
3954
3955fi
10f2d63a
VZ
3956
3957
3958 eval "$ac_cv_use_prologio"
3959 if test "$no_cache" != 1; then
3960 echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
3961 fi
3962
3963 if test "$wxUSE_PROLOGIO" = yes; then
703e0a69 3964 echo "$ac_t""yes" 1>&6
10f2d63a 3965 else
703e0a69 3966 echo "$ac_t""no" 1>&6
10f2d63a 3967 fi
703e0a69 3968
10f2d63a 3969
703e0a69
VZ
3970 echo $ac_n "checking "for --enable-resources"""... $ac_c" 1>&6
3971echo "configure:3972: checking "for --enable-resources"" >&5
10f2d63a
VZ
3972 no_cache=0
3973 # Check whether --enable-resources or --disable-resources was given.
3974if test "${enable_resources+set}" = set; then
3975 enableval="$enable_resources"
703e0a69 3976
10f2d63a
VZ
3977 if test "$enableval" = yes; then
3978 ac_cv_use_resources='wxUSE_RESOURCES=yes'
3979 else
3980 ac_cv_use_resources='wxUSE_RESOURCES=no'
3981 fi
703e0a69 3982
10f2d63a 3983else
703e0a69 3984
10f2d63a
VZ
3985 LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
3986 if test "x$LINE" != x ; then
3987 eval "DEFAULT_$LINE"
3988 else
3989 no_cache=1
3990 fi
3991
3992 ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
703e0a69
VZ
3993
3994fi
10f2d63a
VZ
3995
3996
3997 eval "$ac_cv_use_resources"
3998 if test "$no_cache" != 1; then
3999 echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
4000 fi
4001
4002 if test "$wxUSE_RESOURCES" = yes; then
703e0a69 4003 echo "$ac_t""yes" 1>&6
10f2d63a 4004 else
703e0a69 4005 echo "$ac_t""no" 1>&6
10f2d63a 4006 fi
703e0a69 4007
10f2d63a 4008
703e0a69
VZ
4009
4010 echo $ac_n "checking "for --enable-xresources"""... $ac_c" 1>&6
4011echo "configure:4012: checking "for --enable-xresources"" >&5
10f2d63a
VZ
4012 no_cache=0
4013 # Check whether --enable-xresources or --disable-xresources was given.
4014if test "${enable_xresources+set}" = set; then
4015 enableval="$enable_xresources"
703e0a69 4016
10f2d63a
VZ
4017 if test "$enableval" = yes; then
4018 ac_cv_use_xresources='wxUSE_X_RESOURCES=yes'
4019 else
4020 ac_cv_use_xresources='wxUSE_X_RESOURCES=no'
4021 fi
703e0a69 4022
10f2d63a 4023else
703e0a69 4024
10f2d63a
VZ
4025 LINE=`grep "wxUSE_X_RESOURCES" ${wx_arg_cache_file}`
4026 if test "x$LINE" != x ; then
4027 eval "DEFAULT_$LINE"
4028 else
4029 no_cache=1
4030 fi
4031
4032 ac_cv_use_xresources='wxUSE_X_RESOURCES='$DEFAULT_wxUSE_X_RESOURCES
703e0a69
VZ
4033
4034fi
10f2d63a
VZ
4035
4036
4037 eval "$ac_cv_use_xresources"
4038 if test "$no_cache" != 1; then
4039 echo $ac_cv_use_xresources >> ${wx_arg_cache_file}.tmp
4040 fi
4041
4042 if test "$wxUSE_X_RESOURCES" = yes; then
703e0a69 4043 echo "$ac_t""yes" 1>&6
10f2d63a 4044 else
703e0a69 4045 echo "$ac_t""no" 1>&6
10f2d63a 4046 fi
703e0a69
VZ
4047
4048
10f2d63a 4049
703e0a69
VZ
4050
4051 echo $ac_n "checking "for --enable-clipboard"""... $ac_c" 1>&6
4052echo "configure:4053: checking "for --enable-clipboard"" >&5
10f2d63a
VZ
4053 no_cache=0
4054 # Check whether --enable-clipboard or --disable-clipboard was given.
4055if test "${enable_clipboard+set}" = set; then
4056 enableval="$enable_clipboard"
703e0a69 4057
10f2d63a
VZ
4058 if test "$enableval" = yes; then
4059 ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
4060 else
4061 ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
4062 fi
703e0a69 4063
10f2d63a 4064else
703e0a69 4065
10f2d63a
VZ
4066 LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
4067 if test "x$LINE" != x ; then
4068 eval "DEFAULT_$LINE"
4069 else
4070 no_cache=1
4071 fi
4072
4073 ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
703e0a69
VZ
4074
4075fi
10f2d63a
VZ
4076
4077
4078 eval "$ac_cv_use_clipboard"
4079 if test "$no_cache" != 1; then
4080 echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
4081 fi
4082
4083 if test "$wxUSE_CLIPBOARD" = yes; then
703e0a69 4084 echo "$ac_t""yes" 1>&6
10f2d63a 4085 else
703e0a69 4086 echo "$ac_t""no" 1>&6
10f2d63a 4087 fi
703e0a69 4088
10f2d63a 4089
703e0a69
VZ
4090 echo $ac_n "checking "for --enable-dnd"""... $ac_c" 1>&6
4091echo "configure:4092: checking "for --enable-dnd"" >&5
10f2d63a
VZ
4092 no_cache=0
4093 # Check whether --enable-dnd or --disable-dnd was given.
4094if test "${enable_dnd+set}" = set; then
4095 enableval="$enable_dnd"
703e0a69 4096
10f2d63a
VZ
4097 if test "$enableval" = yes; then
4098 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
4099 else
4100 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
4101 fi
703e0a69 4102
10f2d63a 4103else
703e0a69 4104
10f2d63a
VZ
4105 LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
4106 if test "x$LINE" != x ; then
4107 eval "DEFAULT_$LINE"
4108 else
4109 no_cache=1
4110 fi
4111
4112 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
703e0a69
VZ
4113
4114fi
10f2d63a
VZ
4115
4116
4117 eval "$ac_cv_use_dnd"
4118 if test "$no_cache" != 1; then
4119 echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
4120 fi
4121
4122 if test "$wxUSE_DRAG_AND_DROP" = yes; then
703e0a69 4123 echo "$ac_t""yes" 1>&6
10f2d63a 4124 else
703e0a69 4125 echo "$ac_t""no" 1>&6
10f2d63a 4126 fi
703e0a69 4127
10f2d63a 4128
703e0a69
VZ
4129 echo $ac_n "checking "for --enable-metafile"""... $ac_c" 1>&6
4130echo "configure:4131: checking "for --enable-metafile"" >&5
b64f0a5f
RL
4131 no_cache=0
4132 # Check whether --enable-metafile or --disable-metafile was given.
4133if test "${enable_metafile+set}" = set; then
4134 enableval="$enable_metafile"
703e0a69 4135
b64f0a5f
RL
4136 if test "$enableval" = yes; then
4137 ac_cv_use_metafile='wxUSE_METAFILE=yes'
4138 else
4139 ac_cv_use_metafile='wxUSE_METAFILE=no'
4140 fi
703e0a69 4141
b64f0a5f 4142else
703e0a69 4143
b64f0a5f
RL
4144 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
4145 if test "x$LINE" != x ; then
4146 eval "DEFAULT_$LINE"
4147 else
4148 no_cache=1
4149 fi
4150
4151 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
703e0a69
VZ
4152
4153fi
b64f0a5f
RL
4154
4155
4156 eval "$ac_cv_use_metafile"
4157 if test "$no_cache" != 1; then
4158 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
4159 fi
4160
4161 if test "$wxUSE_METAFILE" = yes; then
703e0a69 4162 echo "$ac_t""yes" 1>&6
b64f0a5f 4163 else
703e0a69 4164 echo "$ac_t""no" 1>&6
b64f0a5f 4165 fi
703e0a69
VZ
4166
4167
10f2d63a 4168
703e0a69
VZ
4169 echo $ac_n "checking "for --enable-wxtree"""... $ac_c" 1>&6
4170echo "configure:4171: checking "for --enable-wxtree"" >&5
10f2d63a
VZ
4171 no_cache=0
4172 # Check whether --enable-wxtree or --disable-wxtree was given.
4173if test "${enable_wxtree+set}" = set; then
4174 enableval="$enable_wxtree"
703e0a69 4175
10f2d63a
VZ
4176 if test "$enableval" = yes; then
4177 ac_cv_use_wxtree='wxUSE_WXTREE=yes'
4178 else
4179 ac_cv_use_wxtree='wxUSE_WXTREE=no'
4180 fi
703e0a69 4181
10f2d63a 4182else
703e0a69 4183
10f2d63a
VZ
4184 LINE=`grep "wxUSE_WXTREE" ${wx_arg_cache_file}`
4185 if test "x$LINE" != x ; then
4186 eval "DEFAULT_$LINE"
4187 else
4188 no_cache=1
4189 fi
4190
4191 ac_cv_use_wxtree='wxUSE_WXTREE='$DEFAULT_wxUSE_WXTREE
703e0a69
VZ
4192
4193fi
10f2d63a
VZ
4194
4195
4196 eval "$ac_cv_use_wxtree"
4197 if test "$no_cache" != 1; then
4198 echo $ac_cv_use_wxtree >> ${wx_arg_cache_file}.tmp
4199 fi
4200
4201 if test "$wxUSE_WXTREE" = yes; then
703e0a69 4202 echo "$ac_t""yes" 1>&6
10f2d63a 4203 else
703e0a69 4204 echo "$ac_t""no" 1>&6
10f2d63a 4205 fi
703e0a69 4206
10f2d63a 4207
703e0a69
VZ
4208
4209
4210 echo $ac_n "checking "for --enable-controls"""... $ac_c" 1>&6
4211echo "configure:4212: checking "for --enable-controls"" >&5
10f2d63a
VZ
4212 no_cache=0
4213 # Check whether --enable-controls or --disable-controls was given.
4214if test "${enable_controls+set}" = set; then
4215 enableval="$enable_controls"
703e0a69 4216
10f2d63a
VZ
4217 if test "$enableval" = yes; then
4218 ac_cv_use_controls='wxUSE_CONTROLS=yes'
4219 else
4220 ac_cv_use_controls='wxUSE_CONTROLS=no'
4221 fi
703e0a69 4222
10f2d63a 4223else
703e0a69 4224
10f2d63a
VZ
4225 LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
4226 if test "x$LINE" != x ; then
4227 eval "DEFAULT_$LINE"
4228 else
4229 no_cache=1
4230 fi
4231
4232 ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
703e0a69
VZ
4233
4234fi
10f2d63a
VZ
4235
4236
4237 eval "$ac_cv_use_controls"
4238 if test "$no_cache" != 1; then
4239 echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
4240 fi
4241
4242 if test "$wxUSE_CONTROLS" = yes; then
703e0a69 4243 echo "$ac_t""yes" 1>&6
10f2d63a 4244 else
703e0a69 4245 echo "$ac_t""no" 1>&6
10f2d63a 4246 fi
703e0a69 4247
10f2d63a
VZ
4248
4249if test "$wxUSE_CONTROLS" = "yes"; then
4250 DEFAULT_wxUSE_ACCEL=yes
4251 DEFAULT_wxUSE_CARET=yes
4252 DEFAULT_wxUSE_COMBOBOX=yes
4253 DEFAULT_wxUSE_BMPBUTTON=yes
4254 DEFAULT_wxUSE_CHECKBOX=yes
4255 DEFAULT_wxUSE_CHECKLISTBOX=yes
4256 DEFAULT_wxUSE_CHOICE=yes
4257 DEFAULT_wxUSE_GAUGE=yes
4258 DEFAULT_wxUSE_GRID=yes
cc977e5f 4259 DEFAULT_wxUSE_NEW_GRID=yes
10f2d63a
VZ
4260 DEFAULT_wxUSE_IMAGLIST=yes
4261 DEFAULT_wxUSE_LISTBOX=yes
4262 DEFAULT_wxUSE_LISTCTRL=yes
4263 DEFAULT_wxUSE_NOTEBOOK=yes
4264 DEFAULT_wxUSE_RADIOBOX=yes
4265 DEFAULT_wxUSE_RADIOBTN=yes
4266 DEFAULT_wxUSE_SASH=yes
4267 DEFAULT_wxUSE_SCROLLBAR=yes
4268 DEFAULT_wxUSE_SLIDER=yes
4269 DEFAULT_wxUSE_SPINBTN=yes
56cfaa52 4270 DEFAULT_wxUSE_SPINCTRL=yes
10f2d63a
VZ
4271 DEFAULT_wxUSE_SPLITTER=yes
4272 DEFAULT_wxUSE_STATBMP=yes
4273 DEFAULT_wxUSE_STATBOX=yes
4274 DEFAULT_wxUSE_STATLINE=yes
4275 DEFAULT_wxUSE_STATUSBAR=yes
4276 DEFAULT_wxUSE_TAB_DIALOG=yes
1db8dc4a 4277 DEFAULT_wxUSE_TOGGLEBTN=yes
10f2d63a 4278 DEFAULT_wxUSE_TOOLBAR=yes
360d6699
VZ
4279 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
4280 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
10f2d63a
VZ
4281 DEFAULT_wxUSE_TOOLTIPS=yes
4282 DEFAULT_wxUSE_TREECTRL=yes
4283elif test "$wxUSE_CONTROLS" = "no"; then
4284 DEFAULT_wxUSE_ACCEL=no
4285 DEFAULT_wxUSE_CARET=no
4286 DEFAULT_wxUSE_COMBOBOX=no
4287 DEFAULT_wxUSE_BMPBUTTON=no
4288 DEFAULT_wxUSE_CHECKBOX=no
4289 DEFAULT_wxUSE_CHECKLISTBOX=no
4290 DEFAULT_wxUSE_CHOICE=no
4291 DEFAULT_wxUSE_GAUGE=no
4292 DEFAULT_wxUSE_GRID=no
4293 DEFAULT_wxUSE_NEW_GRID=no
4294 DEFAULT_wxUSE_IMAGLIST=no
4295 DEFAULT_wxUSE_LISTBOX=no
4296 DEFAULT_wxUSE_LISTCTRL=no
4297 DEFAULT_wxUSE_NOTEBOOK=no
4298 DEFAULT_wxUSE_RADIOBOX=no
4299 DEFAULT_wxUSE_RADIOBTN=no
4300 DEFAULT_wxUSE_SASH=no
4301 DEFAULT_wxUSE_SCROLLBAR=no
4302 DEFAULT_wxUSE_SLIDER=no
4303 DEFAULT_wxUSE_SPINBTN=no
56cfaa52 4304 DEFAULT_wxUSE_SPINCTRL=no
10f2d63a
VZ
4305 DEFAULT_wxUSE_SPLITTER=no
4306 DEFAULT_wxUSE_STATBMP=no
4307 DEFAULT_wxUSE_STATBOX=no
4308 DEFAULT_wxUSE_STATLINE=no
4309 DEFAULT_wxUSE_STATUSBAR=no
4310 DEFAULT_wxUSE_TAB_DIALOG=no
1db8dc4a 4311 DEFAULT_wxUSE_TOGGLEBTN=no
10f2d63a 4312 DEFAULT_wxUSE_TOOLBAR=no
360d6699
VZ
4313 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
4314 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
10f2d63a
VZ
4315 DEFAULT_wxUSE_TOOLTIPS=no
4316 DEFAULT_wxUSE_TREECTRL=no
4317fi
4318
703e0a69
VZ
4319
4320 echo $ac_n "checking "for --enable-accel"""... $ac_c" 1>&6
4321echo "configure:4322: checking "for --enable-accel"" >&5
10f2d63a
VZ
4322 no_cache=0
4323 # Check whether --enable-accel or --disable-accel was given.
4324if test "${enable_accel+set}" = set; then
4325 enableval="$enable_accel"
703e0a69 4326
10f2d63a
VZ
4327 if test "$enableval" = yes; then
4328 ac_cv_use_accel='wxUSE_ACCEL=yes'
4329 else
4330 ac_cv_use_accel='wxUSE_ACCEL=no'
4331 fi
703e0a69 4332
10f2d63a 4333else
703e0a69 4334
10f2d63a
VZ
4335 LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
4336 if test "x$LINE" != x ; then
4337 eval "DEFAULT_$LINE"
4338 else
4339 no_cache=1
4340 fi
4341
4342 ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
703e0a69
VZ
4343
4344fi
10f2d63a
VZ
4345
4346
4347 eval "$ac_cv_use_accel"
4348 if test "$no_cache" != 1; then
4349 echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
4350 fi
4351
4352 if test "$wxUSE_ACCEL" = yes; then
703e0a69 4353 echo "$ac_t""yes" 1>&6
10f2d63a 4354 else
703e0a69 4355 echo "$ac_t""no" 1>&6
10f2d63a 4356 fi
703e0a69 4357
10f2d63a 4358
703e0a69
VZ
4359 echo $ac_n "checking "for --enable-caret"""... $ac_c" 1>&6
4360echo "configure:4361: checking "for --enable-caret"" >&5
10f2d63a
VZ
4361 no_cache=0
4362 # Check whether --enable-caret or --disable-caret was given.
4363if test "${enable_caret+set}" = set; then
4364 enableval="$enable_caret"
703e0a69 4365
10f2d63a
VZ
4366 if test "$enableval" = yes; then
4367 ac_cv_use_caret='wxUSE_CARET=yes'
4368 else
4369 ac_cv_use_caret='wxUSE_CARET=no'
4370 fi
703e0a69 4371
10f2d63a 4372else
703e0a69 4373
10f2d63a
VZ
4374 LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
4375 if test "x$LINE" != x ; then
4376 eval "DEFAULT_$LINE"
4377 else
4378 no_cache=1
4379 fi
4380
4381 ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
703e0a69
VZ
4382
4383fi
10f2d63a
VZ
4384
4385
4386 eval "$ac_cv_use_caret"
4387 if test "$no_cache" != 1; then
4388 echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
4389 fi
4390
4391 if test "$wxUSE_CARET" = yes; then
703e0a69 4392 echo "$ac_t""yes" 1>&6
10f2d63a 4393 else
703e0a69 4394 echo "$ac_t""no" 1>&6
10f2d63a 4395 fi
703e0a69 4396
10f2d63a 4397
703e0a69
VZ
4398 echo $ac_n "checking "for --enable-bmpbutton"""... $ac_c" 1>&6
4399echo "configure:4400: checking "for --enable-bmpbutton"" >&5
10f2d63a
VZ
4400 no_cache=0
4401 # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
4402if test "${enable_bmpbutton+set}" = set; then
4403 enableval="$enable_bmpbutton"
703e0a69 4404
10f2d63a
VZ
4405 if test "$enableval" = yes; then
4406 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
4407 else
4408 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
4409 fi
703e0a69 4410
10f2d63a 4411else
703e0a69 4412
10f2d63a
VZ
4413 LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
4414 if test "x$LINE" != x ; then
4415 eval "DEFAULT_$LINE"
4416 else
4417 no_cache=1
4418 fi
4419
4420 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
703e0a69
VZ
4421
4422fi
10f2d63a
VZ
4423
4424
4425 eval "$ac_cv_use_bmpbutton"
4426 if test "$no_cache" != 1; then
4427 echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
4428 fi
4429
4430 if test "$wxUSE_BMPBUTTON" = yes; then
703e0a69 4431 echo "$ac_t""yes" 1>&6
10f2d63a 4432 else
703e0a69 4433 echo "$ac_t""no" 1>&6
10f2d63a 4434 fi
703e0a69 4435
10f2d63a 4436
703e0a69
VZ
4437 echo $ac_n "checking "for --enable-checkbox"""... $ac_c" 1>&6
4438echo "configure:4439: checking "for --enable-checkbox"" >&5
10f2d63a
VZ
4439 no_cache=0
4440 # Check whether --enable-checkbox or --disable-checkbox was given.
4441if test "${enable_checkbox+set}" = set; then
4442 enableval="$enable_checkbox"
703e0a69 4443
10f2d63a
VZ
4444 if test "$enableval" = yes; then
4445 ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
4446 else
4447 ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
4448 fi
703e0a69 4449
10f2d63a 4450else
703e0a69 4451
10f2d63a
VZ
4452 LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
4453 if test "x$LINE" != x ; then
4454 eval "DEFAULT_$LINE"
4455 else
4456 no_cache=1
4457 fi
4458
4459 ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
703e0a69
VZ
4460
4461fi
10f2d63a
VZ
4462
4463
4464 eval "$ac_cv_use_checkbox"
4465 if test "$no_cache" != 1; then
4466 echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
4467 fi
4468
4469 if test "$wxUSE_CHECKBOX" = yes; then
703e0a69 4470 echo "$ac_t""yes" 1>&6
10f2d63a 4471 else
703e0a69 4472 echo "$ac_t""no" 1>&6
10f2d63a 4473 fi
703e0a69 4474
10f2d63a 4475
703e0a69
VZ
4476 echo $ac_n "checking "for --enable-checklst"""... $ac_c" 1>&6
4477echo "configure:4478: checking "for --enable-checklst"" >&5
10f2d63a
VZ
4478 no_cache=0
4479 # Check whether --enable-checklst or --disable-checklst was given.
4480if test "${enable_checklst+set}" = set; then
4481 enableval="$enable_checklst"
703e0a69 4482
10f2d63a
VZ
4483 if test "$enableval" = yes; then
4484 ac_cv_use_checklst='wxUSE_CHECKLST=yes'
4485 else
4486 ac_cv_use_checklst='wxUSE_CHECKLST=no'
4487 fi
703e0a69 4488
10f2d63a 4489else
703e0a69 4490
10f2d63a
VZ
4491 LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
4492 if test "x$LINE" != x ; then
4493 eval "DEFAULT_$LINE"
4494 else
4495 no_cache=1
4496 fi
4497
4498 ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
703e0a69
VZ
4499
4500fi
10f2d63a
VZ
4501
4502
4503 eval "$ac_cv_use_checklst"
4504 if test "$no_cache" != 1; then
4505 echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
4506 fi
4507
4508 if test "$wxUSE_CHECKLST" = yes; then
703e0a69 4509 echo "$ac_t""yes" 1>&6
10f2d63a 4510 else
703e0a69 4511 echo "$ac_t""no" 1>&6
10f2d63a 4512 fi
703e0a69 4513
10f2d63a 4514
703e0a69
VZ
4515 echo $ac_n "checking "for --enable-choice"""... $ac_c" 1>&6
4516echo "configure:4517: checking "for --enable-choice"" >&5
10f2d63a
VZ
4517 no_cache=0
4518 # Check whether --enable-choice or --disable-choice was given.
4519if test "${enable_choice+set}" = set; then
4520 enableval="$enable_choice"
703e0a69 4521
10f2d63a
VZ
4522 if test "$enableval" = yes; then
4523 ac_cv_use_choice='wxUSE_CHOICE=yes'
4524 else
4525 ac_cv_use_choice='wxUSE_CHOICE=no'
4526 fi
703e0a69 4527
10f2d63a 4528else
703e0a69 4529
10f2d63a
VZ
4530 LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
4531 if test "x$LINE" != x ; then
4532 eval "DEFAULT_$LINE"
4533 else
4534 no_cache=1
4535 fi
4536
4537 ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
703e0a69
VZ
4538
4539fi
10f2d63a
VZ
4540
4541
4542 eval "$ac_cv_use_choice"
4543 if test "$no_cache" != 1; then
4544 echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
4545 fi
4546
4547 if test "$wxUSE_CHOICE" = yes; then
703e0a69 4548 echo "$ac_t""yes" 1>&6
10f2d63a 4549 else
703e0a69 4550 echo "$ac_t""no" 1>&6
10f2d63a 4551 fi
703e0a69 4552
10f2d63a 4553
703e0a69
VZ
4554 echo $ac_n "checking "for --enable-combobox"""... $ac_c" 1>&6
4555echo "configure:4556: checking "for --enable-combobox"" >&5
10f2d63a
VZ
4556 no_cache=0
4557 # Check whether --enable-combobox or --disable-combobox was given.
4558if test "${enable_combobox+set}" = set; then
4559 enableval="$enable_combobox"
703e0a69 4560
10f2d63a
VZ
4561 if test "$enableval" = yes; then
4562 ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
4563 else
4564 ac_cv_use_combobox='wxUSE_COMBOBOX=no'
4565 fi
703e0a69 4566
10f2d63a 4567else
703e0a69 4568
10f2d63a
VZ
4569 LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
4570 if test "x$LINE" != x ; then
4571 eval "DEFAULT_$LINE"
4572 else
4573 no_cache=1
4574 fi
4575
4576 ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
703e0a69
VZ
4577
4578fi
10f2d63a
VZ
4579
4580
4581 eval "$ac_cv_use_combobox"
4582 if test "$no_cache" != 1; then
4583 echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
4584 fi
4585
4586 if test "$wxUSE_COMBOBOX" = yes; then
703e0a69 4587 echo "$ac_t""yes" 1>&6
10f2d63a 4588 else
703e0a69 4589 echo "$ac_t""no" 1>&6
10f2d63a 4590 fi
703e0a69 4591
10f2d63a 4592
703e0a69
VZ
4593 echo $ac_n "checking "for --enable-gauge"""... $ac_c" 1>&6
4594echo "configure:4595: checking "for --enable-gauge"" >&5
10f2d63a
VZ
4595 no_cache=0
4596 # Check whether --enable-gauge or --disable-gauge was given.
4597if test "${enable_gauge+set}" = set; then
4598 enableval="$enable_gauge"
703e0a69 4599
10f2d63a
VZ
4600 if test "$enableval" = yes; then
4601 ac_cv_use_gauge='wxUSE_GAUGE=yes'
4602 else
4603 ac_cv_use_gauge='wxUSE_GAUGE=no'
4604 fi
703e0a69 4605
10f2d63a 4606else
703e0a69 4607
10f2d63a
VZ
4608 LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
4609 if test "x$LINE" != x ; then
4610 eval "DEFAULT_$LINE"
4611 else
4612 no_cache=1
4613 fi
4614
4615 ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
703e0a69
VZ
4616
4617fi
10f2d63a
VZ
4618
4619
4620 eval "$ac_cv_use_gauge"
4621 if test "$no_cache" != 1; then
4622 echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
4623 fi
4624
4625 if test "$wxUSE_GAUGE" = yes; then
703e0a69 4626 echo "$ac_t""yes" 1>&6
10f2d63a 4627 else
703e0a69 4628 echo "$ac_t""no" 1>&6
10f2d63a 4629 fi
703e0a69 4630
10f2d63a 4631
703e0a69
VZ
4632 echo $ac_n "checking "for --enable-grid"""... $ac_c" 1>&6
4633echo "configure:4634: checking "for --enable-grid"" >&5
10f2d63a
VZ
4634 no_cache=0
4635 # Check whether --enable-grid or --disable-grid was given.
4636if test "${enable_grid+set}" = set; then
4637 enableval="$enable_grid"
703e0a69 4638
10f2d63a
VZ
4639 if test "$enableval" = yes; then
4640 ac_cv_use_grid='wxUSE_GRID=yes'
4641 else
4642 ac_cv_use_grid='wxUSE_GRID=no'
4643 fi
703e0a69 4644
10f2d63a 4645else
703e0a69 4646
10f2d63a
VZ
4647 LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
4648 if test "x$LINE" != x ; then
4649 eval "DEFAULT_$LINE"
4650 else
4651 no_cache=1
4652 fi
4653
4654 ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
703e0a69
VZ
4655
4656fi
10f2d63a
VZ
4657
4658
4659 eval "$ac_cv_use_grid"
4660 if test "$no_cache" != 1; then
4661 echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
4662 fi
4663
4664 if test "$wxUSE_GRID" = yes; then
703e0a69 4665 echo "$ac_t""yes" 1>&6
10f2d63a 4666 else
703e0a69 4667 echo "$ac_t""no" 1>&6
10f2d63a 4668 fi
703e0a69 4669
10f2d63a 4670
703e0a69
VZ
4671 echo $ac_n "checking "for --enable-newgrid"""... $ac_c" 1>&6
4672echo "configure:4673: checking "for --enable-newgrid"" >&5
10f2d63a
VZ
4673 no_cache=0
4674 # Check whether --enable-newgrid or --disable-newgrid was given.
4675if test "${enable_newgrid+set}" = set; then
4676 enableval="$enable_newgrid"
703e0a69 4677
10f2d63a
VZ
4678 if test "$enableval" = yes; then
4679 ac_cv_use_newgrid='wxUSE_NEW_GRID=yes'
4680 else
4681 ac_cv_use_newgrid='wxUSE_NEW_GRID=no'
4682 fi
703e0a69 4683
10f2d63a 4684else
703e0a69 4685
10f2d63a
VZ
4686 LINE=`grep "wxUSE_NEW_GRID" ${wx_arg_cache_file}`
4687 if test "x$LINE" != x ; then
4688 eval "DEFAULT_$LINE"
4689 else
4690 no_cache=1
4691 fi
4692
4693 ac_cv_use_newgrid='wxUSE_NEW_GRID='$DEFAULT_wxUSE_NEW_GRID
703e0a69
VZ
4694
4695fi
10f2d63a
VZ
4696
4697
4698 eval "$ac_cv_use_newgrid"
4699 if test "$no_cache" != 1; then
4700 echo $ac_cv_use_newgrid >> ${wx_arg_cache_file}.tmp
4701 fi
4702
4703 if test "$wxUSE_NEW_GRID" = yes; then
703e0a69 4704 echo "$ac_t""yes" 1>&6
10f2d63a 4705 else
703e0a69 4706 echo "$ac_t""no" 1>&6
10f2d63a 4707 fi
703e0a69 4708
10f2d63a 4709
703e0a69
VZ
4710 echo $ac_n "checking "for --enable-imaglist"""... $ac_c" 1>&6
4711echo "configure:4712: checking "for --enable-imaglist"" >&5
10f2d63a
VZ
4712 no_cache=0
4713 # Check whether --enable-imaglist or --disable-imaglist was given.
4714if test "${enable_imaglist+set}" = set; then
4715 enableval="$enable_imaglist"
703e0a69 4716
10f2d63a
VZ
4717 if test "$enableval" = yes; then
4718 ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
4719 else
4720 ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
4721 fi
703e0a69 4722
10f2d63a 4723else
703e0a69 4724
10f2d63a
VZ
4725 LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
4726 if test "x$LINE" != x ; then
4727 eval "DEFAULT_$LINE"
4728 else
4729 no_cache=1
4730 fi
4731
4732 ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
703e0a69
VZ
4733
4734fi
10f2d63a
VZ
4735
4736
4737 eval "$ac_cv_use_imaglist"
4738 if test "$no_cache" != 1; then
4739 echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
4740 fi
4741
4742 if test "$wxUSE_IMAGLIST" = yes; then
703e0a69 4743 echo "$ac_t""yes" 1>&6
10f2d63a 4744 else
703e0a69 4745 echo "$ac_t""no" 1>&6
10f2d63a 4746 fi
703e0a69 4747
10f2d63a 4748
703e0a69
VZ
4749 echo $ac_n "checking "for --enable-listbox"""... $ac_c" 1>&6
4750echo "configure:4751: checking "for --enable-listbox"" >&5
10f2d63a
VZ
4751 no_cache=0
4752 # Check whether --enable-listbox or --disable-listbox was given.
4753if test "${enable_listbox+set}" = set; then
4754 enableval="$enable_listbox"
703e0a69 4755
10f2d63a
VZ
4756 if test "$enableval" = yes; then
4757 ac_cv_use_listbox='wxUSE_LISTBOX=yes'
4758 else
4759 ac_cv_use_listbox='wxUSE_LISTBOX=no'
4760 fi
703e0a69 4761
10f2d63a 4762else
703e0a69 4763
10f2d63a
VZ
4764 LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
4765 if test "x$LINE" != x ; then
4766 eval "DEFAULT_$LINE"
4767 else
4768 no_cache=1
4769 fi
4770
4771 ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
703e0a69
VZ
4772
4773fi
10f2d63a
VZ
4774
4775
4776 eval "$ac_cv_use_listbox"
4777 if test "$no_cache" != 1; then
4778 echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
4779 fi
4780
4781 if test "$wxUSE_LISTBOX" = yes; then
703e0a69 4782 echo "$ac_t""yes" 1>&6
10f2d63a 4783 else
703e0a69 4784 echo "$ac_t""no" 1>&6
10f2d63a 4785 fi
703e0a69 4786
10f2d63a 4787
703e0a69
VZ
4788 echo $ac_n "checking "for --enable-listctrl"""... $ac_c" 1>&6
4789echo "configure:4790: checking "for --enable-listctrl"" >&5
10f2d63a
VZ
4790 no_cache=0
4791 # Check whether --enable-listctrl or --disable-listctrl was given.
4792if test "${enable_listctrl+set}" = set; then
4793 enableval="$enable_listctrl"
703e0a69 4794
10f2d63a
VZ
4795 if test "$enableval" = yes; then
4796 ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
4797 else
4798 ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
4799 fi
703e0a69 4800
10f2d63a 4801else
703e0a69 4802
10f2d63a
VZ
4803 LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
4804 if test "x$LINE" != x ; then
4805 eval "DEFAULT_$LINE"
4806 else
4807 no_cache=1
4808 fi
4809
4810 ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
703e0a69
VZ
4811
4812fi
10f2d63a
VZ
4813
4814
4815 eval "$ac_cv_use_listctrl"
4816 if test "$no_cache" != 1; then
4817 echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
4818 fi
4819
4820 if test "$wxUSE_LISTCTRL" = yes; then
703e0a69 4821 echo "$ac_t""yes" 1>&6
10f2d63a 4822 else
703e0a69 4823 echo "$ac_t""no" 1>&6
10f2d63a 4824 fi
703e0a69 4825
10f2d63a 4826
703e0a69
VZ
4827 echo $ac_n "checking "for --enable-notebook"""... $ac_c" 1>&6
4828echo "configure:4829: checking "for --enable-notebook"" >&5
10f2d63a
VZ
4829 no_cache=0
4830 # Check whether --enable-notebook or --disable-notebook was given.
4831if test "${enable_notebook+set}" = set; then
4832 enableval="$enable_notebook"
703e0a69 4833
10f2d63a
VZ
4834 if test "$enableval" = yes; then
4835 ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
4836 else
4837 ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
4838 fi
703e0a69 4839
10f2d63a 4840else
703e0a69 4841
10f2d63a
VZ
4842 LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
4843 if test "x$LINE" != x ; then
4844 eval "DEFAULT_$LINE"
4845 else
4846 no_cache=1
4847 fi
4848
4849 ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
703e0a69
VZ
4850
4851fi
10f2d63a
VZ
4852
4853
4854 eval "$ac_cv_use_notebook"
4855 if test "$no_cache" != 1; then
4856 echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
4857 fi
4858
4859 if test "$wxUSE_NOTEBOOK" = yes; then
703e0a69 4860 echo "$ac_t""yes" 1>&6
10f2d63a 4861 else
703e0a69 4862 echo "$ac_t""no" 1>&6
10f2d63a 4863 fi
703e0a69 4864
10f2d63a 4865
703e0a69
VZ
4866 echo $ac_n "checking "for --enable-radiobox"""... $ac_c" 1>&6
4867echo "configure:4868: checking "for --enable-radiobox"" >&5
10f2d63a
VZ
4868 no_cache=0
4869 # Check whether --enable-radiobox or --disable-radiobox was given.
4870if test "${enable_radiobox+set}" = set; then
4871 enableval="$enable_radiobox"
703e0a69 4872
10f2d63a
VZ
4873 if test "$enableval" = yes; then
4874 ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
4875 else
4876 ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
4877 fi
703e0a69 4878
10f2d63a 4879else
703e0a69 4880
10f2d63a
VZ
4881 LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
4882 if test "x$LINE" != x ; then
4883 eval "DEFAULT_$LINE"
4884 else
4885 no_cache=1
4886 fi
4887
4888 ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
703e0a69
VZ
4889
4890fi
10f2d63a
VZ
4891
4892
4893 eval "$ac_cv_use_radiobox"
4894 if test "$no_cache" != 1; then
4895 echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
4896 fi
4897
4898 if test "$wxUSE_RADIOBOX" = yes; then
703e0a69 4899 echo "$ac_t""yes" 1>&6
10f2d63a 4900 else
703e0a69 4901 echo "$ac_t""no" 1>&6
10f2d63a 4902 fi
703e0a69 4903
10f2d63a 4904
703e0a69
VZ
4905 echo $ac_n "checking "for --enable-radiobtn"""... $ac_c" 1>&6
4906echo "configure:4907: checking "for --enable-radiobtn"" >&5
10f2d63a
VZ
4907 no_cache=0
4908 # Check whether --enable-radiobtn or --disable-radiobtn was given.
4909if test "${enable_radiobtn+set}" = set; then
4910 enableval="$enable_radiobtn"
703e0a69 4911
10f2d63a
VZ
4912 if test "$enableval" = yes; then
4913 ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
4914 else
4915 ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
4916 fi
703e0a69 4917
10f2d63a 4918else
703e0a69 4919
10f2d63a
VZ
4920 LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
4921 if test "x$LINE" != x ; then
4922 eval "DEFAULT_$LINE"
4923 else
4924 no_cache=1
4925 fi
4926
4927 ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
703e0a69
VZ
4928
4929fi
10f2d63a
VZ
4930
4931
4932 eval "$ac_cv_use_radiobtn"
4933 if test "$no_cache" != 1; then
4934 echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
4935 fi
4936
4937 if test "$wxUSE_RADIOBTN" = yes; then
703e0a69 4938 echo "$ac_t""yes" 1>&6
10f2d63a 4939 else
703e0a69 4940 echo "$ac_t""no" 1>&6
10f2d63a 4941 fi
703e0a69 4942
10f2d63a 4943
703e0a69
VZ
4944 echo $ac_n "checking "for --enable-sash"""... $ac_c" 1>&6
4945echo "configure:4946: checking "for --enable-sash"" >&5
10f2d63a
VZ
4946 no_cache=0
4947 # Check whether --enable-sash or --disable-sash was given.
4948if test "${enable_sash+set}" = set; then
4949 enableval="$enable_sash"
703e0a69 4950
10f2d63a
VZ
4951 if test "$enableval" = yes; then
4952 ac_cv_use_sash='wxUSE_SASH=yes'
4953 else
4954 ac_cv_use_sash='wxUSE_SASH=no'
4955 fi
703e0a69 4956
10f2d63a 4957else
703e0a69 4958
10f2d63a
VZ
4959 LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
4960 if test "x$LINE" != x ; then
4961 eval "DEFAULT_$LINE"
4962 else
4963 no_cache=1
4964 fi
4965
4966 ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
703e0a69
VZ
4967
4968fi
10f2d63a
VZ
4969
4970
4971 eval "$ac_cv_use_sash"
4972 if test "$no_cache" != 1; then
4973 echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
4974 fi
4975
4976 if test "$wxUSE_SASH" = yes; then
703e0a69 4977 echo "$ac_t""yes" 1>&6
10f2d63a 4978 else
703e0a69 4979 echo "$ac_t""no" 1>&6
10f2d63a 4980 fi
703e0a69 4981
10f2d63a 4982
703e0a69
VZ
4983 echo $ac_n "checking "for --enable-scrollbar"""... $ac_c" 1>&6
4984echo "configure:4985: checking "for --enable-scrollbar"" >&5
10f2d63a
VZ
4985 no_cache=0
4986 # Check whether --enable-scrollbar or --disable-scrollbar was given.
4987if test "${enable_scrollbar+set}" = set; then
4988 enableval="$enable_scrollbar"
703e0a69 4989
10f2d63a
VZ
4990 if test "$enableval" = yes; then
4991 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
4992 else
4993 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
4994 fi
703e0a69 4995
10f2d63a 4996else
703e0a69 4997
10f2d63a
VZ
4998 LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
4999 if test "x$LINE" != x ; then
5000 eval "DEFAULT_$LINE"
5001 else
5002 no_cache=1
5003 fi
5004
5005 ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
703e0a69
VZ
5006
5007fi
10f2d63a
VZ
5008
5009
5010 eval "$ac_cv_use_scrollbar"
5011 if test "$no_cache" != 1; then
5012 echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
5013 fi
5014
5015 if test "$wxUSE_SCROLLBAR" = yes; then
703e0a69 5016 echo "$ac_t""yes" 1>&6
10f2d63a 5017 else
703e0a69 5018 echo "$ac_t""no" 1>&6
10f2d63a 5019 fi
703e0a69 5020
10f2d63a 5021
703e0a69
VZ
5022 echo $ac_n "checking "for --enable-slider"""... $ac_c" 1>&6
5023echo "configure:5024: checking "for --enable-slider"" >&5
10f2d63a
VZ
5024 no_cache=0
5025 # Check whether --enable-slider or --disable-slider was given.
5026if test "${enable_slider+set}" = set; then
5027 enableval="$enable_slider"
703e0a69 5028
10f2d63a
VZ
5029 if test "$enableval" = yes; then
5030 ac_cv_use_slider='wxUSE_SLIDER=yes'
5031 else
5032 ac_cv_use_slider='wxUSE_SLIDER=no'
5033 fi
703e0a69 5034
10f2d63a 5035else
703e0a69 5036
10f2d63a
VZ
5037 LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
5038 if test "x$LINE" != x ; then
5039 eval "DEFAULT_$LINE"
5040 else
5041 no_cache=1
5042 fi
5043
5044 ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
703e0a69
VZ
5045
5046fi
10f2d63a
VZ
5047
5048
5049 eval "$ac_cv_use_slider"
5050 if test "$no_cache" != 1; then
5051 echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
5052 fi
5053
5054 if test "$wxUSE_SLIDER" = yes; then
703e0a69 5055 echo "$ac_t""yes" 1>&6
10f2d63a 5056 else
703e0a69 5057 echo "$ac_t""no" 1>&6
10f2d63a 5058 fi
703e0a69 5059
10f2d63a 5060
703e0a69
VZ
5061 echo $ac_n "checking "for --enable-spinbtn"""... $ac_c" 1>&6
5062echo "configure:5063: checking "for --enable-spinbtn"" >&5
10f2d63a
VZ
5063 no_cache=0
5064 # Check whether --enable-spinbtn or --disable-spinbtn was given.
5065if test "${enable_spinbtn+set}" = set; then
5066 enableval="$enable_spinbtn"
703e0a69 5067
10f2d63a
VZ
5068 if test "$enableval" = yes; then
5069 ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
5070 else
5071 ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
5072 fi
703e0a69 5073
10f2d63a 5074else
703e0a69 5075
10f2d63a
VZ
5076 LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
5077 if test "x$LINE" != x ; then
5078 eval "DEFAULT_$LINE"
5079 else
5080 no_cache=1
5081 fi
5082
5083 ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
703e0a69
VZ
5084
5085fi
10f2d63a
VZ
5086
5087
5088 eval "$ac_cv_use_spinbtn"
5089 if test "$no_cache" != 1; then
5090 echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
5091 fi
5092
5093 if test "$wxUSE_SPINBTN" = yes; then
703e0a69 5094 echo "$ac_t""yes" 1>&6
10f2d63a 5095 else
703e0a69 5096 echo "$ac_t""no" 1>&6
10f2d63a 5097 fi
703e0a69 5098
10f2d63a 5099
703e0a69
VZ
5100 echo $ac_n "checking "for --enable-spinctrl"""... $ac_c" 1>&6
5101echo "configure:5102: checking "for --enable-spinctrl"" >&5
56cfaa52
RR
5102 no_cache=0
5103 # Check whether --enable-spinctrl or --disable-spinctrl was given.
5104if test "${enable_spinctrl+set}" = set; then
5105 enableval="$enable_spinctrl"
703e0a69 5106
56cfaa52
RR
5107 if test "$enableval" = yes; then
5108 ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
5109 else
5110 ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
5111 fi
703e0a69 5112
56cfaa52 5113else
703e0a69 5114
56cfaa52
RR
5115 LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
5116 if test "x$LINE" != x ; then
5117 eval "DEFAULT_$LINE"
5118 else
5119 no_cache=1
5120 fi
5121
5122 ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
703e0a69
VZ
5123
5124fi
56cfaa52
RR
5125
5126
5127 eval "$ac_cv_use_spinctrl"
5128 if test "$no_cache" != 1; then
5129 echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
5130 fi
5131
5132 if test "$wxUSE_SPINCTRL" = yes; then
703e0a69 5133 echo "$ac_t""yes" 1>&6
56cfaa52 5134 else
703e0a69 5135 echo "$ac_t""no" 1>&6
56cfaa52 5136 fi
703e0a69 5137
56cfaa52 5138
703e0a69
VZ
5139 echo $ac_n "checking "for --enable-splitter"""... $ac_c" 1>&6
5140echo "configure:5141: checking "for --enable-splitter"" >&5
10f2d63a
VZ
5141 no_cache=0
5142 # Check whether --enable-splitter or --disable-splitter was given.
5143if test "${enable_splitter+set}" = set; then
5144 enableval="$enable_splitter"
703e0a69 5145
10f2d63a
VZ
5146 if test "$enableval" = yes; then
5147 ac_cv_use_splitter='wxUSE_SPLITTER=yes'
5148 else
5149 ac_cv_use_splitter='wxUSE_SPLITTER=no'
5150 fi
703e0a69 5151
10f2d63a 5152else
703e0a69 5153
10f2d63a
VZ
5154 LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
5155 if test "x$LINE" != x ; then
5156 eval "DEFAULT_$LINE"
5157 else
5158 no_cache=1
5159 fi
5160
5161 ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
703e0a69
VZ
5162
5163fi
10f2d63a
VZ
5164
5165
5166 eval "$ac_cv_use_splitter"
5167 if test "$no_cache" != 1; then
5168 echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
5169 fi
5170
5171 if test "$wxUSE_SPLITTER" = yes; then
703e0a69 5172 echo "$ac_t""yes" 1>&6
10f2d63a 5173 else
703e0a69 5174 echo "$ac_t""no" 1>&6
10f2d63a 5175 fi
703e0a69 5176
10f2d63a 5177
703e0a69
VZ
5178 echo $ac_n "checking "for --enable-statbmp"""... $ac_c" 1>&6
5179echo "configure:5180: checking "for --enable-statbmp"" >&5
10f2d63a
VZ
5180 no_cache=0
5181 # Check whether --enable-statbmp or --disable-statbmp was given.
5182if test "${enable_statbmp+set}" = set; then
5183 enableval="$enable_statbmp"
703e0a69 5184
10f2d63a
VZ
5185 if test "$enableval" = yes; then
5186 ac_cv_use_statbmp='wxUSE_STATBMP=yes'
5187 else
5188 ac_cv_use_statbmp='wxUSE_STATBMP=no'
5189 fi
703e0a69 5190
10f2d63a 5191else
703e0a69 5192
10f2d63a
VZ
5193 LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
5194 if test "x$LINE" != x ; then
5195 eval "DEFAULT_$LINE"
5196 else
5197 no_cache=1
5198 fi
5199
5200 ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
703e0a69
VZ
5201
5202fi
10f2d63a
VZ
5203
5204
5205 eval "$ac_cv_use_statbmp"
5206 if test "$no_cache" != 1; then
5207 echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
5208 fi
5209
5210 if test "$wxUSE_STATBMP" = yes; then
703e0a69 5211 echo "$ac_t""yes" 1>&6
10f2d63a 5212 else
703e0a69 5213 echo "$ac_t""no" 1>&6
10f2d63a 5214 fi
703e0a69 5215
10f2d63a 5216
703e0a69
VZ
5217 echo $ac_n "checking "for --enable-statbox"""... $ac_c" 1>&6
5218echo "configure:5219: checking "for --enable-statbox"" >&5
10f2d63a
VZ
5219 no_cache=0
5220 # Check whether --enable-statbox or --disable-statbox was given.
5221if test "${enable_statbox+set}" = set; then
5222 enableval="$enable_statbox"
703e0a69 5223
10f2d63a
VZ
5224 if test "$enableval" = yes; then
5225 ac_cv_use_statbox='wxUSE_STATBOX=yes'
5226 else
5227 ac_cv_use_statbox='wxUSE_STATBOX=no'
5228 fi
703e0a69 5229
10f2d63a 5230else
703e0a69 5231
10f2d63a
VZ
5232 LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
5233 if test "x$LINE" != x ; then
5234 eval "DEFAULT_$LINE"
5235 else
5236 no_cache=1
5237 fi
5238
5239 ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
703e0a69
VZ
5240
5241fi
10f2d63a
VZ
5242
5243
5244 eval "$ac_cv_use_statbox"
5245 if test "$no_cache" != 1; then
5246 echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
5247 fi
5248
5249 if test "$wxUSE_STATBOX" = yes; then
703e0a69 5250 echo "$ac_t""yes" 1>&6
10f2d63a 5251 else
703e0a69 5252 echo "$ac_t""no" 1>&6
10f2d63a 5253 fi
703e0a69 5254
10f2d63a 5255
703e0a69
VZ
5256 echo $ac_n "checking "for --enable-statline"""... $ac_c" 1>&6
5257echo "configure:5258: checking "for --enable-statline"" >&5
10f2d63a
VZ
5258 no_cache=0
5259 # Check whether --enable-statline or --disable-statline was given.
5260if test "${enable_statline+set}" = set; then
5261 enableval="$enable_statline"
703e0a69 5262
10f2d63a
VZ
5263 if test "$enableval" = yes; then
5264 ac_cv_use_statline='wxUSE_STATLINE=yes'
5265 else
5266 ac_cv_use_statline='wxUSE_STATLINE=no'
5267 fi
703e0a69 5268
10f2d63a 5269else
703e0a69 5270
10f2d63a
VZ
5271 LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
5272 if test "x$LINE" != x ; then
5273 eval "DEFAULT_$LINE"
5274 else
5275 no_cache=1
5276 fi
5277
5278 ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
703e0a69
VZ
5279
5280fi
10f2d63a
VZ
5281
5282
5283 eval "$ac_cv_use_statline"
5284 if test "$no_cache" != 1; then
5285 echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
5286 fi
5287
5288 if test "$wxUSE_STATLINE" = yes; then
703e0a69 5289 echo "$ac_t""yes" 1>&6
10f2d63a 5290 else
703e0a69 5291 echo "$ac_t""no" 1>&6
10f2d63a 5292 fi
703e0a69 5293
10f2d63a 5294
703e0a69
VZ
5295 echo $ac_n "checking "for --enable-statusbar"""... $ac_c" 1>&6
5296echo "configure:5297: checking "for --enable-statusbar"" >&5
10f2d63a
VZ
5297 no_cache=0
5298 # Check whether --enable-statusbar or --disable-statusbar was given.
5299if test "${enable_statusbar+set}" = set; then
5300 enableval="$enable_statusbar"
703e0a69 5301
10f2d63a
VZ
5302 if test "$enableval" = yes; then
5303 ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
5304 else
5305 ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
5306 fi
703e0a69 5307
10f2d63a 5308else
703e0a69 5309
10f2d63a
VZ
5310 LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
5311 if test "x$LINE" != x ; then
5312 eval "DEFAULT_$LINE"
5313 else
5314 no_cache=1
5315 fi
5316
5317 ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
703e0a69
VZ
5318
5319fi
10f2d63a
VZ
5320
5321
5322 eval "$ac_cv_use_statusbar"
5323 if test "$no_cache" != 1; then
5324 echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
5325 fi
5326
5327 if test "$wxUSE_STATUSBAR" = yes; then
703e0a69 5328 echo "$ac_t""yes" 1>&6
10f2d63a 5329 else
703e0a69 5330 echo "$ac_t""no" 1>&6
10f2d63a 5331 fi
703e0a69 5332
10f2d63a 5333
703e0a69
VZ
5334 echo $ac_n "checking "for --enable-tabdialog"""... $ac_c" 1>&6
5335echo "configure:5336: checking "for --enable-tabdialog"" >&5
10f2d63a
VZ
5336 no_cache=0
5337 # Check whether --enable-tabdialog or --disable-tabdialog was given.
5338if test "${enable_tabdialog+set}" = set; then
5339 enableval="$enable_tabdialog"
703e0a69 5340
10f2d63a
VZ
5341 if test "$enableval" = yes; then
5342 ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes'
5343 else
5344 ac_cv_use_tabdialog='wxUSE_TABDIALOG=no'
5345 fi
703e0a69 5346
10f2d63a 5347else
703e0a69 5348
10f2d63a
VZ
5349 LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}`
5350 if test "x$LINE" != x ; then
5351 eval "DEFAULT_$LINE"
5352 else
5353 no_cache=1
5354 fi
5355
5356 ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG
703e0a69
VZ
5357
5358fi
10f2d63a
VZ
5359
5360
5361 eval "$ac_cv_use_tabdialog"
5362 if test "$no_cache" != 1; then
5363 echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
5364 fi
5365
5366 if test "$wxUSE_TABDIALOG" = yes; then
703e0a69 5367 echo "$ac_t""yes" 1>&6
10f2d63a 5368 else
703e0a69 5369 echo "$ac_t""no" 1>&6
10f2d63a 5370 fi
703e0a69 5371
10f2d63a 5372
703e0a69
VZ
5373 echo $ac_n "checking "for --enable-togglebtn"""... $ac_c" 1>&6
5374echo "configure:5375: checking "for --enable-togglebtn"" >&5
1db8dc4a
VZ
5375 no_cache=0
5376 # Check whether --enable-togglebtn or --disable-togglebtn was given.
5377if test "${enable_togglebtn+set}" = set; then
5378 enableval="$enable_togglebtn"
703e0a69 5379
1db8dc4a
VZ
5380 if test "$enableval" = yes; then
5381 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
5382 else
5383 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
5384 fi
703e0a69 5385
1db8dc4a 5386else
703e0a69 5387
1db8dc4a
VZ
5388 LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}`
5389 if test "x$LINE" != x ; then
5390 eval "DEFAULT_$LINE"
5391 else
5392 no_cache=1
5393 fi
5394
5395 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN
703e0a69
VZ
5396
5397fi
1db8dc4a
VZ
5398
5399
5400 eval "$ac_cv_use_togglebtn"
5401 if test "$no_cache" != 1; then
5402 echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp
5403 fi
5404
5405 if test "$wxUSE_TOGGLEBTN" = yes; then
703e0a69 5406 echo "$ac_t""yes" 1>&6
1db8dc4a 5407 else
703e0a69 5408 echo "$ac_t""no" 1>&6
1db8dc4a 5409 fi
703e0a69 5410
1db8dc4a 5411
703e0a69
VZ
5412 echo $ac_n "checking "for --enable-toolbar"""... $ac_c" 1>&6
5413echo "configure:5414: checking "for --enable-toolbar"" >&5
10f2d63a
VZ
5414 no_cache=0
5415 # Check whether --enable-toolbar or --disable-toolbar was given.
5416if test "${enable_toolbar+set}" = set; then
5417 enableval="$enable_toolbar"
703e0a69 5418
10f2d63a
VZ
5419 if test "$enableval" = yes; then
5420 ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
5421 else
5422 ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
5423 fi
703e0a69 5424
10f2d63a 5425else
703e0a69 5426
10f2d63a
VZ
5427 LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
5428 if test "x$LINE" != x ; then
5429 eval "DEFAULT_$LINE"
5430 else
5431 no_cache=1
5432 fi
5433
5434 ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
703e0a69
VZ
5435
5436fi
10f2d63a
VZ
5437
5438
5439 eval "$ac_cv_use_toolbar"
5440 if test "$no_cache" != 1; then
5441 echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
5442 fi
5443
5444 if test "$wxUSE_TOOLBAR" = yes; then
703e0a69 5445 echo "$ac_t""yes" 1>&6
10f2d63a 5446 else
703e0a69 5447 echo "$ac_t""no" 1>&6
10f2d63a 5448 fi
703e0a69 5449
10f2d63a 5450
703e0a69
VZ
5451 echo $ac_n "checking "for --enable-tbarnative"""... $ac_c" 1>&6
5452echo "configure:5453: checking "for --enable-tbarnative"" >&5
360d6699
VZ
5453 no_cache=0
5454 # Check whether --enable-tbarnative or --disable-tbarnative was given.
5455if test "${enable_tbarnative+set}" = set; then
5456 enableval="$enable_tbarnative"
703e0a69 5457
360d6699
VZ
5458 if test "$enableval" = yes; then
5459 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
5460 else
5461 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
5462 fi
703e0a69 5463
360d6699 5464else
703e0a69 5465
360d6699
VZ
5466 LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
5467 if test "x$LINE" != x ; then
5468 eval "DEFAULT_$LINE"
5469 else
5470 no_cache=1
5471 fi
5472
5473 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
703e0a69
VZ
5474
5475fi
360d6699
VZ
5476
5477
5478 eval "$ac_cv_use_tbarnative"
5479 if test "$no_cache" != 1; then
5480 echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
5481 fi
5482
5483 if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
703e0a69 5484 echo "$ac_t""yes" 1>&6
360d6699 5485 else
703e0a69 5486 echo "$ac_t""no" 1>&6
360d6699 5487 fi
703e0a69 5488
360d6699 5489
703e0a69
VZ
5490 echo $ac_n "checking "for --enable-tbarsmpl"""... $ac_c" 1>&6
5491echo "configure:5492: checking "for --enable-tbarsmpl"" >&5
360d6699
VZ
5492 no_cache=0
5493 # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given.
5494if test "${enable_tbarsmpl+set}" = set; then
5495 enableval="$enable_tbarsmpl"
703e0a69 5496
360d6699
VZ
5497 if test "$enableval" = yes; then
5498 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes'
5499 else
5500 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no'
5501 fi
703e0a69 5502
360d6699 5503else
703e0a69 5504
360d6699
VZ
5505 LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}`
5506 if test "x$LINE" != x ; then
5507 eval "DEFAULT_$LINE"
5508 else
5509 no_cache=1
5510 fi
5511
5512 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE
703e0a69
VZ
5513
5514fi
360d6699
VZ
5515
5516
5517 eval "$ac_cv_use_tbarsmpl"
5518 if test "$no_cache" != 1; then
5519 echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp
5520 fi
5521
5522 if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then
703e0a69 5523 echo "$ac_t""yes" 1>&6
360d6699 5524 else
703e0a69 5525 echo "$ac_t""no" 1>&6
360d6699 5526 fi
703e0a69 5527
360d6699 5528
703e0a69
VZ
5529 echo $ac_n "checking "for --enable-treectrl"""... $ac_c" 1>&6
5530echo "configure:5531: checking "for --enable-treectrl"" >&5
10f2d63a
VZ
5531 no_cache=0
5532 # Check whether --enable-treectrl or --disable-treectrl was given.
5533if test "${enable_treectrl+set}" = set; then
5534 enableval="$enable_treectrl"
703e0a69 5535
10f2d63a
VZ
5536 if test "$enableval" = yes; then
5537 ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
5538 else
5539 ac_cv_use_treectrl='wxUSE_TREECTRL=no'
5540 fi
703e0a69 5541
10f2d63a 5542else
703e0a69 5543
10f2d63a
VZ
5544 LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
5545 if test "x$LINE" != x ; then
5546 eval "DEFAULT_$LINE"
5547 else
5548 no_cache=1
5549 fi
5550
5551 ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
703e0a69
VZ
5552
5553fi
10f2d63a
VZ
5554
5555
5556 eval "$ac_cv_use_treectrl"
5557 if test "$no_cache" != 1; then
5558 echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
5559 fi
5560
5561 if test "$wxUSE_TREECTRL" = yes; then
703e0a69 5562 echo "$ac_t""yes" 1>&6
10f2d63a 5563 else
703e0a69 5564 echo "$ac_t""no" 1>&6
10f2d63a 5565 fi
703e0a69
VZ
5566
5567
10f2d63a 5568
703e0a69
VZ
5569
5570 echo $ac_n "checking "for --enable-commondlg"""... $ac_c" 1>&6
5571echo "configure:5572: checking "for --enable-commondlg"" >&5
10f2d63a
VZ
5572 no_cache=0
5573 # Check whether --enable-commondlg or --disable-commondlg was given.
5574if test "${enable_commondlg+set}" = set; then
5575 enableval="$enable_commondlg"
703e0a69 5576
10f2d63a
VZ
5577 if test "$enableval" = yes; then
5578 ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
5579 else
5580 ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
5581 fi
703e0a69 5582
10f2d63a 5583else
703e0a69 5584
10f2d63a
VZ
5585 LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
5586 if test "x$LINE" != x ; then
5587 eval "DEFAULT_$LINE"
5588 else
5589 no_cache=1
5590 fi
5591
5592 ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
703e0a69
VZ
5593
5594fi
10f2d63a
VZ
5595
5596
5597 eval "$ac_cv_use_commondlg"
5598 if test "$no_cache" != 1; then
5599 echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
5600 fi
5601
5602 if test "$wxUSE_COMMONDLGS" = yes; then
703e0a69 5603 echo "$ac_t""yes" 1>&6
10f2d63a 5604 else
703e0a69 5605 echo "$ac_t""no" 1>&6
10f2d63a 5606 fi
703e0a69 5607
10f2d63a 5608
703e0a69
VZ
5609 echo $ac_n "checking "for --enable-dirdlg"""... $ac_c" 1>&6
5610echo "configure:5611: checking "for --enable-dirdlg"" >&5
10f2d63a
VZ
5611 no_cache=0
5612 # Check whether --enable-dirdlg or --disable-dirdlg was given.
5613if test "${enable_dirdlg+set}" = set; then
5614 enableval="$enable_dirdlg"
703e0a69 5615
10f2d63a
VZ
5616 if test "$enableval" = yes; then
5617 ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
5618 else
5619 ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
5620 fi
703e0a69 5621
10f2d63a 5622else
703e0a69 5623
10f2d63a
VZ
5624 LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
5625 if test "x$LINE" != x ; then
5626 eval "DEFAULT_$LINE"
5627 else
5628 no_cache=1
5629 fi
5630
5631 ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
703e0a69
VZ
5632
5633fi
10f2d63a
VZ
5634
5635
5636 eval "$ac_cv_use_dirdlg"
5637 if test "$no_cache" != 1; then
5638 echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
5639 fi
5640
5641 if test "$wxUSE_DIRDLG" = yes; then
703e0a69 5642 echo "$ac_t""yes" 1>&6
10f2d63a 5643 else
703e0a69 5644 echo "$ac_t""no" 1>&6
10f2d63a 5645 fi
703e0a69 5646
10f2d63a 5647
703e0a69
VZ
5648 echo $ac_n "checking "for --enable-textdlg"""... $ac_c" 1>&6
5649echo "configure:5650: checking "for --enable-textdlg"" >&5
10f2d63a
VZ
5650 no_cache=0
5651 # Check whether --enable-textdlg or --disable-textdlg was given.
5652if test "${enable_textdlg+set}" = set; then
5653 enableval="$enable_textdlg"
703e0a69 5654
10f2d63a
VZ
5655 if test "$enableval" = yes; then
5656 ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
5657 else
5658 ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
5659 fi
703e0a69 5660
10f2d63a 5661else
703e0a69 5662
10f2d63a
VZ
5663 LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
5664 if test "x$LINE" != x ; then
5665 eval "DEFAULT_$LINE"
5666 else
5667 no_cache=1
5668 fi
5669
5670 ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
703e0a69
VZ
5671
5672fi
10f2d63a
VZ
5673
5674
5675 eval "$ac_cv_use_textdlg"
5676 if test "$no_cache" != 1; then
5677 echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
5678 fi
5679
5680 if test "$wxUSE_TEXTDLG" = yes; then
703e0a69 5681 echo "$ac_t""yes" 1>&6
10f2d63a 5682 else
703e0a69 5683 echo "$ac_t""no" 1>&6
10f2d63a 5684 fi
703e0a69 5685
10f2d63a 5686
703e0a69
VZ
5687 echo $ac_n "checking "for --enable-tipdlg"""... $ac_c" 1>&6
5688echo "configure:5689: checking "for --enable-tipdlg"" >&5
10f2d63a
VZ
5689 no_cache=0
5690 # Check whether --enable-tipdlg or --disable-tipdlg was given.
5691if test "${enable_tipdlg+set}" = set; then
5692 enableval="$enable_tipdlg"
703e0a69 5693
10f2d63a
VZ
5694 if test "$enableval" = yes; then
5695 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
5696 else
5697 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
5698 fi
703e0a69 5699
10f2d63a 5700else
703e0a69 5701
10f2d63a
VZ
5702 LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
5703 if test "x$LINE" != x ; then
5704 eval "DEFAULT_$LINE"
5705 else
5706 no_cache=1
5707 fi
5708
5709 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
703e0a69
VZ
5710
5711fi
10f2d63a
VZ
5712
5713
5714 eval "$ac_cv_use_tipdlg"
5715 if test "$no_cache" != 1; then
5716 echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
5717 fi
5718
5719 if test "$wxUSE_STARTUP_TIPS" = yes; then
703e0a69 5720 echo "$ac_t""yes" 1>&6
10f2d63a 5721 else
703e0a69 5722 echo "$ac_t""no" 1>&6
10f2d63a 5723 fi
703e0a69 5724
10f2d63a 5725
703e0a69
VZ
5726 echo $ac_n "checking "for --enable-progressdlg"""... $ac_c" 1>&6
5727echo "configure:5728: checking "for --enable-progressdlg"" >&5
10f2d63a
VZ
5728 no_cache=0
5729 # Check whether --enable-progressdlg or --disable-progressdlg was given.
5730if test "${enable_progressdlg+set}" = set; then
5731 enableval="$enable_progressdlg"
703e0a69 5732
10f2d63a
VZ
5733 if test "$enableval" = yes; then
5734 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
5735 else
5736 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
5737 fi
703e0a69 5738
10f2d63a 5739else
703e0a69 5740
10f2d63a
VZ
5741 LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
5742 if test "x$LINE" != x ; then
5743 eval "DEFAULT_$LINE"
5744 else
5745 no_cache=1
5746 fi
5747
5748 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
703e0a69
VZ
5749
5750fi
10f2d63a
VZ
5751
5752
5753 eval "$ac_cv_use_progressdlg"
5754 if test "$no_cache" != 1; then
5755 echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
5756 fi
5757
5758 if test "$wxUSE_PROGRESSDLG" = yes; then
703e0a69 5759 echo "$ac_t""yes" 1>&6
10f2d63a 5760 else
703e0a69 5761 echo "$ac_t""no" 1>&6
10f2d63a 5762 fi
703e0a69 5763
10f2d63a 5764
703e0a69
VZ
5765 echo $ac_n "checking "for --enable-miniframe"""... $ac_c" 1>&6
5766echo "configure:5767: checking "for --enable-miniframe"" >&5
10f2d63a
VZ
5767 no_cache=0
5768 # Check whether --enable-miniframe or --disable-miniframe was given.
5769if test "${enable_miniframe+set}" = set; then
5770 enableval="$enable_miniframe"
703e0a69 5771
10f2d63a
VZ
5772 if test "$enableval" = yes; then
5773 ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
5774 else
5775 ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
5776 fi
703e0a69 5777
10f2d63a 5778else
703e0a69 5779
10f2d63a
VZ
5780 LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
5781 if test "x$LINE" != x ; then
5782 eval "DEFAULT_$LINE"
5783 else
5784 no_cache=1
5785 fi
5786
5787 ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
703e0a69
VZ
5788
5789fi
10f2d63a
VZ
5790
5791
5792 eval "$ac_cv_use_miniframe"
5793 if test "$no_cache" != 1; then
5794 echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
5795 fi
5796
5797 if test "$wxUSE_MINIFRAME" = yes; then
703e0a69 5798 echo "$ac_t""yes" 1>&6
10f2d63a 5799 else
703e0a69 5800 echo "$ac_t""no" 1>&6
10f2d63a 5801 fi
703e0a69 5802
10f2d63a 5803
703e0a69
VZ
5804 echo $ac_n "checking "for --enable-html"""... $ac_c" 1>&6
5805echo "configure:5806: checking "for --enable-html"" >&5
10f2d63a
VZ
5806 no_cache=0
5807 # Check whether --enable-html or --disable-html was given.
5808if test "${enable_html+set}" = set; then
5809 enableval="$enable_html"
703e0a69 5810
10f2d63a
VZ
5811 if test "$enableval" = yes; then
5812 ac_cv_use_html='wxUSE_HTML=yes'
5813 else
5814 ac_cv_use_html='wxUSE_HTML=no'
5815 fi
703e0a69 5816
10f2d63a 5817else
703e0a69 5818
10f2d63a
VZ
5819 LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
5820 if test "x$LINE" != x ; then
5821 eval "DEFAULT_$LINE"
5822 else
5823 no_cache=1
5824 fi
5825
5826 ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
703e0a69
VZ
5827
5828fi
10f2d63a
VZ
5829
5830
5831 eval "$ac_cv_use_html"
5832 if test "$no_cache" != 1; then
5833 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
5834 fi
5835
5836 if test "$wxUSE_HTML" = yes; then
703e0a69 5837 echo "$ac_t""yes" 1>&6
10f2d63a 5838 else
703e0a69 5839 echo "$ac_t""no" 1>&6
10f2d63a 5840 fi
703e0a69 5841
10f2d63a 5842
703e0a69
VZ
5843 echo $ac_n "checking "for --enable-tooltips"""... $ac_c" 1>&6
5844echo "configure:5845: checking "for --enable-tooltips"" >&5
10f2d63a
VZ
5845 no_cache=0
5846 # Check whether --enable-tooltips or --disable-tooltips was given.
5847if test "${enable_tooltips+set}" = set; then
5848 enableval="$enable_tooltips"
703e0a69 5849
10f2d63a
VZ
5850 if test "$enableval" = yes; then
5851 ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
5852 else
5853 ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
5854 fi
703e0a69 5855
10f2d63a 5856else
703e0a69 5857
10f2d63a
VZ
5858 LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
5859 if test "x$LINE" != x ; then
5860 eval "DEFAULT_$LINE"
5861 else
5862 no_cache=1
5863 fi
5864
5865 ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
703e0a69
VZ
5866
5867fi
10f2d63a
VZ
5868
5869
5870 eval "$ac_cv_use_tooltips"
5871 if test "$no_cache" != 1; then
5872 echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
5873 fi
5874
5875 if test "$wxUSE_TOOLTIPS" = yes; then
703e0a69 5876 echo "$ac_t""yes" 1>&6
10f2d63a 5877 else
703e0a69 5878 echo "$ac_t""no" 1>&6
10f2d63a 5879 fi
703e0a69 5880
10f2d63a 5881
703e0a69
VZ
5882 echo $ac_n "checking "for --enable-splines"""... $ac_c" 1>&6
5883echo "configure:5884: checking "for --enable-splines"" >&5
10f2d63a
VZ
5884 no_cache=0
5885 # Check whether --enable-splines or --disable-splines was given.
5886if test "${enable_splines+set}" = set; then
5887 enableval="$enable_splines"
703e0a69 5888
10f2d63a
VZ
5889 if test "$enableval" = yes; then
5890 ac_cv_use_splines='wxUSE_SPLINES=yes'
5891 else
5892 ac_cv_use_splines='wxUSE_SPLINES=no'
5893 fi
703e0a69 5894
10f2d63a 5895else
703e0a69 5896
10f2d63a
VZ
5897 LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
5898 if test "x$LINE" != x ; then
5899 eval "DEFAULT_$LINE"
5900 else
5901 no_cache=1
5902 fi
5903
5904 ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
703e0a69
VZ
5905
5906fi
10f2d63a
VZ
5907
5908
5909 eval "$ac_cv_use_splines"
5910 if test "$no_cache" != 1; then
5911 echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
5912 fi
5913
5914 if test "$wxUSE_SPLINES" = yes; then
703e0a69 5915 echo "$ac_t""yes" 1>&6
10f2d63a 5916 else
703e0a69 5917 echo "$ac_t""no" 1>&6
10f2d63a 5918 fi
703e0a69 5919
10f2d63a 5920
703e0a69
VZ
5921 echo $ac_n "checking "for --enable-validators"""... $ac_c" 1>&6
5922echo "configure:5923: checking "for --enable-validators"" >&5
10f2d63a
VZ
5923 no_cache=0
5924 # Check whether --enable-validators or --disable-validators was given.
5925if test "${enable_validators+set}" = set; then
5926 enableval="$enable_validators"
703e0a69 5927
10f2d63a
VZ
5928 if test "$enableval" = yes; then
5929 ac_cv_use_validators='wxUSE_VALIDATORS=yes'
5930 else
5931 ac_cv_use_validators='wxUSE_VALIDATORS=no'
5932 fi
703e0a69 5933
10f2d63a 5934else
703e0a69 5935
10f2d63a
VZ
5936 LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
5937 if test "x$LINE" != x ; then
5938 eval "DEFAULT_$LINE"
5939 else
5940 no_cache=1
5941 fi
5942
5943 ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
703e0a69
VZ
5944
5945fi
10f2d63a
VZ
5946
5947
5948 eval "$ac_cv_use_validators"
5949 if test "$no_cache" != 1; then
5950 echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
5951 fi
5952
5953 if test "$wxUSE_VALIDATORS" = yes; then
703e0a69 5954 echo "$ac_t""yes" 1>&6
10f2d63a 5955 else
703e0a69 5956 echo "$ac_t""no" 1>&6
10f2d63a 5957 fi
703e0a69 5958
10f2d63a 5959
703e0a69
VZ
5960 echo $ac_n "checking "for --enable-busyinfo"""... $ac_c" 1>&6
5961echo "configure:5962: checking "for --enable-busyinfo"" >&5
10f2d63a
VZ
5962 no_cache=0
5963 # Check whether --enable-busyinfo or --disable-busyinfo was given.
5964if test "${enable_busyinfo+set}" = set; then
5965 enableval="$enable_busyinfo"
703e0a69 5966
10f2d63a
VZ
5967 if test "$enableval" = yes; then
5968 ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
5969 else
5970 ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
5971 fi
703e0a69 5972
10f2d63a 5973else
703e0a69 5974
10f2d63a
VZ
5975 LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
5976 if test "x$LINE" != x ; then
5977 eval "DEFAULT_$LINE"
5978 else
5979 no_cache=1
5980 fi
5981
5982 ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
703e0a69
VZ
5983
5984fi
10f2d63a
VZ
5985
5986
5987 eval "$ac_cv_use_busyinfo"
5988 if test "$no_cache" != 1; then
5989 echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
5990 fi
5991
5992 if test "$wxUSE_BUSYINFO" = yes; then
703e0a69 5993 echo "$ac_t""yes" 1>&6
10f2d63a 5994 else
703e0a69 5995 echo "$ac_t""no" 1>&6
10f2d63a 5996 fi
703e0a69 5997
10f2d63a 5998
703e0a69
VZ
5999 echo $ac_n "checking "for --enable-joystick"""... $ac_c" 1>&6
6000echo "configure:6001: checking "for --enable-joystick"" >&5
f6bcfd97
BP
6001 no_cache=0
6002 # Check whether --enable-joystick or --disable-joystick was given.
6003if test "${enable_joystick+set}" = set; then
6004 enableval="$enable_joystick"
703e0a69 6005
f6bcfd97
BP
6006 if test "$enableval" = yes; then
6007 ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
6008 else
6009 ac_cv_use_joystick='wxUSE_JOYSTICK=no'
6010 fi
703e0a69 6011
f6bcfd97 6012else
703e0a69 6013
f6bcfd97
BP
6014 LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
6015 if test "x$LINE" != x ; then
6016 eval "DEFAULT_$LINE"
6017 else
6018 no_cache=1
6019 fi
6020
6021 ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
703e0a69
VZ
6022
6023fi
f6bcfd97
BP
6024
6025
6026 eval "$ac_cv_use_joystick"
6027 if test "$no_cache" != 1; then
6028 echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
6029 fi
6030
6031 if test "$wxUSE_JOYSTICK" = yes; then
703e0a69 6032 echo "$ac_t""yes" 1>&6
f6bcfd97 6033 else
703e0a69 6034 echo "$ac_t""no" 1>&6
f6bcfd97 6035 fi
703e0a69
VZ
6036
6037
10f2d63a 6038
703e0a69
VZ
6039
6040 echo $ac_n "checking "for --enable-image"""... $ac_c" 1>&6
6041echo "configure:6042: checking "for --enable-image"" >&5
0046ff7c
VS
6042 no_cache=0
6043 # Check whether --enable-image or --disable-image was given.
6044if test "${enable_image+set}" = set; then
6045 enableval="$enable_image"
703e0a69 6046
0046ff7c
VS
6047 if test "$enableval" = yes; then
6048 ac_cv_use_image='wxUSE_IMAGE=yes'
6049 else
6050 ac_cv_use_image='wxUSE_IMAGE=no'
6051 fi
703e0a69 6052
0046ff7c 6053else
703e0a69 6054
0046ff7c
VS
6055 LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}`
6056 if test "x$LINE" != x ; then
6057 eval "DEFAULT_$LINE"
6058 else
6059 no_cache=1
6060 fi
6061
6062 ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE
703e0a69
VZ
6063
6064fi
0046ff7c
VS
6065
6066
6067 eval "$ac_cv_use_image"
6068 if test "$no_cache" != 1; then
6069 echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp
6070 fi
6071
6072 if test "$wxUSE_IMAGE" = yes; then
703e0a69 6073 echo "$ac_t""yes" 1>&6
0046ff7c 6074 else
703e0a69 6075 echo "$ac_t""no" 1>&6
0046ff7c 6076 fi
703e0a69 6077
0046ff7c 6078
703e0a69
VZ
6079 echo $ac_n "checking "for --enable-gif"""... $ac_c" 1>&6
6080echo "configure:6081: checking "for --enable-gif"" >&5
10f2d63a
VZ
6081 no_cache=0
6082 # Check whether --enable-gif or --disable-gif was given.
6083if test "${enable_gif+set}" = set; then
6084 enableval="$enable_gif"
703e0a69 6085
10f2d63a
VZ
6086 if test "$enableval" = yes; then
6087 ac_cv_use_gif='wxUSE_GIF=yes'
6088 else
6089 ac_cv_use_gif='wxUSE_GIF=no'
6090 fi
703e0a69 6091
10f2d63a 6092else
703e0a69 6093
10f2d63a
VZ
6094 LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
6095 if test "x$LINE" != x ; then
6096 eval "DEFAULT_$LINE"
6097 else
6098 no_cache=1
6099 fi
6100
6101 ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
703e0a69
VZ
6102
6103fi
10f2d63a
VZ
6104
6105
6106 eval "$ac_cv_use_gif"
6107 if test "$no_cache" != 1; then
6108 echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
6109 fi
6110
6111 if test "$wxUSE_GIF" = yes; then
703e0a69 6112 echo "$ac_t""yes" 1>&6
10f2d63a 6113 else
703e0a69 6114 echo "$ac_t""no" 1>&6
10f2d63a 6115 fi
703e0a69 6116
10f2d63a 6117
703e0a69
VZ
6118 echo $ac_n "checking "for --enable-pcx"""... $ac_c" 1>&6
6119echo "configure:6120: checking "for --enable-pcx"" >&5
10f2d63a
VZ
6120 no_cache=0
6121 # Check whether --enable-pcx or --disable-pcx was given.
6122if test "${enable_pcx+set}" = set; then
6123 enableval="$enable_pcx"
703e0a69 6124
10f2d63a
VZ
6125 if test "$enableval" = yes; then
6126 ac_cv_use_pcx='wxUSE_PCX=yes'
6127 else
6128 ac_cv_use_pcx='wxUSE_PCX=no'
6129 fi
703e0a69 6130
10f2d63a 6131else
703e0a69 6132
10f2d63a
VZ
6133 LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
6134 if test "x$LINE" != x ; then
6135 eval "DEFAULT_$LINE"
6136 else
6137 no_cache=1
6138 fi
6139
6140 ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
703e0a69
VZ
6141
6142fi
10f2d63a
VZ
6143
6144
6145 eval "$ac_cv_use_pcx"
6146 if test "$no_cache" != 1; then
6147 echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
6148 fi
6149
6150 if test "$wxUSE_PCX" = yes; then
703e0a69 6151 echo "$ac_t""yes" 1>&6
10f2d63a 6152 else
703e0a69 6153 echo "$ac_t""no" 1>&6
10f2d63a 6154 fi
703e0a69 6155
10f2d63a 6156
703e0a69
VZ
6157 echo $ac_n "checking "for --enable-pnm"""... $ac_c" 1>&6
6158echo "configure:6159: checking "for --enable-pnm"" >&5
10f2d63a
VZ
6159 no_cache=0
6160 # Check whether --enable-pnm or --disable-pnm was given.
6161if test "${enable_pnm+set}" = set; then
6162 enableval="$enable_pnm"
703e0a69 6163
10f2d63a
VZ
6164 if test "$enableval" = yes; then
6165 ac_cv_use_pnm='wxUSE_PNM=yes'
6166 else
6167 ac_cv_use_pnm='wxUSE_PNM=no'
6168 fi
703e0a69 6169
10f2d63a 6170else
703e0a69 6171
10f2d63a
VZ
6172 LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
6173 if test "x$LINE" != x ; then
6174 eval "DEFAULT_$LINE"
6175 else
6176 no_cache=1
6177 fi
6178
6179 ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
703e0a69
VZ
6180
6181fi
10f2d63a
VZ
6182
6183
6184 eval "$ac_cv_use_pnm"
6185 if test "$no_cache" != 1; then
6186 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
6187 fi
6188
6189 if test "$wxUSE_PNM" = yes; then
703e0a69 6190 echo "$ac_t""yes" 1>&6
10f2d63a 6191 else
703e0a69 6192 echo "$ac_t""no" 1>&6
10f2d63a 6193 fi
703e0a69 6194
10f2d63a 6195
703e0a69
VZ
6196 echo $ac_n "checking "for --enable-pnm"""... $ac_c" 1>&6
6197echo "configure:6198: checking "for --enable-pnm"" >&5
0046ff7c
VS
6198 no_cache=0
6199 # Check whether --enable-pnm or --disable-pnm was given.
6200if test "${enable_pnm+set}" = set; then
6201 enableval="$enable_pnm"
703e0a69 6202
0046ff7c
VS
6203 if test "$enableval" = yes; then
6204 ac_cv_use_pnm='wxUSE_XPM=yes'
6205 else
6206 ac_cv_use_pnm='wxUSE_XPM=no'
6207 fi
703e0a69 6208
0046ff7c 6209else
703e0a69 6210
0046ff7c
VS
6211 LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}`
6212 if test "x$LINE" != x ; then
6213 eval "DEFAULT_$LINE"
6214 else
6215 no_cache=1
6216 fi
6217
6218 ac_cv_use_pnm='wxUSE_XPM='$DEFAULT_wxUSE_XPM
703e0a69
VZ
6219
6220fi
0046ff7c
VS
6221
6222
6223 eval "$ac_cv_use_pnm"
6224 if test "$no_cache" != 1; then
6225 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
6226 fi
6227
6228 if test "$wxUSE_XPM" = yes; then
703e0a69 6229 echo "$ac_t""yes" 1>&6
0046ff7c 6230 else
703e0a69 6231 echo "$ac_t""no" 1>&6
0046ff7c 6232 fi
703e0a69 6233
0046ff7c 6234
b12915c1
VZ
6235fi
6236
703e0a69 6237
10f2d63a
VZ
6238 echo "saving argument cache $wx_arg_cache_file"
6239 mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
703e0a69 6240
10f2d63a 6241
703e0a69
VZ
6242
6243echo $ac_n "checking for toolkit""... $ac_c" 1>&6
6244echo "configure:6245: checking for toolkit" >&5
10f2d63a
VZ
6245
6246if test "$wxUSE_GUI" = "yes"; then
6247
b12915c1 6248if test "$USE_BEOS" = 1; then
703e0a69 6249 { echo "configure: error: BeOS GUI is not supported yet, use --disable-gui" 1>&2; exit 1; }
b12915c1
VZ
6250fi
6251
10f2d63a
VZ
6252if test "$TOOLKIT_GIVEN" = 1; then
6253 for toolkit in `echo $ALL_TOOLKITS`; do
6254 var=wxUSE_$toolkit
6255 eval "value=\$${var}"
6256 eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`"
6257 done
6258else
6259 for toolkit in `echo $ALL_TOOLKITS`; do
6260 if test "$has_toolkit_in_cache" != 1; then
6261 var=DEFAULT_DEFAULT_wxUSE_$toolkit
6262 else
6263 var=DEFAULT_wxUSE_$toolkit
6264 fi
6265 eval "wxUSE_$toolkit=\$${var}"
6266 done
6267fi
6268
b4085ce6 6269NUM_TOOLKITS=`expr ${wxUSE_GTK:-0} + ${wxUSE_MOTIF:-0} + ${wxUSE_MAC:-0} + ${wxUSE_WINE:-0} + ${wxUSE_MINGW:-0} + ${wxUSE_CYGWIN:-0}`
cf27ef00 6270
ec14dd32
VZ
6271case "${host}" in
6272 *-pc-os2_emx )
6273 NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
6274 # PATH_IFS is autodetected by OS/2's configure (usually ';')
6275 LEX_STEM="lexyy"
6276 ;;
6277 *)
6278 PATH_IFS=':'
6279 LEX_STEM="lex.yy"
6280 ;;
6281esac
10f2d63a
VZ
6282
6283case "$NUM_TOOLKITS" in
6284 1)
6285 ;;
6286 0)
703e0a69 6287 { echo "configure: error: Please specify a toolkit - cannot determine the default for ${host}" 1>&2; exit 1; }
10f2d63a
VZ
6288 ;;
6289 *)
703e0a69 6290 { echo "configure: error: Please specify at most one toolkit (may be some are cached?)" 1>&2; exit 1; }
10f2d63a
VZ
6291esac
6292
6293for toolkit in `echo $ALL_TOOLKITS`; do
6294 var=wxUSE_$toolkit
6295 eval "value=\$${var}"
6296 if test "x$value" != x; then
6297 cache_var=CACHE_$toolkit
6298 eval "cache=\$${cache_var}"
6299 if test "$cache" = 1; then
6300 echo "$var=$value" >> ${wx_arg_cache_file}
6301 fi
6302 if test "$value" = 1; then
703e0a69 6303 echo "$ac_t""`echo $toolkit | tr A-Z a-z`" 1>&6
10f2d63a
VZ
6304 fi
6305 fi
6306done
6307
6308else
cf27ef00 6309 PATH_IFS=':'
703e0a69 6310 echo "$ac_t""base only" 1>&6
10f2d63a
VZ
6311fi
6312
703e0a69
VZ
6313
6314cat > confcache <<\EOF
10f2d63a
VZ
6315# This file is a shell script that caches the results of configure
6316# tests run on this system so they can be shared between configure
703e0a69
VZ
6317# scripts and configure runs. It is not useful on other systems.
6318# If it contains results you don't want to keep, you may remove or edit it.
10f2d63a 6319#
703e0a69
VZ
6320# By default, configure uses ./config.cache as the cache file,
6321# creating it if it does not exist already. You can give configure
6322# the --cache-file=FILE option to use a different cache file; that is
6323# what configure does when it calls configure scripts in
6324# subdirectories, so they share the cache.
6325# Giving --cache-file=/dev/null disables caching, for debugging configure.
6326# config.status only pays attention to the cache file if you give it the
6327# --recheck option to rerun configure.
10f2d63a 6328#
703e0a69 6329EOF
10f2d63a
VZ
6330# The following way of writing the cache mishandles newlines in values,
6331# but we know of no workaround that is simple, portable, and efficient.
6332# So, don't put newlines in cache variables' values.
6333# Ultrix sh set writes to stderr and can't be redirected directly,
6334# and sets the high bit in the cache file unless we assign to the vars.
703e0a69
VZ
6335(set) 2>&1 |
6336 case `(ac_space=' '; set | grep ac_space) 2>&1` in
6337 *ac_space=\ *)
6338 # `set' does not quote correctly, so add quotes (double-quote substitution
6339 # turns \\\\ into \\, and sed turns \\ into \).
6340 sed -n \
6341 -e "s/'/'\\\\''/g" \
6342 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
6343 ;;
6344 *)
6345 # `set' quotes correctly as required by POSIX, so do not add quotes.
6346 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
6347 ;;
6348 esac >> confcache
6349if cmp -s $cache_file confcache; then
6350 :
6351else
10f2d63a 6352 if test -w $cache_file; then
703e0a69
VZ
6353 echo "updating cache $cache_file"
6354 cat confcache > $cache_file
10f2d63a
VZ
6355 else
6356 echo "not updating unwritable cache $cache_file"
6357 fi
6358fi
6359rm -f confcache
6360
703e0a69 6361
e59890c3 6362if test "$build" != "$host" ; then
10f2d63a
VZ
6363 CC=$host_alias-gcc
6364 CXX=$host_alias-c++
6365 AR=$host_alias-ar
6366 RANLIB=$host_alias-ranlib
6367 DLLTOOL=$host_alias-dlltool
32832908 6368 RESCOMP=$host_alias-windres
10f2d63a
VZ
6369 LD=$host_alias-ld
6370 NM=$host_alias-nm
6371 STRIP=$host_alias-strip
10f2d63a
VZ
6372fi
6373
703e0a69 6374# Extract the first word of "gcc", so it can be a program name with args.
6232543b 6375set dummy gcc; ac_word=$2
703e0a69
VZ
6376echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6377echo "configure:6378: checking for $ac_word" >&5
6378if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
6379 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
6380else
6381 if test -n "$CC"; then
6382 ac_cv_prog_CC="$CC" # Let the user override the test.
6383else
703e0a69
VZ
6384 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6385 ac_dummy="$PATH"
6386 for ac_dir in $ac_dummy; do
6387 test -z "$ac_dir" && ac_dir=.
6388 if test -f $ac_dir/$ac_word; then
6389 ac_cv_prog_CC="gcc"
6390 break
6391 fi
6392 done
6393 IFS="$ac_save_ifs"
10f2d63a
VZ
6394fi
6395fi
703e0a69 6396CC="$ac_cv_prog_CC"
10f2d63a 6397if test -n "$CC"; then
703e0a69 6398 echo "$ac_t""$CC" 1>&6
6232543b 6399else
703e0a69 6400 echo "$ac_t""no" 1>&6
6232543b 6401fi
10f2d63a 6402
6232543b
VS
6403if test -z "$CC"; then
6404 # Extract the first word of "cc", so it can be a program name with args.
6405set dummy cc; ac_word=$2
703e0a69
VZ
6406echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6407echo "configure:6408: checking for $ac_word" >&5
6408if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
6409 echo $ac_n "(cached) $ac_c" 1>&6
6232543b
VS
6410else
6411 if test -n "$CC"; then
6412 ac_cv_prog_CC="$CC" # Let the user override the test.
6413else
703e0a69 6414 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6232543b 6415 ac_prog_rejected=no
703e0a69
VZ
6416 ac_dummy="$PATH"
6417 for ac_dir in $ac_dummy; do
6418 test -z "$ac_dir" && ac_dir=.
6419 if test -f $ac_dir/$ac_word; then
6420 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
6421 ac_prog_rejected=yes
6422 continue
6423 fi
6424 ac_cv_prog_CC="cc"
6425 break
6426 fi
6427 done
6428 IFS="$ac_save_ifs"
6232543b
VS
6429if test $ac_prog_rejected = yes; then
6430 # We found a bogon in the path, so make sure we never use it.
6431 set dummy $ac_cv_prog_CC
6432 shift
703e0a69 6433 if test $# -gt 0; then
6232543b
VS
6434 # We chose a different compiler from the bogus one.
6435 # However, it has the same basename, so the bogon will be chosen
6436 # first if we set CC to just the basename; use the full file name.
6437 shift
703e0a69 6438 set dummy "$ac_dir/$ac_word" "$@"
6232543b
VS
6439 shift
6440 ac_cv_prog_CC="$@"
10f2d63a 6441 fi
6232543b
VS
6442fi
6443fi
6444fi
703e0a69 6445CC="$ac_cv_prog_CC"
6232543b 6446if test -n "$CC"; then
703e0a69 6447 echo "$ac_t""$CC" 1>&6
10f2d63a 6448else
703e0a69 6449 echo "$ac_t""no" 1>&6
10f2d63a 6450fi
6232543b 6451
703e0a69
VZ
6452 if test -z "$CC"; then
6453 case "`uname -s`" in
6454 *win32* | *WIN32*)
6455 # Extract the first word of "cl", so it can be a program name with args.
6456set dummy cl; ac_word=$2
6457echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6458echo "configure:6459: checking for $ac_word" >&5
6459if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
6460 echo $ac_n "(cached) $ac_c" 1>&6
6232543b
VS
6461else
6462 if test -n "$CC"; then
6463 ac_cv_prog_CC="$CC" # Let the user override the test.
10f2d63a 6464else
703e0a69
VZ
6465 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6466 ac_dummy="$PATH"
6467 for ac_dir in $ac_dummy; do
6468 test -z "$ac_dir" && ac_dir=.
6469 if test -f $ac_dir/$ac_word; then
6470 ac_cv_prog_CC="cl"
6471 break
6472 fi
6473 done
6474 IFS="$ac_save_ifs"
10f2d63a 6475fi
6232543b 6476fi
703e0a69 6477CC="$ac_cv_prog_CC"
6232543b 6478if test -n "$CC"; then
703e0a69 6479 echo "$ac_t""$CC" 1>&6
6232543b 6480else
703e0a69 6481 echo "$ac_t""no" 1>&6
6232543b 6482fi
703e0a69
VZ
6483 ;;
6484 esac
6485 fi
6486 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
6232543b
VS
6487fi
6488
703e0a69
VZ
6489echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
6490echo "configure:6491: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
6232543b 6491
703e0a69
VZ
6492ac_ext=c
6493# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6494ac_cpp='$CPP $CPPFLAGS'
6495ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6496ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6497cross_compiling=$ac_cv_prog_cc_cross
10f2d63a 6498
703e0a69 6499cat > conftest.$ac_ext << EOF
6232543b 6500
703e0a69 6501#line 6502 "configure"
6232543b
VS
6502#include "confdefs.h"
6503
703e0a69
VZ
6504main(){return(0);}
6505EOF
6506if { (eval echo configure:6507: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6507 ac_cv_prog_cc_works=yes
6508 # If we can't run a trivial program, we are probably using a cross compiler.
6509 if (./conftest; exit) 2>/dev/null; then
6510 ac_cv_prog_cc_cross=no
6511 else
6512 ac_cv_prog_cc_cross=yes
6513 fi
6514else
6515 echo "configure: failed program was:" >&5
6516 cat conftest.$ac_ext >&5
6517 ac_cv_prog_cc_works=no
6518fi
6519rm -fr conftest*
6520ac_ext=c
6521# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6522ac_cpp='$CPP $CPPFLAGS'
6523ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6524ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6525cross_compiling=$ac_cv_prog_cc_cross
6526
6527echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
6528if test $ac_cv_prog_cc_works = no; then
6529 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
6530fi
6531echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
6532echo "configure:6533: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
6533echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
6534cross_compiling=$ac_cv_prog_cc_cross
6535
6536echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
6537echo "configure:6538: checking whether we are using GNU C" >&5
6538if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
6539 echo $ac_n "(cached) $ac_c" 1>&6
6540else
6541 cat > conftest.c <<EOF
6542#ifdef __GNUC__
6543 yes;
6232543b 6544#endif
703e0a69
VZ
6545EOF
6546if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:6547: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
6547 ac_cv_prog_gcc=yes
6548else
6549 ac_cv_prog_gcc=no
6550fi
6551fi
6232543b 6552
703e0a69 6553echo "$ac_t""$ac_cv_prog_gcc" 1>&6
6232543b 6554
703e0a69
VZ
6555if test $ac_cv_prog_gcc = yes; then
6556 GCC=yes
6557else
6558 GCC=
6559fi
6232543b 6560
703e0a69
VZ
6561ac_test_CFLAGS="${CFLAGS+set}"
6562ac_save_CFLAGS="$CFLAGS"
6563CFLAGS=
6564echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
6565echo "configure:6566: checking whether ${CC-cc} accepts -g" >&5
6566if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
6567 echo $ac_n "(cached) $ac_c" 1>&6
6568else
6569 echo 'void f(){}' > conftest.c
6570if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
10f2d63a
VZ
6571 ac_cv_prog_cc_g=yes
6572else
703e0a69 6573 ac_cv_prog_cc_g=no
10f2d63a 6574fi
703e0a69
VZ
6575rm -f conftest*
6576
10f2d63a 6577fi
703e0a69
VZ
6578
6579echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
10f2d63a 6580if test "$ac_test_CFLAGS" = set; then
703e0a69 6581 CFLAGS="$ac_save_CFLAGS"
10f2d63a
VZ
6582elif test $ac_cv_prog_cc_g = yes; then
6583 if test "$GCC" = yes; then
6584 CFLAGS="-g -O2"
6585 else
6586 CFLAGS="-g"
6587 fi
6588else
6589 if test "$GCC" = yes; then
6590 CFLAGS="-O2"
6591 else
6592 CFLAGS=
6593 fi
6594fi
6595
6596
6597CFLAGS=`echo "$CFLAGS" | sed 's/-g//g'`
6598
703e0a69
VZ
6599echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
6600echo "configure:6601: checking how to run the C preprocessor" >&5
10f2d63a
VZ
6601# On Suns, sometimes $CPP names a directory.
6602if test -n "$CPP" && test -d "$CPP"; then
6603 CPP=
6604fi
6605if test -z "$CPP"; then
703e0a69
VZ
6606if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
6607 echo $ac_n "(cached) $ac_c" 1>&6
6608else
6609 # This must be in double quotes, not single quotes, because CPP may get
6610 # substituted into the Makefile and "${CC-cc}" will confuse make.
6611 CPP="${CC-cc} -E"
10f2d63a 6612 # On the NeXT, cc -E runs the code through the compiler's parser,
703e0a69
VZ
6613 # not just through cpp.
6614 cat > conftest.$ac_ext <<EOF
6615#line 6616 "configure"
10f2d63a
VZ
6616#include "confdefs.h"
6617#include <assert.h>
703e0a69
VZ
6618Syntax Error
6619EOF
6620ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6621{ (eval echo configure:6622: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6622ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6623if test -z "$ac_err"; then
10f2d63a
VZ
6624 :
6625else
703e0a69
VZ
6626 echo "$ac_err" >&5
6627 echo "configure: failed program was:" >&5
10f2d63a 6628 cat conftest.$ac_ext >&5
703e0a69
VZ
6629 rm -rf conftest*
6630 CPP="${CC-cc} -E -traditional-cpp"
6631 cat > conftest.$ac_ext <<EOF
6632#line 6633 "configure"
10f2d63a 6633#include "confdefs.h"
703e0a69
VZ
6634#include <assert.h>
6635Syntax Error
6636EOF
6637ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6638{ (eval echo configure:6639: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6639ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6640if test -z "$ac_err"; then
6641 :
10f2d63a 6642else
703e0a69
VZ
6643 echo "$ac_err" >&5
6644 echo "configure: failed program was:" >&5
10f2d63a 6645 cat conftest.$ac_ext >&5
703e0a69
VZ
6646 rm -rf conftest*
6647 CPP="${CC-cc} -nologo -E"
6648 cat > conftest.$ac_ext <<EOF
6649#line 6650 "configure"
10f2d63a
VZ
6650#include "confdefs.h"
6651#include <assert.h>
703e0a69
VZ
6652Syntax Error
6653EOF
6654ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6655{ (eval echo configure:6656: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6656ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6657if test -z "$ac_err"; then
10f2d63a
VZ
6658 :
6659else
703e0a69
VZ
6660 echo "$ac_err" >&5
6661 echo "configure: failed program was:" >&5
10f2d63a 6662 cat conftest.$ac_ext >&5
703e0a69
VZ
6663 rm -rf conftest*
6664 CPP=/lib/cpp
10f2d63a 6665fi
703e0a69 6666rm -f conftest*
10f2d63a 6667fi
703e0a69 6668rm -f conftest*
10f2d63a 6669fi
703e0a69
VZ
6670rm -f conftest*
6671 ac_cv_prog_CPP="$CPP"
6672fi
6673 CPP="$ac_cv_prog_CPP"
10f2d63a 6674else
703e0a69 6675 ac_cv_prog_CPP="$CPP"
10f2d63a 6676fi
703e0a69 6677echo "$ac_t""$CPP" 1>&6
10f2d63a
VZ
6678
6679
703e0a69
VZ
6680if test $ac_cv_prog_gcc = yes; then
6681 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
6682echo "configure:6683: checking whether ${CC-cc} needs -traditional" >&5
6683if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
6684 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
6685else
6686 ac_pattern="Autoconf.*'x'"
703e0a69
VZ
6687 cat > conftest.$ac_ext <<EOF
6688#line 6689 "configure"
10f2d63a
VZ
6689#include "confdefs.h"
6690#include <sgtty.h>
6691Autoconf TIOCGETP
703e0a69 6692EOF
10f2d63a
VZ
6693if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6694 egrep "$ac_pattern" >/dev/null 2>&1; then
703e0a69 6695 rm -rf conftest*
10f2d63a
VZ
6696 ac_cv_prog_gcc_traditional=yes
6697else
703e0a69 6698 rm -rf conftest*
10f2d63a
VZ
6699 ac_cv_prog_gcc_traditional=no
6700fi
6701rm -f conftest*
6702
703e0a69 6703
10f2d63a 6704 if test $ac_cv_prog_gcc_traditional = no; then
703e0a69
VZ
6705 cat > conftest.$ac_ext <<EOF
6706#line 6707 "configure"
10f2d63a
VZ
6707#include "confdefs.h"
6708#include <termio.h>
6709Autoconf TCGETA
703e0a69 6710EOF
10f2d63a
VZ
6711if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6712 egrep "$ac_pattern" >/dev/null 2>&1; then
703e0a69 6713 rm -rf conftest*
10f2d63a
VZ
6714 ac_cv_prog_gcc_traditional=yes
6715fi
6716rm -f conftest*
6717
6718 fi
6719fi
703e0a69
VZ
6720
6721echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
10f2d63a
VZ
6722 if test $ac_cv_prog_gcc_traditional = yes; then
6723 CC="$CC -traditional"
6724 fi
6725fi
6726
10f2d63a 6727
703e0a69
VZ
6728
6729ac_ext=C
6730# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6232543b 6731ac_cpp='$CXXCPP $CPPFLAGS'
703e0a69
VZ
6732ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6733ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6734cross_compiling=$ac_cv_prog_cxx_cross
6735
6736
6737for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
6738do
6739# Extract the first word of "$ac_prog", so it can be a program name with args.
6740set dummy $ac_prog; ac_word=$2
6741echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6742echo "configure:6743: checking for $ac_word" >&5
6743if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
6744 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
6745else
6746 if test -n "$CXX"; then
6747 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6748else
703e0a69
VZ
6749 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6750 ac_dummy="$PATH"
6751 for ac_dir in $ac_dummy; do
6752 test -z "$ac_dir" && ac_dir=.
6753 if test -f $ac_dir/$ac_word; then
6754 ac_cv_prog_CXX="$ac_prog"
6755 break
6756 fi
6757 done
6758 IFS="$ac_save_ifs"
10f2d63a
VZ
6759fi
6760fi
703e0a69 6761CXX="$ac_cv_prog_CXX"
10f2d63a 6762if test -n "$CXX"; then
703e0a69 6763 echo "$ac_t""$CXX" 1>&6
10f2d63a 6764else
703e0a69 6765 echo "$ac_t""no" 1>&6
10f2d63a
VZ
6766fi
6767
703e0a69 6768test -n "$CXX" && break
10f2d63a 6769done
703e0a69 6770test -n "$CXX" || CXX="gcc"
10f2d63a
VZ
6771
6772
703e0a69
VZ
6773echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
6774echo "configure:6775: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
10f2d63a 6775
703e0a69
VZ
6776ac_ext=C
6777# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6778ac_cpp='$CXXCPP $CPPFLAGS'
6779ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6780ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6781cross_compiling=$ac_cv_prog_cxx_cross
10f2d63a 6782
703e0a69
VZ
6783cat > conftest.$ac_ext << EOF
6784
6785#line 6786 "configure"
10f2d63a
VZ
6786#include "confdefs.h"
6787
703e0a69
VZ
6788int main(){return(0);}
6789EOF
6790if { (eval echo configure:6791: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6791 ac_cv_prog_cxx_works=yes
6792 # If we can't run a trivial program, we are probably using a cross compiler.
6793 if (./conftest; exit) 2>/dev/null; then
6794 ac_cv_prog_cxx_cross=no
6795 else
6796 ac_cv_prog_cxx_cross=yes
6797 fi
6798else
6799 echo "configure: failed program was:" >&5
6800 cat conftest.$ac_ext >&5
6801 ac_cv_prog_cxx_works=no
6802fi
6803rm -fr conftest*
6804ac_ext=C
6805# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6806ac_cpp='$CXXCPP $CPPFLAGS'
6807ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6808ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6809cross_compiling=$ac_cv_prog_cxx_cross
6810
6811echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
6812if test $ac_cv_prog_cxx_works = no; then
6813 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
6814fi
6815echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
6816echo "configure:6817: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
6817echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
6818cross_compiling=$ac_cv_prog_cxx_cross
6819
6820echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
6821echo "configure:6822: checking whether we are using GNU C++" >&5
6822if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
6823 echo $ac_n "(cached) $ac_c" 1>&6
6824else
6825 cat > conftest.C <<EOF
6826#ifdef __GNUC__
6827 yes;
10f2d63a 6828#endif
703e0a69
VZ
6829EOF
6830if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:6831: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
6831 ac_cv_prog_gxx=yes
6832else
6833 ac_cv_prog_gxx=no
6834fi
6835fi
10f2d63a 6836
703e0a69 6837echo "$ac_t""$ac_cv_prog_gxx" 1>&6
10f2d63a 6838
703e0a69
VZ
6839if test $ac_cv_prog_gxx = yes; then
6840 GXX=yes
6841else
6842 GXX=
6843fi
10f2d63a 6844
703e0a69
VZ
6845ac_test_CXXFLAGS="${CXXFLAGS+set}"
6846ac_save_CXXFLAGS="$CXXFLAGS"
6847CXXFLAGS=
6848echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
6849echo "configure:6850: checking whether ${CXX-g++} accepts -g" >&5
6850if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
6851 echo $ac_n "(cached) $ac_c" 1>&6
6852else
6853 echo 'void f(){}' > conftest.cc
6854if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
10f2d63a
VZ
6855 ac_cv_prog_cxx_g=yes
6856else
703e0a69 6857 ac_cv_prog_cxx_g=no
10f2d63a 6858fi
703e0a69
VZ
6859rm -f conftest*
6860
10f2d63a 6861fi
703e0a69
VZ
6862
6863echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
10f2d63a 6864if test "$ac_test_CXXFLAGS" = set; then
703e0a69 6865 CXXFLAGS="$ac_save_CXXFLAGS"
10f2d63a
VZ
6866elif test $ac_cv_prog_cxx_g = yes; then
6867 if test "$GXX" = yes; then
6868 CXXFLAGS="-g -O2"
6869 else
6870 CXXFLAGS="-g"
6871 fi
6872else
6873 if test "$GXX" = yes; then
6874 CXXFLAGS="-O2"
6875 else
6876 CXXFLAGS=
6877 fi
6878fi
6879
6880
703e0a69
VZ
6881echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
6882echo "configure:6883: checking how to run the C++ preprocessor" >&5
6232543b 6883if test -z "$CXXCPP"; then
703e0a69
VZ
6884if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
6885 echo $ac_n "(cached) $ac_c" 1>&6
6232543b 6886else
703e0a69
VZ
6887 ac_ext=C
6888# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6889ac_cpp='$CXXCPP $CPPFLAGS'
6890ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6891ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6892cross_compiling=$ac_cv_prog_cxx_cross
6893 CXXCPP="${CXX-g++} -E"
6894 cat > conftest.$ac_ext <<EOF
6895#line 6896 "configure"
6232543b 6896#include "confdefs.h"
703e0a69
VZ
6897#include <stdlib.h>
6898EOF
6899ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6900{ (eval echo configure:6901: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6901ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6902if test -z "$ac_err"; then
6232543b
VS
6903 :
6904else
703e0a69
VZ
6905 echo "$ac_err" >&5
6906 echo "configure: failed program was:" >&5
6232543b 6907 cat conftest.$ac_ext >&5
703e0a69
VZ
6908 rm -rf conftest*
6909 CXXCPP=/lib/cpp
6232543b 6910fi
703e0a69
VZ
6911rm -f conftest*
6912 ac_cv_prog_CXXCPP="$CXXCPP"
6913ac_ext=C
6914# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6915ac_cpp='$CXXCPP $CPPFLAGS'
6916ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6917ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6918cross_compiling=$ac_cv_prog_cxx_cross
6232543b 6919fi
6232543b 6920fi
703e0a69
VZ
6921CXXCPP="$ac_cv_prog_CXXCPP"
6922echo "$ac_t""$CXXCPP" 1>&6
6232543b 6923
10f2d63a
VZ
6924
6925CXXFLAGS=`echo "$CXXFLAGS" | sed 's/-g//g'`
6926
6927ac_ext=c
703e0a69 6928# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10f2d63a 6929ac_cpp='$CPP $CPPFLAGS'
703e0a69
VZ
6930ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6931ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6932cross_compiling=$ac_cv_prog_cc_cross
6933
6934
6935# Extract the first word of "ranlib", so it can be a program name with args.
6936set dummy ranlib; ac_word=$2
6937echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6938echo "configure:6939: checking for $ac_word" >&5
6939if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
6940 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
6941else
6942 if test -n "$RANLIB"; then
6943 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6944else
703e0a69
VZ
6945 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6946 ac_dummy="$PATH"
6947 for ac_dir in $ac_dummy; do
6948 test -z "$ac_dir" && ac_dir=.
6949 if test -f $ac_dir/$ac_word; then
6950 ac_cv_prog_RANLIB="ranlib"
6951 break
6952 fi
6953 done
6954 IFS="$ac_save_ifs"
6955 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
10f2d63a
VZ
6956fi
6957fi
703e0a69 6958RANLIB="$ac_cv_prog_RANLIB"
10f2d63a 6959if test -n "$RANLIB"; then
703e0a69 6960 echo "$ac_t""$RANLIB" 1>&6
10f2d63a 6961else
703e0a69 6962 echo "$ac_t""no" 1>&6
10f2d63a
VZ
6963fi
6964
6965
6966# Extract the first word of "ar", so it can be a program name with args.
6967set dummy ar; ac_word=$2
703e0a69
VZ
6968echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6969echo "configure:6970: checking for $ac_word" >&5
6970if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
6971 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
6972else
6973 if test -n "$AR"; then
6974 ac_cv_prog_AR="$AR" # Let the user override the test.
6975else
703e0a69
VZ
6976 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6977 ac_dummy="$PATH"
6978 for ac_dir in $ac_dummy; do
6979 test -z "$ac_dir" && ac_dir=.
6980 if test -f $ac_dir/$ac_word; then
6981 ac_cv_prog_AR="ar"
6982 break
6983 fi
6984 done
6985 IFS="$ac_save_ifs"
10f2d63a
VZ
6986 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
6987fi
6988fi
703e0a69 6989AR="$ac_cv_prog_AR"
10f2d63a 6990if test -n "$AR"; then
703e0a69 6991 echo "$ac_t""$AR" 1>&6
10f2d63a 6992else
703e0a69 6993 echo "$ac_t""no" 1>&6
10f2d63a
VZ
6994fi
6995
703e0a69 6996
10f2d63a
VZ
6997# Find a good install program. We prefer a C program (faster),
6998# so one script is as good as another. But avoid the broken or
6999# incompatible versions:
7000# SysV /etc/install, /usr/sbin/install
7001# SunOS /usr/etc/install
7002# IRIX /sbin/install
7003# AIX /bin/install
7004# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7005# AFS /usr/afsws/bin/install, which mishandles nonexistent args
7006# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7007# ./install, which can be erroneously created by make from ./install.sh.
703e0a69
VZ
7008echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
7009echo "configure:7010: checking for a BSD compatible install" >&5
10f2d63a 7010if test -z "$INSTALL"; then
703e0a69
VZ
7011if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
7012 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 7013else
703e0a69 7014 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
10f2d63a
VZ
7015 for ac_dir in $PATH; do
7016 # Account for people who put trailing slashes in PATH elements.
703e0a69
VZ
7017 case "$ac_dir/" in
7018 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
10f2d63a
VZ
7019 *)
7020 # OSF1 and SCO ODT 3.0 have their own names for install.
7021 # Don't use installbsd from OSF since it installs stuff as root
7022 # by default.
7023 for ac_prog in ginstall scoinst install; do
703e0a69 7024 if test -f $ac_dir/$ac_prog; then
10f2d63a 7025 if test $ac_prog = install &&
703e0a69 7026 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
10f2d63a
VZ
7027 # AIX install. It has an incompatible calling convention.
7028 :
7029 else
7030 ac_cv_path_install="$ac_dir/$ac_prog -c"
7031 break 2
7032 fi
7033 fi
7034 done
7035 ;;
7036 esac
7037 done
703e0a69 7038 IFS="$ac_save_IFS"
10f2d63a
VZ
7039
7040fi
7041 if test "${ac_cv_path_install+set}" = set; then
703e0a69 7042 INSTALL="$ac_cv_path_install"
10f2d63a
VZ
7043 else
7044 # As a last resort, use the slow shell script. We don't cache a
7045 # path for INSTALL within a source directory, because that will
7046 # break other packages using the cache if that directory is
7047 # removed, or if the path is relative.
703e0a69 7048 INSTALL="$ac_install_sh"
10f2d63a
VZ
7049 fi
7050fi
703e0a69 7051echo "$ac_t""$INSTALL" 1>&6
10f2d63a
VZ
7052
7053# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7054# It thinks the first close brace ends the variable substitution.
7055test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7056
703e0a69 7057test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
10f2d63a
VZ
7058
7059test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7060
703e0a69 7061
10f2d63a
VZ
7062# Extract the first word of "strip", so it can be a program name with args.
7063set dummy strip; ac_word=$2
703e0a69
VZ
7064echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7065echo "configure:7066: checking for $ac_word" >&5
7066if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
7067 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
7068else
7069 if test -n "$STRIP"; then
7070 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7071else
703e0a69
VZ
7072 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7073 ac_dummy="$PATH"
7074 for ac_dir in $ac_dummy; do
7075 test -z "$ac_dir" && ac_dir=.
7076 if test -f $ac_dir/$ac_word; then
7077 ac_cv_prog_STRIP="strip"
7078 break
7079 fi
7080 done
7081 IFS="$ac_save_ifs"
10f2d63a
VZ
7082 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true"
7083fi
7084fi
703e0a69 7085STRIP="$ac_cv_prog_STRIP"
10f2d63a 7086if test -n "$STRIP"; then
703e0a69 7087 echo "$ac_t""$STRIP" 1>&6
10f2d63a 7088else
703e0a69 7089 echo "$ac_t""no" 1>&6
10f2d63a
VZ
7090fi
7091
703e0a69
VZ
7092
7093echo $ac_n "checking "make for VPATH support"""... $ac_c" 1>&6
7094echo "configure:7095: checking "make for VPATH support"" >&5
10f2d63a
VZ
7095cat - << EOF > confMake
7096check : file
7097 cp \$? \$@
7098 cp \$? final_file
7099EOF
7100
7101if test ! -d sub ; then
7102 mkdir sub
7103fi
7104echo dummy > sub/file
f6bcfd97 7105${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
10f2d63a
VZ
7106RESULT=$?
7107rm -f sub/file check final_file confMake
7108rmdir sub
7109if test "$RESULT" = 0; then
703e0a69 7110 echo "$ac_t""yes" 1>&6
10f2d63a 7111else
703e0a69
VZ
7112 echo "$ac_t""no" 1>&6
7113 { echo "configure: error: You need a make-utility that is able to use the variable
10f2d63a 7114VPATH correctly.
703e0a69 7115If your version of make does not support VPATH correctly" 1>&2; exit 1; }
10f2d63a
VZ
7116fi
7117
7118for ac_prog in 'bison -y' byacc
7119do
703e0a69 7120# Extract the first word of "$ac_prog", so it can be a program name with args.
10f2d63a 7121set dummy $ac_prog; ac_word=$2
703e0a69
VZ
7122echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7123echo "configure:7124: checking for $ac_word" >&5
7124if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
7125 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
7126else
7127 if test -n "$YACC"; then
7128 ac_cv_prog_YACC="$YACC" # Let the user override the test.
7129else
703e0a69
VZ
7130 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7131 ac_dummy="$PATH"
7132 for ac_dir in $ac_dummy; do
7133 test -z "$ac_dir" && ac_dir=.
7134 if test -f $ac_dir/$ac_word; then
7135 ac_cv_prog_YACC="$ac_prog"
7136 break
7137 fi
7138 done
7139 IFS="$ac_save_ifs"
10f2d63a
VZ
7140fi
7141fi
703e0a69 7142YACC="$ac_cv_prog_YACC"
10f2d63a 7143if test -n "$YACC"; then
703e0a69 7144 echo "$ac_t""$YACC" 1>&6
10f2d63a 7145else
703e0a69 7146 echo "$ac_t""no" 1>&6
10f2d63a
VZ
7147fi
7148
703e0a69 7149test -n "$YACC" && break
10f2d63a
VZ
7150done
7151test -n "$YACC" || YACC="yacc"
7152
703e0a69
VZ
7153
7154# Extract the first word of "flex", so it can be a program name with args.
7155set dummy flex; ac_word=$2
7156echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7157echo "configure:7158: checking for $ac_word" >&5
7158if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
7159 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
7160else
7161 if test -n "$LEX"; then
7162 ac_cv_prog_LEX="$LEX" # Let the user override the test.
7163else
703e0a69
VZ
7164 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7165 ac_dummy="$PATH"
7166 for ac_dir in $ac_dummy; do
7167 test -z "$ac_dir" && ac_dir=.
7168 if test -f $ac_dir/$ac_word; then
7169 ac_cv_prog_LEX="flex"
7170 break
7171 fi
7172 done
7173 IFS="$ac_save_ifs"
7174 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
10f2d63a
VZ
7175fi
7176fi
703e0a69 7177LEX="$ac_cv_prog_LEX"
10f2d63a 7178if test -n "$LEX"; then
703e0a69 7179 echo "$ac_t""$LEX" 1>&6
10f2d63a 7180else
703e0a69 7181 echo "$ac_t""no" 1>&6
10f2d63a
VZ
7182fi
7183
7184if test -z "$LEXLIB"
7185then
703e0a69
VZ
7186 case "$LEX" in
7187 flex*) ac_lib=fl ;;
7188 *) ac_lib=l ;;
7189 esac
7190 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
7191echo "configure:7192: checking for yywrap in -l$ac_lib" >&5
7192ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
7193if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7194 echo $ac_n "(cached) $ac_c" 1>&6
7195else
7196 ac_save_LIBS="$LIBS"
7197LIBS="-l$ac_lib $LIBS"
7198cat > conftest.$ac_ext <<EOF
7199#line 7200 "configure"
10f2d63a
VZ
7200#include "confdefs.h"
7201/* Override any gcc2 internal prototype to avoid an error. */
7202/* We use char because int might match the return type of a gcc2
703e0a69
VZ
7203 builtin and then its argument prototype would still apply. */
7204char yywrap();
10f2d63a 7205
703e0a69
VZ
7206int main() {
7207yywrap()
7208; return 0; }
7209EOF
7210if { (eval echo configure:7211: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7211 rm -rf conftest*
7212 eval "ac_cv_lib_$ac_lib_var=yes"
10f2d63a 7213else
703e0a69
VZ
7214 echo "configure: failed program was:" >&5
7215 cat conftest.$ac_ext >&5
7216 rm -rf conftest*
7217 eval "ac_cv_lib_$ac_lib_var=no"
10f2d63a 7218fi
703e0a69
VZ
7219rm -f conftest*
7220LIBS="$ac_save_LIBS"
7221
10f2d63a 7222fi
703e0a69
VZ
7223if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7224 echo "$ac_t""yes" 1>&6
7225 LEXLIB="-l$ac_lib"
7226else
7227 echo "$ac_t""no" 1>&6
10f2d63a
VZ
7228fi
7229
7230fi
7231
7232
703e0a69
VZ
7233echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
7234echo "configure:7235: checking whether ln -s works" >&5
7235if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
7236 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 7237else
703e0a69
VZ
7238 rm -f conftestdata
7239if ln -s X conftestdata 2>/dev/null
7240then
7241 rm -f conftestdata
7242 ac_cv_prog_LN_S="ln -s"
10f2d63a 7243else
703e0a69 7244 ac_cv_prog_LN_S=ln
10f2d63a
VZ
7245fi
7246fi
703e0a69
VZ
7247LN_S="$ac_cv_prog_LN_S"
7248if test "$ac_cv_prog_LN_S" = "ln -s"; then
7249 echo "$ac_t""yes" 1>&6
10f2d63a 7250else
703e0a69 7251 echo "$ac_t""no" 1>&6
10f2d63a
VZ
7252fi
7253
7254
7255
7256SEARCH_INCLUDE="\
7257 /usr/local/include \
7258 \
7259 /usr/Motif-1.2/include \
7260 /usr/Motif-2.1/include \
7261 \
7262 /usr/include/Motif1.2 \
7263 /opt/xpm/include/X11 \
7264 /opt/GBxpm/include/ \
7265 /opt/GBxpm/X11/include/ \
7266 \
7267 /usr/Motif1.2/include \
7268 /usr/dt/include \
afc31813
VZ
7269 /usr/openwin/include \
7270 \
10f2d63a
VZ
7271 /usr/include/Xm \
7272 \
7273 /usr/X11R6/include \
afc31813 7274 /usr/X11R6.4/include \
10f2d63a
VZ
7275 /usr/X11R5/include \
7276 /usr/X11R4/include \
7277 \
10f2d63a
VZ
7278 /usr/include/X11R6 \
7279 /usr/include/X11R5 \
7280 /usr/include/X11R4 \
7281 \
7282 /usr/local/X11R6/include \
7283 /usr/local/X11R5/include \
7284 /usr/local/X11R4/include \
7285 \
7286 /usr/local/include/X11R6 \
7287 /usr/local/include/X11R5 \
7288 /usr/local/include/X11R4 \
7289 \
7290 /usr/X11/include \
7291 /usr/include/X11 \
7292 /usr/local/X11/include \
7293 /usr/local/include/X11 \
7294 \
7295 /usr/X386/include \
7296 /usr/x386/include \
7297 /usr/XFree86/include/X11 \
7298 \
cf27ef00 7299 X:/XFree86/include \
ec14dd32
VZ
7300 X:/XFree86/include/X11 \
7301 \
10f2d63a
VZ
7302 /usr/include/gtk \
7303 /usr/local/include/gtk \
7304 /usr/include/glib \
7305 /usr/local/include/glib \
7306 \
7307 /usr/include/qt \
7308 /usr/local/include/qt \
7309 \
7310 /usr/include/windows \
7311 /usr/include/wine \
7312 /usr/local/include/wine \
7313 \
7314 /usr/unsupported/include \
7315 /usr/athena/include \
7316 /usr/local/x11r5/include \
7317 /usr/lpp/Xamples/include \
7318 \
10f2d63a 7319 /usr/openwin/share/include \
928b5c08
VZ
7320 \
7321 /usr/include"
10f2d63a
VZ
7322
7323SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s/include/lib/g` "
7324
703e0a69
VZ
7325
7326cat > confcache <<\EOF
10f2d63a
VZ
7327# This file is a shell script that caches the results of configure
7328# tests run on this system so they can be shared between configure
703e0a69
VZ
7329# scripts and configure runs. It is not useful on other systems.
7330# If it contains results you don't want to keep, you may remove or edit it.
10f2d63a 7331#
703e0a69
VZ
7332# By default, configure uses ./config.cache as the cache file,
7333# creating it if it does not exist already. You can give configure
7334# the --cache-file=FILE option to use a different cache file; that is
7335# what configure does when it calls configure scripts in
7336# subdirectories, so they share the cache.
7337# Giving --cache-file=/dev/null disables caching, for debugging configure.
7338# config.status only pays attention to the cache file if you give it the
7339# --recheck option to rerun configure.
10f2d63a 7340#
703e0a69 7341EOF
10f2d63a
VZ
7342# The following way of writing the cache mishandles newlines in values,
7343# but we know of no workaround that is simple, portable, and efficient.
7344# So, don't put newlines in cache variables' values.
7345# Ultrix sh set writes to stderr and can't be redirected directly,
7346# and sets the high bit in the cache file unless we assign to the vars.
703e0a69
VZ
7347(set) 2>&1 |
7348 case `(ac_space=' '; set | grep ac_space) 2>&1` in
7349 *ac_space=\ *)
7350 # `set' does not quote correctly, so add quotes (double-quote substitution
7351 # turns \\\\ into \\, and sed turns \\ into \).
7352 sed -n \
7353 -e "s/'/'\\\\''/g" \
7354 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
7355 ;;
7356 *)
7357 # `set' quotes correctly as required by POSIX, so do not add quotes.
7358 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
7359 ;;
7360 esac >> confcache
7361if cmp -s $cache_file confcache; then
7362 :
7363else
10f2d63a 7364 if test -w $cache_file; then
703e0a69
VZ
7365 echo "updating cache $cache_file"
7366 cat confcache > $cache_file
10f2d63a
VZ
7367 else
7368 echo "not updating unwritable cache $cache_file"
7369 fi
7370fi
7371rm -f confcache
7372
703e0a69
VZ
7373
7374
dad6c0ea
VZ
7375AFMINSTALL=
7376
10f2d63a
VZ
7377if test "$wxUSE_GUI" = "yes"; then
7378
dad6c0ea
VZ
7379USE_GUI=1
7380
10f2d63a
VZ
7381TOOLKIT=
7382TOOLKIT_INCLUDE=
7383
10f2d63a
VZ
7384GUI_TK_LIBRARY=
7385GUI_TK_LINK=
7386
7387WXGTK12=
f6bcfd97 7388WXGTK127=
6f72b082 7389WXGTK20=
10f2d63a
VZ
7390
7391WXWINE=
7392
10f2d63a
VZ
7393if test "$wxUSE_CYGWIN" = 1 || test "$wxUSE_MINGW" = 1 ; then
7394 if test "$cross_compiling" = "yes" ; then
703e0a69 7395 echo "configure: warning: skipping windows.h check for cross-compilation" 1>&2
10f2d63a 7396 else
703e0a69
VZ
7397 echo $ac_n "checking for Windows headers""... $ac_c" 1>&6
7398echo "configure:7399: checking for Windows headers" >&5
7399
10f2d63a
VZ
7400ac_find_includes=
7401for ac_dir in $SEARCH_INCLUDE;
7402 do
7403 if test -f "$ac_dir/windows.h"; then
7404 ac_find_includes=$ac_dir
7405 break
7406 fi
7407 done
7408
7409 if test "$ac_find_includes" != "" ; then
703e0a69 7410 echo "$ac_t""found $ac_find_includes" 1>&6
10f2d63a
VZ
7411 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE -I$ac_find_includes"
7412 else
703e0a69
VZ
7413 echo "$ac_t""no" 1>&6
7414 { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; }
10f2d63a
VZ
7415 fi
7416 fi
7417
7418 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS msw"
7419 LIBS="$LIBS -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lctl3d32 -lcrtdll -ladvapi32 -lwsock32"
7420
f6bcfd97
BP
7421 if test "$wxUSE_ODBC" = "yes" ; then
7422 LIBS="$LIBS -lodbc32 -lole32 -loleaut32"
7423 fi
7424
10f2d63a
VZ
7425 if test "$wxUSE_MINGW" = 1; then
7426 LDFLAGS="$LDFLAGS -mwindows"
7427 fi
7428
7429 TOOLKIT=MSW
10f2d63a 7430 GUIDIST=MSW_DIST
32832908
VZ
7431
7432 RCINCSWITCH="--include-dir"
7433 RCDEFSWITCH="--define"
7434 RCPREPROCESSOR="--preprocessor \"\$(CC) -c -E -xc-header -DRC_INVOKED\""
7435 RCINPUTSWITCH="-i"
7436 RCOUTPUTSWITCH="-o"
7437 RESFLAGS="$RCPREPROCESSOR $RCINCSWITCH \$(top_srcdir)/include $RCINCSWITCH \$(top_srcdir)/\$(program_dir) $RCDEFSWITCH __WIN32__ $RCDEFSWITCH __WIN95__ $RCDEFSWITCH __GNUWIN32__"
7438
7439 RESPROGRAM="\$(RES_PROGRAM)"
7440
10f2d63a
VZ
7441fi
7442
7443if test "$wxUSE_GTK" = 1; then
703e0a69 7444 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
6f72b082
OK
7445if test "${with_gtk_prefix+set}" = set; then
7446 withval="$with_gtk_prefix"
7447 gtk_config_prefix="$withval"
7448else
7449 gtk_config_prefix=""
703e0a69 7450fi
6f72b082
OK
7451
7452# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
7453if test "${with_gtk_exec_prefix+set}" = set; then
7454 withval="$with_gtk_exec_prefix"
7455 gtk_config_exec_prefix="$withval"
7456else
7457 gtk_config_exec_prefix=""
703e0a69
VZ
7458fi
7459
6f72b082
OK
7460# Check whether --enable-gtktest or --disable-gtktest was given.
7461if test "${enable_gtktest+set}" = set; then
7462 enableval="$enable_gtktest"
703e0a69 7463 :
6f72b082
OK
7464else
7465 enable_gtktest=yes
703e0a69
VZ
7466fi
7467
6f72b082
OK
7468
7469 for module in . gthread
7470 do
7471 case "$module" in
703e0a69 7472 gthread)
6f72b082
OK
7473 gtk_config_args="$gtk_config_args gthread"
7474 ;;
7475 esac
7476 done
7477
7478 if test x$gtk_config_exec_prefix != x ; then
7479 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
7480 if test x${GTK_CONFIG_2_0+set} != xset ; then
7481 GTK_CONFIG_2_0=$gtk_config_exec_prefix/bin/gtk-config-2.0
7482 fi
7483 fi
7484 if test x$gtk_config_prefix != x ; then
7485 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
7486 if test x${GTK_CONFIG_2_0+set} != xset ; then
7487 GTK_CONFIG_2_0=$gtk_config_prefix/bin/gtk-config-2.0
7488 fi
7489 fi
7490
7491 # Extract the first word of "gtk-config-2.0", so it can be a program name with args.
7492set dummy gtk-config-2.0; ac_word=$2
703e0a69
VZ
7493echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7494echo "configure:7495: checking for $ac_word" >&5
7495if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG_2_0'+set}'`\" = set"; then
7496 echo $ac_n "(cached) $ac_c" 1>&6
6f72b082 7497else
703e0a69
VZ
7498 case "$GTK_CONFIG_2_0" in
7499 /*)
6f72b082
OK
7500 ac_cv_path_GTK_CONFIG_2_0="$GTK_CONFIG_2_0" # Let the user override the test with a path.
7501 ;;
703e0a69
VZ
7502 ?:/*)
7503 ac_cv_path_GTK_CONFIG_2_0="$GTK_CONFIG_2_0" # Let the user override the test with a dos path.
7504 ;;
6f72b082 7505 *)
703e0a69
VZ
7506 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7507 ac_dummy="$PATH"
7508 for ac_dir in $ac_dummy; do
7509 test -z "$ac_dir" && ac_dir=.
7510 if test -f $ac_dir/$ac_word; then
7511 ac_cv_path_GTK_CONFIG_2_0="$ac_dir/$ac_word"
7512 break
7513 fi
7514 done
7515 IFS="$ac_save_ifs"
6f72b082
OK
7516 test -z "$ac_cv_path_GTK_CONFIG_2_0" && ac_cv_path_GTK_CONFIG_2_0="no"
7517 ;;
7518esac
7519fi
703e0a69 7520GTK_CONFIG_2_0="$ac_cv_path_GTK_CONFIG_2_0"
6f72b082 7521if test -n "$GTK_CONFIG_2_0"; then
703e0a69 7522 echo "$ac_t""$GTK_CONFIG_2_0" 1>&6
6f72b082 7523else
703e0a69 7524 echo "$ac_t""no" 1>&6
6f72b082
OK
7525fi
7526
7527 min_gtk_version=1.3.1
703e0a69
VZ
7528 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
7529echo "configure:7530: checking for GTK - version >= $min_gtk_version" >&5
6f72b082
OK
7530 no_gtk=""
7531 if test "$GTK_CONFIG_2_0" = "no" ; then
7532 no_gtk=yes
7533 else
7534 GTK_CFLAGS=`$GTK_CONFIG_2_0 $gtk_config_args --cflags`
7535 GTK_LIBS=`$GTK_CONFIG_2_0 $gtk_config_args --libs`
7536 gtk_config_major_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \
7537 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
7538 gtk_config_minor_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \
7539 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
7540 gtk_config_micro_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \
7541 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
7542 if test "x$enable_gtktest" = "xyes" ; then
7543 ac_save_CFLAGS="$CFLAGS"
7544 ac_save_LIBS="$LIBS"
7545 CFLAGS="$CFLAGS $GTK_CFLAGS"
7546 LIBS="$GTK_LIBS $LIBS"
7547 rm -f conf.gtktest
7548 if test "$cross_compiling" = yes; then
7549 echo $ac_n "cross compiling; assumed OK... $ac_c"
7550else
703e0a69
VZ
7551 cat > conftest.$ac_ext <<EOF
7552#line 7553 "configure"
6f72b082
OK
7553#include "confdefs.h"
7554
7555#include <gtk/gtk.h>
7556#include <stdio.h>
7557#include <stdlib.h>
7558
703e0a69 7559int
6f72b082
OK
7560main ()
7561{
7562 int major, minor, micro;
7563 char *tmp_version;
7564
7565 system ("touch conf.gtktest");
7566
7567 /* HP/UX 9 (%@#!) writes to sscanf strings */
7568 tmp_version = g_strdup("$min_gtk_version");
7569 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
7570 printf("%s, bad version string\n", "$min_gtk_version");
7571 exit(1);
7572 }
7573
7574 if ((gtk_major_version != $gtk_config_major_version) ||
7575 (gtk_minor_version != $gtk_config_minor_version) ||
7576 (gtk_micro_version != $gtk_config_micro_version))
7577 {
703e0a69 7578 printf("\n*** 'gtk-config-2.0 --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
6f72b082
OK
7579 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
7580 gtk_major_version, gtk_minor_version, gtk_micro_version);
7581 printf ("*** was found! If gtk-config-2.0 was correct, then it is best\n");
7582 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
7583 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
7584 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
7585 printf("*** required on your system.\n");
7586 printf("*** If gtk-config-2.0 was wrong, set the environment variable GTK_CONFIG_2_0\n");
7587 printf("*** to point to the correct copy of gtk-config-2.0, and remove the file config.cache\n");
7588 printf("*** before re-running configure\n");
703e0a69 7589 }
6f72b082
OK
7590#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
7591 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
7592 (gtk_minor_version != GTK_MINOR_VERSION) ||
7593 (gtk_micro_version != GTK_MICRO_VERSION))
7594 {
7595 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
7596 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
7597 printf("*** library (version %d.%d.%d)\n",
7598 gtk_major_version, gtk_minor_version, gtk_micro_version);
7599 }
7600#endif /* defined (GTK_MAJOR_VERSION) ... */
7601 else
7602 {
7603 if ((gtk_major_version > major) ||
7604 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
7605 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
7606 {
7607 return 0;
7608 }
7609 else
7610 {
7611 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
7612 gtk_major_version, gtk_minor_version, gtk_micro_version);
7613 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
7614 major, minor, micro);
7615 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
7616 printf("***\n");
7617 printf("*** If you have already installed a sufficiently new version, this error\n");
7618 printf("*** probably means that the wrong copy of the gtk-config-2.0 shell script is\n");
7619 printf("*** being found. The easiest way to fix this is to remove the old version\n");
7620 printf("*** of GTK+, but you can also set the GTK_CONFIG_2_0 environment to point to the\n");
7621 printf("*** correct copy of gtk-config-2.0. (In this case, you will have to\n");
7622 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
7623 printf("*** so that the correct libraries are found at run-time))\n");
7624 }
7625 }
7626 return 1;
7627}
7628
703e0a69
VZ
7629EOF
7630if { (eval echo configure:7631: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7631then
6f72b082
OK
7632 :
7633else
703e0a69
VZ
7634 echo "configure: failed program was:" >&5
7635 cat conftest.$ac_ext >&5
7636 rm -fr conftest*
7637 no_gtk=yes
6f72b082 7638fi
703e0a69 7639rm -fr conftest*
6f72b082 7640fi
703e0a69 7641
6f72b082
OK
7642 CFLAGS="$ac_save_CFLAGS"
7643 LIBS="$ac_save_LIBS"
7644 fi
7645 fi
7646 if test "x$no_gtk" = x ; then
703e0a69
VZ
7647 echo "$ac_t""yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" 1>&6
7648 WXGTK20=1
6f72b082 7649 else
703e0a69 7650 echo "$ac_t""no" 1>&6
6f72b082
OK
7651 if test "$GTK_CONFIG_2_0" = "no" ; then
7652 echo "*** The gtk-config-2.0 script installed by GTK could not be found"
7653 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
7654 echo "*** your path, or set the GTK_CONFIG_2_0 environment variable to the"
7655 echo "*** full path to gtk-config-2.0."
7656 else
7657 if test -f conf.gtktest ; then
7658 :
7659 else
7660 echo "*** Could not run GTK test program, checking why..."
7661 CFLAGS="$CFLAGS $GTK_CFLAGS"
7662 LIBS="$LIBS $GTK_LIBS"
703e0a69
VZ
7663 cat > conftest.$ac_ext <<EOF
7664#line 7665 "configure"
6f72b082
OK
7665#include "confdefs.h"
7666
7667#include <gtk/gtk.h>
7668#include <stdio.h>
7669
703e0a69
VZ
7670int main() {
7671 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
7672; return 0; }
7673EOF
7674if { (eval echo configure:7675: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7675 rm -rf conftest*
6f72b082
OK
7676 echo "*** The test program compiled, but did not run. This usually means"
7677 echo "*** that the run-time linker is not finding GTK or finding the wrong"
7678 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
7679 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
7680 echo "*** to the installed location Also, make sure you have run ldconfig if that"
7681 echo "*** is required on your system"
7682 echo "***"
7683 echo "*** If you have an old version installed, it is best to remove it, although"
7684 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
7685 echo "***"
7686 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
7687 echo "*** came with the system with the command"
7688 echo "***"
703e0a69 7689 echo "*** rpm --erase --nodeps gtk gtk-devel"
6f72b082 7690else
703e0a69
VZ
7691 echo "configure: failed program was:" >&5
7692 cat conftest.$ac_ext >&5
7693 rm -rf conftest*
7694 echo "*** The test program failed to compile or link. See the file config.log for the"
6f72b082
OK
7695 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
7696 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
703e0a69 7697 echo "*** may want to edit the gtk-config-2.0 script: $GTK_CONFIG_2_0"
6f72b082 7698fi
703e0a69 7699rm -f conftest*
6f72b082
OK
7700 CFLAGS="$ac_save_CFLAGS"
7701 LIBS="$ac_save_LIBS"
7702 fi
7703 fi
7704 GTK_CFLAGS=""
7705 GTK_LIBS=""
703e0a69
VZ
7706
7707
10f2d63a
VZ
7708 if test x$gtk_config_exec_prefix != x ; then
7709 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
7710 if test x${GTK_CONFIG+set} != xset ; then
7711 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
7712 fi
7713 fi
7714 if test x$gtk_config_prefix != x ; then
7715 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
7716 if test x${GTK_CONFIG+set} != xset ; then
7717 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
7718 fi
7719 fi
7720
7721 # Extract the first word of "gtk-config", so it can be a program name with args.
7722set dummy gtk-config; ac_word=$2
703e0a69
VZ
7723echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7724echo "configure:7725: checking for $ac_word" >&5
7725if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
7726 echo $ac_n "(cached) $ac_c" 1>&6
f6bcfd97 7727else
703e0a69
VZ
7728 case "$GTK_CONFIG" in
7729 /*)
f6bcfd97
BP
7730 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
7731 ;;
703e0a69
VZ
7732 ?:/*)
7733 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
7734 ;;
f6bcfd97 7735 *)
703e0a69
VZ
7736 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7737 ac_dummy="$PATH"
7738 for ac_dir in $ac_dummy; do
7739 test -z "$ac_dir" && ac_dir=.
7740 if test -f $ac_dir/$ac_word; then
7741 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
7742 break
7743 fi
7744 done
7745 IFS="$ac_save_ifs"
f6bcfd97
BP
7746 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
7747 ;;
7748esac
7749fi
703e0a69 7750GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
f6bcfd97 7751if test -n "$GTK_CONFIG"; then
703e0a69 7752 echo "$ac_t""$GTK_CONFIG" 1>&6
f6bcfd97 7753else
703e0a69 7754 echo "$ac_t""no" 1>&6
f6bcfd97
BP
7755fi
7756
7757 min_gtk_version=1.2.7
703e0a69
VZ
7758 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
7759echo "configure:7760: checking for GTK - version >= $min_gtk_version" >&5
f6bcfd97
BP
7760 no_gtk=""
7761 if test "$GTK_CONFIG" != "no" ; then
7762 GTK_CFLAGS=`$GTK_CONFIG --cflags`
7763 GTK_LIBS=`$GTK_CONFIG --libs gthread`
7764 ac_save_CFLAGS="$CFLAGS"
7765 ac_save_LIBS="$LIBS"
7766 CFLAGS="$CFLAGS $GTK_CFLAGS"
7767 LIBS="$LIBS $GTK_LIBS"
7768 if test "$cross_compiling" = yes; then
7769 echo $ac_n "cross compiling; assumed OK... $ac_c"
7770else
703e0a69
VZ
7771 cat > conftest.$ac_ext <<EOF
7772#line 7773 "configure"
f6bcfd97
BP
7773#include "confdefs.h"
7774
7775#include <gtk/gtk.h>
7776#include <gtk/gtkfeatures.h>
7777#include <stdio.h>
7778#include <stdlib.h>
7779
7780int
7781main ()
7782{
7783 int major, minor, micro;
7784
7785 if (sscanf("$min_gtk_version", "%d.%d.%d", &major, &minor, &micro) != 3) {
7786 printf("%s, bad version string\n", "$min_gtk_version");
7787 exit(1);
7788 }
7789
7790 if ((GTK_MAJOR_VERSION != gtk_major_version) ||
7791 (GTK_MINOR_VERSION != gtk_minor_version) ||
7792 (GTK_MICRO_VERSION != gtk_micro_version)) {
7793 printf("Headers vs. library version mismatch!\n");
7794 exit(1);
7795 }
7796
7797 if (gtk_minor_version == 1) return FALSE;
7798
7799 return !((gtk_major_version > major) ||
7800 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
7801 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)));
7802}
7803
703e0a69
VZ
7804EOF
7805if { (eval echo configure:7806: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7806then
f6bcfd97
BP
7807 :
7808else
703e0a69
VZ
7809 echo "configure: failed program was:" >&5
7810 cat conftest.$ac_ext >&5
7811 rm -fr conftest*
7812 no_gtk=yes
f6bcfd97 7813fi
703e0a69 7814rm -fr conftest*
f6bcfd97 7815fi
703e0a69 7816
f6bcfd97
BP
7817 CFLAGS="$ac_save_CFLAGS"
7818 LIBS="$ac_save_LIBS"
7819 else
7820 no_gtk=yes
7821 fi
7822 if test "x$no_gtk" = x ; then
703e0a69 7823 echo "$ac_t""yes" 1>&6
f6bcfd97
BP
7824 WXGTK127=1
7825 else
703e0a69 7826 echo "$ac_t""no" 1>&6
f6bcfd97
BP
7827 GTK_CFLAGS=""
7828 GTK_LIBS=""
7829 :
7830 fi
703e0a69
VZ
7831
7832
f6bcfd97 7833
703e0a69 7834
f6bcfd97
BP
7835 if test x$gtk_config_exec_prefix != x ; then
7836 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
7837 if test x${GTK_CONFIG+set} != xset ; then
7838 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
7839 fi
7840 fi
7841 if test x$gtk_config_prefix != x ; then
7842 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
7843 if test x${GTK_CONFIG+set} != xset ; then
7844 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
7845 fi
7846 fi
7847
7848 # Extract the first word of "gtk-config", so it can be a program name with args.
7849set dummy gtk-config; ac_word=$2
703e0a69
VZ
7850echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7851echo "configure:7852: checking for $ac_word" >&5
7852if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
7853 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 7854else
703e0a69
VZ
7855 case "$GTK_CONFIG" in
7856 /*)
10f2d63a
VZ
7857 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
7858 ;;
703e0a69
VZ
7859 ?:/*)
7860 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
7861 ;;
10f2d63a 7862 *)
703e0a69
VZ
7863 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7864 ac_dummy="$PATH"
7865 for ac_dir in $ac_dummy; do
7866 test -z "$ac_dir" && ac_dir=.
7867 if test -f $ac_dir/$ac_word; then
7868 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
7869 break
7870 fi
7871 done
7872 IFS="$ac_save_ifs"
10f2d63a
VZ
7873 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
7874 ;;
7875esac
7876fi
703e0a69 7877GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
10f2d63a 7878if test -n "$GTK_CONFIG"; then
703e0a69 7879 echo "$ac_t""$GTK_CONFIG" 1>&6
10f2d63a 7880else
703e0a69 7881 echo "$ac_t""no" 1>&6
10f2d63a
VZ
7882fi
7883
04165bec 7884 min_gtk_version=1.2.3
703e0a69
VZ
7885 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
7886echo "configure:7887: checking for GTK - version >= $min_gtk_version" >&5
10f2d63a
VZ
7887 no_gtk=""
7888 if test "$GTK_CONFIG" != "no" ; then
7889 GTK_CFLAGS=`$GTK_CONFIG --cflags`
2224580a 7890 GTK_LIBS=`$GTK_CONFIG --libs gthread`
10f2d63a
VZ
7891 ac_save_CFLAGS="$CFLAGS"
7892 ac_save_LIBS="$LIBS"
7893 CFLAGS="$CFLAGS $GTK_CFLAGS"
7894 LIBS="$LIBS $GTK_LIBS"
7895 if test "$cross_compiling" = yes; then
7896 echo $ac_n "cross compiling; assumed OK... $ac_c"
7897else
703e0a69
VZ
7898 cat > conftest.$ac_ext <<EOF
7899#line 7900 "configure"
10f2d63a
VZ
7900#include "confdefs.h"
7901
7902#include <gtk/gtk.h>
f49f2b0c 7903#include <gtk/gtkfeatures.h>
10f2d63a 7904#include <stdio.h>
32832908 7905#include <stdlib.h>
10f2d63a
VZ
7906
7907int
7908main ()
7909{
7910 int major, minor, micro;
7911
7912 if (sscanf("$min_gtk_version", "%d.%d.%d", &major, &minor, &micro) != 3) {
7913 printf("%s, bad version string\n", "$min_gtk_version");
7914 exit(1);
7915 }
7916
f49f2b0c
RR
7917 if ((GTK_MAJOR_VERSION != gtk_major_version) ||
7918 (GTK_MINOR_VERSION != gtk_minor_version) ||
7919 (GTK_MICRO_VERSION != gtk_micro_version)) {
7920 printf("Headers vs. library version mismatch!\n");
7921 exit(1);
7922 }
7923
10f2d63a
VZ
7924 if (gtk_minor_version == 1) return FALSE;
7925
7926 return !((gtk_major_version > major) ||
7927 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
7928 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)));
7929}
7930
703e0a69
VZ
7931EOF
7932if { (eval echo configure:7933: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7933then
10f2d63a
VZ
7934 :
7935else
703e0a69
VZ
7936 echo "configure: failed program was:" >&5
7937 cat conftest.$ac_ext >&5
7938 rm -fr conftest*
7939 no_gtk=yes
10f2d63a 7940fi
703e0a69 7941rm -fr conftest*
10f2d63a 7942fi
703e0a69 7943
10f2d63a
VZ
7944 CFLAGS="$ac_save_CFLAGS"
7945 LIBS="$ac_save_LIBS"
7946 else
7947 no_gtk=yes
7948 fi
7949 if test "x$no_gtk" = x ; then
703e0a69 7950 echo "$ac_t""yes" 1>&6
10f2d63a
VZ
7951 WXGTK12=1
7952 else
703e0a69 7953 echo "$ac_t""no" 1>&6
10f2d63a
VZ
7954 GTK_CFLAGS=""
7955 GTK_LIBS=""
7e99ad86 7956 :
10f2d63a 7957 fi
703e0a69
VZ
7958
7959
10f2d63a 7960
703e0a69 7961
6f72b082 7962 fi
703e0a69
VZ
7963
7964
6232543b 7965 rm -f conf.gtktest
10f2d63a 7966
703e0a69 7967
6f72b082 7968 if test "$WXGTK12" != 1 -a "$WXGTK20" != 1; then
703e0a69 7969 { echo "configure: error:
7e99ad86
VZ
7970 Please check that gtk-config is in path, the directory
7971 where GTK+ libraries are installed (returned by
7972 'gtk-config --libs' command) is in LD_LIBRARY_PATH or
7973 equivalent variable and GTK+ is version 1.2.3 or above.
703e0a69 7974 " 1>&2; exit 1; }
7e99ad86
VZ
7975 fi
7976
10f2d63a 7977 TOOLKIT_INCLUDE="$GTK_CFLAGS"
2224580a 7978
703e0a69 7979
2224580a
VZ
7980 GUI_TK_LIBRARY="$GTK_LIBS"
7981
703e0a69 7982
dad6c0ea 7983 AFMINSTALL=afminstall
9ad43c8b 7984 TOOLKIT=GTK
10f2d63a 7985 GUIDIST=GTK_DIST
7ec2881a 7986
703e0a69
VZ
7987 echo $ac_n "checking for gdk_im_open in -lgdk""... $ac_c" 1>&6
7988echo "configure:7989: checking for gdk_im_open in -lgdk" >&5
7989ac_lib_var=`echo gdk'_'gdk_im_open | sed 'y%./+-%__p_%'`
7990if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7991 echo $ac_n "(cached) $ac_c" 1>&6
7ec2881a 7992else
703e0a69 7993 ac_save_LIBS="$LIBS"
7ec2881a 7994LIBS="-lgdk $LIBS"
703e0a69
VZ
7995cat > conftest.$ac_ext <<EOF
7996#line 7997 "configure"
7ec2881a
RR
7997#include "confdefs.h"
7998/* Override any gcc2 internal prototype to avoid an error. */
7999/* We use char because int might match the return type of a gcc2
703e0a69
VZ
8000 builtin and then its argument prototype would still apply. */
8001char gdk_im_open();
8002
8003int main() {
8004gdk_im_open()
8005; return 0; }
8006EOF
8007if { (eval echo configure:8008: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8008 rm -rf conftest*
8009 eval "ac_cv_lib_$ac_lib_var=yes"
8010else
8011 echo "configure: failed program was:" >&5
8012 cat conftest.$ac_ext >&5
8013 rm -rf conftest*
8014 eval "ac_cv_lib_$ac_lib_var=no"
8015fi
8016rm -f conftest*
8017LIBS="$ac_save_LIBS"
8018
8019fi
8020if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8021 echo "$ac_t""yes" 1>&6
8022 cat >> confdefs.h <<\EOF
7ec2881a
RR
8023#define HAVE_XIM 1
8024EOF
8025
703e0a69
VZ
8026else
8027 echo "$ac_t""no" 1>&6
7ec2881a
RR
8028fi
8029
10f2d63a
VZ
8030fi
8031
8032if test "$wxUSE_WINE" = 1; then
703e0a69
VZ
8033 echo $ac_n "checking for WINE includes""... $ac_c" 1>&6
8034echo "configure:8035: checking for WINE includes" >&5
8035
10f2d63a
VZ
8036ac_find_includes=
8037for ac_dir in $SEARCH_INCLUDE;
8038 do
8039 if test -f "$ac_dir/windows.h"; then
8040 ac_find_includes=$ac_dir
8041 break
8042 fi
8043 done
8044
8045 if test "$ac_find_includes" != "" ; then
703e0a69 8046 echo "$ac_t""found $ac_find_includes" 1>&6
10f2d63a
VZ
8047 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE -I$ac_find_includes"
8048 else
703e0a69
VZ
8049 echo "$ac_t""no" 1>&6
8050 { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; }
10f2d63a
VZ
8051 fi
8052
8053 XPM_LINK=""
703e0a69
VZ
8054 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
8055echo "configure:8056: checking for Xpm library" >&5
8056
10f2d63a
VZ
8057ac_find_libraries=
8058for ac_dir in $SEARCH_LIB;
8059 do
8060 for ac_extension in a so sl; do
8061 if test -f "$ac_dir/libXpm.$ac_extension"; then
8062 ac_find_libraries=$ac_dir
8063 break 2
8064 fi
8065 done
8066 done
8067
8068 if test "$ac_find_libraries" != "" ; then
8069 GUI_TK_LIBRARY="-L$ac_find_libraries"
8070 XPM_LINK="-lXpm"
703e0a69 8071 cat >> confdefs.h <<\EOF
10f2d63a
VZ
8072#define wxHAVE_LIB_XPM 1
8073EOF
8074
703e0a69 8075 echo "$ac_t""found at $ac_find_libraries" 1>&6
10f2d63a 8076 else
703e0a69
VZ
8077 echo "$ac_t""no" 1>&6
8078 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
10f2d63a
VZ
8079 fi
8080
8081 MESA_LINK=""
703e0a69
VZ
8082 echo $ac_n "checking for Mesa library""... $ac_c" 1>&6
8083echo "configure:8084: checking for Mesa library" >&5
8084
10f2d63a
VZ
8085ac_find_libraries=
8086for ac_dir in $SEARCH_LIB;
8087 do
8088 for ac_extension in a so sl; do
8089 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
8090 ac_find_libraries=$ac_dir
8091 break 2
8092 fi
8093 done
8094 done
8095
8096 if test "$ac_find_libraries" != "" ; then
8097 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -L$ac_find_libraries"
8098 MESA_LINK="-lMesaGL"
703e0a69 8099 echo "$ac_t""found at $ac_find_libraries" 1>&6
10f2d63a 8100 else
703e0a69 8101 { echo "configure: error: no" 1>&2; exit 1; }
10f2d63a
VZ
8102 fi
8103
8916026b 8104 GUI_TK_LINK="-lwine $MESA_LINK $XPM_LINK -lXxf86dga -lXxf86vm -lSM -lICE -lXext -lXmu -lX11 -lncurses"
10f2d63a
VZ
8105 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $GUI_TK_LINK"
8106 WXWINE=1
8107 TOOLKIT=MSW
10f2d63a
VZ
8108 GUIDIST=MSW_DIST
8109fi
8110
703e0a69
VZ
8111
8112# If we find X, set shell vars x_includes and x_libraries to the
8113# paths, otherwise set no_x=yes.
8114# Uses ac_ vars as temps to allow command line to override cache and checks.
8115# --without-x overrides everything else, but does not touch the cache.
8116echo $ac_n "checking for X""... $ac_c" 1>&6
8117echo "configure:8118: checking for X" >&5
ab9b9eab
VZ
8118
8119# Check whether --with-x or --without-x was given.
8120if test "${with_x+set}" = set; then
8121 withval="$with_x"
703e0a69
VZ
8122 :
8123fi
ba337fe7 8124
ab9b9eab
VZ
8125# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
8126if test "x$with_x" = xno; then
8127 # The user explicitly disabled X.
8128 have_x=disabled
8129else
8130 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
8131 # Both variables are already set.
8132 have_x=yes
8133 else
703e0a69
VZ
8134if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
8135 echo $ac_n "(cached) $ac_c" 1>&6
ab9b9eab
VZ
8136else
8137 # One or both of the vars are not set, and there is no cached value.
703e0a69
VZ
8138ac_x_includes=NO ac_x_libraries=NO
8139rm -fr conftestdir
8140if mkdir conftestdir; then
8141 cd conftestdir
ab9b9eab 8142 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
703e0a69 8143 cat > Imakefile <<'EOF'
ab9b9eab
VZ
8144acfindx:
8145 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
8146EOF
8147 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
8148 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8149 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
8150 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
10f2d63a 8151 for ac_extension in a so sl; do
ab9b9eab 8152 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
703e0a69 8153 test -f $ac_im_libdir/libX11.$ac_extension; then
ab9b9eab 8154 ac_im_usrlibdir=$ac_im_libdir; break
10f2d63a
VZ
8155 fi
8156 done
ab9b9eab
VZ
8157 # Screen out bogus values from the imake configuration. They are
8158 # bogus both because they are the default anyway, and because
8159 # using them would break gcc on systems where it needs fixed includes.
703e0a69 8160 case "$ac_im_incroot" in
ab9b9eab 8161 /usr/include) ;;
703e0a69 8162 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
ab9b9eab 8163 esac
703e0a69 8164 case "$ac_im_usrlibdir" in
ab9b9eab 8165 /usr/lib | /lib) ;;
703e0a69 8166 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
ab9b9eab 8167 esac
ba337fe7 8168 fi
ab9b9eab 8169 cd ..
703e0a69 8170 rm -fr conftestdir
ab9b9eab 8171fi
10f2d63a 8172
703e0a69
VZ
8173if test "$ac_x_includes" = NO; then
8174 # Guess where to find include files, by looking for this one X11 .h file.
8175 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
8176
ab9b9eab 8177 # First, try using that file with no special directory specified.
703e0a69
VZ
8178cat > conftest.$ac_ext <<EOF
8179#line 8180 "configure"
ab9b9eab 8180#include "confdefs.h"
703e0a69
VZ
8181#include <$x_direct_test_include>
8182EOF
8183ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8184{ (eval echo configure:8185: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8185ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8186if test -z "$ac_err"; then
8187 rm -rf conftest*
ab9b9eab
VZ
8188 # We can compile using X headers with no special include directory.
8189ac_x_includes=
8190else
703e0a69
VZ
8191 echo "$ac_err" >&5
8192 echo "configure: failed program was:" >&5
ab9b9eab 8193 cat conftest.$ac_ext >&5
703e0a69
VZ
8194 rm -rf conftest*
8195 # Look for the header file in a standard set of common directories.
8196# Check X11 before X11Rn because it is often a symlink to the current release.
8197 for ac_dir in \
8198 /usr/X11/include \
8199 /usr/X11R6/include \
8200 /usr/X11R5/include \
8201 /usr/X11R4/include \
8202 \
8203 /usr/include/X11 \
8204 /usr/include/X11R6 \
8205 /usr/include/X11R5 \
8206 /usr/include/X11R4 \
8207 \
8208 /usr/local/X11/include \
8209 /usr/local/X11R6/include \
8210 /usr/local/X11R5/include \
8211 /usr/local/X11R4/include \
8212 \
8213 /usr/local/include/X11 \
8214 /usr/local/include/X11R6 \
8215 /usr/local/include/X11R5 \
8216 /usr/local/include/X11R4 \
8217 \
8218 /usr/X386/include \
8219 /usr/x386/include \
8220 /usr/XFree86/include/X11 \
8221 \
8222 /usr/include \
8223 /usr/local/include \
8224 /usr/unsupported/include \
8225 /usr/athena/include \
8226 /usr/local/x11r5/include \
8227 /usr/lpp/Xamples/include \
8228 \
8229 /usr/openwin/include \
8230 /usr/openwin/share/include \
8231 ; \
8232 do
8233 if test -r "$ac_dir/$x_direct_test_include"; then
8234 ac_x_includes=$ac_dir
8235 break
8236 fi
8237 done
ab9b9eab 8238fi
703e0a69
VZ
8239rm -f conftest*
8240fi # $ac_x_includes = NO
10f2d63a 8241
703e0a69 8242if test "$ac_x_libraries" = NO; then
ab9b9eab 8243 # Check for the libraries.
703e0a69
VZ
8244
8245 test -z "$x_direct_test_library" && x_direct_test_library=Xt
8246 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
8247
ab9b9eab
VZ
8248 # See if we find them without any special options.
8249 # Don't add to $LIBS permanently.
703e0a69
VZ
8250 ac_save_LIBS="$LIBS"
8251 LIBS="-l$x_direct_test_library $LIBS"
8252cat > conftest.$ac_ext <<EOF
8253#line 8254 "configure"
ab9b9eab 8254#include "confdefs.h"
703e0a69
VZ
8255
8256int main() {
8257${x_direct_test_function}()
8258; return 0; }
8259EOF
8260if { (eval echo configure:8261: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8261 rm -rf conftest*
8262 LIBS="$ac_save_LIBS"
ab9b9eab
VZ
8263# We can link X programs with no special library path.
8264ac_x_libraries=
8265else
703e0a69
VZ
8266 echo "configure: failed program was:" >&5
8267 cat conftest.$ac_ext >&5
8268 rm -rf conftest*
8269 LIBS="$ac_save_LIBS"
8270# First see if replacing the include by lib works.
8271# Check X11 before X11Rn because it is often a symlink to the current release.
8272for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
8273 /usr/X11/lib \
8274 /usr/X11R6/lib \
8275 /usr/X11R5/lib \
8276 /usr/X11R4/lib \
8277 \
8278 /usr/lib/X11 \
8279 /usr/lib/X11R6 \
8280 /usr/lib/X11R5 \
8281 /usr/lib/X11R4 \
8282 \
8283 /usr/local/X11/lib \
8284 /usr/local/X11R6/lib \
8285 /usr/local/X11R5/lib \
8286 /usr/local/X11R4/lib \
8287 \
8288 /usr/local/lib/X11 \
8289 /usr/local/lib/X11R6 \
8290 /usr/local/lib/X11R5 \
8291 /usr/local/lib/X11R4 \
8292 \
8293 /usr/X386/lib \
8294 /usr/x386/lib \
8295 /usr/XFree86/lib/X11 \
8296 \
8297 /usr/lib \
8298 /usr/local/lib \
8299 /usr/unsupported/lib \
8300 /usr/athena/lib \
8301 /usr/local/x11r5/lib \
8302 /usr/lpp/Xamples/lib \
8303 /lib/usr/lib/X11 \
8304 \
8305 /usr/openwin/lib \
8306 /usr/openwin/share/lib \
8307 ; \
ab9b9eab
VZ
8308do
8309 for ac_extension in a so sl; do
703e0a69 8310 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
ab9b9eab
VZ
8311 ac_x_libraries=$ac_dir
8312 break 2
10f2d63a 8313 fi
10f2d63a 8314 done
ab9b9eab
VZ
8315done
8316fi
703e0a69
VZ
8317rm -f conftest*
8318fi # $ac_x_libraries = NO
10f2d63a 8319
703e0a69 8320if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
ab9b9eab
VZ
8321 # Didn't find X anywhere. Cache the known absence of X.
8322 ac_cv_have_x="have_x=no"
8323else
8324 # Record where we found X for the cache.
8325 ac_cv_have_x="have_x=yes \
8326 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
8327fi
8328fi
10f2d63a 8329 fi
ab9b9eab
VZ
8330 eval "$ac_cv_have_x"
8331fi # $with_x != no
10f2d63a 8332
ab9b9eab 8333if test "$have_x" != yes; then
703e0a69 8334 echo "$ac_t""$have_x" 1>&6
ab9b9eab
VZ
8335 no_x=yes
8336else
8337 # If each of the values was on the command line, it overrides each guess.
8338 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
8339 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
8340 # Update the cache value to reflect the command line values.
8341 ac_cv_have_x="have_x=yes \
8342 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
703e0a69 8343 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
ab9b9eab 8344fi
10f2d63a 8345
ab9b9eab
VZ
8346if test "$no_x" = yes; then
8347 # Not all programs may use this symbol, but it does not hurt to define it.
703e0a69 8348 cat >> confdefs.h <<\EOF
ab9b9eab
VZ
8349#define X_DISPLAY_MISSING 1
8350EOF
10f2d63a 8351
ab9b9eab
VZ
8352 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
8353else
8354 if test -n "$x_includes"; then
8355 X_CFLAGS="$X_CFLAGS -I$x_includes"
10f2d63a
VZ
8356 fi
8357
ab9b9eab
VZ
8358 # It would also be nice to do this for all -L options, not just this one.
8359 if test -n "$x_libraries"; then
8360 X_LIBS="$X_LIBS -L$x_libraries"
8361 # For Solaris; some versions of Sun CC require a space after -R and
8362 # others require no space. Words are not sufficient . . . .
703e0a69 8363 case "`(uname -sr) 2>/dev/null`" in
ab9b9eab 8364 "SunOS 5"*)
703e0a69
VZ
8365 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
8366echo "configure:8367: checking whether -R must be followed by a space" >&5
8367 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
8368 cat > conftest.$ac_ext <<EOF
8369#line 8370 "configure"
ab9b9eab 8370#include "confdefs.h"
10f2d63a 8371
703e0a69 8372int main() {
788deba1 8373
703e0a69
VZ
8374; return 0; }
8375EOF
8376if { (eval echo configure:8377: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8377 rm -rf conftest*
ab9b9eab
VZ
8378 ac_R_nospace=yes
8379else
703e0a69
VZ
8380 echo "configure: failed program was:" >&5
8381 cat conftest.$ac_ext >&5
8382 rm -rf conftest*
8383 ac_R_nospace=no
ab9b9eab 8384fi
703e0a69 8385rm -f conftest*
ab9b9eab 8386 if test $ac_R_nospace = yes; then
703e0a69 8387 echo "$ac_t""no" 1>&6
ab9b9eab
VZ
8388 X_LIBS="$X_LIBS -R$x_libraries"
8389 else
8390 LIBS="$ac_xsave_LIBS -R $x_libraries"
703e0a69
VZ
8391 cat > conftest.$ac_ext <<EOF
8392#line 8393 "configure"
ab9b9eab 8393#include "confdefs.h"
788deba1 8394
703e0a69 8395int main() {
ab9b9eab 8396
703e0a69
VZ
8397; return 0; }
8398EOF
8399if { (eval echo configure:8400: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8400 rm -rf conftest*
ab9b9eab
VZ
8401 ac_R_space=yes
8402else
703e0a69
VZ
8403 echo "configure: failed program was:" >&5
8404 cat conftest.$ac_ext >&5
8405 rm -rf conftest*
8406 ac_R_space=no
ab9b9eab 8407fi
703e0a69 8408rm -f conftest*
ab9b9eab 8409 if test $ac_R_space = yes; then
703e0a69 8410 echo "$ac_t""yes" 1>&6
ab9b9eab
VZ
8411 X_LIBS="$X_LIBS -R $x_libraries"
8412 else
703e0a69 8413 echo "$ac_t""neither works" 1>&6
ab9b9eab
VZ
8414 fi
8415 fi
703e0a69 8416 LIBS="$ac_xsave_LIBS"
ab9b9eab
VZ
8417 esac
8418 fi
8419
8420 # Check for system-dependent libraries X programs must link with.
8421 # Do this before checking for the system-independent R6 libraries
8422 # (-lICE), since we may need -lsocket or whatever for X linking.
8423
8424 if test "$ISC" = yes; then
8425 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
8426 else
703e0a69
VZ
8427 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
8428 # libraries were built with DECnet support. And karl@cs.umb.edu says
ab9b9eab 8429 # the Alpha needs dnet_stub (dnet does not exist).
703e0a69
VZ
8430 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
8431echo "configure:8432: checking for dnet_ntoa in -ldnet" >&5
8432ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
8433if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8434 echo $ac_n "(cached) $ac_c" 1>&6
ab9b9eab 8435else
703e0a69 8436 ac_save_LIBS="$LIBS"
ab9b9eab 8437LIBS="-ldnet $LIBS"
703e0a69
VZ
8438cat > conftest.$ac_ext <<EOF
8439#line 8440 "configure"
ab9b9eab
VZ
8440#include "confdefs.h"
8441/* Override any gcc2 internal prototype to avoid an error. */
8442/* We use char because int might match the return type of a gcc2
703e0a69
VZ
8443 builtin and then its argument prototype would still apply. */
8444char dnet_ntoa();
8445
8446int main() {
8447dnet_ntoa()
8448; return 0; }
8449EOF
8450if { (eval echo configure:8451: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8451 rm -rf conftest*
8452 eval "ac_cv_lib_$ac_lib_var=yes"
8453else
8454 echo "configure: failed program was:" >&5
8455 cat conftest.$ac_ext >&5
8456 rm -rf conftest*
8457 eval "ac_cv_lib_$ac_lib_var=no"
8458fi
8459rm -f conftest*
8460LIBS="$ac_save_LIBS"
8461
8462fi
8463if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8464 echo "$ac_t""yes" 1>&6
ab9b9eab 8465 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
703e0a69
VZ
8466else
8467 echo "$ac_t""no" 1>&6
ab9b9eab
VZ
8468fi
8469
8470 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
703e0a69
VZ
8471 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
8472echo "configure:8473: checking for dnet_ntoa in -ldnet_stub" >&5
8473ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
8474if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8475 echo $ac_n "(cached) $ac_c" 1>&6
ab9b9eab 8476else
703e0a69 8477 ac_save_LIBS="$LIBS"
ab9b9eab 8478LIBS="-ldnet_stub $LIBS"
703e0a69
VZ
8479cat > conftest.$ac_ext <<EOF
8480#line 8481 "configure"
ab9b9eab
VZ
8481#include "confdefs.h"
8482/* Override any gcc2 internal prototype to avoid an error. */
8483/* We use char because int might match the return type of a gcc2
703e0a69
VZ
8484 builtin and then its argument prototype would still apply. */
8485char dnet_ntoa();
8486
8487int main() {
8488dnet_ntoa()
8489; return 0; }
8490EOF
8491if { (eval echo configure:8492: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8492 rm -rf conftest*
8493 eval "ac_cv_lib_$ac_lib_var=yes"
8494else
8495 echo "configure: failed program was:" >&5
8496 cat conftest.$ac_ext >&5
8497 rm -rf conftest*
8498 eval "ac_cv_lib_$ac_lib_var=no"
8499fi
8500rm -f conftest*
8501LIBS="$ac_save_LIBS"
8502
8503fi
8504if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8505 echo "$ac_t""yes" 1>&6
ab9b9eab 8506 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
703e0a69
VZ
8507else
8508 echo "$ac_t""no" 1>&6
ab9b9eab
VZ
8509fi
8510
8511 fi
8512
8513 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
8514 # to get the SysV transport functions.
703e0a69 8515 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
ab9b9eab
VZ
8516 # needs -lnsl.
8517 # The nsl library prevents programs from opening the X display
703e0a69
VZ
8518 # on Irix 5.2, according to dickey@clark.net.
8519 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
8520echo "configure:8521: checking for gethostbyname" >&5
8521if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
8522 echo $ac_n "(cached) $ac_c" 1>&6
8523else
8524 cat > conftest.$ac_ext <<EOF
8525#line 8526 "configure"
ab9b9eab
VZ
8526#include "confdefs.h"
8527/* System header to define __stub macros and hopefully few prototypes,
703e0a69 8528 which can conflict with char gethostbyname(); below. */
ab9b9eab
VZ
8529#include <assert.h>
8530/* Override any gcc2 internal prototype to avoid an error. */
8531/* We use char because int might match the return type of a gcc2
703e0a69
VZ
8532 builtin and then its argument prototype would still apply. */
8533char gethostbyname();
8534
8535int main() {
ab9b9eab
VZ
8536
8537/* The GNU C library defines this for functions which it implements
8538 to always fail with ENOSYS. Some functions are actually named
8539 something starting with __ and the normal name is an alias. */
8540#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
8541choke me
8542#else
703e0a69 8543gethostbyname();
ab9b9eab
VZ
8544#endif
8545
703e0a69
VZ
8546; return 0; }
8547EOF
8548if { (eval echo configure:8549: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8549 rm -rf conftest*
8550 eval "ac_cv_func_gethostbyname=yes"
8551else
8552 echo "configure: failed program was:" >&5
8553 cat conftest.$ac_ext >&5
8554 rm -rf conftest*
8555 eval "ac_cv_func_gethostbyname=no"
8556fi
8557rm -f conftest*
8558fi
8559
8560if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
8561 echo "$ac_t""yes" 1>&6
8562 :
8563else
8564 echo "$ac_t""no" 1>&6
8565fi
ab9b9eab
VZ
8566
8567 if test $ac_cv_func_gethostbyname = no; then
703e0a69
VZ
8568 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
8569echo "configure:8570: checking for gethostbyname in -lnsl" >&5
8570ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
8571if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8572 echo $ac_n "(cached) $ac_c" 1>&6
ab9b9eab 8573else
703e0a69 8574 ac_save_LIBS="$LIBS"
ab9b9eab 8575LIBS="-lnsl $LIBS"
703e0a69
VZ
8576cat > conftest.$ac_ext <<EOF
8577#line 8578 "configure"
ab9b9eab
VZ
8578#include "confdefs.h"
8579/* Override any gcc2 internal prototype to avoid an error. */
8580/* We use char because int might match the return type of a gcc2
703e0a69
VZ
8581 builtin and then its argument prototype would still apply. */
8582char gethostbyname();
ab9b9eab 8583
703e0a69
VZ
8584int main() {
8585gethostbyname()
8586; return 0; }
8587EOF
8588if { (eval echo configure:8589: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8589 rm -rf conftest*
8590 eval "ac_cv_lib_$ac_lib_var=yes"
ab9b9eab 8591else
703e0a69
VZ
8592 echo "configure: failed program was:" >&5
8593 cat conftest.$ac_ext >&5
8594 rm -rf conftest*
8595 eval "ac_cv_lib_$ac_lib_var=no"
8596fi
8597rm -f conftest*
8598LIBS="$ac_save_LIBS"
6232543b 8599
703e0a69
VZ
8600fi
8601if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8602 echo "$ac_t""yes" 1>&6
8603 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
8604else
8605 echo "$ac_t""no" 1>&6
ab9b9eab
VZ
8606fi
8607
8608 fi
8609
8610 # lieder@skyler.mavd.honeywell.com says without -lsocket,
8611 # socket/setsockopt and other routines are undefined under SCO ODT
8612 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
703e0a69
VZ
8613 # on later versions), says simon@lia.di.epfl.ch: it contains
8614 # gethostby* variants that don't use the nameserver (or something).
8615 # -lsocket must be given before -lnsl if both are needed.
8616 # We assume that if connect needs -lnsl, so does gethostbyname.
8617 echo $ac_n "checking for connect""... $ac_c" 1>&6
8618echo "configure:8619: checking for connect" >&5
8619if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
8620 echo $ac_n "(cached) $ac_c" 1>&6
8621else
8622 cat > conftest.$ac_ext <<EOF
8623#line 8624 "configure"
ab9b9eab
VZ
8624#include "confdefs.h"
8625/* System header to define __stub macros and hopefully few prototypes,
703e0a69 8626 which can conflict with char connect(); below. */
ab9b9eab
VZ
8627#include <assert.h>
8628/* Override any gcc2 internal prototype to avoid an error. */
8629/* We use char because int might match the return type of a gcc2
703e0a69
VZ
8630 builtin and then its argument prototype would still apply. */
8631char connect();
8632
8633int main() {
ab9b9eab
VZ
8634
8635/* The GNU C library defines this for functions which it implements
8636 to always fail with ENOSYS. Some functions are actually named
8637 something starting with __ and the normal name is an alias. */
8638#if defined (__stub_connect) || defined (__stub___connect)
8639choke me
8640#else
703e0a69 8641connect();
ab9b9eab
VZ
8642#endif
8643
703e0a69
VZ
8644; return 0; }
8645EOF
8646if { (eval echo configure:8647: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8647 rm -rf conftest*
8648 eval "ac_cv_func_connect=yes"
8649else
8650 echo "configure: failed program was:" >&5
8651 cat conftest.$ac_ext >&5
8652 rm -rf conftest*
8653 eval "ac_cv_func_connect=no"
8654fi
8655rm -f conftest*
8656fi
8657
8658if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
8659 echo "$ac_t""yes" 1>&6
8660 :
8661else
8662 echo "$ac_t""no" 1>&6
8663fi
ab9b9eab
VZ
8664
8665 if test $ac_cv_func_connect = no; then
703e0a69
VZ
8666 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
8667echo "configure:8668: checking for connect in -lsocket" >&5
8668ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
8669if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8670 echo $ac_n "(cached) $ac_c" 1>&6
ab9b9eab 8671else
703e0a69 8672 ac_save_LIBS="$LIBS"
ab9b9eab 8673LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
703e0a69
VZ
8674cat > conftest.$ac_ext <<EOF
8675#line 8676 "configure"
ab9b9eab
VZ
8676#include "confdefs.h"
8677/* Override any gcc2 internal prototype to avoid an error. */
8678/* We use char because int might match the return type of a gcc2
703e0a69
VZ
8679 builtin and then its argument prototype would still apply. */
8680char connect();
8681
8682int main() {
8683connect()
8684; return 0; }
8685EOF
8686if { (eval echo configure:8687: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8687 rm -rf conftest*
8688 eval "ac_cv_lib_$ac_lib_var=yes"
8689else
8690 echo "configure: failed program was:" >&5
8691 cat conftest.$ac_ext >&5
8692 rm -rf conftest*
8693 eval "ac_cv_lib_$ac_lib_var=no"
8694fi
8695rm -f conftest*
8696LIBS="$ac_save_LIBS"
8697
8698fi
8699if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8700 echo "$ac_t""yes" 1>&6
ab9b9eab 8701 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
703e0a69
VZ
8702else
8703 echo "$ac_t""no" 1>&6
ab9b9eab
VZ
8704fi
8705
8706 fi
8707
703e0a69
VZ
8708 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
8709 echo $ac_n "checking for remove""... $ac_c" 1>&6
8710echo "configure:8711: checking for remove" >&5
8711if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
8712 echo $ac_n "(cached) $ac_c" 1>&6
ab9b9eab 8713else
703e0a69
VZ
8714 cat > conftest.$ac_ext <<EOF
8715#line 8716 "configure"
ab9b9eab
VZ
8716#include "confdefs.h"
8717/* System header to define __stub macros and hopefully few prototypes,
703e0a69 8718 which can conflict with char remove(); below. */
ab9b9eab
VZ
8719#include <assert.h>
8720/* Override any gcc2 internal prototype to avoid an error. */
8721/* We use char because int might match the return type of a gcc2
703e0a69
VZ
8722 builtin and then its argument prototype would still apply. */
8723char remove();
8724
8725int main() {
ab9b9eab
VZ
8726
8727/* The GNU C library defines this for functions which it implements
8728 to always fail with ENOSYS. Some functions are actually named
8729 something starting with __ and the normal name is an alias. */
8730#if defined (__stub_remove) || defined (__stub___remove)
8731choke me
8732#else
703e0a69 8733remove();
ab9b9eab
VZ
8734#endif
8735
703e0a69
VZ
8736; return 0; }
8737EOF
8738if { (eval echo configure:8739: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8739 rm -rf conftest*
8740 eval "ac_cv_func_remove=yes"
8741else
8742 echo "configure: failed program was:" >&5
8743 cat conftest.$ac_ext >&5
8744 rm -rf conftest*
8745 eval "ac_cv_func_remove=no"
8746fi
8747rm -f conftest*
8748fi
8749
8750if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
8751 echo "$ac_t""yes" 1>&6
8752 :
8753else
8754 echo "$ac_t""no" 1>&6
8755fi
ab9b9eab
VZ
8756
8757 if test $ac_cv_func_remove = no; then
703e0a69
VZ
8758 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
8759echo "configure:8760: checking for remove in -lposix" >&5
8760ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
8761if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8762 echo $ac_n "(cached) $ac_c" 1>&6
ab9b9eab 8763else
703e0a69 8764 ac_save_LIBS="$LIBS"
ab9b9eab 8765LIBS="-lposix $LIBS"
703e0a69
VZ
8766cat > conftest.$ac_ext <<EOF
8767#line 8768 "configure"
ab9b9eab
VZ
8768#include "confdefs.h"
8769/* Override any gcc2 internal prototype to avoid an error. */
8770/* We use char because int might match the return type of a gcc2
703e0a69
VZ
8771 builtin and then its argument prototype would still apply. */
8772char remove();
8773
8774int main() {
8775remove()
8776; return 0; }
8777EOF
8778if { (eval echo configure:8779: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8779 rm -rf conftest*
8780 eval "ac_cv_lib_$ac_lib_var=yes"
8781else
8782 echo "configure: failed program was:" >&5
8783 cat conftest.$ac_ext >&5
8784 rm -rf conftest*
8785 eval "ac_cv_lib_$ac_lib_var=no"
8786fi
8787rm -f conftest*
8788LIBS="$ac_save_LIBS"
8789
8790fi
8791if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8792 echo "$ac_t""yes" 1>&6
ab9b9eab 8793 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
703e0a69
VZ
8794else
8795 echo "$ac_t""no" 1>&6
ab9b9eab
VZ
8796fi
8797
8798 fi
8799
8800 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
703e0a69
VZ
8801 echo $ac_n "checking for shmat""... $ac_c" 1>&6
8802echo "configure:8803: checking for shmat" >&5
8803if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
8804 echo $ac_n "(cached) $ac_c" 1>&6
ab9b9eab 8805else
703e0a69
VZ
8806 cat > conftest.$ac_ext <<EOF
8807#line 8808 "configure"
ab9b9eab
VZ
8808#include "confdefs.h"
8809/* System header to define __stub macros and hopefully few prototypes,
703e0a69 8810 which can conflict with char shmat(); below. */
ab9b9eab
VZ
8811#include <assert.h>
8812/* Override any gcc2 internal prototype to avoid an error. */
8813/* We use char because int might match the return type of a gcc2
703e0a69
VZ
8814 builtin and then its argument prototype would still apply. */
8815char shmat();
8816
8817int main() {
ab9b9eab
VZ
8818
8819/* The GNU C library defines this for functions which it implements
8820 to always fail with ENOSYS. Some functions are actually named
8821 something starting with __ and the normal name is an alias. */
8822#if defined (__stub_shmat) || defined (__stub___shmat)
8823choke me
8824#else
703e0a69 8825shmat();
ab9b9eab
VZ
8826#endif
8827
703e0a69
VZ
8828; return 0; }
8829EOF
8830if { (eval echo configure:8831: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8831 rm -rf conftest*
8832 eval "ac_cv_func_shmat=yes"
8833else
8834 echo "configure: failed program was:" >&5
8835 cat conftest.$ac_ext >&5
8836 rm -rf conftest*
8837 eval "ac_cv_func_shmat=no"
8838fi
8839rm -f conftest*
8840fi
8841
8842if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
8843 echo "$ac_t""yes" 1>&6
8844 :
8845else
8846 echo "$ac_t""no" 1>&6
8847fi
ab9b9eab
VZ
8848
8849 if test $ac_cv_func_shmat = no; then
703e0a69
VZ
8850 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
8851echo "configure:8852: checking for shmat in -lipc" >&5
8852ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
8853if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8854 echo $ac_n "(cached) $ac_c" 1>&6
ab9b9eab 8855else
703e0a69 8856 ac_save_LIBS="$LIBS"
ab9b9eab 8857LIBS="-lipc $LIBS"
703e0a69
VZ
8858cat > conftest.$ac_ext <<EOF
8859#line 8860 "configure"
ab9b9eab
VZ
8860#include "confdefs.h"
8861/* Override any gcc2 internal prototype to avoid an error. */
8862/* We use char because int might match the return type of a gcc2
703e0a69
VZ
8863 builtin and then its argument prototype would still apply. */
8864char shmat();
8865
8866int main() {
8867shmat()
8868; return 0; }
8869EOF
8870if { (eval echo configure:8871: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8871 rm -rf conftest*
8872 eval "ac_cv_lib_$ac_lib_var=yes"
8873else
8874 echo "configure: failed program was:" >&5
8875 cat conftest.$ac_ext >&5
8876 rm -rf conftest*
8877 eval "ac_cv_lib_$ac_lib_var=no"
8878fi
8879rm -f conftest*
8880LIBS="$ac_save_LIBS"
8881
8882fi
8883if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8884 echo "$ac_t""yes" 1>&6
ab9b9eab 8885 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
703e0a69
VZ
8886else
8887 echo "$ac_t""no" 1>&6
ab9b9eab
VZ
8888fi
8889
8890 fi
8891 fi
8892
8893 # Check for libraries that X11R6 Xt/Xaw programs need.
703e0a69 8894 ac_save_LDFLAGS="$LDFLAGS"
ab9b9eab
VZ
8895 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
8896 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
8897 # check for ICE first), but we must link in the order -lSM -lICE or
8898 # we get undefined symbols. So assume we have SM if we have ICE.
8899 # These have to be linked with before -lX11, unlike the other
8900 # libraries we check for below, so use a different variable.
703e0a69
VZ
8901 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
8902 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
8903echo "configure:8904: checking for IceConnectionNumber in -lICE" >&5
8904ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
8905if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8906 echo $ac_n "(cached) $ac_c" 1>&6
8907else
8908 ac_save_LIBS="$LIBS"
ab9b9eab 8909LIBS="-lICE $X_EXTRA_LIBS $LIBS"
703e0a69
VZ
8910cat > conftest.$ac_ext <<EOF
8911#line 8912 "configure"
ab9b9eab
VZ
8912#include "confdefs.h"
8913/* Override any gcc2 internal prototype to avoid an error. */
8914/* We use char because int might match the return type of a gcc2
703e0a69
VZ
8915 builtin and then its argument prototype would still apply. */
8916char IceConnectionNumber();
8917
8918int main() {
8919IceConnectionNumber()
8920; return 0; }
8921EOF
8922if { (eval echo configure:8923: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8923 rm -rf conftest*
8924 eval "ac_cv_lib_$ac_lib_var=yes"
8925else
8926 echo "configure: failed program was:" >&5
8927 cat conftest.$ac_ext >&5
8928 rm -rf conftest*
8929 eval "ac_cv_lib_$ac_lib_var=no"
8930fi
8931rm -f conftest*
8932LIBS="$ac_save_LIBS"
8933
8934fi
8935if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8936 echo "$ac_t""yes" 1>&6
ab9b9eab 8937 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
703e0a69
VZ
8938else
8939 echo "$ac_t""no" 1>&6
ab9b9eab
VZ
8940fi
8941
703e0a69 8942 LDFLAGS="$ac_save_LDFLAGS"
ab9b9eab
VZ
8943
8944fi
8945
37d403aa
JS
8946CPPFLAGS="$CPPFLAGS $X_CFLAGS"
8947LDFLAGS="$LDFLAGS $X_LIBS"
ab9b9eab 8948
37d403aa 8949if test "$wxUSE_MOTIF" = 1; then
ab9b9eab 8950 if test "$no_x" = "yes"; then
703e0a69 8951 { echo "configure: error: X11 not found" 1>&2; exit 1; }
ab9b9eab
VZ
8952 fi
8953
8954 GUI_TK_LIBRARY="$X_LIBS"
8955 TOOLKIT_INCLUDE="$X_CFLAGS"
8956
dad6c0ea
VZ
8957 AFMINSTALL=afminstall
8958
703e0a69 8959
cd6d6d5b
VZ
8960 COMPILED_X_PROGRAM=0
8961
703e0a69
VZ
8962 echo $ac_n "checking for Motif/Lesstif headers""... $ac_c" 1>&6
8963echo "configure:8964: checking for Motif/Lesstif headers" >&5
8964
ab9b9eab
VZ
8965ac_find_includes=
8966for ac_dir in $SEARCH_INCLUDE;
8967 do
8968 if test -f "$ac_dir/Xm/Xm.h"; then
8969 ac_find_includes=$ac_dir
8970 break
8971 fi
8972 done
8973
8974 if test "$ac_find_includes" != "" ; then
703e0a69 8975 echo "$ac_t""found $ac_find_includes" 1>&6
ab9b9eab 8976 else
703e0a69
VZ
8977 cat > conftest.$ac_ext <<EOF
8978#line 8979 "configure"
cd6d6d5b
VZ
8979#include "confdefs.h"
8980
8981 #include <Xm/Xm.h>
703e0a69
VZ
8982
8983int main() {
cd6d6d5b
VZ
8984
8985 int version;
8986
8987 version = xmUseVersion;
703e0a69
VZ
8988
8989; return 0; }
8990EOF
8991if { (eval echo configure:8992: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8992 rm -rf conftest*
8993
8994 echo "$ac_t""found in default search path" 1>&6
cd6d6d5b 8995 COMPILED_X_PROGRAM=1
703e0a69 8996
cd6d6d5b 8997else
703e0a69
VZ
8998 echo "configure: failed program was:" >&5
8999 cat conftest.$ac_ext >&5
9000 rm -rf conftest*
9001
9002 echo "$ac_t""no" 1>&6
9003 { echo "configure: error: please set CFLAGS to contain the location of Xm/Xm.h" 1>&2; exit 1; }
9004
9005
cd6d6d5b 9006fi
703e0a69 9007rm -f conftest*
ab9b9eab
VZ
9008 fi
9009
cd6d6d5b 9010 if test "$COMPILED_X_PROGRAM" = 0; then
703e0a69
VZ
9011 echo $ac_n "checking for Motif/Lesstif library""... $ac_c" 1>&6
9012echo "configure:9013: checking for Motif/Lesstif library" >&5
9013
ab9b9eab
VZ
9014ac_find_libraries=
9015for ac_dir in $SEARCH_LIB;
9016 do
9017 for ac_extension in a so sl; do
9018 if test -f "$ac_dir/libXm.$ac_extension"; then
9019 ac_find_libraries=$ac_dir
9020 break 2
9021 fi
9022 done
9023 done
9024
cd6d6d5b 9025 if test "$ac_find_libraries" != "" ; then
703e0a69 9026
ab9b9eab
VZ
9027 ac_path_to_include=$ac_find_includes
9028 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
9029 result=$?
9030 if test $result = 0; then
9031 ac_path_to_include=""
9032 else
9033 ac_path_to_include="-I$ac_find_includes"
9034 fi
9035
703e0a69 9036
ab9b9eab
VZ
9037 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
9038 result=$?
9039 if test $result = 0; then
9040 ac_path_to_link=""
9041 else
9042 ac_path_to_link="-L$ac_find_libraries"
9043 fi
9044
703e0a69 9045
cd6d6d5b
VZ
9046 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $ac_path_to_link"
9047 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE $ac_path_to_include"
703e0a69 9048 echo "$ac_t""found at $ac_find_libraries" 1>&6
cd6d6d5b 9049 else
703e0a69
VZ
9050 cat > conftest.$ac_ext <<EOF
9051#line 9052 "configure"
cd6d6d5b 9052#include "confdefs.h"
ab9b9eab 9053
cd6d6d5b 9054 #include <Xm/Xm.h>
703e0a69
VZ
9055
9056int main() {
ab9b9eab 9057
cd6d6d5b 9058 int version;
ab9b9eab 9059
cd6d6d5b 9060 version = xmUseVersion;
703e0a69
VZ
9061
9062; return 0; }
9063EOF
9064if { (eval echo configure:9065: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9065 rm -rf conftest*
9066
9067 echo "$ac_t""found in default search path" 1>&6
cd6d6d5b 9068 COMPILED_X_PROGRAM=1
703e0a69 9069
cd6d6d5b 9070else
703e0a69
VZ
9071 echo "configure: failed program was:" >&5
9072 cat conftest.$ac_ext >&5
9073 rm -rf conftest*
9074
9075 echo "$ac_t""no" 1>&6
9076 { echo "configure: error: please set LDFLAGS to contain the location of libXm" 1>&2; exit 1; }
9077
9078
cd6d6d5b 9079fi
703e0a69 9080rm -f conftest*
cd6d6d5b 9081 fi
ab9b9eab
VZ
9082 fi
9083
703e0a69 9084
ab9b9eab 9085 XPM_LINK=""
703e0a69
VZ
9086 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
9087echo "configure:9088: checking for Xpm library" >&5
9088
ab9b9eab
VZ
9089ac_find_libraries=
9090for ac_dir in $SEARCH_LIB;
9091 do
9092 for ac_extension in a so sl; do
9093 if test -f "$ac_dir/libXpm.$ac_extension"; then
9094 ac_find_libraries=$ac_dir
9095 break 2
9096 fi
9097 done
9098 done
9099
9100 if test "$ac_find_libraries" != "" ; then
703e0a69 9101
ab9b9eab
VZ
9102 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
9103 result=$?
9104 if test $result = 0; then
9105 ac_path_to_link=""
9106 else
9107 ac_path_to_link="-L$ac_find_libraries"
9108 fi
9109
9110 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $ac_path_to_link"
9111 XPM_LINK="-lXpm "
703e0a69 9112 cat >> confdefs.h <<\EOF
ab9b9eab
VZ
9113#define wxHAVE_LIB_XPM 1
9114EOF
9115
703e0a69 9116 echo "$ac_t""found at $ac_find_libraries" 1>&6
ab9b9eab 9117 else
703e0a69
VZ
9118 cat > conftest.$ac_ext <<EOF
9119#line 9120 "configure"
cd6d6d5b
VZ
9120#include "confdefs.h"
9121
9122 #include <X11/xpm.h>
703e0a69
VZ
9123
9124int main() {
cd6d6d5b
VZ
9125
9126 int version;
9127
9128 version = XpmLibraryVersion();
703e0a69
VZ
9129
9130; return 0; }
9131EOF
9132if { (eval echo configure:9133: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9133 rm -rf conftest*
9134
f6bcfd97 9135 XPM_LINK="-lXpm "
703e0a69 9136 cat >> confdefs.h <<\EOF
3ace2e6d
SN
9137#define wxHAVE_LIB_XPM 1
9138EOF
9139
703e0a69 9140 echo "$ac_t""found in default search path" 1>&6
cd6d6d5b 9141 COMPILED_X_PROGRAM=0
703e0a69 9142
cd6d6d5b 9143else
703e0a69
VZ
9144 echo "configure: failed program was:" >&5
9145 cat conftest.$ac_ext >&5
9146 rm -rf conftest*
9147
9148 echo "$ac_t""no" 1>&6
9149 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
9150
9151
cd6d6d5b 9152fi
703e0a69 9153rm -f conftest*
ab9b9eab
VZ
9154 fi
9155
8916026b 9156 GUI_TK_LINK="-lXm $XPM_LINK -lXmu -lXext -lXt -lX11"
ab9b9eab
VZ
9157 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $GUI_TK_LINK"
9158 TOOLKIT=MOTIF
10f2d63a
VZ
9159 GUIDIST=MOTIF_DIST
9160fi
9161
b4085ce6
GD
9162if test "$wxUSE_MAC" = 1; then
9163 TOOLKIT=MAC
c521c494 9164 GUIDIST=MACX_DIST
b4085ce6
GD
9165fi
9166
e07802fc
VZ
9167if test "$wxUSE_PM" = 1; then
9168 TOOLKIT=PM
e07802fc
VZ
9169 GUIDIST=GTK_DIST
9170fi
9171
9172if test "$TOOLKIT" != "PM" ; then
ec14dd32 9173 TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
e07802fc
VZ
9174else
9175 TOOLKIT_DIR="os2"
9176fi
10f2d63a 9177
f6bcfd97
BP
9178 if test "$wxUSE_DEBUG_FLAG" = "yes"; then
9179 TOOLKIT_NAME="${TOOLKIT_DIR}d"
9180 else
9181 TOOLKIT_NAME="${TOOLKIT_DIR}"
9182 fi
9183
2224580a 9184 TOOLKIT_DEF="-D__WX${TOOLKIT}__"
10f2d63a 9185
f6bcfd97 9186 WX_LIBRARY="wx_${TOOLKIT_NAME}"
10f2d63a 9187
bdad4e7e 9188 ALL_OBJECTS="\$(GUIOBJS) \$(COMMONOBJS) \$(GENERICOBJS) \$(UNIXOBJS) \$(HTMLOBJS) \$(OGLOBJS)"
3fcdd07b 9189
9ad43c8b
RL
9190 if test "$TOOLKIT" != "MSW" -a "$wxUSE_ODBC" = "yes" ; then
9191 ALL_OBJECTS="${ALL_OBJECTS} \$(IODBCOBJS)"
3fcdd07b
VZ
9192 fi
9193
d9d8273d 9194 if test "$wxUSE_LIBJPEG" = "yes" ; then
2224580a 9195 ALL_OBJECTS="${ALL_OBJECTS} \$(JPEGOBJS)"
d9d8273d
RR
9196 fi
9197 if test "$wxUSE_LIBTIFF" = "yes" ; then
9198 ALL_OBJECTS="${ALL_OBJECTS} \$(TIFFOBJS)"
9199 fi
9200 if test "$wxUSE_LIBPNG" = "yes" ; then
9201 ALL_OBJECTS="${ALL_OBJECTS} \$(PNGOBJS)"
9202 fi
9203 if test "$wxUSE_ZLIB" = "yes" ; then
9204 ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)"
9205 fi
3fed1840
RR
9206 if test "$wxUSE_FREETYPE" = "yes" ; then
9207 ALL_OBJECTS="${ALL_OBJECTS} \$(FREETYPEOBJS)"
9208 fi
bdad4e7e 9209 ALL_DEPFILES="\$(GUIDEPS) \$(COMMONDEPS) \$(GENERICDEPS) \$(UNIXDEPS) \$(HTMLDEPS) \$(OGLDEPS)"
2224580a
VZ
9210
9211 PORT_FILES="src/\$(TOOLKITDIR)/files.lst"
9212 RPM_FILES="src/\$(TOOLKITDIR)/rpmfiles.lst"
9213 RPM_SPEC="wx\$(TOOLKIT).spec"
9214
9215 GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
9216 DISTDIR="wx\$(TOOLKIT)"
10f2d63a 9217else
dad6c0ea
VZ
9218 USE_GUI=0
9219
f6bcfd97
BP
9220 TOOLKIT_DIR="base"
9221
9222 if test "$wxUSE_DEBUG_FLAG" = "yes"; then
9223 TOOLKIT_NAME="${TOOLKIT_DIR}d"
9224 else
9225 TOOLKIT_NAME="${TOOLKIT_DIR}"
9226 fi
9227
07eb77a6
RL
9228 TOOLKIT_DEF="-D__WXBASE__"
9229
b4085ce6
GD
9230 ALL_OBJECTS="\$(BASE_OBJS) \$(BASE_UNIX_OBJS)"
9231 ALL_DEPFILES="\$(BASE_DEPS) \$(BASE_UNIX_DEPS)"
10f2d63a 9232
a20b6d3a
VZ
9233 if test "$wxUSE_ZLIB" = "yes" ; then
9234 ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)"
9235 fi
9236
f6bcfd97 9237 WX_LIBRARY="wx_${TOOLKIT_NAME}"
2224580a
VZ
9238
9239 PORT_FILES="src/files.lst"
9240 RPM_FILES="src/rpmfiles.lst"
9241 RPM_SPEC="wxBase.spec"
9242
9243 GUIDIST="BASE_DIST"
9244 DISTDIR="wxBase"
10f2d63a
VZ
9245fi
9246
9247WX_LIBRARY_NAME="lib${WX_LIBRARY}.la"
bdad4e7e 9248WX_LIBRARY_NAME_GL="lib${WX_LIBRARY}_gl.la"
10f2d63a
VZ
9249
9250WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a"
bdad4e7e 9251WX_LIBRARY_NAME_STATIC_GL="lib${WX_LIBRARY}_gl.a"
10f2d63a
VZ
9252
9253WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}-${WX_RELEASE}.so.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
bdad4e7e 9254WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.so.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
10f2d63a
VZ
9255
9256WX_LIBRARY_LINK1="lib${WX_LIBRARY}-${WX_RELEASE}.so.${WX_CURRENT}"
9257WX_LIBRARY_LINK2="lib${WX_LIBRARY}-${WX_RELEASE}.so"
9258WX_LIBRARY_LINK3="lib${WX_LIBRARY}.so"
bdad4e7e
RR
9259WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.so.${WX_CURRENT}"
9260WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.so"
9261WX_LIBRARY_LINK3_GL="lib${WX_LIBRARY}_gl.so"
10f2d63a
VZ
9262
9263SHARED_LD=
9264PIC_FLAG=
9265WX_ALL=
9266WX_ALL_INSTALLED=
1d62a8b4 9267BURNT_LIBRARY_NAME=
f6bcfd97 9268WX_TARGET_LIBRARY_SONAME=
10f2d63a 9269
703e0a69 9270
10f2d63a
VZ
9271if test "$wxUSE_SHARED" = "yes"; then
9272 case "${host}" in
9273 *-hp-hpux* )
9274 if test "$GCC" = yes ; then
69ffe1d2 9275 SHARED_LD="${CC} -shared -fPIC -o"
10f2d63a
VZ
9276 PIC_FLAG="-fPIC"
9277 else
f6bcfd97
BP
9278 LDFLAGS="-L/usr/lib"
9279
10f2d63a
VZ
9280 SHARED_LD="${CXX} -b -o"
9281 PIC_FLAG="+Z"
9282 fi
f6bcfd97
BP
9283 WX_LIBRARY_NAME_SHARED="libwx_${TOOLKIT_NAME}.sl"
9284 WX_LIBRARY_NAME_SHARED_GL="libwx_${TOOLKIT_NAME}_gl.sl"
c661ecca 9285 if test "$wxUSE_OPENGL" = "yes"; then
f6bcfd97 9286 WX_ALL_INSTALLED="preinstall_gl"
c661ecca
RR
9287 WX_ALL="${WX_LIBRARY_NAME_SHARED} ${WX_LIBRARY_NAME_SHARED_GL}"
9288 else
9289 WX_ALL="${WX_LIBRARY_NAME_SHARED}"
9290 fi
10f2d63a 9291 ;;
b12915c1
VZ
9292
9293 *-*-linux* )
10f2d63a
VZ
9294 SHARED_LD="${CC} -shared -o"
9295 PIC_FLAG="-fPIC"
00cf1208 9296 if test "$wxUSE_BURNT_NAME" = "yes" ; then
05cdfc6f 9297 BURNT_LIBRARY_NAME="-Wl,-soname,${WX_LIBRARY_LINK1}"
bdad4e7e 9298 BURNT_LIBRARY_NAME_GL="-Wl,-soname,${WX_LIBRARY_LINK1_GL}"
f6bcfd97 9299 WX_TARGET_LIBRARY_SONAME="-Wl,-soname,\$(TARGETLIB_LINK1)"
00cf1208 9300 fi
c661ecca
RR
9301 if test "$wxUSE_OPENGL" = "yes"; then
9302 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
9303 WX_ALL="CREATE_LINKS CREATE_LINKS_GL"
9304 else
9305 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
9306 WX_ALL="CREATE_LINKS"
422107f9 9307 fi
00cf1208 9308 ;;
10f2d63a
VZ
9309 *-*-irix5* | *-*-irix6* )
9310 if test "$GCC" = yes ; then
9311 SHARED_LD="${CC} -shared -o"
9312 PIC_FLAG="-fPIC"
9313 else
9314 SHARED_LD="${CXX} -shared -o"
9315 fi
c661ecca
RR
9316 if test "$wxUSE_OPENGL" = "yes"; then
9317 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
9318 WX_ALL="CREATE_LINKS CREATE_LINKS_GL"
9319 else
9320 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
9321 WX_ALL="CREATE_LINKS"
422107f9 9322 fi
10f2d63a
VZ
9323 ;;
9324 *-*-solaris2* )
9325 if test "$GCC" = yes ; then
9326 SHARED_LD="${CC} -shared -o"
9327 PIC_FLAG="-fPIC"
f6bcfd97
BP
9328
9329 CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include"
10f2d63a
VZ
9330 else
9331 SHARED_LD="${CXX} -G -o"
9332 PIC_FLAG="-KPIC"
9333 fi
c661ecca
RR
9334 if test "$wxUSE_OPENGL" = "yes"; then
9335 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
9336 WX_ALL="CREATE_LINKS CREATE_LINKS_GL"
9337 else
9338 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
9339 WX_ALL="CREATE_LINKS"
9340 fi
10f2d63a
VZ
9341 ;;
9342 *-*-sunos4* )
9343 SHARED_LD="${CC} -shared -o"
9344 PIC_FLAG="-fPIC"
9345 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
9346 WX_ALL="CREATE_LINKS"
9347 ;;
95c8801c 9348 *-*-freebsd* | *-*-openbsd* | *-*-netbsd* )
10f2d63a
VZ
9349 SHARED_LD="${CC} -shared -o"
9350 PIC_FLAG="-fPIC"
37d403aa
JS
9351 if test "$wxUSE_OPENGL" = "yes"; then
9352 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
9353 WX_ALL="CREATE_LINKS CREATE_LINKS_GL"
9354 else
9355 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
9356 WX_ALL="CREATE_LINKS"
9357 fi
10f2d63a 9358 ;;
b4085ce6 9359 *-*-darwin* )
ea5999b9
GD
9360 SHARED_LD="${CXX} -dynamiclib -o"
9361 PIC_FLAG="-dynamic -fPIC"
b4085ce6
GD
9362 if test "$wxUSE_OPENGL" = "yes"; then
9363 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
9364 WX_ALL="CREATE_LINKS CREATE_LINKS_GL"
9365 else
9366 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
9367 WX_ALL="CREATE_LINKS"
9368 fi
1f8ae82f
GD
9369 WX_ALL="${WX_ALL} ./lib/lib${WX_LIBRARY}-${WX_RELEASE}.r"
9370 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}-${WX_RELEASE}.dylib.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
9371 WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.dylib.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
9372 WX_LIBRARY_LINK1="lib${WX_LIBRARY}-${WX_RELEASE}.dylib.${WX_CURRENT}"
f3c067d2
GD
9373 WX_LIBRARY_LINK2="lib${WX_LIBRARY}-${WX_RELEASE}.dylib"
9374 WX_LIBRARY_LINK3="lib${WX_LIBRARY}.dylib"
1f8ae82f 9375 WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.dylib.${WX_CURRENT}"
f3c067d2
GD
9376 WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.dylib"
9377 WX_LIBRARY_LINK3_GL="lib${WX_LIBRARY}_gl.dylib"
b4085ce6 9378 ;;
10f2d63a
VZ
9379 *-*-osf* )
9380 SHARED_LD="${CXX} -shared -o"
9381 PIC_FLAG="-fPIC"
9382 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
9383 WX_ALL="CREATE_LINKS"
9384 ;;
9385 *-*-dgux5* )
9386 SHARED_LD="${CXX} -shared -o"
9387 PIC_FLAG="-fPIC"
9388 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
9389 WX_ALL="CREATE_LINKS"
9390 ;;
9391 *-*-sysv5* )
9392 SHARED_LD="${CC} -shared -o"
9393 PIC_FLAG="-fPIC"
9394 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
9395 WX_ALL="CREATE_LINKS"
9396 ;;
9397 *-*-aix* )
9398 SHARED_LD="/usr/lpp/xlC/bin/makeC++SharedLib -p 0 -o"
9399 WX_ALL=${WX_LIBRARY_NAME_SHARED}
9400 ;;
1c8183e2 9401 *-*-cygwin* )
10f2d63a 9402 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
bdad4e7e 9403 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}"
f6bcfd97
BP
9404 if test "$wxUSE_OPENGL" = "yes"; then
9405 WX_ALL_INSTALLED="preinstall_gl"
9406 WX_ALL="${WX_LIBRARY_NAME_STATIC} ${WX_LIBRARY_NAME_STATIC_GL}"
9407 else
9408 WX_ALL="${WX_LIBRARY_NAME_STATIC}"
9409 fi
10f2d63a 9410 ;;
b12915c1 9411 *-*-mingw32* )
10f2d63a 9412 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
bdad4e7e 9413 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}"
f6bcfd97
BP
9414 if test "$wxUSE_OPENGL" = "yes"; then
9415 WX_ALL_INSTALLED="preinstall_gl"
9416 WX_ALL="${WX_LIBRARY_NAME_STATIC} ${WX_LIBRARY_NAME_STATIC_GL}"
9417 else
9418 WX_ALL="${WX_LIBRARY_NAME_STATIC}"
9419 fi
10f2d63a
VZ
9420 ;;
9421 *-pc-os2_emx )
e07802fc
VZ
9422 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
9423 WX_ALL="${WX_LIBRARY_NAME_STATIC}"
10f2d63a 9424 ;;
b12915c1 9425 *-*-beos* )
e2b8b066 9426 SHARED_LD="${LD} -shared -o"
b12915c1
VZ
9427 PIC_FLAG="-fPIC"
9428 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
9429 WX_ALL="CREATE_LINKS"
9430 ;;
10f2d63a 9431 *)
703e0a69 9432 { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; }
10f2d63a
VZ
9433 esac
9434
9435 if test "x$WX_TARGET_LIBRARY" = "x"; then
9436 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}"
bdad4e7e 9437 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_SHARED_GL}"
10f2d63a 9438 fi
3711412e 9439 WX_TARGET_LIBRARY_TYPE="so"
10f2d63a
VZ
9440else
9441 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
bdad4e7e 9442 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}"
f6bcfd97
BP
9443
9444 if test "$wxUSE_OPENGL" = "yes"; then
9445 WX_ALL_INSTALLED="preinstall_gl"
9446 WX_ALL="${WX_LIBRARY_NAME_STATIC} ${WX_LIBRARY_NAME_STATIC_GL}"
9447 else
9448 WX_ALL="${WX_LIBRARY_NAME_STATIC}"
9449 fi
9450
9451 if test "$wxUSE_GUI" = "no"; then
9452 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
9453 fi
9454
3711412e 9455 WX_TARGET_LIBRARY_TYPE="a"
10f2d63a
VZ
9456fi
9457
703e0a69
VZ
9458
9459for ac_hdr in strings.h
10f2d63a 9460do
703e0a69
VZ
9461ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9462echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9463echo "configure:9464: checking for $ac_hdr" >&5
9464if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9465 echo $ac_n "(cached) $ac_c" 1>&6
9466else
9467 cat > conftest.$ac_ext <<EOF
9468#line 9469 "configure"
10f2d63a 9469#include "confdefs.h"
703e0a69
VZ
9470#include <$ac_hdr>
9471EOF
9472ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9473{ (eval echo configure:9474: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9474ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9475if test -z "$ac_err"; then
9476 rm -rf conftest*
9477 eval "ac_cv_header_$ac_safe=yes"
10f2d63a 9478else
703e0a69
VZ
9479 echo "$ac_err" >&5
9480 echo "configure: failed program was:" >&5
10f2d63a 9481 cat conftest.$ac_ext >&5
703e0a69
VZ
9482 rm -rf conftest*
9483 eval "ac_cv_header_$ac_safe=no"
10f2d63a 9484fi
703e0a69 9485rm -f conftest*
10f2d63a 9486fi
703e0a69
VZ
9487if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9488 echo "$ac_t""yes" 1>&6
9489 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9490 cat >> confdefs.h <<EOF
9491#define $ac_tr_hdr 1
10f2d63a 9492EOF
703e0a69
VZ
9493
9494else
9495 echo "$ac_t""no" 1>&6
10f2d63a
VZ
9496fi
9497done
9498
703e0a69 9499for ac_hdr in stdlib.h
9cfadba2 9500do
703e0a69
VZ
9501ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9502echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9503echo "configure:9504: checking for $ac_hdr" >&5
9504if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9505 echo $ac_n "(cached) $ac_c" 1>&6
9506else
9507 cat > conftest.$ac_ext <<EOF
9508#line 9509 "configure"
9cfadba2 9509#include "confdefs.h"
703e0a69
VZ
9510#include <$ac_hdr>
9511EOF
9512ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9513{ (eval echo configure:9514: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9514ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9515if test -z "$ac_err"; then
9516 rm -rf conftest*
9517 eval "ac_cv_header_$ac_safe=yes"
6232543b 9518else
703e0a69
VZ
9519 echo "$ac_err" >&5
9520 echo "configure: failed program was:" >&5
9cfadba2 9521 cat conftest.$ac_ext >&5
703e0a69
VZ
9522 rm -rf conftest*
9523 eval "ac_cv_header_$ac_safe=no"
9cfadba2 9524fi
703e0a69 9525rm -f conftest*
9cfadba2 9526fi
703e0a69
VZ
9527if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9528 echo "$ac_t""yes" 1>&6
9529 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9530 cat >> confdefs.h <<EOF
9531#define $ac_tr_hdr 1
9cfadba2 9532EOF
703e0a69
VZ
9533
9534else
9535 echo "$ac_t""no" 1>&6
9cfadba2
VZ
9536fi
9537done
10f2d63a 9538
703e0a69 9539for ac_hdr in unistd.h
10f2d63a 9540do
703e0a69
VZ
9541ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9542echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9543echo "configure:9544: checking for $ac_hdr" >&5
9544if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9545 echo $ac_n "(cached) $ac_c" 1>&6
9546else
9547 cat > conftest.$ac_ext <<EOF
9548#line 9549 "configure"
10f2d63a 9549#include "confdefs.h"
703e0a69
VZ
9550#include <$ac_hdr>
9551EOF
9552ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9553{ (eval echo configure:9554: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9554ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9555if test -z "$ac_err"; then
9556 rm -rf conftest*
9557 eval "ac_cv_header_$ac_safe=yes"
6232543b 9558else
703e0a69
VZ
9559 echo "$ac_err" >&5
9560 echo "configure: failed program was:" >&5
10f2d63a 9561 cat conftest.$ac_ext >&5
703e0a69
VZ
9562 rm -rf conftest*
9563 eval "ac_cv_header_$ac_safe=no"
10f2d63a 9564fi
703e0a69 9565rm -f conftest*
10f2d63a 9566fi
703e0a69
VZ
9567if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9568 echo "$ac_t""yes" 1>&6
9569 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9570 cat >> confdefs.h <<EOF
9571#define $ac_tr_hdr 1
10f2d63a 9572EOF
703e0a69
VZ
9573
9574else
9575 echo "$ac_t""no" 1>&6
10f2d63a
VZ
9576fi
9577done
9578
703e0a69 9579for ac_hdr in wchar.h
10f2d63a 9580do
703e0a69
VZ
9581ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9582echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9583echo "configure:9584: checking for $ac_hdr" >&5
9584if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9585 echo $ac_n "(cached) $ac_c" 1>&6
9586else
9587 cat > conftest.$ac_ext <<EOF
9588#line 9589 "configure"
10f2d63a 9589#include "confdefs.h"
703e0a69
VZ
9590#include <$ac_hdr>
9591EOF
9592ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9593{ (eval echo configure:9594: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9594ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9595if test -z "$ac_err"; then
9596 rm -rf conftest*
9597 eval "ac_cv_header_$ac_safe=yes"
6f72b082 9598else
703e0a69
VZ
9599 echo "$ac_err" >&5
9600 echo "configure: failed program was:" >&5
6f72b082 9601 cat conftest.$ac_ext >&5
703e0a69
VZ
9602 rm -rf conftest*
9603 eval "ac_cv_header_$ac_safe=no"
6f72b082 9604fi
703e0a69 9605rm -f conftest*
6f72b082 9606fi
703e0a69
VZ
9607if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9608 echo "$ac_t""yes" 1>&6
9609 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9610 cat >> confdefs.h <<EOF
9611#define $ac_tr_hdr 1
6f72b082 9612EOF
703e0a69
VZ
9613
9614else
9615 echo "$ac_t""no" 1>&6
6f72b082
OK
9616fi
9617done
9618
703e0a69 9619for ac_hdr in wcstr.h
6f72b082 9620do
703e0a69
VZ
9621ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9622echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9623echo "configure:9624: checking for $ac_hdr" >&5
9624if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9625 echo $ac_n "(cached) $ac_c" 1>&6
9626else
9627 cat > conftest.$ac_ext <<EOF
9628#line 9629 "configure"
6f72b082 9629#include "confdefs.h"
703e0a69
VZ
9630#include <$ac_hdr>
9631EOF
9632ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9633{ (eval echo configure:9634: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9634ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9635if test -z "$ac_err"; then
9636 rm -rf conftest*
9637 eval "ac_cv_header_$ac_safe=yes"
6f72b082 9638else
703e0a69
VZ
9639 echo "$ac_err" >&5
9640 echo "configure: failed program was:" >&5
6f72b082 9641 cat conftest.$ac_ext >&5
703e0a69
VZ
9642 rm -rf conftest*
9643 eval "ac_cv_header_$ac_safe=no"
6f72b082 9644fi
703e0a69 9645rm -f conftest*
6f72b082 9646fi
703e0a69
VZ
9647if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9648 echo "$ac_t""yes" 1>&6
9649 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9650 cat >> confdefs.h <<EOF
9651#define $ac_tr_hdr 1
6f72b082 9652EOF
703e0a69
VZ
9653
9654else
9655 echo "$ac_t""no" 1>&6
6f72b082
OK
9656fi
9657done
9658
703e0a69 9659for ac_hdr in fnmatch.h
6f72b082 9660do
703e0a69
VZ
9661ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9662echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9663echo "configure:9664: checking for $ac_hdr" >&5
9664if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9665 echo $ac_n "(cached) $ac_c" 1>&6
9666else
9667 cat > conftest.$ac_ext <<EOF
9668#line 9669 "configure"
6f72b082 9669#include "confdefs.h"
703e0a69
VZ
9670#include <$ac_hdr>
9671EOF
9672ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9673{ (eval echo configure:9674: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9674ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9675if test -z "$ac_err"; then
9676 rm -rf conftest*
9677 eval "ac_cv_header_$ac_safe=yes"
10f2d63a 9678else
703e0a69
VZ
9679 echo "$ac_err" >&5
9680 echo "configure: failed program was:" >&5
10f2d63a 9681 cat conftest.$ac_ext >&5
703e0a69
VZ
9682 rm -rf conftest*
9683 eval "ac_cv_header_$ac_safe=no"
10f2d63a 9684fi
703e0a69 9685rm -f conftest*
10f2d63a 9686fi
703e0a69
VZ
9687if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9688 echo "$ac_t""yes" 1>&6
9689 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9690 cat >> confdefs.h <<EOF
9691#define $ac_tr_hdr 1
10f2d63a 9692EOF
703e0a69
VZ
9693
9694else
9695 echo "$ac_t""no" 1>&6
10f2d63a
VZ
9696fi
9697done
9698
703e0a69 9699for ac_hdr in iconv.h
0fb0dd83 9700do
703e0a69
VZ
9701ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9702echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9703echo "configure:9704: checking for $ac_hdr" >&5
9704if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9705 echo $ac_n "(cached) $ac_c" 1>&6
9706else
9707 cat > conftest.$ac_ext <<EOF
9708#line 9709 "configure"
0fb0dd83 9709#include "confdefs.h"
703e0a69
VZ
9710#include <$ac_hdr>
9711EOF
9712ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9713{ (eval echo configure:9714: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9714ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9715if test -z "$ac_err"; then
9716 rm -rf conftest*
9717 eval "ac_cv_header_$ac_safe=yes"
0fb0dd83 9718else
703e0a69
VZ
9719 echo "$ac_err" >&5
9720 echo "configure: failed program was:" >&5
0fb0dd83 9721 cat conftest.$ac_ext >&5
703e0a69
VZ
9722 rm -rf conftest*
9723 eval "ac_cv_header_$ac_safe=no"
0fb0dd83 9724fi
703e0a69 9725rm -f conftest*
0fb0dd83 9726fi
703e0a69
VZ
9727if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9728 echo "$ac_t""yes" 1>&6
9729 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9730 cat >> confdefs.h <<EOF
9731#define $ac_tr_hdr 1
0fb0dd83 9732EOF
703e0a69
VZ
9733
9734else
9735 echo "$ac_t""no" 1>&6
0fb0dd83
RR
9736fi
9737done
9738
703e0a69 9739for ac_hdr in langinfo.h
1f8ae82f 9740do
703e0a69
VZ
9741ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9742echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9743echo "configure:9744: checking for $ac_hdr" >&5
9744if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9745 echo $ac_n "(cached) $ac_c" 1>&6
9746else
9747 cat > conftest.$ac_ext <<EOF
9748#line 9749 "configure"
1f8ae82f 9749#include "confdefs.h"
703e0a69
VZ
9750#include <$ac_hdr>
9751EOF
9752ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9753{ (eval echo configure:9754: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9754ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9755if test -z "$ac_err"; then
9756 rm -rf conftest*
9757 eval "ac_cv_header_$ac_safe=yes"
1f8ae82f 9758else
703e0a69
VZ
9759 echo "$ac_err" >&5
9760 echo "configure: failed program was:" >&5
1f8ae82f 9761 cat conftest.$ac_ext >&5
703e0a69
VZ
9762 rm -rf conftest*
9763 eval "ac_cv_header_$ac_safe=no"
1f8ae82f 9764fi
703e0a69 9765rm -f conftest*
1f8ae82f 9766fi
703e0a69
VZ
9767if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9768 echo "$ac_t""yes" 1>&6
9769 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9770 cat >> confdefs.h <<EOF
9771#define $ac_tr_hdr 1
1f8ae82f 9772EOF
703e0a69
VZ
9773
9774else
9775 echo "$ac_t""no" 1>&6
1f8ae82f
GD
9776fi
9777done
9778
703e0a69 9779
73fd4a60
VZ
9780if test "$wxUSE_GUI" = "yes"; then
9781 if test "$wxUSE_UNIX" = "yes"; then
703e0a69 9782 for ac_hdr in X11/XKBlib.h
10f2d63a 9783do
703e0a69
VZ
9784ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9785echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9786echo "configure:9787: checking for $ac_hdr" >&5
9787if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9788 echo $ac_n "(cached) $ac_c" 1>&6
9789else
9790 cat > conftest.$ac_ext <<EOF
9791#line 9792 "configure"
10f2d63a 9792#include "confdefs.h"
703e0a69
VZ
9793#include <$ac_hdr>
9794EOF
9795ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9796{ (eval echo configure:9797: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9797ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9798if test -z "$ac_err"; then
9799 rm -rf conftest*
9800 eval "ac_cv_header_$ac_safe=yes"
10f2d63a 9801else
703e0a69
VZ
9802 echo "$ac_err" >&5
9803 echo "configure: failed program was:" >&5
10f2d63a 9804 cat conftest.$ac_ext >&5
703e0a69
VZ
9805 rm -rf conftest*
9806 eval "ac_cv_header_$ac_safe=no"
10f2d63a 9807fi
703e0a69 9808rm -f conftest*
10f2d63a 9809fi
703e0a69
VZ
9810if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9811 echo "$ac_t""yes" 1>&6
9812 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9813 cat >> confdefs.h <<EOF
9814#define $ac_tr_hdr 1
10f2d63a 9815EOF
703e0a69
VZ
9816
9817else
9818 echo "$ac_t""no" 1>&6
10f2d63a
VZ
9819fi
9820done
9821
73fd4a60 9822 fi
10f2d63a
VZ
9823fi
9824
703e0a69
VZ
9825
9826echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
9827echo "configure:9828: checking for ANSI C header files" >&5
9828if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
9829 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 9830else
703e0a69
VZ
9831 cat > conftest.$ac_ext <<EOF
9832#line 9833 "configure"
10f2d63a
VZ
9833#include "confdefs.h"
9834#include <stdlib.h>
9835#include <stdarg.h>
9836#include <string.h>
9837#include <float.h>
703e0a69
VZ
9838EOF
9839ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9840{ (eval echo configure:9841: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9841ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9842if test -z "$ac_err"; then
9843 rm -rf conftest*
10f2d63a
VZ
9844 ac_cv_header_stdc=yes
9845else
703e0a69
VZ
9846 echo "$ac_err" >&5
9847 echo "configure: failed program was:" >&5
10f2d63a 9848 cat conftest.$ac_ext >&5
703e0a69 9849 rm -rf conftest*
10f2d63a
VZ
9850 ac_cv_header_stdc=no
9851fi
703e0a69 9852rm -f conftest*
10f2d63a
VZ
9853
9854if test $ac_cv_header_stdc = yes; then
9855 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
703e0a69
VZ
9856cat > conftest.$ac_ext <<EOF
9857#line 9858 "configure"
10f2d63a
VZ
9858#include "confdefs.h"
9859#include <string.h>
703e0a69 9860EOF
10f2d63a
VZ
9861if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9862 egrep "memchr" >/dev/null 2>&1; then
9863 :
9864else
703e0a69 9865 rm -rf conftest*
10f2d63a
VZ
9866 ac_cv_header_stdc=no
9867fi
9868rm -f conftest*
9869
9870fi
9871
9872if test $ac_cv_header_stdc = yes; then
9873 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
703e0a69
VZ
9874cat > conftest.$ac_ext <<EOF
9875#line 9876 "configure"
10f2d63a
VZ
9876#include "confdefs.h"
9877#include <stdlib.h>
703e0a69 9878EOF
10f2d63a
VZ
9879if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9880 egrep "free" >/dev/null 2>&1; then
9881 :
9882else
703e0a69 9883 rm -rf conftest*
10f2d63a
VZ
9884 ac_cv_header_stdc=no
9885fi
9886rm -f conftest*
9887
9888fi
9889
9890if test $ac_cv_header_stdc = yes; then
9891 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
703e0a69 9892if test "$cross_compiling" = yes; then
10f2d63a
VZ
9893 :
9894else
703e0a69
VZ
9895 cat > conftest.$ac_ext <<EOF
9896#line 9897 "configure"
10f2d63a
VZ
9897#include "confdefs.h"
9898#include <ctype.h>
703e0a69
VZ
9899#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9900#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6232543b 9901#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
703e0a69
VZ
9902int main () { int i; for (i = 0; i < 256; i++)
9903if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
9904exit (0); }
9905
9906EOF
9907if { (eval echo configure:9908: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9908then
10f2d63a
VZ
9909 :
9910else
703e0a69
VZ
9911 echo "configure: failed program was:" >&5
9912 cat conftest.$ac_ext >&5
9913 rm -fr conftest*
9914 ac_cv_header_stdc=no
10f2d63a 9915fi
703e0a69 9916rm -fr conftest*
10f2d63a 9917fi
703e0a69 9918
10f2d63a
VZ
9919fi
9920fi
6232543b 9921
703e0a69
VZ
9922echo "$ac_t""$ac_cv_header_stdc" 1>&6
9923if test $ac_cv_header_stdc = yes; then
9924 cat >> confdefs.h <<\EOF
10f2d63a
VZ
9925#define STDC_HEADERS 1
9926EOF
9927
9928fi
9929
703e0a69
VZ
9930echo $ac_n "checking for mode_t""... $ac_c" 1>&6
9931echo "configure:9932: checking for mode_t" >&5
9932if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
9933 echo $ac_n "(cached) $ac_c" 1>&6
6232543b 9934else
703e0a69
VZ
9935 cat > conftest.$ac_ext <<EOF
9936#line 9937 "configure"
6232543b 9937#include "confdefs.h"
703e0a69
VZ
9938#include <sys/types.h>
9939#if STDC_HEADERS
9940#include <stdlib.h>
9941#include <stddef.h>
9942#endif
9943EOF
9944if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9945 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
9946 rm -rf conftest*
10f2d63a
VZ
9947 ac_cv_type_mode_t=yes
9948else
703e0a69
VZ
9949 rm -rf conftest*
9950 ac_cv_type_mode_t=no
10f2d63a 9951fi
703e0a69 9952rm -f conftest*
6232543b 9953
703e0a69
VZ
9954fi
9955echo "$ac_t""$ac_cv_type_mode_t" 1>&6
9956if test $ac_cv_type_mode_t = no; then
9957 cat >> confdefs.h <<\EOF
10f2d63a
VZ
9958#define mode_t int
9959EOF
9960
9961fi
9962
703e0a69
VZ
9963echo $ac_n "checking for off_t""... $ac_c" 1>&6
9964echo "configure:9965: checking for off_t" >&5
9965if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
9966 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 9967else
703e0a69
VZ
9968 cat > conftest.$ac_ext <<EOF
9969#line 9970 "configure"
10f2d63a 9970#include "confdefs.h"
703e0a69
VZ
9971#include <sys/types.h>
9972#if STDC_HEADERS
9973#include <stdlib.h>
9974#include <stddef.h>
9975#endif
9976EOF
9977if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9978 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
9979 rm -rf conftest*
10f2d63a
VZ
9980 ac_cv_type_off_t=yes
9981else
703e0a69
VZ
9982 rm -rf conftest*
9983 ac_cv_type_off_t=no
10f2d63a 9984fi
703e0a69 9985rm -f conftest*
6232543b 9986
703e0a69
VZ
9987fi
9988echo "$ac_t""$ac_cv_type_off_t" 1>&6
9989if test $ac_cv_type_off_t = no; then
9990 cat >> confdefs.h <<\EOF
10f2d63a
VZ
9991#define off_t long
9992EOF
9993
9994fi
9995
703e0a69
VZ
9996echo $ac_n "checking for pid_t""... $ac_c" 1>&6
9997echo "configure:9998: checking for pid_t" >&5
9998if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
9999 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 10000else
703e0a69
VZ
10001 cat > conftest.$ac_ext <<EOF
10002#line 10003 "configure"
10f2d63a 10003#include "confdefs.h"
703e0a69
VZ
10004#include <sys/types.h>
10005#if STDC_HEADERS
10006#include <stdlib.h>
10007#include <stddef.h>
10008#endif
10009EOF
10010if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10011 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
10012 rm -rf conftest*
10f2d63a
VZ
10013 ac_cv_type_pid_t=yes
10014else
703e0a69
VZ
10015 rm -rf conftest*
10016 ac_cv_type_pid_t=no
10f2d63a 10017fi
703e0a69 10018rm -f conftest*
6232543b 10019
703e0a69
VZ
10020fi
10021echo "$ac_t""$ac_cv_type_pid_t" 1>&6
10022if test $ac_cv_type_pid_t = no; then
10023 cat >> confdefs.h <<\EOF
10f2d63a
VZ
10024#define pid_t int
10025EOF
10026
10027fi
10028
703e0a69
VZ
10029echo $ac_n "checking for size_t""... $ac_c" 1>&6
10030echo "configure:10031: checking for size_t" >&5
10031if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
10032 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 10033else
703e0a69
VZ
10034 cat > conftest.$ac_ext <<EOF
10035#line 10036 "configure"
10f2d63a 10036#include "confdefs.h"
703e0a69
VZ
10037#include <sys/types.h>
10038#if STDC_HEADERS
10039#include <stdlib.h>
10040#include <stddef.h>
10041#endif
10042EOF
10043if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10044 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
10045 rm -rf conftest*
10f2d63a
VZ
10046 ac_cv_type_size_t=yes
10047else
703e0a69
VZ
10048 rm -rf conftest*
10049 ac_cv_type_size_t=no
10f2d63a 10050fi
703e0a69 10051rm -f conftest*
6232543b 10052
703e0a69
VZ
10053fi
10054echo "$ac_t""$ac_cv_type_size_t" 1>&6
10055if test $ac_cv_type_size_t = no; then
10056 cat >> confdefs.h <<\EOF
10f2d63a
VZ
10057#define size_t unsigned
10058EOF
10059
10060fi
10061
703e0a69
VZ
10062echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
10063echo "configure:10064: checking for uid_t in sys/types.h" >&5
10064if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
10065 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 10066else
703e0a69
VZ
10067 cat > conftest.$ac_ext <<EOF
10068#line 10069 "configure"
10f2d63a
VZ
10069#include "confdefs.h"
10070#include <sys/types.h>
703e0a69 10071EOF
10f2d63a
VZ
10072if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10073 egrep "uid_t" >/dev/null 2>&1; then
703e0a69 10074 rm -rf conftest*
10f2d63a
VZ
10075 ac_cv_type_uid_t=yes
10076else
703e0a69 10077 rm -rf conftest*
10f2d63a
VZ
10078 ac_cv_type_uid_t=no
10079fi
10080rm -f conftest*
10081
10082fi
6232543b 10083
703e0a69
VZ
10084echo "$ac_t""$ac_cv_type_uid_t" 1>&6
10085if test $ac_cv_type_uid_t = no; then
10086 cat >> confdefs.h <<\EOF
10f2d63a
VZ
10087#define uid_t int
10088EOF
10089
703e0a69 10090 cat >> confdefs.h <<\EOF
10f2d63a
VZ
10091#define gid_t int
10092EOF
10093
10094fi
10095
6232543b 10096
703e0a69
VZ
10097echo $ac_n "checking for wchar_t""... $ac_c" 1>&6
10098echo "configure:10099: checking for wchar_t" >&5
10099if eval "test \"`echo '$''{'wx_cv_type_wchar_t'+set}'`\" = set"; then
10100 echo $ac_n "(cached) $ac_c" 1>&6
10101else
10102
10103 cat > conftest.$ac_ext <<EOF
10104#line 10105 "configure"
0046ff7c
VS
10105#include "confdefs.h"
10106#include <wchar.h>
703e0a69 10107int main() {
0046ff7c
VS
10108
10109 wchar_t wc, *ws;
10110 wc = L'a';
10111 ws = L"Hello, world!";
703e0a69
VZ
10112
10113; return 0; }
10114EOF
10115if { (eval echo configure:10116: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10116 rm -rf conftest*
1f8ae82f
GD
10117 wx_cv_type_wchar_t=yes
10118else
703e0a69
VZ
10119 echo "configure: failed program was:" >&5
10120 cat conftest.$ac_ext >&5
10121 rm -rf conftest*
10122 cat > conftest.$ac_ext <<EOF
10123#line 10124 "configure"
1f8ae82f
GD
10124#include "confdefs.h"
10125#include <stdlib.h>
703e0a69 10126int main() {
1f8ae82f
GD
10127
10128 wchar_t wc, *ws;
10129 wc = L'a';
10130 ws = L"Hello, world!";
703e0a69
VZ
10131
10132; return 0; }
10133EOF
10134if { (eval echo configure:10135: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10135 rm -rf conftest*
0046ff7c
VS
10136 wx_cv_type_wchar_t=yes
10137else
703e0a69
VZ
10138 echo "configure: failed program was:" >&5
10139 cat conftest.$ac_ext >&5
10140 rm -rf conftest*
10141 wx_cv_type_wchar_t=no
1f8ae82f 10142fi
703e0a69
VZ
10143rm -f conftest*
10144
0046ff7c 10145fi
703e0a69 10146rm -f conftest*
0046ff7c 10147
6232543b 10148fi
703e0a69
VZ
10149
10150echo "$ac_t""$wx_cv_type_wchar_t" 1>&6
0046ff7c 10151if test "$wx_cv_type_wchar_t" = yes ; then
703e0a69 10152 cat >> confdefs.h <<\EOF
0046ff7c
VS
10153#define wxUSE_WCHAR_T 1
10154EOF
10155
10156fi
10157
6232543b 10158
703e0a69
VZ
10159echo $ac_n "checking for pw_gecos in struct passwd""... $ac_c" 1>&6
10160echo "configure:10161: checking for pw_gecos in struct passwd" >&5
10161if eval "test \"`echo '$''{'wx_cv_struct_pw_gecos'+set}'`\" = set"; then
10162 echo $ac_n "(cached) $ac_c" 1>&6
10163else
10164
10165 cat > conftest.$ac_ext <<EOF
10166#line 10167 "configure"
b12915c1
VZ
10167#include "confdefs.h"
10168#include <pwd.h>
703e0a69 10169int main() {
b12915c1
VZ
10170
10171 char *p;
10172 struct passwd *pw;
10173 p = pw->pw_gecos;
703e0a69
VZ
10174
10175; return 0; }
10176EOF
10177if { (eval echo configure:10178: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10178 rm -rf conftest*
10179
b12915c1 10180 wx_cv_struct_pw_gecos=yes
703e0a69 10181
b12915c1 10182else
703e0a69
VZ
10183 echo "configure: failed program was:" >&5
10184 cat conftest.$ac_ext >&5
10185 rm -rf conftest*
10186
b12915c1 10187 wx_cv_struct_pw_gecos=no
703e0a69
VZ
10188
10189
b12915c1 10190fi
703e0a69
VZ
10191rm -f conftest*
10192
b12915c1 10193
6232543b 10194fi
703e0a69
VZ
10195
10196echo "$ac_t""$wx_cv_struct_pw_gecos" 1>&6
b12915c1 10197
bd3277fe 10198if test "$wx_cv_struct_pw_gecos" = "yes"; then
703e0a69 10199 cat >> confdefs.h <<\EOF
bd3277fe
VZ
10200#define HAVE_PW_GECOS 1
10201EOF
10202
10203fi
10204
703e0a69
VZ
10205
10206echo $ac_n "checking for working const""... $ac_c" 1>&6
10207echo "configure:10208: checking for working const" >&5
10208if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
10209 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 10210else
703e0a69
VZ
10211 cat > conftest.$ac_ext <<EOF
10212#line 10213 "configure"
10f2d63a 10213#include "confdefs.h"
703e0a69
VZ
10214
10215int main() {
10216
10217/* Ultrix mips cc rejects this. */
10218typedef int charset[2]; const charset x = {0,0};
10219/* SunOS 4.1.1 cc rejects this. */
10220char const *const *ccp;
10221char **p;
10222/* NEC SVR4.0.2 mips cc rejects this. */
10223struct point {int x, y;};
10224static struct point const zero = {0,0};
10225/* AIX XL C 1.02.0.0 rejects this.
10226 It does not let you subtract one const X* pointer from another in an arm
10227 of an if-expression whose if-part is not a constant expression */
10228const char *g = "string";
10229ccp = &g + (g ? g-g : 0);
10230/* HPUX 7.0 cc rejects these. */
10231++ccp;
10232p = (char**) ccp;
10233ccp = (char const *const *) p;
10234{ /* SCO 3.2v4 cc rejects this. */
10235 char *t;
10236 char const *s = 0 ? (char *) 0 : (char const *) 0;
10237
10238 *t++ = 0;
10f2d63a 10239}
703e0a69
VZ
10240{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
10241 int x[] = {25, 17};
10242 const int *foo = &x[0];
10243 ++foo;
10f2d63a 10244}
703e0a69
VZ
10245{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
10246 typedef const int *iptr;
10247 iptr p = 0;
10248 ++p;
10f2d63a 10249}
703e0a69
VZ
10250{ /* AIX XL C 1.02.0.0 rejects this saying
10251 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
10252 struct s { int j; const int *ap[3]; };
10253 struct s *b; b->j = 5;
10254}
10255{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
10256 const int foo = 10;
6232543b 10257}
703e0a69
VZ
10258
10259; return 0; }
10260EOF
10261if { (eval echo configure:10262: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10262 rm -rf conftest*
10f2d63a
VZ
10263 ac_cv_c_const=yes
10264else
703e0a69
VZ
10265 echo "configure: failed program was:" >&5
10266 cat conftest.$ac_ext >&5
10267 rm -rf conftest*
10268 ac_cv_c_const=no
10f2d63a 10269fi
703e0a69 10270rm -f conftest*
10f2d63a 10271fi
6232543b 10272
703e0a69
VZ
10273echo "$ac_t""$ac_cv_c_const" 1>&6
10274if test $ac_cv_c_const = no; then
10275 cat >> confdefs.h <<\EOF
10276#define const
10f2d63a
VZ
10277EOF
10278
10279fi
10280
703e0a69
VZ
10281echo $ac_n "checking for inline""... $ac_c" 1>&6
10282echo "configure:10283: checking for inline" >&5
10283if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
10284 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
10285else
10286 ac_cv_c_inline=no
10287for ac_kw in inline __inline__ __inline; do
703e0a69
VZ
10288 cat > conftest.$ac_ext <<EOF
10289#line 10290 "configure"
10f2d63a
VZ
10290#include "confdefs.h"
10291
703e0a69
VZ
10292int main() {
10293} int $ac_kw foo() {
10294; return 0; }
10295EOF
10296if { (eval echo configure:10297: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10297 rm -rf conftest*
10f2d63a
VZ
10298 ac_cv_c_inline=$ac_kw; break
10299else
703e0a69
VZ
10300 echo "configure: failed program was:" >&5
10301 cat conftest.$ac_ext >&5
10f2d63a 10302fi
703e0a69 10303rm -f conftest*
10f2d63a
VZ
10304done
10305
10306fi
703e0a69
VZ
10307
10308echo "$ac_t""$ac_cv_c_inline" 1>&6
10309case "$ac_cv_c_inline" in
10f2d63a 10310 inline | yes) ;;
703e0a69
VZ
10311 no) cat >> confdefs.h <<\EOF
10312#define inline
10f2d63a
VZ
10313EOF
10314 ;;
703e0a69 10315 *) cat >> confdefs.h <<EOF
10f2d63a
VZ
10316#define inline $ac_cv_c_inline
10317EOF
10318 ;;
10319esac
10320
703e0a69
VZ
10321
10322echo $ac_n "checking size of char""... $ac_c" 1>&6
10323echo "configure:10324: checking size of char" >&5
10324if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then
10325 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 10326else
6232543b 10327 if test "$cross_compiling" = yes; then
703e0a69 10328 ac_cv_sizeof_char=1
6232543b 10329else
703e0a69
VZ
10330 cat > conftest.$ac_ext <<EOF
10331#line 10332 "configure"
6232543b 10332#include "confdefs.h"
703e0a69
VZ
10333#include <stdio.h>
10334main()
6232543b 10335{
703e0a69
VZ
10336 FILE *f=fopen("conftestval", "w");
10337 if (!f) exit(1);
10338 fprintf(f, "%d\n", sizeof(char));
10339 exit(0);
6232543b 10340}
703e0a69
VZ
10341EOF
10342if { (eval echo configure:10343: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10343then
10344 ac_cv_sizeof_char=`cat conftestval`
6232543b 10345else
703e0a69
VZ
10346 echo "configure: failed program was:" >&5
10347 cat conftest.$ac_ext >&5
10348 rm -fr conftest*
6232543b
VS
10349 ac_cv_sizeof_char=0
10350fi
703e0a69 10351rm -fr conftest*
6232543b 10352fi
10f2d63a 10353
6232543b 10354fi
703e0a69
VZ
10355echo "$ac_t""$ac_cv_sizeof_char" 1>&6
10356cat >> confdefs.h <<EOF
10357#define SIZEOF_CHAR $ac_cv_sizeof_char
10f2d63a
VZ
10358EOF
10359
10f2d63a 10360
703e0a69
VZ
10361echo $ac_n "checking size of short""... $ac_c" 1>&6
10362echo "configure:10363: checking size of short" >&5
10363if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
10364 echo $ac_n "(cached) $ac_c" 1>&6
6232543b 10365else
6232543b 10366 if test "$cross_compiling" = yes; then
703e0a69 10367 ac_cv_sizeof_short=2
6232543b 10368else
703e0a69
VZ
10369 cat > conftest.$ac_ext <<EOF
10370#line 10371 "configure"
6232543b 10371#include "confdefs.h"
703e0a69
VZ
10372#include <stdio.h>
10373main()
6232543b 10374{
703e0a69
VZ
10375 FILE *f=fopen("conftestval", "w");
10376 if (!f) exit(1);
10377 fprintf(f, "%d\n", sizeof(short));
10378 exit(0);
6232543b 10379}
703e0a69
VZ
10380EOF
10381if { (eval echo configure:10382: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10382then
10383 ac_cv_sizeof_short=`cat conftestval`
6232543b 10384else
703e0a69
VZ
10385 echo "configure: failed program was:" >&5
10386 cat conftest.$ac_ext >&5
10387 rm -fr conftest*
10388 ac_cv_sizeof_short=0
6232543b 10389fi
703e0a69 10390rm -fr conftest*
6232543b 10391fi
6232543b 10392
10f2d63a 10393fi
703e0a69
VZ
10394echo "$ac_t""$ac_cv_sizeof_short" 1>&6
10395cat >> confdefs.h <<EOF
10396#define SIZEOF_SHORT $ac_cv_sizeof_short
10397EOF
10398
10399
10400echo $ac_n "checking size of int *""... $ac_c" 1>&6
10401echo "configure:10402: checking size of int *" >&5
10402if eval "test \"`echo '$''{'ac_cv_sizeof_int_p'+set}'`\" = set"; then
10403 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
10404else
10405 if test "$cross_compiling" = yes; then
703e0a69 10406 ac_cv_sizeof_int_p=4
10f2d63a 10407else
703e0a69
VZ
10408 cat > conftest.$ac_ext <<EOF
10409#line 10410 "configure"
10f2d63a 10410#include "confdefs.h"
703e0a69
VZ
10411#include <stdio.h>
10412main()
10f2d63a 10413{
703e0a69
VZ
10414 FILE *f=fopen("conftestval", "w");
10415 if (!f) exit(1);
10416 fprintf(f, "%d\n", sizeof(int *));
10417 exit(0);
10f2d63a 10418}
703e0a69
VZ
10419EOF
10420if { (eval echo configure:10421: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10421then
10422 ac_cv_sizeof_int_p=`cat conftestval`
10f2d63a 10423else
703e0a69
VZ
10424 echo "configure: failed program was:" >&5
10425 cat conftest.$ac_ext >&5
10426 rm -fr conftest*
10427 ac_cv_sizeof_int_p=0
10f2d63a 10428fi
703e0a69 10429rm -fr conftest*
6232543b 10430fi
703e0a69 10431
6232543b 10432fi
703e0a69
VZ
10433echo "$ac_t""$ac_cv_sizeof_int_p" 1>&6
10434cat >> confdefs.h <<EOF
10435#define SIZEOF_INT_P $ac_cv_sizeof_int_p
10f2d63a
VZ
10436EOF
10437
703e0a69
VZ
10438
10439echo $ac_n "checking size of int""... $ac_c" 1>&6
10440echo "configure:10441: checking size of int" >&5
10441if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
10442 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
10443else
10444 if test "$cross_compiling" = yes; then
703e0a69 10445 ac_cv_sizeof_int=4
10f2d63a 10446else
703e0a69
VZ
10447 cat > conftest.$ac_ext <<EOF
10448#line 10449 "configure"
6232543b 10449#include "confdefs.h"
703e0a69
VZ
10450#include <stdio.h>
10451main()
6232543b 10452{
703e0a69
VZ
10453 FILE *f=fopen("conftestval", "w");
10454 if (!f) exit(1);
10455 fprintf(f, "%d\n", sizeof(int));
10456 exit(0);
6232543b 10457}
703e0a69
VZ
10458EOF
10459if { (eval echo configure:10460: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10460then
10461 ac_cv_sizeof_int=`cat conftestval`
10462else
10463 echo "configure: failed program was:" >&5
10464 cat conftest.$ac_ext >&5
10465 rm -fr conftest*
10466 ac_cv_sizeof_int=0
10f2d63a 10467fi
703e0a69
VZ
10468rm -fr conftest*
10469fi
10470
10471fi
10472echo "$ac_t""$ac_cv_sizeof_int" 1>&6
10473cat >> confdefs.h <<EOF
10474#define SIZEOF_INT $ac_cv_sizeof_int
10475EOF
10476
10477
10478echo $ac_n "checking size of long""... $ac_c" 1>&6
10479echo "configure:10480: checking size of long" >&5
10480if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
10481 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
10482else
10483 if test "$cross_compiling" = yes; then
703e0a69 10484 ac_cv_sizeof_long=4
10f2d63a 10485else
703e0a69
VZ
10486 cat > conftest.$ac_ext <<EOF
10487#line 10488 "configure"
10f2d63a 10488#include "confdefs.h"
703e0a69
VZ
10489#include <stdio.h>
10490main()
10f2d63a 10491{
703e0a69
VZ
10492 FILE *f=fopen("conftestval", "w");
10493 if (!f) exit(1);
10494 fprintf(f, "%d\n", sizeof(long));
10495 exit(0);
10f2d63a 10496}
703e0a69
VZ
10497EOF
10498if { (eval echo configure:10499: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10499then
10500 ac_cv_sizeof_long=`cat conftestval`
10f2d63a 10501else
703e0a69
VZ
10502 echo "configure: failed program was:" >&5
10503 cat conftest.$ac_ext >&5
10504 rm -fr conftest*
10505 ac_cv_sizeof_long=0
10f2d63a 10506fi
703e0a69 10507rm -fr conftest*
10f2d63a 10508fi
703e0a69 10509
10f2d63a 10510fi
703e0a69
VZ
10511echo "$ac_t""$ac_cv_sizeof_long" 1>&6
10512cat >> confdefs.h <<EOF
10513#define SIZEOF_LONG $ac_cv_sizeof_long
10514EOF
10515
10516
10517echo $ac_n "checking size of long long""... $ac_c" 1>&6
10518echo "configure:10519: checking size of long long" >&5
10519if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
10520 echo $ac_n "(cached) $ac_c" 1>&6
10521else
10522 if test "$cross_compiling" = yes; then
10523 ac_cv_sizeof_long_long=0
10524else
10525 cat > conftest.$ac_ext <<EOF
10526#line 10527 "configure"
10527#include "confdefs.h"
10528#include <stdio.h>
10529main()
10530{
10531 FILE *f=fopen("conftestval", "w");
10532 if (!f) exit(1);
10533 fprintf(f, "%d\n", sizeof(long long));
10534 exit(0);
10535}
10536EOF
10537if { (eval echo configure:10538: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10538then
10539 ac_cv_sizeof_long_long=`cat conftestval`
6232543b 10540else
703e0a69
VZ
10541 echo "configure: failed program was:" >&5
10542 cat conftest.$ac_ext >&5
10543 rm -fr conftest*
6232543b
VS
10544 ac_cv_sizeof_long_long=0
10545fi
703e0a69
VZ
10546rm -fr conftest*
10547fi
10548
6232543b 10549fi
703e0a69
VZ
10550echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
10551cat >> confdefs.h <<EOF
10f2d63a
VZ
10552#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
10553EOF
10554
6232543b 10555
703e0a69
VZ
10556
10557echo $ac_n "checking size of wchar_t""... $ac_c" 1>&6
10558echo "configure:10559: checking size of wchar_t" >&5
10559if eval "test \"`echo '$''{'wx_cv_sizeof_wchar_t'+set}'`\" = set"; then
10560 echo $ac_n "(cached) $ac_c" 1>&6
10561else
10562
b93d0d08
VS
10563 if test "$cross_compiling" = yes; then
10564 wx_cv_sizeof_wchar_t=4
703e0a69 10565
b93d0d08 10566else
703e0a69
VZ
10567 cat > conftest.$ac_ext <<EOF
10568#line 10569 "configure"
b93d0d08
VS
10569#include "confdefs.h"
10570
1f8ae82f
GD
10571 #ifdef HAVE_WCHAR_H
10572 # include <wchar.h>
10573 #endif
10574 #ifdef HAVE_STDLIB_H
10575 # include <stdlib.h>
10576 #endif
b93d0d08
VS
10577 #include <stdio.h>
10578 int main()
10579 {
10580 FILE *f=fopen("conftestval", "w");
10581 if (!f) exit(1);
10582 fprintf(f, "%i", sizeof(wchar_t));
10583 exit(0);
10584 }
703e0a69
VZ
10585
10586EOF
10587if { (eval echo configure:10588: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10588then
b93d0d08
VS
10589 wx_cv_sizeof_wchar_t=`cat conftestval`
10590else
703e0a69
VZ
10591 echo "configure: failed program was:" >&5
10592 cat conftest.$ac_ext >&5
10593 rm -fr conftest*
10594 wx_cv_sizeof_wchar_t=0
b93d0d08 10595fi
703e0a69 10596rm -fr conftest*
b93d0d08
VS
10597fi
10598
703e0a69 10599
b93d0d08
VS
10600fi
10601
703e0a69
VZ
10602echo "$ac_t""$wx_cv_sizeof_wchar_t" 1>&6
10603
10604cat >> confdefs.h <<EOF
28c6addc 10605#define SIZEOF_WCHAR_T $wx_cv_sizeof_wchar_t
b93d0d08
VS
10606EOF
10607
703e0a69
VZ
10608
10609
10610echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
10611echo "configure:10612: checking whether byte ordering is bigendian" >&5
10612if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
10613 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
10614else
10615 ac_cv_c_bigendian=unknown
10616# See if sys/param.h defines the BYTE_ORDER macro.
703e0a69
VZ
10617cat > conftest.$ac_ext <<EOF
10618#line 10619 "configure"
10f2d63a
VZ
10619#include "confdefs.h"
10620#include <sys/types.h>
10621#include <sys/param.h>
703e0a69 10622int main() {
10f2d63a
VZ
10623
10624#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
10625 bogus endian macros
10626#endif
703e0a69
VZ
10627; return 0; }
10628EOF
10629if { (eval echo configure:10630: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10630 rm -rf conftest*
10f2d63a 10631 # It does; now see whether it defined to BIG_ENDIAN or not.
703e0a69
VZ
10632cat > conftest.$ac_ext <<EOF
10633#line 10634 "configure"
10f2d63a
VZ
10634#include "confdefs.h"
10635#include <sys/types.h>
10636#include <sys/param.h>
703e0a69 10637int main() {
10f2d63a
VZ
10638
10639#if BYTE_ORDER != BIG_ENDIAN
10640 not big endian
10641#endif
703e0a69
VZ
10642; return 0; }
10643EOF
10644if { (eval echo configure:10645: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10645 rm -rf conftest*
10f2d63a
VZ
10646 ac_cv_c_bigendian=yes
10647else
703e0a69
VZ
10648 echo "configure: failed program was:" >&5
10649 cat conftest.$ac_ext >&5
10650 rm -rf conftest*
10651 ac_cv_c_bigendian=no
10f2d63a 10652fi
703e0a69 10653rm -f conftest*
10f2d63a 10654else
703e0a69
VZ
10655 echo "configure: failed program was:" >&5
10656 cat conftest.$ac_ext >&5
10f2d63a 10657fi
703e0a69 10658rm -f conftest*
10f2d63a
VZ
10659if test $ac_cv_c_bigendian = unknown; then
10660if test "$cross_compiling" = yes; then
10661 ac_cv_c_bigendian=unknown
10662else
703e0a69
VZ
10663 cat > conftest.$ac_ext <<EOF
10664#line 10665 "configure"
10f2d63a
VZ
10665#include "confdefs.h"
10666main () {
10667 /* Are we little or big endian? From Harbison&Steele. */
10668 union
10669 {
10670 long l;
10671 char c[sizeof (long)];
10672 } u;
10673 u.l = 1;
10674 exit (u.c[sizeof (long) - 1] == 1);
10675}
703e0a69
VZ
10676EOF
10677if { (eval echo configure:10678: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10678then
10f2d63a
VZ
10679 ac_cv_c_bigendian=no
10680else
703e0a69
VZ
10681 echo "configure: failed program was:" >&5
10682 cat conftest.$ac_ext >&5
10683 rm -fr conftest*
10684 ac_cv_c_bigendian=yes
10f2d63a 10685fi
703e0a69 10686rm -fr conftest*
10f2d63a 10687fi
703e0a69 10688
10f2d63a
VZ
10689fi
10690fi
703e0a69
VZ
10691
10692echo "$ac_t""$ac_cv_c_bigendian" 1>&6
10f2d63a 10693if test $ac_cv_c_bigendian = unknown; then
703e0a69 10694 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
10f2d63a
VZ
10695fi
10696if test $ac_cv_c_bigendian = yes; then
703e0a69 10697 cat >> confdefs.h <<\EOF
10f2d63a
VZ
10698#define WORDS_BIGENDIAN 1
10699EOF
10700
10701fi
10702
703e0a69
VZ
10703
10704
10f2d63a 10705 if test "$cross_compiling" = "yes"; then
703e0a69 10706 cat >> confdefs.h <<\EOF
10f2d63a
VZ
10707#define wxUSE_IOSTREAMH 1
10708EOF
10709
10710 else
703e0a69
VZ
10711
10712 ac_ext=C
10713# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6232543b 10714ac_cpp='$CXXCPP $CPPFLAGS'
703e0a69
VZ
10715ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10716ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10717cross_compiling=$ac_cv_prog_cxx_cross
10f2d63a 10718
703e0a69
VZ
10719
10720 for ac_hdr in iostream
10f2d63a 10721do
703e0a69
VZ
10722ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10723echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10724echo "configure:10725: checking for $ac_hdr" >&5
10725if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10726 echo $ac_n "(cached) $ac_c" 1>&6
10727else
10728 cat > conftest.$ac_ext <<EOF
10729#line 10730 "configure"
10f2d63a 10730#include "confdefs.h"
703e0a69
VZ
10731#include <$ac_hdr>
10732EOF
10733ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10734{ (eval echo configure:10735: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10735ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10736if test -z "$ac_err"; then
10737 rm -rf conftest*
10738 eval "ac_cv_header_$ac_safe=yes"
10f2d63a 10739else
703e0a69
VZ
10740 echo "$ac_err" >&5
10741 echo "configure: failed program was:" >&5
10f2d63a 10742 cat conftest.$ac_ext >&5
703e0a69
VZ
10743 rm -rf conftest*
10744 eval "ac_cv_header_$ac_safe=no"
10f2d63a 10745fi
703e0a69 10746rm -f conftest*
10f2d63a 10747fi
703e0a69
VZ
10748if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10749 echo "$ac_t""yes" 1>&6
10750 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10751 cat >> confdefs.h <<EOF
10752#define $ac_tr_hdr 1
10f2d63a 10753EOF
703e0a69
VZ
10754
10755else
10756 echo "$ac_t""no" 1>&6
10f2d63a
VZ
10757fi
10758done
10759
703e0a69 10760
10f2d63a 10761 if test "x$HAVE_IOSTREAM" = x ; then
703e0a69 10762 cat >> confdefs.h <<\EOF
10f2d63a
VZ
10763#define wxUSE_IOSTREAMH 1
10764EOF
10765
10766 else
10767 :
10768 fi
10769
10770 ac_ext=c
703e0a69 10771# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10f2d63a 10772ac_cpp='$CPP $CPPFLAGS'
703e0a69
VZ
10773ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10774ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10775cross_compiling=$ac_cv_prog_cc_cross
10f2d63a
VZ
10776
10777 fi
10778
10f2d63a 10779
703e0a69
VZ
10780
10781 echo $ac_n "checking if C++ compiler supports bool""... $ac_c" 1>&6
10782echo "configure:10783: checking if C++ compiler supports bool" >&5
10783if eval "test \"`echo '$''{'wx_cv_cpp_bool'+set}'`\" = set"; then
10784 echo $ac_n "(cached) $ac_c" 1>&6
10785else
10786
10787
10788 ac_ext=C
10789# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6232543b 10790ac_cpp='$CXXCPP $CPPFLAGS'
703e0a69
VZ
10791ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10792ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10793cross_compiling=$ac_cv_prog_cxx_cross
10794
10f2d63a 10795
703e0a69
VZ
10796 cat > conftest.$ac_ext <<EOF
10797#line 10798 "configure"
10f2d63a
VZ
10798#include "confdefs.h"
10799
703e0a69
VZ
10800
10801int main() {
10f2d63a
VZ
10802
10803 bool b = true;
10804
10805 return 0;
703e0a69
VZ
10806
10807; return 0; }
10808EOF
10809if { (eval echo configure:10810: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10810 rm -rf conftest*
10811
10f2d63a 10812 wx_cv_cpp_bool=yes
703e0a69 10813
10f2d63a 10814else
703e0a69
VZ
10815 echo "configure: failed program was:" >&5
10816 cat conftest.$ac_ext >&5
10817 rm -rf conftest*
10818
10f2d63a 10819 wx_cv_cpp_bool=no
703e0a69
VZ
10820
10821
10f2d63a 10822fi
703e0a69 10823rm -f conftest*
10f2d63a
VZ
10824
10825 ac_ext=c
703e0a69 10826# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10f2d63a 10827ac_cpp='$CPP $CPPFLAGS'
703e0a69
VZ
10828ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10829ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10830cross_compiling=$ac_cv_prog_cc_cross
10f2d63a 10831
703e0a69 10832
10f2d63a 10833fi
703e0a69
VZ
10834
10835echo "$ac_t""$wx_cv_cpp_bool" 1>&6
10f2d63a
VZ
10836
10837 if test "$wx_cv_cpp_bool" = "yes"; then
703e0a69 10838 cat >> confdefs.h <<\EOF
10f2d63a
VZ
10839#define HAVE_BOOL 1
10840EOF
10841
10842 fi
10843
6232543b 10844
703e0a69
VZ
10845
10846echo $ac_n "checking if you need GNU extensions""... $ac_c" 1>&6
10847echo "configure:10848: checking if you need GNU extensions" >&5
10848if eval "test \"`echo '$''{'wx_cv_gnu_extensions'+set}'`\" = set"; then
10849 echo $ac_n "(cached) $ac_c" 1>&6
10850else
10851
10852 cat > conftest.$ac_ext <<EOF
10853#line 10854 "configure"
10f2d63a
VZ
10854#include "confdefs.h"
10855#include <features.h>
703e0a69
VZ
10856int main() {
10857
10f2d63a
VZ
10858
10859#ifndef __GNU_LIBRARY__
10860 Compile error wanted
10861#endif
10862
703e0a69
VZ
10863
10864; return 0; }
10865EOF
10866if { (eval echo configure:10867: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10867 rm -rf conftest*
10f2d63a
VZ
10868 wx_cv_gnu_extensions=yes
10869else
703e0a69
VZ
10870 echo "configure: failed program was:" >&5
10871 cat conftest.$ac_ext >&5
10872 rm -rf conftest*
10873 wx_cv_gnu_extensions=no
10f2d63a 10874fi
703e0a69 10875rm -f conftest*
10f2d63a
VZ
10876
10877fi
10878
703e0a69
VZ
10879
10880echo "$ac_t""$wx_cv_gnu_extensions" 1>&6
10f2d63a 10881if test "$wx_cv_gnu_extensions" = "yes"; then
703e0a69 10882 cat >> confdefs.h <<EOF
10f2d63a
VZ
10883#define _GNU_SOURCE 1
10884EOF
10885
10886fi
10887
703e0a69
VZ
10888
10889
10890echo $ac_n "checking for wcslen in -lc""... $ac_c" 1>&6
10891echo "configure:10892: checking for wcslen in -lc" >&5
10892ac_lib_var=`echo c'_'wcslen | sed 'y%./+-%__p_%'`
10893if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10894 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 10895else
703e0a69 10896 ac_save_LIBS="$LIBS"
10f2d63a 10897LIBS="-lc $LIBS"
703e0a69
VZ
10898cat > conftest.$ac_ext <<EOF
10899#line 10900 "configure"
10f2d63a
VZ
10900#include "confdefs.h"
10901/* Override any gcc2 internal prototype to avoid an error. */
10902/* We use char because int might match the return type of a gcc2
703e0a69
VZ
10903 builtin and then its argument prototype would still apply. */
10904char wcslen();
10905
10906int main() {
10907wcslen()
10908; return 0; }
10909EOF
10910if { (eval echo configure:10911: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10911 rm -rf conftest*
10912 eval "ac_cv_lib_$ac_lib_var=yes"
10913else
10914 echo "configure: failed program was:" >&5
10915 cat conftest.$ac_ext >&5
10916 rm -rf conftest*
10917 eval "ac_cv_lib_$ac_lib_var=no"
10918fi
10919rm -f conftest*
10920LIBS="$ac_save_LIBS"
10921
10922fi
10923if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10924 echo "$ac_t""yes" 1>&6
10925
10926 cat >> confdefs.h <<\EOF
10f2d63a
VZ
10927#define HAVE_WCSLEN 1
10928EOF
10929
10930 WCHAR_LINK=""
703e0a69 10931
10f2d63a 10932else
703e0a69 10933 echo "$ac_t""no" 1>&6
10f2d63a 10934
703e0a69
VZ
10935 echo $ac_n "checking for wcslen in -lw""... $ac_c" 1>&6
10936echo "configure:10937: checking for wcslen in -lw" >&5
10937ac_lib_var=`echo w'_'wcslen | sed 'y%./+-%__p_%'`
10938if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10939 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 10940else
703e0a69 10941 ac_save_LIBS="$LIBS"
10f2d63a 10942LIBS="-lw $LIBS"
703e0a69
VZ
10943cat > conftest.$ac_ext <<EOF
10944#line 10945 "configure"
10f2d63a
VZ
10945#include "confdefs.h"
10946/* Override any gcc2 internal prototype to avoid an error. */
10947/* We use char because int might match the return type of a gcc2
703e0a69
VZ
10948 builtin and then its argument prototype would still apply. */
10949char wcslen();
10950
10951int main() {
10952wcslen()
10953; return 0; }
10954EOF
10955if { (eval echo configure:10956: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10956 rm -rf conftest*
10957 eval "ac_cv_lib_$ac_lib_var=yes"
10958else
10959 echo "configure: failed program was:" >&5
10960 cat conftest.$ac_ext >&5
10961 rm -rf conftest*
10962 eval "ac_cv_lib_$ac_lib_var=no"
10963fi
10964rm -f conftest*
10965LIBS="$ac_save_LIBS"
10966
10967fi
10968if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10969 echo "$ac_t""yes" 1>&6
10970
10971 cat >> confdefs.h <<\EOF
10f2d63a
VZ
10972#define HAVE_WCSLEN 1
10973EOF
10974
10975 WCHAR_LINK="-lw"
703e0a69
VZ
10976
10977else
10978 echo "$ac_t""no" 1>&6
10f2d63a
VZ
10979fi
10980
703e0a69 10981
6232543b 10982fi
10f2d63a 10983
703e0a69
VZ
10984
10985echo $ac_n "checking for vprintf""... $ac_c" 1>&6
10986echo "configure:10987: checking for vprintf" >&5
10987if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
10988 echo $ac_n "(cached) $ac_c" 1>&6
10989else
10990 cat > conftest.$ac_ext <<EOF
10991#line 10992 "configure"
10f2d63a
VZ
10992#include "confdefs.h"
10993/* System header to define __stub macros and hopefully few prototypes,
703e0a69 10994 which can conflict with char vprintf(); below. */
10f2d63a
VZ
10995#include <assert.h>
10996/* Override any gcc2 internal prototype to avoid an error. */
10997/* We use char because int might match the return type of a gcc2
703e0a69
VZ
10998 builtin and then its argument prototype would still apply. */
10999char vprintf();
11000
11001int main() {
10f2d63a
VZ
11002
11003/* The GNU C library defines this for functions which it implements
11004 to always fail with ENOSYS. Some functions are actually named
11005 something starting with __ and the normal name is an alias. */
703e0a69 11006#if defined (__stub_vprintf) || defined (__stub___vprintf)
10f2d63a
VZ
11007choke me
11008#else
703e0a69 11009vprintf();
10f2d63a
VZ
11010#endif
11011
703e0a69
VZ
11012; return 0; }
11013EOF
11014if { (eval echo configure:11015: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11015 rm -rf conftest*
11016 eval "ac_cv_func_vprintf=yes"
11017else
11018 echo "configure: failed program was:" >&5
11019 cat conftest.$ac_ext >&5
11020 rm -rf conftest*
11021 eval "ac_cv_func_vprintf=no"
11022fi
11023rm -f conftest*
11024fi
11025
11026if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
11027 echo "$ac_t""yes" 1>&6
11028 cat >> confdefs.h <<\EOF
11029#define HAVE_VPRINTF 1
11030EOF
11031
11032else
11033 echo "$ac_t""no" 1>&6
11034fi
11035
11036if test "$ac_cv_func_vprintf" != yes; then
11037echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
11038echo "configure:11039: checking for _doprnt" >&5
11039if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
11040 echo $ac_n "(cached) $ac_c" 1>&6
11041else
11042 cat > conftest.$ac_ext <<EOF
11043#line 11044 "configure"
10f2d63a
VZ
11044#include "confdefs.h"
11045/* System header to define __stub macros and hopefully few prototypes,
703e0a69 11046 which can conflict with char _doprnt(); below. */
10f2d63a
VZ
11047#include <assert.h>
11048/* Override any gcc2 internal prototype to avoid an error. */
11049/* We use char because int might match the return type of a gcc2
703e0a69
VZ
11050 builtin and then its argument prototype would still apply. */
11051char _doprnt();
11052
11053int main() {
10f2d63a
VZ
11054
11055/* The GNU C library defines this for functions which it implements
11056 to always fail with ENOSYS. Some functions are actually named
11057 something starting with __ and the normal name is an alias. */
11058#if defined (__stub__doprnt) || defined (__stub____doprnt)
11059choke me
11060#else
703e0a69 11061_doprnt();
10f2d63a
VZ
11062#endif
11063
703e0a69
VZ
11064; return 0; }
11065EOF
11066if { (eval echo configure:11067: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11067 rm -rf conftest*
11068 eval "ac_cv_func__doprnt=yes"
11069else
11070 echo "configure: failed program was:" >&5
11071 cat conftest.$ac_ext >&5
11072 rm -rf conftest*
11073 eval "ac_cv_func__doprnt=no"
11074fi
11075rm -f conftest*
11076fi
11077
11078if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
11079 echo "$ac_t""yes" 1>&6
11080 cat >> confdefs.h <<\EOF
10f2d63a
VZ
11081#define HAVE_DOPRNT 1
11082EOF
11083
703e0a69
VZ
11084else
11085 echo "$ac_t""no" 1>&6
10f2d63a
VZ
11086fi
11087
11088fi
11089
6232543b 11090
703e0a69
VZ
11091
11092
11093
11094
11095
11096echo $ac_n "checking for vsnprintf""... $ac_c" 1>&6
11097echo "configure:11098: checking for vsnprintf" >&5
11098if eval "test \"`echo '$''{'wx_cv_func_vsnprintf'+set}'`\" = set"; then
11099 echo $ac_n "(cached) $ac_c" 1>&6
11100else
11101
11102 cat > conftest.$ac_ext <<EOF
11103#line 11104 "configure"
f6bcfd97
BP
11104#include "confdefs.h"
11105
11106 #include <stdio.h>
703e0a69
VZ
11107 #include <stdarg.h>
11108
11109int main() {
10f2d63a 11110
f6bcfd97 11111 int wx_test_vsnprintf(const char *, ...);
10f2d63a 11112
f6bcfd97
BP
11113 wx_test_vsnprintf("%s");
11114 return 0;
11115 }
11116
11117 int wx_test_vsnprintf(const char *fmt, ...)
11118 {
11119 char *s;
11120
11121 va_list argp;
11122 va_start(argp, fmt);
11123 vsnprintf(s, 42, fmt, argp);
11124 va_end(argp);
703e0a69
VZ
11125
11126; return 0; }
11127EOF
11128if { (eval echo configure:11129: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11129 rm -rf conftest*
11130
f6bcfd97 11131 wx_cv_func_vsnprintf=yes
703e0a69 11132
10f2d63a 11133else
703e0a69
VZ
11134 echo "configure: failed program was:" >&5
11135 cat conftest.$ac_ext >&5
11136 rm -rf conftest*
11137
11138 cat > conftest.$ac_ext <<EOF
11139#line 11140 "configure"
c521c494
RL
11140#include "confdefs.h"
11141
11142 #include <stdio.h>
11143 #include <stdarg.h>
703e0a69
VZ
11144
11145int main() {
c521c494
RL
11146
11147 int wx_test_vsnprintf(const char *, ...);
11148
11149 wx_test_vsnprintf("%s");
11150 return 0;
11151 }
11152
11153 int wx_test_vsnprintf(const char *fmt, ...)
11154 {
11155 char *s;
11156
11157 va_list argp;
11158 va_start(argp, fmt);
11159 _vsnprintf(s, 42, fmt, argp);
11160 va_end(argp);
703e0a69
VZ
11161
11162; return 0; }
11163EOF
11164if { (eval echo configure:11165: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11165 rm -rf conftest*
11166
c521c494 11167 wx_cv_func_vsnprintf=yes
703e0a69 11168
c521c494 11169else
703e0a69
VZ
11170 echo "configure: failed program was:" >&5
11171 cat conftest.$ac_ext >&5
11172 rm -rf conftest*
11173
c521c494 11174 wx_cv_func_vsnprintf=no
703e0a69 11175
10f2d63a 11176fi
703e0a69
VZ
11177rm -f conftest*
11178
10f2d63a 11179fi
703e0a69 11180rm -f conftest*
10f2d63a 11181
6232543b 11182fi
703e0a69
VZ
11183
11184echo "$ac_t""$wx_cv_func_vsnprintf" 1>&6
10f2d63a 11185
9d8deca0 11186if test "$wx_cv_func_vsnprintf" = yes; then
703e0a69 11187 cat >> confdefs.h <<\EOF
9d8deca0
VZ
11188#define HAVE_VSNPRINTF 1
11189EOF
11190
11191else
703e0a69 11192 echo "configure: warning: unsafe function sprintf will be used instead of snprintf" 1>&2
9d8deca0
VZ
11193fi
11194
703e0a69
VZ
11195echo $ac_n "checking for vsscanf""... $ac_c" 1>&6
11196echo "configure:11197: checking for vsscanf" >&5
11197if eval "test \"`echo '$''{'wx_cv_func_vsscanf'+set}'`\" = set"; then
11198 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 11199else
703e0a69
VZ
11200
11201 cat > conftest.$ac_ext <<EOF
11202#line 11203 "configure"
10f2d63a 11203#include "confdefs.h"
10f2d63a 11204
f6bcfd97
BP
11205 #include <stdio.h>
11206 #include <stdarg.h>
703e0a69
VZ
11207
11208int main() {
10f2d63a 11209
f6bcfd97 11210 int wx_test_vsscanf(const char *, ...);
10f2d63a 11211
f6bcfd97
BP
11212 wx_test_vsscanf("%d");
11213 return 0;
10f2d63a
VZ
11214 }
11215
f6bcfd97 11216 int wx_test_vsscanf(const char *fmt, ...)
10f2d63a 11217 {
f6bcfd97
BP
11218 va_list argp;
11219 va_start(argp, fmt);
11220 vsscanf("42", fmt, argp);
11221 va_end(argp);
703e0a69
VZ
11222
11223; return 0; }
11224EOF
11225if { (eval echo configure:11226: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11226 rm -rf conftest*
11227
f6bcfd97 11228 wx_cv_func_vsscanf=yes
703e0a69 11229
10f2d63a 11230else
703e0a69
VZ
11231 echo "configure: failed program was:" >&5
11232 cat conftest.$ac_ext >&5
11233 rm -rf conftest*
11234
f6bcfd97 11235 wx_cv_func_vsscanf=no
703e0a69 11236
10f2d63a 11237fi
703e0a69 11238rm -f conftest*
10f2d63a 11239
6232543b 11240fi
703e0a69
VZ
11241
11242echo "$ac_t""$wx_cv_func_vsscanf" 1>&6
10f2d63a 11243
9d8deca0 11244if test "$wx_cv_func_vsscanf" = yes; then
703e0a69 11245 cat >> confdefs.h <<\EOF
9d8deca0
VZ
11246#define HAVE_VSSCANF 1
11247EOF
11248
11249fi
11250
95c8801c
VS
11251if test "$TOOLKIT" != "MSW"; then
11252
11253
11254
703e0a69
VZ
11255ac_ext=C
11256# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11257ac_cpp='$CXXCPP $CPPFLAGS'
11258ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11259ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11260cross_compiling=$ac_cv_prog_cxx_cross
11261
11262echo $ac_n "checking if iconv() takes char**""... $ac_c" 1>&6
11263echo "configure:11264: checking if iconv() takes char**" >&5
11264if eval "test \"`echo '$''{'wx_cv_iconv_takes_char'+set}'`\" = set"; then
11265 echo $ac_n "(cached) $ac_c" 1>&6
11266else
11267
11268 cat > conftest.$ac_ext <<EOF
11269#line 11270 "configure"
95c8801c
VS
11270#include "confdefs.h"
11271#include <iconv.h>
703e0a69 11272int main() {
95c8801c
VS
11273
11274 char **inbuf, **outbuf;
11275 iconv_t cd;
11276 size_t insz, outsz;
11277 iconv(cd, inbuf, &insz, outbuf, &outsz);
703e0a69
VZ
11278
11279; return 0; }
11280EOF
11281if { (eval echo configure:11282: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11282 rm -rf conftest*
95c8801c
VS
11283 wx_cv_iconv_takes_char=yes
11284else
703e0a69
VZ
11285 echo "configure: failed program was:" >&5
11286 cat conftest.$ac_ext >&5
11287 rm -rf conftest*
11288 wx_cv_iconv_takes_char=no
95c8801c 11289fi
703e0a69 11290rm -f conftest*
95c8801c
VS
11291
11292fi
703e0a69
VZ
11293
11294echo "$ac_t""$wx_cv_iconv_takes_char" 1>&6
10f2d63a 11295ac_ext=c
703e0a69 11296# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10f2d63a 11297ac_cpp='$CPP $CPPFLAGS'
703e0a69
VZ
11298ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11299ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11300cross_compiling=$ac_cv_prog_cc_cross
10f2d63a 11301
95c8801c 11302if test "$wx_cv_iconv_takes_char" = yes ; then
703e0a69 11303 cat >> confdefs.h <<\EOF
95c8801c
VS
11304#define WX_ICONV_TAKES_CHAR 1
11305EOF
11306
11307fi
10f2d63a 11308
6232543b 11309
703e0a69
VZ
11310if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
11311 for ac_func in sigaction
eb4efbdc 11312do
703e0a69
VZ
11313echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11314echo "configure:11315: checking for $ac_func" >&5
11315if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11316 echo $ac_n "(cached) $ac_c" 1>&6
11317else
11318 cat > conftest.$ac_ext <<EOF
11319#line 11320 "configure"
eb4efbdc
VZ
11320#include "confdefs.h"
11321/* System header to define __stub macros and hopefully few prototypes,
703e0a69 11322 which can conflict with char $ac_func(); below. */
eb4efbdc
VZ
11323#include <assert.h>
11324/* Override any gcc2 internal prototype to avoid an error. */
11325/* We use char because int might match the return type of a gcc2
703e0a69
VZ
11326 builtin and then its argument prototype would still apply. */
11327char $ac_func();
11328
11329int main() {
eb4efbdc
VZ
11330
11331/* The GNU C library defines this for functions which it implements
11332 to always fail with ENOSYS. Some functions are actually named
11333 something starting with __ and the normal name is an alias. */
11334#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11335choke me
11336#else
703e0a69 11337$ac_func();
eb4efbdc
VZ
11338#endif
11339
703e0a69 11340; return 0; }
eb4efbdc 11341EOF
703e0a69
VZ
11342if { (eval echo configure:11343: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11343 rm -rf conftest*
11344 eval "ac_cv_func_$ac_func=yes"
11345else
11346 echo "configure: failed program was:" >&5
11347 cat conftest.$ac_ext >&5
11348 rm -rf conftest*
11349 eval "ac_cv_func_$ac_func=no"
11350fi
11351rm -f conftest*
11352fi
eb4efbdc 11353
703e0a69
VZ
11354if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11355 echo "$ac_t""yes" 1>&6
11356 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11357 cat >> confdefs.h <<EOF
11358#define $ac_tr_func 1
11359EOF
11360
11361else
11362 echo "$ac_t""no" 1>&6
eb4efbdc
VZ
11363fi
11364done
11365
703e0a69 11366
eb4efbdc 11367 if test "$ac_cv_func_sigaction" = "no"; then
703e0a69 11368 echo "configure: warning: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" 1>&2
eb4efbdc
VZ
11369 wxUSE_ON_FATAL_EXCEPTION=no
11370 fi
f6bcfd97
BP
11371
11372 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
703e0a69
VZ
11373
11374 ac_ext=C
11375# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6232543b 11376ac_cpp='$CXXCPP $CPPFLAGS'
703e0a69
VZ
11377ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11378ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11379cross_compiling=$ac_cv_prog_cxx_cross
f6bcfd97 11380
6232543b 11381
703e0a69
VZ
11382 echo $ac_n "checking for sa_handler type""... $ac_c" 1>&6
11383echo "configure:11384: checking for sa_handler type" >&5
11384if eval "test \"`echo '$''{'wx_cv_type_sa_handler'+set}'`\" = set"; then
11385 echo $ac_n "(cached) $ac_c" 1>&6
11386else
11387
11388 cat > conftest.$ac_ext <<EOF
11389#line 11390 "configure"
f6bcfd97
BP
11390#include "confdefs.h"
11391#include <signal.h>
703e0a69 11392int main() {
f6bcfd97
BP
11393
11394 extern void testSigHandler(int);
11395
11396 struct sigaction sa;
11397 sa.sa_handler = testSigHandler;
703e0a69
VZ
11398
11399; return 0; }
11400EOF
11401if { (eval echo configure:11402: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11402 rm -rf conftest*
11403
f6bcfd97 11404 wx_cv_type_sa_handler=int
703e0a69 11405
f6bcfd97 11406else
703e0a69
VZ
11407 echo "configure: failed program was:" >&5
11408 cat conftest.$ac_ext >&5
11409 rm -rf conftest*
11410
f6bcfd97 11411 wx_cv_type_sa_handler=void
703e0a69 11412
f6bcfd97 11413fi
703e0a69
VZ
11414rm -f conftest*
11415
6232543b 11416fi
703e0a69
VZ
11417
11418echo "$ac_t""$wx_cv_type_sa_handler" 1>&6
f6bcfd97
BP
11419
11420 ac_ext=c
703e0a69 11421# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
f6bcfd97 11422ac_cpp='$CPP $CPPFLAGS'
703e0a69
VZ
11423ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11424ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11425cross_compiling=$ac_cv_prog_cc_cross
11426
f6bcfd97 11427
703e0a69 11428 cat >> confdefs.h <<EOF
f6bcfd97
BP
11429#define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
11430EOF
11431
11432 fi
eb4efbdc
VZ
11433fi
11434
10f2d63a
VZ
11435for ac_func in vfork
11436do
703e0a69
VZ
11437echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11438echo "configure:11439: checking for $ac_func" >&5
11439if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11440 echo $ac_n "(cached) $ac_c" 1>&6
11441else
11442 cat > conftest.$ac_ext <<EOF
11443#line 11444 "configure"
10f2d63a
VZ
11444#include "confdefs.h"
11445/* System header to define __stub macros and hopefully few prototypes,
703e0a69 11446 which can conflict with char $ac_func(); below. */
10f2d63a
VZ
11447#include <assert.h>
11448/* Override any gcc2 internal prototype to avoid an error. */
11449/* We use char because int might match the return type of a gcc2
703e0a69
VZ
11450 builtin and then its argument prototype would still apply. */
11451char $ac_func();
11452
11453int main() {
10f2d63a
VZ
11454
11455/* The GNU C library defines this for functions which it implements
11456 to always fail with ENOSYS. Some functions are actually named
11457 something starting with __ and the normal name is an alias. */
11458#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11459choke me
11460#else
703e0a69 11461$ac_func();
10f2d63a
VZ
11462#endif
11463
703e0a69 11464; return 0; }
10f2d63a 11465EOF
703e0a69
VZ
11466if { (eval echo configure:11467: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11467 rm -rf conftest*
11468 eval "ac_cv_func_$ac_func=yes"
11469else
11470 echo "configure: failed program was:" >&5
11471 cat conftest.$ac_ext >&5
11472 rm -rf conftest*
11473 eval "ac_cv_func_$ac_func=no"
11474fi
11475rm -f conftest*
11476fi
270a909e 11477
703e0a69
VZ
11478if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11479 echo "$ac_t""yes" 1>&6
11480 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11481 cat >> confdefs.h <<EOF
11482#define $ac_tr_func 1
11483EOF
11484
11485else
11486 echo "$ac_t""no" 1>&6
270a909e
VZ
11487fi
11488done
11489
6232543b 11490
703e0a69
VZ
11491if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
11492 for ac_func in fcntl flock
4f3c5f06 11493do
703e0a69
VZ
11494echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11495echo "configure:11496: checking for $ac_func" >&5
11496if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11497 echo $ac_n "(cached) $ac_c" 1>&6
11498else
11499 cat > conftest.$ac_ext <<EOF
11500#line 11501 "configure"
4f3c5f06
VZ
11501#include "confdefs.h"
11502/* System header to define __stub macros and hopefully few prototypes,
703e0a69 11503 which can conflict with char $ac_func(); below. */
4f3c5f06
VZ
11504#include <assert.h>
11505/* Override any gcc2 internal prototype to avoid an error. */
11506/* We use char because int might match the return type of a gcc2
703e0a69
VZ
11507 builtin and then its argument prototype would still apply. */
11508char $ac_func();
11509
11510int main() {
4f3c5f06
VZ
11511
11512/* The GNU C library defines this for functions which it implements
11513 to always fail with ENOSYS. Some functions are actually named
11514 something starting with __ and the normal name is an alias. */
11515#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11516choke me
11517#else
703e0a69 11518$ac_func();
4f3c5f06
VZ
11519#endif
11520
703e0a69
VZ
11521; return 0; }
11522EOF
11523if { (eval echo configure:11524: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11524 rm -rf conftest*
11525 eval "ac_cv_func_$ac_func=yes"
11526else
11527 echo "configure: failed program was:" >&5
11528 cat conftest.$ac_ext >&5
11529 rm -rf conftest*
11530 eval "ac_cv_func_$ac_func=no"
11531fi
11532rm -f conftest*
11533fi
11534
11535if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11536 echo "$ac_t""yes" 1>&6
11537 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11538 cat >> confdefs.h <<EOF
11539#define $ac_tr_func 1
4f3c5f06
VZ
11540EOF
11541 break
703e0a69
VZ
11542else
11543 echo "$ac_t""no" 1>&6
4f3c5f06
VZ
11544fi
11545done
11546
703e0a69 11547
4f3c5f06 11548 if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
703e0a69 11549 echo "configure: warning: wxSingleInstanceChecker not available" 1>&2
4f3c5f06
VZ
11550 wxUSE_SNGLINST_CHECKER=no
11551 fi
11552fi
11553
270a909e
VZ
11554for ac_func in timegm
11555do
703e0a69
VZ
11556echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11557echo "configure:11558: checking for $ac_func" >&5
11558if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11559 echo $ac_n "(cached) $ac_c" 1>&6
11560else
11561 cat > conftest.$ac_ext <<EOF
11562#line 11563 "configure"
270a909e
VZ
11563#include "confdefs.h"
11564/* System header to define __stub macros and hopefully few prototypes,
703e0a69 11565 which can conflict with char $ac_func(); below. */
270a909e
VZ
11566#include <assert.h>
11567/* Override any gcc2 internal prototype to avoid an error. */
11568/* We use char because int might match the return type of a gcc2
703e0a69
VZ
11569 builtin and then its argument prototype would still apply. */
11570char $ac_func();
11571
11572int main() {
270a909e
VZ
11573
11574/* The GNU C library defines this for functions which it implements
11575 to always fail with ENOSYS. Some functions are actually named
11576 something starting with __ and the normal name is an alias. */
11577#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11578choke me
11579#else
703e0a69 11580$ac_func();
270a909e
VZ
11581#endif
11582
703e0a69 11583; return 0; }
270a909e 11584EOF
703e0a69
VZ
11585if { (eval echo configure:11586: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11586 rm -rf conftest*
11587 eval "ac_cv_func_$ac_func=yes"
11588else
11589 echo "configure: failed program was:" >&5
11590 cat conftest.$ac_ext >&5
11591 rm -rf conftest*
11592 eval "ac_cv_func_$ac_func=no"
11593fi
11594rm -f conftest*
11595fi
10f2d63a 11596
703e0a69
VZ
11597if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11598 echo "$ac_t""yes" 1>&6
11599 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11600 cat >> confdefs.h <<EOF
11601#define $ac_tr_func 1
11602EOF
11603
11604else
11605 echo "$ac_t""no" 1>&6
10f2d63a
VZ
11606fi
11607done
11608
703e0a69 11609
8fd0d89b
VZ
11610for ac_func in putenv setenv
11611do
703e0a69
VZ
11612echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11613echo "configure:11614: checking for $ac_func" >&5
11614if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11615 echo $ac_n "(cached) $ac_c" 1>&6
11616else
11617 cat > conftest.$ac_ext <<EOF
11618#line 11619 "configure"
8fd0d89b
VZ
11619#include "confdefs.h"
11620/* System header to define __stub macros and hopefully few prototypes,
703e0a69 11621 which can conflict with char $ac_func(); below. */
8fd0d89b
VZ
11622#include <assert.h>
11623/* Override any gcc2 internal prototype to avoid an error. */
11624/* We use char because int might match the return type of a gcc2
703e0a69
VZ
11625 builtin and then its argument prototype would still apply. */
11626char $ac_func();
11627
11628int main() {
8fd0d89b
VZ
11629
11630/* The GNU C library defines this for functions which it implements
11631 to always fail with ENOSYS. Some functions are actually named
11632 something starting with __ and the normal name is an alias. */
11633#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11634choke me
11635#else
703e0a69 11636$ac_func();
8fd0d89b
VZ
11637#endif
11638
703e0a69
VZ
11639; return 0; }
11640EOF
11641if { (eval echo configure:11642: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11642 rm -rf conftest*
11643 eval "ac_cv_func_$ac_func=yes"
11644else
11645 echo "configure: failed program was:" >&5
11646 cat conftest.$ac_ext >&5
11647 rm -rf conftest*
11648 eval "ac_cv_func_$ac_func=no"
11649fi
11650rm -f conftest*
11651fi
11652
11653if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11654 echo "$ac_t""yes" 1>&6
11655 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11656 cat >> confdefs.h <<EOF
11657#define $ac_tr_func 1
8fd0d89b
VZ
11658EOF
11659 break
703e0a69
VZ
11660else
11661 echo "$ac_t""no" 1>&6
8fd0d89b
VZ
11662fi
11663done
11664
703e0a69 11665
b12915c1
VZ
11666HAVE_SOME_SLEEP_FUNC=0
11667if test "$USE_BEOS" = 1; then
703e0a69 11668 cat >> confdefs.h <<\EOF
b12915c1
VZ
11669#define HAVE_SLEEP 1
11670EOF
11671
11672 HAVE_SOME_SLEEP_FUNC=1
11673fi
11674
b4085ce6 11675if test "$USE_MAC" = 1; then
703e0a69 11676 cat >> confdefs.h <<\EOF
b4085ce6
GD
11677#define HAVE_USLEEP 1
11678EOF
11679
11680 HAVE_SOME_SLEEP_FUNC=1
11681fi
11682
b12915c1
VZ
11683if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
11684 POSIX4_LINK=
703e0a69 11685 for ac_func in nanosleep
10f2d63a 11686do
703e0a69
VZ
11687echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11688echo "configure:11689: checking for $ac_func" >&5
11689if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11690 echo $ac_n "(cached) $ac_c" 1>&6
11691else
11692 cat > conftest.$ac_ext <<EOF
11693#line 11694 "configure"
10f2d63a
VZ
11694#include "confdefs.h"
11695/* System header to define __stub macros and hopefully few prototypes,
703e0a69 11696 which can conflict with char $ac_func(); below. */
10f2d63a
VZ
11697#include <assert.h>
11698/* Override any gcc2 internal prototype to avoid an error. */
11699/* We use char because int might match the return type of a gcc2
703e0a69
VZ
11700 builtin and then its argument prototype would still apply. */
11701char $ac_func();
11702
11703int main() {
10f2d63a
VZ
11704
11705/* The GNU C library defines this for functions which it implements
11706 to always fail with ENOSYS. Some functions are actually named
11707 something starting with __ and the normal name is an alias. */
11708#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11709choke me
11710#else
703e0a69 11711$ac_func();
10f2d63a
VZ
11712#endif
11713
703e0a69
VZ
11714; return 0; }
11715EOF
11716if { (eval echo configure:11717: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11717 rm -rf conftest*
11718 eval "ac_cv_func_$ac_func=yes"
11719else
11720 echo "configure: failed program was:" >&5
11721 cat conftest.$ac_ext >&5
11722 rm -rf conftest*
11723 eval "ac_cv_func_$ac_func=no"
11724fi
11725rm -f conftest*
11726fi
11727
11728if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11729 echo "$ac_t""yes" 1>&6
11730 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11731 cat >> confdefs.h <<EOF
11732#define $ac_tr_func 1
11733EOF
11734 cat >> confdefs.h <<\EOF
10f2d63a
VZ
11735#define HAVE_NANOSLEEP 1
11736EOF
11737
11738else
703e0a69
VZ
11739 echo "$ac_t""no" 1>&6
11740echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6
11741echo "configure:11742: checking for nanosleep in -lposix4" >&5
11742ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'`
11743if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11744 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 11745else
703e0a69 11746 ac_save_LIBS="$LIBS"
10f2d63a 11747LIBS="-lposix4 $LIBS"
703e0a69
VZ
11748cat > conftest.$ac_ext <<EOF
11749#line 11750 "configure"
10f2d63a
VZ
11750#include "confdefs.h"
11751/* Override any gcc2 internal prototype to avoid an error. */
11752/* We use char because int might match the return type of a gcc2
703e0a69
VZ
11753 builtin and then its argument prototype would still apply. */
11754char nanosleep();
11755
11756int main() {
11757nanosleep()
11758; return 0; }
11759EOF
11760if { (eval echo configure:11761: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11761 rm -rf conftest*
11762 eval "ac_cv_lib_$ac_lib_var=yes"
11763else
11764 echo "configure: failed program was:" >&5
11765 cat conftest.$ac_ext >&5
11766 rm -rf conftest*
11767 eval "ac_cv_lib_$ac_lib_var=no"
11768fi
11769rm -f conftest*
11770LIBS="$ac_save_LIBS"
11771
11772fi
11773if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11774 echo "$ac_t""yes" 1>&6
11775
11776 cat >> confdefs.h <<\EOF
10f2d63a
VZ
11777#define HAVE_NANOSLEEP 1
11778EOF
11779
b12915c1 11780 POSIX4_LINK="-lposix4"
703e0a69 11781
10f2d63a 11782else
703e0a69 11783 echo "$ac_t""no" 1>&6
10f2d63a 11784
703e0a69 11785 for ac_func in usleep
10f2d63a 11786do
703e0a69
VZ
11787echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11788echo "configure:11789: checking for $ac_func" >&5
11789if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11790 echo $ac_n "(cached) $ac_c" 1>&6
11791else
11792 cat > conftest.$ac_ext <<EOF
11793#line 11794 "configure"
10f2d63a
VZ
11794#include "confdefs.h"
11795/* System header to define __stub macros and hopefully few prototypes,
703e0a69 11796 which can conflict with char $ac_func(); below. */
10f2d63a
VZ
11797#include <assert.h>
11798/* Override any gcc2 internal prototype to avoid an error. */
11799/* We use char because int might match the return type of a gcc2
703e0a69
VZ
11800 builtin and then its argument prototype would still apply. */
11801char $ac_func();
11802
11803int main() {
10f2d63a
VZ
11804
11805/* The GNU C library defines this for functions which it implements
11806 to always fail with ENOSYS. Some functions are actually named
11807 something starting with __ and the normal name is an alias. */
11808#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11809choke me
11810#else
703e0a69 11811$ac_func();
10f2d63a
VZ
11812#endif
11813
703e0a69
VZ
11814; return 0; }
11815EOF
11816if { (eval echo configure:11817: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11817 rm -rf conftest*
11818 eval "ac_cv_func_$ac_func=yes"
11819else
11820 echo "configure: failed program was:" >&5
11821 cat conftest.$ac_ext >&5
11822 rm -rf conftest*
11823 eval "ac_cv_func_$ac_func=no"
11824fi
11825rm -f conftest*
11826fi
11827
11828if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11829 echo "$ac_t""yes" 1>&6
11830 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11831 cat >> confdefs.h <<EOF
11832#define $ac_tr_func 1
11833EOF
11834 cat >> confdefs.h <<\EOF
b4085ce6
GD
11835#define HAVE_USLEEP 1
11836EOF
11837
10f2d63a 11838else
703e0a69
VZ
11839 echo "$ac_t""no" 1>&6
11840echo "configure: warning: wxSleep() function will not work" 1>&2
11841
10f2d63a
VZ
11842fi
11843done
11844
703e0a69
VZ
11845
11846
10f2d63a
VZ
11847fi
11848
703e0a69
VZ
11849
11850
10f2d63a
VZ
11851fi
11852done
11853
b12915c1 11854fi
10f2d63a
VZ
11855
11856for ac_func in uname gethostname
11857do
703e0a69
VZ
11858echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11859echo "configure:11860: checking for $ac_func" >&5
11860if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11861 echo $ac_n "(cached) $ac_c" 1>&6
11862else
11863 cat > conftest.$ac_ext <<EOF
11864#line 11865 "configure"
10f2d63a
VZ
11865#include "confdefs.h"
11866/* System header to define __stub macros and hopefully few prototypes,
703e0a69 11867 which can conflict with char $ac_func(); below. */
10f2d63a
VZ
11868#include <assert.h>
11869/* Override any gcc2 internal prototype to avoid an error. */
11870/* We use char because int might match the return type of a gcc2
703e0a69
VZ
11871 builtin and then its argument prototype would still apply. */
11872char $ac_func();
11873
11874int main() {
10f2d63a
VZ
11875
11876/* The GNU C library defines this for functions which it implements
11877 to always fail with ENOSYS. Some functions are actually named
11878 something starting with __ and the normal name is an alias. */
11879#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11880choke me
11881#else
703e0a69 11882$ac_func();
10f2d63a
VZ
11883#endif
11884
703e0a69
VZ
11885; return 0; }
11886EOF
11887if { (eval echo configure:11888: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11888 rm -rf conftest*
11889 eval "ac_cv_func_$ac_func=yes"
11890else
11891 echo "configure: failed program was:" >&5
11892 cat conftest.$ac_ext >&5
11893 rm -rf conftest*
11894 eval "ac_cv_func_$ac_func=no"
11895fi
11896rm -f conftest*
11897fi
11898
11899if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11900 echo "$ac_t""yes" 1>&6
11901 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11902 cat >> confdefs.h <<EOF
11903#define $ac_tr_func 1
10f2d63a
VZ
11904EOF
11905 break
703e0a69
VZ
11906else
11907 echo "$ac_t""no" 1>&6
10f2d63a
VZ
11908fi
11909done
11910
703e0a69
VZ
11911
11912
11913ac_ext=C
11914# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6098c7f9 11915ac_cpp='$CXXCPP $CPPFLAGS'
703e0a69
VZ
11916ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11917ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11918cross_compiling=$ac_cv_prog_cxx_cross
11919
6098c7f9 11920
10f2d63a
VZ
11921for ac_func in strtok_r
11922do
703e0a69
VZ
11923echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11924echo "configure:11925: checking for $ac_func" >&5
11925if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11926 echo $ac_n "(cached) $ac_c" 1>&6
11927else
11928 cat > conftest.$ac_ext <<EOF
11929#line 11930 "configure"
10f2d63a
VZ
11930#include "confdefs.h"
11931/* System header to define __stub macros and hopefully few prototypes,
703e0a69 11932 which can conflict with char $ac_func(); below. */
10f2d63a
VZ
11933#include <assert.h>
11934/* Override any gcc2 internal prototype to avoid an error. */
6098c7f9
VZ
11935#ifdef __cplusplus
11936extern "C"
11937#endif
10f2d63a 11938/* We use char because int might match the return type of a gcc2
703e0a69
VZ
11939 builtin and then its argument prototype would still apply. */
11940char $ac_func();
11941
11942int main() {
10f2d63a
VZ
11943
11944/* The GNU C library defines this for functions which it implements
11945 to always fail with ENOSYS. Some functions are actually named
11946 something starting with __ and the normal name is an alias. */
11947#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11948choke me
11949#else
703e0a69 11950$ac_func();
10f2d63a
VZ
11951#endif
11952
703e0a69 11953; return 0; }
10f2d63a 11954EOF
703e0a69
VZ
11955if { (eval echo configure:11956: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11956 rm -rf conftest*
11957 eval "ac_cv_func_$ac_func=yes"
11958else
11959 echo "configure: failed program was:" >&5
11960 cat conftest.$ac_ext >&5
11961 rm -rf conftest*
11962 eval "ac_cv_func_$ac_func=no"
11963fi
11964rm -f conftest*
11965fi
10f2d63a 11966
703e0a69
VZ
11967if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11968 echo "$ac_t""yes" 1>&6
11969 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11970 cat >> confdefs.h <<EOF
11971#define $ac_tr_func 1
11972EOF
11973
11974else
11975 echo "$ac_t""no" 1>&6
10f2d63a
VZ
11976fi
11977done
11978
703e0a69 11979
6098c7f9 11980ac_ext=c
703e0a69 11981# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6098c7f9 11982ac_cpp='$CPP $CPPFLAGS'
703e0a69
VZ
11983ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11984ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11985cross_compiling=$ac_cv_prog_cc_cross
6098c7f9 11986
6232543b 11987
703e0a69 11988INET_LINK=
10f2d63a
VZ
11989for ac_func in inet_addr
11990do
703e0a69
VZ
11991echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11992echo "configure:11993: checking for $ac_func" >&5
11993if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11994 echo $ac_n "(cached) $ac_c" 1>&6
11995else
11996 cat > conftest.$ac_ext <<EOF
11997#line 11998 "configure"
10f2d63a
VZ
11998#include "confdefs.h"
11999/* System header to define __stub macros and hopefully few prototypes,
703e0a69
VZ
12000 which can conflict with char $ac_func(); below. */
12001#include <assert.h>
12002/* Override any gcc2 internal prototype to avoid an error. */
10f2d63a 12003/* We use char because int might match the return type of a gcc2
703e0a69
VZ
12004 builtin and then its argument prototype would still apply. */
12005char $ac_func();
12006
12007int main() {
10f2d63a
VZ
12008
12009/* The GNU C library defines this for functions which it implements
12010 to always fail with ENOSYS. Some functions are actually named
12011 something starting with __ and the normal name is an alias. */
12012#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12013choke me
6232543b 12014#else
703e0a69 12015$ac_func();
6232543b 12016#endif
10f2d63a 12017
703e0a69
VZ
12018; return 0; }
12019EOF
12020if { (eval echo configure:12021: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12021 rm -rf conftest*
12022 eval "ac_cv_func_$ac_func=yes"
12023else
12024 echo "configure: failed program was:" >&5
12025 cat conftest.$ac_ext >&5
12026 rm -rf conftest*
12027 eval "ac_cv_func_$ac_func=no"
12028fi
12029rm -f conftest*
12030fi
12031
12032if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12033 echo "$ac_t""yes" 1>&6
12034 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12035 cat >> confdefs.h <<EOF
12036#define $ac_tr_func 1
12037EOF
12038 cat >> confdefs.h <<\EOF
c63c7106
VZ
12039#define HAVE_INET_ADDR 1
12040EOF
12041
10f2d63a 12042else
703e0a69
VZ
12043 echo "$ac_t""no" 1>&6
12044echo $ac_n "checking for inet_addr in -lnsl""... $ac_c" 1>&6
12045echo "configure:12046: checking for inet_addr in -lnsl" >&5
12046ac_lib_var=`echo nsl'_'inet_addr | sed 'y%./+-%__p_%'`
12047if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12048 echo $ac_n "(cached) $ac_c" 1>&6
c63c7106 12049else
703e0a69 12050 ac_save_LIBS="$LIBS"
c63c7106 12051LIBS="-lnsl $LIBS"
703e0a69
VZ
12052cat > conftest.$ac_ext <<EOF
12053#line 12054 "configure"
c63c7106
VZ
12054#include "confdefs.h"
12055/* Override any gcc2 internal prototype to avoid an error. */
12056/* We use char because int might match the return type of a gcc2
703e0a69
VZ
12057 builtin and then its argument prototype would still apply. */
12058char inet_addr();
12059
12060int main() {
12061inet_addr()
12062; return 0; }
12063EOF
12064if { (eval echo configure:12065: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12065 rm -rf conftest*
12066 eval "ac_cv_lib_$ac_lib_var=yes"
12067else
12068 echo "configure: failed program was:" >&5
12069 cat conftest.$ac_ext >&5
12070 rm -rf conftest*
12071 eval "ac_cv_lib_$ac_lib_var=no"
12072fi
12073rm -f conftest*
12074LIBS="$ac_save_LIBS"
12075
12076fi
12077if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12078 echo "$ac_t""yes" 1>&6
c63c7106
VZ
12079 INET_LINK="nsl"
12080else
703e0a69
VZ
12081 echo "$ac_t""no" 1>&6
12082echo $ac_n "checking for inet_addr in -lresolv""... $ac_c" 1>&6
12083echo "configure:12084: checking for inet_addr in -lresolv" >&5
12084ac_lib_var=`echo resolv'_'inet_addr | sed 'y%./+-%__p_%'`
12085if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12086 echo $ac_n "(cached) $ac_c" 1>&6
c63c7106 12087else
703e0a69 12088 ac_save_LIBS="$LIBS"
c63c7106 12089LIBS="-lresolv $LIBS"
703e0a69
VZ
12090cat > conftest.$ac_ext <<EOF
12091#line 12092 "configure"
c63c7106
VZ
12092#include "confdefs.h"
12093/* Override any gcc2 internal prototype to avoid an error. */
12094/* We use char because int might match the return type of a gcc2
703e0a69
VZ
12095 builtin and then its argument prototype would still apply. */
12096char inet_addr();
12097
12098int main() {
12099inet_addr()
12100; return 0; }
12101EOF
12102if { (eval echo configure:12103: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12103 rm -rf conftest*
12104 eval "ac_cv_lib_$ac_lib_var=yes"
12105else
12106 echo "configure: failed program was:" >&5
12107 cat conftest.$ac_ext >&5
12108 rm -rf conftest*
12109 eval "ac_cv_lib_$ac_lib_var=no"
12110fi
12111rm -f conftest*
12112LIBS="$ac_save_LIBS"
c63c7106 12113
c63c7106 12114fi
703e0a69
VZ
12115if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12116 echo "$ac_t""yes" 1>&6
12117 INET_LINK="resolv"
12118
12119else
12120 echo "$ac_t""no" 1>&6
12121fi
c63c7106 12122
703e0a69 12123
6232543b 12124fi
c63c7106 12125
703e0a69
VZ
12126
12127
10f2d63a
VZ
12128fi
12129done
12130
703e0a69 12131
10f2d63a
VZ
12132for ac_func in inet_aton
12133do
703e0a69
VZ
12134echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12135echo "configure:12136: checking for $ac_func" >&5
12136if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12137 echo $ac_n "(cached) $ac_c" 1>&6
12138else
12139 cat > conftest.$ac_ext <<EOF
12140#line 12141 "configure"
10f2d63a
VZ
12141#include "confdefs.h"
12142/* System header to define __stub macros and hopefully few prototypes,
703e0a69 12143 which can conflict with char $ac_func(); below. */
10f2d63a
VZ
12144#include <assert.h>
12145/* Override any gcc2 internal prototype to avoid an error. */
12146/* We use char because int might match the return type of a gcc2
703e0a69
VZ
12147 builtin and then its argument prototype would still apply. */
12148char $ac_func();
12149
12150int main() {
10f2d63a
VZ
12151
12152/* The GNU C library defines this for functions which it implements
12153 to always fail with ENOSYS. Some functions are actually named
12154 something starting with __ and the normal name is an alias. */
12155#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12156choke me
12157#else
703e0a69 12158$ac_func();
10f2d63a
VZ
12159#endif
12160
703e0a69
VZ
12161; return 0; }
12162EOF
12163if { (eval echo configure:12164: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12164 rm -rf conftest*
12165 eval "ac_cv_func_$ac_func=yes"
12166else
12167 echo "configure: failed program was:" >&5
12168 cat conftest.$ac_ext >&5
12169 rm -rf conftest*
12170 eval "ac_cv_func_$ac_func=no"
12171fi
12172rm -f conftest*
12173fi
12174
12175if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12176 echo "$ac_t""yes" 1>&6
12177 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12178 cat >> confdefs.h <<EOF
12179#define $ac_tr_func 1
12180EOF
12181 cat >> confdefs.h <<\EOF
c63c7106
VZ
12182#define HAVE_INET_ATON 1
12183EOF
12184
10f2d63a 12185else
703e0a69
VZ
12186 echo "$ac_t""no" 1>&6
12187 echo $ac_n "checking for inet_aton in -l$INET_LINK""... $ac_c" 1>&6
12188echo "configure:12189: checking for inet_aton in -l$INET_LINK" >&5
12189ac_lib_var=`echo $INET_LINK'_'inet_aton | sed 'y%./+-%__p_%'`
12190if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12191 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 12192else
703e0a69 12193 ac_save_LIBS="$LIBS"
c63c7106 12194LIBS="-l$INET_LINK $LIBS"
703e0a69
VZ
12195cat > conftest.$ac_ext <<EOF
12196#line 12197 "configure"
10f2d63a
VZ
12197#include "confdefs.h"
12198/* Override any gcc2 internal prototype to avoid an error. */
12199/* We use char because int might match the return type of a gcc2
703e0a69
VZ
12200 builtin and then its argument prototype would still apply. */
12201char inet_aton();
12202
12203int main() {
12204inet_aton()
12205; return 0; }
12206EOF
12207if { (eval echo configure:12208: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12208 rm -rf conftest*
12209 eval "ac_cv_lib_$ac_lib_var=yes"
12210else
12211 echo "configure: failed program was:" >&5
12212 cat conftest.$ac_ext >&5
12213 rm -rf conftest*
12214 eval "ac_cv_lib_$ac_lib_var=no"
12215fi
12216rm -f conftest*
12217LIBS="$ac_save_LIBS"
12218
12219fi
12220if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12221 echo "$ac_t""yes" 1>&6
12222 cat >> confdefs.h <<\EOF
c63c7106 12223#define HAVE_INET_ATON 1
10f2d63a
VZ
12224EOF
12225
703e0a69
VZ
12226else
12227 echo "$ac_t""no" 1>&6
10f2d63a
VZ
12228fi
12229
703e0a69 12230
c63c7106
VZ
12231fi
12232done
12233
703e0a69 12234
c63c7106 12235if test "x$INET_LINK" != "x"; then
703e0a69 12236 cat >> confdefs.h <<\EOF
c63c7106
VZ
12237#define HAVE_INET_ADDR 1
12238EOF
12239
12240 INET_LINK="-l$INET_LINK"
12241fi
10f2d63a
VZ
12242
12243fi
12244
703e0a69
VZ
12245
12246cat > confcache <<\EOF
10f2d63a
VZ
12247# This file is a shell script that caches the results of configure
12248# tests run on this system so they can be shared between configure
703e0a69
VZ
12249# scripts and configure runs. It is not useful on other systems.
12250# If it contains results you don't want to keep, you may remove or edit it.
10f2d63a 12251#
703e0a69
VZ
12252# By default, configure uses ./config.cache as the cache file,
12253# creating it if it does not exist already. You can give configure
12254# the --cache-file=FILE option to use a different cache file; that is
12255# what configure does when it calls configure scripts in
12256# subdirectories, so they share the cache.
12257# Giving --cache-file=/dev/null disables caching, for debugging configure.
12258# config.status only pays attention to the cache file if you give it the
12259# --recheck option to rerun configure.
10f2d63a 12260#
703e0a69 12261EOF
10f2d63a
VZ
12262# The following way of writing the cache mishandles newlines in values,
12263# but we know of no workaround that is simple, portable, and efficient.
12264# So, don't put newlines in cache variables' values.
12265# Ultrix sh set writes to stderr and can't be redirected directly,
12266# and sets the high bit in the cache file unless we assign to the vars.
703e0a69
VZ
12267(set) 2>&1 |
12268 case `(ac_space=' '; set | grep ac_space) 2>&1` in
12269 *ac_space=\ *)
12270 # `set' does not quote correctly, so add quotes (double-quote substitution
12271 # turns \\\\ into \\, and sed turns \\ into \).
12272 sed -n \
12273 -e "s/'/'\\\\''/g" \
12274 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
12275 ;;
12276 *)
12277 # `set' quotes correctly as required by POSIX, so do not add quotes.
12278 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
12279 ;;
12280 esac >> confcache
12281if cmp -s $cache_file confcache; then
12282 :
12283else
10f2d63a 12284 if test -w $cache_file; then
703e0a69
VZ
12285 echo "updating cache $cache_file"
12286 cat confcache > $cache_file
10f2d63a
VZ
12287 else
12288 echo "not updating unwritable cache $cache_file"
12289 fi
12290fi
12291rm -f confcache
12292
703e0a69
VZ
12293
12294
b089607b 12295if test "$TOOLKIT" != "MSW"; then
10f2d63a 12296
703e0a69 12297
10f2d63a
VZ
12298THREADS_LINK=""
12299THREADS_OBJ=""
12300
12301if test "$wxUSE_THREADS" = "yes" ; then
12302 if test "$wxUSE_WINE" = 1 ; then
703e0a69 12303 echo "configure: warning: Threads are not supported under WINE" 1>&2
10f2d63a 12304 wxUSE_THREADS="no"
b12915c1 12305 elif test "$USE_BEOS" = 1; then
703e0a69 12306 echo "configure: warning: BeOS threads are not yet supported" 1>&2
b12915c1 12307 wxUSE_THREADS="no"
10f2d63a
VZ
12308 fi
12309fi
12310
12311if test "$wxUSE_THREADS" = "yes" ; then
703e0a69 12312
186837b0 12313 if test "$USE_AIX" = 1; then
f6bcfd97
BP
12314 THREADS_LIB=pthreads
12315 else
12316 THREADS_LIB=pthread
12317 fi
12318
703e0a69
VZ
12319 echo $ac_n "checking for pthread_create in -l$THREADS_LIB""... $ac_c" 1>&6
12320echo "configure:12321: checking for pthread_create in -l$THREADS_LIB" >&5
12321ac_lib_var=`echo $THREADS_LIB'_'pthread_create | sed 'y%./+-%__p_%'`
12322if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12323 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 12324else
703e0a69 12325 ac_save_LIBS="$LIBS"
f6bcfd97 12326LIBS="-l$THREADS_LIB $LIBS"
703e0a69
VZ
12327cat > conftest.$ac_ext <<EOF
12328#line 12329 "configure"
10f2d63a
VZ
12329#include "confdefs.h"
12330/* Override any gcc2 internal prototype to avoid an error. */
12331/* We use char because int might match the return type of a gcc2
703e0a69
VZ
12332 builtin and then its argument prototype would still apply. */
12333char pthread_create();
12334
12335int main() {
12336pthread_create()
12337; return 0; }
12338EOF
12339if { (eval echo configure:12340: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12340 rm -rf conftest*
12341 eval "ac_cv_lib_$ac_lib_var=yes"
12342else
12343 echo "configure: failed program was:" >&5
12344 cat conftest.$ac_ext >&5
12345 rm -rf conftest*
12346 eval "ac_cv_lib_$ac_lib_var=no"
12347fi
12348rm -f conftest*
12349LIBS="$ac_save_LIBS"
10f2d63a 12350
703e0a69
VZ
12351fi
12352if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12353 echo "$ac_t""yes" 1>&6
12354
10f2d63a 12355 THREADS_OBJ="threadpsx.lo"
f6bcfd97 12356 THREADS_LINK=$THREADS_LIB
703e0a69 12357
10f2d63a 12358else
703e0a69 12359 echo "$ac_t""no" 1>&6
10f2d63a 12360
703e0a69
VZ
12361 echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6
12362echo "configure:12363: checking for pthread_create in -lc_r" >&5
12363ac_lib_var=`echo c_r'_'pthread_create | sed 'y%./+-%__p_%'`
12364if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12365 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 12366else
703e0a69 12367 ac_save_LIBS="$LIBS"
10f2d63a 12368LIBS="-lc_r $LIBS"
703e0a69
VZ
12369cat > conftest.$ac_ext <<EOF
12370#line 12371 "configure"
10f2d63a
VZ
12371#include "confdefs.h"
12372/* Override any gcc2 internal prototype to avoid an error. */
12373/* We use char because int might match the return type of a gcc2
703e0a69
VZ
12374 builtin and then its argument prototype would still apply. */
12375char pthread_create();
12376
12377int main() {
12378pthread_create()
12379; return 0; }
12380EOF
12381if { (eval echo configure:12382: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12382 rm -rf conftest*
12383 eval "ac_cv_lib_$ac_lib_var=yes"
12384else
12385 echo "configure: failed program was:" >&5
12386 cat conftest.$ac_ext >&5
12387 rm -rf conftest*
12388 eval "ac_cv_lib_$ac_lib_var=no"
12389fi
12390rm -f conftest*
12391LIBS="$ac_save_LIBS"
10f2d63a 12392
703e0a69
VZ
12393fi
12394if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12395 echo "$ac_t""yes" 1>&6
12396
10f2d63a
VZ
12397 THREADS_OBJ="threadpsx.lo"
12398 THREADS_LINK="c_r"
703e0a69 12399
10f2d63a 12400else
703e0a69 12401 echo "$ac_t""no" 1>&6
10f2d63a 12402
703e0a69
VZ
12403 ac_safe=`echo "sys/prctl.h" | sed 'y%./+-%__p_%'`
12404echo $ac_n "checking for sys/prctl.h""... $ac_c" 1>&6
12405echo "configure:12406: checking for sys/prctl.h" >&5
12406if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12407 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 12408else
703e0a69
VZ
12409 cat > conftest.$ac_ext <<EOF
12410#line 12411 "configure"
10f2d63a
VZ
12411#include "confdefs.h"
12412#include <sys/prctl.h>
703e0a69
VZ
12413EOF
12414ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12415{ (eval echo configure:12416: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12416ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12417if test -z "$ac_err"; then
12418 rm -rf conftest*
12419 eval "ac_cv_header_$ac_safe=yes"
10f2d63a 12420else
703e0a69
VZ
12421 echo "$ac_err" >&5
12422 echo "configure: failed program was:" >&5
10f2d63a 12423 cat conftest.$ac_ext >&5
703e0a69
VZ
12424 rm -rf conftest*
12425 eval "ac_cv_header_$ac_safe=no"
10f2d63a 12426fi
703e0a69 12427rm -f conftest*
10f2d63a 12428fi
703e0a69
VZ
12429if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12430 echo "$ac_t""yes" 1>&6
12431
1f8ae82f 12432 THREADS_OBJ="threadsgi.lo"
703e0a69
VZ
12433
12434else
12435 echo "$ac_t""no" 1>&6
10f2d63a
VZ
12436fi
12437
703e0a69 12438
10f2d63a
VZ
12439fi
12440
703e0a69 12441
6232543b 12442fi
10f2d63a 12443
703e0a69 12444
10f2d63a
VZ
12445 if test -z "$THREADS_OBJ" ; then
12446 wxUSE_THREADS=no
703e0a69 12447 echo "configure: warning: No thread support on this system" 1>&2
10f2d63a
VZ
12448 fi
12449fi
12450
12451if test "$wxUSE_THREADS" = "yes" ; then
703e0a69 12452 for ac_func in thr_setconcurrency
70846f0a 12453do
703e0a69
VZ
12454echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12455echo "configure:12456: checking for $ac_func" >&5
12456if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12457 echo $ac_n "(cached) $ac_c" 1>&6
12458else
12459 cat > conftest.$ac_ext <<EOF
12460#line 12461 "configure"
70846f0a
VZ
12461#include "confdefs.h"
12462/* System header to define __stub macros and hopefully few prototypes,
703e0a69 12463 which can conflict with char $ac_func(); below. */
70846f0a
VZ
12464#include <assert.h>
12465/* Override any gcc2 internal prototype to avoid an error. */
12466/* We use char because int might match the return type of a gcc2
703e0a69
VZ
12467 builtin and then its argument prototype would still apply. */
12468char $ac_func();
12469
12470int main() {
70846f0a
VZ
12471
12472/* The GNU C library defines this for functions which it implements
12473 to always fail with ENOSYS. Some functions are actually named
12474 something starting with __ and the normal name is an alias. */
12475#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12476choke me
12477#else
703e0a69 12478$ac_func();
70846f0a
VZ
12479#endif
12480
703e0a69 12481; return 0; }
70846f0a 12482EOF
703e0a69
VZ
12483if { (eval echo configure:12484: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12484 rm -rf conftest*
12485 eval "ac_cv_func_$ac_func=yes"
12486else
12487 echo "configure: failed program was:" >&5
12488 cat conftest.$ac_ext >&5
12489 rm -rf conftest*
12490 eval "ac_cv_func_$ac_func=no"
12491fi
12492rm -f conftest*
12493fi
70846f0a 12494
703e0a69
VZ
12495if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12496 echo "$ac_t""yes" 1>&6
12497 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12498 cat >> confdefs.h <<EOF
12499#define $ac_tr_func 1
12500EOF
12501
12502else
12503 echo "$ac_t""no" 1>&6
70846f0a
VZ
12504fi
12505done
12506
703e0a69
VZ
12507
12508
12509 for ac_hdr in sched.h
10f2d63a 12510do
703e0a69
VZ
12511ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12512echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12513echo "configure:12514: checking for $ac_hdr" >&5
12514if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12515 echo $ac_n "(cached) $ac_c" 1>&6
12516else
12517 cat > conftest.$ac_ext <<EOF
12518#line 12519 "configure"
10f2d63a 12519#include "confdefs.h"
703e0a69
VZ
12520#include <$ac_hdr>
12521EOF
12522ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12523{ (eval echo configure:12524: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12524ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12525if test -z "$ac_err"; then
12526 rm -rf conftest*
12527 eval "ac_cv_header_$ac_safe=yes"
10f2d63a 12528else
703e0a69
VZ
12529 echo "$ac_err" >&5
12530 echo "configure: failed program was:" >&5
10f2d63a 12531 cat conftest.$ac_ext >&5
703e0a69
VZ
12532 rm -rf conftest*
12533 eval "ac_cv_header_$ac_safe=no"
10f2d63a 12534fi
703e0a69 12535rm -f conftest*
10f2d63a 12536fi
703e0a69
VZ
12537if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12538 echo "$ac_t""yes" 1>&6
12539 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12540 cat >> confdefs.h <<EOF
12541#define $ac_tr_hdr 1
10f2d63a 12542EOF
703e0a69
VZ
12543
12544else
12545 echo "$ac_t""no" 1>&6
10f2d63a
VZ
12546fi
12547done
12548
703e0a69
VZ
12549
12550 echo $ac_n "checking for sched_yield in -l$THREADS_LINK""... $ac_c" 1>&6
12551echo "configure:12552: checking for sched_yield in -l$THREADS_LINK" >&5
12552ac_lib_var=`echo $THREADS_LINK'_'sched_yield | sed 'y%./+-%__p_%'`
12553if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12554 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 12555else
703e0a69 12556 ac_save_LIBS="$LIBS"
10f2d63a 12557LIBS="-l$THREADS_LINK $LIBS"
703e0a69
VZ
12558cat > conftest.$ac_ext <<EOF
12559#line 12560 "configure"
10f2d63a
VZ
12560#include "confdefs.h"
12561/* Override any gcc2 internal prototype to avoid an error. */
12562/* We use char because int might match the return type of a gcc2
703e0a69
VZ
12563 builtin and then its argument prototype would still apply. */
12564char sched_yield();
12565
12566int main() {
12567sched_yield()
12568; return 0; }
12569EOF
12570if { (eval echo configure:12571: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12571 rm -rf conftest*
12572 eval "ac_cv_lib_$ac_lib_var=yes"
12573else
12574 echo "configure: failed program was:" >&5
12575 cat conftest.$ac_ext >&5
12576 rm -rf conftest*
12577 eval "ac_cv_lib_$ac_lib_var=no"
12578fi
12579rm -f conftest*
12580LIBS="$ac_save_LIBS"
12581
12582fi
12583if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12584 echo "$ac_t""yes" 1>&6
12585 cat >> confdefs.h <<\EOF
10f2d63a
VZ
12586#define HAVE_SCHED_YIELD 1
12587EOF
12588
12589else
703e0a69
VZ
12590 echo "$ac_t""no" 1>&6
12591echo $ac_n "checking for sched_yield in -l"posix4"""... $ac_c" 1>&6
12592echo "configure:12593: checking for sched_yield in -l"posix4"" >&5
12593ac_lib_var=`echo "posix4"'_'sched_yield | sed 'y%./+-%__p_%'`
12594if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12595 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 12596else
703e0a69 12597 ac_save_LIBS="$LIBS"
10f2d63a 12598LIBS="-l"posix4" $LIBS"
703e0a69
VZ
12599cat > conftest.$ac_ext <<EOF
12600#line 12601 "configure"
10f2d63a
VZ
12601#include "confdefs.h"
12602/* Override any gcc2 internal prototype to avoid an error. */
12603/* We use char because int might match the return type of a gcc2
703e0a69
VZ
12604 builtin and then its argument prototype would still apply. */
12605char sched_yield();
12606
12607int main() {
12608sched_yield()
12609; return 0; }
12610EOF
12611if { (eval echo configure:12612: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12612 rm -rf conftest*
12613 eval "ac_cv_lib_$ac_lib_var=yes"
12614else
12615 echo "configure: failed program was:" >&5
12616 cat conftest.$ac_ext >&5
12617 rm -rf conftest*
12618 eval "ac_cv_lib_$ac_lib_var=no"
12619fi
12620rm -f conftest*
12621LIBS="$ac_save_LIBS"
12622
12623fi
12624if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12625 echo "$ac_t""yes" 1>&6
12626 cat >> confdefs.h <<\EOF
10f2d63a
VZ
12627#define HAVE_SCHED_YIELD 1
12628EOF
12629 POSIX4_LINK="-lposix4"
12630else
703e0a69
VZ
12631 echo "$ac_t""no" 1>&6
12632echo "configure: warning: wxThread::Yield will not work properly" 1>&2
12633
10f2d63a
VZ
12634fi
12635
703e0a69 12636
6232543b 12637fi
10f2d63a 12638
703e0a69 12639
f6bcfd97 12640 HAVE_PRIOR_FUNCS=0
703e0a69
VZ
12641 echo $ac_n "checking for pthread_attr_getschedpolicy in -l$THREADS_LINK""... $ac_c" 1>&6
12642echo "configure:12643: checking for pthread_attr_getschedpolicy in -l$THREADS_LINK" >&5
12643ac_lib_var=`echo $THREADS_LINK'_'pthread_attr_getschedpolicy | sed 'y%./+-%__p_%'`
12644if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12645 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 12646else
703e0a69 12647 ac_save_LIBS="$LIBS"
10f2d63a 12648LIBS="-l$THREADS_LINK $LIBS"
703e0a69
VZ
12649cat > conftest.$ac_ext <<EOF
12650#line 12651 "configure"
10f2d63a
VZ
12651#include "confdefs.h"
12652/* Override any gcc2 internal prototype to avoid an error. */
12653/* We use char because int might match the return type of a gcc2
703e0a69
VZ
12654 builtin and then its argument prototype would still apply. */
12655char pthread_attr_getschedpolicy();
12656
12657int main() {
12658pthread_attr_getschedpolicy()
12659; return 0; }
12660EOF
12661if { (eval echo configure:12662: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12662 rm -rf conftest*
12663 eval "ac_cv_lib_$ac_lib_var=yes"
12664else
12665 echo "configure: failed program was:" >&5
12666 cat conftest.$ac_ext >&5
12667 rm -rf conftest*
12668 eval "ac_cv_lib_$ac_lib_var=no"
12669fi
12670rm -f conftest*
12671LIBS="$ac_save_LIBS"
12672
12673fi
12674if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12675 echo "$ac_t""yes" 1>&6
12676 echo $ac_n "checking for pthread_attr_setschedparam in -l$THREADS_LINK""... $ac_c" 1>&6
12677echo "configure:12678: checking for pthread_attr_setschedparam in -l$THREADS_LINK" >&5
12678ac_lib_var=`echo $THREADS_LINK'_'pthread_attr_setschedparam | sed 'y%./+-%__p_%'`
12679if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12680 echo $ac_n "(cached) $ac_c" 1>&6
12681else
12682 ac_save_LIBS="$LIBS"
f6bcfd97 12683LIBS="-l$THREADS_LINK $LIBS"
703e0a69
VZ
12684cat > conftest.$ac_ext <<EOF
12685#line 12686 "configure"
f6bcfd97
BP
12686#include "confdefs.h"
12687/* Override any gcc2 internal prototype to avoid an error. */
12688/* We use char because int might match the return type of a gcc2
703e0a69
VZ
12689 builtin and then its argument prototype would still apply. */
12690char pthread_attr_setschedparam();
12691
12692int main() {
12693pthread_attr_setschedparam()
12694; return 0; }
12695EOF
12696if { (eval echo configure:12697: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12697 rm -rf conftest*
12698 eval "ac_cv_lib_$ac_lib_var=yes"
12699else
12700 echo "configure: failed program was:" >&5
12701 cat conftest.$ac_ext >&5
12702 rm -rf conftest*
12703 eval "ac_cv_lib_$ac_lib_var=no"
12704fi
12705rm -f conftest*
12706LIBS="$ac_save_LIBS"
12707
12708fi
12709if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12710 echo "$ac_t""yes" 1>&6
12711 echo $ac_n "checking for sched_get_priority_max in -l$THREADS_LINK""... $ac_c" 1>&6
12712echo "configure:12713: checking for sched_get_priority_max in -l$THREADS_LINK" >&5
12713ac_lib_var=`echo $THREADS_LINK'_'sched_get_priority_max | sed 'y%./+-%__p_%'`
12714if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12715 echo $ac_n "(cached) $ac_c" 1>&6
12716else
12717 ac_save_LIBS="$LIBS"
f6bcfd97 12718LIBS="-l$THREADS_LINK $LIBS"
703e0a69
VZ
12719cat > conftest.$ac_ext <<EOF
12720#line 12721 "configure"
f6bcfd97
BP
12721#include "confdefs.h"
12722/* Override any gcc2 internal prototype to avoid an error. */
12723/* We use char because int might match the return type of a gcc2
703e0a69
VZ
12724 builtin and then its argument prototype would still apply. */
12725char sched_get_priority_max();
12726
12727int main() {
12728sched_get_priority_max()
12729; return 0; }
12730EOF
12731if { (eval echo configure:12732: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12732 rm -rf conftest*
12733 eval "ac_cv_lib_$ac_lib_var=yes"
12734else
12735 echo "configure: failed program was:" >&5
12736 cat conftest.$ac_ext >&5
12737 rm -rf conftest*
12738 eval "ac_cv_lib_$ac_lib_var=no"
12739fi
12740rm -f conftest*
12741LIBS="$ac_save_LIBS"
12742
12743fi
12744if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12745 echo "$ac_t""yes" 1>&6
f6bcfd97 12746 HAVE_PRIOR_FUNCS=1
10f2d63a 12747else
703e0a69
VZ
12748 echo "$ac_t""no" 1>&6
12749echo $ac_n "checking for sched_get_priority_max in -l"posix4"""... $ac_c" 1>&6
12750echo "configure:12751: checking for sched_get_priority_max in -l"posix4"" >&5
12751ac_lib_var=`echo "posix4"'_'sched_get_priority_max | sed 'y%./+-%__p_%'`
12752if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12753 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 12754else
703e0a69 12755 ac_save_LIBS="$LIBS"
10f2d63a 12756LIBS="-l"posix4" $LIBS"
703e0a69
VZ
12757cat > conftest.$ac_ext <<EOF
12758#line 12759 "configure"
10f2d63a 12759#include "confdefs.h"
6232543b 12760/* Override any gcc2 internal prototype to avoid an error. */
6232543b 12761/* We use char because int might match the return type of a gcc2
703e0a69
VZ
12762 builtin and then its argument prototype would still apply. */
12763char sched_get_priority_max();
12764
12765int main() {
12766sched_get_priority_max()
12767; return 0; }
12768EOF
12769if { (eval echo configure:12770: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12770 rm -rf conftest*
12771 eval "ac_cv_lib_$ac_lib_var=yes"
12772else
12773 echo "configure: failed program was:" >&5
12774 cat conftest.$ac_ext >&5
12775 rm -rf conftest*
12776 eval "ac_cv_lib_$ac_lib_var=no"
12777fi
12778rm -f conftest*
12779LIBS="$ac_save_LIBS"
10f2d63a 12780
703e0a69
VZ
12781fi
12782if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12783 echo "$ac_t""yes" 1>&6
12784
f6bcfd97
BP
12785 HAVE_PRIOR_FUNCS=1
12786 POSIX4_LINK="-lposix4"
703e0a69
VZ
12787
12788else
12789 echo "$ac_t""no" 1>&6
f6bcfd97
BP
12790fi
12791
703e0a69 12792
10f2d63a
VZ
12793fi
12794
703e0a69
VZ
12795
12796else
12797 echo "$ac_t""no" 1>&6
10f2d63a
VZ
12798fi
12799
703e0a69
VZ
12800
12801else
12802 echo "$ac_t""no" 1>&6
6232543b 12803fi
10f2d63a 12804
703e0a69 12805
f6bcfd97 12806 if test "$HAVE_PRIOR_FUNCS" = 1; then
703e0a69 12807 cat >> confdefs.h <<\EOF
f6bcfd97
BP
12808#define HAVE_THREAD_PRIORITY_FUNCTIONS 1
12809EOF
12810
12811 else
703e0a69 12812 echo "configure: warning: Setting thread priority will not work" 1>&2
f6bcfd97
BP
12813 fi
12814
703e0a69
VZ
12815 echo $ac_n "checking for pthread_cancel in -l$THREADS_LINK""... $ac_c" 1>&6
12816echo "configure:12817: checking for pthread_cancel in -l$THREADS_LINK" >&5
12817ac_lib_var=`echo $THREADS_LINK'_'pthread_cancel | sed 'y%./+-%__p_%'`
12818if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12819 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 12820else
703e0a69 12821 ac_save_LIBS="$LIBS"
10f2d63a 12822LIBS="-l$THREADS_LINK $LIBS"
703e0a69
VZ
12823cat > conftest.$ac_ext <<EOF
12824#line 12825 "configure"
10f2d63a
VZ
12825#include "confdefs.h"
12826/* Override any gcc2 internal prototype to avoid an error. */
12827/* We use char because int might match the return type of a gcc2
703e0a69
VZ
12828 builtin and then its argument prototype would still apply. */
12829char pthread_cancel();
12830
12831int main() {
12832pthread_cancel()
12833; return 0; }
12834EOF
12835if { (eval echo configure:12836: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12836 rm -rf conftest*
12837 eval "ac_cv_lib_$ac_lib_var=yes"
12838else
12839 echo "configure: failed program was:" >&5
12840 cat conftest.$ac_ext >&5
12841 rm -rf conftest*
12842 eval "ac_cv_lib_$ac_lib_var=no"
12843fi
12844rm -f conftest*
12845LIBS="$ac_save_LIBS"
12846
12847fi
12848if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12849 echo "$ac_t""yes" 1>&6
12850 cat >> confdefs.h <<\EOF
10f2d63a
VZ
12851#define HAVE_PTHREAD_CANCEL 1
12852EOF
12853
12854else
703e0a69
VZ
12855 echo "$ac_t""no" 1>&6
12856echo "configure: warning: wxThread::Kill() will not work properly" 1>&2
10f2d63a
VZ
12857fi
12858
6232543b 12859
703e0a69
VZ
12860 echo $ac_n "checking for pthread_cleanup_push/pop""... $ac_c" 1>&6
12861echo "configure:12862: checking for pthread_cleanup_push/pop" >&5
12862if eval "test \"`echo '$''{'wx_cv_func_pthread_cleanup_push'+set}'`\" = set"; then
12863 echo $ac_n "(cached) $ac_c" 1>&6
12864else
12865
12866 cat > conftest.$ac_ext <<EOF
12867#line 12868 "configure"
10f2d63a
VZ
12868#include "confdefs.h"
12869#include <pthread.h>
703e0a69 12870int main() {
10f2d63a
VZ
12871
12872 pthread_cleanup_push(NULL, NULL);
12873 pthread_cleanup_pop(0);
703e0a69
VZ
12874
12875; return 0; }
12876EOF
12877if { (eval echo configure:12878: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12878 rm -rf conftest*
12879
10f2d63a 12880 wx_cv_func_pthread_cleanup_push=yes
703e0a69 12881
10f2d63a 12882else
703e0a69
VZ
12883 echo "configure: failed program was:" >&5
12884 cat conftest.$ac_ext >&5
12885 rm -rf conftest*
12886
10f2d63a 12887 wx_cv_func_pthread_cleanup_push=no
703e0a69 12888
10f2d63a 12889fi
703e0a69
VZ
12890rm -f conftest*
12891
6232543b 12892fi
703e0a69
VZ
12893
12894echo "$ac_t""$wx_cv_func_pthread_cleanup_push" 1>&6
10f2d63a 12895
d9b9876f 12896 if test "$wx_cv_func_pthread_cleanup_push" = "yes"; then
703e0a69 12897 cat >> confdefs.h <<\EOF
d9b9876f
VZ
12898#define HAVE_THREAD_CLEANUP_FUNCTIONS 1
12899EOF
12900
12901 fi
12902
703e0a69
VZ
12903
12904 echo $ac_n "checking for pthread_mutexattr_t""... $ac_c" 1>&6
12905echo "configure:12906: checking for pthread_mutexattr_t" >&5
12906if eval "test \"`echo '$''{'wx_cv_type_pthread_mutexattr_t'+set}'`\" = set"; then
12907 echo $ac_n "(cached) $ac_c" 1>&6
d9b9876f 12908else
703e0a69
VZ
12909
12910 cat > conftest.$ac_ext <<EOF
12911#line 12912 "configure"
d9b9876f
VZ
12912#include "confdefs.h"
12913#include <pthread.h>
703e0a69 12914int main() {
d9b9876f
VZ
12915
12916 pthread_mutexattr_t attr;
12917 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
703e0a69
VZ
12918
12919; return 0; }
12920EOF
12921if { (eval echo configure:12922: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12922 rm -rf conftest*
12923
d9b9876f 12924 wx_cv_type_pthread_mutexattr_t=yes
703e0a69 12925
d9b9876f 12926else
703e0a69
VZ
12927 echo "configure: failed program was:" >&5
12928 cat conftest.$ac_ext >&5
12929 rm -rf conftest*
12930
d9b9876f 12931 wx_cv_type_pthread_mutexattr_t=no
703e0a69
VZ
12932
12933
d9b9876f 12934fi
703e0a69
VZ
12935rm -f conftest*
12936
6232543b 12937fi
703e0a69
VZ
12938
12939echo "$ac_t""$wx_cv_type_pthread_mutexattr_t" 1>&6
d9b9876f
VZ
12940
12941 if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
703e0a69 12942 cat >> confdefs.h <<\EOF
d9b9876f
VZ
12943#define HAVE_PTHREAD_MUTEXATTR_T 1
12944EOF
12945
12946 else
703e0a69
VZ
12947 echo $ac_n "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER""... $ac_c" 1>&6
12948echo "configure:12949: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
12949if eval "test \"`echo '$''{'wx_cv_type_pthread_rec_mutex_init'+set}'`\" = set"; then
12950 echo $ac_n "(cached) $ac_c" 1>&6
12951else
12952
12953 cat > conftest.$ac_ext <<EOF
12954#line 12955 "configure"
d9b9876f
VZ
12955#include "confdefs.h"
12956#include <pthread.h>
703e0a69 12957int main() {
d9b9876f
VZ
12958
12959 pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
703e0a69
VZ
12960
12961; return 0; }
12962EOF
12963if { (eval echo configure:12964: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12964 rm -rf conftest*
12965
d9b9876f 12966 wx_cv_type_pthread_rec_mutex_init=yes
703e0a69 12967
d9b9876f 12968else
703e0a69
VZ
12969 echo "configure: failed program was:" >&5
12970 cat conftest.$ac_ext >&5
12971 rm -rf conftest*
12972
d9b9876f 12973 wx_cv_type_pthread_rec_mutex_init=no
703e0a69
VZ
12974
12975
d9b9876f 12976fi
703e0a69
VZ
12977rm -f conftest*
12978
6232543b 12979fi
703e0a69
VZ
12980
12981echo "$ac_t""$wx_cv_type_pthread_rec_mutex_init" 1>&6
3765e936 12982 if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
703e0a69 12983 cat >> confdefs.h <<\EOF
d9b9876f
VZ
12984#define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
12985EOF
12986
12987 else
703e0a69 12988 echo "configure: warning: wxMutex won't be recursive on this platform" 1>&2
d9b9876f
VZ
12989 fi
12990 fi
12991
10f2d63a 12992 THREADS_LINK="-l$THREADS_LINK"
186837b0
VZ
12993
12994 if test "$USE_SOLARIS" = "yes" -a "$GCC" != "yes"; then
12995 CFLAGS="${CFLAGS} -mt"
12996 CXXFLAGS="${CXXFLAGS} -mt"
12997 LDFLAGS="${LDFLAGS} -mt"
12998 fi
10f2d63a
VZ
12999fi
13000
13001fi
13002
13003if test "$wxUSE_THREADS" = "yes"; then
703e0a69 13004 cat >> confdefs.h <<\EOF
10f2d63a
VZ
13005#define wxUSE_THREADS 1
13006EOF
13007
703e0a69 13008
2c6025bc 13009 if test "$wxUSE_MAC" = "0"; then
10f2d63a 13010 CFLAGS="${CFLAGS} -D_REENTRANT"
2c6025bc
GD
13011 CXXFLAGS="${CXXFLAGS} -D_REENTRANT"
13012 fi
10f2d63a
VZ
13013
13014 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
13015else
13016 if test "$ac_cv_func_strtok_r" = "yes"; then
703e0a69
VZ
13017 echo $ac_n "checking if -D_REENTRANT is needed""... $ac_c" 1>&6
13018echo "configure:13019: checking if -D_REENTRANT is needed" >&5
ab9b9eab
VZ
13019 if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
13020 CFLAGS="${CFLAGS} -D_REENTRANT"
13021 CXXFLAGS="${CXXFLAGS} -D_REENTRANT"
703e0a69 13022 echo "$ac_t""yes" 1>&6
ab9b9eab 13023 else
703e0a69 13024 echo "$ac_t""no" 1>&6
10f2d63a
VZ
13025 fi
13026 fi
13027fi
13028
6f72b082 13029if test "$WXGTK20" = 1 ; then
703e0a69 13030 cat >> confdefs.h <<EOF
6f72b082 13031#define __WXGTK20__ $WXGTK20
13111b2a
VZ
13032EOF
13033
13034 WXGTK12=1
13035fi
13036
10f2d63a 13037if test "$WXGTK12" = 1 ; then
703e0a69 13038 cat >> confdefs.h <<EOF
10f2d63a
VZ
13039#define __WXGTK12__ $WXGTK12
13040EOF
13041
13042fi
13043
f6bcfd97 13044if test "$WXGTK127" = 1 ; then
703e0a69 13045 cat >> confdefs.h <<EOF
f6bcfd97
BP
13046#define __WXGTK127__ $WXGTK127
13047EOF
13048
13049fi
13050
10f2d63a
VZ
13051if test "$WXWINE" = 1 ; then
13052 TOOLKIT_DEF="${TOOLKIT_DEF} -D__WXWINE__"
13053fi
13054
b4085ce6 13055if test "$wxUSE_MAC" = 1 ; then
2c6025bc 13056 TOOLKIT_DEF="${TOOLKIT_DEF} -D__UNIX__ -D__POWERPC__ -DTARGET_CARBON"
ea5999b9
GD
13057 CFLAGS="${CFLAGS} -fno-common -fpascal-strings"
13058 CPPFLAGS="${CPPFLAGS} -fno-common -fpascal-strings"
2f51a9ec
GD
13059 # Extract the first word of "Rez", so it can be a program name with args.
13060set dummy Rez; ac_word=$2
703e0a69
VZ
13061echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
13062echo "configure:13063: checking for $ac_word" >&5
13063if eval "test \"`echo '$''{'ac_cv_prog_REZ'+set}'`\" = set"; then
13064 echo $ac_n "(cached) $ac_c" 1>&6
2f51a9ec
GD
13065else
13066 if test -n "$REZ"; then
13067 ac_cv_prog_REZ="$REZ" # Let the user override the test.
13068else
703e0a69
VZ
13069 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
13070 ac_dummy="$PATH"
13071 for ac_dir in $ac_dummy; do
13072 test -z "$ac_dir" && ac_dir=.
13073 if test -f $ac_dir/$ac_word; then
13074 ac_cv_prog_REZ="Rez"
13075 break
13076 fi
13077 done
13078 IFS="$ac_save_ifs"
2f51a9ec
GD
13079 test -z "$ac_cv_prog_REZ" && ac_cv_prog_REZ="/Developer/Tools/Rez"
13080fi
13081fi
703e0a69 13082REZ="$ac_cv_prog_REZ"
2f51a9ec 13083if test -n "$REZ"; then
703e0a69 13084 echo "$ac_t""$REZ" 1>&6
2f51a9ec 13085else
703e0a69 13086 echo "$ac_t""no" 1>&6
2f51a9ec
GD
13087fi
13088
13089 # Extract the first word of "Derez", so it can be a program name with args.
13090set dummy Derez; ac_word=$2
703e0a69
VZ
13091echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
13092echo "configure:13093: checking for $ac_word" >&5
13093if eval "test \"`echo '$''{'ac_cv_prog_DEREZ'+set}'`\" = set"; then
13094 echo $ac_n "(cached) $ac_c" 1>&6
2f51a9ec
GD
13095else
13096 if test -n "$DEREZ"; then
13097 ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
13098else
703e0a69
VZ
13099 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
13100 ac_dummy="$PATH"
13101 for ac_dir in $ac_dummy; do
13102 test -z "$ac_dir" && ac_dir=.
13103 if test -f $ac_dir/$ac_word; then
13104 ac_cv_prog_DEREZ="Derez"
13105 break
13106 fi
13107 done
13108 IFS="$ac_save_ifs"
2f51a9ec
GD
13109 test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/Derez"
13110fi
13111fi
703e0a69 13112DEREZ="$ac_cv_prog_DEREZ"
2f51a9ec 13113if test -n "$DEREZ"; then
703e0a69 13114 echo "$ac_t""$DEREZ" 1>&6
2f51a9ec 13115else
703e0a69 13116 echo "$ac_t""no" 1>&6
2f51a9ec
GD
13117fi
13118
13119 RESCOMP=${REZ}
13120 REZFLAGS="-d __UNIX__ -useDF"
13121 DEREZFLAGS="Carbon.r -useDF"
13122 RESFLAGS="Carbon.r -t APPL"
13123 LIBWXMACRES="\$(LIBWX_MACRES)"
13124 LIBWXMACRESCOMP="\$(LIBWX_MACRESCOMP)"
b4085ce6
GD
13125fi
13126
10f2d63a
VZ
13127if test "$wxUSE_CYGWIN" = 1 ; then
13128 TOOLKIT_DEF="${TOOLKIT_DEF} -D__WIN95__"
13129fi
13130
13131WXDEBUG=
13132
13133if test "$wxUSE_DEBUG_INFO" = "yes" ; then
13134 WXDEBUG="-g"
13135 wxUSE_OPTIMISE=no
13136fi
13137
13138if test "$wxUSE_DEBUG_GDB" = "yes" ; then
13139 wxUSE_DEBUG_INFO=yes
13140 WXDEBUG="-ggdb"
13141fi
13142
13143if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
703e0a69 13144 cat >> confdefs.h <<\EOF
10f2d63a
VZ
13145#define WXDEBUG 1
13146EOF
13147
13148 WXDEBUG_DEFINE="-D__WXDEBUG__"
13149else
13150 if test "$wxUSE_GTK" = 1 ; then
13151 WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS"
13152 fi
13153fi
13154
13155if test "$wxUSE_MEM_TRACING" = "yes" ; then
703e0a69 13156 cat >> confdefs.h <<\EOF
10f2d63a
VZ
13157#define wxUSE_MEMORY_TRACING 1
13158EOF
13159
703e0a69 13160 cat >> confdefs.h <<\EOF
10f2d63a 13161#define wxUSE_GLOBAL_MEMORY_OPERATORS 1
47c13eb7
VS
13162EOF
13163
703e0a69 13164 cat >> confdefs.h <<\EOF
47c13eb7 13165#define wxUSE_DEBUG_NEW_ALWAYS 1
10f2d63a
VZ
13166EOF
13167
13168 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
13169fi
13170
13171if test "$wxUSE_DMALLOC" = "yes" ; then
13172 DMALLOC_LINK="-ldmalloc"
13173fi
13174
13175PROFILE=
13176if test "$wxUSE_PROFILE" = "yes" ; then
13177 PROFILE="-pg"
13178fi
13179
13180DEP_INFO_FLAGS=
caa2c79b 13181CODE_GEN_FLAGS=
0f3f1cbc 13182CODE_GEN_FLAGS_CXX=
10f2d63a
VZ
13183if test "$GCC" = yes ; then
13184 if test "$wxUSE_NO_RTTI" = "yes" ; then
0f3f1cbc 13185 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS -fno-rtti"
10f2d63a
VZ
13186 fi
13187 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
0f3f1cbc 13188 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS -fno-exceptions"
10f2d63a
VZ
13189 fi
13190 if test "$wxUSE_PERMISSIVE" = "yes" ; then
caa2c79b 13191 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive"
10f2d63a
VZ
13192 fi
13193 if test "$wxUSE_NO_DEPS" = "no" ; then
13194 DEP_INFO_FLAGS="-MMD"
13195 fi
13196fi
13197
703e0a69 13198
10f2d63a
VZ
13199CXXFLAGS=`echo "${CXXFLAGS}" | sed "s/\-O.//g" `
13200CFLAGS=`echo "${CFLAGS}" | sed "s/\-O.//g" `
13201if test "$wxUSE_OPTIMISE" = "no" ; then
13202 OPTIMISE=
13203else
13204 if test "$GCC" = yes ; then
13205 OPTIMISE="-O2"
13206 case "${host}" in
13207 i586-*-*|i686-*-* )
13208 OPTIMISE="${OPTIMISE} "
13209 ;;
13210 esac
13211 else
13212 OPTIMISE="-O"
13213 fi
13214fi
13215
703e0a69 13216
10f2d63a 13217ZLIB_INCLUDE=
422107f9 13218if test "$wxUSE_ZLIB" = "yes" -o "$wxUSE_ZLIB" = "sys" ; then
703e0a69 13219 cat >> confdefs.h <<\EOF
10f2d63a
VZ
13220#define wxUSE_ZLIB 1
13221EOF
13222
422107f9
VZ
13223 if test "$wxUSE_ZLIB" = "yes" ; then
13224 ZLIB_INCLUDE="-I\${top_srcdir}/src/zlib"
13225 else
13226 ZLIB_LINK=
703e0a69
VZ
13227 ac_safe=`echo "zlib.h" | sed 'y%./+-%__p_%'`
13228echo $ac_n "checking for zlib.h""... $ac_c" 1>&6
13229echo "configure:13230: checking for zlib.h" >&5
13230if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
13231 echo $ac_n "(cached) $ac_c" 1>&6
13232else
13233 cat > conftest.$ac_ext <<EOF
13234#line 13235 "configure"
422107f9
VZ
13235#include "confdefs.h"
13236#include <zlib.h>
703e0a69
VZ
13237EOF
13238ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13239{ (eval echo configure:13240: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13240ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13241if test -z "$ac_err"; then
13242 rm -rf conftest*
13243 eval "ac_cv_header_$ac_safe=yes"
422107f9 13244else
703e0a69
VZ
13245 echo "$ac_err" >&5
13246 echo "configure: failed program was:" >&5
422107f9 13247 cat conftest.$ac_ext >&5
703e0a69
VZ
13248 rm -rf conftest*
13249 eval "ac_cv_header_$ac_safe=no"
422107f9 13250fi
703e0a69 13251rm -f conftest*
422107f9 13252fi
703e0a69
VZ
13253if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13254 echo "$ac_t""yes" 1>&6
13255 echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6
13256echo "configure:13257: checking for deflate in -lz" >&5
13257ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'`
13258if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13259 echo $ac_n "(cached) $ac_c" 1>&6
422107f9 13260else
703e0a69 13261 ac_save_LIBS="$LIBS"
422107f9 13262LIBS="-lz $LIBS"
703e0a69
VZ
13263cat > conftest.$ac_ext <<EOF
13264#line 13265 "configure"
422107f9
VZ
13265#include "confdefs.h"
13266/* Override any gcc2 internal prototype to avoid an error. */
13267/* We use char because int might match the return type of a gcc2
703e0a69
VZ
13268 builtin and then its argument prototype would still apply. */
13269char deflate();
13270
13271int main() {
13272deflate()
13273; return 0; }
13274EOF
13275if { (eval echo configure:13276: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13276 rm -rf conftest*
13277 eval "ac_cv_lib_$ac_lib_var=yes"
13278else
13279 echo "configure: failed program was:" >&5
13280 cat conftest.$ac_ext >&5
13281 rm -rf conftest*
13282 eval "ac_cv_lib_$ac_lib_var=no"
13283fi
13284rm -f conftest*
13285LIBS="$ac_save_LIBS"
13286
13287fi
13288if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13289 echo "$ac_t""yes" 1>&6
422107f9 13290 ZLIB_LINK="-lz"
703e0a69
VZ
13291else
13292 echo "$ac_t""no" 1>&6
422107f9
VZ
13293fi
13294
703e0a69
VZ
13295else
13296 echo "$ac_t""no" 1>&6
422107f9
VZ
13297fi
13298
13299 if test "x$ZLIB_LINK" = "x" ; then
703e0a69 13300 { echo "configure: error: system zlib compression library not found! Use --with-zlib=yes to use built-in zlib" 1>&2; exit 1; }
422107f9
VZ
13301 fi
13302 fi
10f2d63a
VZ
13303fi
13304
13305PNG_INCLUDE=
422107f9 13306if test "$wxUSE_LIBPNG" = "yes" -o "$wxUSE_LIBPNG" = "sys" ; then
703e0a69 13307 cat >> confdefs.h <<\EOF
10f2d63a
VZ
13308#define wxUSE_LIBPNG 1
13309EOF
13310
41fd4136 13311 if test "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
703e0a69 13312 echo "configure: warning: --with-libpng=sys doesn't work without --with-zlib=sys, will compile the built-in libpng instead" 1>&2
422107f9
VZ
13313 wxUSE_LIBPNG=yes
13314 fi
13315
13316 if test "$wxUSE_LIBPNG" = "yes" ; then
13317 PNG_INCLUDE="-I\${top_srcdir}/src/png"
13318 else
13319 PNG_LINK=
703e0a69
VZ
13320 ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'`
13321echo $ac_n "checking for png.h""... $ac_c" 1>&6
13322echo "configure:13323: checking for png.h" >&5
13323if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
13324 echo $ac_n "(cached) $ac_c" 1>&6
13325else
13326 cat > conftest.$ac_ext <<EOF
13327#line 13328 "configure"
422107f9
VZ
13328#include "confdefs.h"
13329#include <png.h>
703e0a69
VZ
13330EOF
13331ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13332{ (eval echo configure:13333: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13333ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13334if test -z "$ac_err"; then
13335 rm -rf conftest*
13336 eval "ac_cv_header_$ac_safe=yes"
422107f9 13337else
703e0a69
VZ
13338 echo "$ac_err" >&5
13339 echo "configure: failed program was:" >&5
422107f9 13340 cat conftest.$ac_ext >&5
703e0a69
VZ
13341 rm -rf conftest*
13342 eval "ac_cv_header_$ac_safe=no"
422107f9 13343fi
703e0a69 13344rm -f conftest*
422107f9 13345fi
703e0a69
VZ
13346if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13347 echo "$ac_t""yes" 1>&6
13348 echo $ac_n "checking for png_check_sig in -lpng""... $ac_c" 1>&6
13349echo "configure:13350: checking for png_check_sig in -lpng" >&5
13350ac_lib_var=`echo png'_'png_check_sig | sed 'y%./+-%__p_%'`
13351if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13352 echo $ac_n "(cached) $ac_c" 1>&6
422107f9 13353else
703e0a69 13354 ac_save_LIBS="$LIBS"
422107f9 13355LIBS="-lpng -lz -lm $LIBS"
703e0a69
VZ
13356cat > conftest.$ac_ext <<EOF
13357#line 13358 "configure"
422107f9
VZ
13358#include "confdefs.h"
13359/* Override any gcc2 internal prototype to avoid an error. */
13360/* We use char because int might match the return type of a gcc2
703e0a69
VZ
13361 builtin and then its argument prototype would still apply. */
13362char png_check_sig();
13363
13364int main() {
13365png_check_sig()
13366; return 0; }
13367EOF
13368if { (eval echo configure:13369: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13369 rm -rf conftest*
13370 eval "ac_cv_lib_$ac_lib_var=yes"
13371else
13372 echo "configure: failed program was:" >&5
13373 cat conftest.$ac_ext >&5
13374 rm -rf conftest*
13375 eval "ac_cv_lib_$ac_lib_var=no"
13376fi
13377rm -f conftest*
13378LIBS="$ac_save_LIBS"
13379
13380fi
13381if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13382 echo "$ac_t""yes" 1>&6
422107f9 13383 PNG_LINK="-lpng"
703e0a69
VZ
13384else
13385 echo "$ac_t""no" 1>&6
422107f9
VZ
13386fi
13387
703e0a69
VZ
13388
13389else
13390 echo "$ac_t""no" 1>&6
422107f9
VZ
13391fi
13392
13393 if test "x$PNG_LINK" = "x" ; then
703e0a69 13394 { echo "configure: error: system png library not found! Use --with-libpng=yes to use the built-in libpng" 1>&2; exit 1; }
422107f9
VZ
13395 fi
13396 fi
13397
10f2d63a
VZ
13398 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
13399fi
13400
13401JPEG_INCLUDE=
422107f9 13402if test "$wxUSE_LIBJPEG" = "yes" -o "$wxUSE_LIBJPEG" = "sys" ; then
703e0a69 13403 cat >> confdefs.h <<\EOF
10f2d63a
VZ
13404#define wxUSE_LIBJPEG 1
13405EOF
13406
422107f9
VZ
13407 if test "$wxUSE_LIBJPEG" = "yes" ; then
13408 JPEG_INCLUDE="-I\${top_srcdir}/src/jpeg"
13409 else
13410 JPEG_LINK=
703e0a69
VZ
13411 ac_safe=`echo "jpeglib.h" | sed 'y%./+-%__p_%'`
13412echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6
13413echo "configure:13414: checking for jpeglib.h" >&5
13414if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
13415 echo $ac_n "(cached) $ac_c" 1>&6
13416else
13417 cat > conftest.$ac_ext <<EOF
13418#line 13419 "configure"
422107f9
VZ
13419#include "confdefs.h"
13420#include <jpeglib.h>
703e0a69
VZ
13421EOF
13422ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13423{ (eval echo configure:13424: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13424ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13425if test -z "$ac_err"; then
13426 rm -rf conftest*
13427 eval "ac_cv_header_$ac_safe=yes"
6232543b 13428else
703e0a69
VZ
13429 echo "$ac_err" >&5
13430 echo "configure: failed program was:" >&5
422107f9 13431 cat conftest.$ac_ext >&5
703e0a69
VZ
13432 rm -rf conftest*
13433 eval "ac_cv_header_$ac_safe=no"
422107f9 13434fi
703e0a69 13435rm -f conftest*
422107f9 13436fi
703e0a69
VZ
13437if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13438 echo "$ac_t""yes" 1>&6
13439 echo $ac_n "checking for jpeg_read_header in -ljpeg""... $ac_c" 1>&6
13440echo "configure:13441: checking for jpeg_read_header in -ljpeg" >&5
13441ac_lib_var=`echo jpeg'_'jpeg_read_header | sed 'y%./+-%__p_%'`
13442if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13443 echo $ac_n "(cached) $ac_c" 1>&6
422107f9 13444else
703e0a69 13445 ac_save_LIBS="$LIBS"
422107f9 13446LIBS="-ljpeg $LIBS"
703e0a69
VZ
13447cat > conftest.$ac_ext <<EOF
13448#line 13449 "configure"
422107f9
VZ
13449#include "confdefs.h"
13450/* Override any gcc2 internal prototype to avoid an error. */
13451/* We use char because int might match the return type of a gcc2
703e0a69
VZ
13452 builtin and then its argument prototype would still apply. */
13453char jpeg_read_header();
13454
13455int main() {
13456jpeg_read_header()
13457; return 0; }
13458EOF
13459if { (eval echo configure:13460: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13460 rm -rf conftest*
13461 eval "ac_cv_lib_$ac_lib_var=yes"
13462else
13463 echo "configure: failed program was:" >&5
13464 cat conftest.$ac_ext >&5
13465 rm -rf conftest*
13466 eval "ac_cv_lib_$ac_lib_var=no"
13467fi
13468rm -f conftest*
13469LIBS="$ac_save_LIBS"
13470
13471fi
13472if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13473 echo "$ac_t""yes" 1>&6
422107f9 13474 JPEG_LINK="-ljpeg"
703e0a69
VZ
13475else
13476 echo "$ac_t""no" 1>&6
422107f9
VZ
13477fi
13478
703e0a69
VZ
13479else
13480 echo "$ac_t""no" 1>&6
422107f9
VZ
13481fi
13482
13483 if test "x$JPEG_LINK" = "x" ; then
703e0a69 13484 { echo "configure: error: system jpeg library not found! Use --with-libjpeg=yes to use the built-in one" 1>&2; exit 1; }
422107f9
VZ
13485 fi
13486 fi
10f2d63a
VZ
13487fi
13488
c7a2bf27 13489TIFF_INCLUDE=
0dcf9893 13490if test "$wxUSE_LIBTIFF" = "yes" -o "$wxUSE_LIBTIFF" = "sys" ; then
703e0a69 13491 cat >> confdefs.h <<\EOF
c7a2bf27
RR
13492#define wxUSE_LIBTIFF 1
13493EOF
13494
665bbe97 13495 if test "$wxUSE_LIBTIFF" = "yes" ; then
0dcf9893
VZ
13496 TIFF_INCLUDE="-I\${top_srcdir}/src/tiff"
13497 else
13498 TIFF_LINK=
703e0a69
VZ
13499 ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'`
13500echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6
13501echo "configure:13502: checking for tiffio.h" >&5
13502if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
13503 echo $ac_n "(cached) $ac_c" 1>&6
13504else
13505 cat > conftest.$ac_ext <<EOF
13506#line 13507 "configure"
0dcf9893
VZ
13507#include "confdefs.h"
13508#include <tiffio.h>
703e0a69
VZ
13509EOF
13510ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13511{ (eval echo configure:13512: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13512ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13513if test -z "$ac_err"; then
13514 rm -rf conftest*
13515 eval "ac_cv_header_$ac_safe=yes"
0dcf9893 13516else
703e0a69
VZ
13517 echo "$ac_err" >&5
13518 echo "configure: failed program was:" >&5
0dcf9893 13519 cat conftest.$ac_ext >&5
703e0a69
VZ
13520 rm -rf conftest*
13521 eval "ac_cv_header_$ac_safe=no"
0dcf9893 13522fi
703e0a69 13523rm -f conftest*
0dcf9893 13524fi
703e0a69
VZ
13525if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13526 echo "$ac_t""yes" 1>&6
13527 echo $ac_n "checking for TIFFError in -ltiff""... $ac_c" 1>&6
13528echo "configure:13529: checking for TIFFError in -ltiff" >&5
13529ac_lib_var=`echo tiff'_'TIFFError | sed 'y%./+-%__p_%'`
13530if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13531 echo $ac_n "(cached) $ac_c" 1>&6
0dcf9893 13532else
703e0a69 13533 ac_save_LIBS="$LIBS"
0dcf9893 13534LIBS="-ltiff -lm $LIBS"
703e0a69
VZ
13535cat > conftest.$ac_ext <<EOF
13536#line 13537 "configure"
0dcf9893
VZ
13537#include "confdefs.h"
13538/* Override any gcc2 internal prototype to avoid an error. */
13539/* We use char because int might match the return type of a gcc2
703e0a69
VZ
13540 builtin and then its argument prototype would still apply. */
13541char TIFFError();
13542
13543int main() {
13544TIFFError()
13545; return 0; }
13546EOF
13547if { (eval echo configure:13548: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13548 rm -rf conftest*
13549 eval "ac_cv_lib_$ac_lib_var=yes"
13550else
13551 echo "configure: failed program was:" >&5
13552 cat conftest.$ac_ext >&5
13553 rm -rf conftest*
13554 eval "ac_cv_lib_$ac_lib_var=no"
13555fi
13556rm -f conftest*
13557LIBS="$ac_save_LIBS"
13558
13559fi
13560if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13561 echo "$ac_t""yes" 1>&6
0dcf9893 13562 TIFF_LINK="-ltiff"
703e0a69
VZ
13563else
13564 echo "$ac_t""no" 1>&6
0dcf9893
VZ
13565fi
13566
703e0a69
VZ
13567else
13568 echo "$ac_t""no" 1>&6
0dcf9893
VZ
13569fi
13570
13571 if test "x$TIFF_LINK" = "x" ; then
703e0a69 13572 { echo "configure: error: system tiff library not found! Use --with-libtiff=yes to use the built-in one" 1>&2; exit 1; }
0dcf9893
VZ
13573 fi
13574 fi
c7a2bf27
RR
13575fi
13576
3fed1840
RR
13577FREETYPE_INCLUDE=
13578if test "$wxUSE_FREETYPE" = "yes" -o "$wxUSE_FREETYPE" = "sys" ; then
703e0a69 13579 cat >> confdefs.h <<\EOF
3fed1840
RR
13580#define wxUSE_FREETYPE 1
13581EOF
13582
13583 if test "$wxUSE_FREETYPE" = "yes" ; then
13584 FREETYPE_INCLUDE="-I\${top_srcdir}/src/freetype"
13585 else
13586 FREETYPE_LINK=
703e0a69
VZ
13587 ac_safe=`echo "freetype.h" | sed 'y%./+-%__p_%'`
13588echo $ac_n "checking for freetype.h""... $ac_c" 1>&6
13589echo "configure:13590: checking for freetype.h" >&5
13590if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
13591 echo $ac_n "(cached) $ac_c" 1>&6
13592else
13593 cat > conftest.$ac_ext <<EOF
13594#line 13595 "configure"
3fed1840
RR
13595#include "confdefs.h"
13596#include <freetype.h>
703e0a69
VZ
13597EOF
13598ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13599{ (eval echo configure:13600: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13600ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13601if test -z "$ac_err"; then
13602 rm -rf conftest*
13603 eval "ac_cv_header_$ac_safe=yes"
3fed1840 13604else
703e0a69
VZ
13605 echo "$ac_err" >&5
13606 echo "configure: failed program was:" >&5
3fed1840 13607 cat conftest.$ac_ext >&5
703e0a69
VZ
13608 rm -rf conftest*
13609 eval "ac_cv_header_$ac_safe=no"
3fed1840 13610fi
703e0a69 13611rm -f conftest*
3fed1840 13612fi
703e0a69
VZ
13613if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13614 echo "$ac_t""yes" 1>&6
13615 echo $ac_n "checking for FT_Render_Glyph in -lfreetype""... $ac_c" 1>&6
13616echo "configure:13617: checking for FT_Render_Glyph in -lfreetype" >&5
13617ac_lib_var=`echo freetype'_'FT_Render_Glyph | sed 'y%./+-%__p_%'`
13618if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13619 echo $ac_n "(cached) $ac_c" 1>&6
3fed1840 13620else
703e0a69 13621 ac_save_LIBS="$LIBS"
3fed1840 13622LIBS="-lfreetype -lm $LIBS"
703e0a69
VZ
13623cat > conftest.$ac_ext <<EOF
13624#line 13625 "configure"
3fed1840
RR
13625#include "confdefs.h"
13626/* Override any gcc2 internal prototype to avoid an error. */
13627/* We use char because int might match the return type of a gcc2
703e0a69
VZ
13628 builtin and then its argument prototype would still apply. */
13629char FT_Render_Glyph();
13630
13631int main() {
13632FT_Render_Glyph()
13633; return 0; }
13634EOF
13635if { (eval echo configure:13636: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13636 rm -rf conftest*
13637 eval "ac_cv_lib_$ac_lib_var=yes"
13638else
13639 echo "configure: failed program was:" >&5
13640 cat conftest.$ac_ext >&5
13641 rm -rf conftest*
13642 eval "ac_cv_lib_$ac_lib_var=no"
13643fi
13644rm -f conftest*
13645LIBS="$ac_save_LIBS"
13646
13647fi
13648if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13649 echo "$ac_t""yes" 1>&6
3fed1840 13650 FREETYPE_LINK="-lfreetype"
703e0a69
VZ
13651else
13652 echo "$ac_t""no" 1>&6
3fed1840
RR
13653fi
13654
703e0a69
VZ
13655
13656else
13657 echo "$ac_t""no" 1>&6
3fed1840
RR
13658fi
13659
13660 if test "x$FREETYPE_LINK" = "x" ; then
703e0a69 13661 { echo "configure: error: system freetype library not found! Use --with-freetype=yes to use the built-in freetype" 1>&2; exit 1; }
3fed1840
RR
13662 fi
13663 fi
13664fi
13665
10f2d63a 13666if test "$wxUSE_OPENGL" = "yes"; then
703e0a69
VZ
13667 ac_safe=`echo "GL/gl.h" | sed 'y%./+-%__p_%'`
13668echo $ac_n "checking for GL/gl.h""... $ac_c" 1>&6
13669echo "configure:13670: checking for GL/gl.h" >&5
13670if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
13671 echo $ac_n "(cached) $ac_c" 1>&6
13672else
13673 cat > conftest.$ac_ext <<EOF
13674#line 13675 "configure"
10f2d63a
VZ
13675#include "confdefs.h"
13676#include <GL/gl.h>
703e0a69
VZ
13677EOF
13678ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13679{ (eval echo configure:13680: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13680ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13681if test -z "$ac_err"; then
13682 rm -rf conftest*
13683 eval "ac_cv_header_$ac_safe=yes"
10f2d63a 13684else
703e0a69
VZ
13685 echo "$ac_err" >&5
13686 echo "configure: failed program was:" >&5
10f2d63a 13687 cat conftest.$ac_ext >&5
703e0a69
VZ
13688 rm -rf conftest*
13689 eval "ac_cv_header_$ac_safe=no"
10f2d63a 13690fi
703e0a69 13691rm -f conftest*
10f2d63a 13692fi
703e0a69
VZ
13693if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13694 echo "$ac_t""yes" 1>&6
13695
13696 cat >> confdefs.h <<\EOF
bdad4e7e
RR
13697#define wxUSE_OPENGL 1
13698EOF
13699
703e0a69 13700 cat >> confdefs.h <<\EOF
bdad4e7e
RR
13701#define wxUSE_GLCANVAS 1
13702EOF
13703
703e0a69
VZ
13704 echo $ac_n "checking for glFlush in -lGL""... $ac_c" 1>&6
13705echo "configure:13706: checking for glFlush in -lGL" >&5
13706ac_lib_var=`echo GL'_'glFlush | sed 'y%./+-%__p_%'`
13707if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13708 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 13709else
703e0a69 13710 ac_save_LIBS="$LIBS"
bdad4e7e 13711LIBS="-lGL $LIBS"
703e0a69
VZ
13712cat > conftest.$ac_ext <<EOF
13713#line 13714 "configure"
10f2d63a
VZ
13714#include "confdefs.h"
13715/* Override any gcc2 internal prototype to avoid an error. */
13716/* We use char because int might match the return type of a gcc2
703e0a69
VZ
13717 builtin and then its argument prototype would still apply. */
13718char glFlush();
10f2d63a 13719
703e0a69
VZ
13720int main() {
13721glFlush()
13722; return 0; }
13723EOF
13724if { (eval echo configure:13725: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13725 rm -rf conftest*
13726 eval "ac_cv_lib_$ac_lib_var=yes"
13727else
13728 echo "configure: failed program was:" >&5
13729 cat conftest.$ac_ext >&5
13730 rm -rf conftest*
13731 eval "ac_cv_lib_$ac_lib_var=no"
13732fi
13733rm -f conftest*
13734LIBS="$ac_save_LIBS"
6232543b 13735
703e0a69
VZ
13736fi
13737if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13738 echo "$ac_t""yes" 1>&6
13739
13740 OPENGL_LINK="-lGL -lGLU"
13741
10f2d63a 13742else
703e0a69 13743 echo "$ac_t""no" 1>&6
10f2d63a 13744
703e0a69
VZ
13745 echo $ac_n "checking for glFlush in -lMesaGL""... $ac_c" 1>&6
13746echo "configure:13747: checking for glFlush in -lMesaGL" >&5
13747ac_lib_var=`echo MesaGL'_'glFlush | sed 'y%./+-%__p_%'`
13748if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13749 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 13750else
703e0a69 13751 ac_save_LIBS="$LIBS"
10f2d63a 13752LIBS="-lMesaGL $LIBS"
703e0a69
VZ
13753cat > conftest.$ac_ext <<EOF
13754#line 13755 "configure"
10f2d63a
VZ
13755#include "confdefs.h"
13756/* Override any gcc2 internal prototype to avoid an error. */
13757/* We use char because int might match the return type of a gcc2
703e0a69
VZ
13758 builtin and then its argument prototype would still apply. */
13759char glFlush();
13760
13761int main() {
13762glFlush()
13763; return 0; }
13764EOF
13765if { (eval echo configure:13766: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13766 rm -rf conftest*
13767 eval "ac_cv_lib_$ac_lib_var=yes"
13768else
13769 echo "configure: failed program was:" >&5
13770 cat conftest.$ac_ext >&5
13771 rm -rf conftest*
13772 eval "ac_cv_lib_$ac_lib_var=no"
13773fi
13774rm -f conftest*
13775LIBS="$ac_save_LIBS"
10f2d63a 13776
703e0a69
VZ
13777fi
13778if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13779 echo "$ac_t""yes" 1>&6
13780
f6bcfd97 13781 OPENGL_LINK="-lMesaGL -lMesaGLU"
703e0a69
VZ
13782
13783else
13784 echo "$ac_t""no" 1>&6
10f2d63a
VZ
13785fi
13786
703e0a69 13787
10f2d63a
VZ
13788fi
13789
703e0a69 13790
10f2d63a 13791else
703e0a69
VZ
13792 echo "$ac_t""no" 1>&6
13793wxUSE_OPENGL=0
10f2d63a
VZ
13794fi
13795
13796fi
13797
703e0a69 13798
10f2d63a 13799if test "$wxUSE_GUI" = "yes"; then
703e0a69 13800 cat >> confdefs.h <<\EOF
10f2d63a
VZ
13801#define wxUSE_GUI 1
13802EOF
13803
703e0a69 13804
10f2d63a 13805 else
703e0a69 13806 cat >> confdefs.h <<\EOF
10f2d63a
VZ
13807#define wxUSE_NOGUI 1
13808EOF
13809
13810fi
13811
703e0a69 13812
10f2d63a 13813if test "$wxUSE_UNIX" = "yes"; then
703e0a69 13814 cat >> confdefs.h <<\EOF
10f2d63a
VZ
13815#define wxUSE_UNIX 1
13816EOF
13817
13818fi
13819
703e0a69 13820
10f2d63a 13821if test "$wxUSE_APPLE_IEEE" = "yes"; then
703e0a69 13822 cat >> confdefs.h <<\EOF
10f2d63a
VZ
13823#define wxUSE_APPLE_IEEE 1
13824EOF
13825
13826fi
13827
10f2d63a 13828if test "$wxUSE_WAVE" = "yes"; then
703e0a69 13829 cat >> confdefs.h <<\EOF
10f2d63a
VZ
13830#define wxUSE_WAVE 1
13831EOF
13832
13833fi
13834
13835if test "$wxUSE_FILE" = "yes"; then
703e0a69 13836 cat >> confdefs.h <<\EOF
10f2d63a
VZ
13837#define wxUSE_FILE 1
13838EOF
13839
13840fi
13841
24528b0c 13842if test "$wxUSE_FILESYSTEM" = "yes"; then
703e0a69 13843 cat >> confdefs.h <<\EOF
24528b0c
VS
13844#define wxUSE_FILESYSTEM 1
13845EOF
13846
13847fi
13848
10f2d63a 13849if test "$wxUSE_FS_INET" = "yes"; then
703e0a69 13850 cat >> confdefs.h <<\EOF
10f2d63a
VZ
13851#define wxUSE_FS_INET 1
13852EOF
13853
13854fi
13855
13856if test "$wxUSE_FS_ZIP" = "yes"; then
703e0a69 13857 cat >> confdefs.h <<\EOF
10f2d63a
VZ
13858#define wxUSE_FS_ZIP 1
13859EOF
13860
13861fi
13862
13863if test "$wxUSE_ZIPSTREAM" = "yes"; then
703e0a69 13864 cat >> confdefs.h <<\EOF
10f2d63a
VZ
13865#define wxUSE_ZIPSTREAM 1
13866EOF
13867
13868fi
13869
eb4efbdc 13870if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
703e0a69 13871 cat >> confdefs.h <<\EOF
eb4efbdc
VZ
13872#define wxUSE_ON_FATAL_EXCEPTION 1
13873EOF
13874
13875fi
13876
4f3c5f06 13877if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
703e0a69 13878 cat >> confdefs.h <<\EOF
4f3c5f06
VZ
13879#define wxUSE_SNGLINST_CHECKER 1
13880EOF
13881
13882fi
13883
10f2d63a 13884if test "$wxUSE_BUSYINFO" = "yes"; then
703e0a69 13885 cat >> confdefs.h <<\EOF
10f2d63a
VZ
13886#define wxUSE_BUSYINFO 1
13887EOF
13888
13889fi
13890
13891if test "$wxUSE_STD_IOSTREAM" = "yes"; then
703e0a69 13892 cat >> confdefs.h <<\EOF
10f2d63a
VZ
13893#define wxUSE_STD_IOSTREAM 1
13894EOF
13895
13896fi
13897
13898if test "$wxUSE_TEXTFILE" = "yes"; then
13899 if test "$wxUSE_FILE" != "yes"; then
703e0a69 13900 echo "configure: warning: wxTextFile requires wxFile and it won't be compiled without it" 1>&2
10f2d63a 13901 else
703e0a69 13902 cat >> confdefs.h <<\EOF
10f2d63a
VZ
13903#define wxUSE_TEXTFILE 1
13904EOF
13905
13906 fi
13907fi
13908
13909if test "$wxUSE_CONFIG" = "yes" ; then
13910 if test "$wxUSE_TEXTFILE" != "yes"; then
703e0a69 13911 echo "configure: warning: wxConfig requires wxTextFile and it won't be compiled without it" 1>&2
10f2d63a 13912 else
703e0a69 13913 cat >> confdefs.h <<\EOF
10f2d63a
VZ
13914#define wxUSE_CONFIG 1
13915EOF
13916
13917 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
13918 fi
13919fi
13920
13921if test "$wxUSE_INTL" = "yes" ; then
13922 if test "$wxUSE_FILE" != "yes"; then
703e0a69 13923 echo "configure: warning: I18n code requires wxFile and it won't be compiled without it" 1>&2
10f2d63a 13924 else
703e0a69 13925 cat >> confdefs.h <<\EOF
10f2d63a
VZ
13926#define wxUSE_INTL 1
13927EOF
13928
13929 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
f6bcfd97 13930 GUIDIST="$GUIDIST INTL_DIST"
10f2d63a
VZ
13931 fi
13932fi
13933
13934if test "$wxUSE_LOG" = "yes"; then
703e0a69 13935 cat >> confdefs.h <<\EOF
10f2d63a
VZ
13936#define wxUSE_LOG 1
13937EOF
13938
13939fi
13940
13941if test "$wxUSE_LONGLONG" = "yes"; then
703e0a69 13942 cat >> confdefs.h <<\EOF
10f2d63a
VZ
13943#define wxUSE_LONGLONG 1
13944EOF
13945
13946fi
13947
e8f65ba6 13948if test "$wxUSE_GEOMETRY" = "yes"; then
703e0a69 13949 cat >> confdefs.h <<\EOF
e8f65ba6
RR
13950#define wxUSE_GEOMETRY 1
13951EOF
13952
13953fi
13954
10f2d63a 13955if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then
703e0a69 13956 cat >> confdefs.h <<\EOF
10f2d63a
VZ
13957#define wxUSE_DIALUP_MANAGER 1
13958EOF
13959
70f7a477 13960 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
10f2d63a
VZ
13961fi
13962
13963if test "$wxUSE_STREAMS" = "yes" ; then
703e0a69 13964 cat >> confdefs.h <<\EOF
10f2d63a
VZ
13965#define wxUSE_STREAMS 1
13966EOF
13967
13968fi
13969
6232543b 13970
703e0a69
VZ
13971if test "$wxUSE_TIMEDATE" = "yes"; then
13972 for ac_func in strptime
83307f33 13973do
703e0a69
VZ
13974echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13975echo "configure:13976: checking for $ac_func" >&5
13976if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13977 echo $ac_n "(cached) $ac_c" 1>&6
13978else
13979 cat > conftest.$ac_ext <<EOF
13980#line 13981 "configure"
83307f33
VZ
13981#include "confdefs.h"
13982/* System header to define __stub macros and hopefully few prototypes,
703e0a69 13983 which can conflict with char $ac_func(); below. */
83307f33
VZ
13984#include <assert.h>
13985/* Override any gcc2 internal prototype to avoid an error. */
13986/* We use char because int might match the return type of a gcc2
703e0a69
VZ
13987 builtin and then its argument prototype would still apply. */
13988char $ac_func();
13989
13990int main() {
83307f33
VZ
13991
13992/* The GNU C library defines this for functions which it implements
13993 to always fail with ENOSYS. Some functions are actually named
13994 something starting with __ and the normal name is an alias. */
13995#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13996choke me
13997#else
703e0a69 13998$ac_func();
83307f33
VZ
13999#endif
14000
703e0a69 14001; return 0; }
83307f33 14002EOF
703e0a69
VZ
14003if { (eval echo configure:14004: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14004 rm -rf conftest*
14005 eval "ac_cv_func_$ac_func=yes"
14006else
14007 echo "configure: failed program was:" >&5
14008 cat conftest.$ac_ext >&5
14009 rm -rf conftest*
14010 eval "ac_cv_func_$ac_func=no"
14011fi
14012rm -f conftest*
14013fi
83307f33 14014
703e0a69
VZ
14015if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14016 echo "$ac_t""yes" 1>&6
14017 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14018 cat >> confdefs.h <<EOF
14019#define $ac_tr_func 1
14020EOF
14021
14022else
14023 echo "$ac_t""no" 1>&6
83307f33
VZ
14024fi
14025done
14026
6232543b 14027
703e0a69
VZ
14028 echo $ac_n "checking for timezone variable in <time.h>""... $ac_c" 1>&6
14029echo "configure:14030: checking for timezone variable in <time.h>" >&5
14030if eval "test \"`echo '$''{'wx_cv_var_timezone'+set}'`\" = set"; then
14031 echo $ac_n "(cached) $ac_c" 1>&6
14032else
14033
14034 cat > conftest.$ac_ext <<EOF
14035#line 14036 "configure"
360d6699
VZ
14036#include "confdefs.h"
14037
b4085ce6 14038 #include <time.h>
703e0a69
VZ
14039
14040int main() {
360d6699
VZ
14041
14042 int tz;
14043 tz = __timezone;
703e0a69
VZ
14044
14045; return 0; }
14046EOF
14047if { (eval echo configure:14048: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14048 rm -rf conftest*
14049
360d6699 14050 wx_cv_var_timezone=__timezone
703e0a69 14051
360d6699 14052else
703e0a69
VZ
14053 echo "configure: failed program was:" >&5
14054 cat conftest.$ac_ext >&5
14055 rm -rf conftest*
14056
14057 cat > conftest.$ac_ext <<EOF
14058#line 14059 "configure"
360d6699
VZ
14059#include "confdefs.h"
14060
b4085ce6 14061 #include <time.h>
703e0a69
VZ
14062
14063int main() {
360d6699
VZ
14064
14065 int tz;
14066 tz = _timezone;
703e0a69
VZ
14067
14068; return 0; }
14069EOF
14070if { (eval echo configure:14071: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14071 rm -rf conftest*
14072
360d6699 14073 wx_cv_var_timezone=_timezone
703e0a69 14074
5357c8e8 14075else
703e0a69
VZ
14076 echo "configure: failed program was:" >&5
14077 cat conftest.$ac_ext >&5
14078 rm -rf conftest*
14079
14080 cat > conftest.$ac_ext <<EOF
14081#line 14082 "configure"
5357c8e8
VZ
14082#include "confdefs.h"
14083
b4085ce6 14084 #include <time.h>
703e0a69
VZ
14085
14086int main() {
5357c8e8
VZ
14087
14088 int tz;
14089 tz = timezone;
703e0a69
VZ
14090
14091; return 0; }
14092EOF
14093if { (eval echo configure:14094: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14094 rm -rf conftest*
14095
5357c8e8 14096 wx_cv_var_timezone=timezone
703e0a69 14097
360d6699 14098else
703e0a69
VZ
14099 echo "configure: failed program was:" >&5
14100 cat conftest.$ac_ext >&5
14101 rm -rf conftest*
14102 { echo "configure: error: no timezone variable" 1>&2; exit 1; }
14103
360d6699 14104fi
703e0a69
VZ
14105rm -f conftest*
14106
14107
360d6699 14108fi
703e0a69
VZ
14109rm -f conftest*
14110
14111
360d6699 14112fi
703e0a69
VZ
14113rm -f conftest*
14114
14115
6232543b 14116fi
360d6699 14117
703e0a69
VZ
14118echo "$ac_t""$wx_cv_var_timezone" 1>&6
14119
14120 cat >> confdefs.h <<EOF
360d6699
VZ
14121#define WX_TIMEZONE $wx_cv_var_timezone
14122EOF
14123
703e0a69
VZ
14124
14125 for ac_func in localtime
afc31813 14126do
703e0a69
VZ
14127echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14128echo "configure:14129: checking for $ac_func" >&5
14129if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14130 echo $ac_n "(cached) $ac_c" 1>&6
14131else
14132 cat > conftest.$ac_ext <<EOF
14133#line 14134 "configure"
10f2d63a 14134#include "confdefs.h"
afc31813 14135/* System header to define __stub macros and hopefully few prototypes,
703e0a69 14136 which can conflict with char $ac_func(); below. */
afc31813
VZ
14137#include <assert.h>
14138/* Override any gcc2 internal prototype to avoid an error. */
14139/* We use char because int might match the return type of a gcc2
703e0a69
VZ
14140 builtin and then its argument prototype would still apply. */
14141char $ac_func();
14142
14143int main() {
afc31813
VZ
14144
14145/* The GNU C library defines this for functions which it implements
14146 to always fail with ENOSYS. Some functions are actually named
14147 something starting with __ and the normal name is an alias. */
14148#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14149choke me
14150#else
703e0a69 14151$ac_func();
afc31813
VZ
14152#endif
14153
703e0a69 14154; return 0; }
10f2d63a 14155EOF
703e0a69
VZ
14156if { (eval echo configure:14157: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14157 rm -rf conftest*
14158 eval "ac_cv_func_$ac_func=yes"
14159else
14160 echo "configure: failed program was:" >&5
14161 cat conftest.$ac_ext >&5
14162 rm -rf conftest*
14163 eval "ac_cv_func_$ac_func=no"
14164fi
14165rm -f conftest*
14166fi
afc31813 14167
703e0a69
VZ
14168if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14169 echo "$ac_t""yes" 1>&6
14170 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14171 cat >> confdefs.h <<EOF
14172#define $ac_tr_func 1
14173EOF
14174
14175else
14176 echo "$ac_t""no" 1>&6
afc31813
VZ
14177fi
14178done
14179
6232543b 14180
703e0a69
VZ
14181 if test "$ac_cv_func_localtime" = "yes"; then
14182 echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6
14183echo "configure:14184: checking for tm_gmtoff in struct tm" >&5
14184if eval "test \"`echo '$''{'wx_cv_struct_tm_has_gmtoff'+set}'`\" = set"; then
14185 echo $ac_n "(cached) $ac_c" 1>&6
14186else
14187
14188 cat > conftest.$ac_ext <<EOF
14189#line 14190 "configure"
0470b1e6
VZ
14190#include "confdefs.h"
14191
b4085ce6 14192 #include <time.h>
703e0a69
VZ
14193
14194int main() {
0470b1e6
VZ
14195
14196 struct tm tm;
14197 tm.tm_gmtoff++;
703e0a69
VZ
14198
14199; return 0; }
14200EOF
14201if { (eval echo configure:14202: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14202 rm -rf conftest*
14203
f03a98d8 14204 wx_cv_struct_tm_has_gmtoff=yes
703e0a69 14205
0470b1e6 14206else
703e0a69
VZ
14207 echo "configure: failed program was:" >&5
14208 cat conftest.$ac_ext >&5
14209 rm -rf conftest*
14210 wx_cv_struct_tm_has_gmtoff=no
14211
0470b1e6 14212fi
703e0a69
VZ
14213rm -f conftest*
14214
0470b1e6 14215fi
703e0a69
VZ
14216
14217echo "$ac_t""$wx_cv_struct_tm_has_gmtoff" 1>&6
6232543b
VS
14218 fi
14219
14220 if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
703e0a69 14221 cat >> confdefs.h <<\EOF
6232543b
VS
14222#define WX_GMTOFF_IN_TM 1
14223EOF
0470b1e6 14224
3fcdd07b
VZ
14225 fi
14226
703e0a69 14227 for ac_func in gettimeofday ftime
3fcdd07b 14228do
703e0a69
VZ
14229echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14230echo "configure:14231: checking for $ac_func" >&5
14231if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14232 echo $ac_n "(cached) $ac_c" 1>&6
14233else
14234 cat > conftest.$ac_ext <<EOF
14235#line 14236 "configure"
3fcdd07b
VZ
14236#include "confdefs.h"
14237/* System header to define __stub macros and hopefully few prototypes,
703e0a69 14238 which can conflict with char $ac_func(); below. */
3fcdd07b
VZ
14239#include <assert.h>
14240/* Override any gcc2 internal prototype to avoid an error. */
14241/* We use char because int might match the return type of a gcc2
703e0a69
VZ
14242 builtin and then its argument prototype would still apply. */
14243char $ac_func();
14244
14245int main() {
3fcdd07b
VZ
14246
14247/* The GNU C library defines this for functions which it implements
14248 to always fail with ENOSYS. Some functions are actually named
14249 something starting with __ and the normal name is an alias. */
14250#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14251choke me
14252#else
703e0a69 14253$ac_func();
3fcdd07b
VZ
14254#endif
14255
703e0a69
VZ
14256; return 0; }
14257EOF
14258if { (eval echo configure:14259: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14259 rm -rf conftest*
14260 eval "ac_cv_func_$ac_func=yes"
14261else
14262 echo "configure: failed program was:" >&5
14263 cat conftest.$ac_ext >&5
14264 rm -rf conftest*
14265 eval "ac_cv_func_$ac_func=no"
14266fi
14267rm -f conftest*
14268fi
14269
14270if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14271 echo "$ac_t""yes" 1>&6
14272 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14273 cat >> confdefs.h <<EOF
14274#define $ac_tr_func 1
3fcdd07b
VZ
14275EOF
14276 break
703e0a69
VZ
14277else
14278 echo "$ac_t""no" 1>&6
3fcdd07b
VZ
14279fi
14280done
14281
afc31813 14282
703e0a69
VZ
14283 if test "$ac_cv_func_gettimeofday" = "yes"; then
14284 echo $ac_n "checking whether gettimeofday takes two arguments""... $ac_c" 1>&6
14285echo "configure:14286: checking whether gettimeofday takes two arguments" >&5
14286if eval "test \"`echo '$''{'wx_cv_func_gettimeofday_has_2_args'+set}'`\" = set"; then
14287 echo $ac_n "(cached) $ac_c" 1>&6
14288else
14289
14290
14291 ac_ext=C
14292# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6232543b 14293ac_cpp='$CXXCPP $CPPFLAGS'
703e0a69
VZ
14294ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14295ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14296cross_compiling=$ac_cv_prog_cxx_cross
afc31813 14297
703e0a69
VZ
14298
14299 cat > conftest.$ac_ext <<EOF
14300#line 14301 "configure"
10f2d63a 14301#include "confdefs.h"
afc31813
VZ
14302
14303 #include <sys/time.h>
14304 #include <unistd.h>
703e0a69
VZ
14305
14306int main() {
afc31813
VZ
14307
14308 struct timeval tv;
14309 struct timezone tz;
14310 gettimeofday(&tv, &tz);
703e0a69
VZ
14311
14312; return 0; }
14313EOF
14314if { (eval echo configure:14315: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14315 rm -rf conftest*
afc31813 14316 wx_cv_func_gettimeofday_has_2_args=yes
10f2d63a 14317else
703e0a69
VZ
14318 echo "configure: failed program was:" >&5
14319 cat conftest.$ac_ext >&5
14320 rm -rf conftest*
14321 cat > conftest.$ac_ext <<EOF
14322#line 14323 "configure"
10f2d63a 14323#include "confdefs.h"
afc31813
VZ
14324
14325 #include <sys/time.h>
14326 #include <unistd.h>
703e0a69
VZ
14327
14328int main() {
afc31813
VZ
14329
14330 struct timeval tv;
14331 gettimeofday(&tv);
703e0a69
VZ
14332
14333; return 0; }
14334EOF
14335if { (eval echo configure:14336: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14336 rm -rf conftest*
afc31813 14337 wx_cv_func_gettimeofday_has_2_args=no
10f2d63a 14338else
703e0a69
VZ
14339 echo "configure: failed program was:" >&5
14340 cat conftest.$ac_ext >&5
14341 rm -rf conftest*
14342 wx_cv_func_gettimeofday_has_2_args=unknown
14343
10f2d63a 14344fi
703e0a69
VZ
14345rm -f conftest*
14346
10f2d63a 14347fi
703e0a69 14348rm -f conftest*
afc31813 14349 ac_ext=c
703e0a69 14350# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10f2d63a 14351ac_cpp='$CPP $CPPFLAGS'
703e0a69
VZ
14352ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14353ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14354cross_compiling=$ac_cv_prog_cc_cross
10f2d63a 14355
703e0a69 14356
afc31813 14357fi
703e0a69
VZ
14358
14359echo "$ac_t""$wx_cv_func_gettimeofday_has_2_args" 1>&6
c63c7106 14360
afc31813 14361 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
703e0a69 14362 cat >> confdefs.h <<\EOF
afc31813
VZ
14363#define WX_GETTIMEOFDAY_NO_TZ 1
14364EOF
14365
14366 fi
14367 fi
14368
703e0a69 14369 cat >> confdefs.h <<\EOF
afc31813
VZ
14370#define wxUSE_TIMEDATE 1
14371EOF
14372
14373 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
14374fi
14375
703e0a69 14376
b089607b
VZ
14377if test "$TOOLKIT" != "MSW"; then
14378
afc31813 14379if test "$wxUSE_SOCKETS" = "yes"; then
703e0a69
VZ
14380 echo $ac_n "checking for socket""... $ac_c" 1>&6
14381echo "configure:14382: checking for socket" >&5
14382if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
14383 echo $ac_n "(cached) $ac_c" 1>&6
c63c7106 14384else
703e0a69
VZ
14385 cat > conftest.$ac_ext <<EOF
14386#line 14387 "configure"
c63c7106
VZ
14387#include "confdefs.h"
14388/* System header to define __stub macros and hopefully few prototypes,
703e0a69 14389 which can conflict with char socket(); below. */
c63c7106
VZ
14390#include <assert.h>
14391/* Override any gcc2 internal prototype to avoid an error. */
14392/* We use char because int might match the return type of a gcc2
703e0a69
VZ
14393 builtin and then its argument prototype would still apply. */
14394char socket();
14395
14396int main() {
c63c7106
VZ
14397
14398/* The GNU C library defines this for functions which it implements
14399 to always fail with ENOSYS. Some functions are actually named
14400 something starting with __ and the normal name is an alias. */
14401#if defined (__stub_socket) || defined (__stub___socket)
14402choke me
14403#else
703e0a69 14404socket();
c63c7106
VZ
14405#endif
14406
703e0a69
VZ
14407; return 0; }
14408EOF
14409if { (eval echo configure:14410: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14410 rm -rf conftest*
14411 eval "ac_cv_func_socket=yes"
14412else
14413 echo "configure: failed program was:" >&5
14414 cat conftest.$ac_ext >&5
14415 rm -rf conftest*
14416 eval "ac_cv_func_socket=no"
14417fi
14418rm -f conftest*
14419fi
14420
14421if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
14422 echo "$ac_t""yes" 1>&6
c63c7106
VZ
14423 :
14424else
703e0a69
VZ
14425 echo "$ac_t""no" 1>&6
14426echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
14427echo "configure:14428: checking for socket in -lsocket" >&5
14428ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
14429if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14430 echo $ac_n "(cached) $ac_c" 1>&6
c63c7106 14431else
703e0a69 14432 ac_save_LIBS="$LIBS"
c63c7106 14433LIBS="-lsocket $LIBS"
703e0a69
VZ
14434cat > conftest.$ac_ext <<EOF
14435#line 14436 "configure"
c63c7106
VZ
14436#include "confdefs.h"
14437/* Override any gcc2 internal prototype to avoid an error. */
14438/* We use char because int might match the return type of a gcc2
703e0a69
VZ
14439 builtin and then its argument prototype would still apply. */
14440char socket();
14441
14442int main() {
14443socket()
14444; return 0; }
14445EOF
14446if { (eval echo configure:14447: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14447 rm -rf conftest*
14448 eval "ac_cv_lib_$ac_lib_var=yes"
14449else
14450 echo "configure: failed program was:" >&5
14451 cat conftest.$ac_ext >&5
14452 rm -rf conftest*
14453 eval "ac_cv_lib_$ac_lib_var=no"
14454fi
14455rm -f conftest*
14456LIBS="$ac_save_LIBS"
14457
14458fi
14459if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14460 echo "$ac_t""yes" 1>&6
c63c7106 14461 INET_LINK="$INET_LINK -lsocket"
c63c7106 14462else
703e0a69 14463 echo "$ac_t""no" 1>&6
afc31813 14464
703e0a69 14465 echo "configure: warning: socket library not found - sockets will be disabled" 1>&2
afc31813 14466 wxUSE_SOCKETS=no
703e0a69
VZ
14467
14468
c63c7106
VZ
14469fi
14470
703e0a69 14471
10f2d63a
VZ
14472fi
14473
6232543b 14474fi
b089607b 14475
afc31813 14476
703e0a69
VZ
14477if test "$wxUSE_SOCKETS" = "yes" ; then
14478 echo $ac_n "checking what is the type of the third argument of getsockname""... $ac_c" 1>&6
14479echo "configure:14480: checking what is the type of the third argument of getsockname" >&5
14480if eval "test \"`echo '$''{'wx_cv_type_getsockname3'+set}'`\" = set"; then
14481 echo $ac_n "(cached) $ac_c" 1>&6
14482else
14483
14484
14485 ac_ext=C
14486# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6232543b 14487ac_cpp='$CXXCPP $CPPFLAGS'
703e0a69
VZ
14488ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14489ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14490cross_compiling=$ac_cv_prog_cxx_cross
51a9faba 14491
703e0a69
VZ
14492
14493 cat > conftest.$ac_ext <<EOF
14494#line 14495 "configure"
afc31813 14495#include "confdefs.h"
51a9faba 14496
3ace2e6d 14497 #include <sys/types.h>
51a9faba 14498 #include <sys/socket.h>
703e0a69
VZ
14499
14500int main() {
51a9faba
VZ
14501
14502 socklen_t len;
14503 getsockname(0, 0, &len);
703e0a69
VZ
14504
14505; return 0; }
14506EOF
14507if { (eval echo configure:14508: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14508 rm -rf conftest*
51a9faba 14509 wx_cv_type_getsockname3=socklen_t
afc31813 14510else
703e0a69
VZ
14511 echo "configure: failed program was:" >&5
14512 cat conftest.$ac_ext >&5
14513 rm -rf conftest*
14514 cat > conftest.$ac_ext <<EOF
14515#line 14516 "configure"
afc31813 14516#include "confdefs.h"
51a9faba 14517
3ace2e6d 14518 #include <sys/types.h>
51a9faba 14519 #include <sys/socket.h>
703e0a69
VZ
14520
14521int main() {
51a9faba
VZ
14522
14523 size_t len;
14524 getsockname(0, 0, &len);
703e0a69
VZ
14525
14526; return 0; }
14527EOF
14528if { (eval echo configure:14529: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14529 rm -rf conftest*
51a9faba 14530 wx_cv_type_getsockname3=size_t
afc31813 14531else
703e0a69
VZ
14532 echo "configure: failed program was:" >&5
14533 cat conftest.$ac_ext >&5
14534 rm -rf conftest*
14535 cat > conftest.$ac_ext <<EOF
14536#line 14537 "configure"
afc31813 14537#include "confdefs.h"
51a9faba 14538
3ace2e6d 14539 #include <sys/types.h>
51a9faba 14540 #include <sys/socket.h>
703e0a69
VZ
14541
14542int main() {
51a9faba
VZ
14543
14544 int len;
14545 getsockname(0, 0, &len);
703e0a69
VZ
14546
14547; return 0; }
14548EOF
14549if { (eval echo configure:14550: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14550 rm -rf conftest*
51a9faba 14551 wx_cv_type_getsockname3=int
afc31813 14552else
703e0a69
VZ
14553 echo "configure: failed program was:" >&5
14554 cat conftest.$ac_ext >&5
14555 rm -rf conftest*
14556 wx_cv_type_getsockname3=unknown
14557
afc31813 14558fi
703e0a69
VZ
14559rm -f conftest*
14560
afc31813 14561fi
703e0a69
VZ
14562rm -f conftest*
14563
afc31813 14564fi
703e0a69 14565rm -f conftest*
51a9faba
VZ
14566
14567 ac_ext=c
703e0a69 14568# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
afc31813 14569ac_cpp='$CPP $CPPFLAGS'
703e0a69
VZ
14570ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14571ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14572cross_compiling=$ac_cv_prog_cc_cross
afc31813 14573
703e0a69 14574
51a9faba 14575fi
703e0a69
VZ
14576
14577echo "$ac_t""$wx_cv_type_getsockname3" 1>&6
51a9faba
VZ
14578
14579 if test "$wx_cv_type_getsockname3" = "unknown"; then
14580 wxUSE_SOCKETS=no
703e0a69 14581 echo "configure: warning: Couldn't find socklen_t synonym for this system" 1>&2
51a9faba 14582 else
703e0a69 14583 cat >> confdefs.h <<EOF
51a9faba
VZ
14584#define SOCKLEN_T $wx_cv_type_getsockname3
14585EOF
14586
14587 fi
14588fi
afc31813 14589
c521c494
RL
14590fi
14591
51a9faba 14592if test "$wxUSE_SOCKETS" = "yes" ; then
703e0a69 14593 cat >> confdefs.h <<\EOF
afc31813
VZ
14594#define wxUSE_SOCKETS 1
14595EOF
14596
70f7a477 14597 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
afc31813
VZ
14598 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS protocol"
14599fi
14600
703e0a69 14601
dc3d889d
VZ
14602if test "$wxUSE_GUI" = "yes"; then
14603
b089607b
VZ
14604if test "$TOOLKIT" != "MSW"; then
14605
ceded8b9 14606if test "$wxUSE_JOYSTICK" = "yes"; then
703e0a69 14607 for ac_hdr in linux/joystick.h
10f2d63a 14608do
703e0a69
VZ
14609ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
14610echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
14611echo "configure:14612: checking for $ac_hdr" >&5
14612if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
14613 echo $ac_n "(cached) $ac_c" 1>&6
14614else
14615 cat > conftest.$ac_ext <<EOF
14616#line 14617 "configure"
10f2d63a 14617#include "confdefs.h"
703e0a69
VZ
14618#include <$ac_hdr>
14619EOF
14620ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14621{ (eval echo configure:14622: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14622ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14623if test -z "$ac_err"; then
14624 rm -rf conftest*
14625 eval "ac_cv_header_$ac_safe=yes"
10f2d63a 14626else
703e0a69
VZ
14627 echo "$ac_err" >&5
14628 echo "configure: failed program was:" >&5
10f2d63a 14629 cat conftest.$ac_ext >&5
703e0a69
VZ
14630 rm -rf conftest*
14631 eval "ac_cv_header_$ac_safe=no"
10f2d63a 14632fi
703e0a69 14633rm -f conftest*
10f2d63a 14634fi
703e0a69
VZ
14635if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14636 echo "$ac_t""yes" 1>&6
14637 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
14638 cat >> confdefs.h <<EOF
14639#define $ac_tr_hdr 1
10f2d63a 14640EOF
703e0a69
VZ
14641
14642else
14643 echo "$ac_t""no" 1>&6
10f2d63a
VZ
14644fi
14645done
14646
b089607b 14647 if test "$ac_cv_header_linux_joystick_h" != "yes"; then
ceded8b9 14648 wxUSE_JOYSTICK=no
703e0a69 14649 echo "configure: warning: Joystick not supported by this system" 1>&2
b089607b
VZ
14650 fi
14651fi
14652
14653fi
14654
ceded8b9 14655if test "$wxUSE_JOYSTICK" = "yes"; then
703e0a69 14656 cat >> confdefs.h <<\EOF
10f2d63a
VZ
14657#define wxUSE_JOYSTICK 1
14658EOF
14659
14660 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
10f2d63a
VZ
14661fi
14662
dc3d889d
VZ
14663fi
14664
703e0a69 14665
b089607b
VZ
14666if test "$TOOLKIT" != "MSW"; then
14667
10f2d63a
VZ
14668HAVE_DL_FUNCS=0
14669HAVE_SHL_FUNCS=0
14670if test "$wxUSE_DYNLIB_CLASS" = "yes"; then
b4085ce6
GD
14671 if test "$USE_MAC" = 1; then
14672 HAVE_DL_FUNCS=1
14673 else
703e0a69 14674 for ac_func in dlopen
10f2d63a 14675do
703e0a69
VZ
14676echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14677echo "configure:14678: checking for $ac_func" >&5
14678if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14679 echo $ac_n "(cached) $ac_c" 1>&6
14680else
14681 cat > conftest.$ac_ext <<EOF
14682#line 14683 "configure"
10f2d63a
VZ
14683#include "confdefs.h"
14684/* System header to define __stub macros and hopefully few prototypes,
703e0a69 14685 which can conflict with char $ac_func(); below. */
10f2d63a
VZ
14686#include <assert.h>
14687/* Override any gcc2 internal prototype to avoid an error. */
14688/* We use char because int might match the return type of a gcc2
703e0a69
VZ
14689 builtin and then its argument prototype would still apply. */
14690char $ac_func();
14691
14692int main() {
10f2d63a
VZ
14693
14694/* The GNU C library defines this for functions which it implements
14695 to always fail with ENOSYS. Some functions are actually named
14696 something starting with __ and the normal name is an alias. */
14697#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14698choke me
14699#else
703e0a69 14700$ac_func();
10f2d63a
VZ
14701#endif
14702
703e0a69
VZ
14703; return 0; }
14704EOF
14705if { (eval echo configure:14706: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14706 rm -rf conftest*
14707 eval "ac_cv_func_$ac_func=yes"
14708else
14709 echo "configure: failed program was:" >&5
14710 cat conftest.$ac_ext >&5
14711 rm -rf conftest*
14712 eval "ac_cv_func_$ac_func=no"
14713fi
14714rm -f conftest*
14715fi
14716
14717if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14718 echo "$ac_t""yes" 1>&6
14719 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14720 cat >> confdefs.h <<EOF
14721#define $ac_tr_func 1
14722EOF
14723
14724 cat >> confdefs.h <<\EOF
10f2d63a
VZ
14725#define HAVE_DLOPEN 1
14726EOF
14727
14728 HAVE_DL_FUNCS=1
703e0a69 14729
10f2d63a 14730else
703e0a69
VZ
14731 echo "$ac_t""no" 1>&6
14732echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
14733echo "configure:14734: checking for dlopen in -ldl" >&5
14734ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
14735if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14736 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 14737else
703e0a69 14738 ac_save_LIBS="$LIBS"
10f2d63a 14739LIBS="-ldl $LIBS"
703e0a69
VZ
14740cat > conftest.$ac_ext <<EOF
14741#line 14742 "configure"
10f2d63a
VZ
14742#include "confdefs.h"
14743/* Override any gcc2 internal prototype to avoid an error. */
14744/* We use char because int might match the return type of a gcc2
703e0a69
VZ
14745 builtin and then its argument prototype would still apply. */
14746char dlopen();
14747
14748int main() {
14749dlopen()
14750; return 0; }
14751EOF
14752if { (eval echo configure:14753: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14753 rm -rf conftest*
14754 eval "ac_cv_lib_$ac_lib_var=yes"
14755else
14756 echo "configure: failed program was:" >&5
14757 cat conftest.$ac_ext >&5
14758 rm -rf conftest*
14759 eval "ac_cv_lib_$ac_lib_var=no"
14760fi
14761rm -f conftest*
14762LIBS="$ac_save_LIBS"
14763
14764fi
14765if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14766 echo "$ac_t""yes" 1>&6
14767
14768 cat >> confdefs.h <<\EOF
10f2d63a
VZ
14769#define HAVE_DLOPEN 1
14770EOF
14771
14772 HAVE_DL_FUNCS=1
14773 LIBS="$LIBS -ldl"
703e0a69 14774
10f2d63a 14775else
703e0a69 14776 echo "$ac_t""no" 1>&6
10f2d63a 14777
703e0a69 14778 for ac_func in shl_load
10f2d63a 14779do
703e0a69
VZ
14780echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14781echo "configure:14782: checking for $ac_func" >&5
14782if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14783 echo $ac_n "(cached) $ac_c" 1>&6
14784else
14785 cat > conftest.$ac_ext <<EOF
14786#line 14787 "configure"
10f2d63a
VZ
14787#include "confdefs.h"
14788/* System header to define __stub macros and hopefully few prototypes,
703e0a69 14789 which can conflict with char $ac_func(); below. */
10f2d63a
VZ
14790#include <assert.h>
14791/* Override any gcc2 internal prototype to avoid an error. */
14792/* We use char because int might match the return type of a gcc2
703e0a69
VZ
14793 builtin and then its argument prototype would still apply. */
14794char $ac_func();
14795
14796int main() {
10f2d63a
VZ
14797
14798/* The GNU C library defines this for functions which it implements
14799 to always fail with ENOSYS. Some functions are actually named
14800 something starting with __ and the normal name is an alias. */
14801#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14802choke me
14803#else
703e0a69 14804$ac_func();
10f2d63a
VZ
14805#endif
14806
703e0a69
VZ
14807; return 0; }
14808EOF
14809if { (eval echo configure:14810: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14810 rm -rf conftest*
14811 eval "ac_cv_func_$ac_func=yes"
14812else
14813 echo "configure: failed program was:" >&5
14814 cat conftest.$ac_ext >&5
14815 rm -rf conftest*
14816 eval "ac_cv_func_$ac_func=no"
14817fi
14818rm -f conftest*
14819fi
14820
14821if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14822 echo "$ac_t""yes" 1>&6
14823 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14824 cat >> confdefs.h <<EOF
14825#define $ac_tr_func 1
14826EOF
14827
14828 cat >> confdefs.h <<\EOF
10f2d63a
VZ
14829#define HAVE_SHL_LOAD 1
14830EOF
14831
14832 HAVE_SHL_FUNCS=1
703e0a69 14833
10f2d63a 14834else
703e0a69
VZ
14835 echo "$ac_t""no" 1>&6
14836echo $ac_n "checking for dld in -lshl_load""... $ac_c" 1>&6
14837echo "configure:14838: checking for dld in -lshl_load" >&5
14838ac_lib_var=`echo shl_load'_'dld | sed 'y%./+-%__p_%'`
14839if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14840 echo $ac_n "(cached) $ac_c" 1>&6
f6bcfd97 14841else
703e0a69 14842 ac_save_LIBS="$LIBS"
f6bcfd97 14843LIBS="-lshl_load $LIBS"
703e0a69
VZ
14844cat > conftest.$ac_ext <<EOF
14845#line 14846 "configure"
f6bcfd97
BP
14846#include "confdefs.h"
14847/* Override any gcc2 internal prototype to avoid an error. */
14848/* We use char because int might match the return type of a gcc2
703e0a69
VZ
14849 builtin and then its argument prototype would still apply. */
14850char dld();
14851
14852int main() {
14853dld()
14854; return 0; }
14855EOF
14856if { (eval echo configure:14857: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14857 rm -rf conftest*
14858 eval "ac_cv_lib_$ac_lib_var=yes"
14859else
14860 echo "configure: failed program was:" >&5
14861 cat conftest.$ac_ext >&5
14862 rm -rf conftest*
14863 eval "ac_cv_lib_$ac_lib_var=no"
14864fi
14865rm -f conftest*
14866LIBS="$ac_save_LIBS"
f6bcfd97 14867
703e0a69
VZ
14868fi
14869if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14870 echo "$ac_t""yes" 1>&6
14871
f6bcfd97
BP
14872 HAVE_SHL_FUNCS=1
14873 LIBS="$LIBS -ldld"
703e0a69
VZ
14874
14875else
14876 echo "$ac_t""no" 1>&6
f6bcfd97
BP
14877fi
14878
703e0a69 14879
10f2d63a
VZ
14880fi
14881done
14882
703e0a69 14883
10f2d63a
VZ
14884fi
14885
703e0a69 14886
10f2d63a
VZ
14887fi
14888done
14889
6232543b 14890
703e0a69
VZ
14891 if test "$HAVE_DL_FUNCS" = 1; then
14892 for ac_func in dlerror
f6bcfd97 14893do
703e0a69
VZ
14894echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14895echo "configure:14896: checking for $ac_func" >&5
14896if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14897 echo $ac_n "(cached) $ac_c" 1>&6
14898else
14899 cat > conftest.$ac_ext <<EOF
14900#line 14901 "configure"
f6bcfd97
BP
14901#include "confdefs.h"
14902/* System header to define __stub macros and hopefully few prototypes,
703e0a69 14903 which can conflict with char $ac_func(); below. */
f6bcfd97
BP
14904#include <assert.h>
14905/* Override any gcc2 internal prototype to avoid an error. */
14906/* We use char because int might match the return type of a gcc2
703e0a69
VZ
14907 builtin and then its argument prototype would still apply. */
14908char $ac_func();
14909
14910int main() {
f6bcfd97
BP
14911
14912/* The GNU C library defines this for functions which it implements
14913 to always fail with ENOSYS. Some functions are actually named
14914 something starting with __ and the normal name is an alias. */
14915#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14916choke me
14917#else
703e0a69 14918$ac_func();
f6bcfd97
BP
14919#endif
14920
703e0a69
VZ
14921; return 0; }
14922EOF
14923if { (eval echo configure:14924: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14924 rm -rf conftest*
14925 eval "ac_cv_func_$ac_func=yes"
14926else
14927 echo "configure: failed program was:" >&5
14928 cat conftest.$ac_ext >&5
14929 rm -rf conftest*
14930 eval "ac_cv_func_$ac_func=no"
14931fi
14932rm -f conftest*
14933fi
14934
14935if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14936 echo "$ac_t""yes" 1>&6
14937 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14938 cat >> confdefs.h <<EOF
14939#define $ac_tr_func 1
14940EOF
14941 cat >> confdefs.h <<\EOF
f6bcfd97
BP
14942#define HAVE_DLERROR 1
14943EOF
14944
14945else
703e0a69
VZ
14946 echo "$ac_t""no" 1>&6
14947echo $ac_n "checking for dlerror in -ldl""... $ac_c" 1>&6
14948echo "configure:14949: checking for dlerror in -ldl" >&5
14949ac_lib_var=`echo dl'_'dlerror | sed 'y%./+-%__p_%'`
14950if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14951 echo $ac_n "(cached) $ac_c" 1>&6
f6bcfd97 14952else
703e0a69 14953 ac_save_LIBS="$LIBS"
f6bcfd97 14954LIBS="-ldl $LIBS"
703e0a69
VZ
14955cat > conftest.$ac_ext <<EOF
14956#line 14957 "configure"
f6bcfd97
BP
14957#include "confdefs.h"
14958/* Override any gcc2 internal prototype to avoid an error. */
14959/* We use char because int might match the return type of a gcc2
703e0a69
VZ
14960 builtin and then its argument prototype would still apply. */
14961char dlerror();
14962
14963int main() {
14964dlerror()
14965; return 0; }
14966EOF
14967if { (eval echo configure:14968: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14968 rm -rf conftest*
14969 eval "ac_cv_lib_$ac_lib_var=yes"
14970else
14971 echo "configure: failed program was:" >&5
14972 cat conftest.$ac_ext >&5
14973 rm -rf conftest*
14974 eval "ac_cv_lib_$ac_lib_var=no"
14975fi
14976rm -f conftest*
14977LIBS="$ac_save_LIBS"
14978
14979fi
14980if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14981 echo "$ac_t""yes" 1>&6
14982 cat >> confdefs.h <<\EOF
f6bcfd97
BP
14983#define HAVE_DLERROR 1
14984EOF
14985
703e0a69
VZ
14986else
14987 echo "$ac_t""no" 1>&6
f6bcfd97
BP
14988fi
14989
14990fi
14991done
14992
14993 fi
b4085ce6 14994 fi
f6bcfd97 14995
10f2d63a
VZ
14996 if test "$HAVE_DL_FUNCS" = 0; then
14997 if test "$HAVE_SHL_FUNCS" = 0; then
14998 if test "$USE_UNIX" = 1; then
703e0a69 14999 echo "configure: warning: Missing dynamic loading support, several features will be disabled" 1>&2
10f2d63a
VZ
15000 wxUSE_DYNLIB_CLASS=no
15001 else
703e0a69 15002 echo "configure: warning: Assuming wxLibrary class works on this platform" 1>&2
10f2d63a
VZ
15003 fi
15004 fi
15005 fi
15006fi
15007
b089607b
VZ
15008fi
15009
10f2d63a 15010if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
703e0a69 15011 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15012#define wxUSE_DYNLIB_CLASS 1
15013EOF
15014
b12915c1
VZ
15015else
15016 wxUSE_ODBC=no
15017 wxUSE_SERIAL=no
10f2d63a
VZ
15018fi
15019
703e0a69 15020
10f2d63a 15021if test "$wxUSE_UNICODE" = "yes" ; then
703e0a69 15022 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15023#define wxUSE_UNICODE 1
15024EOF
15025
15026fi
15027
15028if test "$wxUSE_WCSRTOMBS" = "yes" ; then
703e0a69 15029 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15030#define wxUSE_WCSRTOMBS 1
15031EOF
15032
15033fi
15034
15035if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
703e0a69 15036 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15037#define wxUSE_EXPERIMENTAL_PRINTF 1
15038EOF
15039
15040fi
15041
703e0a69 15042
b12915c1 15043if test "$wxUSE_SERIAL" = "yes" ; then
703e0a69 15044 cat >> confdefs.h <<\EOF
b12915c1
VZ
15045#define wxUSE_SERIAL 1
15046EOF
15047
15048fi
15049
703e0a69 15050
10f2d63a
VZ
15051IODBC_C_SRC=""
15052if test "$wxUSE_ODBC" = "yes" ; then
703e0a69 15053 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15054#define wxUSE_ODBC 1
15055EOF
15056
15057 WXODBCFLAG="-D_IODBC_"
15058 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
10f2d63a
VZ
15059fi
15060
703e0a69 15061
10f2d63a 15062if test "$wxUSE_POSTSCRIPT" = "yes" ; then
703e0a69 15063 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15064#define wxUSE_POSTSCRIPT 1
15065EOF
15066
15067fi
15068
703e0a69 15069cat >> confdefs.h <<\EOF
10f2d63a
VZ
15070#define wxUSE_AFM_FOR_POSTSCRIPT 1
15071EOF
15072
703e0a69
VZ
15073
15074cat >> confdefs.h <<\EOF
10f2d63a
VZ
15075#define wxUSE_NORMALIZED_PS_FONTS 1
15076EOF
15077
703e0a69
VZ
15078
15079
10f2d63a 15080if test "$wxUSE_CONSTRAINTS" = "yes"; then
703e0a69 15081 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15082#define wxUSE_CONSTRAINTS 1
15083EOF
15084
15085 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
15086fi
15087
15088if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
703e0a69 15089 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15090#define wxUSE_MDI_ARCHITECTURE 1
15091EOF
15092
15093 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
15094fi
15095
15096if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
703e0a69 15097 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15098#define wxUSE_DOC_VIEW_ARCHITECTURE 1
15099EOF
15100
15101 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
15102 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
15103 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
15104 fi
15105fi
15106
15107if test "$wxUSE_HELP" = "yes"; then
703e0a69 15108 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15109#define wxUSE_HELP 1
15110EOF
15111
15112 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
15113fi
15114
15115if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
15116 if test "$wxUSE_CONSTRAINTS" != "yes"; then
703e0a69 15117 echo "configure: warning: Printing support cannot be used without constraints so it won't be compiled without it" 1>&2
10f2d63a 15118 else
703e0a69 15119 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15120#define wxUSE_PRINTING_ARCHITECTURE 1
15121EOF
15122
15123 fi
15124 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
15125fi
15126
15127if test "$wxUSE_PROLOGIO" = "yes" ; then
703e0a69 15128 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15129#define wxUSE_PROLOGIO 1
15130EOF
15131
15132fi
15133
15134if test "$wxUSE_RESOURCES" = "yes" ; then
15135 if test "$wxUSE_PROLOGIO" = "yes" ; then
703e0a69 15136 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15137#define wxUSE_RESOURCES 1
15138EOF
15139
15140 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS resource"
15141 else
703e0a69 15142 echo "configure: warning: wxWindows ressource system requires PrologIO and can't be compiled without it." 1>&2
10f2d63a
VZ
15143 fi
15144fi
15145
15146if test "$wxUSE_X_RESOURCES" = "yes"; then
703e0a69 15147 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15148#define wxUSE_X_RESOURCES 1
15149EOF
15150
15151fi
15152
703e0a69 15153
10f2d63a 15154if test "$wxUSE_IPC" = "yes"; then
eb4efbdc 15155 if test "$wxUSE_SOCKETS" != "yes"; then
703e0a69 15156 echo "configure: warning: wxWindows IPC classes require sockets" 1>&2
eb4efbdc
VZ
15157 fi
15158
703e0a69 15159 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15160#define wxUSE_IPC 1
15161EOF
15162
15163fi
15164
15165if test "$wxUSE_CLIPBOARD" = "yes"; then
703e0a69 15166 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15167#define wxUSE_CLIPBOARD 1
15168EOF
15169
15170fi
15171
15172if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
15173 if test "$wxUSE_GTK" = 1; then
15174 if test "$WXGTK12" != 1; then
703e0a69 15175 echo "configure: warning: Drag and drop is only supported under GTK+ 1.2" 1>&2
10f2d63a
VZ
15176 wxUSE_DRAG_AND_DROP=no
15177 fi
15178 fi
15179
15180 if test "$wxUSE_MOTIF" = 1; then
703e0a69 15181 echo "configure: warning: Drag and drop is not yet supported under Motif" 1>&2
10f2d63a
VZ
15182 wxUSE_DRAG_AND_DROP=no
15183 fi
15184
2c6025bc 15185 if test "$wxUSE_MAC" = 1; then
703e0a69 15186 echo "configure: warning: Drag and drop is not yet supported under Mac OS X" 1>&2
2c6025bc
GD
15187 wxUSE_DRAG_AND_DROP=no
15188 fi
15189
10f2d63a 15190 if test "$USE_WIN32" = 1; then
703e0a69
VZ
15191
15192 for ac_hdr in ole2.h
10f2d63a 15193do
703e0a69
VZ
15194ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
15195echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
15196echo "configure:15197: checking for $ac_hdr" >&5
15197if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
15198 echo $ac_n "(cached) $ac_c" 1>&6
15199else
15200 cat > conftest.$ac_ext <<EOF
15201#line 15202 "configure"
10f2d63a 15202#include "confdefs.h"
703e0a69
VZ
15203#include <$ac_hdr>
15204EOF
15205ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15206{ (eval echo configure:15207: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15207ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15208if test -z "$ac_err"; then
15209 rm -rf conftest*
15210 eval "ac_cv_header_$ac_safe=yes"
6232543b 15211else
703e0a69
VZ
15212 echo "$ac_err" >&5
15213 echo "configure: failed program was:" >&5
10f2d63a 15214 cat conftest.$ac_ext >&5
703e0a69
VZ
15215 rm -rf conftest*
15216 eval "ac_cv_header_$ac_safe=no"
10f2d63a 15217fi
703e0a69 15218rm -f conftest*
10f2d63a 15219fi
703e0a69
VZ
15220if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15221 echo "$ac_t""yes" 1>&6
15222 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
15223 cat >> confdefs.h <<EOF
15224#define $ac_tr_hdr 1
10f2d63a 15225EOF
703e0a69
VZ
15226
15227else
15228 echo "$ac_t""no" 1>&6
10f2d63a
VZ
15229fi
15230done
15231
703e0a69 15232
c521c494
RL
15233 if test "$ac_cv_header_ole2_h" = "yes" ; then
15234 if test "$GCC" = yes ; then
b64f0a5f
RL
15235 ALL_OBJECTS="$ALL_OBJECTS \$(OLEOBJS)"
15236 ALL_DEPFILES="$ALL_DEPFILES \$(OLEDEPS)"
c521c494 15237 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks"
b64f0a5f
RL
15238 LIBS="$LIBS -lole32 -luuid"
15239
15240 if test "$wxUSE_METAFILE" = "yes"; then
703e0a69 15241 cat >> confdefs.h <<\EOF
b64f0a5f
RL
15242#define wxUSE_METAFILE 1
15243EOF
15244
703e0a69 15245 cat >> confdefs.h <<\EOF
b64f0a5f
RL
15246#define wxUSE_ENH_METAFILE 1
15247EOF
15248
15249 fi
c521c494
RL
15250 fi
15251 else
703e0a69 15252 echo "configure: warning: Drag and drop disabled because OLE headers not found" 1>&2
10f2d63a
VZ
15253 wxUSE_DRAG_AND_DROP=no
15254 fi
15255 fi
15256
15257 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
703e0a69 15258 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15259#define wxUSE_DRAG_AND_DROP 1
15260EOF
15261
15262 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
15263 fi
15264
15265fi
15266
15267if test "$wxUSE_SPLINES" = "yes" ; then
703e0a69 15268 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15269#define wxUSE_SPLINES 1
15270EOF
15271
15272fi
15273
703e0a69 15274
10f2d63a 15275if test "$wxUSE_ACCEL" = "yes"; then
703e0a69 15276 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15277#define wxUSE_ACCEL 1
15278EOF
15279
15280fi
15281
15282if test "$wxUSE_CARET" = "yes"; then
703e0a69 15283 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15284#define wxUSE_CARET 1
15285EOF
15286
15287 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
15288fi
15289
15290if test "$wxUSE_COMBOBOX" = "yes"; then
703e0a69 15291 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15292#define wxUSE_COMBOBOX 1
15293EOF
15294
15295fi
15296
15297if test "$wxUSE_CHOICE" = "yes"; then
703e0a69 15298 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15299#define wxUSE_CHOICE 1
15300EOF
15301
15302fi
15303
15304if test "$wxUSE_BMPBUTTON" = "yes"; then
703e0a69 15305 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15306#define wxUSE_BMPBUTTON 1
15307EOF
15308
15309fi
15310
15311if test "$wxUSE_CHECKBOX" = "yes"; then
703e0a69 15312 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15313#define wxUSE_CHECKBOX 1
15314EOF
15315
15316fi
15317
15318if test "$wxUSE_CHECKLST" = "yes"; then
703e0a69 15319 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15320#define wxUSE_CHECKLISTBOX 1
15321EOF
15322
15323 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
15324fi
15325
15326if test "$wxUSE_GAUGE" = "yes"; then
703e0a69 15327 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15328#define wxUSE_GAUGE 1
15329EOF
15330
15331fi
15332
d6a55c4b
VZ
15333if test "$wxUSE_NEW_GRID" = "yes"; then
15334 wxUSE_GRID="yes"
703e0a69 15335 cat >> confdefs.h <<\EOF
d6a55c4b 15336#define wxUSE_NEW_GRID 1
10f2d63a
VZ
15337EOF
15338
d6a55c4b 15339 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS newgrid"
10f2d63a
VZ
15340fi
15341
d6a55c4b 15342if test "$wxUSE_GRID" = "yes"; then
703e0a69 15343 cat >> confdefs.h <<\EOF
d6a55c4b 15344#define wxUSE_GRID 1
10f2d63a
VZ
15345EOF
15346
d6a55c4b 15347 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
10f2d63a
VZ
15348fi
15349
15350if test "$wxUSE_IMAGLIST" = "yes"; then
703e0a69 15351 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15352#define wxUSE_IMAGLIST 1
15353EOF
15354
15355fi
15356
15357if test "$wxUSE_LISTBOX" = "yes"; then
703e0a69 15358 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15359#define wxUSE_LISTBOX 1
15360EOF
15361
15362fi
15363
15364if test "$wxUSE_LISTCTRL" = "yes"; then
15365 if test "$wxUSE_IMAGLIST" = "yes"; then
703e0a69 15366 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15367#define wxUSE_LISTCTRL 1
15368EOF
15369
15370 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
15371 else
703e0a69 15372 echo "configure: warning: wxListCtrl requires wxImageList and won't be compiled without it" 1>&2
10f2d63a
VZ
15373 fi
15374fi
15375
15376if test "$wxUSE_NOTEBOOK" = "yes"; then
703e0a69 15377 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15378#define wxUSE_NOTEBOOK 1
15379EOF
15380
15381 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
15382fi
15383
15384if test "$wxUSE_RADIOBOX" = "yes"; then
703e0a69 15385 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15386#define wxUSE_RADIOBOX 1
15387EOF
15388
15389fi
15390
15391if test "$wxUSE_RADIOBTN" = "yes"; then
703e0a69 15392 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15393#define wxUSE_RADIOBTN 1
15394EOF
15395
15396fi
15397
15398if test "$wxUSE_SASH" = "yes"; then
703e0a69 15399 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15400#define wxUSE_SASH 1
15401EOF
15402
15403 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
15404fi
15405
15406if test "$wxUSE_SCROLLBAR" = "yes"; then
703e0a69 15407 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15408#define wxUSE_SCROLLBAR 1
15409EOF
15410
741a9306 15411 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
10f2d63a
VZ
15412fi
15413
15414if test "$wxUSE_SLIDER" = "yes"; then
703e0a69 15415 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15416#define wxUSE_SLIDER 1
15417EOF
15418
15419fi
15420
15421if test "$wxUSE_SPINBTN" = "yes"; then
703e0a69 15422 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15423#define wxUSE_SPINBTN 1
15424EOF
15425
15426fi
15427
56cfaa52 15428if test "$wxUSE_SPINCTRL" = "yes"; then
703e0a69 15429 cat >> confdefs.h <<\EOF
56cfaa52
RR
15430#define wxUSE_SPINCTRL 1
15431EOF
15432
15433fi
15434
10f2d63a 15435if test "$wxUSE_SPLITTER" = "yes"; then
703e0a69 15436 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15437#define wxUSE_SPLITTER 1
15438EOF
15439
15440 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
15441fi
15442
15443if test "$wxUSE_STATBMP" = "yes"; then
703e0a69 15444 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15445#define wxUSE_STATBMP 1
15446EOF
15447
15448fi
15449
15450if test "$wxUSE_STATBOX" = "yes"; then
703e0a69 15451 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15452#define wxUSE_STATBOX 1
15453EOF
15454
15455fi
15456
15457if test "$wxUSE_STATLINE" = "yes"; then
15458 if test "$wxUSE_WINE" = 1 ; then
703e0a69 15459 echo "configure: warning: wxStaticLine is not supported under WINE" 1>&2
10f2d63a 15460 else
703e0a69 15461 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15462#define wxUSE_STATLINE 1
15463EOF
15464
15465 fi
15466fi
15467
15468if test "$wxUSE_STATUSBAR" = "yes"; then
703e0a69 15469 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15470#define wxUSE_STATUSBAR 1
15471EOF
15472
703e0a69 15473
2286341c 15474 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
10f2d63a
VZ
15475fi
15476
15477if test "$wxUSE_TABDIALOG" = "yes"; then
703e0a69 15478 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15479#define wxUSE_TAB_DIALOG 1
15480EOF
15481
15482 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab"
15483fi
15484
1db8dc4a 15485if test "$wxUSE_TOGGLEBTN" = "yes"; then
703e0a69 15486 cat >> confdefs.h <<\EOF
1db8dc4a
VZ
15487#define wxUSE_TOGGLEBTN 1
15488EOF
15489
15490fi
15491
360d6699 15492if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
703e0a69 15493 cat >> confdefs.h <<\EOF
360d6699
VZ
15494#define wxUSE_TOOLBAR_SIMPLE 1
15495EOF
15496
15497 wxUSE_TOOLBAR="yes"
15498fi
15499
10f2d63a 15500if test "$wxUSE_TOOLBAR" = "yes"; then
703e0a69 15501 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15502#define wxUSE_TOOLBAR 1
15503EOF
15504
703e0a69 15505
360d6699
VZ
15506 if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
15507 wxUSE_TOOLBAR_NATIVE="yes"
15508 fi
15509
10f2d63a
VZ
15510 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
15511fi
15512
360d6699 15513if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
703e0a69 15514 cat >> confdefs.h <<\EOF
360d6699
VZ
15515#define wxUSE_TOOLBAR_NATIVE 1
15516EOF
15517
15518fi
15519
10f2d63a
VZ
15520if test "$wxUSE_TOOLTIPS" = "yes"; then
15521 if test "$wxUSE_MOTIF" = 1; then
703e0a69 15522 echo "configure: warning: wxTooltip not supported yet under Motif" 1>&2
10f2d63a
VZ
15523 else
15524 if test "$wxUSE_WINE" = 1; then
703e0a69 15525 echo "configure: warning: wxTooltip not supported under WINE" 1>&2
10f2d63a 15526 else
703e0a69 15527 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15528#define wxUSE_TOOLTIPS 1
15529EOF
15530
15531 fi
15532 fi
15533fi
15534
15535if test "$wxUSE_TREECTRL" = "yes"; then
15536 if test "$wxUSE_IMAGLIST" = "yes"; then
703e0a69 15537 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15538#define wxUSE_TREECTRL 1
15539EOF
15540
15541 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
15542 else
703e0a69 15543 echo "configure: warning: wxTreeCtrl requires wxImageList and won't be compiled without it" 1>&2
10f2d63a
VZ
15544 fi
15545fi
15546
703e0a69
VZ
15547
15548
10f2d63a
VZ
15549if test "$wxUSE_DIRDLG" = "yes"; then
15550 if test "$wxUSE_CONSTRAINTS" != "yes"; then
703e0a69 15551 echo "configure: warning: wxDirDialog requires constraints so it won't be compiled without them" 1>&2
10f2d63a
VZ
15552 else
15553 if test "$wxUSE_TREECTRL" != "yes"; then
703e0a69 15554 echo "configure: warning: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" 1>&2
10f2d63a 15555 else
703e0a69 15556 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15557#define wxUSE_DIRDLG 1
15558EOF
15559
15560 fi
15561 fi
15562fi
15563
15564if test "$wxUSE_TEXTDLG" = "yes"; then
703e0a69 15565 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15566#define wxUSE_TEXTDLG 1
15567EOF
15568
15569fi
15570
15571if test "$wxUSE_STARTUP_TIPS" = "yes"; then
15572 if test "$wxUSE_CONSTRAINTS" != "yes"; then
703e0a69 15573 echo "configure: warning: Startup tips requires constraints and won't be compiled without them" 1>&2
10f2d63a 15574 else
703e0a69 15575 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15576#define wxUSE_STARTUP_TIPS 1
15577EOF
15578
15579 fi
15580fi
15581
15582if test "$wxUSE_PROGRESSDLG" = "yes"; then
15583 if test "$wxUSE_CONSTRAINTS" != "yes"; then
703e0a69 15584 echo "configure: warning: wxProgressDialog requires constraints so it won't be compiled without them" 1>&2
10f2d63a 15585 else
703e0a69 15586 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15587#define wxUSE_PROGRESSDLG 1
15588EOF
15589
15590 fi
15591fi
15592
15593if test "$wxUSE_MINIFRAME" = "yes"; then
703e0a69 15594 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15595#define wxUSE_MINIFRAME 1
15596EOF
15597
15598 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
15599fi
15600
15601if test "$wxUSE_HTML" = "yes"; then
703e0a69 15602 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15603#define wxUSE_HTML 1
15604EOF
15605
15606 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html"
15607 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS html"
15608fi
15609
15610if test "$wxUSE_VALIDATORS" = "yes"; then
703e0a69 15611 cat >> confdefs.h <<\EOF
6232543b
VS
15612#define wxUSE_VALIDATORS 1
15613EOF
32832908 15614
703e0a69
VZ
15615 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
15616fi
15617
15618if test "$wxUSE_IMAGE" = "yes" ; then
15619 cat >> confdefs.h <<\EOF
15620#define wxUSE_IMAGE 1
15621EOF
15622
15623fi
15624
15625if test "$wxUSE_GIF" = "yes" ; then
15626 cat >> confdefs.h <<\EOF
15627#define wxUSE_GIF 1
15628EOF
15629
15630fi
15631
15632if test "$wxUSE_PCX" = "yes" ; then
15633 cat >> confdefs.h <<\EOF
15634#define wxUSE_PCX 1
15635EOF
15636
15637fi
15638
15639if test "$wxUSE_PNM" = "yes" ; then
15640 cat >> confdefs.h <<\EOF
15641#define wxUSE_PNM 1
15642EOF
15643
15644fi
15645
15646if test "$wxUSE_XPM" = "yes" ; then
15647 cat >> confdefs.h <<\EOF
15648#define wxUSE_XPM 1
15649EOF
15650
15651fi
15652
15653
15654if test "$cross_compiling" = "yes"; then
15655 OSINFO="\"$host\""
15656else
15657 OSINFO=`uname -s -r -m`
15658 OSINFO="\"$OSINFO\""
15659fi
15660
15661cat >> confdefs.h <<EOF
15662#define WXWIN_OS_DESCRIPTION $OSINFO
15663EOF
15664
15665
15666
15667GUILIBS="$GUI_TK_LIBRARY $TOOLKIT_LINK"
15668OPENGL_LIBS="$OPENGL_LINK"
15669
15670EXTRA_LIBS="$LIBS $POSIX4_LINK $INET_LINK $WCHAR_LINK $THREADS_LINK $DMALLOC_LINK $DL_LINK $ZLIB_LINK -lm"
15671if test "$USE_MAC" = 1 ; then
15672 EXTRA_LIBS="$EXTRA_LIBS -framework Carbon -framework System"
15673fi
15674if test "$wxUSE_GUI" = "yes"; then
15675 EXTRA_LIBS="$GUILIBS $PNG_LINK $JPEG_LINK $TIFF_LINK $FREETYPE_LINK $EXTRA_LIBS"
15676fi
15677
15678LD_LIBS="\${top_builddir}/lib/${WX_LIBRARY_NAME_STATIC} $EXTRA_LIBS"
15679
15680INCLUDES="-I. -I\${top_builddir}/include -I\${top_srcdir}/include $ZLIB_INCLUDE $PNG_INCLUDE $JPEG_INCLUDE $TIFF_INCLUDE $FREETYPE_INCLUDE $TOOLKIT_INCLUDE"
15681
15682if test "$wxUSE_GTK" = 1; then
15683 WXCONFIG_INCLUDE=""
15684else
15685 WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE"
15686fi
15687
15688if test "$GXX" = yes ; then
15689 CXXWARNINGS="-Wall"
15690 fi
15691EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE $INCLUDES"
15692
15693CFLAGS=`echo $CFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \\+/ /g'`
15694CXXFLAGS=`echo $CXXFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \+/ /g'`
15695
15696LDFLAGS="$LDFLAGS $PROFILE"
15697
15698if test "$wxUSE_GUI" = "yes"; then
15699
15700 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS controls dialogs dragimag \
15701 drawing dynamic event font fractal image menu \
15702 minimal richedit"
15703
15704 CPPFLAGS="$CPPFLAGS \$(EXTRADEFS) \$(APPEXTRADEFS)"
15705else
15706 SAMPLES_SUBDIRS=""
15707fi
15708
15709SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
15710
15711
15712
15713
15714
15715
15716
15717
15718
15719
15720
15721
15722
15723
15724
15725
15726
15727
15728
15729
15730
15731
15732
15733
15734
15735
15736
15737
15738
15739
15740
15741
15742
15743
15744
15745
15746
15747
15748
15749
15750
15751
15752
15753
15754
15755
15756
15757
15758
15759
15760
15761
15762
15763
15764
15765
15766
15767
15768
15769
15770
15771
15772
15773
15774
15775
15776
32832908
VZ
15777
15778
15779
15780
15781
15782
15783
2224580a 15784
dad6c0ea 15785
f6bcfd97
BP
15786
15787
15788
2f51a9ec
GD
15789
15790
15791
15792
15793
15794
f6bcfd97 15795
dad6c0ea 15796
caa2c79b 15797
3711412e 15798
0f3f1cbc 15799
10f2d63a
VZ
15800
15801
703e0a69
VZ
15802echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
15803echo "configure:15804: checking whether ${MAKE-make} sets \${MAKE}" >&5
15804set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
15805if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
15806 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 15807else
703e0a69 15808 cat > conftestmake <<\EOF
10f2d63a
VZ
15809all:
15810 @echo 'ac_maketemp="${MAKE}"'
15811EOF
15812# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
703e0a69 15813eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
10f2d63a
VZ
15814if test -n "$ac_maketemp"; then
15815 eval ac_cv_prog_make_${ac_make}_set=yes
15816else
15817 eval ac_cv_prog_make_${ac_make}_set=no
15818fi
703e0a69 15819rm -f conftestmake
10f2d63a
VZ
15820fi
15821if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
703e0a69 15822 echo "$ac_t""yes" 1>&6
10f2d63a
VZ
15823 SET_MAKE=
15824else
703e0a69 15825 echo "$ac_t""no" 1>&6
10f2d63a
VZ
15826 SET_MAKE="MAKE=${MAKE-make}"
15827fi
15828
703e0a69 15829
00cf1208
RR
15830if test -d include; then
15831 if test -d include/wx; then
15832 if test -d include/wx/${TOOLKIT_DIR}; then
15833 if test -f include/wx/${TOOLKIT_DIR}/setup.h; then
665bbe97 15834 mv -f include/wx/${TOOLKIT_DIR}/setup.h setup.h
00cf1208
RR
15835 fi
15836 fi
15837 fi
15838fi
665bbe97 15839
703e0a69 15840
10f2d63a 15841
2224580a 15842if test "$wxUSE_GUI" = "yes"; then
ec90f5e5 15843 wx_cv_path_samplesubdirs=$SAMPLES_SUBDIRS
e8482f24
GL
15844 wx_cv_path_ifs=$PATH_IFS
15845 wx_cv_program_ext=$PROGRAM_EXT
15846 wx_cv_target_library=$WX_TARGET_LIBRARY
3711412e 15847 wx_cv_target_libtype=$WX_TARGET_LIBRARY_TYPE
703e0a69 15848 subdirs="demos samples utils contrib"
2224580a
VZ
15849
15850fi
10f2d63a 15851
703e0a69
VZ
15852trap '' 1 2 15
15853cat > confcache <<\EOF
10f2d63a
VZ
15854# This file is a shell script that caches the results of configure
15855# tests run on this system so they can be shared between configure
703e0a69
VZ
15856# scripts and configure runs. It is not useful on other systems.
15857# If it contains results you don't want to keep, you may remove or edit it.
10f2d63a 15858#
703e0a69
VZ
15859# By default, configure uses ./config.cache as the cache file,
15860# creating it if it does not exist already. You can give configure
15861# the --cache-file=FILE option to use a different cache file; that is
15862# what configure does when it calls configure scripts in
15863# subdirectories, so they share the cache.
15864# Giving --cache-file=/dev/null disables caching, for debugging configure.
15865# config.status only pays attention to the cache file if you give it the
15866# --recheck option to rerun configure.
10f2d63a 15867#
703e0a69 15868EOF
10f2d63a
VZ
15869# The following way of writing the cache mishandles newlines in values,
15870# but we know of no workaround that is simple, portable, and efficient.
15871# So, don't put newlines in cache variables' values.
15872# Ultrix sh set writes to stderr and can't be redirected directly,
15873# and sets the high bit in the cache file unless we assign to the vars.
703e0a69
VZ
15874(set) 2>&1 |
15875 case `(ac_space=' '; set | grep ac_space) 2>&1` in
15876 *ac_space=\ *)
15877 # `set' does not quote correctly, so add quotes (double-quote substitution
15878 # turns \\\\ into \\, and sed turns \\ into \).
15879 sed -n \
15880 -e "s/'/'\\\\''/g" \
15881 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
15882 ;;
15883 *)
15884 # `set' quotes correctly as required by POSIX, so do not add quotes.
15885 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
15886 ;;
15887 esac >> confcache
15888if cmp -s $cache_file confcache; then
15889 :
15890else
10f2d63a 15891 if test -w $cache_file; then
703e0a69
VZ
15892 echo "updating cache $cache_file"
15893 cat confcache > $cache_file
10f2d63a
VZ
15894 else
15895 echo "not updating unwritable cache $cache_file"
15896 fi
15897fi
15898rm -f confcache
15899
703e0a69
VZ
15900trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
15901
10f2d63a
VZ
15902test "x$prefix" = xNONE && prefix=$ac_default_prefix
15903# Let make expand exec_prefix.
15904test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15905
703e0a69
VZ
15906# Any assignment to VPATH causes Sun make to only execute
15907# the first set of double-colon rules, so remove it if not needed.
15908# If there is a colon in the path, we need to keep it.
10f2d63a 15909if test "x$srcdir" = x.; then
703e0a69 15910 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
10f2d63a
VZ
15911fi
15912
703e0a69
VZ
15913trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
15914
10f2d63a
VZ
15915DEFS=-DHAVE_CONFIG_H
15916
703e0a69 15917# Without the "./", some shells look in PATH for config.status.
10f2d63a 15918: ${CONFIG_STATUS=./config.status}
703e0a69
VZ
15919
15920echo creating $CONFIG_STATUS
15921rm -f $CONFIG_STATUS
15922cat > $CONFIG_STATUS <<EOF
15923#! /bin/sh
10f2d63a
VZ
15924# Generated automatically by configure.
15925# Run this file to recreate the current configuration.
703e0a69
VZ
15926# This directory was configured as follows,
15927# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15928#
15929# $0 $ac_configure_args
15930#
10f2d63a 15931# Compiler output produced by configure, useful for debugging
703e0a69 15932# configure, is in ./config.log if it exists.
6232543b 15933
703e0a69
VZ
15934ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
15935for ac_option
10f2d63a 15936do
703e0a69 15937 case "\$ac_option" in
10f2d63a 15938 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
703e0a69
VZ
15939 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
15940 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
15941 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
15942 echo "$CONFIG_STATUS generated by autoconf version 2.13"
15943 exit 0 ;;
15944 -help | --help | --hel | --he | --h)
15945 echo "\$ac_cs_usage"; exit 0 ;;
15946 *) echo "\$ac_cs_usage"; exit 1 ;;
10f2d63a
VZ
15947 esac
15948done
15949
703e0a69
VZ
15950ac_given_srcdir=$srcdir
15951ac_given_INSTALL="$INSTALL"
10f2d63a 15952
703e0a69
VZ
15953trap 'rm -fr `echo "
15954 wx-config
15955 src/make.env
15956 src/makeprog.env
15957 src/makelib.env
15958 Makefile
15959 setup.h:setup.h.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
6232543b 15960EOF
703e0a69 15961cat >> $CONFIG_STATUS <<EOF
6232543b 15962
703e0a69
VZ
15963# Protect against being on the right side of a sed subst in config.status.
15964sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
15965 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
15966$ac_vpsub
15967$extrasub
15968s%@SHELL@%$SHELL%g
15969s%@CFLAGS@%$CFLAGS%g
15970s%@CPPFLAGS@%$CPPFLAGS%g
15971s%@CXXFLAGS@%$CXXFLAGS%g
15972s%@FFLAGS@%$FFLAGS%g
15973s%@DEFS@%$DEFS%g
15974s%@LDFLAGS@%$LDFLAGS%g
15975s%@LIBS@%$LIBS%g
15976s%@exec_prefix@%$exec_prefix%g
15977s%@prefix@%$prefix%g
15978s%@program_transform_name@%$program_transform_name%g
15979s%@bindir@%$bindir%g
15980s%@sbindir@%$sbindir%g
15981s%@libexecdir@%$libexecdir%g
15982s%@datadir@%$datadir%g
15983s%@sysconfdir@%$sysconfdir%g
15984s%@sharedstatedir@%$sharedstatedir%g
15985s%@localstatedir@%$localstatedir%g
15986s%@libdir@%$libdir%g
15987s%@includedir@%$includedir%g
15988s%@oldincludedir@%$oldincludedir%g
15989s%@infodir@%$infodir%g
15990s%@mandir@%$mandir%g
15991s%@host@%$host%g
15992s%@host_alias@%$host_alias%g
15993s%@host_cpu@%$host_cpu%g
15994s%@host_vendor@%$host_vendor%g
15995s%@host_os@%$host_os%g
15996s%@target@%$target%g
15997s%@target_alias@%$target_alias%g
15998s%@target_cpu@%$target_cpu%g
15999s%@target_vendor@%$target_vendor%g
16000s%@target_os@%$target_os%g
16001s%@build@%$build%g
16002s%@build_alias@%$build_alias%g
16003s%@build_cpu@%$build_cpu%g
16004s%@build_vendor@%$build_vendor%g
16005s%@build_os@%$build_os%g
16006s%@CC@%$CC%g
16007s%@CPP@%$CPP%g
16008s%@CXX@%$CXX%g
16009s%@CXXCPP@%$CXXCPP%g
16010s%@RANLIB@%$RANLIB%g
16011s%@AR@%$AR%g
16012s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
16013s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
16014s%@INSTALL_DATA@%$INSTALL_DATA%g
16015s%@STRIP@%$STRIP%g
16016s%@YACC@%$YACC%g
16017s%@LEX@%$LEX%g
16018s%@LEXLIB@%$LEXLIB%g
16019s%@LN_S@%$LN_S%g
16020s%@GTK_CONFIG_2_0@%$GTK_CONFIG_2_0%g
16021s%@GTK_CONFIG@%$GTK_CONFIG%g
16022s%@GTK_CFLAGS@%$GTK_CFLAGS%g
16023s%@GTK_LIBS@%$GTK_LIBS%g
16024s%@X_CFLAGS@%$X_CFLAGS%g
16025s%@X_PRE_LIBS@%$X_PRE_LIBS%g
16026s%@X_LIBS@%$X_LIBS%g
16027s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
16028s%@REZ@%$REZ%g
16029s%@DEREZ@%$DEREZ%g
16030s%@LEX_STEM@%$LEX_STEM%g
16031s%@PATH_IFS@%$PATH_IFS%g
16032s%@WX_MAJOR_VERSION_NUMBER@%$WX_MAJOR_VERSION_NUMBER%g
16033s%@WX_MINOR_VERSION_NUMBER@%$WX_MINOR_VERSION_NUMBER%g
16034s%@WX_RELEASE_NUMBER@%$WX_RELEASE_NUMBER%g
16035s%@WX_LIBRARY_NAME@%$WX_LIBRARY_NAME%g
16036s%@WX_LIBRARY_NAME_STATIC@%$WX_LIBRARY_NAME_STATIC%g
16037s%@WX_LIBRARY_NAME_SHARED@%$WX_LIBRARY_NAME_SHARED%g
16038s%@WX_LIBRARY@%$WX_LIBRARY%g
16039s%@WX_TARGET_LIBRARY@%$WX_TARGET_LIBRARY%g
16040s%@WX_LIBRARY_LINK1@%$WX_LIBRARY_LINK1%g
16041s%@WX_LIBRARY_LINK2@%$WX_LIBRARY_LINK2%g
16042s%@WX_LIBRARY_LINK3@%$WX_LIBRARY_LINK3%g
16043s%@PROGRAM_EXT@%$PROGRAM_EXT%g
16044s%@WX_LIBRARY_NAME_GL@%$WX_LIBRARY_NAME_GL%g
16045s%@WX_LIBRARY_NAME_STATIC_GL@%$WX_LIBRARY_NAME_STATIC_GL%g
16046s%@WX_LIBRARY_NAME_SHARED_GL@%$WX_LIBRARY_NAME_SHARED_GL%g
16047s%@WX_LIBRARY_GL@%$WX_LIBRARY_GL%g
16048s%@WX_TARGET_LIBRARY_GL@%$WX_TARGET_LIBRARY_GL%g
16049s%@WX_LIBRARY_LINK1_GL@%$WX_LIBRARY_LINK1_GL%g
16050s%@WX_LIBRARY_LINK2_GL@%$WX_LIBRARY_LINK2_GL%g
16051s%@WX_LIBRARY_LINK3_GL@%$WX_LIBRARY_LINK3_GL%g
16052s%@WX_ALL@%$WX_ALL%g
16053s%@WX_ALL_INSTALLED@%$WX_ALL_INSTALLED%g
16054s%@SHARED_LD@%$SHARED_LD%g
16055s%@PIC_FLAG@%$PIC_FLAG%g
16056s%@DEP_INFO_FLAGS@%$DEP_INFO_FLAGS%g
16057s%@CODE_GEN_FLAGS@%$CODE_GEN_FLAGS%g
16058s%@CODE_GEN_FLAGS_CXX@%$CODE_GEN_FLAGS_CXX%g
16059s%@BURNT_LIBRARY_NAME@%$BURNT_LIBRARY_NAME%g
16060s%@BURNT_LIBRARY_NAME_GL@%$BURNT_LIBRARY_NAME_GL%g
16061s%@WX_TARGET_LIBRARY_SONAME@%$WX_TARGET_LIBRARY_SONAME%g
16062s%@WX_TARGET_LIBRARY_TYPE@%$WX_TARGET_LIBRARY_TYPE%g
16063s%@WXDEBUG_DEFINE@%$WXDEBUG_DEFINE%g
16064s%@USE_GUI@%$USE_GUI%g
16065s%@AFMINSTALL@%$AFMINSTALL%g
16066s%@TOOLKIT@%$TOOLKIT%g
16067s%@TOOLKIT_DEF@%$TOOLKIT_DEF%g
16068s%@TOOLKIT_DIR@%$TOOLKIT_DIR%g
16069s%@TOOLKIT_NAME@%$TOOLKIT_NAME%g
16070s%@TOOLKIT_INCLUDE@%$TOOLKIT_INCLUDE%g
16071s%@WXCONFIG_INCLUDE@%$WXCONFIG_INCLUDE%g
16072s%@ALL_OBJECTS@%$ALL_OBJECTS%g
16073s%@ALL_DEPFILES@%$ALL_DEPFILES%g
16074s%@GUIDIST@%$GUIDIST%g
16075s%@PORT_FILES@%$PORT_FILES%g
16076s%@DISTDIR@%$DISTDIR%g
16077s%@RPM_SPEC@%$RPM_SPEC%g
16078s%@RPM_FILES@%$RPM_FILES%g
16079s%@SRC_SUBDIRS@%$SRC_SUBDIRS%g
16080s%@INCLUDE_SUBDIRS@%$INCLUDE_SUBDIRS%g
16081s%@UTILS_SUBDIRS@%$UTILS_SUBDIRS%g
16082s%@DOCS_SUBDIRS@%$DOCS_SUBDIRS%g
16083s%@SAMPLES_SUBDIRS@%$SAMPLES_SUBDIRS%g
16084s%@USER_SUBDIRS@%$USER_SUBDIRS%g
16085s%@EXTRA_LIBS@%$EXTRA_LIBS%g
16086s%@OPENGL_LIBS@%$OPENGL_LIBS%g
16087s%@EXTRADEFS@%$EXTRADEFS%g
16088s%@LD_LIBS@%$LD_LIBS%g
16089s%@RCINPUTSWITCH@%$RCINPUTSWITCH%g
16090s%@RCOUTPUTSWITCH@%$RCOUTPUTSWITCH%g
16091s%@RESPROGRAM@%$RESPROGRAM%g
16092s%@RESCOMP@%$RESCOMP%g
16093s%@RESFLAGS@%$RESFLAGS%g
16094s%@REZFLAGS@%$REZFLAGS%g
16095s%@DEREZFLAGS@%$DEREZFLAGS%g
16096s%@LIBWXMACRES@%$LIBWXMACRES%g
16097s%@LIBWXMACRESCOMP@%$LIBWXMACRESCOMP%g
16098s%@DLLTOOL@%$DLLTOOL%g
16099s%@AS@%$AS%g
16100s%@NM@%$NM%g
16101s%@LD@%$LD%g
16102s%@MAKEINFO@%$MAKEINFO%g
16103s%@SET_MAKE@%$SET_MAKE%g
16104s%@subdirs@%$subdirs%g
6232543b 16105
6232543b 16106CEOF
6232543b
VS
16107EOF
16108
703e0a69
VZ
16109cat >> $CONFIG_STATUS <<\EOF
16110
16111# Split the substitutions into bite-sized pieces for seds with
16112# small command number limits, like on Digital OSF/1 and HP-UX.
16113ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
16114ac_file=1 # Number of current file.
16115ac_beg=1 # First line for current file.
16116ac_end=$ac_max_sed_cmds # Line after last line for current file.
16117ac_more_lines=:
16118ac_sed_cmds=""
16119while $ac_more_lines; do
16120 if test $ac_beg -gt 1; then
16121 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
16122 else
16123 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
16124 fi
16125 if test ! -s conftest.s$ac_file; then
16126 ac_more_lines=false
16127 rm -f conftest.s$ac_file
16128 else
16129 if test -z "$ac_sed_cmds"; then
16130 ac_sed_cmds="sed -f conftest.s$ac_file"
10f2d63a 16131 else
703e0a69 16132 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
10f2d63a 16133 fi
703e0a69
VZ
16134 ac_file=`expr $ac_file + 1`
16135 ac_beg=$ac_end
16136 ac_end=`expr $ac_end + $ac_max_sed_cmds`
10f2d63a 16137 fi
703e0a69
VZ
16138done
16139if test -z "$ac_sed_cmds"; then
16140 ac_sed_cmds=cat
16141fi
16142EOF
10f2d63a 16143
703e0a69
VZ
16144cat >> $CONFIG_STATUS <<EOF
16145
16146CONFIG_FILES=\${CONFIG_FILES-"wx-config
16147 src/make.env
16148 src/makeprog.env
16149 src/makelib.env
16150 Makefile
16151 "}
10f2d63a 16152EOF
703e0a69
VZ
16153cat >> $CONFIG_STATUS <<\EOF
16154for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
10f2d63a 16155 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
703e0a69
VZ
16156 case "$ac_file" in
16157 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
16158 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
16159 *) ac_file_in="${ac_file}.in" ;;
10f2d63a
VZ
16160 esac
16161
703e0a69 16162 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
6232543b 16163
703e0a69
VZ
16164 # Remove last slash and all that follows it. Not all systems have dirname.
16165 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
16166 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
16167 # The file is in a subdirectory.
16168 test ! -d "$ac_dir" && mkdir "$ac_dir"
16169 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
10f2d63a 16170 # A "../" for each directory in $ac_dir_suffix.
703e0a69 16171 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
10f2d63a
VZ
16172 else
16173 ac_dir_suffix= ac_dots=
16174 fi
16175
703e0a69
VZ
16176 case "$ac_given_srcdir" in
16177 .) srcdir=.
16178 if test -z "$ac_dots"; then top_srcdir=.
16179 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
16180 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
10f2d63a 16181 *) # Relative path.
703e0a69
VZ
16182 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
16183 top_srcdir="$ac_dots$ac_given_srcdir" ;;
10f2d63a
VZ
16184 esac
16185
703e0a69
VZ
16186 case "$ac_given_INSTALL" in
16187 [/$]*) INSTALL="$ac_given_INSTALL" ;;
16188 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
10f2d63a
VZ
16189 esac
16190
703e0a69
VZ
16191 echo creating "$ac_file"
16192 rm -f "$ac_file"
16193 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
16194 case "$ac_file" in
16195 *Makefile*) ac_comsub="1i\\
16196# $configure_input" ;;
16197 *) ac_comsub= ;;
16198 esac
10f2d63a 16199
703e0a69
VZ
16200 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
16201 sed -e "$ac_comsub
16202s%@configure_input@%$configure_input%g
16203s%@srcdir@%$srcdir%g
16204s%@top_srcdir@%$top_srcdir%g
16205s%@INSTALL@%$INSTALL%g
16206" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
16207fi; done
16208rm -f conftest.s*
10f2d63a
VZ
16209
16210# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
16211# NAME is the cpp macro being defined and VALUE is the value it is being given.
16212#
16213# ac_d sets the value in "#define NAME VALUE" lines.
703e0a69
VZ
16214ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
16215ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
16216ac_dC='\3'
16217ac_dD='%g'
16218# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
16219ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
16220ac_uB='\([ ]\)%\1#\2define\3'
10f2d63a 16221ac_uC=' '
703e0a69
VZ
16222ac_uD='\4%g'
16223# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
16224ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
16225ac_eB='$%\1#\2define\3'
16226ac_eC=' '
16227ac_eD='%g'
10f2d63a 16228
703e0a69
VZ
16229if test "${CONFIG_HEADERS+set}" != set; then
16230EOF
16231cat >> $CONFIG_STATUS <<EOF
16232 CONFIG_HEADERS="setup.h:setup.h.in"
16233EOF
16234cat >> $CONFIG_STATUS <<\EOF
16235fi
16236for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
10f2d63a 16237 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
703e0a69
VZ
16238 case "$ac_file" in
16239 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
16240 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
16241 *) ac_file_in="${ac_file}.in" ;;
10f2d63a
VZ
16242 esac
16243
703e0a69
VZ
16244 echo creating $ac_file
16245
16246 rm -f conftest.frag conftest.in conftest.out
16247 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
16248 cat $ac_file_inputs > conftest.in
16249
16250EOF
16251
16252# Transform confdefs.h into a sed script conftest.vals that substitutes
16253# the proper values into config.h.in to produce config.h. And first:
16254# Protect against being on the right side of a sed subst in config.status.
16255# Protect against being in an unquoted here document in config.status.
16256rm -f conftest.vals
16257cat > conftest.hdr <<\EOF
16258s/[\\&%]/\\&/g
16259s%[\\$`]%\\&%g
16260s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
16261s%ac_d%ac_u%gp
16262s%ac_u%ac_e%gp
16263EOF
16264sed -n -f conftest.hdr confdefs.h > conftest.vals
16265rm -f conftest.hdr
10f2d63a
VZ
16266
16267# This sed command replaces #undef with comments. This is necessary, for
16268# example, in the case of _POSIX_SOURCE, which is predefined and required
16269# on some systems where configure will not decide to define it.
703e0a69
VZ
16270cat >> conftest.vals <<\EOF
16271s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
10f2d63a
VZ
16272EOF
16273
703e0a69
VZ
16274# Break up conftest.vals because some shells have a limit on
16275# the size of here documents, and old seds have small limits too.
10f2d63a
VZ
16276
16277rm -f conftest.tail
703e0a69 16278while :
10f2d63a 16279do
703e0a69
VZ
16280 ac_lines=`grep -c . conftest.vals`
16281 # grep -c gives empty output for an empty file on some AIX systems.
16282 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
16283 # Write a limited-size here document to conftest.frag.
16284 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
16285 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
10f2d63a 16286 echo 'CEOF
703e0a69
VZ
16287 sed -f conftest.frag conftest.in > conftest.out
16288 rm -f conftest.in
16289 mv conftest.out conftest.in
16290' >> $CONFIG_STATUS
16291 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
16292 rm -f conftest.vals
16293 mv conftest.tail conftest.vals
10f2d63a 16294done
703e0a69
VZ
16295rm -f conftest.vals
16296
16297cat >> $CONFIG_STATUS <<\EOF
16298 rm -f conftest.frag conftest.h
16299 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
16300 cat conftest.in >> conftest.h
16301 rm -f conftest.in
16302 if cmp -s $ac_file conftest.h 2>/dev/null; then
16303 echo "$ac_file is unchanged"
16304 rm -f conftest.h
10f2d63a 16305 else
703e0a69
VZ
16306 # Remove last slash and all that follows it. Not all systems have dirname.
16307 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
10f2d63a 16308 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
703e0a69
VZ
16309 # The file is in a subdirectory.
16310 test ! -d "$ac_dir" && mkdir "$ac_dir"
10f2d63a 16311 fi
703e0a69
VZ
16312 rm -f $ac_file
16313 mv conftest.h $ac_file
10f2d63a 16314 fi
703e0a69
VZ
16315fi; done
16316
10f2d63a 16317EOF
703e0a69 16318cat >> $CONFIG_STATUS <<EOF
10f2d63a 16319
703e0a69
VZ
16320 TOOLKIT_DIR="${TOOLKIT_DIR}"
16321 TOOLKIT_NAME="${TOOLKIT_NAME}"
16322 LN_S="${LN_S}"
16323
16324
16325EOF
16326cat >> $CONFIG_STATUS <<\EOF
10f2d63a
VZ
16327
16328 chmod +x wx-config
f6bcfd97
BP
16329 mv wx-config wx${TOOLKIT_NAME}-config
16330 ${LN_S} wx${TOOLKIT_NAME}-config wx-config
665bbe97 16331
703e0a69 16332
00cf1208
RR
16333 if test ! -d lib; then
16334 mkdir lib
16335 fi
16336 if test ! -d lib/wx; then
16337 mkdir lib/wx
16338 fi
16339 if test ! -d lib/wx/include; then
16340 mkdir lib/wx/include
16341 fi
16342 if test ! -d lib/wx/include/wx; then
16343 mkdir lib/wx/include/wx
16344 fi
f6bcfd97
BP
16345 if test ! -d lib/wx/include/wx/${TOOLKIT_NAME}; then
16346 mkdir lib/wx/include/wx/${TOOLKIT_NAME}
00cf1208
RR
16347 fi
16348 if test -f setup.h; then
066b00aa 16349 cp -fp setup.h lib/wx/include/wx/${TOOLKIT_NAME}/setup.h
00cf1208 16350 fi
07eb77a6 16351
703e0a69 16352
10f2d63a
VZ
16353 if test ! -d include; then
16354 mkdir include
16355 fi
16356 if test ! -d include/wx; then
16357 mkdir include/wx
16358 fi
16359 if test ! -d include/wx/${TOOLKIT_DIR}; then
16360 mkdir include/wx/${TOOLKIT_DIR}
16361 fi
afc31813 16362 if test -f setup.h; then
066b00aa 16363 cp -fp setup.h include/wx/${TOOLKIT_DIR}/setup.h
afc31813 16364 fi
665bbe97 16365
703e0a69
VZ
16366
16367exit 0
10f2d63a
VZ
16368EOF
16369chmod +x $CONFIG_STATUS
703e0a69
VZ
16370rm -fr confdefs* $ac_clean_files
16371test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
10f2d63a 16372
2224580a
VZ
16373if test "$no_recursion" != yes; then
16374
16375 # Remove --cache-file and --srcdir arguments so they do not pile up.
16376 ac_sub_configure_args=
16377 ac_prev=
16378 for ac_arg in $ac_configure_args; do
16379 if test -n "$ac_prev"; then
16380 ac_prev=
16381 continue
16382 fi
703e0a69 16383 case "$ac_arg" in
2224580a
VZ
16384 -cache-file | --cache-file | --cache-fil | --cache-fi \
16385 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
16386 ac_prev=cache_file ;;
16387 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
703e0a69 16388 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
2224580a
VZ
16389 ;;
16390 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
16391 ac_prev=srcdir ;;
16392 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
16393 ;;
16394 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
16395 esac
16396 done
16397
703e0a69 16398 for ac_config_dir in demos samples utils contrib; do
2224580a
VZ
16399
16400 # Do not complain, so a configure script can configure whichever
16401 # parts of a large source tree are present.
703e0a69
VZ
16402 if test ! -d $srcdir/$ac_config_dir; then
16403 continue
16404 fi
16405
16406 echo configuring in $ac_config_dir
2224580a 16407
703e0a69 16408 case "$srcdir" in
2224580a
VZ
16409 .) ;;
16410 *)
703e0a69
VZ
16411 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
16412 else
16413 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
16414 fi
16415 ;;
2224580a
VZ
16416 esac
16417
16418 ac_popdir=`pwd`
703e0a69 16419 cd $ac_config_dir
2224580a 16420
703e0a69
VZ
16421 # A "../" for each directory in /$ac_config_dir.
16422 ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
2224580a 16423
703e0a69 16424 case "$srcdir" in
2224580a
VZ
16425 .) # No --srcdir option. We are building in place.
16426 ac_sub_srcdir=$srcdir ;;
703e0a69
VZ
16427 /*) # Absolute path.
16428 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
2224580a 16429 *) # Relative path.
703e0a69 16430 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
2224580a
VZ
16431 esac
16432
16433 # Check for guested configure; otherwise get Cygnus style configure.
703e0a69
VZ
16434 if test -f $ac_sub_srcdir/configure; then
16435 ac_sub_configure=$ac_sub_srcdir/configure
2224580a
VZ
16436 elif test -f $ac_sub_srcdir/configure.in; then
16437 ac_sub_configure=$ac_configure
16438 else
703e0a69 16439 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
2224580a
VZ
16440 ac_sub_configure=
16441 fi
16442
16443 # The recursion is here.
16444 if test -n "$ac_sub_configure"; then
703e0a69 16445
2224580a 16446 # Make the cache file name correct relative to the subdirectory.
703e0a69
VZ
16447 case "$cache_file" in
16448 /*) ac_sub_cache_file=$cache_file ;;
2224580a 16449 *) # Relative path.
703e0a69 16450 ac_sub_cache_file="$ac_dots$cache_file" ;;
2224580a 16451 esac
703e0a69
VZ
16452 case "$ac_given_INSTALL" in
16453 [/$]*) INSTALL="$ac_given_INSTALL" ;;
16454 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
16455 esac
2224580a 16456
703e0a69 16457 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
2224580a 16458 # The eval makes quoting arguments work.
703e0a69
VZ
16459 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
16460 then :
16461 else
16462 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
16463 fi
2224580a
VZ
16464 fi
16465
16466 cd $ac_popdir
16467 done
16468fi
16469
703e0a69 16470