]> git.saurik.com Git - wxWidgets.git/blame - configure
Corrected bug in cmdlpars.tex
[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
e8f65ba6
RR
142--enable-geometry use geometry class"
143ac_help="$ac_help
10f2d63a
VZ
144--enable-log use logging system"
145ac_help="$ac_help
146--enable-streams use wxStream etc classes"
147ac_help="$ac_help
148--enable-file use wxFile classes"
149ac_help="$ac_help
150--enable-textfile use wxTextFile classes"
151ac_help="$ac_help
152--enable-unicode compile wxString with Unicode support"
153ac_help="$ac_help
154--enable-wcsrtombs use wcsrtombs instead of buggy (GNU libc1/Linux libc5) wcstombs"
155ac_help="$ac_help
156--enable-wxprintfv use wxWindows implementation of vprintf()"
157ac_help="$ac_help
10f2d63a
VZ
158--enable-std_iostreams use standard C++ stream classes"
159ac_help="$ac_help
24528b0c
VS
160--enable-filesystem use virtual file systems classes"
161ac_help="$ac_help
10f2d63a
VZ
162--enable-fs_inet use virtual HTTP/FTP filesystems"
163ac_help="$ac_help
164--enable-fs_zip use virtual ZIP filesystems"
165ac_help="$ac_help
166--enable-zipstream use wxZipInputStream"
167ac_help="$ac_help
eb4efbdc
VZ
168--enable-catch_segvs catch signals and pass them to wxApp::OnFatalException"
169ac_help="$ac_help
10f2d63a
VZ
170--enable-threads use threads"
171ac_help="$ac_help
172--enable-serial use class serialization"
173ac_help="$ac_help
174--enable-docview use document view architecture"
175ac_help="$ac_help
176--enable-help use help (using external browser at present)"
177ac_help="$ac_help
178--enable-constraints use layout-constraints system"
179ac_help="$ac_help
180--enable-printarch use printing architecture"
181ac_help="$ac_help
182--enable-mdi use multiple document interface architecture"
183ac_help="$ac_help
184--enable-postscript use wxPostscriptDC device context (default for gtk+)"
185ac_help="$ac_help
186--enable-prologio use Prolog IO library"
187ac_help="$ac_help
188--enable-resources use wxWindows resources"
189ac_help="$ac_help
190--enable-xresources use X resources for save (default for gtk+)"
191ac_help="$ac_help
192--enable-clipboard use wxClipboard classes"
193ac_help="$ac_help
194--enable-dnd use Drag'n'Drop classes"
195ac_help="$ac_help
196--enable-wxtree make wxTree library"
197ac_help="$ac_help
198--enable-controls use all usual controls"
199ac_help="$ac_help
200--enable-accel use accelerators"
201ac_help="$ac_help
202--enable-caret use wxCaret class"
203ac_help="$ac_help
204--enable-bmpbutton use wxBitmapButton class"
205ac_help="$ac_help
206--enable-checkbox use wxCheckBox class"
207ac_help="$ac_help
208--enable-checklst use wxCheckListBox (listbox with checkboxes) class"
209ac_help="$ac_help
210--enable-choice use wxChoice class"
211ac_help="$ac_help
212--enable-combobox use wxComboBox classes"
213ac_help="$ac_help
214--enable-gauge use wxGauge class"
215ac_help="$ac_help
216--enable-grid use wxGrid class"
217ac_help="$ac_help
218--enable-newgrid use new wxGrid class"
219ac_help="$ac_help
220--enable-imaglist use wxImageList class"
221ac_help="$ac_help
222--enable-listbox use wxListBox class"
223ac_help="$ac_help
224--enable-listctrl use wxListCtrl class"
225ac_help="$ac_help
226--enable-notebook use wxNotebook class"
227ac_help="$ac_help
228--enable-radiobox use wxRadioBox class"
229ac_help="$ac_help
230--enable-radiobtn use wxRadioButton class"
231ac_help="$ac_help
232--enable-sash use wxSashWindow class"
233ac_help="$ac_help
234--enable-scrollbar use wxScrollBar class and scrollable windows"
235ac_help="$ac_help
236--enable-slider use wxSlider class"
237ac_help="$ac_help
238--enable-spinbtn use wxSpinButton class"
239ac_help="$ac_help
56cfaa52
RR
240--enable-spinctrl use wxSpinCtrl class"
241ac_help="$ac_help
10f2d63a
VZ
242--enable-splitter use wxSplitterWindow class"
243ac_help="$ac_help
244--enable-statbmp use wxStaticBitmap class"
245ac_help="$ac_help
246--enable-statbox use wxStaticBox class"
247ac_help="$ac_help
248--enable-statline use wxStaticLine class"
249ac_help="$ac_help
250--enable-statusbar use wxStatusBar class"
251ac_help="$ac_help
252--enable-tabdialog use wxTabControl class"
253ac_help="$ac_help
254--enable-toolbar use wxToolBar class"
255ac_help="$ac_help
360d6699
VZ
256--enable-tbarnative use native wxToolBar class"
257ac_help="$ac_help
258--enable-tbarsmpl use wxToolBarSimple class"
259ac_help="$ac_help
10f2d63a
VZ
260--enable-treectrl use wxTreeCtrl class"
261ac_help="$ac_help
262--enable-commondlg use common dialogs (wxDirDialog, wxProgressDialog, wxTextDialog, ...)"
263ac_help="$ac_help
264--enable-dirdlg use wxDirDialog"
265ac_help="$ac_help
266--enable-textdlg use wxTextDialog"
267ac_help="$ac_help
268--enable-tipdlg use startup tips"
269ac_help="$ac_help
270--enable-progressdlg use wxProgressDialog"
271ac_help="$ac_help
272--enable-miniframe use wxMiniFrame class"
273ac_help="$ac_help
274--enable-html use wxHTML sub-library"
275ac_help="$ac_help
276--enable-tooltips use wxToolTip class"
277ac_help="$ac_help
278--enable-splines use spline drawing code"
279ac_help="$ac_help
280--enable-validators use wxValidator and derived classes"
281ac_help="$ac_help
282--enable-busyinfo use wxBusyInfo"
283ac_help="$ac_help
9b33fe02
VZ
284--enable-plot use wxPlot"
285ac_help="$ac_help
f6bcfd97
BP
286--enable-joystick compile in joystick support (Linux only)"
287ac_help="$ac_help
10f2d63a
VZ
288--enable-gif use gif images (GIF file format)"
289ac_help="$ac_help
290--enable-pcx use pcx images (PCX file format)"
291ac_help="$ac_help
292--enable-pnm use pnm images (PNM file format)"
6f72b082
OK
293ac_help="$ac_help
294 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)"
295ac_help="$ac_help
296 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)"
297ac_help="$ac_help
298 --disable-gtktest Do not try to compile and run a test GTK program"
ab9b9eab
VZ
299ac_help="$ac_help
300 --with-x use the X Window System"
10f2d63a
VZ
301
302# Initialize some variables set by options.
303# The variables have the same names as the options, with
304# dashes changed to underlines.
305build=NONE
306cache_file=./config.cache
307exec_prefix=NONE
308host=NONE
309no_create=
310nonopt=NONE
311no_recursion=
312prefix=NONE
313program_prefix=NONE
314program_suffix=NONE
315program_transform_name=s,x,x,
316silent=
317site=
318srcdir=
319target=NONE
320verbose=
321x_includes=NONE
322x_libraries=NONE
323bindir='${exec_prefix}/bin'
324sbindir='${exec_prefix}/sbin'
325libexecdir='${exec_prefix}/libexec'
326datadir='${prefix}/share'
327sysconfdir='${prefix}/etc'
328sharedstatedir='${prefix}/com'
329localstatedir='${prefix}/var'
330libdir='${exec_prefix}/lib'
331includedir='${prefix}/include'
332oldincludedir='/usr/include'
333infodir='${prefix}/info'
334mandir='${prefix}/man'
335
336# Initialize some other variables.
337subdirs=
338MFLAGS= MAKEFLAGS=
339SHELL=${CONFIG_SHELL-/bin/sh}
340# Maximum number of lines to put in a shell here document.
341ac_max_here_lines=12
342
343ac_prev=
344for ac_option
345do
346
347 # If the previous option needs an argument, assign it.
348 if test -n "$ac_prev"; then
349 eval "$ac_prev=\$ac_option"
350 ac_prev=
351 continue
352 fi
353
354 case "$ac_option" in
355 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
356 *) ac_optarg= ;;
357 esac
358
359 # Accept the important Cygnus configure options, so we can diagnose typos.
360
361 case "$ac_option" in
362
363 -bindir | --bindir | --bindi | --bind | --bin | --bi)
364 ac_prev=bindir ;;
365 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
366 bindir="$ac_optarg" ;;
367
368 -build | --build | --buil | --bui | --bu)
369 ac_prev=build ;;
370 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
371 build="$ac_optarg" ;;
372
373 -cache-file | --cache-file | --cache-fil | --cache-fi \
374 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
375 ac_prev=cache_file ;;
376 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
377 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
378 cache_file="$ac_optarg" ;;
379
380 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
381 ac_prev=datadir ;;
382 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
383 | --da=*)
384 datadir="$ac_optarg" ;;
385
386 -disable-* | --disable-*)
387 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
388 # Reject names that are not valid shell variable names.
389 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
390 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
391 fi
392 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
393 eval "enable_${ac_feature}=no" ;;
394
395 -enable-* | --enable-*)
396 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
397 # Reject names that are not valid shell variable names.
398 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
399 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
400 fi
401 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
402 case "$ac_option" in
403 *=*) ;;
404 *) ac_optarg=yes ;;
405 esac
406 eval "enable_${ac_feature}='$ac_optarg'" ;;
407
408 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
409 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
410 | --exec | --exe | --ex)
411 ac_prev=exec_prefix ;;
412 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
413 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
414 | --exec=* | --exe=* | --ex=*)
415 exec_prefix="$ac_optarg" ;;
416
417 -gas | --gas | --ga | --g)
418 # Obsolete; use --with-gas.
419 with_gas=yes ;;
420
421 -help | --help | --hel | --he)
422 # Omit some internal or obsolete options to make the list less imposing.
423 # This message is too long to be a string in the A/UX 3.1 sh.
424 cat << EOF
425Usage: configure [options] [host]
426Options: [defaults in brackets after descriptions]
427Configuration:
428 --cache-file=FILE cache test results in FILE
429 --help print this message
430 --no-create do not create output files
431 --quiet, --silent do not print \`checking...' messages
432 --version print the version of autoconf that created configure
433Directory and file names:
434 --prefix=PREFIX install architecture-independent files in PREFIX
435 [$ac_default_prefix]
436 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
437 [same as prefix]
438 --bindir=DIR user executables in DIR [EPREFIX/bin]
439 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
440 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
441 --datadir=DIR read-only architecture-independent data in DIR
442 [PREFIX/share]
443 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
444 --sharedstatedir=DIR modifiable architecture-independent data in DIR
445 [PREFIX/com]
446 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
447 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
448 --includedir=DIR C header files in DIR [PREFIX/include]
449 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
450 --infodir=DIR info documentation in DIR [PREFIX/info]
451 --mandir=DIR man documentation in DIR [PREFIX/man]
452 --srcdir=DIR find the sources in DIR [configure dir or ..]
453 --program-prefix=PREFIX prepend PREFIX to installed program names
454 --program-suffix=SUFFIX append SUFFIX to installed program names
455 --program-transform-name=PROGRAM
456 run sed PROGRAM on installed program names
457EOF
458 cat << EOF
459Host type:
460 --build=BUILD configure for building on BUILD [BUILD=HOST]
461 --host=HOST configure for HOST [guessed]
462 --target=TARGET configure for TARGET [TARGET=HOST]
463Features and packages:
464 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
465 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
466 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
467 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
468 --x-includes=DIR X include files are in DIR
469 --x-libraries=DIR X library files are in DIR
470EOF
471 if test -n "$ac_help"; then
472 echo "--enable and --with options recognized:$ac_help"
473 fi
474 exit 0 ;;
475
476 -host | --host | --hos | --ho)
477 ac_prev=host ;;
478 -host=* | --host=* | --hos=* | --ho=*)
479 host="$ac_optarg" ;;
480
481 -includedir | --includedir | --includedi | --included | --include \
482 | --includ | --inclu | --incl | --inc)
483 ac_prev=includedir ;;
484 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
485 | --includ=* | --inclu=* | --incl=* | --inc=*)
486 includedir="$ac_optarg" ;;
487
488 -infodir | --infodir | --infodi | --infod | --info | --inf)
489 ac_prev=infodir ;;
490 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
491 infodir="$ac_optarg" ;;
492
493 -libdir | --libdir | --libdi | --libd)
494 ac_prev=libdir ;;
495 -libdir=* | --libdir=* | --libdi=* | --libd=*)
496 libdir="$ac_optarg" ;;
497
498 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
499 | --libexe | --libex | --libe)
500 ac_prev=libexecdir ;;
501 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
502 | --libexe=* | --libex=* | --libe=*)
503 libexecdir="$ac_optarg" ;;
504
505 -localstatedir | --localstatedir | --localstatedi | --localstated \
506 | --localstate | --localstat | --localsta | --localst \
507 | --locals | --local | --loca | --loc | --lo)
508 ac_prev=localstatedir ;;
509 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
510 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
511 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
512 localstatedir="$ac_optarg" ;;
513
514 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
515 ac_prev=mandir ;;
516 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
517 mandir="$ac_optarg" ;;
518
519 -nfp | --nfp | --nf)
520 # Obsolete; use --without-fp.
521 with_fp=no ;;
522
523 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
524 | --no-cr | --no-c)
525 no_create=yes ;;
526
527 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
528 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
529 no_recursion=yes ;;
530
531 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
532 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
533 | --oldin | --oldi | --old | --ol | --o)
534 ac_prev=oldincludedir ;;
535 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
536 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
537 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
538 oldincludedir="$ac_optarg" ;;
539
540 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
541 ac_prev=prefix ;;
542 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
543 prefix="$ac_optarg" ;;
544
545 -program-prefix | --program-prefix | --program-prefi | --program-pref \
546 | --program-pre | --program-pr | --program-p)
547 ac_prev=program_prefix ;;
548 -program-prefix=* | --program-prefix=* | --program-prefi=* \
549 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
550 program_prefix="$ac_optarg" ;;
551
552 -program-suffix | --program-suffix | --program-suffi | --program-suff \
553 | --program-suf | --program-su | --program-s)
554 ac_prev=program_suffix ;;
555 -program-suffix=* | --program-suffix=* | --program-suffi=* \
556 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
557 program_suffix="$ac_optarg" ;;
558
559 -program-transform-name | --program-transform-name \
560 | --program-transform-nam | --program-transform-na \
561 | --program-transform-n | --program-transform- \
562 | --program-transform | --program-transfor \
563 | --program-transfo | --program-transf \
564 | --program-trans | --program-tran \
565 | --progr-tra | --program-tr | --program-t)
566 ac_prev=program_transform_name ;;
567 -program-transform-name=* | --program-transform-name=* \
568 | --program-transform-nam=* | --program-transform-na=* \
569 | --program-transform-n=* | --program-transform-=* \
570 | --program-transform=* | --program-transfor=* \
571 | --program-transfo=* | --program-transf=* \
572 | --program-trans=* | --program-tran=* \
573 | --progr-tra=* | --program-tr=* | --program-t=*)
574 program_transform_name="$ac_optarg" ;;
575
576 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
577 | -silent | --silent | --silen | --sile | --sil)
578 silent=yes ;;
579
580 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
581 ac_prev=sbindir ;;
582 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
583 | --sbi=* | --sb=*)
584 sbindir="$ac_optarg" ;;
585
586 -sharedstatedir | --sharedstatedir | --sharedstatedi \
587 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
588 | --sharedst | --shareds | --shared | --share | --shar \
589 | --sha | --sh)
590 ac_prev=sharedstatedir ;;
591 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
592 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
593 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
594 | --sha=* | --sh=*)
595 sharedstatedir="$ac_optarg" ;;
596
597 -site | --site | --sit)
598 ac_prev=site ;;
599 -site=* | --site=* | --sit=*)
600 site="$ac_optarg" ;;
601
602 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
603 ac_prev=srcdir ;;
604 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
605 srcdir="$ac_optarg" ;;
606
607 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
608 | --syscon | --sysco | --sysc | --sys | --sy)
609 ac_prev=sysconfdir ;;
610 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
611 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
612 sysconfdir="$ac_optarg" ;;
613
614 -target | --target | --targe | --targ | --tar | --ta | --t)
615 ac_prev=target ;;
616 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
617 target="$ac_optarg" ;;
618
619 -v | -verbose | --verbose | --verbos | --verbo | --verb)
620 verbose=yes ;;
621
622 -version | --version | --versio | --versi | --vers)
e8482f24 623 echo "configure generated by autoconf version 2.13"
10f2d63a
VZ
624 exit 0 ;;
625
626 -with-* | --with-*)
627 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
628 # Reject names that are not valid shell variable names.
629 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
630 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
631 fi
632 ac_package=`echo $ac_package| sed 's/-/_/g'`
633 case "$ac_option" in
634 *=*) ;;
635 *) ac_optarg=yes ;;
636 esac
637 eval "with_${ac_package}='$ac_optarg'" ;;
638
639 -without-* | --without-*)
640 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
641 # Reject names that are not valid shell variable names.
642 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
643 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
644 fi
645 ac_package=`echo $ac_package| sed 's/-/_/g'`
646 eval "with_${ac_package}=no" ;;
647
648 --x)
649 # Obsolete; use --with-x.
650 with_x=yes ;;
651
652 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
653 | --x-incl | --x-inc | --x-in | --x-i)
654 ac_prev=x_includes ;;
655 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
656 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
657 x_includes="$ac_optarg" ;;
658
659 -x-libraries | --x-libraries | --x-librarie | --x-librari \
660 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
661 ac_prev=x_libraries ;;
662 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
663 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
664 x_libraries="$ac_optarg" ;;
665
666 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
667 ;;
668
669 *)
670 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
671 echo "configure: warning: $ac_option: invalid host type" 1>&2
672 fi
673 if test "x$nonopt" != xNONE; then
674 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
675 fi
676 nonopt="$ac_option"
677 ;;
678
679 esac
680done
681
682if test -n "$ac_prev"; then
683 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
684fi
685
686trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
687
688# File descriptor usage:
689# 0 standard input
690# 1 file creation
691# 2 errors and warnings
692# 3 some systems may open it to /dev/tty
693# 4 used on the Kubota Titan
694# 6 checking for... messages and results
695# 5 compiler messages saved in config.log
696if test "$silent" = yes; then
697 exec 6>/dev/null
698else
699 exec 6>&1
700fi
701exec 5>./config.log
702
703echo "\
704This file contains any messages produced by compilers while
705running configure, to aid debugging if configure makes a mistake.
706" 1>&5
707
708# Strip out --no-create and --no-recursion so they do not pile up.
709# Also quote any args containing shell metacharacters.
710ac_configure_args=
711for ac_arg
712do
713 case "$ac_arg" in
714 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
715 | --no-cr | --no-c) ;;
716 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
717 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
718 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
719 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
720 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
721 esac
722done
723
724# NLS nuisances.
725# Only set these to C if already set. These must not be set unconditionally
726# because not all systems understand e.g. LANG=C (notably SCO).
727# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
728# Non-C LC_CTYPE values break the ctype check.
729if test "${LANG+set}" = set; then LANG=C; export LANG; fi
730if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
731if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
732if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
733
734# confdefs.h avoids OS command line length limits that DEFS can exceed.
735rm -rf conftest* confdefs.h
736# AIX cpp loses on an empty file, so make sure it contains at least a newline.
737echo > confdefs.h
738
739# A filename unique to this package, relative to the directory that
740# configure is in, which we can look for to find out if srcdir is correct.
741ac_unique_file=wx-config.in
742
743# Find the source files, if location was not specified.
744if test -z "$srcdir"; then
745 ac_srcdir_defaulted=yes
746 # Try the directory containing this script, then its parent.
747 ac_prog=$0
748 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
749 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
750 srcdir=$ac_confdir
751 if test ! -r $srcdir/$ac_unique_file; then
752 srcdir=..
753 fi
754else
755 ac_srcdir_defaulted=no
756fi
757if test ! -r $srcdir/$ac_unique_file; then
758 if test "$ac_srcdir_defaulted" = yes; then
759 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
760 else
761 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
762 fi
763fi
764srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
765
766# Prefer explicitly selected file to automatically selected ones.
767if test -z "$CONFIG_SITE"; then
768 if test "x$prefix" != xNONE; then
769 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
770 else
771 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
772 fi
773fi
774for ac_site_file in $CONFIG_SITE; do
775 if test -r "$ac_site_file"; then
776 echo "loading site script $ac_site_file"
777 . "$ac_site_file"
778 fi
779done
780
781if test -r "$cache_file"; then
782 echo "loading cache $cache_file"
783 . $cache_file
784else
785 echo "creating cache $cache_file"
786 > $cache_file
787fi
788
789ac_ext=c
790# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
791ac_cpp='$CPP $CPPFLAGS'
792ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
793ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
794cross_compiling=$ac_cv_prog_cc_cross
795
796ac_exeext=
797ac_objext=o
798if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
799 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
800 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
801 ac_n= ac_c='
802' ac_t=' '
803 else
804 ac_n=-n ac_c= ac_t=
805 fi
806else
807 ac_n= ac_c='\c' ac_t=
808fi
809
810
811
7c66a493
VZ
812ac_aux_dir=
813for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
814 if test -f $ac_dir/install-sh; then
815 ac_aux_dir=$ac_dir
816 ac_install_sh="$ac_aux_dir/install-sh -c"
817 break
818 elif test -f $ac_dir/install.sh; then
819 ac_aux_dir=$ac_dir
820 ac_install_sh="$ac_aux_dir/install.sh -c"
821 break
822 fi
823done
824if test -z "$ac_aux_dir"; then
825 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
826fi
827ac_config_guess=$ac_aux_dir/config.guess
828ac_config_sub=$ac_aux_dir/config.sub
829ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
830
831
832# Do some error checking and defaulting for the host and target type.
833# The inputs are:
834# configure --host=HOST --target=TARGET --build=BUILD NONOPT
835#
836# The rules are:
837# 1. You are not allowed to specify --host, --target, and nonopt at the
838# same time.
839# 2. Host defaults to nonopt.
840# 3. If nonopt is not specified, then host defaults to the current host,
841# as determined by config.guess.
842# 4. Target and build default to nonopt.
843# 5. If nonopt is not specified, then target and build default to host.
844
845# The aliases save the names the user supplied, while $host etc.
846# will get canonicalized.
847case $host---$target---$nonopt in
848NONE---*---* | *---NONE---* | *---*---NONE) ;;
849*) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
850esac
851
852
853# Make sure we can run config.sub.
854if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
855else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
856fi
857
858echo $ac_n "checking host system type""... $ac_c" 1>&6
e8f65ba6 859echo "configure:860: checking host system type" >&5
7c66a493
VZ
860
861host_alias=$host
862case "$host_alias" in
863NONE)
864 case $nonopt in
865 NONE)
866 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
867 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
868 fi ;;
869 *) host_alias=$nonopt ;;
870 esac ;;
871esac
872
873host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
874host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
875host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
876host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
877echo "$ac_t""$host" 1>&6
878
879echo $ac_n "checking target system type""... $ac_c" 1>&6
e8f65ba6 880echo "configure:881: checking target system type" >&5
7c66a493
VZ
881
882target_alias=$target
883case "$target_alias" in
884NONE)
885 case $nonopt in
886 NONE) target_alias=$host_alias ;;
887 *) target_alias=$nonopt ;;
888 esac ;;
889esac
890
891target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
892target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
893target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
894target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
895echo "$ac_t""$target" 1>&6
896
897echo $ac_n "checking build system type""... $ac_c" 1>&6
e8f65ba6 898echo "configure:899: checking build system type" >&5
7c66a493
VZ
899
900build_alias=$build
901case "$build_alias" in
902NONE)
903 case $nonopt in
904 NONE) build_alias=$host_alias ;;
905 *) build_alias=$nonopt ;;
906 esac ;;
907esac
908
909build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
910build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
911build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
912build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
913echo "$ac_t""$build" 1>&6
914
915test "$host_alias" != "$target_alias" &&
916 test "$program_prefix$program_suffix$program_transform_name" = \
917 NONENONEs,x,x, &&
918 program_prefix=${target_alias}-
919
920
10f2d63a
VZ
921
922WX_MAJOR_VERSION_NUMBER=2
37d403aa 923WX_MINOR_VERSION_NUMBER=3
f6bcfd97 924WX_RELEASE_NUMBER=0
10f2d63a
VZ
925
926WX_INTERFACE_AGE=0
e8f65ba6 927WX_BINARY_AGE=0
10f2d63a
VZ
928
929WX_VERSION=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER.$WX_RELEASE_NUMBER
930
931WX_RELEASE=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER
932WX_CURRENT=`expr $WX_RELEASE_NUMBER - $WX_INTERFACE_AGE`
933WX_REVISION=$WX_INTERFACE_AGE
934WX_AGE=`expr $WX_BINARY_AGE - $WX_INTERFACE_AGE`
935
936
937USE_UNIX=1
938USE_WIN32=0
b12915c1
VZ
939USE_BEOS=0
940
10f2d63a
VZ
941USE_LINUX=
942USE_SGI=
943USE_HPUX=
944USE_SYSV=
945USE_SVR4=
946USE_AIX=
947USE_SUN=
948USE_SOLARIS=
949USE_SUNOS=
950USE_ALPHA=
951USE_OSF=
952USE_BSD=
953USE_FREEBSD=
f6bcfd97 954USE_NETBSD=
10f2d63a
VZ
955USE_VMS=
956USE_ULTRIX=
957USE_CYGWIN=
958USE_MINGW=
959USE_DATA_GENERAL=
960
ab9b9eab
VZ
961NEEDS_D_REENTRANT_FOR_R_FUNCS=0
962
e07802fc 963ALL_TOOLKITS="CYGWIN GTK MINGW MOTIF WINE PM"
10f2d63a
VZ
964
965DEFAULT_wxUSE_GTK=0
966DEFAULT_wxUSE_MOTIF=0
967DEFAULT_wxUSE_MSW=0
968DEFAULT_wxUSE_WINE=0
e07802fc 969DEFAULT_wxUSE_PM=0
10f2d63a
VZ
970
971DEFAULT_DEFAULT_wxUSE_GTK=0
972DEFAULT_DEFAULT_wxUSE_MOTIF=0
973DEFAULT_DEFAULT_wxUSE_MSW=0
974DEFAULT_DEFAULT_wxUSE_WINE=0
e07802fc 975DEFAULT_DEFAULT_wxUSE_PM=0
10f2d63a 976
d6a55c4b
VZ
977PROGRAM_EXT=
978
10f2d63a
VZ
979case "${host}" in
980 *-hp-hpux* )
981 USE_HPUX=1
982 DEFAULT_DEFAULT_wxUSE_MOTIF=1
ab9b9eab 983 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
10f2d63a
VZ
984 cat >> confdefs.h <<\EOF
985#define __HPUX__ 1
986EOF
987
988 ;;
989 *-*-linux* )
990 USE_LINUX=1
991 cat >> confdefs.h <<\EOF
992#define __LINUX__ 1
993EOF
994
995 TMP=`uname -m`
996 if test "x$TMP" = "xalpha"; then
997 USE_ALPHA=1
998 cat >> confdefs.h <<\EOF
999#define __ALPHA__ 1
1000EOF
1001
1002 fi
1003 DEFAULT_DEFAULT_wxUSE_GTK=1
1004 ;;
1005 *-*-irix5* | *-*-irix6* )
1006 USE_SGI=1
1007 USE_SVR4=1
1008 cat >> confdefs.h <<\EOF
1009#define __SGI__ 1
1010EOF
1011
1012 cat >> confdefs.h <<\EOF
1013#define __SVR4__ 1
1014EOF
1015
1016 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1017 ;;
1018 *-*-solaris2* )
1019 USE_SUN=1
1020 USE_SOLARIS=1
1021 USE_SVR4=1
1022 cat >> confdefs.h <<\EOF
1023#define __SUN__ 1
1024EOF
1025
1026 cat >> confdefs.h <<\EOF
1027#define __SOLARIS__ 1
1028EOF
1029
1030 cat >> confdefs.h <<\EOF
1031#define __SVR4__ 1
1032EOF
1033
1034 DEFAULT_DEFAULT_wxUSE_MOTIF=1
ab9b9eab 1035 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
10f2d63a
VZ
1036 ;;
1037 *-*-sunos4* )
1038 USE_SUN=1
1039 USE_SUNOS=1
1040 USE_BSD=1
1041 cat >> confdefs.h <<\EOF
1042#define __SUN__ 1
1043EOF
1044
1045 cat >> confdefs.h <<\EOF
1046#define __SUNOS__ 1
1047EOF
1048
1049 cat >> confdefs.h <<\EOF
1050#define __BSD__ 1
1051EOF
1052
1053 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1054 ;;
f6bcfd97 1055 *-*-freebsd*)
10f2d63a
VZ
1056 USE_BSD=1
1057 USE_FREEBSD=1
1058 cat >> confdefs.h <<\EOF
1059#define __FREEBSD__ 1
1060EOF
1061
1062 cat >> confdefs.h <<\EOF
1063#define __BSD__ 1
f6bcfd97
BP
1064EOF
1065
1066 DEFAULT_DEFAULT_wxUSE_GTK=1
1067 ;;
1068 *-*-netbsd*)
1069 USE_BSD=1
1070 USE_NETBSD=1
1071 cat >> confdefs.h <<\EOF
1072#define __FREEBSD__ 1
1073EOF
1074
1075 cat >> confdefs.h <<\EOF
1076#define __NETBSD__ 1
10f2d63a
VZ
1077EOF
1078
1079 DEFAULT_DEFAULT_wxUSE_GTK=1
1080 ;;
1081 *-*-osf* )
1082 USE_ALPHA=1
1083 USE_OSF=1
1084 cat >> confdefs.h <<\EOF
1085#define __ALPHA__ 1
1086EOF
1087
1088 cat >> confdefs.h <<\EOF
1089#define __OSF__ 1
1090EOF
1091
1092 DEFAULT_DEFAULT_wxUSE_MOTIF=1
f6bcfd97 1093 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
10f2d63a
VZ
1094 ;;
1095 *-*-dgux5* )
1096 USE_ALPHA=1
1097 USE_SVR4=1
1098 cat >> confdefs.h <<\EOF
1099#define __ALPHA__ 1
1100EOF
1101
1102 cat >> confdefs.h <<\EOF
1103#define __SVR4__ 1
1104EOF
1105
1106 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1107 ;;
1108 *-*-sysv5* )
1109 USE_SYSV=1
1110 USE_SVR4=1
1111 cat >> confdefs.h <<\EOF
1112#define __SYSV__ 1
1113EOF
1114
1115 cat >> confdefs.h <<\EOF
1116#define __SVR4__ 1
1117EOF
1118
1119 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1120 ;;
1121 *-*-aix* )
1122 USE_AIX=1
1123 USE_SYSV=1
1124 USE_SVR4=1
1125 cat >> confdefs.h <<\EOF
1126#define __AIX__ 1
1127EOF
1128
1129 cat >> confdefs.h <<\EOF
1130#define __SYSV__ 1
1131EOF
1132
1133 cat >> confdefs.h <<\EOF
1134#define __SVR4__ 1
1135EOF
1136
1137 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1138 ;;
1139
7eef8db2 1140 *-*-cygwin32* | *-*-mingw32* )
10f2d63a
VZ
1141 USE_UNIX=0
1142 USE_WIN32=1
1143 cat >> confdefs.h <<\EOF
1144#define __WIN32__ 1
1145EOF
1146
1147 cat >> confdefs.h <<\EOF
1148#define __WIN95__ 1
1149EOF
1150
1151 cat >> confdefs.h <<\EOF
1152#define __WINDOWS__ 1
1153EOF
1154
1155 cat >> confdefs.h <<\EOF
1156#define __GNUWIN32__ 1
1157EOF
1158
1159 cat >> confdefs.h <<\EOF
1160#define STRICT 1
1161EOF
1162
1163 cat >> confdefs.h <<\EOF
1164#define WINVER 0x0400
1165EOF
1166
cf27ef00 1167 PROGRAM_EXT=".exe"
10f2d63a
VZ
1168 DEFAULT_DEFAULT_wxUSE_MSW=1
1169 ;;
1170
1171 *-pc-os2_emx )
1172 cat >> confdefs.h <<\EOF
1173#define __EMX__ 1
1174EOF
1175
cf27ef00 1176 PROGRAM_EXT=".exe"
e07802fc 1177 DEFAULT_DEFAULT_wxUSE_PM=1
10f2d63a
VZ
1178 ;;
1179
b12915c1
VZ
1180 *-*-beos* )
1181 USE_BEOS=1
1182 cat >> confdefs.h <<\EOF
1183#define __BEOS__ 1
1184EOF
1185
1186 ;;
1187
10f2d63a
VZ
1188 *)
1189 { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; }
1190esac
1191
1192if test "$USE_UNIX" = 1 ; then
b12915c1
VZ
1193 wxUSE_UNIX=yes
1194 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1195#define __UNIX__ 1
1196EOF
1197
b12915c1
VZ
1198
1199 SRC_SUBDIRS="$SRC_SUBDIRS unix"
1200 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS unix"
1201fi
1202
1203if test "$USE_BEOS" = 1; then
1204 SRC_SUBDIRS="$SRC_SUBDIRS be"
1205 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS be"
10f2d63a
VZ
1206fi
1207
1208if test "$USE_LINUX" = 1; then
1209 echo $ac_n "checking for gettext in -lc""... $ac_c" 1>&6
e8f65ba6 1210echo "configure:1211: checking for gettext in -lc" >&5
10f2d63a
VZ
1211ac_lib_var=`echo c'_'gettext | sed 'y%./+-%__p_%'`
1212if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1213 echo $ac_n "(cached) $ac_c" 1>&6
1214else
1215 ac_save_LIBS="$LIBS"
1216LIBS="-lc $LIBS"
1217cat > conftest.$ac_ext <<EOF
e8f65ba6 1218#line 1219 "configure"
10f2d63a
VZ
1219#include "confdefs.h"
1220/* Override any gcc2 internal prototype to avoid an error. */
1221/* We use char because int might match the return type of a gcc2
1222 builtin and then its argument prototype would still apply. */
1223char gettext();
1224
1225int main() {
1226gettext()
1227; return 0; }
1228EOF
e8f65ba6 1229if { (eval echo configure:1230: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
1230 rm -rf conftest*
1231 eval "ac_cv_lib_$ac_lib_var=yes"
1232else
1233 echo "configure: failed program was:" >&5
1234 cat conftest.$ac_ext >&5
1235 rm -rf conftest*
1236 eval "ac_cv_lib_$ac_lib_var=no"
1237fi
1238rm -f conftest*
1239LIBS="$ac_save_LIBS"
1240
1241fi
1242if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1243 echo "$ac_t""yes" 1>&6
1244 cat >> confdefs.h <<\EOF
1245#define wxHAVE_GLIBC2 1
1246EOF
1247
1248else
1249 echo "$ac_t""no" 1>&6
1250fi
1251
1252fi
1253
1254
1255
1256
1257 wx_arg_cache_file="configarg.cache"
1258 echo "loading argument cache $wx_arg_cache_file"
1259 rm -f ${wx_arg_cache_file}.tmp
1260 touch ${wx_arg_cache_file}.tmp
1261 touch ${wx_arg_cache_file}
1262
1263
1264DEBUG_CONFIGURE=0
1265if test $DEBUG_CONFIGURE = 1; then
1266 DEFAULT_wxUSE_THREADS=yes
1267
1268 DEFAULT_wxUSE_SHARED=yes
00cf1208 1269 DEFAULT_wxUSE_BURNT_NAME=no
10f2d63a
VZ
1270 DEFAULT_wxUSE_OPTIMISE=yes
1271 DEFAULT_wxUSE_PROFILE=no
1272 DEFAULT_wxUSE_NO_DEPS=no
1273 DEFAULT_wxUSE_NO_RTTI=no
1274 DEFAULT_wxUSE_NO_EXCEPTIONS=no
1275 DEFAULT_wxUSE_PERMISSIVE=no
1276 DEFAULT_wxUSE_DEBUG_FLAG=yes
1277 DEFAULT_wxUSE_DEBUG_INFO=yes
1278 DEFAULT_wxUSE_DEBUG_GDB=yes
1279 DEFAULT_wxUSE_MEM_TRACING=no
1280 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1281 DEFAULT_wxUSE_DMALLOC=no
1282 DEFAULT_wxUSE_APPLE_IEEE=no
1283
1284 DEFAULT_wxUSE_LOG=yes
1285
1286 DEFAULT_wxUSE_GUI=yes
1287
1288 DEFAULT_wxUSE_ZLIB=no
1289 DEFAULT_wxUSE_LIBPNG=no
1290 DEFAULT_wxUSE_LIBJPEG=no
c7a2bf27 1291 DEFAULT_wxUSE_LIBTIFF=no
10f2d63a 1292 DEFAULT_wxUSE_ODBC=no
3fed1840 1293 DEFAULT_wxUSE_FREETYPE=no
bdad4e7e 1294 DEFAULT_wxUSE_OPENGL=no
10f2d63a 1295
eb4efbdc 1296 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no
10f2d63a
VZ
1297 DEFAULT_wxUSE_STD_IOSTREAM=no
1298 DEFAULT_wxUSE_FILE=no
1299 DEFAULT_wxUSE_TEXTFILE=no
1300 DEFAULT_wxUSE_TIMEDATE=no
1301 DEFAULT_wxUSE_WAVE=no
1302 DEFAULT_wxUSE_INTL=no
1303 DEFAULT_wxUSE_CONFIG=no
1304 DEFAULT_wxUSE_STREAMS=no
1305 DEFAULT_wxUSE_SOCKETS=no
1306 DEFAULT_wxUSE_DIALUP_MANAGER=no
1307 DEFAULT_wxUSE_SERIAL=no
1308 DEFAULT_wxUSE_JOYSTICK=no
1309 DEFAULT_wxUSE_DYNLIB_CLASS=no
1310 DEFAULT_wxUSE_LONGLONG=no
e8f65ba6 1311 DEFAULT_wxUSE_GEOMETRY=no
10f2d63a
VZ
1312
1313 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
1314 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
1315 DEFAULT_wxUSE_POSTSCRIPT=no
1316
1317 DEFAULT_wxUSE_X_RESOURCES=no
1318 DEFAULT_wxUSE_CLIPBOARD=no
1319 DEFAULT_wxUSE_TOOLTIPS=no
1320 DEFAULT_wxUSE_DRAG_AND_DROP=no
1321 DEFAULT_wxUSE_SPLINES=no
1322
1323 DEFAULT_wxUSE_MDI_ARCHITECTURE=no
1324 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
1325 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
1326
1327 DEFAULT_wxUSE_PROLOGIO=no
1328 DEFAULT_wxUSE_RESOURCES=no
1329 DEFAULT_wxUSE_CONSTRAINTS=no
1330 DEFAULT_wxUSE_IPC=no
1331 DEFAULT_wxUSE_HELP=no
1332 DEFAULT_wxUSE_WXTREE=no
1333 DEFAULT_wxUSE_METAFILE=no
1334
1335 DEFAULT_wxUSE_COMMONDLGS=no
1336 DEFAULT_wxUSE_DIRDLG=no
1337 DEFAULT_wxUSE_TEXTDLG=no
1338 DEFAULT_wxUSE_STARTUP_TIPS=no
1339 DEFAULT_wxUSE_PROGRESSDLG=no
1340 DEFAULT_wxUSE_MINIFRAME=no
1341 DEFAULT_wxUSE_HTML=no
24528b0c 1342 DEFAULT_wxUSE_FILESYSTEM=no
10f2d63a
VZ
1343 DEFAULT_wxUSE_FS_INET=no
1344 DEFAULT_wxUSE_FS_ZIP=no
1345 DEFAULT_wxUSE_BUSYINFO=no
1346 DEFAULT_wxUSE_ZIPSTREAM=no
1347 DEFAULT_wxUSE_VALIDATORS=yes
1348
1349 DEFAULT_wxUSE_ACCEL=no
1350 DEFAULT_wxUSE_CARET=no
1351 DEFAULT_wxUSE_BMPBUTTON=no
1352 DEFAULT_wxUSE_CHECKBOX=no
1353 DEFAULT_wxUSE_CHECKLST=no
1354 DEFAULT_wxUSE_CHOICE=yes
1355 DEFAULT_wxUSE_COMBOBOX=no
1356 DEFAULT_wxUSE_GAUGE=no
1357 DEFAULT_wxUSE_GRID=no
1358 DEFAULT_wxUSE_NEW_GRID=no
1359 DEFAULT_wxUSE_IMAGLIST=no
1360 DEFAULT_wxUSE_LISTBOX=no
1361 DEFAULT_wxUSE_LISTCTRL=no
1362 DEFAULT_wxUSE_NOTEBOOK=no
9b33fe02 1363 DEFAULT_wxUSE_PLOT=no
10f2d63a
VZ
1364 DEFAULT_wxUSE_RADIOBOX=no
1365 DEFAULT_wxUSE_RADIOBTN=no
1366 DEFAULT_wxUSE_SASH=no
1367 DEFAULT_wxUSE_SCROLLBAR=no
1368 DEFAULT_wxUSE_SLIDER=no
1369 DEFAULT_wxUSE_SPINBTN=no
56cfaa52 1370 DEFAULT_wxUSE_SPINCTRL=no
10f2d63a
VZ
1371 DEFAULT_wxUSE_SPLITTER=no
1372 DEFAULT_wxUSE_STATBMP=no
1373 DEFAULT_wxUSE_STATBOX=no
1374 DEFAULT_wxUSE_STATLINE=no
1375 DEFAULT_wxUSE_STATUSBAR=yes
1376 DEFAULT_wxUSE_TABDIALOG=no
1377 DEFAULT_wxUSE_TOOLBAR=no
360d6699
VZ
1378 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
1379 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
10f2d63a
VZ
1380 DEFAULT_wxUSE_TREECTRL=no
1381
1382 DEFAULT_wxUSE_UNICODE=no
1383 DEFAULT_wxUSE_WCSRTOMBS=no
1384
1385 DEFAULT_wxUSE_GIF=no
1386 DEFAULT_wxUSE_PCX=no
1387 DEFAULT_wxUSE_PNM=no
1388else
1389 DEFAULT_wxUSE_THREADS=yes
1390
1391 DEFAULT_wxUSE_SHARED=yes
00cf1208 1392 DEFAULT_wxUSE_BURNT_NAME=no
10f2d63a
VZ
1393 DEFAULT_wxUSE_OPTIMISE=yes
1394 DEFAULT_wxUSE_PROFILE=no
1395 DEFAULT_wxUSE_NO_DEPS=no
1396 DEFAULT_wxUSE_NO_RTTI=no
1397 DEFAULT_wxUSE_NO_EXCEPTIONS=no
1398 DEFAULT_wxUSE_PERMISSIVE=no
1399 DEFAULT_wxUSE_DEBUG_FLAG=no
1400 DEFAULT_wxUSE_DEBUG_INFO=no
1401 DEFAULT_wxUSE_DEBUG_GDB=no
1402 DEFAULT_wxUSE_MEM_TRACING=no
1403 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1404 DEFAULT_wxUSE_DMALLOC=no
1405 DEFAULT_wxUSE_APPLE_IEEE=yes
1406
1407 DEFAULT_wxUSE_LOG=yes
1408
1409 DEFAULT_wxUSE_GUI=yes
1410
1411 DEFAULT_wxUSE_ZLIB=yes
1412 DEFAULT_wxUSE_LIBPNG=yes
1413 DEFAULT_wxUSE_LIBJPEG=yes
b47c832e 1414 DEFAULT_wxUSE_LIBTIFF=yes
16b52fa1 1415 DEFAULT_wxUSE_ODBC=no
3fed1840 1416 DEFAULT_wxUSE_FREETYPE=no
bdad4e7e 1417 DEFAULT_wxUSE_OPENGL=no
10f2d63a 1418
eb4efbdc 1419 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes
10f2d63a
VZ
1420 DEFAULT_wxUSE_STD_IOSTREAM=no
1421 DEFAULT_wxUSE_FILE=yes
1422 DEFAULT_wxUSE_TEXTFILE=yes
1423 DEFAULT_wxUSE_TIMEDATE=yes
1424 DEFAULT_wxUSE_WAVE=no
1425 DEFAULT_wxUSE_INTL=yes
1426 DEFAULT_wxUSE_CONFIG=yes
1427 DEFAULT_wxUSE_STREAMS=yes
1428 DEFAULT_wxUSE_SOCKETS=yes
1429 DEFAULT_wxUSE_DIALUP_MANAGER=yes
1430 DEFAULT_wxUSE_SERIAL=yes
1431 DEFAULT_wxUSE_JOYSTICK=yes
1432 DEFAULT_wxUSE_DYNLIB_CLASS=yes
b685cd9b 1433 DEFAULT_wxUSE_LONGLONG=yes
e8f65ba6 1434 DEFAULT_wxUSE_GEOMETRY=yes
10f2d63a
VZ
1435
1436 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
1437 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
1438 DEFAULT_wxUSE_POSTSCRIPT=yes
1439
1440 DEFAULT_wxUSE_X_RESOURCES=no
1441 DEFAULT_wxUSE_CLIPBOARD=yes
1442 DEFAULT_wxUSE_TOOLTIPS=yes
1443 DEFAULT_wxUSE_DRAG_AND_DROP=yes
1444 DEFAULT_wxUSE_SPLINES=yes
1445
1446 DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
1447 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
1448 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
1449
1450 DEFAULT_wxUSE_PROLOGIO=yes
1451 DEFAULT_wxUSE_RESOURCES=yes
1452 DEFAULT_wxUSE_CONSTRAINTS=yes
1453 DEFAULT_wxUSE_IPC=yes
1454 DEFAULT_wxUSE_HELP=yes
1455 DEFAULT_wxUSE_WXTREE=yes
1456 DEFAULT_wxUSE_METAFILE=yes
1457
1458 DEFAULT_wxUSE_COMMONDLGS=yes
1459 DEFAULT_wxUSE_DIRDLG=yes
1460 DEFAULT_wxUSE_TEXTDLG=yes
1461 DEFAULT_wxUSE_STARTUP_TIPS=yes
1462 DEFAULT_wxUSE_PROGRESSDLG=yes
1463 DEFAULT_wxUSE_MINIFRAME=yes
1464 DEFAULT_wxUSE_HTML=yes
24528b0c 1465 DEFAULT_wxUSE_FILESYSTEM=yes
10f2d63a
VZ
1466 DEFAULT_wxUSE_FS_INET=yes
1467 DEFAULT_wxUSE_FS_ZIP=yes
1468 DEFAULT_wxUSE_BUSYINFO=yes
1469 DEFAULT_wxUSE_ZIPSTREAM=yes
1470 DEFAULT_wxUSE_VALIDATORS=yes
1471
1472 DEFAULT_wxUSE_ACCEL=yes
1473 DEFAULT_wxUSE_CARET=yes
1474 DEFAULT_wxUSE_BMPBUTTON=yes
1475 DEFAULT_wxUSE_CHECKBOX=yes
1476 DEFAULT_wxUSE_CHECKLST=yes
1477 DEFAULT_wxUSE_CHOICE=yes
1478 DEFAULT_wxUSE_COMBOBOX=yes
1479 DEFAULT_wxUSE_GAUGE=yes
1480 DEFAULT_wxUSE_GRID=yes
cc977e5f 1481 DEFAULT_wxUSE_NEW_GRID=yes
10f2d63a
VZ
1482 DEFAULT_wxUSE_IMAGLIST=yes
1483 DEFAULT_wxUSE_LISTBOX=yes
1484 DEFAULT_wxUSE_LISTCTRL=yes
1485 DEFAULT_wxUSE_NOTEBOOK=yes
9b33fe02 1486 DEFAULT_wxUSE_PLOT=yes
10f2d63a
VZ
1487 DEFAULT_wxUSE_RADIOBOX=yes
1488 DEFAULT_wxUSE_RADIOBTN=yes
1489 DEFAULT_wxUSE_SASH=yes
1490 DEFAULT_wxUSE_SCROLLBAR=yes
1491 DEFAULT_wxUSE_SLIDER=yes
1492 DEFAULT_wxUSE_SPINBTN=yes
56cfaa52 1493 DEFAULT_wxUSE_SPINCTRL=yes
10f2d63a
VZ
1494 DEFAULT_wxUSE_SPLITTER=yes
1495 DEFAULT_wxUSE_STATBMP=yes
1496 DEFAULT_wxUSE_STATBOX=yes
1497 DEFAULT_wxUSE_STATLINE=yes
1498 DEFAULT_wxUSE_STATUSBAR=yes
1499 DEFAULT_wxUSE_TABDIALOG=no
1500 DEFAULT_wxUSE_TOOLBAR=yes
360d6699
VZ
1501 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
1502 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
10f2d63a
VZ
1503 DEFAULT_wxUSE_TREECTRL=yes
1504
1505 DEFAULT_wxUSE_UNICODE=no
1506 DEFAULT_wxUSE_WCSRTOMBS=no
1507
1508 DEFAULT_wxUSE_GIF=yes
1509 DEFAULT_wxUSE_PCX=yes
1510 DEFAULT_wxUSE_PNM=yes
1511fi
1512
1513
1514
1515for toolkit in `echo $ALL_TOOLKITS`; do
1516 LINE=`grep "wxUSE_$toolkit" ${wx_arg_cache_file}`
1517 if test "x$LINE" != x ; then
1518 has_toolkit_in_cache=1
1519 eval "DEFAULT_$LINE"
1520 eval "CACHE_$toolkit=1"
1521 fi
1522done
1523
1524
1525
1526 echo $ac_n "checking "for --enable-gui"""... $ac_c" 1>&6
e8f65ba6 1527echo "configure:1528: checking "for --enable-gui"" >&5
10f2d63a
VZ
1528 no_cache=0
1529 # Check whether --enable-gui or --disable-gui was given.
1530if test "${enable_gui+set}" = set; then
1531 enableval="$enable_gui"
1532
1533 if test "$enableval" = yes; then
1534 ac_cv_use_gui='wxUSE_GUI=yes'
1535 else
1536 ac_cv_use_gui='wxUSE_GUI=no'
1537 fi
1538
1539else
1540
1541 LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
1542 if test "x$LINE" != x ; then
1543 eval "DEFAULT_$LINE"
1544 else
1545 no_cache=1
1546 fi
1547
1548 ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
1549
1550fi
1551
1552
1553 eval "$ac_cv_use_gui"
1554 if test "$no_cache" != 1; then
1555 echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
1556 fi
1557
1558 if test "$wxUSE_GUI" = yes; then
1559 echo "$ac_t""yes" 1>&6
1560 else
1561 echo "$ac_t""no" 1>&6
1562 fi
1563
1564
b12915c1 1565if test "$wxUSE_GUI" = "yes"; then
10f2d63a
VZ
1566
1567# Check whether --with-gtk or --without-gtk was given.
1568if test "${with_gtk+set}" = set; then
1569 withval="$with_gtk"
1570 wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
1571fi
1572
1573# Check whether --with-motif or --without-motif was given.
1574if test "${with_motif+set}" = set; then
1575 withval="$with_motif"
1576 wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
1577fi
1578
1579# Check whether --with-wine or --without-wine was given.
1580if test "${with_wine+set}" = set; then
1581 withval="$with_wine"
1582 wxUSE_WINE="$withval" CACHE_WINE=1 TOOLKIT_GIVEN=1
1583fi
1584
1585# Check whether --with-cygwin or --without-cygwin was given.
1586if test "${with_cygwin+set}" = set; then
1587 withval="$with_cygwin"
1588 wxUSE_CYGWIN="$withval" CACHE_CYGWIN=1 TOOLKIT_GIVEN=1
1589fi
1590
1591# Check whether --with-mingw or --without-mingw was given.
1592if test "${with_mingw+set}" = set; then
1593 withval="$with_mingw"
1594 wxUSE_MINGW="$withval" CACHE_MINGW=1 TOOLKIT_GIVEN=1
1595fi
1596
e07802fc
VZ
1597# Check whether --with-pm or --without-pm was given.
1598if test "${with_pm+set}" = set; then
1599 withval="$with_pm"
1600 wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
1601fi
1602
10f2d63a
VZ
1603
1604# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
1605if test "${with_gtk_prefix+set}" = set; then
1606 withval="$with_gtk_prefix"
1607 gtk_config_prefix="$withval"
1608else
1609 gtk_config_prefix=""
1610fi
1611
1612# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
1613if test "${with_gtk_exec_prefix+set}" = set; then
1614 withval="$with_gtk_exec_prefix"
1615 gtk_config_exec_prefix="$withval"
1616else
1617 gtk_config_exec_prefix=""
1618fi
1619
1620
1621
b12915c1 1622 echo $ac_n "checking "for --with-libpng"""... $ac_c" 1>&6
e8f65ba6 1623echo "configure:1624: checking "for --with-libpng"" >&5
10f2d63a 1624 no_cache=0
b12915c1
VZ
1625 # Check whether --with-libpng or --without-libpng was given.
1626if test "${with_libpng+set}" = set; then
1627 withval="$with_libpng"
10f2d63a
VZ
1628
1629 if test "$withval" = yes; then
b12915c1 1630 ac_cv_use_libpng='wxUSE_LIBPNG=yes'
422107f9 1631 elif test "$withval" = no; then
b12915c1 1632 ac_cv_use_libpng='wxUSE_LIBPNG=no'
422107f9
VZ
1633 elif test "$withval" = sys; then
1634 ac_cv_use_libpng='wxUSE_LIBPNG=sys'
1635 else
1636 { echo "configure: error: Invalid value for --with-libpng: should be yes, no or sys" 1>&2; exit 1; }
10f2d63a
VZ
1637 fi
1638
1639else
1640
b12915c1 1641 LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
10f2d63a
VZ
1642 if test "x$LINE" != x ; then
1643 eval "DEFAULT_$LINE"
1644 else
1645 no_cache=1
1646 fi
1647
b12915c1 1648 ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
10f2d63a
VZ
1649
1650fi
1651
1652
b12915c1 1653 eval "$ac_cv_use_libpng"
10f2d63a 1654 if test "$no_cache" != 1; then
b12915c1 1655 echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
1656 fi
1657
b12915c1 1658 if test "$wxUSE_LIBPNG" = yes; then
10f2d63a 1659 echo "$ac_t""yes" 1>&6
422107f9 1660 elif test "$wxUSE_LIBPNG" = no; then
10f2d63a 1661 echo "$ac_t""no" 1>&6
422107f9
VZ
1662 elif test "$wxUSE_LIBPNG" = sys; then
1663 echo "$ac_t""system version" 1>&6
1664 else
1665 { echo "configure: error: Invalid value for --with-libpng: should be yes, no or sys" 1>&2; exit 1; }
10f2d63a
VZ
1666 fi
1667
1668
b12915c1 1669 echo $ac_n "checking "for --with-libjpeg"""... $ac_c" 1>&6
e8f65ba6 1670echo "configure:1671: checking "for --with-libjpeg"" >&5
10f2d63a 1671 no_cache=0
b12915c1
VZ
1672 # Check whether --with-libjpeg or --without-libjpeg was given.
1673if test "${with_libjpeg+set}" = set; then
1674 withval="$with_libjpeg"
10f2d63a
VZ
1675
1676 if test "$withval" = yes; then
b12915c1 1677 ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
422107f9 1678 elif test "$withval" = no; then
b12915c1 1679 ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
422107f9
VZ
1680 elif test "$withval" = sys; then
1681 ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
1682 else
1683 { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no or sys" 1>&2; exit 1; }
10f2d63a
VZ
1684 fi
1685
1686else
1687
b12915c1 1688 LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
10f2d63a
VZ
1689 if test "x$LINE" != x ; then
1690 eval "DEFAULT_$LINE"
1691 else
1692 no_cache=1
1693 fi
1694
b12915c1 1695 ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
10f2d63a
VZ
1696
1697fi
1698
1699
b12915c1 1700 eval "$ac_cv_use_libjpeg"
10f2d63a 1701 if test "$no_cache" != 1; then
b12915c1 1702 echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
1703 fi
1704
b12915c1 1705 if test "$wxUSE_LIBJPEG" = yes; then
10f2d63a 1706 echo "$ac_t""yes" 1>&6
422107f9 1707 elif test "$wxUSE_LIBJPEG" = no; then
10f2d63a 1708 echo "$ac_t""no" 1>&6
422107f9
VZ
1709 elif test "$wxUSE_LIBJPEG" = sys; then
1710 echo "$ac_t""system version" 1>&6
1711 else
1712 { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no or sys" 1>&2; exit 1; }
10f2d63a
VZ
1713 fi
1714
1715
b12915c1 1716 echo $ac_n "checking "for --with-libtiff"""... $ac_c" 1>&6
e8f65ba6 1717echo "configure:1718: checking "for --with-libtiff"" >&5
10f2d63a 1718 no_cache=0
b12915c1
VZ
1719 # Check whether --with-libtiff or --without-libtiff was given.
1720if test "${with_libtiff+set}" = set; then
1721 withval="$with_libtiff"
10f2d63a
VZ
1722
1723 if test "$withval" = yes; then
b12915c1 1724 ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
0dcf9893 1725 elif test "$withval" = no; then
b12915c1 1726 ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
0dcf9893
VZ
1727 elif test "$withval" = sys; then
1728 ac_cv_use_libtiff='wxUSE_LIBTIFF=sys'
1729 else
1730 { echo "configure: error: Invalid value for --with-libtiff: should be yes, no or sys" 1>&2; exit 1; }
10f2d63a
VZ
1731 fi
1732
1733else
1734
b12915c1 1735 LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
10f2d63a
VZ
1736 if test "x$LINE" != x ; then
1737 eval "DEFAULT_$LINE"
1738 else
1739 no_cache=1
1740 fi
1741
b12915c1 1742 ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
10f2d63a
VZ
1743
1744fi
1745
1746
b12915c1 1747 eval "$ac_cv_use_libtiff"
10f2d63a 1748 if test "$no_cache" != 1; then
b12915c1 1749 echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
1750 fi
1751
b12915c1 1752 if test "$wxUSE_LIBTIFF" = yes; then
10f2d63a 1753 echo "$ac_t""yes" 1>&6
0dcf9893 1754 elif test "$wxUSE_LIBTIFF" = no; then
10f2d63a 1755 echo "$ac_t""no" 1>&6
0dcf9893
VZ
1756 elif test "$wxUSE_LIBTIFF" = sys; then
1757 echo "$ac_t""system version" 1>&6
1758 else
1759 { echo "configure: error: Invalid value for --with-libtiff: should be yes, no or sys" 1>&2; exit 1; }
10f2d63a
VZ
1760 fi
1761
1762
3fed1840 1763 echo $ac_n "checking "for --with-freetype"""... $ac_c" 1>&6
e8f65ba6 1764echo "configure:1765: checking "for --with-freetype"" >&5
3fed1840
RR
1765 no_cache=0
1766 # Check whether --with-freetype or --without-freetype was given.
1767if test "${with_freetype+set}" = set; then
1768 withval="$with_freetype"
1769
1770 if test "$withval" = yes; then
1771 ac_cv_use_freetype='wxUSE_FREETYPE=yes'
1772 elif test "$withval" = no; then
1773 ac_cv_use_freetype='wxUSE_FREETYPE=no'
1774 elif test "$withval" = sys; then
1775 ac_cv_use_freetype='wxUSE_FREETYPE=sys'
1776 else
1777 { echo "configure: error: Invalid value for --with-freetype: should be yes, no or sys" 1>&2; exit 1; }
1778 fi
1779
1780else
1781
1782 LINE=`grep "wxUSE_FREETYPE" ${wx_arg_cache_file}`
1783 if test "x$LINE" != x ; then
1784 eval "DEFAULT_$LINE"
1785 else
1786 no_cache=1
1787 fi
1788
1789 ac_cv_use_freetype='wxUSE_FREETYPE='$DEFAULT_wxUSE_FREETYPE
1790
1791fi
1792
1793
1794 eval "$ac_cv_use_freetype"
1795 if test "$no_cache" != 1; then
1796 echo $ac_cv_use_freetype >> ${wx_arg_cache_file}.tmp
1797 fi
1798
1799 if test "$wxUSE_FREETYPE" = yes; then
1800 echo "$ac_t""yes" 1>&6
1801 elif test "$wxUSE_FREETYPE" = no; then
1802 echo "$ac_t""no" 1>&6
1803 elif test "$wxUSE_FREETYPE" = sys; then
1804 echo "$ac_t""system version" 1>&6
1805 else
1806 { echo "configure: error: Invalid value for --with-freetype: should be yes, no or sys" 1>&2; exit 1; }
1807 fi
1808
1809
b12915c1 1810 echo $ac_n "checking "for --with-opengl"""... $ac_c" 1>&6
e8f65ba6 1811echo "configure:1812: checking "for --with-opengl"" >&5
10f2d63a 1812 no_cache=0
b12915c1
VZ
1813 # Check whether --with-opengl or --without-opengl was given.
1814if test "${with_opengl+set}" = set; then
1815 withval="$with_opengl"
10f2d63a
VZ
1816
1817 if test "$withval" = yes; then
b12915c1 1818 ac_cv_use_opengl='wxUSE_OPENGL=yes'
10f2d63a 1819 else
b12915c1 1820 ac_cv_use_opengl='wxUSE_OPENGL=no'
10f2d63a
VZ
1821 fi
1822
1823else
1824
b12915c1 1825 LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
10f2d63a
VZ
1826 if test "x$LINE" != x ; then
1827 eval "DEFAULT_$LINE"
1828 else
1829 no_cache=1
1830 fi
1831
b12915c1 1832 ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
10f2d63a
VZ
1833
1834fi
1835
1836
b12915c1 1837 eval "$ac_cv_use_opengl"
10f2d63a 1838 if test "$no_cache" != 1; then
b12915c1 1839 echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
1840 fi
1841
b12915c1 1842 if test "$wxUSE_OPENGL" = yes; then
10f2d63a
VZ
1843 echo "$ac_t""yes" 1>&6
1844 else
1845 echo "$ac_t""no" 1>&6
1846 fi
1847
1848
b12915c1
VZ
1849fi
1850
1851
1852 echo $ac_n "checking "for --with-dmalloc"""... $ac_c" 1>&6
e8f65ba6 1853echo "configure:1854: checking "for --with-dmalloc"" >&5
c7a2bf27 1854 no_cache=0
b12915c1
VZ
1855 # Check whether --with-dmalloc or --without-dmalloc was given.
1856if test "${with_dmalloc+set}" = set; then
1857 withval="$with_dmalloc"
c7a2bf27
RR
1858
1859 if test "$withval" = yes; then
b12915c1 1860 ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
c7a2bf27 1861 else
b12915c1 1862 ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
c7a2bf27
RR
1863 fi
1864
1865else
1866
b12915c1 1867 LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
c7a2bf27
RR
1868 if test "x$LINE" != x ; then
1869 eval "DEFAULT_$LINE"
1870 else
1871 no_cache=1
1872 fi
1873
b12915c1 1874 ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
c7a2bf27
RR
1875
1876fi
1877
1878
b12915c1 1879 eval "$ac_cv_use_dmalloc"
c7a2bf27 1880 if test "$no_cache" != 1; then
b12915c1 1881 echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
c7a2bf27
RR
1882 fi
1883
b12915c1 1884 if test "$wxUSE_DMALLOC" = yes; then
c7a2bf27
RR
1885 echo "$ac_t""yes" 1>&6
1886 else
1887 echo "$ac_t""no" 1>&6
1888 fi
1889
1890
b12915c1 1891 echo $ac_n "checking "for --with-zlib"""... $ac_c" 1>&6
e8f65ba6 1892echo "configure:1893: checking "for --with-zlib"" >&5
10f2d63a 1893 no_cache=0
b12915c1
VZ
1894 # Check whether --with-zlib or --without-zlib was given.
1895if test "${with_zlib+set}" = set; then
1896 withval="$with_zlib"
10f2d63a
VZ
1897
1898 if test "$withval" = yes; then
b12915c1 1899 ac_cv_use_zlib='wxUSE_ZLIB=yes'
422107f9 1900 elif test "$withval" = no; then
b12915c1 1901 ac_cv_use_zlib='wxUSE_ZLIB=no'
422107f9
VZ
1902 elif test "$withval" = sys; then
1903 ac_cv_use_zlib='wxUSE_ZLIB=sys'
1904 else
1905 { echo "configure: error: Invalid value for --with-zlib: should be yes, no or sys" 1>&2; exit 1; }
10f2d63a
VZ
1906 fi
1907
1908else
1909
b12915c1 1910 LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
10f2d63a
VZ
1911 if test "x$LINE" != x ; then
1912 eval "DEFAULT_$LINE"
1913 else
1914 no_cache=1
1915 fi
1916
b12915c1 1917 ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
10f2d63a
VZ
1918
1919fi
1920
1921
b12915c1 1922 eval "$ac_cv_use_zlib"
10f2d63a 1923 if test "$no_cache" != 1; then
b12915c1 1924 echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
1925 fi
1926
b12915c1 1927 if test "$wxUSE_ZLIB" = yes; then
10f2d63a 1928 echo "$ac_t""yes" 1>&6
422107f9 1929 elif test "$wxUSE_ZLIB" = no; then
bdad4e7e 1930 echo "$ac_t""no" 1>&6
422107f9
VZ
1931 elif test "$wxUSE_ZLIB" = sys; then
1932 echo "$ac_t""system version" 1>&6
1933 else
1934 { echo "configure: error: Invalid value for --with-zlib: should be yes, no or sys" 1>&2; exit 1; }
10f2d63a
VZ
1935 fi
1936
1937
1938 echo $ac_n "checking "for --with-odbc"""... $ac_c" 1>&6
e8f65ba6 1939echo "configure:1940: checking "for --with-odbc"" >&5
10f2d63a
VZ
1940 no_cache=0
1941 # Check whether --with-odbc or --without-odbc was given.
1942if test "${with_odbc+set}" = set; then
1943 withval="$with_odbc"
1944
1945 if test "$withval" = yes; then
1946 ac_cv_use_odbc='wxUSE_ODBC=yes'
1947 else
1948 ac_cv_use_odbc='wxUSE_ODBC=no'
1949 fi
1950
1951else
1952
1953 LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
1954 if test "x$LINE" != x ; then
1955 eval "DEFAULT_$LINE"
1956 else
1957 no_cache=1
1958 fi
1959
1960 ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
1961
1962fi
1963
1964
1965 eval "$ac_cv_use_odbc"
1966 if test "$no_cache" != 1; then
1967 echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
1968 fi
1969
1970 if test "$wxUSE_ODBC" = yes; then
1971 echo "$ac_t""yes" 1>&6
1972 else
1973 echo "$ac_t""no" 1>&6
1974 fi
1975
1976
1977
1978
1979
1980 echo $ac_n "checking "for --enable-shared"""... $ac_c" 1>&6
e8f65ba6 1981echo "configure:1982: checking "for --enable-shared"" >&5
10f2d63a
VZ
1982 no_cache=0
1983 # Check whether --enable-shared or --disable-shared was given.
1984if test "${enable_shared+set}" = set; then
1985 enableval="$enable_shared"
1986
1987 if test "$enableval" = yes; then
1988 ac_cv_use_shared='wxUSE_SHARED=yes'
1989 else
1990 ac_cv_use_shared='wxUSE_SHARED=no'
1991 fi
1992
1993else
1994
1995 LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
1996 if test "x$LINE" != x ; then
1997 eval "DEFAULT_$LINE"
1998 else
1999 no_cache=1
2000 fi
2001
2002 ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
2003
2004fi
2005
2006
2007 eval "$ac_cv_use_shared"
2008 if test "$no_cache" != 1; then
2009 echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
2010 fi
2011
2012 if test "$wxUSE_SHARED" = yes; then
2013 echo "$ac_t""yes" 1>&6
2014 else
2015 echo "$ac_t""no" 1>&6
2016 fi
2017
2018
00cf1208 2019 echo $ac_n "checking "for --enable-burnt_name"""... $ac_c" 1>&6
e8f65ba6 2020echo "configure:2021: checking "for --enable-burnt_name"" >&5
00cf1208
RR
2021 no_cache=0
2022 # Check whether --enable-burnt_name or --disable-burnt_name was given.
2023if test "${enable_burnt_name+set}" = set; then
2024 enableval="$enable_burnt_name"
2025
2026 if test "$enableval" = yes; then
2027 ac_cv_use_burnt_name='wxUSE_BURNT_NAME=yes'
2028 else
2029 ac_cv_use_burnt_name='wxUSE_BURNT_NAME=no'
2030 fi
2031
2032else
2033
2034 LINE=`grep "wxUSE_BURNT_NAME" ${wx_arg_cache_file}`
2035 if test "x$LINE" != x ; then
2036 eval "DEFAULT_$LINE"
2037 else
2038 no_cache=1
2039 fi
2040
2041 ac_cv_use_burnt_name='wxUSE_BURNT_NAME='$DEFAULT_wxUSE_BURNT_NAME
2042
2043fi
2044
2045
2046 eval "$ac_cv_use_burnt_name"
2047 if test "$no_cache" != 1; then
2048 echo $ac_cv_use_burnt_name >> ${wx_arg_cache_file}.tmp
2049 fi
2050
2051 if test "$wxUSE_BURNT_NAME" = yes; then
2052 echo "$ac_t""yes" 1>&6
2053 else
2054 echo "$ac_t""no" 1>&6
2055 fi
2056
2057
10f2d63a 2058 echo $ac_n "checking "for --enable-optimise"""... $ac_c" 1>&6
e8f65ba6 2059echo "configure:2060: checking "for --enable-optimise"" >&5
10f2d63a
VZ
2060 no_cache=0
2061 # Check whether --enable-optimise or --disable-optimise was given.
2062if test "${enable_optimise+set}" = set; then
2063 enableval="$enable_optimise"
2064
2065 if test "$enableval" = yes; then
2066 ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
2067 else
2068 ac_cv_use_optimise='wxUSE_OPTIMISE=no'
2069 fi
2070
2071else
2072
2073 LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
2074 if test "x$LINE" != x ; then
2075 eval "DEFAULT_$LINE"
2076 else
2077 no_cache=1
2078 fi
2079
2080 ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
2081
2082fi
2083
2084
2085 eval "$ac_cv_use_optimise"
2086 if test "$no_cache" != 1; then
2087 echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
2088 fi
2089
2090 if test "$wxUSE_OPTIMISE" = yes; then
2091 echo "$ac_t""yes" 1>&6
2092 else
2093 echo "$ac_t""no" 1>&6
2094 fi
2095
2096
2097 echo $ac_n "checking "for --enable-debug"""... $ac_c" 1>&6
e8f65ba6 2098echo "configure:2099: checking "for --enable-debug"" >&5
10f2d63a
VZ
2099 no_cache=0
2100 # Check whether --enable-debug or --disable-debug was given.
2101if test "${enable_debug+set}" = set; then
2102 enableval="$enable_debug"
2103
2104 if test "$enableval" = yes; then
2105 ac_cv_use_debug='wxUSE_DEBUG=yes'
2106 else
2107 ac_cv_use_debug='wxUSE_DEBUG=no'
2108 fi
2109
2110else
2111
2112 LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
2113 if test "x$LINE" != x ; then
2114 eval "DEFAULT_$LINE"
2115 else
2116 no_cache=1
2117 fi
2118
2119 ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
2120
2121fi
2122
2123
2124 eval "$ac_cv_use_debug"
2125 if test "$no_cache" != 1; then
2126 echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
2127 fi
2128
2129 if test "$wxUSE_DEBUG" = yes; then
2130 echo "$ac_t""yes" 1>&6
2131 else
2132 echo "$ac_t""no" 1>&6
2133 fi
2134
2135
2136if test "$wxUSE_DEBUG" = "yes"; then
2137 DEFAULT_wxUSE_DEBUG_FLAG=yes
2138 DEFAULT_wxUSE_DEBUG_INFO=yes
2139elif test "$wxUSE_DEBUG" = "no"; then
2140 DEFAULT_wxUSE_DEBUG_FLAG=no
2141 DEFAULT_wxUSE_DEBUG_INFO=no
2142fi
2143
2144
2145 echo $ac_n "checking "for --enable-debug_flag"""... $ac_c" 1>&6
e8f65ba6 2146echo "configure:2147: checking "for --enable-debug_flag"" >&5
10f2d63a
VZ
2147 no_cache=0
2148 # Check whether --enable-debug_flag or --disable-debug_flag was given.
2149if test "${enable_debug_flag+set}" = set; then
2150 enableval="$enable_debug_flag"
2151
2152 if test "$enableval" = yes; then
2153 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
2154 else
2155 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
2156 fi
2157
2158else
2159
2160 LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
2161 if test "x$LINE" != x ; then
2162 eval "DEFAULT_$LINE"
2163 else
2164 no_cache=1
2165 fi
2166
2167 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
2168
2169fi
2170
2171
2172 eval "$ac_cv_use_debug_flag"
2173 if test "$no_cache" != 1; then
2174 echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
2175 fi
2176
2177 if test "$wxUSE_DEBUG_FLAG" = yes; then
2178 echo "$ac_t""yes" 1>&6
2179 else
2180 echo "$ac_t""no" 1>&6
2181 fi
2182
2183
2184 echo $ac_n "checking "for --enable-debug_info"""... $ac_c" 1>&6
e8f65ba6 2185echo "configure:2186: checking "for --enable-debug_info"" >&5
10f2d63a
VZ
2186 no_cache=0
2187 # Check whether --enable-debug_info or --disable-debug_info was given.
2188if test "${enable_debug_info+set}" = set; then
2189 enableval="$enable_debug_info"
2190
2191 if test "$enableval" = yes; then
2192 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
2193 else
2194 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
2195 fi
2196
2197else
2198
2199 LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
2200 if test "x$LINE" != x ; then
2201 eval "DEFAULT_$LINE"
2202 else
2203 no_cache=1
2204 fi
2205
2206 ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
2207
2208fi
2209
2210
2211 eval "$ac_cv_use_debug_info"
2212 if test "$no_cache" != 1; then
2213 echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
2214 fi
2215
2216 if test "$wxUSE_DEBUG_INFO" = yes; then
2217 echo "$ac_t""yes" 1>&6
2218 else
2219 echo "$ac_t""no" 1>&6
2220 fi
2221
2222
2223 echo $ac_n "checking "for --enable-debug_gdb"""... $ac_c" 1>&6
e8f65ba6 2224echo "configure:2225: checking "for --enable-debug_gdb"" >&5
10f2d63a
VZ
2225 no_cache=0
2226 # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
2227if test "${enable_debug_gdb+set}" = set; then
2228 enableval="$enable_debug_gdb"
2229
2230 if test "$enableval" = yes; then
2231 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
2232 else
2233 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
2234 fi
2235
2236else
2237
2238 LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
2239 if test "x$LINE" != x ; then
2240 eval "DEFAULT_$LINE"
2241 else
2242 no_cache=1
2243 fi
2244
2245 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
2246
2247fi
2248
2249
2250 eval "$ac_cv_use_debug_gdb"
2251 if test "$no_cache" != 1; then
2252 echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
2253 fi
2254
2255 if test "$wxUSE_DEBUG_GDB" = yes; then
2256 echo "$ac_t""yes" 1>&6
2257 else
2258 echo "$ac_t""no" 1>&6
2259 fi
2260
2261
2262 echo $ac_n "checking "for --enable-debug_cntxt"""... $ac_c" 1>&6
e8f65ba6 2263echo "configure:2264: checking "for --enable-debug_cntxt"" >&5
10f2d63a
VZ
2264 no_cache=0
2265 # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
2266if test "${enable_debug_cntxt+set}" = set; then
2267 enableval="$enable_debug_cntxt"
2268
2269 if test "$enableval" = yes; then
2270 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
2271 else
2272 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
2273 fi
2274
2275else
2276
2277 LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
2278 if test "x$LINE" != x ; then
2279 eval "DEFAULT_$LINE"
2280 else
2281 no_cache=1
2282 fi
2283
2284 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
2285
2286fi
2287
2288
2289 eval "$ac_cv_use_debug_cntxt"
2290 if test "$no_cache" != 1; then
2291 echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
2292 fi
2293
2294 if test "$wxUSE_DEBUG_CONTEXT" = yes; then
2295 echo "$ac_t""yes" 1>&6
2296 else
2297 echo "$ac_t""no" 1>&6
2298 fi
2299
2300
2301 echo $ac_n "checking "for --enable-mem_tracing"""... $ac_c" 1>&6
e8f65ba6 2302echo "configure:2303: checking "for --enable-mem_tracing"" >&5
10f2d63a
VZ
2303 no_cache=0
2304 # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
2305if test "${enable_mem_tracing+set}" = set; then
2306 enableval="$enable_mem_tracing"
2307
2308 if test "$enableval" = yes; then
2309 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
2310 else
2311 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
2312 fi
2313
2314else
2315
2316 LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
2317 if test "x$LINE" != x ; then
2318 eval "DEFAULT_$LINE"
2319 else
2320 no_cache=1
2321 fi
2322
2323 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
2324
2325fi
2326
2327
2328 eval "$ac_cv_use_mem_tracing"
2329 if test "$no_cache" != 1; then
2330 echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
2331 fi
2332
2333 if test "$wxUSE_MEM_TRACING" = yes; then
2334 echo "$ac_t""yes" 1>&6
2335 else
2336 echo "$ac_t""no" 1>&6
2337 fi
2338
2339
2340 echo $ac_n "checking "for --enable-profile"""... $ac_c" 1>&6
e8f65ba6 2341echo "configure:2342: checking "for --enable-profile"" >&5
10f2d63a
VZ
2342 no_cache=0
2343 # Check whether --enable-profile or --disable-profile was given.
2344if test "${enable_profile+set}" = set; then
2345 enableval="$enable_profile"
2346
2347 if test "$enableval" = yes; then
2348 ac_cv_use_profile='wxUSE_PROFILE=yes'
2349 else
2350 ac_cv_use_profile='wxUSE_PROFILE=no'
2351 fi
2352
2353else
2354
2355 LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
2356 if test "x$LINE" != x ; then
2357 eval "DEFAULT_$LINE"
2358 else
2359 no_cache=1
2360 fi
2361
2362 ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
2363
2364fi
2365
2366
2367 eval "$ac_cv_use_profile"
2368 if test "$no_cache" != 1; then
2369 echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
2370 fi
2371
2372 if test "$wxUSE_PROFILE" = yes; then
2373 echo "$ac_t""yes" 1>&6
2374 else
2375 echo "$ac_t""no" 1>&6
2376 fi
2377
2378
2379 echo $ac_n "checking "for --enable-no_rtti"""... $ac_c" 1>&6
e8f65ba6 2380echo "configure:2381: checking "for --enable-no_rtti"" >&5
10f2d63a
VZ
2381 no_cache=0
2382 # Check whether --enable-no_rtti or --disable-no_rtti was given.
2383if test "${enable_no_rtti+set}" = set; then
2384 enableval="$enable_no_rtti"
2385
2386 if test "$enableval" = yes; then
2387 ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
2388 else
2389 ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
2390 fi
2391
2392else
2393
2394 LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
2395 if test "x$LINE" != x ; then
2396 eval "DEFAULT_$LINE"
2397 else
2398 no_cache=1
2399 fi
2400
2401 ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
2402
2403fi
2404
2405
2406 eval "$ac_cv_use_no_rtti"
2407 if test "$no_cache" != 1; then
2408 echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
2409 fi
2410
2411 if test "$wxUSE_NO_RTTI" = yes; then
2412 echo "$ac_t""yes" 1>&6
2413 else
2414 echo "$ac_t""no" 1>&6
2415 fi
2416
2417
2418 echo $ac_n "checking "for --enable-no_exceptions"""... $ac_c" 1>&6
e8f65ba6 2419echo "configure:2420: checking "for --enable-no_exceptions"" >&5
10f2d63a
VZ
2420 no_cache=0
2421 # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
2422if test "${enable_no_exceptions+set}" = set; then
2423 enableval="$enable_no_exceptions"
2424
2425 if test "$enableval" = yes; then
2426 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
2427 else
2428 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
2429 fi
2430
2431else
2432
2433 LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
2434 if test "x$LINE" != x ; then
2435 eval "DEFAULT_$LINE"
2436 else
2437 no_cache=1
2438 fi
2439
2440 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
2441
2442fi
2443
2444
2445 eval "$ac_cv_use_no_exceptions"
2446 if test "$no_cache" != 1; then
2447 echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
2448 fi
2449
2450 if test "$wxUSE_NO_EXCEPTIONS" = yes; then
2451 echo "$ac_t""yes" 1>&6
2452 else
2453 echo "$ac_t""no" 1>&6
2454 fi
2455
2456
2457 echo $ac_n "checking "for --enable-permissive"""... $ac_c" 1>&6
e8f65ba6 2458echo "configure:2459: checking "for --enable-permissive"" >&5
10f2d63a
VZ
2459 no_cache=0
2460 # Check whether --enable-permissive or --disable-permissive was given.
2461if test "${enable_permissive+set}" = set; then
2462 enableval="$enable_permissive"
2463
2464 if test "$enableval" = yes; then
2465 ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
2466 else
2467 ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
2468 fi
2469
2470else
2471
2472 LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
2473 if test "x$LINE" != x ; then
2474 eval "DEFAULT_$LINE"
2475 else
2476 no_cache=1
2477 fi
2478
2479 ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
2480
2481fi
2482
2483
2484 eval "$ac_cv_use_permissive"
2485 if test "$no_cache" != 1; then
2486 echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
2487 fi
2488
2489 if test "$wxUSE_PERMISSIVE" = yes; then
2490 echo "$ac_t""yes" 1>&6
2491 else
2492 echo "$ac_t""no" 1>&6
2493 fi
2494
2495
2496 echo $ac_n "checking "for --enable-no_deps"""... $ac_c" 1>&6
e8f65ba6 2497echo "configure:2498: checking "for --enable-no_deps"" >&5
10f2d63a
VZ
2498 no_cache=0
2499 # Check whether --enable-no_deps or --disable-no_deps was given.
2500if test "${enable_no_deps+set}" = set; then
2501 enableval="$enable_no_deps"
2502
2503 if test "$enableval" = yes; then
2504 ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
2505 else
2506 ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
2507 fi
2508
2509else
2510
2511 LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
2512 if test "x$LINE" != x ; then
2513 eval "DEFAULT_$LINE"
2514 else
2515 no_cache=1
2516 fi
2517
2518 ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
2519
2520fi
2521
2522
2523 eval "$ac_cv_use_no_deps"
2524 if test "$no_cache" != 1; then
2525 echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
2526 fi
2527
2528 if test "$wxUSE_NO_DEPS" = yes; then
2529 echo "$ac_t""yes" 1>&6
2530 else
2531 echo "$ac_t""no" 1>&6
2532 fi
2533
2534
2535
2536
2537 echo $ac_n "checking "for --enable-intl"""... $ac_c" 1>&6
e8f65ba6 2538echo "configure:2539: checking "for --enable-intl"" >&5
10f2d63a
VZ
2539 no_cache=0
2540 # Check whether --enable-intl or --disable-intl was given.
2541if test "${enable_intl+set}" = set; then
2542 enableval="$enable_intl"
2543
2544 if test "$enableval" = yes; then
2545 ac_cv_use_intl='wxUSE_INTL=yes'
2546 else
2547 ac_cv_use_intl='wxUSE_INTL=no'
2548 fi
2549
2550else
2551
2552 LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
2553 if test "x$LINE" != x ; then
2554 eval "DEFAULT_$LINE"
2555 else
2556 no_cache=1
2557 fi
2558
2559 ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
2560
2561fi
2562
2563
2564 eval "$ac_cv_use_intl"
2565 if test "$no_cache" != 1; then
2566 echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
2567 fi
2568
2569 if test "$wxUSE_INTL" = yes; then
2570 echo "$ac_t""yes" 1>&6
2571 else
2572 echo "$ac_t""no" 1>&6
2573 fi
2574
2575
2576 echo $ac_n "checking "for --enable-config"""... $ac_c" 1>&6
e8f65ba6 2577echo "configure:2578: checking "for --enable-config"" >&5
10f2d63a
VZ
2578 no_cache=0
2579 # Check whether --enable-config or --disable-config was given.
2580if test "${enable_config+set}" = set; then
2581 enableval="$enable_config"
2582
2583 if test "$enableval" = yes; then
2584 ac_cv_use_config='wxUSE_CONFIG=yes'
2585 else
2586 ac_cv_use_config='wxUSE_CONFIG=no'
2587 fi
2588
2589else
2590
2591 LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
2592 if test "x$LINE" != x ; then
2593 eval "DEFAULT_$LINE"
2594 else
2595 no_cache=1
2596 fi
2597
2598 ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
2599
2600fi
2601
2602
2603 eval "$ac_cv_use_config"
2604 if test "$no_cache" != 1; then
2605 echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
2606 fi
2607
2608 if test "$wxUSE_CONFIG" = yes; then
2609 echo "$ac_t""yes" 1>&6
2610 else
2611 echo "$ac_t""no" 1>&6
2612 fi
2613
2614
b12915c1 2615
10f2d63a 2616 echo $ac_n "checking "for --enable-sockets"""... $ac_c" 1>&6
e8f65ba6 2617echo "configure:2618: checking "for --enable-sockets"" >&5
10f2d63a
VZ
2618 no_cache=0
2619 # Check whether --enable-sockets or --disable-sockets was given.
2620if test "${enable_sockets+set}" = set; then
2621 enableval="$enable_sockets"
2622
2623 if test "$enableval" = yes; then
2624 ac_cv_use_sockets='wxUSE_SOCKETS=yes'
2625 else
2626 ac_cv_use_sockets='wxUSE_SOCKETS=no'
2627 fi
2628
2629else
2630
2631 LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
2632 if test "x$LINE" != x ; then
2633 eval "DEFAULT_$LINE"
2634 else
2635 no_cache=1
2636 fi
2637
2638 ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
2639
2640fi
2641
2642
2643 eval "$ac_cv_use_sockets"
2644 if test "$no_cache" != 1; then
2645 echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
2646 fi
2647
2648 if test "$wxUSE_SOCKETS" = yes; then
2649 echo "$ac_t""yes" 1>&6
2650 else
2651 echo "$ac_t""no" 1>&6
2652 fi
2653
b12915c1 2654
10f2d63a 2655
eb4efbdc 2656 echo $ac_n "checking "for --enable-ipc"""... $ac_c" 1>&6
e8f65ba6 2657echo "configure:2658: checking "for --enable-ipc"" >&5
10f2d63a 2658 no_cache=0
eb4efbdc
VZ
2659 # Check whether --enable-ipc or --disable-ipc was given.
2660if test "${enable_ipc+set}" = set; then
2661 enableval="$enable_ipc"
10f2d63a
VZ
2662
2663 if test "$enableval" = yes; then
eb4efbdc 2664 ac_cv_use_ipc='wxUSE_IPC=yes'
10f2d63a 2665 else
eb4efbdc 2666 ac_cv_use_ipc='wxUSE_IPC=no'
10f2d63a
VZ
2667 fi
2668
2669else
2670
eb4efbdc 2671 LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
10f2d63a
VZ
2672 if test "x$LINE" != x ; then
2673 eval "DEFAULT_$LINE"
2674 else
2675 no_cache=1
2676 fi
2677
eb4efbdc 2678 ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
10f2d63a
VZ
2679
2680fi
2681
2682
eb4efbdc 2683 eval "$ac_cv_use_ipc"
10f2d63a 2684 if test "$no_cache" != 1; then
eb4efbdc 2685 echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2686 fi
2687
eb4efbdc 2688 if test "$wxUSE_IPC" = yes; then
10f2d63a
VZ
2689 echo "$ac_t""yes" 1>&6
2690 else
2691 echo "$ac_t""no" 1>&6
2692 fi
2693
2694
eb4efbdc
VZ
2695
2696 echo $ac_n "checking "for --enable-dialupman"""... $ac_c" 1>&6
e8f65ba6 2697echo "configure:2698: checking "for --enable-dialupman"" >&5
10f2d63a 2698 no_cache=0
eb4efbdc
VZ
2699 # Check whether --enable-dialupman or --disable-dialupman was given.
2700if test "${enable_dialupman+set}" = set; then
2701 enableval="$enable_dialupman"
10f2d63a
VZ
2702
2703 if test "$enableval" = yes; then
eb4efbdc 2704 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
10f2d63a 2705 else
eb4efbdc 2706 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
10f2d63a
VZ
2707 fi
2708
2709else
2710
eb4efbdc 2711 LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
10f2d63a
VZ
2712 if test "x$LINE" != x ; then
2713 eval "DEFAULT_$LINE"
2714 else
2715 no_cache=1
2716 fi
2717
eb4efbdc 2718 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
10f2d63a
VZ
2719
2720fi
2721
2722
eb4efbdc 2723 eval "$ac_cv_use_dialupman"
10f2d63a 2724 if test "$no_cache" != 1; then
eb4efbdc 2725 echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2726 fi
2727
eb4efbdc 2728 if test "$wxUSE_DIALUP_MANAGER" = yes; then
10f2d63a
VZ
2729 echo "$ac_t""yes" 1>&6
2730 else
2731 echo "$ac_t""no" 1>&6
2732 fi
2733
2734
2735 echo $ac_n "checking "for --enable-apple_ieee"""... $ac_c" 1>&6
e8f65ba6 2736echo "configure:2737: checking "for --enable-apple_ieee"" >&5
10f2d63a
VZ
2737 no_cache=0
2738 # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
2739if test "${enable_apple_ieee+set}" = set; then
2740 enableval="$enable_apple_ieee"
2741
2742 if test "$enableval" = yes; then
2743 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
2744 else
2745 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
2746 fi
2747
2748else
2749
2750 LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
2751 if test "x$LINE" != x ; then
2752 eval "DEFAULT_$LINE"
2753 else
2754 no_cache=1
2755 fi
2756
2757 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
2758
2759fi
2760
2761
2762 eval "$ac_cv_use_apple_ieee"
2763 if test "$no_cache" != 1; then
2764 echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
2765 fi
2766
2767 if test "$wxUSE_APPLE_IEEE" = yes; then
2768 echo "$ac_t""yes" 1>&6
2769 else
2770 echo "$ac_t""no" 1>&6
2771 fi
2772
2773
2774 echo $ac_n "checking "for --enable-timedate"""... $ac_c" 1>&6
e8f65ba6 2775echo "configure:2776: checking "for --enable-timedate"" >&5
10f2d63a
VZ
2776 no_cache=0
2777 # Check whether --enable-timedate or --disable-timedate was given.
2778if test "${enable_timedate+set}" = set; then
2779 enableval="$enable_timedate"
2780
2781 if test "$enableval" = yes; then
2782 ac_cv_use_timedate='wxUSE_TIMEDATE=yes'
2783 else
2784 ac_cv_use_timedate='wxUSE_TIMEDATE=no'
2785 fi
2786
2787else
2788
2789 LINE=`grep "wxUSE_TIMEDATE" ${wx_arg_cache_file}`
2790 if test "x$LINE" != x ; then
2791 eval "DEFAULT_$LINE"
2792 else
2793 no_cache=1
2794 fi
2795
2796 ac_cv_use_timedate='wxUSE_TIMEDATE='$DEFAULT_wxUSE_TIMEDATE
2797
2798fi
2799
2800
2801 eval "$ac_cv_use_timedate"
2802 if test "$no_cache" != 1; then
2803 echo $ac_cv_use_timedate >> ${wx_arg_cache_file}.tmp
2804 fi
2805
2806 if test "$wxUSE_TIMEDATE" = yes; then
2807 echo "$ac_t""yes" 1>&6
2808 else
2809 echo "$ac_t""no" 1>&6
2810 fi
2811
2812
2813 echo $ac_n "checking "for --enable-wave"""... $ac_c" 1>&6
e8f65ba6 2814echo "configure:2815: checking "for --enable-wave"" >&5
10f2d63a
VZ
2815 no_cache=0
2816 # Check whether --enable-wave or --disable-wave was given.
2817if test "${enable_wave+set}" = set; then
2818 enableval="$enable_wave"
2819
2820 if test "$enableval" = yes; then
2821 ac_cv_use_wave='wxUSE_WAVE=yes'
2822 else
2823 ac_cv_use_wave='wxUSE_WAVE=no'
2824 fi
2825
2826else
2827
2828 LINE=`grep "wxUSE_WAVE" ${wx_arg_cache_file}`
2829 if test "x$LINE" != x ; then
2830 eval "DEFAULT_$LINE"
2831 else
2832 no_cache=1
2833 fi
2834
2835 ac_cv_use_wave='wxUSE_WAVE='$DEFAULT_wxUSE_WAVE
2836
2837fi
2838
2839
2840 eval "$ac_cv_use_wave"
2841 if test "$no_cache" != 1; then
2842 echo $ac_cv_use_wave >> ${wx_arg_cache_file}.tmp
2843 fi
2844
2845 if test "$wxUSE_WAVE" = yes; then
2846 echo "$ac_t""yes" 1>&6
2847 else
2848 echo "$ac_t""no" 1>&6
2849 fi
2850
2851
2852 echo $ac_n "checking "for --enable-fraction"""... $ac_c" 1>&6
e8f65ba6 2853echo "configure:2854: checking "for --enable-fraction"" >&5
10f2d63a
VZ
2854 no_cache=0
2855 # Check whether --enable-fraction or --disable-fraction was given.
2856if test "${enable_fraction+set}" = set; then
2857 enableval="$enable_fraction"
2858
2859 if test "$enableval" = yes; then
2860 ac_cv_use_fraction='wxUSE_FRACTION=yes'
2861 else
2862 ac_cv_use_fraction='wxUSE_FRACTION=no'
2863 fi
2864
2865else
2866
2867 LINE=`grep "wxUSE_FRACTION" ${wx_arg_cache_file}`
2868 if test "x$LINE" != x ; then
2869 eval "DEFAULT_$LINE"
2870 else
2871 no_cache=1
2872 fi
2873
2874 ac_cv_use_fraction='wxUSE_FRACTION='$DEFAULT_wxUSE_FRACTION
2875
2876fi
2877
2878
2879 eval "$ac_cv_use_fraction"
2880 if test "$no_cache" != 1; then
2881 echo $ac_cv_use_fraction >> ${wx_arg_cache_file}.tmp
2882 fi
2883
2884 if test "$wxUSE_FRACTION" = yes; then
2885 echo "$ac_t""yes" 1>&6
2886 else
2887 echo "$ac_t""no" 1>&6
2888 fi
2889
2890
2891 echo $ac_n "checking "for --enable-dynlib"""... $ac_c" 1>&6
e8f65ba6 2892echo "configure:2893: checking "for --enable-dynlib"" >&5
10f2d63a
VZ
2893 no_cache=0
2894 # Check whether --enable-dynlib or --disable-dynlib was given.
2895if test "${enable_dynlib+set}" = set; then
2896 enableval="$enable_dynlib"
2897
2898 if test "$enableval" = yes; then
2899 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
2900 else
2901 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
2902 fi
2903
2904else
2905
2906 LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
2907 if test "x$LINE" != x ; then
2908 eval "DEFAULT_$LINE"
2909 else
2910 no_cache=1
2911 fi
2912
2913 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
2914
2915fi
2916
2917
2918 eval "$ac_cv_use_dynlib"
2919 if test "$no_cache" != 1; then
2920 echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
2921 fi
2922
2923 if test "$wxUSE_DYNLIB_CLASS" = yes; then
2924 echo "$ac_t""yes" 1>&6
2925 else
2926 echo "$ac_t""no" 1>&6
2927 fi
2928
2929
2930 echo $ac_n "checking "for --enable-longlong"""... $ac_c" 1>&6
e8f65ba6 2931echo "configure:2932: checking "for --enable-longlong"" >&5
10f2d63a
VZ
2932 no_cache=0
2933 # Check whether --enable-longlong or --disable-longlong was given.
2934if test "${enable_longlong+set}" = set; then
2935 enableval="$enable_longlong"
2936
2937 if test "$enableval" = yes; then
2938 ac_cv_use_longlong='wxUSE_LONGLONG=yes'
2939 else
2940 ac_cv_use_longlong='wxUSE_LONGLONG=no'
2941 fi
2942
2943else
2944
2945 LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
2946 if test "x$LINE" != x ; then
2947 eval "DEFAULT_$LINE"
2948 else
2949 no_cache=1
2950 fi
2951
2952 ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
2953
2954fi
2955
2956
2957 eval "$ac_cv_use_longlong"
2958 if test "$no_cache" != 1; then
2959 echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
2960 fi
2961
2962 if test "$wxUSE_LONGLONG" = yes; then
2963 echo "$ac_t""yes" 1>&6
2964 else
2965 echo "$ac_t""no" 1>&6
2966 fi
2967
2968
e8f65ba6
RR
2969 echo $ac_n "checking "for --enable-geometry"""... $ac_c" 1>&6
2970echo "configure:2971: checking "for --enable-geometry"" >&5
2971 no_cache=0
2972 # Check whether --enable-geometry or --disable-geometry was given.
2973if test "${enable_geometry+set}" = set; then
2974 enableval="$enable_geometry"
2975
2976 if test "$enableval" = yes; then
2977 ac_cv_use_geometry='wxUSE_GEOMETRY=yes'
2978 else
2979 ac_cv_use_geometry='wxUSE_GEOMETRY=no'
2980 fi
2981
2982else
2983
2984 LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}`
2985 if test "x$LINE" != x ; then
2986 eval "DEFAULT_$LINE"
2987 else
2988 no_cache=1
2989 fi
2990
2991 ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY
2992
2993fi
2994
2995
2996 eval "$ac_cv_use_geometry"
2997 if test "$no_cache" != 1; then
2998 echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp
2999 fi
3000
3001 if test "$wxUSE_GEOMETRY" = yes; then
3002 echo "$ac_t""yes" 1>&6
3003 else
3004 echo "$ac_t""no" 1>&6
3005 fi
3006
3007
10f2d63a 3008 echo $ac_n "checking "for --enable-log"""... $ac_c" 1>&6
e8f65ba6 3009echo "configure:3010: checking "for --enable-log"" >&5
10f2d63a
VZ
3010 no_cache=0
3011 # Check whether --enable-log or --disable-log was given.
3012if test "${enable_log+set}" = set; then
3013 enableval="$enable_log"
3014
3015 if test "$enableval" = yes; then
3016 ac_cv_use_log='wxUSE_LOG=yes'
3017 else
3018 ac_cv_use_log='wxUSE_LOG=no'
3019 fi
3020
3021else
3022
3023 LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
3024 if test "x$LINE" != x ; then
3025 eval "DEFAULT_$LINE"
3026 else
3027 no_cache=1
3028 fi
3029
3030 ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
3031
3032fi
3033
3034
3035 eval "$ac_cv_use_log"
3036 if test "$no_cache" != 1; then
3037 echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
3038 fi
3039
3040 if test "$wxUSE_LOG" = yes; then
3041 echo "$ac_t""yes" 1>&6
3042 else
3043 echo "$ac_t""no" 1>&6
3044 fi
3045
3046
3047 echo $ac_n "checking "for --enable-streams"""... $ac_c" 1>&6
e8f65ba6 3048echo "configure:3049: checking "for --enable-streams"" >&5
10f2d63a
VZ
3049 no_cache=0
3050 # Check whether --enable-streams or --disable-streams was given.
3051if test "${enable_streams+set}" = set; then
3052 enableval="$enable_streams"
3053
3054 if test "$enableval" = yes; then
3055 ac_cv_use_streams='wxUSE_STREAMS=yes'
3056 else
3057 ac_cv_use_streams='wxUSE_STREAMS=no'
3058 fi
3059
3060else
3061
3062 LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
3063 if test "x$LINE" != x ; then
3064 eval "DEFAULT_$LINE"
3065 else
3066 no_cache=1
3067 fi
3068
3069 ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
3070
3071fi
3072
3073
3074 eval "$ac_cv_use_streams"
3075 if test "$no_cache" != 1; then
3076 echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
3077 fi
3078
3079 if test "$wxUSE_STREAMS" = yes; then
3080 echo "$ac_t""yes" 1>&6
3081 else
3082 echo "$ac_t""no" 1>&6
3083 fi
3084
3085
3086 echo $ac_n "checking "for --enable-file"""... $ac_c" 1>&6
e8f65ba6 3087echo "configure:3088: checking "for --enable-file"" >&5
10f2d63a
VZ
3088 no_cache=0
3089 # Check whether --enable-file or --disable-file was given.
3090if test "${enable_file+set}" = set; then
3091 enableval="$enable_file"
3092
3093 if test "$enableval" = yes; then
3094 ac_cv_use_file='wxUSE_FILE=yes'
3095 else
3096 ac_cv_use_file='wxUSE_FILE=no'
3097 fi
3098
3099else
3100
3101 LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
3102 if test "x$LINE" != x ; then
3103 eval "DEFAULT_$LINE"
3104 else
3105 no_cache=1
3106 fi
3107
3108 ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
3109
3110fi
3111
3112
3113 eval "$ac_cv_use_file"
3114 if test "$no_cache" != 1; then
3115 echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
3116 fi
3117
3118 if test "$wxUSE_FILE" = yes; then
3119 echo "$ac_t""yes" 1>&6
3120 else
3121 echo "$ac_t""no" 1>&6
3122 fi
3123
3124
3125 echo $ac_n "checking "for --enable-textfile"""... $ac_c" 1>&6
e8f65ba6 3126echo "configure:3127: checking "for --enable-textfile"" >&5
10f2d63a
VZ
3127 no_cache=0
3128 # Check whether --enable-textfile or --disable-textfile was given.
3129if test "${enable_textfile+set}" = set; then
3130 enableval="$enable_textfile"
3131
3132 if test "$enableval" = yes; then
3133 ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
3134 else
3135 ac_cv_use_textfile='wxUSE_TEXTFILE=no'
3136 fi
3137
3138else
3139
3140 LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
3141 if test "x$LINE" != x ; then
3142 eval "DEFAULT_$LINE"
3143 else
3144 no_cache=1
3145 fi
3146
3147 ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
3148
3149fi
3150
3151
3152 eval "$ac_cv_use_textfile"
3153 if test "$no_cache" != 1; then
3154 echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
3155 fi
3156
3157 if test "$wxUSE_TEXTFILE" = yes; then
3158 echo "$ac_t""yes" 1>&6
3159 else
3160 echo "$ac_t""no" 1>&6
3161 fi
3162
3163
3164 echo $ac_n "checking "for --enable-unicode"""... $ac_c" 1>&6
e8f65ba6 3165echo "configure:3166: checking "for --enable-unicode"" >&5
10f2d63a
VZ
3166 no_cache=0
3167 # Check whether --enable-unicode or --disable-unicode was given.
3168if test "${enable_unicode+set}" = set; then
3169 enableval="$enable_unicode"
3170
3171 if test "$enableval" = yes; then
3172 ac_cv_use_unicode='wxUSE_UNICODE=yes'
3173 else
3174 ac_cv_use_unicode='wxUSE_UNICODE=no'
3175 fi
3176
3177else
3178
3179 LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
3180 if test "x$LINE" != x ; then
3181 eval "DEFAULT_$LINE"
3182 else
3183 no_cache=1
3184 fi
3185
3186 ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
3187
3188fi
3189
3190
3191 eval "$ac_cv_use_unicode"
3192 if test "$no_cache" != 1; then
3193 echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
3194 fi
3195
3196 if test "$wxUSE_UNICODE" = yes; then
3197 echo "$ac_t""yes" 1>&6
3198 else
3199 echo "$ac_t""no" 1>&6
3200 fi
3201
3202
3203 echo $ac_n "checking "for --enable-wcsrtombs"""... $ac_c" 1>&6
e8f65ba6 3204echo "configure:3205: checking "for --enable-wcsrtombs"" >&5
10f2d63a
VZ
3205 no_cache=0
3206 # Check whether --enable-wcsrtombs or --disable-wcsrtombs was given.
3207if test "${enable_wcsrtombs+set}" = set; then
3208 enableval="$enable_wcsrtombs"
3209
3210 if test "$enableval" = yes; then
3211 ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS=yes'
3212 else
3213 ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS=no'
3214 fi
3215
3216else
3217
3218 LINE=`grep "wxUSE_WCSRTOMBS" ${wx_arg_cache_file}`
3219 if test "x$LINE" != x ; then
3220 eval "DEFAULT_$LINE"
3221 else
3222 no_cache=1
3223 fi
3224
3225 ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS='$DEFAULT_wxUSE_WCSRTOMBS
3226
3227fi
3228
3229
3230 eval "$ac_cv_use_wcsrtombs"
3231 if test "$no_cache" != 1; then
3232 echo $ac_cv_use_wcsrtombs >> ${wx_arg_cache_file}.tmp
3233 fi
3234
3235 if test "$wxUSE_WCSRTOMBS" = yes; then
3236 echo "$ac_t""yes" 1>&6
3237 else
3238 echo "$ac_t""no" 1>&6
3239 fi
3240
3241
3242 echo $ac_n "checking "for --enable-wxprintfv"""... $ac_c" 1>&6
e8f65ba6 3243echo "configure:3244: checking "for --enable-wxprintfv"" >&5
10f2d63a
VZ
3244 no_cache=0
3245 # Check whether --enable-wxprintfv or --disable-wxprintfv was given.
3246if test "${enable_wxprintfv+set}" = set; then
3247 enableval="$enable_wxprintfv"
3248
3249 if test "$enableval" = yes; then
3250 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes'
3251 else
3252 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no'
3253 fi
3254
3255else
3256
3257 LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}`
3258 if test "x$LINE" != x ; then
3259 eval "DEFAULT_$LINE"
3260 else
3261 no_cache=1
3262 fi
3263
3264 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF
3265
3266fi
3267
3268
3269 eval "$ac_cv_use_wxprintfv"
3270 if test "$no_cache" != 1; then
3271 echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp
3272 fi
3273
3274 if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then
3275 echo "$ac_t""yes" 1>&6
3276 else
3277 echo "$ac_t""no" 1>&6
3278 fi
3279
3280
10f2d63a 3281 echo $ac_n "checking "for --enable-std_iostreams"""... $ac_c" 1>&6
e8f65ba6 3282echo "configure:3283: checking "for --enable-std_iostreams"" >&5
10f2d63a
VZ
3283 no_cache=0
3284 # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
3285if test "${enable_std_iostreams+set}" = set; then
3286 enableval="$enable_std_iostreams"
3287
3288 if test "$enableval" = yes; then
3289 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
3290 else
3291 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
3292 fi
3293
3294else
3295
3296 LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
3297 if test "x$LINE" != x ; then
3298 eval "DEFAULT_$LINE"
3299 else
3300 no_cache=1
3301 fi
3302
3303 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
3304
3305fi
3306
3307
3308 eval "$ac_cv_use_std_iostreams"
3309 if test "$no_cache" != 1; then
3310 echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
3311 fi
3312
3313 if test "$wxUSE_STD_IOSTREAM" = yes; then
3314 echo "$ac_t""yes" 1>&6
3315 else
3316 echo "$ac_t""no" 1>&6
3317 fi
3318
3319
24528b0c 3320 echo $ac_n "checking "for --enable-filesystem"""... $ac_c" 1>&6
e8f65ba6 3321echo "configure:3322: checking "for --enable-filesystem"" >&5
24528b0c
VS
3322 no_cache=0
3323 # Check whether --enable-filesystem or --disable-filesystem was given.
3324if test "${enable_filesystem+set}" = set; then
3325 enableval="$enable_filesystem"
3326
3327 if test "$enableval" = yes; then
3328 ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
3329 else
3330 ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
3331 fi
3332
3333else
3334
3335 LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}`
3336 if test "x$LINE" != x ; then
3337 eval "DEFAULT_$LINE"
3338 else
3339 no_cache=1
3340 fi
3341
3342 ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
3343
3344fi
3345
3346
3347 eval "$ac_cv_use_filesystem"
3348 if test "$no_cache" != 1; then
3349 echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
3350 fi
3351
3352 if test "$wxUSE_FILESYSTEM" = yes; then
3353 echo "$ac_t""yes" 1>&6
3354 else
3355 echo "$ac_t""no" 1>&6
3356 fi
3357
3358
10f2d63a 3359 echo $ac_n "checking "for --enable-fs_inet"""... $ac_c" 1>&6
e8f65ba6 3360echo "configure:3361: checking "for --enable-fs_inet"" >&5
10f2d63a
VZ
3361 no_cache=0
3362 # Check whether --enable-fs_inet or --disable-fs_inet was given.
3363if test "${enable_fs_inet+set}" = set; then
3364 enableval="$enable_fs_inet"
3365
3366 if test "$enableval" = yes; then
3367 ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
3368 else
3369 ac_cv_use_fs_inet='wxUSE_FS_INET=no'
3370 fi
3371
3372else
3373
3374 LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
3375 if test "x$LINE" != x ; then
3376 eval "DEFAULT_$LINE"
3377 else
3378 no_cache=1
3379 fi
3380
3381 ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
3382
3383fi
3384
3385
3386 eval "$ac_cv_use_fs_inet"
3387 if test "$no_cache" != 1; then
3388 echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
3389 fi
3390
3391 if test "$wxUSE_FS_INET" = yes; then
3392 echo "$ac_t""yes" 1>&6
3393 else
3394 echo "$ac_t""no" 1>&6
3395 fi
3396
3397
3398 echo $ac_n "checking "for --enable-fs_zip"""... $ac_c" 1>&6
e8f65ba6 3399echo "configure:3400: checking "for --enable-fs_zip"" >&5
10f2d63a
VZ
3400 no_cache=0
3401 # Check whether --enable-fs_zip or --disable-fs_zip was given.
3402if test "${enable_fs_zip+set}" = set; then
3403 enableval="$enable_fs_zip"
3404
3405 if test "$enableval" = yes; then
3406 ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
3407 else
3408 ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
3409 fi
3410
3411else
3412
3413 LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
3414 if test "x$LINE" != x ; then
3415 eval "DEFAULT_$LINE"
3416 else
3417 no_cache=1
3418 fi
3419
3420 ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
3421
3422fi
3423
3424
3425 eval "$ac_cv_use_fs_zip"
3426 if test "$no_cache" != 1; then
3427 echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
3428 fi
3429
3430 if test "$wxUSE_FS_ZIP" = yes; then
3431 echo "$ac_t""yes" 1>&6
3432 else
3433 echo "$ac_t""no" 1>&6
3434 fi
3435
3436
3437 echo $ac_n "checking "for --enable-zipstream"""... $ac_c" 1>&6
e8f65ba6 3438echo "configure:3439: checking "for --enable-zipstream"" >&5
10f2d63a
VZ
3439 no_cache=0
3440 # Check whether --enable-zipstream or --disable-zipstream was given.
3441if test "${enable_zipstream+set}" = set; then
3442 enableval="$enable_zipstream"
3443
3444 if test "$enableval" = yes; then
3445 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
3446 else
3447 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
3448 fi
3449
3450else
3451
3452 LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
3453 if test "x$LINE" != x ; then
3454 eval "DEFAULT_$LINE"
3455 else
3456 no_cache=1
3457 fi
3458
3459 ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
3460
3461fi
3462
3463
3464 eval "$ac_cv_use_zipstream"
3465 if test "$no_cache" != 1; then
3466 echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
3467 fi
3468
3469 if test "$wxUSE_ZIPSTREAM" = yes; then
3470 echo "$ac_t""yes" 1>&6
3471 else
3472 echo "$ac_t""no" 1>&6
3473 fi
3474
3475
3476
eb4efbdc 3477 echo $ac_n "checking "for --enable-catch_segvs"""... $ac_c" 1>&6
e8f65ba6 3478echo "configure:3479: checking "for --enable-catch_segvs"" >&5
eb4efbdc
VZ
3479 no_cache=0
3480 # Check whether --enable-catch_segvs or --disable-catch_segvs was given.
3481if test "${enable_catch_segvs+set}" = set; then
3482 enableval="$enable_catch_segvs"
3483
3484 if test "$enableval" = yes; then
3485 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
3486 else
3487 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
3488 fi
3489
3490else
3491
3492 LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}`
3493 if test "x$LINE" != x ; then
3494 eval "DEFAULT_$LINE"
3495 else
3496 no_cache=1
3497 fi
3498
3499 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION
3500
3501fi
3502
3503
3504 eval "$ac_cv_use_catch_segvs"
3505 if test "$no_cache" != 1; then
3506 echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp
3507 fi
3508
3509 if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then
3510 echo "$ac_t""yes" 1>&6
3511 else
3512 echo "$ac_t""no" 1>&6
3513 fi
3514
3515
3516
10f2d63a
VZ
3517
3518 echo $ac_n "checking "for --enable-threads"""... $ac_c" 1>&6
e8f65ba6 3519echo "configure:3520: checking "for --enable-threads"" >&5
10f2d63a
VZ
3520 no_cache=0
3521 # Check whether --enable-threads or --disable-threads was given.
3522if test "${enable_threads+set}" = set; then
3523 enableval="$enable_threads"
3524
3525 if test "$enableval" = yes; then
3526 ac_cv_use_threads='wxUSE_THREADS=yes'
3527 else
3528 ac_cv_use_threads='wxUSE_THREADS=no'
3529 fi
3530
3531else
3532
3533 LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
3534 if test "x$LINE" != x ; then
3535 eval "DEFAULT_$LINE"
3536 else
3537 no_cache=1
3538 fi
3539
3540 ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
3541
3542fi
3543
3544
3545 eval "$ac_cv_use_threads"
3546 if test "$no_cache" != 1; then
3547 echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
3548 fi
3549
3550 if test "$wxUSE_THREADS" = yes; then
3551 echo "$ac_t""yes" 1>&6
3552 else
3553 echo "$ac_t""no" 1>&6
3554 fi
3555
3556
3557 echo $ac_n "checking "for --enable-serial"""... $ac_c" 1>&6
e8f65ba6 3558echo "configure:3559: checking "for --enable-serial"" >&5
10f2d63a
VZ
3559 no_cache=0
3560 # Check whether --enable-serial or --disable-serial was given.
3561if test "${enable_serial+set}" = set; then
3562 enableval="$enable_serial"
3563
3564 if test "$enableval" = yes; then
3565 ac_cv_use_serial='wxUSE_SERIAL=yes'
3566 else
3567 ac_cv_use_serial='wxUSE_SERIAL=no'
3568 fi
3569
3570else
3571
3572 LINE=`grep "wxUSE_SERIAL" ${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_serial='wxUSE_SERIAL='$DEFAULT_wxUSE_SERIAL
3580
3581fi
3582
3583
3584 eval "$ac_cv_use_serial"
3585 if test "$no_cache" != 1; then
3586 echo $ac_cv_use_serial >> ${wx_arg_cache_file}.tmp
3587 fi
3588
3589 if test "$wxUSE_SERIAL" = yes; then
3590 echo "$ac_t""yes" 1>&6
3591 else
3592 echo "$ac_t""no" 1>&6
3593 fi
3594
3595
b12915c1
VZ
3596if test "$wxUSE_GUI" = "yes"; then
3597
10f2d63a
VZ
3598
3599
3600 echo $ac_n "checking "for --enable-docview"""... $ac_c" 1>&6
e8f65ba6 3601echo "configure:3602: checking "for --enable-docview"" >&5
10f2d63a
VZ
3602 no_cache=0
3603 # Check whether --enable-docview or --disable-docview was given.
3604if test "${enable_docview+set}" = set; then
3605 enableval="$enable_docview"
3606
3607 if test "$enableval" = yes; then
3608 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
3609 else
3610 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
3611 fi
3612
3613else
3614
3615 LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
3616 if test "x$LINE" != x ; then
3617 eval "DEFAULT_$LINE"
3618 else
3619 no_cache=1
3620 fi
3621
3622 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
3623
3624fi
3625
3626
3627 eval "$ac_cv_use_docview"
3628 if test "$no_cache" != 1; then
3629 echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
3630 fi
3631
3632 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
3633 echo "$ac_t""yes" 1>&6
3634 else
3635 echo "$ac_t""no" 1>&6
3636 fi
3637
3638
3639 echo $ac_n "checking "for --enable-help"""... $ac_c" 1>&6
e8f65ba6 3640echo "configure:3641: checking "for --enable-help"" >&5
10f2d63a
VZ
3641 no_cache=0
3642 # Check whether --enable-help or --disable-help was given.
3643if test "${enable_help+set}" = set; then
3644 enableval="$enable_help"
3645
3646 if test "$enableval" = yes; then
3647 ac_cv_use_help='wxUSE_HELP=yes'
3648 else
3649 ac_cv_use_help='wxUSE_HELP=no'
3650 fi
3651
3652else
3653
3654 LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
3655 if test "x$LINE" != x ; then
3656 eval "DEFAULT_$LINE"
3657 else
3658 no_cache=1
3659 fi
3660
3661 ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
3662
3663fi
3664
3665
3666 eval "$ac_cv_use_help"
3667 if test "$no_cache" != 1; then
3668 echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
3669 fi
3670
3671 if test "$wxUSE_HELP" = yes; then
3672 echo "$ac_t""yes" 1>&6
3673 else
3674 echo "$ac_t""no" 1>&6
3675 fi
3676
3677
3678 echo $ac_n "checking "for --enable-constraints"""... $ac_c" 1>&6
e8f65ba6 3679echo "configure:3680: checking "for --enable-constraints"" >&5
10f2d63a
VZ
3680 no_cache=0
3681 # Check whether --enable-constraints or --disable-constraints was given.
3682if test "${enable_constraints+set}" = set; then
3683 enableval="$enable_constraints"
3684
3685 if test "$enableval" = yes; then
3686 ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
3687 else
3688 ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
3689 fi
3690
3691else
3692
3693 LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
3694 if test "x$LINE" != x ; then
3695 eval "DEFAULT_$LINE"
3696 else
3697 no_cache=1
3698 fi
3699
3700 ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
3701
3702fi
3703
3704
3705 eval "$ac_cv_use_constraints"
3706 if test "$no_cache" != 1; then
3707 echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
3708 fi
3709
3710 if test "$wxUSE_CONSTRAINTS" = yes; then
3711 echo "$ac_t""yes" 1>&6
3712 else
3713 echo "$ac_t""no" 1>&6
3714 fi
3715
3716
3717 echo $ac_n "checking "for --enable-printarch"""... $ac_c" 1>&6
e8f65ba6 3718echo "configure:3719: checking "for --enable-printarch"" >&5
10f2d63a
VZ
3719 no_cache=0
3720 # Check whether --enable-printarch or --disable-printarch was given.
3721if test "${enable_printarch+set}" = set; then
3722 enableval="$enable_printarch"
3723
3724 if test "$enableval" = yes; then
3725 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
3726 else
3727 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
3728 fi
3729
3730else
3731
3732 LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
3733 if test "x$LINE" != x ; then
3734 eval "DEFAULT_$LINE"
3735 else
3736 no_cache=1
3737 fi
3738
3739 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
3740
3741fi
3742
3743
3744 eval "$ac_cv_use_printarch"
3745 if test "$no_cache" != 1; then
3746 echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
3747 fi
3748
3749 if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
3750 echo "$ac_t""yes" 1>&6
3751 else
3752 echo "$ac_t""no" 1>&6
3753 fi
3754
3755
3756 echo $ac_n "checking "for --enable-mdi"""... $ac_c" 1>&6
e8f65ba6 3757echo "configure:3758: checking "for --enable-mdi"" >&5
10f2d63a
VZ
3758 no_cache=0
3759 # Check whether --enable-mdi or --disable-mdi was given.
3760if test "${enable_mdi+set}" = set; then
3761 enableval="$enable_mdi"
3762
3763 if test "$enableval" = yes; then
3764 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=yes'
3765 else
3766 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=no'
3767 fi
3768
3769else
3770
3771 LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
3772 if test "x$LINE" != x ; then
3773 eval "DEFAULT_$LINE"
3774 else
3775 no_cache=1
3776 fi
3777
3778 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
3779
3780fi
3781
3782
3783 eval "$ac_cv_use_mdi"
3784 if test "$no_cache" != 1; then
3785 echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
3786 fi
3787
3788 if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
3789 echo "$ac_t""yes" 1>&6
3790 else
3791 echo "$ac_t""no" 1>&6
3792 fi
3793
3794
3795
3796 echo $ac_n "checking "for --enable-postscript"""... $ac_c" 1>&6
e8f65ba6 3797echo "configure:3798: checking "for --enable-postscript"" >&5
10f2d63a
VZ
3798 no_cache=0
3799 # Check whether --enable-postscript or --disable-postscript was given.
3800if test "${enable_postscript+set}" = set; then
3801 enableval="$enable_postscript"
3802
3803 if test "$enableval" = yes; then
3804 ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
3805 else
3806 ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
3807 fi
3808
3809else
3810
3811 LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
3812 if test "x$LINE" != x ; then
3813 eval "DEFAULT_$LINE"
3814 else
3815 no_cache=1
3816 fi
3817
3818 ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
3819
3820fi
3821
3822
3823 eval "$ac_cv_use_postscript"
3824 if test "$no_cache" != 1; then
3825 echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
3826 fi
3827
3828 if test "$wxUSE_POSTSCRIPT" = yes; then
3829 echo "$ac_t""yes" 1>&6
3830 else
3831 echo "$ac_t""no" 1>&6
3832 fi
3833
3834
3835
3836
3837 echo $ac_n "checking "for --enable-prologio"""... $ac_c" 1>&6
e8f65ba6 3838echo "configure:3839: checking "for --enable-prologio"" >&5
10f2d63a
VZ
3839 no_cache=0
3840 # Check whether --enable-prologio or --disable-prologio was given.
3841if test "${enable_prologio+set}" = set; then
3842 enableval="$enable_prologio"
3843
3844 if test "$enableval" = yes; then
3845 ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
3846 else
3847 ac_cv_use_prologio='wxUSE_PROLOGIO=no'
3848 fi
3849
3850else
3851
3852 LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
3853 if test "x$LINE" != x ; then
3854 eval "DEFAULT_$LINE"
3855 else
3856 no_cache=1
3857 fi
3858
3859 ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
3860
3861fi
3862
3863
3864 eval "$ac_cv_use_prologio"
3865 if test "$no_cache" != 1; then
3866 echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
3867 fi
3868
3869 if test "$wxUSE_PROLOGIO" = yes; then
3870 echo "$ac_t""yes" 1>&6
3871 else
3872 echo "$ac_t""no" 1>&6
3873 fi
3874
3875
3876 echo $ac_n "checking "for --enable-resources"""... $ac_c" 1>&6
e8f65ba6 3877echo "configure:3878: checking "for --enable-resources"" >&5
10f2d63a
VZ
3878 no_cache=0
3879 # Check whether --enable-resources or --disable-resources was given.
3880if test "${enable_resources+set}" = set; then
3881 enableval="$enable_resources"
3882
3883 if test "$enableval" = yes; then
3884 ac_cv_use_resources='wxUSE_RESOURCES=yes'
3885 else
3886 ac_cv_use_resources='wxUSE_RESOURCES=no'
3887 fi
3888
3889else
3890
3891 LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
3892 if test "x$LINE" != x ; then
3893 eval "DEFAULT_$LINE"
3894 else
3895 no_cache=1
3896 fi
3897
3898 ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
3899
3900fi
3901
3902
3903 eval "$ac_cv_use_resources"
3904 if test "$no_cache" != 1; then
3905 echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
3906 fi
3907
3908 if test "$wxUSE_RESOURCES" = yes; then
3909 echo "$ac_t""yes" 1>&6
3910 else
3911 echo "$ac_t""no" 1>&6
3912 fi
3913
3914
3915
3916 echo $ac_n "checking "for --enable-xresources"""... $ac_c" 1>&6
e8f65ba6 3917echo "configure:3918: checking "for --enable-xresources"" >&5
10f2d63a
VZ
3918 no_cache=0
3919 # Check whether --enable-xresources or --disable-xresources was given.
3920if test "${enable_xresources+set}" = set; then
3921 enableval="$enable_xresources"
3922
3923 if test "$enableval" = yes; then
3924 ac_cv_use_xresources='wxUSE_X_RESOURCES=yes'
3925 else
3926 ac_cv_use_xresources='wxUSE_X_RESOURCES=no'
3927 fi
3928
3929else
3930
3931 LINE=`grep "wxUSE_X_RESOURCES" ${wx_arg_cache_file}`
3932 if test "x$LINE" != x ; then
3933 eval "DEFAULT_$LINE"
3934 else
3935 no_cache=1
3936 fi
3937
3938 ac_cv_use_xresources='wxUSE_X_RESOURCES='$DEFAULT_wxUSE_X_RESOURCES
3939
3940fi
3941
3942
3943 eval "$ac_cv_use_xresources"
3944 if test "$no_cache" != 1; then
3945 echo $ac_cv_use_xresources >> ${wx_arg_cache_file}.tmp
3946 fi
3947
3948 if test "$wxUSE_X_RESOURCES" = yes; then
3949 echo "$ac_t""yes" 1>&6
3950 else
3951 echo "$ac_t""no" 1>&6
3952 fi
3953
3954
3955
3956
3957 echo $ac_n "checking "for --enable-clipboard"""... $ac_c" 1>&6
e8f65ba6 3958echo "configure:3959: checking "for --enable-clipboard"" >&5
10f2d63a
VZ
3959 no_cache=0
3960 # Check whether --enable-clipboard or --disable-clipboard was given.
3961if test "${enable_clipboard+set}" = set; then
3962 enableval="$enable_clipboard"
3963
3964 if test "$enableval" = yes; then
3965 ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
3966 else
3967 ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
3968 fi
3969
3970else
3971
3972 LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
3973 if test "x$LINE" != x ; then
3974 eval "DEFAULT_$LINE"
3975 else
3976 no_cache=1
3977 fi
3978
3979 ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
3980
3981fi
3982
3983
3984 eval "$ac_cv_use_clipboard"
3985 if test "$no_cache" != 1; then
3986 echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
3987 fi
3988
3989 if test "$wxUSE_CLIPBOARD" = yes; then
3990 echo "$ac_t""yes" 1>&6
3991 else
3992 echo "$ac_t""no" 1>&6
3993 fi
3994
3995
3996 echo $ac_n "checking "for --enable-dnd"""... $ac_c" 1>&6
e8f65ba6 3997echo "configure:3998: checking "for --enable-dnd"" >&5
10f2d63a
VZ
3998 no_cache=0
3999 # Check whether --enable-dnd or --disable-dnd was given.
4000if test "${enable_dnd+set}" = set; then
4001 enableval="$enable_dnd"
4002
4003 if test "$enableval" = yes; then
4004 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
4005 else
4006 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
4007 fi
4008
4009else
4010
4011 LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
4012 if test "x$LINE" != x ; then
4013 eval "DEFAULT_$LINE"
4014 else
4015 no_cache=1
4016 fi
4017
4018 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
4019
4020fi
4021
4022
4023 eval "$ac_cv_use_dnd"
4024 if test "$no_cache" != 1; then
4025 echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
4026 fi
4027
4028 if test "$wxUSE_DRAG_AND_DROP" = yes; then
4029 echo "$ac_t""yes" 1>&6
4030 else
4031 echo "$ac_t""no" 1>&6
4032 fi
4033
4034
4035
4036 echo $ac_n "checking "for --enable-wxtree"""... $ac_c" 1>&6
e8f65ba6 4037echo "configure:4038: checking "for --enable-wxtree"" >&5
10f2d63a
VZ
4038 no_cache=0
4039 # Check whether --enable-wxtree or --disable-wxtree was given.
4040if test "${enable_wxtree+set}" = set; then
4041 enableval="$enable_wxtree"
4042
4043 if test "$enableval" = yes; then
4044 ac_cv_use_wxtree='wxUSE_WXTREE=yes'
4045 else
4046 ac_cv_use_wxtree='wxUSE_WXTREE=no'
4047 fi
4048
4049else
4050
4051 LINE=`grep "wxUSE_WXTREE" ${wx_arg_cache_file}`
4052 if test "x$LINE" != x ; then
4053 eval "DEFAULT_$LINE"
4054 else
4055 no_cache=1
4056 fi
4057
4058 ac_cv_use_wxtree='wxUSE_WXTREE='$DEFAULT_wxUSE_WXTREE
4059
4060fi
4061
4062
4063 eval "$ac_cv_use_wxtree"
4064 if test "$no_cache" != 1; then
4065 echo $ac_cv_use_wxtree >> ${wx_arg_cache_file}.tmp
4066 fi
4067
4068 if test "$wxUSE_WXTREE" = yes; then
4069 echo "$ac_t""yes" 1>&6
4070 else
4071 echo "$ac_t""no" 1>&6
4072 fi
4073
4074
4075
4076
4077 echo $ac_n "checking "for --enable-controls"""... $ac_c" 1>&6
e8f65ba6 4078echo "configure:4079: checking "for --enable-controls"" >&5
10f2d63a
VZ
4079 no_cache=0
4080 # Check whether --enable-controls or --disable-controls was given.
4081if test "${enable_controls+set}" = set; then
4082 enableval="$enable_controls"
4083
4084 if test "$enableval" = yes; then
4085 ac_cv_use_controls='wxUSE_CONTROLS=yes'
4086 else
4087 ac_cv_use_controls='wxUSE_CONTROLS=no'
4088 fi
4089
4090else
4091
4092 LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
4093 if test "x$LINE" != x ; then
4094 eval "DEFAULT_$LINE"
4095 else
4096 no_cache=1
4097 fi
4098
4099 ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
4100
4101fi
4102
4103
4104 eval "$ac_cv_use_controls"
4105 if test "$no_cache" != 1; then
4106 echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
4107 fi
4108
4109 if test "$wxUSE_CONTROLS" = yes; then
4110 echo "$ac_t""yes" 1>&6
4111 else
4112 echo "$ac_t""no" 1>&6
4113 fi
4114
4115
4116if test "$wxUSE_CONTROLS" = "yes"; then
4117 DEFAULT_wxUSE_ACCEL=yes
4118 DEFAULT_wxUSE_CARET=yes
4119 DEFAULT_wxUSE_COMBOBOX=yes
4120 DEFAULT_wxUSE_BMPBUTTON=yes
4121 DEFAULT_wxUSE_CHECKBOX=yes
4122 DEFAULT_wxUSE_CHECKLISTBOX=yes
4123 DEFAULT_wxUSE_CHOICE=yes
4124 DEFAULT_wxUSE_GAUGE=yes
4125 DEFAULT_wxUSE_GRID=yes
cc977e5f 4126 DEFAULT_wxUSE_NEW_GRID=yes
10f2d63a
VZ
4127 DEFAULT_wxUSE_IMAGLIST=yes
4128 DEFAULT_wxUSE_LISTBOX=yes
4129 DEFAULT_wxUSE_LISTCTRL=yes
4130 DEFAULT_wxUSE_NOTEBOOK=yes
4131 DEFAULT_wxUSE_RADIOBOX=yes
4132 DEFAULT_wxUSE_RADIOBTN=yes
4133 DEFAULT_wxUSE_SASH=yes
4134 DEFAULT_wxUSE_SCROLLBAR=yes
4135 DEFAULT_wxUSE_SLIDER=yes
4136 DEFAULT_wxUSE_SPINBTN=yes
56cfaa52 4137 DEFAULT_wxUSE_SPINCTRL=yes
10f2d63a
VZ
4138 DEFAULT_wxUSE_SPLITTER=yes
4139 DEFAULT_wxUSE_STATBMP=yes
4140 DEFAULT_wxUSE_STATBOX=yes
4141 DEFAULT_wxUSE_STATLINE=yes
4142 DEFAULT_wxUSE_STATUSBAR=yes
4143 DEFAULT_wxUSE_TAB_DIALOG=yes
4144 DEFAULT_wxUSE_TOOLBAR=yes
360d6699
VZ
4145 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
4146 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
10f2d63a
VZ
4147 DEFAULT_wxUSE_TOOLTIPS=yes
4148 DEFAULT_wxUSE_TREECTRL=yes
4149elif test "$wxUSE_CONTROLS" = "no"; then
4150 DEFAULT_wxUSE_ACCEL=no
4151 DEFAULT_wxUSE_CARET=no
4152 DEFAULT_wxUSE_COMBOBOX=no
4153 DEFAULT_wxUSE_BMPBUTTON=no
4154 DEFAULT_wxUSE_CHECKBOX=no
4155 DEFAULT_wxUSE_CHECKLISTBOX=no
4156 DEFAULT_wxUSE_CHOICE=no
4157 DEFAULT_wxUSE_GAUGE=no
4158 DEFAULT_wxUSE_GRID=no
4159 DEFAULT_wxUSE_NEW_GRID=no
4160 DEFAULT_wxUSE_IMAGLIST=no
4161 DEFAULT_wxUSE_LISTBOX=no
4162 DEFAULT_wxUSE_LISTCTRL=no
4163 DEFAULT_wxUSE_NOTEBOOK=no
4164 DEFAULT_wxUSE_RADIOBOX=no
4165 DEFAULT_wxUSE_RADIOBTN=no
4166 DEFAULT_wxUSE_SASH=no
4167 DEFAULT_wxUSE_SCROLLBAR=no
4168 DEFAULT_wxUSE_SLIDER=no
4169 DEFAULT_wxUSE_SPINBTN=no
56cfaa52 4170 DEFAULT_wxUSE_SPINCTRL=no
10f2d63a
VZ
4171 DEFAULT_wxUSE_SPLITTER=no
4172 DEFAULT_wxUSE_STATBMP=no
4173 DEFAULT_wxUSE_STATBOX=no
4174 DEFAULT_wxUSE_STATLINE=no
4175 DEFAULT_wxUSE_STATUSBAR=no
4176 DEFAULT_wxUSE_TAB_DIALOG=no
4177 DEFAULT_wxUSE_TOOLBAR=no
360d6699
VZ
4178 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
4179 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
10f2d63a
VZ
4180 DEFAULT_wxUSE_TOOLTIPS=no
4181 DEFAULT_wxUSE_TREECTRL=no
4182fi
4183
4184
4185 echo $ac_n "checking "for --enable-accel"""... $ac_c" 1>&6
e8f65ba6 4186echo "configure:4187: checking "for --enable-accel"" >&5
10f2d63a
VZ
4187 no_cache=0
4188 # Check whether --enable-accel or --disable-accel was given.
4189if test "${enable_accel+set}" = set; then
4190 enableval="$enable_accel"
4191
4192 if test "$enableval" = yes; then
4193 ac_cv_use_accel='wxUSE_ACCEL=yes'
4194 else
4195 ac_cv_use_accel='wxUSE_ACCEL=no'
4196 fi
4197
4198else
4199
4200 LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
4201 if test "x$LINE" != x ; then
4202 eval "DEFAULT_$LINE"
4203 else
4204 no_cache=1
4205 fi
4206
4207 ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
4208
4209fi
4210
4211
4212 eval "$ac_cv_use_accel"
4213 if test "$no_cache" != 1; then
4214 echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
4215 fi
4216
4217 if test "$wxUSE_ACCEL" = yes; then
4218 echo "$ac_t""yes" 1>&6
4219 else
4220 echo "$ac_t""no" 1>&6
4221 fi
4222
4223
4224 echo $ac_n "checking "for --enable-caret"""... $ac_c" 1>&6
e8f65ba6 4225echo "configure:4226: checking "for --enable-caret"" >&5
10f2d63a
VZ
4226 no_cache=0
4227 # Check whether --enable-caret or --disable-caret was given.
4228if test "${enable_caret+set}" = set; then
4229 enableval="$enable_caret"
4230
4231 if test "$enableval" = yes; then
4232 ac_cv_use_caret='wxUSE_CARET=yes'
4233 else
4234 ac_cv_use_caret='wxUSE_CARET=no'
4235 fi
4236
4237else
4238
4239 LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
4240 if test "x$LINE" != x ; then
4241 eval "DEFAULT_$LINE"
4242 else
4243 no_cache=1
4244 fi
4245
4246 ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
4247
4248fi
4249
4250
4251 eval "$ac_cv_use_caret"
4252 if test "$no_cache" != 1; then
4253 echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
4254 fi
4255
4256 if test "$wxUSE_CARET" = yes; then
4257 echo "$ac_t""yes" 1>&6
4258 else
4259 echo "$ac_t""no" 1>&6
4260 fi
4261
4262
4263 echo $ac_n "checking "for --enable-bmpbutton"""... $ac_c" 1>&6
e8f65ba6 4264echo "configure:4265: checking "for --enable-bmpbutton"" >&5
10f2d63a
VZ
4265 no_cache=0
4266 # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
4267if test "${enable_bmpbutton+set}" = set; then
4268 enableval="$enable_bmpbutton"
4269
4270 if test "$enableval" = yes; then
4271 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
4272 else
4273 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
4274 fi
4275
4276else
4277
4278 LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
4279 if test "x$LINE" != x ; then
4280 eval "DEFAULT_$LINE"
4281 else
4282 no_cache=1
4283 fi
4284
4285 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
4286
4287fi
4288
4289
4290 eval "$ac_cv_use_bmpbutton"
4291 if test "$no_cache" != 1; then
4292 echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
4293 fi
4294
4295 if test "$wxUSE_BMPBUTTON" = yes; then
4296 echo "$ac_t""yes" 1>&6
4297 else
4298 echo "$ac_t""no" 1>&6
4299 fi
4300
4301
4302 echo $ac_n "checking "for --enable-checkbox"""... $ac_c" 1>&6
e8f65ba6 4303echo "configure:4304: checking "for --enable-checkbox"" >&5
10f2d63a
VZ
4304 no_cache=0
4305 # Check whether --enable-checkbox or --disable-checkbox was given.
4306if test "${enable_checkbox+set}" = set; then
4307 enableval="$enable_checkbox"
4308
4309 if test "$enableval" = yes; then
4310 ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
4311 else
4312 ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
4313 fi
4314
4315else
4316
4317 LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
4318 if test "x$LINE" != x ; then
4319 eval "DEFAULT_$LINE"
4320 else
4321 no_cache=1
4322 fi
4323
4324 ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
4325
4326fi
4327
4328
4329 eval "$ac_cv_use_checkbox"
4330 if test "$no_cache" != 1; then
4331 echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
4332 fi
4333
4334 if test "$wxUSE_CHECKBOX" = yes; then
4335 echo "$ac_t""yes" 1>&6
4336 else
4337 echo "$ac_t""no" 1>&6
4338 fi
4339
4340
4341 echo $ac_n "checking "for --enable-checklst"""... $ac_c" 1>&6
e8f65ba6 4342echo "configure:4343: checking "for --enable-checklst"" >&5
10f2d63a
VZ
4343 no_cache=0
4344 # Check whether --enable-checklst or --disable-checklst was given.
4345if test "${enable_checklst+set}" = set; then
4346 enableval="$enable_checklst"
4347
4348 if test "$enableval" = yes; then
4349 ac_cv_use_checklst='wxUSE_CHECKLST=yes'
4350 else
4351 ac_cv_use_checklst='wxUSE_CHECKLST=no'
4352 fi
4353
4354else
4355
4356 LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
4357 if test "x$LINE" != x ; then
4358 eval "DEFAULT_$LINE"
4359 else
4360 no_cache=1
4361 fi
4362
4363 ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
4364
4365fi
4366
4367
4368 eval "$ac_cv_use_checklst"
4369 if test "$no_cache" != 1; then
4370 echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
4371 fi
4372
4373 if test "$wxUSE_CHECKLST" = yes; then
4374 echo "$ac_t""yes" 1>&6
4375 else
4376 echo "$ac_t""no" 1>&6
4377 fi
4378
4379
4380 echo $ac_n "checking "for --enable-choice"""... $ac_c" 1>&6
e8f65ba6 4381echo "configure:4382: checking "for --enable-choice"" >&5
10f2d63a
VZ
4382 no_cache=0
4383 # Check whether --enable-choice or --disable-choice was given.
4384if test "${enable_choice+set}" = set; then
4385 enableval="$enable_choice"
4386
4387 if test "$enableval" = yes; then
4388 ac_cv_use_choice='wxUSE_CHOICE=yes'
4389 else
4390 ac_cv_use_choice='wxUSE_CHOICE=no'
4391 fi
4392
4393else
4394
4395 LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
4396 if test "x$LINE" != x ; then
4397 eval "DEFAULT_$LINE"
4398 else
4399 no_cache=1
4400 fi
4401
4402 ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
4403
4404fi
4405
4406
4407 eval "$ac_cv_use_choice"
4408 if test "$no_cache" != 1; then
4409 echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
4410 fi
4411
4412 if test "$wxUSE_CHOICE" = yes; then
4413 echo "$ac_t""yes" 1>&6
4414 else
4415 echo "$ac_t""no" 1>&6
4416 fi
4417
4418
4419 echo $ac_n "checking "for --enable-combobox"""... $ac_c" 1>&6
e8f65ba6 4420echo "configure:4421: checking "for --enable-combobox"" >&5
10f2d63a
VZ
4421 no_cache=0
4422 # Check whether --enable-combobox or --disable-combobox was given.
4423if test "${enable_combobox+set}" = set; then
4424 enableval="$enable_combobox"
4425
4426 if test "$enableval" = yes; then
4427 ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
4428 else
4429 ac_cv_use_combobox='wxUSE_COMBOBOX=no'
4430 fi
4431
4432else
4433
4434 LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
4435 if test "x$LINE" != x ; then
4436 eval "DEFAULT_$LINE"
4437 else
4438 no_cache=1
4439 fi
4440
4441 ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
4442
4443fi
4444
4445
4446 eval "$ac_cv_use_combobox"
4447 if test "$no_cache" != 1; then
4448 echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
4449 fi
4450
4451 if test "$wxUSE_COMBOBOX" = yes; then
4452 echo "$ac_t""yes" 1>&6
4453 else
4454 echo "$ac_t""no" 1>&6
4455 fi
4456
4457
4458 echo $ac_n "checking "for --enable-gauge"""... $ac_c" 1>&6
e8f65ba6 4459echo "configure:4460: checking "for --enable-gauge"" >&5
10f2d63a
VZ
4460 no_cache=0
4461 # Check whether --enable-gauge or --disable-gauge was given.
4462if test "${enable_gauge+set}" = set; then
4463 enableval="$enable_gauge"
4464
4465 if test "$enableval" = yes; then
4466 ac_cv_use_gauge='wxUSE_GAUGE=yes'
4467 else
4468 ac_cv_use_gauge='wxUSE_GAUGE=no'
4469 fi
4470
4471else
4472
4473 LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
4474 if test "x$LINE" != x ; then
4475 eval "DEFAULT_$LINE"
4476 else
4477 no_cache=1
4478 fi
4479
4480 ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
4481
4482fi
4483
4484
4485 eval "$ac_cv_use_gauge"
4486 if test "$no_cache" != 1; then
4487 echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
4488 fi
4489
4490 if test "$wxUSE_GAUGE" = yes; then
4491 echo "$ac_t""yes" 1>&6
4492 else
4493 echo "$ac_t""no" 1>&6
4494 fi
4495
4496
4497 echo $ac_n "checking "for --enable-grid"""... $ac_c" 1>&6
e8f65ba6 4498echo "configure:4499: checking "for --enable-grid"" >&5
10f2d63a
VZ
4499 no_cache=0
4500 # Check whether --enable-grid or --disable-grid was given.
4501if test "${enable_grid+set}" = set; then
4502 enableval="$enable_grid"
4503
4504 if test "$enableval" = yes; then
4505 ac_cv_use_grid='wxUSE_GRID=yes'
4506 else
4507 ac_cv_use_grid='wxUSE_GRID=no'
4508 fi
4509
4510else
4511
4512 LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
4513 if test "x$LINE" != x ; then
4514 eval "DEFAULT_$LINE"
4515 else
4516 no_cache=1
4517 fi
4518
4519 ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
4520
4521fi
4522
4523
4524 eval "$ac_cv_use_grid"
4525 if test "$no_cache" != 1; then
4526 echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
4527 fi
4528
4529 if test "$wxUSE_GRID" = yes; then
4530 echo "$ac_t""yes" 1>&6
4531 else
4532 echo "$ac_t""no" 1>&6
4533 fi
4534
4535
4536 echo $ac_n "checking "for --enable-newgrid"""... $ac_c" 1>&6
e8f65ba6 4537echo "configure:4538: checking "for --enable-newgrid"" >&5
10f2d63a
VZ
4538 no_cache=0
4539 # Check whether --enable-newgrid or --disable-newgrid was given.
4540if test "${enable_newgrid+set}" = set; then
4541 enableval="$enable_newgrid"
4542
4543 if test "$enableval" = yes; then
4544 ac_cv_use_newgrid='wxUSE_NEW_GRID=yes'
4545 else
4546 ac_cv_use_newgrid='wxUSE_NEW_GRID=no'
4547 fi
4548
4549else
4550
4551 LINE=`grep "wxUSE_NEW_GRID" ${wx_arg_cache_file}`
4552 if test "x$LINE" != x ; then
4553 eval "DEFAULT_$LINE"
4554 else
4555 no_cache=1
4556 fi
4557
4558 ac_cv_use_newgrid='wxUSE_NEW_GRID='$DEFAULT_wxUSE_NEW_GRID
4559
4560fi
4561
4562
4563 eval "$ac_cv_use_newgrid"
4564 if test "$no_cache" != 1; then
4565 echo $ac_cv_use_newgrid >> ${wx_arg_cache_file}.tmp
4566 fi
4567
4568 if test "$wxUSE_NEW_GRID" = yes; then
4569 echo "$ac_t""yes" 1>&6
4570 else
4571 echo "$ac_t""no" 1>&6
4572 fi
4573
4574
4575 echo $ac_n "checking "for --enable-imaglist"""... $ac_c" 1>&6
e8f65ba6 4576echo "configure:4577: checking "for --enable-imaglist"" >&5
10f2d63a
VZ
4577 no_cache=0
4578 # Check whether --enable-imaglist or --disable-imaglist was given.
4579if test "${enable_imaglist+set}" = set; then
4580 enableval="$enable_imaglist"
4581
4582 if test "$enableval" = yes; then
4583 ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
4584 else
4585 ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
4586 fi
4587
4588else
4589
4590 LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
4591 if test "x$LINE" != x ; then
4592 eval "DEFAULT_$LINE"
4593 else
4594 no_cache=1
4595 fi
4596
4597 ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
4598
4599fi
4600
4601
4602 eval "$ac_cv_use_imaglist"
4603 if test "$no_cache" != 1; then
4604 echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
4605 fi
4606
4607 if test "$wxUSE_IMAGLIST" = yes; then
4608 echo "$ac_t""yes" 1>&6
4609 else
4610 echo "$ac_t""no" 1>&6
4611 fi
4612
4613
4614 echo $ac_n "checking "for --enable-listbox"""... $ac_c" 1>&6
e8f65ba6 4615echo "configure:4616: checking "for --enable-listbox"" >&5
10f2d63a
VZ
4616 no_cache=0
4617 # Check whether --enable-listbox or --disable-listbox was given.
4618if test "${enable_listbox+set}" = set; then
4619 enableval="$enable_listbox"
4620
4621 if test "$enableval" = yes; then
4622 ac_cv_use_listbox='wxUSE_LISTBOX=yes'
4623 else
4624 ac_cv_use_listbox='wxUSE_LISTBOX=no'
4625 fi
4626
4627else
4628
4629 LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
4630 if test "x$LINE" != x ; then
4631 eval "DEFAULT_$LINE"
4632 else
4633 no_cache=1
4634 fi
4635
4636 ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
4637
4638fi
4639
4640
4641 eval "$ac_cv_use_listbox"
4642 if test "$no_cache" != 1; then
4643 echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
4644 fi
4645
4646 if test "$wxUSE_LISTBOX" = yes; then
4647 echo "$ac_t""yes" 1>&6
4648 else
4649 echo "$ac_t""no" 1>&6
4650 fi
4651
4652
4653 echo $ac_n "checking "for --enable-listctrl"""... $ac_c" 1>&6
e8f65ba6 4654echo "configure:4655: checking "for --enable-listctrl"" >&5
10f2d63a
VZ
4655 no_cache=0
4656 # Check whether --enable-listctrl or --disable-listctrl was given.
4657if test "${enable_listctrl+set}" = set; then
4658 enableval="$enable_listctrl"
4659
4660 if test "$enableval" = yes; then
4661 ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
4662 else
4663 ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
4664 fi
4665
4666else
4667
4668 LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
4669 if test "x$LINE" != x ; then
4670 eval "DEFAULT_$LINE"
4671 else
4672 no_cache=1
4673 fi
4674
4675 ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
4676
4677fi
4678
4679
4680 eval "$ac_cv_use_listctrl"
4681 if test "$no_cache" != 1; then
4682 echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
4683 fi
4684
4685 if test "$wxUSE_LISTCTRL" = yes; then
4686 echo "$ac_t""yes" 1>&6
4687 else
4688 echo "$ac_t""no" 1>&6
4689 fi
4690
4691
4692 echo $ac_n "checking "for --enable-notebook"""... $ac_c" 1>&6
e8f65ba6 4693echo "configure:4694: checking "for --enable-notebook"" >&5
10f2d63a
VZ
4694 no_cache=0
4695 # Check whether --enable-notebook or --disable-notebook was given.
4696if test "${enable_notebook+set}" = set; then
4697 enableval="$enable_notebook"
4698
4699 if test "$enableval" = yes; then
4700 ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
4701 else
4702 ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
4703 fi
4704
4705else
4706
4707 LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
4708 if test "x$LINE" != x ; then
4709 eval "DEFAULT_$LINE"
4710 else
4711 no_cache=1
4712 fi
4713
4714 ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
4715
4716fi
4717
4718
4719 eval "$ac_cv_use_notebook"
4720 if test "$no_cache" != 1; then
4721 echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
4722 fi
4723
4724 if test "$wxUSE_NOTEBOOK" = yes; then
4725 echo "$ac_t""yes" 1>&6
4726 else
4727 echo "$ac_t""no" 1>&6
4728 fi
4729
4730
4731 echo $ac_n "checking "for --enable-radiobox"""... $ac_c" 1>&6
e8f65ba6 4732echo "configure:4733: checking "for --enable-radiobox"" >&5
10f2d63a
VZ
4733 no_cache=0
4734 # Check whether --enable-radiobox or --disable-radiobox was given.
4735if test "${enable_radiobox+set}" = set; then
4736 enableval="$enable_radiobox"
4737
4738 if test "$enableval" = yes; then
4739 ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
4740 else
4741 ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
4742 fi
4743
4744else
4745
4746 LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
4747 if test "x$LINE" != x ; then
4748 eval "DEFAULT_$LINE"
4749 else
4750 no_cache=1
4751 fi
4752
4753 ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
4754
4755fi
4756
4757
4758 eval "$ac_cv_use_radiobox"
4759 if test "$no_cache" != 1; then
4760 echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
4761 fi
4762
4763 if test "$wxUSE_RADIOBOX" = yes; then
4764 echo "$ac_t""yes" 1>&6
4765 else
4766 echo "$ac_t""no" 1>&6
4767 fi
4768
4769
4770 echo $ac_n "checking "for --enable-radiobtn"""... $ac_c" 1>&6
e8f65ba6 4771echo "configure:4772: checking "for --enable-radiobtn"" >&5
10f2d63a
VZ
4772 no_cache=0
4773 # Check whether --enable-radiobtn or --disable-radiobtn was given.
4774if test "${enable_radiobtn+set}" = set; then
4775 enableval="$enable_radiobtn"
4776
4777 if test "$enableval" = yes; then
4778 ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
4779 else
4780 ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
4781 fi
4782
4783else
4784
4785 LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
4786 if test "x$LINE" != x ; then
4787 eval "DEFAULT_$LINE"
4788 else
4789 no_cache=1
4790 fi
4791
4792 ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
4793
4794fi
4795
4796
4797 eval "$ac_cv_use_radiobtn"
4798 if test "$no_cache" != 1; then
4799 echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
4800 fi
4801
4802 if test "$wxUSE_RADIOBTN" = yes; then
4803 echo "$ac_t""yes" 1>&6
4804 else
4805 echo "$ac_t""no" 1>&6
4806 fi
4807
4808
4809 echo $ac_n "checking "for --enable-sash"""... $ac_c" 1>&6
e8f65ba6 4810echo "configure:4811: checking "for --enable-sash"" >&5
10f2d63a
VZ
4811 no_cache=0
4812 # Check whether --enable-sash or --disable-sash was given.
4813if test "${enable_sash+set}" = set; then
4814 enableval="$enable_sash"
4815
4816 if test "$enableval" = yes; then
4817 ac_cv_use_sash='wxUSE_SASH=yes'
4818 else
4819 ac_cv_use_sash='wxUSE_SASH=no'
4820 fi
4821
4822else
4823
4824 LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
4825 if test "x$LINE" != x ; then
4826 eval "DEFAULT_$LINE"
4827 else
4828 no_cache=1
4829 fi
4830
4831 ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
4832
4833fi
4834
4835
4836 eval "$ac_cv_use_sash"
4837 if test "$no_cache" != 1; then
4838 echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
4839 fi
4840
4841 if test "$wxUSE_SASH" = yes; then
4842 echo "$ac_t""yes" 1>&6
4843 else
4844 echo "$ac_t""no" 1>&6
4845 fi
4846
4847
4848 echo $ac_n "checking "for --enable-scrollbar"""... $ac_c" 1>&6
e8f65ba6 4849echo "configure:4850: checking "for --enable-scrollbar"" >&5
10f2d63a
VZ
4850 no_cache=0
4851 # Check whether --enable-scrollbar or --disable-scrollbar was given.
4852if test "${enable_scrollbar+set}" = set; then
4853 enableval="$enable_scrollbar"
4854
4855 if test "$enableval" = yes; then
4856 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
4857 else
4858 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
4859 fi
4860
4861else
4862
4863 LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
4864 if test "x$LINE" != x ; then
4865 eval "DEFAULT_$LINE"
4866 else
4867 no_cache=1
4868 fi
4869
4870 ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
4871
4872fi
4873
4874
4875 eval "$ac_cv_use_scrollbar"
4876 if test "$no_cache" != 1; then
4877 echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
4878 fi
4879
4880 if test "$wxUSE_SCROLLBAR" = yes; then
4881 echo "$ac_t""yes" 1>&6
4882 else
4883 echo "$ac_t""no" 1>&6
4884 fi
4885
4886
4887 echo $ac_n "checking "for --enable-slider"""... $ac_c" 1>&6
e8f65ba6 4888echo "configure:4889: checking "for --enable-slider"" >&5
10f2d63a
VZ
4889 no_cache=0
4890 # Check whether --enable-slider or --disable-slider was given.
4891if test "${enable_slider+set}" = set; then
4892 enableval="$enable_slider"
4893
4894 if test "$enableval" = yes; then
4895 ac_cv_use_slider='wxUSE_SLIDER=yes'
4896 else
4897 ac_cv_use_slider='wxUSE_SLIDER=no'
4898 fi
4899
4900else
4901
4902 LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
4903 if test "x$LINE" != x ; then
4904 eval "DEFAULT_$LINE"
4905 else
4906 no_cache=1
4907 fi
4908
4909 ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
4910
4911fi
4912
4913
4914 eval "$ac_cv_use_slider"
4915 if test "$no_cache" != 1; then
4916 echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
4917 fi
4918
4919 if test "$wxUSE_SLIDER" = yes; then
4920 echo "$ac_t""yes" 1>&6
4921 else
4922 echo "$ac_t""no" 1>&6
4923 fi
4924
4925
4926 echo $ac_n "checking "for --enable-spinbtn"""... $ac_c" 1>&6
e8f65ba6 4927echo "configure:4928: checking "for --enable-spinbtn"" >&5
10f2d63a
VZ
4928 no_cache=0
4929 # Check whether --enable-spinbtn or --disable-spinbtn was given.
4930if test "${enable_spinbtn+set}" = set; then
4931 enableval="$enable_spinbtn"
4932
4933 if test "$enableval" = yes; then
4934 ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
4935 else
4936 ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
4937 fi
4938
4939else
4940
4941 LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
4942 if test "x$LINE" != x ; then
4943 eval "DEFAULT_$LINE"
4944 else
4945 no_cache=1
4946 fi
4947
4948 ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
4949
4950fi
4951
4952
4953 eval "$ac_cv_use_spinbtn"
4954 if test "$no_cache" != 1; then
4955 echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
4956 fi
4957
4958 if test "$wxUSE_SPINBTN" = yes; then
4959 echo "$ac_t""yes" 1>&6
4960 else
4961 echo "$ac_t""no" 1>&6
4962 fi
4963
4964
56cfaa52 4965 echo $ac_n "checking "for --enable-spinctrl"""... $ac_c" 1>&6
e8f65ba6 4966echo "configure:4967: checking "for --enable-spinctrl"" >&5
56cfaa52
RR
4967 no_cache=0
4968 # Check whether --enable-spinctrl or --disable-spinctrl was given.
4969if test "${enable_spinctrl+set}" = set; then
4970 enableval="$enable_spinctrl"
4971
4972 if test "$enableval" = yes; then
4973 ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
4974 else
4975 ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
4976 fi
4977
4978else
4979
4980 LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
4981 if test "x$LINE" != x ; then
4982 eval "DEFAULT_$LINE"
4983 else
4984 no_cache=1
4985 fi
4986
4987 ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
4988
4989fi
4990
4991
4992 eval "$ac_cv_use_spinctrl"
4993 if test "$no_cache" != 1; then
4994 echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
4995 fi
4996
4997 if test "$wxUSE_SPINCTRL" = yes; then
4998 echo "$ac_t""yes" 1>&6
4999 else
5000 echo "$ac_t""no" 1>&6
5001 fi
5002
5003
10f2d63a 5004 echo $ac_n "checking "for --enable-splitter"""... $ac_c" 1>&6
e8f65ba6 5005echo "configure:5006: checking "for --enable-splitter"" >&5
10f2d63a
VZ
5006 no_cache=0
5007 # Check whether --enable-splitter or --disable-splitter was given.
5008if test "${enable_splitter+set}" = set; then
5009 enableval="$enable_splitter"
5010
5011 if test "$enableval" = yes; then
5012 ac_cv_use_splitter='wxUSE_SPLITTER=yes'
5013 else
5014 ac_cv_use_splitter='wxUSE_SPLITTER=no'
5015 fi
5016
5017else
5018
5019 LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
5020 if test "x$LINE" != x ; then
5021 eval "DEFAULT_$LINE"
5022 else
5023 no_cache=1
5024 fi
5025
5026 ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
5027
5028fi
5029
5030
5031 eval "$ac_cv_use_splitter"
5032 if test "$no_cache" != 1; then
5033 echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
5034 fi
5035
5036 if test "$wxUSE_SPLITTER" = yes; then
5037 echo "$ac_t""yes" 1>&6
5038 else
5039 echo "$ac_t""no" 1>&6
5040 fi
5041
5042
5043 echo $ac_n "checking "for --enable-statbmp"""... $ac_c" 1>&6
e8f65ba6 5044echo "configure:5045: checking "for --enable-statbmp"" >&5
10f2d63a
VZ
5045 no_cache=0
5046 # Check whether --enable-statbmp or --disable-statbmp was given.
5047if test "${enable_statbmp+set}" = set; then
5048 enableval="$enable_statbmp"
5049
5050 if test "$enableval" = yes; then
5051 ac_cv_use_statbmp='wxUSE_STATBMP=yes'
5052 else
5053 ac_cv_use_statbmp='wxUSE_STATBMP=no'
5054 fi
5055
5056else
5057
5058 LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
5059 if test "x$LINE" != x ; then
5060 eval "DEFAULT_$LINE"
5061 else
5062 no_cache=1
5063 fi
5064
5065 ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
5066
5067fi
5068
5069
5070 eval "$ac_cv_use_statbmp"
5071 if test "$no_cache" != 1; then
5072 echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
5073 fi
5074
5075 if test "$wxUSE_STATBMP" = yes; then
5076 echo "$ac_t""yes" 1>&6
5077 else
5078 echo "$ac_t""no" 1>&6
5079 fi
5080
5081
5082 echo $ac_n "checking "for --enable-statbox"""... $ac_c" 1>&6
e8f65ba6 5083echo "configure:5084: checking "for --enable-statbox"" >&5
10f2d63a
VZ
5084 no_cache=0
5085 # Check whether --enable-statbox or --disable-statbox was given.
5086if test "${enable_statbox+set}" = set; then
5087 enableval="$enable_statbox"
5088
5089 if test "$enableval" = yes; then
5090 ac_cv_use_statbox='wxUSE_STATBOX=yes'
5091 else
5092 ac_cv_use_statbox='wxUSE_STATBOX=no'
5093 fi
5094
5095else
5096
5097 LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
5098 if test "x$LINE" != x ; then
5099 eval "DEFAULT_$LINE"
5100 else
5101 no_cache=1
5102 fi
5103
5104 ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
5105
5106fi
5107
5108
5109 eval "$ac_cv_use_statbox"
5110 if test "$no_cache" != 1; then
5111 echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
5112 fi
5113
5114 if test "$wxUSE_STATBOX" = yes; then
5115 echo "$ac_t""yes" 1>&6
5116 else
5117 echo "$ac_t""no" 1>&6
5118 fi
5119
5120
5121 echo $ac_n "checking "for --enable-statline"""... $ac_c" 1>&6
e8f65ba6 5122echo "configure:5123: checking "for --enable-statline"" >&5
10f2d63a
VZ
5123 no_cache=0
5124 # Check whether --enable-statline or --disable-statline was given.
5125if test "${enable_statline+set}" = set; then
5126 enableval="$enable_statline"
5127
5128 if test "$enableval" = yes; then
5129 ac_cv_use_statline='wxUSE_STATLINE=yes'
5130 else
5131 ac_cv_use_statline='wxUSE_STATLINE=no'
5132 fi
5133
5134else
5135
5136 LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
5137 if test "x$LINE" != x ; then
5138 eval "DEFAULT_$LINE"
5139 else
5140 no_cache=1
5141 fi
5142
5143 ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
5144
5145fi
5146
5147
5148 eval "$ac_cv_use_statline"
5149 if test "$no_cache" != 1; then
5150 echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
5151 fi
5152
5153 if test "$wxUSE_STATLINE" = yes; then
5154 echo "$ac_t""yes" 1>&6
5155 else
5156 echo "$ac_t""no" 1>&6
5157 fi
5158
5159
5160 echo $ac_n "checking "for --enable-statusbar"""... $ac_c" 1>&6
e8f65ba6 5161echo "configure:5162: checking "for --enable-statusbar"" >&5
10f2d63a
VZ
5162 no_cache=0
5163 # Check whether --enable-statusbar or --disable-statusbar was given.
5164if test "${enable_statusbar+set}" = set; then
5165 enableval="$enable_statusbar"
5166
5167 if test "$enableval" = yes; then
5168 ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
5169 else
5170 ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
5171 fi
5172
5173else
5174
5175 LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
5176 if test "x$LINE" != x ; then
5177 eval "DEFAULT_$LINE"
5178 else
5179 no_cache=1
5180 fi
5181
5182 ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
5183
5184fi
5185
5186
5187 eval "$ac_cv_use_statusbar"
5188 if test "$no_cache" != 1; then
5189 echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
5190 fi
5191
5192 if test "$wxUSE_STATUSBAR" = yes; then
5193 echo "$ac_t""yes" 1>&6
5194 else
5195 echo "$ac_t""no" 1>&6
5196 fi
5197
5198
5199 echo $ac_n "checking "for --enable-tabdialog"""... $ac_c" 1>&6
e8f65ba6 5200echo "configure:5201: checking "for --enable-tabdialog"" >&5
10f2d63a
VZ
5201 no_cache=0
5202 # Check whether --enable-tabdialog or --disable-tabdialog was given.
5203if test "${enable_tabdialog+set}" = set; then
5204 enableval="$enable_tabdialog"
5205
5206 if test "$enableval" = yes; then
5207 ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes'
5208 else
5209 ac_cv_use_tabdialog='wxUSE_TABDIALOG=no'
5210 fi
5211
5212else
5213
5214 LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}`
5215 if test "x$LINE" != x ; then
5216 eval "DEFAULT_$LINE"
5217 else
5218 no_cache=1
5219 fi
5220
5221 ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG
5222
5223fi
5224
5225
5226 eval "$ac_cv_use_tabdialog"
5227 if test "$no_cache" != 1; then
5228 echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
5229 fi
5230
5231 if test "$wxUSE_TABDIALOG" = yes; then
5232 echo "$ac_t""yes" 1>&6
5233 else
5234 echo "$ac_t""no" 1>&6
5235 fi
5236
5237
5238 echo $ac_n "checking "for --enable-toolbar"""... $ac_c" 1>&6
e8f65ba6 5239echo "configure:5240: checking "for --enable-toolbar"" >&5
10f2d63a
VZ
5240 no_cache=0
5241 # Check whether --enable-toolbar or --disable-toolbar was given.
5242if test "${enable_toolbar+set}" = set; then
5243 enableval="$enable_toolbar"
5244
5245 if test "$enableval" = yes; then
5246 ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
5247 else
5248 ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
5249 fi
5250
5251else
5252
5253 LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
5254 if test "x$LINE" != x ; then
5255 eval "DEFAULT_$LINE"
5256 else
5257 no_cache=1
5258 fi
5259
5260 ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
5261
5262fi
5263
5264
5265 eval "$ac_cv_use_toolbar"
5266 if test "$no_cache" != 1; then
5267 echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
5268 fi
5269
5270 if test "$wxUSE_TOOLBAR" = yes; then
5271 echo "$ac_t""yes" 1>&6
5272 else
5273 echo "$ac_t""no" 1>&6
5274 fi
5275
5276
360d6699 5277 echo $ac_n "checking "for --enable-tbarnative"""... $ac_c" 1>&6
e8f65ba6 5278echo "configure:5279: checking "for --enable-tbarnative"" >&5
360d6699
VZ
5279 no_cache=0
5280 # Check whether --enable-tbarnative or --disable-tbarnative was given.
5281if test "${enable_tbarnative+set}" = set; then
5282 enableval="$enable_tbarnative"
5283
5284 if test "$enableval" = yes; then
5285 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
5286 else
5287 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
5288 fi
5289
5290else
5291
5292 LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
5293 if test "x$LINE" != x ; then
5294 eval "DEFAULT_$LINE"
5295 else
5296 no_cache=1
5297 fi
5298
5299 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
5300
5301fi
5302
5303
5304 eval "$ac_cv_use_tbarnative"
5305 if test "$no_cache" != 1; then
5306 echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
5307 fi
5308
5309 if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
5310 echo "$ac_t""yes" 1>&6
5311 else
5312 echo "$ac_t""no" 1>&6
5313 fi
5314
5315
5316 echo $ac_n "checking "for --enable-tbarsmpl"""... $ac_c" 1>&6
e8f65ba6 5317echo "configure:5318: checking "for --enable-tbarsmpl"" >&5
360d6699
VZ
5318 no_cache=0
5319 # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given.
5320if test "${enable_tbarsmpl+set}" = set; then
5321 enableval="$enable_tbarsmpl"
5322
5323 if test "$enableval" = yes; then
5324 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes'
5325 else
5326 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no'
5327 fi
5328
5329else
5330
5331 LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}`
5332 if test "x$LINE" != x ; then
5333 eval "DEFAULT_$LINE"
5334 else
5335 no_cache=1
5336 fi
5337
5338 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE
5339
5340fi
5341
5342
5343 eval "$ac_cv_use_tbarsmpl"
5344 if test "$no_cache" != 1; then
5345 echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp
5346 fi
5347
5348 if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then
5349 echo "$ac_t""yes" 1>&6
5350 else
5351 echo "$ac_t""no" 1>&6
5352 fi
5353
5354
10f2d63a 5355 echo $ac_n "checking "for --enable-treectrl"""... $ac_c" 1>&6
e8f65ba6 5356echo "configure:5357: checking "for --enable-treectrl"" >&5
10f2d63a
VZ
5357 no_cache=0
5358 # Check whether --enable-treectrl or --disable-treectrl was given.
5359if test "${enable_treectrl+set}" = set; then
5360 enableval="$enable_treectrl"
5361
5362 if test "$enableval" = yes; then
5363 ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
5364 else
5365 ac_cv_use_treectrl='wxUSE_TREECTRL=no'
5366 fi
5367
5368else
5369
5370 LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
5371 if test "x$LINE" != x ; then
5372 eval "DEFAULT_$LINE"
5373 else
5374 no_cache=1
5375 fi
5376
5377 ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
5378
5379fi
5380
5381
5382 eval "$ac_cv_use_treectrl"
5383 if test "$no_cache" != 1; then
5384 echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
5385 fi
5386
5387 if test "$wxUSE_TREECTRL" = yes; then
5388 echo "$ac_t""yes" 1>&6
5389 else
5390 echo "$ac_t""no" 1>&6
5391 fi
5392
5393
5394
5395
5396 echo $ac_n "checking "for --enable-commondlg"""... $ac_c" 1>&6
e8f65ba6 5397echo "configure:5398: checking "for --enable-commondlg"" >&5
10f2d63a
VZ
5398 no_cache=0
5399 # Check whether --enable-commondlg or --disable-commondlg was given.
5400if test "${enable_commondlg+set}" = set; then
5401 enableval="$enable_commondlg"
5402
5403 if test "$enableval" = yes; then
5404 ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
5405 else
5406 ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
5407 fi
5408
5409else
5410
5411 LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
5412 if test "x$LINE" != x ; then
5413 eval "DEFAULT_$LINE"
5414 else
5415 no_cache=1
5416 fi
5417
5418 ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
5419
5420fi
5421
5422
5423 eval "$ac_cv_use_commondlg"
5424 if test "$no_cache" != 1; then
5425 echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
5426 fi
5427
5428 if test "$wxUSE_COMMONDLGS" = yes; then
5429 echo "$ac_t""yes" 1>&6
5430 else
5431 echo "$ac_t""no" 1>&6
5432 fi
5433
5434
5435 echo $ac_n "checking "for --enable-dirdlg"""... $ac_c" 1>&6
e8f65ba6 5436echo "configure:5437: checking "for --enable-dirdlg"" >&5
10f2d63a
VZ
5437 no_cache=0
5438 # Check whether --enable-dirdlg or --disable-dirdlg was given.
5439if test "${enable_dirdlg+set}" = set; then
5440 enableval="$enable_dirdlg"
5441
5442 if test "$enableval" = yes; then
5443 ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
5444 else
5445 ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
5446 fi
5447
5448else
5449
5450 LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
5451 if test "x$LINE" != x ; then
5452 eval "DEFAULT_$LINE"
5453 else
5454 no_cache=1
5455 fi
5456
5457 ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
5458
5459fi
5460
5461
5462 eval "$ac_cv_use_dirdlg"
5463 if test "$no_cache" != 1; then
5464 echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
5465 fi
5466
5467 if test "$wxUSE_DIRDLG" = yes; then
5468 echo "$ac_t""yes" 1>&6
5469 else
5470 echo "$ac_t""no" 1>&6
5471 fi
5472
5473
5474 echo $ac_n "checking "for --enable-textdlg"""... $ac_c" 1>&6
e8f65ba6 5475echo "configure:5476: checking "for --enable-textdlg"" >&5
10f2d63a
VZ
5476 no_cache=0
5477 # Check whether --enable-textdlg or --disable-textdlg was given.
5478if test "${enable_textdlg+set}" = set; then
5479 enableval="$enable_textdlg"
5480
5481 if test "$enableval" = yes; then
5482 ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
5483 else
5484 ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
5485 fi
5486
5487else
5488
5489 LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
5490 if test "x$LINE" != x ; then
5491 eval "DEFAULT_$LINE"
5492 else
5493 no_cache=1
5494 fi
5495
5496 ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
5497
5498fi
5499
5500
5501 eval "$ac_cv_use_textdlg"
5502 if test "$no_cache" != 1; then
5503 echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
5504 fi
5505
5506 if test "$wxUSE_TEXTDLG" = yes; then
5507 echo "$ac_t""yes" 1>&6
5508 else
5509 echo "$ac_t""no" 1>&6
5510 fi
5511
5512
5513 echo $ac_n "checking "for --enable-tipdlg"""... $ac_c" 1>&6
e8f65ba6 5514echo "configure:5515: checking "for --enable-tipdlg"" >&5
10f2d63a
VZ
5515 no_cache=0
5516 # Check whether --enable-tipdlg or --disable-tipdlg was given.
5517if test "${enable_tipdlg+set}" = set; then
5518 enableval="$enable_tipdlg"
5519
5520 if test "$enableval" = yes; then
5521 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
5522 else
5523 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
5524 fi
5525
5526else
5527
5528 LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
5529 if test "x$LINE" != x ; then
5530 eval "DEFAULT_$LINE"
5531 else
5532 no_cache=1
5533 fi
5534
5535 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
5536
5537fi
5538
5539
5540 eval "$ac_cv_use_tipdlg"
5541 if test "$no_cache" != 1; then
5542 echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
5543 fi
5544
5545 if test "$wxUSE_STARTUP_TIPS" = yes; then
5546 echo "$ac_t""yes" 1>&6
5547 else
5548 echo "$ac_t""no" 1>&6
5549 fi
5550
5551
5552 echo $ac_n "checking "for --enable-progressdlg"""... $ac_c" 1>&6
e8f65ba6 5553echo "configure:5554: checking "for --enable-progressdlg"" >&5
10f2d63a
VZ
5554 no_cache=0
5555 # Check whether --enable-progressdlg or --disable-progressdlg was given.
5556if test "${enable_progressdlg+set}" = set; then
5557 enableval="$enable_progressdlg"
5558
5559 if test "$enableval" = yes; then
5560 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
5561 else
5562 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
5563 fi
5564
5565else
5566
5567 LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
5568 if test "x$LINE" != x ; then
5569 eval "DEFAULT_$LINE"
5570 else
5571 no_cache=1
5572 fi
5573
5574 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
5575
5576fi
5577
5578
5579 eval "$ac_cv_use_progressdlg"
5580 if test "$no_cache" != 1; then
5581 echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
5582 fi
5583
5584 if test "$wxUSE_PROGRESSDLG" = yes; then
5585 echo "$ac_t""yes" 1>&6
5586 else
5587 echo "$ac_t""no" 1>&6
5588 fi
5589
5590
5591 echo $ac_n "checking "for --enable-miniframe"""... $ac_c" 1>&6
e8f65ba6 5592echo "configure:5593: checking "for --enable-miniframe"" >&5
10f2d63a
VZ
5593 no_cache=0
5594 # Check whether --enable-miniframe or --disable-miniframe was given.
5595if test "${enable_miniframe+set}" = set; then
5596 enableval="$enable_miniframe"
5597
5598 if test "$enableval" = yes; then
5599 ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
5600 else
5601 ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
5602 fi
5603
5604else
5605
5606 LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
5607 if test "x$LINE" != x ; then
5608 eval "DEFAULT_$LINE"
5609 else
5610 no_cache=1
5611 fi
5612
5613 ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
5614
5615fi
5616
5617
5618 eval "$ac_cv_use_miniframe"
5619 if test "$no_cache" != 1; then
5620 echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
5621 fi
5622
5623 if test "$wxUSE_MINIFRAME" = yes; then
5624 echo "$ac_t""yes" 1>&6
5625 else
5626 echo "$ac_t""no" 1>&6
5627 fi
5628
5629
5630 echo $ac_n "checking "for --enable-html"""... $ac_c" 1>&6
e8f65ba6 5631echo "configure:5632: checking "for --enable-html"" >&5
10f2d63a
VZ
5632 no_cache=0
5633 # Check whether --enable-html or --disable-html was given.
5634if test "${enable_html+set}" = set; then
5635 enableval="$enable_html"
5636
5637 if test "$enableval" = yes; then
5638 ac_cv_use_html='wxUSE_HTML=yes'
5639 else
5640 ac_cv_use_html='wxUSE_HTML=no'
5641 fi
5642
5643else
5644
5645 LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
5646 if test "x$LINE" != x ; then
5647 eval "DEFAULT_$LINE"
5648 else
5649 no_cache=1
5650 fi
5651
5652 ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
5653
5654fi
5655
5656
5657 eval "$ac_cv_use_html"
5658 if test "$no_cache" != 1; then
5659 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
5660 fi
5661
5662 if test "$wxUSE_HTML" = yes; then
5663 echo "$ac_t""yes" 1>&6
5664 else
5665 echo "$ac_t""no" 1>&6
5666 fi
5667
5668
5669 echo $ac_n "checking "for --enable-tooltips"""... $ac_c" 1>&6
e8f65ba6 5670echo "configure:5671: checking "for --enable-tooltips"" >&5
10f2d63a
VZ
5671 no_cache=0
5672 # Check whether --enable-tooltips or --disable-tooltips was given.
5673if test "${enable_tooltips+set}" = set; then
5674 enableval="$enable_tooltips"
5675
5676 if test "$enableval" = yes; then
5677 ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
5678 else
5679 ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
5680 fi
5681
5682else
5683
5684 LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
5685 if test "x$LINE" != x ; then
5686 eval "DEFAULT_$LINE"
5687 else
5688 no_cache=1
5689 fi
5690
5691 ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
5692
5693fi
5694
5695
5696 eval "$ac_cv_use_tooltips"
5697 if test "$no_cache" != 1; then
5698 echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
5699 fi
5700
5701 if test "$wxUSE_TOOLTIPS" = yes; then
5702 echo "$ac_t""yes" 1>&6
5703 else
5704 echo "$ac_t""no" 1>&6
5705 fi
5706
5707
5708 echo $ac_n "checking "for --enable-splines"""... $ac_c" 1>&6
e8f65ba6 5709echo "configure:5710: checking "for --enable-splines"" >&5
10f2d63a
VZ
5710 no_cache=0
5711 # Check whether --enable-splines or --disable-splines was given.
5712if test "${enable_splines+set}" = set; then
5713 enableval="$enable_splines"
5714
5715 if test "$enableval" = yes; then
5716 ac_cv_use_splines='wxUSE_SPLINES=yes'
5717 else
5718 ac_cv_use_splines='wxUSE_SPLINES=no'
5719 fi
5720
5721else
5722
5723 LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
5724 if test "x$LINE" != x ; then
5725 eval "DEFAULT_$LINE"
5726 else
5727 no_cache=1
5728 fi
5729
5730 ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
5731
5732fi
5733
5734
5735 eval "$ac_cv_use_splines"
5736 if test "$no_cache" != 1; then
5737 echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
5738 fi
5739
5740 if test "$wxUSE_SPLINES" = yes; then
5741 echo "$ac_t""yes" 1>&6
5742 else
5743 echo "$ac_t""no" 1>&6
5744 fi
5745
5746
5747 echo $ac_n "checking "for --enable-validators"""... $ac_c" 1>&6
e8f65ba6 5748echo "configure:5749: checking "for --enable-validators"" >&5
10f2d63a
VZ
5749 no_cache=0
5750 # Check whether --enable-validators or --disable-validators was given.
5751if test "${enable_validators+set}" = set; then
5752 enableval="$enable_validators"
5753
5754 if test "$enableval" = yes; then
5755 ac_cv_use_validators='wxUSE_VALIDATORS=yes'
5756 else
5757 ac_cv_use_validators='wxUSE_VALIDATORS=no'
5758 fi
5759
5760else
5761
5762 LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
5763 if test "x$LINE" != x ; then
5764 eval "DEFAULT_$LINE"
5765 else
5766 no_cache=1
5767 fi
5768
5769 ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
5770
5771fi
5772
5773
5774 eval "$ac_cv_use_validators"
5775 if test "$no_cache" != 1; then
5776 echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
5777 fi
5778
5779 if test "$wxUSE_VALIDATORS" = yes; then
5780 echo "$ac_t""yes" 1>&6
5781 else
5782 echo "$ac_t""no" 1>&6
5783 fi
5784
5785
5786 echo $ac_n "checking "for --enable-busyinfo"""... $ac_c" 1>&6
e8f65ba6 5787echo "configure:5788: checking "for --enable-busyinfo"" >&5
10f2d63a
VZ
5788 no_cache=0
5789 # Check whether --enable-busyinfo or --disable-busyinfo was given.
5790if test "${enable_busyinfo+set}" = set; then
5791 enableval="$enable_busyinfo"
5792
5793 if test "$enableval" = yes; then
5794 ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
5795 else
5796 ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
5797 fi
5798
5799else
5800
5801 LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
5802 if test "x$LINE" != x ; then
5803 eval "DEFAULT_$LINE"
5804 else
5805 no_cache=1
5806 fi
5807
5808 ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
5809
5810fi
5811
5812
5813 eval "$ac_cv_use_busyinfo"
5814 if test "$no_cache" != 1; then
5815 echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
5816 fi
5817
5818 if test "$wxUSE_BUSYINFO" = yes; then
5819 echo "$ac_t""yes" 1>&6
5820 else
5821 echo "$ac_t""no" 1>&6
5822 fi
5823
5824
9b33fe02 5825 echo $ac_n "checking "for --enable-plot"""... $ac_c" 1>&6
e8f65ba6 5826echo "configure:5827: checking "for --enable-plot"" >&5
9b33fe02
VZ
5827 no_cache=0
5828 # Check whether --enable-plot or --disable-plot was given.
5829if test "${enable_plot+set}" = set; then
5830 enableval="$enable_plot"
5831
5832 if test "$enableval" = yes; then
5833 ac_cv_use_plot='wxUSE_PLOT=yes'
5834 else
5835 ac_cv_use_plot='wxUSE_PLOT=no'
5836 fi
5837
5838else
5839
5840 LINE=`grep "wxUSE_PLOT" ${wx_arg_cache_file}`
5841 if test "x$LINE" != x ; then
5842 eval "DEFAULT_$LINE"
5843 else
5844 no_cache=1
5845 fi
5846
5847 ac_cv_use_plot='wxUSE_PLOT='$DEFAULT_wxUSE_PLOT
5848
5849fi
5850
5851
5852 eval "$ac_cv_use_plot"
5853 if test "$no_cache" != 1; then
5854 echo $ac_cv_use_plot >> ${wx_arg_cache_file}.tmp
5855 fi
5856
5857 if test "$wxUSE_PLOT" = yes; then
5858 echo "$ac_t""yes" 1>&6
5859 else
5860 echo "$ac_t""no" 1>&6
5861 fi
5862
5863
f6bcfd97 5864 echo $ac_n "checking "for --enable-joystick"""... $ac_c" 1>&6
e8f65ba6 5865echo "configure:5866: checking "for --enable-joystick"" >&5
f6bcfd97
BP
5866 no_cache=0
5867 # Check whether --enable-joystick or --disable-joystick was given.
5868if test "${enable_joystick+set}" = set; then
5869 enableval="$enable_joystick"
5870
5871 if test "$enableval" = yes; then
5872 ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
5873 else
5874 ac_cv_use_joystick='wxUSE_JOYSTICK=no'
5875 fi
5876
5877else
5878
5879 LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
5880 if test "x$LINE" != x ; then
5881 eval "DEFAULT_$LINE"
5882 else
5883 no_cache=1
5884 fi
5885
5886 ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
5887
5888fi
5889
5890
5891 eval "$ac_cv_use_joystick"
5892 if test "$no_cache" != 1; then
5893 echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
5894 fi
5895
5896 if test "$wxUSE_JOYSTICK" = yes; then
5897 echo "$ac_t""yes" 1>&6
5898 else
5899 echo "$ac_t""no" 1>&6
5900 fi
5901
5902
10f2d63a
VZ
5903
5904
5905 echo $ac_n "checking "for --enable-gif"""... $ac_c" 1>&6
e8f65ba6 5906echo "configure:5907: checking "for --enable-gif"" >&5
10f2d63a
VZ
5907 no_cache=0
5908 # Check whether --enable-gif or --disable-gif was given.
5909if test "${enable_gif+set}" = set; then
5910 enableval="$enable_gif"
5911
5912 if test "$enableval" = yes; then
5913 ac_cv_use_gif='wxUSE_GIF=yes'
5914 else
5915 ac_cv_use_gif='wxUSE_GIF=no'
5916 fi
5917
5918else
5919
5920 LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
5921 if test "x$LINE" != x ; then
5922 eval "DEFAULT_$LINE"
5923 else
5924 no_cache=1
5925 fi
5926
5927 ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
5928
5929fi
5930
5931
5932 eval "$ac_cv_use_gif"
5933 if test "$no_cache" != 1; then
5934 echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
5935 fi
5936
5937 if test "$wxUSE_GIF" = yes; then
5938 echo "$ac_t""yes" 1>&6
5939 else
5940 echo "$ac_t""no" 1>&6
5941 fi
5942
5943
5944 echo $ac_n "checking "for --enable-pcx"""... $ac_c" 1>&6
e8f65ba6 5945echo "configure:5946: checking "for --enable-pcx"" >&5
10f2d63a
VZ
5946 no_cache=0
5947 # Check whether --enable-pcx or --disable-pcx was given.
5948if test "${enable_pcx+set}" = set; then
5949 enableval="$enable_pcx"
5950
5951 if test "$enableval" = yes; then
5952 ac_cv_use_pcx='wxUSE_PCX=yes'
5953 else
5954 ac_cv_use_pcx='wxUSE_PCX=no'
5955 fi
5956
5957else
5958
5959 LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
5960 if test "x$LINE" != x ; then
5961 eval "DEFAULT_$LINE"
5962 else
5963 no_cache=1
5964 fi
5965
5966 ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
5967
5968fi
5969
5970
5971 eval "$ac_cv_use_pcx"
5972 if test "$no_cache" != 1; then
5973 echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
5974 fi
5975
5976 if test "$wxUSE_PCX" = yes; then
5977 echo "$ac_t""yes" 1>&6
5978 else
5979 echo "$ac_t""no" 1>&6
5980 fi
5981
5982
5983 echo $ac_n "checking "for --enable-pnm"""... $ac_c" 1>&6
e8f65ba6 5984echo "configure:5985: checking "for --enable-pnm"" >&5
10f2d63a
VZ
5985 no_cache=0
5986 # Check whether --enable-pnm or --disable-pnm was given.
5987if test "${enable_pnm+set}" = set; then
5988 enableval="$enable_pnm"
5989
5990 if test "$enableval" = yes; then
5991 ac_cv_use_pnm='wxUSE_PNM=yes'
5992 else
5993 ac_cv_use_pnm='wxUSE_PNM=no'
5994 fi
5995
5996else
5997
5998 LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
5999 if test "x$LINE" != x ; then
6000 eval "DEFAULT_$LINE"
6001 else
6002 no_cache=1
6003 fi
6004
6005 ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
6006
6007fi
6008
6009
6010 eval "$ac_cv_use_pnm"
6011 if test "$no_cache" != 1; then
6012 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
6013 fi
6014
6015 if test "$wxUSE_PNM" = yes; then
6016 echo "$ac_t""yes" 1>&6
6017 else
6018 echo "$ac_t""no" 1>&6
6019 fi
6020
6021
b12915c1
VZ
6022fi
6023
10f2d63a
VZ
6024
6025 echo "saving argument cache $wx_arg_cache_file"
6026 mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
6027
6028
6029
6030echo $ac_n "checking for toolkit""... $ac_c" 1>&6
e8f65ba6 6031echo "configure:6032: checking for toolkit" >&5
10f2d63a
VZ
6032
6033if test "$wxUSE_GUI" = "yes"; then
6034
b12915c1
VZ
6035if test "$USE_BEOS" = 1; then
6036 { echo "configure: error: BeOS GUI is not supported yet, use --disable-gui" 1>&2; exit 1; }
6037fi
6038
10f2d63a
VZ
6039if test "$TOOLKIT_GIVEN" = 1; then
6040 for toolkit in `echo $ALL_TOOLKITS`; do
6041 var=wxUSE_$toolkit
6042 eval "value=\$${var}"
6043 eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`"
6044 done
6045else
6046 for toolkit in `echo $ALL_TOOLKITS`; do
6047 if test "$has_toolkit_in_cache" != 1; then
6048 var=DEFAULT_DEFAULT_wxUSE_$toolkit
6049 else
6050 var=DEFAULT_wxUSE_$toolkit
6051 fi
6052 eval "wxUSE_$toolkit=\$${var}"
6053 done
6054fi
6055
ec14dd32 6056NUM_TOOLKITS=`expr ${wxUSE_GTK:-0} + ${wxUSE_MOTIF:-0} + ${wxUSE_WINE:-0} + ${wxUSE_MINGW:-0} + ${wxUSE_CYGWIN:-0}`
cf27ef00 6057
ec14dd32
VZ
6058case "${host}" in
6059 *-pc-os2_emx )
6060 NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
6061 # PATH_IFS is autodetected by OS/2's configure (usually ';')
6062 LEX_STEM="lexyy"
6063 ;;
6064 *)
6065 PATH_IFS=':'
6066 LEX_STEM="lex.yy"
6067 ;;
6068esac
10f2d63a
VZ
6069
6070case "$NUM_TOOLKITS" in
6071 1)
6072 ;;
6073 0)
6074 { echo "configure: error: Please specify a toolkit - cannot determine the default for ${host}" 1>&2; exit 1; }
6075 ;;
6076 *)
6077 { echo "configure: error: Please specify at most one toolkit (may be some are cached?)" 1>&2; exit 1; }
6078esac
6079
6080for toolkit in `echo $ALL_TOOLKITS`; do
6081 var=wxUSE_$toolkit
6082 eval "value=\$${var}"
6083 if test "x$value" != x; then
6084 cache_var=CACHE_$toolkit
6085 eval "cache=\$${cache_var}"
6086 if test "$cache" = 1; then
6087 echo "$var=$value" >> ${wx_arg_cache_file}
6088 fi
6089 if test "$value" = 1; then
6090 echo "$ac_t""`echo $toolkit | tr A-Z a-z`" 1>&6
6091 fi
6092 fi
6093done
6094
6095else
cf27ef00 6096 PATH_IFS=':'
10f2d63a
VZ
6097 echo "$ac_t""base only" 1>&6
6098fi
6099
6100
6101cat > confcache <<\EOF
6102# This file is a shell script that caches the results of configure
6103# tests run on this system so they can be shared between configure
6104# scripts and configure runs. It is not useful on other systems.
6105# If it contains results you don't want to keep, you may remove or edit it.
6106#
6107# By default, configure uses ./config.cache as the cache file,
6108# creating it if it does not exist already. You can give configure
6109# the --cache-file=FILE option to use a different cache file; that is
6110# what configure does when it calls configure scripts in
6111# subdirectories, so they share the cache.
6112# Giving --cache-file=/dev/null disables caching, for debugging configure.
6113# config.status only pays attention to the cache file if you give it the
6114# --recheck option to rerun configure.
6115#
6116EOF
6117# The following way of writing the cache mishandles newlines in values,
6118# but we know of no workaround that is simple, portable, and efficient.
6119# So, don't put newlines in cache variables' values.
6120# Ultrix sh set writes to stderr and can't be redirected directly,
6121# and sets the high bit in the cache file unless we assign to the vars.
6122(set) 2>&1 |
6123 case `(ac_space=' '; set | grep ac_space) 2>&1` in
6124 *ac_space=\ *)
6125 # `set' does not quote correctly, so add quotes (double-quote substitution
6126 # turns \\\\ into \\, and sed turns \\ into \).
6127 sed -n \
6128 -e "s/'/'\\\\''/g" \
6129 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
6130 ;;
6131 *)
6132 # `set' quotes correctly as required by POSIX, so do not add quotes.
6133 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
6134 ;;
6135 esac >> confcache
6136if cmp -s $cache_file confcache; then
6137 :
6138else
6139 if test -w $cache_file; then
6140 echo "updating cache $cache_file"
6141 cat confcache > $cache_file
6142 else
6143 echo "not updating unwritable cache $cache_file"
6144 fi
6145fi
6146rm -f confcache
6147
6148
e59890c3 6149if test "$build" != "$host" ; then
10f2d63a
VZ
6150 CC=$host_alias-gcc
6151 CXX=$host_alias-c++
6152 AR=$host_alias-ar
6153 RANLIB=$host_alias-ranlib
6154 DLLTOOL=$host_alias-dlltool
32832908 6155 RESCOMP=$host_alias-windres
10f2d63a
VZ
6156 LD=$host_alias-ld
6157 NM=$host_alias-nm
6158 STRIP=$host_alias-strip
10f2d63a
VZ
6159fi
6160
6161# Extract the first word of "gcc", so it can be a program name with args.
6162set dummy gcc; ac_word=$2
6163echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
e8f65ba6 6164echo "configure:6165: checking for $ac_word" >&5
10f2d63a
VZ
6165if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
6166 echo $ac_n "(cached) $ac_c" 1>&6
6167else
6168 if test -n "$CC"; then
6169 ac_cv_prog_CC="$CC" # Let the user override the test.
6170else
6171 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6172 ac_dummy="$PATH"
6173 for ac_dir in $ac_dummy; do
6174 test -z "$ac_dir" && ac_dir=.
6175 if test -f $ac_dir/$ac_word; then
6176 ac_cv_prog_CC="gcc"
6177 break
6178 fi
6179 done
6180 IFS="$ac_save_ifs"
6181fi
6182fi
6183CC="$ac_cv_prog_CC"
6184if test -n "$CC"; then
6185 echo "$ac_t""$CC" 1>&6
6186else
6187 echo "$ac_t""no" 1>&6
6188fi
6189
6190if test -z "$CC"; then
6191 # Extract the first word of "cc", so it can be a program name with args.
6192set dummy cc; ac_word=$2
6193echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
e8f65ba6 6194echo "configure:6195: checking for $ac_word" >&5
10f2d63a
VZ
6195if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
6196 echo $ac_n "(cached) $ac_c" 1>&6
6197else
6198 if test -n "$CC"; then
6199 ac_cv_prog_CC="$CC" # Let the user override the test.
6200else
6201 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6202 ac_prog_rejected=no
6203 ac_dummy="$PATH"
6204 for ac_dir in $ac_dummy; do
6205 test -z "$ac_dir" && ac_dir=.
6206 if test -f $ac_dir/$ac_word; then
6207 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
6208 ac_prog_rejected=yes
6209 continue
6210 fi
6211 ac_cv_prog_CC="cc"
6212 break
6213 fi
6214 done
6215 IFS="$ac_save_ifs"
6216if test $ac_prog_rejected = yes; then
6217 # We found a bogon in the path, so make sure we never use it.
6218 set dummy $ac_cv_prog_CC
6219 shift
6220 if test $# -gt 0; then
6221 # We chose a different compiler from the bogus one.
6222 # However, it has the same basename, so the bogon will be chosen
6223 # first if we set CC to just the basename; use the full file name.
6224 shift
6225 set dummy "$ac_dir/$ac_word" "$@"
6226 shift
6227 ac_cv_prog_CC="$@"
6228 fi
6229fi
6230fi
6231fi
6232CC="$ac_cv_prog_CC"
6233if test -n "$CC"; then
6234 echo "$ac_t""$CC" 1>&6
6235else
6236 echo "$ac_t""no" 1>&6
6237fi
6238
6239 if test -z "$CC"; then
6240 case "`uname -s`" in
6241 *win32* | *WIN32*)
6242 # Extract the first word of "cl", so it can be a program name with args.
6243set dummy cl; ac_word=$2
6244echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
e8f65ba6 6245echo "configure:6246: checking for $ac_word" >&5
10f2d63a
VZ
6246if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
6247 echo $ac_n "(cached) $ac_c" 1>&6
6248else
6249 if test -n "$CC"; then
6250 ac_cv_prog_CC="$CC" # Let the user override the test.
6251else
6252 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6253 ac_dummy="$PATH"
6254 for ac_dir in $ac_dummy; do
6255 test -z "$ac_dir" && ac_dir=.
6256 if test -f $ac_dir/$ac_word; then
6257 ac_cv_prog_CC="cl"
6258 break
6259 fi
6260 done
6261 IFS="$ac_save_ifs"
6262fi
6263fi
6264CC="$ac_cv_prog_CC"
6265if test -n "$CC"; then
6266 echo "$ac_t""$CC" 1>&6
6267else
6268 echo "$ac_t""no" 1>&6
6269fi
6270 ;;
6271 esac
6272 fi
6273 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
6274fi
6275
6276echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
e8f65ba6 6277echo "configure:6278: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
10f2d63a
VZ
6278
6279ac_ext=c
6280# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6281ac_cpp='$CPP $CPPFLAGS'
6282ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6283ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6284cross_compiling=$ac_cv_prog_cc_cross
6285
6286cat > conftest.$ac_ext << EOF
6287
e8f65ba6 6288#line 6289 "configure"
10f2d63a
VZ
6289#include "confdefs.h"
6290
6291main(){return(0);}
6292EOF
e8f65ba6 6293if { (eval echo configure:6294: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
6294 ac_cv_prog_cc_works=yes
6295 # If we can't run a trivial program, we are probably using a cross compiler.
6296 if (./conftest; exit) 2>/dev/null; then
6297 ac_cv_prog_cc_cross=no
6298 else
6299 ac_cv_prog_cc_cross=yes
6300 fi
6301else
6302 echo "configure: failed program was:" >&5
6303 cat conftest.$ac_ext >&5
6304 ac_cv_prog_cc_works=no
6305fi
6306rm -fr conftest*
6307ac_ext=c
6308# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6309ac_cpp='$CPP $CPPFLAGS'
6310ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6311ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6312cross_compiling=$ac_cv_prog_cc_cross
6313
6314echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
6315if test $ac_cv_prog_cc_works = no; then
6316 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
6317fi
6318echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
e8f65ba6 6319echo "configure:6320: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
10f2d63a
VZ
6320echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
6321cross_compiling=$ac_cv_prog_cc_cross
6322
6323echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
e8f65ba6 6324echo "configure:6325: checking whether we are using GNU C" >&5
10f2d63a
VZ
6325if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
6326 echo $ac_n "(cached) $ac_c" 1>&6
6327else
6328 cat > conftest.c <<EOF
6329#ifdef __GNUC__
6330 yes;
6331#endif
6332EOF
e8f65ba6 6333if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:6334: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
10f2d63a
VZ
6334 ac_cv_prog_gcc=yes
6335else
6336 ac_cv_prog_gcc=no
6337fi
6338fi
6339
6340echo "$ac_t""$ac_cv_prog_gcc" 1>&6
6341
6342if test $ac_cv_prog_gcc = yes; then
6343 GCC=yes
6344else
6345 GCC=
6346fi
6347
6348ac_test_CFLAGS="${CFLAGS+set}"
6349ac_save_CFLAGS="$CFLAGS"
6350CFLAGS=
6351echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
e8f65ba6 6352echo "configure:6353: checking whether ${CC-cc} accepts -g" >&5
10f2d63a
VZ
6353if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
6354 echo $ac_n "(cached) $ac_c" 1>&6
6355else
6356 echo 'void f(){}' > conftest.c
6357if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
6358 ac_cv_prog_cc_g=yes
6359else
6360 ac_cv_prog_cc_g=no
6361fi
6362rm -f conftest*
6363
6364fi
6365
6366echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
6367if test "$ac_test_CFLAGS" = set; then
6368 CFLAGS="$ac_save_CFLAGS"
6369elif test $ac_cv_prog_cc_g = yes; then
6370 if test "$GCC" = yes; then
6371 CFLAGS="-g -O2"
6372 else
6373 CFLAGS="-g"
6374 fi
6375else
6376 if test "$GCC" = yes; then
6377 CFLAGS="-O2"
6378 else
6379 CFLAGS=
6380 fi
6381fi
6382
6383
6384CFLAGS=`echo "$CFLAGS" | sed 's/-g//g'`
6385
6386echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
e8f65ba6 6387echo "configure:6388: checking how to run the C preprocessor" >&5
10f2d63a
VZ
6388# On Suns, sometimes $CPP names a directory.
6389if test -n "$CPP" && test -d "$CPP"; then
6390 CPP=
6391fi
6392if test -z "$CPP"; then
6393if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
6394 echo $ac_n "(cached) $ac_c" 1>&6
6395else
6396 # This must be in double quotes, not single quotes, because CPP may get
6397 # substituted into the Makefile and "${CC-cc}" will confuse make.
6398 CPP="${CC-cc} -E"
6399 # On the NeXT, cc -E runs the code through the compiler's parser,
6400 # not just through cpp.
6401 cat > conftest.$ac_ext <<EOF
e8f65ba6 6402#line 6403 "configure"
10f2d63a
VZ
6403#include "confdefs.h"
6404#include <assert.h>
6405Syntax Error
6406EOF
6407ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
e8f65ba6 6408{ (eval echo configure:6409: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
6409ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6410if test -z "$ac_err"; then
6411 :
6412else
6413 echo "$ac_err" >&5
6414 echo "configure: failed program was:" >&5
6415 cat conftest.$ac_ext >&5
6416 rm -rf conftest*
6417 CPP="${CC-cc} -E -traditional-cpp"
6418 cat > conftest.$ac_ext <<EOF
e8f65ba6 6419#line 6420 "configure"
10f2d63a
VZ
6420#include "confdefs.h"
6421#include <assert.h>
6422Syntax Error
6423EOF
6424ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
e8f65ba6 6425{ (eval echo configure:6426: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
6426ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6427if test -z "$ac_err"; then
6428 :
6429else
6430 echo "$ac_err" >&5
6431 echo "configure: failed program was:" >&5
6432 cat conftest.$ac_ext >&5
6433 rm -rf conftest*
6434 CPP="${CC-cc} -nologo -E"
6435 cat > conftest.$ac_ext <<EOF
e8f65ba6 6436#line 6437 "configure"
10f2d63a
VZ
6437#include "confdefs.h"
6438#include <assert.h>
6439Syntax Error
6440EOF
6441ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
e8f65ba6 6442{ (eval echo configure:6443: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
6443ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6444if test -z "$ac_err"; then
6445 :
6446else
6447 echo "$ac_err" >&5
6448 echo "configure: failed program was:" >&5
6449 cat conftest.$ac_ext >&5
6450 rm -rf conftest*
6451 CPP=/lib/cpp
6452fi
6453rm -f conftest*
6454fi
6455rm -f conftest*
6456fi
6457rm -f conftest*
6458 ac_cv_prog_CPP="$CPP"
6459fi
6460 CPP="$ac_cv_prog_CPP"
6461else
6462 ac_cv_prog_CPP="$CPP"
6463fi
6464echo "$ac_t""$CPP" 1>&6
6465
6466
6467if test $ac_cv_prog_gcc = yes; then
6468 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
e8f65ba6 6469echo "configure:6470: checking whether ${CC-cc} needs -traditional" >&5
10f2d63a
VZ
6470if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
6471 echo $ac_n "(cached) $ac_c" 1>&6
6472else
6473 ac_pattern="Autoconf.*'x'"
6474 cat > conftest.$ac_ext <<EOF
e8f65ba6 6475#line 6476 "configure"
10f2d63a
VZ
6476#include "confdefs.h"
6477#include <sgtty.h>
6478Autoconf TIOCGETP
6479EOF
6480if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6481 egrep "$ac_pattern" >/dev/null 2>&1; then
6482 rm -rf conftest*
6483 ac_cv_prog_gcc_traditional=yes
6484else
6485 rm -rf conftest*
6486 ac_cv_prog_gcc_traditional=no
6487fi
6488rm -f conftest*
6489
6490
6491 if test $ac_cv_prog_gcc_traditional = no; then
6492 cat > conftest.$ac_ext <<EOF
e8f65ba6 6493#line 6494 "configure"
10f2d63a
VZ
6494#include "confdefs.h"
6495#include <termio.h>
6496Autoconf TCGETA
6497EOF
6498if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6499 egrep "$ac_pattern" >/dev/null 2>&1; then
6500 rm -rf conftest*
6501 ac_cv_prog_gcc_traditional=yes
6502fi
6503rm -f conftest*
6504
6505 fi
6506fi
6507
6508echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
6509 if test $ac_cv_prog_gcc_traditional = yes; then
6510 CC="$CC -traditional"
6511 fi
6512fi
6513
6514
6515
6516ac_ext=C
6517# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6518ac_cpp='$CXXCPP $CPPFLAGS'
6519ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6520ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6521cross_compiling=$ac_cv_prog_cxx_cross
6522
6523
6524for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
6525do
6526# Extract the first word of "$ac_prog", so it can be a program name with args.
6527set dummy $ac_prog; ac_word=$2
6528echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
e8f65ba6 6529echo "configure:6530: checking for $ac_word" >&5
10f2d63a
VZ
6530if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
6531 echo $ac_n "(cached) $ac_c" 1>&6
6532else
6533 if test -n "$CXX"; then
6534 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6535else
6536 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6537 ac_dummy="$PATH"
6538 for ac_dir in $ac_dummy; do
6539 test -z "$ac_dir" && ac_dir=.
6540 if test -f $ac_dir/$ac_word; then
6541 ac_cv_prog_CXX="$ac_prog"
6542 break
6543 fi
6544 done
6545 IFS="$ac_save_ifs"
6546fi
6547fi
6548CXX="$ac_cv_prog_CXX"
6549if test -n "$CXX"; then
6550 echo "$ac_t""$CXX" 1>&6
6551else
6552 echo "$ac_t""no" 1>&6
6553fi
6554
6555test -n "$CXX" && break
6556done
6557test -n "$CXX" || CXX="gcc"
6558
6559
6560echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
e8f65ba6 6561echo "configure:6562: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
10f2d63a
VZ
6562
6563ac_ext=C
6564# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6565ac_cpp='$CXXCPP $CPPFLAGS'
6566ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6567ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6568cross_compiling=$ac_cv_prog_cxx_cross
6569
6570cat > conftest.$ac_ext << EOF
6571
e8f65ba6 6572#line 6573 "configure"
10f2d63a
VZ
6573#include "confdefs.h"
6574
6575int main(){return(0);}
6576EOF
e8f65ba6 6577if { (eval echo configure:6578: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
6578 ac_cv_prog_cxx_works=yes
6579 # If we can't run a trivial program, we are probably using a cross compiler.
6580 if (./conftest; exit) 2>/dev/null; then
6581 ac_cv_prog_cxx_cross=no
6582 else
6583 ac_cv_prog_cxx_cross=yes
6584 fi
6585else
6586 echo "configure: failed program was:" >&5
6587 cat conftest.$ac_ext >&5
6588 ac_cv_prog_cxx_works=no
6589fi
6590rm -fr conftest*
6591ac_ext=C
6592# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6593ac_cpp='$CXXCPP $CPPFLAGS'
6594ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6595ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6596cross_compiling=$ac_cv_prog_cxx_cross
6597
6598echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
6599if test $ac_cv_prog_cxx_works = no; then
6600 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
6601fi
6602echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
e8f65ba6 6603echo "configure:6604: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
10f2d63a
VZ
6604echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
6605cross_compiling=$ac_cv_prog_cxx_cross
6606
6607echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
e8f65ba6 6608echo "configure:6609: checking whether we are using GNU C++" >&5
10f2d63a
VZ
6609if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
6610 echo $ac_n "(cached) $ac_c" 1>&6
6611else
6612 cat > conftest.C <<EOF
6613#ifdef __GNUC__
6614 yes;
6615#endif
6616EOF
e8f65ba6 6617if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:6618: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
10f2d63a
VZ
6618 ac_cv_prog_gxx=yes
6619else
6620 ac_cv_prog_gxx=no
6621fi
6622fi
6623
6624echo "$ac_t""$ac_cv_prog_gxx" 1>&6
6625
6626if test $ac_cv_prog_gxx = yes; then
6627 GXX=yes
6628else
6629 GXX=
6630fi
6631
6632ac_test_CXXFLAGS="${CXXFLAGS+set}"
6633ac_save_CXXFLAGS="$CXXFLAGS"
6634CXXFLAGS=
6635echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
e8f65ba6 6636echo "configure:6637: checking whether ${CXX-g++} accepts -g" >&5
10f2d63a
VZ
6637if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
6638 echo $ac_n "(cached) $ac_c" 1>&6
6639else
6640 echo 'void f(){}' > conftest.cc
6641if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
6642 ac_cv_prog_cxx_g=yes
6643else
6644 ac_cv_prog_cxx_g=no
6645fi
6646rm -f conftest*
6647
6648fi
6649
6650echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
6651if test "$ac_test_CXXFLAGS" = set; then
6652 CXXFLAGS="$ac_save_CXXFLAGS"
6653elif test $ac_cv_prog_cxx_g = yes; then
6654 if test "$GXX" = yes; then
6655 CXXFLAGS="-g -O2"
6656 else
6657 CXXFLAGS="-g"
6658 fi
6659else
6660 if test "$GXX" = yes; then
6661 CXXFLAGS="-O2"
6662 else
6663 CXXFLAGS=
6664 fi
6665fi
6666
6667
6668echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
e8f65ba6 6669echo "configure:6670: checking how to run the C++ preprocessor" >&5
10f2d63a
VZ
6670if test -z "$CXXCPP"; then
6671if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
6672 echo $ac_n "(cached) $ac_c" 1>&6
6673else
6674 ac_ext=C
6675# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6676ac_cpp='$CXXCPP $CPPFLAGS'
6677ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6678ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6679cross_compiling=$ac_cv_prog_cxx_cross
6680 CXXCPP="${CXX-g++} -E"
6681 cat > conftest.$ac_ext <<EOF
e8f65ba6 6682#line 6683 "configure"
10f2d63a
VZ
6683#include "confdefs.h"
6684#include <stdlib.h>
6685EOF
6686ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
e8f65ba6 6687{ (eval echo configure:6688: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
6688ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6689if test -z "$ac_err"; then
6690 :
6691else
6692 echo "$ac_err" >&5
6693 echo "configure: failed program was:" >&5
6694 cat conftest.$ac_ext >&5
6695 rm -rf conftest*
6696 CXXCPP=/lib/cpp
6697fi
6698rm -f conftest*
6699 ac_cv_prog_CXXCPP="$CXXCPP"
6700ac_ext=C
6701# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6702ac_cpp='$CXXCPP $CPPFLAGS'
6703ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6704ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6705cross_compiling=$ac_cv_prog_cxx_cross
6706fi
6707fi
6708CXXCPP="$ac_cv_prog_CXXCPP"
6709echo "$ac_t""$CXXCPP" 1>&6
6710
6711
6712CXXFLAGS=`echo "$CXXFLAGS" | sed 's/-g//g'`
6713
6714ac_ext=c
6715# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6716ac_cpp='$CPP $CPPFLAGS'
6717ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6718ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6719cross_compiling=$ac_cv_prog_cc_cross
6720
6721
6722# Extract the first word of "ranlib", so it can be a program name with args.
6723set dummy ranlib; ac_word=$2
6724echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
e8f65ba6 6725echo "configure:6726: checking for $ac_word" >&5
10f2d63a
VZ
6726if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
6727 echo $ac_n "(cached) $ac_c" 1>&6
6728else
6729 if test -n "$RANLIB"; then
6730 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6731else
6732 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6733 ac_dummy="$PATH"
6734 for ac_dir in $ac_dummy; do
6735 test -z "$ac_dir" && ac_dir=.
6736 if test -f $ac_dir/$ac_word; then
6737 ac_cv_prog_RANLIB="ranlib"
6738 break
6739 fi
6740 done
6741 IFS="$ac_save_ifs"
6742 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
6743fi
6744fi
6745RANLIB="$ac_cv_prog_RANLIB"
6746if test -n "$RANLIB"; then
6747 echo "$ac_t""$RANLIB" 1>&6
6748else
6749 echo "$ac_t""no" 1>&6
6750fi
6751
6752
6753# Extract the first word of "ar", so it can be a program name with args.
6754set dummy ar; ac_word=$2
6755echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
e8f65ba6 6756echo "configure:6757: checking for $ac_word" >&5
10f2d63a
VZ
6757if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
6758 echo $ac_n "(cached) $ac_c" 1>&6
6759else
6760 if test -n "$AR"; then
6761 ac_cv_prog_AR="$AR" # Let the user override the test.
6762else
6763 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6764 ac_dummy="$PATH"
6765 for ac_dir in $ac_dummy; do
6766 test -z "$ac_dir" && ac_dir=.
6767 if test -f $ac_dir/$ac_word; then
6768 ac_cv_prog_AR="ar"
6769 break
6770 fi
6771 done
6772 IFS="$ac_save_ifs"
6773 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
6774fi
6775fi
6776AR="$ac_cv_prog_AR"
6777if test -n "$AR"; then
6778 echo "$ac_t""$AR" 1>&6
6779else
6780 echo "$ac_t""no" 1>&6
6781fi
6782
6783
6784# Find a good install program. We prefer a C program (faster),
6785# so one script is as good as another. But avoid the broken or
6786# incompatible versions:
6787# SysV /etc/install, /usr/sbin/install
6788# SunOS /usr/etc/install
6789# IRIX /sbin/install
6790# AIX /bin/install
6791# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6792# AFS /usr/afsws/bin/install, which mishandles nonexistent args
6793# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6794# ./install, which can be erroneously created by make from ./install.sh.
6795echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
e8f65ba6 6796echo "configure:6797: checking for a BSD compatible install" >&5
10f2d63a
VZ
6797if test -z "$INSTALL"; then
6798if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
6799 echo $ac_n "(cached) $ac_c" 1>&6
6800else
6801 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
6802 for ac_dir in $PATH; do
6803 # Account for people who put trailing slashes in PATH elements.
6804 case "$ac_dir/" in
6805 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
6806 *)
6807 # OSF1 and SCO ODT 3.0 have their own names for install.
6808 # Don't use installbsd from OSF since it installs stuff as root
6809 # by default.
6810 for ac_prog in ginstall scoinst install; do
6811 if test -f $ac_dir/$ac_prog; then
6812 if test $ac_prog = install &&
6813 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
6814 # AIX install. It has an incompatible calling convention.
6815 :
6816 else
6817 ac_cv_path_install="$ac_dir/$ac_prog -c"
6818 break 2
6819 fi
6820 fi
6821 done
6822 ;;
6823 esac
6824 done
6825 IFS="$ac_save_IFS"
6826
6827fi
6828 if test "${ac_cv_path_install+set}" = set; then
6829 INSTALL="$ac_cv_path_install"
6830 else
6831 # As a last resort, use the slow shell script. We don't cache a
6832 # path for INSTALL within a source directory, because that will
6833 # break other packages using the cache if that directory is
6834 # removed, or if the path is relative.
6835 INSTALL="$ac_install_sh"
6836 fi
6837fi
6838echo "$ac_t""$INSTALL" 1>&6
6839
6840# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6841# It thinks the first close brace ends the variable substitution.
6842test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6843
6844test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
6845
6846test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6847
6848
6849# Extract the first word of "strip", so it can be a program name with args.
6850set dummy strip; ac_word=$2
6851echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
e8f65ba6 6852echo "configure:6853: checking for $ac_word" >&5
10f2d63a
VZ
6853if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
6854 echo $ac_n "(cached) $ac_c" 1>&6
6855else
6856 if test -n "$STRIP"; then
6857 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6858else
6859 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6860 ac_dummy="$PATH"
6861 for ac_dir in $ac_dummy; do
6862 test -z "$ac_dir" && ac_dir=.
6863 if test -f $ac_dir/$ac_word; then
6864 ac_cv_prog_STRIP="strip"
6865 break
6866 fi
6867 done
6868 IFS="$ac_save_ifs"
6869 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true"
6870fi
6871fi
6872STRIP="$ac_cv_prog_STRIP"
6873if test -n "$STRIP"; then
6874 echo "$ac_t""$STRIP" 1>&6
6875else
6876 echo "$ac_t""no" 1>&6
6877fi
6878
6879
6880echo $ac_n "checking "make for VPATH support"""... $ac_c" 1>&6
e8f65ba6 6881echo "configure:6882: checking "make for VPATH support"" >&5
10f2d63a
VZ
6882cat - << EOF > confMake
6883check : file
6884 cp \$? \$@
6885 cp \$? final_file
6886EOF
6887
6888if test ! -d sub ; then
6889 mkdir sub
6890fi
6891echo dummy > sub/file
f6bcfd97 6892${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
10f2d63a
VZ
6893RESULT=$?
6894rm -f sub/file check final_file confMake
6895rmdir sub
6896if test "$RESULT" = 0; then
6897 echo "$ac_t""yes" 1>&6
6898else
6899 echo "$ac_t""no" 1>&6
6900 { echo "configure: error: You need a make-utility that is able to use the variable
6901VPATH correctly.
6902If your version of make does not support VPATH correctly" 1>&2; exit 1; }
6903fi
6904
6905for ac_prog in 'bison -y' byacc
6906do
6907# Extract the first word of "$ac_prog", so it can be a program name with args.
6908set dummy $ac_prog; ac_word=$2
6909echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
e8f65ba6 6910echo "configure:6911: checking for $ac_word" >&5
10f2d63a
VZ
6911if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
6912 echo $ac_n "(cached) $ac_c" 1>&6
6913else
6914 if test -n "$YACC"; then
6915 ac_cv_prog_YACC="$YACC" # Let the user override the test.
6916else
6917 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6918 ac_dummy="$PATH"
6919 for ac_dir in $ac_dummy; do
6920 test -z "$ac_dir" && ac_dir=.
6921 if test -f $ac_dir/$ac_word; then
6922 ac_cv_prog_YACC="$ac_prog"
6923 break
6924 fi
6925 done
6926 IFS="$ac_save_ifs"
6927fi
6928fi
6929YACC="$ac_cv_prog_YACC"
6930if test -n "$YACC"; then
6931 echo "$ac_t""$YACC" 1>&6
6932else
6933 echo "$ac_t""no" 1>&6
6934fi
6935
6936test -n "$YACC" && break
6937done
6938test -n "$YACC" || YACC="yacc"
6939
6940
6941# Extract the first word of "flex", so it can be a program name with args.
6942set dummy flex; ac_word=$2
6943echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
e8f65ba6 6944echo "configure:6945: checking for $ac_word" >&5
10f2d63a
VZ
6945if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
6946 echo $ac_n "(cached) $ac_c" 1>&6
6947else
6948 if test -n "$LEX"; then
6949 ac_cv_prog_LEX="$LEX" # Let the user override the test.
6950else
6951 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6952 ac_dummy="$PATH"
6953 for ac_dir in $ac_dummy; do
6954 test -z "$ac_dir" && ac_dir=.
6955 if test -f $ac_dir/$ac_word; then
6956 ac_cv_prog_LEX="flex"
6957 break
6958 fi
6959 done
6960 IFS="$ac_save_ifs"
6961 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
6962fi
6963fi
6964LEX="$ac_cv_prog_LEX"
6965if test -n "$LEX"; then
6966 echo "$ac_t""$LEX" 1>&6
6967else
6968 echo "$ac_t""no" 1>&6
6969fi
6970
6971if test -z "$LEXLIB"
6972then
6973 case "$LEX" in
6974 flex*) ac_lib=fl ;;
6975 *) ac_lib=l ;;
6976 esac
6977 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
e8f65ba6 6978echo "configure:6979: checking for yywrap in -l$ac_lib" >&5
10f2d63a
VZ
6979ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
6980if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6981 echo $ac_n "(cached) $ac_c" 1>&6
6982else
6983 ac_save_LIBS="$LIBS"
6984LIBS="-l$ac_lib $LIBS"
6985cat > conftest.$ac_ext <<EOF
e8f65ba6 6986#line 6987 "configure"
10f2d63a
VZ
6987#include "confdefs.h"
6988/* Override any gcc2 internal prototype to avoid an error. */
6989/* We use char because int might match the return type of a gcc2
6990 builtin and then its argument prototype would still apply. */
6991char yywrap();
6992
6993int main() {
6994yywrap()
6995; return 0; }
6996EOF
e8f65ba6 6997if { (eval echo configure:6998: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
6998 rm -rf conftest*
6999 eval "ac_cv_lib_$ac_lib_var=yes"
7000else
7001 echo "configure: failed program was:" >&5
7002 cat conftest.$ac_ext >&5
7003 rm -rf conftest*
7004 eval "ac_cv_lib_$ac_lib_var=no"
7005fi
7006rm -f conftest*
7007LIBS="$ac_save_LIBS"
7008
7009fi
7010if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7011 echo "$ac_t""yes" 1>&6
7012 LEXLIB="-l$ac_lib"
7013else
7014 echo "$ac_t""no" 1>&6
7015fi
7016
7017fi
7018
7019
7020echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
e8f65ba6 7021echo "configure:7022: checking whether ln -s works" >&5
10f2d63a
VZ
7022if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
7023 echo $ac_n "(cached) $ac_c" 1>&6
7024else
7025 rm -f conftestdata
7026if ln -s X conftestdata 2>/dev/null
7027then
7028 rm -f conftestdata
7029 ac_cv_prog_LN_S="ln -s"
7030else
7031 ac_cv_prog_LN_S=ln
7032fi
7033fi
7034LN_S="$ac_cv_prog_LN_S"
7035if test "$ac_cv_prog_LN_S" = "ln -s"; then
7036 echo "$ac_t""yes" 1>&6
7037else
7038 echo "$ac_t""no" 1>&6
7039fi
7040
7041
7042
7043SEARCH_INCLUDE="\
7044 /usr/local/include \
7045 \
7046 /usr/Motif-1.2/include \
7047 /usr/Motif-2.1/include \
7048 \
7049 /usr/include/Motif1.2 \
7050 /opt/xpm/include/X11 \
7051 /opt/GBxpm/include/ \
7052 /opt/GBxpm/X11/include/ \
7053 \
7054 /usr/Motif1.2/include \
7055 /usr/dt/include \
afc31813
VZ
7056 /usr/openwin/include \
7057 \
10f2d63a
VZ
7058 /usr/include/Xm \
7059 \
7060 /usr/X11R6/include \
afc31813 7061 /usr/X11R6.4/include \
10f2d63a
VZ
7062 /usr/X11R5/include \
7063 /usr/X11R4/include \
7064 \
10f2d63a
VZ
7065 /usr/include/X11R6 \
7066 /usr/include/X11R5 \
7067 /usr/include/X11R4 \
7068 \
7069 /usr/local/X11R6/include \
7070 /usr/local/X11R5/include \
7071 /usr/local/X11R4/include \
7072 \
7073 /usr/local/include/X11R6 \
7074 /usr/local/include/X11R5 \
7075 /usr/local/include/X11R4 \
7076 \
7077 /usr/X11/include \
7078 /usr/include/X11 \
7079 /usr/local/X11/include \
7080 /usr/local/include/X11 \
7081 \
7082 /usr/X386/include \
7083 /usr/x386/include \
7084 /usr/XFree86/include/X11 \
7085 \
cf27ef00 7086 X:/XFree86/include \
ec14dd32
VZ
7087 X:/XFree86/include/X11 \
7088 \
10f2d63a
VZ
7089 /usr/include/gtk \
7090 /usr/local/include/gtk \
7091 /usr/include/glib \
7092 /usr/local/include/glib \
7093 \
7094 /usr/include/qt \
7095 /usr/local/include/qt \
7096 \
7097 /usr/include/windows \
7098 /usr/include/wine \
7099 /usr/local/include/wine \
7100 \
7101 /usr/unsupported/include \
7102 /usr/athena/include \
7103 /usr/local/x11r5/include \
7104 /usr/lpp/Xamples/include \
7105 \
10f2d63a 7106 /usr/openwin/share/include \
928b5c08
VZ
7107 \
7108 /usr/include"
10f2d63a
VZ
7109
7110SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s/include/lib/g` "
7111
7112
7113cat > confcache <<\EOF
7114# This file is a shell script that caches the results of configure
7115# tests run on this system so they can be shared between configure
7116# scripts and configure runs. It is not useful on other systems.
7117# If it contains results you don't want to keep, you may remove or edit it.
7118#
7119# By default, configure uses ./config.cache as the cache file,
7120# creating it if it does not exist already. You can give configure
7121# the --cache-file=FILE option to use a different cache file; that is
7122# what configure does when it calls configure scripts in
7123# subdirectories, so they share the cache.
7124# Giving --cache-file=/dev/null disables caching, for debugging configure.
7125# config.status only pays attention to the cache file if you give it the
7126# --recheck option to rerun configure.
7127#
7128EOF
7129# The following way of writing the cache mishandles newlines in values,
7130# but we know of no workaround that is simple, portable, and efficient.
7131# So, don't put newlines in cache variables' values.
7132# Ultrix sh set writes to stderr and can't be redirected directly,
7133# and sets the high bit in the cache file unless we assign to the vars.
7134(set) 2>&1 |
7135 case `(ac_space=' '; set | grep ac_space) 2>&1` in
7136 *ac_space=\ *)
7137 # `set' does not quote correctly, so add quotes (double-quote substitution
7138 # turns \\\\ into \\, and sed turns \\ into \).
7139 sed -n \
7140 -e "s/'/'\\\\''/g" \
7141 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
7142 ;;
7143 *)
7144 # `set' quotes correctly as required by POSIX, so do not add quotes.
7145 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
7146 ;;
7147 esac >> confcache
7148if cmp -s $cache_file confcache; then
7149 :
7150else
7151 if test -w $cache_file; then
7152 echo "updating cache $cache_file"
7153 cat confcache > $cache_file
7154 else
7155 echo "not updating unwritable cache $cache_file"
7156 fi
7157fi
7158rm -f confcache
7159
7160
7161
dad6c0ea
VZ
7162AFMINSTALL=
7163
10f2d63a
VZ
7164if test "$wxUSE_GUI" = "yes"; then
7165
dad6c0ea
VZ
7166USE_GUI=1
7167
10f2d63a
VZ
7168TOOLKIT=
7169TOOLKIT_INCLUDE=
7170
7171GUIOBJS=
7172COMMONOBJS=
7173GENERICOBJS=
7174
7175GUI_TK_LIBRARY=
7176GUI_TK_LINK=
7177
7178WXGTK12=
f6bcfd97 7179WXGTK127=
6f72b082 7180WXGTK20=
10f2d63a
VZ
7181
7182WXWINE=
7183
10f2d63a
VZ
7184if test "$wxUSE_CYGWIN" = 1 || test "$wxUSE_MINGW" = 1 ; then
7185 if test "$cross_compiling" = "yes" ; then
e59890c3 7186 echo "configure: warning: skipping windows.h check for cross-compilation" 1>&2
10f2d63a
VZ
7187 else
7188 echo $ac_n "checking for Windows headers""... $ac_c" 1>&6
e8f65ba6 7189echo "configure:7190: checking for Windows headers" >&5
10f2d63a
VZ
7190
7191ac_find_includes=
7192for ac_dir in $SEARCH_INCLUDE;
7193 do
7194 if test -f "$ac_dir/windows.h"; then
7195 ac_find_includes=$ac_dir
7196 break
7197 fi
7198 done
7199
7200 if test "$ac_find_includes" != "" ; then
7201 echo "$ac_t""found $ac_find_includes" 1>&6
7202 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE -I$ac_find_includes"
7203 else
7204 echo "$ac_t""no" 1>&6
7205 { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; }
7206 fi
7207 fi
7208
7209 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS msw"
7210 LIBS="$LIBS -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lctl3d32 -lcrtdll -ladvapi32 -lwsock32"
7211
f6bcfd97
BP
7212 if test "$wxUSE_ODBC" = "yes" ; then
7213 LIBS="$LIBS -lodbc32 -lole32 -loleaut32"
7214 fi
7215
10f2d63a
VZ
7216 if test "$wxUSE_MINGW" = 1; then
7217 LDFLAGS="$LDFLAGS -mwindows"
7218 fi
7219
7220 TOOLKIT=MSW
7221
7222 GUIOBJS="\$(MSW_GUIOBJS)"
7223 GUIHEADERS="\$(MSW_HEADERS)"
7224 COMMONOBJS="\$(MSW_COMMONOBJS)"
7225 GENERICOBJS="\$(MSW_GENERICOBJS)"
7226 UNIXOBJS=
7227 GUIDIST=MSW_DIST
32832908
VZ
7228
7229 RCINCSWITCH="--include-dir"
7230 RCDEFSWITCH="--define"
7231 RCPREPROCESSOR="--preprocessor \"\$(CC) -c -E -xc-header -DRC_INVOKED\""
7232 RCINPUTSWITCH="-i"
7233 RCOUTPUTSWITCH="-o"
7234 RESFLAGS="$RCPREPROCESSOR $RCINCSWITCH \$(top_srcdir)/include $RCINCSWITCH \$(top_srcdir)/\$(program_dir) $RCDEFSWITCH __WIN32__ $RCDEFSWITCH __WIN95__ $RCDEFSWITCH __GNUWIN32__"
7235
7236 RESPROGRAM="\$(RES_PROGRAM)"
7237
10f2d63a
VZ
7238fi
7239
7240if test "$wxUSE_GTK" = 1; then
6f72b082
OK
7241 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
7242if test "${with_gtk_prefix+set}" = set; then
7243 withval="$with_gtk_prefix"
7244 gtk_config_prefix="$withval"
7245else
7246 gtk_config_prefix=""
7247fi
7248
7249# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
7250if test "${with_gtk_exec_prefix+set}" = set; then
7251 withval="$with_gtk_exec_prefix"
7252 gtk_config_exec_prefix="$withval"
7253else
7254 gtk_config_exec_prefix=""
7255fi
7256
7257# Check whether --enable-gtktest or --disable-gtktest was given.
7258if test "${enable_gtktest+set}" = set; then
7259 enableval="$enable_gtktest"
7260 :
7261else
7262 enable_gtktest=yes
7263fi
7264
7265
7266 for module in . gthread
7267 do
7268 case "$module" in
7269 gthread)
7270 gtk_config_args="$gtk_config_args gthread"
7271 ;;
7272 esac
7273 done
7274
7275 if test x$gtk_config_exec_prefix != x ; then
7276 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
7277 if test x${GTK_CONFIG_2_0+set} != xset ; then
7278 GTK_CONFIG_2_0=$gtk_config_exec_prefix/bin/gtk-config-2.0
7279 fi
7280 fi
7281 if test x$gtk_config_prefix != x ; then
7282 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
7283 if test x${GTK_CONFIG_2_0+set} != xset ; then
7284 GTK_CONFIG_2_0=$gtk_config_prefix/bin/gtk-config-2.0
7285 fi
7286 fi
7287
7288 # Extract the first word of "gtk-config-2.0", so it can be a program name with args.
7289set dummy gtk-config-2.0; ac_word=$2
7290echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
e8f65ba6 7291echo "configure:7292: checking for $ac_word" >&5
6f72b082
OK
7292if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG_2_0'+set}'`\" = set"; then
7293 echo $ac_n "(cached) $ac_c" 1>&6
7294else
7295 case "$GTK_CONFIG_2_0" in
7296 /*)
7297 ac_cv_path_GTK_CONFIG_2_0="$GTK_CONFIG_2_0" # Let the user override the test with a path.
7298 ;;
7299 ?:/*)
7300 ac_cv_path_GTK_CONFIG_2_0="$GTK_CONFIG_2_0" # Let the user override the test with a dos path.
7301 ;;
7302 *)
7303 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7304 ac_dummy="$PATH"
7305 for ac_dir in $ac_dummy; do
7306 test -z "$ac_dir" && ac_dir=.
7307 if test -f $ac_dir/$ac_word; then
7308 ac_cv_path_GTK_CONFIG_2_0="$ac_dir/$ac_word"
7309 break
7310 fi
7311 done
7312 IFS="$ac_save_ifs"
7313 test -z "$ac_cv_path_GTK_CONFIG_2_0" && ac_cv_path_GTK_CONFIG_2_0="no"
7314 ;;
7315esac
7316fi
7317GTK_CONFIG_2_0="$ac_cv_path_GTK_CONFIG_2_0"
7318if test -n "$GTK_CONFIG_2_0"; then
7319 echo "$ac_t""$GTK_CONFIG_2_0" 1>&6
7320else
7321 echo "$ac_t""no" 1>&6
7322fi
7323
7324 min_gtk_version=1.3.1
7325 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
e8f65ba6 7326echo "configure:7327: checking for GTK - version >= $min_gtk_version" >&5
6f72b082
OK
7327 no_gtk=""
7328 if test "$GTK_CONFIG_2_0" = "no" ; then
7329 no_gtk=yes
7330 else
7331 GTK_CFLAGS=`$GTK_CONFIG_2_0 $gtk_config_args --cflags`
7332 GTK_LIBS=`$GTK_CONFIG_2_0 $gtk_config_args --libs`
7333 gtk_config_major_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \
7334 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
7335 gtk_config_minor_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \
7336 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
7337 gtk_config_micro_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \
7338 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
7339 if test "x$enable_gtktest" = "xyes" ; then
7340 ac_save_CFLAGS="$CFLAGS"
7341 ac_save_LIBS="$LIBS"
7342 CFLAGS="$CFLAGS $GTK_CFLAGS"
7343 LIBS="$GTK_LIBS $LIBS"
7344 rm -f conf.gtktest
7345 if test "$cross_compiling" = yes; then
7346 echo $ac_n "cross compiling; assumed OK... $ac_c"
7347else
7348 cat > conftest.$ac_ext <<EOF
e8f65ba6 7349#line 7350 "configure"
6f72b082
OK
7350#include "confdefs.h"
7351
7352#include <gtk/gtk.h>
7353#include <stdio.h>
7354#include <stdlib.h>
7355
7356int
7357main ()
7358{
7359 int major, minor, micro;
7360 char *tmp_version;
7361
7362 system ("touch conf.gtktest");
7363
7364 /* HP/UX 9 (%@#!) writes to sscanf strings */
7365 tmp_version = g_strdup("$min_gtk_version");
7366 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
7367 printf("%s, bad version string\n", "$min_gtk_version");
7368 exit(1);
7369 }
7370
7371 if ((gtk_major_version != $gtk_config_major_version) ||
7372 (gtk_minor_version != $gtk_config_minor_version) ||
7373 (gtk_micro_version != $gtk_config_micro_version))
7374 {
7375 printf("\n*** 'gtk-config-2.0 --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
7376 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
7377 gtk_major_version, gtk_minor_version, gtk_micro_version);
7378 printf ("*** was found! If gtk-config-2.0 was correct, then it is best\n");
7379 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
7380 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
7381 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
7382 printf("*** required on your system.\n");
7383 printf("*** If gtk-config-2.0 was wrong, set the environment variable GTK_CONFIG_2_0\n");
7384 printf("*** to point to the correct copy of gtk-config-2.0, and remove the file config.cache\n");
7385 printf("*** before re-running configure\n");
7386 }
7387#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
7388 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
7389 (gtk_minor_version != GTK_MINOR_VERSION) ||
7390 (gtk_micro_version != GTK_MICRO_VERSION))
7391 {
7392 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
7393 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
7394 printf("*** library (version %d.%d.%d)\n",
7395 gtk_major_version, gtk_minor_version, gtk_micro_version);
7396 }
7397#endif /* defined (GTK_MAJOR_VERSION) ... */
7398 else
7399 {
7400 if ((gtk_major_version > major) ||
7401 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
7402 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
7403 {
7404 return 0;
7405 }
7406 else
7407 {
7408 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
7409 gtk_major_version, gtk_minor_version, gtk_micro_version);
7410 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
7411 major, minor, micro);
7412 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
7413 printf("***\n");
7414 printf("*** If you have already installed a sufficiently new version, this error\n");
7415 printf("*** probably means that the wrong copy of the gtk-config-2.0 shell script is\n");
7416 printf("*** being found. The easiest way to fix this is to remove the old version\n");
7417 printf("*** of GTK+, but you can also set the GTK_CONFIG_2_0 environment to point to the\n");
7418 printf("*** correct copy of gtk-config-2.0. (In this case, you will have to\n");
7419 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
7420 printf("*** so that the correct libraries are found at run-time))\n");
7421 }
7422 }
7423 return 1;
7424}
7425
7426EOF
e8f65ba6 7427if { (eval echo configure:7428: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6f72b082
OK
7428then
7429 :
7430else
7431 echo "configure: failed program was:" >&5
7432 cat conftest.$ac_ext >&5
7433 rm -fr conftest*
7434 no_gtk=yes
7435fi
7436rm -fr conftest*
7437fi
7438
7439 CFLAGS="$ac_save_CFLAGS"
7440 LIBS="$ac_save_LIBS"
7441 fi
7442 fi
7443 if test "x$no_gtk" = x ; then
7444 echo "$ac_t""yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" 1>&6
7445 WXGTK20=1
7446 else
7447 echo "$ac_t""no" 1>&6
7448 if test "$GTK_CONFIG_2_0" = "no" ; then
7449 echo "*** The gtk-config-2.0 script installed by GTK could not be found"
7450 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
7451 echo "*** your path, or set the GTK_CONFIG_2_0 environment variable to the"
7452 echo "*** full path to gtk-config-2.0."
7453 else
7454 if test -f conf.gtktest ; then
7455 :
7456 else
7457 echo "*** Could not run GTK test program, checking why..."
7458 CFLAGS="$CFLAGS $GTK_CFLAGS"
7459 LIBS="$LIBS $GTK_LIBS"
7460 cat > conftest.$ac_ext <<EOF
e8f65ba6 7461#line 7462 "configure"
6f72b082
OK
7462#include "confdefs.h"
7463
7464#include <gtk/gtk.h>
7465#include <stdio.h>
7466
7467int main() {
7468 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
7469; return 0; }
7470EOF
e8f65ba6 7471if { (eval echo configure:7472: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6f72b082
OK
7472 rm -rf conftest*
7473 echo "*** The test program compiled, but did not run. This usually means"
7474 echo "*** that the run-time linker is not finding GTK or finding the wrong"
7475 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
7476 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
7477 echo "*** to the installed location Also, make sure you have run ldconfig if that"
7478 echo "*** is required on your system"
7479 echo "***"
7480 echo "*** If you have an old version installed, it is best to remove it, although"
7481 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
7482 echo "***"
7483 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
7484 echo "*** came with the system with the command"
7485 echo "***"
7486 echo "*** rpm --erase --nodeps gtk gtk-devel"
7487else
7488 echo "configure: failed program was:" >&5
7489 cat conftest.$ac_ext >&5
7490 rm -rf conftest*
7491 echo "*** The test program failed to compile or link. See the file config.log for the"
7492 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
7493 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
7494 echo "*** may want to edit the gtk-config-2.0 script: $GTK_CONFIG_2_0"
7495fi
7496rm -f conftest*
7497 CFLAGS="$ac_save_CFLAGS"
7498 LIBS="$ac_save_LIBS"
7499 fi
7500 fi
7501 GTK_CFLAGS=""
7502 GTK_LIBS=""
7503
7504
10f2d63a
VZ
7505 if test x$gtk_config_exec_prefix != x ; then
7506 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
7507 if test x${GTK_CONFIG+set} != xset ; then
7508 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
7509 fi
7510 fi
7511 if test x$gtk_config_prefix != x ; then
7512 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
7513 if test x${GTK_CONFIG+set} != xset ; then
7514 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
7515 fi
7516 fi
7517
7518 # Extract the first word of "gtk-config", so it can be a program name with args.
7519set dummy gtk-config; ac_word=$2
7520echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
e8f65ba6 7521echo "configure:7522: checking for $ac_word" >&5
f6bcfd97
BP
7522if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
7523 echo $ac_n "(cached) $ac_c" 1>&6
7524else
7525 case "$GTK_CONFIG" in
7526 /*)
7527 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
7528 ;;
7529 ?:/*)
7530 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
7531 ;;
7532 *)
7533 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7534 ac_dummy="$PATH"
7535 for ac_dir in $ac_dummy; do
7536 test -z "$ac_dir" && ac_dir=.
7537 if test -f $ac_dir/$ac_word; then
7538 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
7539 break
7540 fi
7541 done
7542 IFS="$ac_save_ifs"
7543 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
7544 ;;
7545esac
7546fi
7547GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
7548if test -n "$GTK_CONFIG"; then
7549 echo "$ac_t""$GTK_CONFIG" 1>&6
7550else
7551 echo "$ac_t""no" 1>&6
7552fi
7553
7554 min_gtk_version=1.2.7
7555 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
e8f65ba6 7556echo "configure:7557: checking for GTK - version >= $min_gtk_version" >&5
f6bcfd97
BP
7557 no_gtk=""
7558 if test "$GTK_CONFIG" != "no" ; then
7559 GTK_CFLAGS=`$GTK_CONFIG --cflags`
7560 GTK_LIBS=`$GTK_CONFIG --libs gthread`
7561 ac_save_CFLAGS="$CFLAGS"
7562 ac_save_LIBS="$LIBS"
7563 CFLAGS="$CFLAGS $GTK_CFLAGS"
7564 LIBS="$LIBS $GTK_LIBS"
7565 if test "$cross_compiling" = yes; then
7566 echo $ac_n "cross compiling; assumed OK... $ac_c"
7567else
7568 cat > conftest.$ac_ext <<EOF
e8f65ba6 7569#line 7570 "configure"
f6bcfd97
BP
7570#include "confdefs.h"
7571
7572#include <gtk/gtk.h>
7573#include <gtk/gtkfeatures.h>
7574#include <stdio.h>
7575#include <stdlib.h>
7576
7577int
7578main ()
7579{
7580 int major, minor, micro;
7581
7582 if (sscanf("$min_gtk_version", "%d.%d.%d", &major, &minor, &micro) != 3) {
7583 printf("%s, bad version string\n", "$min_gtk_version");
7584 exit(1);
7585 }
7586
7587 if ((GTK_MAJOR_VERSION != gtk_major_version) ||
7588 (GTK_MINOR_VERSION != gtk_minor_version) ||
7589 (GTK_MICRO_VERSION != gtk_micro_version)) {
7590 printf("Headers vs. library version mismatch!\n");
7591 exit(1);
7592 }
7593
7594 if (gtk_minor_version == 1) return FALSE;
7595
7596 return !((gtk_major_version > major) ||
7597 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
7598 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)));
7599}
7600
7601EOF
e8f65ba6 7602if { (eval echo configure:7603: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
f6bcfd97
BP
7603then
7604 :
7605else
7606 echo "configure: failed program was:" >&5
7607 cat conftest.$ac_ext >&5
7608 rm -fr conftest*
7609 no_gtk=yes
7610fi
7611rm -fr conftest*
7612fi
7613
7614 CFLAGS="$ac_save_CFLAGS"
7615 LIBS="$ac_save_LIBS"
7616 else
7617 no_gtk=yes
7618 fi
7619 if test "x$no_gtk" = x ; then
7620 echo "$ac_t""yes" 1>&6
7621 WXGTK127=1
7622 else
7623 echo "$ac_t""no" 1>&6
7624 GTK_CFLAGS=""
7625 GTK_LIBS=""
7626 :
7627 fi
7628
7629
7630
6f72b082 7631
f6bcfd97
BP
7632 if test x$gtk_config_exec_prefix != x ; then
7633 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
7634 if test x${GTK_CONFIG+set} != xset ; then
7635 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
7636 fi
7637 fi
7638 if test x$gtk_config_prefix != x ; then
7639 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
7640 if test x${GTK_CONFIG+set} != xset ; then
7641 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
7642 fi
7643 fi
7644
7645 # Extract the first word of "gtk-config", so it can be a program name with args.
7646set dummy gtk-config; ac_word=$2
7647echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
e8f65ba6 7648echo "configure:7649: checking for $ac_word" >&5
10f2d63a
VZ
7649if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
7650 echo $ac_n "(cached) $ac_c" 1>&6
7651else
7652 case "$GTK_CONFIG" in
7653 /*)
7654 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
7655 ;;
7656 ?:/*)
7657 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
7658 ;;
7659 *)
7660 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7661 ac_dummy="$PATH"
7662 for ac_dir in $ac_dummy; do
7663 test -z "$ac_dir" && ac_dir=.
7664 if test -f $ac_dir/$ac_word; then
7665 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
7666 break
7667 fi
7668 done
7669 IFS="$ac_save_ifs"
7670 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
7671 ;;
7672esac
7673fi
7674GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
7675if test -n "$GTK_CONFIG"; then
7676 echo "$ac_t""$GTK_CONFIG" 1>&6
7677else
7678 echo "$ac_t""no" 1>&6
7679fi
7680
04165bec 7681 min_gtk_version=1.2.3
10f2d63a 7682 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
e8f65ba6 7683echo "configure:7684: checking for GTK - version >= $min_gtk_version" >&5
10f2d63a
VZ
7684 no_gtk=""
7685 if test "$GTK_CONFIG" != "no" ; then
7686 GTK_CFLAGS=`$GTK_CONFIG --cflags`
2224580a 7687 GTK_LIBS=`$GTK_CONFIG --libs gthread`
10f2d63a
VZ
7688 ac_save_CFLAGS="$CFLAGS"
7689 ac_save_LIBS="$LIBS"
7690 CFLAGS="$CFLAGS $GTK_CFLAGS"
7691 LIBS="$LIBS $GTK_LIBS"
7692 if test "$cross_compiling" = yes; then
7693 echo $ac_n "cross compiling; assumed OK... $ac_c"
7694else
7695 cat > conftest.$ac_ext <<EOF
e8f65ba6 7696#line 7697 "configure"
10f2d63a
VZ
7697#include "confdefs.h"
7698
7699#include <gtk/gtk.h>
f49f2b0c 7700#include <gtk/gtkfeatures.h>
10f2d63a 7701#include <stdio.h>
32832908 7702#include <stdlib.h>
10f2d63a
VZ
7703
7704int
7705main ()
7706{
7707 int major, minor, micro;
7708
7709 if (sscanf("$min_gtk_version", "%d.%d.%d", &major, &minor, &micro) != 3) {
7710 printf("%s, bad version string\n", "$min_gtk_version");
7711 exit(1);
7712 }
7713
f49f2b0c
RR
7714 if ((GTK_MAJOR_VERSION != gtk_major_version) ||
7715 (GTK_MINOR_VERSION != gtk_minor_version) ||
7716 (GTK_MICRO_VERSION != gtk_micro_version)) {
7717 printf("Headers vs. library version mismatch!\n");
7718 exit(1);
7719 }
7720
10f2d63a
VZ
7721 if (gtk_minor_version == 1) return FALSE;
7722
7723 return !((gtk_major_version > major) ||
7724 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
7725 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)));
7726}
7727
7728EOF
e8f65ba6 7729if { (eval echo configure:7730: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10f2d63a
VZ
7730then
7731 :
7732else
7733 echo "configure: failed program was:" >&5
7734 cat conftest.$ac_ext >&5
7735 rm -fr conftest*
7736 no_gtk=yes
7737fi
7738rm -fr conftest*
7739fi
7740
7741 CFLAGS="$ac_save_CFLAGS"
7742 LIBS="$ac_save_LIBS"
7743 else
7744 no_gtk=yes
7745 fi
7746 if test "x$no_gtk" = x ; then
7747 echo "$ac_t""yes" 1>&6
7748 WXGTK12=1
7749 else
7750 echo "$ac_t""no" 1>&6
7751 GTK_CFLAGS=""
7752 GTK_LIBS=""
7e99ad86 7753 :
10f2d63a
VZ
7754 fi
7755
7756
7757
6f72b082
OK
7758
7759 fi
7760
7761
7762 rm -f conf.gtktest
7763
10f2d63a 7764
6f72b082 7765 if test "$WXGTK12" != 1 -a "$WXGTK20" != 1; then
7e99ad86
VZ
7766 { echo "configure: error:
7767 Please check that gtk-config is in path, the directory
7768 where GTK+ libraries are installed (returned by
7769 'gtk-config --libs' command) is in LD_LIBRARY_PATH or
7770 equivalent variable and GTK+ is version 1.2.3 or above.
7771 " 1>&2; exit 1; }
7772 fi
7773
10f2d63a 7774 TOOLKIT_INCLUDE="$GTK_CFLAGS"
2224580a
VZ
7775
7776
7777 GUI_TK_LIBRARY="$GTK_LIBS"
7778
10f2d63a
VZ
7779 TOOLKIT=GTK
7780
dad6c0ea
VZ
7781 AFMINSTALL=afminstall
7782
10f2d63a
VZ
7783 GUIOBJS="\$(GTK_GUIOBJS)"
7784 GUIHEADERS="\$(GTK_HEADERS)"
7785 COMMONOBJS="\$(GTK_COMMONOBJS)"
7786 GENERICOBJS="\$(GTK_GENERICOBJS)"
7787 GUIDEPS="\$(GTK_GUIDEPS)"
7788 COMMONDEPS="\$(GTK_COMMONDEPS)"
7789 GENERICDEPS="\$(GTK_GENERICDEPS)"
7790 UNIXOBJS="\$(UNIX_OBJS)"
d9d8273d 7791 UNIXDEPS="\$(UNIX_DEPS)"
10f2d63a 7792 GUIDIST=GTK_DIST
7ec2881a 7793
2224580a 7794 echo $ac_n "checking for gdk_im_open in -lgdk""... $ac_c" 1>&6
e8f65ba6 7795echo "configure:7796: checking for gdk_im_open in -lgdk" >&5
7ec2881a
RR
7796ac_lib_var=`echo gdk'_'gdk_im_open | sed 'y%./+-%__p_%'`
7797if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7798 echo $ac_n "(cached) $ac_c" 1>&6
7799else
7800 ac_save_LIBS="$LIBS"
7801LIBS="-lgdk $LIBS"
7802cat > conftest.$ac_ext <<EOF
e8f65ba6 7803#line 7804 "configure"
7ec2881a
RR
7804#include "confdefs.h"
7805/* Override any gcc2 internal prototype to avoid an error. */
7806/* We use char because int might match the return type of a gcc2
7807 builtin and then its argument prototype would still apply. */
7808char gdk_im_open();
7809
7810int main() {
7811gdk_im_open()
7812; return 0; }
7813EOF
e8f65ba6 7814if { (eval echo configure:7815: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7ec2881a
RR
7815 rm -rf conftest*
7816 eval "ac_cv_lib_$ac_lib_var=yes"
7817else
7818 echo "configure: failed program was:" >&5
7819 cat conftest.$ac_ext >&5
7820 rm -rf conftest*
7821 eval "ac_cv_lib_$ac_lib_var=no"
7822fi
7823rm -f conftest*
7824LIBS="$ac_save_LIBS"
7825
7826fi
7827if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7828 echo "$ac_t""yes" 1>&6
7829 cat >> confdefs.h <<\EOF
7830#define HAVE_XIM 1
7831EOF
7832
7833else
7834 echo "$ac_t""no" 1>&6
7835fi
7836
10f2d63a
VZ
7837fi
7838
7839if test "$wxUSE_WINE" = 1; then
7840 echo $ac_n "checking for WINE includes""... $ac_c" 1>&6
e8f65ba6 7841echo "configure:7842: checking for WINE includes" >&5
10f2d63a
VZ
7842
7843ac_find_includes=
7844for ac_dir in $SEARCH_INCLUDE;
7845 do
7846 if test -f "$ac_dir/windows.h"; then
7847 ac_find_includes=$ac_dir
7848 break
7849 fi
7850 done
7851
7852 if test "$ac_find_includes" != "" ; then
7853 echo "$ac_t""found $ac_find_includes" 1>&6
7854 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE -I$ac_find_includes"
7855 else
7856 echo "$ac_t""no" 1>&6
7857 { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; }
7858 fi
7859
7860 XPM_LINK=""
7861 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
e8f65ba6 7862echo "configure:7863: checking for Xpm library" >&5
10f2d63a
VZ
7863
7864ac_find_libraries=
7865for ac_dir in $SEARCH_LIB;
7866 do
7867 for ac_extension in a so sl; do
7868 if test -f "$ac_dir/libXpm.$ac_extension"; then
7869 ac_find_libraries=$ac_dir
7870 break 2
7871 fi
7872 done
7873 done
7874
7875 if test "$ac_find_libraries" != "" ; then
7876 GUI_TK_LIBRARY="-L$ac_find_libraries"
7877 XPM_LINK="-lXpm"
7878 cat >> confdefs.h <<\EOF
7879#define wxHAVE_LIB_XPM 1
7880EOF
7881
7882 echo "$ac_t""found at $ac_find_libraries" 1>&6
7883 else
7884 echo "$ac_t""no" 1>&6
7885 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
7886 fi
7887
7888 MESA_LINK=""
7889 echo $ac_n "checking for Mesa library""... $ac_c" 1>&6
e8f65ba6 7890echo "configure:7891: checking for Mesa library" >&5
10f2d63a
VZ
7891
7892ac_find_libraries=
7893for ac_dir in $SEARCH_LIB;
7894 do
7895 for ac_extension in a so sl; do
7896 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
7897 ac_find_libraries=$ac_dir
7898 break 2
7899 fi
7900 done
7901 done
7902
7903 if test "$ac_find_libraries" != "" ; then
7904 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -L$ac_find_libraries"
7905 MESA_LINK="-lMesaGL"
7906 echo "$ac_t""found at $ac_find_libraries" 1>&6
7907 else
7908 { echo "configure: error: no" 1>&2; exit 1; }
7909 fi
7910
8916026b 7911 GUI_TK_LINK="-lwine $MESA_LINK $XPM_LINK -lXxf86dga -lXxf86vm -lSM -lICE -lXext -lXmu -lX11 -lncurses"
10f2d63a
VZ
7912 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $GUI_TK_LINK"
7913 WXWINE=1
7914 TOOLKIT=MSW
7915
7916 GUIHEADERS="\$(MSW_HEADERS)"
7917 GUIOBJS="\$(MSW_GUIOBJS)"
7918 COMMONOBJS="\$(MSW_COMMONOBJS)"
7919 GENERICOBJS="\$(MSW_GENERICOBJS)"
7920 GUIDEPS="\$(MSW_GUIDEPS)"
7921 COMMONDEPS="\$(MSW_COMMONDEPS)"
7922 GENERICDEPS="\$(MSW_GENERICDEPS)"
7923 UNIXOBJS="\$(UNIX_OBJS)"
d9d8273d 7924 UNIXDEPS="\$(UNIX_DEPS)"
10f2d63a
VZ
7925 GUIDIST=MSW_DIST
7926fi
7927
37d403aa
JS
7928
7929# If we find X, set shell vars x_includes and x_libraries to the
ab9b9eab
VZ
7930# paths, otherwise set no_x=yes.
7931# Uses ac_ vars as temps to allow command line to override cache and checks.
7932# --without-x overrides everything else, but does not touch the cache.
7933echo $ac_n "checking for X""... $ac_c" 1>&6
e8f65ba6 7934echo "configure:7935: checking for X" >&5
ab9b9eab
VZ
7935
7936# Check whether --with-x or --without-x was given.
7937if test "${with_x+set}" = set; then
7938 withval="$with_x"
7939 :
7940fi
ba337fe7 7941
ab9b9eab
VZ
7942# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7943if test "x$with_x" = xno; then
7944 # The user explicitly disabled X.
7945 have_x=disabled
7946else
7947 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
7948 # Both variables are already set.
7949 have_x=yes
7950 else
7951if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
7952 echo $ac_n "(cached) $ac_c" 1>&6
7953else
7954 # One or both of the vars are not set, and there is no cached value.
7955ac_x_includes=NO ac_x_libraries=NO
7956rm -fr conftestdir
7957if mkdir conftestdir; then
7958 cd conftestdir
7959 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
7960 cat > Imakefile <<'EOF'
7961acfindx:
7962 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
7963EOF
7964 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
7965 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7966 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
7967 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
10f2d63a 7968 for ac_extension in a so sl; do
ab9b9eab
VZ
7969 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
7970 test -f $ac_im_libdir/libX11.$ac_extension; then
7971 ac_im_usrlibdir=$ac_im_libdir; break
10f2d63a
VZ
7972 fi
7973 done
ab9b9eab
VZ
7974 # Screen out bogus values from the imake configuration. They are
7975 # bogus both because they are the default anyway, and because
7976 # using them would break gcc on systems where it needs fixed includes.
7977 case "$ac_im_incroot" in
7978 /usr/include) ;;
7979 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
7980 esac
7981 case "$ac_im_usrlibdir" in
7982 /usr/lib | /lib) ;;
7983 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
7984 esac
ba337fe7 7985 fi
ab9b9eab
VZ
7986 cd ..
7987 rm -fr conftestdir
7988fi
10f2d63a 7989
ab9b9eab
VZ
7990if test "$ac_x_includes" = NO; then
7991 # Guess where to find include files, by looking for this one X11 .h file.
7992 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
ba337fe7 7993
ab9b9eab
VZ
7994 # First, try using that file with no special directory specified.
7995cat > conftest.$ac_ext <<EOF
e8f65ba6 7996#line 7997 "configure"
ab9b9eab
VZ
7997#include "confdefs.h"
7998#include <$x_direct_test_include>
7999EOF
8000ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
e8f65ba6 8001{ (eval echo configure:8002: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ab9b9eab
VZ
8002ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8003if test -z "$ac_err"; then
8004 rm -rf conftest*
8005 # We can compile using X headers with no special include directory.
8006ac_x_includes=
8007else
8008 echo "$ac_err" >&5
8009 echo "configure: failed program was:" >&5
8010 cat conftest.$ac_ext >&5
8011 rm -rf conftest*
8012 # Look for the header file in a standard set of common directories.
8013# Check X11 before X11Rn because it is often a symlink to the current release.
8014 for ac_dir in \
8015 /usr/X11/include \
8016 /usr/X11R6/include \
8017 /usr/X11R5/include \
8018 /usr/X11R4/include \
8019 \
8020 /usr/include/X11 \
8021 /usr/include/X11R6 \
8022 /usr/include/X11R5 \
8023 /usr/include/X11R4 \
8024 \
8025 /usr/local/X11/include \
8026 /usr/local/X11R6/include \
8027 /usr/local/X11R5/include \
8028 /usr/local/X11R4/include \
8029 \
8030 /usr/local/include/X11 \
8031 /usr/local/include/X11R6 \
8032 /usr/local/include/X11R5 \
8033 /usr/local/include/X11R4 \
8034 \
8035 /usr/X386/include \
8036 /usr/x386/include \
8037 /usr/XFree86/include/X11 \
8038 \
8039 /usr/include \
8040 /usr/local/include \
8041 /usr/unsupported/include \
8042 /usr/athena/include \
8043 /usr/local/x11r5/include \
8044 /usr/lpp/Xamples/include \
8045 \
8046 /usr/openwin/include \
8047 /usr/openwin/share/include \
8048 ; \
10f2d63a 8049 do
ab9b9eab
VZ
8050 if test -r "$ac_dir/$x_direct_test_include"; then
8051 ac_x_includes=$ac_dir
10f2d63a
VZ
8052 break
8053 fi
8054 done
ab9b9eab
VZ
8055fi
8056rm -f conftest*
8057fi # $ac_x_includes = NO
10f2d63a 8058
ab9b9eab
VZ
8059if test "$ac_x_libraries" = NO; then
8060 # Check for the libraries.
10f2d63a 8061
ab9b9eab
VZ
8062 test -z "$x_direct_test_library" && x_direct_test_library=Xt
8063 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
10f2d63a 8064
ab9b9eab
VZ
8065 # See if we find them without any special options.
8066 # Don't add to $LIBS permanently.
8067 ac_save_LIBS="$LIBS"
8068 LIBS="-l$x_direct_test_library $LIBS"
8069cat > conftest.$ac_ext <<EOF
e8f65ba6 8070#line 8071 "configure"
ab9b9eab 8071#include "confdefs.h"
10f2d63a 8072
ab9b9eab
VZ
8073int main() {
8074${x_direct_test_function}()
8075; return 0; }
8076EOF
e8f65ba6 8077if { (eval echo configure:8078: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
8078 rm -rf conftest*
8079 LIBS="$ac_save_LIBS"
8080# We can link X programs with no special library path.
8081ac_x_libraries=
8082else
8083 echo "configure: failed program was:" >&5
8084 cat conftest.$ac_ext >&5
8085 rm -rf conftest*
8086 LIBS="$ac_save_LIBS"
8087# First see if replacing the include by lib works.
8088# Check X11 before X11Rn because it is often a symlink to the current release.
8089for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
8090 /usr/X11/lib \
8091 /usr/X11R6/lib \
8092 /usr/X11R5/lib \
8093 /usr/X11R4/lib \
8094 \
8095 /usr/lib/X11 \
8096 /usr/lib/X11R6 \
8097 /usr/lib/X11R5 \
8098 /usr/lib/X11R4 \
8099 \
8100 /usr/local/X11/lib \
8101 /usr/local/X11R6/lib \
8102 /usr/local/X11R5/lib \
8103 /usr/local/X11R4/lib \
8104 \
8105 /usr/local/lib/X11 \
8106 /usr/local/lib/X11R6 \
8107 /usr/local/lib/X11R5 \
8108 /usr/local/lib/X11R4 \
8109 \
8110 /usr/X386/lib \
8111 /usr/x386/lib \
8112 /usr/XFree86/lib/X11 \
8113 \
8114 /usr/lib \
8115 /usr/local/lib \
8116 /usr/unsupported/lib \
8117 /usr/athena/lib \
8118 /usr/local/x11r5/lib \
8119 /usr/lpp/Xamples/lib \
8120 /lib/usr/lib/X11 \
8121 \
8122 /usr/openwin/lib \
8123 /usr/openwin/share/lib \
8124 ; \
8125do
8126 for ac_extension in a so sl; do
8127 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
8128 ac_x_libraries=$ac_dir
8129 break 2
10f2d63a 8130 fi
10f2d63a 8131 done
ab9b9eab
VZ
8132done
8133fi
8134rm -f conftest*
8135fi # $ac_x_libraries = NO
10f2d63a 8136
ab9b9eab
VZ
8137if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
8138 # Didn't find X anywhere. Cache the known absence of X.
8139 ac_cv_have_x="have_x=no"
8140else
8141 # Record where we found X for the cache.
8142 ac_cv_have_x="have_x=yes \
8143 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
8144fi
8145fi
10f2d63a 8146 fi
ab9b9eab
VZ
8147 eval "$ac_cv_have_x"
8148fi # $with_x != no
10f2d63a 8149
ab9b9eab
VZ
8150if test "$have_x" != yes; then
8151 echo "$ac_t""$have_x" 1>&6
8152 no_x=yes
8153else
8154 # If each of the values was on the command line, it overrides each guess.
8155 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
8156 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
8157 # Update the cache value to reflect the command line values.
8158 ac_cv_have_x="have_x=yes \
8159 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
8160 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
8161fi
10f2d63a 8162
ab9b9eab
VZ
8163if test "$no_x" = yes; then
8164 # Not all programs may use this symbol, but it does not hurt to define it.
8165 cat >> confdefs.h <<\EOF
8166#define X_DISPLAY_MISSING 1
8167EOF
10f2d63a 8168
ab9b9eab
VZ
8169 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
8170else
8171 if test -n "$x_includes"; then
8172 X_CFLAGS="$X_CFLAGS -I$x_includes"
10f2d63a
VZ
8173 fi
8174
ab9b9eab
VZ
8175 # It would also be nice to do this for all -L options, not just this one.
8176 if test -n "$x_libraries"; then
8177 X_LIBS="$X_LIBS -L$x_libraries"
8178 # For Solaris; some versions of Sun CC require a space after -R and
8179 # others require no space. Words are not sufficient . . . .
8180 case "`(uname -sr) 2>/dev/null`" in
8181 "SunOS 5"*)
8182 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
e8f65ba6 8183echo "configure:8184: checking whether -R must be followed by a space" >&5
ab9b9eab
VZ
8184 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
8185 cat > conftest.$ac_ext <<EOF
e8f65ba6 8186#line 8187 "configure"
ab9b9eab 8187#include "confdefs.h"
10f2d63a 8188
ab9b9eab 8189int main() {
788deba1 8190
ab9b9eab
VZ
8191; return 0; }
8192EOF
e8f65ba6 8193if { (eval echo configure:8194: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
8194 rm -rf conftest*
8195 ac_R_nospace=yes
8196else
8197 echo "configure: failed program was:" >&5
8198 cat conftest.$ac_ext >&5
8199 rm -rf conftest*
8200 ac_R_nospace=no
8201fi
8202rm -f conftest*
8203 if test $ac_R_nospace = yes; then
8204 echo "$ac_t""no" 1>&6
8205 X_LIBS="$X_LIBS -R$x_libraries"
8206 else
8207 LIBS="$ac_xsave_LIBS -R $x_libraries"
8208 cat > conftest.$ac_ext <<EOF
e8f65ba6 8209#line 8210 "configure"
ab9b9eab 8210#include "confdefs.h"
788deba1 8211
ab9b9eab
VZ
8212int main() {
8213
8214; return 0; }
8215EOF
e8f65ba6 8216if { (eval echo configure:8217: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
8217 rm -rf conftest*
8218 ac_R_space=yes
8219else
8220 echo "configure: failed program was:" >&5
8221 cat conftest.$ac_ext >&5
8222 rm -rf conftest*
8223 ac_R_space=no
8224fi
8225rm -f conftest*
8226 if test $ac_R_space = yes; then
8227 echo "$ac_t""yes" 1>&6
8228 X_LIBS="$X_LIBS -R $x_libraries"
8229 else
8230 echo "$ac_t""neither works" 1>&6
8231 fi
8232 fi
8233 LIBS="$ac_xsave_LIBS"
8234 esac
8235 fi
8236
8237 # Check for system-dependent libraries X programs must link with.
8238 # Do this before checking for the system-independent R6 libraries
8239 # (-lICE), since we may need -lsocket or whatever for X linking.
8240
8241 if test "$ISC" = yes; then
8242 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
8243 else
8244 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
8245 # libraries were built with DECnet support. And karl@cs.umb.edu says
8246 # the Alpha needs dnet_stub (dnet does not exist).
8247 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
e8f65ba6 8248echo "configure:8249: checking for dnet_ntoa in -ldnet" >&5
ab9b9eab
VZ
8249ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
8250if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8251 echo $ac_n "(cached) $ac_c" 1>&6
8252else
8253 ac_save_LIBS="$LIBS"
8254LIBS="-ldnet $LIBS"
8255cat > conftest.$ac_ext <<EOF
e8f65ba6 8256#line 8257 "configure"
ab9b9eab
VZ
8257#include "confdefs.h"
8258/* Override any gcc2 internal prototype to avoid an error. */
8259/* We use char because int might match the return type of a gcc2
8260 builtin and then its argument prototype would still apply. */
8261char dnet_ntoa();
8262
8263int main() {
8264dnet_ntoa()
8265; return 0; }
8266EOF
e8f65ba6 8267if { (eval echo configure:8268: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
8268 rm -rf conftest*
8269 eval "ac_cv_lib_$ac_lib_var=yes"
8270else
8271 echo "configure: failed program was:" >&5
8272 cat conftest.$ac_ext >&5
8273 rm -rf conftest*
8274 eval "ac_cv_lib_$ac_lib_var=no"
8275fi
8276rm -f conftest*
8277LIBS="$ac_save_LIBS"
8278
8279fi
8280if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8281 echo "$ac_t""yes" 1>&6
8282 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
8283else
8284 echo "$ac_t""no" 1>&6
8285fi
8286
8287 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
8288 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
e8f65ba6 8289echo "configure:8290: checking for dnet_ntoa in -ldnet_stub" >&5
ab9b9eab
VZ
8290ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
8291if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8292 echo $ac_n "(cached) $ac_c" 1>&6
8293else
8294 ac_save_LIBS="$LIBS"
8295LIBS="-ldnet_stub $LIBS"
8296cat > conftest.$ac_ext <<EOF
e8f65ba6 8297#line 8298 "configure"
ab9b9eab
VZ
8298#include "confdefs.h"
8299/* Override any gcc2 internal prototype to avoid an error. */
8300/* We use char because int might match the return type of a gcc2
8301 builtin and then its argument prototype would still apply. */
8302char dnet_ntoa();
8303
8304int main() {
8305dnet_ntoa()
8306; return 0; }
8307EOF
e8f65ba6 8308if { (eval echo configure:8309: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
8309 rm -rf conftest*
8310 eval "ac_cv_lib_$ac_lib_var=yes"
8311else
8312 echo "configure: failed program was:" >&5
8313 cat conftest.$ac_ext >&5
8314 rm -rf conftest*
8315 eval "ac_cv_lib_$ac_lib_var=no"
8316fi
8317rm -f conftest*
8318LIBS="$ac_save_LIBS"
8319
8320fi
8321if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8322 echo "$ac_t""yes" 1>&6
8323 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
8324else
8325 echo "$ac_t""no" 1>&6
8326fi
8327
8328 fi
8329
8330 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
8331 # to get the SysV transport functions.
8332 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
8333 # needs -lnsl.
8334 # The nsl library prevents programs from opening the X display
8335 # on Irix 5.2, according to dickey@clark.net.
8336 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
e8f65ba6 8337echo "configure:8338: checking for gethostbyname" >&5
ab9b9eab
VZ
8338if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
8339 echo $ac_n "(cached) $ac_c" 1>&6
8340else
8341 cat > conftest.$ac_ext <<EOF
e8f65ba6 8342#line 8343 "configure"
ab9b9eab
VZ
8343#include "confdefs.h"
8344/* System header to define __stub macros and hopefully few prototypes,
8345 which can conflict with char gethostbyname(); below. */
8346#include <assert.h>
8347/* Override any gcc2 internal prototype to avoid an error. */
8348/* We use char because int might match the return type of a gcc2
8349 builtin and then its argument prototype would still apply. */
8350char gethostbyname();
8351
8352int main() {
8353
8354/* The GNU C library defines this for functions which it implements
8355 to always fail with ENOSYS. Some functions are actually named
8356 something starting with __ and the normal name is an alias. */
8357#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
8358choke me
8359#else
e8482f24 8360gethostbyname();
ab9b9eab
VZ
8361#endif
8362
8363; return 0; }
8364EOF
e8f65ba6 8365if { (eval echo configure:8366: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
8366 rm -rf conftest*
8367 eval "ac_cv_func_gethostbyname=yes"
8368else
8369 echo "configure: failed program was:" >&5
8370 cat conftest.$ac_ext >&5
8371 rm -rf conftest*
8372 eval "ac_cv_func_gethostbyname=no"
8373fi
8374rm -f conftest*
8375fi
8376
8377if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
8378 echo "$ac_t""yes" 1>&6
8379 :
8380else
8381 echo "$ac_t""no" 1>&6
8382fi
8383
8384 if test $ac_cv_func_gethostbyname = no; then
8385 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
e8f65ba6 8386echo "configure:8387: checking for gethostbyname in -lnsl" >&5
ab9b9eab
VZ
8387ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
8388if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8389 echo $ac_n "(cached) $ac_c" 1>&6
8390else
8391 ac_save_LIBS="$LIBS"
8392LIBS="-lnsl $LIBS"
8393cat > conftest.$ac_ext <<EOF
e8f65ba6 8394#line 8395 "configure"
ab9b9eab
VZ
8395#include "confdefs.h"
8396/* Override any gcc2 internal prototype to avoid an error. */
8397/* We use char because int might match the return type of a gcc2
8398 builtin and then its argument prototype would still apply. */
8399char gethostbyname();
8400
8401int main() {
8402gethostbyname()
8403; return 0; }
8404EOF
e8f65ba6 8405if { (eval echo configure:8406: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
8406 rm -rf conftest*
8407 eval "ac_cv_lib_$ac_lib_var=yes"
8408else
8409 echo "configure: failed program was:" >&5
8410 cat conftest.$ac_ext >&5
8411 rm -rf conftest*
8412 eval "ac_cv_lib_$ac_lib_var=no"
8413fi
8414rm -f conftest*
8415LIBS="$ac_save_LIBS"
8416
8417fi
8418if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8419 echo "$ac_t""yes" 1>&6
8420 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
8421else
8422 echo "$ac_t""no" 1>&6
8423fi
8424
8425 fi
8426
8427 # lieder@skyler.mavd.honeywell.com says without -lsocket,
8428 # socket/setsockopt and other routines are undefined under SCO ODT
8429 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
8430 # on later versions), says simon@lia.di.epfl.ch: it contains
8431 # gethostby* variants that don't use the nameserver (or something).
8432 # -lsocket must be given before -lnsl if both are needed.
8433 # We assume that if connect needs -lnsl, so does gethostbyname.
8434 echo $ac_n "checking for connect""... $ac_c" 1>&6
e8f65ba6 8435echo "configure:8436: checking for connect" >&5
ab9b9eab
VZ
8436if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
8437 echo $ac_n "(cached) $ac_c" 1>&6
8438else
8439 cat > conftest.$ac_ext <<EOF
e8f65ba6 8440#line 8441 "configure"
ab9b9eab
VZ
8441#include "confdefs.h"
8442/* System header to define __stub macros and hopefully few prototypes,
8443 which can conflict with char connect(); below. */
8444#include <assert.h>
8445/* Override any gcc2 internal prototype to avoid an error. */
8446/* We use char because int might match the return type of a gcc2
8447 builtin and then its argument prototype would still apply. */
8448char connect();
8449
8450int main() {
8451
8452/* The GNU C library defines this for functions which it implements
8453 to always fail with ENOSYS. Some functions are actually named
8454 something starting with __ and the normal name is an alias. */
8455#if defined (__stub_connect) || defined (__stub___connect)
8456choke me
8457#else
e8482f24 8458connect();
ab9b9eab
VZ
8459#endif
8460
8461; return 0; }
8462EOF
e8f65ba6 8463if { (eval echo configure:8464: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
8464 rm -rf conftest*
8465 eval "ac_cv_func_connect=yes"
8466else
8467 echo "configure: failed program was:" >&5
8468 cat conftest.$ac_ext >&5
8469 rm -rf conftest*
8470 eval "ac_cv_func_connect=no"
8471fi
8472rm -f conftest*
8473fi
8474
8475if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
8476 echo "$ac_t""yes" 1>&6
8477 :
8478else
8479 echo "$ac_t""no" 1>&6
8480fi
8481
8482 if test $ac_cv_func_connect = no; then
8483 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
e8f65ba6 8484echo "configure:8485: checking for connect in -lsocket" >&5
ab9b9eab
VZ
8485ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
8486if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8487 echo $ac_n "(cached) $ac_c" 1>&6
8488else
8489 ac_save_LIBS="$LIBS"
8490LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
8491cat > conftest.$ac_ext <<EOF
e8f65ba6 8492#line 8493 "configure"
ab9b9eab
VZ
8493#include "confdefs.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 connect();
8498
8499int main() {
8500connect()
8501; return 0; }
8502EOF
e8f65ba6 8503if { (eval echo configure:8504: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
8504 rm -rf conftest*
8505 eval "ac_cv_lib_$ac_lib_var=yes"
8506else
8507 echo "configure: failed program was:" >&5
8508 cat conftest.$ac_ext >&5
8509 rm -rf conftest*
8510 eval "ac_cv_lib_$ac_lib_var=no"
8511fi
8512rm -f conftest*
8513LIBS="$ac_save_LIBS"
8514
8515fi
8516if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8517 echo "$ac_t""yes" 1>&6
8518 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
8519else
8520 echo "$ac_t""no" 1>&6
8521fi
8522
8523 fi
8524
8525 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
8526 echo $ac_n "checking for remove""... $ac_c" 1>&6
e8f65ba6 8527echo "configure:8528: checking for remove" >&5
ab9b9eab
VZ
8528if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
8529 echo $ac_n "(cached) $ac_c" 1>&6
8530else
8531 cat > conftest.$ac_ext <<EOF
e8f65ba6 8532#line 8533 "configure"
ab9b9eab
VZ
8533#include "confdefs.h"
8534/* System header to define __stub macros and hopefully few prototypes,
8535 which can conflict with char remove(); below. */
8536#include <assert.h>
8537/* Override any gcc2 internal prototype to avoid an error. */
8538/* We use char because int might match the return type of a gcc2
8539 builtin and then its argument prototype would still apply. */
8540char remove();
8541
8542int main() {
8543
8544/* The GNU C library defines this for functions which it implements
8545 to always fail with ENOSYS. Some functions are actually named
8546 something starting with __ and the normal name is an alias. */
8547#if defined (__stub_remove) || defined (__stub___remove)
8548choke me
8549#else
e8482f24 8550remove();
ab9b9eab
VZ
8551#endif
8552
8553; return 0; }
8554EOF
e8f65ba6 8555if { (eval echo configure:8556: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
8556 rm -rf conftest*
8557 eval "ac_cv_func_remove=yes"
8558else
8559 echo "configure: failed program was:" >&5
8560 cat conftest.$ac_ext >&5
8561 rm -rf conftest*
8562 eval "ac_cv_func_remove=no"
8563fi
8564rm -f conftest*
8565fi
8566
8567if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
8568 echo "$ac_t""yes" 1>&6
8569 :
8570else
8571 echo "$ac_t""no" 1>&6
8572fi
8573
8574 if test $ac_cv_func_remove = no; then
8575 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
e8f65ba6 8576echo "configure:8577: checking for remove in -lposix" >&5
ab9b9eab
VZ
8577ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
8578if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8579 echo $ac_n "(cached) $ac_c" 1>&6
8580else
8581 ac_save_LIBS="$LIBS"
8582LIBS="-lposix $LIBS"
8583cat > conftest.$ac_ext <<EOF
e8f65ba6 8584#line 8585 "configure"
ab9b9eab
VZ
8585#include "confdefs.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 remove();
8590
8591int main() {
8592remove()
8593; return 0; }
8594EOF
e8f65ba6 8595if { (eval echo configure:8596: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
8596 rm -rf conftest*
8597 eval "ac_cv_lib_$ac_lib_var=yes"
8598else
8599 echo "configure: failed program was:" >&5
8600 cat conftest.$ac_ext >&5
8601 rm -rf conftest*
8602 eval "ac_cv_lib_$ac_lib_var=no"
8603fi
8604rm -f conftest*
8605LIBS="$ac_save_LIBS"
8606
8607fi
8608if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8609 echo "$ac_t""yes" 1>&6
8610 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
8611else
8612 echo "$ac_t""no" 1>&6
8613fi
8614
8615 fi
8616
8617 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
8618 echo $ac_n "checking for shmat""... $ac_c" 1>&6
e8f65ba6 8619echo "configure:8620: checking for shmat" >&5
ab9b9eab
VZ
8620if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
8621 echo $ac_n "(cached) $ac_c" 1>&6
8622else
8623 cat > conftest.$ac_ext <<EOF
e8f65ba6 8624#line 8625 "configure"
ab9b9eab
VZ
8625#include "confdefs.h"
8626/* System header to define __stub macros and hopefully few prototypes,
8627 which can conflict with char shmat(); below. */
8628#include <assert.h>
8629/* Override any gcc2 internal prototype to avoid an error. */
8630/* We use char because int might match the return type of a gcc2
8631 builtin and then its argument prototype would still apply. */
8632char shmat();
8633
8634int main() {
8635
8636/* The GNU C library defines this for functions which it implements
8637 to always fail with ENOSYS. Some functions are actually named
8638 something starting with __ and the normal name is an alias. */
8639#if defined (__stub_shmat) || defined (__stub___shmat)
8640choke me
8641#else
e8482f24 8642shmat();
ab9b9eab
VZ
8643#endif
8644
8645; return 0; }
8646EOF
e8f65ba6 8647if { (eval echo configure:8648: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
8648 rm -rf conftest*
8649 eval "ac_cv_func_shmat=yes"
8650else
8651 echo "configure: failed program was:" >&5
8652 cat conftest.$ac_ext >&5
8653 rm -rf conftest*
8654 eval "ac_cv_func_shmat=no"
8655fi
8656rm -f conftest*
8657fi
8658
8659if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
8660 echo "$ac_t""yes" 1>&6
8661 :
8662else
8663 echo "$ac_t""no" 1>&6
8664fi
8665
8666 if test $ac_cv_func_shmat = no; then
8667 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
e8f65ba6 8668echo "configure:8669: checking for shmat in -lipc" >&5
ab9b9eab
VZ
8669ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
8670if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8671 echo $ac_n "(cached) $ac_c" 1>&6
8672else
8673 ac_save_LIBS="$LIBS"
8674LIBS="-lipc $LIBS"
8675cat > conftest.$ac_ext <<EOF
e8f65ba6 8676#line 8677 "configure"
ab9b9eab
VZ
8677#include "confdefs.h"
8678/* Override any gcc2 internal prototype to avoid an error. */
8679/* We use char because int might match the return type of a gcc2
8680 builtin and then its argument prototype would still apply. */
8681char shmat();
8682
8683int main() {
8684shmat()
8685; return 0; }
8686EOF
e8f65ba6 8687if { (eval echo configure:8688: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
8688 rm -rf conftest*
8689 eval "ac_cv_lib_$ac_lib_var=yes"
8690else
8691 echo "configure: failed program was:" >&5
8692 cat conftest.$ac_ext >&5
8693 rm -rf conftest*
8694 eval "ac_cv_lib_$ac_lib_var=no"
8695fi
8696rm -f conftest*
8697LIBS="$ac_save_LIBS"
8698
8699fi
8700if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8701 echo "$ac_t""yes" 1>&6
8702 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
8703else
8704 echo "$ac_t""no" 1>&6
8705fi
8706
8707 fi
8708 fi
8709
8710 # Check for libraries that X11R6 Xt/Xaw programs need.
8711 ac_save_LDFLAGS="$LDFLAGS"
8712 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
8713 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
8714 # check for ICE first), but we must link in the order -lSM -lICE or
8715 # we get undefined symbols. So assume we have SM if we have ICE.
8716 # These have to be linked with before -lX11, unlike the other
8717 # libraries we check for below, so use a different variable.
8718 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
8719 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
e8f65ba6 8720echo "configure:8721: checking for IceConnectionNumber in -lICE" >&5
ab9b9eab
VZ
8721ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
8722if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8723 echo $ac_n "(cached) $ac_c" 1>&6
8724else
8725 ac_save_LIBS="$LIBS"
8726LIBS="-lICE $X_EXTRA_LIBS $LIBS"
8727cat > conftest.$ac_ext <<EOF
e8f65ba6 8728#line 8729 "configure"
ab9b9eab
VZ
8729#include "confdefs.h"
8730/* Override any gcc2 internal prototype to avoid an error. */
8731/* We use char because int might match the return type of a gcc2
8732 builtin and then its argument prototype would still apply. */
8733char IceConnectionNumber();
8734
8735int main() {
8736IceConnectionNumber()
8737; return 0; }
8738EOF
e8f65ba6 8739if { (eval echo configure:8740: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
8740 rm -rf conftest*
8741 eval "ac_cv_lib_$ac_lib_var=yes"
8742else
8743 echo "configure: failed program was:" >&5
8744 cat conftest.$ac_ext >&5
8745 rm -rf conftest*
8746 eval "ac_cv_lib_$ac_lib_var=no"
8747fi
8748rm -f conftest*
8749LIBS="$ac_save_LIBS"
8750
8751fi
8752if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8753 echo "$ac_t""yes" 1>&6
8754 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
8755else
8756 echo "$ac_t""no" 1>&6
8757fi
8758
8759 LDFLAGS="$ac_save_LDFLAGS"
8760
8761fi
8762
37d403aa
JS
8763CPPFLAGS="$CPPFLAGS $X_CFLAGS"
8764LDFLAGS="$LDFLAGS $X_LIBS"
ab9b9eab 8765
37d403aa 8766if test "$wxUSE_MOTIF" = 1; then
ab9b9eab 8767 if test "$no_x" = "yes"; then
37d403aa 8768 { echo "configure: error: X11 not found" 1>&2; exit 1; }
ab9b9eab
VZ
8769 fi
8770
8771 GUI_TK_LIBRARY="$X_LIBS"
8772 TOOLKIT_INCLUDE="$X_CFLAGS"
8773
dad6c0ea
VZ
8774 AFMINSTALL=afminstall
8775
ab9b9eab 8776
cd6d6d5b
VZ
8777 COMPILED_X_PROGRAM=0
8778
ab9b9eab 8779 echo $ac_n "checking for Motif/Lesstif headers""... $ac_c" 1>&6
e8f65ba6 8780echo "configure:8781: checking for Motif/Lesstif headers" >&5
ab9b9eab
VZ
8781
8782ac_find_includes=
8783for ac_dir in $SEARCH_INCLUDE;
8784 do
8785 if test -f "$ac_dir/Xm/Xm.h"; then
8786 ac_find_includes=$ac_dir
8787 break
8788 fi
8789 done
8790
8791 if test "$ac_find_includes" != "" ; then
8792 echo "$ac_t""found $ac_find_includes" 1>&6
8793 else
cd6d6d5b 8794 cat > conftest.$ac_ext <<EOF
e8f65ba6 8795#line 8796 "configure"
cd6d6d5b
VZ
8796#include "confdefs.h"
8797
8798 #include <Xm/Xm.h>
8799
8800int main() {
8801
8802 int version;
8803
8804 version = xmUseVersion;
8805
8806; return 0; }
8807EOF
e8f65ba6 8808if { (eval echo configure:8809: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
cd6d6d5b
VZ
8809 rm -rf conftest*
8810
8811 echo "$ac_t""found in default search path" 1>&6
8812 COMPILED_X_PROGRAM=1
8813
8814else
8815 echo "configure: failed program was:" >&5
8816 cat conftest.$ac_ext >&5
8817 rm -rf conftest*
8818
8819 echo "$ac_t""no" 1>&6
8820 { echo "configure: error: please set CFLAGS to contain the location of Xm/Xm.h" 1>&2; exit 1; }
8821
8822
8823fi
8824rm -f conftest*
ab9b9eab
VZ
8825 fi
8826
cd6d6d5b
VZ
8827 if test "$COMPILED_X_PROGRAM" = 0; then
8828 echo $ac_n "checking for Motif/Lesstif library""... $ac_c" 1>&6
e8f65ba6 8829echo "configure:8830: checking for Motif/Lesstif library" >&5
cd6d6d5b 8830
ab9b9eab
VZ
8831ac_find_libraries=
8832for ac_dir in $SEARCH_LIB;
8833 do
8834 for ac_extension in a so sl; do
8835 if test -f "$ac_dir/libXm.$ac_extension"; then
8836 ac_find_libraries=$ac_dir
8837 break 2
8838 fi
8839 done
8840 done
8841
cd6d6d5b
VZ
8842 if test "$ac_find_libraries" != "" ; then
8843
ab9b9eab
VZ
8844 ac_path_to_include=$ac_find_includes
8845 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
8846 result=$?
8847 if test $result = 0; then
8848 ac_path_to_include=""
8849 else
8850 ac_path_to_include="-I$ac_find_includes"
8851 fi
8852
cd6d6d5b 8853
ab9b9eab
VZ
8854 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
8855 result=$?
8856 if test $result = 0; then
8857 ac_path_to_link=""
8858 else
8859 ac_path_to_link="-L$ac_find_libraries"
8860 fi
8861
8862
cd6d6d5b
VZ
8863 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $ac_path_to_link"
8864 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE $ac_path_to_include"
8865 echo "$ac_t""found at $ac_find_libraries" 1>&6
8866 else
8867 cat > conftest.$ac_ext <<EOF
e8f65ba6 8868#line 8869 "configure"
cd6d6d5b 8869#include "confdefs.h"
ab9b9eab 8870
cd6d6d5b
VZ
8871 #include <Xm/Xm.h>
8872
8873int main() {
ab9b9eab 8874
cd6d6d5b 8875 int version;
ab9b9eab 8876
cd6d6d5b
VZ
8877 version = xmUseVersion;
8878
8879; return 0; }
8880EOF
e8f65ba6 8881if { (eval echo configure:8882: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
cd6d6d5b
VZ
8882 rm -rf conftest*
8883
8884 echo "$ac_t""found in default search path" 1>&6
8885 COMPILED_X_PROGRAM=1
8886
8887else
8888 echo "configure: failed program was:" >&5
8889 cat conftest.$ac_ext >&5
8890 rm -rf conftest*
8891
8892 echo "$ac_t""no" 1>&6
8893 { echo "configure: error: please set LDFLAGS to contain the location of libXm" 1>&2; exit 1; }
8894
8895
8896fi
8897rm -f conftest*
8898 fi
ab9b9eab
VZ
8899 fi
8900
cd6d6d5b 8901
ab9b9eab
VZ
8902 XPM_LINK=""
8903 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
e8f65ba6 8904echo "configure:8905: checking for Xpm library" >&5
ab9b9eab
VZ
8905
8906ac_find_libraries=
8907for ac_dir in $SEARCH_LIB;
8908 do
8909 for ac_extension in a so sl; do
8910 if test -f "$ac_dir/libXpm.$ac_extension"; then
8911 ac_find_libraries=$ac_dir
8912 break 2
8913 fi
8914 done
8915 done
8916
8917 if test "$ac_find_libraries" != "" ; then
8918
8919 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
8920 result=$?
8921 if test $result = 0; then
8922 ac_path_to_link=""
8923 else
8924 ac_path_to_link="-L$ac_find_libraries"
8925 fi
8926
8927 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $ac_path_to_link"
8928 XPM_LINK="-lXpm "
8929 cat >> confdefs.h <<\EOF
8930#define wxHAVE_LIB_XPM 1
8931EOF
8932
8933 echo "$ac_t""found at $ac_find_libraries" 1>&6
8934 else
cd6d6d5b 8935 cat > conftest.$ac_ext <<EOF
e8f65ba6 8936#line 8937 "configure"
cd6d6d5b
VZ
8937#include "confdefs.h"
8938
8939 #include <X11/xpm.h>
8940
8941int main() {
8942
8943 int version;
8944
8945 version = XpmLibraryVersion();
8946
8947; return 0; }
8948EOF
e8f65ba6 8949if { (eval echo configure:8950: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
cd6d6d5b
VZ
8950 rm -rf conftest*
8951
f6bcfd97
BP
8952 XPM_LINK="-lXpm "
8953 cat >> confdefs.h <<\EOF
3ace2e6d
SN
8954#define wxHAVE_LIB_XPM 1
8955EOF
8956
8957 echo "$ac_t""found in default search path" 1>&6
cd6d6d5b
VZ
8958 COMPILED_X_PROGRAM=0
8959
8960else
8961 echo "configure: failed program was:" >&5
8962 cat conftest.$ac_ext >&5
8963 rm -rf conftest*
8964
8965 echo "$ac_t""no" 1>&6
8966 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
8967
8968
8969fi
8970rm -f conftest*
ab9b9eab
VZ
8971 fi
8972
8916026b 8973 GUI_TK_LINK="-lXm $XPM_LINK -lXmu -lXext -lXt -lX11"
ab9b9eab
VZ
8974 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $GUI_TK_LINK"
8975 TOOLKIT=MOTIF
8976
8977 GUIHEADERS="\$(MOTIF_HEADERS)"
8978 GUIOBJS="\$(MOTIF_GUIOBJS)"
8979 COMMONOBJS="\$(MOTIF_COMMONOBJS)"
788deba1
VZ
8980 GENERICOBJS="\$(MOTIF_GENERICOBJS)"
8981 GUIDEPS="\$(MOTIF_GUIDEPS)"
8982 COMMONDEPS="\$(MOTIF_COMMONDEPS)"
10f2d63a
VZ
8983 GENERICDEPS="\$(MOTIF_GENERICDEPS)"
8984 UNIXOBJS="\$(UNIX_OBJS)"
d9d8273d 8985 UNIXDEPS="\$(UNIX_DEPS)"
10f2d63a
VZ
8986 GUIDIST=MOTIF_DIST
8987fi
8988
e07802fc
VZ
8989if test "$wxUSE_PM" = 1; then
8990 TOOLKIT=PM
8991
8992 GUIOBJS="\$(PM_GUIOBJS)"
8993 GUIHEADERS="\$(PM_HEADERS)"
8994 COMMONOBJS="\$(PM_COMMONOBJS)"
8995 GENERICOBJS="\$(PM_GENERICOBJS)"
8996 GUIDEPS="\$(PM_GUIDEPS)"
8997 COMMONDEPS="\$(PM_COMMONDEPS)"
8998 GENERICDEPS="\$(PM_GENERICDEPS)"
8999 UNIXOBJS=
9000 UNIXDEPS=
9001 GUIDIST=GTK_DIST
9002fi
9003
9004if test "$TOOLKIT" != "PM" ; then
ec14dd32 9005 TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
e07802fc
VZ
9006else
9007 TOOLKIT_DIR="os2"
9008fi
10f2d63a 9009
f6bcfd97
BP
9010 if test "$wxUSE_DEBUG_FLAG" = "yes"; then
9011 TOOLKIT_NAME="${TOOLKIT_DIR}d"
9012 else
9013 TOOLKIT_NAME="${TOOLKIT_DIR}"
9014 fi
9015
2224580a 9016 TOOLKIT_DEF="-D__WX${TOOLKIT}__"
10f2d63a 9017
f6bcfd97 9018 WX_LIBRARY="wx_${TOOLKIT_NAME}"
10f2d63a 9019
bdad4e7e 9020 ALL_OBJECTS="\$(GUIOBJS) \$(COMMONOBJS) \$(GENERICOBJS) \$(UNIXOBJS) \$(HTMLOBJS) \$(OGLOBJS)"
3fcdd07b 9021
b089607b 9022 if test "$TOOLKIT" != "MSW"; then
cc977e5f
RR
9023 if test "$wxUSE_ODBC" = "yes" ; then
9024 ALL_OBJECTS="${ALL_OBJECTS} \$(IODBCOBJS)"
9025 fi
3fcdd07b
VZ
9026 fi
9027
d9d8273d 9028 if test "$wxUSE_LIBJPEG" = "yes" ; then
2224580a 9029 ALL_OBJECTS="${ALL_OBJECTS} \$(JPEGOBJS)"
d9d8273d
RR
9030 fi
9031 if test "$wxUSE_LIBTIFF" = "yes" ; then
9032 ALL_OBJECTS="${ALL_OBJECTS} \$(TIFFOBJS)"
9033 fi
9034 if test "$wxUSE_LIBPNG" = "yes" ; then
9035 ALL_OBJECTS="${ALL_OBJECTS} \$(PNGOBJS)"
9036 fi
9037 if test "$wxUSE_ZLIB" = "yes" ; then
9038 ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)"
9039 fi
3fed1840
RR
9040 if test "$wxUSE_FREETYPE" = "yes" ; then
9041 ALL_OBJECTS="${ALL_OBJECTS} \$(FREETYPEOBJS)"
9042 fi
bdad4e7e 9043 ALL_DEPFILES="\$(GUIDEPS) \$(COMMONDEPS) \$(GENERICDEPS) \$(UNIXDEPS) \$(HTMLDEPS) \$(OGLDEPS)"
2224580a
VZ
9044
9045 PORT_FILES="src/\$(TOOLKITDIR)/files.lst"
9046 RPM_FILES="src/\$(TOOLKITDIR)/rpmfiles.lst"
9047 RPM_SPEC="wx\$(TOOLKIT).spec"
9048
9049 GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
9050 DISTDIR="wx\$(TOOLKIT)"
10f2d63a 9051else
dad6c0ea
VZ
9052 USE_GUI=0
9053
f6bcfd97
BP
9054 TOOLKIT_DIR="base"
9055
9056 if test "$wxUSE_DEBUG_FLAG" = "yes"; then
9057 TOOLKIT_NAME="${TOOLKIT_DIR}d"
9058 else
9059 TOOLKIT_NAME="${TOOLKIT_DIR}"
9060 fi
9061
07eb77a6
RL
9062 TOOLKIT_DEF="-D__WXBASE__"
9063
2224580a
VZ
9064 ALL_OBJECTS="\$(BASE_OBJS) \${BASE_UNIX_OBJS}"
9065 ALL_DEPFILES="\${BASE_DEPS} \${BASE_UNIX_DEPS}"
10f2d63a 9066
a20b6d3a
VZ
9067 if test "$wxUSE_ZLIB" = "yes" ; then
9068 ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)"
9069 fi
9070
f6bcfd97 9071 WX_LIBRARY="wx_${TOOLKIT_NAME}"
2224580a
VZ
9072
9073 PORT_FILES="src/files.lst"
9074 RPM_FILES="src/rpmfiles.lst"
9075 RPM_SPEC="wxBase.spec"
9076
9077 GUIDIST="BASE_DIST"
9078 DISTDIR="wxBase"
10f2d63a
VZ
9079fi
9080
9081WX_LIBRARY_NAME="lib${WX_LIBRARY}.la"
bdad4e7e 9082WX_LIBRARY_NAME_GL="lib${WX_LIBRARY}_gl.la"
10f2d63a
VZ
9083
9084WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a"
bdad4e7e 9085WX_LIBRARY_NAME_STATIC_GL="lib${WX_LIBRARY}_gl.a"
10f2d63a
VZ
9086
9087WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}-${WX_RELEASE}.so.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
bdad4e7e 9088WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.so.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
10f2d63a
VZ
9089
9090WX_LIBRARY_LINK1="lib${WX_LIBRARY}-${WX_RELEASE}.so.${WX_CURRENT}"
9091WX_LIBRARY_LINK2="lib${WX_LIBRARY}-${WX_RELEASE}.so"
9092WX_LIBRARY_LINK3="lib${WX_LIBRARY}.so"
bdad4e7e
RR
9093WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.so.${WX_CURRENT}"
9094WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.so"
9095WX_LIBRARY_LINK3_GL="lib${WX_LIBRARY}_gl.so"
10f2d63a
VZ
9096
9097SHARED_LD=
9098PIC_FLAG=
9099WX_ALL=
9100WX_ALL_INSTALLED=
1d62a8b4 9101BURNT_LIBRARY_NAME=
f6bcfd97 9102WX_TARGET_LIBRARY_SONAME=
10f2d63a 9103
b12915c1 9104
10f2d63a
VZ
9105if test "$wxUSE_SHARED" = "yes"; then
9106 case "${host}" in
9107 *-hp-hpux* )
9108 if test "$GCC" = yes ; then
69ffe1d2 9109 SHARED_LD="${CC} -shared -fPIC -o"
10f2d63a
VZ
9110 PIC_FLAG="-fPIC"
9111 else
f6bcfd97
BP
9112 LDFLAGS="-L/usr/lib"
9113
10f2d63a
VZ
9114 SHARED_LD="${CXX} -b -o"
9115 PIC_FLAG="+Z"
9116 fi
f6bcfd97
BP
9117 WX_LIBRARY_NAME_SHARED="libwx_${TOOLKIT_NAME}.sl"
9118 WX_LIBRARY_NAME_SHARED_GL="libwx_${TOOLKIT_NAME}_gl.sl"
c661ecca 9119 if test "$wxUSE_OPENGL" = "yes"; then
f6bcfd97 9120 WX_ALL_INSTALLED="preinstall_gl"
c661ecca
RR
9121 WX_ALL="${WX_LIBRARY_NAME_SHARED} ${WX_LIBRARY_NAME_SHARED_GL}"
9122 else
9123 WX_ALL="${WX_LIBRARY_NAME_SHARED}"
9124 fi
10f2d63a 9125 ;;
b12915c1
VZ
9126
9127 *-*-linux* )
10f2d63a
VZ
9128 SHARED_LD="${CC} -shared -o"
9129 PIC_FLAG="-fPIC"
00cf1208 9130 if test "$wxUSE_BURNT_NAME" = "yes" ; then
05cdfc6f 9131 BURNT_LIBRARY_NAME="-Wl,-soname,${WX_LIBRARY_LINK1}"
bdad4e7e 9132 BURNT_LIBRARY_NAME_GL="-Wl,-soname,${WX_LIBRARY_LINK1_GL}"
f6bcfd97 9133 WX_TARGET_LIBRARY_SONAME="-Wl,-soname,\$(TARGETLIB_LINK1)"
00cf1208 9134 fi
c661ecca
RR
9135 if test "$wxUSE_OPENGL" = "yes"; then
9136 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
9137 WX_ALL="CREATE_LINKS CREATE_LINKS_GL"
9138 else
9139 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
9140 WX_ALL="CREATE_LINKS"
422107f9 9141 fi
00cf1208 9142 ;;
10f2d63a
VZ
9143 *-*-irix5* | *-*-irix6* )
9144 if test "$GCC" = yes ; then
9145 SHARED_LD="${CC} -shared -o"
9146 PIC_FLAG="-fPIC"
9147 else
9148 SHARED_LD="${CXX} -shared -o"
9149 fi
c661ecca
RR
9150 if test "$wxUSE_OPENGL" = "yes"; then
9151 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
9152 WX_ALL="CREATE_LINKS CREATE_LINKS_GL"
9153 else
9154 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
9155 WX_ALL="CREATE_LINKS"
422107f9 9156 fi
10f2d63a
VZ
9157 ;;
9158 *-*-solaris2* )
9159 if test "$GCC" = yes ; then
9160 SHARED_LD="${CC} -shared -o"
9161 PIC_FLAG="-fPIC"
f6bcfd97
BP
9162
9163 CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include"
10f2d63a
VZ
9164 else
9165 SHARED_LD="${CXX} -G -o"
9166 PIC_FLAG="-KPIC"
9167 fi
c661ecca
RR
9168 if test "$wxUSE_OPENGL" = "yes"; then
9169 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
9170 WX_ALL="CREATE_LINKS CREATE_LINKS_GL"
9171 else
9172 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
9173 WX_ALL="CREATE_LINKS"
9174 fi
10f2d63a
VZ
9175 ;;
9176 *-*-sunos4* )
9177 SHARED_LD="${CC} -shared -o"
9178 PIC_FLAG="-fPIC"
9179 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
9180 WX_ALL="CREATE_LINKS"
9181 ;;
9182 *-*-freebsd* | *-*-netbsd*)
9183 SHARED_LD="${CC} -shared -o"
9184 PIC_FLAG="-fPIC"
37d403aa
JS
9185 if test "$wxUSE_OPENGL" = "yes"; then
9186 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
9187 WX_ALL="CREATE_LINKS CREATE_LINKS_GL"
9188 else
9189 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
9190 WX_ALL="CREATE_LINKS"
9191 fi
10f2d63a
VZ
9192 ;;
9193 *-*-osf* )
9194 SHARED_LD="${CXX} -shared -o"
9195 PIC_FLAG="-fPIC"
9196 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
9197 WX_ALL="CREATE_LINKS"
9198 ;;
9199 *-*-dgux5* )
9200 SHARED_LD="${CXX} -shared -o"
9201 PIC_FLAG="-fPIC"
9202 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
9203 WX_ALL="CREATE_LINKS"
9204 ;;
9205 *-*-sysv5* )
9206 SHARED_LD="${CC} -shared -o"
9207 PIC_FLAG="-fPIC"
9208 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
9209 WX_ALL="CREATE_LINKS"
9210 ;;
9211 *-*-aix* )
9212 SHARED_LD="/usr/lpp/xlC/bin/makeC++SharedLib -p 0 -o"
9213 WX_ALL=${WX_LIBRARY_NAME_SHARED}
9214 ;;
9215 *-*-cygwin32* )
9216 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
bdad4e7e 9217 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}"
f6bcfd97
BP
9218 if test "$wxUSE_OPENGL" = "yes"; then
9219 WX_ALL_INSTALLED="preinstall_gl"
9220 WX_ALL="${WX_LIBRARY_NAME_STATIC} ${WX_LIBRARY_NAME_STATIC_GL}"
9221 else
9222 WX_ALL="${WX_LIBRARY_NAME_STATIC}"
9223 fi
10f2d63a 9224 ;;
b12915c1 9225 *-*-mingw32* )
10f2d63a 9226 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
bdad4e7e 9227 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}"
f6bcfd97
BP
9228 if test "$wxUSE_OPENGL" = "yes"; then
9229 WX_ALL_INSTALLED="preinstall_gl"
9230 WX_ALL="${WX_LIBRARY_NAME_STATIC} ${WX_LIBRARY_NAME_STATIC_GL}"
9231 else
9232 WX_ALL="${WX_LIBRARY_NAME_STATIC}"
9233 fi
10f2d63a
VZ
9234 ;;
9235 *-pc-os2_emx )
e07802fc
VZ
9236 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
9237 WX_ALL="${WX_LIBRARY_NAME_STATIC}"
10f2d63a 9238 ;;
b12915c1 9239 *-*-beos* )
e2b8b066 9240 SHARED_LD="${LD} -shared -o"
b12915c1
VZ
9241 PIC_FLAG="-fPIC"
9242 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
9243 WX_ALL="CREATE_LINKS"
9244 ;;
10f2d63a
VZ
9245 *)
9246 { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; }
9247 esac
9248
9249 if test "x$WX_TARGET_LIBRARY" = "x"; then
9250 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}"
bdad4e7e 9251 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_SHARED_GL}"
10f2d63a 9252 fi
3711412e 9253 WX_TARGET_LIBRARY_TYPE="so"
10f2d63a
VZ
9254else
9255 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
bdad4e7e 9256 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}"
f6bcfd97
BP
9257
9258 if test "$wxUSE_OPENGL" = "yes"; then
9259 WX_ALL_INSTALLED="preinstall_gl"
9260 WX_ALL="${WX_LIBRARY_NAME_STATIC} ${WX_LIBRARY_NAME_STATIC_GL}"
9261 else
9262 WX_ALL="${WX_LIBRARY_NAME_STATIC}"
9263 fi
9264
9265 if test "$wxUSE_GUI" = "no"; then
9266 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
9267 fi
9268
3711412e 9269 WX_TARGET_LIBRARY_TYPE="a"
10f2d63a
VZ
9270fi
9271
9272
9273for ac_hdr in strings.h
9274do
9275ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9276echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
e8f65ba6 9277echo "configure:9278: checking for $ac_hdr" >&5
10f2d63a
VZ
9278if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9279 echo $ac_n "(cached) $ac_c" 1>&6
9280else
9281 cat > conftest.$ac_ext <<EOF
e8f65ba6 9282#line 9283 "configure"
10f2d63a
VZ
9283#include "confdefs.h"
9284#include <$ac_hdr>
9285EOF
9286ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
e8f65ba6 9287{ (eval echo configure:9288: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
9288ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9289if test -z "$ac_err"; then
9290 rm -rf conftest*
9291 eval "ac_cv_header_$ac_safe=yes"
9292else
9293 echo "$ac_err" >&5
9294 echo "configure: failed program was:" >&5
9295 cat conftest.$ac_ext >&5
9296 rm -rf conftest*
9297 eval "ac_cv_header_$ac_safe=no"
9298fi
9299rm -f conftest*
9300fi
9301if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9302 echo "$ac_t""yes" 1>&6
9303 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9304 cat >> confdefs.h <<EOF
9305#define $ac_tr_hdr 1
9306EOF
9307
9308else
9309 echo "$ac_t""no" 1>&6
9310fi
9311done
9312
9313for ac_hdr in unistd.h
9314do
9315ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9316echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
e8f65ba6 9317echo "configure:9318: checking for $ac_hdr" >&5
10f2d63a
VZ
9318if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9319 echo $ac_n "(cached) $ac_c" 1>&6
9320else
9321 cat > conftest.$ac_ext <<EOF
e8f65ba6 9322#line 9323 "configure"
10f2d63a
VZ
9323#include "confdefs.h"
9324#include <$ac_hdr>
9325EOF
9326ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
e8f65ba6 9327{ (eval echo configure:9328: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
9328ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9329if test -z "$ac_err"; then
9330 rm -rf conftest*
9331 eval "ac_cv_header_$ac_safe=yes"
9332else
9333 echo "$ac_err" >&5
9334 echo "configure: failed program was:" >&5
9335 cat conftest.$ac_ext >&5
9336 rm -rf conftest*
9337 eval "ac_cv_header_$ac_safe=no"
9338fi
9339rm -f conftest*
9340fi
9341if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9342 echo "$ac_t""yes" 1>&6
9343 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9344 cat >> confdefs.h <<EOF
9345#define $ac_tr_hdr 1
9346EOF
9347
9348else
9349 echo "$ac_t""no" 1>&6
9350fi
9351done
9352
0fb0dd83 9353for ac_hdr in fcntl.h
10f2d63a
VZ
9354do
9355ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9356echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
e8f65ba6 9357echo "configure:9358: checking for $ac_hdr" >&5
10f2d63a
VZ
9358if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9359 echo $ac_n "(cached) $ac_c" 1>&6
9360else
9361 cat > conftest.$ac_ext <<EOF
e8f65ba6 9362#line 9363 "configure"
10f2d63a
VZ
9363#include "confdefs.h"
9364#include <$ac_hdr>
9365EOF
9366ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
e8f65ba6 9367{ (eval echo configure:9368: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
9368ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9369if test -z "$ac_err"; then
9370 rm -rf conftest*
9371 eval "ac_cv_header_$ac_safe=yes"
9372else
9373 echo "$ac_err" >&5
9374 echo "configure: failed program was:" >&5
9375 cat conftest.$ac_ext >&5
9376 rm -rf conftest*
9377 eval "ac_cv_header_$ac_safe=no"
9378fi
9379rm -f conftest*
9380fi
9381if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9382 echo "$ac_t""yes" 1>&6
9383 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9384 cat >> confdefs.h <<EOF
9385#define $ac_tr_hdr 1
9386EOF
9387
9388else
9389 echo "$ac_t""no" 1>&6
9390fi
9391done
9392
0fb0dd83 9393for ac_hdr in wchar.h
10f2d63a
VZ
9394do
9395ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9396echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
e8f65ba6 9397echo "configure:9398: checking for $ac_hdr" >&5
10f2d63a
VZ
9398if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9399 echo $ac_n "(cached) $ac_c" 1>&6
9400else
9401 cat > conftest.$ac_ext <<EOF
e8f65ba6 9402#line 9403 "configure"
10f2d63a
VZ
9403#include "confdefs.h"
9404#include <$ac_hdr>
9405EOF
9406ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
e8f65ba6 9407{ (eval echo configure:9408: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
9408ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9409if test -z "$ac_err"; then
9410 rm -rf conftest*
9411 eval "ac_cv_header_$ac_safe=yes"
9412else
9413 echo "$ac_err" >&5
9414 echo "configure: failed program was:" >&5
9415 cat conftest.$ac_ext >&5
9416 rm -rf conftest*
9417 eval "ac_cv_header_$ac_safe=no"
9418fi
9419rm -f conftest*
9420fi
9421if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9422 echo "$ac_t""yes" 1>&6
9423 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9424 cat >> confdefs.h <<EOF
9425#define $ac_tr_hdr 1
9426EOF
9427
9428else
9429 echo "$ac_t""no" 1>&6
9430fi
9431done
9432
0fb0dd83 9433for ac_hdr in wcstr.h
10f2d63a
VZ
9434do
9435ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9436echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
e8f65ba6 9437echo "configure:9438: checking for $ac_hdr" >&5
10f2d63a
VZ
9438if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9439 echo $ac_n "(cached) $ac_c" 1>&6
9440else
9441 cat > conftest.$ac_ext <<EOF
e8f65ba6 9442#line 9443 "configure"
10f2d63a
VZ
9443#include "confdefs.h"
9444#include <$ac_hdr>
9445EOF
9446ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
e8f65ba6 9447{ (eval echo configure:9448: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6f72b082
OK
9448ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9449if test -z "$ac_err"; then
9450 rm -rf conftest*
9451 eval "ac_cv_header_$ac_safe=yes"
9452else
9453 echo "$ac_err" >&5
9454 echo "configure: failed program was:" >&5
9455 cat conftest.$ac_ext >&5
9456 rm -rf conftest*
9457 eval "ac_cv_header_$ac_safe=no"
9458fi
9459rm -f conftest*
9460fi
9461if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9462 echo "$ac_t""yes" 1>&6
9463 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9464 cat >> confdefs.h <<EOF
9465#define $ac_tr_hdr 1
9466EOF
9467
9468else
9469 echo "$ac_t""no" 1>&6
9470fi
9471done
9472
0fb0dd83 9473for ac_hdr in fnmatch.h
6f72b082
OK
9474do
9475ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9476echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
e8f65ba6 9477echo "configure:9478: checking for $ac_hdr" >&5
6f72b082
OK
9478if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9479 echo $ac_n "(cached) $ac_c" 1>&6
9480else
9481 cat > conftest.$ac_ext <<EOF
e8f65ba6 9482#line 9483 "configure"
6f72b082
OK
9483#include "confdefs.h"
9484#include <$ac_hdr>
9485EOF
9486ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
e8f65ba6 9487{ (eval echo configure:9488: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6f72b082
OK
9488ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9489if test -z "$ac_err"; then
9490 rm -rf conftest*
9491 eval "ac_cv_header_$ac_safe=yes"
9492else
9493 echo "$ac_err" >&5
9494 echo "configure: failed program was:" >&5
9495 cat conftest.$ac_ext >&5
9496 rm -rf conftest*
9497 eval "ac_cv_header_$ac_safe=no"
9498fi
9499rm -f conftest*
9500fi
9501if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9502 echo "$ac_t""yes" 1>&6
9503 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9504 cat >> confdefs.h <<EOF
9505#define $ac_tr_hdr 1
9506EOF
9507
9508else
9509 echo "$ac_t""no" 1>&6
9510fi
9511done
9512
0fb0dd83 9513for ac_hdr in iconv.h
6f72b082
OK
9514do
9515ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9516echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
e8f65ba6 9517echo "configure:9518: checking for $ac_hdr" >&5
6f72b082
OK
9518if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9519 echo $ac_n "(cached) $ac_c" 1>&6
9520else
9521 cat > conftest.$ac_ext <<EOF
e8f65ba6 9522#line 9523 "configure"
6f72b082
OK
9523#include "confdefs.h"
9524#include <$ac_hdr>
9525EOF
9526ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
e8f65ba6 9527{ (eval echo configure:9528: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
9528ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9529if test -z "$ac_err"; then
9530 rm -rf conftest*
9531 eval "ac_cv_header_$ac_safe=yes"
9532else
9533 echo "$ac_err" >&5
9534 echo "configure: failed program was:" >&5
9535 cat conftest.$ac_ext >&5
9536 rm -rf conftest*
9537 eval "ac_cv_header_$ac_safe=no"
9538fi
9539rm -f conftest*
9540fi
9541if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9542 echo "$ac_t""yes" 1>&6
9543 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9544 cat >> confdefs.h <<EOF
9545#define $ac_tr_hdr 1
9546EOF
9547
9548else
9549 echo "$ac_t""no" 1>&6
9550fi
9551done
9552
0fb0dd83
RR
9553for ac_hdr in langinfo.h
9554do
9555ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9556echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
e8f65ba6 9557echo "configure:9558: checking for $ac_hdr" >&5
0fb0dd83
RR
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
e8f65ba6 9562#line 9563 "configure"
0fb0dd83
RR
9563#include "confdefs.h"
9564#include <$ac_hdr>
9565EOF
9566ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
e8f65ba6 9567{ (eval echo configure:9568: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
0fb0dd83
RR
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
10f2d63a 9593
73fd4a60
VZ
9594if test "$wxUSE_GUI" = "yes"; then
9595 if test "$wxUSE_UNIX" = "yes"; then
9596 for ac_hdr in X11/XKBlib.h
10f2d63a
VZ
9597do
9598ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9599echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
e8f65ba6 9600echo "configure:9601: checking for $ac_hdr" >&5
10f2d63a
VZ
9601if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9602 echo $ac_n "(cached) $ac_c" 1>&6
9603else
9604 cat > conftest.$ac_ext <<EOF
e8f65ba6 9605#line 9606 "configure"
10f2d63a
VZ
9606#include "confdefs.h"
9607#include <$ac_hdr>
9608EOF
9609ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
e8f65ba6 9610{ (eval echo configure:9611: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
9611ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9612if test -z "$ac_err"; then
9613 rm -rf conftest*
9614 eval "ac_cv_header_$ac_safe=yes"
9615else
9616 echo "$ac_err" >&5
9617 echo "configure: failed program was:" >&5
9618 cat conftest.$ac_ext >&5
9619 rm -rf conftest*
9620 eval "ac_cv_header_$ac_safe=no"
9621fi
9622rm -f conftest*
9623fi
9624if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9625 echo "$ac_t""yes" 1>&6
9626 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9627 cat >> confdefs.h <<EOF
9628#define $ac_tr_hdr 1
9629EOF
9630
9631else
9632 echo "$ac_t""no" 1>&6
9633fi
9634done
9635
73fd4a60 9636 fi
10f2d63a
VZ
9637fi
9638
9639
9640echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
e8f65ba6 9641echo "configure:9642: checking for ANSI C header files" >&5
10f2d63a
VZ
9642if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
9643 echo $ac_n "(cached) $ac_c" 1>&6
9644else
9645 cat > conftest.$ac_ext <<EOF
e8f65ba6 9646#line 9647 "configure"
10f2d63a
VZ
9647#include "confdefs.h"
9648#include <stdlib.h>
9649#include <stdarg.h>
9650#include <string.h>
9651#include <float.h>
9652EOF
9653ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
e8f65ba6 9654{ (eval echo configure:9655: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
9655ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9656if test -z "$ac_err"; then
9657 rm -rf conftest*
9658 ac_cv_header_stdc=yes
9659else
9660 echo "$ac_err" >&5
9661 echo "configure: failed program was:" >&5
9662 cat conftest.$ac_ext >&5
9663 rm -rf conftest*
9664 ac_cv_header_stdc=no
9665fi
9666rm -f conftest*
9667
9668if test $ac_cv_header_stdc = yes; then
9669 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9670cat > conftest.$ac_ext <<EOF
e8f65ba6 9671#line 9672 "configure"
10f2d63a
VZ
9672#include "confdefs.h"
9673#include <string.h>
9674EOF
9675if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9676 egrep "memchr" >/dev/null 2>&1; then
9677 :
9678else
9679 rm -rf conftest*
9680 ac_cv_header_stdc=no
9681fi
9682rm -f conftest*
9683
9684fi
9685
9686if test $ac_cv_header_stdc = yes; then
9687 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9688cat > conftest.$ac_ext <<EOF
e8f65ba6 9689#line 9690 "configure"
10f2d63a
VZ
9690#include "confdefs.h"
9691#include <stdlib.h>
9692EOF
9693if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9694 egrep "free" >/dev/null 2>&1; then
9695 :
9696else
9697 rm -rf conftest*
9698 ac_cv_header_stdc=no
9699fi
9700rm -f conftest*
9701
9702fi
9703
9704if test $ac_cv_header_stdc = yes; then
9705 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9706if test "$cross_compiling" = yes; then
9707 :
9708else
9709 cat > conftest.$ac_ext <<EOF
e8f65ba6 9710#line 9711 "configure"
10f2d63a
VZ
9711#include "confdefs.h"
9712#include <ctype.h>
9713#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9714#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9715#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9716int main () { int i; for (i = 0; i < 256; i++)
9717if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
9718exit (0); }
9719
9720EOF
e8f65ba6 9721if { (eval echo configure:9722: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10f2d63a
VZ
9722then
9723 :
9724else
9725 echo "configure: failed program was:" >&5
9726 cat conftest.$ac_ext >&5
9727 rm -fr conftest*
9728 ac_cv_header_stdc=no
9729fi
9730rm -fr conftest*
9731fi
9732
9733fi
9734fi
9735
9736echo "$ac_t""$ac_cv_header_stdc" 1>&6
9737if test $ac_cv_header_stdc = yes; then
9738 cat >> confdefs.h <<\EOF
9739#define STDC_HEADERS 1
9740EOF
9741
9742fi
9743
9744echo $ac_n "checking for mode_t""... $ac_c" 1>&6
e8f65ba6 9745echo "configure:9746: checking for mode_t" >&5
10f2d63a
VZ
9746if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
9747 echo $ac_n "(cached) $ac_c" 1>&6
9748else
9749 cat > conftest.$ac_ext <<EOF
e8f65ba6 9750#line 9751 "configure"
10f2d63a
VZ
9751#include "confdefs.h"
9752#include <sys/types.h>
9753#if STDC_HEADERS
9754#include <stdlib.h>
9755#include <stddef.h>
9756#endif
9757EOF
9758if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9759 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
9760 rm -rf conftest*
9761 ac_cv_type_mode_t=yes
9762else
9763 rm -rf conftest*
9764 ac_cv_type_mode_t=no
9765fi
9766rm -f conftest*
9767
9768fi
9769echo "$ac_t""$ac_cv_type_mode_t" 1>&6
9770if test $ac_cv_type_mode_t = no; then
9771 cat >> confdefs.h <<\EOF
9772#define mode_t int
9773EOF
9774
9775fi
9776
9777echo $ac_n "checking for off_t""... $ac_c" 1>&6
e8f65ba6 9778echo "configure:9779: checking for off_t" >&5
10f2d63a
VZ
9779if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
9780 echo $ac_n "(cached) $ac_c" 1>&6
9781else
9782 cat > conftest.$ac_ext <<EOF
e8f65ba6 9783#line 9784 "configure"
10f2d63a
VZ
9784#include "confdefs.h"
9785#include <sys/types.h>
9786#if STDC_HEADERS
9787#include <stdlib.h>
9788#include <stddef.h>
9789#endif
9790EOF
9791if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9792 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
9793 rm -rf conftest*
9794 ac_cv_type_off_t=yes
9795else
9796 rm -rf conftest*
9797 ac_cv_type_off_t=no
9798fi
9799rm -f conftest*
9800
9801fi
9802echo "$ac_t""$ac_cv_type_off_t" 1>&6
9803if test $ac_cv_type_off_t = no; then
9804 cat >> confdefs.h <<\EOF
9805#define off_t long
9806EOF
9807
9808fi
9809
9810echo $ac_n "checking for pid_t""... $ac_c" 1>&6
e8f65ba6 9811echo "configure:9812: checking for pid_t" >&5
10f2d63a
VZ
9812if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
9813 echo $ac_n "(cached) $ac_c" 1>&6
9814else
9815 cat > conftest.$ac_ext <<EOF
e8f65ba6 9816#line 9817 "configure"
10f2d63a
VZ
9817#include "confdefs.h"
9818#include <sys/types.h>
9819#if STDC_HEADERS
9820#include <stdlib.h>
9821#include <stddef.h>
9822#endif
9823EOF
9824if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9825 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
9826 rm -rf conftest*
9827 ac_cv_type_pid_t=yes
9828else
9829 rm -rf conftest*
9830 ac_cv_type_pid_t=no
9831fi
9832rm -f conftest*
9833
9834fi
9835echo "$ac_t""$ac_cv_type_pid_t" 1>&6
9836if test $ac_cv_type_pid_t = no; then
9837 cat >> confdefs.h <<\EOF
9838#define pid_t int
9839EOF
9840
9841fi
9842
9843echo $ac_n "checking for size_t""... $ac_c" 1>&6
e8f65ba6 9844echo "configure:9845: checking for size_t" >&5
10f2d63a
VZ
9845if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
9846 echo $ac_n "(cached) $ac_c" 1>&6
9847else
9848 cat > conftest.$ac_ext <<EOF
e8f65ba6 9849#line 9850 "configure"
10f2d63a
VZ
9850#include "confdefs.h"
9851#include <sys/types.h>
9852#if STDC_HEADERS
9853#include <stdlib.h>
9854#include <stddef.h>
9855#endif
9856EOF
9857if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9858 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
9859 rm -rf conftest*
9860 ac_cv_type_size_t=yes
9861else
9862 rm -rf conftest*
9863 ac_cv_type_size_t=no
9864fi
9865rm -f conftest*
9866
9867fi
9868echo "$ac_t""$ac_cv_type_size_t" 1>&6
9869if test $ac_cv_type_size_t = no; then
9870 cat >> confdefs.h <<\EOF
9871#define size_t unsigned
9872EOF
9873
9874fi
9875
9876echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
e8f65ba6 9877echo "configure:9878: checking for uid_t in sys/types.h" >&5
10f2d63a
VZ
9878if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
9879 echo $ac_n "(cached) $ac_c" 1>&6
9880else
9881 cat > conftest.$ac_ext <<EOF
e8f65ba6 9882#line 9883 "configure"
10f2d63a
VZ
9883#include "confdefs.h"
9884#include <sys/types.h>
9885EOF
9886if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9887 egrep "uid_t" >/dev/null 2>&1; then
9888 rm -rf conftest*
9889 ac_cv_type_uid_t=yes
9890else
9891 rm -rf conftest*
9892 ac_cv_type_uid_t=no
9893fi
9894rm -f conftest*
9895
9896fi
9897
9898echo "$ac_t""$ac_cv_type_uid_t" 1>&6
9899if test $ac_cv_type_uid_t = no; then
9900 cat >> confdefs.h <<\EOF
9901#define uid_t int
9902EOF
9903
9904 cat >> confdefs.h <<\EOF
9905#define gid_t int
9906EOF
9907
9908fi
9909
9910
9911
b12915c1 9912echo $ac_n "checking for pw_gecos in struct passwd""... $ac_c" 1>&6
e8f65ba6 9913echo "configure:9914: checking for pw_gecos in struct passwd" >&5
b12915c1
VZ
9914if eval "test \"`echo '$''{'wx_cv_struct_pw_gecos'+set}'`\" = set"; then
9915 echo $ac_n "(cached) $ac_c" 1>&6
9916else
9917
9918 cat > conftest.$ac_ext <<EOF
e8f65ba6 9919#line 9920 "configure"
b12915c1
VZ
9920#include "confdefs.h"
9921#include <pwd.h>
9922int main() {
9923
9924 char *p;
9925 struct passwd *pw;
9926 p = pw->pw_gecos;
9927
9928; return 0; }
9929EOF
e8f65ba6 9930if { (eval echo configure:9931: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
b12915c1
VZ
9931 rm -rf conftest*
9932
9933 wx_cv_struct_pw_gecos=yes
b12915c1
VZ
9934
9935else
9936 echo "configure: failed program was:" >&5
9937 cat conftest.$ac_ext >&5
9938 rm -rf conftest*
9939
9940 wx_cv_struct_pw_gecos=no
9941
9942
9943fi
9944rm -f conftest*
9945
9946
9947fi
9948
9949echo "$ac_t""$wx_cv_struct_pw_gecos" 1>&6
9950
bd3277fe
VZ
9951if test "$wx_cv_struct_pw_gecos" = "yes"; then
9952 cat >> confdefs.h <<\EOF
9953#define HAVE_PW_GECOS 1
9954EOF
9955
9956fi
9957
10f2d63a
VZ
9958
9959echo $ac_n "checking for working const""... $ac_c" 1>&6
e8f65ba6 9960echo "configure:9961: checking for working const" >&5
10f2d63a
VZ
9961if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
9962 echo $ac_n "(cached) $ac_c" 1>&6
9963else
9964 cat > conftest.$ac_ext <<EOF
e8f65ba6 9965#line 9966 "configure"
10f2d63a
VZ
9966#include "confdefs.h"
9967
9968int main() {
9969
9970/* Ultrix mips cc rejects this. */
8fd0d89b 9971typedef int charset[2]; const charset x = {0,0};
10f2d63a
VZ
9972/* SunOS 4.1.1 cc rejects this. */
9973char const *const *ccp;
9974char **p;
9975/* NEC SVR4.0.2 mips cc rejects this. */
9976struct point {int x, y;};
9977static struct point const zero = {0,0};
9978/* AIX XL C 1.02.0.0 rejects this.
9979 It does not let you subtract one const X* pointer from another in an arm
9980 of an if-expression whose if-part is not a constant expression */
9981const char *g = "string";
9982ccp = &g + (g ? g-g : 0);
9983/* HPUX 7.0 cc rejects these. */
9984++ccp;
9985p = (char**) ccp;
9986ccp = (char const *const *) p;
9987{ /* SCO 3.2v4 cc rejects this. */
9988 char *t;
9989 char const *s = 0 ? (char *) 0 : (char const *) 0;
9990
9991 *t++ = 0;
9992}
9993{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
9994 int x[] = {25, 17};
9995 const int *foo = &x[0];
9996 ++foo;
9997}
9998{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9999 typedef const int *iptr;
10000 iptr p = 0;
10001 ++p;
10002}
10003{ /* AIX XL C 1.02.0.0 rejects this saying
10004 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
10005 struct s { int j; const int *ap[3]; };
10006 struct s *b; b->j = 5;
10007}
10008{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
10009 const int foo = 10;
10010}
10011
10012; return 0; }
10013EOF
e8f65ba6 10014if { (eval echo configure:10015: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10f2d63a
VZ
10015 rm -rf conftest*
10016 ac_cv_c_const=yes
10017else
10018 echo "configure: failed program was:" >&5
10019 cat conftest.$ac_ext >&5
10020 rm -rf conftest*
10021 ac_cv_c_const=no
10022fi
10023rm -f conftest*
10024fi
10025
10026echo "$ac_t""$ac_cv_c_const" 1>&6
10027if test $ac_cv_c_const = no; then
10028 cat >> confdefs.h <<\EOF
10029#define const
10030EOF
10031
10032fi
10033
10034echo $ac_n "checking for inline""... $ac_c" 1>&6
e8f65ba6 10035echo "configure:10036: checking for inline" >&5
10f2d63a
VZ
10036if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
10037 echo $ac_n "(cached) $ac_c" 1>&6
10038else
10039 ac_cv_c_inline=no
10040for ac_kw in inline __inline__ __inline; do
10041 cat > conftest.$ac_ext <<EOF
e8f65ba6 10042#line 10043 "configure"
10f2d63a
VZ
10043#include "confdefs.h"
10044
10045int main() {
8fd0d89b 10046} int $ac_kw foo() {
10f2d63a
VZ
10047; return 0; }
10048EOF
e8f65ba6 10049if { (eval echo configure:10050: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10f2d63a
VZ
10050 rm -rf conftest*
10051 ac_cv_c_inline=$ac_kw; break
10052else
10053 echo "configure: failed program was:" >&5
10054 cat conftest.$ac_ext >&5
10055fi
10056rm -f conftest*
10057done
10058
10059fi
10060
10061echo "$ac_t""$ac_cv_c_inline" 1>&6
10062case "$ac_cv_c_inline" in
10063 inline | yes) ;;
10064 no) cat >> confdefs.h <<\EOF
10065#define inline
10066EOF
10067 ;;
10068 *) cat >> confdefs.h <<EOF
10069#define inline $ac_cv_c_inline
10070EOF
10071 ;;
10072esac
10073
10074
10075echo $ac_n "checking size of char""... $ac_c" 1>&6
e8f65ba6 10076echo "configure:10077: checking size of char" >&5
10f2d63a
VZ
10077if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then
10078 echo $ac_n "(cached) $ac_c" 1>&6
10079else
10080 if test "$cross_compiling" = yes; then
10081 ac_cv_sizeof_char=1
10082else
10083 cat > conftest.$ac_ext <<EOF
e8f65ba6 10084#line 10085 "configure"
10f2d63a
VZ
10085#include "confdefs.h"
10086#include <stdio.h>
10087main()
10088{
10089 FILE *f=fopen("conftestval", "w");
10090 if (!f) exit(1);
10091 fprintf(f, "%d\n", sizeof(char));
10092 exit(0);
10093}
10094EOF
e8f65ba6 10095if { (eval echo configure:10096: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10f2d63a
VZ
10096then
10097 ac_cv_sizeof_char=`cat conftestval`
10098else
10099 echo "configure: failed program was:" >&5
10100 cat conftest.$ac_ext >&5
10101 rm -fr conftest*
10102 ac_cv_sizeof_char=0
10103fi
10104rm -fr conftest*
10105fi
10106
10107fi
10108echo "$ac_t""$ac_cv_sizeof_char" 1>&6
10109cat >> confdefs.h <<EOF
10110#define SIZEOF_CHAR $ac_cv_sizeof_char
10111EOF
10112
10113
6f72b082 10114echo $ac_n "checking size of wchar_t""... $ac_c" 1>&6
e8f65ba6 10115echo "configure:10116: checking size of wchar_t" >&5
6f72b082
OK
10116if eval "test \"`echo '$''{'ac_cv_sizeof_wchar_t'+set}'`\" = set"; then
10117 echo $ac_n "(cached) $ac_c" 1>&6
10118else
10119 if test "$cross_compiling" = yes; then
10120 ac_cv_sizeof_wchar_t=4
10121else
10122 cat > conftest.$ac_ext <<EOF
e8f65ba6 10123#line 10124 "configure"
6f72b082
OK
10124#include "confdefs.h"
10125#include <stdio.h>
10126main()
10127{
10128 FILE *f=fopen("conftestval", "w");
10129 if (!f) exit(1);
10130 fprintf(f, "%d\n", sizeof(wchar_t));
10131 exit(0);
10132}
10133EOF
e8f65ba6 10134if { (eval echo configure:10135: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6f72b082
OK
10135then
10136 ac_cv_sizeof_wchar_t=`cat conftestval`
10137else
10138 echo "configure: failed program was:" >&5
10139 cat conftest.$ac_ext >&5
10140 rm -fr conftest*
10141 ac_cv_sizeof_wchar_t=0
10142fi
10143rm -fr conftest*
10144fi
10145
10146fi
10147echo "$ac_t""$ac_cv_sizeof_wchar_t" 1>&6
10148cat >> confdefs.h <<EOF
10149#define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
10150EOF
10151
10152
10f2d63a 10153echo $ac_n "checking size of short""... $ac_c" 1>&6
e8f65ba6 10154echo "configure:10155: checking size of short" >&5
10f2d63a
VZ
10155if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
10156 echo $ac_n "(cached) $ac_c" 1>&6
10157else
10158 if test "$cross_compiling" = yes; then
10159 ac_cv_sizeof_short=2
10160else
10161 cat > conftest.$ac_ext <<EOF
e8f65ba6 10162#line 10163 "configure"
10f2d63a
VZ
10163#include "confdefs.h"
10164#include <stdio.h>
10165main()
10166{
10167 FILE *f=fopen("conftestval", "w");
10168 if (!f) exit(1);
10169 fprintf(f, "%d\n", sizeof(short));
10170 exit(0);
10171}
10172EOF
e8f65ba6 10173if { (eval echo configure:10174: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10f2d63a
VZ
10174then
10175 ac_cv_sizeof_short=`cat conftestval`
10176else
10177 echo "configure: failed program was:" >&5
10178 cat conftest.$ac_ext >&5
10179 rm -fr conftest*
10180 ac_cv_sizeof_short=0
10181fi
10182rm -fr conftest*
10183fi
10184
10185fi
10186echo "$ac_t""$ac_cv_sizeof_short" 1>&6
10187cat >> confdefs.h <<EOF
10188#define SIZEOF_SHORT $ac_cv_sizeof_short
10189EOF
10190
10191
10192echo $ac_n "checking size of int *""... $ac_c" 1>&6
e8f65ba6 10193echo "configure:10194: checking size of int *" >&5
10f2d63a
VZ
10194if eval "test \"`echo '$''{'ac_cv_sizeof_int_p'+set}'`\" = set"; then
10195 echo $ac_n "(cached) $ac_c" 1>&6
10196else
10197 if test "$cross_compiling" = yes; then
10198 ac_cv_sizeof_int_p=4
10199else
10200 cat > conftest.$ac_ext <<EOF
e8f65ba6 10201#line 10202 "configure"
10f2d63a
VZ
10202#include "confdefs.h"
10203#include <stdio.h>
10204main()
10205{
10206 FILE *f=fopen("conftestval", "w");
10207 if (!f) exit(1);
10208 fprintf(f, "%d\n", sizeof(int *));
10209 exit(0);
10210}
10211EOF
e8f65ba6 10212if { (eval echo configure:10213: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10f2d63a
VZ
10213then
10214 ac_cv_sizeof_int_p=`cat conftestval`
10215else
10216 echo "configure: failed program was:" >&5
10217 cat conftest.$ac_ext >&5
10218 rm -fr conftest*
10219 ac_cv_sizeof_int_p=0
10220fi
10221rm -fr conftest*
10222fi
10223
10224fi
10225echo "$ac_t""$ac_cv_sizeof_int_p" 1>&6
10226cat >> confdefs.h <<EOF
10227#define SIZEOF_INT_P $ac_cv_sizeof_int_p
10228EOF
10229
10230
10231echo $ac_n "checking size of int""... $ac_c" 1>&6
e8f65ba6 10232echo "configure:10233: checking size of int" >&5
10f2d63a
VZ
10233if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
10234 echo $ac_n "(cached) $ac_c" 1>&6
10235else
10236 if test "$cross_compiling" = yes; then
10237 ac_cv_sizeof_int=4
10238else
10239 cat > conftest.$ac_ext <<EOF
e8f65ba6 10240#line 10241 "configure"
10f2d63a
VZ
10241#include "confdefs.h"
10242#include <stdio.h>
10243main()
10244{
10245 FILE *f=fopen("conftestval", "w");
10246 if (!f) exit(1);
10247 fprintf(f, "%d\n", sizeof(int));
10248 exit(0);
10249}
10250EOF
e8f65ba6 10251if { (eval echo configure:10252: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10f2d63a
VZ
10252then
10253 ac_cv_sizeof_int=`cat conftestval`
10254else
10255 echo "configure: failed program was:" >&5
10256 cat conftest.$ac_ext >&5
10257 rm -fr conftest*
10258 ac_cv_sizeof_int=0
10259fi
10260rm -fr conftest*
10261fi
10262
10263fi
10264echo "$ac_t""$ac_cv_sizeof_int" 1>&6
10265cat >> confdefs.h <<EOF
10266#define SIZEOF_INT $ac_cv_sizeof_int
10267EOF
10268
10269
10270echo $ac_n "checking size of long""... $ac_c" 1>&6
e8f65ba6 10271echo "configure:10272: checking size of long" >&5
10f2d63a
VZ
10272if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
10273 echo $ac_n "(cached) $ac_c" 1>&6
10274else
10275 if test "$cross_compiling" = yes; then
10276 ac_cv_sizeof_long=4
10277else
10278 cat > conftest.$ac_ext <<EOF
e8f65ba6 10279#line 10280 "configure"
10f2d63a
VZ
10280#include "confdefs.h"
10281#include <stdio.h>
10282main()
10283{
10284 FILE *f=fopen("conftestval", "w");
10285 if (!f) exit(1);
10286 fprintf(f, "%d\n", sizeof(long));
10287 exit(0);
10288}
10289EOF
e8f65ba6 10290if { (eval echo configure:10291: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10f2d63a
VZ
10291then
10292 ac_cv_sizeof_long=`cat conftestval`
10293else
10294 echo "configure: failed program was:" >&5
10295 cat conftest.$ac_ext >&5
10296 rm -fr conftest*
10297 ac_cv_sizeof_long=0
10298fi
10299rm -fr conftest*
10300fi
10301
10302fi
10303echo "$ac_t""$ac_cv_sizeof_long" 1>&6
10304cat >> confdefs.h <<EOF
10305#define SIZEOF_LONG $ac_cv_sizeof_long
10306EOF
10307
10308
10309echo $ac_n "checking size of long long""... $ac_c" 1>&6
e8f65ba6 10310echo "configure:10311: checking size of long long" >&5
10f2d63a
VZ
10311if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
10312 echo $ac_n "(cached) $ac_c" 1>&6
10313else
10314 if test "$cross_compiling" = yes; then
10315 ac_cv_sizeof_long_long=0
10316else
10317 cat > conftest.$ac_ext <<EOF
e8f65ba6 10318#line 10319 "configure"
10f2d63a
VZ
10319#include "confdefs.h"
10320#include <stdio.h>
10321main()
10322{
10323 FILE *f=fopen("conftestval", "w");
10324 if (!f) exit(1);
10325 fprintf(f, "%d\n", sizeof(long long));
10326 exit(0);
10327}
10328EOF
e8f65ba6 10329if { (eval echo configure:10330: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10f2d63a
VZ
10330then
10331 ac_cv_sizeof_long_long=`cat conftestval`
10332else
10333 echo "configure: failed program was:" >&5
10334 cat conftest.$ac_ext >&5
10335 rm -fr conftest*
10336 ac_cv_sizeof_long_long=0
10337fi
10338rm -fr conftest*
10339fi
10340
10341fi
10342echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
10343cat >> confdefs.h <<EOF
10344#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
10345EOF
10346
10347
10348
10349echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
e8f65ba6 10350echo "configure:10351: checking whether byte ordering is bigendian" >&5
10f2d63a
VZ
10351if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
10352 echo $ac_n "(cached) $ac_c" 1>&6
10353else
10354 ac_cv_c_bigendian=unknown
10355# See if sys/param.h defines the BYTE_ORDER macro.
10356cat > conftest.$ac_ext <<EOF
e8f65ba6 10357#line 10358 "configure"
10f2d63a
VZ
10358#include "confdefs.h"
10359#include <sys/types.h>
10360#include <sys/param.h>
10361int main() {
10362
10363#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
10364 bogus endian macros
10365#endif
10366; return 0; }
10367EOF
e8f65ba6 10368if { (eval echo configure:10369: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10f2d63a
VZ
10369 rm -rf conftest*
10370 # It does; now see whether it defined to BIG_ENDIAN or not.
10371cat > conftest.$ac_ext <<EOF
e8f65ba6 10372#line 10373 "configure"
10f2d63a
VZ
10373#include "confdefs.h"
10374#include <sys/types.h>
10375#include <sys/param.h>
10376int main() {
10377
10378#if BYTE_ORDER != BIG_ENDIAN
10379 not big endian
10380#endif
10381; return 0; }
10382EOF
e8f65ba6 10383if { (eval echo configure:10384: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10f2d63a
VZ
10384 rm -rf conftest*
10385 ac_cv_c_bigendian=yes
10386else
10387 echo "configure: failed program was:" >&5
10388 cat conftest.$ac_ext >&5
10389 rm -rf conftest*
10390 ac_cv_c_bigendian=no
10391fi
10392rm -f conftest*
10393else
10394 echo "configure: failed program was:" >&5
10395 cat conftest.$ac_ext >&5
10396fi
10397rm -f conftest*
10398if test $ac_cv_c_bigendian = unknown; then
10399if test "$cross_compiling" = yes; then
10400 ac_cv_c_bigendian=unknown
10401else
10402 cat > conftest.$ac_ext <<EOF
e8f65ba6 10403#line 10404 "configure"
10f2d63a
VZ
10404#include "confdefs.h"
10405main () {
10406 /* Are we little or big endian? From Harbison&Steele. */
10407 union
10408 {
10409 long l;
10410 char c[sizeof (long)];
10411 } u;
10412 u.l = 1;
10413 exit (u.c[sizeof (long) - 1] == 1);
10414}
10415EOF
e8f65ba6 10416if { (eval echo configure:10417: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10f2d63a
VZ
10417then
10418 ac_cv_c_bigendian=no
10419else
10420 echo "configure: failed program was:" >&5
10421 cat conftest.$ac_ext >&5
10422 rm -fr conftest*
10423 ac_cv_c_bigendian=yes
10424fi
10425rm -fr conftest*
10426fi
10427
10428fi
10429fi
10430
10431echo "$ac_t""$ac_cv_c_bigendian" 1>&6
10432if test $ac_cv_c_bigendian = unknown; then
10433 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
10434fi
10435if test $ac_cv_c_bigendian = yes; then
10436 cat >> confdefs.h <<\EOF
10437#define WORDS_BIGENDIAN 1
10438EOF
10439
10440fi
10441
10442
10443
10444 if test "$cross_compiling" = "yes"; then
10445 cat >> confdefs.h <<\EOF
10446#define wxUSE_IOSTREAMH 1
10447EOF
10448
10449 else
10450
10451 ac_ext=C
10452# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10453ac_cpp='$CXXCPP $CPPFLAGS'
10454ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10455ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10456cross_compiling=$ac_cv_prog_cxx_cross
10457
10458
10459 for ac_hdr in iostream
10460do
10461ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10462echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
e8f65ba6 10463echo "configure:10464: checking for $ac_hdr" >&5
10f2d63a
VZ
10464if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10465 echo $ac_n "(cached) $ac_c" 1>&6
10466else
10467 cat > conftest.$ac_ext <<EOF
e8f65ba6 10468#line 10469 "configure"
10f2d63a
VZ
10469#include "confdefs.h"
10470#include <$ac_hdr>
10471EOF
10472ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
e8f65ba6 10473{ (eval echo configure:10474: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
10474ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10475if test -z "$ac_err"; then
10476 rm -rf conftest*
10477 eval "ac_cv_header_$ac_safe=yes"
10478else
10479 echo "$ac_err" >&5
10480 echo "configure: failed program was:" >&5
10481 cat conftest.$ac_ext >&5
10482 rm -rf conftest*
10483 eval "ac_cv_header_$ac_safe=no"
10484fi
10485rm -f conftest*
10486fi
10487if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10488 echo "$ac_t""yes" 1>&6
10489 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10490 cat >> confdefs.h <<EOF
10491#define $ac_tr_hdr 1
10492EOF
10493
10494else
10495 echo "$ac_t""no" 1>&6
10496fi
10497done
10498
10499
10500 if test "x$HAVE_IOSTREAM" = x ; then
10501 cat >> confdefs.h <<\EOF
10502#define wxUSE_IOSTREAMH 1
10503EOF
10504
10505 else
10506 :
10507 fi
10508
10509 ac_ext=c
10510# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10511ac_cpp='$CPP $CPPFLAGS'
10512ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10513ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10514cross_compiling=$ac_cv_prog_cc_cross
10515
10516 fi
10517
10518
10519
10520 echo $ac_n "checking if C++ compiler supports bool""... $ac_c" 1>&6
e8f65ba6 10521echo "configure:10522: checking if C++ compiler supports bool" >&5
10f2d63a
VZ
10522if eval "test \"`echo '$''{'wx_cv_cpp_bool'+set}'`\" = set"; then
10523 echo $ac_n "(cached) $ac_c" 1>&6
10524else
10525
10526
10527 ac_ext=C
10528# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10529ac_cpp='$CXXCPP $CPPFLAGS'
10530ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10531ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10532cross_compiling=$ac_cv_prog_cxx_cross
10533
10534
10535 cat > conftest.$ac_ext <<EOF
e8f65ba6 10536#line 10537 "configure"
10f2d63a
VZ
10537#include "confdefs.h"
10538
10539
10540int main() {
10541
10542 bool b = true;
10543
10544 return 0;
10545
10546; return 0; }
10547EOF
e8f65ba6 10548if { (eval echo configure:10549: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10f2d63a
VZ
10549 rm -rf conftest*
10550
10551 cat >> confdefs.h <<\EOF
10552#define HAVE_BOOL 1
10553EOF
10554
10555 wx_cv_cpp_bool=yes
10556
10557else
10558 echo "configure: failed program was:" >&5
10559 cat conftest.$ac_ext >&5
10560 rm -rf conftest*
10561
10562 wx_cv_cpp_bool=no
10563
10564
10565fi
10566rm -f conftest*
10567
10568 ac_ext=c
10569# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10570ac_cpp='$CPP $CPPFLAGS'
10571ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10572ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10573cross_compiling=$ac_cv_prog_cc_cross
10574
10575
10576fi
10577
10578echo "$ac_t""$wx_cv_cpp_bool" 1>&6
10579
10580 if test "$wx_cv_cpp_bool" = "yes"; then
10581 cat >> confdefs.h <<\EOF
10582#define HAVE_BOOL 1
10583EOF
10584
10585 fi
10586
10587
10588
10f2d63a 10589echo $ac_n "checking if you need GNU extensions""... $ac_c" 1>&6
e8f65ba6 10590echo "configure:10591: checking if you need GNU extensions" >&5
10f2d63a
VZ
10591if eval "test \"`echo '$''{'wx_cv_gnu_extensions'+set}'`\" = set"; then
10592 echo $ac_n "(cached) $ac_c" 1>&6
10593else
10594
10595 cat > conftest.$ac_ext <<EOF
e8f65ba6 10596#line 10597 "configure"
10f2d63a
VZ
10597#include "confdefs.h"
10598#include <features.h>
10599int main() {
10600
10601
10602#ifndef __GNU_LIBRARY__
10603 Compile error wanted
10604#endif
10605
10606
10607; return 0; }
10608EOF
e8f65ba6 10609if { (eval echo configure:10610: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10f2d63a
VZ
10610 rm -rf conftest*
10611 wx_cv_gnu_extensions=yes
10612else
10613 echo "configure: failed program was:" >&5
10614 cat conftest.$ac_ext >&5
10615 rm -rf conftest*
10616 wx_cv_gnu_extensions=no
10617fi
10618rm -f conftest*
10619
10620fi
10621
10622
10623echo "$ac_t""$wx_cv_gnu_extensions" 1>&6
10624if test "$wx_cv_gnu_extensions" = "yes"; then
10625 cat >> confdefs.h <<EOF
10626#define _GNU_SOURCE 1
10627EOF
10628
10629fi
10630
10631
10632
10633echo $ac_n "checking for wcslen in -lc""... $ac_c" 1>&6
e8f65ba6 10634echo "configure:10635: checking for wcslen in -lc" >&5
10f2d63a
VZ
10635ac_lib_var=`echo c'_'wcslen | sed 'y%./+-%__p_%'`
10636if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10637 echo $ac_n "(cached) $ac_c" 1>&6
10638else
10639 ac_save_LIBS="$LIBS"
10640LIBS="-lc $LIBS"
10641cat > conftest.$ac_ext <<EOF
e8f65ba6 10642#line 10643 "configure"
10f2d63a
VZ
10643#include "confdefs.h"
10644/* Override any gcc2 internal prototype to avoid an error. */
10645/* We use char because int might match the return type of a gcc2
10646 builtin and then its argument prototype would still apply. */
10647char wcslen();
10648
10649int main() {
10650wcslen()
10651; return 0; }
10652EOF
e8f65ba6 10653if { (eval echo configure:10654: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
10654 rm -rf conftest*
10655 eval "ac_cv_lib_$ac_lib_var=yes"
10656else
10657 echo "configure: failed program was:" >&5
10658 cat conftest.$ac_ext >&5
10659 rm -rf conftest*
10660 eval "ac_cv_lib_$ac_lib_var=no"
10661fi
10662rm -f conftest*
10663LIBS="$ac_save_LIBS"
10664
10665fi
10666if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10667 echo "$ac_t""yes" 1>&6
10668
10669 cat >> confdefs.h <<\EOF
10670#define HAVE_WCSLEN 1
10671EOF
10672
10673 WCHAR_LINK=""
10674
10675else
10676 echo "$ac_t""no" 1>&6
10677
10678 echo $ac_n "checking for wcslen in -lw""... $ac_c" 1>&6
e8f65ba6 10679echo "configure:10680: checking for wcslen in -lw" >&5
10f2d63a
VZ
10680ac_lib_var=`echo w'_'wcslen | sed 'y%./+-%__p_%'`
10681if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10682 echo $ac_n "(cached) $ac_c" 1>&6
10683else
10684 ac_save_LIBS="$LIBS"
10685LIBS="-lw $LIBS"
10686cat > conftest.$ac_ext <<EOF
e8f65ba6 10687#line 10688 "configure"
10f2d63a
VZ
10688#include "confdefs.h"
10689/* Override any gcc2 internal prototype to avoid an error. */
10690/* We use char because int might match the return type of a gcc2
10691 builtin and then its argument prototype would still apply. */
10692char wcslen();
10693
10694int main() {
10695wcslen()
10696; return 0; }
10697EOF
e8f65ba6 10698if { (eval echo configure:10699: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
10699 rm -rf conftest*
10700 eval "ac_cv_lib_$ac_lib_var=yes"
10701else
10702 echo "configure: failed program was:" >&5
10703 cat conftest.$ac_ext >&5
10704 rm -rf conftest*
10705 eval "ac_cv_lib_$ac_lib_var=no"
10706fi
10707rm -f conftest*
10708LIBS="$ac_save_LIBS"
10709
10710fi
10711if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10712 echo "$ac_t""yes" 1>&6
10713
10714 cat >> confdefs.h <<\EOF
10715#define HAVE_WCSLEN 1
10716EOF
10717
10718 WCHAR_LINK="-lw"
10719
10720else
10721 echo "$ac_t""no" 1>&6
10722fi
10723
10724
10725fi
10726
10727
10728echo $ac_n "checking for vprintf""... $ac_c" 1>&6
e8f65ba6 10729echo "configure:10730: checking for vprintf" >&5
10f2d63a
VZ
10730if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
10731 echo $ac_n "(cached) $ac_c" 1>&6
10732else
10733 cat > conftest.$ac_ext <<EOF
e8f65ba6 10734#line 10735 "configure"
10f2d63a
VZ
10735#include "confdefs.h"
10736/* System header to define __stub macros and hopefully few prototypes,
10737 which can conflict with char vprintf(); below. */
10738#include <assert.h>
10739/* Override any gcc2 internal prototype to avoid an error. */
10740/* We use char because int might match the return type of a gcc2
10741 builtin and then its argument prototype would still apply. */
10742char vprintf();
10743
10744int main() {
10745
10746/* The GNU C library defines this for functions which it implements
10747 to always fail with ENOSYS. Some functions are actually named
10748 something starting with __ and the normal name is an alias. */
10749#if defined (__stub_vprintf) || defined (__stub___vprintf)
10750choke me
10751#else
e8482f24 10752vprintf();
10f2d63a
VZ
10753#endif
10754
10755; return 0; }
10756EOF
e8f65ba6 10757if { (eval echo configure:10758: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
10758 rm -rf conftest*
10759 eval "ac_cv_func_vprintf=yes"
10760else
10761 echo "configure: failed program was:" >&5
10762 cat conftest.$ac_ext >&5
10763 rm -rf conftest*
10764 eval "ac_cv_func_vprintf=no"
10765fi
10766rm -f conftest*
10767fi
10768
10769if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
10770 echo "$ac_t""yes" 1>&6
10771 cat >> confdefs.h <<\EOF
10772#define HAVE_VPRINTF 1
10773EOF
10774
10775else
10776 echo "$ac_t""no" 1>&6
10777fi
10778
10779if test "$ac_cv_func_vprintf" != yes; then
10780echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
e8f65ba6 10781echo "configure:10782: checking for _doprnt" >&5
10f2d63a
VZ
10782if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
10783 echo $ac_n "(cached) $ac_c" 1>&6
10784else
10785 cat > conftest.$ac_ext <<EOF
e8f65ba6 10786#line 10787 "configure"
10f2d63a
VZ
10787#include "confdefs.h"
10788/* System header to define __stub macros and hopefully few prototypes,
10789 which can conflict with char _doprnt(); below. */
10790#include <assert.h>
10791/* Override any gcc2 internal prototype to avoid an error. */
10792/* We use char because int might match the return type of a gcc2
10793 builtin and then its argument prototype would still apply. */
10794char _doprnt();
10795
10796int main() {
10797
10798/* The GNU C library defines this for functions which it implements
10799 to always fail with ENOSYS. Some functions are actually named
10800 something starting with __ and the normal name is an alias. */
10801#if defined (__stub__doprnt) || defined (__stub____doprnt)
10802choke me
10803#else
e8482f24 10804_doprnt();
10f2d63a
VZ
10805#endif
10806
10807; return 0; }
10808EOF
e8f65ba6 10809if { (eval echo configure:10810: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
10810 rm -rf conftest*
10811 eval "ac_cv_func__doprnt=yes"
10812else
10813 echo "configure: failed program was:" >&5
10814 cat conftest.$ac_ext >&5
10815 rm -rf conftest*
10816 eval "ac_cv_func__doprnt=no"
10817fi
10818rm -f conftest*
10819fi
10820
10821if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
10822 echo "$ac_t""yes" 1>&6
10823 cat >> confdefs.h <<\EOF
10824#define HAVE_DOPRNT 1
10825EOF
10826
10827else
10828 echo "$ac_t""no" 1>&6
10829fi
10830
10831fi
10832
10833
10f2d63a 10834
f6bcfd97
BP
10835ac_ext=C
10836# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10837ac_cpp='$CXXCPP $CPPFLAGS'
10838ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10839ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10840cross_compiling=$ac_cv_prog_cxx_cross
10841
10842
10843
10844
10845echo $ac_n "checking for vsnprintf""... $ac_c" 1>&6
e8f65ba6 10846echo "configure:10847: checking for vsnprintf" >&5
f6bcfd97
BP
10847if eval "test \"`echo '$''{'wx_cv_func_vsnprintf'+set}'`\" = set"; then
10848 echo $ac_n "(cached) $ac_c" 1>&6
10849else
10850
10851 cat > conftest.$ac_ext <<EOF
e8f65ba6 10852#line 10853 "configure"
f6bcfd97
BP
10853#include "confdefs.h"
10854
10855 #include <stdio.h>
10856 #include <stdarg.h>
10857
10f2d63a
VZ
10858int main() {
10859
f6bcfd97 10860 int wx_test_vsnprintf(const char *, ...);
10f2d63a 10861
f6bcfd97
BP
10862 wx_test_vsnprintf("%s");
10863 return 0;
10864 }
10865
10866 int wx_test_vsnprintf(const char *fmt, ...)
10867 {
10868 char *s;
10869
10870 va_list argp;
10871 va_start(argp, fmt);
10872 vsnprintf(s, 42, fmt, argp);
10873 va_end(argp);
10874
10f2d63a
VZ
10875; return 0; }
10876EOF
e8f65ba6 10877if { (eval echo configure:10878: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10f2d63a 10878 rm -rf conftest*
f6bcfd97
BP
10879
10880 cat >> confdefs.h <<\EOF
10881#define HAVE_VSNPRINTF 1
10882EOF
10883
10884 wx_cv_func_vsnprintf=yes
10885
10f2d63a
VZ
10886else
10887 echo "configure: failed program was:" >&5
10888 cat conftest.$ac_ext >&5
10889 rm -rf conftest*
f6bcfd97
BP
10890
10891 echo "configure: warning: unsafe function sprintf will be used instead of snprintf" 1>&2
10892 wx_cv_func_vsnprintf=no
10893
10f2d63a
VZ
10894fi
10895rm -f conftest*
10f2d63a 10896
10f2d63a 10897fi
10f2d63a 10898
f6bcfd97 10899echo "$ac_t""$wx_cv_func_vsnprintf" 1>&6
10f2d63a
VZ
10900
10901echo $ac_n "checking for vsscanf""... $ac_c" 1>&6
e8f65ba6 10902echo "configure:10903: checking for vsscanf" >&5
10f2d63a
VZ
10903if eval "test \"`echo '$''{'wx_cv_func_vsscanf'+set}'`\" = set"; then
10904 echo $ac_n "(cached) $ac_c" 1>&6
10905else
10906
10f2d63a 10907 cat > conftest.$ac_ext <<EOF
e8f65ba6 10908#line 10909 "configure"
10f2d63a 10909#include "confdefs.h"
10f2d63a 10910
f6bcfd97
BP
10911 #include <stdio.h>
10912 #include <stdarg.h>
10913
10914int main() {
10f2d63a 10915
f6bcfd97 10916 int wx_test_vsscanf(const char *, ...);
10f2d63a 10917
f6bcfd97
BP
10918 wx_test_vsscanf("%d");
10919 return 0;
10f2d63a
VZ
10920 }
10921
f6bcfd97 10922 int wx_test_vsscanf(const char *fmt, ...)
10f2d63a 10923 {
f6bcfd97
BP
10924 va_list argp;
10925 va_start(argp, fmt);
10926 vsscanf("42", fmt, argp);
10927 va_end(argp);
10928
10929; return 0; }
10f2d63a 10930EOF
e8f65ba6 10931if { (eval echo configure:10932: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
f6bcfd97 10932 rm -rf conftest*
10f2d63a 10933
f6bcfd97 10934 cat >> confdefs.h <<\EOF
10f2d63a
VZ
10935#define HAVE_VSSCANF 1
10936EOF
10937
f6bcfd97
BP
10938 wx_cv_func_vsscanf=yes
10939
10f2d63a
VZ
10940else
10941 echo "configure: failed program was:" >&5
10942 cat conftest.$ac_ext >&5
f6bcfd97
BP
10943 rm -rf conftest*
10944
10945 wx_cv_func_vsscanf=no
10946
10f2d63a 10947fi
f6bcfd97 10948rm -f conftest*
10f2d63a
VZ
10949
10950fi
10951
10952echo "$ac_t""$wx_cv_func_vsscanf" 1>&6
10953
10954ac_ext=c
10955# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10956ac_cpp='$CPP $CPPFLAGS'
10957ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10958ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10959cross_compiling=$ac_cv_prog_cc_cross
10960
10961
b089607b 10962if test "$TOOLKIT" != "MSW"; then
10f2d63a 10963
eb4efbdc
VZ
10964if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
10965 for ac_func in sigaction
10966do
10967echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
e8f65ba6 10968echo "configure:10969: checking for $ac_func" >&5
eb4efbdc
VZ
10969if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10970 echo $ac_n "(cached) $ac_c" 1>&6
10971else
10972 cat > conftest.$ac_ext <<EOF
e8f65ba6 10973#line 10974 "configure"
eb4efbdc
VZ
10974#include "confdefs.h"
10975/* System header to define __stub macros and hopefully few prototypes,
10976 which can conflict with char $ac_func(); below. */
10977#include <assert.h>
10978/* Override any gcc2 internal prototype to avoid an error. */
10979/* We use char because int might match the return type of a gcc2
10980 builtin and then its argument prototype would still apply. */
10981char $ac_func();
10982
10983int main() {
10984
10985/* The GNU C library defines this for functions which it implements
10986 to always fail with ENOSYS. Some functions are actually named
10987 something starting with __ and the normal name is an alias. */
10988#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10989choke me
10990#else
10991$ac_func();
10992#endif
10993
10994; return 0; }
10995EOF
e8f65ba6 10996if { (eval echo configure:10997: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
eb4efbdc
VZ
10997 rm -rf conftest*
10998 eval "ac_cv_func_$ac_func=yes"
10999else
11000 echo "configure: failed program was:" >&5
11001 cat conftest.$ac_ext >&5
11002 rm -rf conftest*
11003 eval "ac_cv_func_$ac_func=no"
11004fi
11005rm -f conftest*
11006fi
11007
11008if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11009 echo "$ac_t""yes" 1>&6
11010 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11011 cat >> confdefs.h <<EOF
11012#define $ac_tr_func 1
11013EOF
11014
11015else
11016 echo "$ac_t""no" 1>&6
11017fi
11018done
11019
11020
11021 if test "$ac_cv_func_sigaction" = "no"; then
11022 echo "configure: warning: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" 1>&2
11023 wxUSE_ON_FATAL_EXCEPTION=no
11024 fi
f6bcfd97
BP
11025
11026 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
11027
11028 ac_ext=C
11029# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11030ac_cpp='$CXXCPP $CPPFLAGS'
11031ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11032ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11033cross_compiling=$ac_cv_prog_cxx_cross
11034
11035
11036 echo $ac_n "checking for sa_handler type""... $ac_c" 1>&6
e8f65ba6 11037echo "configure:11038: checking for sa_handler type" >&5
f6bcfd97
BP
11038if eval "test \"`echo '$''{'wx_cv_type_sa_handler'+set}'`\" = set"; then
11039 echo $ac_n "(cached) $ac_c" 1>&6
11040else
11041
11042 cat > conftest.$ac_ext <<EOF
e8f65ba6 11043#line 11044 "configure"
f6bcfd97
BP
11044#include "confdefs.h"
11045#include <signal.h>
11046int main() {
11047
11048 extern void testSigHandler(int);
11049
11050 struct sigaction sa;
11051 sa.sa_handler = testSigHandler;
11052
11053; return 0; }
11054EOF
e8f65ba6 11055if { (eval echo configure:11056: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
f6bcfd97
BP
11056 rm -rf conftest*
11057
11058 wx_cv_type_sa_handler=int
11059
11060else
11061 echo "configure: failed program was:" >&5
11062 cat conftest.$ac_ext >&5
11063 rm -rf conftest*
11064
11065 wx_cv_type_sa_handler=void
11066
11067fi
11068rm -f conftest*
11069
11070fi
11071
11072echo "$ac_t""$wx_cv_type_sa_handler" 1>&6
11073
11074 ac_ext=c
11075# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11076ac_cpp='$CPP $CPPFLAGS'
11077ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11078ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11079cross_compiling=$ac_cv_prog_cc_cross
11080
11081
11082 cat >> confdefs.h <<EOF
11083#define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
11084EOF
11085
11086 fi
eb4efbdc
VZ
11087fi
11088
10f2d63a
VZ
11089for ac_func in vfork
11090do
11091echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
e8f65ba6 11092echo "configure:11093: checking for $ac_func" >&5
10f2d63a
VZ
11093if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11094 echo $ac_n "(cached) $ac_c" 1>&6
11095else
11096 cat > conftest.$ac_ext <<EOF
e8f65ba6 11097#line 11098 "configure"
10f2d63a
VZ
11098#include "confdefs.h"
11099/* System header to define __stub macros and hopefully few prototypes,
11100 which can conflict with char $ac_func(); below. */
11101#include <assert.h>
11102/* Override any gcc2 internal prototype to avoid an error. */
11103/* We use char because int might match the return type of a gcc2
11104 builtin and then its argument prototype would still apply. */
11105char $ac_func();
11106
11107int main() {
11108
11109/* The GNU C library defines this for functions which it implements
11110 to always fail with ENOSYS. Some functions are actually named
11111 something starting with __ and the normal name is an alias. */
11112#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11113choke me
11114#else
e8482f24 11115$ac_func();
10f2d63a
VZ
11116#endif
11117
11118; return 0; }
11119EOF
e8f65ba6 11120if { (eval echo configure:11121: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
270a909e
VZ
11121 rm -rf conftest*
11122 eval "ac_cv_func_$ac_func=yes"
11123else
11124 echo "configure: failed program was:" >&5
11125 cat conftest.$ac_ext >&5
11126 rm -rf conftest*
11127 eval "ac_cv_func_$ac_func=no"
11128fi
11129rm -f conftest*
11130fi
11131
11132if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11133 echo "$ac_t""yes" 1>&6
11134 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11135 cat >> confdefs.h <<EOF
11136#define $ac_tr_func 1
11137EOF
11138
11139else
11140 echo "$ac_t""no" 1>&6
11141fi
11142done
11143
11144
11145for ac_func in timegm
11146do
11147echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
e8f65ba6 11148echo "configure:11149: checking for $ac_func" >&5
270a909e
VZ
11149if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11150 echo $ac_n "(cached) $ac_c" 1>&6
11151else
11152 cat > conftest.$ac_ext <<EOF
e8f65ba6 11153#line 11154 "configure"
270a909e
VZ
11154#include "confdefs.h"
11155/* System header to define __stub macros and hopefully few prototypes,
11156 which can conflict with char $ac_func(); below. */
11157#include <assert.h>
11158/* Override any gcc2 internal prototype to avoid an error. */
11159/* We use char because int might match the return type of a gcc2
11160 builtin and then its argument prototype would still apply. */
11161char $ac_func();
11162
11163int main() {
11164
11165/* The GNU C library defines this for functions which it implements
11166 to always fail with ENOSYS. Some functions are actually named
11167 something starting with __ and the normal name is an alias. */
11168#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11169choke me
11170#else
e8482f24 11171$ac_func();
270a909e
VZ
11172#endif
11173
11174; return 0; }
11175EOF
e8f65ba6 11176if { (eval echo configure:11177: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
11177 rm -rf conftest*
11178 eval "ac_cv_func_$ac_func=yes"
11179else
11180 echo "configure: failed program was:" >&5
11181 cat conftest.$ac_ext >&5
11182 rm -rf conftest*
11183 eval "ac_cv_func_$ac_func=no"
11184fi
11185rm -f conftest*
11186fi
11187
11188if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11189 echo "$ac_t""yes" 1>&6
11190 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11191 cat >> confdefs.h <<EOF
11192#define $ac_tr_func 1
11193EOF
11194
11195else
11196 echo "$ac_t""no" 1>&6
11197fi
11198done
11199
11200
8fd0d89b
VZ
11201for ac_func in putenv setenv
11202do
11203echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11204echo "configure:11205: checking for $ac_func" >&5
11205if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11206 echo $ac_n "(cached) $ac_c" 1>&6
11207else
11208 cat > conftest.$ac_ext <<EOF
11209#line 11210 "configure"
11210#include "confdefs.h"
11211/* System header to define __stub macros and hopefully few prototypes,
11212 which can conflict with char $ac_func(); below. */
11213#include <assert.h>
11214/* Override any gcc2 internal prototype to avoid an error. */
11215/* We use char because int might match the return type of a gcc2
11216 builtin and then its argument prototype would still apply. */
11217char $ac_func();
11218
11219int main() {
11220
11221/* The GNU C library defines this for functions which it implements
11222 to always fail with ENOSYS. Some functions are actually named
11223 something starting with __ and the normal name is an alias. */
11224#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11225choke me
11226#else
11227$ac_func();
11228#endif
11229
11230; return 0; }
11231EOF
11232if { (eval echo configure:11233: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11233 rm -rf conftest*
11234 eval "ac_cv_func_$ac_func=yes"
11235else
11236 echo "configure: failed program was:" >&5
11237 cat conftest.$ac_ext >&5
11238 rm -rf conftest*
11239 eval "ac_cv_func_$ac_func=no"
11240fi
11241rm -f conftest*
11242fi
11243
11244if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11245 echo "$ac_t""yes" 1>&6
11246 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11247 cat >> confdefs.h <<EOF
11248#define $ac_tr_func 1
11249EOF
11250 break
11251else
11252 echo "$ac_t""no" 1>&6
11253fi
11254done
11255
11256
b12915c1
VZ
11257HAVE_SOME_SLEEP_FUNC=0
11258if test "$USE_BEOS" = 1; then
11259 cat >> confdefs.h <<\EOF
11260#define HAVE_SLEEP 1
11261EOF
11262
11263 HAVE_SOME_SLEEP_FUNC=1
11264fi
11265
11266if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
11267 POSIX4_LINK=
11268 for ac_func in nanosleep
10f2d63a
VZ
11269do
11270echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8fd0d89b 11271echo "configure:11272: checking for $ac_func" >&5
10f2d63a
VZ
11272if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11273 echo $ac_n "(cached) $ac_c" 1>&6
11274else
11275 cat > conftest.$ac_ext <<EOF
8fd0d89b 11276#line 11277 "configure"
10f2d63a
VZ
11277#include "confdefs.h"
11278/* System header to define __stub macros and hopefully few prototypes,
11279 which can conflict with char $ac_func(); below. */
11280#include <assert.h>
11281/* Override any gcc2 internal prototype to avoid an error. */
11282/* We use char because int might match the return type of a gcc2
11283 builtin and then its argument prototype would still apply. */
11284char $ac_func();
11285
11286int main() {
11287
11288/* The GNU C library defines this for functions which it implements
11289 to always fail with ENOSYS. Some functions are actually named
11290 something starting with __ and the normal name is an alias. */
11291#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11292choke me
11293#else
e8482f24 11294$ac_func();
10f2d63a
VZ
11295#endif
11296
11297; return 0; }
11298EOF
8fd0d89b 11299if { (eval echo configure:11300: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
11300 rm -rf conftest*
11301 eval "ac_cv_func_$ac_func=yes"
11302else
11303 echo "configure: failed program was:" >&5
11304 cat conftest.$ac_ext >&5
11305 rm -rf conftest*
11306 eval "ac_cv_func_$ac_func=no"
11307fi
11308rm -f conftest*
11309fi
11310
11311if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11312 echo "$ac_t""yes" 1>&6
11313 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11314 cat >> confdefs.h <<EOF
11315#define $ac_tr_func 1
11316EOF
11317 cat >> confdefs.h <<\EOF
11318#define HAVE_NANOSLEEP 1
11319EOF
11320
11321else
11322 echo "$ac_t""no" 1>&6
11323echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6
8fd0d89b 11324echo "configure:11325: checking for nanosleep in -lposix4" >&5
10f2d63a
VZ
11325ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'`
11326if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11327 echo $ac_n "(cached) $ac_c" 1>&6
11328else
11329 ac_save_LIBS="$LIBS"
11330LIBS="-lposix4 $LIBS"
11331cat > conftest.$ac_ext <<EOF
8fd0d89b 11332#line 11333 "configure"
10f2d63a
VZ
11333#include "confdefs.h"
11334/* Override any gcc2 internal prototype to avoid an error. */
11335/* We use char because int might match the return type of a gcc2
11336 builtin and then its argument prototype would still apply. */
11337char nanosleep();
11338
11339int main() {
11340nanosleep()
11341; return 0; }
11342EOF
8fd0d89b 11343if { (eval echo configure:11344: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
11344 rm -rf conftest*
11345 eval "ac_cv_lib_$ac_lib_var=yes"
11346else
11347 echo "configure: failed program was:" >&5
11348 cat conftest.$ac_ext >&5
11349 rm -rf conftest*
11350 eval "ac_cv_lib_$ac_lib_var=no"
11351fi
11352rm -f conftest*
11353LIBS="$ac_save_LIBS"
11354
11355fi
11356if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11357 echo "$ac_t""yes" 1>&6
11358
b12915c1 11359 cat >> confdefs.h <<\EOF
10f2d63a
VZ
11360#define HAVE_NANOSLEEP 1
11361EOF
11362
b12915c1
VZ
11363 POSIX4_LINK="-lposix4"
11364
10f2d63a
VZ
11365else
11366 echo "$ac_t""no" 1>&6
11367
b12915c1 11368 for ac_func in usleep
10f2d63a
VZ
11369do
11370echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8fd0d89b 11371echo "configure:11372: checking for $ac_func" >&5
10f2d63a
VZ
11372if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11373 echo $ac_n "(cached) $ac_c" 1>&6
11374else
11375 cat > conftest.$ac_ext <<EOF
8fd0d89b 11376#line 11377 "configure"
10f2d63a
VZ
11377#include "confdefs.h"
11378/* System header to define __stub macros and hopefully few prototypes,
11379 which can conflict with char $ac_func(); below. */
11380#include <assert.h>
11381/* Override any gcc2 internal prototype to avoid an error. */
11382/* We use char because int might match the return type of a gcc2
11383 builtin and then its argument prototype would still apply. */
11384char $ac_func();
11385
11386int main() {
11387
11388/* The GNU C library defines this for functions which it implements
11389 to always fail with ENOSYS. Some functions are actually named
11390 something starting with __ and the normal name is an alias. */
11391#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11392choke me
11393#else
e8482f24 11394$ac_func();
10f2d63a
VZ
11395#endif
11396
11397; return 0; }
11398EOF
8fd0d89b 11399if { (eval echo configure:11400: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
11400 rm -rf conftest*
11401 eval "ac_cv_func_$ac_func=yes"
11402else
11403 echo "configure: failed program was:" >&5
11404 cat conftest.$ac_ext >&5
11405 rm -rf conftest*
11406 eval "ac_cv_func_$ac_func=no"
11407fi
11408rm -f conftest*
11409fi
11410
11411if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11412 echo "$ac_t""yes" 1>&6
11413 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11414 cat >> confdefs.h <<EOF
11415#define $ac_tr_func 1
11416EOF
b12915c1 11417
10f2d63a
VZ
11418else
11419 echo "$ac_t""no" 1>&6
10f2d63a
VZ
11420fi
11421done
11422
b12915c1
VZ
11423 echo "configure: warning: wxSleep() function will not work" 1>&2
11424
11425
10f2d63a
VZ
11426fi
11427
b12915c1
VZ
11428
11429
10f2d63a
VZ
11430fi
11431done
11432
b12915c1 11433fi
10f2d63a
VZ
11434
11435for ac_func in uname gethostname
11436do
11437echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8fd0d89b 11438echo "configure:11439: checking for $ac_func" >&5
10f2d63a
VZ
11439if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11440 echo $ac_n "(cached) $ac_c" 1>&6
11441else
11442 cat > conftest.$ac_ext <<EOF
8fd0d89b 11443#line 11444 "configure"
10f2d63a
VZ
11444#include "confdefs.h"
11445/* System header to define __stub macros and hopefully few prototypes,
11446 which can conflict with char $ac_func(); below. */
11447#include <assert.h>
11448/* Override any gcc2 internal prototype to avoid an error. */
11449/* We use char because int might match the return type of a gcc2
11450 builtin and then its argument prototype would still apply. */
11451char $ac_func();
11452
11453int main() {
11454
11455/* The GNU C library defines this for functions which it implements
11456 to always fail with ENOSYS. Some functions are actually named
11457 something starting with __ and the normal name is an alias. */
11458#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11459choke me
11460#else
e8482f24 11461$ac_func();
10f2d63a
VZ
11462#endif
11463
11464; return 0; }
11465EOF
8fd0d89b 11466if { (eval echo configure:11467: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
11467 rm -rf conftest*
11468 eval "ac_cv_func_$ac_func=yes"
11469else
11470 echo "configure: failed program was:" >&5
11471 cat conftest.$ac_ext >&5
11472 rm -rf conftest*
11473 eval "ac_cv_func_$ac_func=no"
11474fi
11475rm -f conftest*
11476fi
11477
11478if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11479 echo "$ac_t""yes" 1>&6
11480 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11481 cat >> confdefs.h <<EOF
11482#define $ac_tr_func 1
11483EOF
11484 break
11485else
11486 echo "$ac_t""no" 1>&6
11487fi
11488done
11489
11490
6098c7f9
VZ
11491
11492ac_ext=C
11493# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11494ac_cpp='$CXXCPP $CPPFLAGS'
11495ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11496ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11497cross_compiling=$ac_cv_prog_cxx_cross
11498
11499
10f2d63a
VZ
11500for ac_func in strtok_r
11501do
11502echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8fd0d89b 11503echo "configure:11504: checking for $ac_func" >&5
10f2d63a
VZ
11504if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11505 echo $ac_n "(cached) $ac_c" 1>&6
11506else
11507 cat > conftest.$ac_ext <<EOF
8fd0d89b 11508#line 11509 "configure"
10f2d63a
VZ
11509#include "confdefs.h"
11510/* System header to define __stub macros and hopefully few prototypes,
11511 which can conflict with char $ac_func(); below. */
11512#include <assert.h>
11513/* Override any gcc2 internal prototype to avoid an error. */
6098c7f9
VZ
11514#ifdef __cplusplus
11515extern "C"
11516#endif
10f2d63a
VZ
11517/* We use char because int might match the return type of a gcc2
11518 builtin and then its argument prototype would still apply. */
11519char $ac_func();
11520
11521int main() {
11522
11523/* The GNU C library defines this for functions which it implements
11524 to always fail with ENOSYS. Some functions are actually named
11525 something starting with __ and the normal name is an alias. */
11526#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11527choke me
11528#else
e8482f24 11529$ac_func();
10f2d63a
VZ
11530#endif
11531
11532; return 0; }
11533EOF
8fd0d89b 11534if { (eval echo configure:11535: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
11535 rm -rf conftest*
11536 eval "ac_cv_func_$ac_func=yes"
11537else
11538 echo "configure: failed program was:" >&5
11539 cat conftest.$ac_ext >&5
11540 rm -rf conftest*
11541 eval "ac_cv_func_$ac_func=no"
11542fi
11543rm -f conftest*
11544fi
11545
11546if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11547 echo "$ac_t""yes" 1>&6
11548 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11549 cat >> confdefs.h <<EOF
11550#define $ac_tr_func 1
11551EOF
11552
11553else
11554 echo "$ac_t""no" 1>&6
11555fi
11556done
11557
11558
6098c7f9
VZ
11559ac_ext=c
11560# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11561ac_cpp='$CPP $CPPFLAGS'
11562ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11563ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11564cross_compiling=$ac_cv_prog_cc_cross
11565
11566
c63c7106 11567INET_LINK=
10f2d63a
VZ
11568for ac_func in inet_addr
11569do
11570echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8fd0d89b 11571echo "configure:11572: checking for $ac_func" >&5
10f2d63a
VZ
11572if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11573 echo $ac_n "(cached) $ac_c" 1>&6
11574else
11575 cat > conftest.$ac_ext <<EOF
8fd0d89b 11576#line 11577 "configure"
10f2d63a
VZ
11577#include "confdefs.h"
11578/* System header to define __stub macros and hopefully few prototypes,
11579 which can conflict with char $ac_func(); below. */
11580#include <assert.h>
11581/* Override any gcc2 internal prototype to avoid an error. */
11582/* We use char because int might match the return type of a gcc2
11583 builtin and then its argument prototype would still apply. */
11584char $ac_func();
11585
11586int main() {
11587
11588/* The GNU C library defines this for functions which it implements
11589 to always fail with ENOSYS. Some functions are actually named
11590 something starting with __ and the normal name is an alias. */
11591#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11592choke me
11593#else
e8482f24 11594$ac_func();
10f2d63a
VZ
11595#endif
11596
11597; return 0; }
11598EOF
8fd0d89b 11599if { (eval echo configure:11600: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
11600 rm -rf conftest*
11601 eval "ac_cv_func_$ac_func=yes"
11602else
11603 echo "configure: failed program was:" >&5
11604 cat conftest.$ac_ext >&5
11605 rm -rf conftest*
11606 eval "ac_cv_func_$ac_func=no"
11607fi
11608rm -f conftest*
11609fi
11610
11611if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11612 echo "$ac_t""yes" 1>&6
11613 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11614 cat >> confdefs.h <<EOF
11615#define $ac_tr_func 1
11616EOF
c63c7106
VZ
11617 cat >> confdefs.h <<\EOF
11618#define HAVE_INET_ADDR 1
11619EOF
11620
10f2d63a
VZ
11621else
11622 echo "$ac_t""no" 1>&6
c63c7106 11623echo $ac_n "checking for inet_addr in -lnsl""... $ac_c" 1>&6
8fd0d89b 11624echo "configure:11625: checking for inet_addr in -lnsl" >&5
c63c7106
VZ
11625ac_lib_var=`echo nsl'_'inet_addr | sed 'y%./+-%__p_%'`
11626if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11627 echo $ac_n "(cached) $ac_c" 1>&6
11628else
11629 ac_save_LIBS="$LIBS"
11630LIBS="-lnsl $LIBS"
11631cat > conftest.$ac_ext <<EOF
8fd0d89b 11632#line 11633 "configure"
c63c7106
VZ
11633#include "confdefs.h"
11634/* Override any gcc2 internal prototype to avoid an error. */
11635/* We use char because int might match the return type of a gcc2
11636 builtin and then its argument prototype would still apply. */
11637char inet_addr();
11638
11639int main() {
11640inet_addr()
11641; return 0; }
11642EOF
8fd0d89b 11643if { (eval echo configure:11644: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
c63c7106
VZ
11644 rm -rf conftest*
11645 eval "ac_cv_lib_$ac_lib_var=yes"
11646else
11647 echo "configure: failed program was:" >&5
11648 cat conftest.$ac_ext >&5
11649 rm -rf conftest*
11650 eval "ac_cv_lib_$ac_lib_var=no"
11651fi
11652rm -f conftest*
11653LIBS="$ac_save_LIBS"
11654
11655fi
11656if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11657 echo "$ac_t""yes" 1>&6
11658 INET_LINK="nsl"
11659else
11660 echo "$ac_t""no" 1>&6
11661echo $ac_n "checking for inet_addr in -lresolv""... $ac_c" 1>&6
8fd0d89b 11662echo "configure:11663: checking for inet_addr in -lresolv" >&5
c63c7106
VZ
11663ac_lib_var=`echo resolv'_'inet_addr | sed 'y%./+-%__p_%'`
11664if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11665 echo $ac_n "(cached) $ac_c" 1>&6
11666else
11667 ac_save_LIBS="$LIBS"
11668LIBS="-lresolv $LIBS"
11669cat > conftest.$ac_ext <<EOF
8fd0d89b 11670#line 11671 "configure"
c63c7106
VZ
11671#include "confdefs.h"
11672/* Override any gcc2 internal prototype to avoid an error. */
11673/* We use char because int might match the return type of a gcc2
11674 builtin and then its argument prototype would still apply. */
11675char inet_addr();
11676
11677int main() {
11678inet_addr()
11679; return 0; }
11680EOF
8fd0d89b 11681if { (eval echo configure:11682: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
c63c7106
VZ
11682 rm -rf conftest*
11683 eval "ac_cv_lib_$ac_lib_var=yes"
11684else
11685 echo "configure: failed program was:" >&5
11686 cat conftest.$ac_ext >&5
11687 rm -rf conftest*
11688 eval "ac_cv_lib_$ac_lib_var=no"
11689fi
11690rm -f conftest*
11691LIBS="$ac_save_LIBS"
11692
11693fi
11694if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11695 echo "$ac_t""yes" 1>&6
11696 INET_LINK="resolv"
11697
11698else
11699 echo "$ac_t""no" 1>&6
11700fi
11701
11702
11703fi
11704
11705
11706
10f2d63a
VZ
11707fi
11708done
11709
c63c7106 11710
10f2d63a
VZ
11711for ac_func in inet_aton
11712do
11713echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8fd0d89b 11714echo "configure:11715: checking for $ac_func" >&5
10f2d63a
VZ
11715if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11716 echo $ac_n "(cached) $ac_c" 1>&6
11717else
11718 cat > conftest.$ac_ext <<EOF
8fd0d89b 11719#line 11720 "configure"
10f2d63a
VZ
11720#include "confdefs.h"
11721/* System header to define __stub macros and hopefully few prototypes,
11722 which can conflict with char $ac_func(); below. */
11723#include <assert.h>
11724/* Override any gcc2 internal prototype to avoid an error. */
11725/* We use char because int might match the return type of a gcc2
11726 builtin and then its argument prototype would still apply. */
11727char $ac_func();
11728
11729int main() {
11730
11731/* The GNU C library defines this for functions which it implements
11732 to always fail with ENOSYS. Some functions are actually named
11733 something starting with __ and the normal name is an alias. */
11734#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11735choke me
11736#else
e8482f24 11737$ac_func();
10f2d63a
VZ
11738#endif
11739
11740; return 0; }
11741EOF
8fd0d89b 11742if { (eval echo configure:11743: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
11743 rm -rf conftest*
11744 eval "ac_cv_func_$ac_func=yes"
11745else
11746 echo "configure: failed program was:" >&5
11747 cat conftest.$ac_ext >&5
11748 rm -rf conftest*
11749 eval "ac_cv_func_$ac_func=no"
11750fi
11751rm -f conftest*
11752fi
11753
11754if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11755 echo "$ac_t""yes" 1>&6
11756 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11757 cat >> confdefs.h <<EOF
11758#define $ac_tr_func 1
11759EOF
c63c7106
VZ
11760 cat >> confdefs.h <<\EOF
11761#define HAVE_INET_ATON 1
11762EOF
11763
10f2d63a
VZ
11764else
11765 echo "$ac_t""no" 1>&6
c63c7106 11766 echo $ac_n "checking for inet_aton in -l$INET_LINK""... $ac_c" 1>&6
8fd0d89b 11767echo "configure:11768: checking for inet_aton in -l$INET_LINK" >&5
c63c7106 11768ac_lib_var=`echo $INET_LINK'_'inet_aton | sed 'y%./+-%__p_%'`
10f2d63a
VZ
11769if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11770 echo $ac_n "(cached) $ac_c" 1>&6
11771else
11772 ac_save_LIBS="$LIBS"
c63c7106 11773LIBS="-l$INET_LINK $LIBS"
10f2d63a 11774cat > conftest.$ac_ext <<EOF
8fd0d89b 11775#line 11776 "configure"
10f2d63a
VZ
11776#include "confdefs.h"
11777/* Override any gcc2 internal prototype to avoid an error. */
11778/* We use char because int might match the return type of a gcc2
11779 builtin and then its argument prototype would still apply. */
11780char inet_aton();
11781
11782int main() {
11783inet_aton()
11784; return 0; }
11785EOF
8fd0d89b 11786if { (eval echo configure:11787: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
11787 rm -rf conftest*
11788 eval "ac_cv_lib_$ac_lib_var=yes"
11789else
11790 echo "configure: failed program was:" >&5
11791 cat conftest.$ac_ext >&5
11792 rm -rf conftest*
11793 eval "ac_cv_lib_$ac_lib_var=no"
11794fi
11795rm -f conftest*
11796LIBS="$ac_save_LIBS"
11797
11798fi
11799if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11800 echo "$ac_t""yes" 1>&6
c63c7106
VZ
11801 cat >> confdefs.h <<\EOF
11802#define HAVE_INET_ATON 1
10f2d63a
VZ
11803EOF
11804
10f2d63a
VZ
11805else
11806 echo "$ac_t""no" 1>&6
11807fi
11808
c63c7106
VZ
11809
11810fi
11811done
11812
11813
11814if test "x$INET_LINK" != "x"; then
11815 cat >> confdefs.h <<\EOF
11816#define HAVE_INET_ADDR 1
11817EOF
11818
11819 INET_LINK="-l$INET_LINK"
11820fi
10f2d63a
VZ
11821
11822fi
11823
11824
11825cat > confcache <<\EOF
11826# This file is a shell script that caches the results of configure
11827# tests run on this system so they can be shared between configure
11828# scripts and configure runs. It is not useful on other systems.
11829# If it contains results you don't want to keep, you may remove or edit it.
11830#
11831# By default, configure uses ./config.cache as the cache file,
11832# creating it if it does not exist already. You can give configure
11833# the --cache-file=FILE option to use a different cache file; that is
11834# what configure does when it calls configure scripts in
11835# subdirectories, so they share the cache.
11836# Giving --cache-file=/dev/null disables caching, for debugging configure.
11837# config.status only pays attention to the cache file if you give it the
11838# --recheck option to rerun configure.
11839#
11840EOF
11841# The following way of writing the cache mishandles newlines in values,
11842# but we know of no workaround that is simple, portable, and efficient.
11843# So, don't put newlines in cache variables' values.
11844# Ultrix sh set writes to stderr and can't be redirected directly,
11845# and sets the high bit in the cache file unless we assign to the vars.
11846(set) 2>&1 |
11847 case `(ac_space=' '; set | grep ac_space) 2>&1` in
11848 *ac_space=\ *)
11849 # `set' does not quote correctly, so add quotes (double-quote substitution
11850 # turns \\\\ into \\, and sed turns \\ into \).
11851 sed -n \
11852 -e "s/'/'\\\\''/g" \
11853 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
11854 ;;
11855 *)
11856 # `set' quotes correctly as required by POSIX, so do not add quotes.
11857 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
11858 ;;
11859 esac >> confcache
11860if cmp -s $cache_file confcache; then
11861 :
11862else
11863 if test -w $cache_file; then
11864 echo "updating cache $cache_file"
11865 cat confcache > $cache_file
11866 else
11867 echo "not updating unwritable cache $cache_file"
11868 fi
11869fi
11870rm -f confcache
11871
11872
11873
b089607b 11874if test "$TOOLKIT" != "MSW"; then
10f2d63a
VZ
11875
11876
11877THREADS_LINK=""
11878THREADS_OBJ=""
11879
11880if test "$wxUSE_THREADS" = "yes" ; then
11881 if test "$wxUSE_WINE" = 1 ; then
11882 echo "configure: warning: Threads are not supported under WINE" 1>&2
11883 wxUSE_THREADS="no"
b12915c1
VZ
11884 elif test "$USE_BEOS" = 1; then
11885 echo "configure: warning: BeOS threads are not yet supported" 1>&2
11886 wxUSE_THREADS="no"
10f2d63a
VZ
11887 fi
11888fi
11889
11890if test "$wxUSE_THREADS" = "yes" ; then
11891
f6bcfd97
BP
11892 if test "$wxUSE_AIX" = 1; then
11893 THREADS_LIB=pthreads
11894 else
11895 THREADS_LIB=pthread
11896 fi
11897
11898 echo $ac_n "checking for pthread_create in -l$THREADS_LIB""... $ac_c" 1>&6
8fd0d89b 11899echo "configure:11900: checking for pthread_create in -l$THREADS_LIB" >&5
f6bcfd97 11900ac_lib_var=`echo $THREADS_LIB'_'pthread_create | sed 'y%./+-%__p_%'`
10f2d63a
VZ
11901if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11902 echo $ac_n "(cached) $ac_c" 1>&6
11903else
11904 ac_save_LIBS="$LIBS"
f6bcfd97 11905LIBS="-l$THREADS_LIB $LIBS"
10f2d63a 11906cat > conftest.$ac_ext <<EOF
8fd0d89b 11907#line 11908 "configure"
10f2d63a
VZ
11908#include "confdefs.h"
11909/* Override any gcc2 internal prototype to avoid an error. */
11910/* We use char because int might match the return type of a gcc2
11911 builtin and then its argument prototype would still apply. */
11912char pthread_create();
11913
11914int main() {
11915pthread_create()
11916; return 0; }
11917EOF
8fd0d89b 11918if { (eval echo configure:11919: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
11919 rm -rf conftest*
11920 eval "ac_cv_lib_$ac_lib_var=yes"
11921else
11922 echo "configure: failed program was:" >&5
11923 cat conftest.$ac_ext >&5
11924 rm -rf conftest*
11925 eval "ac_cv_lib_$ac_lib_var=no"
11926fi
11927rm -f conftest*
11928LIBS="$ac_save_LIBS"
11929
11930fi
11931if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11932 echo "$ac_t""yes" 1>&6
11933
11934 THREADS_OBJ="threadpsx.lo"
f6bcfd97 11935 THREADS_LINK=$THREADS_LIB
10f2d63a
VZ
11936
11937else
11938 echo "$ac_t""no" 1>&6
11939
11940 echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6
8fd0d89b 11941echo "configure:11942: checking for pthread_create in -lc_r" >&5
10f2d63a
VZ
11942ac_lib_var=`echo c_r'_'pthread_create | sed 'y%./+-%__p_%'`
11943if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11944 echo $ac_n "(cached) $ac_c" 1>&6
11945else
11946 ac_save_LIBS="$LIBS"
11947LIBS="-lc_r $LIBS"
11948cat > conftest.$ac_ext <<EOF
8fd0d89b 11949#line 11950 "configure"
10f2d63a
VZ
11950#include "confdefs.h"
11951/* Override any gcc2 internal prototype to avoid an error. */
11952/* We use char because int might match the return type of a gcc2
11953 builtin and then its argument prototype would still apply. */
11954char pthread_create();
11955
11956int main() {
11957pthread_create()
11958; return 0; }
11959EOF
8fd0d89b 11960if { (eval echo configure:11961: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
11961 rm -rf conftest*
11962 eval "ac_cv_lib_$ac_lib_var=yes"
11963else
11964 echo "configure: failed program was:" >&5
11965 cat conftest.$ac_ext >&5
11966 rm -rf conftest*
11967 eval "ac_cv_lib_$ac_lib_var=no"
11968fi
11969rm -f conftest*
11970LIBS="$ac_save_LIBS"
11971
11972fi
11973if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11974 echo "$ac_t""yes" 1>&6
11975
11976 THREADS_OBJ="threadpsx.lo"
11977 THREADS_LINK="c_r"
11978
11979else
11980 echo "$ac_t""no" 1>&6
11981
11982 ac_safe=`echo "sys/prctl.h" | sed 'y%./+-%__p_%'`
11983echo $ac_n "checking for sys/prctl.h""... $ac_c" 1>&6
8fd0d89b 11984echo "configure:11985: checking for sys/prctl.h" >&5
10f2d63a
VZ
11985if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11986 echo $ac_n "(cached) $ac_c" 1>&6
11987else
11988 cat > conftest.$ac_ext <<EOF
8fd0d89b 11989#line 11990 "configure"
10f2d63a
VZ
11990#include "confdefs.h"
11991#include <sys/prctl.h>
11992EOF
11993ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8fd0d89b 11994{ (eval echo configure:11995: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
11995ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11996if test -z "$ac_err"; then
11997 rm -rf conftest*
11998 eval "ac_cv_header_$ac_safe=yes"
11999else
12000 echo "$ac_err" >&5
12001 echo "configure: failed program was:" >&5
12002 cat conftest.$ac_ext >&5
12003 rm -rf conftest*
12004 eval "ac_cv_header_$ac_safe=no"
12005fi
12006rm -f conftest*
12007fi
12008if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12009 echo "$ac_t""yes" 1>&6
12010
12011 THREADS_OBJ="threadsgi.lo"
12012
12013else
12014 echo "$ac_t""no" 1>&6
12015fi
12016
12017
12018fi
12019
12020
12021fi
12022
12023
12024 if test -z "$THREADS_OBJ" ; then
12025 wxUSE_THREADS=no
12026 echo "configure: warning: No thread support on this system" 1>&2
12027 fi
12028fi
12029
12030if test "$wxUSE_THREADS" = "yes" ; then
70846f0a
VZ
12031 for ac_func in thr_setconcurrency
12032do
12033echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8fd0d89b 12034echo "configure:12035: checking for $ac_func" >&5
70846f0a
VZ
12035if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12036 echo $ac_n "(cached) $ac_c" 1>&6
12037else
12038 cat > conftest.$ac_ext <<EOF
8fd0d89b 12039#line 12040 "configure"
70846f0a
VZ
12040#include "confdefs.h"
12041/* System header to define __stub macros and hopefully few prototypes,
12042 which can conflict with char $ac_func(); below. */
12043#include <assert.h>
12044/* Override any gcc2 internal prototype to avoid an error. */
12045/* We use char because int might match the return type of a gcc2
12046 builtin and then its argument prototype would still apply. */
12047char $ac_func();
12048
12049int main() {
12050
12051/* The GNU C library defines this for functions which it implements
12052 to always fail with ENOSYS. Some functions are actually named
12053 something starting with __ and the normal name is an alias. */
12054#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12055choke me
12056#else
e8482f24 12057$ac_func();
70846f0a
VZ
12058#endif
12059
12060; return 0; }
12061EOF
8fd0d89b 12062if { (eval echo configure:12063: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
70846f0a
VZ
12063 rm -rf conftest*
12064 eval "ac_cv_func_$ac_func=yes"
12065else
12066 echo "configure: failed program was:" >&5
12067 cat conftest.$ac_ext >&5
12068 rm -rf conftest*
12069 eval "ac_cv_func_$ac_func=no"
12070fi
12071rm -f conftest*
12072fi
12073
12074if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12075 echo "$ac_t""yes" 1>&6
12076 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12077 cat >> confdefs.h <<EOF
12078#define $ac_tr_func 1
12079EOF
12080
12081else
12082 echo "$ac_t""no" 1>&6
12083fi
12084done
12085
12086
10f2d63a
VZ
12087
12088 for ac_hdr in sched.h
12089do
12090ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12091echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8fd0d89b 12092echo "configure:12093: checking for $ac_hdr" >&5
10f2d63a
VZ
12093if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12094 echo $ac_n "(cached) $ac_c" 1>&6
12095else
12096 cat > conftest.$ac_ext <<EOF
8fd0d89b 12097#line 12098 "configure"
10f2d63a
VZ
12098#include "confdefs.h"
12099#include <$ac_hdr>
12100EOF
12101ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8fd0d89b 12102{ (eval echo configure:12103: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
12103ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12104if test -z "$ac_err"; then
12105 rm -rf conftest*
12106 eval "ac_cv_header_$ac_safe=yes"
12107else
12108 echo "$ac_err" >&5
12109 echo "configure: failed program was:" >&5
12110 cat conftest.$ac_ext >&5
12111 rm -rf conftest*
12112 eval "ac_cv_header_$ac_safe=no"
12113fi
12114rm -f conftest*
12115fi
12116if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12117 echo "$ac_t""yes" 1>&6
12118 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12119 cat >> confdefs.h <<EOF
12120#define $ac_tr_hdr 1
12121EOF
12122
12123else
12124 echo "$ac_t""no" 1>&6
12125fi
12126done
12127
12128
12129 echo $ac_n "checking for sched_yield in -l$THREADS_LINK""... $ac_c" 1>&6
8fd0d89b 12130echo "configure:12131: checking for sched_yield in -l$THREADS_LINK" >&5
10f2d63a
VZ
12131ac_lib_var=`echo $THREADS_LINK'_'sched_yield | sed 'y%./+-%__p_%'`
12132if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12133 echo $ac_n "(cached) $ac_c" 1>&6
12134else
12135 ac_save_LIBS="$LIBS"
12136LIBS="-l$THREADS_LINK $LIBS"
12137cat > conftest.$ac_ext <<EOF
8fd0d89b 12138#line 12139 "configure"
10f2d63a
VZ
12139#include "confdefs.h"
12140/* Override any gcc2 internal prototype to avoid an error. */
12141/* We use char because int might match the return type of a gcc2
12142 builtin and then its argument prototype would still apply. */
12143char sched_yield();
12144
12145int main() {
12146sched_yield()
12147; return 0; }
12148EOF
8fd0d89b 12149if { (eval echo configure:12150: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
12150 rm -rf conftest*
12151 eval "ac_cv_lib_$ac_lib_var=yes"
12152else
12153 echo "configure: failed program was:" >&5
12154 cat conftest.$ac_ext >&5
12155 rm -rf conftest*
12156 eval "ac_cv_lib_$ac_lib_var=no"
12157fi
12158rm -f conftest*
12159LIBS="$ac_save_LIBS"
12160
12161fi
12162if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12163 echo "$ac_t""yes" 1>&6
12164 cat >> confdefs.h <<\EOF
12165#define HAVE_SCHED_YIELD 1
12166EOF
12167
12168else
12169 echo "$ac_t""no" 1>&6
12170echo $ac_n "checking for sched_yield in -l"posix4"""... $ac_c" 1>&6
8fd0d89b 12171echo "configure:12172: checking for sched_yield in -l"posix4"" >&5
10f2d63a
VZ
12172ac_lib_var=`echo "posix4"'_'sched_yield | sed 'y%./+-%__p_%'`
12173if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12174 echo $ac_n "(cached) $ac_c" 1>&6
12175else
12176 ac_save_LIBS="$LIBS"
12177LIBS="-l"posix4" $LIBS"
12178cat > conftest.$ac_ext <<EOF
8fd0d89b 12179#line 12180 "configure"
10f2d63a
VZ
12180#include "confdefs.h"
12181/* Override any gcc2 internal prototype to avoid an error. */
12182/* We use char because int might match the return type of a gcc2
12183 builtin and then its argument prototype would still apply. */
12184char sched_yield();
12185
12186int main() {
12187sched_yield()
12188; return 0; }
12189EOF
8fd0d89b 12190if { (eval echo configure:12191: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
12191 rm -rf conftest*
12192 eval "ac_cv_lib_$ac_lib_var=yes"
12193else
12194 echo "configure: failed program was:" >&5
12195 cat conftest.$ac_ext >&5
12196 rm -rf conftest*
12197 eval "ac_cv_lib_$ac_lib_var=no"
12198fi
12199rm -f conftest*
12200LIBS="$ac_save_LIBS"
12201
12202fi
12203if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12204 echo "$ac_t""yes" 1>&6
12205 cat >> confdefs.h <<\EOF
12206#define HAVE_SCHED_YIELD 1
12207EOF
12208 POSIX4_LINK="-lposix4"
12209else
12210 echo "$ac_t""no" 1>&6
12211echo "configure: warning: wxThread::Yield will not work properly" 1>&2
12212
12213fi
12214
12215
12216fi
12217
12218
f6bcfd97
BP
12219 HAVE_PRIOR_FUNCS=0
12220 echo $ac_n "checking for pthread_attr_getschedpolicy in -l$THREADS_LINK""... $ac_c" 1>&6
8fd0d89b 12221echo "configure:12222: checking for pthread_attr_getschedpolicy in -l$THREADS_LINK" >&5
10f2d63a
VZ
12222ac_lib_var=`echo $THREADS_LINK'_'pthread_attr_getschedpolicy | sed 'y%./+-%__p_%'`
12223if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12224 echo $ac_n "(cached) $ac_c" 1>&6
12225else
12226 ac_save_LIBS="$LIBS"
12227LIBS="-l$THREADS_LINK $LIBS"
12228cat > conftest.$ac_ext <<EOF
8fd0d89b 12229#line 12230 "configure"
10f2d63a
VZ
12230#include "confdefs.h"
12231/* Override any gcc2 internal prototype to avoid an error. */
12232/* We use char because int might match the return type of a gcc2
12233 builtin and then its argument prototype would still apply. */
12234char pthread_attr_getschedpolicy();
12235
12236int main() {
12237pthread_attr_getschedpolicy()
12238; return 0; }
12239EOF
8fd0d89b 12240if { (eval echo configure:12241: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
12241 rm -rf conftest*
12242 eval "ac_cv_lib_$ac_lib_var=yes"
12243else
12244 echo "configure: failed program was:" >&5
12245 cat conftest.$ac_ext >&5
12246 rm -rf conftest*
12247 eval "ac_cv_lib_$ac_lib_var=no"
12248fi
12249rm -f conftest*
12250LIBS="$ac_save_LIBS"
12251
12252fi
12253if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12254 echo "$ac_t""yes" 1>&6
f6bcfd97 12255 echo $ac_n "checking for pthread_attr_setschedparam in -l$THREADS_LINK""... $ac_c" 1>&6
8fd0d89b 12256echo "configure:12257: checking for pthread_attr_setschedparam in -l$THREADS_LINK" >&5
f6bcfd97
BP
12257ac_lib_var=`echo $THREADS_LINK'_'pthread_attr_setschedparam | sed 'y%./+-%__p_%'`
12258if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12259 echo $ac_n "(cached) $ac_c" 1>&6
12260else
12261 ac_save_LIBS="$LIBS"
12262LIBS="-l$THREADS_LINK $LIBS"
12263cat > conftest.$ac_ext <<EOF
8fd0d89b 12264#line 12265 "configure"
f6bcfd97
BP
12265#include "confdefs.h"
12266/* Override any gcc2 internal prototype to avoid an error. */
12267/* We use char because int might match the return type of a gcc2
12268 builtin and then its argument prototype would still apply. */
12269char pthread_attr_setschedparam();
12270
12271int main() {
12272pthread_attr_setschedparam()
12273; return 0; }
10f2d63a 12274EOF
8fd0d89b 12275if { (eval echo configure:12276: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
f6bcfd97
BP
12276 rm -rf conftest*
12277 eval "ac_cv_lib_$ac_lib_var=yes"
12278else
12279 echo "configure: failed program was:" >&5
12280 cat conftest.$ac_ext >&5
12281 rm -rf conftest*
12282 eval "ac_cv_lib_$ac_lib_var=no"
12283fi
12284rm -f conftest*
12285LIBS="$ac_save_LIBS"
10f2d63a 12286
f6bcfd97
BP
12287fi
12288if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12289 echo "$ac_t""yes" 1>&6
12290 echo $ac_n "checking for sched_get_priority_max in -l$THREADS_LINK""... $ac_c" 1>&6
8fd0d89b 12291echo "configure:12292: checking for sched_get_priority_max in -l$THREADS_LINK" >&5
f6bcfd97
BP
12292ac_lib_var=`echo $THREADS_LINK'_'sched_get_priority_max | sed 'y%./+-%__p_%'`
12293if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12294 echo $ac_n "(cached) $ac_c" 1>&6
12295else
12296 ac_save_LIBS="$LIBS"
12297LIBS="-l$THREADS_LINK $LIBS"
12298cat > conftest.$ac_ext <<EOF
8fd0d89b 12299#line 12300 "configure"
f6bcfd97
BP
12300#include "confdefs.h"
12301/* Override any gcc2 internal prototype to avoid an error. */
12302/* We use char because int might match the return type of a gcc2
12303 builtin and then its argument prototype would still apply. */
12304char sched_get_priority_max();
12305
12306int main() {
12307sched_get_priority_max()
12308; return 0; }
12309EOF
8fd0d89b 12310if { (eval echo configure:12311: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
f6bcfd97
BP
12311 rm -rf conftest*
12312 eval "ac_cv_lib_$ac_lib_var=yes"
12313else
12314 echo "configure: failed program was:" >&5
12315 cat conftest.$ac_ext >&5
12316 rm -rf conftest*
12317 eval "ac_cv_lib_$ac_lib_var=no"
12318fi
12319rm -f conftest*
12320LIBS="$ac_save_LIBS"
12321
12322fi
12323if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12324 echo "$ac_t""yes" 1>&6
12325 HAVE_PRIOR_FUNCS=1
10f2d63a
VZ
12326else
12327 echo "$ac_t""no" 1>&6
f6bcfd97 12328echo $ac_n "checking for sched_get_priority_max in -l"posix4"""... $ac_c" 1>&6
8fd0d89b 12329echo "configure:12330: checking for sched_get_priority_max in -l"posix4"" >&5
f6bcfd97 12330ac_lib_var=`echo "posix4"'_'sched_get_priority_max | sed 'y%./+-%__p_%'`
10f2d63a
VZ
12331if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12332 echo $ac_n "(cached) $ac_c" 1>&6
12333else
12334 ac_save_LIBS="$LIBS"
12335LIBS="-l"posix4" $LIBS"
12336cat > conftest.$ac_ext <<EOF
8fd0d89b 12337#line 12338 "configure"
10f2d63a
VZ
12338#include "confdefs.h"
12339/* Override any gcc2 internal prototype to avoid an error. */
12340/* We use char because int might match the return type of a gcc2
12341 builtin and then its argument prototype would still apply. */
f6bcfd97 12342char sched_get_priority_max();
10f2d63a
VZ
12343
12344int main() {
f6bcfd97 12345sched_get_priority_max()
10f2d63a
VZ
12346; return 0; }
12347EOF
8fd0d89b 12348if { (eval echo configure:12349: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
12349 rm -rf conftest*
12350 eval "ac_cv_lib_$ac_lib_var=yes"
12351else
12352 echo "configure: failed program was:" >&5
12353 cat conftest.$ac_ext >&5
12354 rm -rf conftest*
12355 eval "ac_cv_lib_$ac_lib_var=no"
12356fi
12357rm -f conftest*
12358LIBS="$ac_save_LIBS"
12359
12360fi
12361if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12362 echo "$ac_t""yes" 1>&6
f6bcfd97
BP
12363
12364 HAVE_PRIOR_FUNCS=1
12365 POSIX4_LINK="-lposix4"
12366
12367else
12368 echo "$ac_t""no" 1>&6
12369fi
12370
12371
12372fi
12373
12374
10f2d63a
VZ
12375else
12376 echo "$ac_t""no" 1>&6
10f2d63a
VZ
12377fi
12378
12379
f6bcfd97
BP
12380else
12381 echo "$ac_t""no" 1>&6
10f2d63a
VZ
12382fi
12383
12384
f6bcfd97
BP
12385 if test "$HAVE_PRIOR_FUNCS" = 1; then
12386 cat >> confdefs.h <<\EOF
12387#define HAVE_THREAD_PRIORITY_FUNCTIONS 1
12388EOF
12389
12390 else
12391 echo "configure: warning: Setting thread priority will not work" 1>&2
12392 fi
12393
10f2d63a 12394 echo $ac_n "checking for pthread_cancel in -l$THREADS_LINK""... $ac_c" 1>&6
8fd0d89b 12395echo "configure:12396: checking for pthread_cancel in -l$THREADS_LINK" >&5
10f2d63a
VZ
12396ac_lib_var=`echo $THREADS_LINK'_'pthread_cancel | sed 'y%./+-%__p_%'`
12397if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12398 echo $ac_n "(cached) $ac_c" 1>&6
12399else
12400 ac_save_LIBS="$LIBS"
12401LIBS="-l$THREADS_LINK $LIBS"
12402cat > conftest.$ac_ext <<EOF
8fd0d89b 12403#line 12404 "configure"
10f2d63a
VZ
12404#include "confdefs.h"
12405/* Override any gcc2 internal prototype to avoid an error. */
12406/* We use char because int might match the return type of a gcc2
12407 builtin and then its argument prototype would still apply. */
12408char pthread_cancel();
12409
12410int main() {
12411pthread_cancel()
12412; return 0; }
12413EOF
8fd0d89b 12414if { (eval echo configure:12415: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
12415 rm -rf conftest*
12416 eval "ac_cv_lib_$ac_lib_var=yes"
12417else
12418 echo "configure: failed program was:" >&5
12419 cat conftest.$ac_ext >&5
12420 rm -rf conftest*
12421 eval "ac_cv_lib_$ac_lib_var=no"
12422fi
12423rm -f conftest*
12424LIBS="$ac_save_LIBS"
12425
12426fi
12427if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12428 echo "$ac_t""yes" 1>&6
12429 cat >> confdefs.h <<\EOF
12430#define HAVE_PTHREAD_CANCEL 1
12431EOF
12432
12433else
12434 echo "$ac_t""no" 1>&6
12435echo "configure: warning: wxThread::Kill() will not work properly" 1>&2
12436fi
12437
12438
12439 echo $ac_n "checking for pthread_cleanup_push/pop""... $ac_c" 1>&6
8fd0d89b 12440echo "configure:12441: checking for pthread_cleanup_push/pop" >&5
10f2d63a
VZ
12441if eval "test \"`echo '$''{'wx_cv_func_pthread_cleanup_push'+set}'`\" = set"; then
12442 echo $ac_n "(cached) $ac_c" 1>&6
12443else
12444
12445 cat > conftest.$ac_ext <<EOF
8fd0d89b 12446#line 12447 "configure"
10f2d63a
VZ
12447#include "confdefs.h"
12448#include <pthread.h>
12449int main() {
12450
12451 pthread_cleanup_push(NULL, NULL);
12452 pthread_cleanup_pop(0);
12453
12454; return 0; }
12455EOF
8fd0d89b 12456if { (eval echo configure:12457: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10f2d63a
VZ
12457 rm -rf conftest*
12458
12459 wx_cv_func_pthread_cleanup_push=yes
12460 cat >> confdefs.h <<\EOF
12461#define HAVE_THREAD_CLEANUP_FUNCTIONS 1
12462EOF
12463
12464
12465else
12466 echo "configure: failed program was:" >&5
12467 cat conftest.$ac_ext >&5
12468 rm -rf conftest*
12469
12470 wx_cv_func_pthread_cleanup_push=no
12471
12472fi
12473rm -f conftest*
12474
12475fi
12476
12477echo "$ac_t""$wx_cv_func_pthread_cleanup_push" 1>&6
12478
12479 THREADS_LINK="-l$THREADS_LINK"
12480fi
12481
12482fi
12483
12484if test "$wxUSE_THREADS" = "yes"; then
12485 cat >> confdefs.h <<\EOF
12486#define wxUSE_THREADS 1
12487EOF
12488
12489
12490 CFLAGS="${CFLAGS} -D_REENTRANT"
12491 CXXFLAGS="${CXXFLAGS} -D_REENTRANT"
12492
12493 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
12494else
12495 if test "$ac_cv_func_strtok_r" = "yes"; then
ab9b9eab 12496 echo $ac_n "checking if -D_REENTRANT is needed""... $ac_c" 1>&6
8fd0d89b 12497echo "configure:12498: checking if -D_REENTRANT is needed" >&5
ab9b9eab
VZ
12498 if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
12499 CFLAGS="${CFLAGS} -D_REENTRANT"
12500 CXXFLAGS="${CXXFLAGS} -D_REENTRANT"
12501 echo "$ac_t""yes" 1>&6
12502 else
12503 echo "$ac_t""no" 1>&6
10f2d63a
VZ
12504 fi
12505 fi
12506fi
12507
6f72b082 12508if test "$WXGTK20" = 1 ; then
13111b2a 12509 cat >> confdefs.h <<EOF
6f72b082 12510#define __WXGTK20__ $WXGTK20
13111b2a
VZ
12511EOF
12512
12513 WXGTK12=1
12514fi
12515
10f2d63a
VZ
12516if test "$WXGTK12" = 1 ; then
12517 cat >> confdefs.h <<EOF
12518#define __WXGTK12__ $WXGTK12
12519EOF
12520
12521fi
12522
f6bcfd97
BP
12523if test "$WXGTK127" = 1 ; then
12524 cat >> confdefs.h <<EOF
12525#define __WXGTK127__ $WXGTK127
12526EOF
12527
12528fi
12529
10f2d63a
VZ
12530if test "$WXWINE" = 1 ; then
12531 TOOLKIT_DEF="${TOOLKIT_DEF} -D__WXWINE__"
12532fi
12533
12534if test "$wxUSE_CYGWIN" = 1 ; then
12535 TOOLKIT_DEF="${TOOLKIT_DEF} -D__WIN95__"
12536fi
12537
12538WXDEBUG=
12539
12540if test "$wxUSE_DEBUG_INFO" = "yes" ; then
12541 WXDEBUG="-g"
12542 wxUSE_OPTIMISE=no
12543fi
12544
12545if test "$wxUSE_DEBUG_GDB" = "yes" ; then
12546 wxUSE_DEBUG_INFO=yes
12547 WXDEBUG="-ggdb"
12548fi
12549
12550if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
12551 cat >> confdefs.h <<\EOF
12552#define WXDEBUG 1
12553EOF
12554
12555 WXDEBUG_DEFINE="-D__WXDEBUG__"
12556else
12557 if test "$wxUSE_GTK" = 1 ; then
12558 WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS"
12559 fi
12560fi
12561
12562if test "$wxUSE_MEM_TRACING" = "yes" ; then
12563 cat >> confdefs.h <<\EOF
12564#define wxUSE_MEMORY_TRACING 1
12565EOF
12566
12567 cat >> confdefs.h <<\EOF
12568#define wxUSE_GLOBAL_MEMORY_OPERATORS 1
47c13eb7
VS
12569EOF
12570
12571 cat >> confdefs.h <<\EOF
12572#define wxUSE_DEBUG_NEW_ALWAYS 1
10f2d63a
VZ
12573EOF
12574
12575 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
12576fi
12577
12578if test "$wxUSE_DMALLOC" = "yes" ; then
12579 DMALLOC_LINK="-ldmalloc"
12580fi
12581
12582PROFILE=
12583if test "$wxUSE_PROFILE" = "yes" ; then
12584 PROFILE="-pg"
12585fi
12586
12587DEP_INFO_FLAGS=
caa2c79b 12588CODE_GEN_FLAGS=
10f2d63a
VZ
12589if test "$GCC" = yes ; then
12590 if test "$wxUSE_NO_RTTI" = "yes" ; then
caa2c79b 12591 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fno-rtti"
10f2d63a
VZ
12592 fi
12593 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
caa2c79b 12594 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fno-exceptions"
10f2d63a
VZ
12595 fi
12596 if test "$wxUSE_PERMISSIVE" = "yes" ; then
caa2c79b 12597 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive"
10f2d63a
VZ
12598 fi
12599 if test "$wxUSE_NO_DEPS" = "no" ; then
12600 DEP_INFO_FLAGS="-MMD"
12601 fi
12602fi
12603
12604
12605CXXFLAGS=`echo "${CXXFLAGS}" | sed "s/\-O.//g" `
12606CFLAGS=`echo "${CFLAGS}" | sed "s/\-O.//g" `
12607if test "$wxUSE_OPTIMISE" = "no" ; then
12608 OPTIMISE=
12609else
12610 if test "$GCC" = yes ; then
12611 OPTIMISE="-O2"
12612 case "${host}" in
12613 i586-*-*|i686-*-* )
12614 OPTIMISE="${OPTIMISE} "
12615 ;;
12616 esac
12617 else
12618 OPTIMISE="-O"
12619 fi
12620fi
12621
12622
12623ZLIB_INCLUDE=
422107f9 12624if test "$wxUSE_ZLIB" = "yes" -o "$wxUSE_ZLIB" = "sys" ; then
10f2d63a
VZ
12625 cat >> confdefs.h <<\EOF
12626#define wxUSE_ZLIB 1
12627EOF
12628
422107f9
VZ
12629 if test "$wxUSE_ZLIB" = "yes" ; then
12630 ZLIB_INCLUDE="-I\${top_srcdir}/src/zlib"
12631 else
12632 ZLIB_LINK=
12633 ac_safe=`echo "zlib.h" | sed 'y%./+-%__p_%'`
12634echo $ac_n "checking for zlib.h""... $ac_c" 1>&6
8fd0d89b 12635echo "configure:12636: checking for zlib.h" >&5
422107f9
VZ
12636if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12637 echo $ac_n "(cached) $ac_c" 1>&6
12638else
12639 cat > conftest.$ac_ext <<EOF
8fd0d89b 12640#line 12641 "configure"
422107f9
VZ
12641#include "confdefs.h"
12642#include <zlib.h>
12643EOF
12644ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8fd0d89b 12645{ (eval echo configure:12646: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
422107f9
VZ
12646ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12647if test -z "$ac_err"; then
12648 rm -rf conftest*
12649 eval "ac_cv_header_$ac_safe=yes"
12650else
12651 echo "$ac_err" >&5
12652 echo "configure: failed program was:" >&5
12653 cat conftest.$ac_ext >&5
12654 rm -rf conftest*
12655 eval "ac_cv_header_$ac_safe=no"
12656fi
12657rm -f conftest*
12658fi
12659if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12660 echo "$ac_t""yes" 1>&6
12661 echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6
8fd0d89b 12662echo "configure:12663: checking for deflate in -lz" >&5
422107f9
VZ
12663ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'`
12664if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12665 echo $ac_n "(cached) $ac_c" 1>&6
12666else
12667 ac_save_LIBS="$LIBS"
12668LIBS="-lz $LIBS"
12669cat > conftest.$ac_ext <<EOF
8fd0d89b 12670#line 12671 "configure"
422107f9
VZ
12671#include "confdefs.h"
12672/* Override any gcc2 internal prototype to avoid an error. */
12673/* We use char because int might match the return type of a gcc2
12674 builtin and then its argument prototype would still apply. */
12675char deflate();
12676
12677int main() {
12678deflate()
12679; return 0; }
12680EOF
8fd0d89b 12681if { (eval echo configure:12682: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
422107f9
VZ
12682 rm -rf conftest*
12683 eval "ac_cv_lib_$ac_lib_var=yes"
12684else
12685 echo "configure: failed program was:" >&5
12686 cat conftest.$ac_ext >&5
12687 rm -rf conftest*
12688 eval "ac_cv_lib_$ac_lib_var=no"
12689fi
12690rm -f conftest*
12691LIBS="$ac_save_LIBS"
12692
12693fi
12694if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12695 echo "$ac_t""yes" 1>&6
12696 ZLIB_LINK="-lz"
12697else
12698 echo "$ac_t""no" 1>&6
12699fi
12700
12701else
12702 echo "$ac_t""no" 1>&6
12703fi
12704
12705 if test "x$ZLIB_LINK" = "x" ; then
12706 { echo "configure: error: system zlib compression library not found! Use --with-zlib=yes to use built-in zlib" 1>&2; exit 1; }
12707 fi
12708 fi
10f2d63a
VZ
12709fi
12710
12711PNG_INCLUDE=
422107f9 12712if test "$wxUSE_LIBPNG" = "yes" -o "$wxUSE_LIBPNG" = "sys" ; then
10f2d63a
VZ
12713 cat >> confdefs.h <<\EOF
12714#define wxUSE_LIBPNG 1
12715EOF
12716
41fd4136 12717 if test "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
422107f9
VZ
12718 echo "configure: warning: --with-libpng=sys doesn't work without --with-zlib=sys, will compile the built-in libpng instead" 1>&2
12719 wxUSE_LIBPNG=yes
12720 fi
12721
12722 if test "$wxUSE_LIBPNG" = "yes" ; then
12723 PNG_INCLUDE="-I\${top_srcdir}/src/png"
12724 else
12725 PNG_LINK=
12726 ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'`
12727echo $ac_n "checking for png.h""... $ac_c" 1>&6
8fd0d89b 12728echo "configure:12729: checking for png.h" >&5
422107f9
VZ
12729if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12730 echo $ac_n "(cached) $ac_c" 1>&6
12731else
12732 cat > conftest.$ac_ext <<EOF
8fd0d89b 12733#line 12734 "configure"
422107f9
VZ
12734#include "confdefs.h"
12735#include <png.h>
12736EOF
12737ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8fd0d89b 12738{ (eval echo configure:12739: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
422107f9
VZ
12739ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12740if test -z "$ac_err"; then
12741 rm -rf conftest*
12742 eval "ac_cv_header_$ac_safe=yes"
12743else
12744 echo "$ac_err" >&5
12745 echo "configure: failed program was:" >&5
12746 cat conftest.$ac_ext >&5
12747 rm -rf conftest*
12748 eval "ac_cv_header_$ac_safe=no"
12749fi
12750rm -f conftest*
12751fi
12752if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12753 echo "$ac_t""yes" 1>&6
12754 echo $ac_n "checking for png_check_sig in -lpng""... $ac_c" 1>&6
8fd0d89b 12755echo "configure:12756: checking for png_check_sig in -lpng" >&5
422107f9
VZ
12756ac_lib_var=`echo png'_'png_check_sig | sed 'y%./+-%__p_%'`
12757if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12758 echo $ac_n "(cached) $ac_c" 1>&6
12759else
12760 ac_save_LIBS="$LIBS"
12761LIBS="-lpng -lz -lm $LIBS"
12762cat > conftest.$ac_ext <<EOF
8fd0d89b 12763#line 12764 "configure"
422107f9
VZ
12764#include "confdefs.h"
12765/* Override any gcc2 internal prototype to avoid an error. */
12766/* We use char because int might match the return type of a gcc2
12767 builtin and then its argument prototype would still apply. */
12768char png_check_sig();
12769
12770int main() {
12771png_check_sig()
12772; return 0; }
12773EOF
8fd0d89b 12774if { (eval echo configure:12775: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
422107f9
VZ
12775 rm -rf conftest*
12776 eval "ac_cv_lib_$ac_lib_var=yes"
12777else
12778 echo "configure: failed program was:" >&5
12779 cat conftest.$ac_ext >&5
12780 rm -rf conftest*
12781 eval "ac_cv_lib_$ac_lib_var=no"
12782fi
12783rm -f conftest*
12784LIBS="$ac_save_LIBS"
12785
12786fi
12787if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12788 echo "$ac_t""yes" 1>&6
12789 PNG_LINK="-lpng"
12790else
12791 echo "$ac_t""no" 1>&6
12792fi
12793
12794
12795else
12796 echo "$ac_t""no" 1>&6
12797fi
12798
12799 if test "x$PNG_LINK" = "x" ; then
0dcf9893 12800 { echo "configure: error: system png library not found! Use --with-libpng=yes to use the built-in libpng" 1>&2; exit 1; }
422107f9
VZ
12801 fi
12802 fi
12803
10f2d63a
VZ
12804 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
12805fi
12806
12807JPEG_INCLUDE=
422107f9 12808if test "$wxUSE_LIBJPEG" = "yes" -o "$wxUSE_LIBJPEG" = "sys" ; then
10f2d63a
VZ
12809 cat >> confdefs.h <<\EOF
12810#define wxUSE_LIBJPEG 1
12811EOF
12812
422107f9
VZ
12813 if test "$wxUSE_LIBJPEG" = "yes" ; then
12814 JPEG_INCLUDE="-I\${top_srcdir}/src/jpeg"
12815 else
12816 JPEG_LINK=
12817 ac_safe=`echo "jpeglib.h" | sed 'y%./+-%__p_%'`
12818echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6
8fd0d89b 12819echo "configure:12820: checking for jpeglib.h" >&5
422107f9
VZ
12820if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12821 echo $ac_n "(cached) $ac_c" 1>&6
12822else
12823 cat > conftest.$ac_ext <<EOF
8fd0d89b 12824#line 12825 "configure"
422107f9
VZ
12825#include "confdefs.h"
12826#include <jpeglib.h>
12827EOF
12828ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8fd0d89b 12829{ (eval echo configure:12830: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
422107f9
VZ
12830ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12831if test -z "$ac_err"; then
12832 rm -rf conftest*
12833 eval "ac_cv_header_$ac_safe=yes"
12834else
12835 echo "$ac_err" >&5
12836 echo "configure: failed program was:" >&5
12837 cat conftest.$ac_ext >&5
12838 rm -rf conftest*
12839 eval "ac_cv_header_$ac_safe=no"
12840fi
12841rm -f conftest*
12842fi
12843if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12844 echo "$ac_t""yes" 1>&6
12845 echo $ac_n "checking for jpeg_read_header in -ljpeg""... $ac_c" 1>&6
8fd0d89b 12846echo "configure:12847: checking for jpeg_read_header in -ljpeg" >&5
422107f9
VZ
12847ac_lib_var=`echo jpeg'_'jpeg_read_header | sed 'y%./+-%__p_%'`
12848if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12849 echo $ac_n "(cached) $ac_c" 1>&6
12850else
12851 ac_save_LIBS="$LIBS"
12852LIBS="-ljpeg $LIBS"
12853cat > conftest.$ac_ext <<EOF
8fd0d89b 12854#line 12855 "configure"
422107f9
VZ
12855#include "confdefs.h"
12856/* Override any gcc2 internal prototype to avoid an error. */
12857/* We use char because int might match the return type of a gcc2
12858 builtin and then its argument prototype would still apply. */
12859char jpeg_read_header();
12860
12861int main() {
12862jpeg_read_header()
12863; return 0; }
12864EOF
8fd0d89b 12865if { (eval echo configure:12866: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
422107f9
VZ
12866 rm -rf conftest*
12867 eval "ac_cv_lib_$ac_lib_var=yes"
12868else
12869 echo "configure: failed program was:" >&5
12870 cat conftest.$ac_ext >&5
12871 rm -rf conftest*
12872 eval "ac_cv_lib_$ac_lib_var=no"
12873fi
12874rm -f conftest*
12875LIBS="$ac_save_LIBS"
12876
12877fi
12878if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12879 echo "$ac_t""yes" 1>&6
12880 JPEG_LINK="-ljpeg"
12881else
12882 echo "$ac_t""no" 1>&6
12883fi
12884
12885else
12886 echo "$ac_t""no" 1>&6
12887fi
12888
12889 if test "x$JPEG_LINK" = "x" ; then
0dcf9893 12890 { echo "configure: error: system jpeg library not found! Use --with-libjpeg=yes to use the built-in one" 1>&2; exit 1; }
422107f9
VZ
12891 fi
12892 fi
10f2d63a
VZ
12893fi
12894
c7a2bf27 12895TIFF_INCLUDE=
0dcf9893 12896if test "$wxUSE_LIBTIFF" = "yes" -o "$wxUSE_LIBTIFF" = "sys" ; then
c7a2bf27
RR
12897 cat >> confdefs.h <<\EOF
12898#define wxUSE_LIBTIFF 1
12899EOF
12900
0dcf9893
VZ
12901 if test "$wxUSE_LIBTIFF" = "yes" ; then
12902 TIFF_INCLUDE="-I\${top_srcdir}/src/tiff"
12903 else
12904 TIFF_LINK=
12905 ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'`
12906echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6
8fd0d89b 12907echo "configure:12908: checking for tiffio.h" >&5
0dcf9893
VZ
12908if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12909 echo $ac_n "(cached) $ac_c" 1>&6
12910else
12911 cat > conftest.$ac_ext <<EOF
8fd0d89b 12912#line 12913 "configure"
0dcf9893
VZ
12913#include "confdefs.h"
12914#include <tiffio.h>
12915EOF
12916ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8fd0d89b 12917{ (eval echo configure:12918: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
0dcf9893
VZ
12918ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12919if test -z "$ac_err"; then
12920 rm -rf conftest*
12921 eval "ac_cv_header_$ac_safe=yes"
12922else
12923 echo "$ac_err" >&5
12924 echo "configure: failed program was:" >&5
12925 cat conftest.$ac_ext >&5
12926 rm -rf conftest*
12927 eval "ac_cv_header_$ac_safe=no"
12928fi
12929rm -f conftest*
12930fi
12931if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12932 echo "$ac_t""yes" 1>&6
12933 echo $ac_n "checking for TIFFError in -ltiff""... $ac_c" 1>&6
8fd0d89b 12934echo "configure:12935: checking for TIFFError in -ltiff" >&5
0dcf9893
VZ
12935ac_lib_var=`echo tiff'_'TIFFError | sed 'y%./+-%__p_%'`
12936if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12937 echo $ac_n "(cached) $ac_c" 1>&6
12938else
12939 ac_save_LIBS="$LIBS"
12940LIBS="-ltiff -lm $LIBS"
12941cat > conftest.$ac_ext <<EOF
8fd0d89b 12942#line 12943 "configure"
0dcf9893
VZ
12943#include "confdefs.h"
12944/* Override any gcc2 internal prototype to avoid an error. */
12945/* We use char because int might match the return type of a gcc2
12946 builtin and then its argument prototype would still apply. */
12947char TIFFError();
12948
12949int main() {
12950TIFFError()
12951; return 0; }
12952EOF
8fd0d89b 12953if { (eval echo configure:12954: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
0dcf9893
VZ
12954 rm -rf conftest*
12955 eval "ac_cv_lib_$ac_lib_var=yes"
12956else
12957 echo "configure: failed program was:" >&5
12958 cat conftest.$ac_ext >&5
12959 rm -rf conftest*
12960 eval "ac_cv_lib_$ac_lib_var=no"
12961fi
12962rm -f conftest*
12963LIBS="$ac_save_LIBS"
12964
12965fi
12966if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12967 echo "$ac_t""yes" 1>&6
12968 TIFF_LINK="-ltiff"
12969else
12970 echo "$ac_t""no" 1>&6
12971fi
12972
12973else
12974 echo "$ac_t""no" 1>&6
12975fi
12976
12977 if test "x$TIFF_LINK" = "x" ; then
12978 { echo "configure: error: system tiff library not found! Use --with-libtiff=yes to use the built-in one" 1>&2; exit 1; }
12979 fi
12980 fi
c7a2bf27
RR
12981fi
12982
3fed1840
RR
12983FREETYPE_INCLUDE=
12984if test "$wxUSE_FREETYPE" = "yes" -o "$wxUSE_FREETYPE" = "sys" ; then
12985 cat >> confdefs.h <<\EOF
12986#define wxUSE_FREETYPE 1
12987EOF
12988
12989 if test "$wxUSE_FREETYPE" = "yes" ; then
12990 FREETYPE_INCLUDE="-I\${top_srcdir}/src/freetype"
12991 else
12992 FREETYPE_LINK=
12993 ac_safe=`echo "freetype.h" | sed 'y%./+-%__p_%'`
12994echo $ac_n "checking for freetype.h""... $ac_c" 1>&6
8fd0d89b 12995echo "configure:12996: checking for freetype.h" >&5
3fed1840
RR
12996if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12997 echo $ac_n "(cached) $ac_c" 1>&6
12998else
12999 cat > conftest.$ac_ext <<EOF
8fd0d89b 13000#line 13001 "configure"
3fed1840
RR
13001#include "confdefs.h"
13002#include <freetype.h>
13003EOF
13004ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8fd0d89b 13005{ (eval echo configure:13006: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3fed1840
RR
13006ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13007if test -z "$ac_err"; then
13008 rm -rf conftest*
13009 eval "ac_cv_header_$ac_safe=yes"
13010else
13011 echo "$ac_err" >&5
13012 echo "configure: failed program was:" >&5
13013 cat conftest.$ac_ext >&5
13014 rm -rf conftest*
13015 eval "ac_cv_header_$ac_safe=no"
13016fi
13017rm -f conftest*
13018fi
13019if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13020 echo "$ac_t""yes" 1>&6
13021 echo $ac_n "checking for FT_Render_Glyph in -lfreetype""... $ac_c" 1>&6
8fd0d89b 13022echo "configure:13023: checking for FT_Render_Glyph in -lfreetype" >&5
3fed1840
RR
13023ac_lib_var=`echo freetype'_'FT_Render_Glyph | sed 'y%./+-%__p_%'`
13024if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13025 echo $ac_n "(cached) $ac_c" 1>&6
13026else
13027 ac_save_LIBS="$LIBS"
13028LIBS="-lfreetype -lm $LIBS"
13029cat > conftest.$ac_ext <<EOF
8fd0d89b 13030#line 13031 "configure"
3fed1840
RR
13031#include "confdefs.h"
13032/* Override any gcc2 internal prototype to avoid an error. */
13033/* We use char because int might match the return type of a gcc2
13034 builtin and then its argument prototype would still apply. */
13035char FT_Render_Glyph();
13036
13037int main() {
13038FT_Render_Glyph()
13039; return 0; }
13040EOF
8fd0d89b 13041if { (eval echo configure:13042: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3fed1840
RR
13042 rm -rf conftest*
13043 eval "ac_cv_lib_$ac_lib_var=yes"
13044else
13045 echo "configure: failed program was:" >&5
13046 cat conftest.$ac_ext >&5
13047 rm -rf conftest*
13048 eval "ac_cv_lib_$ac_lib_var=no"
13049fi
13050rm -f conftest*
13051LIBS="$ac_save_LIBS"
13052
13053fi
13054if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13055 echo "$ac_t""yes" 1>&6
13056 FREETYPE_LINK="-lfreetype"
13057else
13058 echo "$ac_t""no" 1>&6
13059fi
13060
13061
13062else
13063 echo "$ac_t""no" 1>&6
13064fi
13065
13066 if test "x$FREETYPE_LINK" = "x" ; then
13067 { echo "configure: error: system freetype library not found! Use --with-freetype=yes to use the built-in freetype" 1>&2; exit 1; }
13068 fi
13069 fi
13070fi
13071
10f2d63a
VZ
13072if test "$wxUSE_OPENGL" = "yes"; then
13073 ac_safe=`echo "GL/gl.h" | sed 'y%./+-%__p_%'`
13074echo $ac_n "checking for GL/gl.h""... $ac_c" 1>&6
8fd0d89b 13075echo "configure:13076: checking for GL/gl.h" >&5
10f2d63a
VZ
13076if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
13077 echo $ac_n "(cached) $ac_c" 1>&6
13078else
13079 cat > conftest.$ac_ext <<EOF
8fd0d89b 13080#line 13081 "configure"
10f2d63a
VZ
13081#include "confdefs.h"
13082#include <GL/gl.h>
13083EOF
13084ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8fd0d89b 13085{ (eval echo configure:13086: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
13086ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13087if test -z "$ac_err"; then
13088 rm -rf conftest*
13089 eval "ac_cv_header_$ac_safe=yes"
13090else
13091 echo "$ac_err" >&5
13092 echo "configure: failed program was:" >&5
13093 cat conftest.$ac_ext >&5
13094 rm -rf conftest*
13095 eval "ac_cv_header_$ac_safe=no"
13096fi
13097rm -f conftest*
13098fi
13099if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13100 echo "$ac_t""yes" 1>&6
13101
bdad4e7e
RR
13102 cat >> confdefs.h <<\EOF
13103#define wxUSE_OPENGL 1
13104EOF
13105
13106 cat >> confdefs.h <<\EOF
13107#define wxUSE_GLCANVAS 1
13108EOF
13109
13110 echo $ac_n "checking for glFlush in -lGL""... $ac_c" 1>&6
8fd0d89b 13111echo "configure:13112: checking for glFlush in -lGL" >&5
bdad4e7e 13112ac_lib_var=`echo GL'_'glFlush | sed 'y%./+-%__p_%'`
10f2d63a
VZ
13113if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13114 echo $ac_n "(cached) $ac_c" 1>&6
13115else
13116 ac_save_LIBS="$LIBS"
bdad4e7e 13117LIBS="-lGL $LIBS"
10f2d63a 13118cat > conftest.$ac_ext <<EOF
8fd0d89b 13119#line 13120 "configure"
10f2d63a
VZ
13120#include "confdefs.h"
13121/* Override any gcc2 internal prototype to avoid an error. */
13122/* We use char because int might match the return type of a gcc2
13123 builtin and then its argument prototype would still apply. */
bdad4e7e 13124char glFlush();
10f2d63a
VZ
13125
13126int main() {
bdad4e7e 13127glFlush()
10f2d63a
VZ
13128; return 0; }
13129EOF
8fd0d89b 13130if { (eval echo configure:13131: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
13131 rm -rf conftest*
13132 eval "ac_cv_lib_$ac_lib_var=yes"
13133else
13134 echo "configure: failed program was:" >&5
13135 cat conftest.$ac_ext >&5
13136 rm -rf conftest*
13137 eval "ac_cv_lib_$ac_lib_var=no"
13138fi
13139rm -f conftest*
13140LIBS="$ac_save_LIBS"
13141
13142fi
13143if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13144 echo "$ac_t""yes" 1>&6
13145
f6bcfd97 13146 OPENGL_LINK="-lGL -lGLU"
10f2d63a
VZ
13147
13148else
13149 echo "$ac_t""no" 1>&6
13150
bdad4e7e 13151 echo $ac_n "checking for glFlush in -lMesaGL""... $ac_c" 1>&6
8fd0d89b 13152echo "configure:13153: checking for glFlush in -lMesaGL" >&5
bdad4e7e 13153ac_lib_var=`echo MesaGL'_'glFlush | sed 'y%./+-%__p_%'`
10f2d63a
VZ
13154if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13155 echo $ac_n "(cached) $ac_c" 1>&6
13156else
13157 ac_save_LIBS="$LIBS"
13158LIBS="-lMesaGL $LIBS"
13159cat > conftest.$ac_ext <<EOF
8fd0d89b 13160#line 13161 "configure"
10f2d63a
VZ
13161#include "confdefs.h"
13162/* Override any gcc2 internal prototype to avoid an error. */
13163/* We use char because int might match the return type of a gcc2
13164 builtin and then its argument prototype would still apply. */
bdad4e7e 13165char glFlush();
10f2d63a
VZ
13166
13167int main() {
bdad4e7e 13168glFlush()
10f2d63a
VZ
13169; return 0; }
13170EOF
8fd0d89b 13171if { (eval echo configure:13172: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
13172 rm -rf conftest*
13173 eval "ac_cv_lib_$ac_lib_var=yes"
13174else
13175 echo "configure: failed program was:" >&5
13176 cat conftest.$ac_ext >&5
13177 rm -rf conftest*
13178 eval "ac_cv_lib_$ac_lib_var=no"
13179fi
13180rm -f conftest*
13181LIBS="$ac_save_LIBS"
13182
13183fi
13184if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13185 echo "$ac_t""yes" 1>&6
13186
f6bcfd97 13187 OPENGL_LINK="-lMesaGL -lMesaGLU"
10f2d63a
VZ
13188
13189else
13190 echo "$ac_t""no" 1>&6
10f2d63a
VZ
13191fi
13192
13193
13194fi
13195
13196
13197else
13198 echo "$ac_t""no" 1>&6
13199wxUSE_OPENGL=0
13200fi
13201
13202fi
13203
13204
13205if test "$wxUSE_GUI" = "yes"; then
13206 cat >> confdefs.h <<\EOF
13207#define wxUSE_GUI 1
13208EOF
13209
13210
13211 else
13212 cat >> confdefs.h <<\EOF
13213#define wxUSE_NOGUI 1
13214EOF
13215
13216fi
13217
13218
13219if test "$wxUSE_UNIX" = "yes"; then
13220 cat >> confdefs.h <<\EOF
13221#define wxUSE_UNIX 1
13222EOF
13223
13224fi
13225
13226
13227if test "$wxUSE_APPLE_IEEE" = "yes"; then
13228 cat >> confdefs.h <<\EOF
13229#define wxUSE_APPLE_IEEE 1
13230EOF
13231
13232fi
13233
10f2d63a
VZ
13234if test "$wxUSE_WAVE" = "yes"; then
13235 cat >> confdefs.h <<\EOF
13236#define wxUSE_WAVE 1
13237EOF
13238
13239fi
13240
13241if test "$wxUSE_FILE" = "yes"; then
13242 cat >> confdefs.h <<\EOF
13243#define wxUSE_FILE 1
13244EOF
13245
13246fi
13247
24528b0c
VS
13248if test "$wxUSE_FILESYSTEM" = "yes"; then
13249 cat >> confdefs.h <<\EOF
13250#define wxUSE_FILESYSTEM 1
13251EOF
13252
13253fi
13254
10f2d63a
VZ
13255if test "$wxUSE_FS_INET" = "yes"; then
13256 cat >> confdefs.h <<\EOF
13257#define wxUSE_FS_INET 1
13258EOF
13259
13260fi
13261
13262if test "$wxUSE_FS_ZIP" = "yes"; then
13263 cat >> confdefs.h <<\EOF
13264#define wxUSE_FS_ZIP 1
13265EOF
13266
13267fi
13268
13269if test "$wxUSE_ZIPSTREAM" = "yes"; then
13270 cat >> confdefs.h <<\EOF
13271#define wxUSE_ZIPSTREAM 1
13272EOF
13273
13274fi
13275
eb4efbdc
VZ
13276if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
13277 cat >> confdefs.h <<\EOF
13278#define wxUSE_ON_FATAL_EXCEPTION 1
13279EOF
13280
13281fi
13282
10f2d63a
VZ
13283if test "$wxUSE_BUSYINFO" = "yes"; then
13284 cat >> confdefs.h <<\EOF
13285#define wxUSE_BUSYINFO 1
13286EOF
13287
13288fi
13289
13290if test "$wxUSE_STD_IOSTREAM" = "yes"; then
13291 cat >> confdefs.h <<\EOF
13292#define wxUSE_STD_IOSTREAM 1
13293EOF
13294
13295fi
13296
13297if test "$wxUSE_TEXTFILE" = "yes"; then
13298 if test "$wxUSE_FILE" != "yes"; then
13299 echo "configure: warning: wxTextFile requires wxFile and it won't be compiled without it" 1>&2
13300 else
13301 cat >> confdefs.h <<\EOF
13302#define wxUSE_TEXTFILE 1
13303EOF
13304
13305 fi
13306fi
13307
13308if test "$wxUSE_CONFIG" = "yes" ; then
13309 if test "$wxUSE_TEXTFILE" != "yes"; then
13310 echo "configure: warning: wxConfig requires wxTextFile and it won't be compiled without it" 1>&2
13311 else
13312 cat >> confdefs.h <<\EOF
13313#define wxUSE_CONFIG 1
13314EOF
13315
13316 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
13317 fi
13318fi
13319
13320if test "$wxUSE_INTL" = "yes" ; then
13321 if test "$wxUSE_FILE" != "yes"; then
13322 echo "configure: warning: I18n code requires wxFile and it won't be compiled without it" 1>&2
13323 else
13324 cat >> confdefs.h <<\EOF
13325#define wxUSE_INTL 1
13326EOF
13327
13328 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
f6bcfd97 13329 GUIDIST="$GUIDIST INTL_DIST"
10f2d63a
VZ
13330 fi
13331fi
13332
13333if test "$wxUSE_LOG" = "yes"; then
13334 cat >> confdefs.h <<\EOF
13335#define wxUSE_LOG 1
13336EOF
13337
13338fi
13339
13340if test "$wxUSE_LONGLONG" = "yes"; then
13341 cat >> confdefs.h <<\EOF
13342#define wxUSE_LONGLONG 1
13343EOF
13344
13345fi
13346
e8f65ba6
RR
13347if test "$wxUSE_GEOMETRY" = "yes"; then
13348 cat >> confdefs.h <<\EOF
13349#define wxUSE_GEOMETRY 1
13350EOF
13351
13352fi
13353
9b33fe02
VZ
13354if test "$wxUSE_PLOT" = "yes"; then
13355 cat >> confdefs.h <<\EOF
13356#define wxUSE_PLOT 1
13357EOF
13358
13359fi
13360
10f2d63a
VZ
13361if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then
13362 cat >> confdefs.h <<\EOF
13363#define wxUSE_DIALUP_MANAGER 1
13364EOF
13365
70f7a477 13366 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
10f2d63a
VZ
13367fi
13368
13369if test "$wxUSE_STREAMS" = "yes" ; then
13370 cat >> confdefs.h <<\EOF
13371#define wxUSE_STREAMS 1
13372EOF
13373
13374fi
13375
10f2d63a 13376
afc31813 13377if test "$wxUSE_TIMEDATE" = "yes"; then
83307f33
VZ
13378 for ac_func in strptime
13379do
13380echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8fd0d89b 13381echo "configure:13382: checking for $ac_func" >&5
83307f33
VZ
13382if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13383 echo $ac_n "(cached) $ac_c" 1>&6
13384else
13385 cat > conftest.$ac_ext <<EOF
8fd0d89b 13386#line 13387 "configure"
83307f33
VZ
13387#include "confdefs.h"
13388/* System header to define __stub macros and hopefully few prototypes,
13389 which can conflict with char $ac_func(); below. */
13390#include <assert.h>
13391/* Override any gcc2 internal prototype to avoid an error. */
13392/* We use char because int might match the return type of a gcc2
13393 builtin and then its argument prototype would still apply. */
13394char $ac_func();
13395
13396int main() {
13397
13398/* The GNU C library defines this for functions which it implements
13399 to always fail with ENOSYS. Some functions are actually named
13400 something starting with __ and the normal name is an alias. */
13401#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13402choke me
13403#else
e8482f24 13404$ac_func();
83307f33
VZ
13405#endif
13406
13407; return 0; }
13408EOF
8fd0d89b 13409if { (eval echo configure:13410: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
83307f33
VZ
13410 rm -rf conftest*
13411 eval "ac_cv_func_$ac_func=yes"
13412else
13413 echo "configure: failed program was:" >&5
13414 cat conftest.$ac_ext >&5
13415 rm -rf conftest*
13416 eval "ac_cv_func_$ac_func=no"
13417fi
13418rm -f conftest*
13419fi
13420
13421if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13422 echo "$ac_t""yes" 1>&6
13423 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13424 cat >> confdefs.h <<EOF
13425#define $ac_tr_func 1
13426EOF
13427
13428else
13429 echo "$ac_t""no" 1>&6
13430fi
13431done
13432
13433
360d6699 13434 echo $ac_n "checking for timezone variable in <time.h>""... $ac_c" 1>&6
8fd0d89b 13435echo "configure:13436: checking for timezone variable in <time.h>" >&5
360d6699
VZ
13436if eval "test \"`echo '$''{'wx_cv_var_timezone'+set}'`\" = set"; then
13437 echo $ac_n "(cached) $ac_c" 1>&6
13438else
13439
13440 cat > conftest.$ac_ext <<EOF
8fd0d89b 13441#line 13442 "configure"
360d6699
VZ
13442#include "confdefs.h"
13443
13444 #include <time.h>
13445
13446int main() {
13447
13448 int tz;
13449 tz = __timezone;
13450
13451; return 0; }
13452EOF
8fd0d89b 13453if { (eval echo configure:13454: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
360d6699
VZ
13454 rm -rf conftest*
13455
13456 wx_cv_var_timezone=__timezone
13457
13458else
13459 echo "configure: failed program was:" >&5
13460 cat conftest.$ac_ext >&5
13461 rm -rf conftest*
13462
13463 cat > conftest.$ac_ext <<EOF
8fd0d89b 13464#line 13465 "configure"
360d6699
VZ
13465#include "confdefs.h"
13466
13467 #include <time.h>
13468
13469int main() {
13470
13471 int tz;
13472 tz = _timezone;
13473
13474; return 0; }
13475EOF
8fd0d89b 13476if { (eval echo configure:13477: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
360d6699
VZ
13477 rm -rf conftest*
13478
13479 wx_cv_var_timezone=_timezone
13480
5357c8e8
VZ
13481else
13482 echo "configure: failed program was:" >&5
13483 cat conftest.$ac_ext >&5
13484 rm -rf conftest*
13485
13486 cat > conftest.$ac_ext <<EOF
8fd0d89b 13487#line 13488 "configure"
5357c8e8
VZ
13488#include "confdefs.h"
13489
13490 #include <time.h>
13491
13492int main() {
13493
13494 int tz;
13495 tz = timezone;
13496
13497; return 0; }
13498EOF
8fd0d89b 13499if { (eval echo configure:13500: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5357c8e8
VZ
13500 rm -rf conftest*
13501
13502 wx_cv_var_timezone=timezone
13503
360d6699
VZ
13504else
13505 echo "configure: failed program was:" >&5
13506 cat conftest.$ac_ext >&5
13507 rm -rf conftest*
13508 { echo "configure: error: no timezone variable" 1>&2; exit 1; }
5357c8e8
VZ
13509
13510fi
13511rm -f conftest*
13512
360d6699
VZ
13513
13514fi
13515rm -f conftest*
13516
13517
13518fi
13519rm -f conftest*
13520
13521
13522fi
13523
13524echo "$ac_t""$wx_cv_var_timezone" 1>&6
13525
13526 cat >> confdefs.h <<EOF
13527#define WX_TIMEZONE $wx_cv_var_timezone
13528EOF
13529
13530
3fcdd07b 13531 for ac_func in localtime
afc31813
VZ
13532do
13533echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8fd0d89b 13534echo "configure:13535: checking for $ac_func" >&5
afc31813
VZ
13535if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13536 echo $ac_n "(cached) $ac_c" 1>&6
13537else
13538 cat > conftest.$ac_ext <<EOF
8fd0d89b 13539#line 13540 "configure"
10f2d63a 13540#include "confdefs.h"
afc31813
VZ
13541/* System header to define __stub macros and hopefully few prototypes,
13542 which can conflict with char $ac_func(); below. */
13543#include <assert.h>
13544/* Override any gcc2 internal prototype to avoid an error. */
13545/* We use char because int might match the return type of a gcc2
13546 builtin and then its argument prototype would still apply. */
13547char $ac_func();
13548
10f2d63a 13549int main() {
afc31813
VZ
13550
13551/* The GNU C library defines this for functions which it implements
13552 to always fail with ENOSYS. Some functions are actually named
13553 something starting with __ and the normal name is an alias. */
13554#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13555choke me
13556#else
e8482f24 13557$ac_func();
afc31813
VZ
13558#endif
13559
10f2d63a
VZ
13560; return 0; }
13561EOF
8fd0d89b 13562if { (eval echo configure:13563: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a 13563 rm -rf conftest*
afc31813 13564 eval "ac_cv_func_$ac_func=yes"
10f2d63a
VZ
13565else
13566 echo "configure: failed program was:" >&5
13567 cat conftest.$ac_ext >&5
13568 rm -rf conftest*
afc31813
VZ
13569 eval "ac_cv_func_$ac_func=no"
13570fi
13571rm -f conftest*
13572fi
13573
13574if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13575 echo "$ac_t""yes" 1>&6
13576 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13577 cat >> confdefs.h <<EOF
13578#define $ac_tr_func 1
13579EOF
3fcdd07b 13580
afc31813
VZ
13581else
13582 echo "$ac_t""no" 1>&6
13583fi
13584done
13585
13586
0470b1e6
VZ
13587 if test "$ac_cv_func_localtime" = "yes"; then
13588 echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6
8fd0d89b 13589echo "configure:13590: checking for tm_gmtoff in struct tm" >&5
0470b1e6
VZ
13590if eval "test \"`echo '$''{'wx_cv_struct_tm_has_gmtoff'+set}'`\" = set"; then
13591 echo $ac_n "(cached) $ac_c" 1>&6
13592else
13593
13594 cat > conftest.$ac_ext <<EOF
8fd0d89b 13595#line 13596 "configure"
0470b1e6
VZ
13596#include "confdefs.h"
13597
13598 #include <time.h>
13599
13600int main() {
13601
13602 struct tm tm;
13603 tm.tm_gmtoff++;
13604
13605; return 0; }
13606EOF
8fd0d89b 13607if { (eval echo configure:13608: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
0470b1e6
VZ
13608 rm -rf conftest*
13609
f03a98d8 13610 wx_cv_struct_tm_has_gmtoff=yes
0470b1e6
VZ
13611 cat >> confdefs.h <<\EOF
13612#define WX_GMTOFF_IN_TM 1
13613EOF
13614
13615
13616else
13617 echo "configure: failed program was:" >&5
13618 cat conftest.$ac_ext >&5
13619 rm -rf conftest*
13620 wx_cv_struct_tm_has_gmtoff=no
13621
13622fi
13623rm -f conftest*
13624
13625fi
13626
13627echo "$ac_t""$wx_cv_struct_tm_has_gmtoff" 1>&6
3fcdd07b
VZ
13628 fi
13629
13630 for ac_func in gettimeofday ftime
13631do
13632echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8fd0d89b 13633echo "configure:13634: checking for $ac_func" >&5
3fcdd07b
VZ
13634if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13635 echo $ac_n "(cached) $ac_c" 1>&6
13636else
13637 cat > conftest.$ac_ext <<EOF
8fd0d89b 13638#line 13639 "configure"
3fcdd07b
VZ
13639#include "confdefs.h"
13640/* System header to define __stub macros and hopefully few prototypes,
13641 which can conflict with char $ac_func(); below. */
13642#include <assert.h>
13643/* Override any gcc2 internal prototype to avoid an error. */
13644/* We use char because int might match the return type of a gcc2
13645 builtin and then its argument prototype would still apply. */
13646char $ac_func();
13647
13648int main() {
13649
13650/* The GNU C library defines this for functions which it implements
13651 to always fail with ENOSYS. Some functions are actually named
13652 something starting with __ and the normal name is an alias. */
13653#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13654choke me
13655#else
e8482f24 13656$ac_func();
3fcdd07b
VZ
13657#endif
13658
13659; return 0; }
13660EOF
8fd0d89b 13661if { (eval echo configure:13662: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3fcdd07b
VZ
13662 rm -rf conftest*
13663 eval "ac_cv_func_$ac_func=yes"
13664else
13665 echo "configure: failed program was:" >&5
13666 cat conftest.$ac_ext >&5
13667 rm -rf conftest*
13668 eval "ac_cv_func_$ac_func=no"
13669fi
13670rm -f conftest*
13671fi
13672
13673if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13674 echo "$ac_t""yes" 1>&6
13675 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13676 cat >> confdefs.h <<EOF
13677#define $ac_tr_func 1
13678EOF
13679 break
13680else
13681 echo "$ac_t""no" 1>&6
13682fi
13683done
13684
13685
13686 if test "$ac_cv_func_gettimeofday" = "yes"; then
afc31813 13687 echo $ac_n "checking whether gettimeofday takes two arguments""... $ac_c" 1>&6
8fd0d89b 13688echo "configure:13689: checking whether gettimeofday takes two arguments" >&5
afc31813
VZ
13689if eval "test \"`echo '$''{'wx_cv_func_gettimeofday_has_2_args'+set}'`\" = set"; then
13690 echo $ac_n "(cached) $ac_c" 1>&6
13691else
13692
13693
13694 ac_ext=C
13695# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13696ac_cpp='$CXXCPP $CPPFLAGS'
13697ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13698ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13699cross_compiling=$ac_cv_prog_cxx_cross
13700
13701
13702 cat > conftest.$ac_ext <<EOF
8fd0d89b 13703#line 13704 "configure"
10f2d63a 13704#include "confdefs.h"
afc31813
VZ
13705
13706 #include <sys/time.h>
13707 #include <unistd.h>
13708
10f2d63a 13709int main() {
afc31813
VZ
13710
13711 struct timeval tv;
13712 struct timezone tz;
13713 gettimeofday(&tv, &tz);
13714
10f2d63a
VZ
13715; return 0; }
13716EOF
8fd0d89b 13717if { (eval echo configure:13718: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10f2d63a 13718 rm -rf conftest*
afc31813 13719 wx_cv_func_gettimeofday_has_2_args=yes
10f2d63a
VZ
13720else
13721 echo "configure: failed program was:" >&5
13722 cat conftest.$ac_ext >&5
13723 rm -rf conftest*
13724 cat > conftest.$ac_ext <<EOF
8fd0d89b 13725#line 13726 "configure"
10f2d63a 13726#include "confdefs.h"
afc31813
VZ
13727
13728 #include <sys/time.h>
13729 #include <unistd.h>
13730
10f2d63a 13731int main() {
afc31813
VZ
13732
13733 struct timeval tv;
13734 gettimeofday(&tv);
13735
10f2d63a
VZ
13736; return 0; }
13737EOF
8fd0d89b 13738if { (eval echo configure:13739: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10f2d63a 13739 rm -rf conftest*
afc31813 13740 wx_cv_func_gettimeofday_has_2_args=no
10f2d63a
VZ
13741else
13742 echo "configure: failed program was:" >&5
13743 cat conftest.$ac_ext >&5
13744 rm -rf conftest*
afc31813
VZ
13745 wx_cv_func_gettimeofday_has_2_args=unknown
13746
10f2d63a
VZ
13747fi
13748rm -f conftest*
afc31813 13749
10f2d63a
VZ
13750fi
13751rm -f conftest*
afc31813 13752 ac_ext=c
10f2d63a
VZ
13753# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13754ac_cpp='$CPP $CPPFLAGS'
13755ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13756ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13757cross_compiling=$ac_cv_prog_cc_cross
13758
afc31813
VZ
13759
13760fi
13761
13762echo "$ac_t""$wx_cv_func_gettimeofday_has_2_args" 1>&6
c63c7106 13763
afc31813
VZ
13764 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
13765 cat >> confdefs.h <<\EOF
13766#define WX_GETTIMEOFDAY_NO_TZ 1
13767EOF
13768
13769 fi
13770 fi
13771
13772 cat >> confdefs.h <<\EOF
13773#define wxUSE_TIMEDATE 1
13774EOF
13775
13776 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
13777fi
13778
13779
b089607b
VZ
13780if test "$TOOLKIT" != "MSW"; then
13781
afc31813 13782if test "$wxUSE_SOCKETS" = "yes"; then
c63c7106 13783 echo $ac_n "checking for socket""... $ac_c" 1>&6
8fd0d89b 13784echo "configure:13785: checking for socket" >&5
c63c7106
VZ
13785if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
13786 echo $ac_n "(cached) $ac_c" 1>&6
13787else
13788 cat > conftest.$ac_ext <<EOF
8fd0d89b 13789#line 13790 "configure"
c63c7106
VZ
13790#include "confdefs.h"
13791/* System header to define __stub macros and hopefully few prototypes,
13792 which can conflict with char socket(); below. */
13793#include <assert.h>
13794/* Override any gcc2 internal prototype to avoid an error. */
13795/* We use char because int might match the return type of a gcc2
13796 builtin and then its argument prototype would still apply. */
13797char socket();
13798
13799int main() {
13800
13801/* The GNU C library defines this for functions which it implements
13802 to always fail with ENOSYS. Some functions are actually named
13803 something starting with __ and the normal name is an alias. */
13804#if defined (__stub_socket) || defined (__stub___socket)
13805choke me
13806#else
e8482f24 13807socket();
c63c7106
VZ
13808#endif
13809
13810; return 0; }
13811EOF
8fd0d89b 13812if { (eval echo configure:13813: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
c63c7106
VZ
13813 rm -rf conftest*
13814 eval "ac_cv_func_socket=yes"
13815else
13816 echo "configure: failed program was:" >&5
13817 cat conftest.$ac_ext >&5
13818 rm -rf conftest*
13819 eval "ac_cv_func_socket=no"
13820fi
13821rm -f conftest*
13822fi
13823
13824if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
13825 echo "$ac_t""yes" 1>&6
13826 :
13827else
13828 echo "$ac_t""no" 1>&6
13829echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
8fd0d89b 13830echo "configure:13831: checking for socket in -lsocket" >&5
c63c7106
VZ
13831ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
13832if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13833 echo $ac_n "(cached) $ac_c" 1>&6
13834else
13835 ac_save_LIBS="$LIBS"
13836LIBS="-lsocket $LIBS"
13837cat > conftest.$ac_ext <<EOF
8fd0d89b 13838#line 13839 "configure"
c63c7106
VZ
13839#include "confdefs.h"
13840/* Override any gcc2 internal prototype to avoid an error. */
13841/* We use char because int might match the return type of a gcc2
13842 builtin and then its argument prototype would still apply. */
13843char socket();
13844
13845int main() {
13846socket()
13847; return 0; }
13848EOF
8fd0d89b 13849if { (eval echo configure:13850: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
c63c7106
VZ
13850 rm -rf conftest*
13851 eval "ac_cv_lib_$ac_lib_var=yes"
13852else
13853 echo "configure: failed program was:" >&5
13854 cat conftest.$ac_ext >&5
13855 rm -rf conftest*
13856 eval "ac_cv_lib_$ac_lib_var=no"
13857fi
13858rm -f conftest*
13859LIBS="$ac_save_LIBS"
13860
13861fi
13862if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13863 echo "$ac_t""yes" 1>&6
13864 INET_LINK="$INET_LINK -lsocket"
c63c7106
VZ
13865else
13866 echo "$ac_t""no" 1>&6
afc31813
VZ
13867
13868 echo "configure: warning: socket library not found - sockets will be disabled" 1>&2
13869 wxUSE_SOCKETS=no
13870
13871
c63c7106
VZ
13872fi
13873
13874
13875fi
13876
10f2d63a
VZ
13877fi
13878
b089607b
VZ
13879fi
13880
afc31813 13881if test "$wxUSE_SOCKETS" = "yes" ; then
51a9faba 13882 echo $ac_n "checking what is the type of the third argument of getsockname""... $ac_c" 1>&6
8fd0d89b 13883echo "configure:13884: checking what is the type of the third argument of getsockname" >&5
51a9faba
VZ
13884if eval "test \"`echo '$''{'wx_cv_type_getsockname3'+set}'`\" = set"; then
13885 echo $ac_n "(cached) $ac_c" 1>&6
13886else
13887
13888
13889 ac_ext=C
afc31813
VZ
13890# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13891ac_cpp='$CXXCPP $CPPFLAGS'
13892ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13893ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13894cross_compiling=$ac_cv_prog_cxx_cross
13895
51a9faba
VZ
13896
13897 cat > conftest.$ac_ext <<EOF
8fd0d89b 13898#line 13899 "configure"
afc31813 13899#include "confdefs.h"
51a9faba 13900
3ace2e6d 13901 #include <sys/types.h>
51a9faba
VZ
13902 #include <sys/socket.h>
13903
afc31813 13904int main() {
51a9faba
VZ
13905
13906 socklen_t len;
13907 getsockname(0, 0, &len);
13908
afc31813
VZ
13909; return 0; }
13910EOF
8fd0d89b 13911if { (eval echo configure:13912: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
afc31813 13912 rm -rf conftest*
51a9faba 13913 wx_cv_type_getsockname3=socklen_t
afc31813
VZ
13914else
13915 echo "configure: failed program was:" >&5
13916 cat conftest.$ac_ext >&5
13917 rm -rf conftest*
13918 cat > conftest.$ac_ext <<EOF
8fd0d89b 13919#line 13920 "configure"
afc31813 13920#include "confdefs.h"
51a9faba 13921
3ace2e6d 13922 #include <sys/types.h>
51a9faba
VZ
13923 #include <sys/socket.h>
13924
afc31813 13925int main() {
51a9faba
VZ
13926
13927 size_t len;
13928 getsockname(0, 0, &len);
13929
afc31813
VZ
13930; return 0; }
13931EOF
8fd0d89b 13932if { (eval echo configure:13933: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
afc31813 13933 rm -rf conftest*
51a9faba 13934 wx_cv_type_getsockname3=size_t
afc31813
VZ
13935else
13936 echo "configure: failed program was:" >&5
13937 cat conftest.$ac_ext >&5
13938 rm -rf conftest*
13939 cat > conftest.$ac_ext <<EOF
8fd0d89b 13940#line 13941 "configure"
afc31813 13941#include "confdefs.h"
51a9faba 13942
3ace2e6d 13943 #include <sys/types.h>
51a9faba
VZ
13944 #include <sys/socket.h>
13945
afc31813 13946int main() {
51a9faba
VZ
13947
13948 int len;
13949 getsockname(0, 0, &len);
13950
afc31813
VZ
13951; return 0; }
13952EOF
8fd0d89b 13953if { (eval echo configure:13954: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
afc31813 13954 rm -rf conftest*
51a9faba 13955 wx_cv_type_getsockname3=int
afc31813
VZ
13956else
13957 echo "configure: failed program was:" >&5
13958 cat conftest.$ac_ext >&5
3ace2e6d
SN
13959 rm -rf conftest*
13960 wx_cv_type_getsockname3=unknown
13961
afc31813
VZ
13962fi
13963rm -f conftest*
51a9faba 13964
afc31813
VZ
13965fi
13966rm -f conftest*
51a9faba 13967
afc31813
VZ
13968fi
13969rm -f conftest*
51a9faba
VZ
13970
13971 ac_ext=c
afc31813
VZ
13972# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13973ac_cpp='$CPP $CPPFLAGS'
13974ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13975ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13976cross_compiling=$ac_cv_prog_cc_cross
13977
51a9faba
VZ
13978
13979fi
13980
13981echo "$ac_t""$wx_cv_type_getsockname3" 1>&6
13982
13983 if test "$wx_cv_type_getsockname3" = "unknown"; then
13984 wxUSE_SOCKETS=no
13985 echo "configure: warning: Couldn't find socklen_t synonym for this system" 1>&2
13986 else
13987 cat >> confdefs.h <<EOF
13988#define SOCKLEN_T $wx_cv_type_getsockname3
13989EOF
13990
13991 fi
13992fi
afc31813 13993
51a9faba 13994if test "$wxUSE_SOCKETS" = "yes" ; then
afc31813
VZ
13995 cat >> confdefs.h <<\EOF
13996#define wxUSE_SOCKETS 1
13997EOF
13998
70f7a477 13999 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
afc31813
VZ
14000 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS protocol"
14001fi
14002
10f2d63a 14003
dc3d889d
VZ
14004if test "$wxUSE_GUI" = "yes"; then
14005
b089607b
VZ
14006if test "$TOOLKIT" != "MSW"; then
14007
ceded8b9 14008if test "$wxUSE_JOYSTICK" = "yes"; then
10f2d63a
VZ
14009 for ac_hdr in linux/joystick.h
14010do
14011ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
14012echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8fd0d89b 14013echo "configure:14014: checking for $ac_hdr" >&5
10f2d63a
VZ
14014if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
14015 echo $ac_n "(cached) $ac_c" 1>&6
14016else
14017 cat > conftest.$ac_ext <<EOF
8fd0d89b 14018#line 14019 "configure"
10f2d63a
VZ
14019#include "confdefs.h"
14020#include <$ac_hdr>
14021EOF
14022ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8fd0d89b 14023{ (eval echo configure:14024: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
14024ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14025if test -z "$ac_err"; then
14026 rm -rf conftest*
14027 eval "ac_cv_header_$ac_safe=yes"
14028else
14029 echo "$ac_err" >&5
14030 echo "configure: failed program was:" >&5
14031 cat conftest.$ac_ext >&5
14032 rm -rf conftest*
14033 eval "ac_cv_header_$ac_safe=no"
14034fi
14035rm -f conftest*
14036fi
14037if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14038 echo "$ac_t""yes" 1>&6
14039 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
14040 cat >> confdefs.h <<EOF
14041#define $ac_tr_hdr 1
14042EOF
14043
14044else
14045 echo "$ac_t""no" 1>&6
14046fi
14047done
14048
b089607b 14049 if test "$ac_cv_header_linux_joystick_h" != "yes"; then
ceded8b9 14050 wxUSE_JOYSTICK=no
dc3d889d 14051 echo "configure: warning: Joystick not supported by this system" 1>&2
b089607b
VZ
14052 fi
14053fi
14054
14055fi
14056
ceded8b9 14057if test "$wxUSE_JOYSTICK" = "yes"; then
10f2d63a
VZ
14058 cat >> confdefs.h <<\EOF
14059#define wxUSE_JOYSTICK 1
14060EOF
14061
14062 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
10f2d63a
VZ
14063fi
14064
dc3d889d
VZ
14065fi
14066
10f2d63a 14067
b089607b
VZ
14068if test "$TOOLKIT" != "MSW"; then
14069
10f2d63a
VZ
14070HAVE_DL_FUNCS=0
14071HAVE_SHL_FUNCS=0
14072if test "$wxUSE_DYNLIB_CLASS" = "yes"; then
14073 for ac_func in dlopen
14074do
14075echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8fd0d89b 14076echo "configure:14077: checking for $ac_func" >&5
10f2d63a
VZ
14077if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14078 echo $ac_n "(cached) $ac_c" 1>&6
14079else
14080 cat > conftest.$ac_ext <<EOF
8fd0d89b 14081#line 14082 "configure"
10f2d63a
VZ
14082#include "confdefs.h"
14083/* System header to define __stub macros and hopefully few prototypes,
14084 which can conflict with char $ac_func(); below. */
14085#include <assert.h>
14086/* Override any gcc2 internal prototype to avoid an error. */
14087/* We use char because int might match the return type of a gcc2
14088 builtin and then its argument prototype would still apply. */
14089char $ac_func();
14090
14091int main() {
14092
14093/* The GNU C library defines this for functions which it implements
14094 to always fail with ENOSYS. Some functions are actually named
14095 something starting with __ and the normal name is an alias. */
14096#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14097choke me
14098#else
e8482f24 14099$ac_func();
10f2d63a
VZ
14100#endif
14101
14102; return 0; }
14103EOF
8fd0d89b 14104if { (eval echo configure:14105: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
14105 rm -rf conftest*
14106 eval "ac_cv_func_$ac_func=yes"
14107else
14108 echo "configure: failed program was:" >&5
14109 cat conftest.$ac_ext >&5
14110 rm -rf conftest*
14111 eval "ac_cv_func_$ac_func=no"
14112fi
14113rm -f conftest*
14114fi
14115
14116if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14117 echo "$ac_t""yes" 1>&6
14118 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14119 cat >> confdefs.h <<EOF
14120#define $ac_tr_func 1
14121EOF
14122
14123 cat >> confdefs.h <<\EOF
14124#define HAVE_DLOPEN 1
14125EOF
14126
14127 HAVE_DL_FUNCS=1
14128
14129else
14130 echo "$ac_t""no" 1>&6
14131echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
8fd0d89b 14132echo "configure:14133: checking for dlopen in -ldl" >&5
10f2d63a
VZ
14133ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
14134if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14135 echo $ac_n "(cached) $ac_c" 1>&6
14136else
14137 ac_save_LIBS="$LIBS"
14138LIBS="-ldl $LIBS"
14139cat > conftest.$ac_ext <<EOF
8fd0d89b 14140#line 14141 "configure"
10f2d63a
VZ
14141#include "confdefs.h"
14142/* Override any gcc2 internal prototype to avoid an error. */
14143/* We use char because int might match the return type of a gcc2
14144 builtin and then its argument prototype would still apply. */
14145char dlopen();
14146
14147int main() {
14148dlopen()
14149; return 0; }
14150EOF
8fd0d89b 14151if { (eval echo configure:14152: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
14152 rm -rf conftest*
14153 eval "ac_cv_lib_$ac_lib_var=yes"
14154else
14155 echo "configure: failed program was:" >&5
14156 cat conftest.$ac_ext >&5
14157 rm -rf conftest*
14158 eval "ac_cv_lib_$ac_lib_var=no"
14159fi
14160rm -f conftest*
14161LIBS="$ac_save_LIBS"
14162
14163fi
14164if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14165 echo "$ac_t""yes" 1>&6
14166
14167 cat >> confdefs.h <<\EOF
14168#define HAVE_DLOPEN 1
14169EOF
14170
14171 HAVE_DL_FUNCS=1
14172 LIBS="$LIBS -ldl"
14173
14174else
14175 echo "$ac_t""no" 1>&6
14176
14177 for ac_func in shl_load
14178do
14179echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8fd0d89b 14180echo "configure:14181: checking for $ac_func" >&5
10f2d63a
VZ
14181if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14182 echo $ac_n "(cached) $ac_c" 1>&6
14183else
14184 cat > conftest.$ac_ext <<EOF
8fd0d89b 14185#line 14186 "configure"
10f2d63a
VZ
14186#include "confdefs.h"
14187/* System header to define __stub macros and hopefully few prototypes,
14188 which can conflict with char $ac_func(); below. */
14189#include <assert.h>
14190/* Override any gcc2 internal prototype to avoid an error. */
14191/* We use char because int might match the return type of a gcc2
14192 builtin and then its argument prototype would still apply. */
14193char $ac_func();
14194
14195int main() {
14196
14197/* The GNU C library defines this for functions which it implements
14198 to always fail with ENOSYS. Some functions are actually named
14199 something starting with __ and the normal name is an alias. */
14200#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14201choke me
14202#else
e8482f24 14203$ac_func();
10f2d63a
VZ
14204#endif
14205
14206; return 0; }
14207EOF
8fd0d89b 14208if { (eval echo configure:14209: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
14209 rm -rf conftest*
14210 eval "ac_cv_func_$ac_func=yes"
14211else
14212 echo "configure: failed program was:" >&5
14213 cat conftest.$ac_ext >&5
14214 rm -rf conftest*
14215 eval "ac_cv_func_$ac_func=no"
14216fi
14217rm -f conftest*
14218fi
14219
14220if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14221 echo "$ac_t""yes" 1>&6
14222 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14223 cat >> confdefs.h <<EOF
14224#define $ac_tr_func 1
14225EOF
14226
14227 cat >> confdefs.h <<\EOF
14228#define HAVE_SHL_LOAD 1
14229EOF
14230
14231 HAVE_SHL_FUNCS=1
14232
14233else
14234 echo "$ac_t""no" 1>&6
f6bcfd97 14235echo $ac_n "checking for dld in -lshl_load""... $ac_c" 1>&6
8fd0d89b 14236echo "configure:14237: checking for dld in -lshl_load" >&5
f6bcfd97
BP
14237ac_lib_var=`echo shl_load'_'dld | sed 'y%./+-%__p_%'`
14238if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14239 echo $ac_n "(cached) $ac_c" 1>&6
14240else
14241 ac_save_LIBS="$LIBS"
14242LIBS="-lshl_load $LIBS"
14243cat > conftest.$ac_ext <<EOF
8fd0d89b 14244#line 14245 "configure"
f6bcfd97
BP
14245#include "confdefs.h"
14246/* Override any gcc2 internal prototype to avoid an error. */
14247/* We use char because int might match the return type of a gcc2
14248 builtin and then its argument prototype would still apply. */
14249char dld();
14250
14251int main() {
14252dld()
14253; return 0; }
14254EOF
8fd0d89b 14255if { (eval echo configure:14256: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
f6bcfd97
BP
14256 rm -rf conftest*
14257 eval "ac_cv_lib_$ac_lib_var=yes"
14258else
14259 echo "configure: failed program was:" >&5
14260 cat conftest.$ac_ext >&5
14261 rm -rf conftest*
14262 eval "ac_cv_lib_$ac_lib_var=no"
14263fi
14264rm -f conftest*
14265LIBS="$ac_save_LIBS"
14266
14267fi
14268if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14269 echo "$ac_t""yes" 1>&6
14270
14271 HAVE_SHL_FUNCS=1
14272 LIBS="$LIBS -ldld"
14273
14274else
14275 echo "$ac_t""no" 1>&6
14276fi
14277
14278
10f2d63a
VZ
14279fi
14280done
14281
14282
14283fi
14284
14285
14286fi
14287done
14288
14289
f6bcfd97
BP
14290 if test "$HAVE_DL_FUNCS" = 1; then
14291 for ac_func in dlerror
14292do
14293echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8fd0d89b 14294echo "configure:14295: checking for $ac_func" >&5
f6bcfd97
BP
14295if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14296 echo $ac_n "(cached) $ac_c" 1>&6
14297else
14298 cat > conftest.$ac_ext <<EOF
8fd0d89b 14299#line 14300 "configure"
f6bcfd97
BP
14300#include "confdefs.h"
14301/* System header to define __stub macros and hopefully few prototypes,
14302 which can conflict with char $ac_func(); below. */
14303#include <assert.h>
14304/* Override any gcc2 internal prototype to avoid an error. */
14305/* We use char because int might match the return type of a gcc2
14306 builtin and then its argument prototype would still apply. */
14307char $ac_func();
14308
14309int main() {
14310
14311/* The GNU C library defines this for functions which it implements
14312 to always fail with ENOSYS. Some functions are actually named
14313 something starting with __ and the normal name is an alias. */
14314#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14315choke me
14316#else
14317$ac_func();
14318#endif
14319
14320; return 0; }
14321EOF
8fd0d89b 14322if { (eval echo configure:14323: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
f6bcfd97
BP
14323 rm -rf conftest*
14324 eval "ac_cv_func_$ac_func=yes"
14325else
14326 echo "configure: failed program was:" >&5
14327 cat conftest.$ac_ext >&5
14328 rm -rf conftest*
14329 eval "ac_cv_func_$ac_func=no"
14330fi
14331rm -f conftest*
14332fi
14333
14334if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14335 echo "$ac_t""yes" 1>&6
14336 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14337 cat >> confdefs.h <<EOF
14338#define $ac_tr_func 1
14339EOF
14340 cat >> confdefs.h <<\EOF
14341#define HAVE_DLERROR 1
14342EOF
14343
14344else
14345 echo "$ac_t""no" 1>&6
14346echo $ac_n "checking for dlerror in -ldl""... $ac_c" 1>&6
8fd0d89b 14347echo "configure:14348: checking for dlerror in -ldl" >&5
f6bcfd97
BP
14348ac_lib_var=`echo dl'_'dlerror | sed 'y%./+-%__p_%'`
14349if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14350 echo $ac_n "(cached) $ac_c" 1>&6
14351else
14352 ac_save_LIBS="$LIBS"
14353LIBS="-ldl $LIBS"
14354cat > conftest.$ac_ext <<EOF
8fd0d89b 14355#line 14356 "configure"
f6bcfd97
BP
14356#include "confdefs.h"
14357/* Override any gcc2 internal prototype to avoid an error. */
14358/* We use char because int might match the return type of a gcc2
14359 builtin and then its argument prototype would still apply. */
14360char dlerror();
14361
14362int main() {
14363dlerror()
14364; return 0; }
14365EOF
8fd0d89b 14366if { (eval echo configure:14367: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
f6bcfd97
BP
14367 rm -rf conftest*
14368 eval "ac_cv_lib_$ac_lib_var=yes"
14369else
14370 echo "configure: failed program was:" >&5
14371 cat conftest.$ac_ext >&5
14372 rm -rf conftest*
14373 eval "ac_cv_lib_$ac_lib_var=no"
14374fi
14375rm -f conftest*
14376LIBS="$ac_save_LIBS"
14377
14378fi
14379if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14380 echo "$ac_t""yes" 1>&6
14381 cat >> confdefs.h <<\EOF
14382#define HAVE_DLERROR 1
14383EOF
14384
14385else
14386 echo "$ac_t""no" 1>&6
14387fi
14388
14389fi
14390done
14391
14392 fi
14393
10f2d63a
VZ
14394 if test "$HAVE_DL_FUNCS" = 0; then
14395 if test "$HAVE_SHL_FUNCS" = 0; then
14396 if test "$USE_UNIX" = 1; then
b12915c1 14397 echo "configure: warning: Missing dynamic loading support, several features will be disabled" 1>&2
10f2d63a
VZ
14398 wxUSE_DYNLIB_CLASS=no
14399 else
b12915c1 14400 echo "configure: warning: Assuming wxLibrary class works on this platform" 1>&2
10f2d63a
VZ
14401 fi
14402 fi
14403 fi
14404fi
14405
b089607b
VZ
14406fi
14407
10f2d63a 14408if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
b12915c1 14409 cat >> confdefs.h <<\EOF
10f2d63a
VZ
14410#define wxUSE_DYNLIB_CLASS 1
14411EOF
14412
b12915c1
VZ
14413else
14414 wxUSE_ODBC=no
14415 wxUSE_SERIAL=no
10f2d63a
VZ
14416fi
14417
14418
14419if test "$wxUSE_UNICODE" = "yes" ; then
14420 cat >> confdefs.h <<\EOF
14421#define wxUSE_UNICODE 1
14422EOF
14423
14424fi
14425
14426if test "$wxUSE_WCSRTOMBS" = "yes" ; then
14427 cat >> confdefs.h <<\EOF
14428#define wxUSE_WCSRTOMBS 1
14429EOF
14430
14431fi
14432
14433if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
14434 cat >> confdefs.h <<\EOF
14435#define wxUSE_EXPERIMENTAL_PRINTF 1
14436EOF
14437
14438fi
14439
14440
b12915c1
VZ
14441if test "$wxUSE_SERIAL" = "yes" ; then
14442 cat >> confdefs.h <<\EOF
14443#define wxUSE_SERIAL 1
14444EOF
14445
14446fi
14447
14448
10f2d63a
VZ
14449IODBC_C_SRC=""
14450if test "$wxUSE_ODBC" = "yes" ; then
14451 cat >> confdefs.h <<\EOF
14452#define wxUSE_ODBC 1
14453EOF
14454
14455 WXODBCFLAG="-D_IODBC_"
14456 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
14457 IODBCOBJS="\$(IODBC_OBJS)"
14458else
14459 IODBCOBJS=
14460fi
14461
14462
14463if test "$wxUSE_POSTSCRIPT" = "yes" ; then
14464 cat >> confdefs.h <<\EOF
14465#define wxUSE_POSTSCRIPT 1
14466EOF
14467
14468fi
14469
14470cat >> confdefs.h <<\EOF
14471#define wxUSE_AFM_FOR_POSTSCRIPT 1
14472EOF
14473
14474
14475cat >> confdefs.h <<\EOF
14476#define wxUSE_NORMALIZED_PS_FONTS 1
14477EOF
14478
14479
14480
14481if test "$wxUSE_CONSTRAINTS" = "yes"; then
14482 cat >> confdefs.h <<\EOF
14483#define wxUSE_CONSTRAINTS 1
14484EOF
14485
14486 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
14487fi
14488
14489if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
14490 cat >> confdefs.h <<\EOF
14491#define wxUSE_MDI_ARCHITECTURE 1
14492EOF
14493
14494 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
14495fi
14496
14497if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
14498 cat >> confdefs.h <<\EOF
14499#define wxUSE_DOC_VIEW_ARCHITECTURE 1
14500EOF
14501
14502 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
14503 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
14504 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
14505 fi
14506fi
14507
14508if test "$wxUSE_HELP" = "yes"; then
14509 cat >> confdefs.h <<\EOF
14510#define wxUSE_HELP 1
14511EOF
14512
14513 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
14514fi
14515
14516if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
14517 if test "$wxUSE_CONSTRAINTS" != "yes"; then
14518 echo "configure: warning: Printing support cannot be used without constraints so it won't be compiled without it" 1>&2
14519 else
14520 cat >> confdefs.h <<\EOF
14521#define wxUSE_PRINTING_ARCHITECTURE 1
14522EOF
14523
14524 fi
14525 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
14526fi
14527
14528if test "$wxUSE_PROLOGIO" = "yes" ; then
14529 cat >> confdefs.h <<\EOF
14530#define wxUSE_PROLOGIO 1
14531EOF
14532
14533fi
14534
14535if test "$wxUSE_RESOURCES" = "yes" ; then
14536 if test "$wxUSE_PROLOGIO" = "yes" ; then
14537 cat >> confdefs.h <<\EOF
14538#define wxUSE_RESOURCES 1
14539EOF
14540
14541 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS resource"
14542 else
14543 echo "configure: warning: wxWindows ressource system requires PrologIO and can't be compiled without it." 1>&2
14544 fi
14545fi
14546
14547if test "$wxUSE_X_RESOURCES" = "yes"; then
14548 cat >> confdefs.h <<\EOF
14549#define wxUSE_X_RESOURCES 1
14550EOF
14551
14552fi
14553
14554
14555if test "$wxUSE_IPC" = "yes"; then
eb4efbdc
VZ
14556 if test "$wxUSE_SOCKETS" != "yes"; then
14557 echo "configure: warning: wxWindows IPC classes require sockets" 1>&2
14558 fi
14559
10f2d63a
VZ
14560 cat >> confdefs.h <<\EOF
14561#define wxUSE_IPC 1
14562EOF
14563
14564fi
14565
14566if test "$wxUSE_CLIPBOARD" = "yes"; then
14567 cat >> confdefs.h <<\EOF
14568#define wxUSE_CLIPBOARD 1
14569EOF
14570
14571fi
14572
14573if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
14574 if test "$wxUSE_GTK" = 1; then
14575 if test "$WXGTK12" != 1; then
14576 echo "configure: warning: Drag and drop is only supported under GTK+ 1.2" 1>&2
14577 wxUSE_DRAG_AND_DROP=no
14578 fi
14579 fi
14580
14581 if test "$wxUSE_MOTIF" = 1; then
14582 echo "configure: warning: Drag and drop is not yet supported under Motif" 1>&2
14583 wxUSE_DRAG_AND_DROP=no
14584 fi
14585
14586 if test "$USE_WIN32" = 1; then
14587 for ac_hdr in ole2.h
14588do
14589ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
14590echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8fd0d89b 14591echo "configure:14592: checking for $ac_hdr" >&5
10f2d63a
VZ
14592if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
14593 echo $ac_n "(cached) $ac_c" 1>&6
14594else
14595 cat > conftest.$ac_ext <<EOF
8fd0d89b 14596#line 14597 "configure"
10f2d63a
VZ
14597#include "confdefs.h"
14598#include <$ac_hdr>
14599EOF
14600ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8fd0d89b 14601{ (eval echo configure:14602: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
14602ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14603if test -z "$ac_err"; then
14604 rm -rf conftest*
14605 eval "ac_cv_header_$ac_safe=yes"
14606else
14607 echo "$ac_err" >&5
14608 echo "configure: failed program was:" >&5
14609 cat conftest.$ac_ext >&5
14610 rm -rf conftest*
14611 eval "ac_cv_header_$ac_safe=no"
14612fi
14613rm -f conftest*
14614fi
14615if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14616 echo "$ac_t""yes" 1>&6
14617 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
14618 cat >> confdefs.h <<EOF
14619#define $ac_tr_hdr 1
14620EOF
14621
14622else
14623 echo "$ac_t""no" 1>&6
14624fi
14625done
14626
14627 if test "x$HAVE_OLE2_H" = x ; then
14628 echo "configure: warning: Drag and drop disabled because OLE headers not found" 1>&2
14629 wxUSE_DRAG_AND_DROP=no
14630 fi
14631 fi
14632
14633 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
14634 cat >> confdefs.h <<\EOF
14635#define wxUSE_DRAG_AND_DROP 1
14636EOF
14637
14638 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
14639 fi
14640
14641fi
14642
14643if test "$wxUSE_SPLINES" = "yes" ; then
14644 cat >> confdefs.h <<\EOF
14645#define wxUSE_SPLINES 1
14646EOF
14647
14648fi
14649
14650
14651if test "$wxUSE_ACCEL" = "yes"; then
14652 cat >> confdefs.h <<\EOF
14653#define wxUSE_ACCEL 1
14654EOF
14655
14656fi
14657
14658if test "$wxUSE_CARET" = "yes"; then
14659 cat >> confdefs.h <<\EOF
14660#define wxUSE_CARET 1
14661EOF
14662
14663 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
14664fi
14665
14666if test "$wxUSE_COMBOBOX" = "yes"; then
14667 cat >> confdefs.h <<\EOF
14668#define wxUSE_COMBOBOX 1
14669EOF
14670
14671fi
14672
14673if test "$wxUSE_CHOICE" = "yes"; then
14674 cat >> confdefs.h <<\EOF
14675#define wxUSE_CHOICE 1
14676EOF
14677
14678fi
14679
14680if test "$wxUSE_BMPBUTTON" = "yes"; then
14681 cat >> confdefs.h <<\EOF
14682#define wxUSE_BMPBUTTON 1
14683EOF
14684
14685fi
14686
14687if test "$wxUSE_CHECKBOX" = "yes"; then
14688 cat >> confdefs.h <<\EOF
14689#define wxUSE_CHECKBOX 1
14690EOF
14691
14692fi
14693
14694if test "$wxUSE_CHECKLST" = "yes"; then
14695 cat >> confdefs.h <<\EOF
14696#define wxUSE_CHECKLISTBOX 1
14697EOF
14698
14699 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
14700fi
14701
14702if test "$wxUSE_GAUGE" = "yes"; then
14703 cat >> confdefs.h <<\EOF
14704#define wxUSE_GAUGE 1
14705EOF
14706
14707fi
14708
d6a55c4b
VZ
14709if test "$wxUSE_NEW_GRID" = "yes"; then
14710 wxUSE_GRID="yes"
10f2d63a 14711 cat >> confdefs.h <<\EOF
d6a55c4b 14712#define wxUSE_NEW_GRID 1
10f2d63a
VZ
14713EOF
14714
d6a55c4b 14715 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS newgrid"
10f2d63a
VZ
14716fi
14717
d6a55c4b 14718if test "$wxUSE_GRID" = "yes"; then
10f2d63a 14719 cat >> confdefs.h <<\EOF
d6a55c4b 14720#define wxUSE_GRID 1
10f2d63a
VZ
14721EOF
14722
d6a55c4b 14723 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
10f2d63a
VZ
14724fi
14725
14726if test "$wxUSE_IMAGLIST" = "yes"; then
14727 cat >> confdefs.h <<\EOF
14728#define wxUSE_IMAGLIST 1
14729EOF
14730
14731fi
14732
14733if test "$wxUSE_LISTBOX" = "yes"; then
14734 cat >> confdefs.h <<\EOF
14735#define wxUSE_LISTBOX 1
14736EOF
14737
14738fi
14739
14740if test "$wxUSE_LISTCTRL" = "yes"; then
14741 if test "$wxUSE_IMAGLIST" = "yes"; then
14742 cat >> confdefs.h <<\EOF
14743#define wxUSE_LISTCTRL 1
14744EOF
14745
14746 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
14747 else
14748 echo "configure: warning: wxListCtrl requires wxImageList and won't be compiled without it" 1>&2
14749 fi
14750fi
14751
14752if test "$wxUSE_NOTEBOOK" = "yes"; then
14753 cat >> confdefs.h <<\EOF
14754#define wxUSE_NOTEBOOK 1
14755EOF
14756
14757 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
14758fi
14759
14760if test "$wxUSE_RADIOBOX" = "yes"; then
14761 cat >> confdefs.h <<\EOF
14762#define wxUSE_RADIOBOX 1
14763EOF
14764
14765fi
14766
14767if test "$wxUSE_RADIOBTN" = "yes"; then
14768 cat >> confdefs.h <<\EOF
14769#define wxUSE_RADIOBTN 1
14770EOF
14771
14772fi
14773
14774if test "$wxUSE_SASH" = "yes"; then
14775 cat >> confdefs.h <<\EOF
14776#define wxUSE_SASH 1
14777EOF
14778
14779 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
14780fi
14781
14782if test "$wxUSE_SCROLLBAR" = "yes"; then
14783 cat >> confdefs.h <<\EOF
14784#define wxUSE_SCROLLBAR 1
14785EOF
14786
741a9306 14787 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
10f2d63a
VZ
14788fi
14789
14790if test "$wxUSE_SLIDER" = "yes"; then
14791 cat >> confdefs.h <<\EOF
14792#define wxUSE_SLIDER 1
14793EOF
14794
14795fi
14796
14797if test "$wxUSE_SPINBTN" = "yes"; then
14798 cat >> confdefs.h <<\EOF
14799#define wxUSE_SPINBTN 1
14800EOF
14801
14802fi
14803
56cfaa52
RR
14804if test "$wxUSE_SPINCTRL" = "yes"; then
14805 cat >> confdefs.h <<\EOF
14806#define wxUSE_SPINCTRL 1
14807EOF
14808
14809fi
14810
10f2d63a
VZ
14811if test "$wxUSE_SPLITTER" = "yes"; then
14812 cat >> confdefs.h <<\EOF
14813#define wxUSE_SPLITTER 1
14814EOF
14815
14816 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
14817fi
14818
14819if test "$wxUSE_STATBMP" = "yes"; then
14820 cat >> confdefs.h <<\EOF
14821#define wxUSE_STATBMP 1
14822EOF
14823
14824fi
14825
14826if test "$wxUSE_STATBOX" = "yes"; then
14827 cat >> confdefs.h <<\EOF
14828#define wxUSE_STATBOX 1
14829EOF
14830
14831fi
14832
14833if test "$wxUSE_STATLINE" = "yes"; then
14834 if test "$wxUSE_WINE" = 1 ; then
14835 echo "configure: warning: wxStaticLine is not supported under WINE" 1>&2
14836 else
14837 cat >> confdefs.h <<\EOF
14838#define wxUSE_STATLINE 1
14839EOF
14840
14841 fi
14842fi
14843
14844if test "$wxUSE_STATUSBAR" = "yes"; then
14845 cat >> confdefs.h <<\EOF
14846#define wxUSE_STATUSBAR 1
14847EOF
14848
2286341c
VZ
14849
14850 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
10f2d63a
VZ
14851fi
14852
14853if test "$wxUSE_TABDIALOG" = "yes"; then
14854 cat >> confdefs.h <<\EOF
14855#define wxUSE_TAB_DIALOG 1
14856EOF
14857
14858 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab"
14859fi
14860
360d6699
VZ
14861if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
14862 cat >> confdefs.h <<\EOF
14863#define wxUSE_TOOLBAR_SIMPLE 1
14864EOF
14865
14866 wxUSE_TOOLBAR="yes"
14867fi
14868
10f2d63a
VZ
14869if test "$wxUSE_TOOLBAR" = "yes"; then
14870 cat >> confdefs.h <<\EOF
14871#define wxUSE_TOOLBAR 1
14872EOF
14873
360d6699
VZ
14874
14875 if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
14876 wxUSE_TOOLBAR_NATIVE="yes"
14877 fi
14878
10f2d63a
VZ
14879 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
14880fi
14881
360d6699
VZ
14882if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
14883 cat >> confdefs.h <<\EOF
14884#define wxUSE_TOOLBAR_NATIVE 1
14885EOF
14886
14887fi
14888
10f2d63a
VZ
14889if test "$wxUSE_TOOLTIPS" = "yes"; then
14890 if test "$wxUSE_MOTIF" = 1; then
14891 echo "configure: warning: wxTooltip not supported yet under Motif" 1>&2
14892 else
14893 if test "$wxUSE_WINE" = 1; then
14894 echo "configure: warning: wxTooltip not supported under WINE" 1>&2
14895 else
14896 cat >> confdefs.h <<\EOF
14897#define wxUSE_TOOLTIPS 1
14898EOF
14899
14900 fi
14901 fi
14902fi
14903
14904if test "$wxUSE_TREECTRL" = "yes"; then
14905 if test "$wxUSE_IMAGLIST" = "yes"; then
14906 cat >> confdefs.h <<\EOF
14907#define wxUSE_TREECTRL 1
14908EOF
14909
14910 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
14911 else
14912 echo "configure: warning: wxTreeCtrl requires wxImageList and won't be compiled without it" 1>&2
14913 fi
14914fi
14915
14916
14917
14918if test "$wxUSE_METAFILE" = "yes"; then
14919 cat >> confdefs.h <<\EOF
14920#define wxUSE_METAFILE 1
14921EOF
14922
14923fi
14924
14925if test "$wxUSE_DIRDLG" = "yes"; then
14926 if test "$wxUSE_CONSTRAINTS" != "yes"; then
14927 echo "configure: warning: wxDirDialog requires constraints so it won't be compiled without them" 1>&2
14928 else
14929 if test "$wxUSE_TREECTRL" != "yes"; then
14930 echo "configure: warning: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" 1>&2
14931 else
14932 cat >> confdefs.h <<\EOF
14933#define wxUSE_DIRDLG 1
14934EOF
14935
14936 fi
14937 fi
14938fi
14939
14940if test "$wxUSE_TEXTDLG" = "yes"; then
14941 cat >> confdefs.h <<\EOF
14942#define wxUSE_TEXTDLG 1
14943EOF
14944
14945fi
14946
14947if test "$wxUSE_STARTUP_TIPS" = "yes"; then
14948 if test "$wxUSE_CONSTRAINTS" != "yes"; then
14949 echo "configure: warning: Startup tips requires constraints and won't be compiled without them" 1>&2
14950 else
14951 cat >> confdefs.h <<\EOF
14952#define wxUSE_STARTUP_TIPS 1
14953EOF
14954
14955 fi
14956fi
14957
14958if test "$wxUSE_PROGRESSDLG" = "yes"; then
14959 if test "$wxUSE_CONSTRAINTS" != "yes"; then
14960 echo "configure: warning: wxProgressDialog requires constraints so it won't be compiled without them" 1>&2
14961 else
14962 cat >> confdefs.h <<\EOF
14963#define wxUSE_PROGRESSDLG 1
14964EOF
14965
14966 fi
14967fi
14968
14969if test "$wxUSE_MINIFRAME" = "yes"; then
14970 cat >> confdefs.h <<\EOF
14971#define wxUSE_MINIFRAME 1
14972EOF
14973
14974 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
14975fi
14976
14977if test "$wxUSE_HTML" = "yes"; then
14978 cat >> confdefs.h <<\EOF
14979#define wxUSE_HTML 1
14980EOF
14981
14982 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html"
14983 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS html"
14984fi
14985
14986if test "$wxUSE_VALIDATORS" = "yes"; then
14987 cat >> confdefs.h <<\EOF
14988#define wxUSE_VALIDATORS 1
14989EOF
14990
14991 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
14992fi
14993
14994if test "$wxUSE_GIF" = "yes" ; then
14995 cat >> confdefs.h <<\EOF
14996#define wxUSE_GIF 1
14997EOF
14998
14999fi
15000
15001if test "$wxUSE_PCX" = "yes" ; then
15002 cat >> confdefs.h <<\EOF
15003#define wxUSE_PCX 1
15004EOF
15005
15006fi
15007
15008if test "$wxUSE_PNM" = "yes" ; then
15009 cat >> confdefs.h <<\EOF
15010#define wxUSE_PNM 1
15011EOF
15012
15013fi
15014
15015
32832908
VZ
15016if test "$cross_compiling" = "yes"; then
15017 OSINFO="\"$host\""
15018else
15019 OSINFO=`uname -s -r -m`
15020 OSINFO="\"$OSINFO\""
15021fi
15022
aaa37c0d
VZ
15023cat >> confdefs.h <<EOF
15024#define WXWIN_OS_DESCRIPTION $OSINFO
15025EOF
15026
15027
15028
f6bcfd97
BP
15029GUILIBS="$GUI_TK_LIBRARY $TOOLKIT_LINK"
15030OPENGL_LIBS="$OPENGL_LINK"
10f2d63a 15031
f6bcfd97 15032EXTRA_LIBS="$LIBS $POSIX4_LINK $INET_LINK $WCHAR_LINK $THREADS_LINK $DMALLOC_LINK $DL_LINK $ZLIB_LINK -lm"
10f2d63a 15033if test "$wxUSE_GUI" = "yes"; then
3fed1840 15034 EXTRA_LIBS="$GUILIBS $PNG_LINK $JPEG_LINK $TIFF_LINK $FREETYPE_LINK $EXTRA_LIBS"
10f2d63a
VZ
15035fi
15036
15037LD_LIBS="\${top_builddir}/lib/${WX_LIBRARY_NAME_STATIC} $EXTRA_LIBS"
15038
3fed1840 15039INCLUDES="-I. -I\${top_builddir}/include -I\${top_srcdir}/include $ZLIB_INCLUDE $PNG_INCLUDE $JPEG_INCLUDE $TIFF_INCLUDE $FREETYPE_INCLUDE $TOOLKIT_INCLUDE"
10f2d63a 15040
f6bcfd97
BP
15041if test "$wxUSE_GTK" = 1; then
15042 WXCONFIG_INCLUDE=""
15043else
15044 WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE"
15045fi
15046
10f2d63a
VZ
15047if test "$GXX" = yes ; then
15048 CXXWARNINGS="-Wall"
d6a55c4b 15049 fi
10f2d63a
VZ
15050EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE $INCLUDES"
15051
f6bcfd97 15052CFLAGS=`echo $CFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \\+/ /g'`
10f2d63a
VZ
15053CXXFLAGS=`echo $CXXFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \+/ /g'`
15054
e694c22c
VZ
15055LDFLAGS="$LDFLAGS $PROFILE"
15056
10f2d63a
VZ
15057if test "$wxUSE_GUI" = "yes"; then
15058
bdad4e7e 15059 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS controls dialogs dragimag drawing dynamic \
bc9027cc 15060 font fractal image menu minimal richedit"
b12915c1 15061
88d3a15c 15062 CPPFLAGS="$CPPFLAGS \$(EXTRADEFS) \$(APPEXTRADEFS)"
10f2d63a
VZ
15063else
15064 SAMPLES_SUBDIRS=""
15065fi
15066
ec14dd32
VZ
15067SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
15068
15069
15070
10f2d63a
VZ
15071
15072
15073
15074
15075
15076
15077
15078
15079
15080
15081
15082
15083
15084
15085
15086
15087
15088
15089
15090
15091
15092
15093
15094
15095
15096
15097
15098
15099
15100
15101
15102
15103
15104
15105
15106
15107
15108
15109
15110
15111
15112
15113
15114
15115
15116
15117
15118
15119
15120
15121
15122
1d62a8b4 15123
bdad4e7e
RR
15124
15125
15126
15127
15128
15129
15130
32832908
VZ
15131
15132
15133
15134
15135
15136
15137
15138
15139
15140
15141
15142
15143
bdad4e7e
RR
15144
15145
15146
e694c22c 15147
b12915c1 15148
2224580a
VZ
15149
15150
15151
15152
dad6c0ea 15153
f6bcfd97
BP
15154
15155
15156
15157
dad6c0ea 15158
caa2c79b 15159
3711412e 15160
10f2d63a
VZ
15161
15162
15163echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
8fd0d89b 15164echo "configure:15165: checking whether ${MAKE-make} sets \${MAKE}" >&5
10f2d63a
VZ
15165set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
15166if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
15167 echo $ac_n "(cached) $ac_c" 1>&6
15168else
15169 cat > conftestmake <<\EOF
15170all:
15171 @echo 'ac_maketemp="${MAKE}"'
15172EOF
15173# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
15174eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
15175if test -n "$ac_maketemp"; then
15176 eval ac_cv_prog_make_${ac_make}_set=yes
15177else
15178 eval ac_cv_prog_make_${ac_make}_set=no
15179fi
15180rm -f conftestmake
15181fi
15182if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
15183 echo "$ac_t""yes" 1>&6
15184 SET_MAKE=
15185else
15186 echo "$ac_t""no" 1>&6
15187 SET_MAKE="MAKE=${MAKE-make}"
15188fi
15189
15190
00cf1208
RR
15191if test -d include; then
15192 if test -d include/wx; then
15193 if test -d include/wx/${TOOLKIT_DIR}; then
15194 if test -f include/wx/${TOOLKIT_DIR}/setup.h; then
15195 mv -f include/wx/${TOOLKIT_DIR}/setup.h setup.h
15196 fi
15197 fi
15198 fi
15199fi
15200
10f2d63a
VZ
15201
15202
2224580a 15203if test "$wxUSE_GUI" = "yes"; then
ec90f5e5 15204 wx_cv_path_samplesubdirs=$SAMPLES_SUBDIRS
e8482f24
GL
15205 wx_cv_path_ifs=$PATH_IFS
15206 wx_cv_program_ext=$PROGRAM_EXT
15207 wx_cv_target_library=$WX_TARGET_LIBRARY
3711412e 15208 wx_cv_target_libtype=$WX_TARGET_LIBRARY_TYPE
e8482f24 15209 subdirs="demos samples utils contrib"
2224580a
VZ
15210
15211fi
10f2d63a
VZ
15212
15213trap '' 1 2 15
15214cat > confcache <<\EOF
15215# This file is a shell script that caches the results of configure
15216# tests run on this system so they can be shared between configure
15217# scripts and configure runs. It is not useful on other systems.
15218# If it contains results you don't want to keep, you may remove or edit it.
15219#
15220# By default, configure uses ./config.cache as the cache file,
15221# creating it if it does not exist already. You can give configure
15222# the --cache-file=FILE option to use a different cache file; that is
15223# what configure does when it calls configure scripts in
15224# subdirectories, so they share the cache.
15225# Giving --cache-file=/dev/null disables caching, for debugging configure.
15226# config.status only pays attention to the cache file if you give it the
15227# --recheck option to rerun configure.
15228#
15229EOF
15230# The following way of writing the cache mishandles newlines in values,
15231# but we know of no workaround that is simple, portable, and efficient.
15232# So, don't put newlines in cache variables' values.
15233# Ultrix sh set writes to stderr and can't be redirected directly,
15234# and sets the high bit in the cache file unless we assign to the vars.
15235(set) 2>&1 |
15236 case `(ac_space=' '; set | grep ac_space) 2>&1` in
15237 *ac_space=\ *)
15238 # `set' does not quote correctly, so add quotes (double-quote substitution
15239 # turns \\\\ into \\, and sed turns \\ into \).
15240 sed -n \
15241 -e "s/'/'\\\\''/g" \
15242 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
15243 ;;
15244 *)
15245 # `set' quotes correctly as required by POSIX, so do not add quotes.
15246 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
15247 ;;
15248 esac >> confcache
15249if cmp -s $cache_file confcache; then
15250 :
15251else
15252 if test -w $cache_file; then
15253 echo "updating cache $cache_file"
15254 cat confcache > $cache_file
15255 else
15256 echo "not updating unwritable cache $cache_file"
15257 fi
15258fi
15259rm -f confcache
15260
15261trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
15262
15263test "x$prefix" = xNONE && prefix=$ac_default_prefix
15264# Let make expand exec_prefix.
15265test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15266
15267# Any assignment to VPATH causes Sun make to only execute
15268# the first set of double-colon rules, so remove it if not needed.
15269# If there is a colon in the path, we need to keep it.
15270if test "x$srcdir" = x.; then
15271 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
15272fi
15273
15274trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
15275
15276DEFS=-DHAVE_CONFIG_H
15277
15278# Without the "./", some shells look in PATH for config.status.
15279: ${CONFIG_STATUS=./config.status}
15280
15281echo creating $CONFIG_STATUS
15282rm -f $CONFIG_STATUS
15283cat > $CONFIG_STATUS <<EOF
15284#! /bin/sh
15285# Generated automatically by configure.
15286# Run this file to recreate the current configuration.
15287# This directory was configured as follows,
15288# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15289#
15290# $0 $ac_configure_args
15291#
15292# Compiler output produced by configure, useful for debugging
15293# configure, is in ./config.log if it exists.
15294
15295ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
15296for ac_option
15297do
15298 case "\$ac_option" in
15299 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15300 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
15301 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
15302 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
e8482f24 15303 echo "$CONFIG_STATUS generated by autoconf version 2.13"
10f2d63a
VZ
15304 exit 0 ;;
15305 -help | --help | --hel | --he | --h)
15306 echo "\$ac_cs_usage"; exit 0 ;;
15307 *) echo "\$ac_cs_usage"; exit 1 ;;
15308 esac
15309done
15310
15311ac_given_srcdir=$srcdir
15312ac_given_INSTALL="$INSTALL"
15313
15314trap 'rm -fr `echo "
15315 wx-config
15316 src/make.env
15317 src/makeprog.env
15318 src/makelib.env
15319 Makefile
10f2d63a
VZ
15320 setup.h:setup.h.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
15321EOF
15322cat >> $CONFIG_STATUS <<EOF
15323
15324# Protect against being on the right side of a sed subst in config.status.
15325sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
15326 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
15327$ac_vpsub
15328$extrasub
15329s%@SHELL@%$SHELL%g
15330s%@CFLAGS@%$CFLAGS%g
15331s%@CPPFLAGS@%$CPPFLAGS%g
15332s%@CXXFLAGS@%$CXXFLAGS%g
15333s%@FFLAGS@%$FFLAGS%g
15334s%@DEFS@%$DEFS%g
15335s%@LDFLAGS@%$LDFLAGS%g
15336s%@LIBS@%$LIBS%g
15337s%@exec_prefix@%$exec_prefix%g
15338s%@prefix@%$prefix%g
15339s%@program_transform_name@%$program_transform_name%g
15340s%@bindir@%$bindir%g
15341s%@sbindir@%$sbindir%g
15342s%@libexecdir@%$libexecdir%g
15343s%@datadir@%$datadir%g
15344s%@sysconfdir@%$sysconfdir%g
15345s%@sharedstatedir@%$sharedstatedir%g
15346s%@localstatedir@%$localstatedir%g
15347s%@libdir@%$libdir%g
15348s%@includedir@%$includedir%g
15349s%@oldincludedir@%$oldincludedir%g
15350s%@infodir@%$infodir%g
15351s%@mandir@%$mandir%g
7c66a493
VZ
15352s%@host@%$host%g
15353s%@host_alias@%$host_alias%g
15354s%@host_cpu@%$host_cpu%g
15355s%@host_vendor@%$host_vendor%g
15356s%@host_os@%$host_os%g
15357s%@target@%$target%g
15358s%@target_alias@%$target_alias%g
15359s%@target_cpu@%$target_cpu%g
15360s%@target_vendor@%$target_vendor%g
15361s%@target_os@%$target_os%g
15362s%@build@%$build%g
15363s%@build_alias@%$build_alias%g
15364s%@build_cpu@%$build_cpu%g
15365s%@build_vendor@%$build_vendor%g
15366s%@build_os@%$build_os%g
10f2d63a
VZ
15367s%@CC@%$CC%g
15368s%@CPP@%$CPP%g
15369s%@CXX@%$CXX%g
15370s%@CXXCPP@%$CXXCPP%g
15371s%@RANLIB@%$RANLIB%g
15372s%@AR@%$AR%g
15373s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
15374s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
15375s%@INSTALL_DATA@%$INSTALL_DATA%g
15376s%@STRIP@%$STRIP%g
15377s%@YACC@%$YACC%g
15378s%@LEX@%$LEX%g
15379s%@LEXLIB@%$LEXLIB%g
15380s%@LN_S@%$LN_S%g
6f72b082 15381s%@GTK_CONFIG_2_0@%$GTK_CONFIG_2_0%g
10f2d63a
VZ
15382s%@GTK_CONFIG@%$GTK_CONFIG%g
15383s%@GTK_CFLAGS@%$GTK_CFLAGS%g
15384s%@GTK_LIBS@%$GTK_LIBS%g
ab9b9eab
VZ
15385s%@X_CFLAGS@%$X_CFLAGS%g
15386s%@X_PRE_LIBS@%$X_PRE_LIBS%g
15387s%@X_LIBS@%$X_LIBS%g
15388s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
ec14dd32
VZ
15389s%@LEX_STEM@%$LEX_STEM%g
15390s%@PATH_IFS@%$PATH_IFS%g
10f2d63a
VZ
15391s%@WX_MAJOR_VERSION_NUMBER@%$WX_MAJOR_VERSION_NUMBER%g
15392s%@WX_MINOR_VERSION_NUMBER@%$WX_MINOR_VERSION_NUMBER%g
15393s%@WX_RELEASE_NUMBER@%$WX_RELEASE_NUMBER%g
15394s%@WX_LIBRARY_NAME@%$WX_LIBRARY_NAME%g
15395s%@WX_LIBRARY_NAME_STATIC@%$WX_LIBRARY_NAME_STATIC%g
15396s%@WX_LIBRARY_NAME_SHARED@%$WX_LIBRARY_NAME_SHARED%g
15397s%@WX_LIBRARY@%$WX_LIBRARY%g
15398s%@WX_TARGET_LIBRARY@%$WX_TARGET_LIBRARY%g
15399s%@WX_LIBRARY_LINK1@%$WX_LIBRARY_LINK1%g
15400s%@WX_LIBRARY_LINK2@%$WX_LIBRARY_LINK2%g
15401s%@WX_LIBRARY_LINK3@%$WX_LIBRARY_LINK3%g
15402s%@PROGRAM_EXT@%$PROGRAM_EXT%g
bdad4e7e
RR
15403s%@WX_LIBRARY_NAME_GL@%$WX_LIBRARY_NAME_GL%g
15404s%@WX_LIBRARY_NAME_STATIC_GL@%$WX_LIBRARY_NAME_STATIC_GL%g
15405s%@WX_LIBRARY_NAME_SHARED_GL@%$WX_LIBRARY_NAME_SHARED_GL%g
15406s%@WX_LIBRARY_GL@%$WX_LIBRARY_GL%g
15407s%@WX_TARGET_LIBRARY_GL@%$WX_TARGET_LIBRARY_GL%g
15408s%@WX_LIBRARY_LINK1_GL@%$WX_LIBRARY_LINK1_GL%g
15409s%@WX_LIBRARY_LINK2_GL@%$WX_LIBRARY_LINK2_GL%g
15410s%@WX_LIBRARY_LINK3_GL@%$WX_LIBRARY_LINK3_GL%g
10f2d63a
VZ
15411s%@WX_ALL@%$WX_ALL%g
15412s%@WX_ALL_INSTALLED@%$WX_ALL_INSTALLED%g
15413s%@SHARED_LD@%$SHARED_LD%g
15414s%@PIC_FLAG@%$PIC_FLAG%g
15415s%@DEP_INFO_FLAGS@%$DEP_INFO_FLAGS%g
caa2c79b 15416s%@CODE_GEN_FLAGS@%$CODE_GEN_FLAGS%g
1d62a8b4 15417s%@BURNT_LIBRARY_NAME@%$BURNT_LIBRARY_NAME%g
bdad4e7e 15418s%@BURNT_LIBRARY_NAME_GL@%$BURNT_LIBRARY_NAME_GL%g
f6bcfd97 15419s%@WX_TARGET_LIBRARY_SONAME@%$WX_TARGET_LIBRARY_SONAME%g
3711412e 15420s%@WX_TARGET_LIBRARY_TYPE@%$WX_TARGET_LIBRARY_TYPE%g
10f2d63a 15421s%@WXDEBUG_DEFINE@%$WXDEBUG_DEFINE%g
dad6c0ea
VZ
15422s%@USE_GUI@%$USE_GUI%g
15423s%@AFMINSTALL@%$AFMINSTALL%g
10f2d63a
VZ
15424s%@TOOLKIT@%$TOOLKIT%g
15425s%@TOOLKIT_DEF@%$TOOLKIT_DEF%g
15426s%@TOOLKIT_DIR@%$TOOLKIT_DIR%g
f6bcfd97 15427s%@TOOLKIT_NAME@%$TOOLKIT_NAME%g
10f2d63a 15428s%@TOOLKIT_INCLUDE@%$TOOLKIT_INCLUDE%g
f6bcfd97 15429s%@WXCONFIG_INCLUDE@%$WXCONFIG_INCLUDE%g
10f2d63a
VZ
15430s%@GUIHEADERS@%$GUIHEADERS%g
15431s%@GUIOBJS@%$GUIOBJS%g
15432s%@COMMONOBJS@%$COMMONOBJS%g
15433s%@GENERICOBJS@%$GENERICOBJS%g
15434s%@GUIDEPS@%$GUIDEPS%g
15435s%@COMMONDEPS@%$COMMONDEPS%g
15436s%@GENERICDEPS@%$GENERICDEPS%g
15437s%@IODBCOBJS@%$IODBCOBJS%g
15438s%@UNIXOBJS@%$UNIXOBJS%g
15439s%@UNIXDEPS@%$UNIXDEPS%g
15440s%@ALL_OBJECTS@%$ALL_OBJECTS%g
15441s%@ALL_DEPFILES@%$ALL_DEPFILES%g
10f2d63a 15442s%@GUIDIST@%$GUIDIST%g
2224580a
VZ
15443s%@PORT_FILES@%$PORT_FILES%g
15444s%@DISTDIR@%$DISTDIR%g
15445s%@RPM_SPEC@%$RPM_SPEC%g
15446s%@RPM_FILES@%$RPM_FILES%g
10f2d63a
VZ
15447s%@SRC_SUBDIRS@%$SRC_SUBDIRS%g
15448s%@INCLUDE_SUBDIRS@%$INCLUDE_SUBDIRS%g
15449s%@UTILS_SUBDIRS@%$UTILS_SUBDIRS%g
15450s%@DOCS_SUBDIRS@%$DOCS_SUBDIRS%g
15451s%@SAMPLES_SUBDIRS@%$SAMPLES_SUBDIRS%g
15452s%@USER_SUBDIRS@%$USER_SUBDIRS%g
15453s%@EXTRA_LIBS@%$EXTRA_LIBS%g
f6bcfd97 15454s%@OPENGL_LIBS@%$OPENGL_LIBS%g
b12915c1 15455s%@EXTRADEFS@%$EXTRADEFS%g
10f2d63a 15456s%@LD_LIBS@%$LD_LIBS%g
32832908
VZ
15457s%@RCINPUTSWITCH@%$RCINPUTSWITCH%g
15458s%@RCOUTPUTSWITCH@%$RCOUTPUTSWITCH%g
15459s%@RESPROGRAM@%$RESPROGRAM%g
15460s%@RESCOMP@%$RESCOMP%g
15461s%@RESFLAGS@%$RESFLAGS%g
15462s%@DLLTOOL@%$DLLTOOL%g
15463s%@AS@%$AS%g
15464s%@NM@%$NM%g
15465s%@LD@%$LD%g
15466s%@MAKEINFO@%$MAKEINFO%g
10f2d63a 15467s%@SET_MAKE@%$SET_MAKE%g
2224580a 15468s%@subdirs@%$subdirs%g
10f2d63a
VZ
15469
15470CEOF
15471EOF
15472
15473cat >> $CONFIG_STATUS <<\EOF
15474
15475# Split the substitutions into bite-sized pieces for seds with
15476# small command number limits, like on Digital OSF/1 and HP-UX.
15477ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
15478ac_file=1 # Number of current file.
15479ac_beg=1 # First line for current file.
15480ac_end=$ac_max_sed_cmds # Line after last line for current file.
15481ac_more_lines=:
15482ac_sed_cmds=""
15483while $ac_more_lines; do
15484 if test $ac_beg -gt 1; then
15485 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
15486 else
15487 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
15488 fi
15489 if test ! -s conftest.s$ac_file; then
15490 ac_more_lines=false
15491 rm -f conftest.s$ac_file
15492 else
15493 if test -z "$ac_sed_cmds"; then
15494 ac_sed_cmds="sed -f conftest.s$ac_file"
15495 else
15496 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
15497 fi
15498 ac_file=`expr $ac_file + 1`
15499 ac_beg=$ac_end
15500 ac_end=`expr $ac_end + $ac_max_sed_cmds`
15501 fi
15502done
15503if test -z "$ac_sed_cmds"; then
15504 ac_sed_cmds=cat
15505fi
15506EOF
15507
15508cat >> $CONFIG_STATUS <<EOF
15509
15510CONFIG_FILES=\${CONFIG_FILES-"wx-config
15511 src/make.env
15512 src/makeprog.env
15513 src/makelib.env
15514 Makefile
10f2d63a
VZ
15515 "}
15516EOF
15517cat >> $CONFIG_STATUS <<\EOF
15518for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
15519 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
15520 case "$ac_file" in
15521 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
15522 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
15523 *) ac_file_in="${ac_file}.in" ;;
15524 esac
15525
15526 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
15527
15528 # Remove last slash and all that follows it. Not all systems have dirname.
15529 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
15530 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
15531 # The file is in a subdirectory.
15532 test ! -d "$ac_dir" && mkdir "$ac_dir"
15533 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
15534 # A "../" for each directory in $ac_dir_suffix.
15535 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
15536 else
15537 ac_dir_suffix= ac_dots=
15538 fi
15539
15540 case "$ac_given_srcdir" in
15541 .) srcdir=.
15542 if test -z "$ac_dots"; then top_srcdir=.
15543 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
15544 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
15545 *) # Relative path.
15546 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
15547 top_srcdir="$ac_dots$ac_given_srcdir" ;;
15548 esac
15549
15550 case "$ac_given_INSTALL" in
15551 [/$]*) INSTALL="$ac_given_INSTALL" ;;
15552 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
15553 esac
15554
15555 echo creating "$ac_file"
15556 rm -f "$ac_file"
15557 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
15558 case "$ac_file" in
15559 *Makefile*) ac_comsub="1i\\
15560# $configure_input" ;;
15561 *) ac_comsub= ;;
15562 esac
15563
15564 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
15565 sed -e "$ac_comsub
15566s%@configure_input@%$configure_input%g
15567s%@srcdir@%$srcdir%g
15568s%@top_srcdir@%$top_srcdir%g
15569s%@INSTALL@%$INSTALL%g
15570" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
15571fi; done
15572rm -f conftest.s*
15573
15574# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
15575# NAME is the cpp macro being defined and VALUE is the value it is being given.
15576#
15577# ac_d sets the value in "#define NAME VALUE" lines.
15578ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
15579ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
15580ac_dC='\3'
15581ac_dD='%g'
15582# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
15583ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
15584ac_uB='\([ ]\)%\1#\2define\3'
15585ac_uC=' '
15586ac_uD='\4%g'
15587# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
15588ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
15589ac_eB='$%\1#\2define\3'
15590ac_eC=' '
15591ac_eD='%g'
15592
15593if test "${CONFIG_HEADERS+set}" != set; then
15594EOF
15595cat >> $CONFIG_STATUS <<EOF
15596 CONFIG_HEADERS="setup.h:setup.h.in"
15597EOF
15598cat >> $CONFIG_STATUS <<\EOF
15599fi
15600for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
15601 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
15602 case "$ac_file" in
15603 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
15604 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
15605 *) ac_file_in="${ac_file}.in" ;;
15606 esac
15607
15608 echo creating $ac_file
15609
15610 rm -f conftest.frag conftest.in conftest.out
15611 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
15612 cat $ac_file_inputs > conftest.in
15613
15614EOF
15615
15616# Transform confdefs.h into a sed script conftest.vals that substitutes
15617# the proper values into config.h.in to produce config.h. And first:
15618# Protect against being on the right side of a sed subst in config.status.
15619# Protect against being in an unquoted here document in config.status.
15620rm -f conftest.vals
15621cat > conftest.hdr <<\EOF
15622s/[\\&%]/\\&/g
15623s%[\\$`]%\\&%g
15624s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
15625s%ac_d%ac_u%gp
15626s%ac_u%ac_e%gp
15627EOF
15628sed -n -f conftest.hdr confdefs.h > conftest.vals
15629rm -f conftest.hdr
15630
15631# This sed command replaces #undef with comments. This is necessary, for
15632# example, in the case of _POSIX_SOURCE, which is predefined and required
15633# on some systems where configure will not decide to define it.
15634cat >> conftest.vals <<\EOF
15635s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
15636EOF
15637
15638# Break up conftest.vals because some shells have a limit on
15639# the size of here documents, and old seds have small limits too.
15640
15641rm -f conftest.tail
15642while :
15643do
15644 ac_lines=`grep -c . conftest.vals`
15645 # grep -c gives empty output for an empty file on some AIX systems.
15646 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
15647 # Write a limited-size here document to conftest.frag.
15648 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
15649 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
15650 echo 'CEOF
15651 sed -f conftest.frag conftest.in > conftest.out
15652 rm -f conftest.in
15653 mv conftest.out conftest.in
15654' >> $CONFIG_STATUS
15655 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
15656 rm -f conftest.vals
15657 mv conftest.tail conftest.vals
15658done
15659rm -f conftest.vals
15660
15661cat >> $CONFIG_STATUS <<\EOF
15662 rm -f conftest.frag conftest.h
15663 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
15664 cat conftest.in >> conftest.h
15665 rm -f conftest.in
15666 if cmp -s $ac_file conftest.h 2>/dev/null; then
15667 echo "$ac_file is unchanged"
15668 rm -f conftest.h
15669 else
15670 # Remove last slash and all that follows it. Not all systems have dirname.
15671 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
15672 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
15673 # The file is in a subdirectory.
15674 test ! -d "$ac_dir" && mkdir "$ac_dir"
15675 fi
15676 rm -f $ac_file
15677 mv conftest.h $ac_file
15678 fi
15679fi; done
15680
15681EOF
15682cat >> $CONFIG_STATUS <<EOF
15683
15684 TOOLKIT_DIR="${TOOLKIT_DIR}"
f6bcfd97 15685 TOOLKIT_NAME="${TOOLKIT_NAME}"
07eb77a6 15686 LN_S="${LN_S}"
10f2d63a
VZ
15687
15688
15689EOF
15690cat >> $CONFIG_STATUS <<\EOF
15691
15692 chmod +x wx-config
f6bcfd97
BP
15693 mv wx-config wx${TOOLKIT_NAME}-config
15694 ${LN_S} wx${TOOLKIT_NAME}-config wx-config
00cf1208
RR
15695
15696
15697 if test ! -d lib; then
15698 mkdir lib
15699 fi
15700 if test ! -d lib/wx; then
15701 mkdir lib/wx
15702 fi
15703 if test ! -d lib/wx/include; then
15704 mkdir lib/wx/include
15705 fi
15706 if test ! -d lib/wx/include/wx; then
15707 mkdir lib/wx/include/wx
15708 fi
f6bcfd97
BP
15709 if test ! -d lib/wx/include/wx/${TOOLKIT_NAME}; then
15710 mkdir lib/wx/include/wx/${TOOLKIT_NAME}
00cf1208
RR
15711 fi
15712 if test -f setup.h; then
f6bcfd97 15713 cp -f setup.h lib/wx/include/wx/${TOOLKIT_NAME}/setup.h
00cf1208 15714 fi
07eb77a6 15715
00cf1208 15716
10f2d63a
VZ
15717 if test ! -d include; then
15718 mkdir include
15719 fi
15720 if test ! -d include/wx; then
15721 mkdir include/wx
15722 fi
15723 if test ! -d include/wx/${TOOLKIT_DIR}; then
15724 mkdir include/wx/${TOOLKIT_DIR}
15725 fi
afc31813
VZ
15726 if test -f setup.h; then
15727 mv -f setup.h include/wx/${TOOLKIT_DIR}/setup.h
15728 fi
00cf1208 15729
10f2d63a
VZ
15730
15731exit 0
15732EOF
15733chmod +x $CONFIG_STATUS
15734rm -fr confdefs* $ac_clean_files
15735test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
15736
2224580a
VZ
15737if test "$no_recursion" != yes; then
15738
15739 # Remove --cache-file and --srcdir arguments so they do not pile up.
15740 ac_sub_configure_args=
15741 ac_prev=
15742 for ac_arg in $ac_configure_args; do
15743 if test -n "$ac_prev"; then
15744 ac_prev=
15745 continue
15746 fi
15747 case "$ac_arg" in
15748 -cache-file | --cache-file | --cache-fil | --cache-fi \
15749 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
15750 ac_prev=cache_file ;;
15751 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
15752 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
15753 ;;
15754 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
15755 ac_prev=srcdir ;;
15756 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
15757 ;;
15758 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
15759 esac
15760 done
15761
e8482f24 15762 for ac_config_dir in demos samples utils contrib; do
2224580a
VZ
15763
15764 # Do not complain, so a configure script can configure whichever
15765 # parts of a large source tree are present.
15766 if test ! -d $srcdir/$ac_config_dir; then
15767 continue
15768 fi
15769
15770 echo configuring in $ac_config_dir
15771
15772 case "$srcdir" in
15773 .) ;;
15774 *)
15775 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
15776 else
15777 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
15778 fi
15779 ;;
15780 esac
15781
15782 ac_popdir=`pwd`
15783 cd $ac_config_dir
15784
15785 # A "../" for each directory in /$ac_config_dir.
15786 ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
15787
15788 case "$srcdir" in
15789 .) # No --srcdir option. We are building in place.
15790 ac_sub_srcdir=$srcdir ;;
15791 /*) # Absolute path.
15792 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
15793 *) # Relative path.
15794 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
15795 esac
15796
15797 # Check for guested configure; otherwise get Cygnus style configure.
15798 if test -f $ac_sub_srcdir/configure; then
15799 ac_sub_configure=$ac_sub_srcdir/configure
15800 elif test -f $ac_sub_srcdir/configure.in; then
15801 ac_sub_configure=$ac_configure
15802 else
15803 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
15804 ac_sub_configure=
15805 fi
15806
15807 # The recursion is here.
15808 if test -n "$ac_sub_configure"; then
15809
15810 # Make the cache file name correct relative to the subdirectory.
15811 case "$cache_file" in
15812 /*) ac_sub_cache_file=$cache_file ;;
15813 *) # Relative path.
15814 ac_sub_cache_file="$ac_dots$cache_file" ;;
15815 esac
15816 case "$ac_given_INSTALL" in
15817 [/$]*) INSTALL="$ac_given_INSTALL" ;;
15818 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
15819 esac
15820
15821 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
15822 # The eval makes quoting arguments work.
15823 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
15824 then :
15825 else
15826 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
15827 fi
15828 fi
15829
15830 cd $ac_popdir
15831 done
15832fi
15833
10f2d63a 15834