]> git.saurik.com Git - wxWidgets.git/blame - configure
Replaced true/false with TRUE/FALSE
[wxWidgets.git] / configure
CommitLineData
10f2d63a
VZ
1#! /bin/sh
2
3# From configure.in Id: configure.in
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
10f2d63a 36
422107f9
VZ
37
38
10f2d63a 39
6f72b082
OK
40
41
42# Configure paths for GTK+
43# Owen Taylor 97-11-3
10f2d63a
VZ
44
45
46# Guess values for system-dependent variables and create Makefiles.
e8482f24 47# Generated automatically using autoconf version 2.13
10f2d63a
VZ
48# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
49#
50# This configure script is free software; the Free Software Foundation
51# gives unlimited permission to copy, distribute and modify it.
52
53# Defaults:
54ac_help=
55ac_default_prefix=/usr/local
56# Any additions from configure.in:
57ac_help="$ac_help
58--enable-gui use GUI classes"
59ac_help="$ac_help
60 --with-gtk use GTK+"
61ac_help="$ac_help
62 --with-motif use Motif/Lesstif"
63ac_help="$ac_help
64 --with-wine use WINE"
65ac_help="$ac_help
66 --with-cygwin use Cygwin for MS-Windows"
67ac_help="$ac_help
68 --with-mingw use GCC Minimal MS-Windows"
e07802fc
VZ
69ac_help="$ac_help
70 --with-pm use OS/2 Presentation Manager"
10f2d63a
VZ
71ac_help="$ac_help
72 --with-gtk-prefix=PFX Prefix where GTK is installed"
73ac_help="$ac_help
74 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed"
75ac_help="$ac_help
10f2d63a
VZ
76--with-libpng use libpng (PNG image format)"
77ac_help="$ac_help
78--with-libjpeg use libjpeg (JPEG file format)"
79ac_help="$ac_help
c7a2bf27
RR
80--with-libtiff use libtiff (TIFF file format)"
81ac_help="$ac_help
10f2d63a
VZ
82--with-opengl use OpenGL (or Mesa)"
83ac_help="$ac_help
b12915c1
VZ
84--with-dmalloc use dmalloc library (www.letters.com/dmalloc)"
85ac_help="$ac_help
86--with-zlib use zlib for LZW compression"
87ac_help="$ac_help
10f2d63a
VZ
88--with-odbc use the IODBC and wxODBC classes"
89ac_help="$ac_help
90--enable-shared create shared library code"
91ac_help="$ac_help
00cf1208
RR
92--enable-burnt_name create set name in shared library "
93ac_help="$ac_help
10f2d63a
VZ
94--enable-optimise create optimised code"
95ac_help="$ac_help
96--enable-debug same as debug_flag and debug_info"
97ac_help="$ac_help
98--enable-debug_flag set __WXDEBUG__ flag (recommended for developers!)"
99ac_help="$ac_help
100--enable-debug_info create code with debugging information"
101ac_help="$ac_help
102--enable-debug_gdb create code with extra GDB debugging information"
103ac_help="$ac_help
104--enable-debug_cntxt use wxDebugContext"
105ac_help="$ac_help
106--enable-mem_tracing create code with memory tracing"
107ac_help="$ac_help
108--enable-profile create code with profiling information"
109ac_help="$ac_help
110--enable-no_rtti create code without RTTI information"
111ac_help="$ac_help
112--enable-no_exceptions create code without exceptions information"
113ac_help="$ac_help
114--enable-permissive compile code disregarding strict ANSI"
115ac_help="$ac_help
116--enable-no_deps create code without dependency information"
117ac_help="$ac_help
118--enable-intl use internationalization system"
119ac_help="$ac_help
120--enable-config use wxConfig (and derived) classes"
121ac_help="$ac_help
122--enable-sockets use socket/network classes"
123ac_help="$ac_help
10f2d63a
VZ
124--enable-ipc use interprocess communication (wxSocket etc.)"
125ac_help="$ac_help
eb4efbdc
VZ
126--enable-dialupman use dialup network classes"
127ac_help="$ac_help
10f2d63a
VZ
128--enable-apple_ieee use the Apple IEEE codec"
129ac_help="$ac_help
130--enable-timedate use date/time classes"
131ac_help="$ac_help
132--enable-wave use wxWave class"
133ac_help="$ac_help
134--enable-fraction use wxFraction class"
135ac_help="$ac_help
136--enable-dynlib use wxLibrary class for DLL loading"
137ac_help="$ac_help
138--enable-longlong use wxLongLong class"
139ac_help="$ac_help
140--enable-log use logging system"
141ac_help="$ac_help
142--enable-streams use wxStream etc classes"
143ac_help="$ac_help
144--enable-file use wxFile classes"
145ac_help="$ac_help
146--enable-textfile use wxTextFile classes"
147ac_help="$ac_help
148--enable-unicode compile wxString with Unicode support"
149ac_help="$ac_help
150--enable-wcsrtombs use wcsrtombs instead of buggy (GNU libc1/Linux libc5) wcstombs"
151ac_help="$ac_help
152--enable-wxprintfv use wxWindows implementation of vprintf()"
153ac_help="$ac_help
10f2d63a
VZ
154--enable-std_iostreams use standard C++ stream classes"
155ac_help="$ac_help
24528b0c
VS
156--enable-filesystem use virtual file systems classes"
157ac_help="$ac_help
10f2d63a
VZ
158--enable-fs_inet use virtual HTTP/FTP filesystems"
159ac_help="$ac_help
160--enable-fs_zip use virtual ZIP filesystems"
161ac_help="$ac_help
162--enable-zipstream use wxZipInputStream"
163ac_help="$ac_help
eb4efbdc
VZ
164--enable-catch_segvs catch signals and pass them to wxApp::OnFatalException"
165ac_help="$ac_help
10f2d63a
VZ
166--enable-threads use threads"
167ac_help="$ac_help
168--enable-serial use class serialization"
169ac_help="$ac_help
170--enable-docview use document view architecture"
171ac_help="$ac_help
172--enable-help use help (using external browser at present)"
173ac_help="$ac_help
174--enable-constraints use layout-constraints system"
175ac_help="$ac_help
176--enable-printarch use printing architecture"
177ac_help="$ac_help
178--enable-mdi use multiple document interface architecture"
179ac_help="$ac_help
180--enable-postscript use wxPostscriptDC device context (default for gtk+)"
181ac_help="$ac_help
182--enable-prologio use Prolog IO library"
183ac_help="$ac_help
184--enable-resources use wxWindows resources"
185ac_help="$ac_help
186--enable-xresources use X resources for save (default for gtk+)"
187ac_help="$ac_help
188--enable-clipboard use wxClipboard classes"
189ac_help="$ac_help
190--enable-dnd use Drag'n'Drop classes"
191ac_help="$ac_help
192--enable-wxtree make wxTree library"
193ac_help="$ac_help
194--enable-controls use all usual controls"
195ac_help="$ac_help
196--enable-accel use accelerators"
197ac_help="$ac_help
198--enable-caret use wxCaret class"
199ac_help="$ac_help
200--enable-bmpbutton use wxBitmapButton class"
201ac_help="$ac_help
202--enable-checkbox use wxCheckBox class"
203ac_help="$ac_help
204--enable-checklst use wxCheckListBox (listbox with checkboxes) class"
205ac_help="$ac_help
206--enable-choice use wxChoice class"
207ac_help="$ac_help
208--enable-combobox use wxComboBox classes"
209ac_help="$ac_help
210--enable-gauge use wxGauge class"
211ac_help="$ac_help
212--enable-grid use wxGrid class"
213ac_help="$ac_help
214--enable-newgrid use new wxGrid class"
215ac_help="$ac_help
216--enable-imaglist use wxImageList class"
217ac_help="$ac_help
218--enable-listbox use wxListBox class"
219ac_help="$ac_help
220--enable-listctrl use wxListCtrl class"
221ac_help="$ac_help
222--enable-notebook use wxNotebook class"
223ac_help="$ac_help
224--enable-radiobox use wxRadioBox class"
225ac_help="$ac_help
226--enable-radiobtn use wxRadioButton class"
227ac_help="$ac_help
228--enable-sash use wxSashWindow class"
229ac_help="$ac_help
230--enable-scrollbar use wxScrollBar class and scrollable windows"
231ac_help="$ac_help
232--enable-slider use wxSlider class"
233ac_help="$ac_help
234--enable-spinbtn use wxSpinButton class"
235ac_help="$ac_help
56cfaa52
RR
236--enable-spinctrl use wxSpinCtrl class"
237ac_help="$ac_help
10f2d63a
VZ
238--enable-splitter use wxSplitterWindow class"
239ac_help="$ac_help
240--enable-statbmp use wxStaticBitmap class"
241ac_help="$ac_help
242--enable-statbox use wxStaticBox class"
243ac_help="$ac_help
244--enable-statline use wxStaticLine class"
245ac_help="$ac_help
246--enable-statusbar use wxStatusBar class"
247ac_help="$ac_help
248--enable-tabdialog use wxTabControl class"
249ac_help="$ac_help
250--enable-toolbar use wxToolBar class"
251ac_help="$ac_help
360d6699
VZ
252--enable-tbarnative use native wxToolBar class"
253ac_help="$ac_help
254--enable-tbarsmpl use wxToolBarSimple class"
255ac_help="$ac_help
10f2d63a
VZ
256--enable-treectrl use wxTreeCtrl class"
257ac_help="$ac_help
258--enable-commondlg use common dialogs (wxDirDialog, wxProgressDialog, wxTextDialog, ...)"
259ac_help="$ac_help
260--enable-dirdlg use wxDirDialog"
261ac_help="$ac_help
262--enable-textdlg use wxTextDialog"
263ac_help="$ac_help
264--enable-tipdlg use startup tips"
265ac_help="$ac_help
266--enable-progressdlg use wxProgressDialog"
267ac_help="$ac_help
268--enable-miniframe use wxMiniFrame class"
269ac_help="$ac_help
270--enable-html use wxHTML sub-library"
271ac_help="$ac_help
272--enable-tooltips use wxToolTip class"
273ac_help="$ac_help
274--enable-splines use spline drawing code"
275ac_help="$ac_help
276--enable-validators use wxValidator and derived classes"
277ac_help="$ac_help
278--enable-busyinfo use wxBusyInfo"
279ac_help="$ac_help
9b33fe02
VZ
280--enable-plot use wxPlot"
281ac_help="$ac_help
f6bcfd97
BP
282--enable-joystick compile in joystick support (Linux only)"
283ac_help="$ac_help
10f2d63a
VZ
284--enable-gif use gif images (GIF file format)"
285ac_help="$ac_help
286--enable-pcx use pcx images (PCX file format)"
287ac_help="$ac_help
288--enable-pnm use pnm images (PNM file format)"
6f72b082
OK
289ac_help="$ac_help
290 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)"
291ac_help="$ac_help
292 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)"
293ac_help="$ac_help
294 --disable-gtktest Do not try to compile and run a test GTK program"
ab9b9eab
VZ
295ac_help="$ac_help
296 --with-x use the X Window System"
10f2d63a
VZ
297
298# Initialize some variables set by options.
299# The variables have the same names as the options, with
300# dashes changed to underlines.
301build=NONE
302cache_file=./config.cache
303exec_prefix=NONE
304host=NONE
305no_create=
306nonopt=NONE
307no_recursion=
308prefix=NONE
309program_prefix=NONE
310program_suffix=NONE
311program_transform_name=s,x,x,
312silent=
313site=
314srcdir=
315target=NONE
316verbose=
317x_includes=NONE
318x_libraries=NONE
319bindir='${exec_prefix}/bin'
320sbindir='${exec_prefix}/sbin'
321libexecdir='${exec_prefix}/libexec'
322datadir='${prefix}/share'
323sysconfdir='${prefix}/etc'
324sharedstatedir='${prefix}/com'
325localstatedir='${prefix}/var'
326libdir='${exec_prefix}/lib'
327includedir='${prefix}/include'
328oldincludedir='/usr/include'
329infodir='${prefix}/info'
330mandir='${prefix}/man'
331
332# Initialize some other variables.
333subdirs=
334MFLAGS= MAKEFLAGS=
335SHELL=${CONFIG_SHELL-/bin/sh}
336# Maximum number of lines to put in a shell here document.
337ac_max_here_lines=12
338
339ac_prev=
340for ac_option
341do
342
343 # If the previous option needs an argument, assign it.
344 if test -n "$ac_prev"; then
345 eval "$ac_prev=\$ac_option"
346 ac_prev=
347 continue
348 fi
349
350 case "$ac_option" in
351 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
352 *) ac_optarg= ;;
353 esac
354
355 # Accept the important Cygnus configure options, so we can diagnose typos.
356
357 case "$ac_option" in
358
359 -bindir | --bindir | --bindi | --bind | --bin | --bi)
360 ac_prev=bindir ;;
361 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
362 bindir="$ac_optarg" ;;
363
364 -build | --build | --buil | --bui | --bu)
365 ac_prev=build ;;
366 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
367 build="$ac_optarg" ;;
368
369 -cache-file | --cache-file | --cache-fil | --cache-fi \
370 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
371 ac_prev=cache_file ;;
372 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
373 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
374 cache_file="$ac_optarg" ;;
375
376 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
377 ac_prev=datadir ;;
378 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
379 | --da=*)
380 datadir="$ac_optarg" ;;
381
382 -disable-* | --disable-*)
383 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
384 # Reject names that are not valid shell variable names.
385 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
386 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
387 fi
388 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
389 eval "enable_${ac_feature}=no" ;;
390
391 -enable-* | --enable-*)
392 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
393 # Reject names that are not valid shell variable names.
394 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
395 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
396 fi
397 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
398 case "$ac_option" in
399 *=*) ;;
400 *) ac_optarg=yes ;;
401 esac
402 eval "enable_${ac_feature}='$ac_optarg'" ;;
403
404 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
405 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
406 | --exec | --exe | --ex)
407 ac_prev=exec_prefix ;;
408 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
409 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
410 | --exec=* | --exe=* | --ex=*)
411 exec_prefix="$ac_optarg" ;;
412
413 -gas | --gas | --ga | --g)
414 # Obsolete; use --with-gas.
415 with_gas=yes ;;
416
417 -help | --help | --hel | --he)
418 # Omit some internal or obsolete options to make the list less imposing.
419 # This message is too long to be a string in the A/UX 3.1 sh.
420 cat << EOF
421Usage: configure [options] [host]
422Options: [defaults in brackets after descriptions]
423Configuration:
424 --cache-file=FILE cache test results in FILE
425 --help print this message
426 --no-create do not create output files
427 --quiet, --silent do not print \`checking...' messages
428 --version print the version of autoconf that created configure
429Directory and file names:
430 --prefix=PREFIX install architecture-independent files in PREFIX
431 [$ac_default_prefix]
432 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
433 [same as prefix]
434 --bindir=DIR user executables in DIR [EPREFIX/bin]
435 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
436 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
437 --datadir=DIR read-only architecture-independent data in DIR
438 [PREFIX/share]
439 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
440 --sharedstatedir=DIR modifiable architecture-independent data in DIR
441 [PREFIX/com]
442 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
443 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
444 --includedir=DIR C header files in DIR [PREFIX/include]
445 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
446 --infodir=DIR info documentation in DIR [PREFIX/info]
447 --mandir=DIR man documentation in DIR [PREFIX/man]
448 --srcdir=DIR find the sources in DIR [configure dir or ..]
449 --program-prefix=PREFIX prepend PREFIX to installed program names
450 --program-suffix=SUFFIX append SUFFIX to installed program names
451 --program-transform-name=PROGRAM
452 run sed PROGRAM on installed program names
453EOF
454 cat << EOF
455Host type:
456 --build=BUILD configure for building on BUILD [BUILD=HOST]
457 --host=HOST configure for HOST [guessed]
458 --target=TARGET configure for TARGET [TARGET=HOST]
459Features and packages:
460 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
461 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
462 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
463 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
464 --x-includes=DIR X include files are in DIR
465 --x-libraries=DIR X library files are in DIR
466EOF
467 if test -n "$ac_help"; then
468 echo "--enable and --with options recognized:$ac_help"
469 fi
470 exit 0 ;;
471
472 -host | --host | --hos | --ho)
473 ac_prev=host ;;
474 -host=* | --host=* | --hos=* | --ho=*)
475 host="$ac_optarg" ;;
476
477 -includedir | --includedir | --includedi | --included | --include \
478 | --includ | --inclu | --incl | --inc)
479 ac_prev=includedir ;;
480 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
481 | --includ=* | --inclu=* | --incl=* | --inc=*)
482 includedir="$ac_optarg" ;;
483
484 -infodir | --infodir | --infodi | --infod | --info | --inf)
485 ac_prev=infodir ;;
486 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
487 infodir="$ac_optarg" ;;
488
489 -libdir | --libdir | --libdi | --libd)
490 ac_prev=libdir ;;
491 -libdir=* | --libdir=* | --libdi=* | --libd=*)
492 libdir="$ac_optarg" ;;
493
494 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
495 | --libexe | --libex | --libe)
496 ac_prev=libexecdir ;;
497 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
498 | --libexe=* | --libex=* | --libe=*)
499 libexecdir="$ac_optarg" ;;
500
501 -localstatedir | --localstatedir | --localstatedi | --localstated \
502 | --localstate | --localstat | --localsta | --localst \
503 | --locals | --local | --loca | --loc | --lo)
504 ac_prev=localstatedir ;;
505 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
506 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
507 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
508 localstatedir="$ac_optarg" ;;
509
510 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
511 ac_prev=mandir ;;
512 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
513 mandir="$ac_optarg" ;;
514
515 -nfp | --nfp | --nf)
516 # Obsolete; use --without-fp.
517 with_fp=no ;;
518
519 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
520 | --no-cr | --no-c)
521 no_create=yes ;;
522
523 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
524 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
525 no_recursion=yes ;;
526
527 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
528 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
529 | --oldin | --oldi | --old | --ol | --o)
530 ac_prev=oldincludedir ;;
531 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
532 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
533 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
534 oldincludedir="$ac_optarg" ;;
535
536 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
537 ac_prev=prefix ;;
538 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
539 prefix="$ac_optarg" ;;
540
541 -program-prefix | --program-prefix | --program-prefi | --program-pref \
542 | --program-pre | --program-pr | --program-p)
543 ac_prev=program_prefix ;;
544 -program-prefix=* | --program-prefix=* | --program-prefi=* \
545 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
546 program_prefix="$ac_optarg" ;;
547
548 -program-suffix | --program-suffix | --program-suffi | --program-suff \
549 | --program-suf | --program-su | --program-s)
550 ac_prev=program_suffix ;;
551 -program-suffix=* | --program-suffix=* | --program-suffi=* \
552 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
553 program_suffix="$ac_optarg" ;;
554
555 -program-transform-name | --program-transform-name \
556 | --program-transform-nam | --program-transform-na \
557 | --program-transform-n | --program-transform- \
558 | --program-transform | --program-transfor \
559 | --program-transfo | --program-transf \
560 | --program-trans | --program-tran \
561 | --progr-tra | --program-tr | --program-t)
562 ac_prev=program_transform_name ;;
563 -program-transform-name=* | --program-transform-name=* \
564 | --program-transform-nam=* | --program-transform-na=* \
565 | --program-transform-n=* | --program-transform-=* \
566 | --program-transform=* | --program-transfor=* \
567 | --program-transfo=* | --program-transf=* \
568 | --program-trans=* | --program-tran=* \
569 | --progr-tra=* | --program-tr=* | --program-t=*)
570 program_transform_name="$ac_optarg" ;;
571
572 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
573 | -silent | --silent | --silen | --sile | --sil)
574 silent=yes ;;
575
576 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
577 ac_prev=sbindir ;;
578 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
579 | --sbi=* | --sb=*)
580 sbindir="$ac_optarg" ;;
581
582 -sharedstatedir | --sharedstatedir | --sharedstatedi \
583 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
584 | --sharedst | --shareds | --shared | --share | --shar \
585 | --sha | --sh)
586 ac_prev=sharedstatedir ;;
587 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
588 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
589 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
590 | --sha=* | --sh=*)
591 sharedstatedir="$ac_optarg" ;;
592
593 -site | --site | --sit)
594 ac_prev=site ;;
595 -site=* | --site=* | --sit=*)
596 site="$ac_optarg" ;;
597
598 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
599 ac_prev=srcdir ;;
600 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
601 srcdir="$ac_optarg" ;;
602
603 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
604 | --syscon | --sysco | --sysc | --sys | --sy)
605 ac_prev=sysconfdir ;;
606 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
607 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
608 sysconfdir="$ac_optarg" ;;
609
610 -target | --target | --targe | --targ | --tar | --ta | --t)
611 ac_prev=target ;;
612 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
613 target="$ac_optarg" ;;
614
615 -v | -verbose | --verbose | --verbos | --verbo | --verb)
616 verbose=yes ;;
617
618 -version | --version | --versio | --versi | --vers)
e8482f24 619 echo "configure generated by autoconf version 2.13"
10f2d63a
VZ
620 exit 0 ;;
621
622 -with-* | --with-*)
623 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
624 # Reject names that are not valid shell variable names.
625 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
626 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
627 fi
628 ac_package=`echo $ac_package| sed 's/-/_/g'`
629 case "$ac_option" in
630 *=*) ;;
631 *) ac_optarg=yes ;;
632 esac
633 eval "with_${ac_package}='$ac_optarg'" ;;
634
635 -without-* | --without-*)
636 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
637 # Reject names that are not valid shell variable names.
638 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
639 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
640 fi
641 ac_package=`echo $ac_package| sed 's/-/_/g'`
642 eval "with_${ac_package}=no" ;;
643
644 --x)
645 # Obsolete; use --with-x.
646 with_x=yes ;;
647
648 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
649 | --x-incl | --x-inc | --x-in | --x-i)
650 ac_prev=x_includes ;;
651 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
652 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
653 x_includes="$ac_optarg" ;;
654
655 -x-libraries | --x-libraries | --x-librarie | --x-librari \
656 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
657 ac_prev=x_libraries ;;
658 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
659 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
660 x_libraries="$ac_optarg" ;;
661
662 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
663 ;;
664
665 *)
666 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
667 echo "configure: warning: $ac_option: invalid host type" 1>&2
668 fi
669 if test "x$nonopt" != xNONE; then
670 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
671 fi
672 nonopt="$ac_option"
673 ;;
674
675 esac
676done
677
678if test -n "$ac_prev"; then
679 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
680fi
681
682trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
683
684# File descriptor usage:
685# 0 standard input
686# 1 file creation
687# 2 errors and warnings
688# 3 some systems may open it to /dev/tty
689# 4 used on the Kubota Titan
690# 6 checking for... messages and results
691# 5 compiler messages saved in config.log
692if test "$silent" = yes; then
693 exec 6>/dev/null
694else
695 exec 6>&1
696fi
697exec 5>./config.log
698
699echo "\
700This file contains any messages produced by compilers while
701running configure, to aid debugging if configure makes a mistake.
702" 1>&5
703
704# Strip out --no-create and --no-recursion so they do not pile up.
705# Also quote any args containing shell metacharacters.
706ac_configure_args=
707for ac_arg
708do
709 case "$ac_arg" in
710 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
711 | --no-cr | --no-c) ;;
712 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
713 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
714 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
715 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
716 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
717 esac
718done
719
720# NLS nuisances.
721# Only set these to C if already set. These must not be set unconditionally
722# because not all systems understand e.g. LANG=C (notably SCO).
723# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
724# Non-C LC_CTYPE values break the ctype check.
725if test "${LANG+set}" = set; then LANG=C; export LANG; fi
726if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
727if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
728if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
729
730# confdefs.h avoids OS command line length limits that DEFS can exceed.
731rm -rf conftest* confdefs.h
732# AIX cpp loses on an empty file, so make sure it contains at least a newline.
733echo > confdefs.h
734
735# A filename unique to this package, relative to the directory that
736# configure is in, which we can look for to find out if srcdir is correct.
737ac_unique_file=wx-config.in
738
739# Find the source files, if location was not specified.
740if test -z "$srcdir"; then
741 ac_srcdir_defaulted=yes
742 # Try the directory containing this script, then its parent.
743 ac_prog=$0
744 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
745 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
746 srcdir=$ac_confdir
747 if test ! -r $srcdir/$ac_unique_file; then
748 srcdir=..
749 fi
750else
751 ac_srcdir_defaulted=no
752fi
753if test ! -r $srcdir/$ac_unique_file; then
754 if test "$ac_srcdir_defaulted" = yes; then
755 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
756 else
757 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
758 fi
759fi
760srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
761
762# Prefer explicitly selected file to automatically selected ones.
763if test -z "$CONFIG_SITE"; then
764 if test "x$prefix" != xNONE; then
765 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
766 else
767 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
768 fi
769fi
770for ac_site_file in $CONFIG_SITE; do
771 if test -r "$ac_site_file"; then
772 echo "loading site script $ac_site_file"
773 . "$ac_site_file"
774 fi
775done
776
777if test -r "$cache_file"; then
778 echo "loading cache $cache_file"
779 . $cache_file
780else
781 echo "creating cache $cache_file"
782 > $cache_file
783fi
784
785ac_ext=c
786# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
787ac_cpp='$CPP $CPPFLAGS'
788ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
789ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
790cross_compiling=$ac_cv_prog_cc_cross
791
792ac_exeext=
793ac_objext=o
794if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
795 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
796 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
797 ac_n= ac_c='
798' ac_t=' '
799 else
800 ac_n=-n ac_c= ac_t=
801 fi
802else
803 ac_n= ac_c='\c' ac_t=
804fi
805
806
807
7c66a493
VZ
808ac_aux_dir=
809for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
810 if test -f $ac_dir/install-sh; then
811 ac_aux_dir=$ac_dir
812 ac_install_sh="$ac_aux_dir/install-sh -c"
813 break
814 elif test -f $ac_dir/install.sh; then
815 ac_aux_dir=$ac_dir
816 ac_install_sh="$ac_aux_dir/install.sh -c"
817 break
818 fi
819done
820if test -z "$ac_aux_dir"; then
821 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
822fi
823ac_config_guess=$ac_aux_dir/config.guess
824ac_config_sub=$ac_aux_dir/config.sub
825ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
826
827
828# Do some error checking and defaulting for the host and target type.
829# The inputs are:
830# configure --host=HOST --target=TARGET --build=BUILD NONOPT
831#
832# The rules are:
833# 1. You are not allowed to specify --host, --target, and nonopt at the
834# same time.
835# 2. Host defaults to nonopt.
836# 3. If nonopt is not specified, then host defaults to the current host,
837# as determined by config.guess.
838# 4. Target and build default to nonopt.
839# 5. If nonopt is not specified, then target and build default to host.
840
841# The aliases save the names the user supplied, while $host etc.
842# will get canonicalized.
843case $host---$target---$nonopt in
844NONE---*---* | *---NONE---* | *---*---NONE) ;;
845*) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
846esac
847
848
849# Make sure we can run config.sub.
850if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
851else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
852fi
853
854echo $ac_n "checking host system type""... $ac_c" 1>&6
6f72b082 855echo "configure:856: checking host system type" >&5
7c66a493
VZ
856
857host_alias=$host
858case "$host_alias" in
859NONE)
860 case $nonopt in
861 NONE)
862 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
863 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
864 fi ;;
865 *) host_alias=$nonopt ;;
866 esac ;;
867esac
868
869host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
870host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
871host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
872host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
873echo "$ac_t""$host" 1>&6
874
875echo $ac_n "checking target system type""... $ac_c" 1>&6
6f72b082 876echo "configure:877: checking target system type" >&5
7c66a493
VZ
877
878target_alias=$target
879case "$target_alias" in
880NONE)
881 case $nonopt in
882 NONE) target_alias=$host_alias ;;
883 *) target_alias=$nonopt ;;
884 esac ;;
885esac
886
887target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
888target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
889target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
890target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
891echo "$ac_t""$target" 1>&6
892
893echo $ac_n "checking build system type""... $ac_c" 1>&6
6f72b082 894echo "configure:895: checking build system type" >&5
7c66a493
VZ
895
896build_alias=$build
897case "$build_alias" in
898NONE)
899 case $nonopt in
900 NONE) build_alias=$host_alias ;;
901 *) build_alias=$nonopt ;;
902 esac ;;
903esac
904
905build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
906build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
907build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
908build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
909echo "$ac_t""$build" 1>&6
910
911test "$host_alias" != "$target_alias" &&
912 test "$program_prefix$program_suffix$program_transform_name" = \
913 NONENONEs,x,x, &&
914 program_prefix=${target_alias}-
915
916
10f2d63a
VZ
917
918WX_MAJOR_VERSION_NUMBER=2
f6bcfd97
BP
919WX_MINOR_VERSION_NUMBER=2
920WX_RELEASE_NUMBER=0
10f2d63a
VZ
921
922WX_INTERFACE_AGE=0
f6bcfd97 923WX_BINARY_AGE=1
10f2d63a
VZ
924
925WX_VERSION=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER.$WX_RELEASE_NUMBER
926
927WX_RELEASE=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER
928WX_CURRENT=`expr $WX_RELEASE_NUMBER - $WX_INTERFACE_AGE`
929WX_REVISION=$WX_INTERFACE_AGE
930WX_AGE=`expr $WX_BINARY_AGE - $WX_INTERFACE_AGE`
931
932
933USE_UNIX=1
934USE_WIN32=0
b12915c1
VZ
935USE_BEOS=0
936
10f2d63a
VZ
937USE_LINUX=
938USE_SGI=
939USE_HPUX=
940USE_SYSV=
941USE_SVR4=
942USE_AIX=
943USE_SUN=
944USE_SOLARIS=
945USE_SUNOS=
946USE_ALPHA=
947USE_OSF=
948USE_BSD=
949USE_FREEBSD=
f6bcfd97 950USE_NETBSD=
10f2d63a
VZ
951USE_VMS=
952USE_ULTRIX=
953USE_CYGWIN=
954USE_MINGW=
955USE_DATA_GENERAL=
956
ab9b9eab
VZ
957NEEDS_D_REENTRANT_FOR_R_FUNCS=0
958
e07802fc 959ALL_TOOLKITS="CYGWIN GTK MINGW MOTIF WINE PM"
10f2d63a
VZ
960
961DEFAULT_wxUSE_GTK=0
962DEFAULT_wxUSE_MOTIF=0
963DEFAULT_wxUSE_MSW=0
964DEFAULT_wxUSE_WINE=0
e07802fc 965DEFAULT_wxUSE_PM=0
10f2d63a
VZ
966
967DEFAULT_DEFAULT_wxUSE_GTK=0
968DEFAULT_DEFAULT_wxUSE_MOTIF=0
969DEFAULT_DEFAULT_wxUSE_MSW=0
970DEFAULT_DEFAULT_wxUSE_WINE=0
e07802fc 971DEFAULT_DEFAULT_wxUSE_PM=0
10f2d63a 972
d6a55c4b
VZ
973PROGRAM_EXT=
974
10f2d63a
VZ
975case "${host}" in
976 *-hp-hpux* )
977 USE_HPUX=1
978 DEFAULT_DEFAULT_wxUSE_MOTIF=1
ab9b9eab 979 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
10f2d63a
VZ
980 cat >> confdefs.h <<\EOF
981#define __HPUX__ 1
982EOF
983
984 ;;
985 *-*-linux* )
986 USE_LINUX=1
987 cat >> confdefs.h <<\EOF
988#define __LINUX__ 1
989EOF
990
991 TMP=`uname -m`
992 if test "x$TMP" = "xalpha"; then
993 USE_ALPHA=1
994 cat >> confdefs.h <<\EOF
995#define __ALPHA__ 1
996EOF
997
998 fi
999 DEFAULT_DEFAULT_wxUSE_GTK=1
1000 ;;
1001 *-*-irix5* | *-*-irix6* )
1002 USE_SGI=1
1003 USE_SVR4=1
1004 cat >> confdefs.h <<\EOF
1005#define __SGI__ 1
1006EOF
1007
1008 cat >> confdefs.h <<\EOF
1009#define __SVR4__ 1
1010EOF
1011
1012 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1013 ;;
1014 *-*-solaris2* )
1015 USE_SUN=1
1016 USE_SOLARIS=1
1017 USE_SVR4=1
1018 cat >> confdefs.h <<\EOF
1019#define __SUN__ 1
1020EOF
1021
1022 cat >> confdefs.h <<\EOF
1023#define __SOLARIS__ 1
1024EOF
1025
1026 cat >> confdefs.h <<\EOF
1027#define __SVR4__ 1
1028EOF
1029
1030 DEFAULT_DEFAULT_wxUSE_MOTIF=1
ab9b9eab 1031 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
10f2d63a
VZ
1032 ;;
1033 *-*-sunos4* )
1034 USE_SUN=1
1035 USE_SUNOS=1
1036 USE_BSD=1
1037 cat >> confdefs.h <<\EOF
1038#define __SUN__ 1
1039EOF
1040
1041 cat >> confdefs.h <<\EOF
1042#define __SUNOS__ 1
1043EOF
1044
1045 cat >> confdefs.h <<\EOF
1046#define __BSD__ 1
1047EOF
1048
1049 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1050 ;;
f6bcfd97 1051 *-*-freebsd*)
10f2d63a
VZ
1052 USE_BSD=1
1053 USE_FREEBSD=1
1054 cat >> confdefs.h <<\EOF
1055#define __FREEBSD__ 1
1056EOF
1057
1058 cat >> confdefs.h <<\EOF
1059#define __BSD__ 1
f6bcfd97
BP
1060EOF
1061
1062 DEFAULT_DEFAULT_wxUSE_GTK=1
1063 ;;
1064 *-*-netbsd*)
1065 USE_BSD=1
1066 USE_NETBSD=1
1067 cat >> confdefs.h <<\EOF
1068#define __FREEBSD__ 1
1069EOF
1070
1071 cat >> confdefs.h <<\EOF
1072#define __NETBSD__ 1
10f2d63a
VZ
1073EOF
1074
1075 DEFAULT_DEFAULT_wxUSE_GTK=1
1076 ;;
1077 *-*-osf* )
1078 USE_ALPHA=1
1079 USE_OSF=1
1080 cat >> confdefs.h <<\EOF
1081#define __ALPHA__ 1
1082EOF
1083
1084 cat >> confdefs.h <<\EOF
1085#define __OSF__ 1
1086EOF
1087
1088 DEFAULT_DEFAULT_wxUSE_MOTIF=1
f6bcfd97 1089 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
10f2d63a
VZ
1090 ;;
1091 *-*-dgux5* )
1092 USE_ALPHA=1
1093 USE_SVR4=1
1094 cat >> confdefs.h <<\EOF
1095#define __ALPHA__ 1
1096EOF
1097
1098 cat >> confdefs.h <<\EOF
1099#define __SVR4__ 1
1100EOF
1101
1102 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1103 ;;
1104 *-*-sysv5* )
1105 USE_SYSV=1
1106 USE_SVR4=1
1107 cat >> confdefs.h <<\EOF
1108#define __SYSV__ 1
1109EOF
1110
1111 cat >> confdefs.h <<\EOF
1112#define __SVR4__ 1
1113EOF
1114
1115 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1116 ;;
1117 *-*-aix* )
1118 USE_AIX=1
1119 USE_SYSV=1
1120 USE_SVR4=1
1121 cat >> confdefs.h <<\EOF
1122#define __AIX__ 1
1123EOF
1124
1125 cat >> confdefs.h <<\EOF
1126#define __SYSV__ 1
1127EOF
1128
1129 cat >> confdefs.h <<\EOF
1130#define __SVR4__ 1
1131EOF
1132
1133 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1134 ;;
1135
7eef8db2 1136 *-*-cygwin32* | *-*-mingw32* )
10f2d63a
VZ
1137 USE_UNIX=0
1138 USE_WIN32=1
1139 cat >> confdefs.h <<\EOF
1140#define __WIN32__ 1
1141EOF
1142
1143 cat >> confdefs.h <<\EOF
1144#define __WIN95__ 1
1145EOF
1146
1147 cat >> confdefs.h <<\EOF
1148#define __WINDOWS__ 1
1149EOF
1150
1151 cat >> confdefs.h <<\EOF
1152#define __GNUWIN32__ 1
1153EOF
1154
1155 cat >> confdefs.h <<\EOF
1156#define STRICT 1
1157EOF
1158
1159 cat >> confdefs.h <<\EOF
1160#define WINVER 0x0400
1161EOF
1162
cf27ef00 1163 PROGRAM_EXT=".exe"
10f2d63a
VZ
1164 DEFAULT_DEFAULT_wxUSE_MSW=1
1165 ;;
1166
1167 *-pc-os2_emx )
1168 cat >> confdefs.h <<\EOF
1169#define __EMX__ 1
1170EOF
1171
cf27ef00 1172 PROGRAM_EXT=".exe"
e07802fc 1173 DEFAULT_DEFAULT_wxUSE_PM=1
10f2d63a
VZ
1174 ;;
1175
b12915c1
VZ
1176 *-*-beos* )
1177 USE_BEOS=1
1178 cat >> confdefs.h <<\EOF
1179#define __BEOS__ 1
1180EOF
1181
1182 ;;
1183
10f2d63a
VZ
1184 *)
1185 { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; }
1186esac
1187
1188if test "$USE_UNIX" = 1 ; then
b12915c1
VZ
1189 wxUSE_UNIX=yes
1190 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1191#define __UNIX__ 1
1192EOF
1193
b12915c1
VZ
1194
1195 SRC_SUBDIRS="$SRC_SUBDIRS unix"
1196 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS unix"
1197fi
1198
1199if test "$USE_BEOS" = 1; then
1200 SRC_SUBDIRS="$SRC_SUBDIRS be"
1201 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS be"
10f2d63a
VZ
1202fi
1203
1204if test "$USE_LINUX" = 1; then
1205 echo $ac_n "checking for gettext in -lc""... $ac_c" 1>&6
6f72b082 1206echo "configure:1207: checking for gettext in -lc" >&5
10f2d63a
VZ
1207ac_lib_var=`echo c'_'gettext | sed 'y%./+-%__p_%'`
1208if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1209 echo $ac_n "(cached) $ac_c" 1>&6
1210else
1211 ac_save_LIBS="$LIBS"
1212LIBS="-lc $LIBS"
1213cat > conftest.$ac_ext <<EOF
6f72b082 1214#line 1215 "configure"
10f2d63a
VZ
1215#include "confdefs.h"
1216/* Override any gcc2 internal prototype to avoid an error. */
1217/* We use char because int might match the return type of a gcc2
1218 builtin and then its argument prototype would still apply. */
1219char gettext();
1220
1221int main() {
1222gettext()
1223; return 0; }
1224EOF
6f72b082 1225if { (eval echo configure:1226: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
1226 rm -rf conftest*
1227 eval "ac_cv_lib_$ac_lib_var=yes"
1228else
1229 echo "configure: failed program was:" >&5
1230 cat conftest.$ac_ext >&5
1231 rm -rf conftest*
1232 eval "ac_cv_lib_$ac_lib_var=no"
1233fi
1234rm -f conftest*
1235LIBS="$ac_save_LIBS"
1236
1237fi
1238if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1239 echo "$ac_t""yes" 1>&6
1240 cat >> confdefs.h <<\EOF
1241#define wxHAVE_GLIBC2 1
1242EOF
1243
1244else
1245 echo "$ac_t""no" 1>&6
1246fi
1247
1248fi
1249
1250
1251
1252
1253 wx_arg_cache_file="configarg.cache"
1254 echo "loading argument cache $wx_arg_cache_file"
1255 rm -f ${wx_arg_cache_file}.tmp
1256 touch ${wx_arg_cache_file}.tmp
1257 touch ${wx_arg_cache_file}
1258
1259
1260DEBUG_CONFIGURE=0
1261if test $DEBUG_CONFIGURE = 1; then
1262 DEFAULT_wxUSE_THREADS=yes
1263
1264 DEFAULT_wxUSE_SHARED=yes
00cf1208 1265 DEFAULT_wxUSE_BURNT_NAME=no
10f2d63a
VZ
1266 DEFAULT_wxUSE_OPTIMISE=yes
1267 DEFAULT_wxUSE_PROFILE=no
1268 DEFAULT_wxUSE_NO_DEPS=no
1269 DEFAULT_wxUSE_NO_RTTI=no
1270 DEFAULT_wxUSE_NO_EXCEPTIONS=no
1271 DEFAULT_wxUSE_PERMISSIVE=no
1272 DEFAULT_wxUSE_DEBUG_FLAG=yes
1273 DEFAULT_wxUSE_DEBUG_INFO=yes
1274 DEFAULT_wxUSE_DEBUG_GDB=yes
1275 DEFAULT_wxUSE_MEM_TRACING=no
1276 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1277 DEFAULT_wxUSE_DMALLOC=no
1278 DEFAULT_wxUSE_APPLE_IEEE=no
1279
1280 DEFAULT_wxUSE_LOG=yes
1281
1282 DEFAULT_wxUSE_GUI=yes
1283
1284 DEFAULT_wxUSE_ZLIB=no
1285 DEFAULT_wxUSE_LIBPNG=no
1286 DEFAULT_wxUSE_LIBJPEG=no
c7a2bf27 1287 DEFAULT_wxUSE_LIBTIFF=no
10f2d63a 1288 DEFAULT_wxUSE_ODBC=no
bdad4e7e 1289 DEFAULT_wxUSE_OPENGL=no
10f2d63a 1290
eb4efbdc 1291 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no
10f2d63a
VZ
1292 DEFAULT_wxUSE_STD_IOSTREAM=no
1293 DEFAULT_wxUSE_FILE=no
1294 DEFAULT_wxUSE_TEXTFILE=no
1295 DEFAULT_wxUSE_TIMEDATE=no
1296 DEFAULT_wxUSE_WAVE=no
1297 DEFAULT_wxUSE_INTL=no
1298 DEFAULT_wxUSE_CONFIG=no
1299 DEFAULT_wxUSE_STREAMS=no
1300 DEFAULT_wxUSE_SOCKETS=no
1301 DEFAULT_wxUSE_DIALUP_MANAGER=no
1302 DEFAULT_wxUSE_SERIAL=no
1303 DEFAULT_wxUSE_JOYSTICK=no
1304 DEFAULT_wxUSE_DYNLIB_CLASS=no
1305 DEFAULT_wxUSE_LONGLONG=no
1306
1307 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
1308 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
1309 DEFAULT_wxUSE_POSTSCRIPT=no
1310
1311 DEFAULT_wxUSE_X_RESOURCES=no
1312 DEFAULT_wxUSE_CLIPBOARD=no
1313 DEFAULT_wxUSE_TOOLTIPS=no
1314 DEFAULT_wxUSE_DRAG_AND_DROP=no
1315 DEFAULT_wxUSE_SPLINES=no
1316
1317 DEFAULT_wxUSE_MDI_ARCHITECTURE=no
1318 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
1319 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
1320
1321 DEFAULT_wxUSE_PROLOGIO=no
1322 DEFAULT_wxUSE_RESOURCES=no
1323 DEFAULT_wxUSE_CONSTRAINTS=no
1324 DEFAULT_wxUSE_IPC=no
1325 DEFAULT_wxUSE_HELP=no
1326 DEFAULT_wxUSE_WXTREE=no
1327 DEFAULT_wxUSE_METAFILE=no
1328
1329 DEFAULT_wxUSE_COMMONDLGS=no
1330 DEFAULT_wxUSE_DIRDLG=no
1331 DEFAULT_wxUSE_TEXTDLG=no
1332 DEFAULT_wxUSE_STARTUP_TIPS=no
1333 DEFAULT_wxUSE_PROGRESSDLG=no
1334 DEFAULT_wxUSE_MINIFRAME=no
1335 DEFAULT_wxUSE_HTML=no
24528b0c 1336 DEFAULT_wxUSE_FILESYSTEM=no
10f2d63a
VZ
1337 DEFAULT_wxUSE_FS_INET=no
1338 DEFAULT_wxUSE_FS_ZIP=no
1339 DEFAULT_wxUSE_BUSYINFO=no
1340 DEFAULT_wxUSE_ZIPSTREAM=no
1341 DEFAULT_wxUSE_VALIDATORS=yes
1342
1343 DEFAULT_wxUSE_ACCEL=no
1344 DEFAULT_wxUSE_CARET=no
1345 DEFAULT_wxUSE_BMPBUTTON=no
1346 DEFAULT_wxUSE_CHECKBOX=no
1347 DEFAULT_wxUSE_CHECKLST=no
1348 DEFAULT_wxUSE_CHOICE=yes
1349 DEFAULT_wxUSE_COMBOBOX=no
1350 DEFAULT_wxUSE_GAUGE=no
1351 DEFAULT_wxUSE_GRID=no
1352 DEFAULT_wxUSE_NEW_GRID=no
1353 DEFAULT_wxUSE_IMAGLIST=no
1354 DEFAULT_wxUSE_LISTBOX=no
1355 DEFAULT_wxUSE_LISTCTRL=no
1356 DEFAULT_wxUSE_NOTEBOOK=no
9b33fe02 1357 DEFAULT_wxUSE_PLOT=no
10f2d63a
VZ
1358 DEFAULT_wxUSE_RADIOBOX=no
1359 DEFAULT_wxUSE_RADIOBTN=no
1360 DEFAULT_wxUSE_SASH=no
1361 DEFAULT_wxUSE_SCROLLBAR=no
1362 DEFAULT_wxUSE_SLIDER=no
1363 DEFAULT_wxUSE_SPINBTN=no
56cfaa52 1364 DEFAULT_wxUSE_SPINCTRL=no
10f2d63a
VZ
1365 DEFAULT_wxUSE_SPLITTER=no
1366 DEFAULT_wxUSE_STATBMP=no
1367 DEFAULT_wxUSE_STATBOX=no
1368 DEFAULT_wxUSE_STATLINE=no
1369 DEFAULT_wxUSE_STATUSBAR=yes
1370 DEFAULT_wxUSE_TABDIALOG=no
1371 DEFAULT_wxUSE_TOOLBAR=no
360d6699
VZ
1372 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
1373 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
10f2d63a
VZ
1374 DEFAULT_wxUSE_TREECTRL=no
1375
1376 DEFAULT_wxUSE_UNICODE=no
1377 DEFAULT_wxUSE_WCSRTOMBS=no
1378
1379 DEFAULT_wxUSE_GIF=no
1380 DEFAULT_wxUSE_PCX=no
1381 DEFAULT_wxUSE_PNM=no
1382else
1383 DEFAULT_wxUSE_THREADS=yes
1384
1385 DEFAULT_wxUSE_SHARED=yes
00cf1208 1386 DEFAULT_wxUSE_BURNT_NAME=no
10f2d63a
VZ
1387 DEFAULT_wxUSE_OPTIMISE=yes
1388 DEFAULT_wxUSE_PROFILE=no
1389 DEFAULT_wxUSE_NO_DEPS=no
1390 DEFAULT_wxUSE_NO_RTTI=no
1391 DEFAULT_wxUSE_NO_EXCEPTIONS=no
1392 DEFAULT_wxUSE_PERMISSIVE=no
1393 DEFAULT_wxUSE_DEBUG_FLAG=no
1394 DEFAULT_wxUSE_DEBUG_INFO=no
1395 DEFAULT_wxUSE_DEBUG_GDB=no
1396 DEFAULT_wxUSE_MEM_TRACING=no
1397 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1398 DEFAULT_wxUSE_DMALLOC=no
1399 DEFAULT_wxUSE_APPLE_IEEE=yes
1400
1401 DEFAULT_wxUSE_LOG=yes
1402
1403 DEFAULT_wxUSE_GUI=yes
1404
1405 DEFAULT_wxUSE_ZLIB=yes
1406 DEFAULT_wxUSE_LIBPNG=yes
1407 DEFAULT_wxUSE_LIBJPEG=yes
b47c832e 1408 DEFAULT_wxUSE_LIBTIFF=yes
16b52fa1 1409 DEFAULT_wxUSE_ODBC=no
bdad4e7e 1410 DEFAULT_wxUSE_OPENGL=no
10f2d63a 1411
eb4efbdc 1412 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes
10f2d63a
VZ
1413 DEFAULT_wxUSE_STD_IOSTREAM=no
1414 DEFAULT_wxUSE_FILE=yes
1415 DEFAULT_wxUSE_TEXTFILE=yes
1416 DEFAULT_wxUSE_TIMEDATE=yes
1417 DEFAULT_wxUSE_WAVE=no
1418 DEFAULT_wxUSE_INTL=yes
1419 DEFAULT_wxUSE_CONFIG=yes
1420 DEFAULT_wxUSE_STREAMS=yes
1421 DEFAULT_wxUSE_SOCKETS=yes
1422 DEFAULT_wxUSE_DIALUP_MANAGER=yes
1423 DEFAULT_wxUSE_SERIAL=yes
1424 DEFAULT_wxUSE_JOYSTICK=yes
1425 DEFAULT_wxUSE_DYNLIB_CLASS=yes
b685cd9b 1426 DEFAULT_wxUSE_LONGLONG=yes
10f2d63a
VZ
1427
1428 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
1429 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
1430 DEFAULT_wxUSE_POSTSCRIPT=yes
1431
1432 DEFAULT_wxUSE_X_RESOURCES=no
1433 DEFAULT_wxUSE_CLIPBOARD=yes
1434 DEFAULT_wxUSE_TOOLTIPS=yes
1435 DEFAULT_wxUSE_DRAG_AND_DROP=yes
1436 DEFAULT_wxUSE_SPLINES=yes
1437
1438 DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
1439 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
1440 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
1441
1442 DEFAULT_wxUSE_PROLOGIO=yes
1443 DEFAULT_wxUSE_RESOURCES=yes
1444 DEFAULT_wxUSE_CONSTRAINTS=yes
1445 DEFAULT_wxUSE_IPC=yes
1446 DEFAULT_wxUSE_HELP=yes
1447 DEFAULT_wxUSE_WXTREE=yes
1448 DEFAULT_wxUSE_METAFILE=yes
1449
1450 DEFAULT_wxUSE_COMMONDLGS=yes
1451 DEFAULT_wxUSE_DIRDLG=yes
1452 DEFAULT_wxUSE_TEXTDLG=yes
1453 DEFAULT_wxUSE_STARTUP_TIPS=yes
1454 DEFAULT_wxUSE_PROGRESSDLG=yes
1455 DEFAULT_wxUSE_MINIFRAME=yes
1456 DEFAULT_wxUSE_HTML=yes
24528b0c 1457 DEFAULT_wxUSE_FILESYSTEM=yes
10f2d63a
VZ
1458 DEFAULT_wxUSE_FS_INET=yes
1459 DEFAULT_wxUSE_FS_ZIP=yes
1460 DEFAULT_wxUSE_BUSYINFO=yes
1461 DEFAULT_wxUSE_ZIPSTREAM=yes
1462 DEFAULT_wxUSE_VALIDATORS=yes
1463
1464 DEFAULT_wxUSE_ACCEL=yes
1465 DEFAULT_wxUSE_CARET=yes
1466 DEFAULT_wxUSE_BMPBUTTON=yes
1467 DEFAULT_wxUSE_CHECKBOX=yes
1468 DEFAULT_wxUSE_CHECKLST=yes
1469 DEFAULT_wxUSE_CHOICE=yes
1470 DEFAULT_wxUSE_COMBOBOX=yes
1471 DEFAULT_wxUSE_GAUGE=yes
1472 DEFAULT_wxUSE_GRID=yes
cc977e5f 1473 DEFAULT_wxUSE_NEW_GRID=yes
10f2d63a
VZ
1474 DEFAULT_wxUSE_IMAGLIST=yes
1475 DEFAULT_wxUSE_LISTBOX=yes
1476 DEFAULT_wxUSE_LISTCTRL=yes
1477 DEFAULT_wxUSE_NOTEBOOK=yes
9b33fe02 1478 DEFAULT_wxUSE_PLOT=yes
10f2d63a
VZ
1479 DEFAULT_wxUSE_RADIOBOX=yes
1480 DEFAULT_wxUSE_RADIOBTN=yes
1481 DEFAULT_wxUSE_SASH=yes
1482 DEFAULT_wxUSE_SCROLLBAR=yes
1483 DEFAULT_wxUSE_SLIDER=yes
1484 DEFAULT_wxUSE_SPINBTN=yes
56cfaa52 1485 DEFAULT_wxUSE_SPINCTRL=yes
10f2d63a
VZ
1486 DEFAULT_wxUSE_SPLITTER=yes
1487 DEFAULT_wxUSE_STATBMP=yes
1488 DEFAULT_wxUSE_STATBOX=yes
1489 DEFAULT_wxUSE_STATLINE=yes
1490 DEFAULT_wxUSE_STATUSBAR=yes
1491 DEFAULT_wxUSE_TABDIALOG=no
1492 DEFAULT_wxUSE_TOOLBAR=yes
360d6699
VZ
1493 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
1494 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
10f2d63a
VZ
1495 DEFAULT_wxUSE_TREECTRL=yes
1496
1497 DEFAULT_wxUSE_UNICODE=no
1498 DEFAULT_wxUSE_WCSRTOMBS=no
1499
1500 DEFAULT_wxUSE_GIF=yes
1501 DEFAULT_wxUSE_PCX=yes
1502 DEFAULT_wxUSE_PNM=yes
1503fi
1504
1505
1506
1507for toolkit in `echo $ALL_TOOLKITS`; do
1508 LINE=`grep "wxUSE_$toolkit" ${wx_arg_cache_file}`
1509 if test "x$LINE" != x ; then
1510 has_toolkit_in_cache=1
1511 eval "DEFAULT_$LINE"
1512 eval "CACHE_$toolkit=1"
1513 fi
1514done
1515
1516
1517
1518 echo $ac_n "checking "for --enable-gui"""... $ac_c" 1>&6
6f72b082 1519echo "configure:1520: checking "for --enable-gui"" >&5
10f2d63a
VZ
1520 no_cache=0
1521 # Check whether --enable-gui or --disable-gui was given.
1522if test "${enable_gui+set}" = set; then
1523 enableval="$enable_gui"
1524
1525 if test "$enableval" = yes; then
1526 ac_cv_use_gui='wxUSE_GUI=yes'
1527 else
1528 ac_cv_use_gui='wxUSE_GUI=no'
1529 fi
1530
1531else
1532
1533 LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
1534 if test "x$LINE" != x ; then
1535 eval "DEFAULT_$LINE"
1536 else
1537 no_cache=1
1538 fi
1539
1540 ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
1541
1542fi
1543
1544
1545 eval "$ac_cv_use_gui"
1546 if test "$no_cache" != 1; then
1547 echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
1548 fi
1549
1550 if test "$wxUSE_GUI" = yes; then
1551 echo "$ac_t""yes" 1>&6
1552 else
1553 echo "$ac_t""no" 1>&6
1554 fi
1555
1556
b12915c1 1557if test "$wxUSE_GUI" = "yes"; then
10f2d63a
VZ
1558
1559# Check whether --with-gtk or --without-gtk was given.
1560if test "${with_gtk+set}" = set; then
1561 withval="$with_gtk"
1562 wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
1563fi
1564
1565# Check whether --with-motif or --without-motif was given.
1566if test "${with_motif+set}" = set; then
1567 withval="$with_motif"
1568 wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
1569fi
1570
1571# Check whether --with-wine or --without-wine was given.
1572if test "${with_wine+set}" = set; then
1573 withval="$with_wine"
1574 wxUSE_WINE="$withval" CACHE_WINE=1 TOOLKIT_GIVEN=1
1575fi
1576
1577# Check whether --with-cygwin or --without-cygwin was given.
1578if test "${with_cygwin+set}" = set; then
1579 withval="$with_cygwin"
1580 wxUSE_CYGWIN="$withval" CACHE_CYGWIN=1 TOOLKIT_GIVEN=1
1581fi
1582
1583# Check whether --with-mingw or --without-mingw was given.
1584if test "${with_mingw+set}" = set; then
1585 withval="$with_mingw"
1586 wxUSE_MINGW="$withval" CACHE_MINGW=1 TOOLKIT_GIVEN=1
1587fi
1588
e07802fc
VZ
1589# Check whether --with-pm or --without-pm was given.
1590if test "${with_pm+set}" = set; then
1591 withval="$with_pm"
1592 wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
1593fi
1594
10f2d63a
VZ
1595
1596# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
1597if test "${with_gtk_prefix+set}" = set; then
1598 withval="$with_gtk_prefix"
1599 gtk_config_prefix="$withval"
1600else
1601 gtk_config_prefix=""
1602fi
1603
1604# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
1605if test "${with_gtk_exec_prefix+set}" = set; then
1606 withval="$with_gtk_exec_prefix"
1607 gtk_config_exec_prefix="$withval"
1608else
1609 gtk_config_exec_prefix=""
1610fi
1611
1612
1613
b12915c1 1614 echo $ac_n "checking "for --with-libpng"""... $ac_c" 1>&6
6f72b082 1615echo "configure:1616: checking "for --with-libpng"" >&5
10f2d63a 1616 no_cache=0
b12915c1
VZ
1617 # Check whether --with-libpng or --without-libpng was given.
1618if test "${with_libpng+set}" = set; then
1619 withval="$with_libpng"
10f2d63a
VZ
1620
1621 if test "$withval" = yes; then
b12915c1 1622 ac_cv_use_libpng='wxUSE_LIBPNG=yes'
422107f9 1623 elif test "$withval" = no; then
b12915c1 1624 ac_cv_use_libpng='wxUSE_LIBPNG=no'
422107f9
VZ
1625 elif test "$withval" = sys; then
1626 ac_cv_use_libpng='wxUSE_LIBPNG=sys'
1627 else
1628 { echo "configure: error: Invalid value for --with-libpng: should be yes, no or sys" 1>&2; exit 1; }
10f2d63a
VZ
1629 fi
1630
1631else
1632
b12915c1 1633 LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
10f2d63a
VZ
1634 if test "x$LINE" != x ; then
1635 eval "DEFAULT_$LINE"
1636 else
1637 no_cache=1
1638 fi
1639
b12915c1 1640 ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
10f2d63a
VZ
1641
1642fi
1643
1644
b12915c1 1645 eval "$ac_cv_use_libpng"
10f2d63a 1646 if test "$no_cache" != 1; then
b12915c1 1647 echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
1648 fi
1649
b12915c1 1650 if test "$wxUSE_LIBPNG" = yes; then
10f2d63a 1651 echo "$ac_t""yes" 1>&6
422107f9 1652 elif test "$wxUSE_LIBPNG" = no; then
10f2d63a 1653 echo "$ac_t""no" 1>&6
422107f9
VZ
1654 elif test "$wxUSE_LIBPNG" = sys; then
1655 echo "$ac_t""system version" 1>&6
1656 else
1657 { echo "configure: error: Invalid value for --with-libpng: should be yes, no or sys" 1>&2; exit 1; }
10f2d63a
VZ
1658 fi
1659
1660
b12915c1 1661 echo $ac_n "checking "for --with-libjpeg"""... $ac_c" 1>&6
6f72b082 1662echo "configure:1663: checking "for --with-libjpeg"" >&5
10f2d63a 1663 no_cache=0
b12915c1
VZ
1664 # Check whether --with-libjpeg or --without-libjpeg was given.
1665if test "${with_libjpeg+set}" = set; then
1666 withval="$with_libjpeg"
10f2d63a
VZ
1667
1668 if test "$withval" = yes; then
b12915c1 1669 ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
422107f9 1670 elif test "$withval" = no; then
b12915c1 1671 ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
422107f9
VZ
1672 elif test "$withval" = sys; then
1673 ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
1674 else
1675 { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no or sys" 1>&2; exit 1; }
10f2d63a
VZ
1676 fi
1677
1678else
1679
b12915c1 1680 LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
10f2d63a
VZ
1681 if test "x$LINE" != x ; then
1682 eval "DEFAULT_$LINE"
1683 else
1684 no_cache=1
1685 fi
1686
b12915c1 1687 ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
10f2d63a
VZ
1688
1689fi
1690
1691
b12915c1 1692 eval "$ac_cv_use_libjpeg"
10f2d63a 1693 if test "$no_cache" != 1; then
b12915c1 1694 echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
1695 fi
1696
b12915c1 1697 if test "$wxUSE_LIBJPEG" = yes; then
10f2d63a 1698 echo "$ac_t""yes" 1>&6
422107f9 1699 elif test "$wxUSE_LIBJPEG" = no; then
10f2d63a 1700 echo "$ac_t""no" 1>&6
422107f9
VZ
1701 elif test "$wxUSE_LIBJPEG" = sys; then
1702 echo "$ac_t""system version" 1>&6
1703 else
1704 { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no or sys" 1>&2; exit 1; }
10f2d63a
VZ
1705 fi
1706
1707
b12915c1 1708 echo $ac_n "checking "for --with-libtiff"""... $ac_c" 1>&6
6f72b082 1709echo "configure:1710: checking "for --with-libtiff"" >&5
10f2d63a 1710 no_cache=0
b12915c1
VZ
1711 # Check whether --with-libtiff or --without-libtiff was given.
1712if test "${with_libtiff+set}" = set; then
1713 withval="$with_libtiff"
10f2d63a
VZ
1714
1715 if test "$withval" = yes; then
b12915c1 1716 ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
0dcf9893 1717 elif test "$withval" = no; then
b12915c1 1718 ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
0dcf9893
VZ
1719 elif test "$withval" = sys; then
1720 ac_cv_use_libtiff='wxUSE_LIBTIFF=sys'
1721 else
1722 { echo "configure: error: Invalid value for --with-libtiff: should be yes, no or sys" 1>&2; exit 1; }
10f2d63a
VZ
1723 fi
1724
1725else
1726
b12915c1 1727 LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
10f2d63a
VZ
1728 if test "x$LINE" != x ; then
1729 eval "DEFAULT_$LINE"
1730 else
1731 no_cache=1
1732 fi
1733
b12915c1 1734 ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
10f2d63a
VZ
1735
1736fi
1737
1738
b12915c1 1739 eval "$ac_cv_use_libtiff"
10f2d63a 1740 if test "$no_cache" != 1; then
b12915c1 1741 echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
1742 fi
1743
b12915c1 1744 if test "$wxUSE_LIBTIFF" = yes; then
10f2d63a 1745 echo "$ac_t""yes" 1>&6
0dcf9893 1746 elif test "$wxUSE_LIBTIFF" = no; then
10f2d63a 1747 echo "$ac_t""no" 1>&6
0dcf9893
VZ
1748 elif test "$wxUSE_LIBTIFF" = sys; then
1749 echo "$ac_t""system version" 1>&6
1750 else
1751 { echo "configure: error: Invalid value for --with-libtiff: should be yes, no or sys" 1>&2; exit 1; }
10f2d63a
VZ
1752 fi
1753
1754
b12915c1 1755 echo $ac_n "checking "for --with-opengl"""... $ac_c" 1>&6
6f72b082 1756echo "configure:1757: checking "for --with-opengl"" >&5
10f2d63a 1757 no_cache=0
b12915c1
VZ
1758 # Check whether --with-opengl or --without-opengl was given.
1759if test "${with_opengl+set}" = set; then
1760 withval="$with_opengl"
10f2d63a
VZ
1761
1762 if test "$withval" = yes; then
b12915c1 1763 ac_cv_use_opengl='wxUSE_OPENGL=yes'
10f2d63a 1764 else
b12915c1 1765 ac_cv_use_opengl='wxUSE_OPENGL=no'
10f2d63a
VZ
1766 fi
1767
1768else
1769
b12915c1 1770 LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
10f2d63a
VZ
1771 if test "x$LINE" != x ; then
1772 eval "DEFAULT_$LINE"
1773 else
1774 no_cache=1
1775 fi
1776
b12915c1 1777 ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
10f2d63a
VZ
1778
1779fi
1780
1781
b12915c1 1782 eval "$ac_cv_use_opengl"
10f2d63a 1783 if test "$no_cache" != 1; then
b12915c1 1784 echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
1785 fi
1786
b12915c1 1787 if test "$wxUSE_OPENGL" = yes; then
10f2d63a
VZ
1788 echo "$ac_t""yes" 1>&6
1789 else
1790 echo "$ac_t""no" 1>&6
1791 fi
1792
1793
b12915c1
VZ
1794fi
1795
1796
1797 echo $ac_n "checking "for --with-dmalloc"""... $ac_c" 1>&6
6f72b082 1798echo "configure:1799: checking "for --with-dmalloc"" >&5
c7a2bf27 1799 no_cache=0
b12915c1
VZ
1800 # Check whether --with-dmalloc or --without-dmalloc was given.
1801if test "${with_dmalloc+set}" = set; then
1802 withval="$with_dmalloc"
c7a2bf27
RR
1803
1804 if test "$withval" = yes; then
b12915c1 1805 ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
c7a2bf27 1806 else
b12915c1 1807 ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
c7a2bf27
RR
1808 fi
1809
1810else
1811
b12915c1 1812 LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
c7a2bf27
RR
1813 if test "x$LINE" != x ; then
1814 eval "DEFAULT_$LINE"
1815 else
1816 no_cache=1
1817 fi
1818
b12915c1 1819 ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
c7a2bf27
RR
1820
1821fi
1822
1823
b12915c1 1824 eval "$ac_cv_use_dmalloc"
c7a2bf27 1825 if test "$no_cache" != 1; then
b12915c1 1826 echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
c7a2bf27
RR
1827 fi
1828
b12915c1 1829 if test "$wxUSE_DMALLOC" = yes; then
c7a2bf27
RR
1830 echo "$ac_t""yes" 1>&6
1831 else
1832 echo "$ac_t""no" 1>&6
1833 fi
1834
1835
b12915c1 1836 echo $ac_n "checking "for --with-zlib"""... $ac_c" 1>&6
6f72b082 1837echo "configure:1838: checking "for --with-zlib"" >&5
10f2d63a 1838 no_cache=0
b12915c1
VZ
1839 # Check whether --with-zlib or --without-zlib was given.
1840if test "${with_zlib+set}" = set; then
1841 withval="$with_zlib"
10f2d63a
VZ
1842
1843 if test "$withval" = yes; then
b12915c1 1844 ac_cv_use_zlib='wxUSE_ZLIB=yes'
422107f9 1845 elif test "$withval" = no; then
b12915c1 1846 ac_cv_use_zlib='wxUSE_ZLIB=no'
422107f9
VZ
1847 elif test "$withval" = sys; then
1848 ac_cv_use_zlib='wxUSE_ZLIB=sys'
1849 else
1850 { echo "configure: error: Invalid value for --with-zlib: should be yes, no or sys" 1>&2; exit 1; }
10f2d63a
VZ
1851 fi
1852
1853else
1854
b12915c1 1855 LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
10f2d63a
VZ
1856 if test "x$LINE" != x ; then
1857 eval "DEFAULT_$LINE"
1858 else
1859 no_cache=1
1860 fi
1861
b12915c1 1862 ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
10f2d63a
VZ
1863
1864fi
1865
1866
b12915c1 1867 eval "$ac_cv_use_zlib"
10f2d63a 1868 if test "$no_cache" != 1; then
b12915c1 1869 echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
1870 fi
1871
b12915c1 1872 if test "$wxUSE_ZLIB" = yes; then
10f2d63a 1873 echo "$ac_t""yes" 1>&6
422107f9 1874 elif test "$wxUSE_ZLIB" = no; then
bdad4e7e 1875 echo "$ac_t""no" 1>&6
422107f9
VZ
1876 elif test "$wxUSE_ZLIB" = sys; then
1877 echo "$ac_t""system version" 1>&6
1878 else
1879 { echo "configure: error: Invalid value for --with-zlib: should be yes, no or sys" 1>&2; exit 1; }
10f2d63a
VZ
1880 fi
1881
1882
1883 echo $ac_n "checking "for --with-odbc"""... $ac_c" 1>&6
6f72b082 1884echo "configure:1885: checking "for --with-odbc"" >&5
10f2d63a
VZ
1885 no_cache=0
1886 # Check whether --with-odbc or --without-odbc was given.
1887if test "${with_odbc+set}" = set; then
1888 withval="$with_odbc"
1889
1890 if test "$withval" = yes; then
1891 ac_cv_use_odbc='wxUSE_ODBC=yes'
1892 else
1893 ac_cv_use_odbc='wxUSE_ODBC=no'
1894 fi
1895
1896else
1897
1898 LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
1899 if test "x$LINE" != x ; then
1900 eval "DEFAULT_$LINE"
1901 else
1902 no_cache=1
1903 fi
1904
1905 ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
1906
1907fi
1908
1909
1910 eval "$ac_cv_use_odbc"
1911 if test "$no_cache" != 1; then
1912 echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
1913 fi
1914
1915 if test "$wxUSE_ODBC" = yes; then
1916 echo "$ac_t""yes" 1>&6
1917 else
1918 echo "$ac_t""no" 1>&6
1919 fi
1920
1921
1922
1923
1924
1925 echo $ac_n "checking "for --enable-shared"""... $ac_c" 1>&6
6f72b082 1926echo "configure:1927: checking "for --enable-shared"" >&5
10f2d63a
VZ
1927 no_cache=0
1928 # Check whether --enable-shared or --disable-shared was given.
1929if test "${enable_shared+set}" = set; then
1930 enableval="$enable_shared"
1931
1932 if test "$enableval" = yes; then
1933 ac_cv_use_shared='wxUSE_SHARED=yes'
1934 else
1935 ac_cv_use_shared='wxUSE_SHARED=no'
1936 fi
1937
1938else
1939
1940 LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
1941 if test "x$LINE" != x ; then
1942 eval "DEFAULT_$LINE"
1943 else
1944 no_cache=1
1945 fi
1946
1947 ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
1948
1949fi
1950
1951
1952 eval "$ac_cv_use_shared"
1953 if test "$no_cache" != 1; then
1954 echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
1955 fi
1956
1957 if test "$wxUSE_SHARED" = yes; then
1958 echo "$ac_t""yes" 1>&6
1959 else
1960 echo "$ac_t""no" 1>&6
1961 fi
1962
1963
00cf1208 1964 echo $ac_n "checking "for --enable-burnt_name"""... $ac_c" 1>&6
6f72b082 1965echo "configure:1966: checking "for --enable-burnt_name"" >&5
00cf1208
RR
1966 no_cache=0
1967 # Check whether --enable-burnt_name or --disable-burnt_name was given.
1968if test "${enable_burnt_name+set}" = set; then
1969 enableval="$enable_burnt_name"
1970
1971 if test "$enableval" = yes; then
1972 ac_cv_use_burnt_name='wxUSE_BURNT_NAME=yes'
1973 else
1974 ac_cv_use_burnt_name='wxUSE_BURNT_NAME=no'
1975 fi
1976
1977else
1978
1979 LINE=`grep "wxUSE_BURNT_NAME" ${wx_arg_cache_file}`
1980 if test "x$LINE" != x ; then
1981 eval "DEFAULT_$LINE"
1982 else
1983 no_cache=1
1984 fi
1985
1986 ac_cv_use_burnt_name='wxUSE_BURNT_NAME='$DEFAULT_wxUSE_BURNT_NAME
1987
1988fi
1989
1990
1991 eval "$ac_cv_use_burnt_name"
1992 if test "$no_cache" != 1; then
1993 echo $ac_cv_use_burnt_name >> ${wx_arg_cache_file}.tmp
1994 fi
1995
1996 if test "$wxUSE_BURNT_NAME" = yes; then
1997 echo "$ac_t""yes" 1>&6
1998 else
1999 echo "$ac_t""no" 1>&6
2000 fi
2001
2002
10f2d63a 2003 echo $ac_n "checking "for --enable-optimise"""... $ac_c" 1>&6
6f72b082 2004echo "configure:2005: checking "for --enable-optimise"" >&5
10f2d63a
VZ
2005 no_cache=0
2006 # Check whether --enable-optimise or --disable-optimise was given.
2007if test "${enable_optimise+set}" = set; then
2008 enableval="$enable_optimise"
2009
2010 if test "$enableval" = yes; then
2011 ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
2012 else
2013 ac_cv_use_optimise='wxUSE_OPTIMISE=no'
2014 fi
2015
2016else
2017
2018 LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
2019 if test "x$LINE" != x ; then
2020 eval "DEFAULT_$LINE"
2021 else
2022 no_cache=1
2023 fi
2024
2025 ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
2026
2027fi
2028
2029
2030 eval "$ac_cv_use_optimise"
2031 if test "$no_cache" != 1; then
2032 echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
2033 fi
2034
2035 if test "$wxUSE_OPTIMISE" = yes; then
2036 echo "$ac_t""yes" 1>&6
2037 else
2038 echo "$ac_t""no" 1>&6
2039 fi
2040
2041
2042 echo $ac_n "checking "for --enable-debug"""... $ac_c" 1>&6
6f72b082 2043echo "configure:2044: checking "for --enable-debug"" >&5
10f2d63a
VZ
2044 no_cache=0
2045 # Check whether --enable-debug or --disable-debug was given.
2046if test "${enable_debug+set}" = set; then
2047 enableval="$enable_debug"
2048
2049 if test "$enableval" = yes; then
2050 ac_cv_use_debug='wxUSE_DEBUG=yes'
2051 else
2052 ac_cv_use_debug='wxUSE_DEBUG=no'
2053 fi
2054
2055else
2056
2057 LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
2058 if test "x$LINE" != x ; then
2059 eval "DEFAULT_$LINE"
2060 else
2061 no_cache=1
2062 fi
2063
2064 ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
2065
2066fi
2067
2068
2069 eval "$ac_cv_use_debug"
2070 if test "$no_cache" != 1; then
2071 echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
2072 fi
2073
2074 if test "$wxUSE_DEBUG" = yes; then
2075 echo "$ac_t""yes" 1>&6
2076 else
2077 echo "$ac_t""no" 1>&6
2078 fi
2079
2080
2081if test "$wxUSE_DEBUG" = "yes"; then
2082 DEFAULT_wxUSE_DEBUG_FLAG=yes
2083 DEFAULT_wxUSE_DEBUG_INFO=yes
2084elif test "$wxUSE_DEBUG" = "no"; then
2085 DEFAULT_wxUSE_DEBUG_FLAG=no
2086 DEFAULT_wxUSE_DEBUG_INFO=no
2087fi
2088
2089
2090 echo $ac_n "checking "for --enable-debug_flag"""... $ac_c" 1>&6
6f72b082 2091echo "configure:2092: checking "for --enable-debug_flag"" >&5
10f2d63a
VZ
2092 no_cache=0
2093 # Check whether --enable-debug_flag or --disable-debug_flag was given.
2094if test "${enable_debug_flag+set}" = set; then
2095 enableval="$enable_debug_flag"
2096
2097 if test "$enableval" = yes; then
2098 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
2099 else
2100 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
2101 fi
2102
2103else
2104
2105 LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
2106 if test "x$LINE" != x ; then
2107 eval "DEFAULT_$LINE"
2108 else
2109 no_cache=1
2110 fi
2111
2112 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
2113
2114fi
2115
2116
2117 eval "$ac_cv_use_debug_flag"
2118 if test "$no_cache" != 1; then
2119 echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
2120 fi
2121
2122 if test "$wxUSE_DEBUG_FLAG" = yes; then
2123 echo "$ac_t""yes" 1>&6
2124 else
2125 echo "$ac_t""no" 1>&6
2126 fi
2127
2128
2129 echo $ac_n "checking "for --enable-debug_info"""... $ac_c" 1>&6
6f72b082 2130echo "configure:2131: checking "for --enable-debug_info"" >&5
10f2d63a
VZ
2131 no_cache=0
2132 # Check whether --enable-debug_info or --disable-debug_info was given.
2133if test "${enable_debug_info+set}" = set; then
2134 enableval="$enable_debug_info"
2135
2136 if test "$enableval" = yes; then
2137 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
2138 else
2139 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
2140 fi
2141
2142else
2143
2144 LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
2145 if test "x$LINE" != x ; then
2146 eval "DEFAULT_$LINE"
2147 else
2148 no_cache=1
2149 fi
2150
2151 ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
2152
2153fi
2154
2155
2156 eval "$ac_cv_use_debug_info"
2157 if test "$no_cache" != 1; then
2158 echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
2159 fi
2160
2161 if test "$wxUSE_DEBUG_INFO" = yes; then
2162 echo "$ac_t""yes" 1>&6
2163 else
2164 echo "$ac_t""no" 1>&6
2165 fi
2166
2167
2168 echo $ac_n "checking "for --enable-debug_gdb"""... $ac_c" 1>&6
6f72b082 2169echo "configure:2170: checking "for --enable-debug_gdb"" >&5
10f2d63a
VZ
2170 no_cache=0
2171 # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
2172if test "${enable_debug_gdb+set}" = set; then
2173 enableval="$enable_debug_gdb"
2174
2175 if test "$enableval" = yes; then
2176 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
2177 else
2178 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
2179 fi
2180
2181else
2182
2183 LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
2184 if test "x$LINE" != x ; then
2185 eval "DEFAULT_$LINE"
2186 else
2187 no_cache=1
2188 fi
2189
2190 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
2191
2192fi
2193
2194
2195 eval "$ac_cv_use_debug_gdb"
2196 if test "$no_cache" != 1; then
2197 echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
2198 fi
2199
2200 if test "$wxUSE_DEBUG_GDB" = yes; then
2201 echo "$ac_t""yes" 1>&6
2202 else
2203 echo "$ac_t""no" 1>&6
2204 fi
2205
2206
2207 echo $ac_n "checking "for --enable-debug_cntxt"""... $ac_c" 1>&6
6f72b082 2208echo "configure:2209: checking "for --enable-debug_cntxt"" >&5
10f2d63a
VZ
2209 no_cache=0
2210 # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
2211if test "${enable_debug_cntxt+set}" = set; then
2212 enableval="$enable_debug_cntxt"
2213
2214 if test "$enableval" = yes; then
2215 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
2216 else
2217 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
2218 fi
2219
2220else
2221
2222 LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
2223 if test "x$LINE" != x ; then
2224 eval "DEFAULT_$LINE"
2225 else
2226 no_cache=1
2227 fi
2228
2229 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
2230
2231fi
2232
2233
2234 eval "$ac_cv_use_debug_cntxt"
2235 if test "$no_cache" != 1; then
2236 echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
2237 fi
2238
2239 if test "$wxUSE_DEBUG_CONTEXT" = yes; then
2240 echo "$ac_t""yes" 1>&6
2241 else
2242 echo "$ac_t""no" 1>&6
2243 fi
2244
2245
2246 echo $ac_n "checking "for --enable-mem_tracing"""... $ac_c" 1>&6
6f72b082 2247echo "configure:2248: checking "for --enable-mem_tracing"" >&5
10f2d63a
VZ
2248 no_cache=0
2249 # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
2250if test "${enable_mem_tracing+set}" = set; then
2251 enableval="$enable_mem_tracing"
2252
2253 if test "$enableval" = yes; then
2254 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
2255 else
2256 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
2257 fi
2258
2259else
2260
2261 LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
2262 if test "x$LINE" != x ; then
2263 eval "DEFAULT_$LINE"
2264 else
2265 no_cache=1
2266 fi
2267
2268 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
2269
2270fi
2271
2272
2273 eval "$ac_cv_use_mem_tracing"
2274 if test "$no_cache" != 1; then
2275 echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
2276 fi
2277
2278 if test "$wxUSE_MEM_TRACING" = yes; then
2279 echo "$ac_t""yes" 1>&6
2280 else
2281 echo "$ac_t""no" 1>&6
2282 fi
2283
2284
2285 echo $ac_n "checking "for --enable-profile"""... $ac_c" 1>&6
6f72b082 2286echo "configure:2287: checking "for --enable-profile"" >&5
10f2d63a
VZ
2287 no_cache=0
2288 # Check whether --enable-profile or --disable-profile was given.
2289if test "${enable_profile+set}" = set; then
2290 enableval="$enable_profile"
2291
2292 if test "$enableval" = yes; then
2293 ac_cv_use_profile='wxUSE_PROFILE=yes'
2294 else
2295 ac_cv_use_profile='wxUSE_PROFILE=no'
2296 fi
2297
2298else
2299
2300 LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
2301 if test "x$LINE" != x ; then
2302 eval "DEFAULT_$LINE"
2303 else
2304 no_cache=1
2305 fi
2306
2307 ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
2308
2309fi
2310
2311
2312 eval "$ac_cv_use_profile"
2313 if test "$no_cache" != 1; then
2314 echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
2315 fi
2316
2317 if test "$wxUSE_PROFILE" = yes; then
2318 echo "$ac_t""yes" 1>&6
2319 else
2320 echo "$ac_t""no" 1>&6
2321 fi
2322
2323
2324 echo $ac_n "checking "for --enable-no_rtti"""... $ac_c" 1>&6
6f72b082 2325echo "configure:2326: checking "for --enable-no_rtti"" >&5
10f2d63a
VZ
2326 no_cache=0
2327 # Check whether --enable-no_rtti or --disable-no_rtti was given.
2328if test "${enable_no_rtti+set}" = set; then
2329 enableval="$enable_no_rtti"
2330
2331 if test "$enableval" = yes; then
2332 ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
2333 else
2334 ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
2335 fi
2336
2337else
2338
2339 LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
2340 if test "x$LINE" != x ; then
2341 eval "DEFAULT_$LINE"
2342 else
2343 no_cache=1
2344 fi
2345
2346 ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
2347
2348fi
2349
2350
2351 eval "$ac_cv_use_no_rtti"
2352 if test "$no_cache" != 1; then
2353 echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
2354 fi
2355
2356 if test "$wxUSE_NO_RTTI" = yes; then
2357 echo "$ac_t""yes" 1>&6
2358 else
2359 echo "$ac_t""no" 1>&6
2360 fi
2361
2362
2363 echo $ac_n "checking "for --enable-no_exceptions"""... $ac_c" 1>&6
6f72b082 2364echo "configure:2365: checking "for --enable-no_exceptions"" >&5
10f2d63a
VZ
2365 no_cache=0
2366 # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
2367if test "${enable_no_exceptions+set}" = set; then
2368 enableval="$enable_no_exceptions"
2369
2370 if test "$enableval" = yes; then
2371 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
2372 else
2373 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
2374 fi
2375
2376else
2377
2378 LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
2379 if test "x$LINE" != x ; then
2380 eval "DEFAULT_$LINE"
2381 else
2382 no_cache=1
2383 fi
2384
2385 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
2386
2387fi
2388
2389
2390 eval "$ac_cv_use_no_exceptions"
2391 if test "$no_cache" != 1; then
2392 echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
2393 fi
2394
2395 if test "$wxUSE_NO_EXCEPTIONS" = yes; then
2396 echo "$ac_t""yes" 1>&6
2397 else
2398 echo "$ac_t""no" 1>&6
2399 fi
2400
2401
2402 echo $ac_n "checking "for --enable-permissive"""... $ac_c" 1>&6
6f72b082 2403echo "configure:2404: checking "for --enable-permissive"" >&5
10f2d63a
VZ
2404 no_cache=0
2405 # Check whether --enable-permissive or --disable-permissive was given.
2406if test "${enable_permissive+set}" = set; then
2407 enableval="$enable_permissive"
2408
2409 if test "$enableval" = yes; then
2410 ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
2411 else
2412 ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
2413 fi
2414
2415else
2416
2417 LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
2418 if test "x$LINE" != x ; then
2419 eval "DEFAULT_$LINE"
2420 else
2421 no_cache=1
2422 fi
2423
2424 ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
2425
2426fi
2427
2428
2429 eval "$ac_cv_use_permissive"
2430 if test "$no_cache" != 1; then
2431 echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
2432 fi
2433
2434 if test "$wxUSE_PERMISSIVE" = yes; then
2435 echo "$ac_t""yes" 1>&6
2436 else
2437 echo "$ac_t""no" 1>&6
2438 fi
2439
2440
2441 echo $ac_n "checking "for --enable-no_deps"""... $ac_c" 1>&6
6f72b082 2442echo "configure:2443: checking "for --enable-no_deps"" >&5
10f2d63a
VZ
2443 no_cache=0
2444 # Check whether --enable-no_deps or --disable-no_deps was given.
2445if test "${enable_no_deps+set}" = set; then
2446 enableval="$enable_no_deps"
2447
2448 if test "$enableval" = yes; then
2449 ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
2450 else
2451 ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
2452 fi
2453
2454else
2455
2456 LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
2457 if test "x$LINE" != x ; then
2458 eval "DEFAULT_$LINE"
2459 else
2460 no_cache=1
2461 fi
2462
2463 ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
2464
2465fi
2466
2467
2468 eval "$ac_cv_use_no_deps"
2469 if test "$no_cache" != 1; then
2470 echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
2471 fi
2472
2473 if test "$wxUSE_NO_DEPS" = yes; then
2474 echo "$ac_t""yes" 1>&6
2475 else
2476 echo "$ac_t""no" 1>&6
2477 fi
2478
2479
2480
2481
2482 echo $ac_n "checking "for --enable-intl"""... $ac_c" 1>&6
6f72b082 2483echo "configure:2484: checking "for --enable-intl"" >&5
10f2d63a
VZ
2484 no_cache=0
2485 # Check whether --enable-intl or --disable-intl was given.
2486if test "${enable_intl+set}" = set; then
2487 enableval="$enable_intl"
2488
2489 if test "$enableval" = yes; then
2490 ac_cv_use_intl='wxUSE_INTL=yes'
2491 else
2492 ac_cv_use_intl='wxUSE_INTL=no'
2493 fi
2494
2495else
2496
2497 LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
2498 if test "x$LINE" != x ; then
2499 eval "DEFAULT_$LINE"
2500 else
2501 no_cache=1
2502 fi
2503
2504 ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
2505
2506fi
2507
2508
2509 eval "$ac_cv_use_intl"
2510 if test "$no_cache" != 1; then
2511 echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
2512 fi
2513
2514 if test "$wxUSE_INTL" = yes; then
2515 echo "$ac_t""yes" 1>&6
2516 else
2517 echo "$ac_t""no" 1>&6
2518 fi
2519
2520
2521 echo $ac_n "checking "for --enable-config"""... $ac_c" 1>&6
6f72b082 2522echo "configure:2523: checking "for --enable-config"" >&5
10f2d63a
VZ
2523 no_cache=0
2524 # Check whether --enable-config or --disable-config was given.
2525if test "${enable_config+set}" = set; then
2526 enableval="$enable_config"
2527
2528 if test "$enableval" = yes; then
2529 ac_cv_use_config='wxUSE_CONFIG=yes'
2530 else
2531 ac_cv_use_config='wxUSE_CONFIG=no'
2532 fi
2533
2534else
2535
2536 LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
2537 if test "x$LINE" != x ; then
2538 eval "DEFAULT_$LINE"
2539 else
2540 no_cache=1
2541 fi
2542
2543 ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
2544
2545fi
2546
2547
2548 eval "$ac_cv_use_config"
2549 if test "$no_cache" != 1; then
2550 echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
2551 fi
2552
2553 if test "$wxUSE_CONFIG" = yes; then
2554 echo "$ac_t""yes" 1>&6
2555 else
2556 echo "$ac_t""no" 1>&6
2557 fi
2558
2559
b12915c1 2560
10f2d63a 2561 echo $ac_n "checking "for --enable-sockets"""... $ac_c" 1>&6
6f72b082 2562echo "configure:2563: checking "for --enable-sockets"" >&5
10f2d63a
VZ
2563 no_cache=0
2564 # Check whether --enable-sockets or --disable-sockets was given.
2565if test "${enable_sockets+set}" = set; then
2566 enableval="$enable_sockets"
2567
2568 if test "$enableval" = yes; then
2569 ac_cv_use_sockets='wxUSE_SOCKETS=yes'
2570 else
2571 ac_cv_use_sockets='wxUSE_SOCKETS=no'
2572 fi
2573
2574else
2575
2576 LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
2577 if test "x$LINE" != x ; then
2578 eval "DEFAULT_$LINE"
2579 else
2580 no_cache=1
2581 fi
2582
2583 ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
2584
2585fi
2586
2587
2588 eval "$ac_cv_use_sockets"
2589 if test "$no_cache" != 1; then
2590 echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
2591 fi
2592
2593 if test "$wxUSE_SOCKETS" = yes; then
2594 echo "$ac_t""yes" 1>&6
2595 else
2596 echo "$ac_t""no" 1>&6
2597 fi
2598
b12915c1 2599
10f2d63a 2600
eb4efbdc 2601 echo $ac_n "checking "for --enable-ipc"""... $ac_c" 1>&6
6f72b082 2602echo "configure:2603: checking "for --enable-ipc"" >&5
10f2d63a 2603 no_cache=0
eb4efbdc
VZ
2604 # Check whether --enable-ipc or --disable-ipc was given.
2605if test "${enable_ipc+set}" = set; then
2606 enableval="$enable_ipc"
10f2d63a
VZ
2607
2608 if test "$enableval" = yes; then
eb4efbdc 2609 ac_cv_use_ipc='wxUSE_IPC=yes'
10f2d63a 2610 else
eb4efbdc 2611 ac_cv_use_ipc='wxUSE_IPC=no'
10f2d63a
VZ
2612 fi
2613
2614else
2615
eb4efbdc 2616 LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
10f2d63a
VZ
2617 if test "x$LINE" != x ; then
2618 eval "DEFAULT_$LINE"
2619 else
2620 no_cache=1
2621 fi
2622
eb4efbdc 2623 ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
10f2d63a
VZ
2624
2625fi
2626
2627
eb4efbdc 2628 eval "$ac_cv_use_ipc"
10f2d63a 2629 if test "$no_cache" != 1; then
eb4efbdc 2630 echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2631 fi
2632
eb4efbdc 2633 if test "$wxUSE_IPC" = yes; then
10f2d63a
VZ
2634 echo "$ac_t""yes" 1>&6
2635 else
2636 echo "$ac_t""no" 1>&6
2637 fi
2638
2639
eb4efbdc
VZ
2640
2641 echo $ac_n "checking "for --enable-dialupman"""... $ac_c" 1>&6
6f72b082 2642echo "configure:2643: checking "for --enable-dialupman"" >&5
10f2d63a 2643 no_cache=0
eb4efbdc
VZ
2644 # Check whether --enable-dialupman or --disable-dialupman was given.
2645if test "${enable_dialupman+set}" = set; then
2646 enableval="$enable_dialupman"
10f2d63a
VZ
2647
2648 if test "$enableval" = yes; then
eb4efbdc 2649 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
10f2d63a 2650 else
eb4efbdc 2651 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
10f2d63a
VZ
2652 fi
2653
2654else
2655
eb4efbdc 2656 LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
10f2d63a
VZ
2657 if test "x$LINE" != x ; then
2658 eval "DEFAULT_$LINE"
2659 else
2660 no_cache=1
2661 fi
2662
eb4efbdc 2663 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
10f2d63a
VZ
2664
2665fi
2666
2667
eb4efbdc 2668 eval "$ac_cv_use_dialupman"
10f2d63a 2669 if test "$no_cache" != 1; then
eb4efbdc 2670 echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2671 fi
2672
eb4efbdc 2673 if test "$wxUSE_DIALUP_MANAGER" = yes; then
10f2d63a
VZ
2674 echo "$ac_t""yes" 1>&6
2675 else
2676 echo "$ac_t""no" 1>&6
2677 fi
2678
2679
2680 echo $ac_n "checking "for --enable-apple_ieee"""... $ac_c" 1>&6
6f72b082 2681echo "configure:2682: checking "for --enable-apple_ieee"" >&5
10f2d63a
VZ
2682 no_cache=0
2683 # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
2684if test "${enable_apple_ieee+set}" = set; then
2685 enableval="$enable_apple_ieee"
2686
2687 if test "$enableval" = yes; then
2688 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
2689 else
2690 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
2691 fi
2692
2693else
2694
2695 LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
2696 if test "x$LINE" != x ; then
2697 eval "DEFAULT_$LINE"
2698 else
2699 no_cache=1
2700 fi
2701
2702 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
2703
2704fi
2705
2706
2707 eval "$ac_cv_use_apple_ieee"
2708 if test "$no_cache" != 1; then
2709 echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
2710 fi
2711
2712 if test "$wxUSE_APPLE_IEEE" = yes; then
2713 echo "$ac_t""yes" 1>&6
2714 else
2715 echo "$ac_t""no" 1>&6
2716 fi
2717
2718
2719 echo $ac_n "checking "for --enable-timedate"""... $ac_c" 1>&6
6f72b082 2720echo "configure:2721: checking "for --enable-timedate"" >&5
10f2d63a
VZ
2721 no_cache=0
2722 # Check whether --enable-timedate or --disable-timedate was given.
2723if test "${enable_timedate+set}" = set; then
2724 enableval="$enable_timedate"
2725
2726 if test "$enableval" = yes; then
2727 ac_cv_use_timedate='wxUSE_TIMEDATE=yes'
2728 else
2729 ac_cv_use_timedate='wxUSE_TIMEDATE=no'
2730 fi
2731
2732else
2733
2734 LINE=`grep "wxUSE_TIMEDATE" ${wx_arg_cache_file}`
2735 if test "x$LINE" != x ; then
2736 eval "DEFAULT_$LINE"
2737 else
2738 no_cache=1
2739 fi
2740
2741 ac_cv_use_timedate='wxUSE_TIMEDATE='$DEFAULT_wxUSE_TIMEDATE
2742
2743fi
2744
2745
2746 eval "$ac_cv_use_timedate"
2747 if test "$no_cache" != 1; then
2748 echo $ac_cv_use_timedate >> ${wx_arg_cache_file}.tmp
2749 fi
2750
2751 if test "$wxUSE_TIMEDATE" = yes; then
2752 echo "$ac_t""yes" 1>&6
2753 else
2754 echo "$ac_t""no" 1>&6
2755 fi
2756
2757
2758 echo $ac_n "checking "for --enable-wave"""... $ac_c" 1>&6
6f72b082 2759echo "configure:2760: checking "for --enable-wave"" >&5
10f2d63a
VZ
2760 no_cache=0
2761 # Check whether --enable-wave or --disable-wave was given.
2762if test "${enable_wave+set}" = set; then
2763 enableval="$enable_wave"
2764
2765 if test "$enableval" = yes; then
2766 ac_cv_use_wave='wxUSE_WAVE=yes'
2767 else
2768 ac_cv_use_wave='wxUSE_WAVE=no'
2769 fi
2770
2771else
2772
2773 LINE=`grep "wxUSE_WAVE" ${wx_arg_cache_file}`
2774 if test "x$LINE" != x ; then
2775 eval "DEFAULT_$LINE"
2776 else
2777 no_cache=1
2778 fi
2779
2780 ac_cv_use_wave='wxUSE_WAVE='$DEFAULT_wxUSE_WAVE
2781
2782fi
2783
2784
2785 eval "$ac_cv_use_wave"
2786 if test "$no_cache" != 1; then
2787 echo $ac_cv_use_wave >> ${wx_arg_cache_file}.tmp
2788 fi
2789
2790 if test "$wxUSE_WAVE" = yes; then
2791 echo "$ac_t""yes" 1>&6
2792 else
2793 echo "$ac_t""no" 1>&6
2794 fi
2795
2796
2797 echo $ac_n "checking "for --enable-fraction"""... $ac_c" 1>&6
6f72b082 2798echo "configure:2799: checking "for --enable-fraction"" >&5
10f2d63a
VZ
2799 no_cache=0
2800 # Check whether --enable-fraction or --disable-fraction was given.
2801if test "${enable_fraction+set}" = set; then
2802 enableval="$enable_fraction"
2803
2804 if test "$enableval" = yes; then
2805 ac_cv_use_fraction='wxUSE_FRACTION=yes'
2806 else
2807 ac_cv_use_fraction='wxUSE_FRACTION=no'
2808 fi
2809
2810else
2811
2812 LINE=`grep "wxUSE_FRACTION" ${wx_arg_cache_file}`
2813 if test "x$LINE" != x ; then
2814 eval "DEFAULT_$LINE"
2815 else
2816 no_cache=1
2817 fi
2818
2819 ac_cv_use_fraction='wxUSE_FRACTION='$DEFAULT_wxUSE_FRACTION
2820
2821fi
2822
2823
2824 eval "$ac_cv_use_fraction"
2825 if test "$no_cache" != 1; then
2826 echo $ac_cv_use_fraction >> ${wx_arg_cache_file}.tmp
2827 fi
2828
2829 if test "$wxUSE_FRACTION" = yes; then
2830 echo "$ac_t""yes" 1>&6
2831 else
2832 echo "$ac_t""no" 1>&6
2833 fi
2834
2835
2836 echo $ac_n "checking "for --enable-dynlib"""... $ac_c" 1>&6
6f72b082 2837echo "configure:2838: checking "for --enable-dynlib"" >&5
10f2d63a
VZ
2838 no_cache=0
2839 # Check whether --enable-dynlib or --disable-dynlib was given.
2840if test "${enable_dynlib+set}" = set; then
2841 enableval="$enable_dynlib"
2842
2843 if test "$enableval" = yes; then
2844 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
2845 else
2846 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
2847 fi
2848
2849else
2850
2851 LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
2852 if test "x$LINE" != x ; then
2853 eval "DEFAULT_$LINE"
2854 else
2855 no_cache=1
2856 fi
2857
2858 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
2859
2860fi
2861
2862
2863 eval "$ac_cv_use_dynlib"
2864 if test "$no_cache" != 1; then
2865 echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
2866 fi
2867
2868 if test "$wxUSE_DYNLIB_CLASS" = yes; then
2869 echo "$ac_t""yes" 1>&6
2870 else
2871 echo "$ac_t""no" 1>&6
2872 fi
2873
2874
2875 echo $ac_n "checking "for --enable-longlong"""... $ac_c" 1>&6
6f72b082 2876echo "configure:2877: checking "for --enable-longlong"" >&5
10f2d63a
VZ
2877 no_cache=0
2878 # Check whether --enable-longlong or --disable-longlong was given.
2879if test "${enable_longlong+set}" = set; then
2880 enableval="$enable_longlong"
2881
2882 if test "$enableval" = yes; then
2883 ac_cv_use_longlong='wxUSE_LONGLONG=yes'
2884 else
2885 ac_cv_use_longlong='wxUSE_LONGLONG=no'
2886 fi
2887
2888else
2889
2890 LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
2891 if test "x$LINE" != x ; then
2892 eval "DEFAULT_$LINE"
2893 else
2894 no_cache=1
2895 fi
2896
2897 ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
2898
2899fi
2900
2901
2902 eval "$ac_cv_use_longlong"
2903 if test "$no_cache" != 1; then
2904 echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
2905 fi
2906
2907 if test "$wxUSE_LONGLONG" = yes; then
2908 echo "$ac_t""yes" 1>&6
2909 else
2910 echo "$ac_t""no" 1>&6
2911 fi
2912
2913
2914 echo $ac_n "checking "for --enable-log"""... $ac_c" 1>&6
6f72b082 2915echo "configure:2916: checking "for --enable-log"" >&5
10f2d63a
VZ
2916 no_cache=0
2917 # Check whether --enable-log or --disable-log was given.
2918if test "${enable_log+set}" = set; then
2919 enableval="$enable_log"
2920
2921 if test "$enableval" = yes; then
2922 ac_cv_use_log='wxUSE_LOG=yes'
2923 else
2924 ac_cv_use_log='wxUSE_LOG=no'
2925 fi
2926
2927else
2928
2929 LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
2930 if test "x$LINE" != x ; then
2931 eval "DEFAULT_$LINE"
2932 else
2933 no_cache=1
2934 fi
2935
2936 ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
2937
2938fi
2939
2940
2941 eval "$ac_cv_use_log"
2942 if test "$no_cache" != 1; then
2943 echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
2944 fi
2945
2946 if test "$wxUSE_LOG" = yes; then
2947 echo "$ac_t""yes" 1>&6
2948 else
2949 echo "$ac_t""no" 1>&6
2950 fi
2951
2952
2953 echo $ac_n "checking "for --enable-streams"""... $ac_c" 1>&6
6f72b082 2954echo "configure:2955: checking "for --enable-streams"" >&5
10f2d63a
VZ
2955 no_cache=0
2956 # Check whether --enable-streams or --disable-streams was given.
2957if test "${enable_streams+set}" = set; then
2958 enableval="$enable_streams"
2959
2960 if test "$enableval" = yes; then
2961 ac_cv_use_streams='wxUSE_STREAMS=yes'
2962 else
2963 ac_cv_use_streams='wxUSE_STREAMS=no'
2964 fi
2965
2966else
2967
2968 LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
2969 if test "x$LINE" != x ; then
2970 eval "DEFAULT_$LINE"
2971 else
2972 no_cache=1
2973 fi
2974
2975 ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
2976
2977fi
2978
2979
2980 eval "$ac_cv_use_streams"
2981 if test "$no_cache" != 1; then
2982 echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
2983 fi
2984
2985 if test "$wxUSE_STREAMS" = yes; then
2986 echo "$ac_t""yes" 1>&6
2987 else
2988 echo "$ac_t""no" 1>&6
2989 fi
2990
2991
2992 echo $ac_n "checking "for --enable-file"""... $ac_c" 1>&6
6f72b082 2993echo "configure:2994: checking "for --enable-file"" >&5
10f2d63a
VZ
2994 no_cache=0
2995 # Check whether --enable-file or --disable-file was given.
2996if test "${enable_file+set}" = set; then
2997 enableval="$enable_file"
2998
2999 if test "$enableval" = yes; then
3000 ac_cv_use_file='wxUSE_FILE=yes'
3001 else
3002 ac_cv_use_file='wxUSE_FILE=no'
3003 fi
3004
3005else
3006
3007 LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
3008 if test "x$LINE" != x ; then
3009 eval "DEFAULT_$LINE"
3010 else
3011 no_cache=1
3012 fi
3013
3014 ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
3015
3016fi
3017
3018
3019 eval "$ac_cv_use_file"
3020 if test "$no_cache" != 1; then
3021 echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
3022 fi
3023
3024 if test "$wxUSE_FILE" = yes; then
3025 echo "$ac_t""yes" 1>&6
3026 else
3027 echo "$ac_t""no" 1>&6
3028 fi
3029
3030
3031 echo $ac_n "checking "for --enable-textfile"""... $ac_c" 1>&6
6f72b082 3032echo "configure:3033: checking "for --enable-textfile"" >&5
10f2d63a
VZ
3033 no_cache=0
3034 # Check whether --enable-textfile or --disable-textfile was given.
3035if test "${enable_textfile+set}" = set; then
3036 enableval="$enable_textfile"
3037
3038 if test "$enableval" = yes; then
3039 ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
3040 else
3041 ac_cv_use_textfile='wxUSE_TEXTFILE=no'
3042 fi
3043
3044else
3045
3046 LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
3047 if test "x$LINE" != x ; then
3048 eval "DEFAULT_$LINE"
3049 else
3050 no_cache=1
3051 fi
3052
3053 ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
3054
3055fi
3056
3057
3058 eval "$ac_cv_use_textfile"
3059 if test "$no_cache" != 1; then
3060 echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
3061 fi
3062
3063 if test "$wxUSE_TEXTFILE" = yes; then
3064 echo "$ac_t""yes" 1>&6
3065 else
3066 echo "$ac_t""no" 1>&6
3067 fi
3068
3069
3070 echo $ac_n "checking "for --enable-unicode"""... $ac_c" 1>&6
6f72b082 3071echo "configure:3072: checking "for --enable-unicode"" >&5
10f2d63a
VZ
3072 no_cache=0
3073 # Check whether --enable-unicode or --disable-unicode was given.
3074if test "${enable_unicode+set}" = set; then
3075 enableval="$enable_unicode"
3076
3077 if test "$enableval" = yes; then
3078 ac_cv_use_unicode='wxUSE_UNICODE=yes'
3079 else
3080 ac_cv_use_unicode='wxUSE_UNICODE=no'
3081 fi
3082
3083else
3084
3085 LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
3086 if test "x$LINE" != x ; then
3087 eval "DEFAULT_$LINE"
3088 else
3089 no_cache=1
3090 fi
3091
3092 ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
3093
3094fi
3095
3096
3097 eval "$ac_cv_use_unicode"
3098 if test "$no_cache" != 1; then
3099 echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
3100 fi
3101
3102 if test "$wxUSE_UNICODE" = yes; then
3103 echo "$ac_t""yes" 1>&6
3104 else
3105 echo "$ac_t""no" 1>&6
3106 fi
3107
3108
3109 echo $ac_n "checking "for --enable-wcsrtombs"""... $ac_c" 1>&6
6f72b082 3110echo "configure:3111: checking "for --enable-wcsrtombs"" >&5
10f2d63a
VZ
3111 no_cache=0
3112 # Check whether --enable-wcsrtombs or --disable-wcsrtombs was given.
3113if test "${enable_wcsrtombs+set}" = set; then
3114 enableval="$enable_wcsrtombs"
3115
3116 if test "$enableval" = yes; then
3117 ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS=yes'
3118 else
3119 ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS=no'
3120 fi
3121
3122else
3123
3124 LINE=`grep "wxUSE_WCSRTOMBS" ${wx_arg_cache_file}`
3125 if test "x$LINE" != x ; then
3126 eval "DEFAULT_$LINE"
3127 else
3128 no_cache=1
3129 fi
3130
3131 ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS='$DEFAULT_wxUSE_WCSRTOMBS
3132
3133fi
3134
3135
3136 eval "$ac_cv_use_wcsrtombs"
3137 if test "$no_cache" != 1; then
3138 echo $ac_cv_use_wcsrtombs >> ${wx_arg_cache_file}.tmp
3139 fi
3140
3141 if test "$wxUSE_WCSRTOMBS" = yes; then
3142 echo "$ac_t""yes" 1>&6
3143 else
3144 echo "$ac_t""no" 1>&6
3145 fi
3146
3147
3148 echo $ac_n "checking "for --enable-wxprintfv"""... $ac_c" 1>&6
6f72b082 3149echo "configure:3150: checking "for --enable-wxprintfv"" >&5
10f2d63a
VZ
3150 no_cache=0
3151 # Check whether --enable-wxprintfv or --disable-wxprintfv was given.
3152if test "${enable_wxprintfv+set}" = set; then
3153 enableval="$enable_wxprintfv"
3154
3155 if test "$enableval" = yes; then
3156 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes'
3157 else
3158 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no'
3159 fi
3160
3161else
3162
3163 LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}`
3164 if test "x$LINE" != x ; then
3165 eval "DEFAULT_$LINE"
3166 else
3167 no_cache=1
3168 fi
3169
3170 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF
3171
3172fi
3173
3174
3175 eval "$ac_cv_use_wxprintfv"
3176 if test "$no_cache" != 1; then
3177 echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp
3178 fi
3179
3180 if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then
3181 echo "$ac_t""yes" 1>&6
3182 else
3183 echo "$ac_t""no" 1>&6
3184 fi
3185
3186
10f2d63a 3187 echo $ac_n "checking "for --enable-std_iostreams"""... $ac_c" 1>&6
6f72b082 3188echo "configure:3189: checking "for --enable-std_iostreams"" >&5
10f2d63a
VZ
3189 no_cache=0
3190 # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
3191if test "${enable_std_iostreams+set}" = set; then
3192 enableval="$enable_std_iostreams"
3193
3194 if test "$enableval" = yes; then
3195 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
3196 else
3197 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
3198 fi
3199
3200else
3201
3202 LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
3203 if test "x$LINE" != x ; then
3204 eval "DEFAULT_$LINE"
3205 else
3206 no_cache=1
3207 fi
3208
3209 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
3210
3211fi
3212
3213
3214 eval "$ac_cv_use_std_iostreams"
3215 if test "$no_cache" != 1; then
3216 echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
3217 fi
3218
3219 if test "$wxUSE_STD_IOSTREAM" = yes; then
3220 echo "$ac_t""yes" 1>&6
3221 else
3222 echo "$ac_t""no" 1>&6
3223 fi
3224
3225
24528b0c 3226 echo $ac_n "checking "for --enable-filesystem"""... $ac_c" 1>&6
6f72b082 3227echo "configure:3228: checking "for --enable-filesystem"" >&5
24528b0c
VS
3228 no_cache=0
3229 # Check whether --enable-filesystem or --disable-filesystem was given.
3230if test "${enable_filesystem+set}" = set; then
3231 enableval="$enable_filesystem"
3232
3233 if test "$enableval" = yes; then
3234 ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
3235 else
3236 ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
3237 fi
3238
3239else
3240
3241 LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}`
3242 if test "x$LINE" != x ; then
3243 eval "DEFAULT_$LINE"
3244 else
3245 no_cache=1
3246 fi
3247
3248 ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
3249
3250fi
3251
3252
3253 eval "$ac_cv_use_filesystem"
3254 if test "$no_cache" != 1; then
3255 echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
3256 fi
3257
3258 if test "$wxUSE_FILESYSTEM" = yes; then
3259 echo "$ac_t""yes" 1>&6
3260 else
3261 echo "$ac_t""no" 1>&6
3262 fi
3263
3264
10f2d63a 3265 echo $ac_n "checking "for --enable-fs_inet"""... $ac_c" 1>&6
6f72b082 3266echo "configure:3267: checking "for --enable-fs_inet"" >&5
10f2d63a
VZ
3267 no_cache=0
3268 # Check whether --enable-fs_inet or --disable-fs_inet was given.
3269if test "${enable_fs_inet+set}" = set; then
3270 enableval="$enable_fs_inet"
3271
3272 if test "$enableval" = yes; then
3273 ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
3274 else
3275 ac_cv_use_fs_inet='wxUSE_FS_INET=no'
3276 fi
3277
3278else
3279
3280 LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
3281 if test "x$LINE" != x ; then
3282 eval "DEFAULT_$LINE"
3283 else
3284 no_cache=1
3285 fi
3286
3287 ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
3288
3289fi
3290
3291
3292 eval "$ac_cv_use_fs_inet"
3293 if test "$no_cache" != 1; then
3294 echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
3295 fi
3296
3297 if test "$wxUSE_FS_INET" = yes; then
3298 echo "$ac_t""yes" 1>&6
3299 else
3300 echo "$ac_t""no" 1>&6
3301 fi
3302
3303
3304 echo $ac_n "checking "for --enable-fs_zip"""... $ac_c" 1>&6
6f72b082 3305echo "configure:3306: checking "for --enable-fs_zip"" >&5
10f2d63a
VZ
3306 no_cache=0
3307 # Check whether --enable-fs_zip or --disable-fs_zip was given.
3308if test "${enable_fs_zip+set}" = set; then
3309 enableval="$enable_fs_zip"
3310
3311 if test "$enableval" = yes; then
3312 ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
3313 else
3314 ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
3315 fi
3316
3317else
3318
3319 LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
3320 if test "x$LINE" != x ; then
3321 eval "DEFAULT_$LINE"
3322 else
3323 no_cache=1
3324 fi
3325
3326 ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
3327
3328fi
3329
3330
3331 eval "$ac_cv_use_fs_zip"
3332 if test "$no_cache" != 1; then
3333 echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
3334 fi
3335
3336 if test "$wxUSE_FS_ZIP" = yes; then
3337 echo "$ac_t""yes" 1>&6
3338 else
3339 echo "$ac_t""no" 1>&6
3340 fi
3341
3342
3343 echo $ac_n "checking "for --enable-zipstream"""... $ac_c" 1>&6
6f72b082 3344echo "configure:3345: checking "for --enable-zipstream"" >&5
10f2d63a
VZ
3345 no_cache=0
3346 # Check whether --enable-zipstream or --disable-zipstream was given.
3347if test "${enable_zipstream+set}" = set; then
3348 enableval="$enable_zipstream"
3349
3350 if test "$enableval" = yes; then
3351 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
3352 else
3353 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
3354 fi
3355
3356else
3357
3358 LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
3359 if test "x$LINE" != x ; then
3360 eval "DEFAULT_$LINE"
3361 else
3362 no_cache=1
3363 fi
3364
3365 ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
3366
3367fi
3368
3369
3370 eval "$ac_cv_use_zipstream"
3371 if test "$no_cache" != 1; then
3372 echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
3373 fi
3374
3375 if test "$wxUSE_ZIPSTREAM" = yes; then
3376 echo "$ac_t""yes" 1>&6
3377 else
3378 echo "$ac_t""no" 1>&6
3379 fi
3380
3381
3382
eb4efbdc 3383 echo $ac_n "checking "for --enable-catch_segvs"""... $ac_c" 1>&6
6f72b082 3384echo "configure:3385: checking "for --enable-catch_segvs"" >&5
eb4efbdc
VZ
3385 no_cache=0
3386 # Check whether --enable-catch_segvs or --disable-catch_segvs was given.
3387if test "${enable_catch_segvs+set}" = set; then
3388 enableval="$enable_catch_segvs"
3389
3390 if test "$enableval" = yes; then
3391 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
3392 else
3393 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
3394 fi
3395
3396else
3397
3398 LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}`
3399 if test "x$LINE" != x ; then
3400 eval "DEFAULT_$LINE"
3401 else
3402 no_cache=1
3403 fi
3404
3405 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION
3406
3407fi
3408
3409
3410 eval "$ac_cv_use_catch_segvs"
3411 if test "$no_cache" != 1; then
3412 echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp
3413 fi
3414
3415 if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then
3416 echo "$ac_t""yes" 1>&6
3417 else
3418 echo "$ac_t""no" 1>&6
3419 fi
3420
3421
3422
10f2d63a
VZ
3423
3424 echo $ac_n "checking "for --enable-threads"""... $ac_c" 1>&6
6f72b082 3425echo "configure:3426: checking "for --enable-threads"" >&5
10f2d63a
VZ
3426 no_cache=0
3427 # Check whether --enable-threads or --disable-threads was given.
3428if test "${enable_threads+set}" = set; then
3429 enableval="$enable_threads"
3430
3431 if test "$enableval" = yes; then
3432 ac_cv_use_threads='wxUSE_THREADS=yes'
3433 else
3434 ac_cv_use_threads='wxUSE_THREADS=no'
3435 fi
3436
3437else
3438
3439 LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
3440 if test "x$LINE" != x ; then
3441 eval "DEFAULT_$LINE"
3442 else
3443 no_cache=1
3444 fi
3445
3446 ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
3447
3448fi
3449
3450
3451 eval "$ac_cv_use_threads"
3452 if test "$no_cache" != 1; then
3453 echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
3454 fi
3455
3456 if test "$wxUSE_THREADS" = yes; then
3457 echo "$ac_t""yes" 1>&6
3458 else
3459 echo "$ac_t""no" 1>&6
3460 fi
3461
3462
3463 echo $ac_n "checking "for --enable-serial"""... $ac_c" 1>&6
6f72b082 3464echo "configure:3465: checking "for --enable-serial"" >&5
10f2d63a
VZ
3465 no_cache=0
3466 # Check whether --enable-serial or --disable-serial was given.
3467if test "${enable_serial+set}" = set; then
3468 enableval="$enable_serial"
3469
3470 if test "$enableval" = yes; then
3471 ac_cv_use_serial='wxUSE_SERIAL=yes'
3472 else
3473 ac_cv_use_serial='wxUSE_SERIAL=no'
3474 fi
3475
3476else
3477
3478 LINE=`grep "wxUSE_SERIAL" ${wx_arg_cache_file}`
3479 if test "x$LINE" != x ; then
3480 eval "DEFAULT_$LINE"
3481 else
3482 no_cache=1
3483 fi
3484
3485 ac_cv_use_serial='wxUSE_SERIAL='$DEFAULT_wxUSE_SERIAL
3486
3487fi
3488
3489
3490 eval "$ac_cv_use_serial"
3491 if test "$no_cache" != 1; then
3492 echo $ac_cv_use_serial >> ${wx_arg_cache_file}.tmp
3493 fi
3494
3495 if test "$wxUSE_SERIAL" = yes; then
3496 echo "$ac_t""yes" 1>&6
3497 else
3498 echo "$ac_t""no" 1>&6
3499 fi
3500
3501
b12915c1
VZ
3502if test "$wxUSE_GUI" = "yes"; then
3503
10f2d63a
VZ
3504
3505
3506 echo $ac_n "checking "for --enable-docview"""... $ac_c" 1>&6
6f72b082 3507echo "configure:3508: checking "for --enable-docview"" >&5
10f2d63a
VZ
3508 no_cache=0
3509 # Check whether --enable-docview or --disable-docview was given.
3510if test "${enable_docview+set}" = set; then
3511 enableval="$enable_docview"
3512
3513 if test "$enableval" = yes; then
3514 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
3515 else
3516 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
3517 fi
3518
3519else
3520
3521 LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
3522 if test "x$LINE" != x ; then
3523 eval "DEFAULT_$LINE"
3524 else
3525 no_cache=1
3526 fi
3527
3528 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
3529
3530fi
3531
3532
3533 eval "$ac_cv_use_docview"
3534 if test "$no_cache" != 1; then
3535 echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
3536 fi
3537
3538 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
3539 echo "$ac_t""yes" 1>&6
3540 else
3541 echo "$ac_t""no" 1>&6
3542 fi
3543
3544
3545 echo $ac_n "checking "for --enable-help"""... $ac_c" 1>&6
6f72b082 3546echo "configure:3547: checking "for --enable-help"" >&5
10f2d63a
VZ
3547 no_cache=0
3548 # Check whether --enable-help or --disable-help was given.
3549if test "${enable_help+set}" = set; then
3550 enableval="$enable_help"
3551
3552 if test "$enableval" = yes; then
3553 ac_cv_use_help='wxUSE_HELP=yes'
3554 else
3555 ac_cv_use_help='wxUSE_HELP=no'
3556 fi
3557
3558else
3559
3560 LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
3561 if test "x$LINE" != x ; then
3562 eval "DEFAULT_$LINE"
3563 else
3564 no_cache=1
3565 fi
3566
3567 ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
3568
3569fi
3570
3571
3572 eval "$ac_cv_use_help"
3573 if test "$no_cache" != 1; then
3574 echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
3575 fi
3576
3577 if test "$wxUSE_HELP" = yes; then
3578 echo "$ac_t""yes" 1>&6
3579 else
3580 echo "$ac_t""no" 1>&6
3581 fi
3582
3583
3584 echo $ac_n "checking "for --enable-constraints"""... $ac_c" 1>&6
6f72b082 3585echo "configure:3586: checking "for --enable-constraints"" >&5
10f2d63a
VZ
3586 no_cache=0
3587 # Check whether --enable-constraints or --disable-constraints was given.
3588if test "${enable_constraints+set}" = set; then
3589 enableval="$enable_constraints"
3590
3591 if test "$enableval" = yes; then
3592 ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
3593 else
3594 ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
3595 fi
3596
3597else
3598
3599 LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
3600 if test "x$LINE" != x ; then
3601 eval "DEFAULT_$LINE"
3602 else
3603 no_cache=1
3604 fi
3605
3606 ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
3607
3608fi
3609
3610
3611 eval "$ac_cv_use_constraints"
3612 if test "$no_cache" != 1; then
3613 echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
3614 fi
3615
3616 if test "$wxUSE_CONSTRAINTS" = yes; then
3617 echo "$ac_t""yes" 1>&6
3618 else
3619 echo "$ac_t""no" 1>&6
3620 fi
3621
3622
3623 echo $ac_n "checking "for --enable-printarch"""... $ac_c" 1>&6
6f72b082 3624echo "configure:3625: checking "for --enable-printarch"" >&5
10f2d63a
VZ
3625 no_cache=0
3626 # Check whether --enable-printarch or --disable-printarch was given.
3627if test "${enable_printarch+set}" = set; then
3628 enableval="$enable_printarch"
3629
3630 if test "$enableval" = yes; then
3631 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
3632 else
3633 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
3634 fi
3635
3636else
3637
3638 LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
3639 if test "x$LINE" != x ; then
3640 eval "DEFAULT_$LINE"
3641 else
3642 no_cache=1
3643 fi
3644
3645 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
3646
3647fi
3648
3649
3650 eval "$ac_cv_use_printarch"
3651 if test "$no_cache" != 1; then
3652 echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
3653 fi
3654
3655 if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
3656 echo "$ac_t""yes" 1>&6
3657 else
3658 echo "$ac_t""no" 1>&6
3659 fi
3660
3661
3662 echo $ac_n "checking "for --enable-mdi"""... $ac_c" 1>&6
6f72b082 3663echo "configure:3664: checking "for --enable-mdi"" >&5
10f2d63a
VZ
3664 no_cache=0
3665 # Check whether --enable-mdi or --disable-mdi was given.
3666if test "${enable_mdi+set}" = set; then
3667 enableval="$enable_mdi"
3668
3669 if test "$enableval" = yes; then
3670 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=yes'
3671 else
3672 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=no'
3673 fi
3674
3675else
3676
3677 LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
3678 if test "x$LINE" != x ; then
3679 eval "DEFAULT_$LINE"
3680 else
3681 no_cache=1
3682 fi
3683
3684 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
3685
3686fi
3687
3688
3689 eval "$ac_cv_use_mdi"
3690 if test "$no_cache" != 1; then
3691 echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
3692 fi
3693
3694 if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
3695 echo "$ac_t""yes" 1>&6
3696 else
3697 echo "$ac_t""no" 1>&6
3698 fi
3699
3700
3701
3702 echo $ac_n "checking "for --enable-postscript"""... $ac_c" 1>&6
6f72b082 3703echo "configure:3704: checking "for --enable-postscript"" >&5
10f2d63a
VZ
3704 no_cache=0
3705 # Check whether --enable-postscript or --disable-postscript was given.
3706if test "${enable_postscript+set}" = set; then
3707 enableval="$enable_postscript"
3708
3709 if test "$enableval" = yes; then
3710 ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
3711 else
3712 ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
3713 fi
3714
3715else
3716
3717 LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
3718 if test "x$LINE" != x ; then
3719 eval "DEFAULT_$LINE"
3720 else
3721 no_cache=1
3722 fi
3723
3724 ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
3725
3726fi
3727
3728
3729 eval "$ac_cv_use_postscript"
3730 if test "$no_cache" != 1; then
3731 echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
3732 fi
3733
3734 if test "$wxUSE_POSTSCRIPT" = yes; then
3735 echo "$ac_t""yes" 1>&6
3736 else
3737 echo "$ac_t""no" 1>&6
3738 fi
3739
3740
3741
3742
3743 echo $ac_n "checking "for --enable-prologio"""... $ac_c" 1>&6
6f72b082 3744echo "configure:3745: checking "for --enable-prologio"" >&5
10f2d63a
VZ
3745 no_cache=0
3746 # Check whether --enable-prologio or --disable-prologio was given.
3747if test "${enable_prologio+set}" = set; then
3748 enableval="$enable_prologio"
3749
3750 if test "$enableval" = yes; then
3751 ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
3752 else
3753 ac_cv_use_prologio='wxUSE_PROLOGIO=no'
3754 fi
3755
3756else
3757
3758 LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
3759 if test "x$LINE" != x ; then
3760 eval "DEFAULT_$LINE"
3761 else
3762 no_cache=1
3763 fi
3764
3765 ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
3766
3767fi
3768
3769
3770 eval "$ac_cv_use_prologio"
3771 if test "$no_cache" != 1; then
3772 echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
3773 fi
3774
3775 if test "$wxUSE_PROLOGIO" = yes; then
3776 echo "$ac_t""yes" 1>&6
3777 else
3778 echo "$ac_t""no" 1>&6
3779 fi
3780
3781
3782 echo $ac_n "checking "for --enable-resources"""... $ac_c" 1>&6
6f72b082 3783echo "configure:3784: checking "for --enable-resources"" >&5
10f2d63a
VZ
3784 no_cache=0
3785 # Check whether --enable-resources or --disable-resources was given.
3786if test "${enable_resources+set}" = set; then
3787 enableval="$enable_resources"
3788
3789 if test "$enableval" = yes; then
3790 ac_cv_use_resources='wxUSE_RESOURCES=yes'
3791 else
3792 ac_cv_use_resources='wxUSE_RESOURCES=no'
3793 fi
3794
3795else
3796
3797 LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
3798 if test "x$LINE" != x ; then
3799 eval "DEFAULT_$LINE"
3800 else
3801 no_cache=1
3802 fi
3803
3804 ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
3805
3806fi
3807
3808
3809 eval "$ac_cv_use_resources"
3810 if test "$no_cache" != 1; then
3811 echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
3812 fi
3813
3814 if test "$wxUSE_RESOURCES" = yes; then
3815 echo "$ac_t""yes" 1>&6
3816 else
3817 echo "$ac_t""no" 1>&6
3818 fi
3819
3820
3821
3822 echo $ac_n "checking "for --enable-xresources"""... $ac_c" 1>&6
6f72b082 3823echo "configure:3824: checking "for --enable-xresources"" >&5
10f2d63a
VZ
3824 no_cache=0
3825 # Check whether --enable-xresources or --disable-xresources was given.
3826if test "${enable_xresources+set}" = set; then
3827 enableval="$enable_xresources"
3828
3829 if test "$enableval" = yes; then
3830 ac_cv_use_xresources='wxUSE_X_RESOURCES=yes'
3831 else
3832 ac_cv_use_xresources='wxUSE_X_RESOURCES=no'
3833 fi
3834
3835else
3836
3837 LINE=`grep "wxUSE_X_RESOURCES" ${wx_arg_cache_file}`
3838 if test "x$LINE" != x ; then
3839 eval "DEFAULT_$LINE"
3840 else
3841 no_cache=1
3842 fi
3843
3844 ac_cv_use_xresources='wxUSE_X_RESOURCES='$DEFAULT_wxUSE_X_RESOURCES
3845
3846fi
3847
3848
3849 eval "$ac_cv_use_xresources"
3850 if test "$no_cache" != 1; then
3851 echo $ac_cv_use_xresources >> ${wx_arg_cache_file}.tmp
3852 fi
3853
3854 if test "$wxUSE_X_RESOURCES" = yes; then
3855 echo "$ac_t""yes" 1>&6
3856 else
3857 echo "$ac_t""no" 1>&6
3858 fi
3859
3860
3861
3862
3863 echo $ac_n "checking "for --enable-clipboard"""... $ac_c" 1>&6
6f72b082 3864echo "configure:3865: checking "for --enable-clipboard"" >&5
10f2d63a
VZ
3865 no_cache=0
3866 # Check whether --enable-clipboard or --disable-clipboard was given.
3867if test "${enable_clipboard+set}" = set; then
3868 enableval="$enable_clipboard"
3869
3870 if test "$enableval" = yes; then
3871 ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
3872 else
3873 ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
3874 fi
3875
3876else
3877
3878 LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
3879 if test "x$LINE" != x ; then
3880 eval "DEFAULT_$LINE"
3881 else
3882 no_cache=1
3883 fi
3884
3885 ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
3886
3887fi
3888
3889
3890 eval "$ac_cv_use_clipboard"
3891 if test "$no_cache" != 1; then
3892 echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
3893 fi
3894
3895 if test "$wxUSE_CLIPBOARD" = yes; then
3896 echo "$ac_t""yes" 1>&6
3897 else
3898 echo "$ac_t""no" 1>&6
3899 fi
3900
3901
3902 echo $ac_n "checking "for --enable-dnd"""... $ac_c" 1>&6
6f72b082 3903echo "configure:3904: checking "for --enable-dnd"" >&5
10f2d63a
VZ
3904 no_cache=0
3905 # Check whether --enable-dnd or --disable-dnd was given.
3906if test "${enable_dnd+set}" = set; then
3907 enableval="$enable_dnd"
3908
3909 if test "$enableval" = yes; then
3910 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
3911 else
3912 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
3913 fi
3914
3915else
3916
3917 LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
3918 if test "x$LINE" != x ; then
3919 eval "DEFAULT_$LINE"
3920 else
3921 no_cache=1
3922 fi
3923
3924 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
3925
3926fi
3927
3928
3929 eval "$ac_cv_use_dnd"
3930 if test "$no_cache" != 1; then
3931 echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
3932 fi
3933
3934 if test "$wxUSE_DRAG_AND_DROP" = yes; then
3935 echo "$ac_t""yes" 1>&6
3936 else
3937 echo "$ac_t""no" 1>&6
3938 fi
3939
3940
3941
3942 echo $ac_n "checking "for --enable-wxtree"""... $ac_c" 1>&6
6f72b082 3943echo "configure:3944: checking "for --enable-wxtree"" >&5
10f2d63a
VZ
3944 no_cache=0
3945 # Check whether --enable-wxtree or --disable-wxtree was given.
3946if test "${enable_wxtree+set}" = set; then
3947 enableval="$enable_wxtree"
3948
3949 if test "$enableval" = yes; then
3950 ac_cv_use_wxtree='wxUSE_WXTREE=yes'
3951 else
3952 ac_cv_use_wxtree='wxUSE_WXTREE=no'
3953 fi
3954
3955else
3956
3957 LINE=`grep "wxUSE_WXTREE" ${wx_arg_cache_file}`
3958 if test "x$LINE" != x ; then
3959 eval "DEFAULT_$LINE"
3960 else
3961 no_cache=1
3962 fi
3963
3964 ac_cv_use_wxtree='wxUSE_WXTREE='$DEFAULT_wxUSE_WXTREE
3965
3966fi
3967
3968
3969 eval "$ac_cv_use_wxtree"
3970 if test "$no_cache" != 1; then
3971 echo $ac_cv_use_wxtree >> ${wx_arg_cache_file}.tmp
3972 fi
3973
3974 if test "$wxUSE_WXTREE" = yes; then
3975 echo "$ac_t""yes" 1>&6
3976 else
3977 echo "$ac_t""no" 1>&6
3978 fi
3979
3980
3981
3982
3983 echo $ac_n "checking "for --enable-controls"""... $ac_c" 1>&6
6f72b082 3984echo "configure:3985: checking "for --enable-controls"" >&5
10f2d63a
VZ
3985 no_cache=0
3986 # Check whether --enable-controls or --disable-controls was given.
3987if test "${enable_controls+set}" = set; then
3988 enableval="$enable_controls"
3989
3990 if test "$enableval" = yes; then
3991 ac_cv_use_controls='wxUSE_CONTROLS=yes'
3992 else
3993 ac_cv_use_controls='wxUSE_CONTROLS=no'
3994 fi
3995
3996else
3997
3998 LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
3999 if test "x$LINE" != x ; then
4000 eval "DEFAULT_$LINE"
4001 else
4002 no_cache=1
4003 fi
4004
4005 ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
4006
4007fi
4008
4009
4010 eval "$ac_cv_use_controls"
4011 if test "$no_cache" != 1; then
4012 echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
4013 fi
4014
4015 if test "$wxUSE_CONTROLS" = yes; then
4016 echo "$ac_t""yes" 1>&6
4017 else
4018 echo "$ac_t""no" 1>&6
4019 fi
4020
4021
4022if test "$wxUSE_CONTROLS" = "yes"; then
4023 DEFAULT_wxUSE_ACCEL=yes
4024 DEFAULT_wxUSE_CARET=yes
4025 DEFAULT_wxUSE_COMBOBOX=yes
4026 DEFAULT_wxUSE_BMPBUTTON=yes
4027 DEFAULT_wxUSE_CHECKBOX=yes
4028 DEFAULT_wxUSE_CHECKLISTBOX=yes
4029 DEFAULT_wxUSE_CHOICE=yes
4030 DEFAULT_wxUSE_GAUGE=yes
4031 DEFAULT_wxUSE_GRID=yes
cc977e5f 4032 DEFAULT_wxUSE_NEW_GRID=yes
10f2d63a
VZ
4033 DEFAULT_wxUSE_IMAGLIST=yes
4034 DEFAULT_wxUSE_LISTBOX=yes
4035 DEFAULT_wxUSE_LISTCTRL=yes
4036 DEFAULT_wxUSE_NOTEBOOK=yes
4037 DEFAULT_wxUSE_RADIOBOX=yes
4038 DEFAULT_wxUSE_RADIOBTN=yes
4039 DEFAULT_wxUSE_SASH=yes
4040 DEFAULT_wxUSE_SCROLLBAR=yes
4041 DEFAULT_wxUSE_SLIDER=yes
4042 DEFAULT_wxUSE_SPINBTN=yes
56cfaa52 4043 DEFAULT_wxUSE_SPINCTRL=yes
10f2d63a
VZ
4044 DEFAULT_wxUSE_SPLITTER=yes
4045 DEFAULT_wxUSE_STATBMP=yes
4046 DEFAULT_wxUSE_STATBOX=yes
4047 DEFAULT_wxUSE_STATLINE=yes
4048 DEFAULT_wxUSE_STATUSBAR=yes
4049 DEFAULT_wxUSE_TAB_DIALOG=yes
4050 DEFAULT_wxUSE_TOOLBAR=yes
360d6699
VZ
4051 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
4052 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
10f2d63a
VZ
4053 DEFAULT_wxUSE_TOOLTIPS=yes
4054 DEFAULT_wxUSE_TREECTRL=yes
4055elif test "$wxUSE_CONTROLS" = "no"; then
4056 DEFAULT_wxUSE_ACCEL=no
4057 DEFAULT_wxUSE_CARET=no
4058 DEFAULT_wxUSE_COMBOBOX=no
4059 DEFAULT_wxUSE_BMPBUTTON=no
4060 DEFAULT_wxUSE_CHECKBOX=no
4061 DEFAULT_wxUSE_CHECKLISTBOX=no
4062 DEFAULT_wxUSE_CHOICE=no
4063 DEFAULT_wxUSE_GAUGE=no
4064 DEFAULT_wxUSE_GRID=no
4065 DEFAULT_wxUSE_NEW_GRID=no
4066 DEFAULT_wxUSE_IMAGLIST=no
4067 DEFAULT_wxUSE_LISTBOX=no
4068 DEFAULT_wxUSE_LISTCTRL=no
4069 DEFAULT_wxUSE_NOTEBOOK=no
4070 DEFAULT_wxUSE_RADIOBOX=no
4071 DEFAULT_wxUSE_RADIOBTN=no
4072 DEFAULT_wxUSE_SASH=no
4073 DEFAULT_wxUSE_SCROLLBAR=no
4074 DEFAULT_wxUSE_SLIDER=no
4075 DEFAULT_wxUSE_SPINBTN=no
56cfaa52 4076 DEFAULT_wxUSE_SPINCTRL=no
10f2d63a
VZ
4077 DEFAULT_wxUSE_SPLITTER=no
4078 DEFAULT_wxUSE_STATBMP=no
4079 DEFAULT_wxUSE_STATBOX=no
4080 DEFAULT_wxUSE_STATLINE=no
4081 DEFAULT_wxUSE_STATUSBAR=no
4082 DEFAULT_wxUSE_TAB_DIALOG=no
4083 DEFAULT_wxUSE_TOOLBAR=no
360d6699
VZ
4084 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
4085 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
10f2d63a
VZ
4086 DEFAULT_wxUSE_TOOLTIPS=no
4087 DEFAULT_wxUSE_TREECTRL=no
4088fi
4089
4090
4091 echo $ac_n "checking "for --enable-accel"""... $ac_c" 1>&6
6f72b082 4092echo "configure:4093: checking "for --enable-accel"" >&5
10f2d63a
VZ
4093 no_cache=0
4094 # Check whether --enable-accel or --disable-accel was given.
4095if test "${enable_accel+set}" = set; then
4096 enableval="$enable_accel"
4097
4098 if test "$enableval" = yes; then
4099 ac_cv_use_accel='wxUSE_ACCEL=yes'
4100 else
4101 ac_cv_use_accel='wxUSE_ACCEL=no'
4102 fi
4103
4104else
4105
4106 LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
4107 if test "x$LINE" != x ; then
4108 eval "DEFAULT_$LINE"
4109 else
4110 no_cache=1
4111 fi
4112
4113 ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
4114
4115fi
4116
4117
4118 eval "$ac_cv_use_accel"
4119 if test "$no_cache" != 1; then
4120 echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
4121 fi
4122
4123 if test "$wxUSE_ACCEL" = yes; then
4124 echo "$ac_t""yes" 1>&6
4125 else
4126 echo "$ac_t""no" 1>&6
4127 fi
4128
4129
4130 echo $ac_n "checking "for --enable-caret"""... $ac_c" 1>&6
6f72b082 4131echo "configure:4132: checking "for --enable-caret"" >&5
10f2d63a
VZ
4132 no_cache=0
4133 # Check whether --enable-caret or --disable-caret was given.
4134if test "${enable_caret+set}" = set; then
4135 enableval="$enable_caret"
4136
4137 if test "$enableval" = yes; then
4138 ac_cv_use_caret='wxUSE_CARET=yes'
4139 else
4140 ac_cv_use_caret='wxUSE_CARET=no'
4141 fi
4142
4143else
4144
4145 LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
4146 if test "x$LINE" != x ; then
4147 eval "DEFAULT_$LINE"
4148 else
4149 no_cache=1
4150 fi
4151
4152 ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
4153
4154fi
4155
4156
4157 eval "$ac_cv_use_caret"
4158 if test "$no_cache" != 1; then
4159 echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
4160 fi
4161
4162 if test "$wxUSE_CARET" = yes; then
4163 echo "$ac_t""yes" 1>&6
4164 else
4165 echo "$ac_t""no" 1>&6
4166 fi
4167
4168
4169 echo $ac_n "checking "for --enable-bmpbutton"""... $ac_c" 1>&6
6f72b082 4170echo "configure:4171: checking "for --enable-bmpbutton"" >&5
10f2d63a
VZ
4171 no_cache=0
4172 # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
4173if test "${enable_bmpbutton+set}" = set; then
4174 enableval="$enable_bmpbutton"
4175
4176 if test "$enableval" = yes; then
4177 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
4178 else
4179 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
4180 fi
4181
4182else
4183
4184 LINE=`grep "wxUSE_BMPBUTTON" ${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_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
4192
4193fi
4194
4195
4196 eval "$ac_cv_use_bmpbutton"
4197 if test "$no_cache" != 1; then
4198 echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
4199 fi
4200
4201 if test "$wxUSE_BMPBUTTON" = yes; then
4202 echo "$ac_t""yes" 1>&6
4203 else
4204 echo "$ac_t""no" 1>&6
4205 fi
4206
4207
4208 echo $ac_n "checking "for --enable-checkbox"""... $ac_c" 1>&6
6f72b082 4209echo "configure:4210: checking "for --enable-checkbox"" >&5
10f2d63a
VZ
4210 no_cache=0
4211 # Check whether --enable-checkbox or --disable-checkbox was given.
4212if test "${enable_checkbox+set}" = set; then
4213 enableval="$enable_checkbox"
4214
4215 if test "$enableval" = yes; then
4216 ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
4217 else
4218 ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
4219 fi
4220
4221else
4222
4223 LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
4224 if test "x$LINE" != x ; then
4225 eval "DEFAULT_$LINE"
4226 else
4227 no_cache=1
4228 fi
4229
4230 ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
4231
4232fi
4233
4234
4235 eval "$ac_cv_use_checkbox"
4236 if test "$no_cache" != 1; then
4237 echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
4238 fi
4239
4240 if test "$wxUSE_CHECKBOX" = yes; then
4241 echo "$ac_t""yes" 1>&6
4242 else
4243 echo "$ac_t""no" 1>&6
4244 fi
4245
4246
4247 echo $ac_n "checking "for --enable-checklst"""... $ac_c" 1>&6
6f72b082 4248echo "configure:4249: checking "for --enable-checklst"" >&5
10f2d63a
VZ
4249 no_cache=0
4250 # Check whether --enable-checklst or --disable-checklst was given.
4251if test "${enable_checklst+set}" = set; then
4252 enableval="$enable_checklst"
4253
4254 if test "$enableval" = yes; then
4255 ac_cv_use_checklst='wxUSE_CHECKLST=yes'
4256 else
4257 ac_cv_use_checklst='wxUSE_CHECKLST=no'
4258 fi
4259
4260else
4261
4262 LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
4263 if test "x$LINE" != x ; then
4264 eval "DEFAULT_$LINE"
4265 else
4266 no_cache=1
4267 fi
4268
4269 ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
4270
4271fi
4272
4273
4274 eval "$ac_cv_use_checklst"
4275 if test "$no_cache" != 1; then
4276 echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
4277 fi
4278
4279 if test "$wxUSE_CHECKLST" = yes; then
4280 echo "$ac_t""yes" 1>&6
4281 else
4282 echo "$ac_t""no" 1>&6
4283 fi
4284
4285
4286 echo $ac_n "checking "for --enable-choice"""... $ac_c" 1>&6
6f72b082 4287echo "configure:4288: checking "for --enable-choice"" >&5
10f2d63a
VZ
4288 no_cache=0
4289 # Check whether --enable-choice or --disable-choice was given.
4290if test "${enable_choice+set}" = set; then
4291 enableval="$enable_choice"
4292
4293 if test "$enableval" = yes; then
4294 ac_cv_use_choice='wxUSE_CHOICE=yes'
4295 else
4296 ac_cv_use_choice='wxUSE_CHOICE=no'
4297 fi
4298
4299else
4300
4301 LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
4302 if test "x$LINE" != x ; then
4303 eval "DEFAULT_$LINE"
4304 else
4305 no_cache=1
4306 fi
4307
4308 ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
4309
4310fi
4311
4312
4313 eval "$ac_cv_use_choice"
4314 if test "$no_cache" != 1; then
4315 echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
4316 fi
4317
4318 if test "$wxUSE_CHOICE" = yes; then
4319 echo "$ac_t""yes" 1>&6
4320 else
4321 echo "$ac_t""no" 1>&6
4322 fi
4323
4324
4325 echo $ac_n "checking "for --enable-combobox"""... $ac_c" 1>&6
6f72b082 4326echo "configure:4327: checking "for --enable-combobox"" >&5
10f2d63a
VZ
4327 no_cache=0
4328 # Check whether --enable-combobox or --disable-combobox was given.
4329if test "${enable_combobox+set}" = set; then
4330 enableval="$enable_combobox"
4331
4332 if test "$enableval" = yes; then
4333 ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
4334 else
4335 ac_cv_use_combobox='wxUSE_COMBOBOX=no'
4336 fi
4337
4338else
4339
4340 LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
4341 if test "x$LINE" != x ; then
4342 eval "DEFAULT_$LINE"
4343 else
4344 no_cache=1
4345 fi
4346
4347 ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
4348
4349fi
4350
4351
4352 eval "$ac_cv_use_combobox"
4353 if test "$no_cache" != 1; then
4354 echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
4355 fi
4356
4357 if test "$wxUSE_COMBOBOX" = yes; then
4358 echo "$ac_t""yes" 1>&6
4359 else
4360 echo "$ac_t""no" 1>&6
4361 fi
4362
4363
4364 echo $ac_n "checking "for --enable-gauge"""... $ac_c" 1>&6
6f72b082 4365echo "configure:4366: checking "for --enable-gauge"" >&5
10f2d63a
VZ
4366 no_cache=0
4367 # Check whether --enable-gauge or --disable-gauge was given.
4368if test "${enable_gauge+set}" = set; then
4369 enableval="$enable_gauge"
4370
4371 if test "$enableval" = yes; then
4372 ac_cv_use_gauge='wxUSE_GAUGE=yes'
4373 else
4374 ac_cv_use_gauge='wxUSE_GAUGE=no'
4375 fi
4376
4377else
4378
4379 LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
4380 if test "x$LINE" != x ; then
4381 eval "DEFAULT_$LINE"
4382 else
4383 no_cache=1
4384 fi
4385
4386 ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
4387
4388fi
4389
4390
4391 eval "$ac_cv_use_gauge"
4392 if test "$no_cache" != 1; then
4393 echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
4394 fi
4395
4396 if test "$wxUSE_GAUGE" = yes; then
4397 echo "$ac_t""yes" 1>&6
4398 else
4399 echo "$ac_t""no" 1>&6
4400 fi
4401
4402
4403 echo $ac_n "checking "for --enable-grid"""... $ac_c" 1>&6
6f72b082 4404echo "configure:4405: checking "for --enable-grid"" >&5
10f2d63a
VZ
4405 no_cache=0
4406 # Check whether --enable-grid or --disable-grid was given.
4407if test "${enable_grid+set}" = set; then
4408 enableval="$enable_grid"
4409
4410 if test "$enableval" = yes; then
4411 ac_cv_use_grid='wxUSE_GRID=yes'
4412 else
4413 ac_cv_use_grid='wxUSE_GRID=no'
4414 fi
4415
4416else
4417
4418 LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
4419 if test "x$LINE" != x ; then
4420 eval "DEFAULT_$LINE"
4421 else
4422 no_cache=1
4423 fi
4424
4425 ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
4426
4427fi
4428
4429
4430 eval "$ac_cv_use_grid"
4431 if test "$no_cache" != 1; then
4432 echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
4433 fi
4434
4435 if test "$wxUSE_GRID" = yes; then
4436 echo "$ac_t""yes" 1>&6
4437 else
4438 echo "$ac_t""no" 1>&6
4439 fi
4440
4441
4442 echo $ac_n "checking "for --enable-newgrid"""... $ac_c" 1>&6
6f72b082 4443echo "configure:4444: checking "for --enable-newgrid"" >&5
10f2d63a
VZ
4444 no_cache=0
4445 # Check whether --enable-newgrid or --disable-newgrid was given.
4446if test "${enable_newgrid+set}" = set; then
4447 enableval="$enable_newgrid"
4448
4449 if test "$enableval" = yes; then
4450 ac_cv_use_newgrid='wxUSE_NEW_GRID=yes'
4451 else
4452 ac_cv_use_newgrid='wxUSE_NEW_GRID=no'
4453 fi
4454
4455else
4456
4457 LINE=`grep "wxUSE_NEW_GRID" ${wx_arg_cache_file}`
4458 if test "x$LINE" != x ; then
4459 eval "DEFAULT_$LINE"
4460 else
4461 no_cache=1
4462 fi
4463
4464 ac_cv_use_newgrid='wxUSE_NEW_GRID='$DEFAULT_wxUSE_NEW_GRID
4465
4466fi
4467
4468
4469 eval "$ac_cv_use_newgrid"
4470 if test "$no_cache" != 1; then
4471 echo $ac_cv_use_newgrid >> ${wx_arg_cache_file}.tmp
4472 fi
4473
4474 if test "$wxUSE_NEW_GRID" = yes; then
4475 echo "$ac_t""yes" 1>&6
4476 else
4477 echo "$ac_t""no" 1>&6
4478 fi
4479
4480
4481 echo $ac_n "checking "for --enable-imaglist"""... $ac_c" 1>&6
6f72b082 4482echo "configure:4483: checking "for --enable-imaglist"" >&5
10f2d63a
VZ
4483 no_cache=0
4484 # Check whether --enable-imaglist or --disable-imaglist was given.
4485if test "${enable_imaglist+set}" = set; then
4486 enableval="$enable_imaglist"
4487
4488 if test "$enableval" = yes; then
4489 ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
4490 else
4491 ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
4492 fi
4493
4494else
4495
4496 LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
4497 if test "x$LINE" != x ; then
4498 eval "DEFAULT_$LINE"
4499 else
4500 no_cache=1
4501 fi
4502
4503 ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
4504
4505fi
4506
4507
4508 eval "$ac_cv_use_imaglist"
4509 if test "$no_cache" != 1; then
4510 echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
4511 fi
4512
4513 if test "$wxUSE_IMAGLIST" = yes; then
4514 echo "$ac_t""yes" 1>&6
4515 else
4516 echo "$ac_t""no" 1>&6
4517 fi
4518
4519
4520 echo $ac_n "checking "for --enable-listbox"""... $ac_c" 1>&6
6f72b082 4521echo "configure:4522: checking "for --enable-listbox"" >&5
10f2d63a
VZ
4522 no_cache=0
4523 # Check whether --enable-listbox or --disable-listbox was given.
4524if test "${enable_listbox+set}" = set; then
4525 enableval="$enable_listbox"
4526
4527 if test "$enableval" = yes; then
4528 ac_cv_use_listbox='wxUSE_LISTBOX=yes'
4529 else
4530 ac_cv_use_listbox='wxUSE_LISTBOX=no'
4531 fi
4532
4533else
4534
4535 LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
4536 if test "x$LINE" != x ; then
4537 eval "DEFAULT_$LINE"
4538 else
4539 no_cache=1
4540 fi
4541
4542 ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
4543
4544fi
4545
4546
4547 eval "$ac_cv_use_listbox"
4548 if test "$no_cache" != 1; then
4549 echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
4550 fi
4551
4552 if test "$wxUSE_LISTBOX" = yes; then
4553 echo "$ac_t""yes" 1>&6
4554 else
4555 echo "$ac_t""no" 1>&6
4556 fi
4557
4558
4559 echo $ac_n "checking "for --enable-listctrl"""... $ac_c" 1>&6
6f72b082 4560echo "configure:4561: checking "for --enable-listctrl"" >&5
10f2d63a
VZ
4561 no_cache=0
4562 # Check whether --enable-listctrl or --disable-listctrl was given.
4563if test "${enable_listctrl+set}" = set; then
4564 enableval="$enable_listctrl"
4565
4566 if test "$enableval" = yes; then
4567 ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
4568 else
4569 ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
4570 fi
4571
4572else
4573
4574 LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
4575 if test "x$LINE" != x ; then
4576 eval "DEFAULT_$LINE"
4577 else
4578 no_cache=1
4579 fi
4580
4581 ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
4582
4583fi
4584
4585
4586 eval "$ac_cv_use_listctrl"
4587 if test "$no_cache" != 1; then
4588 echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
4589 fi
4590
4591 if test "$wxUSE_LISTCTRL" = yes; then
4592 echo "$ac_t""yes" 1>&6
4593 else
4594 echo "$ac_t""no" 1>&6
4595 fi
4596
4597
4598 echo $ac_n "checking "for --enable-notebook"""... $ac_c" 1>&6
6f72b082 4599echo "configure:4600: checking "for --enable-notebook"" >&5
10f2d63a
VZ
4600 no_cache=0
4601 # Check whether --enable-notebook or --disable-notebook was given.
4602if test "${enable_notebook+set}" = set; then
4603 enableval="$enable_notebook"
4604
4605 if test "$enableval" = yes; then
4606 ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
4607 else
4608 ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
4609 fi
4610
4611else
4612
4613 LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
4614 if test "x$LINE" != x ; then
4615 eval "DEFAULT_$LINE"
4616 else
4617 no_cache=1
4618 fi
4619
4620 ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
4621
4622fi
4623
4624
4625 eval "$ac_cv_use_notebook"
4626 if test "$no_cache" != 1; then
4627 echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
4628 fi
4629
4630 if test "$wxUSE_NOTEBOOK" = yes; then
4631 echo "$ac_t""yes" 1>&6
4632 else
4633 echo "$ac_t""no" 1>&6
4634 fi
4635
4636
4637 echo $ac_n "checking "for --enable-radiobox"""... $ac_c" 1>&6
6f72b082 4638echo "configure:4639: checking "for --enable-radiobox"" >&5
10f2d63a
VZ
4639 no_cache=0
4640 # Check whether --enable-radiobox or --disable-radiobox was given.
4641if test "${enable_radiobox+set}" = set; then
4642 enableval="$enable_radiobox"
4643
4644 if test "$enableval" = yes; then
4645 ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
4646 else
4647 ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
4648 fi
4649
4650else
4651
4652 LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
4653 if test "x$LINE" != x ; then
4654 eval "DEFAULT_$LINE"
4655 else
4656 no_cache=1
4657 fi
4658
4659 ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
4660
4661fi
4662
4663
4664 eval "$ac_cv_use_radiobox"
4665 if test "$no_cache" != 1; then
4666 echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
4667 fi
4668
4669 if test "$wxUSE_RADIOBOX" = yes; then
4670 echo "$ac_t""yes" 1>&6
4671 else
4672 echo "$ac_t""no" 1>&6
4673 fi
4674
4675
4676 echo $ac_n "checking "for --enable-radiobtn"""... $ac_c" 1>&6
6f72b082 4677echo "configure:4678: checking "for --enable-radiobtn"" >&5
10f2d63a
VZ
4678 no_cache=0
4679 # Check whether --enable-radiobtn or --disable-radiobtn was given.
4680if test "${enable_radiobtn+set}" = set; then
4681 enableval="$enable_radiobtn"
4682
4683 if test "$enableval" = yes; then
4684 ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
4685 else
4686 ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
4687 fi
4688
4689else
4690
4691 LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
4692 if test "x$LINE" != x ; then
4693 eval "DEFAULT_$LINE"
4694 else
4695 no_cache=1
4696 fi
4697
4698 ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
4699
4700fi
4701
4702
4703 eval "$ac_cv_use_radiobtn"
4704 if test "$no_cache" != 1; then
4705 echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
4706 fi
4707
4708 if test "$wxUSE_RADIOBTN" = yes; then
4709 echo "$ac_t""yes" 1>&6
4710 else
4711 echo "$ac_t""no" 1>&6
4712 fi
4713
4714
4715 echo $ac_n "checking "for --enable-sash"""... $ac_c" 1>&6
6f72b082 4716echo "configure:4717: checking "for --enable-sash"" >&5
10f2d63a
VZ
4717 no_cache=0
4718 # Check whether --enable-sash or --disable-sash was given.
4719if test "${enable_sash+set}" = set; then
4720 enableval="$enable_sash"
4721
4722 if test "$enableval" = yes; then
4723 ac_cv_use_sash='wxUSE_SASH=yes'
4724 else
4725 ac_cv_use_sash='wxUSE_SASH=no'
4726 fi
4727
4728else
4729
4730 LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
4731 if test "x$LINE" != x ; then
4732 eval "DEFAULT_$LINE"
4733 else
4734 no_cache=1
4735 fi
4736
4737 ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
4738
4739fi
4740
4741
4742 eval "$ac_cv_use_sash"
4743 if test "$no_cache" != 1; then
4744 echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
4745 fi
4746
4747 if test "$wxUSE_SASH" = yes; then
4748 echo "$ac_t""yes" 1>&6
4749 else
4750 echo "$ac_t""no" 1>&6
4751 fi
4752
4753
4754 echo $ac_n "checking "for --enable-scrollbar"""... $ac_c" 1>&6
6f72b082 4755echo "configure:4756: checking "for --enable-scrollbar"" >&5
10f2d63a
VZ
4756 no_cache=0
4757 # Check whether --enable-scrollbar or --disable-scrollbar was given.
4758if test "${enable_scrollbar+set}" = set; then
4759 enableval="$enable_scrollbar"
4760
4761 if test "$enableval" = yes; then
4762 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
4763 else
4764 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
4765 fi
4766
4767else
4768
4769 LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
4770 if test "x$LINE" != x ; then
4771 eval "DEFAULT_$LINE"
4772 else
4773 no_cache=1
4774 fi
4775
4776 ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
4777
4778fi
4779
4780
4781 eval "$ac_cv_use_scrollbar"
4782 if test "$no_cache" != 1; then
4783 echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
4784 fi
4785
4786 if test "$wxUSE_SCROLLBAR" = yes; then
4787 echo "$ac_t""yes" 1>&6
4788 else
4789 echo "$ac_t""no" 1>&6
4790 fi
4791
4792
4793 echo $ac_n "checking "for --enable-slider"""... $ac_c" 1>&6
6f72b082 4794echo "configure:4795: checking "for --enable-slider"" >&5
10f2d63a
VZ
4795 no_cache=0
4796 # Check whether --enable-slider or --disable-slider was given.
4797if test "${enable_slider+set}" = set; then
4798 enableval="$enable_slider"
4799
4800 if test "$enableval" = yes; then
4801 ac_cv_use_slider='wxUSE_SLIDER=yes'
4802 else
4803 ac_cv_use_slider='wxUSE_SLIDER=no'
4804 fi
4805
4806else
4807
4808 LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
4809 if test "x$LINE" != x ; then
4810 eval "DEFAULT_$LINE"
4811 else
4812 no_cache=1
4813 fi
4814
4815 ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
4816
4817fi
4818
4819
4820 eval "$ac_cv_use_slider"
4821 if test "$no_cache" != 1; then
4822 echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
4823 fi
4824
4825 if test "$wxUSE_SLIDER" = yes; then
4826 echo "$ac_t""yes" 1>&6
4827 else
4828 echo "$ac_t""no" 1>&6
4829 fi
4830
4831
4832 echo $ac_n "checking "for --enable-spinbtn"""... $ac_c" 1>&6
6f72b082 4833echo "configure:4834: checking "for --enable-spinbtn"" >&5
10f2d63a
VZ
4834 no_cache=0
4835 # Check whether --enable-spinbtn or --disable-spinbtn was given.
4836if test "${enable_spinbtn+set}" = set; then
4837 enableval="$enable_spinbtn"
4838
4839 if test "$enableval" = yes; then
4840 ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
4841 else
4842 ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
4843 fi
4844
4845else
4846
4847 LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
4848 if test "x$LINE" != x ; then
4849 eval "DEFAULT_$LINE"
4850 else
4851 no_cache=1
4852 fi
4853
4854 ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
4855
4856fi
4857
4858
4859 eval "$ac_cv_use_spinbtn"
4860 if test "$no_cache" != 1; then
4861 echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
4862 fi
4863
4864 if test "$wxUSE_SPINBTN" = yes; then
4865 echo "$ac_t""yes" 1>&6
4866 else
4867 echo "$ac_t""no" 1>&6
4868 fi
4869
4870
56cfaa52 4871 echo $ac_n "checking "for --enable-spinctrl"""... $ac_c" 1>&6
6f72b082 4872echo "configure:4873: checking "for --enable-spinctrl"" >&5
56cfaa52
RR
4873 no_cache=0
4874 # Check whether --enable-spinctrl or --disable-spinctrl was given.
4875if test "${enable_spinctrl+set}" = set; then
4876 enableval="$enable_spinctrl"
4877
4878 if test "$enableval" = yes; then
4879 ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
4880 else
4881 ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
4882 fi
4883
4884else
4885
4886 LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
4887 if test "x$LINE" != x ; then
4888 eval "DEFAULT_$LINE"
4889 else
4890 no_cache=1
4891 fi
4892
4893 ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
4894
4895fi
4896
4897
4898 eval "$ac_cv_use_spinctrl"
4899 if test "$no_cache" != 1; then
4900 echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
4901 fi
4902
4903 if test "$wxUSE_SPINCTRL" = yes; then
4904 echo "$ac_t""yes" 1>&6
4905 else
4906 echo "$ac_t""no" 1>&6
4907 fi
4908
4909
10f2d63a 4910 echo $ac_n "checking "for --enable-splitter"""... $ac_c" 1>&6
6f72b082 4911echo "configure:4912: checking "for --enable-splitter"" >&5
10f2d63a
VZ
4912 no_cache=0
4913 # Check whether --enable-splitter or --disable-splitter was given.
4914if test "${enable_splitter+set}" = set; then
4915 enableval="$enable_splitter"
4916
4917 if test "$enableval" = yes; then
4918 ac_cv_use_splitter='wxUSE_SPLITTER=yes'
4919 else
4920 ac_cv_use_splitter='wxUSE_SPLITTER=no'
4921 fi
4922
4923else
4924
4925 LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
4926 if test "x$LINE" != x ; then
4927 eval "DEFAULT_$LINE"
4928 else
4929 no_cache=1
4930 fi
4931
4932 ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
4933
4934fi
4935
4936
4937 eval "$ac_cv_use_splitter"
4938 if test "$no_cache" != 1; then
4939 echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
4940 fi
4941
4942 if test "$wxUSE_SPLITTER" = yes; then
4943 echo "$ac_t""yes" 1>&6
4944 else
4945 echo "$ac_t""no" 1>&6
4946 fi
4947
4948
4949 echo $ac_n "checking "for --enable-statbmp"""... $ac_c" 1>&6
6f72b082 4950echo "configure:4951: checking "for --enable-statbmp"" >&5
10f2d63a
VZ
4951 no_cache=0
4952 # Check whether --enable-statbmp or --disable-statbmp was given.
4953if test "${enable_statbmp+set}" = set; then
4954 enableval="$enable_statbmp"
4955
4956 if test "$enableval" = yes; then
4957 ac_cv_use_statbmp='wxUSE_STATBMP=yes'
4958 else
4959 ac_cv_use_statbmp='wxUSE_STATBMP=no'
4960 fi
4961
4962else
4963
4964 LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
4965 if test "x$LINE" != x ; then
4966 eval "DEFAULT_$LINE"
4967 else
4968 no_cache=1
4969 fi
4970
4971 ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
4972
4973fi
4974
4975
4976 eval "$ac_cv_use_statbmp"
4977 if test "$no_cache" != 1; then
4978 echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
4979 fi
4980
4981 if test "$wxUSE_STATBMP" = yes; then
4982 echo "$ac_t""yes" 1>&6
4983 else
4984 echo "$ac_t""no" 1>&6
4985 fi
4986
4987
4988 echo $ac_n "checking "for --enable-statbox"""... $ac_c" 1>&6
6f72b082 4989echo "configure:4990: checking "for --enable-statbox"" >&5
10f2d63a
VZ
4990 no_cache=0
4991 # Check whether --enable-statbox or --disable-statbox was given.
4992if test "${enable_statbox+set}" = set; then
4993 enableval="$enable_statbox"
4994
4995 if test "$enableval" = yes; then
4996 ac_cv_use_statbox='wxUSE_STATBOX=yes'
4997 else
4998 ac_cv_use_statbox='wxUSE_STATBOX=no'
4999 fi
5000
5001else
5002
5003 LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
5004 if test "x$LINE" != x ; then
5005 eval "DEFAULT_$LINE"
5006 else
5007 no_cache=1
5008 fi
5009
5010 ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
5011
5012fi
5013
5014
5015 eval "$ac_cv_use_statbox"
5016 if test "$no_cache" != 1; then
5017 echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
5018 fi
5019
5020 if test "$wxUSE_STATBOX" = yes; then
5021 echo "$ac_t""yes" 1>&6
5022 else
5023 echo "$ac_t""no" 1>&6
5024 fi
5025
5026
5027 echo $ac_n "checking "for --enable-statline"""... $ac_c" 1>&6
6f72b082 5028echo "configure:5029: checking "for --enable-statline"" >&5
10f2d63a
VZ
5029 no_cache=0
5030 # Check whether --enable-statline or --disable-statline was given.
5031if test "${enable_statline+set}" = set; then
5032 enableval="$enable_statline"
5033
5034 if test "$enableval" = yes; then
5035 ac_cv_use_statline='wxUSE_STATLINE=yes'
5036 else
5037 ac_cv_use_statline='wxUSE_STATLINE=no'
5038 fi
5039
5040else
5041
5042 LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
5043 if test "x$LINE" != x ; then
5044 eval "DEFAULT_$LINE"
5045 else
5046 no_cache=1
5047 fi
5048
5049 ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
5050
5051fi
5052
5053
5054 eval "$ac_cv_use_statline"
5055 if test "$no_cache" != 1; then
5056 echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
5057 fi
5058
5059 if test "$wxUSE_STATLINE" = yes; then
5060 echo "$ac_t""yes" 1>&6
5061 else
5062 echo "$ac_t""no" 1>&6
5063 fi
5064
5065
5066 echo $ac_n "checking "for --enable-statusbar"""... $ac_c" 1>&6
6f72b082 5067echo "configure:5068: checking "for --enable-statusbar"" >&5
10f2d63a
VZ
5068 no_cache=0
5069 # Check whether --enable-statusbar or --disable-statusbar was given.
5070if test "${enable_statusbar+set}" = set; then
5071 enableval="$enable_statusbar"
5072
5073 if test "$enableval" = yes; then
5074 ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
5075 else
5076 ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
5077 fi
5078
5079else
5080
5081 LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
5082 if test "x$LINE" != x ; then
5083 eval "DEFAULT_$LINE"
5084 else
5085 no_cache=1
5086 fi
5087
5088 ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
5089
5090fi
5091
5092
5093 eval "$ac_cv_use_statusbar"
5094 if test "$no_cache" != 1; then
5095 echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
5096 fi
5097
5098 if test "$wxUSE_STATUSBAR" = yes; then
5099 echo "$ac_t""yes" 1>&6
5100 else
5101 echo "$ac_t""no" 1>&6
5102 fi
5103
5104
5105 echo $ac_n "checking "for --enable-tabdialog"""... $ac_c" 1>&6
6f72b082 5106echo "configure:5107: checking "for --enable-tabdialog"" >&5
10f2d63a
VZ
5107 no_cache=0
5108 # Check whether --enable-tabdialog or --disable-tabdialog was given.
5109if test "${enable_tabdialog+set}" = set; then
5110 enableval="$enable_tabdialog"
5111
5112 if test "$enableval" = yes; then
5113 ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes'
5114 else
5115 ac_cv_use_tabdialog='wxUSE_TABDIALOG=no'
5116 fi
5117
5118else
5119
5120 LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}`
5121 if test "x$LINE" != x ; then
5122 eval "DEFAULT_$LINE"
5123 else
5124 no_cache=1
5125 fi
5126
5127 ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG
5128
5129fi
5130
5131
5132 eval "$ac_cv_use_tabdialog"
5133 if test "$no_cache" != 1; then
5134 echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
5135 fi
5136
5137 if test "$wxUSE_TABDIALOG" = yes; then
5138 echo "$ac_t""yes" 1>&6
5139 else
5140 echo "$ac_t""no" 1>&6
5141 fi
5142
5143
5144 echo $ac_n "checking "for --enable-toolbar"""... $ac_c" 1>&6
6f72b082 5145echo "configure:5146: checking "for --enable-toolbar"" >&5
10f2d63a
VZ
5146 no_cache=0
5147 # Check whether --enable-toolbar or --disable-toolbar was given.
5148if test "${enable_toolbar+set}" = set; then
5149 enableval="$enable_toolbar"
5150
5151 if test "$enableval" = yes; then
5152 ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
5153 else
5154 ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
5155 fi
5156
5157else
5158
5159 LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
5160 if test "x$LINE" != x ; then
5161 eval "DEFAULT_$LINE"
5162 else
5163 no_cache=1
5164 fi
5165
5166 ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
5167
5168fi
5169
5170
5171 eval "$ac_cv_use_toolbar"
5172 if test "$no_cache" != 1; then
5173 echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
5174 fi
5175
5176 if test "$wxUSE_TOOLBAR" = yes; then
5177 echo "$ac_t""yes" 1>&6
5178 else
5179 echo "$ac_t""no" 1>&6
5180 fi
5181
5182
360d6699 5183 echo $ac_n "checking "for --enable-tbarnative"""... $ac_c" 1>&6
6f72b082 5184echo "configure:5185: checking "for --enable-tbarnative"" >&5
360d6699
VZ
5185 no_cache=0
5186 # Check whether --enable-tbarnative or --disable-tbarnative was given.
5187if test "${enable_tbarnative+set}" = set; then
5188 enableval="$enable_tbarnative"
5189
5190 if test "$enableval" = yes; then
5191 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
5192 else
5193 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
5194 fi
5195
5196else
5197
5198 LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
5199 if test "x$LINE" != x ; then
5200 eval "DEFAULT_$LINE"
5201 else
5202 no_cache=1
5203 fi
5204
5205 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
5206
5207fi
5208
5209
5210 eval "$ac_cv_use_tbarnative"
5211 if test "$no_cache" != 1; then
5212 echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
5213 fi
5214
5215 if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
5216 echo "$ac_t""yes" 1>&6
5217 else
5218 echo "$ac_t""no" 1>&6
5219 fi
5220
5221
5222 echo $ac_n "checking "for --enable-tbarsmpl"""... $ac_c" 1>&6
6f72b082 5223echo "configure:5224: checking "for --enable-tbarsmpl"" >&5
360d6699
VZ
5224 no_cache=0
5225 # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given.
5226if test "${enable_tbarsmpl+set}" = set; then
5227 enableval="$enable_tbarsmpl"
5228
5229 if test "$enableval" = yes; then
5230 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes'
5231 else
5232 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no'
5233 fi
5234
5235else
5236
5237 LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}`
5238 if test "x$LINE" != x ; then
5239 eval "DEFAULT_$LINE"
5240 else
5241 no_cache=1
5242 fi
5243
5244 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE
5245
5246fi
5247
5248
5249 eval "$ac_cv_use_tbarsmpl"
5250 if test "$no_cache" != 1; then
5251 echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp
5252 fi
5253
5254 if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then
5255 echo "$ac_t""yes" 1>&6
5256 else
5257 echo "$ac_t""no" 1>&6
5258 fi
5259
5260
10f2d63a 5261 echo $ac_n "checking "for --enable-treectrl"""... $ac_c" 1>&6
6f72b082 5262echo "configure:5263: checking "for --enable-treectrl"" >&5
10f2d63a
VZ
5263 no_cache=0
5264 # Check whether --enable-treectrl or --disable-treectrl was given.
5265if test "${enable_treectrl+set}" = set; then
5266 enableval="$enable_treectrl"
5267
5268 if test "$enableval" = yes; then
5269 ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
5270 else
5271 ac_cv_use_treectrl='wxUSE_TREECTRL=no'
5272 fi
5273
5274else
5275
5276 LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
5277 if test "x$LINE" != x ; then
5278 eval "DEFAULT_$LINE"
5279 else
5280 no_cache=1
5281 fi
5282
5283 ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
5284
5285fi
5286
5287
5288 eval "$ac_cv_use_treectrl"
5289 if test "$no_cache" != 1; then
5290 echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
5291 fi
5292
5293 if test "$wxUSE_TREECTRL" = yes; then
5294 echo "$ac_t""yes" 1>&6
5295 else
5296 echo "$ac_t""no" 1>&6
5297 fi
5298
5299
5300
5301
5302 echo $ac_n "checking "for --enable-commondlg"""... $ac_c" 1>&6
6f72b082 5303echo "configure:5304: checking "for --enable-commondlg"" >&5
10f2d63a
VZ
5304 no_cache=0
5305 # Check whether --enable-commondlg or --disable-commondlg was given.
5306if test "${enable_commondlg+set}" = set; then
5307 enableval="$enable_commondlg"
5308
5309 if test "$enableval" = yes; then
5310 ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
5311 else
5312 ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
5313 fi
5314
5315else
5316
5317 LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
5318 if test "x$LINE" != x ; then
5319 eval "DEFAULT_$LINE"
5320 else
5321 no_cache=1
5322 fi
5323
5324 ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
5325
5326fi
5327
5328
5329 eval "$ac_cv_use_commondlg"
5330 if test "$no_cache" != 1; then
5331 echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
5332 fi
5333
5334 if test "$wxUSE_COMMONDLGS" = yes; then
5335 echo "$ac_t""yes" 1>&6
5336 else
5337 echo "$ac_t""no" 1>&6
5338 fi
5339
5340
5341 echo $ac_n "checking "for --enable-dirdlg"""... $ac_c" 1>&6
6f72b082 5342echo "configure:5343: checking "for --enable-dirdlg"" >&5
10f2d63a
VZ
5343 no_cache=0
5344 # Check whether --enable-dirdlg or --disable-dirdlg was given.
5345if test "${enable_dirdlg+set}" = set; then
5346 enableval="$enable_dirdlg"
5347
5348 if test "$enableval" = yes; then
5349 ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
5350 else
5351 ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
5352 fi
5353
5354else
5355
5356 LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
5357 if test "x$LINE" != x ; then
5358 eval "DEFAULT_$LINE"
5359 else
5360 no_cache=1
5361 fi
5362
5363 ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
5364
5365fi
5366
5367
5368 eval "$ac_cv_use_dirdlg"
5369 if test "$no_cache" != 1; then
5370 echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
5371 fi
5372
5373 if test "$wxUSE_DIRDLG" = yes; then
5374 echo "$ac_t""yes" 1>&6
5375 else
5376 echo "$ac_t""no" 1>&6
5377 fi
5378
5379
5380 echo $ac_n "checking "for --enable-textdlg"""... $ac_c" 1>&6
6f72b082 5381echo "configure:5382: checking "for --enable-textdlg"" >&5
10f2d63a
VZ
5382 no_cache=0
5383 # Check whether --enable-textdlg or --disable-textdlg was given.
5384if test "${enable_textdlg+set}" = set; then
5385 enableval="$enable_textdlg"
5386
5387 if test "$enableval" = yes; then
5388 ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
5389 else
5390 ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
5391 fi
5392
5393else
5394
5395 LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
5396 if test "x$LINE" != x ; then
5397 eval "DEFAULT_$LINE"
5398 else
5399 no_cache=1
5400 fi
5401
5402 ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
5403
5404fi
5405
5406
5407 eval "$ac_cv_use_textdlg"
5408 if test "$no_cache" != 1; then
5409 echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
5410 fi
5411
5412 if test "$wxUSE_TEXTDLG" = yes; then
5413 echo "$ac_t""yes" 1>&6
5414 else
5415 echo "$ac_t""no" 1>&6
5416 fi
5417
5418
5419 echo $ac_n "checking "for --enable-tipdlg"""... $ac_c" 1>&6
6f72b082 5420echo "configure:5421: checking "for --enable-tipdlg"" >&5
10f2d63a
VZ
5421 no_cache=0
5422 # Check whether --enable-tipdlg or --disable-tipdlg was given.
5423if test "${enable_tipdlg+set}" = set; then
5424 enableval="$enable_tipdlg"
5425
5426 if test "$enableval" = yes; then
5427 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
5428 else
5429 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
5430 fi
5431
5432else
5433
5434 LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
5435 if test "x$LINE" != x ; then
5436 eval "DEFAULT_$LINE"
5437 else
5438 no_cache=1
5439 fi
5440
5441 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
5442
5443fi
5444
5445
5446 eval "$ac_cv_use_tipdlg"
5447 if test "$no_cache" != 1; then
5448 echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
5449 fi
5450
5451 if test "$wxUSE_STARTUP_TIPS" = yes; then
5452 echo "$ac_t""yes" 1>&6
5453 else
5454 echo "$ac_t""no" 1>&6
5455 fi
5456
5457
5458 echo $ac_n "checking "for --enable-progressdlg"""... $ac_c" 1>&6
6f72b082 5459echo "configure:5460: checking "for --enable-progressdlg"" >&5
10f2d63a
VZ
5460 no_cache=0
5461 # Check whether --enable-progressdlg or --disable-progressdlg was given.
5462if test "${enable_progressdlg+set}" = set; then
5463 enableval="$enable_progressdlg"
5464
5465 if test "$enableval" = yes; then
5466 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
5467 else
5468 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
5469 fi
5470
5471else
5472
5473 LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
5474 if test "x$LINE" != x ; then
5475 eval "DEFAULT_$LINE"
5476 else
5477 no_cache=1
5478 fi
5479
5480 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
5481
5482fi
5483
5484
5485 eval "$ac_cv_use_progressdlg"
5486 if test "$no_cache" != 1; then
5487 echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
5488 fi
5489
5490 if test "$wxUSE_PROGRESSDLG" = yes; then
5491 echo "$ac_t""yes" 1>&6
5492 else
5493 echo "$ac_t""no" 1>&6
5494 fi
5495
5496
5497 echo $ac_n "checking "for --enable-miniframe"""... $ac_c" 1>&6
6f72b082 5498echo "configure:5499: checking "for --enable-miniframe"" >&5
10f2d63a
VZ
5499 no_cache=0
5500 # Check whether --enable-miniframe or --disable-miniframe was given.
5501if test "${enable_miniframe+set}" = set; then
5502 enableval="$enable_miniframe"
5503
5504 if test "$enableval" = yes; then
5505 ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
5506 else
5507 ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
5508 fi
5509
5510else
5511
5512 LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
5513 if test "x$LINE" != x ; then
5514 eval "DEFAULT_$LINE"
5515 else
5516 no_cache=1
5517 fi
5518
5519 ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
5520
5521fi
5522
5523
5524 eval "$ac_cv_use_miniframe"
5525 if test "$no_cache" != 1; then
5526 echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
5527 fi
5528
5529 if test "$wxUSE_MINIFRAME" = yes; then
5530 echo "$ac_t""yes" 1>&6
5531 else
5532 echo "$ac_t""no" 1>&6
5533 fi
5534
5535
5536 echo $ac_n "checking "for --enable-html"""... $ac_c" 1>&6
6f72b082 5537echo "configure:5538: checking "for --enable-html"" >&5
10f2d63a
VZ
5538 no_cache=0
5539 # Check whether --enable-html or --disable-html was given.
5540if test "${enable_html+set}" = set; then
5541 enableval="$enable_html"
5542
5543 if test "$enableval" = yes; then
5544 ac_cv_use_html='wxUSE_HTML=yes'
5545 else
5546 ac_cv_use_html='wxUSE_HTML=no'
5547 fi
5548
5549else
5550
5551 LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
5552 if test "x$LINE" != x ; then
5553 eval "DEFAULT_$LINE"
5554 else
5555 no_cache=1
5556 fi
5557
5558 ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
5559
5560fi
5561
5562
5563 eval "$ac_cv_use_html"
5564 if test "$no_cache" != 1; then
5565 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
5566 fi
5567
5568 if test "$wxUSE_HTML" = yes; then
5569 echo "$ac_t""yes" 1>&6
5570 else
5571 echo "$ac_t""no" 1>&6
5572 fi
5573
5574
5575 echo $ac_n "checking "for --enable-tooltips"""... $ac_c" 1>&6
6f72b082 5576echo "configure:5577: checking "for --enable-tooltips"" >&5
10f2d63a
VZ
5577 no_cache=0
5578 # Check whether --enable-tooltips or --disable-tooltips was given.
5579if test "${enable_tooltips+set}" = set; then
5580 enableval="$enable_tooltips"
5581
5582 if test "$enableval" = yes; then
5583 ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
5584 else
5585 ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
5586 fi
5587
5588else
5589
5590 LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
5591 if test "x$LINE" != x ; then
5592 eval "DEFAULT_$LINE"
5593 else
5594 no_cache=1
5595 fi
5596
5597 ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
5598
5599fi
5600
5601
5602 eval "$ac_cv_use_tooltips"
5603 if test "$no_cache" != 1; then
5604 echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
5605 fi
5606
5607 if test "$wxUSE_TOOLTIPS" = yes; then
5608 echo "$ac_t""yes" 1>&6
5609 else
5610 echo "$ac_t""no" 1>&6
5611 fi
5612
5613
5614 echo $ac_n "checking "for --enable-splines"""... $ac_c" 1>&6
6f72b082 5615echo "configure:5616: checking "for --enable-splines"" >&5
10f2d63a
VZ
5616 no_cache=0
5617 # Check whether --enable-splines or --disable-splines was given.
5618if test "${enable_splines+set}" = set; then
5619 enableval="$enable_splines"
5620
5621 if test "$enableval" = yes; then
5622 ac_cv_use_splines='wxUSE_SPLINES=yes'
5623 else
5624 ac_cv_use_splines='wxUSE_SPLINES=no'
5625 fi
5626
5627else
5628
5629 LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
5630 if test "x$LINE" != x ; then
5631 eval "DEFAULT_$LINE"
5632 else
5633 no_cache=1
5634 fi
5635
5636 ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
5637
5638fi
5639
5640
5641 eval "$ac_cv_use_splines"
5642 if test "$no_cache" != 1; then
5643 echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
5644 fi
5645
5646 if test "$wxUSE_SPLINES" = yes; then
5647 echo "$ac_t""yes" 1>&6
5648 else
5649 echo "$ac_t""no" 1>&6
5650 fi
5651
5652
5653 echo $ac_n "checking "for --enable-validators"""... $ac_c" 1>&6
6f72b082 5654echo "configure:5655: checking "for --enable-validators"" >&5
10f2d63a
VZ
5655 no_cache=0
5656 # Check whether --enable-validators or --disable-validators was given.
5657if test "${enable_validators+set}" = set; then
5658 enableval="$enable_validators"
5659
5660 if test "$enableval" = yes; then
5661 ac_cv_use_validators='wxUSE_VALIDATORS=yes'
5662 else
5663 ac_cv_use_validators='wxUSE_VALIDATORS=no'
5664 fi
5665
5666else
5667
5668 LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
5669 if test "x$LINE" != x ; then
5670 eval "DEFAULT_$LINE"
5671 else
5672 no_cache=1
5673 fi
5674
5675 ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
5676
5677fi
5678
5679
5680 eval "$ac_cv_use_validators"
5681 if test "$no_cache" != 1; then
5682 echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
5683 fi
5684
5685 if test "$wxUSE_VALIDATORS" = yes; then
5686 echo "$ac_t""yes" 1>&6
5687 else
5688 echo "$ac_t""no" 1>&6
5689 fi
5690
5691
5692 echo $ac_n "checking "for --enable-busyinfo"""... $ac_c" 1>&6
6f72b082 5693echo "configure:5694: checking "for --enable-busyinfo"" >&5
10f2d63a
VZ
5694 no_cache=0
5695 # Check whether --enable-busyinfo or --disable-busyinfo was given.
5696if test "${enable_busyinfo+set}" = set; then
5697 enableval="$enable_busyinfo"
5698
5699 if test "$enableval" = yes; then
5700 ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
5701 else
5702 ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
5703 fi
5704
5705else
5706
5707 LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
5708 if test "x$LINE" != x ; then
5709 eval "DEFAULT_$LINE"
5710 else
5711 no_cache=1
5712 fi
5713
5714 ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
5715
5716fi
5717
5718
5719 eval "$ac_cv_use_busyinfo"
5720 if test "$no_cache" != 1; then
5721 echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
5722 fi
5723
5724 if test "$wxUSE_BUSYINFO" = yes; then
5725 echo "$ac_t""yes" 1>&6
5726 else
5727 echo "$ac_t""no" 1>&6
5728 fi
5729
5730
9b33fe02 5731 echo $ac_n "checking "for --enable-plot"""... $ac_c" 1>&6
6f72b082 5732echo "configure:5733: checking "for --enable-plot"" >&5
9b33fe02
VZ
5733 no_cache=0
5734 # Check whether --enable-plot or --disable-plot was given.
5735if test "${enable_plot+set}" = set; then
5736 enableval="$enable_plot"
5737
5738 if test "$enableval" = yes; then
5739 ac_cv_use_plot='wxUSE_PLOT=yes'
5740 else
5741 ac_cv_use_plot='wxUSE_PLOT=no'
5742 fi
5743
5744else
5745
5746 LINE=`grep "wxUSE_PLOT" ${wx_arg_cache_file}`
5747 if test "x$LINE" != x ; then
5748 eval "DEFAULT_$LINE"
5749 else
5750 no_cache=1
5751 fi
5752
5753 ac_cv_use_plot='wxUSE_PLOT='$DEFAULT_wxUSE_PLOT
5754
5755fi
5756
5757
5758 eval "$ac_cv_use_plot"
5759 if test "$no_cache" != 1; then
5760 echo $ac_cv_use_plot >> ${wx_arg_cache_file}.tmp
5761 fi
5762
5763 if test "$wxUSE_PLOT" = yes; then
5764 echo "$ac_t""yes" 1>&6
5765 else
5766 echo "$ac_t""no" 1>&6
5767 fi
5768
5769
f6bcfd97 5770 echo $ac_n "checking "for --enable-joystick"""... $ac_c" 1>&6
6f72b082 5771echo "configure:5772: checking "for --enable-joystick"" >&5
f6bcfd97
BP
5772 no_cache=0
5773 # Check whether --enable-joystick or --disable-joystick was given.
5774if test "${enable_joystick+set}" = set; then
5775 enableval="$enable_joystick"
5776
5777 if test "$enableval" = yes; then
5778 ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
5779 else
5780 ac_cv_use_joystick='wxUSE_JOYSTICK=no'
5781 fi
5782
5783else
5784
5785 LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
5786 if test "x$LINE" != x ; then
5787 eval "DEFAULT_$LINE"
5788 else
5789 no_cache=1
5790 fi
5791
5792 ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
5793
5794fi
5795
5796
5797 eval "$ac_cv_use_joystick"
5798 if test "$no_cache" != 1; then
5799 echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
5800 fi
5801
5802 if test "$wxUSE_JOYSTICK" = yes; then
5803 echo "$ac_t""yes" 1>&6
5804 else
5805 echo "$ac_t""no" 1>&6
5806 fi
5807
5808
10f2d63a
VZ
5809
5810
5811 echo $ac_n "checking "for --enable-gif"""... $ac_c" 1>&6
6f72b082 5812echo "configure:5813: checking "for --enable-gif"" >&5
10f2d63a
VZ
5813 no_cache=0
5814 # Check whether --enable-gif or --disable-gif was given.
5815if test "${enable_gif+set}" = set; then
5816 enableval="$enable_gif"
5817
5818 if test "$enableval" = yes; then
5819 ac_cv_use_gif='wxUSE_GIF=yes'
5820 else
5821 ac_cv_use_gif='wxUSE_GIF=no'
5822 fi
5823
5824else
5825
5826 LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
5827 if test "x$LINE" != x ; then
5828 eval "DEFAULT_$LINE"
5829 else
5830 no_cache=1
5831 fi
5832
5833 ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
5834
5835fi
5836
5837
5838 eval "$ac_cv_use_gif"
5839 if test "$no_cache" != 1; then
5840 echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
5841 fi
5842
5843 if test "$wxUSE_GIF" = yes; then
5844 echo "$ac_t""yes" 1>&6
5845 else
5846 echo "$ac_t""no" 1>&6
5847 fi
5848
5849
5850 echo $ac_n "checking "for --enable-pcx"""... $ac_c" 1>&6
6f72b082 5851echo "configure:5852: checking "for --enable-pcx"" >&5
10f2d63a
VZ
5852 no_cache=0
5853 # Check whether --enable-pcx or --disable-pcx was given.
5854if test "${enable_pcx+set}" = set; then
5855 enableval="$enable_pcx"
5856
5857 if test "$enableval" = yes; then
5858 ac_cv_use_pcx='wxUSE_PCX=yes'
5859 else
5860 ac_cv_use_pcx='wxUSE_PCX=no'
5861 fi
5862
5863else
5864
5865 LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
5866 if test "x$LINE" != x ; then
5867 eval "DEFAULT_$LINE"
5868 else
5869 no_cache=1
5870 fi
5871
5872 ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
5873
5874fi
5875
5876
5877 eval "$ac_cv_use_pcx"
5878 if test "$no_cache" != 1; then
5879 echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
5880 fi
5881
5882 if test "$wxUSE_PCX" = yes; then
5883 echo "$ac_t""yes" 1>&6
5884 else
5885 echo "$ac_t""no" 1>&6
5886 fi
5887
5888
5889 echo $ac_n "checking "for --enable-pnm"""... $ac_c" 1>&6
6f72b082 5890echo "configure:5891: checking "for --enable-pnm"" >&5
10f2d63a
VZ
5891 no_cache=0
5892 # Check whether --enable-pnm or --disable-pnm was given.
5893if test "${enable_pnm+set}" = set; then
5894 enableval="$enable_pnm"
5895
5896 if test "$enableval" = yes; then
5897 ac_cv_use_pnm='wxUSE_PNM=yes'
5898 else
5899 ac_cv_use_pnm='wxUSE_PNM=no'
5900 fi
5901
5902else
5903
5904 LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
5905 if test "x$LINE" != x ; then
5906 eval "DEFAULT_$LINE"
5907 else
5908 no_cache=1
5909 fi
5910
5911 ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
5912
5913fi
5914
5915
5916 eval "$ac_cv_use_pnm"
5917 if test "$no_cache" != 1; then
5918 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
5919 fi
5920
5921 if test "$wxUSE_PNM" = yes; then
5922 echo "$ac_t""yes" 1>&6
5923 else
5924 echo "$ac_t""no" 1>&6
5925 fi
5926
5927
b12915c1
VZ
5928fi
5929
10f2d63a
VZ
5930
5931 echo "saving argument cache $wx_arg_cache_file"
5932 mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
5933
5934
5935
5936echo $ac_n "checking for toolkit""... $ac_c" 1>&6
6f72b082 5937echo "configure:5938: checking for toolkit" >&5
10f2d63a
VZ
5938
5939if test "$wxUSE_GUI" = "yes"; then
5940
b12915c1
VZ
5941if test "$USE_BEOS" = 1; then
5942 { echo "configure: error: BeOS GUI is not supported yet, use --disable-gui" 1>&2; exit 1; }
5943fi
5944
10f2d63a
VZ
5945if test "$TOOLKIT_GIVEN" = 1; then
5946 for toolkit in `echo $ALL_TOOLKITS`; do
5947 var=wxUSE_$toolkit
5948 eval "value=\$${var}"
5949 eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`"
5950 done
5951else
5952 for toolkit in `echo $ALL_TOOLKITS`; do
5953 if test "$has_toolkit_in_cache" != 1; then
5954 var=DEFAULT_DEFAULT_wxUSE_$toolkit
5955 else
5956 var=DEFAULT_wxUSE_$toolkit
5957 fi
5958 eval "wxUSE_$toolkit=\$${var}"
5959 done
5960fi
5961
ec14dd32 5962NUM_TOOLKITS=`expr ${wxUSE_GTK:-0} + ${wxUSE_MOTIF:-0} + ${wxUSE_WINE:-0} + ${wxUSE_MINGW:-0} + ${wxUSE_CYGWIN:-0}`
cf27ef00 5963
ec14dd32
VZ
5964case "${host}" in
5965 *-pc-os2_emx )
5966 NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
5967 # PATH_IFS is autodetected by OS/2's configure (usually ';')
5968 LEX_STEM="lexyy"
5969 ;;
5970 *)
5971 PATH_IFS=':'
5972 LEX_STEM="lex.yy"
5973 ;;
5974esac
10f2d63a
VZ
5975
5976case "$NUM_TOOLKITS" in
5977 1)
5978 ;;
5979 0)
5980 { echo "configure: error: Please specify a toolkit - cannot determine the default for ${host}" 1>&2; exit 1; }
5981 ;;
5982 *)
5983 { echo "configure: error: Please specify at most one toolkit (may be some are cached?)" 1>&2; exit 1; }
5984esac
5985
5986for toolkit in `echo $ALL_TOOLKITS`; do
5987 var=wxUSE_$toolkit
5988 eval "value=\$${var}"
5989 if test "x$value" != x; then
5990 cache_var=CACHE_$toolkit
5991 eval "cache=\$${cache_var}"
5992 if test "$cache" = 1; then
5993 echo "$var=$value" >> ${wx_arg_cache_file}
5994 fi
5995 if test "$value" = 1; then
5996 echo "$ac_t""`echo $toolkit | tr A-Z a-z`" 1>&6
5997 fi
5998 fi
5999done
6000
6001else
cf27ef00 6002 PATH_IFS=':'
10f2d63a
VZ
6003 echo "$ac_t""base only" 1>&6
6004fi
6005
6006
6007cat > confcache <<\EOF
6008# This file is a shell script that caches the results of configure
6009# tests run on this system so they can be shared between configure
6010# scripts and configure runs. It is not useful on other systems.
6011# If it contains results you don't want to keep, you may remove or edit it.
6012#
6013# By default, configure uses ./config.cache as the cache file,
6014# creating it if it does not exist already. You can give configure
6015# the --cache-file=FILE option to use a different cache file; that is
6016# what configure does when it calls configure scripts in
6017# subdirectories, so they share the cache.
6018# Giving --cache-file=/dev/null disables caching, for debugging configure.
6019# config.status only pays attention to the cache file if you give it the
6020# --recheck option to rerun configure.
6021#
6022EOF
6023# The following way of writing the cache mishandles newlines in values,
6024# but we know of no workaround that is simple, portable, and efficient.
6025# So, don't put newlines in cache variables' values.
6026# Ultrix sh set writes to stderr and can't be redirected directly,
6027# and sets the high bit in the cache file unless we assign to the vars.
6028(set) 2>&1 |
6029 case `(ac_space=' '; set | grep ac_space) 2>&1` in
6030 *ac_space=\ *)
6031 # `set' does not quote correctly, so add quotes (double-quote substitution
6032 # turns \\\\ into \\, and sed turns \\ into \).
6033 sed -n \
6034 -e "s/'/'\\\\''/g" \
6035 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
6036 ;;
6037 *)
6038 # `set' quotes correctly as required by POSIX, so do not add quotes.
6039 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
6040 ;;
6041 esac >> confcache
6042if cmp -s $cache_file confcache; then
6043 :
6044else
6045 if test -w $cache_file; then
6046 echo "updating cache $cache_file"
6047 cat confcache > $cache_file
6048 else
6049 echo "not updating unwritable cache $cache_file"
6050 fi
6051fi
6052rm -f confcache
6053
6054
e59890c3 6055if test "$build" != "$host" ; then
10f2d63a
VZ
6056 CC=$host_alias-gcc
6057 CXX=$host_alias-c++
6058 AR=$host_alias-ar
6059 RANLIB=$host_alias-ranlib
6060 DLLTOOL=$host_alias-dlltool
32832908 6061 RESCOMP=$host_alias-windres
10f2d63a
VZ
6062 LD=$host_alias-ld
6063 NM=$host_alias-nm
6064 STRIP=$host_alias-strip
10f2d63a
VZ
6065fi
6066
6067# Extract the first word of "gcc", so it can be a program name with args.
6068set dummy gcc; ac_word=$2
6069echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6f72b082 6070echo "configure:6071: checking for $ac_word" >&5
10f2d63a
VZ
6071if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
6072 echo $ac_n "(cached) $ac_c" 1>&6
6073else
6074 if test -n "$CC"; then
6075 ac_cv_prog_CC="$CC" # Let the user override the test.
6076else
6077 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6078 ac_dummy="$PATH"
6079 for ac_dir in $ac_dummy; do
6080 test -z "$ac_dir" && ac_dir=.
6081 if test -f $ac_dir/$ac_word; then
6082 ac_cv_prog_CC="gcc"
6083 break
6084 fi
6085 done
6086 IFS="$ac_save_ifs"
6087fi
6088fi
6089CC="$ac_cv_prog_CC"
6090if test -n "$CC"; then
6091 echo "$ac_t""$CC" 1>&6
6092else
6093 echo "$ac_t""no" 1>&6
6094fi
6095
6096if test -z "$CC"; then
6097 # Extract the first word of "cc", so it can be a program name with args.
6098set dummy cc; ac_word=$2
6099echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6f72b082 6100echo "configure:6101: checking for $ac_word" >&5
10f2d63a
VZ
6101if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
6102 echo $ac_n "(cached) $ac_c" 1>&6
6103else
6104 if test -n "$CC"; then
6105 ac_cv_prog_CC="$CC" # Let the user override the test.
6106else
6107 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6108 ac_prog_rejected=no
6109 ac_dummy="$PATH"
6110 for ac_dir in $ac_dummy; do
6111 test -z "$ac_dir" && ac_dir=.
6112 if test -f $ac_dir/$ac_word; then
6113 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
6114 ac_prog_rejected=yes
6115 continue
6116 fi
6117 ac_cv_prog_CC="cc"
6118 break
6119 fi
6120 done
6121 IFS="$ac_save_ifs"
6122if test $ac_prog_rejected = yes; then
6123 # We found a bogon in the path, so make sure we never use it.
6124 set dummy $ac_cv_prog_CC
6125 shift
6126 if test $# -gt 0; then
6127 # We chose a different compiler from the bogus one.
6128 # However, it has the same basename, so the bogon will be chosen
6129 # first if we set CC to just the basename; use the full file name.
6130 shift
6131 set dummy "$ac_dir/$ac_word" "$@"
6132 shift
6133 ac_cv_prog_CC="$@"
6134 fi
6135fi
6136fi
6137fi
6138CC="$ac_cv_prog_CC"
6139if test -n "$CC"; then
6140 echo "$ac_t""$CC" 1>&6
6141else
6142 echo "$ac_t""no" 1>&6
6143fi
6144
6145 if test -z "$CC"; then
6146 case "`uname -s`" in
6147 *win32* | *WIN32*)
6148 # Extract the first word of "cl", so it can be a program name with args.
6149set dummy cl; ac_word=$2
6150echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6f72b082 6151echo "configure:6152: checking for $ac_word" >&5
10f2d63a
VZ
6152if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
6153 echo $ac_n "(cached) $ac_c" 1>&6
6154else
6155 if test -n "$CC"; then
6156 ac_cv_prog_CC="$CC" # Let the user override the test.
6157else
6158 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6159 ac_dummy="$PATH"
6160 for ac_dir in $ac_dummy; do
6161 test -z "$ac_dir" && ac_dir=.
6162 if test -f $ac_dir/$ac_word; then
6163 ac_cv_prog_CC="cl"
6164 break
6165 fi
6166 done
6167 IFS="$ac_save_ifs"
6168fi
6169fi
6170CC="$ac_cv_prog_CC"
6171if test -n "$CC"; then
6172 echo "$ac_t""$CC" 1>&6
6173else
6174 echo "$ac_t""no" 1>&6
6175fi
6176 ;;
6177 esac
6178 fi
6179 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
6180fi
6181
6182echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
6f72b082 6183echo "configure:6184: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
10f2d63a
VZ
6184
6185ac_ext=c
6186# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6187ac_cpp='$CPP $CPPFLAGS'
6188ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6189ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6190cross_compiling=$ac_cv_prog_cc_cross
6191
6192cat > conftest.$ac_ext << EOF
6193
6f72b082 6194#line 6195 "configure"
10f2d63a
VZ
6195#include "confdefs.h"
6196
6197main(){return(0);}
6198EOF
6f72b082 6199if { (eval echo configure:6200: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
6200 ac_cv_prog_cc_works=yes
6201 # If we can't run a trivial program, we are probably using a cross compiler.
6202 if (./conftest; exit) 2>/dev/null; then
6203 ac_cv_prog_cc_cross=no
6204 else
6205 ac_cv_prog_cc_cross=yes
6206 fi
6207else
6208 echo "configure: failed program was:" >&5
6209 cat conftest.$ac_ext >&5
6210 ac_cv_prog_cc_works=no
6211fi
6212rm -fr conftest*
6213ac_ext=c
6214# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6215ac_cpp='$CPP $CPPFLAGS'
6216ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6217ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6218cross_compiling=$ac_cv_prog_cc_cross
6219
6220echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
6221if test $ac_cv_prog_cc_works = no; then
6222 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
6223fi
6224echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
6f72b082 6225echo "configure:6226: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
10f2d63a
VZ
6226echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
6227cross_compiling=$ac_cv_prog_cc_cross
6228
6229echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
6f72b082 6230echo "configure:6231: checking whether we are using GNU C" >&5
10f2d63a
VZ
6231if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
6232 echo $ac_n "(cached) $ac_c" 1>&6
6233else
6234 cat > conftest.c <<EOF
6235#ifdef __GNUC__
6236 yes;
6237#endif
6238EOF
6f72b082 6239if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:6240: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
10f2d63a
VZ
6240 ac_cv_prog_gcc=yes
6241else
6242 ac_cv_prog_gcc=no
6243fi
6244fi
6245
6246echo "$ac_t""$ac_cv_prog_gcc" 1>&6
6247
6248if test $ac_cv_prog_gcc = yes; then
6249 GCC=yes
6250else
6251 GCC=
6252fi
6253
6254ac_test_CFLAGS="${CFLAGS+set}"
6255ac_save_CFLAGS="$CFLAGS"
6256CFLAGS=
6257echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
6f72b082 6258echo "configure:6259: checking whether ${CC-cc} accepts -g" >&5
10f2d63a
VZ
6259if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
6260 echo $ac_n "(cached) $ac_c" 1>&6
6261else
6262 echo 'void f(){}' > conftest.c
6263if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
6264 ac_cv_prog_cc_g=yes
6265else
6266 ac_cv_prog_cc_g=no
6267fi
6268rm -f conftest*
6269
6270fi
6271
6272echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
6273if test "$ac_test_CFLAGS" = set; then
6274 CFLAGS="$ac_save_CFLAGS"
6275elif test $ac_cv_prog_cc_g = yes; then
6276 if test "$GCC" = yes; then
6277 CFLAGS="-g -O2"
6278 else
6279 CFLAGS="-g"
6280 fi
6281else
6282 if test "$GCC" = yes; then
6283 CFLAGS="-O2"
6284 else
6285 CFLAGS=
6286 fi
6287fi
6288
6289
6290CFLAGS=`echo "$CFLAGS" | sed 's/-g//g'`
6291
6292echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
6f72b082 6293echo "configure:6294: checking how to run the C preprocessor" >&5
10f2d63a
VZ
6294# On Suns, sometimes $CPP names a directory.
6295if test -n "$CPP" && test -d "$CPP"; then
6296 CPP=
6297fi
6298if test -z "$CPP"; then
6299if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
6300 echo $ac_n "(cached) $ac_c" 1>&6
6301else
6302 # This must be in double quotes, not single quotes, because CPP may get
6303 # substituted into the Makefile and "${CC-cc}" will confuse make.
6304 CPP="${CC-cc} -E"
6305 # On the NeXT, cc -E runs the code through the compiler's parser,
6306 # not just through cpp.
6307 cat > conftest.$ac_ext <<EOF
6f72b082 6308#line 6309 "configure"
10f2d63a
VZ
6309#include "confdefs.h"
6310#include <assert.h>
6311Syntax Error
6312EOF
6313ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6f72b082 6314{ (eval echo configure:6315: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
6315ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6316if test -z "$ac_err"; then
6317 :
6318else
6319 echo "$ac_err" >&5
6320 echo "configure: failed program was:" >&5
6321 cat conftest.$ac_ext >&5
6322 rm -rf conftest*
6323 CPP="${CC-cc} -E -traditional-cpp"
6324 cat > conftest.$ac_ext <<EOF
6f72b082 6325#line 6326 "configure"
10f2d63a
VZ
6326#include "confdefs.h"
6327#include <assert.h>
6328Syntax Error
6329EOF
6330ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6f72b082 6331{ (eval echo configure:6332: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
6332ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6333if test -z "$ac_err"; then
6334 :
6335else
6336 echo "$ac_err" >&5
6337 echo "configure: failed program was:" >&5
6338 cat conftest.$ac_ext >&5
6339 rm -rf conftest*
6340 CPP="${CC-cc} -nologo -E"
6341 cat > conftest.$ac_ext <<EOF
6f72b082 6342#line 6343 "configure"
10f2d63a
VZ
6343#include "confdefs.h"
6344#include <assert.h>
6345Syntax Error
6346EOF
6347ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6f72b082 6348{ (eval echo configure:6349: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
6349ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6350if test -z "$ac_err"; then
6351 :
6352else
6353 echo "$ac_err" >&5
6354 echo "configure: failed program was:" >&5
6355 cat conftest.$ac_ext >&5
6356 rm -rf conftest*
6357 CPP=/lib/cpp
6358fi
6359rm -f conftest*
6360fi
6361rm -f conftest*
6362fi
6363rm -f conftest*
6364 ac_cv_prog_CPP="$CPP"
6365fi
6366 CPP="$ac_cv_prog_CPP"
6367else
6368 ac_cv_prog_CPP="$CPP"
6369fi
6370echo "$ac_t""$CPP" 1>&6
6371
6372
6373if test $ac_cv_prog_gcc = yes; then
6374 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
6f72b082 6375echo "configure:6376: checking whether ${CC-cc} needs -traditional" >&5
10f2d63a
VZ
6376if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
6377 echo $ac_n "(cached) $ac_c" 1>&6
6378else
6379 ac_pattern="Autoconf.*'x'"
6380 cat > conftest.$ac_ext <<EOF
6f72b082 6381#line 6382 "configure"
10f2d63a
VZ
6382#include "confdefs.h"
6383#include <sgtty.h>
6384Autoconf TIOCGETP
6385EOF
6386if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6387 egrep "$ac_pattern" >/dev/null 2>&1; then
6388 rm -rf conftest*
6389 ac_cv_prog_gcc_traditional=yes
6390else
6391 rm -rf conftest*
6392 ac_cv_prog_gcc_traditional=no
6393fi
6394rm -f conftest*
6395
6396
6397 if test $ac_cv_prog_gcc_traditional = no; then
6398 cat > conftest.$ac_ext <<EOF
6f72b082 6399#line 6400 "configure"
10f2d63a
VZ
6400#include "confdefs.h"
6401#include <termio.h>
6402Autoconf TCGETA
6403EOF
6404if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6405 egrep "$ac_pattern" >/dev/null 2>&1; then
6406 rm -rf conftest*
6407 ac_cv_prog_gcc_traditional=yes
6408fi
6409rm -f conftest*
6410
6411 fi
6412fi
6413
6414echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
6415 if test $ac_cv_prog_gcc_traditional = yes; then
6416 CC="$CC -traditional"
6417 fi
6418fi
6419
6420
6421
6422ac_ext=C
6423# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6424ac_cpp='$CXXCPP $CPPFLAGS'
6425ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6426ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6427cross_compiling=$ac_cv_prog_cxx_cross
6428
6429
6430for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
6431do
6432# Extract the first word of "$ac_prog", so it can be a program name with args.
6433set dummy $ac_prog; ac_word=$2
6434echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6f72b082 6435echo "configure:6436: checking for $ac_word" >&5
10f2d63a
VZ
6436if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
6437 echo $ac_n "(cached) $ac_c" 1>&6
6438else
6439 if test -n "$CXX"; then
6440 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6441else
6442 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6443 ac_dummy="$PATH"
6444 for ac_dir in $ac_dummy; do
6445 test -z "$ac_dir" && ac_dir=.
6446 if test -f $ac_dir/$ac_word; then
6447 ac_cv_prog_CXX="$ac_prog"
6448 break
6449 fi
6450 done
6451 IFS="$ac_save_ifs"
6452fi
6453fi
6454CXX="$ac_cv_prog_CXX"
6455if test -n "$CXX"; then
6456 echo "$ac_t""$CXX" 1>&6
6457else
6458 echo "$ac_t""no" 1>&6
6459fi
6460
6461test -n "$CXX" && break
6462done
6463test -n "$CXX" || CXX="gcc"
6464
6465
6466echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
6f72b082 6467echo "configure:6468: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
10f2d63a
VZ
6468
6469ac_ext=C
6470# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6471ac_cpp='$CXXCPP $CPPFLAGS'
6472ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6473ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6474cross_compiling=$ac_cv_prog_cxx_cross
6475
6476cat > conftest.$ac_ext << EOF
6477
6f72b082 6478#line 6479 "configure"
10f2d63a
VZ
6479#include "confdefs.h"
6480
6481int main(){return(0);}
6482EOF
6f72b082 6483if { (eval echo configure:6484: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
6484 ac_cv_prog_cxx_works=yes
6485 # If we can't run a trivial program, we are probably using a cross compiler.
6486 if (./conftest; exit) 2>/dev/null; then
6487 ac_cv_prog_cxx_cross=no
6488 else
6489 ac_cv_prog_cxx_cross=yes
6490 fi
6491else
6492 echo "configure: failed program was:" >&5
6493 cat conftest.$ac_ext >&5
6494 ac_cv_prog_cxx_works=no
6495fi
6496rm -fr conftest*
6497ac_ext=C
6498# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6499ac_cpp='$CXXCPP $CPPFLAGS'
6500ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6501ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6502cross_compiling=$ac_cv_prog_cxx_cross
6503
6504echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
6505if test $ac_cv_prog_cxx_works = no; then
6506 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
6507fi
6508echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
6f72b082 6509echo "configure:6510: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
10f2d63a
VZ
6510echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
6511cross_compiling=$ac_cv_prog_cxx_cross
6512
6513echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
6f72b082 6514echo "configure:6515: checking whether we are using GNU C++" >&5
10f2d63a
VZ
6515if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
6516 echo $ac_n "(cached) $ac_c" 1>&6
6517else
6518 cat > conftest.C <<EOF
6519#ifdef __GNUC__
6520 yes;
6521#endif
6522EOF
6f72b082 6523if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:6524: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
10f2d63a
VZ
6524 ac_cv_prog_gxx=yes
6525else
6526 ac_cv_prog_gxx=no
6527fi
6528fi
6529
6530echo "$ac_t""$ac_cv_prog_gxx" 1>&6
6531
6532if test $ac_cv_prog_gxx = yes; then
6533 GXX=yes
6534else
6535 GXX=
6536fi
6537
6538ac_test_CXXFLAGS="${CXXFLAGS+set}"
6539ac_save_CXXFLAGS="$CXXFLAGS"
6540CXXFLAGS=
6541echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
6f72b082 6542echo "configure:6543: checking whether ${CXX-g++} accepts -g" >&5
10f2d63a
VZ
6543if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
6544 echo $ac_n "(cached) $ac_c" 1>&6
6545else
6546 echo 'void f(){}' > conftest.cc
6547if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
6548 ac_cv_prog_cxx_g=yes
6549else
6550 ac_cv_prog_cxx_g=no
6551fi
6552rm -f conftest*
6553
6554fi
6555
6556echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
6557if test "$ac_test_CXXFLAGS" = set; then
6558 CXXFLAGS="$ac_save_CXXFLAGS"
6559elif test $ac_cv_prog_cxx_g = yes; then
6560 if test "$GXX" = yes; then
6561 CXXFLAGS="-g -O2"
6562 else
6563 CXXFLAGS="-g"
6564 fi
6565else
6566 if test "$GXX" = yes; then
6567 CXXFLAGS="-O2"
6568 else
6569 CXXFLAGS=
6570 fi
6571fi
6572
6573
6574echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
6f72b082 6575echo "configure:6576: checking how to run the C++ preprocessor" >&5
10f2d63a
VZ
6576if test -z "$CXXCPP"; then
6577if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
6578 echo $ac_n "(cached) $ac_c" 1>&6
6579else
6580 ac_ext=C
6581# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6582ac_cpp='$CXXCPP $CPPFLAGS'
6583ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6584ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6585cross_compiling=$ac_cv_prog_cxx_cross
6586 CXXCPP="${CXX-g++} -E"
6587 cat > conftest.$ac_ext <<EOF
6f72b082 6588#line 6589 "configure"
10f2d63a
VZ
6589#include "confdefs.h"
6590#include <stdlib.h>
6591EOF
6592ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6f72b082 6593{ (eval echo configure:6594: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
6594ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6595if test -z "$ac_err"; then
6596 :
6597else
6598 echo "$ac_err" >&5
6599 echo "configure: failed program was:" >&5
6600 cat conftest.$ac_ext >&5
6601 rm -rf conftest*
6602 CXXCPP=/lib/cpp
6603fi
6604rm -f conftest*
6605 ac_cv_prog_CXXCPP="$CXXCPP"
6606ac_ext=C
6607# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6608ac_cpp='$CXXCPP $CPPFLAGS'
6609ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6610ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6611cross_compiling=$ac_cv_prog_cxx_cross
6612fi
6613fi
6614CXXCPP="$ac_cv_prog_CXXCPP"
6615echo "$ac_t""$CXXCPP" 1>&6
6616
6617
6618CXXFLAGS=`echo "$CXXFLAGS" | sed 's/-g//g'`
6619
6620ac_ext=c
6621# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6622ac_cpp='$CPP $CPPFLAGS'
6623ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6624ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6625cross_compiling=$ac_cv_prog_cc_cross
6626
6627
6628# Extract the first word of "ranlib", so it can be a program name with args.
6629set dummy ranlib; ac_word=$2
6630echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6f72b082 6631echo "configure:6632: checking for $ac_word" >&5
10f2d63a
VZ
6632if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
6633 echo $ac_n "(cached) $ac_c" 1>&6
6634else
6635 if test -n "$RANLIB"; then
6636 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6637else
6638 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6639 ac_dummy="$PATH"
6640 for ac_dir in $ac_dummy; do
6641 test -z "$ac_dir" && ac_dir=.
6642 if test -f $ac_dir/$ac_word; then
6643 ac_cv_prog_RANLIB="ranlib"
6644 break
6645 fi
6646 done
6647 IFS="$ac_save_ifs"
6648 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
6649fi
6650fi
6651RANLIB="$ac_cv_prog_RANLIB"
6652if test -n "$RANLIB"; then
6653 echo "$ac_t""$RANLIB" 1>&6
6654else
6655 echo "$ac_t""no" 1>&6
6656fi
6657
6658
6659# Extract the first word of "ar", so it can be a program name with args.
6660set dummy ar; ac_word=$2
6661echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6f72b082 6662echo "configure:6663: checking for $ac_word" >&5
10f2d63a
VZ
6663if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
6664 echo $ac_n "(cached) $ac_c" 1>&6
6665else
6666 if test -n "$AR"; then
6667 ac_cv_prog_AR="$AR" # Let the user override the test.
6668else
6669 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6670 ac_dummy="$PATH"
6671 for ac_dir in $ac_dummy; do
6672 test -z "$ac_dir" && ac_dir=.
6673 if test -f $ac_dir/$ac_word; then
6674 ac_cv_prog_AR="ar"
6675 break
6676 fi
6677 done
6678 IFS="$ac_save_ifs"
6679 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
6680fi
6681fi
6682AR="$ac_cv_prog_AR"
6683if test -n "$AR"; then
6684 echo "$ac_t""$AR" 1>&6
6685else
6686 echo "$ac_t""no" 1>&6
6687fi
6688
6689
6690# Find a good install program. We prefer a C program (faster),
6691# so one script is as good as another. But avoid the broken or
6692# incompatible versions:
6693# SysV /etc/install, /usr/sbin/install
6694# SunOS /usr/etc/install
6695# IRIX /sbin/install
6696# AIX /bin/install
6697# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6698# AFS /usr/afsws/bin/install, which mishandles nonexistent args
6699# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6700# ./install, which can be erroneously created by make from ./install.sh.
6701echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
6f72b082 6702echo "configure:6703: checking for a BSD compatible install" >&5
10f2d63a
VZ
6703if test -z "$INSTALL"; then
6704if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
6705 echo $ac_n "(cached) $ac_c" 1>&6
6706else
6707 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
6708 for ac_dir in $PATH; do
6709 # Account for people who put trailing slashes in PATH elements.
6710 case "$ac_dir/" in
6711 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
6712 *)
6713 # OSF1 and SCO ODT 3.0 have their own names for install.
6714 # Don't use installbsd from OSF since it installs stuff as root
6715 # by default.
6716 for ac_prog in ginstall scoinst install; do
6717 if test -f $ac_dir/$ac_prog; then
6718 if test $ac_prog = install &&
6719 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
6720 # AIX install. It has an incompatible calling convention.
6721 :
6722 else
6723 ac_cv_path_install="$ac_dir/$ac_prog -c"
6724 break 2
6725 fi
6726 fi
6727 done
6728 ;;
6729 esac
6730 done
6731 IFS="$ac_save_IFS"
6732
6733fi
6734 if test "${ac_cv_path_install+set}" = set; then
6735 INSTALL="$ac_cv_path_install"
6736 else
6737 # As a last resort, use the slow shell script. We don't cache a
6738 # path for INSTALL within a source directory, because that will
6739 # break other packages using the cache if that directory is
6740 # removed, or if the path is relative.
6741 INSTALL="$ac_install_sh"
6742 fi
6743fi
6744echo "$ac_t""$INSTALL" 1>&6
6745
6746# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6747# It thinks the first close brace ends the variable substitution.
6748test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6749
6750test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
6751
6752test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6753
6754
6755# Extract the first word of "strip", so it can be a program name with args.
6756set dummy strip; ac_word=$2
6757echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6f72b082 6758echo "configure:6759: checking for $ac_word" >&5
10f2d63a
VZ
6759if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
6760 echo $ac_n "(cached) $ac_c" 1>&6
6761else
6762 if test -n "$STRIP"; then
6763 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6764else
6765 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6766 ac_dummy="$PATH"
6767 for ac_dir in $ac_dummy; do
6768 test -z "$ac_dir" && ac_dir=.
6769 if test -f $ac_dir/$ac_word; then
6770 ac_cv_prog_STRIP="strip"
6771 break
6772 fi
6773 done
6774 IFS="$ac_save_ifs"
6775 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true"
6776fi
6777fi
6778STRIP="$ac_cv_prog_STRIP"
6779if test -n "$STRIP"; then
6780 echo "$ac_t""$STRIP" 1>&6
6781else
6782 echo "$ac_t""no" 1>&6
6783fi
6784
6785
6786echo $ac_n "checking "make for VPATH support"""... $ac_c" 1>&6
6f72b082 6787echo "configure:6788: checking "make for VPATH support"" >&5
10f2d63a
VZ
6788cat - << EOF > confMake
6789check : file
6790 cp \$? \$@
6791 cp \$? final_file
6792EOF
6793
6794if test ! -d sub ; then
6795 mkdir sub
6796fi
6797echo dummy > sub/file
f6bcfd97 6798${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
10f2d63a
VZ
6799RESULT=$?
6800rm -f sub/file check final_file confMake
6801rmdir sub
6802if test "$RESULT" = 0; then
6803 echo "$ac_t""yes" 1>&6
6804else
6805 echo "$ac_t""no" 1>&6
6806 { echo "configure: error: You need a make-utility that is able to use the variable
6807VPATH correctly.
6808If your version of make does not support VPATH correctly" 1>&2; exit 1; }
6809fi
6810
6811for ac_prog in 'bison -y' byacc
6812do
6813# Extract the first word of "$ac_prog", so it can be a program name with args.
6814set dummy $ac_prog; ac_word=$2
6815echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6f72b082 6816echo "configure:6817: checking for $ac_word" >&5
10f2d63a
VZ
6817if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
6818 echo $ac_n "(cached) $ac_c" 1>&6
6819else
6820 if test -n "$YACC"; then
6821 ac_cv_prog_YACC="$YACC" # Let the user override the test.
6822else
6823 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6824 ac_dummy="$PATH"
6825 for ac_dir in $ac_dummy; do
6826 test -z "$ac_dir" && ac_dir=.
6827 if test -f $ac_dir/$ac_word; then
6828 ac_cv_prog_YACC="$ac_prog"
6829 break
6830 fi
6831 done
6832 IFS="$ac_save_ifs"
6833fi
6834fi
6835YACC="$ac_cv_prog_YACC"
6836if test -n "$YACC"; then
6837 echo "$ac_t""$YACC" 1>&6
6838else
6839 echo "$ac_t""no" 1>&6
6840fi
6841
6842test -n "$YACC" && break
6843done
6844test -n "$YACC" || YACC="yacc"
6845
6846
6847# Extract the first word of "flex", so it can be a program name with args.
6848set dummy flex; ac_word=$2
6849echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6f72b082 6850echo "configure:6851: checking for $ac_word" >&5
10f2d63a
VZ
6851if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
6852 echo $ac_n "(cached) $ac_c" 1>&6
6853else
6854 if test -n "$LEX"; then
6855 ac_cv_prog_LEX="$LEX" # Let the user override the test.
6856else
6857 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6858 ac_dummy="$PATH"
6859 for ac_dir in $ac_dummy; do
6860 test -z "$ac_dir" && ac_dir=.
6861 if test -f $ac_dir/$ac_word; then
6862 ac_cv_prog_LEX="flex"
6863 break
6864 fi
6865 done
6866 IFS="$ac_save_ifs"
6867 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
6868fi
6869fi
6870LEX="$ac_cv_prog_LEX"
6871if test -n "$LEX"; then
6872 echo "$ac_t""$LEX" 1>&6
6873else
6874 echo "$ac_t""no" 1>&6
6875fi
6876
6877if test -z "$LEXLIB"
6878then
6879 case "$LEX" in
6880 flex*) ac_lib=fl ;;
6881 *) ac_lib=l ;;
6882 esac
6883 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
6f72b082 6884echo "configure:6885: checking for yywrap in -l$ac_lib" >&5
10f2d63a
VZ
6885ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
6886if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6887 echo $ac_n "(cached) $ac_c" 1>&6
6888else
6889 ac_save_LIBS="$LIBS"
6890LIBS="-l$ac_lib $LIBS"
6891cat > conftest.$ac_ext <<EOF
6f72b082 6892#line 6893 "configure"
10f2d63a
VZ
6893#include "confdefs.h"
6894/* Override any gcc2 internal prototype to avoid an error. */
6895/* We use char because int might match the return type of a gcc2
6896 builtin and then its argument prototype would still apply. */
6897char yywrap();
6898
6899int main() {
6900yywrap()
6901; return 0; }
6902EOF
6f72b082 6903if { (eval echo configure:6904: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
6904 rm -rf conftest*
6905 eval "ac_cv_lib_$ac_lib_var=yes"
6906else
6907 echo "configure: failed program was:" >&5
6908 cat conftest.$ac_ext >&5
6909 rm -rf conftest*
6910 eval "ac_cv_lib_$ac_lib_var=no"
6911fi
6912rm -f conftest*
6913LIBS="$ac_save_LIBS"
6914
6915fi
6916if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6917 echo "$ac_t""yes" 1>&6
6918 LEXLIB="-l$ac_lib"
6919else
6920 echo "$ac_t""no" 1>&6
6921fi
6922
6923fi
6924
6925
6926echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
6f72b082 6927echo "configure:6928: checking whether ln -s works" >&5
10f2d63a
VZ
6928if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
6929 echo $ac_n "(cached) $ac_c" 1>&6
6930else
6931 rm -f conftestdata
6932if ln -s X conftestdata 2>/dev/null
6933then
6934 rm -f conftestdata
6935 ac_cv_prog_LN_S="ln -s"
6936else
6937 ac_cv_prog_LN_S=ln
6938fi
6939fi
6940LN_S="$ac_cv_prog_LN_S"
6941if test "$ac_cv_prog_LN_S" = "ln -s"; then
6942 echo "$ac_t""yes" 1>&6
6943else
6944 echo "$ac_t""no" 1>&6
6945fi
6946
6947
6948
6949SEARCH_INCLUDE="\
6950 /usr/local/include \
6951 \
6952 /usr/Motif-1.2/include \
6953 /usr/Motif-2.1/include \
6954 \
6955 /usr/include/Motif1.2 \
6956 /opt/xpm/include/X11 \
6957 /opt/GBxpm/include/ \
6958 /opt/GBxpm/X11/include/ \
6959 \
6960 /usr/Motif1.2/include \
6961 /usr/dt/include \
afc31813
VZ
6962 /usr/openwin/include \
6963 \
10f2d63a
VZ
6964 /usr/include/Xm \
6965 \
6966 /usr/X11R6/include \
afc31813 6967 /usr/X11R6.4/include \
10f2d63a
VZ
6968 /usr/X11R5/include \
6969 /usr/X11R4/include \
6970 \
10f2d63a
VZ
6971 /usr/include/X11R6 \
6972 /usr/include/X11R5 \
6973 /usr/include/X11R4 \
6974 \
6975 /usr/local/X11R6/include \
6976 /usr/local/X11R5/include \
6977 /usr/local/X11R4/include \
6978 \
6979 /usr/local/include/X11R6 \
6980 /usr/local/include/X11R5 \
6981 /usr/local/include/X11R4 \
6982 \
6983 /usr/X11/include \
6984 /usr/include/X11 \
6985 /usr/local/X11/include \
6986 /usr/local/include/X11 \
6987 \
6988 /usr/X386/include \
6989 /usr/x386/include \
6990 /usr/XFree86/include/X11 \
6991 \
cf27ef00 6992 X:/XFree86/include \
ec14dd32
VZ
6993 X:/XFree86/include/X11 \
6994 \
10f2d63a
VZ
6995 /usr/include/gtk \
6996 /usr/local/include/gtk \
6997 /usr/include/glib \
6998 /usr/local/include/glib \
6999 \
7000 /usr/include/qt \
7001 /usr/local/include/qt \
7002 \
7003 /usr/include/windows \
7004 /usr/include/wine \
7005 /usr/local/include/wine \
7006 \
7007 /usr/unsupported/include \
7008 /usr/athena/include \
7009 /usr/local/x11r5/include \
7010 /usr/lpp/Xamples/include \
7011 \
10f2d63a 7012 /usr/openwin/share/include \
928b5c08
VZ
7013 \
7014 /usr/include"
10f2d63a
VZ
7015
7016SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s/include/lib/g` "
7017
7018
7019cat > confcache <<\EOF
7020# This file is a shell script that caches the results of configure
7021# tests run on this system so they can be shared between configure
7022# scripts and configure runs. It is not useful on other systems.
7023# If it contains results you don't want to keep, you may remove or edit it.
7024#
7025# By default, configure uses ./config.cache as the cache file,
7026# creating it if it does not exist already. You can give configure
7027# the --cache-file=FILE option to use a different cache file; that is
7028# what configure does when it calls configure scripts in
7029# subdirectories, so they share the cache.
7030# Giving --cache-file=/dev/null disables caching, for debugging configure.
7031# config.status only pays attention to the cache file if you give it the
7032# --recheck option to rerun configure.
7033#
7034EOF
7035# The following way of writing the cache mishandles newlines in values,
7036# but we know of no workaround that is simple, portable, and efficient.
7037# So, don't put newlines in cache variables' values.
7038# Ultrix sh set writes to stderr and can't be redirected directly,
7039# and sets the high bit in the cache file unless we assign to the vars.
7040(set) 2>&1 |
7041 case `(ac_space=' '; set | grep ac_space) 2>&1` in
7042 *ac_space=\ *)
7043 # `set' does not quote correctly, so add quotes (double-quote substitution
7044 # turns \\\\ into \\, and sed turns \\ into \).
7045 sed -n \
7046 -e "s/'/'\\\\''/g" \
7047 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
7048 ;;
7049 *)
7050 # `set' quotes correctly as required by POSIX, so do not add quotes.
7051 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
7052 ;;
7053 esac >> confcache
7054if cmp -s $cache_file confcache; then
7055 :
7056else
7057 if test -w $cache_file; then
7058 echo "updating cache $cache_file"
7059 cat confcache > $cache_file
7060 else
7061 echo "not updating unwritable cache $cache_file"
7062 fi
7063fi
7064rm -f confcache
7065
7066
7067
dad6c0ea
VZ
7068AFMINSTALL=
7069
10f2d63a
VZ
7070if test "$wxUSE_GUI" = "yes"; then
7071
dad6c0ea
VZ
7072USE_GUI=1
7073
10f2d63a
VZ
7074TOOLKIT=
7075TOOLKIT_INCLUDE=
7076
7077GUIOBJS=
7078COMMONOBJS=
7079GENERICOBJS=
7080
7081GUI_TK_LIBRARY=
7082GUI_TK_LINK=
7083
7084WXGTK12=
f6bcfd97 7085WXGTK127=
6f72b082 7086WXGTK20=
10f2d63a
VZ
7087
7088WXWINE=
7089
10f2d63a
VZ
7090if test "$wxUSE_CYGWIN" = 1 || test "$wxUSE_MINGW" = 1 ; then
7091 if test "$cross_compiling" = "yes" ; then
e59890c3 7092 echo "configure: warning: skipping windows.h check for cross-compilation" 1>&2
10f2d63a
VZ
7093 else
7094 echo $ac_n "checking for Windows headers""... $ac_c" 1>&6
6f72b082 7095echo "configure:7096: checking for Windows headers" >&5
10f2d63a
VZ
7096
7097ac_find_includes=
7098for ac_dir in $SEARCH_INCLUDE;
7099 do
7100 if test -f "$ac_dir/windows.h"; then
7101 ac_find_includes=$ac_dir
7102 break
7103 fi
7104 done
7105
7106 if test "$ac_find_includes" != "" ; then
7107 echo "$ac_t""found $ac_find_includes" 1>&6
7108 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE -I$ac_find_includes"
7109 else
7110 echo "$ac_t""no" 1>&6
7111 { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; }
7112 fi
7113 fi
7114
7115 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS msw"
7116 LIBS="$LIBS -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lctl3d32 -lcrtdll -ladvapi32 -lwsock32"
7117
f6bcfd97
BP
7118 if test "$wxUSE_ODBC" = "yes" ; then
7119 LIBS="$LIBS -lodbc32 -lole32 -loleaut32"
7120 fi
7121
10f2d63a
VZ
7122 if test "$wxUSE_MINGW" = 1; then
7123 LDFLAGS="$LDFLAGS -mwindows"
7124 fi
7125
7126 TOOLKIT=MSW
7127
7128 GUIOBJS="\$(MSW_GUIOBJS)"
7129 GUIHEADERS="\$(MSW_HEADERS)"
7130 COMMONOBJS="\$(MSW_COMMONOBJS)"
7131 GENERICOBJS="\$(MSW_GENERICOBJS)"
7132 UNIXOBJS=
7133 GUIDIST=MSW_DIST
32832908
VZ
7134
7135 RCINCSWITCH="--include-dir"
7136 RCDEFSWITCH="--define"
7137 RCPREPROCESSOR="--preprocessor \"\$(CC) -c -E -xc-header -DRC_INVOKED\""
7138 RCINPUTSWITCH="-i"
7139 RCOUTPUTSWITCH="-o"
7140 RESFLAGS="$RCPREPROCESSOR $RCINCSWITCH \$(top_srcdir)/include $RCINCSWITCH \$(top_srcdir)/\$(program_dir) $RCDEFSWITCH __WIN32__ $RCDEFSWITCH __WIN95__ $RCDEFSWITCH __GNUWIN32__"
7141
7142 RESPROGRAM="\$(RES_PROGRAM)"
7143
10f2d63a
VZ
7144fi
7145
7146if test "$wxUSE_GTK" = 1; then
6f72b082
OK
7147 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
7148if test "${with_gtk_prefix+set}" = set; then
7149 withval="$with_gtk_prefix"
7150 gtk_config_prefix="$withval"
7151else
7152 gtk_config_prefix=""
7153fi
7154
7155# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
7156if test "${with_gtk_exec_prefix+set}" = set; then
7157 withval="$with_gtk_exec_prefix"
7158 gtk_config_exec_prefix="$withval"
7159else
7160 gtk_config_exec_prefix=""
7161fi
7162
7163# Check whether --enable-gtktest or --disable-gtktest was given.
7164if test "${enable_gtktest+set}" = set; then
7165 enableval="$enable_gtktest"
7166 :
7167else
7168 enable_gtktest=yes
7169fi
7170
7171
7172 for module in . gthread
7173 do
7174 case "$module" in
7175 gthread)
7176 gtk_config_args="$gtk_config_args gthread"
7177 ;;
7178 esac
7179 done
7180
7181 if test x$gtk_config_exec_prefix != x ; then
7182 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
7183 if test x${GTK_CONFIG_2_0+set} != xset ; then
7184 GTK_CONFIG_2_0=$gtk_config_exec_prefix/bin/gtk-config-2.0
7185 fi
7186 fi
7187 if test x$gtk_config_prefix != x ; then
7188 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
7189 if test x${GTK_CONFIG_2_0+set} != xset ; then
7190 GTK_CONFIG_2_0=$gtk_config_prefix/bin/gtk-config-2.0
7191 fi
7192 fi
7193
7194 # Extract the first word of "gtk-config-2.0", so it can be a program name with args.
7195set dummy gtk-config-2.0; ac_word=$2
7196echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7197echo "configure:7198: checking for $ac_word" >&5
7198if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG_2_0'+set}'`\" = set"; then
7199 echo $ac_n "(cached) $ac_c" 1>&6
7200else
7201 case "$GTK_CONFIG_2_0" in
7202 /*)
7203 ac_cv_path_GTK_CONFIG_2_0="$GTK_CONFIG_2_0" # Let the user override the test with a path.
7204 ;;
7205 ?:/*)
7206 ac_cv_path_GTK_CONFIG_2_0="$GTK_CONFIG_2_0" # Let the user override the test with a dos path.
7207 ;;
7208 *)
7209 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7210 ac_dummy="$PATH"
7211 for ac_dir in $ac_dummy; do
7212 test -z "$ac_dir" && ac_dir=.
7213 if test -f $ac_dir/$ac_word; then
7214 ac_cv_path_GTK_CONFIG_2_0="$ac_dir/$ac_word"
7215 break
7216 fi
7217 done
7218 IFS="$ac_save_ifs"
7219 test -z "$ac_cv_path_GTK_CONFIG_2_0" && ac_cv_path_GTK_CONFIG_2_0="no"
7220 ;;
7221esac
7222fi
7223GTK_CONFIG_2_0="$ac_cv_path_GTK_CONFIG_2_0"
7224if test -n "$GTK_CONFIG_2_0"; then
7225 echo "$ac_t""$GTK_CONFIG_2_0" 1>&6
7226else
7227 echo "$ac_t""no" 1>&6
7228fi
7229
7230 min_gtk_version=1.3.1
7231 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
7232echo "configure:7233: checking for GTK - version >= $min_gtk_version" >&5
7233 no_gtk=""
7234 if test "$GTK_CONFIG_2_0" = "no" ; then
7235 no_gtk=yes
7236 else
7237 GTK_CFLAGS=`$GTK_CONFIG_2_0 $gtk_config_args --cflags`
7238 GTK_LIBS=`$GTK_CONFIG_2_0 $gtk_config_args --libs`
7239 gtk_config_major_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \
7240 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
7241 gtk_config_minor_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \
7242 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
7243 gtk_config_micro_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \
7244 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
7245 if test "x$enable_gtktest" = "xyes" ; then
7246 ac_save_CFLAGS="$CFLAGS"
7247 ac_save_LIBS="$LIBS"
7248 CFLAGS="$CFLAGS $GTK_CFLAGS"
7249 LIBS="$GTK_LIBS $LIBS"
7250 rm -f conf.gtktest
7251 if test "$cross_compiling" = yes; then
7252 echo $ac_n "cross compiling; assumed OK... $ac_c"
7253else
7254 cat > conftest.$ac_ext <<EOF
7255#line 7256 "configure"
7256#include "confdefs.h"
7257
7258#include <gtk/gtk.h>
7259#include <stdio.h>
7260#include <stdlib.h>
7261
7262int
7263main ()
7264{
7265 int major, minor, micro;
7266 char *tmp_version;
7267
7268 system ("touch conf.gtktest");
7269
7270 /* HP/UX 9 (%@#!) writes to sscanf strings */
7271 tmp_version = g_strdup("$min_gtk_version");
7272 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
7273 printf("%s, bad version string\n", "$min_gtk_version");
7274 exit(1);
7275 }
7276
7277 if ((gtk_major_version != $gtk_config_major_version) ||
7278 (gtk_minor_version != $gtk_config_minor_version) ||
7279 (gtk_micro_version != $gtk_config_micro_version))
7280 {
7281 printf("\n*** 'gtk-config-2.0 --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
7282 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
7283 gtk_major_version, gtk_minor_version, gtk_micro_version);
7284 printf ("*** was found! If gtk-config-2.0 was correct, then it is best\n");
7285 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
7286 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
7287 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
7288 printf("*** required on your system.\n");
7289 printf("*** If gtk-config-2.0 was wrong, set the environment variable GTK_CONFIG_2_0\n");
7290 printf("*** to point to the correct copy of gtk-config-2.0, and remove the file config.cache\n");
7291 printf("*** before re-running configure\n");
7292 }
7293#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
7294 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
7295 (gtk_minor_version != GTK_MINOR_VERSION) ||
7296 (gtk_micro_version != GTK_MICRO_VERSION))
7297 {
7298 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
7299 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
7300 printf("*** library (version %d.%d.%d)\n",
7301 gtk_major_version, gtk_minor_version, gtk_micro_version);
7302 }
7303#endif /* defined (GTK_MAJOR_VERSION) ... */
7304 else
7305 {
7306 if ((gtk_major_version > major) ||
7307 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
7308 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
7309 {
7310 return 0;
7311 }
7312 else
7313 {
7314 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
7315 gtk_major_version, gtk_minor_version, gtk_micro_version);
7316 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
7317 major, minor, micro);
7318 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
7319 printf("***\n");
7320 printf("*** If you have already installed a sufficiently new version, this error\n");
7321 printf("*** probably means that the wrong copy of the gtk-config-2.0 shell script is\n");
7322 printf("*** being found. The easiest way to fix this is to remove the old version\n");
7323 printf("*** of GTK+, but you can also set the GTK_CONFIG_2_0 environment to point to the\n");
7324 printf("*** correct copy of gtk-config-2.0. (In this case, you will have to\n");
7325 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
7326 printf("*** so that the correct libraries are found at run-time))\n");
7327 }
7328 }
7329 return 1;
7330}
7331
7332EOF
7333if { (eval echo configure:7334: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7334then
7335 :
7336else
7337 echo "configure: failed program was:" >&5
7338 cat conftest.$ac_ext >&5
7339 rm -fr conftest*
7340 no_gtk=yes
7341fi
7342rm -fr conftest*
7343fi
7344
7345 CFLAGS="$ac_save_CFLAGS"
7346 LIBS="$ac_save_LIBS"
7347 fi
7348 fi
7349 if test "x$no_gtk" = x ; then
7350 echo "$ac_t""yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" 1>&6
7351 WXGTK20=1
7352 else
7353 echo "$ac_t""no" 1>&6
7354 if test "$GTK_CONFIG_2_0" = "no" ; then
7355 echo "*** The gtk-config-2.0 script installed by GTK could not be found"
7356 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
7357 echo "*** your path, or set the GTK_CONFIG_2_0 environment variable to the"
7358 echo "*** full path to gtk-config-2.0."
7359 else
7360 if test -f conf.gtktest ; then
7361 :
7362 else
7363 echo "*** Could not run GTK test program, checking why..."
7364 CFLAGS="$CFLAGS $GTK_CFLAGS"
7365 LIBS="$LIBS $GTK_LIBS"
7366 cat > conftest.$ac_ext <<EOF
7367#line 7368 "configure"
7368#include "confdefs.h"
7369
7370#include <gtk/gtk.h>
7371#include <stdio.h>
7372
7373int main() {
7374 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
7375; return 0; }
7376EOF
7377if { (eval echo configure:7378: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7378 rm -rf conftest*
7379 echo "*** The test program compiled, but did not run. This usually means"
7380 echo "*** that the run-time linker is not finding GTK or finding the wrong"
7381 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
7382 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
7383 echo "*** to the installed location Also, make sure you have run ldconfig if that"
7384 echo "*** is required on your system"
7385 echo "***"
7386 echo "*** If you have an old version installed, it is best to remove it, although"
7387 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
7388 echo "***"
7389 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
7390 echo "*** came with the system with the command"
7391 echo "***"
7392 echo "*** rpm --erase --nodeps gtk gtk-devel"
7393else
7394 echo "configure: failed program was:" >&5
7395 cat conftest.$ac_ext >&5
7396 rm -rf conftest*
7397 echo "*** The test program failed to compile or link. See the file config.log for the"
7398 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
7399 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
7400 echo "*** may want to edit the gtk-config-2.0 script: $GTK_CONFIG_2_0"
7401fi
7402rm -f conftest*
7403 CFLAGS="$ac_save_CFLAGS"
7404 LIBS="$ac_save_LIBS"
7405 fi
7406 fi
7407 GTK_CFLAGS=""
7408 GTK_LIBS=""
7409
7410
10f2d63a
VZ
7411 if test x$gtk_config_exec_prefix != x ; then
7412 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
7413 if test x${GTK_CONFIG+set} != xset ; then
7414 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
7415 fi
7416 fi
7417 if test x$gtk_config_prefix != x ; then
7418 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
7419 if test x${GTK_CONFIG+set} != xset ; then
7420 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
7421 fi
7422 fi
7423
7424 # Extract the first word of "gtk-config", so it can be a program name with args.
7425set dummy gtk-config; ac_word=$2
7426echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6f72b082 7427echo "configure:7428: checking for $ac_word" >&5
f6bcfd97
BP
7428if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
7429 echo $ac_n "(cached) $ac_c" 1>&6
7430else
7431 case "$GTK_CONFIG" in
7432 /*)
7433 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
7434 ;;
7435 ?:/*)
7436 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
7437 ;;
7438 *)
7439 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7440 ac_dummy="$PATH"
7441 for ac_dir in $ac_dummy; do
7442 test -z "$ac_dir" && ac_dir=.
7443 if test -f $ac_dir/$ac_word; then
7444 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
7445 break
7446 fi
7447 done
7448 IFS="$ac_save_ifs"
7449 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
7450 ;;
7451esac
7452fi
7453GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
7454if test -n "$GTK_CONFIG"; then
7455 echo "$ac_t""$GTK_CONFIG" 1>&6
7456else
7457 echo "$ac_t""no" 1>&6
7458fi
7459
7460 min_gtk_version=1.2.7
7461 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
6f72b082 7462echo "configure:7463: checking for GTK - version >= $min_gtk_version" >&5
f6bcfd97
BP
7463 no_gtk=""
7464 if test "$GTK_CONFIG" != "no" ; then
7465 GTK_CFLAGS=`$GTK_CONFIG --cflags`
7466 GTK_LIBS=`$GTK_CONFIG --libs gthread`
7467 ac_save_CFLAGS="$CFLAGS"
7468 ac_save_LIBS="$LIBS"
7469 CFLAGS="$CFLAGS $GTK_CFLAGS"
7470 LIBS="$LIBS $GTK_LIBS"
7471 if test "$cross_compiling" = yes; then
7472 echo $ac_n "cross compiling; assumed OK... $ac_c"
7473else
7474 cat > conftest.$ac_ext <<EOF
6f72b082 7475#line 7476 "configure"
f6bcfd97
BP
7476#include "confdefs.h"
7477
7478#include <gtk/gtk.h>
7479#include <gtk/gtkfeatures.h>
7480#include <stdio.h>
7481#include <stdlib.h>
7482
7483int
7484main ()
7485{
7486 int major, minor, micro;
7487
7488 if (sscanf("$min_gtk_version", "%d.%d.%d", &major, &minor, &micro) != 3) {
7489 printf("%s, bad version string\n", "$min_gtk_version");
7490 exit(1);
7491 }
7492
7493 if ((GTK_MAJOR_VERSION != gtk_major_version) ||
7494 (GTK_MINOR_VERSION != gtk_minor_version) ||
7495 (GTK_MICRO_VERSION != gtk_micro_version)) {
7496 printf("Headers vs. library version mismatch!\n");
7497 exit(1);
7498 }
7499
7500 if (gtk_minor_version == 1) return FALSE;
7501
7502 return !((gtk_major_version > major) ||
7503 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
7504 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)));
7505}
7506
7507EOF
6f72b082 7508if { (eval echo configure:7509: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
f6bcfd97
BP
7509then
7510 :
7511else
7512 echo "configure: failed program was:" >&5
7513 cat conftest.$ac_ext >&5
7514 rm -fr conftest*
7515 no_gtk=yes
7516fi
7517rm -fr conftest*
7518fi
7519
7520 CFLAGS="$ac_save_CFLAGS"
7521 LIBS="$ac_save_LIBS"
7522 else
7523 no_gtk=yes
7524 fi
7525 if test "x$no_gtk" = x ; then
7526 echo "$ac_t""yes" 1>&6
7527 WXGTK127=1
7528 else
7529 echo "$ac_t""no" 1>&6
7530 GTK_CFLAGS=""
7531 GTK_LIBS=""
7532 :
7533 fi
7534
7535
7536
6f72b082 7537
f6bcfd97
BP
7538 if test x$gtk_config_exec_prefix != x ; then
7539 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
7540 if test x${GTK_CONFIG+set} != xset ; then
7541 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
7542 fi
7543 fi
7544 if test x$gtk_config_prefix != x ; then
7545 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
7546 if test x${GTK_CONFIG+set} != xset ; then
7547 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
7548 fi
7549 fi
7550
7551 # Extract the first word of "gtk-config", so it can be a program name with args.
7552set dummy gtk-config; ac_word=$2
7553echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6f72b082 7554echo "configure:7555: checking for $ac_word" >&5
10f2d63a
VZ
7555if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
7556 echo $ac_n "(cached) $ac_c" 1>&6
7557else
7558 case "$GTK_CONFIG" in
7559 /*)
7560 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
7561 ;;
7562 ?:/*)
7563 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
7564 ;;
7565 *)
7566 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7567 ac_dummy="$PATH"
7568 for ac_dir in $ac_dummy; do
7569 test -z "$ac_dir" && ac_dir=.
7570 if test -f $ac_dir/$ac_word; then
7571 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
7572 break
7573 fi
7574 done
7575 IFS="$ac_save_ifs"
7576 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
7577 ;;
7578esac
7579fi
7580GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
7581if test -n "$GTK_CONFIG"; then
7582 echo "$ac_t""$GTK_CONFIG" 1>&6
7583else
7584 echo "$ac_t""no" 1>&6
7585fi
7586
04165bec 7587 min_gtk_version=1.2.3
10f2d63a 7588 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
6f72b082 7589echo "configure:7590: checking for GTK - version >= $min_gtk_version" >&5
10f2d63a
VZ
7590 no_gtk=""
7591 if test "$GTK_CONFIG" != "no" ; then
7592 GTK_CFLAGS=`$GTK_CONFIG --cflags`
2224580a 7593 GTK_LIBS=`$GTK_CONFIG --libs gthread`
10f2d63a
VZ
7594 ac_save_CFLAGS="$CFLAGS"
7595 ac_save_LIBS="$LIBS"
7596 CFLAGS="$CFLAGS $GTK_CFLAGS"
7597 LIBS="$LIBS $GTK_LIBS"
7598 if test "$cross_compiling" = yes; then
7599 echo $ac_n "cross compiling; assumed OK... $ac_c"
7600else
7601 cat > conftest.$ac_ext <<EOF
6f72b082 7602#line 7603 "configure"
10f2d63a
VZ
7603#include "confdefs.h"
7604
7605#include <gtk/gtk.h>
f49f2b0c 7606#include <gtk/gtkfeatures.h>
10f2d63a 7607#include <stdio.h>
32832908 7608#include <stdlib.h>
10f2d63a
VZ
7609
7610int
7611main ()
7612{
7613 int major, minor, micro;
7614
7615 if (sscanf("$min_gtk_version", "%d.%d.%d", &major, &minor, &micro) != 3) {
7616 printf("%s, bad version string\n", "$min_gtk_version");
7617 exit(1);
7618 }
7619
f49f2b0c
RR
7620 if ((GTK_MAJOR_VERSION != gtk_major_version) ||
7621 (GTK_MINOR_VERSION != gtk_minor_version) ||
7622 (GTK_MICRO_VERSION != gtk_micro_version)) {
7623 printf("Headers vs. library version mismatch!\n");
7624 exit(1);
7625 }
7626
10f2d63a
VZ
7627 if (gtk_minor_version == 1) return FALSE;
7628
7629 return !((gtk_major_version > major) ||
7630 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
7631 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)));
7632}
7633
7634EOF
6f72b082 7635if { (eval echo configure:7636: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10f2d63a
VZ
7636then
7637 :
7638else
7639 echo "configure: failed program was:" >&5
7640 cat conftest.$ac_ext >&5
7641 rm -fr conftest*
7642 no_gtk=yes
7643fi
7644rm -fr conftest*
7645fi
7646
7647 CFLAGS="$ac_save_CFLAGS"
7648 LIBS="$ac_save_LIBS"
7649 else
7650 no_gtk=yes
7651 fi
7652 if test "x$no_gtk" = x ; then
7653 echo "$ac_t""yes" 1>&6
7654 WXGTK12=1
7655 else
7656 echo "$ac_t""no" 1>&6
7657 GTK_CFLAGS=""
7658 GTK_LIBS=""
7e99ad86 7659 :
10f2d63a
VZ
7660 fi
7661
7662
7663
6f72b082
OK
7664
7665 fi
7666
7667
7668 rm -f conf.gtktest
7669
10f2d63a 7670
6f72b082 7671 if test "$WXGTK12" != 1 -a "$WXGTK20" != 1; then
7e99ad86
VZ
7672 { echo "configure: error:
7673 Please check that gtk-config is in path, the directory
7674 where GTK+ libraries are installed (returned by
7675 'gtk-config --libs' command) is in LD_LIBRARY_PATH or
7676 equivalent variable and GTK+ is version 1.2.3 or above.
7677 " 1>&2; exit 1; }
7678 fi
7679
10f2d63a 7680 TOOLKIT_INCLUDE="$GTK_CFLAGS"
2224580a
VZ
7681
7682
7683 GUI_TK_LIBRARY="$GTK_LIBS"
7684
10f2d63a
VZ
7685 TOOLKIT=GTK
7686
dad6c0ea
VZ
7687 AFMINSTALL=afminstall
7688
10f2d63a
VZ
7689 GUIOBJS="\$(GTK_GUIOBJS)"
7690 GUIHEADERS="\$(GTK_HEADERS)"
7691 COMMONOBJS="\$(GTK_COMMONOBJS)"
7692 GENERICOBJS="\$(GTK_GENERICOBJS)"
7693 GUIDEPS="\$(GTK_GUIDEPS)"
7694 COMMONDEPS="\$(GTK_COMMONDEPS)"
7695 GENERICDEPS="\$(GTK_GENERICDEPS)"
7696 UNIXOBJS="\$(UNIX_OBJS)"
d9d8273d 7697 UNIXDEPS="\$(UNIX_DEPS)"
10f2d63a 7698 GUIDIST=GTK_DIST
7ec2881a 7699
2224580a 7700 echo $ac_n "checking for gdk_im_open in -lgdk""... $ac_c" 1>&6
6f72b082 7701echo "configure:7702: checking for gdk_im_open in -lgdk" >&5
7ec2881a
RR
7702ac_lib_var=`echo gdk'_'gdk_im_open | sed 'y%./+-%__p_%'`
7703if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7704 echo $ac_n "(cached) $ac_c" 1>&6
7705else
7706 ac_save_LIBS="$LIBS"
7707LIBS="-lgdk $LIBS"
7708cat > conftest.$ac_ext <<EOF
6f72b082 7709#line 7710 "configure"
7ec2881a
RR
7710#include "confdefs.h"
7711/* Override any gcc2 internal prototype to avoid an error. */
7712/* We use char because int might match the return type of a gcc2
7713 builtin and then its argument prototype would still apply. */
7714char gdk_im_open();
7715
7716int main() {
7717gdk_im_open()
7718; return 0; }
7719EOF
6f72b082 7720if { (eval echo configure:7721: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7ec2881a
RR
7721 rm -rf conftest*
7722 eval "ac_cv_lib_$ac_lib_var=yes"
7723else
7724 echo "configure: failed program was:" >&5
7725 cat conftest.$ac_ext >&5
7726 rm -rf conftest*
7727 eval "ac_cv_lib_$ac_lib_var=no"
7728fi
7729rm -f conftest*
7730LIBS="$ac_save_LIBS"
7731
7732fi
7733if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7734 echo "$ac_t""yes" 1>&6
7735 cat >> confdefs.h <<\EOF
7736#define HAVE_XIM 1
7737EOF
7738
7739else
7740 echo "$ac_t""no" 1>&6
7741fi
7742
10f2d63a
VZ
7743fi
7744
7745if test "$wxUSE_WINE" = 1; then
7746 echo $ac_n "checking for WINE includes""... $ac_c" 1>&6
6f72b082 7747echo "configure:7748: checking for WINE includes" >&5
10f2d63a
VZ
7748
7749ac_find_includes=
7750for ac_dir in $SEARCH_INCLUDE;
7751 do
7752 if test -f "$ac_dir/windows.h"; then
7753 ac_find_includes=$ac_dir
7754 break
7755 fi
7756 done
7757
7758 if test "$ac_find_includes" != "" ; then
7759 echo "$ac_t""found $ac_find_includes" 1>&6
7760 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE -I$ac_find_includes"
7761 else
7762 echo "$ac_t""no" 1>&6
7763 { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; }
7764 fi
7765
7766 XPM_LINK=""
7767 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
6f72b082 7768echo "configure:7769: checking for Xpm library" >&5
10f2d63a
VZ
7769
7770ac_find_libraries=
7771for ac_dir in $SEARCH_LIB;
7772 do
7773 for ac_extension in a so sl; do
7774 if test -f "$ac_dir/libXpm.$ac_extension"; then
7775 ac_find_libraries=$ac_dir
7776 break 2
7777 fi
7778 done
7779 done
7780
7781 if test "$ac_find_libraries" != "" ; then
7782 GUI_TK_LIBRARY="-L$ac_find_libraries"
7783 XPM_LINK="-lXpm"
7784 cat >> confdefs.h <<\EOF
7785#define wxHAVE_LIB_XPM 1
7786EOF
7787
7788 echo "$ac_t""found at $ac_find_libraries" 1>&6
7789 else
7790 echo "$ac_t""no" 1>&6
7791 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
7792 fi
7793
7794 MESA_LINK=""
7795 echo $ac_n "checking for Mesa library""... $ac_c" 1>&6
6f72b082 7796echo "configure:7797: checking for Mesa library" >&5
10f2d63a
VZ
7797
7798ac_find_libraries=
7799for ac_dir in $SEARCH_LIB;
7800 do
7801 for ac_extension in a so sl; do
7802 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
7803 ac_find_libraries=$ac_dir
7804 break 2
7805 fi
7806 done
7807 done
7808
7809 if test "$ac_find_libraries" != "" ; then
7810 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -L$ac_find_libraries"
7811 MESA_LINK="-lMesaGL"
7812 echo "$ac_t""found at $ac_find_libraries" 1>&6
7813 else
7814 { echo "configure: error: no" 1>&2; exit 1; }
7815 fi
7816
8916026b 7817 GUI_TK_LINK="-lwine $MESA_LINK $XPM_LINK -lXxf86dga -lXxf86vm -lSM -lICE -lXext -lXmu -lX11 -lncurses"
10f2d63a
VZ
7818 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $GUI_TK_LINK"
7819 WXWINE=1
7820 TOOLKIT=MSW
7821
7822 GUIHEADERS="\$(MSW_HEADERS)"
7823 GUIOBJS="\$(MSW_GUIOBJS)"
7824 COMMONOBJS="\$(MSW_COMMONOBJS)"
7825 GENERICOBJS="\$(MSW_GENERICOBJS)"
7826 GUIDEPS="\$(MSW_GUIDEPS)"
7827 COMMONDEPS="\$(MSW_COMMONDEPS)"
7828 GENERICDEPS="\$(MSW_GENERICDEPS)"
7829 UNIXOBJS="\$(UNIX_OBJS)"
d9d8273d 7830 UNIXDEPS="\$(UNIX_DEPS)"
10f2d63a
VZ
7831 GUIDIST=MSW_DIST
7832fi
7833
7834if test "$wxUSE_MOTIF" = 1; then
ab9b9eab
VZ
7835 # If we find X, set shell vars x_includes and x_libraries to the
7836# paths, otherwise set no_x=yes.
7837# Uses ac_ vars as temps to allow command line to override cache and checks.
7838# --without-x overrides everything else, but does not touch the cache.
7839echo $ac_n "checking for X""... $ac_c" 1>&6
6f72b082 7840echo "configure:7841: checking for X" >&5
ab9b9eab
VZ
7841
7842# Check whether --with-x or --without-x was given.
7843if test "${with_x+set}" = set; then
7844 withval="$with_x"
7845 :
7846fi
ba337fe7 7847
ab9b9eab
VZ
7848# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7849if test "x$with_x" = xno; then
7850 # The user explicitly disabled X.
7851 have_x=disabled
7852else
7853 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
7854 # Both variables are already set.
7855 have_x=yes
7856 else
7857if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
7858 echo $ac_n "(cached) $ac_c" 1>&6
7859else
7860 # One or both of the vars are not set, and there is no cached value.
7861ac_x_includes=NO ac_x_libraries=NO
7862rm -fr conftestdir
7863if mkdir conftestdir; then
7864 cd conftestdir
7865 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
7866 cat > Imakefile <<'EOF'
7867acfindx:
7868 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
7869EOF
7870 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
7871 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7872 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
7873 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
10f2d63a 7874 for ac_extension in a so sl; do
ab9b9eab
VZ
7875 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
7876 test -f $ac_im_libdir/libX11.$ac_extension; then
7877 ac_im_usrlibdir=$ac_im_libdir; break
10f2d63a
VZ
7878 fi
7879 done
ab9b9eab
VZ
7880 # Screen out bogus values from the imake configuration. They are
7881 # bogus both because they are the default anyway, and because
7882 # using them would break gcc on systems where it needs fixed includes.
7883 case "$ac_im_incroot" in
7884 /usr/include) ;;
7885 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
7886 esac
7887 case "$ac_im_usrlibdir" in
7888 /usr/lib | /lib) ;;
7889 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
7890 esac
ba337fe7 7891 fi
ab9b9eab
VZ
7892 cd ..
7893 rm -fr conftestdir
7894fi
10f2d63a 7895
ab9b9eab
VZ
7896if test "$ac_x_includes" = NO; then
7897 # Guess where to find include files, by looking for this one X11 .h file.
7898 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
ba337fe7 7899
ab9b9eab
VZ
7900 # First, try using that file with no special directory specified.
7901cat > conftest.$ac_ext <<EOF
6f72b082 7902#line 7903 "configure"
ab9b9eab
VZ
7903#include "confdefs.h"
7904#include <$x_direct_test_include>
7905EOF
7906ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6f72b082 7907{ (eval echo configure:7908: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ab9b9eab
VZ
7908ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7909if test -z "$ac_err"; then
7910 rm -rf conftest*
7911 # We can compile using X headers with no special include directory.
7912ac_x_includes=
7913else
7914 echo "$ac_err" >&5
7915 echo "configure: failed program was:" >&5
7916 cat conftest.$ac_ext >&5
7917 rm -rf conftest*
7918 # Look for the header file in a standard set of common directories.
7919# Check X11 before X11Rn because it is often a symlink to the current release.
7920 for ac_dir in \
7921 /usr/X11/include \
7922 /usr/X11R6/include \
7923 /usr/X11R5/include \
7924 /usr/X11R4/include \
7925 \
7926 /usr/include/X11 \
7927 /usr/include/X11R6 \
7928 /usr/include/X11R5 \
7929 /usr/include/X11R4 \
7930 \
7931 /usr/local/X11/include \
7932 /usr/local/X11R6/include \
7933 /usr/local/X11R5/include \
7934 /usr/local/X11R4/include \
7935 \
7936 /usr/local/include/X11 \
7937 /usr/local/include/X11R6 \
7938 /usr/local/include/X11R5 \
7939 /usr/local/include/X11R4 \
7940 \
7941 /usr/X386/include \
7942 /usr/x386/include \
7943 /usr/XFree86/include/X11 \
7944 \
7945 /usr/include \
7946 /usr/local/include \
7947 /usr/unsupported/include \
7948 /usr/athena/include \
7949 /usr/local/x11r5/include \
7950 /usr/lpp/Xamples/include \
7951 \
7952 /usr/openwin/include \
7953 /usr/openwin/share/include \
7954 ; \
10f2d63a 7955 do
ab9b9eab
VZ
7956 if test -r "$ac_dir/$x_direct_test_include"; then
7957 ac_x_includes=$ac_dir
10f2d63a
VZ
7958 break
7959 fi
7960 done
ab9b9eab
VZ
7961fi
7962rm -f conftest*
7963fi # $ac_x_includes = NO
10f2d63a 7964
ab9b9eab
VZ
7965if test "$ac_x_libraries" = NO; then
7966 # Check for the libraries.
10f2d63a 7967
ab9b9eab
VZ
7968 test -z "$x_direct_test_library" && x_direct_test_library=Xt
7969 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
10f2d63a 7970
ab9b9eab
VZ
7971 # See if we find them without any special options.
7972 # Don't add to $LIBS permanently.
7973 ac_save_LIBS="$LIBS"
7974 LIBS="-l$x_direct_test_library $LIBS"
7975cat > conftest.$ac_ext <<EOF
6f72b082 7976#line 7977 "configure"
ab9b9eab 7977#include "confdefs.h"
10f2d63a 7978
ab9b9eab
VZ
7979int main() {
7980${x_direct_test_function}()
7981; return 0; }
7982EOF
6f72b082 7983if { (eval echo configure:7984: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
7984 rm -rf conftest*
7985 LIBS="$ac_save_LIBS"
7986# We can link X programs with no special library path.
7987ac_x_libraries=
7988else
7989 echo "configure: failed program was:" >&5
7990 cat conftest.$ac_ext >&5
7991 rm -rf conftest*
7992 LIBS="$ac_save_LIBS"
7993# First see if replacing the include by lib works.
7994# Check X11 before X11Rn because it is often a symlink to the current release.
7995for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
7996 /usr/X11/lib \
7997 /usr/X11R6/lib \
7998 /usr/X11R5/lib \
7999 /usr/X11R4/lib \
8000 \
8001 /usr/lib/X11 \
8002 /usr/lib/X11R6 \
8003 /usr/lib/X11R5 \
8004 /usr/lib/X11R4 \
8005 \
8006 /usr/local/X11/lib \
8007 /usr/local/X11R6/lib \
8008 /usr/local/X11R5/lib \
8009 /usr/local/X11R4/lib \
8010 \
8011 /usr/local/lib/X11 \
8012 /usr/local/lib/X11R6 \
8013 /usr/local/lib/X11R5 \
8014 /usr/local/lib/X11R4 \
8015 \
8016 /usr/X386/lib \
8017 /usr/x386/lib \
8018 /usr/XFree86/lib/X11 \
8019 \
8020 /usr/lib \
8021 /usr/local/lib \
8022 /usr/unsupported/lib \
8023 /usr/athena/lib \
8024 /usr/local/x11r5/lib \
8025 /usr/lpp/Xamples/lib \
8026 /lib/usr/lib/X11 \
8027 \
8028 /usr/openwin/lib \
8029 /usr/openwin/share/lib \
8030 ; \
8031do
8032 for ac_extension in a so sl; do
8033 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
8034 ac_x_libraries=$ac_dir
8035 break 2
10f2d63a 8036 fi
10f2d63a 8037 done
ab9b9eab
VZ
8038done
8039fi
8040rm -f conftest*
8041fi # $ac_x_libraries = NO
10f2d63a 8042
ab9b9eab
VZ
8043if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
8044 # Didn't find X anywhere. Cache the known absence of X.
8045 ac_cv_have_x="have_x=no"
8046else
8047 # Record where we found X for the cache.
8048 ac_cv_have_x="have_x=yes \
8049 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
8050fi
8051fi
10f2d63a 8052 fi
ab9b9eab
VZ
8053 eval "$ac_cv_have_x"
8054fi # $with_x != no
10f2d63a 8055
ab9b9eab
VZ
8056if test "$have_x" != yes; then
8057 echo "$ac_t""$have_x" 1>&6
8058 no_x=yes
8059else
8060 # If each of the values was on the command line, it overrides each guess.
8061 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
8062 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
8063 # Update the cache value to reflect the command line values.
8064 ac_cv_have_x="have_x=yes \
8065 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
8066 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
8067fi
10f2d63a 8068
ab9b9eab
VZ
8069if test "$no_x" = yes; then
8070 # Not all programs may use this symbol, but it does not hurt to define it.
8071 cat >> confdefs.h <<\EOF
8072#define X_DISPLAY_MISSING 1
8073EOF
10f2d63a 8074
ab9b9eab
VZ
8075 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
8076else
8077 if test -n "$x_includes"; then
8078 X_CFLAGS="$X_CFLAGS -I$x_includes"
10f2d63a
VZ
8079 fi
8080
ab9b9eab
VZ
8081 # It would also be nice to do this for all -L options, not just this one.
8082 if test -n "$x_libraries"; then
8083 X_LIBS="$X_LIBS -L$x_libraries"
8084 # For Solaris; some versions of Sun CC require a space after -R and
8085 # others require no space. Words are not sufficient . . . .
8086 case "`(uname -sr) 2>/dev/null`" in
8087 "SunOS 5"*)
8088 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
6f72b082 8089echo "configure:8090: checking whether -R must be followed by a space" >&5
ab9b9eab
VZ
8090 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
8091 cat > conftest.$ac_ext <<EOF
6f72b082 8092#line 8093 "configure"
ab9b9eab 8093#include "confdefs.h"
10f2d63a 8094
ab9b9eab 8095int main() {
788deba1 8096
ab9b9eab
VZ
8097; return 0; }
8098EOF
6f72b082 8099if { (eval echo configure:8100: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
8100 rm -rf conftest*
8101 ac_R_nospace=yes
8102else
8103 echo "configure: failed program was:" >&5
8104 cat conftest.$ac_ext >&5
8105 rm -rf conftest*
8106 ac_R_nospace=no
8107fi
8108rm -f conftest*
8109 if test $ac_R_nospace = yes; then
8110 echo "$ac_t""no" 1>&6
8111 X_LIBS="$X_LIBS -R$x_libraries"
8112 else
8113 LIBS="$ac_xsave_LIBS -R $x_libraries"
8114 cat > conftest.$ac_ext <<EOF
6f72b082 8115#line 8116 "configure"
ab9b9eab 8116#include "confdefs.h"
788deba1 8117
ab9b9eab
VZ
8118int main() {
8119
8120; return 0; }
8121EOF
6f72b082 8122if { (eval echo configure:8123: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
8123 rm -rf conftest*
8124 ac_R_space=yes
8125else
8126 echo "configure: failed program was:" >&5
8127 cat conftest.$ac_ext >&5
8128 rm -rf conftest*
8129 ac_R_space=no
8130fi
8131rm -f conftest*
8132 if test $ac_R_space = yes; then
8133 echo "$ac_t""yes" 1>&6
8134 X_LIBS="$X_LIBS -R $x_libraries"
8135 else
8136 echo "$ac_t""neither works" 1>&6
8137 fi
8138 fi
8139 LIBS="$ac_xsave_LIBS"
8140 esac
8141 fi
8142
8143 # Check for system-dependent libraries X programs must link with.
8144 # Do this before checking for the system-independent R6 libraries
8145 # (-lICE), since we may need -lsocket or whatever for X linking.
8146
8147 if test "$ISC" = yes; then
8148 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
8149 else
8150 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
8151 # libraries were built with DECnet support. And karl@cs.umb.edu says
8152 # the Alpha needs dnet_stub (dnet does not exist).
8153 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
6f72b082 8154echo "configure:8155: checking for dnet_ntoa in -ldnet" >&5
ab9b9eab
VZ
8155ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
8156if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8157 echo $ac_n "(cached) $ac_c" 1>&6
8158else
8159 ac_save_LIBS="$LIBS"
8160LIBS="-ldnet $LIBS"
8161cat > conftest.$ac_ext <<EOF
6f72b082 8162#line 8163 "configure"
ab9b9eab
VZ
8163#include "confdefs.h"
8164/* Override any gcc2 internal prototype to avoid an error. */
8165/* We use char because int might match the return type of a gcc2
8166 builtin and then its argument prototype would still apply. */
8167char dnet_ntoa();
8168
8169int main() {
8170dnet_ntoa()
8171; return 0; }
8172EOF
6f72b082 8173if { (eval echo configure:8174: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
8174 rm -rf conftest*
8175 eval "ac_cv_lib_$ac_lib_var=yes"
8176else
8177 echo "configure: failed program was:" >&5
8178 cat conftest.$ac_ext >&5
8179 rm -rf conftest*
8180 eval "ac_cv_lib_$ac_lib_var=no"
8181fi
8182rm -f conftest*
8183LIBS="$ac_save_LIBS"
8184
8185fi
8186if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8187 echo "$ac_t""yes" 1>&6
8188 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
8189else
8190 echo "$ac_t""no" 1>&6
8191fi
8192
8193 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
8194 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
6f72b082 8195echo "configure:8196: checking for dnet_ntoa in -ldnet_stub" >&5
ab9b9eab
VZ
8196ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
8197if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8198 echo $ac_n "(cached) $ac_c" 1>&6
8199else
8200 ac_save_LIBS="$LIBS"
8201LIBS="-ldnet_stub $LIBS"
8202cat > conftest.$ac_ext <<EOF
6f72b082 8203#line 8204 "configure"
ab9b9eab
VZ
8204#include "confdefs.h"
8205/* Override any gcc2 internal prototype to avoid an error. */
8206/* We use char because int might match the return type of a gcc2
8207 builtin and then its argument prototype would still apply. */
8208char dnet_ntoa();
8209
8210int main() {
8211dnet_ntoa()
8212; return 0; }
8213EOF
6f72b082 8214if { (eval echo configure:8215: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
8215 rm -rf conftest*
8216 eval "ac_cv_lib_$ac_lib_var=yes"
8217else
8218 echo "configure: failed program was:" >&5
8219 cat conftest.$ac_ext >&5
8220 rm -rf conftest*
8221 eval "ac_cv_lib_$ac_lib_var=no"
8222fi
8223rm -f conftest*
8224LIBS="$ac_save_LIBS"
8225
8226fi
8227if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8228 echo "$ac_t""yes" 1>&6
8229 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
8230else
8231 echo "$ac_t""no" 1>&6
8232fi
8233
8234 fi
8235
8236 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
8237 # to get the SysV transport functions.
8238 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
8239 # needs -lnsl.
8240 # The nsl library prevents programs from opening the X display
8241 # on Irix 5.2, according to dickey@clark.net.
8242 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
6f72b082 8243echo "configure:8244: checking for gethostbyname" >&5
ab9b9eab
VZ
8244if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
8245 echo $ac_n "(cached) $ac_c" 1>&6
8246else
8247 cat > conftest.$ac_ext <<EOF
6f72b082 8248#line 8249 "configure"
ab9b9eab
VZ
8249#include "confdefs.h"
8250/* System header to define __stub macros and hopefully few prototypes,
8251 which can conflict with char gethostbyname(); below. */
8252#include <assert.h>
8253/* Override any gcc2 internal prototype to avoid an error. */
8254/* We use char because int might match the return type of a gcc2
8255 builtin and then its argument prototype would still apply. */
8256char gethostbyname();
8257
8258int main() {
8259
8260/* The GNU C library defines this for functions which it implements
8261 to always fail with ENOSYS. Some functions are actually named
8262 something starting with __ and the normal name is an alias. */
8263#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
8264choke me
8265#else
e8482f24 8266gethostbyname();
ab9b9eab
VZ
8267#endif
8268
8269; return 0; }
8270EOF
6f72b082 8271if { (eval echo configure:8272: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
8272 rm -rf conftest*
8273 eval "ac_cv_func_gethostbyname=yes"
8274else
8275 echo "configure: failed program was:" >&5
8276 cat conftest.$ac_ext >&5
8277 rm -rf conftest*
8278 eval "ac_cv_func_gethostbyname=no"
8279fi
8280rm -f conftest*
8281fi
8282
8283if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
8284 echo "$ac_t""yes" 1>&6
8285 :
8286else
8287 echo "$ac_t""no" 1>&6
8288fi
8289
8290 if test $ac_cv_func_gethostbyname = no; then
8291 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
6f72b082 8292echo "configure:8293: checking for gethostbyname in -lnsl" >&5
ab9b9eab
VZ
8293ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
8294if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8295 echo $ac_n "(cached) $ac_c" 1>&6
8296else
8297 ac_save_LIBS="$LIBS"
8298LIBS="-lnsl $LIBS"
8299cat > conftest.$ac_ext <<EOF
6f72b082 8300#line 8301 "configure"
ab9b9eab
VZ
8301#include "confdefs.h"
8302/* Override any gcc2 internal prototype to avoid an error. */
8303/* We use char because int might match the return type of a gcc2
8304 builtin and then its argument prototype would still apply. */
8305char gethostbyname();
8306
8307int main() {
8308gethostbyname()
8309; return 0; }
8310EOF
6f72b082 8311if { (eval echo configure:8312: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
8312 rm -rf conftest*
8313 eval "ac_cv_lib_$ac_lib_var=yes"
8314else
8315 echo "configure: failed program was:" >&5
8316 cat conftest.$ac_ext >&5
8317 rm -rf conftest*
8318 eval "ac_cv_lib_$ac_lib_var=no"
8319fi
8320rm -f conftest*
8321LIBS="$ac_save_LIBS"
8322
8323fi
8324if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8325 echo "$ac_t""yes" 1>&6
8326 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
8327else
8328 echo "$ac_t""no" 1>&6
8329fi
8330
8331 fi
8332
8333 # lieder@skyler.mavd.honeywell.com says without -lsocket,
8334 # socket/setsockopt and other routines are undefined under SCO ODT
8335 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
8336 # on later versions), says simon@lia.di.epfl.ch: it contains
8337 # gethostby* variants that don't use the nameserver (or something).
8338 # -lsocket must be given before -lnsl if both are needed.
8339 # We assume that if connect needs -lnsl, so does gethostbyname.
8340 echo $ac_n "checking for connect""... $ac_c" 1>&6
6f72b082 8341echo "configure:8342: checking for connect" >&5
ab9b9eab
VZ
8342if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
8343 echo $ac_n "(cached) $ac_c" 1>&6
8344else
8345 cat > conftest.$ac_ext <<EOF
6f72b082 8346#line 8347 "configure"
ab9b9eab
VZ
8347#include "confdefs.h"
8348/* System header to define __stub macros and hopefully few prototypes,
8349 which can conflict with char connect(); below. */
8350#include <assert.h>
8351/* Override any gcc2 internal prototype to avoid an error. */
8352/* We use char because int might match the return type of a gcc2
8353 builtin and then its argument prototype would still apply. */
8354char connect();
8355
8356int main() {
8357
8358/* The GNU C library defines this for functions which it implements
8359 to always fail with ENOSYS. Some functions are actually named
8360 something starting with __ and the normal name is an alias. */
8361#if defined (__stub_connect) || defined (__stub___connect)
8362choke me
8363#else
e8482f24 8364connect();
ab9b9eab
VZ
8365#endif
8366
8367; return 0; }
8368EOF
6f72b082 8369if { (eval echo configure:8370: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
8370 rm -rf conftest*
8371 eval "ac_cv_func_connect=yes"
8372else
8373 echo "configure: failed program was:" >&5
8374 cat conftest.$ac_ext >&5
8375 rm -rf conftest*
8376 eval "ac_cv_func_connect=no"
8377fi
8378rm -f conftest*
8379fi
8380
8381if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
8382 echo "$ac_t""yes" 1>&6
8383 :
8384else
8385 echo "$ac_t""no" 1>&6
8386fi
8387
8388 if test $ac_cv_func_connect = no; then
8389 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
6f72b082 8390echo "configure:8391: checking for connect in -lsocket" >&5
ab9b9eab
VZ
8391ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
8392if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8393 echo $ac_n "(cached) $ac_c" 1>&6
8394else
8395 ac_save_LIBS="$LIBS"
8396LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
8397cat > conftest.$ac_ext <<EOF
6f72b082 8398#line 8399 "configure"
ab9b9eab
VZ
8399#include "confdefs.h"
8400/* Override any gcc2 internal prototype to avoid an error. */
8401/* We use char because int might match the return type of a gcc2
8402 builtin and then its argument prototype would still apply. */
8403char connect();
8404
8405int main() {
8406connect()
8407; return 0; }
8408EOF
6f72b082 8409if { (eval echo configure:8410: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
8410 rm -rf conftest*
8411 eval "ac_cv_lib_$ac_lib_var=yes"
8412else
8413 echo "configure: failed program was:" >&5
8414 cat conftest.$ac_ext >&5
8415 rm -rf conftest*
8416 eval "ac_cv_lib_$ac_lib_var=no"
8417fi
8418rm -f conftest*
8419LIBS="$ac_save_LIBS"
8420
8421fi
8422if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8423 echo "$ac_t""yes" 1>&6
8424 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
8425else
8426 echo "$ac_t""no" 1>&6
8427fi
8428
8429 fi
8430
8431 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
8432 echo $ac_n "checking for remove""... $ac_c" 1>&6
6f72b082 8433echo "configure:8434: checking for remove" >&5
ab9b9eab
VZ
8434if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
8435 echo $ac_n "(cached) $ac_c" 1>&6
8436else
8437 cat > conftest.$ac_ext <<EOF
6f72b082 8438#line 8439 "configure"
ab9b9eab
VZ
8439#include "confdefs.h"
8440/* System header to define __stub macros and hopefully few prototypes,
8441 which can conflict with char remove(); below. */
8442#include <assert.h>
8443/* Override any gcc2 internal prototype to avoid an error. */
8444/* We use char because int might match the return type of a gcc2
8445 builtin and then its argument prototype would still apply. */
8446char remove();
8447
8448int main() {
8449
8450/* The GNU C library defines this for functions which it implements
8451 to always fail with ENOSYS. Some functions are actually named
8452 something starting with __ and the normal name is an alias. */
8453#if defined (__stub_remove) || defined (__stub___remove)
8454choke me
8455#else
e8482f24 8456remove();
ab9b9eab
VZ
8457#endif
8458
8459; return 0; }
8460EOF
6f72b082 8461if { (eval echo configure:8462: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
8462 rm -rf conftest*
8463 eval "ac_cv_func_remove=yes"
8464else
8465 echo "configure: failed program was:" >&5
8466 cat conftest.$ac_ext >&5
8467 rm -rf conftest*
8468 eval "ac_cv_func_remove=no"
8469fi
8470rm -f conftest*
8471fi
8472
8473if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
8474 echo "$ac_t""yes" 1>&6
8475 :
8476else
8477 echo "$ac_t""no" 1>&6
8478fi
8479
8480 if test $ac_cv_func_remove = no; then
8481 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
6f72b082 8482echo "configure:8483: checking for remove in -lposix" >&5
ab9b9eab
VZ
8483ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
8484if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8485 echo $ac_n "(cached) $ac_c" 1>&6
8486else
8487 ac_save_LIBS="$LIBS"
8488LIBS="-lposix $LIBS"
8489cat > conftest.$ac_ext <<EOF
6f72b082 8490#line 8491 "configure"
ab9b9eab
VZ
8491#include "confdefs.h"
8492/* Override any gcc2 internal prototype to avoid an error. */
8493/* We use char because int might match the return type of a gcc2
8494 builtin and then its argument prototype would still apply. */
8495char remove();
8496
8497int main() {
8498remove()
8499; return 0; }
8500EOF
6f72b082 8501if { (eval echo configure:8502: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
8502 rm -rf conftest*
8503 eval "ac_cv_lib_$ac_lib_var=yes"
8504else
8505 echo "configure: failed program was:" >&5
8506 cat conftest.$ac_ext >&5
8507 rm -rf conftest*
8508 eval "ac_cv_lib_$ac_lib_var=no"
8509fi
8510rm -f conftest*
8511LIBS="$ac_save_LIBS"
8512
8513fi
8514if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8515 echo "$ac_t""yes" 1>&6
8516 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
8517else
8518 echo "$ac_t""no" 1>&6
8519fi
8520
8521 fi
8522
8523 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
8524 echo $ac_n "checking for shmat""... $ac_c" 1>&6
6f72b082 8525echo "configure:8526: checking for shmat" >&5
ab9b9eab
VZ
8526if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
8527 echo $ac_n "(cached) $ac_c" 1>&6
8528else
8529 cat > conftest.$ac_ext <<EOF
6f72b082 8530#line 8531 "configure"
ab9b9eab
VZ
8531#include "confdefs.h"
8532/* System header to define __stub macros and hopefully few prototypes,
8533 which can conflict with char shmat(); below. */
8534#include <assert.h>
8535/* Override any gcc2 internal prototype to avoid an error. */
8536/* We use char because int might match the return type of a gcc2
8537 builtin and then its argument prototype would still apply. */
8538char shmat();
8539
8540int main() {
8541
8542/* The GNU C library defines this for functions which it implements
8543 to always fail with ENOSYS. Some functions are actually named
8544 something starting with __ and the normal name is an alias. */
8545#if defined (__stub_shmat) || defined (__stub___shmat)
8546choke me
8547#else
e8482f24 8548shmat();
ab9b9eab
VZ
8549#endif
8550
8551; return 0; }
8552EOF
6f72b082 8553if { (eval echo configure:8554: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
8554 rm -rf conftest*
8555 eval "ac_cv_func_shmat=yes"
8556else
8557 echo "configure: failed program was:" >&5
8558 cat conftest.$ac_ext >&5
8559 rm -rf conftest*
8560 eval "ac_cv_func_shmat=no"
8561fi
8562rm -f conftest*
8563fi
8564
8565if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
8566 echo "$ac_t""yes" 1>&6
8567 :
8568else
8569 echo "$ac_t""no" 1>&6
8570fi
8571
8572 if test $ac_cv_func_shmat = no; then
8573 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
6f72b082 8574echo "configure:8575: checking for shmat in -lipc" >&5
ab9b9eab
VZ
8575ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
8576if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8577 echo $ac_n "(cached) $ac_c" 1>&6
8578else
8579 ac_save_LIBS="$LIBS"
8580LIBS="-lipc $LIBS"
8581cat > conftest.$ac_ext <<EOF
6f72b082 8582#line 8583 "configure"
ab9b9eab
VZ
8583#include "confdefs.h"
8584/* Override any gcc2 internal prototype to avoid an error. */
8585/* We use char because int might match the return type of a gcc2
8586 builtin and then its argument prototype would still apply. */
8587char shmat();
8588
8589int main() {
8590shmat()
8591; return 0; }
8592EOF
6f72b082 8593if { (eval echo configure:8594: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
8594 rm -rf conftest*
8595 eval "ac_cv_lib_$ac_lib_var=yes"
8596else
8597 echo "configure: failed program was:" >&5
8598 cat conftest.$ac_ext >&5
8599 rm -rf conftest*
8600 eval "ac_cv_lib_$ac_lib_var=no"
8601fi
8602rm -f conftest*
8603LIBS="$ac_save_LIBS"
8604
8605fi
8606if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8607 echo "$ac_t""yes" 1>&6
8608 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
8609else
8610 echo "$ac_t""no" 1>&6
8611fi
8612
8613 fi
8614 fi
8615
8616 # Check for libraries that X11R6 Xt/Xaw programs need.
8617 ac_save_LDFLAGS="$LDFLAGS"
8618 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
8619 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
8620 # check for ICE first), but we must link in the order -lSM -lICE or
8621 # we get undefined symbols. So assume we have SM if we have ICE.
8622 # These have to be linked with before -lX11, unlike the other
8623 # libraries we check for below, so use a different variable.
8624 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
8625 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
6f72b082 8626echo "configure:8627: checking for IceConnectionNumber in -lICE" >&5
ab9b9eab
VZ
8627ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
8628if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8629 echo $ac_n "(cached) $ac_c" 1>&6
8630else
8631 ac_save_LIBS="$LIBS"
8632LIBS="-lICE $X_EXTRA_LIBS $LIBS"
8633cat > conftest.$ac_ext <<EOF
6f72b082 8634#line 8635 "configure"
ab9b9eab
VZ
8635#include "confdefs.h"
8636/* Override any gcc2 internal prototype to avoid an error. */
8637/* We use char because int might match the return type of a gcc2
8638 builtin and then its argument prototype would still apply. */
8639char IceConnectionNumber();
8640
8641int main() {
8642IceConnectionNumber()
8643; return 0; }
8644EOF
6f72b082 8645if { (eval echo configure:8646: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
8646 rm -rf conftest*
8647 eval "ac_cv_lib_$ac_lib_var=yes"
8648else
8649 echo "configure: failed program was:" >&5
8650 cat conftest.$ac_ext >&5
8651 rm -rf conftest*
8652 eval "ac_cv_lib_$ac_lib_var=no"
8653fi
8654rm -f conftest*
8655LIBS="$ac_save_LIBS"
8656
8657fi
8658if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8659 echo "$ac_t""yes" 1>&6
8660 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
8661else
8662 echo "$ac_t""no" 1>&6
8663fi
8664
8665 LDFLAGS="$ac_save_LDFLAGS"
8666
8667fi
8668
8669
8670 if test "$no_x" = "yes"; then
8671 { echo "configure: error: X11 not found" 1>&2; exit 1; }
8672 fi
8673
8674 GUI_TK_LIBRARY="$X_LIBS"
8675 TOOLKIT_INCLUDE="$X_CFLAGS"
8676
dad6c0ea
VZ
8677 AFMINSTALL=afminstall
8678
ab9b9eab 8679
cd6d6d5b
VZ
8680 COMPILED_X_PROGRAM=0
8681
ab9b9eab 8682 echo $ac_n "checking for Motif/Lesstif headers""... $ac_c" 1>&6
6f72b082 8683echo "configure:8684: checking for Motif/Lesstif headers" >&5
ab9b9eab
VZ
8684
8685ac_find_includes=
8686for ac_dir in $SEARCH_INCLUDE;
8687 do
8688 if test -f "$ac_dir/Xm/Xm.h"; then
8689 ac_find_includes=$ac_dir
8690 break
8691 fi
8692 done
8693
8694 if test "$ac_find_includes" != "" ; then
8695 echo "$ac_t""found $ac_find_includes" 1>&6
8696 else
cd6d6d5b 8697 cat > conftest.$ac_ext <<EOF
6f72b082 8698#line 8699 "configure"
cd6d6d5b
VZ
8699#include "confdefs.h"
8700
8701 #include <Xm/Xm.h>
8702
8703int main() {
8704
8705 int version;
8706
8707 version = xmUseVersion;
8708
8709; return 0; }
8710EOF
6f72b082 8711if { (eval echo configure:8712: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
cd6d6d5b
VZ
8712 rm -rf conftest*
8713
8714 echo "$ac_t""found in default search path" 1>&6
8715 COMPILED_X_PROGRAM=1
8716
8717else
8718 echo "configure: failed program was:" >&5
8719 cat conftest.$ac_ext >&5
8720 rm -rf conftest*
8721
8722 echo "$ac_t""no" 1>&6
8723 { echo "configure: error: please set CFLAGS to contain the location of Xm/Xm.h" 1>&2; exit 1; }
8724
8725
8726fi
8727rm -f conftest*
ab9b9eab
VZ
8728 fi
8729
cd6d6d5b
VZ
8730 if test "$COMPILED_X_PROGRAM" = 0; then
8731 echo $ac_n "checking for Motif/Lesstif library""... $ac_c" 1>&6
6f72b082 8732echo "configure:8733: checking for Motif/Lesstif library" >&5
cd6d6d5b 8733
ab9b9eab
VZ
8734ac_find_libraries=
8735for ac_dir in $SEARCH_LIB;
8736 do
8737 for ac_extension in a so sl; do
8738 if test -f "$ac_dir/libXm.$ac_extension"; then
8739 ac_find_libraries=$ac_dir
8740 break 2
8741 fi
8742 done
8743 done
8744
cd6d6d5b
VZ
8745 if test "$ac_find_libraries" != "" ; then
8746
ab9b9eab
VZ
8747 ac_path_to_include=$ac_find_includes
8748 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
8749 result=$?
8750 if test $result = 0; then
8751 ac_path_to_include=""
8752 else
8753 ac_path_to_include="-I$ac_find_includes"
8754 fi
8755
cd6d6d5b 8756
ab9b9eab
VZ
8757 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
8758 result=$?
8759 if test $result = 0; then
8760 ac_path_to_link=""
8761 else
8762 ac_path_to_link="-L$ac_find_libraries"
8763 fi
8764
8765
cd6d6d5b
VZ
8766 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $ac_path_to_link"
8767 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE $ac_path_to_include"
8768 echo "$ac_t""found at $ac_find_libraries" 1>&6
8769 else
8770 cat > conftest.$ac_ext <<EOF
6f72b082 8771#line 8772 "configure"
cd6d6d5b 8772#include "confdefs.h"
ab9b9eab 8773
cd6d6d5b
VZ
8774 #include <Xm/Xm.h>
8775
8776int main() {
ab9b9eab 8777
cd6d6d5b 8778 int version;
ab9b9eab 8779
cd6d6d5b
VZ
8780 version = xmUseVersion;
8781
8782; return 0; }
8783EOF
6f72b082 8784if { (eval echo configure:8785: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
cd6d6d5b
VZ
8785 rm -rf conftest*
8786
8787 echo "$ac_t""found in default search path" 1>&6
8788 COMPILED_X_PROGRAM=1
8789
8790else
8791 echo "configure: failed program was:" >&5
8792 cat conftest.$ac_ext >&5
8793 rm -rf conftest*
8794
8795 echo "$ac_t""no" 1>&6
8796 { echo "configure: error: please set LDFLAGS to contain the location of libXm" 1>&2; exit 1; }
8797
8798
8799fi
8800rm -f conftest*
8801 fi
ab9b9eab
VZ
8802 fi
8803
cd6d6d5b 8804
ab9b9eab
VZ
8805 XPM_LINK=""
8806 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
6f72b082 8807echo "configure:8808: checking for Xpm library" >&5
ab9b9eab
VZ
8808
8809ac_find_libraries=
8810for ac_dir in $SEARCH_LIB;
8811 do
8812 for ac_extension in a so sl; do
8813 if test -f "$ac_dir/libXpm.$ac_extension"; then
8814 ac_find_libraries=$ac_dir
8815 break 2
8816 fi
8817 done
8818 done
8819
8820 if test "$ac_find_libraries" != "" ; then
8821
8822 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
8823 result=$?
8824 if test $result = 0; then
8825 ac_path_to_link=""
8826 else
8827 ac_path_to_link="-L$ac_find_libraries"
8828 fi
8829
8830 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $ac_path_to_link"
8831 XPM_LINK="-lXpm "
8832 cat >> confdefs.h <<\EOF
8833#define wxHAVE_LIB_XPM 1
8834EOF
8835
8836 echo "$ac_t""found at $ac_find_libraries" 1>&6
8837 else
cd6d6d5b 8838 cat > conftest.$ac_ext <<EOF
6f72b082 8839#line 8840 "configure"
cd6d6d5b
VZ
8840#include "confdefs.h"
8841
8842 #include <X11/xpm.h>
8843
8844int main() {
8845
8846 int version;
8847
8848 version = XpmLibraryVersion();
8849
8850; return 0; }
8851EOF
6f72b082 8852if { (eval echo configure:8853: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
cd6d6d5b
VZ
8853 rm -rf conftest*
8854
f6bcfd97
BP
8855 XPM_LINK="-lXpm "
8856 cat >> confdefs.h <<\EOF
3ace2e6d
SN
8857#define wxHAVE_LIB_XPM 1
8858EOF
8859
8860 echo "$ac_t""found in default search path" 1>&6
cd6d6d5b
VZ
8861 COMPILED_X_PROGRAM=0
8862
8863else
8864 echo "configure: failed program was:" >&5
8865 cat conftest.$ac_ext >&5
8866 rm -rf conftest*
8867
8868 echo "$ac_t""no" 1>&6
8869 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
8870
8871
8872fi
8873rm -f conftest*
ab9b9eab
VZ
8874 fi
8875
8916026b 8876 GUI_TK_LINK="-lXm $XPM_LINK -lXmu -lXext -lXt -lX11"
ab9b9eab
VZ
8877 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $GUI_TK_LINK"
8878 TOOLKIT=MOTIF
8879
8880 GUIHEADERS="\$(MOTIF_HEADERS)"
8881 GUIOBJS="\$(MOTIF_GUIOBJS)"
8882 COMMONOBJS="\$(MOTIF_COMMONOBJS)"
788deba1
VZ
8883 GENERICOBJS="\$(MOTIF_GENERICOBJS)"
8884 GUIDEPS="\$(MOTIF_GUIDEPS)"
8885 COMMONDEPS="\$(MOTIF_COMMONDEPS)"
10f2d63a
VZ
8886 GENERICDEPS="\$(MOTIF_GENERICDEPS)"
8887 UNIXOBJS="\$(UNIX_OBJS)"
d9d8273d 8888 UNIXDEPS="\$(UNIX_DEPS)"
10f2d63a
VZ
8889 GUIDIST=MOTIF_DIST
8890fi
8891
e07802fc
VZ
8892if test "$wxUSE_PM" = 1; then
8893 TOOLKIT=PM
8894
8895 GUIOBJS="\$(PM_GUIOBJS)"
8896 GUIHEADERS="\$(PM_HEADERS)"
8897 COMMONOBJS="\$(PM_COMMONOBJS)"
8898 GENERICOBJS="\$(PM_GENERICOBJS)"
8899 GUIDEPS="\$(PM_GUIDEPS)"
8900 COMMONDEPS="\$(PM_COMMONDEPS)"
8901 GENERICDEPS="\$(PM_GENERICDEPS)"
8902 UNIXOBJS=
8903 UNIXDEPS=
8904 GUIDIST=GTK_DIST
8905fi
8906
8907if test "$TOOLKIT" != "PM" ; then
ec14dd32 8908 TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
e07802fc
VZ
8909else
8910 TOOLKIT_DIR="os2"
8911fi
10f2d63a 8912
f6bcfd97
BP
8913 if test "$wxUSE_DEBUG_FLAG" = "yes"; then
8914 TOOLKIT_NAME="${TOOLKIT_DIR}d"
8915 else
8916 TOOLKIT_NAME="${TOOLKIT_DIR}"
8917 fi
8918
2224580a 8919 TOOLKIT_DEF="-D__WX${TOOLKIT}__"
10f2d63a 8920
f6bcfd97 8921 WX_LIBRARY="wx_${TOOLKIT_NAME}"
10f2d63a 8922
bdad4e7e 8923 ALL_OBJECTS="\$(GUIOBJS) \$(COMMONOBJS) \$(GENERICOBJS) \$(UNIXOBJS) \$(HTMLOBJS) \$(OGLOBJS)"
3fcdd07b 8924
b089607b 8925 if test "$TOOLKIT" != "MSW"; then
cc977e5f
RR
8926 if test "$wxUSE_ODBC" = "yes" ; then
8927 ALL_OBJECTS="${ALL_OBJECTS} \$(IODBCOBJS)"
8928 fi
3fcdd07b
VZ
8929 fi
8930
d9d8273d 8931 if test "$wxUSE_LIBJPEG" = "yes" ; then
2224580a 8932 ALL_OBJECTS="${ALL_OBJECTS} \$(JPEGOBJS)"
d9d8273d
RR
8933 fi
8934 if test "$wxUSE_LIBTIFF" = "yes" ; then
8935 ALL_OBJECTS="${ALL_OBJECTS} \$(TIFFOBJS)"
8936 fi
8937 if test "$wxUSE_LIBPNG" = "yes" ; then
8938 ALL_OBJECTS="${ALL_OBJECTS} \$(PNGOBJS)"
8939 fi
8940 if test "$wxUSE_ZLIB" = "yes" ; then
8941 ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)"
8942 fi
bdad4e7e 8943 ALL_DEPFILES="\$(GUIDEPS) \$(COMMONDEPS) \$(GENERICDEPS) \$(UNIXDEPS) \$(HTMLDEPS) \$(OGLDEPS)"
2224580a
VZ
8944
8945 PORT_FILES="src/\$(TOOLKITDIR)/files.lst"
8946 RPM_FILES="src/\$(TOOLKITDIR)/rpmfiles.lst"
8947 RPM_SPEC="wx\$(TOOLKIT).spec"
8948
8949 GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
8950 DISTDIR="wx\$(TOOLKIT)"
10f2d63a 8951else
dad6c0ea
VZ
8952 USE_GUI=0
8953
f6bcfd97
BP
8954 TOOLKIT_DIR="base"
8955
8956 if test "$wxUSE_DEBUG_FLAG" = "yes"; then
8957 TOOLKIT_NAME="${TOOLKIT_DIR}d"
8958 else
8959 TOOLKIT_NAME="${TOOLKIT_DIR}"
8960 fi
8961
07eb77a6
RL
8962 TOOLKIT_DEF="-D__WXBASE__"
8963
2224580a
VZ
8964 ALL_OBJECTS="\$(BASE_OBJS) \${BASE_UNIX_OBJS}"
8965 ALL_DEPFILES="\${BASE_DEPS} \${BASE_UNIX_DEPS}"
10f2d63a 8966
a20b6d3a
VZ
8967 if test "$wxUSE_ZLIB" = "yes" ; then
8968 ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)"
8969 fi
8970
f6bcfd97 8971 WX_LIBRARY="wx_${TOOLKIT_NAME}"
2224580a
VZ
8972
8973 PORT_FILES="src/files.lst"
8974 RPM_FILES="src/rpmfiles.lst"
8975 RPM_SPEC="wxBase.spec"
8976
8977 GUIDIST="BASE_DIST"
8978 DISTDIR="wxBase"
10f2d63a
VZ
8979fi
8980
8981WX_LIBRARY_NAME="lib${WX_LIBRARY}.la"
bdad4e7e 8982WX_LIBRARY_NAME_GL="lib${WX_LIBRARY}_gl.la"
10f2d63a
VZ
8983
8984WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a"
bdad4e7e 8985WX_LIBRARY_NAME_STATIC_GL="lib${WX_LIBRARY}_gl.a"
10f2d63a
VZ
8986
8987WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}-${WX_RELEASE}.so.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
bdad4e7e 8988WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.so.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
10f2d63a
VZ
8989
8990WX_LIBRARY_LINK1="lib${WX_LIBRARY}-${WX_RELEASE}.so.${WX_CURRENT}"
8991WX_LIBRARY_LINK2="lib${WX_LIBRARY}-${WX_RELEASE}.so"
8992WX_LIBRARY_LINK3="lib${WX_LIBRARY}.so"
bdad4e7e
RR
8993WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.so.${WX_CURRENT}"
8994WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.so"
8995WX_LIBRARY_LINK3_GL="lib${WX_LIBRARY}_gl.so"
10f2d63a
VZ
8996
8997SHARED_LD=
8998PIC_FLAG=
8999WX_ALL=
9000WX_ALL_INSTALLED=
1d62a8b4 9001BURNT_LIBRARY_NAME=
f6bcfd97 9002WX_TARGET_LIBRARY_SONAME=
10f2d63a 9003
b12915c1 9004
10f2d63a
VZ
9005if test "$wxUSE_SHARED" = "yes"; then
9006 case "${host}" in
9007 *-hp-hpux* )
9008 if test "$GCC" = yes ; then
69ffe1d2 9009 SHARED_LD="${CC} -shared -fPIC -o"
10f2d63a
VZ
9010 PIC_FLAG="-fPIC"
9011 else
f6bcfd97
BP
9012 LDFLAGS="-L/usr/lib"
9013
10f2d63a
VZ
9014 SHARED_LD="${CXX} -b -o"
9015 PIC_FLAG="+Z"
9016 fi
f6bcfd97
BP
9017 WX_LIBRARY_NAME_SHARED="libwx_${TOOLKIT_NAME}.sl"
9018 WX_LIBRARY_NAME_SHARED_GL="libwx_${TOOLKIT_NAME}_gl.sl"
c661ecca 9019 if test "$wxUSE_OPENGL" = "yes"; then
f6bcfd97 9020 WX_ALL_INSTALLED="preinstall_gl"
c661ecca
RR
9021 WX_ALL="${WX_LIBRARY_NAME_SHARED} ${WX_LIBRARY_NAME_SHARED_GL}"
9022 else
9023 WX_ALL="${WX_LIBRARY_NAME_SHARED}"
9024 fi
10f2d63a 9025 ;;
b12915c1
VZ
9026
9027 *-*-linux* )
10f2d63a
VZ
9028 SHARED_LD="${CC} -shared -o"
9029 PIC_FLAG="-fPIC"
00cf1208 9030 if test "$wxUSE_BURNT_NAME" = "yes" ; then
05cdfc6f 9031 BURNT_LIBRARY_NAME="-Wl,-soname,${WX_LIBRARY_LINK1}"
bdad4e7e 9032 BURNT_LIBRARY_NAME_GL="-Wl,-soname,${WX_LIBRARY_LINK1_GL}"
f6bcfd97 9033 WX_TARGET_LIBRARY_SONAME="-Wl,-soname,\$(TARGETLIB_LINK1)"
00cf1208 9034 fi
c661ecca
RR
9035 if test "$wxUSE_OPENGL" = "yes"; then
9036 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
9037 WX_ALL="CREATE_LINKS CREATE_LINKS_GL"
9038 else
9039 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
9040 WX_ALL="CREATE_LINKS"
422107f9 9041 fi
00cf1208 9042 ;;
10f2d63a
VZ
9043 *-*-irix5* | *-*-irix6* )
9044 if test "$GCC" = yes ; then
9045 SHARED_LD="${CC} -shared -o"
9046 PIC_FLAG="-fPIC"
9047 else
9048 SHARED_LD="${CXX} -shared -o"
9049 fi
c661ecca
RR
9050 if test "$wxUSE_OPENGL" = "yes"; then
9051 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
9052 WX_ALL="CREATE_LINKS CREATE_LINKS_GL"
9053 else
9054 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
9055 WX_ALL="CREATE_LINKS"
422107f9 9056 fi
10f2d63a
VZ
9057 ;;
9058 *-*-solaris2* )
9059 if test "$GCC" = yes ; then
9060 SHARED_LD="${CC} -shared -o"
9061 PIC_FLAG="-fPIC"
f6bcfd97
BP
9062
9063 CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include"
10f2d63a
VZ
9064 else
9065 SHARED_LD="${CXX} -G -o"
9066 PIC_FLAG="-KPIC"
9067 fi
c661ecca
RR
9068 if test "$wxUSE_OPENGL" = "yes"; then
9069 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
9070 WX_ALL="CREATE_LINKS CREATE_LINKS_GL"
9071 else
9072 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
9073 WX_ALL="CREATE_LINKS"
9074 fi
10f2d63a
VZ
9075 ;;
9076 *-*-sunos4* )
9077 SHARED_LD="${CC} -shared -o"
9078 PIC_FLAG="-fPIC"
9079 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
9080 WX_ALL="CREATE_LINKS"
9081 ;;
9082 *-*-freebsd* | *-*-netbsd*)
9083 SHARED_LD="${CC} -shared -o"
9084 PIC_FLAG="-fPIC"
9085 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
9086 WX_ALL="CREATE_LINKS"
9087 ;;
9088 *-*-osf* )
9089 SHARED_LD="${CXX} -shared -o"
9090 PIC_FLAG="-fPIC"
9091 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
9092 WX_ALL="CREATE_LINKS"
9093 ;;
9094 *-*-dgux5* )
9095 SHARED_LD="${CXX} -shared -o"
9096 PIC_FLAG="-fPIC"
9097 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
9098 WX_ALL="CREATE_LINKS"
9099 ;;
9100 *-*-sysv5* )
9101 SHARED_LD="${CC} -shared -o"
9102 PIC_FLAG="-fPIC"
9103 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
9104 WX_ALL="CREATE_LINKS"
9105 ;;
9106 *-*-aix* )
9107 SHARED_LD="/usr/lpp/xlC/bin/makeC++SharedLib -p 0 -o"
9108 WX_ALL=${WX_LIBRARY_NAME_SHARED}
9109 ;;
9110 *-*-cygwin32* )
9111 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
bdad4e7e 9112 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}"
f6bcfd97
BP
9113 if test "$wxUSE_OPENGL" = "yes"; then
9114 WX_ALL_INSTALLED="preinstall_gl"
9115 WX_ALL="${WX_LIBRARY_NAME_STATIC} ${WX_LIBRARY_NAME_STATIC_GL}"
9116 else
9117 WX_ALL="${WX_LIBRARY_NAME_STATIC}"
9118 fi
10f2d63a 9119 ;;
b12915c1 9120 *-*-mingw32* )
10f2d63a 9121 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
bdad4e7e 9122 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}"
f6bcfd97
BP
9123 if test "$wxUSE_OPENGL" = "yes"; then
9124 WX_ALL_INSTALLED="preinstall_gl"
9125 WX_ALL="${WX_LIBRARY_NAME_STATIC} ${WX_LIBRARY_NAME_STATIC_GL}"
9126 else
9127 WX_ALL="${WX_LIBRARY_NAME_STATIC}"
9128 fi
10f2d63a
VZ
9129 ;;
9130 *-pc-os2_emx )
e07802fc
VZ
9131 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
9132 WX_ALL="${WX_LIBRARY_NAME_STATIC}"
10f2d63a 9133 ;;
b12915c1 9134 *-*-beos* )
e2b8b066 9135 SHARED_LD="${LD} -shared -o"
b12915c1
VZ
9136 PIC_FLAG="-fPIC"
9137 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
9138 WX_ALL="CREATE_LINKS"
9139 ;;
10f2d63a
VZ
9140 *)
9141 { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; }
9142 esac
9143
9144 if test "x$WX_TARGET_LIBRARY" = "x"; then
9145 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}"
bdad4e7e 9146 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_SHARED_GL}"
10f2d63a 9147 fi
3711412e 9148 WX_TARGET_LIBRARY_TYPE="so"
10f2d63a
VZ
9149else
9150 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
bdad4e7e 9151 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}"
f6bcfd97
BP
9152
9153 if test "$wxUSE_OPENGL" = "yes"; then
9154 WX_ALL_INSTALLED="preinstall_gl"
9155 WX_ALL="${WX_LIBRARY_NAME_STATIC} ${WX_LIBRARY_NAME_STATIC_GL}"
9156 else
9157 WX_ALL="${WX_LIBRARY_NAME_STATIC}"
9158 fi
9159
9160 if test "$wxUSE_GUI" = "no"; then
9161 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
9162 fi
9163
3711412e 9164 WX_TARGET_LIBRARY_TYPE="a"
10f2d63a
VZ
9165fi
9166
9167
9168for ac_hdr in strings.h
9169do
9170ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9171echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6f72b082 9172echo "configure:9173: checking for $ac_hdr" >&5
10f2d63a
VZ
9173if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9174 echo $ac_n "(cached) $ac_c" 1>&6
9175else
9176 cat > conftest.$ac_ext <<EOF
6f72b082 9177#line 9178 "configure"
10f2d63a
VZ
9178#include "confdefs.h"
9179#include <$ac_hdr>
9180EOF
9181ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6f72b082 9182{ (eval echo configure:9183: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
9183ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9184if test -z "$ac_err"; then
9185 rm -rf conftest*
9186 eval "ac_cv_header_$ac_safe=yes"
9187else
9188 echo "$ac_err" >&5
9189 echo "configure: failed program was:" >&5
9190 cat conftest.$ac_ext >&5
9191 rm -rf conftest*
9192 eval "ac_cv_header_$ac_safe=no"
9193fi
9194rm -f conftest*
9195fi
9196if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9197 echo "$ac_t""yes" 1>&6
9198 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9199 cat >> confdefs.h <<EOF
9200#define $ac_tr_hdr 1
9201EOF
9202
9203else
9204 echo "$ac_t""no" 1>&6
9205fi
9206done
9207
9208for ac_hdr in unistd.h
9209do
9210ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9211echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6f72b082 9212echo "configure:9213: checking for $ac_hdr" >&5
10f2d63a
VZ
9213if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9214 echo $ac_n "(cached) $ac_c" 1>&6
9215else
9216 cat > conftest.$ac_ext <<EOF
6f72b082 9217#line 9218 "configure"
10f2d63a
VZ
9218#include "confdefs.h"
9219#include <$ac_hdr>
9220EOF
9221ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6f72b082 9222{ (eval echo configure:9223: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
9223ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9224if test -z "$ac_err"; then
9225 rm -rf conftest*
9226 eval "ac_cv_header_$ac_safe=yes"
9227else
9228 echo "$ac_err" >&5
9229 echo "configure: failed program was:" >&5
9230 cat conftest.$ac_ext >&5
9231 rm -rf conftest*
9232 eval "ac_cv_header_$ac_safe=no"
9233fi
9234rm -f conftest*
9235fi
9236if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9237 echo "$ac_t""yes" 1>&6
9238 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9239 cat >> confdefs.h <<EOF
9240#define $ac_tr_hdr 1
9241EOF
9242
9243else
9244 echo "$ac_t""no" 1>&6
9245fi
9246done
9247
9248for ac_hdr in wchar.h
9249do
9250ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9251echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6f72b082 9252echo "configure:9253: checking for $ac_hdr" >&5
10f2d63a
VZ
9253if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9254 echo $ac_n "(cached) $ac_c" 1>&6
9255else
9256 cat > conftest.$ac_ext <<EOF
6f72b082 9257#line 9258 "configure"
10f2d63a
VZ
9258#include "confdefs.h"
9259#include <$ac_hdr>
9260EOF
9261ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6f72b082 9262{ (eval echo configure:9263: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
9263ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9264if test -z "$ac_err"; then
9265 rm -rf conftest*
9266 eval "ac_cv_header_$ac_safe=yes"
9267else
9268 echo "$ac_err" >&5
9269 echo "configure: failed program was:" >&5
9270 cat conftest.$ac_ext >&5
9271 rm -rf conftest*
9272 eval "ac_cv_header_$ac_safe=no"
9273fi
9274rm -f conftest*
9275fi
9276if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9277 echo "$ac_t""yes" 1>&6
9278 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9279 cat >> confdefs.h <<EOF
9280#define $ac_tr_hdr 1
9281EOF
9282
9283else
9284 echo "$ac_t""no" 1>&6
9285fi
9286done
9287
9288for ac_hdr in wcstr.h
9289do
9290ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9291echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6f72b082 9292echo "configure:9293: checking for $ac_hdr" >&5
10f2d63a
VZ
9293if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9294 echo $ac_n "(cached) $ac_c" 1>&6
9295else
9296 cat > conftest.$ac_ext <<EOF
6f72b082 9297#line 9298 "configure"
10f2d63a
VZ
9298#include "confdefs.h"
9299#include <$ac_hdr>
9300EOF
9301ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6f72b082 9302{ (eval echo configure:9303: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
9303ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9304if test -z "$ac_err"; then
9305 rm -rf conftest*
9306 eval "ac_cv_header_$ac_safe=yes"
9307else
9308 echo "$ac_err" >&5
9309 echo "configure: failed program was:" >&5
9310 cat conftest.$ac_ext >&5
9311 rm -rf conftest*
9312 eval "ac_cv_header_$ac_safe=no"
9313fi
9314rm -f conftest*
9315fi
9316if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9317 echo "$ac_t""yes" 1>&6
9318 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9319 cat >> confdefs.h <<EOF
9320#define $ac_tr_hdr 1
9321EOF
9322
9323else
9324 echo "$ac_t""no" 1>&6
9325fi
9326done
9327
9328for ac_hdr in fnmatch.h
9329do
9330ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9331echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6f72b082 9332echo "configure:9333: checking for $ac_hdr" >&5
10f2d63a
VZ
9333if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9334 echo $ac_n "(cached) $ac_c" 1>&6
9335else
9336 cat > conftest.$ac_ext <<EOF
6f72b082 9337#line 9338 "configure"
10f2d63a
VZ
9338#include "confdefs.h"
9339#include <$ac_hdr>
9340EOF
9341ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6f72b082
OK
9342{ (eval echo configure:9343: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9343ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9344if test -z "$ac_err"; then
9345 rm -rf conftest*
9346 eval "ac_cv_header_$ac_safe=yes"
9347else
9348 echo "$ac_err" >&5
9349 echo "configure: failed program was:" >&5
9350 cat conftest.$ac_ext >&5
9351 rm -rf conftest*
9352 eval "ac_cv_header_$ac_safe=no"
9353fi
9354rm -f conftest*
9355fi
9356if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9357 echo "$ac_t""yes" 1>&6
9358 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9359 cat >> confdefs.h <<EOF
9360#define $ac_tr_hdr 1
9361EOF
9362
9363else
9364 echo "$ac_t""no" 1>&6
9365fi
9366done
9367
9368for ac_hdr in iconv.h
9369do
9370ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9371echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9372echo "configure:9373: checking for $ac_hdr" >&5
9373if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9374 echo $ac_n "(cached) $ac_c" 1>&6
9375else
9376 cat > conftest.$ac_ext <<EOF
9377#line 9378 "configure"
9378#include "confdefs.h"
9379#include <$ac_hdr>
9380EOF
9381ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9382{ (eval echo configure:9383: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9383ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9384if test -z "$ac_err"; then
9385 rm -rf conftest*
9386 eval "ac_cv_header_$ac_safe=yes"
9387else
9388 echo "$ac_err" >&5
9389 echo "configure: failed program was:" >&5
9390 cat conftest.$ac_ext >&5
9391 rm -rf conftest*
9392 eval "ac_cv_header_$ac_safe=no"
9393fi
9394rm -f conftest*
9395fi
9396if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9397 echo "$ac_t""yes" 1>&6
9398 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9399 cat >> confdefs.h <<EOF
9400#define $ac_tr_hdr 1
9401EOF
9402
9403else
9404 echo "$ac_t""no" 1>&6
9405fi
9406done
9407
9408for ac_hdr in langinfo.h
9409do
9410ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9411echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9412echo "configure:9413: checking for $ac_hdr" >&5
9413if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9414 echo $ac_n "(cached) $ac_c" 1>&6
9415else
9416 cat > conftest.$ac_ext <<EOF
9417#line 9418 "configure"
9418#include "confdefs.h"
9419#include <$ac_hdr>
9420EOF
9421ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9422{ (eval echo configure:9423: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
9423ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9424if test -z "$ac_err"; then
9425 rm -rf conftest*
9426 eval "ac_cv_header_$ac_safe=yes"
9427else
9428 echo "$ac_err" >&5
9429 echo "configure: failed program was:" >&5
9430 cat conftest.$ac_ext >&5
9431 rm -rf conftest*
9432 eval "ac_cv_header_$ac_safe=no"
9433fi
9434rm -f conftest*
9435fi
9436if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9437 echo "$ac_t""yes" 1>&6
9438 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9439 cat >> confdefs.h <<EOF
9440#define $ac_tr_hdr 1
9441EOF
9442
9443else
9444 echo "$ac_t""no" 1>&6
9445fi
9446done
9447
9448
73fd4a60
VZ
9449if test "$wxUSE_GUI" = "yes"; then
9450 if test "$wxUSE_UNIX" = "yes"; then
9451 for ac_hdr in X11/XKBlib.h
10f2d63a
VZ
9452do
9453ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9454echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6f72b082 9455echo "configure:9456: checking for $ac_hdr" >&5
10f2d63a
VZ
9456if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9457 echo $ac_n "(cached) $ac_c" 1>&6
9458else
9459 cat > conftest.$ac_ext <<EOF
6f72b082 9460#line 9461 "configure"
10f2d63a
VZ
9461#include "confdefs.h"
9462#include <$ac_hdr>
9463EOF
9464ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6f72b082 9465{ (eval echo configure:9466: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
9466ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9467if test -z "$ac_err"; then
9468 rm -rf conftest*
9469 eval "ac_cv_header_$ac_safe=yes"
9470else
9471 echo "$ac_err" >&5
9472 echo "configure: failed program was:" >&5
9473 cat conftest.$ac_ext >&5
9474 rm -rf conftest*
9475 eval "ac_cv_header_$ac_safe=no"
9476fi
9477rm -f conftest*
9478fi
9479if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9480 echo "$ac_t""yes" 1>&6
9481 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9482 cat >> confdefs.h <<EOF
9483#define $ac_tr_hdr 1
9484EOF
9485
9486else
9487 echo "$ac_t""no" 1>&6
9488fi
9489done
9490
73fd4a60 9491 fi
10f2d63a
VZ
9492fi
9493
9494
9495echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
6f72b082 9496echo "configure:9497: checking for ANSI C header files" >&5
10f2d63a
VZ
9497if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
9498 echo $ac_n "(cached) $ac_c" 1>&6
9499else
9500 cat > conftest.$ac_ext <<EOF
6f72b082 9501#line 9502 "configure"
10f2d63a
VZ
9502#include "confdefs.h"
9503#include <stdlib.h>
9504#include <stdarg.h>
9505#include <string.h>
9506#include <float.h>
9507EOF
9508ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6f72b082 9509{ (eval echo configure:9510: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
9510ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9511if test -z "$ac_err"; then
9512 rm -rf conftest*
9513 ac_cv_header_stdc=yes
9514else
9515 echo "$ac_err" >&5
9516 echo "configure: failed program was:" >&5
9517 cat conftest.$ac_ext >&5
9518 rm -rf conftest*
9519 ac_cv_header_stdc=no
9520fi
9521rm -f conftest*
9522
9523if test $ac_cv_header_stdc = yes; then
9524 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9525cat > conftest.$ac_ext <<EOF
6f72b082 9526#line 9527 "configure"
10f2d63a
VZ
9527#include "confdefs.h"
9528#include <string.h>
9529EOF
9530if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9531 egrep "memchr" >/dev/null 2>&1; then
9532 :
9533else
9534 rm -rf conftest*
9535 ac_cv_header_stdc=no
9536fi
9537rm -f conftest*
9538
9539fi
9540
9541if test $ac_cv_header_stdc = yes; then
9542 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9543cat > conftest.$ac_ext <<EOF
6f72b082 9544#line 9545 "configure"
10f2d63a
VZ
9545#include "confdefs.h"
9546#include <stdlib.h>
9547EOF
9548if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9549 egrep "free" >/dev/null 2>&1; then
9550 :
9551else
9552 rm -rf conftest*
9553 ac_cv_header_stdc=no
9554fi
9555rm -f conftest*
9556
9557fi
9558
9559if test $ac_cv_header_stdc = yes; then
9560 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9561if test "$cross_compiling" = yes; then
9562 :
9563else
9564 cat > conftest.$ac_ext <<EOF
6f72b082 9565#line 9566 "configure"
10f2d63a
VZ
9566#include "confdefs.h"
9567#include <ctype.h>
9568#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9569#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9570#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9571int main () { int i; for (i = 0; i < 256; i++)
9572if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
9573exit (0); }
9574
9575EOF
6f72b082 9576if { (eval echo configure:9577: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10f2d63a
VZ
9577then
9578 :
9579else
9580 echo "configure: failed program was:" >&5
9581 cat conftest.$ac_ext >&5
9582 rm -fr conftest*
9583 ac_cv_header_stdc=no
9584fi
9585rm -fr conftest*
9586fi
9587
9588fi
9589fi
9590
9591echo "$ac_t""$ac_cv_header_stdc" 1>&6
9592if test $ac_cv_header_stdc = yes; then
9593 cat >> confdefs.h <<\EOF
9594#define STDC_HEADERS 1
9595EOF
9596
9597fi
9598
9599echo $ac_n "checking for mode_t""... $ac_c" 1>&6
6f72b082 9600echo "configure:9601: checking for mode_t" >&5
10f2d63a
VZ
9601if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
9602 echo $ac_n "(cached) $ac_c" 1>&6
9603else
9604 cat > conftest.$ac_ext <<EOF
6f72b082 9605#line 9606 "configure"
10f2d63a
VZ
9606#include "confdefs.h"
9607#include <sys/types.h>
9608#if STDC_HEADERS
9609#include <stdlib.h>
9610#include <stddef.h>
9611#endif
9612EOF
9613if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9614 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
9615 rm -rf conftest*
9616 ac_cv_type_mode_t=yes
9617else
9618 rm -rf conftest*
9619 ac_cv_type_mode_t=no
9620fi
9621rm -f conftest*
9622
9623fi
9624echo "$ac_t""$ac_cv_type_mode_t" 1>&6
9625if test $ac_cv_type_mode_t = no; then
9626 cat >> confdefs.h <<\EOF
9627#define mode_t int
9628EOF
9629
9630fi
9631
9632echo $ac_n "checking for off_t""... $ac_c" 1>&6
6f72b082 9633echo "configure:9634: checking for off_t" >&5
10f2d63a
VZ
9634if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
9635 echo $ac_n "(cached) $ac_c" 1>&6
9636else
9637 cat > conftest.$ac_ext <<EOF
6f72b082 9638#line 9639 "configure"
10f2d63a
VZ
9639#include "confdefs.h"
9640#include <sys/types.h>
9641#if STDC_HEADERS
9642#include <stdlib.h>
9643#include <stddef.h>
9644#endif
9645EOF
9646if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9647 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
9648 rm -rf conftest*
9649 ac_cv_type_off_t=yes
9650else
9651 rm -rf conftest*
9652 ac_cv_type_off_t=no
9653fi
9654rm -f conftest*
9655
9656fi
9657echo "$ac_t""$ac_cv_type_off_t" 1>&6
9658if test $ac_cv_type_off_t = no; then
9659 cat >> confdefs.h <<\EOF
9660#define off_t long
9661EOF
9662
9663fi
9664
9665echo $ac_n "checking for pid_t""... $ac_c" 1>&6
6f72b082 9666echo "configure:9667: checking for pid_t" >&5
10f2d63a
VZ
9667if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
9668 echo $ac_n "(cached) $ac_c" 1>&6
9669else
9670 cat > conftest.$ac_ext <<EOF
6f72b082 9671#line 9672 "configure"
10f2d63a
VZ
9672#include "confdefs.h"
9673#include <sys/types.h>
9674#if STDC_HEADERS
9675#include <stdlib.h>
9676#include <stddef.h>
9677#endif
9678EOF
9679if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9680 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
9681 rm -rf conftest*
9682 ac_cv_type_pid_t=yes
9683else
9684 rm -rf conftest*
9685 ac_cv_type_pid_t=no
9686fi
9687rm -f conftest*
9688
9689fi
9690echo "$ac_t""$ac_cv_type_pid_t" 1>&6
9691if test $ac_cv_type_pid_t = no; then
9692 cat >> confdefs.h <<\EOF
9693#define pid_t int
9694EOF
9695
9696fi
9697
9698echo $ac_n "checking for size_t""... $ac_c" 1>&6
6f72b082 9699echo "configure:9700: checking for size_t" >&5
10f2d63a
VZ
9700if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
9701 echo $ac_n "(cached) $ac_c" 1>&6
9702else
9703 cat > conftest.$ac_ext <<EOF
6f72b082 9704#line 9705 "configure"
10f2d63a
VZ
9705#include "confdefs.h"
9706#include <sys/types.h>
9707#if STDC_HEADERS
9708#include <stdlib.h>
9709#include <stddef.h>
9710#endif
9711EOF
9712if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9713 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
9714 rm -rf conftest*
9715 ac_cv_type_size_t=yes
9716else
9717 rm -rf conftest*
9718 ac_cv_type_size_t=no
9719fi
9720rm -f conftest*
9721
9722fi
9723echo "$ac_t""$ac_cv_type_size_t" 1>&6
9724if test $ac_cv_type_size_t = no; then
9725 cat >> confdefs.h <<\EOF
9726#define size_t unsigned
9727EOF
9728
9729fi
9730
9731echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
6f72b082 9732echo "configure:9733: checking for uid_t in sys/types.h" >&5
10f2d63a
VZ
9733if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
9734 echo $ac_n "(cached) $ac_c" 1>&6
9735else
9736 cat > conftest.$ac_ext <<EOF
6f72b082 9737#line 9738 "configure"
10f2d63a
VZ
9738#include "confdefs.h"
9739#include <sys/types.h>
9740EOF
9741if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9742 egrep "uid_t" >/dev/null 2>&1; then
9743 rm -rf conftest*
9744 ac_cv_type_uid_t=yes
9745else
9746 rm -rf conftest*
9747 ac_cv_type_uid_t=no
9748fi
9749rm -f conftest*
9750
9751fi
9752
9753echo "$ac_t""$ac_cv_type_uid_t" 1>&6
9754if test $ac_cv_type_uid_t = no; then
9755 cat >> confdefs.h <<\EOF
9756#define uid_t int
9757EOF
9758
9759 cat >> confdefs.h <<\EOF
9760#define gid_t int
9761EOF
9762
9763fi
9764
9765
9766
b12915c1 9767echo $ac_n "checking for pw_gecos in struct passwd""... $ac_c" 1>&6
6f72b082 9768echo "configure:9769: checking for pw_gecos in struct passwd" >&5
b12915c1
VZ
9769if eval "test \"`echo '$''{'wx_cv_struct_pw_gecos'+set}'`\" = set"; then
9770 echo $ac_n "(cached) $ac_c" 1>&6
9771else
9772
9773 cat > conftest.$ac_ext <<EOF
6f72b082 9774#line 9775 "configure"
b12915c1
VZ
9775#include "confdefs.h"
9776#include <pwd.h>
9777int main() {
9778
9779 char *p;
9780 struct passwd *pw;
9781 p = pw->pw_gecos;
9782
9783; return 0; }
9784EOF
6f72b082 9785if { (eval echo configure:9786: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
b12915c1
VZ
9786 rm -rf conftest*
9787
9788 wx_cv_struct_pw_gecos=yes
b12915c1
VZ
9789
9790else
9791 echo "configure: failed program was:" >&5
9792 cat conftest.$ac_ext >&5
9793 rm -rf conftest*
9794
9795 wx_cv_struct_pw_gecos=no
9796
9797
9798fi
9799rm -f conftest*
9800
9801
9802fi
9803
9804echo "$ac_t""$wx_cv_struct_pw_gecos" 1>&6
9805
bd3277fe
VZ
9806if test "$wx_cv_struct_pw_gecos" = "yes"; then
9807 cat >> confdefs.h <<\EOF
9808#define HAVE_PW_GECOS 1
9809EOF
9810
9811fi
9812
10f2d63a
VZ
9813
9814echo $ac_n "checking for working const""... $ac_c" 1>&6
6f72b082 9815echo "configure:9816: checking for working const" >&5
10f2d63a
VZ
9816if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
9817 echo $ac_n "(cached) $ac_c" 1>&6
9818else
9819 cat > conftest.$ac_ext <<EOF
6f72b082 9820#line 9821 "configure"
10f2d63a
VZ
9821#include "confdefs.h"
9822
9823int main() {
9824
9825/* Ultrix mips cc rejects this. */
6f72b082 9826typedef int charset[2]; const charset x = {0,0};
10f2d63a
VZ
9827/* SunOS 4.1.1 cc rejects this. */
9828char const *const *ccp;
9829char **p;
9830/* NEC SVR4.0.2 mips cc rejects this. */
9831struct point {int x, y;};
9832static struct point const zero = {0,0};
9833/* AIX XL C 1.02.0.0 rejects this.
9834 It does not let you subtract one const X* pointer from another in an arm
9835 of an if-expression whose if-part is not a constant expression */
9836const char *g = "string";
9837ccp = &g + (g ? g-g : 0);
9838/* HPUX 7.0 cc rejects these. */
9839++ccp;
9840p = (char**) ccp;
9841ccp = (char const *const *) p;
9842{ /* SCO 3.2v4 cc rejects this. */
9843 char *t;
9844 char const *s = 0 ? (char *) 0 : (char const *) 0;
9845
9846 *t++ = 0;
9847}
9848{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
9849 int x[] = {25, 17};
9850 const int *foo = &x[0];
9851 ++foo;
9852}
9853{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9854 typedef const int *iptr;
9855 iptr p = 0;
9856 ++p;
9857}
9858{ /* AIX XL C 1.02.0.0 rejects this saying
9859 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9860 struct s { int j; const int *ap[3]; };
9861 struct s *b; b->j = 5;
9862}
9863{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9864 const int foo = 10;
9865}
9866
9867; return 0; }
9868EOF
6f72b082 9869if { (eval echo configure:9870: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10f2d63a
VZ
9870 rm -rf conftest*
9871 ac_cv_c_const=yes
9872else
9873 echo "configure: failed program was:" >&5
9874 cat conftest.$ac_ext >&5
9875 rm -rf conftest*
9876 ac_cv_c_const=no
9877fi
9878rm -f conftest*
9879fi
9880
9881echo "$ac_t""$ac_cv_c_const" 1>&6
9882if test $ac_cv_c_const = no; then
9883 cat >> confdefs.h <<\EOF
9884#define const
9885EOF
9886
9887fi
9888
9889echo $ac_n "checking for inline""... $ac_c" 1>&6
6f72b082 9890echo "configure:9891: checking for inline" >&5
10f2d63a
VZ
9891if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
9892 echo $ac_n "(cached) $ac_c" 1>&6
9893else
9894 ac_cv_c_inline=no
9895for ac_kw in inline __inline__ __inline; do
9896 cat > conftest.$ac_ext <<EOF
6f72b082 9897#line 9898 "configure"
10f2d63a
VZ
9898#include "confdefs.h"
9899
9900int main() {
6f72b082 9901} int $ac_kw foo() {
10f2d63a
VZ
9902; return 0; }
9903EOF
6f72b082 9904if { (eval echo configure:9905: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10f2d63a
VZ
9905 rm -rf conftest*
9906 ac_cv_c_inline=$ac_kw; break
9907else
9908 echo "configure: failed program was:" >&5
9909 cat conftest.$ac_ext >&5
9910fi
9911rm -f conftest*
9912done
9913
9914fi
9915
9916echo "$ac_t""$ac_cv_c_inline" 1>&6
9917case "$ac_cv_c_inline" in
9918 inline | yes) ;;
9919 no) cat >> confdefs.h <<\EOF
9920#define inline
9921EOF
9922 ;;
9923 *) cat >> confdefs.h <<EOF
9924#define inline $ac_cv_c_inline
9925EOF
9926 ;;
9927esac
9928
9929
9930echo $ac_n "checking size of char""... $ac_c" 1>&6
6f72b082 9931echo "configure:9932: checking size of char" >&5
10f2d63a
VZ
9932if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then
9933 echo $ac_n "(cached) $ac_c" 1>&6
9934else
9935 if test "$cross_compiling" = yes; then
9936 ac_cv_sizeof_char=1
9937else
9938 cat > conftest.$ac_ext <<EOF
6f72b082 9939#line 9940 "configure"
10f2d63a
VZ
9940#include "confdefs.h"
9941#include <stdio.h>
9942main()
9943{
9944 FILE *f=fopen("conftestval", "w");
9945 if (!f) exit(1);
9946 fprintf(f, "%d\n", sizeof(char));
9947 exit(0);
9948}
9949EOF
6f72b082 9950if { (eval echo configure:9951: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10f2d63a
VZ
9951then
9952 ac_cv_sizeof_char=`cat conftestval`
9953else
9954 echo "configure: failed program was:" >&5
9955 cat conftest.$ac_ext >&5
9956 rm -fr conftest*
9957 ac_cv_sizeof_char=0
9958fi
9959rm -fr conftest*
9960fi
9961
9962fi
9963echo "$ac_t""$ac_cv_sizeof_char" 1>&6
9964cat >> confdefs.h <<EOF
9965#define SIZEOF_CHAR $ac_cv_sizeof_char
9966EOF
9967
9968
6f72b082
OK
9969echo $ac_n "checking size of wchar_t""... $ac_c" 1>&6
9970echo "configure:9971: checking size of wchar_t" >&5
9971if eval "test \"`echo '$''{'ac_cv_sizeof_wchar_t'+set}'`\" = set"; then
9972 echo $ac_n "(cached) $ac_c" 1>&6
9973else
9974 if test "$cross_compiling" = yes; then
9975 ac_cv_sizeof_wchar_t=4
9976else
9977 cat > conftest.$ac_ext <<EOF
9978#line 9979 "configure"
9979#include "confdefs.h"
9980#include <stdio.h>
9981main()
9982{
9983 FILE *f=fopen("conftestval", "w");
9984 if (!f) exit(1);
9985 fprintf(f, "%d\n", sizeof(wchar_t));
9986 exit(0);
9987}
9988EOF
9989if { (eval echo configure:9990: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9990then
9991 ac_cv_sizeof_wchar_t=`cat conftestval`
9992else
9993 echo "configure: failed program was:" >&5
9994 cat conftest.$ac_ext >&5
9995 rm -fr conftest*
9996 ac_cv_sizeof_wchar_t=0
9997fi
9998rm -fr conftest*
9999fi
10000
10001fi
10002echo "$ac_t""$ac_cv_sizeof_wchar_t" 1>&6
10003cat >> confdefs.h <<EOF
10004#define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
10005EOF
10006
10007
10f2d63a 10008echo $ac_n "checking size of short""... $ac_c" 1>&6
6f72b082 10009echo "configure:10010: checking size of short" >&5
10f2d63a
VZ
10010if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
10011 echo $ac_n "(cached) $ac_c" 1>&6
10012else
10013 if test "$cross_compiling" = yes; then
10014 ac_cv_sizeof_short=2
10015else
10016 cat > conftest.$ac_ext <<EOF
6f72b082 10017#line 10018 "configure"
10f2d63a
VZ
10018#include "confdefs.h"
10019#include <stdio.h>
10020main()
10021{
10022 FILE *f=fopen("conftestval", "w");
10023 if (!f) exit(1);
10024 fprintf(f, "%d\n", sizeof(short));
10025 exit(0);
10026}
10027EOF
6f72b082 10028if { (eval echo configure:10029: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10f2d63a
VZ
10029then
10030 ac_cv_sizeof_short=`cat conftestval`
10031else
10032 echo "configure: failed program was:" >&5
10033 cat conftest.$ac_ext >&5
10034 rm -fr conftest*
10035 ac_cv_sizeof_short=0
10036fi
10037rm -fr conftest*
10038fi
10039
10040fi
10041echo "$ac_t""$ac_cv_sizeof_short" 1>&6
10042cat >> confdefs.h <<EOF
10043#define SIZEOF_SHORT $ac_cv_sizeof_short
10044EOF
10045
10046
10047echo $ac_n "checking size of int *""... $ac_c" 1>&6
6f72b082 10048echo "configure:10049: checking size of int *" >&5
10f2d63a
VZ
10049if eval "test \"`echo '$''{'ac_cv_sizeof_int_p'+set}'`\" = set"; then
10050 echo $ac_n "(cached) $ac_c" 1>&6
10051else
10052 if test "$cross_compiling" = yes; then
10053 ac_cv_sizeof_int_p=4
10054else
10055 cat > conftest.$ac_ext <<EOF
6f72b082 10056#line 10057 "configure"
10f2d63a
VZ
10057#include "confdefs.h"
10058#include <stdio.h>
10059main()
10060{
10061 FILE *f=fopen("conftestval", "w");
10062 if (!f) exit(1);
10063 fprintf(f, "%d\n", sizeof(int *));
10064 exit(0);
10065}
10066EOF
6f72b082 10067if { (eval echo configure:10068: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10f2d63a
VZ
10068then
10069 ac_cv_sizeof_int_p=`cat conftestval`
10070else
10071 echo "configure: failed program was:" >&5
10072 cat conftest.$ac_ext >&5
10073 rm -fr conftest*
10074 ac_cv_sizeof_int_p=0
10075fi
10076rm -fr conftest*
10077fi
10078
10079fi
10080echo "$ac_t""$ac_cv_sizeof_int_p" 1>&6
10081cat >> confdefs.h <<EOF
10082#define SIZEOF_INT_P $ac_cv_sizeof_int_p
10083EOF
10084
10085
10086echo $ac_n "checking size of int""... $ac_c" 1>&6
6f72b082 10087echo "configure:10088: checking size of int" >&5
10f2d63a
VZ
10088if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
10089 echo $ac_n "(cached) $ac_c" 1>&6
10090else
10091 if test "$cross_compiling" = yes; then
10092 ac_cv_sizeof_int=4
10093else
10094 cat > conftest.$ac_ext <<EOF
6f72b082 10095#line 10096 "configure"
10f2d63a
VZ
10096#include "confdefs.h"
10097#include <stdio.h>
10098main()
10099{
10100 FILE *f=fopen("conftestval", "w");
10101 if (!f) exit(1);
10102 fprintf(f, "%d\n", sizeof(int));
10103 exit(0);
10104}
10105EOF
6f72b082 10106if { (eval echo configure:10107: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10f2d63a
VZ
10107then
10108 ac_cv_sizeof_int=`cat conftestval`
10109else
10110 echo "configure: failed program was:" >&5
10111 cat conftest.$ac_ext >&5
10112 rm -fr conftest*
10113 ac_cv_sizeof_int=0
10114fi
10115rm -fr conftest*
10116fi
10117
10118fi
10119echo "$ac_t""$ac_cv_sizeof_int" 1>&6
10120cat >> confdefs.h <<EOF
10121#define SIZEOF_INT $ac_cv_sizeof_int
10122EOF
10123
10124
10125echo $ac_n "checking size of long""... $ac_c" 1>&6
6f72b082 10126echo "configure:10127: checking size of long" >&5
10f2d63a
VZ
10127if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
10128 echo $ac_n "(cached) $ac_c" 1>&6
10129else
10130 if test "$cross_compiling" = yes; then
10131 ac_cv_sizeof_long=4
10132else
10133 cat > conftest.$ac_ext <<EOF
6f72b082 10134#line 10135 "configure"
10f2d63a
VZ
10135#include "confdefs.h"
10136#include <stdio.h>
10137main()
10138{
10139 FILE *f=fopen("conftestval", "w");
10140 if (!f) exit(1);
10141 fprintf(f, "%d\n", sizeof(long));
10142 exit(0);
10143}
10144EOF
6f72b082 10145if { (eval echo configure:10146: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10f2d63a
VZ
10146then
10147 ac_cv_sizeof_long=`cat conftestval`
10148else
10149 echo "configure: failed program was:" >&5
10150 cat conftest.$ac_ext >&5
10151 rm -fr conftest*
10152 ac_cv_sizeof_long=0
10153fi
10154rm -fr conftest*
10155fi
10156
10157fi
10158echo "$ac_t""$ac_cv_sizeof_long" 1>&6
10159cat >> confdefs.h <<EOF
10160#define SIZEOF_LONG $ac_cv_sizeof_long
10161EOF
10162
10163
10164echo $ac_n "checking size of long long""... $ac_c" 1>&6
6f72b082 10165echo "configure:10166: checking size of long long" >&5
10f2d63a
VZ
10166if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
10167 echo $ac_n "(cached) $ac_c" 1>&6
10168else
10169 if test "$cross_compiling" = yes; then
10170 ac_cv_sizeof_long_long=0
10171else
10172 cat > conftest.$ac_ext <<EOF
6f72b082 10173#line 10174 "configure"
10f2d63a
VZ
10174#include "confdefs.h"
10175#include <stdio.h>
10176main()
10177{
10178 FILE *f=fopen("conftestval", "w");
10179 if (!f) exit(1);
10180 fprintf(f, "%d\n", sizeof(long long));
10181 exit(0);
10182}
10183EOF
6f72b082 10184if { (eval echo configure:10185: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10f2d63a
VZ
10185then
10186 ac_cv_sizeof_long_long=`cat conftestval`
10187else
10188 echo "configure: failed program was:" >&5
10189 cat conftest.$ac_ext >&5
10190 rm -fr conftest*
10191 ac_cv_sizeof_long_long=0
10192fi
10193rm -fr conftest*
10194fi
10195
10196fi
10197echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
10198cat >> confdefs.h <<EOF
10199#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
10200EOF
10201
10202
10203
10204echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
6f72b082 10205echo "configure:10206: checking whether byte ordering is bigendian" >&5
10f2d63a
VZ
10206if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
10207 echo $ac_n "(cached) $ac_c" 1>&6
10208else
10209 ac_cv_c_bigendian=unknown
10210# See if sys/param.h defines the BYTE_ORDER macro.
10211cat > conftest.$ac_ext <<EOF
6f72b082 10212#line 10213 "configure"
10f2d63a
VZ
10213#include "confdefs.h"
10214#include <sys/types.h>
10215#include <sys/param.h>
10216int main() {
10217
10218#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
10219 bogus endian macros
10220#endif
10221; return 0; }
10222EOF
6f72b082 10223if { (eval echo configure:10224: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10f2d63a
VZ
10224 rm -rf conftest*
10225 # It does; now see whether it defined to BIG_ENDIAN or not.
10226cat > conftest.$ac_ext <<EOF
6f72b082 10227#line 10228 "configure"
10f2d63a
VZ
10228#include "confdefs.h"
10229#include <sys/types.h>
10230#include <sys/param.h>
10231int main() {
10232
10233#if BYTE_ORDER != BIG_ENDIAN
10234 not big endian
10235#endif
10236; return 0; }
10237EOF
6f72b082 10238if { (eval echo configure:10239: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10f2d63a
VZ
10239 rm -rf conftest*
10240 ac_cv_c_bigendian=yes
10241else
10242 echo "configure: failed program was:" >&5
10243 cat conftest.$ac_ext >&5
10244 rm -rf conftest*
10245 ac_cv_c_bigendian=no
10246fi
10247rm -f conftest*
10248else
10249 echo "configure: failed program was:" >&5
10250 cat conftest.$ac_ext >&5
10251fi
10252rm -f conftest*
10253if test $ac_cv_c_bigendian = unknown; then
10254if test "$cross_compiling" = yes; then
10255 ac_cv_c_bigendian=unknown
10256else
10257 cat > conftest.$ac_ext <<EOF
6f72b082 10258#line 10259 "configure"
10f2d63a
VZ
10259#include "confdefs.h"
10260main () {
10261 /* Are we little or big endian? From Harbison&Steele. */
10262 union
10263 {
10264 long l;
10265 char c[sizeof (long)];
10266 } u;
10267 u.l = 1;
10268 exit (u.c[sizeof (long) - 1] == 1);
10269}
10270EOF
6f72b082 10271if { (eval echo configure:10272: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10f2d63a
VZ
10272then
10273 ac_cv_c_bigendian=no
10274else
10275 echo "configure: failed program was:" >&5
10276 cat conftest.$ac_ext >&5
10277 rm -fr conftest*
10278 ac_cv_c_bigendian=yes
10279fi
10280rm -fr conftest*
10281fi
10282
10283fi
10284fi
10285
10286echo "$ac_t""$ac_cv_c_bigendian" 1>&6
10287if test $ac_cv_c_bigendian = unknown; then
10288 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
10289fi
10290if test $ac_cv_c_bigendian = yes; then
10291 cat >> confdefs.h <<\EOF
10292#define WORDS_BIGENDIAN 1
10293EOF
10294
10295fi
10296
10297
10298
10299 if test "$cross_compiling" = "yes"; then
10300 cat >> confdefs.h <<\EOF
10301#define wxUSE_IOSTREAMH 1
10302EOF
10303
10304 else
10305
10306 ac_ext=C
10307# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10308ac_cpp='$CXXCPP $CPPFLAGS'
10309ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10310ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10311cross_compiling=$ac_cv_prog_cxx_cross
10312
10313
10314 for ac_hdr in iostream
10315do
10316ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10317echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6f72b082 10318echo "configure:10319: checking for $ac_hdr" >&5
10f2d63a
VZ
10319if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10320 echo $ac_n "(cached) $ac_c" 1>&6
10321else
10322 cat > conftest.$ac_ext <<EOF
6f72b082 10323#line 10324 "configure"
10f2d63a
VZ
10324#include "confdefs.h"
10325#include <$ac_hdr>
10326EOF
10327ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6f72b082 10328{ (eval echo configure:10329: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
10329ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10330if test -z "$ac_err"; then
10331 rm -rf conftest*
10332 eval "ac_cv_header_$ac_safe=yes"
10333else
10334 echo "$ac_err" >&5
10335 echo "configure: failed program was:" >&5
10336 cat conftest.$ac_ext >&5
10337 rm -rf conftest*
10338 eval "ac_cv_header_$ac_safe=no"
10339fi
10340rm -f conftest*
10341fi
10342if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10343 echo "$ac_t""yes" 1>&6
10344 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10345 cat >> confdefs.h <<EOF
10346#define $ac_tr_hdr 1
10347EOF
10348
10349else
10350 echo "$ac_t""no" 1>&6
10351fi
10352done
10353
10354
10355 if test "x$HAVE_IOSTREAM" = x ; then
10356 cat >> confdefs.h <<\EOF
10357#define wxUSE_IOSTREAMH 1
10358EOF
10359
10360 else
10361 :
10362 fi
10363
10364 ac_ext=c
10365# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10366ac_cpp='$CPP $CPPFLAGS'
10367ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10368ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10369cross_compiling=$ac_cv_prog_cc_cross
10370
10371 fi
10372
10373
10374
10375 echo $ac_n "checking if C++ compiler supports bool""... $ac_c" 1>&6
6f72b082 10376echo "configure:10377: checking if C++ compiler supports bool" >&5
10f2d63a
VZ
10377if eval "test \"`echo '$''{'wx_cv_cpp_bool'+set}'`\" = set"; then
10378 echo $ac_n "(cached) $ac_c" 1>&6
10379else
10380
10381
10382 ac_ext=C
10383# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10384ac_cpp='$CXXCPP $CPPFLAGS'
10385ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10386ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10387cross_compiling=$ac_cv_prog_cxx_cross
10388
10389
10390 cat > conftest.$ac_ext <<EOF
6f72b082 10391#line 10392 "configure"
10f2d63a
VZ
10392#include "confdefs.h"
10393
10394
10395int main() {
10396
10397 bool b = true;
10398
10399 return 0;
10400
10401; return 0; }
10402EOF
6f72b082 10403if { (eval echo configure:10404: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10f2d63a
VZ
10404 rm -rf conftest*
10405
10406 cat >> confdefs.h <<\EOF
10407#define HAVE_BOOL 1
10408EOF
10409
10410 wx_cv_cpp_bool=yes
10411
10412else
10413 echo "configure: failed program was:" >&5
10414 cat conftest.$ac_ext >&5
10415 rm -rf conftest*
10416
10417 wx_cv_cpp_bool=no
10418
10419
10420fi
10421rm -f conftest*
10422
10423 ac_ext=c
10424# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10425ac_cpp='$CPP $CPPFLAGS'
10426ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10427ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10428cross_compiling=$ac_cv_prog_cc_cross
10429
10430
10431fi
10432
10433echo "$ac_t""$wx_cv_cpp_bool" 1>&6
10434
10435 if test "$wx_cv_cpp_bool" = "yes"; then
10436 cat >> confdefs.h <<\EOF
10437#define HAVE_BOOL 1
10438EOF
10439
10440 fi
10441
10442
10443
10f2d63a 10444echo $ac_n "checking if you need GNU extensions""... $ac_c" 1>&6
6f72b082 10445echo "configure:10446: checking if you need GNU extensions" >&5
10f2d63a
VZ
10446if eval "test \"`echo '$''{'wx_cv_gnu_extensions'+set}'`\" = set"; then
10447 echo $ac_n "(cached) $ac_c" 1>&6
10448else
10449
10450 cat > conftest.$ac_ext <<EOF
6f72b082 10451#line 10452 "configure"
10f2d63a
VZ
10452#include "confdefs.h"
10453#include <features.h>
10454int main() {
10455
10456
10457#ifndef __GNU_LIBRARY__
10458 Compile error wanted
10459#endif
10460
10461
10462; return 0; }
10463EOF
6f72b082 10464if { (eval echo configure:10465: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10f2d63a
VZ
10465 rm -rf conftest*
10466 wx_cv_gnu_extensions=yes
10467else
10468 echo "configure: failed program was:" >&5
10469 cat conftest.$ac_ext >&5
10470 rm -rf conftest*
10471 wx_cv_gnu_extensions=no
10472fi
10473rm -f conftest*
10474
10475fi
10476
10477
10478echo "$ac_t""$wx_cv_gnu_extensions" 1>&6
10479if test "$wx_cv_gnu_extensions" = "yes"; then
10480 cat >> confdefs.h <<EOF
10481#define _GNU_SOURCE 1
10482EOF
10483
10484fi
10485
10486
10487
10488echo $ac_n "checking for wcslen in -lc""... $ac_c" 1>&6
6f72b082 10489echo "configure:10490: checking for wcslen in -lc" >&5
10f2d63a
VZ
10490ac_lib_var=`echo c'_'wcslen | sed 'y%./+-%__p_%'`
10491if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10492 echo $ac_n "(cached) $ac_c" 1>&6
10493else
10494 ac_save_LIBS="$LIBS"
10495LIBS="-lc $LIBS"
10496cat > conftest.$ac_ext <<EOF
6f72b082 10497#line 10498 "configure"
10f2d63a
VZ
10498#include "confdefs.h"
10499/* Override any gcc2 internal prototype to avoid an error. */
10500/* We use char because int might match the return type of a gcc2
10501 builtin and then its argument prototype would still apply. */
10502char wcslen();
10503
10504int main() {
10505wcslen()
10506; return 0; }
10507EOF
6f72b082 10508if { (eval echo configure:10509: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
10509 rm -rf conftest*
10510 eval "ac_cv_lib_$ac_lib_var=yes"
10511else
10512 echo "configure: failed program was:" >&5
10513 cat conftest.$ac_ext >&5
10514 rm -rf conftest*
10515 eval "ac_cv_lib_$ac_lib_var=no"
10516fi
10517rm -f conftest*
10518LIBS="$ac_save_LIBS"
10519
10520fi
10521if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10522 echo "$ac_t""yes" 1>&6
10523
10524 cat >> confdefs.h <<\EOF
10525#define HAVE_WCSLEN 1
10526EOF
10527
10528 WCHAR_LINK=""
10529
10530else
10531 echo "$ac_t""no" 1>&6
10532
10533 echo $ac_n "checking for wcslen in -lw""... $ac_c" 1>&6
6f72b082 10534echo "configure:10535: checking for wcslen in -lw" >&5
10f2d63a
VZ
10535ac_lib_var=`echo w'_'wcslen | sed 'y%./+-%__p_%'`
10536if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10537 echo $ac_n "(cached) $ac_c" 1>&6
10538else
10539 ac_save_LIBS="$LIBS"
10540LIBS="-lw $LIBS"
10541cat > conftest.$ac_ext <<EOF
6f72b082 10542#line 10543 "configure"
10f2d63a
VZ
10543#include "confdefs.h"
10544/* Override any gcc2 internal prototype to avoid an error. */
10545/* We use char because int might match the return type of a gcc2
10546 builtin and then its argument prototype would still apply. */
10547char wcslen();
10548
10549int main() {
10550wcslen()
10551; return 0; }
10552EOF
6f72b082 10553if { (eval echo configure:10554: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
10554 rm -rf conftest*
10555 eval "ac_cv_lib_$ac_lib_var=yes"
10556else
10557 echo "configure: failed program was:" >&5
10558 cat conftest.$ac_ext >&5
10559 rm -rf conftest*
10560 eval "ac_cv_lib_$ac_lib_var=no"
10561fi
10562rm -f conftest*
10563LIBS="$ac_save_LIBS"
10564
10565fi
10566if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10567 echo "$ac_t""yes" 1>&6
10568
10569 cat >> confdefs.h <<\EOF
10570#define HAVE_WCSLEN 1
10571EOF
10572
10573 WCHAR_LINK="-lw"
10574
10575else
10576 echo "$ac_t""no" 1>&6
10577fi
10578
10579
10580fi
10581
10582
10583echo $ac_n "checking for vprintf""... $ac_c" 1>&6
6f72b082 10584echo "configure:10585: checking for vprintf" >&5
10f2d63a
VZ
10585if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
10586 echo $ac_n "(cached) $ac_c" 1>&6
10587else
10588 cat > conftest.$ac_ext <<EOF
6f72b082 10589#line 10590 "configure"
10f2d63a
VZ
10590#include "confdefs.h"
10591/* System header to define __stub macros and hopefully few prototypes,
10592 which can conflict with char vprintf(); below. */
10593#include <assert.h>
10594/* Override any gcc2 internal prototype to avoid an error. */
10595/* We use char because int might match the return type of a gcc2
10596 builtin and then its argument prototype would still apply. */
10597char vprintf();
10598
10599int main() {
10600
10601/* The GNU C library defines this for functions which it implements
10602 to always fail with ENOSYS. Some functions are actually named
10603 something starting with __ and the normal name is an alias. */
10604#if defined (__stub_vprintf) || defined (__stub___vprintf)
10605choke me
10606#else
e8482f24 10607vprintf();
10f2d63a
VZ
10608#endif
10609
10610; return 0; }
10611EOF
6f72b082 10612if { (eval echo configure:10613: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
10613 rm -rf conftest*
10614 eval "ac_cv_func_vprintf=yes"
10615else
10616 echo "configure: failed program was:" >&5
10617 cat conftest.$ac_ext >&5
10618 rm -rf conftest*
10619 eval "ac_cv_func_vprintf=no"
10620fi
10621rm -f conftest*
10622fi
10623
10624if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
10625 echo "$ac_t""yes" 1>&6
10626 cat >> confdefs.h <<\EOF
10627#define HAVE_VPRINTF 1
10628EOF
10629
10630else
10631 echo "$ac_t""no" 1>&6
10632fi
10633
10634if test "$ac_cv_func_vprintf" != yes; then
10635echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
6f72b082 10636echo "configure:10637: checking for _doprnt" >&5
10f2d63a
VZ
10637if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
10638 echo $ac_n "(cached) $ac_c" 1>&6
10639else
10640 cat > conftest.$ac_ext <<EOF
6f72b082 10641#line 10642 "configure"
10f2d63a
VZ
10642#include "confdefs.h"
10643/* System header to define __stub macros and hopefully few prototypes,
10644 which can conflict with char _doprnt(); below. */
10645#include <assert.h>
10646/* Override any gcc2 internal prototype to avoid an error. */
10647/* We use char because int might match the return type of a gcc2
10648 builtin and then its argument prototype would still apply. */
10649char _doprnt();
10650
10651int main() {
10652
10653/* The GNU C library defines this for functions which it implements
10654 to always fail with ENOSYS. Some functions are actually named
10655 something starting with __ and the normal name is an alias. */
10656#if defined (__stub__doprnt) || defined (__stub____doprnt)
10657choke me
10658#else
e8482f24 10659_doprnt();
10f2d63a
VZ
10660#endif
10661
10662; return 0; }
10663EOF
6f72b082 10664if { (eval echo configure:10665: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
10665 rm -rf conftest*
10666 eval "ac_cv_func__doprnt=yes"
10667else
10668 echo "configure: failed program was:" >&5
10669 cat conftest.$ac_ext >&5
10670 rm -rf conftest*
10671 eval "ac_cv_func__doprnt=no"
10672fi
10673rm -f conftest*
10674fi
10675
10676if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
10677 echo "$ac_t""yes" 1>&6
10678 cat >> confdefs.h <<\EOF
10679#define HAVE_DOPRNT 1
10680EOF
10681
10682else
10683 echo "$ac_t""no" 1>&6
10684fi
10685
10686fi
10687
10688
10f2d63a 10689
f6bcfd97
BP
10690ac_ext=C
10691# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10692ac_cpp='$CXXCPP $CPPFLAGS'
10693ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10694ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10695cross_compiling=$ac_cv_prog_cxx_cross
10696
10697
10698
10699
10700echo $ac_n "checking for vsnprintf""... $ac_c" 1>&6
6f72b082 10701echo "configure:10702: checking for vsnprintf" >&5
f6bcfd97
BP
10702if eval "test \"`echo '$''{'wx_cv_func_vsnprintf'+set}'`\" = set"; then
10703 echo $ac_n "(cached) $ac_c" 1>&6
10704else
10705
10706 cat > conftest.$ac_ext <<EOF
6f72b082 10707#line 10708 "configure"
f6bcfd97
BP
10708#include "confdefs.h"
10709
10710 #include <stdio.h>
10711 #include <stdarg.h>
10712
10f2d63a
VZ
10713int main() {
10714
f6bcfd97 10715 int wx_test_vsnprintf(const char *, ...);
10f2d63a 10716
f6bcfd97
BP
10717 wx_test_vsnprintf("%s");
10718 return 0;
10719 }
10720
10721 int wx_test_vsnprintf(const char *fmt, ...)
10722 {
10723 char *s;
10724
10725 va_list argp;
10726 va_start(argp, fmt);
10727 vsnprintf(s, 42, fmt, argp);
10728 va_end(argp);
10729
10f2d63a
VZ
10730; return 0; }
10731EOF
6f72b082 10732if { (eval echo configure:10733: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10f2d63a 10733 rm -rf conftest*
f6bcfd97
BP
10734
10735 cat >> confdefs.h <<\EOF
10736#define HAVE_VSNPRINTF 1
10737EOF
10738
10739 wx_cv_func_vsnprintf=yes
10740
10f2d63a
VZ
10741else
10742 echo "configure: failed program was:" >&5
10743 cat conftest.$ac_ext >&5
10744 rm -rf conftest*
f6bcfd97
BP
10745
10746 echo "configure: warning: unsafe function sprintf will be used instead of snprintf" 1>&2
10747 wx_cv_func_vsnprintf=no
10748
10f2d63a
VZ
10749fi
10750rm -f conftest*
10f2d63a 10751
10f2d63a 10752fi
10f2d63a 10753
f6bcfd97 10754echo "$ac_t""$wx_cv_func_vsnprintf" 1>&6
10f2d63a
VZ
10755
10756echo $ac_n "checking for vsscanf""... $ac_c" 1>&6
6f72b082 10757echo "configure:10758: checking for vsscanf" >&5
10f2d63a
VZ
10758if eval "test \"`echo '$''{'wx_cv_func_vsscanf'+set}'`\" = set"; then
10759 echo $ac_n "(cached) $ac_c" 1>&6
10760else
10761
10f2d63a 10762 cat > conftest.$ac_ext <<EOF
6f72b082 10763#line 10764 "configure"
10f2d63a 10764#include "confdefs.h"
10f2d63a 10765
f6bcfd97
BP
10766 #include <stdio.h>
10767 #include <stdarg.h>
10768
10769int main() {
10f2d63a 10770
f6bcfd97 10771 int wx_test_vsscanf(const char *, ...);
10f2d63a 10772
f6bcfd97
BP
10773 wx_test_vsscanf("%d");
10774 return 0;
10f2d63a
VZ
10775 }
10776
f6bcfd97 10777 int wx_test_vsscanf(const char *fmt, ...)
10f2d63a 10778 {
f6bcfd97
BP
10779 va_list argp;
10780 va_start(argp, fmt);
10781 vsscanf("42", fmt, argp);
10782 va_end(argp);
10783
10784; return 0; }
10f2d63a 10785EOF
6f72b082 10786if { (eval echo configure:10787: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
f6bcfd97 10787 rm -rf conftest*
10f2d63a 10788
f6bcfd97 10789 cat >> confdefs.h <<\EOF
10f2d63a
VZ
10790#define HAVE_VSSCANF 1
10791EOF
10792
f6bcfd97
BP
10793 wx_cv_func_vsscanf=yes
10794
10f2d63a
VZ
10795else
10796 echo "configure: failed program was:" >&5
10797 cat conftest.$ac_ext >&5
f6bcfd97
BP
10798 rm -rf conftest*
10799
10800 wx_cv_func_vsscanf=no
10801
10f2d63a 10802fi
f6bcfd97 10803rm -f conftest*
10f2d63a
VZ
10804
10805fi
10806
10807echo "$ac_t""$wx_cv_func_vsscanf" 1>&6
10808
10809ac_ext=c
10810# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10811ac_cpp='$CPP $CPPFLAGS'
10812ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10813ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10814cross_compiling=$ac_cv_prog_cc_cross
10815
10816
b089607b 10817if test "$TOOLKIT" != "MSW"; then
10f2d63a 10818
eb4efbdc
VZ
10819if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
10820 for ac_func in sigaction
10821do
10822echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6f72b082 10823echo "configure:10824: checking for $ac_func" >&5
eb4efbdc
VZ
10824if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10825 echo $ac_n "(cached) $ac_c" 1>&6
10826else
10827 cat > conftest.$ac_ext <<EOF
6f72b082 10828#line 10829 "configure"
eb4efbdc
VZ
10829#include "confdefs.h"
10830/* System header to define __stub macros and hopefully few prototypes,
10831 which can conflict with char $ac_func(); below. */
10832#include <assert.h>
10833/* Override any gcc2 internal prototype to avoid an error. */
10834/* We use char because int might match the return type of a gcc2
10835 builtin and then its argument prototype would still apply. */
10836char $ac_func();
10837
10838int main() {
10839
10840/* The GNU C library defines this for functions which it implements
10841 to always fail with ENOSYS. Some functions are actually named
10842 something starting with __ and the normal name is an alias. */
10843#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10844choke me
10845#else
10846$ac_func();
10847#endif
10848
10849; return 0; }
10850EOF
6f72b082 10851if { (eval echo configure:10852: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
eb4efbdc
VZ
10852 rm -rf conftest*
10853 eval "ac_cv_func_$ac_func=yes"
10854else
10855 echo "configure: failed program was:" >&5
10856 cat conftest.$ac_ext >&5
10857 rm -rf conftest*
10858 eval "ac_cv_func_$ac_func=no"
10859fi
10860rm -f conftest*
10861fi
10862
10863if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10864 echo "$ac_t""yes" 1>&6
10865 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10866 cat >> confdefs.h <<EOF
10867#define $ac_tr_func 1
10868EOF
10869
10870else
10871 echo "$ac_t""no" 1>&6
10872fi
10873done
10874
10875
10876 if test "$ac_cv_func_sigaction" = "no"; then
10877 echo "configure: warning: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" 1>&2
10878 wxUSE_ON_FATAL_EXCEPTION=no
10879 fi
f6bcfd97
BP
10880
10881 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
10882
10883 ac_ext=C
10884# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10885ac_cpp='$CXXCPP $CPPFLAGS'
10886ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10887ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10888cross_compiling=$ac_cv_prog_cxx_cross
10889
10890
10891 echo $ac_n "checking for sa_handler type""... $ac_c" 1>&6
6f72b082 10892echo "configure:10893: checking for sa_handler type" >&5
f6bcfd97
BP
10893if eval "test \"`echo '$''{'wx_cv_type_sa_handler'+set}'`\" = set"; then
10894 echo $ac_n "(cached) $ac_c" 1>&6
10895else
10896
10897 cat > conftest.$ac_ext <<EOF
6f72b082 10898#line 10899 "configure"
f6bcfd97
BP
10899#include "confdefs.h"
10900#include <signal.h>
10901int main() {
10902
10903 extern void testSigHandler(int);
10904
10905 struct sigaction sa;
10906 sa.sa_handler = testSigHandler;
10907
10908; return 0; }
10909EOF
6f72b082 10910if { (eval echo configure:10911: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
f6bcfd97
BP
10911 rm -rf conftest*
10912
10913 wx_cv_type_sa_handler=int
10914
10915else
10916 echo "configure: failed program was:" >&5
10917 cat conftest.$ac_ext >&5
10918 rm -rf conftest*
10919
10920 wx_cv_type_sa_handler=void
10921
10922fi
10923rm -f conftest*
10924
10925fi
10926
10927echo "$ac_t""$wx_cv_type_sa_handler" 1>&6
10928
10929 ac_ext=c
10930# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10931ac_cpp='$CPP $CPPFLAGS'
10932ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10933ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10934cross_compiling=$ac_cv_prog_cc_cross
10935
10936
10937 cat >> confdefs.h <<EOF
10938#define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
10939EOF
10940
10941 fi
eb4efbdc
VZ
10942fi
10943
10f2d63a
VZ
10944for ac_func in vfork
10945do
10946echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6f72b082 10947echo "configure:10948: checking for $ac_func" >&5
10f2d63a
VZ
10948if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10949 echo $ac_n "(cached) $ac_c" 1>&6
10950else
10951 cat > conftest.$ac_ext <<EOF
6f72b082 10952#line 10953 "configure"
10f2d63a
VZ
10953#include "confdefs.h"
10954/* System header to define __stub macros and hopefully few prototypes,
10955 which can conflict with char $ac_func(); below. */
10956#include <assert.h>
10957/* Override any gcc2 internal prototype to avoid an error. */
10958/* We use char because int might match the return type of a gcc2
10959 builtin and then its argument prototype would still apply. */
10960char $ac_func();
10961
10962int main() {
10963
10964/* The GNU C library defines this for functions which it implements
10965 to always fail with ENOSYS. Some functions are actually named
10966 something starting with __ and the normal name is an alias. */
10967#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10968choke me
10969#else
e8482f24 10970$ac_func();
10f2d63a
VZ
10971#endif
10972
10973; return 0; }
10974EOF
6f72b082 10975if { (eval echo configure:10976: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
270a909e
VZ
10976 rm -rf conftest*
10977 eval "ac_cv_func_$ac_func=yes"
10978else
10979 echo "configure: failed program was:" >&5
10980 cat conftest.$ac_ext >&5
10981 rm -rf conftest*
10982 eval "ac_cv_func_$ac_func=no"
10983fi
10984rm -f conftest*
10985fi
10986
10987if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10988 echo "$ac_t""yes" 1>&6
10989 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10990 cat >> confdefs.h <<EOF
10991#define $ac_tr_func 1
10992EOF
10993
10994else
10995 echo "$ac_t""no" 1>&6
10996fi
10997done
10998
10999
11000for ac_func in timegm
11001do
11002echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6f72b082 11003echo "configure:11004: checking for $ac_func" >&5
270a909e
VZ
11004if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11005 echo $ac_n "(cached) $ac_c" 1>&6
11006else
11007 cat > conftest.$ac_ext <<EOF
6f72b082 11008#line 11009 "configure"
270a909e
VZ
11009#include "confdefs.h"
11010/* System header to define __stub macros and hopefully few prototypes,
11011 which can conflict with char $ac_func(); below. */
11012#include <assert.h>
11013/* Override any gcc2 internal prototype to avoid an error. */
11014/* We use char because int might match the return type of a gcc2
11015 builtin and then its argument prototype would still apply. */
11016char $ac_func();
11017
11018int main() {
11019
11020/* The GNU C library defines this for functions which it implements
11021 to always fail with ENOSYS. Some functions are actually named
11022 something starting with __ and the normal name is an alias. */
11023#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11024choke me
11025#else
e8482f24 11026$ac_func();
270a909e
VZ
11027#endif
11028
11029; return 0; }
11030EOF
6f72b082 11031if { (eval echo configure:11032: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
11032 rm -rf conftest*
11033 eval "ac_cv_func_$ac_func=yes"
11034else
11035 echo "configure: failed program was:" >&5
11036 cat conftest.$ac_ext >&5
11037 rm -rf conftest*
11038 eval "ac_cv_func_$ac_func=no"
11039fi
11040rm -f conftest*
11041fi
11042
11043if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11044 echo "$ac_t""yes" 1>&6
11045 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11046 cat >> confdefs.h <<EOF
11047#define $ac_tr_func 1
11048EOF
11049
11050else
11051 echo "$ac_t""no" 1>&6
11052fi
11053done
11054
11055
b12915c1
VZ
11056HAVE_SOME_SLEEP_FUNC=0
11057if test "$USE_BEOS" = 1; then
11058 cat >> confdefs.h <<\EOF
11059#define HAVE_SLEEP 1
11060EOF
11061
11062 HAVE_SOME_SLEEP_FUNC=1
11063fi
11064
11065if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
11066 POSIX4_LINK=
11067 for ac_func in nanosleep
10f2d63a
VZ
11068do
11069echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6f72b082 11070echo "configure:11071: checking for $ac_func" >&5
10f2d63a
VZ
11071if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11072 echo $ac_n "(cached) $ac_c" 1>&6
11073else
11074 cat > conftest.$ac_ext <<EOF
6f72b082 11075#line 11076 "configure"
10f2d63a
VZ
11076#include "confdefs.h"
11077/* System header to define __stub macros and hopefully few prototypes,
11078 which can conflict with char $ac_func(); below. */
11079#include <assert.h>
11080/* Override any gcc2 internal prototype to avoid an error. */
11081/* We use char because int might match the return type of a gcc2
11082 builtin and then its argument prototype would still apply. */
11083char $ac_func();
11084
11085int main() {
11086
11087/* The GNU C library defines this for functions which it implements
11088 to always fail with ENOSYS. Some functions are actually named
11089 something starting with __ and the normal name is an alias. */
11090#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11091choke me
11092#else
e8482f24 11093$ac_func();
10f2d63a
VZ
11094#endif
11095
11096; return 0; }
11097EOF
6f72b082 11098if { (eval echo configure:11099: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
11099 rm -rf conftest*
11100 eval "ac_cv_func_$ac_func=yes"
11101else
11102 echo "configure: failed program was:" >&5
11103 cat conftest.$ac_ext >&5
11104 rm -rf conftest*
11105 eval "ac_cv_func_$ac_func=no"
11106fi
11107rm -f conftest*
11108fi
11109
11110if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11111 echo "$ac_t""yes" 1>&6
11112 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11113 cat >> confdefs.h <<EOF
11114#define $ac_tr_func 1
11115EOF
11116 cat >> confdefs.h <<\EOF
11117#define HAVE_NANOSLEEP 1
11118EOF
11119
11120else
11121 echo "$ac_t""no" 1>&6
11122echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6
6f72b082 11123echo "configure:11124: checking for nanosleep in -lposix4" >&5
10f2d63a
VZ
11124ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'`
11125if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11126 echo $ac_n "(cached) $ac_c" 1>&6
11127else
11128 ac_save_LIBS="$LIBS"
11129LIBS="-lposix4 $LIBS"
11130cat > conftest.$ac_ext <<EOF
6f72b082 11131#line 11132 "configure"
10f2d63a
VZ
11132#include "confdefs.h"
11133/* Override any gcc2 internal prototype to avoid an error. */
11134/* We use char because int might match the return type of a gcc2
11135 builtin and then its argument prototype would still apply. */
11136char nanosleep();
11137
11138int main() {
11139nanosleep()
11140; return 0; }
11141EOF
6f72b082 11142if { (eval echo configure:11143: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
11143 rm -rf conftest*
11144 eval "ac_cv_lib_$ac_lib_var=yes"
11145else
11146 echo "configure: failed program was:" >&5
11147 cat conftest.$ac_ext >&5
11148 rm -rf conftest*
11149 eval "ac_cv_lib_$ac_lib_var=no"
11150fi
11151rm -f conftest*
11152LIBS="$ac_save_LIBS"
11153
11154fi
11155if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11156 echo "$ac_t""yes" 1>&6
11157
b12915c1 11158 cat >> confdefs.h <<\EOF
10f2d63a
VZ
11159#define HAVE_NANOSLEEP 1
11160EOF
11161
b12915c1
VZ
11162 POSIX4_LINK="-lposix4"
11163
10f2d63a
VZ
11164else
11165 echo "$ac_t""no" 1>&6
11166
b12915c1 11167 for ac_func in usleep
10f2d63a
VZ
11168do
11169echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6f72b082 11170echo "configure:11171: checking for $ac_func" >&5
10f2d63a
VZ
11171if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11172 echo $ac_n "(cached) $ac_c" 1>&6
11173else
11174 cat > conftest.$ac_ext <<EOF
6f72b082 11175#line 11176 "configure"
10f2d63a
VZ
11176#include "confdefs.h"
11177/* System header to define __stub macros and hopefully few prototypes,
11178 which can conflict with char $ac_func(); below. */
11179#include <assert.h>
11180/* Override any gcc2 internal prototype to avoid an error. */
11181/* We use char because int might match the return type of a gcc2
11182 builtin and then its argument prototype would still apply. */
11183char $ac_func();
11184
11185int main() {
11186
11187/* The GNU C library defines this for functions which it implements
11188 to always fail with ENOSYS. Some functions are actually named
11189 something starting with __ and the normal name is an alias. */
11190#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11191choke me
11192#else
e8482f24 11193$ac_func();
10f2d63a
VZ
11194#endif
11195
11196; return 0; }
11197EOF
6f72b082 11198if { (eval echo configure:11199: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
11199 rm -rf conftest*
11200 eval "ac_cv_func_$ac_func=yes"
11201else
11202 echo "configure: failed program was:" >&5
11203 cat conftest.$ac_ext >&5
11204 rm -rf conftest*
11205 eval "ac_cv_func_$ac_func=no"
11206fi
11207rm -f conftest*
11208fi
11209
11210if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11211 echo "$ac_t""yes" 1>&6
11212 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11213 cat >> confdefs.h <<EOF
11214#define $ac_tr_func 1
11215EOF
b12915c1 11216
10f2d63a
VZ
11217else
11218 echo "$ac_t""no" 1>&6
10f2d63a
VZ
11219fi
11220done
11221
b12915c1
VZ
11222 echo "configure: warning: wxSleep() function will not work" 1>&2
11223
11224
10f2d63a
VZ
11225fi
11226
b12915c1
VZ
11227
11228
10f2d63a
VZ
11229fi
11230done
11231
b12915c1 11232fi
10f2d63a
VZ
11233
11234for ac_func in uname gethostname
11235do
11236echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6f72b082 11237echo "configure:11238: checking for $ac_func" >&5
10f2d63a
VZ
11238if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11239 echo $ac_n "(cached) $ac_c" 1>&6
11240else
11241 cat > conftest.$ac_ext <<EOF
6f72b082 11242#line 11243 "configure"
10f2d63a
VZ
11243#include "confdefs.h"
11244/* System header to define __stub macros and hopefully few prototypes,
11245 which can conflict with char $ac_func(); below. */
11246#include <assert.h>
11247/* Override any gcc2 internal prototype to avoid an error. */
11248/* We use char because int might match the return type of a gcc2
11249 builtin and then its argument prototype would still apply. */
11250char $ac_func();
11251
11252int main() {
11253
11254/* The GNU C library defines this for functions which it implements
11255 to always fail with ENOSYS. Some functions are actually named
11256 something starting with __ and the normal name is an alias. */
11257#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11258choke me
11259#else
e8482f24 11260$ac_func();
10f2d63a
VZ
11261#endif
11262
11263; return 0; }
11264EOF
6f72b082 11265if { (eval echo configure:11266: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
11266 rm -rf conftest*
11267 eval "ac_cv_func_$ac_func=yes"
11268else
11269 echo "configure: failed program was:" >&5
11270 cat conftest.$ac_ext >&5
11271 rm -rf conftest*
11272 eval "ac_cv_func_$ac_func=no"
11273fi
11274rm -f conftest*
11275fi
11276
11277if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11278 echo "$ac_t""yes" 1>&6
11279 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11280 cat >> confdefs.h <<EOF
11281#define $ac_tr_func 1
11282EOF
11283 break
11284else
11285 echo "$ac_t""no" 1>&6
11286fi
11287done
11288
11289
6098c7f9
VZ
11290
11291ac_ext=C
11292# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11293ac_cpp='$CXXCPP $CPPFLAGS'
11294ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11295ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11296cross_compiling=$ac_cv_prog_cxx_cross
11297
11298
10f2d63a
VZ
11299for ac_func in strtok_r
11300do
11301echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6f72b082 11302echo "configure:11303: checking for $ac_func" >&5
10f2d63a
VZ
11303if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11304 echo $ac_n "(cached) $ac_c" 1>&6
11305else
11306 cat > conftest.$ac_ext <<EOF
6f72b082 11307#line 11308 "configure"
10f2d63a
VZ
11308#include "confdefs.h"
11309/* System header to define __stub macros and hopefully few prototypes,
11310 which can conflict with char $ac_func(); below. */
11311#include <assert.h>
11312/* Override any gcc2 internal prototype to avoid an error. */
6098c7f9
VZ
11313#ifdef __cplusplus
11314extern "C"
11315#endif
10f2d63a
VZ
11316/* We use char because int might match the return type of a gcc2
11317 builtin and then its argument prototype would still apply. */
11318char $ac_func();
11319
11320int main() {
11321
11322/* The GNU C library defines this for functions which it implements
11323 to always fail with ENOSYS. Some functions are actually named
11324 something starting with __ and the normal name is an alias. */
11325#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11326choke me
11327#else
e8482f24 11328$ac_func();
10f2d63a
VZ
11329#endif
11330
11331; return 0; }
11332EOF
6f72b082 11333if { (eval echo configure:11334: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
11334 rm -rf conftest*
11335 eval "ac_cv_func_$ac_func=yes"
11336else
11337 echo "configure: failed program was:" >&5
11338 cat conftest.$ac_ext >&5
11339 rm -rf conftest*
11340 eval "ac_cv_func_$ac_func=no"
11341fi
11342rm -f conftest*
11343fi
11344
11345if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11346 echo "$ac_t""yes" 1>&6
11347 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11348 cat >> confdefs.h <<EOF
11349#define $ac_tr_func 1
11350EOF
11351
11352else
11353 echo "$ac_t""no" 1>&6
11354fi
11355done
11356
11357
6098c7f9
VZ
11358ac_ext=c
11359# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11360ac_cpp='$CPP $CPPFLAGS'
11361ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11362ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11363cross_compiling=$ac_cv_prog_cc_cross
11364
11365
c63c7106 11366INET_LINK=
10f2d63a
VZ
11367for ac_func in inet_addr
11368do
11369echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6f72b082 11370echo "configure:11371: checking for $ac_func" >&5
10f2d63a
VZ
11371if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11372 echo $ac_n "(cached) $ac_c" 1>&6
11373else
11374 cat > conftest.$ac_ext <<EOF
6f72b082 11375#line 11376 "configure"
10f2d63a
VZ
11376#include "confdefs.h"
11377/* System header to define __stub macros and hopefully few prototypes,
11378 which can conflict with char $ac_func(); below. */
11379#include <assert.h>
11380/* Override any gcc2 internal prototype to avoid an error. */
11381/* We use char because int might match the return type of a gcc2
11382 builtin and then its argument prototype would still apply. */
11383char $ac_func();
11384
11385int main() {
11386
11387/* The GNU C library defines this for functions which it implements
11388 to always fail with ENOSYS. Some functions are actually named
11389 something starting with __ and the normal name is an alias. */
11390#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11391choke me
11392#else
e8482f24 11393$ac_func();
10f2d63a
VZ
11394#endif
11395
11396; return 0; }
11397EOF
6f72b082 11398if { (eval echo configure:11399: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
11399 rm -rf conftest*
11400 eval "ac_cv_func_$ac_func=yes"
11401else
11402 echo "configure: failed program was:" >&5
11403 cat conftest.$ac_ext >&5
11404 rm -rf conftest*
11405 eval "ac_cv_func_$ac_func=no"
11406fi
11407rm -f conftest*
11408fi
11409
11410if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11411 echo "$ac_t""yes" 1>&6
11412 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11413 cat >> confdefs.h <<EOF
11414#define $ac_tr_func 1
11415EOF
c63c7106
VZ
11416 cat >> confdefs.h <<\EOF
11417#define HAVE_INET_ADDR 1
11418EOF
11419
10f2d63a
VZ
11420else
11421 echo "$ac_t""no" 1>&6
c63c7106 11422echo $ac_n "checking for inet_addr in -lnsl""... $ac_c" 1>&6
6f72b082 11423echo "configure:11424: checking for inet_addr in -lnsl" >&5
c63c7106
VZ
11424ac_lib_var=`echo nsl'_'inet_addr | sed 'y%./+-%__p_%'`
11425if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11426 echo $ac_n "(cached) $ac_c" 1>&6
11427else
11428 ac_save_LIBS="$LIBS"
11429LIBS="-lnsl $LIBS"
11430cat > conftest.$ac_ext <<EOF
6f72b082 11431#line 11432 "configure"
c63c7106
VZ
11432#include "confdefs.h"
11433/* Override any gcc2 internal prototype to avoid an error. */
11434/* We use char because int might match the return type of a gcc2
11435 builtin and then its argument prototype would still apply. */
11436char inet_addr();
11437
11438int main() {
11439inet_addr()
11440; return 0; }
11441EOF
6f72b082 11442if { (eval echo configure:11443: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
c63c7106
VZ
11443 rm -rf conftest*
11444 eval "ac_cv_lib_$ac_lib_var=yes"
11445else
11446 echo "configure: failed program was:" >&5
11447 cat conftest.$ac_ext >&5
11448 rm -rf conftest*
11449 eval "ac_cv_lib_$ac_lib_var=no"
11450fi
11451rm -f conftest*
11452LIBS="$ac_save_LIBS"
11453
11454fi
11455if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11456 echo "$ac_t""yes" 1>&6
11457 INET_LINK="nsl"
11458else
11459 echo "$ac_t""no" 1>&6
11460echo $ac_n "checking for inet_addr in -lresolv""... $ac_c" 1>&6
6f72b082 11461echo "configure:11462: checking for inet_addr in -lresolv" >&5
c63c7106
VZ
11462ac_lib_var=`echo resolv'_'inet_addr | sed 'y%./+-%__p_%'`
11463if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11464 echo $ac_n "(cached) $ac_c" 1>&6
11465else
11466 ac_save_LIBS="$LIBS"
11467LIBS="-lresolv $LIBS"
11468cat > conftest.$ac_ext <<EOF
6f72b082 11469#line 11470 "configure"
c63c7106
VZ
11470#include "confdefs.h"
11471/* Override any gcc2 internal prototype to avoid an error. */
11472/* We use char because int might match the return type of a gcc2
11473 builtin and then its argument prototype would still apply. */
11474char inet_addr();
11475
11476int main() {
11477inet_addr()
11478; return 0; }
11479EOF
6f72b082 11480if { (eval echo configure:11481: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
c63c7106
VZ
11481 rm -rf conftest*
11482 eval "ac_cv_lib_$ac_lib_var=yes"
11483else
11484 echo "configure: failed program was:" >&5
11485 cat conftest.$ac_ext >&5
11486 rm -rf conftest*
11487 eval "ac_cv_lib_$ac_lib_var=no"
11488fi
11489rm -f conftest*
11490LIBS="$ac_save_LIBS"
11491
11492fi
11493if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11494 echo "$ac_t""yes" 1>&6
11495 INET_LINK="resolv"
11496
11497else
11498 echo "$ac_t""no" 1>&6
11499fi
11500
11501
11502fi
11503
11504
11505
10f2d63a
VZ
11506fi
11507done
11508
c63c7106 11509
10f2d63a
VZ
11510for ac_func in inet_aton
11511do
11512echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6f72b082 11513echo "configure:11514: checking for $ac_func" >&5
10f2d63a
VZ
11514if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11515 echo $ac_n "(cached) $ac_c" 1>&6
11516else
11517 cat > conftest.$ac_ext <<EOF
6f72b082 11518#line 11519 "configure"
10f2d63a
VZ
11519#include "confdefs.h"
11520/* System header to define __stub macros and hopefully few prototypes,
11521 which can conflict with char $ac_func(); below. */
11522#include <assert.h>
11523/* Override any gcc2 internal prototype to avoid an error. */
11524/* We use char because int might match the return type of a gcc2
11525 builtin and then its argument prototype would still apply. */
11526char $ac_func();
11527
11528int main() {
11529
11530/* The GNU C library defines this for functions which it implements
11531 to always fail with ENOSYS. Some functions are actually named
11532 something starting with __ and the normal name is an alias. */
11533#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11534choke me
11535#else
e8482f24 11536$ac_func();
10f2d63a
VZ
11537#endif
11538
11539; return 0; }
11540EOF
6f72b082 11541if { (eval echo configure:11542: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
11542 rm -rf conftest*
11543 eval "ac_cv_func_$ac_func=yes"
11544else
11545 echo "configure: failed program was:" >&5
11546 cat conftest.$ac_ext >&5
11547 rm -rf conftest*
11548 eval "ac_cv_func_$ac_func=no"
11549fi
11550rm -f conftest*
11551fi
11552
11553if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11554 echo "$ac_t""yes" 1>&6
11555 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11556 cat >> confdefs.h <<EOF
11557#define $ac_tr_func 1
11558EOF
c63c7106
VZ
11559 cat >> confdefs.h <<\EOF
11560#define HAVE_INET_ATON 1
11561EOF
11562
10f2d63a
VZ
11563else
11564 echo "$ac_t""no" 1>&6
c63c7106 11565 echo $ac_n "checking for inet_aton in -l$INET_LINK""... $ac_c" 1>&6
6f72b082 11566echo "configure:11567: checking for inet_aton in -l$INET_LINK" >&5
c63c7106 11567ac_lib_var=`echo $INET_LINK'_'inet_aton | sed 'y%./+-%__p_%'`
10f2d63a
VZ
11568if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11569 echo $ac_n "(cached) $ac_c" 1>&6
11570else
11571 ac_save_LIBS="$LIBS"
c63c7106 11572LIBS="-l$INET_LINK $LIBS"
10f2d63a 11573cat > conftest.$ac_ext <<EOF
6f72b082 11574#line 11575 "configure"
10f2d63a
VZ
11575#include "confdefs.h"
11576/* Override any gcc2 internal prototype to avoid an error. */
11577/* We use char because int might match the return type of a gcc2
11578 builtin and then its argument prototype would still apply. */
11579char inet_aton();
11580
11581int main() {
11582inet_aton()
11583; return 0; }
11584EOF
6f72b082 11585if { (eval echo configure:11586: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
11586 rm -rf conftest*
11587 eval "ac_cv_lib_$ac_lib_var=yes"
11588else
11589 echo "configure: failed program was:" >&5
11590 cat conftest.$ac_ext >&5
11591 rm -rf conftest*
11592 eval "ac_cv_lib_$ac_lib_var=no"
11593fi
11594rm -f conftest*
11595LIBS="$ac_save_LIBS"
11596
11597fi
11598if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11599 echo "$ac_t""yes" 1>&6
c63c7106
VZ
11600 cat >> confdefs.h <<\EOF
11601#define HAVE_INET_ATON 1
10f2d63a
VZ
11602EOF
11603
10f2d63a
VZ
11604else
11605 echo "$ac_t""no" 1>&6
11606fi
11607
c63c7106
VZ
11608
11609fi
11610done
11611
11612
11613if test "x$INET_LINK" != "x"; then
11614 cat >> confdefs.h <<\EOF
11615#define HAVE_INET_ADDR 1
11616EOF
11617
11618 INET_LINK="-l$INET_LINK"
11619fi
10f2d63a
VZ
11620
11621fi
11622
11623
11624cat > confcache <<\EOF
11625# This file is a shell script that caches the results of configure
11626# tests run on this system so they can be shared between configure
11627# scripts and configure runs. It is not useful on other systems.
11628# If it contains results you don't want to keep, you may remove or edit it.
11629#
11630# By default, configure uses ./config.cache as the cache file,
11631# creating it if it does not exist already. You can give configure
11632# the --cache-file=FILE option to use a different cache file; that is
11633# what configure does when it calls configure scripts in
11634# subdirectories, so they share the cache.
11635# Giving --cache-file=/dev/null disables caching, for debugging configure.
11636# config.status only pays attention to the cache file if you give it the
11637# --recheck option to rerun configure.
11638#
11639EOF
11640# The following way of writing the cache mishandles newlines in values,
11641# but we know of no workaround that is simple, portable, and efficient.
11642# So, don't put newlines in cache variables' values.
11643# Ultrix sh set writes to stderr and can't be redirected directly,
11644# and sets the high bit in the cache file unless we assign to the vars.
11645(set) 2>&1 |
11646 case `(ac_space=' '; set | grep ac_space) 2>&1` in
11647 *ac_space=\ *)
11648 # `set' does not quote correctly, so add quotes (double-quote substitution
11649 # turns \\\\ into \\, and sed turns \\ into \).
11650 sed -n \
11651 -e "s/'/'\\\\''/g" \
11652 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
11653 ;;
11654 *)
11655 # `set' quotes correctly as required by POSIX, so do not add quotes.
11656 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
11657 ;;
11658 esac >> confcache
11659if cmp -s $cache_file confcache; then
11660 :
11661else
11662 if test -w $cache_file; then
11663 echo "updating cache $cache_file"
11664 cat confcache > $cache_file
11665 else
11666 echo "not updating unwritable cache $cache_file"
11667 fi
11668fi
11669rm -f confcache
11670
11671
11672
b089607b 11673if test "$TOOLKIT" != "MSW"; then
10f2d63a
VZ
11674
11675
11676THREADS_LINK=""
11677THREADS_OBJ=""
11678
11679if test "$wxUSE_THREADS" = "yes" ; then
11680 if test "$wxUSE_WINE" = 1 ; then
11681 echo "configure: warning: Threads are not supported under WINE" 1>&2
11682 wxUSE_THREADS="no"
b12915c1
VZ
11683 elif test "$USE_BEOS" = 1; then
11684 echo "configure: warning: BeOS threads are not yet supported" 1>&2
11685 wxUSE_THREADS="no"
10f2d63a
VZ
11686 fi
11687fi
11688
11689if test "$wxUSE_THREADS" = "yes" ; then
11690
f6bcfd97
BP
11691 if test "$wxUSE_AIX" = 1; then
11692 THREADS_LIB=pthreads
11693 else
11694 THREADS_LIB=pthread
11695 fi
11696
11697 echo $ac_n "checking for pthread_create in -l$THREADS_LIB""... $ac_c" 1>&6
6f72b082 11698echo "configure:11699: checking for pthread_create in -l$THREADS_LIB" >&5
f6bcfd97 11699ac_lib_var=`echo $THREADS_LIB'_'pthread_create | sed 'y%./+-%__p_%'`
10f2d63a
VZ
11700if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11701 echo $ac_n "(cached) $ac_c" 1>&6
11702else
11703 ac_save_LIBS="$LIBS"
f6bcfd97 11704LIBS="-l$THREADS_LIB $LIBS"
10f2d63a 11705cat > conftest.$ac_ext <<EOF
6f72b082 11706#line 11707 "configure"
10f2d63a
VZ
11707#include "confdefs.h"
11708/* Override any gcc2 internal prototype to avoid an error. */
11709/* We use char because int might match the return type of a gcc2
11710 builtin and then its argument prototype would still apply. */
11711char pthread_create();
11712
11713int main() {
11714pthread_create()
11715; return 0; }
11716EOF
6f72b082 11717if { (eval echo configure:11718: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
11718 rm -rf conftest*
11719 eval "ac_cv_lib_$ac_lib_var=yes"
11720else
11721 echo "configure: failed program was:" >&5
11722 cat conftest.$ac_ext >&5
11723 rm -rf conftest*
11724 eval "ac_cv_lib_$ac_lib_var=no"
11725fi
11726rm -f conftest*
11727LIBS="$ac_save_LIBS"
11728
11729fi
11730if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11731 echo "$ac_t""yes" 1>&6
11732
11733 THREADS_OBJ="threadpsx.lo"
f6bcfd97 11734 THREADS_LINK=$THREADS_LIB
10f2d63a
VZ
11735
11736else
11737 echo "$ac_t""no" 1>&6
11738
11739 echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6
6f72b082 11740echo "configure:11741: checking for pthread_create in -lc_r" >&5
10f2d63a
VZ
11741ac_lib_var=`echo c_r'_'pthread_create | sed 'y%./+-%__p_%'`
11742if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11743 echo $ac_n "(cached) $ac_c" 1>&6
11744else
11745 ac_save_LIBS="$LIBS"
11746LIBS="-lc_r $LIBS"
11747cat > conftest.$ac_ext <<EOF
6f72b082 11748#line 11749 "configure"
10f2d63a
VZ
11749#include "confdefs.h"
11750/* Override any gcc2 internal prototype to avoid an error. */
11751/* We use char because int might match the return type of a gcc2
11752 builtin and then its argument prototype would still apply. */
11753char pthread_create();
11754
11755int main() {
11756pthread_create()
11757; return 0; }
11758EOF
6f72b082 11759if { (eval echo configure:11760: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
11760 rm -rf conftest*
11761 eval "ac_cv_lib_$ac_lib_var=yes"
11762else
11763 echo "configure: failed program was:" >&5
11764 cat conftest.$ac_ext >&5
11765 rm -rf conftest*
11766 eval "ac_cv_lib_$ac_lib_var=no"
11767fi
11768rm -f conftest*
11769LIBS="$ac_save_LIBS"
11770
11771fi
11772if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11773 echo "$ac_t""yes" 1>&6
11774
11775 THREADS_OBJ="threadpsx.lo"
11776 THREADS_LINK="c_r"
11777
11778else
11779 echo "$ac_t""no" 1>&6
11780
11781 ac_safe=`echo "sys/prctl.h" | sed 'y%./+-%__p_%'`
11782echo $ac_n "checking for sys/prctl.h""... $ac_c" 1>&6
6f72b082 11783echo "configure:11784: checking for sys/prctl.h" >&5
10f2d63a
VZ
11784if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11785 echo $ac_n "(cached) $ac_c" 1>&6
11786else
11787 cat > conftest.$ac_ext <<EOF
6f72b082 11788#line 11789 "configure"
10f2d63a
VZ
11789#include "confdefs.h"
11790#include <sys/prctl.h>
11791EOF
11792ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6f72b082 11793{ (eval echo configure:11794: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
11794ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11795if test -z "$ac_err"; then
11796 rm -rf conftest*
11797 eval "ac_cv_header_$ac_safe=yes"
11798else
11799 echo "$ac_err" >&5
11800 echo "configure: failed program was:" >&5
11801 cat conftest.$ac_ext >&5
11802 rm -rf conftest*
11803 eval "ac_cv_header_$ac_safe=no"
11804fi
11805rm -f conftest*
11806fi
11807if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11808 echo "$ac_t""yes" 1>&6
11809
11810 THREADS_OBJ="threadsgi.lo"
11811
11812else
11813 echo "$ac_t""no" 1>&6
11814fi
11815
11816
11817fi
11818
11819
11820fi
11821
11822
11823 if test -z "$THREADS_OBJ" ; then
11824 wxUSE_THREADS=no
11825 echo "configure: warning: No thread support on this system" 1>&2
11826 fi
11827fi
11828
11829if test "$wxUSE_THREADS" = "yes" ; then
70846f0a
VZ
11830 for ac_func in thr_setconcurrency
11831do
11832echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6f72b082 11833echo "configure:11834: checking for $ac_func" >&5
70846f0a
VZ
11834if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11835 echo $ac_n "(cached) $ac_c" 1>&6
11836else
11837 cat > conftest.$ac_ext <<EOF
6f72b082 11838#line 11839 "configure"
70846f0a
VZ
11839#include "confdefs.h"
11840/* System header to define __stub macros and hopefully few prototypes,
11841 which can conflict with char $ac_func(); below. */
11842#include <assert.h>
11843/* Override any gcc2 internal prototype to avoid an error. */
11844/* We use char because int might match the return type of a gcc2
11845 builtin and then its argument prototype would still apply. */
11846char $ac_func();
11847
11848int main() {
11849
11850/* The GNU C library defines this for functions which it implements
11851 to always fail with ENOSYS. Some functions are actually named
11852 something starting with __ and the normal name is an alias. */
11853#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11854choke me
11855#else
e8482f24 11856$ac_func();
70846f0a
VZ
11857#endif
11858
11859; return 0; }
11860EOF
6f72b082 11861if { (eval echo configure:11862: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
70846f0a
VZ
11862 rm -rf conftest*
11863 eval "ac_cv_func_$ac_func=yes"
11864else
11865 echo "configure: failed program was:" >&5
11866 cat conftest.$ac_ext >&5
11867 rm -rf conftest*
11868 eval "ac_cv_func_$ac_func=no"
11869fi
11870rm -f conftest*
11871fi
11872
11873if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11874 echo "$ac_t""yes" 1>&6
11875 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11876 cat >> confdefs.h <<EOF
11877#define $ac_tr_func 1
11878EOF
11879
11880else
11881 echo "$ac_t""no" 1>&6
11882fi
11883done
11884
11885
10f2d63a
VZ
11886
11887 for ac_hdr in sched.h
11888do
11889ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11890echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6f72b082 11891echo "configure:11892: checking for $ac_hdr" >&5
10f2d63a
VZ
11892if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11893 echo $ac_n "(cached) $ac_c" 1>&6
11894else
11895 cat > conftest.$ac_ext <<EOF
6f72b082 11896#line 11897 "configure"
10f2d63a
VZ
11897#include "confdefs.h"
11898#include <$ac_hdr>
11899EOF
11900ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6f72b082 11901{ (eval echo configure:11902: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
11902ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11903if test -z "$ac_err"; then
11904 rm -rf conftest*
11905 eval "ac_cv_header_$ac_safe=yes"
11906else
11907 echo "$ac_err" >&5
11908 echo "configure: failed program was:" >&5
11909 cat conftest.$ac_ext >&5
11910 rm -rf conftest*
11911 eval "ac_cv_header_$ac_safe=no"
11912fi
11913rm -f conftest*
11914fi
11915if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11916 echo "$ac_t""yes" 1>&6
11917 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11918 cat >> confdefs.h <<EOF
11919#define $ac_tr_hdr 1
11920EOF
11921
11922else
11923 echo "$ac_t""no" 1>&6
11924fi
11925done
11926
11927
11928 echo $ac_n "checking for sched_yield in -l$THREADS_LINK""... $ac_c" 1>&6
6f72b082 11929echo "configure:11930: checking for sched_yield in -l$THREADS_LINK" >&5
10f2d63a
VZ
11930ac_lib_var=`echo $THREADS_LINK'_'sched_yield | sed 'y%./+-%__p_%'`
11931if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11932 echo $ac_n "(cached) $ac_c" 1>&6
11933else
11934 ac_save_LIBS="$LIBS"
11935LIBS="-l$THREADS_LINK $LIBS"
11936cat > conftest.$ac_ext <<EOF
6f72b082 11937#line 11938 "configure"
10f2d63a
VZ
11938#include "confdefs.h"
11939/* Override any gcc2 internal prototype to avoid an error. */
11940/* We use char because int might match the return type of a gcc2
11941 builtin and then its argument prototype would still apply. */
11942char sched_yield();
11943
11944int main() {
11945sched_yield()
11946; return 0; }
11947EOF
6f72b082 11948if { (eval echo configure:11949: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
11949 rm -rf conftest*
11950 eval "ac_cv_lib_$ac_lib_var=yes"
11951else
11952 echo "configure: failed program was:" >&5
11953 cat conftest.$ac_ext >&5
11954 rm -rf conftest*
11955 eval "ac_cv_lib_$ac_lib_var=no"
11956fi
11957rm -f conftest*
11958LIBS="$ac_save_LIBS"
11959
11960fi
11961if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11962 echo "$ac_t""yes" 1>&6
11963 cat >> confdefs.h <<\EOF
11964#define HAVE_SCHED_YIELD 1
11965EOF
11966
11967else
11968 echo "$ac_t""no" 1>&6
11969echo $ac_n "checking for sched_yield in -l"posix4"""... $ac_c" 1>&6
6f72b082 11970echo "configure:11971: checking for sched_yield in -l"posix4"" >&5
10f2d63a
VZ
11971ac_lib_var=`echo "posix4"'_'sched_yield | sed 'y%./+-%__p_%'`
11972if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11973 echo $ac_n "(cached) $ac_c" 1>&6
11974else
11975 ac_save_LIBS="$LIBS"
11976LIBS="-l"posix4" $LIBS"
11977cat > conftest.$ac_ext <<EOF
6f72b082 11978#line 11979 "configure"
10f2d63a
VZ
11979#include "confdefs.h"
11980/* Override any gcc2 internal prototype to avoid an error. */
11981/* We use char because int might match the return type of a gcc2
11982 builtin and then its argument prototype would still apply. */
11983char sched_yield();
11984
11985int main() {
11986sched_yield()
11987; return 0; }
11988EOF
6f72b082 11989if { (eval echo configure:11990: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
11990 rm -rf conftest*
11991 eval "ac_cv_lib_$ac_lib_var=yes"
11992else
11993 echo "configure: failed program was:" >&5
11994 cat conftest.$ac_ext >&5
11995 rm -rf conftest*
11996 eval "ac_cv_lib_$ac_lib_var=no"
11997fi
11998rm -f conftest*
11999LIBS="$ac_save_LIBS"
12000
12001fi
12002if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12003 echo "$ac_t""yes" 1>&6
12004 cat >> confdefs.h <<\EOF
12005#define HAVE_SCHED_YIELD 1
12006EOF
12007 POSIX4_LINK="-lposix4"
12008else
12009 echo "$ac_t""no" 1>&6
12010echo "configure: warning: wxThread::Yield will not work properly" 1>&2
12011
12012fi
12013
12014
12015fi
12016
12017
f6bcfd97
BP
12018 HAVE_PRIOR_FUNCS=0
12019 echo $ac_n "checking for pthread_attr_getschedpolicy in -l$THREADS_LINK""... $ac_c" 1>&6
6f72b082 12020echo "configure:12021: checking for pthread_attr_getschedpolicy in -l$THREADS_LINK" >&5
10f2d63a
VZ
12021ac_lib_var=`echo $THREADS_LINK'_'pthread_attr_getschedpolicy | sed 'y%./+-%__p_%'`
12022if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12023 echo $ac_n "(cached) $ac_c" 1>&6
12024else
12025 ac_save_LIBS="$LIBS"
12026LIBS="-l$THREADS_LINK $LIBS"
12027cat > conftest.$ac_ext <<EOF
6f72b082 12028#line 12029 "configure"
10f2d63a
VZ
12029#include "confdefs.h"
12030/* Override any gcc2 internal prototype to avoid an error. */
12031/* We use char because int might match the return type of a gcc2
12032 builtin and then its argument prototype would still apply. */
12033char pthread_attr_getschedpolicy();
12034
12035int main() {
12036pthread_attr_getschedpolicy()
12037; return 0; }
12038EOF
6f72b082 12039if { (eval echo configure:12040: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
12040 rm -rf conftest*
12041 eval "ac_cv_lib_$ac_lib_var=yes"
12042else
12043 echo "configure: failed program was:" >&5
12044 cat conftest.$ac_ext >&5
12045 rm -rf conftest*
12046 eval "ac_cv_lib_$ac_lib_var=no"
12047fi
12048rm -f conftest*
12049LIBS="$ac_save_LIBS"
12050
12051fi
12052if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12053 echo "$ac_t""yes" 1>&6
f6bcfd97 12054 echo $ac_n "checking for pthread_attr_setschedparam in -l$THREADS_LINK""... $ac_c" 1>&6
6f72b082 12055echo "configure:12056: checking for pthread_attr_setschedparam in -l$THREADS_LINK" >&5
f6bcfd97
BP
12056ac_lib_var=`echo $THREADS_LINK'_'pthread_attr_setschedparam | sed 'y%./+-%__p_%'`
12057if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12058 echo $ac_n "(cached) $ac_c" 1>&6
12059else
12060 ac_save_LIBS="$LIBS"
12061LIBS="-l$THREADS_LINK $LIBS"
12062cat > conftest.$ac_ext <<EOF
6f72b082 12063#line 12064 "configure"
f6bcfd97
BP
12064#include "confdefs.h"
12065/* Override any gcc2 internal prototype to avoid an error. */
12066/* We use char because int might match the return type of a gcc2
12067 builtin and then its argument prototype would still apply. */
12068char pthread_attr_setschedparam();
12069
12070int main() {
12071pthread_attr_setschedparam()
12072; return 0; }
10f2d63a 12073EOF
6f72b082 12074if { (eval echo configure:12075: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
f6bcfd97
BP
12075 rm -rf conftest*
12076 eval "ac_cv_lib_$ac_lib_var=yes"
12077else
12078 echo "configure: failed program was:" >&5
12079 cat conftest.$ac_ext >&5
12080 rm -rf conftest*
12081 eval "ac_cv_lib_$ac_lib_var=no"
12082fi
12083rm -f conftest*
12084LIBS="$ac_save_LIBS"
10f2d63a 12085
f6bcfd97
BP
12086fi
12087if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12088 echo "$ac_t""yes" 1>&6
12089 echo $ac_n "checking for sched_get_priority_max in -l$THREADS_LINK""... $ac_c" 1>&6
6f72b082 12090echo "configure:12091: checking for sched_get_priority_max in -l$THREADS_LINK" >&5
f6bcfd97
BP
12091ac_lib_var=`echo $THREADS_LINK'_'sched_get_priority_max | sed 'y%./+-%__p_%'`
12092if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12093 echo $ac_n "(cached) $ac_c" 1>&6
12094else
12095 ac_save_LIBS="$LIBS"
12096LIBS="-l$THREADS_LINK $LIBS"
12097cat > conftest.$ac_ext <<EOF
6f72b082 12098#line 12099 "configure"
f6bcfd97
BP
12099#include "confdefs.h"
12100/* Override any gcc2 internal prototype to avoid an error. */
12101/* We use char because int might match the return type of a gcc2
12102 builtin and then its argument prototype would still apply. */
12103char sched_get_priority_max();
12104
12105int main() {
12106sched_get_priority_max()
12107; return 0; }
12108EOF
6f72b082 12109if { (eval echo configure:12110: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
f6bcfd97
BP
12110 rm -rf conftest*
12111 eval "ac_cv_lib_$ac_lib_var=yes"
12112else
12113 echo "configure: failed program was:" >&5
12114 cat conftest.$ac_ext >&5
12115 rm -rf conftest*
12116 eval "ac_cv_lib_$ac_lib_var=no"
12117fi
12118rm -f conftest*
12119LIBS="$ac_save_LIBS"
12120
12121fi
12122if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12123 echo "$ac_t""yes" 1>&6
12124 HAVE_PRIOR_FUNCS=1
10f2d63a
VZ
12125else
12126 echo "$ac_t""no" 1>&6
f6bcfd97 12127echo $ac_n "checking for sched_get_priority_max in -l"posix4"""... $ac_c" 1>&6
6f72b082 12128echo "configure:12129: checking for sched_get_priority_max in -l"posix4"" >&5
f6bcfd97 12129ac_lib_var=`echo "posix4"'_'sched_get_priority_max | sed 'y%./+-%__p_%'`
10f2d63a
VZ
12130if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12131 echo $ac_n "(cached) $ac_c" 1>&6
12132else
12133 ac_save_LIBS="$LIBS"
12134LIBS="-l"posix4" $LIBS"
12135cat > conftest.$ac_ext <<EOF
6f72b082 12136#line 12137 "configure"
10f2d63a
VZ
12137#include "confdefs.h"
12138/* Override any gcc2 internal prototype to avoid an error. */
12139/* We use char because int might match the return type of a gcc2
12140 builtin and then its argument prototype would still apply. */
f6bcfd97 12141char sched_get_priority_max();
10f2d63a
VZ
12142
12143int main() {
f6bcfd97 12144sched_get_priority_max()
10f2d63a
VZ
12145; return 0; }
12146EOF
6f72b082 12147if { (eval echo configure:12148: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
12148 rm -rf conftest*
12149 eval "ac_cv_lib_$ac_lib_var=yes"
12150else
12151 echo "configure: failed program was:" >&5
12152 cat conftest.$ac_ext >&5
12153 rm -rf conftest*
12154 eval "ac_cv_lib_$ac_lib_var=no"
12155fi
12156rm -f conftest*
12157LIBS="$ac_save_LIBS"
12158
12159fi
12160if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12161 echo "$ac_t""yes" 1>&6
f6bcfd97
BP
12162
12163 HAVE_PRIOR_FUNCS=1
12164 POSIX4_LINK="-lposix4"
12165
12166else
12167 echo "$ac_t""no" 1>&6
12168fi
12169
12170
12171fi
12172
12173
10f2d63a
VZ
12174else
12175 echo "$ac_t""no" 1>&6
10f2d63a
VZ
12176fi
12177
12178
f6bcfd97
BP
12179else
12180 echo "$ac_t""no" 1>&6
10f2d63a
VZ
12181fi
12182
12183
f6bcfd97
BP
12184 if test "$HAVE_PRIOR_FUNCS" = 1; then
12185 cat >> confdefs.h <<\EOF
12186#define HAVE_THREAD_PRIORITY_FUNCTIONS 1
12187EOF
12188
12189 else
12190 echo "configure: warning: Setting thread priority will not work" 1>&2
12191 fi
12192
10f2d63a 12193 echo $ac_n "checking for pthread_cancel in -l$THREADS_LINK""... $ac_c" 1>&6
6f72b082 12194echo "configure:12195: checking for pthread_cancel in -l$THREADS_LINK" >&5
10f2d63a
VZ
12195ac_lib_var=`echo $THREADS_LINK'_'pthread_cancel | sed 'y%./+-%__p_%'`
12196if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12197 echo $ac_n "(cached) $ac_c" 1>&6
12198else
12199 ac_save_LIBS="$LIBS"
12200LIBS="-l$THREADS_LINK $LIBS"
12201cat > conftest.$ac_ext <<EOF
6f72b082 12202#line 12203 "configure"
10f2d63a
VZ
12203#include "confdefs.h"
12204/* Override any gcc2 internal prototype to avoid an error. */
12205/* We use char because int might match the return type of a gcc2
12206 builtin and then its argument prototype would still apply. */
12207char pthread_cancel();
12208
12209int main() {
12210pthread_cancel()
12211; return 0; }
12212EOF
6f72b082 12213if { (eval echo configure:12214: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
12214 rm -rf conftest*
12215 eval "ac_cv_lib_$ac_lib_var=yes"
12216else
12217 echo "configure: failed program was:" >&5
12218 cat conftest.$ac_ext >&5
12219 rm -rf conftest*
12220 eval "ac_cv_lib_$ac_lib_var=no"
12221fi
12222rm -f conftest*
12223LIBS="$ac_save_LIBS"
12224
12225fi
12226if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12227 echo "$ac_t""yes" 1>&6
12228 cat >> confdefs.h <<\EOF
12229#define HAVE_PTHREAD_CANCEL 1
12230EOF
12231
12232else
12233 echo "$ac_t""no" 1>&6
12234echo "configure: warning: wxThread::Kill() will not work properly" 1>&2
12235fi
12236
12237
12238 echo $ac_n "checking for pthread_cleanup_push/pop""... $ac_c" 1>&6
6f72b082 12239echo "configure:12240: checking for pthread_cleanup_push/pop" >&5
10f2d63a
VZ
12240if eval "test \"`echo '$''{'wx_cv_func_pthread_cleanup_push'+set}'`\" = set"; then
12241 echo $ac_n "(cached) $ac_c" 1>&6
12242else
12243
12244 cat > conftest.$ac_ext <<EOF
6f72b082 12245#line 12246 "configure"
10f2d63a
VZ
12246#include "confdefs.h"
12247#include <pthread.h>
12248int main() {
12249
12250 pthread_cleanup_push(NULL, NULL);
12251 pthread_cleanup_pop(0);
12252
12253; return 0; }
12254EOF
6f72b082 12255if { (eval echo configure:12256: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10f2d63a
VZ
12256 rm -rf conftest*
12257
12258 wx_cv_func_pthread_cleanup_push=yes
12259 cat >> confdefs.h <<\EOF
12260#define HAVE_THREAD_CLEANUP_FUNCTIONS 1
12261EOF
12262
12263
12264else
12265 echo "configure: failed program was:" >&5
12266 cat conftest.$ac_ext >&5
12267 rm -rf conftest*
12268
12269 wx_cv_func_pthread_cleanup_push=no
12270
12271fi
12272rm -f conftest*
12273
12274fi
12275
12276echo "$ac_t""$wx_cv_func_pthread_cleanup_push" 1>&6
12277
12278 THREADS_LINK="-l$THREADS_LINK"
12279fi
12280
12281fi
12282
12283if test "$wxUSE_THREADS" = "yes"; then
12284 cat >> confdefs.h <<\EOF
12285#define wxUSE_THREADS 1
12286EOF
12287
12288
12289 CFLAGS="${CFLAGS} -D_REENTRANT"
12290 CXXFLAGS="${CXXFLAGS} -D_REENTRANT"
12291
12292 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
12293else
12294 if test "$ac_cv_func_strtok_r" = "yes"; then
ab9b9eab 12295 echo $ac_n "checking if -D_REENTRANT is needed""... $ac_c" 1>&6
6f72b082 12296echo "configure:12297: checking if -D_REENTRANT is needed" >&5
ab9b9eab
VZ
12297 if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
12298 CFLAGS="${CFLAGS} -D_REENTRANT"
12299 CXXFLAGS="${CXXFLAGS} -D_REENTRANT"
12300 echo "$ac_t""yes" 1>&6
12301 else
12302 echo "$ac_t""no" 1>&6
10f2d63a
VZ
12303 fi
12304 fi
12305fi
12306
6f72b082 12307if test "$WXGTK20" = 1 ; then
13111b2a 12308 cat >> confdefs.h <<EOF
6f72b082 12309#define __WXGTK20__ $WXGTK20
13111b2a
VZ
12310EOF
12311
12312 WXGTK12=1
12313fi
12314
10f2d63a
VZ
12315if test "$WXGTK12" = 1 ; then
12316 cat >> confdefs.h <<EOF
12317#define __WXGTK12__ $WXGTK12
12318EOF
12319
12320fi
12321
f6bcfd97
BP
12322if test "$WXGTK127" = 1 ; then
12323 cat >> confdefs.h <<EOF
12324#define __WXGTK127__ $WXGTK127
12325EOF
12326
12327fi
12328
10f2d63a
VZ
12329if test "$WXWINE" = 1 ; then
12330 TOOLKIT_DEF="${TOOLKIT_DEF} -D__WXWINE__"
12331fi
12332
12333if test "$wxUSE_CYGWIN" = 1 ; then
12334 TOOLKIT_DEF="${TOOLKIT_DEF} -D__WIN95__"
12335fi
12336
12337WXDEBUG=
12338
12339if test "$wxUSE_DEBUG_INFO" = "yes" ; then
12340 WXDEBUG="-g"
12341 wxUSE_OPTIMISE=no
12342fi
12343
12344if test "$wxUSE_DEBUG_GDB" = "yes" ; then
12345 wxUSE_DEBUG_INFO=yes
12346 WXDEBUG="-ggdb"
12347fi
12348
12349if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
12350 cat >> confdefs.h <<\EOF
12351#define WXDEBUG 1
12352EOF
12353
12354 WXDEBUG_DEFINE="-D__WXDEBUG__"
12355else
12356 if test "$wxUSE_GTK" = 1 ; then
12357 WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS"
12358 fi
12359fi
12360
12361if test "$wxUSE_MEM_TRACING" = "yes" ; then
12362 cat >> confdefs.h <<\EOF
12363#define wxUSE_MEMORY_TRACING 1
12364EOF
12365
12366 cat >> confdefs.h <<\EOF
12367#define wxUSE_GLOBAL_MEMORY_OPERATORS 1
47c13eb7
VS
12368EOF
12369
12370 cat >> confdefs.h <<\EOF
12371#define wxUSE_DEBUG_NEW_ALWAYS 1
10f2d63a
VZ
12372EOF
12373
12374 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
12375fi
12376
12377if test "$wxUSE_DMALLOC" = "yes" ; then
12378 DMALLOC_LINK="-ldmalloc"
12379fi
12380
12381PROFILE=
12382if test "$wxUSE_PROFILE" = "yes" ; then
12383 PROFILE="-pg"
12384fi
12385
12386DEP_INFO_FLAGS=
caa2c79b 12387CODE_GEN_FLAGS=
10f2d63a
VZ
12388if test "$GCC" = yes ; then
12389 if test "$wxUSE_NO_RTTI" = "yes" ; then
caa2c79b 12390 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fno-rtti"
10f2d63a
VZ
12391 fi
12392 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
caa2c79b 12393 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fno-exceptions"
10f2d63a
VZ
12394 fi
12395 if test "$wxUSE_PERMISSIVE" = "yes" ; then
caa2c79b 12396 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive"
10f2d63a
VZ
12397 fi
12398 if test "$wxUSE_NO_DEPS" = "no" ; then
12399 DEP_INFO_FLAGS="-MMD"
12400 fi
12401fi
12402
12403
12404CXXFLAGS=`echo "${CXXFLAGS}" | sed "s/\-O.//g" `
12405CFLAGS=`echo "${CFLAGS}" | sed "s/\-O.//g" `
12406if test "$wxUSE_OPTIMISE" = "no" ; then
12407 OPTIMISE=
12408else
12409 if test "$GCC" = yes ; then
12410 OPTIMISE="-O2"
12411 case "${host}" in
12412 i586-*-*|i686-*-* )
12413 OPTIMISE="${OPTIMISE} "
12414 ;;
12415 esac
12416 else
12417 OPTIMISE="-O"
12418 fi
12419fi
12420
12421
12422ZLIB_INCLUDE=
422107f9 12423if test "$wxUSE_ZLIB" = "yes" -o "$wxUSE_ZLIB" = "sys" ; then
10f2d63a
VZ
12424 cat >> confdefs.h <<\EOF
12425#define wxUSE_ZLIB 1
12426EOF
12427
422107f9
VZ
12428 if test "$wxUSE_ZLIB" = "yes" ; then
12429 ZLIB_INCLUDE="-I\${top_srcdir}/src/zlib"
12430 else
12431 ZLIB_LINK=
12432 ac_safe=`echo "zlib.h" | sed 'y%./+-%__p_%'`
12433echo $ac_n "checking for zlib.h""... $ac_c" 1>&6
6f72b082 12434echo "configure:12435: checking for zlib.h" >&5
422107f9
VZ
12435if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12436 echo $ac_n "(cached) $ac_c" 1>&6
12437else
12438 cat > conftest.$ac_ext <<EOF
6f72b082 12439#line 12440 "configure"
422107f9
VZ
12440#include "confdefs.h"
12441#include <zlib.h>
12442EOF
12443ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6f72b082 12444{ (eval echo configure:12445: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
422107f9
VZ
12445ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12446if test -z "$ac_err"; then
12447 rm -rf conftest*
12448 eval "ac_cv_header_$ac_safe=yes"
12449else
12450 echo "$ac_err" >&5
12451 echo "configure: failed program was:" >&5
12452 cat conftest.$ac_ext >&5
12453 rm -rf conftest*
12454 eval "ac_cv_header_$ac_safe=no"
12455fi
12456rm -f conftest*
12457fi
12458if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12459 echo "$ac_t""yes" 1>&6
12460 echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6
6f72b082 12461echo "configure:12462: checking for deflate in -lz" >&5
422107f9
VZ
12462ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'`
12463if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12464 echo $ac_n "(cached) $ac_c" 1>&6
12465else
12466 ac_save_LIBS="$LIBS"
12467LIBS="-lz $LIBS"
12468cat > conftest.$ac_ext <<EOF
6f72b082 12469#line 12470 "configure"
422107f9
VZ
12470#include "confdefs.h"
12471/* Override any gcc2 internal prototype to avoid an error. */
12472/* We use char because int might match the return type of a gcc2
12473 builtin and then its argument prototype would still apply. */
12474char deflate();
12475
12476int main() {
12477deflate()
12478; return 0; }
12479EOF
6f72b082 12480if { (eval echo configure:12481: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
422107f9
VZ
12481 rm -rf conftest*
12482 eval "ac_cv_lib_$ac_lib_var=yes"
12483else
12484 echo "configure: failed program was:" >&5
12485 cat conftest.$ac_ext >&5
12486 rm -rf conftest*
12487 eval "ac_cv_lib_$ac_lib_var=no"
12488fi
12489rm -f conftest*
12490LIBS="$ac_save_LIBS"
12491
12492fi
12493if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12494 echo "$ac_t""yes" 1>&6
12495 ZLIB_LINK="-lz"
12496else
12497 echo "$ac_t""no" 1>&6
12498fi
12499
12500else
12501 echo "$ac_t""no" 1>&6
12502fi
12503
12504 if test "x$ZLIB_LINK" = "x" ; then
12505 { echo "configure: error: system zlib compression library not found! Use --with-zlib=yes to use built-in zlib" 1>&2; exit 1; }
12506 fi
12507 fi
10f2d63a
VZ
12508fi
12509
12510PNG_INCLUDE=
422107f9 12511if test "$wxUSE_LIBPNG" = "yes" -o "$wxUSE_LIBPNG" = "sys" ; then
10f2d63a
VZ
12512 cat >> confdefs.h <<\EOF
12513#define wxUSE_LIBPNG 1
12514EOF
12515
41fd4136 12516 if test "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
422107f9
VZ
12517 echo "configure: warning: --with-libpng=sys doesn't work without --with-zlib=sys, will compile the built-in libpng instead" 1>&2
12518 wxUSE_LIBPNG=yes
12519 fi
12520
12521 if test "$wxUSE_LIBPNG" = "yes" ; then
12522 PNG_INCLUDE="-I\${top_srcdir}/src/png"
12523 else
12524 PNG_LINK=
12525 ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'`
12526echo $ac_n "checking for png.h""... $ac_c" 1>&6
6f72b082 12527echo "configure:12528: checking for png.h" >&5
422107f9
VZ
12528if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12529 echo $ac_n "(cached) $ac_c" 1>&6
12530else
12531 cat > conftest.$ac_ext <<EOF
6f72b082 12532#line 12533 "configure"
422107f9
VZ
12533#include "confdefs.h"
12534#include <png.h>
12535EOF
12536ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6f72b082 12537{ (eval echo configure:12538: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
422107f9
VZ
12538ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12539if test -z "$ac_err"; then
12540 rm -rf conftest*
12541 eval "ac_cv_header_$ac_safe=yes"
12542else
12543 echo "$ac_err" >&5
12544 echo "configure: failed program was:" >&5
12545 cat conftest.$ac_ext >&5
12546 rm -rf conftest*
12547 eval "ac_cv_header_$ac_safe=no"
12548fi
12549rm -f conftest*
12550fi
12551if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12552 echo "$ac_t""yes" 1>&6
12553 echo $ac_n "checking for png_check_sig in -lpng""... $ac_c" 1>&6
6f72b082 12554echo "configure:12555: checking for png_check_sig in -lpng" >&5
422107f9
VZ
12555ac_lib_var=`echo png'_'png_check_sig | sed 'y%./+-%__p_%'`
12556if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12557 echo $ac_n "(cached) $ac_c" 1>&6
12558else
12559 ac_save_LIBS="$LIBS"
12560LIBS="-lpng -lz -lm $LIBS"
12561cat > conftest.$ac_ext <<EOF
6f72b082 12562#line 12563 "configure"
422107f9
VZ
12563#include "confdefs.h"
12564/* Override any gcc2 internal prototype to avoid an error. */
12565/* We use char because int might match the return type of a gcc2
12566 builtin and then its argument prototype would still apply. */
12567char png_check_sig();
12568
12569int main() {
12570png_check_sig()
12571; return 0; }
12572EOF
6f72b082 12573if { (eval echo configure:12574: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
422107f9
VZ
12574 rm -rf conftest*
12575 eval "ac_cv_lib_$ac_lib_var=yes"
12576else
12577 echo "configure: failed program was:" >&5
12578 cat conftest.$ac_ext >&5
12579 rm -rf conftest*
12580 eval "ac_cv_lib_$ac_lib_var=no"
12581fi
12582rm -f conftest*
12583LIBS="$ac_save_LIBS"
12584
12585fi
12586if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12587 echo "$ac_t""yes" 1>&6
12588 PNG_LINK="-lpng"
12589else
12590 echo "$ac_t""no" 1>&6
12591fi
12592
12593
12594else
12595 echo "$ac_t""no" 1>&6
12596fi
12597
12598 if test "x$PNG_LINK" = "x" ; then
0dcf9893 12599 { echo "configure: error: system png library not found! Use --with-libpng=yes to use the built-in libpng" 1>&2; exit 1; }
422107f9
VZ
12600 fi
12601 fi
12602
10f2d63a
VZ
12603 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
12604fi
12605
12606JPEG_INCLUDE=
422107f9 12607if test "$wxUSE_LIBJPEG" = "yes" -o "$wxUSE_LIBJPEG" = "sys" ; then
10f2d63a
VZ
12608 cat >> confdefs.h <<\EOF
12609#define wxUSE_LIBJPEG 1
12610EOF
12611
422107f9
VZ
12612 if test "$wxUSE_LIBJPEG" = "yes" ; then
12613 JPEG_INCLUDE="-I\${top_srcdir}/src/jpeg"
12614 else
12615 JPEG_LINK=
12616 ac_safe=`echo "jpeglib.h" | sed 'y%./+-%__p_%'`
12617echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6
6f72b082 12618echo "configure:12619: checking for jpeglib.h" >&5
422107f9
VZ
12619if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12620 echo $ac_n "(cached) $ac_c" 1>&6
12621else
12622 cat > conftest.$ac_ext <<EOF
6f72b082 12623#line 12624 "configure"
422107f9
VZ
12624#include "confdefs.h"
12625#include <jpeglib.h>
12626EOF
12627ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6f72b082 12628{ (eval echo configure:12629: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
422107f9
VZ
12629ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12630if test -z "$ac_err"; then
12631 rm -rf conftest*
12632 eval "ac_cv_header_$ac_safe=yes"
12633else
12634 echo "$ac_err" >&5
12635 echo "configure: failed program was:" >&5
12636 cat conftest.$ac_ext >&5
12637 rm -rf conftest*
12638 eval "ac_cv_header_$ac_safe=no"
12639fi
12640rm -f conftest*
12641fi
12642if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12643 echo "$ac_t""yes" 1>&6
12644 echo $ac_n "checking for jpeg_read_header in -ljpeg""... $ac_c" 1>&6
6f72b082 12645echo "configure:12646: checking for jpeg_read_header in -ljpeg" >&5
422107f9
VZ
12646ac_lib_var=`echo jpeg'_'jpeg_read_header | sed 'y%./+-%__p_%'`
12647if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12648 echo $ac_n "(cached) $ac_c" 1>&6
12649else
12650 ac_save_LIBS="$LIBS"
12651LIBS="-ljpeg $LIBS"
12652cat > conftest.$ac_ext <<EOF
6f72b082 12653#line 12654 "configure"
422107f9
VZ
12654#include "confdefs.h"
12655/* Override any gcc2 internal prototype to avoid an error. */
12656/* We use char because int might match the return type of a gcc2
12657 builtin and then its argument prototype would still apply. */
12658char jpeg_read_header();
12659
12660int main() {
12661jpeg_read_header()
12662; return 0; }
12663EOF
6f72b082 12664if { (eval echo configure:12665: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
422107f9
VZ
12665 rm -rf conftest*
12666 eval "ac_cv_lib_$ac_lib_var=yes"
12667else
12668 echo "configure: failed program was:" >&5
12669 cat conftest.$ac_ext >&5
12670 rm -rf conftest*
12671 eval "ac_cv_lib_$ac_lib_var=no"
12672fi
12673rm -f conftest*
12674LIBS="$ac_save_LIBS"
12675
12676fi
12677if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12678 echo "$ac_t""yes" 1>&6
12679 JPEG_LINK="-ljpeg"
12680else
12681 echo "$ac_t""no" 1>&6
12682fi
12683
12684else
12685 echo "$ac_t""no" 1>&6
12686fi
12687
12688 if test "x$JPEG_LINK" = "x" ; then
0dcf9893 12689 { echo "configure: error: system jpeg library not found! Use --with-libjpeg=yes to use the built-in one" 1>&2; exit 1; }
422107f9
VZ
12690 fi
12691 fi
10f2d63a
VZ
12692fi
12693
c7a2bf27 12694TIFF_INCLUDE=
0dcf9893 12695if test "$wxUSE_LIBTIFF" = "yes" -o "$wxUSE_LIBTIFF" = "sys" ; then
c7a2bf27
RR
12696 cat >> confdefs.h <<\EOF
12697#define wxUSE_LIBTIFF 1
12698EOF
12699
0dcf9893
VZ
12700 if test "$wxUSE_LIBTIFF" = "yes" ; then
12701 TIFF_INCLUDE="-I\${top_srcdir}/src/tiff"
12702 else
12703 TIFF_LINK=
12704 ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'`
12705echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6
6f72b082 12706echo "configure:12707: checking for tiffio.h" >&5
0dcf9893
VZ
12707if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12708 echo $ac_n "(cached) $ac_c" 1>&6
12709else
12710 cat > conftest.$ac_ext <<EOF
6f72b082 12711#line 12712 "configure"
0dcf9893
VZ
12712#include "confdefs.h"
12713#include <tiffio.h>
12714EOF
12715ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6f72b082 12716{ (eval echo configure:12717: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
0dcf9893
VZ
12717ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12718if test -z "$ac_err"; then
12719 rm -rf conftest*
12720 eval "ac_cv_header_$ac_safe=yes"
12721else
12722 echo "$ac_err" >&5
12723 echo "configure: failed program was:" >&5
12724 cat conftest.$ac_ext >&5
12725 rm -rf conftest*
12726 eval "ac_cv_header_$ac_safe=no"
12727fi
12728rm -f conftest*
12729fi
12730if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12731 echo "$ac_t""yes" 1>&6
12732 echo $ac_n "checking for TIFFError in -ltiff""... $ac_c" 1>&6
6f72b082 12733echo "configure:12734: checking for TIFFError in -ltiff" >&5
0dcf9893
VZ
12734ac_lib_var=`echo tiff'_'TIFFError | sed 'y%./+-%__p_%'`
12735if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12736 echo $ac_n "(cached) $ac_c" 1>&6
12737else
12738 ac_save_LIBS="$LIBS"
12739LIBS="-ltiff -lm $LIBS"
12740cat > conftest.$ac_ext <<EOF
6f72b082 12741#line 12742 "configure"
0dcf9893
VZ
12742#include "confdefs.h"
12743/* Override any gcc2 internal prototype to avoid an error. */
12744/* We use char because int might match the return type of a gcc2
12745 builtin and then its argument prototype would still apply. */
12746char TIFFError();
12747
12748int main() {
12749TIFFError()
12750; return 0; }
12751EOF
6f72b082 12752if { (eval echo configure:12753: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
0dcf9893
VZ
12753 rm -rf conftest*
12754 eval "ac_cv_lib_$ac_lib_var=yes"
12755else
12756 echo "configure: failed program was:" >&5
12757 cat conftest.$ac_ext >&5
12758 rm -rf conftest*
12759 eval "ac_cv_lib_$ac_lib_var=no"
12760fi
12761rm -f conftest*
12762LIBS="$ac_save_LIBS"
12763
12764fi
12765if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12766 echo "$ac_t""yes" 1>&6
12767 TIFF_LINK="-ltiff"
12768else
12769 echo "$ac_t""no" 1>&6
12770fi
12771
12772else
12773 echo "$ac_t""no" 1>&6
12774fi
12775
12776 if test "x$TIFF_LINK" = "x" ; then
12777 { echo "configure: error: system tiff library not found! Use --with-libtiff=yes to use the built-in one" 1>&2; exit 1; }
12778 fi
12779 fi
c7a2bf27
RR
12780fi
12781
10f2d63a
VZ
12782if test "$wxUSE_OPENGL" = "yes"; then
12783 ac_safe=`echo "GL/gl.h" | sed 'y%./+-%__p_%'`
12784echo $ac_n "checking for GL/gl.h""... $ac_c" 1>&6
6f72b082 12785echo "configure:12786: checking for GL/gl.h" >&5
10f2d63a
VZ
12786if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12787 echo $ac_n "(cached) $ac_c" 1>&6
12788else
12789 cat > conftest.$ac_ext <<EOF
6f72b082 12790#line 12791 "configure"
10f2d63a
VZ
12791#include "confdefs.h"
12792#include <GL/gl.h>
12793EOF
12794ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6f72b082 12795{ (eval echo configure:12796: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
12796ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12797if test -z "$ac_err"; then
12798 rm -rf conftest*
12799 eval "ac_cv_header_$ac_safe=yes"
12800else
12801 echo "$ac_err" >&5
12802 echo "configure: failed program was:" >&5
12803 cat conftest.$ac_ext >&5
12804 rm -rf conftest*
12805 eval "ac_cv_header_$ac_safe=no"
12806fi
12807rm -f conftest*
12808fi
12809if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12810 echo "$ac_t""yes" 1>&6
12811
bdad4e7e
RR
12812 cat >> confdefs.h <<\EOF
12813#define wxUSE_OPENGL 1
12814EOF
12815
12816 cat >> confdefs.h <<\EOF
12817#define wxUSE_GLCANVAS 1
12818EOF
12819
12820 echo $ac_n "checking for glFlush in -lGL""... $ac_c" 1>&6
6f72b082 12821echo "configure:12822: checking for glFlush in -lGL" >&5
bdad4e7e 12822ac_lib_var=`echo GL'_'glFlush | sed 'y%./+-%__p_%'`
10f2d63a
VZ
12823if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12824 echo $ac_n "(cached) $ac_c" 1>&6
12825else
12826 ac_save_LIBS="$LIBS"
bdad4e7e 12827LIBS="-lGL $LIBS"
10f2d63a 12828cat > conftest.$ac_ext <<EOF
6f72b082 12829#line 12830 "configure"
10f2d63a
VZ
12830#include "confdefs.h"
12831/* Override any gcc2 internal prototype to avoid an error. */
12832/* We use char because int might match the return type of a gcc2
12833 builtin and then its argument prototype would still apply. */
bdad4e7e 12834char glFlush();
10f2d63a
VZ
12835
12836int main() {
bdad4e7e 12837glFlush()
10f2d63a
VZ
12838; return 0; }
12839EOF
6f72b082 12840if { (eval echo configure:12841: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
12841 rm -rf conftest*
12842 eval "ac_cv_lib_$ac_lib_var=yes"
12843else
12844 echo "configure: failed program was:" >&5
12845 cat conftest.$ac_ext >&5
12846 rm -rf conftest*
12847 eval "ac_cv_lib_$ac_lib_var=no"
12848fi
12849rm -f conftest*
12850LIBS="$ac_save_LIBS"
12851
12852fi
12853if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12854 echo "$ac_t""yes" 1>&6
12855
f6bcfd97 12856 OPENGL_LINK="-lGL -lGLU"
10f2d63a
VZ
12857
12858else
12859 echo "$ac_t""no" 1>&6
12860
bdad4e7e 12861 echo $ac_n "checking for glFlush in -lMesaGL""... $ac_c" 1>&6
6f72b082 12862echo "configure:12863: checking for glFlush in -lMesaGL" >&5
bdad4e7e 12863ac_lib_var=`echo MesaGL'_'glFlush | sed 'y%./+-%__p_%'`
10f2d63a
VZ
12864if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12865 echo $ac_n "(cached) $ac_c" 1>&6
12866else
12867 ac_save_LIBS="$LIBS"
12868LIBS="-lMesaGL $LIBS"
12869cat > conftest.$ac_ext <<EOF
6f72b082 12870#line 12871 "configure"
10f2d63a
VZ
12871#include "confdefs.h"
12872/* Override any gcc2 internal prototype to avoid an error. */
12873/* We use char because int might match the return type of a gcc2
12874 builtin and then its argument prototype would still apply. */
bdad4e7e 12875char glFlush();
10f2d63a
VZ
12876
12877int main() {
bdad4e7e 12878glFlush()
10f2d63a
VZ
12879; return 0; }
12880EOF
6f72b082 12881if { (eval echo configure:12882: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
12882 rm -rf conftest*
12883 eval "ac_cv_lib_$ac_lib_var=yes"
12884else
12885 echo "configure: failed program was:" >&5
12886 cat conftest.$ac_ext >&5
12887 rm -rf conftest*
12888 eval "ac_cv_lib_$ac_lib_var=no"
12889fi
12890rm -f conftest*
12891LIBS="$ac_save_LIBS"
12892
12893fi
12894if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12895 echo "$ac_t""yes" 1>&6
12896
f6bcfd97 12897 OPENGL_LINK="-lMesaGL -lMesaGLU"
10f2d63a
VZ
12898
12899else
12900 echo "$ac_t""no" 1>&6
10f2d63a
VZ
12901fi
12902
12903
12904fi
12905
12906
12907else
12908 echo "$ac_t""no" 1>&6
12909wxUSE_OPENGL=0
12910fi
12911
12912fi
12913
12914
12915if test "$wxUSE_GUI" = "yes"; then
12916 cat >> confdefs.h <<\EOF
12917#define wxUSE_GUI 1
12918EOF
12919
12920
12921 else
12922 cat >> confdefs.h <<\EOF
12923#define wxUSE_NOGUI 1
12924EOF
12925
12926fi
12927
12928
12929if test "$wxUSE_UNIX" = "yes"; then
12930 cat >> confdefs.h <<\EOF
12931#define wxUSE_UNIX 1
12932EOF
12933
12934fi
12935
12936
12937if test "$wxUSE_APPLE_IEEE" = "yes"; then
12938 cat >> confdefs.h <<\EOF
12939#define wxUSE_APPLE_IEEE 1
12940EOF
12941
12942fi
12943
10f2d63a
VZ
12944if test "$wxUSE_WAVE" = "yes"; then
12945 cat >> confdefs.h <<\EOF
12946#define wxUSE_WAVE 1
12947EOF
12948
12949fi
12950
12951if test "$wxUSE_FILE" = "yes"; then
12952 cat >> confdefs.h <<\EOF
12953#define wxUSE_FILE 1
12954EOF
12955
12956fi
12957
24528b0c
VS
12958if test "$wxUSE_FILESYSTEM" = "yes"; then
12959 cat >> confdefs.h <<\EOF
12960#define wxUSE_FILESYSTEM 1
12961EOF
12962
12963fi
12964
10f2d63a
VZ
12965if test "$wxUSE_FS_INET" = "yes"; then
12966 cat >> confdefs.h <<\EOF
12967#define wxUSE_FS_INET 1
12968EOF
12969
12970fi
12971
12972if test "$wxUSE_FS_ZIP" = "yes"; then
12973 cat >> confdefs.h <<\EOF
12974#define wxUSE_FS_ZIP 1
12975EOF
12976
12977fi
12978
12979if test "$wxUSE_ZIPSTREAM" = "yes"; then
12980 cat >> confdefs.h <<\EOF
12981#define wxUSE_ZIPSTREAM 1
12982EOF
12983
12984fi
12985
eb4efbdc
VZ
12986if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
12987 cat >> confdefs.h <<\EOF
12988#define wxUSE_ON_FATAL_EXCEPTION 1
12989EOF
12990
12991fi
12992
10f2d63a
VZ
12993if test "$wxUSE_BUSYINFO" = "yes"; then
12994 cat >> confdefs.h <<\EOF
12995#define wxUSE_BUSYINFO 1
12996EOF
12997
12998fi
12999
13000if test "$wxUSE_STD_IOSTREAM" = "yes"; then
13001 cat >> confdefs.h <<\EOF
13002#define wxUSE_STD_IOSTREAM 1
13003EOF
13004
13005fi
13006
13007if test "$wxUSE_TEXTFILE" = "yes"; then
13008 if test "$wxUSE_FILE" != "yes"; then
13009 echo "configure: warning: wxTextFile requires wxFile and it won't be compiled without it" 1>&2
13010 else
13011 cat >> confdefs.h <<\EOF
13012#define wxUSE_TEXTFILE 1
13013EOF
13014
13015 fi
13016fi
13017
13018if test "$wxUSE_CONFIG" = "yes" ; then
13019 if test "$wxUSE_TEXTFILE" != "yes"; then
13020 echo "configure: warning: wxConfig requires wxTextFile and it won't be compiled without it" 1>&2
13021 else
13022 cat >> confdefs.h <<\EOF
13023#define wxUSE_CONFIG 1
13024EOF
13025
13026 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
13027 fi
13028fi
13029
13030if test "$wxUSE_INTL" = "yes" ; then
13031 if test "$wxUSE_FILE" != "yes"; then
13032 echo "configure: warning: I18n code requires wxFile and it won't be compiled without it" 1>&2
13033 else
13034 cat >> confdefs.h <<\EOF
13035#define wxUSE_INTL 1
13036EOF
13037
13038 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
f6bcfd97 13039 GUIDIST="$GUIDIST INTL_DIST"
10f2d63a
VZ
13040 fi
13041fi
13042
13043if test "$wxUSE_LOG" = "yes"; then
13044 cat >> confdefs.h <<\EOF
13045#define wxUSE_LOG 1
13046EOF
13047
13048fi
13049
13050if test "$wxUSE_LONGLONG" = "yes"; then
13051 cat >> confdefs.h <<\EOF
13052#define wxUSE_LONGLONG 1
13053EOF
13054
13055fi
13056
9b33fe02
VZ
13057if test "$wxUSE_PLOT" = "yes"; then
13058 cat >> confdefs.h <<\EOF
13059#define wxUSE_PLOT 1
13060EOF
13061
13062fi
13063
10f2d63a
VZ
13064if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then
13065 cat >> confdefs.h <<\EOF
13066#define wxUSE_DIALUP_MANAGER 1
13067EOF
13068
70f7a477 13069 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
10f2d63a
VZ
13070fi
13071
13072if test "$wxUSE_STREAMS" = "yes" ; then
13073 cat >> confdefs.h <<\EOF
13074#define wxUSE_STREAMS 1
13075EOF
13076
13077fi
13078
10f2d63a 13079
afc31813 13080if test "$wxUSE_TIMEDATE" = "yes"; then
83307f33
VZ
13081 for ac_func in strptime
13082do
13083echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6f72b082 13084echo "configure:13085: checking for $ac_func" >&5
83307f33
VZ
13085if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13086 echo $ac_n "(cached) $ac_c" 1>&6
13087else
13088 cat > conftest.$ac_ext <<EOF
6f72b082 13089#line 13090 "configure"
83307f33
VZ
13090#include "confdefs.h"
13091/* System header to define __stub macros and hopefully few prototypes,
13092 which can conflict with char $ac_func(); below. */
13093#include <assert.h>
13094/* Override any gcc2 internal prototype to avoid an error. */
13095/* We use char because int might match the return type of a gcc2
13096 builtin and then its argument prototype would still apply. */
13097char $ac_func();
13098
13099int main() {
13100
13101/* The GNU C library defines this for functions which it implements
13102 to always fail with ENOSYS. Some functions are actually named
13103 something starting with __ and the normal name is an alias. */
13104#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13105choke me
13106#else
e8482f24 13107$ac_func();
83307f33
VZ
13108#endif
13109
13110; return 0; }
13111EOF
6f72b082 13112if { (eval echo configure:13113: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
83307f33
VZ
13113 rm -rf conftest*
13114 eval "ac_cv_func_$ac_func=yes"
13115else
13116 echo "configure: failed program was:" >&5
13117 cat conftest.$ac_ext >&5
13118 rm -rf conftest*
13119 eval "ac_cv_func_$ac_func=no"
13120fi
13121rm -f conftest*
13122fi
13123
13124if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13125 echo "$ac_t""yes" 1>&6
13126 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13127 cat >> confdefs.h <<EOF
13128#define $ac_tr_func 1
13129EOF
13130
13131else
13132 echo "$ac_t""no" 1>&6
13133fi
13134done
13135
13136
360d6699 13137 echo $ac_n "checking for timezone variable in <time.h>""... $ac_c" 1>&6
6f72b082 13138echo "configure:13139: checking for timezone variable in <time.h>" >&5
360d6699
VZ
13139if eval "test \"`echo '$''{'wx_cv_var_timezone'+set}'`\" = set"; then
13140 echo $ac_n "(cached) $ac_c" 1>&6
13141else
13142
13143 cat > conftest.$ac_ext <<EOF
6f72b082 13144#line 13145 "configure"
360d6699
VZ
13145#include "confdefs.h"
13146
13147 #include <time.h>
13148
13149int main() {
13150
13151 int tz;
13152 tz = __timezone;
13153
13154; return 0; }
13155EOF
6f72b082 13156if { (eval echo configure:13157: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
360d6699
VZ
13157 rm -rf conftest*
13158
13159 wx_cv_var_timezone=__timezone
13160
13161else
13162 echo "configure: failed program was:" >&5
13163 cat conftest.$ac_ext >&5
13164 rm -rf conftest*
13165
13166 cat > conftest.$ac_ext <<EOF
6f72b082 13167#line 13168 "configure"
360d6699
VZ
13168#include "confdefs.h"
13169
13170 #include <time.h>
13171
13172int main() {
13173
13174 int tz;
13175 tz = _timezone;
13176
13177; return 0; }
13178EOF
6f72b082 13179if { (eval echo configure:13180: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
360d6699
VZ
13180 rm -rf conftest*
13181
13182 wx_cv_var_timezone=_timezone
13183
5357c8e8
VZ
13184else
13185 echo "configure: failed program was:" >&5
13186 cat conftest.$ac_ext >&5
13187 rm -rf conftest*
13188
13189 cat > conftest.$ac_ext <<EOF
6f72b082 13190#line 13191 "configure"
5357c8e8
VZ
13191#include "confdefs.h"
13192
13193 #include <time.h>
13194
13195int main() {
13196
13197 int tz;
13198 tz = timezone;
13199
13200; return 0; }
13201EOF
6f72b082 13202if { (eval echo configure:13203: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5357c8e8
VZ
13203 rm -rf conftest*
13204
13205 wx_cv_var_timezone=timezone
13206
360d6699
VZ
13207else
13208 echo "configure: failed program was:" >&5
13209 cat conftest.$ac_ext >&5
13210 rm -rf conftest*
13211 { echo "configure: error: no timezone variable" 1>&2; exit 1; }
5357c8e8
VZ
13212
13213fi
13214rm -f conftest*
13215
360d6699
VZ
13216
13217fi
13218rm -f conftest*
13219
13220
13221fi
13222rm -f conftest*
13223
13224
13225fi
13226
13227echo "$ac_t""$wx_cv_var_timezone" 1>&6
13228
13229 cat >> confdefs.h <<EOF
13230#define WX_TIMEZONE $wx_cv_var_timezone
13231EOF
13232
13233
3fcdd07b 13234 for ac_func in localtime
afc31813
VZ
13235do
13236echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6f72b082 13237echo "configure:13238: checking for $ac_func" >&5
afc31813
VZ
13238if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13239 echo $ac_n "(cached) $ac_c" 1>&6
13240else
13241 cat > conftest.$ac_ext <<EOF
6f72b082 13242#line 13243 "configure"
10f2d63a 13243#include "confdefs.h"
afc31813
VZ
13244/* System header to define __stub macros and hopefully few prototypes,
13245 which can conflict with char $ac_func(); below. */
13246#include <assert.h>
13247/* Override any gcc2 internal prototype to avoid an error. */
13248/* We use char because int might match the return type of a gcc2
13249 builtin and then its argument prototype would still apply. */
13250char $ac_func();
13251
10f2d63a 13252int main() {
afc31813
VZ
13253
13254/* The GNU C library defines this for functions which it implements
13255 to always fail with ENOSYS. Some functions are actually named
13256 something starting with __ and the normal name is an alias. */
13257#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13258choke me
13259#else
e8482f24 13260$ac_func();
afc31813
VZ
13261#endif
13262
10f2d63a
VZ
13263; return 0; }
13264EOF
6f72b082 13265if { (eval echo configure:13266: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a 13266 rm -rf conftest*
afc31813 13267 eval "ac_cv_func_$ac_func=yes"
10f2d63a
VZ
13268else
13269 echo "configure: failed program was:" >&5
13270 cat conftest.$ac_ext >&5
13271 rm -rf conftest*
afc31813
VZ
13272 eval "ac_cv_func_$ac_func=no"
13273fi
13274rm -f conftest*
13275fi
13276
13277if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13278 echo "$ac_t""yes" 1>&6
13279 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13280 cat >> confdefs.h <<EOF
13281#define $ac_tr_func 1
13282EOF
3fcdd07b 13283
afc31813
VZ
13284else
13285 echo "$ac_t""no" 1>&6
13286fi
13287done
13288
13289
0470b1e6
VZ
13290 if test "$ac_cv_func_localtime" = "yes"; then
13291 echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6
6f72b082 13292echo "configure:13293: checking for tm_gmtoff in struct tm" >&5
0470b1e6
VZ
13293if eval "test \"`echo '$''{'wx_cv_struct_tm_has_gmtoff'+set}'`\" = set"; then
13294 echo $ac_n "(cached) $ac_c" 1>&6
13295else
13296
13297 cat > conftest.$ac_ext <<EOF
6f72b082 13298#line 13299 "configure"
0470b1e6
VZ
13299#include "confdefs.h"
13300
13301 #include <time.h>
13302
13303int main() {
13304
13305 struct tm tm;
13306 tm.tm_gmtoff++;
13307
13308; return 0; }
13309EOF
6f72b082 13310if { (eval echo configure:13311: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
0470b1e6
VZ
13311 rm -rf conftest*
13312
f03a98d8 13313 wx_cv_struct_tm_has_gmtoff=yes
0470b1e6
VZ
13314 cat >> confdefs.h <<\EOF
13315#define WX_GMTOFF_IN_TM 1
13316EOF
13317
13318
13319else
13320 echo "configure: failed program was:" >&5
13321 cat conftest.$ac_ext >&5
13322 rm -rf conftest*
13323 wx_cv_struct_tm_has_gmtoff=no
13324
13325fi
13326rm -f conftest*
13327
13328fi
13329
13330echo "$ac_t""$wx_cv_struct_tm_has_gmtoff" 1>&6
3fcdd07b
VZ
13331 fi
13332
13333 for ac_func in gettimeofday ftime
13334do
13335echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6f72b082 13336echo "configure:13337: checking for $ac_func" >&5
3fcdd07b
VZ
13337if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13338 echo $ac_n "(cached) $ac_c" 1>&6
13339else
13340 cat > conftest.$ac_ext <<EOF
6f72b082 13341#line 13342 "configure"
3fcdd07b
VZ
13342#include "confdefs.h"
13343/* System header to define __stub macros and hopefully few prototypes,
13344 which can conflict with char $ac_func(); below. */
13345#include <assert.h>
13346/* Override any gcc2 internal prototype to avoid an error. */
13347/* We use char because int might match the return type of a gcc2
13348 builtin and then its argument prototype would still apply. */
13349char $ac_func();
13350
13351int main() {
13352
13353/* The GNU C library defines this for functions which it implements
13354 to always fail with ENOSYS. Some functions are actually named
13355 something starting with __ and the normal name is an alias. */
13356#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13357choke me
13358#else
e8482f24 13359$ac_func();
3fcdd07b
VZ
13360#endif
13361
13362; return 0; }
13363EOF
6f72b082 13364if { (eval echo configure:13365: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3fcdd07b
VZ
13365 rm -rf conftest*
13366 eval "ac_cv_func_$ac_func=yes"
13367else
13368 echo "configure: failed program was:" >&5
13369 cat conftest.$ac_ext >&5
13370 rm -rf conftest*
13371 eval "ac_cv_func_$ac_func=no"
13372fi
13373rm -f conftest*
13374fi
13375
13376if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13377 echo "$ac_t""yes" 1>&6
13378 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13379 cat >> confdefs.h <<EOF
13380#define $ac_tr_func 1
13381EOF
13382 break
13383else
13384 echo "$ac_t""no" 1>&6
13385fi
13386done
13387
13388
13389 if test "$ac_cv_func_gettimeofday" = "yes"; then
afc31813 13390 echo $ac_n "checking whether gettimeofday takes two arguments""... $ac_c" 1>&6
6f72b082 13391echo "configure:13392: checking whether gettimeofday takes two arguments" >&5
afc31813
VZ
13392if eval "test \"`echo '$''{'wx_cv_func_gettimeofday_has_2_args'+set}'`\" = set"; then
13393 echo $ac_n "(cached) $ac_c" 1>&6
13394else
13395
13396
13397 ac_ext=C
13398# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13399ac_cpp='$CXXCPP $CPPFLAGS'
13400ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13401ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13402cross_compiling=$ac_cv_prog_cxx_cross
13403
13404
13405 cat > conftest.$ac_ext <<EOF
6f72b082 13406#line 13407 "configure"
10f2d63a 13407#include "confdefs.h"
afc31813
VZ
13408
13409 #include <sys/time.h>
13410 #include <unistd.h>
13411
10f2d63a 13412int main() {
afc31813
VZ
13413
13414 struct timeval tv;
13415 struct timezone tz;
13416 gettimeofday(&tv, &tz);
13417
10f2d63a
VZ
13418; return 0; }
13419EOF
6f72b082 13420if { (eval echo configure:13421: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10f2d63a 13421 rm -rf conftest*
afc31813 13422 wx_cv_func_gettimeofday_has_2_args=yes
10f2d63a
VZ
13423else
13424 echo "configure: failed program was:" >&5
13425 cat conftest.$ac_ext >&5
13426 rm -rf conftest*
13427 cat > conftest.$ac_ext <<EOF
6f72b082 13428#line 13429 "configure"
10f2d63a 13429#include "confdefs.h"
afc31813
VZ
13430
13431 #include <sys/time.h>
13432 #include <unistd.h>
13433
10f2d63a 13434int main() {
afc31813
VZ
13435
13436 struct timeval tv;
13437 gettimeofday(&tv);
13438
10f2d63a
VZ
13439; return 0; }
13440EOF
6f72b082 13441if { (eval echo configure:13442: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10f2d63a 13442 rm -rf conftest*
afc31813 13443 wx_cv_func_gettimeofday_has_2_args=no
10f2d63a
VZ
13444else
13445 echo "configure: failed program was:" >&5
13446 cat conftest.$ac_ext >&5
13447 rm -rf conftest*
afc31813
VZ
13448 wx_cv_func_gettimeofday_has_2_args=unknown
13449
10f2d63a
VZ
13450fi
13451rm -f conftest*
afc31813 13452
10f2d63a
VZ
13453fi
13454rm -f conftest*
afc31813 13455 ac_ext=c
10f2d63a
VZ
13456# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13457ac_cpp='$CPP $CPPFLAGS'
13458ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13459ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13460cross_compiling=$ac_cv_prog_cc_cross
13461
afc31813
VZ
13462
13463fi
13464
13465echo "$ac_t""$wx_cv_func_gettimeofday_has_2_args" 1>&6
c63c7106 13466
afc31813
VZ
13467 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
13468 cat >> confdefs.h <<\EOF
13469#define WX_GETTIMEOFDAY_NO_TZ 1
13470EOF
13471
13472 fi
13473 fi
13474
13475 cat >> confdefs.h <<\EOF
13476#define wxUSE_TIMEDATE 1
13477EOF
13478
13479 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
13480fi
13481
13482
b089607b
VZ
13483if test "$TOOLKIT" != "MSW"; then
13484
afc31813 13485if test "$wxUSE_SOCKETS" = "yes"; then
c63c7106 13486 echo $ac_n "checking for socket""... $ac_c" 1>&6
6f72b082 13487echo "configure:13488: checking for socket" >&5
c63c7106
VZ
13488if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
13489 echo $ac_n "(cached) $ac_c" 1>&6
13490else
13491 cat > conftest.$ac_ext <<EOF
6f72b082 13492#line 13493 "configure"
c63c7106
VZ
13493#include "confdefs.h"
13494/* System header to define __stub macros and hopefully few prototypes,
13495 which can conflict with char socket(); below. */
13496#include <assert.h>
13497/* Override any gcc2 internal prototype to avoid an error. */
13498/* We use char because int might match the return type of a gcc2
13499 builtin and then its argument prototype would still apply. */
13500char socket();
13501
13502int main() {
13503
13504/* The GNU C library defines this for functions which it implements
13505 to always fail with ENOSYS. Some functions are actually named
13506 something starting with __ and the normal name is an alias. */
13507#if defined (__stub_socket) || defined (__stub___socket)
13508choke me
13509#else
e8482f24 13510socket();
c63c7106
VZ
13511#endif
13512
13513; return 0; }
13514EOF
6f72b082 13515if { (eval echo configure:13516: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
c63c7106
VZ
13516 rm -rf conftest*
13517 eval "ac_cv_func_socket=yes"
13518else
13519 echo "configure: failed program was:" >&5
13520 cat conftest.$ac_ext >&5
13521 rm -rf conftest*
13522 eval "ac_cv_func_socket=no"
13523fi
13524rm -f conftest*
13525fi
13526
13527if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
13528 echo "$ac_t""yes" 1>&6
13529 :
13530else
13531 echo "$ac_t""no" 1>&6
13532echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
6f72b082 13533echo "configure:13534: checking for socket in -lsocket" >&5
c63c7106
VZ
13534ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
13535if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13536 echo $ac_n "(cached) $ac_c" 1>&6
13537else
13538 ac_save_LIBS="$LIBS"
13539LIBS="-lsocket $LIBS"
13540cat > conftest.$ac_ext <<EOF
6f72b082 13541#line 13542 "configure"
c63c7106
VZ
13542#include "confdefs.h"
13543/* Override any gcc2 internal prototype to avoid an error. */
13544/* We use char because int might match the return type of a gcc2
13545 builtin and then its argument prototype would still apply. */
13546char socket();
13547
13548int main() {
13549socket()
13550; return 0; }
13551EOF
6f72b082 13552if { (eval echo configure:13553: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
c63c7106
VZ
13553 rm -rf conftest*
13554 eval "ac_cv_lib_$ac_lib_var=yes"
13555else
13556 echo "configure: failed program was:" >&5
13557 cat conftest.$ac_ext >&5
13558 rm -rf conftest*
13559 eval "ac_cv_lib_$ac_lib_var=no"
13560fi
13561rm -f conftest*
13562LIBS="$ac_save_LIBS"
13563
13564fi
13565if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13566 echo "$ac_t""yes" 1>&6
13567 INET_LINK="$INET_LINK -lsocket"
c63c7106
VZ
13568else
13569 echo "$ac_t""no" 1>&6
afc31813
VZ
13570
13571 echo "configure: warning: socket library not found - sockets will be disabled" 1>&2
13572 wxUSE_SOCKETS=no
13573
13574
c63c7106
VZ
13575fi
13576
13577
13578fi
13579
10f2d63a
VZ
13580fi
13581
b089607b
VZ
13582fi
13583
afc31813 13584if test "$wxUSE_SOCKETS" = "yes" ; then
51a9faba 13585 echo $ac_n "checking what is the type of the third argument of getsockname""... $ac_c" 1>&6
6f72b082 13586echo "configure:13587: checking what is the type of the third argument of getsockname" >&5
51a9faba
VZ
13587if eval "test \"`echo '$''{'wx_cv_type_getsockname3'+set}'`\" = set"; then
13588 echo $ac_n "(cached) $ac_c" 1>&6
13589else
13590
13591
13592 ac_ext=C
afc31813
VZ
13593# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13594ac_cpp='$CXXCPP $CPPFLAGS'
13595ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13596ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13597cross_compiling=$ac_cv_prog_cxx_cross
13598
51a9faba
VZ
13599
13600 cat > conftest.$ac_ext <<EOF
6f72b082 13601#line 13602 "configure"
afc31813 13602#include "confdefs.h"
51a9faba 13603
3ace2e6d 13604 #include <sys/types.h>
51a9faba
VZ
13605 #include <sys/socket.h>
13606
afc31813 13607int main() {
51a9faba
VZ
13608
13609 socklen_t len;
13610 getsockname(0, 0, &len);
13611
afc31813
VZ
13612; return 0; }
13613EOF
6f72b082 13614if { (eval echo configure:13615: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
afc31813 13615 rm -rf conftest*
51a9faba 13616 wx_cv_type_getsockname3=socklen_t
afc31813
VZ
13617else
13618 echo "configure: failed program was:" >&5
13619 cat conftest.$ac_ext >&5
13620 rm -rf conftest*
13621 cat > conftest.$ac_ext <<EOF
6f72b082 13622#line 13623 "configure"
afc31813 13623#include "confdefs.h"
51a9faba 13624
3ace2e6d 13625 #include <sys/types.h>
51a9faba
VZ
13626 #include <sys/socket.h>
13627
afc31813 13628int main() {
51a9faba
VZ
13629
13630 size_t len;
13631 getsockname(0, 0, &len);
13632
afc31813
VZ
13633; return 0; }
13634EOF
6f72b082 13635if { (eval echo configure:13636: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
afc31813 13636 rm -rf conftest*
51a9faba 13637 wx_cv_type_getsockname3=size_t
afc31813
VZ
13638else
13639 echo "configure: failed program was:" >&5
13640 cat conftest.$ac_ext >&5
13641 rm -rf conftest*
13642 cat > conftest.$ac_ext <<EOF
6f72b082 13643#line 13644 "configure"
afc31813 13644#include "confdefs.h"
51a9faba 13645
3ace2e6d 13646 #include <sys/types.h>
51a9faba
VZ
13647 #include <sys/socket.h>
13648
afc31813 13649int main() {
51a9faba
VZ
13650
13651 int len;
13652 getsockname(0, 0, &len);
13653
afc31813
VZ
13654; return 0; }
13655EOF
6f72b082 13656if { (eval echo configure:13657: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
afc31813 13657 rm -rf conftest*
51a9faba 13658 wx_cv_type_getsockname3=int
afc31813
VZ
13659else
13660 echo "configure: failed program was:" >&5
13661 cat conftest.$ac_ext >&5
3ace2e6d
SN
13662 rm -rf conftest*
13663 wx_cv_type_getsockname3=unknown
13664
afc31813
VZ
13665fi
13666rm -f conftest*
51a9faba 13667
afc31813
VZ
13668fi
13669rm -f conftest*
51a9faba 13670
afc31813
VZ
13671fi
13672rm -f conftest*
51a9faba
VZ
13673
13674 ac_ext=c
afc31813
VZ
13675# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13676ac_cpp='$CPP $CPPFLAGS'
13677ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13678ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13679cross_compiling=$ac_cv_prog_cc_cross
13680
51a9faba
VZ
13681
13682fi
13683
13684echo "$ac_t""$wx_cv_type_getsockname3" 1>&6
13685
13686 if test "$wx_cv_type_getsockname3" = "unknown"; then
13687 wxUSE_SOCKETS=no
13688 echo "configure: warning: Couldn't find socklen_t synonym for this system" 1>&2
13689 else
13690 cat >> confdefs.h <<EOF
13691#define SOCKLEN_T $wx_cv_type_getsockname3
13692EOF
13693
13694 fi
13695fi
afc31813 13696
51a9faba 13697if test "$wxUSE_SOCKETS" = "yes" ; then
afc31813
VZ
13698 cat >> confdefs.h <<\EOF
13699#define wxUSE_SOCKETS 1
13700EOF
13701
70f7a477 13702 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
afc31813
VZ
13703 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS protocol"
13704fi
13705
10f2d63a 13706
dc3d889d
VZ
13707if test "$wxUSE_GUI" = "yes"; then
13708
b089607b
VZ
13709if test "$TOOLKIT" != "MSW"; then
13710
ceded8b9 13711if test "$wxUSE_JOYSTICK" = "yes"; then
10f2d63a
VZ
13712 for ac_hdr in linux/joystick.h
13713do
13714ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13715echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6f72b082 13716echo "configure:13717: checking for $ac_hdr" >&5
10f2d63a
VZ
13717if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
13718 echo $ac_n "(cached) $ac_c" 1>&6
13719else
13720 cat > conftest.$ac_ext <<EOF
6f72b082 13721#line 13722 "configure"
10f2d63a
VZ
13722#include "confdefs.h"
13723#include <$ac_hdr>
13724EOF
13725ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6f72b082 13726{ (eval echo configure:13727: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
13727ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13728if test -z "$ac_err"; then
13729 rm -rf conftest*
13730 eval "ac_cv_header_$ac_safe=yes"
13731else
13732 echo "$ac_err" >&5
13733 echo "configure: failed program was:" >&5
13734 cat conftest.$ac_ext >&5
13735 rm -rf conftest*
13736 eval "ac_cv_header_$ac_safe=no"
13737fi
13738rm -f conftest*
13739fi
13740if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13741 echo "$ac_t""yes" 1>&6
13742 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13743 cat >> confdefs.h <<EOF
13744#define $ac_tr_hdr 1
13745EOF
13746
13747else
13748 echo "$ac_t""no" 1>&6
13749fi
13750done
13751
b089607b 13752 if test "$ac_cv_header_linux_joystick_h" != "yes"; then
ceded8b9 13753 wxUSE_JOYSTICK=no
dc3d889d 13754 echo "configure: warning: Joystick not supported by this system" 1>&2
b089607b
VZ
13755 fi
13756fi
13757
13758fi
13759
ceded8b9 13760if test "$wxUSE_JOYSTICK" = "yes"; then
10f2d63a
VZ
13761 cat >> confdefs.h <<\EOF
13762#define wxUSE_JOYSTICK 1
13763EOF
13764
13765 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
10f2d63a
VZ
13766fi
13767
dc3d889d
VZ
13768fi
13769
10f2d63a 13770
b089607b
VZ
13771if test "$TOOLKIT" != "MSW"; then
13772
10f2d63a
VZ
13773HAVE_DL_FUNCS=0
13774HAVE_SHL_FUNCS=0
13775if test "$wxUSE_DYNLIB_CLASS" = "yes"; then
13776 for ac_func in dlopen
13777do
13778echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6f72b082 13779echo "configure:13780: checking for $ac_func" >&5
10f2d63a
VZ
13780if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13781 echo $ac_n "(cached) $ac_c" 1>&6
13782else
13783 cat > conftest.$ac_ext <<EOF
6f72b082 13784#line 13785 "configure"
10f2d63a
VZ
13785#include "confdefs.h"
13786/* System header to define __stub macros and hopefully few prototypes,
13787 which can conflict with char $ac_func(); below. */
13788#include <assert.h>
13789/* Override any gcc2 internal prototype to avoid an error. */
13790/* We use char because int might match the return type of a gcc2
13791 builtin and then its argument prototype would still apply. */
13792char $ac_func();
13793
13794int main() {
13795
13796/* The GNU C library defines this for functions which it implements
13797 to always fail with ENOSYS. Some functions are actually named
13798 something starting with __ and the normal name is an alias. */
13799#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13800choke me
13801#else
e8482f24 13802$ac_func();
10f2d63a
VZ
13803#endif
13804
13805; return 0; }
13806EOF
6f72b082 13807if { (eval echo configure:13808: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
13808 rm -rf conftest*
13809 eval "ac_cv_func_$ac_func=yes"
13810else
13811 echo "configure: failed program was:" >&5
13812 cat conftest.$ac_ext >&5
13813 rm -rf conftest*
13814 eval "ac_cv_func_$ac_func=no"
13815fi
13816rm -f conftest*
13817fi
13818
13819if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13820 echo "$ac_t""yes" 1>&6
13821 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13822 cat >> confdefs.h <<EOF
13823#define $ac_tr_func 1
13824EOF
13825
13826 cat >> confdefs.h <<\EOF
13827#define HAVE_DLOPEN 1
13828EOF
13829
13830 HAVE_DL_FUNCS=1
13831
13832else
13833 echo "$ac_t""no" 1>&6
13834echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
6f72b082 13835echo "configure:13836: checking for dlopen in -ldl" >&5
10f2d63a
VZ
13836ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
13837if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13838 echo $ac_n "(cached) $ac_c" 1>&6
13839else
13840 ac_save_LIBS="$LIBS"
13841LIBS="-ldl $LIBS"
13842cat > conftest.$ac_ext <<EOF
6f72b082 13843#line 13844 "configure"
10f2d63a
VZ
13844#include "confdefs.h"
13845/* Override any gcc2 internal prototype to avoid an error. */
13846/* We use char because int might match the return type of a gcc2
13847 builtin and then its argument prototype would still apply. */
13848char dlopen();
13849
13850int main() {
13851dlopen()
13852; return 0; }
13853EOF
6f72b082 13854if { (eval echo configure:13855: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
13855 rm -rf conftest*
13856 eval "ac_cv_lib_$ac_lib_var=yes"
13857else
13858 echo "configure: failed program was:" >&5
13859 cat conftest.$ac_ext >&5
13860 rm -rf conftest*
13861 eval "ac_cv_lib_$ac_lib_var=no"
13862fi
13863rm -f conftest*
13864LIBS="$ac_save_LIBS"
13865
13866fi
13867if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13868 echo "$ac_t""yes" 1>&6
13869
13870 cat >> confdefs.h <<\EOF
13871#define HAVE_DLOPEN 1
13872EOF
13873
13874 HAVE_DL_FUNCS=1
13875 LIBS="$LIBS -ldl"
13876
13877else
13878 echo "$ac_t""no" 1>&6
13879
13880 for ac_func in shl_load
13881do
13882echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6f72b082 13883echo "configure:13884: checking for $ac_func" >&5
10f2d63a
VZ
13884if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13885 echo $ac_n "(cached) $ac_c" 1>&6
13886else
13887 cat > conftest.$ac_ext <<EOF
6f72b082 13888#line 13889 "configure"
10f2d63a
VZ
13889#include "confdefs.h"
13890/* System header to define __stub macros and hopefully few prototypes,
13891 which can conflict with char $ac_func(); below. */
13892#include <assert.h>
13893/* Override any gcc2 internal prototype to avoid an error. */
13894/* We use char because int might match the return type of a gcc2
13895 builtin and then its argument prototype would still apply. */
13896char $ac_func();
13897
13898int main() {
13899
13900/* The GNU C library defines this for functions which it implements
13901 to always fail with ENOSYS. Some functions are actually named
13902 something starting with __ and the normal name is an alias. */
13903#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13904choke me
13905#else
e8482f24 13906$ac_func();
10f2d63a
VZ
13907#endif
13908
13909; return 0; }
13910EOF
6f72b082 13911if { (eval echo configure:13912: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
13912 rm -rf conftest*
13913 eval "ac_cv_func_$ac_func=yes"
13914else
13915 echo "configure: failed program was:" >&5
13916 cat conftest.$ac_ext >&5
13917 rm -rf conftest*
13918 eval "ac_cv_func_$ac_func=no"
13919fi
13920rm -f conftest*
13921fi
13922
13923if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13924 echo "$ac_t""yes" 1>&6
13925 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13926 cat >> confdefs.h <<EOF
13927#define $ac_tr_func 1
13928EOF
13929
13930 cat >> confdefs.h <<\EOF
13931#define HAVE_SHL_LOAD 1
13932EOF
13933
13934 HAVE_SHL_FUNCS=1
13935
13936else
13937 echo "$ac_t""no" 1>&6
f6bcfd97 13938echo $ac_n "checking for dld in -lshl_load""... $ac_c" 1>&6
6f72b082 13939echo "configure:13940: checking for dld in -lshl_load" >&5
f6bcfd97
BP
13940ac_lib_var=`echo shl_load'_'dld | sed 'y%./+-%__p_%'`
13941if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13942 echo $ac_n "(cached) $ac_c" 1>&6
13943else
13944 ac_save_LIBS="$LIBS"
13945LIBS="-lshl_load $LIBS"
13946cat > conftest.$ac_ext <<EOF
6f72b082 13947#line 13948 "configure"
f6bcfd97
BP
13948#include "confdefs.h"
13949/* Override any gcc2 internal prototype to avoid an error. */
13950/* We use char because int might match the return type of a gcc2
13951 builtin and then its argument prototype would still apply. */
13952char dld();
13953
13954int main() {
13955dld()
13956; return 0; }
13957EOF
6f72b082 13958if { (eval echo configure:13959: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
f6bcfd97
BP
13959 rm -rf conftest*
13960 eval "ac_cv_lib_$ac_lib_var=yes"
13961else
13962 echo "configure: failed program was:" >&5
13963 cat conftest.$ac_ext >&5
13964 rm -rf conftest*
13965 eval "ac_cv_lib_$ac_lib_var=no"
13966fi
13967rm -f conftest*
13968LIBS="$ac_save_LIBS"
13969
13970fi
13971if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13972 echo "$ac_t""yes" 1>&6
13973
13974 HAVE_SHL_FUNCS=1
13975 LIBS="$LIBS -ldld"
13976
13977else
13978 echo "$ac_t""no" 1>&6
13979fi
13980
13981
10f2d63a
VZ
13982fi
13983done
13984
13985
13986fi
13987
13988
13989fi
13990done
13991
13992
f6bcfd97
BP
13993 if test "$HAVE_DL_FUNCS" = 1; then
13994 for ac_func in dlerror
13995do
13996echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6f72b082 13997echo "configure:13998: checking for $ac_func" >&5
f6bcfd97
BP
13998if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13999 echo $ac_n "(cached) $ac_c" 1>&6
14000else
14001 cat > conftest.$ac_ext <<EOF
6f72b082 14002#line 14003 "configure"
f6bcfd97
BP
14003#include "confdefs.h"
14004/* System header to define __stub macros and hopefully few prototypes,
14005 which can conflict with char $ac_func(); below. */
14006#include <assert.h>
14007/* Override any gcc2 internal prototype to avoid an error. */
14008/* We use char because int might match the return type of a gcc2
14009 builtin and then its argument prototype would still apply. */
14010char $ac_func();
14011
14012int main() {
14013
14014/* The GNU C library defines this for functions which it implements
14015 to always fail with ENOSYS. Some functions are actually named
14016 something starting with __ and the normal name is an alias. */
14017#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14018choke me
14019#else
14020$ac_func();
14021#endif
14022
14023; return 0; }
14024EOF
6f72b082 14025if { (eval echo configure:14026: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
f6bcfd97
BP
14026 rm -rf conftest*
14027 eval "ac_cv_func_$ac_func=yes"
14028else
14029 echo "configure: failed program was:" >&5
14030 cat conftest.$ac_ext >&5
14031 rm -rf conftest*
14032 eval "ac_cv_func_$ac_func=no"
14033fi
14034rm -f conftest*
14035fi
14036
14037if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14038 echo "$ac_t""yes" 1>&6
14039 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14040 cat >> confdefs.h <<EOF
14041#define $ac_tr_func 1
14042EOF
14043 cat >> confdefs.h <<\EOF
14044#define HAVE_DLERROR 1
14045EOF
14046
14047else
14048 echo "$ac_t""no" 1>&6
14049echo $ac_n "checking for dlerror in -ldl""... $ac_c" 1>&6
6f72b082 14050echo "configure:14051: checking for dlerror in -ldl" >&5
f6bcfd97
BP
14051ac_lib_var=`echo dl'_'dlerror | sed 'y%./+-%__p_%'`
14052if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14053 echo $ac_n "(cached) $ac_c" 1>&6
14054else
14055 ac_save_LIBS="$LIBS"
14056LIBS="-ldl $LIBS"
14057cat > conftest.$ac_ext <<EOF
6f72b082 14058#line 14059 "configure"
f6bcfd97
BP
14059#include "confdefs.h"
14060/* Override any gcc2 internal prototype to avoid an error. */
14061/* We use char because int might match the return type of a gcc2
14062 builtin and then its argument prototype would still apply. */
14063char dlerror();
14064
14065int main() {
14066dlerror()
14067; return 0; }
14068EOF
6f72b082 14069if { (eval echo configure:14070: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
f6bcfd97
BP
14070 rm -rf conftest*
14071 eval "ac_cv_lib_$ac_lib_var=yes"
14072else
14073 echo "configure: failed program was:" >&5
14074 cat conftest.$ac_ext >&5
14075 rm -rf conftest*
14076 eval "ac_cv_lib_$ac_lib_var=no"
14077fi
14078rm -f conftest*
14079LIBS="$ac_save_LIBS"
14080
14081fi
14082if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14083 echo "$ac_t""yes" 1>&6
14084 cat >> confdefs.h <<\EOF
14085#define HAVE_DLERROR 1
14086EOF
14087
14088else
14089 echo "$ac_t""no" 1>&6
14090fi
14091
14092fi
14093done
14094
14095 fi
14096
10f2d63a
VZ
14097 if test "$HAVE_DL_FUNCS" = 0; then
14098 if test "$HAVE_SHL_FUNCS" = 0; then
14099 if test "$USE_UNIX" = 1; then
b12915c1 14100 echo "configure: warning: Missing dynamic loading support, several features will be disabled" 1>&2
10f2d63a
VZ
14101 wxUSE_DYNLIB_CLASS=no
14102 else
b12915c1 14103 echo "configure: warning: Assuming wxLibrary class works on this platform" 1>&2
10f2d63a
VZ
14104 fi
14105 fi
14106 fi
14107fi
14108
b089607b
VZ
14109fi
14110
10f2d63a 14111if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
b12915c1 14112 cat >> confdefs.h <<\EOF
10f2d63a
VZ
14113#define wxUSE_DYNLIB_CLASS 1
14114EOF
14115
b12915c1
VZ
14116else
14117 wxUSE_ODBC=no
14118 wxUSE_SERIAL=no
10f2d63a
VZ
14119fi
14120
14121
14122if test "$wxUSE_UNICODE" = "yes" ; then
14123 cat >> confdefs.h <<\EOF
14124#define wxUSE_UNICODE 1
14125EOF
14126
14127fi
14128
14129if test "$wxUSE_WCSRTOMBS" = "yes" ; then
14130 cat >> confdefs.h <<\EOF
14131#define wxUSE_WCSRTOMBS 1
14132EOF
14133
14134fi
14135
14136if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
14137 cat >> confdefs.h <<\EOF
14138#define wxUSE_EXPERIMENTAL_PRINTF 1
14139EOF
14140
14141fi
14142
14143
b12915c1
VZ
14144if test "$wxUSE_SERIAL" = "yes" ; then
14145 cat >> confdefs.h <<\EOF
14146#define wxUSE_SERIAL 1
14147EOF
14148
14149fi
14150
14151
10f2d63a
VZ
14152IODBC_C_SRC=""
14153if test "$wxUSE_ODBC" = "yes" ; then
14154 cat >> confdefs.h <<\EOF
14155#define wxUSE_ODBC 1
14156EOF
14157
14158 WXODBCFLAG="-D_IODBC_"
14159 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
14160 IODBCOBJS="\$(IODBC_OBJS)"
14161else
14162 IODBCOBJS=
14163fi
14164
14165
14166if test "$wxUSE_POSTSCRIPT" = "yes" ; then
14167 cat >> confdefs.h <<\EOF
14168#define wxUSE_POSTSCRIPT 1
14169EOF
14170
14171fi
14172
14173cat >> confdefs.h <<\EOF
14174#define wxUSE_AFM_FOR_POSTSCRIPT 1
14175EOF
14176
14177
14178cat >> confdefs.h <<\EOF
14179#define wxUSE_NORMALIZED_PS_FONTS 1
14180EOF
14181
14182
14183
14184if test "$wxUSE_CONSTRAINTS" = "yes"; then
14185 cat >> confdefs.h <<\EOF
14186#define wxUSE_CONSTRAINTS 1
14187EOF
14188
14189 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
14190fi
14191
14192if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
14193 cat >> confdefs.h <<\EOF
14194#define wxUSE_MDI_ARCHITECTURE 1
14195EOF
14196
14197 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
14198fi
14199
14200if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
14201 cat >> confdefs.h <<\EOF
14202#define wxUSE_DOC_VIEW_ARCHITECTURE 1
14203EOF
14204
14205 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
14206 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
14207 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
14208 fi
14209fi
14210
14211if test "$wxUSE_HELP" = "yes"; then
14212 cat >> confdefs.h <<\EOF
14213#define wxUSE_HELP 1
14214EOF
14215
14216 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
14217fi
14218
14219if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
14220 if test "$wxUSE_CONSTRAINTS" != "yes"; then
14221 echo "configure: warning: Printing support cannot be used without constraints so it won't be compiled without it" 1>&2
14222 else
14223 cat >> confdefs.h <<\EOF
14224#define wxUSE_PRINTING_ARCHITECTURE 1
14225EOF
14226
14227 fi
14228 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
14229fi
14230
14231if test "$wxUSE_PROLOGIO" = "yes" ; then
14232 cat >> confdefs.h <<\EOF
14233#define wxUSE_PROLOGIO 1
14234EOF
14235
14236fi
14237
14238if test "$wxUSE_RESOURCES" = "yes" ; then
14239 if test "$wxUSE_PROLOGIO" = "yes" ; then
14240 cat >> confdefs.h <<\EOF
14241#define wxUSE_RESOURCES 1
14242EOF
14243
14244 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS resource"
14245 else
14246 echo "configure: warning: wxWindows ressource system requires PrologIO and can't be compiled without it." 1>&2
14247 fi
14248fi
14249
14250if test "$wxUSE_X_RESOURCES" = "yes"; then
14251 cat >> confdefs.h <<\EOF
14252#define wxUSE_X_RESOURCES 1
14253EOF
14254
14255fi
14256
14257
14258if test "$wxUSE_IPC" = "yes"; then
eb4efbdc
VZ
14259 if test "$wxUSE_SOCKETS" != "yes"; then
14260 echo "configure: warning: wxWindows IPC classes require sockets" 1>&2
14261 fi
14262
10f2d63a
VZ
14263 cat >> confdefs.h <<\EOF
14264#define wxUSE_IPC 1
14265EOF
14266
14267fi
14268
14269if test "$wxUSE_CLIPBOARD" = "yes"; then
14270 cat >> confdefs.h <<\EOF
14271#define wxUSE_CLIPBOARD 1
14272EOF
14273
14274fi
14275
14276if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
14277 if test "$wxUSE_GTK" = 1; then
14278 if test "$WXGTK12" != 1; then
14279 echo "configure: warning: Drag and drop is only supported under GTK+ 1.2" 1>&2
14280 wxUSE_DRAG_AND_DROP=no
14281 fi
14282 fi
14283
14284 if test "$wxUSE_MOTIF" = 1; then
14285 echo "configure: warning: Drag and drop is not yet supported under Motif" 1>&2
14286 wxUSE_DRAG_AND_DROP=no
14287 fi
14288
14289 if test "$USE_WIN32" = 1; then
14290 for ac_hdr in ole2.h
14291do
14292ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
14293echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6f72b082 14294echo "configure:14295: checking for $ac_hdr" >&5
10f2d63a
VZ
14295if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
14296 echo $ac_n "(cached) $ac_c" 1>&6
14297else
14298 cat > conftest.$ac_ext <<EOF
6f72b082 14299#line 14300 "configure"
10f2d63a
VZ
14300#include "confdefs.h"
14301#include <$ac_hdr>
14302EOF
14303ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6f72b082 14304{ (eval echo configure:14305: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
14305ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14306if test -z "$ac_err"; then
14307 rm -rf conftest*
14308 eval "ac_cv_header_$ac_safe=yes"
14309else
14310 echo "$ac_err" >&5
14311 echo "configure: failed program was:" >&5
14312 cat conftest.$ac_ext >&5
14313 rm -rf conftest*
14314 eval "ac_cv_header_$ac_safe=no"
14315fi
14316rm -f conftest*
14317fi
14318if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14319 echo "$ac_t""yes" 1>&6
14320 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
14321 cat >> confdefs.h <<EOF
14322#define $ac_tr_hdr 1
14323EOF
14324
14325else
14326 echo "$ac_t""no" 1>&6
14327fi
14328done
14329
14330 if test "x$HAVE_OLE2_H" = x ; then
14331 echo "configure: warning: Drag and drop disabled because OLE headers not found" 1>&2
14332 wxUSE_DRAG_AND_DROP=no
14333 fi
14334 fi
14335
14336 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
14337 cat >> confdefs.h <<\EOF
14338#define wxUSE_DRAG_AND_DROP 1
14339EOF
14340
14341 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
14342 fi
14343
14344fi
14345
14346if test "$wxUSE_SPLINES" = "yes" ; then
14347 cat >> confdefs.h <<\EOF
14348#define wxUSE_SPLINES 1
14349EOF
14350
14351fi
14352
14353
14354if test "$wxUSE_ACCEL" = "yes"; then
14355 cat >> confdefs.h <<\EOF
14356#define wxUSE_ACCEL 1
14357EOF
14358
14359fi
14360
14361if test "$wxUSE_CARET" = "yes"; then
14362 cat >> confdefs.h <<\EOF
14363#define wxUSE_CARET 1
14364EOF
14365
14366 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
14367fi
14368
14369if test "$wxUSE_COMBOBOX" = "yes"; then
14370 cat >> confdefs.h <<\EOF
14371#define wxUSE_COMBOBOX 1
14372EOF
14373
14374fi
14375
14376if test "$wxUSE_CHOICE" = "yes"; then
14377 cat >> confdefs.h <<\EOF
14378#define wxUSE_CHOICE 1
14379EOF
14380
14381fi
14382
14383if test "$wxUSE_BMPBUTTON" = "yes"; then
14384 cat >> confdefs.h <<\EOF
14385#define wxUSE_BMPBUTTON 1
14386EOF
14387
14388fi
14389
14390if test "$wxUSE_CHECKBOX" = "yes"; then
14391 cat >> confdefs.h <<\EOF
14392#define wxUSE_CHECKBOX 1
14393EOF
14394
14395fi
14396
14397if test "$wxUSE_CHECKLST" = "yes"; then
14398 cat >> confdefs.h <<\EOF
14399#define wxUSE_CHECKLISTBOX 1
14400EOF
14401
14402 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
14403fi
14404
14405if test "$wxUSE_GAUGE" = "yes"; then
14406 cat >> confdefs.h <<\EOF
14407#define wxUSE_GAUGE 1
14408EOF
14409
14410fi
14411
d6a55c4b
VZ
14412if test "$wxUSE_NEW_GRID" = "yes"; then
14413 wxUSE_GRID="yes"
10f2d63a 14414 cat >> confdefs.h <<\EOF
d6a55c4b 14415#define wxUSE_NEW_GRID 1
10f2d63a
VZ
14416EOF
14417
d6a55c4b 14418 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS newgrid"
10f2d63a
VZ
14419fi
14420
d6a55c4b 14421if test "$wxUSE_GRID" = "yes"; then
10f2d63a 14422 cat >> confdefs.h <<\EOF
d6a55c4b 14423#define wxUSE_GRID 1
10f2d63a
VZ
14424EOF
14425
d6a55c4b 14426 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
10f2d63a
VZ
14427fi
14428
14429if test "$wxUSE_IMAGLIST" = "yes"; then
14430 cat >> confdefs.h <<\EOF
14431#define wxUSE_IMAGLIST 1
14432EOF
14433
14434fi
14435
14436if test "$wxUSE_LISTBOX" = "yes"; then
14437 cat >> confdefs.h <<\EOF
14438#define wxUSE_LISTBOX 1
14439EOF
14440
14441fi
14442
14443if test "$wxUSE_LISTCTRL" = "yes"; then
14444 if test "$wxUSE_IMAGLIST" = "yes"; then
14445 cat >> confdefs.h <<\EOF
14446#define wxUSE_LISTCTRL 1
14447EOF
14448
14449 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
14450 else
14451 echo "configure: warning: wxListCtrl requires wxImageList and won't be compiled without it" 1>&2
14452 fi
14453fi
14454
14455if test "$wxUSE_NOTEBOOK" = "yes"; then
14456 cat >> confdefs.h <<\EOF
14457#define wxUSE_NOTEBOOK 1
14458EOF
14459
14460 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
14461fi
14462
14463if test "$wxUSE_RADIOBOX" = "yes"; then
14464 cat >> confdefs.h <<\EOF
14465#define wxUSE_RADIOBOX 1
14466EOF
14467
14468fi
14469
14470if test "$wxUSE_RADIOBTN" = "yes"; then
14471 cat >> confdefs.h <<\EOF
14472#define wxUSE_RADIOBTN 1
14473EOF
14474
14475fi
14476
14477if test "$wxUSE_SASH" = "yes"; then
14478 cat >> confdefs.h <<\EOF
14479#define wxUSE_SASH 1
14480EOF
14481
14482 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
14483fi
14484
14485if test "$wxUSE_SCROLLBAR" = "yes"; then
14486 cat >> confdefs.h <<\EOF
14487#define wxUSE_SCROLLBAR 1
14488EOF
14489
741a9306 14490 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
10f2d63a
VZ
14491fi
14492
14493if test "$wxUSE_SLIDER" = "yes"; then
14494 cat >> confdefs.h <<\EOF
14495#define wxUSE_SLIDER 1
14496EOF
14497
14498fi
14499
14500if test "$wxUSE_SPINBTN" = "yes"; then
14501 cat >> confdefs.h <<\EOF
14502#define wxUSE_SPINBTN 1
14503EOF
14504
14505fi
14506
56cfaa52
RR
14507if test "$wxUSE_SPINCTRL" = "yes"; then
14508 cat >> confdefs.h <<\EOF
14509#define wxUSE_SPINCTRL 1
14510EOF
14511
14512fi
14513
10f2d63a
VZ
14514if test "$wxUSE_SPLITTER" = "yes"; then
14515 cat >> confdefs.h <<\EOF
14516#define wxUSE_SPLITTER 1
14517EOF
14518
14519 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
14520fi
14521
14522if test "$wxUSE_STATBMP" = "yes"; then
14523 cat >> confdefs.h <<\EOF
14524#define wxUSE_STATBMP 1
14525EOF
14526
14527fi
14528
14529if test "$wxUSE_STATBOX" = "yes"; then
14530 cat >> confdefs.h <<\EOF
14531#define wxUSE_STATBOX 1
14532EOF
14533
14534fi
14535
14536if test "$wxUSE_STATLINE" = "yes"; then
14537 if test "$wxUSE_WINE" = 1 ; then
14538 echo "configure: warning: wxStaticLine is not supported under WINE" 1>&2
14539 else
14540 cat >> confdefs.h <<\EOF
14541#define wxUSE_STATLINE 1
14542EOF
14543
14544 fi
14545fi
14546
14547if test "$wxUSE_STATUSBAR" = "yes"; then
14548 cat >> confdefs.h <<\EOF
14549#define wxUSE_STATUSBAR 1
14550EOF
14551
2286341c
VZ
14552
14553 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
10f2d63a
VZ
14554fi
14555
14556if test "$wxUSE_TABDIALOG" = "yes"; then
14557 cat >> confdefs.h <<\EOF
14558#define wxUSE_TAB_DIALOG 1
14559EOF
14560
14561 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab"
14562fi
14563
360d6699
VZ
14564if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
14565 cat >> confdefs.h <<\EOF
14566#define wxUSE_TOOLBAR_SIMPLE 1
14567EOF
14568
14569 wxUSE_TOOLBAR="yes"
14570fi
14571
10f2d63a
VZ
14572if test "$wxUSE_TOOLBAR" = "yes"; then
14573 cat >> confdefs.h <<\EOF
14574#define wxUSE_TOOLBAR 1
14575EOF
14576
360d6699
VZ
14577
14578 if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
14579 wxUSE_TOOLBAR_NATIVE="yes"
14580 fi
14581
10f2d63a
VZ
14582 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
14583fi
14584
360d6699
VZ
14585if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
14586 cat >> confdefs.h <<\EOF
14587#define wxUSE_TOOLBAR_NATIVE 1
14588EOF
14589
14590fi
14591
10f2d63a
VZ
14592if test "$wxUSE_TOOLTIPS" = "yes"; then
14593 if test "$wxUSE_MOTIF" = 1; then
14594 echo "configure: warning: wxTooltip not supported yet under Motif" 1>&2
14595 else
14596 if test "$wxUSE_WINE" = 1; then
14597 echo "configure: warning: wxTooltip not supported under WINE" 1>&2
14598 else
14599 cat >> confdefs.h <<\EOF
14600#define wxUSE_TOOLTIPS 1
14601EOF
14602
14603 fi
14604 fi
14605fi
14606
14607if test "$wxUSE_TREECTRL" = "yes"; then
14608 if test "$wxUSE_IMAGLIST" = "yes"; then
14609 cat >> confdefs.h <<\EOF
14610#define wxUSE_TREECTRL 1
14611EOF
14612
14613 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
14614 else
14615 echo "configure: warning: wxTreeCtrl requires wxImageList and won't be compiled without it" 1>&2
14616 fi
14617fi
14618
14619
14620
14621if test "$wxUSE_METAFILE" = "yes"; then
14622 cat >> confdefs.h <<\EOF
14623#define wxUSE_METAFILE 1
14624EOF
14625
14626fi
14627
14628if test "$wxUSE_DIRDLG" = "yes"; then
14629 if test "$wxUSE_CONSTRAINTS" != "yes"; then
14630 echo "configure: warning: wxDirDialog requires constraints so it won't be compiled without them" 1>&2
14631 else
14632 if test "$wxUSE_TREECTRL" != "yes"; then
14633 echo "configure: warning: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" 1>&2
14634 else
14635 cat >> confdefs.h <<\EOF
14636#define wxUSE_DIRDLG 1
14637EOF
14638
14639 fi
14640 fi
14641fi
14642
14643if test "$wxUSE_TEXTDLG" = "yes"; then
14644 cat >> confdefs.h <<\EOF
14645#define wxUSE_TEXTDLG 1
14646EOF
14647
14648fi
14649
14650if test "$wxUSE_STARTUP_TIPS" = "yes"; then
14651 if test "$wxUSE_CONSTRAINTS" != "yes"; then
14652 echo "configure: warning: Startup tips requires constraints and won't be compiled without them" 1>&2
14653 else
14654 cat >> confdefs.h <<\EOF
14655#define wxUSE_STARTUP_TIPS 1
14656EOF
14657
14658 fi
14659fi
14660
14661if test "$wxUSE_PROGRESSDLG" = "yes"; then
14662 if test "$wxUSE_CONSTRAINTS" != "yes"; then
14663 echo "configure: warning: wxProgressDialog requires constraints so it won't be compiled without them" 1>&2
14664 else
14665 cat >> confdefs.h <<\EOF
14666#define wxUSE_PROGRESSDLG 1
14667EOF
14668
14669 fi
14670fi
14671
14672if test "$wxUSE_MINIFRAME" = "yes"; then
14673 cat >> confdefs.h <<\EOF
14674#define wxUSE_MINIFRAME 1
14675EOF
14676
14677 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
14678fi
14679
14680if test "$wxUSE_HTML" = "yes"; then
14681 cat >> confdefs.h <<\EOF
14682#define wxUSE_HTML 1
14683EOF
14684
14685 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html"
14686 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS html"
14687fi
14688
14689if test "$wxUSE_VALIDATORS" = "yes"; then
14690 cat >> confdefs.h <<\EOF
14691#define wxUSE_VALIDATORS 1
14692EOF
14693
14694 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
14695fi
14696
14697if test "$wxUSE_GIF" = "yes" ; then
14698 cat >> confdefs.h <<\EOF
14699#define wxUSE_GIF 1
14700EOF
14701
14702fi
14703
14704if test "$wxUSE_PCX" = "yes" ; then
14705 cat >> confdefs.h <<\EOF
14706#define wxUSE_PCX 1
14707EOF
14708
14709fi
14710
14711if test "$wxUSE_PNM" = "yes" ; then
14712 cat >> confdefs.h <<\EOF
14713#define wxUSE_PNM 1
14714EOF
14715
14716fi
14717
14718
32832908
VZ
14719if test "$cross_compiling" = "yes"; then
14720 OSINFO="\"$host\""
14721else
14722 OSINFO=`uname -s -r -m`
14723 OSINFO="\"$OSINFO\""
14724fi
14725
aaa37c0d
VZ
14726cat >> confdefs.h <<EOF
14727#define WXWIN_OS_DESCRIPTION $OSINFO
14728EOF
14729
14730
14731
f6bcfd97
BP
14732GUILIBS="$GUI_TK_LIBRARY $TOOLKIT_LINK"
14733OPENGL_LIBS="$OPENGL_LINK"
10f2d63a 14734
f6bcfd97 14735EXTRA_LIBS="$LIBS $POSIX4_LINK $INET_LINK $WCHAR_LINK $THREADS_LINK $DMALLOC_LINK $DL_LINK $ZLIB_LINK -lm"
10f2d63a 14736if test "$wxUSE_GUI" = "yes"; then
f6bcfd97 14737 EXTRA_LIBS="$GUILIBS $PNG_LINK $JPEG_LINK $TIFF_LINK $EXTRA_LIBS"
10f2d63a
VZ
14738fi
14739
14740LD_LIBS="\${top_builddir}/lib/${WX_LIBRARY_NAME_STATIC} $EXTRA_LIBS"
14741
8461a059 14742INCLUDES="-I. -I\${top_builddir}/include -I\${top_srcdir}/include $ZLIB_INCLUDE $PNG_INCLUDE $JPEG_INCLUDE $TIFF_INCLUDE $TOOLKIT_INCLUDE"
10f2d63a 14743
f6bcfd97
BP
14744if test "$wxUSE_GTK" = 1; then
14745 WXCONFIG_INCLUDE=""
14746else
14747 WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE"
14748fi
14749
10f2d63a
VZ
14750if test "$GXX" = yes ; then
14751 CXXWARNINGS="-Wall"
d6a55c4b 14752 fi
10f2d63a
VZ
14753EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE $INCLUDES"
14754
f6bcfd97 14755CFLAGS=`echo $CFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \\+/ /g'`
10f2d63a
VZ
14756CXXFLAGS=`echo $CXXFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \+/ /g'`
14757
e694c22c
VZ
14758LDFLAGS="$LDFLAGS $PROFILE"
14759
10f2d63a
VZ
14760if test "$wxUSE_GUI" = "yes"; then
14761
bdad4e7e 14762 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS controls dialogs dragimag drawing dynamic \
bc9027cc 14763 font fractal image menu minimal richedit"
b12915c1 14764
88d3a15c 14765 CPPFLAGS="$CPPFLAGS \$(EXTRADEFS) \$(APPEXTRADEFS)"
10f2d63a
VZ
14766else
14767 SAMPLES_SUBDIRS=""
14768fi
14769
ec14dd32
VZ
14770SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
14771
14772
14773
10f2d63a
VZ
14774
14775
14776
14777
14778
14779
14780
14781
14782
14783
14784
14785
14786
14787
14788
14789
14790
14791
14792
14793
14794
14795
14796
14797
14798
14799
14800
14801
14802
14803
14804
14805
14806
14807
14808
14809
14810
14811
14812
14813
14814
14815
14816
14817
14818
14819
14820
14821
14822
14823
14824
14825
1d62a8b4 14826
bdad4e7e
RR
14827
14828
14829
14830
14831
14832
14833
32832908
VZ
14834
14835
14836
14837
14838
14839
14840
14841
14842
14843
14844
14845
14846
bdad4e7e
RR
14847
14848
14849
e694c22c 14850
b12915c1 14851
2224580a
VZ
14852
14853
14854
14855
dad6c0ea 14856
f6bcfd97
BP
14857
14858
14859
14860
dad6c0ea 14861
caa2c79b 14862
3711412e 14863
10f2d63a
VZ
14864
14865
14866echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
6f72b082 14867echo "configure:14868: checking whether ${MAKE-make} sets \${MAKE}" >&5
10f2d63a
VZ
14868set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
14869if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
14870 echo $ac_n "(cached) $ac_c" 1>&6
14871else
14872 cat > conftestmake <<\EOF
14873all:
14874 @echo 'ac_maketemp="${MAKE}"'
14875EOF
14876# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
14877eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
14878if test -n "$ac_maketemp"; then
14879 eval ac_cv_prog_make_${ac_make}_set=yes
14880else
14881 eval ac_cv_prog_make_${ac_make}_set=no
14882fi
14883rm -f conftestmake
14884fi
14885if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
14886 echo "$ac_t""yes" 1>&6
14887 SET_MAKE=
14888else
14889 echo "$ac_t""no" 1>&6
14890 SET_MAKE="MAKE=${MAKE-make}"
14891fi
14892
14893
00cf1208
RR
14894if test -d include; then
14895 if test -d include/wx; then
14896 if test -d include/wx/${TOOLKIT_DIR}; then
14897 if test -f include/wx/${TOOLKIT_DIR}/setup.h; then
14898 mv -f include/wx/${TOOLKIT_DIR}/setup.h setup.h
14899 fi
14900 fi
14901 fi
14902fi
14903
10f2d63a
VZ
14904
14905
2224580a 14906if test "$wxUSE_GUI" = "yes"; then
ec90f5e5 14907 wx_cv_path_samplesubdirs=$SAMPLES_SUBDIRS
e8482f24
GL
14908 wx_cv_path_ifs=$PATH_IFS
14909 wx_cv_program_ext=$PROGRAM_EXT
14910 wx_cv_target_library=$WX_TARGET_LIBRARY
3711412e 14911 wx_cv_target_libtype=$WX_TARGET_LIBRARY_TYPE
e8482f24 14912 subdirs="demos samples utils contrib"
2224580a
VZ
14913
14914fi
10f2d63a
VZ
14915
14916trap '' 1 2 15
14917cat > confcache <<\EOF
14918# This file is a shell script that caches the results of configure
14919# tests run on this system so they can be shared between configure
14920# scripts and configure runs. It is not useful on other systems.
14921# If it contains results you don't want to keep, you may remove or edit it.
14922#
14923# By default, configure uses ./config.cache as the cache file,
14924# creating it if it does not exist already. You can give configure
14925# the --cache-file=FILE option to use a different cache file; that is
14926# what configure does when it calls configure scripts in
14927# subdirectories, so they share the cache.
14928# Giving --cache-file=/dev/null disables caching, for debugging configure.
14929# config.status only pays attention to the cache file if you give it the
14930# --recheck option to rerun configure.
14931#
14932EOF
14933# The following way of writing the cache mishandles newlines in values,
14934# but we know of no workaround that is simple, portable, and efficient.
14935# So, don't put newlines in cache variables' values.
14936# Ultrix sh set writes to stderr and can't be redirected directly,
14937# and sets the high bit in the cache file unless we assign to the vars.
14938(set) 2>&1 |
14939 case `(ac_space=' '; set | grep ac_space) 2>&1` in
14940 *ac_space=\ *)
14941 # `set' does not quote correctly, so add quotes (double-quote substitution
14942 # turns \\\\ into \\, and sed turns \\ into \).
14943 sed -n \
14944 -e "s/'/'\\\\''/g" \
14945 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
14946 ;;
14947 *)
14948 # `set' quotes correctly as required by POSIX, so do not add quotes.
14949 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
14950 ;;
14951 esac >> confcache
14952if cmp -s $cache_file confcache; then
14953 :
14954else
14955 if test -w $cache_file; then
14956 echo "updating cache $cache_file"
14957 cat confcache > $cache_file
14958 else
14959 echo "not updating unwritable cache $cache_file"
14960 fi
14961fi
14962rm -f confcache
14963
14964trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
14965
14966test "x$prefix" = xNONE && prefix=$ac_default_prefix
14967# Let make expand exec_prefix.
14968test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14969
14970# Any assignment to VPATH causes Sun make to only execute
14971# the first set of double-colon rules, so remove it if not needed.
14972# If there is a colon in the path, we need to keep it.
14973if test "x$srcdir" = x.; then
14974 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
14975fi
14976
14977trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
14978
14979DEFS=-DHAVE_CONFIG_H
14980
14981# Without the "./", some shells look in PATH for config.status.
14982: ${CONFIG_STATUS=./config.status}
14983
14984echo creating $CONFIG_STATUS
14985rm -f $CONFIG_STATUS
14986cat > $CONFIG_STATUS <<EOF
14987#! /bin/sh
14988# Generated automatically by configure.
14989# Run this file to recreate the current configuration.
14990# This directory was configured as follows,
14991# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14992#
14993# $0 $ac_configure_args
14994#
14995# Compiler output produced by configure, useful for debugging
14996# configure, is in ./config.log if it exists.
14997
14998ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
14999for ac_option
15000do
15001 case "\$ac_option" in
15002 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15003 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
15004 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
15005 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
e8482f24 15006 echo "$CONFIG_STATUS generated by autoconf version 2.13"
10f2d63a
VZ
15007 exit 0 ;;
15008 -help | --help | --hel | --he | --h)
15009 echo "\$ac_cs_usage"; exit 0 ;;
15010 *) echo "\$ac_cs_usage"; exit 1 ;;
15011 esac
15012done
15013
15014ac_given_srcdir=$srcdir
15015ac_given_INSTALL="$INSTALL"
15016
15017trap 'rm -fr `echo "
15018 wx-config
15019 src/make.env
15020 src/makeprog.env
15021 src/makelib.env
15022 Makefile
10f2d63a
VZ
15023 setup.h:setup.h.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
15024EOF
15025cat >> $CONFIG_STATUS <<EOF
15026
15027# Protect against being on the right side of a sed subst in config.status.
15028sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
15029 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
15030$ac_vpsub
15031$extrasub
15032s%@SHELL@%$SHELL%g
15033s%@CFLAGS@%$CFLAGS%g
15034s%@CPPFLAGS@%$CPPFLAGS%g
15035s%@CXXFLAGS@%$CXXFLAGS%g
15036s%@FFLAGS@%$FFLAGS%g
15037s%@DEFS@%$DEFS%g
15038s%@LDFLAGS@%$LDFLAGS%g
15039s%@LIBS@%$LIBS%g
15040s%@exec_prefix@%$exec_prefix%g
15041s%@prefix@%$prefix%g
15042s%@program_transform_name@%$program_transform_name%g
15043s%@bindir@%$bindir%g
15044s%@sbindir@%$sbindir%g
15045s%@libexecdir@%$libexecdir%g
15046s%@datadir@%$datadir%g
15047s%@sysconfdir@%$sysconfdir%g
15048s%@sharedstatedir@%$sharedstatedir%g
15049s%@localstatedir@%$localstatedir%g
15050s%@libdir@%$libdir%g
15051s%@includedir@%$includedir%g
15052s%@oldincludedir@%$oldincludedir%g
15053s%@infodir@%$infodir%g
15054s%@mandir@%$mandir%g
7c66a493
VZ
15055s%@host@%$host%g
15056s%@host_alias@%$host_alias%g
15057s%@host_cpu@%$host_cpu%g
15058s%@host_vendor@%$host_vendor%g
15059s%@host_os@%$host_os%g
15060s%@target@%$target%g
15061s%@target_alias@%$target_alias%g
15062s%@target_cpu@%$target_cpu%g
15063s%@target_vendor@%$target_vendor%g
15064s%@target_os@%$target_os%g
15065s%@build@%$build%g
15066s%@build_alias@%$build_alias%g
15067s%@build_cpu@%$build_cpu%g
15068s%@build_vendor@%$build_vendor%g
15069s%@build_os@%$build_os%g
10f2d63a
VZ
15070s%@CC@%$CC%g
15071s%@CPP@%$CPP%g
15072s%@CXX@%$CXX%g
15073s%@CXXCPP@%$CXXCPP%g
15074s%@RANLIB@%$RANLIB%g
15075s%@AR@%$AR%g
15076s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
15077s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
15078s%@INSTALL_DATA@%$INSTALL_DATA%g
15079s%@STRIP@%$STRIP%g
15080s%@YACC@%$YACC%g
15081s%@LEX@%$LEX%g
15082s%@LEXLIB@%$LEXLIB%g
15083s%@LN_S@%$LN_S%g
6f72b082 15084s%@GTK_CONFIG_2_0@%$GTK_CONFIG_2_0%g
10f2d63a
VZ
15085s%@GTK_CONFIG@%$GTK_CONFIG%g
15086s%@GTK_CFLAGS@%$GTK_CFLAGS%g
15087s%@GTK_LIBS@%$GTK_LIBS%g
ab9b9eab
VZ
15088s%@X_CFLAGS@%$X_CFLAGS%g
15089s%@X_PRE_LIBS@%$X_PRE_LIBS%g
15090s%@X_LIBS@%$X_LIBS%g
15091s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
ec14dd32
VZ
15092s%@LEX_STEM@%$LEX_STEM%g
15093s%@PATH_IFS@%$PATH_IFS%g
10f2d63a
VZ
15094s%@WX_MAJOR_VERSION_NUMBER@%$WX_MAJOR_VERSION_NUMBER%g
15095s%@WX_MINOR_VERSION_NUMBER@%$WX_MINOR_VERSION_NUMBER%g
15096s%@WX_RELEASE_NUMBER@%$WX_RELEASE_NUMBER%g
15097s%@WX_LIBRARY_NAME@%$WX_LIBRARY_NAME%g
15098s%@WX_LIBRARY_NAME_STATIC@%$WX_LIBRARY_NAME_STATIC%g
15099s%@WX_LIBRARY_NAME_SHARED@%$WX_LIBRARY_NAME_SHARED%g
15100s%@WX_LIBRARY@%$WX_LIBRARY%g
15101s%@WX_TARGET_LIBRARY@%$WX_TARGET_LIBRARY%g
15102s%@WX_LIBRARY_LINK1@%$WX_LIBRARY_LINK1%g
15103s%@WX_LIBRARY_LINK2@%$WX_LIBRARY_LINK2%g
15104s%@WX_LIBRARY_LINK3@%$WX_LIBRARY_LINK3%g
15105s%@PROGRAM_EXT@%$PROGRAM_EXT%g
bdad4e7e
RR
15106s%@WX_LIBRARY_NAME_GL@%$WX_LIBRARY_NAME_GL%g
15107s%@WX_LIBRARY_NAME_STATIC_GL@%$WX_LIBRARY_NAME_STATIC_GL%g
15108s%@WX_LIBRARY_NAME_SHARED_GL@%$WX_LIBRARY_NAME_SHARED_GL%g
15109s%@WX_LIBRARY_GL@%$WX_LIBRARY_GL%g
15110s%@WX_TARGET_LIBRARY_GL@%$WX_TARGET_LIBRARY_GL%g
15111s%@WX_LIBRARY_LINK1_GL@%$WX_LIBRARY_LINK1_GL%g
15112s%@WX_LIBRARY_LINK2_GL@%$WX_LIBRARY_LINK2_GL%g
15113s%@WX_LIBRARY_LINK3_GL@%$WX_LIBRARY_LINK3_GL%g
10f2d63a
VZ
15114s%@WX_ALL@%$WX_ALL%g
15115s%@WX_ALL_INSTALLED@%$WX_ALL_INSTALLED%g
15116s%@SHARED_LD@%$SHARED_LD%g
15117s%@PIC_FLAG@%$PIC_FLAG%g
15118s%@DEP_INFO_FLAGS@%$DEP_INFO_FLAGS%g
caa2c79b 15119s%@CODE_GEN_FLAGS@%$CODE_GEN_FLAGS%g
1d62a8b4 15120s%@BURNT_LIBRARY_NAME@%$BURNT_LIBRARY_NAME%g
bdad4e7e 15121s%@BURNT_LIBRARY_NAME_GL@%$BURNT_LIBRARY_NAME_GL%g
f6bcfd97 15122s%@WX_TARGET_LIBRARY_SONAME@%$WX_TARGET_LIBRARY_SONAME%g
3711412e 15123s%@WX_TARGET_LIBRARY_TYPE@%$WX_TARGET_LIBRARY_TYPE%g
10f2d63a 15124s%@WXDEBUG_DEFINE@%$WXDEBUG_DEFINE%g
dad6c0ea
VZ
15125s%@USE_GUI@%$USE_GUI%g
15126s%@AFMINSTALL@%$AFMINSTALL%g
10f2d63a
VZ
15127s%@TOOLKIT@%$TOOLKIT%g
15128s%@TOOLKIT_DEF@%$TOOLKIT_DEF%g
15129s%@TOOLKIT_DIR@%$TOOLKIT_DIR%g
f6bcfd97 15130s%@TOOLKIT_NAME@%$TOOLKIT_NAME%g
10f2d63a 15131s%@TOOLKIT_INCLUDE@%$TOOLKIT_INCLUDE%g
f6bcfd97 15132s%@WXCONFIG_INCLUDE@%$WXCONFIG_INCLUDE%g
10f2d63a
VZ
15133s%@GUIHEADERS@%$GUIHEADERS%g
15134s%@GUIOBJS@%$GUIOBJS%g
15135s%@COMMONOBJS@%$COMMONOBJS%g
15136s%@GENERICOBJS@%$GENERICOBJS%g
15137s%@GUIDEPS@%$GUIDEPS%g
15138s%@COMMONDEPS@%$COMMONDEPS%g
15139s%@GENERICDEPS@%$GENERICDEPS%g
15140s%@IODBCOBJS@%$IODBCOBJS%g
15141s%@UNIXOBJS@%$UNIXOBJS%g
15142s%@UNIXDEPS@%$UNIXDEPS%g
15143s%@ALL_OBJECTS@%$ALL_OBJECTS%g
15144s%@ALL_DEPFILES@%$ALL_DEPFILES%g
10f2d63a 15145s%@GUIDIST@%$GUIDIST%g
2224580a
VZ
15146s%@PORT_FILES@%$PORT_FILES%g
15147s%@DISTDIR@%$DISTDIR%g
15148s%@RPM_SPEC@%$RPM_SPEC%g
15149s%@RPM_FILES@%$RPM_FILES%g
10f2d63a
VZ
15150s%@SRC_SUBDIRS@%$SRC_SUBDIRS%g
15151s%@INCLUDE_SUBDIRS@%$INCLUDE_SUBDIRS%g
15152s%@UTILS_SUBDIRS@%$UTILS_SUBDIRS%g
15153s%@DOCS_SUBDIRS@%$DOCS_SUBDIRS%g
15154s%@SAMPLES_SUBDIRS@%$SAMPLES_SUBDIRS%g
15155s%@USER_SUBDIRS@%$USER_SUBDIRS%g
15156s%@EXTRA_LIBS@%$EXTRA_LIBS%g
f6bcfd97 15157s%@OPENGL_LIBS@%$OPENGL_LIBS%g
b12915c1 15158s%@EXTRADEFS@%$EXTRADEFS%g
10f2d63a 15159s%@LD_LIBS@%$LD_LIBS%g
32832908
VZ
15160s%@RCINPUTSWITCH@%$RCINPUTSWITCH%g
15161s%@RCOUTPUTSWITCH@%$RCOUTPUTSWITCH%g
15162s%@RESPROGRAM@%$RESPROGRAM%g
15163s%@RESCOMP@%$RESCOMP%g
15164s%@RESFLAGS@%$RESFLAGS%g
15165s%@DLLTOOL@%$DLLTOOL%g
15166s%@AS@%$AS%g
15167s%@NM@%$NM%g
15168s%@LD@%$LD%g
15169s%@MAKEINFO@%$MAKEINFO%g
10f2d63a 15170s%@SET_MAKE@%$SET_MAKE%g
2224580a 15171s%@subdirs@%$subdirs%g
10f2d63a
VZ
15172
15173CEOF
15174EOF
15175
15176cat >> $CONFIG_STATUS <<\EOF
15177
15178# Split the substitutions into bite-sized pieces for seds with
15179# small command number limits, like on Digital OSF/1 and HP-UX.
15180ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
15181ac_file=1 # Number of current file.
15182ac_beg=1 # First line for current file.
15183ac_end=$ac_max_sed_cmds # Line after last line for current file.
15184ac_more_lines=:
15185ac_sed_cmds=""
15186while $ac_more_lines; do
15187 if test $ac_beg -gt 1; then
15188 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
15189 else
15190 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
15191 fi
15192 if test ! -s conftest.s$ac_file; then
15193 ac_more_lines=false
15194 rm -f conftest.s$ac_file
15195 else
15196 if test -z "$ac_sed_cmds"; then
15197 ac_sed_cmds="sed -f conftest.s$ac_file"
15198 else
15199 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
15200 fi
15201 ac_file=`expr $ac_file + 1`
15202 ac_beg=$ac_end
15203 ac_end=`expr $ac_end + $ac_max_sed_cmds`
15204 fi
15205done
15206if test -z "$ac_sed_cmds"; then
15207 ac_sed_cmds=cat
15208fi
15209EOF
15210
15211cat >> $CONFIG_STATUS <<EOF
15212
15213CONFIG_FILES=\${CONFIG_FILES-"wx-config
15214 src/make.env
15215 src/makeprog.env
15216 src/makelib.env
15217 Makefile
10f2d63a
VZ
15218 "}
15219EOF
15220cat >> $CONFIG_STATUS <<\EOF
15221for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
15222 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
15223 case "$ac_file" in
15224 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
15225 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
15226 *) ac_file_in="${ac_file}.in" ;;
15227 esac
15228
15229 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
15230
15231 # Remove last slash and all that follows it. Not all systems have dirname.
15232 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
15233 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
15234 # The file is in a subdirectory.
15235 test ! -d "$ac_dir" && mkdir "$ac_dir"
15236 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
15237 # A "../" for each directory in $ac_dir_suffix.
15238 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
15239 else
15240 ac_dir_suffix= ac_dots=
15241 fi
15242
15243 case "$ac_given_srcdir" in
15244 .) srcdir=.
15245 if test -z "$ac_dots"; then top_srcdir=.
15246 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
15247 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
15248 *) # Relative path.
15249 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
15250 top_srcdir="$ac_dots$ac_given_srcdir" ;;
15251 esac
15252
15253 case "$ac_given_INSTALL" in
15254 [/$]*) INSTALL="$ac_given_INSTALL" ;;
15255 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
15256 esac
15257
15258 echo creating "$ac_file"
15259 rm -f "$ac_file"
15260 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
15261 case "$ac_file" in
15262 *Makefile*) ac_comsub="1i\\
15263# $configure_input" ;;
15264 *) ac_comsub= ;;
15265 esac
15266
15267 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
15268 sed -e "$ac_comsub
15269s%@configure_input@%$configure_input%g
15270s%@srcdir@%$srcdir%g
15271s%@top_srcdir@%$top_srcdir%g
15272s%@INSTALL@%$INSTALL%g
15273" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
15274fi; done
15275rm -f conftest.s*
15276
15277# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
15278# NAME is the cpp macro being defined and VALUE is the value it is being given.
15279#
15280# ac_d sets the value in "#define NAME VALUE" lines.
15281ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
15282ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
15283ac_dC='\3'
15284ac_dD='%g'
15285# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
15286ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
15287ac_uB='\([ ]\)%\1#\2define\3'
15288ac_uC=' '
15289ac_uD='\4%g'
15290# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
15291ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
15292ac_eB='$%\1#\2define\3'
15293ac_eC=' '
15294ac_eD='%g'
15295
15296if test "${CONFIG_HEADERS+set}" != set; then
15297EOF
15298cat >> $CONFIG_STATUS <<EOF
15299 CONFIG_HEADERS="setup.h:setup.h.in"
15300EOF
15301cat >> $CONFIG_STATUS <<\EOF
15302fi
15303for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
15304 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
15305 case "$ac_file" in
15306 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
15307 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
15308 *) ac_file_in="${ac_file}.in" ;;
15309 esac
15310
15311 echo creating $ac_file
15312
15313 rm -f conftest.frag conftest.in conftest.out
15314 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
15315 cat $ac_file_inputs > conftest.in
15316
15317EOF
15318
15319# Transform confdefs.h into a sed script conftest.vals that substitutes
15320# the proper values into config.h.in to produce config.h. And first:
15321# Protect against being on the right side of a sed subst in config.status.
15322# Protect against being in an unquoted here document in config.status.
15323rm -f conftest.vals
15324cat > conftest.hdr <<\EOF
15325s/[\\&%]/\\&/g
15326s%[\\$`]%\\&%g
15327s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
15328s%ac_d%ac_u%gp
15329s%ac_u%ac_e%gp
15330EOF
15331sed -n -f conftest.hdr confdefs.h > conftest.vals
15332rm -f conftest.hdr
15333
15334# This sed command replaces #undef with comments. This is necessary, for
15335# example, in the case of _POSIX_SOURCE, which is predefined and required
15336# on some systems where configure will not decide to define it.
15337cat >> conftest.vals <<\EOF
15338s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
15339EOF
15340
15341# Break up conftest.vals because some shells have a limit on
15342# the size of here documents, and old seds have small limits too.
15343
15344rm -f conftest.tail
15345while :
15346do
15347 ac_lines=`grep -c . conftest.vals`
15348 # grep -c gives empty output for an empty file on some AIX systems.
15349 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
15350 # Write a limited-size here document to conftest.frag.
15351 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
15352 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
15353 echo 'CEOF
15354 sed -f conftest.frag conftest.in > conftest.out
15355 rm -f conftest.in
15356 mv conftest.out conftest.in
15357' >> $CONFIG_STATUS
15358 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
15359 rm -f conftest.vals
15360 mv conftest.tail conftest.vals
15361done
15362rm -f conftest.vals
15363
15364cat >> $CONFIG_STATUS <<\EOF
15365 rm -f conftest.frag conftest.h
15366 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
15367 cat conftest.in >> conftest.h
15368 rm -f conftest.in
15369 if cmp -s $ac_file conftest.h 2>/dev/null; then
15370 echo "$ac_file is unchanged"
15371 rm -f conftest.h
15372 else
15373 # Remove last slash and all that follows it. Not all systems have dirname.
15374 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
15375 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
15376 # The file is in a subdirectory.
15377 test ! -d "$ac_dir" && mkdir "$ac_dir"
15378 fi
15379 rm -f $ac_file
15380 mv conftest.h $ac_file
15381 fi
15382fi; done
15383
15384EOF
15385cat >> $CONFIG_STATUS <<EOF
15386
15387 TOOLKIT_DIR="${TOOLKIT_DIR}"
f6bcfd97 15388 TOOLKIT_NAME="${TOOLKIT_NAME}"
07eb77a6 15389 LN_S="${LN_S}"
10f2d63a
VZ
15390
15391
15392EOF
15393cat >> $CONFIG_STATUS <<\EOF
15394
15395 chmod +x wx-config
f6bcfd97
BP
15396 mv wx-config wx${TOOLKIT_NAME}-config
15397 ${LN_S} wx${TOOLKIT_NAME}-config wx-config
00cf1208
RR
15398
15399
15400 if test ! -d lib; then
15401 mkdir lib
15402 fi
15403 if test ! -d lib/wx; then
15404 mkdir lib/wx
15405 fi
15406 if test ! -d lib/wx/include; then
15407 mkdir lib/wx/include
15408 fi
15409 if test ! -d lib/wx/include/wx; then
15410 mkdir lib/wx/include/wx
15411 fi
f6bcfd97
BP
15412 if test ! -d lib/wx/include/wx/${TOOLKIT_NAME}; then
15413 mkdir lib/wx/include/wx/${TOOLKIT_NAME}
00cf1208
RR
15414 fi
15415 if test -f setup.h; then
f6bcfd97 15416 cp -f setup.h lib/wx/include/wx/${TOOLKIT_NAME}/setup.h
00cf1208 15417 fi
07eb77a6 15418
00cf1208 15419
10f2d63a
VZ
15420 if test ! -d include; then
15421 mkdir include
15422 fi
15423 if test ! -d include/wx; then
15424 mkdir include/wx
15425 fi
15426 if test ! -d include/wx/${TOOLKIT_DIR}; then
15427 mkdir include/wx/${TOOLKIT_DIR}
15428 fi
afc31813
VZ
15429 if test -f setup.h; then
15430 mv -f setup.h include/wx/${TOOLKIT_DIR}/setup.h
15431 fi
00cf1208 15432
10f2d63a
VZ
15433
15434exit 0
15435EOF
15436chmod +x $CONFIG_STATUS
15437rm -fr confdefs* $ac_clean_files
15438test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
15439
2224580a
VZ
15440if test "$no_recursion" != yes; then
15441
15442 # Remove --cache-file and --srcdir arguments so they do not pile up.
15443 ac_sub_configure_args=
15444 ac_prev=
15445 for ac_arg in $ac_configure_args; do
15446 if test -n "$ac_prev"; then
15447 ac_prev=
15448 continue
15449 fi
15450 case "$ac_arg" in
15451 -cache-file | --cache-file | --cache-fil | --cache-fi \
15452 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
15453 ac_prev=cache_file ;;
15454 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
15455 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
15456 ;;
15457 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
15458 ac_prev=srcdir ;;
15459 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
15460 ;;
15461 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
15462 esac
15463 done
15464
e8482f24 15465 for ac_config_dir in demos samples utils contrib; do
2224580a
VZ
15466
15467 # Do not complain, so a configure script can configure whichever
15468 # parts of a large source tree are present.
15469 if test ! -d $srcdir/$ac_config_dir; then
15470 continue
15471 fi
15472
15473 echo configuring in $ac_config_dir
15474
15475 case "$srcdir" in
15476 .) ;;
15477 *)
15478 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
15479 else
15480 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
15481 fi
15482 ;;
15483 esac
15484
15485 ac_popdir=`pwd`
15486 cd $ac_config_dir
15487
15488 # A "../" for each directory in /$ac_config_dir.
15489 ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
15490
15491 case "$srcdir" in
15492 .) # No --srcdir option. We are building in place.
15493 ac_sub_srcdir=$srcdir ;;
15494 /*) # Absolute path.
15495 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
15496 *) # Relative path.
15497 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
15498 esac
15499
15500 # Check for guested configure; otherwise get Cygnus style configure.
15501 if test -f $ac_sub_srcdir/configure; then
15502 ac_sub_configure=$ac_sub_srcdir/configure
15503 elif test -f $ac_sub_srcdir/configure.in; then
15504 ac_sub_configure=$ac_configure
15505 else
15506 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
15507 ac_sub_configure=
15508 fi
15509
15510 # The recursion is here.
15511 if test -n "$ac_sub_configure"; then
15512
15513 # Make the cache file name correct relative to the subdirectory.
15514 case "$cache_file" in
15515 /*) ac_sub_cache_file=$cache_file ;;
15516 *) # Relative path.
15517 ac_sub_cache_file="$ac_dots$cache_file" ;;
15518 esac
15519 case "$ac_given_INSTALL" in
15520 [/$]*) INSTALL="$ac_given_INSTALL" ;;
15521 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
15522 esac
15523
15524 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
15525 # The eval makes quoting arguments work.
15526 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
15527 then :
15528 else
15529 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
15530 fi
15531 fi
15532
15533 cd $ac_popdir
15534 done
15535fi
15536
10f2d63a 15537