]> git.saurik.com Git - wxWidgets.git/blame - configure
fixed bug in Eof(), finally
[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
b64f0a5f
RL
198--enable-metafile use win32 metafiles"
199ac_help="$ac_help
10f2d63a
VZ
200--enable-wxtree make wxTree library"
201ac_help="$ac_help
202--enable-controls use all usual controls"
203ac_help="$ac_help
204--enable-accel use accelerators"
205ac_help="$ac_help
206--enable-caret use wxCaret class"
207ac_help="$ac_help
208--enable-bmpbutton use wxBitmapButton class"
209ac_help="$ac_help
210--enable-checkbox use wxCheckBox class"
211ac_help="$ac_help
212--enable-checklst use wxCheckListBox (listbox with checkboxes) class"
213ac_help="$ac_help
214--enable-choice use wxChoice class"
215ac_help="$ac_help
216--enable-combobox use wxComboBox classes"
217ac_help="$ac_help
218--enable-gauge use wxGauge class"
219ac_help="$ac_help
220--enable-grid use wxGrid class"
221ac_help="$ac_help
222--enable-newgrid use new wxGrid class"
223ac_help="$ac_help
224--enable-imaglist use wxImageList class"
225ac_help="$ac_help
226--enable-listbox use wxListBox class"
227ac_help="$ac_help
228--enable-listctrl use wxListCtrl class"
229ac_help="$ac_help
230--enable-notebook use wxNotebook class"
231ac_help="$ac_help
232--enable-radiobox use wxRadioBox class"
233ac_help="$ac_help
234--enable-radiobtn use wxRadioButton class"
235ac_help="$ac_help
236--enable-sash use wxSashWindow class"
237ac_help="$ac_help
238--enable-scrollbar use wxScrollBar class and scrollable windows"
239ac_help="$ac_help
240--enable-slider use wxSlider class"
241ac_help="$ac_help
242--enable-spinbtn use wxSpinButton class"
243ac_help="$ac_help
56cfaa52
RR
244--enable-spinctrl use wxSpinCtrl class"
245ac_help="$ac_help
10f2d63a
VZ
246--enable-splitter use wxSplitterWindow class"
247ac_help="$ac_help
248--enable-statbmp use wxStaticBitmap class"
249ac_help="$ac_help
250--enable-statbox use wxStaticBox class"
251ac_help="$ac_help
252--enable-statline use wxStaticLine class"
253ac_help="$ac_help
254--enable-statusbar use wxStatusBar class"
255ac_help="$ac_help
256--enable-tabdialog use wxTabControl class"
257ac_help="$ac_help
258--enable-toolbar use wxToolBar class"
259ac_help="$ac_help
360d6699
VZ
260--enable-tbarnative use native wxToolBar class"
261ac_help="$ac_help
262--enable-tbarsmpl use wxToolBarSimple class"
263ac_help="$ac_help
10f2d63a
VZ
264--enable-treectrl use wxTreeCtrl class"
265ac_help="$ac_help
266--enable-commondlg use common dialogs (wxDirDialog, wxProgressDialog, wxTextDialog, ...)"
267ac_help="$ac_help
268--enable-dirdlg use wxDirDialog"
269ac_help="$ac_help
270--enable-textdlg use wxTextDialog"
271ac_help="$ac_help
272--enable-tipdlg use startup tips"
273ac_help="$ac_help
274--enable-progressdlg use wxProgressDialog"
275ac_help="$ac_help
276--enable-miniframe use wxMiniFrame class"
277ac_help="$ac_help
278--enable-html use wxHTML sub-library"
279ac_help="$ac_help
280--enable-tooltips use wxToolTip class"
281ac_help="$ac_help
282--enable-splines use spline drawing code"
283ac_help="$ac_help
284--enable-validators use wxValidator and derived classes"
285ac_help="$ac_help
286--enable-busyinfo use wxBusyInfo"
287ac_help="$ac_help
f6bcfd97
BP
288--enable-joystick compile in joystick support (Linux only)"
289ac_help="$ac_help
10f2d63a
VZ
290--enable-gif use gif images (GIF file format)"
291ac_help="$ac_help
292--enable-pcx use pcx images (PCX file format)"
293ac_help="$ac_help
294--enable-pnm use pnm images (PNM file format)"
6f72b082
OK
295ac_help="$ac_help
296 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)"
297ac_help="$ac_help
298 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)"
299ac_help="$ac_help
300 --disable-gtktest Do not try to compile and run a test GTK program"
ab9b9eab
VZ
301ac_help="$ac_help
302 --with-x use the X Window System"
10f2d63a
VZ
303
304# Initialize some variables set by options.
305# The variables have the same names as the options, with
306# dashes changed to underlines.
307build=NONE
308cache_file=./config.cache
309exec_prefix=NONE
310host=NONE
311no_create=
312nonopt=NONE
313no_recursion=
314prefix=NONE
315program_prefix=NONE
316program_suffix=NONE
317program_transform_name=s,x,x,
318silent=
319site=
320srcdir=
321target=NONE
322verbose=
323x_includes=NONE
324x_libraries=NONE
325bindir='${exec_prefix}/bin'
326sbindir='${exec_prefix}/sbin'
327libexecdir='${exec_prefix}/libexec'
328datadir='${prefix}/share'
329sysconfdir='${prefix}/etc'
330sharedstatedir='${prefix}/com'
331localstatedir='${prefix}/var'
332libdir='${exec_prefix}/lib'
333includedir='${prefix}/include'
334oldincludedir='/usr/include'
335infodir='${prefix}/info'
336mandir='${prefix}/man'
337
338# Initialize some other variables.
339subdirs=
340MFLAGS= MAKEFLAGS=
341SHELL=${CONFIG_SHELL-/bin/sh}
342# Maximum number of lines to put in a shell here document.
343ac_max_here_lines=12
344
345ac_prev=
346for ac_option
347do
348
349 # If the previous option needs an argument, assign it.
350 if test -n "$ac_prev"; then
351 eval "$ac_prev=\$ac_option"
352 ac_prev=
353 continue
354 fi
355
356 case "$ac_option" in
357 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
358 *) ac_optarg= ;;
359 esac
360
361 # Accept the important Cygnus configure options, so we can diagnose typos.
362
363 case "$ac_option" in
364
365 -bindir | --bindir | --bindi | --bind | --bin | --bi)
366 ac_prev=bindir ;;
367 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
368 bindir="$ac_optarg" ;;
369
370 -build | --build | --buil | --bui | --bu)
371 ac_prev=build ;;
372 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
373 build="$ac_optarg" ;;
374
375 -cache-file | --cache-file | --cache-fil | --cache-fi \
376 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
377 ac_prev=cache_file ;;
378 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
379 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
380 cache_file="$ac_optarg" ;;
381
382 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
383 ac_prev=datadir ;;
384 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
385 | --da=*)
386 datadir="$ac_optarg" ;;
387
388 -disable-* | --disable-*)
389 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
390 # Reject names that are not valid shell variable names.
391 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
392 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
393 fi
394 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
395 eval "enable_${ac_feature}=no" ;;
396
397 -enable-* | --enable-*)
398 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
399 # Reject names that are not valid shell variable names.
400 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
401 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
402 fi
403 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
404 case "$ac_option" in
405 *=*) ;;
406 *) ac_optarg=yes ;;
407 esac
408 eval "enable_${ac_feature}='$ac_optarg'" ;;
409
410 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
411 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
412 | --exec | --exe | --ex)
413 ac_prev=exec_prefix ;;
414 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
415 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
416 | --exec=* | --exe=* | --ex=*)
417 exec_prefix="$ac_optarg" ;;
418
419 -gas | --gas | --ga | --g)
420 # Obsolete; use --with-gas.
421 with_gas=yes ;;
422
423 -help | --help | --hel | --he)
424 # Omit some internal or obsolete options to make the list less imposing.
425 # This message is too long to be a string in the A/UX 3.1 sh.
426 cat << EOF
427Usage: configure [options] [host]
428Options: [defaults in brackets after descriptions]
429Configuration:
430 --cache-file=FILE cache test results in FILE
431 --help print this message
432 --no-create do not create output files
433 --quiet, --silent do not print \`checking...' messages
434 --version print the version of autoconf that created configure
435Directory and file names:
436 --prefix=PREFIX install architecture-independent files in PREFIX
437 [$ac_default_prefix]
438 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
439 [same as prefix]
440 --bindir=DIR user executables in DIR [EPREFIX/bin]
441 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
442 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
443 --datadir=DIR read-only architecture-independent data in DIR
444 [PREFIX/share]
445 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
446 --sharedstatedir=DIR modifiable architecture-independent data in DIR
447 [PREFIX/com]
448 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
449 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
450 --includedir=DIR C header files in DIR [PREFIX/include]
451 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
452 --infodir=DIR info documentation in DIR [PREFIX/info]
453 --mandir=DIR man documentation in DIR [PREFIX/man]
454 --srcdir=DIR find the sources in DIR [configure dir or ..]
455 --program-prefix=PREFIX prepend PREFIX to installed program names
456 --program-suffix=SUFFIX append SUFFIX to installed program names
457 --program-transform-name=PROGRAM
458 run sed PROGRAM on installed program names
459EOF
460 cat << EOF
461Host type:
462 --build=BUILD configure for building on BUILD [BUILD=HOST]
463 --host=HOST configure for HOST [guessed]
464 --target=TARGET configure for TARGET [TARGET=HOST]
465Features and packages:
466 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
467 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
468 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
469 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
470 --x-includes=DIR X include files are in DIR
471 --x-libraries=DIR X library files are in DIR
472EOF
473 if test -n "$ac_help"; then
474 echo "--enable and --with options recognized:$ac_help"
475 fi
476 exit 0 ;;
477
478 -host | --host | --hos | --ho)
479 ac_prev=host ;;
480 -host=* | --host=* | --hos=* | --ho=*)
481 host="$ac_optarg" ;;
482
483 -includedir | --includedir | --includedi | --included | --include \
484 | --includ | --inclu | --incl | --inc)
485 ac_prev=includedir ;;
486 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
487 | --includ=* | --inclu=* | --incl=* | --inc=*)
488 includedir="$ac_optarg" ;;
489
490 -infodir | --infodir | --infodi | --infod | --info | --inf)
491 ac_prev=infodir ;;
492 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
493 infodir="$ac_optarg" ;;
494
495 -libdir | --libdir | --libdi | --libd)
496 ac_prev=libdir ;;
497 -libdir=* | --libdir=* | --libdi=* | --libd=*)
498 libdir="$ac_optarg" ;;
499
500 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
501 | --libexe | --libex | --libe)
502 ac_prev=libexecdir ;;
503 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
504 | --libexe=* | --libex=* | --libe=*)
505 libexecdir="$ac_optarg" ;;
506
507 -localstatedir | --localstatedir | --localstatedi | --localstated \
508 | --localstate | --localstat | --localsta | --localst \
509 | --locals | --local | --loca | --loc | --lo)
510 ac_prev=localstatedir ;;
511 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
512 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
513 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
514 localstatedir="$ac_optarg" ;;
515
516 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
517 ac_prev=mandir ;;
518 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
519 mandir="$ac_optarg" ;;
520
521 -nfp | --nfp | --nf)
522 # Obsolete; use --without-fp.
523 with_fp=no ;;
524
525 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
526 | --no-cr | --no-c)
527 no_create=yes ;;
528
529 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
530 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
531 no_recursion=yes ;;
532
533 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
534 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
535 | --oldin | --oldi | --old | --ol | --o)
536 ac_prev=oldincludedir ;;
537 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
538 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
539 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
540 oldincludedir="$ac_optarg" ;;
541
542 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
543 ac_prev=prefix ;;
544 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
545 prefix="$ac_optarg" ;;
546
547 -program-prefix | --program-prefix | --program-prefi | --program-pref \
548 | --program-pre | --program-pr | --program-p)
549 ac_prev=program_prefix ;;
550 -program-prefix=* | --program-prefix=* | --program-prefi=* \
551 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
552 program_prefix="$ac_optarg" ;;
553
554 -program-suffix | --program-suffix | --program-suffi | --program-suff \
555 | --program-suf | --program-su | --program-s)
556 ac_prev=program_suffix ;;
557 -program-suffix=* | --program-suffix=* | --program-suffi=* \
558 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
559 program_suffix="$ac_optarg" ;;
560
561 -program-transform-name | --program-transform-name \
562 | --program-transform-nam | --program-transform-na \
563 | --program-transform-n | --program-transform- \
564 | --program-transform | --program-transfor \
565 | --program-transfo | --program-transf \
566 | --program-trans | --program-tran \
567 | --progr-tra | --program-tr | --program-t)
568 ac_prev=program_transform_name ;;
569 -program-transform-name=* | --program-transform-name=* \
570 | --program-transform-nam=* | --program-transform-na=* \
571 | --program-transform-n=* | --program-transform-=* \
572 | --program-transform=* | --program-transfor=* \
573 | --program-transfo=* | --program-transf=* \
574 | --program-trans=* | --program-tran=* \
575 | --progr-tra=* | --program-tr=* | --program-t=*)
576 program_transform_name="$ac_optarg" ;;
577
578 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
579 | -silent | --silent | --silen | --sile | --sil)
580 silent=yes ;;
581
582 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
583 ac_prev=sbindir ;;
584 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
585 | --sbi=* | --sb=*)
586 sbindir="$ac_optarg" ;;
587
588 -sharedstatedir | --sharedstatedir | --sharedstatedi \
589 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
590 | --sharedst | --shareds | --shared | --share | --shar \
591 | --sha | --sh)
592 ac_prev=sharedstatedir ;;
593 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
594 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
595 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
596 | --sha=* | --sh=*)
597 sharedstatedir="$ac_optarg" ;;
598
599 -site | --site | --sit)
600 ac_prev=site ;;
601 -site=* | --site=* | --sit=*)
602 site="$ac_optarg" ;;
603
604 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
605 ac_prev=srcdir ;;
606 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
607 srcdir="$ac_optarg" ;;
608
609 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
610 | --syscon | --sysco | --sysc | --sys | --sy)
611 ac_prev=sysconfdir ;;
612 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
613 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
614 sysconfdir="$ac_optarg" ;;
615
616 -target | --target | --targe | --targ | --tar | --ta | --t)
617 ac_prev=target ;;
618 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
619 target="$ac_optarg" ;;
620
621 -v | -verbose | --verbose | --verbos | --verbo | --verb)
622 verbose=yes ;;
623
624 -version | --version | --versio | --versi | --vers)
e8482f24 625 echo "configure generated by autoconf version 2.13"
10f2d63a
VZ
626 exit 0 ;;
627
628 -with-* | --with-*)
629 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
630 # Reject names that are not valid shell variable names.
631 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
632 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
633 fi
634 ac_package=`echo $ac_package| sed 's/-/_/g'`
635 case "$ac_option" in
636 *=*) ;;
637 *) ac_optarg=yes ;;
638 esac
639 eval "with_${ac_package}='$ac_optarg'" ;;
640
641 -without-* | --without-*)
642 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
643 # Reject names that are not valid shell variable names.
644 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
645 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
646 fi
647 ac_package=`echo $ac_package| sed 's/-/_/g'`
648 eval "with_${ac_package}=no" ;;
649
650 --x)
651 # Obsolete; use --with-x.
652 with_x=yes ;;
653
654 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
655 | --x-incl | --x-inc | --x-in | --x-i)
656 ac_prev=x_includes ;;
657 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
658 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
659 x_includes="$ac_optarg" ;;
660
661 -x-libraries | --x-libraries | --x-librarie | --x-librari \
662 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
663 ac_prev=x_libraries ;;
664 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
665 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
666 x_libraries="$ac_optarg" ;;
667
668 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
669 ;;
670
671 *)
672 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
673 echo "configure: warning: $ac_option: invalid host type" 1>&2
674 fi
675 if test "x$nonopt" != xNONE; then
676 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
677 fi
678 nonopt="$ac_option"
679 ;;
680
681 esac
682done
683
684if test -n "$ac_prev"; then
685 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
686fi
687
688trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
689
690# File descriptor usage:
691# 0 standard input
692# 1 file creation
693# 2 errors and warnings
694# 3 some systems may open it to /dev/tty
695# 4 used on the Kubota Titan
696# 6 checking for... messages and results
697# 5 compiler messages saved in config.log
698if test "$silent" = yes; then
699 exec 6>/dev/null
700else
701 exec 6>&1
702fi
703exec 5>./config.log
704
705echo "\
706This file contains any messages produced by compilers while
707running configure, to aid debugging if configure makes a mistake.
708" 1>&5
709
710# Strip out --no-create and --no-recursion so they do not pile up.
711# Also quote any args containing shell metacharacters.
712ac_configure_args=
713for ac_arg
714do
715 case "$ac_arg" in
716 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
717 | --no-cr | --no-c) ;;
718 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
719 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
720 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
721 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
722 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
723 esac
724done
725
726# NLS nuisances.
727# Only set these to C if already set. These must not be set unconditionally
728# because not all systems understand e.g. LANG=C (notably SCO).
729# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
730# Non-C LC_CTYPE values break the ctype check.
731if test "${LANG+set}" = set; then LANG=C; export LANG; fi
732if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
733if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
734if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
735
736# confdefs.h avoids OS command line length limits that DEFS can exceed.
737rm -rf conftest* confdefs.h
738# AIX cpp loses on an empty file, so make sure it contains at least a newline.
739echo > confdefs.h
740
741# A filename unique to this package, relative to the directory that
742# configure is in, which we can look for to find out if srcdir is correct.
743ac_unique_file=wx-config.in
744
745# Find the source files, if location was not specified.
746if test -z "$srcdir"; then
747 ac_srcdir_defaulted=yes
748 # Try the directory containing this script, then its parent.
749 ac_prog=$0
750 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
751 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
752 srcdir=$ac_confdir
753 if test ! -r $srcdir/$ac_unique_file; then
754 srcdir=..
755 fi
756else
757 ac_srcdir_defaulted=no
758fi
759if test ! -r $srcdir/$ac_unique_file; then
760 if test "$ac_srcdir_defaulted" = yes; then
761 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
762 else
763 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
764 fi
765fi
766srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
767
768# Prefer explicitly selected file to automatically selected ones.
769if test -z "$CONFIG_SITE"; then
770 if test "x$prefix" != xNONE; then
771 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
772 else
773 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
774 fi
775fi
776for ac_site_file in $CONFIG_SITE; do
777 if test -r "$ac_site_file"; then
778 echo "loading site script $ac_site_file"
779 . "$ac_site_file"
780 fi
781done
782
783if test -r "$cache_file"; then
784 echo "loading cache $cache_file"
785 . $cache_file
786else
787 echo "creating cache $cache_file"
788 > $cache_file
789fi
790
791ac_ext=c
792# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
793ac_cpp='$CPP $CPPFLAGS'
794ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
795ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
796cross_compiling=$ac_cv_prog_cc_cross
797
798ac_exeext=
799ac_objext=o
800if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
801 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
802 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
803 ac_n= ac_c='
804' ac_t=' '
805 else
806 ac_n=-n ac_c= ac_t=
807 fi
808else
809 ac_n= ac_c='\c' ac_t=
810fi
811
812
813
7c66a493
VZ
814ac_aux_dir=
815for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
816 if test -f $ac_dir/install-sh; then
817 ac_aux_dir=$ac_dir
818 ac_install_sh="$ac_aux_dir/install-sh -c"
819 break
820 elif test -f $ac_dir/install.sh; then
821 ac_aux_dir=$ac_dir
822 ac_install_sh="$ac_aux_dir/install.sh -c"
823 break
824 fi
825done
826if test -z "$ac_aux_dir"; then
827 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
828fi
829ac_config_guess=$ac_aux_dir/config.guess
830ac_config_sub=$ac_aux_dir/config.sub
831ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
832
833
834# Do some error checking and defaulting for the host and target type.
835# The inputs are:
836# configure --host=HOST --target=TARGET --build=BUILD NONOPT
837#
838# The rules are:
839# 1. You are not allowed to specify --host, --target, and nonopt at the
840# same time.
841# 2. Host defaults to nonopt.
842# 3. If nonopt is not specified, then host defaults to the current host,
843# as determined by config.guess.
844# 4. Target and build default to nonopt.
845# 5. If nonopt is not specified, then target and build default to host.
846
847# The aliases save the names the user supplied, while $host etc.
848# will get canonicalized.
849case $host---$target---$nonopt in
850NONE---*---* | *---NONE---* | *---*---NONE) ;;
851*) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
852esac
853
854
855# Make sure we can run config.sub.
856if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
857else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
858fi
859
860echo $ac_n "checking host system type""... $ac_c" 1>&6
b64f0a5f 861echo "configure:862: checking host system type" >&5
7c66a493
VZ
862
863host_alias=$host
864case "$host_alias" in
865NONE)
866 case $nonopt in
867 NONE)
868 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
869 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
870 fi ;;
871 *) host_alias=$nonopt ;;
872 esac ;;
873esac
874
875host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
876host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
877host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
878host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
879echo "$ac_t""$host" 1>&6
880
881echo $ac_n "checking target system type""... $ac_c" 1>&6
b64f0a5f 882echo "configure:883: checking target system type" >&5
7c66a493
VZ
883
884target_alias=$target
885case "$target_alias" in
886NONE)
887 case $nonopt in
888 NONE) target_alias=$host_alias ;;
889 *) target_alias=$nonopt ;;
890 esac ;;
891esac
892
893target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
894target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
895target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
896target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
897echo "$ac_t""$target" 1>&6
898
899echo $ac_n "checking build system type""... $ac_c" 1>&6
b64f0a5f 900echo "configure:901: checking build system type" >&5
7c66a493
VZ
901
902build_alias=$build
903case "$build_alias" in
904NONE)
905 case $nonopt in
906 NONE) build_alias=$host_alias ;;
907 *) build_alias=$nonopt ;;
908 esac ;;
909esac
910
911build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
912build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
913build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
914build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
915echo "$ac_t""$build" 1>&6
916
917test "$host_alias" != "$target_alias" &&
918 test "$program_prefix$program_suffix$program_transform_name" = \
919 NONENONEs,x,x, &&
920 program_prefix=${target_alias}-
921
922
10f2d63a
VZ
923
924WX_MAJOR_VERSION_NUMBER=2
37d403aa 925WX_MINOR_VERSION_NUMBER=3
f6bcfd97 926WX_RELEASE_NUMBER=0
10f2d63a
VZ
927
928WX_INTERFACE_AGE=0
e8f65ba6 929WX_BINARY_AGE=0
10f2d63a
VZ
930
931WX_VERSION=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER.$WX_RELEASE_NUMBER
932
933WX_RELEASE=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER
934WX_CURRENT=`expr $WX_RELEASE_NUMBER - $WX_INTERFACE_AGE`
935WX_REVISION=$WX_INTERFACE_AGE
936WX_AGE=`expr $WX_BINARY_AGE - $WX_INTERFACE_AGE`
937
938
939USE_UNIX=1
940USE_WIN32=0
b12915c1
VZ
941USE_BEOS=0
942
10f2d63a
VZ
943USE_LINUX=
944USE_SGI=
945USE_HPUX=
946USE_SYSV=
947USE_SVR4=
948USE_AIX=
949USE_SUN=
950USE_SOLARIS=
951USE_SUNOS=
952USE_ALPHA=
953USE_OSF=
954USE_BSD=
955USE_FREEBSD=
f6bcfd97 956USE_NETBSD=
10f2d63a
VZ
957USE_VMS=
958USE_ULTRIX=
959USE_CYGWIN=
960USE_MINGW=
961USE_DATA_GENERAL=
962
ab9b9eab
VZ
963NEEDS_D_REENTRANT_FOR_R_FUNCS=0
964
b4085ce6 965ALL_TOOLKITS="CYGWIN GTK MINGW MOTIF MAC WINE PM"
10f2d63a
VZ
966
967DEFAULT_wxUSE_GTK=0
968DEFAULT_wxUSE_MOTIF=0
969DEFAULT_wxUSE_MSW=0
b4085ce6 970DEFAULT_wxUSE_MAC=0
10f2d63a 971DEFAULT_wxUSE_WINE=0
e07802fc 972DEFAULT_wxUSE_PM=0
10f2d63a
VZ
973
974DEFAULT_DEFAULT_wxUSE_GTK=0
975DEFAULT_DEFAULT_wxUSE_MOTIF=0
976DEFAULT_DEFAULT_wxUSE_MSW=0
b4085ce6 977DEFAULT_DEFAULT_wxUSE_MAC=0
10f2d63a 978DEFAULT_DEFAULT_wxUSE_WINE=0
e07802fc 979DEFAULT_DEFAULT_wxUSE_PM=0
10f2d63a 980
d6a55c4b
VZ
981PROGRAM_EXT=
982
10f2d63a
VZ
983case "${host}" in
984 *-hp-hpux* )
985 USE_HPUX=1
986 DEFAULT_DEFAULT_wxUSE_MOTIF=1
ab9b9eab 987 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
10f2d63a
VZ
988 cat >> confdefs.h <<\EOF
989#define __HPUX__ 1
990EOF
991
992 ;;
993 *-*-linux* )
994 USE_LINUX=1
995 cat >> confdefs.h <<\EOF
996#define __LINUX__ 1
997EOF
998
999 TMP=`uname -m`
1000 if test "x$TMP" = "xalpha"; then
1001 USE_ALPHA=1
1002 cat >> confdefs.h <<\EOF
1003#define __ALPHA__ 1
1004EOF
1005
1006 fi
1007 DEFAULT_DEFAULT_wxUSE_GTK=1
1008 ;;
1009 *-*-irix5* | *-*-irix6* )
1010 USE_SGI=1
1011 USE_SVR4=1
1012 cat >> confdefs.h <<\EOF
1013#define __SGI__ 1
1014EOF
1015
1016 cat >> confdefs.h <<\EOF
1017#define __SVR4__ 1
1018EOF
1019
1020 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1021 ;;
1022 *-*-solaris2* )
1023 USE_SUN=1
1024 USE_SOLARIS=1
1025 USE_SVR4=1
1026 cat >> confdefs.h <<\EOF
1027#define __SUN__ 1
1028EOF
1029
1030 cat >> confdefs.h <<\EOF
1031#define __SOLARIS__ 1
1032EOF
1033
1034 cat >> confdefs.h <<\EOF
1035#define __SVR4__ 1
1036EOF
1037
1038 DEFAULT_DEFAULT_wxUSE_MOTIF=1
ab9b9eab 1039 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
10f2d63a
VZ
1040 ;;
1041 *-*-sunos4* )
1042 USE_SUN=1
1043 USE_SUNOS=1
1044 USE_BSD=1
1045 cat >> confdefs.h <<\EOF
1046#define __SUN__ 1
1047EOF
1048
1049 cat >> confdefs.h <<\EOF
1050#define __SUNOS__ 1
1051EOF
1052
1053 cat >> confdefs.h <<\EOF
1054#define __BSD__ 1
1055EOF
1056
1057 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1058 ;;
f6bcfd97 1059 *-*-freebsd*)
10f2d63a
VZ
1060 USE_BSD=1
1061 USE_FREEBSD=1
1062 cat >> confdefs.h <<\EOF
1063#define __FREEBSD__ 1
1064EOF
1065
1066 cat >> confdefs.h <<\EOF
1067#define __BSD__ 1
f6bcfd97
BP
1068EOF
1069
1070 DEFAULT_DEFAULT_wxUSE_GTK=1
1071 ;;
1072 *-*-netbsd*)
1073 USE_BSD=1
1074 USE_NETBSD=1
1075 cat >> confdefs.h <<\EOF
1076#define __FREEBSD__ 1
1077EOF
1078
1079 cat >> confdefs.h <<\EOF
1080#define __NETBSD__ 1
10f2d63a
VZ
1081EOF
1082
1083 DEFAULT_DEFAULT_wxUSE_GTK=1
1084 ;;
1085 *-*-osf* )
1086 USE_ALPHA=1
1087 USE_OSF=1
1088 cat >> confdefs.h <<\EOF
1089#define __ALPHA__ 1
1090EOF
1091
1092 cat >> confdefs.h <<\EOF
1093#define __OSF__ 1
1094EOF
1095
1096 DEFAULT_DEFAULT_wxUSE_MOTIF=1
f6bcfd97 1097 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
10f2d63a
VZ
1098 ;;
1099 *-*-dgux5* )
1100 USE_ALPHA=1
1101 USE_SVR4=1
1102 cat >> confdefs.h <<\EOF
1103#define __ALPHA__ 1
1104EOF
1105
1106 cat >> confdefs.h <<\EOF
1107#define __SVR4__ 1
1108EOF
1109
1110 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1111 ;;
1112 *-*-sysv5* )
1113 USE_SYSV=1
1114 USE_SVR4=1
1115 cat >> confdefs.h <<\EOF
1116#define __SYSV__ 1
1117EOF
1118
1119 cat >> confdefs.h <<\EOF
1120#define __SVR4__ 1
1121EOF
1122
1123 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1124 ;;
1125 *-*-aix* )
1126 USE_AIX=1
1127 USE_SYSV=1
1128 USE_SVR4=1
1129 cat >> confdefs.h <<\EOF
1130#define __AIX__ 1
1131EOF
1132
1133 cat >> confdefs.h <<\EOF
1134#define __SYSV__ 1
1135EOF
1136
1137 cat >> confdefs.h <<\EOF
1138#define __SVR4__ 1
1139EOF
1140
1141 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1142 ;;
1143
7eef8db2 1144 *-*-cygwin32* | *-*-mingw32* )
10f2d63a
VZ
1145 USE_UNIX=0
1146 USE_WIN32=1
1147 cat >> confdefs.h <<\EOF
1148#define __WIN32__ 1
1149EOF
1150
1151 cat >> confdefs.h <<\EOF
1152#define __WIN95__ 1
1153EOF
1154
1155 cat >> confdefs.h <<\EOF
1156#define __WINDOWS__ 1
1157EOF
1158
1159 cat >> confdefs.h <<\EOF
1160#define __GNUWIN32__ 1
1161EOF
1162
1163 cat >> confdefs.h <<\EOF
1164#define STRICT 1
1165EOF
1166
1167 cat >> confdefs.h <<\EOF
1168#define WINVER 0x0400
1169EOF
1170
cf27ef00 1171 PROGRAM_EXT=".exe"
10f2d63a
VZ
1172 DEFAULT_DEFAULT_wxUSE_MSW=1
1173 ;;
1174
1175 *-pc-os2_emx )
1176 cat >> confdefs.h <<\EOF
1177#define __EMX__ 1
1178EOF
1179
cf27ef00 1180 PROGRAM_EXT=".exe"
e07802fc 1181 DEFAULT_DEFAULT_wxUSE_PM=1
10f2d63a
VZ
1182 ;;
1183
b4085ce6
GD
1184 *-*-darwin* )
1185 USE_BSD=1
1186 USE_MAC=1
1187 cat >> confdefs.h <<\EOF
1188#define __MAC__ 1
1189EOF
1190
1191 cat >> confdefs.h <<\EOF
1192#define __BSD__ 1
1193EOF
1194
1195 cat >> confdefs.h <<\EOF
1196#define __UNIX__ 1
1197EOF
1198
1199 DEFAULT_DEFAULT_wxUSE_MAC=1
1200 ;;
1201
b12915c1
VZ
1202 *-*-beos* )
1203 USE_BEOS=1
1204 cat >> confdefs.h <<\EOF
1205#define __BEOS__ 1
1206EOF
1207
1208 ;;
1209
10f2d63a
VZ
1210 *)
1211 { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; }
1212esac
1213
1214if test "$USE_UNIX" = 1 ; then
b12915c1
VZ
1215 wxUSE_UNIX=yes
1216 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1217#define __UNIX__ 1
1218EOF
1219
b12915c1
VZ
1220
1221 SRC_SUBDIRS="$SRC_SUBDIRS unix"
1222 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS unix"
1223fi
1224
1225if test "$USE_BEOS" = 1; then
1226 SRC_SUBDIRS="$SRC_SUBDIRS be"
1227 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS be"
10f2d63a
VZ
1228fi
1229
1230if test "$USE_LINUX" = 1; then
1231 echo $ac_n "checking for gettext in -lc""... $ac_c" 1>&6
b64f0a5f 1232echo "configure:1233: checking for gettext in -lc" >&5
10f2d63a
VZ
1233ac_lib_var=`echo c'_'gettext | sed 'y%./+-%__p_%'`
1234if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1235 echo $ac_n "(cached) $ac_c" 1>&6
1236else
1237 ac_save_LIBS="$LIBS"
1238LIBS="-lc $LIBS"
1239cat > conftest.$ac_ext <<EOF
b64f0a5f 1240#line 1241 "configure"
10f2d63a
VZ
1241#include "confdefs.h"
1242/* Override any gcc2 internal prototype to avoid an error. */
1243/* We use char because int might match the return type of a gcc2
1244 builtin and then its argument prototype would still apply. */
1245char gettext();
1246
1247int main() {
1248gettext()
1249; return 0; }
1250EOF
b64f0a5f 1251if { (eval echo configure:1252: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
1252 rm -rf conftest*
1253 eval "ac_cv_lib_$ac_lib_var=yes"
1254else
1255 echo "configure: failed program was:" >&5
1256 cat conftest.$ac_ext >&5
1257 rm -rf conftest*
1258 eval "ac_cv_lib_$ac_lib_var=no"
1259fi
1260rm -f conftest*
1261LIBS="$ac_save_LIBS"
1262
1263fi
1264if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1265 echo "$ac_t""yes" 1>&6
1266 cat >> confdefs.h <<\EOF
1267#define wxHAVE_GLIBC2 1
1268EOF
1269
1270else
1271 echo "$ac_t""no" 1>&6
1272fi
1273
1274fi
1275
1276
1277
1278
1279 wx_arg_cache_file="configarg.cache"
1280 echo "loading argument cache $wx_arg_cache_file"
1281 rm -f ${wx_arg_cache_file}.tmp
1282 touch ${wx_arg_cache_file}.tmp
1283 touch ${wx_arg_cache_file}
1284
1285
1286DEBUG_CONFIGURE=0
1287if test $DEBUG_CONFIGURE = 1; then
1288 DEFAULT_wxUSE_THREADS=yes
1289
1290 DEFAULT_wxUSE_SHARED=yes
00cf1208 1291 DEFAULT_wxUSE_BURNT_NAME=no
10f2d63a
VZ
1292 DEFAULT_wxUSE_OPTIMISE=yes
1293 DEFAULT_wxUSE_PROFILE=no
1294 DEFAULT_wxUSE_NO_DEPS=no
1295 DEFAULT_wxUSE_NO_RTTI=no
1296 DEFAULT_wxUSE_NO_EXCEPTIONS=no
1297 DEFAULT_wxUSE_PERMISSIVE=no
1298 DEFAULT_wxUSE_DEBUG_FLAG=yes
1299 DEFAULT_wxUSE_DEBUG_INFO=yes
1300 DEFAULT_wxUSE_DEBUG_GDB=yes
1301 DEFAULT_wxUSE_MEM_TRACING=no
1302 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1303 DEFAULT_wxUSE_DMALLOC=no
1304 DEFAULT_wxUSE_APPLE_IEEE=no
1305
1306 DEFAULT_wxUSE_LOG=yes
1307
1308 DEFAULT_wxUSE_GUI=yes
1309
1310 DEFAULT_wxUSE_ZLIB=no
1311 DEFAULT_wxUSE_LIBPNG=no
1312 DEFAULT_wxUSE_LIBJPEG=no
c7a2bf27 1313 DEFAULT_wxUSE_LIBTIFF=no
10f2d63a 1314 DEFAULT_wxUSE_ODBC=no
3fed1840 1315 DEFAULT_wxUSE_FREETYPE=no
bdad4e7e 1316 DEFAULT_wxUSE_OPENGL=no
10f2d63a 1317
eb4efbdc 1318 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no
10f2d63a
VZ
1319 DEFAULT_wxUSE_STD_IOSTREAM=no
1320 DEFAULT_wxUSE_FILE=no
1321 DEFAULT_wxUSE_TEXTFILE=no
1322 DEFAULT_wxUSE_TIMEDATE=no
1323 DEFAULT_wxUSE_WAVE=no
1324 DEFAULT_wxUSE_INTL=no
1325 DEFAULT_wxUSE_CONFIG=no
1326 DEFAULT_wxUSE_STREAMS=no
1327 DEFAULT_wxUSE_SOCKETS=no
1328 DEFAULT_wxUSE_DIALUP_MANAGER=no
1329 DEFAULT_wxUSE_SERIAL=no
1330 DEFAULT_wxUSE_JOYSTICK=no
1331 DEFAULT_wxUSE_DYNLIB_CLASS=no
1332 DEFAULT_wxUSE_LONGLONG=no
e8f65ba6 1333 DEFAULT_wxUSE_GEOMETRY=no
10f2d63a
VZ
1334
1335 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
1336 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
1337 DEFAULT_wxUSE_POSTSCRIPT=no
1338
1339 DEFAULT_wxUSE_X_RESOURCES=no
1340 DEFAULT_wxUSE_CLIPBOARD=no
1341 DEFAULT_wxUSE_TOOLTIPS=no
1342 DEFAULT_wxUSE_DRAG_AND_DROP=no
1343 DEFAULT_wxUSE_SPLINES=no
1344
1345 DEFAULT_wxUSE_MDI_ARCHITECTURE=no
1346 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
1347 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
1348
1349 DEFAULT_wxUSE_PROLOGIO=no
1350 DEFAULT_wxUSE_RESOURCES=no
1351 DEFAULT_wxUSE_CONSTRAINTS=no
1352 DEFAULT_wxUSE_IPC=no
1353 DEFAULT_wxUSE_HELP=no
1354 DEFAULT_wxUSE_WXTREE=no
1355 DEFAULT_wxUSE_METAFILE=no
1356
1357 DEFAULT_wxUSE_COMMONDLGS=no
1358 DEFAULT_wxUSE_DIRDLG=no
1359 DEFAULT_wxUSE_TEXTDLG=no
1360 DEFAULT_wxUSE_STARTUP_TIPS=no
1361 DEFAULT_wxUSE_PROGRESSDLG=no
1362 DEFAULT_wxUSE_MINIFRAME=no
1363 DEFAULT_wxUSE_HTML=no
24528b0c 1364 DEFAULT_wxUSE_FILESYSTEM=no
10f2d63a
VZ
1365 DEFAULT_wxUSE_FS_INET=no
1366 DEFAULT_wxUSE_FS_ZIP=no
1367 DEFAULT_wxUSE_BUSYINFO=no
1368 DEFAULT_wxUSE_ZIPSTREAM=no
1369 DEFAULT_wxUSE_VALIDATORS=yes
1370
1371 DEFAULT_wxUSE_ACCEL=no
1372 DEFAULT_wxUSE_CARET=no
1373 DEFAULT_wxUSE_BMPBUTTON=no
1374 DEFAULT_wxUSE_CHECKBOX=no
1375 DEFAULT_wxUSE_CHECKLST=no
1376 DEFAULT_wxUSE_CHOICE=yes
1377 DEFAULT_wxUSE_COMBOBOX=no
1378 DEFAULT_wxUSE_GAUGE=no
1379 DEFAULT_wxUSE_GRID=no
1380 DEFAULT_wxUSE_NEW_GRID=no
1381 DEFAULT_wxUSE_IMAGLIST=no
1382 DEFAULT_wxUSE_LISTBOX=no
1383 DEFAULT_wxUSE_LISTCTRL=no
1384 DEFAULT_wxUSE_NOTEBOOK=no
1385 DEFAULT_wxUSE_RADIOBOX=no
1386 DEFAULT_wxUSE_RADIOBTN=no
1387 DEFAULT_wxUSE_SASH=no
1388 DEFAULT_wxUSE_SCROLLBAR=no
1389 DEFAULT_wxUSE_SLIDER=no
1390 DEFAULT_wxUSE_SPINBTN=no
56cfaa52 1391 DEFAULT_wxUSE_SPINCTRL=no
10f2d63a
VZ
1392 DEFAULT_wxUSE_SPLITTER=no
1393 DEFAULT_wxUSE_STATBMP=no
1394 DEFAULT_wxUSE_STATBOX=no
1395 DEFAULT_wxUSE_STATLINE=no
1396 DEFAULT_wxUSE_STATUSBAR=yes
1397 DEFAULT_wxUSE_TABDIALOG=no
1398 DEFAULT_wxUSE_TOOLBAR=no
360d6699
VZ
1399 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
1400 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
10f2d63a
VZ
1401 DEFAULT_wxUSE_TREECTRL=no
1402
1403 DEFAULT_wxUSE_UNICODE=no
1404 DEFAULT_wxUSE_WCSRTOMBS=no
1405
1406 DEFAULT_wxUSE_GIF=no
1407 DEFAULT_wxUSE_PCX=no
1408 DEFAULT_wxUSE_PNM=no
1409else
1410 DEFAULT_wxUSE_THREADS=yes
1411
1412 DEFAULT_wxUSE_SHARED=yes
00cf1208 1413 DEFAULT_wxUSE_BURNT_NAME=no
10f2d63a
VZ
1414 DEFAULT_wxUSE_OPTIMISE=yes
1415 DEFAULT_wxUSE_PROFILE=no
1416 DEFAULT_wxUSE_NO_DEPS=no
1417 DEFAULT_wxUSE_NO_RTTI=no
1418 DEFAULT_wxUSE_NO_EXCEPTIONS=no
1419 DEFAULT_wxUSE_PERMISSIVE=no
1420 DEFAULT_wxUSE_DEBUG_FLAG=no
1421 DEFAULT_wxUSE_DEBUG_INFO=no
1422 DEFAULT_wxUSE_DEBUG_GDB=no
1423 DEFAULT_wxUSE_MEM_TRACING=no
1424 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1425 DEFAULT_wxUSE_DMALLOC=no
1426 DEFAULT_wxUSE_APPLE_IEEE=yes
1427
1428 DEFAULT_wxUSE_LOG=yes
1429
1430 DEFAULT_wxUSE_GUI=yes
1431
1432 DEFAULT_wxUSE_ZLIB=yes
1433 DEFAULT_wxUSE_LIBPNG=yes
1434 DEFAULT_wxUSE_LIBJPEG=yes
b47c832e 1435 DEFAULT_wxUSE_LIBTIFF=yes
16b52fa1 1436 DEFAULT_wxUSE_ODBC=no
3fed1840 1437 DEFAULT_wxUSE_FREETYPE=no
bdad4e7e 1438 DEFAULT_wxUSE_OPENGL=no
10f2d63a 1439
eb4efbdc 1440 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes
10f2d63a
VZ
1441 DEFAULT_wxUSE_STD_IOSTREAM=no
1442 DEFAULT_wxUSE_FILE=yes
1443 DEFAULT_wxUSE_TEXTFILE=yes
1444 DEFAULT_wxUSE_TIMEDATE=yes
1445 DEFAULT_wxUSE_WAVE=no
1446 DEFAULT_wxUSE_INTL=yes
1447 DEFAULT_wxUSE_CONFIG=yes
1448 DEFAULT_wxUSE_STREAMS=yes
1449 DEFAULT_wxUSE_SOCKETS=yes
1450 DEFAULT_wxUSE_DIALUP_MANAGER=yes
1451 DEFAULT_wxUSE_SERIAL=yes
1452 DEFAULT_wxUSE_JOYSTICK=yes
1453 DEFAULT_wxUSE_DYNLIB_CLASS=yes
b685cd9b 1454 DEFAULT_wxUSE_LONGLONG=yes
e8f65ba6 1455 DEFAULT_wxUSE_GEOMETRY=yes
10f2d63a
VZ
1456
1457 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
1458 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
1459 DEFAULT_wxUSE_POSTSCRIPT=yes
1460
1461 DEFAULT_wxUSE_X_RESOURCES=no
1462 DEFAULT_wxUSE_CLIPBOARD=yes
1463 DEFAULT_wxUSE_TOOLTIPS=yes
1464 DEFAULT_wxUSE_DRAG_AND_DROP=yes
1465 DEFAULT_wxUSE_SPLINES=yes
1466
1467 DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
1468 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
1469 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
1470
1471 DEFAULT_wxUSE_PROLOGIO=yes
1472 DEFAULT_wxUSE_RESOURCES=yes
1473 DEFAULT_wxUSE_CONSTRAINTS=yes
1474 DEFAULT_wxUSE_IPC=yes
1475 DEFAULT_wxUSE_HELP=yes
1476 DEFAULT_wxUSE_WXTREE=yes
1477 DEFAULT_wxUSE_METAFILE=yes
1478
1479 DEFAULT_wxUSE_COMMONDLGS=yes
1480 DEFAULT_wxUSE_DIRDLG=yes
1481 DEFAULT_wxUSE_TEXTDLG=yes
1482 DEFAULT_wxUSE_STARTUP_TIPS=yes
1483 DEFAULT_wxUSE_PROGRESSDLG=yes
1484 DEFAULT_wxUSE_MINIFRAME=yes
1485 DEFAULT_wxUSE_HTML=yes
24528b0c 1486 DEFAULT_wxUSE_FILESYSTEM=yes
10f2d63a
VZ
1487 DEFAULT_wxUSE_FS_INET=yes
1488 DEFAULT_wxUSE_FS_ZIP=yes
1489 DEFAULT_wxUSE_BUSYINFO=yes
1490 DEFAULT_wxUSE_ZIPSTREAM=yes
1491 DEFAULT_wxUSE_VALIDATORS=yes
1492
1493 DEFAULT_wxUSE_ACCEL=yes
1494 DEFAULT_wxUSE_CARET=yes
1495 DEFAULT_wxUSE_BMPBUTTON=yes
1496 DEFAULT_wxUSE_CHECKBOX=yes
1497 DEFAULT_wxUSE_CHECKLST=yes
1498 DEFAULT_wxUSE_CHOICE=yes
1499 DEFAULT_wxUSE_COMBOBOX=yes
1500 DEFAULT_wxUSE_GAUGE=yes
1501 DEFAULT_wxUSE_GRID=yes
cc977e5f 1502 DEFAULT_wxUSE_NEW_GRID=yes
10f2d63a
VZ
1503 DEFAULT_wxUSE_IMAGLIST=yes
1504 DEFAULT_wxUSE_LISTBOX=yes
1505 DEFAULT_wxUSE_LISTCTRL=yes
1506 DEFAULT_wxUSE_NOTEBOOK=yes
1507 DEFAULT_wxUSE_RADIOBOX=yes
1508 DEFAULT_wxUSE_RADIOBTN=yes
1509 DEFAULT_wxUSE_SASH=yes
1510 DEFAULT_wxUSE_SCROLLBAR=yes
1511 DEFAULT_wxUSE_SLIDER=yes
1512 DEFAULT_wxUSE_SPINBTN=yes
56cfaa52 1513 DEFAULT_wxUSE_SPINCTRL=yes
10f2d63a
VZ
1514 DEFAULT_wxUSE_SPLITTER=yes
1515 DEFAULT_wxUSE_STATBMP=yes
1516 DEFAULT_wxUSE_STATBOX=yes
1517 DEFAULT_wxUSE_STATLINE=yes
1518 DEFAULT_wxUSE_STATUSBAR=yes
1519 DEFAULT_wxUSE_TABDIALOG=no
1520 DEFAULT_wxUSE_TOOLBAR=yes
360d6699
VZ
1521 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
1522 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
10f2d63a
VZ
1523 DEFAULT_wxUSE_TREECTRL=yes
1524
1525 DEFAULT_wxUSE_UNICODE=no
1526 DEFAULT_wxUSE_WCSRTOMBS=no
1527
1528 DEFAULT_wxUSE_GIF=yes
1529 DEFAULT_wxUSE_PCX=yes
1530 DEFAULT_wxUSE_PNM=yes
1531fi
1532
1533
1534
1535for toolkit in `echo $ALL_TOOLKITS`; do
1536 LINE=`grep "wxUSE_$toolkit" ${wx_arg_cache_file}`
1537 if test "x$LINE" != x ; then
1538 has_toolkit_in_cache=1
1539 eval "DEFAULT_$LINE"
1540 eval "CACHE_$toolkit=1"
1541 fi
1542done
1543
1544
1545
1546 echo $ac_n "checking "for --enable-gui"""... $ac_c" 1>&6
b64f0a5f 1547echo "configure:1548: checking "for --enable-gui"" >&5
10f2d63a
VZ
1548 no_cache=0
1549 # Check whether --enable-gui or --disable-gui was given.
1550if test "${enable_gui+set}" = set; then
1551 enableval="$enable_gui"
1552
1553 if test "$enableval" = yes; then
1554 ac_cv_use_gui='wxUSE_GUI=yes'
1555 else
1556 ac_cv_use_gui='wxUSE_GUI=no'
1557 fi
1558
1559else
1560
1561 LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
1562 if test "x$LINE" != x ; then
1563 eval "DEFAULT_$LINE"
1564 else
1565 no_cache=1
1566 fi
1567
1568 ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
1569
1570fi
1571
1572
1573 eval "$ac_cv_use_gui"
1574 if test "$no_cache" != 1; then
1575 echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
1576 fi
1577
1578 if test "$wxUSE_GUI" = yes; then
1579 echo "$ac_t""yes" 1>&6
1580 else
1581 echo "$ac_t""no" 1>&6
1582 fi
1583
1584
b12915c1 1585if test "$wxUSE_GUI" = "yes"; then
10f2d63a
VZ
1586
1587# Check whether --with-gtk or --without-gtk was given.
1588if test "${with_gtk+set}" = set; then
1589 withval="$with_gtk"
1590 wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
1591fi
1592
1593# Check whether --with-motif or --without-motif was given.
1594if test "${with_motif+set}" = set; then
1595 withval="$with_motif"
1596 wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
1597fi
1598
b4085ce6
GD
1599# Check whether --with-mac or --without-mac was given.
1600if test "${with_mac+set}" = set; then
1601 withval="$with_mac"
1602 wxUSE_MAC="$withval" TOOLKIT_GIVEN=1
1603fi
1604
10f2d63a
VZ
1605# Check whether --with-wine or --without-wine was given.
1606if test "${with_wine+set}" = set; then
1607 withval="$with_wine"
1608 wxUSE_WINE="$withval" CACHE_WINE=1 TOOLKIT_GIVEN=1
1609fi
1610
1611# Check whether --with-cygwin or --without-cygwin was given.
1612if test "${with_cygwin+set}" = set; then
1613 withval="$with_cygwin"
1614 wxUSE_CYGWIN="$withval" CACHE_CYGWIN=1 TOOLKIT_GIVEN=1
1615fi
1616
1617# Check whether --with-mingw or --without-mingw was given.
1618if test "${with_mingw+set}" = set; then
1619 withval="$with_mingw"
1620 wxUSE_MINGW="$withval" CACHE_MINGW=1 TOOLKIT_GIVEN=1
1621fi
1622
e07802fc
VZ
1623# Check whether --with-pm or --without-pm was given.
1624if test "${with_pm+set}" = set; then
1625 withval="$with_pm"
1626 wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
1627fi
1628
10f2d63a
VZ
1629
1630# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
1631if test "${with_gtk_prefix+set}" = set; then
1632 withval="$with_gtk_prefix"
1633 gtk_config_prefix="$withval"
1634else
1635 gtk_config_prefix=""
1636fi
1637
1638# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
1639if test "${with_gtk_exec_prefix+set}" = set; then
1640 withval="$with_gtk_exec_prefix"
1641 gtk_config_exec_prefix="$withval"
1642else
1643 gtk_config_exec_prefix=""
1644fi
1645
1646
1647
b12915c1 1648 echo $ac_n "checking "for --with-libpng"""... $ac_c" 1>&6
b64f0a5f 1649echo "configure:1650: checking "for --with-libpng"" >&5
10f2d63a 1650 no_cache=0
b12915c1
VZ
1651 # Check whether --with-libpng or --without-libpng was given.
1652if test "${with_libpng+set}" = set; then
1653 withval="$with_libpng"
10f2d63a
VZ
1654
1655 if test "$withval" = yes; then
b12915c1 1656 ac_cv_use_libpng='wxUSE_LIBPNG=yes'
422107f9 1657 elif test "$withval" = no; then
b12915c1 1658 ac_cv_use_libpng='wxUSE_LIBPNG=no'
422107f9
VZ
1659 elif test "$withval" = sys; then
1660 ac_cv_use_libpng='wxUSE_LIBPNG=sys'
1661 else
1662 { echo "configure: error: Invalid value for --with-libpng: should be yes, no or sys" 1>&2; exit 1; }
10f2d63a
VZ
1663 fi
1664
1665else
1666
b12915c1 1667 LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
10f2d63a
VZ
1668 if test "x$LINE" != x ; then
1669 eval "DEFAULT_$LINE"
1670 else
1671 no_cache=1
1672 fi
1673
b12915c1 1674 ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
10f2d63a
VZ
1675
1676fi
1677
1678
b12915c1 1679 eval "$ac_cv_use_libpng"
10f2d63a 1680 if test "$no_cache" != 1; then
b12915c1 1681 echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
1682 fi
1683
b12915c1 1684 if test "$wxUSE_LIBPNG" = yes; then
10f2d63a 1685 echo "$ac_t""yes" 1>&6
422107f9 1686 elif test "$wxUSE_LIBPNG" = no; then
10f2d63a 1687 echo "$ac_t""no" 1>&6
422107f9
VZ
1688 elif test "$wxUSE_LIBPNG" = sys; then
1689 echo "$ac_t""system version" 1>&6
1690 else
1691 { echo "configure: error: Invalid value for --with-libpng: should be yes, no or sys" 1>&2; exit 1; }
10f2d63a
VZ
1692 fi
1693
1694
b12915c1 1695 echo $ac_n "checking "for --with-libjpeg"""... $ac_c" 1>&6
b64f0a5f 1696echo "configure:1697: checking "for --with-libjpeg"" >&5
10f2d63a 1697 no_cache=0
b12915c1
VZ
1698 # Check whether --with-libjpeg or --without-libjpeg was given.
1699if test "${with_libjpeg+set}" = set; then
1700 withval="$with_libjpeg"
10f2d63a
VZ
1701
1702 if test "$withval" = yes; then
b12915c1 1703 ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
422107f9 1704 elif test "$withval" = no; then
b12915c1 1705 ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
422107f9
VZ
1706 elif test "$withval" = sys; then
1707 ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
1708 else
1709 { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no or sys" 1>&2; exit 1; }
10f2d63a
VZ
1710 fi
1711
1712else
1713
b12915c1 1714 LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
10f2d63a
VZ
1715 if test "x$LINE" != x ; then
1716 eval "DEFAULT_$LINE"
1717 else
1718 no_cache=1
1719 fi
1720
b12915c1 1721 ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
10f2d63a
VZ
1722
1723fi
1724
1725
b12915c1 1726 eval "$ac_cv_use_libjpeg"
10f2d63a 1727 if test "$no_cache" != 1; then
b12915c1 1728 echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
1729 fi
1730
b12915c1 1731 if test "$wxUSE_LIBJPEG" = yes; then
10f2d63a 1732 echo "$ac_t""yes" 1>&6
422107f9 1733 elif test "$wxUSE_LIBJPEG" = no; then
10f2d63a 1734 echo "$ac_t""no" 1>&6
422107f9
VZ
1735 elif test "$wxUSE_LIBJPEG" = sys; then
1736 echo "$ac_t""system version" 1>&6
1737 else
1738 { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no or sys" 1>&2; exit 1; }
10f2d63a
VZ
1739 fi
1740
1741
b12915c1 1742 echo $ac_n "checking "for --with-libtiff"""... $ac_c" 1>&6
b64f0a5f 1743echo "configure:1744: checking "for --with-libtiff"" >&5
10f2d63a 1744 no_cache=0
b12915c1
VZ
1745 # Check whether --with-libtiff or --without-libtiff was given.
1746if test "${with_libtiff+set}" = set; then
1747 withval="$with_libtiff"
10f2d63a
VZ
1748
1749 if test "$withval" = yes; then
b12915c1 1750 ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
0dcf9893 1751 elif test "$withval" = no; then
b12915c1 1752 ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
0dcf9893
VZ
1753 elif test "$withval" = sys; then
1754 ac_cv_use_libtiff='wxUSE_LIBTIFF=sys'
1755 else
1756 { echo "configure: error: Invalid value for --with-libtiff: should be yes, no or sys" 1>&2; exit 1; }
10f2d63a
VZ
1757 fi
1758
1759else
1760
b12915c1 1761 LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
10f2d63a
VZ
1762 if test "x$LINE" != x ; then
1763 eval "DEFAULT_$LINE"
1764 else
1765 no_cache=1
1766 fi
1767
b12915c1 1768 ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
10f2d63a
VZ
1769
1770fi
1771
1772
b12915c1 1773 eval "$ac_cv_use_libtiff"
10f2d63a 1774 if test "$no_cache" != 1; then
b12915c1 1775 echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
1776 fi
1777
b12915c1 1778 if test "$wxUSE_LIBTIFF" = yes; then
10f2d63a 1779 echo "$ac_t""yes" 1>&6
0dcf9893 1780 elif test "$wxUSE_LIBTIFF" = no; then
10f2d63a 1781 echo "$ac_t""no" 1>&6
0dcf9893
VZ
1782 elif test "$wxUSE_LIBTIFF" = sys; then
1783 echo "$ac_t""system version" 1>&6
1784 else
1785 { echo "configure: error: Invalid value for --with-libtiff: should be yes, no or sys" 1>&2; exit 1; }
10f2d63a
VZ
1786 fi
1787
1788
3fed1840 1789 echo $ac_n "checking "for --with-freetype"""... $ac_c" 1>&6
b64f0a5f 1790echo "configure:1791: checking "for --with-freetype"" >&5
3fed1840
RR
1791 no_cache=0
1792 # Check whether --with-freetype or --without-freetype was given.
1793if test "${with_freetype+set}" = set; then
1794 withval="$with_freetype"
1795
1796 if test "$withval" = yes; then
1797 ac_cv_use_freetype='wxUSE_FREETYPE=yes'
1798 elif test "$withval" = no; then
1799 ac_cv_use_freetype='wxUSE_FREETYPE=no'
1800 elif test "$withval" = sys; then
1801 ac_cv_use_freetype='wxUSE_FREETYPE=sys'
1802 else
1803 { echo "configure: error: Invalid value for --with-freetype: should be yes, no or sys" 1>&2; exit 1; }
1804 fi
1805
1806else
1807
1808 LINE=`grep "wxUSE_FREETYPE" ${wx_arg_cache_file}`
1809 if test "x$LINE" != x ; then
1810 eval "DEFAULT_$LINE"
1811 else
1812 no_cache=1
1813 fi
1814
1815 ac_cv_use_freetype='wxUSE_FREETYPE='$DEFAULT_wxUSE_FREETYPE
1816
1817fi
1818
1819
1820 eval "$ac_cv_use_freetype"
1821 if test "$no_cache" != 1; then
1822 echo $ac_cv_use_freetype >> ${wx_arg_cache_file}.tmp
1823 fi
1824
1825 if test "$wxUSE_FREETYPE" = yes; then
1826 echo "$ac_t""yes" 1>&6
1827 elif test "$wxUSE_FREETYPE" = no; then
1828 echo "$ac_t""no" 1>&6
1829 elif test "$wxUSE_FREETYPE" = sys; then
1830 echo "$ac_t""system version" 1>&6
1831 else
1832 { echo "configure: error: Invalid value for --with-freetype: should be yes, no or sys" 1>&2; exit 1; }
1833 fi
1834
1835
b12915c1 1836 echo $ac_n "checking "for --with-opengl"""... $ac_c" 1>&6
b64f0a5f 1837echo "configure:1838: checking "for --with-opengl"" >&5
10f2d63a 1838 no_cache=0
b12915c1
VZ
1839 # Check whether --with-opengl or --without-opengl was given.
1840if test "${with_opengl+set}" = set; then
1841 withval="$with_opengl"
10f2d63a
VZ
1842
1843 if test "$withval" = yes; then
b12915c1 1844 ac_cv_use_opengl='wxUSE_OPENGL=yes'
10f2d63a 1845 else
b12915c1 1846 ac_cv_use_opengl='wxUSE_OPENGL=no'
10f2d63a
VZ
1847 fi
1848
1849else
1850
b12915c1 1851 LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
10f2d63a
VZ
1852 if test "x$LINE" != x ; then
1853 eval "DEFAULT_$LINE"
1854 else
1855 no_cache=1
1856 fi
1857
b12915c1 1858 ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
10f2d63a
VZ
1859
1860fi
1861
1862
b12915c1 1863 eval "$ac_cv_use_opengl"
10f2d63a 1864 if test "$no_cache" != 1; then
b12915c1 1865 echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
1866 fi
1867
b12915c1 1868 if test "$wxUSE_OPENGL" = yes; then
10f2d63a
VZ
1869 echo "$ac_t""yes" 1>&6
1870 else
1871 echo "$ac_t""no" 1>&6
1872 fi
1873
1874
b12915c1
VZ
1875fi
1876
1877
1878 echo $ac_n "checking "for --with-dmalloc"""... $ac_c" 1>&6
b64f0a5f 1879echo "configure:1880: checking "for --with-dmalloc"" >&5
c7a2bf27 1880 no_cache=0
b12915c1
VZ
1881 # Check whether --with-dmalloc or --without-dmalloc was given.
1882if test "${with_dmalloc+set}" = set; then
1883 withval="$with_dmalloc"
c7a2bf27
RR
1884
1885 if test "$withval" = yes; then
b12915c1 1886 ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
c7a2bf27 1887 else
b12915c1 1888 ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
c7a2bf27
RR
1889 fi
1890
1891else
1892
b12915c1 1893 LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
c7a2bf27
RR
1894 if test "x$LINE" != x ; then
1895 eval "DEFAULT_$LINE"
1896 else
1897 no_cache=1
1898 fi
1899
b12915c1 1900 ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
c7a2bf27
RR
1901
1902fi
1903
1904
b12915c1 1905 eval "$ac_cv_use_dmalloc"
c7a2bf27 1906 if test "$no_cache" != 1; then
b12915c1 1907 echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
c7a2bf27
RR
1908 fi
1909
b12915c1 1910 if test "$wxUSE_DMALLOC" = yes; then
c7a2bf27
RR
1911 echo "$ac_t""yes" 1>&6
1912 else
1913 echo "$ac_t""no" 1>&6
1914 fi
1915
1916
b12915c1 1917 echo $ac_n "checking "for --with-zlib"""... $ac_c" 1>&6
b64f0a5f 1918echo "configure:1919: checking "for --with-zlib"" >&5
10f2d63a 1919 no_cache=0
b12915c1
VZ
1920 # Check whether --with-zlib or --without-zlib was given.
1921if test "${with_zlib+set}" = set; then
1922 withval="$with_zlib"
10f2d63a
VZ
1923
1924 if test "$withval" = yes; then
b12915c1 1925 ac_cv_use_zlib='wxUSE_ZLIB=yes'
422107f9 1926 elif test "$withval" = no; then
b12915c1 1927 ac_cv_use_zlib='wxUSE_ZLIB=no'
422107f9
VZ
1928 elif test "$withval" = sys; then
1929 ac_cv_use_zlib='wxUSE_ZLIB=sys'
1930 else
1931 { echo "configure: error: Invalid value for --with-zlib: should be yes, no or sys" 1>&2; exit 1; }
10f2d63a
VZ
1932 fi
1933
1934else
1935
b12915c1 1936 LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
10f2d63a
VZ
1937 if test "x$LINE" != x ; then
1938 eval "DEFAULT_$LINE"
1939 else
1940 no_cache=1
1941 fi
1942
b12915c1 1943 ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
10f2d63a
VZ
1944
1945fi
1946
1947
b12915c1 1948 eval "$ac_cv_use_zlib"
10f2d63a 1949 if test "$no_cache" != 1; then
b12915c1 1950 echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
1951 fi
1952
b12915c1 1953 if test "$wxUSE_ZLIB" = yes; then
10f2d63a 1954 echo "$ac_t""yes" 1>&6
422107f9 1955 elif test "$wxUSE_ZLIB" = no; then
bdad4e7e 1956 echo "$ac_t""no" 1>&6
422107f9
VZ
1957 elif test "$wxUSE_ZLIB" = sys; then
1958 echo "$ac_t""system version" 1>&6
1959 else
1960 { echo "configure: error: Invalid value for --with-zlib: should be yes, no or sys" 1>&2; exit 1; }
10f2d63a
VZ
1961 fi
1962
1963
1964 echo $ac_n "checking "for --with-odbc"""... $ac_c" 1>&6
b64f0a5f 1965echo "configure:1966: checking "for --with-odbc"" >&5
10f2d63a
VZ
1966 no_cache=0
1967 # Check whether --with-odbc or --without-odbc was given.
1968if test "${with_odbc+set}" = set; then
1969 withval="$with_odbc"
1970
1971 if test "$withval" = yes; then
1972 ac_cv_use_odbc='wxUSE_ODBC=yes'
1973 else
1974 ac_cv_use_odbc='wxUSE_ODBC=no'
1975 fi
1976
1977else
1978
1979 LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
1980 if test "x$LINE" != x ; then
1981 eval "DEFAULT_$LINE"
1982 else
1983 no_cache=1
1984 fi
1985
1986 ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
1987
1988fi
1989
1990
1991 eval "$ac_cv_use_odbc"
1992 if test "$no_cache" != 1; then
1993 echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
1994 fi
1995
1996 if test "$wxUSE_ODBC" = yes; then
1997 echo "$ac_t""yes" 1>&6
1998 else
1999 echo "$ac_t""no" 1>&6
2000 fi
2001
2002
2003
2004
2005
2006 echo $ac_n "checking "for --enable-shared"""... $ac_c" 1>&6
b64f0a5f 2007echo "configure:2008: checking "for --enable-shared"" >&5
10f2d63a
VZ
2008 no_cache=0
2009 # Check whether --enable-shared or --disable-shared was given.
2010if test "${enable_shared+set}" = set; then
2011 enableval="$enable_shared"
2012
2013 if test "$enableval" = yes; then
2014 ac_cv_use_shared='wxUSE_SHARED=yes'
2015 else
2016 ac_cv_use_shared='wxUSE_SHARED=no'
2017 fi
2018
2019else
2020
2021 LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
2022 if test "x$LINE" != x ; then
2023 eval "DEFAULT_$LINE"
2024 else
2025 no_cache=1
2026 fi
2027
2028 ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
2029
2030fi
2031
2032
2033 eval "$ac_cv_use_shared"
2034 if test "$no_cache" != 1; then
2035 echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
2036 fi
2037
2038 if test "$wxUSE_SHARED" = yes; then
2039 echo "$ac_t""yes" 1>&6
2040 else
2041 echo "$ac_t""no" 1>&6
2042 fi
2043
2044
00cf1208 2045 echo $ac_n "checking "for --enable-burnt_name"""... $ac_c" 1>&6
b64f0a5f 2046echo "configure:2047: checking "for --enable-burnt_name"" >&5
00cf1208
RR
2047 no_cache=0
2048 # Check whether --enable-burnt_name or --disable-burnt_name was given.
2049if test "${enable_burnt_name+set}" = set; then
2050 enableval="$enable_burnt_name"
2051
2052 if test "$enableval" = yes; then
2053 ac_cv_use_burnt_name='wxUSE_BURNT_NAME=yes'
2054 else
2055 ac_cv_use_burnt_name='wxUSE_BURNT_NAME=no'
2056 fi
2057
2058else
2059
2060 LINE=`grep "wxUSE_BURNT_NAME" ${wx_arg_cache_file}`
2061 if test "x$LINE" != x ; then
2062 eval "DEFAULT_$LINE"
2063 else
2064 no_cache=1
2065 fi
2066
2067 ac_cv_use_burnt_name='wxUSE_BURNT_NAME='$DEFAULT_wxUSE_BURNT_NAME
2068
2069fi
2070
2071
2072 eval "$ac_cv_use_burnt_name"
2073 if test "$no_cache" != 1; then
2074 echo $ac_cv_use_burnt_name >> ${wx_arg_cache_file}.tmp
2075 fi
2076
2077 if test "$wxUSE_BURNT_NAME" = yes; then
2078 echo "$ac_t""yes" 1>&6
2079 else
2080 echo "$ac_t""no" 1>&6
2081 fi
2082
2083
10f2d63a 2084 echo $ac_n "checking "for --enable-optimise"""... $ac_c" 1>&6
b64f0a5f 2085echo "configure:2086: checking "for --enable-optimise"" >&5
10f2d63a
VZ
2086 no_cache=0
2087 # Check whether --enable-optimise or --disable-optimise was given.
2088if test "${enable_optimise+set}" = set; then
2089 enableval="$enable_optimise"
2090
2091 if test "$enableval" = yes; then
2092 ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
2093 else
2094 ac_cv_use_optimise='wxUSE_OPTIMISE=no'
2095 fi
2096
2097else
2098
2099 LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
2100 if test "x$LINE" != x ; then
2101 eval "DEFAULT_$LINE"
2102 else
2103 no_cache=1
2104 fi
2105
2106 ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
2107
2108fi
2109
2110
2111 eval "$ac_cv_use_optimise"
2112 if test "$no_cache" != 1; then
2113 echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
2114 fi
2115
2116 if test "$wxUSE_OPTIMISE" = yes; then
2117 echo "$ac_t""yes" 1>&6
2118 else
2119 echo "$ac_t""no" 1>&6
2120 fi
2121
2122
2123 echo $ac_n "checking "for --enable-debug"""... $ac_c" 1>&6
b64f0a5f 2124echo "configure:2125: checking "for --enable-debug"" >&5
10f2d63a
VZ
2125 no_cache=0
2126 # Check whether --enable-debug or --disable-debug was given.
2127if test "${enable_debug+set}" = set; then
2128 enableval="$enable_debug"
2129
2130 if test "$enableval" = yes; then
2131 ac_cv_use_debug='wxUSE_DEBUG=yes'
2132 else
2133 ac_cv_use_debug='wxUSE_DEBUG=no'
2134 fi
2135
2136else
2137
2138 LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
2139 if test "x$LINE" != x ; then
2140 eval "DEFAULT_$LINE"
2141 else
2142 no_cache=1
2143 fi
2144
2145 ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
2146
2147fi
2148
2149
2150 eval "$ac_cv_use_debug"
2151 if test "$no_cache" != 1; then
2152 echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
2153 fi
2154
2155 if test "$wxUSE_DEBUG" = yes; then
2156 echo "$ac_t""yes" 1>&6
2157 else
2158 echo "$ac_t""no" 1>&6
2159 fi
2160
2161
2162if test "$wxUSE_DEBUG" = "yes"; then
2163 DEFAULT_wxUSE_DEBUG_FLAG=yes
2164 DEFAULT_wxUSE_DEBUG_INFO=yes
2165elif test "$wxUSE_DEBUG" = "no"; then
2166 DEFAULT_wxUSE_DEBUG_FLAG=no
2167 DEFAULT_wxUSE_DEBUG_INFO=no
2168fi
2169
2170
2171 echo $ac_n "checking "for --enable-debug_flag"""... $ac_c" 1>&6
b64f0a5f 2172echo "configure:2173: checking "for --enable-debug_flag"" >&5
10f2d63a
VZ
2173 no_cache=0
2174 # Check whether --enable-debug_flag or --disable-debug_flag was given.
2175if test "${enable_debug_flag+set}" = set; then
2176 enableval="$enable_debug_flag"
2177
2178 if test "$enableval" = yes; then
2179 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
2180 else
2181 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
2182 fi
2183
2184else
2185
2186 LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
2187 if test "x$LINE" != x ; then
2188 eval "DEFAULT_$LINE"
2189 else
2190 no_cache=1
2191 fi
2192
2193 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
2194
2195fi
2196
2197
2198 eval "$ac_cv_use_debug_flag"
2199 if test "$no_cache" != 1; then
2200 echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
2201 fi
2202
2203 if test "$wxUSE_DEBUG_FLAG" = yes; then
2204 echo "$ac_t""yes" 1>&6
2205 else
2206 echo "$ac_t""no" 1>&6
2207 fi
2208
2209
2210 echo $ac_n "checking "for --enable-debug_info"""... $ac_c" 1>&6
b64f0a5f 2211echo "configure:2212: checking "for --enable-debug_info"" >&5
10f2d63a
VZ
2212 no_cache=0
2213 # Check whether --enable-debug_info or --disable-debug_info was given.
2214if test "${enable_debug_info+set}" = set; then
2215 enableval="$enable_debug_info"
2216
2217 if test "$enableval" = yes; then
2218 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
2219 else
2220 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
2221 fi
2222
2223else
2224
2225 LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
2226 if test "x$LINE" != x ; then
2227 eval "DEFAULT_$LINE"
2228 else
2229 no_cache=1
2230 fi
2231
2232 ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
2233
2234fi
2235
2236
2237 eval "$ac_cv_use_debug_info"
2238 if test "$no_cache" != 1; then
2239 echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
2240 fi
2241
2242 if test "$wxUSE_DEBUG_INFO" = yes; then
2243 echo "$ac_t""yes" 1>&6
2244 else
2245 echo "$ac_t""no" 1>&6
2246 fi
2247
2248
2249 echo $ac_n "checking "for --enable-debug_gdb"""... $ac_c" 1>&6
b64f0a5f 2250echo "configure:2251: checking "for --enable-debug_gdb"" >&5
10f2d63a
VZ
2251 no_cache=0
2252 # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
2253if test "${enable_debug_gdb+set}" = set; then
2254 enableval="$enable_debug_gdb"
2255
2256 if test "$enableval" = yes; then
2257 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
2258 else
2259 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
2260 fi
2261
2262else
2263
2264 LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
2265 if test "x$LINE" != x ; then
2266 eval "DEFAULT_$LINE"
2267 else
2268 no_cache=1
2269 fi
2270
2271 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
2272
2273fi
2274
2275
2276 eval "$ac_cv_use_debug_gdb"
2277 if test "$no_cache" != 1; then
2278 echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
2279 fi
2280
2281 if test "$wxUSE_DEBUG_GDB" = yes; then
2282 echo "$ac_t""yes" 1>&6
2283 else
2284 echo "$ac_t""no" 1>&6
2285 fi
2286
2287
2288 echo $ac_n "checking "for --enable-debug_cntxt"""... $ac_c" 1>&6
b64f0a5f 2289echo "configure:2290: checking "for --enable-debug_cntxt"" >&5
10f2d63a
VZ
2290 no_cache=0
2291 # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
2292if test "${enable_debug_cntxt+set}" = set; then
2293 enableval="$enable_debug_cntxt"
2294
2295 if test "$enableval" = yes; then
2296 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
2297 else
2298 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
2299 fi
2300
2301else
2302
2303 LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
2304 if test "x$LINE" != x ; then
2305 eval "DEFAULT_$LINE"
2306 else
2307 no_cache=1
2308 fi
2309
2310 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
2311
2312fi
2313
2314
2315 eval "$ac_cv_use_debug_cntxt"
2316 if test "$no_cache" != 1; then
2317 echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
2318 fi
2319
2320 if test "$wxUSE_DEBUG_CONTEXT" = yes; then
2321 echo "$ac_t""yes" 1>&6
2322 else
2323 echo "$ac_t""no" 1>&6
2324 fi
2325
2326
2327 echo $ac_n "checking "for --enable-mem_tracing"""... $ac_c" 1>&6
b64f0a5f 2328echo "configure:2329: checking "for --enable-mem_tracing"" >&5
10f2d63a
VZ
2329 no_cache=0
2330 # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
2331if test "${enable_mem_tracing+set}" = set; then
2332 enableval="$enable_mem_tracing"
2333
2334 if test "$enableval" = yes; then
2335 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
2336 else
2337 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
2338 fi
2339
2340else
2341
2342 LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
2343 if test "x$LINE" != x ; then
2344 eval "DEFAULT_$LINE"
2345 else
2346 no_cache=1
2347 fi
2348
2349 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
2350
2351fi
2352
2353
2354 eval "$ac_cv_use_mem_tracing"
2355 if test "$no_cache" != 1; then
2356 echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
2357 fi
2358
2359 if test "$wxUSE_MEM_TRACING" = yes; then
2360 echo "$ac_t""yes" 1>&6
2361 else
2362 echo "$ac_t""no" 1>&6
2363 fi
2364
2365
2366 echo $ac_n "checking "for --enable-profile"""... $ac_c" 1>&6
b64f0a5f 2367echo "configure:2368: checking "for --enable-profile"" >&5
10f2d63a
VZ
2368 no_cache=0
2369 # Check whether --enable-profile or --disable-profile was given.
2370if test "${enable_profile+set}" = set; then
2371 enableval="$enable_profile"
2372
2373 if test "$enableval" = yes; then
2374 ac_cv_use_profile='wxUSE_PROFILE=yes'
2375 else
2376 ac_cv_use_profile='wxUSE_PROFILE=no'
2377 fi
2378
2379else
2380
2381 LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
2382 if test "x$LINE" != x ; then
2383 eval "DEFAULT_$LINE"
2384 else
2385 no_cache=1
2386 fi
2387
2388 ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
2389
2390fi
2391
2392
2393 eval "$ac_cv_use_profile"
2394 if test "$no_cache" != 1; then
2395 echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
2396 fi
2397
2398 if test "$wxUSE_PROFILE" = yes; then
2399 echo "$ac_t""yes" 1>&6
2400 else
2401 echo "$ac_t""no" 1>&6
2402 fi
2403
2404
2405 echo $ac_n "checking "for --enable-no_rtti"""... $ac_c" 1>&6
b64f0a5f 2406echo "configure:2407: checking "for --enable-no_rtti"" >&5
10f2d63a
VZ
2407 no_cache=0
2408 # Check whether --enable-no_rtti or --disable-no_rtti was given.
2409if test "${enable_no_rtti+set}" = set; then
2410 enableval="$enable_no_rtti"
2411
2412 if test "$enableval" = yes; then
2413 ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
2414 else
2415 ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
2416 fi
2417
2418else
2419
2420 LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
2421 if test "x$LINE" != x ; then
2422 eval "DEFAULT_$LINE"
2423 else
2424 no_cache=1
2425 fi
2426
2427 ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
2428
2429fi
2430
2431
2432 eval "$ac_cv_use_no_rtti"
2433 if test "$no_cache" != 1; then
2434 echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
2435 fi
2436
2437 if test "$wxUSE_NO_RTTI" = yes; then
2438 echo "$ac_t""yes" 1>&6
2439 else
2440 echo "$ac_t""no" 1>&6
2441 fi
2442
2443
2444 echo $ac_n "checking "for --enable-no_exceptions"""... $ac_c" 1>&6
b64f0a5f 2445echo "configure:2446: checking "for --enable-no_exceptions"" >&5
10f2d63a
VZ
2446 no_cache=0
2447 # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
2448if test "${enable_no_exceptions+set}" = set; then
2449 enableval="$enable_no_exceptions"
2450
2451 if test "$enableval" = yes; then
2452 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
2453 else
2454 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
2455 fi
2456
2457else
2458
2459 LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
2460 if test "x$LINE" != x ; then
2461 eval "DEFAULT_$LINE"
2462 else
2463 no_cache=1
2464 fi
2465
2466 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
2467
2468fi
2469
2470
2471 eval "$ac_cv_use_no_exceptions"
2472 if test "$no_cache" != 1; then
2473 echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
2474 fi
2475
2476 if test "$wxUSE_NO_EXCEPTIONS" = yes; then
2477 echo "$ac_t""yes" 1>&6
2478 else
2479 echo "$ac_t""no" 1>&6
2480 fi
2481
2482
2483 echo $ac_n "checking "for --enable-permissive"""... $ac_c" 1>&6
b64f0a5f 2484echo "configure:2485: checking "for --enable-permissive"" >&5
10f2d63a
VZ
2485 no_cache=0
2486 # Check whether --enable-permissive or --disable-permissive was given.
2487if test "${enable_permissive+set}" = set; then
2488 enableval="$enable_permissive"
2489
2490 if test "$enableval" = yes; then
2491 ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
2492 else
2493 ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
2494 fi
2495
2496else
2497
2498 LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
2499 if test "x$LINE" != x ; then
2500 eval "DEFAULT_$LINE"
2501 else
2502 no_cache=1
2503 fi
2504
2505 ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
2506
2507fi
2508
2509
2510 eval "$ac_cv_use_permissive"
2511 if test "$no_cache" != 1; then
2512 echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
2513 fi
2514
2515 if test "$wxUSE_PERMISSIVE" = yes; then
2516 echo "$ac_t""yes" 1>&6
2517 else
2518 echo "$ac_t""no" 1>&6
2519 fi
2520
2521
2522 echo $ac_n "checking "for --enable-no_deps"""... $ac_c" 1>&6
b64f0a5f 2523echo "configure:2524: checking "for --enable-no_deps"" >&5
10f2d63a
VZ
2524 no_cache=0
2525 # Check whether --enable-no_deps or --disable-no_deps was given.
2526if test "${enable_no_deps+set}" = set; then
2527 enableval="$enable_no_deps"
2528
2529 if test "$enableval" = yes; then
2530 ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
2531 else
2532 ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
2533 fi
2534
2535else
2536
2537 LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
2538 if test "x$LINE" != x ; then
2539 eval "DEFAULT_$LINE"
2540 else
2541 no_cache=1
2542 fi
2543
2544 ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
2545
2546fi
2547
2548
2549 eval "$ac_cv_use_no_deps"
2550 if test "$no_cache" != 1; then
2551 echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
2552 fi
2553
2554 if test "$wxUSE_NO_DEPS" = yes; then
2555 echo "$ac_t""yes" 1>&6
2556 else
2557 echo "$ac_t""no" 1>&6
2558 fi
2559
2560
2561
2562
2563 echo $ac_n "checking "for --enable-intl"""... $ac_c" 1>&6
b64f0a5f 2564echo "configure:2565: checking "for --enable-intl"" >&5
10f2d63a
VZ
2565 no_cache=0
2566 # Check whether --enable-intl or --disable-intl was given.
2567if test "${enable_intl+set}" = set; then
2568 enableval="$enable_intl"
2569
2570 if test "$enableval" = yes; then
2571 ac_cv_use_intl='wxUSE_INTL=yes'
2572 else
2573 ac_cv_use_intl='wxUSE_INTL=no'
2574 fi
2575
2576else
2577
2578 LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
2579 if test "x$LINE" != x ; then
2580 eval "DEFAULT_$LINE"
2581 else
2582 no_cache=1
2583 fi
2584
2585 ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
2586
2587fi
2588
2589
2590 eval "$ac_cv_use_intl"
2591 if test "$no_cache" != 1; then
2592 echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
2593 fi
2594
2595 if test "$wxUSE_INTL" = yes; then
2596 echo "$ac_t""yes" 1>&6
2597 else
2598 echo "$ac_t""no" 1>&6
2599 fi
2600
2601
2602 echo $ac_n "checking "for --enable-config"""... $ac_c" 1>&6
b64f0a5f 2603echo "configure:2604: checking "for --enable-config"" >&5
10f2d63a
VZ
2604 no_cache=0
2605 # Check whether --enable-config or --disable-config was given.
2606if test "${enable_config+set}" = set; then
2607 enableval="$enable_config"
2608
2609 if test "$enableval" = yes; then
2610 ac_cv_use_config='wxUSE_CONFIG=yes'
2611 else
2612 ac_cv_use_config='wxUSE_CONFIG=no'
2613 fi
2614
2615else
2616
2617 LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
2618 if test "x$LINE" != x ; then
2619 eval "DEFAULT_$LINE"
2620 else
2621 no_cache=1
2622 fi
2623
2624 ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
2625
2626fi
2627
2628
2629 eval "$ac_cv_use_config"
2630 if test "$no_cache" != 1; then
2631 echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
2632 fi
2633
2634 if test "$wxUSE_CONFIG" = yes; then
2635 echo "$ac_t""yes" 1>&6
2636 else
2637 echo "$ac_t""no" 1>&6
2638 fi
2639
2640
b12915c1 2641
10f2d63a 2642 echo $ac_n "checking "for --enable-sockets"""... $ac_c" 1>&6
b64f0a5f 2643echo "configure:2644: checking "for --enable-sockets"" >&5
10f2d63a
VZ
2644 no_cache=0
2645 # Check whether --enable-sockets or --disable-sockets was given.
2646if test "${enable_sockets+set}" = set; then
2647 enableval="$enable_sockets"
2648
2649 if test "$enableval" = yes; then
2650 ac_cv_use_sockets='wxUSE_SOCKETS=yes'
2651 else
2652 ac_cv_use_sockets='wxUSE_SOCKETS=no'
2653 fi
2654
2655else
2656
2657 LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
2658 if test "x$LINE" != x ; then
2659 eval "DEFAULT_$LINE"
2660 else
2661 no_cache=1
2662 fi
2663
2664 ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
2665
2666fi
2667
2668
2669 eval "$ac_cv_use_sockets"
2670 if test "$no_cache" != 1; then
2671 echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
2672 fi
2673
2674 if test "$wxUSE_SOCKETS" = yes; then
2675 echo "$ac_t""yes" 1>&6
2676 else
2677 echo "$ac_t""no" 1>&6
2678 fi
2679
b12915c1 2680
10f2d63a 2681
eb4efbdc 2682 echo $ac_n "checking "for --enable-ipc"""... $ac_c" 1>&6
b64f0a5f 2683echo "configure:2684: checking "for --enable-ipc"" >&5
10f2d63a 2684 no_cache=0
eb4efbdc
VZ
2685 # Check whether --enable-ipc or --disable-ipc was given.
2686if test "${enable_ipc+set}" = set; then
2687 enableval="$enable_ipc"
10f2d63a
VZ
2688
2689 if test "$enableval" = yes; then
eb4efbdc 2690 ac_cv_use_ipc='wxUSE_IPC=yes'
10f2d63a 2691 else
eb4efbdc 2692 ac_cv_use_ipc='wxUSE_IPC=no'
10f2d63a
VZ
2693 fi
2694
2695else
2696
eb4efbdc 2697 LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
10f2d63a
VZ
2698 if test "x$LINE" != x ; then
2699 eval "DEFAULT_$LINE"
2700 else
2701 no_cache=1
2702 fi
2703
eb4efbdc 2704 ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
10f2d63a
VZ
2705
2706fi
2707
2708
eb4efbdc 2709 eval "$ac_cv_use_ipc"
10f2d63a 2710 if test "$no_cache" != 1; then
eb4efbdc 2711 echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2712 fi
2713
eb4efbdc 2714 if test "$wxUSE_IPC" = yes; then
10f2d63a
VZ
2715 echo "$ac_t""yes" 1>&6
2716 else
2717 echo "$ac_t""no" 1>&6
2718 fi
2719
2720
eb4efbdc
VZ
2721
2722 echo $ac_n "checking "for --enable-dialupman"""... $ac_c" 1>&6
b64f0a5f 2723echo "configure:2724: checking "for --enable-dialupman"" >&5
10f2d63a 2724 no_cache=0
eb4efbdc
VZ
2725 # Check whether --enable-dialupman or --disable-dialupman was given.
2726if test "${enable_dialupman+set}" = set; then
2727 enableval="$enable_dialupman"
10f2d63a
VZ
2728
2729 if test "$enableval" = yes; then
eb4efbdc 2730 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
10f2d63a 2731 else
eb4efbdc 2732 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
10f2d63a
VZ
2733 fi
2734
2735else
2736
eb4efbdc 2737 LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
10f2d63a
VZ
2738 if test "x$LINE" != x ; then
2739 eval "DEFAULT_$LINE"
2740 else
2741 no_cache=1
2742 fi
2743
eb4efbdc 2744 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
10f2d63a
VZ
2745
2746fi
2747
2748
eb4efbdc 2749 eval "$ac_cv_use_dialupman"
10f2d63a 2750 if test "$no_cache" != 1; then
eb4efbdc 2751 echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2752 fi
2753
eb4efbdc 2754 if test "$wxUSE_DIALUP_MANAGER" = yes; then
10f2d63a
VZ
2755 echo "$ac_t""yes" 1>&6
2756 else
2757 echo "$ac_t""no" 1>&6
2758 fi
2759
2760
2761 echo $ac_n "checking "for --enable-apple_ieee"""... $ac_c" 1>&6
b64f0a5f 2762echo "configure:2763: checking "for --enable-apple_ieee"" >&5
10f2d63a
VZ
2763 no_cache=0
2764 # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
2765if test "${enable_apple_ieee+set}" = set; then
2766 enableval="$enable_apple_ieee"
2767
2768 if test "$enableval" = yes; then
2769 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
2770 else
2771 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
2772 fi
2773
2774else
2775
2776 LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
2777 if test "x$LINE" != x ; then
2778 eval "DEFAULT_$LINE"
2779 else
2780 no_cache=1
2781 fi
2782
2783 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
2784
2785fi
2786
2787
2788 eval "$ac_cv_use_apple_ieee"
2789 if test "$no_cache" != 1; then
2790 echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
2791 fi
2792
2793 if test "$wxUSE_APPLE_IEEE" = yes; then
2794 echo "$ac_t""yes" 1>&6
2795 else
2796 echo "$ac_t""no" 1>&6
2797 fi
2798
2799
2800 echo $ac_n "checking "for --enable-timedate"""... $ac_c" 1>&6
b64f0a5f 2801echo "configure:2802: checking "for --enable-timedate"" >&5
10f2d63a
VZ
2802 no_cache=0
2803 # Check whether --enable-timedate or --disable-timedate was given.
2804if test "${enable_timedate+set}" = set; then
2805 enableval="$enable_timedate"
2806
2807 if test "$enableval" = yes; then
2808 ac_cv_use_timedate='wxUSE_TIMEDATE=yes'
2809 else
2810 ac_cv_use_timedate='wxUSE_TIMEDATE=no'
2811 fi
2812
2813else
2814
2815 LINE=`grep "wxUSE_TIMEDATE" ${wx_arg_cache_file}`
2816 if test "x$LINE" != x ; then
2817 eval "DEFAULT_$LINE"
2818 else
2819 no_cache=1
2820 fi
2821
2822 ac_cv_use_timedate='wxUSE_TIMEDATE='$DEFAULT_wxUSE_TIMEDATE
2823
2824fi
2825
2826
2827 eval "$ac_cv_use_timedate"
2828 if test "$no_cache" != 1; then
2829 echo $ac_cv_use_timedate >> ${wx_arg_cache_file}.tmp
2830 fi
2831
2832 if test "$wxUSE_TIMEDATE" = yes; then
2833 echo "$ac_t""yes" 1>&6
2834 else
2835 echo "$ac_t""no" 1>&6
2836 fi
2837
2838
2839 echo $ac_n "checking "for --enable-wave"""... $ac_c" 1>&6
b64f0a5f 2840echo "configure:2841: checking "for --enable-wave"" >&5
10f2d63a
VZ
2841 no_cache=0
2842 # Check whether --enable-wave or --disable-wave was given.
2843if test "${enable_wave+set}" = set; then
2844 enableval="$enable_wave"
2845
2846 if test "$enableval" = yes; then
2847 ac_cv_use_wave='wxUSE_WAVE=yes'
2848 else
2849 ac_cv_use_wave='wxUSE_WAVE=no'
2850 fi
2851
2852else
2853
2854 LINE=`grep "wxUSE_WAVE" ${wx_arg_cache_file}`
2855 if test "x$LINE" != x ; then
2856 eval "DEFAULT_$LINE"
2857 else
2858 no_cache=1
2859 fi
2860
2861 ac_cv_use_wave='wxUSE_WAVE='$DEFAULT_wxUSE_WAVE
2862
2863fi
2864
2865
2866 eval "$ac_cv_use_wave"
2867 if test "$no_cache" != 1; then
2868 echo $ac_cv_use_wave >> ${wx_arg_cache_file}.tmp
2869 fi
2870
2871 if test "$wxUSE_WAVE" = yes; then
2872 echo "$ac_t""yes" 1>&6
2873 else
2874 echo "$ac_t""no" 1>&6
2875 fi
2876
2877
2878 echo $ac_n "checking "for --enable-fraction"""... $ac_c" 1>&6
b64f0a5f 2879echo "configure:2880: checking "for --enable-fraction"" >&5
10f2d63a
VZ
2880 no_cache=0
2881 # Check whether --enable-fraction or --disable-fraction was given.
2882if test "${enable_fraction+set}" = set; then
2883 enableval="$enable_fraction"
2884
2885 if test "$enableval" = yes; then
2886 ac_cv_use_fraction='wxUSE_FRACTION=yes'
2887 else
2888 ac_cv_use_fraction='wxUSE_FRACTION=no'
2889 fi
2890
2891else
2892
2893 LINE=`grep "wxUSE_FRACTION" ${wx_arg_cache_file}`
2894 if test "x$LINE" != x ; then
2895 eval "DEFAULT_$LINE"
2896 else
2897 no_cache=1
2898 fi
2899
2900 ac_cv_use_fraction='wxUSE_FRACTION='$DEFAULT_wxUSE_FRACTION
2901
2902fi
2903
2904
2905 eval "$ac_cv_use_fraction"
2906 if test "$no_cache" != 1; then
2907 echo $ac_cv_use_fraction >> ${wx_arg_cache_file}.tmp
2908 fi
2909
2910 if test "$wxUSE_FRACTION" = yes; then
2911 echo "$ac_t""yes" 1>&6
2912 else
2913 echo "$ac_t""no" 1>&6
2914 fi
2915
2916
2917 echo $ac_n "checking "for --enable-dynlib"""... $ac_c" 1>&6
b64f0a5f 2918echo "configure:2919: checking "for --enable-dynlib"" >&5
10f2d63a
VZ
2919 no_cache=0
2920 # Check whether --enable-dynlib or --disable-dynlib was given.
2921if test "${enable_dynlib+set}" = set; then
2922 enableval="$enable_dynlib"
2923
2924 if test "$enableval" = yes; then
2925 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
2926 else
2927 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
2928 fi
2929
2930else
2931
2932 LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
2933 if test "x$LINE" != x ; then
2934 eval "DEFAULT_$LINE"
2935 else
2936 no_cache=1
2937 fi
2938
2939 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
2940
2941fi
2942
2943
2944 eval "$ac_cv_use_dynlib"
2945 if test "$no_cache" != 1; then
2946 echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
2947 fi
2948
2949 if test "$wxUSE_DYNLIB_CLASS" = yes; then
2950 echo "$ac_t""yes" 1>&6
2951 else
2952 echo "$ac_t""no" 1>&6
2953 fi
2954
2955
2956 echo $ac_n "checking "for --enable-longlong"""... $ac_c" 1>&6
b64f0a5f 2957echo "configure:2958: checking "for --enable-longlong"" >&5
10f2d63a
VZ
2958 no_cache=0
2959 # Check whether --enable-longlong or --disable-longlong was given.
2960if test "${enable_longlong+set}" = set; then
2961 enableval="$enable_longlong"
2962
2963 if test "$enableval" = yes; then
2964 ac_cv_use_longlong='wxUSE_LONGLONG=yes'
2965 else
2966 ac_cv_use_longlong='wxUSE_LONGLONG=no'
2967 fi
2968
2969else
2970
2971 LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
2972 if test "x$LINE" != x ; then
2973 eval "DEFAULT_$LINE"
2974 else
2975 no_cache=1
2976 fi
2977
2978 ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
2979
2980fi
2981
2982
2983 eval "$ac_cv_use_longlong"
2984 if test "$no_cache" != 1; then
2985 echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
2986 fi
2987
2988 if test "$wxUSE_LONGLONG" = yes; then
2989 echo "$ac_t""yes" 1>&6
2990 else
2991 echo "$ac_t""no" 1>&6
2992 fi
2993
2994
e8f65ba6 2995 echo $ac_n "checking "for --enable-geometry"""... $ac_c" 1>&6
b64f0a5f 2996echo "configure:2997: checking "for --enable-geometry"" >&5
e8f65ba6
RR
2997 no_cache=0
2998 # Check whether --enable-geometry or --disable-geometry was given.
2999if test "${enable_geometry+set}" = set; then
3000 enableval="$enable_geometry"
3001
3002 if test "$enableval" = yes; then
3003 ac_cv_use_geometry='wxUSE_GEOMETRY=yes'
3004 else
3005 ac_cv_use_geometry='wxUSE_GEOMETRY=no'
3006 fi
3007
3008else
3009
3010 LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}`
3011 if test "x$LINE" != x ; then
3012 eval "DEFAULT_$LINE"
3013 else
3014 no_cache=1
3015 fi
3016
3017 ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY
3018
3019fi
3020
3021
3022 eval "$ac_cv_use_geometry"
3023 if test "$no_cache" != 1; then
3024 echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp
3025 fi
3026
3027 if test "$wxUSE_GEOMETRY" = yes; then
3028 echo "$ac_t""yes" 1>&6
3029 else
3030 echo "$ac_t""no" 1>&6
3031 fi
3032
3033
10f2d63a 3034 echo $ac_n "checking "for --enable-log"""... $ac_c" 1>&6
b64f0a5f 3035echo "configure:3036: checking "for --enable-log"" >&5
10f2d63a
VZ
3036 no_cache=0
3037 # Check whether --enable-log or --disable-log was given.
3038if test "${enable_log+set}" = set; then
3039 enableval="$enable_log"
3040
3041 if test "$enableval" = yes; then
3042 ac_cv_use_log='wxUSE_LOG=yes'
3043 else
3044 ac_cv_use_log='wxUSE_LOG=no'
3045 fi
3046
3047else
3048
3049 LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
3050 if test "x$LINE" != x ; then
3051 eval "DEFAULT_$LINE"
3052 else
3053 no_cache=1
3054 fi
3055
3056 ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
3057
3058fi
3059
3060
3061 eval "$ac_cv_use_log"
3062 if test "$no_cache" != 1; then
3063 echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
3064 fi
3065
3066 if test "$wxUSE_LOG" = yes; then
3067 echo "$ac_t""yes" 1>&6
3068 else
3069 echo "$ac_t""no" 1>&6
3070 fi
3071
3072
3073 echo $ac_n "checking "for --enable-streams"""... $ac_c" 1>&6
b64f0a5f 3074echo "configure:3075: checking "for --enable-streams"" >&5
10f2d63a
VZ
3075 no_cache=0
3076 # Check whether --enable-streams or --disable-streams was given.
3077if test "${enable_streams+set}" = set; then
3078 enableval="$enable_streams"
3079
3080 if test "$enableval" = yes; then
3081 ac_cv_use_streams='wxUSE_STREAMS=yes'
3082 else
3083 ac_cv_use_streams='wxUSE_STREAMS=no'
3084 fi
3085
3086else
3087
3088 LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
3089 if test "x$LINE" != x ; then
3090 eval "DEFAULT_$LINE"
3091 else
3092 no_cache=1
3093 fi
3094
3095 ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
3096
3097fi
3098
3099
3100 eval "$ac_cv_use_streams"
3101 if test "$no_cache" != 1; then
3102 echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
3103 fi
3104
3105 if test "$wxUSE_STREAMS" = yes; then
3106 echo "$ac_t""yes" 1>&6
3107 else
3108 echo "$ac_t""no" 1>&6
3109 fi
3110
3111
3112 echo $ac_n "checking "for --enable-file"""... $ac_c" 1>&6
b64f0a5f 3113echo "configure:3114: checking "for --enable-file"" >&5
10f2d63a
VZ
3114 no_cache=0
3115 # Check whether --enable-file or --disable-file was given.
3116if test "${enable_file+set}" = set; then
3117 enableval="$enable_file"
3118
3119 if test "$enableval" = yes; then
3120 ac_cv_use_file='wxUSE_FILE=yes'
3121 else
3122 ac_cv_use_file='wxUSE_FILE=no'
3123 fi
3124
3125else
3126
3127 LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
3128 if test "x$LINE" != x ; then
3129 eval "DEFAULT_$LINE"
3130 else
3131 no_cache=1
3132 fi
3133
3134 ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
3135
3136fi
3137
3138
3139 eval "$ac_cv_use_file"
3140 if test "$no_cache" != 1; then
3141 echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
3142 fi
3143
3144 if test "$wxUSE_FILE" = yes; then
3145 echo "$ac_t""yes" 1>&6
3146 else
3147 echo "$ac_t""no" 1>&6
3148 fi
3149
3150
3151 echo $ac_n "checking "for --enable-textfile"""... $ac_c" 1>&6
b64f0a5f 3152echo "configure:3153: checking "for --enable-textfile"" >&5
10f2d63a
VZ
3153 no_cache=0
3154 # Check whether --enable-textfile or --disable-textfile was given.
3155if test "${enable_textfile+set}" = set; then
3156 enableval="$enable_textfile"
3157
3158 if test "$enableval" = yes; then
3159 ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
3160 else
3161 ac_cv_use_textfile='wxUSE_TEXTFILE=no'
3162 fi
3163
3164else
3165
3166 LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
3167 if test "x$LINE" != x ; then
3168 eval "DEFAULT_$LINE"
3169 else
3170 no_cache=1
3171 fi
3172
3173 ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
3174
3175fi
3176
3177
3178 eval "$ac_cv_use_textfile"
3179 if test "$no_cache" != 1; then
3180 echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
3181 fi
3182
3183 if test "$wxUSE_TEXTFILE" = yes; then
3184 echo "$ac_t""yes" 1>&6
3185 else
3186 echo "$ac_t""no" 1>&6
3187 fi
3188
3189
3190 echo $ac_n "checking "for --enable-unicode"""... $ac_c" 1>&6
b64f0a5f 3191echo "configure:3192: checking "for --enable-unicode"" >&5
10f2d63a
VZ
3192 no_cache=0
3193 # Check whether --enable-unicode or --disable-unicode was given.
3194if test "${enable_unicode+set}" = set; then
3195 enableval="$enable_unicode"
3196
3197 if test "$enableval" = yes; then
3198 ac_cv_use_unicode='wxUSE_UNICODE=yes'
3199 else
3200 ac_cv_use_unicode='wxUSE_UNICODE=no'
3201 fi
3202
3203else
3204
3205 LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
3206 if test "x$LINE" != x ; then
3207 eval "DEFAULT_$LINE"
3208 else
3209 no_cache=1
3210 fi
3211
3212 ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
3213
3214fi
3215
3216
3217 eval "$ac_cv_use_unicode"
3218 if test "$no_cache" != 1; then
3219 echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
3220 fi
3221
3222 if test "$wxUSE_UNICODE" = yes; then
3223 echo "$ac_t""yes" 1>&6
3224 else
3225 echo "$ac_t""no" 1>&6
3226 fi
3227
3228
3229 echo $ac_n "checking "for --enable-wcsrtombs"""... $ac_c" 1>&6
b64f0a5f 3230echo "configure:3231: checking "for --enable-wcsrtombs"" >&5
10f2d63a
VZ
3231 no_cache=0
3232 # Check whether --enable-wcsrtombs or --disable-wcsrtombs was given.
3233if test "${enable_wcsrtombs+set}" = set; then
3234 enableval="$enable_wcsrtombs"
3235
3236 if test "$enableval" = yes; then
3237 ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS=yes'
3238 else
3239 ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS=no'
3240 fi
3241
3242else
3243
3244 LINE=`grep "wxUSE_WCSRTOMBS" ${wx_arg_cache_file}`
3245 if test "x$LINE" != x ; then
3246 eval "DEFAULT_$LINE"
3247 else
3248 no_cache=1
3249 fi
3250
3251 ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS='$DEFAULT_wxUSE_WCSRTOMBS
3252
3253fi
3254
3255
3256 eval "$ac_cv_use_wcsrtombs"
3257 if test "$no_cache" != 1; then
3258 echo $ac_cv_use_wcsrtombs >> ${wx_arg_cache_file}.tmp
3259 fi
3260
3261 if test "$wxUSE_WCSRTOMBS" = yes; then
3262 echo "$ac_t""yes" 1>&6
3263 else
3264 echo "$ac_t""no" 1>&6
3265 fi
3266
3267
3268 echo $ac_n "checking "for --enable-wxprintfv"""... $ac_c" 1>&6
b64f0a5f 3269echo "configure:3270: checking "for --enable-wxprintfv"" >&5
10f2d63a
VZ
3270 no_cache=0
3271 # Check whether --enable-wxprintfv or --disable-wxprintfv was given.
3272if test "${enable_wxprintfv+set}" = set; then
3273 enableval="$enable_wxprintfv"
3274
3275 if test "$enableval" = yes; then
3276 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes'
3277 else
3278 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no'
3279 fi
3280
3281else
3282
3283 LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}`
3284 if test "x$LINE" != x ; then
3285 eval "DEFAULT_$LINE"
3286 else
3287 no_cache=1
3288 fi
3289
3290 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF
3291
3292fi
3293
3294
3295 eval "$ac_cv_use_wxprintfv"
3296 if test "$no_cache" != 1; then
3297 echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp
3298 fi
3299
3300 if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then
3301 echo "$ac_t""yes" 1>&6
3302 else
3303 echo "$ac_t""no" 1>&6
3304 fi
3305
3306
10f2d63a 3307 echo $ac_n "checking "for --enable-std_iostreams"""... $ac_c" 1>&6
b64f0a5f 3308echo "configure:3309: checking "for --enable-std_iostreams"" >&5
10f2d63a
VZ
3309 no_cache=0
3310 # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
3311if test "${enable_std_iostreams+set}" = set; then
3312 enableval="$enable_std_iostreams"
3313
3314 if test "$enableval" = yes; then
3315 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
3316 else
3317 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
3318 fi
3319
3320else
3321
3322 LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
3323 if test "x$LINE" != x ; then
3324 eval "DEFAULT_$LINE"
3325 else
3326 no_cache=1
3327 fi
3328
3329 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
3330
3331fi
3332
3333
3334 eval "$ac_cv_use_std_iostreams"
3335 if test "$no_cache" != 1; then
3336 echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
3337 fi
3338
3339 if test "$wxUSE_STD_IOSTREAM" = yes; then
3340 echo "$ac_t""yes" 1>&6
3341 else
3342 echo "$ac_t""no" 1>&6
3343 fi
3344
3345
24528b0c 3346 echo $ac_n "checking "for --enable-filesystem"""... $ac_c" 1>&6
b64f0a5f 3347echo "configure:3348: checking "for --enable-filesystem"" >&5
24528b0c
VS
3348 no_cache=0
3349 # Check whether --enable-filesystem or --disable-filesystem was given.
3350if test "${enable_filesystem+set}" = set; then
3351 enableval="$enable_filesystem"
3352
3353 if test "$enableval" = yes; then
3354 ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
3355 else
3356 ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
3357 fi
3358
3359else
3360
3361 LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}`
3362 if test "x$LINE" != x ; then
3363 eval "DEFAULT_$LINE"
3364 else
3365 no_cache=1
3366 fi
3367
3368 ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
3369
3370fi
3371
3372
3373 eval "$ac_cv_use_filesystem"
3374 if test "$no_cache" != 1; then
3375 echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
3376 fi
3377
3378 if test "$wxUSE_FILESYSTEM" = yes; then
3379 echo "$ac_t""yes" 1>&6
3380 else
3381 echo "$ac_t""no" 1>&6
3382 fi
3383
3384
10f2d63a 3385 echo $ac_n "checking "for --enable-fs_inet"""... $ac_c" 1>&6
b64f0a5f 3386echo "configure:3387: checking "for --enable-fs_inet"" >&5
10f2d63a
VZ
3387 no_cache=0
3388 # Check whether --enable-fs_inet or --disable-fs_inet was given.
3389if test "${enable_fs_inet+set}" = set; then
3390 enableval="$enable_fs_inet"
3391
3392 if test "$enableval" = yes; then
3393 ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
3394 else
3395 ac_cv_use_fs_inet='wxUSE_FS_INET=no'
3396 fi
3397
3398else
3399
3400 LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
3401 if test "x$LINE" != x ; then
3402 eval "DEFAULT_$LINE"
3403 else
3404 no_cache=1
3405 fi
3406
3407 ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
3408
3409fi
3410
3411
3412 eval "$ac_cv_use_fs_inet"
3413 if test "$no_cache" != 1; then
3414 echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
3415 fi
3416
3417 if test "$wxUSE_FS_INET" = yes; then
3418 echo "$ac_t""yes" 1>&6
3419 else
3420 echo "$ac_t""no" 1>&6
3421 fi
3422
3423
3424 echo $ac_n "checking "for --enable-fs_zip"""... $ac_c" 1>&6
b64f0a5f 3425echo "configure:3426: checking "for --enable-fs_zip"" >&5
10f2d63a
VZ
3426 no_cache=0
3427 # Check whether --enable-fs_zip or --disable-fs_zip was given.
3428if test "${enable_fs_zip+set}" = set; then
3429 enableval="$enable_fs_zip"
3430
3431 if test "$enableval" = yes; then
3432 ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
3433 else
3434 ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
3435 fi
3436
3437else
3438
3439 LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
3440 if test "x$LINE" != x ; then
3441 eval "DEFAULT_$LINE"
3442 else
3443 no_cache=1
3444 fi
3445
3446 ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
3447
3448fi
3449
3450
3451 eval "$ac_cv_use_fs_zip"
3452 if test "$no_cache" != 1; then
3453 echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
3454 fi
3455
3456 if test "$wxUSE_FS_ZIP" = yes; then
3457 echo "$ac_t""yes" 1>&6
3458 else
3459 echo "$ac_t""no" 1>&6
3460 fi
3461
3462
3463 echo $ac_n "checking "for --enable-zipstream"""... $ac_c" 1>&6
b64f0a5f 3464echo "configure:3465: checking "for --enable-zipstream"" >&5
10f2d63a
VZ
3465 no_cache=0
3466 # Check whether --enable-zipstream or --disable-zipstream was given.
3467if test "${enable_zipstream+set}" = set; then
3468 enableval="$enable_zipstream"
3469
3470 if test "$enableval" = yes; then
3471 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
3472 else
3473 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
3474 fi
3475
3476else
3477
3478 LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
3479 if test "x$LINE" != x ; then
3480 eval "DEFAULT_$LINE"
3481 else
3482 no_cache=1
3483 fi
3484
3485 ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
3486
3487fi
3488
3489
3490 eval "$ac_cv_use_zipstream"
3491 if test "$no_cache" != 1; then
3492 echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
3493 fi
3494
3495 if test "$wxUSE_ZIPSTREAM" = yes; then
3496 echo "$ac_t""yes" 1>&6
3497 else
3498 echo "$ac_t""no" 1>&6
3499 fi
3500
3501
3502
eb4efbdc 3503 echo $ac_n "checking "for --enable-catch_segvs"""... $ac_c" 1>&6
b64f0a5f 3504echo "configure:3505: checking "for --enable-catch_segvs"" >&5
eb4efbdc
VZ
3505 no_cache=0
3506 # Check whether --enable-catch_segvs or --disable-catch_segvs was given.
3507if test "${enable_catch_segvs+set}" = set; then
3508 enableval="$enable_catch_segvs"
3509
3510 if test "$enableval" = yes; then
3511 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
3512 else
3513 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
3514 fi
3515
3516else
3517
3518 LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}`
3519 if test "x$LINE" != x ; then
3520 eval "DEFAULT_$LINE"
3521 else
3522 no_cache=1
3523 fi
3524
3525 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION
3526
3527fi
3528
3529
3530 eval "$ac_cv_use_catch_segvs"
3531 if test "$no_cache" != 1; then
3532 echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp
3533 fi
3534
3535 if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then
3536 echo "$ac_t""yes" 1>&6
3537 else
3538 echo "$ac_t""no" 1>&6
3539 fi
3540
3541
3542
10f2d63a
VZ
3543
3544 echo $ac_n "checking "for --enable-threads"""... $ac_c" 1>&6
b64f0a5f 3545echo "configure:3546: checking "for --enable-threads"" >&5
10f2d63a
VZ
3546 no_cache=0
3547 # Check whether --enable-threads or --disable-threads was given.
3548if test "${enable_threads+set}" = set; then
3549 enableval="$enable_threads"
3550
3551 if test "$enableval" = yes; then
3552 ac_cv_use_threads='wxUSE_THREADS=yes'
3553 else
3554 ac_cv_use_threads='wxUSE_THREADS=no'
3555 fi
3556
3557else
3558
3559 LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
3560 if test "x$LINE" != x ; then
3561 eval "DEFAULT_$LINE"
3562 else
3563 no_cache=1
3564 fi
3565
3566 ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
3567
3568fi
3569
3570
3571 eval "$ac_cv_use_threads"
3572 if test "$no_cache" != 1; then
3573 echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
3574 fi
3575
3576 if test "$wxUSE_THREADS" = yes; then
3577 echo "$ac_t""yes" 1>&6
3578 else
3579 echo "$ac_t""no" 1>&6
3580 fi
3581
3582
3583 echo $ac_n "checking "for --enable-serial"""... $ac_c" 1>&6
b64f0a5f 3584echo "configure:3585: checking "for --enable-serial"" >&5
10f2d63a
VZ
3585 no_cache=0
3586 # Check whether --enable-serial or --disable-serial was given.
3587if test "${enable_serial+set}" = set; then
3588 enableval="$enable_serial"
3589
3590 if test "$enableval" = yes; then
3591 ac_cv_use_serial='wxUSE_SERIAL=yes'
3592 else
3593 ac_cv_use_serial='wxUSE_SERIAL=no'
3594 fi
3595
3596else
3597
3598 LINE=`grep "wxUSE_SERIAL" ${wx_arg_cache_file}`
3599 if test "x$LINE" != x ; then
3600 eval "DEFAULT_$LINE"
3601 else
3602 no_cache=1
3603 fi
3604
3605 ac_cv_use_serial='wxUSE_SERIAL='$DEFAULT_wxUSE_SERIAL
3606
3607fi
3608
3609
3610 eval "$ac_cv_use_serial"
3611 if test "$no_cache" != 1; then
3612 echo $ac_cv_use_serial >> ${wx_arg_cache_file}.tmp
3613 fi
3614
3615 if test "$wxUSE_SERIAL" = yes; then
3616 echo "$ac_t""yes" 1>&6
3617 else
3618 echo "$ac_t""no" 1>&6
3619 fi
3620
3621
b12915c1
VZ
3622if test "$wxUSE_GUI" = "yes"; then
3623
10f2d63a
VZ
3624
3625
3626 echo $ac_n "checking "for --enable-docview"""... $ac_c" 1>&6
b64f0a5f 3627echo "configure:3628: checking "for --enable-docview"" >&5
10f2d63a
VZ
3628 no_cache=0
3629 # Check whether --enable-docview or --disable-docview was given.
3630if test "${enable_docview+set}" = set; then
3631 enableval="$enable_docview"
3632
3633 if test "$enableval" = yes; then
3634 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
3635 else
3636 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
3637 fi
3638
3639else
3640
3641 LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
3642 if test "x$LINE" != x ; then
3643 eval "DEFAULT_$LINE"
3644 else
3645 no_cache=1
3646 fi
3647
3648 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
3649
3650fi
3651
3652
3653 eval "$ac_cv_use_docview"
3654 if test "$no_cache" != 1; then
3655 echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
3656 fi
3657
3658 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
3659 echo "$ac_t""yes" 1>&6
3660 else
3661 echo "$ac_t""no" 1>&6
3662 fi
3663
3664
3665 echo $ac_n "checking "for --enable-help"""... $ac_c" 1>&6
b64f0a5f 3666echo "configure:3667: checking "for --enable-help"" >&5
10f2d63a
VZ
3667 no_cache=0
3668 # Check whether --enable-help or --disable-help was given.
3669if test "${enable_help+set}" = set; then
3670 enableval="$enable_help"
3671
3672 if test "$enableval" = yes; then
3673 ac_cv_use_help='wxUSE_HELP=yes'
3674 else
3675 ac_cv_use_help='wxUSE_HELP=no'
3676 fi
3677
3678else
3679
3680 LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
3681 if test "x$LINE" != x ; then
3682 eval "DEFAULT_$LINE"
3683 else
3684 no_cache=1
3685 fi
3686
3687 ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
3688
3689fi
3690
3691
3692 eval "$ac_cv_use_help"
3693 if test "$no_cache" != 1; then
3694 echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
3695 fi
3696
3697 if test "$wxUSE_HELP" = yes; then
3698 echo "$ac_t""yes" 1>&6
3699 else
3700 echo "$ac_t""no" 1>&6
3701 fi
3702
3703
3704 echo $ac_n "checking "for --enable-constraints"""... $ac_c" 1>&6
b64f0a5f 3705echo "configure:3706: checking "for --enable-constraints"" >&5
10f2d63a
VZ
3706 no_cache=0
3707 # Check whether --enable-constraints or --disable-constraints was given.
3708if test "${enable_constraints+set}" = set; then
3709 enableval="$enable_constraints"
3710
3711 if test "$enableval" = yes; then
3712 ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
3713 else
3714 ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
3715 fi
3716
3717else
3718
3719 LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
3720 if test "x$LINE" != x ; then
3721 eval "DEFAULT_$LINE"
3722 else
3723 no_cache=1
3724 fi
3725
3726 ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
3727
3728fi
3729
3730
3731 eval "$ac_cv_use_constraints"
3732 if test "$no_cache" != 1; then
3733 echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
3734 fi
3735
3736 if test "$wxUSE_CONSTRAINTS" = yes; then
3737 echo "$ac_t""yes" 1>&6
3738 else
3739 echo "$ac_t""no" 1>&6
3740 fi
3741
3742
3743 echo $ac_n "checking "for --enable-printarch"""... $ac_c" 1>&6
b64f0a5f 3744echo "configure:3745: checking "for --enable-printarch"" >&5
10f2d63a
VZ
3745 no_cache=0
3746 # Check whether --enable-printarch or --disable-printarch was given.
3747if test "${enable_printarch+set}" = set; then
3748 enableval="$enable_printarch"
3749
3750 if test "$enableval" = yes; then
3751 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
3752 else
3753 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
3754 fi
3755
3756else
3757
3758 LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
3759 if test "x$LINE" != x ; then
3760 eval "DEFAULT_$LINE"
3761 else
3762 no_cache=1
3763 fi
3764
3765 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
3766
3767fi
3768
3769
3770 eval "$ac_cv_use_printarch"
3771 if test "$no_cache" != 1; then
3772 echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
3773 fi
3774
3775 if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
3776 echo "$ac_t""yes" 1>&6
3777 else
3778 echo "$ac_t""no" 1>&6
3779 fi
3780
3781
3782 echo $ac_n "checking "for --enable-mdi"""... $ac_c" 1>&6
b64f0a5f 3783echo "configure:3784: checking "for --enable-mdi"" >&5
10f2d63a
VZ
3784 no_cache=0
3785 # Check whether --enable-mdi or --disable-mdi was given.
3786if test "${enable_mdi+set}" = set; then
3787 enableval="$enable_mdi"
3788
3789 if test "$enableval" = yes; then
3790 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=yes'
3791 else
3792 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=no'
3793 fi
3794
3795else
3796
3797 LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
3798 if test "x$LINE" != x ; then
3799 eval "DEFAULT_$LINE"
3800 else
3801 no_cache=1
3802 fi
3803
3804 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
3805
3806fi
3807
3808
3809 eval "$ac_cv_use_mdi"
3810 if test "$no_cache" != 1; then
3811 echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
3812 fi
3813
3814 if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
3815 echo "$ac_t""yes" 1>&6
3816 else
3817 echo "$ac_t""no" 1>&6
3818 fi
3819
3820
3821
3822 echo $ac_n "checking "for --enable-postscript"""... $ac_c" 1>&6
b64f0a5f 3823echo "configure:3824: checking "for --enable-postscript"" >&5
10f2d63a
VZ
3824 no_cache=0
3825 # Check whether --enable-postscript or --disable-postscript was given.
3826if test "${enable_postscript+set}" = set; then
3827 enableval="$enable_postscript"
3828
3829 if test "$enableval" = yes; then
3830 ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
3831 else
3832 ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
3833 fi
3834
3835else
3836
3837 LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
3838 if test "x$LINE" != x ; then
3839 eval "DEFAULT_$LINE"
3840 else
3841 no_cache=1
3842 fi
3843
3844 ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
3845
3846fi
3847
3848
3849 eval "$ac_cv_use_postscript"
3850 if test "$no_cache" != 1; then
3851 echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
3852 fi
3853
3854 if test "$wxUSE_POSTSCRIPT" = yes; then
3855 echo "$ac_t""yes" 1>&6
3856 else
3857 echo "$ac_t""no" 1>&6
3858 fi
3859
3860
3861
3862
3863 echo $ac_n "checking "for --enable-prologio"""... $ac_c" 1>&6
b64f0a5f 3864echo "configure:3865: checking "for --enable-prologio"" >&5
10f2d63a
VZ
3865 no_cache=0
3866 # Check whether --enable-prologio or --disable-prologio was given.
3867if test "${enable_prologio+set}" = set; then
3868 enableval="$enable_prologio"
3869
3870 if test "$enableval" = yes; then
3871 ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
3872 else
3873 ac_cv_use_prologio='wxUSE_PROLOGIO=no'
3874 fi
3875
3876else
3877
3878 LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
3879 if test "x$LINE" != x ; then
3880 eval "DEFAULT_$LINE"
3881 else
3882 no_cache=1
3883 fi
3884
3885 ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
3886
3887fi
3888
3889
3890 eval "$ac_cv_use_prologio"
3891 if test "$no_cache" != 1; then
3892 echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
3893 fi
3894
3895 if test "$wxUSE_PROLOGIO" = yes; then
3896 echo "$ac_t""yes" 1>&6
3897 else
3898 echo "$ac_t""no" 1>&6
3899 fi
3900
3901
3902 echo $ac_n "checking "for --enable-resources"""... $ac_c" 1>&6
b64f0a5f 3903echo "configure:3904: checking "for --enable-resources"" >&5
10f2d63a
VZ
3904 no_cache=0
3905 # Check whether --enable-resources or --disable-resources was given.
3906if test "${enable_resources+set}" = set; then
3907 enableval="$enable_resources"
3908
3909 if test "$enableval" = yes; then
3910 ac_cv_use_resources='wxUSE_RESOURCES=yes'
3911 else
3912 ac_cv_use_resources='wxUSE_RESOURCES=no'
3913 fi
3914
3915else
3916
3917 LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
3918 if test "x$LINE" != x ; then
3919 eval "DEFAULT_$LINE"
3920 else
3921 no_cache=1
3922 fi
3923
3924 ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
3925
3926fi
3927
3928
3929 eval "$ac_cv_use_resources"
3930 if test "$no_cache" != 1; then
3931 echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
3932 fi
3933
3934 if test "$wxUSE_RESOURCES" = yes; then
3935 echo "$ac_t""yes" 1>&6
3936 else
3937 echo "$ac_t""no" 1>&6
3938 fi
3939
3940
3941
3942 echo $ac_n "checking "for --enable-xresources"""... $ac_c" 1>&6
b64f0a5f 3943echo "configure:3944: checking "for --enable-xresources"" >&5
10f2d63a
VZ
3944 no_cache=0
3945 # Check whether --enable-xresources or --disable-xresources was given.
3946if test "${enable_xresources+set}" = set; then
3947 enableval="$enable_xresources"
3948
3949 if test "$enableval" = yes; then
3950 ac_cv_use_xresources='wxUSE_X_RESOURCES=yes'
3951 else
3952 ac_cv_use_xresources='wxUSE_X_RESOURCES=no'
3953 fi
3954
3955else
3956
3957 LINE=`grep "wxUSE_X_RESOURCES" ${wx_arg_cache_file}`
3958 if test "x$LINE" != x ; then
3959 eval "DEFAULT_$LINE"
3960 else
3961 no_cache=1
3962 fi
3963
3964 ac_cv_use_xresources='wxUSE_X_RESOURCES='$DEFAULT_wxUSE_X_RESOURCES
3965
3966fi
3967
3968
3969 eval "$ac_cv_use_xresources"
3970 if test "$no_cache" != 1; then
3971 echo $ac_cv_use_xresources >> ${wx_arg_cache_file}.tmp
3972 fi
3973
3974 if test "$wxUSE_X_RESOURCES" = yes; then
3975 echo "$ac_t""yes" 1>&6
3976 else
3977 echo "$ac_t""no" 1>&6
3978 fi
3979
3980
3981
3982
3983 echo $ac_n "checking "for --enable-clipboard"""... $ac_c" 1>&6
b64f0a5f 3984echo "configure:3985: checking "for --enable-clipboard"" >&5
10f2d63a
VZ
3985 no_cache=0
3986 # Check whether --enable-clipboard or --disable-clipboard was given.
3987if test "${enable_clipboard+set}" = set; then
3988 enableval="$enable_clipboard"
3989
3990 if test "$enableval" = yes; then
3991 ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
3992 else
3993 ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
3994 fi
3995
3996else
3997
3998 LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
3999 if test "x$LINE" != x ; then
4000 eval "DEFAULT_$LINE"
4001 else
4002 no_cache=1
4003 fi
4004
4005 ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
4006
4007fi
4008
4009
4010 eval "$ac_cv_use_clipboard"
4011 if test "$no_cache" != 1; then
4012 echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
4013 fi
4014
4015 if test "$wxUSE_CLIPBOARD" = yes; then
4016 echo "$ac_t""yes" 1>&6
4017 else
4018 echo "$ac_t""no" 1>&6
4019 fi
4020
4021
4022 echo $ac_n "checking "for --enable-dnd"""... $ac_c" 1>&6
b64f0a5f 4023echo "configure:4024: checking "for --enable-dnd"" >&5
10f2d63a
VZ
4024 no_cache=0
4025 # Check whether --enable-dnd or --disable-dnd was given.
4026if test "${enable_dnd+set}" = set; then
4027 enableval="$enable_dnd"
4028
4029 if test "$enableval" = yes; then
4030 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
4031 else
4032 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
4033 fi
4034
4035else
4036
4037 LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
4038 if test "x$LINE" != x ; then
4039 eval "DEFAULT_$LINE"
4040 else
4041 no_cache=1
4042 fi
4043
4044 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
4045
4046fi
4047
4048
4049 eval "$ac_cv_use_dnd"
4050 if test "$no_cache" != 1; then
4051 echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
4052 fi
4053
4054 if test "$wxUSE_DRAG_AND_DROP" = yes; then
4055 echo "$ac_t""yes" 1>&6
4056 else
4057 echo "$ac_t""no" 1>&6
4058 fi
4059
4060
b64f0a5f
RL
4061 echo $ac_n "checking "for --enable-metafile"""... $ac_c" 1>&6
4062echo "configure:4063: checking "for --enable-metafile"" >&5
4063 no_cache=0
4064 # Check whether --enable-metafile or --disable-metafile was given.
4065if test "${enable_metafile+set}" = set; then
4066 enableval="$enable_metafile"
4067
4068 if test "$enableval" = yes; then
4069 ac_cv_use_metafile='wxUSE_METAFILE=yes'
4070 else
4071 ac_cv_use_metafile='wxUSE_METAFILE=no'
4072 fi
4073
4074else
4075
4076 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
4077 if test "x$LINE" != x ; then
4078 eval "DEFAULT_$LINE"
4079 else
4080 no_cache=1
4081 fi
4082
4083 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
4084
4085fi
4086
4087
4088 eval "$ac_cv_use_metafile"
4089 if test "$no_cache" != 1; then
4090 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
4091 fi
4092
4093 if test "$wxUSE_METAFILE" = yes; then
4094 echo "$ac_t""yes" 1>&6
4095 else
4096 echo "$ac_t""no" 1>&6
4097 fi
4098
4099
10f2d63a
VZ
4100
4101 echo $ac_n "checking "for --enable-wxtree"""... $ac_c" 1>&6
b64f0a5f 4102echo "configure:4103: checking "for --enable-wxtree"" >&5
10f2d63a
VZ
4103 no_cache=0
4104 # Check whether --enable-wxtree or --disable-wxtree was given.
4105if test "${enable_wxtree+set}" = set; then
4106 enableval="$enable_wxtree"
4107
4108 if test "$enableval" = yes; then
4109 ac_cv_use_wxtree='wxUSE_WXTREE=yes'
4110 else
4111 ac_cv_use_wxtree='wxUSE_WXTREE=no'
4112 fi
4113
4114else
4115
4116 LINE=`grep "wxUSE_WXTREE" ${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_wxtree='wxUSE_WXTREE='$DEFAULT_wxUSE_WXTREE
4124
4125fi
4126
4127
4128 eval "$ac_cv_use_wxtree"
4129 if test "$no_cache" != 1; then
4130 echo $ac_cv_use_wxtree >> ${wx_arg_cache_file}.tmp
4131 fi
4132
4133 if test "$wxUSE_WXTREE" = yes; then
4134 echo "$ac_t""yes" 1>&6
4135 else
4136 echo "$ac_t""no" 1>&6
4137 fi
4138
4139
4140
4141
4142 echo $ac_n "checking "for --enable-controls"""... $ac_c" 1>&6
b64f0a5f 4143echo "configure:4144: checking "for --enable-controls"" >&5
10f2d63a
VZ
4144 no_cache=0
4145 # Check whether --enable-controls or --disable-controls was given.
4146if test "${enable_controls+set}" = set; then
4147 enableval="$enable_controls"
4148
4149 if test "$enableval" = yes; then
4150 ac_cv_use_controls='wxUSE_CONTROLS=yes'
4151 else
4152 ac_cv_use_controls='wxUSE_CONTROLS=no'
4153 fi
4154
4155else
4156
4157 LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
4158 if test "x$LINE" != x ; then
4159 eval "DEFAULT_$LINE"
4160 else
4161 no_cache=1
4162 fi
4163
4164 ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
4165
4166fi
4167
4168
4169 eval "$ac_cv_use_controls"
4170 if test "$no_cache" != 1; then
4171 echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
4172 fi
4173
4174 if test "$wxUSE_CONTROLS" = yes; then
4175 echo "$ac_t""yes" 1>&6
4176 else
4177 echo "$ac_t""no" 1>&6
4178 fi
4179
4180
4181if test "$wxUSE_CONTROLS" = "yes"; then
4182 DEFAULT_wxUSE_ACCEL=yes
4183 DEFAULT_wxUSE_CARET=yes
4184 DEFAULT_wxUSE_COMBOBOX=yes
4185 DEFAULT_wxUSE_BMPBUTTON=yes
4186 DEFAULT_wxUSE_CHECKBOX=yes
4187 DEFAULT_wxUSE_CHECKLISTBOX=yes
4188 DEFAULT_wxUSE_CHOICE=yes
4189 DEFAULT_wxUSE_GAUGE=yes
4190 DEFAULT_wxUSE_GRID=yes
cc977e5f 4191 DEFAULT_wxUSE_NEW_GRID=yes
10f2d63a
VZ
4192 DEFAULT_wxUSE_IMAGLIST=yes
4193 DEFAULT_wxUSE_LISTBOX=yes
4194 DEFAULT_wxUSE_LISTCTRL=yes
4195 DEFAULT_wxUSE_NOTEBOOK=yes
4196 DEFAULT_wxUSE_RADIOBOX=yes
4197 DEFAULT_wxUSE_RADIOBTN=yes
4198 DEFAULT_wxUSE_SASH=yes
4199 DEFAULT_wxUSE_SCROLLBAR=yes
4200 DEFAULT_wxUSE_SLIDER=yes
4201 DEFAULT_wxUSE_SPINBTN=yes
56cfaa52 4202 DEFAULT_wxUSE_SPINCTRL=yes
10f2d63a
VZ
4203 DEFAULT_wxUSE_SPLITTER=yes
4204 DEFAULT_wxUSE_STATBMP=yes
4205 DEFAULT_wxUSE_STATBOX=yes
4206 DEFAULT_wxUSE_STATLINE=yes
4207 DEFAULT_wxUSE_STATUSBAR=yes
4208 DEFAULT_wxUSE_TAB_DIALOG=yes
4209 DEFAULT_wxUSE_TOOLBAR=yes
360d6699
VZ
4210 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
4211 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
10f2d63a
VZ
4212 DEFAULT_wxUSE_TOOLTIPS=yes
4213 DEFAULT_wxUSE_TREECTRL=yes
4214elif test "$wxUSE_CONTROLS" = "no"; then
4215 DEFAULT_wxUSE_ACCEL=no
4216 DEFAULT_wxUSE_CARET=no
4217 DEFAULT_wxUSE_COMBOBOX=no
4218 DEFAULT_wxUSE_BMPBUTTON=no
4219 DEFAULT_wxUSE_CHECKBOX=no
4220 DEFAULT_wxUSE_CHECKLISTBOX=no
4221 DEFAULT_wxUSE_CHOICE=no
4222 DEFAULT_wxUSE_GAUGE=no
4223 DEFAULT_wxUSE_GRID=no
4224 DEFAULT_wxUSE_NEW_GRID=no
4225 DEFAULT_wxUSE_IMAGLIST=no
4226 DEFAULT_wxUSE_LISTBOX=no
4227 DEFAULT_wxUSE_LISTCTRL=no
4228 DEFAULT_wxUSE_NOTEBOOK=no
4229 DEFAULT_wxUSE_RADIOBOX=no
4230 DEFAULT_wxUSE_RADIOBTN=no
4231 DEFAULT_wxUSE_SASH=no
4232 DEFAULT_wxUSE_SCROLLBAR=no
4233 DEFAULT_wxUSE_SLIDER=no
4234 DEFAULT_wxUSE_SPINBTN=no
56cfaa52 4235 DEFAULT_wxUSE_SPINCTRL=no
10f2d63a
VZ
4236 DEFAULT_wxUSE_SPLITTER=no
4237 DEFAULT_wxUSE_STATBMP=no
4238 DEFAULT_wxUSE_STATBOX=no
4239 DEFAULT_wxUSE_STATLINE=no
4240 DEFAULT_wxUSE_STATUSBAR=no
4241 DEFAULT_wxUSE_TAB_DIALOG=no
4242 DEFAULT_wxUSE_TOOLBAR=no
360d6699
VZ
4243 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
4244 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
10f2d63a
VZ
4245 DEFAULT_wxUSE_TOOLTIPS=no
4246 DEFAULT_wxUSE_TREECTRL=no
4247fi
4248
4249
4250 echo $ac_n "checking "for --enable-accel"""... $ac_c" 1>&6
b64f0a5f 4251echo "configure:4252: checking "for --enable-accel"" >&5
10f2d63a
VZ
4252 no_cache=0
4253 # Check whether --enable-accel or --disable-accel was given.
4254if test "${enable_accel+set}" = set; then
4255 enableval="$enable_accel"
4256
4257 if test "$enableval" = yes; then
4258 ac_cv_use_accel='wxUSE_ACCEL=yes'
4259 else
4260 ac_cv_use_accel='wxUSE_ACCEL=no'
4261 fi
4262
4263else
4264
4265 LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
4266 if test "x$LINE" != x ; then
4267 eval "DEFAULT_$LINE"
4268 else
4269 no_cache=1
4270 fi
4271
4272 ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
4273
4274fi
4275
4276
4277 eval "$ac_cv_use_accel"
4278 if test "$no_cache" != 1; then
4279 echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
4280 fi
4281
4282 if test "$wxUSE_ACCEL" = yes; then
4283 echo "$ac_t""yes" 1>&6
4284 else
4285 echo "$ac_t""no" 1>&6
4286 fi
4287
4288
4289 echo $ac_n "checking "for --enable-caret"""... $ac_c" 1>&6
b64f0a5f 4290echo "configure:4291: checking "for --enable-caret"" >&5
10f2d63a
VZ
4291 no_cache=0
4292 # Check whether --enable-caret or --disable-caret was given.
4293if test "${enable_caret+set}" = set; then
4294 enableval="$enable_caret"
4295
4296 if test "$enableval" = yes; then
4297 ac_cv_use_caret='wxUSE_CARET=yes'
4298 else
4299 ac_cv_use_caret='wxUSE_CARET=no'
4300 fi
4301
4302else
4303
4304 LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
4305 if test "x$LINE" != x ; then
4306 eval "DEFAULT_$LINE"
4307 else
4308 no_cache=1
4309 fi
4310
4311 ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
4312
4313fi
4314
4315
4316 eval "$ac_cv_use_caret"
4317 if test "$no_cache" != 1; then
4318 echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
4319 fi
4320
4321 if test "$wxUSE_CARET" = yes; then
4322 echo "$ac_t""yes" 1>&6
4323 else
4324 echo "$ac_t""no" 1>&6
4325 fi
4326
4327
4328 echo $ac_n "checking "for --enable-bmpbutton"""... $ac_c" 1>&6
b64f0a5f 4329echo "configure:4330: checking "for --enable-bmpbutton"" >&5
10f2d63a
VZ
4330 no_cache=0
4331 # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
4332if test "${enable_bmpbutton+set}" = set; then
4333 enableval="$enable_bmpbutton"
4334
4335 if test "$enableval" = yes; then
4336 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
4337 else
4338 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
4339 fi
4340
4341else
4342
4343 LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
4344 if test "x$LINE" != x ; then
4345 eval "DEFAULT_$LINE"
4346 else
4347 no_cache=1
4348 fi
4349
4350 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
4351
4352fi
4353
4354
4355 eval "$ac_cv_use_bmpbutton"
4356 if test "$no_cache" != 1; then
4357 echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
4358 fi
4359
4360 if test "$wxUSE_BMPBUTTON" = yes; then
4361 echo "$ac_t""yes" 1>&6
4362 else
4363 echo "$ac_t""no" 1>&6
4364 fi
4365
4366
4367 echo $ac_n "checking "for --enable-checkbox"""... $ac_c" 1>&6
b64f0a5f 4368echo "configure:4369: checking "for --enable-checkbox"" >&5
10f2d63a
VZ
4369 no_cache=0
4370 # Check whether --enable-checkbox or --disable-checkbox was given.
4371if test "${enable_checkbox+set}" = set; then
4372 enableval="$enable_checkbox"
4373
4374 if test "$enableval" = yes; then
4375 ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
4376 else
4377 ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
4378 fi
4379
4380else
4381
4382 LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
4383 if test "x$LINE" != x ; then
4384 eval "DEFAULT_$LINE"
4385 else
4386 no_cache=1
4387 fi
4388
4389 ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
4390
4391fi
4392
4393
4394 eval "$ac_cv_use_checkbox"
4395 if test "$no_cache" != 1; then
4396 echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
4397 fi
4398
4399 if test "$wxUSE_CHECKBOX" = yes; then
4400 echo "$ac_t""yes" 1>&6
4401 else
4402 echo "$ac_t""no" 1>&6
4403 fi
4404
4405
4406 echo $ac_n "checking "for --enable-checklst"""... $ac_c" 1>&6
b64f0a5f 4407echo "configure:4408: checking "for --enable-checklst"" >&5
10f2d63a
VZ
4408 no_cache=0
4409 # Check whether --enable-checklst or --disable-checklst was given.
4410if test "${enable_checklst+set}" = set; then
4411 enableval="$enable_checklst"
4412
4413 if test "$enableval" = yes; then
4414 ac_cv_use_checklst='wxUSE_CHECKLST=yes'
4415 else
4416 ac_cv_use_checklst='wxUSE_CHECKLST=no'
4417 fi
4418
4419else
4420
4421 LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
4422 if test "x$LINE" != x ; then
4423 eval "DEFAULT_$LINE"
4424 else
4425 no_cache=1
4426 fi
4427
4428 ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
4429
4430fi
4431
4432
4433 eval "$ac_cv_use_checklst"
4434 if test "$no_cache" != 1; then
4435 echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
4436 fi
4437
4438 if test "$wxUSE_CHECKLST" = yes; then
4439 echo "$ac_t""yes" 1>&6
4440 else
4441 echo "$ac_t""no" 1>&6
4442 fi
4443
4444
4445 echo $ac_n "checking "for --enable-choice"""... $ac_c" 1>&6
b64f0a5f 4446echo "configure:4447: checking "for --enable-choice"" >&5
10f2d63a
VZ
4447 no_cache=0
4448 # Check whether --enable-choice or --disable-choice was given.
4449if test "${enable_choice+set}" = set; then
4450 enableval="$enable_choice"
4451
4452 if test "$enableval" = yes; then
4453 ac_cv_use_choice='wxUSE_CHOICE=yes'
4454 else
4455 ac_cv_use_choice='wxUSE_CHOICE=no'
4456 fi
4457
4458else
4459
4460 LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
4461 if test "x$LINE" != x ; then
4462 eval "DEFAULT_$LINE"
4463 else
4464 no_cache=1
4465 fi
4466
4467 ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
4468
4469fi
4470
4471
4472 eval "$ac_cv_use_choice"
4473 if test "$no_cache" != 1; then
4474 echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
4475 fi
4476
4477 if test "$wxUSE_CHOICE" = yes; then
4478 echo "$ac_t""yes" 1>&6
4479 else
4480 echo "$ac_t""no" 1>&6
4481 fi
4482
4483
4484 echo $ac_n "checking "for --enable-combobox"""... $ac_c" 1>&6
b64f0a5f 4485echo "configure:4486: checking "for --enable-combobox"" >&5
10f2d63a
VZ
4486 no_cache=0
4487 # Check whether --enable-combobox or --disable-combobox was given.
4488if test "${enable_combobox+set}" = set; then
4489 enableval="$enable_combobox"
4490
4491 if test "$enableval" = yes; then
4492 ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
4493 else
4494 ac_cv_use_combobox='wxUSE_COMBOBOX=no'
4495 fi
4496
4497else
4498
4499 LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
4500 if test "x$LINE" != x ; then
4501 eval "DEFAULT_$LINE"
4502 else
4503 no_cache=1
4504 fi
4505
4506 ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
4507
4508fi
4509
4510
4511 eval "$ac_cv_use_combobox"
4512 if test "$no_cache" != 1; then
4513 echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
4514 fi
4515
4516 if test "$wxUSE_COMBOBOX" = yes; then
4517 echo "$ac_t""yes" 1>&6
4518 else
4519 echo "$ac_t""no" 1>&6
4520 fi
4521
4522
4523 echo $ac_n "checking "for --enable-gauge"""... $ac_c" 1>&6
b64f0a5f 4524echo "configure:4525: checking "for --enable-gauge"" >&5
10f2d63a
VZ
4525 no_cache=0
4526 # Check whether --enable-gauge or --disable-gauge was given.
4527if test "${enable_gauge+set}" = set; then
4528 enableval="$enable_gauge"
4529
4530 if test "$enableval" = yes; then
4531 ac_cv_use_gauge='wxUSE_GAUGE=yes'
4532 else
4533 ac_cv_use_gauge='wxUSE_GAUGE=no'
4534 fi
4535
4536else
4537
4538 LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
4539 if test "x$LINE" != x ; then
4540 eval "DEFAULT_$LINE"
4541 else
4542 no_cache=1
4543 fi
4544
4545 ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
4546
4547fi
4548
4549
4550 eval "$ac_cv_use_gauge"
4551 if test "$no_cache" != 1; then
4552 echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
4553 fi
4554
4555 if test "$wxUSE_GAUGE" = yes; then
4556 echo "$ac_t""yes" 1>&6
4557 else
4558 echo "$ac_t""no" 1>&6
4559 fi
4560
4561
4562 echo $ac_n "checking "for --enable-grid"""... $ac_c" 1>&6
b64f0a5f 4563echo "configure:4564: checking "for --enable-grid"" >&5
10f2d63a
VZ
4564 no_cache=0
4565 # Check whether --enable-grid or --disable-grid was given.
4566if test "${enable_grid+set}" = set; then
4567 enableval="$enable_grid"
4568
4569 if test "$enableval" = yes; then
4570 ac_cv_use_grid='wxUSE_GRID=yes'
4571 else
4572 ac_cv_use_grid='wxUSE_GRID=no'
4573 fi
4574
4575else
4576
4577 LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
4578 if test "x$LINE" != x ; then
4579 eval "DEFAULT_$LINE"
4580 else
4581 no_cache=1
4582 fi
4583
4584 ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
4585
4586fi
4587
4588
4589 eval "$ac_cv_use_grid"
4590 if test "$no_cache" != 1; then
4591 echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
4592 fi
4593
4594 if test "$wxUSE_GRID" = yes; then
4595 echo "$ac_t""yes" 1>&6
4596 else
4597 echo "$ac_t""no" 1>&6
4598 fi
4599
4600
4601 echo $ac_n "checking "for --enable-newgrid"""... $ac_c" 1>&6
b64f0a5f 4602echo "configure:4603: checking "for --enable-newgrid"" >&5
10f2d63a
VZ
4603 no_cache=0
4604 # Check whether --enable-newgrid or --disable-newgrid was given.
4605if test "${enable_newgrid+set}" = set; then
4606 enableval="$enable_newgrid"
4607
4608 if test "$enableval" = yes; then
4609 ac_cv_use_newgrid='wxUSE_NEW_GRID=yes'
4610 else
4611 ac_cv_use_newgrid='wxUSE_NEW_GRID=no'
4612 fi
4613
4614else
4615
4616 LINE=`grep "wxUSE_NEW_GRID" ${wx_arg_cache_file}`
4617 if test "x$LINE" != x ; then
4618 eval "DEFAULT_$LINE"
4619 else
4620 no_cache=1
4621 fi
4622
4623 ac_cv_use_newgrid='wxUSE_NEW_GRID='$DEFAULT_wxUSE_NEW_GRID
4624
4625fi
4626
4627
4628 eval "$ac_cv_use_newgrid"
4629 if test "$no_cache" != 1; then
4630 echo $ac_cv_use_newgrid >> ${wx_arg_cache_file}.tmp
4631 fi
4632
4633 if test "$wxUSE_NEW_GRID" = yes; then
4634 echo "$ac_t""yes" 1>&6
4635 else
4636 echo "$ac_t""no" 1>&6
4637 fi
4638
4639
4640 echo $ac_n "checking "for --enable-imaglist"""... $ac_c" 1>&6
b64f0a5f 4641echo "configure:4642: checking "for --enable-imaglist"" >&5
10f2d63a
VZ
4642 no_cache=0
4643 # Check whether --enable-imaglist or --disable-imaglist was given.
4644if test "${enable_imaglist+set}" = set; then
4645 enableval="$enable_imaglist"
4646
4647 if test "$enableval" = yes; then
4648 ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
4649 else
4650 ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
4651 fi
4652
4653else
4654
4655 LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
4656 if test "x$LINE" != x ; then
4657 eval "DEFAULT_$LINE"
4658 else
4659 no_cache=1
4660 fi
4661
4662 ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
4663
4664fi
4665
4666
4667 eval "$ac_cv_use_imaglist"
4668 if test "$no_cache" != 1; then
4669 echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
4670 fi
4671
4672 if test "$wxUSE_IMAGLIST" = yes; then
4673 echo "$ac_t""yes" 1>&6
4674 else
4675 echo "$ac_t""no" 1>&6
4676 fi
4677
4678
4679 echo $ac_n "checking "for --enable-listbox"""... $ac_c" 1>&6
b64f0a5f 4680echo "configure:4681: checking "for --enable-listbox"" >&5
10f2d63a
VZ
4681 no_cache=0
4682 # Check whether --enable-listbox or --disable-listbox was given.
4683if test "${enable_listbox+set}" = set; then
4684 enableval="$enable_listbox"
4685
4686 if test "$enableval" = yes; then
4687 ac_cv_use_listbox='wxUSE_LISTBOX=yes'
4688 else
4689 ac_cv_use_listbox='wxUSE_LISTBOX=no'
4690 fi
4691
4692else
4693
4694 LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
4695 if test "x$LINE" != x ; then
4696 eval "DEFAULT_$LINE"
4697 else
4698 no_cache=1
4699 fi
4700
4701 ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
4702
4703fi
4704
4705
4706 eval "$ac_cv_use_listbox"
4707 if test "$no_cache" != 1; then
4708 echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
4709 fi
4710
4711 if test "$wxUSE_LISTBOX" = yes; then
4712 echo "$ac_t""yes" 1>&6
4713 else
4714 echo "$ac_t""no" 1>&6
4715 fi
4716
4717
4718 echo $ac_n "checking "for --enable-listctrl"""... $ac_c" 1>&6
b64f0a5f 4719echo "configure:4720: checking "for --enable-listctrl"" >&5
10f2d63a
VZ
4720 no_cache=0
4721 # Check whether --enable-listctrl or --disable-listctrl was given.
4722if test "${enable_listctrl+set}" = set; then
4723 enableval="$enable_listctrl"
4724
4725 if test "$enableval" = yes; then
4726 ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
4727 else
4728 ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
4729 fi
4730
4731else
4732
4733 LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
4734 if test "x$LINE" != x ; then
4735 eval "DEFAULT_$LINE"
4736 else
4737 no_cache=1
4738 fi
4739
4740 ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
4741
4742fi
4743
4744
4745 eval "$ac_cv_use_listctrl"
4746 if test "$no_cache" != 1; then
4747 echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
4748 fi
4749
4750 if test "$wxUSE_LISTCTRL" = yes; then
4751 echo "$ac_t""yes" 1>&6
4752 else
4753 echo "$ac_t""no" 1>&6
4754 fi
4755
4756
4757 echo $ac_n "checking "for --enable-notebook"""... $ac_c" 1>&6
b64f0a5f 4758echo "configure:4759: checking "for --enable-notebook"" >&5
10f2d63a
VZ
4759 no_cache=0
4760 # Check whether --enable-notebook or --disable-notebook was given.
4761if test "${enable_notebook+set}" = set; then
4762 enableval="$enable_notebook"
4763
4764 if test "$enableval" = yes; then
4765 ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
4766 else
4767 ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
4768 fi
4769
4770else
4771
4772 LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
4773 if test "x$LINE" != x ; then
4774 eval "DEFAULT_$LINE"
4775 else
4776 no_cache=1
4777 fi
4778
4779 ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
4780
4781fi
4782
4783
4784 eval "$ac_cv_use_notebook"
4785 if test "$no_cache" != 1; then
4786 echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
4787 fi
4788
4789 if test "$wxUSE_NOTEBOOK" = yes; then
4790 echo "$ac_t""yes" 1>&6
4791 else
4792 echo "$ac_t""no" 1>&6
4793 fi
4794
4795
4796 echo $ac_n "checking "for --enable-radiobox"""... $ac_c" 1>&6
b64f0a5f 4797echo "configure:4798: checking "for --enable-radiobox"" >&5
10f2d63a
VZ
4798 no_cache=0
4799 # Check whether --enable-radiobox or --disable-radiobox was given.
4800if test "${enable_radiobox+set}" = set; then
4801 enableval="$enable_radiobox"
4802
4803 if test "$enableval" = yes; then
4804 ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
4805 else
4806 ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
4807 fi
4808
4809else
4810
4811 LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
4812 if test "x$LINE" != x ; then
4813 eval "DEFAULT_$LINE"
4814 else
4815 no_cache=1
4816 fi
4817
4818 ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
4819
4820fi
4821
4822
4823 eval "$ac_cv_use_radiobox"
4824 if test "$no_cache" != 1; then
4825 echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
4826 fi
4827
4828 if test "$wxUSE_RADIOBOX" = yes; then
4829 echo "$ac_t""yes" 1>&6
4830 else
4831 echo "$ac_t""no" 1>&6
4832 fi
4833
4834
4835 echo $ac_n "checking "for --enable-radiobtn"""... $ac_c" 1>&6
b64f0a5f 4836echo "configure:4837: checking "for --enable-radiobtn"" >&5
10f2d63a
VZ
4837 no_cache=0
4838 # Check whether --enable-radiobtn or --disable-radiobtn was given.
4839if test "${enable_radiobtn+set}" = set; then
4840 enableval="$enable_radiobtn"
4841
4842 if test "$enableval" = yes; then
4843 ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
4844 else
4845 ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
4846 fi
4847
4848else
4849
4850 LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
4851 if test "x$LINE" != x ; then
4852 eval "DEFAULT_$LINE"
4853 else
4854 no_cache=1
4855 fi
4856
4857 ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
4858
4859fi
4860
4861
4862 eval "$ac_cv_use_radiobtn"
4863 if test "$no_cache" != 1; then
4864 echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
4865 fi
4866
4867 if test "$wxUSE_RADIOBTN" = yes; then
4868 echo "$ac_t""yes" 1>&6
4869 else
4870 echo "$ac_t""no" 1>&6
4871 fi
4872
4873
4874 echo $ac_n "checking "for --enable-sash"""... $ac_c" 1>&6
b64f0a5f 4875echo "configure:4876: checking "for --enable-sash"" >&5
10f2d63a
VZ
4876 no_cache=0
4877 # Check whether --enable-sash or --disable-sash was given.
4878if test "${enable_sash+set}" = set; then
4879 enableval="$enable_sash"
4880
4881 if test "$enableval" = yes; then
4882 ac_cv_use_sash='wxUSE_SASH=yes'
4883 else
4884 ac_cv_use_sash='wxUSE_SASH=no'
4885 fi
4886
4887else
4888
4889 LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
4890 if test "x$LINE" != x ; then
4891 eval "DEFAULT_$LINE"
4892 else
4893 no_cache=1
4894 fi
4895
4896 ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
4897
4898fi
4899
4900
4901 eval "$ac_cv_use_sash"
4902 if test "$no_cache" != 1; then
4903 echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
4904 fi
4905
4906 if test "$wxUSE_SASH" = yes; then
4907 echo "$ac_t""yes" 1>&6
4908 else
4909 echo "$ac_t""no" 1>&6
4910 fi
4911
4912
4913 echo $ac_n "checking "for --enable-scrollbar"""... $ac_c" 1>&6
b64f0a5f 4914echo "configure:4915: checking "for --enable-scrollbar"" >&5
10f2d63a
VZ
4915 no_cache=0
4916 # Check whether --enable-scrollbar or --disable-scrollbar was given.
4917if test "${enable_scrollbar+set}" = set; then
4918 enableval="$enable_scrollbar"
4919
4920 if test "$enableval" = yes; then
4921 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
4922 else
4923 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
4924 fi
4925
4926else
4927
4928 LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
4929 if test "x$LINE" != x ; then
4930 eval "DEFAULT_$LINE"
4931 else
4932 no_cache=1
4933 fi
4934
4935 ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
4936
4937fi
4938
4939
4940 eval "$ac_cv_use_scrollbar"
4941 if test "$no_cache" != 1; then
4942 echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
4943 fi
4944
4945 if test "$wxUSE_SCROLLBAR" = yes; then
4946 echo "$ac_t""yes" 1>&6
4947 else
4948 echo "$ac_t""no" 1>&6
4949 fi
4950
4951
4952 echo $ac_n "checking "for --enable-slider"""... $ac_c" 1>&6
b64f0a5f 4953echo "configure:4954: checking "for --enable-slider"" >&5
10f2d63a
VZ
4954 no_cache=0
4955 # Check whether --enable-slider or --disable-slider was given.
4956if test "${enable_slider+set}" = set; then
4957 enableval="$enable_slider"
4958
4959 if test "$enableval" = yes; then
4960 ac_cv_use_slider='wxUSE_SLIDER=yes'
4961 else
4962 ac_cv_use_slider='wxUSE_SLIDER=no'
4963 fi
4964
4965else
4966
4967 LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
4968 if test "x$LINE" != x ; then
4969 eval "DEFAULT_$LINE"
4970 else
4971 no_cache=1
4972 fi
4973
4974 ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
4975
4976fi
4977
4978
4979 eval "$ac_cv_use_slider"
4980 if test "$no_cache" != 1; then
4981 echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
4982 fi
4983
4984 if test "$wxUSE_SLIDER" = yes; then
4985 echo "$ac_t""yes" 1>&6
4986 else
4987 echo "$ac_t""no" 1>&6
4988 fi
4989
4990
4991 echo $ac_n "checking "for --enable-spinbtn"""... $ac_c" 1>&6
b64f0a5f 4992echo "configure:4993: checking "for --enable-spinbtn"" >&5
10f2d63a
VZ
4993 no_cache=0
4994 # Check whether --enable-spinbtn or --disable-spinbtn was given.
4995if test "${enable_spinbtn+set}" = set; then
4996 enableval="$enable_spinbtn"
4997
4998 if test "$enableval" = yes; then
4999 ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
5000 else
5001 ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
5002 fi
5003
5004else
5005
5006 LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
5007 if test "x$LINE" != x ; then
5008 eval "DEFAULT_$LINE"
5009 else
5010 no_cache=1
5011 fi
5012
5013 ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
5014
5015fi
5016
5017
5018 eval "$ac_cv_use_spinbtn"
5019 if test "$no_cache" != 1; then
5020 echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
5021 fi
5022
5023 if test "$wxUSE_SPINBTN" = yes; then
5024 echo "$ac_t""yes" 1>&6
5025 else
5026 echo "$ac_t""no" 1>&6
5027 fi
5028
5029
56cfaa52 5030 echo $ac_n "checking "for --enable-spinctrl"""... $ac_c" 1>&6
b64f0a5f 5031echo "configure:5032: checking "for --enable-spinctrl"" >&5
56cfaa52
RR
5032 no_cache=0
5033 # Check whether --enable-spinctrl or --disable-spinctrl was given.
5034if test "${enable_spinctrl+set}" = set; then
5035 enableval="$enable_spinctrl"
5036
5037 if test "$enableval" = yes; then
5038 ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
5039 else
5040 ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
5041 fi
5042
5043else
5044
5045 LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
5046 if test "x$LINE" != x ; then
5047 eval "DEFAULT_$LINE"
5048 else
5049 no_cache=1
5050 fi
5051
5052 ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
5053
5054fi
5055
5056
5057 eval "$ac_cv_use_spinctrl"
5058 if test "$no_cache" != 1; then
5059 echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
5060 fi
5061
5062 if test "$wxUSE_SPINCTRL" = yes; then
5063 echo "$ac_t""yes" 1>&6
5064 else
5065 echo "$ac_t""no" 1>&6
5066 fi
5067
5068
10f2d63a 5069 echo $ac_n "checking "for --enable-splitter"""... $ac_c" 1>&6
b64f0a5f 5070echo "configure:5071: checking "for --enable-splitter"" >&5
10f2d63a
VZ
5071 no_cache=0
5072 # Check whether --enable-splitter or --disable-splitter was given.
5073if test "${enable_splitter+set}" = set; then
5074 enableval="$enable_splitter"
5075
5076 if test "$enableval" = yes; then
5077 ac_cv_use_splitter='wxUSE_SPLITTER=yes'
5078 else
5079 ac_cv_use_splitter='wxUSE_SPLITTER=no'
5080 fi
5081
5082else
5083
5084 LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
5085 if test "x$LINE" != x ; then
5086 eval "DEFAULT_$LINE"
5087 else
5088 no_cache=1
5089 fi
5090
5091 ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
5092
5093fi
5094
5095
5096 eval "$ac_cv_use_splitter"
5097 if test "$no_cache" != 1; then
5098 echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
5099 fi
5100
5101 if test "$wxUSE_SPLITTER" = yes; then
5102 echo "$ac_t""yes" 1>&6
5103 else
5104 echo "$ac_t""no" 1>&6
5105 fi
5106
5107
5108 echo $ac_n "checking "for --enable-statbmp"""... $ac_c" 1>&6
b64f0a5f 5109echo "configure:5110: checking "for --enable-statbmp"" >&5
10f2d63a
VZ
5110 no_cache=0
5111 # Check whether --enable-statbmp or --disable-statbmp was given.
5112if test "${enable_statbmp+set}" = set; then
5113 enableval="$enable_statbmp"
5114
5115 if test "$enableval" = yes; then
5116 ac_cv_use_statbmp='wxUSE_STATBMP=yes'
5117 else
5118 ac_cv_use_statbmp='wxUSE_STATBMP=no'
5119 fi
5120
5121else
5122
5123 LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
5124 if test "x$LINE" != x ; then
5125 eval "DEFAULT_$LINE"
5126 else
5127 no_cache=1
5128 fi
5129
5130 ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
5131
5132fi
5133
5134
5135 eval "$ac_cv_use_statbmp"
5136 if test "$no_cache" != 1; then
5137 echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
5138 fi
5139
5140 if test "$wxUSE_STATBMP" = yes; then
5141 echo "$ac_t""yes" 1>&6
5142 else
5143 echo "$ac_t""no" 1>&6
5144 fi
5145
5146
5147 echo $ac_n "checking "for --enable-statbox"""... $ac_c" 1>&6
b64f0a5f 5148echo "configure:5149: checking "for --enable-statbox"" >&5
10f2d63a
VZ
5149 no_cache=0
5150 # Check whether --enable-statbox or --disable-statbox was given.
5151if test "${enable_statbox+set}" = set; then
5152 enableval="$enable_statbox"
5153
5154 if test "$enableval" = yes; then
5155 ac_cv_use_statbox='wxUSE_STATBOX=yes'
5156 else
5157 ac_cv_use_statbox='wxUSE_STATBOX=no'
5158 fi
5159
5160else
5161
5162 LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
5163 if test "x$LINE" != x ; then
5164 eval "DEFAULT_$LINE"
5165 else
5166 no_cache=1
5167 fi
5168
5169 ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
5170
5171fi
5172
5173
5174 eval "$ac_cv_use_statbox"
5175 if test "$no_cache" != 1; then
5176 echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
5177 fi
5178
5179 if test "$wxUSE_STATBOX" = yes; then
5180 echo "$ac_t""yes" 1>&6
5181 else
5182 echo "$ac_t""no" 1>&6
5183 fi
5184
5185
5186 echo $ac_n "checking "for --enable-statline"""... $ac_c" 1>&6
b64f0a5f 5187echo "configure:5188: checking "for --enable-statline"" >&5
10f2d63a
VZ
5188 no_cache=0
5189 # Check whether --enable-statline or --disable-statline was given.
5190if test "${enable_statline+set}" = set; then
5191 enableval="$enable_statline"
5192
5193 if test "$enableval" = yes; then
5194 ac_cv_use_statline='wxUSE_STATLINE=yes'
5195 else
5196 ac_cv_use_statline='wxUSE_STATLINE=no'
5197 fi
5198
5199else
5200
5201 LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
5202 if test "x$LINE" != x ; then
5203 eval "DEFAULT_$LINE"
5204 else
5205 no_cache=1
5206 fi
5207
5208 ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
5209
5210fi
5211
5212
5213 eval "$ac_cv_use_statline"
5214 if test "$no_cache" != 1; then
5215 echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
5216 fi
5217
5218 if test "$wxUSE_STATLINE" = yes; then
5219 echo "$ac_t""yes" 1>&6
5220 else
5221 echo "$ac_t""no" 1>&6
5222 fi
5223
5224
5225 echo $ac_n "checking "for --enable-statusbar"""... $ac_c" 1>&6
b64f0a5f 5226echo "configure:5227: checking "for --enable-statusbar"" >&5
10f2d63a
VZ
5227 no_cache=0
5228 # Check whether --enable-statusbar or --disable-statusbar was given.
5229if test "${enable_statusbar+set}" = set; then
5230 enableval="$enable_statusbar"
5231
5232 if test "$enableval" = yes; then
5233 ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
5234 else
5235 ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
5236 fi
5237
5238else
5239
5240 LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
5241 if test "x$LINE" != x ; then
5242 eval "DEFAULT_$LINE"
5243 else
5244 no_cache=1
5245 fi
5246
5247 ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
5248
5249fi
5250
5251
5252 eval "$ac_cv_use_statusbar"
5253 if test "$no_cache" != 1; then
5254 echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
5255 fi
5256
5257 if test "$wxUSE_STATUSBAR" = yes; then
5258 echo "$ac_t""yes" 1>&6
5259 else
5260 echo "$ac_t""no" 1>&6
5261 fi
5262
5263
5264 echo $ac_n "checking "for --enable-tabdialog"""... $ac_c" 1>&6
b64f0a5f 5265echo "configure:5266: checking "for --enable-tabdialog"" >&5
10f2d63a
VZ
5266 no_cache=0
5267 # Check whether --enable-tabdialog or --disable-tabdialog was given.
5268if test "${enable_tabdialog+set}" = set; then
5269 enableval="$enable_tabdialog"
5270
5271 if test "$enableval" = yes; then
5272 ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes'
5273 else
5274 ac_cv_use_tabdialog='wxUSE_TABDIALOG=no'
5275 fi
5276
5277else
5278
5279 LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}`
5280 if test "x$LINE" != x ; then
5281 eval "DEFAULT_$LINE"
5282 else
5283 no_cache=1
5284 fi
5285
5286 ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG
5287
5288fi
5289
5290
5291 eval "$ac_cv_use_tabdialog"
5292 if test "$no_cache" != 1; then
5293 echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
5294 fi
5295
5296 if test "$wxUSE_TABDIALOG" = yes; then
5297 echo "$ac_t""yes" 1>&6
5298 else
5299 echo "$ac_t""no" 1>&6
5300 fi
5301
5302
5303 echo $ac_n "checking "for --enable-toolbar"""... $ac_c" 1>&6
b64f0a5f 5304echo "configure:5305: checking "for --enable-toolbar"" >&5
10f2d63a
VZ
5305 no_cache=0
5306 # Check whether --enable-toolbar or --disable-toolbar was given.
5307if test "${enable_toolbar+set}" = set; then
5308 enableval="$enable_toolbar"
5309
5310 if test "$enableval" = yes; then
5311 ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
5312 else
5313 ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
5314 fi
5315
5316else
5317
5318 LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
5319 if test "x$LINE" != x ; then
5320 eval "DEFAULT_$LINE"
5321 else
5322 no_cache=1
5323 fi
5324
5325 ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
5326
5327fi
5328
5329
5330 eval "$ac_cv_use_toolbar"
5331 if test "$no_cache" != 1; then
5332 echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
5333 fi
5334
5335 if test "$wxUSE_TOOLBAR" = yes; then
5336 echo "$ac_t""yes" 1>&6
5337 else
5338 echo "$ac_t""no" 1>&6
5339 fi
5340
5341
360d6699 5342 echo $ac_n "checking "for --enable-tbarnative"""... $ac_c" 1>&6
b64f0a5f 5343echo "configure:5344: checking "for --enable-tbarnative"" >&5
360d6699
VZ
5344 no_cache=0
5345 # Check whether --enable-tbarnative or --disable-tbarnative was given.
5346if test "${enable_tbarnative+set}" = set; then
5347 enableval="$enable_tbarnative"
5348
5349 if test "$enableval" = yes; then
5350 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
5351 else
5352 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
5353 fi
5354
5355else
5356
5357 LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
5358 if test "x$LINE" != x ; then
5359 eval "DEFAULT_$LINE"
5360 else
5361 no_cache=1
5362 fi
5363
5364 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
5365
5366fi
5367
5368
5369 eval "$ac_cv_use_tbarnative"
5370 if test "$no_cache" != 1; then
5371 echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
5372 fi
5373
5374 if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
5375 echo "$ac_t""yes" 1>&6
5376 else
5377 echo "$ac_t""no" 1>&6
5378 fi
5379
5380
5381 echo $ac_n "checking "for --enable-tbarsmpl"""... $ac_c" 1>&6
b64f0a5f 5382echo "configure:5383: checking "for --enable-tbarsmpl"" >&5
360d6699
VZ
5383 no_cache=0
5384 # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given.
5385if test "${enable_tbarsmpl+set}" = set; then
5386 enableval="$enable_tbarsmpl"
5387
5388 if test "$enableval" = yes; then
5389 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes'
5390 else
5391 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no'
5392 fi
5393
5394else
5395
5396 LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}`
5397 if test "x$LINE" != x ; then
5398 eval "DEFAULT_$LINE"
5399 else
5400 no_cache=1
5401 fi
5402
5403 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE
5404
5405fi
5406
5407
5408 eval "$ac_cv_use_tbarsmpl"
5409 if test "$no_cache" != 1; then
5410 echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp
5411 fi
5412
5413 if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then
5414 echo "$ac_t""yes" 1>&6
5415 else
5416 echo "$ac_t""no" 1>&6
5417 fi
5418
5419
10f2d63a 5420 echo $ac_n "checking "for --enable-treectrl"""... $ac_c" 1>&6
b64f0a5f 5421echo "configure:5422: checking "for --enable-treectrl"" >&5
10f2d63a
VZ
5422 no_cache=0
5423 # Check whether --enable-treectrl or --disable-treectrl was given.
5424if test "${enable_treectrl+set}" = set; then
5425 enableval="$enable_treectrl"
5426
5427 if test "$enableval" = yes; then
5428 ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
5429 else
5430 ac_cv_use_treectrl='wxUSE_TREECTRL=no'
5431 fi
5432
5433else
5434
5435 LINE=`grep "wxUSE_TREECTRL" ${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_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
5443
5444fi
5445
5446
5447 eval "$ac_cv_use_treectrl"
5448 if test "$no_cache" != 1; then
5449 echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
5450 fi
5451
5452 if test "$wxUSE_TREECTRL" = yes; then
5453 echo "$ac_t""yes" 1>&6
5454 else
5455 echo "$ac_t""no" 1>&6
5456 fi
5457
5458
5459
5460
5461 echo $ac_n "checking "for --enable-commondlg"""... $ac_c" 1>&6
b64f0a5f 5462echo "configure:5463: checking "for --enable-commondlg"" >&5
10f2d63a
VZ
5463 no_cache=0
5464 # Check whether --enable-commondlg or --disable-commondlg was given.
5465if test "${enable_commondlg+set}" = set; then
5466 enableval="$enable_commondlg"
5467
5468 if test "$enableval" = yes; then
5469 ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
5470 else
5471 ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
5472 fi
5473
5474else
5475
5476 LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
5477 if test "x$LINE" != x ; then
5478 eval "DEFAULT_$LINE"
5479 else
5480 no_cache=1
5481 fi
5482
5483 ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
5484
5485fi
5486
5487
5488 eval "$ac_cv_use_commondlg"
5489 if test "$no_cache" != 1; then
5490 echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
5491 fi
5492
5493 if test "$wxUSE_COMMONDLGS" = yes; then
5494 echo "$ac_t""yes" 1>&6
5495 else
5496 echo "$ac_t""no" 1>&6
5497 fi
5498
5499
5500 echo $ac_n "checking "for --enable-dirdlg"""... $ac_c" 1>&6
b64f0a5f 5501echo "configure:5502: checking "for --enable-dirdlg"" >&5
10f2d63a
VZ
5502 no_cache=0
5503 # Check whether --enable-dirdlg or --disable-dirdlg was given.
5504if test "${enable_dirdlg+set}" = set; then
5505 enableval="$enable_dirdlg"
5506
5507 if test "$enableval" = yes; then
5508 ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
5509 else
5510 ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
5511 fi
5512
5513else
5514
5515 LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
5516 if test "x$LINE" != x ; then
5517 eval "DEFAULT_$LINE"
5518 else
5519 no_cache=1
5520 fi
5521
5522 ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
5523
5524fi
5525
5526
5527 eval "$ac_cv_use_dirdlg"
5528 if test "$no_cache" != 1; then
5529 echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
5530 fi
5531
5532 if test "$wxUSE_DIRDLG" = yes; then
5533 echo "$ac_t""yes" 1>&6
5534 else
5535 echo "$ac_t""no" 1>&6
5536 fi
5537
5538
5539 echo $ac_n "checking "for --enable-textdlg"""... $ac_c" 1>&6
b64f0a5f 5540echo "configure:5541: checking "for --enable-textdlg"" >&5
10f2d63a
VZ
5541 no_cache=0
5542 # Check whether --enable-textdlg or --disable-textdlg was given.
5543if test "${enable_textdlg+set}" = set; then
5544 enableval="$enable_textdlg"
5545
5546 if test "$enableval" = yes; then
5547 ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
5548 else
5549 ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
5550 fi
5551
5552else
5553
5554 LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
5555 if test "x$LINE" != x ; then
5556 eval "DEFAULT_$LINE"
5557 else
5558 no_cache=1
5559 fi
5560
5561 ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
5562
5563fi
5564
5565
5566 eval "$ac_cv_use_textdlg"
5567 if test "$no_cache" != 1; then
5568 echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
5569 fi
5570
5571 if test "$wxUSE_TEXTDLG" = yes; then
5572 echo "$ac_t""yes" 1>&6
5573 else
5574 echo "$ac_t""no" 1>&6
5575 fi
5576
5577
5578 echo $ac_n "checking "for --enable-tipdlg"""... $ac_c" 1>&6
b64f0a5f 5579echo "configure:5580: checking "for --enable-tipdlg"" >&5
10f2d63a
VZ
5580 no_cache=0
5581 # Check whether --enable-tipdlg or --disable-tipdlg was given.
5582if test "${enable_tipdlg+set}" = set; then
5583 enableval="$enable_tipdlg"
5584
5585 if test "$enableval" = yes; then
5586 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
5587 else
5588 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
5589 fi
5590
5591else
5592
5593 LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
5594 if test "x$LINE" != x ; then
5595 eval "DEFAULT_$LINE"
5596 else
5597 no_cache=1
5598 fi
5599
5600 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
5601
5602fi
5603
5604
5605 eval "$ac_cv_use_tipdlg"
5606 if test "$no_cache" != 1; then
5607 echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
5608 fi
5609
5610 if test "$wxUSE_STARTUP_TIPS" = yes; then
5611 echo "$ac_t""yes" 1>&6
5612 else
5613 echo "$ac_t""no" 1>&6
5614 fi
5615
5616
5617 echo $ac_n "checking "for --enable-progressdlg"""... $ac_c" 1>&6
b64f0a5f 5618echo "configure:5619: checking "for --enable-progressdlg"" >&5
10f2d63a
VZ
5619 no_cache=0
5620 # Check whether --enable-progressdlg or --disable-progressdlg was given.
5621if test "${enable_progressdlg+set}" = set; then
5622 enableval="$enable_progressdlg"
5623
5624 if test "$enableval" = yes; then
5625 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
5626 else
5627 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
5628 fi
5629
5630else
5631
5632 LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
5633 if test "x$LINE" != x ; then
5634 eval "DEFAULT_$LINE"
5635 else
5636 no_cache=1
5637 fi
5638
5639 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
5640
5641fi
5642
5643
5644 eval "$ac_cv_use_progressdlg"
5645 if test "$no_cache" != 1; then
5646 echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
5647 fi
5648
5649 if test "$wxUSE_PROGRESSDLG" = yes; then
5650 echo "$ac_t""yes" 1>&6
5651 else
5652 echo "$ac_t""no" 1>&6
5653 fi
5654
5655
5656 echo $ac_n "checking "for --enable-miniframe"""... $ac_c" 1>&6
b64f0a5f 5657echo "configure:5658: checking "for --enable-miniframe"" >&5
10f2d63a
VZ
5658 no_cache=0
5659 # Check whether --enable-miniframe or --disable-miniframe was given.
5660if test "${enable_miniframe+set}" = set; then
5661 enableval="$enable_miniframe"
5662
5663 if test "$enableval" = yes; then
5664 ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
5665 else
5666 ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
5667 fi
5668
5669else
5670
5671 LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
5672 if test "x$LINE" != x ; then
5673 eval "DEFAULT_$LINE"
5674 else
5675 no_cache=1
5676 fi
5677
5678 ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
5679
5680fi
5681
5682
5683 eval "$ac_cv_use_miniframe"
5684 if test "$no_cache" != 1; then
5685 echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
5686 fi
5687
5688 if test "$wxUSE_MINIFRAME" = yes; then
5689 echo "$ac_t""yes" 1>&6
5690 else
5691 echo "$ac_t""no" 1>&6
5692 fi
5693
5694
5695 echo $ac_n "checking "for --enable-html"""... $ac_c" 1>&6
b64f0a5f 5696echo "configure:5697: checking "for --enable-html"" >&5
10f2d63a
VZ
5697 no_cache=0
5698 # Check whether --enable-html or --disable-html was given.
5699if test "${enable_html+set}" = set; then
5700 enableval="$enable_html"
5701
5702 if test "$enableval" = yes; then
5703 ac_cv_use_html='wxUSE_HTML=yes'
5704 else
5705 ac_cv_use_html='wxUSE_HTML=no'
5706 fi
5707
5708else
5709
5710 LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
5711 if test "x$LINE" != x ; then
5712 eval "DEFAULT_$LINE"
5713 else
5714 no_cache=1
5715 fi
5716
5717 ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
5718
5719fi
5720
5721
5722 eval "$ac_cv_use_html"
5723 if test "$no_cache" != 1; then
5724 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
5725 fi
5726
5727 if test "$wxUSE_HTML" = yes; then
5728 echo "$ac_t""yes" 1>&6
5729 else
5730 echo "$ac_t""no" 1>&6
5731 fi
5732
5733
5734 echo $ac_n "checking "for --enable-tooltips"""... $ac_c" 1>&6
b64f0a5f 5735echo "configure:5736: checking "for --enable-tooltips"" >&5
10f2d63a
VZ
5736 no_cache=0
5737 # Check whether --enable-tooltips or --disable-tooltips was given.
5738if test "${enable_tooltips+set}" = set; then
5739 enableval="$enable_tooltips"
5740
5741 if test "$enableval" = yes; then
5742 ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
5743 else
5744 ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
5745 fi
5746
5747else
5748
5749 LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
5750 if test "x$LINE" != x ; then
5751 eval "DEFAULT_$LINE"
5752 else
5753 no_cache=1
5754 fi
5755
5756 ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
5757
5758fi
5759
5760
5761 eval "$ac_cv_use_tooltips"
5762 if test "$no_cache" != 1; then
5763 echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
5764 fi
5765
5766 if test "$wxUSE_TOOLTIPS" = yes; then
5767 echo "$ac_t""yes" 1>&6
5768 else
5769 echo "$ac_t""no" 1>&6
5770 fi
5771
5772
5773 echo $ac_n "checking "for --enable-splines"""... $ac_c" 1>&6
b64f0a5f 5774echo "configure:5775: checking "for --enable-splines"" >&5
10f2d63a
VZ
5775 no_cache=0
5776 # Check whether --enable-splines or --disable-splines was given.
5777if test "${enable_splines+set}" = set; then
5778 enableval="$enable_splines"
5779
5780 if test "$enableval" = yes; then
5781 ac_cv_use_splines='wxUSE_SPLINES=yes'
5782 else
5783 ac_cv_use_splines='wxUSE_SPLINES=no'
5784 fi
5785
5786else
5787
5788 LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
5789 if test "x$LINE" != x ; then
5790 eval "DEFAULT_$LINE"
5791 else
5792 no_cache=1
5793 fi
5794
5795 ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
5796
5797fi
5798
5799
5800 eval "$ac_cv_use_splines"
5801 if test "$no_cache" != 1; then
5802 echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
5803 fi
5804
5805 if test "$wxUSE_SPLINES" = yes; then
5806 echo "$ac_t""yes" 1>&6
5807 else
5808 echo "$ac_t""no" 1>&6
5809 fi
5810
5811
5812 echo $ac_n "checking "for --enable-validators"""... $ac_c" 1>&6
b64f0a5f 5813echo "configure:5814: checking "for --enable-validators"" >&5
10f2d63a
VZ
5814 no_cache=0
5815 # Check whether --enable-validators or --disable-validators was given.
5816if test "${enable_validators+set}" = set; then
5817 enableval="$enable_validators"
5818
5819 if test "$enableval" = yes; then
5820 ac_cv_use_validators='wxUSE_VALIDATORS=yes'
5821 else
5822 ac_cv_use_validators='wxUSE_VALIDATORS=no'
5823 fi
5824
5825else
5826
5827 LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
5828 if test "x$LINE" != x ; then
5829 eval "DEFAULT_$LINE"
5830 else
5831 no_cache=1
5832 fi
5833
5834 ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
5835
5836fi
5837
5838
5839 eval "$ac_cv_use_validators"
5840 if test "$no_cache" != 1; then
5841 echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
5842 fi
5843
5844 if test "$wxUSE_VALIDATORS" = yes; then
5845 echo "$ac_t""yes" 1>&6
5846 else
5847 echo "$ac_t""no" 1>&6
5848 fi
5849
5850
5851 echo $ac_n "checking "for --enable-busyinfo"""... $ac_c" 1>&6
b64f0a5f 5852echo "configure:5853: checking "for --enable-busyinfo"" >&5
10f2d63a
VZ
5853 no_cache=0
5854 # Check whether --enable-busyinfo or --disable-busyinfo was given.
5855if test "${enable_busyinfo+set}" = set; then
5856 enableval="$enable_busyinfo"
5857
5858 if test "$enableval" = yes; then
5859 ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
5860 else
5861 ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
5862 fi
5863
5864else
5865
5866 LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
5867 if test "x$LINE" != x ; then
5868 eval "DEFAULT_$LINE"
5869 else
5870 no_cache=1
5871 fi
5872
5873 ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
5874
5875fi
5876
5877
5878 eval "$ac_cv_use_busyinfo"
5879 if test "$no_cache" != 1; then
5880 echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
5881 fi
5882
5883 if test "$wxUSE_BUSYINFO" = yes; then
5884 echo "$ac_t""yes" 1>&6
5885 else
5886 echo "$ac_t""no" 1>&6
5887 fi
5888
5889
f6bcfd97 5890 echo $ac_n "checking "for --enable-joystick"""... $ac_c" 1>&6
b64f0a5f 5891echo "configure:5892: checking "for --enable-joystick"" >&5
f6bcfd97
BP
5892 no_cache=0
5893 # Check whether --enable-joystick or --disable-joystick was given.
5894if test "${enable_joystick+set}" = set; then
5895 enableval="$enable_joystick"
5896
5897 if test "$enableval" = yes; then
5898 ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
5899 else
5900 ac_cv_use_joystick='wxUSE_JOYSTICK=no'
5901 fi
5902
5903else
5904
5905 LINE=`grep "wxUSE_JOYSTICK" ${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_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
5913
5914fi
5915
5916
5917 eval "$ac_cv_use_joystick"
5918 if test "$no_cache" != 1; then
5919 echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
5920 fi
5921
5922 if test "$wxUSE_JOYSTICK" = yes; then
5923 echo "$ac_t""yes" 1>&6
5924 else
5925 echo "$ac_t""no" 1>&6
5926 fi
5927
5928
10f2d63a
VZ
5929
5930
5931 echo $ac_n "checking "for --enable-gif"""... $ac_c" 1>&6
b64f0a5f 5932echo "configure:5933: checking "for --enable-gif"" >&5
10f2d63a
VZ
5933 no_cache=0
5934 # Check whether --enable-gif or --disable-gif was given.
5935if test "${enable_gif+set}" = set; then
5936 enableval="$enable_gif"
5937
5938 if test "$enableval" = yes; then
5939 ac_cv_use_gif='wxUSE_GIF=yes'
5940 else
5941 ac_cv_use_gif='wxUSE_GIF=no'
5942 fi
5943
5944else
5945
5946 LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
5947 if test "x$LINE" != x ; then
5948 eval "DEFAULT_$LINE"
5949 else
5950 no_cache=1
5951 fi
5952
5953 ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
5954
5955fi
5956
5957
5958 eval "$ac_cv_use_gif"
5959 if test "$no_cache" != 1; then
5960 echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
5961 fi
5962
5963 if test "$wxUSE_GIF" = yes; then
5964 echo "$ac_t""yes" 1>&6
5965 else
5966 echo "$ac_t""no" 1>&6
5967 fi
5968
5969
5970 echo $ac_n "checking "for --enable-pcx"""... $ac_c" 1>&6
b64f0a5f 5971echo "configure:5972: checking "for --enable-pcx"" >&5
10f2d63a
VZ
5972 no_cache=0
5973 # Check whether --enable-pcx or --disable-pcx was given.
5974if test "${enable_pcx+set}" = set; then
5975 enableval="$enable_pcx"
5976
5977 if test "$enableval" = yes; then
5978 ac_cv_use_pcx='wxUSE_PCX=yes'
5979 else
5980 ac_cv_use_pcx='wxUSE_PCX=no'
5981 fi
5982
5983else
5984
5985 LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
5986 if test "x$LINE" != x ; then
5987 eval "DEFAULT_$LINE"
5988 else
5989 no_cache=1
5990 fi
5991
5992 ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
5993
5994fi
5995
5996
5997 eval "$ac_cv_use_pcx"
5998 if test "$no_cache" != 1; then
5999 echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
6000 fi
6001
6002 if test "$wxUSE_PCX" = yes; then
6003 echo "$ac_t""yes" 1>&6
6004 else
6005 echo "$ac_t""no" 1>&6
6006 fi
6007
6008
6009 echo $ac_n "checking "for --enable-pnm"""... $ac_c" 1>&6
b64f0a5f 6010echo "configure:6011: checking "for --enable-pnm"" >&5
10f2d63a
VZ
6011 no_cache=0
6012 # Check whether --enable-pnm or --disable-pnm was given.
6013if test "${enable_pnm+set}" = set; then
6014 enableval="$enable_pnm"
6015
6016 if test "$enableval" = yes; then
6017 ac_cv_use_pnm='wxUSE_PNM=yes'
6018 else
6019 ac_cv_use_pnm='wxUSE_PNM=no'
6020 fi
6021
6022else
6023
6024 LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
6025 if test "x$LINE" != x ; then
6026 eval "DEFAULT_$LINE"
6027 else
6028 no_cache=1
6029 fi
6030
6031 ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
6032
6033fi
6034
6035
6036 eval "$ac_cv_use_pnm"
6037 if test "$no_cache" != 1; then
6038 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
6039 fi
6040
6041 if test "$wxUSE_PNM" = yes; then
6042 echo "$ac_t""yes" 1>&6
6043 else
6044 echo "$ac_t""no" 1>&6
6045 fi
6046
6047
b12915c1
VZ
6048fi
6049
10f2d63a
VZ
6050
6051 echo "saving argument cache $wx_arg_cache_file"
6052 mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
6053
6054
6055
6056echo $ac_n "checking for toolkit""... $ac_c" 1>&6
b64f0a5f 6057echo "configure:6058: checking for toolkit" >&5
10f2d63a
VZ
6058
6059if test "$wxUSE_GUI" = "yes"; then
6060
b12915c1
VZ
6061if test "$USE_BEOS" = 1; then
6062 { echo "configure: error: BeOS GUI is not supported yet, use --disable-gui" 1>&2; exit 1; }
6063fi
6064
10f2d63a
VZ
6065if test "$TOOLKIT_GIVEN" = 1; then
6066 for toolkit in `echo $ALL_TOOLKITS`; do
6067 var=wxUSE_$toolkit
6068 eval "value=\$${var}"
6069 eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`"
6070 done
6071else
6072 for toolkit in `echo $ALL_TOOLKITS`; do
6073 if test "$has_toolkit_in_cache" != 1; then
6074 var=DEFAULT_DEFAULT_wxUSE_$toolkit
6075 else
6076 var=DEFAULT_wxUSE_$toolkit
6077 fi
6078 eval "wxUSE_$toolkit=\$${var}"
6079 done
6080fi
6081
b4085ce6 6082NUM_TOOLKITS=`expr ${wxUSE_GTK:-0} + ${wxUSE_MOTIF:-0} + ${wxUSE_MAC:-0} + ${wxUSE_WINE:-0} + ${wxUSE_MINGW:-0} + ${wxUSE_CYGWIN:-0}`
cf27ef00 6083
ec14dd32
VZ
6084case "${host}" in
6085 *-pc-os2_emx )
6086 NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
6087 # PATH_IFS is autodetected by OS/2's configure (usually ';')
6088 LEX_STEM="lexyy"
6089 ;;
6090 *)
6091 PATH_IFS=':'
6092 LEX_STEM="lex.yy"
6093 ;;
6094esac
10f2d63a
VZ
6095
6096case "$NUM_TOOLKITS" in
6097 1)
6098 ;;
6099 0)
6100 { echo "configure: error: Please specify a toolkit - cannot determine the default for ${host}" 1>&2; exit 1; }
6101 ;;
6102 *)
6103 { echo "configure: error: Please specify at most one toolkit (may be some are cached?)" 1>&2; exit 1; }
6104esac
6105
6106for toolkit in `echo $ALL_TOOLKITS`; do
6107 var=wxUSE_$toolkit
6108 eval "value=\$${var}"
6109 if test "x$value" != x; then
6110 cache_var=CACHE_$toolkit
6111 eval "cache=\$${cache_var}"
6112 if test "$cache" = 1; then
6113 echo "$var=$value" >> ${wx_arg_cache_file}
6114 fi
6115 if test "$value" = 1; then
6116 echo "$ac_t""`echo $toolkit | tr A-Z a-z`" 1>&6
6117 fi
6118 fi
6119done
6120
6121else
cf27ef00 6122 PATH_IFS=':'
10f2d63a
VZ
6123 echo "$ac_t""base only" 1>&6
6124fi
6125
6126
6127cat > confcache <<\EOF
6128# This file is a shell script that caches the results of configure
6129# tests run on this system so they can be shared between configure
6130# scripts and configure runs. It is not useful on other systems.
6131# If it contains results you don't want to keep, you may remove or edit it.
6132#
6133# By default, configure uses ./config.cache as the cache file,
6134# creating it if it does not exist already. You can give configure
6135# the --cache-file=FILE option to use a different cache file; that is
6136# what configure does when it calls configure scripts in
6137# subdirectories, so they share the cache.
6138# Giving --cache-file=/dev/null disables caching, for debugging configure.
6139# config.status only pays attention to the cache file if you give it the
6140# --recheck option to rerun configure.
6141#
6142EOF
6143# The following way of writing the cache mishandles newlines in values,
6144# but we know of no workaround that is simple, portable, and efficient.
6145# So, don't put newlines in cache variables' values.
6146# Ultrix sh set writes to stderr and can't be redirected directly,
6147# and sets the high bit in the cache file unless we assign to the vars.
6148(set) 2>&1 |
6149 case `(ac_space=' '; set | grep ac_space) 2>&1` in
6150 *ac_space=\ *)
6151 # `set' does not quote correctly, so add quotes (double-quote substitution
6152 # turns \\\\ into \\, and sed turns \\ into \).
6153 sed -n \
6154 -e "s/'/'\\\\''/g" \
6155 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
6156 ;;
6157 *)
6158 # `set' quotes correctly as required by POSIX, so do not add quotes.
6159 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
6160 ;;
6161 esac >> confcache
6162if cmp -s $cache_file confcache; then
6163 :
6164else
6165 if test -w $cache_file; then
6166 echo "updating cache $cache_file"
6167 cat confcache > $cache_file
6168 else
6169 echo "not updating unwritable cache $cache_file"
6170 fi
6171fi
6172rm -f confcache
6173
6174
e59890c3 6175if test "$build" != "$host" ; then
10f2d63a
VZ
6176 CC=$host_alias-gcc
6177 CXX=$host_alias-c++
6178 AR=$host_alias-ar
6179 RANLIB=$host_alias-ranlib
6180 DLLTOOL=$host_alias-dlltool
32832908 6181 RESCOMP=$host_alias-windres
10f2d63a
VZ
6182 LD=$host_alias-ld
6183 NM=$host_alias-nm
6184 STRIP=$host_alias-strip
10f2d63a
VZ
6185fi
6186
6187# Extract the first word of "gcc", so it can be a program name with args.
6188set dummy gcc; ac_word=$2
6189echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
b64f0a5f 6190echo "configure:6191: checking for $ac_word" >&5
10f2d63a
VZ
6191if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
6192 echo $ac_n "(cached) $ac_c" 1>&6
6193else
6194 if test -n "$CC"; then
6195 ac_cv_prog_CC="$CC" # Let the user override the test.
6196else
6197 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6198 ac_dummy="$PATH"
6199 for ac_dir in $ac_dummy; do
6200 test -z "$ac_dir" && ac_dir=.
6201 if test -f $ac_dir/$ac_word; then
6202 ac_cv_prog_CC="gcc"
6203 break
6204 fi
6205 done
6206 IFS="$ac_save_ifs"
6207fi
6208fi
6209CC="$ac_cv_prog_CC"
6210if test -n "$CC"; then
6211 echo "$ac_t""$CC" 1>&6
6212else
6213 echo "$ac_t""no" 1>&6
6214fi
6215
6216if test -z "$CC"; then
6217 # Extract the first word of "cc", so it can be a program name with args.
6218set dummy cc; ac_word=$2
6219echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
b64f0a5f 6220echo "configure:6221: checking for $ac_word" >&5
10f2d63a
VZ
6221if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
6222 echo $ac_n "(cached) $ac_c" 1>&6
6223else
6224 if test -n "$CC"; then
6225 ac_cv_prog_CC="$CC" # Let the user override the test.
6226else
6227 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6228 ac_prog_rejected=no
6229 ac_dummy="$PATH"
6230 for ac_dir in $ac_dummy; do
6231 test -z "$ac_dir" && ac_dir=.
6232 if test -f $ac_dir/$ac_word; then
6233 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
6234 ac_prog_rejected=yes
6235 continue
6236 fi
6237 ac_cv_prog_CC="cc"
6238 break
6239 fi
6240 done
6241 IFS="$ac_save_ifs"
6242if test $ac_prog_rejected = yes; then
6243 # We found a bogon in the path, so make sure we never use it.
6244 set dummy $ac_cv_prog_CC
6245 shift
6246 if test $# -gt 0; then
6247 # We chose a different compiler from the bogus one.
6248 # However, it has the same basename, so the bogon will be chosen
6249 # first if we set CC to just the basename; use the full file name.
6250 shift
6251 set dummy "$ac_dir/$ac_word" "$@"
6252 shift
6253 ac_cv_prog_CC="$@"
6254 fi
6255fi
6256fi
6257fi
6258CC="$ac_cv_prog_CC"
6259if test -n "$CC"; then
6260 echo "$ac_t""$CC" 1>&6
6261else
6262 echo "$ac_t""no" 1>&6
6263fi
6264
6265 if test -z "$CC"; then
6266 case "`uname -s`" in
6267 *win32* | *WIN32*)
6268 # Extract the first word of "cl", so it can be a program name with args.
6269set dummy cl; ac_word=$2
6270echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
b64f0a5f 6271echo "configure:6272: checking for $ac_word" >&5
10f2d63a
VZ
6272if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
6273 echo $ac_n "(cached) $ac_c" 1>&6
6274else
6275 if test -n "$CC"; then
6276 ac_cv_prog_CC="$CC" # Let the user override the test.
6277else
6278 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6279 ac_dummy="$PATH"
6280 for ac_dir in $ac_dummy; do
6281 test -z "$ac_dir" && ac_dir=.
6282 if test -f $ac_dir/$ac_word; then
6283 ac_cv_prog_CC="cl"
6284 break
6285 fi
6286 done
6287 IFS="$ac_save_ifs"
6288fi
6289fi
6290CC="$ac_cv_prog_CC"
6291if test -n "$CC"; then
6292 echo "$ac_t""$CC" 1>&6
6293else
6294 echo "$ac_t""no" 1>&6
6295fi
6296 ;;
6297 esac
6298 fi
6299 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
6300fi
6301
6302echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
b64f0a5f 6303echo "configure:6304: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
10f2d63a
VZ
6304
6305ac_ext=c
6306# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6307ac_cpp='$CPP $CPPFLAGS'
6308ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6309ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6310cross_compiling=$ac_cv_prog_cc_cross
6311
6312cat > conftest.$ac_ext << EOF
6313
b64f0a5f 6314#line 6315 "configure"
10f2d63a
VZ
6315#include "confdefs.h"
6316
6317main(){return(0);}
6318EOF
b64f0a5f 6319if { (eval echo configure:6320: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
6320 ac_cv_prog_cc_works=yes
6321 # If we can't run a trivial program, we are probably using a cross compiler.
6322 if (./conftest; exit) 2>/dev/null; then
6323 ac_cv_prog_cc_cross=no
6324 else
6325 ac_cv_prog_cc_cross=yes
6326 fi
6327else
6328 echo "configure: failed program was:" >&5
6329 cat conftest.$ac_ext >&5
6330 ac_cv_prog_cc_works=no
6331fi
6332rm -fr conftest*
6333ac_ext=c
6334# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6335ac_cpp='$CPP $CPPFLAGS'
6336ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6337ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6338cross_compiling=$ac_cv_prog_cc_cross
6339
6340echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
6341if test $ac_cv_prog_cc_works = no; then
6342 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
6343fi
6344echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
b64f0a5f 6345echo "configure:6346: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
10f2d63a
VZ
6346echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
6347cross_compiling=$ac_cv_prog_cc_cross
6348
6349echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
b64f0a5f 6350echo "configure:6351: checking whether we are using GNU C" >&5
10f2d63a
VZ
6351if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
6352 echo $ac_n "(cached) $ac_c" 1>&6
6353else
6354 cat > conftest.c <<EOF
6355#ifdef __GNUC__
6356 yes;
6357#endif
6358EOF
b64f0a5f 6359if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:6360: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
10f2d63a
VZ
6360 ac_cv_prog_gcc=yes
6361else
6362 ac_cv_prog_gcc=no
6363fi
6364fi
6365
6366echo "$ac_t""$ac_cv_prog_gcc" 1>&6
6367
6368if test $ac_cv_prog_gcc = yes; then
6369 GCC=yes
6370else
6371 GCC=
6372fi
6373
6374ac_test_CFLAGS="${CFLAGS+set}"
6375ac_save_CFLAGS="$CFLAGS"
6376CFLAGS=
6377echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
b64f0a5f 6378echo "configure:6379: checking whether ${CC-cc} accepts -g" >&5
10f2d63a
VZ
6379if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
6380 echo $ac_n "(cached) $ac_c" 1>&6
6381else
6382 echo 'void f(){}' > conftest.c
6383if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
6384 ac_cv_prog_cc_g=yes
6385else
6386 ac_cv_prog_cc_g=no
6387fi
6388rm -f conftest*
6389
6390fi
6391
6392echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
6393if test "$ac_test_CFLAGS" = set; then
6394 CFLAGS="$ac_save_CFLAGS"
6395elif test $ac_cv_prog_cc_g = yes; then
6396 if test "$GCC" = yes; then
6397 CFLAGS="-g -O2"
6398 else
6399 CFLAGS="-g"
6400 fi
6401else
6402 if test "$GCC" = yes; then
6403 CFLAGS="-O2"
6404 else
6405 CFLAGS=
6406 fi
6407fi
6408
6409
6410CFLAGS=`echo "$CFLAGS" | sed 's/-g//g'`
6411
6412echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
b64f0a5f 6413echo "configure:6414: checking how to run the C preprocessor" >&5
10f2d63a
VZ
6414# On Suns, sometimes $CPP names a directory.
6415if test -n "$CPP" && test -d "$CPP"; then
6416 CPP=
6417fi
6418if test -z "$CPP"; then
6419if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
6420 echo $ac_n "(cached) $ac_c" 1>&6
6421else
6422 # This must be in double quotes, not single quotes, because CPP may get
6423 # substituted into the Makefile and "${CC-cc}" will confuse make.
6424 CPP="${CC-cc} -E"
6425 # On the NeXT, cc -E runs the code through the compiler's parser,
6426 # not just through cpp.
6427 cat > conftest.$ac_ext <<EOF
b64f0a5f 6428#line 6429 "configure"
10f2d63a
VZ
6429#include "confdefs.h"
6430#include <assert.h>
6431Syntax Error
6432EOF
6433ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
b64f0a5f 6434{ (eval echo configure:6435: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
6435ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6436if test -z "$ac_err"; then
6437 :
6438else
6439 echo "$ac_err" >&5
6440 echo "configure: failed program was:" >&5
6441 cat conftest.$ac_ext >&5
6442 rm -rf conftest*
6443 CPP="${CC-cc} -E -traditional-cpp"
6444 cat > conftest.$ac_ext <<EOF
b64f0a5f 6445#line 6446 "configure"
10f2d63a
VZ
6446#include "confdefs.h"
6447#include <assert.h>
6448Syntax Error
6449EOF
6450ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
b64f0a5f 6451{ (eval echo configure:6452: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
6452ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6453if test -z "$ac_err"; then
6454 :
6455else
6456 echo "$ac_err" >&5
6457 echo "configure: failed program was:" >&5
6458 cat conftest.$ac_ext >&5
6459 rm -rf conftest*
6460 CPP="${CC-cc} -nologo -E"
6461 cat > conftest.$ac_ext <<EOF
b64f0a5f 6462#line 6463 "configure"
10f2d63a
VZ
6463#include "confdefs.h"
6464#include <assert.h>
6465Syntax Error
6466EOF
6467ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
b64f0a5f 6468{ (eval echo configure:6469: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
6469ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6470if test -z "$ac_err"; then
6471 :
6472else
6473 echo "$ac_err" >&5
6474 echo "configure: failed program was:" >&5
6475 cat conftest.$ac_ext >&5
6476 rm -rf conftest*
6477 CPP=/lib/cpp
6478fi
6479rm -f conftest*
6480fi
6481rm -f conftest*
6482fi
6483rm -f conftest*
6484 ac_cv_prog_CPP="$CPP"
6485fi
6486 CPP="$ac_cv_prog_CPP"
6487else
6488 ac_cv_prog_CPP="$CPP"
6489fi
6490echo "$ac_t""$CPP" 1>&6
6491
6492
6493if test $ac_cv_prog_gcc = yes; then
6494 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
b64f0a5f 6495echo "configure:6496: checking whether ${CC-cc} needs -traditional" >&5
10f2d63a
VZ
6496if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
6497 echo $ac_n "(cached) $ac_c" 1>&6
6498else
6499 ac_pattern="Autoconf.*'x'"
6500 cat > conftest.$ac_ext <<EOF
b64f0a5f 6501#line 6502 "configure"
10f2d63a
VZ
6502#include "confdefs.h"
6503#include <sgtty.h>
6504Autoconf TIOCGETP
6505EOF
6506if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6507 egrep "$ac_pattern" >/dev/null 2>&1; then
6508 rm -rf conftest*
6509 ac_cv_prog_gcc_traditional=yes
6510else
6511 rm -rf conftest*
6512 ac_cv_prog_gcc_traditional=no
6513fi
6514rm -f conftest*
6515
6516
6517 if test $ac_cv_prog_gcc_traditional = no; then
6518 cat > conftest.$ac_ext <<EOF
b64f0a5f 6519#line 6520 "configure"
10f2d63a
VZ
6520#include "confdefs.h"
6521#include <termio.h>
6522Autoconf TCGETA
6523EOF
6524if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6525 egrep "$ac_pattern" >/dev/null 2>&1; then
6526 rm -rf conftest*
6527 ac_cv_prog_gcc_traditional=yes
6528fi
6529rm -f conftest*
6530
6531 fi
6532fi
6533
6534echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
6535 if test $ac_cv_prog_gcc_traditional = yes; then
6536 CC="$CC -traditional"
6537 fi
6538fi
6539
6540
6541
6542ac_ext=C
6543# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6544ac_cpp='$CXXCPP $CPPFLAGS'
6545ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6546ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6547cross_compiling=$ac_cv_prog_cxx_cross
6548
6549
6550for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
6551do
6552# Extract the first word of "$ac_prog", so it can be a program name with args.
6553set dummy $ac_prog; ac_word=$2
6554echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
b64f0a5f 6555echo "configure:6556: checking for $ac_word" >&5
10f2d63a
VZ
6556if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
6557 echo $ac_n "(cached) $ac_c" 1>&6
6558else
6559 if test -n "$CXX"; then
6560 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6561else
6562 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6563 ac_dummy="$PATH"
6564 for ac_dir in $ac_dummy; do
6565 test -z "$ac_dir" && ac_dir=.
6566 if test -f $ac_dir/$ac_word; then
6567 ac_cv_prog_CXX="$ac_prog"
6568 break
6569 fi
6570 done
6571 IFS="$ac_save_ifs"
6572fi
6573fi
6574CXX="$ac_cv_prog_CXX"
6575if test -n "$CXX"; then
6576 echo "$ac_t""$CXX" 1>&6
6577else
6578 echo "$ac_t""no" 1>&6
6579fi
6580
6581test -n "$CXX" && break
6582done
6583test -n "$CXX" || CXX="gcc"
6584
6585
6586echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
b64f0a5f 6587echo "configure:6588: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
10f2d63a
VZ
6588
6589ac_ext=C
6590# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6591ac_cpp='$CXXCPP $CPPFLAGS'
6592ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6593ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6594cross_compiling=$ac_cv_prog_cxx_cross
6595
6596cat > conftest.$ac_ext << EOF
6597
b64f0a5f 6598#line 6599 "configure"
10f2d63a
VZ
6599#include "confdefs.h"
6600
6601int main(){return(0);}
6602EOF
b64f0a5f 6603if { (eval echo configure:6604: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
6604 ac_cv_prog_cxx_works=yes
6605 # If we can't run a trivial program, we are probably using a cross compiler.
6606 if (./conftest; exit) 2>/dev/null; then
6607 ac_cv_prog_cxx_cross=no
6608 else
6609 ac_cv_prog_cxx_cross=yes
6610 fi
6611else
6612 echo "configure: failed program was:" >&5
6613 cat conftest.$ac_ext >&5
6614 ac_cv_prog_cxx_works=no
6615fi
6616rm -fr conftest*
6617ac_ext=C
6618# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6619ac_cpp='$CXXCPP $CPPFLAGS'
6620ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6621ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6622cross_compiling=$ac_cv_prog_cxx_cross
6623
6624echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
6625if test $ac_cv_prog_cxx_works = no; then
6626 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
6627fi
6628echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
b64f0a5f 6629echo "configure:6630: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
10f2d63a
VZ
6630echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
6631cross_compiling=$ac_cv_prog_cxx_cross
6632
6633echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
b64f0a5f 6634echo "configure:6635: checking whether we are using GNU C++" >&5
10f2d63a
VZ
6635if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
6636 echo $ac_n "(cached) $ac_c" 1>&6
6637else
6638 cat > conftest.C <<EOF
6639#ifdef __GNUC__
6640 yes;
6641#endif
6642EOF
b64f0a5f 6643if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:6644: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
10f2d63a
VZ
6644 ac_cv_prog_gxx=yes
6645else
6646 ac_cv_prog_gxx=no
6647fi
6648fi
6649
6650echo "$ac_t""$ac_cv_prog_gxx" 1>&6
6651
6652if test $ac_cv_prog_gxx = yes; then
6653 GXX=yes
6654else
6655 GXX=
6656fi
6657
6658ac_test_CXXFLAGS="${CXXFLAGS+set}"
6659ac_save_CXXFLAGS="$CXXFLAGS"
6660CXXFLAGS=
6661echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
b64f0a5f 6662echo "configure:6663: checking whether ${CXX-g++} accepts -g" >&5
10f2d63a
VZ
6663if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
6664 echo $ac_n "(cached) $ac_c" 1>&6
6665else
6666 echo 'void f(){}' > conftest.cc
6667if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
6668 ac_cv_prog_cxx_g=yes
6669else
6670 ac_cv_prog_cxx_g=no
6671fi
6672rm -f conftest*
6673
6674fi
6675
6676echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
6677if test "$ac_test_CXXFLAGS" = set; then
6678 CXXFLAGS="$ac_save_CXXFLAGS"
6679elif test $ac_cv_prog_cxx_g = yes; then
6680 if test "$GXX" = yes; then
6681 CXXFLAGS="-g -O2"
6682 else
6683 CXXFLAGS="-g"
6684 fi
6685else
6686 if test "$GXX" = yes; then
6687 CXXFLAGS="-O2"
6688 else
6689 CXXFLAGS=
6690 fi
6691fi
6692
6693
6694echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
b64f0a5f 6695echo "configure:6696: checking how to run the C++ preprocessor" >&5
10f2d63a
VZ
6696if test -z "$CXXCPP"; then
6697if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
6698 echo $ac_n "(cached) $ac_c" 1>&6
6699else
6700 ac_ext=C
6701# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6702ac_cpp='$CXXCPP $CPPFLAGS'
6703ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6704ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6705cross_compiling=$ac_cv_prog_cxx_cross
6706 CXXCPP="${CXX-g++} -E"
6707 cat > conftest.$ac_ext <<EOF
b64f0a5f 6708#line 6709 "configure"
10f2d63a
VZ
6709#include "confdefs.h"
6710#include <stdlib.h>
6711EOF
6712ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
b64f0a5f 6713{ (eval echo configure:6714: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
6714ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6715if test -z "$ac_err"; then
6716 :
6717else
6718 echo "$ac_err" >&5
6719 echo "configure: failed program was:" >&5
6720 cat conftest.$ac_ext >&5
6721 rm -rf conftest*
6722 CXXCPP=/lib/cpp
6723fi
6724rm -f conftest*
6725 ac_cv_prog_CXXCPP="$CXXCPP"
6726ac_ext=C
6727# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6728ac_cpp='$CXXCPP $CPPFLAGS'
6729ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6730ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6731cross_compiling=$ac_cv_prog_cxx_cross
6732fi
6733fi
6734CXXCPP="$ac_cv_prog_CXXCPP"
6735echo "$ac_t""$CXXCPP" 1>&6
6736
6737
6738CXXFLAGS=`echo "$CXXFLAGS" | sed 's/-g//g'`
6739
6740ac_ext=c
6741# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6742ac_cpp='$CPP $CPPFLAGS'
6743ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6744ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6745cross_compiling=$ac_cv_prog_cc_cross
6746
6747
6748# Extract the first word of "ranlib", so it can be a program name with args.
6749set dummy ranlib; ac_word=$2
6750echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
b64f0a5f 6751echo "configure:6752: checking for $ac_word" >&5
10f2d63a
VZ
6752if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
6753 echo $ac_n "(cached) $ac_c" 1>&6
6754else
6755 if test -n "$RANLIB"; then
6756 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6757else
6758 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6759 ac_dummy="$PATH"
6760 for ac_dir in $ac_dummy; do
6761 test -z "$ac_dir" && ac_dir=.
6762 if test -f $ac_dir/$ac_word; then
6763 ac_cv_prog_RANLIB="ranlib"
6764 break
6765 fi
6766 done
6767 IFS="$ac_save_ifs"
6768 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
6769fi
6770fi
6771RANLIB="$ac_cv_prog_RANLIB"
6772if test -n "$RANLIB"; then
6773 echo "$ac_t""$RANLIB" 1>&6
6774else
6775 echo "$ac_t""no" 1>&6
6776fi
6777
6778
6779# Extract the first word of "ar", so it can be a program name with args.
6780set dummy ar; ac_word=$2
6781echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
b64f0a5f 6782echo "configure:6783: checking for $ac_word" >&5
10f2d63a
VZ
6783if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
6784 echo $ac_n "(cached) $ac_c" 1>&6
6785else
6786 if test -n "$AR"; then
6787 ac_cv_prog_AR="$AR" # Let the user override the test.
6788else
6789 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6790 ac_dummy="$PATH"
6791 for ac_dir in $ac_dummy; do
6792 test -z "$ac_dir" && ac_dir=.
6793 if test -f $ac_dir/$ac_word; then
6794 ac_cv_prog_AR="ar"
6795 break
6796 fi
6797 done
6798 IFS="$ac_save_ifs"
6799 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
6800fi
6801fi
6802AR="$ac_cv_prog_AR"
6803if test -n "$AR"; then
6804 echo "$ac_t""$AR" 1>&6
6805else
6806 echo "$ac_t""no" 1>&6
6807fi
6808
6809
6810# Find a good install program. We prefer a C program (faster),
6811# so one script is as good as another. But avoid the broken or
6812# incompatible versions:
6813# SysV /etc/install, /usr/sbin/install
6814# SunOS /usr/etc/install
6815# IRIX /sbin/install
6816# AIX /bin/install
6817# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6818# AFS /usr/afsws/bin/install, which mishandles nonexistent args
6819# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6820# ./install, which can be erroneously created by make from ./install.sh.
6821echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
b64f0a5f 6822echo "configure:6823: checking for a BSD compatible install" >&5
10f2d63a
VZ
6823if test -z "$INSTALL"; then
6824if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
6825 echo $ac_n "(cached) $ac_c" 1>&6
6826else
6827 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
6828 for ac_dir in $PATH; do
6829 # Account for people who put trailing slashes in PATH elements.
6830 case "$ac_dir/" in
6831 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
6832 *)
6833 # OSF1 and SCO ODT 3.0 have their own names for install.
6834 # Don't use installbsd from OSF since it installs stuff as root
6835 # by default.
6836 for ac_prog in ginstall scoinst install; do
6837 if test -f $ac_dir/$ac_prog; then
6838 if test $ac_prog = install &&
6839 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
6840 # AIX install. It has an incompatible calling convention.
6841 :
6842 else
6843 ac_cv_path_install="$ac_dir/$ac_prog -c"
6844 break 2
6845 fi
6846 fi
6847 done
6848 ;;
6849 esac
6850 done
6851 IFS="$ac_save_IFS"
6852
6853fi
6854 if test "${ac_cv_path_install+set}" = set; then
6855 INSTALL="$ac_cv_path_install"
6856 else
6857 # As a last resort, use the slow shell script. We don't cache a
6858 # path for INSTALL within a source directory, because that will
6859 # break other packages using the cache if that directory is
6860 # removed, or if the path is relative.
6861 INSTALL="$ac_install_sh"
6862 fi
6863fi
6864echo "$ac_t""$INSTALL" 1>&6
6865
6866# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6867# It thinks the first close brace ends the variable substitution.
6868test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6869
6870test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
6871
6872test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6873
6874
6875# Extract the first word of "strip", so it can be a program name with args.
6876set dummy strip; ac_word=$2
6877echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
b64f0a5f 6878echo "configure:6879: checking for $ac_word" >&5
10f2d63a
VZ
6879if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
6880 echo $ac_n "(cached) $ac_c" 1>&6
6881else
6882 if test -n "$STRIP"; then
6883 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6884else
6885 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6886 ac_dummy="$PATH"
6887 for ac_dir in $ac_dummy; do
6888 test -z "$ac_dir" && ac_dir=.
6889 if test -f $ac_dir/$ac_word; then
6890 ac_cv_prog_STRIP="strip"
6891 break
6892 fi
6893 done
6894 IFS="$ac_save_ifs"
6895 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true"
6896fi
6897fi
6898STRIP="$ac_cv_prog_STRIP"
6899if test -n "$STRIP"; then
6900 echo "$ac_t""$STRIP" 1>&6
6901else
6902 echo "$ac_t""no" 1>&6
6903fi
6904
6905
6906echo $ac_n "checking "make for VPATH support"""... $ac_c" 1>&6
b64f0a5f 6907echo "configure:6908: checking "make for VPATH support"" >&5
10f2d63a
VZ
6908cat - << EOF > confMake
6909check : file
6910 cp \$? \$@
6911 cp \$? final_file
6912EOF
6913
6914if test ! -d sub ; then
6915 mkdir sub
6916fi
6917echo dummy > sub/file
f6bcfd97 6918${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
10f2d63a
VZ
6919RESULT=$?
6920rm -f sub/file check final_file confMake
6921rmdir sub
6922if test "$RESULT" = 0; then
6923 echo "$ac_t""yes" 1>&6
6924else
6925 echo "$ac_t""no" 1>&6
6926 { echo "configure: error: You need a make-utility that is able to use the variable
6927VPATH correctly.
6928If your version of make does not support VPATH correctly" 1>&2; exit 1; }
6929fi
6930
6931for ac_prog in 'bison -y' byacc
6932do
6933# Extract the first word of "$ac_prog", so it can be a program name with args.
6934set dummy $ac_prog; ac_word=$2
6935echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
b64f0a5f 6936echo "configure:6937: checking for $ac_word" >&5
10f2d63a
VZ
6937if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
6938 echo $ac_n "(cached) $ac_c" 1>&6
6939else
6940 if test -n "$YACC"; then
6941 ac_cv_prog_YACC="$YACC" # Let the user override the test.
6942else
6943 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6944 ac_dummy="$PATH"
6945 for ac_dir in $ac_dummy; do
6946 test -z "$ac_dir" && ac_dir=.
6947 if test -f $ac_dir/$ac_word; then
6948 ac_cv_prog_YACC="$ac_prog"
6949 break
6950 fi
6951 done
6952 IFS="$ac_save_ifs"
6953fi
6954fi
6955YACC="$ac_cv_prog_YACC"
6956if test -n "$YACC"; then
6957 echo "$ac_t""$YACC" 1>&6
6958else
6959 echo "$ac_t""no" 1>&6
6960fi
6961
6962test -n "$YACC" && break
6963done
6964test -n "$YACC" || YACC="yacc"
6965
6966
6967# Extract the first word of "flex", so it can be a program name with args.
6968set dummy flex; ac_word=$2
6969echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
b64f0a5f 6970echo "configure:6971: checking for $ac_word" >&5
10f2d63a
VZ
6971if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
6972 echo $ac_n "(cached) $ac_c" 1>&6
6973else
6974 if test -n "$LEX"; then
6975 ac_cv_prog_LEX="$LEX" # Let the user override the test.
6976else
6977 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6978 ac_dummy="$PATH"
6979 for ac_dir in $ac_dummy; do
6980 test -z "$ac_dir" && ac_dir=.
6981 if test -f $ac_dir/$ac_word; then
6982 ac_cv_prog_LEX="flex"
6983 break
6984 fi
6985 done
6986 IFS="$ac_save_ifs"
6987 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
6988fi
6989fi
6990LEX="$ac_cv_prog_LEX"
6991if test -n "$LEX"; then
6992 echo "$ac_t""$LEX" 1>&6
6993else
6994 echo "$ac_t""no" 1>&6
6995fi
6996
6997if test -z "$LEXLIB"
6998then
6999 case "$LEX" in
7000 flex*) ac_lib=fl ;;
7001 *) ac_lib=l ;;
7002 esac
7003 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
b64f0a5f 7004echo "configure:7005: checking for yywrap in -l$ac_lib" >&5
10f2d63a
VZ
7005ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
7006if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7007 echo $ac_n "(cached) $ac_c" 1>&6
7008else
7009 ac_save_LIBS="$LIBS"
7010LIBS="-l$ac_lib $LIBS"
7011cat > conftest.$ac_ext <<EOF
b64f0a5f 7012#line 7013 "configure"
10f2d63a
VZ
7013#include "confdefs.h"
7014/* Override any gcc2 internal prototype to avoid an error. */
7015/* We use char because int might match the return type of a gcc2
7016 builtin and then its argument prototype would still apply. */
7017char yywrap();
7018
7019int main() {
7020yywrap()
7021; return 0; }
7022EOF
b64f0a5f 7023if { (eval echo configure:7024: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
7024 rm -rf conftest*
7025 eval "ac_cv_lib_$ac_lib_var=yes"
7026else
7027 echo "configure: failed program was:" >&5
7028 cat conftest.$ac_ext >&5
7029 rm -rf conftest*
7030 eval "ac_cv_lib_$ac_lib_var=no"
7031fi
7032rm -f conftest*
7033LIBS="$ac_save_LIBS"
7034
7035fi
7036if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7037 echo "$ac_t""yes" 1>&6
7038 LEXLIB="-l$ac_lib"
7039else
7040 echo "$ac_t""no" 1>&6
7041fi
7042
7043fi
7044
7045
7046echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
b64f0a5f 7047echo "configure:7048: checking whether ln -s works" >&5
10f2d63a
VZ
7048if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
7049 echo $ac_n "(cached) $ac_c" 1>&6
7050else
7051 rm -f conftestdata
7052if ln -s X conftestdata 2>/dev/null
7053then
7054 rm -f conftestdata
7055 ac_cv_prog_LN_S="ln -s"
7056else
7057 ac_cv_prog_LN_S=ln
7058fi
7059fi
7060LN_S="$ac_cv_prog_LN_S"
7061if test "$ac_cv_prog_LN_S" = "ln -s"; then
7062 echo "$ac_t""yes" 1>&6
7063else
7064 echo "$ac_t""no" 1>&6
7065fi
7066
7067
7068
7069SEARCH_INCLUDE="\
7070 /usr/local/include \
7071 \
7072 /usr/Motif-1.2/include \
7073 /usr/Motif-2.1/include \
7074 \
7075 /usr/include/Motif1.2 \
7076 /opt/xpm/include/X11 \
7077 /opt/GBxpm/include/ \
7078 /opt/GBxpm/X11/include/ \
7079 \
7080 /usr/Motif1.2/include \
7081 /usr/dt/include \
afc31813
VZ
7082 /usr/openwin/include \
7083 \
10f2d63a
VZ
7084 /usr/include/Xm \
7085 \
7086 /usr/X11R6/include \
afc31813 7087 /usr/X11R6.4/include \
10f2d63a
VZ
7088 /usr/X11R5/include \
7089 /usr/X11R4/include \
7090 \
10f2d63a
VZ
7091 /usr/include/X11R6 \
7092 /usr/include/X11R5 \
7093 /usr/include/X11R4 \
7094 \
7095 /usr/local/X11R6/include \
7096 /usr/local/X11R5/include \
7097 /usr/local/X11R4/include \
7098 \
7099 /usr/local/include/X11R6 \
7100 /usr/local/include/X11R5 \
7101 /usr/local/include/X11R4 \
7102 \
7103 /usr/X11/include \
7104 /usr/include/X11 \
7105 /usr/local/X11/include \
7106 /usr/local/include/X11 \
7107 \
7108 /usr/X386/include \
7109 /usr/x386/include \
7110 /usr/XFree86/include/X11 \
7111 \
cf27ef00 7112 X:/XFree86/include \
ec14dd32
VZ
7113 X:/XFree86/include/X11 \
7114 \
10f2d63a
VZ
7115 /usr/include/gtk \
7116 /usr/local/include/gtk \
7117 /usr/include/glib \
7118 /usr/local/include/glib \
7119 \
7120 /usr/include/qt \
7121 /usr/local/include/qt \
7122 \
7123 /usr/include/windows \
7124 /usr/include/wine \
7125 /usr/local/include/wine \
7126 \
7127 /usr/unsupported/include \
7128 /usr/athena/include \
7129 /usr/local/x11r5/include \
7130 /usr/lpp/Xamples/include \
7131 \
10f2d63a 7132 /usr/openwin/share/include \
928b5c08
VZ
7133 \
7134 /usr/include"
10f2d63a
VZ
7135
7136SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s/include/lib/g` "
7137
7138
7139cat > confcache <<\EOF
7140# This file is a shell script that caches the results of configure
7141# tests run on this system so they can be shared between configure
7142# scripts and configure runs. It is not useful on other systems.
7143# If it contains results you don't want to keep, you may remove or edit it.
7144#
7145# By default, configure uses ./config.cache as the cache file,
7146# creating it if it does not exist already. You can give configure
7147# the --cache-file=FILE option to use a different cache file; that is
7148# what configure does when it calls configure scripts in
7149# subdirectories, so they share the cache.
7150# Giving --cache-file=/dev/null disables caching, for debugging configure.
7151# config.status only pays attention to the cache file if you give it the
7152# --recheck option to rerun configure.
7153#
7154EOF
7155# The following way of writing the cache mishandles newlines in values,
7156# but we know of no workaround that is simple, portable, and efficient.
7157# So, don't put newlines in cache variables' values.
7158# Ultrix sh set writes to stderr and can't be redirected directly,
7159# and sets the high bit in the cache file unless we assign to the vars.
7160(set) 2>&1 |
7161 case `(ac_space=' '; set | grep ac_space) 2>&1` in
7162 *ac_space=\ *)
7163 # `set' does not quote correctly, so add quotes (double-quote substitution
7164 # turns \\\\ into \\, and sed turns \\ into \).
7165 sed -n \
7166 -e "s/'/'\\\\''/g" \
7167 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
7168 ;;
7169 *)
7170 # `set' quotes correctly as required by POSIX, so do not add quotes.
7171 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
7172 ;;
7173 esac >> confcache
7174if cmp -s $cache_file confcache; then
7175 :
7176else
7177 if test -w $cache_file; then
7178 echo "updating cache $cache_file"
7179 cat confcache > $cache_file
7180 else
7181 echo "not updating unwritable cache $cache_file"
7182 fi
7183fi
7184rm -f confcache
7185
7186
7187
dad6c0ea
VZ
7188AFMINSTALL=
7189
10f2d63a
VZ
7190if test "$wxUSE_GUI" = "yes"; then
7191
dad6c0ea
VZ
7192USE_GUI=1
7193
10f2d63a
VZ
7194TOOLKIT=
7195TOOLKIT_INCLUDE=
7196
7197GUIOBJS=
7198COMMONOBJS=
7199GENERICOBJS=
7200
7201GUI_TK_LIBRARY=
7202GUI_TK_LINK=
7203
7204WXGTK12=
f6bcfd97 7205WXGTK127=
6f72b082 7206WXGTK20=
10f2d63a
VZ
7207
7208WXWINE=
7209
10f2d63a
VZ
7210if test "$wxUSE_CYGWIN" = 1 || test "$wxUSE_MINGW" = 1 ; then
7211 if test "$cross_compiling" = "yes" ; then
e59890c3 7212 echo "configure: warning: skipping windows.h check for cross-compilation" 1>&2
10f2d63a
VZ
7213 else
7214 echo $ac_n "checking for Windows headers""... $ac_c" 1>&6
b64f0a5f 7215echo "configure:7216: checking for Windows headers" >&5
10f2d63a
VZ
7216
7217ac_find_includes=
7218for ac_dir in $SEARCH_INCLUDE;
7219 do
7220 if test -f "$ac_dir/windows.h"; then
7221 ac_find_includes=$ac_dir
7222 break
7223 fi
7224 done
7225
7226 if test "$ac_find_includes" != "" ; then
7227 echo "$ac_t""found $ac_find_includes" 1>&6
7228 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE -I$ac_find_includes"
7229 else
7230 echo "$ac_t""no" 1>&6
7231 { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; }
7232 fi
7233 fi
7234
7235 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS msw"
7236 LIBS="$LIBS -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lctl3d32 -lcrtdll -ladvapi32 -lwsock32"
7237
f6bcfd97
BP
7238 if test "$wxUSE_ODBC" = "yes" ; then
7239 LIBS="$LIBS -lodbc32 -lole32 -loleaut32"
7240 fi
7241
10f2d63a
VZ
7242 if test "$wxUSE_MINGW" = 1; then
7243 LDFLAGS="$LDFLAGS -mwindows"
7244 fi
7245
7246 TOOLKIT=MSW
7247
7248 GUIOBJS="\$(MSW_GUIOBJS)"
7249 GUIHEADERS="\$(MSW_HEADERS)"
7250 COMMONOBJS="\$(MSW_COMMONOBJS)"
7251 GENERICOBJS="\$(MSW_GENERICOBJS)"
7252 UNIXOBJS=
7253 GUIDIST=MSW_DIST
32832908
VZ
7254
7255 RCINCSWITCH="--include-dir"
7256 RCDEFSWITCH="--define"
7257 RCPREPROCESSOR="--preprocessor \"\$(CC) -c -E -xc-header -DRC_INVOKED\""
7258 RCINPUTSWITCH="-i"
7259 RCOUTPUTSWITCH="-o"
7260 RESFLAGS="$RCPREPROCESSOR $RCINCSWITCH \$(top_srcdir)/include $RCINCSWITCH \$(top_srcdir)/\$(program_dir) $RCDEFSWITCH __WIN32__ $RCDEFSWITCH __WIN95__ $RCDEFSWITCH __GNUWIN32__"
7261
7262 RESPROGRAM="\$(RES_PROGRAM)"
7263
10f2d63a
VZ
7264fi
7265
7266if test "$wxUSE_GTK" = 1; then
6f72b082
OK
7267 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
7268if test "${with_gtk_prefix+set}" = set; then
7269 withval="$with_gtk_prefix"
7270 gtk_config_prefix="$withval"
7271else
7272 gtk_config_prefix=""
7273fi
7274
7275# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
7276if test "${with_gtk_exec_prefix+set}" = set; then
7277 withval="$with_gtk_exec_prefix"
7278 gtk_config_exec_prefix="$withval"
7279else
7280 gtk_config_exec_prefix=""
7281fi
7282
7283# Check whether --enable-gtktest or --disable-gtktest was given.
7284if test "${enable_gtktest+set}" = set; then
7285 enableval="$enable_gtktest"
7286 :
7287else
7288 enable_gtktest=yes
7289fi
7290
7291
7292 for module in . gthread
7293 do
7294 case "$module" in
7295 gthread)
7296 gtk_config_args="$gtk_config_args gthread"
7297 ;;
7298 esac
7299 done
7300
7301 if test x$gtk_config_exec_prefix != x ; then
7302 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
7303 if test x${GTK_CONFIG_2_0+set} != xset ; then
7304 GTK_CONFIG_2_0=$gtk_config_exec_prefix/bin/gtk-config-2.0
7305 fi
7306 fi
7307 if test x$gtk_config_prefix != x ; then
7308 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
7309 if test x${GTK_CONFIG_2_0+set} != xset ; then
7310 GTK_CONFIG_2_0=$gtk_config_prefix/bin/gtk-config-2.0
7311 fi
7312 fi
7313
7314 # Extract the first word of "gtk-config-2.0", so it can be a program name with args.
7315set dummy gtk-config-2.0; ac_word=$2
7316echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
b64f0a5f 7317echo "configure:7318: checking for $ac_word" >&5
6f72b082
OK
7318if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG_2_0'+set}'`\" = set"; then
7319 echo $ac_n "(cached) $ac_c" 1>&6
7320else
7321 case "$GTK_CONFIG_2_0" in
7322 /*)
7323 ac_cv_path_GTK_CONFIG_2_0="$GTK_CONFIG_2_0" # Let the user override the test with a path.
7324 ;;
7325 ?:/*)
7326 ac_cv_path_GTK_CONFIG_2_0="$GTK_CONFIG_2_0" # Let the user override the test with a dos path.
7327 ;;
7328 *)
7329 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7330 ac_dummy="$PATH"
7331 for ac_dir in $ac_dummy; do
7332 test -z "$ac_dir" && ac_dir=.
7333 if test -f $ac_dir/$ac_word; then
7334 ac_cv_path_GTK_CONFIG_2_0="$ac_dir/$ac_word"
7335 break
7336 fi
7337 done
7338 IFS="$ac_save_ifs"
7339 test -z "$ac_cv_path_GTK_CONFIG_2_0" && ac_cv_path_GTK_CONFIG_2_0="no"
7340 ;;
7341esac
7342fi
7343GTK_CONFIG_2_0="$ac_cv_path_GTK_CONFIG_2_0"
7344if test -n "$GTK_CONFIG_2_0"; then
7345 echo "$ac_t""$GTK_CONFIG_2_0" 1>&6
7346else
7347 echo "$ac_t""no" 1>&6
7348fi
7349
7350 min_gtk_version=1.3.1
7351 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
b64f0a5f 7352echo "configure:7353: checking for GTK - version >= $min_gtk_version" >&5
6f72b082
OK
7353 no_gtk=""
7354 if test "$GTK_CONFIG_2_0" = "no" ; then
7355 no_gtk=yes
7356 else
7357 GTK_CFLAGS=`$GTK_CONFIG_2_0 $gtk_config_args --cflags`
7358 GTK_LIBS=`$GTK_CONFIG_2_0 $gtk_config_args --libs`
7359 gtk_config_major_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \
7360 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
7361 gtk_config_minor_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \
7362 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
7363 gtk_config_micro_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \
7364 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
7365 if test "x$enable_gtktest" = "xyes" ; then
7366 ac_save_CFLAGS="$CFLAGS"
7367 ac_save_LIBS="$LIBS"
7368 CFLAGS="$CFLAGS $GTK_CFLAGS"
7369 LIBS="$GTK_LIBS $LIBS"
7370 rm -f conf.gtktest
7371 if test "$cross_compiling" = yes; then
7372 echo $ac_n "cross compiling; assumed OK... $ac_c"
7373else
7374 cat > conftest.$ac_ext <<EOF
b64f0a5f 7375#line 7376 "configure"
6f72b082
OK
7376#include "confdefs.h"
7377
7378#include <gtk/gtk.h>
7379#include <stdio.h>
7380#include <stdlib.h>
7381
7382int
7383main ()
7384{
7385 int major, minor, micro;
7386 char *tmp_version;
7387
7388 system ("touch conf.gtktest");
7389
7390 /* HP/UX 9 (%@#!) writes to sscanf strings */
7391 tmp_version = g_strdup("$min_gtk_version");
7392 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
7393 printf("%s, bad version string\n", "$min_gtk_version");
7394 exit(1);
7395 }
7396
7397 if ((gtk_major_version != $gtk_config_major_version) ||
7398 (gtk_minor_version != $gtk_config_minor_version) ||
7399 (gtk_micro_version != $gtk_config_micro_version))
7400 {
7401 printf("\n*** 'gtk-config-2.0 --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
7402 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
7403 gtk_major_version, gtk_minor_version, gtk_micro_version);
7404 printf ("*** was found! If gtk-config-2.0 was correct, then it is best\n");
7405 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
7406 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
7407 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
7408 printf("*** required on your system.\n");
7409 printf("*** If gtk-config-2.0 was wrong, set the environment variable GTK_CONFIG_2_0\n");
7410 printf("*** to point to the correct copy of gtk-config-2.0, and remove the file config.cache\n");
7411 printf("*** before re-running configure\n");
7412 }
7413#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
7414 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
7415 (gtk_minor_version != GTK_MINOR_VERSION) ||
7416 (gtk_micro_version != GTK_MICRO_VERSION))
7417 {
7418 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
7419 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
7420 printf("*** library (version %d.%d.%d)\n",
7421 gtk_major_version, gtk_minor_version, gtk_micro_version);
7422 }
7423#endif /* defined (GTK_MAJOR_VERSION) ... */
7424 else
7425 {
7426 if ((gtk_major_version > major) ||
7427 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
7428 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
7429 {
7430 return 0;
7431 }
7432 else
7433 {
7434 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
7435 gtk_major_version, gtk_minor_version, gtk_micro_version);
7436 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
7437 major, minor, micro);
7438 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
7439 printf("***\n");
7440 printf("*** If you have already installed a sufficiently new version, this error\n");
7441 printf("*** probably means that the wrong copy of the gtk-config-2.0 shell script is\n");
7442 printf("*** being found. The easiest way to fix this is to remove the old version\n");
7443 printf("*** of GTK+, but you can also set the GTK_CONFIG_2_0 environment to point to the\n");
7444 printf("*** correct copy of gtk-config-2.0. (In this case, you will have to\n");
7445 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
7446 printf("*** so that the correct libraries are found at run-time))\n");
7447 }
7448 }
7449 return 1;
7450}
7451
7452EOF
b64f0a5f 7453if { (eval echo configure:7454: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6f72b082
OK
7454then
7455 :
7456else
7457 echo "configure: failed program was:" >&5
7458 cat conftest.$ac_ext >&5
7459 rm -fr conftest*
7460 no_gtk=yes
7461fi
7462rm -fr conftest*
7463fi
7464
7465 CFLAGS="$ac_save_CFLAGS"
7466 LIBS="$ac_save_LIBS"
7467 fi
7468 fi
7469 if test "x$no_gtk" = x ; then
7470 echo "$ac_t""yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" 1>&6
7471 WXGTK20=1
7472 else
7473 echo "$ac_t""no" 1>&6
7474 if test "$GTK_CONFIG_2_0" = "no" ; then
7475 echo "*** The gtk-config-2.0 script installed by GTK could not be found"
7476 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
7477 echo "*** your path, or set the GTK_CONFIG_2_0 environment variable to the"
7478 echo "*** full path to gtk-config-2.0."
7479 else
7480 if test -f conf.gtktest ; then
7481 :
7482 else
7483 echo "*** Could not run GTK test program, checking why..."
7484 CFLAGS="$CFLAGS $GTK_CFLAGS"
7485 LIBS="$LIBS $GTK_LIBS"
7486 cat > conftest.$ac_ext <<EOF
b64f0a5f 7487#line 7488 "configure"
6f72b082
OK
7488#include "confdefs.h"
7489
7490#include <gtk/gtk.h>
7491#include <stdio.h>
7492
7493int main() {
7494 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
7495; return 0; }
7496EOF
b64f0a5f 7497if { (eval echo configure:7498: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6f72b082
OK
7498 rm -rf conftest*
7499 echo "*** The test program compiled, but did not run. This usually means"
7500 echo "*** that the run-time linker is not finding GTK or finding the wrong"
7501 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
7502 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
7503 echo "*** to the installed location Also, make sure you have run ldconfig if that"
7504 echo "*** is required on your system"
7505 echo "***"
7506 echo "*** If you have an old version installed, it is best to remove it, although"
7507 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
7508 echo "***"
7509 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
7510 echo "*** came with the system with the command"
7511 echo "***"
7512 echo "*** rpm --erase --nodeps gtk gtk-devel"
7513else
7514 echo "configure: failed program was:" >&5
7515 cat conftest.$ac_ext >&5
7516 rm -rf conftest*
7517 echo "*** The test program failed to compile or link. See the file config.log for the"
7518 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
7519 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
7520 echo "*** may want to edit the gtk-config-2.0 script: $GTK_CONFIG_2_0"
7521fi
7522rm -f conftest*
7523 CFLAGS="$ac_save_CFLAGS"
7524 LIBS="$ac_save_LIBS"
7525 fi
7526 fi
7527 GTK_CFLAGS=""
7528 GTK_LIBS=""
7529
7530
10f2d63a
VZ
7531 if test x$gtk_config_exec_prefix != x ; then
7532 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
7533 if test x${GTK_CONFIG+set} != xset ; then
7534 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
7535 fi
7536 fi
7537 if test x$gtk_config_prefix != x ; then
7538 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
7539 if test x${GTK_CONFIG+set} != xset ; then
7540 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
7541 fi
7542 fi
7543
7544 # Extract the first word of "gtk-config", so it can be a program name with args.
7545set dummy gtk-config; ac_word=$2
7546echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
b64f0a5f 7547echo "configure:7548: checking for $ac_word" >&5
f6bcfd97
BP
7548if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
7549 echo $ac_n "(cached) $ac_c" 1>&6
7550else
7551 case "$GTK_CONFIG" in
7552 /*)
7553 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
7554 ;;
7555 ?:/*)
7556 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
7557 ;;
7558 *)
7559 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7560 ac_dummy="$PATH"
7561 for ac_dir in $ac_dummy; do
7562 test -z "$ac_dir" && ac_dir=.
7563 if test -f $ac_dir/$ac_word; then
7564 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
7565 break
7566 fi
7567 done
7568 IFS="$ac_save_ifs"
7569 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
7570 ;;
7571esac
7572fi
7573GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
7574if test -n "$GTK_CONFIG"; then
7575 echo "$ac_t""$GTK_CONFIG" 1>&6
7576else
7577 echo "$ac_t""no" 1>&6
7578fi
7579
7580 min_gtk_version=1.2.7
7581 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
b64f0a5f 7582echo "configure:7583: checking for GTK - version >= $min_gtk_version" >&5
f6bcfd97
BP
7583 no_gtk=""
7584 if test "$GTK_CONFIG" != "no" ; then
7585 GTK_CFLAGS=`$GTK_CONFIG --cflags`
7586 GTK_LIBS=`$GTK_CONFIG --libs gthread`
7587 ac_save_CFLAGS="$CFLAGS"
7588 ac_save_LIBS="$LIBS"
7589 CFLAGS="$CFLAGS $GTK_CFLAGS"
7590 LIBS="$LIBS $GTK_LIBS"
7591 if test "$cross_compiling" = yes; then
7592 echo $ac_n "cross compiling; assumed OK... $ac_c"
7593else
7594 cat > conftest.$ac_ext <<EOF
b64f0a5f 7595#line 7596 "configure"
f6bcfd97
BP
7596#include "confdefs.h"
7597
7598#include <gtk/gtk.h>
7599#include <gtk/gtkfeatures.h>
7600#include <stdio.h>
7601#include <stdlib.h>
7602
7603int
7604main ()
7605{
7606 int major, minor, micro;
7607
7608 if (sscanf("$min_gtk_version", "%d.%d.%d", &major, &minor, &micro) != 3) {
7609 printf("%s, bad version string\n", "$min_gtk_version");
7610 exit(1);
7611 }
7612
7613 if ((GTK_MAJOR_VERSION != gtk_major_version) ||
7614 (GTK_MINOR_VERSION != gtk_minor_version) ||
7615 (GTK_MICRO_VERSION != gtk_micro_version)) {
7616 printf("Headers vs. library version mismatch!\n");
7617 exit(1);
7618 }
7619
7620 if (gtk_minor_version == 1) return FALSE;
7621
7622 return !((gtk_major_version > major) ||
7623 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
7624 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)));
7625}
7626
7627EOF
b64f0a5f 7628if { (eval echo configure:7629: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
f6bcfd97
BP
7629then
7630 :
7631else
7632 echo "configure: failed program was:" >&5
7633 cat conftest.$ac_ext >&5
7634 rm -fr conftest*
7635 no_gtk=yes
7636fi
7637rm -fr conftest*
7638fi
7639
7640 CFLAGS="$ac_save_CFLAGS"
7641 LIBS="$ac_save_LIBS"
7642 else
7643 no_gtk=yes
7644 fi
7645 if test "x$no_gtk" = x ; then
7646 echo "$ac_t""yes" 1>&6
7647 WXGTK127=1
7648 else
7649 echo "$ac_t""no" 1>&6
7650 GTK_CFLAGS=""
7651 GTK_LIBS=""
7652 :
7653 fi
7654
7655
7656
6f72b082 7657
f6bcfd97
BP
7658 if test x$gtk_config_exec_prefix != x ; then
7659 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
7660 if test x${GTK_CONFIG+set} != xset ; then
7661 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
7662 fi
7663 fi
7664 if test x$gtk_config_prefix != x ; then
7665 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
7666 if test x${GTK_CONFIG+set} != xset ; then
7667 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
7668 fi
7669 fi
7670
7671 # Extract the first word of "gtk-config", so it can be a program name with args.
7672set dummy gtk-config; ac_word=$2
7673echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
b64f0a5f 7674echo "configure:7675: checking for $ac_word" >&5
10f2d63a
VZ
7675if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
7676 echo $ac_n "(cached) $ac_c" 1>&6
7677else
7678 case "$GTK_CONFIG" in
7679 /*)
7680 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
7681 ;;
7682 ?:/*)
7683 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
7684 ;;
7685 *)
7686 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7687 ac_dummy="$PATH"
7688 for ac_dir in $ac_dummy; do
7689 test -z "$ac_dir" && ac_dir=.
7690 if test -f $ac_dir/$ac_word; then
7691 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
7692 break
7693 fi
7694 done
7695 IFS="$ac_save_ifs"
7696 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
7697 ;;
7698esac
7699fi
7700GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
7701if test -n "$GTK_CONFIG"; then
7702 echo "$ac_t""$GTK_CONFIG" 1>&6
7703else
7704 echo "$ac_t""no" 1>&6
7705fi
7706
04165bec 7707 min_gtk_version=1.2.3
10f2d63a 7708 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
b64f0a5f 7709echo "configure:7710: checking for GTK - version >= $min_gtk_version" >&5
10f2d63a
VZ
7710 no_gtk=""
7711 if test "$GTK_CONFIG" != "no" ; then
7712 GTK_CFLAGS=`$GTK_CONFIG --cflags`
2224580a 7713 GTK_LIBS=`$GTK_CONFIG --libs gthread`
10f2d63a
VZ
7714 ac_save_CFLAGS="$CFLAGS"
7715 ac_save_LIBS="$LIBS"
7716 CFLAGS="$CFLAGS $GTK_CFLAGS"
7717 LIBS="$LIBS $GTK_LIBS"
7718 if test "$cross_compiling" = yes; then
7719 echo $ac_n "cross compiling; assumed OK... $ac_c"
7720else
7721 cat > conftest.$ac_ext <<EOF
b64f0a5f 7722#line 7723 "configure"
10f2d63a
VZ
7723#include "confdefs.h"
7724
7725#include <gtk/gtk.h>
f49f2b0c 7726#include <gtk/gtkfeatures.h>
10f2d63a 7727#include <stdio.h>
32832908 7728#include <stdlib.h>
10f2d63a
VZ
7729
7730int
7731main ()
7732{
7733 int major, minor, micro;
7734
7735 if (sscanf("$min_gtk_version", "%d.%d.%d", &major, &minor, &micro) != 3) {
7736 printf("%s, bad version string\n", "$min_gtk_version");
7737 exit(1);
7738 }
7739
f49f2b0c
RR
7740 if ((GTK_MAJOR_VERSION != gtk_major_version) ||
7741 (GTK_MINOR_VERSION != gtk_minor_version) ||
7742 (GTK_MICRO_VERSION != gtk_micro_version)) {
7743 printf("Headers vs. library version mismatch!\n");
7744 exit(1);
7745 }
7746
10f2d63a
VZ
7747 if (gtk_minor_version == 1) return FALSE;
7748
7749 return !((gtk_major_version > major) ||
7750 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
7751 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)));
7752}
7753
7754EOF
b64f0a5f 7755if { (eval echo configure:7756: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10f2d63a
VZ
7756then
7757 :
7758else
7759 echo "configure: failed program was:" >&5
7760 cat conftest.$ac_ext >&5
7761 rm -fr conftest*
7762 no_gtk=yes
7763fi
7764rm -fr conftest*
7765fi
7766
7767 CFLAGS="$ac_save_CFLAGS"
7768 LIBS="$ac_save_LIBS"
7769 else
7770 no_gtk=yes
7771 fi
7772 if test "x$no_gtk" = x ; then
7773 echo "$ac_t""yes" 1>&6
7774 WXGTK12=1
7775 else
7776 echo "$ac_t""no" 1>&6
7777 GTK_CFLAGS=""
7778 GTK_LIBS=""
7e99ad86 7779 :
10f2d63a
VZ
7780 fi
7781
7782
7783
6f72b082
OK
7784
7785 fi
7786
7787
7788 rm -f conf.gtktest
7789
10f2d63a 7790
6f72b082 7791 if test "$WXGTK12" != 1 -a "$WXGTK20" != 1; then
7e99ad86
VZ
7792 { echo "configure: error:
7793 Please check that gtk-config is in path, the directory
7794 where GTK+ libraries are installed (returned by
7795 'gtk-config --libs' command) is in LD_LIBRARY_PATH or
7796 equivalent variable and GTK+ is version 1.2.3 or above.
7797 " 1>&2; exit 1; }
7798 fi
7799
10f2d63a 7800 TOOLKIT_INCLUDE="$GTK_CFLAGS"
2224580a
VZ
7801
7802
7803 GUI_TK_LIBRARY="$GTK_LIBS"
7804
10f2d63a
VZ
7805 TOOLKIT=GTK
7806
dad6c0ea
VZ
7807 AFMINSTALL=afminstall
7808
10f2d63a
VZ
7809 GUIOBJS="\$(GTK_GUIOBJS)"
7810 GUIHEADERS="\$(GTK_HEADERS)"
7811 COMMONOBJS="\$(GTK_COMMONOBJS)"
7812 GENERICOBJS="\$(GTK_GENERICOBJS)"
7813 GUIDEPS="\$(GTK_GUIDEPS)"
7814 COMMONDEPS="\$(GTK_COMMONDEPS)"
7815 GENERICDEPS="\$(GTK_GENERICDEPS)"
7816 UNIXOBJS="\$(UNIX_OBJS)"
d9d8273d 7817 UNIXDEPS="\$(UNIX_DEPS)"
10f2d63a 7818 GUIDIST=GTK_DIST
7ec2881a 7819
2224580a 7820 echo $ac_n "checking for gdk_im_open in -lgdk""... $ac_c" 1>&6
b64f0a5f 7821echo "configure:7822: checking for gdk_im_open in -lgdk" >&5
7ec2881a
RR
7822ac_lib_var=`echo gdk'_'gdk_im_open | sed 'y%./+-%__p_%'`
7823if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7824 echo $ac_n "(cached) $ac_c" 1>&6
7825else
7826 ac_save_LIBS="$LIBS"
7827LIBS="-lgdk $LIBS"
7828cat > conftest.$ac_ext <<EOF
b64f0a5f 7829#line 7830 "configure"
7ec2881a
RR
7830#include "confdefs.h"
7831/* Override any gcc2 internal prototype to avoid an error. */
7832/* We use char because int might match the return type of a gcc2
7833 builtin and then its argument prototype would still apply. */
7834char gdk_im_open();
7835
7836int main() {
7837gdk_im_open()
7838; return 0; }
7839EOF
b64f0a5f 7840if { (eval echo configure:7841: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7ec2881a
RR
7841 rm -rf conftest*
7842 eval "ac_cv_lib_$ac_lib_var=yes"
7843else
7844 echo "configure: failed program was:" >&5
7845 cat conftest.$ac_ext >&5
7846 rm -rf conftest*
7847 eval "ac_cv_lib_$ac_lib_var=no"
7848fi
7849rm -f conftest*
7850LIBS="$ac_save_LIBS"
7851
7852fi
7853if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7854 echo "$ac_t""yes" 1>&6
7855 cat >> confdefs.h <<\EOF
7856#define HAVE_XIM 1
7857EOF
7858
7859else
7860 echo "$ac_t""no" 1>&6
7861fi
7862
10f2d63a
VZ
7863fi
7864
7865if test "$wxUSE_WINE" = 1; then
7866 echo $ac_n "checking for WINE includes""... $ac_c" 1>&6
b64f0a5f 7867echo "configure:7868: checking for WINE includes" >&5
10f2d63a
VZ
7868
7869ac_find_includes=
7870for ac_dir in $SEARCH_INCLUDE;
7871 do
7872 if test -f "$ac_dir/windows.h"; then
7873 ac_find_includes=$ac_dir
7874 break
7875 fi
7876 done
7877
7878 if test "$ac_find_includes" != "" ; then
7879 echo "$ac_t""found $ac_find_includes" 1>&6
7880 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE -I$ac_find_includes"
7881 else
7882 echo "$ac_t""no" 1>&6
7883 { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; }
7884 fi
7885
7886 XPM_LINK=""
7887 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
b64f0a5f 7888echo "configure:7889: checking for Xpm library" >&5
10f2d63a
VZ
7889
7890ac_find_libraries=
7891for ac_dir in $SEARCH_LIB;
7892 do
7893 for ac_extension in a so sl; do
7894 if test -f "$ac_dir/libXpm.$ac_extension"; then
7895 ac_find_libraries=$ac_dir
7896 break 2
7897 fi
7898 done
7899 done
7900
7901 if test "$ac_find_libraries" != "" ; then
7902 GUI_TK_LIBRARY="-L$ac_find_libraries"
7903 XPM_LINK="-lXpm"
7904 cat >> confdefs.h <<\EOF
7905#define wxHAVE_LIB_XPM 1
7906EOF
7907
7908 echo "$ac_t""found at $ac_find_libraries" 1>&6
7909 else
7910 echo "$ac_t""no" 1>&6
7911 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
7912 fi
7913
7914 MESA_LINK=""
7915 echo $ac_n "checking for Mesa library""... $ac_c" 1>&6
b64f0a5f 7916echo "configure:7917: checking for Mesa library" >&5
10f2d63a
VZ
7917
7918ac_find_libraries=
7919for ac_dir in $SEARCH_LIB;
7920 do
7921 for ac_extension in a so sl; do
7922 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
7923 ac_find_libraries=$ac_dir
7924 break 2
7925 fi
7926 done
7927 done
7928
7929 if test "$ac_find_libraries" != "" ; then
7930 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -L$ac_find_libraries"
7931 MESA_LINK="-lMesaGL"
7932 echo "$ac_t""found at $ac_find_libraries" 1>&6
7933 else
7934 { echo "configure: error: no" 1>&2; exit 1; }
7935 fi
7936
8916026b 7937 GUI_TK_LINK="-lwine $MESA_LINK $XPM_LINK -lXxf86dga -lXxf86vm -lSM -lICE -lXext -lXmu -lX11 -lncurses"
10f2d63a
VZ
7938 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $GUI_TK_LINK"
7939 WXWINE=1
7940 TOOLKIT=MSW
7941
7942 GUIHEADERS="\$(MSW_HEADERS)"
7943 GUIOBJS="\$(MSW_GUIOBJS)"
7944 COMMONOBJS="\$(MSW_COMMONOBJS)"
7945 GENERICOBJS="\$(MSW_GENERICOBJS)"
7946 GUIDEPS="\$(MSW_GUIDEPS)"
7947 COMMONDEPS="\$(MSW_COMMONDEPS)"
7948 GENERICDEPS="\$(MSW_GENERICDEPS)"
7949 UNIXOBJS="\$(UNIX_OBJS)"
d9d8273d 7950 UNIXDEPS="\$(UNIX_DEPS)"
10f2d63a
VZ
7951 GUIDIST=MSW_DIST
7952fi
7953
37d403aa
JS
7954
7955# If we find X, set shell vars x_includes and x_libraries to the
ab9b9eab
VZ
7956# paths, otherwise set no_x=yes.
7957# Uses ac_ vars as temps to allow command line to override cache and checks.
7958# --without-x overrides everything else, but does not touch the cache.
7959echo $ac_n "checking for X""... $ac_c" 1>&6
b64f0a5f 7960echo "configure:7961: checking for X" >&5
ab9b9eab
VZ
7961
7962# Check whether --with-x or --without-x was given.
7963if test "${with_x+set}" = set; then
7964 withval="$with_x"
7965 :
7966fi
ba337fe7 7967
ab9b9eab
VZ
7968# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7969if test "x$with_x" = xno; then
7970 # The user explicitly disabled X.
7971 have_x=disabled
7972else
7973 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
7974 # Both variables are already set.
7975 have_x=yes
7976 else
7977if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
7978 echo $ac_n "(cached) $ac_c" 1>&6
7979else
7980 # One or both of the vars are not set, and there is no cached value.
7981ac_x_includes=NO ac_x_libraries=NO
7982rm -fr conftestdir
7983if mkdir conftestdir; then
7984 cd conftestdir
7985 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
7986 cat > Imakefile <<'EOF'
7987acfindx:
7988 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
7989EOF
7990 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
7991 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7992 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
7993 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
10f2d63a 7994 for ac_extension in a so sl; do
ab9b9eab
VZ
7995 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
7996 test -f $ac_im_libdir/libX11.$ac_extension; then
7997 ac_im_usrlibdir=$ac_im_libdir; break
10f2d63a
VZ
7998 fi
7999 done
ab9b9eab
VZ
8000 # Screen out bogus values from the imake configuration. They are
8001 # bogus both because they are the default anyway, and because
8002 # using them would break gcc on systems where it needs fixed includes.
8003 case "$ac_im_incroot" in
8004 /usr/include) ;;
8005 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
8006 esac
8007 case "$ac_im_usrlibdir" in
8008 /usr/lib | /lib) ;;
8009 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
8010 esac
ba337fe7 8011 fi
ab9b9eab
VZ
8012 cd ..
8013 rm -fr conftestdir
8014fi
10f2d63a 8015
ab9b9eab
VZ
8016if test "$ac_x_includes" = NO; then
8017 # Guess where to find include files, by looking for this one X11 .h file.
8018 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
ba337fe7 8019
ab9b9eab
VZ
8020 # First, try using that file with no special directory specified.
8021cat > conftest.$ac_ext <<EOF
b64f0a5f 8022#line 8023 "configure"
ab9b9eab
VZ
8023#include "confdefs.h"
8024#include <$x_direct_test_include>
8025EOF
8026ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
b64f0a5f 8027{ (eval echo configure:8028: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ab9b9eab
VZ
8028ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8029if test -z "$ac_err"; then
8030 rm -rf conftest*
8031 # We can compile using X headers with no special include directory.
8032ac_x_includes=
8033else
8034 echo "$ac_err" >&5
8035 echo "configure: failed program was:" >&5
8036 cat conftest.$ac_ext >&5
8037 rm -rf conftest*
8038 # Look for the header file in a standard set of common directories.
8039# Check X11 before X11Rn because it is often a symlink to the current release.
8040 for ac_dir in \
8041 /usr/X11/include \
8042 /usr/X11R6/include \
8043 /usr/X11R5/include \
8044 /usr/X11R4/include \
8045 \
8046 /usr/include/X11 \
8047 /usr/include/X11R6 \
8048 /usr/include/X11R5 \
8049 /usr/include/X11R4 \
8050 \
8051 /usr/local/X11/include \
8052 /usr/local/X11R6/include \
8053 /usr/local/X11R5/include \
8054 /usr/local/X11R4/include \
8055 \
8056 /usr/local/include/X11 \
8057 /usr/local/include/X11R6 \
8058 /usr/local/include/X11R5 \
8059 /usr/local/include/X11R4 \
8060 \
8061 /usr/X386/include \
8062 /usr/x386/include \
8063 /usr/XFree86/include/X11 \
8064 \
8065 /usr/include \
8066 /usr/local/include \
8067 /usr/unsupported/include \
8068 /usr/athena/include \
8069 /usr/local/x11r5/include \
8070 /usr/lpp/Xamples/include \
8071 \
8072 /usr/openwin/include \
8073 /usr/openwin/share/include \
8074 ; \
10f2d63a 8075 do
ab9b9eab
VZ
8076 if test -r "$ac_dir/$x_direct_test_include"; then
8077 ac_x_includes=$ac_dir
10f2d63a
VZ
8078 break
8079 fi
8080 done
ab9b9eab
VZ
8081fi
8082rm -f conftest*
8083fi # $ac_x_includes = NO
10f2d63a 8084
ab9b9eab
VZ
8085if test "$ac_x_libraries" = NO; then
8086 # Check for the libraries.
10f2d63a 8087
ab9b9eab
VZ
8088 test -z "$x_direct_test_library" && x_direct_test_library=Xt
8089 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
10f2d63a 8090
ab9b9eab
VZ
8091 # See if we find them without any special options.
8092 # Don't add to $LIBS permanently.
8093 ac_save_LIBS="$LIBS"
8094 LIBS="-l$x_direct_test_library $LIBS"
8095cat > conftest.$ac_ext <<EOF
b64f0a5f 8096#line 8097 "configure"
ab9b9eab 8097#include "confdefs.h"
10f2d63a 8098
ab9b9eab
VZ
8099int main() {
8100${x_direct_test_function}()
8101; return 0; }
8102EOF
b64f0a5f 8103if { (eval echo configure:8104: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
8104 rm -rf conftest*
8105 LIBS="$ac_save_LIBS"
8106# We can link X programs with no special library path.
8107ac_x_libraries=
8108else
8109 echo "configure: failed program was:" >&5
8110 cat conftest.$ac_ext >&5
8111 rm -rf conftest*
8112 LIBS="$ac_save_LIBS"
8113# First see if replacing the include by lib works.
8114# Check X11 before X11Rn because it is often a symlink to the current release.
8115for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
8116 /usr/X11/lib \
8117 /usr/X11R6/lib \
8118 /usr/X11R5/lib \
8119 /usr/X11R4/lib \
8120 \
8121 /usr/lib/X11 \
8122 /usr/lib/X11R6 \
8123 /usr/lib/X11R5 \
8124 /usr/lib/X11R4 \
8125 \
8126 /usr/local/X11/lib \
8127 /usr/local/X11R6/lib \
8128 /usr/local/X11R5/lib \
8129 /usr/local/X11R4/lib \
8130 \
8131 /usr/local/lib/X11 \
8132 /usr/local/lib/X11R6 \
8133 /usr/local/lib/X11R5 \
8134 /usr/local/lib/X11R4 \
8135 \
8136 /usr/X386/lib \
8137 /usr/x386/lib \
8138 /usr/XFree86/lib/X11 \
8139 \
8140 /usr/lib \
8141 /usr/local/lib \
8142 /usr/unsupported/lib \
8143 /usr/athena/lib \
8144 /usr/local/x11r5/lib \
8145 /usr/lpp/Xamples/lib \
8146 /lib/usr/lib/X11 \
8147 \
8148 /usr/openwin/lib \
8149 /usr/openwin/share/lib \
8150 ; \
8151do
8152 for ac_extension in a so sl; do
8153 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
8154 ac_x_libraries=$ac_dir
8155 break 2
10f2d63a 8156 fi
10f2d63a 8157 done
ab9b9eab
VZ
8158done
8159fi
8160rm -f conftest*
8161fi # $ac_x_libraries = NO
10f2d63a 8162
ab9b9eab
VZ
8163if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
8164 # Didn't find X anywhere. Cache the known absence of X.
8165 ac_cv_have_x="have_x=no"
8166else
8167 # Record where we found X for the cache.
8168 ac_cv_have_x="have_x=yes \
8169 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
8170fi
8171fi
10f2d63a 8172 fi
ab9b9eab
VZ
8173 eval "$ac_cv_have_x"
8174fi # $with_x != no
10f2d63a 8175
ab9b9eab
VZ
8176if test "$have_x" != yes; then
8177 echo "$ac_t""$have_x" 1>&6
8178 no_x=yes
8179else
8180 # If each of the values was on the command line, it overrides each guess.
8181 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
8182 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
8183 # Update the cache value to reflect the command line values.
8184 ac_cv_have_x="have_x=yes \
8185 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
8186 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
8187fi
10f2d63a 8188
ab9b9eab
VZ
8189if test "$no_x" = yes; then
8190 # Not all programs may use this symbol, but it does not hurt to define it.
8191 cat >> confdefs.h <<\EOF
8192#define X_DISPLAY_MISSING 1
8193EOF
10f2d63a 8194
ab9b9eab
VZ
8195 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
8196else
8197 if test -n "$x_includes"; then
8198 X_CFLAGS="$X_CFLAGS -I$x_includes"
10f2d63a
VZ
8199 fi
8200
ab9b9eab
VZ
8201 # It would also be nice to do this for all -L options, not just this one.
8202 if test -n "$x_libraries"; then
8203 X_LIBS="$X_LIBS -L$x_libraries"
8204 # For Solaris; some versions of Sun CC require a space after -R and
8205 # others require no space. Words are not sufficient . . . .
8206 case "`(uname -sr) 2>/dev/null`" in
8207 "SunOS 5"*)
8208 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
b64f0a5f 8209echo "configure:8210: checking whether -R must be followed by a space" >&5
ab9b9eab
VZ
8210 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
8211 cat > conftest.$ac_ext <<EOF
b64f0a5f 8212#line 8213 "configure"
ab9b9eab 8213#include "confdefs.h"
10f2d63a 8214
ab9b9eab 8215int main() {
788deba1 8216
ab9b9eab
VZ
8217; return 0; }
8218EOF
b64f0a5f 8219if { (eval echo configure:8220: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
8220 rm -rf conftest*
8221 ac_R_nospace=yes
8222else
8223 echo "configure: failed program was:" >&5
8224 cat conftest.$ac_ext >&5
8225 rm -rf conftest*
8226 ac_R_nospace=no
8227fi
8228rm -f conftest*
8229 if test $ac_R_nospace = yes; then
8230 echo "$ac_t""no" 1>&6
8231 X_LIBS="$X_LIBS -R$x_libraries"
8232 else
8233 LIBS="$ac_xsave_LIBS -R $x_libraries"
8234 cat > conftest.$ac_ext <<EOF
b64f0a5f 8235#line 8236 "configure"
ab9b9eab 8236#include "confdefs.h"
788deba1 8237
ab9b9eab
VZ
8238int main() {
8239
8240; return 0; }
8241EOF
b64f0a5f 8242if { (eval echo configure:8243: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
8243 rm -rf conftest*
8244 ac_R_space=yes
8245else
8246 echo "configure: failed program was:" >&5
8247 cat conftest.$ac_ext >&5
8248 rm -rf conftest*
8249 ac_R_space=no
8250fi
8251rm -f conftest*
8252 if test $ac_R_space = yes; then
8253 echo "$ac_t""yes" 1>&6
8254 X_LIBS="$X_LIBS -R $x_libraries"
8255 else
8256 echo "$ac_t""neither works" 1>&6
8257 fi
8258 fi
8259 LIBS="$ac_xsave_LIBS"
8260 esac
8261 fi
8262
8263 # Check for system-dependent libraries X programs must link with.
8264 # Do this before checking for the system-independent R6 libraries
8265 # (-lICE), since we may need -lsocket or whatever for X linking.
8266
8267 if test "$ISC" = yes; then
8268 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
8269 else
8270 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
8271 # libraries were built with DECnet support. And karl@cs.umb.edu says
8272 # the Alpha needs dnet_stub (dnet does not exist).
8273 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
b64f0a5f 8274echo "configure:8275: checking for dnet_ntoa in -ldnet" >&5
ab9b9eab
VZ
8275ac_lib_var=`echo dnet'_'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 $LIBS"
8281cat > conftest.$ac_ext <<EOF
b64f0a5f 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
b64f0a5f 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"
8309else
8310 echo "$ac_t""no" 1>&6
8311fi
8312
8313 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
8314 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
b64f0a5f 8315echo "configure:8316: checking for dnet_ntoa in -ldnet_stub" >&5
ab9b9eab
VZ
8316ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
8317if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8318 echo $ac_n "(cached) $ac_c" 1>&6
8319else
8320 ac_save_LIBS="$LIBS"
8321LIBS="-ldnet_stub $LIBS"
8322cat > conftest.$ac_ext <<EOF
b64f0a5f 8323#line 8324 "configure"
ab9b9eab
VZ
8324#include "confdefs.h"
8325/* Override any gcc2 internal prototype to avoid an error. */
8326/* We use char because int might match the return type of a gcc2
8327 builtin and then its argument prototype would still apply. */
8328char dnet_ntoa();
8329
8330int main() {
8331dnet_ntoa()
8332; return 0; }
8333EOF
b64f0a5f 8334if { (eval echo configure:8335: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
8335 rm -rf conftest*
8336 eval "ac_cv_lib_$ac_lib_var=yes"
8337else
8338 echo "configure: failed program was:" >&5
8339 cat conftest.$ac_ext >&5
8340 rm -rf conftest*
8341 eval "ac_cv_lib_$ac_lib_var=no"
8342fi
8343rm -f conftest*
8344LIBS="$ac_save_LIBS"
8345
8346fi
8347if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8348 echo "$ac_t""yes" 1>&6
8349 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
8350else
8351 echo "$ac_t""no" 1>&6
8352fi
8353
8354 fi
8355
8356 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
8357 # to get the SysV transport functions.
8358 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
8359 # needs -lnsl.
8360 # The nsl library prevents programs from opening the X display
8361 # on Irix 5.2, according to dickey@clark.net.
8362 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
b64f0a5f 8363echo "configure:8364: checking for gethostbyname" >&5
ab9b9eab
VZ
8364if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
8365 echo $ac_n "(cached) $ac_c" 1>&6
8366else
8367 cat > conftest.$ac_ext <<EOF
b64f0a5f 8368#line 8369 "configure"
ab9b9eab
VZ
8369#include "confdefs.h"
8370/* System header to define __stub macros and hopefully few prototypes,
8371 which can conflict with char gethostbyname(); below. */
8372#include <assert.h>
8373/* Override any gcc2 internal prototype to avoid an error. */
8374/* We use char because int might match the return type of a gcc2
8375 builtin and then its argument prototype would still apply. */
8376char gethostbyname();
8377
8378int main() {
8379
8380/* The GNU C library defines this for functions which it implements
8381 to always fail with ENOSYS. Some functions are actually named
8382 something starting with __ and the normal name is an alias. */
8383#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
8384choke me
8385#else
e8482f24 8386gethostbyname();
ab9b9eab
VZ
8387#endif
8388
8389; return 0; }
8390EOF
b64f0a5f 8391if { (eval echo configure:8392: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
8392 rm -rf conftest*
8393 eval "ac_cv_func_gethostbyname=yes"
8394else
8395 echo "configure: failed program was:" >&5
8396 cat conftest.$ac_ext >&5
8397 rm -rf conftest*
8398 eval "ac_cv_func_gethostbyname=no"
8399fi
8400rm -f conftest*
8401fi
8402
8403if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
8404 echo "$ac_t""yes" 1>&6
8405 :
8406else
8407 echo "$ac_t""no" 1>&6
8408fi
8409
8410 if test $ac_cv_func_gethostbyname = no; then
8411 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
b64f0a5f 8412echo "configure:8413: checking for gethostbyname in -lnsl" >&5
ab9b9eab
VZ
8413ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
8414if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8415 echo $ac_n "(cached) $ac_c" 1>&6
8416else
8417 ac_save_LIBS="$LIBS"
8418LIBS="-lnsl $LIBS"
8419cat > conftest.$ac_ext <<EOF
b64f0a5f 8420#line 8421 "configure"
ab9b9eab
VZ
8421#include "confdefs.h"
8422/* Override any gcc2 internal prototype to avoid an error. */
8423/* We use char because int might match the return type of a gcc2
8424 builtin and then its argument prototype would still apply. */
8425char gethostbyname();
8426
8427int main() {
8428gethostbyname()
8429; return 0; }
8430EOF
b64f0a5f 8431if { (eval echo configure:8432: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
8432 rm -rf conftest*
8433 eval "ac_cv_lib_$ac_lib_var=yes"
8434else
8435 echo "configure: failed program was:" >&5
8436 cat conftest.$ac_ext >&5
8437 rm -rf conftest*
8438 eval "ac_cv_lib_$ac_lib_var=no"
8439fi
8440rm -f conftest*
8441LIBS="$ac_save_LIBS"
8442
8443fi
8444if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8445 echo "$ac_t""yes" 1>&6
8446 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
8447else
8448 echo "$ac_t""no" 1>&6
8449fi
8450
8451 fi
8452
8453 # lieder@skyler.mavd.honeywell.com says without -lsocket,
8454 # socket/setsockopt and other routines are undefined under SCO ODT
8455 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
8456 # on later versions), says simon@lia.di.epfl.ch: it contains
8457 # gethostby* variants that don't use the nameserver (or something).
8458 # -lsocket must be given before -lnsl if both are needed.
8459 # We assume that if connect needs -lnsl, so does gethostbyname.
8460 echo $ac_n "checking for connect""... $ac_c" 1>&6
b64f0a5f 8461echo "configure:8462: checking for connect" >&5
ab9b9eab
VZ
8462if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
8463 echo $ac_n "(cached) $ac_c" 1>&6
8464else
8465 cat > conftest.$ac_ext <<EOF
b64f0a5f 8466#line 8467 "configure"
ab9b9eab
VZ
8467#include "confdefs.h"
8468/* System header to define __stub macros and hopefully few prototypes,
8469 which can conflict with char connect(); below. */
8470#include <assert.h>
8471/* Override any gcc2 internal prototype to avoid an error. */
8472/* We use char because int might match the return type of a gcc2
8473 builtin and then its argument prototype would still apply. */
8474char connect();
8475
8476int main() {
8477
8478/* The GNU C library defines this for functions which it implements
8479 to always fail with ENOSYS. Some functions are actually named
8480 something starting with __ and the normal name is an alias. */
8481#if defined (__stub_connect) || defined (__stub___connect)
8482choke me
8483#else
e8482f24 8484connect();
ab9b9eab
VZ
8485#endif
8486
8487; return 0; }
8488EOF
b64f0a5f 8489if { (eval echo configure:8490: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
8490 rm -rf conftest*
8491 eval "ac_cv_func_connect=yes"
8492else
8493 echo "configure: failed program was:" >&5
8494 cat conftest.$ac_ext >&5
8495 rm -rf conftest*
8496 eval "ac_cv_func_connect=no"
8497fi
8498rm -f conftest*
8499fi
8500
8501if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
8502 echo "$ac_t""yes" 1>&6
8503 :
8504else
8505 echo "$ac_t""no" 1>&6
8506fi
8507
8508 if test $ac_cv_func_connect = no; then
8509 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
b64f0a5f 8510echo "configure:8511: checking for connect in -lsocket" >&5
ab9b9eab
VZ
8511ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
8512if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8513 echo $ac_n "(cached) $ac_c" 1>&6
8514else
8515 ac_save_LIBS="$LIBS"
8516LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
8517cat > conftest.$ac_ext <<EOF
b64f0a5f 8518#line 8519 "configure"
ab9b9eab
VZ
8519#include "confdefs.h"
8520/* Override any gcc2 internal prototype to avoid an error. */
8521/* We use char because int might match the return type of a gcc2
8522 builtin and then its argument prototype would still apply. */
8523char connect();
8524
8525int main() {
8526connect()
8527; return 0; }
8528EOF
b64f0a5f 8529if { (eval echo configure:8530: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
8530 rm -rf conftest*
8531 eval "ac_cv_lib_$ac_lib_var=yes"
8532else
8533 echo "configure: failed program was:" >&5
8534 cat conftest.$ac_ext >&5
8535 rm -rf conftest*
8536 eval "ac_cv_lib_$ac_lib_var=no"
8537fi
8538rm -f conftest*
8539LIBS="$ac_save_LIBS"
8540
8541fi
8542if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8543 echo "$ac_t""yes" 1>&6
8544 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
8545else
8546 echo "$ac_t""no" 1>&6
8547fi
8548
8549 fi
8550
8551 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
8552 echo $ac_n "checking for remove""... $ac_c" 1>&6
b64f0a5f 8553echo "configure:8554: checking for remove" >&5
ab9b9eab
VZ
8554if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
8555 echo $ac_n "(cached) $ac_c" 1>&6
8556else
8557 cat > conftest.$ac_ext <<EOF
b64f0a5f 8558#line 8559 "configure"
ab9b9eab
VZ
8559#include "confdefs.h"
8560/* System header to define __stub macros and hopefully few prototypes,
8561 which can conflict with char remove(); below. */
8562#include <assert.h>
8563/* Override any gcc2 internal prototype to avoid an error. */
8564/* We use char because int might match the return type of a gcc2
8565 builtin and then its argument prototype would still apply. */
8566char remove();
8567
8568int main() {
8569
8570/* The GNU C library defines this for functions which it implements
8571 to always fail with ENOSYS. Some functions are actually named
8572 something starting with __ and the normal name is an alias. */
8573#if defined (__stub_remove) || defined (__stub___remove)
8574choke me
8575#else
e8482f24 8576remove();
ab9b9eab
VZ
8577#endif
8578
8579; return 0; }
8580EOF
b64f0a5f 8581if { (eval echo configure:8582: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
8582 rm -rf conftest*
8583 eval "ac_cv_func_remove=yes"
8584else
8585 echo "configure: failed program was:" >&5
8586 cat conftest.$ac_ext >&5
8587 rm -rf conftest*
8588 eval "ac_cv_func_remove=no"
8589fi
8590rm -f conftest*
8591fi
8592
8593if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
8594 echo "$ac_t""yes" 1>&6
8595 :
8596else
8597 echo "$ac_t""no" 1>&6
8598fi
8599
8600 if test $ac_cv_func_remove = no; then
8601 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
b64f0a5f 8602echo "configure:8603: checking for remove in -lposix" >&5
ab9b9eab
VZ
8603ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
8604if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8605 echo $ac_n "(cached) $ac_c" 1>&6
8606else
8607 ac_save_LIBS="$LIBS"
8608LIBS="-lposix $LIBS"
8609cat > conftest.$ac_ext <<EOF
b64f0a5f 8610#line 8611 "configure"
ab9b9eab
VZ
8611#include "confdefs.h"
8612/* Override any gcc2 internal prototype to avoid an error. */
8613/* We use char because int might match the return type of a gcc2
8614 builtin and then its argument prototype would still apply. */
8615char remove();
8616
8617int main() {
8618remove()
8619; return 0; }
8620EOF
b64f0a5f 8621if { (eval echo configure:8622: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
8622 rm -rf conftest*
8623 eval "ac_cv_lib_$ac_lib_var=yes"
8624else
8625 echo "configure: failed program was:" >&5
8626 cat conftest.$ac_ext >&5
8627 rm -rf conftest*
8628 eval "ac_cv_lib_$ac_lib_var=no"
8629fi
8630rm -f conftest*
8631LIBS="$ac_save_LIBS"
8632
8633fi
8634if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8635 echo "$ac_t""yes" 1>&6
8636 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
8637else
8638 echo "$ac_t""no" 1>&6
8639fi
8640
8641 fi
8642
8643 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
8644 echo $ac_n "checking for shmat""... $ac_c" 1>&6
b64f0a5f 8645echo "configure:8646: checking for shmat" >&5
ab9b9eab
VZ
8646if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
8647 echo $ac_n "(cached) $ac_c" 1>&6
8648else
8649 cat > conftest.$ac_ext <<EOF
b64f0a5f 8650#line 8651 "configure"
ab9b9eab
VZ
8651#include "confdefs.h"
8652/* System header to define __stub macros and hopefully few prototypes,
8653 which can conflict with char shmat(); below. */
8654#include <assert.h>
8655/* Override any gcc2 internal prototype to avoid an error. */
8656/* We use char because int might match the return type of a gcc2
8657 builtin and then its argument prototype would still apply. */
8658char shmat();
8659
8660int main() {
8661
8662/* The GNU C library defines this for functions which it implements
8663 to always fail with ENOSYS. Some functions are actually named
8664 something starting with __ and the normal name is an alias. */
8665#if defined (__stub_shmat) || defined (__stub___shmat)
8666choke me
8667#else
e8482f24 8668shmat();
ab9b9eab
VZ
8669#endif
8670
8671; return 0; }
8672EOF
b64f0a5f 8673if { (eval echo configure:8674: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
8674 rm -rf conftest*
8675 eval "ac_cv_func_shmat=yes"
8676else
8677 echo "configure: failed program was:" >&5
8678 cat conftest.$ac_ext >&5
8679 rm -rf conftest*
8680 eval "ac_cv_func_shmat=no"
8681fi
8682rm -f conftest*
8683fi
8684
8685if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
8686 echo "$ac_t""yes" 1>&6
8687 :
8688else
8689 echo "$ac_t""no" 1>&6
8690fi
8691
8692 if test $ac_cv_func_shmat = no; then
8693 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
b64f0a5f 8694echo "configure:8695: checking for shmat in -lipc" >&5
ab9b9eab
VZ
8695ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
8696if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8697 echo $ac_n "(cached) $ac_c" 1>&6
8698else
8699 ac_save_LIBS="$LIBS"
8700LIBS="-lipc $LIBS"
8701cat > conftest.$ac_ext <<EOF
b64f0a5f 8702#line 8703 "configure"
ab9b9eab
VZ
8703#include "confdefs.h"
8704/* Override any gcc2 internal prototype to avoid an error. */
8705/* We use char because int might match the return type of a gcc2
8706 builtin and then its argument prototype would still apply. */
8707char shmat();
8708
8709int main() {
8710shmat()
8711; return 0; }
8712EOF
b64f0a5f 8713if { (eval echo configure:8714: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
8714 rm -rf conftest*
8715 eval "ac_cv_lib_$ac_lib_var=yes"
8716else
8717 echo "configure: failed program was:" >&5
8718 cat conftest.$ac_ext >&5
8719 rm -rf conftest*
8720 eval "ac_cv_lib_$ac_lib_var=no"
8721fi
8722rm -f conftest*
8723LIBS="$ac_save_LIBS"
8724
8725fi
8726if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8727 echo "$ac_t""yes" 1>&6
8728 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
8729else
8730 echo "$ac_t""no" 1>&6
8731fi
8732
8733 fi
8734 fi
8735
8736 # Check for libraries that X11R6 Xt/Xaw programs need.
8737 ac_save_LDFLAGS="$LDFLAGS"
8738 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
8739 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
8740 # check for ICE first), but we must link in the order -lSM -lICE or
8741 # we get undefined symbols. So assume we have SM if we have ICE.
8742 # These have to be linked with before -lX11, unlike the other
8743 # libraries we check for below, so use a different variable.
8744 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
8745 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
b64f0a5f 8746echo "configure:8747: checking for IceConnectionNumber in -lICE" >&5
ab9b9eab
VZ
8747ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
8748if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8749 echo $ac_n "(cached) $ac_c" 1>&6
8750else
8751 ac_save_LIBS="$LIBS"
8752LIBS="-lICE $X_EXTRA_LIBS $LIBS"
8753cat > conftest.$ac_ext <<EOF
b64f0a5f 8754#line 8755 "configure"
ab9b9eab
VZ
8755#include "confdefs.h"
8756/* Override any gcc2 internal prototype to avoid an error. */
8757/* We use char because int might match the return type of a gcc2
8758 builtin and then its argument prototype would still apply. */
8759char IceConnectionNumber();
8760
8761int main() {
8762IceConnectionNumber()
8763; return 0; }
8764EOF
b64f0a5f 8765if { (eval echo configure:8766: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
8766 rm -rf conftest*
8767 eval "ac_cv_lib_$ac_lib_var=yes"
8768else
8769 echo "configure: failed program was:" >&5
8770 cat conftest.$ac_ext >&5
8771 rm -rf conftest*
8772 eval "ac_cv_lib_$ac_lib_var=no"
8773fi
8774rm -f conftest*
8775LIBS="$ac_save_LIBS"
8776
8777fi
8778if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8779 echo "$ac_t""yes" 1>&6
8780 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
8781else
8782 echo "$ac_t""no" 1>&6
8783fi
8784
8785 LDFLAGS="$ac_save_LDFLAGS"
8786
8787fi
8788
37d403aa
JS
8789CPPFLAGS="$CPPFLAGS $X_CFLAGS"
8790LDFLAGS="$LDFLAGS $X_LIBS"
ab9b9eab 8791
37d403aa 8792if test "$wxUSE_MOTIF" = 1; then
ab9b9eab 8793 if test "$no_x" = "yes"; then
37d403aa 8794 { echo "configure: error: X11 not found" 1>&2; exit 1; }
ab9b9eab
VZ
8795 fi
8796
8797 GUI_TK_LIBRARY="$X_LIBS"
8798 TOOLKIT_INCLUDE="$X_CFLAGS"
8799
dad6c0ea
VZ
8800 AFMINSTALL=afminstall
8801
ab9b9eab 8802
cd6d6d5b
VZ
8803 COMPILED_X_PROGRAM=0
8804
ab9b9eab 8805 echo $ac_n "checking for Motif/Lesstif headers""... $ac_c" 1>&6
b64f0a5f 8806echo "configure:8807: checking for Motif/Lesstif headers" >&5
ab9b9eab
VZ
8807
8808ac_find_includes=
8809for ac_dir in $SEARCH_INCLUDE;
8810 do
8811 if test -f "$ac_dir/Xm/Xm.h"; then
8812 ac_find_includes=$ac_dir
8813 break
8814 fi
8815 done
8816
8817 if test "$ac_find_includes" != "" ; then
8818 echo "$ac_t""found $ac_find_includes" 1>&6
8819 else
cd6d6d5b 8820 cat > conftest.$ac_ext <<EOF
b64f0a5f 8821#line 8822 "configure"
cd6d6d5b
VZ
8822#include "confdefs.h"
8823
8824 #include <Xm/Xm.h>
8825
8826int main() {
8827
8828 int version;
8829
8830 version = xmUseVersion;
8831
8832; return 0; }
8833EOF
b64f0a5f 8834if { (eval echo configure:8835: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
cd6d6d5b
VZ
8835 rm -rf conftest*
8836
8837 echo "$ac_t""found in default search path" 1>&6
8838 COMPILED_X_PROGRAM=1
8839
8840else
8841 echo "configure: failed program was:" >&5
8842 cat conftest.$ac_ext >&5
8843 rm -rf conftest*
8844
8845 echo "$ac_t""no" 1>&6
8846 { echo "configure: error: please set CFLAGS to contain the location of Xm/Xm.h" 1>&2; exit 1; }
8847
8848
8849fi
8850rm -f conftest*
ab9b9eab
VZ
8851 fi
8852
cd6d6d5b
VZ
8853 if test "$COMPILED_X_PROGRAM" = 0; then
8854 echo $ac_n "checking for Motif/Lesstif library""... $ac_c" 1>&6
b64f0a5f 8855echo "configure:8856: checking for Motif/Lesstif library" >&5
cd6d6d5b 8856
ab9b9eab
VZ
8857ac_find_libraries=
8858for ac_dir in $SEARCH_LIB;
8859 do
8860 for ac_extension in a so sl; do
8861 if test -f "$ac_dir/libXm.$ac_extension"; then
8862 ac_find_libraries=$ac_dir
8863 break 2
8864 fi
8865 done
8866 done
8867
cd6d6d5b
VZ
8868 if test "$ac_find_libraries" != "" ; then
8869
ab9b9eab
VZ
8870 ac_path_to_include=$ac_find_includes
8871 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
8872 result=$?
8873 if test $result = 0; then
8874 ac_path_to_include=""
8875 else
8876 ac_path_to_include="-I$ac_find_includes"
8877 fi
8878
cd6d6d5b 8879
ab9b9eab
VZ
8880 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
8881 result=$?
8882 if test $result = 0; then
8883 ac_path_to_link=""
8884 else
8885 ac_path_to_link="-L$ac_find_libraries"
8886 fi
8887
8888
cd6d6d5b
VZ
8889 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $ac_path_to_link"
8890 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE $ac_path_to_include"
8891 echo "$ac_t""found at $ac_find_libraries" 1>&6
8892 else
8893 cat > conftest.$ac_ext <<EOF
b64f0a5f 8894#line 8895 "configure"
cd6d6d5b 8895#include "confdefs.h"
ab9b9eab 8896
cd6d6d5b
VZ
8897 #include <Xm/Xm.h>
8898
8899int main() {
ab9b9eab 8900
cd6d6d5b 8901 int version;
ab9b9eab 8902
cd6d6d5b
VZ
8903 version = xmUseVersion;
8904
8905; return 0; }
8906EOF
b64f0a5f 8907if { (eval echo configure:8908: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
cd6d6d5b
VZ
8908 rm -rf conftest*
8909
8910 echo "$ac_t""found in default search path" 1>&6
8911 COMPILED_X_PROGRAM=1
8912
8913else
8914 echo "configure: failed program was:" >&5
8915 cat conftest.$ac_ext >&5
8916 rm -rf conftest*
8917
8918 echo "$ac_t""no" 1>&6
8919 { echo "configure: error: please set LDFLAGS to contain the location of libXm" 1>&2; exit 1; }
8920
8921
8922fi
8923rm -f conftest*
8924 fi
ab9b9eab
VZ
8925 fi
8926
cd6d6d5b 8927
ab9b9eab
VZ
8928 XPM_LINK=""
8929 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
b64f0a5f 8930echo "configure:8931: checking for Xpm library" >&5
ab9b9eab
VZ
8931
8932ac_find_libraries=
8933for ac_dir in $SEARCH_LIB;
8934 do
8935 for ac_extension in a so sl; do
8936 if test -f "$ac_dir/libXpm.$ac_extension"; then
8937 ac_find_libraries=$ac_dir
8938 break 2
8939 fi
8940 done
8941 done
8942
8943 if test "$ac_find_libraries" != "" ; then
8944
8945 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
8946 result=$?
8947 if test $result = 0; then
8948 ac_path_to_link=""
8949 else
8950 ac_path_to_link="-L$ac_find_libraries"
8951 fi
8952
8953 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $ac_path_to_link"
8954 XPM_LINK="-lXpm "
8955 cat >> confdefs.h <<\EOF
8956#define wxHAVE_LIB_XPM 1
8957EOF
8958
8959 echo "$ac_t""found at $ac_find_libraries" 1>&6
8960 else
cd6d6d5b 8961 cat > conftest.$ac_ext <<EOF
b64f0a5f 8962#line 8963 "configure"
cd6d6d5b
VZ
8963#include "confdefs.h"
8964
8965 #include <X11/xpm.h>
8966
8967int main() {
8968
8969 int version;
8970
8971 version = XpmLibraryVersion();
8972
8973; return 0; }
8974EOF
b64f0a5f 8975if { (eval echo configure:8976: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
cd6d6d5b
VZ
8976 rm -rf conftest*
8977
f6bcfd97
BP
8978 XPM_LINK="-lXpm "
8979 cat >> confdefs.h <<\EOF
3ace2e6d
SN
8980#define wxHAVE_LIB_XPM 1
8981EOF
8982
8983 echo "$ac_t""found in default search path" 1>&6
cd6d6d5b
VZ
8984 COMPILED_X_PROGRAM=0
8985
8986else
8987 echo "configure: failed program was:" >&5
8988 cat conftest.$ac_ext >&5
8989 rm -rf conftest*
8990
8991 echo "$ac_t""no" 1>&6
8992 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
8993
8994
8995fi
8996rm -f conftest*
ab9b9eab
VZ
8997 fi
8998
8916026b 8999 GUI_TK_LINK="-lXm $XPM_LINK -lXmu -lXext -lXt -lX11"
ab9b9eab
VZ
9000 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $GUI_TK_LINK"
9001 TOOLKIT=MOTIF
9002
9003 GUIHEADERS="\$(MOTIF_HEADERS)"
9004 GUIOBJS="\$(MOTIF_GUIOBJS)"
9005 COMMONOBJS="\$(MOTIF_COMMONOBJS)"
788deba1
VZ
9006 GENERICOBJS="\$(MOTIF_GENERICOBJS)"
9007 GUIDEPS="\$(MOTIF_GUIDEPS)"
9008 COMMONDEPS="\$(MOTIF_COMMONDEPS)"
10f2d63a
VZ
9009 GENERICDEPS="\$(MOTIF_GENERICDEPS)"
9010 UNIXOBJS="\$(UNIX_OBJS)"
d9d8273d 9011 UNIXDEPS="\$(UNIX_DEPS)"
10f2d63a
VZ
9012 GUIDIST=MOTIF_DIST
9013fi
9014
b4085ce6
GD
9015if test "$wxUSE_MAC" = 1; then
9016 TOOLKIT=MAC
9017 UNIXOBJS="\$(UNIX_OBJS)"
9018 UNIXDEPS="\$(UNIX_DEPS)"
c521c494 9019 GUIDIST=MACX_DIST
b4085ce6
GD
9020fi
9021
e07802fc
VZ
9022if test "$wxUSE_PM" = 1; then
9023 TOOLKIT=PM
9024
9025 GUIOBJS="\$(PM_GUIOBJS)"
9026 GUIHEADERS="\$(PM_HEADERS)"
9027 COMMONOBJS="\$(PM_COMMONOBJS)"
9028 GENERICOBJS="\$(PM_GENERICOBJS)"
9029 GUIDEPS="\$(PM_GUIDEPS)"
9030 COMMONDEPS="\$(PM_COMMONDEPS)"
9031 GENERICDEPS="\$(PM_GENERICDEPS)"
9032 UNIXOBJS=
9033 UNIXDEPS=
9034 GUIDIST=GTK_DIST
9035fi
9036
9037if test "$TOOLKIT" != "PM" ; then
ec14dd32 9038 TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
e07802fc
VZ
9039else
9040 TOOLKIT_DIR="os2"
9041fi
10f2d63a 9042
f6bcfd97
BP
9043 if test "$wxUSE_DEBUG_FLAG" = "yes"; then
9044 TOOLKIT_NAME="${TOOLKIT_DIR}d"
9045 else
9046 TOOLKIT_NAME="${TOOLKIT_DIR}"
9047 fi
9048
2224580a 9049 TOOLKIT_DEF="-D__WX${TOOLKIT}__"
10f2d63a 9050
f6bcfd97 9051 WX_LIBRARY="wx_${TOOLKIT_NAME}"
10f2d63a 9052
bdad4e7e 9053 ALL_OBJECTS="\$(GUIOBJS) \$(COMMONOBJS) \$(GENERICOBJS) \$(UNIXOBJS) \$(HTMLOBJS) \$(OGLOBJS)"
3fcdd07b 9054
b089607b 9055 if test "$TOOLKIT" != "MSW"; then
cc977e5f
RR
9056 if test "$wxUSE_ODBC" = "yes" ; then
9057 ALL_OBJECTS="${ALL_OBJECTS} \$(IODBCOBJS)"
9058 fi
3fcdd07b
VZ
9059 fi
9060
d9d8273d 9061 if test "$wxUSE_LIBJPEG" = "yes" ; then
2224580a 9062 ALL_OBJECTS="${ALL_OBJECTS} \$(JPEGOBJS)"
d9d8273d
RR
9063 fi
9064 if test "$wxUSE_LIBTIFF" = "yes" ; then
9065 ALL_OBJECTS="${ALL_OBJECTS} \$(TIFFOBJS)"
9066 fi
9067 if test "$wxUSE_LIBPNG" = "yes" ; then
9068 ALL_OBJECTS="${ALL_OBJECTS} \$(PNGOBJS)"
9069 fi
9070 if test "$wxUSE_ZLIB" = "yes" ; then
9071 ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)"
9072 fi
3fed1840
RR
9073 if test "$wxUSE_FREETYPE" = "yes" ; then
9074 ALL_OBJECTS="${ALL_OBJECTS} \$(FREETYPEOBJS)"
9075 fi
bdad4e7e 9076 ALL_DEPFILES="\$(GUIDEPS) \$(COMMONDEPS) \$(GENERICDEPS) \$(UNIXDEPS) \$(HTMLDEPS) \$(OGLDEPS)"
2224580a
VZ
9077
9078 PORT_FILES="src/\$(TOOLKITDIR)/files.lst"
9079 RPM_FILES="src/\$(TOOLKITDIR)/rpmfiles.lst"
9080 RPM_SPEC="wx\$(TOOLKIT).spec"
9081
9082 GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
9083 DISTDIR="wx\$(TOOLKIT)"
10f2d63a 9084else
dad6c0ea
VZ
9085 USE_GUI=0
9086
f6bcfd97
BP
9087 TOOLKIT_DIR="base"
9088
9089 if test "$wxUSE_DEBUG_FLAG" = "yes"; then
9090 TOOLKIT_NAME="${TOOLKIT_DIR}d"
9091 else
9092 TOOLKIT_NAME="${TOOLKIT_DIR}"
9093 fi
9094
07eb77a6
RL
9095 TOOLKIT_DEF="-D__WXBASE__"
9096
b4085ce6
GD
9097 ALL_OBJECTS="\$(BASE_OBJS) \$(BASE_UNIX_OBJS)"
9098 ALL_DEPFILES="\$(BASE_DEPS) \$(BASE_UNIX_DEPS)"
10f2d63a 9099
a20b6d3a
VZ
9100 if test "$wxUSE_ZLIB" = "yes" ; then
9101 ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)"
9102 fi
9103
f6bcfd97 9104 WX_LIBRARY="wx_${TOOLKIT_NAME}"
2224580a
VZ
9105
9106 PORT_FILES="src/files.lst"
9107 RPM_FILES="src/rpmfiles.lst"
9108 RPM_SPEC="wxBase.spec"
9109
9110 GUIDIST="BASE_DIST"
9111 DISTDIR="wxBase"
b4085ce6
GD
9112
9113 if test "$USE_UNIX" = 1 ; then
9114 ALL_OBJECTS="${ALL_OBJECTS} dl_macosx.o"
9115 ALL_DEPFILES="${ALL_DEPFILES} dl_macosx.d"
9116 fi
10f2d63a
VZ
9117fi
9118
9119WX_LIBRARY_NAME="lib${WX_LIBRARY}.la"
bdad4e7e 9120WX_LIBRARY_NAME_GL="lib${WX_LIBRARY}_gl.la"
10f2d63a
VZ
9121
9122WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a"
bdad4e7e 9123WX_LIBRARY_NAME_STATIC_GL="lib${WX_LIBRARY}_gl.a"
10f2d63a
VZ
9124
9125WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}-${WX_RELEASE}.so.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
bdad4e7e 9126WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.so.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
10f2d63a
VZ
9127
9128WX_LIBRARY_LINK1="lib${WX_LIBRARY}-${WX_RELEASE}.so.${WX_CURRENT}"
9129WX_LIBRARY_LINK2="lib${WX_LIBRARY}-${WX_RELEASE}.so"
9130WX_LIBRARY_LINK3="lib${WX_LIBRARY}.so"
bdad4e7e
RR
9131WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.so.${WX_CURRENT}"
9132WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.so"
9133WX_LIBRARY_LINK3_GL="lib${WX_LIBRARY}_gl.so"
10f2d63a
VZ
9134
9135SHARED_LD=
9136PIC_FLAG=
9137WX_ALL=
9138WX_ALL_INSTALLED=
1d62a8b4 9139BURNT_LIBRARY_NAME=
f6bcfd97 9140WX_TARGET_LIBRARY_SONAME=
10f2d63a 9141
b12915c1 9142
10f2d63a
VZ
9143if test "$wxUSE_SHARED" = "yes"; then
9144 case "${host}" in
9145 *-hp-hpux* )
9146 if test "$GCC" = yes ; then
69ffe1d2 9147 SHARED_LD="${CC} -shared -fPIC -o"
10f2d63a
VZ
9148 PIC_FLAG="-fPIC"
9149 else
f6bcfd97
BP
9150 LDFLAGS="-L/usr/lib"
9151
10f2d63a
VZ
9152 SHARED_LD="${CXX} -b -o"
9153 PIC_FLAG="+Z"
9154 fi
f6bcfd97
BP
9155 WX_LIBRARY_NAME_SHARED="libwx_${TOOLKIT_NAME}.sl"
9156 WX_LIBRARY_NAME_SHARED_GL="libwx_${TOOLKIT_NAME}_gl.sl"
c661ecca 9157 if test "$wxUSE_OPENGL" = "yes"; then
f6bcfd97 9158 WX_ALL_INSTALLED="preinstall_gl"
c661ecca
RR
9159 WX_ALL="${WX_LIBRARY_NAME_SHARED} ${WX_LIBRARY_NAME_SHARED_GL}"
9160 else
9161 WX_ALL="${WX_LIBRARY_NAME_SHARED}"
9162 fi
10f2d63a 9163 ;;
b12915c1
VZ
9164
9165 *-*-linux* )
10f2d63a
VZ
9166 SHARED_LD="${CC} -shared -o"
9167 PIC_FLAG="-fPIC"
00cf1208 9168 if test "$wxUSE_BURNT_NAME" = "yes" ; then
05cdfc6f 9169 BURNT_LIBRARY_NAME="-Wl,-soname,${WX_LIBRARY_LINK1}"
bdad4e7e 9170 BURNT_LIBRARY_NAME_GL="-Wl,-soname,${WX_LIBRARY_LINK1_GL}"
f6bcfd97 9171 WX_TARGET_LIBRARY_SONAME="-Wl,-soname,\$(TARGETLIB_LINK1)"
00cf1208 9172 fi
c661ecca
RR
9173 if test "$wxUSE_OPENGL" = "yes"; then
9174 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
9175 WX_ALL="CREATE_LINKS CREATE_LINKS_GL"
9176 else
9177 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
9178 WX_ALL="CREATE_LINKS"
422107f9 9179 fi
00cf1208 9180 ;;
10f2d63a
VZ
9181 *-*-irix5* | *-*-irix6* )
9182 if test "$GCC" = yes ; then
9183 SHARED_LD="${CC} -shared -o"
9184 PIC_FLAG="-fPIC"
9185 else
9186 SHARED_LD="${CXX} -shared -o"
9187 fi
c661ecca
RR
9188 if test "$wxUSE_OPENGL" = "yes"; then
9189 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
9190 WX_ALL="CREATE_LINKS CREATE_LINKS_GL"
9191 else
9192 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
9193 WX_ALL="CREATE_LINKS"
422107f9 9194 fi
10f2d63a
VZ
9195 ;;
9196 *-*-solaris2* )
9197 if test "$GCC" = yes ; then
9198 SHARED_LD="${CC} -shared -o"
9199 PIC_FLAG="-fPIC"
f6bcfd97
BP
9200
9201 CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include"
10f2d63a
VZ
9202 else
9203 SHARED_LD="${CXX} -G -o"
9204 PIC_FLAG="-KPIC"
9205 fi
c661ecca
RR
9206 if test "$wxUSE_OPENGL" = "yes"; then
9207 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
9208 WX_ALL="CREATE_LINKS CREATE_LINKS_GL"
9209 else
9210 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
9211 WX_ALL="CREATE_LINKS"
9212 fi
10f2d63a
VZ
9213 ;;
9214 *-*-sunos4* )
9215 SHARED_LD="${CC} -shared -o"
9216 PIC_FLAG="-fPIC"
9217 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
9218 WX_ALL="CREATE_LINKS"
9219 ;;
b4085ce6 9220 *-*-freebsd* | *-*-netbsd* )
10f2d63a
VZ
9221 SHARED_LD="${CC} -shared -o"
9222 PIC_FLAG="-fPIC"
37d403aa
JS
9223 if test "$wxUSE_OPENGL" = "yes"; then
9224 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
9225 WX_ALL="CREATE_LINKS CREATE_LINKS_GL"
9226 else
9227 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
9228 WX_ALL="CREATE_LINKS"
9229 fi
10f2d63a 9230 ;;
b4085ce6
GD
9231 *-*-darwin* )
9232 SHARED_LD="libtool -dynamic -o"
9233 PIC_FLAG="-fPIC"
9234 if test "$wxUSE_OPENGL" = "yes"; then
9235 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
9236 WX_ALL="CREATE_LINKS CREATE_LINKS_GL"
9237 else
9238 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
9239 WX_ALL="CREATE_LINKS"
9240 fi
9241 ;;
10f2d63a
VZ
9242 *-*-osf* )
9243 SHARED_LD="${CXX} -shared -o"
9244 PIC_FLAG="-fPIC"
9245 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
9246 WX_ALL="CREATE_LINKS"
9247 ;;
9248 *-*-dgux5* )
9249 SHARED_LD="${CXX} -shared -o"
9250 PIC_FLAG="-fPIC"
9251 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
9252 WX_ALL="CREATE_LINKS"
9253 ;;
9254 *-*-sysv5* )
9255 SHARED_LD="${CC} -shared -o"
9256 PIC_FLAG="-fPIC"
9257 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
9258 WX_ALL="CREATE_LINKS"
9259 ;;
9260 *-*-aix* )
9261 SHARED_LD="/usr/lpp/xlC/bin/makeC++SharedLib -p 0 -o"
9262 WX_ALL=${WX_LIBRARY_NAME_SHARED}
9263 ;;
9264 *-*-cygwin32* )
9265 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
bdad4e7e 9266 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}"
f6bcfd97
BP
9267 if test "$wxUSE_OPENGL" = "yes"; then
9268 WX_ALL_INSTALLED="preinstall_gl"
9269 WX_ALL="${WX_LIBRARY_NAME_STATIC} ${WX_LIBRARY_NAME_STATIC_GL}"
9270 else
9271 WX_ALL="${WX_LIBRARY_NAME_STATIC}"
9272 fi
10f2d63a 9273 ;;
b12915c1 9274 *-*-mingw32* )
10f2d63a 9275 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
bdad4e7e 9276 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}"
f6bcfd97
BP
9277 if test "$wxUSE_OPENGL" = "yes"; then
9278 WX_ALL_INSTALLED="preinstall_gl"
9279 WX_ALL="${WX_LIBRARY_NAME_STATIC} ${WX_LIBRARY_NAME_STATIC_GL}"
9280 else
9281 WX_ALL="${WX_LIBRARY_NAME_STATIC}"
9282 fi
10f2d63a
VZ
9283 ;;
9284 *-pc-os2_emx )
e07802fc
VZ
9285 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
9286 WX_ALL="${WX_LIBRARY_NAME_STATIC}"
10f2d63a 9287 ;;
b12915c1 9288 *-*-beos* )
e2b8b066 9289 SHARED_LD="${LD} -shared -o"
b12915c1
VZ
9290 PIC_FLAG="-fPIC"
9291 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
9292 WX_ALL="CREATE_LINKS"
9293 ;;
10f2d63a
VZ
9294 *)
9295 { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; }
9296 esac
9297
9298 if test "x$WX_TARGET_LIBRARY" = "x"; then
9299 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}"
bdad4e7e 9300 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_SHARED_GL}"
10f2d63a 9301 fi
3711412e 9302 WX_TARGET_LIBRARY_TYPE="so"
10f2d63a
VZ
9303else
9304 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
bdad4e7e 9305 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}"
f6bcfd97
BP
9306
9307 if test "$wxUSE_OPENGL" = "yes"; then
9308 WX_ALL_INSTALLED="preinstall_gl"
9309 WX_ALL="${WX_LIBRARY_NAME_STATIC} ${WX_LIBRARY_NAME_STATIC_GL}"
9310 else
9311 WX_ALL="${WX_LIBRARY_NAME_STATIC}"
9312 fi
9313
9314 if test "$wxUSE_GUI" = "no"; then
9315 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
9316 fi
9317
3711412e 9318 WX_TARGET_LIBRARY_TYPE="a"
10f2d63a
VZ
9319fi
9320
9321
9322for ac_hdr in strings.h
9323do
9324ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9325echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
b64f0a5f 9326echo "configure:9327: checking for $ac_hdr" >&5
10f2d63a
VZ
9327if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9328 echo $ac_n "(cached) $ac_c" 1>&6
9329else
9330 cat > conftest.$ac_ext <<EOF
b64f0a5f 9331#line 9332 "configure"
10f2d63a
VZ
9332#include "confdefs.h"
9333#include <$ac_hdr>
9334EOF
9335ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
b64f0a5f 9336{ (eval echo configure:9337: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
9337ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9338if test -z "$ac_err"; then
9339 rm -rf conftest*
9340 eval "ac_cv_header_$ac_safe=yes"
9341else
9342 echo "$ac_err" >&5
9343 echo "configure: failed program was:" >&5
9344 cat conftest.$ac_ext >&5
9345 rm -rf conftest*
9346 eval "ac_cv_header_$ac_safe=no"
9347fi
9348rm -f conftest*
9349fi
9350if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9351 echo "$ac_t""yes" 1>&6
9352 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9353 cat >> confdefs.h <<EOF
9354#define $ac_tr_hdr 1
9355EOF
9356
9357else
9358 echo "$ac_t""no" 1>&6
9359fi
9360done
9361
9362for ac_hdr in unistd.h
9363do
9364ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9365echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
b64f0a5f 9366echo "configure:9367: checking for $ac_hdr" >&5
10f2d63a
VZ
9367if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9368 echo $ac_n "(cached) $ac_c" 1>&6
9369else
9370 cat > conftest.$ac_ext <<EOF
b64f0a5f 9371#line 9372 "configure"
10f2d63a
VZ
9372#include "confdefs.h"
9373#include <$ac_hdr>
9374EOF
9375ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
b64f0a5f 9376{ (eval echo configure:9377: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
9377ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9378if test -z "$ac_err"; then
9379 rm -rf conftest*
9380 eval "ac_cv_header_$ac_safe=yes"
9381else
9382 echo "$ac_err" >&5
9383 echo "configure: failed program was:" >&5
9384 cat conftest.$ac_ext >&5
9385 rm -rf conftest*
9386 eval "ac_cv_header_$ac_safe=no"
9387fi
9388rm -f conftest*
9389fi
9390if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9391 echo "$ac_t""yes" 1>&6
9392 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9393 cat >> confdefs.h <<EOF
9394#define $ac_tr_hdr 1
9395EOF
9396
9397else
9398 echo "$ac_t""no" 1>&6
9399fi
9400done
9401
0fb0dd83 9402for ac_hdr in fcntl.h
10f2d63a
VZ
9403do
9404ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9405echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
b64f0a5f 9406echo "configure:9407: checking for $ac_hdr" >&5
10f2d63a
VZ
9407if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9408 echo $ac_n "(cached) $ac_c" 1>&6
9409else
9410 cat > conftest.$ac_ext <<EOF
b64f0a5f 9411#line 9412 "configure"
10f2d63a
VZ
9412#include "confdefs.h"
9413#include <$ac_hdr>
9414EOF
9415ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
b64f0a5f 9416{ (eval echo configure:9417: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
9417ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9418if test -z "$ac_err"; then
9419 rm -rf conftest*
9420 eval "ac_cv_header_$ac_safe=yes"
9421else
9422 echo "$ac_err" >&5
9423 echo "configure: failed program was:" >&5
9424 cat conftest.$ac_ext >&5
9425 rm -rf conftest*
9426 eval "ac_cv_header_$ac_safe=no"
9427fi
9428rm -f conftest*
9429fi
9430if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9431 echo "$ac_t""yes" 1>&6
9432 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9433 cat >> confdefs.h <<EOF
9434#define $ac_tr_hdr 1
9435EOF
9436
9437else
9438 echo "$ac_t""no" 1>&6
9439fi
9440done
9441
0fb0dd83 9442for ac_hdr in wchar.h
10f2d63a
VZ
9443do
9444ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9445echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
b64f0a5f 9446echo "configure:9447: checking for $ac_hdr" >&5
10f2d63a
VZ
9447if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9448 echo $ac_n "(cached) $ac_c" 1>&6
9449else
9450 cat > conftest.$ac_ext <<EOF
b64f0a5f 9451#line 9452 "configure"
10f2d63a
VZ
9452#include "confdefs.h"
9453#include <$ac_hdr>
9454EOF
9455ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
b64f0a5f 9456{ (eval echo configure:9457: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
9457ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9458if test -z "$ac_err"; then
9459 rm -rf conftest*
9460 eval "ac_cv_header_$ac_safe=yes"
9461else
9462 echo "$ac_err" >&5
9463 echo "configure: failed program was:" >&5
9464 cat conftest.$ac_ext >&5
9465 rm -rf conftest*
9466 eval "ac_cv_header_$ac_safe=no"
9467fi
9468rm -f conftest*
9469fi
9470if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9471 echo "$ac_t""yes" 1>&6
9472 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9473 cat >> confdefs.h <<EOF
9474#define $ac_tr_hdr 1
9475EOF
9476
9477else
9478 echo "$ac_t""no" 1>&6
9479fi
9480done
9481
0fb0dd83 9482for ac_hdr in wcstr.h
10f2d63a
VZ
9483do
9484ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9485echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
b64f0a5f 9486echo "configure:9487: checking for $ac_hdr" >&5
10f2d63a
VZ
9487if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9488 echo $ac_n "(cached) $ac_c" 1>&6
9489else
9490 cat > conftest.$ac_ext <<EOF
b64f0a5f 9491#line 9492 "configure"
10f2d63a
VZ
9492#include "confdefs.h"
9493#include <$ac_hdr>
9494EOF
9495ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
b64f0a5f 9496{ (eval echo configure:9497: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6f72b082
OK
9497ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9498if test -z "$ac_err"; then
9499 rm -rf conftest*
9500 eval "ac_cv_header_$ac_safe=yes"
9501else
9502 echo "$ac_err" >&5
9503 echo "configure: failed program was:" >&5
9504 cat conftest.$ac_ext >&5
9505 rm -rf conftest*
9506 eval "ac_cv_header_$ac_safe=no"
9507fi
9508rm -f conftest*
9509fi
9510if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9511 echo "$ac_t""yes" 1>&6
9512 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9513 cat >> confdefs.h <<EOF
9514#define $ac_tr_hdr 1
9515EOF
9516
9517else
9518 echo "$ac_t""no" 1>&6
9519fi
9520done
9521
0fb0dd83 9522for ac_hdr in fnmatch.h
6f72b082
OK
9523do
9524ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9525echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
b64f0a5f 9526echo "configure:9527: checking for $ac_hdr" >&5
6f72b082
OK
9527if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9528 echo $ac_n "(cached) $ac_c" 1>&6
9529else
9530 cat > conftest.$ac_ext <<EOF
b64f0a5f 9531#line 9532 "configure"
6f72b082
OK
9532#include "confdefs.h"
9533#include <$ac_hdr>
9534EOF
9535ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
b64f0a5f 9536{ (eval echo configure:9537: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6f72b082
OK
9537ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9538if test -z "$ac_err"; then
9539 rm -rf conftest*
9540 eval "ac_cv_header_$ac_safe=yes"
9541else
9542 echo "$ac_err" >&5
9543 echo "configure: failed program was:" >&5
9544 cat conftest.$ac_ext >&5
9545 rm -rf conftest*
9546 eval "ac_cv_header_$ac_safe=no"
9547fi
9548rm -f conftest*
9549fi
9550if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9551 echo "$ac_t""yes" 1>&6
9552 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9553 cat >> confdefs.h <<EOF
9554#define $ac_tr_hdr 1
9555EOF
9556
9557else
9558 echo "$ac_t""no" 1>&6
9559fi
9560done
9561
0fb0dd83 9562for ac_hdr in iconv.h
6f72b082
OK
9563do
9564ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9565echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
b64f0a5f 9566echo "configure:9567: checking for $ac_hdr" >&5
6f72b082
OK
9567if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9568 echo $ac_n "(cached) $ac_c" 1>&6
9569else
9570 cat > conftest.$ac_ext <<EOF
b64f0a5f 9571#line 9572 "configure"
6f72b082
OK
9572#include "confdefs.h"
9573#include <$ac_hdr>
9574EOF
9575ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
b64f0a5f 9576{ (eval echo configure:9577: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
9577ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9578if test -z "$ac_err"; then
9579 rm -rf conftest*
9580 eval "ac_cv_header_$ac_safe=yes"
9581else
9582 echo "$ac_err" >&5
9583 echo "configure: failed program was:" >&5
9584 cat conftest.$ac_ext >&5
9585 rm -rf conftest*
9586 eval "ac_cv_header_$ac_safe=no"
9587fi
9588rm -f conftest*
9589fi
9590if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9591 echo "$ac_t""yes" 1>&6
9592 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9593 cat >> confdefs.h <<EOF
9594#define $ac_tr_hdr 1
9595EOF
9596
9597else
9598 echo "$ac_t""no" 1>&6
9599fi
9600done
9601
0fb0dd83
RR
9602for ac_hdr in langinfo.h
9603do
9604ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9605echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
b64f0a5f 9606echo "configure:9607: checking for $ac_hdr" >&5
0fb0dd83
RR
9607if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9608 echo $ac_n "(cached) $ac_c" 1>&6
9609else
9610 cat > conftest.$ac_ext <<EOF
b64f0a5f 9611#line 9612 "configure"
0fb0dd83
RR
9612#include "confdefs.h"
9613#include <$ac_hdr>
9614EOF
9615ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
b64f0a5f 9616{ (eval echo configure:9617: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
0fb0dd83
RR
9617ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9618if test -z "$ac_err"; then
9619 rm -rf conftest*
9620 eval "ac_cv_header_$ac_safe=yes"
9621else
9622 echo "$ac_err" >&5
9623 echo "configure: failed program was:" >&5
9624 cat conftest.$ac_ext >&5
9625 rm -rf conftest*
9626 eval "ac_cv_header_$ac_safe=no"
9627fi
9628rm -f conftest*
9629fi
9630if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9631 echo "$ac_t""yes" 1>&6
9632 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9633 cat >> confdefs.h <<EOF
9634#define $ac_tr_hdr 1
9635EOF
9636
9637else
9638 echo "$ac_t""no" 1>&6
9639fi
9640done
9641
10f2d63a 9642
73fd4a60
VZ
9643if test "$wxUSE_GUI" = "yes"; then
9644 if test "$wxUSE_UNIX" = "yes"; then
9645 for ac_hdr in X11/XKBlib.h
10f2d63a
VZ
9646do
9647ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9648echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
b64f0a5f 9649echo "configure:9650: checking for $ac_hdr" >&5
10f2d63a
VZ
9650if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9651 echo $ac_n "(cached) $ac_c" 1>&6
9652else
9653 cat > conftest.$ac_ext <<EOF
b64f0a5f 9654#line 9655 "configure"
10f2d63a
VZ
9655#include "confdefs.h"
9656#include <$ac_hdr>
9657EOF
9658ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
b64f0a5f 9659{ (eval echo configure:9660: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
9660ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9661if test -z "$ac_err"; then
9662 rm -rf conftest*
9663 eval "ac_cv_header_$ac_safe=yes"
9664else
9665 echo "$ac_err" >&5
9666 echo "configure: failed program was:" >&5
9667 cat conftest.$ac_ext >&5
9668 rm -rf conftest*
9669 eval "ac_cv_header_$ac_safe=no"
9670fi
9671rm -f conftest*
9672fi
9673if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9674 echo "$ac_t""yes" 1>&6
9675 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9676 cat >> confdefs.h <<EOF
9677#define $ac_tr_hdr 1
9678EOF
9679
9680else
9681 echo "$ac_t""no" 1>&6
9682fi
9683done
9684
73fd4a60 9685 fi
10f2d63a
VZ
9686fi
9687
9688
9689echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
b64f0a5f 9690echo "configure:9691: checking for ANSI C header files" >&5
10f2d63a
VZ
9691if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
9692 echo $ac_n "(cached) $ac_c" 1>&6
9693else
9694 cat > conftest.$ac_ext <<EOF
b64f0a5f 9695#line 9696 "configure"
10f2d63a
VZ
9696#include "confdefs.h"
9697#include <stdlib.h>
9698#include <stdarg.h>
9699#include <string.h>
9700#include <float.h>
9701EOF
9702ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
b64f0a5f 9703{ (eval echo configure:9704: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
9704ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9705if test -z "$ac_err"; then
9706 rm -rf conftest*
9707 ac_cv_header_stdc=yes
9708else
9709 echo "$ac_err" >&5
9710 echo "configure: failed program was:" >&5
9711 cat conftest.$ac_ext >&5
9712 rm -rf conftest*
9713 ac_cv_header_stdc=no
9714fi
9715rm -f conftest*
9716
9717if test $ac_cv_header_stdc = yes; then
9718 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9719cat > conftest.$ac_ext <<EOF
b64f0a5f 9720#line 9721 "configure"
10f2d63a
VZ
9721#include "confdefs.h"
9722#include <string.h>
9723EOF
9724if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9725 egrep "memchr" >/dev/null 2>&1; then
9726 :
9727else
9728 rm -rf conftest*
9729 ac_cv_header_stdc=no
9730fi
9731rm -f conftest*
9732
9733fi
9734
9735if test $ac_cv_header_stdc = yes; then
9736 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9737cat > conftest.$ac_ext <<EOF
b64f0a5f 9738#line 9739 "configure"
10f2d63a
VZ
9739#include "confdefs.h"
9740#include <stdlib.h>
9741EOF
9742if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9743 egrep "free" >/dev/null 2>&1; then
9744 :
9745else
9746 rm -rf conftest*
9747 ac_cv_header_stdc=no
9748fi
9749rm -f conftest*
9750
9751fi
9752
9753if test $ac_cv_header_stdc = yes; then
9754 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9755if test "$cross_compiling" = yes; then
9756 :
9757else
9758 cat > conftest.$ac_ext <<EOF
b64f0a5f 9759#line 9760 "configure"
10f2d63a
VZ
9760#include "confdefs.h"
9761#include <ctype.h>
9762#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9763#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9764#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9765int main () { int i; for (i = 0; i < 256; i++)
9766if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
9767exit (0); }
9768
9769EOF
b64f0a5f 9770if { (eval echo configure:9771: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10f2d63a
VZ
9771then
9772 :
9773else
9774 echo "configure: failed program was:" >&5
9775 cat conftest.$ac_ext >&5
9776 rm -fr conftest*
9777 ac_cv_header_stdc=no
9778fi
9779rm -fr conftest*
9780fi
9781
9782fi
9783fi
9784
9785echo "$ac_t""$ac_cv_header_stdc" 1>&6
9786if test $ac_cv_header_stdc = yes; then
9787 cat >> confdefs.h <<\EOF
9788#define STDC_HEADERS 1
9789EOF
9790
9791fi
9792
9793echo $ac_n "checking for mode_t""... $ac_c" 1>&6
b64f0a5f 9794echo "configure:9795: checking for mode_t" >&5
10f2d63a
VZ
9795if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
9796 echo $ac_n "(cached) $ac_c" 1>&6
9797else
9798 cat > conftest.$ac_ext <<EOF
b64f0a5f 9799#line 9800 "configure"
10f2d63a
VZ
9800#include "confdefs.h"
9801#include <sys/types.h>
9802#if STDC_HEADERS
9803#include <stdlib.h>
9804#include <stddef.h>
9805#endif
9806EOF
9807if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9808 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
9809 rm -rf conftest*
9810 ac_cv_type_mode_t=yes
9811else
9812 rm -rf conftest*
9813 ac_cv_type_mode_t=no
9814fi
9815rm -f conftest*
9816
9817fi
9818echo "$ac_t""$ac_cv_type_mode_t" 1>&6
9819if test $ac_cv_type_mode_t = no; then
9820 cat >> confdefs.h <<\EOF
9821#define mode_t int
9822EOF
9823
9824fi
9825
9826echo $ac_n "checking for off_t""... $ac_c" 1>&6
b64f0a5f 9827echo "configure:9828: checking for off_t" >&5
10f2d63a
VZ
9828if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
9829 echo $ac_n "(cached) $ac_c" 1>&6
9830else
9831 cat > conftest.$ac_ext <<EOF
b64f0a5f 9832#line 9833 "configure"
10f2d63a
VZ
9833#include "confdefs.h"
9834#include <sys/types.h>
9835#if STDC_HEADERS
9836#include <stdlib.h>
9837#include <stddef.h>
9838#endif
9839EOF
9840if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9841 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
9842 rm -rf conftest*
9843 ac_cv_type_off_t=yes
9844else
9845 rm -rf conftest*
9846 ac_cv_type_off_t=no
9847fi
9848rm -f conftest*
9849
9850fi
9851echo "$ac_t""$ac_cv_type_off_t" 1>&6
9852if test $ac_cv_type_off_t = no; then
9853 cat >> confdefs.h <<\EOF
9854#define off_t long
9855EOF
9856
9857fi
9858
9859echo $ac_n "checking for pid_t""... $ac_c" 1>&6
b64f0a5f 9860echo "configure:9861: checking for pid_t" >&5
10f2d63a
VZ
9861if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
9862 echo $ac_n "(cached) $ac_c" 1>&6
9863else
9864 cat > conftest.$ac_ext <<EOF
b64f0a5f 9865#line 9866 "configure"
10f2d63a
VZ
9866#include "confdefs.h"
9867#include <sys/types.h>
9868#if STDC_HEADERS
9869#include <stdlib.h>
9870#include <stddef.h>
9871#endif
9872EOF
9873if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9874 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
9875 rm -rf conftest*
9876 ac_cv_type_pid_t=yes
9877else
9878 rm -rf conftest*
9879 ac_cv_type_pid_t=no
9880fi
9881rm -f conftest*
9882
9883fi
9884echo "$ac_t""$ac_cv_type_pid_t" 1>&6
9885if test $ac_cv_type_pid_t = no; then
9886 cat >> confdefs.h <<\EOF
9887#define pid_t int
9888EOF
9889
9890fi
9891
9892echo $ac_n "checking for size_t""... $ac_c" 1>&6
b64f0a5f 9893echo "configure:9894: checking for size_t" >&5
10f2d63a
VZ
9894if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
9895 echo $ac_n "(cached) $ac_c" 1>&6
9896else
9897 cat > conftest.$ac_ext <<EOF
b64f0a5f 9898#line 9899 "configure"
10f2d63a
VZ
9899#include "confdefs.h"
9900#include <sys/types.h>
9901#if STDC_HEADERS
9902#include <stdlib.h>
9903#include <stddef.h>
9904#endif
9905EOF
9906if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9907 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
9908 rm -rf conftest*
9909 ac_cv_type_size_t=yes
9910else
9911 rm -rf conftest*
9912 ac_cv_type_size_t=no
9913fi
9914rm -f conftest*
9915
9916fi
9917echo "$ac_t""$ac_cv_type_size_t" 1>&6
9918if test $ac_cv_type_size_t = no; then
9919 cat >> confdefs.h <<\EOF
9920#define size_t unsigned
9921EOF
9922
9923fi
9924
9925echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
b64f0a5f 9926echo "configure:9927: checking for uid_t in sys/types.h" >&5
10f2d63a
VZ
9927if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
9928 echo $ac_n "(cached) $ac_c" 1>&6
9929else
9930 cat > conftest.$ac_ext <<EOF
b64f0a5f 9931#line 9932 "configure"
10f2d63a
VZ
9932#include "confdefs.h"
9933#include <sys/types.h>
9934EOF
9935if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9936 egrep "uid_t" >/dev/null 2>&1; then
9937 rm -rf conftest*
9938 ac_cv_type_uid_t=yes
9939else
9940 rm -rf conftest*
9941 ac_cv_type_uid_t=no
9942fi
9943rm -f conftest*
9944
9945fi
9946
9947echo "$ac_t""$ac_cv_type_uid_t" 1>&6
9948if test $ac_cv_type_uid_t = no; then
9949 cat >> confdefs.h <<\EOF
9950#define uid_t int
9951EOF
9952
9953 cat >> confdefs.h <<\EOF
9954#define gid_t int
9955EOF
9956
9957fi
9958
9959
9960
b12915c1 9961echo $ac_n "checking for pw_gecos in struct passwd""... $ac_c" 1>&6
b64f0a5f 9962echo "configure:9963: checking for pw_gecos in struct passwd" >&5
b12915c1
VZ
9963if eval "test \"`echo '$''{'wx_cv_struct_pw_gecos'+set}'`\" = set"; then
9964 echo $ac_n "(cached) $ac_c" 1>&6
9965else
9966
9967 cat > conftest.$ac_ext <<EOF
b64f0a5f 9968#line 9969 "configure"
b12915c1
VZ
9969#include "confdefs.h"
9970#include <pwd.h>
9971int main() {
9972
9973 char *p;
9974 struct passwd *pw;
9975 p = pw->pw_gecos;
9976
9977; return 0; }
9978EOF
b64f0a5f 9979if { (eval echo configure:9980: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
b12915c1
VZ
9980 rm -rf conftest*
9981
9982 wx_cv_struct_pw_gecos=yes
b12915c1
VZ
9983
9984else
9985 echo "configure: failed program was:" >&5
9986 cat conftest.$ac_ext >&5
9987 rm -rf conftest*
9988
9989 wx_cv_struct_pw_gecos=no
9990
9991
9992fi
9993rm -f conftest*
9994
9995
9996fi
9997
9998echo "$ac_t""$wx_cv_struct_pw_gecos" 1>&6
9999
bd3277fe
VZ
10000if test "$wx_cv_struct_pw_gecos" = "yes"; then
10001 cat >> confdefs.h <<\EOF
10002#define HAVE_PW_GECOS 1
10003EOF
10004
10005fi
10006
10f2d63a
VZ
10007
10008echo $ac_n "checking for working const""... $ac_c" 1>&6
b64f0a5f 10009echo "configure:10010: checking for working const" >&5
10f2d63a
VZ
10010if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
10011 echo $ac_n "(cached) $ac_c" 1>&6
10012else
10013 cat > conftest.$ac_ext <<EOF
b64f0a5f 10014#line 10015 "configure"
10f2d63a
VZ
10015#include "confdefs.h"
10016
10017int main() {
10018
10019/* Ultrix mips cc rejects this. */
186837b0 10020typedef int charset[2]; const charset x;
10f2d63a
VZ
10021/* SunOS 4.1.1 cc rejects this. */
10022char const *const *ccp;
10023char **p;
10024/* NEC SVR4.0.2 mips cc rejects this. */
10025struct point {int x, y;};
10026static struct point const zero = {0,0};
10027/* AIX XL C 1.02.0.0 rejects this.
10028 It does not let you subtract one const X* pointer from another in an arm
10029 of an if-expression whose if-part is not a constant expression */
10030const char *g = "string";
10031ccp = &g + (g ? g-g : 0);
10032/* HPUX 7.0 cc rejects these. */
10033++ccp;
10034p = (char**) ccp;
10035ccp = (char const *const *) p;
10036{ /* SCO 3.2v4 cc rejects this. */
10037 char *t;
10038 char const *s = 0 ? (char *) 0 : (char const *) 0;
10039
10040 *t++ = 0;
10041}
10042{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
10043 int x[] = {25, 17};
10044 const int *foo = &x[0];
10045 ++foo;
10046}
10047{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
10048 typedef const int *iptr;
10049 iptr p = 0;
10050 ++p;
10051}
10052{ /* AIX XL C 1.02.0.0 rejects this saying
10053 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
10054 struct s { int j; const int *ap[3]; };
10055 struct s *b; b->j = 5;
10056}
10057{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
10058 const int foo = 10;
10059}
10060
10061; return 0; }
10062EOF
b64f0a5f 10063if { (eval echo configure:10064: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10f2d63a
VZ
10064 rm -rf conftest*
10065 ac_cv_c_const=yes
10066else
10067 echo "configure: failed program was:" >&5
10068 cat conftest.$ac_ext >&5
10069 rm -rf conftest*
10070 ac_cv_c_const=no
10071fi
10072rm -f conftest*
10073fi
10074
10075echo "$ac_t""$ac_cv_c_const" 1>&6
10076if test $ac_cv_c_const = no; then
10077 cat >> confdefs.h <<\EOF
10078#define const
10079EOF
10080
10081fi
10082
10083echo $ac_n "checking for inline""... $ac_c" 1>&6
b64f0a5f 10084echo "configure:10085: checking for inline" >&5
10f2d63a
VZ
10085if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
10086 echo $ac_n "(cached) $ac_c" 1>&6
10087else
10088 ac_cv_c_inline=no
10089for ac_kw in inline __inline__ __inline; do
10090 cat > conftest.$ac_ext <<EOF
b64f0a5f 10091#line 10092 "configure"
10f2d63a
VZ
10092#include "confdefs.h"
10093
10094int main() {
186837b0 10095} $ac_kw foo() {
10f2d63a
VZ
10096; return 0; }
10097EOF
b64f0a5f 10098if { (eval echo configure:10099: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10f2d63a
VZ
10099 rm -rf conftest*
10100 ac_cv_c_inline=$ac_kw; break
10101else
10102 echo "configure: failed program was:" >&5
10103 cat conftest.$ac_ext >&5
10104fi
10105rm -f conftest*
10106done
10107
10108fi
10109
10110echo "$ac_t""$ac_cv_c_inline" 1>&6
10111case "$ac_cv_c_inline" in
10112 inline | yes) ;;
10113 no) cat >> confdefs.h <<\EOF
10114#define inline
10115EOF
10116 ;;
10117 *) cat >> confdefs.h <<EOF
10118#define inline $ac_cv_c_inline
10119EOF
10120 ;;
10121esac
10122
10123
10124echo $ac_n "checking size of char""... $ac_c" 1>&6
b64f0a5f 10125echo "configure:10126: checking size of char" >&5
10f2d63a
VZ
10126if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then
10127 echo $ac_n "(cached) $ac_c" 1>&6
10128else
10129 if test "$cross_compiling" = yes; then
10130 ac_cv_sizeof_char=1
10131else
10132 cat > conftest.$ac_ext <<EOF
b64f0a5f 10133#line 10134 "configure"
10f2d63a
VZ
10134#include "confdefs.h"
10135#include <stdio.h>
10136main()
10137{
10138 FILE *f=fopen("conftestval", "w");
10139 if (!f) exit(1);
10140 fprintf(f, "%d\n", sizeof(char));
10141 exit(0);
10142}
10143EOF
b64f0a5f 10144if { (eval echo configure:10145: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10f2d63a
VZ
10145then
10146 ac_cv_sizeof_char=`cat conftestval`
10147else
10148 echo "configure: failed program was:" >&5
10149 cat conftest.$ac_ext >&5
10150 rm -fr conftest*
10151 ac_cv_sizeof_char=0
10152fi
10153rm -fr conftest*
10154fi
10155
10156fi
10157echo "$ac_t""$ac_cv_sizeof_char" 1>&6
10158cat >> confdefs.h <<EOF
10159#define SIZEOF_CHAR $ac_cv_sizeof_char
10160EOF
10161
10162
6f72b082 10163echo $ac_n "checking size of wchar_t""... $ac_c" 1>&6
b64f0a5f 10164echo "configure:10165: checking size of wchar_t" >&5
6f72b082
OK
10165if eval "test \"`echo '$''{'ac_cv_sizeof_wchar_t'+set}'`\" = set"; then
10166 echo $ac_n "(cached) $ac_c" 1>&6
10167else
10168 if test "$cross_compiling" = yes; then
10169 ac_cv_sizeof_wchar_t=4
10170else
10171 cat > conftest.$ac_ext <<EOF
b64f0a5f 10172#line 10173 "configure"
6f72b082
OK
10173#include "confdefs.h"
10174#include <stdio.h>
10175main()
10176{
10177 FILE *f=fopen("conftestval", "w");
10178 if (!f) exit(1);
10179 fprintf(f, "%d\n", sizeof(wchar_t));
10180 exit(0);
10181}
10182EOF
b64f0a5f 10183if { (eval echo configure:10184: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6f72b082
OK
10184then
10185 ac_cv_sizeof_wchar_t=`cat conftestval`
10186else
10187 echo "configure: failed program was:" >&5
10188 cat conftest.$ac_ext >&5
10189 rm -fr conftest*
10190 ac_cv_sizeof_wchar_t=0
10191fi
10192rm -fr conftest*
10193fi
10194
10195fi
10196echo "$ac_t""$ac_cv_sizeof_wchar_t" 1>&6
10197cat >> confdefs.h <<EOF
10198#define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
10199EOF
10200
10201
10f2d63a 10202echo $ac_n "checking size of short""... $ac_c" 1>&6
b64f0a5f 10203echo "configure:10204: checking size of short" >&5
10f2d63a
VZ
10204if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
10205 echo $ac_n "(cached) $ac_c" 1>&6
10206else
10207 if test "$cross_compiling" = yes; then
10208 ac_cv_sizeof_short=2
10209else
10210 cat > conftest.$ac_ext <<EOF
b64f0a5f 10211#line 10212 "configure"
10f2d63a
VZ
10212#include "confdefs.h"
10213#include <stdio.h>
10214main()
10215{
10216 FILE *f=fopen("conftestval", "w");
10217 if (!f) exit(1);
10218 fprintf(f, "%d\n", sizeof(short));
10219 exit(0);
10220}
10221EOF
b64f0a5f 10222if { (eval echo configure:10223: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10f2d63a
VZ
10223then
10224 ac_cv_sizeof_short=`cat conftestval`
10225else
10226 echo "configure: failed program was:" >&5
10227 cat conftest.$ac_ext >&5
10228 rm -fr conftest*
10229 ac_cv_sizeof_short=0
10230fi
10231rm -fr conftest*
10232fi
10233
10234fi
10235echo "$ac_t""$ac_cv_sizeof_short" 1>&6
10236cat >> confdefs.h <<EOF
10237#define SIZEOF_SHORT $ac_cv_sizeof_short
10238EOF
10239
10240
10241echo $ac_n "checking size of int *""... $ac_c" 1>&6
b64f0a5f 10242echo "configure:10243: checking size of int *" >&5
10f2d63a
VZ
10243if eval "test \"`echo '$''{'ac_cv_sizeof_int_p'+set}'`\" = set"; then
10244 echo $ac_n "(cached) $ac_c" 1>&6
10245else
10246 if test "$cross_compiling" = yes; then
10247 ac_cv_sizeof_int_p=4
10248else
10249 cat > conftest.$ac_ext <<EOF
b64f0a5f 10250#line 10251 "configure"
10f2d63a
VZ
10251#include "confdefs.h"
10252#include <stdio.h>
10253main()
10254{
10255 FILE *f=fopen("conftestval", "w");
10256 if (!f) exit(1);
10257 fprintf(f, "%d\n", sizeof(int *));
10258 exit(0);
10259}
10260EOF
b64f0a5f 10261if { (eval echo configure:10262: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10f2d63a
VZ
10262then
10263 ac_cv_sizeof_int_p=`cat conftestval`
10264else
10265 echo "configure: failed program was:" >&5
10266 cat conftest.$ac_ext >&5
10267 rm -fr conftest*
10268 ac_cv_sizeof_int_p=0
10269fi
10270rm -fr conftest*
10271fi
10272
10273fi
10274echo "$ac_t""$ac_cv_sizeof_int_p" 1>&6
10275cat >> confdefs.h <<EOF
10276#define SIZEOF_INT_P $ac_cv_sizeof_int_p
10277EOF
10278
10279
10280echo $ac_n "checking size of int""... $ac_c" 1>&6
b64f0a5f 10281echo "configure:10282: checking size of int" >&5
10f2d63a
VZ
10282if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
10283 echo $ac_n "(cached) $ac_c" 1>&6
10284else
10285 if test "$cross_compiling" = yes; then
10286 ac_cv_sizeof_int=4
10287else
10288 cat > conftest.$ac_ext <<EOF
b64f0a5f 10289#line 10290 "configure"
10f2d63a
VZ
10290#include "confdefs.h"
10291#include <stdio.h>
10292main()
10293{
10294 FILE *f=fopen("conftestval", "w");
10295 if (!f) exit(1);
10296 fprintf(f, "%d\n", sizeof(int));
10297 exit(0);
10298}
10299EOF
b64f0a5f 10300if { (eval echo configure:10301: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10f2d63a
VZ
10301then
10302 ac_cv_sizeof_int=`cat conftestval`
10303else
10304 echo "configure: failed program was:" >&5
10305 cat conftest.$ac_ext >&5
10306 rm -fr conftest*
10307 ac_cv_sizeof_int=0
10308fi
10309rm -fr conftest*
10310fi
10311
10312fi
10313echo "$ac_t""$ac_cv_sizeof_int" 1>&6
10314cat >> confdefs.h <<EOF
10315#define SIZEOF_INT $ac_cv_sizeof_int
10316EOF
10317
10318
10319echo $ac_n "checking size of long""... $ac_c" 1>&6
b64f0a5f 10320echo "configure:10321: checking size of long" >&5
10f2d63a
VZ
10321if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
10322 echo $ac_n "(cached) $ac_c" 1>&6
10323else
10324 if test "$cross_compiling" = yes; then
10325 ac_cv_sizeof_long=4
10326else
10327 cat > conftest.$ac_ext <<EOF
b64f0a5f 10328#line 10329 "configure"
10f2d63a
VZ
10329#include "confdefs.h"
10330#include <stdio.h>
10331main()
10332{
10333 FILE *f=fopen("conftestval", "w");
10334 if (!f) exit(1);
10335 fprintf(f, "%d\n", sizeof(long));
10336 exit(0);
10337}
10338EOF
b64f0a5f 10339if { (eval echo configure:10340: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10f2d63a
VZ
10340then
10341 ac_cv_sizeof_long=`cat conftestval`
10342else
10343 echo "configure: failed program was:" >&5
10344 cat conftest.$ac_ext >&5
10345 rm -fr conftest*
10346 ac_cv_sizeof_long=0
10347fi
10348rm -fr conftest*
10349fi
10350
10351fi
10352echo "$ac_t""$ac_cv_sizeof_long" 1>&6
10353cat >> confdefs.h <<EOF
10354#define SIZEOF_LONG $ac_cv_sizeof_long
10355EOF
10356
10357
10358echo $ac_n "checking size of long long""... $ac_c" 1>&6
b64f0a5f 10359echo "configure:10360: checking size of long long" >&5
10f2d63a
VZ
10360if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
10361 echo $ac_n "(cached) $ac_c" 1>&6
10362else
10363 if test "$cross_compiling" = yes; then
10364 ac_cv_sizeof_long_long=0
10365else
10366 cat > conftest.$ac_ext <<EOF
b64f0a5f 10367#line 10368 "configure"
10f2d63a
VZ
10368#include "confdefs.h"
10369#include <stdio.h>
10370main()
10371{
10372 FILE *f=fopen("conftestval", "w");
10373 if (!f) exit(1);
10374 fprintf(f, "%d\n", sizeof(long long));
10375 exit(0);
10376}
10377EOF
b64f0a5f 10378if { (eval echo configure:10379: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10f2d63a
VZ
10379then
10380 ac_cv_sizeof_long_long=`cat conftestval`
10381else
10382 echo "configure: failed program was:" >&5
10383 cat conftest.$ac_ext >&5
10384 rm -fr conftest*
10385 ac_cv_sizeof_long_long=0
10386fi
10387rm -fr conftest*
10388fi
10389
10390fi
10391echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
10392cat >> confdefs.h <<EOF
10393#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
10394EOF
10395
10396
10397
10398echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
b64f0a5f 10399echo "configure:10400: checking whether byte ordering is bigendian" >&5
10f2d63a
VZ
10400if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
10401 echo $ac_n "(cached) $ac_c" 1>&6
10402else
10403 ac_cv_c_bigendian=unknown
10404# See if sys/param.h defines the BYTE_ORDER macro.
10405cat > conftest.$ac_ext <<EOF
b64f0a5f 10406#line 10407 "configure"
10f2d63a
VZ
10407#include "confdefs.h"
10408#include <sys/types.h>
10409#include <sys/param.h>
10410int main() {
10411
10412#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
10413 bogus endian macros
10414#endif
10415; return 0; }
10416EOF
b64f0a5f 10417if { (eval echo configure:10418: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10f2d63a
VZ
10418 rm -rf conftest*
10419 # It does; now see whether it defined to BIG_ENDIAN or not.
10420cat > conftest.$ac_ext <<EOF
b64f0a5f 10421#line 10422 "configure"
10f2d63a
VZ
10422#include "confdefs.h"
10423#include <sys/types.h>
10424#include <sys/param.h>
10425int main() {
10426
10427#if BYTE_ORDER != BIG_ENDIAN
10428 not big endian
10429#endif
10430; return 0; }
10431EOF
b64f0a5f 10432if { (eval echo configure:10433: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10f2d63a
VZ
10433 rm -rf conftest*
10434 ac_cv_c_bigendian=yes
10435else
10436 echo "configure: failed program was:" >&5
10437 cat conftest.$ac_ext >&5
10438 rm -rf conftest*
10439 ac_cv_c_bigendian=no
10440fi
10441rm -f conftest*
10442else
10443 echo "configure: failed program was:" >&5
10444 cat conftest.$ac_ext >&5
10445fi
10446rm -f conftest*
10447if test $ac_cv_c_bigendian = unknown; then
10448if test "$cross_compiling" = yes; then
10449 ac_cv_c_bigendian=unknown
10450else
10451 cat > conftest.$ac_ext <<EOF
b64f0a5f 10452#line 10453 "configure"
10f2d63a
VZ
10453#include "confdefs.h"
10454main () {
10455 /* Are we little or big endian? From Harbison&Steele. */
10456 union
10457 {
10458 long l;
10459 char c[sizeof (long)];
10460 } u;
10461 u.l = 1;
10462 exit (u.c[sizeof (long) - 1] == 1);
10463}
10464EOF
b64f0a5f 10465if { (eval echo configure:10466: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10f2d63a
VZ
10466then
10467 ac_cv_c_bigendian=no
10468else
10469 echo "configure: failed program was:" >&5
10470 cat conftest.$ac_ext >&5
10471 rm -fr conftest*
10472 ac_cv_c_bigendian=yes
10473fi
10474rm -fr conftest*
10475fi
10476
10477fi
10478fi
10479
10480echo "$ac_t""$ac_cv_c_bigendian" 1>&6
10481if test $ac_cv_c_bigendian = unknown; then
10482 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
10483fi
10484if test $ac_cv_c_bigendian = yes; then
10485 cat >> confdefs.h <<\EOF
10486#define WORDS_BIGENDIAN 1
10487EOF
10488
10489fi
10490
10491
10492
10493 if test "$cross_compiling" = "yes"; then
10494 cat >> confdefs.h <<\EOF
10495#define wxUSE_IOSTREAMH 1
10496EOF
10497
10498 else
10499
10500 ac_ext=C
10501# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10502ac_cpp='$CXXCPP $CPPFLAGS'
10503ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10504ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10505cross_compiling=$ac_cv_prog_cxx_cross
10506
10507
10508 for ac_hdr in iostream
10509do
10510ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10511echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
b64f0a5f 10512echo "configure:10513: checking for $ac_hdr" >&5
10f2d63a
VZ
10513if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10514 echo $ac_n "(cached) $ac_c" 1>&6
10515else
10516 cat > conftest.$ac_ext <<EOF
b64f0a5f 10517#line 10518 "configure"
10f2d63a
VZ
10518#include "confdefs.h"
10519#include <$ac_hdr>
10520EOF
10521ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
b64f0a5f 10522{ (eval echo configure:10523: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
10523ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10524if test -z "$ac_err"; then
10525 rm -rf conftest*
10526 eval "ac_cv_header_$ac_safe=yes"
10527else
10528 echo "$ac_err" >&5
10529 echo "configure: failed program was:" >&5
10530 cat conftest.$ac_ext >&5
10531 rm -rf conftest*
10532 eval "ac_cv_header_$ac_safe=no"
10533fi
10534rm -f conftest*
10535fi
10536if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10537 echo "$ac_t""yes" 1>&6
10538 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10539 cat >> confdefs.h <<EOF
10540#define $ac_tr_hdr 1
10541EOF
10542
10543else
10544 echo "$ac_t""no" 1>&6
10545fi
10546done
10547
10548
10549 if test "x$HAVE_IOSTREAM" = x ; then
10550 cat >> confdefs.h <<\EOF
10551#define wxUSE_IOSTREAMH 1
10552EOF
10553
10554 else
10555 :
10556 fi
10557
10558 ac_ext=c
10559# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10560ac_cpp='$CPP $CPPFLAGS'
10561ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10562ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10563cross_compiling=$ac_cv_prog_cc_cross
10564
10565 fi
10566
10567
10568
10569 echo $ac_n "checking if C++ compiler supports bool""... $ac_c" 1>&6
b64f0a5f 10570echo "configure:10571: checking if C++ compiler supports bool" >&5
10f2d63a
VZ
10571if eval "test \"`echo '$''{'wx_cv_cpp_bool'+set}'`\" = set"; then
10572 echo $ac_n "(cached) $ac_c" 1>&6
10573else
10574
10575
10576 ac_ext=C
10577# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10578ac_cpp='$CXXCPP $CPPFLAGS'
10579ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10580ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10581cross_compiling=$ac_cv_prog_cxx_cross
10582
10583
10584 cat > conftest.$ac_ext <<EOF
b64f0a5f 10585#line 10586 "configure"
10f2d63a
VZ
10586#include "confdefs.h"
10587
10588
10589int main() {
10590
10591 bool b = true;
10592
10593 return 0;
10594
10595; return 0; }
10596EOF
b64f0a5f 10597if { (eval echo configure:10598: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10f2d63a
VZ
10598 rm -rf conftest*
10599
10600 cat >> confdefs.h <<\EOF
10601#define HAVE_BOOL 1
10602EOF
10603
10604 wx_cv_cpp_bool=yes
10605
10606else
10607 echo "configure: failed program was:" >&5
10608 cat conftest.$ac_ext >&5
10609 rm -rf conftest*
10610
10611 wx_cv_cpp_bool=no
10612
10613
10614fi
10615rm -f conftest*
10616
10617 ac_ext=c
10618# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10619ac_cpp='$CPP $CPPFLAGS'
10620ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10621ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10622cross_compiling=$ac_cv_prog_cc_cross
10623
10624
10625fi
10626
10627echo "$ac_t""$wx_cv_cpp_bool" 1>&6
10628
10629 if test "$wx_cv_cpp_bool" = "yes"; then
10630 cat >> confdefs.h <<\EOF
10631#define HAVE_BOOL 1
10632EOF
10633
10634 fi
10635
10636
10637
10f2d63a 10638echo $ac_n "checking if you need GNU extensions""... $ac_c" 1>&6
b64f0a5f 10639echo "configure:10640: checking if you need GNU extensions" >&5
10f2d63a
VZ
10640if eval "test \"`echo '$''{'wx_cv_gnu_extensions'+set}'`\" = set"; then
10641 echo $ac_n "(cached) $ac_c" 1>&6
10642else
10643
10644 cat > conftest.$ac_ext <<EOF
b64f0a5f 10645#line 10646 "configure"
10f2d63a
VZ
10646#include "confdefs.h"
10647#include <features.h>
10648int main() {
10649
10650
10651#ifndef __GNU_LIBRARY__
10652 Compile error wanted
10653#endif
10654
10655
10656; return 0; }
10657EOF
b64f0a5f 10658if { (eval echo configure:10659: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10f2d63a
VZ
10659 rm -rf conftest*
10660 wx_cv_gnu_extensions=yes
10661else
10662 echo "configure: failed program was:" >&5
10663 cat conftest.$ac_ext >&5
10664 rm -rf conftest*
10665 wx_cv_gnu_extensions=no
10666fi
10667rm -f conftest*
10668
10669fi
10670
10671
10672echo "$ac_t""$wx_cv_gnu_extensions" 1>&6
10673if test "$wx_cv_gnu_extensions" = "yes"; then
10674 cat >> confdefs.h <<EOF
10675#define _GNU_SOURCE 1
10676EOF
10677
10678fi
10679
10680
10681
10682echo $ac_n "checking for wcslen in -lc""... $ac_c" 1>&6
b64f0a5f 10683echo "configure:10684: checking for wcslen in -lc" >&5
10f2d63a
VZ
10684ac_lib_var=`echo c'_'wcslen | sed 'y%./+-%__p_%'`
10685if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10686 echo $ac_n "(cached) $ac_c" 1>&6
10687else
10688 ac_save_LIBS="$LIBS"
10689LIBS="-lc $LIBS"
10690cat > conftest.$ac_ext <<EOF
b64f0a5f 10691#line 10692 "configure"
10f2d63a
VZ
10692#include "confdefs.h"
10693/* Override any gcc2 internal prototype to avoid an error. */
10694/* We use char because int might match the return type of a gcc2
10695 builtin and then its argument prototype would still apply. */
10696char wcslen();
10697
10698int main() {
10699wcslen()
10700; return 0; }
10701EOF
b64f0a5f 10702if { (eval echo configure:10703: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
10703 rm -rf conftest*
10704 eval "ac_cv_lib_$ac_lib_var=yes"
10705else
10706 echo "configure: failed program was:" >&5
10707 cat conftest.$ac_ext >&5
10708 rm -rf conftest*
10709 eval "ac_cv_lib_$ac_lib_var=no"
10710fi
10711rm -f conftest*
10712LIBS="$ac_save_LIBS"
10713
10714fi
10715if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10716 echo "$ac_t""yes" 1>&6
10717
10718 cat >> confdefs.h <<\EOF
10719#define HAVE_WCSLEN 1
10720EOF
10721
10722 WCHAR_LINK=""
10723
10724else
10725 echo "$ac_t""no" 1>&6
10726
10727 echo $ac_n "checking for wcslen in -lw""... $ac_c" 1>&6
b64f0a5f 10728echo "configure:10729: checking for wcslen in -lw" >&5
10f2d63a
VZ
10729ac_lib_var=`echo w'_'wcslen | sed 'y%./+-%__p_%'`
10730if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10731 echo $ac_n "(cached) $ac_c" 1>&6
10732else
10733 ac_save_LIBS="$LIBS"
10734LIBS="-lw $LIBS"
10735cat > conftest.$ac_ext <<EOF
b64f0a5f 10736#line 10737 "configure"
10f2d63a
VZ
10737#include "confdefs.h"
10738/* Override any gcc2 internal prototype to avoid an error. */
10739/* We use char because int might match the return type of a gcc2
10740 builtin and then its argument prototype would still apply. */
10741char wcslen();
10742
10743int main() {
10744wcslen()
10745; return 0; }
10746EOF
b64f0a5f 10747if { (eval echo configure:10748: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
10748 rm -rf conftest*
10749 eval "ac_cv_lib_$ac_lib_var=yes"
10750else
10751 echo "configure: failed program was:" >&5
10752 cat conftest.$ac_ext >&5
10753 rm -rf conftest*
10754 eval "ac_cv_lib_$ac_lib_var=no"
10755fi
10756rm -f conftest*
10757LIBS="$ac_save_LIBS"
10758
10759fi
10760if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10761 echo "$ac_t""yes" 1>&6
10762
10763 cat >> confdefs.h <<\EOF
10764#define HAVE_WCSLEN 1
10765EOF
10766
10767 WCHAR_LINK="-lw"
10768
10769else
10770 echo "$ac_t""no" 1>&6
10771fi
10772
10773
10774fi
10775
10776
10777echo $ac_n "checking for vprintf""... $ac_c" 1>&6
b64f0a5f 10778echo "configure:10779: checking for vprintf" >&5
10f2d63a
VZ
10779if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
10780 echo $ac_n "(cached) $ac_c" 1>&6
10781else
10782 cat > conftest.$ac_ext <<EOF
b64f0a5f 10783#line 10784 "configure"
10f2d63a
VZ
10784#include "confdefs.h"
10785/* System header to define __stub macros and hopefully few prototypes,
10786 which can conflict with char vprintf(); below. */
10787#include <assert.h>
10788/* Override any gcc2 internal prototype to avoid an error. */
10789/* We use char because int might match the return type of a gcc2
10790 builtin and then its argument prototype would still apply. */
10791char vprintf();
10792
10793int main() {
10794
10795/* The GNU C library defines this for functions which it implements
10796 to always fail with ENOSYS. Some functions are actually named
10797 something starting with __ and the normal name is an alias. */
10798#if defined (__stub_vprintf) || defined (__stub___vprintf)
10799choke me
10800#else
e8482f24 10801vprintf();
10f2d63a
VZ
10802#endif
10803
10804; return 0; }
10805EOF
b64f0a5f 10806if { (eval echo configure:10807: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
10807 rm -rf conftest*
10808 eval "ac_cv_func_vprintf=yes"
10809else
10810 echo "configure: failed program was:" >&5
10811 cat conftest.$ac_ext >&5
10812 rm -rf conftest*
10813 eval "ac_cv_func_vprintf=no"
10814fi
10815rm -f conftest*
10816fi
10817
10818if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
10819 echo "$ac_t""yes" 1>&6
10820 cat >> confdefs.h <<\EOF
10821#define HAVE_VPRINTF 1
10822EOF
10823
10824else
10825 echo "$ac_t""no" 1>&6
10826fi
10827
10828if test "$ac_cv_func_vprintf" != yes; then
10829echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
b64f0a5f 10830echo "configure:10831: checking for _doprnt" >&5
10f2d63a
VZ
10831if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
10832 echo $ac_n "(cached) $ac_c" 1>&6
10833else
10834 cat > conftest.$ac_ext <<EOF
b64f0a5f 10835#line 10836 "configure"
10f2d63a
VZ
10836#include "confdefs.h"
10837/* System header to define __stub macros and hopefully few prototypes,
10838 which can conflict with char _doprnt(); below. */
10839#include <assert.h>
10840/* Override any gcc2 internal prototype to avoid an error. */
10841/* We use char because int might match the return type of a gcc2
10842 builtin and then its argument prototype would still apply. */
10843char _doprnt();
10844
10845int main() {
10846
10847/* The GNU C library defines this for functions which it implements
10848 to always fail with ENOSYS. Some functions are actually named
10849 something starting with __ and the normal name is an alias. */
10850#if defined (__stub__doprnt) || defined (__stub____doprnt)
10851choke me
10852#else
e8482f24 10853_doprnt();
10f2d63a
VZ
10854#endif
10855
10856; return 0; }
10857EOF
b64f0a5f 10858if { (eval echo configure:10859: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
10859 rm -rf conftest*
10860 eval "ac_cv_func__doprnt=yes"
10861else
10862 echo "configure: failed program was:" >&5
10863 cat conftest.$ac_ext >&5
10864 rm -rf conftest*
10865 eval "ac_cv_func__doprnt=no"
10866fi
10867rm -f conftest*
10868fi
10869
10870if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
10871 echo "$ac_t""yes" 1>&6
10872 cat >> confdefs.h <<\EOF
10873#define HAVE_DOPRNT 1
10874EOF
10875
10876else
10877 echo "$ac_t""no" 1>&6
10878fi
10879
10880fi
10881
10882
10f2d63a 10883
f6bcfd97
BP
10884ac_ext=C
10885# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10886ac_cpp='$CXXCPP $CPPFLAGS'
10887ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10888ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10889cross_compiling=$ac_cv_prog_cxx_cross
10890
10891
10892
10893
c521c494 10894
f6bcfd97 10895echo $ac_n "checking for vsnprintf""... $ac_c" 1>&6
b64f0a5f 10896echo "configure:10897: checking for vsnprintf" >&5
f6bcfd97
BP
10897if eval "test \"`echo '$''{'wx_cv_func_vsnprintf'+set}'`\" = set"; then
10898 echo $ac_n "(cached) $ac_c" 1>&6
10899else
10900
10901 cat > conftest.$ac_ext <<EOF
b64f0a5f 10902#line 10903 "configure"
f6bcfd97
BP
10903#include "confdefs.h"
10904
10905 #include <stdio.h>
10906 #include <stdarg.h>
10907
10f2d63a
VZ
10908int main() {
10909
f6bcfd97 10910 int wx_test_vsnprintf(const char *, ...);
10f2d63a 10911
f6bcfd97
BP
10912 wx_test_vsnprintf("%s");
10913 return 0;
10914 }
10915
10916 int wx_test_vsnprintf(const char *fmt, ...)
10917 {
10918 char *s;
10919
10920 va_list argp;
10921 va_start(argp, fmt);
10922 vsnprintf(s, 42, fmt, argp);
10923 va_end(argp);
10924
10f2d63a
VZ
10925; return 0; }
10926EOF
b64f0a5f 10927if { (eval echo configure:10928: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10f2d63a 10928 rm -rf conftest*
f6bcfd97
BP
10929
10930 cat >> confdefs.h <<\EOF
10931#define HAVE_VSNPRINTF 1
10932EOF
10933
10934 wx_cv_func_vsnprintf=yes
10935
10f2d63a
VZ
10936else
10937 echo "configure: failed program was:" >&5
10938 cat conftest.$ac_ext >&5
10939 rm -rf conftest*
f6bcfd97 10940
c521c494 10941 cat > conftest.$ac_ext <<EOF
b64f0a5f 10942#line 10943 "configure"
c521c494
RL
10943#include "confdefs.h"
10944
10945 #include <stdio.h>
10946 #include <stdarg.h>
10947
10948int main() {
10949
10950 int wx_test_vsnprintf(const char *, ...);
10951
10952 wx_test_vsnprintf("%s");
10953 return 0;
10954 }
10955
10956 int wx_test_vsnprintf(const char *fmt, ...)
10957 {
10958 char *s;
10959
10960 va_list argp;
10961 va_start(argp, fmt);
10962 _vsnprintf(s, 42, fmt, argp);
10963 va_end(argp);
10964
10965; return 0; }
10966EOF
b64f0a5f 10967if { (eval echo configure:10968: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
c521c494
RL
10968 rm -rf conftest*
10969
10970 cat >> confdefs.h <<\EOF
10971#define HAVE_VSNPRINTF 1
10972EOF
10973
10974 wx_cv_func_vsnprintf=yes
10975
10976else
10977 echo "configure: failed program was:" >&5
10978 cat conftest.$ac_ext >&5
10979 rm -rf conftest*
10980
10981 echo "configure: warning: unsafe function sprintf will be used instead of snprintf" 1>&2
10982 wx_cv_func_vsnprintf=no
10983
10984fi
10985rm -f conftest*
f6bcfd97 10986
10f2d63a
VZ
10987fi
10988rm -f conftest*
10f2d63a 10989
10f2d63a 10990fi
10f2d63a 10991
f6bcfd97 10992echo "$ac_t""$wx_cv_func_vsnprintf" 1>&6
10f2d63a
VZ
10993
10994echo $ac_n "checking for vsscanf""... $ac_c" 1>&6
b64f0a5f 10995echo "configure:10996: checking for vsscanf" >&5
10f2d63a
VZ
10996if eval "test \"`echo '$''{'wx_cv_func_vsscanf'+set}'`\" = set"; then
10997 echo $ac_n "(cached) $ac_c" 1>&6
10998else
10999
10f2d63a 11000 cat > conftest.$ac_ext <<EOF
b64f0a5f 11001#line 11002 "configure"
10f2d63a 11002#include "confdefs.h"
10f2d63a 11003
f6bcfd97
BP
11004 #include <stdio.h>
11005 #include <stdarg.h>
11006
11007int main() {
10f2d63a 11008
f6bcfd97 11009 int wx_test_vsscanf(const char *, ...);
10f2d63a 11010
f6bcfd97
BP
11011 wx_test_vsscanf("%d");
11012 return 0;
10f2d63a
VZ
11013 }
11014
f6bcfd97 11015 int wx_test_vsscanf(const char *fmt, ...)
10f2d63a 11016 {
f6bcfd97
BP
11017 va_list argp;
11018 va_start(argp, fmt);
11019 vsscanf("42", fmt, argp);
11020 va_end(argp);
11021
11022; return 0; }
10f2d63a 11023EOF
b64f0a5f 11024if { (eval echo configure:11025: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
f6bcfd97 11025 rm -rf conftest*
10f2d63a 11026
f6bcfd97 11027 cat >> confdefs.h <<\EOF
10f2d63a
VZ
11028#define HAVE_VSSCANF 1
11029EOF
11030
f6bcfd97
BP
11031 wx_cv_func_vsscanf=yes
11032
10f2d63a
VZ
11033else
11034 echo "configure: failed program was:" >&5
11035 cat conftest.$ac_ext >&5
f6bcfd97
BP
11036 rm -rf conftest*
11037
11038 wx_cv_func_vsscanf=no
11039
10f2d63a 11040fi
f6bcfd97 11041rm -f conftest*
10f2d63a
VZ
11042
11043fi
11044
11045echo "$ac_t""$wx_cv_func_vsscanf" 1>&6
11046
11047ac_ext=c
11048# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11049ac_cpp='$CPP $CPPFLAGS'
11050ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11051ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11052cross_compiling=$ac_cv_prog_cc_cross
11053
11054
b089607b 11055if test "$TOOLKIT" != "MSW"; then
10f2d63a 11056
eb4efbdc
VZ
11057if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
11058 for ac_func in sigaction
11059do
11060echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
b64f0a5f 11061echo "configure:11062: checking for $ac_func" >&5
eb4efbdc
VZ
11062if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11063 echo $ac_n "(cached) $ac_c" 1>&6
11064else
11065 cat > conftest.$ac_ext <<EOF
b64f0a5f 11066#line 11067 "configure"
eb4efbdc
VZ
11067#include "confdefs.h"
11068/* System header to define __stub macros and hopefully few prototypes,
11069 which can conflict with char $ac_func(); below. */
11070#include <assert.h>
11071/* Override any gcc2 internal prototype to avoid an error. */
11072/* We use char because int might match the return type of a gcc2
11073 builtin and then its argument prototype would still apply. */
11074char $ac_func();
11075
11076int main() {
11077
11078/* The GNU C library defines this for functions which it implements
11079 to always fail with ENOSYS. Some functions are actually named
11080 something starting with __ and the normal name is an alias. */
11081#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11082choke me
11083#else
11084$ac_func();
11085#endif
11086
11087; return 0; }
11088EOF
b64f0a5f 11089if { (eval echo configure:11090: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
eb4efbdc
VZ
11090 rm -rf conftest*
11091 eval "ac_cv_func_$ac_func=yes"
11092else
11093 echo "configure: failed program was:" >&5
11094 cat conftest.$ac_ext >&5
11095 rm -rf conftest*
11096 eval "ac_cv_func_$ac_func=no"
11097fi
11098rm -f conftest*
11099fi
11100
11101if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11102 echo "$ac_t""yes" 1>&6
11103 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11104 cat >> confdefs.h <<EOF
11105#define $ac_tr_func 1
11106EOF
11107
11108else
11109 echo "$ac_t""no" 1>&6
11110fi
11111done
11112
11113
11114 if test "$ac_cv_func_sigaction" = "no"; then
11115 echo "configure: warning: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" 1>&2
11116 wxUSE_ON_FATAL_EXCEPTION=no
11117 fi
f6bcfd97
BP
11118
11119 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
11120
11121 ac_ext=C
11122# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11123ac_cpp='$CXXCPP $CPPFLAGS'
11124ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11125ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11126cross_compiling=$ac_cv_prog_cxx_cross
11127
11128
11129 echo $ac_n "checking for sa_handler type""... $ac_c" 1>&6
b64f0a5f 11130echo "configure:11131: checking for sa_handler type" >&5
f6bcfd97
BP
11131if eval "test \"`echo '$''{'wx_cv_type_sa_handler'+set}'`\" = set"; then
11132 echo $ac_n "(cached) $ac_c" 1>&6
11133else
11134
11135 cat > conftest.$ac_ext <<EOF
b64f0a5f 11136#line 11137 "configure"
f6bcfd97
BP
11137#include "confdefs.h"
11138#include <signal.h>
11139int main() {
11140
11141 extern void testSigHandler(int);
11142
11143 struct sigaction sa;
11144 sa.sa_handler = testSigHandler;
11145
11146; return 0; }
11147EOF
b64f0a5f 11148if { (eval echo configure:11149: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
f6bcfd97
BP
11149 rm -rf conftest*
11150
11151 wx_cv_type_sa_handler=int
11152
11153else
11154 echo "configure: failed program was:" >&5
11155 cat conftest.$ac_ext >&5
11156 rm -rf conftest*
11157
11158 wx_cv_type_sa_handler=void
11159
11160fi
11161rm -f conftest*
11162
11163fi
11164
11165echo "$ac_t""$wx_cv_type_sa_handler" 1>&6
11166
11167 ac_ext=c
11168# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11169ac_cpp='$CPP $CPPFLAGS'
11170ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11171ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11172cross_compiling=$ac_cv_prog_cc_cross
11173
11174
11175 cat >> confdefs.h <<EOF
11176#define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
11177EOF
11178
11179 fi
eb4efbdc
VZ
11180fi
11181
10f2d63a
VZ
11182for ac_func in vfork
11183do
11184echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
b64f0a5f 11185echo "configure:11186: checking for $ac_func" >&5
10f2d63a
VZ
11186if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11187 echo $ac_n "(cached) $ac_c" 1>&6
11188else
11189 cat > conftest.$ac_ext <<EOF
b64f0a5f 11190#line 11191 "configure"
10f2d63a
VZ
11191#include "confdefs.h"
11192/* System header to define __stub macros and hopefully few prototypes,
11193 which can conflict with char $ac_func(); below. */
11194#include <assert.h>
11195/* Override any gcc2 internal prototype to avoid an error. */
11196/* We use char because int might match the return type of a gcc2
11197 builtin and then its argument prototype would still apply. */
11198char $ac_func();
11199
11200int main() {
11201
11202/* The GNU C library defines this for functions which it implements
11203 to always fail with ENOSYS. Some functions are actually named
11204 something starting with __ and the normal name is an alias. */
11205#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11206choke me
11207#else
e8482f24 11208$ac_func();
10f2d63a
VZ
11209#endif
11210
11211; return 0; }
11212EOF
b64f0a5f 11213if { (eval echo configure:11214: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
270a909e
VZ
11214 rm -rf conftest*
11215 eval "ac_cv_func_$ac_func=yes"
11216else
11217 echo "configure: failed program was:" >&5
11218 cat conftest.$ac_ext >&5
11219 rm -rf conftest*
11220 eval "ac_cv_func_$ac_func=no"
11221fi
11222rm -f conftest*
11223fi
11224
11225if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11226 echo "$ac_t""yes" 1>&6
11227 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11228 cat >> confdefs.h <<EOF
11229#define $ac_tr_func 1
11230EOF
11231
11232else
11233 echo "$ac_t""no" 1>&6
11234fi
11235done
11236
11237
11238for ac_func in timegm
11239do
11240echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
b64f0a5f 11241echo "configure:11242: checking for $ac_func" >&5
270a909e
VZ
11242if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11243 echo $ac_n "(cached) $ac_c" 1>&6
11244else
11245 cat > conftest.$ac_ext <<EOF
b64f0a5f 11246#line 11247 "configure"
270a909e
VZ
11247#include "confdefs.h"
11248/* System header to define __stub macros and hopefully few prototypes,
11249 which can conflict with char $ac_func(); below. */
11250#include <assert.h>
11251/* Override any gcc2 internal prototype to avoid an error. */
11252/* We use char because int might match the return type of a gcc2
11253 builtin and then its argument prototype would still apply. */
11254char $ac_func();
11255
11256int main() {
11257
11258/* The GNU C library defines this for functions which it implements
11259 to always fail with ENOSYS. Some functions are actually named
11260 something starting with __ and the normal name is an alias. */
11261#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11262choke me
11263#else
e8482f24 11264$ac_func();
270a909e
VZ
11265#endif
11266
11267; return 0; }
11268EOF
b64f0a5f 11269if { (eval echo configure:11270: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
11270 rm -rf conftest*
11271 eval "ac_cv_func_$ac_func=yes"
11272else
11273 echo "configure: failed program was:" >&5
11274 cat conftest.$ac_ext >&5
11275 rm -rf conftest*
11276 eval "ac_cv_func_$ac_func=no"
11277fi
11278rm -f conftest*
11279fi
11280
11281if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11282 echo "$ac_t""yes" 1>&6
11283 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11284 cat >> confdefs.h <<EOF
11285#define $ac_tr_func 1
11286EOF
11287
11288else
11289 echo "$ac_t""no" 1>&6
11290fi
11291done
11292
11293
8fd0d89b
VZ
11294for ac_func in putenv setenv
11295do
11296echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
b64f0a5f 11297echo "configure:11298: checking for $ac_func" >&5
8fd0d89b
VZ
11298if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11299 echo $ac_n "(cached) $ac_c" 1>&6
11300else
11301 cat > conftest.$ac_ext <<EOF
b64f0a5f 11302#line 11303 "configure"
8fd0d89b
VZ
11303#include "confdefs.h"
11304/* System header to define __stub macros and hopefully few prototypes,
11305 which can conflict with char $ac_func(); below. */
11306#include <assert.h>
11307/* Override any gcc2 internal prototype to avoid an error. */
11308/* We use char because int might match the return type of a gcc2
11309 builtin and then its argument prototype would still apply. */
11310char $ac_func();
11311
11312int main() {
11313
11314/* The GNU C library defines this for functions which it implements
11315 to always fail with ENOSYS. Some functions are actually named
11316 something starting with __ and the normal name is an alias. */
11317#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11318choke me
11319#else
11320$ac_func();
11321#endif
11322
11323; return 0; }
11324EOF
b64f0a5f 11325if { (eval echo configure:11326: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8fd0d89b
VZ
11326 rm -rf conftest*
11327 eval "ac_cv_func_$ac_func=yes"
11328else
11329 echo "configure: failed program was:" >&5
11330 cat conftest.$ac_ext >&5
11331 rm -rf conftest*
11332 eval "ac_cv_func_$ac_func=no"
11333fi
11334rm -f conftest*
11335fi
11336
11337if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11338 echo "$ac_t""yes" 1>&6
11339 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11340 cat >> confdefs.h <<EOF
11341#define $ac_tr_func 1
11342EOF
11343 break
11344else
11345 echo "$ac_t""no" 1>&6
11346fi
11347done
11348
11349
b12915c1
VZ
11350HAVE_SOME_SLEEP_FUNC=0
11351if test "$USE_BEOS" = 1; then
11352 cat >> confdefs.h <<\EOF
11353#define HAVE_SLEEP 1
11354EOF
11355
11356 HAVE_SOME_SLEEP_FUNC=1
11357fi
11358
b4085ce6
GD
11359if test "$USE_MAC" = 1; then
11360 cat >> confdefs.h <<\EOF
11361#define HAVE_USLEEP 1
11362EOF
11363
11364 HAVE_SOME_SLEEP_FUNC=1
11365fi
11366
b12915c1
VZ
11367if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
11368 POSIX4_LINK=
11369 for ac_func in nanosleep
10f2d63a
VZ
11370do
11371echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
b64f0a5f 11372echo "configure:11373: checking for $ac_func" >&5
10f2d63a
VZ
11373if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11374 echo $ac_n "(cached) $ac_c" 1>&6
11375else
11376 cat > conftest.$ac_ext <<EOF
b64f0a5f 11377#line 11378 "configure"
10f2d63a
VZ
11378#include "confdefs.h"
11379/* System header to define __stub macros and hopefully few prototypes,
11380 which can conflict with char $ac_func(); below. */
11381#include <assert.h>
11382/* Override any gcc2 internal prototype to avoid an error. */
11383/* We use char because int might match the return type of a gcc2
11384 builtin and then its argument prototype would still apply. */
11385char $ac_func();
11386
11387int main() {
11388
11389/* The GNU C library defines this for functions which it implements
11390 to always fail with ENOSYS. Some functions are actually named
11391 something starting with __ and the normal name is an alias. */
11392#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11393choke me
11394#else
e8482f24 11395$ac_func();
10f2d63a
VZ
11396#endif
11397
11398; return 0; }
11399EOF
b64f0a5f 11400if { (eval echo configure:11401: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
11401 rm -rf conftest*
11402 eval "ac_cv_func_$ac_func=yes"
11403else
11404 echo "configure: failed program was:" >&5
11405 cat conftest.$ac_ext >&5
11406 rm -rf conftest*
11407 eval "ac_cv_func_$ac_func=no"
11408fi
11409rm -f conftest*
11410fi
11411
11412if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11413 echo "$ac_t""yes" 1>&6
11414 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11415 cat >> confdefs.h <<EOF
11416#define $ac_tr_func 1
11417EOF
11418 cat >> confdefs.h <<\EOF
11419#define HAVE_NANOSLEEP 1
11420EOF
11421
11422else
11423 echo "$ac_t""no" 1>&6
11424echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6
b64f0a5f 11425echo "configure:11426: checking for nanosleep in -lposix4" >&5
10f2d63a
VZ
11426ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'`
11427if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11428 echo $ac_n "(cached) $ac_c" 1>&6
11429else
11430 ac_save_LIBS="$LIBS"
11431LIBS="-lposix4 $LIBS"
11432cat > conftest.$ac_ext <<EOF
b64f0a5f 11433#line 11434 "configure"
10f2d63a
VZ
11434#include "confdefs.h"
11435/* Override any gcc2 internal prototype to avoid an error. */
11436/* We use char because int might match the return type of a gcc2
11437 builtin and then its argument prototype would still apply. */
11438char nanosleep();
11439
11440int main() {
11441nanosleep()
11442; return 0; }
11443EOF
b64f0a5f 11444if { (eval echo configure:11445: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
11445 rm -rf conftest*
11446 eval "ac_cv_lib_$ac_lib_var=yes"
11447else
11448 echo "configure: failed program was:" >&5
11449 cat conftest.$ac_ext >&5
11450 rm -rf conftest*
11451 eval "ac_cv_lib_$ac_lib_var=no"
11452fi
11453rm -f conftest*
11454LIBS="$ac_save_LIBS"
11455
11456fi
11457if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11458 echo "$ac_t""yes" 1>&6
11459
b12915c1 11460 cat >> confdefs.h <<\EOF
10f2d63a
VZ
11461#define HAVE_NANOSLEEP 1
11462EOF
11463
b12915c1
VZ
11464 POSIX4_LINK="-lposix4"
11465
10f2d63a
VZ
11466else
11467 echo "$ac_t""no" 1>&6
11468
b12915c1 11469 for ac_func in usleep
10f2d63a
VZ
11470do
11471echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
b64f0a5f 11472echo "configure:11473: checking for $ac_func" >&5
10f2d63a
VZ
11473if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11474 echo $ac_n "(cached) $ac_c" 1>&6
11475else
11476 cat > conftest.$ac_ext <<EOF
b64f0a5f 11477#line 11478 "configure"
10f2d63a
VZ
11478#include "confdefs.h"
11479/* System header to define __stub macros and hopefully few prototypes,
11480 which can conflict with char $ac_func(); below. */
11481#include <assert.h>
11482/* Override any gcc2 internal prototype to avoid an error. */
11483/* We use char because int might match the return type of a gcc2
11484 builtin and then its argument prototype would still apply. */
11485char $ac_func();
11486
11487int main() {
11488
11489/* The GNU C library defines this for functions which it implements
11490 to always fail with ENOSYS. Some functions are actually named
11491 something starting with __ and the normal name is an alias. */
11492#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11493choke me
11494#else
e8482f24 11495$ac_func();
10f2d63a
VZ
11496#endif
11497
11498; return 0; }
11499EOF
b64f0a5f 11500if { (eval echo configure:11501: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
11501 rm -rf conftest*
11502 eval "ac_cv_func_$ac_func=yes"
11503else
11504 echo "configure: failed program was:" >&5
11505 cat conftest.$ac_ext >&5
11506 rm -rf conftest*
11507 eval "ac_cv_func_$ac_func=no"
11508fi
11509rm -f conftest*
11510fi
11511
11512if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11513 echo "$ac_t""yes" 1>&6
11514 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11515 cat >> confdefs.h <<EOF
11516#define $ac_tr_func 1
11517EOF
b4085ce6
GD
11518 cat >> confdefs.h <<\EOF
11519#define HAVE_USLEEP 1
11520EOF
11521
10f2d63a
VZ
11522else
11523 echo "$ac_t""no" 1>&6
10f2d63a
VZ
11524fi
11525done
11526
b12915c1
VZ
11527 echo "configure: warning: wxSleep() function will not work" 1>&2
11528
11529
10f2d63a
VZ
11530fi
11531
b12915c1
VZ
11532
11533
10f2d63a
VZ
11534fi
11535done
11536
b12915c1 11537fi
10f2d63a
VZ
11538
11539for ac_func in uname gethostname
11540do
11541echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
b64f0a5f 11542echo "configure:11543: checking for $ac_func" >&5
10f2d63a
VZ
11543if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11544 echo $ac_n "(cached) $ac_c" 1>&6
11545else
11546 cat > conftest.$ac_ext <<EOF
b64f0a5f 11547#line 11548 "configure"
10f2d63a
VZ
11548#include "confdefs.h"
11549/* System header to define __stub macros and hopefully few prototypes,
11550 which can conflict with char $ac_func(); below. */
11551#include <assert.h>
11552/* Override any gcc2 internal prototype to avoid an error. */
11553/* We use char because int might match the return type of a gcc2
11554 builtin and then its argument prototype would still apply. */
11555char $ac_func();
11556
11557int main() {
11558
11559/* The GNU C library defines this for functions which it implements
11560 to always fail with ENOSYS. Some functions are actually named
11561 something starting with __ and the normal name is an alias. */
11562#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11563choke me
11564#else
e8482f24 11565$ac_func();
10f2d63a
VZ
11566#endif
11567
11568; return 0; }
11569EOF
b64f0a5f 11570if { (eval echo configure:11571: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
11571 rm -rf conftest*
11572 eval "ac_cv_func_$ac_func=yes"
11573else
11574 echo "configure: failed program was:" >&5
11575 cat conftest.$ac_ext >&5
11576 rm -rf conftest*
11577 eval "ac_cv_func_$ac_func=no"
11578fi
11579rm -f conftest*
11580fi
11581
11582if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11583 echo "$ac_t""yes" 1>&6
11584 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11585 cat >> confdefs.h <<EOF
11586#define $ac_tr_func 1
11587EOF
11588 break
11589else
11590 echo "$ac_t""no" 1>&6
11591fi
11592done
11593
11594
6098c7f9
VZ
11595
11596ac_ext=C
11597# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11598ac_cpp='$CXXCPP $CPPFLAGS'
11599ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11600ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11601cross_compiling=$ac_cv_prog_cxx_cross
11602
11603
10f2d63a
VZ
11604for ac_func in strtok_r
11605do
11606echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
b64f0a5f 11607echo "configure:11608: checking for $ac_func" >&5
10f2d63a
VZ
11608if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11609 echo $ac_n "(cached) $ac_c" 1>&6
11610else
11611 cat > conftest.$ac_ext <<EOF
b64f0a5f 11612#line 11613 "configure"
10f2d63a
VZ
11613#include "confdefs.h"
11614/* System header to define __stub macros and hopefully few prototypes,
11615 which can conflict with char $ac_func(); below. */
11616#include <assert.h>
11617/* Override any gcc2 internal prototype to avoid an error. */
6098c7f9
VZ
11618#ifdef __cplusplus
11619extern "C"
11620#endif
10f2d63a
VZ
11621/* We use char because int might match the return type of a gcc2
11622 builtin and then its argument prototype would still apply. */
11623char $ac_func();
11624
11625int main() {
11626
11627/* The GNU C library defines this for functions which it implements
11628 to always fail with ENOSYS. Some functions are actually named
11629 something starting with __ and the normal name is an alias. */
11630#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11631choke me
11632#else
e8482f24 11633$ac_func();
10f2d63a
VZ
11634#endif
11635
11636; return 0; }
11637EOF
b64f0a5f 11638if { (eval echo configure:11639: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
11639 rm -rf conftest*
11640 eval "ac_cv_func_$ac_func=yes"
11641else
11642 echo "configure: failed program was:" >&5
11643 cat conftest.$ac_ext >&5
11644 rm -rf conftest*
11645 eval "ac_cv_func_$ac_func=no"
11646fi
11647rm -f conftest*
11648fi
11649
11650if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11651 echo "$ac_t""yes" 1>&6
11652 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11653 cat >> confdefs.h <<EOF
11654#define $ac_tr_func 1
11655EOF
11656
11657else
11658 echo "$ac_t""no" 1>&6
11659fi
11660done
11661
11662
6098c7f9
VZ
11663ac_ext=c
11664# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11665ac_cpp='$CPP $CPPFLAGS'
11666ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11667ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11668cross_compiling=$ac_cv_prog_cc_cross
11669
11670
c63c7106 11671INET_LINK=
10f2d63a
VZ
11672for ac_func in inet_addr
11673do
11674echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
b64f0a5f 11675echo "configure:11676: checking for $ac_func" >&5
10f2d63a
VZ
11676if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11677 echo $ac_n "(cached) $ac_c" 1>&6
11678else
11679 cat > conftest.$ac_ext <<EOF
b64f0a5f 11680#line 11681 "configure"
10f2d63a
VZ
11681#include "confdefs.h"
11682/* System header to define __stub macros and hopefully few prototypes,
11683 which can conflict with char $ac_func(); below. */
11684#include <assert.h>
11685/* Override any gcc2 internal prototype to avoid an error. */
11686/* We use char because int might match the return type of a gcc2
11687 builtin and then its argument prototype would still apply. */
11688char $ac_func();
11689
11690int main() {
11691
11692/* The GNU C library defines this for functions which it implements
11693 to always fail with ENOSYS. Some functions are actually named
11694 something starting with __ and the normal name is an alias. */
11695#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11696choke me
11697#else
e8482f24 11698$ac_func();
10f2d63a
VZ
11699#endif
11700
11701; return 0; }
11702EOF
b64f0a5f 11703if { (eval echo configure:11704: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
11704 rm -rf conftest*
11705 eval "ac_cv_func_$ac_func=yes"
11706else
11707 echo "configure: failed program was:" >&5
11708 cat conftest.$ac_ext >&5
11709 rm -rf conftest*
11710 eval "ac_cv_func_$ac_func=no"
11711fi
11712rm -f conftest*
11713fi
11714
11715if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11716 echo "$ac_t""yes" 1>&6
11717 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11718 cat >> confdefs.h <<EOF
11719#define $ac_tr_func 1
11720EOF
c63c7106
VZ
11721 cat >> confdefs.h <<\EOF
11722#define HAVE_INET_ADDR 1
11723EOF
11724
10f2d63a
VZ
11725else
11726 echo "$ac_t""no" 1>&6
c63c7106 11727echo $ac_n "checking for inet_addr in -lnsl""... $ac_c" 1>&6
b64f0a5f 11728echo "configure:11729: checking for inet_addr in -lnsl" >&5
c63c7106
VZ
11729ac_lib_var=`echo nsl'_'inet_addr | sed 'y%./+-%__p_%'`
11730if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11731 echo $ac_n "(cached) $ac_c" 1>&6
11732else
11733 ac_save_LIBS="$LIBS"
11734LIBS="-lnsl $LIBS"
11735cat > conftest.$ac_ext <<EOF
b64f0a5f 11736#line 11737 "configure"
c63c7106
VZ
11737#include "confdefs.h"
11738/* Override any gcc2 internal prototype to avoid an error. */
11739/* We use char because int might match the return type of a gcc2
11740 builtin and then its argument prototype would still apply. */
11741char inet_addr();
11742
11743int main() {
11744inet_addr()
11745; return 0; }
11746EOF
b64f0a5f 11747if { (eval echo configure:11748: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
c63c7106
VZ
11748 rm -rf conftest*
11749 eval "ac_cv_lib_$ac_lib_var=yes"
11750else
11751 echo "configure: failed program was:" >&5
11752 cat conftest.$ac_ext >&5
11753 rm -rf conftest*
11754 eval "ac_cv_lib_$ac_lib_var=no"
11755fi
11756rm -f conftest*
11757LIBS="$ac_save_LIBS"
11758
11759fi
11760if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11761 echo "$ac_t""yes" 1>&6
11762 INET_LINK="nsl"
11763else
11764 echo "$ac_t""no" 1>&6
11765echo $ac_n "checking for inet_addr in -lresolv""... $ac_c" 1>&6
b64f0a5f 11766echo "configure:11767: checking for inet_addr in -lresolv" >&5
c63c7106
VZ
11767ac_lib_var=`echo resolv'_'inet_addr | sed 'y%./+-%__p_%'`
11768if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11769 echo $ac_n "(cached) $ac_c" 1>&6
11770else
11771 ac_save_LIBS="$LIBS"
11772LIBS="-lresolv $LIBS"
11773cat > conftest.$ac_ext <<EOF
b64f0a5f 11774#line 11775 "configure"
c63c7106
VZ
11775#include "confdefs.h"
11776/* Override any gcc2 internal prototype to avoid an error. */
11777/* We use char because int might match the return type of a gcc2
11778 builtin and then its argument prototype would still apply. */
11779char inet_addr();
11780
11781int main() {
11782inet_addr()
11783; return 0; }
11784EOF
b64f0a5f 11785if { (eval echo configure:11786: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
c63c7106
VZ
11786 rm -rf conftest*
11787 eval "ac_cv_lib_$ac_lib_var=yes"
11788else
11789 echo "configure: failed program was:" >&5
11790 cat conftest.$ac_ext >&5
11791 rm -rf conftest*
11792 eval "ac_cv_lib_$ac_lib_var=no"
11793fi
11794rm -f conftest*
11795LIBS="$ac_save_LIBS"
11796
11797fi
11798if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11799 echo "$ac_t""yes" 1>&6
11800 INET_LINK="resolv"
11801
11802else
11803 echo "$ac_t""no" 1>&6
11804fi
11805
11806
11807fi
11808
11809
11810
10f2d63a
VZ
11811fi
11812done
11813
c63c7106 11814
10f2d63a
VZ
11815for ac_func in inet_aton
11816do
11817echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
b64f0a5f 11818echo "configure:11819: checking for $ac_func" >&5
10f2d63a
VZ
11819if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11820 echo $ac_n "(cached) $ac_c" 1>&6
11821else
11822 cat > conftest.$ac_ext <<EOF
b64f0a5f 11823#line 11824 "configure"
10f2d63a
VZ
11824#include "confdefs.h"
11825/* System header to define __stub macros and hopefully few prototypes,
11826 which can conflict with char $ac_func(); below. */
11827#include <assert.h>
11828/* Override any gcc2 internal prototype to avoid an error. */
11829/* We use char because int might match the return type of a gcc2
11830 builtin and then its argument prototype would still apply. */
11831char $ac_func();
11832
11833int main() {
11834
11835/* The GNU C library defines this for functions which it implements
11836 to always fail with ENOSYS. Some functions are actually named
11837 something starting with __ and the normal name is an alias. */
11838#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11839choke me
11840#else
e8482f24 11841$ac_func();
10f2d63a
VZ
11842#endif
11843
11844; return 0; }
11845EOF
b64f0a5f 11846if { (eval echo configure:11847: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
11847 rm -rf conftest*
11848 eval "ac_cv_func_$ac_func=yes"
11849else
11850 echo "configure: failed program was:" >&5
11851 cat conftest.$ac_ext >&5
11852 rm -rf conftest*
11853 eval "ac_cv_func_$ac_func=no"
11854fi
11855rm -f conftest*
11856fi
11857
11858if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11859 echo "$ac_t""yes" 1>&6
11860 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11861 cat >> confdefs.h <<EOF
11862#define $ac_tr_func 1
11863EOF
c63c7106
VZ
11864 cat >> confdefs.h <<\EOF
11865#define HAVE_INET_ATON 1
11866EOF
11867
10f2d63a
VZ
11868else
11869 echo "$ac_t""no" 1>&6
c63c7106 11870 echo $ac_n "checking for inet_aton in -l$INET_LINK""... $ac_c" 1>&6
b64f0a5f 11871echo "configure:11872: checking for inet_aton in -l$INET_LINK" >&5
c63c7106 11872ac_lib_var=`echo $INET_LINK'_'inet_aton | sed 'y%./+-%__p_%'`
10f2d63a
VZ
11873if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11874 echo $ac_n "(cached) $ac_c" 1>&6
11875else
11876 ac_save_LIBS="$LIBS"
c63c7106 11877LIBS="-l$INET_LINK $LIBS"
10f2d63a 11878cat > conftest.$ac_ext <<EOF
b64f0a5f 11879#line 11880 "configure"
10f2d63a
VZ
11880#include "confdefs.h"
11881/* Override any gcc2 internal prototype to avoid an error. */
11882/* We use char because int might match the return type of a gcc2
11883 builtin and then its argument prototype would still apply. */
11884char inet_aton();
11885
11886int main() {
11887inet_aton()
11888; return 0; }
11889EOF
b64f0a5f 11890if { (eval echo configure:11891: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
11891 rm -rf conftest*
11892 eval "ac_cv_lib_$ac_lib_var=yes"
11893else
11894 echo "configure: failed program was:" >&5
11895 cat conftest.$ac_ext >&5
11896 rm -rf conftest*
11897 eval "ac_cv_lib_$ac_lib_var=no"
11898fi
11899rm -f conftest*
11900LIBS="$ac_save_LIBS"
11901
11902fi
11903if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11904 echo "$ac_t""yes" 1>&6
c63c7106
VZ
11905 cat >> confdefs.h <<\EOF
11906#define HAVE_INET_ATON 1
10f2d63a
VZ
11907EOF
11908
10f2d63a
VZ
11909else
11910 echo "$ac_t""no" 1>&6
11911fi
11912
c63c7106
VZ
11913
11914fi
11915done
11916
11917
11918if test "x$INET_LINK" != "x"; then
11919 cat >> confdefs.h <<\EOF
11920#define HAVE_INET_ADDR 1
11921EOF
11922
11923 INET_LINK="-l$INET_LINK"
11924fi
10f2d63a
VZ
11925
11926fi
11927
11928
11929cat > confcache <<\EOF
11930# This file is a shell script that caches the results of configure
11931# tests run on this system so they can be shared between configure
11932# scripts and configure runs. It is not useful on other systems.
11933# If it contains results you don't want to keep, you may remove or edit it.
11934#
11935# By default, configure uses ./config.cache as the cache file,
11936# creating it if it does not exist already. You can give configure
11937# the --cache-file=FILE option to use a different cache file; that is
11938# what configure does when it calls configure scripts in
11939# subdirectories, so they share the cache.
11940# Giving --cache-file=/dev/null disables caching, for debugging configure.
11941# config.status only pays attention to the cache file if you give it the
11942# --recheck option to rerun configure.
11943#
11944EOF
11945# The following way of writing the cache mishandles newlines in values,
11946# but we know of no workaround that is simple, portable, and efficient.
11947# So, don't put newlines in cache variables' values.
11948# Ultrix sh set writes to stderr and can't be redirected directly,
11949# and sets the high bit in the cache file unless we assign to the vars.
11950(set) 2>&1 |
11951 case `(ac_space=' '; set | grep ac_space) 2>&1` in
11952 *ac_space=\ *)
11953 # `set' does not quote correctly, so add quotes (double-quote substitution
11954 # turns \\\\ into \\, and sed turns \\ into \).
11955 sed -n \
11956 -e "s/'/'\\\\''/g" \
11957 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
11958 ;;
11959 *)
11960 # `set' quotes correctly as required by POSIX, so do not add quotes.
11961 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
11962 ;;
11963 esac >> confcache
11964if cmp -s $cache_file confcache; then
11965 :
11966else
11967 if test -w $cache_file; then
11968 echo "updating cache $cache_file"
11969 cat confcache > $cache_file
11970 else
11971 echo "not updating unwritable cache $cache_file"
11972 fi
11973fi
11974rm -f confcache
11975
11976
11977
b089607b 11978if test "$TOOLKIT" != "MSW"; then
10f2d63a
VZ
11979
11980
11981THREADS_LINK=""
11982THREADS_OBJ=""
11983
11984if test "$wxUSE_THREADS" = "yes" ; then
11985 if test "$wxUSE_WINE" = 1 ; then
11986 echo "configure: warning: Threads are not supported under WINE" 1>&2
11987 wxUSE_THREADS="no"
b12915c1
VZ
11988 elif test "$USE_BEOS" = 1; then
11989 echo "configure: warning: BeOS threads are not yet supported" 1>&2
11990 wxUSE_THREADS="no"
10f2d63a
VZ
11991 fi
11992fi
11993
11994if test "$wxUSE_THREADS" = "yes" ; then
11995
186837b0 11996 if test "$USE_AIX" = 1; then
f6bcfd97
BP
11997 THREADS_LIB=pthreads
11998 else
11999 THREADS_LIB=pthread
12000 fi
12001
12002 echo $ac_n "checking for pthread_create in -l$THREADS_LIB""... $ac_c" 1>&6
b64f0a5f 12003echo "configure:12004: checking for pthread_create in -l$THREADS_LIB" >&5
f6bcfd97 12004ac_lib_var=`echo $THREADS_LIB'_'pthread_create | sed 'y%./+-%__p_%'`
10f2d63a
VZ
12005if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12006 echo $ac_n "(cached) $ac_c" 1>&6
12007else
12008 ac_save_LIBS="$LIBS"
f6bcfd97 12009LIBS="-l$THREADS_LIB $LIBS"
10f2d63a 12010cat > conftest.$ac_ext <<EOF
b64f0a5f 12011#line 12012 "configure"
10f2d63a
VZ
12012#include "confdefs.h"
12013/* Override any gcc2 internal prototype to avoid an error. */
12014/* We use char because int might match the return type of a gcc2
12015 builtin and then its argument prototype would still apply. */
12016char pthread_create();
12017
12018int main() {
12019pthread_create()
12020; return 0; }
12021EOF
b64f0a5f 12022if { (eval echo configure:12023: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
12023 rm -rf conftest*
12024 eval "ac_cv_lib_$ac_lib_var=yes"
12025else
12026 echo "configure: failed program was:" >&5
12027 cat conftest.$ac_ext >&5
12028 rm -rf conftest*
12029 eval "ac_cv_lib_$ac_lib_var=no"
12030fi
12031rm -f conftest*
12032LIBS="$ac_save_LIBS"
12033
12034fi
12035if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12036 echo "$ac_t""yes" 1>&6
12037
12038 THREADS_OBJ="threadpsx.lo"
f6bcfd97 12039 THREADS_LINK=$THREADS_LIB
10f2d63a
VZ
12040
12041else
12042 echo "$ac_t""no" 1>&6
12043
12044 echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6
b64f0a5f 12045echo "configure:12046: checking for pthread_create in -lc_r" >&5
10f2d63a
VZ
12046ac_lib_var=`echo c_r'_'pthread_create | sed 'y%./+-%__p_%'`
12047if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12048 echo $ac_n "(cached) $ac_c" 1>&6
12049else
12050 ac_save_LIBS="$LIBS"
12051LIBS="-lc_r $LIBS"
12052cat > conftest.$ac_ext <<EOF
b64f0a5f 12053#line 12054 "configure"
10f2d63a
VZ
12054#include "confdefs.h"
12055/* Override any gcc2 internal prototype to avoid an error. */
12056/* We use char because int might match the return type of a gcc2
12057 builtin and then its argument prototype would still apply. */
12058char pthread_create();
12059
12060int main() {
12061pthread_create()
12062; return 0; }
12063EOF
b64f0a5f 12064if { (eval echo configure:12065: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
12065 rm -rf conftest*
12066 eval "ac_cv_lib_$ac_lib_var=yes"
12067else
12068 echo "configure: failed program was:" >&5
12069 cat conftest.$ac_ext >&5
12070 rm -rf conftest*
12071 eval "ac_cv_lib_$ac_lib_var=no"
12072fi
12073rm -f conftest*
12074LIBS="$ac_save_LIBS"
12075
12076fi
12077if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12078 echo "$ac_t""yes" 1>&6
12079
12080 THREADS_OBJ="threadpsx.lo"
12081 THREADS_LINK="c_r"
12082
12083else
12084 echo "$ac_t""no" 1>&6
12085
b4085ce6 12086 echo $ac_n "checking for pthread_create in -lcc_dynamic""... $ac_c" 1>&6
b64f0a5f 12087echo "configure:12088: checking for pthread_create in -lcc_dynamic" >&5
b4085ce6
GD
12088ac_lib_var=`echo cc_dynamic'_'pthread_create | sed 'y%./+-%__p_%'`
12089if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12090 echo $ac_n "(cached) $ac_c" 1>&6
12091else
12092 ac_save_LIBS="$LIBS"
12093LIBS="-lcc_dynamic $LIBS"
12094cat > conftest.$ac_ext <<EOF
b64f0a5f 12095#line 12096 "configure"
b4085ce6
GD
12096#include "confdefs.h"
12097/* Override any gcc2 internal prototype to avoid an error. */
12098/* We use char because int might match the return type of a gcc2
12099 builtin and then its argument prototype would still apply. */
12100char pthread_create();
12101
12102int main() {
12103pthread_create()
12104; return 0; }
12105EOF
b64f0a5f 12106if { (eval echo configure:12107: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
b4085ce6
GD
12107 rm -rf conftest*
12108 eval "ac_cv_lib_$ac_lib_var=yes"
12109else
12110 echo "configure: failed program was:" >&5
12111 cat conftest.$ac_ext >&5
12112 rm -rf conftest*
12113 eval "ac_cv_lib_$ac_lib_var=no"
12114fi
12115rm -f conftest*
12116LIBS="$ac_save_LIBS"
12117
12118fi
12119if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12120 echo "$ac_t""yes" 1>&6
12121
12122 THREADS_OBJ="threadpsx.lo"
12123 THREADS_LINK="cc_dynamic"
12124
12125else
12126 echo "$ac_t""no" 1>&6
12127
12128 ac_safe=`echo "sys/prctl.h" | sed 'y%./+-%__p_%'`
10f2d63a 12129echo $ac_n "checking for sys/prctl.h""... $ac_c" 1>&6
b64f0a5f 12130echo "configure:12131: checking for sys/prctl.h" >&5
10f2d63a
VZ
12131if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12132 echo $ac_n "(cached) $ac_c" 1>&6
12133else
12134 cat > conftest.$ac_ext <<EOF
b64f0a5f 12135#line 12136 "configure"
10f2d63a
VZ
12136#include "confdefs.h"
12137#include <sys/prctl.h>
12138EOF
12139ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
b64f0a5f 12140{ (eval echo configure:12141: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
12141ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12142if test -z "$ac_err"; then
12143 rm -rf conftest*
12144 eval "ac_cv_header_$ac_safe=yes"
12145else
12146 echo "$ac_err" >&5
12147 echo "configure: failed program was:" >&5
12148 cat conftest.$ac_ext >&5
12149 rm -rf conftest*
12150 eval "ac_cv_header_$ac_safe=no"
12151fi
12152rm -f conftest*
12153fi
12154if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12155 echo "$ac_t""yes" 1>&6
12156
b4085ce6
GD
12157 THREADS_OBJ="threadsgi.lo"
12158
10f2d63a
VZ
12159else
12160 echo "$ac_t""no" 1>&6
12161fi
12162
b4085ce6
GD
12163
12164fi
12165
10f2d63a
VZ
12166
12167fi
12168
12169
12170fi
12171
12172
12173 if test -z "$THREADS_OBJ" ; then
12174 wxUSE_THREADS=no
12175 echo "configure: warning: No thread support on this system" 1>&2
12176 fi
12177fi
12178
12179if test "$wxUSE_THREADS" = "yes" ; then
70846f0a
VZ
12180 for ac_func in thr_setconcurrency
12181do
12182echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
b64f0a5f 12183echo "configure:12184: checking for $ac_func" >&5
70846f0a
VZ
12184if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12185 echo $ac_n "(cached) $ac_c" 1>&6
12186else
12187 cat > conftest.$ac_ext <<EOF
b64f0a5f 12188#line 12189 "configure"
70846f0a
VZ
12189#include "confdefs.h"
12190/* System header to define __stub macros and hopefully few prototypes,
12191 which can conflict with char $ac_func(); below. */
12192#include <assert.h>
12193/* Override any gcc2 internal prototype to avoid an error. */
12194/* We use char because int might match the return type of a gcc2
12195 builtin and then its argument prototype would still apply. */
12196char $ac_func();
12197
12198int main() {
12199
12200/* The GNU C library defines this for functions which it implements
12201 to always fail with ENOSYS. Some functions are actually named
12202 something starting with __ and the normal name is an alias. */
12203#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12204choke me
12205#else
e8482f24 12206$ac_func();
70846f0a
VZ
12207#endif
12208
12209; return 0; }
12210EOF
b64f0a5f 12211if { (eval echo configure:12212: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
70846f0a
VZ
12212 rm -rf conftest*
12213 eval "ac_cv_func_$ac_func=yes"
12214else
12215 echo "configure: failed program was:" >&5
12216 cat conftest.$ac_ext >&5
12217 rm -rf conftest*
12218 eval "ac_cv_func_$ac_func=no"
12219fi
12220rm -f conftest*
12221fi
12222
12223if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12224 echo "$ac_t""yes" 1>&6
12225 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12226 cat >> confdefs.h <<EOF
12227#define $ac_tr_func 1
12228EOF
12229
12230else
12231 echo "$ac_t""no" 1>&6
12232fi
12233done
12234
12235
10f2d63a
VZ
12236
12237 for ac_hdr in sched.h
12238do
12239ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12240echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
b64f0a5f 12241echo "configure:12242: checking for $ac_hdr" >&5
10f2d63a
VZ
12242if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12243 echo $ac_n "(cached) $ac_c" 1>&6
12244else
12245 cat > conftest.$ac_ext <<EOF
b64f0a5f 12246#line 12247 "configure"
10f2d63a
VZ
12247#include "confdefs.h"
12248#include <$ac_hdr>
12249EOF
12250ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
b64f0a5f 12251{ (eval echo configure:12252: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
12252ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12253if test -z "$ac_err"; then
12254 rm -rf conftest*
12255 eval "ac_cv_header_$ac_safe=yes"
12256else
12257 echo "$ac_err" >&5
12258 echo "configure: failed program was:" >&5
12259 cat conftest.$ac_ext >&5
12260 rm -rf conftest*
12261 eval "ac_cv_header_$ac_safe=no"
12262fi
12263rm -f conftest*
12264fi
12265if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12266 echo "$ac_t""yes" 1>&6
12267 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12268 cat >> confdefs.h <<EOF
12269#define $ac_tr_hdr 1
12270EOF
12271
12272else
12273 echo "$ac_t""no" 1>&6
12274fi
12275done
12276
12277
12278 echo $ac_n "checking for sched_yield in -l$THREADS_LINK""... $ac_c" 1>&6
b64f0a5f 12279echo "configure:12280: checking for sched_yield in -l$THREADS_LINK" >&5
10f2d63a
VZ
12280ac_lib_var=`echo $THREADS_LINK'_'sched_yield | sed 'y%./+-%__p_%'`
12281if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12282 echo $ac_n "(cached) $ac_c" 1>&6
12283else
12284 ac_save_LIBS="$LIBS"
12285LIBS="-l$THREADS_LINK $LIBS"
12286cat > conftest.$ac_ext <<EOF
b64f0a5f 12287#line 12288 "configure"
10f2d63a
VZ
12288#include "confdefs.h"
12289/* Override any gcc2 internal prototype to avoid an error. */
12290/* We use char because int might match the return type of a gcc2
12291 builtin and then its argument prototype would still apply. */
12292char sched_yield();
12293
12294int main() {
12295sched_yield()
12296; return 0; }
12297EOF
b64f0a5f 12298if { (eval echo configure:12299: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
12299 rm -rf conftest*
12300 eval "ac_cv_lib_$ac_lib_var=yes"
12301else
12302 echo "configure: failed program was:" >&5
12303 cat conftest.$ac_ext >&5
12304 rm -rf conftest*
12305 eval "ac_cv_lib_$ac_lib_var=no"
12306fi
12307rm -f conftest*
12308LIBS="$ac_save_LIBS"
12309
12310fi
12311if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12312 echo "$ac_t""yes" 1>&6
12313 cat >> confdefs.h <<\EOF
12314#define HAVE_SCHED_YIELD 1
12315EOF
12316
12317else
12318 echo "$ac_t""no" 1>&6
12319echo $ac_n "checking for sched_yield in -l"posix4"""... $ac_c" 1>&6
b64f0a5f 12320echo "configure:12321: checking for sched_yield in -l"posix4"" >&5
10f2d63a
VZ
12321ac_lib_var=`echo "posix4"'_'sched_yield | 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"posix4" $LIBS"
12327cat > conftest.$ac_ext <<EOF
b64f0a5f 12328#line 12329 "configure"
10f2d63a
VZ
12329#include "confdefs.h"
12330/* Override any gcc2 internal prototype to avoid an error. */
12331/* We use char because int might match the return type of a gcc2
12332 builtin and then its argument prototype would still apply. */
12333char sched_yield();
12334
12335int main() {
12336sched_yield()
12337; return 0; }
12338EOF
b64f0a5f 12339if { (eval echo configure:12340: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
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"
12350
12351fi
12352if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12353 echo "$ac_t""yes" 1>&6
12354 cat >> confdefs.h <<\EOF
12355#define HAVE_SCHED_YIELD 1
12356EOF
12357 POSIX4_LINK="-lposix4"
12358else
12359 echo "$ac_t""no" 1>&6
12360echo "configure: warning: wxThread::Yield will not work properly" 1>&2
12361
12362fi
12363
12364
12365fi
12366
12367
f6bcfd97
BP
12368 HAVE_PRIOR_FUNCS=0
12369 echo $ac_n "checking for pthread_attr_getschedpolicy in -l$THREADS_LINK""... $ac_c" 1>&6
b64f0a5f 12370echo "configure:12371: checking for pthread_attr_getschedpolicy in -l$THREADS_LINK" >&5
10f2d63a
VZ
12371ac_lib_var=`echo $THREADS_LINK'_'pthread_attr_getschedpolicy | sed 'y%./+-%__p_%'`
12372if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12373 echo $ac_n "(cached) $ac_c" 1>&6
12374else
12375 ac_save_LIBS="$LIBS"
12376LIBS="-l$THREADS_LINK $LIBS"
12377cat > conftest.$ac_ext <<EOF
b64f0a5f 12378#line 12379 "configure"
10f2d63a
VZ
12379#include "confdefs.h"
12380/* Override any gcc2 internal prototype to avoid an error. */
12381/* We use char because int might match the return type of a gcc2
12382 builtin and then its argument prototype would still apply. */
12383char pthread_attr_getschedpolicy();
12384
12385int main() {
12386pthread_attr_getschedpolicy()
12387; return 0; }
12388EOF
b64f0a5f 12389if { (eval echo configure:12390: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
12390 rm -rf conftest*
12391 eval "ac_cv_lib_$ac_lib_var=yes"
12392else
12393 echo "configure: failed program was:" >&5
12394 cat conftest.$ac_ext >&5
12395 rm -rf conftest*
12396 eval "ac_cv_lib_$ac_lib_var=no"
12397fi
12398rm -f conftest*
12399LIBS="$ac_save_LIBS"
12400
12401fi
12402if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12403 echo "$ac_t""yes" 1>&6
f6bcfd97 12404 echo $ac_n "checking for pthread_attr_setschedparam in -l$THREADS_LINK""... $ac_c" 1>&6
b64f0a5f 12405echo "configure:12406: checking for pthread_attr_setschedparam in -l$THREADS_LINK" >&5
f6bcfd97
BP
12406ac_lib_var=`echo $THREADS_LINK'_'pthread_attr_setschedparam | sed 'y%./+-%__p_%'`
12407if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12408 echo $ac_n "(cached) $ac_c" 1>&6
12409else
12410 ac_save_LIBS="$LIBS"
12411LIBS="-l$THREADS_LINK $LIBS"
12412cat > conftest.$ac_ext <<EOF
b64f0a5f 12413#line 12414 "configure"
f6bcfd97
BP
12414#include "confdefs.h"
12415/* Override any gcc2 internal prototype to avoid an error. */
12416/* We use char because int might match the return type of a gcc2
12417 builtin and then its argument prototype would still apply. */
12418char pthread_attr_setschedparam();
12419
12420int main() {
12421pthread_attr_setschedparam()
12422; return 0; }
10f2d63a 12423EOF
b64f0a5f 12424if { (eval echo configure:12425: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
f6bcfd97
BP
12425 rm -rf conftest*
12426 eval "ac_cv_lib_$ac_lib_var=yes"
12427else
12428 echo "configure: failed program was:" >&5
12429 cat conftest.$ac_ext >&5
12430 rm -rf conftest*
12431 eval "ac_cv_lib_$ac_lib_var=no"
12432fi
12433rm -f conftest*
12434LIBS="$ac_save_LIBS"
10f2d63a 12435
f6bcfd97
BP
12436fi
12437if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12438 echo "$ac_t""yes" 1>&6
12439 echo $ac_n "checking for sched_get_priority_max in -l$THREADS_LINK""... $ac_c" 1>&6
b64f0a5f 12440echo "configure:12441: checking for sched_get_priority_max in -l$THREADS_LINK" >&5
f6bcfd97
BP
12441ac_lib_var=`echo $THREADS_LINK'_'sched_get_priority_max | sed 'y%./+-%__p_%'`
12442if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12443 echo $ac_n "(cached) $ac_c" 1>&6
12444else
12445 ac_save_LIBS="$LIBS"
12446LIBS="-l$THREADS_LINK $LIBS"
12447cat > conftest.$ac_ext <<EOF
b64f0a5f 12448#line 12449 "configure"
f6bcfd97
BP
12449#include "confdefs.h"
12450/* Override any gcc2 internal prototype to avoid an error. */
12451/* We use char because int might match the return type of a gcc2
12452 builtin and then its argument prototype would still apply. */
12453char sched_get_priority_max();
12454
12455int main() {
12456sched_get_priority_max()
12457; return 0; }
12458EOF
b64f0a5f 12459if { (eval echo configure:12460: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
f6bcfd97
BP
12460 rm -rf conftest*
12461 eval "ac_cv_lib_$ac_lib_var=yes"
12462else
12463 echo "configure: failed program was:" >&5
12464 cat conftest.$ac_ext >&5
12465 rm -rf conftest*
12466 eval "ac_cv_lib_$ac_lib_var=no"
12467fi
12468rm -f conftest*
12469LIBS="$ac_save_LIBS"
12470
12471fi
12472if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12473 echo "$ac_t""yes" 1>&6
12474 HAVE_PRIOR_FUNCS=1
10f2d63a
VZ
12475else
12476 echo "$ac_t""no" 1>&6
f6bcfd97 12477echo $ac_n "checking for sched_get_priority_max in -l"posix4"""... $ac_c" 1>&6
b64f0a5f 12478echo "configure:12479: checking for sched_get_priority_max in -l"posix4"" >&5
f6bcfd97 12479ac_lib_var=`echo "posix4"'_'sched_get_priority_max | sed 'y%./+-%__p_%'`
10f2d63a
VZ
12480if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12481 echo $ac_n "(cached) $ac_c" 1>&6
12482else
12483 ac_save_LIBS="$LIBS"
12484LIBS="-l"posix4" $LIBS"
12485cat > conftest.$ac_ext <<EOF
b64f0a5f 12486#line 12487 "configure"
10f2d63a
VZ
12487#include "confdefs.h"
12488/* Override any gcc2 internal prototype to avoid an error. */
12489/* We use char because int might match the return type of a gcc2
12490 builtin and then its argument prototype would still apply. */
f6bcfd97 12491char sched_get_priority_max();
10f2d63a
VZ
12492
12493int main() {
f6bcfd97 12494sched_get_priority_max()
10f2d63a
VZ
12495; return 0; }
12496EOF
b64f0a5f 12497if { (eval echo configure:12498: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
12498 rm -rf conftest*
12499 eval "ac_cv_lib_$ac_lib_var=yes"
12500else
12501 echo "configure: failed program was:" >&5
12502 cat conftest.$ac_ext >&5
12503 rm -rf conftest*
12504 eval "ac_cv_lib_$ac_lib_var=no"
12505fi
12506rm -f conftest*
12507LIBS="$ac_save_LIBS"
12508
12509fi
12510if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12511 echo "$ac_t""yes" 1>&6
f6bcfd97
BP
12512
12513 HAVE_PRIOR_FUNCS=1
12514 POSIX4_LINK="-lposix4"
12515
12516else
12517 echo "$ac_t""no" 1>&6
12518fi
12519
12520
12521fi
12522
12523
10f2d63a
VZ
12524else
12525 echo "$ac_t""no" 1>&6
10f2d63a
VZ
12526fi
12527
12528
f6bcfd97
BP
12529else
12530 echo "$ac_t""no" 1>&6
10f2d63a
VZ
12531fi
12532
12533
f6bcfd97
BP
12534 if test "$HAVE_PRIOR_FUNCS" = 1; then
12535 cat >> confdefs.h <<\EOF
12536#define HAVE_THREAD_PRIORITY_FUNCTIONS 1
12537EOF
12538
12539 else
12540 echo "configure: warning: Setting thread priority will not work" 1>&2
12541 fi
12542
10f2d63a 12543 echo $ac_n "checking for pthread_cancel in -l$THREADS_LINK""... $ac_c" 1>&6
b64f0a5f 12544echo "configure:12545: checking for pthread_cancel in -l$THREADS_LINK" >&5
10f2d63a
VZ
12545ac_lib_var=`echo $THREADS_LINK'_'pthread_cancel | sed 'y%./+-%__p_%'`
12546if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12547 echo $ac_n "(cached) $ac_c" 1>&6
12548else
12549 ac_save_LIBS="$LIBS"
12550LIBS="-l$THREADS_LINK $LIBS"
12551cat > conftest.$ac_ext <<EOF
b64f0a5f 12552#line 12553 "configure"
10f2d63a
VZ
12553#include "confdefs.h"
12554/* Override any gcc2 internal prototype to avoid an error. */
12555/* We use char because int might match the return type of a gcc2
12556 builtin and then its argument prototype would still apply. */
12557char pthread_cancel();
12558
12559int main() {
12560pthread_cancel()
12561; return 0; }
12562EOF
b64f0a5f 12563if { (eval echo configure:12564: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
12564 rm -rf conftest*
12565 eval "ac_cv_lib_$ac_lib_var=yes"
12566else
12567 echo "configure: failed program was:" >&5
12568 cat conftest.$ac_ext >&5
12569 rm -rf conftest*
12570 eval "ac_cv_lib_$ac_lib_var=no"
12571fi
12572rm -f conftest*
12573LIBS="$ac_save_LIBS"
12574
12575fi
12576if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12577 echo "$ac_t""yes" 1>&6
12578 cat >> confdefs.h <<\EOF
12579#define HAVE_PTHREAD_CANCEL 1
12580EOF
12581
12582else
12583 echo "$ac_t""no" 1>&6
12584echo "configure: warning: wxThread::Kill() will not work properly" 1>&2
12585fi
12586
12587
12588 echo $ac_n "checking for pthread_cleanup_push/pop""... $ac_c" 1>&6
b64f0a5f 12589echo "configure:12590: checking for pthread_cleanup_push/pop" >&5
10f2d63a
VZ
12590if eval "test \"`echo '$''{'wx_cv_func_pthread_cleanup_push'+set}'`\" = set"; then
12591 echo $ac_n "(cached) $ac_c" 1>&6
12592else
12593
12594 cat > conftest.$ac_ext <<EOF
b64f0a5f 12595#line 12596 "configure"
10f2d63a
VZ
12596#include "confdefs.h"
12597#include <pthread.h>
12598int main() {
12599
12600 pthread_cleanup_push(NULL, NULL);
12601 pthread_cleanup_pop(0);
12602
12603; return 0; }
12604EOF
b64f0a5f 12605if { (eval echo configure:12606: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10f2d63a
VZ
12606 rm -rf conftest*
12607
12608 wx_cv_func_pthread_cleanup_push=yes
12609 cat >> confdefs.h <<\EOF
12610#define HAVE_THREAD_CLEANUP_FUNCTIONS 1
12611EOF
12612
12613
12614else
12615 echo "configure: failed program was:" >&5
12616 cat conftest.$ac_ext >&5
12617 rm -rf conftest*
12618
12619 wx_cv_func_pthread_cleanup_push=no
12620
12621fi
12622rm -f conftest*
12623
12624fi
12625
12626echo "$ac_t""$wx_cv_func_pthread_cleanup_push" 1>&6
12627
12628 THREADS_LINK="-l$THREADS_LINK"
186837b0
VZ
12629
12630 if test "$USE_SOLARIS" = "yes" -a "$GCC" != "yes"; then
12631 CFLAGS="${CFLAGS} -mt"
12632 CXXFLAGS="${CXXFLAGS} -mt"
12633 LDFLAGS="${LDFLAGS} -mt"
12634 fi
10f2d63a
VZ
12635fi
12636
12637fi
12638
12639if test "$wxUSE_THREADS" = "yes"; then
12640 cat >> confdefs.h <<\EOF
12641#define wxUSE_THREADS 1
12642EOF
12643
12644
12645 CFLAGS="${CFLAGS} -D_REENTRANT"
12646 CXXFLAGS="${CXXFLAGS} -D_REENTRANT"
12647
12648 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
12649else
12650 if test "$ac_cv_func_strtok_r" = "yes"; then
ab9b9eab 12651 echo $ac_n "checking if -D_REENTRANT is needed""... $ac_c" 1>&6
b64f0a5f 12652echo "configure:12653: checking if -D_REENTRANT is needed" >&5
ab9b9eab
VZ
12653 if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
12654 CFLAGS="${CFLAGS} -D_REENTRANT"
12655 CXXFLAGS="${CXXFLAGS} -D_REENTRANT"
12656 echo "$ac_t""yes" 1>&6
12657 else
12658 echo "$ac_t""no" 1>&6
10f2d63a
VZ
12659 fi
12660 fi
12661fi
12662
6f72b082 12663if test "$WXGTK20" = 1 ; then
13111b2a 12664 cat >> confdefs.h <<EOF
6f72b082 12665#define __WXGTK20__ $WXGTK20
13111b2a
VZ
12666EOF
12667
12668 WXGTK12=1
12669fi
12670
10f2d63a
VZ
12671if test "$WXGTK12" = 1 ; then
12672 cat >> confdefs.h <<EOF
12673#define __WXGTK12__ $WXGTK12
12674EOF
12675
12676fi
12677
f6bcfd97
BP
12678if test "$WXGTK127" = 1 ; then
12679 cat >> confdefs.h <<EOF
12680#define __WXGTK127__ $WXGTK127
12681EOF
12682
12683fi
12684
10f2d63a
VZ
12685if test "$WXWINE" = 1 ; then
12686 TOOLKIT_DEF="${TOOLKIT_DEF} -D__WXWINE__"
12687fi
12688
b4085ce6
GD
12689if test "$wxUSE_MAC" = 1 ; then
12690 TOOLKIT_DEF="${TOOLKIT_DEF} -D__UNIX__ -DTARGET_CARBON"
12691 TOOLKIT_INCLUDE="${TOOLKIT_INCLUDE}"
12692fi
12693
10f2d63a
VZ
12694if test "$wxUSE_CYGWIN" = 1 ; then
12695 TOOLKIT_DEF="${TOOLKIT_DEF} -D__WIN95__"
12696fi
12697
12698WXDEBUG=
12699
12700if test "$wxUSE_DEBUG_INFO" = "yes" ; then
12701 WXDEBUG="-g"
12702 wxUSE_OPTIMISE=no
12703fi
12704
12705if test "$wxUSE_DEBUG_GDB" = "yes" ; then
12706 wxUSE_DEBUG_INFO=yes
12707 WXDEBUG="-ggdb"
12708fi
12709
12710if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
12711 cat >> confdefs.h <<\EOF
12712#define WXDEBUG 1
12713EOF
12714
12715 WXDEBUG_DEFINE="-D__WXDEBUG__"
12716else
12717 if test "$wxUSE_GTK" = 1 ; then
12718 WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS"
12719 fi
12720fi
12721
12722if test "$wxUSE_MEM_TRACING" = "yes" ; then
12723 cat >> confdefs.h <<\EOF
12724#define wxUSE_MEMORY_TRACING 1
12725EOF
12726
12727 cat >> confdefs.h <<\EOF
12728#define wxUSE_GLOBAL_MEMORY_OPERATORS 1
47c13eb7
VS
12729EOF
12730
12731 cat >> confdefs.h <<\EOF
12732#define wxUSE_DEBUG_NEW_ALWAYS 1
10f2d63a
VZ
12733EOF
12734
12735 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
12736fi
12737
12738if test "$wxUSE_DMALLOC" = "yes" ; then
12739 DMALLOC_LINK="-ldmalloc"
12740fi
12741
12742PROFILE=
12743if test "$wxUSE_PROFILE" = "yes" ; then
12744 PROFILE="-pg"
12745fi
12746
12747DEP_INFO_FLAGS=
caa2c79b 12748CODE_GEN_FLAGS=
10f2d63a
VZ
12749if test "$GCC" = yes ; then
12750 if test "$wxUSE_NO_RTTI" = "yes" ; then
caa2c79b 12751 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fno-rtti"
10f2d63a
VZ
12752 fi
12753 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
caa2c79b 12754 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fno-exceptions"
10f2d63a
VZ
12755 fi
12756 if test "$wxUSE_PERMISSIVE" = "yes" ; then
caa2c79b 12757 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive"
10f2d63a
VZ
12758 fi
12759 if test "$wxUSE_NO_DEPS" = "no" ; then
12760 DEP_INFO_FLAGS="-MMD"
12761 fi
12762fi
12763
12764
12765CXXFLAGS=`echo "${CXXFLAGS}" | sed "s/\-O.//g" `
12766CFLAGS=`echo "${CFLAGS}" | sed "s/\-O.//g" `
12767if test "$wxUSE_OPTIMISE" = "no" ; then
12768 OPTIMISE=
12769else
12770 if test "$GCC" = yes ; then
12771 OPTIMISE="-O2"
12772 case "${host}" in
12773 i586-*-*|i686-*-* )
12774 OPTIMISE="${OPTIMISE} "
12775 ;;
12776 esac
12777 else
12778 OPTIMISE="-O"
12779 fi
12780fi
12781
12782
12783ZLIB_INCLUDE=
422107f9 12784if test "$wxUSE_ZLIB" = "yes" -o "$wxUSE_ZLIB" = "sys" ; then
10f2d63a
VZ
12785 cat >> confdefs.h <<\EOF
12786#define wxUSE_ZLIB 1
12787EOF
12788
422107f9
VZ
12789 if test "$wxUSE_ZLIB" = "yes" ; then
12790 ZLIB_INCLUDE="-I\${top_srcdir}/src/zlib"
12791 else
12792 ZLIB_LINK=
12793 ac_safe=`echo "zlib.h" | sed 'y%./+-%__p_%'`
12794echo $ac_n "checking for zlib.h""... $ac_c" 1>&6
b64f0a5f 12795echo "configure:12796: checking for zlib.h" >&5
422107f9
VZ
12796if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12797 echo $ac_n "(cached) $ac_c" 1>&6
12798else
12799 cat > conftest.$ac_ext <<EOF
b64f0a5f 12800#line 12801 "configure"
422107f9
VZ
12801#include "confdefs.h"
12802#include <zlib.h>
12803EOF
12804ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
b64f0a5f 12805{ (eval echo configure:12806: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
422107f9
VZ
12806ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12807if test -z "$ac_err"; then
12808 rm -rf conftest*
12809 eval "ac_cv_header_$ac_safe=yes"
12810else
12811 echo "$ac_err" >&5
12812 echo "configure: failed program was:" >&5
12813 cat conftest.$ac_ext >&5
12814 rm -rf conftest*
12815 eval "ac_cv_header_$ac_safe=no"
12816fi
12817rm -f conftest*
12818fi
12819if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12820 echo "$ac_t""yes" 1>&6
12821 echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6
b64f0a5f 12822echo "configure:12823: checking for deflate in -lz" >&5
422107f9
VZ
12823ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'`
12824if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12825 echo $ac_n "(cached) $ac_c" 1>&6
12826else
12827 ac_save_LIBS="$LIBS"
12828LIBS="-lz $LIBS"
12829cat > conftest.$ac_ext <<EOF
b64f0a5f 12830#line 12831 "configure"
422107f9
VZ
12831#include "confdefs.h"
12832/* Override any gcc2 internal prototype to avoid an error. */
12833/* We use char because int might match the return type of a gcc2
12834 builtin and then its argument prototype would still apply. */
12835char deflate();
12836
12837int main() {
12838deflate()
12839; return 0; }
12840EOF
b64f0a5f 12841if { (eval echo configure:12842: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
422107f9
VZ
12842 rm -rf conftest*
12843 eval "ac_cv_lib_$ac_lib_var=yes"
12844else
12845 echo "configure: failed program was:" >&5
12846 cat conftest.$ac_ext >&5
12847 rm -rf conftest*
12848 eval "ac_cv_lib_$ac_lib_var=no"
12849fi
12850rm -f conftest*
12851LIBS="$ac_save_LIBS"
12852
12853fi
12854if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12855 echo "$ac_t""yes" 1>&6
12856 ZLIB_LINK="-lz"
12857else
12858 echo "$ac_t""no" 1>&6
12859fi
12860
12861else
12862 echo "$ac_t""no" 1>&6
12863fi
12864
12865 if test "x$ZLIB_LINK" = "x" ; then
12866 { echo "configure: error: system zlib compression library not found! Use --with-zlib=yes to use built-in zlib" 1>&2; exit 1; }
12867 fi
12868 fi
10f2d63a
VZ
12869fi
12870
12871PNG_INCLUDE=
422107f9 12872if test "$wxUSE_LIBPNG" = "yes" -o "$wxUSE_LIBPNG" = "sys" ; then
10f2d63a
VZ
12873 cat >> confdefs.h <<\EOF
12874#define wxUSE_LIBPNG 1
12875EOF
12876
41fd4136 12877 if test "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
422107f9
VZ
12878 echo "configure: warning: --with-libpng=sys doesn't work without --with-zlib=sys, will compile the built-in libpng instead" 1>&2
12879 wxUSE_LIBPNG=yes
12880 fi
12881
12882 if test "$wxUSE_LIBPNG" = "yes" ; then
12883 PNG_INCLUDE="-I\${top_srcdir}/src/png"
12884 else
12885 PNG_LINK=
12886 ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'`
12887echo $ac_n "checking for png.h""... $ac_c" 1>&6
b64f0a5f 12888echo "configure:12889: checking for png.h" >&5
422107f9
VZ
12889if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12890 echo $ac_n "(cached) $ac_c" 1>&6
12891else
12892 cat > conftest.$ac_ext <<EOF
b64f0a5f 12893#line 12894 "configure"
422107f9
VZ
12894#include "confdefs.h"
12895#include <png.h>
12896EOF
12897ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
b64f0a5f 12898{ (eval echo configure:12899: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
422107f9
VZ
12899ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12900if test -z "$ac_err"; then
12901 rm -rf conftest*
12902 eval "ac_cv_header_$ac_safe=yes"
12903else
12904 echo "$ac_err" >&5
12905 echo "configure: failed program was:" >&5
12906 cat conftest.$ac_ext >&5
12907 rm -rf conftest*
12908 eval "ac_cv_header_$ac_safe=no"
12909fi
12910rm -f conftest*
12911fi
12912if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12913 echo "$ac_t""yes" 1>&6
12914 echo $ac_n "checking for png_check_sig in -lpng""... $ac_c" 1>&6
b64f0a5f 12915echo "configure:12916: checking for png_check_sig in -lpng" >&5
422107f9
VZ
12916ac_lib_var=`echo png'_'png_check_sig | sed 'y%./+-%__p_%'`
12917if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12918 echo $ac_n "(cached) $ac_c" 1>&6
12919else
12920 ac_save_LIBS="$LIBS"
12921LIBS="-lpng -lz -lm $LIBS"
12922cat > conftest.$ac_ext <<EOF
b64f0a5f 12923#line 12924 "configure"
422107f9
VZ
12924#include "confdefs.h"
12925/* Override any gcc2 internal prototype to avoid an error. */
12926/* We use char because int might match the return type of a gcc2
12927 builtin and then its argument prototype would still apply. */
12928char png_check_sig();
12929
12930int main() {
12931png_check_sig()
12932; return 0; }
12933EOF
b64f0a5f 12934if { (eval echo configure:12935: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
422107f9
VZ
12935 rm -rf conftest*
12936 eval "ac_cv_lib_$ac_lib_var=yes"
12937else
12938 echo "configure: failed program was:" >&5
12939 cat conftest.$ac_ext >&5
12940 rm -rf conftest*
12941 eval "ac_cv_lib_$ac_lib_var=no"
12942fi
12943rm -f conftest*
12944LIBS="$ac_save_LIBS"
12945
12946fi
12947if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12948 echo "$ac_t""yes" 1>&6
12949 PNG_LINK="-lpng"
12950else
12951 echo "$ac_t""no" 1>&6
12952fi
12953
12954
12955else
12956 echo "$ac_t""no" 1>&6
12957fi
12958
12959 if test "x$PNG_LINK" = "x" ; then
0dcf9893 12960 { echo "configure: error: system png library not found! Use --with-libpng=yes to use the built-in libpng" 1>&2; exit 1; }
422107f9
VZ
12961 fi
12962 fi
12963
10f2d63a
VZ
12964 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
12965fi
12966
12967JPEG_INCLUDE=
422107f9 12968if test "$wxUSE_LIBJPEG" = "yes" -o "$wxUSE_LIBJPEG" = "sys" ; then
10f2d63a
VZ
12969 cat >> confdefs.h <<\EOF
12970#define wxUSE_LIBJPEG 1
12971EOF
12972
422107f9
VZ
12973 if test "$wxUSE_LIBJPEG" = "yes" ; then
12974 JPEG_INCLUDE="-I\${top_srcdir}/src/jpeg"
12975 else
12976 JPEG_LINK=
12977 ac_safe=`echo "jpeglib.h" | sed 'y%./+-%__p_%'`
12978echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6
b64f0a5f 12979echo "configure:12980: checking for jpeglib.h" >&5
422107f9
VZ
12980if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12981 echo $ac_n "(cached) $ac_c" 1>&6
12982else
12983 cat > conftest.$ac_ext <<EOF
b64f0a5f 12984#line 12985 "configure"
422107f9
VZ
12985#include "confdefs.h"
12986#include <jpeglib.h>
12987EOF
12988ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
b64f0a5f 12989{ (eval echo configure:12990: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
422107f9
VZ
12990ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12991if test -z "$ac_err"; then
12992 rm -rf conftest*
12993 eval "ac_cv_header_$ac_safe=yes"
12994else
12995 echo "$ac_err" >&5
12996 echo "configure: failed program was:" >&5
12997 cat conftest.$ac_ext >&5
12998 rm -rf conftest*
12999 eval "ac_cv_header_$ac_safe=no"
13000fi
13001rm -f conftest*
13002fi
13003if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13004 echo "$ac_t""yes" 1>&6
13005 echo $ac_n "checking for jpeg_read_header in -ljpeg""... $ac_c" 1>&6
b64f0a5f 13006echo "configure:13007: checking for jpeg_read_header in -ljpeg" >&5
422107f9
VZ
13007ac_lib_var=`echo jpeg'_'jpeg_read_header | sed 'y%./+-%__p_%'`
13008if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13009 echo $ac_n "(cached) $ac_c" 1>&6
13010else
13011 ac_save_LIBS="$LIBS"
13012LIBS="-ljpeg $LIBS"
13013cat > conftest.$ac_ext <<EOF
b64f0a5f 13014#line 13015 "configure"
422107f9
VZ
13015#include "confdefs.h"
13016/* Override any gcc2 internal prototype to avoid an error. */
13017/* We use char because int might match the return type of a gcc2
13018 builtin and then its argument prototype would still apply. */
13019char jpeg_read_header();
13020
13021int main() {
13022jpeg_read_header()
13023; return 0; }
13024EOF
b64f0a5f 13025if { (eval echo configure:13026: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
422107f9
VZ
13026 rm -rf conftest*
13027 eval "ac_cv_lib_$ac_lib_var=yes"
13028else
13029 echo "configure: failed program was:" >&5
13030 cat conftest.$ac_ext >&5
13031 rm -rf conftest*
13032 eval "ac_cv_lib_$ac_lib_var=no"
13033fi
13034rm -f conftest*
13035LIBS="$ac_save_LIBS"
13036
13037fi
13038if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13039 echo "$ac_t""yes" 1>&6
13040 JPEG_LINK="-ljpeg"
13041else
13042 echo "$ac_t""no" 1>&6
13043fi
13044
13045else
13046 echo "$ac_t""no" 1>&6
13047fi
13048
13049 if test "x$JPEG_LINK" = "x" ; then
0dcf9893 13050 { echo "configure: error: system jpeg library not found! Use --with-libjpeg=yes to use the built-in one" 1>&2; exit 1; }
422107f9
VZ
13051 fi
13052 fi
10f2d63a
VZ
13053fi
13054
c7a2bf27 13055TIFF_INCLUDE=
0dcf9893 13056if test "$wxUSE_LIBTIFF" = "yes" -o "$wxUSE_LIBTIFF" = "sys" ; then
c7a2bf27
RR
13057 cat >> confdefs.h <<\EOF
13058#define wxUSE_LIBTIFF 1
13059EOF
13060
0dcf9893
VZ
13061 if test "$wxUSE_LIBTIFF" = "yes" ; then
13062 TIFF_INCLUDE="-I\${top_srcdir}/src/tiff"
13063 else
13064 TIFF_LINK=
13065 ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'`
13066echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6
b64f0a5f 13067echo "configure:13068: checking for tiffio.h" >&5
0dcf9893
VZ
13068if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
13069 echo $ac_n "(cached) $ac_c" 1>&6
13070else
13071 cat > conftest.$ac_ext <<EOF
b64f0a5f 13072#line 13073 "configure"
0dcf9893
VZ
13073#include "confdefs.h"
13074#include <tiffio.h>
13075EOF
13076ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
b64f0a5f 13077{ (eval echo configure:13078: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
0dcf9893
VZ
13078ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13079if test -z "$ac_err"; then
13080 rm -rf conftest*
13081 eval "ac_cv_header_$ac_safe=yes"
13082else
13083 echo "$ac_err" >&5
13084 echo "configure: failed program was:" >&5
13085 cat conftest.$ac_ext >&5
13086 rm -rf conftest*
13087 eval "ac_cv_header_$ac_safe=no"
13088fi
13089rm -f conftest*
13090fi
13091if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13092 echo "$ac_t""yes" 1>&6
13093 echo $ac_n "checking for TIFFError in -ltiff""... $ac_c" 1>&6
b64f0a5f 13094echo "configure:13095: checking for TIFFError in -ltiff" >&5
0dcf9893
VZ
13095ac_lib_var=`echo tiff'_'TIFFError | sed 'y%./+-%__p_%'`
13096if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13097 echo $ac_n "(cached) $ac_c" 1>&6
13098else
13099 ac_save_LIBS="$LIBS"
13100LIBS="-ltiff -lm $LIBS"
13101cat > conftest.$ac_ext <<EOF
b64f0a5f 13102#line 13103 "configure"
0dcf9893
VZ
13103#include "confdefs.h"
13104/* Override any gcc2 internal prototype to avoid an error. */
13105/* We use char because int might match the return type of a gcc2
13106 builtin and then its argument prototype would still apply. */
13107char TIFFError();
13108
13109int main() {
13110TIFFError()
13111; return 0; }
13112EOF
b64f0a5f 13113if { (eval echo configure:13114: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
0dcf9893
VZ
13114 rm -rf conftest*
13115 eval "ac_cv_lib_$ac_lib_var=yes"
13116else
13117 echo "configure: failed program was:" >&5
13118 cat conftest.$ac_ext >&5
13119 rm -rf conftest*
13120 eval "ac_cv_lib_$ac_lib_var=no"
13121fi
13122rm -f conftest*
13123LIBS="$ac_save_LIBS"
13124
13125fi
13126if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13127 echo "$ac_t""yes" 1>&6
13128 TIFF_LINK="-ltiff"
13129else
13130 echo "$ac_t""no" 1>&6
13131fi
13132
13133else
13134 echo "$ac_t""no" 1>&6
13135fi
13136
13137 if test "x$TIFF_LINK" = "x" ; then
13138 { echo "configure: error: system tiff library not found! Use --with-libtiff=yes to use the built-in one" 1>&2; exit 1; }
13139 fi
13140 fi
c7a2bf27
RR
13141fi
13142
3fed1840
RR
13143FREETYPE_INCLUDE=
13144if test "$wxUSE_FREETYPE" = "yes" -o "$wxUSE_FREETYPE" = "sys" ; then
13145 cat >> confdefs.h <<\EOF
13146#define wxUSE_FREETYPE 1
13147EOF
13148
13149 if test "$wxUSE_FREETYPE" = "yes" ; then
13150 FREETYPE_INCLUDE="-I\${top_srcdir}/src/freetype"
13151 else
13152 FREETYPE_LINK=
13153 ac_safe=`echo "freetype.h" | sed 'y%./+-%__p_%'`
13154echo $ac_n "checking for freetype.h""... $ac_c" 1>&6
b64f0a5f 13155echo "configure:13156: checking for freetype.h" >&5
3fed1840
RR
13156if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
13157 echo $ac_n "(cached) $ac_c" 1>&6
13158else
13159 cat > conftest.$ac_ext <<EOF
b64f0a5f 13160#line 13161 "configure"
3fed1840
RR
13161#include "confdefs.h"
13162#include <freetype.h>
13163EOF
13164ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
b64f0a5f 13165{ (eval echo configure:13166: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3fed1840
RR
13166ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13167if test -z "$ac_err"; then
13168 rm -rf conftest*
13169 eval "ac_cv_header_$ac_safe=yes"
13170else
13171 echo "$ac_err" >&5
13172 echo "configure: failed program was:" >&5
13173 cat conftest.$ac_ext >&5
13174 rm -rf conftest*
13175 eval "ac_cv_header_$ac_safe=no"
13176fi
13177rm -f conftest*
13178fi
13179if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13180 echo "$ac_t""yes" 1>&6
13181 echo $ac_n "checking for FT_Render_Glyph in -lfreetype""... $ac_c" 1>&6
b64f0a5f 13182echo "configure:13183: checking for FT_Render_Glyph in -lfreetype" >&5
3fed1840
RR
13183ac_lib_var=`echo freetype'_'FT_Render_Glyph | sed 'y%./+-%__p_%'`
13184if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13185 echo $ac_n "(cached) $ac_c" 1>&6
13186else
13187 ac_save_LIBS="$LIBS"
13188LIBS="-lfreetype -lm $LIBS"
13189cat > conftest.$ac_ext <<EOF
b64f0a5f 13190#line 13191 "configure"
3fed1840
RR
13191#include "confdefs.h"
13192/* Override any gcc2 internal prototype to avoid an error. */
13193/* We use char because int might match the return type of a gcc2
13194 builtin and then its argument prototype would still apply. */
13195char FT_Render_Glyph();
13196
13197int main() {
13198FT_Render_Glyph()
13199; return 0; }
13200EOF
b64f0a5f 13201if { (eval echo configure:13202: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3fed1840
RR
13202 rm -rf conftest*
13203 eval "ac_cv_lib_$ac_lib_var=yes"
13204else
13205 echo "configure: failed program was:" >&5
13206 cat conftest.$ac_ext >&5
13207 rm -rf conftest*
13208 eval "ac_cv_lib_$ac_lib_var=no"
13209fi
13210rm -f conftest*
13211LIBS="$ac_save_LIBS"
13212
13213fi
13214if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13215 echo "$ac_t""yes" 1>&6
13216 FREETYPE_LINK="-lfreetype"
13217else
13218 echo "$ac_t""no" 1>&6
13219fi
13220
13221
13222else
13223 echo "$ac_t""no" 1>&6
13224fi
13225
13226 if test "x$FREETYPE_LINK" = "x" ; then
13227 { echo "configure: error: system freetype library not found! Use --with-freetype=yes to use the built-in freetype" 1>&2; exit 1; }
13228 fi
13229 fi
13230fi
13231
10f2d63a
VZ
13232if test "$wxUSE_OPENGL" = "yes"; then
13233 ac_safe=`echo "GL/gl.h" | sed 'y%./+-%__p_%'`
13234echo $ac_n "checking for GL/gl.h""... $ac_c" 1>&6
b64f0a5f 13235echo "configure:13236: checking for GL/gl.h" >&5
10f2d63a
VZ
13236if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
13237 echo $ac_n "(cached) $ac_c" 1>&6
13238else
13239 cat > conftest.$ac_ext <<EOF
b64f0a5f 13240#line 13241 "configure"
10f2d63a
VZ
13241#include "confdefs.h"
13242#include <GL/gl.h>
13243EOF
13244ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
b64f0a5f 13245{ (eval echo configure:13246: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
13246ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13247if test -z "$ac_err"; then
13248 rm -rf conftest*
13249 eval "ac_cv_header_$ac_safe=yes"
13250else
13251 echo "$ac_err" >&5
13252 echo "configure: failed program was:" >&5
13253 cat conftest.$ac_ext >&5
13254 rm -rf conftest*
13255 eval "ac_cv_header_$ac_safe=no"
13256fi
13257rm -f conftest*
13258fi
13259if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13260 echo "$ac_t""yes" 1>&6
13261
bdad4e7e
RR
13262 cat >> confdefs.h <<\EOF
13263#define wxUSE_OPENGL 1
13264EOF
13265
13266 cat >> confdefs.h <<\EOF
13267#define wxUSE_GLCANVAS 1
13268EOF
13269
13270 echo $ac_n "checking for glFlush in -lGL""... $ac_c" 1>&6
b64f0a5f 13271echo "configure:13272: checking for glFlush in -lGL" >&5
bdad4e7e 13272ac_lib_var=`echo GL'_'glFlush | sed 'y%./+-%__p_%'`
10f2d63a
VZ
13273if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13274 echo $ac_n "(cached) $ac_c" 1>&6
13275else
13276 ac_save_LIBS="$LIBS"
bdad4e7e 13277LIBS="-lGL $LIBS"
10f2d63a 13278cat > conftest.$ac_ext <<EOF
b64f0a5f 13279#line 13280 "configure"
10f2d63a
VZ
13280#include "confdefs.h"
13281/* Override any gcc2 internal prototype to avoid an error. */
13282/* We use char because int might match the return type of a gcc2
13283 builtin and then its argument prototype would still apply. */
bdad4e7e 13284char glFlush();
10f2d63a
VZ
13285
13286int main() {
bdad4e7e 13287glFlush()
10f2d63a
VZ
13288; return 0; }
13289EOF
b64f0a5f 13290if { (eval echo configure:13291: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
13291 rm -rf conftest*
13292 eval "ac_cv_lib_$ac_lib_var=yes"
13293else
13294 echo "configure: failed program was:" >&5
13295 cat conftest.$ac_ext >&5
13296 rm -rf conftest*
13297 eval "ac_cv_lib_$ac_lib_var=no"
13298fi
13299rm -f conftest*
13300LIBS="$ac_save_LIBS"
13301
13302fi
13303if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13304 echo "$ac_t""yes" 1>&6
13305
f6bcfd97 13306 OPENGL_LINK="-lGL -lGLU"
10f2d63a
VZ
13307
13308else
13309 echo "$ac_t""no" 1>&6
13310
bdad4e7e 13311 echo $ac_n "checking for glFlush in -lMesaGL""... $ac_c" 1>&6
b64f0a5f 13312echo "configure:13313: checking for glFlush in -lMesaGL" >&5
bdad4e7e 13313ac_lib_var=`echo MesaGL'_'glFlush | sed 'y%./+-%__p_%'`
10f2d63a
VZ
13314if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13315 echo $ac_n "(cached) $ac_c" 1>&6
13316else
13317 ac_save_LIBS="$LIBS"
13318LIBS="-lMesaGL $LIBS"
13319cat > conftest.$ac_ext <<EOF
b64f0a5f 13320#line 13321 "configure"
10f2d63a
VZ
13321#include "confdefs.h"
13322/* Override any gcc2 internal prototype to avoid an error. */
13323/* We use char because int might match the return type of a gcc2
13324 builtin and then its argument prototype would still apply. */
bdad4e7e 13325char glFlush();
10f2d63a
VZ
13326
13327int main() {
bdad4e7e 13328glFlush()
10f2d63a
VZ
13329; return 0; }
13330EOF
b64f0a5f 13331if { (eval echo configure:13332: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
13332 rm -rf conftest*
13333 eval "ac_cv_lib_$ac_lib_var=yes"
13334else
13335 echo "configure: failed program was:" >&5
13336 cat conftest.$ac_ext >&5
13337 rm -rf conftest*
13338 eval "ac_cv_lib_$ac_lib_var=no"
13339fi
13340rm -f conftest*
13341LIBS="$ac_save_LIBS"
13342
13343fi
13344if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13345 echo "$ac_t""yes" 1>&6
13346
f6bcfd97 13347 OPENGL_LINK="-lMesaGL -lMesaGLU"
10f2d63a
VZ
13348
13349else
13350 echo "$ac_t""no" 1>&6
10f2d63a
VZ
13351fi
13352
13353
13354fi
13355
13356
13357else
13358 echo "$ac_t""no" 1>&6
13359wxUSE_OPENGL=0
13360fi
13361
13362fi
13363
13364
13365if test "$wxUSE_GUI" = "yes"; then
13366 cat >> confdefs.h <<\EOF
13367#define wxUSE_GUI 1
13368EOF
13369
13370
13371 else
13372 cat >> confdefs.h <<\EOF
13373#define wxUSE_NOGUI 1
13374EOF
13375
13376fi
13377
13378
13379if test "$wxUSE_UNIX" = "yes"; then
13380 cat >> confdefs.h <<\EOF
13381#define wxUSE_UNIX 1
13382EOF
13383
13384fi
13385
13386
13387if test "$wxUSE_APPLE_IEEE" = "yes"; then
13388 cat >> confdefs.h <<\EOF
13389#define wxUSE_APPLE_IEEE 1
13390EOF
13391
13392fi
13393
10f2d63a
VZ
13394if test "$wxUSE_WAVE" = "yes"; then
13395 cat >> confdefs.h <<\EOF
13396#define wxUSE_WAVE 1
13397EOF
13398
13399fi
13400
13401if test "$wxUSE_FILE" = "yes"; then
13402 cat >> confdefs.h <<\EOF
13403#define wxUSE_FILE 1
13404EOF
13405
13406fi
13407
24528b0c
VS
13408if test "$wxUSE_FILESYSTEM" = "yes"; then
13409 cat >> confdefs.h <<\EOF
13410#define wxUSE_FILESYSTEM 1
13411EOF
13412
13413fi
13414
10f2d63a
VZ
13415if test "$wxUSE_FS_INET" = "yes"; then
13416 cat >> confdefs.h <<\EOF
13417#define wxUSE_FS_INET 1
13418EOF
13419
13420fi
13421
13422if test "$wxUSE_FS_ZIP" = "yes"; then
13423 cat >> confdefs.h <<\EOF
13424#define wxUSE_FS_ZIP 1
13425EOF
13426
13427fi
13428
13429if test "$wxUSE_ZIPSTREAM" = "yes"; then
13430 cat >> confdefs.h <<\EOF
13431#define wxUSE_ZIPSTREAM 1
13432EOF
13433
13434fi
13435
eb4efbdc
VZ
13436if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
13437 cat >> confdefs.h <<\EOF
13438#define wxUSE_ON_FATAL_EXCEPTION 1
13439EOF
13440
13441fi
13442
10f2d63a
VZ
13443if test "$wxUSE_BUSYINFO" = "yes"; then
13444 cat >> confdefs.h <<\EOF
13445#define wxUSE_BUSYINFO 1
13446EOF
13447
13448fi
13449
13450if test "$wxUSE_STD_IOSTREAM" = "yes"; then
13451 cat >> confdefs.h <<\EOF
13452#define wxUSE_STD_IOSTREAM 1
13453EOF
13454
13455fi
13456
13457if test "$wxUSE_TEXTFILE" = "yes"; then
13458 if test "$wxUSE_FILE" != "yes"; then
13459 echo "configure: warning: wxTextFile requires wxFile and it won't be compiled without it" 1>&2
13460 else
13461 cat >> confdefs.h <<\EOF
13462#define wxUSE_TEXTFILE 1
13463EOF
13464
13465 fi
13466fi
13467
13468if test "$wxUSE_CONFIG" = "yes" ; then
13469 if test "$wxUSE_TEXTFILE" != "yes"; then
13470 echo "configure: warning: wxConfig requires wxTextFile and it won't be compiled without it" 1>&2
13471 else
13472 cat >> confdefs.h <<\EOF
13473#define wxUSE_CONFIG 1
13474EOF
13475
13476 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
13477 fi
13478fi
13479
13480if test "$wxUSE_INTL" = "yes" ; then
13481 if test "$wxUSE_FILE" != "yes"; then
13482 echo "configure: warning: I18n code requires wxFile and it won't be compiled without it" 1>&2
13483 else
13484 cat >> confdefs.h <<\EOF
13485#define wxUSE_INTL 1
13486EOF
13487
13488 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
f6bcfd97 13489 GUIDIST="$GUIDIST INTL_DIST"
10f2d63a
VZ
13490 fi
13491fi
13492
13493if test "$wxUSE_LOG" = "yes"; then
13494 cat >> confdefs.h <<\EOF
13495#define wxUSE_LOG 1
13496EOF
13497
13498fi
13499
13500if test "$wxUSE_LONGLONG" = "yes"; then
13501 cat >> confdefs.h <<\EOF
13502#define wxUSE_LONGLONG 1
13503EOF
13504
13505fi
13506
e8f65ba6
RR
13507if test "$wxUSE_GEOMETRY" = "yes"; then
13508 cat >> confdefs.h <<\EOF
13509#define wxUSE_GEOMETRY 1
13510EOF
13511
13512fi
13513
10f2d63a
VZ
13514if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then
13515 cat >> confdefs.h <<\EOF
13516#define wxUSE_DIALUP_MANAGER 1
13517EOF
13518
70f7a477 13519 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
10f2d63a
VZ
13520fi
13521
13522if test "$wxUSE_STREAMS" = "yes" ; then
13523 cat >> confdefs.h <<\EOF
13524#define wxUSE_STREAMS 1
13525EOF
13526
13527fi
13528
10f2d63a 13529
afc31813 13530if test "$wxUSE_TIMEDATE" = "yes"; then
83307f33
VZ
13531 for ac_func in strptime
13532do
13533echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
b64f0a5f 13534echo "configure:13535: checking for $ac_func" >&5
83307f33
VZ
13535if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13536 echo $ac_n "(cached) $ac_c" 1>&6
13537else
13538 cat > conftest.$ac_ext <<EOF
b64f0a5f 13539#line 13540 "configure"
83307f33
VZ
13540#include "confdefs.h"
13541/* System header to define __stub macros and hopefully few prototypes,
13542 which can conflict with char $ac_func(); below. */
13543#include <assert.h>
13544/* Override any gcc2 internal prototype to avoid an error. */
13545/* We use char because int might match the return type of a gcc2
13546 builtin and then its argument prototype would still apply. */
13547char $ac_func();
13548
13549int main() {
13550
13551/* The GNU C library defines this for functions which it implements
13552 to always fail with ENOSYS. Some functions are actually named
13553 something starting with __ and the normal name is an alias. */
13554#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13555choke me
13556#else
e8482f24 13557$ac_func();
83307f33
VZ
13558#endif
13559
13560; return 0; }
13561EOF
b64f0a5f 13562if { (eval echo configure:13563: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
83307f33
VZ
13563 rm -rf conftest*
13564 eval "ac_cv_func_$ac_func=yes"
13565else
13566 echo "configure: failed program was:" >&5
13567 cat conftest.$ac_ext >&5
13568 rm -rf conftest*
13569 eval "ac_cv_func_$ac_func=no"
13570fi
13571rm -f conftest*
13572fi
13573
13574if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13575 echo "$ac_t""yes" 1>&6
13576 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13577 cat >> confdefs.h <<EOF
13578#define $ac_tr_func 1
13579EOF
13580
13581else
13582 echo "$ac_t""no" 1>&6
13583fi
13584done
13585
13586
360d6699 13587 echo $ac_n "checking for timezone variable in <time.h>""... $ac_c" 1>&6
b64f0a5f 13588echo "configure:13589: checking for timezone variable in <time.h>" >&5
360d6699
VZ
13589if eval "test \"`echo '$''{'wx_cv_var_timezone'+set}'`\" = set"; then
13590 echo $ac_n "(cached) $ac_c" 1>&6
13591else
13592
13593 cat > conftest.$ac_ext <<EOF
b64f0a5f 13594#line 13595 "configure"
360d6699
VZ
13595#include "confdefs.h"
13596
b4085ce6 13597 #include <time.h>
360d6699
VZ
13598
13599int main() {
13600
13601 int tz;
13602 tz = __timezone;
13603
13604; return 0; }
13605EOF
b64f0a5f 13606if { (eval echo configure:13607: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
360d6699
VZ
13607 rm -rf conftest*
13608
13609 wx_cv_var_timezone=__timezone
13610
13611else
13612 echo "configure: failed program was:" >&5
13613 cat conftest.$ac_ext >&5
13614 rm -rf conftest*
13615
13616 cat > conftest.$ac_ext <<EOF
b64f0a5f 13617#line 13618 "configure"
360d6699
VZ
13618#include "confdefs.h"
13619
b4085ce6 13620 #include <time.h>
360d6699
VZ
13621
13622int main() {
13623
13624 int tz;
13625 tz = _timezone;
13626
13627; return 0; }
13628EOF
b64f0a5f 13629if { (eval echo configure:13630: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
360d6699
VZ
13630 rm -rf conftest*
13631
13632 wx_cv_var_timezone=_timezone
13633
5357c8e8
VZ
13634else
13635 echo "configure: failed program was:" >&5
13636 cat conftest.$ac_ext >&5
13637 rm -rf conftest*
13638
13639 cat > conftest.$ac_ext <<EOF
b64f0a5f 13640#line 13641 "configure"
5357c8e8
VZ
13641#include "confdefs.h"
13642
b4085ce6 13643 #include <time.h>
5357c8e8
VZ
13644
13645int main() {
13646
13647 int tz;
13648 tz = timezone;
13649
13650; return 0; }
13651EOF
b64f0a5f 13652if { (eval echo configure:13653: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5357c8e8
VZ
13653 rm -rf conftest*
13654
13655 wx_cv_var_timezone=timezone
13656
360d6699
VZ
13657else
13658 echo "configure: failed program was:" >&5
13659 cat conftest.$ac_ext >&5
13660 rm -rf conftest*
13661 { echo "configure: error: no timezone variable" 1>&2; exit 1; }
5357c8e8
VZ
13662
13663fi
13664rm -f conftest*
13665
360d6699
VZ
13666
13667fi
13668rm -f conftest*
13669
13670
13671fi
13672rm -f conftest*
13673
13674
13675fi
13676
13677echo "$ac_t""$wx_cv_var_timezone" 1>&6
13678
13679 cat >> confdefs.h <<EOF
13680#define WX_TIMEZONE $wx_cv_var_timezone
13681EOF
13682
13683
3fcdd07b 13684 for ac_func in localtime
afc31813
VZ
13685do
13686echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
b64f0a5f 13687echo "configure:13688: checking for $ac_func" >&5
afc31813
VZ
13688if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13689 echo $ac_n "(cached) $ac_c" 1>&6
13690else
13691 cat > conftest.$ac_ext <<EOF
b64f0a5f 13692#line 13693 "configure"
10f2d63a 13693#include "confdefs.h"
afc31813
VZ
13694/* System header to define __stub macros and hopefully few prototypes,
13695 which can conflict with char $ac_func(); below. */
13696#include <assert.h>
13697/* Override any gcc2 internal prototype to avoid an error. */
13698/* We use char because int might match the return type of a gcc2
13699 builtin and then its argument prototype would still apply. */
13700char $ac_func();
13701
10f2d63a 13702int main() {
afc31813
VZ
13703
13704/* The GNU C library defines this for functions which it implements
13705 to always fail with ENOSYS. Some functions are actually named
13706 something starting with __ and the normal name is an alias. */
13707#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13708choke me
13709#else
e8482f24 13710$ac_func();
afc31813
VZ
13711#endif
13712
10f2d63a
VZ
13713; return 0; }
13714EOF
b64f0a5f 13715if { (eval echo configure:13716: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a 13716 rm -rf conftest*
afc31813 13717 eval "ac_cv_func_$ac_func=yes"
10f2d63a
VZ
13718else
13719 echo "configure: failed program was:" >&5
13720 cat conftest.$ac_ext >&5
13721 rm -rf conftest*
afc31813
VZ
13722 eval "ac_cv_func_$ac_func=no"
13723fi
13724rm -f conftest*
13725fi
13726
13727if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13728 echo "$ac_t""yes" 1>&6
13729 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13730 cat >> confdefs.h <<EOF
13731#define $ac_tr_func 1
13732EOF
3fcdd07b 13733
afc31813
VZ
13734else
13735 echo "$ac_t""no" 1>&6
13736fi
13737done
13738
13739
0470b1e6
VZ
13740 if test "$ac_cv_func_localtime" = "yes"; then
13741 echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6
b64f0a5f 13742echo "configure:13743: checking for tm_gmtoff in struct tm" >&5
0470b1e6
VZ
13743if eval "test \"`echo '$''{'wx_cv_struct_tm_has_gmtoff'+set}'`\" = set"; then
13744 echo $ac_n "(cached) $ac_c" 1>&6
13745else
13746
13747 cat > conftest.$ac_ext <<EOF
b64f0a5f 13748#line 13749 "configure"
0470b1e6
VZ
13749#include "confdefs.h"
13750
b4085ce6 13751 #include <time.h>
0470b1e6
VZ
13752
13753int main() {
13754
13755 struct tm tm;
13756 tm.tm_gmtoff++;
13757
13758; return 0; }
13759EOF
b64f0a5f 13760if { (eval echo configure:13761: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
0470b1e6
VZ
13761 rm -rf conftest*
13762
f03a98d8 13763 wx_cv_struct_tm_has_gmtoff=yes
0470b1e6
VZ
13764 cat >> confdefs.h <<\EOF
13765#define WX_GMTOFF_IN_TM 1
13766EOF
13767
13768
13769else
13770 echo "configure: failed program was:" >&5
13771 cat conftest.$ac_ext >&5
13772 rm -rf conftest*
13773 wx_cv_struct_tm_has_gmtoff=no
13774
13775fi
13776rm -f conftest*
13777
13778fi
13779
13780echo "$ac_t""$wx_cv_struct_tm_has_gmtoff" 1>&6
3fcdd07b
VZ
13781 fi
13782
13783 for ac_func in gettimeofday ftime
13784do
13785echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
b64f0a5f 13786echo "configure:13787: checking for $ac_func" >&5
3fcdd07b
VZ
13787if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13788 echo $ac_n "(cached) $ac_c" 1>&6
13789else
13790 cat > conftest.$ac_ext <<EOF
b64f0a5f 13791#line 13792 "configure"
3fcdd07b
VZ
13792#include "confdefs.h"
13793/* System header to define __stub macros and hopefully few prototypes,
13794 which can conflict with char $ac_func(); below. */
13795#include <assert.h>
13796/* Override any gcc2 internal prototype to avoid an error. */
13797/* We use char because int might match the return type of a gcc2
13798 builtin and then its argument prototype would still apply. */
13799char $ac_func();
13800
13801int main() {
13802
13803/* The GNU C library defines this for functions which it implements
13804 to always fail with ENOSYS. Some functions are actually named
13805 something starting with __ and the normal name is an alias. */
13806#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13807choke me
13808#else
e8482f24 13809$ac_func();
3fcdd07b
VZ
13810#endif
13811
13812; return 0; }
13813EOF
b64f0a5f 13814if { (eval echo configure:13815: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3fcdd07b
VZ
13815 rm -rf conftest*
13816 eval "ac_cv_func_$ac_func=yes"
13817else
13818 echo "configure: failed program was:" >&5
13819 cat conftest.$ac_ext >&5
13820 rm -rf conftest*
13821 eval "ac_cv_func_$ac_func=no"
13822fi
13823rm -f conftest*
13824fi
13825
13826if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13827 echo "$ac_t""yes" 1>&6
13828 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13829 cat >> confdefs.h <<EOF
13830#define $ac_tr_func 1
13831EOF
13832 break
13833else
13834 echo "$ac_t""no" 1>&6
13835fi
13836done
13837
13838
13839 if test "$ac_cv_func_gettimeofday" = "yes"; then
afc31813 13840 echo $ac_n "checking whether gettimeofday takes two arguments""... $ac_c" 1>&6
b64f0a5f 13841echo "configure:13842: checking whether gettimeofday takes two arguments" >&5
afc31813
VZ
13842if eval "test \"`echo '$''{'wx_cv_func_gettimeofday_has_2_args'+set}'`\" = set"; then
13843 echo $ac_n "(cached) $ac_c" 1>&6
13844else
13845
13846
13847 ac_ext=C
13848# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13849ac_cpp='$CXXCPP $CPPFLAGS'
13850ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13851ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13852cross_compiling=$ac_cv_prog_cxx_cross
13853
13854
13855 cat > conftest.$ac_ext <<EOF
b64f0a5f 13856#line 13857 "configure"
10f2d63a 13857#include "confdefs.h"
afc31813
VZ
13858
13859 #include <sys/time.h>
13860 #include <unistd.h>
13861
10f2d63a 13862int main() {
afc31813
VZ
13863
13864 struct timeval tv;
13865 struct timezone tz;
13866 gettimeofday(&tv, &tz);
13867
10f2d63a
VZ
13868; return 0; }
13869EOF
b64f0a5f 13870if { (eval echo configure:13871: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10f2d63a 13871 rm -rf conftest*
afc31813 13872 wx_cv_func_gettimeofday_has_2_args=yes
10f2d63a
VZ
13873else
13874 echo "configure: failed program was:" >&5
13875 cat conftest.$ac_ext >&5
13876 rm -rf conftest*
13877 cat > conftest.$ac_ext <<EOF
b64f0a5f 13878#line 13879 "configure"
10f2d63a 13879#include "confdefs.h"
afc31813
VZ
13880
13881 #include <sys/time.h>
13882 #include <unistd.h>
13883
10f2d63a 13884int main() {
afc31813
VZ
13885
13886 struct timeval tv;
13887 gettimeofday(&tv);
13888
10f2d63a
VZ
13889; return 0; }
13890EOF
b64f0a5f 13891if { (eval echo configure:13892: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10f2d63a 13892 rm -rf conftest*
afc31813 13893 wx_cv_func_gettimeofday_has_2_args=no
10f2d63a
VZ
13894else
13895 echo "configure: failed program was:" >&5
13896 cat conftest.$ac_ext >&5
13897 rm -rf conftest*
afc31813
VZ
13898 wx_cv_func_gettimeofday_has_2_args=unknown
13899
10f2d63a
VZ
13900fi
13901rm -f conftest*
afc31813 13902
10f2d63a
VZ
13903fi
13904rm -f conftest*
afc31813 13905 ac_ext=c
10f2d63a
VZ
13906# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13907ac_cpp='$CPP $CPPFLAGS'
13908ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13909ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13910cross_compiling=$ac_cv_prog_cc_cross
13911
afc31813
VZ
13912
13913fi
13914
13915echo "$ac_t""$wx_cv_func_gettimeofday_has_2_args" 1>&6
c63c7106 13916
afc31813
VZ
13917 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
13918 cat >> confdefs.h <<\EOF
13919#define WX_GETTIMEOFDAY_NO_TZ 1
13920EOF
13921
13922 fi
13923 fi
13924
13925 cat >> confdefs.h <<\EOF
13926#define wxUSE_TIMEDATE 1
13927EOF
13928
13929 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
13930fi
13931
13932
b089607b
VZ
13933if test "$TOOLKIT" != "MSW"; then
13934
afc31813 13935if test "$wxUSE_SOCKETS" = "yes"; then
c63c7106 13936 echo $ac_n "checking for socket""... $ac_c" 1>&6
b64f0a5f 13937echo "configure:13938: checking for socket" >&5
c63c7106
VZ
13938if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
13939 echo $ac_n "(cached) $ac_c" 1>&6
13940else
13941 cat > conftest.$ac_ext <<EOF
b64f0a5f 13942#line 13943 "configure"
c63c7106
VZ
13943#include "confdefs.h"
13944/* System header to define __stub macros and hopefully few prototypes,
13945 which can conflict with char socket(); below. */
13946#include <assert.h>
13947/* Override any gcc2 internal prototype to avoid an error. */
13948/* We use char because int might match the return type of a gcc2
13949 builtin and then its argument prototype would still apply. */
13950char socket();
13951
13952int main() {
13953
13954/* The GNU C library defines this for functions which it implements
13955 to always fail with ENOSYS. Some functions are actually named
13956 something starting with __ and the normal name is an alias. */
13957#if defined (__stub_socket) || defined (__stub___socket)
13958choke me
13959#else
e8482f24 13960socket();
c63c7106
VZ
13961#endif
13962
13963; return 0; }
13964EOF
b64f0a5f 13965if { (eval echo configure:13966: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
c63c7106
VZ
13966 rm -rf conftest*
13967 eval "ac_cv_func_socket=yes"
13968else
13969 echo "configure: failed program was:" >&5
13970 cat conftest.$ac_ext >&5
13971 rm -rf conftest*
13972 eval "ac_cv_func_socket=no"
13973fi
13974rm -f conftest*
13975fi
13976
13977if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
13978 echo "$ac_t""yes" 1>&6
13979 :
13980else
13981 echo "$ac_t""no" 1>&6
13982echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
b64f0a5f 13983echo "configure:13984: checking for socket in -lsocket" >&5
c63c7106
VZ
13984ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
13985if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13986 echo $ac_n "(cached) $ac_c" 1>&6
13987else
13988 ac_save_LIBS="$LIBS"
13989LIBS="-lsocket $LIBS"
13990cat > conftest.$ac_ext <<EOF
b64f0a5f 13991#line 13992 "configure"
c63c7106
VZ
13992#include "confdefs.h"
13993/* Override any gcc2 internal prototype to avoid an error. */
13994/* We use char because int might match the return type of a gcc2
13995 builtin and then its argument prototype would still apply. */
13996char socket();
13997
13998int main() {
13999socket()
14000; return 0; }
14001EOF
b64f0a5f 14002if { (eval echo configure:14003: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
c63c7106
VZ
14003 rm -rf conftest*
14004 eval "ac_cv_lib_$ac_lib_var=yes"
14005else
14006 echo "configure: failed program was:" >&5
14007 cat conftest.$ac_ext >&5
14008 rm -rf conftest*
14009 eval "ac_cv_lib_$ac_lib_var=no"
14010fi
14011rm -f conftest*
14012LIBS="$ac_save_LIBS"
14013
14014fi
14015if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14016 echo "$ac_t""yes" 1>&6
14017 INET_LINK="$INET_LINK -lsocket"
c63c7106
VZ
14018else
14019 echo "$ac_t""no" 1>&6
afc31813
VZ
14020
14021 echo "configure: warning: socket library not found - sockets will be disabled" 1>&2
14022 wxUSE_SOCKETS=no
14023
14024
c63c7106
VZ
14025fi
14026
14027
14028fi
14029
10f2d63a
VZ
14030fi
14031
b089607b 14032
afc31813 14033if test "$wxUSE_SOCKETS" = "yes" ; then
51a9faba 14034 echo $ac_n "checking what is the type of the third argument of getsockname""... $ac_c" 1>&6
b64f0a5f 14035echo "configure:14036: checking what is the type of the third argument of getsockname" >&5
51a9faba
VZ
14036if eval "test \"`echo '$''{'wx_cv_type_getsockname3'+set}'`\" = set"; then
14037 echo $ac_n "(cached) $ac_c" 1>&6
14038else
14039
14040
14041 ac_ext=C
afc31813
VZ
14042# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14043ac_cpp='$CXXCPP $CPPFLAGS'
14044ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14045ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14046cross_compiling=$ac_cv_prog_cxx_cross
14047
51a9faba
VZ
14048
14049 cat > conftest.$ac_ext <<EOF
b64f0a5f 14050#line 14051 "configure"
afc31813 14051#include "confdefs.h"
51a9faba 14052
3ace2e6d 14053 #include <sys/types.h>
51a9faba
VZ
14054 #include <sys/socket.h>
14055
afc31813 14056int main() {
51a9faba
VZ
14057
14058 socklen_t len;
14059 getsockname(0, 0, &len);
14060
afc31813
VZ
14061; return 0; }
14062EOF
b64f0a5f 14063if { (eval echo configure:14064: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
afc31813 14064 rm -rf conftest*
51a9faba 14065 wx_cv_type_getsockname3=socklen_t
afc31813
VZ
14066else
14067 echo "configure: failed program was:" >&5
14068 cat conftest.$ac_ext >&5
14069 rm -rf conftest*
14070 cat > conftest.$ac_ext <<EOF
b64f0a5f 14071#line 14072 "configure"
afc31813 14072#include "confdefs.h"
51a9faba 14073
3ace2e6d 14074 #include <sys/types.h>
51a9faba
VZ
14075 #include <sys/socket.h>
14076
afc31813 14077int main() {
51a9faba
VZ
14078
14079 size_t len;
14080 getsockname(0, 0, &len);
14081
afc31813
VZ
14082; return 0; }
14083EOF
b64f0a5f 14084if { (eval echo configure:14085: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
afc31813 14085 rm -rf conftest*
51a9faba 14086 wx_cv_type_getsockname3=size_t
afc31813
VZ
14087else
14088 echo "configure: failed program was:" >&5
14089 cat conftest.$ac_ext >&5
14090 rm -rf conftest*
14091 cat > conftest.$ac_ext <<EOF
b64f0a5f 14092#line 14093 "configure"
afc31813 14093#include "confdefs.h"
51a9faba 14094
3ace2e6d 14095 #include <sys/types.h>
51a9faba
VZ
14096 #include <sys/socket.h>
14097
afc31813 14098int main() {
51a9faba
VZ
14099
14100 int len;
14101 getsockname(0, 0, &len);
14102
afc31813
VZ
14103; return 0; }
14104EOF
b64f0a5f 14105if { (eval echo configure:14106: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
afc31813 14106 rm -rf conftest*
51a9faba 14107 wx_cv_type_getsockname3=int
afc31813
VZ
14108else
14109 echo "configure: failed program was:" >&5
14110 cat conftest.$ac_ext >&5
3ace2e6d
SN
14111 rm -rf conftest*
14112 wx_cv_type_getsockname3=unknown
14113
afc31813
VZ
14114fi
14115rm -f conftest*
51a9faba 14116
afc31813
VZ
14117fi
14118rm -f conftest*
51a9faba 14119
afc31813
VZ
14120fi
14121rm -f conftest*
51a9faba
VZ
14122
14123 ac_ext=c
afc31813
VZ
14124# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14125ac_cpp='$CPP $CPPFLAGS'
14126ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14127ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14128cross_compiling=$ac_cv_prog_cc_cross
14129
51a9faba
VZ
14130
14131fi
14132
14133echo "$ac_t""$wx_cv_type_getsockname3" 1>&6
14134
14135 if test "$wx_cv_type_getsockname3" = "unknown"; then
14136 wxUSE_SOCKETS=no
14137 echo "configure: warning: Couldn't find socklen_t synonym for this system" 1>&2
14138 else
14139 cat >> confdefs.h <<EOF
14140#define SOCKLEN_T $wx_cv_type_getsockname3
14141EOF
14142
14143 fi
14144fi
afc31813 14145
c521c494
RL
14146fi
14147
51a9faba 14148if test "$wxUSE_SOCKETS" = "yes" ; then
afc31813
VZ
14149 cat >> confdefs.h <<\EOF
14150#define wxUSE_SOCKETS 1
14151EOF
14152
70f7a477 14153 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
afc31813
VZ
14154 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS protocol"
14155fi
14156
10f2d63a 14157
dc3d889d
VZ
14158if test "$wxUSE_GUI" = "yes"; then
14159
b089607b
VZ
14160if test "$TOOLKIT" != "MSW"; then
14161
ceded8b9 14162if test "$wxUSE_JOYSTICK" = "yes"; then
10f2d63a
VZ
14163 for ac_hdr in linux/joystick.h
14164do
14165ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
14166echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
b64f0a5f 14167echo "configure:14168: checking for $ac_hdr" >&5
10f2d63a
VZ
14168if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
14169 echo $ac_n "(cached) $ac_c" 1>&6
14170else
14171 cat > conftest.$ac_ext <<EOF
b64f0a5f 14172#line 14173 "configure"
10f2d63a
VZ
14173#include "confdefs.h"
14174#include <$ac_hdr>
14175EOF
14176ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
b64f0a5f 14177{ (eval echo configure:14178: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
14178ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14179if test -z "$ac_err"; then
14180 rm -rf conftest*
14181 eval "ac_cv_header_$ac_safe=yes"
14182else
14183 echo "$ac_err" >&5
14184 echo "configure: failed program was:" >&5
14185 cat conftest.$ac_ext >&5
14186 rm -rf conftest*
14187 eval "ac_cv_header_$ac_safe=no"
14188fi
14189rm -f conftest*
14190fi
14191if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14192 echo "$ac_t""yes" 1>&6
14193 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
14194 cat >> confdefs.h <<EOF
14195#define $ac_tr_hdr 1
14196EOF
14197
14198else
14199 echo "$ac_t""no" 1>&6
14200fi
14201done
14202
b089607b 14203 if test "$ac_cv_header_linux_joystick_h" != "yes"; then
ceded8b9 14204 wxUSE_JOYSTICK=no
dc3d889d 14205 echo "configure: warning: Joystick not supported by this system" 1>&2
b089607b
VZ
14206 fi
14207fi
14208
14209fi
14210
ceded8b9 14211if test "$wxUSE_JOYSTICK" = "yes"; then
10f2d63a
VZ
14212 cat >> confdefs.h <<\EOF
14213#define wxUSE_JOYSTICK 1
14214EOF
14215
14216 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
10f2d63a
VZ
14217fi
14218
dc3d889d
VZ
14219fi
14220
10f2d63a 14221
b089607b
VZ
14222if test "$TOOLKIT" != "MSW"; then
14223
10f2d63a
VZ
14224HAVE_DL_FUNCS=0
14225HAVE_SHL_FUNCS=0
14226if test "$wxUSE_DYNLIB_CLASS" = "yes"; then
b4085ce6
GD
14227 if test "$USE_MAC" = 1; then
14228 HAVE_DL_FUNCS=1
14229 else
14230 for ac_func in dlopen
10f2d63a
VZ
14231do
14232echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
b64f0a5f 14233echo "configure:14234: checking for $ac_func" >&5
10f2d63a
VZ
14234if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14235 echo $ac_n "(cached) $ac_c" 1>&6
14236else
14237 cat > conftest.$ac_ext <<EOF
b64f0a5f 14238#line 14239 "configure"
10f2d63a
VZ
14239#include "confdefs.h"
14240/* System header to define __stub macros and hopefully few prototypes,
14241 which can conflict with char $ac_func(); below. */
14242#include <assert.h>
14243/* Override any gcc2 internal prototype to avoid an error. */
14244/* We use char because int might match the return type of a gcc2
14245 builtin and then its argument prototype would still apply. */
14246char $ac_func();
14247
14248int main() {
14249
14250/* The GNU C library defines this for functions which it implements
14251 to always fail with ENOSYS. Some functions are actually named
14252 something starting with __ and the normal name is an alias. */
14253#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14254choke me
14255#else
e8482f24 14256$ac_func();
10f2d63a
VZ
14257#endif
14258
14259; return 0; }
14260EOF
b64f0a5f 14261if { (eval echo configure:14262: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
14262 rm -rf conftest*
14263 eval "ac_cv_func_$ac_func=yes"
14264else
14265 echo "configure: failed program was:" >&5
14266 cat conftest.$ac_ext >&5
14267 rm -rf conftest*
14268 eval "ac_cv_func_$ac_func=no"
14269fi
14270rm -f conftest*
14271fi
14272
14273if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14274 echo "$ac_t""yes" 1>&6
14275 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14276 cat >> confdefs.h <<EOF
14277#define $ac_tr_func 1
14278EOF
14279
14280 cat >> confdefs.h <<\EOF
14281#define HAVE_DLOPEN 1
14282EOF
14283
14284 HAVE_DL_FUNCS=1
14285
14286else
14287 echo "$ac_t""no" 1>&6
14288echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
b64f0a5f 14289echo "configure:14290: checking for dlopen in -ldl" >&5
10f2d63a
VZ
14290ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
14291if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14292 echo $ac_n "(cached) $ac_c" 1>&6
14293else
14294 ac_save_LIBS="$LIBS"
14295LIBS="-ldl $LIBS"
14296cat > conftest.$ac_ext <<EOF
b64f0a5f 14297#line 14298 "configure"
10f2d63a
VZ
14298#include "confdefs.h"
14299/* Override any gcc2 internal prototype to avoid an error. */
14300/* We use char because int might match the return type of a gcc2
14301 builtin and then its argument prototype would still apply. */
14302char dlopen();
14303
14304int main() {
14305dlopen()
14306; return 0; }
14307EOF
b64f0a5f 14308if { (eval echo configure:14309: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
14309 rm -rf conftest*
14310 eval "ac_cv_lib_$ac_lib_var=yes"
14311else
14312 echo "configure: failed program was:" >&5
14313 cat conftest.$ac_ext >&5
14314 rm -rf conftest*
14315 eval "ac_cv_lib_$ac_lib_var=no"
14316fi
14317rm -f conftest*
14318LIBS="$ac_save_LIBS"
14319
14320fi
14321if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14322 echo "$ac_t""yes" 1>&6
14323
14324 cat >> confdefs.h <<\EOF
14325#define HAVE_DLOPEN 1
14326EOF
14327
14328 HAVE_DL_FUNCS=1
14329 LIBS="$LIBS -ldl"
14330
14331else
14332 echo "$ac_t""no" 1>&6
14333
14334 for ac_func in shl_load
14335do
14336echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
b64f0a5f 14337echo "configure:14338: checking for $ac_func" >&5
10f2d63a
VZ
14338if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14339 echo $ac_n "(cached) $ac_c" 1>&6
14340else
14341 cat > conftest.$ac_ext <<EOF
b64f0a5f 14342#line 14343 "configure"
10f2d63a
VZ
14343#include "confdefs.h"
14344/* System header to define __stub macros and hopefully few prototypes,
14345 which can conflict with char $ac_func(); below. */
14346#include <assert.h>
14347/* Override any gcc2 internal prototype to avoid an error. */
14348/* We use char because int might match the return type of a gcc2
14349 builtin and then its argument prototype would still apply. */
14350char $ac_func();
14351
14352int main() {
14353
14354/* The GNU C library defines this for functions which it implements
14355 to always fail with ENOSYS. Some functions are actually named
14356 something starting with __ and the normal name is an alias. */
14357#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14358choke me
14359#else
e8482f24 14360$ac_func();
10f2d63a
VZ
14361#endif
14362
14363; return 0; }
14364EOF
b64f0a5f 14365if { (eval echo configure:14366: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
14366 rm -rf conftest*
14367 eval "ac_cv_func_$ac_func=yes"
14368else
14369 echo "configure: failed program was:" >&5
14370 cat conftest.$ac_ext >&5
14371 rm -rf conftest*
14372 eval "ac_cv_func_$ac_func=no"
14373fi
14374rm -f conftest*
14375fi
14376
14377if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14378 echo "$ac_t""yes" 1>&6
14379 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14380 cat >> confdefs.h <<EOF
14381#define $ac_tr_func 1
14382EOF
14383
14384 cat >> confdefs.h <<\EOF
14385#define HAVE_SHL_LOAD 1
14386EOF
14387
14388 HAVE_SHL_FUNCS=1
14389
14390else
14391 echo "$ac_t""no" 1>&6
f6bcfd97 14392echo $ac_n "checking for dld in -lshl_load""... $ac_c" 1>&6
b64f0a5f 14393echo "configure:14394: checking for dld in -lshl_load" >&5
f6bcfd97
BP
14394ac_lib_var=`echo shl_load'_'dld | sed 'y%./+-%__p_%'`
14395if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14396 echo $ac_n "(cached) $ac_c" 1>&6
14397else
14398 ac_save_LIBS="$LIBS"
14399LIBS="-lshl_load $LIBS"
14400cat > conftest.$ac_ext <<EOF
b64f0a5f 14401#line 14402 "configure"
f6bcfd97
BP
14402#include "confdefs.h"
14403/* Override any gcc2 internal prototype to avoid an error. */
14404/* We use char because int might match the return type of a gcc2
14405 builtin and then its argument prototype would still apply. */
14406char dld();
14407
14408int main() {
14409dld()
14410; return 0; }
14411EOF
b64f0a5f 14412if { (eval echo configure:14413: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
f6bcfd97
BP
14413 rm -rf conftest*
14414 eval "ac_cv_lib_$ac_lib_var=yes"
14415else
14416 echo "configure: failed program was:" >&5
14417 cat conftest.$ac_ext >&5
14418 rm -rf conftest*
14419 eval "ac_cv_lib_$ac_lib_var=no"
14420fi
14421rm -f conftest*
14422LIBS="$ac_save_LIBS"
14423
14424fi
14425if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14426 echo "$ac_t""yes" 1>&6
14427
14428 HAVE_SHL_FUNCS=1
14429 LIBS="$LIBS -ldld"
14430
14431else
14432 echo "$ac_t""no" 1>&6
14433fi
14434
14435
10f2d63a
VZ
14436fi
14437done
14438
14439
14440fi
14441
14442
14443fi
14444done
14445
14446
f6bcfd97
BP
14447 if test "$HAVE_DL_FUNCS" = 1; then
14448 for ac_func in dlerror
14449do
14450echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
b64f0a5f 14451echo "configure:14452: checking for $ac_func" >&5
f6bcfd97
BP
14452if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14453 echo $ac_n "(cached) $ac_c" 1>&6
14454else
14455 cat > conftest.$ac_ext <<EOF
b64f0a5f 14456#line 14457 "configure"
f6bcfd97
BP
14457#include "confdefs.h"
14458/* System header to define __stub macros and hopefully few prototypes,
14459 which can conflict with char $ac_func(); below. */
14460#include <assert.h>
14461/* Override any gcc2 internal prototype to avoid an error. */
14462/* We use char because int might match the return type of a gcc2
14463 builtin and then its argument prototype would still apply. */
14464char $ac_func();
14465
14466int main() {
14467
14468/* The GNU C library defines this for functions which it implements
14469 to always fail with ENOSYS. Some functions are actually named
14470 something starting with __ and the normal name is an alias. */
14471#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14472choke me
14473#else
14474$ac_func();
14475#endif
14476
14477; return 0; }
14478EOF
b64f0a5f 14479if { (eval echo configure:14480: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
f6bcfd97
BP
14480 rm -rf conftest*
14481 eval "ac_cv_func_$ac_func=yes"
14482else
14483 echo "configure: failed program was:" >&5
14484 cat conftest.$ac_ext >&5
14485 rm -rf conftest*
14486 eval "ac_cv_func_$ac_func=no"
14487fi
14488rm -f conftest*
14489fi
14490
14491if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14492 echo "$ac_t""yes" 1>&6
14493 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14494 cat >> confdefs.h <<EOF
14495#define $ac_tr_func 1
14496EOF
14497 cat >> confdefs.h <<\EOF
14498#define HAVE_DLERROR 1
14499EOF
14500
14501else
14502 echo "$ac_t""no" 1>&6
14503echo $ac_n "checking for dlerror in -ldl""... $ac_c" 1>&6
b64f0a5f 14504echo "configure:14505: checking for dlerror in -ldl" >&5
f6bcfd97
BP
14505ac_lib_var=`echo dl'_'dlerror | sed 'y%./+-%__p_%'`
14506if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14507 echo $ac_n "(cached) $ac_c" 1>&6
14508else
14509 ac_save_LIBS="$LIBS"
14510LIBS="-ldl $LIBS"
14511cat > conftest.$ac_ext <<EOF
b64f0a5f 14512#line 14513 "configure"
f6bcfd97
BP
14513#include "confdefs.h"
14514/* Override any gcc2 internal prototype to avoid an error. */
14515/* We use char because int might match the return type of a gcc2
14516 builtin and then its argument prototype would still apply. */
14517char dlerror();
14518
14519int main() {
14520dlerror()
14521; return 0; }
14522EOF
b64f0a5f 14523if { (eval echo configure:14524: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
f6bcfd97
BP
14524 rm -rf conftest*
14525 eval "ac_cv_lib_$ac_lib_var=yes"
14526else
14527 echo "configure: failed program was:" >&5
14528 cat conftest.$ac_ext >&5
14529 rm -rf conftest*
14530 eval "ac_cv_lib_$ac_lib_var=no"
14531fi
14532rm -f conftest*
14533LIBS="$ac_save_LIBS"
14534
14535fi
14536if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14537 echo "$ac_t""yes" 1>&6
14538 cat >> confdefs.h <<\EOF
14539#define HAVE_DLERROR 1
14540EOF
14541
14542else
14543 echo "$ac_t""no" 1>&6
14544fi
14545
14546fi
14547done
14548
14549 fi
b4085ce6 14550 fi
f6bcfd97 14551
10f2d63a
VZ
14552 if test "$HAVE_DL_FUNCS" = 0; then
14553 if test "$HAVE_SHL_FUNCS" = 0; then
14554 if test "$USE_UNIX" = 1; then
b12915c1 14555 echo "configure: warning: Missing dynamic loading support, several features will be disabled" 1>&2
10f2d63a
VZ
14556 wxUSE_DYNLIB_CLASS=no
14557 else
b12915c1 14558 echo "configure: warning: Assuming wxLibrary class works on this platform" 1>&2
10f2d63a
VZ
14559 fi
14560 fi
14561 fi
14562fi
14563
b089607b
VZ
14564fi
14565
10f2d63a 14566if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
b12915c1 14567 cat >> confdefs.h <<\EOF
10f2d63a
VZ
14568#define wxUSE_DYNLIB_CLASS 1
14569EOF
14570
b12915c1
VZ
14571else
14572 wxUSE_ODBC=no
14573 wxUSE_SERIAL=no
10f2d63a
VZ
14574fi
14575
14576
14577if test "$wxUSE_UNICODE" = "yes" ; then
14578 cat >> confdefs.h <<\EOF
14579#define wxUSE_UNICODE 1
14580EOF
14581
14582fi
14583
14584if test "$wxUSE_WCSRTOMBS" = "yes" ; then
14585 cat >> confdefs.h <<\EOF
14586#define wxUSE_WCSRTOMBS 1
14587EOF
14588
14589fi
14590
14591if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
14592 cat >> confdefs.h <<\EOF
14593#define wxUSE_EXPERIMENTAL_PRINTF 1
14594EOF
14595
14596fi
14597
14598
b12915c1
VZ
14599if test "$wxUSE_SERIAL" = "yes" ; then
14600 cat >> confdefs.h <<\EOF
14601#define wxUSE_SERIAL 1
14602EOF
14603
14604fi
14605
14606
10f2d63a
VZ
14607IODBC_C_SRC=""
14608if test "$wxUSE_ODBC" = "yes" ; then
14609 cat >> confdefs.h <<\EOF
14610#define wxUSE_ODBC 1
14611EOF
14612
14613 WXODBCFLAG="-D_IODBC_"
14614 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
14615 IODBCOBJS="\$(IODBC_OBJS)"
14616else
14617 IODBCOBJS=
14618fi
14619
14620
14621if test "$wxUSE_POSTSCRIPT" = "yes" ; then
14622 cat >> confdefs.h <<\EOF
14623#define wxUSE_POSTSCRIPT 1
14624EOF
14625
14626fi
14627
14628cat >> confdefs.h <<\EOF
14629#define wxUSE_AFM_FOR_POSTSCRIPT 1
14630EOF
14631
14632
14633cat >> confdefs.h <<\EOF
14634#define wxUSE_NORMALIZED_PS_FONTS 1
14635EOF
14636
14637
14638
14639if test "$wxUSE_CONSTRAINTS" = "yes"; then
14640 cat >> confdefs.h <<\EOF
14641#define wxUSE_CONSTRAINTS 1
14642EOF
14643
14644 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
14645fi
14646
14647if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
14648 cat >> confdefs.h <<\EOF
14649#define wxUSE_MDI_ARCHITECTURE 1
14650EOF
14651
14652 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
14653fi
14654
14655if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
14656 cat >> confdefs.h <<\EOF
14657#define wxUSE_DOC_VIEW_ARCHITECTURE 1
14658EOF
14659
14660 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
14661 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
14662 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
14663 fi
14664fi
14665
14666if test "$wxUSE_HELP" = "yes"; then
14667 cat >> confdefs.h <<\EOF
14668#define wxUSE_HELP 1
14669EOF
14670
14671 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
14672fi
14673
14674if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
14675 if test "$wxUSE_CONSTRAINTS" != "yes"; then
14676 echo "configure: warning: Printing support cannot be used without constraints so it won't be compiled without it" 1>&2
14677 else
14678 cat >> confdefs.h <<\EOF
14679#define wxUSE_PRINTING_ARCHITECTURE 1
14680EOF
14681
14682 fi
14683 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
14684fi
14685
14686if test "$wxUSE_PROLOGIO" = "yes" ; then
14687 cat >> confdefs.h <<\EOF
14688#define wxUSE_PROLOGIO 1
14689EOF
14690
14691fi
14692
14693if test "$wxUSE_RESOURCES" = "yes" ; then
14694 if test "$wxUSE_PROLOGIO" = "yes" ; then
14695 cat >> confdefs.h <<\EOF
14696#define wxUSE_RESOURCES 1
14697EOF
14698
14699 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS resource"
14700 else
14701 echo "configure: warning: wxWindows ressource system requires PrologIO and can't be compiled without it." 1>&2
14702 fi
14703fi
14704
14705if test "$wxUSE_X_RESOURCES" = "yes"; then
14706 cat >> confdefs.h <<\EOF
14707#define wxUSE_X_RESOURCES 1
14708EOF
14709
14710fi
14711
14712
14713if test "$wxUSE_IPC" = "yes"; then
eb4efbdc
VZ
14714 if test "$wxUSE_SOCKETS" != "yes"; then
14715 echo "configure: warning: wxWindows IPC classes require sockets" 1>&2
14716 fi
14717
10f2d63a
VZ
14718 cat >> confdefs.h <<\EOF
14719#define wxUSE_IPC 1
14720EOF
14721
14722fi
14723
14724if test "$wxUSE_CLIPBOARD" = "yes"; then
14725 cat >> confdefs.h <<\EOF
14726#define wxUSE_CLIPBOARD 1
14727EOF
14728
14729fi
14730
14731if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
14732 if test "$wxUSE_GTK" = 1; then
14733 if test "$WXGTK12" != 1; then
14734 echo "configure: warning: Drag and drop is only supported under GTK+ 1.2" 1>&2
14735 wxUSE_DRAG_AND_DROP=no
14736 fi
14737 fi
14738
14739 if test "$wxUSE_MOTIF" = 1; then
14740 echo "configure: warning: Drag and drop is not yet supported under Motif" 1>&2
14741 wxUSE_DRAG_AND_DROP=no
14742 fi
14743
14744 if test "$USE_WIN32" = 1; then
c521c494
RL
14745
14746 for ac_hdr in ole2.h
10f2d63a
VZ
14747do
14748ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
14749echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
b64f0a5f 14750echo "configure:14751: checking for $ac_hdr" >&5
10f2d63a
VZ
14751if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
14752 echo $ac_n "(cached) $ac_c" 1>&6
14753else
14754 cat > conftest.$ac_ext <<EOF
b64f0a5f 14755#line 14756 "configure"
10f2d63a
VZ
14756#include "confdefs.h"
14757#include <$ac_hdr>
14758EOF
14759ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
b64f0a5f 14760{ (eval echo configure:14761: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
14761ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14762if test -z "$ac_err"; then
14763 rm -rf conftest*
14764 eval "ac_cv_header_$ac_safe=yes"
14765else
14766 echo "$ac_err" >&5
14767 echo "configure: failed program was:" >&5
14768 cat conftest.$ac_ext >&5
14769 rm -rf conftest*
14770 eval "ac_cv_header_$ac_safe=no"
14771fi
14772rm -f conftest*
14773fi
14774if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14775 echo "$ac_t""yes" 1>&6
14776 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
14777 cat >> confdefs.h <<EOF
14778#define $ac_tr_hdr 1
14779EOF
14780
14781else
14782 echo "$ac_t""no" 1>&6
14783fi
14784done
14785
c521c494
RL
14786
14787 if test "$ac_cv_header_ole2_h" = "yes" ; then
14788 if test "$GCC" = yes ; then
b64f0a5f
RL
14789 ALL_OBJECTS="$ALL_OBJECTS \$(OLEOBJS)"
14790 ALL_DEPFILES="$ALL_DEPFILES \$(OLEDEPS)"
c521c494 14791 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks"
b64f0a5f
RL
14792 LIBS="$LIBS -lole32 -luuid"
14793
14794 if test "$wxUSE_METAFILE" = "yes"; then
14795 cat >> confdefs.h <<\EOF
14796#define wxUSE_METAFILE 1
14797EOF
14798
14799 cat >> confdefs.h <<\EOF
14800#define wxUSE_ENH_METAFILE 1
14801EOF
14802
14803 fi
c521c494
RL
14804 fi
14805 else
10f2d63a
VZ
14806 echo "configure: warning: Drag and drop disabled because OLE headers not found" 1>&2
14807 wxUSE_DRAG_AND_DROP=no
14808 fi
14809 fi
14810
14811 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
14812 cat >> confdefs.h <<\EOF
14813#define wxUSE_DRAG_AND_DROP 1
14814EOF
14815
14816 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
14817 fi
14818
14819fi
14820
14821if test "$wxUSE_SPLINES" = "yes" ; then
14822 cat >> confdefs.h <<\EOF
14823#define wxUSE_SPLINES 1
14824EOF
14825
14826fi
14827
14828
14829if test "$wxUSE_ACCEL" = "yes"; then
14830 cat >> confdefs.h <<\EOF
14831#define wxUSE_ACCEL 1
14832EOF
14833
14834fi
14835
14836if test "$wxUSE_CARET" = "yes"; then
14837 cat >> confdefs.h <<\EOF
14838#define wxUSE_CARET 1
14839EOF
14840
14841 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
14842fi
14843
14844if test "$wxUSE_COMBOBOX" = "yes"; then
14845 cat >> confdefs.h <<\EOF
14846#define wxUSE_COMBOBOX 1
14847EOF
14848
14849fi
14850
14851if test "$wxUSE_CHOICE" = "yes"; then
14852 cat >> confdefs.h <<\EOF
14853#define wxUSE_CHOICE 1
14854EOF
14855
14856fi
14857
14858if test "$wxUSE_BMPBUTTON" = "yes"; then
14859 cat >> confdefs.h <<\EOF
14860#define wxUSE_BMPBUTTON 1
14861EOF
14862
14863fi
14864
14865if test "$wxUSE_CHECKBOX" = "yes"; then
14866 cat >> confdefs.h <<\EOF
14867#define wxUSE_CHECKBOX 1
14868EOF
14869
14870fi
14871
14872if test "$wxUSE_CHECKLST" = "yes"; then
14873 cat >> confdefs.h <<\EOF
14874#define wxUSE_CHECKLISTBOX 1
14875EOF
14876
14877 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
14878fi
14879
14880if test "$wxUSE_GAUGE" = "yes"; then
14881 cat >> confdefs.h <<\EOF
14882#define wxUSE_GAUGE 1
14883EOF
14884
14885fi
14886
d6a55c4b
VZ
14887if test "$wxUSE_NEW_GRID" = "yes"; then
14888 wxUSE_GRID="yes"
10f2d63a 14889 cat >> confdefs.h <<\EOF
d6a55c4b 14890#define wxUSE_NEW_GRID 1
10f2d63a
VZ
14891EOF
14892
d6a55c4b 14893 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS newgrid"
10f2d63a
VZ
14894fi
14895
d6a55c4b 14896if test "$wxUSE_GRID" = "yes"; then
10f2d63a 14897 cat >> confdefs.h <<\EOF
d6a55c4b 14898#define wxUSE_GRID 1
10f2d63a
VZ
14899EOF
14900
d6a55c4b 14901 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
10f2d63a
VZ
14902fi
14903
14904if test "$wxUSE_IMAGLIST" = "yes"; then
14905 cat >> confdefs.h <<\EOF
14906#define wxUSE_IMAGLIST 1
14907EOF
14908
14909fi
14910
14911if test "$wxUSE_LISTBOX" = "yes"; then
14912 cat >> confdefs.h <<\EOF
14913#define wxUSE_LISTBOX 1
14914EOF
14915
14916fi
14917
14918if test "$wxUSE_LISTCTRL" = "yes"; then
14919 if test "$wxUSE_IMAGLIST" = "yes"; then
14920 cat >> confdefs.h <<\EOF
14921#define wxUSE_LISTCTRL 1
14922EOF
14923
14924 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
14925 else
14926 echo "configure: warning: wxListCtrl requires wxImageList and won't be compiled without it" 1>&2
14927 fi
14928fi
14929
14930if test "$wxUSE_NOTEBOOK" = "yes"; then
14931 cat >> confdefs.h <<\EOF
14932#define wxUSE_NOTEBOOK 1
14933EOF
14934
14935 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
14936fi
14937
14938if test "$wxUSE_RADIOBOX" = "yes"; then
14939 cat >> confdefs.h <<\EOF
14940#define wxUSE_RADIOBOX 1
14941EOF
14942
14943fi
14944
14945if test "$wxUSE_RADIOBTN" = "yes"; then
14946 cat >> confdefs.h <<\EOF
14947#define wxUSE_RADIOBTN 1
14948EOF
14949
14950fi
14951
14952if test "$wxUSE_SASH" = "yes"; then
14953 cat >> confdefs.h <<\EOF
14954#define wxUSE_SASH 1
14955EOF
14956
14957 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
14958fi
14959
14960if test "$wxUSE_SCROLLBAR" = "yes"; then
14961 cat >> confdefs.h <<\EOF
14962#define wxUSE_SCROLLBAR 1
14963EOF
14964
741a9306 14965 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
10f2d63a
VZ
14966fi
14967
14968if test "$wxUSE_SLIDER" = "yes"; then
14969 cat >> confdefs.h <<\EOF
14970#define wxUSE_SLIDER 1
14971EOF
14972
14973fi
14974
14975if test "$wxUSE_SPINBTN" = "yes"; then
14976 cat >> confdefs.h <<\EOF
14977#define wxUSE_SPINBTN 1
14978EOF
14979
14980fi
14981
56cfaa52
RR
14982if test "$wxUSE_SPINCTRL" = "yes"; then
14983 cat >> confdefs.h <<\EOF
14984#define wxUSE_SPINCTRL 1
14985EOF
14986
14987fi
14988
10f2d63a
VZ
14989if test "$wxUSE_SPLITTER" = "yes"; then
14990 cat >> confdefs.h <<\EOF
14991#define wxUSE_SPLITTER 1
14992EOF
14993
14994 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
14995fi
14996
14997if test "$wxUSE_STATBMP" = "yes"; then
14998 cat >> confdefs.h <<\EOF
14999#define wxUSE_STATBMP 1
15000EOF
15001
15002fi
15003
15004if test "$wxUSE_STATBOX" = "yes"; then
15005 cat >> confdefs.h <<\EOF
15006#define wxUSE_STATBOX 1
15007EOF
15008
15009fi
15010
15011if test "$wxUSE_STATLINE" = "yes"; then
15012 if test "$wxUSE_WINE" = 1 ; then
15013 echo "configure: warning: wxStaticLine is not supported under WINE" 1>&2
15014 else
15015 cat >> confdefs.h <<\EOF
15016#define wxUSE_STATLINE 1
15017EOF
15018
15019 fi
15020fi
15021
15022if test "$wxUSE_STATUSBAR" = "yes"; then
15023 cat >> confdefs.h <<\EOF
15024#define wxUSE_STATUSBAR 1
15025EOF
15026
2286341c
VZ
15027
15028 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
10f2d63a
VZ
15029fi
15030
15031if test "$wxUSE_TABDIALOG" = "yes"; then
15032 cat >> confdefs.h <<\EOF
15033#define wxUSE_TAB_DIALOG 1
15034EOF
15035
15036 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab"
15037fi
15038
360d6699
VZ
15039if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
15040 cat >> confdefs.h <<\EOF
15041#define wxUSE_TOOLBAR_SIMPLE 1
15042EOF
15043
15044 wxUSE_TOOLBAR="yes"
15045fi
15046
10f2d63a
VZ
15047if test "$wxUSE_TOOLBAR" = "yes"; then
15048 cat >> confdefs.h <<\EOF
15049#define wxUSE_TOOLBAR 1
15050EOF
15051
360d6699
VZ
15052
15053 if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
15054 wxUSE_TOOLBAR_NATIVE="yes"
15055 fi
15056
10f2d63a
VZ
15057 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
15058fi
15059
360d6699
VZ
15060if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
15061 cat >> confdefs.h <<\EOF
15062#define wxUSE_TOOLBAR_NATIVE 1
15063EOF
15064
15065fi
15066
10f2d63a
VZ
15067if test "$wxUSE_TOOLTIPS" = "yes"; then
15068 if test "$wxUSE_MOTIF" = 1; then
15069 echo "configure: warning: wxTooltip not supported yet under Motif" 1>&2
15070 else
15071 if test "$wxUSE_WINE" = 1; then
15072 echo "configure: warning: wxTooltip not supported under WINE" 1>&2
15073 else
15074 cat >> confdefs.h <<\EOF
15075#define wxUSE_TOOLTIPS 1
15076EOF
15077
15078 fi
15079 fi
15080fi
15081
15082if test "$wxUSE_TREECTRL" = "yes"; then
15083 if test "$wxUSE_IMAGLIST" = "yes"; then
15084 cat >> confdefs.h <<\EOF
15085#define wxUSE_TREECTRL 1
15086EOF
15087
15088 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
15089 else
15090 echo "configure: warning: wxTreeCtrl requires wxImageList and won't be compiled without it" 1>&2
15091 fi
15092fi
15093
15094
15095
10f2d63a
VZ
15096if test "$wxUSE_DIRDLG" = "yes"; then
15097 if test "$wxUSE_CONSTRAINTS" != "yes"; then
15098 echo "configure: warning: wxDirDialog requires constraints so it won't be compiled without them" 1>&2
15099 else
15100 if test "$wxUSE_TREECTRL" != "yes"; then
15101 echo "configure: warning: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" 1>&2
15102 else
15103 cat >> confdefs.h <<\EOF
15104#define wxUSE_DIRDLG 1
15105EOF
15106
15107 fi
15108 fi
15109fi
15110
15111if test "$wxUSE_TEXTDLG" = "yes"; then
15112 cat >> confdefs.h <<\EOF
15113#define wxUSE_TEXTDLG 1
15114EOF
15115
15116fi
15117
15118if test "$wxUSE_STARTUP_TIPS" = "yes"; then
15119 if test "$wxUSE_CONSTRAINTS" != "yes"; then
15120 echo "configure: warning: Startup tips requires constraints and won't be compiled without them" 1>&2
15121 else
15122 cat >> confdefs.h <<\EOF
15123#define wxUSE_STARTUP_TIPS 1
15124EOF
15125
15126 fi
15127fi
15128
15129if test "$wxUSE_PROGRESSDLG" = "yes"; then
15130 if test "$wxUSE_CONSTRAINTS" != "yes"; then
15131 echo "configure: warning: wxProgressDialog requires constraints so it won't be compiled without them" 1>&2
15132 else
15133 cat >> confdefs.h <<\EOF
15134#define wxUSE_PROGRESSDLG 1
15135EOF
15136
15137 fi
15138fi
15139
15140if test "$wxUSE_MINIFRAME" = "yes"; then
15141 cat >> confdefs.h <<\EOF
15142#define wxUSE_MINIFRAME 1
15143EOF
15144
15145 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
15146fi
15147
15148if test "$wxUSE_HTML" = "yes"; then
15149 cat >> confdefs.h <<\EOF
15150#define wxUSE_HTML 1
15151EOF
15152
15153 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html"
15154 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS html"
15155fi
15156
15157if test "$wxUSE_VALIDATORS" = "yes"; then
15158 cat >> confdefs.h <<\EOF
15159#define wxUSE_VALIDATORS 1
15160EOF
15161
15162 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
15163fi
15164
15165if test "$wxUSE_GIF" = "yes" ; then
15166 cat >> confdefs.h <<\EOF
15167#define wxUSE_GIF 1
15168EOF
15169
15170fi
15171
15172if test "$wxUSE_PCX" = "yes" ; then
15173 cat >> confdefs.h <<\EOF
15174#define wxUSE_PCX 1
15175EOF
15176
15177fi
15178
15179if test "$wxUSE_PNM" = "yes" ; then
15180 cat >> confdefs.h <<\EOF
15181#define wxUSE_PNM 1
15182EOF
15183
15184fi
15185
15186
32832908
VZ
15187if test "$cross_compiling" = "yes"; then
15188 OSINFO="\"$host\""
15189else
15190 OSINFO=`uname -s -r -m`
15191 OSINFO="\"$OSINFO\""
15192fi
15193
aaa37c0d
VZ
15194cat >> confdefs.h <<EOF
15195#define WXWIN_OS_DESCRIPTION $OSINFO
15196EOF
15197
15198
15199
f6bcfd97
BP
15200GUILIBS="$GUI_TK_LIBRARY $TOOLKIT_LINK"
15201OPENGL_LIBS="$OPENGL_LINK"
10f2d63a 15202
b4085ce6
GD
15203if test "$USE_MAC" = 1 ; then
15204 EXTRA_LIBS="$LIBS $POSIX4_LINK $INET_LINK $WCHAR_LINK $THREADS_LINK $DMALLOC_LINK $DL_LINK $ZLIB_LINK -framework System"
15205 CFLAGS="${CFLAGS} -fpascal-strings"
15206 CPPFLAGS="${CPPFLAGS} -fpascal-strings"
15207else
15208 EXTRA_LIBS="$LIBS $POSIX4_LINK $INET_LINK $WCHAR_LINK $THREADS_LINK $DMALLOC_LINK $DL_LINK $ZLIB_LINK -lm"
15209fi
10f2d63a 15210if test "$wxUSE_GUI" = "yes"; then
3fed1840 15211 EXTRA_LIBS="$GUILIBS $PNG_LINK $JPEG_LINK $TIFF_LINK $FREETYPE_LINK $EXTRA_LIBS"
10f2d63a
VZ
15212fi
15213
15214LD_LIBS="\${top_builddir}/lib/${WX_LIBRARY_NAME_STATIC} $EXTRA_LIBS"
15215
3fed1840 15216INCLUDES="-I. -I\${top_builddir}/include -I\${top_srcdir}/include $ZLIB_INCLUDE $PNG_INCLUDE $JPEG_INCLUDE $TIFF_INCLUDE $FREETYPE_INCLUDE $TOOLKIT_INCLUDE"
10f2d63a 15217
f6bcfd97
BP
15218if test "$wxUSE_GTK" = 1; then
15219 WXCONFIG_INCLUDE=""
15220else
15221 WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE"
15222fi
15223
10f2d63a
VZ
15224if test "$GXX" = yes ; then
15225 CXXWARNINGS="-Wall"
d6a55c4b 15226 fi
10f2d63a
VZ
15227EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE $INCLUDES"
15228
f6bcfd97 15229CFLAGS=`echo $CFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \\+/ /g'`
10f2d63a
VZ
15230CXXFLAGS=`echo $CXXFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \+/ /g'`
15231
e694c22c
VZ
15232LDFLAGS="$LDFLAGS $PROFILE"
15233
10f2d63a
VZ
15234if test "$wxUSE_GUI" = "yes"; then
15235
6164f93c
VZ
15236 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS controls dialogs dragimag \
15237 drawing dynamic event font fractal image menu \
15238 minimal richedit"
b12915c1 15239
88d3a15c 15240 CPPFLAGS="$CPPFLAGS \$(EXTRADEFS) \$(APPEXTRADEFS)"
10f2d63a
VZ
15241else
15242 SAMPLES_SUBDIRS=""
15243fi
15244
ec14dd32
VZ
15245SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
15246
15247
15248
10f2d63a
VZ
15249
15250
15251
15252
15253
15254
15255
15256
15257
15258
15259
15260
15261
15262
15263
15264
15265
15266
15267
15268
15269
15270
15271
15272
15273
15274
15275
15276
15277
15278
15279
15280
15281
15282
15283
15284
15285
15286
15287
15288
15289
15290
15291
15292
15293
15294
15295
15296
15297
15298
15299
15300
1d62a8b4 15301
bdad4e7e
RR
15302
15303
15304
15305
15306
15307
15308
32832908
VZ
15309
15310
15311
15312
15313
15314
15315
15316
15317
15318
15319
15320
15321
bdad4e7e
RR
15322
15323
15324
e694c22c 15325
b12915c1 15326
2224580a
VZ
15327
15328
15329
15330
dad6c0ea 15331
f6bcfd97
BP
15332
15333
15334
15335
dad6c0ea 15336
caa2c79b 15337
3711412e 15338
10f2d63a
VZ
15339
15340
15341echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
b64f0a5f 15342echo "configure:15343: checking whether ${MAKE-make} sets \${MAKE}" >&5
10f2d63a
VZ
15343set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
15344if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
15345 echo $ac_n "(cached) $ac_c" 1>&6
15346else
15347 cat > conftestmake <<\EOF
15348all:
15349 @echo 'ac_maketemp="${MAKE}"'
15350EOF
15351# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
15352eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
15353if test -n "$ac_maketemp"; then
15354 eval ac_cv_prog_make_${ac_make}_set=yes
15355else
15356 eval ac_cv_prog_make_${ac_make}_set=no
15357fi
15358rm -f conftestmake
15359fi
15360if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
15361 echo "$ac_t""yes" 1>&6
15362 SET_MAKE=
15363else
15364 echo "$ac_t""no" 1>&6
15365 SET_MAKE="MAKE=${MAKE-make}"
15366fi
15367
15368
00cf1208
RR
15369if test -d include; then
15370 if test -d include/wx; then
15371 if test -d include/wx/${TOOLKIT_DIR}; then
15372 if test -f include/wx/${TOOLKIT_DIR}/setup.h; then
15373 mv -f include/wx/${TOOLKIT_DIR}/setup.h setup.h
15374 fi
15375 fi
15376 fi
15377fi
15378
10f2d63a
VZ
15379
15380
2224580a 15381if test "$wxUSE_GUI" = "yes"; then
ec90f5e5 15382 wx_cv_path_samplesubdirs=$SAMPLES_SUBDIRS
e8482f24
GL
15383 wx_cv_path_ifs=$PATH_IFS
15384 wx_cv_program_ext=$PROGRAM_EXT
15385 wx_cv_target_library=$WX_TARGET_LIBRARY
3711412e 15386 wx_cv_target_libtype=$WX_TARGET_LIBRARY_TYPE
e8482f24 15387 subdirs="demos samples utils contrib"
2224580a
VZ
15388
15389fi
10f2d63a
VZ
15390
15391trap '' 1 2 15
15392cat > confcache <<\EOF
15393# This file is a shell script that caches the results of configure
15394# tests run on this system so they can be shared between configure
15395# scripts and configure runs. It is not useful on other systems.
15396# If it contains results you don't want to keep, you may remove or edit it.
15397#
15398# By default, configure uses ./config.cache as the cache file,
15399# creating it if it does not exist already. You can give configure
15400# the --cache-file=FILE option to use a different cache file; that is
15401# what configure does when it calls configure scripts in
15402# subdirectories, so they share the cache.
15403# Giving --cache-file=/dev/null disables caching, for debugging configure.
15404# config.status only pays attention to the cache file if you give it the
15405# --recheck option to rerun configure.
15406#
15407EOF
15408# The following way of writing the cache mishandles newlines in values,
15409# but we know of no workaround that is simple, portable, and efficient.
15410# So, don't put newlines in cache variables' values.
15411# Ultrix sh set writes to stderr and can't be redirected directly,
15412# and sets the high bit in the cache file unless we assign to the vars.
15413(set) 2>&1 |
15414 case `(ac_space=' '; set | grep ac_space) 2>&1` in
15415 *ac_space=\ *)
15416 # `set' does not quote correctly, so add quotes (double-quote substitution
15417 # turns \\\\ into \\, and sed turns \\ into \).
15418 sed -n \
15419 -e "s/'/'\\\\''/g" \
15420 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
15421 ;;
15422 *)
15423 # `set' quotes correctly as required by POSIX, so do not add quotes.
15424 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
15425 ;;
15426 esac >> confcache
15427if cmp -s $cache_file confcache; then
15428 :
15429else
15430 if test -w $cache_file; then
15431 echo "updating cache $cache_file"
15432 cat confcache > $cache_file
15433 else
15434 echo "not updating unwritable cache $cache_file"
15435 fi
15436fi
15437rm -f confcache
15438
15439trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
15440
15441test "x$prefix" = xNONE && prefix=$ac_default_prefix
15442# Let make expand exec_prefix.
15443test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15444
15445# Any assignment to VPATH causes Sun make to only execute
15446# the first set of double-colon rules, so remove it if not needed.
15447# If there is a colon in the path, we need to keep it.
15448if test "x$srcdir" = x.; then
15449 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
15450fi
15451
15452trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
15453
15454DEFS=-DHAVE_CONFIG_H
15455
15456# Without the "./", some shells look in PATH for config.status.
15457: ${CONFIG_STATUS=./config.status}
15458
15459echo creating $CONFIG_STATUS
15460rm -f $CONFIG_STATUS
15461cat > $CONFIG_STATUS <<EOF
15462#! /bin/sh
15463# Generated automatically by configure.
15464# Run this file to recreate the current configuration.
15465# This directory was configured as follows,
15466# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15467#
15468# $0 $ac_configure_args
15469#
15470# Compiler output produced by configure, useful for debugging
15471# configure, is in ./config.log if it exists.
15472
15473ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
15474for ac_option
15475do
15476 case "\$ac_option" in
15477 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15478 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
15479 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
15480 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
e8482f24 15481 echo "$CONFIG_STATUS generated by autoconf version 2.13"
10f2d63a
VZ
15482 exit 0 ;;
15483 -help | --help | --hel | --he | --h)
15484 echo "\$ac_cs_usage"; exit 0 ;;
15485 *) echo "\$ac_cs_usage"; exit 1 ;;
15486 esac
15487done
15488
15489ac_given_srcdir=$srcdir
15490ac_given_INSTALL="$INSTALL"
15491
15492trap 'rm -fr `echo "
15493 wx-config
15494 src/make.env
15495 src/makeprog.env
15496 src/makelib.env
15497 Makefile
10f2d63a
VZ
15498 setup.h:setup.h.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
15499EOF
15500cat >> $CONFIG_STATUS <<EOF
15501
15502# Protect against being on the right side of a sed subst in config.status.
15503sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
15504 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
15505$ac_vpsub
15506$extrasub
15507s%@SHELL@%$SHELL%g
15508s%@CFLAGS@%$CFLAGS%g
15509s%@CPPFLAGS@%$CPPFLAGS%g
15510s%@CXXFLAGS@%$CXXFLAGS%g
15511s%@FFLAGS@%$FFLAGS%g
15512s%@DEFS@%$DEFS%g
15513s%@LDFLAGS@%$LDFLAGS%g
15514s%@LIBS@%$LIBS%g
15515s%@exec_prefix@%$exec_prefix%g
15516s%@prefix@%$prefix%g
15517s%@program_transform_name@%$program_transform_name%g
15518s%@bindir@%$bindir%g
15519s%@sbindir@%$sbindir%g
15520s%@libexecdir@%$libexecdir%g
15521s%@datadir@%$datadir%g
15522s%@sysconfdir@%$sysconfdir%g
15523s%@sharedstatedir@%$sharedstatedir%g
15524s%@localstatedir@%$localstatedir%g
15525s%@libdir@%$libdir%g
15526s%@includedir@%$includedir%g
15527s%@oldincludedir@%$oldincludedir%g
15528s%@infodir@%$infodir%g
15529s%@mandir@%$mandir%g
7c66a493
VZ
15530s%@host@%$host%g
15531s%@host_alias@%$host_alias%g
15532s%@host_cpu@%$host_cpu%g
15533s%@host_vendor@%$host_vendor%g
15534s%@host_os@%$host_os%g
15535s%@target@%$target%g
15536s%@target_alias@%$target_alias%g
15537s%@target_cpu@%$target_cpu%g
15538s%@target_vendor@%$target_vendor%g
15539s%@target_os@%$target_os%g
15540s%@build@%$build%g
15541s%@build_alias@%$build_alias%g
15542s%@build_cpu@%$build_cpu%g
15543s%@build_vendor@%$build_vendor%g
15544s%@build_os@%$build_os%g
10f2d63a
VZ
15545s%@CC@%$CC%g
15546s%@CPP@%$CPP%g
15547s%@CXX@%$CXX%g
15548s%@CXXCPP@%$CXXCPP%g
15549s%@RANLIB@%$RANLIB%g
15550s%@AR@%$AR%g
15551s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
15552s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
15553s%@INSTALL_DATA@%$INSTALL_DATA%g
15554s%@STRIP@%$STRIP%g
15555s%@YACC@%$YACC%g
15556s%@LEX@%$LEX%g
15557s%@LEXLIB@%$LEXLIB%g
15558s%@LN_S@%$LN_S%g
6f72b082 15559s%@GTK_CONFIG_2_0@%$GTK_CONFIG_2_0%g
10f2d63a
VZ
15560s%@GTK_CONFIG@%$GTK_CONFIG%g
15561s%@GTK_CFLAGS@%$GTK_CFLAGS%g
15562s%@GTK_LIBS@%$GTK_LIBS%g
ab9b9eab
VZ
15563s%@X_CFLAGS@%$X_CFLAGS%g
15564s%@X_PRE_LIBS@%$X_PRE_LIBS%g
15565s%@X_LIBS@%$X_LIBS%g
15566s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
ec14dd32
VZ
15567s%@LEX_STEM@%$LEX_STEM%g
15568s%@PATH_IFS@%$PATH_IFS%g
10f2d63a
VZ
15569s%@WX_MAJOR_VERSION_NUMBER@%$WX_MAJOR_VERSION_NUMBER%g
15570s%@WX_MINOR_VERSION_NUMBER@%$WX_MINOR_VERSION_NUMBER%g
15571s%@WX_RELEASE_NUMBER@%$WX_RELEASE_NUMBER%g
15572s%@WX_LIBRARY_NAME@%$WX_LIBRARY_NAME%g
15573s%@WX_LIBRARY_NAME_STATIC@%$WX_LIBRARY_NAME_STATIC%g
15574s%@WX_LIBRARY_NAME_SHARED@%$WX_LIBRARY_NAME_SHARED%g
15575s%@WX_LIBRARY@%$WX_LIBRARY%g
15576s%@WX_TARGET_LIBRARY@%$WX_TARGET_LIBRARY%g
15577s%@WX_LIBRARY_LINK1@%$WX_LIBRARY_LINK1%g
15578s%@WX_LIBRARY_LINK2@%$WX_LIBRARY_LINK2%g
15579s%@WX_LIBRARY_LINK3@%$WX_LIBRARY_LINK3%g
15580s%@PROGRAM_EXT@%$PROGRAM_EXT%g
bdad4e7e
RR
15581s%@WX_LIBRARY_NAME_GL@%$WX_LIBRARY_NAME_GL%g
15582s%@WX_LIBRARY_NAME_STATIC_GL@%$WX_LIBRARY_NAME_STATIC_GL%g
15583s%@WX_LIBRARY_NAME_SHARED_GL@%$WX_LIBRARY_NAME_SHARED_GL%g
15584s%@WX_LIBRARY_GL@%$WX_LIBRARY_GL%g
15585s%@WX_TARGET_LIBRARY_GL@%$WX_TARGET_LIBRARY_GL%g
15586s%@WX_LIBRARY_LINK1_GL@%$WX_LIBRARY_LINK1_GL%g
15587s%@WX_LIBRARY_LINK2_GL@%$WX_LIBRARY_LINK2_GL%g
15588s%@WX_LIBRARY_LINK3_GL@%$WX_LIBRARY_LINK3_GL%g
10f2d63a
VZ
15589s%@WX_ALL@%$WX_ALL%g
15590s%@WX_ALL_INSTALLED@%$WX_ALL_INSTALLED%g
15591s%@SHARED_LD@%$SHARED_LD%g
15592s%@PIC_FLAG@%$PIC_FLAG%g
15593s%@DEP_INFO_FLAGS@%$DEP_INFO_FLAGS%g
caa2c79b 15594s%@CODE_GEN_FLAGS@%$CODE_GEN_FLAGS%g
1d62a8b4 15595s%@BURNT_LIBRARY_NAME@%$BURNT_LIBRARY_NAME%g
bdad4e7e 15596s%@BURNT_LIBRARY_NAME_GL@%$BURNT_LIBRARY_NAME_GL%g
f6bcfd97 15597s%@WX_TARGET_LIBRARY_SONAME@%$WX_TARGET_LIBRARY_SONAME%g
3711412e 15598s%@WX_TARGET_LIBRARY_TYPE@%$WX_TARGET_LIBRARY_TYPE%g
10f2d63a 15599s%@WXDEBUG_DEFINE@%$WXDEBUG_DEFINE%g
dad6c0ea
VZ
15600s%@USE_GUI@%$USE_GUI%g
15601s%@AFMINSTALL@%$AFMINSTALL%g
10f2d63a
VZ
15602s%@TOOLKIT@%$TOOLKIT%g
15603s%@TOOLKIT_DEF@%$TOOLKIT_DEF%g
15604s%@TOOLKIT_DIR@%$TOOLKIT_DIR%g
f6bcfd97 15605s%@TOOLKIT_NAME@%$TOOLKIT_NAME%g
10f2d63a 15606s%@TOOLKIT_INCLUDE@%$TOOLKIT_INCLUDE%g
f6bcfd97 15607s%@WXCONFIG_INCLUDE@%$WXCONFIG_INCLUDE%g
10f2d63a
VZ
15608s%@GUIHEADERS@%$GUIHEADERS%g
15609s%@GUIOBJS@%$GUIOBJS%g
15610s%@COMMONOBJS@%$COMMONOBJS%g
15611s%@GENERICOBJS@%$GENERICOBJS%g
15612s%@GUIDEPS@%$GUIDEPS%g
15613s%@COMMONDEPS@%$COMMONDEPS%g
15614s%@GENERICDEPS@%$GENERICDEPS%g
15615s%@IODBCOBJS@%$IODBCOBJS%g
15616s%@UNIXOBJS@%$UNIXOBJS%g
15617s%@UNIXDEPS@%$UNIXDEPS%g
15618s%@ALL_OBJECTS@%$ALL_OBJECTS%g
15619s%@ALL_DEPFILES@%$ALL_DEPFILES%g
10f2d63a 15620s%@GUIDIST@%$GUIDIST%g
2224580a
VZ
15621s%@PORT_FILES@%$PORT_FILES%g
15622s%@DISTDIR@%$DISTDIR%g
15623s%@RPM_SPEC@%$RPM_SPEC%g
15624s%@RPM_FILES@%$RPM_FILES%g
10f2d63a
VZ
15625s%@SRC_SUBDIRS@%$SRC_SUBDIRS%g
15626s%@INCLUDE_SUBDIRS@%$INCLUDE_SUBDIRS%g
15627s%@UTILS_SUBDIRS@%$UTILS_SUBDIRS%g
15628s%@DOCS_SUBDIRS@%$DOCS_SUBDIRS%g
15629s%@SAMPLES_SUBDIRS@%$SAMPLES_SUBDIRS%g
15630s%@USER_SUBDIRS@%$USER_SUBDIRS%g
15631s%@EXTRA_LIBS@%$EXTRA_LIBS%g
f6bcfd97 15632s%@OPENGL_LIBS@%$OPENGL_LIBS%g
b12915c1 15633s%@EXTRADEFS@%$EXTRADEFS%g
10f2d63a 15634s%@LD_LIBS@%$LD_LIBS%g
32832908
VZ
15635s%@RCINPUTSWITCH@%$RCINPUTSWITCH%g
15636s%@RCOUTPUTSWITCH@%$RCOUTPUTSWITCH%g
15637s%@RESPROGRAM@%$RESPROGRAM%g
15638s%@RESCOMP@%$RESCOMP%g
15639s%@RESFLAGS@%$RESFLAGS%g
15640s%@DLLTOOL@%$DLLTOOL%g
15641s%@AS@%$AS%g
15642s%@NM@%$NM%g
15643s%@LD@%$LD%g
15644s%@MAKEINFO@%$MAKEINFO%g
10f2d63a 15645s%@SET_MAKE@%$SET_MAKE%g
2224580a 15646s%@subdirs@%$subdirs%g
10f2d63a
VZ
15647
15648CEOF
15649EOF
15650
15651cat >> $CONFIG_STATUS <<\EOF
15652
15653# Split the substitutions into bite-sized pieces for seds with
15654# small command number limits, like on Digital OSF/1 and HP-UX.
15655ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
15656ac_file=1 # Number of current file.
15657ac_beg=1 # First line for current file.
15658ac_end=$ac_max_sed_cmds # Line after last line for current file.
15659ac_more_lines=:
15660ac_sed_cmds=""
15661while $ac_more_lines; do
15662 if test $ac_beg -gt 1; then
15663 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
15664 else
15665 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
15666 fi
15667 if test ! -s conftest.s$ac_file; then
15668 ac_more_lines=false
15669 rm -f conftest.s$ac_file
15670 else
15671 if test -z "$ac_sed_cmds"; then
15672 ac_sed_cmds="sed -f conftest.s$ac_file"
15673 else
15674 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
15675 fi
15676 ac_file=`expr $ac_file + 1`
15677 ac_beg=$ac_end
15678 ac_end=`expr $ac_end + $ac_max_sed_cmds`
15679 fi
15680done
15681if test -z "$ac_sed_cmds"; then
15682 ac_sed_cmds=cat
15683fi
15684EOF
15685
15686cat >> $CONFIG_STATUS <<EOF
15687
15688CONFIG_FILES=\${CONFIG_FILES-"wx-config
15689 src/make.env
15690 src/makeprog.env
15691 src/makelib.env
15692 Makefile
10f2d63a
VZ
15693 "}
15694EOF
15695cat >> $CONFIG_STATUS <<\EOF
15696for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
15697 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
15698 case "$ac_file" in
15699 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
15700 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
15701 *) ac_file_in="${ac_file}.in" ;;
15702 esac
15703
15704 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
15705
15706 # Remove last slash and all that follows it. Not all systems have dirname.
15707 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
15708 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
15709 # The file is in a subdirectory.
15710 test ! -d "$ac_dir" && mkdir "$ac_dir"
15711 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
15712 # A "../" for each directory in $ac_dir_suffix.
15713 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
15714 else
15715 ac_dir_suffix= ac_dots=
15716 fi
15717
15718 case "$ac_given_srcdir" in
15719 .) srcdir=.
15720 if test -z "$ac_dots"; then top_srcdir=.
15721 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
15722 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
15723 *) # Relative path.
15724 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
15725 top_srcdir="$ac_dots$ac_given_srcdir" ;;
15726 esac
15727
15728 case "$ac_given_INSTALL" in
15729 [/$]*) INSTALL="$ac_given_INSTALL" ;;
15730 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
15731 esac
15732
15733 echo creating "$ac_file"
15734 rm -f "$ac_file"
15735 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
15736 case "$ac_file" in
15737 *Makefile*) ac_comsub="1i\\
15738# $configure_input" ;;
15739 *) ac_comsub= ;;
15740 esac
15741
15742 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
15743 sed -e "$ac_comsub
15744s%@configure_input@%$configure_input%g
15745s%@srcdir@%$srcdir%g
15746s%@top_srcdir@%$top_srcdir%g
15747s%@INSTALL@%$INSTALL%g
15748" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
15749fi; done
15750rm -f conftest.s*
15751
15752# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
15753# NAME is the cpp macro being defined and VALUE is the value it is being given.
15754#
15755# ac_d sets the value in "#define NAME VALUE" lines.
15756ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
15757ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
15758ac_dC='\3'
15759ac_dD='%g'
15760# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
15761ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
15762ac_uB='\([ ]\)%\1#\2define\3'
15763ac_uC=' '
15764ac_uD='\4%g'
15765# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
15766ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
15767ac_eB='$%\1#\2define\3'
15768ac_eC=' '
15769ac_eD='%g'
15770
15771if test "${CONFIG_HEADERS+set}" != set; then
15772EOF
15773cat >> $CONFIG_STATUS <<EOF
15774 CONFIG_HEADERS="setup.h:setup.h.in"
15775EOF
15776cat >> $CONFIG_STATUS <<\EOF
15777fi
15778for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
15779 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
15780 case "$ac_file" in
15781 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
15782 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
15783 *) ac_file_in="${ac_file}.in" ;;
15784 esac
15785
15786 echo creating $ac_file
15787
15788 rm -f conftest.frag conftest.in conftest.out
15789 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
15790 cat $ac_file_inputs > conftest.in
15791
15792EOF
15793
15794# Transform confdefs.h into a sed script conftest.vals that substitutes
15795# the proper values into config.h.in to produce config.h. And first:
15796# Protect against being on the right side of a sed subst in config.status.
15797# Protect against being in an unquoted here document in config.status.
15798rm -f conftest.vals
15799cat > conftest.hdr <<\EOF
15800s/[\\&%]/\\&/g
15801s%[\\$`]%\\&%g
15802s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
15803s%ac_d%ac_u%gp
15804s%ac_u%ac_e%gp
15805EOF
15806sed -n -f conftest.hdr confdefs.h > conftest.vals
15807rm -f conftest.hdr
15808
15809# This sed command replaces #undef with comments. This is necessary, for
15810# example, in the case of _POSIX_SOURCE, which is predefined and required
15811# on some systems where configure will not decide to define it.
15812cat >> conftest.vals <<\EOF
15813s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
15814EOF
15815
15816# Break up conftest.vals because some shells have a limit on
15817# the size of here documents, and old seds have small limits too.
15818
15819rm -f conftest.tail
15820while :
15821do
15822 ac_lines=`grep -c . conftest.vals`
15823 # grep -c gives empty output for an empty file on some AIX systems.
15824 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
15825 # Write a limited-size here document to conftest.frag.
15826 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
15827 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
15828 echo 'CEOF
15829 sed -f conftest.frag conftest.in > conftest.out
15830 rm -f conftest.in
15831 mv conftest.out conftest.in
15832' >> $CONFIG_STATUS
15833 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
15834 rm -f conftest.vals
15835 mv conftest.tail conftest.vals
15836done
15837rm -f conftest.vals
15838
15839cat >> $CONFIG_STATUS <<\EOF
15840 rm -f conftest.frag conftest.h
15841 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
15842 cat conftest.in >> conftest.h
15843 rm -f conftest.in
15844 if cmp -s $ac_file conftest.h 2>/dev/null; then
15845 echo "$ac_file is unchanged"
15846 rm -f conftest.h
15847 else
15848 # Remove last slash and all that follows it. Not all systems have dirname.
15849 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
15850 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
15851 # The file is in a subdirectory.
15852 test ! -d "$ac_dir" && mkdir "$ac_dir"
15853 fi
15854 rm -f $ac_file
15855 mv conftest.h $ac_file
15856 fi
15857fi; done
15858
15859EOF
15860cat >> $CONFIG_STATUS <<EOF
15861
15862 TOOLKIT_DIR="${TOOLKIT_DIR}"
f6bcfd97 15863 TOOLKIT_NAME="${TOOLKIT_NAME}"
07eb77a6 15864 LN_S="${LN_S}"
10f2d63a
VZ
15865
15866
15867EOF
15868cat >> $CONFIG_STATUS <<\EOF
15869
15870 chmod +x wx-config
f6bcfd97
BP
15871 mv wx-config wx${TOOLKIT_NAME}-config
15872 ${LN_S} wx${TOOLKIT_NAME}-config wx-config
00cf1208
RR
15873
15874
15875 if test ! -d lib; then
15876 mkdir lib
15877 fi
15878 if test ! -d lib/wx; then
15879 mkdir lib/wx
15880 fi
15881 if test ! -d lib/wx/include; then
15882 mkdir lib/wx/include
15883 fi
15884 if test ! -d lib/wx/include/wx; then
15885 mkdir lib/wx/include/wx
15886 fi
f6bcfd97
BP
15887 if test ! -d lib/wx/include/wx/${TOOLKIT_NAME}; then
15888 mkdir lib/wx/include/wx/${TOOLKIT_NAME}
00cf1208
RR
15889 fi
15890 if test -f setup.h; then
f6bcfd97 15891 cp -f setup.h lib/wx/include/wx/${TOOLKIT_NAME}/setup.h
00cf1208 15892 fi
07eb77a6 15893
00cf1208 15894
10f2d63a
VZ
15895 if test ! -d include; then
15896 mkdir include
15897 fi
15898 if test ! -d include/wx; then
15899 mkdir include/wx
15900 fi
15901 if test ! -d include/wx/${TOOLKIT_DIR}; then
15902 mkdir include/wx/${TOOLKIT_DIR}
15903 fi
afc31813
VZ
15904 if test -f setup.h; then
15905 mv -f setup.h include/wx/${TOOLKIT_DIR}/setup.h
15906 fi
00cf1208 15907
10f2d63a
VZ
15908
15909exit 0
15910EOF
15911chmod +x $CONFIG_STATUS
15912rm -fr confdefs* $ac_clean_files
15913test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
15914
2224580a
VZ
15915if test "$no_recursion" != yes; then
15916
15917 # Remove --cache-file and --srcdir arguments so they do not pile up.
15918 ac_sub_configure_args=
15919 ac_prev=
15920 for ac_arg in $ac_configure_args; do
15921 if test -n "$ac_prev"; then
15922 ac_prev=
15923 continue
15924 fi
15925 case "$ac_arg" in
15926 -cache-file | --cache-file | --cache-fil | --cache-fi \
15927 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
15928 ac_prev=cache_file ;;
15929 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
15930 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
15931 ;;
15932 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
15933 ac_prev=srcdir ;;
15934 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
15935 ;;
15936 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
15937 esac
15938 done
15939
e8482f24 15940 for ac_config_dir in demos samples utils contrib; do
2224580a
VZ
15941
15942 # Do not complain, so a configure script can configure whichever
15943 # parts of a large source tree are present.
15944 if test ! -d $srcdir/$ac_config_dir; then
15945 continue
15946 fi
15947
15948 echo configuring in $ac_config_dir
15949
15950 case "$srcdir" in
15951 .) ;;
15952 *)
15953 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
15954 else
15955 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
15956 fi
15957 ;;
15958 esac
15959
15960 ac_popdir=`pwd`
15961 cd $ac_config_dir
15962
15963 # A "../" for each directory in /$ac_config_dir.
15964 ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
15965
15966 case "$srcdir" in
15967 .) # No --srcdir option. We are building in place.
15968 ac_sub_srcdir=$srcdir ;;
15969 /*) # Absolute path.
15970 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
15971 *) # Relative path.
15972 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
15973 esac
15974
15975 # Check for guested configure; otherwise get Cygnus style configure.
15976 if test -f $ac_sub_srcdir/configure; then
15977 ac_sub_configure=$ac_sub_srcdir/configure
15978 elif test -f $ac_sub_srcdir/configure.in; then
15979 ac_sub_configure=$ac_configure
15980 else
15981 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
15982 ac_sub_configure=
15983 fi
15984
15985 # The recursion is here.
15986 if test -n "$ac_sub_configure"; then
15987
15988 # Make the cache file name correct relative to the subdirectory.
15989 case "$cache_file" in
15990 /*) ac_sub_cache_file=$cache_file ;;
15991 *) # Relative path.
15992 ac_sub_cache_file="$ac_dots$cache_file" ;;
15993 esac
15994 case "$ac_given_INSTALL" in
15995 [/$]*) INSTALL="$ac_given_INSTALL" ;;
15996 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
15997 esac
15998
15999 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
16000 # The eval makes quoting arguments work.
16001 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
16002 then :
16003 else
16004 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
16005 fi
16006 fi
16007
16008 cd $ac_popdir
16009 done
16010fi
16011
10f2d63a 16012