]> git.saurik.com Git - wxWidgets.git/blame - configure
Added event sample to VC+ project file
[wxWidgets.git] / configure
CommitLineData
10f2d63a
VZ
1#! /bin/sh
2
3# From configure.in Id: configure.in
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
10f2d63a 36
422107f9
VZ
37
38
10f2d63a 39
6f72b082
OK
40
41
42# Configure paths for GTK+
43# Owen Taylor 97-11-3
10f2d63a
VZ
44
45
46# Guess values for system-dependent variables and create Makefiles.
e8482f24 47# Generated automatically using autoconf version 2.13
10f2d63a
VZ
48# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
49#
50# This configure script is free software; the Free Software Foundation
51# gives unlimited permission to copy, distribute and modify it.
52
53# Defaults:
54ac_help=
55ac_default_prefix=/usr/local
56# Any additions from configure.in:
57ac_help="$ac_help
58--enable-gui use GUI classes"
59ac_help="$ac_help
60 --with-gtk use GTK+"
61ac_help="$ac_help
62 --with-motif use Motif/Lesstif"
b4085ce6
GD
63ac_help="$ac_help
64 --with-mac use Mac OS X"
10f2d63a
VZ
65ac_help="$ac_help
66 --with-wine use WINE"
67ac_help="$ac_help
68 --with-cygwin use Cygwin for MS-Windows"
69ac_help="$ac_help
70 --with-mingw use GCC Minimal MS-Windows"
e07802fc
VZ
71ac_help="$ac_help
72 --with-pm use OS/2 Presentation Manager"
10f2d63a
VZ
73ac_help="$ac_help
74 --with-gtk-prefix=PFX Prefix where GTK is installed"
75ac_help="$ac_help
76 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed"
77ac_help="$ac_help
10f2d63a
VZ
78--with-libpng use libpng (PNG image format)"
79ac_help="$ac_help
80--with-libjpeg use libjpeg (JPEG file format)"
81ac_help="$ac_help
c7a2bf27
RR
82--with-libtiff use libtiff (TIFF file format)"
83ac_help="$ac_help
3fed1840
RR
84--with-freetype use freetype (font rasterizer)"
85ac_help="$ac_help
10f2d63a
VZ
86--with-opengl use OpenGL (or Mesa)"
87ac_help="$ac_help
b12915c1
VZ
88--with-dmalloc use dmalloc library (www.letters.com/dmalloc)"
89ac_help="$ac_help
90--with-zlib use zlib for LZW compression"
91ac_help="$ac_help
10f2d63a
VZ
92--with-odbc use the IODBC and wxODBC classes"
93ac_help="$ac_help
94--enable-shared create shared library code"
95ac_help="$ac_help
00cf1208
RR
96--enable-burnt_name create set name in shared library "
97ac_help="$ac_help
10f2d63a
VZ
98--enable-optimise create optimised code"
99ac_help="$ac_help
100--enable-debug same as debug_flag and debug_info"
101ac_help="$ac_help
102--enable-debug_flag set __WXDEBUG__ flag (recommended for developers!)"
103ac_help="$ac_help
104--enable-debug_info create code with debugging information"
105ac_help="$ac_help
106--enable-debug_gdb create code with extra GDB debugging information"
107ac_help="$ac_help
108--enable-debug_cntxt use wxDebugContext"
109ac_help="$ac_help
110--enable-mem_tracing create code with memory tracing"
111ac_help="$ac_help
112--enable-profile create code with profiling information"
113ac_help="$ac_help
114--enable-no_rtti create code without RTTI information"
115ac_help="$ac_help
116--enable-no_exceptions create code without exceptions information"
117ac_help="$ac_help
118--enable-permissive compile code disregarding strict ANSI"
119ac_help="$ac_help
120--enable-no_deps create code without dependency information"
121ac_help="$ac_help
122--enable-intl use internationalization system"
123ac_help="$ac_help
124--enable-config use wxConfig (and derived) classes"
125ac_help="$ac_help
126--enable-sockets use socket/network classes"
127ac_help="$ac_help
10f2d63a
VZ
128--enable-ipc use interprocess communication (wxSocket etc.)"
129ac_help="$ac_help
eb4efbdc
VZ
130--enable-dialupman use dialup network classes"
131ac_help="$ac_help
10f2d63a
VZ
132--enable-apple_ieee use the Apple IEEE codec"
133ac_help="$ac_help
134--enable-timedate use date/time classes"
135ac_help="$ac_help
136--enable-wave use wxWave class"
137ac_help="$ac_help
138--enable-fraction use wxFraction class"
139ac_help="$ac_help
140--enable-dynlib use wxLibrary class for DLL loading"
141ac_help="$ac_help
142--enable-longlong use wxLongLong class"
143ac_help="$ac_help
e8f65ba6
RR
144--enable-geometry use geometry class"
145ac_help="$ac_help
10f2d63a
VZ
146--enable-log use logging system"
147ac_help="$ac_help
148--enable-streams use wxStream etc classes"
149ac_help="$ac_help
150--enable-file use wxFile classes"
151ac_help="$ac_help
152--enable-textfile use wxTextFile classes"
153ac_help="$ac_help
154--enable-unicode compile wxString with Unicode support"
155ac_help="$ac_help
156--enable-wcsrtombs use wcsrtombs instead of buggy (GNU libc1/Linux libc5) wcstombs"
157ac_help="$ac_help
158--enable-wxprintfv use wxWindows implementation of vprintf()"
159ac_help="$ac_help
10f2d63a
VZ
160--enable-std_iostreams use standard C++ stream classes"
161ac_help="$ac_help
24528b0c
VS
162--enable-filesystem use virtual file systems classes"
163ac_help="$ac_help
10f2d63a
VZ
164--enable-fs_inet use virtual HTTP/FTP filesystems"
165ac_help="$ac_help
166--enable-fs_zip use virtual ZIP filesystems"
167ac_help="$ac_help
168--enable-zipstream use wxZipInputStream"
169ac_help="$ac_help
eb4efbdc
VZ
170--enable-catch_segvs catch signals and pass them to wxApp::OnFatalException"
171ac_help="$ac_help
10f2d63a
VZ
172--enable-threads use threads"
173ac_help="$ac_help
174--enable-serial use class serialization"
175ac_help="$ac_help
176--enable-docview use document view architecture"
177ac_help="$ac_help
178--enable-help use help (using external browser at present)"
179ac_help="$ac_help
180--enable-constraints use layout-constraints system"
181ac_help="$ac_help
182--enable-printarch use printing architecture"
183ac_help="$ac_help
184--enable-mdi use multiple document interface architecture"
185ac_help="$ac_help
186--enable-postscript use wxPostscriptDC device context (default for gtk+)"
187ac_help="$ac_help
188--enable-prologio use Prolog IO library"
189ac_help="$ac_help
190--enable-resources use wxWindows resources"
191ac_help="$ac_help
192--enable-xresources use X resources for save (default for gtk+)"
193ac_help="$ac_help
194--enable-clipboard use wxClipboard classes"
195ac_help="$ac_help
196--enable-dnd use Drag'n'Drop classes"
197ac_help="$ac_help
198--enable-wxtree make wxTree library"
199ac_help="$ac_help
200--enable-controls use all usual controls"
201ac_help="$ac_help
202--enable-accel use accelerators"
203ac_help="$ac_help
204--enable-caret use wxCaret class"
205ac_help="$ac_help
206--enable-bmpbutton use wxBitmapButton class"
207ac_help="$ac_help
208--enable-checkbox use wxCheckBox class"
209ac_help="$ac_help
210--enable-checklst use wxCheckListBox (listbox with checkboxes) class"
211ac_help="$ac_help
212--enable-choice use wxChoice class"
213ac_help="$ac_help
214--enable-combobox use wxComboBox classes"
215ac_help="$ac_help
216--enable-gauge use wxGauge class"
217ac_help="$ac_help
218--enable-grid use wxGrid class"
219ac_help="$ac_help
220--enable-newgrid use new wxGrid class"
221ac_help="$ac_help
222--enable-imaglist use wxImageList class"
223ac_help="$ac_help
224--enable-listbox use wxListBox class"
225ac_help="$ac_help
226--enable-listctrl use wxListCtrl class"
227ac_help="$ac_help
228--enable-notebook use wxNotebook class"
229ac_help="$ac_help
230--enable-radiobox use wxRadioBox class"
231ac_help="$ac_help
232--enable-radiobtn use wxRadioButton class"
233ac_help="$ac_help
234--enable-sash use wxSashWindow class"
235ac_help="$ac_help
236--enable-scrollbar use wxScrollBar class and scrollable windows"
237ac_help="$ac_help
238--enable-slider use wxSlider class"
239ac_help="$ac_help
240--enable-spinbtn use wxSpinButton class"
241ac_help="$ac_help
56cfaa52
RR
242--enable-spinctrl use wxSpinCtrl class"
243ac_help="$ac_help
10f2d63a
VZ
244--enable-splitter use wxSplitterWindow class"
245ac_help="$ac_help
246--enable-statbmp use wxStaticBitmap class"
247ac_help="$ac_help
248--enable-statbox use wxStaticBox class"
249ac_help="$ac_help
250--enable-statline use wxStaticLine class"
251ac_help="$ac_help
252--enable-statusbar use wxStatusBar class"
253ac_help="$ac_help
254--enable-tabdialog use wxTabControl class"
255ac_help="$ac_help
256--enable-toolbar use wxToolBar class"
257ac_help="$ac_help
360d6699
VZ
258--enable-tbarnative use native wxToolBar class"
259ac_help="$ac_help
260--enable-tbarsmpl use wxToolBarSimple class"
261ac_help="$ac_help
10f2d63a
VZ
262--enable-treectrl use wxTreeCtrl class"
263ac_help="$ac_help
264--enable-commondlg use common dialogs (wxDirDialog, wxProgressDialog, wxTextDialog, ...)"
265ac_help="$ac_help
266--enable-dirdlg use wxDirDialog"
267ac_help="$ac_help
268--enable-textdlg use wxTextDialog"
269ac_help="$ac_help
270--enable-tipdlg use startup tips"
271ac_help="$ac_help
272--enable-progressdlg use wxProgressDialog"
273ac_help="$ac_help
274--enable-miniframe use wxMiniFrame class"
275ac_help="$ac_help
276--enable-html use wxHTML sub-library"
277ac_help="$ac_help
278--enable-tooltips use wxToolTip class"
279ac_help="$ac_help
280--enable-splines use spline drawing code"
281ac_help="$ac_help
282--enable-validators use wxValidator and derived classes"
283ac_help="$ac_help
284--enable-busyinfo use wxBusyInfo"
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
b4085ce6 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
b4085ce6 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
b4085ce6 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
b4085ce6 963ALL_TOOLKITS="CYGWIN GTK MINGW MOTIF MAC WINE PM"
10f2d63a
VZ
964
965DEFAULT_wxUSE_GTK=0
966DEFAULT_wxUSE_MOTIF=0
967DEFAULT_wxUSE_MSW=0
b4085ce6 968DEFAULT_wxUSE_MAC=0
10f2d63a 969DEFAULT_wxUSE_WINE=0
e07802fc 970DEFAULT_wxUSE_PM=0
10f2d63a
VZ
971
972DEFAULT_DEFAULT_wxUSE_GTK=0
973DEFAULT_DEFAULT_wxUSE_MOTIF=0
974DEFAULT_DEFAULT_wxUSE_MSW=0
b4085ce6 975DEFAULT_DEFAULT_wxUSE_MAC=0
10f2d63a 976DEFAULT_DEFAULT_wxUSE_WINE=0
e07802fc 977DEFAULT_DEFAULT_wxUSE_PM=0
10f2d63a 978
d6a55c4b
VZ
979PROGRAM_EXT=
980
10f2d63a
VZ
981case "${host}" in
982 *-hp-hpux* )
983 USE_HPUX=1
984 DEFAULT_DEFAULT_wxUSE_MOTIF=1
ab9b9eab 985 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
10f2d63a
VZ
986 cat >> confdefs.h <<\EOF
987#define __HPUX__ 1
988EOF
989
990 ;;
991 *-*-linux* )
992 USE_LINUX=1
993 cat >> confdefs.h <<\EOF
994#define __LINUX__ 1
995EOF
996
997 TMP=`uname -m`
998 if test "x$TMP" = "xalpha"; then
999 USE_ALPHA=1
1000 cat >> confdefs.h <<\EOF
1001#define __ALPHA__ 1
1002EOF
1003
1004 fi
1005 DEFAULT_DEFAULT_wxUSE_GTK=1
1006 ;;
1007 *-*-irix5* | *-*-irix6* )
1008 USE_SGI=1
1009 USE_SVR4=1
1010 cat >> confdefs.h <<\EOF
1011#define __SGI__ 1
1012EOF
1013
1014 cat >> confdefs.h <<\EOF
1015#define __SVR4__ 1
1016EOF
1017
1018 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1019 ;;
1020 *-*-solaris2* )
1021 USE_SUN=1
1022 USE_SOLARIS=1
1023 USE_SVR4=1
1024 cat >> confdefs.h <<\EOF
1025#define __SUN__ 1
1026EOF
1027
1028 cat >> confdefs.h <<\EOF
1029#define __SOLARIS__ 1
1030EOF
1031
1032 cat >> confdefs.h <<\EOF
1033#define __SVR4__ 1
1034EOF
1035
1036 DEFAULT_DEFAULT_wxUSE_MOTIF=1
ab9b9eab 1037 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
10f2d63a
VZ
1038 ;;
1039 *-*-sunos4* )
1040 USE_SUN=1
1041 USE_SUNOS=1
1042 USE_BSD=1
1043 cat >> confdefs.h <<\EOF
1044#define __SUN__ 1
1045EOF
1046
1047 cat >> confdefs.h <<\EOF
1048#define __SUNOS__ 1
1049EOF
1050
1051 cat >> confdefs.h <<\EOF
1052#define __BSD__ 1
1053EOF
1054
1055 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1056 ;;
f6bcfd97 1057 *-*-freebsd*)
10f2d63a
VZ
1058 USE_BSD=1
1059 USE_FREEBSD=1
1060 cat >> confdefs.h <<\EOF
1061#define __FREEBSD__ 1
1062EOF
1063
1064 cat >> confdefs.h <<\EOF
1065#define __BSD__ 1
f6bcfd97
BP
1066EOF
1067
1068 DEFAULT_DEFAULT_wxUSE_GTK=1
1069 ;;
1070 *-*-netbsd*)
1071 USE_BSD=1
1072 USE_NETBSD=1
1073 cat >> confdefs.h <<\EOF
1074#define __FREEBSD__ 1
1075EOF
1076
1077 cat >> confdefs.h <<\EOF
1078#define __NETBSD__ 1
10f2d63a
VZ
1079EOF
1080
1081 DEFAULT_DEFAULT_wxUSE_GTK=1
1082 ;;
1083 *-*-osf* )
1084 USE_ALPHA=1
1085 USE_OSF=1
1086 cat >> confdefs.h <<\EOF
1087#define __ALPHA__ 1
1088EOF
1089
1090 cat >> confdefs.h <<\EOF
1091#define __OSF__ 1
1092EOF
1093
1094 DEFAULT_DEFAULT_wxUSE_MOTIF=1
f6bcfd97 1095 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
10f2d63a
VZ
1096 ;;
1097 *-*-dgux5* )
1098 USE_ALPHA=1
1099 USE_SVR4=1
1100 cat >> confdefs.h <<\EOF
1101#define __ALPHA__ 1
1102EOF
1103
1104 cat >> confdefs.h <<\EOF
1105#define __SVR4__ 1
1106EOF
1107
1108 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1109 ;;
1110 *-*-sysv5* )
1111 USE_SYSV=1
1112 USE_SVR4=1
1113 cat >> confdefs.h <<\EOF
1114#define __SYSV__ 1
1115EOF
1116
1117 cat >> confdefs.h <<\EOF
1118#define __SVR4__ 1
1119EOF
1120
1121 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1122 ;;
1123 *-*-aix* )
1124 USE_AIX=1
1125 USE_SYSV=1
1126 USE_SVR4=1
1127 cat >> confdefs.h <<\EOF
1128#define __AIX__ 1
1129EOF
1130
1131 cat >> confdefs.h <<\EOF
1132#define __SYSV__ 1
1133EOF
1134
1135 cat >> confdefs.h <<\EOF
1136#define __SVR4__ 1
1137EOF
1138
1139 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1140 ;;
1141
7eef8db2 1142 *-*-cygwin32* | *-*-mingw32* )
10f2d63a
VZ
1143 USE_UNIX=0
1144 USE_WIN32=1
1145 cat >> confdefs.h <<\EOF
1146#define __WIN32__ 1
1147EOF
1148
1149 cat >> confdefs.h <<\EOF
1150#define __WIN95__ 1
1151EOF
1152
1153 cat >> confdefs.h <<\EOF
1154#define __WINDOWS__ 1
1155EOF
1156
1157 cat >> confdefs.h <<\EOF
1158#define __GNUWIN32__ 1
1159EOF
1160
1161 cat >> confdefs.h <<\EOF
1162#define STRICT 1
1163EOF
1164
1165 cat >> confdefs.h <<\EOF
1166#define WINVER 0x0400
1167EOF
1168
cf27ef00 1169 PROGRAM_EXT=".exe"
10f2d63a
VZ
1170 DEFAULT_DEFAULT_wxUSE_MSW=1
1171 ;;
1172
1173 *-pc-os2_emx )
1174 cat >> confdefs.h <<\EOF
1175#define __EMX__ 1
1176EOF
1177
cf27ef00 1178 PROGRAM_EXT=".exe"
e07802fc 1179 DEFAULT_DEFAULT_wxUSE_PM=1
10f2d63a
VZ
1180 ;;
1181
b4085ce6
GD
1182 *-*-darwin* )
1183 USE_BSD=1
1184 USE_MAC=1
1185 cat >> confdefs.h <<\EOF
1186#define __MAC__ 1
1187EOF
1188
1189 cat >> confdefs.h <<\EOF
1190#define __BSD__ 1
1191EOF
1192
1193 cat >> confdefs.h <<\EOF
1194#define __UNIX__ 1
1195EOF
1196
1197 DEFAULT_DEFAULT_wxUSE_MAC=1
1198 ;;
1199
b12915c1
VZ
1200 *-*-beos* )
1201 USE_BEOS=1
1202 cat >> confdefs.h <<\EOF
1203#define __BEOS__ 1
1204EOF
1205
1206 ;;
1207
10f2d63a
VZ
1208 *)
1209 { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; }
1210esac
1211
1212if test "$USE_UNIX" = 1 ; then
b12915c1
VZ
1213 wxUSE_UNIX=yes
1214 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1215#define __UNIX__ 1
1216EOF
1217
b12915c1
VZ
1218
1219 SRC_SUBDIRS="$SRC_SUBDIRS unix"
1220 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS unix"
1221fi
1222
1223if test "$USE_BEOS" = 1; then
1224 SRC_SUBDIRS="$SRC_SUBDIRS be"
1225 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS be"
10f2d63a
VZ
1226fi
1227
1228if test "$USE_LINUX" = 1; then
1229 echo $ac_n "checking for gettext in -lc""... $ac_c" 1>&6
b4085ce6 1230echo "configure:1231: checking for gettext in -lc" >&5
10f2d63a
VZ
1231ac_lib_var=`echo c'_'gettext | sed 'y%./+-%__p_%'`
1232if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1233 echo $ac_n "(cached) $ac_c" 1>&6
1234else
1235 ac_save_LIBS="$LIBS"
1236LIBS="-lc $LIBS"
1237cat > conftest.$ac_ext <<EOF
b4085ce6 1238#line 1239 "configure"
10f2d63a
VZ
1239#include "confdefs.h"
1240/* Override any gcc2 internal prototype to avoid an error. */
1241/* We use char because int might match the return type of a gcc2
1242 builtin and then its argument prototype would still apply. */
1243char gettext();
1244
1245int main() {
1246gettext()
1247; return 0; }
1248EOF
b4085ce6 1249if { (eval echo configure:1250: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
1250 rm -rf conftest*
1251 eval "ac_cv_lib_$ac_lib_var=yes"
1252else
1253 echo "configure: failed program was:" >&5
1254 cat conftest.$ac_ext >&5
1255 rm -rf conftest*
1256 eval "ac_cv_lib_$ac_lib_var=no"
1257fi
1258rm -f conftest*
1259LIBS="$ac_save_LIBS"
1260
1261fi
1262if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1263 echo "$ac_t""yes" 1>&6
1264 cat >> confdefs.h <<\EOF
1265#define wxHAVE_GLIBC2 1
1266EOF
1267
1268else
1269 echo "$ac_t""no" 1>&6
1270fi
1271
1272fi
1273
1274
1275
1276
1277 wx_arg_cache_file="configarg.cache"
1278 echo "loading argument cache $wx_arg_cache_file"
1279 rm -f ${wx_arg_cache_file}.tmp
1280 touch ${wx_arg_cache_file}.tmp
1281 touch ${wx_arg_cache_file}
1282
1283
1284DEBUG_CONFIGURE=0
1285if test $DEBUG_CONFIGURE = 1; then
1286 DEFAULT_wxUSE_THREADS=yes
1287
1288 DEFAULT_wxUSE_SHARED=yes
00cf1208 1289 DEFAULT_wxUSE_BURNT_NAME=no
10f2d63a
VZ
1290 DEFAULT_wxUSE_OPTIMISE=yes
1291 DEFAULT_wxUSE_PROFILE=no
1292 DEFAULT_wxUSE_NO_DEPS=no
1293 DEFAULT_wxUSE_NO_RTTI=no
1294 DEFAULT_wxUSE_NO_EXCEPTIONS=no
1295 DEFAULT_wxUSE_PERMISSIVE=no
1296 DEFAULT_wxUSE_DEBUG_FLAG=yes
1297 DEFAULT_wxUSE_DEBUG_INFO=yes
1298 DEFAULT_wxUSE_DEBUG_GDB=yes
1299 DEFAULT_wxUSE_MEM_TRACING=no
1300 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1301 DEFAULT_wxUSE_DMALLOC=no
1302 DEFAULT_wxUSE_APPLE_IEEE=no
1303
1304 DEFAULT_wxUSE_LOG=yes
1305
1306 DEFAULT_wxUSE_GUI=yes
1307
1308 DEFAULT_wxUSE_ZLIB=no
1309 DEFAULT_wxUSE_LIBPNG=no
1310 DEFAULT_wxUSE_LIBJPEG=no
c7a2bf27 1311 DEFAULT_wxUSE_LIBTIFF=no
10f2d63a 1312 DEFAULT_wxUSE_ODBC=no
3fed1840 1313 DEFAULT_wxUSE_FREETYPE=no
bdad4e7e 1314 DEFAULT_wxUSE_OPENGL=no
10f2d63a 1315
eb4efbdc 1316 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no
10f2d63a
VZ
1317 DEFAULT_wxUSE_STD_IOSTREAM=no
1318 DEFAULT_wxUSE_FILE=no
1319 DEFAULT_wxUSE_TEXTFILE=no
1320 DEFAULT_wxUSE_TIMEDATE=no
1321 DEFAULT_wxUSE_WAVE=no
1322 DEFAULT_wxUSE_INTL=no
1323 DEFAULT_wxUSE_CONFIG=no
1324 DEFAULT_wxUSE_STREAMS=no
1325 DEFAULT_wxUSE_SOCKETS=no
1326 DEFAULT_wxUSE_DIALUP_MANAGER=no
1327 DEFAULT_wxUSE_SERIAL=no
1328 DEFAULT_wxUSE_JOYSTICK=no
1329 DEFAULT_wxUSE_DYNLIB_CLASS=no
1330 DEFAULT_wxUSE_LONGLONG=no
e8f65ba6 1331 DEFAULT_wxUSE_GEOMETRY=no
10f2d63a
VZ
1332
1333 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
1334 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
1335 DEFAULT_wxUSE_POSTSCRIPT=no
1336
1337 DEFAULT_wxUSE_X_RESOURCES=no
1338 DEFAULT_wxUSE_CLIPBOARD=no
1339 DEFAULT_wxUSE_TOOLTIPS=no
1340 DEFAULT_wxUSE_DRAG_AND_DROP=no
1341 DEFAULT_wxUSE_SPLINES=no
1342
1343 DEFAULT_wxUSE_MDI_ARCHITECTURE=no
1344 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
1345 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
1346
1347 DEFAULT_wxUSE_PROLOGIO=no
1348 DEFAULT_wxUSE_RESOURCES=no
1349 DEFAULT_wxUSE_CONSTRAINTS=no
1350 DEFAULT_wxUSE_IPC=no
1351 DEFAULT_wxUSE_HELP=no
1352 DEFAULT_wxUSE_WXTREE=no
1353 DEFAULT_wxUSE_METAFILE=no
1354
1355 DEFAULT_wxUSE_COMMONDLGS=no
1356 DEFAULT_wxUSE_DIRDLG=no
1357 DEFAULT_wxUSE_TEXTDLG=no
1358 DEFAULT_wxUSE_STARTUP_TIPS=no
1359 DEFAULT_wxUSE_PROGRESSDLG=no
1360 DEFAULT_wxUSE_MINIFRAME=no
1361 DEFAULT_wxUSE_HTML=no
24528b0c 1362 DEFAULT_wxUSE_FILESYSTEM=no
10f2d63a
VZ
1363 DEFAULT_wxUSE_FS_INET=no
1364 DEFAULT_wxUSE_FS_ZIP=no
1365 DEFAULT_wxUSE_BUSYINFO=no
1366 DEFAULT_wxUSE_ZIPSTREAM=no
1367 DEFAULT_wxUSE_VALIDATORS=yes
1368
1369 DEFAULT_wxUSE_ACCEL=no
1370 DEFAULT_wxUSE_CARET=no
1371 DEFAULT_wxUSE_BMPBUTTON=no
1372 DEFAULT_wxUSE_CHECKBOX=no
1373 DEFAULT_wxUSE_CHECKLST=no
1374 DEFAULT_wxUSE_CHOICE=yes
1375 DEFAULT_wxUSE_COMBOBOX=no
1376 DEFAULT_wxUSE_GAUGE=no
1377 DEFAULT_wxUSE_GRID=no
1378 DEFAULT_wxUSE_NEW_GRID=no
1379 DEFAULT_wxUSE_IMAGLIST=no
1380 DEFAULT_wxUSE_LISTBOX=no
1381 DEFAULT_wxUSE_LISTCTRL=no
1382 DEFAULT_wxUSE_NOTEBOOK=no
1383 DEFAULT_wxUSE_RADIOBOX=no
1384 DEFAULT_wxUSE_RADIOBTN=no
1385 DEFAULT_wxUSE_SASH=no
1386 DEFAULT_wxUSE_SCROLLBAR=no
1387 DEFAULT_wxUSE_SLIDER=no
1388 DEFAULT_wxUSE_SPINBTN=no
56cfaa52 1389 DEFAULT_wxUSE_SPINCTRL=no
10f2d63a
VZ
1390 DEFAULT_wxUSE_SPLITTER=no
1391 DEFAULT_wxUSE_STATBMP=no
1392 DEFAULT_wxUSE_STATBOX=no
1393 DEFAULT_wxUSE_STATLINE=no
1394 DEFAULT_wxUSE_STATUSBAR=yes
1395 DEFAULT_wxUSE_TABDIALOG=no
1396 DEFAULT_wxUSE_TOOLBAR=no
360d6699
VZ
1397 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
1398 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
10f2d63a
VZ
1399 DEFAULT_wxUSE_TREECTRL=no
1400
1401 DEFAULT_wxUSE_UNICODE=no
1402 DEFAULT_wxUSE_WCSRTOMBS=no
1403
1404 DEFAULT_wxUSE_GIF=no
1405 DEFAULT_wxUSE_PCX=no
1406 DEFAULT_wxUSE_PNM=no
1407else
1408 DEFAULT_wxUSE_THREADS=yes
1409
1410 DEFAULT_wxUSE_SHARED=yes
00cf1208 1411 DEFAULT_wxUSE_BURNT_NAME=no
10f2d63a
VZ
1412 DEFAULT_wxUSE_OPTIMISE=yes
1413 DEFAULT_wxUSE_PROFILE=no
1414 DEFAULT_wxUSE_NO_DEPS=no
1415 DEFAULT_wxUSE_NO_RTTI=no
1416 DEFAULT_wxUSE_NO_EXCEPTIONS=no
1417 DEFAULT_wxUSE_PERMISSIVE=no
1418 DEFAULT_wxUSE_DEBUG_FLAG=no
1419 DEFAULT_wxUSE_DEBUG_INFO=no
1420 DEFAULT_wxUSE_DEBUG_GDB=no
1421 DEFAULT_wxUSE_MEM_TRACING=no
1422 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1423 DEFAULT_wxUSE_DMALLOC=no
1424 DEFAULT_wxUSE_APPLE_IEEE=yes
1425
1426 DEFAULT_wxUSE_LOG=yes
1427
1428 DEFAULT_wxUSE_GUI=yes
1429
1430 DEFAULT_wxUSE_ZLIB=yes
1431 DEFAULT_wxUSE_LIBPNG=yes
1432 DEFAULT_wxUSE_LIBJPEG=yes
b47c832e 1433 DEFAULT_wxUSE_LIBTIFF=yes
16b52fa1 1434 DEFAULT_wxUSE_ODBC=no
3fed1840 1435 DEFAULT_wxUSE_FREETYPE=no
bdad4e7e 1436 DEFAULT_wxUSE_OPENGL=no
10f2d63a 1437
eb4efbdc 1438 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes
10f2d63a
VZ
1439 DEFAULT_wxUSE_STD_IOSTREAM=no
1440 DEFAULT_wxUSE_FILE=yes
1441 DEFAULT_wxUSE_TEXTFILE=yes
1442 DEFAULT_wxUSE_TIMEDATE=yes
1443 DEFAULT_wxUSE_WAVE=no
1444 DEFAULT_wxUSE_INTL=yes
1445 DEFAULT_wxUSE_CONFIG=yes
1446 DEFAULT_wxUSE_STREAMS=yes
1447 DEFAULT_wxUSE_SOCKETS=yes
1448 DEFAULT_wxUSE_DIALUP_MANAGER=yes
1449 DEFAULT_wxUSE_SERIAL=yes
1450 DEFAULT_wxUSE_JOYSTICK=yes
1451 DEFAULT_wxUSE_DYNLIB_CLASS=yes
b685cd9b 1452 DEFAULT_wxUSE_LONGLONG=yes
e8f65ba6 1453 DEFAULT_wxUSE_GEOMETRY=yes
10f2d63a
VZ
1454
1455 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
1456 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
1457 DEFAULT_wxUSE_POSTSCRIPT=yes
1458
1459 DEFAULT_wxUSE_X_RESOURCES=no
1460 DEFAULT_wxUSE_CLIPBOARD=yes
1461 DEFAULT_wxUSE_TOOLTIPS=yes
1462 DEFAULT_wxUSE_DRAG_AND_DROP=yes
1463 DEFAULT_wxUSE_SPLINES=yes
1464
1465 DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
1466 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
1467 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
1468
1469 DEFAULT_wxUSE_PROLOGIO=yes
1470 DEFAULT_wxUSE_RESOURCES=yes
1471 DEFAULT_wxUSE_CONSTRAINTS=yes
1472 DEFAULT_wxUSE_IPC=yes
1473 DEFAULT_wxUSE_HELP=yes
1474 DEFAULT_wxUSE_WXTREE=yes
1475 DEFAULT_wxUSE_METAFILE=yes
1476
1477 DEFAULT_wxUSE_COMMONDLGS=yes
1478 DEFAULT_wxUSE_DIRDLG=yes
1479 DEFAULT_wxUSE_TEXTDLG=yes
1480 DEFAULT_wxUSE_STARTUP_TIPS=yes
1481 DEFAULT_wxUSE_PROGRESSDLG=yes
1482 DEFAULT_wxUSE_MINIFRAME=yes
1483 DEFAULT_wxUSE_HTML=yes
24528b0c 1484 DEFAULT_wxUSE_FILESYSTEM=yes
10f2d63a
VZ
1485 DEFAULT_wxUSE_FS_INET=yes
1486 DEFAULT_wxUSE_FS_ZIP=yes
1487 DEFAULT_wxUSE_BUSYINFO=yes
1488 DEFAULT_wxUSE_ZIPSTREAM=yes
1489 DEFAULT_wxUSE_VALIDATORS=yes
1490
1491 DEFAULT_wxUSE_ACCEL=yes
1492 DEFAULT_wxUSE_CARET=yes
1493 DEFAULT_wxUSE_BMPBUTTON=yes
1494 DEFAULT_wxUSE_CHECKBOX=yes
1495 DEFAULT_wxUSE_CHECKLST=yes
1496 DEFAULT_wxUSE_CHOICE=yes
1497 DEFAULT_wxUSE_COMBOBOX=yes
1498 DEFAULT_wxUSE_GAUGE=yes
1499 DEFAULT_wxUSE_GRID=yes
cc977e5f 1500 DEFAULT_wxUSE_NEW_GRID=yes
10f2d63a
VZ
1501 DEFAULT_wxUSE_IMAGLIST=yes
1502 DEFAULT_wxUSE_LISTBOX=yes
1503 DEFAULT_wxUSE_LISTCTRL=yes
1504 DEFAULT_wxUSE_NOTEBOOK=yes
1505 DEFAULT_wxUSE_RADIOBOX=yes
1506 DEFAULT_wxUSE_RADIOBTN=yes
1507 DEFAULT_wxUSE_SASH=yes
1508 DEFAULT_wxUSE_SCROLLBAR=yes
1509 DEFAULT_wxUSE_SLIDER=yes
1510 DEFAULT_wxUSE_SPINBTN=yes
56cfaa52 1511 DEFAULT_wxUSE_SPINCTRL=yes
10f2d63a
VZ
1512 DEFAULT_wxUSE_SPLITTER=yes
1513 DEFAULT_wxUSE_STATBMP=yes
1514 DEFAULT_wxUSE_STATBOX=yes
1515 DEFAULT_wxUSE_STATLINE=yes
1516 DEFAULT_wxUSE_STATUSBAR=yes
1517 DEFAULT_wxUSE_TABDIALOG=no
1518 DEFAULT_wxUSE_TOOLBAR=yes
360d6699
VZ
1519 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
1520 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
10f2d63a
VZ
1521 DEFAULT_wxUSE_TREECTRL=yes
1522
1523 DEFAULT_wxUSE_UNICODE=no
1524 DEFAULT_wxUSE_WCSRTOMBS=no
1525
1526 DEFAULT_wxUSE_GIF=yes
1527 DEFAULT_wxUSE_PCX=yes
1528 DEFAULT_wxUSE_PNM=yes
1529fi
1530
1531
1532
1533for toolkit in `echo $ALL_TOOLKITS`; do
1534 LINE=`grep "wxUSE_$toolkit" ${wx_arg_cache_file}`
1535 if test "x$LINE" != x ; then
1536 has_toolkit_in_cache=1
1537 eval "DEFAULT_$LINE"
1538 eval "CACHE_$toolkit=1"
1539 fi
1540done
1541
1542
1543
1544 echo $ac_n "checking "for --enable-gui"""... $ac_c" 1>&6
b4085ce6 1545echo "configure:1546: checking "for --enable-gui"" >&5
10f2d63a
VZ
1546 no_cache=0
1547 # Check whether --enable-gui or --disable-gui was given.
1548if test "${enable_gui+set}" = set; then
1549 enableval="$enable_gui"
1550
1551 if test "$enableval" = yes; then
1552 ac_cv_use_gui='wxUSE_GUI=yes'
1553 else
1554 ac_cv_use_gui='wxUSE_GUI=no'
1555 fi
1556
1557else
1558
1559 LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
1560 if test "x$LINE" != x ; then
1561 eval "DEFAULT_$LINE"
1562 else
1563 no_cache=1
1564 fi
1565
1566 ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
1567
1568fi
1569
1570
1571 eval "$ac_cv_use_gui"
1572 if test "$no_cache" != 1; then
1573 echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
1574 fi
1575
1576 if test "$wxUSE_GUI" = yes; then
1577 echo "$ac_t""yes" 1>&6
1578 else
1579 echo "$ac_t""no" 1>&6
1580 fi
1581
1582
b12915c1 1583if test "$wxUSE_GUI" = "yes"; then
10f2d63a
VZ
1584
1585# Check whether --with-gtk or --without-gtk was given.
1586if test "${with_gtk+set}" = set; then
1587 withval="$with_gtk"
1588 wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
1589fi
1590
1591# Check whether --with-motif or --without-motif was given.
1592if test "${with_motif+set}" = set; then
1593 withval="$with_motif"
1594 wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
1595fi
1596
b4085ce6
GD
1597# Check whether --with-mac or --without-mac was given.
1598if test "${with_mac+set}" = set; then
1599 withval="$with_mac"
1600 wxUSE_MAC="$withval" TOOLKIT_GIVEN=1
1601fi
1602
10f2d63a
VZ
1603# Check whether --with-wine or --without-wine was given.
1604if test "${with_wine+set}" = set; then
1605 withval="$with_wine"
1606 wxUSE_WINE="$withval" CACHE_WINE=1 TOOLKIT_GIVEN=1
1607fi
1608
1609# Check whether --with-cygwin or --without-cygwin was given.
1610if test "${with_cygwin+set}" = set; then
1611 withval="$with_cygwin"
1612 wxUSE_CYGWIN="$withval" CACHE_CYGWIN=1 TOOLKIT_GIVEN=1
1613fi
1614
1615# Check whether --with-mingw or --without-mingw was given.
1616if test "${with_mingw+set}" = set; then
1617 withval="$with_mingw"
1618 wxUSE_MINGW="$withval" CACHE_MINGW=1 TOOLKIT_GIVEN=1
1619fi
1620
e07802fc
VZ
1621# Check whether --with-pm or --without-pm was given.
1622if test "${with_pm+set}" = set; then
1623 withval="$with_pm"
1624 wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
1625fi
1626
10f2d63a
VZ
1627
1628# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
1629if test "${with_gtk_prefix+set}" = set; then
1630 withval="$with_gtk_prefix"
1631 gtk_config_prefix="$withval"
1632else
1633 gtk_config_prefix=""
1634fi
1635
1636# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
1637if test "${with_gtk_exec_prefix+set}" = set; then
1638 withval="$with_gtk_exec_prefix"
1639 gtk_config_exec_prefix="$withval"
1640else
1641 gtk_config_exec_prefix=""
1642fi
1643
1644
1645
b12915c1 1646 echo $ac_n "checking "for --with-libpng"""... $ac_c" 1>&6
b4085ce6 1647echo "configure:1648: checking "for --with-libpng"" >&5
10f2d63a 1648 no_cache=0
b12915c1
VZ
1649 # Check whether --with-libpng or --without-libpng was given.
1650if test "${with_libpng+set}" = set; then
1651 withval="$with_libpng"
10f2d63a
VZ
1652
1653 if test "$withval" = yes; then
b12915c1 1654 ac_cv_use_libpng='wxUSE_LIBPNG=yes'
422107f9 1655 elif test "$withval" = no; then
b12915c1 1656 ac_cv_use_libpng='wxUSE_LIBPNG=no'
422107f9
VZ
1657 elif test "$withval" = sys; then
1658 ac_cv_use_libpng='wxUSE_LIBPNG=sys'
1659 else
1660 { echo "configure: error: Invalid value for --with-libpng: should be yes, no or sys" 1>&2; exit 1; }
10f2d63a
VZ
1661 fi
1662
1663else
1664
b12915c1 1665 LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
10f2d63a
VZ
1666 if test "x$LINE" != x ; then
1667 eval "DEFAULT_$LINE"
1668 else
1669 no_cache=1
1670 fi
1671
b12915c1 1672 ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
10f2d63a
VZ
1673
1674fi
1675
1676
b12915c1 1677 eval "$ac_cv_use_libpng"
10f2d63a 1678 if test "$no_cache" != 1; then
b12915c1 1679 echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
1680 fi
1681
b12915c1 1682 if test "$wxUSE_LIBPNG" = yes; then
10f2d63a 1683 echo "$ac_t""yes" 1>&6
422107f9 1684 elif test "$wxUSE_LIBPNG" = no; then
10f2d63a 1685 echo "$ac_t""no" 1>&6
422107f9
VZ
1686 elif test "$wxUSE_LIBPNG" = sys; then
1687 echo "$ac_t""system version" 1>&6
1688 else
1689 { echo "configure: error: Invalid value for --with-libpng: should be yes, no or sys" 1>&2; exit 1; }
10f2d63a
VZ
1690 fi
1691
1692
b12915c1 1693 echo $ac_n "checking "for --with-libjpeg"""... $ac_c" 1>&6
b4085ce6 1694echo "configure:1695: checking "for --with-libjpeg"" >&5
10f2d63a 1695 no_cache=0
b12915c1
VZ
1696 # Check whether --with-libjpeg or --without-libjpeg was given.
1697if test "${with_libjpeg+set}" = set; then
1698 withval="$with_libjpeg"
10f2d63a
VZ
1699
1700 if test "$withval" = yes; then
b12915c1 1701 ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
422107f9 1702 elif test "$withval" = no; then
b12915c1 1703 ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
422107f9
VZ
1704 elif test "$withval" = sys; then
1705 ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
1706 else
1707 { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no or sys" 1>&2; exit 1; }
10f2d63a
VZ
1708 fi
1709
1710else
1711
b12915c1 1712 LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
10f2d63a
VZ
1713 if test "x$LINE" != x ; then
1714 eval "DEFAULT_$LINE"
1715 else
1716 no_cache=1
1717 fi
1718
b12915c1 1719 ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
10f2d63a
VZ
1720
1721fi
1722
1723
b12915c1 1724 eval "$ac_cv_use_libjpeg"
10f2d63a 1725 if test "$no_cache" != 1; then
b12915c1 1726 echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
1727 fi
1728
b12915c1 1729 if test "$wxUSE_LIBJPEG" = yes; then
10f2d63a 1730 echo "$ac_t""yes" 1>&6
422107f9 1731 elif test "$wxUSE_LIBJPEG" = no; then
10f2d63a 1732 echo "$ac_t""no" 1>&6
422107f9
VZ
1733 elif test "$wxUSE_LIBJPEG" = sys; then
1734 echo "$ac_t""system version" 1>&6
1735 else
1736 { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no or sys" 1>&2; exit 1; }
10f2d63a
VZ
1737 fi
1738
1739
b12915c1 1740 echo $ac_n "checking "for --with-libtiff"""... $ac_c" 1>&6
b4085ce6 1741echo "configure:1742: checking "for --with-libtiff"" >&5
10f2d63a 1742 no_cache=0
b12915c1
VZ
1743 # Check whether --with-libtiff or --without-libtiff was given.
1744if test "${with_libtiff+set}" = set; then
1745 withval="$with_libtiff"
10f2d63a
VZ
1746
1747 if test "$withval" = yes; then
b12915c1 1748 ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
0dcf9893 1749 elif test "$withval" = no; then
b12915c1 1750 ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
0dcf9893
VZ
1751 elif test "$withval" = sys; then
1752 ac_cv_use_libtiff='wxUSE_LIBTIFF=sys'
1753 else
1754 { echo "configure: error: Invalid value for --with-libtiff: should be yes, no or sys" 1>&2; exit 1; }
10f2d63a
VZ
1755 fi
1756
1757else
1758
b12915c1 1759 LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
10f2d63a
VZ
1760 if test "x$LINE" != x ; then
1761 eval "DEFAULT_$LINE"
1762 else
1763 no_cache=1
1764 fi
1765
b12915c1 1766 ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
10f2d63a
VZ
1767
1768fi
1769
1770
b12915c1 1771 eval "$ac_cv_use_libtiff"
10f2d63a 1772 if test "$no_cache" != 1; then
b12915c1 1773 echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
1774 fi
1775
b12915c1 1776 if test "$wxUSE_LIBTIFF" = yes; then
10f2d63a 1777 echo "$ac_t""yes" 1>&6
0dcf9893 1778 elif test "$wxUSE_LIBTIFF" = no; then
10f2d63a 1779 echo "$ac_t""no" 1>&6
0dcf9893
VZ
1780 elif test "$wxUSE_LIBTIFF" = sys; then
1781 echo "$ac_t""system version" 1>&6
1782 else
1783 { echo "configure: error: Invalid value for --with-libtiff: should be yes, no or sys" 1>&2; exit 1; }
10f2d63a
VZ
1784 fi
1785
1786
3fed1840 1787 echo $ac_n "checking "for --with-freetype"""... $ac_c" 1>&6
b4085ce6 1788echo "configure:1789: checking "for --with-freetype"" >&5
3fed1840
RR
1789 no_cache=0
1790 # Check whether --with-freetype or --without-freetype was given.
1791if test "${with_freetype+set}" = set; then
1792 withval="$with_freetype"
1793
1794 if test "$withval" = yes; then
1795 ac_cv_use_freetype='wxUSE_FREETYPE=yes'
1796 elif test "$withval" = no; then
1797 ac_cv_use_freetype='wxUSE_FREETYPE=no'
1798 elif test "$withval" = sys; then
1799 ac_cv_use_freetype='wxUSE_FREETYPE=sys'
1800 else
1801 { echo "configure: error: Invalid value for --with-freetype: should be yes, no or sys" 1>&2; exit 1; }
1802 fi
1803
1804else
1805
1806 LINE=`grep "wxUSE_FREETYPE" ${wx_arg_cache_file}`
1807 if test "x$LINE" != x ; then
1808 eval "DEFAULT_$LINE"
1809 else
1810 no_cache=1
1811 fi
1812
1813 ac_cv_use_freetype='wxUSE_FREETYPE='$DEFAULT_wxUSE_FREETYPE
1814
1815fi
1816
1817
1818 eval "$ac_cv_use_freetype"
1819 if test "$no_cache" != 1; then
1820 echo $ac_cv_use_freetype >> ${wx_arg_cache_file}.tmp
1821 fi
1822
1823 if test "$wxUSE_FREETYPE" = yes; then
1824 echo "$ac_t""yes" 1>&6
1825 elif test "$wxUSE_FREETYPE" = no; then
1826 echo "$ac_t""no" 1>&6
1827 elif test "$wxUSE_FREETYPE" = sys; then
1828 echo "$ac_t""system version" 1>&6
1829 else
1830 { echo "configure: error: Invalid value for --with-freetype: should be yes, no or sys" 1>&2; exit 1; }
1831 fi
1832
1833
b12915c1 1834 echo $ac_n "checking "for --with-opengl"""... $ac_c" 1>&6
b4085ce6 1835echo "configure:1836: checking "for --with-opengl"" >&5
10f2d63a 1836 no_cache=0
b12915c1
VZ
1837 # Check whether --with-opengl or --without-opengl was given.
1838if test "${with_opengl+set}" = set; then
1839 withval="$with_opengl"
10f2d63a
VZ
1840
1841 if test "$withval" = yes; then
b12915c1 1842 ac_cv_use_opengl='wxUSE_OPENGL=yes'
10f2d63a 1843 else
b12915c1 1844 ac_cv_use_opengl='wxUSE_OPENGL=no'
10f2d63a
VZ
1845 fi
1846
1847else
1848
b12915c1 1849 LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
10f2d63a
VZ
1850 if test "x$LINE" != x ; then
1851 eval "DEFAULT_$LINE"
1852 else
1853 no_cache=1
1854 fi
1855
b12915c1 1856 ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
10f2d63a
VZ
1857
1858fi
1859
1860
b12915c1 1861 eval "$ac_cv_use_opengl"
10f2d63a 1862 if test "$no_cache" != 1; then
b12915c1 1863 echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
1864 fi
1865
b12915c1 1866 if test "$wxUSE_OPENGL" = yes; then
10f2d63a
VZ
1867 echo "$ac_t""yes" 1>&6
1868 else
1869 echo "$ac_t""no" 1>&6
1870 fi
1871
1872
b12915c1
VZ
1873fi
1874
1875
1876 echo $ac_n "checking "for --with-dmalloc"""... $ac_c" 1>&6
b4085ce6 1877echo "configure:1878: checking "for --with-dmalloc"" >&5
c7a2bf27 1878 no_cache=0
b12915c1
VZ
1879 # Check whether --with-dmalloc or --without-dmalloc was given.
1880if test "${with_dmalloc+set}" = set; then
1881 withval="$with_dmalloc"
c7a2bf27
RR
1882
1883 if test "$withval" = yes; then
b12915c1 1884 ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
c7a2bf27 1885 else
b12915c1 1886 ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
c7a2bf27
RR
1887 fi
1888
1889else
1890
b12915c1 1891 LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
c7a2bf27
RR
1892 if test "x$LINE" != x ; then
1893 eval "DEFAULT_$LINE"
1894 else
1895 no_cache=1
1896 fi
1897
b12915c1 1898 ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
c7a2bf27
RR
1899
1900fi
1901
1902
b12915c1 1903 eval "$ac_cv_use_dmalloc"
c7a2bf27 1904 if test "$no_cache" != 1; then
b12915c1 1905 echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
c7a2bf27
RR
1906 fi
1907
b12915c1 1908 if test "$wxUSE_DMALLOC" = yes; then
c7a2bf27
RR
1909 echo "$ac_t""yes" 1>&6
1910 else
1911 echo "$ac_t""no" 1>&6
1912 fi
1913
1914
b12915c1 1915 echo $ac_n "checking "for --with-zlib"""... $ac_c" 1>&6
b4085ce6 1916echo "configure:1917: checking "for --with-zlib"" >&5
10f2d63a 1917 no_cache=0
b12915c1
VZ
1918 # Check whether --with-zlib or --without-zlib was given.
1919if test "${with_zlib+set}" = set; then
1920 withval="$with_zlib"
10f2d63a
VZ
1921
1922 if test "$withval" = yes; then
b12915c1 1923 ac_cv_use_zlib='wxUSE_ZLIB=yes'
422107f9 1924 elif test "$withval" = no; then
b12915c1 1925 ac_cv_use_zlib='wxUSE_ZLIB=no'
422107f9
VZ
1926 elif test "$withval" = sys; then
1927 ac_cv_use_zlib='wxUSE_ZLIB=sys'
1928 else
1929 { echo "configure: error: Invalid value for --with-zlib: should be yes, no or sys" 1>&2; exit 1; }
10f2d63a
VZ
1930 fi
1931
1932else
1933
b12915c1 1934 LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
10f2d63a
VZ
1935 if test "x$LINE" != x ; then
1936 eval "DEFAULT_$LINE"
1937 else
1938 no_cache=1
1939 fi
1940
b12915c1 1941 ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
10f2d63a
VZ
1942
1943fi
1944
1945
b12915c1 1946 eval "$ac_cv_use_zlib"
10f2d63a 1947 if test "$no_cache" != 1; then
b12915c1 1948 echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
1949 fi
1950
b12915c1 1951 if test "$wxUSE_ZLIB" = yes; then
10f2d63a 1952 echo "$ac_t""yes" 1>&6
422107f9 1953 elif test "$wxUSE_ZLIB" = no; then
bdad4e7e 1954 echo "$ac_t""no" 1>&6
422107f9
VZ
1955 elif test "$wxUSE_ZLIB" = sys; then
1956 echo "$ac_t""system version" 1>&6
1957 else
1958 { echo "configure: error: Invalid value for --with-zlib: should be yes, no or sys" 1>&2; exit 1; }
10f2d63a
VZ
1959 fi
1960
1961
1962 echo $ac_n "checking "for --with-odbc"""... $ac_c" 1>&6
b4085ce6 1963echo "configure:1964: checking "for --with-odbc"" >&5
10f2d63a
VZ
1964 no_cache=0
1965 # Check whether --with-odbc or --without-odbc was given.
1966if test "${with_odbc+set}" = set; then
1967 withval="$with_odbc"
1968
1969 if test "$withval" = yes; then
1970 ac_cv_use_odbc='wxUSE_ODBC=yes'
1971 else
1972 ac_cv_use_odbc='wxUSE_ODBC=no'
1973 fi
1974
1975else
1976
1977 LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
1978 if test "x$LINE" != x ; then
1979 eval "DEFAULT_$LINE"
1980 else
1981 no_cache=1
1982 fi
1983
1984 ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
1985
1986fi
1987
1988
1989 eval "$ac_cv_use_odbc"
1990 if test "$no_cache" != 1; then
1991 echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
1992 fi
1993
1994 if test "$wxUSE_ODBC" = yes; then
1995 echo "$ac_t""yes" 1>&6
1996 else
1997 echo "$ac_t""no" 1>&6
1998 fi
1999
2000
2001
2002
2003
2004 echo $ac_n "checking "for --enable-shared"""... $ac_c" 1>&6
b4085ce6 2005echo "configure:2006: checking "for --enable-shared"" >&5
10f2d63a
VZ
2006 no_cache=0
2007 # Check whether --enable-shared or --disable-shared was given.
2008if test "${enable_shared+set}" = set; then
2009 enableval="$enable_shared"
2010
2011 if test "$enableval" = yes; then
2012 ac_cv_use_shared='wxUSE_SHARED=yes'
2013 else
2014 ac_cv_use_shared='wxUSE_SHARED=no'
2015 fi
2016
2017else
2018
2019 LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
2020 if test "x$LINE" != x ; then
2021 eval "DEFAULT_$LINE"
2022 else
2023 no_cache=1
2024 fi
2025
2026 ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
2027
2028fi
2029
2030
2031 eval "$ac_cv_use_shared"
2032 if test "$no_cache" != 1; then
2033 echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
2034 fi
2035
2036 if test "$wxUSE_SHARED" = yes; then
2037 echo "$ac_t""yes" 1>&6
2038 else
2039 echo "$ac_t""no" 1>&6
2040 fi
2041
2042
00cf1208 2043 echo $ac_n "checking "for --enable-burnt_name"""... $ac_c" 1>&6
b4085ce6 2044echo "configure:2045: checking "for --enable-burnt_name"" >&5
00cf1208
RR
2045 no_cache=0
2046 # Check whether --enable-burnt_name or --disable-burnt_name was given.
2047if test "${enable_burnt_name+set}" = set; then
2048 enableval="$enable_burnt_name"
2049
2050 if test "$enableval" = yes; then
2051 ac_cv_use_burnt_name='wxUSE_BURNT_NAME=yes'
2052 else
2053 ac_cv_use_burnt_name='wxUSE_BURNT_NAME=no'
2054 fi
2055
2056else
2057
2058 LINE=`grep "wxUSE_BURNT_NAME" ${wx_arg_cache_file}`
2059 if test "x$LINE" != x ; then
2060 eval "DEFAULT_$LINE"
2061 else
2062 no_cache=1
2063 fi
2064
2065 ac_cv_use_burnt_name='wxUSE_BURNT_NAME='$DEFAULT_wxUSE_BURNT_NAME
2066
2067fi
2068
2069
2070 eval "$ac_cv_use_burnt_name"
2071 if test "$no_cache" != 1; then
2072 echo $ac_cv_use_burnt_name >> ${wx_arg_cache_file}.tmp
2073 fi
2074
2075 if test "$wxUSE_BURNT_NAME" = yes; then
2076 echo "$ac_t""yes" 1>&6
2077 else
2078 echo "$ac_t""no" 1>&6
2079 fi
2080
2081
10f2d63a 2082 echo $ac_n "checking "for --enable-optimise"""... $ac_c" 1>&6
b4085ce6 2083echo "configure:2084: checking "for --enable-optimise"" >&5
10f2d63a
VZ
2084 no_cache=0
2085 # Check whether --enable-optimise or --disable-optimise was given.
2086if test "${enable_optimise+set}" = set; then
2087 enableval="$enable_optimise"
2088
2089 if test "$enableval" = yes; then
2090 ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
2091 else
2092 ac_cv_use_optimise='wxUSE_OPTIMISE=no'
2093 fi
2094
2095else
2096
2097 LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
2098 if test "x$LINE" != x ; then
2099 eval "DEFAULT_$LINE"
2100 else
2101 no_cache=1
2102 fi
2103
2104 ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
2105
2106fi
2107
2108
2109 eval "$ac_cv_use_optimise"
2110 if test "$no_cache" != 1; then
2111 echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
2112 fi
2113
2114 if test "$wxUSE_OPTIMISE" = yes; then
2115 echo "$ac_t""yes" 1>&6
2116 else
2117 echo "$ac_t""no" 1>&6
2118 fi
2119
2120
2121 echo $ac_n "checking "for --enable-debug"""... $ac_c" 1>&6
b4085ce6 2122echo "configure:2123: checking "for --enable-debug"" >&5
10f2d63a
VZ
2123 no_cache=0
2124 # Check whether --enable-debug or --disable-debug was given.
2125if test "${enable_debug+set}" = set; then
2126 enableval="$enable_debug"
2127
2128 if test "$enableval" = yes; then
2129 ac_cv_use_debug='wxUSE_DEBUG=yes'
2130 else
2131 ac_cv_use_debug='wxUSE_DEBUG=no'
2132 fi
2133
2134else
2135
2136 LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
2137 if test "x$LINE" != x ; then
2138 eval "DEFAULT_$LINE"
2139 else
2140 no_cache=1
2141 fi
2142
2143 ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
2144
2145fi
2146
2147
2148 eval "$ac_cv_use_debug"
2149 if test "$no_cache" != 1; then
2150 echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
2151 fi
2152
2153 if test "$wxUSE_DEBUG" = yes; then
2154 echo "$ac_t""yes" 1>&6
2155 else
2156 echo "$ac_t""no" 1>&6
2157 fi
2158
2159
2160if test "$wxUSE_DEBUG" = "yes"; then
2161 DEFAULT_wxUSE_DEBUG_FLAG=yes
2162 DEFAULT_wxUSE_DEBUG_INFO=yes
2163elif test "$wxUSE_DEBUG" = "no"; then
2164 DEFAULT_wxUSE_DEBUG_FLAG=no
2165 DEFAULT_wxUSE_DEBUG_INFO=no
2166fi
2167
2168
2169 echo $ac_n "checking "for --enable-debug_flag"""... $ac_c" 1>&6
b4085ce6 2170echo "configure:2171: checking "for --enable-debug_flag"" >&5
10f2d63a
VZ
2171 no_cache=0
2172 # Check whether --enable-debug_flag or --disable-debug_flag was given.
2173if test "${enable_debug_flag+set}" = set; then
2174 enableval="$enable_debug_flag"
2175
2176 if test "$enableval" = yes; then
2177 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
2178 else
2179 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
2180 fi
2181
2182else
2183
2184 LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
2185 if test "x$LINE" != x ; then
2186 eval "DEFAULT_$LINE"
2187 else
2188 no_cache=1
2189 fi
2190
2191 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
2192
2193fi
2194
2195
2196 eval "$ac_cv_use_debug_flag"
2197 if test "$no_cache" != 1; then
2198 echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
2199 fi
2200
2201 if test "$wxUSE_DEBUG_FLAG" = yes; then
2202 echo "$ac_t""yes" 1>&6
2203 else
2204 echo "$ac_t""no" 1>&6
2205 fi
2206
2207
2208 echo $ac_n "checking "for --enable-debug_info"""... $ac_c" 1>&6
b4085ce6 2209echo "configure:2210: checking "for --enable-debug_info"" >&5
10f2d63a
VZ
2210 no_cache=0
2211 # Check whether --enable-debug_info or --disable-debug_info was given.
2212if test "${enable_debug_info+set}" = set; then
2213 enableval="$enable_debug_info"
2214
2215 if test "$enableval" = yes; then
2216 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
2217 else
2218 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
2219 fi
2220
2221else
2222
2223 LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
2224 if test "x$LINE" != x ; then
2225 eval "DEFAULT_$LINE"
2226 else
2227 no_cache=1
2228 fi
2229
2230 ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
2231
2232fi
2233
2234
2235 eval "$ac_cv_use_debug_info"
2236 if test "$no_cache" != 1; then
2237 echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
2238 fi
2239
2240 if test "$wxUSE_DEBUG_INFO" = yes; then
2241 echo "$ac_t""yes" 1>&6
2242 else
2243 echo "$ac_t""no" 1>&6
2244 fi
2245
2246
2247 echo $ac_n "checking "for --enable-debug_gdb"""... $ac_c" 1>&6
b4085ce6 2248echo "configure:2249: checking "for --enable-debug_gdb"" >&5
10f2d63a
VZ
2249 no_cache=0
2250 # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
2251if test "${enable_debug_gdb+set}" = set; then
2252 enableval="$enable_debug_gdb"
2253
2254 if test "$enableval" = yes; then
2255 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
2256 else
2257 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
2258 fi
2259
2260else
2261
2262 LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
2263 if test "x$LINE" != x ; then
2264 eval "DEFAULT_$LINE"
2265 else
2266 no_cache=1
2267 fi
2268
2269 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
2270
2271fi
2272
2273
2274 eval "$ac_cv_use_debug_gdb"
2275 if test "$no_cache" != 1; then
2276 echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
2277 fi
2278
2279 if test "$wxUSE_DEBUG_GDB" = yes; then
2280 echo "$ac_t""yes" 1>&6
2281 else
2282 echo "$ac_t""no" 1>&6
2283 fi
2284
2285
2286 echo $ac_n "checking "for --enable-debug_cntxt"""... $ac_c" 1>&6
b4085ce6 2287echo "configure:2288: checking "for --enable-debug_cntxt"" >&5
10f2d63a
VZ
2288 no_cache=0
2289 # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
2290if test "${enable_debug_cntxt+set}" = set; then
2291 enableval="$enable_debug_cntxt"
2292
2293 if test "$enableval" = yes; then
2294 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
2295 else
2296 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
2297 fi
2298
2299else
2300
2301 LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
2302 if test "x$LINE" != x ; then
2303 eval "DEFAULT_$LINE"
2304 else
2305 no_cache=1
2306 fi
2307
2308 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
2309
2310fi
2311
2312
2313 eval "$ac_cv_use_debug_cntxt"
2314 if test "$no_cache" != 1; then
2315 echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
2316 fi
2317
2318 if test "$wxUSE_DEBUG_CONTEXT" = yes; then
2319 echo "$ac_t""yes" 1>&6
2320 else
2321 echo "$ac_t""no" 1>&6
2322 fi
2323
2324
2325 echo $ac_n "checking "for --enable-mem_tracing"""... $ac_c" 1>&6
b4085ce6 2326echo "configure:2327: checking "for --enable-mem_tracing"" >&5
10f2d63a
VZ
2327 no_cache=0
2328 # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
2329if test "${enable_mem_tracing+set}" = set; then
2330 enableval="$enable_mem_tracing"
2331
2332 if test "$enableval" = yes; then
2333 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
2334 else
2335 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
2336 fi
2337
2338else
2339
2340 LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
2341 if test "x$LINE" != x ; then
2342 eval "DEFAULT_$LINE"
2343 else
2344 no_cache=1
2345 fi
2346
2347 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
2348
2349fi
2350
2351
2352 eval "$ac_cv_use_mem_tracing"
2353 if test "$no_cache" != 1; then
2354 echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
2355 fi
2356
2357 if test "$wxUSE_MEM_TRACING" = yes; then
2358 echo "$ac_t""yes" 1>&6
2359 else
2360 echo "$ac_t""no" 1>&6
2361 fi
2362
2363
2364 echo $ac_n "checking "for --enable-profile"""... $ac_c" 1>&6
b4085ce6 2365echo "configure:2366: checking "for --enable-profile"" >&5
10f2d63a
VZ
2366 no_cache=0
2367 # Check whether --enable-profile or --disable-profile was given.
2368if test "${enable_profile+set}" = set; then
2369 enableval="$enable_profile"
2370
2371 if test "$enableval" = yes; then
2372 ac_cv_use_profile='wxUSE_PROFILE=yes'
2373 else
2374 ac_cv_use_profile='wxUSE_PROFILE=no'
2375 fi
2376
2377else
2378
2379 LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
2380 if test "x$LINE" != x ; then
2381 eval "DEFAULT_$LINE"
2382 else
2383 no_cache=1
2384 fi
2385
2386 ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
2387
2388fi
2389
2390
2391 eval "$ac_cv_use_profile"
2392 if test "$no_cache" != 1; then
2393 echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
2394 fi
2395
2396 if test "$wxUSE_PROFILE" = yes; then
2397 echo "$ac_t""yes" 1>&6
2398 else
2399 echo "$ac_t""no" 1>&6
2400 fi
2401
2402
2403 echo $ac_n "checking "for --enable-no_rtti"""... $ac_c" 1>&6
b4085ce6 2404echo "configure:2405: checking "for --enable-no_rtti"" >&5
10f2d63a
VZ
2405 no_cache=0
2406 # Check whether --enable-no_rtti or --disable-no_rtti was given.
2407if test "${enable_no_rtti+set}" = set; then
2408 enableval="$enable_no_rtti"
2409
2410 if test "$enableval" = yes; then
2411 ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
2412 else
2413 ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
2414 fi
2415
2416else
2417
2418 LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
2419 if test "x$LINE" != x ; then
2420 eval "DEFAULT_$LINE"
2421 else
2422 no_cache=1
2423 fi
2424
2425 ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
2426
2427fi
2428
2429
2430 eval "$ac_cv_use_no_rtti"
2431 if test "$no_cache" != 1; then
2432 echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
2433 fi
2434
2435 if test "$wxUSE_NO_RTTI" = yes; then
2436 echo "$ac_t""yes" 1>&6
2437 else
2438 echo "$ac_t""no" 1>&6
2439 fi
2440
2441
2442 echo $ac_n "checking "for --enable-no_exceptions"""... $ac_c" 1>&6
b4085ce6 2443echo "configure:2444: checking "for --enable-no_exceptions"" >&5
10f2d63a
VZ
2444 no_cache=0
2445 # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
2446if test "${enable_no_exceptions+set}" = set; then
2447 enableval="$enable_no_exceptions"
2448
2449 if test "$enableval" = yes; then
2450 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
2451 else
2452 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
2453 fi
2454
2455else
2456
2457 LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
2458 if test "x$LINE" != x ; then
2459 eval "DEFAULT_$LINE"
2460 else
2461 no_cache=1
2462 fi
2463
2464 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
2465
2466fi
2467
2468
2469 eval "$ac_cv_use_no_exceptions"
2470 if test "$no_cache" != 1; then
2471 echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
2472 fi
2473
2474 if test "$wxUSE_NO_EXCEPTIONS" = yes; then
2475 echo "$ac_t""yes" 1>&6
2476 else
2477 echo "$ac_t""no" 1>&6
2478 fi
2479
2480
2481 echo $ac_n "checking "for --enable-permissive"""... $ac_c" 1>&6
b4085ce6 2482echo "configure:2483: checking "for --enable-permissive"" >&5
10f2d63a
VZ
2483 no_cache=0
2484 # Check whether --enable-permissive or --disable-permissive was given.
2485if test "${enable_permissive+set}" = set; then
2486 enableval="$enable_permissive"
2487
2488 if test "$enableval" = yes; then
2489 ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
2490 else
2491 ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
2492 fi
2493
2494else
2495
2496 LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
2497 if test "x$LINE" != x ; then
2498 eval "DEFAULT_$LINE"
2499 else
2500 no_cache=1
2501 fi
2502
2503 ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
2504
2505fi
2506
2507
2508 eval "$ac_cv_use_permissive"
2509 if test "$no_cache" != 1; then
2510 echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
2511 fi
2512
2513 if test "$wxUSE_PERMISSIVE" = yes; then
2514 echo "$ac_t""yes" 1>&6
2515 else
2516 echo "$ac_t""no" 1>&6
2517 fi
2518
2519
2520 echo $ac_n "checking "for --enable-no_deps"""... $ac_c" 1>&6
b4085ce6 2521echo "configure:2522: checking "for --enable-no_deps"" >&5
10f2d63a
VZ
2522 no_cache=0
2523 # Check whether --enable-no_deps or --disable-no_deps was given.
2524if test "${enable_no_deps+set}" = set; then
2525 enableval="$enable_no_deps"
2526
2527 if test "$enableval" = yes; then
2528 ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
2529 else
2530 ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
2531 fi
2532
2533else
2534
2535 LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
2536 if test "x$LINE" != x ; then
2537 eval "DEFAULT_$LINE"
2538 else
2539 no_cache=1
2540 fi
2541
2542 ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
2543
2544fi
2545
2546
2547 eval "$ac_cv_use_no_deps"
2548 if test "$no_cache" != 1; then
2549 echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
2550 fi
2551
2552 if test "$wxUSE_NO_DEPS" = yes; then
2553 echo "$ac_t""yes" 1>&6
2554 else
2555 echo "$ac_t""no" 1>&6
2556 fi
2557
2558
2559
2560
2561 echo $ac_n "checking "for --enable-intl"""... $ac_c" 1>&6
b4085ce6 2562echo "configure:2563: checking "for --enable-intl"" >&5
10f2d63a
VZ
2563 no_cache=0
2564 # Check whether --enable-intl or --disable-intl was given.
2565if test "${enable_intl+set}" = set; then
2566 enableval="$enable_intl"
2567
2568 if test "$enableval" = yes; then
2569 ac_cv_use_intl='wxUSE_INTL=yes'
2570 else
2571 ac_cv_use_intl='wxUSE_INTL=no'
2572 fi
2573
2574else
2575
2576 LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
2577 if test "x$LINE" != x ; then
2578 eval "DEFAULT_$LINE"
2579 else
2580 no_cache=1
2581 fi
2582
2583 ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
2584
2585fi
2586
2587
2588 eval "$ac_cv_use_intl"
2589 if test "$no_cache" != 1; then
2590 echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
2591 fi
2592
2593 if test "$wxUSE_INTL" = yes; then
2594 echo "$ac_t""yes" 1>&6
2595 else
2596 echo "$ac_t""no" 1>&6
2597 fi
2598
2599
2600 echo $ac_n "checking "for --enable-config"""... $ac_c" 1>&6
b4085ce6 2601echo "configure:2602: checking "for --enable-config"" >&5
10f2d63a
VZ
2602 no_cache=0
2603 # Check whether --enable-config or --disable-config was given.
2604if test "${enable_config+set}" = set; then
2605 enableval="$enable_config"
2606
2607 if test "$enableval" = yes; then
2608 ac_cv_use_config='wxUSE_CONFIG=yes'
2609 else
2610 ac_cv_use_config='wxUSE_CONFIG=no'
2611 fi
2612
2613else
2614
2615 LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
2616 if test "x$LINE" != x ; then
2617 eval "DEFAULT_$LINE"
2618 else
2619 no_cache=1
2620 fi
2621
2622 ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
2623
2624fi
2625
2626
2627 eval "$ac_cv_use_config"
2628 if test "$no_cache" != 1; then
2629 echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
2630 fi
2631
2632 if test "$wxUSE_CONFIG" = yes; then
2633 echo "$ac_t""yes" 1>&6
2634 else
2635 echo "$ac_t""no" 1>&6
2636 fi
2637
2638
b12915c1 2639
10f2d63a 2640 echo $ac_n "checking "for --enable-sockets"""... $ac_c" 1>&6
b4085ce6 2641echo "configure:2642: checking "for --enable-sockets"" >&5
10f2d63a
VZ
2642 no_cache=0
2643 # Check whether --enable-sockets or --disable-sockets was given.
2644if test "${enable_sockets+set}" = set; then
2645 enableval="$enable_sockets"
2646
2647 if test "$enableval" = yes; then
2648 ac_cv_use_sockets='wxUSE_SOCKETS=yes'
2649 else
2650 ac_cv_use_sockets='wxUSE_SOCKETS=no'
2651 fi
2652
2653else
2654
2655 LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
2656 if test "x$LINE" != x ; then
2657 eval "DEFAULT_$LINE"
2658 else
2659 no_cache=1
2660 fi
2661
2662 ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
2663
2664fi
2665
2666
2667 eval "$ac_cv_use_sockets"
2668 if test "$no_cache" != 1; then
2669 echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
2670 fi
2671
2672 if test "$wxUSE_SOCKETS" = yes; then
2673 echo "$ac_t""yes" 1>&6
2674 else
2675 echo "$ac_t""no" 1>&6
2676 fi
2677
b12915c1 2678
10f2d63a 2679
eb4efbdc 2680 echo $ac_n "checking "for --enable-ipc"""... $ac_c" 1>&6
b4085ce6 2681echo "configure:2682: checking "for --enable-ipc"" >&5
10f2d63a 2682 no_cache=0
eb4efbdc
VZ
2683 # Check whether --enable-ipc or --disable-ipc was given.
2684if test "${enable_ipc+set}" = set; then
2685 enableval="$enable_ipc"
10f2d63a
VZ
2686
2687 if test "$enableval" = yes; then
eb4efbdc 2688 ac_cv_use_ipc='wxUSE_IPC=yes'
10f2d63a 2689 else
eb4efbdc 2690 ac_cv_use_ipc='wxUSE_IPC=no'
10f2d63a
VZ
2691 fi
2692
2693else
2694
eb4efbdc 2695 LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
10f2d63a
VZ
2696 if test "x$LINE" != x ; then
2697 eval "DEFAULT_$LINE"
2698 else
2699 no_cache=1
2700 fi
2701
eb4efbdc 2702 ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
10f2d63a
VZ
2703
2704fi
2705
2706
eb4efbdc 2707 eval "$ac_cv_use_ipc"
10f2d63a 2708 if test "$no_cache" != 1; then
eb4efbdc 2709 echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2710 fi
2711
eb4efbdc 2712 if test "$wxUSE_IPC" = yes; then
10f2d63a
VZ
2713 echo "$ac_t""yes" 1>&6
2714 else
2715 echo "$ac_t""no" 1>&6
2716 fi
2717
2718
eb4efbdc
VZ
2719
2720 echo $ac_n "checking "for --enable-dialupman"""... $ac_c" 1>&6
b4085ce6 2721echo "configure:2722: checking "for --enable-dialupman"" >&5
10f2d63a 2722 no_cache=0
eb4efbdc
VZ
2723 # Check whether --enable-dialupman or --disable-dialupman was given.
2724if test "${enable_dialupman+set}" = set; then
2725 enableval="$enable_dialupman"
10f2d63a
VZ
2726
2727 if test "$enableval" = yes; then
eb4efbdc 2728 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
10f2d63a 2729 else
eb4efbdc 2730 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
10f2d63a
VZ
2731 fi
2732
2733else
2734
eb4efbdc 2735 LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
10f2d63a
VZ
2736 if test "x$LINE" != x ; then
2737 eval "DEFAULT_$LINE"
2738 else
2739 no_cache=1
2740 fi
2741
eb4efbdc 2742 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
10f2d63a
VZ
2743
2744fi
2745
2746
eb4efbdc 2747 eval "$ac_cv_use_dialupman"
10f2d63a 2748 if test "$no_cache" != 1; then
eb4efbdc 2749 echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2750 fi
2751
eb4efbdc 2752 if test "$wxUSE_DIALUP_MANAGER" = yes; then
10f2d63a
VZ
2753 echo "$ac_t""yes" 1>&6
2754 else
2755 echo "$ac_t""no" 1>&6
2756 fi
2757
2758
2759 echo $ac_n "checking "for --enable-apple_ieee"""... $ac_c" 1>&6
b4085ce6 2760echo "configure:2761: checking "for --enable-apple_ieee"" >&5
10f2d63a
VZ
2761 no_cache=0
2762 # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
2763if test "${enable_apple_ieee+set}" = set; then
2764 enableval="$enable_apple_ieee"
2765
2766 if test "$enableval" = yes; then
2767 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
2768 else
2769 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
2770 fi
2771
2772else
2773
2774 LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
2775 if test "x$LINE" != x ; then
2776 eval "DEFAULT_$LINE"
2777 else
2778 no_cache=1
2779 fi
2780
2781 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
2782
2783fi
2784
2785
2786 eval "$ac_cv_use_apple_ieee"
2787 if test "$no_cache" != 1; then
2788 echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
2789 fi
2790
2791 if test "$wxUSE_APPLE_IEEE" = yes; then
2792 echo "$ac_t""yes" 1>&6
2793 else
2794 echo "$ac_t""no" 1>&6
2795 fi
2796
2797
2798 echo $ac_n "checking "for --enable-timedate"""... $ac_c" 1>&6
b4085ce6 2799echo "configure:2800: checking "for --enable-timedate"" >&5
10f2d63a
VZ
2800 no_cache=0
2801 # Check whether --enable-timedate or --disable-timedate was given.
2802if test "${enable_timedate+set}" = set; then
2803 enableval="$enable_timedate"
2804
2805 if test "$enableval" = yes; then
2806 ac_cv_use_timedate='wxUSE_TIMEDATE=yes'
2807 else
2808 ac_cv_use_timedate='wxUSE_TIMEDATE=no'
2809 fi
2810
2811else
2812
2813 LINE=`grep "wxUSE_TIMEDATE" ${wx_arg_cache_file}`
2814 if test "x$LINE" != x ; then
2815 eval "DEFAULT_$LINE"
2816 else
2817 no_cache=1
2818 fi
2819
2820 ac_cv_use_timedate='wxUSE_TIMEDATE='$DEFAULT_wxUSE_TIMEDATE
2821
2822fi
2823
2824
2825 eval "$ac_cv_use_timedate"
2826 if test "$no_cache" != 1; then
2827 echo $ac_cv_use_timedate >> ${wx_arg_cache_file}.tmp
2828 fi
2829
2830 if test "$wxUSE_TIMEDATE" = yes; then
2831 echo "$ac_t""yes" 1>&6
2832 else
2833 echo "$ac_t""no" 1>&6
2834 fi
2835
2836
2837 echo $ac_n "checking "for --enable-wave"""... $ac_c" 1>&6
b4085ce6 2838echo "configure:2839: checking "for --enable-wave"" >&5
10f2d63a
VZ
2839 no_cache=0
2840 # Check whether --enable-wave or --disable-wave was given.
2841if test "${enable_wave+set}" = set; then
2842 enableval="$enable_wave"
2843
2844 if test "$enableval" = yes; then
2845 ac_cv_use_wave='wxUSE_WAVE=yes'
2846 else
2847 ac_cv_use_wave='wxUSE_WAVE=no'
2848 fi
2849
2850else
2851
2852 LINE=`grep "wxUSE_WAVE" ${wx_arg_cache_file}`
2853 if test "x$LINE" != x ; then
2854 eval "DEFAULT_$LINE"
2855 else
2856 no_cache=1
2857 fi
2858
2859 ac_cv_use_wave='wxUSE_WAVE='$DEFAULT_wxUSE_WAVE
2860
2861fi
2862
2863
2864 eval "$ac_cv_use_wave"
2865 if test "$no_cache" != 1; then
2866 echo $ac_cv_use_wave >> ${wx_arg_cache_file}.tmp
2867 fi
2868
2869 if test "$wxUSE_WAVE" = yes; then
2870 echo "$ac_t""yes" 1>&6
2871 else
2872 echo "$ac_t""no" 1>&6
2873 fi
2874
2875
2876 echo $ac_n "checking "for --enable-fraction"""... $ac_c" 1>&6
b4085ce6 2877echo "configure:2878: checking "for --enable-fraction"" >&5
10f2d63a
VZ
2878 no_cache=0
2879 # Check whether --enable-fraction or --disable-fraction was given.
2880if test "${enable_fraction+set}" = set; then
2881 enableval="$enable_fraction"
2882
2883 if test "$enableval" = yes; then
2884 ac_cv_use_fraction='wxUSE_FRACTION=yes'
2885 else
2886 ac_cv_use_fraction='wxUSE_FRACTION=no'
2887 fi
2888
2889else
2890
2891 LINE=`grep "wxUSE_FRACTION" ${wx_arg_cache_file}`
2892 if test "x$LINE" != x ; then
2893 eval "DEFAULT_$LINE"
2894 else
2895 no_cache=1
2896 fi
2897
2898 ac_cv_use_fraction='wxUSE_FRACTION='$DEFAULT_wxUSE_FRACTION
2899
2900fi
2901
2902
2903 eval "$ac_cv_use_fraction"
2904 if test "$no_cache" != 1; then
2905 echo $ac_cv_use_fraction >> ${wx_arg_cache_file}.tmp
2906 fi
2907
2908 if test "$wxUSE_FRACTION" = yes; then
2909 echo "$ac_t""yes" 1>&6
2910 else
2911 echo "$ac_t""no" 1>&6
2912 fi
2913
2914
2915 echo $ac_n "checking "for --enable-dynlib"""... $ac_c" 1>&6
b4085ce6 2916echo "configure:2917: checking "for --enable-dynlib"" >&5
10f2d63a
VZ
2917 no_cache=0
2918 # Check whether --enable-dynlib or --disable-dynlib was given.
2919if test "${enable_dynlib+set}" = set; then
2920 enableval="$enable_dynlib"
2921
2922 if test "$enableval" = yes; then
2923 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
2924 else
2925 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
2926 fi
2927
2928else
2929
2930 LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
2931 if test "x$LINE" != x ; then
2932 eval "DEFAULT_$LINE"
2933 else
2934 no_cache=1
2935 fi
2936
2937 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
2938
2939fi
2940
2941
2942 eval "$ac_cv_use_dynlib"
2943 if test "$no_cache" != 1; then
2944 echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
2945 fi
2946
2947 if test "$wxUSE_DYNLIB_CLASS" = yes; then
2948 echo "$ac_t""yes" 1>&6
2949 else
2950 echo "$ac_t""no" 1>&6
2951 fi
2952
2953
2954 echo $ac_n "checking "for --enable-longlong"""... $ac_c" 1>&6
b4085ce6 2955echo "configure:2956: checking "for --enable-longlong"" >&5
10f2d63a
VZ
2956 no_cache=0
2957 # Check whether --enable-longlong or --disable-longlong was given.
2958if test "${enable_longlong+set}" = set; then
2959 enableval="$enable_longlong"
2960
2961 if test "$enableval" = yes; then
2962 ac_cv_use_longlong='wxUSE_LONGLONG=yes'
2963 else
2964 ac_cv_use_longlong='wxUSE_LONGLONG=no'
2965 fi
2966
2967else
2968
2969 LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
2970 if test "x$LINE" != x ; then
2971 eval "DEFAULT_$LINE"
2972 else
2973 no_cache=1
2974 fi
2975
2976 ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
2977
2978fi
2979
2980
2981 eval "$ac_cv_use_longlong"
2982 if test "$no_cache" != 1; then
2983 echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
2984 fi
2985
2986 if test "$wxUSE_LONGLONG" = yes; then
2987 echo "$ac_t""yes" 1>&6
2988 else
2989 echo "$ac_t""no" 1>&6
2990 fi
2991
2992
e8f65ba6 2993 echo $ac_n "checking "for --enable-geometry"""... $ac_c" 1>&6
b4085ce6 2994echo "configure:2995: checking "for --enable-geometry"" >&5
e8f65ba6
RR
2995 no_cache=0
2996 # Check whether --enable-geometry or --disable-geometry was given.
2997if test "${enable_geometry+set}" = set; then
2998 enableval="$enable_geometry"
2999
3000 if test "$enableval" = yes; then
3001 ac_cv_use_geometry='wxUSE_GEOMETRY=yes'
3002 else
3003 ac_cv_use_geometry='wxUSE_GEOMETRY=no'
3004 fi
3005
3006else
3007
3008 LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}`
3009 if test "x$LINE" != x ; then
3010 eval "DEFAULT_$LINE"
3011 else
3012 no_cache=1
3013 fi
3014
3015 ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY
3016
3017fi
3018
3019
3020 eval "$ac_cv_use_geometry"
3021 if test "$no_cache" != 1; then
3022 echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp
3023 fi
3024
3025 if test "$wxUSE_GEOMETRY" = yes; then
3026 echo "$ac_t""yes" 1>&6
3027 else
3028 echo "$ac_t""no" 1>&6
3029 fi
3030
3031
10f2d63a 3032 echo $ac_n "checking "for --enable-log"""... $ac_c" 1>&6
b4085ce6 3033echo "configure:3034: checking "for --enable-log"" >&5
10f2d63a
VZ
3034 no_cache=0
3035 # Check whether --enable-log or --disable-log was given.
3036if test "${enable_log+set}" = set; then
3037 enableval="$enable_log"
3038
3039 if test "$enableval" = yes; then
3040 ac_cv_use_log='wxUSE_LOG=yes'
3041 else
3042 ac_cv_use_log='wxUSE_LOG=no'
3043 fi
3044
3045else
3046
3047 LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
3048 if test "x$LINE" != x ; then
3049 eval "DEFAULT_$LINE"
3050 else
3051 no_cache=1
3052 fi
3053
3054 ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
3055
3056fi
3057
3058
3059 eval "$ac_cv_use_log"
3060 if test "$no_cache" != 1; then
3061 echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
3062 fi
3063
3064 if test "$wxUSE_LOG" = yes; then
3065 echo "$ac_t""yes" 1>&6
3066 else
3067 echo "$ac_t""no" 1>&6
3068 fi
3069
3070
3071 echo $ac_n "checking "for --enable-streams"""... $ac_c" 1>&6
b4085ce6 3072echo "configure:3073: checking "for --enable-streams"" >&5
10f2d63a
VZ
3073 no_cache=0
3074 # Check whether --enable-streams or --disable-streams was given.
3075if test "${enable_streams+set}" = set; then
3076 enableval="$enable_streams"
3077
3078 if test "$enableval" = yes; then
3079 ac_cv_use_streams='wxUSE_STREAMS=yes'
3080 else
3081 ac_cv_use_streams='wxUSE_STREAMS=no'
3082 fi
3083
3084else
3085
3086 LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
3087 if test "x$LINE" != x ; then
3088 eval "DEFAULT_$LINE"
3089 else
3090 no_cache=1
3091 fi
3092
3093 ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
3094
3095fi
3096
3097
3098 eval "$ac_cv_use_streams"
3099 if test "$no_cache" != 1; then
3100 echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
3101 fi
3102
3103 if test "$wxUSE_STREAMS" = yes; then
3104 echo "$ac_t""yes" 1>&6
3105 else
3106 echo "$ac_t""no" 1>&6
3107 fi
3108
3109
3110 echo $ac_n "checking "for --enable-file"""... $ac_c" 1>&6
b4085ce6 3111echo "configure:3112: checking "for --enable-file"" >&5
10f2d63a
VZ
3112 no_cache=0
3113 # Check whether --enable-file or --disable-file was given.
3114if test "${enable_file+set}" = set; then
3115 enableval="$enable_file"
3116
3117 if test "$enableval" = yes; then
3118 ac_cv_use_file='wxUSE_FILE=yes'
3119 else
3120 ac_cv_use_file='wxUSE_FILE=no'
3121 fi
3122
3123else
3124
3125 LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
3126 if test "x$LINE" != x ; then
3127 eval "DEFAULT_$LINE"
3128 else
3129 no_cache=1
3130 fi
3131
3132 ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
3133
3134fi
3135
3136
3137 eval "$ac_cv_use_file"
3138 if test "$no_cache" != 1; then
3139 echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
3140 fi
3141
3142 if test "$wxUSE_FILE" = yes; then
3143 echo "$ac_t""yes" 1>&6
3144 else
3145 echo "$ac_t""no" 1>&6
3146 fi
3147
3148
3149 echo $ac_n "checking "for --enable-textfile"""... $ac_c" 1>&6
b4085ce6 3150echo "configure:3151: checking "for --enable-textfile"" >&5
10f2d63a
VZ
3151 no_cache=0
3152 # Check whether --enable-textfile or --disable-textfile was given.
3153if test "${enable_textfile+set}" = set; then
3154 enableval="$enable_textfile"
3155
3156 if test "$enableval" = yes; then
3157 ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
3158 else
3159 ac_cv_use_textfile='wxUSE_TEXTFILE=no'
3160 fi
3161
3162else
3163
3164 LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
3165 if test "x$LINE" != x ; then
3166 eval "DEFAULT_$LINE"
3167 else
3168 no_cache=1
3169 fi
3170
3171 ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
3172
3173fi
3174
3175
3176 eval "$ac_cv_use_textfile"
3177 if test "$no_cache" != 1; then
3178 echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
3179 fi
3180
3181 if test "$wxUSE_TEXTFILE" = yes; then
3182 echo "$ac_t""yes" 1>&6
3183 else
3184 echo "$ac_t""no" 1>&6
3185 fi
3186
3187
3188 echo $ac_n "checking "for --enable-unicode"""... $ac_c" 1>&6
b4085ce6 3189echo "configure:3190: checking "for --enable-unicode"" >&5
10f2d63a
VZ
3190 no_cache=0
3191 # Check whether --enable-unicode or --disable-unicode was given.
3192if test "${enable_unicode+set}" = set; then
3193 enableval="$enable_unicode"
3194
3195 if test "$enableval" = yes; then
3196 ac_cv_use_unicode='wxUSE_UNICODE=yes'
3197 else
3198 ac_cv_use_unicode='wxUSE_UNICODE=no'
3199 fi
3200
3201else
3202
3203 LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
3204 if test "x$LINE" != x ; then
3205 eval "DEFAULT_$LINE"
3206 else
3207 no_cache=1
3208 fi
3209
3210 ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
3211
3212fi
3213
3214
3215 eval "$ac_cv_use_unicode"
3216 if test "$no_cache" != 1; then
3217 echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
3218 fi
3219
3220 if test "$wxUSE_UNICODE" = yes; then
3221 echo "$ac_t""yes" 1>&6
3222 else
3223 echo "$ac_t""no" 1>&6
3224 fi
3225
3226
3227 echo $ac_n "checking "for --enable-wcsrtombs"""... $ac_c" 1>&6
b4085ce6 3228echo "configure:3229: checking "for --enable-wcsrtombs"" >&5
10f2d63a
VZ
3229 no_cache=0
3230 # Check whether --enable-wcsrtombs or --disable-wcsrtombs was given.
3231if test "${enable_wcsrtombs+set}" = set; then
3232 enableval="$enable_wcsrtombs"
3233
3234 if test "$enableval" = yes; then
3235 ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS=yes'
3236 else
3237 ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS=no'
3238 fi
3239
3240else
3241
3242 LINE=`grep "wxUSE_WCSRTOMBS" ${wx_arg_cache_file}`
3243 if test "x$LINE" != x ; then
3244 eval "DEFAULT_$LINE"
3245 else
3246 no_cache=1
3247 fi
3248
3249 ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS='$DEFAULT_wxUSE_WCSRTOMBS
3250
3251fi
3252
3253
3254 eval "$ac_cv_use_wcsrtombs"
3255 if test "$no_cache" != 1; then
3256 echo $ac_cv_use_wcsrtombs >> ${wx_arg_cache_file}.tmp
3257 fi
3258
3259 if test "$wxUSE_WCSRTOMBS" = yes; then
3260 echo "$ac_t""yes" 1>&6
3261 else
3262 echo "$ac_t""no" 1>&6
3263 fi
3264
3265
3266 echo $ac_n "checking "for --enable-wxprintfv"""... $ac_c" 1>&6
b4085ce6 3267echo "configure:3268: checking "for --enable-wxprintfv"" >&5
10f2d63a
VZ
3268 no_cache=0
3269 # Check whether --enable-wxprintfv or --disable-wxprintfv was given.
3270if test "${enable_wxprintfv+set}" = set; then
3271 enableval="$enable_wxprintfv"
3272
3273 if test "$enableval" = yes; then
3274 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes'
3275 else
3276 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no'
3277 fi
3278
3279else
3280
3281 LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}`
3282 if test "x$LINE" != x ; then
3283 eval "DEFAULT_$LINE"
3284 else
3285 no_cache=1
3286 fi
3287
3288 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF
3289
3290fi
3291
3292
3293 eval "$ac_cv_use_wxprintfv"
3294 if test "$no_cache" != 1; then
3295 echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp
3296 fi
3297
3298 if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then
3299 echo "$ac_t""yes" 1>&6
3300 else
3301 echo "$ac_t""no" 1>&6
3302 fi
3303
3304
10f2d63a 3305 echo $ac_n "checking "for --enable-std_iostreams"""... $ac_c" 1>&6
b4085ce6 3306echo "configure:3307: checking "for --enable-std_iostreams"" >&5
10f2d63a
VZ
3307 no_cache=0
3308 # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
3309if test "${enable_std_iostreams+set}" = set; then
3310 enableval="$enable_std_iostreams"
3311
3312 if test "$enableval" = yes; then
3313 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
3314 else
3315 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
3316 fi
3317
3318else
3319
3320 LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
3321 if test "x$LINE" != x ; then
3322 eval "DEFAULT_$LINE"
3323 else
3324 no_cache=1
3325 fi
3326
3327 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
3328
3329fi
3330
3331
3332 eval "$ac_cv_use_std_iostreams"
3333 if test "$no_cache" != 1; then
3334 echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
3335 fi
3336
3337 if test "$wxUSE_STD_IOSTREAM" = yes; then
3338 echo "$ac_t""yes" 1>&6
3339 else
3340 echo "$ac_t""no" 1>&6
3341 fi
3342
3343
24528b0c 3344 echo $ac_n "checking "for --enable-filesystem"""... $ac_c" 1>&6
b4085ce6 3345echo "configure:3346: checking "for --enable-filesystem"" >&5
24528b0c
VS
3346 no_cache=0
3347 # Check whether --enable-filesystem or --disable-filesystem was given.
3348if test "${enable_filesystem+set}" = set; then
3349 enableval="$enable_filesystem"
3350
3351 if test "$enableval" = yes; then
3352 ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
3353 else
3354 ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
3355 fi
3356
3357else
3358
3359 LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}`
3360 if test "x$LINE" != x ; then
3361 eval "DEFAULT_$LINE"
3362 else
3363 no_cache=1
3364 fi
3365
3366 ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
3367
3368fi
3369
3370
3371 eval "$ac_cv_use_filesystem"
3372 if test "$no_cache" != 1; then
3373 echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
3374 fi
3375
3376 if test "$wxUSE_FILESYSTEM" = yes; then
3377 echo "$ac_t""yes" 1>&6
3378 else
3379 echo "$ac_t""no" 1>&6
3380 fi
3381
3382
10f2d63a 3383 echo $ac_n "checking "for --enable-fs_inet"""... $ac_c" 1>&6
b4085ce6 3384echo "configure:3385: checking "for --enable-fs_inet"" >&5
10f2d63a
VZ
3385 no_cache=0
3386 # Check whether --enable-fs_inet or --disable-fs_inet was given.
3387if test "${enable_fs_inet+set}" = set; then
3388 enableval="$enable_fs_inet"
3389
3390 if test "$enableval" = yes; then
3391 ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
3392 else
3393 ac_cv_use_fs_inet='wxUSE_FS_INET=no'
3394 fi
3395
3396else
3397
3398 LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
3399 if test "x$LINE" != x ; then
3400 eval "DEFAULT_$LINE"
3401 else
3402 no_cache=1
3403 fi
3404
3405 ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
3406
3407fi
3408
3409
3410 eval "$ac_cv_use_fs_inet"
3411 if test "$no_cache" != 1; then
3412 echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
3413 fi
3414
3415 if test "$wxUSE_FS_INET" = yes; then
3416 echo "$ac_t""yes" 1>&6
3417 else
3418 echo "$ac_t""no" 1>&6
3419 fi
3420
3421
3422 echo $ac_n "checking "for --enable-fs_zip"""... $ac_c" 1>&6
b4085ce6 3423echo "configure:3424: checking "for --enable-fs_zip"" >&5
10f2d63a
VZ
3424 no_cache=0
3425 # Check whether --enable-fs_zip or --disable-fs_zip was given.
3426if test "${enable_fs_zip+set}" = set; then
3427 enableval="$enable_fs_zip"
3428
3429 if test "$enableval" = yes; then
3430 ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
3431 else
3432 ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
3433 fi
3434
3435else
3436
3437 LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
3438 if test "x$LINE" != x ; then
3439 eval "DEFAULT_$LINE"
3440 else
3441 no_cache=1
3442 fi
3443
3444 ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
3445
3446fi
3447
3448
3449 eval "$ac_cv_use_fs_zip"
3450 if test "$no_cache" != 1; then
3451 echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
3452 fi
3453
3454 if test "$wxUSE_FS_ZIP" = yes; then
3455 echo "$ac_t""yes" 1>&6
3456 else
3457 echo "$ac_t""no" 1>&6
3458 fi
3459
3460
3461 echo $ac_n "checking "for --enable-zipstream"""... $ac_c" 1>&6
b4085ce6 3462echo "configure:3463: checking "for --enable-zipstream"" >&5
10f2d63a
VZ
3463 no_cache=0
3464 # Check whether --enable-zipstream or --disable-zipstream was given.
3465if test "${enable_zipstream+set}" = set; then
3466 enableval="$enable_zipstream"
3467
3468 if test "$enableval" = yes; then
3469 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
3470 else
3471 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
3472 fi
3473
3474else
3475
3476 LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
3477 if test "x$LINE" != x ; then
3478 eval "DEFAULT_$LINE"
3479 else
3480 no_cache=1
3481 fi
3482
3483 ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
3484
3485fi
3486
3487
3488 eval "$ac_cv_use_zipstream"
3489 if test "$no_cache" != 1; then
3490 echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
3491 fi
3492
3493 if test "$wxUSE_ZIPSTREAM" = yes; then
3494 echo "$ac_t""yes" 1>&6
3495 else
3496 echo "$ac_t""no" 1>&6
3497 fi
3498
3499
3500
eb4efbdc 3501 echo $ac_n "checking "for --enable-catch_segvs"""... $ac_c" 1>&6
b4085ce6 3502echo "configure:3503: checking "for --enable-catch_segvs"" >&5
eb4efbdc
VZ
3503 no_cache=0
3504 # Check whether --enable-catch_segvs or --disable-catch_segvs was given.
3505if test "${enable_catch_segvs+set}" = set; then
3506 enableval="$enable_catch_segvs"
3507
3508 if test "$enableval" = yes; then
3509 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
3510 else
3511 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
3512 fi
3513
3514else
3515
3516 LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}`
3517 if test "x$LINE" != x ; then
3518 eval "DEFAULT_$LINE"
3519 else
3520 no_cache=1
3521 fi
3522
3523 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION
3524
3525fi
3526
3527
3528 eval "$ac_cv_use_catch_segvs"
3529 if test "$no_cache" != 1; then
3530 echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp
3531 fi
3532
3533 if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then
3534 echo "$ac_t""yes" 1>&6
3535 else
3536 echo "$ac_t""no" 1>&6
3537 fi
3538
3539
3540
10f2d63a
VZ
3541
3542 echo $ac_n "checking "for --enable-threads"""... $ac_c" 1>&6
b4085ce6 3543echo "configure:3544: checking "for --enable-threads"" >&5
10f2d63a
VZ
3544 no_cache=0
3545 # Check whether --enable-threads or --disable-threads was given.
3546if test "${enable_threads+set}" = set; then
3547 enableval="$enable_threads"
3548
3549 if test "$enableval" = yes; then
3550 ac_cv_use_threads='wxUSE_THREADS=yes'
3551 else
3552 ac_cv_use_threads='wxUSE_THREADS=no'
3553 fi
3554
3555else
3556
3557 LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
3558 if test "x$LINE" != x ; then
3559 eval "DEFAULT_$LINE"
3560 else
3561 no_cache=1
3562 fi
3563
3564 ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
3565
3566fi
3567
3568
3569 eval "$ac_cv_use_threads"
3570 if test "$no_cache" != 1; then
3571 echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
3572 fi
3573
3574 if test "$wxUSE_THREADS" = yes; then
3575 echo "$ac_t""yes" 1>&6
3576 else
3577 echo "$ac_t""no" 1>&6
3578 fi
3579
3580
3581 echo $ac_n "checking "for --enable-serial"""... $ac_c" 1>&6
b4085ce6 3582echo "configure:3583: checking "for --enable-serial"" >&5
10f2d63a
VZ
3583 no_cache=0
3584 # Check whether --enable-serial or --disable-serial was given.
3585if test "${enable_serial+set}" = set; then
3586 enableval="$enable_serial"
3587
3588 if test "$enableval" = yes; then
3589 ac_cv_use_serial='wxUSE_SERIAL=yes'
3590 else
3591 ac_cv_use_serial='wxUSE_SERIAL=no'
3592 fi
3593
3594else
3595
3596 LINE=`grep "wxUSE_SERIAL" ${wx_arg_cache_file}`
3597 if test "x$LINE" != x ; then
3598 eval "DEFAULT_$LINE"
3599 else
3600 no_cache=1
3601 fi
3602
3603 ac_cv_use_serial='wxUSE_SERIAL='$DEFAULT_wxUSE_SERIAL
3604
3605fi
3606
3607
3608 eval "$ac_cv_use_serial"
3609 if test "$no_cache" != 1; then
3610 echo $ac_cv_use_serial >> ${wx_arg_cache_file}.tmp
3611 fi
3612
3613 if test "$wxUSE_SERIAL" = yes; then
3614 echo "$ac_t""yes" 1>&6
3615 else
3616 echo "$ac_t""no" 1>&6
3617 fi
3618
3619
b12915c1
VZ
3620if test "$wxUSE_GUI" = "yes"; then
3621
10f2d63a
VZ
3622
3623
3624 echo $ac_n "checking "for --enable-docview"""... $ac_c" 1>&6
b4085ce6 3625echo "configure:3626: checking "for --enable-docview"" >&5
10f2d63a
VZ
3626 no_cache=0
3627 # Check whether --enable-docview or --disable-docview was given.
3628if test "${enable_docview+set}" = set; then
3629 enableval="$enable_docview"
3630
3631 if test "$enableval" = yes; then
3632 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
3633 else
3634 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
3635 fi
3636
3637else
3638
3639 LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
3640 if test "x$LINE" != x ; then
3641 eval "DEFAULT_$LINE"
3642 else
3643 no_cache=1
3644 fi
3645
3646 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
3647
3648fi
3649
3650
3651 eval "$ac_cv_use_docview"
3652 if test "$no_cache" != 1; then
3653 echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
3654 fi
3655
3656 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
3657 echo "$ac_t""yes" 1>&6
3658 else
3659 echo "$ac_t""no" 1>&6
3660 fi
3661
3662
3663 echo $ac_n "checking "for --enable-help"""... $ac_c" 1>&6
b4085ce6 3664echo "configure:3665: checking "for --enable-help"" >&5
10f2d63a
VZ
3665 no_cache=0
3666 # Check whether --enable-help or --disable-help was given.
3667if test "${enable_help+set}" = set; then
3668 enableval="$enable_help"
3669
3670 if test "$enableval" = yes; then
3671 ac_cv_use_help='wxUSE_HELP=yes'
3672 else
3673 ac_cv_use_help='wxUSE_HELP=no'
3674 fi
3675
3676else
3677
3678 LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
3679 if test "x$LINE" != x ; then
3680 eval "DEFAULT_$LINE"
3681 else
3682 no_cache=1
3683 fi
3684
3685 ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
3686
3687fi
3688
3689
3690 eval "$ac_cv_use_help"
3691 if test "$no_cache" != 1; then
3692 echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
3693 fi
3694
3695 if test "$wxUSE_HELP" = yes; then
3696 echo "$ac_t""yes" 1>&6
3697 else
3698 echo "$ac_t""no" 1>&6
3699 fi
3700
3701
3702 echo $ac_n "checking "for --enable-constraints"""... $ac_c" 1>&6
b4085ce6 3703echo "configure:3704: checking "for --enable-constraints"" >&5
10f2d63a
VZ
3704 no_cache=0
3705 # Check whether --enable-constraints or --disable-constraints was given.
3706if test "${enable_constraints+set}" = set; then
3707 enableval="$enable_constraints"
3708
3709 if test "$enableval" = yes; then
3710 ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
3711 else
3712 ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
3713 fi
3714
3715else
3716
3717 LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
3718 if test "x$LINE" != x ; then
3719 eval "DEFAULT_$LINE"
3720 else
3721 no_cache=1
3722 fi
3723
3724 ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
3725
3726fi
3727
3728
3729 eval "$ac_cv_use_constraints"
3730 if test "$no_cache" != 1; then
3731 echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
3732 fi
3733
3734 if test "$wxUSE_CONSTRAINTS" = yes; then
3735 echo "$ac_t""yes" 1>&6
3736 else
3737 echo "$ac_t""no" 1>&6
3738 fi
3739
3740
3741 echo $ac_n "checking "for --enable-printarch"""... $ac_c" 1>&6
b4085ce6 3742echo "configure:3743: checking "for --enable-printarch"" >&5
10f2d63a
VZ
3743 no_cache=0
3744 # Check whether --enable-printarch or --disable-printarch was given.
3745if test "${enable_printarch+set}" = set; then
3746 enableval="$enable_printarch"
3747
3748 if test "$enableval" = yes; then
3749 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
3750 else
3751 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
3752 fi
3753
3754else
3755
3756 LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
3757 if test "x$LINE" != x ; then
3758 eval "DEFAULT_$LINE"
3759 else
3760 no_cache=1
3761 fi
3762
3763 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
3764
3765fi
3766
3767
3768 eval "$ac_cv_use_printarch"
3769 if test "$no_cache" != 1; then
3770 echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
3771 fi
3772
3773 if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
3774 echo "$ac_t""yes" 1>&6
3775 else
3776 echo "$ac_t""no" 1>&6
3777 fi
3778
3779
3780 echo $ac_n "checking "for --enable-mdi"""... $ac_c" 1>&6
b4085ce6 3781echo "configure:3782: checking "for --enable-mdi"" >&5
10f2d63a
VZ
3782 no_cache=0
3783 # Check whether --enable-mdi or --disable-mdi was given.
3784if test "${enable_mdi+set}" = set; then
3785 enableval="$enable_mdi"
3786
3787 if test "$enableval" = yes; then
3788 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=yes'
3789 else
3790 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=no'
3791 fi
3792
3793else
3794
3795 LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
3796 if test "x$LINE" != x ; then
3797 eval "DEFAULT_$LINE"
3798 else
3799 no_cache=1
3800 fi
3801
3802 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
3803
3804fi
3805
3806
3807 eval "$ac_cv_use_mdi"
3808 if test "$no_cache" != 1; then
3809 echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
3810 fi
3811
3812 if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
3813 echo "$ac_t""yes" 1>&6
3814 else
3815 echo "$ac_t""no" 1>&6
3816 fi
3817
3818
3819
3820 echo $ac_n "checking "for --enable-postscript"""... $ac_c" 1>&6
b4085ce6 3821echo "configure:3822: checking "for --enable-postscript"" >&5
10f2d63a
VZ
3822 no_cache=0
3823 # Check whether --enable-postscript or --disable-postscript was given.
3824if test "${enable_postscript+set}" = set; then
3825 enableval="$enable_postscript"
3826
3827 if test "$enableval" = yes; then
3828 ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
3829 else
3830 ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
3831 fi
3832
3833else
3834
3835 LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
3836 if test "x$LINE" != x ; then
3837 eval "DEFAULT_$LINE"
3838 else
3839 no_cache=1
3840 fi
3841
3842 ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
3843
3844fi
3845
3846
3847 eval "$ac_cv_use_postscript"
3848 if test "$no_cache" != 1; then
3849 echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
3850 fi
3851
3852 if test "$wxUSE_POSTSCRIPT" = yes; then
3853 echo "$ac_t""yes" 1>&6
3854 else
3855 echo "$ac_t""no" 1>&6
3856 fi
3857
3858
3859
3860
3861 echo $ac_n "checking "for --enable-prologio"""... $ac_c" 1>&6
b4085ce6 3862echo "configure:3863: checking "for --enable-prologio"" >&5
10f2d63a
VZ
3863 no_cache=0
3864 # Check whether --enable-prologio or --disable-prologio was given.
3865if test "${enable_prologio+set}" = set; then
3866 enableval="$enable_prologio"
3867
3868 if test "$enableval" = yes; then
3869 ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
3870 else
3871 ac_cv_use_prologio='wxUSE_PROLOGIO=no'
3872 fi
3873
3874else
3875
3876 LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
3877 if test "x$LINE" != x ; then
3878 eval "DEFAULT_$LINE"
3879 else
3880 no_cache=1
3881 fi
3882
3883 ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
3884
3885fi
3886
3887
3888 eval "$ac_cv_use_prologio"
3889 if test "$no_cache" != 1; then
3890 echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
3891 fi
3892
3893 if test "$wxUSE_PROLOGIO" = yes; then
3894 echo "$ac_t""yes" 1>&6
3895 else
3896 echo "$ac_t""no" 1>&6
3897 fi
3898
3899
3900 echo $ac_n "checking "for --enable-resources"""... $ac_c" 1>&6
b4085ce6 3901echo "configure:3902: checking "for --enable-resources"" >&5
10f2d63a
VZ
3902 no_cache=0
3903 # Check whether --enable-resources or --disable-resources was given.
3904if test "${enable_resources+set}" = set; then
3905 enableval="$enable_resources"
3906
3907 if test "$enableval" = yes; then
3908 ac_cv_use_resources='wxUSE_RESOURCES=yes'
3909 else
3910 ac_cv_use_resources='wxUSE_RESOURCES=no'
3911 fi
3912
3913else
3914
3915 LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
3916 if test "x$LINE" != x ; then
3917 eval "DEFAULT_$LINE"
3918 else
3919 no_cache=1
3920 fi
3921
3922 ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
3923
3924fi
3925
3926
3927 eval "$ac_cv_use_resources"
3928 if test "$no_cache" != 1; then
3929 echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
3930 fi
3931
3932 if test "$wxUSE_RESOURCES" = yes; then
3933 echo "$ac_t""yes" 1>&6
3934 else
3935 echo "$ac_t""no" 1>&6
3936 fi
3937
3938
3939
3940 echo $ac_n "checking "for --enable-xresources"""... $ac_c" 1>&6
b4085ce6 3941echo "configure:3942: checking "for --enable-xresources"" >&5
10f2d63a
VZ
3942 no_cache=0
3943 # Check whether --enable-xresources or --disable-xresources was given.
3944if test "${enable_xresources+set}" = set; then
3945 enableval="$enable_xresources"
3946
3947 if test "$enableval" = yes; then
3948 ac_cv_use_xresources='wxUSE_X_RESOURCES=yes'
3949 else
3950 ac_cv_use_xresources='wxUSE_X_RESOURCES=no'
3951 fi
3952
3953else
3954
3955 LINE=`grep "wxUSE_X_RESOURCES" ${wx_arg_cache_file}`
3956 if test "x$LINE" != x ; then
3957 eval "DEFAULT_$LINE"
3958 else
3959 no_cache=1
3960 fi
3961
3962 ac_cv_use_xresources='wxUSE_X_RESOURCES='$DEFAULT_wxUSE_X_RESOURCES
3963
3964fi
3965
3966
3967 eval "$ac_cv_use_xresources"
3968 if test "$no_cache" != 1; then
3969 echo $ac_cv_use_xresources >> ${wx_arg_cache_file}.tmp
3970 fi
3971
3972 if test "$wxUSE_X_RESOURCES" = yes; then
3973 echo "$ac_t""yes" 1>&6
3974 else
3975 echo "$ac_t""no" 1>&6
3976 fi
3977
3978
3979
3980
3981 echo $ac_n "checking "for --enable-clipboard"""... $ac_c" 1>&6
b4085ce6 3982echo "configure:3983: checking "for --enable-clipboard"" >&5
10f2d63a
VZ
3983 no_cache=0
3984 # Check whether --enable-clipboard or --disable-clipboard was given.
3985if test "${enable_clipboard+set}" = set; then
3986 enableval="$enable_clipboard"
3987
3988 if test "$enableval" = yes; then
3989 ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
3990 else
3991 ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
3992 fi
3993
3994else
3995
3996 LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
3997 if test "x$LINE" != x ; then
3998 eval "DEFAULT_$LINE"
3999 else
4000 no_cache=1
4001 fi
4002
4003 ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
4004
4005fi
4006
4007
4008 eval "$ac_cv_use_clipboard"
4009 if test "$no_cache" != 1; then
4010 echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
4011 fi
4012
4013 if test "$wxUSE_CLIPBOARD" = yes; then
4014 echo "$ac_t""yes" 1>&6
4015 else
4016 echo "$ac_t""no" 1>&6
4017 fi
4018
4019
4020 echo $ac_n "checking "for --enable-dnd"""... $ac_c" 1>&6
b4085ce6 4021echo "configure:4022: checking "for --enable-dnd"" >&5
10f2d63a
VZ
4022 no_cache=0
4023 # Check whether --enable-dnd or --disable-dnd was given.
4024if test "${enable_dnd+set}" = set; then
4025 enableval="$enable_dnd"
4026
4027 if test "$enableval" = yes; then
4028 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
4029 else
4030 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
4031 fi
4032
4033else
4034
4035 LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
4036 if test "x$LINE" != x ; then
4037 eval "DEFAULT_$LINE"
4038 else
4039 no_cache=1
4040 fi
4041
4042 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
4043
4044fi
4045
4046
4047 eval "$ac_cv_use_dnd"
4048 if test "$no_cache" != 1; then
4049 echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
4050 fi
4051
4052 if test "$wxUSE_DRAG_AND_DROP" = yes; then
4053 echo "$ac_t""yes" 1>&6
4054 else
4055 echo "$ac_t""no" 1>&6
4056 fi
4057
4058
4059
4060 echo $ac_n "checking "for --enable-wxtree"""... $ac_c" 1>&6
b4085ce6 4061echo "configure:4062: checking "for --enable-wxtree"" >&5
10f2d63a
VZ
4062 no_cache=0
4063 # Check whether --enable-wxtree or --disable-wxtree was given.
4064if test "${enable_wxtree+set}" = set; then
4065 enableval="$enable_wxtree"
4066
4067 if test "$enableval" = yes; then
4068 ac_cv_use_wxtree='wxUSE_WXTREE=yes'
4069 else
4070 ac_cv_use_wxtree='wxUSE_WXTREE=no'
4071 fi
4072
4073else
4074
4075 LINE=`grep "wxUSE_WXTREE" ${wx_arg_cache_file}`
4076 if test "x$LINE" != x ; then
4077 eval "DEFAULT_$LINE"
4078 else
4079 no_cache=1
4080 fi
4081
4082 ac_cv_use_wxtree='wxUSE_WXTREE='$DEFAULT_wxUSE_WXTREE
4083
4084fi
4085
4086
4087 eval "$ac_cv_use_wxtree"
4088 if test "$no_cache" != 1; then
4089 echo $ac_cv_use_wxtree >> ${wx_arg_cache_file}.tmp
4090 fi
4091
4092 if test "$wxUSE_WXTREE" = yes; then
4093 echo "$ac_t""yes" 1>&6
4094 else
4095 echo "$ac_t""no" 1>&6
4096 fi
4097
4098
4099
4100
4101 echo $ac_n "checking "for --enable-controls"""... $ac_c" 1>&6
b4085ce6 4102echo "configure:4103: checking "for --enable-controls"" >&5
10f2d63a
VZ
4103 no_cache=0
4104 # Check whether --enable-controls or --disable-controls was given.
4105if test "${enable_controls+set}" = set; then
4106 enableval="$enable_controls"
4107
4108 if test "$enableval" = yes; then
4109 ac_cv_use_controls='wxUSE_CONTROLS=yes'
4110 else
4111 ac_cv_use_controls='wxUSE_CONTROLS=no'
4112 fi
4113
4114else
4115
4116 LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
4117 if test "x$LINE" != x ; then
4118 eval "DEFAULT_$LINE"
4119 else
4120 no_cache=1
4121 fi
4122
4123 ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
4124
4125fi
4126
4127
4128 eval "$ac_cv_use_controls"
4129 if test "$no_cache" != 1; then
4130 echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
4131 fi
4132
4133 if test "$wxUSE_CONTROLS" = yes; then
4134 echo "$ac_t""yes" 1>&6
4135 else
4136 echo "$ac_t""no" 1>&6
4137 fi
4138
4139
4140if test "$wxUSE_CONTROLS" = "yes"; then
4141 DEFAULT_wxUSE_ACCEL=yes
4142 DEFAULT_wxUSE_CARET=yes
4143 DEFAULT_wxUSE_COMBOBOX=yes
4144 DEFAULT_wxUSE_BMPBUTTON=yes
4145 DEFAULT_wxUSE_CHECKBOX=yes
4146 DEFAULT_wxUSE_CHECKLISTBOX=yes
4147 DEFAULT_wxUSE_CHOICE=yes
4148 DEFAULT_wxUSE_GAUGE=yes
4149 DEFAULT_wxUSE_GRID=yes
cc977e5f 4150 DEFAULT_wxUSE_NEW_GRID=yes
10f2d63a
VZ
4151 DEFAULT_wxUSE_IMAGLIST=yes
4152 DEFAULT_wxUSE_LISTBOX=yes
4153 DEFAULT_wxUSE_LISTCTRL=yes
4154 DEFAULT_wxUSE_NOTEBOOK=yes
4155 DEFAULT_wxUSE_RADIOBOX=yes
4156 DEFAULT_wxUSE_RADIOBTN=yes
4157 DEFAULT_wxUSE_SASH=yes
4158 DEFAULT_wxUSE_SCROLLBAR=yes
4159 DEFAULT_wxUSE_SLIDER=yes
4160 DEFAULT_wxUSE_SPINBTN=yes
56cfaa52 4161 DEFAULT_wxUSE_SPINCTRL=yes
10f2d63a
VZ
4162 DEFAULT_wxUSE_SPLITTER=yes
4163 DEFAULT_wxUSE_STATBMP=yes
4164 DEFAULT_wxUSE_STATBOX=yes
4165 DEFAULT_wxUSE_STATLINE=yes
4166 DEFAULT_wxUSE_STATUSBAR=yes
4167 DEFAULT_wxUSE_TAB_DIALOG=yes
4168 DEFAULT_wxUSE_TOOLBAR=yes
360d6699
VZ
4169 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
4170 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
10f2d63a
VZ
4171 DEFAULT_wxUSE_TOOLTIPS=yes
4172 DEFAULT_wxUSE_TREECTRL=yes
4173elif test "$wxUSE_CONTROLS" = "no"; then
4174 DEFAULT_wxUSE_ACCEL=no
4175 DEFAULT_wxUSE_CARET=no
4176 DEFAULT_wxUSE_COMBOBOX=no
4177 DEFAULT_wxUSE_BMPBUTTON=no
4178 DEFAULT_wxUSE_CHECKBOX=no
4179 DEFAULT_wxUSE_CHECKLISTBOX=no
4180 DEFAULT_wxUSE_CHOICE=no
4181 DEFAULT_wxUSE_GAUGE=no
4182 DEFAULT_wxUSE_GRID=no
4183 DEFAULT_wxUSE_NEW_GRID=no
4184 DEFAULT_wxUSE_IMAGLIST=no
4185 DEFAULT_wxUSE_LISTBOX=no
4186 DEFAULT_wxUSE_LISTCTRL=no
4187 DEFAULT_wxUSE_NOTEBOOK=no
4188 DEFAULT_wxUSE_RADIOBOX=no
4189 DEFAULT_wxUSE_RADIOBTN=no
4190 DEFAULT_wxUSE_SASH=no
4191 DEFAULT_wxUSE_SCROLLBAR=no
4192 DEFAULT_wxUSE_SLIDER=no
4193 DEFAULT_wxUSE_SPINBTN=no
56cfaa52 4194 DEFAULT_wxUSE_SPINCTRL=no
10f2d63a
VZ
4195 DEFAULT_wxUSE_SPLITTER=no
4196 DEFAULT_wxUSE_STATBMP=no
4197 DEFAULT_wxUSE_STATBOX=no
4198 DEFAULT_wxUSE_STATLINE=no
4199 DEFAULT_wxUSE_STATUSBAR=no
4200 DEFAULT_wxUSE_TAB_DIALOG=no
4201 DEFAULT_wxUSE_TOOLBAR=no
360d6699
VZ
4202 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
4203 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
10f2d63a
VZ
4204 DEFAULT_wxUSE_TOOLTIPS=no
4205 DEFAULT_wxUSE_TREECTRL=no
4206fi
4207
4208
4209 echo $ac_n "checking "for --enable-accel"""... $ac_c" 1>&6
b4085ce6 4210echo "configure:4211: checking "for --enable-accel"" >&5
10f2d63a
VZ
4211 no_cache=0
4212 # Check whether --enable-accel or --disable-accel was given.
4213if test "${enable_accel+set}" = set; then
4214 enableval="$enable_accel"
4215
4216 if test "$enableval" = yes; then
4217 ac_cv_use_accel='wxUSE_ACCEL=yes'
4218 else
4219 ac_cv_use_accel='wxUSE_ACCEL=no'
4220 fi
4221
4222else
4223
4224 LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
4225 if test "x$LINE" != x ; then
4226 eval "DEFAULT_$LINE"
4227 else
4228 no_cache=1
4229 fi
4230
4231 ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
4232
4233fi
4234
4235
4236 eval "$ac_cv_use_accel"
4237 if test "$no_cache" != 1; then
4238 echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
4239 fi
4240
4241 if test "$wxUSE_ACCEL" = yes; then
4242 echo "$ac_t""yes" 1>&6
4243 else
4244 echo "$ac_t""no" 1>&6
4245 fi
4246
4247
4248 echo $ac_n "checking "for --enable-caret"""... $ac_c" 1>&6
b4085ce6 4249echo "configure:4250: checking "for --enable-caret"" >&5
10f2d63a
VZ
4250 no_cache=0
4251 # Check whether --enable-caret or --disable-caret was given.
4252if test "${enable_caret+set}" = set; then
4253 enableval="$enable_caret"
4254
4255 if test "$enableval" = yes; then
4256 ac_cv_use_caret='wxUSE_CARET=yes'
4257 else
4258 ac_cv_use_caret='wxUSE_CARET=no'
4259 fi
4260
4261else
4262
4263 LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
4264 if test "x$LINE" != x ; then
4265 eval "DEFAULT_$LINE"
4266 else
4267 no_cache=1
4268 fi
4269
4270 ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
4271
4272fi
4273
4274
4275 eval "$ac_cv_use_caret"
4276 if test "$no_cache" != 1; then
4277 echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
4278 fi
4279
4280 if test "$wxUSE_CARET" = yes; then
4281 echo "$ac_t""yes" 1>&6
4282 else
4283 echo "$ac_t""no" 1>&6
4284 fi
4285
4286
4287 echo $ac_n "checking "for --enable-bmpbutton"""... $ac_c" 1>&6
b4085ce6 4288echo "configure:4289: checking "for --enable-bmpbutton"" >&5
10f2d63a
VZ
4289 no_cache=0
4290 # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
4291if test "${enable_bmpbutton+set}" = set; then
4292 enableval="$enable_bmpbutton"
4293
4294 if test "$enableval" = yes; then
4295 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
4296 else
4297 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
4298 fi
4299
4300else
4301
4302 LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
4303 if test "x$LINE" != x ; then
4304 eval "DEFAULT_$LINE"
4305 else
4306 no_cache=1
4307 fi
4308
4309 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
4310
4311fi
4312
4313
4314 eval "$ac_cv_use_bmpbutton"
4315 if test "$no_cache" != 1; then
4316 echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
4317 fi
4318
4319 if test "$wxUSE_BMPBUTTON" = yes; then
4320 echo "$ac_t""yes" 1>&6
4321 else
4322 echo "$ac_t""no" 1>&6
4323 fi
4324
4325
4326 echo $ac_n "checking "for --enable-checkbox"""... $ac_c" 1>&6
b4085ce6 4327echo "configure:4328: checking "for --enable-checkbox"" >&5
10f2d63a
VZ
4328 no_cache=0
4329 # Check whether --enable-checkbox or --disable-checkbox was given.
4330if test "${enable_checkbox+set}" = set; then
4331 enableval="$enable_checkbox"
4332
4333 if test "$enableval" = yes; then
4334 ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
4335 else
4336 ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
4337 fi
4338
4339else
4340
4341 LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
4342 if test "x$LINE" != x ; then
4343 eval "DEFAULT_$LINE"
4344 else
4345 no_cache=1
4346 fi
4347
4348 ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
4349
4350fi
4351
4352
4353 eval "$ac_cv_use_checkbox"
4354 if test "$no_cache" != 1; then
4355 echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
4356 fi
4357
4358 if test "$wxUSE_CHECKBOX" = yes; then
4359 echo "$ac_t""yes" 1>&6
4360 else
4361 echo "$ac_t""no" 1>&6
4362 fi
4363
4364
4365 echo $ac_n "checking "for --enable-checklst"""... $ac_c" 1>&6
b4085ce6 4366echo "configure:4367: checking "for --enable-checklst"" >&5
10f2d63a
VZ
4367 no_cache=0
4368 # Check whether --enable-checklst or --disable-checklst was given.
4369if test "${enable_checklst+set}" = set; then
4370 enableval="$enable_checklst"
4371
4372 if test "$enableval" = yes; then
4373 ac_cv_use_checklst='wxUSE_CHECKLST=yes'
4374 else
4375 ac_cv_use_checklst='wxUSE_CHECKLST=no'
4376 fi
4377
4378else
4379
4380 LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
4381 if test "x$LINE" != x ; then
4382 eval "DEFAULT_$LINE"
4383 else
4384 no_cache=1
4385 fi
4386
4387 ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
4388
4389fi
4390
4391
4392 eval "$ac_cv_use_checklst"
4393 if test "$no_cache" != 1; then
4394 echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
4395 fi
4396
4397 if test "$wxUSE_CHECKLST" = yes; then
4398 echo "$ac_t""yes" 1>&6
4399 else
4400 echo "$ac_t""no" 1>&6
4401 fi
4402
4403
4404 echo $ac_n "checking "for --enable-choice"""... $ac_c" 1>&6
b4085ce6 4405echo "configure:4406: checking "for --enable-choice"" >&5
10f2d63a
VZ
4406 no_cache=0
4407 # Check whether --enable-choice or --disable-choice was given.
4408if test "${enable_choice+set}" = set; then
4409 enableval="$enable_choice"
4410
4411 if test "$enableval" = yes; then
4412 ac_cv_use_choice='wxUSE_CHOICE=yes'
4413 else
4414 ac_cv_use_choice='wxUSE_CHOICE=no'
4415 fi
4416
4417else
4418
4419 LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
4420 if test "x$LINE" != x ; then
4421 eval "DEFAULT_$LINE"
4422 else
4423 no_cache=1
4424 fi
4425
4426 ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
4427
4428fi
4429
4430
4431 eval "$ac_cv_use_choice"
4432 if test "$no_cache" != 1; then
4433 echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
4434 fi
4435
4436 if test "$wxUSE_CHOICE" = yes; then
4437 echo "$ac_t""yes" 1>&6
4438 else
4439 echo "$ac_t""no" 1>&6
4440 fi
4441
4442
4443 echo $ac_n "checking "for --enable-combobox"""... $ac_c" 1>&6
b4085ce6 4444echo "configure:4445: checking "for --enable-combobox"" >&5
10f2d63a
VZ
4445 no_cache=0
4446 # Check whether --enable-combobox or --disable-combobox was given.
4447if test "${enable_combobox+set}" = set; then
4448 enableval="$enable_combobox"
4449
4450 if test "$enableval" = yes; then
4451 ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
4452 else
4453 ac_cv_use_combobox='wxUSE_COMBOBOX=no'
4454 fi
4455
4456else
4457
4458 LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
4459 if test "x$LINE" != x ; then
4460 eval "DEFAULT_$LINE"
4461 else
4462 no_cache=1
4463 fi
4464
4465 ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
4466
4467fi
4468
4469
4470 eval "$ac_cv_use_combobox"
4471 if test "$no_cache" != 1; then
4472 echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
4473 fi
4474
4475 if test "$wxUSE_COMBOBOX" = yes; then
4476 echo "$ac_t""yes" 1>&6
4477 else
4478 echo "$ac_t""no" 1>&6
4479 fi
4480
4481
4482 echo $ac_n "checking "for --enable-gauge"""... $ac_c" 1>&6
b4085ce6 4483echo "configure:4484: checking "for --enable-gauge"" >&5
10f2d63a
VZ
4484 no_cache=0
4485 # Check whether --enable-gauge or --disable-gauge was given.
4486if test "${enable_gauge+set}" = set; then
4487 enableval="$enable_gauge"
4488
4489 if test "$enableval" = yes; then
4490 ac_cv_use_gauge='wxUSE_GAUGE=yes'
4491 else
4492 ac_cv_use_gauge='wxUSE_GAUGE=no'
4493 fi
4494
4495else
4496
4497 LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
4498 if test "x$LINE" != x ; then
4499 eval "DEFAULT_$LINE"
4500 else
4501 no_cache=1
4502 fi
4503
4504 ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
4505
4506fi
4507
4508
4509 eval "$ac_cv_use_gauge"
4510 if test "$no_cache" != 1; then
4511 echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
4512 fi
4513
4514 if test "$wxUSE_GAUGE" = yes; then
4515 echo "$ac_t""yes" 1>&6
4516 else
4517 echo "$ac_t""no" 1>&6
4518 fi
4519
4520
4521 echo $ac_n "checking "for --enable-grid"""... $ac_c" 1>&6
b4085ce6 4522echo "configure:4523: checking "for --enable-grid"" >&5
10f2d63a
VZ
4523 no_cache=0
4524 # Check whether --enable-grid or --disable-grid was given.
4525if test "${enable_grid+set}" = set; then
4526 enableval="$enable_grid"
4527
4528 if test "$enableval" = yes; then
4529 ac_cv_use_grid='wxUSE_GRID=yes'
4530 else
4531 ac_cv_use_grid='wxUSE_GRID=no'
4532 fi
4533
4534else
4535
4536 LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
4537 if test "x$LINE" != x ; then
4538 eval "DEFAULT_$LINE"
4539 else
4540 no_cache=1
4541 fi
4542
4543 ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
4544
4545fi
4546
4547
4548 eval "$ac_cv_use_grid"
4549 if test "$no_cache" != 1; then
4550 echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
4551 fi
4552
4553 if test "$wxUSE_GRID" = yes; then
4554 echo "$ac_t""yes" 1>&6
4555 else
4556 echo "$ac_t""no" 1>&6
4557 fi
4558
4559
4560 echo $ac_n "checking "for --enable-newgrid"""... $ac_c" 1>&6
b4085ce6 4561echo "configure:4562: checking "for --enable-newgrid"" >&5
10f2d63a
VZ
4562 no_cache=0
4563 # Check whether --enable-newgrid or --disable-newgrid was given.
4564if test "${enable_newgrid+set}" = set; then
4565 enableval="$enable_newgrid"
4566
4567 if test "$enableval" = yes; then
4568 ac_cv_use_newgrid='wxUSE_NEW_GRID=yes'
4569 else
4570 ac_cv_use_newgrid='wxUSE_NEW_GRID=no'
4571 fi
4572
4573else
4574
4575 LINE=`grep "wxUSE_NEW_GRID" ${wx_arg_cache_file}`
4576 if test "x$LINE" != x ; then
4577 eval "DEFAULT_$LINE"
4578 else
4579 no_cache=1
4580 fi
4581
4582 ac_cv_use_newgrid='wxUSE_NEW_GRID='$DEFAULT_wxUSE_NEW_GRID
4583
4584fi
4585
4586
4587 eval "$ac_cv_use_newgrid"
4588 if test "$no_cache" != 1; then
4589 echo $ac_cv_use_newgrid >> ${wx_arg_cache_file}.tmp
4590 fi
4591
4592 if test "$wxUSE_NEW_GRID" = yes; then
4593 echo "$ac_t""yes" 1>&6
4594 else
4595 echo "$ac_t""no" 1>&6
4596 fi
4597
4598
4599 echo $ac_n "checking "for --enable-imaglist"""... $ac_c" 1>&6
b4085ce6 4600echo "configure:4601: checking "for --enable-imaglist"" >&5
10f2d63a
VZ
4601 no_cache=0
4602 # Check whether --enable-imaglist or --disable-imaglist was given.
4603if test "${enable_imaglist+set}" = set; then
4604 enableval="$enable_imaglist"
4605
4606 if test "$enableval" = yes; then
4607 ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
4608 else
4609 ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
4610 fi
4611
4612else
4613
4614 LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
4615 if test "x$LINE" != x ; then
4616 eval "DEFAULT_$LINE"
4617 else
4618 no_cache=1
4619 fi
4620
4621 ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
4622
4623fi
4624
4625
4626 eval "$ac_cv_use_imaglist"
4627 if test "$no_cache" != 1; then
4628 echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
4629 fi
4630
4631 if test "$wxUSE_IMAGLIST" = yes; then
4632 echo "$ac_t""yes" 1>&6
4633 else
4634 echo "$ac_t""no" 1>&6
4635 fi
4636
4637
4638 echo $ac_n "checking "for --enable-listbox"""... $ac_c" 1>&6
b4085ce6 4639echo "configure:4640: checking "for --enable-listbox"" >&5
10f2d63a
VZ
4640 no_cache=0
4641 # Check whether --enable-listbox or --disable-listbox was given.
4642if test "${enable_listbox+set}" = set; then
4643 enableval="$enable_listbox"
4644
4645 if test "$enableval" = yes; then
4646 ac_cv_use_listbox='wxUSE_LISTBOX=yes'
4647 else
4648 ac_cv_use_listbox='wxUSE_LISTBOX=no'
4649 fi
4650
4651else
4652
4653 LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
4654 if test "x$LINE" != x ; then
4655 eval "DEFAULT_$LINE"
4656 else
4657 no_cache=1
4658 fi
4659
4660 ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
4661
4662fi
4663
4664
4665 eval "$ac_cv_use_listbox"
4666 if test "$no_cache" != 1; then
4667 echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
4668 fi
4669
4670 if test "$wxUSE_LISTBOX" = yes; then
4671 echo "$ac_t""yes" 1>&6
4672 else
4673 echo "$ac_t""no" 1>&6
4674 fi
4675
4676
4677 echo $ac_n "checking "for --enable-listctrl"""... $ac_c" 1>&6
b4085ce6 4678echo "configure:4679: checking "for --enable-listctrl"" >&5
10f2d63a
VZ
4679 no_cache=0
4680 # Check whether --enable-listctrl or --disable-listctrl was given.
4681if test "${enable_listctrl+set}" = set; then
4682 enableval="$enable_listctrl"
4683
4684 if test "$enableval" = yes; then
4685 ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
4686 else
4687 ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
4688 fi
4689
4690else
4691
4692 LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
4693 if test "x$LINE" != x ; then
4694 eval "DEFAULT_$LINE"
4695 else
4696 no_cache=1
4697 fi
4698
4699 ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
4700
4701fi
4702
4703
4704 eval "$ac_cv_use_listctrl"
4705 if test "$no_cache" != 1; then
4706 echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
4707 fi
4708
4709 if test "$wxUSE_LISTCTRL" = yes; then
4710 echo "$ac_t""yes" 1>&6
4711 else
4712 echo "$ac_t""no" 1>&6
4713 fi
4714
4715
4716 echo $ac_n "checking "for --enable-notebook"""... $ac_c" 1>&6
b4085ce6 4717echo "configure:4718: checking "for --enable-notebook"" >&5
10f2d63a
VZ
4718 no_cache=0
4719 # Check whether --enable-notebook or --disable-notebook was given.
4720if test "${enable_notebook+set}" = set; then
4721 enableval="$enable_notebook"
4722
4723 if test "$enableval" = yes; then
4724 ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
4725 else
4726 ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
4727 fi
4728
4729else
4730
4731 LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
4732 if test "x$LINE" != x ; then
4733 eval "DEFAULT_$LINE"
4734 else
4735 no_cache=1
4736 fi
4737
4738 ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
4739
4740fi
4741
4742
4743 eval "$ac_cv_use_notebook"
4744 if test "$no_cache" != 1; then
4745 echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
4746 fi
4747
4748 if test "$wxUSE_NOTEBOOK" = yes; then
4749 echo "$ac_t""yes" 1>&6
4750 else
4751 echo "$ac_t""no" 1>&6
4752 fi
4753
4754
4755 echo $ac_n "checking "for --enable-radiobox"""... $ac_c" 1>&6
b4085ce6 4756echo "configure:4757: checking "for --enable-radiobox"" >&5
10f2d63a
VZ
4757 no_cache=0
4758 # Check whether --enable-radiobox or --disable-radiobox was given.
4759if test "${enable_radiobox+set}" = set; then
4760 enableval="$enable_radiobox"
4761
4762 if test "$enableval" = yes; then
4763 ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
4764 else
4765 ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
4766 fi
4767
4768else
4769
4770 LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
4771 if test "x$LINE" != x ; then
4772 eval "DEFAULT_$LINE"
4773 else
4774 no_cache=1
4775 fi
4776
4777 ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
4778
4779fi
4780
4781
4782 eval "$ac_cv_use_radiobox"
4783 if test "$no_cache" != 1; then
4784 echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
4785 fi
4786
4787 if test "$wxUSE_RADIOBOX" = yes; then
4788 echo "$ac_t""yes" 1>&6
4789 else
4790 echo "$ac_t""no" 1>&6
4791 fi
4792
4793
4794 echo $ac_n "checking "for --enable-radiobtn"""... $ac_c" 1>&6
b4085ce6 4795echo "configure:4796: checking "for --enable-radiobtn"" >&5
10f2d63a
VZ
4796 no_cache=0
4797 # Check whether --enable-radiobtn or --disable-radiobtn was given.
4798if test "${enable_radiobtn+set}" = set; then
4799 enableval="$enable_radiobtn"
4800
4801 if test "$enableval" = yes; then
4802 ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
4803 else
4804 ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
4805 fi
4806
4807else
4808
4809 LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
4810 if test "x$LINE" != x ; then
4811 eval "DEFAULT_$LINE"
4812 else
4813 no_cache=1
4814 fi
4815
4816 ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
4817
4818fi
4819
4820
4821 eval "$ac_cv_use_radiobtn"
4822 if test "$no_cache" != 1; then
4823 echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
4824 fi
4825
4826 if test "$wxUSE_RADIOBTN" = yes; then
4827 echo "$ac_t""yes" 1>&6
4828 else
4829 echo "$ac_t""no" 1>&6
4830 fi
4831
4832
4833 echo $ac_n "checking "for --enable-sash"""... $ac_c" 1>&6
b4085ce6 4834echo "configure:4835: checking "for --enable-sash"" >&5
10f2d63a
VZ
4835 no_cache=0
4836 # Check whether --enable-sash or --disable-sash was given.
4837if test "${enable_sash+set}" = set; then
4838 enableval="$enable_sash"
4839
4840 if test "$enableval" = yes; then
4841 ac_cv_use_sash='wxUSE_SASH=yes'
4842 else
4843 ac_cv_use_sash='wxUSE_SASH=no'
4844 fi
4845
4846else
4847
4848 LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
4849 if test "x$LINE" != x ; then
4850 eval "DEFAULT_$LINE"
4851 else
4852 no_cache=1
4853 fi
4854
4855 ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
4856
4857fi
4858
4859
4860 eval "$ac_cv_use_sash"
4861 if test "$no_cache" != 1; then
4862 echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
4863 fi
4864
4865 if test "$wxUSE_SASH" = yes; then
4866 echo "$ac_t""yes" 1>&6
4867 else
4868 echo "$ac_t""no" 1>&6
4869 fi
4870
4871
4872 echo $ac_n "checking "for --enable-scrollbar"""... $ac_c" 1>&6
b4085ce6 4873echo "configure:4874: checking "for --enable-scrollbar"" >&5
10f2d63a
VZ
4874 no_cache=0
4875 # Check whether --enable-scrollbar or --disable-scrollbar was given.
4876if test "${enable_scrollbar+set}" = set; then
4877 enableval="$enable_scrollbar"
4878
4879 if test "$enableval" = yes; then
4880 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
4881 else
4882 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
4883 fi
4884
4885else
4886
4887 LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
4888 if test "x$LINE" != x ; then
4889 eval "DEFAULT_$LINE"
4890 else
4891 no_cache=1
4892 fi
4893
4894 ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
4895
4896fi
4897
4898
4899 eval "$ac_cv_use_scrollbar"
4900 if test "$no_cache" != 1; then
4901 echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
4902 fi
4903
4904 if test "$wxUSE_SCROLLBAR" = yes; then
4905 echo "$ac_t""yes" 1>&6
4906 else
4907 echo "$ac_t""no" 1>&6
4908 fi
4909
4910
4911 echo $ac_n "checking "for --enable-slider"""... $ac_c" 1>&6
b4085ce6 4912echo "configure:4913: checking "for --enable-slider"" >&5
10f2d63a
VZ
4913 no_cache=0
4914 # Check whether --enable-slider or --disable-slider was given.
4915if test "${enable_slider+set}" = set; then
4916 enableval="$enable_slider"
4917
4918 if test "$enableval" = yes; then
4919 ac_cv_use_slider='wxUSE_SLIDER=yes'
4920 else
4921 ac_cv_use_slider='wxUSE_SLIDER=no'
4922 fi
4923
4924else
4925
4926 LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
4927 if test "x$LINE" != x ; then
4928 eval "DEFAULT_$LINE"
4929 else
4930 no_cache=1
4931 fi
4932
4933 ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
4934
4935fi
4936
4937
4938 eval "$ac_cv_use_slider"
4939 if test "$no_cache" != 1; then
4940 echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
4941 fi
4942
4943 if test "$wxUSE_SLIDER" = yes; then
4944 echo "$ac_t""yes" 1>&6
4945 else
4946 echo "$ac_t""no" 1>&6
4947 fi
4948
4949
4950 echo $ac_n "checking "for --enable-spinbtn"""... $ac_c" 1>&6
b4085ce6 4951echo "configure:4952: checking "for --enable-spinbtn"" >&5
10f2d63a
VZ
4952 no_cache=0
4953 # Check whether --enable-spinbtn or --disable-spinbtn was given.
4954if test "${enable_spinbtn+set}" = set; then
4955 enableval="$enable_spinbtn"
4956
4957 if test "$enableval" = yes; then
4958 ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
4959 else
4960 ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
4961 fi
4962
4963else
4964
4965 LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
4966 if test "x$LINE" != x ; then
4967 eval "DEFAULT_$LINE"
4968 else
4969 no_cache=1
4970 fi
4971
4972 ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
4973
4974fi
4975
4976
4977 eval "$ac_cv_use_spinbtn"
4978 if test "$no_cache" != 1; then
4979 echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
4980 fi
4981
4982 if test "$wxUSE_SPINBTN" = yes; then
4983 echo "$ac_t""yes" 1>&6
4984 else
4985 echo "$ac_t""no" 1>&6
4986 fi
4987
4988
56cfaa52 4989 echo $ac_n "checking "for --enable-spinctrl"""... $ac_c" 1>&6
b4085ce6 4990echo "configure:4991: checking "for --enable-spinctrl"" >&5
56cfaa52
RR
4991 no_cache=0
4992 # Check whether --enable-spinctrl or --disable-spinctrl was given.
4993if test "${enable_spinctrl+set}" = set; then
4994 enableval="$enable_spinctrl"
4995
4996 if test "$enableval" = yes; then
4997 ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
4998 else
4999 ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
5000 fi
5001
5002else
5003
5004 LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
5005 if test "x$LINE" != x ; then
5006 eval "DEFAULT_$LINE"
5007 else
5008 no_cache=1
5009 fi
5010
5011 ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
5012
5013fi
5014
5015
5016 eval "$ac_cv_use_spinctrl"
5017 if test "$no_cache" != 1; then
5018 echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
5019 fi
5020
5021 if test "$wxUSE_SPINCTRL" = yes; then
5022 echo "$ac_t""yes" 1>&6
5023 else
5024 echo "$ac_t""no" 1>&6
5025 fi
5026
5027
10f2d63a 5028 echo $ac_n "checking "for --enable-splitter"""... $ac_c" 1>&6
b4085ce6 5029echo "configure:5030: checking "for --enable-splitter"" >&5
10f2d63a
VZ
5030 no_cache=0
5031 # Check whether --enable-splitter or --disable-splitter was given.
5032if test "${enable_splitter+set}" = set; then
5033 enableval="$enable_splitter"
5034
5035 if test "$enableval" = yes; then
5036 ac_cv_use_splitter='wxUSE_SPLITTER=yes'
5037 else
5038 ac_cv_use_splitter='wxUSE_SPLITTER=no'
5039 fi
5040
5041else
5042
5043 LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
5044 if test "x$LINE" != x ; then
5045 eval "DEFAULT_$LINE"
5046 else
5047 no_cache=1
5048 fi
5049
5050 ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
5051
5052fi
5053
5054
5055 eval "$ac_cv_use_splitter"
5056 if test "$no_cache" != 1; then
5057 echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
5058 fi
5059
5060 if test "$wxUSE_SPLITTER" = yes; then
5061 echo "$ac_t""yes" 1>&6
5062 else
5063 echo "$ac_t""no" 1>&6
5064 fi
5065
5066
5067 echo $ac_n "checking "for --enable-statbmp"""... $ac_c" 1>&6
b4085ce6 5068echo "configure:5069: checking "for --enable-statbmp"" >&5
10f2d63a
VZ
5069 no_cache=0
5070 # Check whether --enable-statbmp or --disable-statbmp was given.
5071if test "${enable_statbmp+set}" = set; then
5072 enableval="$enable_statbmp"
5073
5074 if test "$enableval" = yes; then
5075 ac_cv_use_statbmp='wxUSE_STATBMP=yes'
5076 else
5077 ac_cv_use_statbmp='wxUSE_STATBMP=no'
5078 fi
5079
5080else
5081
5082 LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
5083 if test "x$LINE" != x ; then
5084 eval "DEFAULT_$LINE"
5085 else
5086 no_cache=1
5087 fi
5088
5089 ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
5090
5091fi
5092
5093
5094 eval "$ac_cv_use_statbmp"
5095 if test "$no_cache" != 1; then
5096 echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
5097 fi
5098
5099 if test "$wxUSE_STATBMP" = yes; then
5100 echo "$ac_t""yes" 1>&6
5101 else
5102 echo "$ac_t""no" 1>&6
5103 fi
5104
5105
5106 echo $ac_n "checking "for --enable-statbox"""... $ac_c" 1>&6
b4085ce6 5107echo "configure:5108: checking "for --enable-statbox"" >&5
10f2d63a
VZ
5108 no_cache=0
5109 # Check whether --enable-statbox or --disable-statbox was given.
5110if test "${enable_statbox+set}" = set; then
5111 enableval="$enable_statbox"
5112
5113 if test "$enableval" = yes; then
5114 ac_cv_use_statbox='wxUSE_STATBOX=yes'
5115 else
5116 ac_cv_use_statbox='wxUSE_STATBOX=no'
5117 fi
5118
5119else
5120
5121 LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
5122 if test "x$LINE" != x ; then
5123 eval "DEFAULT_$LINE"
5124 else
5125 no_cache=1
5126 fi
5127
5128 ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
5129
5130fi
5131
5132
5133 eval "$ac_cv_use_statbox"
5134 if test "$no_cache" != 1; then
5135 echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
5136 fi
5137
5138 if test "$wxUSE_STATBOX" = yes; then
5139 echo "$ac_t""yes" 1>&6
5140 else
5141 echo "$ac_t""no" 1>&6
5142 fi
5143
5144
5145 echo $ac_n "checking "for --enable-statline"""... $ac_c" 1>&6
b4085ce6 5146echo "configure:5147: checking "for --enable-statline"" >&5
10f2d63a
VZ
5147 no_cache=0
5148 # Check whether --enable-statline or --disable-statline was given.
5149if test "${enable_statline+set}" = set; then
5150 enableval="$enable_statline"
5151
5152 if test "$enableval" = yes; then
5153 ac_cv_use_statline='wxUSE_STATLINE=yes'
5154 else
5155 ac_cv_use_statline='wxUSE_STATLINE=no'
5156 fi
5157
5158else
5159
5160 LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
5161 if test "x$LINE" != x ; then
5162 eval "DEFAULT_$LINE"
5163 else
5164 no_cache=1
5165 fi
5166
5167 ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
5168
5169fi
5170
5171
5172 eval "$ac_cv_use_statline"
5173 if test "$no_cache" != 1; then
5174 echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
5175 fi
5176
5177 if test "$wxUSE_STATLINE" = yes; then
5178 echo "$ac_t""yes" 1>&6
5179 else
5180 echo "$ac_t""no" 1>&6
5181 fi
5182
5183
5184 echo $ac_n "checking "for --enable-statusbar"""... $ac_c" 1>&6
b4085ce6 5185echo "configure:5186: checking "for --enable-statusbar"" >&5
10f2d63a
VZ
5186 no_cache=0
5187 # Check whether --enable-statusbar or --disable-statusbar was given.
5188if test "${enable_statusbar+set}" = set; then
5189 enableval="$enable_statusbar"
5190
5191 if test "$enableval" = yes; then
5192 ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
5193 else
5194 ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
5195 fi
5196
5197else
5198
5199 LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
5200 if test "x$LINE" != x ; then
5201 eval "DEFAULT_$LINE"
5202 else
5203 no_cache=1
5204 fi
5205
5206 ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
5207
5208fi
5209
5210
5211 eval "$ac_cv_use_statusbar"
5212 if test "$no_cache" != 1; then
5213 echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
5214 fi
5215
5216 if test "$wxUSE_STATUSBAR" = yes; then
5217 echo "$ac_t""yes" 1>&6
5218 else
5219 echo "$ac_t""no" 1>&6
5220 fi
5221
5222
5223 echo $ac_n "checking "for --enable-tabdialog"""... $ac_c" 1>&6
b4085ce6 5224echo "configure:5225: checking "for --enable-tabdialog"" >&5
10f2d63a
VZ
5225 no_cache=0
5226 # Check whether --enable-tabdialog or --disable-tabdialog was given.
5227if test "${enable_tabdialog+set}" = set; then
5228 enableval="$enable_tabdialog"
5229
5230 if test "$enableval" = yes; then
5231 ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes'
5232 else
5233 ac_cv_use_tabdialog='wxUSE_TABDIALOG=no'
5234 fi
5235
5236else
5237
5238 LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}`
5239 if test "x$LINE" != x ; then
5240 eval "DEFAULT_$LINE"
5241 else
5242 no_cache=1
5243 fi
5244
5245 ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG
5246
5247fi
5248
5249
5250 eval "$ac_cv_use_tabdialog"
5251 if test "$no_cache" != 1; then
5252 echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
5253 fi
5254
5255 if test "$wxUSE_TABDIALOG" = yes; then
5256 echo "$ac_t""yes" 1>&6
5257 else
5258 echo "$ac_t""no" 1>&6
5259 fi
5260
5261
5262 echo $ac_n "checking "for --enable-toolbar"""... $ac_c" 1>&6
b4085ce6 5263echo "configure:5264: checking "for --enable-toolbar"" >&5
10f2d63a
VZ
5264 no_cache=0
5265 # Check whether --enable-toolbar or --disable-toolbar was given.
5266if test "${enable_toolbar+set}" = set; then
5267 enableval="$enable_toolbar"
5268
5269 if test "$enableval" = yes; then
5270 ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
5271 else
5272 ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
5273 fi
5274
5275else
5276
5277 LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
5278 if test "x$LINE" != x ; then
5279 eval "DEFAULT_$LINE"
5280 else
5281 no_cache=1
5282 fi
5283
5284 ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
5285
5286fi
5287
5288
5289 eval "$ac_cv_use_toolbar"
5290 if test "$no_cache" != 1; then
5291 echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
5292 fi
5293
5294 if test "$wxUSE_TOOLBAR" = yes; then
5295 echo "$ac_t""yes" 1>&6
5296 else
5297 echo "$ac_t""no" 1>&6
5298 fi
5299
5300
360d6699 5301 echo $ac_n "checking "for --enable-tbarnative"""... $ac_c" 1>&6
b4085ce6 5302echo "configure:5303: checking "for --enable-tbarnative"" >&5
360d6699
VZ
5303 no_cache=0
5304 # Check whether --enable-tbarnative or --disable-tbarnative was given.
5305if test "${enable_tbarnative+set}" = set; then
5306 enableval="$enable_tbarnative"
5307
5308 if test "$enableval" = yes; then
5309 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
5310 else
5311 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
5312 fi
5313
5314else
5315
5316 LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
5317 if test "x$LINE" != x ; then
5318 eval "DEFAULT_$LINE"
5319 else
5320 no_cache=1
5321 fi
5322
5323 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
5324
5325fi
5326
5327
5328 eval "$ac_cv_use_tbarnative"
5329 if test "$no_cache" != 1; then
5330 echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
5331 fi
5332
5333 if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
5334 echo "$ac_t""yes" 1>&6
5335 else
5336 echo "$ac_t""no" 1>&6
5337 fi
5338
5339
5340 echo $ac_n "checking "for --enable-tbarsmpl"""... $ac_c" 1>&6
b4085ce6 5341echo "configure:5342: checking "for --enable-tbarsmpl"" >&5
360d6699
VZ
5342 no_cache=0
5343 # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given.
5344if test "${enable_tbarsmpl+set}" = set; then
5345 enableval="$enable_tbarsmpl"
5346
5347 if test "$enableval" = yes; then
5348 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes'
5349 else
5350 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no'
5351 fi
5352
5353else
5354
5355 LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}`
5356 if test "x$LINE" != x ; then
5357 eval "DEFAULT_$LINE"
5358 else
5359 no_cache=1
5360 fi
5361
5362 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE
5363
5364fi
5365
5366
5367 eval "$ac_cv_use_tbarsmpl"
5368 if test "$no_cache" != 1; then
5369 echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp
5370 fi
5371
5372 if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then
5373 echo "$ac_t""yes" 1>&6
5374 else
5375 echo "$ac_t""no" 1>&6
5376 fi
5377
5378
10f2d63a 5379 echo $ac_n "checking "for --enable-treectrl"""... $ac_c" 1>&6
b4085ce6 5380echo "configure:5381: checking "for --enable-treectrl"" >&5
10f2d63a
VZ
5381 no_cache=0
5382 # Check whether --enable-treectrl or --disable-treectrl was given.
5383if test "${enable_treectrl+set}" = set; then
5384 enableval="$enable_treectrl"
5385
5386 if test "$enableval" = yes; then
5387 ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
5388 else
5389 ac_cv_use_treectrl='wxUSE_TREECTRL=no'
5390 fi
5391
5392else
5393
5394 LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
5395 if test "x$LINE" != x ; then
5396 eval "DEFAULT_$LINE"
5397 else
5398 no_cache=1
5399 fi
5400
5401 ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
5402
5403fi
5404
5405
5406 eval "$ac_cv_use_treectrl"
5407 if test "$no_cache" != 1; then
5408 echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
5409 fi
5410
5411 if test "$wxUSE_TREECTRL" = yes; then
5412 echo "$ac_t""yes" 1>&6
5413 else
5414 echo "$ac_t""no" 1>&6
5415 fi
5416
5417
5418
5419
5420 echo $ac_n "checking "for --enable-commondlg"""... $ac_c" 1>&6
b4085ce6 5421echo "configure:5422: checking "for --enable-commondlg"" >&5
10f2d63a
VZ
5422 no_cache=0
5423 # Check whether --enable-commondlg or --disable-commondlg was given.
5424if test "${enable_commondlg+set}" = set; then
5425 enableval="$enable_commondlg"
5426
5427 if test "$enableval" = yes; then
5428 ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
5429 else
5430 ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
5431 fi
5432
5433else
5434
5435 LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
5436 if test "x$LINE" != x ; then
5437 eval "DEFAULT_$LINE"
5438 else
5439 no_cache=1
5440 fi
5441
5442 ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
5443
5444fi
5445
5446
5447 eval "$ac_cv_use_commondlg"
5448 if test "$no_cache" != 1; then
5449 echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
5450 fi
5451
5452 if test "$wxUSE_COMMONDLGS" = yes; then
5453 echo "$ac_t""yes" 1>&6
5454 else
5455 echo "$ac_t""no" 1>&6
5456 fi
5457
5458
5459 echo $ac_n "checking "for --enable-dirdlg"""... $ac_c" 1>&6
b4085ce6 5460echo "configure:5461: checking "for --enable-dirdlg"" >&5
10f2d63a
VZ
5461 no_cache=0
5462 # Check whether --enable-dirdlg or --disable-dirdlg was given.
5463if test "${enable_dirdlg+set}" = set; then
5464 enableval="$enable_dirdlg"
5465
5466 if test "$enableval" = yes; then
5467 ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
5468 else
5469 ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
5470 fi
5471
5472else
5473
5474 LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
5475 if test "x$LINE" != x ; then
5476 eval "DEFAULT_$LINE"
5477 else
5478 no_cache=1
5479 fi
5480
5481 ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
5482
5483fi
5484
5485
5486 eval "$ac_cv_use_dirdlg"
5487 if test "$no_cache" != 1; then
5488 echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
5489 fi
5490
5491 if test "$wxUSE_DIRDLG" = yes; then
5492 echo "$ac_t""yes" 1>&6
5493 else
5494 echo "$ac_t""no" 1>&6
5495 fi
5496
5497
5498 echo $ac_n "checking "for --enable-textdlg"""... $ac_c" 1>&6
b4085ce6 5499echo "configure:5500: checking "for --enable-textdlg"" >&5
10f2d63a
VZ
5500 no_cache=0
5501 # Check whether --enable-textdlg or --disable-textdlg was given.
5502if test "${enable_textdlg+set}" = set; then
5503 enableval="$enable_textdlg"
5504
5505 if test "$enableval" = yes; then
5506 ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
5507 else
5508 ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
5509 fi
5510
5511else
5512
5513 LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
5514 if test "x$LINE" != x ; then
5515 eval "DEFAULT_$LINE"
5516 else
5517 no_cache=1
5518 fi
5519
5520 ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
5521
5522fi
5523
5524
5525 eval "$ac_cv_use_textdlg"
5526 if test "$no_cache" != 1; then
5527 echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
5528 fi
5529
5530 if test "$wxUSE_TEXTDLG" = yes; then
5531 echo "$ac_t""yes" 1>&6
5532 else
5533 echo "$ac_t""no" 1>&6
5534 fi
5535
5536
5537 echo $ac_n "checking "for --enable-tipdlg"""... $ac_c" 1>&6
b4085ce6 5538echo "configure:5539: checking "for --enable-tipdlg"" >&5
10f2d63a
VZ
5539 no_cache=0
5540 # Check whether --enable-tipdlg or --disable-tipdlg was given.
5541if test "${enable_tipdlg+set}" = set; then
5542 enableval="$enable_tipdlg"
5543
5544 if test "$enableval" = yes; then
5545 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
5546 else
5547 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
5548 fi
5549
5550else
5551
5552 LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
5553 if test "x$LINE" != x ; then
5554 eval "DEFAULT_$LINE"
5555 else
5556 no_cache=1
5557 fi
5558
5559 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
5560
5561fi
5562
5563
5564 eval "$ac_cv_use_tipdlg"
5565 if test "$no_cache" != 1; then
5566 echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
5567 fi
5568
5569 if test "$wxUSE_STARTUP_TIPS" = yes; then
5570 echo "$ac_t""yes" 1>&6
5571 else
5572 echo "$ac_t""no" 1>&6
5573 fi
5574
5575
5576 echo $ac_n "checking "for --enable-progressdlg"""... $ac_c" 1>&6
b4085ce6 5577echo "configure:5578: checking "for --enable-progressdlg"" >&5
10f2d63a
VZ
5578 no_cache=0
5579 # Check whether --enable-progressdlg or --disable-progressdlg was given.
5580if test "${enable_progressdlg+set}" = set; then
5581 enableval="$enable_progressdlg"
5582
5583 if test "$enableval" = yes; then
5584 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
5585 else
5586 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
5587 fi
5588
5589else
5590
5591 LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
5592 if test "x$LINE" != x ; then
5593 eval "DEFAULT_$LINE"
5594 else
5595 no_cache=1
5596 fi
5597
5598 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
5599
5600fi
5601
5602
5603 eval "$ac_cv_use_progressdlg"
5604 if test "$no_cache" != 1; then
5605 echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
5606 fi
5607
5608 if test "$wxUSE_PROGRESSDLG" = yes; then
5609 echo "$ac_t""yes" 1>&6
5610 else
5611 echo "$ac_t""no" 1>&6
5612 fi
5613
5614
5615 echo $ac_n "checking "for --enable-miniframe"""... $ac_c" 1>&6
b4085ce6 5616echo "configure:5617: checking "for --enable-miniframe"" >&5
10f2d63a
VZ
5617 no_cache=0
5618 # Check whether --enable-miniframe or --disable-miniframe was given.
5619if test "${enable_miniframe+set}" = set; then
5620 enableval="$enable_miniframe"
5621
5622 if test "$enableval" = yes; then
5623 ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
5624 else
5625 ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
5626 fi
5627
5628else
5629
5630 LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
5631 if test "x$LINE" != x ; then
5632 eval "DEFAULT_$LINE"
5633 else
5634 no_cache=1
5635 fi
5636
5637 ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
5638
5639fi
5640
5641
5642 eval "$ac_cv_use_miniframe"
5643 if test "$no_cache" != 1; then
5644 echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
5645 fi
5646
5647 if test "$wxUSE_MINIFRAME" = yes; then
5648 echo "$ac_t""yes" 1>&6
5649 else
5650 echo "$ac_t""no" 1>&6
5651 fi
5652
5653
5654 echo $ac_n "checking "for --enable-html"""... $ac_c" 1>&6
b4085ce6 5655echo "configure:5656: checking "for --enable-html"" >&5
10f2d63a
VZ
5656 no_cache=0
5657 # Check whether --enable-html or --disable-html was given.
5658if test "${enable_html+set}" = set; then
5659 enableval="$enable_html"
5660
5661 if test "$enableval" = yes; then
5662 ac_cv_use_html='wxUSE_HTML=yes'
5663 else
5664 ac_cv_use_html='wxUSE_HTML=no'
5665 fi
5666
5667else
5668
5669 LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
5670 if test "x$LINE" != x ; then
5671 eval "DEFAULT_$LINE"
5672 else
5673 no_cache=1
5674 fi
5675
5676 ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
5677
5678fi
5679
5680
5681 eval "$ac_cv_use_html"
5682 if test "$no_cache" != 1; then
5683 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
5684 fi
5685
5686 if test "$wxUSE_HTML" = yes; then
5687 echo "$ac_t""yes" 1>&6
5688 else
5689 echo "$ac_t""no" 1>&6
5690 fi
5691
5692
5693 echo $ac_n "checking "for --enable-tooltips"""... $ac_c" 1>&6
b4085ce6 5694echo "configure:5695: checking "for --enable-tooltips"" >&5
10f2d63a
VZ
5695 no_cache=0
5696 # Check whether --enable-tooltips or --disable-tooltips was given.
5697if test "${enable_tooltips+set}" = set; then
5698 enableval="$enable_tooltips"
5699
5700 if test "$enableval" = yes; then
5701 ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
5702 else
5703 ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
5704 fi
5705
5706else
5707
5708 LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
5709 if test "x$LINE" != x ; then
5710 eval "DEFAULT_$LINE"
5711 else
5712 no_cache=1
5713 fi
5714
5715 ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
5716
5717fi
5718
5719
5720 eval "$ac_cv_use_tooltips"
5721 if test "$no_cache" != 1; then
5722 echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
5723 fi
5724
5725 if test "$wxUSE_TOOLTIPS" = yes; then
5726 echo "$ac_t""yes" 1>&6
5727 else
5728 echo "$ac_t""no" 1>&6
5729 fi
5730
5731
5732 echo $ac_n "checking "for --enable-splines"""... $ac_c" 1>&6
b4085ce6 5733echo "configure:5734: checking "for --enable-splines"" >&5
10f2d63a
VZ
5734 no_cache=0
5735 # Check whether --enable-splines or --disable-splines was given.
5736if test "${enable_splines+set}" = set; then
5737 enableval="$enable_splines"
5738
5739 if test "$enableval" = yes; then
5740 ac_cv_use_splines='wxUSE_SPLINES=yes'
5741 else
5742 ac_cv_use_splines='wxUSE_SPLINES=no'
5743 fi
5744
5745else
5746
5747 LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
5748 if test "x$LINE" != x ; then
5749 eval "DEFAULT_$LINE"
5750 else
5751 no_cache=1
5752 fi
5753
5754 ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
5755
5756fi
5757
5758
5759 eval "$ac_cv_use_splines"
5760 if test "$no_cache" != 1; then
5761 echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
5762 fi
5763
5764 if test "$wxUSE_SPLINES" = yes; then
5765 echo "$ac_t""yes" 1>&6
5766 else
5767 echo "$ac_t""no" 1>&6
5768 fi
5769
5770
5771 echo $ac_n "checking "for --enable-validators"""... $ac_c" 1>&6
b4085ce6 5772echo "configure:5773: checking "for --enable-validators"" >&5
10f2d63a
VZ
5773 no_cache=0
5774 # Check whether --enable-validators or --disable-validators was given.
5775if test "${enable_validators+set}" = set; then
5776 enableval="$enable_validators"
5777
5778 if test "$enableval" = yes; then
5779 ac_cv_use_validators='wxUSE_VALIDATORS=yes'
5780 else
5781 ac_cv_use_validators='wxUSE_VALIDATORS=no'
5782 fi
5783
5784else
5785
5786 LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
5787 if test "x$LINE" != x ; then
5788 eval "DEFAULT_$LINE"
5789 else
5790 no_cache=1
5791 fi
5792
5793 ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
5794
5795fi
5796
5797
5798 eval "$ac_cv_use_validators"
5799 if test "$no_cache" != 1; then
5800 echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
5801 fi
5802
5803 if test "$wxUSE_VALIDATORS" = yes; then
5804 echo "$ac_t""yes" 1>&6
5805 else
5806 echo "$ac_t""no" 1>&6
5807 fi
5808
5809
5810 echo $ac_n "checking "for --enable-busyinfo"""... $ac_c" 1>&6
b4085ce6 5811echo "configure:5812: checking "for --enable-busyinfo"" >&5
10f2d63a
VZ
5812 no_cache=0
5813 # Check whether --enable-busyinfo or --disable-busyinfo was given.
5814if test "${enable_busyinfo+set}" = set; then
5815 enableval="$enable_busyinfo"
5816
5817 if test "$enableval" = yes; then
5818 ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
5819 else
5820 ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
5821 fi
5822
5823else
5824
5825 LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
5826 if test "x$LINE" != x ; then
5827 eval "DEFAULT_$LINE"
5828 else
5829 no_cache=1
5830 fi
5831
5832 ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
5833
5834fi
5835
5836
5837 eval "$ac_cv_use_busyinfo"
5838 if test "$no_cache" != 1; then
5839 echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
5840 fi
5841
5842 if test "$wxUSE_BUSYINFO" = yes; then
5843 echo "$ac_t""yes" 1>&6
5844 else
5845 echo "$ac_t""no" 1>&6
5846 fi
5847
5848
f6bcfd97 5849 echo $ac_n "checking "for --enable-joystick"""... $ac_c" 1>&6
b4085ce6 5850echo "configure:5851: checking "for --enable-joystick"" >&5
f6bcfd97
BP
5851 no_cache=0
5852 # Check whether --enable-joystick or --disable-joystick was given.
5853if test "${enable_joystick+set}" = set; then
5854 enableval="$enable_joystick"
5855
5856 if test "$enableval" = yes; then
5857 ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
5858 else
5859 ac_cv_use_joystick='wxUSE_JOYSTICK=no'
5860 fi
5861
5862else
5863
5864 LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
5865 if test "x$LINE" != x ; then
5866 eval "DEFAULT_$LINE"
5867 else
5868 no_cache=1
5869 fi
5870
5871 ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
5872
5873fi
5874
5875
5876 eval "$ac_cv_use_joystick"
5877 if test "$no_cache" != 1; then
5878 echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
5879 fi
5880
5881 if test "$wxUSE_JOYSTICK" = yes; then
5882 echo "$ac_t""yes" 1>&6
5883 else
5884 echo "$ac_t""no" 1>&6
5885 fi
5886
5887
10f2d63a
VZ
5888
5889
5890 echo $ac_n "checking "for --enable-gif"""... $ac_c" 1>&6
b4085ce6 5891echo "configure:5892: checking "for --enable-gif"" >&5
10f2d63a
VZ
5892 no_cache=0
5893 # Check whether --enable-gif or --disable-gif was given.
5894if test "${enable_gif+set}" = set; then
5895 enableval="$enable_gif"
5896
5897 if test "$enableval" = yes; then
5898 ac_cv_use_gif='wxUSE_GIF=yes'
5899 else
5900 ac_cv_use_gif='wxUSE_GIF=no'
5901 fi
5902
5903else
5904
5905 LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
5906 if test "x$LINE" != x ; then
5907 eval "DEFAULT_$LINE"
5908 else
5909 no_cache=1
5910 fi
5911
5912 ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
5913
5914fi
5915
5916
5917 eval "$ac_cv_use_gif"
5918 if test "$no_cache" != 1; then
5919 echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
5920 fi
5921
5922 if test "$wxUSE_GIF" = yes; then
5923 echo "$ac_t""yes" 1>&6
5924 else
5925 echo "$ac_t""no" 1>&6
5926 fi
5927
5928
5929 echo $ac_n "checking "for --enable-pcx"""... $ac_c" 1>&6
b4085ce6 5930echo "configure:5931: checking "for --enable-pcx"" >&5
10f2d63a
VZ
5931 no_cache=0
5932 # Check whether --enable-pcx or --disable-pcx was given.
5933if test "${enable_pcx+set}" = set; then
5934 enableval="$enable_pcx"
5935
5936 if test "$enableval" = yes; then
5937 ac_cv_use_pcx='wxUSE_PCX=yes'
5938 else
5939 ac_cv_use_pcx='wxUSE_PCX=no'
5940 fi
5941
5942else
5943
5944 LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
5945 if test "x$LINE" != x ; then
5946 eval "DEFAULT_$LINE"
5947 else
5948 no_cache=1
5949 fi
5950
5951 ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
5952
5953fi
5954
5955
5956 eval "$ac_cv_use_pcx"
5957 if test "$no_cache" != 1; then
5958 echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
5959 fi
5960
5961 if test "$wxUSE_PCX" = yes; then
5962 echo "$ac_t""yes" 1>&6
5963 else
5964 echo "$ac_t""no" 1>&6
5965 fi
5966
5967
5968 echo $ac_n "checking "for --enable-pnm"""... $ac_c" 1>&6
b4085ce6 5969echo "configure:5970: checking "for --enable-pnm"" >&5
10f2d63a
VZ
5970 no_cache=0
5971 # Check whether --enable-pnm or --disable-pnm was given.
5972if test "${enable_pnm+set}" = set; then
5973 enableval="$enable_pnm"
5974
5975 if test "$enableval" = yes; then
5976 ac_cv_use_pnm='wxUSE_PNM=yes'
5977 else
5978 ac_cv_use_pnm='wxUSE_PNM=no'
5979 fi
5980
5981else
5982
5983 LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
5984 if test "x$LINE" != x ; then
5985 eval "DEFAULT_$LINE"
5986 else
5987 no_cache=1
5988 fi
5989
5990 ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
5991
5992fi
5993
5994
5995 eval "$ac_cv_use_pnm"
5996 if test "$no_cache" != 1; then
5997 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
5998 fi
5999
6000 if test "$wxUSE_PNM" = yes; then
6001 echo "$ac_t""yes" 1>&6
6002 else
6003 echo "$ac_t""no" 1>&6
6004 fi
6005
6006
b12915c1
VZ
6007fi
6008
10f2d63a
VZ
6009
6010 echo "saving argument cache $wx_arg_cache_file"
6011 mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
6012
6013
6014
6015echo $ac_n "checking for toolkit""... $ac_c" 1>&6
b4085ce6 6016echo "configure:6017: checking for toolkit" >&5
10f2d63a
VZ
6017
6018if test "$wxUSE_GUI" = "yes"; then
6019
b12915c1
VZ
6020if test "$USE_BEOS" = 1; then
6021 { echo "configure: error: BeOS GUI is not supported yet, use --disable-gui" 1>&2; exit 1; }
6022fi
6023
10f2d63a
VZ
6024if test "$TOOLKIT_GIVEN" = 1; then
6025 for toolkit in `echo $ALL_TOOLKITS`; do
6026 var=wxUSE_$toolkit
6027 eval "value=\$${var}"
6028 eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`"
6029 done
6030else
6031 for toolkit in `echo $ALL_TOOLKITS`; do
6032 if test "$has_toolkit_in_cache" != 1; then
6033 var=DEFAULT_DEFAULT_wxUSE_$toolkit
6034 else
6035 var=DEFAULT_wxUSE_$toolkit
6036 fi
6037 eval "wxUSE_$toolkit=\$${var}"
6038 done
6039fi
6040
b4085ce6 6041NUM_TOOLKITS=`expr ${wxUSE_GTK:-0} + ${wxUSE_MOTIF:-0} + ${wxUSE_MAC:-0} + ${wxUSE_WINE:-0} + ${wxUSE_MINGW:-0} + ${wxUSE_CYGWIN:-0}`
cf27ef00 6042
ec14dd32
VZ
6043case "${host}" in
6044 *-pc-os2_emx )
6045 NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
6046 # PATH_IFS is autodetected by OS/2's configure (usually ';')
6047 LEX_STEM="lexyy"
6048 ;;
6049 *)
6050 PATH_IFS=':'
6051 LEX_STEM="lex.yy"
6052 ;;
6053esac
10f2d63a
VZ
6054
6055case "$NUM_TOOLKITS" in
6056 1)
6057 ;;
6058 0)
6059 { echo "configure: error: Please specify a toolkit - cannot determine the default for ${host}" 1>&2; exit 1; }
6060 ;;
6061 *)
6062 { echo "configure: error: Please specify at most one toolkit (may be some are cached?)" 1>&2; exit 1; }
6063esac
6064
6065for toolkit in `echo $ALL_TOOLKITS`; do
6066 var=wxUSE_$toolkit
6067 eval "value=\$${var}"
6068 if test "x$value" != x; then
6069 cache_var=CACHE_$toolkit
6070 eval "cache=\$${cache_var}"
6071 if test "$cache" = 1; then
6072 echo "$var=$value" >> ${wx_arg_cache_file}
6073 fi
6074 if test "$value" = 1; then
6075 echo "$ac_t""`echo $toolkit | tr A-Z a-z`" 1>&6
6076 fi
6077 fi
6078done
6079
6080else
cf27ef00 6081 PATH_IFS=':'
10f2d63a
VZ
6082 echo "$ac_t""base only" 1>&6
6083fi
6084
6085
6086cat > confcache <<\EOF
6087# This file is a shell script that caches the results of configure
6088# tests run on this system so they can be shared between configure
6089# scripts and configure runs. It is not useful on other systems.
6090# If it contains results you don't want to keep, you may remove or edit it.
6091#
6092# By default, configure uses ./config.cache as the cache file,
6093# creating it if it does not exist already. You can give configure
6094# the --cache-file=FILE option to use a different cache file; that is
6095# what configure does when it calls configure scripts in
6096# subdirectories, so they share the cache.
6097# Giving --cache-file=/dev/null disables caching, for debugging configure.
6098# config.status only pays attention to the cache file if you give it the
6099# --recheck option to rerun configure.
6100#
6101EOF
6102# The following way of writing the cache mishandles newlines in values,
6103# but we know of no workaround that is simple, portable, and efficient.
6104# So, don't put newlines in cache variables' values.
6105# Ultrix sh set writes to stderr and can't be redirected directly,
6106# and sets the high bit in the cache file unless we assign to the vars.
6107(set) 2>&1 |
6108 case `(ac_space=' '; set | grep ac_space) 2>&1` in
6109 *ac_space=\ *)
6110 # `set' does not quote correctly, so add quotes (double-quote substitution
6111 # turns \\\\ into \\, and sed turns \\ into \).
6112 sed -n \
6113 -e "s/'/'\\\\''/g" \
6114 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
6115 ;;
6116 *)
6117 # `set' quotes correctly as required by POSIX, so do not add quotes.
6118 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
6119 ;;
6120 esac >> confcache
6121if cmp -s $cache_file confcache; then
6122 :
6123else
6124 if test -w $cache_file; then
6125 echo "updating cache $cache_file"
6126 cat confcache > $cache_file
6127 else
6128 echo "not updating unwritable cache $cache_file"
6129 fi
6130fi
6131rm -f confcache
6132
6133
e59890c3 6134if test "$build" != "$host" ; then
10f2d63a
VZ
6135 CC=$host_alias-gcc
6136 CXX=$host_alias-c++
6137 AR=$host_alias-ar
6138 RANLIB=$host_alias-ranlib
6139 DLLTOOL=$host_alias-dlltool
32832908 6140 RESCOMP=$host_alias-windres
10f2d63a
VZ
6141 LD=$host_alias-ld
6142 NM=$host_alias-nm
6143 STRIP=$host_alias-strip
10f2d63a
VZ
6144fi
6145
6146# Extract the first word of "gcc", so it can be a program name with args.
6147set dummy gcc; ac_word=$2
6148echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
b4085ce6 6149echo "configure:6150: checking for $ac_word" >&5
10f2d63a
VZ
6150if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
6151 echo $ac_n "(cached) $ac_c" 1>&6
6152else
6153 if test -n "$CC"; then
6154 ac_cv_prog_CC="$CC" # Let the user override the test.
6155else
6156 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6157 ac_dummy="$PATH"
6158 for ac_dir in $ac_dummy; do
6159 test -z "$ac_dir" && ac_dir=.
6160 if test -f $ac_dir/$ac_word; then
6161 ac_cv_prog_CC="gcc"
6162 break
6163 fi
6164 done
6165 IFS="$ac_save_ifs"
6166fi
6167fi
6168CC="$ac_cv_prog_CC"
6169if test -n "$CC"; then
6170 echo "$ac_t""$CC" 1>&6
6171else
6172 echo "$ac_t""no" 1>&6
6173fi
6174
6175if test -z "$CC"; then
6176 # Extract the first word of "cc", so it can be a program name with args.
6177set dummy cc; ac_word=$2
6178echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
b4085ce6 6179echo "configure:6180: checking for $ac_word" >&5
10f2d63a
VZ
6180if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
6181 echo $ac_n "(cached) $ac_c" 1>&6
6182else
6183 if test -n "$CC"; then
6184 ac_cv_prog_CC="$CC" # Let the user override the test.
6185else
6186 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6187 ac_prog_rejected=no
6188 ac_dummy="$PATH"
6189 for ac_dir in $ac_dummy; do
6190 test -z "$ac_dir" && ac_dir=.
6191 if test -f $ac_dir/$ac_word; then
6192 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
6193 ac_prog_rejected=yes
6194 continue
6195 fi
6196 ac_cv_prog_CC="cc"
6197 break
6198 fi
6199 done
6200 IFS="$ac_save_ifs"
6201if test $ac_prog_rejected = yes; then
6202 # We found a bogon in the path, so make sure we never use it.
6203 set dummy $ac_cv_prog_CC
6204 shift
6205 if test $# -gt 0; then
6206 # We chose a different compiler from the bogus one.
6207 # However, it has the same basename, so the bogon will be chosen
6208 # first if we set CC to just the basename; use the full file name.
6209 shift
6210 set dummy "$ac_dir/$ac_word" "$@"
6211 shift
6212 ac_cv_prog_CC="$@"
6213 fi
6214fi
6215fi
6216fi
6217CC="$ac_cv_prog_CC"
6218if test -n "$CC"; then
6219 echo "$ac_t""$CC" 1>&6
6220else
6221 echo "$ac_t""no" 1>&6
6222fi
6223
6224 if test -z "$CC"; then
6225 case "`uname -s`" in
6226 *win32* | *WIN32*)
6227 # Extract the first word of "cl", so it can be a program name with args.
6228set dummy cl; ac_word=$2
6229echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
b4085ce6 6230echo "configure:6231: checking for $ac_word" >&5
10f2d63a
VZ
6231if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
6232 echo $ac_n "(cached) $ac_c" 1>&6
6233else
6234 if test -n "$CC"; then
6235 ac_cv_prog_CC="$CC" # Let the user override the test.
6236else
6237 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6238 ac_dummy="$PATH"
6239 for ac_dir in $ac_dummy; do
6240 test -z "$ac_dir" && ac_dir=.
6241 if test -f $ac_dir/$ac_word; then
6242 ac_cv_prog_CC="cl"
6243 break
6244 fi
6245 done
6246 IFS="$ac_save_ifs"
6247fi
6248fi
6249CC="$ac_cv_prog_CC"
6250if test -n "$CC"; then
6251 echo "$ac_t""$CC" 1>&6
6252else
6253 echo "$ac_t""no" 1>&6
6254fi
6255 ;;
6256 esac
6257 fi
6258 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
6259fi
6260
6261echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
b4085ce6 6262echo "configure:6263: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
10f2d63a
VZ
6263
6264ac_ext=c
6265# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6266ac_cpp='$CPP $CPPFLAGS'
6267ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6268ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6269cross_compiling=$ac_cv_prog_cc_cross
6270
6271cat > conftest.$ac_ext << EOF
6272
b4085ce6 6273#line 6274 "configure"
10f2d63a
VZ
6274#include "confdefs.h"
6275
6276main(){return(0);}
6277EOF
b4085ce6 6278if { (eval echo configure:6279: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
6279 ac_cv_prog_cc_works=yes
6280 # If we can't run a trivial program, we are probably using a cross compiler.
6281 if (./conftest; exit) 2>/dev/null; then
6282 ac_cv_prog_cc_cross=no
6283 else
6284 ac_cv_prog_cc_cross=yes
6285 fi
6286else
6287 echo "configure: failed program was:" >&5
6288 cat conftest.$ac_ext >&5
6289 ac_cv_prog_cc_works=no
6290fi
6291rm -fr conftest*
6292ac_ext=c
6293# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6294ac_cpp='$CPP $CPPFLAGS'
6295ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6296ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6297cross_compiling=$ac_cv_prog_cc_cross
6298
6299echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
6300if test $ac_cv_prog_cc_works = no; then
6301 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
6302fi
6303echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
b4085ce6 6304echo "configure:6305: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
10f2d63a
VZ
6305echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
6306cross_compiling=$ac_cv_prog_cc_cross
6307
6308echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
b4085ce6 6309echo "configure:6310: checking whether we are using GNU C" >&5
10f2d63a
VZ
6310if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
6311 echo $ac_n "(cached) $ac_c" 1>&6
6312else
6313 cat > conftest.c <<EOF
6314#ifdef __GNUC__
6315 yes;
6316#endif
6317EOF
b4085ce6 6318if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:6319: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
10f2d63a
VZ
6319 ac_cv_prog_gcc=yes
6320else
6321 ac_cv_prog_gcc=no
6322fi
6323fi
6324
6325echo "$ac_t""$ac_cv_prog_gcc" 1>&6
6326
6327if test $ac_cv_prog_gcc = yes; then
6328 GCC=yes
6329else
6330 GCC=
6331fi
6332
6333ac_test_CFLAGS="${CFLAGS+set}"
6334ac_save_CFLAGS="$CFLAGS"
6335CFLAGS=
6336echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
b4085ce6 6337echo "configure:6338: checking whether ${CC-cc} accepts -g" >&5
10f2d63a
VZ
6338if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
6339 echo $ac_n "(cached) $ac_c" 1>&6
6340else
6341 echo 'void f(){}' > conftest.c
6342if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
6343 ac_cv_prog_cc_g=yes
6344else
6345 ac_cv_prog_cc_g=no
6346fi
6347rm -f conftest*
6348
6349fi
6350
6351echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
6352if test "$ac_test_CFLAGS" = set; then
6353 CFLAGS="$ac_save_CFLAGS"
6354elif test $ac_cv_prog_cc_g = yes; then
6355 if test "$GCC" = yes; then
6356 CFLAGS="-g -O2"
6357 else
6358 CFLAGS="-g"
6359 fi
6360else
6361 if test "$GCC" = yes; then
6362 CFLAGS="-O2"
6363 else
6364 CFLAGS=
6365 fi
6366fi
6367
6368
6369CFLAGS=`echo "$CFLAGS" | sed 's/-g//g'`
6370
6371echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
b4085ce6 6372echo "configure:6373: checking how to run the C preprocessor" >&5
10f2d63a
VZ
6373# On Suns, sometimes $CPP names a directory.
6374if test -n "$CPP" && test -d "$CPP"; then
6375 CPP=
6376fi
6377if test -z "$CPP"; then
6378if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
6379 echo $ac_n "(cached) $ac_c" 1>&6
6380else
6381 # This must be in double quotes, not single quotes, because CPP may get
6382 # substituted into the Makefile and "${CC-cc}" will confuse make.
6383 CPP="${CC-cc} -E"
6384 # On the NeXT, cc -E runs the code through the compiler's parser,
6385 # not just through cpp.
6386 cat > conftest.$ac_ext <<EOF
b4085ce6 6387#line 6388 "configure"
10f2d63a
VZ
6388#include "confdefs.h"
6389#include <assert.h>
6390Syntax Error
6391EOF
6392ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
b4085ce6 6393{ (eval echo configure:6394: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
6394ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6395if test -z "$ac_err"; then
6396 :
6397else
6398 echo "$ac_err" >&5
6399 echo "configure: failed program was:" >&5
6400 cat conftest.$ac_ext >&5
6401 rm -rf conftest*
6402 CPP="${CC-cc} -E -traditional-cpp"
6403 cat > conftest.$ac_ext <<EOF
b4085ce6 6404#line 6405 "configure"
10f2d63a
VZ
6405#include "confdefs.h"
6406#include <assert.h>
6407Syntax Error
6408EOF
6409ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
b4085ce6 6410{ (eval echo configure:6411: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
6411ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6412if test -z "$ac_err"; then
6413 :
6414else
6415 echo "$ac_err" >&5
6416 echo "configure: failed program was:" >&5
6417 cat conftest.$ac_ext >&5
6418 rm -rf conftest*
6419 CPP="${CC-cc} -nologo -E"
6420 cat > conftest.$ac_ext <<EOF
b4085ce6 6421#line 6422 "configure"
10f2d63a
VZ
6422#include "confdefs.h"
6423#include <assert.h>
6424Syntax Error
6425EOF
6426ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
b4085ce6 6427{ (eval echo configure:6428: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
6428ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6429if test -z "$ac_err"; then
6430 :
6431else
6432 echo "$ac_err" >&5
6433 echo "configure: failed program was:" >&5
6434 cat conftest.$ac_ext >&5
6435 rm -rf conftest*
6436 CPP=/lib/cpp
6437fi
6438rm -f conftest*
6439fi
6440rm -f conftest*
6441fi
6442rm -f conftest*
6443 ac_cv_prog_CPP="$CPP"
6444fi
6445 CPP="$ac_cv_prog_CPP"
6446else
6447 ac_cv_prog_CPP="$CPP"
6448fi
6449echo "$ac_t""$CPP" 1>&6
6450
6451
6452if test $ac_cv_prog_gcc = yes; then
6453 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
b4085ce6 6454echo "configure:6455: checking whether ${CC-cc} needs -traditional" >&5
10f2d63a
VZ
6455if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
6456 echo $ac_n "(cached) $ac_c" 1>&6
6457else
6458 ac_pattern="Autoconf.*'x'"
6459 cat > conftest.$ac_ext <<EOF
b4085ce6 6460#line 6461 "configure"
10f2d63a
VZ
6461#include "confdefs.h"
6462#include <sgtty.h>
6463Autoconf TIOCGETP
6464EOF
6465if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6466 egrep "$ac_pattern" >/dev/null 2>&1; then
6467 rm -rf conftest*
6468 ac_cv_prog_gcc_traditional=yes
6469else
6470 rm -rf conftest*
6471 ac_cv_prog_gcc_traditional=no
6472fi
6473rm -f conftest*
6474
6475
6476 if test $ac_cv_prog_gcc_traditional = no; then
6477 cat > conftest.$ac_ext <<EOF
b4085ce6 6478#line 6479 "configure"
10f2d63a
VZ
6479#include "confdefs.h"
6480#include <termio.h>
6481Autoconf TCGETA
6482EOF
6483if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6484 egrep "$ac_pattern" >/dev/null 2>&1; then
6485 rm -rf conftest*
6486 ac_cv_prog_gcc_traditional=yes
6487fi
6488rm -f conftest*
6489
6490 fi
6491fi
6492
6493echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
6494 if test $ac_cv_prog_gcc_traditional = yes; then
6495 CC="$CC -traditional"
6496 fi
6497fi
6498
6499
6500
6501ac_ext=C
6502# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6503ac_cpp='$CXXCPP $CPPFLAGS'
6504ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6505ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6506cross_compiling=$ac_cv_prog_cxx_cross
6507
6508
6509for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
6510do
6511# Extract the first word of "$ac_prog", so it can be a program name with args.
6512set dummy $ac_prog; ac_word=$2
6513echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
b4085ce6 6514echo "configure:6515: checking for $ac_word" >&5
10f2d63a
VZ
6515if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
6516 echo $ac_n "(cached) $ac_c" 1>&6
6517else
6518 if test -n "$CXX"; then
6519 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6520else
6521 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6522 ac_dummy="$PATH"
6523 for ac_dir in $ac_dummy; do
6524 test -z "$ac_dir" && ac_dir=.
6525 if test -f $ac_dir/$ac_word; then
6526 ac_cv_prog_CXX="$ac_prog"
6527 break
6528 fi
6529 done
6530 IFS="$ac_save_ifs"
6531fi
6532fi
6533CXX="$ac_cv_prog_CXX"
6534if test -n "$CXX"; then
6535 echo "$ac_t""$CXX" 1>&6
6536else
6537 echo "$ac_t""no" 1>&6
6538fi
6539
6540test -n "$CXX" && break
6541done
6542test -n "$CXX" || CXX="gcc"
6543
6544
6545echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
b4085ce6 6546echo "configure:6547: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
10f2d63a
VZ
6547
6548ac_ext=C
6549# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6550ac_cpp='$CXXCPP $CPPFLAGS'
6551ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6552ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6553cross_compiling=$ac_cv_prog_cxx_cross
6554
6555cat > conftest.$ac_ext << EOF
6556
b4085ce6 6557#line 6558 "configure"
10f2d63a
VZ
6558#include "confdefs.h"
6559
6560int main(){return(0);}
6561EOF
b4085ce6 6562if { (eval echo configure:6563: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
6563 ac_cv_prog_cxx_works=yes
6564 # If we can't run a trivial program, we are probably using a cross compiler.
6565 if (./conftest; exit) 2>/dev/null; then
6566 ac_cv_prog_cxx_cross=no
6567 else
6568 ac_cv_prog_cxx_cross=yes
6569 fi
6570else
6571 echo "configure: failed program was:" >&5
6572 cat conftest.$ac_ext >&5
6573 ac_cv_prog_cxx_works=no
6574fi
6575rm -fr conftest*
6576ac_ext=C
6577# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6578ac_cpp='$CXXCPP $CPPFLAGS'
6579ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6580ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6581cross_compiling=$ac_cv_prog_cxx_cross
6582
6583echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
6584if test $ac_cv_prog_cxx_works = no; then
6585 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
6586fi
6587echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
b4085ce6 6588echo "configure:6589: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
10f2d63a
VZ
6589echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
6590cross_compiling=$ac_cv_prog_cxx_cross
6591
6592echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
b4085ce6 6593echo "configure:6594: checking whether we are using GNU C++" >&5
10f2d63a
VZ
6594if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
6595 echo $ac_n "(cached) $ac_c" 1>&6
6596else
6597 cat > conftest.C <<EOF
6598#ifdef __GNUC__
6599 yes;
6600#endif
6601EOF
b4085ce6 6602if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:6603: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
10f2d63a
VZ
6603 ac_cv_prog_gxx=yes
6604else
6605 ac_cv_prog_gxx=no
6606fi
6607fi
6608
6609echo "$ac_t""$ac_cv_prog_gxx" 1>&6
6610
6611if test $ac_cv_prog_gxx = yes; then
6612 GXX=yes
6613else
6614 GXX=
6615fi
6616
6617ac_test_CXXFLAGS="${CXXFLAGS+set}"
6618ac_save_CXXFLAGS="$CXXFLAGS"
6619CXXFLAGS=
6620echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
b4085ce6 6621echo "configure:6622: checking whether ${CXX-g++} accepts -g" >&5
10f2d63a
VZ
6622if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
6623 echo $ac_n "(cached) $ac_c" 1>&6
6624else
6625 echo 'void f(){}' > conftest.cc
6626if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
6627 ac_cv_prog_cxx_g=yes
6628else
6629 ac_cv_prog_cxx_g=no
6630fi
6631rm -f conftest*
6632
6633fi
6634
6635echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
6636if test "$ac_test_CXXFLAGS" = set; then
6637 CXXFLAGS="$ac_save_CXXFLAGS"
6638elif test $ac_cv_prog_cxx_g = yes; then
6639 if test "$GXX" = yes; then
6640 CXXFLAGS="-g -O2"
6641 else
6642 CXXFLAGS="-g"
6643 fi
6644else
6645 if test "$GXX" = yes; then
6646 CXXFLAGS="-O2"
6647 else
6648 CXXFLAGS=
6649 fi
6650fi
6651
6652
6653echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
b4085ce6 6654echo "configure:6655: checking how to run the C++ preprocessor" >&5
10f2d63a
VZ
6655if test -z "$CXXCPP"; then
6656if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
6657 echo $ac_n "(cached) $ac_c" 1>&6
6658else
6659 ac_ext=C
6660# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6661ac_cpp='$CXXCPP $CPPFLAGS'
6662ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6663ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6664cross_compiling=$ac_cv_prog_cxx_cross
6665 CXXCPP="${CXX-g++} -E"
6666 cat > conftest.$ac_ext <<EOF
b4085ce6 6667#line 6668 "configure"
10f2d63a
VZ
6668#include "confdefs.h"
6669#include <stdlib.h>
6670EOF
6671ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
b4085ce6 6672{ (eval echo configure:6673: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
6673ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6674if test -z "$ac_err"; then
6675 :
6676else
6677 echo "$ac_err" >&5
6678 echo "configure: failed program was:" >&5
6679 cat conftest.$ac_ext >&5
6680 rm -rf conftest*
6681 CXXCPP=/lib/cpp
6682fi
6683rm -f conftest*
6684 ac_cv_prog_CXXCPP="$CXXCPP"
6685ac_ext=C
6686# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6687ac_cpp='$CXXCPP $CPPFLAGS'
6688ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6689ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6690cross_compiling=$ac_cv_prog_cxx_cross
6691fi
6692fi
6693CXXCPP="$ac_cv_prog_CXXCPP"
6694echo "$ac_t""$CXXCPP" 1>&6
6695
6696
6697CXXFLAGS=`echo "$CXXFLAGS" | sed 's/-g//g'`
6698
6699ac_ext=c
6700# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6701ac_cpp='$CPP $CPPFLAGS'
6702ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6703ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6704cross_compiling=$ac_cv_prog_cc_cross
6705
6706
6707# Extract the first word of "ranlib", so it can be a program name with args.
6708set dummy ranlib; ac_word=$2
6709echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
b4085ce6 6710echo "configure:6711: checking for $ac_word" >&5
10f2d63a
VZ
6711if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
6712 echo $ac_n "(cached) $ac_c" 1>&6
6713else
6714 if test -n "$RANLIB"; then
6715 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6716else
6717 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6718 ac_dummy="$PATH"
6719 for ac_dir in $ac_dummy; do
6720 test -z "$ac_dir" && ac_dir=.
6721 if test -f $ac_dir/$ac_word; then
6722 ac_cv_prog_RANLIB="ranlib"
6723 break
6724 fi
6725 done
6726 IFS="$ac_save_ifs"
6727 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
6728fi
6729fi
6730RANLIB="$ac_cv_prog_RANLIB"
6731if test -n "$RANLIB"; then
6732 echo "$ac_t""$RANLIB" 1>&6
6733else
6734 echo "$ac_t""no" 1>&6
6735fi
6736
6737
6738# Extract the first word of "ar", so it can be a program name with args.
6739set dummy ar; ac_word=$2
6740echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
b4085ce6 6741echo "configure:6742: checking for $ac_word" >&5
10f2d63a
VZ
6742if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
6743 echo $ac_n "(cached) $ac_c" 1>&6
6744else
6745 if test -n "$AR"; then
6746 ac_cv_prog_AR="$AR" # Let the user override the test.
6747else
6748 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6749 ac_dummy="$PATH"
6750 for ac_dir in $ac_dummy; do
6751 test -z "$ac_dir" && ac_dir=.
6752 if test -f $ac_dir/$ac_word; then
6753 ac_cv_prog_AR="ar"
6754 break
6755 fi
6756 done
6757 IFS="$ac_save_ifs"
6758 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
6759fi
6760fi
6761AR="$ac_cv_prog_AR"
6762if test -n "$AR"; then
6763 echo "$ac_t""$AR" 1>&6
6764else
6765 echo "$ac_t""no" 1>&6
6766fi
6767
6768
6769# Find a good install program. We prefer a C program (faster),
6770# so one script is as good as another. But avoid the broken or
6771# incompatible versions:
6772# SysV /etc/install, /usr/sbin/install
6773# SunOS /usr/etc/install
6774# IRIX /sbin/install
6775# AIX /bin/install
6776# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6777# AFS /usr/afsws/bin/install, which mishandles nonexistent args
6778# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6779# ./install, which can be erroneously created by make from ./install.sh.
6780echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
b4085ce6 6781echo "configure:6782: checking for a BSD compatible install" >&5
10f2d63a
VZ
6782if test -z "$INSTALL"; then
6783if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
6784 echo $ac_n "(cached) $ac_c" 1>&6
6785else
6786 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
6787 for ac_dir in $PATH; do
6788 # Account for people who put trailing slashes in PATH elements.
6789 case "$ac_dir/" in
6790 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
6791 *)
6792 # OSF1 and SCO ODT 3.0 have their own names for install.
6793 # Don't use installbsd from OSF since it installs stuff as root
6794 # by default.
6795 for ac_prog in ginstall scoinst install; do
6796 if test -f $ac_dir/$ac_prog; then
6797 if test $ac_prog = install &&
6798 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
6799 # AIX install. It has an incompatible calling convention.
6800 :
6801 else
6802 ac_cv_path_install="$ac_dir/$ac_prog -c"
6803 break 2
6804 fi
6805 fi
6806 done
6807 ;;
6808 esac
6809 done
6810 IFS="$ac_save_IFS"
6811
6812fi
6813 if test "${ac_cv_path_install+set}" = set; then
6814 INSTALL="$ac_cv_path_install"
6815 else
6816 # As a last resort, use the slow shell script. We don't cache a
6817 # path for INSTALL within a source directory, because that will
6818 # break other packages using the cache if that directory is
6819 # removed, or if the path is relative.
6820 INSTALL="$ac_install_sh"
6821 fi
6822fi
6823echo "$ac_t""$INSTALL" 1>&6
6824
6825# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6826# It thinks the first close brace ends the variable substitution.
6827test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6828
6829test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
6830
6831test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6832
6833
6834# Extract the first word of "strip", so it can be a program name with args.
6835set dummy strip; ac_word=$2
6836echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
b4085ce6 6837echo "configure:6838: checking for $ac_word" >&5
10f2d63a
VZ
6838if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
6839 echo $ac_n "(cached) $ac_c" 1>&6
6840else
6841 if test -n "$STRIP"; then
6842 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6843else
6844 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6845 ac_dummy="$PATH"
6846 for ac_dir in $ac_dummy; do
6847 test -z "$ac_dir" && ac_dir=.
6848 if test -f $ac_dir/$ac_word; then
6849 ac_cv_prog_STRIP="strip"
6850 break
6851 fi
6852 done
6853 IFS="$ac_save_ifs"
6854 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true"
6855fi
6856fi
6857STRIP="$ac_cv_prog_STRIP"
6858if test -n "$STRIP"; then
6859 echo "$ac_t""$STRIP" 1>&6
6860else
6861 echo "$ac_t""no" 1>&6
6862fi
6863
6864
6865echo $ac_n "checking "make for VPATH support"""... $ac_c" 1>&6
b4085ce6 6866echo "configure:6867: checking "make for VPATH support"" >&5
10f2d63a
VZ
6867cat - << EOF > confMake
6868check : file
6869 cp \$? \$@
6870 cp \$? final_file
6871EOF
6872
6873if test ! -d sub ; then
6874 mkdir sub
6875fi
6876echo dummy > sub/file
f6bcfd97 6877${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
10f2d63a
VZ
6878RESULT=$?
6879rm -f sub/file check final_file confMake
6880rmdir sub
6881if test "$RESULT" = 0; then
6882 echo "$ac_t""yes" 1>&6
6883else
6884 echo "$ac_t""no" 1>&6
6885 { echo "configure: error: You need a make-utility that is able to use the variable
6886VPATH correctly.
6887If your version of make does not support VPATH correctly" 1>&2; exit 1; }
6888fi
6889
6890for ac_prog in 'bison -y' byacc
6891do
6892# Extract the first word of "$ac_prog", so it can be a program name with args.
6893set dummy $ac_prog; ac_word=$2
6894echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
b4085ce6 6895echo "configure:6896: checking for $ac_word" >&5
10f2d63a
VZ
6896if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
6897 echo $ac_n "(cached) $ac_c" 1>&6
6898else
6899 if test -n "$YACC"; then
6900 ac_cv_prog_YACC="$YACC" # Let the user override the test.
6901else
6902 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6903 ac_dummy="$PATH"
6904 for ac_dir in $ac_dummy; do
6905 test -z "$ac_dir" && ac_dir=.
6906 if test -f $ac_dir/$ac_word; then
6907 ac_cv_prog_YACC="$ac_prog"
6908 break
6909 fi
6910 done
6911 IFS="$ac_save_ifs"
6912fi
6913fi
6914YACC="$ac_cv_prog_YACC"
6915if test -n "$YACC"; then
6916 echo "$ac_t""$YACC" 1>&6
6917else
6918 echo "$ac_t""no" 1>&6
6919fi
6920
6921test -n "$YACC" && break
6922done
6923test -n "$YACC" || YACC="yacc"
6924
6925
6926# Extract the first word of "flex", so it can be a program name with args.
6927set dummy flex; ac_word=$2
6928echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
b4085ce6 6929echo "configure:6930: checking for $ac_word" >&5
10f2d63a
VZ
6930if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
6931 echo $ac_n "(cached) $ac_c" 1>&6
6932else
6933 if test -n "$LEX"; then
6934 ac_cv_prog_LEX="$LEX" # Let the user override the test.
6935else
6936 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6937 ac_dummy="$PATH"
6938 for ac_dir in $ac_dummy; do
6939 test -z "$ac_dir" && ac_dir=.
6940 if test -f $ac_dir/$ac_word; then
6941 ac_cv_prog_LEX="flex"
6942 break
6943 fi
6944 done
6945 IFS="$ac_save_ifs"
6946 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
6947fi
6948fi
6949LEX="$ac_cv_prog_LEX"
6950if test -n "$LEX"; then
6951 echo "$ac_t""$LEX" 1>&6
6952else
6953 echo "$ac_t""no" 1>&6
6954fi
6955
6956if test -z "$LEXLIB"
6957then
6958 case "$LEX" in
6959 flex*) ac_lib=fl ;;
6960 *) ac_lib=l ;;
6961 esac
6962 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
b4085ce6 6963echo "configure:6964: checking for yywrap in -l$ac_lib" >&5
10f2d63a
VZ
6964ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
6965if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6966 echo $ac_n "(cached) $ac_c" 1>&6
6967else
6968 ac_save_LIBS="$LIBS"
6969LIBS="-l$ac_lib $LIBS"
6970cat > conftest.$ac_ext <<EOF
b4085ce6 6971#line 6972 "configure"
10f2d63a
VZ
6972#include "confdefs.h"
6973/* Override any gcc2 internal prototype to avoid an error. */
6974/* We use char because int might match the return type of a gcc2
6975 builtin and then its argument prototype would still apply. */
6976char yywrap();
6977
6978int main() {
6979yywrap()
6980; return 0; }
6981EOF
b4085ce6 6982if { (eval echo configure:6983: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
6983 rm -rf conftest*
6984 eval "ac_cv_lib_$ac_lib_var=yes"
6985else
6986 echo "configure: failed program was:" >&5
6987 cat conftest.$ac_ext >&5
6988 rm -rf conftest*
6989 eval "ac_cv_lib_$ac_lib_var=no"
6990fi
6991rm -f conftest*
6992LIBS="$ac_save_LIBS"
6993
6994fi
6995if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6996 echo "$ac_t""yes" 1>&6
6997 LEXLIB="-l$ac_lib"
6998else
6999 echo "$ac_t""no" 1>&6
7000fi
7001
7002fi
7003
7004
7005echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
b4085ce6 7006echo "configure:7007: checking whether ln -s works" >&5
10f2d63a
VZ
7007if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
7008 echo $ac_n "(cached) $ac_c" 1>&6
7009else
7010 rm -f conftestdata
7011if ln -s X conftestdata 2>/dev/null
7012then
7013 rm -f conftestdata
7014 ac_cv_prog_LN_S="ln -s"
7015else
7016 ac_cv_prog_LN_S=ln
7017fi
7018fi
7019LN_S="$ac_cv_prog_LN_S"
7020if test "$ac_cv_prog_LN_S" = "ln -s"; then
7021 echo "$ac_t""yes" 1>&6
7022else
7023 echo "$ac_t""no" 1>&6
7024fi
7025
7026
7027
7028SEARCH_INCLUDE="\
7029 /usr/local/include \
7030 \
7031 /usr/Motif-1.2/include \
7032 /usr/Motif-2.1/include \
7033 \
7034 /usr/include/Motif1.2 \
7035 /opt/xpm/include/X11 \
7036 /opt/GBxpm/include/ \
7037 /opt/GBxpm/X11/include/ \
7038 \
7039 /usr/Motif1.2/include \
7040 /usr/dt/include \
afc31813
VZ
7041 /usr/openwin/include \
7042 \
10f2d63a
VZ
7043 /usr/include/Xm \
7044 \
7045 /usr/X11R6/include \
afc31813 7046 /usr/X11R6.4/include \
10f2d63a
VZ
7047 /usr/X11R5/include \
7048 /usr/X11R4/include \
7049 \
10f2d63a
VZ
7050 /usr/include/X11R6 \
7051 /usr/include/X11R5 \
7052 /usr/include/X11R4 \
7053 \
7054 /usr/local/X11R6/include \
7055 /usr/local/X11R5/include \
7056 /usr/local/X11R4/include \
7057 \
7058 /usr/local/include/X11R6 \
7059 /usr/local/include/X11R5 \
7060 /usr/local/include/X11R4 \
7061 \
7062 /usr/X11/include \
7063 /usr/include/X11 \
7064 /usr/local/X11/include \
7065 /usr/local/include/X11 \
7066 \
7067 /usr/X386/include \
7068 /usr/x386/include \
7069 /usr/XFree86/include/X11 \
7070 \
cf27ef00 7071 X:/XFree86/include \
ec14dd32
VZ
7072 X:/XFree86/include/X11 \
7073 \
10f2d63a
VZ
7074 /usr/include/gtk \
7075 /usr/local/include/gtk \
7076 /usr/include/glib \
7077 /usr/local/include/glib \
7078 \
7079 /usr/include/qt \
7080 /usr/local/include/qt \
7081 \
7082 /usr/include/windows \
7083 /usr/include/wine \
7084 /usr/local/include/wine \
7085 \
7086 /usr/unsupported/include \
7087 /usr/athena/include \
7088 /usr/local/x11r5/include \
7089 /usr/lpp/Xamples/include \
7090 \
10f2d63a 7091 /usr/openwin/share/include \
928b5c08
VZ
7092 \
7093 /usr/include"
10f2d63a
VZ
7094
7095SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s/include/lib/g` "
7096
7097
7098cat > confcache <<\EOF
7099# This file is a shell script that caches the results of configure
7100# tests run on this system so they can be shared between configure
7101# scripts and configure runs. It is not useful on other systems.
7102# If it contains results you don't want to keep, you may remove or edit it.
7103#
7104# By default, configure uses ./config.cache as the cache file,
7105# creating it if it does not exist already. You can give configure
7106# the --cache-file=FILE option to use a different cache file; that is
7107# what configure does when it calls configure scripts in
7108# subdirectories, so they share the cache.
7109# Giving --cache-file=/dev/null disables caching, for debugging configure.
7110# config.status only pays attention to the cache file if you give it the
7111# --recheck option to rerun configure.
7112#
7113EOF
7114# The following way of writing the cache mishandles newlines in values,
7115# but we know of no workaround that is simple, portable, and efficient.
7116# So, don't put newlines in cache variables' values.
7117# Ultrix sh set writes to stderr and can't be redirected directly,
7118# and sets the high bit in the cache file unless we assign to the vars.
7119(set) 2>&1 |
7120 case `(ac_space=' '; set | grep ac_space) 2>&1` in
7121 *ac_space=\ *)
7122 # `set' does not quote correctly, so add quotes (double-quote substitution
7123 # turns \\\\ into \\, and sed turns \\ into \).
7124 sed -n \
7125 -e "s/'/'\\\\''/g" \
7126 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
7127 ;;
7128 *)
7129 # `set' quotes correctly as required by POSIX, so do not add quotes.
7130 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
7131 ;;
7132 esac >> confcache
7133if cmp -s $cache_file confcache; then
7134 :
7135else
7136 if test -w $cache_file; then
7137 echo "updating cache $cache_file"
7138 cat confcache > $cache_file
7139 else
7140 echo "not updating unwritable cache $cache_file"
7141 fi
7142fi
7143rm -f confcache
7144
7145
7146
dad6c0ea
VZ
7147AFMINSTALL=
7148
10f2d63a
VZ
7149if test "$wxUSE_GUI" = "yes"; then
7150
dad6c0ea
VZ
7151USE_GUI=1
7152
10f2d63a
VZ
7153TOOLKIT=
7154TOOLKIT_INCLUDE=
7155
7156GUIOBJS=
7157COMMONOBJS=
7158GENERICOBJS=
7159
7160GUI_TK_LIBRARY=
7161GUI_TK_LINK=
7162
7163WXGTK12=
f6bcfd97 7164WXGTK127=
6f72b082 7165WXGTK20=
10f2d63a
VZ
7166
7167WXWINE=
7168
10f2d63a
VZ
7169if test "$wxUSE_CYGWIN" = 1 || test "$wxUSE_MINGW" = 1 ; then
7170 if test "$cross_compiling" = "yes" ; then
e59890c3 7171 echo "configure: warning: skipping windows.h check for cross-compilation" 1>&2
10f2d63a
VZ
7172 else
7173 echo $ac_n "checking for Windows headers""... $ac_c" 1>&6
b4085ce6 7174echo "configure:7175: checking for Windows headers" >&5
10f2d63a
VZ
7175
7176ac_find_includes=
7177for ac_dir in $SEARCH_INCLUDE;
7178 do
7179 if test -f "$ac_dir/windows.h"; then
7180 ac_find_includes=$ac_dir
7181 break
7182 fi
7183 done
7184
7185 if test "$ac_find_includes" != "" ; then
7186 echo "$ac_t""found $ac_find_includes" 1>&6
7187 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE -I$ac_find_includes"
7188 else
7189 echo "$ac_t""no" 1>&6
7190 { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; }
7191 fi
7192 fi
7193
7194 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS msw"
7195 LIBS="$LIBS -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lctl3d32 -lcrtdll -ladvapi32 -lwsock32"
7196
f6bcfd97
BP
7197 if test "$wxUSE_ODBC" = "yes" ; then
7198 LIBS="$LIBS -lodbc32 -lole32 -loleaut32"
7199 fi
7200
10f2d63a
VZ
7201 if test "$wxUSE_MINGW" = 1; then
7202 LDFLAGS="$LDFLAGS -mwindows"
7203 fi
7204
7205 TOOLKIT=MSW
7206
7207 GUIOBJS="\$(MSW_GUIOBJS)"
7208 GUIHEADERS="\$(MSW_HEADERS)"
7209 COMMONOBJS="\$(MSW_COMMONOBJS)"
7210 GENERICOBJS="\$(MSW_GENERICOBJS)"
7211 UNIXOBJS=
7212 GUIDIST=MSW_DIST
32832908
VZ
7213
7214 RCINCSWITCH="--include-dir"
7215 RCDEFSWITCH="--define"
7216 RCPREPROCESSOR="--preprocessor \"\$(CC) -c -E -xc-header -DRC_INVOKED\""
7217 RCINPUTSWITCH="-i"
7218 RCOUTPUTSWITCH="-o"
7219 RESFLAGS="$RCPREPROCESSOR $RCINCSWITCH \$(top_srcdir)/include $RCINCSWITCH \$(top_srcdir)/\$(program_dir) $RCDEFSWITCH __WIN32__ $RCDEFSWITCH __WIN95__ $RCDEFSWITCH __GNUWIN32__"
7220
7221 RESPROGRAM="\$(RES_PROGRAM)"
7222
10f2d63a
VZ
7223fi
7224
7225if test "$wxUSE_GTK" = 1; then
6f72b082
OK
7226 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
7227if test "${with_gtk_prefix+set}" = set; then
7228 withval="$with_gtk_prefix"
7229 gtk_config_prefix="$withval"
7230else
7231 gtk_config_prefix=""
7232fi
7233
7234# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
7235if test "${with_gtk_exec_prefix+set}" = set; then
7236 withval="$with_gtk_exec_prefix"
7237 gtk_config_exec_prefix="$withval"
7238else
7239 gtk_config_exec_prefix=""
7240fi
7241
7242# Check whether --enable-gtktest or --disable-gtktest was given.
7243if test "${enable_gtktest+set}" = set; then
7244 enableval="$enable_gtktest"
7245 :
7246else
7247 enable_gtktest=yes
7248fi
7249
7250
7251 for module in . gthread
7252 do
7253 case "$module" in
7254 gthread)
7255 gtk_config_args="$gtk_config_args gthread"
7256 ;;
7257 esac
7258 done
7259
7260 if test x$gtk_config_exec_prefix != x ; then
7261 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
7262 if test x${GTK_CONFIG_2_0+set} != xset ; then
7263 GTK_CONFIG_2_0=$gtk_config_exec_prefix/bin/gtk-config-2.0
7264 fi
7265 fi
7266 if test x$gtk_config_prefix != x ; then
7267 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
7268 if test x${GTK_CONFIG_2_0+set} != xset ; then
7269 GTK_CONFIG_2_0=$gtk_config_prefix/bin/gtk-config-2.0
7270 fi
7271 fi
7272
7273 # Extract the first word of "gtk-config-2.0", so it can be a program name with args.
7274set dummy gtk-config-2.0; ac_word=$2
7275echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
b4085ce6 7276echo "configure:7277: checking for $ac_word" >&5
6f72b082
OK
7277if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG_2_0'+set}'`\" = set"; then
7278 echo $ac_n "(cached) $ac_c" 1>&6
7279else
7280 case "$GTK_CONFIG_2_0" in
7281 /*)
7282 ac_cv_path_GTK_CONFIG_2_0="$GTK_CONFIG_2_0" # Let the user override the test with a path.
7283 ;;
7284 ?:/*)
7285 ac_cv_path_GTK_CONFIG_2_0="$GTK_CONFIG_2_0" # Let the user override the test with a dos path.
7286 ;;
7287 *)
7288 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7289 ac_dummy="$PATH"
7290 for ac_dir in $ac_dummy; do
7291 test -z "$ac_dir" && ac_dir=.
7292 if test -f $ac_dir/$ac_word; then
7293 ac_cv_path_GTK_CONFIG_2_0="$ac_dir/$ac_word"
7294 break
7295 fi
7296 done
7297 IFS="$ac_save_ifs"
7298 test -z "$ac_cv_path_GTK_CONFIG_2_0" && ac_cv_path_GTK_CONFIG_2_0="no"
7299 ;;
7300esac
7301fi
7302GTK_CONFIG_2_0="$ac_cv_path_GTK_CONFIG_2_0"
7303if test -n "$GTK_CONFIG_2_0"; then
7304 echo "$ac_t""$GTK_CONFIG_2_0" 1>&6
7305else
7306 echo "$ac_t""no" 1>&6
7307fi
7308
7309 min_gtk_version=1.3.1
7310 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
b4085ce6 7311echo "configure:7312: checking for GTK - version >= $min_gtk_version" >&5
6f72b082
OK
7312 no_gtk=""
7313 if test "$GTK_CONFIG_2_0" = "no" ; then
7314 no_gtk=yes
7315 else
7316 GTK_CFLAGS=`$GTK_CONFIG_2_0 $gtk_config_args --cflags`
7317 GTK_LIBS=`$GTK_CONFIG_2_0 $gtk_config_args --libs`
7318 gtk_config_major_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \
7319 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
7320 gtk_config_minor_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \
7321 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
7322 gtk_config_micro_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \
7323 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
7324 if test "x$enable_gtktest" = "xyes" ; then
7325 ac_save_CFLAGS="$CFLAGS"
7326 ac_save_LIBS="$LIBS"
7327 CFLAGS="$CFLAGS $GTK_CFLAGS"
7328 LIBS="$GTK_LIBS $LIBS"
7329 rm -f conf.gtktest
7330 if test "$cross_compiling" = yes; then
7331 echo $ac_n "cross compiling; assumed OK... $ac_c"
7332else
7333 cat > conftest.$ac_ext <<EOF
b4085ce6 7334#line 7335 "configure"
6f72b082
OK
7335#include "confdefs.h"
7336
7337#include <gtk/gtk.h>
7338#include <stdio.h>
7339#include <stdlib.h>
7340
7341int
7342main ()
7343{
7344 int major, minor, micro;
7345 char *tmp_version;
7346
7347 system ("touch conf.gtktest");
7348
7349 /* HP/UX 9 (%@#!) writes to sscanf strings */
7350 tmp_version = g_strdup("$min_gtk_version");
7351 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
7352 printf("%s, bad version string\n", "$min_gtk_version");
7353 exit(1);
7354 }
7355
7356 if ((gtk_major_version != $gtk_config_major_version) ||
7357 (gtk_minor_version != $gtk_config_minor_version) ||
7358 (gtk_micro_version != $gtk_config_micro_version))
7359 {
7360 printf("\n*** 'gtk-config-2.0 --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
7361 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
7362 gtk_major_version, gtk_minor_version, gtk_micro_version);
7363 printf ("*** was found! If gtk-config-2.0 was correct, then it is best\n");
7364 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
7365 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
7366 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
7367 printf("*** required on your system.\n");
7368 printf("*** If gtk-config-2.0 was wrong, set the environment variable GTK_CONFIG_2_0\n");
7369 printf("*** to point to the correct copy of gtk-config-2.0, and remove the file config.cache\n");
7370 printf("*** before re-running configure\n");
7371 }
7372#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
7373 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
7374 (gtk_minor_version != GTK_MINOR_VERSION) ||
7375 (gtk_micro_version != GTK_MICRO_VERSION))
7376 {
7377 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
7378 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
7379 printf("*** library (version %d.%d.%d)\n",
7380 gtk_major_version, gtk_minor_version, gtk_micro_version);
7381 }
7382#endif /* defined (GTK_MAJOR_VERSION) ... */
7383 else
7384 {
7385 if ((gtk_major_version > major) ||
7386 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
7387 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
7388 {
7389 return 0;
7390 }
7391 else
7392 {
7393 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
7394 gtk_major_version, gtk_minor_version, gtk_micro_version);
7395 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
7396 major, minor, micro);
7397 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
7398 printf("***\n");
7399 printf("*** If you have already installed a sufficiently new version, this error\n");
7400 printf("*** probably means that the wrong copy of the gtk-config-2.0 shell script is\n");
7401 printf("*** being found. The easiest way to fix this is to remove the old version\n");
7402 printf("*** of GTK+, but you can also set the GTK_CONFIG_2_0 environment to point to the\n");
7403 printf("*** correct copy of gtk-config-2.0. (In this case, you will have to\n");
7404 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
7405 printf("*** so that the correct libraries are found at run-time))\n");
7406 }
7407 }
7408 return 1;
7409}
7410
7411EOF
b4085ce6 7412if { (eval echo configure:7413: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6f72b082
OK
7413then
7414 :
7415else
7416 echo "configure: failed program was:" >&5
7417 cat conftest.$ac_ext >&5
7418 rm -fr conftest*
7419 no_gtk=yes
7420fi
7421rm -fr conftest*
7422fi
7423
7424 CFLAGS="$ac_save_CFLAGS"
7425 LIBS="$ac_save_LIBS"
7426 fi
7427 fi
7428 if test "x$no_gtk" = x ; then
7429 echo "$ac_t""yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" 1>&6
7430 WXGTK20=1
7431 else
7432 echo "$ac_t""no" 1>&6
7433 if test "$GTK_CONFIG_2_0" = "no" ; then
7434 echo "*** The gtk-config-2.0 script installed by GTK could not be found"
7435 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
7436 echo "*** your path, or set the GTK_CONFIG_2_0 environment variable to the"
7437 echo "*** full path to gtk-config-2.0."
7438 else
7439 if test -f conf.gtktest ; then
7440 :
7441 else
7442 echo "*** Could not run GTK test program, checking why..."
7443 CFLAGS="$CFLAGS $GTK_CFLAGS"
7444 LIBS="$LIBS $GTK_LIBS"
7445 cat > conftest.$ac_ext <<EOF
b4085ce6 7446#line 7447 "configure"
6f72b082
OK
7447#include "confdefs.h"
7448
7449#include <gtk/gtk.h>
7450#include <stdio.h>
7451
7452int main() {
7453 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
7454; return 0; }
7455EOF
b4085ce6 7456if { (eval echo configure:7457: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6f72b082
OK
7457 rm -rf conftest*
7458 echo "*** The test program compiled, but did not run. This usually means"
7459 echo "*** that the run-time linker is not finding GTK or finding the wrong"
7460 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
7461 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
7462 echo "*** to the installed location Also, make sure you have run ldconfig if that"
7463 echo "*** is required on your system"
7464 echo "***"
7465 echo "*** If you have an old version installed, it is best to remove it, although"
7466 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
7467 echo "***"
7468 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
7469 echo "*** came with the system with the command"
7470 echo "***"
7471 echo "*** rpm --erase --nodeps gtk gtk-devel"
7472else
7473 echo "configure: failed program was:" >&5
7474 cat conftest.$ac_ext >&5
7475 rm -rf conftest*
7476 echo "*** The test program failed to compile or link. See the file config.log for the"
7477 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
7478 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
7479 echo "*** may want to edit the gtk-config-2.0 script: $GTK_CONFIG_2_0"
7480fi
7481rm -f conftest*
7482 CFLAGS="$ac_save_CFLAGS"
7483 LIBS="$ac_save_LIBS"
7484 fi
7485 fi
7486 GTK_CFLAGS=""
7487 GTK_LIBS=""
7488
7489
10f2d63a
VZ
7490 if test x$gtk_config_exec_prefix != x ; then
7491 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
7492 if test x${GTK_CONFIG+set} != xset ; then
7493 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
7494 fi
7495 fi
7496 if test x$gtk_config_prefix != x ; then
7497 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
7498 if test x${GTK_CONFIG+set} != xset ; then
7499 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
7500 fi
7501 fi
7502
7503 # Extract the first word of "gtk-config", so it can be a program name with args.
7504set dummy gtk-config; ac_word=$2
7505echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
b4085ce6 7506echo "configure:7507: checking for $ac_word" >&5
f6bcfd97
BP
7507if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
7508 echo $ac_n "(cached) $ac_c" 1>&6
7509else
7510 case "$GTK_CONFIG" in
7511 /*)
7512 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
7513 ;;
7514 ?:/*)
7515 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
7516 ;;
7517 *)
7518 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7519 ac_dummy="$PATH"
7520 for ac_dir in $ac_dummy; do
7521 test -z "$ac_dir" && ac_dir=.
7522 if test -f $ac_dir/$ac_word; then
7523 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
7524 break
7525 fi
7526 done
7527 IFS="$ac_save_ifs"
7528 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
7529 ;;
7530esac
7531fi
7532GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
7533if test -n "$GTK_CONFIG"; then
7534 echo "$ac_t""$GTK_CONFIG" 1>&6
7535else
7536 echo "$ac_t""no" 1>&6
7537fi
7538
7539 min_gtk_version=1.2.7
7540 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
b4085ce6 7541echo "configure:7542: checking for GTK - version >= $min_gtk_version" >&5
f6bcfd97
BP
7542 no_gtk=""
7543 if test "$GTK_CONFIG" != "no" ; then
7544 GTK_CFLAGS=`$GTK_CONFIG --cflags`
7545 GTK_LIBS=`$GTK_CONFIG --libs gthread`
7546 ac_save_CFLAGS="$CFLAGS"
7547 ac_save_LIBS="$LIBS"
7548 CFLAGS="$CFLAGS $GTK_CFLAGS"
7549 LIBS="$LIBS $GTK_LIBS"
7550 if test "$cross_compiling" = yes; then
7551 echo $ac_n "cross compiling; assumed OK... $ac_c"
7552else
7553 cat > conftest.$ac_ext <<EOF
b4085ce6 7554#line 7555 "configure"
f6bcfd97
BP
7555#include "confdefs.h"
7556
7557#include <gtk/gtk.h>
7558#include <gtk/gtkfeatures.h>
7559#include <stdio.h>
7560#include <stdlib.h>
7561
7562int
7563main ()
7564{
7565 int major, minor, micro;
7566
7567 if (sscanf("$min_gtk_version", "%d.%d.%d", &major, &minor, &micro) != 3) {
7568 printf("%s, bad version string\n", "$min_gtk_version");
7569 exit(1);
7570 }
7571
7572 if ((GTK_MAJOR_VERSION != gtk_major_version) ||
7573 (GTK_MINOR_VERSION != gtk_minor_version) ||
7574 (GTK_MICRO_VERSION != gtk_micro_version)) {
7575 printf("Headers vs. library version mismatch!\n");
7576 exit(1);
7577 }
7578
7579 if (gtk_minor_version == 1) return FALSE;
7580
7581 return !((gtk_major_version > major) ||
7582 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
7583 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)));
7584}
7585
7586EOF
b4085ce6 7587if { (eval echo configure:7588: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
f6bcfd97
BP
7588then
7589 :
7590else
7591 echo "configure: failed program was:" >&5
7592 cat conftest.$ac_ext >&5
7593 rm -fr conftest*
7594 no_gtk=yes
7595fi
7596rm -fr conftest*
7597fi
7598
7599 CFLAGS="$ac_save_CFLAGS"
7600 LIBS="$ac_save_LIBS"
7601 else
7602 no_gtk=yes
7603 fi
7604 if test "x$no_gtk" = x ; then
7605 echo "$ac_t""yes" 1>&6
7606 WXGTK127=1
7607 else
7608 echo "$ac_t""no" 1>&6
7609 GTK_CFLAGS=""
7610 GTK_LIBS=""
7611 :
7612 fi
7613
7614
7615
6f72b082 7616
f6bcfd97
BP
7617 if test x$gtk_config_exec_prefix != x ; then
7618 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
7619 if test x${GTK_CONFIG+set} != xset ; then
7620 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
7621 fi
7622 fi
7623 if test x$gtk_config_prefix != x ; then
7624 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
7625 if test x${GTK_CONFIG+set} != xset ; then
7626 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
7627 fi
7628 fi
7629
7630 # Extract the first word of "gtk-config", so it can be a program name with args.
7631set dummy gtk-config; ac_word=$2
7632echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
b4085ce6 7633echo "configure:7634: checking for $ac_word" >&5
10f2d63a
VZ
7634if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
7635 echo $ac_n "(cached) $ac_c" 1>&6
7636else
7637 case "$GTK_CONFIG" in
7638 /*)
7639 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
7640 ;;
7641 ?:/*)
7642 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
7643 ;;
7644 *)
7645 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7646 ac_dummy="$PATH"
7647 for ac_dir in $ac_dummy; do
7648 test -z "$ac_dir" && ac_dir=.
7649 if test -f $ac_dir/$ac_word; then
7650 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
7651 break
7652 fi
7653 done
7654 IFS="$ac_save_ifs"
7655 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
7656 ;;
7657esac
7658fi
7659GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
7660if test -n "$GTK_CONFIG"; then
7661 echo "$ac_t""$GTK_CONFIG" 1>&6
7662else
7663 echo "$ac_t""no" 1>&6
7664fi
7665
04165bec 7666 min_gtk_version=1.2.3
10f2d63a 7667 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
b4085ce6 7668echo "configure:7669: checking for GTK - version >= $min_gtk_version" >&5
10f2d63a
VZ
7669 no_gtk=""
7670 if test "$GTK_CONFIG" != "no" ; then
7671 GTK_CFLAGS=`$GTK_CONFIG --cflags`
2224580a 7672 GTK_LIBS=`$GTK_CONFIG --libs gthread`
10f2d63a
VZ
7673 ac_save_CFLAGS="$CFLAGS"
7674 ac_save_LIBS="$LIBS"
7675 CFLAGS="$CFLAGS $GTK_CFLAGS"
7676 LIBS="$LIBS $GTK_LIBS"
7677 if test "$cross_compiling" = yes; then
7678 echo $ac_n "cross compiling; assumed OK... $ac_c"
7679else
7680 cat > conftest.$ac_ext <<EOF
b4085ce6 7681#line 7682 "configure"
10f2d63a
VZ
7682#include "confdefs.h"
7683
7684#include <gtk/gtk.h>
f49f2b0c 7685#include <gtk/gtkfeatures.h>
10f2d63a 7686#include <stdio.h>
32832908 7687#include <stdlib.h>
10f2d63a
VZ
7688
7689int
7690main ()
7691{
7692 int major, minor, micro;
7693
7694 if (sscanf("$min_gtk_version", "%d.%d.%d", &major, &minor, &micro) != 3) {
7695 printf("%s, bad version string\n", "$min_gtk_version");
7696 exit(1);
7697 }
7698
f49f2b0c
RR
7699 if ((GTK_MAJOR_VERSION != gtk_major_version) ||
7700 (GTK_MINOR_VERSION != gtk_minor_version) ||
7701 (GTK_MICRO_VERSION != gtk_micro_version)) {
7702 printf("Headers vs. library version mismatch!\n");
7703 exit(1);
7704 }
7705
10f2d63a
VZ
7706 if (gtk_minor_version == 1) return FALSE;
7707
7708 return !((gtk_major_version > major) ||
7709 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
7710 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)));
7711}
7712
7713EOF
b4085ce6 7714if { (eval echo configure:7715: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10f2d63a
VZ
7715then
7716 :
7717else
7718 echo "configure: failed program was:" >&5
7719 cat conftest.$ac_ext >&5
7720 rm -fr conftest*
7721 no_gtk=yes
7722fi
7723rm -fr conftest*
7724fi
7725
7726 CFLAGS="$ac_save_CFLAGS"
7727 LIBS="$ac_save_LIBS"
7728 else
7729 no_gtk=yes
7730 fi
7731 if test "x$no_gtk" = x ; then
7732 echo "$ac_t""yes" 1>&6
7733 WXGTK12=1
7734 else
7735 echo "$ac_t""no" 1>&6
7736 GTK_CFLAGS=""
7737 GTK_LIBS=""
7e99ad86 7738 :
10f2d63a
VZ
7739 fi
7740
7741
7742
6f72b082
OK
7743
7744 fi
7745
7746
7747 rm -f conf.gtktest
7748
10f2d63a 7749
6f72b082 7750 if test "$WXGTK12" != 1 -a "$WXGTK20" != 1; then
7e99ad86
VZ
7751 { echo "configure: error:
7752 Please check that gtk-config is in path, the directory
7753 where GTK+ libraries are installed (returned by
7754 'gtk-config --libs' command) is in LD_LIBRARY_PATH or
7755 equivalent variable and GTK+ is version 1.2.3 or above.
7756 " 1>&2; exit 1; }
7757 fi
7758
10f2d63a 7759 TOOLKIT_INCLUDE="$GTK_CFLAGS"
2224580a
VZ
7760
7761
7762 GUI_TK_LIBRARY="$GTK_LIBS"
7763
10f2d63a
VZ
7764 TOOLKIT=GTK
7765
dad6c0ea
VZ
7766 AFMINSTALL=afminstall
7767
10f2d63a
VZ
7768 GUIOBJS="\$(GTK_GUIOBJS)"
7769 GUIHEADERS="\$(GTK_HEADERS)"
7770 COMMONOBJS="\$(GTK_COMMONOBJS)"
7771 GENERICOBJS="\$(GTK_GENERICOBJS)"
7772 GUIDEPS="\$(GTK_GUIDEPS)"
7773 COMMONDEPS="\$(GTK_COMMONDEPS)"
7774 GENERICDEPS="\$(GTK_GENERICDEPS)"
7775 UNIXOBJS="\$(UNIX_OBJS)"
d9d8273d 7776 UNIXDEPS="\$(UNIX_DEPS)"
10f2d63a 7777 GUIDIST=GTK_DIST
7ec2881a 7778
2224580a 7779 echo $ac_n "checking for gdk_im_open in -lgdk""... $ac_c" 1>&6
b4085ce6 7780echo "configure:7781: checking for gdk_im_open in -lgdk" >&5
7ec2881a
RR
7781ac_lib_var=`echo gdk'_'gdk_im_open | sed 'y%./+-%__p_%'`
7782if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7783 echo $ac_n "(cached) $ac_c" 1>&6
7784else
7785 ac_save_LIBS="$LIBS"
7786LIBS="-lgdk $LIBS"
7787cat > conftest.$ac_ext <<EOF
b4085ce6 7788#line 7789 "configure"
7ec2881a
RR
7789#include "confdefs.h"
7790/* Override any gcc2 internal prototype to avoid an error. */
7791/* We use char because int might match the return type of a gcc2
7792 builtin and then its argument prototype would still apply. */
7793char gdk_im_open();
7794
7795int main() {
7796gdk_im_open()
7797; return 0; }
7798EOF
b4085ce6 7799if { (eval echo configure:7800: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7ec2881a
RR
7800 rm -rf conftest*
7801 eval "ac_cv_lib_$ac_lib_var=yes"
7802else
7803 echo "configure: failed program was:" >&5
7804 cat conftest.$ac_ext >&5
7805 rm -rf conftest*
7806 eval "ac_cv_lib_$ac_lib_var=no"
7807fi
7808rm -f conftest*
7809LIBS="$ac_save_LIBS"
7810
7811fi
7812if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7813 echo "$ac_t""yes" 1>&6
7814 cat >> confdefs.h <<\EOF
7815#define HAVE_XIM 1
7816EOF
7817
7818else
7819 echo "$ac_t""no" 1>&6
7820fi
7821
10f2d63a
VZ
7822fi
7823
7824if test "$wxUSE_WINE" = 1; then
7825 echo $ac_n "checking for WINE includes""... $ac_c" 1>&6
b4085ce6 7826echo "configure:7827: checking for WINE includes" >&5
10f2d63a
VZ
7827
7828ac_find_includes=
7829for ac_dir in $SEARCH_INCLUDE;
7830 do
7831 if test -f "$ac_dir/windows.h"; then
7832 ac_find_includes=$ac_dir
7833 break
7834 fi
7835 done
7836
7837 if test "$ac_find_includes" != "" ; then
7838 echo "$ac_t""found $ac_find_includes" 1>&6
7839 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE -I$ac_find_includes"
7840 else
7841 echo "$ac_t""no" 1>&6
7842 { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; }
7843 fi
7844
7845 XPM_LINK=""
7846 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
b4085ce6 7847echo "configure:7848: checking for Xpm library" >&5
10f2d63a
VZ
7848
7849ac_find_libraries=
7850for ac_dir in $SEARCH_LIB;
7851 do
7852 for ac_extension in a so sl; do
7853 if test -f "$ac_dir/libXpm.$ac_extension"; then
7854 ac_find_libraries=$ac_dir
7855 break 2
7856 fi
7857 done
7858 done
7859
7860 if test "$ac_find_libraries" != "" ; then
7861 GUI_TK_LIBRARY="-L$ac_find_libraries"
7862 XPM_LINK="-lXpm"
7863 cat >> confdefs.h <<\EOF
7864#define wxHAVE_LIB_XPM 1
7865EOF
7866
7867 echo "$ac_t""found at $ac_find_libraries" 1>&6
7868 else
7869 echo "$ac_t""no" 1>&6
7870 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
7871 fi
7872
7873 MESA_LINK=""
7874 echo $ac_n "checking for Mesa library""... $ac_c" 1>&6
b4085ce6 7875echo "configure:7876: checking for Mesa library" >&5
10f2d63a
VZ
7876
7877ac_find_libraries=
7878for ac_dir in $SEARCH_LIB;
7879 do
7880 for ac_extension in a so sl; do
7881 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
7882 ac_find_libraries=$ac_dir
7883 break 2
7884 fi
7885 done
7886 done
7887
7888 if test "$ac_find_libraries" != "" ; then
7889 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -L$ac_find_libraries"
7890 MESA_LINK="-lMesaGL"
7891 echo "$ac_t""found at $ac_find_libraries" 1>&6
7892 else
7893 { echo "configure: error: no" 1>&2; exit 1; }
7894 fi
7895
8916026b 7896 GUI_TK_LINK="-lwine $MESA_LINK $XPM_LINK -lXxf86dga -lXxf86vm -lSM -lICE -lXext -lXmu -lX11 -lncurses"
10f2d63a
VZ
7897 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $GUI_TK_LINK"
7898 WXWINE=1
7899 TOOLKIT=MSW
7900
7901 GUIHEADERS="\$(MSW_HEADERS)"
7902 GUIOBJS="\$(MSW_GUIOBJS)"
7903 COMMONOBJS="\$(MSW_COMMONOBJS)"
7904 GENERICOBJS="\$(MSW_GENERICOBJS)"
7905 GUIDEPS="\$(MSW_GUIDEPS)"
7906 COMMONDEPS="\$(MSW_COMMONDEPS)"
7907 GENERICDEPS="\$(MSW_GENERICDEPS)"
7908 UNIXOBJS="\$(UNIX_OBJS)"
d9d8273d 7909 UNIXDEPS="\$(UNIX_DEPS)"
10f2d63a
VZ
7910 GUIDIST=MSW_DIST
7911fi
7912
37d403aa
JS
7913
7914# If we find X, set shell vars x_includes and x_libraries to the
ab9b9eab
VZ
7915# paths, otherwise set no_x=yes.
7916# Uses ac_ vars as temps to allow command line to override cache and checks.
7917# --without-x overrides everything else, but does not touch the cache.
7918echo $ac_n "checking for X""... $ac_c" 1>&6
b4085ce6 7919echo "configure:7920: checking for X" >&5
ab9b9eab
VZ
7920
7921# Check whether --with-x or --without-x was given.
7922if test "${with_x+set}" = set; then
7923 withval="$with_x"
7924 :
7925fi
ba337fe7 7926
ab9b9eab
VZ
7927# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7928if test "x$with_x" = xno; then
7929 # The user explicitly disabled X.
7930 have_x=disabled
7931else
7932 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
7933 # Both variables are already set.
7934 have_x=yes
7935 else
7936if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
7937 echo $ac_n "(cached) $ac_c" 1>&6
7938else
7939 # One or both of the vars are not set, and there is no cached value.
7940ac_x_includes=NO ac_x_libraries=NO
7941rm -fr conftestdir
7942if mkdir conftestdir; then
7943 cd conftestdir
7944 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
7945 cat > Imakefile <<'EOF'
7946acfindx:
7947 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
7948EOF
7949 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
7950 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7951 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
7952 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
10f2d63a 7953 for ac_extension in a so sl; do
ab9b9eab
VZ
7954 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
7955 test -f $ac_im_libdir/libX11.$ac_extension; then
7956 ac_im_usrlibdir=$ac_im_libdir; break
10f2d63a
VZ
7957 fi
7958 done
ab9b9eab
VZ
7959 # Screen out bogus values from the imake configuration. They are
7960 # bogus both because they are the default anyway, and because
7961 # using them would break gcc on systems where it needs fixed includes.
7962 case "$ac_im_incroot" in
7963 /usr/include) ;;
7964 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
7965 esac
7966 case "$ac_im_usrlibdir" in
7967 /usr/lib | /lib) ;;
7968 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
7969 esac
ba337fe7 7970 fi
ab9b9eab
VZ
7971 cd ..
7972 rm -fr conftestdir
7973fi
10f2d63a 7974
ab9b9eab
VZ
7975if test "$ac_x_includes" = NO; then
7976 # Guess where to find include files, by looking for this one X11 .h file.
7977 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
ba337fe7 7978
ab9b9eab
VZ
7979 # First, try using that file with no special directory specified.
7980cat > conftest.$ac_ext <<EOF
b4085ce6 7981#line 7982 "configure"
ab9b9eab
VZ
7982#include "confdefs.h"
7983#include <$x_direct_test_include>
7984EOF
7985ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
b4085ce6 7986{ (eval echo configure:7987: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ab9b9eab
VZ
7987ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7988if test -z "$ac_err"; then
7989 rm -rf conftest*
7990 # We can compile using X headers with no special include directory.
7991ac_x_includes=
7992else
7993 echo "$ac_err" >&5
7994 echo "configure: failed program was:" >&5
7995 cat conftest.$ac_ext >&5
7996 rm -rf conftest*
7997 # Look for the header file in a standard set of common directories.
7998# Check X11 before X11Rn because it is often a symlink to the current release.
7999 for ac_dir in \
8000 /usr/X11/include \
8001 /usr/X11R6/include \
8002 /usr/X11R5/include \
8003 /usr/X11R4/include \
8004 \
8005 /usr/include/X11 \
8006 /usr/include/X11R6 \
8007 /usr/include/X11R5 \
8008 /usr/include/X11R4 \
8009 \
8010 /usr/local/X11/include \
8011 /usr/local/X11R6/include \
8012 /usr/local/X11R5/include \
8013 /usr/local/X11R4/include \
8014 \
8015 /usr/local/include/X11 \
8016 /usr/local/include/X11R6 \
8017 /usr/local/include/X11R5 \
8018 /usr/local/include/X11R4 \
8019 \
8020 /usr/X386/include \
8021 /usr/x386/include \
8022 /usr/XFree86/include/X11 \
8023 \
8024 /usr/include \
8025 /usr/local/include \
8026 /usr/unsupported/include \
8027 /usr/athena/include \
8028 /usr/local/x11r5/include \
8029 /usr/lpp/Xamples/include \
8030 \
8031 /usr/openwin/include \
8032 /usr/openwin/share/include \
8033 ; \
10f2d63a 8034 do
ab9b9eab
VZ
8035 if test -r "$ac_dir/$x_direct_test_include"; then
8036 ac_x_includes=$ac_dir
10f2d63a
VZ
8037 break
8038 fi
8039 done
ab9b9eab
VZ
8040fi
8041rm -f conftest*
8042fi # $ac_x_includes = NO
10f2d63a 8043
ab9b9eab
VZ
8044if test "$ac_x_libraries" = NO; then
8045 # Check for the libraries.
10f2d63a 8046
ab9b9eab
VZ
8047 test -z "$x_direct_test_library" && x_direct_test_library=Xt
8048 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
10f2d63a 8049
ab9b9eab
VZ
8050 # See if we find them without any special options.
8051 # Don't add to $LIBS permanently.
8052 ac_save_LIBS="$LIBS"
8053 LIBS="-l$x_direct_test_library $LIBS"
8054cat > conftest.$ac_ext <<EOF
b4085ce6 8055#line 8056 "configure"
ab9b9eab 8056#include "confdefs.h"
10f2d63a 8057
ab9b9eab
VZ
8058int main() {
8059${x_direct_test_function}()
8060; return 0; }
8061EOF
b4085ce6 8062if { (eval echo configure:8063: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
8063 rm -rf conftest*
8064 LIBS="$ac_save_LIBS"
8065# We can link X programs with no special library path.
8066ac_x_libraries=
8067else
8068 echo "configure: failed program was:" >&5
8069 cat conftest.$ac_ext >&5
8070 rm -rf conftest*
8071 LIBS="$ac_save_LIBS"
8072# First see if replacing the include by lib works.
8073# Check X11 before X11Rn because it is often a symlink to the current release.
8074for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
8075 /usr/X11/lib \
8076 /usr/X11R6/lib \
8077 /usr/X11R5/lib \
8078 /usr/X11R4/lib \
8079 \
8080 /usr/lib/X11 \
8081 /usr/lib/X11R6 \
8082 /usr/lib/X11R5 \
8083 /usr/lib/X11R4 \
8084 \
8085 /usr/local/X11/lib \
8086 /usr/local/X11R6/lib \
8087 /usr/local/X11R5/lib \
8088 /usr/local/X11R4/lib \
8089 \
8090 /usr/local/lib/X11 \
8091 /usr/local/lib/X11R6 \
8092 /usr/local/lib/X11R5 \
8093 /usr/local/lib/X11R4 \
8094 \
8095 /usr/X386/lib \
8096 /usr/x386/lib \
8097 /usr/XFree86/lib/X11 \
8098 \
8099 /usr/lib \
8100 /usr/local/lib \
8101 /usr/unsupported/lib \
8102 /usr/athena/lib \
8103 /usr/local/x11r5/lib \
8104 /usr/lpp/Xamples/lib \
8105 /lib/usr/lib/X11 \
8106 \
8107 /usr/openwin/lib \
8108 /usr/openwin/share/lib \
8109 ; \
8110do
8111 for ac_extension in a so sl; do
8112 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
8113 ac_x_libraries=$ac_dir
8114 break 2
10f2d63a 8115 fi
10f2d63a 8116 done
ab9b9eab
VZ
8117done
8118fi
8119rm -f conftest*
8120fi # $ac_x_libraries = NO
10f2d63a 8121
ab9b9eab
VZ
8122if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
8123 # Didn't find X anywhere. Cache the known absence of X.
8124 ac_cv_have_x="have_x=no"
8125else
8126 # Record where we found X for the cache.
8127 ac_cv_have_x="have_x=yes \
8128 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
8129fi
8130fi
10f2d63a 8131 fi
ab9b9eab
VZ
8132 eval "$ac_cv_have_x"
8133fi # $with_x != no
10f2d63a 8134
ab9b9eab
VZ
8135if test "$have_x" != yes; then
8136 echo "$ac_t""$have_x" 1>&6
8137 no_x=yes
8138else
8139 # If each of the values was on the command line, it overrides each guess.
8140 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
8141 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
8142 # Update the cache value to reflect the command line values.
8143 ac_cv_have_x="have_x=yes \
8144 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
8145 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
8146fi
10f2d63a 8147
ab9b9eab
VZ
8148if test "$no_x" = yes; then
8149 # Not all programs may use this symbol, but it does not hurt to define it.
8150 cat >> confdefs.h <<\EOF
8151#define X_DISPLAY_MISSING 1
8152EOF
10f2d63a 8153
ab9b9eab
VZ
8154 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
8155else
8156 if test -n "$x_includes"; then
8157 X_CFLAGS="$X_CFLAGS -I$x_includes"
10f2d63a
VZ
8158 fi
8159
ab9b9eab
VZ
8160 # It would also be nice to do this for all -L options, not just this one.
8161 if test -n "$x_libraries"; then
8162 X_LIBS="$X_LIBS -L$x_libraries"
8163 # For Solaris; some versions of Sun CC require a space after -R and
8164 # others require no space. Words are not sufficient . . . .
8165 case "`(uname -sr) 2>/dev/null`" in
8166 "SunOS 5"*)
8167 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
b4085ce6 8168echo "configure:8169: checking whether -R must be followed by a space" >&5
ab9b9eab
VZ
8169 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
8170 cat > conftest.$ac_ext <<EOF
b4085ce6 8171#line 8172 "configure"
ab9b9eab 8172#include "confdefs.h"
10f2d63a 8173
ab9b9eab 8174int main() {
788deba1 8175
ab9b9eab
VZ
8176; return 0; }
8177EOF
b4085ce6 8178if { (eval echo configure:8179: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
8179 rm -rf conftest*
8180 ac_R_nospace=yes
8181else
8182 echo "configure: failed program was:" >&5
8183 cat conftest.$ac_ext >&5
8184 rm -rf conftest*
8185 ac_R_nospace=no
8186fi
8187rm -f conftest*
8188 if test $ac_R_nospace = yes; then
8189 echo "$ac_t""no" 1>&6
8190 X_LIBS="$X_LIBS -R$x_libraries"
8191 else
8192 LIBS="$ac_xsave_LIBS -R $x_libraries"
8193 cat > conftest.$ac_ext <<EOF
b4085ce6 8194#line 8195 "configure"
ab9b9eab 8195#include "confdefs.h"
788deba1 8196
ab9b9eab
VZ
8197int main() {
8198
8199; return 0; }
8200EOF
b4085ce6 8201if { (eval echo configure:8202: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
8202 rm -rf conftest*
8203 ac_R_space=yes
8204else
8205 echo "configure: failed program was:" >&5
8206 cat conftest.$ac_ext >&5
8207 rm -rf conftest*
8208 ac_R_space=no
8209fi
8210rm -f conftest*
8211 if test $ac_R_space = yes; then
8212 echo "$ac_t""yes" 1>&6
8213 X_LIBS="$X_LIBS -R $x_libraries"
8214 else
8215 echo "$ac_t""neither works" 1>&6
8216 fi
8217 fi
8218 LIBS="$ac_xsave_LIBS"
8219 esac
8220 fi
8221
8222 # Check for system-dependent libraries X programs must link with.
8223 # Do this before checking for the system-independent R6 libraries
8224 # (-lICE), since we may need -lsocket or whatever for X linking.
8225
8226 if test "$ISC" = yes; then
8227 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
8228 else
8229 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
8230 # libraries were built with DECnet support. And karl@cs.umb.edu says
8231 # the Alpha needs dnet_stub (dnet does not exist).
8232 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
b4085ce6 8233echo "configure:8234: checking for dnet_ntoa in -ldnet" >&5
ab9b9eab
VZ
8234ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
8235if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8236 echo $ac_n "(cached) $ac_c" 1>&6
8237else
8238 ac_save_LIBS="$LIBS"
8239LIBS="-ldnet $LIBS"
8240cat > conftest.$ac_ext <<EOF
b4085ce6 8241#line 8242 "configure"
ab9b9eab
VZ
8242#include "confdefs.h"
8243/* Override any gcc2 internal prototype to avoid an error. */
8244/* We use char because int might match the return type of a gcc2
8245 builtin and then its argument prototype would still apply. */
8246char dnet_ntoa();
8247
8248int main() {
8249dnet_ntoa()
8250; return 0; }
8251EOF
b4085ce6 8252if { (eval echo configure:8253: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
8253 rm -rf conftest*
8254 eval "ac_cv_lib_$ac_lib_var=yes"
8255else
8256 echo "configure: failed program was:" >&5
8257 cat conftest.$ac_ext >&5
8258 rm -rf conftest*
8259 eval "ac_cv_lib_$ac_lib_var=no"
8260fi
8261rm -f conftest*
8262LIBS="$ac_save_LIBS"
8263
8264fi
8265if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8266 echo "$ac_t""yes" 1>&6
8267 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
8268else
8269 echo "$ac_t""no" 1>&6
8270fi
8271
8272 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
8273 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
b4085ce6 8274echo "configure:8275: checking for dnet_ntoa in -ldnet_stub" >&5
ab9b9eab
VZ
8275ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
8276if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8277 echo $ac_n "(cached) $ac_c" 1>&6
8278else
8279 ac_save_LIBS="$LIBS"
8280LIBS="-ldnet_stub $LIBS"
8281cat > conftest.$ac_ext <<EOF
b4085ce6 8282#line 8283 "configure"
ab9b9eab
VZ
8283#include "confdefs.h"
8284/* Override any gcc2 internal prototype to avoid an error. */
8285/* We use char because int might match the return type of a gcc2
8286 builtin and then its argument prototype would still apply. */
8287char dnet_ntoa();
8288
8289int main() {
8290dnet_ntoa()
8291; return 0; }
8292EOF
b4085ce6 8293if { (eval echo configure:8294: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
8294 rm -rf conftest*
8295 eval "ac_cv_lib_$ac_lib_var=yes"
8296else
8297 echo "configure: failed program was:" >&5
8298 cat conftest.$ac_ext >&5
8299 rm -rf conftest*
8300 eval "ac_cv_lib_$ac_lib_var=no"
8301fi
8302rm -f conftest*
8303LIBS="$ac_save_LIBS"
8304
8305fi
8306if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8307 echo "$ac_t""yes" 1>&6
8308 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
8309else
8310 echo "$ac_t""no" 1>&6
8311fi
8312
8313 fi
8314
8315 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
8316 # to get the SysV transport functions.
8317 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
8318 # needs -lnsl.
8319 # The nsl library prevents programs from opening the X display
8320 # on Irix 5.2, according to dickey@clark.net.
8321 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
b4085ce6 8322echo "configure:8323: checking for gethostbyname" >&5
ab9b9eab
VZ
8323if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
8324 echo $ac_n "(cached) $ac_c" 1>&6
8325else
8326 cat > conftest.$ac_ext <<EOF
b4085ce6 8327#line 8328 "configure"
ab9b9eab
VZ
8328#include "confdefs.h"
8329/* System header to define __stub macros and hopefully few prototypes,
8330 which can conflict with char gethostbyname(); below. */
8331#include <assert.h>
8332/* Override any gcc2 internal prototype to avoid an error. */
8333/* We use char because int might match the return type of a gcc2
8334 builtin and then its argument prototype would still apply. */
8335char gethostbyname();
8336
8337int main() {
8338
8339/* The GNU C library defines this for functions which it implements
8340 to always fail with ENOSYS. Some functions are actually named
8341 something starting with __ and the normal name is an alias. */
8342#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
8343choke me
8344#else
e8482f24 8345gethostbyname();
ab9b9eab
VZ
8346#endif
8347
8348; return 0; }
8349EOF
b4085ce6 8350if { (eval echo configure:8351: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
8351 rm -rf conftest*
8352 eval "ac_cv_func_gethostbyname=yes"
8353else
8354 echo "configure: failed program was:" >&5
8355 cat conftest.$ac_ext >&5
8356 rm -rf conftest*
8357 eval "ac_cv_func_gethostbyname=no"
8358fi
8359rm -f conftest*
8360fi
8361
8362if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
8363 echo "$ac_t""yes" 1>&6
8364 :
8365else
8366 echo "$ac_t""no" 1>&6
8367fi
8368
8369 if test $ac_cv_func_gethostbyname = no; then
8370 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
b4085ce6 8371echo "configure:8372: checking for gethostbyname in -lnsl" >&5
ab9b9eab
VZ
8372ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
8373if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8374 echo $ac_n "(cached) $ac_c" 1>&6
8375else
8376 ac_save_LIBS="$LIBS"
8377LIBS="-lnsl $LIBS"
8378cat > conftest.$ac_ext <<EOF
b4085ce6 8379#line 8380 "configure"
ab9b9eab
VZ
8380#include "confdefs.h"
8381/* Override any gcc2 internal prototype to avoid an error. */
8382/* We use char because int might match the return type of a gcc2
8383 builtin and then its argument prototype would still apply. */
8384char gethostbyname();
8385
8386int main() {
8387gethostbyname()
8388; return 0; }
8389EOF
b4085ce6 8390if { (eval echo configure:8391: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
8391 rm -rf conftest*
8392 eval "ac_cv_lib_$ac_lib_var=yes"
8393else
8394 echo "configure: failed program was:" >&5
8395 cat conftest.$ac_ext >&5
8396 rm -rf conftest*
8397 eval "ac_cv_lib_$ac_lib_var=no"
8398fi
8399rm -f conftest*
8400LIBS="$ac_save_LIBS"
8401
8402fi
8403if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8404 echo "$ac_t""yes" 1>&6
8405 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
8406else
8407 echo "$ac_t""no" 1>&6
8408fi
8409
8410 fi
8411
8412 # lieder@skyler.mavd.honeywell.com says without -lsocket,
8413 # socket/setsockopt and other routines are undefined under SCO ODT
8414 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
8415 # on later versions), says simon@lia.di.epfl.ch: it contains
8416 # gethostby* variants that don't use the nameserver (or something).
8417 # -lsocket must be given before -lnsl if both are needed.
8418 # We assume that if connect needs -lnsl, so does gethostbyname.
8419 echo $ac_n "checking for connect""... $ac_c" 1>&6
b4085ce6 8420echo "configure:8421: checking for connect" >&5
ab9b9eab
VZ
8421if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
8422 echo $ac_n "(cached) $ac_c" 1>&6
8423else
8424 cat > conftest.$ac_ext <<EOF
b4085ce6 8425#line 8426 "configure"
ab9b9eab
VZ
8426#include "confdefs.h"
8427/* System header to define __stub macros and hopefully few prototypes,
8428 which can conflict with char connect(); below. */
8429#include <assert.h>
8430/* Override any gcc2 internal prototype to avoid an error. */
8431/* We use char because int might match the return type of a gcc2
8432 builtin and then its argument prototype would still apply. */
8433char connect();
8434
8435int main() {
8436
8437/* The GNU C library defines this for functions which it implements
8438 to always fail with ENOSYS. Some functions are actually named
8439 something starting with __ and the normal name is an alias. */
8440#if defined (__stub_connect) || defined (__stub___connect)
8441choke me
8442#else
e8482f24 8443connect();
ab9b9eab
VZ
8444#endif
8445
8446; return 0; }
8447EOF
b4085ce6 8448if { (eval echo configure:8449: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
8449 rm -rf conftest*
8450 eval "ac_cv_func_connect=yes"
8451else
8452 echo "configure: failed program was:" >&5
8453 cat conftest.$ac_ext >&5
8454 rm -rf conftest*
8455 eval "ac_cv_func_connect=no"
8456fi
8457rm -f conftest*
8458fi
8459
8460if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
8461 echo "$ac_t""yes" 1>&6
8462 :
8463else
8464 echo "$ac_t""no" 1>&6
8465fi
8466
8467 if test $ac_cv_func_connect = no; then
8468 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
b4085ce6 8469echo "configure:8470: checking for connect in -lsocket" >&5
ab9b9eab
VZ
8470ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
8471if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8472 echo $ac_n "(cached) $ac_c" 1>&6
8473else
8474 ac_save_LIBS="$LIBS"
8475LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
8476cat > conftest.$ac_ext <<EOF
b4085ce6 8477#line 8478 "configure"
ab9b9eab
VZ
8478#include "confdefs.h"
8479/* Override any gcc2 internal prototype to avoid an error. */
8480/* We use char because int might match the return type of a gcc2
8481 builtin and then its argument prototype would still apply. */
8482char connect();
8483
8484int main() {
8485connect()
8486; return 0; }
8487EOF
b4085ce6 8488if { (eval echo configure:8489: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
8489 rm -rf conftest*
8490 eval "ac_cv_lib_$ac_lib_var=yes"
8491else
8492 echo "configure: failed program was:" >&5
8493 cat conftest.$ac_ext >&5
8494 rm -rf conftest*
8495 eval "ac_cv_lib_$ac_lib_var=no"
8496fi
8497rm -f conftest*
8498LIBS="$ac_save_LIBS"
8499
8500fi
8501if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8502 echo "$ac_t""yes" 1>&6
8503 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
8504else
8505 echo "$ac_t""no" 1>&6
8506fi
8507
8508 fi
8509
8510 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
8511 echo $ac_n "checking for remove""... $ac_c" 1>&6
b4085ce6 8512echo "configure:8513: checking for remove" >&5
ab9b9eab
VZ
8513if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
8514 echo $ac_n "(cached) $ac_c" 1>&6
8515else
8516 cat > conftest.$ac_ext <<EOF
b4085ce6 8517#line 8518 "configure"
ab9b9eab
VZ
8518#include "confdefs.h"
8519/* System header to define __stub macros and hopefully few prototypes,
8520 which can conflict with char remove(); below. */
8521#include <assert.h>
8522/* Override any gcc2 internal prototype to avoid an error. */
8523/* We use char because int might match the return type of a gcc2
8524 builtin and then its argument prototype would still apply. */
8525char remove();
8526
8527int main() {
8528
8529/* The GNU C library defines this for functions which it implements
8530 to always fail with ENOSYS. Some functions are actually named
8531 something starting with __ and the normal name is an alias. */
8532#if defined (__stub_remove) || defined (__stub___remove)
8533choke me
8534#else
e8482f24 8535remove();
ab9b9eab
VZ
8536#endif
8537
8538; return 0; }
8539EOF
b4085ce6 8540if { (eval echo configure:8541: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
8541 rm -rf conftest*
8542 eval "ac_cv_func_remove=yes"
8543else
8544 echo "configure: failed program was:" >&5
8545 cat conftest.$ac_ext >&5
8546 rm -rf conftest*
8547 eval "ac_cv_func_remove=no"
8548fi
8549rm -f conftest*
8550fi
8551
8552if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
8553 echo "$ac_t""yes" 1>&6
8554 :
8555else
8556 echo "$ac_t""no" 1>&6
8557fi
8558
8559 if test $ac_cv_func_remove = no; then
8560 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
b4085ce6 8561echo "configure:8562: checking for remove in -lposix" >&5
ab9b9eab
VZ
8562ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
8563if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8564 echo $ac_n "(cached) $ac_c" 1>&6
8565else
8566 ac_save_LIBS="$LIBS"
8567LIBS="-lposix $LIBS"
8568cat > conftest.$ac_ext <<EOF
b4085ce6 8569#line 8570 "configure"
ab9b9eab
VZ
8570#include "confdefs.h"
8571/* Override any gcc2 internal prototype to avoid an error. */
8572/* We use char because int might match the return type of a gcc2
8573 builtin and then its argument prototype would still apply. */
8574char remove();
8575
8576int main() {
8577remove()
8578; return 0; }
8579EOF
b4085ce6 8580if { (eval echo configure:8581: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
8581 rm -rf conftest*
8582 eval "ac_cv_lib_$ac_lib_var=yes"
8583else
8584 echo "configure: failed program was:" >&5
8585 cat conftest.$ac_ext >&5
8586 rm -rf conftest*
8587 eval "ac_cv_lib_$ac_lib_var=no"
8588fi
8589rm -f conftest*
8590LIBS="$ac_save_LIBS"
8591
8592fi
8593if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8594 echo "$ac_t""yes" 1>&6
8595 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
8596else
8597 echo "$ac_t""no" 1>&6
8598fi
8599
8600 fi
8601
8602 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
8603 echo $ac_n "checking for shmat""... $ac_c" 1>&6
b4085ce6 8604echo "configure:8605: checking for shmat" >&5
ab9b9eab
VZ
8605if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
8606 echo $ac_n "(cached) $ac_c" 1>&6
8607else
8608 cat > conftest.$ac_ext <<EOF
b4085ce6 8609#line 8610 "configure"
ab9b9eab
VZ
8610#include "confdefs.h"
8611/* System header to define __stub macros and hopefully few prototypes,
8612 which can conflict with char shmat(); below. */
8613#include <assert.h>
8614/* Override any gcc2 internal prototype to avoid an error. */
8615/* We use char because int might match the return type of a gcc2
8616 builtin and then its argument prototype would still apply. */
8617char shmat();
8618
8619int main() {
8620
8621/* The GNU C library defines this for functions which it implements
8622 to always fail with ENOSYS. Some functions are actually named
8623 something starting with __ and the normal name is an alias. */
8624#if defined (__stub_shmat) || defined (__stub___shmat)
8625choke me
8626#else
e8482f24 8627shmat();
ab9b9eab
VZ
8628#endif
8629
8630; return 0; }
8631EOF
b4085ce6 8632if { (eval echo configure:8633: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
8633 rm -rf conftest*
8634 eval "ac_cv_func_shmat=yes"
8635else
8636 echo "configure: failed program was:" >&5
8637 cat conftest.$ac_ext >&5
8638 rm -rf conftest*
8639 eval "ac_cv_func_shmat=no"
8640fi
8641rm -f conftest*
8642fi
8643
8644if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
8645 echo "$ac_t""yes" 1>&6
8646 :
8647else
8648 echo "$ac_t""no" 1>&6
8649fi
8650
8651 if test $ac_cv_func_shmat = no; then
8652 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
b4085ce6 8653echo "configure:8654: checking for shmat in -lipc" >&5
ab9b9eab
VZ
8654ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
8655if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8656 echo $ac_n "(cached) $ac_c" 1>&6
8657else
8658 ac_save_LIBS="$LIBS"
8659LIBS="-lipc $LIBS"
8660cat > conftest.$ac_ext <<EOF
b4085ce6 8661#line 8662 "configure"
ab9b9eab
VZ
8662#include "confdefs.h"
8663/* Override any gcc2 internal prototype to avoid an error. */
8664/* We use char because int might match the return type of a gcc2
8665 builtin and then its argument prototype would still apply. */
8666char shmat();
8667
8668int main() {
8669shmat()
8670; return 0; }
8671EOF
b4085ce6 8672if { (eval echo configure:8673: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
8673 rm -rf conftest*
8674 eval "ac_cv_lib_$ac_lib_var=yes"
8675else
8676 echo "configure: failed program was:" >&5
8677 cat conftest.$ac_ext >&5
8678 rm -rf conftest*
8679 eval "ac_cv_lib_$ac_lib_var=no"
8680fi
8681rm -f conftest*
8682LIBS="$ac_save_LIBS"
8683
8684fi
8685if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8686 echo "$ac_t""yes" 1>&6
8687 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
8688else
8689 echo "$ac_t""no" 1>&6
8690fi
8691
8692 fi
8693 fi
8694
8695 # Check for libraries that X11R6 Xt/Xaw programs need.
8696 ac_save_LDFLAGS="$LDFLAGS"
8697 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
8698 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
8699 # check for ICE first), but we must link in the order -lSM -lICE or
8700 # we get undefined symbols. So assume we have SM if we have ICE.
8701 # These have to be linked with before -lX11, unlike the other
8702 # libraries we check for below, so use a different variable.
8703 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
8704 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
b4085ce6 8705echo "configure:8706: checking for IceConnectionNumber in -lICE" >&5
ab9b9eab
VZ
8706ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
8707if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8708 echo $ac_n "(cached) $ac_c" 1>&6
8709else
8710 ac_save_LIBS="$LIBS"
8711LIBS="-lICE $X_EXTRA_LIBS $LIBS"
8712cat > conftest.$ac_ext <<EOF
b4085ce6 8713#line 8714 "configure"
ab9b9eab
VZ
8714#include "confdefs.h"
8715/* Override any gcc2 internal prototype to avoid an error. */
8716/* We use char because int might match the return type of a gcc2
8717 builtin and then its argument prototype would still apply. */
8718char IceConnectionNumber();
8719
8720int main() {
8721IceConnectionNumber()
8722; return 0; }
8723EOF
b4085ce6 8724if { (eval echo configure:8725: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
8725 rm -rf conftest*
8726 eval "ac_cv_lib_$ac_lib_var=yes"
8727else
8728 echo "configure: failed program was:" >&5
8729 cat conftest.$ac_ext >&5
8730 rm -rf conftest*
8731 eval "ac_cv_lib_$ac_lib_var=no"
8732fi
8733rm -f conftest*
8734LIBS="$ac_save_LIBS"
8735
8736fi
8737if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8738 echo "$ac_t""yes" 1>&6
8739 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
8740else
8741 echo "$ac_t""no" 1>&6
8742fi
8743
8744 LDFLAGS="$ac_save_LDFLAGS"
8745
8746fi
8747
37d403aa
JS
8748CPPFLAGS="$CPPFLAGS $X_CFLAGS"
8749LDFLAGS="$LDFLAGS $X_LIBS"
ab9b9eab 8750
37d403aa 8751if test "$wxUSE_MOTIF" = 1; then
ab9b9eab 8752 if test "$no_x" = "yes"; then
37d403aa 8753 { echo "configure: error: X11 not found" 1>&2; exit 1; }
ab9b9eab
VZ
8754 fi
8755
8756 GUI_TK_LIBRARY="$X_LIBS"
8757 TOOLKIT_INCLUDE="$X_CFLAGS"
8758
dad6c0ea
VZ
8759 AFMINSTALL=afminstall
8760
ab9b9eab 8761
cd6d6d5b
VZ
8762 COMPILED_X_PROGRAM=0
8763
ab9b9eab 8764 echo $ac_n "checking for Motif/Lesstif headers""... $ac_c" 1>&6
b4085ce6 8765echo "configure:8766: checking for Motif/Lesstif headers" >&5
ab9b9eab
VZ
8766
8767ac_find_includes=
8768for ac_dir in $SEARCH_INCLUDE;
8769 do
8770 if test -f "$ac_dir/Xm/Xm.h"; then
8771 ac_find_includes=$ac_dir
8772 break
8773 fi
8774 done
8775
8776 if test "$ac_find_includes" != "" ; then
8777 echo "$ac_t""found $ac_find_includes" 1>&6
8778 else
cd6d6d5b 8779 cat > conftest.$ac_ext <<EOF
b4085ce6 8780#line 8781 "configure"
cd6d6d5b
VZ
8781#include "confdefs.h"
8782
8783 #include <Xm/Xm.h>
8784
8785int main() {
8786
8787 int version;
8788
8789 version = xmUseVersion;
8790
8791; return 0; }
8792EOF
b4085ce6 8793if { (eval echo configure:8794: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
cd6d6d5b
VZ
8794 rm -rf conftest*
8795
8796 echo "$ac_t""found in default search path" 1>&6
8797 COMPILED_X_PROGRAM=1
8798
8799else
8800 echo "configure: failed program was:" >&5
8801 cat conftest.$ac_ext >&5
8802 rm -rf conftest*
8803
8804 echo "$ac_t""no" 1>&6
8805 { echo "configure: error: please set CFLAGS to contain the location of Xm/Xm.h" 1>&2; exit 1; }
8806
8807
8808fi
8809rm -f conftest*
ab9b9eab
VZ
8810 fi
8811
cd6d6d5b
VZ
8812 if test "$COMPILED_X_PROGRAM" = 0; then
8813 echo $ac_n "checking for Motif/Lesstif library""... $ac_c" 1>&6
b4085ce6 8814echo "configure:8815: checking for Motif/Lesstif library" >&5
cd6d6d5b 8815
ab9b9eab
VZ
8816ac_find_libraries=
8817for ac_dir in $SEARCH_LIB;
8818 do
8819 for ac_extension in a so sl; do
8820 if test -f "$ac_dir/libXm.$ac_extension"; then
8821 ac_find_libraries=$ac_dir
8822 break 2
8823 fi
8824 done
8825 done
8826
cd6d6d5b
VZ
8827 if test "$ac_find_libraries" != "" ; then
8828
ab9b9eab
VZ
8829 ac_path_to_include=$ac_find_includes
8830 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
8831 result=$?
8832 if test $result = 0; then
8833 ac_path_to_include=""
8834 else
8835 ac_path_to_include="-I$ac_find_includes"
8836 fi
8837
cd6d6d5b 8838
ab9b9eab
VZ
8839 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
8840 result=$?
8841 if test $result = 0; then
8842 ac_path_to_link=""
8843 else
8844 ac_path_to_link="-L$ac_find_libraries"
8845 fi
8846
8847
cd6d6d5b
VZ
8848 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $ac_path_to_link"
8849 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE $ac_path_to_include"
8850 echo "$ac_t""found at $ac_find_libraries" 1>&6
8851 else
8852 cat > conftest.$ac_ext <<EOF
b4085ce6 8853#line 8854 "configure"
cd6d6d5b 8854#include "confdefs.h"
ab9b9eab 8855
cd6d6d5b
VZ
8856 #include <Xm/Xm.h>
8857
8858int main() {
ab9b9eab 8859
cd6d6d5b 8860 int version;
ab9b9eab 8861
cd6d6d5b
VZ
8862 version = xmUseVersion;
8863
8864; return 0; }
8865EOF
b4085ce6 8866if { (eval echo configure:8867: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
cd6d6d5b
VZ
8867 rm -rf conftest*
8868
8869 echo "$ac_t""found in default search path" 1>&6
8870 COMPILED_X_PROGRAM=1
8871
8872else
8873 echo "configure: failed program was:" >&5
8874 cat conftest.$ac_ext >&5
8875 rm -rf conftest*
8876
8877 echo "$ac_t""no" 1>&6
8878 { echo "configure: error: please set LDFLAGS to contain the location of libXm" 1>&2; exit 1; }
8879
8880
8881fi
8882rm -f conftest*
8883 fi
ab9b9eab
VZ
8884 fi
8885
cd6d6d5b 8886
ab9b9eab
VZ
8887 XPM_LINK=""
8888 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
b4085ce6 8889echo "configure:8890: checking for Xpm library" >&5
ab9b9eab
VZ
8890
8891ac_find_libraries=
8892for ac_dir in $SEARCH_LIB;
8893 do
8894 for ac_extension in a so sl; do
8895 if test -f "$ac_dir/libXpm.$ac_extension"; then
8896 ac_find_libraries=$ac_dir
8897 break 2
8898 fi
8899 done
8900 done
8901
8902 if test "$ac_find_libraries" != "" ; then
8903
8904 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
8905 result=$?
8906 if test $result = 0; then
8907 ac_path_to_link=""
8908 else
8909 ac_path_to_link="-L$ac_find_libraries"
8910 fi
8911
8912 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $ac_path_to_link"
8913 XPM_LINK="-lXpm "
8914 cat >> confdefs.h <<\EOF
8915#define wxHAVE_LIB_XPM 1
8916EOF
8917
8918 echo "$ac_t""found at $ac_find_libraries" 1>&6
8919 else
cd6d6d5b 8920 cat > conftest.$ac_ext <<EOF
b4085ce6 8921#line 8922 "configure"
cd6d6d5b
VZ
8922#include "confdefs.h"
8923
8924 #include <X11/xpm.h>
8925
8926int main() {
8927
8928 int version;
8929
8930 version = XpmLibraryVersion();
8931
8932; return 0; }
8933EOF
b4085ce6 8934if { (eval echo configure:8935: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
cd6d6d5b
VZ
8935 rm -rf conftest*
8936
f6bcfd97
BP
8937 XPM_LINK="-lXpm "
8938 cat >> confdefs.h <<\EOF
3ace2e6d
SN
8939#define wxHAVE_LIB_XPM 1
8940EOF
8941
8942 echo "$ac_t""found in default search path" 1>&6
cd6d6d5b
VZ
8943 COMPILED_X_PROGRAM=0
8944
8945else
8946 echo "configure: failed program was:" >&5
8947 cat conftest.$ac_ext >&5
8948 rm -rf conftest*
8949
8950 echo "$ac_t""no" 1>&6
8951 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
8952
8953
8954fi
8955rm -f conftest*
ab9b9eab
VZ
8956 fi
8957
8916026b 8958 GUI_TK_LINK="-lXm $XPM_LINK -lXmu -lXext -lXt -lX11"
ab9b9eab
VZ
8959 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $GUI_TK_LINK"
8960 TOOLKIT=MOTIF
8961
8962 GUIHEADERS="\$(MOTIF_HEADERS)"
8963 GUIOBJS="\$(MOTIF_GUIOBJS)"
8964 COMMONOBJS="\$(MOTIF_COMMONOBJS)"
788deba1
VZ
8965 GENERICOBJS="\$(MOTIF_GENERICOBJS)"
8966 GUIDEPS="\$(MOTIF_GUIDEPS)"
8967 COMMONDEPS="\$(MOTIF_COMMONDEPS)"
10f2d63a
VZ
8968 GENERICDEPS="\$(MOTIF_GENERICDEPS)"
8969 UNIXOBJS="\$(UNIX_OBJS)"
d9d8273d 8970 UNIXDEPS="\$(UNIX_DEPS)"
10f2d63a
VZ
8971 GUIDIST=MOTIF_DIST
8972fi
8973
b4085ce6
GD
8974if test "$wxUSE_MAC" = 1; then
8975 TOOLKIT=MAC
8976 UNIXOBJS="\$(UNIX_OBJS)"
8977 UNIXDEPS="\$(UNIX_DEPS)"
8978 GUIDIST=MAC_DIST
8979fi
8980
e07802fc
VZ
8981if test "$wxUSE_PM" = 1; then
8982 TOOLKIT=PM
8983
8984 GUIOBJS="\$(PM_GUIOBJS)"
8985 GUIHEADERS="\$(PM_HEADERS)"
8986 COMMONOBJS="\$(PM_COMMONOBJS)"
8987 GENERICOBJS="\$(PM_GENERICOBJS)"
8988 GUIDEPS="\$(PM_GUIDEPS)"
8989 COMMONDEPS="\$(PM_COMMONDEPS)"
8990 GENERICDEPS="\$(PM_GENERICDEPS)"
8991 UNIXOBJS=
8992 UNIXDEPS=
8993 GUIDIST=GTK_DIST
8994fi
8995
8996if test "$TOOLKIT" != "PM" ; then
ec14dd32 8997 TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
e07802fc
VZ
8998else
8999 TOOLKIT_DIR="os2"
9000fi
10f2d63a 9001
f6bcfd97
BP
9002 if test "$wxUSE_DEBUG_FLAG" = "yes"; then
9003 TOOLKIT_NAME="${TOOLKIT_DIR}d"
9004 else
9005 TOOLKIT_NAME="${TOOLKIT_DIR}"
9006 fi
9007
2224580a 9008 TOOLKIT_DEF="-D__WX${TOOLKIT}__"
10f2d63a 9009
f6bcfd97 9010 WX_LIBRARY="wx_${TOOLKIT_NAME}"
10f2d63a 9011
bdad4e7e 9012 ALL_OBJECTS="\$(GUIOBJS) \$(COMMONOBJS) \$(GENERICOBJS) \$(UNIXOBJS) \$(HTMLOBJS) \$(OGLOBJS)"
3fcdd07b 9013
b089607b 9014 if test "$TOOLKIT" != "MSW"; then
cc977e5f
RR
9015 if test "$wxUSE_ODBC" = "yes" ; then
9016 ALL_OBJECTS="${ALL_OBJECTS} \$(IODBCOBJS)"
9017 fi
3fcdd07b
VZ
9018 fi
9019
d9d8273d 9020 if test "$wxUSE_LIBJPEG" = "yes" ; then
2224580a 9021 ALL_OBJECTS="${ALL_OBJECTS} \$(JPEGOBJS)"
d9d8273d
RR
9022 fi
9023 if test "$wxUSE_LIBTIFF" = "yes" ; then
9024 ALL_OBJECTS="${ALL_OBJECTS} \$(TIFFOBJS)"
9025 fi
9026 if test "$wxUSE_LIBPNG" = "yes" ; then
9027 ALL_OBJECTS="${ALL_OBJECTS} \$(PNGOBJS)"
9028 fi
9029 if test "$wxUSE_ZLIB" = "yes" ; then
9030 ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)"
9031 fi
3fed1840
RR
9032 if test "$wxUSE_FREETYPE" = "yes" ; then
9033 ALL_OBJECTS="${ALL_OBJECTS} \$(FREETYPEOBJS)"
9034 fi
bdad4e7e 9035 ALL_DEPFILES="\$(GUIDEPS) \$(COMMONDEPS) \$(GENERICDEPS) \$(UNIXDEPS) \$(HTMLDEPS) \$(OGLDEPS)"
2224580a
VZ
9036
9037 PORT_FILES="src/\$(TOOLKITDIR)/files.lst"
9038 RPM_FILES="src/\$(TOOLKITDIR)/rpmfiles.lst"
9039 RPM_SPEC="wx\$(TOOLKIT).spec"
9040
9041 GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
9042 DISTDIR="wx\$(TOOLKIT)"
10f2d63a 9043else
dad6c0ea
VZ
9044 USE_GUI=0
9045
f6bcfd97
BP
9046 TOOLKIT_DIR="base"
9047
9048 if test "$wxUSE_DEBUG_FLAG" = "yes"; then
9049 TOOLKIT_NAME="${TOOLKIT_DIR}d"
9050 else
9051 TOOLKIT_NAME="${TOOLKIT_DIR}"
9052 fi
9053
07eb77a6
RL
9054 TOOLKIT_DEF="-D__WXBASE__"
9055
b4085ce6
GD
9056 ALL_OBJECTS="\$(BASE_OBJS) \$(BASE_UNIX_OBJS)"
9057 ALL_DEPFILES="\$(BASE_DEPS) \$(BASE_UNIX_DEPS)"
10f2d63a 9058
a20b6d3a
VZ
9059 if test "$wxUSE_ZLIB" = "yes" ; then
9060 ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)"
9061 fi
9062
f6bcfd97 9063 WX_LIBRARY="wx_${TOOLKIT_NAME}"
2224580a
VZ
9064
9065 PORT_FILES="src/files.lst"
9066 RPM_FILES="src/rpmfiles.lst"
9067 RPM_SPEC="wxBase.spec"
9068
9069 GUIDIST="BASE_DIST"
9070 DISTDIR="wxBase"
b4085ce6
GD
9071
9072 if test "$USE_UNIX" = 1 ; then
9073 ALL_OBJECTS="${ALL_OBJECTS} dl_macosx.o"
9074 ALL_DEPFILES="${ALL_DEPFILES} dl_macosx.d"
9075 fi
10f2d63a
VZ
9076fi
9077
9078WX_LIBRARY_NAME="lib${WX_LIBRARY}.la"
bdad4e7e 9079WX_LIBRARY_NAME_GL="lib${WX_LIBRARY}_gl.la"
10f2d63a
VZ
9080
9081WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a"
bdad4e7e 9082WX_LIBRARY_NAME_STATIC_GL="lib${WX_LIBRARY}_gl.a"
10f2d63a
VZ
9083
9084WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}-${WX_RELEASE}.so.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
bdad4e7e 9085WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.so.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
10f2d63a
VZ
9086
9087WX_LIBRARY_LINK1="lib${WX_LIBRARY}-${WX_RELEASE}.so.${WX_CURRENT}"
9088WX_LIBRARY_LINK2="lib${WX_LIBRARY}-${WX_RELEASE}.so"
9089WX_LIBRARY_LINK3="lib${WX_LIBRARY}.so"
bdad4e7e
RR
9090WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.so.${WX_CURRENT}"
9091WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.so"
9092WX_LIBRARY_LINK3_GL="lib${WX_LIBRARY}_gl.so"
10f2d63a
VZ
9093
9094SHARED_LD=
9095PIC_FLAG=
9096WX_ALL=
9097WX_ALL_INSTALLED=
1d62a8b4 9098BURNT_LIBRARY_NAME=
f6bcfd97 9099WX_TARGET_LIBRARY_SONAME=
10f2d63a 9100
b12915c1 9101
10f2d63a
VZ
9102if test "$wxUSE_SHARED" = "yes"; then
9103 case "${host}" in
9104 *-hp-hpux* )
9105 if test "$GCC" = yes ; then
69ffe1d2 9106 SHARED_LD="${CC} -shared -fPIC -o"
10f2d63a
VZ
9107 PIC_FLAG="-fPIC"
9108 else
f6bcfd97
BP
9109 LDFLAGS="-L/usr/lib"
9110
10f2d63a
VZ
9111 SHARED_LD="${CXX} -b -o"
9112 PIC_FLAG="+Z"
9113 fi
f6bcfd97
BP
9114 WX_LIBRARY_NAME_SHARED="libwx_${TOOLKIT_NAME}.sl"
9115 WX_LIBRARY_NAME_SHARED_GL="libwx_${TOOLKIT_NAME}_gl.sl"
c661ecca 9116 if test "$wxUSE_OPENGL" = "yes"; then
f6bcfd97 9117 WX_ALL_INSTALLED="preinstall_gl"
c661ecca
RR
9118 WX_ALL="${WX_LIBRARY_NAME_SHARED} ${WX_LIBRARY_NAME_SHARED_GL}"
9119 else
9120 WX_ALL="${WX_LIBRARY_NAME_SHARED}"
9121 fi
10f2d63a 9122 ;;
b12915c1
VZ
9123
9124 *-*-linux* )
10f2d63a
VZ
9125 SHARED_LD="${CC} -shared -o"
9126 PIC_FLAG="-fPIC"
00cf1208 9127 if test "$wxUSE_BURNT_NAME" = "yes" ; then
05cdfc6f 9128 BURNT_LIBRARY_NAME="-Wl,-soname,${WX_LIBRARY_LINK1}"
bdad4e7e 9129 BURNT_LIBRARY_NAME_GL="-Wl,-soname,${WX_LIBRARY_LINK1_GL}"
f6bcfd97 9130 WX_TARGET_LIBRARY_SONAME="-Wl,-soname,\$(TARGETLIB_LINK1)"
00cf1208 9131 fi
c661ecca
RR
9132 if test "$wxUSE_OPENGL" = "yes"; then
9133 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
9134 WX_ALL="CREATE_LINKS CREATE_LINKS_GL"
9135 else
9136 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
9137 WX_ALL="CREATE_LINKS"
422107f9 9138 fi
00cf1208 9139 ;;
10f2d63a
VZ
9140 *-*-irix5* | *-*-irix6* )
9141 if test "$GCC" = yes ; then
9142 SHARED_LD="${CC} -shared -o"
9143 PIC_FLAG="-fPIC"
9144 else
9145 SHARED_LD="${CXX} -shared -o"
9146 fi
c661ecca
RR
9147 if test "$wxUSE_OPENGL" = "yes"; then
9148 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
9149 WX_ALL="CREATE_LINKS CREATE_LINKS_GL"
9150 else
9151 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
9152 WX_ALL="CREATE_LINKS"
422107f9 9153 fi
10f2d63a
VZ
9154 ;;
9155 *-*-solaris2* )
9156 if test "$GCC" = yes ; then
9157 SHARED_LD="${CC} -shared -o"
9158 PIC_FLAG="-fPIC"
f6bcfd97
BP
9159
9160 CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include"
10f2d63a
VZ
9161 else
9162 SHARED_LD="${CXX} -G -o"
9163 PIC_FLAG="-KPIC"
9164 fi
c661ecca
RR
9165 if test "$wxUSE_OPENGL" = "yes"; then
9166 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
9167 WX_ALL="CREATE_LINKS CREATE_LINKS_GL"
9168 else
9169 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
9170 WX_ALL="CREATE_LINKS"
9171 fi
10f2d63a
VZ
9172 ;;
9173 *-*-sunos4* )
9174 SHARED_LD="${CC} -shared -o"
9175 PIC_FLAG="-fPIC"
9176 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
9177 WX_ALL="CREATE_LINKS"
9178 ;;
b4085ce6 9179 *-*-freebsd* | *-*-netbsd* )
10f2d63a
VZ
9180 SHARED_LD="${CC} -shared -o"
9181 PIC_FLAG="-fPIC"
37d403aa
JS
9182 if test "$wxUSE_OPENGL" = "yes"; then
9183 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
9184 WX_ALL="CREATE_LINKS CREATE_LINKS_GL"
9185 else
9186 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
9187 WX_ALL="CREATE_LINKS"
9188 fi
10f2d63a 9189 ;;
b4085ce6
GD
9190 *-*-darwin* )
9191 SHARED_LD="libtool -dynamic -o"
9192 PIC_FLAG="-fPIC"
9193 if test "$wxUSE_OPENGL" = "yes"; then
9194 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
9195 WX_ALL="CREATE_LINKS CREATE_LINKS_GL"
9196 else
9197 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
9198 WX_ALL="CREATE_LINKS"
9199 fi
9200 ;;
10f2d63a
VZ
9201 *-*-osf* )
9202 SHARED_LD="${CXX} -shared -o"
9203 PIC_FLAG="-fPIC"
9204 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
9205 WX_ALL="CREATE_LINKS"
9206 ;;
9207 *-*-dgux5* )
9208 SHARED_LD="${CXX} -shared -o"
9209 PIC_FLAG="-fPIC"
9210 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
9211 WX_ALL="CREATE_LINKS"
9212 ;;
9213 *-*-sysv5* )
9214 SHARED_LD="${CC} -shared -o"
9215 PIC_FLAG="-fPIC"
9216 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
9217 WX_ALL="CREATE_LINKS"
9218 ;;
9219 *-*-aix* )
9220 SHARED_LD="/usr/lpp/xlC/bin/makeC++SharedLib -p 0 -o"
9221 WX_ALL=${WX_LIBRARY_NAME_SHARED}
9222 ;;
9223 *-*-cygwin32* )
9224 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
bdad4e7e 9225 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}"
f6bcfd97
BP
9226 if test "$wxUSE_OPENGL" = "yes"; then
9227 WX_ALL_INSTALLED="preinstall_gl"
9228 WX_ALL="${WX_LIBRARY_NAME_STATIC} ${WX_LIBRARY_NAME_STATIC_GL}"
9229 else
9230 WX_ALL="${WX_LIBRARY_NAME_STATIC}"
9231 fi
10f2d63a 9232 ;;
b12915c1 9233 *-*-mingw32* )
10f2d63a 9234 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
bdad4e7e 9235 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}"
f6bcfd97
BP
9236 if test "$wxUSE_OPENGL" = "yes"; then
9237 WX_ALL_INSTALLED="preinstall_gl"
9238 WX_ALL="${WX_LIBRARY_NAME_STATIC} ${WX_LIBRARY_NAME_STATIC_GL}"
9239 else
9240 WX_ALL="${WX_LIBRARY_NAME_STATIC}"
9241 fi
10f2d63a
VZ
9242 ;;
9243 *-pc-os2_emx )
e07802fc
VZ
9244 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
9245 WX_ALL="${WX_LIBRARY_NAME_STATIC}"
10f2d63a 9246 ;;
b12915c1 9247 *-*-beos* )
e2b8b066 9248 SHARED_LD="${LD} -shared -o"
b12915c1
VZ
9249 PIC_FLAG="-fPIC"
9250 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
9251 WX_ALL="CREATE_LINKS"
9252 ;;
10f2d63a
VZ
9253 *)
9254 { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; }
9255 esac
9256
9257 if test "x$WX_TARGET_LIBRARY" = "x"; then
9258 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}"
bdad4e7e 9259 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_SHARED_GL}"
10f2d63a 9260 fi
3711412e 9261 WX_TARGET_LIBRARY_TYPE="so"
10f2d63a
VZ
9262else
9263 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
bdad4e7e 9264 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}"
f6bcfd97
BP
9265
9266 if test "$wxUSE_OPENGL" = "yes"; then
9267 WX_ALL_INSTALLED="preinstall_gl"
9268 WX_ALL="${WX_LIBRARY_NAME_STATIC} ${WX_LIBRARY_NAME_STATIC_GL}"
9269 else
9270 WX_ALL="${WX_LIBRARY_NAME_STATIC}"
9271 fi
9272
9273 if test "$wxUSE_GUI" = "no"; then
9274 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
9275 fi
9276
3711412e 9277 WX_TARGET_LIBRARY_TYPE="a"
10f2d63a
VZ
9278fi
9279
9280
9281for ac_hdr in strings.h
9282do
9283ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9284echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
b4085ce6 9285echo "configure:9286: checking for $ac_hdr" >&5
10f2d63a
VZ
9286if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9287 echo $ac_n "(cached) $ac_c" 1>&6
9288else
9289 cat > conftest.$ac_ext <<EOF
b4085ce6 9290#line 9291 "configure"
10f2d63a
VZ
9291#include "confdefs.h"
9292#include <$ac_hdr>
9293EOF
9294ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
b4085ce6 9295{ (eval echo configure:9296: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
9296ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9297if test -z "$ac_err"; then
9298 rm -rf conftest*
9299 eval "ac_cv_header_$ac_safe=yes"
9300else
9301 echo "$ac_err" >&5
9302 echo "configure: failed program was:" >&5
9303 cat conftest.$ac_ext >&5
9304 rm -rf conftest*
9305 eval "ac_cv_header_$ac_safe=no"
9306fi
9307rm -f conftest*
9308fi
9309if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9310 echo "$ac_t""yes" 1>&6
9311 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9312 cat >> confdefs.h <<EOF
9313#define $ac_tr_hdr 1
9314EOF
9315
9316else
9317 echo "$ac_t""no" 1>&6
9318fi
9319done
9320
9321for ac_hdr in unistd.h
9322do
9323ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9324echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
b4085ce6 9325echo "configure:9326: checking for $ac_hdr" >&5
10f2d63a
VZ
9326if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9327 echo $ac_n "(cached) $ac_c" 1>&6
9328else
9329 cat > conftest.$ac_ext <<EOF
b4085ce6 9330#line 9331 "configure"
10f2d63a
VZ
9331#include "confdefs.h"
9332#include <$ac_hdr>
9333EOF
9334ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
b4085ce6 9335{ (eval echo configure:9336: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
9336ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9337if test -z "$ac_err"; then
9338 rm -rf conftest*
9339 eval "ac_cv_header_$ac_safe=yes"
9340else
9341 echo "$ac_err" >&5
9342 echo "configure: failed program was:" >&5
9343 cat conftest.$ac_ext >&5
9344 rm -rf conftest*
9345 eval "ac_cv_header_$ac_safe=no"
9346fi
9347rm -f conftest*
9348fi
9349if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9350 echo "$ac_t""yes" 1>&6
9351 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9352 cat >> confdefs.h <<EOF
9353#define $ac_tr_hdr 1
9354EOF
9355
9356else
9357 echo "$ac_t""no" 1>&6
9358fi
9359done
9360
0fb0dd83 9361for ac_hdr in fcntl.h
10f2d63a
VZ
9362do
9363ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9364echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
b4085ce6 9365echo "configure:9366: checking for $ac_hdr" >&5
10f2d63a
VZ
9366if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9367 echo $ac_n "(cached) $ac_c" 1>&6
9368else
9369 cat > conftest.$ac_ext <<EOF
b4085ce6 9370#line 9371 "configure"
10f2d63a
VZ
9371#include "confdefs.h"
9372#include <$ac_hdr>
9373EOF
9374ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
b4085ce6 9375{ (eval echo configure:9376: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
9376ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9377if test -z "$ac_err"; then
9378 rm -rf conftest*
9379 eval "ac_cv_header_$ac_safe=yes"
9380else
9381 echo "$ac_err" >&5
9382 echo "configure: failed program was:" >&5
9383 cat conftest.$ac_ext >&5
9384 rm -rf conftest*
9385 eval "ac_cv_header_$ac_safe=no"
9386fi
9387rm -f conftest*
9388fi
9389if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9390 echo "$ac_t""yes" 1>&6
9391 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9392 cat >> confdefs.h <<EOF
9393#define $ac_tr_hdr 1
9394EOF
9395
9396else
9397 echo "$ac_t""no" 1>&6
9398fi
9399done
9400
0fb0dd83 9401for ac_hdr in wchar.h
10f2d63a
VZ
9402do
9403ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9404echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
b4085ce6 9405echo "configure:9406: checking for $ac_hdr" >&5
10f2d63a
VZ
9406if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9407 echo $ac_n "(cached) $ac_c" 1>&6
9408else
9409 cat > conftest.$ac_ext <<EOF
b4085ce6 9410#line 9411 "configure"
10f2d63a
VZ
9411#include "confdefs.h"
9412#include <$ac_hdr>
9413EOF
9414ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
b4085ce6 9415{ (eval echo configure:9416: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
9416ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9417if test -z "$ac_err"; then
9418 rm -rf conftest*
9419 eval "ac_cv_header_$ac_safe=yes"
9420else
9421 echo "$ac_err" >&5
9422 echo "configure: failed program was:" >&5
9423 cat conftest.$ac_ext >&5
9424 rm -rf conftest*
9425 eval "ac_cv_header_$ac_safe=no"
9426fi
9427rm -f conftest*
9428fi
9429if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9430 echo "$ac_t""yes" 1>&6
9431 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9432 cat >> confdefs.h <<EOF
9433#define $ac_tr_hdr 1
9434EOF
9435
9436else
9437 echo "$ac_t""no" 1>&6
9438fi
9439done
9440
0fb0dd83 9441for ac_hdr in wcstr.h
10f2d63a
VZ
9442do
9443ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9444echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
b4085ce6 9445echo "configure:9446: checking for $ac_hdr" >&5
10f2d63a
VZ
9446if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9447 echo $ac_n "(cached) $ac_c" 1>&6
9448else
9449 cat > conftest.$ac_ext <<EOF
b4085ce6 9450#line 9451 "configure"
10f2d63a
VZ
9451#include "confdefs.h"
9452#include <$ac_hdr>
9453EOF
9454ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
b4085ce6 9455{ (eval echo configure:9456: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6f72b082
OK
9456ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9457if test -z "$ac_err"; then
9458 rm -rf conftest*
9459 eval "ac_cv_header_$ac_safe=yes"
9460else
9461 echo "$ac_err" >&5
9462 echo "configure: failed program was:" >&5
9463 cat conftest.$ac_ext >&5
9464 rm -rf conftest*
9465 eval "ac_cv_header_$ac_safe=no"
9466fi
9467rm -f conftest*
9468fi
9469if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9470 echo "$ac_t""yes" 1>&6
9471 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9472 cat >> confdefs.h <<EOF
9473#define $ac_tr_hdr 1
9474EOF
9475
9476else
9477 echo "$ac_t""no" 1>&6
9478fi
9479done
9480
0fb0dd83 9481for ac_hdr in fnmatch.h
6f72b082
OK
9482do
9483ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9484echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
b4085ce6 9485echo "configure:9486: checking for $ac_hdr" >&5
6f72b082
OK
9486if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9487 echo $ac_n "(cached) $ac_c" 1>&6
9488else
9489 cat > conftest.$ac_ext <<EOF
b4085ce6 9490#line 9491 "configure"
6f72b082
OK
9491#include "confdefs.h"
9492#include <$ac_hdr>
9493EOF
9494ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
b4085ce6 9495{ (eval echo configure:9496: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6f72b082
OK
9496ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9497if test -z "$ac_err"; then
9498 rm -rf conftest*
9499 eval "ac_cv_header_$ac_safe=yes"
9500else
9501 echo "$ac_err" >&5
9502 echo "configure: failed program was:" >&5
9503 cat conftest.$ac_ext >&5
9504 rm -rf conftest*
9505 eval "ac_cv_header_$ac_safe=no"
9506fi
9507rm -f conftest*
9508fi
9509if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9510 echo "$ac_t""yes" 1>&6
9511 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9512 cat >> confdefs.h <<EOF
9513#define $ac_tr_hdr 1
9514EOF
9515
9516else
9517 echo "$ac_t""no" 1>&6
9518fi
9519done
9520
0fb0dd83 9521for ac_hdr in iconv.h
6f72b082
OK
9522do
9523ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9524echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
b4085ce6 9525echo "configure:9526: checking for $ac_hdr" >&5
6f72b082
OK
9526if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9527 echo $ac_n "(cached) $ac_c" 1>&6
9528else
9529 cat > conftest.$ac_ext <<EOF
b4085ce6 9530#line 9531 "configure"
6f72b082
OK
9531#include "confdefs.h"
9532#include <$ac_hdr>
9533EOF
9534ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
b4085ce6 9535{ (eval echo configure:9536: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
9536ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9537if test -z "$ac_err"; then
9538 rm -rf conftest*
9539 eval "ac_cv_header_$ac_safe=yes"
9540else
9541 echo "$ac_err" >&5
9542 echo "configure: failed program was:" >&5
9543 cat conftest.$ac_ext >&5
9544 rm -rf conftest*
9545 eval "ac_cv_header_$ac_safe=no"
9546fi
9547rm -f conftest*
9548fi
9549if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9550 echo "$ac_t""yes" 1>&6
9551 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9552 cat >> confdefs.h <<EOF
9553#define $ac_tr_hdr 1
9554EOF
9555
9556else
9557 echo "$ac_t""no" 1>&6
9558fi
9559done
9560
0fb0dd83
RR
9561for ac_hdr in langinfo.h
9562do
9563ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9564echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
b4085ce6 9565echo "configure:9566: checking for $ac_hdr" >&5
0fb0dd83
RR
9566if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9567 echo $ac_n "(cached) $ac_c" 1>&6
9568else
9569 cat > conftest.$ac_ext <<EOF
b4085ce6 9570#line 9571 "configure"
0fb0dd83
RR
9571#include "confdefs.h"
9572#include <$ac_hdr>
9573EOF
9574ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
b4085ce6 9575{ (eval echo configure:9576: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
0fb0dd83
RR
9576ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9577if test -z "$ac_err"; then
9578 rm -rf conftest*
9579 eval "ac_cv_header_$ac_safe=yes"
9580else
9581 echo "$ac_err" >&5
9582 echo "configure: failed program was:" >&5
9583 cat conftest.$ac_ext >&5
9584 rm -rf conftest*
9585 eval "ac_cv_header_$ac_safe=no"
9586fi
9587rm -f conftest*
9588fi
9589if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9590 echo "$ac_t""yes" 1>&6
9591 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9592 cat >> confdefs.h <<EOF
9593#define $ac_tr_hdr 1
9594EOF
9595
9596else
9597 echo "$ac_t""no" 1>&6
9598fi
9599done
9600
10f2d63a 9601
73fd4a60
VZ
9602if test "$wxUSE_GUI" = "yes"; then
9603 if test "$wxUSE_UNIX" = "yes"; then
9604 for ac_hdr in X11/XKBlib.h
10f2d63a
VZ
9605do
9606ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9607echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
b4085ce6 9608echo "configure:9609: checking for $ac_hdr" >&5
10f2d63a
VZ
9609if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9610 echo $ac_n "(cached) $ac_c" 1>&6
9611else
9612 cat > conftest.$ac_ext <<EOF
b4085ce6 9613#line 9614 "configure"
10f2d63a
VZ
9614#include "confdefs.h"
9615#include <$ac_hdr>
9616EOF
9617ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
b4085ce6 9618{ (eval echo configure:9619: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
9619ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9620if test -z "$ac_err"; then
9621 rm -rf conftest*
9622 eval "ac_cv_header_$ac_safe=yes"
9623else
9624 echo "$ac_err" >&5
9625 echo "configure: failed program was:" >&5
9626 cat conftest.$ac_ext >&5
9627 rm -rf conftest*
9628 eval "ac_cv_header_$ac_safe=no"
9629fi
9630rm -f conftest*
9631fi
9632if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9633 echo "$ac_t""yes" 1>&6
9634 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9635 cat >> confdefs.h <<EOF
9636#define $ac_tr_hdr 1
9637EOF
9638
9639else
9640 echo "$ac_t""no" 1>&6
9641fi
9642done
9643
73fd4a60 9644 fi
10f2d63a
VZ
9645fi
9646
9647
9648echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
b4085ce6 9649echo "configure:9650: checking for ANSI C header files" >&5
10f2d63a
VZ
9650if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
9651 echo $ac_n "(cached) $ac_c" 1>&6
9652else
9653 cat > conftest.$ac_ext <<EOF
b4085ce6 9654#line 9655 "configure"
10f2d63a
VZ
9655#include "confdefs.h"
9656#include <stdlib.h>
9657#include <stdarg.h>
9658#include <string.h>
9659#include <float.h>
9660EOF
9661ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
b4085ce6 9662{ (eval echo configure:9663: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
9663ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9664if test -z "$ac_err"; then
9665 rm -rf conftest*
9666 ac_cv_header_stdc=yes
9667else
9668 echo "$ac_err" >&5
9669 echo "configure: failed program was:" >&5
9670 cat conftest.$ac_ext >&5
9671 rm -rf conftest*
9672 ac_cv_header_stdc=no
9673fi
9674rm -f conftest*
9675
9676if test $ac_cv_header_stdc = yes; then
9677 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9678cat > conftest.$ac_ext <<EOF
b4085ce6 9679#line 9680 "configure"
10f2d63a
VZ
9680#include "confdefs.h"
9681#include <string.h>
9682EOF
9683if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9684 egrep "memchr" >/dev/null 2>&1; then
9685 :
9686else
9687 rm -rf conftest*
9688 ac_cv_header_stdc=no
9689fi
9690rm -f conftest*
9691
9692fi
9693
9694if test $ac_cv_header_stdc = yes; then
9695 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9696cat > conftest.$ac_ext <<EOF
b4085ce6 9697#line 9698 "configure"
10f2d63a
VZ
9698#include "confdefs.h"
9699#include <stdlib.h>
9700EOF
9701if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9702 egrep "free" >/dev/null 2>&1; then
9703 :
9704else
9705 rm -rf conftest*
9706 ac_cv_header_stdc=no
9707fi
9708rm -f conftest*
9709
9710fi
9711
9712if test $ac_cv_header_stdc = yes; then
9713 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9714if test "$cross_compiling" = yes; then
9715 :
9716else
9717 cat > conftest.$ac_ext <<EOF
b4085ce6 9718#line 9719 "configure"
10f2d63a
VZ
9719#include "confdefs.h"
9720#include <ctype.h>
9721#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9722#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9723#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9724int main () { int i; for (i = 0; i < 256; i++)
9725if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
9726exit (0); }
9727
9728EOF
b4085ce6 9729if { (eval echo configure:9730: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10f2d63a
VZ
9730then
9731 :
9732else
9733 echo "configure: failed program was:" >&5
9734 cat conftest.$ac_ext >&5
9735 rm -fr conftest*
9736 ac_cv_header_stdc=no
9737fi
9738rm -fr conftest*
9739fi
9740
9741fi
9742fi
9743
9744echo "$ac_t""$ac_cv_header_stdc" 1>&6
9745if test $ac_cv_header_stdc = yes; then
9746 cat >> confdefs.h <<\EOF
9747#define STDC_HEADERS 1
9748EOF
9749
9750fi
9751
9752echo $ac_n "checking for mode_t""... $ac_c" 1>&6
b4085ce6 9753echo "configure:9754: checking for mode_t" >&5
10f2d63a
VZ
9754if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
9755 echo $ac_n "(cached) $ac_c" 1>&6
9756else
9757 cat > conftest.$ac_ext <<EOF
b4085ce6 9758#line 9759 "configure"
10f2d63a
VZ
9759#include "confdefs.h"
9760#include <sys/types.h>
9761#if STDC_HEADERS
9762#include <stdlib.h>
9763#include <stddef.h>
9764#endif
9765EOF
9766if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9767 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
9768 rm -rf conftest*
9769 ac_cv_type_mode_t=yes
9770else
9771 rm -rf conftest*
9772 ac_cv_type_mode_t=no
9773fi
9774rm -f conftest*
9775
9776fi
9777echo "$ac_t""$ac_cv_type_mode_t" 1>&6
9778if test $ac_cv_type_mode_t = no; then
9779 cat >> confdefs.h <<\EOF
9780#define mode_t int
9781EOF
9782
9783fi
9784
9785echo $ac_n "checking for off_t""... $ac_c" 1>&6
b4085ce6 9786echo "configure:9787: checking for off_t" >&5
10f2d63a
VZ
9787if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
9788 echo $ac_n "(cached) $ac_c" 1>&6
9789else
9790 cat > conftest.$ac_ext <<EOF
b4085ce6 9791#line 9792 "configure"
10f2d63a
VZ
9792#include "confdefs.h"
9793#include <sys/types.h>
9794#if STDC_HEADERS
9795#include <stdlib.h>
9796#include <stddef.h>
9797#endif
9798EOF
9799if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9800 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
9801 rm -rf conftest*
9802 ac_cv_type_off_t=yes
9803else
9804 rm -rf conftest*
9805 ac_cv_type_off_t=no
9806fi
9807rm -f conftest*
9808
9809fi
9810echo "$ac_t""$ac_cv_type_off_t" 1>&6
9811if test $ac_cv_type_off_t = no; then
9812 cat >> confdefs.h <<\EOF
9813#define off_t long
9814EOF
9815
9816fi
9817
9818echo $ac_n "checking for pid_t""... $ac_c" 1>&6
b4085ce6 9819echo "configure:9820: checking for pid_t" >&5
10f2d63a
VZ
9820if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
9821 echo $ac_n "(cached) $ac_c" 1>&6
9822else
9823 cat > conftest.$ac_ext <<EOF
b4085ce6 9824#line 9825 "configure"
10f2d63a
VZ
9825#include "confdefs.h"
9826#include <sys/types.h>
9827#if STDC_HEADERS
9828#include <stdlib.h>
9829#include <stddef.h>
9830#endif
9831EOF
9832if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9833 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
9834 rm -rf conftest*
9835 ac_cv_type_pid_t=yes
9836else
9837 rm -rf conftest*
9838 ac_cv_type_pid_t=no
9839fi
9840rm -f conftest*
9841
9842fi
9843echo "$ac_t""$ac_cv_type_pid_t" 1>&6
9844if test $ac_cv_type_pid_t = no; then
9845 cat >> confdefs.h <<\EOF
9846#define pid_t int
9847EOF
9848
9849fi
9850
9851echo $ac_n "checking for size_t""... $ac_c" 1>&6
b4085ce6 9852echo "configure:9853: checking for size_t" >&5
10f2d63a
VZ
9853if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
9854 echo $ac_n "(cached) $ac_c" 1>&6
9855else
9856 cat > conftest.$ac_ext <<EOF
b4085ce6 9857#line 9858 "configure"
10f2d63a
VZ
9858#include "confdefs.h"
9859#include <sys/types.h>
9860#if STDC_HEADERS
9861#include <stdlib.h>
9862#include <stddef.h>
9863#endif
9864EOF
9865if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9866 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
9867 rm -rf conftest*
9868 ac_cv_type_size_t=yes
9869else
9870 rm -rf conftest*
9871 ac_cv_type_size_t=no
9872fi
9873rm -f conftest*
9874
9875fi
9876echo "$ac_t""$ac_cv_type_size_t" 1>&6
9877if test $ac_cv_type_size_t = no; then
9878 cat >> confdefs.h <<\EOF
9879#define size_t unsigned
9880EOF
9881
9882fi
9883
9884echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
b4085ce6 9885echo "configure:9886: checking for uid_t in sys/types.h" >&5
10f2d63a
VZ
9886if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
9887 echo $ac_n "(cached) $ac_c" 1>&6
9888else
9889 cat > conftest.$ac_ext <<EOF
b4085ce6 9890#line 9891 "configure"
10f2d63a
VZ
9891#include "confdefs.h"
9892#include <sys/types.h>
9893EOF
9894if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9895 egrep "uid_t" >/dev/null 2>&1; then
9896 rm -rf conftest*
9897 ac_cv_type_uid_t=yes
9898else
9899 rm -rf conftest*
9900 ac_cv_type_uid_t=no
9901fi
9902rm -f conftest*
9903
9904fi
9905
9906echo "$ac_t""$ac_cv_type_uid_t" 1>&6
9907if test $ac_cv_type_uid_t = no; then
9908 cat >> confdefs.h <<\EOF
9909#define uid_t int
9910EOF
9911
9912 cat >> confdefs.h <<\EOF
9913#define gid_t int
9914EOF
9915
9916fi
9917
9918
9919
b12915c1 9920echo $ac_n "checking for pw_gecos in struct passwd""... $ac_c" 1>&6
b4085ce6 9921echo "configure:9922: checking for pw_gecos in struct passwd" >&5
b12915c1
VZ
9922if eval "test \"`echo '$''{'wx_cv_struct_pw_gecos'+set}'`\" = set"; then
9923 echo $ac_n "(cached) $ac_c" 1>&6
9924else
9925
9926 cat > conftest.$ac_ext <<EOF
b4085ce6 9927#line 9928 "configure"
b12915c1
VZ
9928#include "confdefs.h"
9929#include <pwd.h>
9930int main() {
9931
9932 char *p;
9933 struct passwd *pw;
9934 p = pw->pw_gecos;
9935
9936; return 0; }
9937EOF
b4085ce6 9938if { (eval echo configure:9939: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
b12915c1
VZ
9939 rm -rf conftest*
9940
9941 wx_cv_struct_pw_gecos=yes
b12915c1
VZ
9942
9943else
9944 echo "configure: failed program was:" >&5
9945 cat conftest.$ac_ext >&5
9946 rm -rf conftest*
9947
9948 wx_cv_struct_pw_gecos=no
9949
9950
9951fi
9952rm -f conftest*
9953
9954
9955fi
9956
9957echo "$ac_t""$wx_cv_struct_pw_gecos" 1>&6
9958
bd3277fe
VZ
9959if test "$wx_cv_struct_pw_gecos" = "yes"; then
9960 cat >> confdefs.h <<\EOF
9961#define HAVE_PW_GECOS 1
9962EOF
9963
9964fi
9965
10f2d63a
VZ
9966
9967echo $ac_n "checking for working const""... $ac_c" 1>&6
b4085ce6 9968echo "configure:9969: checking for working const" >&5
10f2d63a
VZ
9969if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
9970 echo $ac_n "(cached) $ac_c" 1>&6
9971else
9972 cat > conftest.$ac_ext <<EOF
b4085ce6 9973#line 9974 "configure"
10f2d63a
VZ
9974#include "confdefs.h"
9975
9976int main() {
9977
9978/* Ultrix mips cc rejects this. */
186837b0 9979typedef int charset[2]; const charset x;
10f2d63a
VZ
9980/* SunOS 4.1.1 cc rejects this. */
9981char const *const *ccp;
9982char **p;
9983/* NEC SVR4.0.2 mips cc rejects this. */
9984struct point {int x, y;};
9985static struct point const zero = {0,0};
9986/* AIX XL C 1.02.0.0 rejects this.
9987 It does not let you subtract one const X* pointer from another in an arm
9988 of an if-expression whose if-part is not a constant expression */
9989const char *g = "string";
9990ccp = &g + (g ? g-g : 0);
9991/* HPUX 7.0 cc rejects these. */
9992++ccp;
9993p = (char**) ccp;
9994ccp = (char const *const *) p;
9995{ /* SCO 3.2v4 cc rejects this. */
9996 char *t;
9997 char const *s = 0 ? (char *) 0 : (char const *) 0;
9998
9999 *t++ = 0;
10000}
10001{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
10002 int x[] = {25, 17};
10003 const int *foo = &x[0];
10004 ++foo;
10005}
10006{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
10007 typedef const int *iptr;
10008 iptr p = 0;
10009 ++p;
10010}
10011{ /* AIX XL C 1.02.0.0 rejects this saying
10012 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
10013 struct s { int j; const int *ap[3]; };
10014 struct s *b; b->j = 5;
10015}
10016{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
10017 const int foo = 10;
10018}
10019
10020; return 0; }
10021EOF
b4085ce6 10022if { (eval echo configure:10023: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10f2d63a
VZ
10023 rm -rf conftest*
10024 ac_cv_c_const=yes
10025else
10026 echo "configure: failed program was:" >&5
10027 cat conftest.$ac_ext >&5
10028 rm -rf conftest*
10029 ac_cv_c_const=no
10030fi
10031rm -f conftest*
10032fi
10033
10034echo "$ac_t""$ac_cv_c_const" 1>&6
10035if test $ac_cv_c_const = no; then
10036 cat >> confdefs.h <<\EOF
10037#define const
10038EOF
10039
10040fi
10041
10042echo $ac_n "checking for inline""... $ac_c" 1>&6
b4085ce6 10043echo "configure:10044: checking for inline" >&5
10f2d63a
VZ
10044if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
10045 echo $ac_n "(cached) $ac_c" 1>&6
10046else
10047 ac_cv_c_inline=no
10048for ac_kw in inline __inline__ __inline; do
10049 cat > conftest.$ac_ext <<EOF
b4085ce6 10050#line 10051 "configure"
10f2d63a
VZ
10051#include "confdefs.h"
10052
10053int main() {
186837b0 10054} $ac_kw foo() {
10f2d63a
VZ
10055; return 0; }
10056EOF
b4085ce6 10057if { (eval echo configure:10058: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10f2d63a
VZ
10058 rm -rf conftest*
10059 ac_cv_c_inline=$ac_kw; break
10060else
10061 echo "configure: failed program was:" >&5
10062 cat conftest.$ac_ext >&5
10063fi
10064rm -f conftest*
10065done
10066
10067fi
10068
10069echo "$ac_t""$ac_cv_c_inline" 1>&6
10070case "$ac_cv_c_inline" in
10071 inline | yes) ;;
10072 no) cat >> confdefs.h <<\EOF
10073#define inline
10074EOF
10075 ;;
10076 *) cat >> confdefs.h <<EOF
10077#define inline $ac_cv_c_inline
10078EOF
10079 ;;
10080esac
10081
10082
10083echo $ac_n "checking size of char""... $ac_c" 1>&6
b4085ce6 10084echo "configure:10085: checking size of char" >&5
10f2d63a
VZ
10085if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then
10086 echo $ac_n "(cached) $ac_c" 1>&6
10087else
10088 if test "$cross_compiling" = yes; then
10089 ac_cv_sizeof_char=1
10090else
10091 cat > conftest.$ac_ext <<EOF
b4085ce6 10092#line 10093 "configure"
10f2d63a
VZ
10093#include "confdefs.h"
10094#include <stdio.h>
10095main()
10096{
10097 FILE *f=fopen("conftestval", "w");
10098 if (!f) exit(1);
10099 fprintf(f, "%d\n", sizeof(char));
10100 exit(0);
10101}
10102EOF
b4085ce6 10103if { (eval echo configure:10104: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10f2d63a
VZ
10104then
10105 ac_cv_sizeof_char=`cat conftestval`
10106else
10107 echo "configure: failed program was:" >&5
10108 cat conftest.$ac_ext >&5
10109 rm -fr conftest*
10110 ac_cv_sizeof_char=0
10111fi
10112rm -fr conftest*
10113fi
10114
10115fi
10116echo "$ac_t""$ac_cv_sizeof_char" 1>&6
10117cat >> confdefs.h <<EOF
10118#define SIZEOF_CHAR $ac_cv_sizeof_char
10119EOF
10120
10121
6f72b082 10122echo $ac_n "checking size of wchar_t""... $ac_c" 1>&6
b4085ce6 10123echo "configure:10124: checking size of wchar_t" >&5
6f72b082
OK
10124if eval "test \"`echo '$''{'ac_cv_sizeof_wchar_t'+set}'`\" = set"; then
10125 echo $ac_n "(cached) $ac_c" 1>&6
10126else
10127 if test "$cross_compiling" = yes; then
10128 ac_cv_sizeof_wchar_t=4
10129else
10130 cat > conftest.$ac_ext <<EOF
b4085ce6 10131#line 10132 "configure"
6f72b082
OK
10132#include "confdefs.h"
10133#include <stdio.h>
10134main()
10135{
10136 FILE *f=fopen("conftestval", "w");
10137 if (!f) exit(1);
10138 fprintf(f, "%d\n", sizeof(wchar_t));
10139 exit(0);
10140}
10141EOF
b4085ce6 10142if { (eval echo configure:10143: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6f72b082
OK
10143then
10144 ac_cv_sizeof_wchar_t=`cat conftestval`
10145else
10146 echo "configure: failed program was:" >&5
10147 cat conftest.$ac_ext >&5
10148 rm -fr conftest*
10149 ac_cv_sizeof_wchar_t=0
10150fi
10151rm -fr conftest*
10152fi
10153
10154fi
10155echo "$ac_t""$ac_cv_sizeof_wchar_t" 1>&6
10156cat >> confdefs.h <<EOF
10157#define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
10158EOF
10159
10160
10f2d63a 10161echo $ac_n "checking size of short""... $ac_c" 1>&6
b4085ce6 10162echo "configure:10163: checking size of short" >&5
10f2d63a
VZ
10163if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
10164 echo $ac_n "(cached) $ac_c" 1>&6
10165else
10166 if test "$cross_compiling" = yes; then
10167 ac_cv_sizeof_short=2
10168else
10169 cat > conftest.$ac_ext <<EOF
b4085ce6 10170#line 10171 "configure"
10f2d63a
VZ
10171#include "confdefs.h"
10172#include <stdio.h>
10173main()
10174{
10175 FILE *f=fopen("conftestval", "w");
10176 if (!f) exit(1);
10177 fprintf(f, "%d\n", sizeof(short));
10178 exit(0);
10179}
10180EOF
b4085ce6 10181if { (eval echo configure:10182: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10f2d63a
VZ
10182then
10183 ac_cv_sizeof_short=`cat conftestval`
10184else
10185 echo "configure: failed program was:" >&5
10186 cat conftest.$ac_ext >&5
10187 rm -fr conftest*
10188 ac_cv_sizeof_short=0
10189fi
10190rm -fr conftest*
10191fi
10192
10193fi
10194echo "$ac_t""$ac_cv_sizeof_short" 1>&6
10195cat >> confdefs.h <<EOF
10196#define SIZEOF_SHORT $ac_cv_sizeof_short
10197EOF
10198
10199
10200echo $ac_n "checking size of int *""... $ac_c" 1>&6
b4085ce6 10201echo "configure:10202: checking size of int *" >&5
10f2d63a
VZ
10202if eval "test \"`echo '$''{'ac_cv_sizeof_int_p'+set}'`\" = set"; then
10203 echo $ac_n "(cached) $ac_c" 1>&6
10204else
10205 if test "$cross_compiling" = yes; then
10206 ac_cv_sizeof_int_p=4
10207else
10208 cat > conftest.$ac_ext <<EOF
b4085ce6 10209#line 10210 "configure"
10f2d63a
VZ
10210#include "confdefs.h"
10211#include <stdio.h>
10212main()
10213{
10214 FILE *f=fopen("conftestval", "w");
10215 if (!f) exit(1);
10216 fprintf(f, "%d\n", sizeof(int *));
10217 exit(0);
10218}
10219EOF
b4085ce6 10220if { (eval echo configure:10221: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10f2d63a
VZ
10221then
10222 ac_cv_sizeof_int_p=`cat conftestval`
10223else
10224 echo "configure: failed program was:" >&5
10225 cat conftest.$ac_ext >&5
10226 rm -fr conftest*
10227 ac_cv_sizeof_int_p=0
10228fi
10229rm -fr conftest*
10230fi
10231
10232fi
10233echo "$ac_t""$ac_cv_sizeof_int_p" 1>&6
10234cat >> confdefs.h <<EOF
10235#define SIZEOF_INT_P $ac_cv_sizeof_int_p
10236EOF
10237
10238
10239echo $ac_n "checking size of int""... $ac_c" 1>&6
b4085ce6 10240echo "configure:10241: checking size of int" >&5
10f2d63a
VZ
10241if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
10242 echo $ac_n "(cached) $ac_c" 1>&6
10243else
10244 if test "$cross_compiling" = yes; then
10245 ac_cv_sizeof_int=4
10246else
10247 cat > conftest.$ac_ext <<EOF
b4085ce6 10248#line 10249 "configure"
10f2d63a
VZ
10249#include "confdefs.h"
10250#include <stdio.h>
10251main()
10252{
10253 FILE *f=fopen("conftestval", "w");
10254 if (!f) exit(1);
10255 fprintf(f, "%d\n", sizeof(int));
10256 exit(0);
10257}
10258EOF
b4085ce6 10259if { (eval echo configure:10260: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10f2d63a
VZ
10260then
10261 ac_cv_sizeof_int=`cat conftestval`
10262else
10263 echo "configure: failed program was:" >&5
10264 cat conftest.$ac_ext >&5
10265 rm -fr conftest*
10266 ac_cv_sizeof_int=0
10267fi
10268rm -fr conftest*
10269fi
10270
10271fi
10272echo "$ac_t""$ac_cv_sizeof_int" 1>&6
10273cat >> confdefs.h <<EOF
10274#define SIZEOF_INT $ac_cv_sizeof_int
10275EOF
10276
10277
10278echo $ac_n "checking size of long""... $ac_c" 1>&6
b4085ce6 10279echo "configure:10280: checking size of long" >&5
10f2d63a
VZ
10280if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
10281 echo $ac_n "(cached) $ac_c" 1>&6
10282else
10283 if test "$cross_compiling" = yes; then
10284 ac_cv_sizeof_long=4
10285else
10286 cat > conftest.$ac_ext <<EOF
b4085ce6 10287#line 10288 "configure"
10f2d63a
VZ
10288#include "confdefs.h"
10289#include <stdio.h>
10290main()
10291{
10292 FILE *f=fopen("conftestval", "w");
10293 if (!f) exit(1);
10294 fprintf(f, "%d\n", sizeof(long));
10295 exit(0);
10296}
10297EOF
b4085ce6 10298if { (eval echo configure:10299: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10f2d63a
VZ
10299then
10300 ac_cv_sizeof_long=`cat conftestval`
10301else
10302 echo "configure: failed program was:" >&5
10303 cat conftest.$ac_ext >&5
10304 rm -fr conftest*
10305 ac_cv_sizeof_long=0
10306fi
10307rm -fr conftest*
10308fi
10309
10310fi
10311echo "$ac_t""$ac_cv_sizeof_long" 1>&6
10312cat >> confdefs.h <<EOF
10313#define SIZEOF_LONG $ac_cv_sizeof_long
10314EOF
10315
10316
10317echo $ac_n "checking size of long long""... $ac_c" 1>&6
b4085ce6 10318echo "configure:10319: checking size of long long" >&5
10f2d63a
VZ
10319if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
10320 echo $ac_n "(cached) $ac_c" 1>&6
10321else
10322 if test "$cross_compiling" = yes; then
10323 ac_cv_sizeof_long_long=0
10324else
10325 cat > conftest.$ac_ext <<EOF
b4085ce6 10326#line 10327 "configure"
10f2d63a
VZ
10327#include "confdefs.h"
10328#include <stdio.h>
10329main()
10330{
10331 FILE *f=fopen("conftestval", "w");
10332 if (!f) exit(1);
10333 fprintf(f, "%d\n", sizeof(long long));
10334 exit(0);
10335}
10336EOF
b4085ce6 10337if { (eval echo configure:10338: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10f2d63a
VZ
10338then
10339 ac_cv_sizeof_long_long=`cat conftestval`
10340else
10341 echo "configure: failed program was:" >&5
10342 cat conftest.$ac_ext >&5
10343 rm -fr conftest*
10344 ac_cv_sizeof_long_long=0
10345fi
10346rm -fr conftest*
10347fi
10348
10349fi
10350echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
10351cat >> confdefs.h <<EOF
10352#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
10353EOF
10354
10355
10356
10357echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
b4085ce6 10358echo "configure:10359: checking whether byte ordering is bigendian" >&5
10f2d63a
VZ
10359if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
10360 echo $ac_n "(cached) $ac_c" 1>&6
10361else
10362 ac_cv_c_bigendian=unknown
10363# See if sys/param.h defines the BYTE_ORDER macro.
10364cat > conftest.$ac_ext <<EOF
b4085ce6 10365#line 10366 "configure"
10f2d63a
VZ
10366#include "confdefs.h"
10367#include <sys/types.h>
10368#include <sys/param.h>
10369int main() {
10370
10371#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
10372 bogus endian macros
10373#endif
10374; return 0; }
10375EOF
b4085ce6 10376if { (eval echo configure:10377: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10f2d63a
VZ
10377 rm -rf conftest*
10378 # It does; now see whether it defined to BIG_ENDIAN or not.
10379cat > conftest.$ac_ext <<EOF
b4085ce6 10380#line 10381 "configure"
10f2d63a
VZ
10381#include "confdefs.h"
10382#include <sys/types.h>
10383#include <sys/param.h>
10384int main() {
10385
10386#if BYTE_ORDER != BIG_ENDIAN
10387 not big endian
10388#endif
10389; return 0; }
10390EOF
b4085ce6 10391if { (eval echo configure:10392: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10f2d63a
VZ
10392 rm -rf conftest*
10393 ac_cv_c_bigendian=yes
10394else
10395 echo "configure: failed program was:" >&5
10396 cat conftest.$ac_ext >&5
10397 rm -rf conftest*
10398 ac_cv_c_bigendian=no
10399fi
10400rm -f conftest*
10401else
10402 echo "configure: failed program was:" >&5
10403 cat conftest.$ac_ext >&5
10404fi
10405rm -f conftest*
10406if test $ac_cv_c_bigendian = unknown; then
10407if test "$cross_compiling" = yes; then
10408 ac_cv_c_bigendian=unknown
10409else
10410 cat > conftest.$ac_ext <<EOF
b4085ce6 10411#line 10412 "configure"
10f2d63a
VZ
10412#include "confdefs.h"
10413main () {
10414 /* Are we little or big endian? From Harbison&Steele. */
10415 union
10416 {
10417 long l;
10418 char c[sizeof (long)];
10419 } u;
10420 u.l = 1;
10421 exit (u.c[sizeof (long) - 1] == 1);
10422}
10423EOF
b4085ce6 10424if { (eval echo configure:10425: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10f2d63a
VZ
10425then
10426 ac_cv_c_bigendian=no
10427else
10428 echo "configure: failed program was:" >&5
10429 cat conftest.$ac_ext >&5
10430 rm -fr conftest*
10431 ac_cv_c_bigendian=yes
10432fi
10433rm -fr conftest*
10434fi
10435
10436fi
10437fi
10438
10439echo "$ac_t""$ac_cv_c_bigendian" 1>&6
10440if test $ac_cv_c_bigendian = unknown; then
10441 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
10442fi
10443if test $ac_cv_c_bigendian = yes; then
10444 cat >> confdefs.h <<\EOF
10445#define WORDS_BIGENDIAN 1
10446EOF
10447
10448fi
10449
10450
10451
10452 if test "$cross_compiling" = "yes"; then
10453 cat >> confdefs.h <<\EOF
10454#define wxUSE_IOSTREAMH 1
10455EOF
10456
10457 else
10458
10459 ac_ext=C
10460# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10461ac_cpp='$CXXCPP $CPPFLAGS'
10462ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10463ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10464cross_compiling=$ac_cv_prog_cxx_cross
10465
10466
10467 for ac_hdr in iostream
10468do
10469ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10470echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
b4085ce6 10471echo "configure:10472: checking for $ac_hdr" >&5
10f2d63a
VZ
10472if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10473 echo $ac_n "(cached) $ac_c" 1>&6
10474else
10475 cat > conftest.$ac_ext <<EOF
b4085ce6 10476#line 10477 "configure"
10f2d63a
VZ
10477#include "confdefs.h"
10478#include <$ac_hdr>
10479EOF
10480ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
b4085ce6 10481{ (eval echo configure:10482: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
10482ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10483if test -z "$ac_err"; then
10484 rm -rf conftest*
10485 eval "ac_cv_header_$ac_safe=yes"
10486else
10487 echo "$ac_err" >&5
10488 echo "configure: failed program was:" >&5
10489 cat conftest.$ac_ext >&5
10490 rm -rf conftest*
10491 eval "ac_cv_header_$ac_safe=no"
10492fi
10493rm -f conftest*
10494fi
10495if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10496 echo "$ac_t""yes" 1>&6
10497 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10498 cat >> confdefs.h <<EOF
10499#define $ac_tr_hdr 1
10500EOF
10501
10502else
10503 echo "$ac_t""no" 1>&6
10504fi
10505done
10506
10507
10508 if test "x$HAVE_IOSTREAM" = x ; then
10509 cat >> confdefs.h <<\EOF
10510#define wxUSE_IOSTREAMH 1
10511EOF
10512
10513 else
10514 :
10515 fi
10516
10517 ac_ext=c
10518# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10519ac_cpp='$CPP $CPPFLAGS'
10520ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10521ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10522cross_compiling=$ac_cv_prog_cc_cross
10523
10524 fi
10525
10526
10527
10528 echo $ac_n "checking if C++ compiler supports bool""... $ac_c" 1>&6
b4085ce6 10529echo "configure:10530: checking if C++ compiler supports bool" >&5
10f2d63a
VZ
10530if eval "test \"`echo '$''{'wx_cv_cpp_bool'+set}'`\" = set"; then
10531 echo $ac_n "(cached) $ac_c" 1>&6
10532else
10533
10534
10535 ac_ext=C
10536# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10537ac_cpp='$CXXCPP $CPPFLAGS'
10538ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10539ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10540cross_compiling=$ac_cv_prog_cxx_cross
10541
10542
10543 cat > conftest.$ac_ext <<EOF
b4085ce6 10544#line 10545 "configure"
10f2d63a
VZ
10545#include "confdefs.h"
10546
10547
10548int main() {
10549
10550 bool b = true;
10551
10552 return 0;
10553
10554; return 0; }
10555EOF
b4085ce6 10556if { (eval echo configure:10557: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10f2d63a
VZ
10557 rm -rf conftest*
10558
10559 cat >> confdefs.h <<\EOF
10560#define HAVE_BOOL 1
10561EOF
10562
10563 wx_cv_cpp_bool=yes
10564
10565else
10566 echo "configure: failed program was:" >&5
10567 cat conftest.$ac_ext >&5
10568 rm -rf conftest*
10569
10570 wx_cv_cpp_bool=no
10571
10572
10573fi
10574rm -f conftest*
10575
10576 ac_ext=c
10577# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10578ac_cpp='$CPP $CPPFLAGS'
10579ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10580ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10581cross_compiling=$ac_cv_prog_cc_cross
10582
10583
10584fi
10585
10586echo "$ac_t""$wx_cv_cpp_bool" 1>&6
10587
10588 if test "$wx_cv_cpp_bool" = "yes"; then
10589 cat >> confdefs.h <<\EOF
10590#define HAVE_BOOL 1
10591EOF
10592
10593 fi
10594
10595
10596
10f2d63a 10597echo $ac_n "checking if you need GNU extensions""... $ac_c" 1>&6
b4085ce6 10598echo "configure:10599: checking if you need GNU extensions" >&5
10f2d63a
VZ
10599if eval "test \"`echo '$''{'wx_cv_gnu_extensions'+set}'`\" = set"; then
10600 echo $ac_n "(cached) $ac_c" 1>&6
10601else
10602
10603 cat > conftest.$ac_ext <<EOF
b4085ce6 10604#line 10605 "configure"
10f2d63a
VZ
10605#include "confdefs.h"
10606#include <features.h>
10607int main() {
10608
10609
10610#ifndef __GNU_LIBRARY__
10611 Compile error wanted
10612#endif
10613
10614
10615; return 0; }
10616EOF
b4085ce6 10617if { (eval echo configure:10618: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10f2d63a
VZ
10618 rm -rf conftest*
10619 wx_cv_gnu_extensions=yes
10620else
10621 echo "configure: failed program was:" >&5
10622 cat conftest.$ac_ext >&5
10623 rm -rf conftest*
10624 wx_cv_gnu_extensions=no
10625fi
10626rm -f conftest*
10627
10628fi
10629
10630
10631echo "$ac_t""$wx_cv_gnu_extensions" 1>&6
10632if test "$wx_cv_gnu_extensions" = "yes"; then
10633 cat >> confdefs.h <<EOF
10634#define _GNU_SOURCE 1
10635EOF
10636
10637fi
10638
10639
10640
10641echo $ac_n "checking for wcslen in -lc""... $ac_c" 1>&6
b4085ce6 10642echo "configure:10643: checking for wcslen in -lc" >&5
10f2d63a
VZ
10643ac_lib_var=`echo c'_'wcslen | sed 'y%./+-%__p_%'`
10644if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10645 echo $ac_n "(cached) $ac_c" 1>&6
10646else
10647 ac_save_LIBS="$LIBS"
10648LIBS="-lc $LIBS"
10649cat > conftest.$ac_ext <<EOF
b4085ce6 10650#line 10651 "configure"
10f2d63a
VZ
10651#include "confdefs.h"
10652/* Override any gcc2 internal prototype to avoid an error. */
10653/* We use char because int might match the return type of a gcc2
10654 builtin and then its argument prototype would still apply. */
10655char wcslen();
10656
10657int main() {
10658wcslen()
10659; return 0; }
10660EOF
b4085ce6 10661if { (eval echo configure:10662: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
10662 rm -rf conftest*
10663 eval "ac_cv_lib_$ac_lib_var=yes"
10664else
10665 echo "configure: failed program was:" >&5
10666 cat conftest.$ac_ext >&5
10667 rm -rf conftest*
10668 eval "ac_cv_lib_$ac_lib_var=no"
10669fi
10670rm -f conftest*
10671LIBS="$ac_save_LIBS"
10672
10673fi
10674if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10675 echo "$ac_t""yes" 1>&6
10676
10677 cat >> confdefs.h <<\EOF
10678#define HAVE_WCSLEN 1
10679EOF
10680
10681 WCHAR_LINK=""
10682
10683else
10684 echo "$ac_t""no" 1>&6
10685
10686 echo $ac_n "checking for wcslen in -lw""... $ac_c" 1>&6
b4085ce6 10687echo "configure:10688: checking for wcslen in -lw" >&5
10f2d63a
VZ
10688ac_lib_var=`echo w'_'wcslen | sed 'y%./+-%__p_%'`
10689if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10690 echo $ac_n "(cached) $ac_c" 1>&6
10691else
10692 ac_save_LIBS="$LIBS"
10693LIBS="-lw $LIBS"
10694cat > conftest.$ac_ext <<EOF
b4085ce6 10695#line 10696 "configure"
10f2d63a
VZ
10696#include "confdefs.h"
10697/* Override any gcc2 internal prototype to avoid an error. */
10698/* We use char because int might match the return type of a gcc2
10699 builtin and then its argument prototype would still apply. */
10700char wcslen();
10701
10702int main() {
10703wcslen()
10704; return 0; }
10705EOF
b4085ce6 10706if { (eval echo configure:10707: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
10707 rm -rf conftest*
10708 eval "ac_cv_lib_$ac_lib_var=yes"
10709else
10710 echo "configure: failed program was:" >&5
10711 cat conftest.$ac_ext >&5
10712 rm -rf conftest*
10713 eval "ac_cv_lib_$ac_lib_var=no"
10714fi
10715rm -f conftest*
10716LIBS="$ac_save_LIBS"
10717
10718fi
10719if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10720 echo "$ac_t""yes" 1>&6
10721
10722 cat >> confdefs.h <<\EOF
10723#define HAVE_WCSLEN 1
10724EOF
10725
10726 WCHAR_LINK="-lw"
10727
10728else
10729 echo "$ac_t""no" 1>&6
10730fi
10731
10732
10733fi
10734
10735
10736echo $ac_n "checking for vprintf""... $ac_c" 1>&6
b4085ce6 10737echo "configure:10738: checking for vprintf" >&5
10f2d63a
VZ
10738if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
10739 echo $ac_n "(cached) $ac_c" 1>&6
10740else
10741 cat > conftest.$ac_ext <<EOF
b4085ce6 10742#line 10743 "configure"
10f2d63a
VZ
10743#include "confdefs.h"
10744/* System header to define __stub macros and hopefully few prototypes,
10745 which can conflict with char vprintf(); below. */
10746#include <assert.h>
10747/* Override any gcc2 internal prototype to avoid an error. */
10748/* We use char because int might match the return type of a gcc2
10749 builtin and then its argument prototype would still apply. */
10750char vprintf();
10751
10752int main() {
10753
10754/* The GNU C library defines this for functions which it implements
10755 to always fail with ENOSYS. Some functions are actually named
10756 something starting with __ and the normal name is an alias. */
10757#if defined (__stub_vprintf) || defined (__stub___vprintf)
10758choke me
10759#else
e8482f24 10760vprintf();
10f2d63a
VZ
10761#endif
10762
10763; return 0; }
10764EOF
b4085ce6 10765if { (eval echo configure:10766: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
10766 rm -rf conftest*
10767 eval "ac_cv_func_vprintf=yes"
10768else
10769 echo "configure: failed program was:" >&5
10770 cat conftest.$ac_ext >&5
10771 rm -rf conftest*
10772 eval "ac_cv_func_vprintf=no"
10773fi
10774rm -f conftest*
10775fi
10776
10777if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
10778 echo "$ac_t""yes" 1>&6
10779 cat >> confdefs.h <<\EOF
10780#define HAVE_VPRINTF 1
10781EOF
10782
10783else
10784 echo "$ac_t""no" 1>&6
10785fi
10786
10787if test "$ac_cv_func_vprintf" != yes; then
10788echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
b4085ce6 10789echo "configure:10790: checking for _doprnt" >&5
10f2d63a
VZ
10790if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
10791 echo $ac_n "(cached) $ac_c" 1>&6
10792else
10793 cat > conftest.$ac_ext <<EOF
b4085ce6 10794#line 10795 "configure"
10f2d63a
VZ
10795#include "confdefs.h"
10796/* System header to define __stub macros and hopefully few prototypes,
10797 which can conflict with char _doprnt(); below. */
10798#include <assert.h>
10799/* Override any gcc2 internal prototype to avoid an error. */
10800/* We use char because int might match the return type of a gcc2
10801 builtin and then its argument prototype would still apply. */
10802char _doprnt();
10803
10804int main() {
10805
10806/* The GNU C library defines this for functions which it implements
10807 to always fail with ENOSYS. Some functions are actually named
10808 something starting with __ and the normal name is an alias. */
10809#if defined (__stub__doprnt) || defined (__stub____doprnt)
10810choke me
10811#else
e8482f24 10812_doprnt();
10f2d63a
VZ
10813#endif
10814
10815; return 0; }
10816EOF
b4085ce6 10817if { (eval echo configure:10818: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
10818 rm -rf conftest*
10819 eval "ac_cv_func__doprnt=yes"
10820else
10821 echo "configure: failed program was:" >&5
10822 cat conftest.$ac_ext >&5
10823 rm -rf conftest*
10824 eval "ac_cv_func__doprnt=no"
10825fi
10826rm -f conftest*
10827fi
10828
10829if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
10830 echo "$ac_t""yes" 1>&6
10831 cat >> confdefs.h <<\EOF
10832#define HAVE_DOPRNT 1
10833EOF
10834
10835else
10836 echo "$ac_t""no" 1>&6
10837fi
10838
10839fi
10840
10841
10f2d63a 10842
f6bcfd97
BP
10843ac_ext=C
10844# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10845ac_cpp='$CXXCPP $CPPFLAGS'
10846ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10847ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10848cross_compiling=$ac_cv_prog_cxx_cross
10849
10850
10851
10852
10853echo $ac_n "checking for vsnprintf""... $ac_c" 1>&6
b4085ce6 10854echo "configure:10855: checking for vsnprintf" >&5
f6bcfd97
BP
10855if eval "test \"`echo '$''{'wx_cv_func_vsnprintf'+set}'`\" = set"; then
10856 echo $ac_n "(cached) $ac_c" 1>&6
10857else
10858
10859 cat > conftest.$ac_ext <<EOF
b4085ce6 10860#line 10861 "configure"
f6bcfd97
BP
10861#include "confdefs.h"
10862
10863 #include <stdio.h>
10864 #include <stdarg.h>
10865
10f2d63a
VZ
10866int main() {
10867
f6bcfd97 10868 int wx_test_vsnprintf(const char *, ...);
10f2d63a 10869
f6bcfd97
BP
10870 wx_test_vsnprintf("%s");
10871 return 0;
10872 }
10873
10874 int wx_test_vsnprintf(const char *fmt, ...)
10875 {
10876 char *s;
10877
10878 va_list argp;
10879 va_start(argp, fmt);
10880 vsnprintf(s, 42, fmt, argp);
10881 va_end(argp);
10882
10f2d63a
VZ
10883; return 0; }
10884EOF
b4085ce6 10885if { (eval echo configure:10886: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10f2d63a 10886 rm -rf conftest*
f6bcfd97
BP
10887
10888 cat >> confdefs.h <<\EOF
10889#define HAVE_VSNPRINTF 1
10890EOF
10891
10892 wx_cv_func_vsnprintf=yes
10893
10f2d63a
VZ
10894else
10895 echo "configure: failed program was:" >&5
10896 cat conftest.$ac_ext >&5
10897 rm -rf conftest*
f6bcfd97
BP
10898
10899 echo "configure: warning: unsafe function sprintf will be used instead of snprintf" 1>&2
10900 wx_cv_func_vsnprintf=no
10901
10f2d63a
VZ
10902fi
10903rm -f conftest*
10f2d63a 10904
10f2d63a 10905fi
10f2d63a 10906
f6bcfd97 10907echo "$ac_t""$wx_cv_func_vsnprintf" 1>&6
10f2d63a
VZ
10908
10909echo $ac_n "checking for vsscanf""... $ac_c" 1>&6
b4085ce6 10910echo "configure:10911: checking for vsscanf" >&5
10f2d63a
VZ
10911if eval "test \"`echo '$''{'wx_cv_func_vsscanf'+set}'`\" = set"; then
10912 echo $ac_n "(cached) $ac_c" 1>&6
10913else
10914
10f2d63a 10915 cat > conftest.$ac_ext <<EOF
b4085ce6 10916#line 10917 "configure"
10f2d63a 10917#include "confdefs.h"
10f2d63a 10918
f6bcfd97
BP
10919 #include <stdio.h>
10920 #include <stdarg.h>
10921
10922int main() {
10f2d63a 10923
f6bcfd97 10924 int wx_test_vsscanf(const char *, ...);
10f2d63a 10925
f6bcfd97
BP
10926 wx_test_vsscanf("%d");
10927 return 0;
10f2d63a
VZ
10928 }
10929
f6bcfd97 10930 int wx_test_vsscanf(const char *fmt, ...)
10f2d63a 10931 {
f6bcfd97
BP
10932 va_list argp;
10933 va_start(argp, fmt);
10934 vsscanf("42", fmt, argp);
10935 va_end(argp);
10936
10937; return 0; }
10f2d63a 10938EOF
b4085ce6 10939if { (eval echo configure:10940: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
f6bcfd97 10940 rm -rf conftest*
10f2d63a 10941
f6bcfd97 10942 cat >> confdefs.h <<\EOF
10f2d63a
VZ
10943#define HAVE_VSSCANF 1
10944EOF
10945
f6bcfd97
BP
10946 wx_cv_func_vsscanf=yes
10947
10f2d63a
VZ
10948else
10949 echo "configure: failed program was:" >&5
10950 cat conftest.$ac_ext >&5
f6bcfd97
BP
10951 rm -rf conftest*
10952
10953 wx_cv_func_vsscanf=no
10954
10f2d63a 10955fi
f6bcfd97 10956rm -f conftest*
10f2d63a
VZ
10957
10958fi
10959
10960echo "$ac_t""$wx_cv_func_vsscanf" 1>&6
10961
10962ac_ext=c
10963# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10964ac_cpp='$CPP $CPPFLAGS'
10965ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10966ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10967cross_compiling=$ac_cv_prog_cc_cross
10968
10969
b089607b 10970if test "$TOOLKIT" != "MSW"; then
10f2d63a 10971
eb4efbdc
VZ
10972if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
10973 for ac_func in sigaction
10974do
10975echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
b4085ce6 10976echo "configure:10977: checking for $ac_func" >&5
eb4efbdc
VZ
10977if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10978 echo $ac_n "(cached) $ac_c" 1>&6
10979else
10980 cat > conftest.$ac_ext <<EOF
b4085ce6 10981#line 10982 "configure"
eb4efbdc
VZ
10982#include "confdefs.h"
10983/* System header to define __stub macros and hopefully few prototypes,
10984 which can conflict with char $ac_func(); below. */
10985#include <assert.h>
10986/* Override any gcc2 internal prototype to avoid an error. */
10987/* We use char because int might match the return type of a gcc2
10988 builtin and then its argument prototype would still apply. */
10989char $ac_func();
10990
10991int main() {
10992
10993/* The GNU C library defines this for functions which it implements
10994 to always fail with ENOSYS. Some functions are actually named
10995 something starting with __ and the normal name is an alias. */
10996#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10997choke me
10998#else
10999$ac_func();
11000#endif
11001
11002; return 0; }
11003EOF
b4085ce6 11004if { (eval echo configure:11005: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
eb4efbdc
VZ
11005 rm -rf conftest*
11006 eval "ac_cv_func_$ac_func=yes"
11007else
11008 echo "configure: failed program was:" >&5
11009 cat conftest.$ac_ext >&5
11010 rm -rf conftest*
11011 eval "ac_cv_func_$ac_func=no"
11012fi
11013rm -f conftest*
11014fi
11015
11016if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11017 echo "$ac_t""yes" 1>&6
11018 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11019 cat >> confdefs.h <<EOF
11020#define $ac_tr_func 1
11021EOF
11022
11023else
11024 echo "$ac_t""no" 1>&6
11025fi
11026done
11027
11028
11029 if test "$ac_cv_func_sigaction" = "no"; then
11030 echo "configure: warning: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" 1>&2
11031 wxUSE_ON_FATAL_EXCEPTION=no
11032 fi
f6bcfd97
BP
11033
11034 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
11035
11036 ac_ext=C
11037# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11038ac_cpp='$CXXCPP $CPPFLAGS'
11039ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11040ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11041cross_compiling=$ac_cv_prog_cxx_cross
11042
11043
11044 echo $ac_n "checking for sa_handler type""... $ac_c" 1>&6
b4085ce6 11045echo "configure:11046: checking for sa_handler type" >&5
f6bcfd97
BP
11046if eval "test \"`echo '$''{'wx_cv_type_sa_handler'+set}'`\" = set"; then
11047 echo $ac_n "(cached) $ac_c" 1>&6
11048else
11049
11050 cat > conftest.$ac_ext <<EOF
b4085ce6 11051#line 11052 "configure"
f6bcfd97
BP
11052#include "confdefs.h"
11053#include <signal.h>
11054int main() {
11055
11056 extern void testSigHandler(int);
11057
11058 struct sigaction sa;
11059 sa.sa_handler = testSigHandler;
11060
11061; return 0; }
11062EOF
b4085ce6 11063if { (eval echo configure:11064: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
f6bcfd97
BP
11064 rm -rf conftest*
11065
11066 wx_cv_type_sa_handler=int
11067
11068else
11069 echo "configure: failed program was:" >&5
11070 cat conftest.$ac_ext >&5
11071 rm -rf conftest*
11072
11073 wx_cv_type_sa_handler=void
11074
11075fi
11076rm -f conftest*
11077
11078fi
11079
11080echo "$ac_t""$wx_cv_type_sa_handler" 1>&6
11081
11082 ac_ext=c
11083# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11084ac_cpp='$CPP $CPPFLAGS'
11085ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11086ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11087cross_compiling=$ac_cv_prog_cc_cross
11088
11089
11090 cat >> confdefs.h <<EOF
11091#define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
11092EOF
11093
11094 fi
eb4efbdc
VZ
11095fi
11096
10f2d63a
VZ
11097for ac_func in vfork
11098do
11099echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
b4085ce6 11100echo "configure:11101: checking for $ac_func" >&5
10f2d63a
VZ
11101if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11102 echo $ac_n "(cached) $ac_c" 1>&6
11103else
11104 cat > conftest.$ac_ext <<EOF
b4085ce6 11105#line 11106 "configure"
10f2d63a
VZ
11106#include "confdefs.h"
11107/* System header to define __stub macros and hopefully few prototypes,
11108 which can conflict with char $ac_func(); below. */
11109#include <assert.h>
11110/* Override any gcc2 internal prototype to avoid an error. */
11111/* We use char because int might match the return type of a gcc2
11112 builtin and then its argument prototype would still apply. */
11113char $ac_func();
11114
11115int main() {
11116
11117/* The GNU C library defines this for functions which it implements
11118 to always fail with ENOSYS. Some functions are actually named
11119 something starting with __ and the normal name is an alias. */
11120#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11121choke me
11122#else
e8482f24 11123$ac_func();
10f2d63a
VZ
11124#endif
11125
11126; return 0; }
11127EOF
b4085ce6 11128if { (eval echo configure:11129: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
270a909e
VZ
11129 rm -rf conftest*
11130 eval "ac_cv_func_$ac_func=yes"
11131else
11132 echo "configure: failed program was:" >&5
11133 cat conftest.$ac_ext >&5
11134 rm -rf conftest*
11135 eval "ac_cv_func_$ac_func=no"
11136fi
11137rm -f conftest*
11138fi
11139
11140if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11141 echo "$ac_t""yes" 1>&6
11142 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11143 cat >> confdefs.h <<EOF
11144#define $ac_tr_func 1
11145EOF
11146
11147else
11148 echo "$ac_t""no" 1>&6
11149fi
11150done
11151
11152
11153for ac_func in timegm
11154do
11155echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
b4085ce6 11156echo "configure:11157: checking for $ac_func" >&5
270a909e
VZ
11157if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11158 echo $ac_n "(cached) $ac_c" 1>&6
11159else
11160 cat > conftest.$ac_ext <<EOF
b4085ce6 11161#line 11162 "configure"
270a909e
VZ
11162#include "confdefs.h"
11163/* System header to define __stub macros and hopefully few prototypes,
11164 which can conflict with char $ac_func(); below. */
11165#include <assert.h>
11166/* Override any gcc2 internal prototype to avoid an error. */
11167/* We use char because int might match the return type of a gcc2
11168 builtin and then its argument prototype would still apply. */
11169char $ac_func();
11170
11171int main() {
11172
11173/* The GNU C library defines this for functions which it implements
11174 to always fail with ENOSYS. Some functions are actually named
11175 something starting with __ and the normal name is an alias. */
11176#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11177choke me
11178#else
e8482f24 11179$ac_func();
270a909e
VZ
11180#endif
11181
11182; return 0; }
11183EOF
b4085ce6 11184if { (eval echo configure:11185: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
11185 rm -rf conftest*
11186 eval "ac_cv_func_$ac_func=yes"
11187else
11188 echo "configure: failed program was:" >&5
11189 cat conftest.$ac_ext >&5
11190 rm -rf conftest*
11191 eval "ac_cv_func_$ac_func=no"
11192fi
11193rm -f conftest*
11194fi
11195
11196if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11197 echo "$ac_t""yes" 1>&6
11198 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11199 cat >> confdefs.h <<EOF
11200#define $ac_tr_func 1
11201EOF
11202
11203else
11204 echo "$ac_t""no" 1>&6
11205fi
11206done
11207
11208
8fd0d89b
VZ
11209for ac_func in putenv setenv
11210do
11211echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
b4085ce6 11212echo "configure:11213: checking for $ac_func" >&5
8fd0d89b
VZ
11213if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11214 echo $ac_n "(cached) $ac_c" 1>&6
11215else
11216 cat > conftest.$ac_ext <<EOF
b4085ce6 11217#line 11218 "configure"
8fd0d89b
VZ
11218#include "confdefs.h"
11219/* System header to define __stub macros and hopefully few prototypes,
11220 which can conflict with char $ac_func(); below. */
11221#include <assert.h>
11222/* Override any gcc2 internal prototype to avoid an error. */
11223/* We use char because int might match the return type of a gcc2
11224 builtin and then its argument prototype would still apply. */
11225char $ac_func();
11226
11227int main() {
11228
11229/* The GNU C library defines this for functions which it implements
11230 to always fail with ENOSYS. Some functions are actually named
11231 something starting with __ and the normal name is an alias. */
11232#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11233choke me
11234#else
11235$ac_func();
11236#endif
11237
11238; return 0; }
11239EOF
b4085ce6 11240if { (eval echo configure:11241: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8fd0d89b
VZ
11241 rm -rf conftest*
11242 eval "ac_cv_func_$ac_func=yes"
11243else
11244 echo "configure: failed program was:" >&5
11245 cat conftest.$ac_ext >&5
11246 rm -rf conftest*
11247 eval "ac_cv_func_$ac_func=no"
11248fi
11249rm -f conftest*
11250fi
11251
11252if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11253 echo "$ac_t""yes" 1>&6
11254 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11255 cat >> confdefs.h <<EOF
11256#define $ac_tr_func 1
11257EOF
11258 break
11259else
11260 echo "$ac_t""no" 1>&6
11261fi
11262done
11263
11264
b12915c1
VZ
11265HAVE_SOME_SLEEP_FUNC=0
11266if test "$USE_BEOS" = 1; then
11267 cat >> confdefs.h <<\EOF
11268#define HAVE_SLEEP 1
11269EOF
11270
11271 HAVE_SOME_SLEEP_FUNC=1
11272fi
11273
b4085ce6
GD
11274if test "$USE_MAC" = 1; then
11275 cat >> confdefs.h <<\EOF
11276#define HAVE_USLEEP 1
11277EOF
11278
11279 HAVE_SOME_SLEEP_FUNC=1
11280fi
11281
b12915c1
VZ
11282if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
11283 POSIX4_LINK=
11284 for ac_func in nanosleep
10f2d63a
VZ
11285do
11286echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
b4085ce6 11287echo "configure:11288: checking for $ac_func" >&5
10f2d63a
VZ
11288if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11289 echo $ac_n "(cached) $ac_c" 1>&6
11290else
11291 cat > conftest.$ac_ext <<EOF
b4085ce6 11292#line 11293 "configure"
10f2d63a
VZ
11293#include "confdefs.h"
11294/* System header to define __stub macros and hopefully few prototypes,
11295 which can conflict with char $ac_func(); below. */
11296#include <assert.h>
11297/* Override any gcc2 internal prototype to avoid an error. */
11298/* We use char because int might match the return type of a gcc2
11299 builtin and then its argument prototype would still apply. */
11300char $ac_func();
11301
11302int main() {
11303
11304/* The GNU C library defines this for functions which it implements
11305 to always fail with ENOSYS. Some functions are actually named
11306 something starting with __ and the normal name is an alias. */
11307#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11308choke me
11309#else
e8482f24 11310$ac_func();
10f2d63a
VZ
11311#endif
11312
11313; return 0; }
11314EOF
b4085ce6 11315if { (eval echo configure:11316: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
11316 rm -rf conftest*
11317 eval "ac_cv_func_$ac_func=yes"
11318else
11319 echo "configure: failed program was:" >&5
11320 cat conftest.$ac_ext >&5
11321 rm -rf conftest*
11322 eval "ac_cv_func_$ac_func=no"
11323fi
11324rm -f conftest*
11325fi
11326
11327if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11328 echo "$ac_t""yes" 1>&6
11329 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11330 cat >> confdefs.h <<EOF
11331#define $ac_tr_func 1
11332EOF
11333 cat >> confdefs.h <<\EOF
11334#define HAVE_NANOSLEEP 1
11335EOF
11336
11337else
11338 echo "$ac_t""no" 1>&6
11339echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6
b4085ce6 11340echo "configure:11341: checking for nanosleep in -lposix4" >&5
10f2d63a
VZ
11341ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'`
11342if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11343 echo $ac_n "(cached) $ac_c" 1>&6
11344else
11345 ac_save_LIBS="$LIBS"
11346LIBS="-lposix4 $LIBS"
11347cat > conftest.$ac_ext <<EOF
b4085ce6 11348#line 11349 "configure"
10f2d63a
VZ
11349#include "confdefs.h"
11350/* Override any gcc2 internal prototype to avoid an error. */
11351/* We use char because int might match the return type of a gcc2
11352 builtin and then its argument prototype would still apply. */
11353char nanosleep();
11354
11355int main() {
11356nanosleep()
11357; return 0; }
11358EOF
b4085ce6 11359if { (eval echo configure:11360: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
11360 rm -rf conftest*
11361 eval "ac_cv_lib_$ac_lib_var=yes"
11362else
11363 echo "configure: failed program was:" >&5
11364 cat conftest.$ac_ext >&5
11365 rm -rf conftest*
11366 eval "ac_cv_lib_$ac_lib_var=no"
11367fi
11368rm -f conftest*
11369LIBS="$ac_save_LIBS"
11370
11371fi
11372if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11373 echo "$ac_t""yes" 1>&6
11374
b12915c1 11375 cat >> confdefs.h <<\EOF
10f2d63a
VZ
11376#define HAVE_NANOSLEEP 1
11377EOF
11378
b12915c1
VZ
11379 POSIX4_LINK="-lposix4"
11380
10f2d63a
VZ
11381else
11382 echo "$ac_t""no" 1>&6
11383
b12915c1 11384 for ac_func in usleep
10f2d63a
VZ
11385do
11386echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
b4085ce6 11387echo "configure:11388: checking for $ac_func" >&5
10f2d63a
VZ
11388if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11389 echo $ac_n "(cached) $ac_c" 1>&6
11390else
11391 cat > conftest.$ac_ext <<EOF
b4085ce6 11392#line 11393 "configure"
10f2d63a
VZ
11393#include "confdefs.h"
11394/* System header to define __stub macros and hopefully few prototypes,
11395 which can conflict with char $ac_func(); below. */
11396#include <assert.h>
11397/* Override any gcc2 internal prototype to avoid an error. */
11398/* We use char because int might match the return type of a gcc2
11399 builtin and then its argument prototype would still apply. */
11400char $ac_func();
11401
11402int main() {
11403
11404/* The GNU C library defines this for functions which it implements
11405 to always fail with ENOSYS. Some functions are actually named
11406 something starting with __ and the normal name is an alias. */
11407#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11408choke me
11409#else
e8482f24 11410$ac_func();
10f2d63a
VZ
11411#endif
11412
11413; return 0; }
11414EOF
b4085ce6 11415if { (eval echo configure:11416: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
11416 rm -rf conftest*
11417 eval "ac_cv_func_$ac_func=yes"
11418else
11419 echo "configure: failed program was:" >&5
11420 cat conftest.$ac_ext >&5
11421 rm -rf conftest*
11422 eval "ac_cv_func_$ac_func=no"
11423fi
11424rm -f conftest*
11425fi
11426
11427if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11428 echo "$ac_t""yes" 1>&6
11429 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11430 cat >> confdefs.h <<EOF
11431#define $ac_tr_func 1
11432EOF
b4085ce6
GD
11433 cat >> confdefs.h <<\EOF
11434#define HAVE_USLEEP 1
11435EOF
11436
10f2d63a
VZ
11437else
11438 echo "$ac_t""no" 1>&6
10f2d63a
VZ
11439fi
11440done
11441
b12915c1
VZ
11442 echo "configure: warning: wxSleep() function will not work" 1>&2
11443
11444
10f2d63a
VZ
11445fi
11446
b12915c1
VZ
11447
11448
10f2d63a
VZ
11449fi
11450done
11451
b12915c1 11452fi
10f2d63a
VZ
11453
11454for ac_func in uname gethostname
11455do
11456echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
b4085ce6 11457echo "configure:11458: checking for $ac_func" >&5
10f2d63a
VZ
11458if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11459 echo $ac_n "(cached) $ac_c" 1>&6
11460else
11461 cat > conftest.$ac_ext <<EOF
b4085ce6 11462#line 11463 "configure"
10f2d63a
VZ
11463#include "confdefs.h"
11464/* System header to define __stub macros and hopefully few prototypes,
11465 which can conflict with char $ac_func(); below. */
11466#include <assert.h>
11467/* Override any gcc2 internal prototype to avoid an error. */
11468/* We use char because int might match the return type of a gcc2
11469 builtin and then its argument prototype would still apply. */
11470char $ac_func();
11471
11472int main() {
11473
11474/* The GNU C library defines this for functions which it implements
11475 to always fail with ENOSYS. Some functions are actually named
11476 something starting with __ and the normal name is an alias. */
11477#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11478choke me
11479#else
e8482f24 11480$ac_func();
10f2d63a
VZ
11481#endif
11482
11483; return 0; }
11484EOF
b4085ce6 11485if { (eval echo configure:11486: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
11486 rm -rf conftest*
11487 eval "ac_cv_func_$ac_func=yes"
11488else
11489 echo "configure: failed program was:" >&5
11490 cat conftest.$ac_ext >&5
11491 rm -rf conftest*
11492 eval "ac_cv_func_$ac_func=no"
11493fi
11494rm -f conftest*
11495fi
11496
11497if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11498 echo "$ac_t""yes" 1>&6
11499 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11500 cat >> confdefs.h <<EOF
11501#define $ac_tr_func 1
11502EOF
11503 break
11504else
11505 echo "$ac_t""no" 1>&6
11506fi
11507done
11508
11509
6098c7f9
VZ
11510
11511ac_ext=C
11512# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11513ac_cpp='$CXXCPP $CPPFLAGS'
11514ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11515ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11516cross_compiling=$ac_cv_prog_cxx_cross
11517
11518
10f2d63a
VZ
11519for ac_func in strtok_r
11520do
11521echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
b4085ce6 11522echo "configure:11523: checking for $ac_func" >&5
10f2d63a
VZ
11523if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11524 echo $ac_n "(cached) $ac_c" 1>&6
11525else
11526 cat > conftest.$ac_ext <<EOF
b4085ce6 11527#line 11528 "configure"
10f2d63a
VZ
11528#include "confdefs.h"
11529/* System header to define __stub macros and hopefully few prototypes,
11530 which can conflict with char $ac_func(); below. */
11531#include <assert.h>
11532/* Override any gcc2 internal prototype to avoid an error. */
6098c7f9
VZ
11533#ifdef __cplusplus
11534extern "C"
11535#endif
10f2d63a
VZ
11536/* We use char because int might match the return type of a gcc2
11537 builtin and then its argument prototype would still apply. */
11538char $ac_func();
11539
11540int main() {
11541
11542/* The GNU C library defines this for functions which it implements
11543 to always fail with ENOSYS. Some functions are actually named
11544 something starting with __ and the normal name is an alias. */
11545#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11546choke me
11547#else
e8482f24 11548$ac_func();
10f2d63a
VZ
11549#endif
11550
11551; return 0; }
11552EOF
b4085ce6 11553if { (eval echo configure:11554: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
11554 rm -rf conftest*
11555 eval "ac_cv_func_$ac_func=yes"
11556else
11557 echo "configure: failed program was:" >&5
11558 cat conftest.$ac_ext >&5
11559 rm -rf conftest*
11560 eval "ac_cv_func_$ac_func=no"
11561fi
11562rm -f conftest*
11563fi
11564
11565if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11566 echo "$ac_t""yes" 1>&6
11567 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11568 cat >> confdefs.h <<EOF
11569#define $ac_tr_func 1
11570EOF
11571
11572else
11573 echo "$ac_t""no" 1>&6
11574fi
11575done
11576
11577
6098c7f9
VZ
11578ac_ext=c
11579# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11580ac_cpp='$CPP $CPPFLAGS'
11581ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11582ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11583cross_compiling=$ac_cv_prog_cc_cross
11584
11585
c63c7106 11586INET_LINK=
10f2d63a
VZ
11587for ac_func in inet_addr
11588do
11589echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
b4085ce6 11590echo "configure:11591: checking for $ac_func" >&5
10f2d63a
VZ
11591if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11592 echo $ac_n "(cached) $ac_c" 1>&6
11593else
11594 cat > conftest.$ac_ext <<EOF
b4085ce6 11595#line 11596 "configure"
10f2d63a
VZ
11596#include "confdefs.h"
11597/* System header to define __stub macros and hopefully few prototypes,
11598 which can conflict with char $ac_func(); below. */
11599#include <assert.h>
11600/* Override any gcc2 internal prototype to avoid an error. */
11601/* We use char because int might match the return type of a gcc2
11602 builtin and then its argument prototype would still apply. */
11603char $ac_func();
11604
11605int main() {
11606
11607/* The GNU C library defines this for functions which it implements
11608 to always fail with ENOSYS. Some functions are actually named
11609 something starting with __ and the normal name is an alias. */
11610#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11611choke me
11612#else
e8482f24 11613$ac_func();
10f2d63a
VZ
11614#endif
11615
11616; return 0; }
11617EOF
b4085ce6 11618if { (eval echo configure:11619: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
11619 rm -rf conftest*
11620 eval "ac_cv_func_$ac_func=yes"
11621else
11622 echo "configure: failed program was:" >&5
11623 cat conftest.$ac_ext >&5
11624 rm -rf conftest*
11625 eval "ac_cv_func_$ac_func=no"
11626fi
11627rm -f conftest*
11628fi
11629
11630if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11631 echo "$ac_t""yes" 1>&6
11632 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11633 cat >> confdefs.h <<EOF
11634#define $ac_tr_func 1
11635EOF
c63c7106
VZ
11636 cat >> confdefs.h <<\EOF
11637#define HAVE_INET_ADDR 1
11638EOF
11639
10f2d63a
VZ
11640else
11641 echo "$ac_t""no" 1>&6
c63c7106 11642echo $ac_n "checking for inet_addr in -lnsl""... $ac_c" 1>&6
b4085ce6 11643echo "configure:11644: checking for inet_addr in -lnsl" >&5
c63c7106
VZ
11644ac_lib_var=`echo nsl'_'inet_addr | sed 'y%./+-%__p_%'`
11645if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11646 echo $ac_n "(cached) $ac_c" 1>&6
11647else
11648 ac_save_LIBS="$LIBS"
11649LIBS="-lnsl $LIBS"
11650cat > conftest.$ac_ext <<EOF
b4085ce6 11651#line 11652 "configure"
c63c7106
VZ
11652#include "confdefs.h"
11653/* Override any gcc2 internal prototype to avoid an error. */
11654/* We use char because int might match the return type of a gcc2
11655 builtin and then its argument prototype would still apply. */
11656char inet_addr();
11657
11658int main() {
11659inet_addr()
11660; return 0; }
11661EOF
b4085ce6 11662if { (eval echo configure:11663: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
c63c7106
VZ
11663 rm -rf conftest*
11664 eval "ac_cv_lib_$ac_lib_var=yes"
11665else
11666 echo "configure: failed program was:" >&5
11667 cat conftest.$ac_ext >&5
11668 rm -rf conftest*
11669 eval "ac_cv_lib_$ac_lib_var=no"
11670fi
11671rm -f conftest*
11672LIBS="$ac_save_LIBS"
11673
11674fi
11675if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11676 echo "$ac_t""yes" 1>&6
11677 INET_LINK="nsl"
11678else
11679 echo "$ac_t""no" 1>&6
11680echo $ac_n "checking for inet_addr in -lresolv""... $ac_c" 1>&6
b4085ce6 11681echo "configure:11682: checking for inet_addr in -lresolv" >&5
c63c7106
VZ
11682ac_lib_var=`echo resolv'_'inet_addr | sed 'y%./+-%__p_%'`
11683if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11684 echo $ac_n "(cached) $ac_c" 1>&6
11685else
11686 ac_save_LIBS="$LIBS"
11687LIBS="-lresolv $LIBS"
11688cat > conftest.$ac_ext <<EOF
b4085ce6 11689#line 11690 "configure"
c63c7106
VZ
11690#include "confdefs.h"
11691/* Override any gcc2 internal prototype to avoid an error. */
11692/* We use char because int might match the return type of a gcc2
11693 builtin and then its argument prototype would still apply. */
11694char inet_addr();
11695
11696int main() {
11697inet_addr()
11698; return 0; }
11699EOF
b4085ce6 11700if { (eval echo configure:11701: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
c63c7106
VZ
11701 rm -rf conftest*
11702 eval "ac_cv_lib_$ac_lib_var=yes"
11703else
11704 echo "configure: failed program was:" >&5
11705 cat conftest.$ac_ext >&5
11706 rm -rf conftest*
11707 eval "ac_cv_lib_$ac_lib_var=no"
11708fi
11709rm -f conftest*
11710LIBS="$ac_save_LIBS"
11711
11712fi
11713if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11714 echo "$ac_t""yes" 1>&6
11715 INET_LINK="resolv"
11716
11717else
11718 echo "$ac_t""no" 1>&6
11719fi
11720
11721
11722fi
11723
11724
11725
10f2d63a
VZ
11726fi
11727done
11728
c63c7106 11729
10f2d63a
VZ
11730for ac_func in inet_aton
11731do
11732echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
b4085ce6 11733echo "configure:11734: checking for $ac_func" >&5
10f2d63a
VZ
11734if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11735 echo $ac_n "(cached) $ac_c" 1>&6
11736else
11737 cat > conftest.$ac_ext <<EOF
b4085ce6 11738#line 11739 "configure"
10f2d63a
VZ
11739#include "confdefs.h"
11740/* System header to define __stub macros and hopefully few prototypes,
11741 which can conflict with char $ac_func(); below. */
11742#include <assert.h>
11743/* Override any gcc2 internal prototype to avoid an error. */
11744/* We use char because int might match the return type of a gcc2
11745 builtin and then its argument prototype would still apply. */
11746char $ac_func();
11747
11748int main() {
11749
11750/* The GNU C library defines this for functions which it implements
11751 to always fail with ENOSYS. Some functions are actually named
11752 something starting with __ and the normal name is an alias. */
11753#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11754choke me
11755#else
e8482f24 11756$ac_func();
10f2d63a
VZ
11757#endif
11758
11759; return 0; }
11760EOF
b4085ce6 11761if { (eval echo configure:11762: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
11762 rm -rf conftest*
11763 eval "ac_cv_func_$ac_func=yes"
11764else
11765 echo "configure: failed program was:" >&5
11766 cat conftest.$ac_ext >&5
11767 rm -rf conftest*
11768 eval "ac_cv_func_$ac_func=no"
11769fi
11770rm -f conftest*
11771fi
11772
11773if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11774 echo "$ac_t""yes" 1>&6
11775 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11776 cat >> confdefs.h <<EOF
11777#define $ac_tr_func 1
11778EOF
c63c7106
VZ
11779 cat >> confdefs.h <<\EOF
11780#define HAVE_INET_ATON 1
11781EOF
11782
10f2d63a
VZ
11783else
11784 echo "$ac_t""no" 1>&6
c63c7106 11785 echo $ac_n "checking for inet_aton in -l$INET_LINK""... $ac_c" 1>&6
b4085ce6 11786echo "configure:11787: checking for inet_aton in -l$INET_LINK" >&5
c63c7106 11787ac_lib_var=`echo $INET_LINK'_'inet_aton | sed 'y%./+-%__p_%'`
10f2d63a
VZ
11788if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11789 echo $ac_n "(cached) $ac_c" 1>&6
11790else
11791 ac_save_LIBS="$LIBS"
c63c7106 11792LIBS="-l$INET_LINK $LIBS"
10f2d63a 11793cat > conftest.$ac_ext <<EOF
b4085ce6 11794#line 11795 "configure"
10f2d63a
VZ
11795#include "confdefs.h"
11796/* Override any gcc2 internal prototype to avoid an error. */
11797/* We use char because int might match the return type of a gcc2
11798 builtin and then its argument prototype would still apply. */
11799char inet_aton();
11800
11801int main() {
11802inet_aton()
11803; return 0; }
11804EOF
b4085ce6 11805if { (eval echo configure:11806: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
11806 rm -rf conftest*
11807 eval "ac_cv_lib_$ac_lib_var=yes"
11808else
11809 echo "configure: failed program was:" >&5
11810 cat conftest.$ac_ext >&5
11811 rm -rf conftest*
11812 eval "ac_cv_lib_$ac_lib_var=no"
11813fi
11814rm -f conftest*
11815LIBS="$ac_save_LIBS"
11816
11817fi
11818if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11819 echo "$ac_t""yes" 1>&6
c63c7106
VZ
11820 cat >> confdefs.h <<\EOF
11821#define HAVE_INET_ATON 1
10f2d63a
VZ
11822EOF
11823
10f2d63a
VZ
11824else
11825 echo "$ac_t""no" 1>&6
11826fi
11827
c63c7106
VZ
11828
11829fi
11830done
11831
11832
11833if test "x$INET_LINK" != "x"; then
11834 cat >> confdefs.h <<\EOF
11835#define HAVE_INET_ADDR 1
11836EOF
11837
11838 INET_LINK="-l$INET_LINK"
11839fi
10f2d63a
VZ
11840
11841fi
11842
11843
11844cat > confcache <<\EOF
11845# This file is a shell script that caches the results of configure
11846# tests run on this system so they can be shared between configure
11847# scripts and configure runs. It is not useful on other systems.
11848# If it contains results you don't want to keep, you may remove or edit it.
11849#
11850# By default, configure uses ./config.cache as the cache file,
11851# creating it if it does not exist already. You can give configure
11852# the --cache-file=FILE option to use a different cache file; that is
11853# what configure does when it calls configure scripts in
11854# subdirectories, so they share the cache.
11855# Giving --cache-file=/dev/null disables caching, for debugging configure.
11856# config.status only pays attention to the cache file if you give it the
11857# --recheck option to rerun configure.
11858#
11859EOF
11860# The following way of writing the cache mishandles newlines in values,
11861# but we know of no workaround that is simple, portable, and efficient.
11862# So, don't put newlines in cache variables' values.
11863# Ultrix sh set writes to stderr and can't be redirected directly,
11864# and sets the high bit in the cache file unless we assign to the vars.
11865(set) 2>&1 |
11866 case `(ac_space=' '; set | grep ac_space) 2>&1` in
11867 *ac_space=\ *)
11868 # `set' does not quote correctly, so add quotes (double-quote substitution
11869 # turns \\\\ into \\, and sed turns \\ into \).
11870 sed -n \
11871 -e "s/'/'\\\\''/g" \
11872 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
11873 ;;
11874 *)
11875 # `set' quotes correctly as required by POSIX, so do not add quotes.
11876 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
11877 ;;
11878 esac >> confcache
11879if cmp -s $cache_file confcache; then
11880 :
11881else
11882 if test -w $cache_file; then
11883 echo "updating cache $cache_file"
11884 cat confcache > $cache_file
11885 else
11886 echo "not updating unwritable cache $cache_file"
11887 fi
11888fi
11889rm -f confcache
11890
11891
11892
b089607b 11893if test "$TOOLKIT" != "MSW"; then
10f2d63a
VZ
11894
11895
11896THREADS_LINK=""
11897THREADS_OBJ=""
11898
11899if test "$wxUSE_THREADS" = "yes" ; then
11900 if test "$wxUSE_WINE" = 1 ; then
11901 echo "configure: warning: Threads are not supported under WINE" 1>&2
11902 wxUSE_THREADS="no"
b12915c1
VZ
11903 elif test "$USE_BEOS" = 1; then
11904 echo "configure: warning: BeOS threads are not yet supported" 1>&2
11905 wxUSE_THREADS="no"
10f2d63a
VZ
11906 fi
11907fi
11908
11909if test "$wxUSE_THREADS" = "yes" ; then
11910
186837b0 11911 if test "$USE_AIX" = 1; then
f6bcfd97
BP
11912 THREADS_LIB=pthreads
11913 else
11914 THREADS_LIB=pthread
11915 fi
11916
11917 echo $ac_n "checking for pthread_create in -l$THREADS_LIB""... $ac_c" 1>&6
b4085ce6 11918echo "configure:11919: checking for pthread_create in -l$THREADS_LIB" >&5
f6bcfd97 11919ac_lib_var=`echo $THREADS_LIB'_'pthread_create | sed 'y%./+-%__p_%'`
10f2d63a
VZ
11920if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11921 echo $ac_n "(cached) $ac_c" 1>&6
11922else
11923 ac_save_LIBS="$LIBS"
f6bcfd97 11924LIBS="-l$THREADS_LIB $LIBS"
10f2d63a 11925cat > conftest.$ac_ext <<EOF
b4085ce6 11926#line 11927 "configure"
10f2d63a
VZ
11927#include "confdefs.h"
11928/* Override any gcc2 internal prototype to avoid an error. */
11929/* We use char because int might match the return type of a gcc2
11930 builtin and then its argument prototype would still apply. */
11931char pthread_create();
11932
11933int main() {
11934pthread_create()
11935; return 0; }
11936EOF
b4085ce6 11937if { (eval echo configure:11938: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
11938 rm -rf conftest*
11939 eval "ac_cv_lib_$ac_lib_var=yes"
11940else
11941 echo "configure: failed program was:" >&5
11942 cat conftest.$ac_ext >&5
11943 rm -rf conftest*
11944 eval "ac_cv_lib_$ac_lib_var=no"
11945fi
11946rm -f conftest*
11947LIBS="$ac_save_LIBS"
11948
11949fi
11950if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11951 echo "$ac_t""yes" 1>&6
11952
11953 THREADS_OBJ="threadpsx.lo"
f6bcfd97 11954 THREADS_LINK=$THREADS_LIB
10f2d63a
VZ
11955
11956else
11957 echo "$ac_t""no" 1>&6
11958
11959 echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6
b4085ce6 11960echo "configure:11961: checking for pthread_create in -lc_r" >&5
10f2d63a
VZ
11961ac_lib_var=`echo c_r'_'pthread_create | sed 'y%./+-%__p_%'`
11962if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11963 echo $ac_n "(cached) $ac_c" 1>&6
11964else
11965 ac_save_LIBS="$LIBS"
11966LIBS="-lc_r $LIBS"
11967cat > conftest.$ac_ext <<EOF
b4085ce6 11968#line 11969 "configure"
10f2d63a
VZ
11969#include "confdefs.h"
11970/* Override any gcc2 internal prototype to avoid an error. */
11971/* We use char because int might match the return type of a gcc2
11972 builtin and then its argument prototype would still apply. */
11973char pthread_create();
11974
11975int main() {
11976pthread_create()
11977; return 0; }
11978EOF
b4085ce6 11979if { (eval echo configure:11980: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
11980 rm -rf conftest*
11981 eval "ac_cv_lib_$ac_lib_var=yes"
11982else
11983 echo "configure: failed program was:" >&5
11984 cat conftest.$ac_ext >&5
11985 rm -rf conftest*
11986 eval "ac_cv_lib_$ac_lib_var=no"
11987fi
11988rm -f conftest*
11989LIBS="$ac_save_LIBS"
11990
11991fi
11992if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11993 echo "$ac_t""yes" 1>&6
11994
11995 THREADS_OBJ="threadpsx.lo"
11996 THREADS_LINK="c_r"
11997
11998else
11999 echo "$ac_t""no" 1>&6
12000
b4085ce6
GD
12001 echo $ac_n "checking for pthread_create in -lcc_dynamic""... $ac_c" 1>&6
12002echo "configure:12003: checking for pthread_create in -lcc_dynamic" >&5
12003ac_lib_var=`echo cc_dynamic'_'pthread_create | sed 'y%./+-%__p_%'`
12004if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12005 echo $ac_n "(cached) $ac_c" 1>&6
12006else
12007 ac_save_LIBS="$LIBS"
12008LIBS="-lcc_dynamic $LIBS"
12009cat > conftest.$ac_ext <<EOF
12010#line 12011 "configure"
12011#include "confdefs.h"
12012/* Override any gcc2 internal prototype to avoid an error. */
12013/* We use char because int might match the return type of a gcc2
12014 builtin and then its argument prototype would still apply. */
12015char pthread_create();
12016
12017int main() {
12018pthread_create()
12019; return 0; }
12020EOF
12021if { (eval echo configure:12022: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12022 rm -rf conftest*
12023 eval "ac_cv_lib_$ac_lib_var=yes"
12024else
12025 echo "configure: failed program was:" >&5
12026 cat conftest.$ac_ext >&5
12027 rm -rf conftest*
12028 eval "ac_cv_lib_$ac_lib_var=no"
12029fi
12030rm -f conftest*
12031LIBS="$ac_save_LIBS"
12032
12033fi
12034if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12035 echo "$ac_t""yes" 1>&6
12036
12037 THREADS_OBJ="threadpsx.lo"
12038 THREADS_LINK="cc_dynamic"
12039
12040else
12041 echo "$ac_t""no" 1>&6
12042
12043 ac_safe=`echo "sys/prctl.h" | sed 'y%./+-%__p_%'`
10f2d63a 12044echo $ac_n "checking for sys/prctl.h""... $ac_c" 1>&6
b4085ce6 12045echo "configure:12046: checking for sys/prctl.h" >&5
10f2d63a
VZ
12046if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12047 echo $ac_n "(cached) $ac_c" 1>&6
12048else
12049 cat > conftest.$ac_ext <<EOF
b4085ce6 12050#line 12051 "configure"
10f2d63a
VZ
12051#include "confdefs.h"
12052#include <sys/prctl.h>
12053EOF
12054ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
b4085ce6 12055{ (eval echo configure:12056: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
12056ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12057if test -z "$ac_err"; then
12058 rm -rf conftest*
12059 eval "ac_cv_header_$ac_safe=yes"
12060else
12061 echo "$ac_err" >&5
12062 echo "configure: failed program was:" >&5
12063 cat conftest.$ac_ext >&5
12064 rm -rf conftest*
12065 eval "ac_cv_header_$ac_safe=no"
12066fi
12067rm -f conftest*
12068fi
12069if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12070 echo "$ac_t""yes" 1>&6
12071
b4085ce6
GD
12072 THREADS_OBJ="threadsgi.lo"
12073
10f2d63a
VZ
12074else
12075 echo "$ac_t""no" 1>&6
12076fi
12077
b4085ce6
GD
12078
12079fi
12080
10f2d63a
VZ
12081
12082fi
12083
12084
12085fi
12086
12087
12088 if test -z "$THREADS_OBJ" ; then
12089 wxUSE_THREADS=no
12090 echo "configure: warning: No thread support on this system" 1>&2
12091 fi
12092fi
12093
12094if test "$wxUSE_THREADS" = "yes" ; then
70846f0a
VZ
12095 for ac_func in thr_setconcurrency
12096do
12097echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
b4085ce6 12098echo "configure:12099: checking for $ac_func" >&5
70846f0a
VZ
12099if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12100 echo $ac_n "(cached) $ac_c" 1>&6
12101else
12102 cat > conftest.$ac_ext <<EOF
b4085ce6 12103#line 12104 "configure"
70846f0a
VZ
12104#include "confdefs.h"
12105/* System header to define __stub macros and hopefully few prototypes,
12106 which can conflict with char $ac_func(); below. */
12107#include <assert.h>
12108/* Override any gcc2 internal prototype to avoid an error. */
12109/* We use char because int might match the return type of a gcc2
12110 builtin and then its argument prototype would still apply. */
12111char $ac_func();
12112
12113int main() {
12114
12115/* The GNU C library defines this for functions which it implements
12116 to always fail with ENOSYS. Some functions are actually named
12117 something starting with __ and the normal name is an alias. */
12118#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12119choke me
12120#else
e8482f24 12121$ac_func();
70846f0a
VZ
12122#endif
12123
12124; return 0; }
12125EOF
b4085ce6 12126if { (eval echo configure:12127: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
70846f0a
VZ
12127 rm -rf conftest*
12128 eval "ac_cv_func_$ac_func=yes"
12129else
12130 echo "configure: failed program was:" >&5
12131 cat conftest.$ac_ext >&5
12132 rm -rf conftest*
12133 eval "ac_cv_func_$ac_func=no"
12134fi
12135rm -f conftest*
12136fi
12137
12138if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12139 echo "$ac_t""yes" 1>&6
12140 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12141 cat >> confdefs.h <<EOF
12142#define $ac_tr_func 1
12143EOF
12144
12145else
12146 echo "$ac_t""no" 1>&6
12147fi
12148done
12149
12150
10f2d63a
VZ
12151
12152 for ac_hdr in sched.h
12153do
12154ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12155echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
b4085ce6 12156echo "configure:12157: checking for $ac_hdr" >&5
10f2d63a
VZ
12157if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12158 echo $ac_n "(cached) $ac_c" 1>&6
12159else
12160 cat > conftest.$ac_ext <<EOF
b4085ce6 12161#line 12162 "configure"
10f2d63a
VZ
12162#include "confdefs.h"
12163#include <$ac_hdr>
12164EOF
12165ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
b4085ce6 12166{ (eval echo configure:12167: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
12167ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12168if test -z "$ac_err"; then
12169 rm -rf conftest*
12170 eval "ac_cv_header_$ac_safe=yes"
12171else
12172 echo "$ac_err" >&5
12173 echo "configure: failed program was:" >&5
12174 cat conftest.$ac_ext >&5
12175 rm -rf conftest*
12176 eval "ac_cv_header_$ac_safe=no"
12177fi
12178rm -f conftest*
12179fi
12180if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12181 echo "$ac_t""yes" 1>&6
12182 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12183 cat >> confdefs.h <<EOF
12184#define $ac_tr_hdr 1
12185EOF
12186
12187else
12188 echo "$ac_t""no" 1>&6
12189fi
12190done
12191
12192
12193 echo $ac_n "checking for sched_yield in -l$THREADS_LINK""... $ac_c" 1>&6
b4085ce6 12194echo "configure:12195: checking for sched_yield in -l$THREADS_LINK" >&5
10f2d63a
VZ
12195ac_lib_var=`echo $THREADS_LINK'_'sched_yield | sed 'y%./+-%__p_%'`
12196if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12197 echo $ac_n "(cached) $ac_c" 1>&6
12198else
12199 ac_save_LIBS="$LIBS"
12200LIBS="-l$THREADS_LINK $LIBS"
12201cat > conftest.$ac_ext <<EOF
b4085ce6 12202#line 12203 "configure"
10f2d63a
VZ
12203#include "confdefs.h"
12204/* Override any gcc2 internal prototype to avoid an error. */
12205/* We use char because int might match the return type of a gcc2
12206 builtin and then its argument prototype would still apply. */
12207char sched_yield();
12208
12209int main() {
12210sched_yield()
12211; return 0; }
12212EOF
b4085ce6 12213if { (eval echo configure:12214: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
12214 rm -rf conftest*
12215 eval "ac_cv_lib_$ac_lib_var=yes"
12216else
12217 echo "configure: failed program was:" >&5
12218 cat conftest.$ac_ext >&5
12219 rm -rf conftest*
12220 eval "ac_cv_lib_$ac_lib_var=no"
12221fi
12222rm -f conftest*
12223LIBS="$ac_save_LIBS"
12224
12225fi
12226if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12227 echo "$ac_t""yes" 1>&6
12228 cat >> confdefs.h <<\EOF
12229#define HAVE_SCHED_YIELD 1
12230EOF
12231
12232else
12233 echo "$ac_t""no" 1>&6
12234echo $ac_n "checking for sched_yield in -l"posix4"""... $ac_c" 1>&6
b4085ce6 12235echo "configure:12236: checking for sched_yield in -l"posix4"" >&5
10f2d63a
VZ
12236ac_lib_var=`echo "posix4"'_'sched_yield | sed 'y%./+-%__p_%'`
12237if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12238 echo $ac_n "(cached) $ac_c" 1>&6
12239else
12240 ac_save_LIBS="$LIBS"
12241LIBS="-l"posix4" $LIBS"
12242cat > conftest.$ac_ext <<EOF
b4085ce6 12243#line 12244 "configure"
10f2d63a
VZ
12244#include "confdefs.h"
12245/* Override any gcc2 internal prototype to avoid an error. */
12246/* We use char because int might match the return type of a gcc2
12247 builtin and then its argument prototype would still apply. */
12248char sched_yield();
12249
12250int main() {
12251sched_yield()
12252; return 0; }
12253EOF
b4085ce6 12254if { (eval echo configure:12255: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
12255 rm -rf conftest*
12256 eval "ac_cv_lib_$ac_lib_var=yes"
12257else
12258 echo "configure: failed program was:" >&5
12259 cat conftest.$ac_ext >&5
12260 rm -rf conftest*
12261 eval "ac_cv_lib_$ac_lib_var=no"
12262fi
12263rm -f conftest*
12264LIBS="$ac_save_LIBS"
12265
12266fi
12267if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12268 echo "$ac_t""yes" 1>&6
12269 cat >> confdefs.h <<\EOF
12270#define HAVE_SCHED_YIELD 1
12271EOF
12272 POSIX4_LINK="-lposix4"
12273else
12274 echo "$ac_t""no" 1>&6
12275echo "configure: warning: wxThread::Yield will not work properly" 1>&2
12276
12277fi
12278
12279
12280fi
12281
12282
f6bcfd97
BP
12283 HAVE_PRIOR_FUNCS=0
12284 echo $ac_n "checking for pthread_attr_getschedpolicy in -l$THREADS_LINK""... $ac_c" 1>&6
b4085ce6 12285echo "configure:12286: checking for pthread_attr_getschedpolicy in -l$THREADS_LINK" >&5
10f2d63a
VZ
12286ac_lib_var=`echo $THREADS_LINK'_'pthread_attr_getschedpolicy | sed 'y%./+-%__p_%'`
12287if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12288 echo $ac_n "(cached) $ac_c" 1>&6
12289else
12290 ac_save_LIBS="$LIBS"
12291LIBS="-l$THREADS_LINK $LIBS"
12292cat > conftest.$ac_ext <<EOF
b4085ce6 12293#line 12294 "configure"
10f2d63a
VZ
12294#include "confdefs.h"
12295/* Override any gcc2 internal prototype to avoid an error. */
12296/* We use char because int might match the return type of a gcc2
12297 builtin and then its argument prototype would still apply. */
12298char pthread_attr_getschedpolicy();
12299
12300int main() {
12301pthread_attr_getschedpolicy()
12302; return 0; }
12303EOF
b4085ce6 12304if { (eval echo configure:12305: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
12305 rm -rf conftest*
12306 eval "ac_cv_lib_$ac_lib_var=yes"
12307else
12308 echo "configure: failed program was:" >&5
12309 cat conftest.$ac_ext >&5
12310 rm -rf conftest*
12311 eval "ac_cv_lib_$ac_lib_var=no"
12312fi
12313rm -f conftest*
12314LIBS="$ac_save_LIBS"
12315
12316fi
12317if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12318 echo "$ac_t""yes" 1>&6
f6bcfd97 12319 echo $ac_n "checking for pthread_attr_setschedparam in -l$THREADS_LINK""... $ac_c" 1>&6
b4085ce6 12320echo "configure:12321: checking for pthread_attr_setschedparam in -l$THREADS_LINK" >&5
f6bcfd97
BP
12321ac_lib_var=`echo $THREADS_LINK'_'pthread_attr_setschedparam | sed 'y%./+-%__p_%'`
12322if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12323 echo $ac_n "(cached) $ac_c" 1>&6
12324else
12325 ac_save_LIBS="$LIBS"
12326LIBS="-l$THREADS_LINK $LIBS"
12327cat > conftest.$ac_ext <<EOF
b4085ce6 12328#line 12329 "configure"
f6bcfd97
BP
12329#include "confdefs.h"
12330/* Override any gcc2 internal prototype to avoid an error. */
12331/* We use char because int might match the return type of a gcc2
12332 builtin and then its argument prototype would still apply. */
12333char pthread_attr_setschedparam();
12334
12335int main() {
12336pthread_attr_setschedparam()
12337; return 0; }
10f2d63a 12338EOF
b4085ce6 12339if { (eval echo configure:12340: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
f6bcfd97
BP
12340 rm -rf conftest*
12341 eval "ac_cv_lib_$ac_lib_var=yes"
12342else
12343 echo "configure: failed program was:" >&5
12344 cat conftest.$ac_ext >&5
12345 rm -rf conftest*
12346 eval "ac_cv_lib_$ac_lib_var=no"
12347fi
12348rm -f conftest*
12349LIBS="$ac_save_LIBS"
10f2d63a 12350
f6bcfd97
BP
12351fi
12352if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12353 echo "$ac_t""yes" 1>&6
12354 echo $ac_n "checking for sched_get_priority_max in -l$THREADS_LINK""... $ac_c" 1>&6
b4085ce6 12355echo "configure:12356: checking for sched_get_priority_max in -l$THREADS_LINK" >&5
f6bcfd97
BP
12356ac_lib_var=`echo $THREADS_LINK'_'sched_get_priority_max | sed 'y%./+-%__p_%'`
12357if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12358 echo $ac_n "(cached) $ac_c" 1>&6
12359else
12360 ac_save_LIBS="$LIBS"
12361LIBS="-l$THREADS_LINK $LIBS"
12362cat > conftest.$ac_ext <<EOF
b4085ce6 12363#line 12364 "configure"
f6bcfd97
BP
12364#include "confdefs.h"
12365/* Override any gcc2 internal prototype to avoid an error. */
12366/* We use char because int might match the return type of a gcc2
12367 builtin and then its argument prototype would still apply. */
12368char sched_get_priority_max();
12369
12370int main() {
12371sched_get_priority_max()
12372; return 0; }
12373EOF
b4085ce6 12374if { (eval echo configure:12375: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
f6bcfd97
BP
12375 rm -rf conftest*
12376 eval "ac_cv_lib_$ac_lib_var=yes"
12377else
12378 echo "configure: failed program was:" >&5
12379 cat conftest.$ac_ext >&5
12380 rm -rf conftest*
12381 eval "ac_cv_lib_$ac_lib_var=no"
12382fi
12383rm -f conftest*
12384LIBS="$ac_save_LIBS"
12385
12386fi
12387if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12388 echo "$ac_t""yes" 1>&6
12389 HAVE_PRIOR_FUNCS=1
10f2d63a
VZ
12390else
12391 echo "$ac_t""no" 1>&6
f6bcfd97 12392echo $ac_n "checking for sched_get_priority_max in -l"posix4"""... $ac_c" 1>&6
b4085ce6 12393echo "configure:12394: checking for sched_get_priority_max in -l"posix4"" >&5
f6bcfd97 12394ac_lib_var=`echo "posix4"'_'sched_get_priority_max | sed 'y%./+-%__p_%'`
10f2d63a
VZ
12395if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12396 echo $ac_n "(cached) $ac_c" 1>&6
12397else
12398 ac_save_LIBS="$LIBS"
12399LIBS="-l"posix4" $LIBS"
12400cat > conftest.$ac_ext <<EOF
b4085ce6 12401#line 12402 "configure"
10f2d63a
VZ
12402#include "confdefs.h"
12403/* Override any gcc2 internal prototype to avoid an error. */
12404/* We use char because int might match the return type of a gcc2
12405 builtin and then its argument prototype would still apply. */
f6bcfd97 12406char sched_get_priority_max();
10f2d63a
VZ
12407
12408int main() {
f6bcfd97 12409sched_get_priority_max()
10f2d63a
VZ
12410; return 0; }
12411EOF
b4085ce6 12412if { (eval echo configure:12413: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
12413 rm -rf conftest*
12414 eval "ac_cv_lib_$ac_lib_var=yes"
12415else
12416 echo "configure: failed program was:" >&5
12417 cat conftest.$ac_ext >&5
12418 rm -rf conftest*
12419 eval "ac_cv_lib_$ac_lib_var=no"
12420fi
12421rm -f conftest*
12422LIBS="$ac_save_LIBS"
12423
12424fi
12425if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12426 echo "$ac_t""yes" 1>&6
f6bcfd97
BP
12427
12428 HAVE_PRIOR_FUNCS=1
12429 POSIX4_LINK="-lposix4"
12430
12431else
12432 echo "$ac_t""no" 1>&6
12433fi
12434
12435
12436fi
12437
12438
10f2d63a
VZ
12439else
12440 echo "$ac_t""no" 1>&6
10f2d63a
VZ
12441fi
12442
12443
f6bcfd97
BP
12444else
12445 echo "$ac_t""no" 1>&6
10f2d63a
VZ
12446fi
12447
12448
f6bcfd97
BP
12449 if test "$HAVE_PRIOR_FUNCS" = 1; then
12450 cat >> confdefs.h <<\EOF
12451#define HAVE_THREAD_PRIORITY_FUNCTIONS 1
12452EOF
12453
12454 else
12455 echo "configure: warning: Setting thread priority will not work" 1>&2
12456 fi
12457
10f2d63a 12458 echo $ac_n "checking for pthread_cancel in -l$THREADS_LINK""... $ac_c" 1>&6
b4085ce6 12459echo "configure:12460: checking for pthread_cancel in -l$THREADS_LINK" >&5
10f2d63a
VZ
12460ac_lib_var=`echo $THREADS_LINK'_'pthread_cancel | sed 'y%./+-%__p_%'`
12461if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12462 echo $ac_n "(cached) $ac_c" 1>&6
12463else
12464 ac_save_LIBS="$LIBS"
12465LIBS="-l$THREADS_LINK $LIBS"
12466cat > conftest.$ac_ext <<EOF
b4085ce6 12467#line 12468 "configure"
10f2d63a
VZ
12468#include "confdefs.h"
12469/* Override any gcc2 internal prototype to avoid an error. */
12470/* We use char because int might match the return type of a gcc2
12471 builtin and then its argument prototype would still apply. */
12472char pthread_cancel();
12473
12474int main() {
12475pthread_cancel()
12476; return 0; }
12477EOF
b4085ce6 12478if { (eval echo configure:12479: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
12479 rm -rf conftest*
12480 eval "ac_cv_lib_$ac_lib_var=yes"
12481else
12482 echo "configure: failed program was:" >&5
12483 cat conftest.$ac_ext >&5
12484 rm -rf conftest*
12485 eval "ac_cv_lib_$ac_lib_var=no"
12486fi
12487rm -f conftest*
12488LIBS="$ac_save_LIBS"
12489
12490fi
12491if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12492 echo "$ac_t""yes" 1>&6
12493 cat >> confdefs.h <<\EOF
12494#define HAVE_PTHREAD_CANCEL 1
12495EOF
12496
12497else
12498 echo "$ac_t""no" 1>&6
12499echo "configure: warning: wxThread::Kill() will not work properly" 1>&2
12500fi
12501
12502
12503 echo $ac_n "checking for pthread_cleanup_push/pop""... $ac_c" 1>&6
b4085ce6 12504echo "configure:12505: checking for pthread_cleanup_push/pop" >&5
10f2d63a
VZ
12505if eval "test \"`echo '$''{'wx_cv_func_pthread_cleanup_push'+set}'`\" = set"; then
12506 echo $ac_n "(cached) $ac_c" 1>&6
12507else
12508
12509 cat > conftest.$ac_ext <<EOF
b4085ce6 12510#line 12511 "configure"
10f2d63a
VZ
12511#include "confdefs.h"
12512#include <pthread.h>
12513int main() {
12514
12515 pthread_cleanup_push(NULL, NULL);
12516 pthread_cleanup_pop(0);
12517
12518; return 0; }
12519EOF
b4085ce6 12520if { (eval echo configure:12521: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10f2d63a
VZ
12521 rm -rf conftest*
12522
12523 wx_cv_func_pthread_cleanup_push=yes
12524 cat >> confdefs.h <<\EOF
12525#define HAVE_THREAD_CLEANUP_FUNCTIONS 1
12526EOF
12527
12528
12529else
12530 echo "configure: failed program was:" >&5
12531 cat conftest.$ac_ext >&5
12532 rm -rf conftest*
12533
12534 wx_cv_func_pthread_cleanup_push=no
12535
12536fi
12537rm -f conftest*
12538
12539fi
12540
12541echo "$ac_t""$wx_cv_func_pthread_cleanup_push" 1>&6
12542
12543 THREADS_LINK="-l$THREADS_LINK"
186837b0
VZ
12544
12545 if test "$USE_SOLARIS" = "yes" -a "$GCC" != "yes"; then
12546 CFLAGS="${CFLAGS} -mt"
12547 CXXFLAGS="${CXXFLAGS} -mt"
12548 LDFLAGS="${LDFLAGS} -mt"
12549 fi
10f2d63a
VZ
12550fi
12551
12552fi
12553
12554if test "$wxUSE_THREADS" = "yes"; then
12555 cat >> confdefs.h <<\EOF
12556#define wxUSE_THREADS 1
12557EOF
12558
12559
12560 CFLAGS="${CFLAGS} -D_REENTRANT"
12561 CXXFLAGS="${CXXFLAGS} -D_REENTRANT"
12562
12563 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
12564else
12565 if test "$ac_cv_func_strtok_r" = "yes"; then
ab9b9eab 12566 echo $ac_n "checking if -D_REENTRANT is needed""... $ac_c" 1>&6
b4085ce6 12567echo "configure:12568: checking if -D_REENTRANT is needed" >&5
ab9b9eab
VZ
12568 if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
12569 CFLAGS="${CFLAGS} -D_REENTRANT"
12570 CXXFLAGS="${CXXFLAGS} -D_REENTRANT"
12571 echo "$ac_t""yes" 1>&6
12572 else
12573 echo "$ac_t""no" 1>&6
10f2d63a
VZ
12574 fi
12575 fi
12576fi
12577
6f72b082 12578if test "$WXGTK20" = 1 ; then
13111b2a 12579 cat >> confdefs.h <<EOF
6f72b082 12580#define __WXGTK20__ $WXGTK20
13111b2a
VZ
12581EOF
12582
12583 WXGTK12=1
12584fi
12585
10f2d63a
VZ
12586if test "$WXGTK12" = 1 ; then
12587 cat >> confdefs.h <<EOF
12588#define __WXGTK12__ $WXGTK12
12589EOF
12590
12591fi
12592
f6bcfd97
BP
12593if test "$WXGTK127" = 1 ; then
12594 cat >> confdefs.h <<EOF
12595#define __WXGTK127__ $WXGTK127
12596EOF
12597
12598fi
12599
10f2d63a
VZ
12600if test "$WXWINE" = 1 ; then
12601 TOOLKIT_DEF="${TOOLKIT_DEF} -D__WXWINE__"
12602fi
12603
b4085ce6
GD
12604if test "$wxUSE_MAC" = 1 ; then
12605 TOOLKIT_DEF="${TOOLKIT_DEF} -D__UNIX__ -DTARGET_CARBON"
12606 TOOLKIT_INCLUDE="${TOOLKIT_INCLUDE}"
12607fi
12608
10f2d63a
VZ
12609if test "$wxUSE_CYGWIN" = 1 ; then
12610 TOOLKIT_DEF="${TOOLKIT_DEF} -D__WIN95__"
12611fi
12612
12613WXDEBUG=
12614
12615if test "$wxUSE_DEBUG_INFO" = "yes" ; then
12616 WXDEBUG="-g"
12617 wxUSE_OPTIMISE=no
12618fi
12619
12620if test "$wxUSE_DEBUG_GDB" = "yes" ; then
12621 wxUSE_DEBUG_INFO=yes
12622 WXDEBUG="-ggdb"
12623fi
12624
12625if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
12626 cat >> confdefs.h <<\EOF
12627#define WXDEBUG 1
12628EOF
12629
12630 WXDEBUG_DEFINE="-D__WXDEBUG__"
12631else
12632 if test "$wxUSE_GTK" = 1 ; then
12633 WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS"
12634 fi
12635fi
12636
12637if test "$wxUSE_MEM_TRACING" = "yes" ; then
12638 cat >> confdefs.h <<\EOF
12639#define wxUSE_MEMORY_TRACING 1
12640EOF
12641
12642 cat >> confdefs.h <<\EOF
12643#define wxUSE_GLOBAL_MEMORY_OPERATORS 1
47c13eb7
VS
12644EOF
12645
12646 cat >> confdefs.h <<\EOF
12647#define wxUSE_DEBUG_NEW_ALWAYS 1
10f2d63a
VZ
12648EOF
12649
12650 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
12651fi
12652
12653if test "$wxUSE_DMALLOC" = "yes" ; then
12654 DMALLOC_LINK="-ldmalloc"
12655fi
12656
12657PROFILE=
12658if test "$wxUSE_PROFILE" = "yes" ; then
12659 PROFILE="-pg"
12660fi
12661
12662DEP_INFO_FLAGS=
caa2c79b 12663CODE_GEN_FLAGS=
10f2d63a
VZ
12664if test "$GCC" = yes ; then
12665 if test "$wxUSE_NO_RTTI" = "yes" ; then
caa2c79b 12666 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fno-rtti"
10f2d63a
VZ
12667 fi
12668 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
caa2c79b 12669 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fno-exceptions"
10f2d63a
VZ
12670 fi
12671 if test "$wxUSE_PERMISSIVE" = "yes" ; then
caa2c79b 12672 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive"
10f2d63a
VZ
12673 fi
12674 if test "$wxUSE_NO_DEPS" = "no" ; then
12675 DEP_INFO_FLAGS="-MMD"
12676 fi
12677fi
12678
12679
12680CXXFLAGS=`echo "${CXXFLAGS}" | sed "s/\-O.//g" `
12681CFLAGS=`echo "${CFLAGS}" | sed "s/\-O.//g" `
12682if test "$wxUSE_OPTIMISE" = "no" ; then
12683 OPTIMISE=
12684else
12685 if test "$GCC" = yes ; then
12686 OPTIMISE="-O2"
12687 case "${host}" in
12688 i586-*-*|i686-*-* )
12689 OPTIMISE="${OPTIMISE} "
12690 ;;
12691 esac
12692 else
12693 OPTIMISE="-O"
12694 fi
12695fi
12696
12697
12698ZLIB_INCLUDE=
422107f9 12699if test "$wxUSE_ZLIB" = "yes" -o "$wxUSE_ZLIB" = "sys" ; then
10f2d63a
VZ
12700 cat >> confdefs.h <<\EOF
12701#define wxUSE_ZLIB 1
12702EOF
12703
422107f9
VZ
12704 if test "$wxUSE_ZLIB" = "yes" ; then
12705 ZLIB_INCLUDE="-I\${top_srcdir}/src/zlib"
12706 else
12707 ZLIB_LINK=
12708 ac_safe=`echo "zlib.h" | sed 'y%./+-%__p_%'`
12709echo $ac_n "checking for zlib.h""... $ac_c" 1>&6
b4085ce6 12710echo "configure:12711: checking for zlib.h" >&5
422107f9
VZ
12711if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12712 echo $ac_n "(cached) $ac_c" 1>&6
12713else
12714 cat > conftest.$ac_ext <<EOF
b4085ce6 12715#line 12716 "configure"
422107f9
VZ
12716#include "confdefs.h"
12717#include <zlib.h>
12718EOF
12719ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
b4085ce6 12720{ (eval echo configure:12721: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
422107f9
VZ
12721ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12722if test -z "$ac_err"; then
12723 rm -rf conftest*
12724 eval "ac_cv_header_$ac_safe=yes"
12725else
12726 echo "$ac_err" >&5
12727 echo "configure: failed program was:" >&5
12728 cat conftest.$ac_ext >&5
12729 rm -rf conftest*
12730 eval "ac_cv_header_$ac_safe=no"
12731fi
12732rm -f conftest*
12733fi
12734if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12735 echo "$ac_t""yes" 1>&6
12736 echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6
b4085ce6 12737echo "configure:12738: checking for deflate in -lz" >&5
422107f9
VZ
12738ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'`
12739if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12740 echo $ac_n "(cached) $ac_c" 1>&6
12741else
12742 ac_save_LIBS="$LIBS"
12743LIBS="-lz $LIBS"
12744cat > conftest.$ac_ext <<EOF
b4085ce6 12745#line 12746 "configure"
422107f9
VZ
12746#include "confdefs.h"
12747/* Override any gcc2 internal prototype to avoid an error. */
12748/* We use char because int might match the return type of a gcc2
12749 builtin and then its argument prototype would still apply. */
12750char deflate();
12751
12752int main() {
12753deflate()
12754; return 0; }
12755EOF
b4085ce6 12756if { (eval echo configure:12757: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
422107f9
VZ
12757 rm -rf conftest*
12758 eval "ac_cv_lib_$ac_lib_var=yes"
12759else
12760 echo "configure: failed program was:" >&5
12761 cat conftest.$ac_ext >&5
12762 rm -rf conftest*
12763 eval "ac_cv_lib_$ac_lib_var=no"
12764fi
12765rm -f conftest*
12766LIBS="$ac_save_LIBS"
12767
12768fi
12769if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12770 echo "$ac_t""yes" 1>&6
12771 ZLIB_LINK="-lz"
12772else
12773 echo "$ac_t""no" 1>&6
12774fi
12775
12776else
12777 echo "$ac_t""no" 1>&6
12778fi
12779
12780 if test "x$ZLIB_LINK" = "x" ; then
12781 { echo "configure: error: system zlib compression library not found! Use --with-zlib=yes to use built-in zlib" 1>&2; exit 1; }
12782 fi
12783 fi
10f2d63a
VZ
12784fi
12785
12786PNG_INCLUDE=
422107f9 12787if test "$wxUSE_LIBPNG" = "yes" -o "$wxUSE_LIBPNG" = "sys" ; then
10f2d63a
VZ
12788 cat >> confdefs.h <<\EOF
12789#define wxUSE_LIBPNG 1
12790EOF
12791
41fd4136 12792 if test "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
422107f9
VZ
12793 echo "configure: warning: --with-libpng=sys doesn't work without --with-zlib=sys, will compile the built-in libpng instead" 1>&2
12794 wxUSE_LIBPNG=yes
12795 fi
12796
12797 if test "$wxUSE_LIBPNG" = "yes" ; then
12798 PNG_INCLUDE="-I\${top_srcdir}/src/png"
12799 else
12800 PNG_LINK=
12801 ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'`
12802echo $ac_n "checking for png.h""... $ac_c" 1>&6
b4085ce6 12803echo "configure:12804: checking for png.h" >&5
422107f9
VZ
12804if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12805 echo $ac_n "(cached) $ac_c" 1>&6
12806else
12807 cat > conftest.$ac_ext <<EOF
b4085ce6 12808#line 12809 "configure"
422107f9
VZ
12809#include "confdefs.h"
12810#include <png.h>
12811EOF
12812ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
b4085ce6 12813{ (eval echo configure:12814: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
422107f9
VZ
12814ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12815if test -z "$ac_err"; then
12816 rm -rf conftest*
12817 eval "ac_cv_header_$ac_safe=yes"
12818else
12819 echo "$ac_err" >&5
12820 echo "configure: failed program was:" >&5
12821 cat conftest.$ac_ext >&5
12822 rm -rf conftest*
12823 eval "ac_cv_header_$ac_safe=no"
12824fi
12825rm -f conftest*
12826fi
12827if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12828 echo "$ac_t""yes" 1>&6
12829 echo $ac_n "checking for png_check_sig in -lpng""... $ac_c" 1>&6
b4085ce6 12830echo "configure:12831: checking for png_check_sig in -lpng" >&5
422107f9
VZ
12831ac_lib_var=`echo png'_'png_check_sig | sed 'y%./+-%__p_%'`
12832if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12833 echo $ac_n "(cached) $ac_c" 1>&6
12834else
12835 ac_save_LIBS="$LIBS"
12836LIBS="-lpng -lz -lm $LIBS"
12837cat > conftest.$ac_ext <<EOF
b4085ce6 12838#line 12839 "configure"
422107f9
VZ
12839#include "confdefs.h"
12840/* Override any gcc2 internal prototype to avoid an error. */
12841/* We use char because int might match the return type of a gcc2
12842 builtin and then its argument prototype would still apply. */
12843char png_check_sig();
12844
12845int main() {
12846png_check_sig()
12847; return 0; }
12848EOF
b4085ce6 12849if { (eval echo configure:12850: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
422107f9
VZ
12850 rm -rf conftest*
12851 eval "ac_cv_lib_$ac_lib_var=yes"
12852else
12853 echo "configure: failed program was:" >&5
12854 cat conftest.$ac_ext >&5
12855 rm -rf conftest*
12856 eval "ac_cv_lib_$ac_lib_var=no"
12857fi
12858rm -f conftest*
12859LIBS="$ac_save_LIBS"
12860
12861fi
12862if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12863 echo "$ac_t""yes" 1>&6
12864 PNG_LINK="-lpng"
12865else
12866 echo "$ac_t""no" 1>&6
12867fi
12868
12869
12870else
12871 echo "$ac_t""no" 1>&6
12872fi
12873
12874 if test "x$PNG_LINK" = "x" ; then
0dcf9893 12875 { echo "configure: error: system png library not found! Use --with-libpng=yes to use the built-in libpng" 1>&2; exit 1; }
422107f9
VZ
12876 fi
12877 fi
12878
10f2d63a
VZ
12879 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
12880fi
12881
12882JPEG_INCLUDE=
422107f9 12883if test "$wxUSE_LIBJPEG" = "yes" -o "$wxUSE_LIBJPEG" = "sys" ; then
10f2d63a
VZ
12884 cat >> confdefs.h <<\EOF
12885#define wxUSE_LIBJPEG 1
12886EOF
12887
422107f9
VZ
12888 if test "$wxUSE_LIBJPEG" = "yes" ; then
12889 JPEG_INCLUDE="-I\${top_srcdir}/src/jpeg"
12890 else
12891 JPEG_LINK=
12892 ac_safe=`echo "jpeglib.h" | sed 'y%./+-%__p_%'`
12893echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6
b4085ce6 12894echo "configure:12895: checking for jpeglib.h" >&5
422107f9
VZ
12895if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12896 echo $ac_n "(cached) $ac_c" 1>&6
12897else
12898 cat > conftest.$ac_ext <<EOF
b4085ce6 12899#line 12900 "configure"
422107f9
VZ
12900#include "confdefs.h"
12901#include <jpeglib.h>
12902EOF
12903ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
b4085ce6 12904{ (eval echo configure:12905: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
422107f9
VZ
12905ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12906if test -z "$ac_err"; then
12907 rm -rf conftest*
12908 eval "ac_cv_header_$ac_safe=yes"
12909else
12910 echo "$ac_err" >&5
12911 echo "configure: failed program was:" >&5
12912 cat conftest.$ac_ext >&5
12913 rm -rf conftest*
12914 eval "ac_cv_header_$ac_safe=no"
12915fi
12916rm -f conftest*
12917fi
12918if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12919 echo "$ac_t""yes" 1>&6
12920 echo $ac_n "checking for jpeg_read_header in -ljpeg""... $ac_c" 1>&6
b4085ce6 12921echo "configure:12922: checking for jpeg_read_header in -ljpeg" >&5
422107f9
VZ
12922ac_lib_var=`echo jpeg'_'jpeg_read_header | sed 'y%./+-%__p_%'`
12923if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12924 echo $ac_n "(cached) $ac_c" 1>&6
12925else
12926 ac_save_LIBS="$LIBS"
12927LIBS="-ljpeg $LIBS"
12928cat > conftest.$ac_ext <<EOF
b4085ce6 12929#line 12930 "configure"
422107f9
VZ
12930#include "confdefs.h"
12931/* Override any gcc2 internal prototype to avoid an error. */
12932/* We use char because int might match the return type of a gcc2
12933 builtin and then its argument prototype would still apply. */
12934char jpeg_read_header();
12935
12936int main() {
12937jpeg_read_header()
12938; return 0; }
12939EOF
b4085ce6 12940if { (eval echo configure:12941: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
422107f9
VZ
12941 rm -rf conftest*
12942 eval "ac_cv_lib_$ac_lib_var=yes"
12943else
12944 echo "configure: failed program was:" >&5
12945 cat conftest.$ac_ext >&5
12946 rm -rf conftest*
12947 eval "ac_cv_lib_$ac_lib_var=no"
12948fi
12949rm -f conftest*
12950LIBS="$ac_save_LIBS"
12951
12952fi
12953if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12954 echo "$ac_t""yes" 1>&6
12955 JPEG_LINK="-ljpeg"
12956else
12957 echo "$ac_t""no" 1>&6
12958fi
12959
12960else
12961 echo "$ac_t""no" 1>&6
12962fi
12963
12964 if test "x$JPEG_LINK" = "x" ; then
0dcf9893 12965 { echo "configure: error: system jpeg library not found! Use --with-libjpeg=yes to use the built-in one" 1>&2; exit 1; }
422107f9
VZ
12966 fi
12967 fi
10f2d63a
VZ
12968fi
12969
c7a2bf27 12970TIFF_INCLUDE=
0dcf9893 12971if test "$wxUSE_LIBTIFF" = "yes" -o "$wxUSE_LIBTIFF" = "sys" ; then
c7a2bf27
RR
12972 cat >> confdefs.h <<\EOF
12973#define wxUSE_LIBTIFF 1
12974EOF
12975
0dcf9893
VZ
12976 if test "$wxUSE_LIBTIFF" = "yes" ; then
12977 TIFF_INCLUDE="-I\${top_srcdir}/src/tiff"
12978 else
12979 TIFF_LINK=
12980 ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'`
12981echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6
b4085ce6 12982echo "configure:12983: checking for tiffio.h" >&5
0dcf9893
VZ
12983if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12984 echo $ac_n "(cached) $ac_c" 1>&6
12985else
12986 cat > conftest.$ac_ext <<EOF
b4085ce6 12987#line 12988 "configure"
0dcf9893
VZ
12988#include "confdefs.h"
12989#include <tiffio.h>
12990EOF
12991ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
b4085ce6 12992{ (eval echo configure:12993: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
0dcf9893
VZ
12993ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12994if test -z "$ac_err"; then
12995 rm -rf conftest*
12996 eval "ac_cv_header_$ac_safe=yes"
12997else
12998 echo "$ac_err" >&5
12999 echo "configure: failed program was:" >&5
13000 cat conftest.$ac_ext >&5
13001 rm -rf conftest*
13002 eval "ac_cv_header_$ac_safe=no"
13003fi
13004rm -f conftest*
13005fi
13006if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13007 echo "$ac_t""yes" 1>&6
13008 echo $ac_n "checking for TIFFError in -ltiff""... $ac_c" 1>&6
b4085ce6 13009echo "configure:13010: checking for TIFFError in -ltiff" >&5
0dcf9893
VZ
13010ac_lib_var=`echo tiff'_'TIFFError | sed 'y%./+-%__p_%'`
13011if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13012 echo $ac_n "(cached) $ac_c" 1>&6
13013else
13014 ac_save_LIBS="$LIBS"
13015LIBS="-ltiff -lm $LIBS"
13016cat > conftest.$ac_ext <<EOF
b4085ce6 13017#line 13018 "configure"
0dcf9893
VZ
13018#include "confdefs.h"
13019/* Override any gcc2 internal prototype to avoid an error. */
13020/* We use char because int might match the return type of a gcc2
13021 builtin and then its argument prototype would still apply. */
13022char TIFFError();
13023
13024int main() {
13025TIFFError()
13026; return 0; }
13027EOF
b4085ce6 13028if { (eval echo configure:13029: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
0dcf9893
VZ
13029 rm -rf conftest*
13030 eval "ac_cv_lib_$ac_lib_var=yes"
13031else
13032 echo "configure: failed program was:" >&5
13033 cat conftest.$ac_ext >&5
13034 rm -rf conftest*
13035 eval "ac_cv_lib_$ac_lib_var=no"
13036fi
13037rm -f conftest*
13038LIBS="$ac_save_LIBS"
13039
13040fi
13041if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13042 echo "$ac_t""yes" 1>&6
13043 TIFF_LINK="-ltiff"
13044else
13045 echo "$ac_t""no" 1>&6
13046fi
13047
13048else
13049 echo "$ac_t""no" 1>&6
13050fi
13051
13052 if test "x$TIFF_LINK" = "x" ; then
13053 { echo "configure: error: system tiff library not found! Use --with-libtiff=yes to use the built-in one" 1>&2; exit 1; }
13054 fi
13055 fi
c7a2bf27
RR
13056fi
13057
3fed1840
RR
13058FREETYPE_INCLUDE=
13059if test "$wxUSE_FREETYPE" = "yes" -o "$wxUSE_FREETYPE" = "sys" ; then
13060 cat >> confdefs.h <<\EOF
13061#define wxUSE_FREETYPE 1
13062EOF
13063
13064 if test "$wxUSE_FREETYPE" = "yes" ; then
13065 FREETYPE_INCLUDE="-I\${top_srcdir}/src/freetype"
13066 else
13067 FREETYPE_LINK=
13068 ac_safe=`echo "freetype.h" | sed 'y%./+-%__p_%'`
13069echo $ac_n "checking for freetype.h""... $ac_c" 1>&6
b4085ce6 13070echo "configure:13071: checking for freetype.h" >&5
3fed1840
RR
13071if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
13072 echo $ac_n "(cached) $ac_c" 1>&6
13073else
13074 cat > conftest.$ac_ext <<EOF
b4085ce6 13075#line 13076 "configure"
3fed1840
RR
13076#include "confdefs.h"
13077#include <freetype.h>
13078EOF
13079ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
b4085ce6 13080{ (eval echo configure:13081: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3fed1840
RR
13081ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13082if test -z "$ac_err"; then
13083 rm -rf conftest*
13084 eval "ac_cv_header_$ac_safe=yes"
13085else
13086 echo "$ac_err" >&5
13087 echo "configure: failed program was:" >&5
13088 cat conftest.$ac_ext >&5
13089 rm -rf conftest*
13090 eval "ac_cv_header_$ac_safe=no"
13091fi
13092rm -f conftest*
13093fi
13094if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13095 echo "$ac_t""yes" 1>&6
13096 echo $ac_n "checking for FT_Render_Glyph in -lfreetype""... $ac_c" 1>&6
b4085ce6 13097echo "configure:13098: checking for FT_Render_Glyph in -lfreetype" >&5
3fed1840
RR
13098ac_lib_var=`echo freetype'_'FT_Render_Glyph | sed 'y%./+-%__p_%'`
13099if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13100 echo $ac_n "(cached) $ac_c" 1>&6
13101else
13102 ac_save_LIBS="$LIBS"
13103LIBS="-lfreetype -lm $LIBS"
13104cat > conftest.$ac_ext <<EOF
b4085ce6 13105#line 13106 "configure"
3fed1840
RR
13106#include "confdefs.h"
13107/* Override any gcc2 internal prototype to avoid an error. */
13108/* We use char because int might match the return type of a gcc2
13109 builtin and then its argument prototype would still apply. */
13110char FT_Render_Glyph();
13111
13112int main() {
13113FT_Render_Glyph()
13114; return 0; }
13115EOF
b4085ce6 13116if { (eval echo configure:13117: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3fed1840
RR
13117 rm -rf conftest*
13118 eval "ac_cv_lib_$ac_lib_var=yes"
13119else
13120 echo "configure: failed program was:" >&5
13121 cat conftest.$ac_ext >&5
13122 rm -rf conftest*
13123 eval "ac_cv_lib_$ac_lib_var=no"
13124fi
13125rm -f conftest*
13126LIBS="$ac_save_LIBS"
13127
13128fi
13129if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13130 echo "$ac_t""yes" 1>&6
13131 FREETYPE_LINK="-lfreetype"
13132else
13133 echo "$ac_t""no" 1>&6
13134fi
13135
13136
13137else
13138 echo "$ac_t""no" 1>&6
13139fi
13140
13141 if test "x$FREETYPE_LINK" = "x" ; then
13142 { echo "configure: error: system freetype library not found! Use --with-freetype=yes to use the built-in freetype" 1>&2; exit 1; }
13143 fi
13144 fi
13145fi
13146
10f2d63a
VZ
13147if test "$wxUSE_OPENGL" = "yes"; then
13148 ac_safe=`echo "GL/gl.h" | sed 'y%./+-%__p_%'`
13149echo $ac_n "checking for GL/gl.h""... $ac_c" 1>&6
b4085ce6 13150echo "configure:13151: checking for GL/gl.h" >&5
10f2d63a
VZ
13151if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
13152 echo $ac_n "(cached) $ac_c" 1>&6
13153else
13154 cat > conftest.$ac_ext <<EOF
b4085ce6 13155#line 13156 "configure"
10f2d63a
VZ
13156#include "confdefs.h"
13157#include <GL/gl.h>
13158EOF
13159ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
b4085ce6 13160{ (eval echo configure:13161: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
13161ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13162if test -z "$ac_err"; then
13163 rm -rf conftest*
13164 eval "ac_cv_header_$ac_safe=yes"
13165else
13166 echo "$ac_err" >&5
13167 echo "configure: failed program was:" >&5
13168 cat conftest.$ac_ext >&5
13169 rm -rf conftest*
13170 eval "ac_cv_header_$ac_safe=no"
13171fi
13172rm -f conftest*
13173fi
13174if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13175 echo "$ac_t""yes" 1>&6
13176
bdad4e7e
RR
13177 cat >> confdefs.h <<\EOF
13178#define wxUSE_OPENGL 1
13179EOF
13180
13181 cat >> confdefs.h <<\EOF
13182#define wxUSE_GLCANVAS 1
13183EOF
13184
13185 echo $ac_n "checking for glFlush in -lGL""... $ac_c" 1>&6
b4085ce6 13186echo "configure:13187: checking for glFlush in -lGL" >&5
bdad4e7e 13187ac_lib_var=`echo GL'_'glFlush | sed 'y%./+-%__p_%'`
10f2d63a
VZ
13188if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13189 echo $ac_n "(cached) $ac_c" 1>&6
13190else
13191 ac_save_LIBS="$LIBS"
bdad4e7e 13192LIBS="-lGL $LIBS"
10f2d63a 13193cat > conftest.$ac_ext <<EOF
b4085ce6 13194#line 13195 "configure"
10f2d63a
VZ
13195#include "confdefs.h"
13196/* Override any gcc2 internal prototype to avoid an error. */
13197/* We use char because int might match the return type of a gcc2
13198 builtin and then its argument prototype would still apply. */
bdad4e7e 13199char glFlush();
10f2d63a
VZ
13200
13201int main() {
bdad4e7e 13202glFlush()
10f2d63a
VZ
13203; return 0; }
13204EOF
b4085ce6 13205if { (eval echo configure:13206: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
13206 rm -rf conftest*
13207 eval "ac_cv_lib_$ac_lib_var=yes"
13208else
13209 echo "configure: failed program was:" >&5
13210 cat conftest.$ac_ext >&5
13211 rm -rf conftest*
13212 eval "ac_cv_lib_$ac_lib_var=no"
13213fi
13214rm -f conftest*
13215LIBS="$ac_save_LIBS"
13216
13217fi
13218if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13219 echo "$ac_t""yes" 1>&6
13220
f6bcfd97 13221 OPENGL_LINK="-lGL -lGLU"
10f2d63a
VZ
13222
13223else
13224 echo "$ac_t""no" 1>&6
13225
bdad4e7e 13226 echo $ac_n "checking for glFlush in -lMesaGL""... $ac_c" 1>&6
b4085ce6 13227echo "configure:13228: checking for glFlush in -lMesaGL" >&5
bdad4e7e 13228ac_lib_var=`echo MesaGL'_'glFlush | sed 'y%./+-%__p_%'`
10f2d63a
VZ
13229if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13230 echo $ac_n "(cached) $ac_c" 1>&6
13231else
13232 ac_save_LIBS="$LIBS"
13233LIBS="-lMesaGL $LIBS"
13234cat > conftest.$ac_ext <<EOF
b4085ce6 13235#line 13236 "configure"
10f2d63a
VZ
13236#include "confdefs.h"
13237/* Override any gcc2 internal prototype to avoid an error. */
13238/* We use char because int might match the return type of a gcc2
13239 builtin and then its argument prototype would still apply. */
bdad4e7e 13240char glFlush();
10f2d63a
VZ
13241
13242int main() {
bdad4e7e 13243glFlush()
10f2d63a
VZ
13244; return 0; }
13245EOF
b4085ce6 13246if { (eval echo configure:13247: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
13247 rm -rf conftest*
13248 eval "ac_cv_lib_$ac_lib_var=yes"
13249else
13250 echo "configure: failed program was:" >&5
13251 cat conftest.$ac_ext >&5
13252 rm -rf conftest*
13253 eval "ac_cv_lib_$ac_lib_var=no"
13254fi
13255rm -f conftest*
13256LIBS="$ac_save_LIBS"
13257
13258fi
13259if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13260 echo "$ac_t""yes" 1>&6
13261
f6bcfd97 13262 OPENGL_LINK="-lMesaGL -lMesaGLU"
10f2d63a
VZ
13263
13264else
13265 echo "$ac_t""no" 1>&6
10f2d63a
VZ
13266fi
13267
13268
13269fi
13270
13271
13272else
13273 echo "$ac_t""no" 1>&6
13274wxUSE_OPENGL=0
13275fi
13276
13277fi
13278
13279
13280if test "$wxUSE_GUI" = "yes"; then
13281 cat >> confdefs.h <<\EOF
13282#define wxUSE_GUI 1
13283EOF
13284
13285
13286 else
13287 cat >> confdefs.h <<\EOF
13288#define wxUSE_NOGUI 1
13289EOF
13290
13291fi
13292
13293
13294if test "$wxUSE_UNIX" = "yes"; then
13295 cat >> confdefs.h <<\EOF
13296#define wxUSE_UNIX 1
13297EOF
13298
13299fi
13300
13301
13302if test "$wxUSE_APPLE_IEEE" = "yes"; then
13303 cat >> confdefs.h <<\EOF
13304#define wxUSE_APPLE_IEEE 1
13305EOF
13306
13307fi
13308
10f2d63a
VZ
13309if test "$wxUSE_WAVE" = "yes"; then
13310 cat >> confdefs.h <<\EOF
13311#define wxUSE_WAVE 1
13312EOF
13313
13314fi
13315
13316if test "$wxUSE_FILE" = "yes"; then
13317 cat >> confdefs.h <<\EOF
13318#define wxUSE_FILE 1
13319EOF
13320
13321fi
13322
24528b0c
VS
13323if test "$wxUSE_FILESYSTEM" = "yes"; then
13324 cat >> confdefs.h <<\EOF
13325#define wxUSE_FILESYSTEM 1
13326EOF
13327
13328fi
13329
10f2d63a
VZ
13330if test "$wxUSE_FS_INET" = "yes"; then
13331 cat >> confdefs.h <<\EOF
13332#define wxUSE_FS_INET 1
13333EOF
13334
13335fi
13336
13337if test "$wxUSE_FS_ZIP" = "yes"; then
13338 cat >> confdefs.h <<\EOF
13339#define wxUSE_FS_ZIP 1
13340EOF
13341
13342fi
13343
13344if test "$wxUSE_ZIPSTREAM" = "yes"; then
13345 cat >> confdefs.h <<\EOF
13346#define wxUSE_ZIPSTREAM 1
13347EOF
13348
13349fi
13350
eb4efbdc
VZ
13351if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
13352 cat >> confdefs.h <<\EOF
13353#define wxUSE_ON_FATAL_EXCEPTION 1
13354EOF
13355
13356fi
13357
10f2d63a
VZ
13358if test "$wxUSE_BUSYINFO" = "yes"; then
13359 cat >> confdefs.h <<\EOF
13360#define wxUSE_BUSYINFO 1
13361EOF
13362
13363fi
13364
13365if test "$wxUSE_STD_IOSTREAM" = "yes"; then
13366 cat >> confdefs.h <<\EOF
13367#define wxUSE_STD_IOSTREAM 1
13368EOF
13369
13370fi
13371
13372if test "$wxUSE_TEXTFILE" = "yes"; then
13373 if test "$wxUSE_FILE" != "yes"; then
13374 echo "configure: warning: wxTextFile requires wxFile and it won't be compiled without it" 1>&2
13375 else
13376 cat >> confdefs.h <<\EOF
13377#define wxUSE_TEXTFILE 1
13378EOF
13379
13380 fi
13381fi
13382
13383if test "$wxUSE_CONFIG" = "yes" ; then
13384 if test "$wxUSE_TEXTFILE" != "yes"; then
13385 echo "configure: warning: wxConfig requires wxTextFile and it won't be compiled without it" 1>&2
13386 else
13387 cat >> confdefs.h <<\EOF
13388#define wxUSE_CONFIG 1
13389EOF
13390
13391 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
13392 fi
13393fi
13394
13395if test "$wxUSE_INTL" = "yes" ; then
13396 if test "$wxUSE_FILE" != "yes"; then
13397 echo "configure: warning: I18n code requires wxFile and it won't be compiled without it" 1>&2
13398 else
13399 cat >> confdefs.h <<\EOF
13400#define wxUSE_INTL 1
13401EOF
13402
13403 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
f6bcfd97 13404 GUIDIST="$GUIDIST INTL_DIST"
10f2d63a
VZ
13405 fi
13406fi
13407
13408if test "$wxUSE_LOG" = "yes"; then
13409 cat >> confdefs.h <<\EOF
13410#define wxUSE_LOG 1
13411EOF
13412
13413fi
13414
13415if test "$wxUSE_LONGLONG" = "yes"; then
13416 cat >> confdefs.h <<\EOF
13417#define wxUSE_LONGLONG 1
13418EOF
13419
13420fi
13421
e8f65ba6
RR
13422if test "$wxUSE_GEOMETRY" = "yes"; then
13423 cat >> confdefs.h <<\EOF
13424#define wxUSE_GEOMETRY 1
13425EOF
13426
13427fi
13428
10f2d63a
VZ
13429if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then
13430 cat >> confdefs.h <<\EOF
13431#define wxUSE_DIALUP_MANAGER 1
13432EOF
13433
70f7a477 13434 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
10f2d63a
VZ
13435fi
13436
13437if test "$wxUSE_STREAMS" = "yes" ; then
13438 cat >> confdefs.h <<\EOF
13439#define wxUSE_STREAMS 1
13440EOF
13441
13442fi
13443
10f2d63a 13444
afc31813 13445if test "$wxUSE_TIMEDATE" = "yes"; then
83307f33
VZ
13446 for ac_func in strptime
13447do
13448echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
b4085ce6 13449echo "configure:13450: checking for $ac_func" >&5
83307f33
VZ
13450if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13451 echo $ac_n "(cached) $ac_c" 1>&6
13452else
13453 cat > conftest.$ac_ext <<EOF
b4085ce6 13454#line 13455 "configure"
83307f33
VZ
13455#include "confdefs.h"
13456/* System header to define __stub macros and hopefully few prototypes,
13457 which can conflict with char $ac_func(); below. */
13458#include <assert.h>
13459/* Override any gcc2 internal prototype to avoid an error. */
13460/* We use char because int might match the return type of a gcc2
13461 builtin and then its argument prototype would still apply. */
13462char $ac_func();
13463
13464int main() {
13465
13466/* The GNU C library defines this for functions which it implements
13467 to always fail with ENOSYS. Some functions are actually named
13468 something starting with __ and the normal name is an alias. */
13469#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13470choke me
13471#else
e8482f24 13472$ac_func();
83307f33
VZ
13473#endif
13474
13475; return 0; }
13476EOF
b4085ce6 13477if { (eval echo configure:13478: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
83307f33
VZ
13478 rm -rf conftest*
13479 eval "ac_cv_func_$ac_func=yes"
13480else
13481 echo "configure: failed program was:" >&5
13482 cat conftest.$ac_ext >&5
13483 rm -rf conftest*
13484 eval "ac_cv_func_$ac_func=no"
13485fi
13486rm -f conftest*
13487fi
13488
13489if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13490 echo "$ac_t""yes" 1>&6
13491 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13492 cat >> confdefs.h <<EOF
13493#define $ac_tr_func 1
13494EOF
13495
13496else
13497 echo "$ac_t""no" 1>&6
13498fi
13499done
13500
13501
360d6699 13502 echo $ac_n "checking for timezone variable in <time.h>""... $ac_c" 1>&6
b4085ce6 13503echo "configure:13504: checking for timezone variable in <time.h>" >&5
360d6699
VZ
13504if eval "test \"`echo '$''{'wx_cv_var_timezone'+set}'`\" = set"; then
13505 echo $ac_n "(cached) $ac_c" 1>&6
13506else
13507
13508 cat > conftest.$ac_ext <<EOF
b4085ce6 13509#line 13510 "configure"
360d6699
VZ
13510#include "confdefs.h"
13511
b4085ce6 13512 #include <time.h>
360d6699
VZ
13513
13514int main() {
13515
13516 int tz;
13517 tz = __timezone;
13518
13519; return 0; }
13520EOF
b4085ce6 13521if { (eval echo configure:13522: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
360d6699
VZ
13522 rm -rf conftest*
13523
13524 wx_cv_var_timezone=__timezone
13525
13526else
13527 echo "configure: failed program was:" >&5
13528 cat conftest.$ac_ext >&5
13529 rm -rf conftest*
13530
13531 cat > conftest.$ac_ext <<EOF
b4085ce6 13532#line 13533 "configure"
360d6699
VZ
13533#include "confdefs.h"
13534
b4085ce6 13535 #include <time.h>
360d6699
VZ
13536
13537int main() {
13538
13539 int tz;
13540 tz = _timezone;
13541
13542; return 0; }
13543EOF
b4085ce6 13544if { (eval echo configure:13545: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
360d6699
VZ
13545 rm -rf conftest*
13546
13547 wx_cv_var_timezone=_timezone
13548
5357c8e8
VZ
13549else
13550 echo "configure: failed program was:" >&5
13551 cat conftest.$ac_ext >&5
13552 rm -rf conftest*
13553
13554 cat > conftest.$ac_ext <<EOF
b4085ce6 13555#line 13556 "configure"
5357c8e8
VZ
13556#include "confdefs.h"
13557
b4085ce6 13558 #include <time.h>
5357c8e8
VZ
13559
13560int main() {
13561
13562 int tz;
13563 tz = timezone;
13564
13565; return 0; }
13566EOF
b4085ce6 13567if { (eval echo configure:13568: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5357c8e8
VZ
13568 rm -rf conftest*
13569
13570 wx_cv_var_timezone=timezone
13571
360d6699
VZ
13572else
13573 echo "configure: failed program was:" >&5
13574 cat conftest.$ac_ext >&5
13575 rm -rf conftest*
13576 { echo "configure: error: no timezone variable" 1>&2; exit 1; }
5357c8e8
VZ
13577
13578fi
13579rm -f conftest*
13580
360d6699
VZ
13581
13582fi
13583rm -f conftest*
13584
13585
13586fi
13587rm -f conftest*
13588
13589
13590fi
13591
13592echo "$ac_t""$wx_cv_var_timezone" 1>&6
13593
13594 cat >> confdefs.h <<EOF
13595#define WX_TIMEZONE $wx_cv_var_timezone
13596EOF
13597
13598
3fcdd07b 13599 for ac_func in localtime
afc31813
VZ
13600do
13601echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
b4085ce6 13602echo "configure:13603: checking for $ac_func" >&5
afc31813
VZ
13603if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13604 echo $ac_n "(cached) $ac_c" 1>&6
13605else
13606 cat > conftest.$ac_ext <<EOF
b4085ce6 13607#line 13608 "configure"
10f2d63a 13608#include "confdefs.h"
afc31813
VZ
13609/* System header to define __stub macros and hopefully few prototypes,
13610 which can conflict with char $ac_func(); below. */
13611#include <assert.h>
13612/* Override any gcc2 internal prototype to avoid an error. */
13613/* We use char because int might match the return type of a gcc2
13614 builtin and then its argument prototype would still apply. */
13615char $ac_func();
13616
10f2d63a 13617int main() {
afc31813
VZ
13618
13619/* The GNU C library defines this for functions which it implements
13620 to always fail with ENOSYS. Some functions are actually named
13621 something starting with __ and the normal name is an alias. */
13622#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13623choke me
13624#else
e8482f24 13625$ac_func();
afc31813
VZ
13626#endif
13627
10f2d63a
VZ
13628; return 0; }
13629EOF
b4085ce6 13630if { (eval echo configure:13631: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a 13631 rm -rf conftest*
afc31813 13632 eval "ac_cv_func_$ac_func=yes"
10f2d63a
VZ
13633else
13634 echo "configure: failed program was:" >&5
13635 cat conftest.$ac_ext >&5
13636 rm -rf conftest*
afc31813
VZ
13637 eval "ac_cv_func_$ac_func=no"
13638fi
13639rm -f conftest*
13640fi
13641
13642if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13643 echo "$ac_t""yes" 1>&6
13644 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13645 cat >> confdefs.h <<EOF
13646#define $ac_tr_func 1
13647EOF
3fcdd07b 13648
afc31813
VZ
13649else
13650 echo "$ac_t""no" 1>&6
13651fi
13652done
13653
13654
0470b1e6
VZ
13655 if test "$ac_cv_func_localtime" = "yes"; then
13656 echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6
b4085ce6 13657echo "configure:13658: checking for tm_gmtoff in struct tm" >&5
0470b1e6
VZ
13658if eval "test \"`echo '$''{'wx_cv_struct_tm_has_gmtoff'+set}'`\" = set"; then
13659 echo $ac_n "(cached) $ac_c" 1>&6
13660else
13661
13662 cat > conftest.$ac_ext <<EOF
b4085ce6 13663#line 13664 "configure"
0470b1e6
VZ
13664#include "confdefs.h"
13665
b4085ce6 13666 #include <time.h>
0470b1e6
VZ
13667
13668int main() {
13669
13670 struct tm tm;
13671 tm.tm_gmtoff++;
13672
13673; return 0; }
13674EOF
b4085ce6 13675if { (eval echo configure:13676: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
0470b1e6
VZ
13676 rm -rf conftest*
13677
f03a98d8 13678 wx_cv_struct_tm_has_gmtoff=yes
0470b1e6
VZ
13679 cat >> confdefs.h <<\EOF
13680#define WX_GMTOFF_IN_TM 1
13681EOF
13682
13683
13684else
13685 echo "configure: failed program was:" >&5
13686 cat conftest.$ac_ext >&5
13687 rm -rf conftest*
13688 wx_cv_struct_tm_has_gmtoff=no
13689
13690fi
13691rm -f conftest*
13692
13693fi
13694
13695echo "$ac_t""$wx_cv_struct_tm_has_gmtoff" 1>&6
3fcdd07b
VZ
13696 fi
13697
13698 for ac_func in gettimeofday ftime
13699do
13700echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
b4085ce6 13701echo "configure:13702: checking for $ac_func" >&5
3fcdd07b
VZ
13702if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13703 echo $ac_n "(cached) $ac_c" 1>&6
13704else
13705 cat > conftest.$ac_ext <<EOF
b4085ce6 13706#line 13707 "configure"
3fcdd07b
VZ
13707#include "confdefs.h"
13708/* System header to define __stub macros and hopefully few prototypes,
13709 which can conflict with char $ac_func(); below. */
13710#include <assert.h>
13711/* Override any gcc2 internal prototype to avoid an error. */
13712/* We use char because int might match the return type of a gcc2
13713 builtin and then its argument prototype would still apply. */
13714char $ac_func();
13715
13716int main() {
13717
13718/* The GNU C library defines this for functions which it implements
13719 to always fail with ENOSYS. Some functions are actually named
13720 something starting with __ and the normal name is an alias. */
13721#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13722choke me
13723#else
e8482f24 13724$ac_func();
3fcdd07b
VZ
13725#endif
13726
13727; return 0; }
13728EOF
b4085ce6 13729if { (eval echo configure:13730: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3fcdd07b
VZ
13730 rm -rf conftest*
13731 eval "ac_cv_func_$ac_func=yes"
13732else
13733 echo "configure: failed program was:" >&5
13734 cat conftest.$ac_ext >&5
13735 rm -rf conftest*
13736 eval "ac_cv_func_$ac_func=no"
13737fi
13738rm -f conftest*
13739fi
13740
13741if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13742 echo "$ac_t""yes" 1>&6
13743 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13744 cat >> confdefs.h <<EOF
13745#define $ac_tr_func 1
13746EOF
13747 break
13748else
13749 echo "$ac_t""no" 1>&6
13750fi
13751done
13752
13753
13754 if test "$ac_cv_func_gettimeofday" = "yes"; then
afc31813 13755 echo $ac_n "checking whether gettimeofday takes two arguments""... $ac_c" 1>&6
b4085ce6 13756echo "configure:13757: checking whether gettimeofday takes two arguments" >&5
afc31813
VZ
13757if eval "test \"`echo '$''{'wx_cv_func_gettimeofday_has_2_args'+set}'`\" = set"; then
13758 echo $ac_n "(cached) $ac_c" 1>&6
13759else
13760
13761
13762 ac_ext=C
13763# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13764ac_cpp='$CXXCPP $CPPFLAGS'
13765ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13766ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13767cross_compiling=$ac_cv_prog_cxx_cross
13768
13769
13770 cat > conftest.$ac_ext <<EOF
b4085ce6 13771#line 13772 "configure"
10f2d63a 13772#include "confdefs.h"
afc31813
VZ
13773
13774 #include <sys/time.h>
13775 #include <unistd.h>
13776
10f2d63a 13777int main() {
afc31813
VZ
13778
13779 struct timeval tv;
13780 struct timezone tz;
13781 gettimeofday(&tv, &tz);
13782
10f2d63a
VZ
13783; return 0; }
13784EOF
b4085ce6 13785if { (eval echo configure:13786: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10f2d63a 13786 rm -rf conftest*
afc31813 13787 wx_cv_func_gettimeofday_has_2_args=yes
10f2d63a
VZ
13788else
13789 echo "configure: failed program was:" >&5
13790 cat conftest.$ac_ext >&5
13791 rm -rf conftest*
13792 cat > conftest.$ac_ext <<EOF
b4085ce6 13793#line 13794 "configure"
10f2d63a 13794#include "confdefs.h"
afc31813
VZ
13795
13796 #include <sys/time.h>
13797 #include <unistd.h>
13798
10f2d63a 13799int main() {
afc31813
VZ
13800
13801 struct timeval tv;
13802 gettimeofday(&tv);
13803
10f2d63a
VZ
13804; return 0; }
13805EOF
b4085ce6 13806if { (eval echo configure:13807: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10f2d63a 13807 rm -rf conftest*
afc31813 13808 wx_cv_func_gettimeofday_has_2_args=no
10f2d63a
VZ
13809else
13810 echo "configure: failed program was:" >&5
13811 cat conftest.$ac_ext >&5
13812 rm -rf conftest*
afc31813
VZ
13813 wx_cv_func_gettimeofday_has_2_args=unknown
13814
10f2d63a
VZ
13815fi
13816rm -f conftest*
afc31813 13817
10f2d63a
VZ
13818fi
13819rm -f conftest*
afc31813 13820 ac_ext=c
10f2d63a
VZ
13821# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13822ac_cpp='$CPP $CPPFLAGS'
13823ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13824ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13825cross_compiling=$ac_cv_prog_cc_cross
13826
afc31813
VZ
13827
13828fi
13829
13830echo "$ac_t""$wx_cv_func_gettimeofday_has_2_args" 1>&6
c63c7106 13831
afc31813
VZ
13832 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
13833 cat >> confdefs.h <<\EOF
13834#define WX_GETTIMEOFDAY_NO_TZ 1
13835EOF
13836
13837 fi
13838 fi
13839
13840 cat >> confdefs.h <<\EOF
13841#define wxUSE_TIMEDATE 1
13842EOF
13843
13844 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
13845fi
13846
13847
b089607b
VZ
13848if test "$TOOLKIT" != "MSW"; then
13849
afc31813 13850if test "$wxUSE_SOCKETS" = "yes"; then
c63c7106 13851 echo $ac_n "checking for socket""... $ac_c" 1>&6
b4085ce6 13852echo "configure:13853: checking for socket" >&5
c63c7106
VZ
13853if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
13854 echo $ac_n "(cached) $ac_c" 1>&6
13855else
13856 cat > conftest.$ac_ext <<EOF
b4085ce6 13857#line 13858 "configure"
c63c7106
VZ
13858#include "confdefs.h"
13859/* System header to define __stub macros and hopefully few prototypes,
13860 which can conflict with char socket(); below. */
13861#include <assert.h>
13862/* Override any gcc2 internal prototype to avoid an error. */
13863/* We use char because int might match the return type of a gcc2
13864 builtin and then its argument prototype would still apply. */
13865char socket();
13866
13867int main() {
13868
13869/* The GNU C library defines this for functions which it implements
13870 to always fail with ENOSYS. Some functions are actually named
13871 something starting with __ and the normal name is an alias. */
13872#if defined (__stub_socket) || defined (__stub___socket)
13873choke me
13874#else
e8482f24 13875socket();
c63c7106
VZ
13876#endif
13877
13878; return 0; }
13879EOF
b4085ce6 13880if { (eval echo configure:13881: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
c63c7106
VZ
13881 rm -rf conftest*
13882 eval "ac_cv_func_socket=yes"
13883else
13884 echo "configure: failed program was:" >&5
13885 cat conftest.$ac_ext >&5
13886 rm -rf conftest*
13887 eval "ac_cv_func_socket=no"
13888fi
13889rm -f conftest*
13890fi
13891
13892if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
13893 echo "$ac_t""yes" 1>&6
13894 :
13895else
13896 echo "$ac_t""no" 1>&6
13897echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
b4085ce6 13898echo "configure:13899: checking for socket in -lsocket" >&5
c63c7106
VZ
13899ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
13900if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13901 echo $ac_n "(cached) $ac_c" 1>&6
13902else
13903 ac_save_LIBS="$LIBS"
13904LIBS="-lsocket $LIBS"
13905cat > conftest.$ac_ext <<EOF
b4085ce6 13906#line 13907 "configure"
c63c7106
VZ
13907#include "confdefs.h"
13908/* Override any gcc2 internal prototype to avoid an error. */
13909/* We use char because int might match the return type of a gcc2
13910 builtin and then its argument prototype would still apply. */
13911char socket();
13912
13913int main() {
13914socket()
13915; return 0; }
13916EOF
b4085ce6 13917if { (eval echo configure:13918: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
c63c7106
VZ
13918 rm -rf conftest*
13919 eval "ac_cv_lib_$ac_lib_var=yes"
13920else
13921 echo "configure: failed program was:" >&5
13922 cat conftest.$ac_ext >&5
13923 rm -rf conftest*
13924 eval "ac_cv_lib_$ac_lib_var=no"
13925fi
13926rm -f conftest*
13927LIBS="$ac_save_LIBS"
13928
13929fi
13930if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13931 echo "$ac_t""yes" 1>&6
13932 INET_LINK="$INET_LINK -lsocket"
c63c7106
VZ
13933else
13934 echo "$ac_t""no" 1>&6
afc31813
VZ
13935
13936 echo "configure: warning: socket library not found - sockets will be disabled" 1>&2
13937 wxUSE_SOCKETS=no
13938
13939
c63c7106
VZ
13940fi
13941
13942
13943fi
13944
10f2d63a
VZ
13945fi
13946
b089607b
VZ
13947fi
13948
afc31813 13949if test "$wxUSE_SOCKETS" = "yes" ; then
51a9faba 13950 echo $ac_n "checking what is the type of the third argument of getsockname""... $ac_c" 1>&6
b4085ce6 13951echo "configure:13952: checking what is the type of the third argument of getsockname" >&5
51a9faba
VZ
13952if eval "test \"`echo '$''{'wx_cv_type_getsockname3'+set}'`\" = set"; then
13953 echo $ac_n "(cached) $ac_c" 1>&6
13954else
13955
13956
13957 ac_ext=C
afc31813
VZ
13958# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13959ac_cpp='$CXXCPP $CPPFLAGS'
13960ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13961ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13962cross_compiling=$ac_cv_prog_cxx_cross
13963
51a9faba
VZ
13964
13965 cat > conftest.$ac_ext <<EOF
b4085ce6 13966#line 13967 "configure"
afc31813 13967#include "confdefs.h"
51a9faba 13968
3ace2e6d 13969 #include <sys/types.h>
51a9faba
VZ
13970 #include <sys/socket.h>
13971
afc31813 13972int main() {
51a9faba
VZ
13973
13974 socklen_t len;
13975 getsockname(0, 0, &len);
13976
afc31813
VZ
13977; return 0; }
13978EOF
b4085ce6 13979if { (eval echo configure:13980: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
afc31813 13980 rm -rf conftest*
51a9faba 13981 wx_cv_type_getsockname3=socklen_t
afc31813
VZ
13982else
13983 echo "configure: failed program was:" >&5
13984 cat conftest.$ac_ext >&5
13985 rm -rf conftest*
13986 cat > conftest.$ac_ext <<EOF
b4085ce6 13987#line 13988 "configure"
afc31813 13988#include "confdefs.h"
51a9faba 13989
3ace2e6d 13990 #include <sys/types.h>
51a9faba
VZ
13991 #include <sys/socket.h>
13992
afc31813 13993int main() {
51a9faba
VZ
13994
13995 size_t len;
13996 getsockname(0, 0, &len);
13997
afc31813
VZ
13998; return 0; }
13999EOF
b4085ce6 14000if { (eval echo configure:14001: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
afc31813 14001 rm -rf conftest*
51a9faba 14002 wx_cv_type_getsockname3=size_t
afc31813
VZ
14003else
14004 echo "configure: failed program was:" >&5
14005 cat conftest.$ac_ext >&5
14006 rm -rf conftest*
14007 cat > conftest.$ac_ext <<EOF
b4085ce6 14008#line 14009 "configure"
afc31813 14009#include "confdefs.h"
51a9faba 14010
3ace2e6d 14011 #include <sys/types.h>
51a9faba
VZ
14012 #include <sys/socket.h>
14013
afc31813 14014int main() {
51a9faba
VZ
14015
14016 int len;
14017 getsockname(0, 0, &len);
14018
afc31813
VZ
14019; return 0; }
14020EOF
b4085ce6 14021if { (eval echo configure:14022: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
afc31813 14022 rm -rf conftest*
51a9faba 14023 wx_cv_type_getsockname3=int
afc31813
VZ
14024else
14025 echo "configure: failed program was:" >&5
14026 cat conftest.$ac_ext >&5
3ace2e6d
SN
14027 rm -rf conftest*
14028 wx_cv_type_getsockname3=unknown
14029
afc31813
VZ
14030fi
14031rm -f conftest*
51a9faba 14032
afc31813
VZ
14033fi
14034rm -f conftest*
51a9faba 14035
afc31813
VZ
14036fi
14037rm -f conftest*
51a9faba
VZ
14038
14039 ac_ext=c
afc31813
VZ
14040# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14041ac_cpp='$CPP $CPPFLAGS'
14042ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14043ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14044cross_compiling=$ac_cv_prog_cc_cross
14045
51a9faba
VZ
14046
14047fi
14048
14049echo "$ac_t""$wx_cv_type_getsockname3" 1>&6
14050
14051 if test "$wx_cv_type_getsockname3" = "unknown"; then
14052 wxUSE_SOCKETS=no
14053 echo "configure: warning: Couldn't find socklen_t synonym for this system" 1>&2
14054 else
14055 cat >> confdefs.h <<EOF
14056#define SOCKLEN_T $wx_cv_type_getsockname3
14057EOF
14058
14059 fi
14060fi
afc31813 14061
51a9faba 14062if test "$wxUSE_SOCKETS" = "yes" ; then
afc31813
VZ
14063 cat >> confdefs.h <<\EOF
14064#define wxUSE_SOCKETS 1
14065EOF
14066
70f7a477 14067 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
afc31813
VZ
14068 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS protocol"
14069fi
14070
10f2d63a 14071
dc3d889d
VZ
14072if test "$wxUSE_GUI" = "yes"; then
14073
b089607b
VZ
14074if test "$TOOLKIT" != "MSW"; then
14075
ceded8b9 14076if test "$wxUSE_JOYSTICK" = "yes"; then
10f2d63a
VZ
14077 for ac_hdr in linux/joystick.h
14078do
14079ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
14080echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
b4085ce6 14081echo "configure:14082: checking for $ac_hdr" >&5
10f2d63a
VZ
14082if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
14083 echo $ac_n "(cached) $ac_c" 1>&6
14084else
14085 cat > conftest.$ac_ext <<EOF
b4085ce6 14086#line 14087 "configure"
10f2d63a
VZ
14087#include "confdefs.h"
14088#include <$ac_hdr>
14089EOF
14090ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
b4085ce6 14091{ (eval echo configure:14092: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
14092ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14093if test -z "$ac_err"; then
14094 rm -rf conftest*
14095 eval "ac_cv_header_$ac_safe=yes"
14096else
14097 echo "$ac_err" >&5
14098 echo "configure: failed program was:" >&5
14099 cat conftest.$ac_ext >&5
14100 rm -rf conftest*
14101 eval "ac_cv_header_$ac_safe=no"
14102fi
14103rm -f conftest*
14104fi
14105if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14106 echo "$ac_t""yes" 1>&6
14107 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
14108 cat >> confdefs.h <<EOF
14109#define $ac_tr_hdr 1
14110EOF
14111
14112else
14113 echo "$ac_t""no" 1>&6
14114fi
14115done
14116
b089607b 14117 if test "$ac_cv_header_linux_joystick_h" != "yes"; then
ceded8b9 14118 wxUSE_JOYSTICK=no
dc3d889d 14119 echo "configure: warning: Joystick not supported by this system" 1>&2
b089607b
VZ
14120 fi
14121fi
14122
14123fi
14124
ceded8b9 14125if test "$wxUSE_JOYSTICK" = "yes"; then
10f2d63a
VZ
14126 cat >> confdefs.h <<\EOF
14127#define wxUSE_JOYSTICK 1
14128EOF
14129
14130 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
10f2d63a
VZ
14131fi
14132
dc3d889d
VZ
14133fi
14134
10f2d63a 14135
b089607b
VZ
14136if test "$TOOLKIT" != "MSW"; then
14137
10f2d63a
VZ
14138HAVE_DL_FUNCS=0
14139HAVE_SHL_FUNCS=0
14140if test "$wxUSE_DYNLIB_CLASS" = "yes"; then
b4085ce6
GD
14141 if test "$USE_MAC" = 1; then
14142 HAVE_DL_FUNCS=1
14143 else
14144 for ac_func in dlopen
10f2d63a
VZ
14145do
14146echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
b4085ce6 14147echo "configure:14148: checking for $ac_func" >&5
10f2d63a
VZ
14148if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14149 echo $ac_n "(cached) $ac_c" 1>&6
14150else
14151 cat > conftest.$ac_ext <<EOF
b4085ce6 14152#line 14153 "configure"
10f2d63a
VZ
14153#include "confdefs.h"
14154/* System header to define __stub macros and hopefully few prototypes,
14155 which can conflict with char $ac_func(); below. */
14156#include <assert.h>
14157/* Override any gcc2 internal prototype to avoid an error. */
14158/* We use char because int might match the return type of a gcc2
14159 builtin and then its argument prototype would still apply. */
14160char $ac_func();
14161
14162int main() {
14163
14164/* The GNU C library defines this for functions which it implements
14165 to always fail with ENOSYS. Some functions are actually named
14166 something starting with __ and the normal name is an alias. */
14167#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14168choke me
14169#else
e8482f24 14170$ac_func();
10f2d63a
VZ
14171#endif
14172
14173; return 0; }
14174EOF
b4085ce6 14175if { (eval echo configure:14176: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
14176 rm -rf conftest*
14177 eval "ac_cv_func_$ac_func=yes"
14178else
14179 echo "configure: failed program was:" >&5
14180 cat conftest.$ac_ext >&5
14181 rm -rf conftest*
14182 eval "ac_cv_func_$ac_func=no"
14183fi
14184rm -f conftest*
14185fi
14186
14187if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14188 echo "$ac_t""yes" 1>&6
14189 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14190 cat >> confdefs.h <<EOF
14191#define $ac_tr_func 1
14192EOF
14193
14194 cat >> confdefs.h <<\EOF
14195#define HAVE_DLOPEN 1
14196EOF
14197
14198 HAVE_DL_FUNCS=1
14199
14200else
14201 echo "$ac_t""no" 1>&6
14202echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
b4085ce6 14203echo "configure:14204: checking for dlopen in -ldl" >&5
10f2d63a
VZ
14204ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
14205if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14206 echo $ac_n "(cached) $ac_c" 1>&6
14207else
14208 ac_save_LIBS="$LIBS"
14209LIBS="-ldl $LIBS"
14210cat > conftest.$ac_ext <<EOF
b4085ce6 14211#line 14212 "configure"
10f2d63a
VZ
14212#include "confdefs.h"
14213/* Override any gcc2 internal prototype to avoid an error. */
14214/* We use char because int might match the return type of a gcc2
14215 builtin and then its argument prototype would still apply. */
14216char dlopen();
14217
14218int main() {
14219dlopen()
14220; return 0; }
14221EOF
b4085ce6 14222if { (eval echo configure:14223: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
14223 rm -rf conftest*
14224 eval "ac_cv_lib_$ac_lib_var=yes"
14225else
14226 echo "configure: failed program was:" >&5
14227 cat conftest.$ac_ext >&5
14228 rm -rf conftest*
14229 eval "ac_cv_lib_$ac_lib_var=no"
14230fi
14231rm -f conftest*
14232LIBS="$ac_save_LIBS"
14233
14234fi
14235if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14236 echo "$ac_t""yes" 1>&6
14237
14238 cat >> confdefs.h <<\EOF
14239#define HAVE_DLOPEN 1
14240EOF
14241
14242 HAVE_DL_FUNCS=1
14243 LIBS="$LIBS -ldl"
14244
14245else
14246 echo "$ac_t""no" 1>&6
14247
14248 for ac_func in shl_load
14249do
14250echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
b4085ce6 14251echo "configure:14252: checking for $ac_func" >&5
10f2d63a
VZ
14252if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14253 echo $ac_n "(cached) $ac_c" 1>&6
14254else
14255 cat > conftest.$ac_ext <<EOF
b4085ce6 14256#line 14257 "configure"
10f2d63a
VZ
14257#include "confdefs.h"
14258/* System header to define __stub macros and hopefully few prototypes,
14259 which can conflict with char $ac_func(); below. */
14260#include <assert.h>
14261/* Override any gcc2 internal prototype to avoid an error. */
14262/* We use char because int might match the return type of a gcc2
14263 builtin and then its argument prototype would still apply. */
14264char $ac_func();
14265
14266int main() {
14267
14268/* The GNU C library defines this for functions which it implements
14269 to always fail with ENOSYS. Some functions are actually named
14270 something starting with __ and the normal name is an alias. */
14271#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14272choke me
14273#else
e8482f24 14274$ac_func();
10f2d63a
VZ
14275#endif
14276
14277; return 0; }
14278EOF
b4085ce6 14279if { (eval echo configure:14280: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
14280 rm -rf conftest*
14281 eval "ac_cv_func_$ac_func=yes"
14282else
14283 echo "configure: failed program was:" >&5
14284 cat conftest.$ac_ext >&5
14285 rm -rf conftest*
14286 eval "ac_cv_func_$ac_func=no"
14287fi
14288rm -f conftest*
14289fi
14290
14291if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14292 echo "$ac_t""yes" 1>&6
14293 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14294 cat >> confdefs.h <<EOF
14295#define $ac_tr_func 1
14296EOF
14297
14298 cat >> confdefs.h <<\EOF
14299#define HAVE_SHL_LOAD 1
14300EOF
14301
14302 HAVE_SHL_FUNCS=1
14303
14304else
14305 echo "$ac_t""no" 1>&6
f6bcfd97 14306echo $ac_n "checking for dld in -lshl_load""... $ac_c" 1>&6
b4085ce6 14307echo "configure:14308: checking for dld in -lshl_load" >&5
f6bcfd97
BP
14308ac_lib_var=`echo shl_load'_'dld | sed 'y%./+-%__p_%'`
14309if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14310 echo $ac_n "(cached) $ac_c" 1>&6
14311else
14312 ac_save_LIBS="$LIBS"
14313LIBS="-lshl_load $LIBS"
14314cat > conftest.$ac_ext <<EOF
b4085ce6 14315#line 14316 "configure"
f6bcfd97
BP
14316#include "confdefs.h"
14317/* Override any gcc2 internal prototype to avoid an error. */
14318/* We use char because int might match the return type of a gcc2
14319 builtin and then its argument prototype would still apply. */
14320char dld();
14321
14322int main() {
14323dld()
14324; return 0; }
14325EOF
b4085ce6 14326if { (eval echo configure:14327: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
f6bcfd97
BP
14327 rm -rf conftest*
14328 eval "ac_cv_lib_$ac_lib_var=yes"
14329else
14330 echo "configure: failed program was:" >&5
14331 cat conftest.$ac_ext >&5
14332 rm -rf conftest*
14333 eval "ac_cv_lib_$ac_lib_var=no"
14334fi
14335rm -f conftest*
14336LIBS="$ac_save_LIBS"
14337
14338fi
14339if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14340 echo "$ac_t""yes" 1>&6
14341
14342 HAVE_SHL_FUNCS=1
14343 LIBS="$LIBS -ldld"
14344
14345else
14346 echo "$ac_t""no" 1>&6
14347fi
14348
14349
10f2d63a
VZ
14350fi
14351done
14352
14353
14354fi
14355
14356
14357fi
14358done
14359
14360
f6bcfd97
BP
14361 if test "$HAVE_DL_FUNCS" = 1; then
14362 for ac_func in dlerror
14363do
14364echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
b4085ce6 14365echo "configure:14366: checking for $ac_func" >&5
f6bcfd97
BP
14366if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14367 echo $ac_n "(cached) $ac_c" 1>&6
14368else
14369 cat > conftest.$ac_ext <<EOF
b4085ce6 14370#line 14371 "configure"
f6bcfd97
BP
14371#include "confdefs.h"
14372/* System header to define __stub macros and hopefully few prototypes,
14373 which can conflict with char $ac_func(); below. */
14374#include <assert.h>
14375/* Override any gcc2 internal prototype to avoid an error. */
14376/* We use char because int might match the return type of a gcc2
14377 builtin and then its argument prototype would still apply. */
14378char $ac_func();
14379
14380int main() {
14381
14382/* The GNU C library defines this for functions which it implements
14383 to always fail with ENOSYS. Some functions are actually named
14384 something starting with __ and the normal name is an alias. */
14385#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14386choke me
14387#else
14388$ac_func();
14389#endif
14390
14391; return 0; }
14392EOF
b4085ce6 14393if { (eval echo configure:14394: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
f6bcfd97
BP
14394 rm -rf conftest*
14395 eval "ac_cv_func_$ac_func=yes"
14396else
14397 echo "configure: failed program was:" >&5
14398 cat conftest.$ac_ext >&5
14399 rm -rf conftest*
14400 eval "ac_cv_func_$ac_func=no"
14401fi
14402rm -f conftest*
14403fi
14404
14405if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14406 echo "$ac_t""yes" 1>&6
14407 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14408 cat >> confdefs.h <<EOF
14409#define $ac_tr_func 1
14410EOF
14411 cat >> confdefs.h <<\EOF
14412#define HAVE_DLERROR 1
14413EOF
14414
14415else
14416 echo "$ac_t""no" 1>&6
14417echo $ac_n "checking for dlerror in -ldl""... $ac_c" 1>&6
b4085ce6 14418echo "configure:14419: checking for dlerror in -ldl" >&5
f6bcfd97
BP
14419ac_lib_var=`echo dl'_'dlerror | sed 'y%./+-%__p_%'`
14420if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14421 echo $ac_n "(cached) $ac_c" 1>&6
14422else
14423 ac_save_LIBS="$LIBS"
14424LIBS="-ldl $LIBS"
14425cat > conftest.$ac_ext <<EOF
b4085ce6 14426#line 14427 "configure"
f6bcfd97
BP
14427#include "confdefs.h"
14428/* Override any gcc2 internal prototype to avoid an error. */
14429/* We use char because int might match the return type of a gcc2
14430 builtin and then its argument prototype would still apply. */
14431char dlerror();
14432
14433int main() {
14434dlerror()
14435; return 0; }
14436EOF
b4085ce6 14437if { (eval echo configure:14438: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
f6bcfd97
BP
14438 rm -rf conftest*
14439 eval "ac_cv_lib_$ac_lib_var=yes"
14440else
14441 echo "configure: failed program was:" >&5
14442 cat conftest.$ac_ext >&5
14443 rm -rf conftest*
14444 eval "ac_cv_lib_$ac_lib_var=no"
14445fi
14446rm -f conftest*
14447LIBS="$ac_save_LIBS"
14448
14449fi
14450if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14451 echo "$ac_t""yes" 1>&6
14452 cat >> confdefs.h <<\EOF
14453#define HAVE_DLERROR 1
14454EOF
14455
14456else
14457 echo "$ac_t""no" 1>&6
14458fi
14459
14460fi
14461done
14462
14463 fi
b4085ce6 14464 fi
f6bcfd97 14465
10f2d63a
VZ
14466 if test "$HAVE_DL_FUNCS" = 0; then
14467 if test "$HAVE_SHL_FUNCS" = 0; then
14468 if test "$USE_UNIX" = 1; then
b12915c1 14469 echo "configure: warning: Missing dynamic loading support, several features will be disabled" 1>&2
10f2d63a
VZ
14470 wxUSE_DYNLIB_CLASS=no
14471 else
b12915c1 14472 echo "configure: warning: Assuming wxLibrary class works on this platform" 1>&2
10f2d63a
VZ
14473 fi
14474 fi
14475 fi
14476fi
14477
b089607b
VZ
14478fi
14479
10f2d63a 14480if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
b12915c1 14481 cat >> confdefs.h <<\EOF
10f2d63a
VZ
14482#define wxUSE_DYNLIB_CLASS 1
14483EOF
14484
b12915c1
VZ
14485else
14486 wxUSE_ODBC=no
14487 wxUSE_SERIAL=no
10f2d63a
VZ
14488fi
14489
14490
14491if test "$wxUSE_UNICODE" = "yes" ; then
14492 cat >> confdefs.h <<\EOF
14493#define wxUSE_UNICODE 1
14494EOF
14495
14496fi
14497
14498if test "$wxUSE_WCSRTOMBS" = "yes" ; then
14499 cat >> confdefs.h <<\EOF
14500#define wxUSE_WCSRTOMBS 1
14501EOF
14502
14503fi
14504
14505if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
14506 cat >> confdefs.h <<\EOF
14507#define wxUSE_EXPERIMENTAL_PRINTF 1
14508EOF
14509
14510fi
14511
14512
b12915c1
VZ
14513if test "$wxUSE_SERIAL" = "yes" ; then
14514 cat >> confdefs.h <<\EOF
14515#define wxUSE_SERIAL 1
14516EOF
14517
14518fi
14519
14520
10f2d63a
VZ
14521IODBC_C_SRC=""
14522if test "$wxUSE_ODBC" = "yes" ; then
14523 cat >> confdefs.h <<\EOF
14524#define wxUSE_ODBC 1
14525EOF
14526
14527 WXODBCFLAG="-D_IODBC_"
14528 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
14529 IODBCOBJS="\$(IODBC_OBJS)"
14530else
14531 IODBCOBJS=
14532fi
14533
14534
14535if test "$wxUSE_POSTSCRIPT" = "yes" ; then
14536 cat >> confdefs.h <<\EOF
14537#define wxUSE_POSTSCRIPT 1
14538EOF
14539
14540fi
14541
14542cat >> confdefs.h <<\EOF
14543#define wxUSE_AFM_FOR_POSTSCRIPT 1
14544EOF
14545
14546
14547cat >> confdefs.h <<\EOF
14548#define wxUSE_NORMALIZED_PS_FONTS 1
14549EOF
14550
14551
14552
14553if test "$wxUSE_CONSTRAINTS" = "yes"; then
14554 cat >> confdefs.h <<\EOF
14555#define wxUSE_CONSTRAINTS 1
14556EOF
14557
14558 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
14559fi
14560
14561if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
14562 cat >> confdefs.h <<\EOF
14563#define wxUSE_MDI_ARCHITECTURE 1
14564EOF
14565
14566 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
14567fi
14568
14569if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
14570 cat >> confdefs.h <<\EOF
14571#define wxUSE_DOC_VIEW_ARCHITECTURE 1
14572EOF
14573
14574 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
14575 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
14576 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
14577 fi
14578fi
14579
14580if test "$wxUSE_HELP" = "yes"; then
14581 cat >> confdefs.h <<\EOF
14582#define wxUSE_HELP 1
14583EOF
14584
14585 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
14586fi
14587
14588if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
14589 if test "$wxUSE_CONSTRAINTS" != "yes"; then
14590 echo "configure: warning: Printing support cannot be used without constraints so it won't be compiled without it" 1>&2
14591 else
14592 cat >> confdefs.h <<\EOF
14593#define wxUSE_PRINTING_ARCHITECTURE 1
14594EOF
14595
14596 fi
14597 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
14598fi
14599
14600if test "$wxUSE_PROLOGIO" = "yes" ; then
14601 cat >> confdefs.h <<\EOF
14602#define wxUSE_PROLOGIO 1
14603EOF
14604
14605fi
14606
14607if test "$wxUSE_RESOURCES" = "yes" ; then
14608 if test "$wxUSE_PROLOGIO" = "yes" ; then
14609 cat >> confdefs.h <<\EOF
14610#define wxUSE_RESOURCES 1
14611EOF
14612
14613 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS resource"
14614 else
14615 echo "configure: warning: wxWindows ressource system requires PrologIO and can't be compiled without it." 1>&2
14616 fi
14617fi
14618
14619if test "$wxUSE_X_RESOURCES" = "yes"; then
14620 cat >> confdefs.h <<\EOF
14621#define wxUSE_X_RESOURCES 1
14622EOF
14623
14624fi
14625
14626
14627if test "$wxUSE_IPC" = "yes"; then
eb4efbdc
VZ
14628 if test "$wxUSE_SOCKETS" != "yes"; then
14629 echo "configure: warning: wxWindows IPC classes require sockets" 1>&2
14630 fi
14631
10f2d63a
VZ
14632 cat >> confdefs.h <<\EOF
14633#define wxUSE_IPC 1
14634EOF
14635
14636fi
14637
14638if test "$wxUSE_CLIPBOARD" = "yes"; then
14639 cat >> confdefs.h <<\EOF
14640#define wxUSE_CLIPBOARD 1
14641EOF
14642
14643fi
14644
14645if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
14646 if test "$wxUSE_GTK" = 1; then
14647 if test "$WXGTK12" != 1; then
14648 echo "configure: warning: Drag and drop is only supported under GTK+ 1.2" 1>&2
14649 wxUSE_DRAG_AND_DROP=no
14650 fi
14651 fi
14652
14653 if test "$wxUSE_MOTIF" = 1; then
14654 echo "configure: warning: Drag and drop is not yet supported under Motif" 1>&2
14655 wxUSE_DRAG_AND_DROP=no
14656 fi
14657
14658 if test "$USE_WIN32" = 1; then
14659 for ac_hdr in ole2.h
14660do
14661ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
14662echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
b4085ce6 14663echo "configure:14664: checking for $ac_hdr" >&5
10f2d63a
VZ
14664if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
14665 echo $ac_n "(cached) $ac_c" 1>&6
14666else
14667 cat > conftest.$ac_ext <<EOF
b4085ce6 14668#line 14669 "configure"
10f2d63a
VZ
14669#include "confdefs.h"
14670#include <$ac_hdr>
14671EOF
14672ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
b4085ce6 14673{ (eval echo configure:14674: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
14674ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14675if test -z "$ac_err"; then
14676 rm -rf conftest*
14677 eval "ac_cv_header_$ac_safe=yes"
14678else
14679 echo "$ac_err" >&5
14680 echo "configure: failed program was:" >&5
14681 cat conftest.$ac_ext >&5
14682 rm -rf conftest*
14683 eval "ac_cv_header_$ac_safe=no"
14684fi
14685rm -f conftest*
14686fi
14687if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14688 echo "$ac_t""yes" 1>&6
14689 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
14690 cat >> confdefs.h <<EOF
14691#define $ac_tr_hdr 1
14692EOF
14693
14694else
14695 echo "$ac_t""no" 1>&6
14696fi
14697done
14698
14699 if test "x$HAVE_OLE2_H" = x ; then
14700 echo "configure: warning: Drag and drop disabled because OLE headers not found" 1>&2
14701 wxUSE_DRAG_AND_DROP=no
14702 fi
14703 fi
14704
14705 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
14706 cat >> confdefs.h <<\EOF
14707#define wxUSE_DRAG_AND_DROP 1
14708EOF
14709
14710 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
14711 fi
14712
14713fi
14714
14715if test "$wxUSE_SPLINES" = "yes" ; then
14716 cat >> confdefs.h <<\EOF
14717#define wxUSE_SPLINES 1
14718EOF
14719
14720fi
14721
14722
14723if test "$wxUSE_ACCEL" = "yes"; then
14724 cat >> confdefs.h <<\EOF
14725#define wxUSE_ACCEL 1
14726EOF
14727
14728fi
14729
14730if test "$wxUSE_CARET" = "yes"; then
14731 cat >> confdefs.h <<\EOF
14732#define wxUSE_CARET 1
14733EOF
14734
14735 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
14736fi
14737
14738if test "$wxUSE_COMBOBOX" = "yes"; then
14739 cat >> confdefs.h <<\EOF
14740#define wxUSE_COMBOBOX 1
14741EOF
14742
14743fi
14744
14745if test "$wxUSE_CHOICE" = "yes"; then
14746 cat >> confdefs.h <<\EOF
14747#define wxUSE_CHOICE 1
14748EOF
14749
14750fi
14751
14752if test "$wxUSE_BMPBUTTON" = "yes"; then
14753 cat >> confdefs.h <<\EOF
14754#define wxUSE_BMPBUTTON 1
14755EOF
14756
14757fi
14758
14759if test "$wxUSE_CHECKBOX" = "yes"; then
14760 cat >> confdefs.h <<\EOF
14761#define wxUSE_CHECKBOX 1
14762EOF
14763
14764fi
14765
14766if test "$wxUSE_CHECKLST" = "yes"; then
14767 cat >> confdefs.h <<\EOF
14768#define wxUSE_CHECKLISTBOX 1
14769EOF
14770
14771 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
14772fi
14773
14774if test "$wxUSE_GAUGE" = "yes"; then
14775 cat >> confdefs.h <<\EOF
14776#define wxUSE_GAUGE 1
14777EOF
14778
14779fi
14780
d6a55c4b
VZ
14781if test "$wxUSE_NEW_GRID" = "yes"; then
14782 wxUSE_GRID="yes"
10f2d63a 14783 cat >> confdefs.h <<\EOF
d6a55c4b 14784#define wxUSE_NEW_GRID 1
10f2d63a
VZ
14785EOF
14786
d6a55c4b 14787 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS newgrid"
10f2d63a
VZ
14788fi
14789
d6a55c4b 14790if test "$wxUSE_GRID" = "yes"; then
10f2d63a 14791 cat >> confdefs.h <<\EOF
d6a55c4b 14792#define wxUSE_GRID 1
10f2d63a
VZ
14793EOF
14794
d6a55c4b 14795 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
10f2d63a
VZ
14796fi
14797
14798if test "$wxUSE_IMAGLIST" = "yes"; then
14799 cat >> confdefs.h <<\EOF
14800#define wxUSE_IMAGLIST 1
14801EOF
14802
14803fi
14804
14805if test "$wxUSE_LISTBOX" = "yes"; then
14806 cat >> confdefs.h <<\EOF
14807#define wxUSE_LISTBOX 1
14808EOF
14809
14810fi
14811
14812if test "$wxUSE_LISTCTRL" = "yes"; then
14813 if test "$wxUSE_IMAGLIST" = "yes"; then
14814 cat >> confdefs.h <<\EOF
14815#define wxUSE_LISTCTRL 1
14816EOF
14817
14818 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
14819 else
14820 echo "configure: warning: wxListCtrl requires wxImageList and won't be compiled without it" 1>&2
14821 fi
14822fi
14823
14824if test "$wxUSE_NOTEBOOK" = "yes"; then
14825 cat >> confdefs.h <<\EOF
14826#define wxUSE_NOTEBOOK 1
14827EOF
14828
14829 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
14830fi
14831
14832if test "$wxUSE_RADIOBOX" = "yes"; then
14833 cat >> confdefs.h <<\EOF
14834#define wxUSE_RADIOBOX 1
14835EOF
14836
14837fi
14838
14839if test "$wxUSE_RADIOBTN" = "yes"; then
14840 cat >> confdefs.h <<\EOF
14841#define wxUSE_RADIOBTN 1
14842EOF
14843
14844fi
14845
14846if test "$wxUSE_SASH" = "yes"; then
14847 cat >> confdefs.h <<\EOF
14848#define wxUSE_SASH 1
14849EOF
14850
14851 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
14852fi
14853
14854if test "$wxUSE_SCROLLBAR" = "yes"; then
14855 cat >> confdefs.h <<\EOF
14856#define wxUSE_SCROLLBAR 1
14857EOF
14858
741a9306 14859 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
10f2d63a
VZ
14860fi
14861
14862if test "$wxUSE_SLIDER" = "yes"; then
14863 cat >> confdefs.h <<\EOF
14864#define wxUSE_SLIDER 1
14865EOF
14866
14867fi
14868
14869if test "$wxUSE_SPINBTN" = "yes"; then
14870 cat >> confdefs.h <<\EOF
14871#define wxUSE_SPINBTN 1
14872EOF
14873
14874fi
14875
56cfaa52
RR
14876if test "$wxUSE_SPINCTRL" = "yes"; then
14877 cat >> confdefs.h <<\EOF
14878#define wxUSE_SPINCTRL 1
14879EOF
14880
14881fi
14882
10f2d63a
VZ
14883if test "$wxUSE_SPLITTER" = "yes"; then
14884 cat >> confdefs.h <<\EOF
14885#define wxUSE_SPLITTER 1
14886EOF
14887
14888 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
14889fi
14890
14891if test "$wxUSE_STATBMP" = "yes"; then
14892 cat >> confdefs.h <<\EOF
14893#define wxUSE_STATBMP 1
14894EOF
14895
14896fi
14897
14898if test "$wxUSE_STATBOX" = "yes"; then
14899 cat >> confdefs.h <<\EOF
14900#define wxUSE_STATBOX 1
14901EOF
14902
14903fi
14904
14905if test "$wxUSE_STATLINE" = "yes"; then
14906 if test "$wxUSE_WINE" = 1 ; then
14907 echo "configure: warning: wxStaticLine is not supported under WINE" 1>&2
14908 else
14909 cat >> confdefs.h <<\EOF
14910#define wxUSE_STATLINE 1
14911EOF
14912
14913 fi
14914fi
14915
14916if test "$wxUSE_STATUSBAR" = "yes"; then
14917 cat >> confdefs.h <<\EOF
14918#define wxUSE_STATUSBAR 1
14919EOF
14920
2286341c
VZ
14921
14922 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
10f2d63a
VZ
14923fi
14924
14925if test "$wxUSE_TABDIALOG" = "yes"; then
14926 cat >> confdefs.h <<\EOF
14927#define wxUSE_TAB_DIALOG 1
14928EOF
14929
14930 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab"
14931fi
14932
360d6699
VZ
14933if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
14934 cat >> confdefs.h <<\EOF
14935#define wxUSE_TOOLBAR_SIMPLE 1
14936EOF
14937
14938 wxUSE_TOOLBAR="yes"
14939fi
14940
10f2d63a
VZ
14941if test "$wxUSE_TOOLBAR" = "yes"; then
14942 cat >> confdefs.h <<\EOF
14943#define wxUSE_TOOLBAR 1
14944EOF
14945
360d6699
VZ
14946
14947 if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
14948 wxUSE_TOOLBAR_NATIVE="yes"
14949 fi
14950
10f2d63a
VZ
14951 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
14952fi
14953
360d6699
VZ
14954if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
14955 cat >> confdefs.h <<\EOF
14956#define wxUSE_TOOLBAR_NATIVE 1
14957EOF
14958
14959fi
14960
10f2d63a
VZ
14961if test "$wxUSE_TOOLTIPS" = "yes"; then
14962 if test "$wxUSE_MOTIF" = 1; then
14963 echo "configure: warning: wxTooltip not supported yet under Motif" 1>&2
14964 else
14965 if test "$wxUSE_WINE" = 1; then
14966 echo "configure: warning: wxTooltip not supported under WINE" 1>&2
14967 else
14968 cat >> confdefs.h <<\EOF
14969#define wxUSE_TOOLTIPS 1
14970EOF
14971
14972 fi
14973 fi
14974fi
14975
14976if test "$wxUSE_TREECTRL" = "yes"; then
14977 if test "$wxUSE_IMAGLIST" = "yes"; then
14978 cat >> confdefs.h <<\EOF
14979#define wxUSE_TREECTRL 1
14980EOF
14981
14982 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
14983 else
14984 echo "configure: warning: wxTreeCtrl requires wxImageList and won't be compiled without it" 1>&2
14985 fi
14986fi
14987
14988
14989
14990if test "$wxUSE_METAFILE" = "yes"; then
14991 cat >> confdefs.h <<\EOF
14992#define wxUSE_METAFILE 1
14993EOF
14994
14995fi
14996
14997if test "$wxUSE_DIRDLG" = "yes"; then
14998 if test "$wxUSE_CONSTRAINTS" != "yes"; then
14999 echo "configure: warning: wxDirDialog requires constraints so it won't be compiled without them" 1>&2
15000 else
15001 if test "$wxUSE_TREECTRL" != "yes"; then
15002 echo "configure: warning: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" 1>&2
15003 else
15004 cat >> confdefs.h <<\EOF
15005#define wxUSE_DIRDLG 1
15006EOF
15007
15008 fi
15009 fi
15010fi
15011
15012if test "$wxUSE_TEXTDLG" = "yes"; then
15013 cat >> confdefs.h <<\EOF
15014#define wxUSE_TEXTDLG 1
15015EOF
15016
15017fi
15018
15019if test "$wxUSE_STARTUP_TIPS" = "yes"; then
15020 if test "$wxUSE_CONSTRAINTS" != "yes"; then
15021 echo "configure: warning: Startup tips requires constraints and won't be compiled without them" 1>&2
15022 else
15023 cat >> confdefs.h <<\EOF
15024#define wxUSE_STARTUP_TIPS 1
15025EOF
15026
15027 fi
15028fi
15029
15030if test "$wxUSE_PROGRESSDLG" = "yes"; then
15031 if test "$wxUSE_CONSTRAINTS" != "yes"; then
15032 echo "configure: warning: wxProgressDialog requires constraints so it won't be compiled without them" 1>&2
15033 else
15034 cat >> confdefs.h <<\EOF
15035#define wxUSE_PROGRESSDLG 1
15036EOF
15037
15038 fi
15039fi
15040
15041if test "$wxUSE_MINIFRAME" = "yes"; then
15042 cat >> confdefs.h <<\EOF
15043#define wxUSE_MINIFRAME 1
15044EOF
15045
15046 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
15047fi
15048
15049if test "$wxUSE_HTML" = "yes"; then
15050 cat >> confdefs.h <<\EOF
15051#define wxUSE_HTML 1
15052EOF
15053
15054 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html"
15055 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS html"
15056fi
15057
15058if test "$wxUSE_VALIDATORS" = "yes"; then
15059 cat >> confdefs.h <<\EOF
15060#define wxUSE_VALIDATORS 1
15061EOF
15062
15063 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
15064fi
15065
15066if test "$wxUSE_GIF" = "yes" ; then
15067 cat >> confdefs.h <<\EOF
15068#define wxUSE_GIF 1
15069EOF
15070
15071fi
15072
15073if test "$wxUSE_PCX" = "yes" ; then
15074 cat >> confdefs.h <<\EOF
15075#define wxUSE_PCX 1
15076EOF
15077
15078fi
15079
15080if test "$wxUSE_PNM" = "yes" ; then
15081 cat >> confdefs.h <<\EOF
15082#define wxUSE_PNM 1
15083EOF
15084
15085fi
15086
15087
32832908
VZ
15088if test "$cross_compiling" = "yes"; then
15089 OSINFO="\"$host\""
15090else
15091 OSINFO=`uname -s -r -m`
15092 OSINFO="\"$OSINFO\""
15093fi
15094
aaa37c0d
VZ
15095cat >> confdefs.h <<EOF
15096#define WXWIN_OS_DESCRIPTION $OSINFO
15097EOF
15098
15099
15100
f6bcfd97
BP
15101GUILIBS="$GUI_TK_LIBRARY $TOOLKIT_LINK"
15102OPENGL_LIBS="$OPENGL_LINK"
10f2d63a 15103
b4085ce6
GD
15104if test "$USE_MAC" = 1 ; then
15105 EXTRA_LIBS="$LIBS $POSIX4_LINK $INET_LINK $WCHAR_LINK $THREADS_LINK $DMALLOC_LINK $DL_LINK $ZLIB_LINK -framework System"
15106 CFLAGS="${CFLAGS} -fpascal-strings"
15107 CPPFLAGS="${CPPFLAGS} -fpascal-strings"
15108else
15109 EXTRA_LIBS="$LIBS $POSIX4_LINK $INET_LINK $WCHAR_LINK $THREADS_LINK $DMALLOC_LINK $DL_LINK $ZLIB_LINK -lm"
15110fi
10f2d63a 15111if test "$wxUSE_GUI" = "yes"; then
3fed1840 15112 EXTRA_LIBS="$GUILIBS $PNG_LINK $JPEG_LINK $TIFF_LINK $FREETYPE_LINK $EXTRA_LIBS"
10f2d63a
VZ
15113fi
15114
15115LD_LIBS="\${top_builddir}/lib/${WX_LIBRARY_NAME_STATIC} $EXTRA_LIBS"
15116
3fed1840 15117INCLUDES="-I. -I\${top_builddir}/include -I\${top_srcdir}/include $ZLIB_INCLUDE $PNG_INCLUDE $JPEG_INCLUDE $TIFF_INCLUDE $FREETYPE_INCLUDE $TOOLKIT_INCLUDE"
10f2d63a 15118
f6bcfd97
BP
15119if test "$wxUSE_GTK" = 1; then
15120 WXCONFIG_INCLUDE=""
15121else
15122 WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE"
15123fi
15124
10f2d63a
VZ
15125if test "$GXX" = yes ; then
15126 CXXWARNINGS="-Wall"
d6a55c4b 15127 fi
10f2d63a
VZ
15128EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE $INCLUDES"
15129
f6bcfd97 15130CFLAGS=`echo $CFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \\+/ /g'`
10f2d63a
VZ
15131CXXFLAGS=`echo $CXXFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \+/ /g'`
15132
e694c22c
VZ
15133LDFLAGS="$LDFLAGS $PROFILE"
15134
10f2d63a
VZ
15135if test "$wxUSE_GUI" = "yes"; then
15136
6164f93c
VZ
15137 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS controls dialogs dragimag \
15138 drawing dynamic event font fractal image menu \
15139 minimal richedit"
b12915c1 15140
88d3a15c 15141 CPPFLAGS="$CPPFLAGS \$(EXTRADEFS) \$(APPEXTRADEFS)"
10f2d63a
VZ
15142else
15143 SAMPLES_SUBDIRS=""
15144fi
15145
ec14dd32
VZ
15146SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
15147
15148
15149
10f2d63a
VZ
15150
15151
15152
15153
15154
15155
15156
15157
15158
15159
15160
15161
15162
15163
15164
15165
15166
15167
15168
15169
15170
15171
15172
15173
15174
15175
15176
15177
15178
15179
15180
15181
15182
15183
15184
15185
15186
15187
15188
15189
15190
15191
15192
15193
15194
15195
15196
15197
15198
15199
15200
15201
1d62a8b4 15202
bdad4e7e
RR
15203
15204
15205
15206
15207
15208
15209
32832908
VZ
15210
15211
15212
15213
15214
15215
15216
15217
15218
15219
15220
15221
15222
bdad4e7e
RR
15223
15224
15225
e694c22c 15226
b12915c1 15227
2224580a
VZ
15228
15229
15230
15231
dad6c0ea 15232
f6bcfd97
BP
15233
15234
15235
15236
dad6c0ea 15237
caa2c79b 15238
3711412e 15239
10f2d63a
VZ
15240
15241
15242echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
b4085ce6 15243echo "configure:15244: checking whether ${MAKE-make} sets \${MAKE}" >&5
10f2d63a
VZ
15244set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
15245if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
15246 echo $ac_n "(cached) $ac_c" 1>&6
15247else
15248 cat > conftestmake <<\EOF
15249all:
15250 @echo 'ac_maketemp="${MAKE}"'
15251EOF
15252# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
15253eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
15254if test -n "$ac_maketemp"; then
15255 eval ac_cv_prog_make_${ac_make}_set=yes
15256else
15257 eval ac_cv_prog_make_${ac_make}_set=no
15258fi
15259rm -f conftestmake
15260fi
15261if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
15262 echo "$ac_t""yes" 1>&6
15263 SET_MAKE=
15264else
15265 echo "$ac_t""no" 1>&6
15266 SET_MAKE="MAKE=${MAKE-make}"
15267fi
15268
15269
00cf1208
RR
15270if test -d include; then
15271 if test -d include/wx; then
15272 if test -d include/wx/${TOOLKIT_DIR}; then
15273 if test -f include/wx/${TOOLKIT_DIR}/setup.h; then
15274 mv -f include/wx/${TOOLKIT_DIR}/setup.h setup.h
15275 fi
15276 fi
15277 fi
15278fi
15279
10f2d63a
VZ
15280
15281
2224580a 15282if test "$wxUSE_GUI" = "yes"; then
ec90f5e5 15283 wx_cv_path_samplesubdirs=$SAMPLES_SUBDIRS
e8482f24
GL
15284 wx_cv_path_ifs=$PATH_IFS
15285 wx_cv_program_ext=$PROGRAM_EXT
15286 wx_cv_target_library=$WX_TARGET_LIBRARY
3711412e 15287 wx_cv_target_libtype=$WX_TARGET_LIBRARY_TYPE
e8482f24 15288 subdirs="demos samples utils contrib"
2224580a
VZ
15289
15290fi
10f2d63a
VZ
15291
15292trap '' 1 2 15
15293cat > confcache <<\EOF
15294# This file is a shell script that caches the results of configure
15295# tests run on this system so they can be shared between configure
15296# scripts and configure runs. It is not useful on other systems.
15297# If it contains results you don't want to keep, you may remove or edit it.
15298#
15299# By default, configure uses ./config.cache as the cache file,
15300# creating it if it does not exist already. You can give configure
15301# the --cache-file=FILE option to use a different cache file; that is
15302# what configure does when it calls configure scripts in
15303# subdirectories, so they share the cache.
15304# Giving --cache-file=/dev/null disables caching, for debugging configure.
15305# config.status only pays attention to the cache file if you give it the
15306# --recheck option to rerun configure.
15307#
15308EOF
15309# The following way of writing the cache mishandles newlines in values,
15310# but we know of no workaround that is simple, portable, and efficient.
15311# So, don't put newlines in cache variables' values.
15312# Ultrix sh set writes to stderr and can't be redirected directly,
15313# and sets the high bit in the cache file unless we assign to the vars.
15314(set) 2>&1 |
15315 case `(ac_space=' '; set | grep ac_space) 2>&1` in
15316 *ac_space=\ *)
15317 # `set' does not quote correctly, so add quotes (double-quote substitution
15318 # turns \\\\ into \\, and sed turns \\ into \).
15319 sed -n \
15320 -e "s/'/'\\\\''/g" \
15321 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
15322 ;;
15323 *)
15324 # `set' quotes correctly as required by POSIX, so do not add quotes.
15325 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
15326 ;;
15327 esac >> confcache
15328if cmp -s $cache_file confcache; then
15329 :
15330else
15331 if test -w $cache_file; then
15332 echo "updating cache $cache_file"
15333 cat confcache > $cache_file
15334 else
15335 echo "not updating unwritable cache $cache_file"
15336 fi
15337fi
15338rm -f confcache
15339
15340trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
15341
15342test "x$prefix" = xNONE && prefix=$ac_default_prefix
15343# Let make expand exec_prefix.
15344test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15345
15346# Any assignment to VPATH causes Sun make to only execute
15347# the first set of double-colon rules, so remove it if not needed.
15348# If there is a colon in the path, we need to keep it.
15349if test "x$srcdir" = x.; then
15350 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
15351fi
15352
15353trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
15354
15355DEFS=-DHAVE_CONFIG_H
15356
15357# Without the "./", some shells look in PATH for config.status.
15358: ${CONFIG_STATUS=./config.status}
15359
15360echo creating $CONFIG_STATUS
15361rm -f $CONFIG_STATUS
15362cat > $CONFIG_STATUS <<EOF
15363#! /bin/sh
15364# Generated automatically by configure.
15365# Run this file to recreate the current configuration.
15366# This directory was configured as follows,
15367# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15368#
15369# $0 $ac_configure_args
15370#
15371# Compiler output produced by configure, useful for debugging
15372# configure, is in ./config.log if it exists.
15373
15374ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
15375for ac_option
15376do
15377 case "\$ac_option" in
15378 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15379 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
15380 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
15381 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
e8482f24 15382 echo "$CONFIG_STATUS generated by autoconf version 2.13"
10f2d63a
VZ
15383 exit 0 ;;
15384 -help | --help | --hel | --he | --h)
15385 echo "\$ac_cs_usage"; exit 0 ;;
15386 *) echo "\$ac_cs_usage"; exit 1 ;;
15387 esac
15388done
15389
15390ac_given_srcdir=$srcdir
15391ac_given_INSTALL="$INSTALL"
15392
15393trap 'rm -fr `echo "
15394 wx-config
15395 src/make.env
15396 src/makeprog.env
15397 src/makelib.env
15398 Makefile
10f2d63a
VZ
15399 setup.h:setup.h.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
15400EOF
15401cat >> $CONFIG_STATUS <<EOF
15402
15403# Protect against being on the right side of a sed subst in config.status.
15404sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
15405 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
15406$ac_vpsub
15407$extrasub
15408s%@SHELL@%$SHELL%g
15409s%@CFLAGS@%$CFLAGS%g
15410s%@CPPFLAGS@%$CPPFLAGS%g
15411s%@CXXFLAGS@%$CXXFLAGS%g
15412s%@FFLAGS@%$FFLAGS%g
15413s%@DEFS@%$DEFS%g
15414s%@LDFLAGS@%$LDFLAGS%g
15415s%@LIBS@%$LIBS%g
15416s%@exec_prefix@%$exec_prefix%g
15417s%@prefix@%$prefix%g
15418s%@program_transform_name@%$program_transform_name%g
15419s%@bindir@%$bindir%g
15420s%@sbindir@%$sbindir%g
15421s%@libexecdir@%$libexecdir%g
15422s%@datadir@%$datadir%g
15423s%@sysconfdir@%$sysconfdir%g
15424s%@sharedstatedir@%$sharedstatedir%g
15425s%@localstatedir@%$localstatedir%g
15426s%@libdir@%$libdir%g
15427s%@includedir@%$includedir%g
15428s%@oldincludedir@%$oldincludedir%g
15429s%@infodir@%$infodir%g
15430s%@mandir@%$mandir%g
7c66a493
VZ
15431s%@host@%$host%g
15432s%@host_alias@%$host_alias%g
15433s%@host_cpu@%$host_cpu%g
15434s%@host_vendor@%$host_vendor%g
15435s%@host_os@%$host_os%g
15436s%@target@%$target%g
15437s%@target_alias@%$target_alias%g
15438s%@target_cpu@%$target_cpu%g
15439s%@target_vendor@%$target_vendor%g
15440s%@target_os@%$target_os%g
15441s%@build@%$build%g
15442s%@build_alias@%$build_alias%g
15443s%@build_cpu@%$build_cpu%g
15444s%@build_vendor@%$build_vendor%g
15445s%@build_os@%$build_os%g
10f2d63a
VZ
15446s%@CC@%$CC%g
15447s%@CPP@%$CPP%g
15448s%@CXX@%$CXX%g
15449s%@CXXCPP@%$CXXCPP%g
15450s%@RANLIB@%$RANLIB%g
15451s%@AR@%$AR%g
15452s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
15453s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
15454s%@INSTALL_DATA@%$INSTALL_DATA%g
15455s%@STRIP@%$STRIP%g
15456s%@YACC@%$YACC%g
15457s%@LEX@%$LEX%g
15458s%@LEXLIB@%$LEXLIB%g
15459s%@LN_S@%$LN_S%g
6f72b082 15460s%@GTK_CONFIG_2_0@%$GTK_CONFIG_2_0%g
10f2d63a
VZ
15461s%@GTK_CONFIG@%$GTK_CONFIG%g
15462s%@GTK_CFLAGS@%$GTK_CFLAGS%g
15463s%@GTK_LIBS@%$GTK_LIBS%g
ab9b9eab
VZ
15464s%@X_CFLAGS@%$X_CFLAGS%g
15465s%@X_PRE_LIBS@%$X_PRE_LIBS%g
15466s%@X_LIBS@%$X_LIBS%g
15467s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
ec14dd32
VZ
15468s%@LEX_STEM@%$LEX_STEM%g
15469s%@PATH_IFS@%$PATH_IFS%g
10f2d63a
VZ
15470s%@WX_MAJOR_VERSION_NUMBER@%$WX_MAJOR_VERSION_NUMBER%g
15471s%@WX_MINOR_VERSION_NUMBER@%$WX_MINOR_VERSION_NUMBER%g
15472s%@WX_RELEASE_NUMBER@%$WX_RELEASE_NUMBER%g
15473s%@WX_LIBRARY_NAME@%$WX_LIBRARY_NAME%g
15474s%@WX_LIBRARY_NAME_STATIC@%$WX_LIBRARY_NAME_STATIC%g
15475s%@WX_LIBRARY_NAME_SHARED@%$WX_LIBRARY_NAME_SHARED%g
15476s%@WX_LIBRARY@%$WX_LIBRARY%g
15477s%@WX_TARGET_LIBRARY@%$WX_TARGET_LIBRARY%g
15478s%@WX_LIBRARY_LINK1@%$WX_LIBRARY_LINK1%g
15479s%@WX_LIBRARY_LINK2@%$WX_LIBRARY_LINK2%g
15480s%@WX_LIBRARY_LINK3@%$WX_LIBRARY_LINK3%g
15481s%@PROGRAM_EXT@%$PROGRAM_EXT%g
bdad4e7e
RR
15482s%@WX_LIBRARY_NAME_GL@%$WX_LIBRARY_NAME_GL%g
15483s%@WX_LIBRARY_NAME_STATIC_GL@%$WX_LIBRARY_NAME_STATIC_GL%g
15484s%@WX_LIBRARY_NAME_SHARED_GL@%$WX_LIBRARY_NAME_SHARED_GL%g
15485s%@WX_LIBRARY_GL@%$WX_LIBRARY_GL%g
15486s%@WX_TARGET_LIBRARY_GL@%$WX_TARGET_LIBRARY_GL%g
15487s%@WX_LIBRARY_LINK1_GL@%$WX_LIBRARY_LINK1_GL%g
15488s%@WX_LIBRARY_LINK2_GL@%$WX_LIBRARY_LINK2_GL%g
15489s%@WX_LIBRARY_LINK3_GL@%$WX_LIBRARY_LINK3_GL%g
10f2d63a
VZ
15490s%@WX_ALL@%$WX_ALL%g
15491s%@WX_ALL_INSTALLED@%$WX_ALL_INSTALLED%g
15492s%@SHARED_LD@%$SHARED_LD%g
15493s%@PIC_FLAG@%$PIC_FLAG%g
15494s%@DEP_INFO_FLAGS@%$DEP_INFO_FLAGS%g
caa2c79b 15495s%@CODE_GEN_FLAGS@%$CODE_GEN_FLAGS%g
1d62a8b4 15496s%@BURNT_LIBRARY_NAME@%$BURNT_LIBRARY_NAME%g
bdad4e7e 15497s%@BURNT_LIBRARY_NAME_GL@%$BURNT_LIBRARY_NAME_GL%g
f6bcfd97 15498s%@WX_TARGET_LIBRARY_SONAME@%$WX_TARGET_LIBRARY_SONAME%g
3711412e 15499s%@WX_TARGET_LIBRARY_TYPE@%$WX_TARGET_LIBRARY_TYPE%g
10f2d63a 15500s%@WXDEBUG_DEFINE@%$WXDEBUG_DEFINE%g
dad6c0ea
VZ
15501s%@USE_GUI@%$USE_GUI%g
15502s%@AFMINSTALL@%$AFMINSTALL%g
10f2d63a
VZ
15503s%@TOOLKIT@%$TOOLKIT%g
15504s%@TOOLKIT_DEF@%$TOOLKIT_DEF%g
15505s%@TOOLKIT_DIR@%$TOOLKIT_DIR%g
f6bcfd97 15506s%@TOOLKIT_NAME@%$TOOLKIT_NAME%g
10f2d63a 15507s%@TOOLKIT_INCLUDE@%$TOOLKIT_INCLUDE%g
f6bcfd97 15508s%@WXCONFIG_INCLUDE@%$WXCONFIG_INCLUDE%g
10f2d63a
VZ
15509s%@GUIHEADERS@%$GUIHEADERS%g
15510s%@GUIOBJS@%$GUIOBJS%g
15511s%@COMMONOBJS@%$COMMONOBJS%g
15512s%@GENERICOBJS@%$GENERICOBJS%g
15513s%@GUIDEPS@%$GUIDEPS%g
15514s%@COMMONDEPS@%$COMMONDEPS%g
15515s%@GENERICDEPS@%$GENERICDEPS%g
15516s%@IODBCOBJS@%$IODBCOBJS%g
15517s%@UNIXOBJS@%$UNIXOBJS%g
15518s%@UNIXDEPS@%$UNIXDEPS%g
15519s%@ALL_OBJECTS@%$ALL_OBJECTS%g
15520s%@ALL_DEPFILES@%$ALL_DEPFILES%g
10f2d63a 15521s%@GUIDIST@%$GUIDIST%g
2224580a
VZ
15522s%@PORT_FILES@%$PORT_FILES%g
15523s%@DISTDIR@%$DISTDIR%g
15524s%@RPM_SPEC@%$RPM_SPEC%g
15525s%@RPM_FILES@%$RPM_FILES%g
10f2d63a
VZ
15526s%@SRC_SUBDIRS@%$SRC_SUBDIRS%g
15527s%@INCLUDE_SUBDIRS@%$INCLUDE_SUBDIRS%g
15528s%@UTILS_SUBDIRS@%$UTILS_SUBDIRS%g
15529s%@DOCS_SUBDIRS@%$DOCS_SUBDIRS%g
15530s%@SAMPLES_SUBDIRS@%$SAMPLES_SUBDIRS%g
15531s%@USER_SUBDIRS@%$USER_SUBDIRS%g
15532s%@EXTRA_LIBS@%$EXTRA_LIBS%g
f6bcfd97 15533s%@OPENGL_LIBS@%$OPENGL_LIBS%g
b12915c1 15534s%@EXTRADEFS@%$EXTRADEFS%g
10f2d63a 15535s%@LD_LIBS@%$LD_LIBS%g
32832908
VZ
15536s%@RCINPUTSWITCH@%$RCINPUTSWITCH%g
15537s%@RCOUTPUTSWITCH@%$RCOUTPUTSWITCH%g
15538s%@RESPROGRAM@%$RESPROGRAM%g
15539s%@RESCOMP@%$RESCOMP%g
15540s%@RESFLAGS@%$RESFLAGS%g
15541s%@DLLTOOL@%$DLLTOOL%g
15542s%@AS@%$AS%g
15543s%@NM@%$NM%g
15544s%@LD@%$LD%g
15545s%@MAKEINFO@%$MAKEINFO%g
10f2d63a 15546s%@SET_MAKE@%$SET_MAKE%g
2224580a 15547s%@subdirs@%$subdirs%g
10f2d63a
VZ
15548
15549CEOF
15550EOF
15551
15552cat >> $CONFIG_STATUS <<\EOF
15553
15554# Split the substitutions into bite-sized pieces for seds with
15555# small command number limits, like on Digital OSF/1 and HP-UX.
15556ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
15557ac_file=1 # Number of current file.
15558ac_beg=1 # First line for current file.
15559ac_end=$ac_max_sed_cmds # Line after last line for current file.
15560ac_more_lines=:
15561ac_sed_cmds=""
15562while $ac_more_lines; do
15563 if test $ac_beg -gt 1; then
15564 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
15565 else
15566 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
15567 fi
15568 if test ! -s conftest.s$ac_file; then
15569 ac_more_lines=false
15570 rm -f conftest.s$ac_file
15571 else
15572 if test -z "$ac_sed_cmds"; then
15573 ac_sed_cmds="sed -f conftest.s$ac_file"
15574 else
15575 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
15576 fi
15577 ac_file=`expr $ac_file + 1`
15578 ac_beg=$ac_end
15579 ac_end=`expr $ac_end + $ac_max_sed_cmds`
15580 fi
15581done
15582if test -z "$ac_sed_cmds"; then
15583 ac_sed_cmds=cat
15584fi
15585EOF
15586
15587cat >> $CONFIG_STATUS <<EOF
15588
15589CONFIG_FILES=\${CONFIG_FILES-"wx-config
15590 src/make.env
15591 src/makeprog.env
15592 src/makelib.env
15593 Makefile
10f2d63a
VZ
15594 "}
15595EOF
15596cat >> $CONFIG_STATUS <<\EOF
15597for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
15598 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
15599 case "$ac_file" in
15600 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
15601 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
15602 *) ac_file_in="${ac_file}.in" ;;
15603 esac
15604
15605 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
15606
15607 # Remove last slash and all that follows it. Not all systems have dirname.
15608 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
15609 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
15610 # The file is in a subdirectory.
15611 test ! -d "$ac_dir" && mkdir "$ac_dir"
15612 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
15613 # A "../" for each directory in $ac_dir_suffix.
15614 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
15615 else
15616 ac_dir_suffix= ac_dots=
15617 fi
15618
15619 case "$ac_given_srcdir" in
15620 .) srcdir=.
15621 if test -z "$ac_dots"; then top_srcdir=.
15622 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
15623 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
15624 *) # Relative path.
15625 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
15626 top_srcdir="$ac_dots$ac_given_srcdir" ;;
15627 esac
15628
15629 case "$ac_given_INSTALL" in
15630 [/$]*) INSTALL="$ac_given_INSTALL" ;;
15631 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
15632 esac
15633
15634 echo creating "$ac_file"
15635 rm -f "$ac_file"
15636 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
15637 case "$ac_file" in
15638 *Makefile*) ac_comsub="1i\\
15639# $configure_input" ;;
15640 *) ac_comsub= ;;
15641 esac
15642
15643 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
15644 sed -e "$ac_comsub
15645s%@configure_input@%$configure_input%g
15646s%@srcdir@%$srcdir%g
15647s%@top_srcdir@%$top_srcdir%g
15648s%@INSTALL@%$INSTALL%g
15649" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
15650fi; done
15651rm -f conftest.s*
15652
15653# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
15654# NAME is the cpp macro being defined and VALUE is the value it is being given.
15655#
15656# ac_d sets the value in "#define NAME VALUE" lines.
15657ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
15658ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
15659ac_dC='\3'
15660ac_dD='%g'
15661# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
15662ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
15663ac_uB='\([ ]\)%\1#\2define\3'
15664ac_uC=' '
15665ac_uD='\4%g'
15666# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
15667ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
15668ac_eB='$%\1#\2define\3'
15669ac_eC=' '
15670ac_eD='%g'
15671
15672if test "${CONFIG_HEADERS+set}" != set; then
15673EOF
15674cat >> $CONFIG_STATUS <<EOF
15675 CONFIG_HEADERS="setup.h:setup.h.in"
15676EOF
15677cat >> $CONFIG_STATUS <<\EOF
15678fi
15679for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
15680 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
15681 case "$ac_file" in
15682 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
15683 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
15684 *) ac_file_in="${ac_file}.in" ;;
15685 esac
15686
15687 echo creating $ac_file
15688
15689 rm -f conftest.frag conftest.in conftest.out
15690 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
15691 cat $ac_file_inputs > conftest.in
15692
15693EOF
15694
15695# Transform confdefs.h into a sed script conftest.vals that substitutes
15696# the proper values into config.h.in to produce config.h. And first:
15697# Protect against being on the right side of a sed subst in config.status.
15698# Protect against being in an unquoted here document in config.status.
15699rm -f conftest.vals
15700cat > conftest.hdr <<\EOF
15701s/[\\&%]/\\&/g
15702s%[\\$`]%\\&%g
15703s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
15704s%ac_d%ac_u%gp
15705s%ac_u%ac_e%gp
15706EOF
15707sed -n -f conftest.hdr confdefs.h > conftest.vals
15708rm -f conftest.hdr
15709
15710# This sed command replaces #undef with comments. This is necessary, for
15711# example, in the case of _POSIX_SOURCE, which is predefined and required
15712# on some systems where configure will not decide to define it.
15713cat >> conftest.vals <<\EOF
15714s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
15715EOF
15716
15717# Break up conftest.vals because some shells have a limit on
15718# the size of here documents, and old seds have small limits too.
15719
15720rm -f conftest.tail
15721while :
15722do
15723 ac_lines=`grep -c . conftest.vals`
15724 # grep -c gives empty output for an empty file on some AIX systems.
15725 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
15726 # Write a limited-size here document to conftest.frag.
15727 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
15728 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
15729 echo 'CEOF
15730 sed -f conftest.frag conftest.in > conftest.out
15731 rm -f conftest.in
15732 mv conftest.out conftest.in
15733' >> $CONFIG_STATUS
15734 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
15735 rm -f conftest.vals
15736 mv conftest.tail conftest.vals
15737done
15738rm -f conftest.vals
15739
15740cat >> $CONFIG_STATUS <<\EOF
15741 rm -f conftest.frag conftest.h
15742 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
15743 cat conftest.in >> conftest.h
15744 rm -f conftest.in
15745 if cmp -s $ac_file conftest.h 2>/dev/null; then
15746 echo "$ac_file is unchanged"
15747 rm -f conftest.h
15748 else
15749 # Remove last slash and all that follows it. Not all systems have dirname.
15750 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
15751 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
15752 # The file is in a subdirectory.
15753 test ! -d "$ac_dir" && mkdir "$ac_dir"
15754 fi
15755 rm -f $ac_file
15756 mv conftest.h $ac_file
15757 fi
15758fi; done
15759
15760EOF
15761cat >> $CONFIG_STATUS <<EOF
15762
15763 TOOLKIT_DIR="${TOOLKIT_DIR}"
f6bcfd97 15764 TOOLKIT_NAME="${TOOLKIT_NAME}"
07eb77a6 15765 LN_S="${LN_S}"
10f2d63a
VZ
15766
15767
15768EOF
15769cat >> $CONFIG_STATUS <<\EOF
15770
15771 chmod +x wx-config
f6bcfd97
BP
15772 mv wx-config wx${TOOLKIT_NAME}-config
15773 ${LN_S} wx${TOOLKIT_NAME}-config wx-config
00cf1208
RR
15774
15775
15776 if test ! -d lib; then
15777 mkdir lib
15778 fi
15779 if test ! -d lib/wx; then
15780 mkdir lib/wx
15781 fi
15782 if test ! -d lib/wx/include; then
15783 mkdir lib/wx/include
15784 fi
15785 if test ! -d lib/wx/include/wx; then
15786 mkdir lib/wx/include/wx
15787 fi
f6bcfd97
BP
15788 if test ! -d lib/wx/include/wx/${TOOLKIT_NAME}; then
15789 mkdir lib/wx/include/wx/${TOOLKIT_NAME}
00cf1208
RR
15790 fi
15791 if test -f setup.h; then
f6bcfd97 15792 cp -f setup.h lib/wx/include/wx/${TOOLKIT_NAME}/setup.h
00cf1208 15793 fi
07eb77a6 15794
00cf1208 15795
10f2d63a
VZ
15796 if test ! -d include; then
15797 mkdir include
15798 fi
15799 if test ! -d include/wx; then
15800 mkdir include/wx
15801 fi
15802 if test ! -d include/wx/${TOOLKIT_DIR}; then
15803 mkdir include/wx/${TOOLKIT_DIR}
15804 fi
afc31813
VZ
15805 if test -f setup.h; then
15806 mv -f setup.h include/wx/${TOOLKIT_DIR}/setup.h
15807 fi
00cf1208 15808
10f2d63a
VZ
15809
15810exit 0
15811EOF
15812chmod +x $CONFIG_STATUS
15813rm -fr confdefs* $ac_clean_files
15814test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
15815
2224580a
VZ
15816if test "$no_recursion" != yes; then
15817
15818 # Remove --cache-file and --srcdir arguments so they do not pile up.
15819 ac_sub_configure_args=
15820 ac_prev=
15821 for ac_arg in $ac_configure_args; do
15822 if test -n "$ac_prev"; then
15823 ac_prev=
15824 continue
15825 fi
15826 case "$ac_arg" in
15827 -cache-file | --cache-file | --cache-fil | --cache-fi \
15828 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
15829 ac_prev=cache_file ;;
15830 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
15831 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
15832 ;;
15833 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
15834 ac_prev=srcdir ;;
15835 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
15836 ;;
15837 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
15838 esac
15839 done
15840
e8482f24 15841 for ac_config_dir in demos samples utils contrib; do
2224580a
VZ
15842
15843 # Do not complain, so a configure script can configure whichever
15844 # parts of a large source tree are present.
15845 if test ! -d $srcdir/$ac_config_dir; then
15846 continue
15847 fi
15848
15849 echo configuring in $ac_config_dir
15850
15851 case "$srcdir" in
15852 .) ;;
15853 *)
15854 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
15855 else
15856 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
15857 fi
15858 ;;
15859 esac
15860
15861 ac_popdir=`pwd`
15862 cd $ac_config_dir
15863
15864 # A "../" for each directory in /$ac_config_dir.
15865 ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
15866
15867 case "$srcdir" in
15868 .) # No --srcdir option. We are building in place.
15869 ac_sub_srcdir=$srcdir ;;
15870 /*) # Absolute path.
15871 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
15872 *) # Relative path.
15873 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
15874 esac
15875
15876 # Check for guested configure; otherwise get Cygnus style configure.
15877 if test -f $ac_sub_srcdir/configure; then
15878 ac_sub_configure=$ac_sub_srcdir/configure
15879 elif test -f $ac_sub_srcdir/configure.in; then
15880 ac_sub_configure=$ac_configure
15881 else
15882 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
15883 ac_sub_configure=
15884 fi
15885
15886 # The recursion is here.
15887 if test -n "$ac_sub_configure"; then
15888
15889 # Make the cache file name correct relative to the subdirectory.
15890 case "$cache_file" in
15891 /*) ac_sub_cache_file=$cache_file ;;
15892 *) # Relative path.
15893 ac_sub_cache_file="$ac_dots$cache_file" ;;
15894 esac
15895 case "$ac_given_INSTALL" in
15896 [/$]*) INSTALL="$ac_given_INSTALL" ;;
15897 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
15898 esac
15899
15900 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
15901 # The eval makes quoting arguments work.
15902 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
15903 then :
15904 else
15905 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
15906 fi
15907 fi
15908
15909 cd $ac_popdir
15910 done
15911fi
15912
10f2d63a 15913