]> git.saurik.com Git - wxWidgets.git/blame - configure
fixed bug in mouse handling
[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
3fed1840
RR
82--with-freetype use freetype (font rasterizer)"
83ac_help="$ac_help
10f2d63a
VZ
84--with-opengl use OpenGL (or Mesa)"
85ac_help="$ac_help
b12915c1
VZ
86--with-dmalloc use dmalloc library (www.letters.com/dmalloc)"
87ac_help="$ac_help
88--with-zlib use zlib for LZW compression"
89ac_help="$ac_help
10f2d63a
VZ
90--with-odbc use the IODBC and wxODBC classes"
91ac_help="$ac_help
92--enable-shared create shared library code"
93ac_help="$ac_help
00cf1208
RR
94--enable-burnt_name create set name in shared library "
95ac_help="$ac_help
10f2d63a
VZ
96--enable-optimise create optimised code"
97ac_help="$ac_help
98--enable-debug same as debug_flag and debug_info"
99ac_help="$ac_help
100--enable-debug_flag set __WXDEBUG__ flag (recommended for developers!)"
101ac_help="$ac_help
102--enable-debug_info create code with debugging information"
103ac_help="$ac_help
104--enable-debug_gdb create code with extra GDB debugging information"
105ac_help="$ac_help
106--enable-debug_cntxt use wxDebugContext"
107ac_help="$ac_help
108--enable-mem_tracing create code with memory tracing"
109ac_help="$ac_help
110--enable-profile create code with profiling information"
111ac_help="$ac_help
112--enable-no_rtti create code without RTTI information"
113ac_help="$ac_help
114--enable-no_exceptions create code without exceptions information"
115ac_help="$ac_help
116--enable-permissive compile code disregarding strict ANSI"
117ac_help="$ac_help
118--enable-no_deps create code without dependency information"
119ac_help="$ac_help
120--enable-intl use internationalization system"
121ac_help="$ac_help
122--enable-config use wxConfig (and derived) classes"
123ac_help="$ac_help
124--enable-sockets use socket/network classes"
125ac_help="$ac_help
10f2d63a
VZ
126--enable-ipc use interprocess communication (wxSocket etc.)"
127ac_help="$ac_help
eb4efbdc
VZ
128--enable-dialupman use dialup network classes"
129ac_help="$ac_help
10f2d63a
VZ
130--enable-apple_ieee use the Apple IEEE codec"
131ac_help="$ac_help
132--enable-timedate use date/time classes"
133ac_help="$ac_help
134--enable-wave use wxWave class"
135ac_help="$ac_help
136--enable-fraction use wxFraction class"
137ac_help="$ac_help
138--enable-dynlib use wxLibrary class for DLL loading"
139ac_help="$ac_help
140--enable-longlong use wxLongLong class"
141ac_help="$ac_help
142--enable-log use logging system"
143ac_help="$ac_help
144--enable-streams use wxStream etc classes"
145ac_help="$ac_help
146--enable-file use wxFile classes"
147ac_help="$ac_help
148--enable-textfile use wxTextFile classes"
149ac_help="$ac_help
150--enable-unicode compile wxString with Unicode support"
151ac_help="$ac_help
152--enable-wcsrtombs use wcsrtombs instead of buggy (GNU libc1/Linux libc5) wcstombs"
153ac_help="$ac_help
154--enable-wxprintfv use wxWindows implementation of vprintf()"
155ac_help="$ac_help
10f2d63a
VZ
156--enable-std_iostreams use standard C++ stream classes"
157ac_help="$ac_help
24528b0c
VS
158--enable-filesystem use virtual file systems classes"
159ac_help="$ac_help
10f2d63a
VZ
160--enable-fs_inet use virtual HTTP/FTP filesystems"
161ac_help="$ac_help
162--enable-fs_zip use virtual ZIP filesystems"
163ac_help="$ac_help
164--enable-zipstream use wxZipInputStream"
165ac_help="$ac_help
eb4efbdc
VZ
166--enable-catch_segvs catch signals and pass them to wxApp::OnFatalException"
167ac_help="$ac_help
10f2d63a
VZ
168--enable-threads use threads"
169ac_help="$ac_help
170--enable-serial use class serialization"
171ac_help="$ac_help
172--enable-docview use document view architecture"
173ac_help="$ac_help
174--enable-help use help (using external browser at present)"
175ac_help="$ac_help
176--enable-constraints use layout-constraints system"
177ac_help="$ac_help
178--enable-printarch use printing architecture"
179ac_help="$ac_help
180--enable-mdi use multiple document interface architecture"
181ac_help="$ac_help
182--enable-postscript use wxPostscriptDC device context (default for gtk+)"
183ac_help="$ac_help
184--enable-prologio use Prolog IO library"
185ac_help="$ac_help
186--enable-resources use wxWindows resources"
187ac_help="$ac_help
188--enable-xresources use X resources for save (default for gtk+)"
189ac_help="$ac_help
190--enable-clipboard use wxClipboard classes"
191ac_help="$ac_help
192--enable-dnd use Drag'n'Drop classes"
193ac_help="$ac_help
194--enable-wxtree make wxTree library"
195ac_help="$ac_help
196--enable-controls use all usual controls"
197ac_help="$ac_help
198--enable-accel use accelerators"
199ac_help="$ac_help
200--enable-caret use wxCaret class"
201ac_help="$ac_help
202--enable-bmpbutton use wxBitmapButton class"
203ac_help="$ac_help
204--enable-checkbox use wxCheckBox class"
205ac_help="$ac_help
206--enable-checklst use wxCheckListBox (listbox with checkboxes) class"
207ac_help="$ac_help
208--enable-choice use wxChoice class"
209ac_help="$ac_help
210--enable-combobox use wxComboBox classes"
211ac_help="$ac_help
212--enable-gauge use wxGauge class"
213ac_help="$ac_help
214--enable-grid use wxGrid class"
215ac_help="$ac_help
216--enable-newgrid use new wxGrid class"
217ac_help="$ac_help
218--enable-imaglist use wxImageList class"
219ac_help="$ac_help
220--enable-listbox use wxListBox class"
221ac_help="$ac_help
222--enable-listctrl use wxListCtrl class"
223ac_help="$ac_help
224--enable-notebook use wxNotebook class"
225ac_help="$ac_help
226--enable-radiobox use wxRadioBox class"
227ac_help="$ac_help
228--enable-radiobtn use wxRadioButton class"
229ac_help="$ac_help
230--enable-sash use wxSashWindow class"
231ac_help="$ac_help
232--enable-scrollbar use wxScrollBar class and scrollable windows"
233ac_help="$ac_help
234--enable-slider use wxSlider class"
235ac_help="$ac_help
236--enable-spinbtn use wxSpinButton class"
237ac_help="$ac_help
56cfaa52
RR
238--enable-spinctrl use wxSpinCtrl class"
239ac_help="$ac_help
10f2d63a
VZ
240--enable-splitter use wxSplitterWindow class"
241ac_help="$ac_help
242--enable-statbmp use wxStaticBitmap class"
243ac_help="$ac_help
244--enable-statbox use wxStaticBox class"
245ac_help="$ac_help
246--enable-statline use wxStaticLine class"
247ac_help="$ac_help
248--enable-statusbar use wxStatusBar class"
249ac_help="$ac_help
250--enable-tabdialog use wxTabControl class"
251ac_help="$ac_help
252--enable-toolbar use wxToolBar class"
253ac_help="$ac_help
360d6699
VZ
254--enable-tbarnative use native wxToolBar class"
255ac_help="$ac_help
256--enable-tbarsmpl use wxToolBarSimple class"
257ac_help="$ac_help
10f2d63a
VZ
258--enable-treectrl use wxTreeCtrl class"
259ac_help="$ac_help
260--enable-commondlg use common dialogs (wxDirDialog, wxProgressDialog, wxTextDialog, ...)"
261ac_help="$ac_help
262--enable-dirdlg use wxDirDialog"
263ac_help="$ac_help
264--enable-textdlg use wxTextDialog"
265ac_help="$ac_help
266--enable-tipdlg use startup tips"
267ac_help="$ac_help
268--enable-progressdlg use wxProgressDialog"
269ac_help="$ac_help
270--enable-miniframe use wxMiniFrame class"
271ac_help="$ac_help
272--enable-html use wxHTML sub-library"
273ac_help="$ac_help
274--enable-tooltips use wxToolTip class"
275ac_help="$ac_help
276--enable-splines use spline drawing code"
277ac_help="$ac_help
278--enable-validators use wxValidator and derived classes"
279ac_help="$ac_help
280--enable-busyinfo use wxBusyInfo"
281ac_help="$ac_help
9b33fe02
VZ
282--enable-plot use wxPlot"
283ac_help="$ac_help
f6bcfd97
BP
284--enable-joystick compile in joystick support (Linux only)"
285ac_help="$ac_help
10f2d63a
VZ
286--enable-gif use gif images (GIF file format)"
287ac_help="$ac_help
288--enable-pcx use pcx images (PCX file format)"
289ac_help="$ac_help
290--enable-pnm use pnm images (PNM file format)"
6f72b082
OK
291ac_help="$ac_help
292 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)"
293ac_help="$ac_help
294 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)"
295ac_help="$ac_help
296 --disable-gtktest Do not try to compile and run a test GTK program"
ab9b9eab
VZ
297ac_help="$ac_help
298 --with-x use the X Window System"
10f2d63a
VZ
299
300# Initialize some variables set by options.
301# The variables have the same names as the options, with
302# dashes changed to underlines.
303build=NONE
304cache_file=./config.cache
305exec_prefix=NONE
306host=NONE
307no_create=
308nonopt=NONE
309no_recursion=
310prefix=NONE
311program_prefix=NONE
312program_suffix=NONE
313program_transform_name=s,x,x,
314silent=
315site=
316srcdir=
317target=NONE
318verbose=
319x_includes=NONE
320x_libraries=NONE
321bindir='${exec_prefix}/bin'
322sbindir='${exec_prefix}/sbin'
323libexecdir='${exec_prefix}/libexec'
324datadir='${prefix}/share'
325sysconfdir='${prefix}/etc'
326sharedstatedir='${prefix}/com'
327localstatedir='${prefix}/var'
328libdir='${exec_prefix}/lib'
329includedir='${prefix}/include'
330oldincludedir='/usr/include'
331infodir='${prefix}/info'
332mandir='${prefix}/man'
333
334# Initialize some other variables.
335subdirs=
336MFLAGS= MAKEFLAGS=
337SHELL=${CONFIG_SHELL-/bin/sh}
338# Maximum number of lines to put in a shell here document.
339ac_max_here_lines=12
340
341ac_prev=
342for ac_option
343do
344
345 # If the previous option needs an argument, assign it.
346 if test -n "$ac_prev"; then
347 eval "$ac_prev=\$ac_option"
348 ac_prev=
349 continue
350 fi
351
352 case "$ac_option" in
353 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
354 *) ac_optarg= ;;
355 esac
356
357 # Accept the important Cygnus configure options, so we can diagnose typos.
358
359 case "$ac_option" in
360
361 -bindir | --bindir | --bindi | --bind | --bin | --bi)
362 ac_prev=bindir ;;
363 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
364 bindir="$ac_optarg" ;;
365
366 -build | --build | --buil | --bui | --bu)
367 ac_prev=build ;;
368 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
369 build="$ac_optarg" ;;
370
371 -cache-file | --cache-file | --cache-fil | --cache-fi \
372 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
373 ac_prev=cache_file ;;
374 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
375 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
376 cache_file="$ac_optarg" ;;
377
378 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
379 ac_prev=datadir ;;
380 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
381 | --da=*)
382 datadir="$ac_optarg" ;;
383
384 -disable-* | --disable-*)
385 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
386 # Reject names that are not valid shell variable names.
387 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
388 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
389 fi
390 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
391 eval "enable_${ac_feature}=no" ;;
392
393 -enable-* | --enable-*)
394 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
395 # Reject names that are not valid shell variable names.
396 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
397 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
398 fi
399 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
400 case "$ac_option" in
401 *=*) ;;
402 *) ac_optarg=yes ;;
403 esac
404 eval "enable_${ac_feature}='$ac_optarg'" ;;
405
406 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
407 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
408 | --exec | --exe | --ex)
409 ac_prev=exec_prefix ;;
410 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
411 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
412 | --exec=* | --exe=* | --ex=*)
413 exec_prefix="$ac_optarg" ;;
414
415 -gas | --gas | --ga | --g)
416 # Obsolete; use --with-gas.
417 with_gas=yes ;;
418
419 -help | --help | --hel | --he)
420 # Omit some internal or obsolete options to make the list less imposing.
421 # This message is too long to be a string in the A/UX 3.1 sh.
422 cat << EOF
423Usage: configure [options] [host]
424Options: [defaults in brackets after descriptions]
425Configuration:
426 --cache-file=FILE cache test results in FILE
427 --help print this message
428 --no-create do not create output files
429 --quiet, --silent do not print \`checking...' messages
430 --version print the version of autoconf that created configure
431Directory and file names:
432 --prefix=PREFIX install architecture-independent files in PREFIX
433 [$ac_default_prefix]
434 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
435 [same as prefix]
436 --bindir=DIR user executables in DIR [EPREFIX/bin]
437 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
438 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
439 --datadir=DIR read-only architecture-independent data in DIR
440 [PREFIX/share]
441 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
442 --sharedstatedir=DIR modifiable architecture-independent data in DIR
443 [PREFIX/com]
444 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
445 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
446 --includedir=DIR C header files in DIR [PREFIX/include]
447 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
448 --infodir=DIR info documentation in DIR [PREFIX/info]
449 --mandir=DIR man documentation in DIR [PREFIX/man]
450 --srcdir=DIR find the sources in DIR [configure dir or ..]
451 --program-prefix=PREFIX prepend PREFIX to installed program names
452 --program-suffix=SUFFIX append SUFFIX to installed program names
453 --program-transform-name=PROGRAM
454 run sed PROGRAM on installed program names
455EOF
456 cat << EOF
457Host type:
458 --build=BUILD configure for building on BUILD [BUILD=HOST]
459 --host=HOST configure for HOST [guessed]
460 --target=TARGET configure for TARGET [TARGET=HOST]
461Features and packages:
462 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
463 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
464 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
465 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
466 --x-includes=DIR X include files are in DIR
467 --x-libraries=DIR X library files are in DIR
468EOF
469 if test -n "$ac_help"; then
470 echo "--enable and --with options recognized:$ac_help"
471 fi
472 exit 0 ;;
473
474 -host | --host | --hos | --ho)
475 ac_prev=host ;;
476 -host=* | --host=* | --hos=* | --ho=*)
477 host="$ac_optarg" ;;
478
479 -includedir | --includedir | --includedi | --included | --include \
480 | --includ | --inclu | --incl | --inc)
481 ac_prev=includedir ;;
482 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
483 | --includ=* | --inclu=* | --incl=* | --inc=*)
484 includedir="$ac_optarg" ;;
485
486 -infodir | --infodir | --infodi | --infod | --info | --inf)
487 ac_prev=infodir ;;
488 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
489 infodir="$ac_optarg" ;;
490
491 -libdir | --libdir | --libdi | --libd)
492 ac_prev=libdir ;;
493 -libdir=* | --libdir=* | --libdi=* | --libd=*)
494 libdir="$ac_optarg" ;;
495
496 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
497 | --libexe | --libex | --libe)
498 ac_prev=libexecdir ;;
499 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
500 | --libexe=* | --libex=* | --libe=*)
501 libexecdir="$ac_optarg" ;;
502
503 -localstatedir | --localstatedir | --localstatedi | --localstated \
504 | --localstate | --localstat | --localsta | --localst \
505 | --locals | --local | --loca | --loc | --lo)
506 ac_prev=localstatedir ;;
507 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
508 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
509 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
510 localstatedir="$ac_optarg" ;;
511
512 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
513 ac_prev=mandir ;;
514 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
515 mandir="$ac_optarg" ;;
516
517 -nfp | --nfp | --nf)
518 # Obsolete; use --without-fp.
519 with_fp=no ;;
520
521 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
522 | --no-cr | --no-c)
523 no_create=yes ;;
524
525 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
526 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
527 no_recursion=yes ;;
528
529 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
530 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
531 | --oldin | --oldi | --old | --ol | --o)
532 ac_prev=oldincludedir ;;
533 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
534 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
535 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
536 oldincludedir="$ac_optarg" ;;
537
538 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
539 ac_prev=prefix ;;
540 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
541 prefix="$ac_optarg" ;;
542
543 -program-prefix | --program-prefix | --program-prefi | --program-pref \
544 | --program-pre | --program-pr | --program-p)
545 ac_prev=program_prefix ;;
546 -program-prefix=* | --program-prefix=* | --program-prefi=* \
547 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
548 program_prefix="$ac_optarg" ;;
549
550 -program-suffix | --program-suffix | --program-suffi | --program-suff \
551 | --program-suf | --program-su | --program-s)
552 ac_prev=program_suffix ;;
553 -program-suffix=* | --program-suffix=* | --program-suffi=* \
554 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
555 program_suffix="$ac_optarg" ;;
556
557 -program-transform-name | --program-transform-name \
558 | --program-transform-nam | --program-transform-na \
559 | --program-transform-n | --program-transform- \
560 | --program-transform | --program-transfor \
561 | --program-transfo | --program-transf \
562 | --program-trans | --program-tran \
563 | --progr-tra | --program-tr | --program-t)
564 ac_prev=program_transform_name ;;
565 -program-transform-name=* | --program-transform-name=* \
566 | --program-transform-nam=* | --program-transform-na=* \
567 | --program-transform-n=* | --program-transform-=* \
568 | --program-transform=* | --program-transfor=* \
569 | --program-transfo=* | --program-transf=* \
570 | --program-trans=* | --program-tran=* \
571 | --progr-tra=* | --program-tr=* | --program-t=*)
572 program_transform_name="$ac_optarg" ;;
573
574 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
575 | -silent | --silent | --silen | --sile | --sil)
576 silent=yes ;;
577
578 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
579 ac_prev=sbindir ;;
580 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
581 | --sbi=* | --sb=*)
582 sbindir="$ac_optarg" ;;
583
584 -sharedstatedir | --sharedstatedir | --sharedstatedi \
585 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
586 | --sharedst | --shareds | --shared | --share | --shar \
587 | --sha | --sh)
588 ac_prev=sharedstatedir ;;
589 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
590 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
591 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
592 | --sha=* | --sh=*)
593 sharedstatedir="$ac_optarg" ;;
594
595 -site | --site | --sit)
596 ac_prev=site ;;
597 -site=* | --site=* | --sit=*)
598 site="$ac_optarg" ;;
599
600 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
601 ac_prev=srcdir ;;
602 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
603 srcdir="$ac_optarg" ;;
604
605 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
606 | --syscon | --sysco | --sysc | --sys | --sy)
607 ac_prev=sysconfdir ;;
608 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
609 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
610 sysconfdir="$ac_optarg" ;;
611
612 -target | --target | --targe | --targ | --tar | --ta | --t)
613 ac_prev=target ;;
614 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
615 target="$ac_optarg" ;;
616
617 -v | -verbose | --verbose | --verbos | --verbo | --verb)
618 verbose=yes ;;
619
620 -version | --version | --versio | --versi | --vers)
e8482f24 621 echo "configure generated by autoconf version 2.13"
10f2d63a
VZ
622 exit 0 ;;
623
624 -with-* | --with-*)
625 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
626 # Reject names that are not valid shell variable names.
627 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
628 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
629 fi
630 ac_package=`echo $ac_package| sed 's/-/_/g'`
631 case "$ac_option" in
632 *=*) ;;
633 *) ac_optarg=yes ;;
634 esac
635 eval "with_${ac_package}='$ac_optarg'" ;;
636
637 -without-* | --without-*)
638 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
639 # Reject names that are not valid shell variable names.
640 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
641 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
642 fi
643 ac_package=`echo $ac_package| sed 's/-/_/g'`
644 eval "with_${ac_package}=no" ;;
645
646 --x)
647 # Obsolete; use --with-x.
648 with_x=yes ;;
649
650 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
651 | --x-incl | --x-inc | --x-in | --x-i)
652 ac_prev=x_includes ;;
653 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
654 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
655 x_includes="$ac_optarg" ;;
656
657 -x-libraries | --x-libraries | --x-librarie | --x-librari \
658 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
659 ac_prev=x_libraries ;;
660 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
661 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
662 x_libraries="$ac_optarg" ;;
663
664 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
665 ;;
666
667 *)
668 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
669 echo "configure: warning: $ac_option: invalid host type" 1>&2
670 fi
671 if test "x$nonopt" != xNONE; then
672 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
673 fi
674 nonopt="$ac_option"
675 ;;
676
677 esac
678done
679
680if test -n "$ac_prev"; then
681 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
682fi
683
684trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
685
686# File descriptor usage:
687# 0 standard input
688# 1 file creation
689# 2 errors and warnings
690# 3 some systems may open it to /dev/tty
691# 4 used on the Kubota Titan
692# 6 checking for... messages and results
693# 5 compiler messages saved in config.log
694if test "$silent" = yes; then
695 exec 6>/dev/null
696else
697 exec 6>&1
698fi
699exec 5>./config.log
700
701echo "\
702This file contains any messages produced by compilers while
703running configure, to aid debugging if configure makes a mistake.
704" 1>&5
705
706# Strip out --no-create and --no-recursion so they do not pile up.
707# Also quote any args containing shell metacharacters.
708ac_configure_args=
709for ac_arg
710do
711 case "$ac_arg" in
712 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
713 | --no-cr | --no-c) ;;
714 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
715 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
716 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
717 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
718 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
719 esac
720done
721
722# NLS nuisances.
723# Only set these to C if already set. These must not be set unconditionally
724# because not all systems understand e.g. LANG=C (notably SCO).
725# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
726# Non-C LC_CTYPE values break the ctype check.
727if test "${LANG+set}" = set; then LANG=C; export LANG; fi
728if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
729if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
730if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
731
732# confdefs.h avoids OS command line length limits that DEFS can exceed.
733rm -rf conftest* confdefs.h
734# AIX cpp loses on an empty file, so make sure it contains at least a newline.
735echo > confdefs.h
736
737# A filename unique to this package, relative to the directory that
738# configure is in, which we can look for to find out if srcdir is correct.
739ac_unique_file=wx-config.in
740
741# Find the source files, if location was not specified.
742if test -z "$srcdir"; then
743 ac_srcdir_defaulted=yes
744 # Try the directory containing this script, then its parent.
745 ac_prog=$0
746 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
747 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
748 srcdir=$ac_confdir
749 if test ! -r $srcdir/$ac_unique_file; then
750 srcdir=..
751 fi
752else
753 ac_srcdir_defaulted=no
754fi
755if test ! -r $srcdir/$ac_unique_file; then
756 if test "$ac_srcdir_defaulted" = yes; then
757 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
758 else
759 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
760 fi
761fi
762srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
763
764# Prefer explicitly selected file to automatically selected ones.
765if test -z "$CONFIG_SITE"; then
766 if test "x$prefix" != xNONE; then
767 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
768 else
769 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
770 fi
771fi
772for ac_site_file in $CONFIG_SITE; do
773 if test -r "$ac_site_file"; then
774 echo "loading site script $ac_site_file"
775 . "$ac_site_file"
776 fi
777done
778
779if test -r "$cache_file"; then
780 echo "loading cache $cache_file"
781 . $cache_file
782else
783 echo "creating cache $cache_file"
784 > $cache_file
785fi
786
787ac_ext=c
788# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
789ac_cpp='$CPP $CPPFLAGS'
790ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
791ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
792cross_compiling=$ac_cv_prog_cc_cross
793
794ac_exeext=
795ac_objext=o
796if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
797 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
798 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
799 ac_n= ac_c='
800' ac_t=' '
801 else
802 ac_n=-n ac_c= ac_t=
803 fi
804else
805 ac_n= ac_c='\c' ac_t=
806fi
807
808
809
7c66a493
VZ
810ac_aux_dir=
811for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
812 if test -f $ac_dir/install-sh; then
813 ac_aux_dir=$ac_dir
814 ac_install_sh="$ac_aux_dir/install-sh -c"
815 break
816 elif test -f $ac_dir/install.sh; then
817 ac_aux_dir=$ac_dir
818 ac_install_sh="$ac_aux_dir/install.sh -c"
819 break
820 fi
821done
822if test -z "$ac_aux_dir"; then
823 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
824fi
825ac_config_guess=$ac_aux_dir/config.guess
826ac_config_sub=$ac_aux_dir/config.sub
827ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
828
829
830# Do some error checking and defaulting for the host and target type.
831# The inputs are:
832# configure --host=HOST --target=TARGET --build=BUILD NONOPT
833#
834# The rules are:
835# 1. You are not allowed to specify --host, --target, and nonopt at the
836# same time.
837# 2. Host defaults to nonopt.
838# 3. If nonopt is not specified, then host defaults to the current host,
839# as determined by config.guess.
840# 4. Target and build default to nonopt.
841# 5. If nonopt is not specified, then target and build default to host.
842
843# The aliases save the names the user supplied, while $host etc.
844# will get canonicalized.
845case $host---$target---$nonopt in
846NONE---*---* | *---NONE---* | *---*---NONE) ;;
847*) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
848esac
849
850
851# Make sure we can run config.sub.
852if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
853else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
854fi
855
856echo $ac_n "checking host system type""... $ac_c" 1>&6
3fed1840 857echo "configure:858: checking host system type" >&5
7c66a493
VZ
858
859host_alias=$host
860case "$host_alias" in
861NONE)
862 case $nonopt in
863 NONE)
864 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
865 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
866 fi ;;
867 *) host_alias=$nonopt ;;
868 esac ;;
869esac
870
871host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
872host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
873host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
874host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
875echo "$ac_t""$host" 1>&6
876
877echo $ac_n "checking target system type""... $ac_c" 1>&6
3fed1840 878echo "configure:879: checking target system type" >&5
7c66a493
VZ
879
880target_alias=$target
881case "$target_alias" in
882NONE)
883 case $nonopt in
884 NONE) target_alias=$host_alias ;;
885 *) target_alias=$nonopt ;;
886 esac ;;
887esac
888
889target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
890target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
891target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
892target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
893echo "$ac_t""$target" 1>&6
894
895echo $ac_n "checking build system type""... $ac_c" 1>&6
3fed1840 896echo "configure:897: checking build system type" >&5
7c66a493
VZ
897
898build_alias=$build
899case "$build_alias" in
900NONE)
901 case $nonopt in
902 NONE) build_alias=$host_alias ;;
903 *) build_alias=$nonopt ;;
904 esac ;;
905esac
906
907build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
908build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
909build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
910build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
911echo "$ac_t""$build" 1>&6
912
913test "$host_alias" != "$target_alias" &&
914 test "$program_prefix$program_suffix$program_transform_name" = \
915 NONENONEs,x,x, &&
916 program_prefix=${target_alias}-
917
918
10f2d63a
VZ
919
920WX_MAJOR_VERSION_NUMBER=2
37d403aa 921WX_MINOR_VERSION_NUMBER=3
f6bcfd97 922WX_RELEASE_NUMBER=0
10f2d63a
VZ
923
924WX_INTERFACE_AGE=0
f6bcfd97 925WX_BINARY_AGE=1
10f2d63a
VZ
926
927WX_VERSION=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER.$WX_RELEASE_NUMBER
928
929WX_RELEASE=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER
930WX_CURRENT=`expr $WX_RELEASE_NUMBER - $WX_INTERFACE_AGE`
931WX_REVISION=$WX_INTERFACE_AGE
932WX_AGE=`expr $WX_BINARY_AGE - $WX_INTERFACE_AGE`
933
934
935USE_UNIX=1
936USE_WIN32=0
b12915c1
VZ
937USE_BEOS=0
938
10f2d63a
VZ
939USE_LINUX=
940USE_SGI=
941USE_HPUX=
942USE_SYSV=
943USE_SVR4=
944USE_AIX=
945USE_SUN=
946USE_SOLARIS=
947USE_SUNOS=
948USE_ALPHA=
949USE_OSF=
950USE_BSD=
951USE_FREEBSD=
f6bcfd97 952USE_NETBSD=
10f2d63a
VZ
953USE_VMS=
954USE_ULTRIX=
955USE_CYGWIN=
956USE_MINGW=
957USE_DATA_GENERAL=
958
ab9b9eab
VZ
959NEEDS_D_REENTRANT_FOR_R_FUNCS=0
960
e07802fc 961ALL_TOOLKITS="CYGWIN GTK MINGW MOTIF WINE PM"
10f2d63a
VZ
962
963DEFAULT_wxUSE_GTK=0
964DEFAULT_wxUSE_MOTIF=0
965DEFAULT_wxUSE_MSW=0
966DEFAULT_wxUSE_WINE=0
e07802fc 967DEFAULT_wxUSE_PM=0
10f2d63a
VZ
968
969DEFAULT_DEFAULT_wxUSE_GTK=0
970DEFAULT_DEFAULT_wxUSE_MOTIF=0
971DEFAULT_DEFAULT_wxUSE_MSW=0
972DEFAULT_DEFAULT_wxUSE_WINE=0
e07802fc 973DEFAULT_DEFAULT_wxUSE_PM=0
10f2d63a 974
d6a55c4b
VZ
975PROGRAM_EXT=
976
10f2d63a
VZ
977case "${host}" in
978 *-hp-hpux* )
979 USE_HPUX=1
980 DEFAULT_DEFAULT_wxUSE_MOTIF=1
ab9b9eab 981 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
10f2d63a
VZ
982 cat >> confdefs.h <<\EOF
983#define __HPUX__ 1
984EOF
985
986 ;;
987 *-*-linux* )
988 USE_LINUX=1
989 cat >> confdefs.h <<\EOF
990#define __LINUX__ 1
991EOF
992
993 TMP=`uname -m`
994 if test "x$TMP" = "xalpha"; then
995 USE_ALPHA=1
996 cat >> confdefs.h <<\EOF
997#define __ALPHA__ 1
998EOF
999
1000 fi
1001 DEFAULT_DEFAULT_wxUSE_GTK=1
1002 ;;
1003 *-*-irix5* | *-*-irix6* )
1004 USE_SGI=1
1005 USE_SVR4=1
1006 cat >> confdefs.h <<\EOF
1007#define __SGI__ 1
1008EOF
1009
1010 cat >> confdefs.h <<\EOF
1011#define __SVR4__ 1
1012EOF
1013
1014 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1015 ;;
1016 *-*-solaris2* )
1017 USE_SUN=1
1018 USE_SOLARIS=1
1019 USE_SVR4=1
1020 cat >> confdefs.h <<\EOF
1021#define __SUN__ 1
1022EOF
1023
1024 cat >> confdefs.h <<\EOF
1025#define __SOLARIS__ 1
1026EOF
1027
1028 cat >> confdefs.h <<\EOF
1029#define __SVR4__ 1
1030EOF
1031
1032 DEFAULT_DEFAULT_wxUSE_MOTIF=1
ab9b9eab 1033 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
10f2d63a
VZ
1034 ;;
1035 *-*-sunos4* )
1036 USE_SUN=1
1037 USE_SUNOS=1
1038 USE_BSD=1
1039 cat >> confdefs.h <<\EOF
1040#define __SUN__ 1
1041EOF
1042
1043 cat >> confdefs.h <<\EOF
1044#define __SUNOS__ 1
1045EOF
1046
1047 cat >> confdefs.h <<\EOF
1048#define __BSD__ 1
1049EOF
1050
1051 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1052 ;;
f6bcfd97 1053 *-*-freebsd*)
10f2d63a
VZ
1054 USE_BSD=1
1055 USE_FREEBSD=1
1056 cat >> confdefs.h <<\EOF
1057#define __FREEBSD__ 1
1058EOF
1059
1060 cat >> confdefs.h <<\EOF
1061#define __BSD__ 1
f6bcfd97
BP
1062EOF
1063
1064 DEFAULT_DEFAULT_wxUSE_GTK=1
1065 ;;
1066 *-*-netbsd*)
1067 USE_BSD=1
1068 USE_NETBSD=1
1069 cat >> confdefs.h <<\EOF
1070#define __FREEBSD__ 1
1071EOF
1072
1073 cat >> confdefs.h <<\EOF
1074#define __NETBSD__ 1
10f2d63a
VZ
1075EOF
1076
1077 DEFAULT_DEFAULT_wxUSE_GTK=1
1078 ;;
1079 *-*-osf* )
1080 USE_ALPHA=1
1081 USE_OSF=1
1082 cat >> confdefs.h <<\EOF
1083#define __ALPHA__ 1
1084EOF
1085
1086 cat >> confdefs.h <<\EOF
1087#define __OSF__ 1
1088EOF
1089
1090 DEFAULT_DEFAULT_wxUSE_MOTIF=1
f6bcfd97 1091 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
10f2d63a
VZ
1092 ;;
1093 *-*-dgux5* )
1094 USE_ALPHA=1
1095 USE_SVR4=1
1096 cat >> confdefs.h <<\EOF
1097#define __ALPHA__ 1
1098EOF
1099
1100 cat >> confdefs.h <<\EOF
1101#define __SVR4__ 1
1102EOF
1103
1104 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1105 ;;
1106 *-*-sysv5* )
1107 USE_SYSV=1
1108 USE_SVR4=1
1109 cat >> confdefs.h <<\EOF
1110#define __SYSV__ 1
1111EOF
1112
1113 cat >> confdefs.h <<\EOF
1114#define __SVR4__ 1
1115EOF
1116
1117 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1118 ;;
1119 *-*-aix* )
1120 USE_AIX=1
1121 USE_SYSV=1
1122 USE_SVR4=1
1123 cat >> confdefs.h <<\EOF
1124#define __AIX__ 1
1125EOF
1126
1127 cat >> confdefs.h <<\EOF
1128#define __SYSV__ 1
1129EOF
1130
1131 cat >> confdefs.h <<\EOF
1132#define __SVR4__ 1
1133EOF
1134
1135 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1136 ;;
1137
7eef8db2 1138 *-*-cygwin32* | *-*-mingw32* )
10f2d63a
VZ
1139 USE_UNIX=0
1140 USE_WIN32=1
1141 cat >> confdefs.h <<\EOF
1142#define __WIN32__ 1
1143EOF
1144
1145 cat >> confdefs.h <<\EOF
1146#define __WIN95__ 1
1147EOF
1148
1149 cat >> confdefs.h <<\EOF
1150#define __WINDOWS__ 1
1151EOF
1152
1153 cat >> confdefs.h <<\EOF
1154#define __GNUWIN32__ 1
1155EOF
1156
1157 cat >> confdefs.h <<\EOF
1158#define STRICT 1
1159EOF
1160
1161 cat >> confdefs.h <<\EOF
1162#define WINVER 0x0400
1163EOF
1164
cf27ef00 1165 PROGRAM_EXT=".exe"
10f2d63a
VZ
1166 DEFAULT_DEFAULT_wxUSE_MSW=1
1167 ;;
1168
1169 *-pc-os2_emx )
1170 cat >> confdefs.h <<\EOF
1171#define __EMX__ 1
1172EOF
1173
cf27ef00 1174 PROGRAM_EXT=".exe"
e07802fc 1175 DEFAULT_DEFAULT_wxUSE_PM=1
10f2d63a
VZ
1176 ;;
1177
b12915c1
VZ
1178 *-*-beos* )
1179 USE_BEOS=1
1180 cat >> confdefs.h <<\EOF
1181#define __BEOS__ 1
1182EOF
1183
1184 ;;
1185
10f2d63a
VZ
1186 *)
1187 { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; }
1188esac
1189
1190if test "$USE_UNIX" = 1 ; then
b12915c1
VZ
1191 wxUSE_UNIX=yes
1192 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1193#define __UNIX__ 1
1194EOF
1195
b12915c1
VZ
1196
1197 SRC_SUBDIRS="$SRC_SUBDIRS unix"
1198 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS unix"
1199fi
1200
1201if test "$USE_BEOS" = 1; then
1202 SRC_SUBDIRS="$SRC_SUBDIRS be"
1203 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS be"
10f2d63a
VZ
1204fi
1205
1206if test "$USE_LINUX" = 1; then
1207 echo $ac_n "checking for gettext in -lc""... $ac_c" 1>&6
3fed1840 1208echo "configure:1209: checking for gettext in -lc" >&5
10f2d63a
VZ
1209ac_lib_var=`echo c'_'gettext | sed 'y%./+-%__p_%'`
1210if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1211 echo $ac_n "(cached) $ac_c" 1>&6
1212else
1213 ac_save_LIBS="$LIBS"
1214LIBS="-lc $LIBS"
1215cat > conftest.$ac_ext <<EOF
3fed1840 1216#line 1217 "configure"
10f2d63a
VZ
1217#include "confdefs.h"
1218/* Override any gcc2 internal prototype to avoid an error. */
1219/* We use char because int might match the return type of a gcc2
1220 builtin and then its argument prototype would still apply. */
1221char gettext();
1222
1223int main() {
1224gettext()
1225; return 0; }
1226EOF
3fed1840 1227if { (eval echo configure:1228: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
1228 rm -rf conftest*
1229 eval "ac_cv_lib_$ac_lib_var=yes"
1230else
1231 echo "configure: failed program was:" >&5
1232 cat conftest.$ac_ext >&5
1233 rm -rf conftest*
1234 eval "ac_cv_lib_$ac_lib_var=no"
1235fi
1236rm -f conftest*
1237LIBS="$ac_save_LIBS"
1238
1239fi
1240if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1241 echo "$ac_t""yes" 1>&6
1242 cat >> confdefs.h <<\EOF
1243#define wxHAVE_GLIBC2 1
1244EOF
1245
1246else
1247 echo "$ac_t""no" 1>&6
1248fi
1249
1250fi
1251
1252
1253
1254
1255 wx_arg_cache_file="configarg.cache"
1256 echo "loading argument cache $wx_arg_cache_file"
1257 rm -f ${wx_arg_cache_file}.tmp
1258 touch ${wx_arg_cache_file}.tmp
1259 touch ${wx_arg_cache_file}
1260
1261
1262DEBUG_CONFIGURE=0
1263if test $DEBUG_CONFIGURE = 1; then
1264 DEFAULT_wxUSE_THREADS=yes
1265
1266 DEFAULT_wxUSE_SHARED=yes
00cf1208 1267 DEFAULT_wxUSE_BURNT_NAME=no
10f2d63a
VZ
1268 DEFAULT_wxUSE_OPTIMISE=yes
1269 DEFAULT_wxUSE_PROFILE=no
1270 DEFAULT_wxUSE_NO_DEPS=no
1271 DEFAULT_wxUSE_NO_RTTI=no
1272 DEFAULT_wxUSE_NO_EXCEPTIONS=no
1273 DEFAULT_wxUSE_PERMISSIVE=no
1274 DEFAULT_wxUSE_DEBUG_FLAG=yes
1275 DEFAULT_wxUSE_DEBUG_INFO=yes
1276 DEFAULT_wxUSE_DEBUG_GDB=yes
1277 DEFAULT_wxUSE_MEM_TRACING=no
1278 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1279 DEFAULT_wxUSE_DMALLOC=no
1280 DEFAULT_wxUSE_APPLE_IEEE=no
1281
1282 DEFAULT_wxUSE_LOG=yes
1283
1284 DEFAULT_wxUSE_GUI=yes
1285
1286 DEFAULT_wxUSE_ZLIB=no
1287 DEFAULT_wxUSE_LIBPNG=no
1288 DEFAULT_wxUSE_LIBJPEG=no
c7a2bf27 1289 DEFAULT_wxUSE_LIBTIFF=no
10f2d63a 1290 DEFAULT_wxUSE_ODBC=no
3fed1840 1291 DEFAULT_wxUSE_FREETYPE=no
bdad4e7e 1292 DEFAULT_wxUSE_OPENGL=no
10f2d63a 1293
eb4efbdc 1294 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no
10f2d63a
VZ
1295 DEFAULT_wxUSE_STD_IOSTREAM=no
1296 DEFAULT_wxUSE_FILE=no
1297 DEFAULT_wxUSE_TEXTFILE=no
1298 DEFAULT_wxUSE_TIMEDATE=no
1299 DEFAULT_wxUSE_WAVE=no
1300 DEFAULT_wxUSE_INTL=no
1301 DEFAULT_wxUSE_CONFIG=no
1302 DEFAULT_wxUSE_STREAMS=no
1303 DEFAULT_wxUSE_SOCKETS=no
1304 DEFAULT_wxUSE_DIALUP_MANAGER=no
1305 DEFAULT_wxUSE_SERIAL=no
1306 DEFAULT_wxUSE_JOYSTICK=no
1307 DEFAULT_wxUSE_DYNLIB_CLASS=no
1308 DEFAULT_wxUSE_LONGLONG=no
1309
1310 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
1311 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
1312 DEFAULT_wxUSE_POSTSCRIPT=no
1313
1314 DEFAULT_wxUSE_X_RESOURCES=no
1315 DEFAULT_wxUSE_CLIPBOARD=no
1316 DEFAULT_wxUSE_TOOLTIPS=no
1317 DEFAULT_wxUSE_DRAG_AND_DROP=no
1318 DEFAULT_wxUSE_SPLINES=no
1319
1320 DEFAULT_wxUSE_MDI_ARCHITECTURE=no
1321 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
1322 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
1323
1324 DEFAULT_wxUSE_PROLOGIO=no
1325 DEFAULT_wxUSE_RESOURCES=no
1326 DEFAULT_wxUSE_CONSTRAINTS=no
1327 DEFAULT_wxUSE_IPC=no
1328 DEFAULT_wxUSE_HELP=no
1329 DEFAULT_wxUSE_WXTREE=no
1330 DEFAULT_wxUSE_METAFILE=no
1331
1332 DEFAULT_wxUSE_COMMONDLGS=no
1333 DEFAULT_wxUSE_DIRDLG=no
1334 DEFAULT_wxUSE_TEXTDLG=no
1335 DEFAULT_wxUSE_STARTUP_TIPS=no
1336 DEFAULT_wxUSE_PROGRESSDLG=no
1337 DEFAULT_wxUSE_MINIFRAME=no
1338 DEFAULT_wxUSE_HTML=no
24528b0c 1339 DEFAULT_wxUSE_FILESYSTEM=no
10f2d63a
VZ
1340 DEFAULT_wxUSE_FS_INET=no
1341 DEFAULT_wxUSE_FS_ZIP=no
1342 DEFAULT_wxUSE_BUSYINFO=no
1343 DEFAULT_wxUSE_ZIPSTREAM=no
1344 DEFAULT_wxUSE_VALIDATORS=yes
1345
1346 DEFAULT_wxUSE_ACCEL=no
1347 DEFAULT_wxUSE_CARET=no
1348 DEFAULT_wxUSE_BMPBUTTON=no
1349 DEFAULT_wxUSE_CHECKBOX=no
1350 DEFAULT_wxUSE_CHECKLST=no
1351 DEFAULT_wxUSE_CHOICE=yes
1352 DEFAULT_wxUSE_COMBOBOX=no
1353 DEFAULT_wxUSE_GAUGE=no
1354 DEFAULT_wxUSE_GRID=no
1355 DEFAULT_wxUSE_NEW_GRID=no
1356 DEFAULT_wxUSE_IMAGLIST=no
1357 DEFAULT_wxUSE_LISTBOX=no
1358 DEFAULT_wxUSE_LISTCTRL=no
1359 DEFAULT_wxUSE_NOTEBOOK=no
9b33fe02 1360 DEFAULT_wxUSE_PLOT=no
10f2d63a
VZ
1361 DEFAULT_wxUSE_RADIOBOX=no
1362 DEFAULT_wxUSE_RADIOBTN=no
1363 DEFAULT_wxUSE_SASH=no
1364 DEFAULT_wxUSE_SCROLLBAR=no
1365 DEFAULT_wxUSE_SLIDER=no
1366 DEFAULT_wxUSE_SPINBTN=no
56cfaa52 1367 DEFAULT_wxUSE_SPINCTRL=no
10f2d63a
VZ
1368 DEFAULT_wxUSE_SPLITTER=no
1369 DEFAULT_wxUSE_STATBMP=no
1370 DEFAULT_wxUSE_STATBOX=no
1371 DEFAULT_wxUSE_STATLINE=no
1372 DEFAULT_wxUSE_STATUSBAR=yes
1373 DEFAULT_wxUSE_TABDIALOG=no
1374 DEFAULT_wxUSE_TOOLBAR=no
360d6699
VZ
1375 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
1376 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
10f2d63a
VZ
1377 DEFAULT_wxUSE_TREECTRL=no
1378
1379 DEFAULT_wxUSE_UNICODE=no
1380 DEFAULT_wxUSE_WCSRTOMBS=no
1381
1382 DEFAULT_wxUSE_GIF=no
1383 DEFAULT_wxUSE_PCX=no
1384 DEFAULT_wxUSE_PNM=no
1385else
1386 DEFAULT_wxUSE_THREADS=yes
1387
1388 DEFAULT_wxUSE_SHARED=yes
00cf1208 1389 DEFAULT_wxUSE_BURNT_NAME=no
10f2d63a
VZ
1390 DEFAULT_wxUSE_OPTIMISE=yes
1391 DEFAULT_wxUSE_PROFILE=no
1392 DEFAULT_wxUSE_NO_DEPS=no
1393 DEFAULT_wxUSE_NO_RTTI=no
1394 DEFAULT_wxUSE_NO_EXCEPTIONS=no
1395 DEFAULT_wxUSE_PERMISSIVE=no
1396 DEFAULT_wxUSE_DEBUG_FLAG=no
1397 DEFAULT_wxUSE_DEBUG_INFO=no
1398 DEFAULT_wxUSE_DEBUG_GDB=no
1399 DEFAULT_wxUSE_MEM_TRACING=no
1400 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1401 DEFAULT_wxUSE_DMALLOC=no
1402 DEFAULT_wxUSE_APPLE_IEEE=yes
1403
1404 DEFAULT_wxUSE_LOG=yes
1405
1406 DEFAULT_wxUSE_GUI=yes
1407
1408 DEFAULT_wxUSE_ZLIB=yes
1409 DEFAULT_wxUSE_LIBPNG=yes
1410 DEFAULT_wxUSE_LIBJPEG=yes
b47c832e 1411 DEFAULT_wxUSE_LIBTIFF=yes
16b52fa1 1412 DEFAULT_wxUSE_ODBC=no
3fed1840 1413 DEFAULT_wxUSE_FREETYPE=no
bdad4e7e 1414 DEFAULT_wxUSE_OPENGL=no
10f2d63a 1415
eb4efbdc 1416 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes
10f2d63a
VZ
1417 DEFAULT_wxUSE_STD_IOSTREAM=no
1418 DEFAULT_wxUSE_FILE=yes
1419 DEFAULT_wxUSE_TEXTFILE=yes
1420 DEFAULT_wxUSE_TIMEDATE=yes
1421 DEFAULT_wxUSE_WAVE=no
1422 DEFAULT_wxUSE_INTL=yes
1423 DEFAULT_wxUSE_CONFIG=yes
1424 DEFAULT_wxUSE_STREAMS=yes
1425 DEFAULT_wxUSE_SOCKETS=yes
1426 DEFAULT_wxUSE_DIALUP_MANAGER=yes
1427 DEFAULT_wxUSE_SERIAL=yes
1428 DEFAULT_wxUSE_JOYSTICK=yes
1429 DEFAULT_wxUSE_DYNLIB_CLASS=yes
b685cd9b 1430 DEFAULT_wxUSE_LONGLONG=yes
10f2d63a
VZ
1431
1432 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
1433 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
1434 DEFAULT_wxUSE_POSTSCRIPT=yes
1435
1436 DEFAULT_wxUSE_X_RESOURCES=no
1437 DEFAULT_wxUSE_CLIPBOARD=yes
1438 DEFAULT_wxUSE_TOOLTIPS=yes
1439 DEFAULT_wxUSE_DRAG_AND_DROP=yes
1440 DEFAULT_wxUSE_SPLINES=yes
1441
1442 DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
1443 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
1444 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
1445
1446 DEFAULT_wxUSE_PROLOGIO=yes
1447 DEFAULT_wxUSE_RESOURCES=yes
1448 DEFAULT_wxUSE_CONSTRAINTS=yes
1449 DEFAULT_wxUSE_IPC=yes
1450 DEFAULT_wxUSE_HELP=yes
1451 DEFAULT_wxUSE_WXTREE=yes
1452 DEFAULT_wxUSE_METAFILE=yes
1453
1454 DEFAULT_wxUSE_COMMONDLGS=yes
1455 DEFAULT_wxUSE_DIRDLG=yes
1456 DEFAULT_wxUSE_TEXTDLG=yes
1457 DEFAULT_wxUSE_STARTUP_TIPS=yes
1458 DEFAULT_wxUSE_PROGRESSDLG=yes
1459 DEFAULT_wxUSE_MINIFRAME=yes
1460 DEFAULT_wxUSE_HTML=yes
24528b0c 1461 DEFAULT_wxUSE_FILESYSTEM=yes
10f2d63a
VZ
1462 DEFAULT_wxUSE_FS_INET=yes
1463 DEFAULT_wxUSE_FS_ZIP=yes
1464 DEFAULT_wxUSE_BUSYINFO=yes
1465 DEFAULT_wxUSE_ZIPSTREAM=yes
1466 DEFAULT_wxUSE_VALIDATORS=yes
1467
1468 DEFAULT_wxUSE_ACCEL=yes
1469 DEFAULT_wxUSE_CARET=yes
1470 DEFAULT_wxUSE_BMPBUTTON=yes
1471 DEFAULT_wxUSE_CHECKBOX=yes
1472 DEFAULT_wxUSE_CHECKLST=yes
1473 DEFAULT_wxUSE_CHOICE=yes
1474 DEFAULT_wxUSE_COMBOBOX=yes
1475 DEFAULT_wxUSE_GAUGE=yes
1476 DEFAULT_wxUSE_GRID=yes
cc977e5f 1477 DEFAULT_wxUSE_NEW_GRID=yes
10f2d63a
VZ
1478 DEFAULT_wxUSE_IMAGLIST=yes
1479 DEFAULT_wxUSE_LISTBOX=yes
1480 DEFAULT_wxUSE_LISTCTRL=yes
1481 DEFAULT_wxUSE_NOTEBOOK=yes
9b33fe02 1482 DEFAULT_wxUSE_PLOT=yes
10f2d63a
VZ
1483 DEFAULT_wxUSE_RADIOBOX=yes
1484 DEFAULT_wxUSE_RADIOBTN=yes
1485 DEFAULT_wxUSE_SASH=yes
1486 DEFAULT_wxUSE_SCROLLBAR=yes
1487 DEFAULT_wxUSE_SLIDER=yes
1488 DEFAULT_wxUSE_SPINBTN=yes
56cfaa52 1489 DEFAULT_wxUSE_SPINCTRL=yes
10f2d63a
VZ
1490 DEFAULT_wxUSE_SPLITTER=yes
1491 DEFAULT_wxUSE_STATBMP=yes
1492 DEFAULT_wxUSE_STATBOX=yes
1493 DEFAULT_wxUSE_STATLINE=yes
1494 DEFAULT_wxUSE_STATUSBAR=yes
1495 DEFAULT_wxUSE_TABDIALOG=no
1496 DEFAULT_wxUSE_TOOLBAR=yes
360d6699
VZ
1497 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
1498 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
10f2d63a
VZ
1499 DEFAULT_wxUSE_TREECTRL=yes
1500
1501 DEFAULT_wxUSE_UNICODE=no
1502 DEFAULT_wxUSE_WCSRTOMBS=no
1503
1504 DEFAULT_wxUSE_GIF=yes
1505 DEFAULT_wxUSE_PCX=yes
1506 DEFAULT_wxUSE_PNM=yes
1507fi
1508
1509
1510
1511for toolkit in `echo $ALL_TOOLKITS`; do
1512 LINE=`grep "wxUSE_$toolkit" ${wx_arg_cache_file}`
1513 if test "x$LINE" != x ; then
1514 has_toolkit_in_cache=1
1515 eval "DEFAULT_$LINE"
1516 eval "CACHE_$toolkit=1"
1517 fi
1518done
1519
1520
1521
1522 echo $ac_n "checking "for --enable-gui"""... $ac_c" 1>&6
3fed1840 1523echo "configure:1524: checking "for --enable-gui"" >&5
10f2d63a
VZ
1524 no_cache=0
1525 # Check whether --enable-gui or --disable-gui was given.
1526if test "${enable_gui+set}" = set; then
1527 enableval="$enable_gui"
1528
1529 if test "$enableval" = yes; then
1530 ac_cv_use_gui='wxUSE_GUI=yes'
1531 else
1532 ac_cv_use_gui='wxUSE_GUI=no'
1533 fi
1534
1535else
1536
1537 LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
1538 if test "x$LINE" != x ; then
1539 eval "DEFAULT_$LINE"
1540 else
1541 no_cache=1
1542 fi
1543
1544 ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
1545
1546fi
1547
1548
1549 eval "$ac_cv_use_gui"
1550 if test "$no_cache" != 1; then
1551 echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
1552 fi
1553
1554 if test "$wxUSE_GUI" = yes; then
1555 echo "$ac_t""yes" 1>&6
1556 else
1557 echo "$ac_t""no" 1>&6
1558 fi
1559
1560
b12915c1 1561if test "$wxUSE_GUI" = "yes"; then
10f2d63a
VZ
1562
1563# Check whether --with-gtk or --without-gtk was given.
1564if test "${with_gtk+set}" = set; then
1565 withval="$with_gtk"
1566 wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
1567fi
1568
1569# Check whether --with-motif or --without-motif was given.
1570if test "${with_motif+set}" = set; then
1571 withval="$with_motif"
1572 wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
1573fi
1574
1575# Check whether --with-wine or --without-wine was given.
1576if test "${with_wine+set}" = set; then
1577 withval="$with_wine"
1578 wxUSE_WINE="$withval" CACHE_WINE=1 TOOLKIT_GIVEN=1
1579fi
1580
1581# Check whether --with-cygwin or --without-cygwin was given.
1582if test "${with_cygwin+set}" = set; then
1583 withval="$with_cygwin"
1584 wxUSE_CYGWIN="$withval" CACHE_CYGWIN=1 TOOLKIT_GIVEN=1
1585fi
1586
1587# Check whether --with-mingw or --without-mingw was given.
1588if test "${with_mingw+set}" = set; then
1589 withval="$with_mingw"
1590 wxUSE_MINGW="$withval" CACHE_MINGW=1 TOOLKIT_GIVEN=1
1591fi
1592
e07802fc
VZ
1593# Check whether --with-pm or --without-pm was given.
1594if test "${with_pm+set}" = set; then
1595 withval="$with_pm"
1596 wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
1597fi
1598
10f2d63a
VZ
1599
1600# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
1601if test "${with_gtk_prefix+set}" = set; then
1602 withval="$with_gtk_prefix"
1603 gtk_config_prefix="$withval"
1604else
1605 gtk_config_prefix=""
1606fi
1607
1608# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
1609if test "${with_gtk_exec_prefix+set}" = set; then
1610 withval="$with_gtk_exec_prefix"
1611 gtk_config_exec_prefix="$withval"
1612else
1613 gtk_config_exec_prefix=""
1614fi
1615
1616
1617
b12915c1 1618 echo $ac_n "checking "for --with-libpng"""... $ac_c" 1>&6
3fed1840 1619echo "configure:1620: checking "for --with-libpng"" >&5
10f2d63a 1620 no_cache=0
b12915c1
VZ
1621 # Check whether --with-libpng or --without-libpng was given.
1622if test "${with_libpng+set}" = set; then
1623 withval="$with_libpng"
10f2d63a
VZ
1624
1625 if test "$withval" = yes; then
b12915c1 1626 ac_cv_use_libpng='wxUSE_LIBPNG=yes'
422107f9 1627 elif test "$withval" = no; then
b12915c1 1628 ac_cv_use_libpng='wxUSE_LIBPNG=no'
422107f9
VZ
1629 elif test "$withval" = sys; then
1630 ac_cv_use_libpng='wxUSE_LIBPNG=sys'
1631 else
1632 { echo "configure: error: Invalid value for --with-libpng: should be yes, no or sys" 1>&2; exit 1; }
10f2d63a
VZ
1633 fi
1634
1635else
1636
b12915c1 1637 LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
10f2d63a
VZ
1638 if test "x$LINE" != x ; then
1639 eval "DEFAULT_$LINE"
1640 else
1641 no_cache=1
1642 fi
1643
b12915c1 1644 ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
10f2d63a
VZ
1645
1646fi
1647
1648
b12915c1 1649 eval "$ac_cv_use_libpng"
10f2d63a 1650 if test "$no_cache" != 1; then
b12915c1 1651 echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
1652 fi
1653
b12915c1 1654 if test "$wxUSE_LIBPNG" = yes; then
10f2d63a 1655 echo "$ac_t""yes" 1>&6
422107f9 1656 elif test "$wxUSE_LIBPNG" = no; then
10f2d63a 1657 echo "$ac_t""no" 1>&6
422107f9
VZ
1658 elif test "$wxUSE_LIBPNG" = sys; then
1659 echo "$ac_t""system version" 1>&6
1660 else
1661 { echo "configure: error: Invalid value for --with-libpng: should be yes, no or sys" 1>&2; exit 1; }
10f2d63a
VZ
1662 fi
1663
1664
b12915c1 1665 echo $ac_n "checking "for --with-libjpeg"""... $ac_c" 1>&6
3fed1840 1666echo "configure:1667: checking "for --with-libjpeg"" >&5
10f2d63a 1667 no_cache=0
b12915c1
VZ
1668 # Check whether --with-libjpeg or --without-libjpeg was given.
1669if test "${with_libjpeg+set}" = set; then
1670 withval="$with_libjpeg"
10f2d63a
VZ
1671
1672 if test "$withval" = yes; then
b12915c1 1673 ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
422107f9 1674 elif test "$withval" = no; then
b12915c1 1675 ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
422107f9
VZ
1676 elif test "$withval" = sys; then
1677 ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
1678 else
1679 { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no or sys" 1>&2; exit 1; }
10f2d63a
VZ
1680 fi
1681
1682else
1683
b12915c1 1684 LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
10f2d63a
VZ
1685 if test "x$LINE" != x ; then
1686 eval "DEFAULT_$LINE"
1687 else
1688 no_cache=1
1689 fi
1690
b12915c1 1691 ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
10f2d63a
VZ
1692
1693fi
1694
1695
b12915c1 1696 eval "$ac_cv_use_libjpeg"
10f2d63a 1697 if test "$no_cache" != 1; then
b12915c1 1698 echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
1699 fi
1700
b12915c1 1701 if test "$wxUSE_LIBJPEG" = yes; then
10f2d63a 1702 echo "$ac_t""yes" 1>&6
422107f9 1703 elif test "$wxUSE_LIBJPEG" = no; then
10f2d63a 1704 echo "$ac_t""no" 1>&6
422107f9
VZ
1705 elif test "$wxUSE_LIBJPEG" = sys; then
1706 echo "$ac_t""system version" 1>&6
1707 else
1708 { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no or sys" 1>&2; exit 1; }
10f2d63a
VZ
1709 fi
1710
1711
b12915c1 1712 echo $ac_n "checking "for --with-libtiff"""... $ac_c" 1>&6
3fed1840 1713echo "configure:1714: checking "for --with-libtiff"" >&5
10f2d63a 1714 no_cache=0
b12915c1
VZ
1715 # Check whether --with-libtiff or --without-libtiff was given.
1716if test "${with_libtiff+set}" = set; then
1717 withval="$with_libtiff"
10f2d63a
VZ
1718
1719 if test "$withval" = yes; then
b12915c1 1720 ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
0dcf9893 1721 elif test "$withval" = no; then
b12915c1 1722 ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
0dcf9893
VZ
1723 elif test "$withval" = sys; then
1724 ac_cv_use_libtiff='wxUSE_LIBTIFF=sys'
1725 else
1726 { echo "configure: error: Invalid value for --with-libtiff: should be yes, no or sys" 1>&2; exit 1; }
10f2d63a
VZ
1727 fi
1728
1729else
1730
b12915c1 1731 LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
10f2d63a
VZ
1732 if test "x$LINE" != x ; then
1733 eval "DEFAULT_$LINE"
1734 else
1735 no_cache=1
1736 fi
1737
b12915c1 1738 ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
10f2d63a
VZ
1739
1740fi
1741
1742
b12915c1 1743 eval "$ac_cv_use_libtiff"
10f2d63a 1744 if test "$no_cache" != 1; then
b12915c1 1745 echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
1746 fi
1747
b12915c1 1748 if test "$wxUSE_LIBTIFF" = yes; then
10f2d63a 1749 echo "$ac_t""yes" 1>&6
0dcf9893 1750 elif test "$wxUSE_LIBTIFF" = no; then
10f2d63a 1751 echo "$ac_t""no" 1>&6
0dcf9893
VZ
1752 elif test "$wxUSE_LIBTIFF" = sys; then
1753 echo "$ac_t""system version" 1>&6
1754 else
1755 { echo "configure: error: Invalid value for --with-libtiff: should be yes, no or sys" 1>&2; exit 1; }
10f2d63a
VZ
1756 fi
1757
1758
3fed1840
RR
1759 echo $ac_n "checking "for --with-freetype"""... $ac_c" 1>&6
1760echo "configure:1761: checking "for --with-freetype"" >&5
1761 no_cache=0
1762 # Check whether --with-freetype or --without-freetype was given.
1763if test "${with_freetype+set}" = set; then
1764 withval="$with_freetype"
1765
1766 if test "$withval" = yes; then
1767 ac_cv_use_freetype='wxUSE_FREETYPE=yes'
1768 elif test "$withval" = no; then
1769 ac_cv_use_freetype='wxUSE_FREETYPE=no'
1770 elif test "$withval" = sys; then
1771 ac_cv_use_freetype='wxUSE_FREETYPE=sys'
1772 else
1773 { echo "configure: error: Invalid value for --with-freetype: should be yes, no or sys" 1>&2; exit 1; }
1774 fi
1775
1776else
1777
1778 LINE=`grep "wxUSE_FREETYPE" ${wx_arg_cache_file}`
1779 if test "x$LINE" != x ; then
1780 eval "DEFAULT_$LINE"
1781 else
1782 no_cache=1
1783 fi
1784
1785 ac_cv_use_freetype='wxUSE_FREETYPE='$DEFAULT_wxUSE_FREETYPE
1786
1787fi
1788
1789
1790 eval "$ac_cv_use_freetype"
1791 if test "$no_cache" != 1; then
1792 echo $ac_cv_use_freetype >> ${wx_arg_cache_file}.tmp
1793 fi
1794
1795 if test "$wxUSE_FREETYPE" = yes; then
1796 echo "$ac_t""yes" 1>&6
1797 elif test "$wxUSE_FREETYPE" = no; then
1798 echo "$ac_t""no" 1>&6
1799 elif test "$wxUSE_FREETYPE" = sys; then
1800 echo "$ac_t""system version" 1>&6
1801 else
1802 { echo "configure: error: Invalid value for --with-freetype: should be yes, no or sys" 1>&2; exit 1; }
1803 fi
1804
1805
b12915c1 1806 echo $ac_n "checking "for --with-opengl"""... $ac_c" 1>&6
3fed1840 1807echo "configure:1808: checking "for --with-opengl"" >&5
10f2d63a 1808 no_cache=0
b12915c1
VZ
1809 # Check whether --with-opengl or --without-opengl was given.
1810if test "${with_opengl+set}" = set; then
1811 withval="$with_opengl"
10f2d63a
VZ
1812
1813 if test "$withval" = yes; then
b12915c1 1814 ac_cv_use_opengl='wxUSE_OPENGL=yes'
10f2d63a 1815 else
b12915c1 1816 ac_cv_use_opengl='wxUSE_OPENGL=no'
10f2d63a
VZ
1817 fi
1818
1819else
1820
b12915c1 1821 LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
10f2d63a
VZ
1822 if test "x$LINE" != x ; then
1823 eval "DEFAULT_$LINE"
1824 else
1825 no_cache=1
1826 fi
1827
b12915c1 1828 ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
10f2d63a
VZ
1829
1830fi
1831
1832
b12915c1 1833 eval "$ac_cv_use_opengl"
10f2d63a 1834 if test "$no_cache" != 1; then
b12915c1 1835 echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
1836 fi
1837
b12915c1 1838 if test "$wxUSE_OPENGL" = yes; then
10f2d63a
VZ
1839 echo "$ac_t""yes" 1>&6
1840 else
1841 echo "$ac_t""no" 1>&6
1842 fi
1843
1844
b12915c1
VZ
1845fi
1846
1847
1848 echo $ac_n "checking "for --with-dmalloc"""... $ac_c" 1>&6
3fed1840 1849echo "configure:1850: checking "for --with-dmalloc"" >&5
c7a2bf27 1850 no_cache=0
b12915c1
VZ
1851 # Check whether --with-dmalloc or --without-dmalloc was given.
1852if test "${with_dmalloc+set}" = set; then
1853 withval="$with_dmalloc"
c7a2bf27
RR
1854
1855 if test "$withval" = yes; then
b12915c1 1856 ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
c7a2bf27 1857 else
b12915c1 1858 ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
c7a2bf27
RR
1859 fi
1860
1861else
1862
b12915c1 1863 LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
c7a2bf27
RR
1864 if test "x$LINE" != x ; then
1865 eval "DEFAULT_$LINE"
1866 else
1867 no_cache=1
1868 fi
1869
b12915c1 1870 ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
c7a2bf27
RR
1871
1872fi
1873
1874
b12915c1 1875 eval "$ac_cv_use_dmalloc"
c7a2bf27 1876 if test "$no_cache" != 1; then
b12915c1 1877 echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
c7a2bf27
RR
1878 fi
1879
b12915c1 1880 if test "$wxUSE_DMALLOC" = yes; then
c7a2bf27
RR
1881 echo "$ac_t""yes" 1>&6
1882 else
1883 echo "$ac_t""no" 1>&6
1884 fi
1885
1886
b12915c1 1887 echo $ac_n "checking "for --with-zlib"""... $ac_c" 1>&6
3fed1840 1888echo "configure:1889: checking "for --with-zlib"" >&5
10f2d63a 1889 no_cache=0
b12915c1
VZ
1890 # Check whether --with-zlib or --without-zlib was given.
1891if test "${with_zlib+set}" = set; then
1892 withval="$with_zlib"
10f2d63a
VZ
1893
1894 if test "$withval" = yes; then
b12915c1 1895 ac_cv_use_zlib='wxUSE_ZLIB=yes'
422107f9 1896 elif test "$withval" = no; then
b12915c1 1897 ac_cv_use_zlib='wxUSE_ZLIB=no'
422107f9
VZ
1898 elif test "$withval" = sys; then
1899 ac_cv_use_zlib='wxUSE_ZLIB=sys'
1900 else
1901 { echo "configure: error: Invalid value for --with-zlib: should be yes, no or sys" 1>&2; exit 1; }
10f2d63a
VZ
1902 fi
1903
1904else
1905
b12915c1 1906 LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
10f2d63a
VZ
1907 if test "x$LINE" != x ; then
1908 eval "DEFAULT_$LINE"
1909 else
1910 no_cache=1
1911 fi
1912
b12915c1 1913 ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
10f2d63a
VZ
1914
1915fi
1916
1917
b12915c1 1918 eval "$ac_cv_use_zlib"
10f2d63a 1919 if test "$no_cache" != 1; then
b12915c1 1920 echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
1921 fi
1922
b12915c1 1923 if test "$wxUSE_ZLIB" = yes; then
10f2d63a 1924 echo "$ac_t""yes" 1>&6
422107f9 1925 elif test "$wxUSE_ZLIB" = no; then
bdad4e7e 1926 echo "$ac_t""no" 1>&6
422107f9
VZ
1927 elif test "$wxUSE_ZLIB" = sys; then
1928 echo "$ac_t""system version" 1>&6
1929 else
1930 { echo "configure: error: Invalid value for --with-zlib: should be yes, no or sys" 1>&2; exit 1; }
10f2d63a
VZ
1931 fi
1932
1933
1934 echo $ac_n "checking "for --with-odbc"""... $ac_c" 1>&6
3fed1840 1935echo "configure:1936: checking "for --with-odbc"" >&5
10f2d63a
VZ
1936 no_cache=0
1937 # Check whether --with-odbc or --without-odbc was given.
1938if test "${with_odbc+set}" = set; then
1939 withval="$with_odbc"
1940
1941 if test "$withval" = yes; then
1942 ac_cv_use_odbc='wxUSE_ODBC=yes'
1943 else
1944 ac_cv_use_odbc='wxUSE_ODBC=no'
1945 fi
1946
1947else
1948
1949 LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
1950 if test "x$LINE" != x ; then
1951 eval "DEFAULT_$LINE"
1952 else
1953 no_cache=1
1954 fi
1955
1956 ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
1957
1958fi
1959
1960
1961 eval "$ac_cv_use_odbc"
1962 if test "$no_cache" != 1; then
1963 echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
1964 fi
1965
1966 if test "$wxUSE_ODBC" = yes; then
1967 echo "$ac_t""yes" 1>&6
1968 else
1969 echo "$ac_t""no" 1>&6
1970 fi
1971
1972
1973
1974
1975
1976 echo $ac_n "checking "for --enable-shared"""... $ac_c" 1>&6
3fed1840 1977echo "configure:1978: checking "for --enable-shared"" >&5
10f2d63a
VZ
1978 no_cache=0
1979 # Check whether --enable-shared or --disable-shared was given.
1980if test "${enable_shared+set}" = set; then
1981 enableval="$enable_shared"
1982
1983 if test "$enableval" = yes; then
1984 ac_cv_use_shared='wxUSE_SHARED=yes'
1985 else
1986 ac_cv_use_shared='wxUSE_SHARED=no'
1987 fi
1988
1989else
1990
1991 LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
1992 if test "x$LINE" != x ; then
1993 eval "DEFAULT_$LINE"
1994 else
1995 no_cache=1
1996 fi
1997
1998 ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
1999
2000fi
2001
2002
2003 eval "$ac_cv_use_shared"
2004 if test "$no_cache" != 1; then
2005 echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
2006 fi
2007
2008 if test "$wxUSE_SHARED" = yes; then
2009 echo "$ac_t""yes" 1>&6
2010 else
2011 echo "$ac_t""no" 1>&6
2012 fi
2013
2014
00cf1208 2015 echo $ac_n "checking "for --enable-burnt_name"""... $ac_c" 1>&6
3fed1840 2016echo "configure:2017: checking "for --enable-burnt_name"" >&5
00cf1208
RR
2017 no_cache=0
2018 # Check whether --enable-burnt_name or --disable-burnt_name was given.
2019if test "${enable_burnt_name+set}" = set; then
2020 enableval="$enable_burnt_name"
2021
2022 if test "$enableval" = yes; then
2023 ac_cv_use_burnt_name='wxUSE_BURNT_NAME=yes'
2024 else
2025 ac_cv_use_burnt_name='wxUSE_BURNT_NAME=no'
2026 fi
2027
2028else
2029
2030 LINE=`grep "wxUSE_BURNT_NAME" ${wx_arg_cache_file}`
2031 if test "x$LINE" != x ; then
2032 eval "DEFAULT_$LINE"
2033 else
2034 no_cache=1
2035 fi
2036
2037 ac_cv_use_burnt_name='wxUSE_BURNT_NAME='$DEFAULT_wxUSE_BURNT_NAME
2038
2039fi
2040
2041
2042 eval "$ac_cv_use_burnt_name"
2043 if test "$no_cache" != 1; then
2044 echo $ac_cv_use_burnt_name >> ${wx_arg_cache_file}.tmp
2045 fi
2046
2047 if test "$wxUSE_BURNT_NAME" = yes; then
2048 echo "$ac_t""yes" 1>&6
2049 else
2050 echo "$ac_t""no" 1>&6
2051 fi
2052
2053
10f2d63a 2054 echo $ac_n "checking "for --enable-optimise"""... $ac_c" 1>&6
3fed1840 2055echo "configure:2056: checking "for --enable-optimise"" >&5
10f2d63a
VZ
2056 no_cache=0
2057 # Check whether --enable-optimise or --disable-optimise was given.
2058if test "${enable_optimise+set}" = set; then
2059 enableval="$enable_optimise"
2060
2061 if test "$enableval" = yes; then
2062 ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
2063 else
2064 ac_cv_use_optimise='wxUSE_OPTIMISE=no'
2065 fi
2066
2067else
2068
2069 LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
2070 if test "x$LINE" != x ; then
2071 eval "DEFAULT_$LINE"
2072 else
2073 no_cache=1
2074 fi
2075
2076 ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
2077
2078fi
2079
2080
2081 eval "$ac_cv_use_optimise"
2082 if test "$no_cache" != 1; then
2083 echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
2084 fi
2085
2086 if test "$wxUSE_OPTIMISE" = yes; then
2087 echo "$ac_t""yes" 1>&6
2088 else
2089 echo "$ac_t""no" 1>&6
2090 fi
2091
2092
2093 echo $ac_n "checking "for --enable-debug"""... $ac_c" 1>&6
3fed1840 2094echo "configure:2095: checking "for --enable-debug"" >&5
10f2d63a
VZ
2095 no_cache=0
2096 # Check whether --enable-debug or --disable-debug was given.
2097if test "${enable_debug+set}" = set; then
2098 enableval="$enable_debug"
2099
2100 if test "$enableval" = yes; then
2101 ac_cv_use_debug='wxUSE_DEBUG=yes'
2102 else
2103 ac_cv_use_debug='wxUSE_DEBUG=no'
2104 fi
2105
2106else
2107
2108 LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
2109 if test "x$LINE" != x ; then
2110 eval "DEFAULT_$LINE"
2111 else
2112 no_cache=1
2113 fi
2114
2115 ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
2116
2117fi
2118
2119
2120 eval "$ac_cv_use_debug"
2121 if test "$no_cache" != 1; then
2122 echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
2123 fi
2124
2125 if test "$wxUSE_DEBUG" = yes; then
2126 echo "$ac_t""yes" 1>&6
2127 else
2128 echo "$ac_t""no" 1>&6
2129 fi
2130
2131
2132if test "$wxUSE_DEBUG" = "yes"; then
2133 DEFAULT_wxUSE_DEBUG_FLAG=yes
2134 DEFAULT_wxUSE_DEBUG_INFO=yes
2135elif test "$wxUSE_DEBUG" = "no"; then
2136 DEFAULT_wxUSE_DEBUG_FLAG=no
2137 DEFAULT_wxUSE_DEBUG_INFO=no
2138fi
2139
2140
2141 echo $ac_n "checking "for --enable-debug_flag"""... $ac_c" 1>&6
3fed1840 2142echo "configure:2143: checking "for --enable-debug_flag"" >&5
10f2d63a
VZ
2143 no_cache=0
2144 # Check whether --enable-debug_flag or --disable-debug_flag was given.
2145if test "${enable_debug_flag+set}" = set; then
2146 enableval="$enable_debug_flag"
2147
2148 if test "$enableval" = yes; then
2149 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
2150 else
2151 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
2152 fi
2153
2154else
2155
2156 LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
2157 if test "x$LINE" != x ; then
2158 eval "DEFAULT_$LINE"
2159 else
2160 no_cache=1
2161 fi
2162
2163 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
2164
2165fi
2166
2167
2168 eval "$ac_cv_use_debug_flag"
2169 if test "$no_cache" != 1; then
2170 echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
2171 fi
2172
2173 if test "$wxUSE_DEBUG_FLAG" = yes; then
2174 echo "$ac_t""yes" 1>&6
2175 else
2176 echo "$ac_t""no" 1>&6
2177 fi
2178
2179
2180 echo $ac_n "checking "for --enable-debug_info"""... $ac_c" 1>&6
3fed1840 2181echo "configure:2182: checking "for --enable-debug_info"" >&5
10f2d63a
VZ
2182 no_cache=0
2183 # Check whether --enable-debug_info or --disable-debug_info was given.
2184if test "${enable_debug_info+set}" = set; then
2185 enableval="$enable_debug_info"
2186
2187 if test "$enableval" = yes; then
2188 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
2189 else
2190 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
2191 fi
2192
2193else
2194
2195 LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
2196 if test "x$LINE" != x ; then
2197 eval "DEFAULT_$LINE"
2198 else
2199 no_cache=1
2200 fi
2201
2202 ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
2203
2204fi
2205
2206
2207 eval "$ac_cv_use_debug_info"
2208 if test "$no_cache" != 1; then
2209 echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
2210 fi
2211
2212 if test "$wxUSE_DEBUG_INFO" = yes; then
2213 echo "$ac_t""yes" 1>&6
2214 else
2215 echo "$ac_t""no" 1>&6
2216 fi
2217
2218
2219 echo $ac_n "checking "for --enable-debug_gdb"""... $ac_c" 1>&6
3fed1840 2220echo "configure:2221: checking "for --enable-debug_gdb"" >&5
10f2d63a
VZ
2221 no_cache=0
2222 # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
2223if test "${enable_debug_gdb+set}" = set; then
2224 enableval="$enable_debug_gdb"
2225
2226 if test "$enableval" = yes; then
2227 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
2228 else
2229 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
2230 fi
2231
2232else
2233
2234 LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
2235 if test "x$LINE" != x ; then
2236 eval "DEFAULT_$LINE"
2237 else
2238 no_cache=1
2239 fi
2240
2241 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
2242
2243fi
2244
2245
2246 eval "$ac_cv_use_debug_gdb"
2247 if test "$no_cache" != 1; then
2248 echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
2249 fi
2250
2251 if test "$wxUSE_DEBUG_GDB" = yes; then
2252 echo "$ac_t""yes" 1>&6
2253 else
2254 echo "$ac_t""no" 1>&6
2255 fi
2256
2257
2258 echo $ac_n "checking "for --enable-debug_cntxt"""... $ac_c" 1>&6
3fed1840 2259echo "configure:2260: checking "for --enable-debug_cntxt"" >&5
10f2d63a
VZ
2260 no_cache=0
2261 # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
2262if test "${enable_debug_cntxt+set}" = set; then
2263 enableval="$enable_debug_cntxt"
2264
2265 if test "$enableval" = yes; then
2266 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
2267 else
2268 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
2269 fi
2270
2271else
2272
2273 LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
2274 if test "x$LINE" != x ; then
2275 eval "DEFAULT_$LINE"
2276 else
2277 no_cache=1
2278 fi
2279
2280 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
2281
2282fi
2283
2284
2285 eval "$ac_cv_use_debug_cntxt"
2286 if test "$no_cache" != 1; then
2287 echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
2288 fi
2289
2290 if test "$wxUSE_DEBUG_CONTEXT" = yes; then
2291 echo "$ac_t""yes" 1>&6
2292 else
2293 echo "$ac_t""no" 1>&6
2294 fi
2295
2296
2297 echo $ac_n "checking "for --enable-mem_tracing"""... $ac_c" 1>&6
3fed1840 2298echo "configure:2299: checking "for --enable-mem_tracing"" >&5
10f2d63a
VZ
2299 no_cache=0
2300 # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
2301if test "${enable_mem_tracing+set}" = set; then
2302 enableval="$enable_mem_tracing"
2303
2304 if test "$enableval" = yes; then
2305 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
2306 else
2307 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
2308 fi
2309
2310else
2311
2312 LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
2313 if test "x$LINE" != x ; then
2314 eval "DEFAULT_$LINE"
2315 else
2316 no_cache=1
2317 fi
2318
2319 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
2320
2321fi
2322
2323
2324 eval "$ac_cv_use_mem_tracing"
2325 if test "$no_cache" != 1; then
2326 echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
2327 fi
2328
2329 if test "$wxUSE_MEM_TRACING" = yes; then
2330 echo "$ac_t""yes" 1>&6
2331 else
2332 echo "$ac_t""no" 1>&6
2333 fi
2334
2335
2336 echo $ac_n "checking "for --enable-profile"""... $ac_c" 1>&6
3fed1840 2337echo "configure:2338: checking "for --enable-profile"" >&5
10f2d63a
VZ
2338 no_cache=0
2339 # Check whether --enable-profile or --disable-profile was given.
2340if test "${enable_profile+set}" = set; then
2341 enableval="$enable_profile"
2342
2343 if test "$enableval" = yes; then
2344 ac_cv_use_profile='wxUSE_PROFILE=yes'
2345 else
2346 ac_cv_use_profile='wxUSE_PROFILE=no'
2347 fi
2348
2349else
2350
2351 LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
2352 if test "x$LINE" != x ; then
2353 eval "DEFAULT_$LINE"
2354 else
2355 no_cache=1
2356 fi
2357
2358 ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
2359
2360fi
2361
2362
2363 eval "$ac_cv_use_profile"
2364 if test "$no_cache" != 1; then
2365 echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
2366 fi
2367
2368 if test "$wxUSE_PROFILE" = yes; then
2369 echo "$ac_t""yes" 1>&6
2370 else
2371 echo "$ac_t""no" 1>&6
2372 fi
2373
2374
2375 echo $ac_n "checking "for --enable-no_rtti"""... $ac_c" 1>&6
3fed1840 2376echo "configure:2377: checking "for --enable-no_rtti"" >&5
10f2d63a
VZ
2377 no_cache=0
2378 # Check whether --enable-no_rtti or --disable-no_rtti was given.
2379if test "${enable_no_rtti+set}" = set; then
2380 enableval="$enable_no_rtti"
2381
2382 if test "$enableval" = yes; then
2383 ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
2384 else
2385 ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
2386 fi
2387
2388else
2389
2390 LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
2391 if test "x$LINE" != x ; then
2392 eval "DEFAULT_$LINE"
2393 else
2394 no_cache=1
2395 fi
2396
2397 ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
2398
2399fi
2400
2401
2402 eval "$ac_cv_use_no_rtti"
2403 if test "$no_cache" != 1; then
2404 echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
2405 fi
2406
2407 if test "$wxUSE_NO_RTTI" = yes; then
2408 echo "$ac_t""yes" 1>&6
2409 else
2410 echo "$ac_t""no" 1>&6
2411 fi
2412
2413
2414 echo $ac_n "checking "for --enable-no_exceptions"""... $ac_c" 1>&6
3fed1840 2415echo "configure:2416: checking "for --enable-no_exceptions"" >&5
10f2d63a
VZ
2416 no_cache=0
2417 # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
2418if test "${enable_no_exceptions+set}" = set; then
2419 enableval="$enable_no_exceptions"
2420
2421 if test "$enableval" = yes; then
2422 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
2423 else
2424 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
2425 fi
2426
2427else
2428
2429 LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
2430 if test "x$LINE" != x ; then
2431 eval "DEFAULT_$LINE"
2432 else
2433 no_cache=1
2434 fi
2435
2436 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
2437
2438fi
2439
2440
2441 eval "$ac_cv_use_no_exceptions"
2442 if test "$no_cache" != 1; then
2443 echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
2444 fi
2445
2446 if test "$wxUSE_NO_EXCEPTIONS" = yes; then
2447 echo "$ac_t""yes" 1>&6
2448 else
2449 echo "$ac_t""no" 1>&6
2450 fi
2451
2452
2453 echo $ac_n "checking "for --enable-permissive"""... $ac_c" 1>&6
3fed1840 2454echo "configure:2455: checking "for --enable-permissive"" >&5
10f2d63a
VZ
2455 no_cache=0
2456 # Check whether --enable-permissive or --disable-permissive was given.
2457if test "${enable_permissive+set}" = set; then
2458 enableval="$enable_permissive"
2459
2460 if test "$enableval" = yes; then
2461 ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
2462 else
2463 ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
2464 fi
2465
2466else
2467
2468 LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
2469 if test "x$LINE" != x ; then
2470 eval "DEFAULT_$LINE"
2471 else
2472 no_cache=1
2473 fi
2474
2475 ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
2476
2477fi
2478
2479
2480 eval "$ac_cv_use_permissive"
2481 if test "$no_cache" != 1; then
2482 echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
2483 fi
2484
2485 if test "$wxUSE_PERMISSIVE" = yes; then
2486 echo "$ac_t""yes" 1>&6
2487 else
2488 echo "$ac_t""no" 1>&6
2489 fi
2490
2491
2492 echo $ac_n "checking "for --enable-no_deps"""... $ac_c" 1>&6
3fed1840 2493echo "configure:2494: checking "for --enable-no_deps"" >&5
10f2d63a
VZ
2494 no_cache=0
2495 # Check whether --enable-no_deps or --disable-no_deps was given.
2496if test "${enable_no_deps+set}" = set; then
2497 enableval="$enable_no_deps"
2498
2499 if test "$enableval" = yes; then
2500 ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
2501 else
2502 ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
2503 fi
2504
2505else
2506
2507 LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
2508 if test "x$LINE" != x ; then
2509 eval "DEFAULT_$LINE"
2510 else
2511 no_cache=1
2512 fi
2513
2514 ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
2515
2516fi
2517
2518
2519 eval "$ac_cv_use_no_deps"
2520 if test "$no_cache" != 1; then
2521 echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
2522 fi
2523
2524 if test "$wxUSE_NO_DEPS" = yes; then
2525 echo "$ac_t""yes" 1>&6
2526 else
2527 echo "$ac_t""no" 1>&6
2528 fi
2529
2530
2531
2532
2533 echo $ac_n "checking "for --enable-intl"""... $ac_c" 1>&6
3fed1840 2534echo "configure:2535: checking "for --enable-intl"" >&5
10f2d63a
VZ
2535 no_cache=0
2536 # Check whether --enable-intl or --disable-intl was given.
2537if test "${enable_intl+set}" = set; then
2538 enableval="$enable_intl"
2539
2540 if test "$enableval" = yes; then
2541 ac_cv_use_intl='wxUSE_INTL=yes'
2542 else
2543 ac_cv_use_intl='wxUSE_INTL=no'
2544 fi
2545
2546else
2547
2548 LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
2549 if test "x$LINE" != x ; then
2550 eval "DEFAULT_$LINE"
2551 else
2552 no_cache=1
2553 fi
2554
2555 ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
2556
2557fi
2558
2559
2560 eval "$ac_cv_use_intl"
2561 if test "$no_cache" != 1; then
2562 echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
2563 fi
2564
2565 if test "$wxUSE_INTL" = yes; then
2566 echo "$ac_t""yes" 1>&6
2567 else
2568 echo "$ac_t""no" 1>&6
2569 fi
2570
2571
2572 echo $ac_n "checking "for --enable-config"""... $ac_c" 1>&6
3fed1840 2573echo "configure:2574: checking "for --enable-config"" >&5
10f2d63a
VZ
2574 no_cache=0
2575 # Check whether --enable-config or --disable-config was given.
2576if test "${enable_config+set}" = set; then
2577 enableval="$enable_config"
2578
2579 if test "$enableval" = yes; then
2580 ac_cv_use_config='wxUSE_CONFIG=yes'
2581 else
2582 ac_cv_use_config='wxUSE_CONFIG=no'
2583 fi
2584
2585else
2586
2587 LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
2588 if test "x$LINE" != x ; then
2589 eval "DEFAULT_$LINE"
2590 else
2591 no_cache=1
2592 fi
2593
2594 ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
2595
2596fi
2597
2598
2599 eval "$ac_cv_use_config"
2600 if test "$no_cache" != 1; then
2601 echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
2602 fi
2603
2604 if test "$wxUSE_CONFIG" = yes; then
2605 echo "$ac_t""yes" 1>&6
2606 else
2607 echo "$ac_t""no" 1>&6
2608 fi
2609
2610
b12915c1 2611
10f2d63a 2612 echo $ac_n "checking "for --enable-sockets"""... $ac_c" 1>&6
3fed1840 2613echo "configure:2614: checking "for --enable-sockets"" >&5
10f2d63a
VZ
2614 no_cache=0
2615 # Check whether --enable-sockets or --disable-sockets was given.
2616if test "${enable_sockets+set}" = set; then
2617 enableval="$enable_sockets"
2618
2619 if test "$enableval" = yes; then
2620 ac_cv_use_sockets='wxUSE_SOCKETS=yes'
2621 else
2622 ac_cv_use_sockets='wxUSE_SOCKETS=no'
2623 fi
2624
2625else
2626
2627 LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
2628 if test "x$LINE" != x ; then
2629 eval "DEFAULT_$LINE"
2630 else
2631 no_cache=1
2632 fi
2633
2634 ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
2635
2636fi
2637
2638
2639 eval "$ac_cv_use_sockets"
2640 if test "$no_cache" != 1; then
2641 echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
2642 fi
2643
2644 if test "$wxUSE_SOCKETS" = yes; then
2645 echo "$ac_t""yes" 1>&6
2646 else
2647 echo "$ac_t""no" 1>&6
2648 fi
2649
b12915c1 2650
10f2d63a 2651
eb4efbdc 2652 echo $ac_n "checking "for --enable-ipc"""... $ac_c" 1>&6
3fed1840 2653echo "configure:2654: checking "for --enable-ipc"" >&5
10f2d63a 2654 no_cache=0
eb4efbdc
VZ
2655 # Check whether --enable-ipc or --disable-ipc was given.
2656if test "${enable_ipc+set}" = set; then
2657 enableval="$enable_ipc"
10f2d63a
VZ
2658
2659 if test "$enableval" = yes; then
eb4efbdc 2660 ac_cv_use_ipc='wxUSE_IPC=yes'
10f2d63a 2661 else
eb4efbdc 2662 ac_cv_use_ipc='wxUSE_IPC=no'
10f2d63a
VZ
2663 fi
2664
2665else
2666
eb4efbdc 2667 LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
10f2d63a
VZ
2668 if test "x$LINE" != x ; then
2669 eval "DEFAULT_$LINE"
2670 else
2671 no_cache=1
2672 fi
2673
eb4efbdc 2674 ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
10f2d63a
VZ
2675
2676fi
2677
2678
eb4efbdc 2679 eval "$ac_cv_use_ipc"
10f2d63a 2680 if test "$no_cache" != 1; then
eb4efbdc 2681 echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2682 fi
2683
eb4efbdc 2684 if test "$wxUSE_IPC" = yes; then
10f2d63a
VZ
2685 echo "$ac_t""yes" 1>&6
2686 else
2687 echo "$ac_t""no" 1>&6
2688 fi
2689
2690
eb4efbdc
VZ
2691
2692 echo $ac_n "checking "for --enable-dialupman"""... $ac_c" 1>&6
3fed1840 2693echo "configure:2694: checking "for --enable-dialupman"" >&5
10f2d63a 2694 no_cache=0
eb4efbdc
VZ
2695 # Check whether --enable-dialupman or --disable-dialupman was given.
2696if test "${enable_dialupman+set}" = set; then
2697 enableval="$enable_dialupman"
10f2d63a
VZ
2698
2699 if test "$enableval" = yes; then
eb4efbdc 2700 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
10f2d63a 2701 else
eb4efbdc 2702 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
10f2d63a
VZ
2703 fi
2704
2705else
2706
eb4efbdc 2707 LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
10f2d63a
VZ
2708 if test "x$LINE" != x ; then
2709 eval "DEFAULT_$LINE"
2710 else
2711 no_cache=1
2712 fi
2713
eb4efbdc 2714 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
10f2d63a
VZ
2715
2716fi
2717
2718
eb4efbdc 2719 eval "$ac_cv_use_dialupman"
10f2d63a 2720 if test "$no_cache" != 1; then
eb4efbdc 2721 echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2722 fi
2723
eb4efbdc 2724 if test "$wxUSE_DIALUP_MANAGER" = yes; then
10f2d63a
VZ
2725 echo "$ac_t""yes" 1>&6
2726 else
2727 echo "$ac_t""no" 1>&6
2728 fi
2729
2730
2731 echo $ac_n "checking "for --enable-apple_ieee"""... $ac_c" 1>&6
3fed1840 2732echo "configure:2733: checking "for --enable-apple_ieee"" >&5
10f2d63a
VZ
2733 no_cache=0
2734 # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
2735if test "${enable_apple_ieee+set}" = set; then
2736 enableval="$enable_apple_ieee"
2737
2738 if test "$enableval" = yes; then
2739 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
2740 else
2741 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
2742 fi
2743
2744else
2745
2746 LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
2747 if test "x$LINE" != x ; then
2748 eval "DEFAULT_$LINE"
2749 else
2750 no_cache=1
2751 fi
2752
2753 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
2754
2755fi
2756
2757
2758 eval "$ac_cv_use_apple_ieee"
2759 if test "$no_cache" != 1; then
2760 echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
2761 fi
2762
2763 if test "$wxUSE_APPLE_IEEE" = yes; then
2764 echo "$ac_t""yes" 1>&6
2765 else
2766 echo "$ac_t""no" 1>&6
2767 fi
2768
2769
2770 echo $ac_n "checking "for --enable-timedate"""... $ac_c" 1>&6
3fed1840 2771echo "configure:2772: checking "for --enable-timedate"" >&5
10f2d63a
VZ
2772 no_cache=0
2773 # Check whether --enable-timedate or --disable-timedate was given.
2774if test "${enable_timedate+set}" = set; then
2775 enableval="$enable_timedate"
2776
2777 if test "$enableval" = yes; then
2778 ac_cv_use_timedate='wxUSE_TIMEDATE=yes'
2779 else
2780 ac_cv_use_timedate='wxUSE_TIMEDATE=no'
2781 fi
2782
2783else
2784
2785 LINE=`grep "wxUSE_TIMEDATE" ${wx_arg_cache_file}`
2786 if test "x$LINE" != x ; then
2787 eval "DEFAULT_$LINE"
2788 else
2789 no_cache=1
2790 fi
2791
2792 ac_cv_use_timedate='wxUSE_TIMEDATE='$DEFAULT_wxUSE_TIMEDATE
2793
2794fi
2795
2796
2797 eval "$ac_cv_use_timedate"
2798 if test "$no_cache" != 1; then
2799 echo $ac_cv_use_timedate >> ${wx_arg_cache_file}.tmp
2800 fi
2801
2802 if test "$wxUSE_TIMEDATE" = yes; then
2803 echo "$ac_t""yes" 1>&6
2804 else
2805 echo "$ac_t""no" 1>&6
2806 fi
2807
2808
2809 echo $ac_n "checking "for --enable-wave"""... $ac_c" 1>&6
3fed1840 2810echo "configure:2811: checking "for --enable-wave"" >&5
10f2d63a
VZ
2811 no_cache=0
2812 # Check whether --enable-wave or --disable-wave was given.
2813if test "${enable_wave+set}" = set; then
2814 enableval="$enable_wave"
2815
2816 if test "$enableval" = yes; then
2817 ac_cv_use_wave='wxUSE_WAVE=yes'
2818 else
2819 ac_cv_use_wave='wxUSE_WAVE=no'
2820 fi
2821
2822else
2823
2824 LINE=`grep "wxUSE_WAVE" ${wx_arg_cache_file}`
2825 if test "x$LINE" != x ; then
2826 eval "DEFAULT_$LINE"
2827 else
2828 no_cache=1
2829 fi
2830
2831 ac_cv_use_wave='wxUSE_WAVE='$DEFAULT_wxUSE_WAVE
2832
2833fi
2834
2835
2836 eval "$ac_cv_use_wave"
2837 if test "$no_cache" != 1; then
2838 echo $ac_cv_use_wave >> ${wx_arg_cache_file}.tmp
2839 fi
2840
2841 if test "$wxUSE_WAVE" = yes; then
2842 echo "$ac_t""yes" 1>&6
2843 else
2844 echo "$ac_t""no" 1>&6
2845 fi
2846
2847
2848 echo $ac_n "checking "for --enable-fraction"""... $ac_c" 1>&6
3fed1840 2849echo "configure:2850: checking "for --enable-fraction"" >&5
10f2d63a
VZ
2850 no_cache=0
2851 # Check whether --enable-fraction or --disable-fraction was given.
2852if test "${enable_fraction+set}" = set; then
2853 enableval="$enable_fraction"
2854
2855 if test "$enableval" = yes; then
2856 ac_cv_use_fraction='wxUSE_FRACTION=yes'
2857 else
2858 ac_cv_use_fraction='wxUSE_FRACTION=no'
2859 fi
2860
2861else
2862
2863 LINE=`grep "wxUSE_FRACTION" ${wx_arg_cache_file}`
2864 if test "x$LINE" != x ; then
2865 eval "DEFAULT_$LINE"
2866 else
2867 no_cache=1
2868 fi
2869
2870 ac_cv_use_fraction='wxUSE_FRACTION='$DEFAULT_wxUSE_FRACTION
2871
2872fi
2873
2874
2875 eval "$ac_cv_use_fraction"
2876 if test "$no_cache" != 1; then
2877 echo $ac_cv_use_fraction >> ${wx_arg_cache_file}.tmp
2878 fi
2879
2880 if test "$wxUSE_FRACTION" = yes; then
2881 echo "$ac_t""yes" 1>&6
2882 else
2883 echo "$ac_t""no" 1>&6
2884 fi
2885
2886
2887 echo $ac_n "checking "for --enable-dynlib"""... $ac_c" 1>&6
3fed1840 2888echo "configure:2889: checking "for --enable-dynlib"" >&5
10f2d63a
VZ
2889 no_cache=0
2890 # Check whether --enable-dynlib or --disable-dynlib was given.
2891if test "${enable_dynlib+set}" = set; then
2892 enableval="$enable_dynlib"
2893
2894 if test "$enableval" = yes; then
2895 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
2896 else
2897 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
2898 fi
2899
2900else
2901
2902 LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
2903 if test "x$LINE" != x ; then
2904 eval "DEFAULT_$LINE"
2905 else
2906 no_cache=1
2907 fi
2908
2909 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
2910
2911fi
2912
2913
2914 eval "$ac_cv_use_dynlib"
2915 if test "$no_cache" != 1; then
2916 echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
2917 fi
2918
2919 if test "$wxUSE_DYNLIB_CLASS" = yes; then
2920 echo "$ac_t""yes" 1>&6
2921 else
2922 echo "$ac_t""no" 1>&6
2923 fi
2924
2925
2926 echo $ac_n "checking "for --enable-longlong"""... $ac_c" 1>&6
3fed1840 2927echo "configure:2928: checking "for --enable-longlong"" >&5
10f2d63a
VZ
2928 no_cache=0
2929 # Check whether --enable-longlong or --disable-longlong was given.
2930if test "${enable_longlong+set}" = set; then
2931 enableval="$enable_longlong"
2932
2933 if test "$enableval" = yes; then
2934 ac_cv_use_longlong='wxUSE_LONGLONG=yes'
2935 else
2936 ac_cv_use_longlong='wxUSE_LONGLONG=no'
2937 fi
2938
2939else
2940
2941 LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
2942 if test "x$LINE" != x ; then
2943 eval "DEFAULT_$LINE"
2944 else
2945 no_cache=1
2946 fi
2947
2948 ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
2949
2950fi
2951
2952
2953 eval "$ac_cv_use_longlong"
2954 if test "$no_cache" != 1; then
2955 echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
2956 fi
2957
2958 if test "$wxUSE_LONGLONG" = yes; then
2959 echo "$ac_t""yes" 1>&6
2960 else
2961 echo "$ac_t""no" 1>&6
2962 fi
2963
2964
2965 echo $ac_n "checking "for --enable-log"""... $ac_c" 1>&6
3fed1840 2966echo "configure:2967: checking "for --enable-log"" >&5
10f2d63a
VZ
2967 no_cache=0
2968 # Check whether --enable-log or --disable-log was given.
2969if test "${enable_log+set}" = set; then
2970 enableval="$enable_log"
2971
2972 if test "$enableval" = yes; then
2973 ac_cv_use_log='wxUSE_LOG=yes'
2974 else
2975 ac_cv_use_log='wxUSE_LOG=no'
2976 fi
2977
2978else
2979
2980 LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
2981 if test "x$LINE" != x ; then
2982 eval "DEFAULT_$LINE"
2983 else
2984 no_cache=1
2985 fi
2986
2987 ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
2988
2989fi
2990
2991
2992 eval "$ac_cv_use_log"
2993 if test "$no_cache" != 1; then
2994 echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
2995 fi
2996
2997 if test "$wxUSE_LOG" = yes; then
2998 echo "$ac_t""yes" 1>&6
2999 else
3000 echo "$ac_t""no" 1>&6
3001 fi
3002
3003
3004 echo $ac_n "checking "for --enable-streams"""... $ac_c" 1>&6
3fed1840 3005echo "configure:3006: checking "for --enable-streams"" >&5
10f2d63a
VZ
3006 no_cache=0
3007 # Check whether --enable-streams or --disable-streams was given.
3008if test "${enable_streams+set}" = set; then
3009 enableval="$enable_streams"
3010
3011 if test "$enableval" = yes; then
3012 ac_cv_use_streams='wxUSE_STREAMS=yes'
3013 else
3014 ac_cv_use_streams='wxUSE_STREAMS=no'
3015 fi
3016
3017else
3018
3019 LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
3020 if test "x$LINE" != x ; then
3021 eval "DEFAULT_$LINE"
3022 else
3023 no_cache=1
3024 fi
3025
3026 ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
3027
3028fi
3029
3030
3031 eval "$ac_cv_use_streams"
3032 if test "$no_cache" != 1; then
3033 echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
3034 fi
3035
3036 if test "$wxUSE_STREAMS" = yes; then
3037 echo "$ac_t""yes" 1>&6
3038 else
3039 echo "$ac_t""no" 1>&6
3040 fi
3041
3042
3043 echo $ac_n "checking "for --enable-file"""... $ac_c" 1>&6
3fed1840 3044echo "configure:3045: checking "for --enable-file"" >&5
10f2d63a
VZ
3045 no_cache=0
3046 # Check whether --enable-file or --disable-file was given.
3047if test "${enable_file+set}" = set; then
3048 enableval="$enable_file"
3049
3050 if test "$enableval" = yes; then
3051 ac_cv_use_file='wxUSE_FILE=yes'
3052 else
3053 ac_cv_use_file='wxUSE_FILE=no'
3054 fi
3055
3056else
3057
3058 LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
3059 if test "x$LINE" != x ; then
3060 eval "DEFAULT_$LINE"
3061 else
3062 no_cache=1
3063 fi
3064
3065 ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
3066
3067fi
3068
3069
3070 eval "$ac_cv_use_file"
3071 if test "$no_cache" != 1; then
3072 echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
3073 fi
3074
3075 if test "$wxUSE_FILE" = yes; then
3076 echo "$ac_t""yes" 1>&6
3077 else
3078 echo "$ac_t""no" 1>&6
3079 fi
3080
3081
3082 echo $ac_n "checking "for --enable-textfile"""... $ac_c" 1>&6
3fed1840 3083echo "configure:3084: checking "for --enable-textfile"" >&5
10f2d63a
VZ
3084 no_cache=0
3085 # Check whether --enable-textfile or --disable-textfile was given.
3086if test "${enable_textfile+set}" = set; then
3087 enableval="$enable_textfile"
3088
3089 if test "$enableval" = yes; then
3090 ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
3091 else
3092 ac_cv_use_textfile='wxUSE_TEXTFILE=no'
3093 fi
3094
3095else
3096
3097 LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
3098 if test "x$LINE" != x ; then
3099 eval "DEFAULT_$LINE"
3100 else
3101 no_cache=1
3102 fi
3103
3104 ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
3105
3106fi
3107
3108
3109 eval "$ac_cv_use_textfile"
3110 if test "$no_cache" != 1; then
3111 echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
3112 fi
3113
3114 if test "$wxUSE_TEXTFILE" = yes; then
3115 echo "$ac_t""yes" 1>&6
3116 else
3117 echo "$ac_t""no" 1>&6
3118 fi
3119
3120
3121 echo $ac_n "checking "for --enable-unicode"""... $ac_c" 1>&6
3fed1840 3122echo "configure:3123: checking "for --enable-unicode"" >&5
10f2d63a
VZ
3123 no_cache=0
3124 # Check whether --enable-unicode or --disable-unicode was given.
3125if test "${enable_unicode+set}" = set; then
3126 enableval="$enable_unicode"
3127
3128 if test "$enableval" = yes; then
3129 ac_cv_use_unicode='wxUSE_UNICODE=yes'
3130 else
3131 ac_cv_use_unicode='wxUSE_UNICODE=no'
3132 fi
3133
3134else
3135
3136 LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
3137 if test "x$LINE" != x ; then
3138 eval "DEFAULT_$LINE"
3139 else
3140 no_cache=1
3141 fi
3142
3143 ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
3144
3145fi
3146
3147
3148 eval "$ac_cv_use_unicode"
3149 if test "$no_cache" != 1; then
3150 echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
3151 fi
3152
3153 if test "$wxUSE_UNICODE" = yes; then
3154 echo "$ac_t""yes" 1>&6
3155 else
3156 echo "$ac_t""no" 1>&6
3157 fi
3158
3159
3160 echo $ac_n "checking "for --enable-wcsrtombs"""... $ac_c" 1>&6
3fed1840 3161echo "configure:3162: checking "for --enable-wcsrtombs"" >&5
10f2d63a
VZ
3162 no_cache=0
3163 # Check whether --enable-wcsrtombs or --disable-wcsrtombs was given.
3164if test "${enable_wcsrtombs+set}" = set; then
3165 enableval="$enable_wcsrtombs"
3166
3167 if test "$enableval" = yes; then
3168 ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS=yes'
3169 else
3170 ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS=no'
3171 fi
3172
3173else
3174
3175 LINE=`grep "wxUSE_WCSRTOMBS" ${wx_arg_cache_file}`
3176 if test "x$LINE" != x ; then
3177 eval "DEFAULT_$LINE"
3178 else
3179 no_cache=1
3180 fi
3181
3182 ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS='$DEFAULT_wxUSE_WCSRTOMBS
3183
3184fi
3185
3186
3187 eval "$ac_cv_use_wcsrtombs"
3188 if test "$no_cache" != 1; then
3189 echo $ac_cv_use_wcsrtombs >> ${wx_arg_cache_file}.tmp
3190 fi
3191
3192 if test "$wxUSE_WCSRTOMBS" = yes; then
3193 echo "$ac_t""yes" 1>&6
3194 else
3195 echo "$ac_t""no" 1>&6
3196 fi
3197
3198
3199 echo $ac_n "checking "for --enable-wxprintfv"""... $ac_c" 1>&6
3fed1840 3200echo "configure:3201: checking "for --enable-wxprintfv"" >&5
10f2d63a
VZ
3201 no_cache=0
3202 # Check whether --enable-wxprintfv or --disable-wxprintfv was given.
3203if test "${enable_wxprintfv+set}" = set; then
3204 enableval="$enable_wxprintfv"
3205
3206 if test "$enableval" = yes; then
3207 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes'
3208 else
3209 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no'
3210 fi
3211
3212else
3213
3214 LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}`
3215 if test "x$LINE" != x ; then
3216 eval "DEFAULT_$LINE"
3217 else
3218 no_cache=1
3219 fi
3220
3221 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF
3222
3223fi
3224
3225
3226 eval "$ac_cv_use_wxprintfv"
3227 if test "$no_cache" != 1; then
3228 echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp
3229 fi
3230
3231 if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then
3232 echo "$ac_t""yes" 1>&6
3233 else
3234 echo "$ac_t""no" 1>&6
3235 fi
3236
3237
10f2d63a 3238 echo $ac_n "checking "for --enable-std_iostreams"""... $ac_c" 1>&6
3fed1840 3239echo "configure:3240: checking "for --enable-std_iostreams"" >&5
10f2d63a
VZ
3240 no_cache=0
3241 # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
3242if test "${enable_std_iostreams+set}" = set; then
3243 enableval="$enable_std_iostreams"
3244
3245 if test "$enableval" = yes; then
3246 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
3247 else
3248 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
3249 fi
3250
3251else
3252
3253 LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
3254 if test "x$LINE" != x ; then
3255 eval "DEFAULT_$LINE"
3256 else
3257 no_cache=1
3258 fi
3259
3260 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
3261
3262fi
3263
3264
3265 eval "$ac_cv_use_std_iostreams"
3266 if test "$no_cache" != 1; then
3267 echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
3268 fi
3269
3270 if test "$wxUSE_STD_IOSTREAM" = yes; then
3271 echo "$ac_t""yes" 1>&6
3272 else
3273 echo "$ac_t""no" 1>&6
3274 fi
3275
3276
24528b0c 3277 echo $ac_n "checking "for --enable-filesystem"""... $ac_c" 1>&6
3fed1840 3278echo "configure:3279: checking "for --enable-filesystem"" >&5
24528b0c
VS
3279 no_cache=0
3280 # Check whether --enable-filesystem or --disable-filesystem was given.
3281if test "${enable_filesystem+set}" = set; then
3282 enableval="$enable_filesystem"
3283
3284 if test "$enableval" = yes; then
3285 ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
3286 else
3287 ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
3288 fi
3289
3290else
3291
3292 LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}`
3293 if test "x$LINE" != x ; then
3294 eval "DEFAULT_$LINE"
3295 else
3296 no_cache=1
3297 fi
3298
3299 ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
3300
3301fi
3302
3303
3304 eval "$ac_cv_use_filesystem"
3305 if test "$no_cache" != 1; then
3306 echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
3307 fi
3308
3309 if test "$wxUSE_FILESYSTEM" = yes; then
3310 echo "$ac_t""yes" 1>&6
3311 else
3312 echo "$ac_t""no" 1>&6
3313 fi
3314
3315
10f2d63a 3316 echo $ac_n "checking "for --enable-fs_inet"""... $ac_c" 1>&6
3fed1840 3317echo "configure:3318: checking "for --enable-fs_inet"" >&5
10f2d63a
VZ
3318 no_cache=0
3319 # Check whether --enable-fs_inet or --disable-fs_inet was given.
3320if test "${enable_fs_inet+set}" = set; then
3321 enableval="$enable_fs_inet"
3322
3323 if test "$enableval" = yes; then
3324 ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
3325 else
3326 ac_cv_use_fs_inet='wxUSE_FS_INET=no'
3327 fi
3328
3329else
3330
3331 LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
3332 if test "x$LINE" != x ; then
3333 eval "DEFAULT_$LINE"
3334 else
3335 no_cache=1
3336 fi
3337
3338 ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
3339
3340fi
3341
3342
3343 eval "$ac_cv_use_fs_inet"
3344 if test "$no_cache" != 1; then
3345 echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
3346 fi
3347
3348 if test "$wxUSE_FS_INET" = yes; then
3349 echo "$ac_t""yes" 1>&6
3350 else
3351 echo "$ac_t""no" 1>&6
3352 fi
3353
3354
3355 echo $ac_n "checking "for --enable-fs_zip"""... $ac_c" 1>&6
3fed1840 3356echo "configure:3357: checking "for --enable-fs_zip"" >&5
10f2d63a
VZ
3357 no_cache=0
3358 # Check whether --enable-fs_zip or --disable-fs_zip was given.
3359if test "${enable_fs_zip+set}" = set; then
3360 enableval="$enable_fs_zip"
3361
3362 if test "$enableval" = yes; then
3363 ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
3364 else
3365 ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
3366 fi
3367
3368else
3369
3370 LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
3371 if test "x$LINE" != x ; then
3372 eval "DEFAULT_$LINE"
3373 else
3374 no_cache=1
3375 fi
3376
3377 ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
3378
3379fi
3380
3381
3382 eval "$ac_cv_use_fs_zip"
3383 if test "$no_cache" != 1; then
3384 echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
3385 fi
3386
3387 if test "$wxUSE_FS_ZIP" = yes; then
3388 echo "$ac_t""yes" 1>&6
3389 else
3390 echo "$ac_t""no" 1>&6
3391 fi
3392
3393
3394 echo $ac_n "checking "for --enable-zipstream"""... $ac_c" 1>&6
3fed1840 3395echo "configure:3396: checking "for --enable-zipstream"" >&5
10f2d63a
VZ
3396 no_cache=0
3397 # Check whether --enable-zipstream or --disable-zipstream was given.
3398if test "${enable_zipstream+set}" = set; then
3399 enableval="$enable_zipstream"
3400
3401 if test "$enableval" = yes; then
3402 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
3403 else
3404 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
3405 fi
3406
3407else
3408
3409 LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
3410 if test "x$LINE" != x ; then
3411 eval "DEFAULT_$LINE"
3412 else
3413 no_cache=1
3414 fi
3415
3416 ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
3417
3418fi
3419
3420
3421 eval "$ac_cv_use_zipstream"
3422 if test "$no_cache" != 1; then
3423 echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
3424 fi
3425
3426 if test "$wxUSE_ZIPSTREAM" = yes; then
3427 echo "$ac_t""yes" 1>&6
3428 else
3429 echo "$ac_t""no" 1>&6
3430 fi
3431
3432
3433
eb4efbdc 3434 echo $ac_n "checking "for --enable-catch_segvs"""... $ac_c" 1>&6
3fed1840 3435echo "configure:3436: checking "for --enable-catch_segvs"" >&5
eb4efbdc
VZ
3436 no_cache=0
3437 # Check whether --enable-catch_segvs or --disable-catch_segvs was given.
3438if test "${enable_catch_segvs+set}" = set; then
3439 enableval="$enable_catch_segvs"
3440
3441 if test "$enableval" = yes; then
3442 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
3443 else
3444 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
3445 fi
3446
3447else
3448
3449 LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}`
3450 if test "x$LINE" != x ; then
3451 eval "DEFAULT_$LINE"
3452 else
3453 no_cache=1
3454 fi
3455
3456 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION
3457
3458fi
3459
3460
3461 eval "$ac_cv_use_catch_segvs"
3462 if test "$no_cache" != 1; then
3463 echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp
3464 fi
3465
3466 if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then
3467 echo "$ac_t""yes" 1>&6
3468 else
3469 echo "$ac_t""no" 1>&6
3470 fi
3471
3472
3473
10f2d63a
VZ
3474
3475 echo $ac_n "checking "for --enable-threads"""... $ac_c" 1>&6
3fed1840 3476echo "configure:3477: checking "for --enable-threads"" >&5
10f2d63a
VZ
3477 no_cache=0
3478 # Check whether --enable-threads or --disable-threads was given.
3479if test "${enable_threads+set}" = set; then
3480 enableval="$enable_threads"
3481
3482 if test "$enableval" = yes; then
3483 ac_cv_use_threads='wxUSE_THREADS=yes'
3484 else
3485 ac_cv_use_threads='wxUSE_THREADS=no'
3486 fi
3487
3488else
3489
3490 LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
3491 if test "x$LINE" != x ; then
3492 eval "DEFAULT_$LINE"
3493 else
3494 no_cache=1
3495 fi
3496
3497 ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
3498
3499fi
3500
3501
3502 eval "$ac_cv_use_threads"
3503 if test "$no_cache" != 1; then
3504 echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
3505 fi
3506
3507 if test "$wxUSE_THREADS" = yes; then
3508 echo "$ac_t""yes" 1>&6
3509 else
3510 echo "$ac_t""no" 1>&6
3511 fi
3512
3513
3514 echo $ac_n "checking "for --enable-serial"""... $ac_c" 1>&6
3fed1840 3515echo "configure:3516: checking "for --enable-serial"" >&5
10f2d63a
VZ
3516 no_cache=0
3517 # Check whether --enable-serial or --disable-serial was given.
3518if test "${enable_serial+set}" = set; then
3519 enableval="$enable_serial"
3520
3521 if test "$enableval" = yes; then
3522 ac_cv_use_serial='wxUSE_SERIAL=yes'
3523 else
3524 ac_cv_use_serial='wxUSE_SERIAL=no'
3525 fi
3526
3527else
3528
3529 LINE=`grep "wxUSE_SERIAL" ${wx_arg_cache_file}`
3530 if test "x$LINE" != x ; then
3531 eval "DEFAULT_$LINE"
3532 else
3533 no_cache=1
3534 fi
3535
3536 ac_cv_use_serial='wxUSE_SERIAL='$DEFAULT_wxUSE_SERIAL
3537
3538fi
3539
3540
3541 eval "$ac_cv_use_serial"
3542 if test "$no_cache" != 1; then
3543 echo $ac_cv_use_serial >> ${wx_arg_cache_file}.tmp
3544 fi
3545
3546 if test "$wxUSE_SERIAL" = yes; then
3547 echo "$ac_t""yes" 1>&6
3548 else
3549 echo "$ac_t""no" 1>&6
3550 fi
3551
3552
b12915c1
VZ
3553if test "$wxUSE_GUI" = "yes"; then
3554
10f2d63a
VZ
3555
3556
3557 echo $ac_n "checking "for --enable-docview"""... $ac_c" 1>&6
3fed1840 3558echo "configure:3559: checking "for --enable-docview"" >&5
10f2d63a
VZ
3559 no_cache=0
3560 # Check whether --enable-docview or --disable-docview was given.
3561if test "${enable_docview+set}" = set; then
3562 enableval="$enable_docview"
3563
3564 if test "$enableval" = yes; then
3565 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
3566 else
3567 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
3568 fi
3569
3570else
3571
3572 LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
3573 if test "x$LINE" != x ; then
3574 eval "DEFAULT_$LINE"
3575 else
3576 no_cache=1
3577 fi
3578
3579 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
3580
3581fi
3582
3583
3584 eval "$ac_cv_use_docview"
3585 if test "$no_cache" != 1; then
3586 echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
3587 fi
3588
3589 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
3590 echo "$ac_t""yes" 1>&6
3591 else
3592 echo "$ac_t""no" 1>&6
3593 fi
3594
3595
3596 echo $ac_n "checking "for --enable-help"""... $ac_c" 1>&6
3fed1840 3597echo "configure:3598: checking "for --enable-help"" >&5
10f2d63a
VZ
3598 no_cache=0
3599 # Check whether --enable-help or --disable-help was given.
3600if test "${enable_help+set}" = set; then
3601 enableval="$enable_help"
3602
3603 if test "$enableval" = yes; then
3604 ac_cv_use_help='wxUSE_HELP=yes'
3605 else
3606 ac_cv_use_help='wxUSE_HELP=no'
3607 fi
3608
3609else
3610
3611 LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
3612 if test "x$LINE" != x ; then
3613 eval "DEFAULT_$LINE"
3614 else
3615 no_cache=1
3616 fi
3617
3618 ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
3619
3620fi
3621
3622
3623 eval "$ac_cv_use_help"
3624 if test "$no_cache" != 1; then
3625 echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
3626 fi
3627
3628 if test "$wxUSE_HELP" = yes; then
3629 echo "$ac_t""yes" 1>&6
3630 else
3631 echo "$ac_t""no" 1>&6
3632 fi
3633
3634
3635 echo $ac_n "checking "for --enable-constraints"""... $ac_c" 1>&6
3fed1840 3636echo "configure:3637: checking "for --enable-constraints"" >&5
10f2d63a
VZ
3637 no_cache=0
3638 # Check whether --enable-constraints or --disable-constraints was given.
3639if test "${enable_constraints+set}" = set; then
3640 enableval="$enable_constraints"
3641
3642 if test "$enableval" = yes; then
3643 ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
3644 else
3645 ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
3646 fi
3647
3648else
3649
3650 LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
3651 if test "x$LINE" != x ; then
3652 eval "DEFAULT_$LINE"
3653 else
3654 no_cache=1
3655 fi
3656
3657 ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
3658
3659fi
3660
3661
3662 eval "$ac_cv_use_constraints"
3663 if test "$no_cache" != 1; then
3664 echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
3665 fi
3666
3667 if test "$wxUSE_CONSTRAINTS" = yes; then
3668 echo "$ac_t""yes" 1>&6
3669 else
3670 echo "$ac_t""no" 1>&6
3671 fi
3672
3673
3674 echo $ac_n "checking "for --enable-printarch"""... $ac_c" 1>&6
3fed1840 3675echo "configure:3676: checking "for --enable-printarch"" >&5
10f2d63a
VZ
3676 no_cache=0
3677 # Check whether --enable-printarch or --disable-printarch was given.
3678if test "${enable_printarch+set}" = set; then
3679 enableval="$enable_printarch"
3680
3681 if test "$enableval" = yes; then
3682 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
3683 else
3684 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
3685 fi
3686
3687else
3688
3689 LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
3690 if test "x$LINE" != x ; then
3691 eval "DEFAULT_$LINE"
3692 else
3693 no_cache=1
3694 fi
3695
3696 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
3697
3698fi
3699
3700
3701 eval "$ac_cv_use_printarch"
3702 if test "$no_cache" != 1; then
3703 echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
3704 fi
3705
3706 if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
3707 echo "$ac_t""yes" 1>&6
3708 else
3709 echo "$ac_t""no" 1>&6
3710 fi
3711
3712
3713 echo $ac_n "checking "for --enable-mdi"""... $ac_c" 1>&6
3fed1840 3714echo "configure:3715: checking "for --enable-mdi"" >&5
10f2d63a
VZ
3715 no_cache=0
3716 # Check whether --enable-mdi or --disable-mdi was given.
3717if test "${enable_mdi+set}" = set; then
3718 enableval="$enable_mdi"
3719
3720 if test "$enableval" = yes; then
3721 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=yes'
3722 else
3723 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=no'
3724 fi
3725
3726else
3727
3728 LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
3729 if test "x$LINE" != x ; then
3730 eval "DEFAULT_$LINE"
3731 else
3732 no_cache=1
3733 fi
3734
3735 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
3736
3737fi
3738
3739
3740 eval "$ac_cv_use_mdi"
3741 if test "$no_cache" != 1; then
3742 echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
3743 fi
3744
3745 if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
3746 echo "$ac_t""yes" 1>&6
3747 else
3748 echo "$ac_t""no" 1>&6
3749 fi
3750
3751
3752
3753 echo $ac_n "checking "for --enable-postscript"""... $ac_c" 1>&6
3fed1840 3754echo "configure:3755: checking "for --enable-postscript"" >&5
10f2d63a
VZ
3755 no_cache=0
3756 # Check whether --enable-postscript or --disable-postscript was given.
3757if test "${enable_postscript+set}" = set; then
3758 enableval="$enable_postscript"
3759
3760 if test "$enableval" = yes; then
3761 ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
3762 else
3763 ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
3764 fi
3765
3766else
3767
3768 LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
3769 if test "x$LINE" != x ; then
3770 eval "DEFAULT_$LINE"
3771 else
3772 no_cache=1
3773 fi
3774
3775 ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
3776
3777fi
3778
3779
3780 eval "$ac_cv_use_postscript"
3781 if test "$no_cache" != 1; then
3782 echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
3783 fi
3784
3785 if test "$wxUSE_POSTSCRIPT" = yes; then
3786 echo "$ac_t""yes" 1>&6
3787 else
3788 echo "$ac_t""no" 1>&6
3789 fi
3790
3791
3792
3793
3794 echo $ac_n "checking "for --enable-prologio"""... $ac_c" 1>&6
3fed1840 3795echo "configure:3796: checking "for --enable-prologio"" >&5
10f2d63a
VZ
3796 no_cache=0
3797 # Check whether --enable-prologio or --disable-prologio was given.
3798if test "${enable_prologio+set}" = set; then
3799 enableval="$enable_prologio"
3800
3801 if test "$enableval" = yes; then
3802 ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
3803 else
3804 ac_cv_use_prologio='wxUSE_PROLOGIO=no'
3805 fi
3806
3807else
3808
3809 LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
3810 if test "x$LINE" != x ; then
3811 eval "DEFAULT_$LINE"
3812 else
3813 no_cache=1
3814 fi
3815
3816 ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
3817
3818fi
3819
3820
3821 eval "$ac_cv_use_prologio"
3822 if test "$no_cache" != 1; then
3823 echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
3824 fi
3825
3826 if test "$wxUSE_PROLOGIO" = yes; then
3827 echo "$ac_t""yes" 1>&6
3828 else
3829 echo "$ac_t""no" 1>&6
3830 fi
3831
3832
3833 echo $ac_n "checking "for --enable-resources"""... $ac_c" 1>&6
3fed1840 3834echo "configure:3835: checking "for --enable-resources"" >&5
10f2d63a
VZ
3835 no_cache=0
3836 # Check whether --enable-resources or --disable-resources was given.
3837if test "${enable_resources+set}" = set; then
3838 enableval="$enable_resources"
3839
3840 if test "$enableval" = yes; then
3841 ac_cv_use_resources='wxUSE_RESOURCES=yes'
3842 else
3843 ac_cv_use_resources='wxUSE_RESOURCES=no'
3844 fi
3845
3846else
3847
3848 LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
3849 if test "x$LINE" != x ; then
3850 eval "DEFAULT_$LINE"
3851 else
3852 no_cache=1
3853 fi
3854
3855 ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
3856
3857fi
3858
3859
3860 eval "$ac_cv_use_resources"
3861 if test "$no_cache" != 1; then
3862 echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
3863 fi
3864
3865 if test "$wxUSE_RESOURCES" = yes; then
3866 echo "$ac_t""yes" 1>&6
3867 else
3868 echo "$ac_t""no" 1>&6
3869 fi
3870
3871
3872
3873 echo $ac_n "checking "for --enable-xresources"""... $ac_c" 1>&6
3fed1840 3874echo "configure:3875: checking "for --enable-xresources"" >&5
10f2d63a
VZ
3875 no_cache=0
3876 # Check whether --enable-xresources or --disable-xresources was given.
3877if test "${enable_xresources+set}" = set; then
3878 enableval="$enable_xresources"
3879
3880 if test "$enableval" = yes; then
3881 ac_cv_use_xresources='wxUSE_X_RESOURCES=yes'
3882 else
3883 ac_cv_use_xresources='wxUSE_X_RESOURCES=no'
3884 fi
3885
3886else
3887
3888 LINE=`grep "wxUSE_X_RESOURCES" ${wx_arg_cache_file}`
3889 if test "x$LINE" != x ; then
3890 eval "DEFAULT_$LINE"
3891 else
3892 no_cache=1
3893 fi
3894
3895 ac_cv_use_xresources='wxUSE_X_RESOURCES='$DEFAULT_wxUSE_X_RESOURCES
3896
3897fi
3898
3899
3900 eval "$ac_cv_use_xresources"
3901 if test "$no_cache" != 1; then
3902 echo $ac_cv_use_xresources >> ${wx_arg_cache_file}.tmp
3903 fi
3904
3905 if test "$wxUSE_X_RESOURCES" = yes; then
3906 echo "$ac_t""yes" 1>&6
3907 else
3908 echo "$ac_t""no" 1>&6
3909 fi
3910
3911
3912
3913
3914 echo $ac_n "checking "for --enable-clipboard"""... $ac_c" 1>&6
3fed1840 3915echo "configure:3916: checking "for --enable-clipboard"" >&5
10f2d63a
VZ
3916 no_cache=0
3917 # Check whether --enable-clipboard or --disable-clipboard was given.
3918if test "${enable_clipboard+set}" = set; then
3919 enableval="$enable_clipboard"
3920
3921 if test "$enableval" = yes; then
3922 ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
3923 else
3924 ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
3925 fi
3926
3927else
3928
3929 LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
3930 if test "x$LINE" != x ; then
3931 eval "DEFAULT_$LINE"
3932 else
3933 no_cache=1
3934 fi
3935
3936 ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
3937
3938fi
3939
3940
3941 eval "$ac_cv_use_clipboard"
3942 if test "$no_cache" != 1; then
3943 echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
3944 fi
3945
3946 if test "$wxUSE_CLIPBOARD" = yes; then
3947 echo "$ac_t""yes" 1>&6
3948 else
3949 echo "$ac_t""no" 1>&6
3950 fi
3951
3952
3953 echo $ac_n "checking "for --enable-dnd"""... $ac_c" 1>&6
3fed1840 3954echo "configure:3955: checking "for --enable-dnd"" >&5
10f2d63a
VZ
3955 no_cache=0
3956 # Check whether --enable-dnd or --disable-dnd was given.
3957if test "${enable_dnd+set}" = set; then
3958 enableval="$enable_dnd"
3959
3960 if test "$enableval" = yes; then
3961 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
3962 else
3963 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
3964 fi
3965
3966else
3967
3968 LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
3969 if test "x$LINE" != x ; then
3970 eval "DEFAULT_$LINE"
3971 else
3972 no_cache=1
3973 fi
3974
3975 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
3976
3977fi
3978
3979
3980 eval "$ac_cv_use_dnd"
3981 if test "$no_cache" != 1; then
3982 echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
3983 fi
3984
3985 if test "$wxUSE_DRAG_AND_DROP" = yes; then
3986 echo "$ac_t""yes" 1>&6
3987 else
3988 echo "$ac_t""no" 1>&6
3989 fi
3990
3991
3992
3993 echo $ac_n "checking "for --enable-wxtree"""... $ac_c" 1>&6
3fed1840 3994echo "configure:3995: checking "for --enable-wxtree"" >&5
10f2d63a
VZ
3995 no_cache=0
3996 # Check whether --enable-wxtree or --disable-wxtree was given.
3997if test "${enable_wxtree+set}" = set; then
3998 enableval="$enable_wxtree"
3999
4000 if test "$enableval" = yes; then
4001 ac_cv_use_wxtree='wxUSE_WXTREE=yes'
4002 else
4003 ac_cv_use_wxtree='wxUSE_WXTREE=no'
4004 fi
4005
4006else
4007
4008 LINE=`grep "wxUSE_WXTREE" ${wx_arg_cache_file}`
4009 if test "x$LINE" != x ; then
4010 eval "DEFAULT_$LINE"
4011 else
4012 no_cache=1
4013 fi
4014
4015 ac_cv_use_wxtree='wxUSE_WXTREE='$DEFAULT_wxUSE_WXTREE
4016
4017fi
4018
4019
4020 eval "$ac_cv_use_wxtree"
4021 if test "$no_cache" != 1; then
4022 echo $ac_cv_use_wxtree >> ${wx_arg_cache_file}.tmp
4023 fi
4024
4025 if test "$wxUSE_WXTREE" = yes; then
4026 echo "$ac_t""yes" 1>&6
4027 else
4028 echo "$ac_t""no" 1>&6
4029 fi
4030
4031
4032
4033
4034 echo $ac_n "checking "for --enable-controls"""... $ac_c" 1>&6
3fed1840 4035echo "configure:4036: checking "for --enable-controls"" >&5
10f2d63a
VZ
4036 no_cache=0
4037 # Check whether --enable-controls or --disable-controls was given.
4038if test "${enable_controls+set}" = set; then
4039 enableval="$enable_controls"
4040
4041 if test "$enableval" = yes; then
4042 ac_cv_use_controls='wxUSE_CONTROLS=yes'
4043 else
4044 ac_cv_use_controls='wxUSE_CONTROLS=no'
4045 fi
4046
4047else
4048
4049 LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
4050 if test "x$LINE" != x ; then
4051 eval "DEFAULT_$LINE"
4052 else
4053 no_cache=1
4054 fi
4055
4056 ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
4057
4058fi
4059
4060
4061 eval "$ac_cv_use_controls"
4062 if test "$no_cache" != 1; then
4063 echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
4064 fi
4065
4066 if test "$wxUSE_CONTROLS" = yes; then
4067 echo "$ac_t""yes" 1>&6
4068 else
4069 echo "$ac_t""no" 1>&6
4070 fi
4071
4072
4073if test "$wxUSE_CONTROLS" = "yes"; then
4074 DEFAULT_wxUSE_ACCEL=yes
4075 DEFAULT_wxUSE_CARET=yes
4076 DEFAULT_wxUSE_COMBOBOX=yes
4077 DEFAULT_wxUSE_BMPBUTTON=yes
4078 DEFAULT_wxUSE_CHECKBOX=yes
4079 DEFAULT_wxUSE_CHECKLISTBOX=yes
4080 DEFAULT_wxUSE_CHOICE=yes
4081 DEFAULT_wxUSE_GAUGE=yes
4082 DEFAULT_wxUSE_GRID=yes
cc977e5f 4083 DEFAULT_wxUSE_NEW_GRID=yes
10f2d63a
VZ
4084 DEFAULT_wxUSE_IMAGLIST=yes
4085 DEFAULT_wxUSE_LISTBOX=yes
4086 DEFAULT_wxUSE_LISTCTRL=yes
4087 DEFAULT_wxUSE_NOTEBOOK=yes
4088 DEFAULT_wxUSE_RADIOBOX=yes
4089 DEFAULT_wxUSE_RADIOBTN=yes
4090 DEFAULT_wxUSE_SASH=yes
4091 DEFAULT_wxUSE_SCROLLBAR=yes
4092 DEFAULT_wxUSE_SLIDER=yes
4093 DEFAULT_wxUSE_SPINBTN=yes
56cfaa52 4094 DEFAULT_wxUSE_SPINCTRL=yes
10f2d63a
VZ
4095 DEFAULT_wxUSE_SPLITTER=yes
4096 DEFAULT_wxUSE_STATBMP=yes
4097 DEFAULT_wxUSE_STATBOX=yes
4098 DEFAULT_wxUSE_STATLINE=yes
4099 DEFAULT_wxUSE_STATUSBAR=yes
4100 DEFAULT_wxUSE_TAB_DIALOG=yes
4101 DEFAULT_wxUSE_TOOLBAR=yes
360d6699
VZ
4102 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
4103 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
10f2d63a
VZ
4104 DEFAULT_wxUSE_TOOLTIPS=yes
4105 DEFAULT_wxUSE_TREECTRL=yes
4106elif test "$wxUSE_CONTROLS" = "no"; then
4107 DEFAULT_wxUSE_ACCEL=no
4108 DEFAULT_wxUSE_CARET=no
4109 DEFAULT_wxUSE_COMBOBOX=no
4110 DEFAULT_wxUSE_BMPBUTTON=no
4111 DEFAULT_wxUSE_CHECKBOX=no
4112 DEFAULT_wxUSE_CHECKLISTBOX=no
4113 DEFAULT_wxUSE_CHOICE=no
4114 DEFAULT_wxUSE_GAUGE=no
4115 DEFAULT_wxUSE_GRID=no
4116 DEFAULT_wxUSE_NEW_GRID=no
4117 DEFAULT_wxUSE_IMAGLIST=no
4118 DEFAULT_wxUSE_LISTBOX=no
4119 DEFAULT_wxUSE_LISTCTRL=no
4120 DEFAULT_wxUSE_NOTEBOOK=no
4121 DEFAULT_wxUSE_RADIOBOX=no
4122 DEFAULT_wxUSE_RADIOBTN=no
4123 DEFAULT_wxUSE_SASH=no
4124 DEFAULT_wxUSE_SCROLLBAR=no
4125 DEFAULT_wxUSE_SLIDER=no
4126 DEFAULT_wxUSE_SPINBTN=no
56cfaa52 4127 DEFAULT_wxUSE_SPINCTRL=no
10f2d63a
VZ
4128 DEFAULT_wxUSE_SPLITTER=no
4129 DEFAULT_wxUSE_STATBMP=no
4130 DEFAULT_wxUSE_STATBOX=no
4131 DEFAULT_wxUSE_STATLINE=no
4132 DEFAULT_wxUSE_STATUSBAR=no
4133 DEFAULT_wxUSE_TAB_DIALOG=no
4134 DEFAULT_wxUSE_TOOLBAR=no
360d6699
VZ
4135 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
4136 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
10f2d63a
VZ
4137 DEFAULT_wxUSE_TOOLTIPS=no
4138 DEFAULT_wxUSE_TREECTRL=no
4139fi
4140
4141
4142 echo $ac_n "checking "for --enable-accel"""... $ac_c" 1>&6
3fed1840 4143echo "configure:4144: checking "for --enable-accel"" >&5
10f2d63a
VZ
4144 no_cache=0
4145 # Check whether --enable-accel or --disable-accel was given.
4146if test "${enable_accel+set}" = set; then
4147 enableval="$enable_accel"
4148
4149 if test "$enableval" = yes; then
4150 ac_cv_use_accel='wxUSE_ACCEL=yes'
4151 else
4152 ac_cv_use_accel='wxUSE_ACCEL=no'
4153 fi
4154
4155else
4156
4157 LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
4158 if test "x$LINE" != x ; then
4159 eval "DEFAULT_$LINE"
4160 else
4161 no_cache=1
4162 fi
4163
4164 ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
4165
4166fi
4167
4168
4169 eval "$ac_cv_use_accel"
4170 if test "$no_cache" != 1; then
4171 echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
4172 fi
4173
4174 if test "$wxUSE_ACCEL" = yes; then
4175 echo "$ac_t""yes" 1>&6
4176 else
4177 echo "$ac_t""no" 1>&6
4178 fi
4179
4180
4181 echo $ac_n "checking "for --enable-caret"""... $ac_c" 1>&6
3fed1840 4182echo "configure:4183: checking "for --enable-caret"" >&5
10f2d63a
VZ
4183 no_cache=0
4184 # Check whether --enable-caret or --disable-caret was given.
4185if test "${enable_caret+set}" = set; then
4186 enableval="$enable_caret"
4187
4188 if test "$enableval" = yes; then
4189 ac_cv_use_caret='wxUSE_CARET=yes'
4190 else
4191 ac_cv_use_caret='wxUSE_CARET=no'
4192 fi
4193
4194else
4195
4196 LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
4197 if test "x$LINE" != x ; then
4198 eval "DEFAULT_$LINE"
4199 else
4200 no_cache=1
4201 fi
4202
4203 ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
4204
4205fi
4206
4207
4208 eval "$ac_cv_use_caret"
4209 if test "$no_cache" != 1; then
4210 echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
4211 fi
4212
4213 if test "$wxUSE_CARET" = yes; then
4214 echo "$ac_t""yes" 1>&6
4215 else
4216 echo "$ac_t""no" 1>&6
4217 fi
4218
4219
4220 echo $ac_n "checking "for --enable-bmpbutton"""... $ac_c" 1>&6
3fed1840 4221echo "configure:4222: checking "for --enable-bmpbutton"" >&5
10f2d63a
VZ
4222 no_cache=0
4223 # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
4224if test "${enable_bmpbutton+set}" = set; then
4225 enableval="$enable_bmpbutton"
4226
4227 if test "$enableval" = yes; then
4228 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
4229 else
4230 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
4231 fi
4232
4233else
4234
4235 LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
4236 if test "x$LINE" != x ; then
4237 eval "DEFAULT_$LINE"
4238 else
4239 no_cache=1
4240 fi
4241
4242 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
4243
4244fi
4245
4246
4247 eval "$ac_cv_use_bmpbutton"
4248 if test "$no_cache" != 1; then
4249 echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
4250 fi
4251
4252 if test "$wxUSE_BMPBUTTON" = yes; then
4253 echo "$ac_t""yes" 1>&6
4254 else
4255 echo "$ac_t""no" 1>&6
4256 fi
4257
4258
4259 echo $ac_n "checking "for --enable-checkbox"""... $ac_c" 1>&6
3fed1840 4260echo "configure:4261: checking "for --enable-checkbox"" >&5
10f2d63a
VZ
4261 no_cache=0
4262 # Check whether --enable-checkbox or --disable-checkbox was given.
4263if test "${enable_checkbox+set}" = set; then
4264 enableval="$enable_checkbox"
4265
4266 if test "$enableval" = yes; then
4267 ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
4268 else
4269 ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
4270 fi
4271
4272else
4273
4274 LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
4275 if test "x$LINE" != x ; then
4276 eval "DEFAULT_$LINE"
4277 else
4278 no_cache=1
4279 fi
4280
4281 ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
4282
4283fi
4284
4285
4286 eval "$ac_cv_use_checkbox"
4287 if test "$no_cache" != 1; then
4288 echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
4289 fi
4290
4291 if test "$wxUSE_CHECKBOX" = yes; then
4292 echo "$ac_t""yes" 1>&6
4293 else
4294 echo "$ac_t""no" 1>&6
4295 fi
4296
4297
4298 echo $ac_n "checking "for --enable-checklst"""... $ac_c" 1>&6
3fed1840 4299echo "configure:4300: checking "for --enable-checklst"" >&5
10f2d63a
VZ
4300 no_cache=0
4301 # Check whether --enable-checklst or --disable-checklst was given.
4302if test "${enable_checklst+set}" = set; then
4303 enableval="$enable_checklst"
4304
4305 if test "$enableval" = yes; then
4306 ac_cv_use_checklst='wxUSE_CHECKLST=yes'
4307 else
4308 ac_cv_use_checklst='wxUSE_CHECKLST=no'
4309 fi
4310
4311else
4312
4313 LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
4314 if test "x$LINE" != x ; then
4315 eval "DEFAULT_$LINE"
4316 else
4317 no_cache=1
4318 fi
4319
4320 ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
4321
4322fi
4323
4324
4325 eval "$ac_cv_use_checklst"
4326 if test "$no_cache" != 1; then
4327 echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
4328 fi
4329
4330 if test "$wxUSE_CHECKLST" = yes; then
4331 echo "$ac_t""yes" 1>&6
4332 else
4333 echo "$ac_t""no" 1>&6
4334 fi
4335
4336
4337 echo $ac_n "checking "for --enable-choice"""... $ac_c" 1>&6
3fed1840 4338echo "configure:4339: checking "for --enable-choice"" >&5
10f2d63a
VZ
4339 no_cache=0
4340 # Check whether --enable-choice or --disable-choice was given.
4341if test "${enable_choice+set}" = set; then
4342 enableval="$enable_choice"
4343
4344 if test "$enableval" = yes; then
4345 ac_cv_use_choice='wxUSE_CHOICE=yes'
4346 else
4347 ac_cv_use_choice='wxUSE_CHOICE=no'
4348 fi
4349
4350else
4351
4352 LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
4353 if test "x$LINE" != x ; then
4354 eval "DEFAULT_$LINE"
4355 else
4356 no_cache=1
4357 fi
4358
4359 ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
4360
4361fi
4362
4363
4364 eval "$ac_cv_use_choice"
4365 if test "$no_cache" != 1; then
4366 echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
4367 fi
4368
4369 if test "$wxUSE_CHOICE" = yes; then
4370 echo "$ac_t""yes" 1>&6
4371 else
4372 echo "$ac_t""no" 1>&6
4373 fi
4374
4375
4376 echo $ac_n "checking "for --enable-combobox"""... $ac_c" 1>&6
3fed1840 4377echo "configure:4378: checking "for --enable-combobox"" >&5
10f2d63a
VZ
4378 no_cache=0
4379 # Check whether --enable-combobox or --disable-combobox was given.
4380if test "${enable_combobox+set}" = set; then
4381 enableval="$enable_combobox"
4382
4383 if test "$enableval" = yes; then
4384 ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
4385 else
4386 ac_cv_use_combobox='wxUSE_COMBOBOX=no'
4387 fi
4388
4389else
4390
4391 LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
4392 if test "x$LINE" != x ; then
4393 eval "DEFAULT_$LINE"
4394 else
4395 no_cache=1
4396 fi
4397
4398 ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
4399
4400fi
4401
4402
4403 eval "$ac_cv_use_combobox"
4404 if test "$no_cache" != 1; then
4405 echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
4406 fi
4407
4408 if test "$wxUSE_COMBOBOX" = yes; then
4409 echo "$ac_t""yes" 1>&6
4410 else
4411 echo "$ac_t""no" 1>&6
4412 fi
4413
4414
4415 echo $ac_n "checking "for --enable-gauge"""... $ac_c" 1>&6
3fed1840 4416echo "configure:4417: checking "for --enable-gauge"" >&5
10f2d63a
VZ
4417 no_cache=0
4418 # Check whether --enable-gauge or --disable-gauge was given.
4419if test "${enable_gauge+set}" = set; then
4420 enableval="$enable_gauge"
4421
4422 if test "$enableval" = yes; then
4423 ac_cv_use_gauge='wxUSE_GAUGE=yes'
4424 else
4425 ac_cv_use_gauge='wxUSE_GAUGE=no'
4426 fi
4427
4428else
4429
4430 LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
4431 if test "x$LINE" != x ; then
4432 eval "DEFAULT_$LINE"
4433 else
4434 no_cache=1
4435 fi
4436
4437 ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
4438
4439fi
4440
4441
4442 eval "$ac_cv_use_gauge"
4443 if test "$no_cache" != 1; then
4444 echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
4445 fi
4446
4447 if test "$wxUSE_GAUGE" = yes; then
4448 echo "$ac_t""yes" 1>&6
4449 else
4450 echo "$ac_t""no" 1>&6
4451 fi
4452
4453
4454 echo $ac_n "checking "for --enable-grid"""... $ac_c" 1>&6
3fed1840 4455echo "configure:4456: checking "for --enable-grid"" >&5
10f2d63a
VZ
4456 no_cache=0
4457 # Check whether --enable-grid or --disable-grid was given.
4458if test "${enable_grid+set}" = set; then
4459 enableval="$enable_grid"
4460
4461 if test "$enableval" = yes; then
4462 ac_cv_use_grid='wxUSE_GRID=yes'
4463 else
4464 ac_cv_use_grid='wxUSE_GRID=no'
4465 fi
4466
4467else
4468
4469 LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
4470 if test "x$LINE" != x ; then
4471 eval "DEFAULT_$LINE"
4472 else
4473 no_cache=1
4474 fi
4475
4476 ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
4477
4478fi
4479
4480
4481 eval "$ac_cv_use_grid"
4482 if test "$no_cache" != 1; then
4483 echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
4484 fi
4485
4486 if test "$wxUSE_GRID" = yes; then
4487 echo "$ac_t""yes" 1>&6
4488 else
4489 echo "$ac_t""no" 1>&6
4490 fi
4491
4492
4493 echo $ac_n "checking "for --enable-newgrid"""... $ac_c" 1>&6
3fed1840 4494echo "configure:4495: checking "for --enable-newgrid"" >&5
10f2d63a
VZ
4495 no_cache=0
4496 # Check whether --enable-newgrid or --disable-newgrid was given.
4497if test "${enable_newgrid+set}" = set; then
4498 enableval="$enable_newgrid"
4499
4500 if test "$enableval" = yes; then
4501 ac_cv_use_newgrid='wxUSE_NEW_GRID=yes'
4502 else
4503 ac_cv_use_newgrid='wxUSE_NEW_GRID=no'
4504 fi
4505
4506else
4507
4508 LINE=`grep "wxUSE_NEW_GRID" ${wx_arg_cache_file}`
4509 if test "x$LINE" != x ; then
4510 eval "DEFAULT_$LINE"
4511 else
4512 no_cache=1
4513 fi
4514
4515 ac_cv_use_newgrid='wxUSE_NEW_GRID='$DEFAULT_wxUSE_NEW_GRID
4516
4517fi
4518
4519
4520 eval "$ac_cv_use_newgrid"
4521 if test "$no_cache" != 1; then
4522 echo $ac_cv_use_newgrid >> ${wx_arg_cache_file}.tmp
4523 fi
4524
4525 if test "$wxUSE_NEW_GRID" = yes; then
4526 echo "$ac_t""yes" 1>&6
4527 else
4528 echo "$ac_t""no" 1>&6
4529 fi
4530
4531
4532 echo $ac_n "checking "for --enable-imaglist"""... $ac_c" 1>&6
3fed1840 4533echo "configure:4534: checking "for --enable-imaglist"" >&5
10f2d63a
VZ
4534 no_cache=0
4535 # Check whether --enable-imaglist or --disable-imaglist was given.
4536if test "${enable_imaglist+set}" = set; then
4537 enableval="$enable_imaglist"
4538
4539 if test "$enableval" = yes; then
4540 ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
4541 else
4542 ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
4543 fi
4544
4545else
4546
4547 LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
4548 if test "x$LINE" != x ; then
4549 eval "DEFAULT_$LINE"
4550 else
4551 no_cache=1
4552 fi
4553
4554 ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
4555
4556fi
4557
4558
4559 eval "$ac_cv_use_imaglist"
4560 if test "$no_cache" != 1; then
4561 echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
4562 fi
4563
4564 if test "$wxUSE_IMAGLIST" = yes; then
4565 echo "$ac_t""yes" 1>&6
4566 else
4567 echo "$ac_t""no" 1>&6
4568 fi
4569
4570
4571 echo $ac_n "checking "for --enable-listbox"""... $ac_c" 1>&6
3fed1840 4572echo "configure:4573: checking "for --enable-listbox"" >&5
10f2d63a
VZ
4573 no_cache=0
4574 # Check whether --enable-listbox or --disable-listbox was given.
4575if test "${enable_listbox+set}" = set; then
4576 enableval="$enable_listbox"
4577
4578 if test "$enableval" = yes; then
4579 ac_cv_use_listbox='wxUSE_LISTBOX=yes'
4580 else
4581 ac_cv_use_listbox='wxUSE_LISTBOX=no'
4582 fi
4583
4584else
4585
4586 LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
4587 if test "x$LINE" != x ; then
4588 eval "DEFAULT_$LINE"
4589 else
4590 no_cache=1
4591 fi
4592
4593 ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
4594
4595fi
4596
4597
4598 eval "$ac_cv_use_listbox"
4599 if test "$no_cache" != 1; then
4600 echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
4601 fi
4602
4603 if test "$wxUSE_LISTBOX" = yes; then
4604 echo "$ac_t""yes" 1>&6
4605 else
4606 echo "$ac_t""no" 1>&6
4607 fi
4608
4609
4610 echo $ac_n "checking "for --enable-listctrl"""... $ac_c" 1>&6
3fed1840 4611echo "configure:4612: checking "for --enable-listctrl"" >&5
10f2d63a
VZ
4612 no_cache=0
4613 # Check whether --enable-listctrl or --disable-listctrl was given.
4614if test "${enable_listctrl+set}" = set; then
4615 enableval="$enable_listctrl"
4616
4617 if test "$enableval" = yes; then
4618 ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
4619 else
4620 ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
4621 fi
4622
4623else
4624
4625 LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
4626 if test "x$LINE" != x ; then
4627 eval "DEFAULT_$LINE"
4628 else
4629 no_cache=1
4630 fi
4631
4632 ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
4633
4634fi
4635
4636
4637 eval "$ac_cv_use_listctrl"
4638 if test "$no_cache" != 1; then
4639 echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
4640 fi
4641
4642 if test "$wxUSE_LISTCTRL" = yes; then
4643 echo "$ac_t""yes" 1>&6
4644 else
4645 echo "$ac_t""no" 1>&6
4646 fi
4647
4648
4649 echo $ac_n "checking "for --enable-notebook"""... $ac_c" 1>&6
3fed1840 4650echo "configure:4651: checking "for --enable-notebook"" >&5
10f2d63a
VZ
4651 no_cache=0
4652 # Check whether --enable-notebook or --disable-notebook was given.
4653if test "${enable_notebook+set}" = set; then
4654 enableval="$enable_notebook"
4655
4656 if test "$enableval" = yes; then
4657 ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
4658 else
4659 ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
4660 fi
4661
4662else
4663
4664 LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
4665 if test "x$LINE" != x ; then
4666 eval "DEFAULT_$LINE"
4667 else
4668 no_cache=1
4669 fi
4670
4671 ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
4672
4673fi
4674
4675
4676 eval "$ac_cv_use_notebook"
4677 if test "$no_cache" != 1; then
4678 echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
4679 fi
4680
4681 if test "$wxUSE_NOTEBOOK" = yes; then
4682 echo "$ac_t""yes" 1>&6
4683 else
4684 echo "$ac_t""no" 1>&6
4685 fi
4686
4687
4688 echo $ac_n "checking "for --enable-radiobox"""... $ac_c" 1>&6
3fed1840 4689echo "configure:4690: checking "for --enable-radiobox"" >&5
10f2d63a
VZ
4690 no_cache=0
4691 # Check whether --enable-radiobox or --disable-radiobox was given.
4692if test "${enable_radiobox+set}" = set; then
4693 enableval="$enable_radiobox"
4694
4695 if test "$enableval" = yes; then
4696 ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
4697 else
4698 ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
4699 fi
4700
4701else
4702
4703 LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
4704 if test "x$LINE" != x ; then
4705 eval "DEFAULT_$LINE"
4706 else
4707 no_cache=1
4708 fi
4709
4710 ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
4711
4712fi
4713
4714
4715 eval "$ac_cv_use_radiobox"
4716 if test "$no_cache" != 1; then
4717 echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
4718 fi
4719
4720 if test "$wxUSE_RADIOBOX" = yes; then
4721 echo "$ac_t""yes" 1>&6
4722 else
4723 echo "$ac_t""no" 1>&6
4724 fi
4725
4726
4727 echo $ac_n "checking "for --enable-radiobtn"""... $ac_c" 1>&6
3fed1840 4728echo "configure:4729: checking "for --enable-radiobtn"" >&5
10f2d63a
VZ
4729 no_cache=0
4730 # Check whether --enable-radiobtn or --disable-radiobtn was given.
4731if test "${enable_radiobtn+set}" = set; then
4732 enableval="$enable_radiobtn"
4733
4734 if test "$enableval" = yes; then
4735 ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
4736 else
4737 ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
4738 fi
4739
4740else
4741
4742 LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
4743 if test "x$LINE" != x ; then
4744 eval "DEFAULT_$LINE"
4745 else
4746 no_cache=1
4747 fi
4748
4749 ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
4750
4751fi
4752
4753
4754 eval "$ac_cv_use_radiobtn"
4755 if test "$no_cache" != 1; then
4756 echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
4757 fi
4758
4759 if test "$wxUSE_RADIOBTN" = yes; then
4760 echo "$ac_t""yes" 1>&6
4761 else
4762 echo "$ac_t""no" 1>&6
4763 fi
4764
4765
4766 echo $ac_n "checking "for --enable-sash"""... $ac_c" 1>&6
3fed1840 4767echo "configure:4768: checking "for --enable-sash"" >&5
10f2d63a
VZ
4768 no_cache=0
4769 # Check whether --enable-sash or --disable-sash was given.
4770if test "${enable_sash+set}" = set; then
4771 enableval="$enable_sash"
4772
4773 if test "$enableval" = yes; then
4774 ac_cv_use_sash='wxUSE_SASH=yes'
4775 else
4776 ac_cv_use_sash='wxUSE_SASH=no'
4777 fi
4778
4779else
4780
4781 LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
4782 if test "x$LINE" != x ; then
4783 eval "DEFAULT_$LINE"
4784 else
4785 no_cache=1
4786 fi
4787
4788 ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
4789
4790fi
4791
4792
4793 eval "$ac_cv_use_sash"
4794 if test "$no_cache" != 1; then
4795 echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
4796 fi
4797
4798 if test "$wxUSE_SASH" = yes; then
4799 echo "$ac_t""yes" 1>&6
4800 else
4801 echo "$ac_t""no" 1>&6
4802 fi
4803
4804
4805 echo $ac_n "checking "for --enable-scrollbar"""... $ac_c" 1>&6
3fed1840 4806echo "configure:4807: checking "for --enable-scrollbar"" >&5
10f2d63a
VZ
4807 no_cache=0
4808 # Check whether --enable-scrollbar or --disable-scrollbar was given.
4809if test "${enable_scrollbar+set}" = set; then
4810 enableval="$enable_scrollbar"
4811
4812 if test "$enableval" = yes; then
4813 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
4814 else
4815 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
4816 fi
4817
4818else
4819
4820 LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
4821 if test "x$LINE" != x ; then
4822 eval "DEFAULT_$LINE"
4823 else
4824 no_cache=1
4825 fi
4826
4827 ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
4828
4829fi
4830
4831
4832 eval "$ac_cv_use_scrollbar"
4833 if test "$no_cache" != 1; then
4834 echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
4835 fi
4836
4837 if test "$wxUSE_SCROLLBAR" = yes; then
4838 echo "$ac_t""yes" 1>&6
4839 else
4840 echo "$ac_t""no" 1>&6
4841 fi
4842
4843
4844 echo $ac_n "checking "for --enable-slider"""... $ac_c" 1>&6
3fed1840 4845echo "configure:4846: checking "for --enable-slider"" >&5
10f2d63a
VZ
4846 no_cache=0
4847 # Check whether --enable-slider or --disable-slider was given.
4848if test "${enable_slider+set}" = set; then
4849 enableval="$enable_slider"
4850
4851 if test "$enableval" = yes; then
4852 ac_cv_use_slider='wxUSE_SLIDER=yes'
4853 else
4854 ac_cv_use_slider='wxUSE_SLIDER=no'
4855 fi
4856
4857else
4858
4859 LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
4860 if test "x$LINE" != x ; then
4861 eval "DEFAULT_$LINE"
4862 else
4863 no_cache=1
4864 fi
4865
4866 ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
4867
4868fi
4869
4870
4871 eval "$ac_cv_use_slider"
4872 if test "$no_cache" != 1; then
4873 echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
4874 fi
4875
4876 if test "$wxUSE_SLIDER" = yes; then
4877 echo "$ac_t""yes" 1>&6
4878 else
4879 echo "$ac_t""no" 1>&6
4880 fi
4881
4882
4883 echo $ac_n "checking "for --enable-spinbtn"""... $ac_c" 1>&6
3fed1840 4884echo "configure:4885: checking "for --enable-spinbtn"" >&5
10f2d63a
VZ
4885 no_cache=0
4886 # Check whether --enable-spinbtn or --disable-spinbtn was given.
4887if test "${enable_spinbtn+set}" = set; then
4888 enableval="$enable_spinbtn"
4889
4890 if test "$enableval" = yes; then
4891 ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
4892 else
4893 ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
4894 fi
4895
4896else
4897
4898 LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
4899 if test "x$LINE" != x ; then
4900 eval "DEFAULT_$LINE"
4901 else
4902 no_cache=1
4903 fi
4904
4905 ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
4906
4907fi
4908
4909
4910 eval "$ac_cv_use_spinbtn"
4911 if test "$no_cache" != 1; then
4912 echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
4913 fi
4914
4915 if test "$wxUSE_SPINBTN" = yes; then
4916 echo "$ac_t""yes" 1>&6
4917 else
4918 echo "$ac_t""no" 1>&6
4919 fi
4920
4921
56cfaa52 4922 echo $ac_n "checking "for --enable-spinctrl"""... $ac_c" 1>&6
3fed1840 4923echo "configure:4924: checking "for --enable-spinctrl"" >&5
56cfaa52
RR
4924 no_cache=0
4925 # Check whether --enable-spinctrl or --disable-spinctrl was given.
4926if test "${enable_spinctrl+set}" = set; then
4927 enableval="$enable_spinctrl"
4928
4929 if test "$enableval" = yes; then
4930 ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
4931 else
4932 ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
4933 fi
4934
4935else
4936
4937 LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
4938 if test "x$LINE" != x ; then
4939 eval "DEFAULT_$LINE"
4940 else
4941 no_cache=1
4942 fi
4943
4944 ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
4945
4946fi
4947
4948
4949 eval "$ac_cv_use_spinctrl"
4950 if test "$no_cache" != 1; then
4951 echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
4952 fi
4953
4954 if test "$wxUSE_SPINCTRL" = yes; then
4955 echo "$ac_t""yes" 1>&6
4956 else
4957 echo "$ac_t""no" 1>&6
4958 fi
4959
4960
10f2d63a 4961 echo $ac_n "checking "for --enable-splitter"""... $ac_c" 1>&6
3fed1840 4962echo "configure:4963: checking "for --enable-splitter"" >&5
10f2d63a
VZ
4963 no_cache=0
4964 # Check whether --enable-splitter or --disable-splitter was given.
4965if test "${enable_splitter+set}" = set; then
4966 enableval="$enable_splitter"
4967
4968 if test "$enableval" = yes; then
4969 ac_cv_use_splitter='wxUSE_SPLITTER=yes'
4970 else
4971 ac_cv_use_splitter='wxUSE_SPLITTER=no'
4972 fi
4973
4974else
4975
4976 LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
4977 if test "x$LINE" != x ; then
4978 eval "DEFAULT_$LINE"
4979 else
4980 no_cache=1
4981 fi
4982
4983 ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
4984
4985fi
4986
4987
4988 eval "$ac_cv_use_splitter"
4989 if test "$no_cache" != 1; then
4990 echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
4991 fi
4992
4993 if test "$wxUSE_SPLITTER" = yes; then
4994 echo "$ac_t""yes" 1>&6
4995 else
4996 echo "$ac_t""no" 1>&6
4997 fi
4998
4999
5000 echo $ac_n "checking "for --enable-statbmp"""... $ac_c" 1>&6
3fed1840 5001echo "configure:5002: checking "for --enable-statbmp"" >&5
10f2d63a
VZ
5002 no_cache=0
5003 # Check whether --enable-statbmp or --disable-statbmp was given.
5004if test "${enable_statbmp+set}" = set; then
5005 enableval="$enable_statbmp"
5006
5007 if test "$enableval" = yes; then
5008 ac_cv_use_statbmp='wxUSE_STATBMP=yes'
5009 else
5010 ac_cv_use_statbmp='wxUSE_STATBMP=no'
5011 fi
5012
5013else
5014
5015 LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
5016 if test "x$LINE" != x ; then
5017 eval "DEFAULT_$LINE"
5018 else
5019 no_cache=1
5020 fi
5021
5022 ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
5023
5024fi
5025
5026
5027 eval "$ac_cv_use_statbmp"
5028 if test "$no_cache" != 1; then
5029 echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
5030 fi
5031
5032 if test "$wxUSE_STATBMP" = yes; then
5033 echo "$ac_t""yes" 1>&6
5034 else
5035 echo "$ac_t""no" 1>&6
5036 fi
5037
5038
5039 echo $ac_n "checking "for --enable-statbox"""... $ac_c" 1>&6
3fed1840 5040echo "configure:5041: checking "for --enable-statbox"" >&5
10f2d63a
VZ
5041 no_cache=0
5042 # Check whether --enable-statbox or --disable-statbox was given.
5043if test "${enable_statbox+set}" = set; then
5044 enableval="$enable_statbox"
5045
5046 if test "$enableval" = yes; then
5047 ac_cv_use_statbox='wxUSE_STATBOX=yes'
5048 else
5049 ac_cv_use_statbox='wxUSE_STATBOX=no'
5050 fi
5051
5052else
5053
5054 LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
5055 if test "x$LINE" != x ; then
5056 eval "DEFAULT_$LINE"
5057 else
5058 no_cache=1
5059 fi
5060
5061 ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
5062
5063fi
5064
5065
5066 eval "$ac_cv_use_statbox"
5067 if test "$no_cache" != 1; then
5068 echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
5069 fi
5070
5071 if test "$wxUSE_STATBOX" = yes; then
5072 echo "$ac_t""yes" 1>&6
5073 else
5074 echo "$ac_t""no" 1>&6
5075 fi
5076
5077
5078 echo $ac_n "checking "for --enable-statline"""... $ac_c" 1>&6
3fed1840 5079echo "configure:5080: checking "for --enable-statline"" >&5
10f2d63a
VZ
5080 no_cache=0
5081 # Check whether --enable-statline or --disable-statline was given.
5082if test "${enable_statline+set}" = set; then
5083 enableval="$enable_statline"
5084
5085 if test "$enableval" = yes; then
5086 ac_cv_use_statline='wxUSE_STATLINE=yes'
5087 else
5088 ac_cv_use_statline='wxUSE_STATLINE=no'
5089 fi
5090
5091else
5092
5093 LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
5094 if test "x$LINE" != x ; then
5095 eval "DEFAULT_$LINE"
5096 else
5097 no_cache=1
5098 fi
5099
5100 ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
5101
5102fi
5103
5104
5105 eval "$ac_cv_use_statline"
5106 if test "$no_cache" != 1; then
5107 echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
5108 fi
5109
5110 if test "$wxUSE_STATLINE" = yes; then
5111 echo "$ac_t""yes" 1>&6
5112 else
5113 echo "$ac_t""no" 1>&6
5114 fi
5115
5116
5117 echo $ac_n "checking "for --enable-statusbar"""... $ac_c" 1>&6
3fed1840 5118echo "configure:5119: checking "for --enable-statusbar"" >&5
10f2d63a
VZ
5119 no_cache=0
5120 # Check whether --enable-statusbar or --disable-statusbar was given.
5121if test "${enable_statusbar+set}" = set; then
5122 enableval="$enable_statusbar"
5123
5124 if test "$enableval" = yes; then
5125 ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
5126 else
5127 ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
5128 fi
5129
5130else
5131
5132 LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
5133 if test "x$LINE" != x ; then
5134 eval "DEFAULT_$LINE"
5135 else
5136 no_cache=1
5137 fi
5138
5139 ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
5140
5141fi
5142
5143
5144 eval "$ac_cv_use_statusbar"
5145 if test "$no_cache" != 1; then
5146 echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
5147 fi
5148
5149 if test "$wxUSE_STATUSBAR" = yes; then
5150 echo "$ac_t""yes" 1>&6
5151 else
5152 echo "$ac_t""no" 1>&6
5153 fi
5154
5155
5156 echo $ac_n "checking "for --enable-tabdialog"""... $ac_c" 1>&6
3fed1840 5157echo "configure:5158: checking "for --enable-tabdialog"" >&5
10f2d63a
VZ
5158 no_cache=0
5159 # Check whether --enable-tabdialog or --disable-tabdialog was given.
5160if test "${enable_tabdialog+set}" = set; then
5161 enableval="$enable_tabdialog"
5162
5163 if test "$enableval" = yes; then
5164 ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes'
5165 else
5166 ac_cv_use_tabdialog='wxUSE_TABDIALOG=no'
5167 fi
5168
5169else
5170
5171 LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}`
5172 if test "x$LINE" != x ; then
5173 eval "DEFAULT_$LINE"
5174 else
5175 no_cache=1
5176 fi
5177
5178 ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG
5179
5180fi
5181
5182
5183 eval "$ac_cv_use_tabdialog"
5184 if test "$no_cache" != 1; then
5185 echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
5186 fi
5187
5188 if test "$wxUSE_TABDIALOG" = yes; then
5189 echo "$ac_t""yes" 1>&6
5190 else
5191 echo "$ac_t""no" 1>&6
5192 fi
5193
5194
5195 echo $ac_n "checking "for --enable-toolbar"""... $ac_c" 1>&6
3fed1840 5196echo "configure:5197: checking "for --enable-toolbar"" >&5
10f2d63a
VZ
5197 no_cache=0
5198 # Check whether --enable-toolbar or --disable-toolbar was given.
5199if test "${enable_toolbar+set}" = set; then
5200 enableval="$enable_toolbar"
5201
5202 if test "$enableval" = yes; then
5203 ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
5204 else
5205 ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
5206 fi
5207
5208else
5209
5210 LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
5211 if test "x$LINE" != x ; then
5212 eval "DEFAULT_$LINE"
5213 else
5214 no_cache=1
5215 fi
5216
5217 ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
5218
5219fi
5220
5221
5222 eval "$ac_cv_use_toolbar"
5223 if test "$no_cache" != 1; then
5224 echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
5225 fi
5226
5227 if test "$wxUSE_TOOLBAR" = yes; then
5228 echo "$ac_t""yes" 1>&6
5229 else
5230 echo "$ac_t""no" 1>&6
5231 fi
5232
5233
360d6699 5234 echo $ac_n "checking "for --enable-tbarnative"""... $ac_c" 1>&6
3fed1840 5235echo "configure:5236: checking "for --enable-tbarnative"" >&5
360d6699
VZ
5236 no_cache=0
5237 # Check whether --enable-tbarnative or --disable-tbarnative was given.
5238if test "${enable_tbarnative+set}" = set; then
5239 enableval="$enable_tbarnative"
5240
5241 if test "$enableval" = yes; then
5242 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
5243 else
5244 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
5245 fi
5246
5247else
5248
5249 LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
5250 if test "x$LINE" != x ; then
5251 eval "DEFAULT_$LINE"
5252 else
5253 no_cache=1
5254 fi
5255
5256 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
5257
5258fi
5259
5260
5261 eval "$ac_cv_use_tbarnative"
5262 if test "$no_cache" != 1; then
5263 echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
5264 fi
5265
5266 if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
5267 echo "$ac_t""yes" 1>&6
5268 else
5269 echo "$ac_t""no" 1>&6
5270 fi
5271
5272
5273 echo $ac_n "checking "for --enable-tbarsmpl"""... $ac_c" 1>&6
3fed1840 5274echo "configure:5275: checking "for --enable-tbarsmpl"" >&5
360d6699
VZ
5275 no_cache=0
5276 # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given.
5277if test "${enable_tbarsmpl+set}" = set; then
5278 enableval="$enable_tbarsmpl"
5279
5280 if test "$enableval" = yes; then
5281 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes'
5282 else
5283 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no'
5284 fi
5285
5286else
5287
5288 LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}`
5289 if test "x$LINE" != x ; then
5290 eval "DEFAULT_$LINE"
5291 else
5292 no_cache=1
5293 fi
5294
5295 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE
5296
5297fi
5298
5299
5300 eval "$ac_cv_use_tbarsmpl"
5301 if test "$no_cache" != 1; then
5302 echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp
5303 fi
5304
5305 if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then
5306 echo "$ac_t""yes" 1>&6
5307 else
5308 echo "$ac_t""no" 1>&6
5309 fi
5310
5311
10f2d63a 5312 echo $ac_n "checking "for --enable-treectrl"""... $ac_c" 1>&6
3fed1840 5313echo "configure:5314: checking "for --enable-treectrl"" >&5
10f2d63a
VZ
5314 no_cache=0
5315 # Check whether --enable-treectrl or --disable-treectrl was given.
5316if test "${enable_treectrl+set}" = set; then
5317 enableval="$enable_treectrl"
5318
5319 if test "$enableval" = yes; then
5320 ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
5321 else
5322 ac_cv_use_treectrl='wxUSE_TREECTRL=no'
5323 fi
5324
5325else
5326
5327 LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
5328 if test "x$LINE" != x ; then
5329 eval "DEFAULT_$LINE"
5330 else
5331 no_cache=1
5332 fi
5333
5334 ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
5335
5336fi
5337
5338
5339 eval "$ac_cv_use_treectrl"
5340 if test "$no_cache" != 1; then
5341 echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
5342 fi
5343
5344 if test "$wxUSE_TREECTRL" = yes; then
5345 echo "$ac_t""yes" 1>&6
5346 else
5347 echo "$ac_t""no" 1>&6
5348 fi
5349
5350
5351
5352
5353 echo $ac_n "checking "for --enable-commondlg"""... $ac_c" 1>&6
3fed1840 5354echo "configure:5355: checking "for --enable-commondlg"" >&5
10f2d63a
VZ
5355 no_cache=0
5356 # Check whether --enable-commondlg or --disable-commondlg was given.
5357if test "${enable_commondlg+set}" = set; then
5358 enableval="$enable_commondlg"
5359
5360 if test "$enableval" = yes; then
5361 ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
5362 else
5363 ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
5364 fi
5365
5366else
5367
5368 LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
5369 if test "x$LINE" != x ; then
5370 eval "DEFAULT_$LINE"
5371 else
5372 no_cache=1
5373 fi
5374
5375 ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
5376
5377fi
5378
5379
5380 eval "$ac_cv_use_commondlg"
5381 if test "$no_cache" != 1; then
5382 echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
5383 fi
5384
5385 if test "$wxUSE_COMMONDLGS" = yes; then
5386 echo "$ac_t""yes" 1>&6
5387 else
5388 echo "$ac_t""no" 1>&6
5389 fi
5390
5391
5392 echo $ac_n "checking "for --enable-dirdlg"""... $ac_c" 1>&6
3fed1840 5393echo "configure:5394: checking "for --enable-dirdlg"" >&5
10f2d63a
VZ
5394 no_cache=0
5395 # Check whether --enable-dirdlg or --disable-dirdlg was given.
5396if test "${enable_dirdlg+set}" = set; then
5397 enableval="$enable_dirdlg"
5398
5399 if test "$enableval" = yes; then
5400 ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
5401 else
5402 ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
5403 fi
5404
5405else
5406
5407 LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
5408 if test "x$LINE" != x ; then
5409 eval "DEFAULT_$LINE"
5410 else
5411 no_cache=1
5412 fi
5413
5414 ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
5415
5416fi
5417
5418
5419 eval "$ac_cv_use_dirdlg"
5420 if test "$no_cache" != 1; then
5421 echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
5422 fi
5423
5424 if test "$wxUSE_DIRDLG" = yes; then
5425 echo "$ac_t""yes" 1>&6
5426 else
5427 echo "$ac_t""no" 1>&6
5428 fi
5429
5430
5431 echo $ac_n "checking "for --enable-textdlg"""... $ac_c" 1>&6
3fed1840 5432echo "configure:5433: checking "for --enable-textdlg"" >&5
10f2d63a
VZ
5433 no_cache=0
5434 # Check whether --enable-textdlg or --disable-textdlg was given.
5435if test "${enable_textdlg+set}" = set; then
5436 enableval="$enable_textdlg"
5437
5438 if test "$enableval" = yes; then
5439 ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
5440 else
5441 ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
5442 fi
5443
5444else
5445
5446 LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
5447 if test "x$LINE" != x ; then
5448 eval "DEFAULT_$LINE"
5449 else
5450 no_cache=1
5451 fi
5452
5453 ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
5454
5455fi
5456
5457
5458 eval "$ac_cv_use_textdlg"
5459 if test "$no_cache" != 1; then
5460 echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
5461 fi
5462
5463 if test "$wxUSE_TEXTDLG" = yes; then
5464 echo "$ac_t""yes" 1>&6
5465 else
5466 echo "$ac_t""no" 1>&6
5467 fi
5468
5469
5470 echo $ac_n "checking "for --enable-tipdlg"""... $ac_c" 1>&6
3fed1840 5471echo "configure:5472: checking "for --enable-tipdlg"" >&5
10f2d63a
VZ
5472 no_cache=0
5473 # Check whether --enable-tipdlg or --disable-tipdlg was given.
5474if test "${enable_tipdlg+set}" = set; then
5475 enableval="$enable_tipdlg"
5476
5477 if test "$enableval" = yes; then
5478 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
5479 else
5480 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
5481 fi
5482
5483else
5484
5485 LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
5486 if test "x$LINE" != x ; then
5487 eval "DEFAULT_$LINE"
5488 else
5489 no_cache=1
5490 fi
5491
5492 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
5493
5494fi
5495
5496
5497 eval "$ac_cv_use_tipdlg"
5498 if test "$no_cache" != 1; then
5499 echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
5500 fi
5501
5502 if test "$wxUSE_STARTUP_TIPS" = yes; then
5503 echo "$ac_t""yes" 1>&6
5504 else
5505 echo "$ac_t""no" 1>&6
5506 fi
5507
5508
5509 echo $ac_n "checking "for --enable-progressdlg"""... $ac_c" 1>&6
3fed1840 5510echo "configure:5511: checking "for --enable-progressdlg"" >&5
10f2d63a
VZ
5511 no_cache=0
5512 # Check whether --enable-progressdlg or --disable-progressdlg was given.
5513if test "${enable_progressdlg+set}" = set; then
5514 enableval="$enable_progressdlg"
5515
5516 if test "$enableval" = yes; then
5517 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
5518 else
5519 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
5520 fi
5521
5522else
5523
5524 LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
5525 if test "x$LINE" != x ; then
5526 eval "DEFAULT_$LINE"
5527 else
5528 no_cache=1
5529 fi
5530
5531 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
5532
5533fi
5534
5535
5536 eval "$ac_cv_use_progressdlg"
5537 if test "$no_cache" != 1; then
5538 echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
5539 fi
5540
5541 if test "$wxUSE_PROGRESSDLG" = yes; then
5542 echo "$ac_t""yes" 1>&6
5543 else
5544 echo "$ac_t""no" 1>&6
5545 fi
5546
5547
5548 echo $ac_n "checking "for --enable-miniframe"""... $ac_c" 1>&6
3fed1840 5549echo "configure:5550: checking "for --enable-miniframe"" >&5
10f2d63a
VZ
5550 no_cache=0
5551 # Check whether --enable-miniframe or --disable-miniframe was given.
5552if test "${enable_miniframe+set}" = set; then
5553 enableval="$enable_miniframe"
5554
5555 if test "$enableval" = yes; then
5556 ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
5557 else
5558 ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
5559 fi
5560
5561else
5562
5563 LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
5564 if test "x$LINE" != x ; then
5565 eval "DEFAULT_$LINE"
5566 else
5567 no_cache=1
5568 fi
5569
5570 ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
5571
5572fi
5573
5574
5575 eval "$ac_cv_use_miniframe"
5576 if test "$no_cache" != 1; then
5577 echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
5578 fi
5579
5580 if test "$wxUSE_MINIFRAME" = yes; then
5581 echo "$ac_t""yes" 1>&6
5582 else
5583 echo "$ac_t""no" 1>&6
5584 fi
5585
5586
5587 echo $ac_n "checking "for --enable-html"""... $ac_c" 1>&6
3fed1840 5588echo "configure:5589: checking "for --enable-html"" >&5
10f2d63a
VZ
5589 no_cache=0
5590 # Check whether --enable-html or --disable-html was given.
5591if test "${enable_html+set}" = set; then
5592 enableval="$enable_html"
5593
5594 if test "$enableval" = yes; then
5595 ac_cv_use_html='wxUSE_HTML=yes'
5596 else
5597 ac_cv_use_html='wxUSE_HTML=no'
5598 fi
5599
5600else
5601
5602 LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
5603 if test "x$LINE" != x ; then
5604 eval "DEFAULT_$LINE"
5605 else
5606 no_cache=1
5607 fi
5608
5609 ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
5610
5611fi
5612
5613
5614 eval "$ac_cv_use_html"
5615 if test "$no_cache" != 1; then
5616 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
5617 fi
5618
5619 if test "$wxUSE_HTML" = yes; then
5620 echo "$ac_t""yes" 1>&6
5621 else
5622 echo "$ac_t""no" 1>&6
5623 fi
5624
5625
5626 echo $ac_n "checking "for --enable-tooltips"""... $ac_c" 1>&6
3fed1840 5627echo "configure:5628: checking "for --enable-tooltips"" >&5
10f2d63a
VZ
5628 no_cache=0
5629 # Check whether --enable-tooltips or --disable-tooltips was given.
5630if test "${enable_tooltips+set}" = set; then
5631 enableval="$enable_tooltips"
5632
5633 if test "$enableval" = yes; then
5634 ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
5635 else
5636 ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
5637 fi
5638
5639else
5640
5641 LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
5642 if test "x$LINE" != x ; then
5643 eval "DEFAULT_$LINE"
5644 else
5645 no_cache=1
5646 fi
5647
5648 ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
5649
5650fi
5651
5652
5653 eval "$ac_cv_use_tooltips"
5654 if test "$no_cache" != 1; then
5655 echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
5656 fi
5657
5658 if test "$wxUSE_TOOLTIPS" = yes; then
5659 echo "$ac_t""yes" 1>&6
5660 else
5661 echo "$ac_t""no" 1>&6
5662 fi
5663
5664
5665 echo $ac_n "checking "for --enable-splines"""... $ac_c" 1>&6
3fed1840 5666echo "configure:5667: checking "for --enable-splines"" >&5
10f2d63a
VZ
5667 no_cache=0
5668 # Check whether --enable-splines or --disable-splines was given.
5669if test "${enable_splines+set}" = set; then
5670 enableval="$enable_splines"
5671
5672 if test "$enableval" = yes; then
5673 ac_cv_use_splines='wxUSE_SPLINES=yes'
5674 else
5675 ac_cv_use_splines='wxUSE_SPLINES=no'
5676 fi
5677
5678else
5679
5680 LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
5681 if test "x$LINE" != x ; then
5682 eval "DEFAULT_$LINE"
5683 else
5684 no_cache=1
5685 fi
5686
5687 ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
5688
5689fi
5690
5691
5692 eval "$ac_cv_use_splines"
5693 if test "$no_cache" != 1; then
5694 echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
5695 fi
5696
5697 if test "$wxUSE_SPLINES" = yes; then
5698 echo "$ac_t""yes" 1>&6
5699 else
5700 echo "$ac_t""no" 1>&6
5701 fi
5702
5703
5704 echo $ac_n "checking "for --enable-validators"""... $ac_c" 1>&6
3fed1840 5705echo "configure:5706: checking "for --enable-validators"" >&5
10f2d63a
VZ
5706 no_cache=0
5707 # Check whether --enable-validators or --disable-validators was given.
5708if test "${enable_validators+set}" = set; then
5709 enableval="$enable_validators"
5710
5711 if test "$enableval" = yes; then
5712 ac_cv_use_validators='wxUSE_VALIDATORS=yes'
5713 else
5714 ac_cv_use_validators='wxUSE_VALIDATORS=no'
5715 fi
5716
5717else
5718
5719 LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
5720 if test "x$LINE" != x ; then
5721 eval "DEFAULT_$LINE"
5722 else
5723 no_cache=1
5724 fi
5725
5726 ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
5727
5728fi
5729
5730
5731 eval "$ac_cv_use_validators"
5732 if test "$no_cache" != 1; then
5733 echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
5734 fi
5735
5736 if test "$wxUSE_VALIDATORS" = yes; then
5737 echo "$ac_t""yes" 1>&6
5738 else
5739 echo "$ac_t""no" 1>&6
5740 fi
5741
5742
5743 echo $ac_n "checking "for --enable-busyinfo"""... $ac_c" 1>&6
3fed1840 5744echo "configure:5745: checking "for --enable-busyinfo"" >&5
10f2d63a
VZ
5745 no_cache=0
5746 # Check whether --enable-busyinfo or --disable-busyinfo was given.
5747if test "${enable_busyinfo+set}" = set; then
5748 enableval="$enable_busyinfo"
5749
5750 if test "$enableval" = yes; then
5751 ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
5752 else
5753 ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
5754 fi
5755
5756else
5757
5758 LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
5759 if test "x$LINE" != x ; then
5760 eval "DEFAULT_$LINE"
5761 else
5762 no_cache=1
5763 fi
5764
5765 ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
5766
5767fi
5768
5769
5770 eval "$ac_cv_use_busyinfo"
5771 if test "$no_cache" != 1; then
5772 echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
5773 fi
5774
5775 if test "$wxUSE_BUSYINFO" = yes; then
5776 echo "$ac_t""yes" 1>&6
5777 else
5778 echo "$ac_t""no" 1>&6
5779 fi
5780
5781
9b33fe02 5782 echo $ac_n "checking "for --enable-plot"""... $ac_c" 1>&6
3fed1840 5783echo "configure:5784: checking "for --enable-plot"" >&5
9b33fe02
VZ
5784 no_cache=0
5785 # Check whether --enable-plot or --disable-plot was given.
5786if test "${enable_plot+set}" = set; then
5787 enableval="$enable_plot"
5788
5789 if test "$enableval" = yes; then
5790 ac_cv_use_plot='wxUSE_PLOT=yes'
5791 else
5792 ac_cv_use_plot='wxUSE_PLOT=no'
5793 fi
5794
5795else
5796
5797 LINE=`grep "wxUSE_PLOT" ${wx_arg_cache_file}`
5798 if test "x$LINE" != x ; then
5799 eval "DEFAULT_$LINE"
5800 else
5801 no_cache=1
5802 fi
5803
5804 ac_cv_use_plot='wxUSE_PLOT='$DEFAULT_wxUSE_PLOT
5805
5806fi
5807
5808
5809 eval "$ac_cv_use_plot"
5810 if test "$no_cache" != 1; then
5811 echo $ac_cv_use_plot >> ${wx_arg_cache_file}.tmp
5812 fi
5813
5814 if test "$wxUSE_PLOT" = yes; then
5815 echo "$ac_t""yes" 1>&6
5816 else
5817 echo "$ac_t""no" 1>&6
5818 fi
5819
5820
f6bcfd97 5821 echo $ac_n "checking "for --enable-joystick"""... $ac_c" 1>&6
3fed1840 5822echo "configure:5823: checking "for --enable-joystick"" >&5
f6bcfd97
BP
5823 no_cache=0
5824 # Check whether --enable-joystick or --disable-joystick was given.
5825if test "${enable_joystick+set}" = set; then
5826 enableval="$enable_joystick"
5827
5828 if test "$enableval" = yes; then
5829 ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
5830 else
5831 ac_cv_use_joystick='wxUSE_JOYSTICK=no'
5832 fi
5833
5834else
5835
5836 LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
5837 if test "x$LINE" != x ; then
5838 eval "DEFAULT_$LINE"
5839 else
5840 no_cache=1
5841 fi
5842
5843 ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
5844
5845fi
5846
5847
5848 eval "$ac_cv_use_joystick"
5849 if test "$no_cache" != 1; then
5850 echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
5851 fi
5852
5853 if test "$wxUSE_JOYSTICK" = yes; then
5854 echo "$ac_t""yes" 1>&6
5855 else
5856 echo "$ac_t""no" 1>&6
5857 fi
5858
5859
10f2d63a
VZ
5860
5861
5862 echo $ac_n "checking "for --enable-gif"""... $ac_c" 1>&6
3fed1840 5863echo "configure:5864: checking "for --enable-gif"" >&5
10f2d63a
VZ
5864 no_cache=0
5865 # Check whether --enable-gif or --disable-gif was given.
5866if test "${enable_gif+set}" = set; then
5867 enableval="$enable_gif"
5868
5869 if test "$enableval" = yes; then
5870 ac_cv_use_gif='wxUSE_GIF=yes'
5871 else
5872 ac_cv_use_gif='wxUSE_GIF=no'
5873 fi
5874
5875else
5876
5877 LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
5878 if test "x$LINE" != x ; then
5879 eval "DEFAULT_$LINE"
5880 else
5881 no_cache=1
5882 fi
5883
5884 ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
5885
5886fi
5887
5888
5889 eval "$ac_cv_use_gif"
5890 if test "$no_cache" != 1; then
5891 echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
5892 fi
5893
5894 if test "$wxUSE_GIF" = yes; then
5895 echo "$ac_t""yes" 1>&6
5896 else
5897 echo "$ac_t""no" 1>&6
5898 fi
5899
5900
5901 echo $ac_n "checking "for --enable-pcx"""... $ac_c" 1>&6
3fed1840 5902echo "configure:5903: checking "for --enable-pcx"" >&5
10f2d63a
VZ
5903 no_cache=0
5904 # Check whether --enable-pcx or --disable-pcx was given.
5905if test "${enable_pcx+set}" = set; then
5906 enableval="$enable_pcx"
5907
5908 if test "$enableval" = yes; then
5909 ac_cv_use_pcx='wxUSE_PCX=yes'
5910 else
5911 ac_cv_use_pcx='wxUSE_PCX=no'
5912 fi
5913
5914else
5915
5916 LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
5917 if test "x$LINE" != x ; then
5918 eval "DEFAULT_$LINE"
5919 else
5920 no_cache=1
5921 fi
5922
5923 ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
5924
5925fi
5926
5927
5928 eval "$ac_cv_use_pcx"
5929 if test "$no_cache" != 1; then
5930 echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
5931 fi
5932
5933 if test "$wxUSE_PCX" = yes; then
5934 echo "$ac_t""yes" 1>&6
5935 else
5936 echo "$ac_t""no" 1>&6
5937 fi
5938
5939
5940 echo $ac_n "checking "for --enable-pnm"""... $ac_c" 1>&6
3fed1840 5941echo "configure:5942: checking "for --enable-pnm"" >&5
10f2d63a
VZ
5942 no_cache=0
5943 # Check whether --enable-pnm or --disable-pnm was given.
5944if test "${enable_pnm+set}" = set; then
5945 enableval="$enable_pnm"
5946
5947 if test "$enableval" = yes; then
5948 ac_cv_use_pnm='wxUSE_PNM=yes'
5949 else
5950 ac_cv_use_pnm='wxUSE_PNM=no'
5951 fi
5952
5953else
5954
5955 LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
5956 if test "x$LINE" != x ; then
5957 eval "DEFAULT_$LINE"
5958 else
5959 no_cache=1
5960 fi
5961
5962 ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
5963
5964fi
5965
5966
5967 eval "$ac_cv_use_pnm"
5968 if test "$no_cache" != 1; then
5969 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
5970 fi
5971
5972 if test "$wxUSE_PNM" = yes; then
5973 echo "$ac_t""yes" 1>&6
5974 else
5975 echo "$ac_t""no" 1>&6
5976 fi
5977
5978
b12915c1
VZ
5979fi
5980
10f2d63a
VZ
5981
5982 echo "saving argument cache $wx_arg_cache_file"
5983 mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
5984
5985
5986
5987echo $ac_n "checking for toolkit""... $ac_c" 1>&6
3fed1840 5988echo "configure:5989: checking for toolkit" >&5
10f2d63a
VZ
5989
5990if test "$wxUSE_GUI" = "yes"; then
5991
b12915c1
VZ
5992if test "$USE_BEOS" = 1; then
5993 { echo "configure: error: BeOS GUI is not supported yet, use --disable-gui" 1>&2; exit 1; }
5994fi
5995
10f2d63a
VZ
5996if test "$TOOLKIT_GIVEN" = 1; then
5997 for toolkit in `echo $ALL_TOOLKITS`; do
5998 var=wxUSE_$toolkit
5999 eval "value=\$${var}"
6000 eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`"
6001 done
6002else
6003 for toolkit in `echo $ALL_TOOLKITS`; do
6004 if test "$has_toolkit_in_cache" != 1; then
6005 var=DEFAULT_DEFAULT_wxUSE_$toolkit
6006 else
6007 var=DEFAULT_wxUSE_$toolkit
6008 fi
6009 eval "wxUSE_$toolkit=\$${var}"
6010 done
6011fi
6012
ec14dd32 6013NUM_TOOLKITS=`expr ${wxUSE_GTK:-0} + ${wxUSE_MOTIF:-0} + ${wxUSE_WINE:-0} + ${wxUSE_MINGW:-0} + ${wxUSE_CYGWIN:-0}`
cf27ef00 6014
ec14dd32
VZ
6015case "${host}" in
6016 *-pc-os2_emx )
6017 NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
6018 # PATH_IFS is autodetected by OS/2's configure (usually ';')
6019 LEX_STEM="lexyy"
6020 ;;
6021 *)
6022 PATH_IFS=':'
6023 LEX_STEM="lex.yy"
6024 ;;
6025esac
10f2d63a
VZ
6026
6027case "$NUM_TOOLKITS" in
6028 1)
6029 ;;
6030 0)
6031 { echo "configure: error: Please specify a toolkit - cannot determine the default for ${host}" 1>&2; exit 1; }
6032 ;;
6033 *)
6034 { echo "configure: error: Please specify at most one toolkit (may be some are cached?)" 1>&2; exit 1; }
6035esac
6036
6037for toolkit in `echo $ALL_TOOLKITS`; do
6038 var=wxUSE_$toolkit
6039 eval "value=\$${var}"
6040 if test "x$value" != x; then
6041 cache_var=CACHE_$toolkit
6042 eval "cache=\$${cache_var}"
6043 if test "$cache" = 1; then
6044 echo "$var=$value" >> ${wx_arg_cache_file}
6045 fi
6046 if test "$value" = 1; then
6047 echo "$ac_t""`echo $toolkit | tr A-Z a-z`" 1>&6
6048 fi
6049 fi
6050done
6051
6052else
cf27ef00 6053 PATH_IFS=':'
10f2d63a
VZ
6054 echo "$ac_t""base only" 1>&6
6055fi
6056
6057
6058cat > confcache <<\EOF
6059# This file is a shell script that caches the results of configure
6060# tests run on this system so they can be shared between configure
6061# scripts and configure runs. It is not useful on other systems.
6062# If it contains results you don't want to keep, you may remove or edit it.
6063#
6064# By default, configure uses ./config.cache as the cache file,
6065# creating it if it does not exist already. You can give configure
6066# the --cache-file=FILE option to use a different cache file; that is
6067# what configure does when it calls configure scripts in
6068# subdirectories, so they share the cache.
6069# Giving --cache-file=/dev/null disables caching, for debugging configure.
6070# config.status only pays attention to the cache file if you give it the
6071# --recheck option to rerun configure.
6072#
6073EOF
6074# The following way of writing the cache mishandles newlines in values,
6075# but we know of no workaround that is simple, portable, and efficient.
6076# So, don't put newlines in cache variables' values.
6077# Ultrix sh set writes to stderr and can't be redirected directly,
6078# and sets the high bit in the cache file unless we assign to the vars.
6079(set) 2>&1 |
6080 case `(ac_space=' '; set | grep ac_space) 2>&1` in
6081 *ac_space=\ *)
6082 # `set' does not quote correctly, so add quotes (double-quote substitution
6083 # turns \\\\ into \\, and sed turns \\ into \).
6084 sed -n \
6085 -e "s/'/'\\\\''/g" \
6086 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
6087 ;;
6088 *)
6089 # `set' quotes correctly as required by POSIX, so do not add quotes.
6090 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
6091 ;;
6092 esac >> confcache
6093if cmp -s $cache_file confcache; then
6094 :
6095else
6096 if test -w $cache_file; then
6097 echo "updating cache $cache_file"
6098 cat confcache > $cache_file
6099 else
6100 echo "not updating unwritable cache $cache_file"
6101 fi
6102fi
6103rm -f confcache
6104
6105
e59890c3 6106if test "$build" != "$host" ; then
10f2d63a
VZ
6107 CC=$host_alias-gcc
6108 CXX=$host_alias-c++
6109 AR=$host_alias-ar
6110 RANLIB=$host_alias-ranlib
6111 DLLTOOL=$host_alias-dlltool
32832908 6112 RESCOMP=$host_alias-windres
10f2d63a
VZ
6113 LD=$host_alias-ld
6114 NM=$host_alias-nm
6115 STRIP=$host_alias-strip
10f2d63a
VZ
6116fi
6117
6118# Extract the first word of "gcc", so it can be a program name with args.
6119set dummy gcc; ac_word=$2
6120echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3fed1840 6121echo "configure:6122: checking for $ac_word" >&5
10f2d63a
VZ
6122if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
6123 echo $ac_n "(cached) $ac_c" 1>&6
6124else
6125 if test -n "$CC"; then
6126 ac_cv_prog_CC="$CC" # Let the user override the test.
6127else
6128 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6129 ac_dummy="$PATH"
6130 for ac_dir in $ac_dummy; do
6131 test -z "$ac_dir" && ac_dir=.
6132 if test -f $ac_dir/$ac_word; then
6133 ac_cv_prog_CC="gcc"
6134 break
6135 fi
6136 done
6137 IFS="$ac_save_ifs"
6138fi
6139fi
6140CC="$ac_cv_prog_CC"
6141if test -n "$CC"; then
6142 echo "$ac_t""$CC" 1>&6
6143else
6144 echo "$ac_t""no" 1>&6
6145fi
6146
6147if test -z "$CC"; then
6148 # Extract the first word of "cc", so it can be a program name with args.
6149set dummy cc; ac_word=$2
6150echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3fed1840 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_prog_rejected=no
6160 ac_dummy="$PATH"
6161 for ac_dir in $ac_dummy; do
6162 test -z "$ac_dir" && ac_dir=.
6163 if test -f $ac_dir/$ac_word; then
6164 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
6165 ac_prog_rejected=yes
6166 continue
6167 fi
6168 ac_cv_prog_CC="cc"
6169 break
6170 fi
6171 done
6172 IFS="$ac_save_ifs"
6173if test $ac_prog_rejected = yes; then
6174 # We found a bogon in the path, so make sure we never use it.
6175 set dummy $ac_cv_prog_CC
6176 shift
6177 if test $# -gt 0; then
6178 # We chose a different compiler from the bogus one.
6179 # However, it has the same basename, so the bogon will be chosen
6180 # first if we set CC to just the basename; use the full file name.
6181 shift
6182 set dummy "$ac_dir/$ac_word" "$@"
6183 shift
6184 ac_cv_prog_CC="$@"
6185 fi
6186fi
6187fi
6188fi
6189CC="$ac_cv_prog_CC"
6190if test -n "$CC"; then
6191 echo "$ac_t""$CC" 1>&6
6192else
6193 echo "$ac_t""no" 1>&6
6194fi
6195
6196 if test -z "$CC"; then
6197 case "`uname -s`" in
6198 *win32* | *WIN32*)
6199 # Extract the first word of "cl", so it can be a program name with args.
6200set dummy cl; ac_word=$2
6201echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3fed1840 6202echo "configure:6203: checking for $ac_word" >&5
10f2d63a
VZ
6203if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
6204 echo $ac_n "(cached) $ac_c" 1>&6
6205else
6206 if test -n "$CC"; then
6207 ac_cv_prog_CC="$CC" # Let the user override the test.
6208else
6209 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6210 ac_dummy="$PATH"
6211 for ac_dir in $ac_dummy; do
6212 test -z "$ac_dir" && ac_dir=.
6213 if test -f $ac_dir/$ac_word; then
6214 ac_cv_prog_CC="cl"
6215 break
6216 fi
6217 done
6218 IFS="$ac_save_ifs"
6219fi
6220fi
6221CC="$ac_cv_prog_CC"
6222if test -n "$CC"; then
6223 echo "$ac_t""$CC" 1>&6
6224else
6225 echo "$ac_t""no" 1>&6
6226fi
6227 ;;
6228 esac
6229 fi
6230 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
6231fi
6232
6233echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
3fed1840 6234echo "configure:6235: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
10f2d63a
VZ
6235
6236ac_ext=c
6237# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6238ac_cpp='$CPP $CPPFLAGS'
6239ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6240ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6241cross_compiling=$ac_cv_prog_cc_cross
6242
6243cat > conftest.$ac_ext << EOF
6244
3fed1840 6245#line 6246 "configure"
10f2d63a
VZ
6246#include "confdefs.h"
6247
6248main(){return(0);}
6249EOF
3fed1840 6250if { (eval echo configure:6251: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
6251 ac_cv_prog_cc_works=yes
6252 # If we can't run a trivial program, we are probably using a cross compiler.
6253 if (./conftest; exit) 2>/dev/null; then
6254 ac_cv_prog_cc_cross=no
6255 else
6256 ac_cv_prog_cc_cross=yes
6257 fi
6258else
6259 echo "configure: failed program was:" >&5
6260 cat conftest.$ac_ext >&5
6261 ac_cv_prog_cc_works=no
6262fi
6263rm -fr conftest*
6264ac_ext=c
6265# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6266ac_cpp='$CPP $CPPFLAGS'
6267ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6268ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6269cross_compiling=$ac_cv_prog_cc_cross
6270
6271echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
6272if test $ac_cv_prog_cc_works = no; then
6273 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
6274fi
6275echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
3fed1840 6276echo "configure:6277: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
10f2d63a
VZ
6277echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
6278cross_compiling=$ac_cv_prog_cc_cross
6279
6280echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
3fed1840 6281echo "configure:6282: checking whether we are using GNU C" >&5
10f2d63a
VZ
6282if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
6283 echo $ac_n "(cached) $ac_c" 1>&6
6284else
6285 cat > conftest.c <<EOF
6286#ifdef __GNUC__
6287 yes;
6288#endif
6289EOF
3fed1840 6290if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:6291: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
10f2d63a
VZ
6291 ac_cv_prog_gcc=yes
6292else
6293 ac_cv_prog_gcc=no
6294fi
6295fi
6296
6297echo "$ac_t""$ac_cv_prog_gcc" 1>&6
6298
6299if test $ac_cv_prog_gcc = yes; then
6300 GCC=yes
6301else
6302 GCC=
6303fi
6304
6305ac_test_CFLAGS="${CFLAGS+set}"
6306ac_save_CFLAGS="$CFLAGS"
6307CFLAGS=
6308echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
3fed1840 6309echo "configure:6310: checking whether ${CC-cc} accepts -g" >&5
10f2d63a
VZ
6310if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
6311 echo $ac_n "(cached) $ac_c" 1>&6
6312else
6313 echo 'void f(){}' > conftest.c
6314if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
6315 ac_cv_prog_cc_g=yes
6316else
6317 ac_cv_prog_cc_g=no
6318fi
6319rm -f conftest*
6320
6321fi
6322
6323echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
6324if test "$ac_test_CFLAGS" = set; then
6325 CFLAGS="$ac_save_CFLAGS"
6326elif test $ac_cv_prog_cc_g = yes; then
6327 if test "$GCC" = yes; then
6328 CFLAGS="-g -O2"
6329 else
6330 CFLAGS="-g"
6331 fi
6332else
6333 if test "$GCC" = yes; then
6334 CFLAGS="-O2"
6335 else
6336 CFLAGS=
6337 fi
6338fi
6339
6340
6341CFLAGS=`echo "$CFLAGS" | sed 's/-g//g'`
6342
6343echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
3fed1840 6344echo "configure:6345: checking how to run the C preprocessor" >&5
10f2d63a
VZ
6345# On Suns, sometimes $CPP names a directory.
6346if test -n "$CPP" && test -d "$CPP"; then
6347 CPP=
6348fi
6349if test -z "$CPP"; then
6350if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
6351 echo $ac_n "(cached) $ac_c" 1>&6
6352else
6353 # This must be in double quotes, not single quotes, because CPP may get
6354 # substituted into the Makefile and "${CC-cc}" will confuse make.
6355 CPP="${CC-cc} -E"
6356 # On the NeXT, cc -E runs the code through the compiler's parser,
6357 # not just through cpp.
6358 cat > conftest.$ac_ext <<EOF
3fed1840 6359#line 6360 "configure"
10f2d63a
VZ
6360#include "confdefs.h"
6361#include <assert.h>
6362Syntax Error
6363EOF
6364ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3fed1840 6365{ (eval echo configure:6366: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
6366ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6367if test -z "$ac_err"; then
6368 :
6369else
6370 echo "$ac_err" >&5
6371 echo "configure: failed program was:" >&5
6372 cat conftest.$ac_ext >&5
6373 rm -rf conftest*
6374 CPP="${CC-cc} -E -traditional-cpp"
6375 cat > conftest.$ac_ext <<EOF
3fed1840 6376#line 6377 "configure"
10f2d63a
VZ
6377#include "confdefs.h"
6378#include <assert.h>
6379Syntax Error
6380EOF
6381ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3fed1840 6382{ (eval echo configure:6383: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
6383ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6384if test -z "$ac_err"; then
6385 :
6386else
6387 echo "$ac_err" >&5
6388 echo "configure: failed program was:" >&5
6389 cat conftest.$ac_ext >&5
6390 rm -rf conftest*
6391 CPP="${CC-cc} -nologo -E"
6392 cat > conftest.$ac_ext <<EOF
3fed1840 6393#line 6394 "configure"
10f2d63a
VZ
6394#include "confdefs.h"
6395#include <assert.h>
6396Syntax Error
6397EOF
6398ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3fed1840 6399{ (eval echo configure:6400: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
6400ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6401if test -z "$ac_err"; then
6402 :
6403else
6404 echo "$ac_err" >&5
6405 echo "configure: failed program was:" >&5
6406 cat conftest.$ac_ext >&5
6407 rm -rf conftest*
6408 CPP=/lib/cpp
6409fi
6410rm -f conftest*
6411fi
6412rm -f conftest*
6413fi
6414rm -f conftest*
6415 ac_cv_prog_CPP="$CPP"
6416fi
6417 CPP="$ac_cv_prog_CPP"
6418else
6419 ac_cv_prog_CPP="$CPP"
6420fi
6421echo "$ac_t""$CPP" 1>&6
6422
6423
6424if test $ac_cv_prog_gcc = yes; then
6425 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
3fed1840 6426echo "configure:6427: checking whether ${CC-cc} needs -traditional" >&5
10f2d63a
VZ
6427if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
6428 echo $ac_n "(cached) $ac_c" 1>&6
6429else
6430 ac_pattern="Autoconf.*'x'"
6431 cat > conftest.$ac_ext <<EOF
3fed1840 6432#line 6433 "configure"
10f2d63a
VZ
6433#include "confdefs.h"
6434#include <sgtty.h>
6435Autoconf TIOCGETP
6436EOF
6437if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6438 egrep "$ac_pattern" >/dev/null 2>&1; then
6439 rm -rf conftest*
6440 ac_cv_prog_gcc_traditional=yes
6441else
6442 rm -rf conftest*
6443 ac_cv_prog_gcc_traditional=no
6444fi
6445rm -f conftest*
6446
6447
6448 if test $ac_cv_prog_gcc_traditional = no; then
6449 cat > conftest.$ac_ext <<EOF
3fed1840 6450#line 6451 "configure"
10f2d63a
VZ
6451#include "confdefs.h"
6452#include <termio.h>
6453Autoconf TCGETA
6454EOF
6455if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6456 egrep "$ac_pattern" >/dev/null 2>&1; then
6457 rm -rf conftest*
6458 ac_cv_prog_gcc_traditional=yes
6459fi
6460rm -f conftest*
6461
6462 fi
6463fi
6464
6465echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
6466 if test $ac_cv_prog_gcc_traditional = yes; then
6467 CC="$CC -traditional"
6468 fi
6469fi
6470
6471
6472
6473ac_ext=C
6474# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6475ac_cpp='$CXXCPP $CPPFLAGS'
6476ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6477ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6478cross_compiling=$ac_cv_prog_cxx_cross
6479
6480
6481for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
6482do
6483# Extract the first word of "$ac_prog", so it can be a program name with args.
6484set dummy $ac_prog; ac_word=$2
6485echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3fed1840 6486echo "configure:6487: checking for $ac_word" >&5
10f2d63a
VZ
6487if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
6488 echo $ac_n "(cached) $ac_c" 1>&6
6489else
6490 if test -n "$CXX"; then
6491 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6492else
6493 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6494 ac_dummy="$PATH"
6495 for ac_dir in $ac_dummy; do
6496 test -z "$ac_dir" && ac_dir=.
6497 if test -f $ac_dir/$ac_word; then
6498 ac_cv_prog_CXX="$ac_prog"
6499 break
6500 fi
6501 done
6502 IFS="$ac_save_ifs"
6503fi
6504fi
6505CXX="$ac_cv_prog_CXX"
6506if test -n "$CXX"; then
6507 echo "$ac_t""$CXX" 1>&6
6508else
6509 echo "$ac_t""no" 1>&6
6510fi
6511
6512test -n "$CXX" && break
6513done
6514test -n "$CXX" || CXX="gcc"
6515
6516
6517echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
3fed1840 6518echo "configure:6519: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
10f2d63a
VZ
6519
6520ac_ext=C
6521# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6522ac_cpp='$CXXCPP $CPPFLAGS'
6523ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6524ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6525cross_compiling=$ac_cv_prog_cxx_cross
6526
6527cat > conftest.$ac_ext << EOF
6528
3fed1840 6529#line 6530 "configure"
10f2d63a
VZ
6530#include "confdefs.h"
6531
6532int main(){return(0);}
6533EOF
3fed1840 6534if { (eval echo configure:6535: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
6535 ac_cv_prog_cxx_works=yes
6536 # If we can't run a trivial program, we are probably using a cross compiler.
6537 if (./conftest; exit) 2>/dev/null; then
6538 ac_cv_prog_cxx_cross=no
6539 else
6540 ac_cv_prog_cxx_cross=yes
6541 fi
6542else
6543 echo "configure: failed program was:" >&5
6544 cat conftest.$ac_ext >&5
6545 ac_cv_prog_cxx_works=no
6546fi
6547rm -fr conftest*
6548ac_ext=C
6549# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6550ac_cpp='$CXXCPP $CPPFLAGS'
6551ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6552ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6553cross_compiling=$ac_cv_prog_cxx_cross
6554
6555echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
6556if test $ac_cv_prog_cxx_works = no; then
6557 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
6558fi
6559echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
3fed1840 6560echo "configure:6561: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
10f2d63a
VZ
6561echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
6562cross_compiling=$ac_cv_prog_cxx_cross
6563
6564echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
3fed1840 6565echo "configure:6566: checking whether we are using GNU C++" >&5
10f2d63a
VZ
6566if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
6567 echo $ac_n "(cached) $ac_c" 1>&6
6568else
6569 cat > conftest.C <<EOF
6570#ifdef __GNUC__
6571 yes;
6572#endif
6573EOF
3fed1840 6574if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:6575: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
10f2d63a
VZ
6575 ac_cv_prog_gxx=yes
6576else
6577 ac_cv_prog_gxx=no
6578fi
6579fi
6580
6581echo "$ac_t""$ac_cv_prog_gxx" 1>&6
6582
6583if test $ac_cv_prog_gxx = yes; then
6584 GXX=yes
6585else
6586 GXX=
6587fi
6588
6589ac_test_CXXFLAGS="${CXXFLAGS+set}"
6590ac_save_CXXFLAGS="$CXXFLAGS"
6591CXXFLAGS=
6592echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
3fed1840 6593echo "configure:6594: checking whether ${CXX-g++} accepts -g" >&5
10f2d63a
VZ
6594if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
6595 echo $ac_n "(cached) $ac_c" 1>&6
6596else
6597 echo 'void f(){}' > conftest.cc
6598if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
6599 ac_cv_prog_cxx_g=yes
6600else
6601 ac_cv_prog_cxx_g=no
6602fi
6603rm -f conftest*
6604
6605fi
6606
6607echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
6608if test "$ac_test_CXXFLAGS" = set; then
6609 CXXFLAGS="$ac_save_CXXFLAGS"
6610elif test $ac_cv_prog_cxx_g = yes; then
6611 if test "$GXX" = yes; then
6612 CXXFLAGS="-g -O2"
6613 else
6614 CXXFLAGS="-g"
6615 fi
6616else
6617 if test "$GXX" = yes; then
6618 CXXFLAGS="-O2"
6619 else
6620 CXXFLAGS=
6621 fi
6622fi
6623
6624
6625echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
3fed1840 6626echo "configure:6627: checking how to run the C++ preprocessor" >&5
10f2d63a
VZ
6627if test -z "$CXXCPP"; then
6628if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
6629 echo $ac_n "(cached) $ac_c" 1>&6
6630else
6631 ac_ext=C
6632# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6633ac_cpp='$CXXCPP $CPPFLAGS'
6634ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6635ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6636cross_compiling=$ac_cv_prog_cxx_cross
6637 CXXCPP="${CXX-g++} -E"
6638 cat > conftest.$ac_ext <<EOF
3fed1840 6639#line 6640 "configure"
10f2d63a
VZ
6640#include "confdefs.h"
6641#include <stdlib.h>
6642EOF
6643ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3fed1840 6644{ (eval echo configure:6645: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
6645ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6646if test -z "$ac_err"; then
6647 :
6648else
6649 echo "$ac_err" >&5
6650 echo "configure: failed program was:" >&5
6651 cat conftest.$ac_ext >&5
6652 rm -rf conftest*
6653 CXXCPP=/lib/cpp
6654fi
6655rm -f conftest*
6656 ac_cv_prog_CXXCPP="$CXXCPP"
6657ac_ext=C
6658# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6659ac_cpp='$CXXCPP $CPPFLAGS'
6660ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6661ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6662cross_compiling=$ac_cv_prog_cxx_cross
6663fi
6664fi
6665CXXCPP="$ac_cv_prog_CXXCPP"
6666echo "$ac_t""$CXXCPP" 1>&6
6667
6668
6669CXXFLAGS=`echo "$CXXFLAGS" | sed 's/-g//g'`
6670
6671ac_ext=c
6672# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6673ac_cpp='$CPP $CPPFLAGS'
6674ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6675ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6676cross_compiling=$ac_cv_prog_cc_cross
6677
6678
6679# Extract the first word of "ranlib", so it can be a program name with args.
6680set dummy ranlib; ac_word=$2
6681echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3fed1840 6682echo "configure:6683: checking for $ac_word" >&5
10f2d63a
VZ
6683if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
6684 echo $ac_n "(cached) $ac_c" 1>&6
6685else
6686 if test -n "$RANLIB"; then
6687 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6688else
6689 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6690 ac_dummy="$PATH"
6691 for ac_dir in $ac_dummy; do
6692 test -z "$ac_dir" && ac_dir=.
6693 if test -f $ac_dir/$ac_word; then
6694 ac_cv_prog_RANLIB="ranlib"
6695 break
6696 fi
6697 done
6698 IFS="$ac_save_ifs"
6699 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
6700fi
6701fi
6702RANLIB="$ac_cv_prog_RANLIB"
6703if test -n "$RANLIB"; then
6704 echo "$ac_t""$RANLIB" 1>&6
6705else
6706 echo "$ac_t""no" 1>&6
6707fi
6708
6709
6710# Extract the first word of "ar", so it can be a program name with args.
6711set dummy ar; ac_word=$2
6712echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3fed1840 6713echo "configure:6714: checking for $ac_word" >&5
10f2d63a
VZ
6714if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
6715 echo $ac_n "(cached) $ac_c" 1>&6
6716else
6717 if test -n "$AR"; then
6718 ac_cv_prog_AR="$AR" # Let the user override the test.
6719else
6720 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6721 ac_dummy="$PATH"
6722 for ac_dir in $ac_dummy; do
6723 test -z "$ac_dir" && ac_dir=.
6724 if test -f $ac_dir/$ac_word; then
6725 ac_cv_prog_AR="ar"
6726 break
6727 fi
6728 done
6729 IFS="$ac_save_ifs"
6730 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
6731fi
6732fi
6733AR="$ac_cv_prog_AR"
6734if test -n "$AR"; then
6735 echo "$ac_t""$AR" 1>&6
6736else
6737 echo "$ac_t""no" 1>&6
6738fi
6739
6740
6741# Find a good install program. We prefer a C program (faster),
6742# so one script is as good as another. But avoid the broken or
6743# incompatible versions:
6744# SysV /etc/install, /usr/sbin/install
6745# SunOS /usr/etc/install
6746# IRIX /sbin/install
6747# AIX /bin/install
6748# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6749# AFS /usr/afsws/bin/install, which mishandles nonexistent args
6750# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6751# ./install, which can be erroneously created by make from ./install.sh.
6752echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
3fed1840 6753echo "configure:6754: checking for a BSD compatible install" >&5
10f2d63a
VZ
6754if test -z "$INSTALL"; then
6755if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
6756 echo $ac_n "(cached) $ac_c" 1>&6
6757else
6758 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
6759 for ac_dir in $PATH; do
6760 # Account for people who put trailing slashes in PATH elements.
6761 case "$ac_dir/" in
6762 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
6763 *)
6764 # OSF1 and SCO ODT 3.0 have their own names for install.
6765 # Don't use installbsd from OSF since it installs stuff as root
6766 # by default.
6767 for ac_prog in ginstall scoinst install; do
6768 if test -f $ac_dir/$ac_prog; then
6769 if test $ac_prog = install &&
6770 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
6771 # AIX install. It has an incompatible calling convention.
6772 :
6773 else
6774 ac_cv_path_install="$ac_dir/$ac_prog -c"
6775 break 2
6776 fi
6777 fi
6778 done
6779 ;;
6780 esac
6781 done
6782 IFS="$ac_save_IFS"
6783
6784fi
6785 if test "${ac_cv_path_install+set}" = set; then
6786 INSTALL="$ac_cv_path_install"
6787 else
6788 # As a last resort, use the slow shell script. We don't cache a
6789 # path for INSTALL within a source directory, because that will
6790 # break other packages using the cache if that directory is
6791 # removed, or if the path is relative.
6792 INSTALL="$ac_install_sh"
6793 fi
6794fi
6795echo "$ac_t""$INSTALL" 1>&6
6796
6797# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6798# It thinks the first close brace ends the variable substitution.
6799test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6800
6801test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
6802
6803test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6804
6805
6806# Extract the first word of "strip", so it can be a program name with args.
6807set dummy strip; ac_word=$2
6808echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3fed1840 6809echo "configure:6810: checking for $ac_word" >&5
10f2d63a
VZ
6810if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
6811 echo $ac_n "(cached) $ac_c" 1>&6
6812else
6813 if test -n "$STRIP"; then
6814 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6815else
6816 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6817 ac_dummy="$PATH"
6818 for ac_dir in $ac_dummy; do
6819 test -z "$ac_dir" && ac_dir=.
6820 if test -f $ac_dir/$ac_word; then
6821 ac_cv_prog_STRIP="strip"
6822 break
6823 fi
6824 done
6825 IFS="$ac_save_ifs"
6826 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true"
6827fi
6828fi
6829STRIP="$ac_cv_prog_STRIP"
6830if test -n "$STRIP"; then
6831 echo "$ac_t""$STRIP" 1>&6
6832else
6833 echo "$ac_t""no" 1>&6
6834fi
6835
6836
6837echo $ac_n "checking "make for VPATH support"""... $ac_c" 1>&6
3fed1840 6838echo "configure:6839: checking "make for VPATH support"" >&5
10f2d63a
VZ
6839cat - << EOF > confMake
6840check : file
6841 cp \$? \$@
6842 cp \$? final_file
6843EOF
6844
6845if test ! -d sub ; then
6846 mkdir sub
6847fi
6848echo dummy > sub/file
f6bcfd97 6849${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
10f2d63a
VZ
6850RESULT=$?
6851rm -f sub/file check final_file confMake
6852rmdir sub
6853if test "$RESULT" = 0; then
6854 echo "$ac_t""yes" 1>&6
6855else
6856 echo "$ac_t""no" 1>&6
6857 { echo "configure: error: You need a make-utility that is able to use the variable
6858VPATH correctly.
6859If your version of make does not support VPATH correctly" 1>&2; exit 1; }
6860fi
6861
6862for ac_prog in 'bison -y' byacc
6863do
6864# Extract the first word of "$ac_prog", so it can be a program name with args.
6865set dummy $ac_prog; ac_word=$2
6866echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3fed1840 6867echo "configure:6868: checking for $ac_word" >&5
10f2d63a
VZ
6868if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
6869 echo $ac_n "(cached) $ac_c" 1>&6
6870else
6871 if test -n "$YACC"; then
6872 ac_cv_prog_YACC="$YACC" # Let the user override the test.
6873else
6874 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6875 ac_dummy="$PATH"
6876 for ac_dir in $ac_dummy; do
6877 test -z "$ac_dir" && ac_dir=.
6878 if test -f $ac_dir/$ac_word; then
6879 ac_cv_prog_YACC="$ac_prog"
6880 break
6881 fi
6882 done
6883 IFS="$ac_save_ifs"
6884fi
6885fi
6886YACC="$ac_cv_prog_YACC"
6887if test -n "$YACC"; then
6888 echo "$ac_t""$YACC" 1>&6
6889else
6890 echo "$ac_t""no" 1>&6
6891fi
6892
6893test -n "$YACC" && break
6894done
6895test -n "$YACC" || YACC="yacc"
6896
6897
6898# Extract the first word of "flex", so it can be a program name with args.
6899set dummy flex; ac_word=$2
6900echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3fed1840 6901echo "configure:6902: checking for $ac_word" >&5
10f2d63a
VZ
6902if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
6903 echo $ac_n "(cached) $ac_c" 1>&6
6904else
6905 if test -n "$LEX"; then
6906 ac_cv_prog_LEX="$LEX" # Let the user override the test.
6907else
6908 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6909 ac_dummy="$PATH"
6910 for ac_dir in $ac_dummy; do
6911 test -z "$ac_dir" && ac_dir=.
6912 if test -f $ac_dir/$ac_word; then
6913 ac_cv_prog_LEX="flex"
6914 break
6915 fi
6916 done
6917 IFS="$ac_save_ifs"
6918 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
6919fi
6920fi
6921LEX="$ac_cv_prog_LEX"
6922if test -n "$LEX"; then
6923 echo "$ac_t""$LEX" 1>&6
6924else
6925 echo "$ac_t""no" 1>&6
6926fi
6927
6928if test -z "$LEXLIB"
6929then
6930 case "$LEX" in
6931 flex*) ac_lib=fl ;;
6932 *) ac_lib=l ;;
6933 esac
6934 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
3fed1840 6935echo "configure:6936: checking for yywrap in -l$ac_lib" >&5
10f2d63a
VZ
6936ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
6937if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6938 echo $ac_n "(cached) $ac_c" 1>&6
6939else
6940 ac_save_LIBS="$LIBS"
6941LIBS="-l$ac_lib $LIBS"
6942cat > conftest.$ac_ext <<EOF
3fed1840 6943#line 6944 "configure"
10f2d63a
VZ
6944#include "confdefs.h"
6945/* Override any gcc2 internal prototype to avoid an error. */
6946/* We use char because int might match the return type of a gcc2
6947 builtin and then its argument prototype would still apply. */
6948char yywrap();
6949
6950int main() {
6951yywrap()
6952; return 0; }
6953EOF
3fed1840 6954if { (eval echo configure:6955: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
6955 rm -rf conftest*
6956 eval "ac_cv_lib_$ac_lib_var=yes"
6957else
6958 echo "configure: failed program was:" >&5
6959 cat conftest.$ac_ext >&5
6960 rm -rf conftest*
6961 eval "ac_cv_lib_$ac_lib_var=no"
6962fi
6963rm -f conftest*
6964LIBS="$ac_save_LIBS"
6965
6966fi
6967if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6968 echo "$ac_t""yes" 1>&6
6969 LEXLIB="-l$ac_lib"
6970else
6971 echo "$ac_t""no" 1>&6
6972fi
6973
6974fi
6975
6976
6977echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
3fed1840 6978echo "configure:6979: checking whether ln -s works" >&5
10f2d63a
VZ
6979if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
6980 echo $ac_n "(cached) $ac_c" 1>&6
6981else
6982 rm -f conftestdata
6983if ln -s X conftestdata 2>/dev/null
6984then
6985 rm -f conftestdata
6986 ac_cv_prog_LN_S="ln -s"
6987else
6988 ac_cv_prog_LN_S=ln
6989fi
6990fi
6991LN_S="$ac_cv_prog_LN_S"
6992if test "$ac_cv_prog_LN_S" = "ln -s"; then
6993 echo "$ac_t""yes" 1>&6
6994else
6995 echo "$ac_t""no" 1>&6
6996fi
6997
6998
6999
7000SEARCH_INCLUDE="\
7001 /usr/local/include \
7002 \
7003 /usr/Motif-1.2/include \
7004 /usr/Motif-2.1/include \
7005 \
7006 /usr/include/Motif1.2 \
7007 /opt/xpm/include/X11 \
7008 /opt/GBxpm/include/ \
7009 /opt/GBxpm/X11/include/ \
7010 \
7011 /usr/Motif1.2/include \
7012 /usr/dt/include \
afc31813
VZ
7013 /usr/openwin/include \
7014 \
10f2d63a
VZ
7015 /usr/include/Xm \
7016 \
7017 /usr/X11R6/include \
afc31813 7018 /usr/X11R6.4/include \
10f2d63a
VZ
7019 /usr/X11R5/include \
7020 /usr/X11R4/include \
7021 \
10f2d63a
VZ
7022 /usr/include/X11R6 \
7023 /usr/include/X11R5 \
7024 /usr/include/X11R4 \
7025 \
7026 /usr/local/X11R6/include \
7027 /usr/local/X11R5/include \
7028 /usr/local/X11R4/include \
7029 \
7030 /usr/local/include/X11R6 \
7031 /usr/local/include/X11R5 \
7032 /usr/local/include/X11R4 \
7033 \
7034 /usr/X11/include \
7035 /usr/include/X11 \
7036 /usr/local/X11/include \
7037 /usr/local/include/X11 \
7038 \
7039 /usr/X386/include \
7040 /usr/x386/include \
7041 /usr/XFree86/include/X11 \
7042 \
cf27ef00 7043 X:/XFree86/include \
ec14dd32
VZ
7044 X:/XFree86/include/X11 \
7045 \
10f2d63a
VZ
7046 /usr/include/gtk \
7047 /usr/local/include/gtk \
7048 /usr/include/glib \
7049 /usr/local/include/glib \
7050 \
7051 /usr/include/qt \
7052 /usr/local/include/qt \
7053 \
7054 /usr/include/windows \
7055 /usr/include/wine \
7056 /usr/local/include/wine \
7057 \
7058 /usr/unsupported/include \
7059 /usr/athena/include \
7060 /usr/local/x11r5/include \
7061 /usr/lpp/Xamples/include \
7062 \
10f2d63a 7063 /usr/openwin/share/include \
928b5c08
VZ
7064 \
7065 /usr/include"
10f2d63a
VZ
7066
7067SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s/include/lib/g` "
7068
7069
7070cat > confcache <<\EOF
7071# This file is a shell script that caches the results of configure
7072# tests run on this system so they can be shared between configure
7073# scripts and configure runs. It is not useful on other systems.
7074# If it contains results you don't want to keep, you may remove or edit it.
7075#
7076# By default, configure uses ./config.cache as the cache file,
7077# creating it if it does not exist already. You can give configure
7078# the --cache-file=FILE option to use a different cache file; that is
7079# what configure does when it calls configure scripts in
7080# subdirectories, so they share the cache.
7081# Giving --cache-file=/dev/null disables caching, for debugging configure.
7082# config.status only pays attention to the cache file if you give it the
7083# --recheck option to rerun configure.
7084#
7085EOF
7086# The following way of writing the cache mishandles newlines in values,
7087# but we know of no workaround that is simple, portable, and efficient.
7088# So, don't put newlines in cache variables' values.
7089# Ultrix sh set writes to stderr and can't be redirected directly,
7090# and sets the high bit in the cache file unless we assign to the vars.
7091(set) 2>&1 |
7092 case `(ac_space=' '; set | grep ac_space) 2>&1` in
7093 *ac_space=\ *)
7094 # `set' does not quote correctly, so add quotes (double-quote substitution
7095 # turns \\\\ into \\, and sed turns \\ into \).
7096 sed -n \
7097 -e "s/'/'\\\\''/g" \
7098 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
7099 ;;
7100 *)
7101 # `set' quotes correctly as required by POSIX, so do not add quotes.
7102 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
7103 ;;
7104 esac >> confcache
7105if cmp -s $cache_file confcache; then
7106 :
7107else
7108 if test -w $cache_file; then
7109 echo "updating cache $cache_file"
7110 cat confcache > $cache_file
7111 else
7112 echo "not updating unwritable cache $cache_file"
7113 fi
7114fi
7115rm -f confcache
7116
7117
7118
dad6c0ea
VZ
7119AFMINSTALL=
7120
10f2d63a
VZ
7121if test "$wxUSE_GUI" = "yes"; then
7122
dad6c0ea
VZ
7123USE_GUI=1
7124
10f2d63a
VZ
7125TOOLKIT=
7126TOOLKIT_INCLUDE=
7127
7128GUIOBJS=
7129COMMONOBJS=
7130GENERICOBJS=
7131
7132GUI_TK_LIBRARY=
7133GUI_TK_LINK=
7134
7135WXGTK12=
f6bcfd97 7136WXGTK127=
6f72b082 7137WXGTK20=
10f2d63a
VZ
7138
7139WXWINE=
7140
10f2d63a
VZ
7141if test "$wxUSE_CYGWIN" = 1 || test "$wxUSE_MINGW" = 1 ; then
7142 if test "$cross_compiling" = "yes" ; then
e59890c3 7143 echo "configure: warning: skipping windows.h check for cross-compilation" 1>&2
10f2d63a
VZ
7144 else
7145 echo $ac_n "checking for Windows headers""... $ac_c" 1>&6
3fed1840 7146echo "configure:7147: checking for Windows headers" >&5
10f2d63a
VZ
7147
7148ac_find_includes=
7149for ac_dir in $SEARCH_INCLUDE;
7150 do
7151 if test -f "$ac_dir/windows.h"; then
7152 ac_find_includes=$ac_dir
7153 break
7154 fi
7155 done
7156
7157 if test "$ac_find_includes" != "" ; then
7158 echo "$ac_t""found $ac_find_includes" 1>&6
7159 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE -I$ac_find_includes"
7160 else
7161 echo "$ac_t""no" 1>&6
7162 { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; }
7163 fi
7164 fi
7165
7166 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS msw"
7167 LIBS="$LIBS -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lctl3d32 -lcrtdll -ladvapi32 -lwsock32"
7168
f6bcfd97
BP
7169 if test "$wxUSE_ODBC" = "yes" ; then
7170 LIBS="$LIBS -lodbc32 -lole32 -loleaut32"
7171 fi
7172
10f2d63a
VZ
7173 if test "$wxUSE_MINGW" = 1; then
7174 LDFLAGS="$LDFLAGS -mwindows"
7175 fi
7176
7177 TOOLKIT=MSW
7178
7179 GUIOBJS="\$(MSW_GUIOBJS)"
7180 GUIHEADERS="\$(MSW_HEADERS)"
7181 COMMONOBJS="\$(MSW_COMMONOBJS)"
7182 GENERICOBJS="\$(MSW_GENERICOBJS)"
7183 UNIXOBJS=
7184 GUIDIST=MSW_DIST
32832908
VZ
7185
7186 RCINCSWITCH="--include-dir"
7187 RCDEFSWITCH="--define"
7188 RCPREPROCESSOR="--preprocessor \"\$(CC) -c -E -xc-header -DRC_INVOKED\""
7189 RCINPUTSWITCH="-i"
7190 RCOUTPUTSWITCH="-o"
7191 RESFLAGS="$RCPREPROCESSOR $RCINCSWITCH \$(top_srcdir)/include $RCINCSWITCH \$(top_srcdir)/\$(program_dir) $RCDEFSWITCH __WIN32__ $RCDEFSWITCH __WIN95__ $RCDEFSWITCH __GNUWIN32__"
7192
7193 RESPROGRAM="\$(RES_PROGRAM)"
7194
10f2d63a
VZ
7195fi
7196
7197if test "$wxUSE_GTK" = 1; then
6f72b082
OK
7198 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
7199if test "${with_gtk_prefix+set}" = set; then
7200 withval="$with_gtk_prefix"
7201 gtk_config_prefix="$withval"
7202else
7203 gtk_config_prefix=""
7204fi
7205
7206# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
7207if test "${with_gtk_exec_prefix+set}" = set; then
7208 withval="$with_gtk_exec_prefix"
7209 gtk_config_exec_prefix="$withval"
7210else
7211 gtk_config_exec_prefix=""
7212fi
7213
7214# Check whether --enable-gtktest or --disable-gtktest was given.
7215if test "${enable_gtktest+set}" = set; then
7216 enableval="$enable_gtktest"
7217 :
7218else
7219 enable_gtktest=yes
7220fi
7221
7222
7223 for module in . gthread
7224 do
7225 case "$module" in
7226 gthread)
7227 gtk_config_args="$gtk_config_args gthread"
7228 ;;
7229 esac
7230 done
7231
7232 if test x$gtk_config_exec_prefix != x ; then
7233 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
7234 if test x${GTK_CONFIG_2_0+set} != xset ; then
7235 GTK_CONFIG_2_0=$gtk_config_exec_prefix/bin/gtk-config-2.0
7236 fi
7237 fi
7238 if test x$gtk_config_prefix != x ; then
7239 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
7240 if test x${GTK_CONFIG_2_0+set} != xset ; then
7241 GTK_CONFIG_2_0=$gtk_config_prefix/bin/gtk-config-2.0
7242 fi
7243 fi
7244
7245 # Extract the first word of "gtk-config-2.0", so it can be a program name with args.
7246set dummy gtk-config-2.0; ac_word=$2
7247echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3fed1840 7248echo "configure:7249: checking for $ac_word" >&5
6f72b082
OK
7249if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG_2_0'+set}'`\" = set"; then
7250 echo $ac_n "(cached) $ac_c" 1>&6
7251else
7252 case "$GTK_CONFIG_2_0" in
7253 /*)
7254 ac_cv_path_GTK_CONFIG_2_0="$GTK_CONFIG_2_0" # Let the user override the test with a path.
7255 ;;
7256 ?:/*)
7257 ac_cv_path_GTK_CONFIG_2_0="$GTK_CONFIG_2_0" # Let the user override the test with a dos path.
7258 ;;
7259 *)
7260 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7261 ac_dummy="$PATH"
7262 for ac_dir in $ac_dummy; do
7263 test -z "$ac_dir" && ac_dir=.
7264 if test -f $ac_dir/$ac_word; then
7265 ac_cv_path_GTK_CONFIG_2_0="$ac_dir/$ac_word"
7266 break
7267 fi
7268 done
7269 IFS="$ac_save_ifs"
7270 test -z "$ac_cv_path_GTK_CONFIG_2_0" && ac_cv_path_GTK_CONFIG_2_0="no"
7271 ;;
7272esac
7273fi
7274GTK_CONFIG_2_0="$ac_cv_path_GTK_CONFIG_2_0"
7275if test -n "$GTK_CONFIG_2_0"; then
7276 echo "$ac_t""$GTK_CONFIG_2_0" 1>&6
7277else
7278 echo "$ac_t""no" 1>&6
7279fi
7280
7281 min_gtk_version=1.3.1
7282 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
3fed1840 7283echo "configure:7284: checking for GTK - version >= $min_gtk_version" >&5
6f72b082
OK
7284 no_gtk=""
7285 if test "$GTK_CONFIG_2_0" = "no" ; then
7286 no_gtk=yes
7287 else
7288 GTK_CFLAGS=`$GTK_CONFIG_2_0 $gtk_config_args --cflags`
7289 GTK_LIBS=`$GTK_CONFIG_2_0 $gtk_config_args --libs`
7290 gtk_config_major_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \
7291 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
7292 gtk_config_minor_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \
7293 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
7294 gtk_config_micro_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \
7295 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
7296 if test "x$enable_gtktest" = "xyes" ; then
7297 ac_save_CFLAGS="$CFLAGS"
7298 ac_save_LIBS="$LIBS"
7299 CFLAGS="$CFLAGS $GTK_CFLAGS"
7300 LIBS="$GTK_LIBS $LIBS"
7301 rm -f conf.gtktest
7302 if test "$cross_compiling" = yes; then
7303 echo $ac_n "cross compiling; assumed OK... $ac_c"
7304else
7305 cat > conftest.$ac_ext <<EOF
3fed1840 7306#line 7307 "configure"
6f72b082
OK
7307#include "confdefs.h"
7308
7309#include <gtk/gtk.h>
7310#include <stdio.h>
7311#include <stdlib.h>
7312
7313int
7314main ()
7315{
7316 int major, minor, micro;
7317 char *tmp_version;
7318
7319 system ("touch conf.gtktest");
7320
7321 /* HP/UX 9 (%@#!) writes to sscanf strings */
7322 tmp_version = g_strdup("$min_gtk_version");
7323 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
7324 printf("%s, bad version string\n", "$min_gtk_version");
7325 exit(1);
7326 }
7327
7328 if ((gtk_major_version != $gtk_config_major_version) ||
7329 (gtk_minor_version != $gtk_config_minor_version) ||
7330 (gtk_micro_version != $gtk_config_micro_version))
7331 {
7332 printf("\n*** 'gtk-config-2.0 --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
7333 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
7334 gtk_major_version, gtk_minor_version, gtk_micro_version);
7335 printf ("*** was found! If gtk-config-2.0 was correct, then it is best\n");
7336 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
7337 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
7338 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
7339 printf("*** required on your system.\n");
7340 printf("*** If gtk-config-2.0 was wrong, set the environment variable GTK_CONFIG_2_0\n");
7341 printf("*** to point to the correct copy of gtk-config-2.0, and remove the file config.cache\n");
7342 printf("*** before re-running configure\n");
7343 }
7344#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
7345 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
7346 (gtk_minor_version != GTK_MINOR_VERSION) ||
7347 (gtk_micro_version != GTK_MICRO_VERSION))
7348 {
7349 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
7350 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
7351 printf("*** library (version %d.%d.%d)\n",
7352 gtk_major_version, gtk_minor_version, gtk_micro_version);
7353 }
7354#endif /* defined (GTK_MAJOR_VERSION) ... */
7355 else
7356 {
7357 if ((gtk_major_version > major) ||
7358 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
7359 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
7360 {
7361 return 0;
7362 }
7363 else
7364 {
7365 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
7366 gtk_major_version, gtk_minor_version, gtk_micro_version);
7367 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
7368 major, minor, micro);
7369 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
7370 printf("***\n");
7371 printf("*** If you have already installed a sufficiently new version, this error\n");
7372 printf("*** probably means that the wrong copy of the gtk-config-2.0 shell script is\n");
7373 printf("*** being found. The easiest way to fix this is to remove the old version\n");
7374 printf("*** of GTK+, but you can also set the GTK_CONFIG_2_0 environment to point to the\n");
7375 printf("*** correct copy of gtk-config-2.0. (In this case, you will have to\n");
7376 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
7377 printf("*** so that the correct libraries are found at run-time))\n");
7378 }
7379 }
7380 return 1;
7381}
7382
7383EOF
3fed1840 7384if { (eval echo configure:7385: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6f72b082
OK
7385then
7386 :
7387else
7388 echo "configure: failed program was:" >&5
7389 cat conftest.$ac_ext >&5
7390 rm -fr conftest*
7391 no_gtk=yes
7392fi
7393rm -fr conftest*
7394fi
7395
7396 CFLAGS="$ac_save_CFLAGS"
7397 LIBS="$ac_save_LIBS"
7398 fi
7399 fi
7400 if test "x$no_gtk" = x ; then
7401 echo "$ac_t""yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" 1>&6
7402 WXGTK20=1
7403 else
7404 echo "$ac_t""no" 1>&6
7405 if test "$GTK_CONFIG_2_0" = "no" ; then
7406 echo "*** The gtk-config-2.0 script installed by GTK could not be found"
7407 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
7408 echo "*** your path, or set the GTK_CONFIG_2_0 environment variable to the"
7409 echo "*** full path to gtk-config-2.0."
7410 else
7411 if test -f conf.gtktest ; then
7412 :
7413 else
7414 echo "*** Could not run GTK test program, checking why..."
7415 CFLAGS="$CFLAGS $GTK_CFLAGS"
7416 LIBS="$LIBS $GTK_LIBS"
7417 cat > conftest.$ac_ext <<EOF
3fed1840 7418#line 7419 "configure"
6f72b082
OK
7419#include "confdefs.h"
7420
7421#include <gtk/gtk.h>
7422#include <stdio.h>
7423
7424int main() {
7425 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
7426; return 0; }
7427EOF
3fed1840 7428if { (eval echo configure:7429: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6f72b082
OK
7429 rm -rf conftest*
7430 echo "*** The test program compiled, but did not run. This usually means"
7431 echo "*** that the run-time linker is not finding GTK or finding the wrong"
7432 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
7433 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
7434 echo "*** to the installed location Also, make sure you have run ldconfig if that"
7435 echo "*** is required on your system"
7436 echo "***"
7437 echo "*** If you have an old version installed, it is best to remove it, although"
7438 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
7439 echo "***"
7440 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
7441 echo "*** came with the system with the command"
7442 echo "***"
7443 echo "*** rpm --erase --nodeps gtk gtk-devel"
7444else
7445 echo "configure: failed program was:" >&5
7446 cat conftest.$ac_ext >&5
7447 rm -rf conftest*
7448 echo "*** The test program failed to compile or link. See the file config.log for the"
7449 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
7450 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
7451 echo "*** may want to edit the gtk-config-2.0 script: $GTK_CONFIG_2_0"
7452fi
7453rm -f conftest*
7454 CFLAGS="$ac_save_CFLAGS"
7455 LIBS="$ac_save_LIBS"
7456 fi
7457 fi
7458 GTK_CFLAGS=""
7459 GTK_LIBS=""
7460
7461
10f2d63a
VZ
7462 if test x$gtk_config_exec_prefix != x ; then
7463 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
7464 if test x${GTK_CONFIG+set} != xset ; then
7465 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
7466 fi
7467 fi
7468 if test x$gtk_config_prefix != x ; then
7469 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
7470 if test x${GTK_CONFIG+set} != xset ; then
7471 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
7472 fi
7473 fi
7474
7475 # Extract the first word of "gtk-config", so it can be a program name with args.
7476set dummy gtk-config; ac_word=$2
7477echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3fed1840 7478echo "configure:7479: checking for $ac_word" >&5
f6bcfd97
BP
7479if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
7480 echo $ac_n "(cached) $ac_c" 1>&6
7481else
7482 case "$GTK_CONFIG" in
7483 /*)
7484 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
7485 ;;
7486 ?:/*)
7487 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
7488 ;;
7489 *)
7490 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7491 ac_dummy="$PATH"
7492 for ac_dir in $ac_dummy; do
7493 test -z "$ac_dir" && ac_dir=.
7494 if test -f $ac_dir/$ac_word; then
7495 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
7496 break
7497 fi
7498 done
7499 IFS="$ac_save_ifs"
7500 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
7501 ;;
7502esac
7503fi
7504GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
7505if test -n "$GTK_CONFIG"; then
7506 echo "$ac_t""$GTK_CONFIG" 1>&6
7507else
7508 echo "$ac_t""no" 1>&6
7509fi
7510
7511 min_gtk_version=1.2.7
7512 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
3fed1840 7513echo "configure:7514: checking for GTK - version >= $min_gtk_version" >&5
f6bcfd97
BP
7514 no_gtk=""
7515 if test "$GTK_CONFIG" != "no" ; then
7516 GTK_CFLAGS=`$GTK_CONFIG --cflags`
7517 GTK_LIBS=`$GTK_CONFIG --libs gthread`
7518 ac_save_CFLAGS="$CFLAGS"
7519 ac_save_LIBS="$LIBS"
7520 CFLAGS="$CFLAGS $GTK_CFLAGS"
7521 LIBS="$LIBS $GTK_LIBS"
7522 if test "$cross_compiling" = yes; then
7523 echo $ac_n "cross compiling; assumed OK... $ac_c"
7524else
7525 cat > conftest.$ac_ext <<EOF
3fed1840 7526#line 7527 "configure"
f6bcfd97
BP
7527#include "confdefs.h"
7528
7529#include <gtk/gtk.h>
7530#include <gtk/gtkfeatures.h>
7531#include <stdio.h>
7532#include <stdlib.h>
7533
7534int
7535main ()
7536{
7537 int major, minor, micro;
7538
7539 if (sscanf("$min_gtk_version", "%d.%d.%d", &major, &minor, &micro) != 3) {
7540 printf("%s, bad version string\n", "$min_gtk_version");
7541 exit(1);
7542 }
7543
7544 if ((GTK_MAJOR_VERSION != gtk_major_version) ||
7545 (GTK_MINOR_VERSION != gtk_minor_version) ||
7546 (GTK_MICRO_VERSION != gtk_micro_version)) {
7547 printf("Headers vs. library version mismatch!\n");
7548 exit(1);
7549 }
7550
7551 if (gtk_minor_version == 1) return FALSE;
7552
7553 return !((gtk_major_version > major) ||
7554 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
7555 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)));
7556}
7557
7558EOF
3fed1840 7559if { (eval echo configure:7560: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
f6bcfd97
BP
7560then
7561 :
7562else
7563 echo "configure: failed program was:" >&5
7564 cat conftest.$ac_ext >&5
7565 rm -fr conftest*
7566 no_gtk=yes
7567fi
7568rm -fr conftest*
7569fi
7570
7571 CFLAGS="$ac_save_CFLAGS"
7572 LIBS="$ac_save_LIBS"
7573 else
7574 no_gtk=yes
7575 fi
7576 if test "x$no_gtk" = x ; then
7577 echo "$ac_t""yes" 1>&6
7578 WXGTK127=1
7579 else
7580 echo "$ac_t""no" 1>&6
7581 GTK_CFLAGS=""
7582 GTK_LIBS=""
7583 :
7584 fi
7585
7586
7587
6f72b082 7588
f6bcfd97
BP
7589 if test x$gtk_config_exec_prefix != x ; then
7590 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
7591 if test x${GTK_CONFIG+set} != xset ; then
7592 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
7593 fi
7594 fi
7595 if test x$gtk_config_prefix != x ; then
7596 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
7597 if test x${GTK_CONFIG+set} != xset ; then
7598 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
7599 fi
7600 fi
7601
7602 # Extract the first word of "gtk-config", so it can be a program name with args.
7603set dummy gtk-config; ac_word=$2
7604echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3fed1840 7605echo "configure:7606: checking for $ac_word" >&5
10f2d63a
VZ
7606if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
7607 echo $ac_n "(cached) $ac_c" 1>&6
7608else
7609 case "$GTK_CONFIG" in
7610 /*)
7611 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
7612 ;;
7613 ?:/*)
7614 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
7615 ;;
7616 *)
7617 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7618 ac_dummy="$PATH"
7619 for ac_dir in $ac_dummy; do
7620 test -z "$ac_dir" && ac_dir=.
7621 if test -f $ac_dir/$ac_word; then
7622 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
7623 break
7624 fi
7625 done
7626 IFS="$ac_save_ifs"
7627 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
7628 ;;
7629esac
7630fi
7631GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
7632if test -n "$GTK_CONFIG"; then
7633 echo "$ac_t""$GTK_CONFIG" 1>&6
7634else
7635 echo "$ac_t""no" 1>&6
7636fi
7637
04165bec 7638 min_gtk_version=1.2.3
10f2d63a 7639 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
3fed1840 7640echo "configure:7641: checking for GTK - version >= $min_gtk_version" >&5
10f2d63a
VZ
7641 no_gtk=""
7642 if test "$GTK_CONFIG" != "no" ; then
7643 GTK_CFLAGS=`$GTK_CONFIG --cflags`
2224580a 7644 GTK_LIBS=`$GTK_CONFIG --libs gthread`
10f2d63a
VZ
7645 ac_save_CFLAGS="$CFLAGS"
7646 ac_save_LIBS="$LIBS"
7647 CFLAGS="$CFLAGS $GTK_CFLAGS"
7648 LIBS="$LIBS $GTK_LIBS"
7649 if test "$cross_compiling" = yes; then
7650 echo $ac_n "cross compiling; assumed OK... $ac_c"
7651else
7652 cat > conftest.$ac_ext <<EOF
3fed1840 7653#line 7654 "configure"
10f2d63a
VZ
7654#include "confdefs.h"
7655
7656#include <gtk/gtk.h>
f49f2b0c 7657#include <gtk/gtkfeatures.h>
10f2d63a 7658#include <stdio.h>
32832908 7659#include <stdlib.h>
10f2d63a
VZ
7660
7661int
7662main ()
7663{
7664 int major, minor, micro;
7665
7666 if (sscanf("$min_gtk_version", "%d.%d.%d", &major, &minor, &micro) != 3) {
7667 printf("%s, bad version string\n", "$min_gtk_version");
7668 exit(1);
7669 }
7670
f49f2b0c
RR
7671 if ((GTK_MAJOR_VERSION != gtk_major_version) ||
7672 (GTK_MINOR_VERSION != gtk_minor_version) ||
7673 (GTK_MICRO_VERSION != gtk_micro_version)) {
7674 printf("Headers vs. library version mismatch!\n");
7675 exit(1);
7676 }
7677
10f2d63a
VZ
7678 if (gtk_minor_version == 1) return FALSE;
7679
7680 return !((gtk_major_version > major) ||
7681 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
7682 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)));
7683}
7684
7685EOF
3fed1840 7686if { (eval echo configure:7687: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10f2d63a
VZ
7687then
7688 :
7689else
7690 echo "configure: failed program was:" >&5
7691 cat conftest.$ac_ext >&5
7692 rm -fr conftest*
7693 no_gtk=yes
7694fi
7695rm -fr conftest*
7696fi
7697
7698 CFLAGS="$ac_save_CFLAGS"
7699 LIBS="$ac_save_LIBS"
7700 else
7701 no_gtk=yes
7702 fi
7703 if test "x$no_gtk" = x ; then
7704 echo "$ac_t""yes" 1>&6
7705 WXGTK12=1
7706 else
7707 echo "$ac_t""no" 1>&6
7708 GTK_CFLAGS=""
7709 GTK_LIBS=""
7e99ad86 7710 :
10f2d63a
VZ
7711 fi
7712
7713
7714
6f72b082
OK
7715
7716 fi
7717
7718
7719 rm -f conf.gtktest
7720
10f2d63a 7721
6f72b082 7722 if test "$WXGTK12" != 1 -a "$WXGTK20" != 1; then
7e99ad86
VZ
7723 { echo "configure: error:
7724 Please check that gtk-config is in path, the directory
7725 where GTK+ libraries are installed (returned by
7726 'gtk-config --libs' command) is in LD_LIBRARY_PATH or
7727 equivalent variable and GTK+ is version 1.2.3 or above.
7728 " 1>&2; exit 1; }
7729 fi
7730
10f2d63a 7731 TOOLKIT_INCLUDE="$GTK_CFLAGS"
2224580a
VZ
7732
7733
7734 GUI_TK_LIBRARY="$GTK_LIBS"
7735
10f2d63a
VZ
7736 TOOLKIT=GTK
7737
dad6c0ea
VZ
7738 AFMINSTALL=afminstall
7739
10f2d63a
VZ
7740 GUIOBJS="\$(GTK_GUIOBJS)"
7741 GUIHEADERS="\$(GTK_HEADERS)"
7742 COMMONOBJS="\$(GTK_COMMONOBJS)"
7743 GENERICOBJS="\$(GTK_GENERICOBJS)"
7744 GUIDEPS="\$(GTK_GUIDEPS)"
7745 COMMONDEPS="\$(GTK_COMMONDEPS)"
7746 GENERICDEPS="\$(GTK_GENERICDEPS)"
7747 UNIXOBJS="\$(UNIX_OBJS)"
d9d8273d 7748 UNIXDEPS="\$(UNIX_DEPS)"
10f2d63a 7749 GUIDIST=GTK_DIST
7ec2881a 7750
2224580a 7751 echo $ac_n "checking for gdk_im_open in -lgdk""... $ac_c" 1>&6
3fed1840 7752echo "configure:7753: checking for gdk_im_open in -lgdk" >&5
7ec2881a
RR
7753ac_lib_var=`echo gdk'_'gdk_im_open | sed 'y%./+-%__p_%'`
7754if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7755 echo $ac_n "(cached) $ac_c" 1>&6
7756else
7757 ac_save_LIBS="$LIBS"
7758LIBS="-lgdk $LIBS"
7759cat > conftest.$ac_ext <<EOF
3fed1840 7760#line 7761 "configure"
7ec2881a
RR
7761#include "confdefs.h"
7762/* Override any gcc2 internal prototype to avoid an error. */
7763/* We use char because int might match the return type of a gcc2
7764 builtin and then its argument prototype would still apply. */
7765char gdk_im_open();
7766
7767int main() {
7768gdk_im_open()
7769; return 0; }
7770EOF
3fed1840 7771if { (eval echo configure:7772: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7ec2881a
RR
7772 rm -rf conftest*
7773 eval "ac_cv_lib_$ac_lib_var=yes"
7774else
7775 echo "configure: failed program was:" >&5
7776 cat conftest.$ac_ext >&5
7777 rm -rf conftest*
7778 eval "ac_cv_lib_$ac_lib_var=no"
7779fi
7780rm -f conftest*
7781LIBS="$ac_save_LIBS"
7782
7783fi
7784if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7785 echo "$ac_t""yes" 1>&6
7786 cat >> confdefs.h <<\EOF
7787#define HAVE_XIM 1
7788EOF
7789
7790else
7791 echo "$ac_t""no" 1>&6
7792fi
7793
10f2d63a
VZ
7794fi
7795
7796if test "$wxUSE_WINE" = 1; then
7797 echo $ac_n "checking for WINE includes""... $ac_c" 1>&6
3fed1840 7798echo "configure:7799: checking for WINE includes" >&5
10f2d63a
VZ
7799
7800ac_find_includes=
7801for ac_dir in $SEARCH_INCLUDE;
7802 do
7803 if test -f "$ac_dir/windows.h"; then
7804 ac_find_includes=$ac_dir
7805 break
7806 fi
7807 done
7808
7809 if test "$ac_find_includes" != "" ; then
7810 echo "$ac_t""found $ac_find_includes" 1>&6
7811 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE -I$ac_find_includes"
7812 else
7813 echo "$ac_t""no" 1>&6
7814 { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; }
7815 fi
7816
7817 XPM_LINK=""
7818 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
3fed1840 7819echo "configure:7820: checking for Xpm library" >&5
10f2d63a
VZ
7820
7821ac_find_libraries=
7822for ac_dir in $SEARCH_LIB;
7823 do
7824 for ac_extension in a so sl; do
7825 if test -f "$ac_dir/libXpm.$ac_extension"; then
7826 ac_find_libraries=$ac_dir
7827 break 2
7828 fi
7829 done
7830 done
7831
7832 if test "$ac_find_libraries" != "" ; then
7833 GUI_TK_LIBRARY="-L$ac_find_libraries"
7834 XPM_LINK="-lXpm"
7835 cat >> confdefs.h <<\EOF
7836#define wxHAVE_LIB_XPM 1
7837EOF
7838
7839 echo "$ac_t""found at $ac_find_libraries" 1>&6
7840 else
7841 echo "$ac_t""no" 1>&6
7842 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
7843 fi
7844
7845 MESA_LINK=""
7846 echo $ac_n "checking for Mesa library""... $ac_c" 1>&6
3fed1840 7847echo "configure:7848: checking for Mesa library" >&5
10f2d63a
VZ
7848
7849ac_find_libraries=
7850for ac_dir in $SEARCH_LIB;
7851 do
7852 for ac_extension in a so sl; do
7853 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
7854 ac_find_libraries=$ac_dir
7855 break 2
7856 fi
7857 done
7858 done
7859
7860 if test "$ac_find_libraries" != "" ; then
7861 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -L$ac_find_libraries"
7862 MESA_LINK="-lMesaGL"
7863 echo "$ac_t""found at $ac_find_libraries" 1>&6
7864 else
7865 { echo "configure: error: no" 1>&2; exit 1; }
7866 fi
7867
8916026b 7868 GUI_TK_LINK="-lwine $MESA_LINK $XPM_LINK -lXxf86dga -lXxf86vm -lSM -lICE -lXext -lXmu -lX11 -lncurses"
10f2d63a
VZ
7869 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $GUI_TK_LINK"
7870 WXWINE=1
7871 TOOLKIT=MSW
7872
7873 GUIHEADERS="\$(MSW_HEADERS)"
7874 GUIOBJS="\$(MSW_GUIOBJS)"
7875 COMMONOBJS="\$(MSW_COMMONOBJS)"
7876 GENERICOBJS="\$(MSW_GENERICOBJS)"
7877 GUIDEPS="\$(MSW_GUIDEPS)"
7878 COMMONDEPS="\$(MSW_COMMONDEPS)"
7879 GENERICDEPS="\$(MSW_GENERICDEPS)"
7880 UNIXOBJS="\$(UNIX_OBJS)"
d9d8273d 7881 UNIXDEPS="\$(UNIX_DEPS)"
10f2d63a
VZ
7882 GUIDIST=MSW_DIST
7883fi
7884
37d403aa
JS
7885
7886# If we find X, set shell vars x_includes and x_libraries to the
ab9b9eab
VZ
7887# paths, otherwise set no_x=yes.
7888# Uses ac_ vars as temps to allow command line to override cache and checks.
7889# --without-x overrides everything else, but does not touch the cache.
7890echo $ac_n "checking for X""... $ac_c" 1>&6
3fed1840 7891echo "configure:7892: checking for X" >&5
ab9b9eab
VZ
7892
7893# Check whether --with-x or --without-x was given.
7894if test "${with_x+set}" = set; then
7895 withval="$with_x"
7896 :
7897fi
ba337fe7 7898
ab9b9eab
VZ
7899# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7900if test "x$with_x" = xno; then
7901 # The user explicitly disabled X.
7902 have_x=disabled
7903else
7904 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
7905 # Both variables are already set.
7906 have_x=yes
7907 else
7908if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
7909 echo $ac_n "(cached) $ac_c" 1>&6
7910else
7911 # One or both of the vars are not set, and there is no cached value.
7912ac_x_includes=NO ac_x_libraries=NO
7913rm -fr conftestdir
7914if mkdir conftestdir; then
7915 cd conftestdir
7916 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
7917 cat > Imakefile <<'EOF'
7918acfindx:
7919 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
7920EOF
7921 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
7922 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7923 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
7924 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
10f2d63a 7925 for ac_extension in a so sl; do
ab9b9eab
VZ
7926 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
7927 test -f $ac_im_libdir/libX11.$ac_extension; then
7928 ac_im_usrlibdir=$ac_im_libdir; break
10f2d63a
VZ
7929 fi
7930 done
ab9b9eab
VZ
7931 # Screen out bogus values from the imake configuration. They are
7932 # bogus both because they are the default anyway, and because
7933 # using them would break gcc on systems where it needs fixed includes.
7934 case "$ac_im_incroot" in
7935 /usr/include) ;;
7936 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
7937 esac
7938 case "$ac_im_usrlibdir" in
7939 /usr/lib | /lib) ;;
7940 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
7941 esac
ba337fe7 7942 fi
ab9b9eab
VZ
7943 cd ..
7944 rm -fr conftestdir
7945fi
10f2d63a 7946
ab9b9eab
VZ
7947if test "$ac_x_includes" = NO; then
7948 # Guess where to find include files, by looking for this one X11 .h file.
7949 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
ba337fe7 7950
ab9b9eab
VZ
7951 # First, try using that file with no special directory specified.
7952cat > conftest.$ac_ext <<EOF
3fed1840 7953#line 7954 "configure"
ab9b9eab
VZ
7954#include "confdefs.h"
7955#include <$x_direct_test_include>
7956EOF
7957ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3fed1840 7958{ (eval echo configure:7959: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ab9b9eab
VZ
7959ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7960if test -z "$ac_err"; then
7961 rm -rf conftest*
7962 # We can compile using X headers with no special include directory.
7963ac_x_includes=
7964else
7965 echo "$ac_err" >&5
7966 echo "configure: failed program was:" >&5
7967 cat conftest.$ac_ext >&5
7968 rm -rf conftest*
7969 # Look for the header file in a standard set of common directories.
7970# Check X11 before X11Rn because it is often a symlink to the current release.
7971 for ac_dir in \
7972 /usr/X11/include \
7973 /usr/X11R6/include \
7974 /usr/X11R5/include \
7975 /usr/X11R4/include \
7976 \
7977 /usr/include/X11 \
7978 /usr/include/X11R6 \
7979 /usr/include/X11R5 \
7980 /usr/include/X11R4 \
7981 \
7982 /usr/local/X11/include \
7983 /usr/local/X11R6/include \
7984 /usr/local/X11R5/include \
7985 /usr/local/X11R4/include \
7986 \
7987 /usr/local/include/X11 \
7988 /usr/local/include/X11R6 \
7989 /usr/local/include/X11R5 \
7990 /usr/local/include/X11R4 \
7991 \
7992 /usr/X386/include \
7993 /usr/x386/include \
7994 /usr/XFree86/include/X11 \
7995 \
7996 /usr/include \
7997 /usr/local/include \
7998 /usr/unsupported/include \
7999 /usr/athena/include \
8000 /usr/local/x11r5/include \
8001 /usr/lpp/Xamples/include \
8002 \
8003 /usr/openwin/include \
8004 /usr/openwin/share/include \
8005 ; \
10f2d63a 8006 do
ab9b9eab
VZ
8007 if test -r "$ac_dir/$x_direct_test_include"; then
8008 ac_x_includes=$ac_dir
10f2d63a
VZ
8009 break
8010 fi
8011 done
ab9b9eab
VZ
8012fi
8013rm -f conftest*
8014fi # $ac_x_includes = NO
10f2d63a 8015
ab9b9eab
VZ
8016if test "$ac_x_libraries" = NO; then
8017 # Check for the libraries.
10f2d63a 8018
ab9b9eab
VZ
8019 test -z "$x_direct_test_library" && x_direct_test_library=Xt
8020 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
10f2d63a 8021
ab9b9eab
VZ
8022 # See if we find them without any special options.
8023 # Don't add to $LIBS permanently.
8024 ac_save_LIBS="$LIBS"
8025 LIBS="-l$x_direct_test_library $LIBS"
8026cat > conftest.$ac_ext <<EOF
3fed1840 8027#line 8028 "configure"
ab9b9eab 8028#include "confdefs.h"
10f2d63a 8029
ab9b9eab
VZ
8030int main() {
8031${x_direct_test_function}()
8032; return 0; }
8033EOF
3fed1840 8034if { (eval echo configure:8035: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
8035 rm -rf conftest*
8036 LIBS="$ac_save_LIBS"
8037# We can link X programs with no special library path.
8038ac_x_libraries=
8039else
8040 echo "configure: failed program was:" >&5
8041 cat conftest.$ac_ext >&5
8042 rm -rf conftest*
8043 LIBS="$ac_save_LIBS"
8044# First see if replacing the include by lib works.
8045# Check X11 before X11Rn because it is often a symlink to the current release.
8046for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
8047 /usr/X11/lib \
8048 /usr/X11R6/lib \
8049 /usr/X11R5/lib \
8050 /usr/X11R4/lib \
8051 \
8052 /usr/lib/X11 \
8053 /usr/lib/X11R6 \
8054 /usr/lib/X11R5 \
8055 /usr/lib/X11R4 \
8056 \
8057 /usr/local/X11/lib \
8058 /usr/local/X11R6/lib \
8059 /usr/local/X11R5/lib \
8060 /usr/local/X11R4/lib \
8061 \
8062 /usr/local/lib/X11 \
8063 /usr/local/lib/X11R6 \
8064 /usr/local/lib/X11R5 \
8065 /usr/local/lib/X11R4 \
8066 \
8067 /usr/X386/lib \
8068 /usr/x386/lib \
8069 /usr/XFree86/lib/X11 \
8070 \
8071 /usr/lib \
8072 /usr/local/lib \
8073 /usr/unsupported/lib \
8074 /usr/athena/lib \
8075 /usr/local/x11r5/lib \
8076 /usr/lpp/Xamples/lib \
8077 /lib/usr/lib/X11 \
8078 \
8079 /usr/openwin/lib \
8080 /usr/openwin/share/lib \
8081 ; \
8082do
8083 for ac_extension in a so sl; do
8084 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
8085 ac_x_libraries=$ac_dir
8086 break 2
10f2d63a 8087 fi
10f2d63a 8088 done
ab9b9eab
VZ
8089done
8090fi
8091rm -f conftest*
8092fi # $ac_x_libraries = NO
10f2d63a 8093
ab9b9eab
VZ
8094if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
8095 # Didn't find X anywhere. Cache the known absence of X.
8096 ac_cv_have_x="have_x=no"
8097else
8098 # Record where we found X for the cache.
8099 ac_cv_have_x="have_x=yes \
8100 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
8101fi
8102fi
10f2d63a 8103 fi
ab9b9eab
VZ
8104 eval "$ac_cv_have_x"
8105fi # $with_x != no
10f2d63a 8106
ab9b9eab
VZ
8107if test "$have_x" != yes; then
8108 echo "$ac_t""$have_x" 1>&6
8109 no_x=yes
8110else
8111 # If each of the values was on the command line, it overrides each guess.
8112 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
8113 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
8114 # Update the cache value to reflect the command line values.
8115 ac_cv_have_x="have_x=yes \
8116 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
8117 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
8118fi
10f2d63a 8119
ab9b9eab
VZ
8120if test "$no_x" = yes; then
8121 # Not all programs may use this symbol, but it does not hurt to define it.
8122 cat >> confdefs.h <<\EOF
8123#define X_DISPLAY_MISSING 1
8124EOF
10f2d63a 8125
ab9b9eab
VZ
8126 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
8127else
8128 if test -n "$x_includes"; then
8129 X_CFLAGS="$X_CFLAGS -I$x_includes"
10f2d63a
VZ
8130 fi
8131
ab9b9eab
VZ
8132 # It would also be nice to do this for all -L options, not just this one.
8133 if test -n "$x_libraries"; then
8134 X_LIBS="$X_LIBS -L$x_libraries"
8135 # For Solaris; some versions of Sun CC require a space after -R and
8136 # others require no space. Words are not sufficient . . . .
8137 case "`(uname -sr) 2>/dev/null`" in
8138 "SunOS 5"*)
8139 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
3fed1840 8140echo "configure:8141: checking whether -R must be followed by a space" >&5
ab9b9eab
VZ
8141 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
8142 cat > conftest.$ac_ext <<EOF
3fed1840 8143#line 8144 "configure"
ab9b9eab 8144#include "confdefs.h"
10f2d63a 8145
ab9b9eab 8146int main() {
788deba1 8147
ab9b9eab
VZ
8148; return 0; }
8149EOF
3fed1840 8150if { (eval echo configure:8151: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
8151 rm -rf conftest*
8152 ac_R_nospace=yes
8153else
8154 echo "configure: failed program was:" >&5
8155 cat conftest.$ac_ext >&5
8156 rm -rf conftest*
8157 ac_R_nospace=no
8158fi
8159rm -f conftest*
8160 if test $ac_R_nospace = yes; then
8161 echo "$ac_t""no" 1>&6
8162 X_LIBS="$X_LIBS -R$x_libraries"
8163 else
8164 LIBS="$ac_xsave_LIBS -R $x_libraries"
8165 cat > conftest.$ac_ext <<EOF
3fed1840 8166#line 8167 "configure"
ab9b9eab 8167#include "confdefs.h"
788deba1 8168
ab9b9eab
VZ
8169int main() {
8170
8171; return 0; }
8172EOF
3fed1840 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 ac_R_space=yes
8176else
8177 echo "configure: failed program was:" >&5
8178 cat conftest.$ac_ext >&5
8179 rm -rf conftest*
8180 ac_R_space=no
8181fi
8182rm -f conftest*
8183 if test $ac_R_space = yes; then
8184 echo "$ac_t""yes" 1>&6
8185 X_LIBS="$X_LIBS -R $x_libraries"
8186 else
8187 echo "$ac_t""neither works" 1>&6
8188 fi
8189 fi
8190 LIBS="$ac_xsave_LIBS"
8191 esac
8192 fi
8193
8194 # Check for system-dependent libraries X programs must link with.
8195 # Do this before checking for the system-independent R6 libraries
8196 # (-lICE), since we may need -lsocket or whatever for X linking.
8197
8198 if test "$ISC" = yes; then
8199 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
8200 else
8201 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
8202 # libraries were built with DECnet support. And karl@cs.umb.edu says
8203 # the Alpha needs dnet_stub (dnet does not exist).
8204 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
3fed1840 8205echo "configure:8206: checking for dnet_ntoa in -ldnet" >&5
ab9b9eab
VZ
8206ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
8207if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8208 echo $ac_n "(cached) $ac_c" 1>&6
8209else
8210 ac_save_LIBS="$LIBS"
8211LIBS="-ldnet $LIBS"
8212cat > conftest.$ac_ext <<EOF
3fed1840 8213#line 8214 "configure"
ab9b9eab
VZ
8214#include "confdefs.h"
8215/* Override any gcc2 internal prototype to avoid an error. */
8216/* We use char because int might match the return type of a gcc2
8217 builtin and then its argument prototype would still apply. */
8218char dnet_ntoa();
8219
8220int main() {
8221dnet_ntoa()
8222; return 0; }
8223EOF
3fed1840 8224if { (eval echo configure:8225: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
8225 rm -rf conftest*
8226 eval "ac_cv_lib_$ac_lib_var=yes"
8227else
8228 echo "configure: failed program was:" >&5
8229 cat conftest.$ac_ext >&5
8230 rm -rf conftest*
8231 eval "ac_cv_lib_$ac_lib_var=no"
8232fi
8233rm -f conftest*
8234LIBS="$ac_save_LIBS"
8235
8236fi
8237if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8238 echo "$ac_t""yes" 1>&6
8239 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
8240else
8241 echo "$ac_t""no" 1>&6
8242fi
8243
8244 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
8245 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
3fed1840 8246echo "configure:8247: checking for dnet_ntoa in -ldnet_stub" >&5
ab9b9eab
VZ
8247ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
8248if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8249 echo $ac_n "(cached) $ac_c" 1>&6
8250else
8251 ac_save_LIBS="$LIBS"
8252LIBS="-ldnet_stub $LIBS"
8253cat > conftest.$ac_ext <<EOF
3fed1840 8254#line 8255 "configure"
ab9b9eab
VZ
8255#include "confdefs.h"
8256/* Override any gcc2 internal prototype to avoid an error. */
8257/* We use char because int might match the return type of a gcc2
8258 builtin and then its argument prototype would still apply. */
8259char dnet_ntoa();
8260
8261int main() {
8262dnet_ntoa()
8263; return 0; }
8264EOF
3fed1840 8265if { (eval echo configure:8266: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
8266 rm -rf conftest*
8267 eval "ac_cv_lib_$ac_lib_var=yes"
8268else
8269 echo "configure: failed program was:" >&5
8270 cat conftest.$ac_ext >&5
8271 rm -rf conftest*
8272 eval "ac_cv_lib_$ac_lib_var=no"
8273fi
8274rm -f conftest*
8275LIBS="$ac_save_LIBS"
8276
8277fi
8278if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8279 echo "$ac_t""yes" 1>&6
8280 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
8281else
8282 echo "$ac_t""no" 1>&6
8283fi
8284
8285 fi
8286
8287 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
8288 # to get the SysV transport functions.
8289 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
8290 # needs -lnsl.
8291 # The nsl library prevents programs from opening the X display
8292 # on Irix 5.2, according to dickey@clark.net.
8293 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
3fed1840 8294echo "configure:8295: checking for gethostbyname" >&5
ab9b9eab
VZ
8295if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
8296 echo $ac_n "(cached) $ac_c" 1>&6
8297else
8298 cat > conftest.$ac_ext <<EOF
3fed1840 8299#line 8300 "configure"
ab9b9eab
VZ
8300#include "confdefs.h"
8301/* System header to define __stub macros and hopefully few prototypes,
8302 which can conflict with char gethostbyname(); below. */
8303#include <assert.h>
8304/* Override any gcc2 internal prototype to avoid an error. */
8305/* We use char because int might match the return type of a gcc2
8306 builtin and then its argument prototype would still apply. */
8307char gethostbyname();
8308
8309int main() {
8310
8311/* The GNU C library defines this for functions which it implements
8312 to always fail with ENOSYS. Some functions are actually named
8313 something starting with __ and the normal name is an alias. */
8314#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
8315choke me
8316#else
e8482f24 8317gethostbyname();
ab9b9eab
VZ
8318#endif
8319
8320; return 0; }
8321EOF
3fed1840 8322if { (eval echo configure:8323: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
8323 rm -rf conftest*
8324 eval "ac_cv_func_gethostbyname=yes"
8325else
8326 echo "configure: failed program was:" >&5
8327 cat conftest.$ac_ext >&5
8328 rm -rf conftest*
8329 eval "ac_cv_func_gethostbyname=no"
8330fi
8331rm -f conftest*
8332fi
8333
8334if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
8335 echo "$ac_t""yes" 1>&6
8336 :
8337else
8338 echo "$ac_t""no" 1>&6
8339fi
8340
8341 if test $ac_cv_func_gethostbyname = no; then
8342 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
3fed1840 8343echo "configure:8344: checking for gethostbyname in -lnsl" >&5
ab9b9eab
VZ
8344ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
8345if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8346 echo $ac_n "(cached) $ac_c" 1>&6
8347else
8348 ac_save_LIBS="$LIBS"
8349LIBS="-lnsl $LIBS"
8350cat > conftest.$ac_ext <<EOF
3fed1840 8351#line 8352 "configure"
ab9b9eab
VZ
8352#include "confdefs.h"
8353/* Override any gcc2 internal prototype to avoid an error. */
8354/* We use char because int might match the return type of a gcc2
8355 builtin and then its argument prototype would still apply. */
8356char gethostbyname();
8357
8358int main() {
8359gethostbyname()
8360; return 0; }
8361EOF
3fed1840 8362if { (eval echo configure:8363: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
8363 rm -rf conftest*
8364 eval "ac_cv_lib_$ac_lib_var=yes"
8365else
8366 echo "configure: failed program was:" >&5
8367 cat conftest.$ac_ext >&5
8368 rm -rf conftest*
8369 eval "ac_cv_lib_$ac_lib_var=no"
8370fi
8371rm -f conftest*
8372LIBS="$ac_save_LIBS"
8373
8374fi
8375if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8376 echo "$ac_t""yes" 1>&6
8377 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
8378else
8379 echo "$ac_t""no" 1>&6
8380fi
8381
8382 fi
8383
8384 # lieder@skyler.mavd.honeywell.com says without -lsocket,
8385 # socket/setsockopt and other routines are undefined under SCO ODT
8386 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
8387 # on later versions), says simon@lia.di.epfl.ch: it contains
8388 # gethostby* variants that don't use the nameserver (or something).
8389 # -lsocket must be given before -lnsl if both are needed.
8390 # We assume that if connect needs -lnsl, so does gethostbyname.
8391 echo $ac_n "checking for connect""... $ac_c" 1>&6
3fed1840 8392echo "configure:8393: checking for connect" >&5
ab9b9eab
VZ
8393if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
8394 echo $ac_n "(cached) $ac_c" 1>&6
8395else
8396 cat > conftest.$ac_ext <<EOF
3fed1840 8397#line 8398 "configure"
ab9b9eab
VZ
8398#include "confdefs.h"
8399/* System header to define __stub macros and hopefully few prototypes,
8400 which can conflict with char connect(); below. */
8401#include <assert.h>
8402/* Override any gcc2 internal prototype to avoid an error. */
8403/* We use char because int might match the return type of a gcc2
8404 builtin and then its argument prototype would still apply. */
8405char connect();
8406
8407int main() {
8408
8409/* The GNU C library defines this for functions which it implements
8410 to always fail with ENOSYS. Some functions are actually named
8411 something starting with __ and the normal name is an alias. */
8412#if defined (__stub_connect) || defined (__stub___connect)
8413choke me
8414#else
e8482f24 8415connect();
ab9b9eab
VZ
8416#endif
8417
8418; return 0; }
8419EOF
3fed1840 8420if { (eval echo configure:8421: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
8421 rm -rf conftest*
8422 eval "ac_cv_func_connect=yes"
8423else
8424 echo "configure: failed program was:" >&5
8425 cat conftest.$ac_ext >&5
8426 rm -rf conftest*
8427 eval "ac_cv_func_connect=no"
8428fi
8429rm -f conftest*
8430fi
8431
8432if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
8433 echo "$ac_t""yes" 1>&6
8434 :
8435else
8436 echo "$ac_t""no" 1>&6
8437fi
8438
8439 if test $ac_cv_func_connect = no; then
8440 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
3fed1840 8441echo "configure:8442: checking for connect in -lsocket" >&5
ab9b9eab
VZ
8442ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
8443if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8444 echo $ac_n "(cached) $ac_c" 1>&6
8445else
8446 ac_save_LIBS="$LIBS"
8447LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
8448cat > conftest.$ac_ext <<EOF
3fed1840 8449#line 8450 "configure"
ab9b9eab
VZ
8450#include "confdefs.h"
8451/* Override any gcc2 internal prototype to avoid an error. */
8452/* We use char because int might match the return type of a gcc2
8453 builtin and then its argument prototype would still apply. */
8454char connect();
8455
8456int main() {
8457connect()
8458; return 0; }
8459EOF
3fed1840 8460if { (eval echo configure:8461: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
8461 rm -rf conftest*
8462 eval "ac_cv_lib_$ac_lib_var=yes"
8463else
8464 echo "configure: failed program was:" >&5
8465 cat conftest.$ac_ext >&5
8466 rm -rf conftest*
8467 eval "ac_cv_lib_$ac_lib_var=no"
8468fi
8469rm -f conftest*
8470LIBS="$ac_save_LIBS"
8471
8472fi
8473if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8474 echo "$ac_t""yes" 1>&6
8475 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
8476else
8477 echo "$ac_t""no" 1>&6
8478fi
8479
8480 fi
8481
8482 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
8483 echo $ac_n "checking for remove""... $ac_c" 1>&6
3fed1840 8484echo "configure:8485: checking for remove" >&5
ab9b9eab
VZ
8485if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
8486 echo $ac_n "(cached) $ac_c" 1>&6
8487else
8488 cat > conftest.$ac_ext <<EOF
3fed1840 8489#line 8490 "configure"
ab9b9eab
VZ
8490#include "confdefs.h"
8491/* System header to define __stub macros and hopefully few prototypes,
8492 which can conflict with char remove(); below. */
8493#include <assert.h>
8494/* Override any gcc2 internal prototype to avoid an error. */
8495/* We use char because int might match the return type of a gcc2
8496 builtin and then its argument prototype would still apply. */
8497char remove();
8498
8499int main() {
8500
8501/* The GNU C library defines this for functions which it implements
8502 to always fail with ENOSYS. Some functions are actually named
8503 something starting with __ and the normal name is an alias. */
8504#if defined (__stub_remove) || defined (__stub___remove)
8505choke me
8506#else
e8482f24 8507remove();
ab9b9eab
VZ
8508#endif
8509
8510; return 0; }
8511EOF
3fed1840 8512if { (eval echo configure:8513: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
8513 rm -rf conftest*
8514 eval "ac_cv_func_remove=yes"
8515else
8516 echo "configure: failed program was:" >&5
8517 cat conftest.$ac_ext >&5
8518 rm -rf conftest*
8519 eval "ac_cv_func_remove=no"
8520fi
8521rm -f conftest*
8522fi
8523
8524if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
8525 echo "$ac_t""yes" 1>&6
8526 :
8527else
8528 echo "$ac_t""no" 1>&6
8529fi
8530
8531 if test $ac_cv_func_remove = no; then
8532 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
3fed1840 8533echo "configure:8534: checking for remove in -lposix" >&5
ab9b9eab
VZ
8534ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
8535if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8536 echo $ac_n "(cached) $ac_c" 1>&6
8537else
8538 ac_save_LIBS="$LIBS"
8539LIBS="-lposix $LIBS"
8540cat > conftest.$ac_ext <<EOF
3fed1840 8541#line 8542 "configure"
ab9b9eab
VZ
8542#include "confdefs.h"
8543/* Override any gcc2 internal prototype to avoid an error. */
8544/* We use char because int might match the return type of a gcc2
8545 builtin and then its argument prototype would still apply. */
8546char remove();
8547
8548int main() {
8549remove()
8550; return 0; }
8551EOF
3fed1840 8552if { (eval echo configure:8553: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
8553 rm -rf conftest*
8554 eval "ac_cv_lib_$ac_lib_var=yes"
8555else
8556 echo "configure: failed program was:" >&5
8557 cat conftest.$ac_ext >&5
8558 rm -rf conftest*
8559 eval "ac_cv_lib_$ac_lib_var=no"
8560fi
8561rm -f conftest*
8562LIBS="$ac_save_LIBS"
8563
8564fi
8565if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8566 echo "$ac_t""yes" 1>&6
8567 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
8568else
8569 echo "$ac_t""no" 1>&6
8570fi
8571
8572 fi
8573
8574 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
8575 echo $ac_n "checking for shmat""... $ac_c" 1>&6
3fed1840 8576echo "configure:8577: checking for shmat" >&5
ab9b9eab
VZ
8577if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
8578 echo $ac_n "(cached) $ac_c" 1>&6
8579else
8580 cat > conftest.$ac_ext <<EOF
3fed1840 8581#line 8582 "configure"
ab9b9eab
VZ
8582#include "confdefs.h"
8583/* System header to define __stub macros and hopefully few prototypes,
8584 which can conflict with char shmat(); below. */
8585#include <assert.h>
8586/* Override any gcc2 internal prototype to avoid an error. */
8587/* We use char because int might match the return type of a gcc2
8588 builtin and then its argument prototype would still apply. */
8589char shmat();
8590
8591int main() {
8592
8593/* The GNU C library defines this for functions which it implements
8594 to always fail with ENOSYS. Some functions are actually named
8595 something starting with __ and the normal name is an alias. */
8596#if defined (__stub_shmat) || defined (__stub___shmat)
8597choke me
8598#else
e8482f24 8599shmat();
ab9b9eab
VZ
8600#endif
8601
8602; return 0; }
8603EOF
3fed1840 8604if { (eval echo configure:8605: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
8605 rm -rf conftest*
8606 eval "ac_cv_func_shmat=yes"
8607else
8608 echo "configure: failed program was:" >&5
8609 cat conftest.$ac_ext >&5
8610 rm -rf conftest*
8611 eval "ac_cv_func_shmat=no"
8612fi
8613rm -f conftest*
8614fi
8615
8616if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
8617 echo "$ac_t""yes" 1>&6
8618 :
8619else
8620 echo "$ac_t""no" 1>&6
8621fi
8622
8623 if test $ac_cv_func_shmat = no; then
8624 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
3fed1840 8625echo "configure:8626: checking for shmat in -lipc" >&5
ab9b9eab
VZ
8626ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
8627if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8628 echo $ac_n "(cached) $ac_c" 1>&6
8629else
8630 ac_save_LIBS="$LIBS"
8631LIBS="-lipc $LIBS"
8632cat > conftest.$ac_ext <<EOF
3fed1840 8633#line 8634 "configure"
ab9b9eab
VZ
8634#include "confdefs.h"
8635/* Override any gcc2 internal prototype to avoid an error. */
8636/* We use char because int might match the return type of a gcc2
8637 builtin and then its argument prototype would still apply. */
8638char shmat();
8639
8640int main() {
8641shmat()
8642; return 0; }
8643EOF
3fed1840 8644if { (eval echo configure:8645: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
8645 rm -rf conftest*
8646 eval "ac_cv_lib_$ac_lib_var=yes"
8647else
8648 echo "configure: failed program was:" >&5
8649 cat conftest.$ac_ext >&5
8650 rm -rf conftest*
8651 eval "ac_cv_lib_$ac_lib_var=no"
8652fi
8653rm -f conftest*
8654LIBS="$ac_save_LIBS"
8655
8656fi
8657if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8658 echo "$ac_t""yes" 1>&6
8659 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
8660else
8661 echo "$ac_t""no" 1>&6
8662fi
8663
8664 fi
8665 fi
8666
8667 # Check for libraries that X11R6 Xt/Xaw programs need.
8668 ac_save_LDFLAGS="$LDFLAGS"
8669 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
8670 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
8671 # check for ICE first), but we must link in the order -lSM -lICE or
8672 # we get undefined symbols. So assume we have SM if we have ICE.
8673 # These have to be linked with before -lX11, unlike the other
8674 # libraries we check for below, so use a different variable.
8675 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
8676 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
3fed1840 8677echo "configure:8678: checking for IceConnectionNumber in -lICE" >&5
ab9b9eab
VZ
8678ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
8679if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8680 echo $ac_n "(cached) $ac_c" 1>&6
8681else
8682 ac_save_LIBS="$LIBS"
8683LIBS="-lICE $X_EXTRA_LIBS $LIBS"
8684cat > conftest.$ac_ext <<EOF
3fed1840 8685#line 8686 "configure"
ab9b9eab
VZ
8686#include "confdefs.h"
8687/* Override any gcc2 internal prototype to avoid an error. */
8688/* We use char because int might match the return type of a gcc2
8689 builtin and then its argument prototype would still apply. */
8690char IceConnectionNumber();
8691
8692int main() {
8693IceConnectionNumber()
8694; return 0; }
8695EOF
3fed1840 8696if { (eval echo configure:8697: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
8697 rm -rf conftest*
8698 eval "ac_cv_lib_$ac_lib_var=yes"
8699else
8700 echo "configure: failed program was:" >&5
8701 cat conftest.$ac_ext >&5
8702 rm -rf conftest*
8703 eval "ac_cv_lib_$ac_lib_var=no"
8704fi
8705rm -f conftest*
8706LIBS="$ac_save_LIBS"
8707
8708fi
8709if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8710 echo "$ac_t""yes" 1>&6
8711 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
8712else
8713 echo "$ac_t""no" 1>&6
8714fi
8715
8716 LDFLAGS="$ac_save_LDFLAGS"
8717
8718fi
8719
37d403aa
JS
8720CPPFLAGS="$CPPFLAGS $X_CFLAGS"
8721LDFLAGS="$LDFLAGS $X_LIBS"
ab9b9eab 8722
37d403aa 8723if test "$wxUSE_MOTIF" = 1; then
ab9b9eab 8724 if test "$no_x" = "yes"; then
37d403aa 8725 { echo "configure: error: X11 not found" 1>&2; exit 1; }
ab9b9eab
VZ
8726 fi
8727
8728 GUI_TK_LIBRARY="$X_LIBS"
8729 TOOLKIT_INCLUDE="$X_CFLAGS"
8730
dad6c0ea
VZ
8731 AFMINSTALL=afminstall
8732
ab9b9eab 8733
cd6d6d5b
VZ
8734 COMPILED_X_PROGRAM=0
8735
ab9b9eab 8736 echo $ac_n "checking for Motif/Lesstif headers""... $ac_c" 1>&6
3fed1840 8737echo "configure:8738: checking for Motif/Lesstif headers" >&5
ab9b9eab
VZ
8738
8739ac_find_includes=
8740for ac_dir in $SEARCH_INCLUDE;
8741 do
8742 if test -f "$ac_dir/Xm/Xm.h"; then
8743 ac_find_includes=$ac_dir
8744 break
8745 fi
8746 done
8747
8748 if test "$ac_find_includes" != "" ; then
8749 echo "$ac_t""found $ac_find_includes" 1>&6
8750 else
cd6d6d5b 8751 cat > conftest.$ac_ext <<EOF
3fed1840 8752#line 8753 "configure"
cd6d6d5b
VZ
8753#include "confdefs.h"
8754
8755 #include <Xm/Xm.h>
8756
8757int main() {
8758
8759 int version;
8760
8761 version = xmUseVersion;
8762
8763; return 0; }
8764EOF
3fed1840 8765if { (eval echo configure:8766: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
cd6d6d5b
VZ
8766 rm -rf conftest*
8767
8768 echo "$ac_t""found in default search path" 1>&6
8769 COMPILED_X_PROGRAM=1
8770
8771else
8772 echo "configure: failed program was:" >&5
8773 cat conftest.$ac_ext >&5
8774 rm -rf conftest*
8775
8776 echo "$ac_t""no" 1>&6
8777 { echo "configure: error: please set CFLAGS to contain the location of Xm/Xm.h" 1>&2; exit 1; }
8778
8779
8780fi
8781rm -f conftest*
ab9b9eab
VZ
8782 fi
8783
cd6d6d5b
VZ
8784 if test "$COMPILED_X_PROGRAM" = 0; then
8785 echo $ac_n "checking for Motif/Lesstif library""... $ac_c" 1>&6
3fed1840 8786echo "configure:8787: checking for Motif/Lesstif library" >&5
cd6d6d5b 8787
ab9b9eab
VZ
8788ac_find_libraries=
8789for ac_dir in $SEARCH_LIB;
8790 do
8791 for ac_extension in a so sl; do
8792 if test -f "$ac_dir/libXm.$ac_extension"; then
8793 ac_find_libraries=$ac_dir
8794 break 2
8795 fi
8796 done
8797 done
8798
cd6d6d5b
VZ
8799 if test "$ac_find_libraries" != "" ; then
8800
ab9b9eab
VZ
8801 ac_path_to_include=$ac_find_includes
8802 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
8803 result=$?
8804 if test $result = 0; then
8805 ac_path_to_include=""
8806 else
8807 ac_path_to_include="-I$ac_find_includes"
8808 fi
8809
cd6d6d5b 8810
ab9b9eab
VZ
8811 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
8812 result=$?
8813 if test $result = 0; then
8814 ac_path_to_link=""
8815 else
8816 ac_path_to_link="-L$ac_find_libraries"
8817 fi
8818
8819
cd6d6d5b
VZ
8820 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $ac_path_to_link"
8821 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE $ac_path_to_include"
8822 echo "$ac_t""found at $ac_find_libraries" 1>&6
8823 else
8824 cat > conftest.$ac_ext <<EOF
3fed1840 8825#line 8826 "configure"
cd6d6d5b 8826#include "confdefs.h"
ab9b9eab 8827
cd6d6d5b
VZ
8828 #include <Xm/Xm.h>
8829
8830int main() {
ab9b9eab 8831
cd6d6d5b 8832 int version;
ab9b9eab 8833
cd6d6d5b
VZ
8834 version = xmUseVersion;
8835
8836; return 0; }
8837EOF
3fed1840 8838if { (eval echo configure:8839: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
cd6d6d5b
VZ
8839 rm -rf conftest*
8840
8841 echo "$ac_t""found in default search path" 1>&6
8842 COMPILED_X_PROGRAM=1
8843
8844else
8845 echo "configure: failed program was:" >&5
8846 cat conftest.$ac_ext >&5
8847 rm -rf conftest*
8848
8849 echo "$ac_t""no" 1>&6
8850 { echo "configure: error: please set LDFLAGS to contain the location of libXm" 1>&2; exit 1; }
8851
8852
8853fi
8854rm -f conftest*
8855 fi
ab9b9eab
VZ
8856 fi
8857
cd6d6d5b 8858
ab9b9eab
VZ
8859 XPM_LINK=""
8860 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
3fed1840 8861echo "configure:8862: checking for Xpm library" >&5
ab9b9eab
VZ
8862
8863ac_find_libraries=
8864for ac_dir in $SEARCH_LIB;
8865 do
8866 for ac_extension in a so sl; do
8867 if test -f "$ac_dir/libXpm.$ac_extension"; then
8868 ac_find_libraries=$ac_dir
8869 break 2
8870 fi
8871 done
8872 done
8873
8874 if test "$ac_find_libraries" != "" ; then
8875
8876 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
8877 result=$?
8878 if test $result = 0; then
8879 ac_path_to_link=""
8880 else
8881 ac_path_to_link="-L$ac_find_libraries"
8882 fi
8883
8884 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $ac_path_to_link"
8885 XPM_LINK="-lXpm "
8886 cat >> confdefs.h <<\EOF
8887#define wxHAVE_LIB_XPM 1
8888EOF
8889
8890 echo "$ac_t""found at $ac_find_libraries" 1>&6
8891 else
cd6d6d5b 8892 cat > conftest.$ac_ext <<EOF
3fed1840 8893#line 8894 "configure"
cd6d6d5b
VZ
8894#include "confdefs.h"
8895
8896 #include <X11/xpm.h>
8897
8898int main() {
8899
8900 int version;
8901
8902 version = XpmLibraryVersion();
8903
8904; return 0; }
8905EOF
3fed1840 8906if { (eval echo configure:8907: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
cd6d6d5b
VZ
8907 rm -rf conftest*
8908
f6bcfd97
BP
8909 XPM_LINK="-lXpm "
8910 cat >> confdefs.h <<\EOF
3ace2e6d
SN
8911#define wxHAVE_LIB_XPM 1
8912EOF
8913
8914 echo "$ac_t""found in default search path" 1>&6
cd6d6d5b
VZ
8915 COMPILED_X_PROGRAM=0
8916
8917else
8918 echo "configure: failed program was:" >&5
8919 cat conftest.$ac_ext >&5
8920 rm -rf conftest*
8921
8922 echo "$ac_t""no" 1>&6
8923 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
8924
8925
8926fi
8927rm -f conftest*
ab9b9eab
VZ
8928 fi
8929
8916026b 8930 GUI_TK_LINK="-lXm $XPM_LINK -lXmu -lXext -lXt -lX11"
ab9b9eab
VZ
8931 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $GUI_TK_LINK"
8932 TOOLKIT=MOTIF
8933
8934 GUIHEADERS="\$(MOTIF_HEADERS)"
8935 GUIOBJS="\$(MOTIF_GUIOBJS)"
8936 COMMONOBJS="\$(MOTIF_COMMONOBJS)"
788deba1
VZ
8937 GENERICOBJS="\$(MOTIF_GENERICOBJS)"
8938 GUIDEPS="\$(MOTIF_GUIDEPS)"
8939 COMMONDEPS="\$(MOTIF_COMMONDEPS)"
10f2d63a
VZ
8940 GENERICDEPS="\$(MOTIF_GENERICDEPS)"
8941 UNIXOBJS="\$(UNIX_OBJS)"
d9d8273d 8942 UNIXDEPS="\$(UNIX_DEPS)"
10f2d63a
VZ
8943 GUIDIST=MOTIF_DIST
8944fi
8945
e07802fc
VZ
8946if test "$wxUSE_PM" = 1; then
8947 TOOLKIT=PM
8948
8949 GUIOBJS="\$(PM_GUIOBJS)"
8950 GUIHEADERS="\$(PM_HEADERS)"
8951 COMMONOBJS="\$(PM_COMMONOBJS)"
8952 GENERICOBJS="\$(PM_GENERICOBJS)"
8953 GUIDEPS="\$(PM_GUIDEPS)"
8954 COMMONDEPS="\$(PM_COMMONDEPS)"
8955 GENERICDEPS="\$(PM_GENERICDEPS)"
8956 UNIXOBJS=
8957 UNIXDEPS=
8958 GUIDIST=GTK_DIST
8959fi
8960
8961if test "$TOOLKIT" != "PM" ; then
ec14dd32 8962 TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
e07802fc
VZ
8963else
8964 TOOLKIT_DIR="os2"
8965fi
10f2d63a 8966
f6bcfd97
BP
8967 if test "$wxUSE_DEBUG_FLAG" = "yes"; then
8968 TOOLKIT_NAME="${TOOLKIT_DIR}d"
8969 else
8970 TOOLKIT_NAME="${TOOLKIT_DIR}"
8971 fi
8972
2224580a 8973 TOOLKIT_DEF="-D__WX${TOOLKIT}__"
10f2d63a 8974
f6bcfd97 8975 WX_LIBRARY="wx_${TOOLKIT_NAME}"
10f2d63a 8976
bdad4e7e 8977 ALL_OBJECTS="\$(GUIOBJS) \$(COMMONOBJS) \$(GENERICOBJS) \$(UNIXOBJS) \$(HTMLOBJS) \$(OGLOBJS)"
3fcdd07b 8978
b089607b 8979 if test "$TOOLKIT" != "MSW"; then
cc977e5f
RR
8980 if test "$wxUSE_ODBC" = "yes" ; then
8981 ALL_OBJECTS="${ALL_OBJECTS} \$(IODBCOBJS)"
8982 fi
3fcdd07b
VZ
8983 fi
8984
d9d8273d 8985 if test "$wxUSE_LIBJPEG" = "yes" ; then
2224580a 8986 ALL_OBJECTS="${ALL_OBJECTS} \$(JPEGOBJS)"
d9d8273d
RR
8987 fi
8988 if test "$wxUSE_LIBTIFF" = "yes" ; then
8989 ALL_OBJECTS="${ALL_OBJECTS} \$(TIFFOBJS)"
8990 fi
8991 if test "$wxUSE_LIBPNG" = "yes" ; then
8992 ALL_OBJECTS="${ALL_OBJECTS} \$(PNGOBJS)"
8993 fi
8994 if test "$wxUSE_ZLIB" = "yes" ; then
8995 ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)"
8996 fi
3fed1840
RR
8997 if test "$wxUSE_FREETYPE" = "yes" ; then
8998 ALL_OBJECTS="${ALL_OBJECTS} \$(FREETYPEOBJS)"
8999 fi
bdad4e7e 9000 ALL_DEPFILES="\$(GUIDEPS) \$(COMMONDEPS) \$(GENERICDEPS) \$(UNIXDEPS) \$(HTMLDEPS) \$(OGLDEPS)"
2224580a
VZ
9001
9002 PORT_FILES="src/\$(TOOLKITDIR)/files.lst"
9003 RPM_FILES="src/\$(TOOLKITDIR)/rpmfiles.lst"
9004 RPM_SPEC="wx\$(TOOLKIT).spec"
9005
9006 GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
9007 DISTDIR="wx\$(TOOLKIT)"
10f2d63a 9008else
dad6c0ea
VZ
9009 USE_GUI=0
9010
f6bcfd97
BP
9011 TOOLKIT_DIR="base"
9012
9013 if test "$wxUSE_DEBUG_FLAG" = "yes"; then
9014 TOOLKIT_NAME="${TOOLKIT_DIR}d"
9015 else
9016 TOOLKIT_NAME="${TOOLKIT_DIR}"
9017 fi
9018
07eb77a6
RL
9019 TOOLKIT_DEF="-D__WXBASE__"
9020
2224580a
VZ
9021 ALL_OBJECTS="\$(BASE_OBJS) \${BASE_UNIX_OBJS}"
9022 ALL_DEPFILES="\${BASE_DEPS} \${BASE_UNIX_DEPS}"
10f2d63a 9023
a20b6d3a
VZ
9024 if test "$wxUSE_ZLIB" = "yes" ; then
9025 ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)"
9026 fi
9027
f6bcfd97 9028 WX_LIBRARY="wx_${TOOLKIT_NAME}"
2224580a
VZ
9029
9030 PORT_FILES="src/files.lst"
9031 RPM_FILES="src/rpmfiles.lst"
9032 RPM_SPEC="wxBase.spec"
9033
9034 GUIDIST="BASE_DIST"
9035 DISTDIR="wxBase"
10f2d63a
VZ
9036fi
9037
9038WX_LIBRARY_NAME="lib${WX_LIBRARY}.la"
bdad4e7e 9039WX_LIBRARY_NAME_GL="lib${WX_LIBRARY}_gl.la"
10f2d63a
VZ
9040
9041WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a"
bdad4e7e 9042WX_LIBRARY_NAME_STATIC_GL="lib${WX_LIBRARY}_gl.a"
10f2d63a
VZ
9043
9044WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}-${WX_RELEASE}.so.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
bdad4e7e 9045WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.so.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
10f2d63a
VZ
9046
9047WX_LIBRARY_LINK1="lib${WX_LIBRARY}-${WX_RELEASE}.so.${WX_CURRENT}"
9048WX_LIBRARY_LINK2="lib${WX_LIBRARY}-${WX_RELEASE}.so"
9049WX_LIBRARY_LINK3="lib${WX_LIBRARY}.so"
bdad4e7e
RR
9050WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.so.${WX_CURRENT}"
9051WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.so"
9052WX_LIBRARY_LINK3_GL="lib${WX_LIBRARY}_gl.so"
10f2d63a
VZ
9053
9054SHARED_LD=
9055PIC_FLAG=
9056WX_ALL=
9057WX_ALL_INSTALLED=
1d62a8b4 9058BURNT_LIBRARY_NAME=
f6bcfd97 9059WX_TARGET_LIBRARY_SONAME=
10f2d63a 9060
b12915c1 9061
10f2d63a
VZ
9062if test "$wxUSE_SHARED" = "yes"; then
9063 case "${host}" in
9064 *-hp-hpux* )
9065 if test "$GCC" = yes ; then
69ffe1d2 9066 SHARED_LD="${CC} -shared -fPIC -o"
10f2d63a
VZ
9067 PIC_FLAG="-fPIC"
9068 else
f6bcfd97
BP
9069 LDFLAGS="-L/usr/lib"
9070
10f2d63a
VZ
9071 SHARED_LD="${CXX} -b -o"
9072 PIC_FLAG="+Z"
9073 fi
f6bcfd97
BP
9074 WX_LIBRARY_NAME_SHARED="libwx_${TOOLKIT_NAME}.sl"
9075 WX_LIBRARY_NAME_SHARED_GL="libwx_${TOOLKIT_NAME}_gl.sl"
c661ecca 9076 if test "$wxUSE_OPENGL" = "yes"; then
f6bcfd97 9077 WX_ALL_INSTALLED="preinstall_gl"
c661ecca
RR
9078 WX_ALL="${WX_LIBRARY_NAME_SHARED} ${WX_LIBRARY_NAME_SHARED_GL}"
9079 else
9080 WX_ALL="${WX_LIBRARY_NAME_SHARED}"
9081 fi
10f2d63a 9082 ;;
b12915c1
VZ
9083
9084 *-*-linux* )
10f2d63a
VZ
9085 SHARED_LD="${CC} -shared -o"
9086 PIC_FLAG="-fPIC"
00cf1208 9087 if test "$wxUSE_BURNT_NAME" = "yes" ; then
05cdfc6f 9088 BURNT_LIBRARY_NAME="-Wl,-soname,${WX_LIBRARY_LINK1}"
bdad4e7e 9089 BURNT_LIBRARY_NAME_GL="-Wl,-soname,${WX_LIBRARY_LINK1_GL}"
f6bcfd97 9090 WX_TARGET_LIBRARY_SONAME="-Wl,-soname,\$(TARGETLIB_LINK1)"
00cf1208 9091 fi
c661ecca
RR
9092 if test "$wxUSE_OPENGL" = "yes"; then
9093 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
9094 WX_ALL="CREATE_LINKS CREATE_LINKS_GL"
9095 else
9096 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
9097 WX_ALL="CREATE_LINKS"
422107f9 9098 fi
00cf1208 9099 ;;
10f2d63a
VZ
9100 *-*-irix5* | *-*-irix6* )
9101 if test "$GCC" = yes ; then
9102 SHARED_LD="${CC} -shared -o"
9103 PIC_FLAG="-fPIC"
9104 else
9105 SHARED_LD="${CXX} -shared -o"
9106 fi
c661ecca
RR
9107 if test "$wxUSE_OPENGL" = "yes"; then
9108 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
9109 WX_ALL="CREATE_LINKS CREATE_LINKS_GL"
9110 else
9111 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
9112 WX_ALL="CREATE_LINKS"
422107f9 9113 fi
10f2d63a
VZ
9114 ;;
9115 *-*-solaris2* )
9116 if test "$GCC" = yes ; then
9117 SHARED_LD="${CC} -shared -o"
9118 PIC_FLAG="-fPIC"
f6bcfd97
BP
9119
9120 CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include"
10f2d63a
VZ
9121 else
9122 SHARED_LD="${CXX} -G -o"
9123 PIC_FLAG="-KPIC"
9124 fi
c661ecca
RR
9125 if test "$wxUSE_OPENGL" = "yes"; then
9126 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
9127 WX_ALL="CREATE_LINKS CREATE_LINKS_GL"
9128 else
9129 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
9130 WX_ALL="CREATE_LINKS"
9131 fi
10f2d63a
VZ
9132 ;;
9133 *-*-sunos4* )
9134 SHARED_LD="${CC} -shared -o"
9135 PIC_FLAG="-fPIC"
9136 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
9137 WX_ALL="CREATE_LINKS"
9138 ;;
9139 *-*-freebsd* | *-*-netbsd*)
9140 SHARED_LD="${CC} -shared -o"
9141 PIC_FLAG="-fPIC"
37d403aa
JS
9142 if test "$wxUSE_OPENGL" = "yes"; then
9143 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
9144 WX_ALL="CREATE_LINKS CREATE_LINKS_GL"
9145 else
9146 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
9147 WX_ALL="CREATE_LINKS"
9148 fi
10f2d63a
VZ
9149 ;;
9150 *-*-osf* )
9151 SHARED_LD="${CXX} -shared -o"
9152 PIC_FLAG="-fPIC"
9153 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
9154 WX_ALL="CREATE_LINKS"
9155 ;;
9156 *-*-dgux5* )
9157 SHARED_LD="${CXX} -shared -o"
9158 PIC_FLAG="-fPIC"
9159 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
9160 WX_ALL="CREATE_LINKS"
9161 ;;
9162 *-*-sysv5* )
9163 SHARED_LD="${CC} -shared -o"
9164 PIC_FLAG="-fPIC"
9165 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
9166 WX_ALL="CREATE_LINKS"
9167 ;;
9168 *-*-aix* )
9169 SHARED_LD="/usr/lpp/xlC/bin/makeC++SharedLib -p 0 -o"
9170 WX_ALL=${WX_LIBRARY_NAME_SHARED}
9171 ;;
9172 *-*-cygwin32* )
9173 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
bdad4e7e 9174 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}"
f6bcfd97
BP
9175 if test "$wxUSE_OPENGL" = "yes"; then
9176 WX_ALL_INSTALLED="preinstall_gl"
9177 WX_ALL="${WX_LIBRARY_NAME_STATIC} ${WX_LIBRARY_NAME_STATIC_GL}"
9178 else
9179 WX_ALL="${WX_LIBRARY_NAME_STATIC}"
9180 fi
10f2d63a 9181 ;;
b12915c1 9182 *-*-mingw32* )
10f2d63a 9183 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
bdad4e7e 9184 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}"
f6bcfd97
BP
9185 if test "$wxUSE_OPENGL" = "yes"; then
9186 WX_ALL_INSTALLED="preinstall_gl"
9187 WX_ALL="${WX_LIBRARY_NAME_STATIC} ${WX_LIBRARY_NAME_STATIC_GL}"
9188 else
9189 WX_ALL="${WX_LIBRARY_NAME_STATIC}"
9190 fi
10f2d63a
VZ
9191 ;;
9192 *-pc-os2_emx )
e07802fc
VZ
9193 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
9194 WX_ALL="${WX_LIBRARY_NAME_STATIC}"
10f2d63a 9195 ;;
b12915c1 9196 *-*-beos* )
e2b8b066 9197 SHARED_LD="${LD} -shared -o"
b12915c1
VZ
9198 PIC_FLAG="-fPIC"
9199 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
9200 WX_ALL="CREATE_LINKS"
9201 ;;
10f2d63a
VZ
9202 *)
9203 { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; }
9204 esac
9205
9206 if test "x$WX_TARGET_LIBRARY" = "x"; then
9207 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}"
bdad4e7e 9208 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_SHARED_GL}"
10f2d63a 9209 fi
3711412e 9210 WX_TARGET_LIBRARY_TYPE="so"
10f2d63a
VZ
9211else
9212 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
bdad4e7e 9213 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}"
f6bcfd97
BP
9214
9215 if test "$wxUSE_OPENGL" = "yes"; then
9216 WX_ALL_INSTALLED="preinstall_gl"
9217 WX_ALL="${WX_LIBRARY_NAME_STATIC} ${WX_LIBRARY_NAME_STATIC_GL}"
9218 else
9219 WX_ALL="${WX_LIBRARY_NAME_STATIC}"
9220 fi
9221
9222 if test "$wxUSE_GUI" = "no"; then
9223 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
9224 fi
9225
3711412e 9226 WX_TARGET_LIBRARY_TYPE="a"
10f2d63a
VZ
9227fi
9228
9229
9230for ac_hdr in strings.h
9231do
9232ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9233echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3fed1840 9234echo "configure:9235: checking for $ac_hdr" >&5
10f2d63a
VZ
9235if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9236 echo $ac_n "(cached) $ac_c" 1>&6
9237else
9238 cat > conftest.$ac_ext <<EOF
3fed1840 9239#line 9240 "configure"
10f2d63a
VZ
9240#include "confdefs.h"
9241#include <$ac_hdr>
9242EOF
9243ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3fed1840 9244{ (eval echo configure:9245: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
9245ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9246if test -z "$ac_err"; then
9247 rm -rf conftest*
9248 eval "ac_cv_header_$ac_safe=yes"
9249else
9250 echo "$ac_err" >&5
9251 echo "configure: failed program was:" >&5
9252 cat conftest.$ac_ext >&5
9253 rm -rf conftest*
9254 eval "ac_cv_header_$ac_safe=no"
9255fi
9256rm -f conftest*
9257fi
9258if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9259 echo "$ac_t""yes" 1>&6
9260 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9261 cat >> confdefs.h <<EOF
9262#define $ac_tr_hdr 1
9263EOF
9264
9265else
9266 echo "$ac_t""no" 1>&6
9267fi
9268done
9269
9270for ac_hdr in unistd.h
9271do
9272ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9273echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3fed1840 9274echo "configure:9275: checking for $ac_hdr" >&5
10f2d63a
VZ
9275if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9276 echo $ac_n "(cached) $ac_c" 1>&6
9277else
9278 cat > conftest.$ac_ext <<EOF
3fed1840 9279#line 9280 "configure"
10f2d63a
VZ
9280#include "confdefs.h"
9281#include <$ac_hdr>
9282EOF
9283ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3fed1840 9284{ (eval echo configure:9285: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
9285ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9286if test -z "$ac_err"; then
9287 rm -rf conftest*
9288 eval "ac_cv_header_$ac_safe=yes"
9289else
9290 echo "$ac_err" >&5
9291 echo "configure: failed program was:" >&5
9292 cat conftest.$ac_ext >&5
9293 rm -rf conftest*
9294 eval "ac_cv_header_$ac_safe=no"
9295fi
9296rm -f conftest*
9297fi
9298if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9299 echo "$ac_t""yes" 1>&6
9300 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9301 cat >> confdefs.h <<EOF
9302#define $ac_tr_hdr 1
9303EOF
9304
9305else
9306 echo "$ac_t""no" 1>&6
9307fi
9308done
9309
0fb0dd83 9310for ac_hdr in fcntl.h
10f2d63a
VZ
9311do
9312ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9313echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3fed1840 9314echo "configure:9315: checking for $ac_hdr" >&5
10f2d63a
VZ
9315if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9316 echo $ac_n "(cached) $ac_c" 1>&6
9317else
9318 cat > conftest.$ac_ext <<EOF
3fed1840 9319#line 9320 "configure"
10f2d63a
VZ
9320#include "confdefs.h"
9321#include <$ac_hdr>
9322EOF
9323ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3fed1840 9324{ (eval echo configure:9325: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
9325ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9326if test -z "$ac_err"; then
9327 rm -rf conftest*
9328 eval "ac_cv_header_$ac_safe=yes"
9329else
9330 echo "$ac_err" >&5
9331 echo "configure: failed program was:" >&5
9332 cat conftest.$ac_ext >&5
9333 rm -rf conftest*
9334 eval "ac_cv_header_$ac_safe=no"
9335fi
9336rm -f conftest*
9337fi
9338if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9339 echo "$ac_t""yes" 1>&6
9340 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9341 cat >> confdefs.h <<EOF
9342#define $ac_tr_hdr 1
9343EOF
9344
9345else
9346 echo "$ac_t""no" 1>&6
9347fi
9348done
9349
0fb0dd83 9350for ac_hdr in wchar.h
10f2d63a
VZ
9351do
9352ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9353echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3fed1840 9354echo "configure:9355: checking for $ac_hdr" >&5
10f2d63a
VZ
9355if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9356 echo $ac_n "(cached) $ac_c" 1>&6
9357else
9358 cat > conftest.$ac_ext <<EOF
3fed1840 9359#line 9360 "configure"
10f2d63a
VZ
9360#include "confdefs.h"
9361#include <$ac_hdr>
9362EOF
9363ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3fed1840 9364{ (eval echo configure:9365: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
9365ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9366if test -z "$ac_err"; then
9367 rm -rf conftest*
9368 eval "ac_cv_header_$ac_safe=yes"
9369else
9370 echo "$ac_err" >&5
9371 echo "configure: failed program was:" >&5
9372 cat conftest.$ac_ext >&5
9373 rm -rf conftest*
9374 eval "ac_cv_header_$ac_safe=no"
9375fi
9376rm -f conftest*
9377fi
9378if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9379 echo "$ac_t""yes" 1>&6
9380 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9381 cat >> confdefs.h <<EOF
9382#define $ac_tr_hdr 1
9383EOF
9384
9385else
9386 echo "$ac_t""no" 1>&6
9387fi
9388done
9389
0fb0dd83 9390for ac_hdr in wcstr.h
10f2d63a
VZ
9391do
9392ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9393echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3fed1840 9394echo "configure:9395: checking for $ac_hdr" >&5
10f2d63a
VZ
9395if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9396 echo $ac_n "(cached) $ac_c" 1>&6
9397else
9398 cat > conftest.$ac_ext <<EOF
3fed1840 9399#line 9400 "configure"
10f2d63a
VZ
9400#include "confdefs.h"
9401#include <$ac_hdr>
9402EOF
9403ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3fed1840 9404{ (eval echo configure:9405: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6f72b082
OK
9405ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9406if test -z "$ac_err"; then
9407 rm -rf conftest*
9408 eval "ac_cv_header_$ac_safe=yes"
9409else
9410 echo "$ac_err" >&5
9411 echo "configure: failed program was:" >&5
9412 cat conftest.$ac_ext >&5
9413 rm -rf conftest*
9414 eval "ac_cv_header_$ac_safe=no"
9415fi
9416rm -f conftest*
9417fi
9418if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9419 echo "$ac_t""yes" 1>&6
9420 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9421 cat >> confdefs.h <<EOF
9422#define $ac_tr_hdr 1
9423EOF
9424
9425else
9426 echo "$ac_t""no" 1>&6
9427fi
9428done
9429
0fb0dd83 9430for ac_hdr in fnmatch.h
6f72b082
OK
9431do
9432ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9433echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3fed1840 9434echo "configure:9435: checking for $ac_hdr" >&5
6f72b082
OK
9435if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9436 echo $ac_n "(cached) $ac_c" 1>&6
9437else
9438 cat > conftest.$ac_ext <<EOF
3fed1840 9439#line 9440 "configure"
6f72b082
OK
9440#include "confdefs.h"
9441#include <$ac_hdr>
9442EOF
9443ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3fed1840 9444{ (eval echo configure:9445: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6f72b082
OK
9445ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9446if test -z "$ac_err"; then
9447 rm -rf conftest*
9448 eval "ac_cv_header_$ac_safe=yes"
9449else
9450 echo "$ac_err" >&5
9451 echo "configure: failed program was:" >&5
9452 cat conftest.$ac_ext >&5
9453 rm -rf conftest*
9454 eval "ac_cv_header_$ac_safe=no"
9455fi
9456rm -f conftest*
9457fi
9458if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9459 echo "$ac_t""yes" 1>&6
9460 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9461 cat >> confdefs.h <<EOF
9462#define $ac_tr_hdr 1
9463EOF
9464
9465else
9466 echo "$ac_t""no" 1>&6
9467fi
9468done
9469
0fb0dd83 9470for ac_hdr in iconv.h
6f72b082
OK
9471do
9472ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9473echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3fed1840 9474echo "configure:9475: checking for $ac_hdr" >&5
6f72b082
OK
9475if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9476 echo $ac_n "(cached) $ac_c" 1>&6
9477else
9478 cat > conftest.$ac_ext <<EOF
3fed1840 9479#line 9480 "configure"
6f72b082
OK
9480#include "confdefs.h"
9481#include <$ac_hdr>
9482EOF
9483ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3fed1840 9484{ (eval echo configure:9485: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
9485ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9486if test -z "$ac_err"; then
9487 rm -rf conftest*
9488 eval "ac_cv_header_$ac_safe=yes"
9489else
9490 echo "$ac_err" >&5
9491 echo "configure: failed program was:" >&5
9492 cat conftest.$ac_ext >&5
9493 rm -rf conftest*
9494 eval "ac_cv_header_$ac_safe=no"
9495fi
9496rm -f conftest*
9497fi
9498if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9499 echo "$ac_t""yes" 1>&6
9500 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9501 cat >> confdefs.h <<EOF
9502#define $ac_tr_hdr 1
9503EOF
9504
9505else
9506 echo "$ac_t""no" 1>&6
9507fi
9508done
9509
0fb0dd83
RR
9510for ac_hdr in langinfo.h
9511do
9512ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9513echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3fed1840 9514echo "configure:9515: checking for $ac_hdr" >&5
0fb0dd83
RR
9515if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9516 echo $ac_n "(cached) $ac_c" 1>&6
9517else
9518 cat > conftest.$ac_ext <<EOF
3fed1840 9519#line 9520 "configure"
0fb0dd83
RR
9520#include "confdefs.h"
9521#include <$ac_hdr>
9522EOF
9523ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3fed1840 9524{ (eval echo configure:9525: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
0fb0dd83
RR
9525ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9526if test -z "$ac_err"; then
9527 rm -rf conftest*
9528 eval "ac_cv_header_$ac_safe=yes"
9529else
9530 echo "$ac_err" >&5
9531 echo "configure: failed program was:" >&5
9532 cat conftest.$ac_ext >&5
9533 rm -rf conftest*
9534 eval "ac_cv_header_$ac_safe=no"
9535fi
9536rm -f conftest*
9537fi
9538if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9539 echo "$ac_t""yes" 1>&6
9540 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9541 cat >> confdefs.h <<EOF
9542#define $ac_tr_hdr 1
9543EOF
9544
9545else
9546 echo "$ac_t""no" 1>&6
9547fi
9548done
9549
10f2d63a 9550
73fd4a60
VZ
9551if test "$wxUSE_GUI" = "yes"; then
9552 if test "$wxUSE_UNIX" = "yes"; then
9553 for ac_hdr in X11/XKBlib.h
10f2d63a
VZ
9554do
9555ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9556echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3fed1840 9557echo "configure:9558: checking for $ac_hdr" >&5
10f2d63a
VZ
9558if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9559 echo $ac_n "(cached) $ac_c" 1>&6
9560else
9561 cat > conftest.$ac_ext <<EOF
3fed1840 9562#line 9563 "configure"
10f2d63a
VZ
9563#include "confdefs.h"
9564#include <$ac_hdr>
9565EOF
9566ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3fed1840 9567{ (eval echo configure:9568: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
9568ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9569if test -z "$ac_err"; then
9570 rm -rf conftest*
9571 eval "ac_cv_header_$ac_safe=yes"
9572else
9573 echo "$ac_err" >&5
9574 echo "configure: failed program was:" >&5
9575 cat conftest.$ac_ext >&5
9576 rm -rf conftest*
9577 eval "ac_cv_header_$ac_safe=no"
9578fi
9579rm -f conftest*
9580fi
9581if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9582 echo "$ac_t""yes" 1>&6
9583 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9584 cat >> confdefs.h <<EOF
9585#define $ac_tr_hdr 1
9586EOF
9587
9588else
9589 echo "$ac_t""no" 1>&6
9590fi
9591done
9592
73fd4a60 9593 fi
10f2d63a
VZ
9594fi
9595
9596
9597echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
3fed1840 9598echo "configure:9599: checking for ANSI C header files" >&5
10f2d63a
VZ
9599if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
9600 echo $ac_n "(cached) $ac_c" 1>&6
9601else
9602 cat > conftest.$ac_ext <<EOF
3fed1840 9603#line 9604 "configure"
10f2d63a
VZ
9604#include "confdefs.h"
9605#include <stdlib.h>
9606#include <stdarg.h>
9607#include <string.h>
9608#include <float.h>
9609EOF
9610ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3fed1840 9611{ (eval echo configure:9612: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
9612ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9613if test -z "$ac_err"; then
9614 rm -rf conftest*
9615 ac_cv_header_stdc=yes
9616else
9617 echo "$ac_err" >&5
9618 echo "configure: failed program was:" >&5
9619 cat conftest.$ac_ext >&5
9620 rm -rf conftest*
9621 ac_cv_header_stdc=no
9622fi
9623rm -f conftest*
9624
9625if test $ac_cv_header_stdc = yes; then
9626 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9627cat > conftest.$ac_ext <<EOF
3fed1840 9628#line 9629 "configure"
10f2d63a
VZ
9629#include "confdefs.h"
9630#include <string.h>
9631EOF
9632if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9633 egrep "memchr" >/dev/null 2>&1; then
9634 :
9635else
9636 rm -rf conftest*
9637 ac_cv_header_stdc=no
9638fi
9639rm -f conftest*
9640
9641fi
9642
9643if test $ac_cv_header_stdc = yes; then
9644 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9645cat > conftest.$ac_ext <<EOF
3fed1840 9646#line 9647 "configure"
10f2d63a
VZ
9647#include "confdefs.h"
9648#include <stdlib.h>
9649EOF
9650if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9651 egrep "free" >/dev/null 2>&1; then
9652 :
9653else
9654 rm -rf conftest*
9655 ac_cv_header_stdc=no
9656fi
9657rm -f conftest*
9658
9659fi
9660
9661if test $ac_cv_header_stdc = yes; then
9662 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9663if test "$cross_compiling" = yes; then
9664 :
9665else
9666 cat > conftest.$ac_ext <<EOF
3fed1840 9667#line 9668 "configure"
10f2d63a
VZ
9668#include "confdefs.h"
9669#include <ctype.h>
9670#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9671#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9672#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9673int main () { int i; for (i = 0; i < 256; i++)
9674if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
9675exit (0); }
9676
9677EOF
3fed1840 9678if { (eval echo configure:9679: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10f2d63a
VZ
9679then
9680 :
9681else
9682 echo "configure: failed program was:" >&5
9683 cat conftest.$ac_ext >&5
9684 rm -fr conftest*
9685 ac_cv_header_stdc=no
9686fi
9687rm -fr conftest*
9688fi
9689
9690fi
9691fi
9692
9693echo "$ac_t""$ac_cv_header_stdc" 1>&6
9694if test $ac_cv_header_stdc = yes; then
9695 cat >> confdefs.h <<\EOF
9696#define STDC_HEADERS 1
9697EOF
9698
9699fi
9700
9701echo $ac_n "checking for mode_t""... $ac_c" 1>&6
3fed1840 9702echo "configure:9703: checking for mode_t" >&5
10f2d63a
VZ
9703if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
9704 echo $ac_n "(cached) $ac_c" 1>&6
9705else
9706 cat > conftest.$ac_ext <<EOF
3fed1840 9707#line 9708 "configure"
10f2d63a
VZ
9708#include "confdefs.h"
9709#include <sys/types.h>
9710#if STDC_HEADERS
9711#include <stdlib.h>
9712#include <stddef.h>
9713#endif
9714EOF
9715if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9716 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
9717 rm -rf conftest*
9718 ac_cv_type_mode_t=yes
9719else
9720 rm -rf conftest*
9721 ac_cv_type_mode_t=no
9722fi
9723rm -f conftest*
9724
9725fi
9726echo "$ac_t""$ac_cv_type_mode_t" 1>&6
9727if test $ac_cv_type_mode_t = no; then
9728 cat >> confdefs.h <<\EOF
9729#define mode_t int
9730EOF
9731
9732fi
9733
9734echo $ac_n "checking for off_t""... $ac_c" 1>&6
3fed1840 9735echo "configure:9736: checking for off_t" >&5
10f2d63a
VZ
9736if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
9737 echo $ac_n "(cached) $ac_c" 1>&6
9738else
9739 cat > conftest.$ac_ext <<EOF
3fed1840 9740#line 9741 "configure"
10f2d63a
VZ
9741#include "confdefs.h"
9742#include <sys/types.h>
9743#if STDC_HEADERS
9744#include <stdlib.h>
9745#include <stddef.h>
9746#endif
9747EOF
9748if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9749 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
9750 rm -rf conftest*
9751 ac_cv_type_off_t=yes
9752else
9753 rm -rf conftest*
9754 ac_cv_type_off_t=no
9755fi
9756rm -f conftest*
9757
9758fi
9759echo "$ac_t""$ac_cv_type_off_t" 1>&6
9760if test $ac_cv_type_off_t = no; then
9761 cat >> confdefs.h <<\EOF
9762#define off_t long
9763EOF
9764
9765fi
9766
9767echo $ac_n "checking for pid_t""... $ac_c" 1>&6
3fed1840 9768echo "configure:9769: checking for pid_t" >&5
10f2d63a
VZ
9769if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
9770 echo $ac_n "(cached) $ac_c" 1>&6
9771else
9772 cat > conftest.$ac_ext <<EOF
3fed1840 9773#line 9774 "configure"
10f2d63a
VZ
9774#include "confdefs.h"
9775#include <sys/types.h>
9776#if STDC_HEADERS
9777#include <stdlib.h>
9778#include <stddef.h>
9779#endif
9780EOF
9781if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9782 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
9783 rm -rf conftest*
9784 ac_cv_type_pid_t=yes
9785else
9786 rm -rf conftest*
9787 ac_cv_type_pid_t=no
9788fi
9789rm -f conftest*
9790
9791fi
9792echo "$ac_t""$ac_cv_type_pid_t" 1>&6
9793if test $ac_cv_type_pid_t = no; then
9794 cat >> confdefs.h <<\EOF
9795#define pid_t int
9796EOF
9797
9798fi
9799
9800echo $ac_n "checking for size_t""... $ac_c" 1>&6
3fed1840 9801echo "configure:9802: checking for size_t" >&5
10f2d63a
VZ
9802if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
9803 echo $ac_n "(cached) $ac_c" 1>&6
9804else
9805 cat > conftest.$ac_ext <<EOF
3fed1840 9806#line 9807 "configure"
10f2d63a
VZ
9807#include "confdefs.h"
9808#include <sys/types.h>
9809#if STDC_HEADERS
9810#include <stdlib.h>
9811#include <stddef.h>
9812#endif
9813EOF
9814if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9815 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
9816 rm -rf conftest*
9817 ac_cv_type_size_t=yes
9818else
9819 rm -rf conftest*
9820 ac_cv_type_size_t=no
9821fi
9822rm -f conftest*
9823
9824fi
9825echo "$ac_t""$ac_cv_type_size_t" 1>&6
9826if test $ac_cv_type_size_t = no; then
9827 cat >> confdefs.h <<\EOF
9828#define size_t unsigned
9829EOF
9830
9831fi
9832
9833echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
3fed1840 9834echo "configure:9835: checking for uid_t in sys/types.h" >&5
10f2d63a
VZ
9835if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
9836 echo $ac_n "(cached) $ac_c" 1>&6
9837else
9838 cat > conftest.$ac_ext <<EOF
3fed1840 9839#line 9840 "configure"
10f2d63a
VZ
9840#include "confdefs.h"
9841#include <sys/types.h>
9842EOF
9843if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9844 egrep "uid_t" >/dev/null 2>&1; then
9845 rm -rf conftest*
9846 ac_cv_type_uid_t=yes
9847else
9848 rm -rf conftest*
9849 ac_cv_type_uid_t=no
9850fi
9851rm -f conftest*
9852
9853fi
9854
9855echo "$ac_t""$ac_cv_type_uid_t" 1>&6
9856if test $ac_cv_type_uid_t = no; then
9857 cat >> confdefs.h <<\EOF
9858#define uid_t int
9859EOF
9860
9861 cat >> confdefs.h <<\EOF
9862#define gid_t int
9863EOF
9864
9865fi
9866
9867
9868
b12915c1 9869echo $ac_n "checking for pw_gecos in struct passwd""... $ac_c" 1>&6
3fed1840 9870echo "configure:9871: checking for pw_gecos in struct passwd" >&5
b12915c1
VZ
9871if eval "test \"`echo '$''{'wx_cv_struct_pw_gecos'+set}'`\" = set"; then
9872 echo $ac_n "(cached) $ac_c" 1>&6
9873else
9874
9875 cat > conftest.$ac_ext <<EOF
3fed1840 9876#line 9877 "configure"
b12915c1
VZ
9877#include "confdefs.h"
9878#include <pwd.h>
9879int main() {
9880
9881 char *p;
9882 struct passwd *pw;
9883 p = pw->pw_gecos;
9884
9885; return 0; }
9886EOF
3fed1840 9887if { (eval echo configure:9888: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
b12915c1
VZ
9888 rm -rf conftest*
9889
9890 wx_cv_struct_pw_gecos=yes
b12915c1
VZ
9891
9892else
9893 echo "configure: failed program was:" >&5
9894 cat conftest.$ac_ext >&5
9895 rm -rf conftest*
9896
9897 wx_cv_struct_pw_gecos=no
9898
9899
9900fi
9901rm -f conftest*
9902
9903
9904fi
9905
9906echo "$ac_t""$wx_cv_struct_pw_gecos" 1>&6
9907
bd3277fe
VZ
9908if test "$wx_cv_struct_pw_gecos" = "yes"; then
9909 cat >> confdefs.h <<\EOF
9910#define HAVE_PW_GECOS 1
9911EOF
9912
9913fi
9914
10f2d63a
VZ
9915
9916echo $ac_n "checking for working const""... $ac_c" 1>&6
3fed1840 9917echo "configure:9918: checking for working const" >&5
10f2d63a
VZ
9918if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
9919 echo $ac_n "(cached) $ac_c" 1>&6
9920else
9921 cat > conftest.$ac_ext <<EOF
3fed1840 9922#line 9923 "configure"
10f2d63a
VZ
9923#include "confdefs.h"
9924
9925int main() {
9926
9927/* Ultrix mips cc rejects this. */
37d403aa 9928typedef int charset[2]; const charset x;
10f2d63a
VZ
9929/* SunOS 4.1.1 cc rejects this. */
9930char const *const *ccp;
9931char **p;
9932/* NEC SVR4.0.2 mips cc rejects this. */
9933struct point {int x, y;};
9934static struct point const zero = {0,0};
9935/* AIX XL C 1.02.0.0 rejects this.
9936 It does not let you subtract one const X* pointer from another in an arm
9937 of an if-expression whose if-part is not a constant expression */
9938const char *g = "string";
9939ccp = &g + (g ? g-g : 0);
9940/* HPUX 7.0 cc rejects these. */
9941++ccp;
9942p = (char**) ccp;
9943ccp = (char const *const *) p;
9944{ /* SCO 3.2v4 cc rejects this. */
9945 char *t;
9946 char const *s = 0 ? (char *) 0 : (char const *) 0;
9947
9948 *t++ = 0;
9949}
9950{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
9951 int x[] = {25, 17};
9952 const int *foo = &x[0];
9953 ++foo;
9954}
9955{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9956 typedef const int *iptr;
9957 iptr p = 0;
9958 ++p;
9959}
9960{ /* AIX XL C 1.02.0.0 rejects this saying
9961 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9962 struct s { int j; const int *ap[3]; };
9963 struct s *b; b->j = 5;
9964}
9965{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9966 const int foo = 10;
9967}
9968
9969; return 0; }
9970EOF
3fed1840 9971if { (eval echo configure:9972: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10f2d63a
VZ
9972 rm -rf conftest*
9973 ac_cv_c_const=yes
9974else
9975 echo "configure: failed program was:" >&5
9976 cat conftest.$ac_ext >&5
9977 rm -rf conftest*
9978 ac_cv_c_const=no
9979fi
9980rm -f conftest*
9981fi
9982
9983echo "$ac_t""$ac_cv_c_const" 1>&6
9984if test $ac_cv_c_const = no; then
9985 cat >> confdefs.h <<\EOF
9986#define const
9987EOF
9988
9989fi
9990
9991echo $ac_n "checking for inline""... $ac_c" 1>&6
3fed1840 9992echo "configure:9993: checking for inline" >&5
10f2d63a
VZ
9993if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
9994 echo $ac_n "(cached) $ac_c" 1>&6
9995else
9996 ac_cv_c_inline=no
9997for ac_kw in inline __inline__ __inline; do
9998 cat > conftest.$ac_ext <<EOF
3fed1840 9999#line 10000 "configure"
10f2d63a
VZ
10000#include "confdefs.h"
10001
10002int main() {
37d403aa 10003} $ac_kw foo() {
10f2d63a
VZ
10004; return 0; }
10005EOF
3fed1840 10006if { (eval echo configure:10007: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10f2d63a
VZ
10007 rm -rf conftest*
10008 ac_cv_c_inline=$ac_kw; break
10009else
10010 echo "configure: failed program was:" >&5
10011 cat conftest.$ac_ext >&5
10012fi
10013rm -f conftest*
10014done
10015
10016fi
10017
10018echo "$ac_t""$ac_cv_c_inline" 1>&6
10019case "$ac_cv_c_inline" in
10020 inline | yes) ;;
10021 no) cat >> confdefs.h <<\EOF
10022#define inline
10023EOF
10024 ;;
10025 *) cat >> confdefs.h <<EOF
10026#define inline $ac_cv_c_inline
10027EOF
10028 ;;
10029esac
10030
10031
10032echo $ac_n "checking size of char""... $ac_c" 1>&6
3fed1840 10033echo "configure:10034: checking size of char" >&5
10f2d63a
VZ
10034if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then
10035 echo $ac_n "(cached) $ac_c" 1>&6
10036else
10037 if test "$cross_compiling" = yes; then
10038 ac_cv_sizeof_char=1
10039else
10040 cat > conftest.$ac_ext <<EOF
3fed1840 10041#line 10042 "configure"
10f2d63a
VZ
10042#include "confdefs.h"
10043#include <stdio.h>
10044main()
10045{
10046 FILE *f=fopen("conftestval", "w");
10047 if (!f) exit(1);
10048 fprintf(f, "%d\n", sizeof(char));
10049 exit(0);
10050}
10051EOF
3fed1840 10052if { (eval echo configure:10053: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10f2d63a
VZ
10053then
10054 ac_cv_sizeof_char=`cat conftestval`
10055else
10056 echo "configure: failed program was:" >&5
10057 cat conftest.$ac_ext >&5
10058 rm -fr conftest*
10059 ac_cv_sizeof_char=0
10060fi
10061rm -fr conftest*
10062fi
10063
10064fi
10065echo "$ac_t""$ac_cv_sizeof_char" 1>&6
10066cat >> confdefs.h <<EOF
10067#define SIZEOF_CHAR $ac_cv_sizeof_char
10068EOF
10069
10070
6f72b082 10071echo $ac_n "checking size of wchar_t""... $ac_c" 1>&6
3fed1840 10072echo "configure:10073: checking size of wchar_t" >&5
6f72b082
OK
10073if eval "test \"`echo '$''{'ac_cv_sizeof_wchar_t'+set}'`\" = set"; then
10074 echo $ac_n "(cached) $ac_c" 1>&6
10075else
10076 if test "$cross_compiling" = yes; then
10077 ac_cv_sizeof_wchar_t=4
10078else
10079 cat > conftest.$ac_ext <<EOF
3fed1840 10080#line 10081 "configure"
6f72b082
OK
10081#include "confdefs.h"
10082#include <stdio.h>
10083main()
10084{
10085 FILE *f=fopen("conftestval", "w");
10086 if (!f) exit(1);
10087 fprintf(f, "%d\n", sizeof(wchar_t));
10088 exit(0);
10089}
10090EOF
3fed1840 10091if { (eval echo configure:10092: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6f72b082
OK
10092then
10093 ac_cv_sizeof_wchar_t=`cat conftestval`
10094else
10095 echo "configure: failed program was:" >&5
10096 cat conftest.$ac_ext >&5
10097 rm -fr conftest*
10098 ac_cv_sizeof_wchar_t=0
10099fi
10100rm -fr conftest*
10101fi
10102
10103fi
10104echo "$ac_t""$ac_cv_sizeof_wchar_t" 1>&6
10105cat >> confdefs.h <<EOF
10106#define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
10107EOF
10108
10109
10f2d63a 10110echo $ac_n "checking size of short""... $ac_c" 1>&6
3fed1840 10111echo "configure:10112: checking size of short" >&5
10f2d63a
VZ
10112if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
10113 echo $ac_n "(cached) $ac_c" 1>&6
10114else
10115 if test "$cross_compiling" = yes; then
10116 ac_cv_sizeof_short=2
10117else
10118 cat > conftest.$ac_ext <<EOF
3fed1840 10119#line 10120 "configure"
10f2d63a
VZ
10120#include "confdefs.h"
10121#include <stdio.h>
10122main()
10123{
10124 FILE *f=fopen("conftestval", "w");
10125 if (!f) exit(1);
10126 fprintf(f, "%d\n", sizeof(short));
10127 exit(0);
10128}
10129EOF
3fed1840 10130if { (eval echo configure:10131: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10f2d63a
VZ
10131then
10132 ac_cv_sizeof_short=`cat conftestval`
10133else
10134 echo "configure: failed program was:" >&5
10135 cat conftest.$ac_ext >&5
10136 rm -fr conftest*
10137 ac_cv_sizeof_short=0
10138fi
10139rm -fr conftest*
10140fi
10141
10142fi
10143echo "$ac_t""$ac_cv_sizeof_short" 1>&6
10144cat >> confdefs.h <<EOF
10145#define SIZEOF_SHORT $ac_cv_sizeof_short
10146EOF
10147
10148
10149echo $ac_n "checking size of int *""... $ac_c" 1>&6
3fed1840 10150echo "configure:10151: checking size of int *" >&5
10f2d63a
VZ
10151if eval "test \"`echo '$''{'ac_cv_sizeof_int_p'+set}'`\" = set"; then
10152 echo $ac_n "(cached) $ac_c" 1>&6
10153else
10154 if test "$cross_compiling" = yes; then
10155 ac_cv_sizeof_int_p=4
10156else
10157 cat > conftest.$ac_ext <<EOF
3fed1840 10158#line 10159 "configure"
10f2d63a
VZ
10159#include "confdefs.h"
10160#include <stdio.h>
10161main()
10162{
10163 FILE *f=fopen("conftestval", "w");
10164 if (!f) exit(1);
10165 fprintf(f, "%d\n", sizeof(int *));
10166 exit(0);
10167}
10168EOF
3fed1840 10169if { (eval echo configure:10170: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10f2d63a
VZ
10170then
10171 ac_cv_sizeof_int_p=`cat conftestval`
10172else
10173 echo "configure: failed program was:" >&5
10174 cat conftest.$ac_ext >&5
10175 rm -fr conftest*
10176 ac_cv_sizeof_int_p=0
10177fi
10178rm -fr conftest*
10179fi
10180
10181fi
10182echo "$ac_t""$ac_cv_sizeof_int_p" 1>&6
10183cat >> confdefs.h <<EOF
10184#define SIZEOF_INT_P $ac_cv_sizeof_int_p
10185EOF
10186
10187
10188echo $ac_n "checking size of int""... $ac_c" 1>&6
3fed1840 10189echo "configure:10190: checking size of int" >&5
10f2d63a
VZ
10190if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
10191 echo $ac_n "(cached) $ac_c" 1>&6
10192else
10193 if test "$cross_compiling" = yes; then
10194 ac_cv_sizeof_int=4
10195else
10196 cat > conftest.$ac_ext <<EOF
3fed1840 10197#line 10198 "configure"
10f2d63a
VZ
10198#include "confdefs.h"
10199#include <stdio.h>
10200main()
10201{
10202 FILE *f=fopen("conftestval", "w");
10203 if (!f) exit(1);
10204 fprintf(f, "%d\n", sizeof(int));
10205 exit(0);
10206}
10207EOF
3fed1840 10208if { (eval echo configure:10209: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10f2d63a
VZ
10209then
10210 ac_cv_sizeof_int=`cat conftestval`
10211else
10212 echo "configure: failed program was:" >&5
10213 cat conftest.$ac_ext >&5
10214 rm -fr conftest*
10215 ac_cv_sizeof_int=0
10216fi
10217rm -fr conftest*
10218fi
10219
10220fi
10221echo "$ac_t""$ac_cv_sizeof_int" 1>&6
10222cat >> confdefs.h <<EOF
10223#define SIZEOF_INT $ac_cv_sizeof_int
10224EOF
10225
10226
10227echo $ac_n "checking size of long""... $ac_c" 1>&6
3fed1840 10228echo "configure:10229: checking size of long" >&5
10f2d63a
VZ
10229if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
10230 echo $ac_n "(cached) $ac_c" 1>&6
10231else
10232 if test "$cross_compiling" = yes; then
10233 ac_cv_sizeof_long=4
10234else
10235 cat > conftest.$ac_ext <<EOF
3fed1840 10236#line 10237 "configure"
10f2d63a
VZ
10237#include "confdefs.h"
10238#include <stdio.h>
10239main()
10240{
10241 FILE *f=fopen("conftestval", "w");
10242 if (!f) exit(1);
10243 fprintf(f, "%d\n", sizeof(long));
10244 exit(0);
10245}
10246EOF
3fed1840 10247if { (eval echo configure:10248: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10f2d63a
VZ
10248then
10249 ac_cv_sizeof_long=`cat conftestval`
10250else
10251 echo "configure: failed program was:" >&5
10252 cat conftest.$ac_ext >&5
10253 rm -fr conftest*
10254 ac_cv_sizeof_long=0
10255fi
10256rm -fr conftest*
10257fi
10258
10259fi
10260echo "$ac_t""$ac_cv_sizeof_long" 1>&6
10261cat >> confdefs.h <<EOF
10262#define SIZEOF_LONG $ac_cv_sizeof_long
10263EOF
10264
10265
10266echo $ac_n "checking size of long long""... $ac_c" 1>&6
3fed1840 10267echo "configure:10268: checking size of long long" >&5
10f2d63a
VZ
10268if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
10269 echo $ac_n "(cached) $ac_c" 1>&6
10270else
10271 if test "$cross_compiling" = yes; then
10272 ac_cv_sizeof_long_long=0
10273else
10274 cat > conftest.$ac_ext <<EOF
3fed1840 10275#line 10276 "configure"
10f2d63a
VZ
10276#include "confdefs.h"
10277#include <stdio.h>
10278main()
10279{
10280 FILE *f=fopen("conftestval", "w");
10281 if (!f) exit(1);
10282 fprintf(f, "%d\n", sizeof(long long));
10283 exit(0);
10284}
10285EOF
3fed1840 10286if { (eval echo configure:10287: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10f2d63a
VZ
10287then
10288 ac_cv_sizeof_long_long=`cat conftestval`
10289else
10290 echo "configure: failed program was:" >&5
10291 cat conftest.$ac_ext >&5
10292 rm -fr conftest*
10293 ac_cv_sizeof_long_long=0
10294fi
10295rm -fr conftest*
10296fi
10297
10298fi
10299echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
10300cat >> confdefs.h <<EOF
10301#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
10302EOF
10303
10304
10305
10306echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
3fed1840 10307echo "configure:10308: checking whether byte ordering is bigendian" >&5
10f2d63a
VZ
10308if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
10309 echo $ac_n "(cached) $ac_c" 1>&6
10310else
10311 ac_cv_c_bigendian=unknown
10312# See if sys/param.h defines the BYTE_ORDER macro.
10313cat > conftest.$ac_ext <<EOF
3fed1840 10314#line 10315 "configure"
10f2d63a
VZ
10315#include "confdefs.h"
10316#include <sys/types.h>
10317#include <sys/param.h>
10318int main() {
10319
10320#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
10321 bogus endian macros
10322#endif
10323; return 0; }
10324EOF
3fed1840 10325if { (eval echo configure:10326: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10f2d63a
VZ
10326 rm -rf conftest*
10327 # It does; now see whether it defined to BIG_ENDIAN or not.
10328cat > conftest.$ac_ext <<EOF
3fed1840 10329#line 10330 "configure"
10f2d63a
VZ
10330#include "confdefs.h"
10331#include <sys/types.h>
10332#include <sys/param.h>
10333int main() {
10334
10335#if BYTE_ORDER != BIG_ENDIAN
10336 not big endian
10337#endif
10338; return 0; }
10339EOF
3fed1840 10340if { (eval echo configure:10341: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10f2d63a
VZ
10341 rm -rf conftest*
10342 ac_cv_c_bigendian=yes
10343else
10344 echo "configure: failed program was:" >&5
10345 cat conftest.$ac_ext >&5
10346 rm -rf conftest*
10347 ac_cv_c_bigendian=no
10348fi
10349rm -f conftest*
10350else
10351 echo "configure: failed program was:" >&5
10352 cat conftest.$ac_ext >&5
10353fi
10354rm -f conftest*
10355if test $ac_cv_c_bigendian = unknown; then
10356if test "$cross_compiling" = yes; then
10357 ac_cv_c_bigendian=unknown
10358else
10359 cat > conftest.$ac_ext <<EOF
3fed1840 10360#line 10361 "configure"
10f2d63a
VZ
10361#include "confdefs.h"
10362main () {
10363 /* Are we little or big endian? From Harbison&Steele. */
10364 union
10365 {
10366 long l;
10367 char c[sizeof (long)];
10368 } u;
10369 u.l = 1;
10370 exit (u.c[sizeof (long) - 1] == 1);
10371}
10372EOF
3fed1840 10373if { (eval echo configure:10374: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10f2d63a
VZ
10374then
10375 ac_cv_c_bigendian=no
10376else
10377 echo "configure: failed program was:" >&5
10378 cat conftest.$ac_ext >&5
10379 rm -fr conftest*
10380 ac_cv_c_bigendian=yes
10381fi
10382rm -fr conftest*
10383fi
10384
10385fi
10386fi
10387
10388echo "$ac_t""$ac_cv_c_bigendian" 1>&6
10389if test $ac_cv_c_bigendian = unknown; then
10390 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
10391fi
10392if test $ac_cv_c_bigendian = yes; then
10393 cat >> confdefs.h <<\EOF
10394#define WORDS_BIGENDIAN 1
10395EOF
10396
10397fi
10398
10399
10400
10401 if test "$cross_compiling" = "yes"; then
10402 cat >> confdefs.h <<\EOF
10403#define wxUSE_IOSTREAMH 1
10404EOF
10405
10406 else
10407
10408 ac_ext=C
10409# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10410ac_cpp='$CXXCPP $CPPFLAGS'
10411ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10412ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10413cross_compiling=$ac_cv_prog_cxx_cross
10414
10415
10416 for ac_hdr in iostream
10417do
10418ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10419echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3fed1840 10420echo "configure:10421: checking for $ac_hdr" >&5
10f2d63a
VZ
10421if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10422 echo $ac_n "(cached) $ac_c" 1>&6
10423else
10424 cat > conftest.$ac_ext <<EOF
3fed1840 10425#line 10426 "configure"
10f2d63a
VZ
10426#include "confdefs.h"
10427#include <$ac_hdr>
10428EOF
10429ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3fed1840 10430{ (eval echo configure:10431: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
10431ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10432if test -z "$ac_err"; then
10433 rm -rf conftest*
10434 eval "ac_cv_header_$ac_safe=yes"
10435else
10436 echo "$ac_err" >&5
10437 echo "configure: failed program was:" >&5
10438 cat conftest.$ac_ext >&5
10439 rm -rf conftest*
10440 eval "ac_cv_header_$ac_safe=no"
10441fi
10442rm -f conftest*
10443fi
10444if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10445 echo "$ac_t""yes" 1>&6
10446 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10447 cat >> confdefs.h <<EOF
10448#define $ac_tr_hdr 1
10449EOF
10450
10451else
10452 echo "$ac_t""no" 1>&6
10453fi
10454done
10455
10456
10457 if test "x$HAVE_IOSTREAM" = x ; then
10458 cat >> confdefs.h <<\EOF
10459#define wxUSE_IOSTREAMH 1
10460EOF
10461
10462 else
10463 :
10464 fi
10465
10466 ac_ext=c
10467# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10468ac_cpp='$CPP $CPPFLAGS'
10469ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10470ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10471cross_compiling=$ac_cv_prog_cc_cross
10472
10473 fi
10474
10475
10476
10477 echo $ac_n "checking if C++ compiler supports bool""... $ac_c" 1>&6
3fed1840 10478echo "configure:10479: checking if C++ compiler supports bool" >&5
10f2d63a
VZ
10479if eval "test \"`echo '$''{'wx_cv_cpp_bool'+set}'`\" = set"; then
10480 echo $ac_n "(cached) $ac_c" 1>&6
10481else
10482
10483
10484 ac_ext=C
10485# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10486ac_cpp='$CXXCPP $CPPFLAGS'
10487ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10488ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10489cross_compiling=$ac_cv_prog_cxx_cross
10490
10491
10492 cat > conftest.$ac_ext <<EOF
3fed1840 10493#line 10494 "configure"
10f2d63a
VZ
10494#include "confdefs.h"
10495
10496
10497int main() {
10498
10499 bool b = true;
10500
10501 return 0;
10502
10503; return 0; }
10504EOF
3fed1840 10505if { (eval echo configure:10506: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10f2d63a
VZ
10506 rm -rf conftest*
10507
10508 cat >> confdefs.h <<\EOF
10509#define HAVE_BOOL 1
10510EOF
10511
10512 wx_cv_cpp_bool=yes
10513
10514else
10515 echo "configure: failed program was:" >&5
10516 cat conftest.$ac_ext >&5
10517 rm -rf conftest*
10518
10519 wx_cv_cpp_bool=no
10520
10521
10522fi
10523rm -f conftest*
10524
10525 ac_ext=c
10526# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10527ac_cpp='$CPP $CPPFLAGS'
10528ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10529ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10530cross_compiling=$ac_cv_prog_cc_cross
10531
10532
10533fi
10534
10535echo "$ac_t""$wx_cv_cpp_bool" 1>&6
10536
10537 if test "$wx_cv_cpp_bool" = "yes"; then
10538 cat >> confdefs.h <<\EOF
10539#define HAVE_BOOL 1
10540EOF
10541
10542 fi
10543
10544
10545
10f2d63a 10546echo $ac_n "checking if you need GNU extensions""... $ac_c" 1>&6
3fed1840 10547echo "configure:10548: checking if you need GNU extensions" >&5
10f2d63a
VZ
10548if eval "test \"`echo '$''{'wx_cv_gnu_extensions'+set}'`\" = set"; then
10549 echo $ac_n "(cached) $ac_c" 1>&6
10550else
10551
10552 cat > conftest.$ac_ext <<EOF
3fed1840 10553#line 10554 "configure"
10f2d63a
VZ
10554#include "confdefs.h"
10555#include <features.h>
10556int main() {
10557
10558
10559#ifndef __GNU_LIBRARY__
10560 Compile error wanted
10561#endif
10562
10563
10564; return 0; }
10565EOF
3fed1840 10566if { (eval echo configure:10567: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10f2d63a
VZ
10567 rm -rf conftest*
10568 wx_cv_gnu_extensions=yes
10569else
10570 echo "configure: failed program was:" >&5
10571 cat conftest.$ac_ext >&5
10572 rm -rf conftest*
10573 wx_cv_gnu_extensions=no
10574fi
10575rm -f conftest*
10576
10577fi
10578
10579
10580echo "$ac_t""$wx_cv_gnu_extensions" 1>&6
10581if test "$wx_cv_gnu_extensions" = "yes"; then
10582 cat >> confdefs.h <<EOF
10583#define _GNU_SOURCE 1
10584EOF
10585
10586fi
10587
10588
10589
10590echo $ac_n "checking for wcslen in -lc""... $ac_c" 1>&6
3fed1840 10591echo "configure:10592: checking for wcslen in -lc" >&5
10f2d63a
VZ
10592ac_lib_var=`echo c'_'wcslen | sed 'y%./+-%__p_%'`
10593if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10594 echo $ac_n "(cached) $ac_c" 1>&6
10595else
10596 ac_save_LIBS="$LIBS"
10597LIBS="-lc $LIBS"
10598cat > conftest.$ac_ext <<EOF
3fed1840 10599#line 10600 "configure"
10f2d63a
VZ
10600#include "confdefs.h"
10601/* Override any gcc2 internal prototype to avoid an error. */
10602/* We use char because int might match the return type of a gcc2
10603 builtin and then its argument prototype would still apply. */
10604char wcslen();
10605
10606int main() {
10607wcslen()
10608; return 0; }
10609EOF
3fed1840 10610if { (eval echo configure:10611: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
10611 rm -rf conftest*
10612 eval "ac_cv_lib_$ac_lib_var=yes"
10613else
10614 echo "configure: failed program was:" >&5
10615 cat conftest.$ac_ext >&5
10616 rm -rf conftest*
10617 eval "ac_cv_lib_$ac_lib_var=no"
10618fi
10619rm -f conftest*
10620LIBS="$ac_save_LIBS"
10621
10622fi
10623if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10624 echo "$ac_t""yes" 1>&6
10625
10626 cat >> confdefs.h <<\EOF
10627#define HAVE_WCSLEN 1
10628EOF
10629
10630 WCHAR_LINK=""
10631
10632else
10633 echo "$ac_t""no" 1>&6
10634
10635 echo $ac_n "checking for wcslen in -lw""... $ac_c" 1>&6
3fed1840 10636echo "configure:10637: checking for wcslen in -lw" >&5
10f2d63a
VZ
10637ac_lib_var=`echo w'_'wcslen | sed 'y%./+-%__p_%'`
10638if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10639 echo $ac_n "(cached) $ac_c" 1>&6
10640else
10641 ac_save_LIBS="$LIBS"
10642LIBS="-lw $LIBS"
10643cat > conftest.$ac_ext <<EOF
3fed1840 10644#line 10645 "configure"
10f2d63a
VZ
10645#include "confdefs.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 wcslen();
10650
10651int main() {
10652wcslen()
10653; return 0; }
10654EOF
3fed1840 10655if { (eval echo configure:10656: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
10656 rm -rf conftest*
10657 eval "ac_cv_lib_$ac_lib_var=yes"
10658else
10659 echo "configure: failed program was:" >&5
10660 cat conftest.$ac_ext >&5
10661 rm -rf conftest*
10662 eval "ac_cv_lib_$ac_lib_var=no"
10663fi
10664rm -f conftest*
10665LIBS="$ac_save_LIBS"
10666
10667fi
10668if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10669 echo "$ac_t""yes" 1>&6
10670
10671 cat >> confdefs.h <<\EOF
10672#define HAVE_WCSLEN 1
10673EOF
10674
10675 WCHAR_LINK="-lw"
10676
10677else
10678 echo "$ac_t""no" 1>&6
10679fi
10680
10681
10682fi
10683
10684
10685echo $ac_n "checking for vprintf""... $ac_c" 1>&6
3fed1840 10686echo "configure:10687: checking for vprintf" >&5
10f2d63a
VZ
10687if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
10688 echo $ac_n "(cached) $ac_c" 1>&6
10689else
10690 cat > conftest.$ac_ext <<EOF
3fed1840 10691#line 10692 "configure"
10f2d63a
VZ
10692#include "confdefs.h"
10693/* System header to define __stub macros and hopefully few prototypes,
10694 which can conflict with char vprintf(); below. */
10695#include <assert.h>
10696/* Override any gcc2 internal prototype to avoid an error. */
10697/* We use char because int might match the return type of a gcc2
10698 builtin and then its argument prototype would still apply. */
10699char vprintf();
10700
10701int main() {
10702
10703/* The GNU C library defines this for functions which it implements
10704 to always fail with ENOSYS. Some functions are actually named
10705 something starting with __ and the normal name is an alias. */
10706#if defined (__stub_vprintf) || defined (__stub___vprintf)
10707choke me
10708#else
e8482f24 10709vprintf();
10f2d63a
VZ
10710#endif
10711
10712; return 0; }
10713EOF
3fed1840 10714if { (eval echo configure:10715: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
10715 rm -rf conftest*
10716 eval "ac_cv_func_vprintf=yes"
10717else
10718 echo "configure: failed program was:" >&5
10719 cat conftest.$ac_ext >&5
10720 rm -rf conftest*
10721 eval "ac_cv_func_vprintf=no"
10722fi
10723rm -f conftest*
10724fi
10725
10726if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
10727 echo "$ac_t""yes" 1>&6
10728 cat >> confdefs.h <<\EOF
10729#define HAVE_VPRINTF 1
10730EOF
10731
10732else
10733 echo "$ac_t""no" 1>&6
10734fi
10735
10736if test "$ac_cv_func_vprintf" != yes; then
10737echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
3fed1840 10738echo "configure:10739: checking for _doprnt" >&5
10f2d63a
VZ
10739if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
10740 echo $ac_n "(cached) $ac_c" 1>&6
10741else
10742 cat > conftest.$ac_ext <<EOF
3fed1840 10743#line 10744 "configure"
10f2d63a
VZ
10744#include "confdefs.h"
10745/* System header to define __stub macros and hopefully few prototypes,
10746 which can conflict with char _doprnt(); below. */
10747#include <assert.h>
10748/* Override any gcc2 internal prototype to avoid an error. */
10749/* We use char because int might match the return type of a gcc2
10750 builtin and then its argument prototype would still apply. */
10751char _doprnt();
10752
10753int main() {
10754
10755/* The GNU C library defines this for functions which it implements
10756 to always fail with ENOSYS. Some functions are actually named
10757 something starting with __ and the normal name is an alias. */
10758#if defined (__stub__doprnt) || defined (__stub____doprnt)
10759choke me
10760#else
e8482f24 10761_doprnt();
10f2d63a
VZ
10762#endif
10763
10764; return 0; }
10765EOF
3fed1840 10766if { (eval echo configure:10767: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
10767 rm -rf conftest*
10768 eval "ac_cv_func__doprnt=yes"
10769else
10770 echo "configure: failed program was:" >&5
10771 cat conftest.$ac_ext >&5
10772 rm -rf conftest*
10773 eval "ac_cv_func__doprnt=no"
10774fi
10775rm -f conftest*
10776fi
10777
10778if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
10779 echo "$ac_t""yes" 1>&6
10780 cat >> confdefs.h <<\EOF
10781#define HAVE_DOPRNT 1
10782EOF
10783
10784else
10785 echo "$ac_t""no" 1>&6
10786fi
10787
10788fi
10789
10790
10f2d63a 10791
f6bcfd97
BP
10792ac_ext=C
10793# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10794ac_cpp='$CXXCPP $CPPFLAGS'
10795ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10796ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10797cross_compiling=$ac_cv_prog_cxx_cross
10798
10799
10800
10801
10802echo $ac_n "checking for vsnprintf""... $ac_c" 1>&6
3fed1840 10803echo "configure:10804: checking for vsnprintf" >&5
f6bcfd97
BP
10804if eval "test \"`echo '$''{'wx_cv_func_vsnprintf'+set}'`\" = set"; then
10805 echo $ac_n "(cached) $ac_c" 1>&6
10806else
10807
10808 cat > conftest.$ac_ext <<EOF
3fed1840 10809#line 10810 "configure"
f6bcfd97
BP
10810#include "confdefs.h"
10811
10812 #include <stdio.h>
10813 #include <stdarg.h>
10814
10f2d63a
VZ
10815int main() {
10816
f6bcfd97 10817 int wx_test_vsnprintf(const char *, ...);
10f2d63a 10818
f6bcfd97
BP
10819 wx_test_vsnprintf("%s");
10820 return 0;
10821 }
10822
10823 int wx_test_vsnprintf(const char *fmt, ...)
10824 {
10825 char *s;
10826
10827 va_list argp;
10828 va_start(argp, fmt);
10829 vsnprintf(s, 42, fmt, argp);
10830 va_end(argp);
10831
10f2d63a
VZ
10832; return 0; }
10833EOF
3fed1840 10834if { (eval echo configure:10835: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10f2d63a 10835 rm -rf conftest*
f6bcfd97
BP
10836
10837 cat >> confdefs.h <<\EOF
10838#define HAVE_VSNPRINTF 1
10839EOF
10840
10841 wx_cv_func_vsnprintf=yes
10842
10f2d63a
VZ
10843else
10844 echo "configure: failed program was:" >&5
10845 cat conftest.$ac_ext >&5
10846 rm -rf conftest*
f6bcfd97
BP
10847
10848 echo "configure: warning: unsafe function sprintf will be used instead of snprintf" 1>&2
10849 wx_cv_func_vsnprintf=no
10850
10f2d63a
VZ
10851fi
10852rm -f conftest*
10f2d63a 10853
10f2d63a 10854fi
10f2d63a 10855
f6bcfd97 10856echo "$ac_t""$wx_cv_func_vsnprintf" 1>&6
10f2d63a
VZ
10857
10858echo $ac_n "checking for vsscanf""... $ac_c" 1>&6
3fed1840 10859echo "configure:10860: checking for vsscanf" >&5
10f2d63a
VZ
10860if eval "test \"`echo '$''{'wx_cv_func_vsscanf'+set}'`\" = set"; then
10861 echo $ac_n "(cached) $ac_c" 1>&6
10862else
10863
10f2d63a 10864 cat > conftest.$ac_ext <<EOF
3fed1840 10865#line 10866 "configure"
10f2d63a 10866#include "confdefs.h"
10f2d63a 10867
f6bcfd97
BP
10868 #include <stdio.h>
10869 #include <stdarg.h>
10870
10871int main() {
10f2d63a 10872
f6bcfd97 10873 int wx_test_vsscanf(const char *, ...);
10f2d63a 10874
f6bcfd97
BP
10875 wx_test_vsscanf("%d");
10876 return 0;
10f2d63a
VZ
10877 }
10878
f6bcfd97 10879 int wx_test_vsscanf(const char *fmt, ...)
10f2d63a 10880 {
f6bcfd97
BP
10881 va_list argp;
10882 va_start(argp, fmt);
10883 vsscanf("42", fmt, argp);
10884 va_end(argp);
10885
10886; return 0; }
10f2d63a 10887EOF
3fed1840 10888if { (eval echo configure:10889: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
f6bcfd97 10889 rm -rf conftest*
10f2d63a 10890
f6bcfd97 10891 cat >> confdefs.h <<\EOF
10f2d63a
VZ
10892#define HAVE_VSSCANF 1
10893EOF
10894
f6bcfd97
BP
10895 wx_cv_func_vsscanf=yes
10896
10f2d63a
VZ
10897else
10898 echo "configure: failed program was:" >&5
10899 cat conftest.$ac_ext >&5
f6bcfd97
BP
10900 rm -rf conftest*
10901
10902 wx_cv_func_vsscanf=no
10903
10f2d63a 10904fi
f6bcfd97 10905rm -f conftest*
10f2d63a
VZ
10906
10907fi
10908
10909echo "$ac_t""$wx_cv_func_vsscanf" 1>&6
10910
10911ac_ext=c
10912# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10913ac_cpp='$CPP $CPPFLAGS'
10914ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10915ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10916cross_compiling=$ac_cv_prog_cc_cross
10917
10918
b089607b 10919if test "$TOOLKIT" != "MSW"; then
10f2d63a 10920
eb4efbdc
VZ
10921if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
10922 for ac_func in sigaction
10923do
10924echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3fed1840 10925echo "configure:10926: checking for $ac_func" >&5
eb4efbdc
VZ
10926if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10927 echo $ac_n "(cached) $ac_c" 1>&6
10928else
10929 cat > conftest.$ac_ext <<EOF
3fed1840 10930#line 10931 "configure"
eb4efbdc
VZ
10931#include "confdefs.h"
10932/* System header to define __stub macros and hopefully few prototypes,
10933 which can conflict with char $ac_func(); below. */
10934#include <assert.h>
10935/* Override any gcc2 internal prototype to avoid an error. */
10936/* We use char because int might match the return type of a gcc2
10937 builtin and then its argument prototype would still apply. */
10938char $ac_func();
10939
10940int main() {
10941
10942/* The GNU C library defines this for functions which it implements
10943 to always fail with ENOSYS. Some functions are actually named
10944 something starting with __ and the normal name is an alias. */
10945#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10946choke me
10947#else
10948$ac_func();
10949#endif
10950
10951; return 0; }
10952EOF
3fed1840 10953if { (eval echo configure:10954: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
eb4efbdc
VZ
10954 rm -rf conftest*
10955 eval "ac_cv_func_$ac_func=yes"
10956else
10957 echo "configure: failed program was:" >&5
10958 cat conftest.$ac_ext >&5
10959 rm -rf conftest*
10960 eval "ac_cv_func_$ac_func=no"
10961fi
10962rm -f conftest*
10963fi
10964
10965if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10966 echo "$ac_t""yes" 1>&6
10967 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10968 cat >> confdefs.h <<EOF
10969#define $ac_tr_func 1
10970EOF
10971
10972else
10973 echo "$ac_t""no" 1>&6
10974fi
10975done
10976
10977
10978 if test "$ac_cv_func_sigaction" = "no"; then
10979 echo "configure: warning: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" 1>&2
10980 wxUSE_ON_FATAL_EXCEPTION=no
10981 fi
f6bcfd97
BP
10982
10983 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
10984
10985 ac_ext=C
10986# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10987ac_cpp='$CXXCPP $CPPFLAGS'
10988ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10989ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10990cross_compiling=$ac_cv_prog_cxx_cross
10991
10992
10993 echo $ac_n "checking for sa_handler type""... $ac_c" 1>&6
3fed1840 10994echo "configure:10995: checking for sa_handler type" >&5
f6bcfd97
BP
10995if eval "test \"`echo '$''{'wx_cv_type_sa_handler'+set}'`\" = set"; then
10996 echo $ac_n "(cached) $ac_c" 1>&6
10997else
10998
10999 cat > conftest.$ac_ext <<EOF
3fed1840 11000#line 11001 "configure"
f6bcfd97
BP
11001#include "confdefs.h"
11002#include <signal.h>
11003int main() {
11004
11005 extern void testSigHandler(int);
11006
11007 struct sigaction sa;
11008 sa.sa_handler = testSigHandler;
11009
11010; return 0; }
11011EOF
3fed1840 11012if { (eval echo configure:11013: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
f6bcfd97
BP
11013 rm -rf conftest*
11014
11015 wx_cv_type_sa_handler=int
11016
11017else
11018 echo "configure: failed program was:" >&5
11019 cat conftest.$ac_ext >&5
11020 rm -rf conftest*
11021
11022 wx_cv_type_sa_handler=void
11023
11024fi
11025rm -f conftest*
11026
11027fi
11028
11029echo "$ac_t""$wx_cv_type_sa_handler" 1>&6
11030
11031 ac_ext=c
11032# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11033ac_cpp='$CPP $CPPFLAGS'
11034ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11035ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11036cross_compiling=$ac_cv_prog_cc_cross
11037
11038
11039 cat >> confdefs.h <<EOF
11040#define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
11041EOF
11042
11043 fi
eb4efbdc
VZ
11044fi
11045
10f2d63a
VZ
11046for ac_func in vfork
11047do
11048echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3fed1840 11049echo "configure:11050: checking for $ac_func" >&5
10f2d63a
VZ
11050if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11051 echo $ac_n "(cached) $ac_c" 1>&6
11052else
11053 cat > conftest.$ac_ext <<EOF
3fed1840 11054#line 11055 "configure"
10f2d63a
VZ
11055#include "confdefs.h"
11056/* System header to define __stub macros and hopefully few prototypes,
11057 which can conflict with char $ac_func(); below. */
11058#include <assert.h>
11059/* Override any gcc2 internal prototype to avoid an error. */
11060/* We use char because int might match the return type of a gcc2
11061 builtin and then its argument prototype would still apply. */
11062char $ac_func();
11063
11064int main() {
11065
11066/* The GNU C library defines this for functions which it implements
11067 to always fail with ENOSYS. Some functions are actually named
11068 something starting with __ and the normal name is an alias. */
11069#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11070choke me
11071#else
e8482f24 11072$ac_func();
10f2d63a
VZ
11073#endif
11074
11075; return 0; }
11076EOF
3fed1840 11077if { (eval echo configure:11078: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
270a909e
VZ
11078 rm -rf conftest*
11079 eval "ac_cv_func_$ac_func=yes"
11080else
11081 echo "configure: failed program was:" >&5
11082 cat conftest.$ac_ext >&5
11083 rm -rf conftest*
11084 eval "ac_cv_func_$ac_func=no"
11085fi
11086rm -f conftest*
11087fi
11088
11089if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11090 echo "$ac_t""yes" 1>&6
11091 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11092 cat >> confdefs.h <<EOF
11093#define $ac_tr_func 1
11094EOF
11095
11096else
11097 echo "$ac_t""no" 1>&6
11098fi
11099done
11100
11101
11102for ac_func in timegm
11103do
11104echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3fed1840 11105echo "configure:11106: checking for $ac_func" >&5
270a909e
VZ
11106if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11107 echo $ac_n "(cached) $ac_c" 1>&6
11108else
11109 cat > conftest.$ac_ext <<EOF
3fed1840 11110#line 11111 "configure"
270a909e
VZ
11111#include "confdefs.h"
11112/* System header to define __stub macros and hopefully few prototypes,
11113 which can conflict with char $ac_func(); below. */
11114#include <assert.h>
11115/* Override any gcc2 internal prototype to avoid an error. */
11116/* We use char because int might match the return type of a gcc2
11117 builtin and then its argument prototype would still apply. */
11118char $ac_func();
11119
11120int main() {
11121
11122/* The GNU C library defines this for functions which it implements
11123 to always fail with ENOSYS. Some functions are actually named
11124 something starting with __ and the normal name is an alias. */
11125#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11126choke me
11127#else
e8482f24 11128$ac_func();
270a909e
VZ
11129#endif
11130
11131; return 0; }
11132EOF
3fed1840 11133if { (eval echo configure:11134: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
11134 rm -rf conftest*
11135 eval "ac_cv_func_$ac_func=yes"
11136else
11137 echo "configure: failed program was:" >&5
11138 cat conftest.$ac_ext >&5
11139 rm -rf conftest*
11140 eval "ac_cv_func_$ac_func=no"
11141fi
11142rm -f conftest*
11143fi
11144
11145if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11146 echo "$ac_t""yes" 1>&6
11147 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11148 cat >> confdefs.h <<EOF
11149#define $ac_tr_func 1
11150EOF
11151
11152else
11153 echo "$ac_t""no" 1>&6
11154fi
11155done
11156
11157
b12915c1
VZ
11158HAVE_SOME_SLEEP_FUNC=0
11159if test "$USE_BEOS" = 1; then
11160 cat >> confdefs.h <<\EOF
11161#define HAVE_SLEEP 1
11162EOF
11163
11164 HAVE_SOME_SLEEP_FUNC=1
11165fi
11166
11167if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
11168 POSIX4_LINK=
11169 for ac_func in nanosleep
10f2d63a
VZ
11170do
11171echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3fed1840 11172echo "configure:11173: checking for $ac_func" >&5
10f2d63a
VZ
11173if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11174 echo $ac_n "(cached) $ac_c" 1>&6
11175else
11176 cat > conftest.$ac_ext <<EOF
3fed1840 11177#line 11178 "configure"
10f2d63a
VZ
11178#include "confdefs.h"
11179/* System header to define __stub macros and hopefully few prototypes,
11180 which can conflict with char $ac_func(); below. */
11181#include <assert.h>
11182/* Override any gcc2 internal prototype to avoid an error. */
11183/* We use char because int might match the return type of a gcc2
11184 builtin and then its argument prototype would still apply. */
11185char $ac_func();
11186
11187int main() {
11188
11189/* The GNU C library defines this for functions which it implements
11190 to always fail with ENOSYS. Some functions are actually named
11191 something starting with __ and the normal name is an alias. */
11192#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11193choke me
11194#else
e8482f24 11195$ac_func();
10f2d63a
VZ
11196#endif
11197
11198; return 0; }
11199EOF
3fed1840 11200if { (eval echo configure:11201: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
11201 rm -rf conftest*
11202 eval "ac_cv_func_$ac_func=yes"
11203else
11204 echo "configure: failed program was:" >&5
11205 cat conftest.$ac_ext >&5
11206 rm -rf conftest*
11207 eval "ac_cv_func_$ac_func=no"
11208fi
11209rm -f conftest*
11210fi
11211
11212if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11213 echo "$ac_t""yes" 1>&6
11214 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11215 cat >> confdefs.h <<EOF
11216#define $ac_tr_func 1
11217EOF
11218 cat >> confdefs.h <<\EOF
11219#define HAVE_NANOSLEEP 1
11220EOF
11221
11222else
11223 echo "$ac_t""no" 1>&6
11224echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6
3fed1840 11225echo "configure:11226: checking for nanosleep in -lposix4" >&5
10f2d63a
VZ
11226ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'`
11227if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11228 echo $ac_n "(cached) $ac_c" 1>&6
11229else
11230 ac_save_LIBS="$LIBS"
11231LIBS="-lposix4 $LIBS"
11232cat > conftest.$ac_ext <<EOF
3fed1840 11233#line 11234 "configure"
10f2d63a
VZ
11234#include "confdefs.h"
11235/* Override any gcc2 internal prototype to avoid an error. */
11236/* We use char because int might match the return type of a gcc2
11237 builtin and then its argument prototype would still apply. */
11238char nanosleep();
11239
11240int main() {
11241nanosleep()
11242; return 0; }
11243EOF
3fed1840 11244if { (eval echo configure:11245: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
11245 rm -rf conftest*
11246 eval "ac_cv_lib_$ac_lib_var=yes"
11247else
11248 echo "configure: failed program was:" >&5
11249 cat conftest.$ac_ext >&5
11250 rm -rf conftest*
11251 eval "ac_cv_lib_$ac_lib_var=no"
11252fi
11253rm -f conftest*
11254LIBS="$ac_save_LIBS"
11255
11256fi
11257if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11258 echo "$ac_t""yes" 1>&6
11259
b12915c1 11260 cat >> confdefs.h <<\EOF
10f2d63a
VZ
11261#define HAVE_NANOSLEEP 1
11262EOF
11263
b12915c1
VZ
11264 POSIX4_LINK="-lposix4"
11265
10f2d63a
VZ
11266else
11267 echo "$ac_t""no" 1>&6
11268
b12915c1 11269 for ac_func in usleep
10f2d63a
VZ
11270do
11271echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3fed1840 11272echo "configure:11273: checking for $ac_func" >&5
10f2d63a
VZ
11273if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11274 echo $ac_n "(cached) $ac_c" 1>&6
11275else
11276 cat > conftest.$ac_ext <<EOF
3fed1840 11277#line 11278 "configure"
10f2d63a
VZ
11278#include "confdefs.h"
11279/* System header to define __stub macros and hopefully few prototypes,
11280 which can conflict with char $ac_func(); below. */
11281#include <assert.h>
11282/* Override any gcc2 internal prototype to avoid an error. */
11283/* We use char because int might match the return type of a gcc2
11284 builtin and then its argument prototype would still apply. */
11285char $ac_func();
11286
11287int main() {
11288
11289/* The GNU C library defines this for functions which it implements
11290 to always fail with ENOSYS. Some functions are actually named
11291 something starting with __ and the normal name is an alias. */
11292#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11293choke me
11294#else
e8482f24 11295$ac_func();
10f2d63a
VZ
11296#endif
11297
11298; return 0; }
11299EOF
3fed1840 11300if { (eval echo configure:11301: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
11301 rm -rf conftest*
11302 eval "ac_cv_func_$ac_func=yes"
11303else
11304 echo "configure: failed program was:" >&5
11305 cat conftest.$ac_ext >&5
11306 rm -rf conftest*
11307 eval "ac_cv_func_$ac_func=no"
11308fi
11309rm -f conftest*
11310fi
11311
11312if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11313 echo "$ac_t""yes" 1>&6
11314 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11315 cat >> confdefs.h <<EOF
11316#define $ac_tr_func 1
11317EOF
b12915c1 11318
10f2d63a
VZ
11319else
11320 echo "$ac_t""no" 1>&6
10f2d63a
VZ
11321fi
11322done
11323
b12915c1
VZ
11324 echo "configure: warning: wxSleep() function will not work" 1>&2
11325
11326
10f2d63a
VZ
11327fi
11328
b12915c1
VZ
11329
11330
10f2d63a
VZ
11331fi
11332done
11333
b12915c1 11334fi
10f2d63a
VZ
11335
11336for ac_func in uname gethostname
11337do
11338echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3fed1840 11339echo "configure:11340: checking for $ac_func" >&5
10f2d63a
VZ
11340if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11341 echo $ac_n "(cached) $ac_c" 1>&6
11342else
11343 cat > conftest.$ac_ext <<EOF
3fed1840 11344#line 11345 "configure"
10f2d63a
VZ
11345#include "confdefs.h"
11346/* System header to define __stub macros and hopefully few prototypes,
11347 which can conflict with char $ac_func(); below. */
11348#include <assert.h>
11349/* Override any gcc2 internal prototype to avoid an error. */
11350/* We use char because int might match the return type of a gcc2
11351 builtin and then its argument prototype would still apply. */
11352char $ac_func();
11353
11354int main() {
11355
11356/* The GNU C library defines this for functions which it implements
11357 to always fail with ENOSYS. Some functions are actually named
11358 something starting with __ and the normal name is an alias. */
11359#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11360choke me
11361#else
e8482f24 11362$ac_func();
10f2d63a
VZ
11363#endif
11364
11365; return 0; }
11366EOF
3fed1840 11367if { (eval echo configure:11368: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
11368 rm -rf conftest*
11369 eval "ac_cv_func_$ac_func=yes"
11370else
11371 echo "configure: failed program was:" >&5
11372 cat conftest.$ac_ext >&5
11373 rm -rf conftest*
11374 eval "ac_cv_func_$ac_func=no"
11375fi
11376rm -f conftest*
11377fi
11378
11379if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11380 echo "$ac_t""yes" 1>&6
11381 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11382 cat >> confdefs.h <<EOF
11383#define $ac_tr_func 1
11384EOF
11385 break
11386else
11387 echo "$ac_t""no" 1>&6
11388fi
11389done
11390
11391
6098c7f9
VZ
11392
11393ac_ext=C
11394# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11395ac_cpp='$CXXCPP $CPPFLAGS'
11396ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11397ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11398cross_compiling=$ac_cv_prog_cxx_cross
11399
11400
10f2d63a
VZ
11401for ac_func in strtok_r
11402do
11403echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3fed1840 11404echo "configure:11405: checking for $ac_func" >&5
10f2d63a
VZ
11405if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11406 echo $ac_n "(cached) $ac_c" 1>&6
11407else
11408 cat > conftest.$ac_ext <<EOF
3fed1840 11409#line 11410 "configure"
10f2d63a
VZ
11410#include "confdefs.h"
11411/* System header to define __stub macros and hopefully few prototypes,
11412 which can conflict with char $ac_func(); below. */
11413#include <assert.h>
11414/* Override any gcc2 internal prototype to avoid an error. */
6098c7f9
VZ
11415#ifdef __cplusplus
11416extern "C"
11417#endif
10f2d63a
VZ
11418/* We use char because int might match the return type of a gcc2
11419 builtin and then its argument prototype would still apply. */
11420char $ac_func();
11421
11422int main() {
11423
11424/* The GNU C library defines this for functions which it implements
11425 to always fail with ENOSYS. Some functions are actually named
11426 something starting with __ and the normal name is an alias. */
11427#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11428choke me
11429#else
e8482f24 11430$ac_func();
10f2d63a
VZ
11431#endif
11432
11433; return 0; }
11434EOF
3fed1840 11435if { (eval echo configure:11436: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
11436 rm -rf conftest*
11437 eval "ac_cv_func_$ac_func=yes"
11438else
11439 echo "configure: failed program was:" >&5
11440 cat conftest.$ac_ext >&5
11441 rm -rf conftest*
11442 eval "ac_cv_func_$ac_func=no"
11443fi
11444rm -f conftest*
11445fi
11446
11447if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11448 echo "$ac_t""yes" 1>&6
11449 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11450 cat >> confdefs.h <<EOF
11451#define $ac_tr_func 1
11452EOF
11453
11454else
11455 echo "$ac_t""no" 1>&6
11456fi
11457done
11458
11459
6098c7f9
VZ
11460ac_ext=c
11461# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11462ac_cpp='$CPP $CPPFLAGS'
11463ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11464ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11465cross_compiling=$ac_cv_prog_cc_cross
11466
11467
c63c7106 11468INET_LINK=
10f2d63a
VZ
11469for ac_func in inet_addr
11470do
11471echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3fed1840 11472echo "configure:11473: checking for $ac_func" >&5
10f2d63a
VZ
11473if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11474 echo $ac_n "(cached) $ac_c" 1>&6
11475else
11476 cat > conftest.$ac_ext <<EOF
3fed1840 11477#line 11478 "configure"
10f2d63a
VZ
11478#include "confdefs.h"
11479/* System header to define __stub macros and hopefully few prototypes,
11480 which can conflict with char $ac_func(); below. */
11481#include <assert.h>
11482/* Override any gcc2 internal prototype to avoid an error. */
11483/* We use char because int might match the return type of a gcc2
11484 builtin and then its argument prototype would still apply. */
11485char $ac_func();
11486
11487int main() {
11488
11489/* The GNU C library defines this for functions which it implements
11490 to always fail with ENOSYS. Some functions are actually named
11491 something starting with __ and the normal name is an alias. */
11492#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11493choke me
11494#else
e8482f24 11495$ac_func();
10f2d63a
VZ
11496#endif
11497
11498; return 0; }
11499EOF
3fed1840 11500if { (eval echo configure:11501: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
11501 rm -rf conftest*
11502 eval "ac_cv_func_$ac_func=yes"
11503else
11504 echo "configure: failed program was:" >&5
11505 cat conftest.$ac_ext >&5
11506 rm -rf conftest*
11507 eval "ac_cv_func_$ac_func=no"
11508fi
11509rm -f conftest*
11510fi
11511
11512if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11513 echo "$ac_t""yes" 1>&6
11514 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11515 cat >> confdefs.h <<EOF
11516#define $ac_tr_func 1
11517EOF
c63c7106
VZ
11518 cat >> confdefs.h <<\EOF
11519#define HAVE_INET_ADDR 1
11520EOF
11521
10f2d63a
VZ
11522else
11523 echo "$ac_t""no" 1>&6
c63c7106 11524echo $ac_n "checking for inet_addr in -lnsl""... $ac_c" 1>&6
3fed1840 11525echo "configure:11526: checking for inet_addr in -lnsl" >&5
c63c7106
VZ
11526ac_lib_var=`echo nsl'_'inet_addr | sed 'y%./+-%__p_%'`
11527if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11528 echo $ac_n "(cached) $ac_c" 1>&6
11529else
11530 ac_save_LIBS="$LIBS"
11531LIBS="-lnsl $LIBS"
11532cat > conftest.$ac_ext <<EOF
3fed1840 11533#line 11534 "configure"
c63c7106
VZ
11534#include "confdefs.h"
11535/* Override any gcc2 internal prototype to avoid an error. */
11536/* We use char because int might match the return type of a gcc2
11537 builtin and then its argument prototype would still apply. */
11538char inet_addr();
11539
11540int main() {
11541inet_addr()
11542; return 0; }
11543EOF
3fed1840 11544if { (eval echo configure:11545: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
c63c7106
VZ
11545 rm -rf conftest*
11546 eval "ac_cv_lib_$ac_lib_var=yes"
11547else
11548 echo "configure: failed program was:" >&5
11549 cat conftest.$ac_ext >&5
11550 rm -rf conftest*
11551 eval "ac_cv_lib_$ac_lib_var=no"
11552fi
11553rm -f conftest*
11554LIBS="$ac_save_LIBS"
11555
11556fi
11557if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11558 echo "$ac_t""yes" 1>&6
11559 INET_LINK="nsl"
11560else
11561 echo "$ac_t""no" 1>&6
11562echo $ac_n "checking for inet_addr in -lresolv""... $ac_c" 1>&6
3fed1840 11563echo "configure:11564: checking for inet_addr in -lresolv" >&5
c63c7106
VZ
11564ac_lib_var=`echo resolv'_'inet_addr | sed 'y%./+-%__p_%'`
11565if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11566 echo $ac_n "(cached) $ac_c" 1>&6
11567else
11568 ac_save_LIBS="$LIBS"
11569LIBS="-lresolv $LIBS"
11570cat > conftest.$ac_ext <<EOF
3fed1840 11571#line 11572 "configure"
c63c7106
VZ
11572#include "confdefs.h"
11573/* Override any gcc2 internal prototype to avoid an error. */
11574/* We use char because int might match the return type of a gcc2
11575 builtin and then its argument prototype would still apply. */
11576char inet_addr();
11577
11578int main() {
11579inet_addr()
11580; return 0; }
11581EOF
3fed1840 11582if { (eval echo configure:11583: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
c63c7106
VZ
11583 rm -rf conftest*
11584 eval "ac_cv_lib_$ac_lib_var=yes"
11585else
11586 echo "configure: failed program was:" >&5
11587 cat conftest.$ac_ext >&5
11588 rm -rf conftest*
11589 eval "ac_cv_lib_$ac_lib_var=no"
11590fi
11591rm -f conftest*
11592LIBS="$ac_save_LIBS"
11593
11594fi
11595if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11596 echo "$ac_t""yes" 1>&6
11597 INET_LINK="resolv"
11598
11599else
11600 echo "$ac_t""no" 1>&6
11601fi
11602
11603
11604fi
11605
11606
11607
10f2d63a
VZ
11608fi
11609done
11610
c63c7106 11611
10f2d63a
VZ
11612for ac_func in inet_aton
11613do
11614echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3fed1840 11615echo "configure:11616: checking for $ac_func" >&5
10f2d63a
VZ
11616if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11617 echo $ac_n "(cached) $ac_c" 1>&6
11618else
11619 cat > conftest.$ac_ext <<EOF
3fed1840 11620#line 11621 "configure"
10f2d63a
VZ
11621#include "confdefs.h"
11622/* System header to define __stub macros and hopefully few prototypes,
11623 which can conflict with char $ac_func(); below. */
11624#include <assert.h>
11625/* Override any gcc2 internal prototype to avoid an error. */
11626/* We use char because int might match the return type of a gcc2
11627 builtin and then its argument prototype would still apply. */
11628char $ac_func();
11629
11630int main() {
11631
11632/* The GNU C library defines this for functions which it implements
11633 to always fail with ENOSYS. Some functions are actually named
11634 something starting with __ and the normal name is an alias. */
11635#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11636choke me
11637#else
e8482f24 11638$ac_func();
10f2d63a
VZ
11639#endif
11640
11641; return 0; }
11642EOF
3fed1840 11643if { (eval echo configure:11644: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
11644 rm -rf conftest*
11645 eval "ac_cv_func_$ac_func=yes"
11646else
11647 echo "configure: failed program was:" >&5
11648 cat conftest.$ac_ext >&5
11649 rm -rf conftest*
11650 eval "ac_cv_func_$ac_func=no"
11651fi
11652rm -f conftest*
11653fi
11654
11655if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11656 echo "$ac_t""yes" 1>&6
11657 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11658 cat >> confdefs.h <<EOF
11659#define $ac_tr_func 1
11660EOF
c63c7106
VZ
11661 cat >> confdefs.h <<\EOF
11662#define HAVE_INET_ATON 1
11663EOF
11664
10f2d63a
VZ
11665else
11666 echo "$ac_t""no" 1>&6
c63c7106 11667 echo $ac_n "checking for inet_aton in -l$INET_LINK""... $ac_c" 1>&6
3fed1840 11668echo "configure:11669: checking for inet_aton in -l$INET_LINK" >&5
c63c7106 11669ac_lib_var=`echo $INET_LINK'_'inet_aton | sed 'y%./+-%__p_%'`
10f2d63a
VZ
11670if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11671 echo $ac_n "(cached) $ac_c" 1>&6
11672else
11673 ac_save_LIBS="$LIBS"
c63c7106 11674LIBS="-l$INET_LINK $LIBS"
10f2d63a 11675cat > conftest.$ac_ext <<EOF
3fed1840 11676#line 11677 "configure"
10f2d63a
VZ
11677#include "confdefs.h"
11678/* Override any gcc2 internal prototype to avoid an error. */
11679/* We use char because int might match the return type of a gcc2
11680 builtin and then its argument prototype would still apply. */
11681char inet_aton();
11682
11683int main() {
11684inet_aton()
11685; return 0; }
11686EOF
3fed1840 11687if { (eval echo configure:11688: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
11688 rm -rf conftest*
11689 eval "ac_cv_lib_$ac_lib_var=yes"
11690else
11691 echo "configure: failed program was:" >&5
11692 cat conftest.$ac_ext >&5
11693 rm -rf conftest*
11694 eval "ac_cv_lib_$ac_lib_var=no"
11695fi
11696rm -f conftest*
11697LIBS="$ac_save_LIBS"
11698
11699fi
11700if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11701 echo "$ac_t""yes" 1>&6
c63c7106
VZ
11702 cat >> confdefs.h <<\EOF
11703#define HAVE_INET_ATON 1
10f2d63a
VZ
11704EOF
11705
10f2d63a
VZ
11706else
11707 echo "$ac_t""no" 1>&6
11708fi
11709
c63c7106
VZ
11710
11711fi
11712done
11713
11714
11715if test "x$INET_LINK" != "x"; then
11716 cat >> confdefs.h <<\EOF
11717#define HAVE_INET_ADDR 1
11718EOF
11719
11720 INET_LINK="-l$INET_LINK"
11721fi
10f2d63a
VZ
11722
11723fi
11724
11725
11726cat > confcache <<\EOF
11727# This file is a shell script that caches the results of configure
11728# tests run on this system so they can be shared between configure
11729# scripts and configure runs. It is not useful on other systems.
11730# If it contains results you don't want to keep, you may remove or edit it.
11731#
11732# By default, configure uses ./config.cache as the cache file,
11733# creating it if it does not exist already. You can give configure
11734# the --cache-file=FILE option to use a different cache file; that is
11735# what configure does when it calls configure scripts in
11736# subdirectories, so they share the cache.
11737# Giving --cache-file=/dev/null disables caching, for debugging configure.
11738# config.status only pays attention to the cache file if you give it the
11739# --recheck option to rerun configure.
11740#
11741EOF
11742# The following way of writing the cache mishandles newlines in values,
11743# but we know of no workaround that is simple, portable, and efficient.
11744# So, don't put newlines in cache variables' values.
11745# Ultrix sh set writes to stderr and can't be redirected directly,
11746# and sets the high bit in the cache file unless we assign to the vars.
11747(set) 2>&1 |
11748 case `(ac_space=' '; set | grep ac_space) 2>&1` in
11749 *ac_space=\ *)
11750 # `set' does not quote correctly, so add quotes (double-quote substitution
11751 # turns \\\\ into \\, and sed turns \\ into \).
11752 sed -n \
11753 -e "s/'/'\\\\''/g" \
11754 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
11755 ;;
11756 *)
11757 # `set' quotes correctly as required by POSIX, so do not add quotes.
11758 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
11759 ;;
11760 esac >> confcache
11761if cmp -s $cache_file confcache; then
11762 :
11763else
11764 if test -w $cache_file; then
11765 echo "updating cache $cache_file"
11766 cat confcache > $cache_file
11767 else
11768 echo "not updating unwritable cache $cache_file"
11769 fi
11770fi
11771rm -f confcache
11772
11773
11774
b089607b 11775if test "$TOOLKIT" != "MSW"; then
10f2d63a
VZ
11776
11777
11778THREADS_LINK=""
11779THREADS_OBJ=""
11780
11781if test "$wxUSE_THREADS" = "yes" ; then
11782 if test "$wxUSE_WINE" = 1 ; then
11783 echo "configure: warning: Threads are not supported under WINE" 1>&2
11784 wxUSE_THREADS="no"
b12915c1
VZ
11785 elif test "$USE_BEOS" = 1; then
11786 echo "configure: warning: BeOS threads are not yet supported" 1>&2
11787 wxUSE_THREADS="no"
10f2d63a
VZ
11788 fi
11789fi
11790
11791if test "$wxUSE_THREADS" = "yes" ; then
11792
f6bcfd97
BP
11793 if test "$wxUSE_AIX" = 1; then
11794 THREADS_LIB=pthreads
11795 else
11796 THREADS_LIB=pthread
11797 fi
11798
11799 echo $ac_n "checking for pthread_create in -l$THREADS_LIB""... $ac_c" 1>&6
3fed1840 11800echo "configure:11801: checking for pthread_create in -l$THREADS_LIB" >&5
f6bcfd97 11801ac_lib_var=`echo $THREADS_LIB'_'pthread_create | sed 'y%./+-%__p_%'`
10f2d63a
VZ
11802if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11803 echo $ac_n "(cached) $ac_c" 1>&6
11804else
11805 ac_save_LIBS="$LIBS"
f6bcfd97 11806LIBS="-l$THREADS_LIB $LIBS"
10f2d63a 11807cat > conftest.$ac_ext <<EOF
3fed1840 11808#line 11809 "configure"
10f2d63a
VZ
11809#include "confdefs.h"
11810/* Override any gcc2 internal prototype to avoid an error. */
11811/* We use char because int might match the return type of a gcc2
11812 builtin and then its argument prototype would still apply. */
11813char pthread_create();
11814
11815int main() {
11816pthread_create()
11817; return 0; }
11818EOF
3fed1840 11819if { (eval echo configure:11820: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
11820 rm -rf conftest*
11821 eval "ac_cv_lib_$ac_lib_var=yes"
11822else
11823 echo "configure: failed program was:" >&5
11824 cat conftest.$ac_ext >&5
11825 rm -rf conftest*
11826 eval "ac_cv_lib_$ac_lib_var=no"
11827fi
11828rm -f conftest*
11829LIBS="$ac_save_LIBS"
11830
11831fi
11832if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11833 echo "$ac_t""yes" 1>&6
11834
11835 THREADS_OBJ="threadpsx.lo"
f6bcfd97 11836 THREADS_LINK=$THREADS_LIB
10f2d63a
VZ
11837
11838else
11839 echo "$ac_t""no" 1>&6
11840
11841 echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6
3fed1840 11842echo "configure:11843: checking for pthread_create in -lc_r" >&5
10f2d63a
VZ
11843ac_lib_var=`echo c_r'_'pthread_create | sed 'y%./+-%__p_%'`
11844if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11845 echo $ac_n "(cached) $ac_c" 1>&6
11846else
11847 ac_save_LIBS="$LIBS"
11848LIBS="-lc_r $LIBS"
11849cat > conftest.$ac_ext <<EOF
3fed1840 11850#line 11851 "configure"
10f2d63a
VZ
11851#include "confdefs.h"
11852/* Override any gcc2 internal prototype to avoid an error. */
11853/* We use char because int might match the return type of a gcc2
11854 builtin and then its argument prototype would still apply. */
11855char pthread_create();
11856
11857int main() {
11858pthread_create()
11859; return 0; }
11860EOF
3fed1840 11861if { (eval echo configure:11862: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
11862 rm -rf conftest*
11863 eval "ac_cv_lib_$ac_lib_var=yes"
11864else
11865 echo "configure: failed program was:" >&5
11866 cat conftest.$ac_ext >&5
11867 rm -rf conftest*
11868 eval "ac_cv_lib_$ac_lib_var=no"
11869fi
11870rm -f conftest*
11871LIBS="$ac_save_LIBS"
11872
11873fi
11874if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11875 echo "$ac_t""yes" 1>&6
11876
11877 THREADS_OBJ="threadpsx.lo"
11878 THREADS_LINK="c_r"
11879
11880else
11881 echo "$ac_t""no" 1>&6
11882
11883 ac_safe=`echo "sys/prctl.h" | sed 'y%./+-%__p_%'`
11884echo $ac_n "checking for sys/prctl.h""... $ac_c" 1>&6
3fed1840 11885echo "configure:11886: checking for sys/prctl.h" >&5
10f2d63a
VZ
11886if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11887 echo $ac_n "(cached) $ac_c" 1>&6
11888else
11889 cat > conftest.$ac_ext <<EOF
3fed1840 11890#line 11891 "configure"
10f2d63a
VZ
11891#include "confdefs.h"
11892#include <sys/prctl.h>
11893EOF
11894ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3fed1840 11895{ (eval echo configure:11896: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
11896ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11897if test -z "$ac_err"; then
11898 rm -rf conftest*
11899 eval "ac_cv_header_$ac_safe=yes"
11900else
11901 echo "$ac_err" >&5
11902 echo "configure: failed program was:" >&5
11903 cat conftest.$ac_ext >&5
11904 rm -rf conftest*
11905 eval "ac_cv_header_$ac_safe=no"
11906fi
11907rm -f conftest*
11908fi
11909if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11910 echo "$ac_t""yes" 1>&6
11911
11912 THREADS_OBJ="threadsgi.lo"
11913
11914else
11915 echo "$ac_t""no" 1>&6
11916fi
11917
11918
11919fi
11920
11921
11922fi
11923
11924
11925 if test -z "$THREADS_OBJ" ; then
11926 wxUSE_THREADS=no
11927 echo "configure: warning: No thread support on this system" 1>&2
11928 fi
11929fi
11930
11931if test "$wxUSE_THREADS" = "yes" ; then
70846f0a
VZ
11932 for ac_func in thr_setconcurrency
11933do
11934echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3fed1840 11935echo "configure:11936: checking for $ac_func" >&5
70846f0a
VZ
11936if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11937 echo $ac_n "(cached) $ac_c" 1>&6
11938else
11939 cat > conftest.$ac_ext <<EOF
3fed1840 11940#line 11941 "configure"
70846f0a
VZ
11941#include "confdefs.h"
11942/* System header to define __stub macros and hopefully few prototypes,
11943 which can conflict with char $ac_func(); below. */
11944#include <assert.h>
11945/* Override any gcc2 internal prototype to avoid an error. */
11946/* We use char because int might match the return type of a gcc2
11947 builtin and then its argument prototype would still apply. */
11948char $ac_func();
11949
11950int main() {
11951
11952/* The GNU C library defines this for functions which it implements
11953 to always fail with ENOSYS. Some functions are actually named
11954 something starting with __ and the normal name is an alias. */
11955#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11956choke me
11957#else
e8482f24 11958$ac_func();
70846f0a
VZ
11959#endif
11960
11961; return 0; }
11962EOF
3fed1840 11963if { (eval echo configure:11964: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
70846f0a
VZ
11964 rm -rf conftest*
11965 eval "ac_cv_func_$ac_func=yes"
11966else
11967 echo "configure: failed program was:" >&5
11968 cat conftest.$ac_ext >&5
11969 rm -rf conftest*
11970 eval "ac_cv_func_$ac_func=no"
11971fi
11972rm -f conftest*
11973fi
11974
11975if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11976 echo "$ac_t""yes" 1>&6
11977 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11978 cat >> confdefs.h <<EOF
11979#define $ac_tr_func 1
11980EOF
11981
11982else
11983 echo "$ac_t""no" 1>&6
11984fi
11985done
11986
11987
10f2d63a
VZ
11988
11989 for ac_hdr in sched.h
11990do
11991ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11992echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3fed1840 11993echo "configure:11994: checking for $ac_hdr" >&5
10f2d63a
VZ
11994if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11995 echo $ac_n "(cached) $ac_c" 1>&6
11996else
11997 cat > conftest.$ac_ext <<EOF
3fed1840 11998#line 11999 "configure"
10f2d63a
VZ
11999#include "confdefs.h"
12000#include <$ac_hdr>
12001EOF
12002ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3fed1840 12003{ (eval echo configure:12004: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
12004ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12005if test -z "$ac_err"; then
12006 rm -rf conftest*
12007 eval "ac_cv_header_$ac_safe=yes"
12008else
12009 echo "$ac_err" >&5
12010 echo "configure: failed program was:" >&5
12011 cat conftest.$ac_ext >&5
12012 rm -rf conftest*
12013 eval "ac_cv_header_$ac_safe=no"
12014fi
12015rm -f conftest*
12016fi
12017if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12018 echo "$ac_t""yes" 1>&6
12019 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12020 cat >> confdefs.h <<EOF
12021#define $ac_tr_hdr 1
12022EOF
12023
12024else
12025 echo "$ac_t""no" 1>&6
12026fi
12027done
12028
12029
12030 echo $ac_n "checking for sched_yield in -l$THREADS_LINK""... $ac_c" 1>&6
3fed1840 12031echo "configure:12032: checking for sched_yield in -l$THREADS_LINK" >&5
10f2d63a
VZ
12032ac_lib_var=`echo $THREADS_LINK'_'sched_yield | sed 'y%./+-%__p_%'`
12033if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12034 echo $ac_n "(cached) $ac_c" 1>&6
12035else
12036 ac_save_LIBS="$LIBS"
12037LIBS="-l$THREADS_LINK $LIBS"
12038cat > conftest.$ac_ext <<EOF
3fed1840 12039#line 12040 "configure"
10f2d63a
VZ
12040#include "confdefs.h"
12041/* Override any gcc2 internal prototype to avoid an error. */
12042/* We use char because int might match the return type of a gcc2
12043 builtin and then its argument prototype would still apply. */
12044char sched_yield();
12045
12046int main() {
12047sched_yield()
12048; return 0; }
12049EOF
3fed1840 12050if { (eval echo configure:12051: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
12051 rm -rf conftest*
12052 eval "ac_cv_lib_$ac_lib_var=yes"
12053else
12054 echo "configure: failed program was:" >&5
12055 cat conftest.$ac_ext >&5
12056 rm -rf conftest*
12057 eval "ac_cv_lib_$ac_lib_var=no"
12058fi
12059rm -f conftest*
12060LIBS="$ac_save_LIBS"
12061
12062fi
12063if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12064 echo "$ac_t""yes" 1>&6
12065 cat >> confdefs.h <<\EOF
12066#define HAVE_SCHED_YIELD 1
12067EOF
12068
12069else
12070 echo "$ac_t""no" 1>&6
12071echo $ac_n "checking for sched_yield in -l"posix4"""... $ac_c" 1>&6
3fed1840 12072echo "configure:12073: checking for sched_yield in -l"posix4"" >&5
10f2d63a
VZ
12073ac_lib_var=`echo "posix4"'_'sched_yield | sed 'y%./+-%__p_%'`
12074if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12075 echo $ac_n "(cached) $ac_c" 1>&6
12076else
12077 ac_save_LIBS="$LIBS"
12078LIBS="-l"posix4" $LIBS"
12079cat > conftest.$ac_ext <<EOF
3fed1840 12080#line 12081 "configure"
10f2d63a
VZ
12081#include "confdefs.h"
12082/* Override any gcc2 internal prototype to avoid an error. */
12083/* We use char because int might match the return type of a gcc2
12084 builtin and then its argument prototype would still apply. */
12085char sched_yield();
12086
12087int main() {
12088sched_yield()
12089; return 0; }
12090EOF
3fed1840 12091if { (eval echo configure:12092: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
12092 rm -rf conftest*
12093 eval "ac_cv_lib_$ac_lib_var=yes"
12094else
12095 echo "configure: failed program was:" >&5
12096 cat conftest.$ac_ext >&5
12097 rm -rf conftest*
12098 eval "ac_cv_lib_$ac_lib_var=no"
12099fi
12100rm -f conftest*
12101LIBS="$ac_save_LIBS"
12102
12103fi
12104if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12105 echo "$ac_t""yes" 1>&6
12106 cat >> confdefs.h <<\EOF
12107#define HAVE_SCHED_YIELD 1
12108EOF
12109 POSIX4_LINK="-lposix4"
12110else
12111 echo "$ac_t""no" 1>&6
12112echo "configure: warning: wxThread::Yield will not work properly" 1>&2
12113
12114fi
12115
12116
12117fi
12118
12119
f6bcfd97
BP
12120 HAVE_PRIOR_FUNCS=0
12121 echo $ac_n "checking for pthread_attr_getschedpolicy in -l$THREADS_LINK""... $ac_c" 1>&6
3fed1840 12122echo "configure:12123: checking for pthread_attr_getschedpolicy in -l$THREADS_LINK" >&5
10f2d63a
VZ
12123ac_lib_var=`echo $THREADS_LINK'_'pthread_attr_getschedpolicy | sed 'y%./+-%__p_%'`
12124if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12125 echo $ac_n "(cached) $ac_c" 1>&6
12126else
12127 ac_save_LIBS="$LIBS"
12128LIBS="-l$THREADS_LINK $LIBS"
12129cat > conftest.$ac_ext <<EOF
3fed1840 12130#line 12131 "configure"
10f2d63a
VZ
12131#include "confdefs.h"
12132/* Override any gcc2 internal prototype to avoid an error. */
12133/* We use char because int might match the return type of a gcc2
12134 builtin and then its argument prototype would still apply. */
12135char pthread_attr_getschedpolicy();
12136
12137int main() {
12138pthread_attr_getschedpolicy()
12139; return 0; }
12140EOF
3fed1840 12141if { (eval echo configure:12142: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
12142 rm -rf conftest*
12143 eval "ac_cv_lib_$ac_lib_var=yes"
12144else
12145 echo "configure: failed program was:" >&5
12146 cat conftest.$ac_ext >&5
12147 rm -rf conftest*
12148 eval "ac_cv_lib_$ac_lib_var=no"
12149fi
12150rm -f conftest*
12151LIBS="$ac_save_LIBS"
12152
12153fi
12154if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12155 echo "$ac_t""yes" 1>&6
f6bcfd97 12156 echo $ac_n "checking for pthread_attr_setschedparam in -l$THREADS_LINK""... $ac_c" 1>&6
3fed1840 12157echo "configure:12158: checking for pthread_attr_setschedparam in -l$THREADS_LINK" >&5
f6bcfd97
BP
12158ac_lib_var=`echo $THREADS_LINK'_'pthread_attr_setschedparam | sed 'y%./+-%__p_%'`
12159if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12160 echo $ac_n "(cached) $ac_c" 1>&6
12161else
12162 ac_save_LIBS="$LIBS"
12163LIBS="-l$THREADS_LINK $LIBS"
12164cat > conftest.$ac_ext <<EOF
3fed1840 12165#line 12166 "configure"
f6bcfd97
BP
12166#include "confdefs.h"
12167/* Override any gcc2 internal prototype to avoid an error. */
12168/* We use char because int might match the return type of a gcc2
12169 builtin and then its argument prototype would still apply. */
12170char pthread_attr_setschedparam();
12171
12172int main() {
12173pthread_attr_setschedparam()
12174; return 0; }
10f2d63a 12175EOF
3fed1840 12176if { (eval echo configure:12177: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
f6bcfd97
BP
12177 rm -rf conftest*
12178 eval "ac_cv_lib_$ac_lib_var=yes"
12179else
12180 echo "configure: failed program was:" >&5
12181 cat conftest.$ac_ext >&5
12182 rm -rf conftest*
12183 eval "ac_cv_lib_$ac_lib_var=no"
12184fi
12185rm -f conftest*
12186LIBS="$ac_save_LIBS"
10f2d63a 12187
f6bcfd97
BP
12188fi
12189if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12190 echo "$ac_t""yes" 1>&6
12191 echo $ac_n "checking for sched_get_priority_max in -l$THREADS_LINK""... $ac_c" 1>&6
3fed1840 12192echo "configure:12193: checking for sched_get_priority_max in -l$THREADS_LINK" >&5
f6bcfd97
BP
12193ac_lib_var=`echo $THREADS_LINK'_'sched_get_priority_max | sed 'y%./+-%__p_%'`
12194if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12195 echo $ac_n "(cached) $ac_c" 1>&6
12196else
12197 ac_save_LIBS="$LIBS"
12198LIBS="-l$THREADS_LINK $LIBS"
12199cat > conftest.$ac_ext <<EOF
3fed1840 12200#line 12201 "configure"
f6bcfd97
BP
12201#include "confdefs.h"
12202/* Override any gcc2 internal prototype to avoid an error. */
12203/* We use char because int might match the return type of a gcc2
12204 builtin and then its argument prototype would still apply. */
12205char sched_get_priority_max();
12206
12207int main() {
12208sched_get_priority_max()
12209; return 0; }
12210EOF
3fed1840 12211if { (eval echo configure:12212: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
f6bcfd97
BP
12212 rm -rf conftest*
12213 eval "ac_cv_lib_$ac_lib_var=yes"
12214else
12215 echo "configure: failed program was:" >&5
12216 cat conftest.$ac_ext >&5
12217 rm -rf conftest*
12218 eval "ac_cv_lib_$ac_lib_var=no"
12219fi
12220rm -f conftest*
12221LIBS="$ac_save_LIBS"
12222
12223fi
12224if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12225 echo "$ac_t""yes" 1>&6
12226 HAVE_PRIOR_FUNCS=1
10f2d63a
VZ
12227else
12228 echo "$ac_t""no" 1>&6
f6bcfd97 12229echo $ac_n "checking for sched_get_priority_max in -l"posix4"""... $ac_c" 1>&6
3fed1840 12230echo "configure:12231: checking for sched_get_priority_max in -l"posix4"" >&5
f6bcfd97 12231ac_lib_var=`echo "posix4"'_'sched_get_priority_max | sed 'y%./+-%__p_%'`
10f2d63a
VZ
12232if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12233 echo $ac_n "(cached) $ac_c" 1>&6
12234else
12235 ac_save_LIBS="$LIBS"
12236LIBS="-l"posix4" $LIBS"
12237cat > conftest.$ac_ext <<EOF
3fed1840 12238#line 12239 "configure"
10f2d63a
VZ
12239#include "confdefs.h"
12240/* Override any gcc2 internal prototype to avoid an error. */
12241/* We use char because int might match the return type of a gcc2
12242 builtin and then its argument prototype would still apply. */
f6bcfd97 12243char sched_get_priority_max();
10f2d63a
VZ
12244
12245int main() {
f6bcfd97 12246sched_get_priority_max()
10f2d63a
VZ
12247; return 0; }
12248EOF
3fed1840 12249if { (eval echo configure:12250: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
12250 rm -rf conftest*
12251 eval "ac_cv_lib_$ac_lib_var=yes"
12252else
12253 echo "configure: failed program was:" >&5
12254 cat conftest.$ac_ext >&5
12255 rm -rf conftest*
12256 eval "ac_cv_lib_$ac_lib_var=no"
12257fi
12258rm -f conftest*
12259LIBS="$ac_save_LIBS"
12260
12261fi
12262if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12263 echo "$ac_t""yes" 1>&6
f6bcfd97
BP
12264
12265 HAVE_PRIOR_FUNCS=1
12266 POSIX4_LINK="-lposix4"
12267
12268else
12269 echo "$ac_t""no" 1>&6
12270fi
12271
12272
12273fi
12274
12275
10f2d63a
VZ
12276else
12277 echo "$ac_t""no" 1>&6
10f2d63a
VZ
12278fi
12279
12280
f6bcfd97
BP
12281else
12282 echo "$ac_t""no" 1>&6
10f2d63a
VZ
12283fi
12284
12285
f6bcfd97
BP
12286 if test "$HAVE_PRIOR_FUNCS" = 1; then
12287 cat >> confdefs.h <<\EOF
12288#define HAVE_THREAD_PRIORITY_FUNCTIONS 1
12289EOF
12290
12291 else
12292 echo "configure: warning: Setting thread priority will not work" 1>&2
12293 fi
12294
10f2d63a 12295 echo $ac_n "checking for pthread_cancel in -l$THREADS_LINK""... $ac_c" 1>&6
3fed1840 12296echo "configure:12297: checking for pthread_cancel in -l$THREADS_LINK" >&5
10f2d63a
VZ
12297ac_lib_var=`echo $THREADS_LINK'_'pthread_cancel | sed 'y%./+-%__p_%'`
12298if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12299 echo $ac_n "(cached) $ac_c" 1>&6
12300else
12301 ac_save_LIBS="$LIBS"
12302LIBS="-l$THREADS_LINK $LIBS"
12303cat > conftest.$ac_ext <<EOF
3fed1840 12304#line 12305 "configure"
10f2d63a
VZ
12305#include "confdefs.h"
12306/* Override any gcc2 internal prototype to avoid an error. */
12307/* We use char because int might match the return type of a gcc2
12308 builtin and then its argument prototype would still apply. */
12309char pthread_cancel();
12310
12311int main() {
12312pthread_cancel()
12313; return 0; }
12314EOF
3fed1840 12315if { (eval echo configure:12316: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
12316 rm -rf conftest*
12317 eval "ac_cv_lib_$ac_lib_var=yes"
12318else
12319 echo "configure: failed program was:" >&5
12320 cat conftest.$ac_ext >&5
12321 rm -rf conftest*
12322 eval "ac_cv_lib_$ac_lib_var=no"
12323fi
12324rm -f conftest*
12325LIBS="$ac_save_LIBS"
12326
12327fi
12328if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12329 echo "$ac_t""yes" 1>&6
12330 cat >> confdefs.h <<\EOF
12331#define HAVE_PTHREAD_CANCEL 1
12332EOF
12333
12334else
12335 echo "$ac_t""no" 1>&6
12336echo "configure: warning: wxThread::Kill() will not work properly" 1>&2
12337fi
12338
12339
12340 echo $ac_n "checking for pthread_cleanup_push/pop""... $ac_c" 1>&6
3fed1840 12341echo "configure:12342: checking for pthread_cleanup_push/pop" >&5
10f2d63a
VZ
12342if eval "test \"`echo '$''{'wx_cv_func_pthread_cleanup_push'+set}'`\" = set"; then
12343 echo $ac_n "(cached) $ac_c" 1>&6
12344else
12345
12346 cat > conftest.$ac_ext <<EOF
3fed1840 12347#line 12348 "configure"
10f2d63a
VZ
12348#include "confdefs.h"
12349#include <pthread.h>
12350int main() {
12351
12352 pthread_cleanup_push(NULL, NULL);
12353 pthread_cleanup_pop(0);
12354
12355; return 0; }
12356EOF
3fed1840 12357if { (eval echo configure:12358: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10f2d63a
VZ
12358 rm -rf conftest*
12359
12360 wx_cv_func_pthread_cleanup_push=yes
12361 cat >> confdefs.h <<\EOF
12362#define HAVE_THREAD_CLEANUP_FUNCTIONS 1
12363EOF
12364
12365
12366else
12367 echo "configure: failed program was:" >&5
12368 cat conftest.$ac_ext >&5
12369 rm -rf conftest*
12370
12371 wx_cv_func_pthread_cleanup_push=no
12372
12373fi
12374rm -f conftest*
12375
12376fi
12377
12378echo "$ac_t""$wx_cv_func_pthread_cleanup_push" 1>&6
12379
12380 THREADS_LINK="-l$THREADS_LINK"
12381fi
12382
12383fi
12384
12385if test "$wxUSE_THREADS" = "yes"; then
12386 cat >> confdefs.h <<\EOF
12387#define wxUSE_THREADS 1
12388EOF
12389
12390
12391 CFLAGS="${CFLAGS} -D_REENTRANT"
12392 CXXFLAGS="${CXXFLAGS} -D_REENTRANT"
12393
12394 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
12395else
12396 if test "$ac_cv_func_strtok_r" = "yes"; then
ab9b9eab 12397 echo $ac_n "checking if -D_REENTRANT is needed""... $ac_c" 1>&6
3fed1840 12398echo "configure:12399: checking if -D_REENTRANT is needed" >&5
ab9b9eab
VZ
12399 if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
12400 CFLAGS="${CFLAGS} -D_REENTRANT"
12401 CXXFLAGS="${CXXFLAGS} -D_REENTRANT"
12402 echo "$ac_t""yes" 1>&6
12403 else
12404 echo "$ac_t""no" 1>&6
10f2d63a
VZ
12405 fi
12406 fi
12407fi
12408
6f72b082 12409if test "$WXGTK20" = 1 ; then
13111b2a 12410 cat >> confdefs.h <<EOF
6f72b082 12411#define __WXGTK20__ $WXGTK20
13111b2a
VZ
12412EOF
12413
12414 WXGTK12=1
12415fi
12416
10f2d63a
VZ
12417if test "$WXGTK12" = 1 ; then
12418 cat >> confdefs.h <<EOF
12419#define __WXGTK12__ $WXGTK12
12420EOF
12421
12422fi
12423
f6bcfd97
BP
12424if test "$WXGTK127" = 1 ; then
12425 cat >> confdefs.h <<EOF
12426#define __WXGTK127__ $WXGTK127
12427EOF
12428
12429fi
12430
10f2d63a
VZ
12431if test "$WXWINE" = 1 ; then
12432 TOOLKIT_DEF="${TOOLKIT_DEF} -D__WXWINE__"
12433fi
12434
12435if test "$wxUSE_CYGWIN" = 1 ; then
12436 TOOLKIT_DEF="${TOOLKIT_DEF} -D__WIN95__"
12437fi
12438
12439WXDEBUG=
12440
12441if test "$wxUSE_DEBUG_INFO" = "yes" ; then
12442 WXDEBUG="-g"
12443 wxUSE_OPTIMISE=no
12444fi
12445
12446if test "$wxUSE_DEBUG_GDB" = "yes" ; then
12447 wxUSE_DEBUG_INFO=yes
12448 WXDEBUG="-ggdb"
12449fi
12450
12451if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
12452 cat >> confdefs.h <<\EOF
12453#define WXDEBUG 1
12454EOF
12455
12456 WXDEBUG_DEFINE="-D__WXDEBUG__"
12457else
12458 if test "$wxUSE_GTK" = 1 ; then
12459 WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS"
12460 fi
12461fi
12462
12463if test "$wxUSE_MEM_TRACING" = "yes" ; then
12464 cat >> confdefs.h <<\EOF
12465#define wxUSE_MEMORY_TRACING 1
12466EOF
12467
12468 cat >> confdefs.h <<\EOF
12469#define wxUSE_GLOBAL_MEMORY_OPERATORS 1
47c13eb7
VS
12470EOF
12471
12472 cat >> confdefs.h <<\EOF
12473#define wxUSE_DEBUG_NEW_ALWAYS 1
10f2d63a
VZ
12474EOF
12475
12476 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
12477fi
12478
12479if test "$wxUSE_DMALLOC" = "yes" ; then
12480 DMALLOC_LINK="-ldmalloc"
12481fi
12482
12483PROFILE=
12484if test "$wxUSE_PROFILE" = "yes" ; then
12485 PROFILE="-pg"
12486fi
12487
12488DEP_INFO_FLAGS=
caa2c79b 12489CODE_GEN_FLAGS=
10f2d63a
VZ
12490if test "$GCC" = yes ; then
12491 if test "$wxUSE_NO_RTTI" = "yes" ; then
caa2c79b 12492 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fno-rtti"
10f2d63a
VZ
12493 fi
12494 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
caa2c79b 12495 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fno-exceptions"
10f2d63a
VZ
12496 fi
12497 if test "$wxUSE_PERMISSIVE" = "yes" ; then
caa2c79b 12498 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive"
10f2d63a
VZ
12499 fi
12500 if test "$wxUSE_NO_DEPS" = "no" ; then
12501 DEP_INFO_FLAGS="-MMD"
12502 fi
12503fi
12504
12505
12506CXXFLAGS=`echo "${CXXFLAGS}" | sed "s/\-O.//g" `
12507CFLAGS=`echo "${CFLAGS}" | sed "s/\-O.//g" `
12508if test "$wxUSE_OPTIMISE" = "no" ; then
12509 OPTIMISE=
12510else
12511 if test "$GCC" = yes ; then
12512 OPTIMISE="-O2"
12513 case "${host}" in
12514 i586-*-*|i686-*-* )
12515 OPTIMISE="${OPTIMISE} "
12516 ;;
12517 esac
12518 else
12519 OPTIMISE="-O"
12520 fi
12521fi
12522
12523
12524ZLIB_INCLUDE=
422107f9 12525if test "$wxUSE_ZLIB" = "yes" -o "$wxUSE_ZLIB" = "sys" ; then
10f2d63a
VZ
12526 cat >> confdefs.h <<\EOF
12527#define wxUSE_ZLIB 1
12528EOF
12529
422107f9
VZ
12530 if test "$wxUSE_ZLIB" = "yes" ; then
12531 ZLIB_INCLUDE="-I\${top_srcdir}/src/zlib"
12532 else
12533 ZLIB_LINK=
12534 ac_safe=`echo "zlib.h" | sed 'y%./+-%__p_%'`
12535echo $ac_n "checking for zlib.h""... $ac_c" 1>&6
3fed1840 12536echo "configure:12537: checking for zlib.h" >&5
422107f9
VZ
12537if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12538 echo $ac_n "(cached) $ac_c" 1>&6
12539else
12540 cat > conftest.$ac_ext <<EOF
3fed1840 12541#line 12542 "configure"
422107f9
VZ
12542#include "confdefs.h"
12543#include <zlib.h>
12544EOF
12545ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3fed1840 12546{ (eval echo configure:12547: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
422107f9
VZ
12547ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12548if test -z "$ac_err"; then
12549 rm -rf conftest*
12550 eval "ac_cv_header_$ac_safe=yes"
12551else
12552 echo "$ac_err" >&5
12553 echo "configure: failed program was:" >&5
12554 cat conftest.$ac_ext >&5
12555 rm -rf conftest*
12556 eval "ac_cv_header_$ac_safe=no"
12557fi
12558rm -f conftest*
12559fi
12560if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12561 echo "$ac_t""yes" 1>&6
12562 echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6
3fed1840 12563echo "configure:12564: checking for deflate in -lz" >&5
422107f9
VZ
12564ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'`
12565if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12566 echo $ac_n "(cached) $ac_c" 1>&6
12567else
12568 ac_save_LIBS="$LIBS"
12569LIBS="-lz $LIBS"
12570cat > conftest.$ac_ext <<EOF
3fed1840 12571#line 12572 "configure"
422107f9
VZ
12572#include "confdefs.h"
12573/* Override any gcc2 internal prototype to avoid an error. */
12574/* We use char because int might match the return type of a gcc2
12575 builtin and then its argument prototype would still apply. */
12576char deflate();
12577
12578int main() {
12579deflate()
12580; return 0; }
12581EOF
3fed1840 12582if { (eval echo configure:12583: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
422107f9
VZ
12583 rm -rf conftest*
12584 eval "ac_cv_lib_$ac_lib_var=yes"
12585else
12586 echo "configure: failed program was:" >&5
12587 cat conftest.$ac_ext >&5
12588 rm -rf conftest*
12589 eval "ac_cv_lib_$ac_lib_var=no"
12590fi
12591rm -f conftest*
12592LIBS="$ac_save_LIBS"
12593
12594fi
12595if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12596 echo "$ac_t""yes" 1>&6
12597 ZLIB_LINK="-lz"
12598else
12599 echo "$ac_t""no" 1>&6
12600fi
12601
12602else
12603 echo "$ac_t""no" 1>&6
12604fi
12605
12606 if test "x$ZLIB_LINK" = "x" ; then
12607 { echo "configure: error: system zlib compression library not found! Use --with-zlib=yes to use built-in zlib" 1>&2; exit 1; }
12608 fi
12609 fi
10f2d63a
VZ
12610fi
12611
12612PNG_INCLUDE=
422107f9 12613if test "$wxUSE_LIBPNG" = "yes" -o "$wxUSE_LIBPNG" = "sys" ; then
10f2d63a
VZ
12614 cat >> confdefs.h <<\EOF
12615#define wxUSE_LIBPNG 1
12616EOF
12617
41fd4136 12618 if test "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
422107f9
VZ
12619 echo "configure: warning: --with-libpng=sys doesn't work without --with-zlib=sys, will compile the built-in libpng instead" 1>&2
12620 wxUSE_LIBPNG=yes
12621 fi
12622
12623 if test "$wxUSE_LIBPNG" = "yes" ; then
12624 PNG_INCLUDE="-I\${top_srcdir}/src/png"
12625 else
12626 PNG_LINK=
12627 ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'`
12628echo $ac_n "checking for png.h""... $ac_c" 1>&6
3fed1840 12629echo "configure:12630: checking for png.h" >&5
422107f9
VZ
12630if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12631 echo $ac_n "(cached) $ac_c" 1>&6
12632else
12633 cat > conftest.$ac_ext <<EOF
3fed1840 12634#line 12635 "configure"
422107f9
VZ
12635#include "confdefs.h"
12636#include <png.h>
12637EOF
12638ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3fed1840 12639{ (eval echo configure:12640: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
422107f9
VZ
12640ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12641if test -z "$ac_err"; then
12642 rm -rf conftest*
12643 eval "ac_cv_header_$ac_safe=yes"
12644else
12645 echo "$ac_err" >&5
12646 echo "configure: failed program was:" >&5
12647 cat conftest.$ac_ext >&5
12648 rm -rf conftest*
12649 eval "ac_cv_header_$ac_safe=no"
12650fi
12651rm -f conftest*
12652fi
12653if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12654 echo "$ac_t""yes" 1>&6
12655 echo $ac_n "checking for png_check_sig in -lpng""... $ac_c" 1>&6
3fed1840 12656echo "configure:12657: checking for png_check_sig in -lpng" >&5
422107f9
VZ
12657ac_lib_var=`echo png'_'png_check_sig | sed 'y%./+-%__p_%'`
12658if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12659 echo $ac_n "(cached) $ac_c" 1>&6
12660else
12661 ac_save_LIBS="$LIBS"
12662LIBS="-lpng -lz -lm $LIBS"
12663cat > conftest.$ac_ext <<EOF
3fed1840 12664#line 12665 "configure"
422107f9
VZ
12665#include "confdefs.h"
12666/* Override any gcc2 internal prototype to avoid an error. */
12667/* We use char because int might match the return type of a gcc2
12668 builtin and then its argument prototype would still apply. */
12669char png_check_sig();
12670
12671int main() {
12672png_check_sig()
12673; return 0; }
12674EOF
3fed1840 12675if { (eval echo configure:12676: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
422107f9
VZ
12676 rm -rf conftest*
12677 eval "ac_cv_lib_$ac_lib_var=yes"
12678else
12679 echo "configure: failed program was:" >&5
12680 cat conftest.$ac_ext >&5
12681 rm -rf conftest*
12682 eval "ac_cv_lib_$ac_lib_var=no"
12683fi
12684rm -f conftest*
12685LIBS="$ac_save_LIBS"
12686
12687fi
12688if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12689 echo "$ac_t""yes" 1>&6
12690 PNG_LINK="-lpng"
12691else
12692 echo "$ac_t""no" 1>&6
12693fi
12694
12695
12696else
12697 echo "$ac_t""no" 1>&6
12698fi
12699
12700 if test "x$PNG_LINK" = "x" ; then
0dcf9893 12701 { echo "configure: error: system png library not found! Use --with-libpng=yes to use the built-in libpng" 1>&2; exit 1; }
422107f9
VZ
12702 fi
12703 fi
12704
10f2d63a
VZ
12705 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
12706fi
12707
12708JPEG_INCLUDE=
422107f9 12709if test "$wxUSE_LIBJPEG" = "yes" -o "$wxUSE_LIBJPEG" = "sys" ; then
10f2d63a
VZ
12710 cat >> confdefs.h <<\EOF
12711#define wxUSE_LIBJPEG 1
12712EOF
12713
422107f9
VZ
12714 if test "$wxUSE_LIBJPEG" = "yes" ; then
12715 JPEG_INCLUDE="-I\${top_srcdir}/src/jpeg"
12716 else
12717 JPEG_LINK=
12718 ac_safe=`echo "jpeglib.h" | sed 'y%./+-%__p_%'`
12719echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6
3fed1840 12720echo "configure:12721: checking for jpeglib.h" >&5
422107f9
VZ
12721if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12722 echo $ac_n "(cached) $ac_c" 1>&6
12723else
12724 cat > conftest.$ac_ext <<EOF
3fed1840 12725#line 12726 "configure"
422107f9
VZ
12726#include "confdefs.h"
12727#include <jpeglib.h>
12728EOF
12729ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3fed1840 12730{ (eval echo configure:12731: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
422107f9
VZ
12731ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12732if test -z "$ac_err"; then
12733 rm -rf conftest*
12734 eval "ac_cv_header_$ac_safe=yes"
12735else
12736 echo "$ac_err" >&5
12737 echo "configure: failed program was:" >&5
12738 cat conftest.$ac_ext >&5
12739 rm -rf conftest*
12740 eval "ac_cv_header_$ac_safe=no"
12741fi
12742rm -f conftest*
12743fi
12744if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12745 echo "$ac_t""yes" 1>&6
12746 echo $ac_n "checking for jpeg_read_header in -ljpeg""... $ac_c" 1>&6
3fed1840 12747echo "configure:12748: checking for jpeg_read_header in -ljpeg" >&5
422107f9
VZ
12748ac_lib_var=`echo jpeg'_'jpeg_read_header | sed 'y%./+-%__p_%'`
12749if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12750 echo $ac_n "(cached) $ac_c" 1>&6
12751else
12752 ac_save_LIBS="$LIBS"
12753LIBS="-ljpeg $LIBS"
12754cat > conftest.$ac_ext <<EOF
3fed1840 12755#line 12756 "configure"
422107f9
VZ
12756#include "confdefs.h"
12757/* Override any gcc2 internal prototype to avoid an error. */
12758/* We use char because int might match the return type of a gcc2
12759 builtin and then its argument prototype would still apply. */
12760char jpeg_read_header();
12761
12762int main() {
12763jpeg_read_header()
12764; return 0; }
12765EOF
3fed1840 12766if { (eval echo configure:12767: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
422107f9
VZ
12767 rm -rf conftest*
12768 eval "ac_cv_lib_$ac_lib_var=yes"
12769else
12770 echo "configure: failed program was:" >&5
12771 cat conftest.$ac_ext >&5
12772 rm -rf conftest*
12773 eval "ac_cv_lib_$ac_lib_var=no"
12774fi
12775rm -f conftest*
12776LIBS="$ac_save_LIBS"
12777
12778fi
12779if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12780 echo "$ac_t""yes" 1>&6
12781 JPEG_LINK="-ljpeg"
12782else
12783 echo "$ac_t""no" 1>&6
12784fi
12785
12786else
12787 echo "$ac_t""no" 1>&6
12788fi
12789
12790 if test "x$JPEG_LINK" = "x" ; then
0dcf9893 12791 { echo "configure: error: system jpeg library not found! Use --with-libjpeg=yes to use the built-in one" 1>&2; exit 1; }
422107f9
VZ
12792 fi
12793 fi
10f2d63a
VZ
12794fi
12795
c7a2bf27 12796TIFF_INCLUDE=
0dcf9893 12797if test "$wxUSE_LIBTIFF" = "yes" -o "$wxUSE_LIBTIFF" = "sys" ; then
c7a2bf27
RR
12798 cat >> confdefs.h <<\EOF
12799#define wxUSE_LIBTIFF 1
12800EOF
12801
0dcf9893
VZ
12802 if test "$wxUSE_LIBTIFF" = "yes" ; then
12803 TIFF_INCLUDE="-I\${top_srcdir}/src/tiff"
12804 else
12805 TIFF_LINK=
12806 ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'`
12807echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6
3fed1840 12808echo "configure:12809: checking for tiffio.h" >&5
0dcf9893
VZ
12809if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12810 echo $ac_n "(cached) $ac_c" 1>&6
12811else
12812 cat > conftest.$ac_ext <<EOF
3fed1840 12813#line 12814 "configure"
0dcf9893
VZ
12814#include "confdefs.h"
12815#include <tiffio.h>
12816EOF
12817ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3fed1840 12818{ (eval echo configure:12819: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
0dcf9893
VZ
12819ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12820if test -z "$ac_err"; then
12821 rm -rf conftest*
12822 eval "ac_cv_header_$ac_safe=yes"
12823else
12824 echo "$ac_err" >&5
12825 echo "configure: failed program was:" >&5
12826 cat conftest.$ac_ext >&5
12827 rm -rf conftest*
12828 eval "ac_cv_header_$ac_safe=no"
12829fi
12830rm -f conftest*
12831fi
12832if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12833 echo "$ac_t""yes" 1>&6
12834 echo $ac_n "checking for TIFFError in -ltiff""... $ac_c" 1>&6
3fed1840 12835echo "configure:12836: checking for TIFFError in -ltiff" >&5
0dcf9893
VZ
12836ac_lib_var=`echo tiff'_'TIFFError | sed 'y%./+-%__p_%'`
12837if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12838 echo $ac_n "(cached) $ac_c" 1>&6
12839else
12840 ac_save_LIBS="$LIBS"
12841LIBS="-ltiff -lm $LIBS"
12842cat > conftest.$ac_ext <<EOF
3fed1840 12843#line 12844 "configure"
0dcf9893
VZ
12844#include "confdefs.h"
12845/* Override any gcc2 internal prototype to avoid an error. */
12846/* We use char because int might match the return type of a gcc2
12847 builtin and then its argument prototype would still apply. */
12848char TIFFError();
12849
12850int main() {
12851TIFFError()
12852; return 0; }
12853EOF
3fed1840 12854if { (eval echo configure:12855: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
0dcf9893
VZ
12855 rm -rf conftest*
12856 eval "ac_cv_lib_$ac_lib_var=yes"
12857else
12858 echo "configure: failed program was:" >&5
12859 cat conftest.$ac_ext >&5
12860 rm -rf conftest*
12861 eval "ac_cv_lib_$ac_lib_var=no"
12862fi
12863rm -f conftest*
12864LIBS="$ac_save_LIBS"
12865
12866fi
12867if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12868 echo "$ac_t""yes" 1>&6
12869 TIFF_LINK="-ltiff"
12870else
12871 echo "$ac_t""no" 1>&6
12872fi
12873
12874else
12875 echo "$ac_t""no" 1>&6
12876fi
12877
12878 if test "x$TIFF_LINK" = "x" ; then
12879 { echo "configure: error: system tiff library not found! Use --with-libtiff=yes to use the built-in one" 1>&2; exit 1; }
12880 fi
12881 fi
c7a2bf27
RR
12882fi
12883
3fed1840
RR
12884FREETYPE_INCLUDE=
12885if test "$wxUSE_FREETYPE" = "yes" -o "$wxUSE_FREETYPE" = "sys" ; then
12886 cat >> confdefs.h <<\EOF
12887#define wxUSE_FREETYPE 1
12888EOF
12889
12890 if test "$wxUSE_FREETYPE" = "yes" ; then
12891 FREETYPE_INCLUDE="-I\${top_srcdir}/src/freetype"
12892 else
12893 FREETYPE_LINK=
12894 ac_safe=`echo "freetype.h" | sed 'y%./+-%__p_%'`
12895echo $ac_n "checking for freetype.h""... $ac_c" 1>&6
12896echo "configure:12897: checking for freetype.h" >&5
12897if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12898 echo $ac_n "(cached) $ac_c" 1>&6
12899else
12900 cat > conftest.$ac_ext <<EOF
12901#line 12902 "configure"
12902#include "confdefs.h"
12903#include <freetype.h>
12904EOF
12905ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12906{ (eval echo configure:12907: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12907ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12908if test -z "$ac_err"; then
12909 rm -rf conftest*
12910 eval "ac_cv_header_$ac_safe=yes"
12911else
12912 echo "$ac_err" >&5
12913 echo "configure: failed program was:" >&5
12914 cat conftest.$ac_ext >&5
12915 rm -rf conftest*
12916 eval "ac_cv_header_$ac_safe=no"
12917fi
12918rm -f conftest*
12919fi
12920if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12921 echo "$ac_t""yes" 1>&6
12922 echo $ac_n "checking for FT_Render_Glyph in -lfreetype""... $ac_c" 1>&6
12923echo "configure:12924: checking for FT_Render_Glyph in -lfreetype" >&5
12924ac_lib_var=`echo freetype'_'FT_Render_Glyph | sed 'y%./+-%__p_%'`
12925if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12926 echo $ac_n "(cached) $ac_c" 1>&6
12927else
12928 ac_save_LIBS="$LIBS"
12929LIBS="-lfreetype -lm $LIBS"
12930cat > conftest.$ac_ext <<EOF
12931#line 12932 "configure"
12932#include "confdefs.h"
12933/* Override any gcc2 internal prototype to avoid an error. */
12934/* We use char because int might match the return type of a gcc2
12935 builtin and then its argument prototype would still apply. */
12936char FT_Render_Glyph();
12937
12938int main() {
12939FT_Render_Glyph()
12940; return 0; }
12941EOF
12942if { (eval echo configure:12943: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12943 rm -rf conftest*
12944 eval "ac_cv_lib_$ac_lib_var=yes"
12945else
12946 echo "configure: failed program was:" >&5
12947 cat conftest.$ac_ext >&5
12948 rm -rf conftest*
12949 eval "ac_cv_lib_$ac_lib_var=no"
12950fi
12951rm -f conftest*
12952LIBS="$ac_save_LIBS"
12953
12954fi
12955if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12956 echo "$ac_t""yes" 1>&6
12957 FREETYPE_LINK="-lfreetype"
12958else
12959 echo "$ac_t""no" 1>&6
12960fi
12961
12962
12963else
12964 echo "$ac_t""no" 1>&6
12965fi
12966
12967 if test "x$FREETYPE_LINK" = "x" ; then
12968 { echo "configure: error: system freetype library not found! Use --with-freetype=yes to use the built-in freetype" 1>&2; exit 1; }
12969 fi
12970 fi
12971fi
12972
10f2d63a
VZ
12973if test "$wxUSE_OPENGL" = "yes"; then
12974 ac_safe=`echo "GL/gl.h" | sed 'y%./+-%__p_%'`
12975echo $ac_n "checking for GL/gl.h""... $ac_c" 1>&6
3fed1840 12976echo "configure:12977: checking for GL/gl.h" >&5
10f2d63a
VZ
12977if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12978 echo $ac_n "(cached) $ac_c" 1>&6
12979else
12980 cat > conftest.$ac_ext <<EOF
3fed1840 12981#line 12982 "configure"
10f2d63a
VZ
12982#include "confdefs.h"
12983#include <GL/gl.h>
12984EOF
12985ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3fed1840 12986{ (eval echo configure:12987: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
12987ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12988if test -z "$ac_err"; then
12989 rm -rf conftest*
12990 eval "ac_cv_header_$ac_safe=yes"
12991else
12992 echo "$ac_err" >&5
12993 echo "configure: failed program was:" >&5
12994 cat conftest.$ac_ext >&5
12995 rm -rf conftest*
12996 eval "ac_cv_header_$ac_safe=no"
12997fi
12998rm -f conftest*
12999fi
13000if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13001 echo "$ac_t""yes" 1>&6
13002
bdad4e7e
RR
13003 cat >> confdefs.h <<\EOF
13004#define wxUSE_OPENGL 1
13005EOF
13006
13007 cat >> confdefs.h <<\EOF
13008#define wxUSE_GLCANVAS 1
13009EOF
13010
13011 echo $ac_n "checking for glFlush in -lGL""... $ac_c" 1>&6
3fed1840 13012echo "configure:13013: checking for glFlush in -lGL" >&5
bdad4e7e 13013ac_lib_var=`echo GL'_'glFlush | sed 'y%./+-%__p_%'`
10f2d63a
VZ
13014if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13015 echo $ac_n "(cached) $ac_c" 1>&6
13016else
13017 ac_save_LIBS="$LIBS"
bdad4e7e 13018LIBS="-lGL $LIBS"
10f2d63a 13019cat > conftest.$ac_ext <<EOF
3fed1840 13020#line 13021 "configure"
10f2d63a
VZ
13021#include "confdefs.h"
13022/* Override any gcc2 internal prototype to avoid an error. */
13023/* We use char because int might match the return type of a gcc2
13024 builtin and then its argument prototype would still apply. */
bdad4e7e 13025char glFlush();
10f2d63a
VZ
13026
13027int main() {
bdad4e7e 13028glFlush()
10f2d63a
VZ
13029; return 0; }
13030EOF
3fed1840 13031if { (eval echo configure:13032: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
13032 rm -rf conftest*
13033 eval "ac_cv_lib_$ac_lib_var=yes"
13034else
13035 echo "configure: failed program was:" >&5
13036 cat conftest.$ac_ext >&5
13037 rm -rf conftest*
13038 eval "ac_cv_lib_$ac_lib_var=no"
13039fi
13040rm -f conftest*
13041LIBS="$ac_save_LIBS"
13042
13043fi
13044if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13045 echo "$ac_t""yes" 1>&6
13046
f6bcfd97 13047 OPENGL_LINK="-lGL -lGLU"
10f2d63a
VZ
13048
13049else
13050 echo "$ac_t""no" 1>&6
13051
bdad4e7e 13052 echo $ac_n "checking for glFlush in -lMesaGL""... $ac_c" 1>&6
3fed1840 13053echo "configure:13054: checking for glFlush in -lMesaGL" >&5
bdad4e7e 13054ac_lib_var=`echo MesaGL'_'glFlush | sed 'y%./+-%__p_%'`
10f2d63a
VZ
13055if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13056 echo $ac_n "(cached) $ac_c" 1>&6
13057else
13058 ac_save_LIBS="$LIBS"
13059LIBS="-lMesaGL $LIBS"
13060cat > conftest.$ac_ext <<EOF
3fed1840 13061#line 13062 "configure"
10f2d63a
VZ
13062#include "confdefs.h"
13063/* Override any gcc2 internal prototype to avoid an error. */
13064/* We use char because int might match the return type of a gcc2
13065 builtin and then its argument prototype would still apply. */
bdad4e7e 13066char glFlush();
10f2d63a
VZ
13067
13068int main() {
bdad4e7e 13069glFlush()
10f2d63a
VZ
13070; return 0; }
13071EOF
3fed1840 13072if { (eval echo configure:13073: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
13073 rm -rf conftest*
13074 eval "ac_cv_lib_$ac_lib_var=yes"
13075else
13076 echo "configure: failed program was:" >&5
13077 cat conftest.$ac_ext >&5
13078 rm -rf conftest*
13079 eval "ac_cv_lib_$ac_lib_var=no"
13080fi
13081rm -f conftest*
13082LIBS="$ac_save_LIBS"
13083
13084fi
13085if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13086 echo "$ac_t""yes" 1>&6
13087
f6bcfd97 13088 OPENGL_LINK="-lMesaGL -lMesaGLU"
10f2d63a
VZ
13089
13090else
13091 echo "$ac_t""no" 1>&6
10f2d63a
VZ
13092fi
13093
13094
13095fi
13096
13097
13098else
13099 echo "$ac_t""no" 1>&6
13100wxUSE_OPENGL=0
13101fi
13102
13103fi
13104
13105
13106if test "$wxUSE_GUI" = "yes"; then
13107 cat >> confdefs.h <<\EOF
13108#define wxUSE_GUI 1
13109EOF
13110
13111
13112 else
13113 cat >> confdefs.h <<\EOF
13114#define wxUSE_NOGUI 1
13115EOF
13116
13117fi
13118
13119
13120if test "$wxUSE_UNIX" = "yes"; then
13121 cat >> confdefs.h <<\EOF
13122#define wxUSE_UNIX 1
13123EOF
13124
13125fi
13126
13127
13128if test "$wxUSE_APPLE_IEEE" = "yes"; then
13129 cat >> confdefs.h <<\EOF
13130#define wxUSE_APPLE_IEEE 1
13131EOF
13132
13133fi
13134
10f2d63a
VZ
13135if test "$wxUSE_WAVE" = "yes"; then
13136 cat >> confdefs.h <<\EOF
13137#define wxUSE_WAVE 1
13138EOF
13139
13140fi
13141
13142if test "$wxUSE_FILE" = "yes"; then
13143 cat >> confdefs.h <<\EOF
13144#define wxUSE_FILE 1
13145EOF
13146
13147fi
13148
24528b0c
VS
13149if test "$wxUSE_FILESYSTEM" = "yes"; then
13150 cat >> confdefs.h <<\EOF
13151#define wxUSE_FILESYSTEM 1
13152EOF
13153
13154fi
13155
10f2d63a
VZ
13156if test "$wxUSE_FS_INET" = "yes"; then
13157 cat >> confdefs.h <<\EOF
13158#define wxUSE_FS_INET 1
13159EOF
13160
13161fi
13162
13163if test "$wxUSE_FS_ZIP" = "yes"; then
13164 cat >> confdefs.h <<\EOF
13165#define wxUSE_FS_ZIP 1
13166EOF
13167
13168fi
13169
13170if test "$wxUSE_ZIPSTREAM" = "yes"; then
13171 cat >> confdefs.h <<\EOF
13172#define wxUSE_ZIPSTREAM 1
13173EOF
13174
13175fi
13176
eb4efbdc
VZ
13177if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
13178 cat >> confdefs.h <<\EOF
13179#define wxUSE_ON_FATAL_EXCEPTION 1
13180EOF
13181
13182fi
13183
10f2d63a
VZ
13184if test "$wxUSE_BUSYINFO" = "yes"; then
13185 cat >> confdefs.h <<\EOF
13186#define wxUSE_BUSYINFO 1
13187EOF
13188
13189fi
13190
13191if test "$wxUSE_STD_IOSTREAM" = "yes"; then
13192 cat >> confdefs.h <<\EOF
13193#define wxUSE_STD_IOSTREAM 1
13194EOF
13195
13196fi
13197
13198if test "$wxUSE_TEXTFILE" = "yes"; then
13199 if test "$wxUSE_FILE" != "yes"; then
13200 echo "configure: warning: wxTextFile requires wxFile and it won't be compiled without it" 1>&2
13201 else
13202 cat >> confdefs.h <<\EOF
13203#define wxUSE_TEXTFILE 1
13204EOF
13205
13206 fi
13207fi
13208
13209if test "$wxUSE_CONFIG" = "yes" ; then
13210 if test "$wxUSE_TEXTFILE" != "yes"; then
13211 echo "configure: warning: wxConfig requires wxTextFile and it won't be compiled without it" 1>&2
13212 else
13213 cat >> confdefs.h <<\EOF
13214#define wxUSE_CONFIG 1
13215EOF
13216
13217 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
13218 fi
13219fi
13220
13221if test "$wxUSE_INTL" = "yes" ; then
13222 if test "$wxUSE_FILE" != "yes"; then
13223 echo "configure: warning: I18n code requires wxFile and it won't be compiled without it" 1>&2
13224 else
13225 cat >> confdefs.h <<\EOF
13226#define wxUSE_INTL 1
13227EOF
13228
13229 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
f6bcfd97 13230 GUIDIST="$GUIDIST INTL_DIST"
10f2d63a
VZ
13231 fi
13232fi
13233
13234if test "$wxUSE_LOG" = "yes"; then
13235 cat >> confdefs.h <<\EOF
13236#define wxUSE_LOG 1
13237EOF
13238
13239fi
13240
13241if test "$wxUSE_LONGLONG" = "yes"; then
13242 cat >> confdefs.h <<\EOF
13243#define wxUSE_LONGLONG 1
13244EOF
13245
13246fi
13247
9b33fe02
VZ
13248if test "$wxUSE_PLOT" = "yes"; then
13249 cat >> confdefs.h <<\EOF
13250#define wxUSE_PLOT 1
13251EOF
13252
13253fi
13254
10f2d63a
VZ
13255if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then
13256 cat >> confdefs.h <<\EOF
13257#define wxUSE_DIALUP_MANAGER 1
13258EOF
13259
70f7a477 13260 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
10f2d63a
VZ
13261fi
13262
13263if test "$wxUSE_STREAMS" = "yes" ; then
13264 cat >> confdefs.h <<\EOF
13265#define wxUSE_STREAMS 1
13266EOF
13267
13268fi
13269
10f2d63a 13270
afc31813 13271if test "$wxUSE_TIMEDATE" = "yes"; then
83307f33
VZ
13272 for ac_func in strptime
13273do
13274echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3fed1840 13275echo "configure:13276: checking for $ac_func" >&5
83307f33
VZ
13276if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13277 echo $ac_n "(cached) $ac_c" 1>&6
13278else
13279 cat > conftest.$ac_ext <<EOF
3fed1840 13280#line 13281 "configure"
83307f33
VZ
13281#include "confdefs.h"
13282/* System header to define __stub macros and hopefully few prototypes,
13283 which can conflict with char $ac_func(); below. */
13284#include <assert.h>
13285/* Override any gcc2 internal prototype to avoid an error. */
13286/* We use char because int might match the return type of a gcc2
13287 builtin and then its argument prototype would still apply. */
13288char $ac_func();
13289
13290int main() {
13291
13292/* The GNU C library defines this for functions which it implements
13293 to always fail with ENOSYS. Some functions are actually named
13294 something starting with __ and the normal name is an alias. */
13295#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13296choke me
13297#else
e8482f24 13298$ac_func();
83307f33
VZ
13299#endif
13300
13301; return 0; }
13302EOF
3fed1840 13303if { (eval echo configure:13304: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
83307f33
VZ
13304 rm -rf conftest*
13305 eval "ac_cv_func_$ac_func=yes"
13306else
13307 echo "configure: failed program was:" >&5
13308 cat conftest.$ac_ext >&5
13309 rm -rf conftest*
13310 eval "ac_cv_func_$ac_func=no"
13311fi
13312rm -f conftest*
13313fi
13314
13315if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13316 echo "$ac_t""yes" 1>&6
13317 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13318 cat >> confdefs.h <<EOF
13319#define $ac_tr_func 1
13320EOF
13321
13322else
13323 echo "$ac_t""no" 1>&6
13324fi
13325done
13326
13327
360d6699 13328 echo $ac_n "checking for timezone variable in <time.h>""... $ac_c" 1>&6
3fed1840 13329echo "configure:13330: checking for timezone variable in <time.h>" >&5
360d6699
VZ
13330if eval "test \"`echo '$''{'wx_cv_var_timezone'+set}'`\" = set"; then
13331 echo $ac_n "(cached) $ac_c" 1>&6
13332else
13333
13334 cat > conftest.$ac_ext <<EOF
3fed1840 13335#line 13336 "configure"
360d6699
VZ
13336#include "confdefs.h"
13337
13338 #include <time.h>
13339
13340int main() {
13341
13342 int tz;
13343 tz = __timezone;
13344
13345; return 0; }
13346EOF
3fed1840 13347if { (eval echo configure:13348: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
360d6699
VZ
13348 rm -rf conftest*
13349
13350 wx_cv_var_timezone=__timezone
13351
13352else
13353 echo "configure: failed program was:" >&5
13354 cat conftest.$ac_ext >&5
13355 rm -rf conftest*
13356
13357 cat > conftest.$ac_ext <<EOF
3fed1840 13358#line 13359 "configure"
360d6699
VZ
13359#include "confdefs.h"
13360
13361 #include <time.h>
13362
13363int main() {
13364
13365 int tz;
13366 tz = _timezone;
13367
13368; return 0; }
13369EOF
3fed1840 13370if { (eval echo configure:13371: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
360d6699
VZ
13371 rm -rf conftest*
13372
13373 wx_cv_var_timezone=_timezone
13374
5357c8e8
VZ
13375else
13376 echo "configure: failed program was:" >&5
13377 cat conftest.$ac_ext >&5
13378 rm -rf conftest*
13379
13380 cat > conftest.$ac_ext <<EOF
3fed1840 13381#line 13382 "configure"
5357c8e8
VZ
13382#include "confdefs.h"
13383
13384 #include <time.h>
13385
13386int main() {
13387
13388 int tz;
13389 tz = timezone;
13390
13391; return 0; }
13392EOF
3fed1840 13393if { (eval echo configure:13394: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5357c8e8
VZ
13394 rm -rf conftest*
13395
13396 wx_cv_var_timezone=timezone
13397
360d6699
VZ
13398else
13399 echo "configure: failed program was:" >&5
13400 cat conftest.$ac_ext >&5
13401 rm -rf conftest*
13402 { echo "configure: error: no timezone variable" 1>&2; exit 1; }
5357c8e8
VZ
13403
13404fi
13405rm -f conftest*
13406
360d6699
VZ
13407
13408fi
13409rm -f conftest*
13410
13411
13412fi
13413rm -f conftest*
13414
13415
13416fi
13417
13418echo "$ac_t""$wx_cv_var_timezone" 1>&6
13419
13420 cat >> confdefs.h <<EOF
13421#define WX_TIMEZONE $wx_cv_var_timezone
13422EOF
13423
13424
3fcdd07b 13425 for ac_func in localtime
afc31813
VZ
13426do
13427echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3fed1840 13428echo "configure:13429: checking for $ac_func" >&5
afc31813
VZ
13429if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13430 echo $ac_n "(cached) $ac_c" 1>&6
13431else
13432 cat > conftest.$ac_ext <<EOF
3fed1840 13433#line 13434 "configure"
10f2d63a 13434#include "confdefs.h"
afc31813
VZ
13435/* System header to define __stub macros and hopefully few prototypes,
13436 which can conflict with char $ac_func(); below. */
13437#include <assert.h>
13438/* Override any gcc2 internal prototype to avoid an error. */
13439/* We use char because int might match the return type of a gcc2
13440 builtin and then its argument prototype would still apply. */
13441char $ac_func();
13442
10f2d63a 13443int main() {
afc31813
VZ
13444
13445/* The GNU C library defines this for functions which it implements
13446 to always fail with ENOSYS. Some functions are actually named
13447 something starting with __ and the normal name is an alias. */
13448#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13449choke me
13450#else
e8482f24 13451$ac_func();
afc31813
VZ
13452#endif
13453
10f2d63a
VZ
13454; return 0; }
13455EOF
3fed1840 13456if { (eval echo configure:13457: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a 13457 rm -rf conftest*
afc31813 13458 eval "ac_cv_func_$ac_func=yes"
10f2d63a
VZ
13459else
13460 echo "configure: failed program was:" >&5
13461 cat conftest.$ac_ext >&5
13462 rm -rf conftest*
afc31813
VZ
13463 eval "ac_cv_func_$ac_func=no"
13464fi
13465rm -f conftest*
13466fi
13467
13468if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13469 echo "$ac_t""yes" 1>&6
13470 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13471 cat >> confdefs.h <<EOF
13472#define $ac_tr_func 1
13473EOF
3fcdd07b 13474
afc31813
VZ
13475else
13476 echo "$ac_t""no" 1>&6
13477fi
13478done
13479
13480
0470b1e6
VZ
13481 if test "$ac_cv_func_localtime" = "yes"; then
13482 echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6
3fed1840 13483echo "configure:13484: checking for tm_gmtoff in struct tm" >&5
0470b1e6
VZ
13484if eval "test \"`echo '$''{'wx_cv_struct_tm_has_gmtoff'+set}'`\" = set"; then
13485 echo $ac_n "(cached) $ac_c" 1>&6
13486else
13487
13488 cat > conftest.$ac_ext <<EOF
3fed1840 13489#line 13490 "configure"
0470b1e6
VZ
13490#include "confdefs.h"
13491
13492 #include <time.h>
13493
13494int main() {
13495
13496 struct tm tm;
13497 tm.tm_gmtoff++;
13498
13499; return 0; }
13500EOF
3fed1840 13501if { (eval echo configure:13502: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
0470b1e6
VZ
13502 rm -rf conftest*
13503
f03a98d8 13504 wx_cv_struct_tm_has_gmtoff=yes
0470b1e6
VZ
13505 cat >> confdefs.h <<\EOF
13506#define WX_GMTOFF_IN_TM 1
13507EOF
13508
13509
13510else
13511 echo "configure: failed program was:" >&5
13512 cat conftest.$ac_ext >&5
13513 rm -rf conftest*
13514 wx_cv_struct_tm_has_gmtoff=no
13515
13516fi
13517rm -f conftest*
13518
13519fi
13520
13521echo "$ac_t""$wx_cv_struct_tm_has_gmtoff" 1>&6
3fcdd07b
VZ
13522 fi
13523
13524 for ac_func in gettimeofday ftime
13525do
13526echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3fed1840 13527echo "configure:13528: checking for $ac_func" >&5
3fcdd07b
VZ
13528if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13529 echo $ac_n "(cached) $ac_c" 1>&6
13530else
13531 cat > conftest.$ac_ext <<EOF
3fed1840 13532#line 13533 "configure"
3fcdd07b
VZ
13533#include "confdefs.h"
13534/* System header to define __stub macros and hopefully few prototypes,
13535 which can conflict with char $ac_func(); below. */
13536#include <assert.h>
13537/* Override any gcc2 internal prototype to avoid an error. */
13538/* We use char because int might match the return type of a gcc2
13539 builtin and then its argument prototype would still apply. */
13540char $ac_func();
13541
13542int main() {
13543
13544/* The GNU C library defines this for functions which it implements
13545 to always fail with ENOSYS. Some functions are actually named
13546 something starting with __ and the normal name is an alias. */
13547#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13548choke me
13549#else
e8482f24 13550$ac_func();
3fcdd07b
VZ
13551#endif
13552
13553; return 0; }
13554EOF
3fed1840 13555if { (eval echo configure:13556: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3fcdd07b
VZ
13556 rm -rf conftest*
13557 eval "ac_cv_func_$ac_func=yes"
13558else
13559 echo "configure: failed program was:" >&5
13560 cat conftest.$ac_ext >&5
13561 rm -rf conftest*
13562 eval "ac_cv_func_$ac_func=no"
13563fi
13564rm -f conftest*
13565fi
13566
13567if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13568 echo "$ac_t""yes" 1>&6
13569 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13570 cat >> confdefs.h <<EOF
13571#define $ac_tr_func 1
13572EOF
13573 break
13574else
13575 echo "$ac_t""no" 1>&6
13576fi
13577done
13578
13579
13580 if test "$ac_cv_func_gettimeofday" = "yes"; then
afc31813 13581 echo $ac_n "checking whether gettimeofday takes two arguments""... $ac_c" 1>&6
3fed1840 13582echo "configure:13583: checking whether gettimeofday takes two arguments" >&5
afc31813
VZ
13583if eval "test \"`echo '$''{'wx_cv_func_gettimeofday_has_2_args'+set}'`\" = set"; then
13584 echo $ac_n "(cached) $ac_c" 1>&6
13585else
13586
13587
13588 ac_ext=C
13589# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13590ac_cpp='$CXXCPP $CPPFLAGS'
13591ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13592ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13593cross_compiling=$ac_cv_prog_cxx_cross
13594
13595
13596 cat > conftest.$ac_ext <<EOF
3fed1840 13597#line 13598 "configure"
10f2d63a 13598#include "confdefs.h"
afc31813
VZ
13599
13600 #include <sys/time.h>
13601 #include <unistd.h>
13602
10f2d63a 13603int main() {
afc31813
VZ
13604
13605 struct timeval tv;
13606 struct timezone tz;
13607 gettimeofday(&tv, &tz);
13608
10f2d63a
VZ
13609; return 0; }
13610EOF
3fed1840 13611if { (eval echo configure:13612: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10f2d63a 13612 rm -rf conftest*
afc31813 13613 wx_cv_func_gettimeofday_has_2_args=yes
10f2d63a
VZ
13614else
13615 echo "configure: failed program was:" >&5
13616 cat conftest.$ac_ext >&5
13617 rm -rf conftest*
13618 cat > conftest.$ac_ext <<EOF
3fed1840 13619#line 13620 "configure"
10f2d63a 13620#include "confdefs.h"
afc31813
VZ
13621
13622 #include <sys/time.h>
13623 #include <unistd.h>
13624
10f2d63a 13625int main() {
afc31813
VZ
13626
13627 struct timeval tv;
13628 gettimeofday(&tv);
13629
10f2d63a
VZ
13630; return 0; }
13631EOF
3fed1840 13632if { (eval echo configure:13633: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10f2d63a 13633 rm -rf conftest*
afc31813 13634 wx_cv_func_gettimeofday_has_2_args=no
10f2d63a
VZ
13635else
13636 echo "configure: failed program was:" >&5
13637 cat conftest.$ac_ext >&5
13638 rm -rf conftest*
afc31813
VZ
13639 wx_cv_func_gettimeofday_has_2_args=unknown
13640
10f2d63a
VZ
13641fi
13642rm -f conftest*
afc31813 13643
10f2d63a
VZ
13644fi
13645rm -f conftest*
afc31813 13646 ac_ext=c
10f2d63a
VZ
13647# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13648ac_cpp='$CPP $CPPFLAGS'
13649ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13650ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13651cross_compiling=$ac_cv_prog_cc_cross
13652
afc31813
VZ
13653
13654fi
13655
13656echo "$ac_t""$wx_cv_func_gettimeofday_has_2_args" 1>&6
c63c7106 13657
afc31813
VZ
13658 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
13659 cat >> confdefs.h <<\EOF
13660#define WX_GETTIMEOFDAY_NO_TZ 1
13661EOF
13662
13663 fi
13664 fi
13665
13666 cat >> confdefs.h <<\EOF
13667#define wxUSE_TIMEDATE 1
13668EOF
13669
13670 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
13671fi
13672
13673
b089607b
VZ
13674if test "$TOOLKIT" != "MSW"; then
13675
afc31813 13676if test "$wxUSE_SOCKETS" = "yes"; then
c63c7106 13677 echo $ac_n "checking for socket""... $ac_c" 1>&6
3fed1840 13678echo "configure:13679: checking for socket" >&5
c63c7106
VZ
13679if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
13680 echo $ac_n "(cached) $ac_c" 1>&6
13681else
13682 cat > conftest.$ac_ext <<EOF
3fed1840 13683#line 13684 "configure"
c63c7106
VZ
13684#include "confdefs.h"
13685/* System header to define __stub macros and hopefully few prototypes,
13686 which can conflict with char socket(); below. */
13687#include <assert.h>
13688/* Override any gcc2 internal prototype to avoid an error. */
13689/* We use char because int might match the return type of a gcc2
13690 builtin and then its argument prototype would still apply. */
13691char socket();
13692
13693int main() {
13694
13695/* The GNU C library defines this for functions which it implements
13696 to always fail with ENOSYS. Some functions are actually named
13697 something starting with __ and the normal name is an alias. */
13698#if defined (__stub_socket) || defined (__stub___socket)
13699choke me
13700#else
e8482f24 13701socket();
c63c7106
VZ
13702#endif
13703
13704; return 0; }
13705EOF
3fed1840 13706if { (eval echo configure:13707: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
c63c7106
VZ
13707 rm -rf conftest*
13708 eval "ac_cv_func_socket=yes"
13709else
13710 echo "configure: failed program was:" >&5
13711 cat conftest.$ac_ext >&5
13712 rm -rf conftest*
13713 eval "ac_cv_func_socket=no"
13714fi
13715rm -f conftest*
13716fi
13717
13718if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
13719 echo "$ac_t""yes" 1>&6
13720 :
13721else
13722 echo "$ac_t""no" 1>&6
13723echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
3fed1840 13724echo "configure:13725: checking for socket in -lsocket" >&5
c63c7106
VZ
13725ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
13726if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13727 echo $ac_n "(cached) $ac_c" 1>&6
13728else
13729 ac_save_LIBS="$LIBS"
13730LIBS="-lsocket $LIBS"
13731cat > conftest.$ac_ext <<EOF
3fed1840 13732#line 13733 "configure"
c63c7106
VZ
13733#include "confdefs.h"
13734/* Override any gcc2 internal prototype to avoid an error. */
13735/* We use char because int might match the return type of a gcc2
13736 builtin and then its argument prototype would still apply. */
13737char socket();
13738
13739int main() {
13740socket()
13741; return 0; }
13742EOF
3fed1840 13743if { (eval echo configure:13744: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
c63c7106
VZ
13744 rm -rf conftest*
13745 eval "ac_cv_lib_$ac_lib_var=yes"
13746else
13747 echo "configure: failed program was:" >&5
13748 cat conftest.$ac_ext >&5
13749 rm -rf conftest*
13750 eval "ac_cv_lib_$ac_lib_var=no"
13751fi
13752rm -f conftest*
13753LIBS="$ac_save_LIBS"
13754
13755fi
13756if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13757 echo "$ac_t""yes" 1>&6
13758 INET_LINK="$INET_LINK -lsocket"
c63c7106
VZ
13759else
13760 echo "$ac_t""no" 1>&6
afc31813
VZ
13761
13762 echo "configure: warning: socket library not found - sockets will be disabled" 1>&2
13763 wxUSE_SOCKETS=no
13764
13765
c63c7106
VZ
13766fi
13767
13768
13769fi
13770
10f2d63a
VZ
13771fi
13772
b089607b
VZ
13773fi
13774
afc31813 13775if test "$wxUSE_SOCKETS" = "yes" ; then
51a9faba 13776 echo $ac_n "checking what is the type of the third argument of getsockname""... $ac_c" 1>&6
3fed1840 13777echo "configure:13778: checking what is the type of the third argument of getsockname" >&5
51a9faba
VZ
13778if eval "test \"`echo '$''{'wx_cv_type_getsockname3'+set}'`\" = set"; then
13779 echo $ac_n "(cached) $ac_c" 1>&6
13780else
13781
13782
13783 ac_ext=C
afc31813
VZ
13784# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13785ac_cpp='$CXXCPP $CPPFLAGS'
13786ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13787ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13788cross_compiling=$ac_cv_prog_cxx_cross
13789
51a9faba
VZ
13790
13791 cat > conftest.$ac_ext <<EOF
3fed1840 13792#line 13793 "configure"
afc31813 13793#include "confdefs.h"
51a9faba 13794
3ace2e6d 13795 #include <sys/types.h>
51a9faba
VZ
13796 #include <sys/socket.h>
13797
afc31813 13798int main() {
51a9faba
VZ
13799
13800 socklen_t len;
13801 getsockname(0, 0, &len);
13802
afc31813
VZ
13803; return 0; }
13804EOF
3fed1840 13805if { (eval echo configure:13806: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
afc31813 13806 rm -rf conftest*
51a9faba 13807 wx_cv_type_getsockname3=socklen_t
afc31813
VZ
13808else
13809 echo "configure: failed program was:" >&5
13810 cat conftest.$ac_ext >&5
13811 rm -rf conftest*
13812 cat > conftest.$ac_ext <<EOF
3fed1840 13813#line 13814 "configure"
afc31813 13814#include "confdefs.h"
51a9faba 13815
3ace2e6d 13816 #include <sys/types.h>
51a9faba
VZ
13817 #include <sys/socket.h>
13818
afc31813 13819int main() {
51a9faba
VZ
13820
13821 size_t len;
13822 getsockname(0, 0, &len);
13823
afc31813
VZ
13824; return 0; }
13825EOF
3fed1840 13826if { (eval echo configure:13827: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
afc31813 13827 rm -rf conftest*
51a9faba 13828 wx_cv_type_getsockname3=size_t
afc31813
VZ
13829else
13830 echo "configure: failed program was:" >&5
13831 cat conftest.$ac_ext >&5
13832 rm -rf conftest*
13833 cat > conftest.$ac_ext <<EOF
3fed1840 13834#line 13835 "configure"
afc31813 13835#include "confdefs.h"
51a9faba 13836
3ace2e6d 13837 #include <sys/types.h>
51a9faba
VZ
13838 #include <sys/socket.h>
13839
afc31813 13840int main() {
51a9faba
VZ
13841
13842 int len;
13843 getsockname(0, 0, &len);
13844
afc31813
VZ
13845; return 0; }
13846EOF
3fed1840 13847if { (eval echo configure:13848: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
afc31813 13848 rm -rf conftest*
51a9faba 13849 wx_cv_type_getsockname3=int
afc31813
VZ
13850else
13851 echo "configure: failed program was:" >&5
13852 cat conftest.$ac_ext >&5
3ace2e6d
SN
13853 rm -rf conftest*
13854 wx_cv_type_getsockname3=unknown
13855
afc31813
VZ
13856fi
13857rm -f conftest*
51a9faba 13858
afc31813
VZ
13859fi
13860rm -f conftest*
51a9faba 13861
afc31813
VZ
13862fi
13863rm -f conftest*
51a9faba
VZ
13864
13865 ac_ext=c
afc31813
VZ
13866# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13867ac_cpp='$CPP $CPPFLAGS'
13868ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13869ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13870cross_compiling=$ac_cv_prog_cc_cross
13871
51a9faba
VZ
13872
13873fi
13874
13875echo "$ac_t""$wx_cv_type_getsockname3" 1>&6
13876
13877 if test "$wx_cv_type_getsockname3" = "unknown"; then
13878 wxUSE_SOCKETS=no
13879 echo "configure: warning: Couldn't find socklen_t synonym for this system" 1>&2
13880 else
13881 cat >> confdefs.h <<EOF
13882#define SOCKLEN_T $wx_cv_type_getsockname3
13883EOF
13884
13885 fi
13886fi
afc31813 13887
51a9faba 13888if test "$wxUSE_SOCKETS" = "yes" ; then
afc31813
VZ
13889 cat >> confdefs.h <<\EOF
13890#define wxUSE_SOCKETS 1
13891EOF
13892
70f7a477 13893 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
afc31813
VZ
13894 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS protocol"
13895fi
13896
10f2d63a 13897
dc3d889d
VZ
13898if test "$wxUSE_GUI" = "yes"; then
13899
b089607b
VZ
13900if test "$TOOLKIT" != "MSW"; then
13901
ceded8b9 13902if test "$wxUSE_JOYSTICK" = "yes"; then
10f2d63a
VZ
13903 for ac_hdr in linux/joystick.h
13904do
13905ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13906echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3fed1840 13907echo "configure:13908: checking for $ac_hdr" >&5
10f2d63a
VZ
13908if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
13909 echo $ac_n "(cached) $ac_c" 1>&6
13910else
13911 cat > conftest.$ac_ext <<EOF
3fed1840 13912#line 13913 "configure"
10f2d63a
VZ
13913#include "confdefs.h"
13914#include <$ac_hdr>
13915EOF
13916ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3fed1840 13917{ (eval echo configure:13918: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
13918ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13919if test -z "$ac_err"; then
13920 rm -rf conftest*
13921 eval "ac_cv_header_$ac_safe=yes"
13922else
13923 echo "$ac_err" >&5
13924 echo "configure: failed program was:" >&5
13925 cat conftest.$ac_ext >&5
13926 rm -rf conftest*
13927 eval "ac_cv_header_$ac_safe=no"
13928fi
13929rm -f conftest*
13930fi
13931if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13932 echo "$ac_t""yes" 1>&6
13933 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13934 cat >> confdefs.h <<EOF
13935#define $ac_tr_hdr 1
13936EOF
13937
13938else
13939 echo "$ac_t""no" 1>&6
13940fi
13941done
13942
b089607b 13943 if test "$ac_cv_header_linux_joystick_h" != "yes"; then
ceded8b9 13944 wxUSE_JOYSTICK=no
dc3d889d 13945 echo "configure: warning: Joystick not supported by this system" 1>&2
b089607b
VZ
13946 fi
13947fi
13948
13949fi
13950
ceded8b9 13951if test "$wxUSE_JOYSTICK" = "yes"; then
10f2d63a
VZ
13952 cat >> confdefs.h <<\EOF
13953#define wxUSE_JOYSTICK 1
13954EOF
13955
13956 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
10f2d63a
VZ
13957fi
13958
dc3d889d
VZ
13959fi
13960
10f2d63a 13961
b089607b
VZ
13962if test "$TOOLKIT" != "MSW"; then
13963
10f2d63a
VZ
13964HAVE_DL_FUNCS=0
13965HAVE_SHL_FUNCS=0
13966if test "$wxUSE_DYNLIB_CLASS" = "yes"; then
13967 for ac_func in dlopen
13968do
13969echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3fed1840 13970echo "configure:13971: checking for $ac_func" >&5
10f2d63a
VZ
13971if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13972 echo $ac_n "(cached) $ac_c" 1>&6
13973else
13974 cat > conftest.$ac_ext <<EOF
3fed1840 13975#line 13976 "configure"
10f2d63a
VZ
13976#include "confdefs.h"
13977/* System header to define __stub macros and hopefully few prototypes,
13978 which can conflict with char $ac_func(); below. */
13979#include <assert.h>
13980/* Override any gcc2 internal prototype to avoid an error. */
13981/* We use char because int might match the return type of a gcc2
13982 builtin and then its argument prototype would still apply. */
13983char $ac_func();
13984
13985int main() {
13986
13987/* The GNU C library defines this for functions which it implements
13988 to always fail with ENOSYS. Some functions are actually named
13989 something starting with __ and the normal name is an alias. */
13990#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13991choke me
13992#else
e8482f24 13993$ac_func();
10f2d63a
VZ
13994#endif
13995
13996; return 0; }
13997EOF
3fed1840 13998if { (eval echo configure:13999: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
13999 rm -rf conftest*
14000 eval "ac_cv_func_$ac_func=yes"
14001else
14002 echo "configure: failed program was:" >&5
14003 cat conftest.$ac_ext >&5
14004 rm -rf conftest*
14005 eval "ac_cv_func_$ac_func=no"
14006fi
14007rm -f conftest*
14008fi
14009
14010if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14011 echo "$ac_t""yes" 1>&6
14012 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14013 cat >> confdefs.h <<EOF
14014#define $ac_tr_func 1
14015EOF
14016
14017 cat >> confdefs.h <<\EOF
14018#define HAVE_DLOPEN 1
14019EOF
14020
14021 HAVE_DL_FUNCS=1
14022
14023else
14024 echo "$ac_t""no" 1>&6
14025echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
3fed1840 14026echo "configure:14027: checking for dlopen in -ldl" >&5
10f2d63a
VZ
14027ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
14028if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14029 echo $ac_n "(cached) $ac_c" 1>&6
14030else
14031 ac_save_LIBS="$LIBS"
14032LIBS="-ldl $LIBS"
14033cat > conftest.$ac_ext <<EOF
3fed1840 14034#line 14035 "configure"
10f2d63a
VZ
14035#include "confdefs.h"
14036/* Override any gcc2 internal prototype to avoid an error. */
14037/* We use char because int might match the return type of a gcc2
14038 builtin and then its argument prototype would still apply. */
14039char dlopen();
14040
14041int main() {
14042dlopen()
14043; return 0; }
14044EOF
3fed1840 14045if { (eval echo configure:14046: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
14046 rm -rf conftest*
14047 eval "ac_cv_lib_$ac_lib_var=yes"
14048else
14049 echo "configure: failed program was:" >&5
14050 cat conftest.$ac_ext >&5
14051 rm -rf conftest*
14052 eval "ac_cv_lib_$ac_lib_var=no"
14053fi
14054rm -f conftest*
14055LIBS="$ac_save_LIBS"
14056
14057fi
14058if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14059 echo "$ac_t""yes" 1>&6
14060
14061 cat >> confdefs.h <<\EOF
14062#define HAVE_DLOPEN 1
14063EOF
14064
14065 HAVE_DL_FUNCS=1
14066 LIBS="$LIBS -ldl"
14067
14068else
14069 echo "$ac_t""no" 1>&6
14070
14071 for ac_func in shl_load
14072do
14073echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3fed1840 14074echo "configure:14075: checking for $ac_func" >&5
10f2d63a
VZ
14075if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14076 echo $ac_n "(cached) $ac_c" 1>&6
14077else
14078 cat > conftest.$ac_ext <<EOF
3fed1840 14079#line 14080 "configure"
10f2d63a
VZ
14080#include "confdefs.h"
14081/* System header to define __stub macros and hopefully few prototypes,
14082 which can conflict with char $ac_func(); below. */
14083#include <assert.h>
14084/* Override any gcc2 internal prototype to avoid an error. */
14085/* We use char because int might match the return type of a gcc2
14086 builtin and then its argument prototype would still apply. */
14087char $ac_func();
14088
14089int main() {
14090
14091/* The GNU C library defines this for functions which it implements
14092 to always fail with ENOSYS. Some functions are actually named
14093 something starting with __ and the normal name is an alias. */
14094#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14095choke me
14096#else
e8482f24 14097$ac_func();
10f2d63a
VZ
14098#endif
14099
14100; return 0; }
14101EOF
3fed1840 14102if { (eval echo configure:14103: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
14103 rm -rf conftest*
14104 eval "ac_cv_func_$ac_func=yes"
14105else
14106 echo "configure: failed program was:" >&5
14107 cat conftest.$ac_ext >&5
14108 rm -rf conftest*
14109 eval "ac_cv_func_$ac_func=no"
14110fi
14111rm -f conftest*
14112fi
14113
14114if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14115 echo "$ac_t""yes" 1>&6
14116 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14117 cat >> confdefs.h <<EOF
14118#define $ac_tr_func 1
14119EOF
14120
14121 cat >> confdefs.h <<\EOF
14122#define HAVE_SHL_LOAD 1
14123EOF
14124
14125 HAVE_SHL_FUNCS=1
14126
14127else
14128 echo "$ac_t""no" 1>&6
f6bcfd97 14129echo $ac_n "checking for dld in -lshl_load""... $ac_c" 1>&6
3fed1840 14130echo "configure:14131: checking for dld in -lshl_load" >&5
f6bcfd97
BP
14131ac_lib_var=`echo shl_load'_'dld | sed 'y%./+-%__p_%'`
14132if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14133 echo $ac_n "(cached) $ac_c" 1>&6
14134else
14135 ac_save_LIBS="$LIBS"
14136LIBS="-lshl_load $LIBS"
14137cat > conftest.$ac_ext <<EOF
3fed1840 14138#line 14139 "configure"
f6bcfd97
BP
14139#include "confdefs.h"
14140/* Override any gcc2 internal prototype to avoid an error. */
14141/* We use char because int might match the return type of a gcc2
14142 builtin and then its argument prototype would still apply. */
14143char dld();
14144
14145int main() {
14146dld()
14147; return 0; }
14148EOF
3fed1840 14149if { (eval echo configure:14150: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
f6bcfd97
BP
14150 rm -rf conftest*
14151 eval "ac_cv_lib_$ac_lib_var=yes"
14152else
14153 echo "configure: failed program was:" >&5
14154 cat conftest.$ac_ext >&5
14155 rm -rf conftest*
14156 eval "ac_cv_lib_$ac_lib_var=no"
14157fi
14158rm -f conftest*
14159LIBS="$ac_save_LIBS"
14160
14161fi
14162if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14163 echo "$ac_t""yes" 1>&6
14164
14165 HAVE_SHL_FUNCS=1
14166 LIBS="$LIBS -ldld"
14167
14168else
14169 echo "$ac_t""no" 1>&6
14170fi
14171
14172
10f2d63a
VZ
14173fi
14174done
14175
14176
14177fi
14178
14179
14180fi
14181done
14182
14183
f6bcfd97
BP
14184 if test "$HAVE_DL_FUNCS" = 1; then
14185 for ac_func in dlerror
14186do
14187echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3fed1840 14188echo "configure:14189: checking for $ac_func" >&5
f6bcfd97
BP
14189if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14190 echo $ac_n "(cached) $ac_c" 1>&6
14191else
14192 cat > conftest.$ac_ext <<EOF
3fed1840 14193#line 14194 "configure"
f6bcfd97
BP
14194#include "confdefs.h"
14195/* System header to define __stub macros and hopefully few prototypes,
14196 which can conflict with char $ac_func(); below. */
14197#include <assert.h>
14198/* Override any gcc2 internal prototype to avoid an error. */
14199/* We use char because int might match the return type of a gcc2
14200 builtin and then its argument prototype would still apply. */
14201char $ac_func();
14202
14203int main() {
14204
14205/* The GNU C library defines this for functions which it implements
14206 to always fail with ENOSYS. Some functions are actually named
14207 something starting with __ and the normal name is an alias. */
14208#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14209choke me
14210#else
14211$ac_func();
14212#endif
14213
14214; return 0; }
14215EOF
3fed1840 14216if { (eval echo configure:14217: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
f6bcfd97
BP
14217 rm -rf conftest*
14218 eval "ac_cv_func_$ac_func=yes"
14219else
14220 echo "configure: failed program was:" >&5
14221 cat conftest.$ac_ext >&5
14222 rm -rf conftest*
14223 eval "ac_cv_func_$ac_func=no"
14224fi
14225rm -f conftest*
14226fi
14227
14228if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14229 echo "$ac_t""yes" 1>&6
14230 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14231 cat >> confdefs.h <<EOF
14232#define $ac_tr_func 1
14233EOF
14234 cat >> confdefs.h <<\EOF
14235#define HAVE_DLERROR 1
14236EOF
14237
14238else
14239 echo "$ac_t""no" 1>&6
14240echo $ac_n "checking for dlerror in -ldl""... $ac_c" 1>&6
3fed1840 14241echo "configure:14242: checking for dlerror in -ldl" >&5
f6bcfd97
BP
14242ac_lib_var=`echo dl'_'dlerror | sed 'y%./+-%__p_%'`
14243if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14244 echo $ac_n "(cached) $ac_c" 1>&6
14245else
14246 ac_save_LIBS="$LIBS"
14247LIBS="-ldl $LIBS"
14248cat > conftest.$ac_ext <<EOF
3fed1840 14249#line 14250 "configure"
f6bcfd97
BP
14250#include "confdefs.h"
14251/* Override any gcc2 internal prototype to avoid an error. */
14252/* We use char because int might match the return type of a gcc2
14253 builtin and then its argument prototype would still apply. */
14254char dlerror();
14255
14256int main() {
14257dlerror()
14258; return 0; }
14259EOF
3fed1840 14260if { (eval echo configure:14261: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
f6bcfd97
BP
14261 rm -rf conftest*
14262 eval "ac_cv_lib_$ac_lib_var=yes"
14263else
14264 echo "configure: failed program was:" >&5
14265 cat conftest.$ac_ext >&5
14266 rm -rf conftest*
14267 eval "ac_cv_lib_$ac_lib_var=no"
14268fi
14269rm -f conftest*
14270LIBS="$ac_save_LIBS"
14271
14272fi
14273if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14274 echo "$ac_t""yes" 1>&6
14275 cat >> confdefs.h <<\EOF
14276#define HAVE_DLERROR 1
14277EOF
14278
14279else
14280 echo "$ac_t""no" 1>&6
14281fi
14282
14283fi
14284done
14285
14286 fi
14287
10f2d63a
VZ
14288 if test "$HAVE_DL_FUNCS" = 0; then
14289 if test "$HAVE_SHL_FUNCS" = 0; then
14290 if test "$USE_UNIX" = 1; then
b12915c1 14291 echo "configure: warning: Missing dynamic loading support, several features will be disabled" 1>&2
10f2d63a
VZ
14292 wxUSE_DYNLIB_CLASS=no
14293 else
b12915c1 14294 echo "configure: warning: Assuming wxLibrary class works on this platform" 1>&2
10f2d63a
VZ
14295 fi
14296 fi
14297 fi
14298fi
14299
b089607b
VZ
14300fi
14301
10f2d63a 14302if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
b12915c1 14303 cat >> confdefs.h <<\EOF
10f2d63a
VZ
14304#define wxUSE_DYNLIB_CLASS 1
14305EOF
14306
b12915c1
VZ
14307else
14308 wxUSE_ODBC=no
14309 wxUSE_SERIAL=no
10f2d63a
VZ
14310fi
14311
14312
14313if test "$wxUSE_UNICODE" = "yes" ; then
14314 cat >> confdefs.h <<\EOF
14315#define wxUSE_UNICODE 1
14316EOF
14317
14318fi
14319
14320if test "$wxUSE_WCSRTOMBS" = "yes" ; then
14321 cat >> confdefs.h <<\EOF
14322#define wxUSE_WCSRTOMBS 1
14323EOF
14324
14325fi
14326
14327if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
14328 cat >> confdefs.h <<\EOF
14329#define wxUSE_EXPERIMENTAL_PRINTF 1
14330EOF
14331
14332fi
14333
14334
b12915c1
VZ
14335if test "$wxUSE_SERIAL" = "yes" ; then
14336 cat >> confdefs.h <<\EOF
14337#define wxUSE_SERIAL 1
14338EOF
14339
14340fi
14341
14342
10f2d63a
VZ
14343IODBC_C_SRC=""
14344if test "$wxUSE_ODBC" = "yes" ; then
14345 cat >> confdefs.h <<\EOF
14346#define wxUSE_ODBC 1
14347EOF
14348
14349 WXODBCFLAG="-D_IODBC_"
14350 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
14351 IODBCOBJS="\$(IODBC_OBJS)"
14352else
14353 IODBCOBJS=
14354fi
14355
14356
14357if test "$wxUSE_POSTSCRIPT" = "yes" ; then
14358 cat >> confdefs.h <<\EOF
14359#define wxUSE_POSTSCRIPT 1
14360EOF
14361
14362fi
14363
14364cat >> confdefs.h <<\EOF
14365#define wxUSE_AFM_FOR_POSTSCRIPT 1
14366EOF
14367
14368
14369cat >> confdefs.h <<\EOF
14370#define wxUSE_NORMALIZED_PS_FONTS 1
14371EOF
14372
14373
14374
14375if test "$wxUSE_CONSTRAINTS" = "yes"; then
14376 cat >> confdefs.h <<\EOF
14377#define wxUSE_CONSTRAINTS 1
14378EOF
14379
14380 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
14381fi
14382
14383if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
14384 cat >> confdefs.h <<\EOF
14385#define wxUSE_MDI_ARCHITECTURE 1
14386EOF
14387
14388 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
14389fi
14390
14391if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
14392 cat >> confdefs.h <<\EOF
14393#define wxUSE_DOC_VIEW_ARCHITECTURE 1
14394EOF
14395
14396 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
14397 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
14398 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
14399 fi
14400fi
14401
14402if test "$wxUSE_HELP" = "yes"; then
14403 cat >> confdefs.h <<\EOF
14404#define wxUSE_HELP 1
14405EOF
14406
14407 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
14408fi
14409
14410if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
14411 if test "$wxUSE_CONSTRAINTS" != "yes"; then
14412 echo "configure: warning: Printing support cannot be used without constraints so it won't be compiled without it" 1>&2
14413 else
14414 cat >> confdefs.h <<\EOF
14415#define wxUSE_PRINTING_ARCHITECTURE 1
14416EOF
14417
14418 fi
14419 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
14420fi
14421
14422if test "$wxUSE_PROLOGIO" = "yes" ; then
14423 cat >> confdefs.h <<\EOF
14424#define wxUSE_PROLOGIO 1
14425EOF
14426
14427fi
14428
14429if test "$wxUSE_RESOURCES" = "yes" ; then
14430 if test "$wxUSE_PROLOGIO" = "yes" ; then
14431 cat >> confdefs.h <<\EOF
14432#define wxUSE_RESOURCES 1
14433EOF
14434
14435 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS resource"
14436 else
14437 echo "configure: warning: wxWindows ressource system requires PrologIO and can't be compiled without it." 1>&2
14438 fi
14439fi
14440
14441if test "$wxUSE_X_RESOURCES" = "yes"; then
14442 cat >> confdefs.h <<\EOF
14443#define wxUSE_X_RESOURCES 1
14444EOF
14445
14446fi
14447
14448
14449if test "$wxUSE_IPC" = "yes"; then
eb4efbdc
VZ
14450 if test "$wxUSE_SOCKETS" != "yes"; then
14451 echo "configure: warning: wxWindows IPC classes require sockets" 1>&2
14452 fi
14453
10f2d63a
VZ
14454 cat >> confdefs.h <<\EOF
14455#define wxUSE_IPC 1
14456EOF
14457
14458fi
14459
14460if test "$wxUSE_CLIPBOARD" = "yes"; then
14461 cat >> confdefs.h <<\EOF
14462#define wxUSE_CLIPBOARD 1
14463EOF
14464
14465fi
14466
14467if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
14468 if test "$wxUSE_GTK" = 1; then
14469 if test "$WXGTK12" != 1; then
14470 echo "configure: warning: Drag and drop is only supported under GTK+ 1.2" 1>&2
14471 wxUSE_DRAG_AND_DROP=no
14472 fi
14473 fi
14474
14475 if test "$wxUSE_MOTIF" = 1; then
14476 echo "configure: warning: Drag and drop is not yet supported under Motif" 1>&2
14477 wxUSE_DRAG_AND_DROP=no
14478 fi
14479
14480 if test "$USE_WIN32" = 1; then
14481 for ac_hdr in ole2.h
14482do
14483ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
14484echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3fed1840 14485echo "configure:14486: checking for $ac_hdr" >&5
10f2d63a
VZ
14486if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
14487 echo $ac_n "(cached) $ac_c" 1>&6
14488else
14489 cat > conftest.$ac_ext <<EOF
3fed1840 14490#line 14491 "configure"
10f2d63a
VZ
14491#include "confdefs.h"
14492#include <$ac_hdr>
14493EOF
14494ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3fed1840 14495{ (eval echo configure:14496: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
14496ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14497if test -z "$ac_err"; then
14498 rm -rf conftest*
14499 eval "ac_cv_header_$ac_safe=yes"
14500else
14501 echo "$ac_err" >&5
14502 echo "configure: failed program was:" >&5
14503 cat conftest.$ac_ext >&5
14504 rm -rf conftest*
14505 eval "ac_cv_header_$ac_safe=no"
14506fi
14507rm -f conftest*
14508fi
14509if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14510 echo "$ac_t""yes" 1>&6
14511 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
14512 cat >> confdefs.h <<EOF
14513#define $ac_tr_hdr 1
14514EOF
14515
14516else
14517 echo "$ac_t""no" 1>&6
14518fi
14519done
14520
14521 if test "x$HAVE_OLE2_H" = x ; then
14522 echo "configure: warning: Drag and drop disabled because OLE headers not found" 1>&2
14523 wxUSE_DRAG_AND_DROP=no
14524 fi
14525 fi
14526
14527 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
14528 cat >> confdefs.h <<\EOF
14529#define wxUSE_DRAG_AND_DROP 1
14530EOF
14531
14532 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
14533 fi
14534
14535fi
14536
14537if test "$wxUSE_SPLINES" = "yes" ; then
14538 cat >> confdefs.h <<\EOF
14539#define wxUSE_SPLINES 1
14540EOF
14541
14542fi
14543
14544
14545if test "$wxUSE_ACCEL" = "yes"; then
14546 cat >> confdefs.h <<\EOF
14547#define wxUSE_ACCEL 1
14548EOF
14549
14550fi
14551
14552if test "$wxUSE_CARET" = "yes"; then
14553 cat >> confdefs.h <<\EOF
14554#define wxUSE_CARET 1
14555EOF
14556
14557 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
14558fi
14559
14560if test "$wxUSE_COMBOBOX" = "yes"; then
14561 cat >> confdefs.h <<\EOF
14562#define wxUSE_COMBOBOX 1
14563EOF
14564
14565fi
14566
14567if test "$wxUSE_CHOICE" = "yes"; then
14568 cat >> confdefs.h <<\EOF
14569#define wxUSE_CHOICE 1
14570EOF
14571
14572fi
14573
14574if test "$wxUSE_BMPBUTTON" = "yes"; then
14575 cat >> confdefs.h <<\EOF
14576#define wxUSE_BMPBUTTON 1
14577EOF
14578
14579fi
14580
14581if test "$wxUSE_CHECKBOX" = "yes"; then
14582 cat >> confdefs.h <<\EOF
14583#define wxUSE_CHECKBOX 1
14584EOF
14585
14586fi
14587
14588if test "$wxUSE_CHECKLST" = "yes"; then
14589 cat >> confdefs.h <<\EOF
14590#define wxUSE_CHECKLISTBOX 1
14591EOF
14592
14593 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
14594fi
14595
14596if test "$wxUSE_GAUGE" = "yes"; then
14597 cat >> confdefs.h <<\EOF
14598#define wxUSE_GAUGE 1
14599EOF
14600
14601fi
14602
d6a55c4b
VZ
14603if test "$wxUSE_NEW_GRID" = "yes"; then
14604 wxUSE_GRID="yes"
10f2d63a 14605 cat >> confdefs.h <<\EOF
d6a55c4b 14606#define wxUSE_NEW_GRID 1
10f2d63a
VZ
14607EOF
14608
d6a55c4b 14609 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS newgrid"
10f2d63a
VZ
14610fi
14611
d6a55c4b 14612if test "$wxUSE_GRID" = "yes"; then
10f2d63a 14613 cat >> confdefs.h <<\EOF
d6a55c4b 14614#define wxUSE_GRID 1
10f2d63a
VZ
14615EOF
14616
d6a55c4b 14617 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
10f2d63a
VZ
14618fi
14619
14620if test "$wxUSE_IMAGLIST" = "yes"; then
14621 cat >> confdefs.h <<\EOF
14622#define wxUSE_IMAGLIST 1
14623EOF
14624
14625fi
14626
14627if test "$wxUSE_LISTBOX" = "yes"; then
14628 cat >> confdefs.h <<\EOF
14629#define wxUSE_LISTBOX 1
14630EOF
14631
14632fi
14633
14634if test "$wxUSE_LISTCTRL" = "yes"; then
14635 if test "$wxUSE_IMAGLIST" = "yes"; then
14636 cat >> confdefs.h <<\EOF
14637#define wxUSE_LISTCTRL 1
14638EOF
14639
14640 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
14641 else
14642 echo "configure: warning: wxListCtrl requires wxImageList and won't be compiled without it" 1>&2
14643 fi
14644fi
14645
14646if test "$wxUSE_NOTEBOOK" = "yes"; then
14647 cat >> confdefs.h <<\EOF
14648#define wxUSE_NOTEBOOK 1
14649EOF
14650
14651 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
14652fi
14653
14654if test "$wxUSE_RADIOBOX" = "yes"; then
14655 cat >> confdefs.h <<\EOF
14656#define wxUSE_RADIOBOX 1
14657EOF
14658
14659fi
14660
14661if test "$wxUSE_RADIOBTN" = "yes"; then
14662 cat >> confdefs.h <<\EOF
14663#define wxUSE_RADIOBTN 1
14664EOF
14665
14666fi
14667
14668if test "$wxUSE_SASH" = "yes"; then
14669 cat >> confdefs.h <<\EOF
14670#define wxUSE_SASH 1
14671EOF
14672
14673 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
14674fi
14675
14676if test "$wxUSE_SCROLLBAR" = "yes"; then
14677 cat >> confdefs.h <<\EOF
14678#define wxUSE_SCROLLBAR 1
14679EOF
14680
741a9306 14681 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
10f2d63a
VZ
14682fi
14683
14684if test "$wxUSE_SLIDER" = "yes"; then
14685 cat >> confdefs.h <<\EOF
14686#define wxUSE_SLIDER 1
14687EOF
14688
14689fi
14690
14691if test "$wxUSE_SPINBTN" = "yes"; then
14692 cat >> confdefs.h <<\EOF
14693#define wxUSE_SPINBTN 1
14694EOF
14695
14696fi
14697
56cfaa52
RR
14698if test "$wxUSE_SPINCTRL" = "yes"; then
14699 cat >> confdefs.h <<\EOF
14700#define wxUSE_SPINCTRL 1
14701EOF
14702
14703fi
14704
10f2d63a
VZ
14705if test "$wxUSE_SPLITTER" = "yes"; then
14706 cat >> confdefs.h <<\EOF
14707#define wxUSE_SPLITTER 1
14708EOF
14709
14710 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
14711fi
14712
14713if test "$wxUSE_STATBMP" = "yes"; then
14714 cat >> confdefs.h <<\EOF
14715#define wxUSE_STATBMP 1
14716EOF
14717
14718fi
14719
14720if test "$wxUSE_STATBOX" = "yes"; then
14721 cat >> confdefs.h <<\EOF
14722#define wxUSE_STATBOX 1
14723EOF
14724
14725fi
14726
14727if test "$wxUSE_STATLINE" = "yes"; then
14728 if test "$wxUSE_WINE" = 1 ; then
14729 echo "configure: warning: wxStaticLine is not supported under WINE" 1>&2
14730 else
14731 cat >> confdefs.h <<\EOF
14732#define wxUSE_STATLINE 1
14733EOF
14734
14735 fi
14736fi
14737
14738if test "$wxUSE_STATUSBAR" = "yes"; then
14739 cat >> confdefs.h <<\EOF
14740#define wxUSE_STATUSBAR 1
14741EOF
14742
2286341c
VZ
14743
14744 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
10f2d63a
VZ
14745fi
14746
14747if test "$wxUSE_TABDIALOG" = "yes"; then
14748 cat >> confdefs.h <<\EOF
14749#define wxUSE_TAB_DIALOG 1
14750EOF
14751
14752 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab"
14753fi
14754
360d6699
VZ
14755if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
14756 cat >> confdefs.h <<\EOF
14757#define wxUSE_TOOLBAR_SIMPLE 1
14758EOF
14759
14760 wxUSE_TOOLBAR="yes"
14761fi
14762
10f2d63a
VZ
14763if test "$wxUSE_TOOLBAR" = "yes"; then
14764 cat >> confdefs.h <<\EOF
14765#define wxUSE_TOOLBAR 1
14766EOF
14767
360d6699
VZ
14768
14769 if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
14770 wxUSE_TOOLBAR_NATIVE="yes"
14771 fi
14772
10f2d63a
VZ
14773 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
14774fi
14775
360d6699
VZ
14776if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
14777 cat >> confdefs.h <<\EOF
14778#define wxUSE_TOOLBAR_NATIVE 1
14779EOF
14780
14781fi
14782
10f2d63a
VZ
14783if test "$wxUSE_TOOLTIPS" = "yes"; then
14784 if test "$wxUSE_MOTIF" = 1; then
14785 echo "configure: warning: wxTooltip not supported yet under Motif" 1>&2
14786 else
14787 if test "$wxUSE_WINE" = 1; then
14788 echo "configure: warning: wxTooltip not supported under WINE" 1>&2
14789 else
14790 cat >> confdefs.h <<\EOF
14791#define wxUSE_TOOLTIPS 1
14792EOF
14793
14794 fi
14795 fi
14796fi
14797
14798if test "$wxUSE_TREECTRL" = "yes"; then
14799 if test "$wxUSE_IMAGLIST" = "yes"; then
14800 cat >> confdefs.h <<\EOF
14801#define wxUSE_TREECTRL 1
14802EOF
14803
14804 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
14805 else
14806 echo "configure: warning: wxTreeCtrl requires wxImageList and won't be compiled without it" 1>&2
14807 fi
14808fi
14809
14810
14811
14812if test "$wxUSE_METAFILE" = "yes"; then
14813 cat >> confdefs.h <<\EOF
14814#define wxUSE_METAFILE 1
14815EOF
14816
14817fi
14818
14819if test "$wxUSE_DIRDLG" = "yes"; then
14820 if test "$wxUSE_CONSTRAINTS" != "yes"; then
14821 echo "configure: warning: wxDirDialog requires constraints so it won't be compiled without them" 1>&2
14822 else
14823 if test "$wxUSE_TREECTRL" != "yes"; then
14824 echo "configure: warning: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" 1>&2
14825 else
14826 cat >> confdefs.h <<\EOF
14827#define wxUSE_DIRDLG 1
14828EOF
14829
14830 fi
14831 fi
14832fi
14833
14834if test "$wxUSE_TEXTDLG" = "yes"; then
14835 cat >> confdefs.h <<\EOF
14836#define wxUSE_TEXTDLG 1
14837EOF
14838
14839fi
14840
14841if test "$wxUSE_STARTUP_TIPS" = "yes"; then
14842 if test "$wxUSE_CONSTRAINTS" != "yes"; then
14843 echo "configure: warning: Startup tips requires constraints and won't be compiled without them" 1>&2
14844 else
14845 cat >> confdefs.h <<\EOF
14846#define wxUSE_STARTUP_TIPS 1
14847EOF
14848
14849 fi
14850fi
14851
14852if test "$wxUSE_PROGRESSDLG" = "yes"; then
14853 if test "$wxUSE_CONSTRAINTS" != "yes"; then
14854 echo "configure: warning: wxProgressDialog requires constraints so it won't be compiled without them" 1>&2
14855 else
14856 cat >> confdefs.h <<\EOF
14857#define wxUSE_PROGRESSDLG 1
14858EOF
14859
14860 fi
14861fi
14862
14863if test "$wxUSE_MINIFRAME" = "yes"; then
14864 cat >> confdefs.h <<\EOF
14865#define wxUSE_MINIFRAME 1
14866EOF
14867
14868 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
14869fi
14870
14871if test "$wxUSE_HTML" = "yes"; then
14872 cat >> confdefs.h <<\EOF
14873#define wxUSE_HTML 1
14874EOF
14875
14876 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html"
14877 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS html"
14878fi
14879
14880if test "$wxUSE_VALIDATORS" = "yes"; then
14881 cat >> confdefs.h <<\EOF
14882#define wxUSE_VALIDATORS 1
14883EOF
14884
14885 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
14886fi
14887
14888if test "$wxUSE_GIF" = "yes" ; then
14889 cat >> confdefs.h <<\EOF
14890#define wxUSE_GIF 1
14891EOF
14892
14893fi
14894
14895if test "$wxUSE_PCX" = "yes" ; then
14896 cat >> confdefs.h <<\EOF
14897#define wxUSE_PCX 1
14898EOF
14899
14900fi
14901
14902if test "$wxUSE_PNM" = "yes" ; then
14903 cat >> confdefs.h <<\EOF
14904#define wxUSE_PNM 1
14905EOF
14906
14907fi
14908
14909
32832908
VZ
14910if test "$cross_compiling" = "yes"; then
14911 OSINFO="\"$host\""
14912else
14913 OSINFO=`uname -s -r -m`
14914 OSINFO="\"$OSINFO\""
14915fi
14916
aaa37c0d
VZ
14917cat >> confdefs.h <<EOF
14918#define WXWIN_OS_DESCRIPTION $OSINFO
14919EOF
14920
14921
14922
f6bcfd97
BP
14923GUILIBS="$GUI_TK_LIBRARY $TOOLKIT_LINK"
14924OPENGL_LIBS="$OPENGL_LINK"
10f2d63a 14925
f6bcfd97 14926EXTRA_LIBS="$LIBS $POSIX4_LINK $INET_LINK $WCHAR_LINK $THREADS_LINK $DMALLOC_LINK $DL_LINK $ZLIB_LINK -lm"
10f2d63a 14927if test "$wxUSE_GUI" = "yes"; then
3fed1840 14928 EXTRA_LIBS="$GUILIBS $PNG_LINK $JPEG_LINK $TIFF_LINK $FREETYPE_LINK $EXTRA_LIBS"
10f2d63a
VZ
14929fi
14930
14931LD_LIBS="\${top_builddir}/lib/${WX_LIBRARY_NAME_STATIC} $EXTRA_LIBS"
14932
3fed1840 14933INCLUDES="-I. -I\${top_builddir}/include -I\${top_srcdir}/include $ZLIB_INCLUDE $PNG_INCLUDE $JPEG_INCLUDE $TIFF_INCLUDE $FREETYPE_INCLUDE $TOOLKIT_INCLUDE"
10f2d63a 14934
f6bcfd97
BP
14935if test "$wxUSE_GTK" = 1; then
14936 WXCONFIG_INCLUDE=""
14937else
14938 WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE"
14939fi
14940
10f2d63a
VZ
14941if test "$GXX" = yes ; then
14942 CXXWARNINGS="-Wall"
d6a55c4b 14943 fi
10f2d63a
VZ
14944EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE $INCLUDES"
14945
f6bcfd97 14946CFLAGS=`echo $CFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \\+/ /g'`
10f2d63a
VZ
14947CXXFLAGS=`echo $CXXFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \+/ /g'`
14948
e694c22c
VZ
14949LDFLAGS="$LDFLAGS $PROFILE"
14950
10f2d63a
VZ
14951if test "$wxUSE_GUI" = "yes"; then
14952
bdad4e7e 14953 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS controls dialogs dragimag drawing dynamic \
bc9027cc 14954 font fractal image menu minimal richedit"
b12915c1 14955
88d3a15c 14956 CPPFLAGS="$CPPFLAGS \$(EXTRADEFS) \$(APPEXTRADEFS)"
10f2d63a
VZ
14957else
14958 SAMPLES_SUBDIRS=""
14959fi
14960
ec14dd32
VZ
14961SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
14962
14963
14964
10f2d63a
VZ
14965
14966
14967
14968
14969
14970
14971
14972
14973
14974
14975
14976
14977
14978
14979
14980
14981
14982
14983
14984
14985
14986
14987
14988
14989
14990
14991
14992
14993
14994
14995
14996
14997
14998
14999
15000
15001
15002
15003
15004
15005
15006
15007
15008
15009
15010
15011
15012
15013
15014
15015
15016
1d62a8b4 15017
bdad4e7e
RR
15018
15019
15020
15021
15022
15023
15024
32832908
VZ
15025
15026
15027
15028
15029
15030
15031
15032
15033
15034
15035
15036
15037
bdad4e7e
RR
15038
15039
15040
e694c22c 15041
b12915c1 15042
2224580a
VZ
15043
15044
15045
15046
dad6c0ea 15047
f6bcfd97
BP
15048
15049
15050
15051
dad6c0ea 15052
caa2c79b 15053
3711412e 15054
10f2d63a
VZ
15055
15056
15057echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
3fed1840 15058echo "configure:15059: checking whether ${MAKE-make} sets \${MAKE}" >&5
10f2d63a
VZ
15059set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
15060if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
15061 echo $ac_n "(cached) $ac_c" 1>&6
15062else
15063 cat > conftestmake <<\EOF
15064all:
15065 @echo 'ac_maketemp="${MAKE}"'
15066EOF
15067# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
15068eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
15069if test -n "$ac_maketemp"; then
15070 eval ac_cv_prog_make_${ac_make}_set=yes
15071else
15072 eval ac_cv_prog_make_${ac_make}_set=no
15073fi
15074rm -f conftestmake
15075fi
15076if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
15077 echo "$ac_t""yes" 1>&6
15078 SET_MAKE=
15079else
15080 echo "$ac_t""no" 1>&6
15081 SET_MAKE="MAKE=${MAKE-make}"
15082fi
15083
15084
00cf1208
RR
15085if test -d include; then
15086 if test -d include/wx; then
15087 if test -d include/wx/${TOOLKIT_DIR}; then
15088 if test -f include/wx/${TOOLKIT_DIR}/setup.h; then
15089 mv -f include/wx/${TOOLKIT_DIR}/setup.h setup.h
15090 fi
15091 fi
15092 fi
15093fi
15094
10f2d63a
VZ
15095
15096
2224580a 15097if test "$wxUSE_GUI" = "yes"; then
ec90f5e5 15098 wx_cv_path_samplesubdirs=$SAMPLES_SUBDIRS
e8482f24
GL
15099 wx_cv_path_ifs=$PATH_IFS
15100 wx_cv_program_ext=$PROGRAM_EXT
15101 wx_cv_target_library=$WX_TARGET_LIBRARY
3711412e 15102 wx_cv_target_libtype=$WX_TARGET_LIBRARY_TYPE
e8482f24 15103 subdirs="demos samples utils contrib"
2224580a
VZ
15104
15105fi
10f2d63a
VZ
15106
15107trap '' 1 2 15
15108cat > confcache <<\EOF
15109# This file is a shell script that caches the results of configure
15110# tests run on this system so they can be shared between configure
15111# scripts and configure runs. It is not useful on other systems.
15112# If it contains results you don't want to keep, you may remove or edit it.
15113#
15114# By default, configure uses ./config.cache as the cache file,
15115# creating it if it does not exist already. You can give configure
15116# the --cache-file=FILE option to use a different cache file; that is
15117# what configure does when it calls configure scripts in
15118# subdirectories, so they share the cache.
15119# Giving --cache-file=/dev/null disables caching, for debugging configure.
15120# config.status only pays attention to the cache file if you give it the
15121# --recheck option to rerun configure.
15122#
15123EOF
15124# The following way of writing the cache mishandles newlines in values,
15125# but we know of no workaround that is simple, portable, and efficient.
15126# So, don't put newlines in cache variables' values.
15127# Ultrix sh set writes to stderr and can't be redirected directly,
15128# and sets the high bit in the cache file unless we assign to the vars.
15129(set) 2>&1 |
15130 case `(ac_space=' '; set | grep ac_space) 2>&1` in
15131 *ac_space=\ *)
15132 # `set' does not quote correctly, so add quotes (double-quote substitution
15133 # turns \\\\ into \\, and sed turns \\ into \).
15134 sed -n \
15135 -e "s/'/'\\\\''/g" \
15136 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
15137 ;;
15138 *)
15139 # `set' quotes correctly as required by POSIX, so do not add quotes.
15140 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
15141 ;;
15142 esac >> confcache
15143if cmp -s $cache_file confcache; then
15144 :
15145else
15146 if test -w $cache_file; then
15147 echo "updating cache $cache_file"
15148 cat confcache > $cache_file
15149 else
15150 echo "not updating unwritable cache $cache_file"
15151 fi
15152fi
15153rm -f confcache
15154
15155trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
15156
15157test "x$prefix" = xNONE && prefix=$ac_default_prefix
15158# Let make expand exec_prefix.
15159test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15160
15161# Any assignment to VPATH causes Sun make to only execute
15162# the first set of double-colon rules, so remove it if not needed.
15163# If there is a colon in the path, we need to keep it.
15164if test "x$srcdir" = x.; then
15165 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
15166fi
15167
15168trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
15169
15170DEFS=-DHAVE_CONFIG_H
15171
15172# Without the "./", some shells look in PATH for config.status.
15173: ${CONFIG_STATUS=./config.status}
15174
15175echo creating $CONFIG_STATUS
15176rm -f $CONFIG_STATUS
15177cat > $CONFIG_STATUS <<EOF
15178#! /bin/sh
15179# Generated automatically by configure.
15180# Run this file to recreate the current configuration.
15181# This directory was configured as follows,
15182# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15183#
15184# $0 $ac_configure_args
15185#
15186# Compiler output produced by configure, useful for debugging
15187# configure, is in ./config.log if it exists.
15188
15189ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
15190for ac_option
15191do
15192 case "\$ac_option" in
15193 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15194 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
15195 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
15196 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
e8482f24 15197 echo "$CONFIG_STATUS generated by autoconf version 2.13"
10f2d63a
VZ
15198 exit 0 ;;
15199 -help | --help | --hel | --he | --h)
15200 echo "\$ac_cs_usage"; exit 0 ;;
15201 *) echo "\$ac_cs_usage"; exit 1 ;;
15202 esac
15203done
15204
15205ac_given_srcdir=$srcdir
15206ac_given_INSTALL="$INSTALL"
15207
15208trap 'rm -fr `echo "
15209 wx-config
15210 src/make.env
15211 src/makeprog.env
15212 src/makelib.env
15213 Makefile
10f2d63a
VZ
15214 setup.h:setup.h.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
15215EOF
15216cat >> $CONFIG_STATUS <<EOF
15217
15218# Protect against being on the right side of a sed subst in config.status.
15219sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
15220 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
15221$ac_vpsub
15222$extrasub
15223s%@SHELL@%$SHELL%g
15224s%@CFLAGS@%$CFLAGS%g
15225s%@CPPFLAGS@%$CPPFLAGS%g
15226s%@CXXFLAGS@%$CXXFLAGS%g
15227s%@FFLAGS@%$FFLAGS%g
15228s%@DEFS@%$DEFS%g
15229s%@LDFLAGS@%$LDFLAGS%g
15230s%@LIBS@%$LIBS%g
15231s%@exec_prefix@%$exec_prefix%g
15232s%@prefix@%$prefix%g
15233s%@program_transform_name@%$program_transform_name%g
15234s%@bindir@%$bindir%g
15235s%@sbindir@%$sbindir%g
15236s%@libexecdir@%$libexecdir%g
15237s%@datadir@%$datadir%g
15238s%@sysconfdir@%$sysconfdir%g
15239s%@sharedstatedir@%$sharedstatedir%g
15240s%@localstatedir@%$localstatedir%g
15241s%@libdir@%$libdir%g
15242s%@includedir@%$includedir%g
15243s%@oldincludedir@%$oldincludedir%g
15244s%@infodir@%$infodir%g
15245s%@mandir@%$mandir%g
7c66a493
VZ
15246s%@host@%$host%g
15247s%@host_alias@%$host_alias%g
15248s%@host_cpu@%$host_cpu%g
15249s%@host_vendor@%$host_vendor%g
15250s%@host_os@%$host_os%g
15251s%@target@%$target%g
15252s%@target_alias@%$target_alias%g
15253s%@target_cpu@%$target_cpu%g
15254s%@target_vendor@%$target_vendor%g
15255s%@target_os@%$target_os%g
15256s%@build@%$build%g
15257s%@build_alias@%$build_alias%g
15258s%@build_cpu@%$build_cpu%g
15259s%@build_vendor@%$build_vendor%g
15260s%@build_os@%$build_os%g
10f2d63a
VZ
15261s%@CC@%$CC%g
15262s%@CPP@%$CPP%g
15263s%@CXX@%$CXX%g
15264s%@CXXCPP@%$CXXCPP%g
15265s%@RANLIB@%$RANLIB%g
15266s%@AR@%$AR%g
15267s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
15268s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
15269s%@INSTALL_DATA@%$INSTALL_DATA%g
15270s%@STRIP@%$STRIP%g
15271s%@YACC@%$YACC%g
15272s%@LEX@%$LEX%g
15273s%@LEXLIB@%$LEXLIB%g
15274s%@LN_S@%$LN_S%g
6f72b082 15275s%@GTK_CONFIG_2_0@%$GTK_CONFIG_2_0%g
10f2d63a
VZ
15276s%@GTK_CONFIG@%$GTK_CONFIG%g
15277s%@GTK_CFLAGS@%$GTK_CFLAGS%g
15278s%@GTK_LIBS@%$GTK_LIBS%g
ab9b9eab
VZ
15279s%@X_CFLAGS@%$X_CFLAGS%g
15280s%@X_PRE_LIBS@%$X_PRE_LIBS%g
15281s%@X_LIBS@%$X_LIBS%g
15282s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
ec14dd32
VZ
15283s%@LEX_STEM@%$LEX_STEM%g
15284s%@PATH_IFS@%$PATH_IFS%g
10f2d63a
VZ
15285s%@WX_MAJOR_VERSION_NUMBER@%$WX_MAJOR_VERSION_NUMBER%g
15286s%@WX_MINOR_VERSION_NUMBER@%$WX_MINOR_VERSION_NUMBER%g
15287s%@WX_RELEASE_NUMBER@%$WX_RELEASE_NUMBER%g
15288s%@WX_LIBRARY_NAME@%$WX_LIBRARY_NAME%g
15289s%@WX_LIBRARY_NAME_STATIC@%$WX_LIBRARY_NAME_STATIC%g
15290s%@WX_LIBRARY_NAME_SHARED@%$WX_LIBRARY_NAME_SHARED%g
15291s%@WX_LIBRARY@%$WX_LIBRARY%g
15292s%@WX_TARGET_LIBRARY@%$WX_TARGET_LIBRARY%g
15293s%@WX_LIBRARY_LINK1@%$WX_LIBRARY_LINK1%g
15294s%@WX_LIBRARY_LINK2@%$WX_LIBRARY_LINK2%g
15295s%@WX_LIBRARY_LINK3@%$WX_LIBRARY_LINK3%g
15296s%@PROGRAM_EXT@%$PROGRAM_EXT%g
bdad4e7e
RR
15297s%@WX_LIBRARY_NAME_GL@%$WX_LIBRARY_NAME_GL%g
15298s%@WX_LIBRARY_NAME_STATIC_GL@%$WX_LIBRARY_NAME_STATIC_GL%g
15299s%@WX_LIBRARY_NAME_SHARED_GL@%$WX_LIBRARY_NAME_SHARED_GL%g
15300s%@WX_LIBRARY_GL@%$WX_LIBRARY_GL%g
15301s%@WX_TARGET_LIBRARY_GL@%$WX_TARGET_LIBRARY_GL%g
15302s%@WX_LIBRARY_LINK1_GL@%$WX_LIBRARY_LINK1_GL%g
15303s%@WX_LIBRARY_LINK2_GL@%$WX_LIBRARY_LINK2_GL%g
15304s%@WX_LIBRARY_LINK3_GL@%$WX_LIBRARY_LINK3_GL%g
10f2d63a
VZ
15305s%@WX_ALL@%$WX_ALL%g
15306s%@WX_ALL_INSTALLED@%$WX_ALL_INSTALLED%g
15307s%@SHARED_LD@%$SHARED_LD%g
15308s%@PIC_FLAG@%$PIC_FLAG%g
15309s%@DEP_INFO_FLAGS@%$DEP_INFO_FLAGS%g
caa2c79b 15310s%@CODE_GEN_FLAGS@%$CODE_GEN_FLAGS%g
1d62a8b4 15311s%@BURNT_LIBRARY_NAME@%$BURNT_LIBRARY_NAME%g
bdad4e7e 15312s%@BURNT_LIBRARY_NAME_GL@%$BURNT_LIBRARY_NAME_GL%g
f6bcfd97 15313s%@WX_TARGET_LIBRARY_SONAME@%$WX_TARGET_LIBRARY_SONAME%g
3711412e 15314s%@WX_TARGET_LIBRARY_TYPE@%$WX_TARGET_LIBRARY_TYPE%g
10f2d63a 15315s%@WXDEBUG_DEFINE@%$WXDEBUG_DEFINE%g
dad6c0ea
VZ
15316s%@USE_GUI@%$USE_GUI%g
15317s%@AFMINSTALL@%$AFMINSTALL%g
10f2d63a
VZ
15318s%@TOOLKIT@%$TOOLKIT%g
15319s%@TOOLKIT_DEF@%$TOOLKIT_DEF%g
15320s%@TOOLKIT_DIR@%$TOOLKIT_DIR%g
f6bcfd97 15321s%@TOOLKIT_NAME@%$TOOLKIT_NAME%g
10f2d63a 15322s%@TOOLKIT_INCLUDE@%$TOOLKIT_INCLUDE%g
f6bcfd97 15323s%@WXCONFIG_INCLUDE@%$WXCONFIG_INCLUDE%g
10f2d63a
VZ
15324s%@GUIHEADERS@%$GUIHEADERS%g
15325s%@GUIOBJS@%$GUIOBJS%g
15326s%@COMMONOBJS@%$COMMONOBJS%g
15327s%@GENERICOBJS@%$GENERICOBJS%g
15328s%@GUIDEPS@%$GUIDEPS%g
15329s%@COMMONDEPS@%$COMMONDEPS%g
15330s%@GENERICDEPS@%$GENERICDEPS%g
15331s%@IODBCOBJS@%$IODBCOBJS%g
15332s%@UNIXOBJS@%$UNIXOBJS%g
15333s%@UNIXDEPS@%$UNIXDEPS%g
15334s%@ALL_OBJECTS@%$ALL_OBJECTS%g
15335s%@ALL_DEPFILES@%$ALL_DEPFILES%g
10f2d63a 15336s%@GUIDIST@%$GUIDIST%g
2224580a
VZ
15337s%@PORT_FILES@%$PORT_FILES%g
15338s%@DISTDIR@%$DISTDIR%g
15339s%@RPM_SPEC@%$RPM_SPEC%g
15340s%@RPM_FILES@%$RPM_FILES%g
10f2d63a
VZ
15341s%@SRC_SUBDIRS@%$SRC_SUBDIRS%g
15342s%@INCLUDE_SUBDIRS@%$INCLUDE_SUBDIRS%g
15343s%@UTILS_SUBDIRS@%$UTILS_SUBDIRS%g
15344s%@DOCS_SUBDIRS@%$DOCS_SUBDIRS%g
15345s%@SAMPLES_SUBDIRS@%$SAMPLES_SUBDIRS%g
15346s%@USER_SUBDIRS@%$USER_SUBDIRS%g
15347s%@EXTRA_LIBS@%$EXTRA_LIBS%g
f6bcfd97 15348s%@OPENGL_LIBS@%$OPENGL_LIBS%g
b12915c1 15349s%@EXTRADEFS@%$EXTRADEFS%g
10f2d63a 15350s%@LD_LIBS@%$LD_LIBS%g
32832908
VZ
15351s%@RCINPUTSWITCH@%$RCINPUTSWITCH%g
15352s%@RCOUTPUTSWITCH@%$RCOUTPUTSWITCH%g
15353s%@RESPROGRAM@%$RESPROGRAM%g
15354s%@RESCOMP@%$RESCOMP%g
15355s%@RESFLAGS@%$RESFLAGS%g
15356s%@DLLTOOL@%$DLLTOOL%g
15357s%@AS@%$AS%g
15358s%@NM@%$NM%g
15359s%@LD@%$LD%g
15360s%@MAKEINFO@%$MAKEINFO%g
10f2d63a 15361s%@SET_MAKE@%$SET_MAKE%g
2224580a 15362s%@subdirs@%$subdirs%g
10f2d63a
VZ
15363
15364CEOF
15365EOF
15366
15367cat >> $CONFIG_STATUS <<\EOF
15368
15369# Split the substitutions into bite-sized pieces for seds with
15370# small command number limits, like on Digital OSF/1 and HP-UX.
15371ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
15372ac_file=1 # Number of current file.
15373ac_beg=1 # First line for current file.
15374ac_end=$ac_max_sed_cmds # Line after last line for current file.
15375ac_more_lines=:
15376ac_sed_cmds=""
15377while $ac_more_lines; do
15378 if test $ac_beg -gt 1; then
15379 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
15380 else
15381 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
15382 fi
15383 if test ! -s conftest.s$ac_file; then
15384 ac_more_lines=false
15385 rm -f conftest.s$ac_file
15386 else
15387 if test -z "$ac_sed_cmds"; then
15388 ac_sed_cmds="sed -f conftest.s$ac_file"
15389 else
15390 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
15391 fi
15392 ac_file=`expr $ac_file + 1`
15393 ac_beg=$ac_end
15394 ac_end=`expr $ac_end + $ac_max_sed_cmds`
15395 fi
15396done
15397if test -z "$ac_sed_cmds"; then
15398 ac_sed_cmds=cat
15399fi
15400EOF
15401
15402cat >> $CONFIG_STATUS <<EOF
15403
15404CONFIG_FILES=\${CONFIG_FILES-"wx-config
15405 src/make.env
15406 src/makeprog.env
15407 src/makelib.env
15408 Makefile
10f2d63a
VZ
15409 "}
15410EOF
15411cat >> $CONFIG_STATUS <<\EOF
15412for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
15413 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
15414 case "$ac_file" in
15415 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
15416 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
15417 *) ac_file_in="${ac_file}.in" ;;
15418 esac
15419
15420 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
15421
15422 # Remove last slash and all that follows it. Not all systems have dirname.
15423 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
15424 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
15425 # The file is in a subdirectory.
15426 test ! -d "$ac_dir" && mkdir "$ac_dir"
15427 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
15428 # A "../" for each directory in $ac_dir_suffix.
15429 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
15430 else
15431 ac_dir_suffix= ac_dots=
15432 fi
15433
15434 case "$ac_given_srcdir" in
15435 .) srcdir=.
15436 if test -z "$ac_dots"; then top_srcdir=.
15437 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
15438 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
15439 *) # Relative path.
15440 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
15441 top_srcdir="$ac_dots$ac_given_srcdir" ;;
15442 esac
15443
15444 case "$ac_given_INSTALL" in
15445 [/$]*) INSTALL="$ac_given_INSTALL" ;;
15446 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
15447 esac
15448
15449 echo creating "$ac_file"
15450 rm -f "$ac_file"
15451 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
15452 case "$ac_file" in
15453 *Makefile*) ac_comsub="1i\\
15454# $configure_input" ;;
15455 *) ac_comsub= ;;
15456 esac
15457
15458 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
15459 sed -e "$ac_comsub
15460s%@configure_input@%$configure_input%g
15461s%@srcdir@%$srcdir%g
15462s%@top_srcdir@%$top_srcdir%g
15463s%@INSTALL@%$INSTALL%g
15464" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
15465fi; done
15466rm -f conftest.s*
15467
15468# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
15469# NAME is the cpp macro being defined and VALUE is the value it is being given.
15470#
15471# ac_d sets the value in "#define NAME VALUE" lines.
15472ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
15473ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
15474ac_dC='\3'
15475ac_dD='%g'
15476# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
15477ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
15478ac_uB='\([ ]\)%\1#\2define\3'
15479ac_uC=' '
15480ac_uD='\4%g'
15481# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
15482ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
15483ac_eB='$%\1#\2define\3'
15484ac_eC=' '
15485ac_eD='%g'
15486
15487if test "${CONFIG_HEADERS+set}" != set; then
15488EOF
15489cat >> $CONFIG_STATUS <<EOF
15490 CONFIG_HEADERS="setup.h:setup.h.in"
15491EOF
15492cat >> $CONFIG_STATUS <<\EOF
15493fi
15494for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
15495 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
15496 case "$ac_file" in
15497 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
15498 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
15499 *) ac_file_in="${ac_file}.in" ;;
15500 esac
15501
15502 echo creating $ac_file
15503
15504 rm -f conftest.frag conftest.in conftest.out
15505 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
15506 cat $ac_file_inputs > conftest.in
15507
15508EOF
15509
15510# Transform confdefs.h into a sed script conftest.vals that substitutes
15511# the proper values into config.h.in to produce config.h. And first:
15512# Protect against being on the right side of a sed subst in config.status.
15513# Protect against being in an unquoted here document in config.status.
15514rm -f conftest.vals
15515cat > conftest.hdr <<\EOF
15516s/[\\&%]/\\&/g
15517s%[\\$`]%\\&%g
15518s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
15519s%ac_d%ac_u%gp
15520s%ac_u%ac_e%gp
15521EOF
15522sed -n -f conftest.hdr confdefs.h > conftest.vals
15523rm -f conftest.hdr
15524
15525# This sed command replaces #undef with comments. This is necessary, for
15526# example, in the case of _POSIX_SOURCE, which is predefined and required
15527# on some systems where configure will not decide to define it.
15528cat >> conftest.vals <<\EOF
15529s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
15530EOF
15531
15532# Break up conftest.vals because some shells have a limit on
15533# the size of here documents, and old seds have small limits too.
15534
15535rm -f conftest.tail
15536while :
15537do
15538 ac_lines=`grep -c . conftest.vals`
15539 # grep -c gives empty output for an empty file on some AIX systems.
15540 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
15541 # Write a limited-size here document to conftest.frag.
15542 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
15543 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
15544 echo 'CEOF
15545 sed -f conftest.frag conftest.in > conftest.out
15546 rm -f conftest.in
15547 mv conftest.out conftest.in
15548' >> $CONFIG_STATUS
15549 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
15550 rm -f conftest.vals
15551 mv conftest.tail conftest.vals
15552done
15553rm -f conftest.vals
15554
15555cat >> $CONFIG_STATUS <<\EOF
15556 rm -f conftest.frag conftest.h
15557 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
15558 cat conftest.in >> conftest.h
15559 rm -f conftest.in
15560 if cmp -s $ac_file conftest.h 2>/dev/null; then
15561 echo "$ac_file is unchanged"
15562 rm -f conftest.h
15563 else
15564 # Remove last slash and all that follows it. Not all systems have dirname.
15565 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
15566 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
15567 # The file is in a subdirectory.
15568 test ! -d "$ac_dir" && mkdir "$ac_dir"
15569 fi
15570 rm -f $ac_file
15571 mv conftest.h $ac_file
15572 fi
15573fi; done
15574
15575EOF
15576cat >> $CONFIG_STATUS <<EOF
15577
15578 TOOLKIT_DIR="${TOOLKIT_DIR}"
f6bcfd97 15579 TOOLKIT_NAME="${TOOLKIT_NAME}"
07eb77a6 15580 LN_S="${LN_S}"
10f2d63a
VZ
15581
15582
15583EOF
15584cat >> $CONFIG_STATUS <<\EOF
15585
15586 chmod +x wx-config
f6bcfd97
BP
15587 mv wx-config wx${TOOLKIT_NAME}-config
15588 ${LN_S} wx${TOOLKIT_NAME}-config wx-config
00cf1208
RR
15589
15590
15591 if test ! -d lib; then
15592 mkdir lib
15593 fi
15594 if test ! -d lib/wx; then
15595 mkdir lib/wx
15596 fi
15597 if test ! -d lib/wx/include; then
15598 mkdir lib/wx/include
15599 fi
15600 if test ! -d lib/wx/include/wx; then
15601 mkdir lib/wx/include/wx
15602 fi
f6bcfd97
BP
15603 if test ! -d lib/wx/include/wx/${TOOLKIT_NAME}; then
15604 mkdir lib/wx/include/wx/${TOOLKIT_NAME}
00cf1208
RR
15605 fi
15606 if test -f setup.h; then
f6bcfd97 15607 cp -f setup.h lib/wx/include/wx/${TOOLKIT_NAME}/setup.h
00cf1208 15608 fi
07eb77a6 15609
00cf1208 15610
10f2d63a
VZ
15611 if test ! -d include; then
15612 mkdir include
15613 fi
15614 if test ! -d include/wx; then
15615 mkdir include/wx
15616 fi
15617 if test ! -d include/wx/${TOOLKIT_DIR}; then
15618 mkdir include/wx/${TOOLKIT_DIR}
15619 fi
afc31813
VZ
15620 if test -f setup.h; then
15621 mv -f setup.h include/wx/${TOOLKIT_DIR}/setup.h
15622 fi
00cf1208 15623
10f2d63a
VZ
15624
15625exit 0
15626EOF
15627chmod +x $CONFIG_STATUS
15628rm -fr confdefs* $ac_clean_files
15629test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
15630
2224580a
VZ
15631if test "$no_recursion" != yes; then
15632
15633 # Remove --cache-file and --srcdir arguments so they do not pile up.
15634 ac_sub_configure_args=
15635 ac_prev=
15636 for ac_arg in $ac_configure_args; do
15637 if test -n "$ac_prev"; then
15638 ac_prev=
15639 continue
15640 fi
15641 case "$ac_arg" in
15642 -cache-file | --cache-file | --cache-fil | --cache-fi \
15643 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
15644 ac_prev=cache_file ;;
15645 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
15646 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
15647 ;;
15648 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
15649 ac_prev=srcdir ;;
15650 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
15651 ;;
15652 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
15653 esac
15654 done
15655
e8482f24 15656 for ac_config_dir in demos samples utils contrib; do
2224580a
VZ
15657
15658 # Do not complain, so a configure script can configure whichever
15659 # parts of a large source tree are present.
15660 if test ! -d $srcdir/$ac_config_dir; then
15661 continue
15662 fi
15663
15664 echo configuring in $ac_config_dir
15665
15666 case "$srcdir" in
15667 .) ;;
15668 *)
15669 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
15670 else
15671 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
15672 fi
15673 ;;
15674 esac
15675
15676 ac_popdir=`pwd`
15677 cd $ac_config_dir
15678
15679 # A "../" for each directory in /$ac_config_dir.
15680 ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
15681
15682 case "$srcdir" in
15683 .) # No --srcdir option. We are building in place.
15684 ac_sub_srcdir=$srcdir ;;
15685 /*) # Absolute path.
15686 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
15687 *) # Relative path.
15688 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
15689 esac
15690
15691 # Check for guested configure; otherwise get Cygnus style configure.
15692 if test -f $ac_sub_srcdir/configure; then
15693 ac_sub_configure=$ac_sub_srcdir/configure
15694 elif test -f $ac_sub_srcdir/configure.in; then
15695 ac_sub_configure=$ac_configure
15696 else
15697 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
15698 ac_sub_configure=
15699 fi
15700
15701 # The recursion is here.
15702 if test -n "$ac_sub_configure"; then
15703
15704 # Make the cache file name correct relative to the subdirectory.
15705 case "$cache_file" in
15706 /*) ac_sub_cache_file=$cache_file ;;
15707 *) # Relative path.
15708 ac_sub_cache_file="$ac_dots$cache_file" ;;
15709 esac
15710 case "$ac_given_INSTALL" in
15711 [/$]*) INSTALL="$ac_given_INSTALL" ;;
15712 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
15713 esac
15714
15715 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
15716 # The eval makes quoting arguments work.
15717 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
15718 then :
15719 else
15720 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
15721 fi
15722 fi
15723
15724 cd $ac_popdir
15725 done
15726fi
15727
10f2d63a 15728