]> git.saurik.com Git - wxWidgets.git/blame - configure
Added RTLD_GLOBAL to dlopen() flags which is needed if libraries depend
[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
VZ
39
40
41
42# Guess values for system-dependent variables and create Makefiles.
e8482f24 43# Generated automatically using autoconf version 2.13
10f2d63a
VZ
44# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
45#
46# This configure script is free software; the Free Software Foundation
47# gives unlimited permission to copy, distribute and modify it.
48
49# Defaults:
50ac_help=
51ac_default_prefix=/usr/local
52# Any additions from configure.in:
53ac_help="$ac_help
54--enable-gui use GUI classes"
55ac_help="$ac_help
56 --with-gtk use GTK+"
57ac_help="$ac_help
58 --with-motif use Motif/Lesstif"
59ac_help="$ac_help
60 --with-wine use WINE"
61ac_help="$ac_help
62 --with-cygwin use Cygwin for MS-Windows"
63ac_help="$ac_help
64 --with-mingw use GCC Minimal MS-Windows"
e07802fc
VZ
65ac_help="$ac_help
66 --with-pm use OS/2 Presentation Manager"
10f2d63a
VZ
67ac_help="$ac_help
68 --with-gtk-prefix=PFX Prefix where GTK is installed"
69ac_help="$ac_help
70 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed"
71ac_help="$ac_help
10f2d63a
VZ
72--with-libpng use libpng (PNG image format)"
73ac_help="$ac_help
74--with-libjpeg use libjpeg (JPEG file format)"
75ac_help="$ac_help
c7a2bf27
RR
76--with-libtiff use libtiff (TIFF file format)"
77ac_help="$ac_help
10f2d63a
VZ
78--with-opengl use OpenGL (or Mesa)"
79ac_help="$ac_help
b12915c1
VZ
80--with-dmalloc use dmalloc library (www.letters.com/dmalloc)"
81ac_help="$ac_help
82--with-zlib use zlib for LZW compression"
83ac_help="$ac_help
10f2d63a
VZ
84--with-odbc use the IODBC and wxODBC classes"
85ac_help="$ac_help
86--enable-shared create shared library code"
87ac_help="$ac_help
00cf1208
RR
88--enable-burnt_name create set name in shared library "
89ac_help="$ac_help
10f2d63a
VZ
90--enable-optimise create optimised code"
91ac_help="$ac_help
92--enable-debug same as debug_flag and debug_info"
93ac_help="$ac_help
94--enable-debug_flag set __WXDEBUG__ flag (recommended for developers!)"
95ac_help="$ac_help
96--enable-debug_info create code with debugging information"
97ac_help="$ac_help
98--enable-debug_gdb create code with extra GDB debugging information"
99ac_help="$ac_help
100--enable-debug_cntxt use wxDebugContext"
101ac_help="$ac_help
102--enable-mem_tracing create code with memory tracing"
103ac_help="$ac_help
104--enable-profile create code with profiling information"
105ac_help="$ac_help
106--enable-no_rtti create code without RTTI information"
107ac_help="$ac_help
108--enable-no_exceptions create code without exceptions information"
109ac_help="$ac_help
110--enable-permissive compile code disregarding strict ANSI"
111ac_help="$ac_help
112--enable-no_deps create code without dependency information"
113ac_help="$ac_help
114--enable-intl use internationalization system"
115ac_help="$ac_help
116--enable-config use wxConfig (and derived) classes"
117ac_help="$ac_help
118--enable-sockets use socket/network classes"
119ac_help="$ac_help
10f2d63a
VZ
120--enable-ipc use interprocess communication (wxSocket etc.)"
121ac_help="$ac_help
eb4efbdc
VZ
122--enable-dialupman use dialup network classes"
123ac_help="$ac_help
10f2d63a
VZ
124--enable-apple_ieee use the Apple IEEE codec"
125ac_help="$ac_help
126--enable-timedate use date/time classes"
127ac_help="$ac_help
128--enable-wave use wxWave class"
129ac_help="$ac_help
130--enable-fraction use wxFraction class"
131ac_help="$ac_help
132--enable-dynlib use wxLibrary class for DLL loading"
133ac_help="$ac_help
134--enable-longlong use wxLongLong class"
135ac_help="$ac_help
136--enable-log use logging system"
137ac_help="$ac_help
138--enable-streams use wxStream etc classes"
139ac_help="$ac_help
140--enable-file use wxFile classes"
141ac_help="$ac_help
142--enable-textfile use wxTextFile classes"
143ac_help="$ac_help
144--enable-unicode compile wxString with Unicode support"
145ac_help="$ac_help
146--enable-wcsrtombs use wcsrtombs instead of buggy (GNU libc1/Linux libc5) wcstombs"
147ac_help="$ac_help
148--enable-wxprintfv use wxWindows implementation of vprintf()"
149ac_help="$ac_help
150--enable-joystick compile in joystick support (Linux only)"
151ac_help="$ac_help
152--enable-std_iostreams use standard C++ stream classes"
153ac_help="$ac_help
24528b0c
VS
154--enable-filesystem use virtual file systems classes"
155ac_help="$ac_help
10f2d63a
VZ
156--enable-fs_inet use virtual HTTP/FTP filesystems"
157ac_help="$ac_help
158--enable-fs_zip use virtual ZIP filesystems"
159ac_help="$ac_help
160--enable-zipstream use wxZipInputStream"
161ac_help="$ac_help
eb4efbdc
VZ
162--enable-catch_segvs catch signals and pass them to wxApp::OnFatalException"
163ac_help="$ac_help
10f2d63a
VZ
164--enable-threads use threads"
165ac_help="$ac_help
166--enable-serial use class serialization"
167ac_help="$ac_help
168--enable-docview use document view architecture"
169ac_help="$ac_help
170--enable-help use help (using external browser at present)"
171ac_help="$ac_help
172--enable-constraints use layout-constraints system"
173ac_help="$ac_help
174--enable-printarch use printing architecture"
175ac_help="$ac_help
176--enable-mdi use multiple document interface architecture"
177ac_help="$ac_help
178--enable-postscript use wxPostscriptDC device context (default for gtk+)"
179ac_help="$ac_help
180--enable-prologio use Prolog IO library"
181ac_help="$ac_help
182--enable-resources use wxWindows resources"
183ac_help="$ac_help
184--enable-xresources use X resources for save (default for gtk+)"
185ac_help="$ac_help
186--enable-clipboard use wxClipboard classes"
187ac_help="$ac_help
188--enable-dnd use Drag'n'Drop classes"
189ac_help="$ac_help
190--enable-wxtree make wxTree library"
191ac_help="$ac_help
192--enable-controls use all usual controls"
193ac_help="$ac_help
194--enable-accel use accelerators"
195ac_help="$ac_help
196--enable-caret use wxCaret class"
197ac_help="$ac_help
198--enable-bmpbutton use wxBitmapButton class"
199ac_help="$ac_help
200--enable-checkbox use wxCheckBox class"
201ac_help="$ac_help
202--enable-checklst use wxCheckListBox (listbox with checkboxes) class"
203ac_help="$ac_help
204--enable-choice use wxChoice class"
205ac_help="$ac_help
206--enable-combobox use wxComboBox classes"
207ac_help="$ac_help
208--enable-gauge use wxGauge class"
209ac_help="$ac_help
210--enable-grid use wxGrid class"
211ac_help="$ac_help
212--enable-newgrid use new wxGrid class"
213ac_help="$ac_help
214--enable-imaglist use wxImageList class"
215ac_help="$ac_help
216--enable-listbox use wxListBox class"
217ac_help="$ac_help
218--enable-listctrl use wxListCtrl class"
219ac_help="$ac_help
220--enable-notebook use wxNotebook class"
221ac_help="$ac_help
222--enable-radiobox use wxRadioBox class"
223ac_help="$ac_help
224--enable-radiobtn use wxRadioButton class"
225ac_help="$ac_help
226--enable-sash use wxSashWindow class"
227ac_help="$ac_help
228--enable-scrollbar use wxScrollBar class and scrollable windows"
229ac_help="$ac_help
230--enable-slider use wxSlider class"
231ac_help="$ac_help
232--enable-spinbtn use wxSpinButton class"
233ac_help="$ac_help
56cfaa52
RR
234--enable-spinctrl use wxSpinCtrl class"
235ac_help="$ac_help
10f2d63a
VZ
236--enable-splitter use wxSplitterWindow class"
237ac_help="$ac_help
238--enable-statbmp use wxStaticBitmap class"
239ac_help="$ac_help
240--enable-statbox use wxStaticBox class"
241ac_help="$ac_help
242--enable-statline use wxStaticLine class"
243ac_help="$ac_help
244--enable-statusbar use wxStatusBar class"
245ac_help="$ac_help
246--enable-tabdialog use wxTabControl class"
247ac_help="$ac_help
248--enable-toolbar use wxToolBar class"
249ac_help="$ac_help
360d6699
VZ
250--enable-tbarnative use native wxToolBar class"
251ac_help="$ac_help
252--enable-tbarsmpl use wxToolBarSimple class"
253ac_help="$ac_help
10f2d63a
VZ
254--enable-treectrl use wxTreeCtrl class"
255ac_help="$ac_help
256--enable-commondlg use common dialogs (wxDirDialog, wxProgressDialog, wxTextDialog, ...)"
257ac_help="$ac_help
258--enable-dirdlg use wxDirDialog"
259ac_help="$ac_help
260--enable-textdlg use wxTextDialog"
261ac_help="$ac_help
262--enable-tipdlg use startup tips"
263ac_help="$ac_help
264--enable-progressdlg use wxProgressDialog"
265ac_help="$ac_help
266--enable-miniframe use wxMiniFrame class"
267ac_help="$ac_help
268--enable-html use wxHTML sub-library"
269ac_help="$ac_help
270--enable-tooltips use wxToolTip class"
271ac_help="$ac_help
272--enable-splines use spline drawing code"
273ac_help="$ac_help
274--enable-validators use wxValidator and derived classes"
275ac_help="$ac_help
276--enable-busyinfo use wxBusyInfo"
277ac_help="$ac_help
9b33fe02
VZ
278--enable-plot use wxPlot"
279ac_help="$ac_help
10f2d63a
VZ
280--enable-gif use gif images (GIF file format)"
281ac_help="$ac_help
282--enable-pcx use pcx images (PCX file format)"
283ac_help="$ac_help
284--enable-pnm use pnm images (PNM file format)"
ab9b9eab
VZ
285ac_help="$ac_help
286 --with-x use the X Window System"
10f2d63a
VZ
287
288# Initialize some variables set by options.
289# The variables have the same names as the options, with
290# dashes changed to underlines.
291build=NONE
292cache_file=./config.cache
293exec_prefix=NONE
294host=NONE
295no_create=
296nonopt=NONE
297no_recursion=
298prefix=NONE
299program_prefix=NONE
300program_suffix=NONE
301program_transform_name=s,x,x,
302silent=
303site=
304srcdir=
305target=NONE
306verbose=
307x_includes=NONE
308x_libraries=NONE
309bindir='${exec_prefix}/bin'
310sbindir='${exec_prefix}/sbin'
311libexecdir='${exec_prefix}/libexec'
312datadir='${prefix}/share'
313sysconfdir='${prefix}/etc'
314sharedstatedir='${prefix}/com'
315localstatedir='${prefix}/var'
316libdir='${exec_prefix}/lib'
317includedir='${prefix}/include'
318oldincludedir='/usr/include'
319infodir='${prefix}/info'
320mandir='${prefix}/man'
321
322# Initialize some other variables.
323subdirs=
324MFLAGS= MAKEFLAGS=
325SHELL=${CONFIG_SHELL-/bin/sh}
326# Maximum number of lines to put in a shell here document.
327ac_max_here_lines=12
328
329ac_prev=
330for ac_option
331do
332
333 # If the previous option needs an argument, assign it.
334 if test -n "$ac_prev"; then
335 eval "$ac_prev=\$ac_option"
336 ac_prev=
337 continue
338 fi
339
340 case "$ac_option" in
341 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
342 *) ac_optarg= ;;
343 esac
344
345 # Accept the important Cygnus configure options, so we can diagnose typos.
346
347 case "$ac_option" in
348
349 -bindir | --bindir | --bindi | --bind | --bin | --bi)
350 ac_prev=bindir ;;
351 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
352 bindir="$ac_optarg" ;;
353
354 -build | --build | --buil | --bui | --bu)
355 ac_prev=build ;;
356 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
357 build="$ac_optarg" ;;
358
359 -cache-file | --cache-file | --cache-fil | --cache-fi \
360 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
361 ac_prev=cache_file ;;
362 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
363 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
364 cache_file="$ac_optarg" ;;
365
366 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
367 ac_prev=datadir ;;
368 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
369 | --da=*)
370 datadir="$ac_optarg" ;;
371
372 -disable-* | --disable-*)
373 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
374 # Reject names that are not valid shell variable names.
375 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
376 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
377 fi
378 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
379 eval "enable_${ac_feature}=no" ;;
380
381 -enable-* | --enable-*)
382 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
383 # Reject names that are not valid shell variable names.
384 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
385 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
386 fi
387 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
388 case "$ac_option" in
389 *=*) ;;
390 *) ac_optarg=yes ;;
391 esac
392 eval "enable_${ac_feature}='$ac_optarg'" ;;
393
394 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
395 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
396 | --exec | --exe | --ex)
397 ac_prev=exec_prefix ;;
398 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
399 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
400 | --exec=* | --exe=* | --ex=*)
401 exec_prefix="$ac_optarg" ;;
402
403 -gas | --gas | --ga | --g)
404 # Obsolete; use --with-gas.
405 with_gas=yes ;;
406
407 -help | --help | --hel | --he)
408 # Omit some internal or obsolete options to make the list less imposing.
409 # This message is too long to be a string in the A/UX 3.1 sh.
410 cat << EOF
411Usage: configure [options] [host]
412Options: [defaults in brackets after descriptions]
413Configuration:
414 --cache-file=FILE cache test results in FILE
415 --help print this message
416 --no-create do not create output files
417 --quiet, --silent do not print \`checking...' messages
418 --version print the version of autoconf that created configure
419Directory and file names:
420 --prefix=PREFIX install architecture-independent files in PREFIX
421 [$ac_default_prefix]
422 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
423 [same as prefix]
424 --bindir=DIR user executables in DIR [EPREFIX/bin]
425 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
426 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
427 --datadir=DIR read-only architecture-independent data in DIR
428 [PREFIX/share]
429 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
430 --sharedstatedir=DIR modifiable architecture-independent data in DIR
431 [PREFIX/com]
432 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
433 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
434 --includedir=DIR C header files in DIR [PREFIX/include]
435 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
436 --infodir=DIR info documentation in DIR [PREFIX/info]
437 --mandir=DIR man documentation in DIR [PREFIX/man]
438 --srcdir=DIR find the sources in DIR [configure dir or ..]
439 --program-prefix=PREFIX prepend PREFIX to installed program names
440 --program-suffix=SUFFIX append SUFFIX to installed program names
441 --program-transform-name=PROGRAM
442 run sed PROGRAM on installed program names
443EOF
444 cat << EOF
445Host type:
446 --build=BUILD configure for building on BUILD [BUILD=HOST]
447 --host=HOST configure for HOST [guessed]
448 --target=TARGET configure for TARGET [TARGET=HOST]
449Features and packages:
450 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
451 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
452 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
453 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
454 --x-includes=DIR X include files are in DIR
455 --x-libraries=DIR X library files are in DIR
456EOF
457 if test -n "$ac_help"; then
458 echo "--enable and --with options recognized:$ac_help"
459 fi
460 exit 0 ;;
461
462 -host | --host | --hos | --ho)
463 ac_prev=host ;;
464 -host=* | --host=* | --hos=* | --ho=*)
465 host="$ac_optarg" ;;
466
467 -includedir | --includedir | --includedi | --included | --include \
468 | --includ | --inclu | --incl | --inc)
469 ac_prev=includedir ;;
470 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
471 | --includ=* | --inclu=* | --incl=* | --inc=*)
472 includedir="$ac_optarg" ;;
473
474 -infodir | --infodir | --infodi | --infod | --info | --inf)
475 ac_prev=infodir ;;
476 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
477 infodir="$ac_optarg" ;;
478
479 -libdir | --libdir | --libdi | --libd)
480 ac_prev=libdir ;;
481 -libdir=* | --libdir=* | --libdi=* | --libd=*)
482 libdir="$ac_optarg" ;;
483
484 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
485 | --libexe | --libex | --libe)
486 ac_prev=libexecdir ;;
487 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
488 | --libexe=* | --libex=* | --libe=*)
489 libexecdir="$ac_optarg" ;;
490
491 -localstatedir | --localstatedir | --localstatedi | --localstated \
492 | --localstate | --localstat | --localsta | --localst \
493 | --locals | --local | --loca | --loc | --lo)
494 ac_prev=localstatedir ;;
495 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
496 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
497 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
498 localstatedir="$ac_optarg" ;;
499
500 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
501 ac_prev=mandir ;;
502 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
503 mandir="$ac_optarg" ;;
504
505 -nfp | --nfp | --nf)
506 # Obsolete; use --without-fp.
507 with_fp=no ;;
508
509 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
510 | --no-cr | --no-c)
511 no_create=yes ;;
512
513 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
514 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
515 no_recursion=yes ;;
516
517 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
518 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
519 | --oldin | --oldi | --old | --ol | --o)
520 ac_prev=oldincludedir ;;
521 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
522 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
523 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
524 oldincludedir="$ac_optarg" ;;
525
526 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
527 ac_prev=prefix ;;
528 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
529 prefix="$ac_optarg" ;;
530
531 -program-prefix | --program-prefix | --program-prefi | --program-pref \
532 | --program-pre | --program-pr | --program-p)
533 ac_prev=program_prefix ;;
534 -program-prefix=* | --program-prefix=* | --program-prefi=* \
535 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
536 program_prefix="$ac_optarg" ;;
537
538 -program-suffix | --program-suffix | --program-suffi | --program-suff \
539 | --program-suf | --program-su | --program-s)
540 ac_prev=program_suffix ;;
541 -program-suffix=* | --program-suffix=* | --program-suffi=* \
542 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
543 program_suffix="$ac_optarg" ;;
544
545 -program-transform-name | --program-transform-name \
546 | --program-transform-nam | --program-transform-na \
547 | --program-transform-n | --program-transform- \
548 | --program-transform | --program-transfor \
549 | --program-transfo | --program-transf \
550 | --program-trans | --program-tran \
551 | --progr-tra | --program-tr | --program-t)
552 ac_prev=program_transform_name ;;
553 -program-transform-name=* | --program-transform-name=* \
554 | --program-transform-nam=* | --program-transform-na=* \
555 | --program-transform-n=* | --program-transform-=* \
556 | --program-transform=* | --program-transfor=* \
557 | --program-transfo=* | --program-transf=* \
558 | --program-trans=* | --program-tran=* \
559 | --progr-tra=* | --program-tr=* | --program-t=*)
560 program_transform_name="$ac_optarg" ;;
561
562 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
563 | -silent | --silent | --silen | --sile | --sil)
564 silent=yes ;;
565
566 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
567 ac_prev=sbindir ;;
568 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
569 | --sbi=* | --sb=*)
570 sbindir="$ac_optarg" ;;
571
572 -sharedstatedir | --sharedstatedir | --sharedstatedi \
573 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
574 | --sharedst | --shareds | --shared | --share | --shar \
575 | --sha | --sh)
576 ac_prev=sharedstatedir ;;
577 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
578 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
579 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
580 | --sha=* | --sh=*)
581 sharedstatedir="$ac_optarg" ;;
582
583 -site | --site | --sit)
584 ac_prev=site ;;
585 -site=* | --site=* | --sit=*)
586 site="$ac_optarg" ;;
587
588 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
589 ac_prev=srcdir ;;
590 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
591 srcdir="$ac_optarg" ;;
592
593 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
594 | --syscon | --sysco | --sysc | --sys | --sy)
595 ac_prev=sysconfdir ;;
596 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
597 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
598 sysconfdir="$ac_optarg" ;;
599
600 -target | --target | --targe | --targ | --tar | --ta | --t)
601 ac_prev=target ;;
602 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
603 target="$ac_optarg" ;;
604
605 -v | -verbose | --verbose | --verbos | --verbo | --verb)
606 verbose=yes ;;
607
608 -version | --version | --versio | --versi | --vers)
e8482f24 609 echo "configure generated by autoconf version 2.13"
10f2d63a
VZ
610 exit 0 ;;
611
612 -with-* | --with-*)
613 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
614 # Reject names that are not valid shell variable names.
615 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
616 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
617 fi
618 ac_package=`echo $ac_package| sed 's/-/_/g'`
619 case "$ac_option" in
620 *=*) ;;
621 *) ac_optarg=yes ;;
622 esac
623 eval "with_${ac_package}='$ac_optarg'" ;;
624
625 -without-* | --without-*)
626 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
627 # Reject names that are not valid shell variable names.
628 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
629 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
630 fi
631 ac_package=`echo $ac_package| sed 's/-/_/g'`
632 eval "with_${ac_package}=no" ;;
633
634 --x)
635 # Obsolete; use --with-x.
636 with_x=yes ;;
637
638 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
639 | --x-incl | --x-inc | --x-in | --x-i)
640 ac_prev=x_includes ;;
641 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
642 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
643 x_includes="$ac_optarg" ;;
644
645 -x-libraries | --x-libraries | --x-librarie | --x-librari \
646 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
647 ac_prev=x_libraries ;;
648 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
649 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
650 x_libraries="$ac_optarg" ;;
651
652 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
653 ;;
654
655 *)
656 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
657 echo "configure: warning: $ac_option: invalid host type" 1>&2
658 fi
659 if test "x$nonopt" != xNONE; then
660 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
661 fi
662 nonopt="$ac_option"
663 ;;
664
665 esac
666done
667
668if test -n "$ac_prev"; then
669 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
670fi
671
672trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
673
674# File descriptor usage:
675# 0 standard input
676# 1 file creation
677# 2 errors and warnings
678# 3 some systems may open it to /dev/tty
679# 4 used on the Kubota Titan
680# 6 checking for... messages and results
681# 5 compiler messages saved in config.log
682if test "$silent" = yes; then
683 exec 6>/dev/null
684else
685 exec 6>&1
686fi
687exec 5>./config.log
688
689echo "\
690This file contains any messages produced by compilers while
691running configure, to aid debugging if configure makes a mistake.
692" 1>&5
693
694# Strip out --no-create and --no-recursion so they do not pile up.
695# Also quote any args containing shell metacharacters.
696ac_configure_args=
697for ac_arg
698do
699 case "$ac_arg" in
700 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
701 | --no-cr | --no-c) ;;
702 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
703 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
704 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
705 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
706 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
707 esac
708done
709
710# NLS nuisances.
711# Only set these to C if already set. These must not be set unconditionally
712# because not all systems understand e.g. LANG=C (notably SCO).
713# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
714# Non-C LC_CTYPE values break the ctype check.
715if test "${LANG+set}" = set; then LANG=C; export LANG; fi
716if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
717if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
718if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
719
720# confdefs.h avoids OS command line length limits that DEFS can exceed.
721rm -rf conftest* confdefs.h
722# AIX cpp loses on an empty file, so make sure it contains at least a newline.
723echo > confdefs.h
724
725# A filename unique to this package, relative to the directory that
726# configure is in, which we can look for to find out if srcdir is correct.
727ac_unique_file=wx-config.in
728
729# Find the source files, if location was not specified.
730if test -z "$srcdir"; then
731 ac_srcdir_defaulted=yes
732 # Try the directory containing this script, then its parent.
733 ac_prog=$0
734 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
735 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
736 srcdir=$ac_confdir
737 if test ! -r $srcdir/$ac_unique_file; then
738 srcdir=..
739 fi
740else
741 ac_srcdir_defaulted=no
742fi
743if test ! -r $srcdir/$ac_unique_file; then
744 if test "$ac_srcdir_defaulted" = yes; then
745 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
746 else
747 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
748 fi
749fi
750srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
751
752# Prefer explicitly selected file to automatically selected ones.
753if test -z "$CONFIG_SITE"; then
754 if test "x$prefix" != xNONE; then
755 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
756 else
757 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
758 fi
759fi
760for ac_site_file in $CONFIG_SITE; do
761 if test -r "$ac_site_file"; then
762 echo "loading site script $ac_site_file"
763 . "$ac_site_file"
764 fi
765done
766
767if test -r "$cache_file"; then
768 echo "loading cache $cache_file"
769 . $cache_file
770else
771 echo "creating cache $cache_file"
772 > $cache_file
773fi
774
775ac_ext=c
776# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
777ac_cpp='$CPP $CPPFLAGS'
778ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
779ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
780cross_compiling=$ac_cv_prog_cc_cross
781
782ac_exeext=
783ac_objext=o
784if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
785 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
786 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
787 ac_n= ac_c='
788' ac_t=' '
789 else
790 ac_n=-n ac_c= ac_t=
791 fi
792else
793 ac_n= ac_c='\c' ac_t=
794fi
795
796
797
7c66a493
VZ
798ac_aux_dir=
799for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
800 if test -f $ac_dir/install-sh; then
801 ac_aux_dir=$ac_dir
802 ac_install_sh="$ac_aux_dir/install-sh -c"
803 break
804 elif test -f $ac_dir/install.sh; then
805 ac_aux_dir=$ac_dir
806 ac_install_sh="$ac_aux_dir/install.sh -c"
807 break
808 fi
809done
810if test -z "$ac_aux_dir"; then
811 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
812fi
813ac_config_guess=$ac_aux_dir/config.guess
814ac_config_sub=$ac_aux_dir/config.sub
815ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
816
817
818# Do some error checking and defaulting for the host and target type.
819# The inputs are:
820# configure --host=HOST --target=TARGET --build=BUILD NONOPT
821#
822# The rules are:
823# 1. You are not allowed to specify --host, --target, and nonopt at the
824# same time.
825# 2. Host defaults to nonopt.
826# 3. If nonopt is not specified, then host defaults to the current host,
827# as determined by config.guess.
828# 4. Target and build default to nonopt.
829# 5. If nonopt is not specified, then target and build default to host.
830
831# The aliases save the names the user supplied, while $host etc.
832# will get canonicalized.
833case $host---$target---$nonopt in
834NONE---*---* | *---NONE---* | *---*---NONE) ;;
835*) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
836esac
837
838
839# Make sure we can run config.sub.
840if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
841else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
842fi
843
844echo $ac_n "checking host system type""... $ac_c" 1>&6
eb4efbdc 845echo "configure:846: checking host system type" >&5
7c66a493
VZ
846
847host_alias=$host
848case "$host_alias" in
849NONE)
850 case $nonopt in
851 NONE)
852 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
853 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
854 fi ;;
855 *) host_alias=$nonopt ;;
856 esac ;;
857esac
858
859host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
860host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
861host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
862host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
863echo "$ac_t""$host" 1>&6
864
865echo $ac_n "checking target system type""... $ac_c" 1>&6
eb4efbdc 866echo "configure:867: checking target system type" >&5
7c66a493
VZ
867
868target_alias=$target
869case "$target_alias" in
870NONE)
871 case $nonopt in
872 NONE) target_alias=$host_alias ;;
873 *) target_alias=$nonopt ;;
874 esac ;;
875esac
876
877target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
878target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
879target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
880target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
881echo "$ac_t""$target" 1>&6
882
883echo $ac_n "checking build system type""... $ac_c" 1>&6
eb4efbdc 884echo "configure:885: checking build system type" >&5
7c66a493
VZ
885
886build_alias=$build
887case "$build_alias" in
888NONE)
889 case $nonopt in
890 NONE) build_alias=$host_alias ;;
891 *) build_alias=$nonopt ;;
892 esac ;;
893esac
894
895build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
896build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
897build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
898build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
899echo "$ac_t""$build" 1>&6
900
901test "$host_alias" != "$target_alias" &&
902 test "$program_prefix$program_suffix$program_transform_name" = \
903 NONENONEs,x,x, &&
904 program_prefix=${target_alias}-
905
906
10f2d63a
VZ
907
908WX_MAJOR_VERSION_NUMBER=2
909WX_MINOR_VERSION_NUMBER=1
cc977e5f 910WX_RELEASE_NUMBER=14
10f2d63a
VZ
911
912WX_INTERFACE_AGE=0
913WX_BINARY_AGE=0
914
915WX_VERSION=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER.$WX_RELEASE_NUMBER
916
917WX_RELEASE=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER
918WX_CURRENT=`expr $WX_RELEASE_NUMBER - $WX_INTERFACE_AGE`
919WX_REVISION=$WX_INTERFACE_AGE
920WX_AGE=`expr $WX_BINARY_AGE - $WX_INTERFACE_AGE`
921
922
923USE_UNIX=1
924USE_WIN32=0
b12915c1
VZ
925USE_BEOS=0
926
10f2d63a
VZ
927USE_LINUX=
928USE_SGI=
929USE_HPUX=
930USE_SYSV=
931USE_SVR4=
932USE_AIX=
933USE_SUN=
934USE_SOLARIS=
935USE_SUNOS=
936USE_ALPHA=
937USE_OSF=
938USE_BSD=
939USE_FREEBSD=
940USE_VMS=
941USE_ULTRIX=
942USE_CYGWIN=
943USE_MINGW=
944USE_DATA_GENERAL=
945
ab9b9eab
VZ
946NEEDS_D_REENTRANT_FOR_R_FUNCS=0
947
e07802fc 948ALL_TOOLKITS="CYGWIN GTK MINGW MOTIF WINE PM"
10f2d63a
VZ
949
950DEFAULT_wxUSE_GTK=0
951DEFAULT_wxUSE_MOTIF=0
952DEFAULT_wxUSE_MSW=0
953DEFAULT_wxUSE_WINE=0
e07802fc 954DEFAULT_wxUSE_PM=0
10f2d63a
VZ
955
956DEFAULT_DEFAULT_wxUSE_GTK=0
957DEFAULT_DEFAULT_wxUSE_MOTIF=0
958DEFAULT_DEFAULT_wxUSE_MSW=0
959DEFAULT_DEFAULT_wxUSE_WINE=0
e07802fc 960DEFAULT_DEFAULT_wxUSE_PM=0
10f2d63a 961
d6a55c4b
VZ
962PROGRAM_EXT=
963
10f2d63a
VZ
964case "${host}" in
965 *-hp-hpux* )
966 USE_HPUX=1
967 DEFAULT_DEFAULT_wxUSE_MOTIF=1
ab9b9eab 968 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
10f2d63a
VZ
969 cat >> confdefs.h <<\EOF
970#define __HPUX__ 1
971EOF
972
973 ;;
974 *-*-linux* )
975 USE_LINUX=1
976 cat >> confdefs.h <<\EOF
977#define __LINUX__ 1
978EOF
979
980 TMP=`uname -m`
981 if test "x$TMP" = "xalpha"; then
982 USE_ALPHA=1
983 cat >> confdefs.h <<\EOF
984#define __ALPHA__ 1
985EOF
986
987 fi
988 DEFAULT_DEFAULT_wxUSE_GTK=1
989 ;;
990 *-*-irix5* | *-*-irix6* )
991 USE_SGI=1
992 USE_SVR4=1
993 cat >> confdefs.h <<\EOF
994#define __SGI__ 1
995EOF
996
997 cat >> confdefs.h <<\EOF
998#define __SVR4__ 1
999EOF
1000
1001 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1002 ;;
1003 *-*-solaris2* )
1004 USE_SUN=1
1005 USE_SOLARIS=1
1006 USE_SVR4=1
1007 cat >> confdefs.h <<\EOF
1008#define __SUN__ 1
1009EOF
1010
1011 cat >> confdefs.h <<\EOF
1012#define __SOLARIS__ 1
1013EOF
1014
1015 cat >> confdefs.h <<\EOF
1016#define __SVR4__ 1
1017EOF
1018
1019 DEFAULT_DEFAULT_wxUSE_MOTIF=1
ab9b9eab 1020 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
10f2d63a
VZ
1021 ;;
1022 *-*-sunos4* )
1023 USE_SUN=1
1024 USE_SUNOS=1
1025 USE_BSD=1
1026 cat >> confdefs.h <<\EOF
1027#define __SUN__ 1
1028EOF
1029
1030 cat >> confdefs.h <<\EOF
1031#define __SUNOS__ 1
1032EOF
1033
1034 cat >> confdefs.h <<\EOF
1035#define __BSD__ 1
1036EOF
1037
1038 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1039 ;;
1040 *-*-freebsd* | *-*-netbsd*)
1041 USE_BSD=1
1042 USE_FREEBSD=1
1043 cat >> confdefs.h <<\EOF
1044#define __FREEBSD__ 1
1045EOF
1046
1047 cat >> confdefs.h <<\EOF
1048#define __BSD__ 1
1049EOF
1050
1051 DEFAULT_DEFAULT_wxUSE_GTK=1
1052 ;;
1053 *-*-osf* )
1054 USE_ALPHA=1
1055 USE_OSF=1
1056 cat >> confdefs.h <<\EOF
1057#define __ALPHA__ 1
1058EOF
1059
1060 cat >> confdefs.h <<\EOF
1061#define __OSF__ 1
1062EOF
1063
1064 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1065 ;;
1066 *-*-dgux5* )
1067 USE_ALPHA=1
1068 USE_SVR4=1
1069 cat >> confdefs.h <<\EOF
1070#define __ALPHA__ 1
1071EOF
1072
1073 cat >> confdefs.h <<\EOF
1074#define __SVR4__ 1
1075EOF
1076
1077 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1078 ;;
1079 *-*-sysv5* )
1080 USE_SYSV=1
1081 USE_SVR4=1
1082 cat >> confdefs.h <<\EOF
1083#define __SYSV__ 1
1084EOF
1085
1086 cat >> confdefs.h <<\EOF
1087#define __SVR4__ 1
1088EOF
1089
1090 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1091 ;;
1092 *-*-aix* )
1093 USE_AIX=1
1094 USE_SYSV=1
1095 USE_SVR4=1
1096 cat >> confdefs.h <<\EOF
1097#define __AIX__ 1
1098EOF
1099
1100 cat >> confdefs.h <<\EOF
1101#define __SYSV__ 1
1102EOF
1103
1104 cat >> confdefs.h <<\EOF
1105#define __SVR4__ 1
1106EOF
1107
1108 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1109 ;;
1110
7eef8db2 1111 *-*-cygwin32* | *-*-mingw32* )
10f2d63a
VZ
1112 USE_UNIX=0
1113 USE_WIN32=1
1114 cat >> confdefs.h <<\EOF
1115#define __WIN32__ 1
1116EOF
1117
1118 cat >> confdefs.h <<\EOF
1119#define __WIN95__ 1
1120EOF
1121
1122 cat >> confdefs.h <<\EOF
1123#define __WINDOWS__ 1
1124EOF
1125
1126 cat >> confdefs.h <<\EOF
1127#define __GNUWIN32__ 1
1128EOF
1129
1130 cat >> confdefs.h <<\EOF
1131#define STRICT 1
1132EOF
1133
1134 cat >> confdefs.h <<\EOF
1135#define WINVER 0x0400
1136EOF
1137
cf27ef00 1138 PROGRAM_EXT=".exe"
10f2d63a
VZ
1139 DEFAULT_DEFAULT_wxUSE_MSW=1
1140 ;;
1141
1142 *-pc-os2_emx )
1143 cat >> confdefs.h <<\EOF
1144#define __EMX__ 1
1145EOF
1146
cf27ef00 1147 PROGRAM_EXT=".exe"
e07802fc 1148 DEFAULT_DEFAULT_wxUSE_PM=1
10f2d63a
VZ
1149 ;;
1150
b12915c1
VZ
1151 *-*-beos* )
1152 USE_BEOS=1
1153 cat >> confdefs.h <<\EOF
1154#define __BEOS__ 1
1155EOF
1156
1157 ;;
1158
10f2d63a
VZ
1159 *)
1160 { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; }
1161esac
1162
1163if test "$USE_UNIX" = 1 ; then
b12915c1
VZ
1164 wxUSE_UNIX=yes
1165 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1166#define __UNIX__ 1
1167EOF
1168
b12915c1
VZ
1169
1170 SRC_SUBDIRS="$SRC_SUBDIRS unix"
1171 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS unix"
1172fi
1173
1174if test "$USE_BEOS" = 1; then
1175 SRC_SUBDIRS="$SRC_SUBDIRS be"
1176 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS be"
10f2d63a
VZ
1177fi
1178
1179if test "$USE_LINUX" = 1; then
1180 echo $ac_n "checking for gettext in -lc""... $ac_c" 1>&6
eb4efbdc 1181echo "configure:1182: checking for gettext in -lc" >&5
10f2d63a
VZ
1182ac_lib_var=`echo c'_'gettext | sed 'y%./+-%__p_%'`
1183if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1184 echo $ac_n "(cached) $ac_c" 1>&6
1185else
1186 ac_save_LIBS="$LIBS"
1187LIBS="-lc $LIBS"
1188cat > conftest.$ac_ext <<EOF
eb4efbdc 1189#line 1190 "configure"
10f2d63a
VZ
1190#include "confdefs.h"
1191/* Override any gcc2 internal prototype to avoid an error. */
1192/* We use char because int might match the return type of a gcc2
1193 builtin and then its argument prototype would still apply. */
1194char gettext();
1195
1196int main() {
1197gettext()
1198; return 0; }
1199EOF
eb4efbdc 1200if { (eval echo configure:1201: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
1201 rm -rf conftest*
1202 eval "ac_cv_lib_$ac_lib_var=yes"
1203else
1204 echo "configure: failed program was:" >&5
1205 cat conftest.$ac_ext >&5
1206 rm -rf conftest*
1207 eval "ac_cv_lib_$ac_lib_var=no"
1208fi
1209rm -f conftest*
1210LIBS="$ac_save_LIBS"
1211
1212fi
1213if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1214 echo "$ac_t""yes" 1>&6
1215 cat >> confdefs.h <<\EOF
1216#define wxHAVE_GLIBC2 1
1217EOF
1218
1219else
1220 echo "$ac_t""no" 1>&6
1221fi
1222
1223fi
1224
1225
1226
1227
1228 wx_arg_cache_file="configarg.cache"
1229 echo "loading argument cache $wx_arg_cache_file"
1230 rm -f ${wx_arg_cache_file}.tmp
1231 touch ${wx_arg_cache_file}.tmp
1232 touch ${wx_arg_cache_file}
1233
1234
1235DEBUG_CONFIGURE=0
1236if test $DEBUG_CONFIGURE = 1; then
1237 DEFAULT_wxUSE_THREADS=yes
1238
1239 DEFAULT_wxUSE_SHARED=yes
00cf1208 1240 DEFAULT_wxUSE_BURNT_NAME=no
10f2d63a
VZ
1241 DEFAULT_wxUSE_OPTIMISE=yes
1242 DEFAULT_wxUSE_PROFILE=no
1243 DEFAULT_wxUSE_NO_DEPS=no
1244 DEFAULT_wxUSE_NO_RTTI=no
1245 DEFAULT_wxUSE_NO_EXCEPTIONS=no
1246 DEFAULT_wxUSE_PERMISSIVE=no
1247 DEFAULT_wxUSE_DEBUG_FLAG=yes
1248 DEFAULT_wxUSE_DEBUG_INFO=yes
1249 DEFAULT_wxUSE_DEBUG_GDB=yes
1250 DEFAULT_wxUSE_MEM_TRACING=no
1251 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1252 DEFAULT_wxUSE_DMALLOC=no
1253 DEFAULT_wxUSE_APPLE_IEEE=no
1254
1255 DEFAULT_wxUSE_LOG=yes
1256
1257 DEFAULT_wxUSE_GUI=yes
1258
1259 DEFAULT_wxUSE_ZLIB=no
1260 DEFAULT_wxUSE_LIBPNG=no
1261 DEFAULT_wxUSE_LIBJPEG=no
c7a2bf27 1262 DEFAULT_wxUSE_LIBTIFF=no
10f2d63a 1263 DEFAULT_wxUSE_ODBC=no
bdad4e7e 1264 DEFAULT_wxUSE_OPENGL=no
10f2d63a 1265
eb4efbdc 1266 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no
10f2d63a
VZ
1267 DEFAULT_wxUSE_STD_IOSTREAM=no
1268 DEFAULT_wxUSE_FILE=no
1269 DEFAULT_wxUSE_TEXTFILE=no
1270 DEFAULT_wxUSE_TIMEDATE=no
1271 DEFAULT_wxUSE_WAVE=no
1272 DEFAULT_wxUSE_INTL=no
1273 DEFAULT_wxUSE_CONFIG=no
1274 DEFAULT_wxUSE_STREAMS=no
1275 DEFAULT_wxUSE_SOCKETS=no
1276 DEFAULT_wxUSE_DIALUP_MANAGER=no
1277 DEFAULT_wxUSE_SERIAL=no
1278 DEFAULT_wxUSE_JOYSTICK=no
1279 DEFAULT_wxUSE_DYNLIB_CLASS=no
1280 DEFAULT_wxUSE_LONGLONG=no
1281
1282 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
1283 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
1284 DEFAULT_wxUSE_POSTSCRIPT=no
1285
1286 DEFAULT_wxUSE_X_RESOURCES=no
1287 DEFAULT_wxUSE_CLIPBOARD=no
1288 DEFAULT_wxUSE_TOOLTIPS=no
1289 DEFAULT_wxUSE_DRAG_AND_DROP=no
1290 DEFAULT_wxUSE_SPLINES=no
1291
1292 DEFAULT_wxUSE_MDI_ARCHITECTURE=no
1293 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
1294 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
1295
1296 DEFAULT_wxUSE_PROLOGIO=no
1297 DEFAULT_wxUSE_RESOURCES=no
1298 DEFAULT_wxUSE_CONSTRAINTS=no
1299 DEFAULT_wxUSE_IPC=no
1300 DEFAULT_wxUSE_HELP=no
1301 DEFAULT_wxUSE_WXTREE=no
1302 DEFAULT_wxUSE_METAFILE=no
1303
1304 DEFAULT_wxUSE_COMMONDLGS=no
1305 DEFAULT_wxUSE_DIRDLG=no
1306 DEFAULT_wxUSE_TEXTDLG=no
1307 DEFAULT_wxUSE_STARTUP_TIPS=no
1308 DEFAULT_wxUSE_PROGRESSDLG=no
1309 DEFAULT_wxUSE_MINIFRAME=no
1310 DEFAULT_wxUSE_HTML=no
24528b0c 1311 DEFAULT_wxUSE_FILESYSTEM=no
10f2d63a
VZ
1312 DEFAULT_wxUSE_FS_INET=no
1313 DEFAULT_wxUSE_FS_ZIP=no
1314 DEFAULT_wxUSE_BUSYINFO=no
1315 DEFAULT_wxUSE_ZIPSTREAM=no
1316 DEFAULT_wxUSE_VALIDATORS=yes
1317
1318 DEFAULT_wxUSE_ACCEL=no
1319 DEFAULT_wxUSE_CARET=no
1320 DEFAULT_wxUSE_BMPBUTTON=no
1321 DEFAULT_wxUSE_CHECKBOX=no
1322 DEFAULT_wxUSE_CHECKLST=no
1323 DEFAULT_wxUSE_CHOICE=yes
1324 DEFAULT_wxUSE_COMBOBOX=no
1325 DEFAULT_wxUSE_GAUGE=no
1326 DEFAULT_wxUSE_GRID=no
1327 DEFAULT_wxUSE_NEW_GRID=no
1328 DEFAULT_wxUSE_IMAGLIST=no
1329 DEFAULT_wxUSE_LISTBOX=no
1330 DEFAULT_wxUSE_LISTCTRL=no
1331 DEFAULT_wxUSE_NOTEBOOK=no
9b33fe02 1332 DEFAULT_wxUSE_PLOT=no
10f2d63a
VZ
1333 DEFAULT_wxUSE_RADIOBOX=no
1334 DEFAULT_wxUSE_RADIOBTN=no
1335 DEFAULT_wxUSE_SASH=no
1336 DEFAULT_wxUSE_SCROLLBAR=no
1337 DEFAULT_wxUSE_SLIDER=no
1338 DEFAULT_wxUSE_SPINBTN=no
56cfaa52 1339 DEFAULT_wxUSE_SPINCTRL=no
10f2d63a
VZ
1340 DEFAULT_wxUSE_SPLITTER=no
1341 DEFAULT_wxUSE_STATBMP=no
1342 DEFAULT_wxUSE_STATBOX=no
1343 DEFAULT_wxUSE_STATLINE=no
1344 DEFAULT_wxUSE_STATUSBAR=yes
1345 DEFAULT_wxUSE_TABDIALOG=no
1346 DEFAULT_wxUSE_TOOLBAR=no
360d6699
VZ
1347 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
1348 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
10f2d63a
VZ
1349 DEFAULT_wxUSE_TREECTRL=no
1350
1351 DEFAULT_wxUSE_UNICODE=no
1352 DEFAULT_wxUSE_WCSRTOMBS=no
1353
1354 DEFAULT_wxUSE_GIF=no
1355 DEFAULT_wxUSE_PCX=no
1356 DEFAULT_wxUSE_PNM=no
1357else
1358 DEFAULT_wxUSE_THREADS=yes
1359
1360 DEFAULT_wxUSE_SHARED=yes
00cf1208 1361 DEFAULT_wxUSE_BURNT_NAME=no
10f2d63a
VZ
1362 DEFAULT_wxUSE_OPTIMISE=yes
1363 DEFAULT_wxUSE_PROFILE=no
1364 DEFAULT_wxUSE_NO_DEPS=no
1365 DEFAULT_wxUSE_NO_RTTI=no
1366 DEFAULT_wxUSE_NO_EXCEPTIONS=no
1367 DEFAULT_wxUSE_PERMISSIVE=no
1368 DEFAULT_wxUSE_DEBUG_FLAG=no
1369 DEFAULT_wxUSE_DEBUG_INFO=no
1370 DEFAULT_wxUSE_DEBUG_GDB=no
1371 DEFAULT_wxUSE_MEM_TRACING=no
1372 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1373 DEFAULT_wxUSE_DMALLOC=no
1374 DEFAULT_wxUSE_APPLE_IEEE=yes
1375
1376 DEFAULT_wxUSE_LOG=yes
1377
1378 DEFAULT_wxUSE_GUI=yes
1379
1380 DEFAULT_wxUSE_ZLIB=yes
1381 DEFAULT_wxUSE_LIBPNG=yes
1382 DEFAULT_wxUSE_LIBJPEG=yes
b47c832e 1383 DEFAULT_wxUSE_LIBTIFF=yes
16b52fa1 1384 DEFAULT_wxUSE_ODBC=no
bdad4e7e 1385 DEFAULT_wxUSE_OPENGL=no
10f2d63a 1386
eb4efbdc 1387 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes
10f2d63a
VZ
1388 DEFAULT_wxUSE_STD_IOSTREAM=no
1389 DEFAULT_wxUSE_FILE=yes
1390 DEFAULT_wxUSE_TEXTFILE=yes
1391 DEFAULT_wxUSE_TIMEDATE=yes
1392 DEFAULT_wxUSE_WAVE=no
1393 DEFAULT_wxUSE_INTL=yes
1394 DEFAULT_wxUSE_CONFIG=yes
1395 DEFAULT_wxUSE_STREAMS=yes
1396 DEFAULT_wxUSE_SOCKETS=yes
1397 DEFAULT_wxUSE_DIALUP_MANAGER=yes
1398 DEFAULT_wxUSE_SERIAL=yes
1399 DEFAULT_wxUSE_JOYSTICK=yes
1400 DEFAULT_wxUSE_DYNLIB_CLASS=yes
b685cd9b 1401 DEFAULT_wxUSE_LONGLONG=yes
10f2d63a
VZ
1402
1403 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
1404 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
1405 DEFAULT_wxUSE_POSTSCRIPT=yes
1406
1407 DEFAULT_wxUSE_X_RESOURCES=no
1408 DEFAULT_wxUSE_CLIPBOARD=yes
1409 DEFAULT_wxUSE_TOOLTIPS=yes
1410 DEFAULT_wxUSE_DRAG_AND_DROP=yes
1411 DEFAULT_wxUSE_SPLINES=yes
1412
1413 DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
1414 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
1415 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
1416
1417 DEFAULT_wxUSE_PROLOGIO=yes
1418 DEFAULT_wxUSE_RESOURCES=yes
1419 DEFAULT_wxUSE_CONSTRAINTS=yes
1420 DEFAULT_wxUSE_IPC=yes
1421 DEFAULT_wxUSE_HELP=yes
1422 DEFAULT_wxUSE_WXTREE=yes
1423 DEFAULT_wxUSE_METAFILE=yes
1424
1425 DEFAULT_wxUSE_COMMONDLGS=yes
1426 DEFAULT_wxUSE_DIRDLG=yes
1427 DEFAULT_wxUSE_TEXTDLG=yes
1428 DEFAULT_wxUSE_STARTUP_TIPS=yes
1429 DEFAULT_wxUSE_PROGRESSDLG=yes
1430 DEFAULT_wxUSE_MINIFRAME=yes
1431 DEFAULT_wxUSE_HTML=yes
24528b0c 1432 DEFAULT_wxUSE_FILESYSTEM=yes
10f2d63a
VZ
1433 DEFAULT_wxUSE_FS_INET=yes
1434 DEFAULT_wxUSE_FS_ZIP=yes
1435 DEFAULT_wxUSE_BUSYINFO=yes
1436 DEFAULT_wxUSE_ZIPSTREAM=yes
1437 DEFAULT_wxUSE_VALIDATORS=yes
1438
1439 DEFAULT_wxUSE_ACCEL=yes
1440 DEFAULT_wxUSE_CARET=yes
1441 DEFAULT_wxUSE_BMPBUTTON=yes
1442 DEFAULT_wxUSE_CHECKBOX=yes
1443 DEFAULT_wxUSE_CHECKLST=yes
1444 DEFAULT_wxUSE_CHOICE=yes
1445 DEFAULT_wxUSE_COMBOBOX=yes
1446 DEFAULT_wxUSE_GAUGE=yes
1447 DEFAULT_wxUSE_GRID=yes
cc977e5f 1448 DEFAULT_wxUSE_NEW_GRID=yes
10f2d63a
VZ
1449 DEFAULT_wxUSE_IMAGLIST=yes
1450 DEFAULT_wxUSE_LISTBOX=yes
1451 DEFAULT_wxUSE_LISTCTRL=yes
1452 DEFAULT_wxUSE_NOTEBOOK=yes
9b33fe02 1453 DEFAULT_wxUSE_PLOT=yes
10f2d63a
VZ
1454 DEFAULT_wxUSE_RADIOBOX=yes
1455 DEFAULT_wxUSE_RADIOBTN=yes
1456 DEFAULT_wxUSE_SASH=yes
1457 DEFAULT_wxUSE_SCROLLBAR=yes
1458 DEFAULT_wxUSE_SLIDER=yes
1459 DEFAULT_wxUSE_SPINBTN=yes
56cfaa52 1460 DEFAULT_wxUSE_SPINCTRL=yes
10f2d63a
VZ
1461 DEFAULT_wxUSE_SPLITTER=yes
1462 DEFAULT_wxUSE_STATBMP=yes
1463 DEFAULT_wxUSE_STATBOX=yes
1464 DEFAULT_wxUSE_STATLINE=yes
1465 DEFAULT_wxUSE_STATUSBAR=yes
1466 DEFAULT_wxUSE_TABDIALOG=no
1467 DEFAULT_wxUSE_TOOLBAR=yes
360d6699
VZ
1468 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
1469 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
10f2d63a
VZ
1470 DEFAULT_wxUSE_TREECTRL=yes
1471
1472 DEFAULT_wxUSE_UNICODE=no
1473 DEFAULT_wxUSE_WCSRTOMBS=no
1474
1475 DEFAULT_wxUSE_GIF=yes
1476 DEFAULT_wxUSE_PCX=yes
1477 DEFAULT_wxUSE_PNM=yes
1478fi
1479
1480
1481
1482for toolkit in `echo $ALL_TOOLKITS`; do
1483 LINE=`grep "wxUSE_$toolkit" ${wx_arg_cache_file}`
1484 if test "x$LINE" != x ; then
1485 has_toolkit_in_cache=1
1486 eval "DEFAULT_$LINE"
1487 eval "CACHE_$toolkit=1"
1488 fi
1489done
1490
1491
1492
1493 echo $ac_n "checking "for --enable-gui"""... $ac_c" 1>&6
eb4efbdc 1494echo "configure:1495: checking "for --enable-gui"" >&5
10f2d63a
VZ
1495 no_cache=0
1496 # Check whether --enable-gui or --disable-gui was given.
1497if test "${enable_gui+set}" = set; then
1498 enableval="$enable_gui"
1499
1500 if test "$enableval" = yes; then
1501 ac_cv_use_gui='wxUSE_GUI=yes'
1502 else
1503 ac_cv_use_gui='wxUSE_GUI=no'
1504 fi
1505
1506else
1507
1508 LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
1509 if test "x$LINE" != x ; then
1510 eval "DEFAULT_$LINE"
1511 else
1512 no_cache=1
1513 fi
1514
1515 ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
1516
1517fi
1518
1519
1520 eval "$ac_cv_use_gui"
1521 if test "$no_cache" != 1; then
1522 echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
1523 fi
1524
1525 if test "$wxUSE_GUI" = yes; then
1526 echo "$ac_t""yes" 1>&6
1527 else
1528 echo "$ac_t""no" 1>&6
1529 fi
1530
1531
b12915c1 1532if test "$wxUSE_GUI" = "yes"; then
10f2d63a
VZ
1533
1534# Check whether --with-gtk or --without-gtk was given.
1535if test "${with_gtk+set}" = set; then
1536 withval="$with_gtk"
1537 wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
1538fi
1539
1540# Check whether --with-motif or --without-motif was given.
1541if test "${with_motif+set}" = set; then
1542 withval="$with_motif"
1543 wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
1544fi
1545
1546# Check whether --with-wine or --without-wine was given.
1547if test "${with_wine+set}" = set; then
1548 withval="$with_wine"
1549 wxUSE_WINE="$withval" CACHE_WINE=1 TOOLKIT_GIVEN=1
1550fi
1551
1552# Check whether --with-cygwin or --without-cygwin was given.
1553if test "${with_cygwin+set}" = set; then
1554 withval="$with_cygwin"
1555 wxUSE_CYGWIN="$withval" CACHE_CYGWIN=1 TOOLKIT_GIVEN=1
1556fi
1557
1558# Check whether --with-mingw or --without-mingw was given.
1559if test "${with_mingw+set}" = set; then
1560 withval="$with_mingw"
1561 wxUSE_MINGW="$withval" CACHE_MINGW=1 TOOLKIT_GIVEN=1
1562fi
1563
e07802fc
VZ
1564# Check whether --with-pm or --without-pm was given.
1565if test "${with_pm+set}" = set; then
1566 withval="$with_pm"
1567 wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
1568fi
1569
10f2d63a
VZ
1570
1571# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
1572if test "${with_gtk_prefix+set}" = set; then
1573 withval="$with_gtk_prefix"
1574 gtk_config_prefix="$withval"
1575else
1576 gtk_config_prefix=""
1577fi
1578
1579# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
1580if test "${with_gtk_exec_prefix+set}" = set; then
1581 withval="$with_gtk_exec_prefix"
1582 gtk_config_exec_prefix="$withval"
1583else
1584 gtk_config_exec_prefix=""
1585fi
1586
1587
1588
b12915c1 1589 echo $ac_n "checking "for --with-libpng"""... $ac_c" 1>&6
eb4efbdc 1590echo "configure:1591: checking "for --with-libpng"" >&5
10f2d63a 1591 no_cache=0
b12915c1
VZ
1592 # Check whether --with-libpng or --without-libpng was given.
1593if test "${with_libpng+set}" = set; then
1594 withval="$with_libpng"
10f2d63a
VZ
1595
1596 if test "$withval" = yes; then
b12915c1 1597 ac_cv_use_libpng='wxUSE_LIBPNG=yes'
422107f9 1598 elif test "$withval" = no; then
b12915c1 1599 ac_cv_use_libpng='wxUSE_LIBPNG=no'
422107f9
VZ
1600 elif test "$withval" = sys; then
1601 ac_cv_use_libpng='wxUSE_LIBPNG=sys'
1602 else
1603 { echo "configure: error: Invalid value for --with-libpng: should be yes, no or sys" 1>&2; exit 1; }
10f2d63a
VZ
1604 fi
1605
1606else
1607
b12915c1 1608 LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
10f2d63a
VZ
1609 if test "x$LINE" != x ; then
1610 eval "DEFAULT_$LINE"
1611 else
1612 no_cache=1
1613 fi
1614
b12915c1 1615 ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
10f2d63a
VZ
1616
1617fi
1618
1619
b12915c1 1620 eval "$ac_cv_use_libpng"
10f2d63a 1621 if test "$no_cache" != 1; then
b12915c1 1622 echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
1623 fi
1624
b12915c1 1625 if test "$wxUSE_LIBPNG" = yes; then
10f2d63a 1626 echo "$ac_t""yes" 1>&6
422107f9 1627 elif test "$wxUSE_LIBPNG" = no; then
10f2d63a 1628 echo "$ac_t""no" 1>&6
422107f9
VZ
1629 elif test "$wxUSE_LIBPNG" = sys; then
1630 echo "$ac_t""system version" 1>&6
1631 else
1632 { echo "configure: error: Invalid value for --with-libpng: should be yes, no or sys" 1>&2; exit 1; }
10f2d63a
VZ
1633 fi
1634
1635
b12915c1 1636 echo $ac_n "checking "for --with-libjpeg"""... $ac_c" 1>&6
eb4efbdc 1637echo "configure:1638: checking "for --with-libjpeg"" >&5
10f2d63a 1638 no_cache=0
b12915c1
VZ
1639 # Check whether --with-libjpeg or --without-libjpeg was given.
1640if test "${with_libjpeg+set}" = set; then
1641 withval="$with_libjpeg"
10f2d63a
VZ
1642
1643 if test "$withval" = yes; then
b12915c1 1644 ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
422107f9 1645 elif test "$withval" = no; then
b12915c1 1646 ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
422107f9
VZ
1647 elif test "$withval" = sys; then
1648 ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
1649 else
1650 { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no or sys" 1>&2; exit 1; }
10f2d63a
VZ
1651 fi
1652
1653else
1654
b12915c1 1655 LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
10f2d63a
VZ
1656 if test "x$LINE" != x ; then
1657 eval "DEFAULT_$LINE"
1658 else
1659 no_cache=1
1660 fi
1661
b12915c1 1662 ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
10f2d63a
VZ
1663
1664fi
1665
1666
b12915c1 1667 eval "$ac_cv_use_libjpeg"
10f2d63a 1668 if test "$no_cache" != 1; then
b12915c1 1669 echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
1670 fi
1671
b12915c1 1672 if test "$wxUSE_LIBJPEG" = yes; then
10f2d63a 1673 echo "$ac_t""yes" 1>&6
422107f9 1674 elif test "$wxUSE_LIBJPEG" = no; then
10f2d63a 1675 echo "$ac_t""no" 1>&6
422107f9
VZ
1676 elif test "$wxUSE_LIBJPEG" = sys; then
1677 echo "$ac_t""system version" 1>&6
1678 else
1679 { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no or sys" 1>&2; exit 1; }
10f2d63a
VZ
1680 fi
1681
1682
b12915c1 1683 echo $ac_n "checking "for --with-libtiff"""... $ac_c" 1>&6
eb4efbdc 1684echo "configure:1685: checking "for --with-libtiff"" >&5
10f2d63a 1685 no_cache=0
b12915c1
VZ
1686 # Check whether --with-libtiff or --without-libtiff was given.
1687if test "${with_libtiff+set}" = set; then
1688 withval="$with_libtiff"
10f2d63a
VZ
1689
1690 if test "$withval" = yes; then
b12915c1 1691 ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
0dcf9893 1692 elif test "$withval" = no; then
b12915c1 1693 ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
0dcf9893
VZ
1694 elif test "$withval" = sys; then
1695 ac_cv_use_libtiff='wxUSE_LIBTIFF=sys'
1696 else
1697 { echo "configure: error: Invalid value for --with-libtiff: should be yes, no or sys" 1>&2; exit 1; }
10f2d63a
VZ
1698 fi
1699
1700else
1701
b12915c1 1702 LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
10f2d63a
VZ
1703 if test "x$LINE" != x ; then
1704 eval "DEFAULT_$LINE"
1705 else
1706 no_cache=1
1707 fi
1708
b12915c1 1709 ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
10f2d63a
VZ
1710
1711fi
1712
1713
b12915c1 1714 eval "$ac_cv_use_libtiff"
10f2d63a 1715 if test "$no_cache" != 1; then
b12915c1 1716 echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
1717 fi
1718
b12915c1 1719 if test "$wxUSE_LIBTIFF" = yes; then
10f2d63a 1720 echo "$ac_t""yes" 1>&6
0dcf9893 1721 elif test "$wxUSE_LIBTIFF" = no; then
10f2d63a 1722 echo "$ac_t""no" 1>&6
0dcf9893
VZ
1723 elif test "$wxUSE_LIBTIFF" = sys; then
1724 echo "$ac_t""system version" 1>&6
1725 else
1726 { echo "configure: error: Invalid value for --with-libtiff: should be yes, no or sys" 1>&2; exit 1; }
10f2d63a
VZ
1727 fi
1728
1729
b12915c1 1730 echo $ac_n "checking "for --with-opengl"""... $ac_c" 1>&6
eb4efbdc 1731echo "configure:1732: checking "for --with-opengl"" >&5
10f2d63a 1732 no_cache=0
b12915c1
VZ
1733 # Check whether --with-opengl or --without-opengl was given.
1734if test "${with_opengl+set}" = set; then
1735 withval="$with_opengl"
10f2d63a
VZ
1736
1737 if test "$withval" = yes; then
b12915c1 1738 ac_cv_use_opengl='wxUSE_OPENGL=yes'
10f2d63a 1739 else
b12915c1 1740 ac_cv_use_opengl='wxUSE_OPENGL=no'
10f2d63a
VZ
1741 fi
1742
1743else
1744
b12915c1 1745 LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
10f2d63a
VZ
1746 if test "x$LINE" != x ; then
1747 eval "DEFAULT_$LINE"
1748 else
1749 no_cache=1
1750 fi
1751
b12915c1 1752 ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
10f2d63a
VZ
1753
1754fi
1755
1756
b12915c1 1757 eval "$ac_cv_use_opengl"
10f2d63a 1758 if test "$no_cache" != 1; then
b12915c1 1759 echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
1760 fi
1761
b12915c1 1762 if test "$wxUSE_OPENGL" = yes; then
10f2d63a
VZ
1763 echo "$ac_t""yes" 1>&6
1764 else
1765 echo "$ac_t""no" 1>&6
1766 fi
1767
1768
b12915c1
VZ
1769fi
1770
1771
1772 echo $ac_n "checking "for --with-dmalloc"""... $ac_c" 1>&6
eb4efbdc 1773echo "configure:1774: checking "for --with-dmalloc"" >&5
c7a2bf27 1774 no_cache=0
b12915c1
VZ
1775 # Check whether --with-dmalloc or --without-dmalloc was given.
1776if test "${with_dmalloc+set}" = set; then
1777 withval="$with_dmalloc"
c7a2bf27
RR
1778
1779 if test "$withval" = yes; then
b12915c1 1780 ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
c7a2bf27 1781 else
b12915c1 1782 ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
c7a2bf27
RR
1783 fi
1784
1785else
1786
b12915c1 1787 LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
c7a2bf27
RR
1788 if test "x$LINE" != x ; then
1789 eval "DEFAULT_$LINE"
1790 else
1791 no_cache=1
1792 fi
1793
b12915c1 1794 ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
c7a2bf27
RR
1795
1796fi
1797
1798
b12915c1 1799 eval "$ac_cv_use_dmalloc"
c7a2bf27 1800 if test "$no_cache" != 1; then
b12915c1 1801 echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
c7a2bf27
RR
1802 fi
1803
b12915c1 1804 if test "$wxUSE_DMALLOC" = yes; then
c7a2bf27
RR
1805 echo "$ac_t""yes" 1>&6
1806 else
1807 echo "$ac_t""no" 1>&6
1808 fi
1809
1810
b12915c1 1811 echo $ac_n "checking "for --with-zlib"""... $ac_c" 1>&6
eb4efbdc 1812echo "configure:1813: checking "for --with-zlib"" >&5
10f2d63a 1813 no_cache=0
b12915c1
VZ
1814 # Check whether --with-zlib or --without-zlib was given.
1815if test "${with_zlib+set}" = set; then
1816 withval="$with_zlib"
10f2d63a
VZ
1817
1818 if test "$withval" = yes; then
b12915c1 1819 ac_cv_use_zlib='wxUSE_ZLIB=yes'
422107f9 1820 elif test "$withval" = no; then
b12915c1 1821 ac_cv_use_zlib='wxUSE_ZLIB=no'
422107f9
VZ
1822 elif test "$withval" = sys; then
1823 ac_cv_use_zlib='wxUSE_ZLIB=sys'
1824 else
1825 { echo "configure: error: Invalid value for --with-zlib: should be yes, no or sys" 1>&2; exit 1; }
10f2d63a
VZ
1826 fi
1827
1828else
1829
b12915c1 1830 LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
10f2d63a
VZ
1831 if test "x$LINE" != x ; then
1832 eval "DEFAULT_$LINE"
1833 else
1834 no_cache=1
1835 fi
1836
b12915c1 1837 ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
10f2d63a
VZ
1838
1839fi
1840
1841
b12915c1 1842 eval "$ac_cv_use_zlib"
10f2d63a 1843 if test "$no_cache" != 1; then
b12915c1 1844 echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
1845 fi
1846
b12915c1 1847 if test "$wxUSE_ZLIB" = yes; then
10f2d63a 1848 echo "$ac_t""yes" 1>&6
422107f9 1849 elif test "$wxUSE_ZLIB" = no; then
bdad4e7e 1850 echo "$ac_t""no" 1>&6
422107f9
VZ
1851 elif test "$wxUSE_ZLIB" = sys; then
1852 echo "$ac_t""system version" 1>&6
1853 else
1854 { echo "configure: error: Invalid value for --with-zlib: should be yes, no or sys" 1>&2; exit 1; }
10f2d63a
VZ
1855 fi
1856
1857
1858 echo $ac_n "checking "for --with-odbc"""... $ac_c" 1>&6
eb4efbdc 1859echo "configure:1860: checking "for --with-odbc"" >&5
10f2d63a
VZ
1860 no_cache=0
1861 # Check whether --with-odbc or --without-odbc was given.
1862if test "${with_odbc+set}" = set; then
1863 withval="$with_odbc"
1864
1865 if test "$withval" = yes; then
1866 ac_cv_use_odbc='wxUSE_ODBC=yes'
1867 else
1868 ac_cv_use_odbc='wxUSE_ODBC=no'
1869 fi
1870
1871else
1872
1873 LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
1874 if test "x$LINE" != x ; then
1875 eval "DEFAULT_$LINE"
1876 else
1877 no_cache=1
1878 fi
1879
1880 ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
1881
1882fi
1883
1884
1885 eval "$ac_cv_use_odbc"
1886 if test "$no_cache" != 1; then
1887 echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
1888 fi
1889
1890 if test "$wxUSE_ODBC" = yes; then
1891 echo "$ac_t""yes" 1>&6
1892 else
1893 echo "$ac_t""no" 1>&6
1894 fi
1895
1896
1897
1898
1899
1900 echo $ac_n "checking "for --enable-shared"""... $ac_c" 1>&6
eb4efbdc 1901echo "configure:1902: checking "for --enable-shared"" >&5
10f2d63a
VZ
1902 no_cache=0
1903 # Check whether --enable-shared or --disable-shared was given.
1904if test "${enable_shared+set}" = set; then
1905 enableval="$enable_shared"
1906
1907 if test "$enableval" = yes; then
1908 ac_cv_use_shared='wxUSE_SHARED=yes'
1909 else
1910 ac_cv_use_shared='wxUSE_SHARED=no'
1911 fi
1912
1913else
1914
1915 LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
1916 if test "x$LINE" != x ; then
1917 eval "DEFAULT_$LINE"
1918 else
1919 no_cache=1
1920 fi
1921
1922 ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
1923
1924fi
1925
1926
1927 eval "$ac_cv_use_shared"
1928 if test "$no_cache" != 1; then
1929 echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
1930 fi
1931
1932 if test "$wxUSE_SHARED" = yes; then
1933 echo "$ac_t""yes" 1>&6
1934 else
1935 echo "$ac_t""no" 1>&6
1936 fi
1937
1938
00cf1208 1939 echo $ac_n "checking "for --enable-burnt_name"""... $ac_c" 1>&6
eb4efbdc 1940echo "configure:1941: checking "for --enable-burnt_name"" >&5
00cf1208
RR
1941 no_cache=0
1942 # Check whether --enable-burnt_name or --disable-burnt_name was given.
1943if test "${enable_burnt_name+set}" = set; then
1944 enableval="$enable_burnt_name"
1945
1946 if test "$enableval" = yes; then
1947 ac_cv_use_burnt_name='wxUSE_BURNT_NAME=yes'
1948 else
1949 ac_cv_use_burnt_name='wxUSE_BURNT_NAME=no'
1950 fi
1951
1952else
1953
1954 LINE=`grep "wxUSE_BURNT_NAME" ${wx_arg_cache_file}`
1955 if test "x$LINE" != x ; then
1956 eval "DEFAULT_$LINE"
1957 else
1958 no_cache=1
1959 fi
1960
1961 ac_cv_use_burnt_name='wxUSE_BURNT_NAME='$DEFAULT_wxUSE_BURNT_NAME
1962
1963fi
1964
1965
1966 eval "$ac_cv_use_burnt_name"
1967 if test "$no_cache" != 1; then
1968 echo $ac_cv_use_burnt_name >> ${wx_arg_cache_file}.tmp
1969 fi
1970
1971 if test "$wxUSE_BURNT_NAME" = yes; then
1972 echo "$ac_t""yes" 1>&6
1973 else
1974 echo "$ac_t""no" 1>&6
1975 fi
1976
1977
10f2d63a 1978 echo $ac_n "checking "for --enable-optimise"""... $ac_c" 1>&6
eb4efbdc 1979echo "configure:1980: checking "for --enable-optimise"" >&5
10f2d63a
VZ
1980 no_cache=0
1981 # Check whether --enable-optimise or --disable-optimise was given.
1982if test "${enable_optimise+set}" = set; then
1983 enableval="$enable_optimise"
1984
1985 if test "$enableval" = yes; then
1986 ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
1987 else
1988 ac_cv_use_optimise='wxUSE_OPTIMISE=no'
1989 fi
1990
1991else
1992
1993 LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
1994 if test "x$LINE" != x ; then
1995 eval "DEFAULT_$LINE"
1996 else
1997 no_cache=1
1998 fi
1999
2000 ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
2001
2002fi
2003
2004
2005 eval "$ac_cv_use_optimise"
2006 if test "$no_cache" != 1; then
2007 echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
2008 fi
2009
2010 if test "$wxUSE_OPTIMISE" = yes; then
2011 echo "$ac_t""yes" 1>&6
2012 else
2013 echo "$ac_t""no" 1>&6
2014 fi
2015
2016
2017 echo $ac_n "checking "for --enable-debug"""... $ac_c" 1>&6
eb4efbdc 2018echo "configure:2019: checking "for --enable-debug"" >&5
10f2d63a
VZ
2019 no_cache=0
2020 # Check whether --enable-debug or --disable-debug was given.
2021if test "${enable_debug+set}" = set; then
2022 enableval="$enable_debug"
2023
2024 if test "$enableval" = yes; then
2025 ac_cv_use_debug='wxUSE_DEBUG=yes'
2026 else
2027 ac_cv_use_debug='wxUSE_DEBUG=no'
2028 fi
2029
2030else
2031
2032 LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
2033 if test "x$LINE" != x ; then
2034 eval "DEFAULT_$LINE"
2035 else
2036 no_cache=1
2037 fi
2038
2039 ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
2040
2041fi
2042
2043
2044 eval "$ac_cv_use_debug"
2045 if test "$no_cache" != 1; then
2046 echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
2047 fi
2048
2049 if test "$wxUSE_DEBUG" = yes; then
2050 echo "$ac_t""yes" 1>&6
2051 else
2052 echo "$ac_t""no" 1>&6
2053 fi
2054
2055
2056if test "$wxUSE_DEBUG" = "yes"; then
2057 DEFAULT_wxUSE_DEBUG_FLAG=yes
2058 DEFAULT_wxUSE_DEBUG_INFO=yes
2059elif test "$wxUSE_DEBUG" = "no"; then
2060 DEFAULT_wxUSE_DEBUG_FLAG=no
2061 DEFAULT_wxUSE_DEBUG_INFO=no
2062fi
2063
2064
2065 echo $ac_n "checking "for --enable-debug_flag"""... $ac_c" 1>&6
eb4efbdc 2066echo "configure:2067: checking "for --enable-debug_flag"" >&5
10f2d63a
VZ
2067 no_cache=0
2068 # Check whether --enable-debug_flag or --disable-debug_flag was given.
2069if test "${enable_debug_flag+set}" = set; then
2070 enableval="$enable_debug_flag"
2071
2072 if test "$enableval" = yes; then
2073 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
2074 else
2075 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
2076 fi
2077
2078else
2079
2080 LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
2081 if test "x$LINE" != x ; then
2082 eval "DEFAULT_$LINE"
2083 else
2084 no_cache=1
2085 fi
2086
2087 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
2088
2089fi
2090
2091
2092 eval "$ac_cv_use_debug_flag"
2093 if test "$no_cache" != 1; then
2094 echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
2095 fi
2096
2097 if test "$wxUSE_DEBUG_FLAG" = yes; then
2098 echo "$ac_t""yes" 1>&6
2099 else
2100 echo "$ac_t""no" 1>&6
2101 fi
2102
2103
2104 echo $ac_n "checking "for --enable-debug_info"""... $ac_c" 1>&6
eb4efbdc 2105echo "configure:2106: checking "for --enable-debug_info"" >&5
10f2d63a
VZ
2106 no_cache=0
2107 # Check whether --enable-debug_info or --disable-debug_info was given.
2108if test "${enable_debug_info+set}" = set; then
2109 enableval="$enable_debug_info"
2110
2111 if test "$enableval" = yes; then
2112 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
2113 else
2114 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
2115 fi
2116
2117else
2118
2119 LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
2120 if test "x$LINE" != x ; then
2121 eval "DEFAULT_$LINE"
2122 else
2123 no_cache=1
2124 fi
2125
2126 ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
2127
2128fi
2129
2130
2131 eval "$ac_cv_use_debug_info"
2132 if test "$no_cache" != 1; then
2133 echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
2134 fi
2135
2136 if test "$wxUSE_DEBUG_INFO" = yes; then
2137 echo "$ac_t""yes" 1>&6
2138 else
2139 echo "$ac_t""no" 1>&6
2140 fi
2141
2142
2143 echo $ac_n "checking "for --enable-debug_gdb"""... $ac_c" 1>&6
eb4efbdc 2144echo "configure:2145: checking "for --enable-debug_gdb"" >&5
10f2d63a
VZ
2145 no_cache=0
2146 # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
2147if test "${enable_debug_gdb+set}" = set; then
2148 enableval="$enable_debug_gdb"
2149
2150 if test "$enableval" = yes; then
2151 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
2152 else
2153 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
2154 fi
2155
2156else
2157
2158 LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
2159 if test "x$LINE" != x ; then
2160 eval "DEFAULT_$LINE"
2161 else
2162 no_cache=1
2163 fi
2164
2165 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
2166
2167fi
2168
2169
2170 eval "$ac_cv_use_debug_gdb"
2171 if test "$no_cache" != 1; then
2172 echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
2173 fi
2174
2175 if test "$wxUSE_DEBUG_GDB" = yes; then
2176 echo "$ac_t""yes" 1>&6
2177 else
2178 echo "$ac_t""no" 1>&6
2179 fi
2180
2181
2182 echo $ac_n "checking "for --enable-debug_cntxt"""... $ac_c" 1>&6
eb4efbdc 2183echo "configure:2184: checking "for --enable-debug_cntxt"" >&5
10f2d63a
VZ
2184 no_cache=0
2185 # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
2186if test "${enable_debug_cntxt+set}" = set; then
2187 enableval="$enable_debug_cntxt"
2188
2189 if test "$enableval" = yes; then
2190 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
2191 else
2192 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
2193 fi
2194
2195else
2196
2197 LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
2198 if test "x$LINE" != x ; then
2199 eval "DEFAULT_$LINE"
2200 else
2201 no_cache=1
2202 fi
2203
2204 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
2205
2206fi
2207
2208
2209 eval "$ac_cv_use_debug_cntxt"
2210 if test "$no_cache" != 1; then
2211 echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
2212 fi
2213
2214 if test "$wxUSE_DEBUG_CONTEXT" = yes; then
2215 echo "$ac_t""yes" 1>&6
2216 else
2217 echo "$ac_t""no" 1>&6
2218 fi
2219
2220
2221 echo $ac_n "checking "for --enable-mem_tracing"""... $ac_c" 1>&6
eb4efbdc 2222echo "configure:2223: checking "for --enable-mem_tracing"" >&5
10f2d63a
VZ
2223 no_cache=0
2224 # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
2225if test "${enable_mem_tracing+set}" = set; then
2226 enableval="$enable_mem_tracing"
2227
2228 if test "$enableval" = yes; then
2229 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
2230 else
2231 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
2232 fi
2233
2234else
2235
2236 LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
2237 if test "x$LINE" != x ; then
2238 eval "DEFAULT_$LINE"
2239 else
2240 no_cache=1
2241 fi
2242
2243 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
2244
2245fi
2246
2247
2248 eval "$ac_cv_use_mem_tracing"
2249 if test "$no_cache" != 1; then
2250 echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
2251 fi
2252
2253 if test "$wxUSE_MEM_TRACING" = yes; then
2254 echo "$ac_t""yes" 1>&6
2255 else
2256 echo "$ac_t""no" 1>&6
2257 fi
2258
2259
2260 echo $ac_n "checking "for --enable-profile"""... $ac_c" 1>&6
eb4efbdc 2261echo "configure:2262: checking "for --enable-profile"" >&5
10f2d63a
VZ
2262 no_cache=0
2263 # Check whether --enable-profile or --disable-profile was given.
2264if test "${enable_profile+set}" = set; then
2265 enableval="$enable_profile"
2266
2267 if test "$enableval" = yes; then
2268 ac_cv_use_profile='wxUSE_PROFILE=yes'
2269 else
2270 ac_cv_use_profile='wxUSE_PROFILE=no'
2271 fi
2272
2273else
2274
2275 LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
2276 if test "x$LINE" != x ; then
2277 eval "DEFAULT_$LINE"
2278 else
2279 no_cache=1
2280 fi
2281
2282 ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
2283
2284fi
2285
2286
2287 eval "$ac_cv_use_profile"
2288 if test "$no_cache" != 1; then
2289 echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
2290 fi
2291
2292 if test "$wxUSE_PROFILE" = yes; then
2293 echo "$ac_t""yes" 1>&6
2294 else
2295 echo "$ac_t""no" 1>&6
2296 fi
2297
2298
2299 echo $ac_n "checking "for --enable-no_rtti"""... $ac_c" 1>&6
eb4efbdc 2300echo "configure:2301: checking "for --enable-no_rtti"" >&5
10f2d63a
VZ
2301 no_cache=0
2302 # Check whether --enable-no_rtti or --disable-no_rtti was given.
2303if test "${enable_no_rtti+set}" = set; then
2304 enableval="$enable_no_rtti"
2305
2306 if test "$enableval" = yes; then
2307 ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
2308 else
2309 ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
2310 fi
2311
2312else
2313
2314 LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
2315 if test "x$LINE" != x ; then
2316 eval "DEFAULT_$LINE"
2317 else
2318 no_cache=1
2319 fi
2320
2321 ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
2322
2323fi
2324
2325
2326 eval "$ac_cv_use_no_rtti"
2327 if test "$no_cache" != 1; then
2328 echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
2329 fi
2330
2331 if test "$wxUSE_NO_RTTI" = yes; then
2332 echo "$ac_t""yes" 1>&6
2333 else
2334 echo "$ac_t""no" 1>&6
2335 fi
2336
2337
2338 echo $ac_n "checking "for --enable-no_exceptions"""... $ac_c" 1>&6
eb4efbdc 2339echo "configure:2340: checking "for --enable-no_exceptions"" >&5
10f2d63a
VZ
2340 no_cache=0
2341 # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
2342if test "${enable_no_exceptions+set}" = set; then
2343 enableval="$enable_no_exceptions"
2344
2345 if test "$enableval" = yes; then
2346 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
2347 else
2348 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
2349 fi
2350
2351else
2352
2353 LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
2354 if test "x$LINE" != x ; then
2355 eval "DEFAULT_$LINE"
2356 else
2357 no_cache=1
2358 fi
2359
2360 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
2361
2362fi
2363
2364
2365 eval "$ac_cv_use_no_exceptions"
2366 if test "$no_cache" != 1; then
2367 echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
2368 fi
2369
2370 if test "$wxUSE_NO_EXCEPTIONS" = yes; then
2371 echo "$ac_t""yes" 1>&6
2372 else
2373 echo "$ac_t""no" 1>&6
2374 fi
2375
2376
2377 echo $ac_n "checking "for --enable-permissive"""... $ac_c" 1>&6
eb4efbdc 2378echo "configure:2379: checking "for --enable-permissive"" >&5
10f2d63a
VZ
2379 no_cache=0
2380 # Check whether --enable-permissive or --disable-permissive was given.
2381if test "${enable_permissive+set}" = set; then
2382 enableval="$enable_permissive"
2383
2384 if test "$enableval" = yes; then
2385 ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
2386 else
2387 ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
2388 fi
2389
2390else
2391
2392 LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
2393 if test "x$LINE" != x ; then
2394 eval "DEFAULT_$LINE"
2395 else
2396 no_cache=1
2397 fi
2398
2399 ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
2400
2401fi
2402
2403
2404 eval "$ac_cv_use_permissive"
2405 if test "$no_cache" != 1; then
2406 echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
2407 fi
2408
2409 if test "$wxUSE_PERMISSIVE" = yes; then
2410 echo "$ac_t""yes" 1>&6
2411 else
2412 echo "$ac_t""no" 1>&6
2413 fi
2414
2415
2416 echo $ac_n "checking "for --enable-no_deps"""... $ac_c" 1>&6
eb4efbdc 2417echo "configure:2418: checking "for --enable-no_deps"" >&5
10f2d63a
VZ
2418 no_cache=0
2419 # Check whether --enable-no_deps or --disable-no_deps was given.
2420if test "${enable_no_deps+set}" = set; then
2421 enableval="$enable_no_deps"
2422
2423 if test "$enableval" = yes; then
2424 ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
2425 else
2426 ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
2427 fi
2428
2429else
2430
2431 LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
2432 if test "x$LINE" != x ; then
2433 eval "DEFAULT_$LINE"
2434 else
2435 no_cache=1
2436 fi
2437
2438 ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
2439
2440fi
2441
2442
2443 eval "$ac_cv_use_no_deps"
2444 if test "$no_cache" != 1; then
2445 echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
2446 fi
2447
2448 if test "$wxUSE_NO_DEPS" = yes; then
2449 echo "$ac_t""yes" 1>&6
2450 else
2451 echo "$ac_t""no" 1>&6
2452 fi
2453
2454
2455
2456
2457 echo $ac_n "checking "for --enable-intl"""... $ac_c" 1>&6
eb4efbdc 2458echo "configure:2459: checking "for --enable-intl"" >&5
10f2d63a
VZ
2459 no_cache=0
2460 # Check whether --enable-intl or --disable-intl was given.
2461if test "${enable_intl+set}" = set; then
2462 enableval="$enable_intl"
2463
2464 if test "$enableval" = yes; then
2465 ac_cv_use_intl='wxUSE_INTL=yes'
2466 else
2467 ac_cv_use_intl='wxUSE_INTL=no'
2468 fi
2469
2470else
2471
2472 LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
2473 if test "x$LINE" != x ; then
2474 eval "DEFAULT_$LINE"
2475 else
2476 no_cache=1
2477 fi
2478
2479 ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
2480
2481fi
2482
2483
2484 eval "$ac_cv_use_intl"
2485 if test "$no_cache" != 1; then
2486 echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
2487 fi
2488
2489 if test "$wxUSE_INTL" = yes; then
2490 echo "$ac_t""yes" 1>&6
2491 else
2492 echo "$ac_t""no" 1>&6
2493 fi
2494
2495
2496 echo $ac_n "checking "for --enable-config"""... $ac_c" 1>&6
eb4efbdc 2497echo "configure:2498: checking "for --enable-config"" >&5
10f2d63a
VZ
2498 no_cache=0
2499 # Check whether --enable-config or --disable-config was given.
2500if test "${enable_config+set}" = set; then
2501 enableval="$enable_config"
2502
2503 if test "$enableval" = yes; then
2504 ac_cv_use_config='wxUSE_CONFIG=yes'
2505 else
2506 ac_cv_use_config='wxUSE_CONFIG=no'
2507 fi
2508
2509else
2510
2511 LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
2512 if test "x$LINE" != x ; then
2513 eval "DEFAULT_$LINE"
2514 else
2515 no_cache=1
2516 fi
2517
2518 ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
2519
2520fi
2521
2522
2523 eval "$ac_cv_use_config"
2524 if test "$no_cache" != 1; then
2525 echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
2526 fi
2527
2528 if test "$wxUSE_CONFIG" = yes; then
2529 echo "$ac_t""yes" 1>&6
2530 else
2531 echo "$ac_t""no" 1>&6
2532 fi
2533
2534
b12915c1 2535
10f2d63a 2536 echo $ac_n "checking "for --enable-sockets"""... $ac_c" 1>&6
eb4efbdc 2537echo "configure:2538: checking "for --enable-sockets"" >&5
10f2d63a
VZ
2538 no_cache=0
2539 # Check whether --enable-sockets or --disable-sockets was given.
2540if test "${enable_sockets+set}" = set; then
2541 enableval="$enable_sockets"
2542
2543 if test "$enableval" = yes; then
2544 ac_cv_use_sockets='wxUSE_SOCKETS=yes'
2545 else
2546 ac_cv_use_sockets='wxUSE_SOCKETS=no'
2547 fi
2548
2549else
2550
2551 LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
2552 if test "x$LINE" != x ; then
2553 eval "DEFAULT_$LINE"
2554 else
2555 no_cache=1
2556 fi
2557
2558 ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
2559
2560fi
2561
2562
2563 eval "$ac_cv_use_sockets"
2564 if test "$no_cache" != 1; then
2565 echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
2566 fi
2567
2568 if test "$wxUSE_SOCKETS" = yes; then
2569 echo "$ac_t""yes" 1>&6
2570 else
2571 echo "$ac_t""no" 1>&6
2572 fi
2573
b12915c1 2574
10f2d63a 2575
eb4efbdc
VZ
2576 echo $ac_n "checking "for --enable-ipc"""... $ac_c" 1>&6
2577echo "configure:2578: checking "for --enable-ipc"" >&5
10f2d63a 2578 no_cache=0
eb4efbdc
VZ
2579 # Check whether --enable-ipc or --disable-ipc was given.
2580if test "${enable_ipc+set}" = set; then
2581 enableval="$enable_ipc"
10f2d63a
VZ
2582
2583 if test "$enableval" = yes; then
eb4efbdc 2584 ac_cv_use_ipc='wxUSE_IPC=yes'
10f2d63a 2585 else
eb4efbdc 2586 ac_cv_use_ipc='wxUSE_IPC=no'
10f2d63a
VZ
2587 fi
2588
2589else
2590
eb4efbdc 2591 LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
10f2d63a
VZ
2592 if test "x$LINE" != x ; then
2593 eval "DEFAULT_$LINE"
2594 else
2595 no_cache=1
2596 fi
2597
eb4efbdc 2598 ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
10f2d63a
VZ
2599
2600fi
2601
2602
eb4efbdc 2603 eval "$ac_cv_use_ipc"
10f2d63a 2604 if test "$no_cache" != 1; then
eb4efbdc 2605 echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2606 fi
2607
eb4efbdc 2608 if test "$wxUSE_IPC" = yes; then
10f2d63a
VZ
2609 echo "$ac_t""yes" 1>&6
2610 else
2611 echo "$ac_t""no" 1>&6
2612 fi
2613
2614
eb4efbdc
VZ
2615
2616 echo $ac_n "checking "for --enable-dialupman"""... $ac_c" 1>&6
2617echo "configure:2618: checking "for --enable-dialupman"" >&5
10f2d63a 2618 no_cache=0
eb4efbdc
VZ
2619 # Check whether --enable-dialupman or --disable-dialupman was given.
2620if test "${enable_dialupman+set}" = set; then
2621 enableval="$enable_dialupman"
10f2d63a
VZ
2622
2623 if test "$enableval" = yes; then
eb4efbdc 2624 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
10f2d63a 2625 else
eb4efbdc 2626 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
10f2d63a
VZ
2627 fi
2628
2629else
2630
eb4efbdc 2631 LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
10f2d63a
VZ
2632 if test "x$LINE" != x ; then
2633 eval "DEFAULT_$LINE"
2634 else
2635 no_cache=1
2636 fi
2637
eb4efbdc 2638 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
10f2d63a
VZ
2639
2640fi
2641
2642
eb4efbdc 2643 eval "$ac_cv_use_dialupman"
10f2d63a 2644 if test "$no_cache" != 1; then
eb4efbdc 2645 echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2646 fi
2647
eb4efbdc 2648 if test "$wxUSE_DIALUP_MANAGER" = yes; then
10f2d63a
VZ
2649 echo "$ac_t""yes" 1>&6
2650 else
2651 echo "$ac_t""no" 1>&6
2652 fi
2653
2654
2655 echo $ac_n "checking "for --enable-apple_ieee"""... $ac_c" 1>&6
eb4efbdc 2656echo "configure:2657: checking "for --enable-apple_ieee"" >&5
10f2d63a
VZ
2657 no_cache=0
2658 # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
2659if test "${enable_apple_ieee+set}" = set; then
2660 enableval="$enable_apple_ieee"
2661
2662 if test "$enableval" = yes; then
2663 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
2664 else
2665 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
2666 fi
2667
2668else
2669
2670 LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
2671 if test "x$LINE" != x ; then
2672 eval "DEFAULT_$LINE"
2673 else
2674 no_cache=1
2675 fi
2676
2677 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
2678
2679fi
2680
2681
2682 eval "$ac_cv_use_apple_ieee"
2683 if test "$no_cache" != 1; then
2684 echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
2685 fi
2686
2687 if test "$wxUSE_APPLE_IEEE" = yes; then
2688 echo "$ac_t""yes" 1>&6
2689 else
2690 echo "$ac_t""no" 1>&6
2691 fi
2692
2693
2694 echo $ac_n "checking "for --enable-timedate"""... $ac_c" 1>&6
eb4efbdc 2695echo "configure:2696: checking "for --enable-timedate"" >&5
10f2d63a
VZ
2696 no_cache=0
2697 # Check whether --enable-timedate or --disable-timedate was given.
2698if test "${enable_timedate+set}" = set; then
2699 enableval="$enable_timedate"
2700
2701 if test "$enableval" = yes; then
2702 ac_cv_use_timedate='wxUSE_TIMEDATE=yes'
2703 else
2704 ac_cv_use_timedate='wxUSE_TIMEDATE=no'
2705 fi
2706
2707else
2708
2709 LINE=`grep "wxUSE_TIMEDATE" ${wx_arg_cache_file}`
2710 if test "x$LINE" != x ; then
2711 eval "DEFAULT_$LINE"
2712 else
2713 no_cache=1
2714 fi
2715
2716 ac_cv_use_timedate='wxUSE_TIMEDATE='$DEFAULT_wxUSE_TIMEDATE
2717
2718fi
2719
2720
2721 eval "$ac_cv_use_timedate"
2722 if test "$no_cache" != 1; then
2723 echo $ac_cv_use_timedate >> ${wx_arg_cache_file}.tmp
2724 fi
2725
2726 if test "$wxUSE_TIMEDATE" = yes; then
2727 echo "$ac_t""yes" 1>&6
2728 else
2729 echo "$ac_t""no" 1>&6
2730 fi
2731
2732
2733 echo $ac_n "checking "for --enable-wave"""... $ac_c" 1>&6
eb4efbdc 2734echo "configure:2735: checking "for --enable-wave"" >&5
10f2d63a
VZ
2735 no_cache=0
2736 # Check whether --enable-wave or --disable-wave was given.
2737if test "${enable_wave+set}" = set; then
2738 enableval="$enable_wave"
2739
2740 if test "$enableval" = yes; then
2741 ac_cv_use_wave='wxUSE_WAVE=yes'
2742 else
2743 ac_cv_use_wave='wxUSE_WAVE=no'
2744 fi
2745
2746else
2747
2748 LINE=`grep "wxUSE_WAVE" ${wx_arg_cache_file}`
2749 if test "x$LINE" != x ; then
2750 eval "DEFAULT_$LINE"
2751 else
2752 no_cache=1
2753 fi
2754
2755 ac_cv_use_wave='wxUSE_WAVE='$DEFAULT_wxUSE_WAVE
2756
2757fi
2758
2759
2760 eval "$ac_cv_use_wave"
2761 if test "$no_cache" != 1; then
2762 echo $ac_cv_use_wave >> ${wx_arg_cache_file}.tmp
2763 fi
2764
2765 if test "$wxUSE_WAVE" = yes; then
2766 echo "$ac_t""yes" 1>&6
2767 else
2768 echo "$ac_t""no" 1>&6
2769 fi
2770
2771
2772 echo $ac_n "checking "for --enable-fraction"""... $ac_c" 1>&6
eb4efbdc 2773echo "configure:2774: checking "for --enable-fraction"" >&5
10f2d63a
VZ
2774 no_cache=0
2775 # Check whether --enable-fraction or --disable-fraction was given.
2776if test "${enable_fraction+set}" = set; then
2777 enableval="$enable_fraction"
2778
2779 if test "$enableval" = yes; then
2780 ac_cv_use_fraction='wxUSE_FRACTION=yes'
2781 else
2782 ac_cv_use_fraction='wxUSE_FRACTION=no'
2783 fi
2784
2785else
2786
2787 LINE=`grep "wxUSE_FRACTION" ${wx_arg_cache_file}`
2788 if test "x$LINE" != x ; then
2789 eval "DEFAULT_$LINE"
2790 else
2791 no_cache=1
2792 fi
2793
2794 ac_cv_use_fraction='wxUSE_FRACTION='$DEFAULT_wxUSE_FRACTION
2795
2796fi
2797
2798
2799 eval "$ac_cv_use_fraction"
2800 if test "$no_cache" != 1; then
2801 echo $ac_cv_use_fraction >> ${wx_arg_cache_file}.tmp
2802 fi
2803
2804 if test "$wxUSE_FRACTION" = yes; then
2805 echo "$ac_t""yes" 1>&6
2806 else
2807 echo "$ac_t""no" 1>&6
2808 fi
2809
2810
2811 echo $ac_n "checking "for --enable-dynlib"""... $ac_c" 1>&6
eb4efbdc 2812echo "configure:2813: checking "for --enable-dynlib"" >&5
10f2d63a
VZ
2813 no_cache=0
2814 # Check whether --enable-dynlib or --disable-dynlib was given.
2815if test "${enable_dynlib+set}" = set; then
2816 enableval="$enable_dynlib"
2817
2818 if test "$enableval" = yes; then
2819 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
2820 else
2821 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
2822 fi
2823
2824else
2825
2826 LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
2827 if test "x$LINE" != x ; then
2828 eval "DEFAULT_$LINE"
2829 else
2830 no_cache=1
2831 fi
2832
2833 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
2834
2835fi
2836
2837
2838 eval "$ac_cv_use_dynlib"
2839 if test "$no_cache" != 1; then
2840 echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
2841 fi
2842
2843 if test "$wxUSE_DYNLIB_CLASS" = yes; then
2844 echo "$ac_t""yes" 1>&6
2845 else
2846 echo "$ac_t""no" 1>&6
2847 fi
2848
2849
2850 echo $ac_n "checking "for --enable-longlong"""... $ac_c" 1>&6
eb4efbdc 2851echo "configure:2852: checking "for --enable-longlong"" >&5
10f2d63a
VZ
2852 no_cache=0
2853 # Check whether --enable-longlong or --disable-longlong was given.
2854if test "${enable_longlong+set}" = set; then
2855 enableval="$enable_longlong"
2856
2857 if test "$enableval" = yes; then
2858 ac_cv_use_longlong='wxUSE_LONGLONG=yes'
2859 else
2860 ac_cv_use_longlong='wxUSE_LONGLONG=no'
2861 fi
2862
2863else
2864
2865 LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
2866 if test "x$LINE" != x ; then
2867 eval "DEFAULT_$LINE"
2868 else
2869 no_cache=1
2870 fi
2871
2872 ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
2873
2874fi
2875
2876
2877 eval "$ac_cv_use_longlong"
2878 if test "$no_cache" != 1; then
2879 echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
2880 fi
2881
2882 if test "$wxUSE_LONGLONG" = yes; then
2883 echo "$ac_t""yes" 1>&6
2884 else
2885 echo "$ac_t""no" 1>&6
2886 fi
2887
2888
2889 echo $ac_n "checking "for --enable-log"""... $ac_c" 1>&6
eb4efbdc 2890echo "configure:2891: checking "for --enable-log"" >&5
10f2d63a
VZ
2891 no_cache=0
2892 # Check whether --enable-log or --disable-log was given.
2893if test "${enable_log+set}" = set; then
2894 enableval="$enable_log"
2895
2896 if test "$enableval" = yes; then
2897 ac_cv_use_log='wxUSE_LOG=yes'
2898 else
2899 ac_cv_use_log='wxUSE_LOG=no'
2900 fi
2901
2902else
2903
2904 LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
2905 if test "x$LINE" != x ; then
2906 eval "DEFAULT_$LINE"
2907 else
2908 no_cache=1
2909 fi
2910
2911 ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
2912
2913fi
2914
2915
2916 eval "$ac_cv_use_log"
2917 if test "$no_cache" != 1; then
2918 echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
2919 fi
2920
2921 if test "$wxUSE_LOG" = yes; then
2922 echo "$ac_t""yes" 1>&6
2923 else
2924 echo "$ac_t""no" 1>&6
2925 fi
2926
2927
2928 echo $ac_n "checking "for --enable-streams"""... $ac_c" 1>&6
eb4efbdc 2929echo "configure:2930: checking "for --enable-streams"" >&5
10f2d63a
VZ
2930 no_cache=0
2931 # Check whether --enable-streams or --disable-streams was given.
2932if test "${enable_streams+set}" = set; then
2933 enableval="$enable_streams"
2934
2935 if test "$enableval" = yes; then
2936 ac_cv_use_streams='wxUSE_STREAMS=yes'
2937 else
2938 ac_cv_use_streams='wxUSE_STREAMS=no'
2939 fi
2940
2941else
2942
2943 LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
2944 if test "x$LINE" != x ; then
2945 eval "DEFAULT_$LINE"
2946 else
2947 no_cache=1
2948 fi
2949
2950 ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
2951
2952fi
2953
2954
2955 eval "$ac_cv_use_streams"
2956 if test "$no_cache" != 1; then
2957 echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
2958 fi
2959
2960 if test "$wxUSE_STREAMS" = yes; then
2961 echo "$ac_t""yes" 1>&6
2962 else
2963 echo "$ac_t""no" 1>&6
2964 fi
2965
2966
2967 echo $ac_n "checking "for --enable-file"""... $ac_c" 1>&6
eb4efbdc 2968echo "configure:2969: checking "for --enable-file"" >&5
10f2d63a
VZ
2969 no_cache=0
2970 # Check whether --enable-file or --disable-file was given.
2971if test "${enable_file+set}" = set; then
2972 enableval="$enable_file"
2973
2974 if test "$enableval" = yes; then
2975 ac_cv_use_file='wxUSE_FILE=yes'
2976 else
2977 ac_cv_use_file='wxUSE_FILE=no'
2978 fi
2979
2980else
2981
2982 LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
2983 if test "x$LINE" != x ; then
2984 eval "DEFAULT_$LINE"
2985 else
2986 no_cache=1
2987 fi
2988
2989 ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
2990
2991fi
2992
2993
2994 eval "$ac_cv_use_file"
2995 if test "$no_cache" != 1; then
2996 echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
2997 fi
2998
2999 if test "$wxUSE_FILE" = yes; then
3000 echo "$ac_t""yes" 1>&6
3001 else
3002 echo "$ac_t""no" 1>&6
3003 fi
3004
3005
3006 echo $ac_n "checking "for --enable-textfile"""... $ac_c" 1>&6
eb4efbdc 3007echo "configure:3008: checking "for --enable-textfile"" >&5
10f2d63a
VZ
3008 no_cache=0
3009 # Check whether --enable-textfile or --disable-textfile was given.
3010if test "${enable_textfile+set}" = set; then
3011 enableval="$enable_textfile"
3012
3013 if test "$enableval" = yes; then
3014 ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
3015 else
3016 ac_cv_use_textfile='wxUSE_TEXTFILE=no'
3017 fi
3018
3019else
3020
3021 LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
3022 if test "x$LINE" != x ; then
3023 eval "DEFAULT_$LINE"
3024 else
3025 no_cache=1
3026 fi
3027
3028 ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
3029
3030fi
3031
3032
3033 eval "$ac_cv_use_textfile"
3034 if test "$no_cache" != 1; then
3035 echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
3036 fi
3037
3038 if test "$wxUSE_TEXTFILE" = yes; then
3039 echo "$ac_t""yes" 1>&6
3040 else
3041 echo "$ac_t""no" 1>&6
3042 fi
3043
3044
3045 echo $ac_n "checking "for --enable-unicode"""... $ac_c" 1>&6
eb4efbdc 3046echo "configure:3047: checking "for --enable-unicode"" >&5
10f2d63a
VZ
3047 no_cache=0
3048 # Check whether --enable-unicode or --disable-unicode was given.
3049if test "${enable_unicode+set}" = set; then
3050 enableval="$enable_unicode"
3051
3052 if test "$enableval" = yes; then
3053 ac_cv_use_unicode='wxUSE_UNICODE=yes'
3054 else
3055 ac_cv_use_unicode='wxUSE_UNICODE=no'
3056 fi
3057
3058else
3059
3060 LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
3061 if test "x$LINE" != x ; then
3062 eval "DEFAULT_$LINE"
3063 else
3064 no_cache=1
3065 fi
3066
3067 ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
3068
3069fi
3070
3071
3072 eval "$ac_cv_use_unicode"
3073 if test "$no_cache" != 1; then
3074 echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
3075 fi
3076
3077 if test "$wxUSE_UNICODE" = yes; then
3078 echo "$ac_t""yes" 1>&6
3079 else
3080 echo "$ac_t""no" 1>&6
3081 fi
3082
3083
3084 echo $ac_n "checking "for --enable-wcsrtombs"""... $ac_c" 1>&6
eb4efbdc 3085echo "configure:3086: checking "for --enable-wcsrtombs"" >&5
10f2d63a
VZ
3086 no_cache=0
3087 # Check whether --enable-wcsrtombs or --disable-wcsrtombs was given.
3088if test "${enable_wcsrtombs+set}" = set; then
3089 enableval="$enable_wcsrtombs"
3090
3091 if test "$enableval" = yes; then
3092 ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS=yes'
3093 else
3094 ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS=no'
3095 fi
3096
3097else
3098
3099 LINE=`grep "wxUSE_WCSRTOMBS" ${wx_arg_cache_file}`
3100 if test "x$LINE" != x ; then
3101 eval "DEFAULT_$LINE"
3102 else
3103 no_cache=1
3104 fi
3105
3106 ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS='$DEFAULT_wxUSE_WCSRTOMBS
3107
3108fi
3109
3110
3111 eval "$ac_cv_use_wcsrtombs"
3112 if test "$no_cache" != 1; then
3113 echo $ac_cv_use_wcsrtombs >> ${wx_arg_cache_file}.tmp
3114 fi
3115
3116 if test "$wxUSE_WCSRTOMBS" = yes; then
3117 echo "$ac_t""yes" 1>&6
3118 else
3119 echo "$ac_t""no" 1>&6
3120 fi
3121
3122
3123 echo $ac_n "checking "for --enable-wxprintfv"""... $ac_c" 1>&6
eb4efbdc 3124echo "configure:3125: checking "for --enable-wxprintfv"" >&5
10f2d63a
VZ
3125 no_cache=0
3126 # Check whether --enable-wxprintfv or --disable-wxprintfv was given.
3127if test "${enable_wxprintfv+set}" = set; then
3128 enableval="$enable_wxprintfv"
3129
3130 if test "$enableval" = yes; then
3131 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes'
3132 else
3133 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no'
3134 fi
3135
3136else
3137
3138 LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}`
3139 if test "x$LINE" != x ; then
3140 eval "DEFAULT_$LINE"
3141 else
3142 no_cache=1
3143 fi
3144
3145 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF
3146
3147fi
3148
3149
3150 eval "$ac_cv_use_wxprintfv"
3151 if test "$no_cache" != 1; then
3152 echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp
3153 fi
3154
3155 if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then
3156 echo "$ac_t""yes" 1>&6
3157 else
3158 echo "$ac_t""no" 1>&6
3159 fi
3160
3161
3162 echo $ac_n "checking "for --enable-joystick"""... $ac_c" 1>&6
eb4efbdc 3163echo "configure:3164: checking "for --enable-joystick"" >&5
10f2d63a
VZ
3164 no_cache=0
3165 # Check whether --enable-joystick or --disable-joystick was given.
3166if test "${enable_joystick+set}" = set; then
3167 enableval="$enable_joystick"
3168
3169 if test "$enableval" = yes; then
3170 ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
3171 else
3172 ac_cv_use_joystick='wxUSE_JOYSTICK=no'
3173 fi
3174
3175else
3176
3177 LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
3178 if test "x$LINE" != x ; then
3179 eval "DEFAULT_$LINE"
3180 else
3181 no_cache=1
3182 fi
3183
3184 ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
3185
3186fi
3187
3188
3189 eval "$ac_cv_use_joystick"
3190 if test "$no_cache" != 1; then
3191 echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
3192 fi
3193
3194 if test "$wxUSE_JOYSTICK" = yes; then
3195 echo "$ac_t""yes" 1>&6
3196 else
3197 echo "$ac_t""no" 1>&6
3198 fi
3199
3200
3201 echo $ac_n "checking "for --enable-std_iostreams"""... $ac_c" 1>&6
eb4efbdc 3202echo "configure:3203: checking "for --enable-std_iostreams"" >&5
10f2d63a
VZ
3203 no_cache=0
3204 # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
3205if test "${enable_std_iostreams+set}" = set; then
3206 enableval="$enable_std_iostreams"
3207
3208 if test "$enableval" = yes; then
3209 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
3210 else
3211 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
3212 fi
3213
3214else
3215
3216 LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
3217 if test "x$LINE" != x ; then
3218 eval "DEFAULT_$LINE"
3219 else
3220 no_cache=1
3221 fi
3222
3223 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
3224
3225fi
3226
3227
3228 eval "$ac_cv_use_std_iostreams"
3229 if test "$no_cache" != 1; then
3230 echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
3231 fi
3232
3233 if test "$wxUSE_STD_IOSTREAM" = yes; then
3234 echo "$ac_t""yes" 1>&6
3235 else
3236 echo "$ac_t""no" 1>&6
3237 fi
3238
3239
24528b0c 3240 echo $ac_n "checking "for --enable-filesystem"""... $ac_c" 1>&6
eb4efbdc 3241echo "configure:3242: checking "for --enable-filesystem"" >&5
24528b0c
VS
3242 no_cache=0
3243 # Check whether --enable-filesystem or --disable-filesystem was given.
3244if test "${enable_filesystem+set}" = set; then
3245 enableval="$enable_filesystem"
3246
3247 if test "$enableval" = yes; then
3248 ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
3249 else
3250 ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
3251 fi
3252
3253else
3254
3255 LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}`
3256 if test "x$LINE" != x ; then
3257 eval "DEFAULT_$LINE"
3258 else
3259 no_cache=1
3260 fi
3261
3262 ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
3263
3264fi
3265
3266
3267 eval "$ac_cv_use_filesystem"
3268 if test "$no_cache" != 1; then
3269 echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
3270 fi
3271
3272 if test "$wxUSE_FILESYSTEM" = yes; then
3273 echo "$ac_t""yes" 1>&6
3274 else
3275 echo "$ac_t""no" 1>&6
3276 fi
3277
3278
10f2d63a 3279 echo $ac_n "checking "for --enable-fs_inet"""... $ac_c" 1>&6
eb4efbdc 3280echo "configure:3281: checking "for --enable-fs_inet"" >&5
10f2d63a
VZ
3281 no_cache=0
3282 # Check whether --enable-fs_inet or --disable-fs_inet was given.
3283if test "${enable_fs_inet+set}" = set; then
3284 enableval="$enable_fs_inet"
3285
3286 if test "$enableval" = yes; then
3287 ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
3288 else
3289 ac_cv_use_fs_inet='wxUSE_FS_INET=no'
3290 fi
3291
3292else
3293
3294 LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
3295 if test "x$LINE" != x ; then
3296 eval "DEFAULT_$LINE"
3297 else
3298 no_cache=1
3299 fi
3300
3301 ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
3302
3303fi
3304
3305
3306 eval "$ac_cv_use_fs_inet"
3307 if test "$no_cache" != 1; then
3308 echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
3309 fi
3310
3311 if test "$wxUSE_FS_INET" = yes; then
3312 echo "$ac_t""yes" 1>&6
3313 else
3314 echo "$ac_t""no" 1>&6
3315 fi
3316
3317
3318 echo $ac_n "checking "for --enable-fs_zip"""... $ac_c" 1>&6
eb4efbdc 3319echo "configure:3320: checking "for --enable-fs_zip"" >&5
10f2d63a
VZ
3320 no_cache=0
3321 # Check whether --enable-fs_zip or --disable-fs_zip was given.
3322if test "${enable_fs_zip+set}" = set; then
3323 enableval="$enable_fs_zip"
3324
3325 if test "$enableval" = yes; then
3326 ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
3327 else
3328 ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
3329 fi
3330
3331else
3332
3333 LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
3334 if test "x$LINE" != x ; then
3335 eval "DEFAULT_$LINE"
3336 else
3337 no_cache=1
3338 fi
3339
3340 ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
3341
3342fi
3343
3344
3345 eval "$ac_cv_use_fs_zip"
3346 if test "$no_cache" != 1; then
3347 echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
3348 fi
3349
3350 if test "$wxUSE_FS_ZIP" = yes; then
3351 echo "$ac_t""yes" 1>&6
3352 else
3353 echo "$ac_t""no" 1>&6
3354 fi
3355
3356
3357 echo $ac_n "checking "for --enable-zipstream"""... $ac_c" 1>&6
eb4efbdc 3358echo "configure:3359: checking "for --enable-zipstream"" >&5
10f2d63a
VZ
3359 no_cache=0
3360 # Check whether --enable-zipstream or --disable-zipstream was given.
3361if test "${enable_zipstream+set}" = set; then
3362 enableval="$enable_zipstream"
3363
3364 if test "$enableval" = yes; then
3365 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
3366 else
3367 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
3368 fi
3369
3370else
3371
3372 LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
3373 if test "x$LINE" != x ; then
3374 eval "DEFAULT_$LINE"
3375 else
3376 no_cache=1
3377 fi
3378
3379 ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
3380
3381fi
3382
3383
3384 eval "$ac_cv_use_zipstream"
3385 if test "$no_cache" != 1; then
3386 echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
3387 fi
3388
3389 if test "$wxUSE_ZIPSTREAM" = yes; then
3390 echo "$ac_t""yes" 1>&6
3391 else
3392 echo "$ac_t""no" 1>&6
3393 fi
3394
3395
3396
eb4efbdc
VZ
3397 echo $ac_n "checking "for --enable-catch_segvs"""... $ac_c" 1>&6
3398echo "configure:3399: checking "for --enable-catch_segvs"" >&5
3399 no_cache=0
3400 # Check whether --enable-catch_segvs or --disable-catch_segvs was given.
3401if test "${enable_catch_segvs+set}" = set; then
3402 enableval="$enable_catch_segvs"
3403
3404 if test "$enableval" = yes; then
3405 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
3406 else
3407 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
3408 fi
3409
3410else
3411
3412 LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}`
3413 if test "x$LINE" != x ; then
3414 eval "DEFAULT_$LINE"
3415 else
3416 no_cache=1
3417 fi
3418
3419 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION
3420
3421fi
3422
3423
3424 eval "$ac_cv_use_catch_segvs"
3425 if test "$no_cache" != 1; then
3426 echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp
3427 fi
3428
3429 if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then
3430 echo "$ac_t""yes" 1>&6
3431 else
3432 echo "$ac_t""no" 1>&6
3433 fi
3434
3435
3436
10f2d63a
VZ
3437
3438 echo $ac_n "checking "for --enable-threads"""... $ac_c" 1>&6
eb4efbdc 3439echo "configure:3440: checking "for --enable-threads"" >&5
10f2d63a
VZ
3440 no_cache=0
3441 # Check whether --enable-threads or --disable-threads was given.
3442if test "${enable_threads+set}" = set; then
3443 enableval="$enable_threads"
3444
3445 if test "$enableval" = yes; then
3446 ac_cv_use_threads='wxUSE_THREADS=yes'
3447 else
3448 ac_cv_use_threads='wxUSE_THREADS=no'
3449 fi
3450
3451else
3452
3453 LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
3454 if test "x$LINE" != x ; then
3455 eval "DEFAULT_$LINE"
3456 else
3457 no_cache=1
3458 fi
3459
3460 ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
3461
3462fi
3463
3464
3465 eval "$ac_cv_use_threads"
3466 if test "$no_cache" != 1; then
3467 echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
3468 fi
3469
3470 if test "$wxUSE_THREADS" = yes; then
3471 echo "$ac_t""yes" 1>&6
3472 else
3473 echo "$ac_t""no" 1>&6
3474 fi
3475
3476
3477 echo $ac_n "checking "for --enable-serial"""... $ac_c" 1>&6
eb4efbdc 3478echo "configure:3479: checking "for --enable-serial"" >&5
10f2d63a
VZ
3479 no_cache=0
3480 # Check whether --enable-serial or --disable-serial was given.
3481if test "${enable_serial+set}" = set; then
3482 enableval="$enable_serial"
3483
3484 if test "$enableval" = yes; then
3485 ac_cv_use_serial='wxUSE_SERIAL=yes'
3486 else
3487 ac_cv_use_serial='wxUSE_SERIAL=no'
3488 fi
3489
3490else
3491
3492 LINE=`grep "wxUSE_SERIAL" ${wx_arg_cache_file}`
3493 if test "x$LINE" != x ; then
3494 eval "DEFAULT_$LINE"
3495 else
3496 no_cache=1
3497 fi
3498
3499 ac_cv_use_serial='wxUSE_SERIAL='$DEFAULT_wxUSE_SERIAL
3500
3501fi
3502
3503
3504 eval "$ac_cv_use_serial"
3505 if test "$no_cache" != 1; then
3506 echo $ac_cv_use_serial >> ${wx_arg_cache_file}.tmp
3507 fi
3508
3509 if test "$wxUSE_SERIAL" = yes; then
3510 echo "$ac_t""yes" 1>&6
3511 else
3512 echo "$ac_t""no" 1>&6
3513 fi
3514
3515
b12915c1
VZ
3516if test "$wxUSE_GUI" = "yes"; then
3517
10f2d63a
VZ
3518
3519
3520 echo $ac_n "checking "for --enable-docview"""... $ac_c" 1>&6
eb4efbdc 3521echo "configure:3522: checking "for --enable-docview"" >&5
10f2d63a
VZ
3522 no_cache=0
3523 # Check whether --enable-docview or --disable-docview was given.
3524if test "${enable_docview+set}" = set; then
3525 enableval="$enable_docview"
3526
3527 if test "$enableval" = yes; then
3528 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
3529 else
3530 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
3531 fi
3532
3533else
3534
3535 LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
3536 if test "x$LINE" != x ; then
3537 eval "DEFAULT_$LINE"
3538 else
3539 no_cache=1
3540 fi
3541
3542 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
3543
3544fi
3545
3546
3547 eval "$ac_cv_use_docview"
3548 if test "$no_cache" != 1; then
3549 echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
3550 fi
3551
3552 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
3553 echo "$ac_t""yes" 1>&6
3554 else
3555 echo "$ac_t""no" 1>&6
3556 fi
3557
3558
3559 echo $ac_n "checking "for --enable-help"""... $ac_c" 1>&6
eb4efbdc 3560echo "configure:3561: checking "for --enable-help"" >&5
10f2d63a
VZ
3561 no_cache=0
3562 # Check whether --enable-help or --disable-help was given.
3563if test "${enable_help+set}" = set; then
3564 enableval="$enable_help"
3565
3566 if test "$enableval" = yes; then
3567 ac_cv_use_help='wxUSE_HELP=yes'
3568 else
3569 ac_cv_use_help='wxUSE_HELP=no'
3570 fi
3571
3572else
3573
3574 LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
3575 if test "x$LINE" != x ; then
3576 eval "DEFAULT_$LINE"
3577 else
3578 no_cache=1
3579 fi
3580
3581 ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
3582
3583fi
3584
3585
3586 eval "$ac_cv_use_help"
3587 if test "$no_cache" != 1; then
3588 echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
3589 fi
3590
3591 if test "$wxUSE_HELP" = yes; then
3592 echo "$ac_t""yes" 1>&6
3593 else
3594 echo "$ac_t""no" 1>&6
3595 fi
3596
3597
3598 echo $ac_n "checking "for --enable-constraints"""... $ac_c" 1>&6
eb4efbdc 3599echo "configure:3600: checking "for --enable-constraints"" >&5
10f2d63a
VZ
3600 no_cache=0
3601 # Check whether --enable-constraints or --disable-constraints was given.
3602if test "${enable_constraints+set}" = set; then
3603 enableval="$enable_constraints"
3604
3605 if test "$enableval" = yes; then
3606 ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
3607 else
3608 ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
3609 fi
3610
3611else
3612
3613 LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
3614 if test "x$LINE" != x ; then
3615 eval "DEFAULT_$LINE"
3616 else
3617 no_cache=1
3618 fi
3619
3620 ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
3621
3622fi
3623
3624
3625 eval "$ac_cv_use_constraints"
3626 if test "$no_cache" != 1; then
3627 echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
3628 fi
3629
3630 if test "$wxUSE_CONSTRAINTS" = yes; then
3631 echo "$ac_t""yes" 1>&6
3632 else
3633 echo "$ac_t""no" 1>&6
3634 fi
3635
3636
3637 echo $ac_n "checking "for --enable-printarch"""... $ac_c" 1>&6
eb4efbdc 3638echo "configure:3639: checking "for --enable-printarch"" >&5
10f2d63a
VZ
3639 no_cache=0
3640 # Check whether --enable-printarch or --disable-printarch was given.
3641if test "${enable_printarch+set}" = set; then
3642 enableval="$enable_printarch"
3643
3644 if test "$enableval" = yes; then
3645 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
3646 else
3647 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
3648 fi
3649
3650else
3651
3652 LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
3653 if test "x$LINE" != x ; then
3654 eval "DEFAULT_$LINE"
3655 else
3656 no_cache=1
3657 fi
3658
3659 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
3660
3661fi
3662
3663
3664 eval "$ac_cv_use_printarch"
3665 if test "$no_cache" != 1; then
3666 echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
3667 fi
3668
3669 if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
3670 echo "$ac_t""yes" 1>&6
3671 else
3672 echo "$ac_t""no" 1>&6
3673 fi
3674
3675
3676 echo $ac_n "checking "for --enable-mdi"""... $ac_c" 1>&6
eb4efbdc 3677echo "configure:3678: checking "for --enable-mdi"" >&5
10f2d63a
VZ
3678 no_cache=0
3679 # Check whether --enable-mdi or --disable-mdi was given.
3680if test "${enable_mdi+set}" = set; then
3681 enableval="$enable_mdi"
3682
3683 if test "$enableval" = yes; then
3684 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=yes'
3685 else
3686 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=no'
3687 fi
3688
3689else
3690
3691 LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
3692 if test "x$LINE" != x ; then
3693 eval "DEFAULT_$LINE"
3694 else
3695 no_cache=1
3696 fi
3697
3698 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
3699
3700fi
3701
3702
3703 eval "$ac_cv_use_mdi"
3704 if test "$no_cache" != 1; then
3705 echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
3706 fi
3707
3708 if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
3709 echo "$ac_t""yes" 1>&6
3710 else
3711 echo "$ac_t""no" 1>&6
3712 fi
3713
3714
3715
3716 echo $ac_n "checking "for --enable-postscript"""... $ac_c" 1>&6
eb4efbdc 3717echo "configure:3718: checking "for --enable-postscript"" >&5
10f2d63a
VZ
3718 no_cache=0
3719 # Check whether --enable-postscript or --disable-postscript was given.
3720if test "${enable_postscript+set}" = set; then
3721 enableval="$enable_postscript"
3722
3723 if test "$enableval" = yes; then
3724 ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
3725 else
3726 ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
3727 fi
3728
3729else
3730
3731 LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
3732 if test "x$LINE" != x ; then
3733 eval "DEFAULT_$LINE"
3734 else
3735 no_cache=1
3736 fi
3737
3738 ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
3739
3740fi
3741
3742
3743 eval "$ac_cv_use_postscript"
3744 if test "$no_cache" != 1; then
3745 echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
3746 fi
3747
3748 if test "$wxUSE_POSTSCRIPT" = yes; then
3749 echo "$ac_t""yes" 1>&6
3750 else
3751 echo "$ac_t""no" 1>&6
3752 fi
3753
3754
3755
3756
3757 echo $ac_n "checking "for --enable-prologio"""... $ac_c" 1>&6
eb4efbdc 3758echo "configure:3759: checking "for --enable-prologio"" >&5
10f2d63a
VZ
3759 no_cache=0
3760 # Check whether --enable-prologio or --disable-prologio was given.
3761if test "${enable_prologio+set}" = set; then
3762 enableval="$enable_prologio"
3763
3764 if test "$enableval" = yes; then
3765 ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
3766 else
3767 ac_cv_use_prologio='wxUSE_PROLOGIO=no'
3768 fi
3769
3770else
3771
3772 LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
3773 if test "x$LINE" != x ; then
3774 eval "DEFAULT_$LINE"
3775 else
3776 no_cache=1
3777 fi
3778
3779 ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
3780
3781fi
3782
3783
3784 eval "$ac_cv_use_prologio"
3785 if test "$no_cache" != 1; then
3786 echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
3787 fi
3788
3789 if test "$wxUSE_PROLOGIO" = yes; then
3790 echo "$ac_t""yes" 1>&6
3791 else
3792 echo "$ac_t""no" 1>&6
3793 fi
3794
3795
3796 echo $ac_n "checking "for --enable-resources"""... $ac_c" 1>&6
eb4efbdc 3797echo "configure:3798: checking "for --enable-resources"" >&5
10f2d63a
VZ
3798 no_cache=0
3799 # Check whether --enable-resources or --disable-resources was given.
3800if test "${enable_resources+set}" = set; then
3801 enableval="$enable_resources"
3802
3803 if test "$enableval" = yes; then
3804 ac_cv_use_resources='wxUSE_RESOURCES=yes'
3805 else
3806 ac_cv_use_resources='wxUSE_RESOURCES=no'
3807 fi
3808
3809else
3810
3811 LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
3812 if test "x$LINE" != x ; then
3813 eval "DEFAULT_$LINE"
3814 else
3815 no_cache=1
3816 fi
3817
3818 ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
3819
3820fi
3821
3822
3823 eval "$ac_cv_use_resources"
3824 if test "$no_cache" != 1; then
3825 echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
3826 fi
3827
3828 if test "$wxUSE_RESOURCES" = yes; then
3829 echo "$ac_t""yes" 1>&6
3830 else
3831 echo "$ac_t""no" 1>&6
3832 fi
3833
3834
3835
3836 echo $ac_n "checking "for --enable-xresources"""... $ac_c" 1>&6
eb4efbdc 3837echo "configure:3838: checking "for --enable-xresources"" >&5
10f2d63a
VZ
3838 no_cache=0
3839 # Check whether --enable-xresources or --disable-xresources was given.
3840if test "${enable_xresources+set}" = set; then
3841 enableval="$enable_xresources"
3842
3843 if test "$enableval" = yes; then
3844 ac_cv_use_xresources='wxUSE_X_RESOURCES=yes'
3845 else
3846 ac_cv_use_xresources='wxUSE_X_RESOURCES=no'
3847 fi
3848
3849else
3850
3851 LINE=`grep "wxUSE_X_RESOURCES" ${wx_arg_cache_file}`
3852 if test "x$LINE" != x ; then
3853 eval "DEFAULT_$LINE"
3854 else
3855 no_cache=1
3856 fi
3857
3858 ac_cv_use_xresources='wxUSE_X_RESOURCES='$DEFAULT_wxUSE_X_RESOURCES
3859
3860fi
3861
3862
3863 eval "$ac_cv_use_xresources"
3864 if test "$no_cache" != 1; then
3865 echo $ac_cv_use_xresources >> ${wx_arg_cache_file}.tmp
3866 fi
3867
3868 if test "$wxUSE_X_RESOURCES" = yes; then
3869 echo "$ac_t""yes" 1>&6
3870 else
3871 echo "$ac_t""no" 1>&6
3872 fi
3873
3874
3875
3876
3877 echo $ac_n "checking "for --enable-clipboard"""... $ac_c" 1>&6
eb4efbdc 3878echo "configure:3879: checking "for --enable-clipboard"" >&5
10f2d63a
VZ
3879 no_cache=0
3880 # Check whether --enable-clipboard or --disable-clipboard was given.
3881if test "${enable_clipboard+set}" = set; then
3882 enableval="$enable_clipboard"
3883
3884 if test "$enableval" = yes; then
3885 ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
3886 else
3887 ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
3888 fi
3889
3890else
3891
3892 LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
3893 if test "x$LINE" != x ; then
3894 eval "DEFAULT_$LINE"
3895 else
3896 no_cache=1
3897 fi
3898
3899 ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
3900
3901fi
3902
3903
3904 eval "$ac_cv_use_clipboard"
3905 if test "$no_cache" != 1; then
3906 echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
3907 fi
3908
3909 if test "$wxUSE_CLIPBOARD" = yes; then
3910 echo "$ac_t""yes" 1>&6
3911 else
3912 echo "$ac_t""no" 1>&6
3913 fi
3914
3915
3916 echo $ac_n "checking "for --enable-dnd"""... $ac_c" 1>&6
eb4efbdc 3917echo "configure:3918: checking "for --enable-dnd"" >&5
10f2d63a
VZ
3918 no_cache=0
3919 # Check whether --enable-dnd or --disable-dnd was given.
3920if test "${enable_dnd+set}" = set; then
3921 enableval="$enable_dnd"
3922
3923 if test "$enableval" = yes; then
3924 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
3925 else
3926 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
3927 fi
3928
3929else
3930
3931 LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
3932 if test "x$LINE" != x ; then
3933 eval "DEFAULT_$LINE"
3934 else
3935 no_cache=1
3936 fi
3937
3938 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
3939
3940fi
3941
3942
3943 eval "$ac_cv_use_dnd"
3944 if test "$no_cache" != 1; then
3945 echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
3946 fi
3947
3948 if test "$wxUSE_DRAG_AND_DROP" = yes; then
3949 echo "$ac_t""yes" 1>&6
3950 else
3951 echo "$ac_t""no" 1>&6
3952 fi
3953
3954
3955
3956 echo $ac_n "checking "for --enable-wxtree"""... $ac_c" 1>&6
eb4efbdc 3957echo "configure:3958: checking "for --enable-wxtree"" >&5
10f2d63a
VZ
3958 no_cache=0
3959 # Check whether --enable-wxtree or --disable-wxtree was given.
3960if test "${enable_wxtree+set}" = set; then
3961 enableval="$enable_wxtree"
3962
3963 if test "$enableval" = yes; then
3964 ac_cv_use_wxtree='wxUSE_WXTREE=yes'
3965 else
3966 ac_cv_use_wxtree='wxUSE_WXTREE=no'
3967 fi
3968
3969else
3970
3971 LINE=`grep "wxUSE_WXTREE" ${wx_arg_cache_file}`
3972 if test "x$LINE" != x ; then
3973 eval "DEFAULT_$LINE"
3974 else
3975 no_cache=1
3976 fi
3977
3978 ac_cv_use_wxtree='wxUSE_WXTREE='$DEFAULT_wxUSE_WXTREE
3979
3980fi
3981
3982
3983 eval "$ac_cv_use_wxtree"
3984 if test "$no_cache" != 1; then
3985 echo $ac_cv_use_wxtree >> ${wx_arg_cache_file}.tmp
3986 fi
3987
3988 if test "$wxUSE_WXTREE" = yes; then
3989 echo "$ac_t""yes" 1>&6
3990 else
3991 echo "$ac_t""no" 1>&6
3992 fi
3993
3994
3995
3996
3997 echo $ac_n "checking "for --enable-controls"""... $ac_c" 1>&6
eb4efbdc 3998echo "configure:3999: checking "for --enable-controls"" >&5
10f2d63a
VZ
3999 no_cache=0
4000 # Check whether --enable-controls or --disable-controls was given.
4001if test "${enable_controls+set}" = set; then
4002 enableval="$enable_controls"
4003
4004 if test "$enableval" = yes; then
4005 ac_cv_use_controls='wxUSE_CONTROLS=yes'
4006 else
4007 ac_cv_use_controls='wxUSE_CONTROLS=no'
4008 fi
4009
4010else
4011
4012 LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
4013 if test "x$LINE" != x ; then
4014 eval "DEFAULT_$LINE"
4015 else
4016 no_cache=1
4017 fi
4018
4019 ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
4020
4021fi
4022
4023
4024 eval "$ac_cv_use_controls"
4025 if test "$no_cache" != 1; then
4026 echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
4027 fi
4028
4029 if test "$wxUSE_CONTROLS" = yes; then
4030 echo "$ac_t""yes" 1>&6
4031 else
4032 echo "$ac_t""no" 1>&6
4033 fi
4034
4035
4036if test "$wxUSE_CONTROLS" = "yes"; then
4037 DEFAULT_wxUSE_ACCEL=yes
4038 DEFAULT_wxUSE_CARET=yes
4039 DEFAULT_wxUSE_COMBOBOX=yes
4040 DEFAULT_wxUSE_BMPBUTTON=yes
4041 DEFAULT_wxUSE_CHECKBOX=yes
4042 DEFAULT_wxUSE_CHECKLISTBOX=yes
4043 DEFAULT_wxUSE_CHOICE=yes
4044 DEFAULT_wxUSE_GAUGE=yes
4045 DEFAULT_wxUSE_GRID=yes
cc977e5f 4046 DEFAULT_wxUSE_NEW_GRID=yes
10f2d63a
VZ
4047 DEFAULT_wxUSE_IMAGLIST=yes
4048 DEFAULT_wxUSE_LISTBOX=yes
4049 DEFAULT_wxUSE_LISTCTRL=yes
4050 DEFAULT_wxUSE_NOTEBOOK=yes
4051 DEFAULT_wxUSE_RADIOBOX=yes
4052 DEFAULT_wxUSE_RADIOBTN=yes
4053 DEFAULT_wxUSE_SASH=yes
4054 DEFAULT_wxUSE_SCROLLBAR=yes
4055 DEFAULT_wxUSE_SLIDER=yes
4056 DEFAULT_wxUSE_SPINBTN=yes
56cfaa52 4057 DEFAULT_wxUSE_SPINCTRL=yes
10f2d63a
VZ
4058 DEFAULT_wxUSE_SPLITTER=yes
4059 DEFAULT_wxUSE_STATBMP=yes
4060 DEFAULT_wxUSE_STATBOX=yes
4061 DEFAULT_wxUSE_STATLINE=yes
4062 DEFAULT_wxUSE_STATUSBAR=yes
4063 DEFAULT_wxUSE_TAB_DIALOG=yes
4064 DEFAULT_wxUSE_TOOLBAR=yes
360d6699
VZ
4065 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
4066 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
10f2d63a
VZ
4067 DEFAULT_wxUSE_TOOLTIPS=yes
4068 DEFAULT_wxUSE_TREECTRL=yes
4069elif test "$wxUSE_CONTROLS" = "no"; then
4070 DEFAULT_wxUSE_ACCEL=no
4071 DEFAULT_wxUSE_CARET=no
4072 DEFAULT_wxUSE_COMBOBOX=no
4073 DEFAULT_wxUSE_BMPBUTTON=no
4074 DEFAULT_wxUSE_CHECKBOX=no
4075 DEFAULT_wxUSE_CHECKLISTBOX=no
4076 DEFAULT_wxUSE_CHOICE=no
4077 DEFAULT_wxUSE_GAUGE=no
4078 DEFAULT_wxUSE_GRID=no
4079 DEFAULT_wxUSE_NEW_GRID=no
4080 DEFAULT_wxUSE_IMAGLIST=no
4081 DEFAULT_wxUSE_LISTBOX=no
4082 DEFAULT_wxUSE_LISTCTRL=no
4083 DEFAULT_wxUSE_NOTEBOOK=no
4084 DEFAULT_wxUSE_RADIOBOX=no
4085 DEFAULT_wxUSE_RADIOBTN=no
4086 DEFAULT_wxUSE_SASH=no
4087 DEFAULT_wxUSE_SCROLLBAR=no
4088 DEFAULT_wxUSE_SLIDER=no
4089 DEFAULT_wxUSE_SPINBTN=no
56cfaa52 4090 DEFAULT_wxUSE_SPINCTRL=no
10f2d63a
VZ
4091 DEFAULT_wxUSE_SPLITTER=no
4092 DEFAULT_wxUSE_STATBMP=no
4093 DEFAULT_wxUSE_STATBOX=no
4094 DEFAULT_wxUSE_STATLINE=no
4095 DEFAULT_wxUSE_STATUSBAR=no
4096 DEFAULT_wxUSE_TAB_DIALOG=no
4097 DEFAULT_wxUSE_TOOLBAR=no
360d6699
VZ
4098 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
4099 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
10f2d63a
VZ
4100 DEFAULT_wxUSE_TOOLTIPS=no
4101 DEFAULT_wxUSE_TREECTRL=no
4102fi
4103
4104
4105 echo $ac_n "checking "for --enable-accel"""... $ac_c" 1>&6
eb4efbdc 4106echo "configure:4107: checking "for --enable-accel"" >&5
10f2d63a
VZ
4107 no_cache=0
4108 # Check whether --enable-accel or --disable-accel was given.
4109if test "${enable_accel+set}" = set; then
4110 enableval="$enable_accel"
4111
4112 if test "$enableval" = yes; then
4113 ac_cv_use_accel='wxUSE_ACCEL=yes'
4114 else
4115 ac_cv_use_accel='wxUSE_ACCEL=no'
4116 fi
4117
4118else
4119
4120 LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
4121 if test "x$LINE" != x ; then
4122 eval "DEFAULT_$LINE"
4123 else
4124 no_cache=1
4125 fi
4126
4127 ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
4128
4129fi
4130
4131
4132 eval "$ac_cv_use_accel"
4133 if test "$no_cache" != 1; then
4134 echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
4135 fi
4136
4137 if test "$wxUSE_ACCEL" = yes; then
4138 echo "$ac_t""yes" 1>&6
4139 else
4140 echo "$ac_t""no" 1>&6
4141 fi
4142
4143
4144 echo $ac_n "checking "for --enable-caret"""... $ac_c" 1>&6
eb4efbdc 4145echo "configure:4146: checking "for --enable-caret"" >&5
10f2d63a
VZ
4146 no_cache=0
4147 # Check whether --enable-caret or --disable-caret was given.
4148if test "${enable_caret+set}" = set; then
4149 enableval="$enable_caret"
4150
4151 if test "$enableval" = yes; then
4152 ac_cv_use_caret='wxUSE_CARET=yes'
4153 else
4154 ac_cv_use_caret='wxUSE_CARET=no'
4155 fi
4156
4157else
4158
4159 LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
4160 if test "x$LINE" != x ; then
4161 eval "DEFAULT_$LINE"
4162 else
4163 no_cache=1
4164 fi
4165
4166 ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
4167
4168fi
4169
4170
4171 eval "$ac_cv_use_caret"
4172 if test "$no_cache" != 1; then
4173 echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
4174 fi
4175
4176 if test "$wxUSE_CARET" = yes; then
4177 echo "$ac_t""yes" 1>&6
4178 else
4179 echo "$ac_t""no" 1>&6
4180 fi
4181
4182
4183 echo $ac_n "checking "for --enable-bmpbutton"""... $ac_c" 1>&6
eb4efbdc 4184echo "configure:4185: checking "for --enable-bmpbutton"" >&5
10f2d63a
VZ
4185 no_cache=0
4186 # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
4187if test "${enable_bmpbutton+set}" = set; then
4188 enableval="$enable_bmpbutton"
4189
4190 if test "$enableval" = yes; then
4191 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
4192 else
4193 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
4194 fi
4195
4196else
4197
4198 LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
4199 if test "x$LINE" != x ; then
4200 eval "DEFAULT_$LINE"
4201 else
4202 no_cache=1
4203 fi
4204
4205 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
4206
4207fi
4208
4209
4210 eval "$ac_cv_use_bmpbutton"
4211 if test "$no_cache" != 1; then
4212 echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
4213 fi
4214
4215 if test "$wxUSE_BMPBUTTON" = yes; then
4216 echo "$ac_t""yes" 1>&6
4217 else
4218 echo "$ac_t""no" 1>&6
4219 fi
4220
4221
4222 echo $ac_n "checking "for --enable-checkbox"""... $ac_c" 1>&6
eb4efbdc 4223echo "configure:4224: checking "for --enable-checkbox"" >&5
10f2d63a
VZ
4224 no_cache=0
4225 # Check whether --enable-checkbox or --disable-checkbox was given.
4226if test "${enable_checkbox+set}" = set; then
4227 enableval="$enable_checkbox"
4228
4229 if test "$enableval" = yes; then
4230 ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
4231 else
4232 ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
4233 fi
4234
4235else
4236
4237 LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
4238 if test "x$LINE" != x ; then
4239 eval "DEFAULT_$LINE"
4240 else
4241 no_cache=1
4242 fi
4243
4244 ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
4245
4246fi
4247
4248
4249 eval "$ac_cv_use_checkbox"
4250 if test "$no_cache" != 1; then
4251 echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
4252 fi
4253
4254 if test "$wxUSE_CHECKBOX" = yes; then
4255 echo "$ac_t""yes" 1>&6
4256 else
4257 echo "$ac_t""no" 1>&6
4258 fi
4259
4260
4261 echo $ac_n "checking "for --enable-checklst"""... $ac_c" 1>&6
eb4efbdc 4262echo "configure:4263: checking "for --enable-checklst"" >&5
10f2d63a
VZ
4263 no_cache=0
4264 # Check whether --enable-checklst or --disable-checklst was given.
4265if test "${enable_checklst+set}" = set; then
4266 enableval="$enable_checklst"
4267
4268 if test "$enableval" = yes; then
4269 ac_cv_use_checklst='wxUSE_CHECKLST=yes'
4270 else
4271 ac_cv_use_checklst='wxUSE_CHECKLST=no'
4272 fi
4273
4274else
4275
4276 LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
4277 if test "x$LINE" != x ; then
4278 eval "DEFAULT_$LINE"
4279 else
4280 no_cache=1
4281 fi
4282
4283 ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
4284
4285fi
4286
4287
4288 eval "$ac_cv_use_checklst"
4289 if test "$no_cache" != 1; then
4290 echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
4291 fi
4292
4293 if test "$wxUSE_CHECKLST" = yes; then
4294 echo "$ac_t""yes" 1>&6
4295 else
4296 echo "$ac_t""no" 1>&6
4297 fi
4298
4299
4300 echo $ac_n "checking "for --enable-choice"""... $ac_c" 1>&6
eb4efbdc 4301echo "configure:4302: checking "for --enable-choice"" >&5
10f2d63a
VZ
4302 no_cache=0
4303 # Check whether --enable-choice or --disable-choice was given.
4304if test "${enable_choice+set}" = set; then
4305 enableval="$enable_choice"
4306
4307 if test "$enableval" = yes; then
4308 ac_cv_use_choice='wxUSE_CHOICE=yes'
4309 else
4310 ac_cv_use_choice='wxUSE_CHOICE=no'
4311 fi
4312
4313else
4314
4315 LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
4316 if test "x$LINE" != x ; then
4317 eval "DEFAULT_$LINE"
4318 else
4319 no_cache=1
4320 fi
4321
4322 ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
4323
4324fi
4325
4326
4327 eval "$ac_cv_use_choice"
4328 if test "$no_cache" != 1; then
4329 echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
4330 fi
4331
4332 if test "$wxUSE_CHOICE" = yes; then
4333 echo "$ac_t""yes" 1>&6
4334 else
4335 echo "$ac_t""no" 1>&6
4336 fi
4337
4338
4339 echo $ac_n "checking "for --enable-combobox"""... $ac_c" 1>&6
eb4efbdc 4340echo "configure:4341: checking "for --enable-combobox"" >&5
10f2d63a
VZ
4341 no_cache=0
4342 # Check whether --enable-combobox or --disable-combobox was given.
4343if test "${enable_combobox+set}" = set; then
4344 enableval="$enable_combobox"
4345
4346 if test "$enableval" = yes; then
4347 ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
4348 else
4349 ac_cv_use_combobox='wxUSE_COMBOBOX=no'
4350 fi
4351
4352else
4353
4354 LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
4355 if test "x$LINE" != x ; then
4356 eval "DEFAULT_$LINE"
4357 else
4358 no_cache=1
4359 fi
4360
4361 ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
4362
4363fi
4364
4365
4366 eval "$ac_cv_use_combobox"
4367 if test "$no_cache" != 1; then
4368 echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
4369 fi
4370
4371 if test "$wxUSE_COMBOBOX" = yes; then
4372 echo "$ac_t""yes" 1>&6
4373 else
4374 echo "$ac_t""no" 1>&6
4375 fi
4376
4377
4378 echo $ac_n "checking "for --enable-gauge"""... $ac_c" 1>&6
eb4efbdc 4379echo "configure:4380: checking "for --enable-gauge"" >&5
10f2d63a
VZ
4380 no_cache=0
4381 # Check whether --enable-gauge or --disable-gauge was given.
4382if test "${enable_gauge+set}" = set; then
4383 enableval="$enable_gauge"
4384
4385 if test "$enableval" = yes; then
4386 ac_cv_use_gauge='wxUSE_GAUGE=yes'
4387 else
4388 ac_cv_use_gauge='wxUSE_GAUGE=no'
4389 fi
4390
4391else
4392
4393 LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
4394 if test "x$LINE" != x ; then
4395 eval "DEFAULT_$LINE"
4396 else
4397 no_cache=1
4398 fi
4399
4400 ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
4401
4402fi
4403
4404
4405 eval "$ac_cv_use_gauge"
4406 if test "$no_cache" != 1; then
4407 echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
4408 fi
4409
4410 if test "$wxUSE_GAUGE" = yes; then
4411 echo "$ac_t""yes" 1>&6
4412 else
4413 echo "$ac_t""no" 1>&6
4414 fi
4415
4416
4417 echo $ac_n "checking "for --enable-grid"""... $ac_c" 1>&6
eb4efbdc 4418echo "configure:4419: checking "for --enable-grid"" >&5
10f2d63a
VZ
4419 no_cache=0
4420 # Check whether --enable-grid or --disable-grid was given.
4421if test "${enable_grid+set}" = set; then
4422 enableval="$enable_grid"
4423
4424 if test "$enableval" = yes; then
4425 ac_cv_use_grid='wxUSE_GRID=yes'
4426 else
4427 ac_cv_use_grid='wxUSE_GRID=no'
4428 fi
4429
4430else
4431
4432 LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
4433 if test "x$LINE" != x ; then
4434 eval "DEFAULT_$LINE"
4435 else
4436 no_cache=1
4437 fi
4438
4439 ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
4440
4441fi
4442
4443
4444 eval "$ac_cv_use_grid"
4445 if test "$no_cache" != 1; then
4446 echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
4447 fi
4448
4449 if test "$wxUSE_GRID" = yes; then
4450 echo "$ac_t""yes" 1>&6
4451 else
4452 echo "$ac_t""no" 1>&6
4453 fi
4454
4455
4456 echo $ac_n "checking "for --enable-newgrid"""... $ac_c" 1>&6
eb4efbdc 4457echo "configure:4458: checking "for --enable-newgrid"" >&5
10f2d63a
VZ
4458 no_cache=0
4459 # Check whether --enable-newgrid or --disable-newgrid was given.
4460if test "${enable_newgrid+set}" = set; then
4461 enableval="$enable_newgrid"
4462
4463 if test "$enableval" = yes; then
4464 ac_cv_use_newgrid='wxUSE_NEW_GRID=yes'
4465 else
4466 ac_cv_use_newgrid='wxUSE_NEW_GRID=no'
4467 fi
4468
4469else
4470
4471 LINE=`grep "wxUSE_NEW_GRID" ${wx_arg_cache_file}`
4472 if test "x$LINE" != x ; then
4473 eval "DEFAULT_$LINE"
4474 else
4475 no_cache=1
4476 fi
4477
4478 ac_cv_use_newgrid='wxUSE_NEW_GRID='$DEFAULT_wxUSE_NEW_GRID
4479
4480fi
4481
4482
4483 eval "$ac_cv_use_newgrid"
4484 if test "$no_cache" != 1; then
4485 echo $ac_cv_use_newgrid >> ${wx_arg_cache_file}.tmp
4486 fi
4487
4488 if test "$wxUSE_NEW_GRID" = yes; then
4489 echo "$ac_t""yes" 1>&6
4490 else
4491 echo "$ac_t""no" 1>&6
4492 fi
4493
4494
4495 echo $ac_n "checking "for --enable-imaglist"""... $ac_c" 1>&6
eb4efbdc 4496echo "configure:4497: checking "for --enable-imaglist"" >&5
10f2d63a
VZ
4497 no_cache=0
4498 # Check whether --enable-imaglist or --disable-imaglist was given.
4499if test "${enable_imaglist+set}" = set; then
4500 enableval="$enable_imaglist"
4501
4502 if test "$enableval" = yes; then
4503 ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
4504 else
4505 ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
4506 fi
4507
4508else
4509
4510 LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
4511 if test "x$LINE" != x ; then
4512 eval "DEFAULT_$LINE"
4513 else
4514 no_cache=1
4515 fi
4516
4517 ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
4518
4519fi
4520
4521
4522 eval "$ac_cv_use_imaglist"
4523 if test "$no_cache" != 1; then
4524 echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
4525 fi
4526
4527 if test "$wxUSE_IMAGLIST" = yes; then
4528 echo "$ac_t""yes" 1>&6
4529 else
4530 echo "$ac_t""no" 1>&6
4531 fi
4532
4533
4534 echo $ac_n "checking "for --enable-listbox"""... $ac_c" 1>&6
eb4efbdc 4535echo "configure:4536: checking "for --enable-listbox"" >&5
10f2d63a
VZ
4536 no_cache=0
4537 # Check whether --enable-listbox or --disable-listbox was given.
4538if test "${enable_listbox+set}" = set; then
4539 enableval="$enable_listbox"
4540
4541 if test "$enableval" = yes; then
4542 ac_cv_use_listbox='wxUSE_LISTBOX=yes'
4543 else
4544 ac_cv_use_listbox='wxUSE_LISTBOX=no'
4545 fi
4546
4547else
4548
4549 LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
4550 if test "x$LINE" != x ; then
4551 eval "DEFAULT_$LINE"
4552 else
4553 no_cache=1
4554 fi
4555
4556 ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
4557
4558fi
4559
4560
4561 eval "$ac_cv_use_listbox"
4562 if test "$no_cache" != 1; then
4563 echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
4564 fi
4565
4566 if test "$wxUSE_LISTBOX" = yes; then
4567 echo "$ac_t""yes" 1>&6
4568 else
4569 echo "$ac_t""no" 1>&6
4570 fi
4571
4572
4573 echo $ac_n "checking "for --enable-listctrl"""... $ac_c" 1>&6
eb4efbdc 4574echo "configure:4575: checking "for --enable-listctrl"" >&5
10f2d63a
VZ
4575 no_cache=0
4576 # Check whether --enable-listctrl or --disable-listctrl was given.
4577if test "${enable_listctrl+set}" = set; then
4578 enableval="$enable_listctrl"
4579
4580 if test "$enableval" = yes; then
4581 ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
4582 else
4583 ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
4584 fi
4585
4586else
4587
4588 LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
4589 if test "x$LINE" != x ; then
4590 eval "DEFAULT_$LINE"
4591 else
4592 no_cache=1
4593 fi
4594
4595 ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
4596
4597fi
4598
4599
4600 eval "$ac_cv_use_listctrl"
4601 if test "$no_cache" != 1; then
4602 echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
4603 fi
4604
4605 if test "$wxUSE_LISTCTRL" = yes; then
4606 echo "$ac_t""yes" 1>&6
4607 else
4608 echo "$ac_t""no" 1>&6
4609 fi
4610
4611
4612 echo $ac_n "checking "for --enable-notebook"""... $ac_c" 1>&6
eb4efbdc 4613echo "configure:4614: checking "for --enable-notebook"" >&5
10f2d63a
VZ
4614 no_cache=0
4615 # Check whether --enable-notebook or --disable-notebook was given.
4616if test "${enable_notebook+set}" = set; then
4617 enableval="$enable_notebook"
4618
4619 if test "$enableval" = yes; then
4620 ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
4621 else
4622 ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
4623 fi
4624
4625else
4626
4627 LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
4628 if test "x$LINE" != x ; then
4629 eval "DEFAULT_$LINE"
4630 else
4631 no_cache=1
4632 fi
4633
4634 ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
4635
4636fi
4637
4638
4639 eval "$ac_cv_use_notebook"
4640 if test "$no_cache" != 1; then
4641 echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
4642 fi
4643
4644 if test "$wxUSE_NOTEBOOK" = yes; then
4645 echo "$ac_t""yes" 1>&6
4646 else
4647 echo "$ac_t""no" 1>&6
4648 fi
4649
4650
4651 echo $ac_n "checking "for --enable-radiobox"""... $ac_c" 1>&6
eb4efbdc 4652echo "configure:4653: checking "for --enable-radiobox"" >&5
10f2d63a
VZ
4653 no_cache=0
4654 # Check whether --enable-radiobox or --disable-radiobox was given.
4655if test "${enable_radiobox+set}" = set; then
4656 enableval="$enable_radiobox"
4657
4658 if test "$enableval" = yes; then
4659 ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
4660 else
4661 ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
4662 fi
4663
4664else
4665
4666 LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
4667 if test "x$LINE" != x ; then
4668 eval "DEFAULT_$LINE"
4669 else
4670 no_cache=1
4671 fi
4672
4673 ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
4674
4675fi
4676
4677
4678 eval "$ac_cv_use_radiobox"
4679 if test "$no_cache" != 1; then
4680 echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
4681 fi
4682
4683 if test "$wxUSE_RADIOBOX" = yes; then
4684 echo "$ac_t""yes" 1>&6
4685 else
4686 echo "$ac_t""no" 1>&6
4687 fi
4688
4689
4690 echo $ac_n "checking "for --enable-radiobtn"""... $ac_c" 1>&6
eb4efbdc 4691echo "configure:4692: checking "for --enable-radiobtn"" >&5
10f2d63a
VZ
4692 no_cache=0
4693 # Check whether --enable-radiobtn or --disable-radiobtn was given.
4694if test "${enable_radiobtn+set}" = set; then
4695 enableval="$enable_radiobtn"
4696
4697 if test "$enableval" = yes; then
4698 ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
4699 else
4700 ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
4701 fi
4702
4703else
4704
4705 LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
4706 if test "x$LINE" != x ; then
4707 eval "DEFAULT_$LINE"
4708 else
4709 no_cache=1
4710 fi
4711
4712 ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
4713
4714fi
4715
4716
4717 eval "$ac_cv_use_radiobtn"
4718 if test "$no_cache" != 1; then
4719 echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
4720 fi
4721
4722 if test "$wxUSE_RADIOBTN" = yes; then
4723 echo "$ac_t""yes" 1>&6
4724 else
4725 echo "$ac_t""no" 1>&6
4726 fi
4727
4728
4729 echo $ac_n "checking "for --enable-sash"""... $ac_c" 1>&6
eb4efbdc 4730echo "configure:4731: checking "for --enable-sash"" >&5
10f2d63a
VZ
4731 no_cache=0
4732 # Check whether --enable-sash or --disable-sash was given.
4733if test "${enable_sash+set}" = set; then
4734 enableval="$enable_sash"
4735
4736 if test "$enableval" = yes; then
4737 ac_cv_use_sash='wxUSE_SASH=yes'
4738 else
4739 ac_cv_use_sash='wxUSE_SASH=no'
4740 fi
4741
4742else
4743
4744 LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
4745 if test "x$LINE" != x ; then
4746 eval "DEFAULT_$LINE"
4747 else
4748 no_cache=1
4749 fi
4750
4751 ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
4752
4753fi
4754
4755
4756 eval "$ac_cv_use_sash"
4757 if test "$no_cache" != 1; then
4758 echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
4759 fi
4760
4761 if test "$wxUSE_SASH" = yes; then
4762 echo "$ac_t""yes" 1>&6
4763 else
4764 echo "$ac_t""no" 1>&6
4765 fi
4766
4767
4768 echo $ac_n "checking "for --enable-scrollbar"""... $ac_c" 1>&6
eb4efbdc 4769echo "configure:4770: checking "for --enable-scrollbar"" >&5
10f2d63a
VZ
4770 no_cache=0
4771 # Check whether --enable-scrollbar or --disable-scrollbar was given.
4772if test "${enable_scrollbar+set}" = set; then
4773 enableval="$enable_scrollbar"
4774
4775 if test "$enableval" = yes; then
4776 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
4777 else
4778 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
4779 fi
4780
4781else
4782
4783 LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
4784 if test "x$LINE" != x ; then
4785 eval "DEFAULT_$LINE"
4786 else
4787 no_cache=1
4788 fi
4789
4790 ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
4791
4792fi
4793
4794
4795 eval "$ac_cv_use_scrollbar"
4796 if test "$no_cache" != 1; then
4797 echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
4798 fi
4799
4800 if test "$wxUSE_SCROLLBAR" = yes; then
4801 echo "$ac_t""yes" 1>&6
4802 else
4803 echo "$ac_t""no" 1>&6
4804 fi
4805
4806
4807 echo $ac_n "checking "for --enable-slider"""... $ac_c" 1>&6
eb4efbdc 4808echo "configure:4809: checking "for --enable-slider"" >&5
10f2d63a
VZ
4809 no_cache=0
4810 # Check whether --enable-slider or --disable-slider was given.
4811if test "${enable_slider+set}" = set; then
4812 enableval="$enable_slider"
4813
4814 if test "$enableval" = yes; then
4815 ac_cv_use_slider='wxUSE_SLIDER=yes'
4816 else
4817 ac_cv_use_slider='wxUSE_SLIDER=no'
4818 fi
4819
4820else
4821
4822 LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
4823 if test "x$LINE" != x ; then
4824 eval "DEFAULT_$LINE"
4825 else
4826 no_cache=1
4827 fi
4828
4829 ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
4830
4831fi
4832
4833
4834 eval "$ac_cv_use_slider"
4835 if test "$no_cache" != 1; then
4836 echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
4837 fi
4838
4839 if test "$wxUSE_SLIDER" = yes; then
4840 echo "$ac_t""yes" 1>&6
4841 else
4842 echo "$ac_t""no" 1>&6
4843 fi
4844
4845
4846 echo $ac_n "checking "for --enable-spinbtn"""... $ac_c" 1>&6
eb4efbdc 4847echo "configure:4848: checking "for --enable-spinbtn"" >&5
10f2d63a
VZ
4848 no_cache=0
4849 # Check whether --enable-spinbtn or --disable-spinbtn was given.
4850if test "${enable_spinbtn+set}" = set; then
4851 enableval="$enable_spinbtn"
4852
4853 if test "$enableval" = yes; then
4854 ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
4855 else
4856 ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
4857 fi
4858
4859else
4860
4861 LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
4862 if test "x$LINE" != x ; then
4863 eval "DEFAULT_$LINE"
4864 else
4865 no_cache=1
4866 fi
4867
4868 ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
4869
4870fi
4871
4872
4873 eval "$ac_cv_use_spinbtn"
4874 if test "$no_cache" != 1; then
4875 echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
4876 fi
4877
4878 if test "$wxUSE_SPINBTN" = yes; then
4879 echo "$ac_t""yes" 1>&6
4880 else
4881 echo "$ac_t""no" 1>&6
4882 fi
4883
4884
56cfaa52 4885 echo $ac_n "checking "for --enable-spinctrl"""... $ac_c" 1>&6
eb4efbdc 4886echo "configure:4887: checking "for --enable-spinctrl"" >&5
56cfaa52
RR
4887 no_cache=0
4888 # Check whether --enable-spinctrl or --disable-spinctrl was given.
4889if test "${enable_spinctrl+set}" = set; then
4890 enableval="$enable_spinctrl"
4891
4892 if test "$enableval" = yes; then
4893 ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
4894 else
4895 ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
4896 fi
4897
4898else
4899
4900 LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
4901 if test "x$LINE" != x ; then
4902 eval "DEFAULT_$LINE"
4903 else
4904 no_cache=1
4905 fi
4906
4907 ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
4908
4909fi
4910
4911
4912 eval "$ac_cv_use_spinctrl"
4913 if test "$no_cache" != 1; then
4914 echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
4915 fi
4916
4917 if test "$wxUSE_SPINCTRL" = yes; then
4918 echo "$ac_t""yes" 1>&6
4919 else
4920 echo "$ac_t""no" 1>&6
4921 fi
4922
4923
10f2d63a 4924 echo $ac_n "checking "for --enable-splitter"""... $ac_c" 1>&6
eb4efbdc 4925echo "configure:4926: checking "for --enable-splitter"" >&5
10f2d63a
VZ
4926 no_cache=0
4927 # Check whether --enable-splitter or --disable-splitter was given.
4928if test "${enable_splitter+set}" = set; then
4929 enableval="$enable_splitter"
4930
4931 if test "$enableval" = yes; then
4932 ac_cv_use_splitter='wxUSE_SPLITTER=yes'
4933 else
4934 ac_cv_use_splitter='wxUSE_SPLITTER=no'
4935 fi
4936
4937else
4938
4939 LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
4940 if test "x$LINE" != x ; then
4941 eval "DEFAULT_$LINE"
4942 else
4943 no_cache=1
4944 fi
4945
4946 ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
4947
4948fi
4949
4950
4951 eval "$ac_cv_use_splitter"
4952 if test "$no_cache" != 1; then
4953 echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
4954 fi
4955
4956 if test "$wxUSE_SPLITTER" = yes; then
4957 echo "$ac_t""yes" 1>&6
4958 else
4959 echo "$ac_t""no" 1>&6
4960 fi
4961
4962
4963 echo $ac_n "checking "for --enable-statbmp"""... $ac_c" 1>&6
eb4efbdc 4964echo "configure:4965: checking "for --enable-statbmp"" >&5
10f2d63a
VZ
4965 no_cache=0
4966 # Check whether --enable-statbmp or --disable-statbmp was given.
4967if test "${enable_statbmp+set}" = set; then
4968 enableval="$enable_statbmp"
4969
4970 if test "$enableval" = yes; then
4971 ac_cv_use_statbmp='wxUSE_STATBMP=yes'
4972 else
4973 ac_cv_use_statbmp='wxUSE_STATBMP=no'
4974 fi
4975
4976else
4977
4978 LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
4979 if test "x$LINE" != x ; then
4980 eval "DEFAULT_$LINE"
4981 else
4982 no_cache=1
4983 fi
4984
4985 ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
4986
4987fi
4988
4989
4990 eval "$ac_cv_use_statbmp"
4991 if test "$no_cache" != 1; then
4992 echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
4993 fi
4994
4995 if test "$wxUSE_STATBMP" = yes; then
4996 echo "$ac_t""yes" 1>&6
4997 else
4998 echo "$ac_t""no" 1>&6
4999 fi
5000
5001
5002 echo $ac_n "checking "for --enable-statbox"""... $ac_c" 1>&6
eb4efbdc 5003echo "configure:5004: checking "for --enable-statbox"" >&5
10f2d63a
VZ
5004 no_cache=0
5005 # Check whether --enable-statbox or --disable-statbox was given.
5006if test "${enable_statbox+set}" = set; then
5007 enableval="$enable_statbox"
5008
5009 if test "$enableval" = yes; then
5010 ac_cv_use_statbox='wxUSE_STATBOX=yes'
5011 else
5012 ac_cv_use_statbox='wxUSE_STATBOX=no'
5013 fi
5014
5015else
5016
5017 LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
5018 if test "x$LINE" != x ; then
5019 eval "DEFAULT_$LINE"
5020 else
5021 no_cache=1
5022 fi
5023
5024 ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
5025
5026fi
5027
5028
5029 eval "$ac_cv_use_statbox"
5030 if test "$no_cache" != 1; then
5031 echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
5032 fi
5033
5034 if test "$wxUSE_STATBOX" = yes; then
5035 echo "$ac_t""yes" 1>&6
5036 else
5037 echo "$ac_t""no" 1>&6
5038 fi
5039
5040
5041 echo $ac_n "checking "for --enable-statline"""... $ac_c" 1>&6
eb4efbdc 5042echo "configure:5043: checking "for --enable-statline"" >&5
10f2d63a
VZ
5043 no_cache=0
5044 # Check whether --enable-statline or --disable-statline was given.
5045if test "${enable_statline+set}" = set; then
5046 enableval="$enable_statline"
5047
5048 if test "$enableval" = yes; then
5049 ac_cv_use_statline='wxUSE_STATLINE=yes'
5050 else
5051 ac_cv_use_statline='wxUSE_STATLINE=no'
5052 fi
5053
5054else
5055
5056 LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
5057 if test "x$LINE" != x ; then
5058 eval "DEFAULT_$LINE"
5059 else
5060 no_cache=1
5061 fi
5062
5063 ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
5064
5065fi
5066
5067
5068 eval "$ac_cv_use_statline"
5069 if test "$no_cache" != 1; then
5070 echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
5071 fi
5072
5073 if test "$wxUSE_STATLINE" = yes; then
5074 echo "$ac_t""yes" 1>&6
5075 else
5076 echo "$ac_t""no" 1>&6
5077 fi
5078
5079
5080 echo $ac_n "checking "for --enable-statusbar"""... $ac_c" 1>&6
eb4efbdc 5081echo "configure:5082: checking "for --enable-statusbar"" >&5
10f2d63a
VZ
5082 no_cache=0
5083 # Check whether --enable-statusbar or --disable-statusbar was given.
5084if test "${enable_statusbar+set}" = set; then
5085 enableval="$enable_statusbar"
5086
5087 if test "$enableval" = yes; then
5088 ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
5089 else
5090 ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
5091 fi
5092
5093else
5094
5095 LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
5096 if test "x$LINE" != x ; then
5097 eval "DEFAULT_$LINE"
5098 else
5099 no_cache=1
5100 fi
5101
5102 ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
5103
5104fi
5105
5106
5107 eval "$ac_cv_use_statusbar"
5108 if test "$no_cache" != 1; then
5109 echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
5110 fi
5111
5112 if test "$wxUSE_STATUSBAR" = yes; then
5113 echo "$ac_t""yes" 1>&6
5114 else
5115 echo "$ac_t""no" 1>&6
5116 fi
5117
5118
5119 echo $ac_n "checking "for --enable-tabdialog"""... $ac_c" 1>&6
eb4efbdc 5120echo "configure:5121: checking "for --enable-tabdialog"" >&5
10f2d63a
VZ
5121 no_cache=0
5122 # Check whether --enable-tabdialog or --disable-tabdialog was given.
5123if test "${enable_tabdialog+set}" = set; then
5124 enableval="$enable_tabdialog"
5125
5126 if test "$enableval" = yes; then
5127 ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes'
5128 else
5129 ac_cv_use_tabdialog='wxUSE_TABDIALOG=no'
5130 fi
5131
5132else
5133
5134 LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}`
5135 if test "x$LINE" != x ; then
5136 eval "DEFAULT_$LINE"
5137 else
5138 no_cache=1
5139 fi
5140
5141 ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG
5142
5143fi
5144
5145
5146 eval "$ac_cv_use_tabdialog"
5147 if test "$no_cache" != 1; then
5148 echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
5149 fi
5150
5151 if test "$wxUSE_TABDIALOG" = yes; then
5152 echo "$ac_t""yes" 1>&6
5153 else
5154 echo "$ac_t""no" 1>&6
5155 fi
5156
5157
5158 echo $ac_n "checking "for --enable-toolbar"""... $ac_c" 1>&6
eb4efbdc 5159echo "configure:5160: checking "for --enable-toolbar"" >&5
10f2d63a
VZ
5160 no_cache=0
5161 # Check whether --enable-toolbar or --disable-toolbar was given.
5162if test "${enable_toolbar+set}" = set; then
5163 enableval="$enable_toolbar"
5164
5165 if test "$enableval" = yes; then
5166 ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
5167 else
5168 ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
5169 fi
5170
5171else
5172
5173 LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
5174 if test "x$LINE" != x ; then
5175 eval "DEFAULT_$LINE"
5176 else
5177 no_cache=1
5178 fi
5179
5180 ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
5181
5182fi
5183
5184
5185 eval "$ac_cv_use_toolbar"
5186 if test "$no_cache" != 1; then
5187 echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
5188 fi
5189
5190 if test "$wxUSE_TOOLBAR" = yes; then
5191 echo "$ac_t""yes" 1>&6
5192 else
5193 echo "$ac_t""no" 1>&6
5194 fi
5195
5196
360d6699 5197 echo $ac_n "checking "for --enable-tbarnative"""... $ac_c" 1>&6
eb4efbdc 5198echo "configure:5199: checking "for --enable-tbarnative"" >&5
360d6699
VZ
5199 no_cache=0
5200 # Check whether --enable-tbarnative or --disable-tbarnative was given.
5201if test "${enable_tbarnative+set}" = set; then
5202 enableval="$enable_tbarnative"
5203
5204 if test "$enableval" = yes; then
5205 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
5206 else
5207 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
5208 fi
5209
5210else
5211
5212 LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
5213 if test "x$LINE" != x ; then
5214 eval "DEFAULT_$LINE"
5215 else
5216 no_cache=1
5217 fi
5218
5219 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
5220
5221fi
5222
5223
5224 eval "$ac_cv_use_tbarnative"
5225 if test "$no_cache" != 1; then
5226 echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
5227 fi
5228
5229 if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
5230 echo "$ac_t""yes" 1>&6
5231 else
5232 echo "$ac_t""no" 1>&6
5233 fi
5234
5235
5236 echo $ac_n "checking "for --enable-tbarsmpl"""... $ac_c" 1>&6
eb4efbdc 5237echo "configure:5238: checking "for --enable-tbarsmpl"" >&5
360d6699
VZ
5238 no_cache=0
5239 # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given.
5240if test "${enable_tbarsmpl+set}" = set; then
5241 enableval="$enable_tbarsmpl"
5242
5243 if test "$enableval" = yes; then
5244 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes'
5245 else
5246 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no'
5247 fi
5248
5249else
5250
5251 LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}`
5252 if test "x$LINE" != x ; then
5253 eval "DEFAULT_$LINE"
5254 else
5255 no_cache=1
5256 fi
5257
5258 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE
5259
5260fi
5261
5262
5263 eval "$ac_cv_use_tbarsmpl"
5264 if test "$no_cache" != 1; then
5265 echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp
5266 fi
5267
5268 if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then
5269 echo "$ac_t""yes" 1>&6
5270 else
5271 echo "$ac_t""no" 1>&6
5272 fi
5273
5274
10f2d63a 5275 echo $ac_n "checking "for --enable-treectrl"""... $ac_c" 1>&6
eb4efbdc 5276echo "configure:5277: checking "for --enable-treectrl"" >&5
10f2d63a
VZ
5277 no_cache=0
5278 # Check whether --enable-treectrl or --disable-treectrl was given.
5279if test "${enable_treectrl+set}" = set; then
5280 enableval="$enable_treectrl"
5281
5282 if test "$enableval" = yes; then
5283 ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
5284 else
5285 ac_cv_use_treectrl='wxUSE_TREECTRL=no'
5286 fi
5287
5288else
5289
5290 LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
5291 if test "x$LINE" != x ; then
5292 eval "DEFAULT_$LINE"
5293 else
5294 no_cache=1
5295 fi
5296
5297 ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
5298
5299fi
5300
5301
5302 eval "$ac_cv_use_treectrl"
5303 if test "$no_cache" != 1; then
5304 echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
5305 fi
5306
5307 if test "$wxUSE_TREECTRL" = yes; then
5308 echo "$ac_t""yes" 1>&6
5309 else
5310 echo "$ac_t""no" 1>&6
5311 fi
5312
5313
5314
5315
5316 echo $ac_n "checking "for --enable-commondlg"""... $ac_c" 1>&6
eb4efbdc 5317echo "configure:5318: checking "for --enable-commondlg"" >&5
10f2d63a
VZ
5318 no_cache=0
5319 # Check whether --enable-commondlg or --disable-commondlg was given.
5320if test "${enable_commondlg+set}" = set; then
5321 enableval="$enable_commondlg"
5322
5323 if test "$enableval" = yes; then
5324 ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
5325 else
5326 ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
5327 fi
5328
5329else
5330
5331 LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
5332 if test "x$LINE" != x ; then
5333 eval "DEFAULT_$LINE"
5334 else
5335 no_cache=1
5336 fi
5337
5338 ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
5339
5340fi
5341
5342
5343 eval "$ac_cv_use_commondlg"
5344 if test "$no_cache" != 1; then
5345 echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
5346 fi
5347
5348 if test "$wxUSE_COMMONDLGS" = yes; then
5349 echo "$ac_t""yes" 1>&6
5350 else
5351 echo "$ac_t""no" 1>&6
5352 fi
5353
5354
5355 echo $ac_n "checking "for --enable-dirdlg"""... $ac_c" 1>&6
eb4efbdc 5356echo "configure:5357: checking "for --enable-dirdlg"" >&5
10f2d63a
VZ
5357 no_cache=0
5358 # Check whether --enable-dirdlg or --disable-dirdlg was given.
5359if test "${enable_dirdlg+set}" = set; then
5360 enableval="$enable_dirdlg"
5361
5362 if test "$enableval" = yes; then
5363 ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
5364 else
5365 ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
5366 fi
5367
5368else
5369
5370 LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
5371 if test "x$LINE" != x ; then
5372 eval "DEFAULT_$LINE"
5373 else
5374 no_cache=1
5375 fi
5376
5377 ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
5378
5379fi
5380
5381
5382 eval "$ac_cv_use_dirdlg"
5383 if test "$no_cache" != 1; then
5384 echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
5385 fi
5386
5387 if test "$wxUSE_DIRDLG" = yes; then
5388 echo "$ac_t""yes" 1>&6
5389 else
5390 echo "$ac_t""no" 1>&6
5391 fi
5392
5393
5394 echo $ac_n "checking "for --enable-textdlg"""... $ac_c" 1>&6
eb4efbdc 5395echo "configure:5396: checking "for --enable-textdlg"" >&5
10f2d63a
VZ
5396 no_cache=0
5397 # Check whether --enable-textdlg or --disable-textdlg was given.
5398if test "${enable_textdlg+set}" = set; then
5399 enableval="$enable_textdlg"
5400
5401 if test "$enableval" = yes; then
5402 ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
5403 else
5404 ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
5405 fi
5406
5407else
5408
5409 LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
5410 if test "x$LINE" != x ; then
5411 eval "DEFAULT_$LINE"
5412 else
5413 no_cache=1
5414 fi
5415
5416 ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
5417
5418fi
5419
5420
5421 eval "$ac_cv_use_textdlg"
5422 if test "$no_cache" != 1; then
5423 echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
5424 fi
5425
5426 if test "$wxUSE_TEXTDLG" = yes; then
5427 echo "$ac_t""yes" 1>&6
5428 else
5429 echo "$ac_t""no" 1>&6
5430 fi
5431
5432
5433 echo $ac_n "checking "for --enable-tipdlg"""... $ac_c" 1>&6
eb4efbdc 5434echo "configure:5435: checking "for --enable-tipdlg"" >&5
10f2d63a
VZ
5435 no_cache=0
5436 # Check whether --enable-tipdlg or --disable-tipdlg was given.
5437if test "${enable_tipdlg+set}" = set; then
5438 enableval="$enable_tipdlg"
5439
5440 if test "$enableval" = yes; then
5441 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
5442 else
5443 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
5444 fi
5445
5446else
5447
5448 LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
5449 if test "x$LINE" != x ; then
5450 eval "DEFAULT_$LINE"
5451 else
5452 no_cache=1
5453 fi
5454
5455 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
5456
5457fi
5458
5459
5460 eval "$ac_cv_use_tipdlg"
5461 if test "$no_cache" != 1; then
5462 echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
5463 fi
5464
5465 if test "$wxUSE_STARTUP_TIPS" = yes; then
5466 echo "$ac_t""yes" 1>&6
5467 else
5468 echo "$ac_t""no" 1>&6
5469 fi
5470
5471
5472 echo $ac_n "checking "for --enable-progressdlg"""... $ac_c" 1>&6
eb4efbdc 5473echo "configure:5474: checking "for --enable-progressdlg"" >&5
10f2d63a
VZ
5474 no_cache=0
5475 # Check whether --enable-progressdlg or --disable-progressdlg was given.
5476if test "${enable_progressdlg+set}" = set; then
5477 enableval="$enable_progressdlg"
5478
5479 if test "$enableval" = yes; then
5480 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
5481 else
5482 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
5483 fi
5484
5485else
5486
5487 LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
5488 if test "x$LINE" != x ; then
5489 eval "DEFAULT_$LINE"
5490 else
5491 no_cache=1
5492 fi
5493
5494 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
5495
5496fi
5497
5498
5499 eval "$ac_cv_use_progressdlg"
5500 if test "$no_cache" != 1; then
5501 echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
5502 fi
5503
5504 if test "$wxUSE_PROGRESSDLG" = yes; then
5505 echo "$ac_t""yes" 1>&6
5506 else
5507 echo "$ac_t""no" 1>&6
5508 fi
5509
5510
5511 echo $ac_n "checking "for --enable-miniframe"""... $ac_c" 1>&6
eb4efbdc 5512echo "configure:5513: checking "for --enable-miniframe"" >&5
10f2d63a
VZ
5513 no_cache=0
5514 # Check whether --enable-miniframe or --disable-miniframe was given.
5515if test "${enable_miniframe+set}" = set; then
5516 enableval="$enable_miniframe"
5517
5518 if test "$enableval" = yes; then
5519 ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
5520 else
5521 ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
5522 fi
5523
5524else
5525
5526 LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
5527 if test "x$LINE" != x ; then
5528 eval "DEFAULT_$LINE"
5529 else
5530 no_cache=1
5531 fi
5532
5533 ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
5534
5535fi
5536
5537
5538 eval "$ac_cv_use_miniframe"
5539 if test "$no_cache" != 1; then
5540 echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
5541 fi
5542
5543 if test "$wxUSE_MINIFRAME" = yes; then
5544 echo "$ac_t""yes" 1>&6
5545 else
5546 echo "$ac_t""no" 1>&6
5547 fi
5548
5549
5550 echo $ac_n "checking "for --enable-html"""... $ac_c" 1>&6
eb4efbdc 5551echo "configure:5552: checking "for --enable-html"" >&5
10f2d63a
VZ
5552 no_cache=0
5553 # Check whether --enable-html or --disable-html was given.
5554if test "${enable_html+set}" = set; then
5555 enableval="$enable_html"
5556
5557 if test "$enableval" = yes; then
5558 ac_cv_use_html='wxUSE_HTML=yes'
5559 else
5560 ac_cv_use_html='wxUSE_HTML=no'
5561 fi
5562
5563else
5564
5565 LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
5566 if test "x$LINE" != x ; then
5567 eval "DEFAULT_$LINE"
5568 else
5569 no_cache=1
5570 fi
5571
5572 ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
5573
5574fi
5575
5576
5577 eval "$ac_cv_use_html"
5578 if test "$no_cache" != 1; then
5579 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
5580 fi
5581
5582 if test "$wxUSE_HTML" = yes; then
5583 echo "$ac_t""yes" 1>&6
5584 else
5585 echo "$ac_t""no" 1>&6
5586 fi
5587
5588
5589 echo $ac_n "checking "for --enable-tooltips"""... $ac_c" 1>&6
eb4efbdc 5590echo "configure:5591: checking "for --enable-tooltips"" >&5
10f2d63a
VZ
5591 no_cache=0
5592 # Check whether --enable-tooltips or --disable-tooltips was given.
5593if test "${enable_tooltips+set}" = set; then
5594 enableval="$enable_tooltips"
5595
5596 if test "$enableval" = yes; then
5597 ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
5598 else
5599 ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
5600 fi
5601
5602else
5603
5604 LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
5605 if test "x$LINE" != x ; then
5606 eval "DEFAULT_$LINE"
5607 else
5608 no_cache=1
5609 fi
5610
5611 ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
5612
5613fi
5614
5615
5616 eval "$ac_cv_use_tooltips"
5617 if test "$no_cache" != 1; then
5618 echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
5619 fi
5620
5621 if test "$wxUSE_TOOLTIPS" = yes; then
5622 echo "$ac_t""yes" 1>&6
5623 else
5624 echo "$ac_t""no" 1>&6
5625 fi
5626
5627
5628 echo $ac_n "checking "for --enable-splines"""... $ac_c" 1>&6
eb4efbdc 5629echo "configure:5630: checking "for --enable-splines"" >&5
10f2d63a
VZ
5630 no_cache=0
5631 # Check whether --enable-splines or --disable-splines was given.
5632if test "${enable_splines+set}" = set; then
5633 enableval="$enable_splines"
5634
5635 if test "$enableval" = yes; then
5636 ac_cv_use_splines='wxUSE_SPLINES=yes'
5637 else
5638 ac_cv_use_splines='wxUSE_SPLINES=no'
5639 fi
5640
5641else
5642
5643 LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
5644 if test "x$LINE" != x ; then
5645 eval "DEFAULT_$LINE"
5646 else
5647 no_cache=1
5648 fi
5649
5650 ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
5651
5652fi
5653
5654
5655 eval "$ac_cv_use_splines"
5656 if test "$no_cache" != 1; then
5657 echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
5658 fi
5659
5660 if test "$wxUSE_SPLINES" = yes; then
5661 echo "$ac_t""yes" 1>&6
5662 else
5663 echo "$ac_t""no" 1>&6
5664 fi
5665
5666
5667 echo $ac_n "checking "for --enable-validators"""... $ac_c" 1>&6
eb4efbdc 5668echo "configure:5669: checking "for --enable-validators"" >&5
10f2d63a
VZ
5669 no_cache=0
5670 # Check whether --enable-validators or --disable-validators was given.
5671if test "${enable_validators+set}" = set; then
5672 enableval="$enable_validators"
5673
5674 if test "$enableval" = yes; then
5675 ac_cv_use_validators='wxUSE_VALIDATORS=yes'
5676 else
5677 ac_cv_use_validators='wxUSE_VALIDATORS=no'
5678 fi
5679
5680else
5681
5682 LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
5683 if test "x$LINE" != x ; then
5684 eval "DEFAULT_$LINE"
5685 else
5686 no_cache=1
5687 fi
5688
5689 ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
5690
5691fi
5692
5693
5694 eval "$ac_cv_use_validators"
5695 if test "$no_cache" != 1; then
5696 echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
5697 fi
5698
5699 if test "$wxUSE_VALIDATORS" = yes; then
5700 echo "$ac_t""yes" 1>&6
5701 else
5702 echo "$ac_t""no" 1>&6
5703 fi
5704
5705
5706 echo $ac_n "checking "for --enable-busyinfo"""... $ac_c" 1>&6
eb4efbdc 5707echo "configure:5708: checking "for --enable-busyinfo"" >&5
10f2d63a
VZ
5708 no_cache=0
5709 # Check whether --enable-busyinfo or --disable-busyinfo was given.
5710if test "${enable_busyinfo+set}" = set; then
5711 enableval="$enable_busyinfo"
5712
5713 if test "$enableval" = yes; then
5714 ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
5715 else
5716 ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
5717 fi
5718
5719else
5720
5721 LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
5722 if test "x$LINE" != x ; then
5723 eval "DEFAULT_$LINE"
5724 else
5725 no_cache=1
5726 fi
5727
5728 ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
5729
5730fi
5731
5732
5733 eval "$ac_cv_use_busyinfo"
5734 if test "$no_cache" != 1; then
5735 echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
5736 fi
5737
5738 if test "$wxUSE_BUSYINFO" = yes; then
5739 echo "$ac_t""yes" 1>&6
5740 else
5741 echo "$ac_t""no" 1>&6
5742 fi
5743
5744
9b33fe02 5745 echo $ac_n "checking "for --enable-plot"""... $ac_c" 1>&6
eb4efbdc 5746echo "configure:5747: checking "for --enable-plot"" >&5
9b33fe02
VZ
5747 no_cache=0
5748 # Check whether --enable-plot or --disable-plot was given.
5749if test "${enable_plot+set}" = set; then
5750 enableval="$enable_plot"
5751
5752 if test "$enableval" = yes; then
5753 ac_cv_use_plot='wxUSE_PLOT=yes'
5754 else
5755 ac_cv_use_plot='wxUSE_PLOT=no'
5756 fi
5757
5758else
5759
5760 LINE=`grep "wxUSE_PLOT" ${wx_arg_cache_file}`
5761 if test "x$LINE" != x ; then
5762 eval "DEFAULT_$LINE"
5763 else
5764 no_cache=1
5765 fi
5766
5767 ac_cv_use_plot='wxUSE_PLOT='$DEFAULT_wxUSE_PLOT
5768
5769fi
5770
5771
5772 eval "$ac_cv_use_plot"
5773 if test "$no_cache" != 1; then
5774 echo $ac_cv_use_plot >> ${wx_arg_cache_file}.tmp
5775 fi
5776
5777 if test "$wxUSE_PLOT" = yes; then
5778 echo "$ac_t""yes" 1>&6
5779 else
5780 echo "$ac_t""no" 1>&6
5781 fi
5782
5783
10f2d63a
VZ
5784
5785
5786 echo $ac_n "checking "for --enable-gif"""... $ac_c" 1>&6
eb4efbdc 5787echo "configure:5788: checking "for --enable-gif"" >&5
10f2d63a
VZ
5788 no_cache=0
5789 # Check whether --enable-gif or --disable-gif was given.
5790if test "${enable_gif+set}" = set; then
5791 enableval="$enable_gif"
5792
5793 if test "$enableval" = yes; then
5794 ac_cv_use_gif='wxUSE_GIF=yes'
5795 else
5796 ac_cv_use_gif='wxUSE_GIF=no'
5797 fi
5798
5799else
5800
5801 LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
5802 if test "x$LINE" != x ; then
5803 eval "DEFAULT_$LINE"
5804 else
5805 no_cache=1
5806 fi
5807
5808 ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
5809
5810fi
5811
5812
5813 eval "$ac_cv_use_gif"
5814 if test "$no_cache" != 1; then
5815 echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
5816 fi
5817
5818 if test "$wxUSE_GIF" = yes; then
5819 echo "$ac_t""yes" 1>&6
5820 else
5821 echo "$ac_t""no" 1>&6
5822 fi
5823
5824
5825 echo $ac_n "checking "for --enable-pcx"""... $ac_c" 1>&6
eb4efbdc 5826echo "configure:5827: checking "for --enable-pcx"" >&5
10f2d63a
VZ
5827 no_cache=0
5828 # Check whether --enable-pcx or --disable-pcx was given.
5829if test "${enable_pcx+set}" = set; then
5830 enableval="$enable_pcx"
5831
5832 if test "$enableval" = yes; then
5833 ac_cv_use_pcx='wxUSE_PCX=yes'
5834 else
5835 ac_cv_use_pcx='wxUSE_PCX=no'
5836 fi
5837
5838else
5839
5840 LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
5841 if test "x$LINE" != x ; then
5842 eval "DEFAULT_$LINE"
5843 else
5844 no_cache=1
5845 fi
5846
5847 ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
5848
5849fi
5850
5851
5852 eval "$ac_cv_use_pcx"
5853 if test "$no_cache" != 1; then
5854 echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
5855 fi
5856
5857 if test "$wxUSE_PCX" = yes; then
5858 echo "$ac_t""yes" 1>&6
5859 else
5860 echo "$ac_t""no" 1>&6
5861 fi
5862
5863
5864 echo $ac_n "checking "for --enable-pnm"""... $ac_c" 1>&6
eb4efbdc 5865echo "configure:5866: checking "for --enable-pnm"" >&5
10f2d63a
VZ
5866 no_cache=0
5867 # Check whether --enable-pnm or --disable-pnm was given.
5868if test "${enable_pnm+set}" = set; then
5869 enableval="$enable_pnm"
5870
5871 if test "$enableval" = yes; then
5872 ac_cv_use_pnm='wxUSE_PNM=yes'
5873 else
5874 ac_cv_use_pnm='wxUSE_PNM=no'
5875 fi
5876
5877else
5878
5879 LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
5880 if test "x$LINE" != x ; then
5881 eval "DEFAULT_$LINE"
5882 else
5883 no_cache=1
5884 fi
5885
5886 ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
5887
5888fi
5889
5890
5891 eval "$ac_cv_use_pnm"
5892 if test "$no_cache" != 1; then
5893 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
5894 fi
5895
5896 if test "$wxUSE_PNM" = yes; then
5897 echo "$ac_t""yes" 1>&6
5898 else
5899 echo "$ac_t""no" 1>&6
5900 fi
5901
5902
b12915c1
VZ
5903fi
5904
10f2d63a
VZ
5905
5906 echo "saving argument cache $wx_arg_cache_file"
5907 mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
5908
5909
5910
5911echo $ac_n "checking for toolkit""... $ac_c" 1>&6
eb4efbdc 5912echo "configure:5913: checking for toolkit" >&5
10f2d63a
VZ
5913
5914if test "$wxUSE_GUI" = "yes"; then
5915
b12915c1
VZ
5916if test "$USE_BEOS" = 1; then
5917 { echo "configure: error: BeOS GUI is not supported yet, use --disable-gui" 1>&2; exit 1; }
5918fi
5919
10f2d63a
VZ
5920if test "$TOOLKIT_GIVEN" = 1; then
5921 for toolkit in `echo $ALL_TOOLKITS`; do
5922 var=wxUSE_$toolkit
5923 eval "value=\$${var}"
5924 eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`"
5925 done
5926else
5927 for toolkit in `echo $ALL_TOOLKITS`; do
5928 if test "$has_toolkit_in_cache" != 1; then
5929 var=DEFAULT_DEFAULT_wxUSE_$toolkit
5930 else
5931 var=DEFAULT_wxUSE_$toolkit
5932 fi
5933 eval "wxUSE_$toolkit=\$${var}"
5934 done
5935fi
5936
ec14dd32 5937NUM_TOOLKITS=`expr ${wxUSE_GTK:-0} + ${wxUSE_MOTIF:-0} + ${wxUSE_WINE:-0} + ${wxUSE_MINGW:-0} + ${wxUSE_CYGWIN:-0}`
cf27ef00 5938
ec14dd32
VZ
5939case "${host}" in
5940 *-pc-os2_emx )
5941 NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
5942 # PATH_IFS is autodetected by OS/2's configure (usually ';')
5943 LEX_STEM="lexyy"
5944 ;;
5945 *)
5946 PATH_IFS=':'
5947 LEX_STEM="lex.yy"
5948 ;;
5949esac
10f2d63a
VZ
5950
5951case "$NUM_TOOLKITS" in
5952 1)
5953 ;;
5954 0)
5955 { echo "configure: error: Please specify a toolkit - cannot determine the default for ${host}" 1>&2; exit 1; }
5956 ;;
5957 *)
5958 { echo "configure: error: Please specify at most one toolkit (may be some are cached?)" 1>&2; exit 1; }
5959esac
5960
5961for toolkit in `echo $ALL_TOOLKITS`; do
5962 var=wxUSE_$toolkit
5963 eval "value=\$${var}"
5964 if test "x$value" != x; then
5965 cache_var=CACHE_$toolkit
5966 eval "cache=\$${cache_var}"
5967 if test "$cache" = 1; then
5968 echo "$var=$value" >> ${wx_arg_cache_file}
5969 fi
5970 if test "$value" = 1; then
5971 echo "$ac_t""`echo $toolkit | tr A-Z a-z`" 1>&6
5972 fi
5973 fi
5974done
5975
5976else
cf27ef00 5977 PATH_IFS=':'
10f2d63a
VZ
5978 echo "$ac_t""base only" 1>&6
5979fi
5980
5981
5982cat > confcache <<\EOF
5983# This file is a shell script that caches the results of configure
5984# tests run on this system so they can be shared between configure
5985# scripts and configure runs. It is not useful on other systems.
5986# If it contains results you don't want to keep, you may remove or edit it.
5987#
5988# By default, configure uses ./config.cache as the cache file,
5989# creating it if it does not exist already. You can give configure
5990# the --cache-file=FILE option to use a different cache file; that is
5991# what configure does when it calls configure scripts in
5992# subdirectories, so they share the cache.
5993# Giving --cache-file=/dev/null disables caching, for debugging configure.
5994# config.status only pays attention to the cache file if you give it the
5995# --recheck option to rerun configure.
5996#
5997EOF
5998# The following way of writing the cache mishandles newlines in values,
5999# but we know of no workaround that is simple, portable, and efficient.
6000# So, don't put newlines in cache variables' values.
6001# Ultrix sh set writes to stderr and can't be redirected directly,
6002# and sets the high bit in the cache file unless we assign to the vars.
6003(set) 2>&1 |
6004 case `(ac_space=' '; set | grep ac_space) 2>&1` in
6005 *ac_space=\ *)
6006 # `set' does not quote correctly, so add quotes (double-quote substitution
6007 # turns \\\\ into \\, and sed turns \\ into \).
6008 sed -n \
6009 -e "s/'/'\\\\''/g" \
6010 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
6011 ;;
6012 *)
6013 # `set' quotes correctly as required by POSIX, so do not add quotes.
6014 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
6015 ;;
6016 esac >> confcache
6017if cmp -s $cache_file confcache; then
6018 :
6019else
6020 if test -w $cache_file; then
6021 echo "updating cache $cache_file"
6022 cat confcache > $cache_file
6023 else
6024 echo "not updating unwritable cache $cache_file"
6025 fi
6026fi
6027rm -f confcache
6028
6029
e59890c3 6030if test "$build" != "$host" ; then
10f2d63a
VZ
6031 CC=$host_alias-gcc
6032 CXX=$host_alias-c++
6033 AR=$host_alias-ar
6034 RANLIB=$host_alias-ranlib
6035 DLLTOOL=$host_alias-dlltool
32832908 6036 RESCOMP=$host_alias-windres
10f2d63a
VZ
6037 LD=$host_alias-ld
6038 NM=$host_alias-nm
6039 STRIP=$host_alias-strip
10f2d63a
VZ
6040fi
6041
6042# Extract the first word of "gcc", so it can be a program name with args.
6043set dummy gcc; ac_word=$2
6044echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
eb4efbdc 6045echo "configure:6046: checking for $ac_word" >&5
10f2d63a
VZ
6046if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
6047 echo $ac_n "(cached) $ac_c" 1>&6
6048else
6049 if test -n "$CC"; then
6050 ac_cv_prog_CC="$CC" # Let the user override the test.
6051else
6052 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6053 ac_dummy="$PATH"
6054 for ac_dir in $ac_dummy; do
6055 test -z "$ac_dir" && ac_dir=.
6056 if test -f $ac_dir/$ac_word; then
6057 ac_cv_prog_CC="gcc"
6058 break
6059 fi
6060 done
6061 IFS="$ac_save_ifs"
6062fi
6063fi
6064CC="$ac_cv_prog_CC"
6065if test -n "$CC"; then
6066 echo "$ac_t""$CC" 1>&6
6067else
6068 echo "$ac_t""no" 1>&6
6069fi
6070
6071if test -z "$CC"; then
6072 # Extract the first word of "cc", so it can be a program name with args.
6073set dummy cc; ac_word=$2
6074echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
eb4efbdc 6075echo "configure:6076: checking for $ac_word" >&5
10f2d63a
VZ
6076if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
6077 echo $ac_n "(cached) $ac_c" 1>&6
6078else
6079 if test -n "$CC"; then
6080 ac_cv_prog_CC="$CC" # Let the user override the test.
6081else
6082 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6083 ac_prog_rejected=no
6084 ac_dummy="$PATH"
6085 for ac_dir in $ac_dummy; do
6086 test -z "$ac_dir" && ac_dir=.
6087 if test -f $ac_dir/$ac_word; then
6088 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
6089 ac_prog_rejected=yes
6090 continue
6091 fi
6092 ac_cv_prog_CC="cc"
6093 break
6094 fi
6095 done
6096 IFS="$ac_save_ifs"
6097if test $ac_prog_rejected = yes; then
6098 # We found a bogon in the path, so make sure we never use it.
6099 set dummy $ac_cv_prog_CC
6100 shift
6101 if test $# -gt 0; then
6102 # We chose a different compiler from the bogus one.
6103 # However, it has the same basename, so the bogon will be chosen
6104 # first if we set CC to just the basename; use the full file name.
6105 shift
6106 set dummy "$ac_dir/$ac_word" "$@"
6107 shift
6108 ac_cv_prog_CC="$@"
6109 fi
6110fi
6111fi
6112fi
6113CC="$ac_cv_prog_CC"
6114if test -n "$CC"; then
6115 echo "$ac_t""$CC" 1>&6
6116else
6117 echo "$ac_t""no" 1>&6
6118fi
6119
6120 if test -z "$CC"; then
6121 case "`uname -s`" in
6122 *win32* | *WIN32*)
6123 # Extract the first word of "cl", so it can be a program name with args.
6124set dummy cl; ac_word=$2
6125echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
eb4efbdc 6126echo "configure:6127: checking for $ac_word" >&5
10f2d63a
VZ
6127if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
6128 echo $ac_n "(cached) $ac_c" 1>&6
6129else
6130 if test -n "$CC"; then
6131 ac_cv_prog_CC="$CC" # Let the user override the test.
6132else
6133 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6134 ac_dummy="$PATH"
6135 for ac_dir in $ac_dummy; do
6136 test -z "$ac_dir" && ac_dir=.
6137 if test -f $ac_dir/$ac_word; then
6138 ac_cv_prog_CC="cl"
6139 break
6140 fi
6141 done
6142 IFS="$ac_save_ifs"
6143fi
6144fi
6145CC="$ac_cv_prog_CC"
6146if test -n "$CC"; then
6147 echo "$ac_t""$CC" 1>&6
6148else
6149 echo "$ac_t""no" 1>&6
6150fi
6151 ;;
6152 esac
6153 fi
6154 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
6155fi
6156
6157echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
eb4efbdc 6158echo "configure:6159: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
10f2d63a
VZ
6159
6160ac_ext=c
6161# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6162ac_cpp='$CPP $CPPFLAGS'
6163ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6164ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6165cross_compiling=$ac_cv_prog_cc_cross
6166
6167cat > conftest.$ac_ext << EOF
6168
eb4efbdc 6169#line 6170 "configure"
10f2d63a
VZ
6170#include "confdefs.h"
6171
6172main(){return(0);}
6173EOF
eb4efbdc 6174if { (eval echo configure:6175: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
6175 ac_cv_prog_cc_works=yes
6176 # If we can't run a trivial program, we are probably using a cross compiler.
6177 if (./conftest; exit) 2>/dev/null; then
6178 ac_cv_prog_cc_cross=no
6179 else
6180 ac_cv_prog_cc_cross=yes
6181 fi
6182else
6183 echo "configure: failed program was:" >&5
6184 cat conftest.$ac_ext >&5
6185 ac_cv_prog_cc_works=no
6186fi
6187rm -fr conftest*
6188ac_ext=c
6189# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6190ac_cpp='$CPP $CPPFLAGS'
6191ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6192ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6193cross_compiling=$ac_cv_prog_cc_cross
6194
6195echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
6196if test $ac_cv_prog_cc_works = no; then
6197 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
6198fi
6199echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
eb4efbdc 6200echo "configure:6201: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
10f2d63a
VZ
6201echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
6202cross_compiling=$ac_cv_prog_cc_cross
6203
6204echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
eb4efbdc 6205echo "configure:6206: checking whether we are using GNU C" >&5
10f2d63a
VZ
6206if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
6207 echo $ac_n "(cached) $ac_c" 1>&6
6208else
6209 cat > conftest.c <<EOF
6210#ifdef __GNUC__
6211 yes;
6212#endif
6213EOF
eb4efbdc 6214if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:6215: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
10f2d63a
VZ
6215 ac_cv_prog_gcc=yes
6216else
6217 ac_cv_prog_gcc=no
6218fi
6219fi
6220
6221echo "$ac_t""$ac_cv_prog_gcc" 1>&6
6222
6223if test $ac_cv_prog_gcc = yes; then
6224 GCC=yes
6225else
6226 GCC=
6227fi
6228
6229ac_test_CFLAGS="${CFLAGS+set}"
6230ac_save_CFLAGS="$CFLAGS"
6231CFLAGS=
6232echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
eb4efbdc 6233echo "configure:6234: checking whether ${CC-cc} accepts -g" >&5
10f2d63a
VZ
6234if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
6235 echo $ac_n "(cached) $ac_c" 1>&6
6236else
6237 echo 'void f(){}' > conftest.c
6238if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
6239 ac_cv_prog_cc_g=yes
6240else
6241 ac_cv_prog_cc_g=no
6242fi
6243rm -f conftest*
6244
6245fi
6246
6247echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
6248if test "$ac_test_CFLAGS" = set; then
6249 CFLAGS="$ac_save_CFLAGS"
6250elif test $ac_cv_prog_cc_g = yes; then
6251 if test "$GCC" = yes; then
6252 CFLAGS="-g -O2"
6253 else
6254 CFLAGS="-g"
6255 fi
6256else
6257 if test "$GCC" = yes; then
6258 CFLAGS="-O2"
6259 else
6260 CFLAGS=
6261 fi
6262fi
6263
6264
6265CFLAGS=`echo "$CFLAGS" | sed 's/-g//g'`
6266
6267echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
eb4efbdc 6268echo "configure:6269: checking how to run the C preprocessor" >&5
10f2d63a
VZ
6269# On Suns, sometimes $CPP names a directory.
6270if test -n "$CPP" && test -d "$CPP"; then
6271 CPP=
6272fi
6273if test -z "$CPP"; then
6274if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
6275 echo $ac_n "(cached) $ac_c" 1>&6
6276else
6277 # This must be in double quotes, not single quotes, because CPP may get
6278 # substituted into the Makefile and "${CC-cc}" will confuse make.
6279 CPP="${CC-cc} -E"
6280 # On the NeXT, cc -E runs the code through the compiler's parser,
6281 # not just through cpp.
6282 cat > conftest.$ac_ext <<EOF
eb4efbdc 6283#line 6284 "configure"
10f2d63a
VZ
6284#include "confdefs.h"
6285#include <assert.h>
6286Syntax Error
6287EOF
6288ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
eb4efbdc 6289{ (eval echo configure:6290: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
6290ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6291if test -z "$ac_err"; then
6292 :
6293else
6294 echo "$ac_err" >&5
6295 echo "configure: failed program was:" >&5
6296 cat conftest.$ac_ext >&5
6297 rm -rf conftest*
6298 CPP="${CC-cc} -E -traditional-cpp"
6299 cat > conftest.$ac_ext <<EOF
eb4efbdc 6300#line 6301 "configure"
10f2d63a
VZ
6301#include "confdefs.h"
6302#include <assert.h>
6303Syntax Error
6304EOF
6305ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
eb4efbdc 6306{ (eval echo configure:6307: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
6307ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6308if test -z "$ac_err"; then
6309 :
6310else
6311 echo "$ac_err" >&5
6312 echo "configure: failed program was:" >&5
6313 cat conftest.$ac_ext >&5
6314 rm -rf conftest*
6315 CPP="${CC-cc} -nologo -E"
6316 cat > conftest.$ac_ext <<EOF
eb4efbdc 6317#line 6318 "configure"
10f2d63a
VZ
6318#include "confdefs.h"
6319#include <assert.h>
6320Syntax Error
6321EOF
6322ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
eb4efbdc 6323{ (eval echo configure:6324: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
6324ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6325if test -z "$ac_err"; then
6326 :
6327else
6328 echo "$ac_err" >&5
6329 echo "configure: failed program was:" >&5
6330 cat conftest.$ac_ext >&5
6331 rm -rf conftest*
6332 CPP=/lib/cpp
6333fi
6334rm -f conftest*
6335fi
6336rm -f conftest*
6337fi
6338rm -f conftest*
6339 ac_cv_prog_CPP="$CPP"
6340fi
6341 CPP="$ac_cv_prog_CPP"
6342else
6343 ac_cv_prog_CPP="$CPP"
6344fi
6345echo "$ac_t""$CPP" 1>&6
6346
6347
6348if test $ac_cv_prog_gcc = yes; then
6349 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
eb4efbdc 6350echo "configure:6351: checking whether ${CC-cc} needs -traditional" >&5
10f2d63a
VZ
6351if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
6352 echo $ac_n "(cached) $ac_c" 1>&6
6353else
6354 ac_pattern="Autoconf.*'x'"
6355 cat > conftest.$ac_ext <<EOF
eb4efbdc 6356#line 6357 "configure"
10f2d63a
VZ
6357#include "confdefs.h"
6358#include <sgtty.h>
6359Autoconf TIOCGETP
6360EOF
6361if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6362 egrep "$ac_pattern" >/dev/null 2>&1; then
6363 rm -rf conftest*
6364 ac_cv_prog_gcc_traditional=yes
6365else
6366 rm -rf conftest*
6367 ac_cv_prog_gcc_traditional=no
6368fi
6369rm -f conftest*
6370
6371
6372 if test $ac_cv_prog_gcc_traditional = no; then
6373 cat > conftest.$ac_ext <<EOF
eb4efbdc 6374#line 6375 "configure"
10f2d63a
VZ
6375#include "confdefs.h"
6376#include <termio.h>
6377Autoconf TCGETA
6378EOF
6379if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6380 egrep "$ac_pattern" >/dev/null 2>&1; then
6381 rm -rf conftest*
6382 ac_cv_prog_gcc_traditional=yes
6383fi
6384rm -f conftest*
6385
6386 fi
6387fi
6388
6389echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
6390 if test $ac_cv_prog_gcc_traditional = yes; then
6391 CC="$CC -traditional"
6392 fi
6393fi
6394
6395
6396
6397ac_ext=C
6398# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6399ac_cpp='$CXXCPP $CPPFLAGS'
6400ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6401ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6402cross_compiling=$ac_cv_prog_cxx_cross
6403
6404
6405for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
6406do
6407# Extract the first word of "$ac_prog", so it can be a program name with args.
6408set dummy $ac_prog; ac_word=$2
6409echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
eb4efbdc 6410echo "configure:6411: checking for $ac_word" >&5
10f2d63a
VZ
6411if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
6412 echo $ac_n "(cached) $ac_c" 1>&6
6413else
6414 if test -n "$CXX"; then
6415 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6416else
6417 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6418 ac_dummy="$PATH"
6419 for ac_dir in $ac_dummy; do
6420 test -z "$ac_dir" && ac_dir=.
6421 if test -f $ac_dir/$ac_word; then
6422 ac_cv_prog_CXX="$ac_prog"
6423 break
6424 fi
6425 done
6426 IFS="$ac_save_ifs"
6427fi
6428fi
6429CXX="$ac_cv_prog_CXX"
6430if test -n "$CXX"; then
6431 echo "$ac_t""$CXX" 1>&6
6432else
6433 echo "$ac_t""no" 1>&6
6434fi
6435
6436test -n "$CXX" && break
6437done
6438test -n "$CXX" || CXX="gcc"
6439
6440
6441echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
eb4efbdc 6442echo "configure:6443: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
10f2d63a
VZ
6443
6444ac_ext=C
6445# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6446ac_cpp='$CXXCPP $CPPFLAGS'
6447ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6448ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6449cross_compiling=$ac_cv_prog_cxx_cross
6450
6451cat > conftest.$ac_ext << EOF
6452
eb4efbdc 6453#line 6454 "configure"
10f2d63a
VZ
6454#include "confdefs.h"
6455
6456int main(){return(0);}
6457EOF
eb4efbdc 6458if { (eval echo configure:6459: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
6459 ac_cv_prog_cxx_works=yes
6460 # If we can't run a trivial program, we are probably using a cross compiler.
6461 if (./conftest; exit) 2>/dev/null; then
6462 ac_cv_prog_cxx_cross=no
6463 else
6464 ac_cv_prog_cxx_cross=yes
6465 fi
6466else
6467 echo "configure: failed program was:" >&5
6468 cat conftest.$ac_ext >&5
6469 ac_cv_prog_cxx_works=no
6470fi
6471rm -fr conftest*
6472ac_ext=C
6473# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6474ac_cpp='$CXXCPP $CPPFLAGS'
6475ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6476ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6477cross_compiling=$ac_cv_prog_cxx_cross
6478
6479echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
6480if test $ac_cv_prog_cxx_works = no; then
6481 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
6482fi
6483echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
eb4efbdc 6484echo "configure:6485: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
10f2d63a
VZ
6485echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
6486cross_compiling=$ac_cv_prog_cxx_cross
6487
6488echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
eb4efbdc 6489echo "configure:6490: checking whether we are using GNU C++" >&5
10f2d63a
VZ
6490if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
6491 echo $ac_n "(cached) $ac_c" 1>&6
6492else
6493 cat > conftest.C <<EOF
6494#ifdef __GNUC__
6495 yes;
6496#endif
6497EOF
eb4efbdc 6498if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:6499: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
10f2d63a
VZ
6499 ac_cv_prog_gxx=yes
6500else
6501 ac_cv_prog_gxx=no
6502fi
6503fi
6504
6505echo "$ac_t""$ac_cv_prog_gxx" 1>&6
6506
6507if test $ac_cv_prog_gxx = yes; then
6508 GXX=yes
6509else
6510 GXX=
6511fi
6512
6513ac_test_CXXFLAGS="${CXXFLAGS+set}"
6514ac_save_CXXFLAGS="$CXXFLAGS"
6515CXXFLAGS=
6516echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
eb4efbdc 6517echo "configure:6518: checking whether ${CXX-g++} accepts -g" >&5
10f2d63a
VZ
6518if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
6519 echo $ac_n "(cached) $ac_c" 1>&6
6520else
6521 echo 'void f(){}' > conftest.cc
6522if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
6523 ac_cv_prog_cxx_g=yes
6524else
6525 ac_cv_prog_cxx_g=no
6526fi
6527rm -f conftest*
6528
6529fi
6530
6531echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
6532if test "$ac_test_CXXFLAGS" = set; then
6533 CXXFLAGS="$ac_save_CXXFLAGS"
6534elif test $ac_cv_prog_cxx_g = yes; then
6535 if test "$GXX" = yes; then
6536 CXXFLAGS="-g -O2"
6537 else
6538 CXXFLAGS="-g"
6539 fi
6540else
6541 if test "$GXX" = yes; then
6542 CXXFLAGS="-O2"
6543 else
6544 CXXFLAGS=
6545 fi
6546fi
6547
6548
6549echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
eb4efbdc 6550echo "configure:6551: checking how to run the C++ preprocessor" >&5
10f2d63a
VZ
6551if test -z "$CXXCPP"; then
6552if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
6553 echo $ac_n "(cached) $ac_c" 1>&6
6554else
6555 ac_ext=C
6556# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6557ac_cpp='$CXXCPP $CPPFLAGS'
6558ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6559ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6560cross_compiling=$ac_cv_prog_cxx_cross
6561 CXXCPP="${CXX-g++} -E"
6562 cat > conftest.$ac_ext <<EOF
eb4efbdc 6563#line 6564 "configure"
10f2d63a
VZ
6564#include "confdefs.h"
6565#include <stdlib.h>
6566EOF
6567ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
eb4efbdc 6568{ (eval echo configure:6569: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
6569ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6570if test -z "$ac_err"; then
6571 :
6572else
6573 echo "$ac_err" >&5
6574 echo "configure: failed program was:" >&5
6575 cat conftest.$ac_ext >&5
6576 rm -rf conftest*
6577 CXXCPP=/lib/cpp
6578fi
6579rm -f conftest*
6580 ac_cv_prog_CXXCPP="$CXXCPP"
6581ac_ext=C
6582# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6583ac_cpp='$CXXCPP $CPPFLAGS'
6584ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6585ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6586cross_compiling=$ac_cv_prog_cxx_cross
6587fi
6588fi
6589CXXCPP="$ac_cv_prog_CXXCPP"
6590echo "$ac_t""$CXXCPP" 1>&6
6591
6592
6593CXXFLAGS=`echo "$CXXFLAGS" | sed 's/-g//g'`
6594
6595ac_ext=c
6596# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6597ac_cpp='$CPP $CPPFLAGS'
6598ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6599ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6600cross_compiling=$ac_cv_prog_cc_cross
6601
6602
6603# Extract the first word of "ranlib", so it can be a program name with args.
6604set dummy ranlib; ac_word=$2
6605echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
eb4efbdc 6606echo "configure:6607: checking for $ac_word" >&5
10f2d63a
VZ
6607if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
6608 echo $ac_n "(cached) $ac_c" 1>&6
6609else
6610 if test -n "$RANLIB"; then
6611 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6612else
6613 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6614 ac_dummy="$PATH"
6615 for ac_dir in $ac_dummy; do
6616 test -z "$ac_dir" && ac_dir=.
6617 if test -f $ac_dir/$ac_word; then
6618 ac_cv_prog_RANLIB="ranlib"
6619 break
6620 fi
6621 done
6622 IFS="$ac_save_ifs"
6623 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
6624fi
6625fi
6626RANLIB="$ac_cv_prog_RANLIB"
6627if test -n "$RANLIB"; then
6628 echo "$ac_t""$RANLIB" 1>&6
6629else
6630 echo "$ac_t""no" 1>&6
6631fi
6632
6633
6634# Extract the first word of "ar", so it can be a program name with args.
6635set dummy ar; ac_word=$2
6636echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
eb4efbdc 6637echo "configure:6638: checking for $ac_word" >&5
10f2d63a
VZ
6638if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
6639 echo $ac_n "(cached) $ac_c" 1>&6
6640else
6641 if test -n "$AR"; then
6642 ac_cv_prog_AR="$AR" # Let the user override the test.
6643else
6644 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6645 ac_dummy="$PATH"
6646 for ac_dir in $ac_dummy; do
6647 test -z "$ac_dir" && ac_dir=.
6648 if test -f $ac_dir/$ac_word; then
6649 ac_cv_prog_AR="ar"
6650 break
6651 fi
6652 done
6653 IFS="$ac_save_ifs"
6654 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
6655fi
6656fi
6657AR="$ac_cv_prog_AR"
6658if test -n "$AR"; then
6659 echo "$ac_t""$AR" 1>&6
6660else
6661 echo "$ac_t""no" 1>&6
6662fi
6663
6664
6665# Find a good install program. We prefer a C program (faster),
6666# so one script is as good as another. But avoid the broken or
6667# incompatible versions:
6668# SysV /etc/install, /usr/sbin/install
6669# SunOS /usr/etc/install
6670# IRIX /sbin/install
6671# AIX /bin/install
6672# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6673# AFS /usr/afsws/bin/install, which mishandles nonexistent args
6674# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6675# ./install, which can be erroneously created by make from ./install.sh.
6676echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
eb4efbdc 6677echo "configure:6678: checking for a BSD compatible install" >&5
10f2d63a
VZ
6678if test -z "$INSTALL"; then
6679if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
6680 echo $ac_n "(cached) $ac_c" 1>&6
6681else
6682 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
6683 for ac_dir in $PATH; do
6684 # Account for people who put trailing slashes in PATH elements.
6685 case "$ac_dir/" in
6686 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
6687 *)
6688 # OSF1 and SCO ODT 3.0 have their own names for install.
6689 # Don't use installbsd from OSF since it installs stuff as root
6690 # by default.
6691 for ac_prog in ginstall scoinst install; do
6692 if test -f $ac_dir/$ac_prog; then
6693 if test $ac_prog = install &&
6694 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
6695 # AIX install. It has an incompatible calling convention.
6696 :
6697 else
6698 ac_cv_path_install="$ac_dir/$ac_prog -c"
6699 break 2
6700 fi
6701 fi
6702 done
6703 ;;
6704 esac
6705 done
6706 IFS="$ac_save_IFS"
6707
6708fi
6709 if test "${ac_cv_path_install+set}" = set; then
6710 INSTALL="$ac_cv_path_install"
6711 else
6712 # As a last resort, use the slow shell script. We don't cache a
6713 # path for INSTALL within a source directory, because that will
6714 # break other packages using the cache if that directory is
6715 # removed, or if the path is relative.
6716 INSTALL="$ac_install_sh"
6717 fi
6718fi
6719echo "$ac_t""$INSTALL" 1>&6
6720
6721# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6722# It thinks the first close brace ends the variable substitution.
6723test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6724
6725test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
6726
6727test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6728
6729
6730# Extract the first word of "strip", so it can be a program name with args.
6731set dummy strip; ac_word=$2
6732echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
eb4efbdc 6733echo "configure:6734: checking for $ac_word" >&5
10f2d63a
VZ
6734if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
6735 echo $ac_n "(cached) $ac_c" 1>&6
6736else
6737 if test -n "$STRIP"; then
6738 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6739else
6740 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6741 ac_dummy="$PATH"
6742 for ac_dir in $ac_dummy; do
6743 test -z "$ac_dir" && ac_dir=.
6744 if test -f $ac_dir/$ac_word; then
6745 ac_cv_prog_STRIP="strip"
6746 break
6747 fi
6748 done
6749 IFS="$ac_save_ifs"
6750 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true"
6751fi
6752fi
6753STRIP="$ac_cv_prog_STRIP"
6754if test -n "$STRIP"; then
6755 echo "$ac_t""$STRIP" 1>&6
6756else
6757 echo "$ac_t""no" 1>&6
6758fi
6759
6760
6761echo $ac_n "checking "make for VPATH support"""... $ac_c" 1>&6
eb4efbdc 6762echo "configure:6763: checking "make for VPATH support"" >&5
10f2d63a
VZ
6763cat - << EOF > confMake
6764check : file
6765 cp \$? \$@
6766 cp \$? final_file
6767EOF
6768
6769if test ! -d sub ; then
6770 mkdir sub
6771fi
6772echo dummy > sub/file
6773${MAKE-make} -f confMake VPATH=sub 2> config.log > /dev/null
6774RESULT=$?
6775rm -f sub/file check final_file confMake
6776rmdir sub
6777if test "$RESULT" = 0; then
6778 echo "$ac_t""yes" 1>&6
6779else
6780 echo "$ac_t""no" 1>&6
6781 { echo "configure: error: You need a make-utility that is able to use the variable
6782VPATH correctly.
6783If your version of make does not support VPATH correctly" 1>&2; exit 1; }
6784fi
6785
6786for ac_prog in 'bison -y' byacc
6787do
6788# Extract the first word of "$ac_prog", so it can be a program name with args.
6789set dummy $ac_prog; ac_word=$2
6790echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
eb4efbdc 6791echo "configure:6792: checking for $ac_word" >&5
10f2d63a
VZ
6792if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
6793 echo $ac_n "(cached) $ac_c" 1>&6
6794else
6795 if test -n "$YACC"; then
6796 ac_cv_prog_YACC="$YACC" # Let the user override the test.
6797else
6798 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6799 ac_dummy="$PATH"
6800 for ac_dir in $ac_dummy; do
6801 test -z "$ac_dir" && ac_dir=.
6802 if test -f $ac_dir/$ac_word; then
6803 ac_cv_prog_YACC="$ac_prog"
6804 break
6805 fi
6806 done
6807 IFS="$ac_save_ifs"
6808fi
6809fi
6810YACC="$ac_cv_prog_YACC"
6811if test -n "$YACC"; then
6812 echo "$ac_t""$YACC" 1>&6
6813else
6814 echo "$ac_t""no" 1>&6
6815fi
6816
6817test -n "$YACC" && break
6818done
6819test -n "$YACC" || YACC="yacc"
6820
6821
6822# Extract the first word of "flex", so it can be a program name with args.
6823set dummy flex; ac_word=$2
6824echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
eb4efbdc 6825echo "configure:6826: checking for $ac_word" >&5
10f2d63a
VZ
6826if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
6827 echo $ac_n "(cached) $ac_c" 1>&6
6828else
6829 if test -n "$LEX"; then
6830 ac_cv_prog_LEX="$LEX" # Let the user override the test.
6831else
6832 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6833 ac_dummy="$PATH"
6834 for ac_dir in $ac_dummy; do
6835 test -z "$ac_dir" && ac_dir=.
6836 if test -f $ac_dir/$ac_word; then
6837 ac_cv_prog_LEX="flex"
6838 break
6839 fi
6840 done
6841 IFS="$ac_save_ifs"
6842 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
6843fi
6844fi
6845LEX="$ac_cv_prog_LEX"
6846if test -n "$LEX"; then
6847 echo "$ac_t""$LEX" 1>&6
6848else
6849 echo "$ac_t""no" 1>&6
6850fi
6851
6852if test -z "$LEXLIB"
6853then
6854 case "$LEX" in
6855 flex*) ac_lib=fl ;;
6856 *) ac_lib=l ;;
6857 esac
6858 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
eb4efbdc 6859echo "configure:6860: checking for yywrap in -l$ac_lib" >&5
10f2d63a
VZ
6860ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
6861if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6862 echo $ac_n "(cached) $ac_c" 1>&6
6863else
6864 ac_save_LIBS="$LIBS"
6865LIBS="-l$ac_lib $LIBS"
6866cat > conftest.$ac_ext <<EOF
eb4efbdc 6867#line 6868 "configure"
10f2d63a
VZ
6868#include "confdefs.h"
6869/* Override any gcc2 internal prototype to avoid an error. */
6870/* We use char because int might match the return type of a gcc2
6871 builtin and then its argument prototype would still apply. */
6872char yywrap();
6873
6874int main() {
6875yywrap()
6876; return 0; }
6877EOF
eb4efbdc 6878if { (eval echo configure:6879: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
6879 rm -rf conftest*
6880 eval "ac_cv_lib_$ac_lib_var=yes"
6881else
6882 echo "configure: failed program was:" >&5
6883 cat conftest.$ac_ext >&5
6884 rm -rf conftest*
6885 eval "ac_cv_lib_$ac_lib_var=no"
6886fi
6887rm -f conftest*
6888LIBS="$ac_save_LIBS"
6889
6890fi
6891if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6892 echo "$ac_t""yes" 1>&6
6893 LEXLIB="-l$ac_lib"
6894else
6895 echo "$ac_t""no" 1>&6
6896fi
6897
6898fi
6899
6900
6901echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
eb4efbdc 6902echo "configure:6903: checking whether ln -s works" >&5
10f2d63a
VZ
6903if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
6904 echo $ac_n "(cached) $ac_c" 1>&6
6905else
6906 rm -f conftestdata
6907if ln -s X conftestdata 2>/dev/null
6908then
6909 rm -f conftestdata
6910 ac_cv_prog_LN_S="ln -s"
6911else
6912 ac_cv_prog_LN_S=ln
6913fi
6914fi
6915LN_S="$ac_cv_prog_LN_S"
6916if test "$ac_cv_prog_LN_S" = "ln -s"; then
6917 echo "$ac_t""yes" 1>&6
6918else
6919 echo "$ac_t""no" 1>&6
6920fi
6921
6922
6923
6924SEARCH_INCLUDE="\
6925 /usr/local/include \
6926 \
6927 /usr/Motif-1.2/include \
6928 /usr/Motif-2.1/include \
6929 \
6930 /usr/include/Motif1.2 \
6931 /opt/xpm/include/X11 \
6932 /opt/GBxpm/include/ \
6933 /opt/GBxpm/X11/include/ \
6934 \
6935 /usr/Motif1.2/include \
6936 /usr/dt/include \
afc31813
VZ
6937 /usr/openwin/include \
6938 \
10f2d63a
VZ
6939 /usr/include/Xm \
6940 \
6941 /usr/X11R6/include \
afc31813 6942 /usr/X11R6.4/include \
10f2d63a
VZ
6943 /usr/X11R5/include \
6944 /usr/X11R4/include \
6945 \
10f2d63a
VZ
6946 /usr/include/X11R6 \
6947 /usr/include/X11R5 \
6948 /usr/include/X11R4 \
6949 \
6950 /usr/local/X11R6/include \
6951 /usr/local/X11R5/include \
6952 /usr/local/X11R4/include \
6953 \
6954 /usr/local/include/X11R6 \
6955 /usr/local/include/X11R5 \
6956 /usr/local/include/X11R4 \
6957 \
6958 /usr/X11/include \
6959 /usr/include/X11 \
6960 /usr/local/X11/include \
6961 /usr/local/include/X11 \
6962 \
6963 /usr/X386/include \
6964 /usr/x386/include \
6965 /usr/XFree86/include/X11 \
6966 \
cf27ef00 6967 X:/XFree86/include \
ec14dd32
VZ
6968 X:/XFree86/include/X11 \
6969 \
10f2d63a
VZ
6970 /usr/include/gtk \
6971 /usr/local/include/gtk \
6972 /usr/include/glib \
6973 /usr/local/include/glib \
6974 \
6975 /usr/include/qt \
6976 /usr/local/include/qt \
6977 \
6978 /usr/include/windows \
6979 /usr/include/wine \
6980 /usr/local/include/wine \
6981 \
6982 /usr/unsupported/include \
6983 /usr/athena/include \
6984 /usr/local/x11r5/include \
6985 /usr/lpp/Xamples/include \
6986 \
10f2d63a 6987 /usr/openwin/share/include \
928b5c08
VZ
6988 \
6989 /usr/include"
10f2d63a
VZ
6990
6991SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s/include/lib/g` "
6992
6993
6994cat > confcache <<\EOF
6995# This file is a shell script that caches the results of configure
6996# tests run on this system so they can be shared between configure
6997# scripts and configure runs. It is not useful on other systems.
6998# If it contains results you don't want to keep, you may remove or edit it.
6999#
7000# By default, configure uses ./config.cache as the cache file,
7001# creating it if it does not exist already. You can give configure
7002# the --cache-file=FILE option to use a different cache file; that is
7003# what configure does when it calls configure scripts in
7004# subdirectories, so they share the cache.
7005# Giving --cache-file=/dev/null disables caching, for debugging configure.
7006# config.status only pays attention to the cache file if you give it the
7007# --recheck option to rerun configure.
7008#
7009EOF
7010# The following way of writing the cache mishandles newlines in values,
7011# but we know of no workaround that is simple, portable, and efficient.
7012# So, don't put newlines in cache variables' values.
7013# Ultrix sh set writes to stderr and can't be redirected directly,
7014# and sets the high bit in the cache file unless we assign to the vars.
7015(set) 2>&1 |
7016 case `(ac_space=' '; set | grep ac_space) 2>&1` in
7017 *ac_space=\ *)
7018 # `set' does not quote correctly, so add quotes (double-quote substitution
7019 # turns \\\\ into \\, and sed turns \\ into \).
7020 sed -n \
7021 -e "s/'/'\\\\''/g" \
7022 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
7023 ;;
7024 *)
7025 # `set' quotes correctly as required by POSIX, so do not add quotes.
7026 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
7027 ;;
7028 esac >> confcache
7029if cmp -s $cache_file confcache; then
7030 :
7031else
7032 if test -w $cache_file; then
7033 echo "updating cache $cache_file"
7034 cat confcache > $cache_file
7035 else
7036 echo "not updating unwritable cache $cache_file"
7037 fi
7038fi
7039rm -f confcache
7040
7041
7042
dad6c0ea
VZ
7043AFMINSTALL=
7044
10f2d63a
VZ
7045if test "$wxUSE_GUI" = "yes"; then
7046
dad6c0ea
VZ
7047USE_GUI=1
7048
10f2d63a
VZ
7049TOOLKIT=
7050TOOLKIT_INCLUDE=
7051
7052GUIOBJS=
7053COMMONOBJS=
7054GENERICOBJS=
7055
7056GUI_TK_LIBRARY=
7057GUI_TK_LINK=
7058
7059WXGTK12=
13111b2a 7060WXGTK13=
10f2d63a
VZ
7061
7062WXWINE=
7063
10f2d63a
VZ
7064if test "$wxUSE_CYGWIN" = 1 || test "$wxUSE_MINGW" = 1 ; then
7065 if test "$cross_compiling" = "yes" ; then
e59890c3 7066 echo "configure: warning: skipping windows.h check for cross-compilation" 1>&2
10f2d63a
VZ
7067 else
7068 echo $ac_n "checking for Windows headers""... $ac_c" 1>&6
eb4efbdc 7069echo "configure:7070: checking for Windows headers" >&5
10f2d63a
VZ
7070
7071ac_find_includes=
7072for ac_dir in $SEARCH_INCLUDE;
7073 do
7074 if test -f "$ac_dir/windows.h"; then
7075 ac_find_includes=$ac_dir
7076 break
7077 fi
7078 done
7079
7080 if test "$ac_find_includes" != "" ; then
7081 echo "$ac_t""found $ac_find_includes" 1>&6
7082 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE -I$ac_find_includes"
7083 else
7084 echo "$ac_t""no" 1>&6
7085 { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; }
7086 fi
7087 fi
7088
7089 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS msw"
7090 LIBS="$LIBS -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lctl3d32 -lcrtdll -ladvapi32 -lwsock32"
7091
32832908
VZ
7092 if test "$wxUSE_ODBC" = "yes" ; then
7093 LIBS="$LIBS -lodbc32 -lole32 -loleaut32"
7094 fi
7095
10f2d63a
VZ
7096 if test "$wxUSE_MINGW" = 1; then
7097 LDFLAGS="$LDFLAGS -mwindows"
7098 fi
7099
7100 TOOLKIT=MSW
7101
7102 GUIOBJS="\$(MSW_GUIOBJS)"
7103 GUIHEADERS="\$(MSW_HEADERS)"
7104 COMMONOBJS="\$(MSW_COMMONOBJS)"
7105 GENERICOBJS="\$(MSW_GENERICOBJS)"
7106 UNIXOBJS=
7107 GUIDIST=MSW_DIST
32832908
VZ
7108
7109 RCINCSWITCH="--include-dir"
7110 RCDEFSWITCH="--define"
7111 RCPREPROCESSOR="--preprocessor \"\$(CC) -c -E -xc-header -DRC_INVOKED\""
7112 RCINPUTSWITCH="-i"
7113 RCOUTPUTSWITCH="-o"
7114 RESFLAGS="$RCPREPROCESSOR $RCINCSWITCH \$(top_srcdir)/include $RCINCSWITCH \$(top_srcdir)/\$(program_dir) $RCDEFSWITCH __WIN32__ $RCDEFSWITCH __WIN95__ $RCDEFSWITCH __GNUWIN32__"
7115
7116 RESPROGRAM="\$(RES_PROGRAM)"
7117
10f2d63a
VZ
7118fi
7119
7120if test "$wxUSE_GTK" = 1; then
7121
7122 if test x$gtk_config_exec_prefix != x ; then
7123 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
7124 if test x${GTK_CONFIG+set} != xset ; then
7125 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
7126 fi
7127 fi
7128 if test x$gtk_config_prefix != x ; then
7129 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
7130 if test x${GTK_CONFIG+set} != xset ; then
7131 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
7132 fi
7133 fi
7134
7135 # Extract the first word of "gtk-config", so it can be a program name with args.
7136set dummy gtk-config; ac_word=$2
7137echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
eb4efbdc 7138echo "configure:7139: checking for $ac_word" >&5
10f2d63a
VZ
7139if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
7140 echo $ac_n "(cached) $ac_c" 1>&6
7141else
7142 case "$GTK_CONFIG" in
7143 /*)
7144 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
7145 ;;
7146 ?:/*)
7147 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
7148 ;;
7149 *)
7150 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7151 ac_dummy="$PATH"
7152 for ac_dir in $ac_dummy; do
7153 test -z "$ac_dir" && ac_dir=.
7154 if test -f $ac_dir/$ac_word; then
7155 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
7156 break
7157 fi
7158 done
7159 IFS="$ac_save_ifs"
7160 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
7161 ;;
7162esac
7163fi
7164GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
7165if test -n "$GTK_CONFIG"; then
7166 echo "$ac_t""$GTK_CONFIG" 1>&6
7167else
7168 echo "$ac_t""no" 1>&6
7169fi
7170
04165bec 7171 min_gtk_version=1.2.3
10f2d63a 7172 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
eb4efbdc 7173echo "configure:7174: checking for GTK - version >= $min_gtk_version" >&5
10f2d63a
VZ
7174 no_gtk=""
7175 if test "$GTK_CONFIG" != "no" ; then
7176 GTK_CFLAGS=`$GTK_CONFIG --cflags`
2224580a 7177 GTK_LIBS=`$GTK_CONFIG --libs gthread`
10f2d63a
VZ
7178 ac_save_CFLAGS="$CFLAGS"
7179 ac_save_LIBS="$LIBS"
7180 CFLAGS="$CFLAGS $GTK_CFLAGS"
7181 LIBS="$LIBS $GTK_LIBS"
7182 if test "$cross_compiling" = yes; then
7183 echo $ac_n "cross compiling; assumed OK... $ac_c"
7184else
7185 cat > conftest.$ac_ext <<EOF
eb4efbdc 7186#line 7187 "configure"
10f2d63a
VZ
7187#include "confdefs.h"
7188
7189#include <gtk/gtk.h>
f49f2b0c 7190#include <gtk/gtkfeatures.h>
10f2d63a 7191#include <stdio.h>
32832908 7192#include <stdlib.h>
10f2d63a
VZ
7193
7194int
7195main ()
7196{
7197 int major, minor, micro;
7198
7199 if (sscanf("$min_gtk_version", "%d.%d.%d", &major, &minor, &micro) != 3) {
7200 printf("%s, bad version string\n", "$min_gtk_version");
7201 exit(1);
7202 }
7203
f49f2b0c
RR
7204 if ((GTK_MAJOR_VERSION != gtk_major_version) ||
7205 (GTK_MINOR_VERSION != gtk_minor_version) ||
7206 (GTK_MICRO_VERSION != gtk_micro_version)) {
7207 printf("Headers vs. library version mismatch!\n");
7208 exit(1);
7209 }
7210
10f2d63a
VZ
7211 if (gtk_minor_version == 1) return FALSE;
7212
7213 return !((gtk_major_version > major) ||
7214 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
7215 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)));
7216}
7217
7218EOF
eb4efbdc 7219if { (eval echo configure:7220: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10f2d63a
VZ
7220then
7221 :
7222else
7223 echo "configure: failed program was:" >&5
7224 cat conftest.$ac_ext >&5
7225 rm -fr conftest*
7226 no_gtk=yes
7227fi
7228rm -fr conftest*
7229fi
7230
7231 CFLAGS="$ac_save_CFLAGS"
7232 LIBS="$ac_save_LIBS"
7233 else
7234 no_gtk=yes
7235 fi
7236 if test "x$no_gtk" = x ; then
7237 echo "$ac_t""yes" 1>&6
7238 WXGTK12=1
7239 else
7240 echo "$ac_t""no" 1>&6
7241 GTK_CFLAGS=""
7242 GTK_LIBS=""
7e99ad86 7243 :
10f2d63a
VZ
7244 fi
7245
7246
7247
7248
7e99ad86
VZ
7249 if test "$WXGTK12" != 1; then
7250 { echo "configure: error:
7251 Please check that gtk-config is in path, the directory
7252 where GTK+ libraries are installed (returned by
7253 'gtk-config --libs' command) is in LD_LIBRARY_PATH or
7254 equivalent variable and GTK+ is version 1.2.3 or above.
7255 " 1>&2; exit 1; }
7256 fi
7257
7258
10f2d63a 7259 TOOLKIT_INCLUDE="$GTK_CFLAGS"
2224580a
VZ
7260
7261
7262 GUI_TK_LIBRARY="$GTK_LIBS"
7263
10f2d63a
VZ
7264 TOOLKIT=GTK
7265
dad6c0ea
VZ
7266 AFMINSTALL=afminstall
7267
10f2d63a
VZ
7268 GUIOBJS="\$(GTK_GUIOBJS)"
7269 GUIHEADERS="\$(GTK_HEADERS)"
7270 COMMONOBJS="\$(GTK_COMMONOBJS)"
7271 GENERICOBJS="\$(GTK_GENERICOBJS)"
7272 GUIDEPS="\$(GTK_GUIDEPS)"
7273 COMMONDEPS="\$(GTK_COMMONDEPS)"
7274 GENERICDEPS="\$(GTK_GENERICDEPS)"
7275 UNIXOBJS="\$(UNIX_OBJS)"
d9d8273d 7276 UNIXDEPS="\$(UNIX_DEPS)"
10f2d63a 7277 GUIDIST=GTK_DIST
7ec2881a 7278
2224580a 7279 echo $ac_n "checking for gdk_im_open in -lgdk""... $ac_c" 1>&6
eb4efbdc 7280echo "configure:7281: checking for gdk_im_open in -lgdk" >&5
7ec2881a
RR
7281ac_lib_var=`echo gdk'_'gdk_im_open | sed 'y%./+-%__p_%'`
7282if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7283 echo $ac_n "(cached) $ac_c" 1>&6
7284else
7285 ac_save_LIBS="$LIBS"
7286LIBS="-lgdk $LIBS"
7287cat > conftest.$ac_ext <<EOF
eb4efbdc 7288#line 7289 "configure"
7ec2881a
RR
7289#include "confdefs.h"
7290/* Override any gcc2 internal prototype to avoid an error. */
7291/* We use char because int might match the return type of a gcc2
7292 builtin and then its argument prototype would still apply. */
7293char gdk_im_open();
7294
7295int main() {
7296gdk_im_open()
7297; return 0; }
7298EOF
eb4efbdc 7299if { (eval echo configure:7300: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7ec2881a
RR
7300 rm -rf conftest*
7301 eval "ac_cv_lib_$ac_lib_var=yes"
7302else
7303 echo "configure: failed program was:" >&5
7304 cat conftest.$ac_ext >&5
7305 rm -rf conftest*
7306 eval "ac_cv_lib_$ac_lib_var=no"
7307fi
7308rm -f conftest*
7309LIBS="$ac_save_LIBS"
7310
7311fi
7312if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7313 echo "$ac_t""yes" 1>&6
7314 cat >> confdefs.h <<\EOF
7315#define HAVE_XIM 1
7316EOF
7317
7318else
7319 echo "$ac_t""no" 1>&6
7320fi
7321
10f2d63a
VZ
7322fi
7323
7324if test "$wxUSE_WINE" = 1; then
7325 echo $ac_n "checking for WINE includes""... $ac_c" 1>&6
eb4efbdc 7326echo "configure:7327: checking for WINE includes" >&5
10f2d63a
VZ
7327
7328ac_find_includes=
7329for ac_dir in $SEARCH_INCLUDE;
7330 do
7331 if test -f "$ac_dir/windows.h"; then
7332 ac_find_includes=$ac_dir
7333 break
7334 fi
7335 done
7336
7337 if test "$ac_find_includes" != "" ; then
7338 echo "$ac_t""found $ac_find_includes" 1>&6
7339 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE -I$ac_find_includes"
7340 else
7341 echo "$ac_t""no" 1>&6
7342 { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; }
7343 fi
7344
7345 XPM_LINK=""
7346 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
eb4efbdc 7347echo "configure:7348: checking for Xpm library" >&5
10f2d63a
VZ
7348
7349ac_find_libraries=
7350for ac_dir in $SEARCH_LIB;
7351 do
7352 for ac_extension in a so sl; do
7353 if test -f "$ac_dir/libXpm.$ac_extension"; then
7354 ac_find_libraries=$ac_dir
7355 break 2
7356 fi
7357 done
7358 done
7359
7360 if test "$ac_find_libraries" != "" ; then
7361 GUI_TK_LIBRARY="-L$ac_find_libraries"
7362 XPM_LINK="-lXpm"
7363 cat >> confdefs.h <<\EOF
7364#define wxHAVE_LIB_XPM 1
7365EOF
7366
7367 echo "$ac_t""found at $ac_find_libraries" 1>&6
7368 else
7369 echo "$ac_t""no" 1>&6
7370 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
7371 fi
7372
7373 MESA_LINK=""
7374 echo $ac_n "checking for Mesa library""... $ac_c" 1>&6
eb4efbdc 7375echo "configure:7376: checking for Mesa library" >&5
10f2d63a
VZ
7376
7377ac_find_libraries=
7378for ac_dir in $SEARCH_LIB;
7379 do
7380 for ac_extension in a so sl; do
7381 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
7382 ac_find_libraries=$ac_dir
7383 break 2
7384 fi
7385 done
7386 done
7387
7388 if test "$ac_find_libraries" != "" ; then
7389 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -L$ac_find_libraries"
7390 MESA_LINK="-lMesaGL"
7391 echo "$ac_t""found at $ac_find_libraries" 1>&6
7392 else
7393 { echo "configure: error: no" 1>&2; exit 1; }
7394 fi
7395
8916026b 7396 GUI_TK_LINK="-lwine $MESA_LINK $XPM_LINK -lXxf86dga -lXxf86vm -lSM -lICE -lXext -lXmu -lX11 -lncurses"
10f2d63a
VZ
7397 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $GUI_TK_LINK"
7398 WXWINE=1
7399 TOOLKIT=MSW
7400
7401 GUIHEADERS="\$(MSW_HEADERS)"
7402 GUIOBJS="\$(MSW_GUIOBJS)"
7403 COMMONOBJS="\$(MSW_COMMONOBJS)"
7404 GENERICOBJS="\$(MSW_GENERICOBJS)"
7405 GUIDEPS="\$(MSW_GUIDEPS)"
7406 COMMONDEPS="\$(MSW_COMMONDEPS)"
7407 GENERICDEPS="\$(MSW_GENERICDEPS)"
7408 UNIXOBJS="\$(UNIX_OBJS)"
d9d8273d 7409 UNIXDEPS="\$(UNIX_DEPS)"
10f2d63a
VZ
7410 GUIDIST=MSW_DIST
7411fi
7412
7413if test "$wxUSE_MOTIF" = 1; then
ab9b9eab
VZ
7414 # If we find X, set shell vars x_includes and x_libraries to the
7415# paths, otherwise set no_x=yes.
7416# Uses ac_ vars as temps to allow command line to override cache and checks.
7417# --without-x overrides everything else, but does not touch the cache.
7418echo $ac_n "checking for X""... $ac_c" 1>&6
eb4efbdc 7419echo "configure:7420: checking for X" >&5
ab9b9eab
VZ
7420
7421# Check whether --with-x or --without-x was given.
7422if test "${with_x+set}" = set; then
7423 withval="$with_x"
7424 :
7425fi
ba337fe7 7426
ab9b9eab
VZ
7427# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7428if test "x$with_x" = xno; then
7429 # The user explicitly disabled X.
7430 have_x=disabled
7431else
7432 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
7433 # Both variables are already set.
7434 have_x=yes
7435 else
7436if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
7437 echo $ac_n "(cached) $ac_c" 1>&6
7438else
7439 # One or both of the vars are not set, and there is no cached value.
7440ac_x_includes=NO ac_x_libraries=NO
7441rm -fr conftestdir
7442if mkdir conftestdir; then
7443 cd conftestdir
7444 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
7445 cat > Imakefile <<'EOF'
7446acfindx:
7447 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
7448EOF
7449 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
7450 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7451 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
7452 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
10f2d63a 7453 for ac_extension in a so sl; do
ab9b9eab
VZ
7454 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
7455 test -f $ac_im_libdir/libX11.$ac_extension; then
7456 ac_im_usrlibdir=$ac_im_libdir; break
10f2d63a
VZ
7457 fi
7458 done
ab9b9eab
VZ
7459 # Screen out bogus values from the imake configuration. They are
7460 # bogus both because they are the default anyway, and because
7461 # using them would break gcc on systems where it needs fixed includes.
7462 case "$ac_im_incroot" in
7463 /usr/include) ;;
7464 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
7465 esac
7466 case "$ac_im_usrlibdir" in
7467 /usr/lib | /lib) ;;
7468 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
7469 esac
ba337fe7 7470 fi
ab9b9eab
VZ
7471 cd ..
7472 rm -fr conftestdir
7473fi
10f2d63a 7474
ab9b9eab
VZ
7475if test "$ac_x_includes" = NO; then
7476 # Guess where to find include files, by looking for this one X11 .h file.
7477 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
ba337fe7 7478
ab9b9eab
VZ
7479 # First, try using that file with no special directory specified.
7480cat > conftest.$ac_ext <<EOF
eb4efbdc 7481#line 7482 "configure"
ab9b9eab
VZ
7482#include "confdefs.h"
7483#include <$x_direct_test_include>
7484EOF
7485ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
eb4efbdc 7486{ (eval echo configure:7487: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ab9b9eab
VZ
7487ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7488if test -z "$ac_err"; then
7489 rm -rf conftest*
7490 # We can compile using X headers with no special include directory.
7491ac_x_includes=
7492else
7493 echo "$ac_err" >&5
7494 echo "configure: failed program was:" >&5
7495 cat conftest.$ac_ext >&5
7496 rm -rf conftest*
7497 # Look for the header file in a standard set of common directories.
7498# Check X11 before X11Rn because it is often a symlink to the current release.
7499 for ac_dir in \
7500 /usr/X11/include \
7501 /usr/X11R6/include \
7502 /usr/X11R5/include \
7503 /usr/X11R4/include \
7504 \
7505 /usr/include/X11 \
7506 /usr/include/X11R6 \
7507 /usr/include/X11R5 \
7508 /usr/include/X11R4 \
7509 \
7510 /usr/local/X11/include \
7511 /usr/local/X11R6/include \
7512 /usr/local/X11R5/include \
7513 /usr/local/X11R4/include \
7514 \
7515 /usr/local/include/X11 \
7516 /usr/local/include/X11R6 \
7517 /usr/local/include/X11R5 \
7518 /usr/local/include/X11R4 \
7519 \
7520 /usr/X386/include \
7521 /usr/x386/include \
7522 /usr/XFree86/include/X11 \
7523 \
7524 /usr/include \
7525 /usr/local/include \
7526 /usr/unsupported/include \
7527 /usr/athena/include \
7528 /usr/local/x11r5/include \
7529 /usr/lpp/Xamples/include \
7530 \
7531 /usr/openwin/include \
7532 /usr/openwin/share/include \
7533 ; \
10f2d63a 7534 do
ab9b9eab
VZ
7535 if test -r "$ac_dir/$x_direct_test_include"; then
7536 ac_x_includes=$ac_dir
10f2d63a
VZ
7537 break
7538 fi
7539 done
ab9b9eab
VZ
7540fi
7541rm -f conftest*
7542fi # $ac_x_includes = NO
10f2d63a 7543
ab9b9eab
VZ
7544if test "$ac_x_libraries" = NO; then
7545 # Check for the libraries.
10f2d63a 7546
ab9b9eab
VZ
7547 test -z "$x_direct_test_library" && x_direct_test_library=Xt
7548 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
10f2d63a 7549
ab9b9eab
VZ
7550 # See if we find them without any special options.
7551 # Don't add to $LIBS permanently.
7552 ac_save_LIBS="$LIBS"
7553 LIBS="-l$x_direct_test_library $LIBS"
7554cat > conftest.$ac_ext <<EOF
eb4efbdc 7555#line 7556 "configure"
ab9b9eab 7556#include "confdefs.h"
10f2d63a 7557
ab9b9eab
VZ
7558int main() {
7559${x_direct_test_function}()
7560; return 0; }
7561EOF
eb4efbdc 7562if { (eval echo configure:7563: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
7563 rm -rf conftest*
7564 LIBS="$ac_save_LIBS"
7565# We can link X programs with no special library path.
7566ac_x_libraries=
7567else
7568 echo "configure: failed program was:" >&5
7569 cat conftest.$ac_ext >&5
7570 rm -rf conftest*
7571 LIBS="$ac_save_LIBS"
7572# First see if replacing the include by lib works.
7573# Check X11 before X11Rn because it is often a symlink to the current release.
7574for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
7575 /usr/X11/lib \
7576 /usr/X11R6/lib \
7577 /usr/X11R5/lib \
7578 /usr/X11R4/lib \
7579 \
7580 /usr/lib/X11 \
7581 /usr/lib/X11R6 \
7582 /usr/lib/X11R5 \
7583 /usr/lib/X11R4 \
7584 \
7585 /usr/local/X11/lib \
7586 /usr/local/X11R6/lib \
7587 /usr/local/X11R5/lib \
7588 /usr/local/X11R4/lib \
7589 \
7590 /usr/local/lib/X11 \
7591 /usr/local/lib/X11R6 \
7592 /usr/local/lib/X11R5 \
7593 /usr/local/lib/X11R4 \
7594 \
7595 /usr/X386/lib \
7596 /usr/x386/lib \
7597 /usr/XFree86/lib/X11 \
7598 \
7599 /usr/lib \
7600 /usr/local/lib \
7601 /usr/unsupported/lib \
7602 /usr/athena/lib \
7603 /usr/local/x11r5/lib \
7604 /usr/lpp/Xamples/lib \
7605 /lib/usr/lib/X11 \
7606 \
7607 /usr/openwin/lib \
7608 /usr/openwin/share/lib \
7609 ; \
7610do
7611 for ac_extension in a so sl; do
7612 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
7613 ac_x_libraries=$ac_dir
7614 break 2
10f2d63a 7615 fi
10f2d63a 7616 done
ab9b9eab
VZ
7617done
7618fi
7619rm -f conftest*
7620fi # $ac_x_libraries = NO
10f2d63a 7621
ab9b9eab
VZ
7622if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
7623 # Didn't find X anywhere. Cache the known absence of X.
7624 ac_cv_have_x="have_x=no"
7625else
7626 # Record where we found X for the cache.
7627 ac_cv_have_x="have_x=yes \
7628 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
7629fi
7630fi
10f2d63a 7631 fi
ab9b9eab
VZ
7632 eval "$ac_cv_have_x"
7633fi # $with_x != no
10f2d63a 7634
ab9b9eab
VZ
7635if test "$have_x" != yes; then
7636 echo "$ac_t""$have_x" 1>&6
7637 no_x=yes
7638else
7639 # If each of the values was on the command line, it overrides each guess.
7640 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
7641 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
7642 # Update the cache value to reflect the command line values.
7643 ac_cv_have_x="have_x=yes \
7644 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
7645 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
7646fi
10f2d63a 7647
ab9b9eab
VZ
7648if test "$no_x" = yes; then
7649 # Not all programs may use this symbol, but it does not hurt to define it.
7650 cat >> confdefs.h <<\EOF
7651#define X_DISPLAY_MISSING 1
7652EOF
10f2d63a 7653
ab9b9eab
VZ
7654 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
7655else
7656 if test -n "$x_includes"; then
7657 X_CFLAGS="$X_CFLAGS -I$x_includes"
10f2d63a
VZ
7658 fi
7659
ab9b9eab
VZ
7660 # It would also be nice to do this for all -L options, not just this one.
7661 if test -n "$x_libraries"; then
7662 X_LIBS="$X_LIBS -L$x_libraries"
7663 # For Solaris; some versions of Sun CC require a space after -R and
7664 # others require no space. Words are not sufficient . . . .
7665 case "`(uname -sr) 2>/dev/null`" in
7666 "SunOS 5"*)
7667 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
eb4efbdc 7668echo "configure:7669: checking whether -R must be followed by a space" >&5
ab9b9eab
VZ
7669 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
7670 cat > conftest.$ac_ext <<EOF
eb4efbdc 7671#line 7672 "configure"
ab9b9eab 7672#include "confdefs.h"
10f2d63a 7673
ab9b9eab 7674int main() {
788deba1 7675
ab9b9eab
VZ
7676; return 0; }
7677EOF
eb4efbdc 7678if { (eval echo configure:7679: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
7679 rm -rf conftest*
7680 ac_R_nospace=yes
7681else
7682 echo "configure: failed program was:" >&5
7683 cat conftest.$ac_ext >&5
7684 rm -rf conftest*
7685 ac_R_nospace=no
7686fi
7687rm -f conftest*
7688 if test $ac_R_nospace = yes; then
7689 echo "$ac_t""no" 1>&6
7690 X_LIBS="$X_LIBS -R$x_libraries"
7691 else
7692 LIBS="$ac_xsave_LIBS -R $x_libraries"
7693 cat > conftest.$ac_ext <<EOF
eb4efbdc 7694#line 7695 "configure"
ab9b9eab 7695#include "confdefs.h"
788deba1 7696
ab9b9eab
VZ
7697int main() {
7698
7699; return 0; }
7700EOF
eb4efbdc 7701if { (eval echo configure:7702: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
7702 rm -rf conftest*
7703 ac_R_space=yes
7704else
7705 echo "configure: failed program was:" >&5
7706 cat conftest.$ac_ext >&5
7707 rm -rf conftest*
7708 ac_R_space=no
7709fi
7710rm -f conftest*
7711 if test $ac_R_space = yes; then
7712 echo "$ac_t""yes" 1>&6
7713 X_LIBS="$X_LIBS -R $x_libraries"
7714 else
7715 echo "$ac_t""neither works" 1>&6
7716 fi
7717 fi
7718 LIBS="$ac_xsave_LIBS"
7719 esac
7720 fi
7721
7722 # Check for system-dependent libraries X programs must link with.
7723 # Do this before checking for the system-independent R6 libraries
7724 # (-lICE), since we may need -lsocket or whatever for X linking.
7725
7726 if test "$ISC" = yes; then
7727 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
7728 else
7729 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
7730 # libraries were built with DECnet support. And karl@cs.umb.edu says
7731 # the Alpha needs dnet_stub (dnet does not exist).
7732 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
eb4efbdc 7733echo "configure:7734: checking for dnet_ntoa in -ldnet" >&5
ab9b9eab
VZ
7734ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
7735if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7736 echo $ac_n "(cached) $ac_c" 1>&6
7737else
7738 ac_save_LIBS="$LIBS"
7739LIBS="-ldnet $LIBS"
7740cat > conftest.$ac_ext <<EOF
eb4efbdc 7741#line 7742 "configure"
ab9b9eab
VZ
7742#include "confdefs.h"
7743/* Override any gcc2 internal prototype to avoid an error. */
7744/* We use char because int might match the return type of a gcc2
7745 builtin and then its argument prototype would still apply. */
7746char dnet_ntoa();
7747
7748int main() {
7749dnet_ntoa()
7750; return 0; }
7751EOF
eb4efbdc 7752if { (eval echo configure:7753: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
7753 rm -rf conftest*
7754 eval "ac_cv_lib_$ac_lib_var=yes"
7755else
7756 echo "configure: failed program was:" >&5
7757 cat conftest.$ac_ext >&5
7758 rm -rf conftest*
7759 eval "ac_cv_lib_$ac_lib_var=no"
7760fi
7761rm -f conftest*
7762LIBS="$ac_save_LIBS"
7763
7764fi
7765if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7766 echo "$ac_t""yes" 1>&6
7767 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
7768else
7769 echo "$ac_t""no" 1>&6
7770fi
7771
7772 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
7773 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
eb4efbdc 7774echo "configure:7775: checking for dnet_ntoa in -ldnet_stub" >&5
ab9b9eab
VZ
7775ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
7776if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7777 echo $ac_n "(cached) $ac_c" 1>&6
7778else
7779 ac_save_LIBS="$LIBS"
7780LIBS="-ldnet_stub $LIBS"
7781cat > conftest.$ac_ext <<EOF
eb4efbdc 7782#line 7783 "configure"
ab9b9eab
VZ
7783#include "confdefs.h"
7784/* Override any gcc2 internal prototype to avoid an error. */
7785/* We use char because int might match the return type of a gcc2
7786 builtin and then its argument prototype would still apply. */
7787char dnet_ntoa();
7788
7789int main() {
7790dnet_ntoa()
7791; return 0; }
7792EOF
eb4efbdc 7793if { (eval echo configure:7794: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
7794 rm -rf conftest*
7795 eval "ac_cv_lib_$ac_lib_var=yes"
7796else
7797 echo "configure: failed program was:" >&5
7798 cat conftest.$ac_ext >&5
7799 rm -rf conftest*
7800 eval "ac_cv_lib_$ac_lib_var=no"
7801fi
7802rm -f conftest*
7803LIBS="$ac_save_LIBS"
7804
7805fi
7806if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7807 echo "$ac_t""yes" 1>&6
7808 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
7809else
7810 echo "$ac_t""no" 1>&6
7811fi
7812
7813 fi
7814
7815 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
7816 # to get the SysV transport functions.
7817 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
7818 # needs -lnsl.
7819 # The nsl library prevents programs from opening the X display
7820 # on Irix 5.2, according to dickey@clark.net.
7821 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
eb4efbdc 7822echo "configure:7823: checking for gethostbyname" >&5
ab9b9eab
VZ
7823if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
7824 echo $ac_n "(cached) $ac_c" 1>&6
7825else
7826 cat > conftest.$ac_ext <<EOF
eb4efbdc 7827#line 7828 "configure"
ab9b9eab
VZ
7828#include "confdefs.h"
7829/* System header to define __stub macros and hopefully few prototypes,
7830 which can conflict with char gethostbyname(); below. */
7831#include <assert.h>
7832/* Override any gcc2 internal prototype to avoid an error. */
7833/* We use char because int might match the return type of a gcc2
7834 builtin and then its argument prototype would still apply. */
7835char gethostbyname();
7836
7837int main() {
7838
7839/* The GNU C library defines this for functions which it implements
7840 to always fail with ENOSYS. Some functions are actually named
7841 something starting with __ and the normal name is an alias. */
7842#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
7843choke me
7844#else
e8482f24 7845gethostbyname();
ab9b9eab
VZ
7846#endif
7847
7848; return 0; }
7849EOF
eb4efbdc 7850if { (eval echo configure:7851: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
7851 rm -rf conftest*
7852 eval "ac_cv_func_gethostbyname=yes"
7853else
7854 echo "configure: failed program was:" >&5
7855 cat conftest.$ac_ext >&5
7856 rm -rf conftest*
7857 eval "ac_cv_func_gethostbyname=no"
7858fi
7859rm -f conftest*
7860fi
7861
7862if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
7863 echo "$ac_t""yes" 1>&6
7864 :
7865else
7866 echo "$ac_t""no" 1>&6
7867fi
7868
7869 if test $ac_cv_func_gethostbyname = no; then
7870 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
eb4efbdc 7871echo "configure:7872: checking for gethostbyname in -lnsl" >&5
ab9b9eab
VZ
7872ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
7873if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7874 echo $ac_n "(cached) $ac_c" 1>&6
7875else
7876 ac_save_LIBS="$LIBS"
7877LIBS="-lnsl $LIBS"
7878cat > conftest.$ac_ext <<EOF
eb4efbdc 7879#line 7880 "configure"
ab9b9eab
VZ
7880#include "confdefs.h"
7881/* Override any gcc2 internal prototype to avoid an error. */
7882/* We use char because int might match the return type of a gcc2
7883 builtin and then its argument prototype would still apply. */
7884char gethostbyname();
7885
7886int main() {
7887gethostbyname()
7888; return 0; }
7889EOF
eb4efbdc 7890if { (eval echo configure:7891: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
7891 rm -rf conftest*
7892 eval "ac_cv_lib_$ac_lib_var=yes"
7893else
7894 echo "configure: failed program was:" >&5
7895 cat conftest.$ac_ext >&5
7896 rm -rf conftest*
7897 eval "ac_cv_lib_$ac_lib_var=no"
7898fi
7899rm -f conftest*
7900LIBS="$ac_save_LIBS"
7901
7902fi
7903if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7904 echo "$ac_t""yes" 1>&6
7905 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
7906else
7907 echo "$ac_t""no" 1>&6
7908fi
7909
7910 fi
7911
7912 # lieder@skyler.mavd.honeywell.com says without -lsocket,
7913 # socket/setsockopt and other routines are undefined under SCO ODT
7914 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
7915 # on later versions), says simon@lia.di.epfl.ch: it contains
7916 # gethostby* variants that don't use the nameserver (or something).
7917 # -lsocket must be given before -lnsl if both are needed.
7918 # We assume that if connect needs -lnsl, so does gethostbyname.
7919 echo $ac_n "checking for connect""... $ac_c" 1>&6
eb4efbdc 7920echo "configure:7921: checking for connect" >&5
ab9b9eab
VZ
7921if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
7922 echo $ac_n "(cached) $ac_c" 1>&6
7923else
7924 cat > conftest.$ac_ext <<EOF
eb4efbdc 7925#line 7926 "configure"
ab9b9eab
VZ
7926#include "confdefs.h"
7927/* System header to define __stub macros and hopefully few prototypes,
7928 which can conflict with char connect(); below. */
7929#include <assert.h>
7930/* Override any gcc2 internal prototype to avoid an error. */
7931/* We use char because int might match the return type of a gcc2
7932 builtin and then its argument prototype would still apply. */
7933char connect();
7934
7935int main() {
7936
7937/* The GNU C library defines this for functions which it implements
7938 to always fail with ENOSYS. Some functions are actually named
7939 something starting with __ and the normal name is an alias. */
7940#if defined (__stub_connect) || defined (__stub___connect)
7941choke me
7942#else
e8482f24 7943connect();
ab9b9eab
VZ
7944#endif
7945
7946; return 0; }
7947EOF
eb4efbdc 7948if { (eval echo configure:7949: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
7949 rm -rf conftest*
7950 eval "ac_cv_func_connect=yes"
7951else
7952 echo "configure: failed program was:" >&5
7953 cat conftest.$ac_ext >&5
7954 rm -rf conftest*
7955 eval "ac_cv_func_connect=no"
7956fi
7957rm -f conftest*
7958fi
7959
7960if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
7961 echo "$ac_t""yes" 1>&6
7962 :
7963else
7964 echo "$ac_t""no" 1>&6
7965fi
7966
7967 if test $ac_cv_func_connect = no; then
7968 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
eb4efbdc 7969echo "configure:7970: checking for connect in -lsocket" >&5
ab9b9eab
VZ
7970ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
7971if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7972 echo $ac_n "(cached) $ac_c" 1>&6
7973else
7974 ac_save_LIBS="$LIBS"
7975LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
7976cat > conftest.$ac_ext <<EOF
eb4efbdc 7977#line 7978 "configure"
ab9b9eab
VZ
7978#include "confdefs.h"
7979/* Override any gcc2 internal prototype to avoid an error. */
7980/* We use char because int might match the return type of a gcc2
7981 builtin and then its argument prototype would still apply. */
7982char connect();
7983
7984int main() {
7985connect()
7986; return 0; }
7987EOF
eb4efbdc 7988if { (eval echo configure:7989: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
7989 rm -rf conftest*
7990 eval "ac_cv_lib_$ac_lib_var=yes"
7991else
7992 echo "configure: failed program was:" >&5
7993 cat conftest.$ac_ext >&5
7994 rm -rf conftest*
7995 eval "ac_cv_lib_$ac_lib_var=no"
7996fi
7997rm -f conftest*
7998LIBS="$ac_save_LIBS"
7999
8000fi
8001if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8002 echo "$ac_t""yes" 1>&6
8003 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
8004else
8005 echo "$ac_t""no" 1>&6
8006fi
8007
8008 fi
8009
8010 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
8011 echo $ac_n "checking for remove""... $ac_c" 1>&6
eb4efbdc 8012echo "configure:8013: checking for remove" >&5
ab9b9eab
VZ
8013if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
8014 echo $ac_n "(cached) $ac_c" 1>&6
8015else
8016 cat > conftest.$ac_ext <<EOF
eb4efbdc 8017#line 8018 "configure"
ab9b9eab
VZ
8018#include "confdefs.h"
8019/* System header to define __stub macros and hopefully few prototypes,
8020 which can conflict with char remove(); below. */
8021#include <assert.h>
8022/* Override any gcc2 internal prototype to avoid an error. */
8023/* We use char because int might match the return type of a gcc2
8024 builtin and then its argument prototype would still apply. */
8025char remove();
8026
8027int main() {
8028
8029/* The GNU C library defines this for functions which it implements
8030 to always fail with ENOSYS. Some functions are actually named
8031 something starting with __ and the normal name is an alias. */
8032#if defined (__stub_remove) || defined (__stub___remove)
8033choke me
8034#else
e8482f24 8035remove();
ab9b9eab
VZ
8036#endif
8037
8038; return 0; }
8039EOF
eb4efbdc 8040if { (eval echo configure:8041: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
8041 rm -rf conftest*
8042 eval "ac_cv_func_remove=yes"
8043else
8044 echo "configure: failed program was:" >&5
8045 cat conftest.$ac_ext >&5
8046 rm -rf conftest*
8047 eval "ac_cv_func_remove=no"
8048fi
8049rm -f conftest*
8050fi
8051
8052if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
8053 echo "$ac_t""yes" 1>&6
8054 :
8055else
8056 echo "$ac_t""no" 1>&6
8057fi
8058
8059 if test $ac_cv_func_remove = no; then
8060 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
eb4efbdc 8061echo "configure:8062: checking for remove in -lposix" >&5
ab9b9eab
VZ
8062ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
8063if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8064 echo $ac_n "(cached) $ac_c" 1>&6
8065else
8066 ac_save_LIBS="$LIBS"
8067LIBS="-lposix $LIBS"
8068cat > conftest.$ac_ext <<EOF
eb4efbdc 8069#line 8070 "configure"
ab9b9eab
VZ
8070#include "confdefs.h"
8071/* Override any gcc2 internal prototype to avoid an error. */
8072/* We use char because int might match the return type of a gcc2
8073 builtin and then its argument prototype would still apply. */
8074char remove();
8075
8076int main() {
8077remove()
8078; return 0; }
8079EOF
eb4efbdc 8080if { (eval echo configure:8081: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
8081 rm -rf conftest*
8082 eval "ac_cv_lib_$ac_lib_var=yes"
8083else
8084 echo "configure: failed program was:" >&5
8085 cat conftest.$ac_ext >&5
8086 rm -rf conftest*
8087 eval "ac_cv_lib_$ac_lib_var=no"
8088fi
8089rm -f conftest*
8090LIBS="$ac_save_LIBS"
8091
8092fi
8093if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8094 echo "$ac_t""yes" 1>&6
8095 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
8096else
8097 echo "$ac_t""no" 1>&6
8098fi
8099
8100 fi
8101
8102 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
8103 echo $ac_n "checking for shmat""... $ac_c" 1>&6
eb4efbdc 8104echo "configure:8105: checking for shmat" >&5
ab9b9eab
VZ
8105if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
8106 echo $ac_n "(cached) $ac_c" 1>&6
8107else
8108 cat > conftest.$ac_ext <<EOF
eb4efbdc 8109#line 8110 "configure"
ab9b9eab
VZ
8110#include "confdefs.h"
8111/* System header to define __stub macros and hopefully few prototypes,
8112 which can conflict with char shmat(); below. */
8113#include <assert.h>
8114/* Override any gcc2 internal prototype to avoid an error. */
8115/* We use char because int might match the return type of a gcc2
8116 builtin and then its argument prototype would still apply. */
8117char shmat();
8118
8119int main() {
8120
8121/* The GNU C library defines this for functions which it implements
8122 to always fail with ENOSYS. Some functions are actually named
8123 something starting with __ and the normal name is an alias. */
8124#if defined (__stub_shmat) || defined (__stub___shmat)
8125choke me
8126#else
e8482f24 8127shmat();
ab9b9eab
VZ
8128#endif
8129
8130; return 0; }
8131EOF
eb4efbdc 8132if { (eval echo configure:8133: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
8133 rm -rf conftest*
8134 eval "ac_cv_func_shmat=yes"
8135else
8136 echo "configure: failed program was:" >&5
8137 cat conftest.$ac_ext >&5
8138 rm -rf conftest*
8139 eval "ac_cv_func_shmat=no"
8140fi
8141rm -f conftest*
8142fi
8143
8144if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
8145 echo "$ac_t""yes" 1>&6
8146 :
8147else
8148 echo "$ac_t""no" 1>&6
8149fi
8150
8151 if test $ac_cv_func_shmat = no; then
8152 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
eb4efbdc 8153echo "configure:8154: checking for shmat in -lipc" >&5
ab9b9eab
VZ
8154ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
8155if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8156 echo $ac_n "(cached) $ac_c" 1>&6
8157else
8158 ac_save_LIBS="$LIBS"
8159LIBS="-lipc $LIBS"
8160cat > conftest.$ac_ext <<EOF
eb4efbdc 8161#line 8162 "configure"
ab9b9eab
VZ
8162#include "confdefs.h"
8163/* Override any gcc2 internal prototype to avoid an error. */
8164/* We use char because int might match the return type of a gcc2
8165 builtin and then its argument prototype would still apply. */
8166char shmat();
8167
8168int main() {
8169shmat()
8170; return 0; }
8171EOF
eb4efbdc 8172if { (eval echo configure:8173: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
8173 rm -rf conftest*
8174 eval "ac_cv_lib_$ac_lib_var=yes"
8175else
8176 echo "configure: failed program was:" >&5
8177 cat conftest.$ac_ext >&5
8178 rm -rf conftest*
8179 eval "ac_cv_lib_$ac_lib_var=no"
8180fi
8181rm -f conftest*
8182LIBS="$ac_save_LIBS"
8183
8184fi
8185if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8186 echo "$ac_t""yes" 1>&6
8187 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
8188else
8189 echo "$ac_t""no" 1>&6
8190fi
8191
8192 fi
8193 fi
8194
8195 # Check for libraries that X11R6 Xt/Xaw programs need.
8196 ac_save_LDFLAGS="$LDFLAGS"
8197 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
8198 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
8199 # check for ICE first), but we must link in the order -lSM -lICE or
8200 # we get undefined symbols. So assume we have SM if we have ICE.
8201 # These have to be linked with before -lX11, unlike the other
8202 # libraries we check for below, so use a different variable.
8203 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
8204 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
eb4efbdc 8205echo "configure:8206: checking for IceConnectionNumber in -lICE" >&5
ab9b9eab
VZ
8206ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
8207if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8208 echo $ac_n "(cached) $ac_c" 1>&6
8209else
8210 ac_save_LIBS="$LIBS"
8211LIBS="-lICE $X_EXTRA_LIBS $LIBS"
8212cat > conftest.$ac_ext <<EOF
eb4efbdc 8213#line 8214 "configure"
ab9b9eab
VZ
8214#include "confdefs.h"
8215/* Override any gcc2 internal prototype to avoid an error. */
8216/* We use char because int might match the return type of a gcc2
8217 builtin and then its argument prototype would still apply. */
8218char IceConnectionNumber();
8219
8220int main() {
8221IceConnectionNumber()
8222; return 0; }
8223EOF
eb4efbdc 8224if { (eval echo configure:8225: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
8225 rm -rf conftest*
8226 eval "ac_cv_lib_$ac_lib_var=yes"
8227else
8228 echo "configure: failed program was:" >&5
8229 cat conftest.$ac_ext >&5
8230 rm -rf conftest*
8231 eval "ac_cv_lib_$ac_lib_var=no"
8232fi
8233rm -f conftest*
8234LIBS="$ac_save_LIBS"
8235
8236fi
8237if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8238 echo "$ac_t""yes" 1>&6
8239 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
8240else
8241 echo "$ac_t""no" 1>&6
8242fi
8243
8244 LDFLAGS="$ac_save_LDFLAGS"
8245
8246fi
8247
8248
8249 if test "$no_x" = "yes"; then
8250 { echo "configure: error: X11 not found" 1>&2; exit 1; }
8251 fi
8252
8253 GUI_TK_LIBRARY="$X_LIBS"
8254 TOOLKIT_INCLUDE="$X_CFLAGS"
8255
dad6c0ea
VZ
8256 AFMINSTALL=afminstall
8257
ab9b9eab 8258
cd6d6d5b
VZ
8259 COMPILED_X_PROGRAM=0
8260
ab9b9eab 8261 echo $ac_n "checking for Motif/Lesstif headers""... $ac_c" 1>&6
eb4efbdc 8262echo "configure:8263: checking for Motif/Lesstif headers" >&5
ab9b9eab
VZ
8263
8264ac_find_includes=
8265for ac_dir in $SEARCH_INCLUDE;
8266 do
8267 if test -f "$ac_dir/Xm/Xm.h"; then
8268 ac_find_includes=$ac_dir
8269 break
8270 fi
8271 done
8272
8273 if test "$ac_find_includes" != "" ; then
8274 echo "$ac_t""found $ac_find_includes" 1>&6
8275 else
cd6d6d5b 8276 cat > conftest.$ac_ext <<EOF
eb4efbdc 8277#line 8278 "configure"
cd6d6d5b
VZ
8278#include "confdefs.h"
8279
8280 #include <Xm/Xm.h>
8281
8282int main() {
8283
8284 int version;
8285
8286 version = xmUseVersion;
8287
8288; return 0; }
8289EOF
eb4efbdc 8290if { (eval echo configure:8291: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
cd6d6d5b
VZ
8291 rm -rf conftest*
8292
8293 echo "$ac_t""found in default search path" 1>&6
8294 COMPILED_X_PROGRAM=1
8295
8296else
8297 echo "configure: failed program was:" >&5
8298 cat conftest.$ac_ext >&5
8299 rm -rf conftest*
8300
8301 echo "$ac_t""no" 1>&6
8302 { echo "configure: error: please set CFLAGS to contain the location of Xm/Xm.h" 1>&2; exit 1; }
8303
8304
8305fi
8306rm -f conftest*
ab9b9eab
VZ
8307 fi
8308
cd6d6d5b
VZ
8309 if test "$COMPILED_X_PROGRAM" = 0; then
8310 echo $ac_n "checking for Motif/Lesstif library""... $ac_c" 1>&6
eb4efbdc 8311echo "configure:8312: checking for Motif/Lesstif library" >&5
cd6d6d5b 8312
ab9b9eab
VZ
8313ac_find_libraries=
8314for ac_dir in $SEARCH_LIB;
8315 do
8316 for ac_extension in a so sl; do
8317 if test -f "$ac_dir/libXm.$ac_extension"; then
8318 ac_find_libraries=$ac_dir
8319 break 2
8320 fi
8321 done
8322 done
8323
cd6d6d5b
VZ
8324 if test "$ac_find_libraries" != "" ; then
8325
ab9b9eab
VZ
8326 ac_path_to_include=$ac_find_includes
8327 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
8328 result=$?
8329 if test $result = 0; then
8330 ac_path_to_include=""
8331 else
8332 ac_path_to_include="-I$ac_find_includes"
8333 fi
8334
cd6d6d5b 8335
ab9b9eab
VZ
8336 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
8337 result=$?
8338 if test $result = 0; then
8339 ac_path_to_link=""
8340 else
8341 ac_path_to_link="-L$ac_find_libraries"
8342 fi
8343
8344
cd6d6d5b
VZ
8345 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $ac_path_to_link"
8346 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE $ac_path_to_include"
8347 echo "$ac_t""found at $ac_find_libraries" 1>&6
8348 else
8349 cat > conftest.$ac_ext <<EOF
eb4efbdc 8350#line 8351 "configure"
cd6d6d5b 8351#include "confdefs.h"
ab9b9eab 8352
cd6d6d5b
VZ
8353 #include <Xm/Xm.h>
8354
8355int main() {
ab9b9eab 8356
cd6d6d5b 8357 int version;
ab9b9eab 8358
cd6d6d5b
VZ
8359 version = xmUseVersion;
8360
8361; return 0; }
8362EOF
eb4efbdc 8363if { (eval echo configure:8364: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
cd6d6d5b
VZ
8364 rm -rf conftest*
8365
8366 echo "$ac_t""found in default search path" 1>&6
8367 COMPILED_X_PROGRAM=1
8368
8369else
8370 echo "configure: failed program was:" >&5
8371 cat conftest.$ac_ext >&5
8372 rm -rf conftest*
8373
8374 echo "$ac_t""no" 1>&6
8375 { echo "configure: error: please set LDFLAGS to contain the location of libXm" 1>&2; exit 1; }
8376
8377
8378fi
8379rm -f conftest*
8380 fi
ab9b9eab
VZ
8381 fi
8382
cd6d6d5b 8383
ab9b9eab
VZ
8384 XPM_LINK=""
8385 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
eb4efbdc 8386echo "configure:8387: checking for Xpm library" >&5
ab9b9eab
VZ
8387
8388ac_find_libraries=
8389for ac_dir in $SEARCH_LIB;
8390 do
8391 for ac_extension in a so sl; do
8392 if test -f "$ac_dir/libXpm.$ac_extension"; then
8393 ac_find_libraries=$ac_dir
8394 break 2
8395 fi
8396 done
8397 done
8398
8399 if test "$ac_find_libraries" != "" ; then
8400
8401 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
8402 result=$?
8403 if test $result = 0; then
8404 ac_path_to_link=""
8405 else
8406 ac_path_to_link="-L$ac_find_libraries"
8407 fi
8408
8409 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $ac_path_to_link"
8410 XPM_LINK="-lXpm "
8411 cat >> confdefs.h <<\EOF
8412#define wxHAVE_LIB_XPM 1
8413EOF
8414
8415 echo "$ac_t""found at $ac_find_libraries" 1>&6
8416 else
cd6d6d5b 8417 cat > conftest.$ac_ext <<EOF
eb4efbdc 8418#line 8419 "configure"
cd6d6d5b
VZ
8419#include "confdefs.h"
8420
8421 #include <X11/xpm.h>
8422
8423int main() {
8424
8425 int version;
8426
8427 version = XpmLibraryVersion();
8428
8429; return 0; }
8430EOF
eb4efbdc 8431if { (eval echo configure:8432: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
cd6d6d5b
VZ
8432 rm -rf conftest*
8433
bdad4e7e
RR
8434 XPM_LINK="-lXpm "
8435 cat >> confdefs.h <<\EOF
3ace2e6d
SN
8436#define wxHAVE_LIB_XPM 1
8437EOF
8438
8439 echo "$ac_t""found in default search path" 1>&6
cd6d6d5b
VZ
8440 COMPILED_X_PROGRAM=0
8441
8442else
8443 echo "configure: failed program was:" >&5
8444 cat conftest.$ac_ext >&5
8445 rm -rf conftest*
8446
8447 echo "$ac_t""no" 1>&6
8448 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
8449
8450
8451fi
8452rm -f conftest*
ab9b9eab
VZ
8453 fi
8454
8916026b 8455 GUI_TK_LINK="-lXm $XPM_LINK -lXmu -lXext -lXt -lX11"
ab9b9eab
VZ
8456 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $GUI_TK_LINK"
8457 TOOLKIT=MOTIF
8458
8459 GUIHEADERS="\$(MOTIF_HEADERS)"
8460 GUIOBJS="\$(MOTIF_GUIOBJS)"
8461 COMMONOBJS="\$(MOTIF_COMMONOBJS)"
788deba1
VZ
8462 GENERICOBJS="\$(MOTIF_GENERICOBJS)"
8463 GUIDEPS="\$(MOTIF_GUIDEPS)"
8464 COMMONDEPS="\$(MOTIF_COMMONDEPS)"
10f2d63a
VZ
8465 GENERICDEPS="\$(MOTIF_GENERICDEPS)"
8466 UNIXOBJS="\$(UNIX_OBJS)"
d9d8273d 8467 UNIXDEPS="\$(UNIX_DEPS)"
10f2d63a
VZ
8468 GUIDIST=MOTIF_DIST
8469fi
8470
e07802fc
VZ
8471if test "$wxUSE_PM" = 1; then
8472 TOOLKIT=PM
8473
8474 GUIOBJS="\$(PM_GUIOBJS)"
8475 GUIHEADERS="\$(PM_HEADERS)"
8476 COMMONOBJS="\$(PM_COMMONOBJS)"
8477 GENERICOBJS="\$(PM_GENERICOBJS)"
8478 GUIDEPS="\$(PM_GUIDEPS)"
8479 COMMONDEPS="\$(PM_COMMONDEPS)"
8480 GENERICDEPS="\$(PM_GENERICDEPS)"
8481 UNIXOBJS=
8482 UNIXDEPS=
8483 GUIDIST=GTK_DIST
8484fi
8485
8486if test "$TOOLKIT" != "PM" ; then
ec14dd32 8487 TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
e07802fc
VZ
8488else
8489 TOOLKIT_DIR="os2"
8490fi
10f2d63a 8491
2224580a 8492 TOOLKIT_DEF="-D__WX${TOOLKIT}__"
10f2d63a 8493
2224580a 8494 WX_LIBRARY="wx_${TOOLKIT_DIR}"
10f2d63a 8495
bdad4e7e 8496 ALL_OBJECTS="\$(GUIOBJS) \$(COMMONOBJS) \$(GENERICOBJS) \$(UNIXOBJS) \$(HTMLOBJS) \$(OGLOBJS)"
3fcdd07b 8497
b089607b 8498 if test "$TOOLKIT" != "MSW"; then
cc977e5f
RR
8499 if test "$wxUSE_ODBC" = "yes" ; then
8500 ALL_OBJECTS="${ALL_OBJECTS} \$(IODBCOBJS)"
8501 fi
3fcdd07b
VZ
8502 fi
8503
d9d8273d 8504 if test "$wxUSE_LIBJPEG" = "yes" ; then
2224580a 8505 ALL_OBJECTS="${ALL_OBJECTS} \$(JPEGOBJS)"
d9d8273d
RR
8506 fi
8507 if test "$wxUSE_LIBTIFF" = "yes" ; then
8508 ALL_OBJECTS="${ALL_OBJECTS} \$(TIFFOBJS)"
8509 fi
8510 if test "$wxUSE_LIBPNG" = "yes" ; then
8511 ALL_OBJECTS="${ALL_OBJECTS} \$(PNGOBJS)"
8512 fi
8513 if test "$wxUSE_ZLIB" = "yes" ; then
8514 ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)"
8515 fi
bdad4e7e 8516 ALL_DEPFILES="\$(GUIDEPS) \$(COMMONDEPS) \$(GENERICDEPS) \$(UNIXDEPS) \$(HTMLDEPS) \$(OGLDEPS)"
2224580a
VZ
8517
8518 PORT_FILES="src/\$(TOOLKITDIR)/files.lst"
8519 RPM_FILES="src/\$(TOOLKITDIR)/rpmfiles.lst"
8520 RPM_SPEC="wx\$(TOOLKIT).spec"
8521
8522 GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
8523 DISTDIR="wx\$(TOOLKIT)"
10f2d63a 8524else
dad6c0ea
VZ
8525 USE_GUI=0
8526
07eb77a6
RL
8527 TOOLKIT_DIR="base"
8528 TOOLKIT_DEF="-D__WXBASE__"
8529
2224580a
VZ
8530 ALL_OBJECTS="\$(BASE_OBJS) \${BASE_UNIX_OBJS}"
8531 ALL_DEPFILES="\${BASE_DEPS} \${BASE_UNIX_DEPS}"
10f2d63a 8532
a20b6d3a
VZ
8533 if test "$wxUSE_ZLIB" = "yes" ; then
8534 ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)"
8535 fi
8536
10f2d63a 8537 WX_LIBRARY="wxbase"
2224580a
VZ
8538
8539 PORT_FILES="src/files.lst"
8540 RPM_FILES="src/rpmfiles.lst"
8541 RPM_SPEC="wxBase.spec"
8542
8543 GUIDIST="BASE_DIST"
8544 DISTDIR="wxBase"
10f2d63a
VZ
8545fi
8546
8547WX_LIBRARY_NAME="lib${WX_LIBRARY}.la"
bdad4e7e 8548WX_LIBRARY_NAME_GL="lib${WX_LIBRARY}_gl.la"
10f2d63a
VZ
8549
8550WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a"
bdad4e7e 8551WX_LIBRARY_NAME_STATIC_GL="lib${WX_LIBRARY}_gl.a"
10f2d63a
VZ
8552
8553WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}-${WX_RELEASE}.so.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
bdad4e7e 8554WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.so.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
10f2d63a
VZ
8555
8556WX_LIBRARY_LINK1="lib${WX_LIBRARY}-${WX_RELEASE}.so.${WX_CURRENT}"
8557WX_LIBRARY_LINK2="lib${WX_LIBRARY}-${WX_RELEASE}.so"
8558WX_LIBRARY_LINK3="lib${WX_LIBRARY}.so"
bdad4e7e
RR
8559WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.so.${WX_CURRENT}"
8560WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.so"
8561WX_LIBRARY_LINK3_GL="lib${WX_LIBRARY}_gl.so"
10f2d63a
VZ
8562
8563SHARED_LD=
8564PIC_FLAG=
8565WX_ALL=
8566WX_ALL_INSTALLED=
1d62a8b4 8567BURNT_LIBRARY_NAME=
10f2d63a 8568
b12915c1 8569
10f2d63a
VZ
8570if test "$wxUSE_SHARED" = "yes"; then
8571 case "${host}" in
8572 *-hp-hpux* )
8573 if test "$GCC" = yes ; then
69ffe1d2 8574 SHARED_LD="${CC} -shared -fPIC -o"
10f2d63a
VZ
8575 PIC_FLAG="-fPIC"
8576 else
8577 SHARED_LD="${CXX} -b -o"
8578 PIC_FLAG="+Z"
8579 fi
8580 WX_LIBRARY_NAME_SHARED="libwx_${TOOLKIT_DIR}.sl"
bdad4e7e 8581 WX_LIBRARY_NAME_SHARED_GL="libwx_${TOOLKIT_DIR}_gl.sl"
c661ecca
RR
8582 if test "$wxUSE_OPENGL" = "yes"; then
8583 WX_ALL="${WX_LIBRARY_NAME_SHARED} ${WX_LIBRARY_NAME_SHARED_GL}"
8584 else
8585 WX_ALL="${WX_LIBRARY_NAME_SHARED}"
8586 fi
10f2d63a 8587 ;;
b12915c1
VZ
8588
8589 *-*-linux* )
10f2d63a
VZ
8590 SHARED_LD="${CC} -shared -o"
8591 PIC_FLAG="-fPIC"
00cf1208 8592 if test "$wxUSE_BURNT_NAME" = "yes" ; then
05cdfc6f 8593 BURNT_LIBRARY_NAME="-Wl,-soname,${WX_LIBRARY_LINK1}"
bdad4e7e 8594 BURNT_LIBRARY_NAME_GL="-Wl,-soname,${WX_LIBRARY_LINK1_GL}"
00cf1208 8595 fi
c661ecca
RR
8596 if test "$wxUSE_OPENGL" = "yes"; then
8597 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
8598 WX_ALL="CREATE_LINKS CREATE_LINKS_GL"
8599 else
8600 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
8601 WX_ALL="CREATE_LINKS"
422107f9 8602 fi
00cf1208 8603 ;;
10f2d63a
VZ
8604 *-*-irix5* | *-*-irix6* )
8605 if test "$GCC" = yes ; then
8606 SHARED_LD="${CC} -shared -o"
8607 PIC_FLAG="-fPIC"
8608 else
8609 SHARED_LD="${CXX} -shared -o"
8610 fi
c661ecca
RR
8611 if test "$wxUSE_OPENGL" = "yes"; then
8612 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
8613 WX_ALL="CREATE_LINKS CREATE_LINKS_GL"
8614 else
8615 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
8616 WX_ALL="CREATE_LINKS"
422107f9 8617 fi
10f2d63a
VZ
8618 ;;
8619 *-*-solaris2* )
8620 if test "$GCC" = yes ; then
8621 SHARED_LD="${CC} -shared -o"
8622 PIC_FLAG="-fPIC"
8623 else
8624 SHARED_LD="${CXX} -G -o"
8625 PIC_FLAG="-KPIC"
8626 fi
c661ecca
RR
8627 if test "$wxUSE_OPENGL" = "yes"; then
8628 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
8629 WX_ALL="CREATE_LINKS CREATE_LINKS_GL"
8630 else
8631 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
8632 WX_ALL="CREATE_LINKS"
8633 fi
10f2d63a
VZ
8634 ;;
8635 *-*-sunos4* )
8636 SHARED_LD="${CC} -shared -o"
8637 PIC_FLAG="-fPIC"
8638 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
8639 WX_ALL="CREATE_LINKS"
8640 ;;
8641 *-*-freebsd* | *-*-netbsd*)
8642 SHARED_LD="${CC} -shared -o"
8643 PIC_FLAG="-fPIC"
8644 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
8645 WX_ALL="CREATE_LINKS"
8646 ;;
8647 *-*-osf* )
8648 SHARED_LD="${CXX} -shared -o"
8649 PIC_FLAG="-fPIC"
8650 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
8651 WX_ALL="CREATE_LINKS"
8652 ;;
8653 *-*-dgux5* )
8654 SHARED_LD="${CXX} -shared -o"
8655 PIC_FLAG="-fPIC"
8656 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
8657 WX_ALL="CREATE_LINKS"
8658 ;;
8659 *-*-sysv5* )
8660 SHARED_LD="${CC} -shared -o"
8661 PIC_FLAG="-fPIC"
8662 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
8663 WX_ALL="CREATE_LINKS"
8664 ;;
8665 *-*-aix* )
8666 SHARED_LD="/usr/lpp/xlC/bin/makeC++SharedLib -p 0 -o"
8667 WX_ALL=${WX_LIBRARY_NAME_SHARED}
8668 ;;
8669 *-*-cygwin32* )
8670 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
bdad4e7e 8671 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}"
10f2d63a
VZ
8672 WX_ALL="${WX_LIBRARY_NAME_STATIC}"
8673 ;;
b12915c1 8674 *-*-mingw32* )
10f2d63a 8675 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
bdad4e7e 8676 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}"
10f2d63a
VZ
8677 WX_ALL="${WX_LIBRARY_NAME_STATIC}"
8678 ;;
8679 *-pc-os2_emx )
e07802fc
VZ
8680 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
8681 WX_ALL="${WX_LIBRARY_NAME_STATIC}"
10f2d63a 8682 ;;
b12915c1 8683 *-*-beos* )
e2b8b066 8684 SHARED_LD="${LD} -shared -o"
b12915c1
VZ
8685 PIC_FLAG="-fPIC"
8686 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
8687 WX_ALL="CREATE_LINKS"
8688 ;;
10f2d63a
VZ
8689 *)
8690 { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; }
8691 esac
8692
8693 if test "x$WX_TARGET_LIBRARY" = "x"; then
8694 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}"
bdad4e7e 8695 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_SHARED_GL}"
10f2d63a 8696 fi
3711412e 8697 WX_TARGET_LIBRARY_TYPE="so"
10f2d63a
VZ
8698else
8699 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
bdad4e7e 8700 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}"
10f2d63a 8701 WX_ALL="${WX_LIBRARY_NAME_STATIC}"
3711412e 8702 WX_TARGET_LIBRARY_TYPE="a"
10f2d63a
VZ
8703fi
8704
8705
8706for ac_hdr in strings.h
8707do
8708ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8709echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
a20b6d3a 8710echo "configure:8711: checking for $ac_hdr" >&5
10f2d63a
VZ
8711if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8712 echo $ac_n "(cached) $ac_c" 1>&6
8713else
8714 cat > conftest.$ac_ext <<EOF
a20b6d3a 8715#line 8716 "configure"
10f2d63a
VZ
8716#include "confdefs.h"
8717#include <$ac_hdr>
8718EOF
8719ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
a20b6d3a 8720{ (eval echo configure:8721: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
8721ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8722if test -z "$ac_err"; then
8723 rm -rf conftest*
8724 eval "ac_cv_header_$ac_safe=yes"
8725else
8726 echo "$ac_err" >&5
8727 echo "configure: failed program was:" >&5
8728 cat conftest.$ac_ext >&5
8729 rm -rf conftest*
8730 eval "ac_cv_header_$ac_safe=no"
8731fi
8732rm -f conftest*
8733fi
8734if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8735 echo "$ac_t""yes" 1>&6
8736 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8737 cat >> confdefs.h <<EOF
8738#define $ac_tr_hdr 1
8739EOF
8740
8741else
8742 echo "$ac_t""no" 1>&6
8743fi
8744done
8745
8746for ac_hdr in unistd.h
8747do
8748ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8749echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
a20b6d3a 8750echo "configure:8751: checking for $ac_hdr" >&5
10f2d63a
VZ
8751if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8752 echo $ac_n "(cached) $ac_c" 1>&6
8753else
8754 cat > conftest.$ac_ext <<EOF
a20b6d3a 8755#line 8756 "configure"
10f2d63a
VZ
8756#include "confdefs.h"
8757#include <$ac_hdr>
8758EOF
8759ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
a20b6d3a 8760{ (eval echo configure:8761: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
8761ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8762if test -z "$ac_err"; then
8763 rm -rf conftest*
8764 eval "ac_cv_header_$ac_safe=yes"
8765else
8766 echo "$ac_err" >&5
8767 echo "configure: failed program was:" >&5
8768 cat conftest.$ac_ext >&5
8769 rm -rf conftest*
8770 eval "ac_cv_header_$ac_safe=no"
8771fi
8772rm -f conftest*
8773fi
8774if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8775 echo "$ac_t""yes" 1>&6
8776 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8777 cat >> confdefs.h <<EOF
8778#define $ac_tr_hdr 1
8779EOF
8780
8781else
8782 echo "$ac_t""no" 1>&6
8783fi
8784done
8785
8786for ac_hdr in wchar.h
8787do
8788ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8789echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
a20b6d3a 8790echo "configure:8791: checking for $ac_hdr" >&5
10f2d63a
VZ
8791if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8792 echo $ac_n "(cached) $ac_c" 1>&6
8793else
8794 cat > conftest.$ac_ext <<EOF
a20b6d3a 8795#line 8796 "configure"
10f2d63a
VZ
8796#include "confdefs.h"
8797#include <$ac_hdr>
8798EOF
8799ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
a20b6d3a 8800{ (eval echo configure:8801: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
8801ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8802if test -z "$ac_err"; then
8803 rm -rf conftest*
8804 eval "ac_cv_header_$ac_safe=yes"
8805else
8806 echo "$ac_err" >&5
8807 echo "configure: failed program was:" >&5
8808 cat conftest.$ac_ext >&5
8809 rm -rf conftest*
8810 eval "ac_cv_header_$ac_safe=no"
8811fi
8812rm -f conftest*
8813fi
8814if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8815 echo "$ac_t""yes" 1>&6
8816 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8817 cat >> confdefs.h <<EOF
8818#define $ac_tr_hdr 1
8819EOF
8820
8821else
8822 echo "$ac_t""no" 1>&6
8823fi
8824done
8825
8826for ac_hdr in wcstr.h
8827do
8828ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8829echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
a20b6d3a 8830echo "configure:8831: checking for $ac_hdr" >&5
10f2d63a
VZ
8831if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8832 echo $ac_n "(cached) $ac_c" 1>&6
8833else
8834 cat > conftest.$ac_ext <<EOF
a20b6d3a 8835#line 8836 "configure"
10f2d63a
VZ
8836#include "confdefs.h"
8837#include <$ac_hdr>
8838EOF
8839ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
a20b6d3a 8840{ (eval echo configure:8841: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
8841ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8842if test -z "$ac_err"; then
8843 rm -rf conftest*
8844 eval "ac_cv_header_$ac_safe=yes"
8845else
8846 echo "$ac_err" >&5
8847 echo "configure: failed program was:" >&5
8848 cat conftest.$ac_ext >&5
8849 rm -rf conftest*
8850 eval "ac_cv_header_$ac_safe=no"
8851fi
8852rm -f conftest*
8853fi
8854if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8855 echo "$ac_t""yes" 1>&6
8856 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8857 cat >> confdefs.h <<EOF
8858#define $ac_tr_hdr 1
8859EOF
8860
8861else
8862 echo "$ac_t""no" 1>&6
8863fi
8864done
8865
8866for ac_hdr in fnmatch.h
8867do
8868ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8869echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
a20b6d3a 8870echo "configure:8871: checking for $ac_hdr" >&5
10f2d63a
VZ
8871if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8872 echo $ac_n "(cached) $ac_c" 1>&6
8873else
8874 cat > conftest.$ac_ext <<EOF
a20b6d3a 8875#line 8876 "configure"
10f2d63a
VZ
8876#include "confdefs.h"
8877#include <$ac_hdr>
8878EOF
8879ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
a20b6d3a 8880{ (eval echo configure:8881: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
8881ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8882if test -z "$ac_err"; then
8883 rm -rf conftest*
8884 eval "ac_cv_header_$ac_safe=yes"
8885else
8886 echo "$ac_err" >&5
8887 echo "configure: failed program was:" >&5
8888 cat conftest.$ac_ext >&5
8889 rm -rf conftest*
8890 eval "ac_cv_header_$ac_safe=no"
8891fi
8892rm -f conftest*
8893fi
8894if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8895 echo "$ac_t""yes" 1>&6
8896 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8897 cat >> confdefs.h <<EOF
8898#define $ac_tr_hdr 1
8899EOF
8900
8901else
8902 echo "$ac_t""no" 1>&6
8903fi
8904done
8905
8906
73fd4a60
VZ
8907if test "$wxUSE_GUI" = "yes"; then
8908 if test "$wxUSE_UNIX" = "yes"; then
8909 for ac_hdr in X11/XKBlib.h
10f2d63a
VZ
8910do
8911ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8912echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
a20b6d3a 8913echo "configure:8914: checking for $ac_hdr" >&5
10f2d63a
VZ
8914if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8915 echo $ac_n "(cached) $ac_c" 1>&6
8916else
8917 cat > conftest.$ac_ext <<EOF
a20b6d3a 8918#line 8919 "configure"
10f2d63a
VZ
8919#include "confdefs.h"
8920#include <$ac_hdr>
8921EOF
8922ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
a20b6d3a 8923{ (eval echo configure:8924: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
8924ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8925if test -z "$ac_err"; then
8926 rm -rf conftest*
8927 eval "ac_cv_header_$ac_safe=yes"
8928else
8929 echo "$ac_err" >&5
8930 echo "configure: failed program was:" >&5
8931 cat conftest.$ac_ext >&5
8932 rm -rf conftest*
8933 eval "ac_cv_header_$ac_safe=no"
8934fi
8935rm -f conftest*
8936fi
8937if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8938 echo "$ac_t""yes" 1>&6
8939 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8940 cat >> confdefs.h <<EOF
8941#define $ac_tr_hdr 1
8942EOF
8943
8944else
8945 echo "$ac_t""no" 1>&6
8946fi
8947done
8948
73fd4a60 8949 fi
10f2d63a
VZ
8950fi
8951
8952
8953echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
a20b6d3a 8954echo "configure:8955: checking for ANSI C header files" >&5
10f2d63a
VZ
8955if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
8956 echo $ac_n "(cached) $ac_c" 1>&6
8957else
8958 cat > conftest.$ac_ext <<EOF
a20b6d3a 8959#line 8960 "configure"
10f2d63a
VZ
8960#include "confdefs.h"
8961#include <stdlib.h>
8962#include <stdarg.h>
8963#include <string.h>
8964#include <float.h>
8965EOF
8966ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
a20b6d3a 8967{ (eval echo configure:8968: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
8968ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8969if test -z "$ac_err"; then
8970 rm -rf conftest*
8971 ac_cv_header_stdc=yes
8972else
8973 echo "$ac_err" >&5
8974 echo "configure: failed program was:" >&5
8975 cat conftest.$ac_ext >&5
8976 rm -rf conftest*
8977 ac_cv_header_stdc=no
8978fi
8979rm -f conftest*
8980
8981if test $ac_cv_header_stdc = yes; then
8982 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8983cat > conftest.$ac_ext <<EOF
a20b6d3a 8984#line 8985 "configure"
10f2d63a
VZ
8985#include "confdefs.h"
8986#include <string.h>
8987EOF
8988if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8989 egrep "memchr" >/dev/null 2>&1; then
8990 :
8991else
8992 rm -rf conftest*
8993 ac_cv_header_stdc=no
8994fi
8995rm -f conftest*
8996
8997fi
8998
8999if test $ac_cv_header_stdc = yes; then
9000 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9001cat > conftest.$ac_ext <<EOF
a20b6d3a 9002#line 9003 "configure"
10f2d63a
VZ
9003#include "confdefs.h"
9004#include <stdlib.h>
9005EOF
9006if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9007 egrep "free" >/dev/null 2>&1; then
9008 :
9009else
9010 rm -rf conftest*
9011 ac_cv_header_stdc=no
9012fi
9013rm -f conftest*
9014
9015fi
9016
9017if test $ac_cv_header_stdc = yes; then
9018 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9019if test "$cross_compiling" = yes; then
9020 :
9021else
9022 cat > conftest.$ac_ext <<EOF
a20b6d3a 9023#line 9024 "configure"
10f2d63a
VZ
9024#include "confdefs.h"
9025#include <ctype.h>
9026#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9027#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9028#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9029int main () { int i; for (i = 0; i < 256; i++)
9030if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
9031exit (0); }
9032
9033EOF
a20b6d3a 9034if { (eval echo configure:9035: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10f2d63a
VZ
9035then
9036 :
9037else
9038 echo "configure: failed program was:" >&5
9039 cat conftest.$ac_ext >&5
9040 rm -fr conftest*
9041 ac_cv_header_stdc=no
9042fi
9043rm -fr conftest*
9044fi
9045
9046fi
9047fi
9048
9049echo "$ac_t""$ac_cv_header_stdc" 1>&6
9050if test $ac_cv_header_stdc = yes; then
9051 cat >> confdefs.h <<\EOF
9052#define STDC_HEADERS 1
9053EOF
9054
9055fi
9056
9057echo $ac_n "checking for mode_t""... $ac_c" 1>&6
a20b6d3a 9058echo "configure:9059: checking for mode_t" >&5
10f2d63a
VZ
9059if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
9060 echo $ac_n "(cached) $ac_c" 1>&6
9061else
9062 cat > conftest.$ac_ext <<EOF
a20b6d3a 9063#line 9064 "configure"
10f2d63a
VZ
9064#include "confdefs.h"
9065#include <sys/types.h>
9066#if STDC_HEADERS
9067#include <stdlib.h>
9068#include <stddef.h>
9069#endif
9070EOF
9071if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9072 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
9073 rm -rf conftest*
9074 ac_cv_type_mode_t=yes
9075else
9076 rm -rf conftest*
9077 ac_cv_type_mode_t=no
9078fi
9079rm -f conftest*
9080
9081fi
9082echo "$ac_t""$ac_cv_type_mode_t" 1>&6
9083if test $ac_cv_type_mode_t = no; then
9084 cat >> confdefs.h <<\EOF
9085#define mode_t int
9086EOF
9087
9088fi
9089
9090echo $ac_n "checking for off_t""... $ac_c" 1>&6
a20b6d3a 9091echo "configure:9092: checking for off_t" >&5
10f2d63a
VZ
9092if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
9093 echo $ac_n "(cached) $ac_c" 1>&6
9094else
9095 cat > conftest.$ac_ext <<EOF
a20b6d3a 9096#line 9097 "configure"
10f2d63a
VZ
9097#include "confdefs.h"
9098#include <sys/types.h>
9099#if STDC_HEADERS
9100#include <stdlib.h>
9101#include <stddef.h>
9102#endif
9103EOF
9104if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9105 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
9106 rm -rf conftest*
9107 ac_cv_type_off_t=yes
9108else
9109 rm -rf conftest*
9110 ac_cv_type_off_t=no
9111fi
9112rm -f conftest*
9113
9114fi
9115echo "$ac_t""$ac_cv_type_off_t" 1>&6
9116if test $ac_cv_type_off_t = no; then
9117 cat >> confdefs.h <<\EOF
9118#define off_t long
9119EOF
9120
9121fi
9122
9123echo $ac_n "checking for pid_t""... $ac_c" 1>&6
a20b6d3a 9124echo "configure:9125: checking for pid_t" >&5
10f2d63a
VZ
9125if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
9126 echo $ac_n "(cached) $ac_c" 1>&6
9127else
9128 cat > conftest.$ac_ext <<EOF
a20b6d3a 9129#line 9130 "configure"
10f2d63a
VZ
9130#include "confdefs.h"
9131#include <sys/types.h>
9132#if STDC_HEADERS
9133#include <stdlib.h>
9134#include <stddef.h>
9135#endif
9136EOF
9137if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9138 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
9139 rm -rf conftest*
9140 ac_cv_type_pid_t=yes
9141else
9142 rm -rf conftest*
9143 ac_cv_type_pid_t=no
9144fi
9145rm -f conftest*
9146
9147fi
9148echo "$ac_t""$ac_cv_type_pid_t" 1>&6
9149if test $ac_cv_type_pid_t = no; then
9150 cat >> confdefs.h <<\EOF
9151#define pid_t int
9152EOF
9153
9154fi
9155
9156echo $ac_n "checking for size_t""... $ac_c" 1>&6
a20b6d3a 9157echo "configure:9158: checking for size_t" >&5
10f2d63a
VZ
9158if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
9159 echo $ac_n "(cached) $ac_c" 1>&6
9160else
9161 cat > conftest.$ac_ext <<EOF
a20b6d3a 9162#line 9163 "configure"
10f2d63a
VZ
9163#include "confdefs.h"
9164#include <sys/types.h>
9165#if STDC_HEADERS
9166#include <stdlib.h>
9167#include <stddef.h>
9168#endif
9169EOF
9170if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9171 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
9172 rm -rf conftest*
9173 ac_cv_type_size_t=yes
9174else
9175 rm -rf conftest*
9176 ac_cv_type_size_t=no
9177fi
9178rm -f conftest*
9179
9180fi
9181echo "$ac_t""$ac_cv_type_size_t" 1>&6
9182if test $ac_cv_type_size_t = no; then
9183 cat >> confdefs.h <<\EOF
9184#define size_t unsigned
9185EOF
9186
9187fi
9188
9189echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
a20b6d3a 9190echo "configure:9191: checking for uid_t in sys/types.h" >&5
10f2d63a
VZ
9191if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
9192 echo $ac_n "(cached) $ac_c" 1>&6
9193else
9194 cat > conftest.$ac_ext <<EOF
a20b6d3a 9195#line 9196 "configure"
10f2d63a
VZ
9196#include "confdefs.h"
9197#include <sys/types.h>
9198EOF
9199if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9200 egrep "uid_t" >/dev/null 2>&1; then
9201 rm -rf conftest*
9202 ac_cv_type_uid_t=yes
9203else
9204 rm -rf conftest*
9205 ac_cv_type_uid_t=no
9206fi
9207rm -f conftest*
9208
9209fi
9210
9211echo "$ac_t""$ac_cv_type_uid_t" 1>&6
9212if test $ac_cv_type_uid_t = no; then
9213 cat >> confdefs.h <<\EOF
9214#define uid_t int
9215EOF
9216
9217 cat >> confdefs.h <<\EOF
9218#define gid_t int
9219EOF
9220
9221fi
9222
9223
9224
b12915c1 9225echo $ac_n "checking for pw_gecos in struct passwd""... $ac_c" 1>&6
a20b6d3a 9226echo "configure:9227: checking for pw_gecos in struct passwd" >&5
b12915c1
VZ
9227if eval "test \"`echo '$''{'wx_cv_struct_pw_gecos'+set}'`\" = set"; then
9228 echo $ac_n "(cached) $ac_c" 1>&6
9229else
9230
9231 cat > conftest.$ac_ext <<EOF
a20b6d3a 9232#line 9233 "configure"
b12915c1
VZ
9233#include "confdefs.h"
9234#include <pwd.h>
9235int main() {
9236
9237 char *p;
9238 struct passwd *pw;
9239 p = pw->pw_gecos;
9240
9241; return 0; }
9242EOF
a20b6d3a 9243if { (eval echo configure:9244: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
b12915c1
VZ
9244 rm -rf conftest*
9245
9246 wx_cv_struct_pw_gecos=yes
b12915c1
VZ
9247
9248else
9249 echo "configure: failed program was:" >&5
9250 cat conftest.$ac_ext >&5
9251 rm -rf conftest*
9252
9253 wx_cv_struct_pw_gecos=no
9254
9255
9256fi
9257rm -f conftest*
9258
9259
9260fi
9261
9262echo "$ac_t""$wx_cv_struct_pw_gecos" 1>&6
9263
bd3277fe
VZ
9264if test "$wx_cv_struct_pw_gecos" = "yes"; then
9265 cat >> confdefs.h <<\EOF
9266#define HAVE_PW_GECOS 1
9267EOF
9268
9269fi
9270
10f2d63a
VZ
9271
9272echo $ac_n "checking for working const""... $ac_c" 1>&6
a20b6d3a 9273echo "configure:9274: checking for working const" >&5
10f2d63a
VZ
9274if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
9275 echo $ac_n "(cached) $ac_c" 1>&6
9276else
9277 cat > conftest.$ac_ext <<EOF
a20b6d3a 9278#line 9279 "configure"
10f2d63a
VZ
9279#include "confdefs.h"
9280
9281int main() {
9282
9283/* Ultrix mips cc rejects this. */
8916026b 9284typedef int charset[2]; const charset x;
10f2d63a
VZ
9285/* SunOS 4.1.1 cc rejects this. */
9286char const *const *ccp;
9287char **p;
9288/* NEC SVR4.0.2 mips cc rejects this. */
9289struct point {int x, y;};
9290static struct point const zero = {0,0};
9291/* AIX XL C 1.02.0.0 rejects this.
9292 It does not let you subtract one const X* pointer from another in an arm
9293 of an if-expression whose if-part is not a constant expression */
9294const char *g = "string";
9295ccp = &g + (g ? g-g : 0);
9296/* HPUX 7.0 cc rejects these. */
9297++ccp;
9298p = (char**) ccp;
9299ccp = (char const *const *) p;
9300{ /* SCO 3.2v4 cc rejects this. */
9301 char *t;
9302 char const *s = 0 ? (char *) 0 : (char const *) 0;
9303
9304 *t++ = 0;
9305}
9306{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
9307 int x[] = {25, 17};
9308 const int *foo = &x[0];
9309 ++foo;
9310}
9311{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9312 typedef const int *iptr;
9313 iptr p = 0;
9314 ++p;
9315}
9316{ /* AIX XL C 1.02.0.0 rejects this saying
9317 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9318 struct s { int j; const int *ap[3]; };
9319 struct s *b; b->j = 5;
9320}
9321{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9322 const int foo = 10;
9323}
9324
9325; return 0; }
9326EOF
a20b6d3a 9327if { (eval echo configure:9328: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10f2d63a
VZ
9328 rm -rf conftest*
9329 ac_cv_c_const=yes
9330else
9331 echo "configure: failed program was:" >&5
9332 cat conftest.$ac_ext >&5
9333 rm -rf conftest*
9334 ac_cv_c_const=no
9335fi
9336rm -f conftest*
9337fi
9338
9339echo "$ac_t""$ac_cv_c_const" 1>&6
9340if test $ac_cv_c_const = no; then
9341 cat >> confdefs.h <<\EOF
9342#define const
9343EOF
9344
9345fi
9346
9347echo $ac_n "checking for inline""... $ac_c" 1>&6
a20b6d3a 9348echo "configure:9349: checking for inline" >&5
10f2d63a
VZ
9349if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
9350 echo $ac_n "(cached) $ac_c" 1>&6
9351else
9352 ac_cv_c_inline=no
9353for ac_kw in inline __inline__ __inline; do
9354 cat > conftest.$ac_ext <<EOF
a20b6d3a 9355#line 9356 "configure"
10f2d63a
VZ
9356#include "confdefs.h"
9357
9358int main() {
8916026b 9359} $ac_kw foo() {
10f2d63a
VZ
9360; return 0; }
9361EOF
a20b6d3a 9362if { (eval echo configure:9363: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10f2d63a
VZ
9363 rm -rf conftest*
9364 ac_cv_c_inline=$ac_kw; break
9365else
9366 echo "configure: failed program was:" >&5
9367 cat conftest.$ac_ext >&5
9368fi
9369rm -f conftest*
9370done
9371
9372fi
9373
9374echo "$ac_t""$ac_cv_c_inline" 1>&6
9375case "$ac_cv_c_inline" in
9376 inline | yes) ;;
9377 no) cat >> confdefs.h <<\EOF
9378#define inline
9379EOF
9380 ;;
9381 *) cat >> confdefs.h <<EOF
9382#define inline $ac_cv_c_inline
9383EOF
9384 ;;
9385esac
9386
9387
9388echo $ac_n "checking size of char""... $ac_c" 1>&6
a20b6d3a 9389echo "configure:9390: checking size of char" >&5
10f2d63a
VZ
9390if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then
9391 echo $ac_n "(cached) $ac_c" 1>&6
9392else
9393 if test "$cross_compiling" = yes; then
9394 ac_cv_sizeof_char=1
9395else
9396 cat > conftest.$ac_ext <<EOF
a20b6d3a 9397#line 9398 "configure"
10f2d63a
VZ
9398#include "confdefs.h"
9399#include <stdio.h>
9400main()
9401{
9402 FILE *f=fopen("conftestval", "w");
9403 if (!f) exit(1);
9404 fprintf(f, "%d\n", sizeof(char));
9405 exit(0);
9406}
9407EOF
a20b6d3a 9408if { (eval echo configure:9409: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10f2d63a
VZ
9409then
9410 ac_cv_sizeof_char=`cat conftestval`
9411else
9412 echo "configure: failed program was:" >&5
9413 cat conftest.$ac_ext >&5
9414 rm -fr conftest*
9415 ac_cv_sizeof_char=0
9416fi
9417rm -fr conftest*
9418fi
9419
9420fi
9421echo "$ac_t""$ac_cv_sizeof_char" 1>&6
9422cat >> confdefs.h <<EOF
9423#define SIZEOF_CHAR $ac_cv_sizeof_char
9424EOF
9425
9426
9427echo $ac_n "checking size of short""... $ac_c" 1>&6
a20b6d3a 9428echo "configure:9429: checking size of short" >&5
10f2d63a
VZ
9429if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
9430 echo $ac_n "(cached) $ac_c" 1>&6
9431else
9432 if test "$cross_compiling" = yes; then
9433 ac_cv_sizeof_short=2
9434else
9435 cat > conftest.$ac_ext <<EOF
a20b6d3a 9436#line 9437 "configure"
10f2d63a
VZ
9437#include "confdefs.h"
9438#include <stdio.h>
9439main()
9440{
9441 FILE *f=fopen("conftestval", "w");
9442 if (!f) exit(1);
9443 fprintf(f, "%d\n", sizeof(short));
9444 exit(0);
9445}
9446EOF
a20b6d3a 9447if { (eval echo configure:9448: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10f2d63a
VZ
9448then
9449 ac_cv_sizeof_short=`cat conftestval`
9450else
9451 echo "configure: failed program was:" >&5
9452 cat conftest.$ac_ext >&5
9453 rm -fr conftest*
9454 ac_cv_sizeof_short=0
9455fi
9456rm -fr conftest*
9457fi
9458
9459fi
9460echo "$ac_t""$ac_cv_sizeof_short" 1>&6
9461cat >> confdefs.h <<EOF
9462#define SIZEOF_SHORT $ac_cv_sizeof_short
9463EOF
9464
9465
9466echo $ac_n "checking size of int *""... $ac_c" 1>&6
a20b6d3a 9467echo "configure:9468: checking size of int *" >&5
10f2d63a
VZ
9468if eval "test \"`echo '$''{'ac_cv_sizeof_int_p'+set}'`\" = set"; then
9469 echo $ac_n "(cached) $ac_c" 1>&6
9470else
9471 if test "$cross_compiling" = yes; then
9472 ac_cv_sizeof_int_p=4
9473else
9474 cat > conftest.$ac_ext <<EOF
a20b6d3a 9475#line 9476 "configure"
10f2d63a
VZ
9476#include "confdefs.h"
9477#include <stdio.h>
9478main()
9479{
9480 FILE *f=fopen("conftestval", "w");
9481 if (!f) exit(1);
9482 fprintf(f, "%d\n", sizeof(int *));
9483 exit(0);
9484}
9485EOF
a20b6d3a 9486if { (eval echo configure:9487: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10f2d63a
VZ
9487then
9488 ac_cv_sizeof_int_p=`cat conftestval`
9489else
9490 echo "configure: failed program was:" >&5
9491 cat conftest.$ac_ext >&5
9492 rm -fr conftest*
9493 ac_cv_sizeof_int_p=0
9494fi
9495rm -fr conftest*
9496fi
9497
9498fi
9499echo "$ac_t""$ac_cv_sizeof_int_p" 1>&6
9500cat >> confdefs.h <<EOF
9501#define SIZEOF_INT_P $ac_cv_sizeof_int_p
9502EOF
9503
9504
9505echo $ac_n "checking size of int""... $ac_c" 1>&6
a20b6d3a 9506echo "configure:9507: checking size of int" >&5
10f2d63a
VZ
9507if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
9508 echo $ac_n "(cached) $ac_c" 1>&6
9509else
9510 if test "$cross_compiling" = yes; then
9511 ac_cv_sizeof_int=4
9512else
9513 cat > conftest.$ac_ext <<EOF
a20b6d3a 9514#line 9515 "configure"
10f2d63a
VZ
9515#include "confdefs.h"
9516#include <stdio.h>
9517main()
9518{
9519 FILE *f=fopen("conftestval", "w");
9520 if (!f) exit(1);
9521 fprintf(f, "%d\n", sizeof(int));
9522 exit(0);
9523}
9524EOF
a20b6d3a 9525if { (eval echo configure:9526: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10f2d63a
VZ
9526then
9527 ac_cv_sizeof_int=`cat conftestval`
9528else
9529 echo "configure: failed program was:" >&5
9530 cat conftest.$ac_ext >&5
9531 rm -fr conftest*
9532 ac_cv_sizeof_int=0
9533fi
9534rm -fr conftest*
9535fi
9536
9537fi
9538echo "$ac_t""$ac_cv_sizeof_int" 1>&6
9539cat >> confdefs.h <<EOF
9540#define SIZEOF_INT $ac_cv_sizeof_int
9541EOF
9542
9543
9544echo $ac_n "checking size of long""... $ac_c" 1>&6
a20b6d3a 9545echo "configure:9546: checking size of long" >&5
10f2d63a
VZ
9546if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
9547 echo $ac_n "(cached) $ac_c" 1>&6
9548else
9549 if test "$cross_compiling" = yes; then
9550 ac_cv_sizeof_long=4
9551else
9552 cat > conftest.$ac_ext <<EOF
a20b6d3a 9553#line 9554 "configure"
10f2d63a
VZ
9554#include "confdefs.h"
9555#include <stdio.h>
9556main()
9557{
9558 FILE *f=fopen("conftestval", "w");
9559 if (!f) exit(1);
9560 fprintf(f, "%d\n", sizeof(long));
9561 exit(0);
9562}
9563EOF
a20b6d3a 9564if { (eval echo configure:9565: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10f2d63a
VZ
9565then
9566 ac_cv_sizeof_long=`cat conftestval`
9567else
9568 echo "configure: failed program was:" >&5
9569 cat conftest.$ac_ext >&5
9570 rm -fr conftest*
9571 ac_cv_sizeof_long=0
9572fi
9573rm -fr conftest*
9574fi
9575
9576fi
9577echo "$ac_t""$ac_cv_sizeof_long" 1>&6
9578cat >> confdefs.h <<EOF
9579#define SIZEOF_LONG $ac_cv_sizeof_long
9580EOF
9581
9582
9583echo $ac_n "checking size of long long""... $ac_c" 1>&6
a20b6d3a 9584echo "configure:9585: checking size of long long" >&5
10f2d63a
VZ
9585if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
9586 echo $ac_n "(cached) $ac_c" 1>&6
9587else
9588 if test "$cross_compiling" = yes; then
9589 ac_cv_sizeof_long_long=0
9590else
9591 cat > conftest.$ac_ext <<EOF
a20b6d3a 9592#line 9593 "configure"
10f2d63a
VZ
9593#include "confdefs.h"
9594#include <stdio.h>
9595main()
9596{
9597 FILE *f=fopen("conftestval", "w");
9598 if (!f) exit(1);
9599 fprintf(f, "%d\n", sizeof(long long));
9600 exit(0);
9601}
9602EOF
a20b6d3a 9603if { (eval echo configure:9604: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10f2d63a
VZ
9604then
9605 ac_cv_sizeof_long_long=`cat conftestval`
9606else
9607 echo "configure: failed program was:" >&5
9608 cat conftest.$ac_ext >&5
9609 rm -fr conftest*
9610 ac_cv_sizeof_long_long=0
9611fi
9612rm -fr conftest*
9613fi
9614
9615fi
9616echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
9617cat >> confdefs.h <<EOF
9618#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
9619EOF
9620
9621
9622
9623echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
a20b6d3a 9624echo "configure:9625: checking whether byte ordering is bigendian" >&5
10f2d63a
VZ
9625if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
9626 echo $ac_n "(cached) $ac_c" 1>&6
9627else
9628 ac_cv_c_bigendian=unknown
9629# See if sys/param.h defines the BYTE_ORDER macro.
9630cat > conftest.$ac_ext <<EOF
a20b6d3a 9631#line 9632 "configure"
10f2d63a
VZ
9632#include "confdefs.h"
9633#include <sys/types.h>
9634#include <sys/param.h>
9635int main() {
9636
9637#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
9638 bogus endian macros
9639#endif
9640; return 0; }
9641EOF
a20b6d3a 9642if { (eval echo configure:9643: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10f2d63a
VZ
9643 rm -rf conftest*
9644 # It does; now see whether it defined to BIG_ENDIAN or not.
9645cat > conftest.$ac_ext <<EOF
a20b6d3a 9646#line 9647 "configure"
10f2d63a
VZ
9647#include "confdefs.h"
9648#include <sys/types.h>
9649#include <sys/param.h>
9650int main() {
9651
9652#if BYTE_ORDER != BIG_ENDIAN
9653 not big endian
9654#endif
9655; return 0; }
9656EOF
a20b6d3a 9657if { (eval echo configure:9658: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10f2d63a
VZ
9658 rm -rf conftest*
9659 ac_cv_c_bigendian=yes
9660else
9661 echo "configure: failed program was:" >&5
9662 cat conftest.$ac_ext >&5
9663 rm -rf conftest*
9664 ac_cv_c_bigendian=no
9665fi
9666rm -f conftest*
9667else
9668 echo "configure: failed program was:" >&5
9669 cat conftest.$ac_ext >&5
9670fi
9671rm -f conftest*
9672if test $ac_cv_c_bigendian = unknown; then
9673if test "$cross_compiling" = yes; then
9674 ac_cv_c_bigendian=unknown
9675else
9676 cat > conftest.$ac_ext <<EOF
a20b6d3a 9677#line 9678 "configure"
10f2d63a
VZ
9678#include "confdefs.h"
9679main () {
9680 /* Are we little or big endian? From Harbison&Steele. */
9681 union
9682 {
9683 long l;
9684 char c[sizeof (long)];
9685 } u;
9686 u.l = 1;
9687 exit (u.c[sizeof (long) - 1] == 1);
9688}
9689EOF
a20b6d3a 9690if { (eval echo configure:9691: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10f2d63a
VZ
9691then
9692 ac_cv_c_bigendian=no
9693else
9694 echo "configure: failed program was:" >&5
9695 cat conftest.$ac_ext >&5
9696 rm -fr conftest*
9697 ac_cv_c_bigendian=yes
9698fi
9699rm -fr conftest*
9700fi
9701
9702fi
9703fi
9704
9705echo "$ac_t""$ac_cv_c_bigendian" 1>&6
9706if test $ac_cv_c_bigendian = unknown; then
9707 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
9708fi
9709if test $ac_cv_c_bigendian = yes; then
9710 cat >> confdefs.h <<\EOF
9711#define WORDS_BIGENDIAN 1
9712EOF
9713
9714fi
9715
9716
9717
9718 if test "$cross_compiling" = "yes"; then
9719 cat >> confdefs.h <<\EOF
9720#define wxUSE_IOSTREAMH 1
9721EOF
9722
9723 else
9724
9725 ac_ext=C
9726# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9727ac_cpp='$CXXCPP $CPPFLAGS'
9728ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9729ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9730cross_compiling=$ac_cv_prog_cxx_cross
9731
9732
9733 for ac_hdr in iostream
9734do
9735ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9736echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
a20b6d3a 9737echo "configure:9738: checking for $ac_hdr" >&5
10f2d63a
VZ
9738if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9739 echo $ac_n "(cached) $ac_c" 1>&6
9740else
9741 cat > conftest.$ac_ext <<EOF
a20b6d3a 9742#line 9743 "configure"
10f2d63a
VZ
9743#include "confdefs.h"
9744#include <$ac_hdr>
9745EOF
9746ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
a20b6d3a 9747{ (eval echo configure:9748: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
9748ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9749if test -z "$ac_err"; then
9750 rm -rf conftest*
9751 eval "ac_cv_header_$ac_safe=yes"
9752else
9753 echo "$ac_err" >&5
9754 echo "configure: failed program was:" >&5
9755 cat conftest.$ac_ext >&5
9756 rm -rf conftest*
9757 eval "ac_cv_header_$ac_safe=no"
9758fi
9759rm -f conftest*
9760fi
9761if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9762 echo "$ac_t""yes" 1>&6
9763 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9764 cat >> confdefs.h <<EOF
9765#define $ac_tr_hdr 1
9766EOF
9767
9768else
9769 echo "$ac_t""no" 1>&6
9770fi
9771done
9772
9773
9774 if test "x$HAVE_IOSTREAM" = x ; then
9775 cat >> confdefs.h <<\EOF
9776#define wxUSE_IOSTREAMH 1
9777EOF
9778
9779 else
9780 :
9781 fi
9782
9783 ac_ext=c
9784# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9785ac_cpp='$CPP $CPPFLAGS'
9786ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9787ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9788cross_compiling=$ac_cv_prog_cc_cross
9789
9790 fi
9791
9792
9793
9794 echo $ac_n "checking if C++ compiler supports bool""... $ac_c" 1>&6
a20b6d3a 9795echo "configure:9796: checking if C++ compiler supports bool" >&5
10f2d63a
VZ
9796if eval "test \"`echo '$''{'wx_cv_cpp_bool'+set}'`\" = set"; then
9797 echo $ac_n "(cached) $ac_c" 1>&6
9798else
9799
9800
9801 ac_ext=C
9802# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9803ac_cpp='$CXXCPP $CPPFLAGS'
9804ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9805ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9806cross_compiling=$ac_cv_prog_cxx_cross
9807
9808
9809 cat > conftest.$ac_ext <<EOF
a20b6d3a 9810#line 9811 "configure"
10f2d63a
VZ
9811#include "confdefs.h"
9812
9813
9814int main() {
9815
9816 bool b = true;
9817
9818 return 0;
9819
9820; return 0; }
9821EOF
a20b6d3a 9822if { (eval echo configure:9823: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10f2d63a
VZ
9823 rm -rf conftest*
9824
9825 cat >> confdefs.h <<\EOF
9826#define HAVE_BOOL 1
9827EOF
9828
9829 wx_cv_cpp_bool=yes
9830
9831else
9832 echo "configure: failed program was:" >&5
9833 cat conftest.$ac_ext >&5
9834 rm -rf conftest*
9835
9836 wx_cv_cpp_bool=no
9837
9838
9839fi
9840rm -f conftest*
9841
9842 ac_ext=c
9843# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9844ac_cpp='$CPP $CPPFLAGS'
9845ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9846ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9847cross_compiling=$ac_cv_prog_cc_cross
9848
9849
9850fi
9851
9852echo "$ac_t""$wx_cv_cpp_bool" 1>&6
9853
9854 if test "$wx_cv_cpp_bool" = "yes"; then
9855 cat >> confdefs.h <<\EOF
9856#define HAVE_BOOL 1
9857EOF
9858
9859 fi
9860
9861
9862
10f2d63a 9863echo $ac_n "checking if you need GNU extensions""... $ac_c" 1>&6
a20b6d3a 9864echo "configure:9865: checking if you need GNU extensions" >&5
10f2d63a
VZ
9865if eval "test \"`echo '$''{'wx_cv_gnu_extensions'+set}'`\" = set"; then
9866 echo $ac_n "(cached) $ac_c" 1>&6
9867else
9868
9869 cat > conftest.$ac_ext <<EOF
a20b6d3a 9870#line 9871 "configure"
10f2d63a
VZ
9871#include "confdefs.h"
9872#include <features.h>
9873int main() {
9874
9875
9876#ifndef __GNU_LIBRARY__
9877 Compile error wanted
9878#endif
9879
9880
9881; return 0; }
9882EOF
a20b6d3a 9883if { (eval echo configure:9884: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10f2d63a
VZ
9884 rm -rf conftest*
9885 wx_cv_gnu_extensions=yes
9886else
9887 echo "configure: failed program was:" >&5
9888 cat conftest.$ac_ext >&5
9889 rm -rf conftest*
9890 wx_cv_gnu_extensions=no
9891fi
9892rm -f conftest*
9893
9894fi
9895
9896
9897echo "$ac_t""$wx_cv_gnu_extensions" 1>&6
9898if test "$wx_cv_gnu_extensions" = "yes"; then
9899 cat >> confdefs.h <<EOF
9900#define _GNU_SOURCE 1
9901EOF
9902
9903fi
9904
9905
9906
9907echo $ac_n "checking for wcslen in -lc""... $ac_c" 1>&6
a20b6d3a 9908echo "configure:9909: checking for wcslen in -lc" >&5
10f2d63a
VZ
9909ac_lib_var=`echo c'_'wcslen | sed 'y%./+-%__p_%'`
9910if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9911 echo $ac_n "(cached) $ac_c" 1>&6
9912else
9913 ac_save_LIBS="$LIBS"
9914LIBS="-lc $LIBS"
9915cat > conftest.$ac_ext <<EOF
a20b6d3a 9916#line 9917 "configure"
10f2d63a
VZ
9917#include "confdefs.h"
9918/* Override any gcc2 internal prototype to avoid an error. */
9919/* We use char because int might match the return type of a gcc2
9920 builtin and then its argument prototype would still apply. */
9921char wcslen();
9922
9923int main() {
9924wcslen()
9925; return 0; }
9926EOF
a20b6d3a 9927if { (eval echo configure:9928: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
9928 rm -rf conftest*
9929 eval "ac_cv_lib_$ac_lib_var=yes"
9930else
9931 echo "configure: failed program was:" >&5
9932 cat conftest.$ac_ext >&5
9933 rm -rf conftest*
9934 eval "ac_cv_lib_$ac_lib_var=no"
9935fi
9936rm -f conftest*
9937LIBS="$ac_save_LIBS"
9938
9939fi
9940if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9941 echo "$ac_t""yes" 1>&6
9942
9943 cat >> confdefs.h <<\EOF
9944#define HAVE_WCSLEN 1
9945EOF
9946
9947 WCHAR_LINK=""
9948
9949else
9950 echo "$ac_t""no" 1>&6
9951
9952 echo $ac_n "checking for wcslen in -lw""... $ac_c" 1>&6
a20b6d3a 9953echo "configure:9954: checking for wcslen in -lw" >&5
10f2d63a
VZ
9954ac_lib_var=`echo w'_'wcslen | sed 'y%./+-%__p_%'`
9955if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9956 echo $ac_n "(cached) $ac_c" 1>&6
9957else
9958 ac_save_LIBS="$LIBS"
9959LIBS="-lw $LIBS"
9960cat > conftest.$ac_ext <<EOF
a20b6d3a 9961#line 9962 "configure"
10f2d63a
VZ
9962#include "confdefs.h"
9963/* Override any gcc2 internal prototype to avoid an error. */
9964/* We use char because int might match the return type of a gcc2
9965 builtin and then its argument prototype would still apply. */
9966char wcslen();
9967
9968int main() {
9969wcslen()
9970; return 0; }
9971EOF
a20b6d3a 9972if { (eval echo configure:9973: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
9973 rm -rf conftest*
9974 eval "ac_cv_lib_$ac_lib_var=yes"
9975else
9976 echo "configure: failed program was:" >&5
9977 cat conftest.$ac_ext >&5
9978 rm -rf conftest*
9979 eval "ac_cv_lib_$ac_lib_var=no"
9980fi
9981rm -f conftest*
9982LIBS="$ac_save_LIBS"
9983
9984fi
9985if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9986 echo "$ac_t""yes" 1>&6
9987
9988 cat >> confdefs.h <<\EOF
9989#define HAVE_WCSLEN 1
9990EOF
9991
9992 WCHAR_LINK="-lw"
9993
9994else
9995 echo "$ac_t""no" 1>&6
9996fi
9997
9998
9999fi
10000
10001
10002echo $ac_n "checking for vprintf""... $ac_c" 1>&6
a20b6d3a 10003echo "configure:10004: checking for vprintf" >&5
10f2d63a
VZ
10004if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
10005 echo $ac_n "(cached) $ac_c" 1>&6
10006else
10007 cat > conftest.$ac_ext <<EOF
a20b6d3a 10008#line 10009 "configure"
10f2d63a
VZ
10009#include "confdefs.h"
10010/* System header to define __stub macros and hopefully few prototypes,
10011 which can conflict with char vprintf(); below. */
10012#include <assert.h>
10013/* Override any gcc2 internal prototype to avoid an error. */
10014/* We use char because int might match the return type of a gcc2
10015 builtin and then its argument prototype would still apply. */
10016char vprintf();
10017
10018int main() {
10019
10020/* The GNU C library defines this for functions which it implements
10021 to always fail with ENOSYS. Some functions are actually named
10022 something starting with __ and the normal name is an alias. */
10023#if defined (__stub_vprintf) || defined (__stub___vprintf)
10024choke me
10025#else
e8482f24 10026vprintf();
10f2d63a
VZ
10027#endif
10028
10029; return 0; }
10030EOF
a20b6d3a 10031if { (eval echo configure:10032: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
10032 rm -rf conftest*
10033 eval "ac_cv_func_vprintf=yes"
10034else
10035 echo "configure: failed program was:" >&5
10036 cat conftest.$ac_ext >&5
10037 rm -rf conftest*
10038 eval "ac_cv_func_vprintf=no"
10039fi
10040rm -f conftest*
10041fi
10042
10043if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
10044 echo "$ac_t""yes" 1>&6
10045 cat >> confdefs.h <<\EOF
10046#define HAVE_VPRINTF 1
10047EOF
10048
10049else
10050 echo "$ac_t""no" 1>&6
10051fi
10052
10053if test "$ac_cv_func_vprintf" != yes; then
10054echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
a20b6d3a 10055echo "configure:10056: checking for _doprnt" >&5
10f2d63a
VZ
10056if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
10057 echo $ac_n "(cached) $ac_c" 1>&6
10058else
10059 cat > conftest.$ac_ext <<EOF
a20b6d3a 10060#line 10061 "configure"
10f2d63a
VZ
10061#include "confdefs.h"
10062/* System header to define __stub macros and hopefully few prototypes,
10063 which can conflict with char _doprnt(); below. */
10064#include <assert.h>
10065/* Override any gcc2 internal prototype to avoid an error. */
10066/* We use char because int might match the return type of a gcc2
10067 builtin and then its argument prototype would still apply. */
10068char _doprnt();
10069
10070int main() {
10071
10072/* The GNU C library defines this for functions which it implements
10073 to always fail with ENOSYS. Some functions are actually named
10074 something starting with __ and the normal name is an alias. */
10075#if defined (__stub__doprnt) || defined (__stub____doprnt)
10076choke me
10077#else
e8482f24 10078_doprnt();
10f2d63a
VZ
10079#endif
10080
10081; return 0; }
10082EOF
a20b6d3a 10083if { (eval echo configure:10084: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
10084 rm -rf conftest*
10085 eval "ac_cv_func__doprnt=yes"
10086else
10087 echo "configure: failed program was:" >&5
10088 cat conftest.$ac_ext >&5
10089 rm -rf conftest*
10090 eval "ac_cv_func__doprnt=no"
10091fi
10092rm -f conftest*
10093fi
10094
10095if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
10096 echo "$ac_t""yes" 1>&6
10097 cat >> confdefs.h <<\EOF
10098#define HAVE_DOPRNT 1
10099EOF
10100
10101else
10102 echo "$ac_t""no" 1>&6
10103fi
10104
10105fi
10106
10107
10108for ac_func in vsnprintf
10109do
10110echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
a20b6d3a 10111echo "configure:10112: checking for $ac_func" >&5
10f2d63a
VZ
10112if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10113 echo $ac_n "(cached) $ac_c" 1>&6
10114else
10115 cat > conftest.$ac_ext <<EOF
a20b6d3a 10116#line 10117 "configure"
10f2d63a
VZ
10117#include "confdefs.h"
10118/* System header to define __stub macros and hopefully few prototypes,
10119 which can conflict with char $ac_func(); below. */
10120#include <assert.h>
10121/* Override any gcc2 internal prototype to avoid an error. */
10122/* We use char because int might match the return type of a gcc2
10123 builtin and then its argument prototype would still apply. */
10124char $ac_func();
10125
10126int main() {
10127
10128/* The GNU C library defines this for functions which it implements
10129 to always fail with ENOSYS. Some functions are actually named
10130 something starting with __ and the normal name is an alias. */
10131#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10132choke me
10133#else
e8482f24 10134$ac_func();
10f2d63a
VZ
10135#endif
10136
10137; return 0; }
10138EOF
a20b6d3a 10139if { (eval echo configure:10140: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
10140 rm -rf conftest*
10141 eval "ac_cv_func_$ac_func=yes"
10142else
10143 echo "configure: failed program was:" >&5
10144 cat conftest.$ac_ext >&5
10145 rm -rf conftest*
10146 eval "ac_cv_func_$ac_func=no"
10147fi
10148rm -f conftest*
10149fi
10150
10151if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10152 echo "$ac_t""yes" 1>&6
10153 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10154 cat >> confdefs.h <<EOF
10155#define $ac_tr_func 1
10156EOF
10157 cat >> confdefs.h <<\EOF
10158#define HAVE_VSNPRINTF 1
10159EOF
10160
10161else
10162 echo "$ac_t""no" 1>&6
10163echo "configure: warning: unsafe function sprintf will be used instead of snprintf" 1>&2
10164
10165fi
10166done
10167
10168
10169
10170ac_ext=C
10171# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10172ac_cpp='$CXXCPP $CPPFLAGS'
10173ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10174ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10175cross_compiling=$ac_cv_prog_cxx_cross
10176
10177
10178echo $ac_n "checking for vsscanf""... $ac_c" 1>&6
a20b6d3a 10179echo "configure:10180: checking for vsscanf" >&5
10f2d63a
VZ
10180if eval "test \"`echo '$''{'wx_cv_func_vsscanf'+set}'`\" = set"; then
10181 echo $ac_n "(cached) $ac_c" 1>&6
10182else
10183
10184 if test "$cross_compiling" = yes; then
10185 wx_cv_func_vsscanf=no
10186
10187else
10188 cat > conftest.$ac_ext <<EOF
a20b6d3a 10189#line 10190 "configure"
10f2d63a
VZ
10190#include "confdefs.h"
10191#ifdef __cplusplus
10192extern "C" void exit(int);
10193#endif
10194
10195 #include <stdio.h>
10196 #include <stdarg.h>
10197
10198 int try_vsscanf(const char *format, ...)
10199 {
10200 va_list ap;
10201 va_start(ap, format);
10202
10203 vsscanf("17", format, ap);
10204
10205 va_end(ap);
10206 }
10207
10208 int main()
10209 {
10210 int i;
10211 try_vsscanf("%d", &i);
10212 return i == 17 ? 0 : 1;
10213 }
10214
10215EOF
a20b6d3a 10216if { (eval echo configure:10217: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10f2d63a
VZ
10217then
10218
10219 cat >> confdefs.h <<\EOF
10220#define HAVE_VSSCANF 1
10221EOF
10222
10223 wx_cv_func_vsscanf=yes
10224
10225else
10226 echo "configure: failed program was:" >&5
10227 cat conftest.$ac_ext >&5
10228 rm -fr conftest*
10229 wx_cv_func_vsscanf=no
10230fi
10231rm -fr conftest*
10232fi
10233
10234
10235fi
10236
10237echo "$ac_t""$wx_cv_func_vsscanf" 1>&6
10238
10239ac_ext=c
10240# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10241ac_cpp='$CPP $CPPFLAGS'
10242ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10243ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10244cross_compiling=$ac_cv_prog_cc_cross
10245
10246
b089607b 10247if test "$TOOLKIT" != "MSW"; then
10f2d63a 10248
eb4efbdc
VZ
10249if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
10250 for ac_func in sigaction
10251do
10252echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
a20b6d3a 10253echo "configure:10254: checking for $ac_func" >&5
eb4efbdc
VZ
10254if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10255 echo $ac_n "(cached) $ac_c" 1>&6
10256else
10257 cat > conftest.$ac_ext <<EOF
a20b6d3a 10258#line 10259 "configure"
eb4efbdc
VZ
10259#include "confdefs.h"
10260/* System header to define __stub macros and hopefully few prototypes,
10261 which can conflict with char $ac_func(); below. */
10262#include <assert.h>
10263/* Override any gcc2 internal prototype to avoid an error. */
10264/* We use char because int might match the return type of a gcc2
10265 builtin and then its argument prototype would still apply. */
10266char $ac_func();
10267
10268int main() {
10269
10270/* The GNU C library defines this for functions which it implements
10271 to always fail with ENOSYS. Some functions are actually named
10272 something starting with __ and the normal name is an alias. */
10273#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10274choke me
10275#else
10276$ac_func();
10277#endif
10278
10279; return 0; }
10280EOF
a20b6d3a 10281if { (eval echo configure:10282: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
eb4efbdc
VZ
10282 rm -rf conftest*
10283 eval "ac_cv_func_$ac_func=yes"
10284else
10285 echo "configure: failed program was:" >&5
10286 cat conftest.$ac_ext >&5
10287 rm -rf conftest*
10288 eval "ac_cv_func_$ac_func=no"
10289fi
10290rm -f conftest*
10291fi
10292
10293if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10294 echo "$ac_t""yes" 1>&6
10295 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10296 cat >> confdefs.h <<EOF
10297#define $ac_tr_func 1
10298EOF
10299
10300else
10301 echo "$ac_t""no" 1>&6
10302fi
10303done
10304
10305
10306 if test "$ac_cv_func_sigaction" = "no"; then
10307 echo "configure: warning: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" 1>&2
10308 wxUSE_ON_FATAL_EXCEPTION=no
10309 fi
10310fi
10311
10f2d63a
VZ
10312for ac_func in vfork
10313do
10314echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
a20b6d3a 10315echo "configure:10316: checking for $ac_func" >&5
10f2d63a
VZ
10316if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10317 echo $ac_n "(cached) $ac_c" 1>&6
10318else
10319 cat > conftest.$ac_ext <<EOF
a20b6d3a 10320#line 10321 "configure"
10f2d63a
VZ
10321#include "confdefs.h"
10322/* System header to define __stub macros and hopefully few prototypes,
10323 which can conflict with char $ac_func(); below. */
10324#include <assert.h>
10325/* Override any gcc2 internal prototype to avoid an error. */
10326/* We use char because int might match the return type of a gcc2
10327 builtin and then its argument prototype would still apply. */
10328char $ac_func();
10329
10330int main() {
10331
10332/* The GNU C library defines this for functions which it implements
10333 to always fail with ENOSYS. Some functions are actually named
10334 something starting with __ and the normal name is an alias. */
10335#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10336choke me
10337#else
e8482f24 10338$ac_func();
10f2d63a
VZ
10339#endif
10340
10341; return 0; }
10342EOF
a20b6d3a 10343if { (eval echo configure:10344: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
270a909e
VZ
10344 rm -rf conftest*
10345 eval "ac_cv_func_$ac_func=yes"
10346else
10347 echo "configure: failed program was:" >&5
10348 cat conftest.$ac_ext >&5
10349 rm -rf conftest*
10350 eval "ac_cv_func_$ac_func=no"
10351fi
10352rm -f conftest*
10353fi
10354
10355if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10356 echo "$ac_t""yes" 1>&6
10357 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10358 cat >> confdefs.h <<EOF
10359#define $ac_tr_func 1
10360EOF
10361
10362else
10363 echo "$ac_t""no" 1>&6
10364fi
10365done
10366
10367
10368for ac_func in timegm
10369do
10370echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
a20b6d3a 10371echo "configure:10372: checking for $ac_func" >&5
270a909e
VZ
10372if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10373 echo $ac_n "(cached) $ac_c" 1>&6
10374else
10375 cat > conftest.$ac_ext <<EOF
a20b6d3a 10376#line 10377 "configure"
270a909e
VZ
10377#include "confdefs.h"
10378/* System header to define __stub macros and hopefully few prototypes,
10379 which can conflict with char $ac_func(); below. */
10380#include <assert.h>
10381/* Override any gcc2 internal prototype to avoid an error. */
10382/* We use char because int might match the return type of a gcc2
10383 builtin and then its argument prototype would still apply. */
10384char $ac_func();
10385
10386int main() {
10387
10388/* The GNU C library defines this for functions which it implements
10389 to always fail with ENOSYS. Some functions are actually named
10390 something starting with __ and the normal name is an alias. */
10391#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10392choke me
10393#else
e8482f24 10394$ac_func();
270a909e
VZ
10395#endif
10396
10397; return 0; }
10398EOF
a20b6d3a 10399if { (eval echo configure:10400: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
10400 rm -rf conftest*
10401 eval "ac_cv_func_$ac_func=yes"
10402else
10403 echo "configure: failed program was:" >&5
10404 cat conftest.$ac_ext >&5
10405 rm -rf conftest*
10406 eval "ac_cv_func_$ac_func=no"
10407fi
10408rm -f conftest*
10409fi
10410
10411if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10412 echo "$ac_t""yes" 1>&6
10413 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10414 cat >> confdefs.h <<EOF
10415#define $ac_tr_func 1
10416EOF
10417
10418else
10419 echo "$ac_t""no" 1>&6
10420fi
10421done
10422
10423
b12915c1
VZ
10424HAVE_SOME_SLEEP_FUNC=0
10425if test "$USE_BEOS" = 1; then
10426 cat >> confdefs.h <<\EOF
10427#define HAVE_SLEEP 1
10428EOF
10429
10430 HAVE_SOME_SLEEP_FUNC=1
10431fi
10432
10433if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
10434 POSIX4_LINK=
10435 for ac_func in nanosleep
10f2d63a
VZ
10436do
10437echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
a20b6d3a 10438echo "configure:10439: checking for $ac_func" >&5
10f2d63a
VZ
10439if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10440 echo $ac_n "(cached) $ac_c" 1>&6
10441else
10442 cat > conftest.$ac_ext <<EOF
a20b6d3a 10443#line 10444 "configure"
10f2d63a
VZ
10444#include "confdefs.h"
10445/* System header to define __stub macros and hopefully few prototypes,
10446 which can conflict with char $ac_func(); below. */
10447#include <assert.h>
10448/* Override any gcc2 internal prototype to avoid an error. */
10449/* We use char because int might match the return type of a gcc2
10450 builtin and then its argument prototype would still apply. */
10451char $ac_func();
10452
10453int main() {
10454
10455/* The GNU C library defines this for functions which it implements
10456 to always fail with ENOSYS. Some functions are actually named
10457 something starting with __ and the normal name is an alias. */
10458#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10459choke me
10460#else
e8482f24 10461$ac_func();
10f2d63a
VZ
10462#endif
10463
10464; return 0; }
10465EOF
a20b6d3a 10466if { (eval echo configure:10467: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
10467 rm -rf conftest*
10468 eval "ac_cv_func_$ac_func=yes"
10469else
10470 echo "configure: failed program was:" >&5
10471 cat conftest.$ac_ext >&5
10472 rm -rf conftest*
10473 eval "ac_cv_func_$ac_func=no"
10474fi
10475rm -f conftest*
10476fi
10477
10478if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10479 echo "$ac_t""yes" 1>&6
10480 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10481 cat >> confdefs.h <<EOF
10482#define $ac_tr_func 1
10483EOF
10484 cat >> confdefs.h <<\EOF
10485#define HAVE_NANOSLEEP 1
10486EOF
10487
10488else
10489 echo "$ac_t""no" 1>&6
10490echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6
a20b6d3a 10491echo "configure:10492: checking for nanosleep in -lposix4" >&5
10f2d63a
VZ
10492ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'`
10493if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10494 echo $ac_n "(cached) $ac_c" 1>&6
10495else
10496 ac_save_LIBS="$LIBS"
10497LIBS="-lposix4 $LIBS"
10498cat > conftest.$ac_ext <<EOF
a20b6d3a 10499#line 10500 "configure"
10f2d63a
VZ
10500#include "confdefs.h"
10501/* Override any gcc2 internal prototype to avoid an error. */
10502/* We use char because int might match the return type of a gcc2
10503 builtin and then its argument prototype would still apply. */
10504char nanosleep();
10505
10506int main() {
10507nanosleep()
10508; return 0; }
10509EOF
a20b6d3a 10510if { (eval echo configure:10511: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
10511 rm -rf conftest*
10512 eval "ac_cv_lib_$ac_lib_var=yes"
10513else
10514 echo "configure: failed program was:" >&5
10515 cat conftest.$ac_ext >&5
10516 rm -rf conftest*
10517 eval "ac_cv_lib_$ac_lib_var=no"
10518fi
10519rm -f conftest*
10520LIBS="$ac_save_LIBS"
10521
10522fi
10523if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10524 echo "$ac_t""yes" 1>&6
10525
b12915c1 10526 cat >> confdefs.h <<\EOF
10f2d63a
VZ
10527#define HAVE_NANOSLEEP 1
10528EOF
10529
b12915c1
VZ
10530 POSIX4_LINK="-lposix4"
10531
10f2d63a
VZ
10532else
10533 echo "$ac_t""no" 1>&6
10534
b12915c1 10535 for ac_func in usleep
10f2d63a
VZ
10536do
10537echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
a20b6d3a 10538echo "configure:10539: checking for $ac_func" >&5
10f2d63a
VZ
10539if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10540 echo $ac_n "(cached) $ac_c" 1>&6
10541else
10542 cat > conftest.$ac_ext <<EOF
a20b6d3a 10543#line 10544 "configure"
10f2d63a
VZ
10544#include "confdefs.h"
10545/* System header to define __stub macros and hopefully few prototypes,
10546 which can conflict with char $ac_func(); below. */
10547#include <assert.h>
10548/* Override any gcc2 internal prototype to avoid an error. */
10549/* We use char because int might match the return type of a gcc2
10550 builtin and then its argument prototype would still apply. */
10551char $ac_func();
10552
10553int main() {
10554
10555/* The GNU C library defines this for functions which it implements
10556 to always fail with ENOSYS. Some functions are actually named
10557 something starting with __ and the normal name is an alias. */
10558#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10559choke me
10560#else
e8482f24 10561$ac_func();
10f2d63a
VZ
10562#endif
10563
10564; return 0; }
10565EOF
a20b6d3a 10566if { (eval echo configure:10567: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
10567 rm -rf conftest*
10568 eval "ac_cv_func_$ac_func=yes"
10569else
10570 echo "configure: failed program was:" >&5
10571 cat conftest.$ac_ext >&5
10572 rm -rf conftest*
10573 eval "ac_cv_func_$ac_func=no"
10574fi
10575rm -f conftest*
10576fi
10577
10578if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10579 echo "$ac_t""yes" 1>&6
10580 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10581 cat >> confdefs.h <<EOF
10582#define $ac_tr_func 1
10583EOF
b12915c1 10584
10f2d63a
VZ
10585else
10586 echo "$ac_t""no" 1>&6
10f2d63a
VZ
10587fi
10588done
10589
b12915c1
VZ
10590 echo "configure: warning: wxSleep() function will not work" 1>&2
10591
10592
10f2d63a
VZ
10593fi
10594
b12915c1
VZ
10595
10596
10f2d63a
VZ
10597fi
10598done
10599
b12915c1 10600fi
10f2d63a
VZ
10601
10602for ac_func in uname gethostname
10603do
10604echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
a20b6d3a 10605echo "configure:10606: checking for $ac_func" >&5
10f2d63a
VZ
10606if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10607 echo $ac_n "(cached) $ac_c" 1>&6
10608else
10609 cat > conftest.$ac_ext <<EOF
a20b6d3a 10610#line 10611 "configure"
10f2d63a
VZ
10611#include "confdefs.h"
10612/* System header to define __stub macros and hopefully few prototypes,
10613 which can conflict with char $ac_func(); below. */
10614#include <assert.h>
10615/* Override any gcc2 internal prototype to avoid an error. */
10616/* We use char because int might match the return type of a gcc2
10617 builtin and then its argument prototype would still apply. */
10618char $ac_func();
10619
10620int main() {
10621
10622/* The GNU C library defines this for functions which it implements
10623 to always fail with ENOSYS. Some functions are actually named
10624 something starting with __ and the normal name is an alias. */
10625#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10626choke me
10627#else
e8482f24 10628$ac_func();
10f2d63a
VZ
10629#endif
10630
10631; return 0; }
10632EOF
a20b6d3a 10633if { (eval echo configure:10634: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
10634 rm -rf conftest*
10635 eval "ac_cv_func_$ac_func=yes"
10636else
10637 echo "configure: failed program was:" >&5
10638 cat conftest.$ac_ext >&5
10639 rm -rf conftest*
10640 eval "ac_cv_func_$ac_func=no"
10641fi
10642rm -f conftest*
10643fi
10644
10645if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10646 echo "$ac_t""yes" 1>&6
10647 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10648 cat >> confdefs.h <<EOF
10649#define $ac_tr_func 1
10650EOF
10651 break
10652else
10653 echo "$ac_t""no" 1>&6
10654fi
10655done
10656
10657
6098c7f9
VZ
10658
10659ac_ext=C
10660# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10661ac_cpp='$CXXCPP $CPPFLAGS'
10662ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10663ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10664cross_compiling=$ac_cv_prog_cxx_cross
10665
10666
10f2d63a
VZ
10667for ac_func in strtok_r
10668do
10669echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
a20b6d3a 10670echo "configure:10671: checking for $ac_func" >&5
10f2d63a
VZ
10671if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10672 echo $ac_n "(cached) $ac_c" 1>&6
10673else
10674 cat > conftest.$ac_ext <<EOF
a20b6d3a 10675#line 10676 "configure"
10f2d63a
VZ
10676#include "confdefs.h"
10677/* System header to define __stub macros and hopefully few prototypes,
10678 which can conflict with char $ac_func(); below. */
10679#include <assert.h>
10680/* Override any gcc2 internal prototype to avoid an error. */
6098c7f9
VZ
10681#ifdef __cplusplus
10682extern "C"
10683#endif
10f2d63a
VZ
10684/* We use char because int might match the return type of a gcc2
10685 builtin and then its argument prototype would still apply. */
10686char $ac_func();
10687
10688int main() {
10689
10690/* The GNU C library defines this for functions which it implements
10691 to always fail with ENOSYS. Some functions are actually named
10692 something starting with __ and the normal name is an alias. */
10693#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10694choke me
10695#else
e8482f24 10696$ac_func();
10f2d63a
VZ
10697#endif
10698
10699; return 0; }
10700EOF
a20b6d3a 10701if { (eval echo configure:10702: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
10702 rm -rf conftest*
10703 eval "ac_cv_func_$ac_func=yes"
10704else
10705 echo "configure: failed program was:" >&5
10706 cat conftest.$ac_ext >&5
10707 rm -rf conftest*
10708 eval "ac_cv_func_$ac_func=no"
10709fi
10710rm -f conftest*
10711fi
10712
10713if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10714 echo "$ac_t""yes" 1>&6
10715 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10716 cat >> confdefs.h <<EOF
10717#define $ac_tr_func 1
10718EOF
10719
10720else
10721 echo "$ac_t""no" 1>&6
10722fi
10723done
10724
10725
6098c7f9
VZ
10726ac_ext=c
10727# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10728ac_cpp='$CPP $CPPFLAGS'
10729ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10730ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10731cross_compiling=$ac_cv_prog_cc_cross
10732
10733
c63c7106 10734INET_LINK=
10f2d63a
VZ
10735for ac_func in inet_addr
10736do
10737echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
a20b6d3a 10738echo "configure:10739: checking for $ac_func" >&5
10f2d63a
VZ
10739if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10740 echo $ac_n "(cached) $ac_c" 1>&6
10741else
10742 cat > conftest.$ac_ext <<EOF
a20b6d3a 10743#line 10744 "configure"
10f2d63a
VZ
10744#include "confdefs.h"
10745/* System header to define __stub macros and hopefully few prototypes,
10746 which can conflict with char $ac_func(); below. */
10747#include <assert.h>
10748/* Override any gcc2 internal prototype to avoid an error. */
10749/* We use char because int might match the return type of a gcc2
10750 builtin and then its argument prototype would still apply. */
10751char $ac_func();
10752
10753int main() {
10754
10755/* The GNU C library defines this for functions which it implements
10756 to always fail with ENOSYS. Some functions are actually named
10757 something starting with __ and the normal name is an alias. */
10758#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10759choke me
10760#else
e8482f24 10761$ac_func();
10f2d63a
VZ
10762#endif
10763
10764; return 0; }
10765EOF
a20b6d3a 10766if { (eval echo configure:10767: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
10767 rm -rf conftest*
10768 eval "ac_cv_func_$ac_func=yes"
10769else
10770 echo "configure: failed program was:" >&5
10771 cat conftest.$ac_ext >&5
10772 rm -rf conftest*
10773 eval "ac_cv_func_$ac_func=no"
10774fi
10775rm -f conftest*
10776fi
10777
10778if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10779 echo "$ac_t""yes" 1>&6
10780 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10781 cat >> confdefs.h <<EOF
10782#define $ac_tr_func 1
10783EOF
c63c7106
VZ
10784 cat >> confdefs.h <<\EOF
10785#define HAVE_INET_ADDR 1
10786EOF
10787
10f2d63a
VZ
10788else
10789 echo "$ac_t""no" 1>&6
c63c7106 10790echo $ac_n "checking for inet_addr in -lnsl""... $ac_c" 1>&6
a20b6d3a 10791echo "configure:10792: checking for inet_addr in -lnsl" >&5
c63c7106
VZ
10792ac_lib_var=`echo nsl'_'inet_addr | sed 'y%./+-%__p_%'`
10793if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10794 echo $ac_n "(cached) $ac_c" 1>&6
10795else
10796 ac_save_LIBS="$LIBS"
10797LIBS="-lnsl $LIBS"
10798cat > conftest.$ac_ext <<EOF
a20b6d3a 10799#line 10800 "configure"
c63c7106
VZ
10800#include "confdefs.h"
10801/* Override any gcc2 internal prototype to avoid an error. */
10802/* We use char because int might match the return type of a gcc2
10803 builtin and then its argument prototype would still apply. */
10804char inet_addr();
10805
10806int main() {
10807inet_addr()
10808; return 0; }
10809EOF
a20b6d3a 10810if { (eval echo configure:10811: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
c63c7106
VZ
10811 rm -rf conftest*
10812 eval "ac_cv_lib_$ac_lib_var=yes"
10813else
10814 echo "configure: failed program was:" >&5
10815 cat conftest.$ac_ext >&5
10816 rm -rf conftest*
10817 eval "ac_cv_lib_$ac_lib_var=no"
10818fi
10819rm -f conftest*
10820LIBS="$ac_save_LIBS"
10821
10822fi
10823if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10824 echo "$ac_t""yes" 1>&6
10825 INET_LINK="nsl"
10826else
10827 echo "$ac_t""no" 1>&6
10828echo $ac_n "checking for inet_addr in -lresolv""... $ac_c" 1>&6
a20b6d3a 10829echo "configure:10830: checking for inet_addr in -lresolv" >&5
c63c7106
VZ
10830ac_lib_var=`echo resolv'_'inet_addr | sed 'y%./+-%__p_%'`
10831if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10832 echo $ac_n "(cached) $ac_c" 1>&6
10833else
10834 ac_save_LIBS="$LIBS"
10835LIBS="-lresolv $LIBS"
10836cat > conftest.$ac_ext <<EOF
a20b6d3a 10837#line 10838 "configure"
c63c7106
VZ
10838#include "confdefs.h"
10839/* Override any gcc2 internal prototype to avoid an error. */
10840/* We use char because int might match the return type of a gcc2
10841 builtin and then its argument prototype would still apply. */
10842char inet_addr();
10843
10844int main() {
10845inet_addr()
10846; return 0; }
10847EOF
a20b6d3a 10848if { (eval echo configure:10849: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
c63c7106
VZ
10849 rm -rf conftest*
10850 eval "ac_cv_lib_$ac_lib_var=yes"
10851else
10852 echo "configure: failed program was:" >&5
10853 cat conftest.$ac_ext >&5
10854 rm -rf conftest*
10855 eval "ac_cv_lib_$ac_lib_var=no"
10856fi
10857rm -f conftest*
10858LIBS="$ac_save_LIBS"
10859
10860fi
10861if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10862 echo "$ac_t""yes" 1>&6
10863 INET_LINK="resolv"
10864
10865else
10866 echo "$ac_t""no" 1>&6
10867fi
10868
10869
10870fi
10871
10872
10873
10f2d63a
VZ
10874fi
10875done
10876
c63c7106 10877
10f2d63a
VZ
10878for ac_func in inet_aton
10879do
10880echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
a20b6d3a 10881echo "configure:10882: checking for $ac_func" >&5
10f2d63a
VZ
10882if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10883 echo $ac_n "(cached) $ac_c" 1>&6
10884else
10885 cat > conftest.$ac_ext <<EOF
a20b6d3a 10886#line 10887 "configure"
10f2d63a
VZ
10887#include "confdefs.h"
10888/* System header to define __stub macros and hopefully few prototypes,
10889 which can conflict with char $ac_func(); below. */
10890#include <assert.h>
10891/* Override any gcc2 internal prototype to avoid an error. */
10892/* We use char because int might match the return type of a gcc2
10893 builtin and then its argument prototype would still apply. */
10894char $ac_func();
10895
10896int main() {
10897
10898/* The GNU C library defines this for functions which it implements
10899 to always fail with ENOSYS. Some functions are actually named
10900 something starting with __ and the normal name is an alias. */
10901#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10902choke me
10903#else
e8482f24 10904$ac_func();
10f2d63a
VZ
10905#endif
10906
10907; return 0; }
10908EOF
a20b6d3a 10909if { (eval echo configure:10910: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
10910 rm -rf conftest*
10911 eval "ac_cv_func_$ac_func=yes"
10912else
10913 echo "configure: failed program was:" >&5
10914 cat conftest.$ac_ext >&5
10915 rm -rf conftest*
10916 eval "ac_cv_func_$ac_func=no"
10917fi
10918rm -f conftest*
10919fi
10920
10921if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10922 echo "$ac_t""yes" 1>&6
10923 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10924 cat >> confdefs.h <<EOF
10925#define $ac_tr_func 1
10926EOF
c63c7106
VZ
10927 cat >> confdefs.h <<\EOF
10928#define HAVE_INET_ATON 1
10929EOF
10930
10f2d63a
VZ
10931else
10932 echo "$ac_t""no" 1>&6
c63c7106 10933 echo $ac_n "checking for inet_aton in -l$INET_LINK""... $ac_c" 1>&6
a20b6d3a 10934echo "configure:10935: checking for inet_aton in -l$INET_LINK" >&5
c63c7106 10935ac_lib_var=`echo $INET_LINK'_'inet_aton | sed 'y%./+-%__p_%'`
10f2d63a
VZ
10936if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10937 echo $ac_n "(cached) $ac_c" 1>&6
10938else
10939 ac_save_LIBS="$LIBS"
c63c7106 10940LIBS="-l$INET_LINK $LIBS"
10f2d63a 10941cat > conftest.$ac_ext <<EOF
a20b6d3a 10942#line 10943 "configure"
10f2d63a
VZ
10943#include "confdefs.h"
10944/* Override any gcc2 internal prototype to avoid an error. */
10945/* We use char because int might match the return type of a gcc2
10946 builtin and then its argument prototype would still apply. */
10947char inet_aton();
10948
10949int main() {
10950inet_aton()
10951; return 0; }
10952EOF
a20b6d3a 10953if { (eval echo configure:10954: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
10954 rm -rf conftest*
10955 eval "ac_cv_lib_$ac_lib_var=yes"
10956else
10957 echo "configure: failed program was:" >&5
10958 cat conftest.$ac_ext >&5
10959 rm -rf conftest*
10960 eval "ac_cv_lib_$ac_lib_var=no"
10961fi
10962rm -f conftest*
10963LIBS="$ac_save_LIBS"
10964
10965fi
10966if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10967 echo "$ac_t""yes" 1>&6
c63c7106
VZ
10968 cat >> confdefs.h <<\EOF
10969#define HAVE_INET_ATON 1
10f2d63a
VZ
10970EOF
10971
10f2d63a
VZ
10972else
10973 echo "$ac_t""no" 1>&6
10974fi
10975
c63c7106
VZ
10976
10977fi
10978done
10979
10980
10981if test "x$INET_LINK" != "x"; then
10982 cat >> confdefs.h <<\EOF
10983#define HAVE_INET_ADDR 1
10984EOF
10985
10986 INET_LINK="-l$INET_LINK"
10987fi
10f2d63a
VZ
10988
10989fi
10990
10991
10992cat > confcache <<\EOF
10993# This file is a shell script that caches the results of configure
10994# tests run on this system so they can be shared between configure
10995# scripts and configure runs. It is not useful on other systems.
10996# If it contains results you don't want to keep, you may remove or edit it.
10997#
10998# By default, configure uses ./config.cache as the cache file,
10999# creating it if it does not exist already. You can give configure
11000# the --cache-file=FILE option to use a different cache file; that is
11001# what configure does when it calls configure scripts in
11002# subdirectories, so they share the cache.
11003# Giving --cache-file=/dev/null disables caching, for debugging configure.
11004# config.status only pays attention to the cache file if you give it the
11005# --recheck option to rerun configure.
11006#
11007EOF
11008# The following way of writing the cache mishandles newlines in values,
11009# but we know of no workaround that is simple, portable, and efficient.
11010# So, don't put newlines in cache variables' values.
11011# Ultrix sh set writes to stderr and can't be redirected directly,
11012# and sets the high bit in the cache file unless we assign to the vars.
11013(set) 2>&1 |
11014 case `(ac_space=' '; set | grep ac_space) 2>&1` in
11015 *ac_space=\ *)
11016 # `set' does not quote correctly, so add quotes (double-quote substitution
11017 # turns \\\\ into \\, and sed turns \\ into \).
11018 sed -n \
11019 -e "s/'/'\\\\''/g" \
11020 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
11021 ;;
11022 *)
11023 # `set' quotes correctly as required by POSIX, so do not add quotes.
11024 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
11025 ;;
11026 esac >> confcache
11027if cmp -s $cache_file confcache; then
11028 :
11029else
11030 if test -w $cache_file; then
11031 echo "updating cache $cache_file"
11032 cat confcache > $cache_file
11033 else
11034 echo "not updating unwritable cache $cache_file"
11035 fi
11036fi
11037rm -f confcache
11038
11039
11040
b089607b 11041if test "$TOOLKIT" != "MSW"; then
10f2d63a
VZ
11042
11043
11044THREADS_LINK=""
11045THREADS_OBJ=""
11046
11047if test "$wxUSE_THREADS" = "yes" ; then
11048 if test "$wxUSE_WINE" = 1 ; then
11049 echo "configure: warning: Threads are not supported under WINE" 1>&2
11050 wxUSE_THREADS="no"
b12915c1
VZ
11051 elif test "$USE_BEOS" = 1; then
11052 echo "configure: warning: BeOS threads are not yet supported" 1>&2
11053 wxUSE_THREADS="no"
10f2d63a
VZ
11054 fi
11055fi
11056
11057if test "$wxUSE_THREADS" = "yes" ; then
11058
11059 echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6
a20b6d3a 11060echo "configure:11061: checking for pthread_create in -lpthread" >&5
10f2d63a
VZ
11061ac_lib_var=`echo pthread'_'pthread_create | sed 'y%./+-%__p_%'`
11062if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11063 echo $ac_n "(cached) $ac_c" 1>&6
11064else
11065 ac_save_LIBS="$LIBS"
11066LIBS="-lpthread $LIBS"
11067cat > conftest.$ac_ext <<EOF
a20b6d3a 11068#line 11069 "configure"
10f2d63a
VZ
11069#include "confdefs.h"
11070/* Override any gcc2 internal prototype to avoid an error. */
11071/* We use char because int might match the return type of a gcc2
11072 builtin and then its argument prototype would still apply. */
11073char pthread_create();
11074
11075int main() {
11076pthread_create()
11077; return 0; }
11078EOF
a20b6d3a 11079if { (eval echo configure:11080: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
11080 rm -rf conftest*
11081 eval "ac_cv_lib_$ac_lib_var=yes"
11082else
11083 echo "configure: failed program was:" >&5
11084 cat conftest.$ac_ext >&5
11085 rm -rf conftest*
11086 eval "ac_cv_lib_$ac_lib_var=no"
11087fi
11088rm -f conftest*
11089LIBS="$ac_save_LIBS"
11090
11091fi
11092if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11093 echo "$ac_t""yes" 1>&6
11094
11095 THREADS_OBJ="threadpsx.lo"
11096 THREADS_LINK="pthread"
11097
11098else
11099 echo "$ac_t""no" 1>&6
11100
11101 echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6
a20b6d3a 11102echo "configure:11103: checking for pthread_create in -lc_r" >&5
10f2d63a
VZ
11103ac_lib_var=`echo c_r'_'pthread_create | sed 'y%./+-%__p_%'`
11104if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11105 echo $ac_n "(cached) $ac_c" 1>&6
11106else
11107 ac_save_LIBS="$LIBS"
11108LIBS="-lc_r $LIBS"
11109cat > conftest.$ac_ext <<EOF
a20b6d3a 11110#line 11111 "configure"
10f2d63a
VZ
11111#include "confdefs.h"
11112/* Override any gcc2 internal prototype to avoid an error. */
11113/* We use char because int might match the return type of a gcc2
11114 builtin and then its argument prototype would still apply. */
11115char pthread_create();
11116
11117int main() {
11118pthread_create()
11119; return 0; }
11120EOF
a20b6d3a 11121if { (eval echo configure:11122: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
11122 rm -rf conftest*
11123 eval "ac_cv_lib_$ac_lib_var=yes"
11124else
11125 echo "configure: failed program was:" >&5
11126 cat conftest.$ac_ext >&5
11127 rm -rf conftest*
11128 eval "ac_cv_lib_$ac_lib_var=no"
11129fi
11130rm -f conftest*
11131LIBS="$ac_save_LIBS"
11132
11133fi
11134if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11135 echo "$ac_t""yes" 1>&6
11136
11137 THREADS_OBJ="threadpsx.lo"
11138 THREADS_LINK="c_r"
11139
11140else
11141 echo "$ac_t""no" 1>&6
11142
11143 ac_safe=`echo "sys/prctl.h" | sed 'y%./+-%__p_%'`
11144echo $ac_n "checking for sys/prctl.h""... $ac_c" 1>&6
a20b6d3a 11145echo "configure:11146: checking for sys/prctl.h" >&5
10f2d63a
VZ
11146if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11147 echo $ac_n "(cached) $ac_c" 1>&6
11148else
11149 cat > conftest.$ac_ext <<EOF
a20b6d3a 11150#line 11151 "configure"
10f2d63a
VZ
11151#include "confdefs.h"
11152#include <sys/prctl.h>
11153EOF
11154ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
a20b6d3a 11155{ (eval echo configure:11156: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
11156ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11157if test -z "$ac_err"; then
11158 rm -rf conftest*
11159 eval "ac_cv_header_$ac_safe=yes"
11160else
11161 echo "$ac_err" >&5
11162 echo "configure: failed program was:" >&5
11163 cat conftest.$ac_ext >&5
11164 rm -rf conftest*
11165 eval "ac_cv_header_$ac_safe=no"
11166fi
11167rm -f conftest*
11168fi
11169if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11170 echo "$ac_t""yes" 1>&6
11171
11172 THREADS_OBJ="threadsgi.lo"
11173
11174else
11175 echo "$ac_t""no" 1>&6
11176fi
11177
11178
11179fi
11180
11181
11182fi
11183
11184
11185 if test -z "$THREADS_OBJ" ; then
11186 wxUSE_THREADS=no
11187 echo "configure: warning: No thread support on this system" 1>&2
11188 fi
11189fi
11190
11191if test "$wxUSE_THREADS" = "yes" ; then
70846f0a
VZ
11192 for ac_func in thr_setconcurrency
11193do
11194echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
a20b6d3a 11195echo "configure:11196: checking for $ac_func" >&5
70846f0a
VZ
11196if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11197 echo $ac_n "(cached) $ac_c" 1>&6
11198else
11199 cat > conftest.$ac_ext <<EOF
a20b6d3a 11200#line 11201 "configure"
70846f0a
VZ
11201#include "confdefs.h"
11202/* System header to define __stub macros and hopefully few prototypes,
11203 which can conflict with char $ac_func(); below. */
11204#include <assert.h>
11205/* Override any gcc2 internal prototype to avoid an error. */
11206/* We use char because int might match the return type of a gcc2
11207 builtin and then its argument prototype would still apply. */
11208char $ac_func();
11209
11210int main() {
11211
11212/* The GNU C library defines this for functions which it implements
11213 to always fail with ENOSYS. Some functions are actually named
11214 something starting with __ and the normal name is an alias. */
11215#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11216choke me
11217#else
e8482f24 11218$ac_func();
70846f0a
VZ
11219#endif
11220
11221; return 0; }
11222EOF
a20b6d3a 11223if { (eval echo configure:11224: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
70846f0a
VZ
11224 rm -rf conftest*
11225 eval "ac_cv_func_$ac_func=yes"
11226else
11227 echo "configure: failed program was:" >&5
11228 cat conftest.$ac_ext >&5
11229 rm -rf conftest*
11230 eval "ac_cv_func_$ac_func=no"
11231fi
11232rm -f conftest*
11233fi
11234
11235if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11236 echo "$ac_t""yes" 1>&6
11237 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11238 cat >> confdefs.h <<EOF
11239#define $ac_tr_func 1
11240EOF
11241
11242else
11243 echo "$ac_t""no" 1>&6
11244fi
11245done
11246
11247
10f2d63a
VZ
11248
11249 for ac_hdr in sched.h
11250do
11251ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11252echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
a20b6d3a 11253echo "configure:11254: checking for $ac_hdr" >&5
10f2d63a
VZ
11254if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11255 echo $ac_n "(cached) $ac_c" 1>&6
11256else
11257 cat > conftest.$ac_ext <<EOF
a20b6d3a 11258#line 11259 "configure"
10f2d63a
VZ
11259#include "confdefs.h"
11260#include <$ac_hdr>
11261EOF
11262ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
a20b6d3a 11263{ (eval echo configure:11264: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
11264ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11265if test -z "$ac_err"; then
11266 rm -rf conftest*
11267 eval "ac_cv_header_$ac_safe=yes"
11268else
11269 echo "$ac_err" >&5
11270 echo "configure: failed program was:" >&5
11271 cat conftest.$ac_ext >&5
11272 rm -rf conftest*
11273 eval "ac_cv_header_$ac_safe=no"
11274fi
11275rm -f conftest*
11276fi
11277if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11278 echo "$ac_t""yes" 1>&6
11279 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11280 cat >> confdefs.h <<EOF
11281#define $ac_tr_hdr 1
11282EOF
11283
11284else
11285 echo "$ac_t""no" 1>&6
11286fi
11287done
11288
11289
11290 echo $ac_n "checking for sched_yield in -l$THREADS_LINK""... $ac_c" 1>&6
a20b6d3a 11291echo "configure:11292: checking for sched_yield in -l$THREADS_LINK" >&5
10f2d63a
VZ
11292ac_lib_var=`echo $THREADS_LINK'_'sched_yield | sed 'y%./+-%__p_%'`
11293if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11294 echo $ac_n "(cached) $ac_c" 1>&6
11295else
11296 ac_save_LIBS="$LIBS"
11297LIBS="-l$THREADS_LINK $LIBS"
11298cat > conftest.$ac_ext <<EOF
a20b6d3a 11299#line 11300 "configure"
10f2d63a
VZ
11300#include "confdefs.h"
11301/* Override any gcc2 internal prototype to avoid an error. */
11302/* We use char because int might match the return type of a gcc2
11303 builtin and then its argument prototype would still apply. */
11304char sched_yield();
11305
11306int main() {
11307sched_yield()
11308; return 0; }
11309EOF
a20b6d3a 11310if { (eval echo configure:11311: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
11311 rm -rf conftest*
11312 eval "ac_cv_lib_$ac_lib_var=yes"
11313else
11314 echo "configure: failed program was:" >&5
11315 cat conftest.$ac_ext >&5
11316 rm -rf conftest*
11317 eval "ac_cv_lib_$ac_lib_var=no"
11318fi
11319rm -f conftest*
11320LIBS="$ac_save_LIBS"
11321
11322fi
11323if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11324 echo "$ac_t""yes" 1>&6
11325 cat >> confdefs.h <<\EOF
11326#define HAVE_SCHED_YIELD 1
11327EOF
11328
11329else
11330 echo "$ac_t""no" 1>&6
11331echo $ac_n "checking for sched_yield in -l"posix4"""... $ac_c" 1>&6
a20b6d3a 11332echo "configure:11333: checking for sched_yield in -l"posix4"" >&5
10f2d63a
VZ
11333ac_lib_var=`echo "posix4"'_'sched_yield | sed 'y%./+-%__p_%'`
11334if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11335 echo $ac_n "(cached) $ac_c" 1>&6
11336else
11337 ac_save_LIBS="$LIBS"
11338LIBS="-l"posix4" $LIBS"
11339cat > conftest.$ac_ext <<EOF
a20b6d3a 11340#line 11341 "configure"
10f2d63a
VZ
11341#include "confdefs.h"
11342/* Override any gcc2 internal prototype to avoid an error. */
11343/* We use char because int might match the return type of a gcc2
11344 builtin and then its argument prototype would still apply. */
11345char sched_yield();
11346
11347int main() {
11348sched_yield()
11349; return 0; }
11350EOF
a20b6d3a 11351if { (eval echo configure:11352: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
11352 rm -rf conftest*
11353 eval "ac_cv_lib_$ac_lib_var=yes"
11354else
11355 echo "configure: failed program was:" >&5
11356 cat conftest.$ac_ext >&5
11357 rm -rf conftest*
11358 eval "ac_cv_lib_$ac_lib_var=no"
11359fi
11360rm -f conftest*
11361LIBS="$ac_save_LIBS"
11362
11363fi
11364if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11365 echo "$ac_t""yes" 1>&6
11366 cat >> confdefs.h <<\EOF
11367#define HAVE_SCHED_YIELD 1
11368EOF
11369 POSIX4_LINK="-lposix4"
11370else
11371 echo "$ac_t""no" 1>&6
11372echo "configure: warning: wxThread::Yield will not work properly" 1>&2
11373
11374fi
11375
11376
11377fi
11378
11379
11380 echo $ac_n "checking for pthread_attr_getschedpolicy in -l$THREADS_LINK""... $ac_c" 1>&6
a20b6d3a 11381echo "configure:11382: checking for pthread_attr_getschedpolicy in -l$THREADS_LINK" >&5
10f2d63a
VZ
11382ac_lib_var=`echo $THREADS_LINK'_'pthread_attr_getschedpolicy | sed 'y%./+-%__p_%'`
11383if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11384 echo $ac_n "(cached) $ac_c" 1>&6
11385else
11386 ac_save_LIBS="$LIBS"
11387LIBS="-l$THREADS_LINK $LIBS"
11388cat > conftest.$ac_ext <<EOF
a20b6d3a 11389#line 11390 "configure"
10f2d63a
VZ
11390#include "confdefs.h"
11391/* Override any gcc2 internal prototype to avoid an error. */
11392/* We use char because int might match the return type of a gcc2
11393 builtin and then its argument prototype would still apply. */
11394char pthread_attr_getschedpolicy();
11395
11396int main() {
11397pthread_attr_getschedpolicy()
11398; return 0; }
11399EOF
a20b6d3a 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_lib_$ac_lib_var=yes"
11403else
11404 echo "configure: failed program was:" >&5
11405 cat conftest.$ac_ext >&5
11406 rm -rf conftest*
11407 eval "ac_cv_lib_$ac_lib_var=no"
11408fi
11409rm -f conftest*
11410LIBS="$ac_save_LIBS"
11411
11412fi
11413if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11414 echo "$ac_t""yes" 1>&6
11415 cat >> confdefs.h <<\EOF
11416#define HAVE_THREAD_PRIORITY_FUNCTIONS 1
11417EOF
11418
11419else
11420 echo "$ac_t""no" 1>&6
11421echo $ac_n "checking for pthread_attr_getschedpolicy in -l"posix4"""... $ac_c" 1>&6
a20b6d3a 11422echo "configure:11423: checking for pthread_attr_getschedpolicy in -l"posix4"" >&5
10f2d63a
VZ
11423ac_lib_var=`echo "posix4"'_'pthread_attr_getschedpolicy | sed 'y%./+-%__p_%'`
11424if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11425 echo $ac_n "(cached) $ac_c" 1>&6
11426else
11427 ac_save_LIBS="$LIBS"
11428LIBS="-l"posix4" $LIBS"
11429cat > conftest.$ac_ext <<EOF
a20b6d3a 11430#line 11431 "configure"
10f2d63a
VZ
11431#include "confdefs.h"
11432/* Override any gcc2 internal prototype to avoid an error. */
11433/* We use char because int might match the return type of a gcc2
11434 builtin and then its argument prototype would still apply. */
11435char pthread_attr_getschedpolicy();
11436
11437int main() {
11438pthread_attr_getschedpolicy()
11439; return 0; }
11440EOF
a20b6d3a 11441if { (eval echo configure:11442: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
11442 rm -rf conftest*
11443 eval "ac_cv_lib_$ac_lib_var=yes"
11444else
11445 echo "configure: failed program was:" >&5
11446 cat conftest.$ac_ext >&5
11447 rm -rf conftest*
11448 eval "ac_cv_lib_$ac_lib_var=no"
11449fi
11450rm -f conftest*
11451LIBS="$ac_save_LIBS"
11452
11453fi
11454if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11455 echo "$ac_t""yes" 1>&6
11456 cat >> confdefs.h <<\EOF
11457#define HAVE_THREAD_PRIORITY_FUNCTIONS 1
11458EOF
11459 POSIX4_LINK="-lposix4"
11460else
11461 echo "$ac_t""no" 1>&6
11462echo "configure: warning: Setting thread priority will not work" 1>&2
11463
11464fi
11465
11466
11467fi
11468
11469
11470 echo $ac_n "checking for pthread_cancel in -l$THREADS_LINK""... $ac_c" 1>&6
a20b6d3a 11471echo "configure:11472: checking for pthread_cancel in -l$THREADS_LINK" >&5
10f2d63a
VZ
11472ac_lib_var=`echo $THREADS_LINK'_'pthread_cancel | sed 'y%./+-%__p_%'`
11473if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11474 echo $ac_n "(cached) $ac_c" 1>&6
11475else
11476 ac_save_LIBS="$LIBS"
11477LIBS="-l$THREADS_LINK $LIBS"
11478cat > conftest.$ac_ext <<EOF
a20b6d3a 11479#line 11480 "configure"
10f2d63a
VZ
11480#include "confdefs.h"
11481/* Override any gcc2 internal prototype to avoid an error. */
11482/* We use char because int might match the return type of a gcc2
11483 builtin and then its argument prototype would still apply. */
11484char pthread_cancel();
11485
11486int main() {
11487pthread_cancel()
11488; return 0; }
11489EOF
a20b6d3a 11490if { (eval echo configure:11491: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
11491 rm -rf conftest*
11492 eval "ac_cv_lib_$ac_lib_var=yes"
11493else
11494 echo "configure: failed program was:" >&5
11495 cat conftest.$ac_ext >&5
11496 rm -rf conftest*
11497 eval "ac_cv_lib_$ac_lib_var=no"
11498fi
11499rm -f conftest*
11500LIBS="$ac_save_LIBS"
11501
11502fi
11503if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11504 echo "$ac_t""yes" 1>&6
11505 cat >> confdefs.h <<\EOF
11506#define HAVE_PTHREAD_CANCEL 1
11507EOF
11508
11509else
11510 echo "$ac_t""no" 1>&6
11511echo "configure: warning: wxThread::Kill() will not work properly" 1>&2
11512fi
11513
11514
11515 echo $ac_n "checking for pthread_cleanup_push/pop""... $ac_c" 1>&6
a20b6d3a 11516echo "configure:11517: checking for pthread_cleanup_push/pop" >&5
10f2d63a
VZ
11517if eval "test \"`echo '$''{'wx_cv_func_pthread_cleanup_push'+set}'`\" = set"; then
11518 echo $ac_n "(cached) $ac_c" 1>&6
11519else
11520
11521 cat > conftest.$ac_ext <<EOF
a20b6d3a 11522#line 11523 "configure"
10f2d63a
VZ
11523#include "confdefs.h"
11524#include <pthread.h>
11525int main() {
11526
11527 pthread_cleanup_push(NULL, NULL);
11528 pthread_cleanup_pop(0);
11529
11530; return 0; }
11531EOF
a20b6d3a 11532if { (eval echo configure:11533: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10f2d63a
VZ
11533 rm -rf conftest*
11534
11535 wx_cv_func_pthread_cleanup_push=yes
11536 cat >> confdefs.h <<\EOF
11537#define HAVE_THREAD_CLEANUP_FUNCTIONS 1
11538EOF
11539
11540
11541else
11542 echo "configure: failed program was:" >&5
11543 cat conftest.$ac_ext >&5
11544 rm -rf conftest*
11545
11546 wx_cv_func_pthread_cleanup_push=no
11547
11548fi
11549rm -f conftest*
11550
11551fi
11552
11553echo "$ac_t""$wx_cv_func_pthread_cleanup_push" 1>&6
11554
11555 THREADS_LINK="-l$THREADS_LINK"
11556fi
11557
11558fi
11559
11560if test "$wxUSE_THREADS" = "yes"; then
11561 cat >> confdefs.h <<\EOF
11562#define wxUSE_THREADS 1
11563EOF
11564
11565
11566 CFLAGS="${CFLAGS} -D_REENTRANT"
11567 CXXFLAGS="${CXXFLAGS} -D_REENTRANT"
11568
11569 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
11570else
11571 if test "$ac_cv_func_strtok_r" = "yes"; then
ab9b9eab 11572 echo $ac_n "checking if -D_REENTRANT is needed""... $ac_c" 1>&6
a20b6d3a 11573echo "configure:11574: checking if -D_REENTRANT is needed" >&5
ab9b9eab
VZ
11574 if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
11575 CFLAGS="${CFLAGS} -D_REENTRANT"
11576 CXXFLAGS="${CXXFLAGS} -D_REENTRANT"
11577 echo "$ac_t""yes" 1>&6
11578 else
11579 echo "$ac_t""no" 1>&6
10f2d63a
VZ
11580 fi
11581 fi
11582fi
11583
13111b2a
VZ
11584if test "$WXGTK13" = 1 ; then
11585 cat >> confdefs.h <<EOF
11586#define __WXGTK13__ $WXGTK13
11587EOF
11588
11589 WXGTK12=1
11590fi
11591
10f2d63a
VZ
11592if test "$WXGTK12" = 1 ; then
11593 cat >> confdefs.h <<EOF
11594#define __WXGTK12__ $WXGTK12
11595EOF
11596
11597fi
11598
11599if test "$WXWINE" = 1 ; then
11600 TOOLKIT_DEF="${TOOLKIT_DEF} -D__WXWINE__"
11601fi
11602
11603if test "$wxUSE_CYGWIN" = 1 ; then
11604 TOOLKIT_DEF="${TOOLKIT_DEF} -D__WIN95__"
11605fi
11606
11607WXDEBUG=
11608
11609if test "$wxUSE_DEBUG_INFO" = "yes" ; then
11610 WXDEBUG="-g"
11611 wxUSE_OPTIMISE=no
11612fi
11613
11614if test "$wxUSE_DEBUG_GDB" = "yes" ; then
11615 wxUSE_DEBUG_INFO=yes
11616 WXDEBUG="-ggdb"
11617fi
11618
11619if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
11620 cat >> confdefs.h <<\EOF
11621#define WXDEBUG 1
11622EOF
11623
11624 WXDEBUG_DEFINE="-D__WXDEBUG__"
11625else
11626 if test "$wxUSE_GTK" = 1 ; then
11627 WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS"
11628 fi
11629fi
11630
11631if test "$wxUSE_MEM_TRACING" = "yes" ; then
11632 cat >> confdefs.h <<\EOF
11633#define wxUSE_MEMORY_TRACING 1
11634EOF
11635
11636 cat >> confdefs.h <<\EOF
11637#define wxUSE_GLOBAL_MEMORY_OPERATORS 1
47c13eb7
VS
11638EOF
11639
11640 cat >> confdefs.h <<\EOF
11641#define wxUSE_DEBUG_NEW_ALWAYS 1
10f2d63a
VZ
11642EOF
11643
11644 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
11645fi
11646
11647if test "$wxUSE_DMALLOC" = "yes" ; then
11648 DMALLOC_LINK="-ldmalloc"
11649fi
11650
11651PROFILE=
11652if test "$wxUSE_PROFILE" = "yes" ; then
11653 PROFILE="-pg"
11654fi
11655
11656DEP_INFO_FLAGS=
caa2c79b 11657CODE_GEN_FLAGS=
10f2d63a
VZ
11658if test "$GCC" = yes ; then
11659 if test "$wxUSE_NO_RTTI" = "yes" ; then
caa2c79b 11660 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fno-rtti"
10f2d63a
VZ
11661 fi
11662 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
caa2c79b 11663 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fno-exceptions"
10f2d63a
VZ
11664 fi
11665 if test "$wxUSE_PERMISSIVE" = "yes" ; then
caa2c79b 11666 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive"
10f2d63a
VZ
11667 fi
11668 if test "$wxUSE_NO_DEPS" = "no" ; then
11669 DEP_INFO_FLAGS="-MMD"
11670 fi
11671fi
11672
11673
11674CXXFLAGS=`echo "${CXXFLAGS}" | sed "s/\-O.//g" `
11675CFLAGS=`echo "${CFLAGS}" | sed "s/\-O.//g" `
11676if test "$wxUSE_OPTIMISE" = "no" ; then
11677 OPTIMISE=
11678else
11679 if test "$GCC" = yes ; then
11680 OPTIMISE="-O2"
11681 case "${host}" in
11682 i586-*-*|i686-*-* )
11683 OPTIMISE="${OPTIMISE} "
11684 ;;
11685 esac
11686 else
11687 OPTIMISE="-O"
11688 fi
11689fi
11690
11691
11692ZLIB_INCLUDE=
422107f9 11693if test "$wxUSE_ZLIB" = "yes" -o "$wxUSE_ZLIB" = "sys" ; then
10f2d63a
VZ
11694 cat >> confdefs.h <<\EOF
11695#define wxUSE_ZLIB 1
11696EOF
11697
422107f9
VZ
11698 if test "$wxUSE_ZLIB" = "yes" ; then
11699 ZLIB_INCLUDE="-I\${top_srcdir}/src/zlib"
11700 else
11701 ZLIB_LINK=
11702 ac_safe=`echo "zlib.h" | sed 'y%./+-%__p_%'`
11703echo $ac_n "checking for zlib.h""... $ac_c" 1>&6
a20b6d3a 11704echo "configure:11705: checking for zlib.h" >&5
422107f9
VZ
11705if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11706 echo $ac_n "(cached) $ac_c" 1>&6
11707else
11708 cat > conftest.$ac_ext <<EOF
a20b6d3a 11709#line 11710 "configure"
422107f9
VZ
11710#include "confdefs.h"
11711#include <zlib.h>
11712EOF
11713ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
a20b6d3a 11714{ (eval echo configure:11715: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
422107f9
VZ
11715ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11716if test -z "$ac_err"; then
11717 rm -rf conftest*
11718 eval "ac_cv_header_$ac_safe=yes"
11719else
11720 echo "$ac_err" >&5
11721 echo "configure: failed program was:" >&5
11722 cat conftest.$ac_ext >&5
11723 rm -rf conftest*
11724 eval "ac_cv_header_$ac_safe=no"
11725fi
11726rm -f conftest*
11727fi
11728if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11729 echo "$ac_t""yes" 1>&6
11730 echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6
a20b6d3a 11731echo "configure:11732: checking for deflate in -lz" >&5
422107f9
VZ
11732ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'`
11733if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11734 echo $ac_n "(cached) $ac_c" 1>&6
11735else
11736 ac_save_LIBS="$LIBS"
11737LIBS="-lz $LIBS"
11738cat > conftest.$ac_ext <<EOF
a20b6d3a 11739#line 11740 "configure"
422107f9
VZ
11740#include "confdefs.h"
11741/* Override any gcc2 internal prototype to avoid an error. */
11742/* We use char because int might match the return type of a gcc2
11743 builtin and then its argument prototype would still apply. */
11744char deflate();
11745
11746int main() {
11747deflate()
11748; return 0; }
11749EOF
a20b6d3a 11750if { (eval echo configure:11751: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
422107f9
VZ
11751 rm -rf conftest*
11752 eval "ac_cv_lib_$ac_lib_var=yes"
11753else
11754 echo "configure: failed program was:" >&5
11755 cat conftest.$ac_ext >&5
11756 rm -rf conftest*
11757 eval "ac_cv_lib_$ac_lib_var=no"
11758fi
11759rm -f conftest*
11760LIBS="$ac_save_LIBS"
11761
11762fi
11763if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11764 echo "$ac_t""yes" 1>&6
11765 ZLIB_LINK="-lz"
11766else
11767 echo "$ac_t""no" 1>&6
11768fi
11769
11770else
11771 echo "$ac_t""no" 1>&6
11772fi
11773
11774 if test "x$ZLIB_LINK" = "x" ; then
11775 { echo "configure: error: system zlib compression library not found! Use --with-zlib=yes to use built-in zlib" 1>&2; exit 1; }
11776 fi
11777 fi
10f2d63a
VZ
11778fi
11779
11780PNG_INCLUDE=
422107f9 11781if test "$wxUSE_LIBPNG" = "yes" -o "$wxUSE_LIBPNG" = "sys" ; then
10f2d63a
VZ
11782 cat >> confdefs.h <<\EOF
11783#define wxUSE_LIBPNG 1
11784EOF
11785
41fd4136 11786 if test "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
422107f9
VZ
11787 echo "configure: warning: --with-libpng=sys doesn't work without --with-zlib=sys, will compile the built-in libpng instead" 1>&2
11788 wxUSE_LIBPNG=yes
11789 fi
11790
11791 if test "$wxUSE_LIBPNG" = "yes" ; then
11792 PNG_INCLUDE="-I\${top_srcdir}/src/png"
11793 else
11794 PNG_LINK=
11795 ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'`
11796echo $ac_n "checking for png.h""... $ac_c" 1>&6
a20b6d3a 11797echo "configure:11798: checking for png.h" >&5
422107f9
VZ
11798if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11799 echo $ac_n "(cached) $ac_c" 1>&6
11800else
11801 cat > conftest.$ac_ext <<EOF
a20b6d3a 11802#line 11803 "configure"
422107f9
VZ
11803#include "confdefs.h"
11804#include <png.h>
11805EOF
11806ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
a20b6d3a 11807{ (eval echo configure:11808: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
422107f9
VZ
11808ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11809if test -z "$ac_err"; then
11810 rm -rf conftest*
11811 eval "ac_cv_header_$ac_safe=yes"
11812else
11813 echo "$ac_err" >&5
11814 echo "configure: failed program was:" >&5
11815 cat conftest.$ac_ext >&5
11816 rm -rf conftest*
11817 eval "ac_cv_header_$ac_safe=no"
11818fi
11819rm -f conftest*
11820fi
11821if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11822 echo "$ac_t""yes" 1>&6
11823 echo $ac_n "checking for png_check_sig in -lpng""... $ac_c" 1>&6
a20b6d3a 11824echo "configure:11825: checking for png_check_sig in -lpng" >&5
422107f9
VZ
11825ac_lib_var=`echo png'_'png_check_sig | sed 'y%./+-%__p_%'`
11826if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11827 echo $ac_n "(cached) $ac_c" 1>&6
11828else
11829 ac_save_LIBS="$LIBS"
11830LIBS="-lpng -lz -lm $LIBS"
11831cat > conftest.$ac_ext <<EOF
a20b6d3a 11832#line 11833 "configure"
422107f9
VZ
11833#include "confdefs.h"
11834/* Override any gcc2 internal prototype to avoid an error. */
11835/* We use char because int might match the return type of a gcc2
11836 builtin and then its argument prototype would still apply. */
11837char png_check_sig();
11838
11839int main() {
11840png_check_sig()
11841; return 0; }
11842EOF
a20b6d3a 11843if { (eval echo configure:11844: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
422107f9
VZ
11844 rm -rf conftest*
11845 eval "ac_cv_lib_$ac_lib_var=yes"
11846else
11847 echo "configure: failed program was:" >&5
11848 cat conftest.$ac_ext >&5
11849 rm -rf conftest*
11850 eval "ac_cv_lib_$ac_lib_var=no"
11851fi
11852rm -f conftest*
11853LIBS="$ac_save_LIBS"
11854
11855fi
11856if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11857 echo "$ac_t""yes" 1>&6
11858 PNG_LINK="-lpng"
11859else
11860 echo "$ac_t""no" 1>&6
11861fi
11862
11863
11864else
11865 echo "$ac_t""no" 1>&6
11866fi
11867
11868 if test "x$PNG_LINK" = "x" ; then
0dcf9893 11869 { echo "configure: error: system png library not found! Use --with-libpng=yes to use the built-in libpng" 1>&2; exit 1; }
422107f9
VZ
11870 fi
11871 fi
11872
10f2d63a
VZ
11873 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
11874fi
11875
11876JPEG_INCLUDE=
422107f9 11877if test "$wxUSE_LIBJPEG" = "yes" -o "$wxUSE_LIBJPEG" = "sys" ; then
10f2d63a
VZ
11878 cat >> confdefs.h <<\EOF
11879#define wxUSE_LIBJPEG 1
11880EOF
11881
422107f9
VZ
11882 if test "$wxUSE_LIBJPEG" = "yes" ; then
11883 JPEG_INCLUDE="-I\${top_srcdir}/src/jpeg"
11884 else
11885 JPEG_LINK=
11886 ac_safe=`echo "jpeglib.h" | sed 'y%./+-%__p_%'`
11887echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6
a20b6d3a 11888echo "configure:11889: checking for jpeglib.h" >&5
422107f9
VZ
11889if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11890 echo $ac_n "(cached) $ac_c" 1>&6
11891else
11892 cat > conftest.$ac_ext <<EOF
a20b6d3a 11893#line 11894 "configure"
422107f9
VZ
11894#include "confdefs.h"
11895#include <jpeglib.h>
11896EOF
11897ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
a20b6d3a 11898{ (eval echo configure:11899: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
422107f9
VZ
11899ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11900if test -z "$ac_err"; then
11901 rm -rf conftest*
11902 eval "ac_cv_header_$ac_safe=yes"
11903else
11904 echo "$ac_err" >&5
11905 echo "configure: failed program was:" >&5
11906 cat conftest.$ac_ext >&5
11907 rm -rf conftest*
11908 eval "ac_cv_header_$ac_safe=no"
11909fi
11910rm -f conftest*
11911fi
11912if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11913 echo "$ac_t""yes" 1>&6
11914 echo $ac_n "checking for jpeg_read_header in -ljpeg""... $ac_c" 1>&6
a20b6d3a 11915echo "configure:11916: checking for jpeg_read_header in -ljpeg" >&5
422107f9
VZ
11916ac_lib_var=`echo jpeg'_'jpeg_read_header | sed 'y%./+-%__p_%'`
11917if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11918 echo $ac_n "(cached) $ac_c" 1>&6
11919else
11920 ac_save_LIBS="$LIBS"
11921LIBS="-ljpeg $LIBS"
11922cat > conftest.$ac_ext <<EOF
a20b6d3a 11923#line 11924 "configure"
422107f9
VZ
11924#include "confdefs.h"
11925/* Override any gcc2 internal prototype to avoid an error. */
11926/* We use char because int might match the return type of a gcc2
11927 builtin and then its argument prototype would still apply. */
11928char jpeg_read_header();
11929
11930int main() {
11931jpeg_read_header()
11932; return 0; }
11933EOF
a20b6d3a 11934if { (eval echo configure:11935: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
422107f9
VZ
11935 rm -rf conftest*
11936 eval "ac_cv_lib_$ac_lib_var=yes"
11937else
11938 echo "configure: failed program was:" >&5
11939 cat conftest.$ac_ext >&5
11940 rm -rf conftest*
11941 eval "ac_cv_lib_$ac_lib_var=no"
11942fi
11943rm -f conftest*
11944LIBS="$ac_save_LIBS"
11945
11946fi
11947if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11948 echo "$ac_t""yes" 1>&6
11949 JPEG_LINK="-ljpeg"
11950else
11951 echo "$ac_t""no" 1>&6
11952fi
11953
11954else
11955 echo "$ac_t""no" 1>&6
11956fi
11957
11958 if test "x$JPEG_LINK" = "x" ; then
0dcf9893 11959 { echo "configure: error: system jpeg library not found! Use --with-libjpeg=yes to use the built-in one" 1>&2; exit 1; }
422107f9
VZ
11960 fi
11961 fi
10f2d63a
VZ
11962fi
11963
c7a2bf27 11964TIFF_INCLUDE=
0dcf9893 11965if test "$wxUSE_LIBTIFF" = "yes" -o "$wxUSE_LIBTIFF" = "sys" ; then
c7a2bf27
RR
11966 cat >> confdefs.h <<\EOF
11967#define wxUSE_LIBTIFF 1
11968EOF
11969
0dcf9893
VZ
11970 if test "$wxUSE_LIBTIFF" = "yes" ; then
11971 TIFF_INCLUDE="-I\${top_srcdir}/src/tiff"
11972 else
11973 TIFF_LINK=
11974 ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'`
11975echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6
a20b6d3a 11976echo "configure:11977: checking for tiffio.h" >&5
0dcf9893
VZ
11977if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11978 echo $ac_n "(cached) $ac_c" 1>&6
11979else
11980 cat > conftest.$ac_ext <<EOF
a20b6d3a 11981#line 11982 "configure"
0dcf9893
VZ
11982#include "confdefs.h"
11983#include <tiffio.h>
11984EOF
11985ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
a20b6d3a 11986{ (eval echo configure:11987: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
0dcf9893
VZ
11987ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11988if test -z "$ac_err"; then
11989 rm -rf conftest*
11990 eval "ac_cv_header_$ac_safe=yes"
11991else
11992 echo "$ac_err" >&5
11993 echo "configure: failed program was:" >&5
11994 cat conftest.$ac_ext >&5
11995 rm -rf conftest*
11996 eval "ac_cv_header_$ac_safe=no"
11997fi
11998rm -f conftest*
11999fi
12000if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12001 echo "$ac_t""yes" 1>&6
12002 echo $ac_n "checking for TIFFError in -ltiff""... $ac_c" 1>&6
a20b6d3a 12003echo "configure:12004: checking for TIFFError in -ltiff" >&5
0dcf9893
VZ
12004ac_lib_var=`echo tiff'_'TIFFError | sed 'y%./+-%__p_%'`
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"
12009LIBS="-ltiff -lm $LIBS"
12010cat > conftest.$ac_ext <<EOF
a20b6d3a 12011#line 12012 "configure"
0dcf9893
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 TIFFError();
12017
12018int main() {
12019TIFFError()
12020; return 0; }
12021EOF
a20b6d3a 12022if { (eval echo configure:12023: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
0dcf9893
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 TIFF_LINK="-ltiff"
12038else
12039 echo "$ac_t""no" 1>&6
12040fi
12041
12042else
12043 echo "$ac_t""no" 1>&6
12044fi
12045
12046 if test "x$TIFF_LINK" = "x" ; then
12047 { echo "configure: error: system tiff library not found! Use --with-libtiff=yes to use the built-in one" 1>&2; exit 1; }
12048 fi
12049 fi
c7a2bf27
RR
12050fi
12051
10f2d63a
VZ
12052if test "$wxUSE_OPENGL" = "yes"; then
12053 ac_safe=`echo "GL/gl.h" | sed 'y%./+-%__p_%'`
12054echo $ac_n "checking for GL/gl.h""... $ac_c" 1>&6
a20b6d3a 12055echo "configure:12056: checking for GL/gl.h" >&5
10f2d63a
VZ
12056if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12057 echo $ac_n "(cached) $ac_c" 1>&6
12058else
12059 cat > conftest.$ac_ext <<EOF
a20b6d3a 12060#line 12061 "configure"
10f2d63a
VZ
12061#include "confdefs.h"
12062#include <GL/gl.h>
12063EOF
12064ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
a20b6d3a 12065{ (eval echo configure:12066: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
12066ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12067if test -z "$ac_err"; then
12068 rm -rf conftest*
12069 eval "ac_cv_header_$ac_safe=yes"
12070else
12071 echo "$ac_err" >&5
12072 echo "configure: failed program was:" >&5
12073 cat conftest.$ac_ext >&5
12074 rm -rf conftest*
12075 eval "ac_cv_header_$ac_safe=no"
12076fi
12077rm -f conftest*
12078fi
12079if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12080 echo "$ac_t""yes" 1>&6
12081
bdad4e7e
RR
12082 cat >> confdefs.h <<\EOF
12083#define wxUSE_OPENGL 1
12084EOF
12085
12086 cat >> confdefs.h <<\EOF
12087#define wxUSE_GLCANVAS 1
12088EOF
12089
12090 echo $ac_n "checking for glFlush in -lGL""... $ac_c" 1>&6
a20b6d3a 12091echo "configure:12092: checking for glFlush in -lGL" >&5
bdad4e7e 12092ac_lib_var=`echo GL'_'glFlush | sed 'y%./+-%__p_%'`
10f2d63a
VZ
12093if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12094 echo $ac_n "(cached) $ac_c" 1>&6
12095else
12096 ac_save_LIBS="$LIBS"
bdad4e7e 12097LIBS="-lGL $LIBS"
10f2d63a 12098cat > conftest.$ac_ext <<EOF
a20b6d3a 12099#line 12100 "configure"
10f2d63a
VZ
12100#include "confdefs.h"
12101/* Override any gcc2 internal prototype to avoid an error. */
12102/* We use char because int might match the return type of a gcc2
12103 builtin and then its argument prototype would still apply. */
bdad4e7e 12104char glFlush();
10f2d63a
VZ
12105
12106int main() {
bdad4e7e 12107glFlush()
10f2d63a
VZ
12108; return 0; }
12109EOF
a20b6d3a 12110if { (eval echo configure:12111: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
12111 rm -rf conftest*
12112 eval "ac_cv_lib_$ac_lib_var=yes"
12113else
12114 echo "configure: failed program was:" >&5
12115 cat conftest.$ac_ext >&5
12116 rm -rf conftest*
12117 eval "ac_cv_lib_$ac_lib_var=no"
12118fi
12119rm -f conftest*
12120LIBS="$ac_save_LIBS"
12121
12122fi
12123if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12124 echo "$ac_t""yes" 1>&6
12125
12126 OPENGL_LINK="-lGL"
10f2d63a
VZ
12127
12128else
12129 echo "$ac_t""no" 1>&6
12130
bdad4e7e 12131 echo $ac_n "checking for glFlush in -lMesaGL""... $ac_c" 1>&6
a20b6d3a 12132echo "configure:12133: checking for glFlush in -lMesaGL" >&5
bdad4e7e 12133ac_lib_var=`echo MesaGL'_'glFlush | sed 'y%./+-%__p_%'`
10f2d63a
VZ
12134if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12135 echo $ac_n "(cached) $ac_c" 1>&6
12136else
12137 ac_save_LIBS="$LIBS"
12138LIBS="-lMesaGL $LIBS"
12139cat > conftest.$ac_ext <<EOF
a20b6d3a 12140#line 12141 "configure"
10f2d63a
VZ
12141#include "confdefs.h"
12142/* Override any gcc2 internal prototype to avoid an error. */
12143/* We use char because int might match the return type of a gcc2
12144 builtin and then its argument prototype would still apply. */
bdad4e7e 12145char glFlush();
10f2d63a
VZ
12146
12147int main() {
bdad4e7e 12148glFlush()
10f2d63a
VZ
12149; return 0; }
12150EOF
a20b6d3a 12151if { (eval echo configure:12152: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
12152 rm -rf conftest*
12153 eval "ac_cv_lib_$ac_lib_var=yes"
12154else
12155 echo "configure: failed program was:" >&5
12156 cat conftest.$ac_ext >&5
12157 rm -rf conftest*
12158 eval "ac_cv_lib_$ac_lib_var=no"
12159fi
12160rm -f conftest*
12161LIBS="$ac_save_LIBS"
12162
12163fi
12164if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12165 echo "$ac_t""yes" 1>&6
12166
12167 OPENGL_LINK="-lMesaGL"
10f2d63a
VZ
12168
12169else
12170 echo "$ac_t""no" 1>&6
10f2d63a
VZ
12171fi
12172
12173
12174fi
12175
12176
12177else
12178 echo "$ac_t""no" 1>&6
12179wxUSE_OPENGL=0
12180fi
12181
12182fi
12183
12184
12185if test "$wxUSE_GUI" = "yes"; then
12186 cat >> confdefs.h <<\EOF
12187#define wxUSE_GUI 1
12188EOF
12189
12190
12191 else
12192 cat >> confdefs.h <<\EOF
12193#define wxUSE_NOGUI 1
12194EOF
12195
12196fi
12197
12198
12199if test "$wxUSE_UNIX" = "yes"; then
12200 cat >> confdefs.h <<\EOF
12201#define wxUSE_UNIX 1
12202EOF
12203
12204fi
12205
12206
12207if test "$wxUSE_APPLE_IEEE" = "yes"; then
12208 cat >> confdefs.h <<\EOF
12209#define wxUSE_APPLE_IEEE 1
12210EOF
12211
12212fi
12213
10f2d63a
VZ
12214if test "$wxUSE_WAVE" = "yes"; then
12215 cat >> confdefs.h <<\EOF
12216#define wxUSE_WAVE 1
12217EOF
12218
12219fi
12220
12221if test "$wxUSE_FILE" = "yes"; then
12222 cat >> confdefs.h <<\EOF
12223#define wxUSE_FILE 1
12224EOF
12225
12226fi
12227
24528b0c
VS
12228if test "$wxUSE_FILESYSTEM" = "yes"; then
12229 cat >> confdefs.h <<\EOF
12230#define wxUSE_FILESYSTEM 1
12231EOF
12232
12233fi
12234
10f2d63a
VZ
12235if test "$wxUSE_FS_INET" = "yes"; then
12236 cat >> confdefs.h <<\EOF
12237#define wxUSE_FS_INET 1
12238EOF
12239
12240fi
12241
12242if test "$wxUSE_FS_ZIP" = "yes"; then
12243 cat >> confdefs.h <<\EOF
12244#define wxUSE_FS_ZIP 1
12245EOF
12246
12247fi
12248
12249if test "$wxUSE_ZIPSTREAM" = "yes"; then
12250 cat >> confdefs.h <<\EOF
12251#define wxUSE_ZIPSTREAM 1
12252EOF
12253
12254fi
12255
eb4efbdc
VZ
12256if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
12257 cat >> confdefs.h <<\EOF
12258#define wxUSE_ON_FATAL_EXCEPTION 1
12259EOF
12260
12261fi
12262
10f2d63a
VZ
12263if test "$wxUSE_BUSYINFO" = "yes"; then
12264 cat >> confdefs.h <<\EOF
12265#define wxUSE_BUSYINFO 1
12266EOF
12267
12268fi
12269
12270if test "$wxUSE_STD_IOSTREAM" = "yes"; then
12271 cat >> confdefs.h <<\EOF
12272#define wxUSE_STD_IOSTREAM 1
12273EOF
12274
12275fi
12276
12277if test "$wxUSE_TEXTFILE" = "yes"; then
12278 if test "$wxUSE_FILE" != "yes"; then
12279 echo "configure: warning: wxTextFile requires wxFile and it won't be compiled without it" 1>&2
12280 else
12281 cat >> confdefs.h <<\EOF
12282#define wxUSE_TEXTFILE 1
12283EOF
12284
12285 fi
12286fi
12287
12288if test "$wxUSE_CONFIG" = "yes" ; then
12289 if test "$wxUSE_TEXTFILE" != "yes"; then
12290 echo "configure: warning: wxConfig requires wxTextFile and it won't be compiled without it" 1>&2
12291 else
12292 cat >> confdefs.h <<\EOF
12293#define wxUSE_CONFIG 1
12294EOF
12295
12296 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
12297 fi
12298fi
12299
12300if test "$wxUSE_INTL" = "yes" ; then
12301 if test "$wxUSE_FILE" != "yes"; then
12302 echo "configure: warning: I18n code requires wxFile and it won't be compiled without it" 1>&2
12303 else
12304 cat >> confdefs.h <<\EOF
12305#define wxUSE_INTL 1
12306EOF
12307
12308 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
12309 fi
12310fi
12311
12312if test "$wxUSE_LOG" = "yes"; then
12313 cat >> confdefs.h <<\EOF
12314#define wxUSE_LOG 1
12315EOF
12316
12317fi
12318
12319if test "$wxUSE_LONGLONG" = "yes"; then
12320 cat >> confdefs.h <<\EOF
12321#define wxUSE_LONGLONG 1
12322EOF
12323
12324fi
12325
9b33fe02
VZ
12326if test "$wxUSE_PLOT" = "yes"; then
12327 cat >> confdefs.h <<\EOF
12328#define wxUSE_PLOT 1
12329EOF
12330
12331fi
12332
10f2d63a
VZ
12333if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then
12334 cat >> confdefs.h <<\EOF
12335#define wxUSE_DIALUP_MANAGER 1
12336EOF
12337
70f7a477 12338 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
10f2d63a
VZ
12339fi
12340
12341if test "$wxUSE_STREAMS" = "yes" ; then
12342 cat >> confdefs.h <<\EOF
12343#define wxUSE_STREAMS 1
12344EOF
12345
12346fi
12347
10f2d63a 12348
afc31813 12349if test "$wxUSE_TIMEDATE" = "yes"; then
83307f33
VZ
12350 for ac_func in strptime
12351do
12352echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
a20b6d3a 12353echo "configure:12354: checking for $ac_func" >&5
83307f33
VZ
12354if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12355 echo $ac_n "(cached) $ac_c" 1>&6
12356else
12357 cat > conftest.$ac_ext <<EOF
a20b6d3a 12358#line 12359 "configure"
83307f33
VZ
12359#include "confdefs.h"
12360/* System header to define __stub macros and hopefully few prototypes,
12361 which can conflict with char $ac_func(); below. */
12362#include <assert.h>
12363/* Override any gcc2 internal prototype to avoid an error. */
12364/* We use char because int might match the return type of a gcc2
12365 builtin and then its argument prototype would still apply. */
12366char $ac_func();
12367
12368int main() {
12369
12370/* The GNU C library defines this for functions which it implements
12371 to always fail with ENOSYS. Some functions are actually named
12372 something starting with __ and the normal name is an alias. */
12373#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12374choke me
12375#else
e8482f24 12376$ac_func();
83307f33
VZ
12377#endif
12378
12379; return 0; }
12380EOF
a20b6d3a 12381if { (eval echo configure:12382: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
83307f33
VZ
12382 rm -rf conftest*
12383 eval "ac_cv_func_$ac_func=yes"
12384else
12385 echo "configure: failed program was:" >&5
12386 cat conftest.$ac_ext >&5
12387 rm -rf conftest*
12388 eval "ac_cv_func_$ac_func=no"
12389fi
12390rm -f conftest*
12391fi
12392
12393if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12394 echo "$ac_t""yes" 1>&6
12395 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12396 cat >> confdefs.h <<EOF
12397#define $ac_tr_func 1
12398EOF
12399
12400else
12401 echo "$ac_t""no" 1>&6
12402fi
12403done
12404
12405
360d6699 12406 echo $ac_n "checking for timezone variable in <time.h>""... $ac_c" 1>&6
a20b6d3a 12407echo "configure:12408: checking for timezone variable in <time.h>" >&5
360d6699
VZ
12408if eval "test \"`echo '$''{'wx_cv_var_timezone'+set}'`\" = set"; then
12409 echo $ac_n "(cached) $ac_c" 1>&6
12410else
12411
12412 cat > conftest.$ac_ext <<EOF
a20b6d3a 12413#line 12414 "configure"
360d6699
VZ
12414#include "confdefs.h"
12415
12416 #include <time.h>
12417
12418int main() {
12419
12420 int tz;
12421 tz = __timezone;
12422
12423; return 0; }
12424EOF
a20b6d3a 12425if { (eval echo configure:12426: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
360d6699
VZ
12426 rm -rf conftest*
12427
12428 wx_cv_var_timezone=__timezone
12429
12430else
12431 echo "configure: failed program was:" >&5
12432 cat conftest.$ac_ext >&5
12433 rm -rf conftest*
12434
12435 cat > conftest.$ac_ext <<EOF
a20b6d3a 12436#line 12437 "configure"
360d6699
VZ
12437#include "confdefs.h"
12438
12439 #include <time.h>
12440
12441int main() {
12442
12443 int tz;
12444 tz = _timezone;
12445
12446; return 0; }
12447EOF
a20b6d3a 12448if { (eval echo configure:12449: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
360d6699
VZ
12449 rm -rf conftest*
12450
12451 wx_cv_var_timezone=_timezone
12452
5357c8e8
VZ
12453else
12454 echo "configure: failed program was:" >&5
12455 cat conftest.$ac_ext >&5
12456 rm -rf conftest*
12457
12458 cat > conftest.$ac_ext <<EOF
a20b6d3a 12459#line 12460 "configure"
5357c8e8
VZ
12460#include "confdefs.h"
12461
12462 #include <time.h>
12463
12464int main() {
12465
12466 int tz;
12467 tz = timezone;
12468
12469; return 0; }
12470EOF
a20b6d3a 12471if { (eval echo configure:12472: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5357c8e8
VZ
12472 rm -rf conftest*
12473
12474 wx_cv_var_timezone=timezone
12475
360d6699
VZ
12476else
12477 echo "configure: failed program was:" >&5
12478 cat conftest.$ac_ext >&5
12479 rm -rf conftest*
12480 { echo "configure: error: no timezone variable" 1>&2; exit 1; }
5357c8e8
VZ
12481
12482fi
12483rm -f conftest*
12484
360d6699
VZ
12485
12486fi
12487rm -f conftest*
12488
12489
12490fi
12491rm -f conftest*
12492
12493
12494fi
12495
12496echo "$ac_t""$wx_cv_var_timezone" 1>&6
12497
12498 cat >> confdefs.h <<EOF
12499#define WX_TIMEZONE $wx_cv_var_timezone
12500EOF
12501
12502
3fcdd07b 12503 for ac_func in localtime
afc31813
VZ
12504do
12505echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
a20b6d3a 12506echo "configure:12507: checking for $ac_func" >&5
afc31813
VZ
12507if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12508 echo $ac_n "(cached) $ac_c" 1>&6
12509else
12510 cat > conftest.$ac_ext <<EOF
a20b6d3a 12511#line 12512 "configure"
10f2d63a 12512#include "confdefs.h"
afc31813
VZ
12513/* System header to define __stub macros and hopefully few prototypes,
12514 which can conflict with char $ac_func(); below. */
12515#include <assert.h>
12516/* Override any gcc2 internal prototype to avoid an error. */
12517/* We use char because int might match the return type of a gcc2
12518 builtin and then its argument prototype would still apply. */
12519char $ac_func();
12520
10f2d63a 12521int main() {
afc31813
VZ
12522
12523/* The GNU C library defines this for functions which it implements
12524 to always fail with ENOSYS. Some functions are actually named
12525 something starting with __ and the normal name is an alias. */
12526#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12527choke me
12528#else
e8482f24 12529$ac_func();
afc31813
VZ
12530#endif
12531
10f2d63a
VZ
12532; return 0; }
12533EOF
a20b6d3a 12534if { (eval echo configure:12535: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a 12535 rm -rf conftest*
afc31813 12536 eval "ac_cv_func_$ac_func=yes"
10f2d63a
VZ
12537else
12538 echo "configure: failed program was:" >&5
12539 cat conftest.$ac_ext >&5
12540 rm -rf conftest*
afc31813
VZ
12541 eval "ac_cv_func_$ac_func=no"
12542fi
12543rm -f conftest*
12544fi
12545
12546if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12547 echo "$ac_t""yes" 1>&6
12548 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12549 cat >> confdefs.h <<EOF
12550#define $ac_tr_func 1
12551EOF
3fcdd07b 12552
afc31813
VZ
12553else
12554 echo "$ac_t""no" 1>&6
12555fi
12556done
12557
12558
0470b1e6
VZ
12559 if test "$ac_cv_func_localtime" = "yes"; then
12560 echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6
a20b6d3a 12561echo "configure:12562: checking for tm_gmtoff in struct tm" >&5
0470b1e6
VZ
12562if eval "test \"`echo '$''{'wx_cv_struct_tm_has_gmtoff'+set}'`\" = set"; then
12563 echo $ac_n "(cached) $ac_c" 1>&6
12564else
12565
12566 cat > conftest.$ac_ext <<EOF
a20b6d3a 12567#line 12568 "configure"
0470b1e6
VZ
12568#include "confdefs.h"
12569
12570 #include <time.h>
12571
12572int main() {
12573
12574 struct tm tm;
12575 tm.tm_gmtoff++;
12576
12577; return 0; }
12578EOF
a20b6d3a 12579if { (eval echo configure:12580: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
0470b1e6
VZ
12580 rm -rf conftest*
12581
f03a98d8 12582 wx_cv_struct_tm_has_gmtoff=yes
0470b1e6
VZ
12583 cat >> confdefs.h <<\EOF
12584#define WX_GMTOFF_IN_TM 1
12585EOF
12586
12587
12588else
12589 echo "configure: failed program was:" >&5
12590 cat conftest.$ac_ext >&5
12591 rm -rf conftest*
12592 wx_cv_struct_tm_has_gmtoff=no
12593
12594fi
12595rm -f conftest*
12596
12597fi
12598
12599echo "$ac_t""$wx_cv_struct_tm_has_gmtoff" 1>&6
3fcdd07b
VZ
12600 fi
12601
12602 for ac_func in gettimeofday ftime
12603do
12604echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
a20b6d3a 12605echo "configure:12606: checking for $ac_func" >&5
3fcdd07b
VZ
12606if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12607 echo $ac_n "(cached) $ac_c" 1>&6
12608else
12609 cat > conftest.$ac_ext <<EOF
a20b6d3a 12610#line 12611 "configure"
3fcdd07b
VZ
12611#include "confdefs.h"
12612/* System header to define __stub macros and hopefully few prototypes,
12613 which can conflict with char $ac_func(); below. */
12614#include <assert.h>
12615/* Override any gcc2 internal prototype to avoid an error. */
12616/* We use char because int might match the return type of a gcc2
12617 builtin and then its argument prototype would still apply. */
12618char $ac_func();
12619
12620int main() {
12621
12622/* The GNU C library defines this for functions which it implements
12623 to always fail with ENOSYS. Some functions are actually named
12624 something starting with __ and the normal name is an alias. */
12625#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12626choke me
12627#else
e8482f24 12628$ac_func();
3fcdd07b
VZ
12629#endif
12630
12631; return 0; }
12632EOF
a20b6d3a 12633if { (eval echo configure:12634: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3fcdd07b
VZ
12634 rm -rf conftest*
12635 eval "ac_cv_func_$ac_func=yes"
12636else
12637 echo "configure: failed program was:" >&5
12638 cat conftest.$ac_ext >&5
12639 rm -rf conftest*
12640 eval "ac_cv_func_$ac_func=no"
12641fi
12642rm -f conftest*
12643fi
12644
12645if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12646 echo "$ac_t""yes" 1>&6
12647 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12648 cat >> confdefs.h <<EOF
12649#define $ac_tr_func 1
12650EOF
12651 break
12652else
12653 echo "$ac_t""no" 1>&6
12654fi
12655done
12656
12657
12658 if test "$ac_cv_func_gettimeofday" = "yes"; then
afc31813 12659 echo $ac_n "checking whether gettimeofday takes two arguments""... $ac_c" 1>&6
a20b6d3a 12660echo "configure:12661: checking whether gettimeofday takes two arguments" >&5
afc31813
VZ
12661if eval "test \"`echo '$''{'wx_cv_func_gettimeofday_has_2_args'+set}'`\" = set"; then
12662 echo $ac_n "(cached) $ac_c" 1>&6
12663else
12664
12665
12666 ac_ext=C
12667# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12668ac_cpp='$CXXCPP $CPPFLAGS'
12669ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12670ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12671cross_compiling=$ac_cv_prog_cxx_cross
12672
12673
12674 cat > conftest.$ac_ext <<EOF
a20b6d3a 12675#line 12676 "configure"
10f2d63a 12676#include "confdefs.h"
afc31813
VZ
12677
12678 #include <sys/time.h>
12679 #include <unistd.h>
12680
10f2d63a 12681int main() {
afc31813
VZ
12682
12683 struct timeval tv;
12684 struct timezone tz;
12685 gettimeofday(&tv, &tz);
12686
10f2d63a
VZ
12687; return 0; }
12688EOF
a20b6d3a 12689if { (eval echo configure:12690: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10f2d63a 12690 rm -rf conftest*
afc31813 12691 wx_cv_func_gettimeofday_has_2_args=yes
10f2d63a
VZ
12692else
12693 echo "configure: failed program was:" >&5
12694 cat conftest.$ac_ext >&5
12695 rm -rf conftest*
12696 cat > conftest.$ac_ext <<EOF
a20b6d3a 12697#line 12698 "configure"
10f2d63a 12698#include "confdefs.h"
afc31813
VZ
12699
12700 #include <sys/time.h>
12701 #include <unistd.h>
12702
10f2d63a 12703int main() {
afc31813
VZ
12704
12705 struct timeval tv;
12706 gettimeofday(&tv);
12707
10f2d63a
VZ
12708; return 0; }
12709EOF
a20b6d3a 12710if { (eval echo configure:12711: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10f2d63a 12711 rm -rf conftest*
afc31813 12712 wx_cv_func_gettimeofday_has_2_args=no
10f2d63a
VZ
12713else
12714 echo "configure: failed program was:" >&5
12715 cat conftest.$ac_ext >&5
12716 rm -rf conftest*
afc31813
VZ
12717 wx_cv_func_gettimeofday_has_2_args=unknown
12718
10f2d63a
VZ
12719fi
12720rm -f conftest*
afc31813 12721
10f2d63a
VZ
12722fi
12723rm -f conftest*
afc31813 12724 ac_ext=c
10f2d63a
VZ
12725# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12726ac_cpp='$CPP $CPPFLAGS'
12727ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12728ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12729cross_compiling=$ac_cv_prog_cc_cross
12730
afc31813
VZ
12731
12732fi
12733
12734echo "$ac_t""$wx_cv_func_gettimeofday_has_2_args" 1>&6
c63c7106 12735
afc31813
VZ
12736 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
12737 cat >> confdefs.h <<\EOF
12738#define WX_GETTIMEOFDAY_NO_TZ 1
12739EOF
12740
12741 fi
12742 fi
12743
12744 cat >> confdefs.h <<\EOF
12745#define wxUSE_TIMEDATE 1
12746EOF
12747
12748 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
12749fi
12750
12751
b089607b
VZ
12752if test "$TOOLKIT" != "MSW"; then
12753
afc31813 12754if test "$wxUSE_SOCKETS" = "yes"; then
c63c7106 12755 echo $ac_n "checking for socket""... $ac_c" 1>&6
a20b6d3a 12756echo "configure:12757: checking for socket" >&5
c63c7106
VZ
12757if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
12758 echo $ac_n "(cached) $ac_c" 1>&6
12759else
12760 cat > conftest.$ac_ext <<EOF
a20b6d3a 12761#line 12762 "configure"
c63c7106
VZ
12762#include "confdefs.h"
12763/* System header to define __stub macros and hopefully few prototypes,
12764 which can conflict with char socket(); below. */
12765#include <assert.h>
12766/* Override any gcc2 internal prototype to avoid an error. */
12767/* We use char because int might match the return type of a gcc2
12768 builtin and then its argument prototype would still apply. */
12769char socket();
12770
12771int main() {
12772
12773/* The GNU C library defines this for functions which it implements
12774 to always fail with ENOSYS. Some functions are actually named
12775 something starting with __ and the normal name is an alias. */
12776#if defined (__stub_socket) || defined (__stub___socket)
12777choke me
12778#else
e8482f24 12779socket();
c63c7106
VZ
12780#endif
12781
12782; return 0; }
12783EOF
a20b6d3a 12784if { (eval echo configure:12785: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
c63c7106
VZ
12785 rm -rf conftest*
12786 eval "ac_cv_func_socket=yes"
12787else
12788 echo "configure: failed program was:" >&5
12789 cat conftest.$ac_ext >&5
12790 rm -rf conftest*
12791 eval "ac_cv_func_socket=no"
12792fi
12793rm -f conftest*
12794fi
12795
12796if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
12797 echo "$ac_t""yes" 1>&6
12798 :
12799else
12800 echo "$ac_t""no" 1>&6
12801echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
a20b6d3a 12802echo "configure:12803: checking for socket in -lsocket" >&5
c63c7106
VZ
12803ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
12804if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12805 echo $ac_n "(cached) $ac_c" 1>&6
12806else
12807 ac_save_LIBS="$LIBS"
12808LIBS="-lsocket $LIBS"
12809cat > conftest.$ac_ext <<EOF
a20b6d3a 12810#line 12811 "configure"
c63c7106
VZ
12811#include "confdefs.h"
12812/* Override any gcc2 internal prototype to avoid an error. */
12813/* We use char because int might match the return type of a gcc2
12814 builtin and then its argument prototype would still apply. */
12815char socket();
12816
12817int main() {
12818socket()
12819; return 0; }
12820EOF
a20b6d3a 12821if { (eval echo configure:12822: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
c63c7106
VZ
12822 rm -rf conftest*
12823 eval "ac_cv_lib_$ac_lib_var=yes"
12824else
12825 echo "configure: failed program was:" >&5
12826 cat conftest.$ac_ext >&5
12827 rm -rf conftest*
12828 eval "ac_cv_lib_$ac_lib_var=no"
12829fi
12830rm -f conftest*
12831LIBS="$ac_save_LIBS"
12832
12833fi
12834if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12835 echo "$ac_t""yes" 1>&6
12836 INET_LINK="$INET_LINK -lsocket"
c63c7106
VZ
12837else
12838 echo "$ac_t""no" 1>&6
afc31813
VZ
12839
12840 echo "configure: warning: socket library not found - sockets will be disabled" 1>&2
12841 wxUSE_SOCKETS=no
12842
12843
c63c7106
VZ
12844fi
12845
12846
12847fi
12848
10f2d63a
VZ
12849fi
12850
b089607b
VZ
12851fi
12852
afc31813 12853if test "$wxUSE_SOCKETS" = "yes" ; then
51a9faba 12854 echo $ac_n "checking what is the type of the third argument of getsockname""... $ac_c" 1>&6
a20b6d3a 12855echo "configure:12856: checking what is the type of the third argument of getsockname" >&5
51a9faba
VZ
12856if eval "test \"`echo '$''{'wx_cv_type_getsockname3'+set}'`\" = set"; then
12857 echo $ac_n "(cached) $ac_c" 1>&6
12858else
12859
12860
12861 ac_ext=C
afc31813
VZ
12862# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12863ac_cpp='$CXXCPP $CPPFLAGS'
12864ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12865ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12866cross_compiling=$ac_cv_prog_cxx_cross
12867
51a9faba
VZ
12868
12869 cat > conftest.$ac_ext <<EOF
a20b6d3a 12870#line 12871 "configure"
afc31813 12871#include "confdefs.h"
51a9faba 12872
3ace2e6d 12873 #include <sys/types.h>
51a9faba
VZ
12874 #include <sys/socket.h>
12875
afc31813 12876int main() {
51a9faba
VZ
12877
12878 socklen_t len;
12879 getsockname(0, 0, &len);
12880
afc31813
VZ
12881; return 0; }
12882EOF
a20b6d3a 12883if { (eval echo configure:12884: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
afc31813 12884 rm -rf conftest*
51a9faba 12885 wx_cv_type_getsockname3=socklen_t
afc31813
VZ
12886else
12887 echo "configure: failed program was:" >&5
12888 cat conftest.$ac_ext >&5
12889 rm -rf conftest*
12890 cat > conftest.$ac_ext <<EOF
a20b6d3a 12891#line 12892 "configure"
afc31813 12892#include "confdefs.h"
51a9faba 12893
3ace2e6d 12894 #include <sys/types.h>
51a9faba
VZ
12895 #include <sys/socket.h>
12896
afc31813 12897int main() {
51a9faba
VZ
12898
12899 size_t len;
12900 getsockname(0, 0, &len);
12901
afc31813
VZ
12902; return 0; }
12903EOF
a20b6d3a 12904if { (eval echo configure:12905: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
afc31813 12905 rm -rf conftest*
51a9faba 12906 wx_cv_type_getsockname3=size_t
afc31813
VZ
12907else
12908 echo "configure: failed program was:" >&5
12909 cat conftest.$ac_ext >&5
12910 rm -rf conftest*
12911 cat > conftest.$ac_ext <<EOF
a20b6d3a 12912#line 12913 "configure"
afc31813 12913#include "confdefs.h"
51a9faba 12914
3ace2e6d 12915 #include <sys/types.h>
51a9faba
VZ
12916 #include <sys/socket.h>
12917
afc31813 12918int main() {
51a9faba
VZ
12919
12920 int len;
12921 getsockname(0, 0, &len);
12922
afc31813
VZ
12923; return 0; }
12924EOF
a20b6d3a 12925if { (eval echo configure:12926: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
afc31813 12926 rm -rf conftest*
51a9faba 12927 wx_cv_type_getsockname3=int
afc31813
VZ
12928else
12929 echo "configure: failed program was:" >&5
12930 cat conftest.$ac_ext >&5
3ace2e6d
SN
12931 rm -rf conftest*
12932 wx_cv_type_getsockname3=unknown
12933
afc31813
VZ
12934fi
12935rm -f conftest*
51a9faba 12936
afc31813
VZ
12937fi
12938rm -f conftest*
51a9faba 12939
afc31813
VZ
12940fi
12941rm -f conftest*
51a9faba
VZ
12942
12943 ac_ext=c
afc31813
VZ
12944# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12945ac_cpp='$CPP $CPPFLAGS'
12946ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12947ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12948cross_compiling=$ac_cv_prog_cc_cross
12949
51a9faba
VZ
12950
12951fi
12952
12953echo "$ac_t""$wx_cv_type_getsockname3" 1>&6
12954
12955 if test "$wx_cv_type_getsockname3" = "unknown"; then
12956 wxUSE_SOCKETS=no
12957 echo "configure: warning: Couldn't find socklen_t synonym for this system" 1>&2
12958 else
12959 cat >> confdefs.h <<EOF
12960#define SOCKLEN_T $wx_cv_type_getsockname3
12961EOF
12962
12963 fi
12964fi
afc31813 12965
51a9faba 12966if test "$wxUSE_SOCKETS" = "yes" ; then
afc31813
VZ
12967 cat >> confdefs.h <<\EOF
12968#define wxUSE_SOCKETS 1
12969EOF
12970
70f7a477 12971 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
afc31813
VZ
12972 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS protocol"
12973fi
12974
10f2d63a 12975
dc3d889d
VZ
12976if test "$wxUSE_GUI" = "yes"; then
12977
b089607b
VZ
12978if test "$TOOLKIT" != "MSW"; then
12979
ceded8b9 12980if test "$wxUSE_JOYSTICK" = "yes"; then
10f2d63a
VZ
12981 for ac_hdr in linux/joystick.h
12982do
12983ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12984echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
dc3d889d 12985echo "configure:12986: checking for $ac_hdr" >&5
10f2d63a
VZ
12986if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12987 echo $ac_n "(cached) $ac_c" 1>&6
12988else
12989 cat > conftest.$ac_ext <<EOF
dc3d889d 12990#line 12991 "configure"
10f2d63a
VZ
12991#include "confdefs.h"
12992#include <$ac_hdr>
12993EOF
12994ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
dc3d889d 12995{ (eval echo configure:12996: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
12996ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12997if test -z "$ac_err"; then
12998 rm -rf conftest*
12999 eval "ac_cv_header_$ac_safe=yes"
13000else
13001 echo "$ac_err" >&5
13002 echo "configure: failed program was:" >&5
13003 cat conftest.$ac_ext >&5
13004 rm -rf conftest*
13005 eval "ac_cv_header_$ac_safe=no"
13006fi
13007rm -f conftest*
13008fi
13009if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13010 echo "$ac_t""yes" 1>&6
13011 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13012 cat >> confdefs.h <<EOF
13013#define $ac_tr_hdr 1
13014EOF
13015
13016else
13017 echo "$ac_t""no" 1>&6
13018fi
13019done
13020
b089607b 13021 if test "$ac_cv_header_linux_joystick_h" != "yes"; then
ceded8b9 13022 wxUSE_JOYSTICK=no
dc3d889d 13023 echo "configure: warning: Joystick not supported by this system" 1>&2
b089607b
VZ
13024 fi
13025fi
13026
13027fi
13028
ceded8b9 13029if test "$wxUSE_JOYSTICK" = "yes"; then
10f2d63a
VZ
13030 cat >> confdefs.h <<\EOF
13031#define wxUSE_JOYSTICK 1
13032EOF
13033
13034 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
10f2d63a
VZ
13035fi
13036
dc3d889d
VZ
13037fi
13038
10f2d63a 13039
b089607b
VZ
13040if test "$TOOLKIT" != "MSW"; then
13041
10f2d63a
VZ
13042HAVE_DL_FUNCS=0
13043HAVE_SHL_FUNCS=0
13044if test "$wxUSE_DYNLIB_CLASS" = "yes"; then
13045 for ac_func in dlopen
13046do
13047echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
dc3d889d 13048echo "configure:13049: checking for $ac_func" >&5
10f2d63a
VZ
13049if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13050 echo $ac_n "(cached) $ac_c" 1>&6
13051else
13052 cat > conftest.$ac_ext <<EOF
dc3d889d 13053#line 13054 "configure"
10f2d63a
VZ
13054#include "confdefs.h"
13055/* System header to define __stub macros and hopefully few prototypes,
13056 which can conflict with char $ac_func(); below. */
13057#include <assert.h>
13058/* Override any gcc2 internal prototype to avoid an error. */
13059/* We use char because int might match the return type of a gcc2
13060 builtin and then its argument prototype would still apply. */
13061char $ac_func();
13062
13063int main() {
13064
13065/* The GNU C library defines this for functions which it implements
13066 to always fail with ENOSYS. Some functions are actually named
13067 something starting with __ and the normal name is an alias. */
13068#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13069choke me
13070#else
e8482f24 13071$ac_func();
10f2d63a
VZ
13072#endif
13073
13074; return 0; }
13075EOF
dc3d889d 13076if { (eval echo configure:13077: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
13077 rm -rf conftest*
13078 eval "ac_cv_func_$ac_func=yes"
13079else
13080 echo "configure: failed program was:" >&5
13081 cat conftest.$ac_ext >&5
13082 rm -rf conftest*
13083 eval "ac_cv_func_$ac_func=no"
13084fi
13085rm -f conftest*
13086fi
13087
13088if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13089 echo "$ac_t""yes" 1>&6
13090 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13091 cat >> confdefs.h <<EOF
13092#define $ac_tr_func 1
13093EOF
13094
13095 cat >> confdefs.h <<\EOF
13096#define HAVE_DLOPEN 1
13097EOF
13098
13099 HAVE_DL_FUNCS=1
13100
13101else
13102 echo "$ac_t""no" 1>&6
13103echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
dc3d889d 13104echo "configure:13105: checking for dlopen in -ldl" >&5
10f2d63a
VZ
13105ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
13106if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13107 echo $ac_n "(cached) $ac_c" 1>&6
13108else
13109 ac_save_LIBS="$LIBS"
13110LIBS="-ldl $LIBS"
13111cat > conftest.$ac_ext <<EOF
dc3d889d 13112#line 13113 "configure"
10f2d63a
VZ
13113#include "confdefs.h"
13114/* Override any gcc2 internal prototype to avoid an error. */
13115/* We use char because int might match the return type of a gcc2
13116 builtin and then its argument prototype would still apply. */
13117char dlopen();
13118
13119int main() {
13120dlopen()
13121; return 0; }
13122EOF
dc3d889d 13123if { (eval echo configure:13124: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
13124 rm -rf conftest*
13125 eval "ac_cv_lib_$ac_lib_var=yes"
13126else
13127 echo "configure: failed program was:" >&5
13128 cat conftest.$ac_ext >&5
13129 rm -rf conftest*
13130 eval "ac_cv_lib_$ac_lib_var=no"
13131fi
13132rm -f conftest*
13133LIBS="$ac_save_LIBS"
13134
13135fi
13136if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13137 echo "$ac_t""yes" 1>&6
13138
13139 cat >> confdefs.h <<\EOF
13140#define HAVE_DLOPEN 1
13141EOF
13142
13143 HAVE_DL_FUNCS=1
13144 LIBS="$LIBS -ldl"
13145
13146else
13147 echo "$ac_t""no" 1>&6
13148
13149 for ac_func in shl_load
13150do
13151echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
dc3d889d 13152echo "configure:13153: checking for $ac_func" >&5
10f2d63a
VZ
13153if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13154 echo $ac_n "(cached) $ac_c" 1>&6
13155else
13156 cat > conftest.$ac_ext <<EOF
dc3d889d 13157#line 13158 "configure"
10f2d63a
VZ
13158#include "confdefs.h"
13159/* System header to define __stub macros and hopefully few prototypes,
13160 which can conflict with char $ac_func(); below. */
13161#include <assert.h>
13162/* Override any gcc2 internal prototype to avoid an error. */
13163/* We use char because int might match the return type of a gcc2
13164 builtin and then its argument prototype would still apply. */
13165char $ac_func();
13166
13167int main() {
13168
13169/* The GNU C library defines this for functions which it implements
13170 to always fail with ENOSYS. Some functions are actually named
13171 something starting with __ and the normal name is an alias. */
13172#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13173choke me
13174#else
e8482f24 13175$ac_func();
10f2d63a
VZ
13176#endif
13177
13178; return 0; }
13179EOF
dc3d889d 13180if { (eval echo configure:13181: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
13181 rm -rf conftest*
13182 eval "ac_cv_func_$ac_func=yes"
13183else
13184 echo "configure: failed program was:" >&5
13185 cat conftest.$ac_ext >&5
13186 rm -rf conftest*
13187 eval "ac_cv_func_$ac_func=no"
13188fi
13189rm -f conftest*
13190fi
13191
13192if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13193 echo "$ac_t""yes" 1>&6
13194 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13195 cat >> confdefs.h <<EOF
13196#define $ac_tr_func 1
13197EOF
13198
13199 cat >> confdefs.h <<\EOF
13200#define HAVE_SHL_LOAD 1
13201EOF
13202
13203 HAVE_SHL_FUNCS=1
13204
13205else
13206 echo "$ac_t""no" 1>&6
13207fi
13208done
13209
13210
13211fi
13212
13213
13214fi
13215done
13216
13217
13218 if test "$HAVE_DL_FUNCS" = 0; then
13219 if test "$HAVE_SHL_FUNCS" = 0; then
13220 if test "$USE_UNIX" = 1; then
b12915c1 13221 echo "configure: warning: Missing dynamic loading support, several features will be disabled" 1>&2
10f2d63a
VZ
13222 wxUSE_DYNLIB_CLASS=no
13223 else
b12915c1 13224 echo "configure: warning: Assuming wxLibrary class works on this platform" 1>&2
10f2d63a
VZ
13225 fi
13226 fi
13227 fi
13228fi
13229
b089607b
VZ
13230fi
13231
10f2d63a 13232if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
b12915c1 13233 cat >> confdefs.h <<\EOF
10f2d63a
VZ
13234#define wxUSE_DYNLIB_CLASS 1
13235EOF
13236
b12915c1
VZ
13237else
13238 wxUSE_ODBC=no
13239 wxUSE_SERIAL=no
10f2d63a
VZ
13240fi
13241
13242
13243if test "$wxUSE_UNICODE" = "yes" ; then
13244 cat >> confdefs.h <<\EOF
13245#define wxUSE_UNICODE 1
13246EOF
13247
13248fi
13249
13250if test "$wxUSE_WCSRTOMBS" = "yes" ; then
13251 cat >> confdefs.h <<\EOF
13252#define wxUSE_WCSRTOMBS 1
13253EOF
13254
13255fi
13256
13257if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
13258 cat >> confdefs.h <<\EOF
13259#define wxUSE_EXPERIMENTAL_PRINTF 1
13260EOF
13261
13262fi
13263
13264
b12915c1
VZ
13265if test "$wxUSE_SERIAL" = "yes" ; then
13266 cat >> confdefs.h <<\EOF
13267#define wxUSE_SERIAL 1
13268EOF
13269
13270fi
13271
13272
10f2d63a
VZ
13273IODBC_C_SRC=""
13274if test "$wxUSE_ODBC" = "yes" ; then
13275 cat >> confdefs.h <<\EOF
13276#define wxUSE_ODBC 1
13277EOF
13278
13279 WXODBCFLAG="-D_IODBC_"
13280 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
13281 IODBCOBJS="\$(IODBC_OBJS)"
13282else
13283 IODBCOBJS=
13284fi
13285
13286
13287if test "$wxUSE_POSTSCRIPT" = "yes" ; then
13288 cat >> confdefs.h <<\EOF
13289#define wxUSE_POSTSCRIPT 1
13290EOF
13291
13292fi
13293
13294cat >> confdefs.h <<\EOF
13295#define wxUSE_AFM_FOR_POSTSCRIPT 1
13296EOF
13297
13298
13299cat >> confdefs.h <<\EOF
13300#define wxUSE_NORMALIZED_PS_FONTS 1
13301EOF
13302
13303
13304
13305if test "$wxUSE_CONSTRAINTS" = "yes"; then
13306 cat >> confdefs.h <<\EOF
13307#define wxUSE_CONSTRAINTS 1
13308EOF
13309
13310 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
13311fi
13312
13313if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
13314 cat >> confdefs.h <<\EOF
13315#define wxUSE_MDI_ARCHITECTURE 1
13316EOF
13317
13318 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
13319fi
13320
13321if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
13322 cat >> confdefs.h <<\EOF
13323#define wxUSE_DOC_VIEW_ARCHITECTURE 1
13324EOF
13325
13326 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
13327 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
13328 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
13329 fi
13330fi
13331
13332if test "$wxUSE_HELP" = "yes"; then
13333 cat >> confdefs.h <<\EOF
13334#define wxUSE_HELP 1
13335EOF
13336
13337 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
13338fi
13339
13340if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
13341 if test "$wxUSE_CONSTRAINTS" != "yes"; then
13342 echo "configure: warning: Printing support cannot be used without constraints so it won't be compiled without it" 1>&2
13343 else
13344 cat >> confdefs.h <<\EOF
13345#define wxUSE_PRINTING_ARCHITECTURE 1
13346EOF
13347
13348 fi
13349 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
13350fi
13351
13352if test "$wxUSE_PROLOGIO" = "yes" ; then
13353 cat >> confdefs.h <<\EOF
13354#define wxUSE_PROLOGIO 1
13355EOF
13356
13357fi
13358
13359if test "$wxUSE_RESOURCES" = "yes" ; then
13360 if test "$wxUSE_PROLOGIO" = "yes" ; then
13361 cat >> confdefs.h <<\EOF
13362#define wxUSE_RESOURCES 1
13363EOF
13364
13365 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS resource"
13366 else
13367 echo "configure: warning: wxWindows ressource system requires PrologIO and can't be compiled without it." 1>&2
13368 fi
13369fi
13370
13371if test "$wxUSE_X_RESOURCES" = "yes"; then
13372 cat >> confdefs.h <<\EOF
13373#define wxUSE_X_RESOURCES 1
13374EOF
13375
13376fi
13377
13378
13379if test "$wxUSE_IPC" = "yes"; then
eb4efbdc
VZ
13380 if test "$wxUSE_SOCKETS" != "yes"; then
13381 echo "configure: warning: wxWindows IPC classes require sockets" 1>&2
13382 fi
13383
10f2d63a
VZ
13384 cat >> confdefs.h <<\EOF
13385#define wxUSE_IPC 1
13386EOF
13387
13388fi
13389
13390if test "$wxUSE_CLIPBOARD" = "yes"; then
13391 cat >> confdefs.h <<\EOF
13392#define wxUSE_CLIPBOARD 1
13393EOF
13394
13395fi
13396
13397if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
13398 if test "$wxUSE_GTK" = 1; then
13399 if test "$WXGTK12" != 1; then
13400 echo "configure: warning: Drag and drop is only supported under GTK+ 1.2" 1>&2
13401 wxUSE_DRAG_AND_DROP=no
13402 fi
13403 fi
13404
13405 if test "$wxUSE_MOTIF" = 1; then
13406 echo "configure: warning: Drag and drop is not yet supported under Motif" 1>&2
13407 wxUSE_DRAG_AND_DROP=no
13408 fi
13409
13410 if test "$USE_WIN32" = 1; then
13411 for ac_hdr in ole2.h
13412do
13413ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13414echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
dc3d889d 13415echo "configure:13416: checking for $ac_hdr" >&5
10f2d63a
VZ
13416if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
13417 echo $ac_n "(cached) $ac_c" 1>&6
13418else
13419 cat > conftest.$ac_ext <<EOF
dc3d889d 13420#line 13421 "configure"
10f2d63a
VZ
13421#include "confdefs.h"
13422#include <$ac_hdr>
13423EOF
13424ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
dc3d889d 13425{ (eval echo configure:13426: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
13426ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13427if test -z "$ac_err"; then
13428 rm -rf conftest*
13429 eval "ac_cv_header_$ac_safe=yes"
13430else
13431 echo "$ac_err" >&5
13432 echo "configure: failed program was:" >&5
13433 cat conftest.$ac_ext >&5
13434 rm -rf conftest*
13435 eval "ac_cv_header_$ac_safe=no"
13436fi
13437rm -f conftest*
13438fi
13439if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13440 echo "$ac_t""yes" 1>&6
13441 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13442 cat >> confdefs.h <<EOF
13443#define $ac_tr_hdr 1
13444EOF
13445
13446else
13447 echo "$ac_t""no" 1>&6
13448fi
13449done
13450
13451 if test "x$HAVE_OLE2_H" = x ; then
13452 echo "configure: warning: Drag and drop disabled because OLE headers not found" 1>&2
13453 wxUSE_DRAG_AND_DROP=no
13454 fi
13455 fi
13456
13457 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
13458 cat >> confdefs.h <<\EOF
13459#define wxUSE_DRAG_AND_DROP 1
13460EOF
13461
13462 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
13463 fi
13464
13465fi
13466
13467if test "$wxUSE_SPLINES" = "yes" ; then
13468 cat >> confdefs.h <<\EOF
13469#define wxUSE_SPLINES 1
13470EOF
13471
13472fi
13473
13474
13475if test "$wxUSE_ACCEL" = "yes"; then
13476 cat >> confdefs.h <<\EOF
13477#define wxUSE_ACCEL 1
13478EOF
13479
13480fi
13481
13482if test "$wxUSE_CARET" = "yes"; then
13483 cat >> confdefs.h <<\EOF
13484#define wxUSE_CARET 1
13485EOF
13486
13487 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
13488fi
13489
13490if test "$wxUSE_COMBOBOX" = "yes"; then
13491 cat >> confdefs.h <<\EOF
13492#define wxUSE_COMBOBOX 1
13493EOF
13494
13495fi
13496
13497if test "$wxUSE_CHOICE" = "yes"; then
13498 cat >> confdefs.h <<\EOF
13499#define wxUSE_CHOICE 1
13500EOF
13501
13502fi
13503
13504if test "$wxUSE_BMPBUTTON" = "yes"; then
13505 cat >> confdefs.h <<\EOF
13506#define wxUSE_BMPBUTTON 1
13507EOF
13508
13509fi
13510
13511if test "$wxUSE_CHECKBOX" = "yes"; then
13512 cat >> confdefs.h <<\EOF
13513#define wxUSE_CHECKBOX 1
13514EOF
13515
13516fi
13517
13518if test "$wxUSE_CHECKLST" = "yes"; then
13519 cat >> confdefs.h <<\EOF
13520#define wxUSE_CHECKLISTBOX 1
13521EOF
13522
13523 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
13524fi
13525
13526if test "$wxUSE_GAUGE" = "yes"; then
13527 cat >> confdefs.h <<\EOF
13528#define wxUSE_GAUGE 1
13529EOF
13530
13531fi
13532
d6a55c4b
VZ
13533if test "$wxUSE_NEW_GRID" = "yes"; then
13534 wxUSE_GRID="yes"
10f2d63a 13535 cat >> confdefs.h <<\EOF
d6a55c4b 13536#define wxUSE_NEW_GRID 1
10f2d63a
VZ
13537EOF
13538
d6a55c4b 13539 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS newgrid"
10f2d63a
VZ
13540fi
13541
d6a55c4b 13542if test "$wxUSE_GRID" = "yes"; then
10f2d63a 13543 cat >> confdefs.h <<\EOF
d6a55c4b 13544#define wxUSE_GRID 1
10f2d63a
VZ
13545EOF
13546
d6a55c4b 13547 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
10f2d63a
VZ
13548fi
13549
13550if test "$wxUSE_IMAGLIST" = "yes"; then
13551 cat >> confdefs.h <<\EOF
13552#define wxUSE_IMAGLIST 1
13553EOF
13554
13555fi
13556
13557if test "$wxUSE_LISTBOX" = "yes"; then
13558 cat >> confdefs.h <<\EOF
13559#define wxUSE_LISTBOX 1
13560EOF
13561
13562fi
13563
13564if test "$wxUSE_LISTCTRL" = "yes"; then
13565 if test "$wxUSE_IMAGLIST" = "yes"; then
13566 cat >> confdefs.h <<\EOF
13567#define wxUSE_LISTCTRL 1
13568EOF
13569
13570 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
13571 else
13572 echo "configure: warning: wxListCtrl requires wxImageList and won't be compiled without it" 1>&2
13573 fi
13574fi
13575
13576if test "$wxUSE_NOTEBOOK" = "yes"; then
13577 cat >> confdefs.h <<\EOF
13578#define wxUSE_NOTEBOOK 1
13579EOF
13580
13581 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
13582fi
13583
13584if test "$wxUSE_RADIOBOX" = "yes"; then
13585 cat >> confdefs.h <<\EOF
13586#define wxUSE_RADIOBOX 1
13587EOF
13588
13589fi
13590
13591if test "$wxUSE_RADIOBTN" = "yes"; then
13592 cat >> confdefs.h <<\EOF
13593#define wxUSE_RADIOBTN 1
13594EOF
13595
13596fi
13597
13598if test "$wxUSE_SASH" = "yes"; then
13599 cat >> confdefs.h <<\EOF
13600#define wxUSE_SASH 1
13601EOF
13602
13603 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
13604fi
13605
13606if test "$wxUSE_SCROLLBAR" = "yes"; then
13607 cat >> confdefs.h <<\EOF
13608#define wxUSE_SCROLLBAR 1
13609EOF
13610
741a9306 13611 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
10f2d63a
VZ
13612fi
13613
13614if test "$wxUSE_SLIDER" = "yes"; then
13615 cat >> confdefs.h <<\EOF
13616#define wxUSE_SLIDER 1
13617EOF
13618
13619fi
13620
13621if test "$wxUSE_SPINBTN" = "yes"; then
13622 cat >> confdefs.h <<\EOF
13623#define wxUSE_SPINBTN 1
13624EOF
13625
13626fi
13627
56cfaa52
RR
13628if test "$wxUSE_SPINCTRL" = "yes"; then
13629 cat >> confdefs.h <<\EOF
13630#define wxUSE_SPINCTRL 1
13631EOF
13632
13633fi
13634
10f2d63a
VZ
13635if test "$wxUSE_SPLITTER" = "yes"; then
13636 cat >> confdefs.h <<\EOF
13637#define wxUSE_SPLITTER 1
13638EOF
13639
13640 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
13641fi
13642
13643if test "$wxUSE_STATBMP" = "yes"; then
13644 cat >> confdefs.h <<\EOF
13645#define wxUSE_STATBMP 1
13646EOF
13647
13648fi
13649
13650if test "$wxUSE_STATBOX" = "yes"; then
13651 cat >> confdefs.h <<\EOF
13652#define wxUSE_STATBOX 1
13653EOF
13654
13655fi
13656
13657if test "$wxUSE_STATLINE" = "yes"; then
13658 if test "$wxUSE_WINE" = 1 ; then
13659 echo "configure: warning: wxStaticLine is not supported under WINE" 1>&2
13660 else
13661 cat >> confdefs.h <<\EOF
13662#define wxUSE_STATLINE 1
13663EOF
13664
13665 fi
13666fi
13667
13668if test "$wxUSE_STATUSBAR" = "yes"; then
13669 cat >> confdefs.h <<\EOF
13670#define wxUSE_STATUSBAR 1
13671EOF
13672
2286341c
VZ
13673
13674 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
10f2d63a
VZ
13675fi
13676
13677if test "$wxUSE_TABDIALOG" = "yes"; then
13678 cat >> confdefs.h <<\EOF
13679#define wxUSE_TAB_DIALOG 1
13680EOF
13681
13682 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab"
13683fi
13684
360d6699
VZ
13685if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
13686 cat >> confdefs.h <<\EOF
13687#define wxUSE_TOOLBAR_SIMPLE 1
13688EOF
13689
13690 wxUSE_TOOLBAR="yes"
13691fi
13692
10f2d63a
VZ
13693if test "$wxUSE_TOOLBAR" = "yes"; then
13694 cat >> confdefs.h <<\EOF
13695#define wxUSE_TOOLBAR 1
13696EOF
13697
360d6699
VZ
13698
13699 if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
13700 wxUSE_TOOLBAR_NATIVE="yes"
13701 fi
13702
10f2d63a
VZ
13703 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
13704fi
13705
360d6699
VZ
13706if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
13707 cat >> confdefs.h <<\EOF
13708#define wxUSE_TOOLBAR_NATIVE 1
13709EOF
13710
13711fi
13712
10f2d63a
VZ
13713if test "$wxUSE_TOOLTIPS" = "yes"; then
13714 if test "$wxUSE_MOTIF" = 1; then
13715 echo "configure: warning: wxTooltip not supported yet under Motif" 1>&2
13716 else
13717 if test "$wxUSE_WINE" = 1; then
13718 echo "configure: warning: wxTooltip not supported under WINE" 1>&2
13719 else
13720 cat >> confdefs.h <<\EOF
13721#define wxUSE_TOOLTIPS 1
13722EOF
13723
13724 fi
13725 fi
13726fi
13727
13728if test "$wxUSE_TREECTRL" = "yes"; then
13729 if test "$wxUSE_IMAGLIST" = "yes"; then
13730 cat >> confdefs.h <<\EOF
13731#define wxUSE_TREECTRL 1
13732EOF
13733
13734 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
13735 else
13736 echo "configure: warning: wxTreeCtrl requires wxImageList and won't be compiled without it" 1>&2
13737 fi
13738fi
13739
13740
13741
13742if test "$wxUSE_METAFILE" = "yes"; then
13743 cat >> confdefs.h <<\EOF
13744#define wxUSE_METAFILE 1
13745EOF
13746
13747fi
13748
13749if test "$wxUSE_DIRDLG" = "yes"; then
13750 if test "$wxUSE_CONSTRAINTS" != "yes"; then
13751 echo "configure: warning: wxDirDialog requires constraints so it won't be compiled without them" 1>&2
13752 else
13753 if test "$wxUSE_TREECTRL" != "yes"; then
13754 echo "configure: warning: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" 1>&2
13755 else
13756 cat >> confdefs.h <<\EOF
13757#define wxUSE_DIRDLG 1
13758EOF
13759
13760 fi
13761 fi
13762fi
13763
13764if test "$wxUSE_TEXTDLG" = "yes"; then
13765 cat >> confdefs.h <<\EOF
13766#define wxUSE_TEXTDLG 1
13767EOF
13768
13769fi
13770
13771if test "$wxUSE_STARTUP_TIPS" = "yes"; then
13772 if test "$wxUSE_CONSTRAINTS" != "yes"; then
13773 echo "configure: warning: Startup tips requires constraints and won't be compiled without them" 1>&2
13774 else
13775 cat >> confdefs.h <<\EOF
13776#define wxUSE_STARTUP_TIPS 1
13777EOF
13778
13779 fi
13780fi
13781
13782if test "$wxUSE_PROGRESSDLG" = "yes"; then
13783 if test "$wxUSE_CONSTRAINTS" != "yes"; then
13784 echo "configure: warning: wxProgressDialog requires constraints so it won't be compiled without them" 1>&2
13785 else
13786 cat >> confdefs.h <<\EOF
13787#define wxUSE_PROGRESSDLG 1
13788EOF
13789
13790 fi
13791fi
13792
13793if test "$wxUSE_MINIFRAME" = "yes"; then
13794 cat >> confdefs.h <<\EOF
13795#define wxUSE_MINIFRAME 1
13796EOF
13797
13798 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
13799fi
13800
13801if test "$wxUSE_HTML" = "yes"; then
13802 cat >> confdefs.h <<\EOF
13803#define wxUSE_HTML 1
13804EOF
13805
13806 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html"
13807 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS html"
13808fi
13809
13810if test "$wxUSE_VALIDATORS" = "yes"; then
13811 cat >> confdefs.h <<\EOF
13812#define wxUSE_VALIDATORS 1
13813EOF
13814
13815 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
13816fi
13817
13818if test "$wxUSE_GIF" = "yes" ; then
13819 cat >> confdefs.h <<\EOF
13820#define wxUSE_GIF 1
13821EOF
13822
13823fi
13824
13825if test "$wxUSE_PCX" = "yes" ; then
13826 cat >> confdefs.h <<\EOF
13827#define wxUSE_PCX 1
13828EOF
13829
13830fi
13831
13832if test "$wxUSE_PNM" = "yes" ; then
13833 cat >> confdefs.h <<\EOF
13834#define wxUSE_PNM 1
13835EOF
13836
13837fi
13838
13839
32832908
VZ
13840if test "$cross_compiling" = "yes"; then
13841 OSINFO="\"$host\""
13842else
13843 OSINFO=`uname -s -r -m`
13844 OSINFO="\"$OSINFO\""
13845fi
13846
aaa37c0d
VZ
13847cat >> confdefs.h <<EOF
13848#define WXWIN_OS_DESCRIPTION $OSINFO
13849EOF
13850
13851
13852
bdad4e7e 13853GUILIBS="$GUI_TK_LIBRARY $OPENGL_LINK $TOOLKIT_LINK"
10f2d63a 13854
8916026b 13855EXTRA_LIBS="-lm $LIBS $ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $THREADS_LINK $DMALLOC_LINK $DL_LINK"
10f2d63a 13856if test "$wxUSE_GUI" = "yes"; then
0dcf9893 13857 EXTRA_LIBS="$EXTRA_LIBS $GUILIBS $PNG_LINK $JPEG_LINK $TIFF_LINK"
10f2d63a
VZ
13858fi
13859
13860LD_LIBS="\${top_builddir}/lib/${WX_LIBRARY_NAME_STATIC} $EXTRA_LIBS"
13861
8461a059 13862INCLUDES="-I. -I\${top_builddir}/include -I\${top_srcdir}/include $ZLIB_INCLUDE $PNG_INCLUDE $JPEG_INCLUDE $TIFF_INCLUDE $TOOLKIT_INCLUDE"
10f2d63a
VZ
13863
13864if test "$GXX" = yes ; then
13865 CXXWARNINGS="-Wall"
d6a55c4b 13866 fi
10f2d63a
VZ
13867EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE $INCLUDES"
13868
13869CFLAGS=`echo $CFLAGS $EXTRA_CFLAGS | sed 's/ \\+/ /g'`
13870CXXFLAGS=`echo $CXXFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \+/ /g'`
13871
e694c22c
VZ
13872LDFLAGS="$LDFLAGS $PROFILE"
13873
10f2d63a
VZ
13874if test "$wxUSE_GUI" = "yes"; then
13875
bdad4e7e 13876 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS controls dialogs dragimag drawing dynamic \
bc9027cc 13877 font fractal image menu minimal richedit"
b12915c1 13878
88d3a15c 13879 CPPFLAGS="$CPPFLAGS \$(EXTRADEFS) \$(APPEXTRADEFS)"
10f2d63a
VZ
13880else
13881 SAMPLES_SUBDIRS=""
13882fi
13883
ec14dd32
VZ
13884SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
13885
13886
13887
10f2d63a
VZ
13888
13889
13890
13891
13892
13893
13894
13895
13896
13897
13898
13899
13900
13901
13902
13903
13904
13905
13906
13907
13908
13909
13910
13911
13912
13913
13914
13915
13916
13917
13918
13919
13920
13921
13922
13923
13924
13925
13926
13927
13928
13929
13930
13931
13932
13933
13934
13935
13936
13937
13938
13939
1d62a8b4 13940
bdad4e7e
RR
13941
13942
13943
13944
13945
13946
13947
32832908
VZ
13948
13949
13950
13951
13952
13953
13954
13955
13956
13957
13958
13959
13960
bdad4e7e
RR
13961
13962
13963
e694c22c 13964
b12915c1 13965
2224580a
VZ
13966
13967
13968
13969
dad6c0ea
VZ
13970
13971
caa2c79b 13972
3711412e 13973
10f2d63a
VZ
13974
13975
13976echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
dc3d889d 13977echo "configure:13978: checking whether ${MAKE-make} sets \${MAKE}" >&5
10f2d63a
VZ
13978set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
13979if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
13980 echo $ac_n "(cached) $ac_c" 1>&6
13981else
13982 cat > conftestmake <<\EOF
13983all:
13984 @echo 'ac_maketemp="${MAKE}"'
13985EOF
13986# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
13987eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
13988if test -n "$ac_maketemp"; then
13989 eval ac_cv_prog_make_${ac_make}_set=yes
13990else
13991 eval ac_cv_prog_make_${ac_make}_set=no
13992fi
13993rm -f conftestmake
13994fi
13995if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
13996 echo "$ac_t""yes" 1>&6
13997 SET_MAKE=
13998else
13999 echo "$ac_t""no" 1>&6
14000 SET_MAKE="MAKE=${MAKE-make}"
14001fi
14002
14003
00cf1208
RR
14004if test -d include; then
14005 if test -d include/wx; then
14006 if test -d include/wx/${TOOLKIT_DIR}; then
14007 if test -f include/wx/${TOOLKIT_DIR}/setup.h; then
14008 mv -f include/wx/${TOOLKIT_DIR}/setup.h setup.h
14009 fi
14010 fi
14011 fi
14012fi
14013
10f2d63a
VZ
14014
14015
2224580a 14016if test "$wxUSE_GUI" = "yes"; then
ec90f5e5 14017 wx_cv_path_samplesubdirs=$SAMPLES_SUBDIRS
e8482f24
GL
14018 wx_cv_path_ifs=$PATH_IFS
14019 wx_cv_program_ext=$PROGRAM_EXT
14020 wx_cv_target_library=$WX_TARGET_LIBRARY
3711412e 14021 wx_cv_target_libtype=$WX_TARGET_LIBRARY_TYPE
e8482f24 14022 subdirs="demos samples utils contrib"
2224580a
VZ
14023
14024fi
10f2d63a
VZ
14025
14026trap '' 1 2 15
14027cat > confcache <<\EOF
14028# This file is a shell script that caches the results of configure
14029# tests run on this system so they can be shared between configure
14030# scripts and configure runs. It is not useful on other systems.
14031# If it contains results you don't want to keep, you may remove or edit it.
14032#
14033# By default, configure uses ./config.cache as the cache file,
14034# creating it if it does not exist already. You can give configure
14035# the --cache-file=FILE option to use a different cache file; that is
14036# what configure does when it calls configure scripts in
14037# subdirectories, so they share the cache.
14038# Giving --cache-file=/dev/null disables caching, for debugging configure.
14039# config.status only pays attention to the cache file if you give it the
14040# --recheck option to rerun configure.
14041#
14042EOF
14043# The following way of writing the cache mishandles newlines in values,
14044# but we know of no workaround that is simple, portable, and efficient.
14045# So, don't put newlines in cache variables' values.
14046# Ultrix sh set writes to stderr and can't be redirected directly,
14047# and sets the high bit in the cache file unless we assign to the vars.
14048(set) 2>&1 |
14049 case `(ac_space=' '; set | grep ac_space) 2>&1` in
14050 *ac_space=\ *)
14051 # `set' does not quote correctly, so add quotes (double-quote substitution
14052 # turns \\\\ into \\, and sed turns \\ into \).
14053 sed -n \
14054 -e "s/'/'\\\\''/g" \
14055 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
14056 ;;
14057 *)
14058 # `set' quotes correctly as required by POSIX, so do not add quotes.
14059 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
14060 ;;
14061 esac >> confcache
14062if cmp -s $cache_file confcache; then
14063 :
14064else
14065 if test -w $cache_file; then
14066 echo "updating cache $cache_file"
14067 cat confcache > $cache_file
14068 else
14069 echo "not updating unwritable cache $cache_file"
14070 fi
14071fi
14072rm -f confcache
14073
14074trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
14075
14076test "x$prefix" = xNONE && prefix=$ac_default_prefix
14077# Let make expand exec_prefix.
14078test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14079
14080# Any assignment to VPATH causes Sun make to only execute
14081# the first set of double-colon rules, so remove it if not needed.
14082# If there is a colon in the path, we need to keep it.
14083if test "x$srcdir" = x.; then
14084 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
14085fi
14086
14087trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
14088
14089DEFS=-DHAVE_CONFIG_H
14090
14091# Without the "./", some shells look in PATH for config.status.
14092: ${CONFIG_STATUS=./config.status}
14093
14094echo creating $CONFIG_STATUS
14095rm -f $CONFIG_STATUS
14096cat > $CONFIG_STATUS <<EOF
14097#! /bin/sh
14098# Generated automatically by configure.
14099# Run this file to recreate the current configuration.
14100# This directory was configured as follows,
14101# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14102#
14103# $0 $ac_configure_args
14104#
14105# Compiler output produced by configure, useful for debugging
14106# configure, is in ./config.log if it exists.
14107
14108ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
14109for ac_option
14110do
14111 case "\$ac_option" in
14112 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14113 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
14114 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
14115 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
e8482f24 14116 echo "$CONFIG_STATUS generated by autoconf version 2.13"
10f2d63a
VZ
14117 exit 0 ;;
14118 -help | --help | --hel | --he | --h)
14119 echo "\$ac_cs_usage"; exit 0 ;;
14120 *) echo "\$ac_cs_usage"; exit 1 ;;
14121 esac
14122done
14123
14124ac_given_srcdir=$srcdir
14125ac_given_INSTALL="$INSTALL"
14126
14127trap 'rm -fr `echo "
14128 wx-config
14129 src/make.env
14130 src/makeprog.env
14131 src/makelib.env
14132 Makefile
10f2d63a
VZ
14133 setup.h:setup.h.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
14134EOF
14135cat >> $CONFIG_STATUS <<EOF
14136
14137# Protect against being on the right side of a sed subst in config.status.
14138sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
14139 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
14140$ac_vpsub
14141$extrasub
14142s%@SHELL@%$SHELL%g
14143s%@CFLAGS@%$CFLAGS%g
14144s%@CPPFLAGS@%$CPPFLAGS%g
14145s%@CXXFLAGS@%$CXXFLAGS%g
14146s%@FFLAGS@%$FFLAGS%g
14147s%@DEFS@%$DEFS%g
14148s%@LDFLAGS@%$LDFLAGS%g
14149s%@LIBS@%$LIBS%g
14150s%@exec_prefix@%$exec_prefix%g
14151s%@prefix@%$prefix%g
14152s%@program_transform_name@%$program_transform_name%g
14153s%@bindir@%$bindir%g
14154s%@sbindir@%$sbindir%g
14155s%@libexecdir@%$libexecdir%g
14156s%@datadir@%$datadir%g
14157s%@sysconfdir@%$sysconfdir%g
14158s%@sharedstatedir@%$sharedstatedir%g
14159s%@localstatedir@%$localstatedir%g
14160s%@libdir@%$libdir%g
14161s%@includedir@%$includedir%g
14162s%@oldincludedir@%$oldincludedir%g
14163s%@infodir@%$infodir%g
14164s%@mandir@%$mandir%g
7c66a493
VZ
14165s%@host@%$host%g
14166s%@host_alias@%$host_alias%g
14167s%@host_cpu@%$host_cpu%g
14168s%@host_vendor@%$host_vendor%g
14169s%@host_os@%$host_os%g
14170s%@target@%$target%g
14171s%@target_alias@%$target_alias%g
14172s%@target_cpu@%$target_cpu%g
14173s%@target_vendor@%$target_vendor%g
14174s%@target_os@%$target_os%g
14175s%@build@%$build%g
14176s%@build_alias@%$build_alias%g
14177s%@build_cpu@%$build_cpu%g
14178s%@build_vendor@%$build_vendor%g
14179s%@build_os@%$build_os%g
10f2d63a
VZ
14180s%@CC@%$CC%g
14181s%@CPP@%$CPP%g
14182s%@CXX@%$CXX%g
14183s%@CXXCPP@%$CXXCPP%g
14184s%@RANLIB@%$RANLIB%g
14185s%@AR@%$AR%g
14186s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
14187s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
14188s%@INSTALL_DATA@%$INSTALL_DATA%g
14189s%@STRIP@%$STRIP%g
14190s%@YACC@%$YACC%g
14191s%@LEX@%$LEX%g
14192s%@LEXLIB@%$LEXLIB%g
14193s%@LN_S@%$LN_S%g
14194s%@GTK_CONFIG@%$GTK_CONFIG%g
14195s%@GTK_CFLAGS@%$GTK_CFLAGS%g
14196s%@GTK_LIBS@%$GTK_LIBS%g
ab9b9eab
VZ
14197s%@X_CFLAGS@%$X_CFLAGS%g
14198s%@X_PRE_LIBS@%$X_PRE_LIBS%g
14199s%@X_LIBS@%$X_LIBS%g
14200s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
ec14dd32
VZ
14201s%@LEX_STEM@%$LEX_STEM%g
14202s%@PATH_IFS@%$PATH_IFS%g
10f2d63a
VZ
14203s%@WX_MAJOR_VERSION_NUMBER@%$WX_MAJOR_VERSION_NUMBER%g
14204s%@WX_MINOR_VERSION_NUMBER@%$WX_MINOR_VERSION_NUMBER%g
14205s%@WX_RELEASE_NUMBER@%$WX_RELEASE_NUMBER%g
14206s%@WX_LIBRARY_NAME@%$WX_LIBRARY_NAME%g
14207s%@WX_LIBRARY_NAME_STATIC@%$WX_LIBRARY_NAME_STATIC%g
14208s%@WX_LIBRARY_NAME_SHARED@%$WX_LIBRARY_NAME_SHARED%g
14209s%@WX_LIBRARY@%$WX_LIBRARY%g
14210s%@WX_TARGET_LIBRARY@%$WX_TARGET_LIBRARY%g
14211s%@WX_LIBRARY_LINK1@%$WX_LIBRARY_LINK1%g
14212s%@WX_LIBRARY_LINK2@%$WX_LIBRARY_LINK2%g
14213s%@WX_LIBRARY_LINK3@%$WX_LIBRARY_LINK3%g
14214s%@PROGRAM_EXT@%$PROGRAM_EXT%g
bdad4e7e
RR
14215s%@WX_LIBRARY_NAME_GL@%$WX_LIBRARY_NAME_GL%g
14216s%@WX_LIBRARY_NAME_STATIC_GL@%$WX_LIBRARY_NAME_STATIC_GL%g
14217s%@WX_LIBRARY_NAME_SHARED_GL@%$WX_LIBRARY_NAME_SHARED_GL%g
14218s%@WX_LIBRARY_GL@%$WX_LIBRARY_GL%g
14219s%@WX_TARGET_LIBRARY_GL@%$WX_TARGET_LIBRARY_GL%g
14220s%@WX_LIBRARY_LINK1_GL@%$WX_LIBRARY_LINK1_GL%g
14221s%@WX_LIBRARY_LINK2_GL@%$WX_LIBRARY_LINK2_GL%g
14222s%@WX_LIBRARY_LINK3_GL@%$WX_LIBRARY_LINK3_GL%g
10f2d63a
VZ
14223s%@WX_ALL@%$WX_ALL%g
14224s%@WX_ALL_INSTALLED@%$WX_ALL_INSTALLED%g
14225s%@SHARED_LD@%$SHARED_LD%g
14226s%@PIC_FLAG@%$PIC_FLAG%g
14227s%@DEP_INFO_FLAGS@%$DEP_INFO_FLAGS%g
caa2c79b 14228s%@CODE_GEN_FLAGS@%$CODE_GEN_FLAGS%g
1d62a8b4 14229s%@BURNT_LIBRARY_NAME@%$BURNT_LIBRARY_NAME%g
bdad4e7e 14230s%@BURNT_LIBRARY_NAME_GL@%$BURNT_LIBRARY_NAME_GL%g
3711412e 14231s%@WX_TARGET_LIBRARY_TYPE@%$WX_TARGET_LIBRARY_TYPE%g
10f2d63a 14232s%@WXDEBUG_DEFINE@%$WXDEBUG_DEFINE%g
dad6c0ea
VZ
14233s%@USE_GUI@%$USE_GUI%g
14234s%@AFMINSTALL@%$AFMINSTALL%g
10f2d63a
VZ
14235s%@TOOLKIT@%$TOOLKIT%g
14236s%@TOOLKIT_DEF@%$TOOLKIT_DEF%g
14237s%@TOOLKIT_DIR@%$TOOLKIT_DIR%g
14238s%@TOOLKIT_INCLUDE@%$TOOLKIT_INCLUDE%g
14239s%@GUIHEADERS@%$GUIHEADERS%g
14240s%@GUIOBJS@%$GUIOBJS%g
14241s%@COMMONOBJS@%$COMMONOBJS%g
14242s%@GENERICOBJS@%$GENERICOBJS%g
14243s%@GUIDEPS@%$GUIDEPS%g
14244s%@COMMONDEPS@%$COMMONDEPS%g
14245s%@GENERICDEPS@%$GENERICDEPS%g
14246s%@IODBCOBJS@%$IODBCOBJS%g
14247s%@UNIXOBJS@%$UNIXOBJS%g
14248s%@UNIXDEPS@%$UNIXDEPS%g
14249s%@ALL_OBJECTS@%$ALL_OBJECTS%g
14250s%@ALL_DEPFILES@%$ALL_DEPFILES%g
10f2d63a 14251s%@GUIDIST@%$GUIDIST%g
2224580a
VZ
14252s%@PORT_FILES@%$PORT_FILES%g
14253s%@DISTDIR@%$DISTDIR%g
14254s%@RPM_SPEC@%$RPM_SPEC%g
14255s%@RPM_FILES@%$RPM_FILES%g
10f2d63a
VZ
14256s%@SRC_SUBDIRS@%$SRC_SUBDIRS%g
14257s%@INCLUDE_SUBDIRS@%$INCLUDE_SUBDIRS%g
14258s%@UTILS_SUBDIRS@%$UTILS_SUBDIRS%g
14259s%@DOCS_SUBDIRS@%$DOCS_SUBDIRS%g
14260s%@SAMPLES_SUBDIRS@%$SAMPLES_SUBDIRS%g
14261s%@USER_SUBDIRS@%$USER_SUBDIRS%g
14262s%@EXTRA_LIBS@%$EXTRA_LIBS%g
b12915c1 14263s%@EXTRADEFS@%$EXTRADEFS%g
10f2d63a 14264s%@LD_LIBS@%$LD_LIBS%g
32832908
VZ
14265s%@RCINPUTSWITCH@%$RCINPUTSWITCH%g
14266s%@RCOUTPUTSWITCH@%$RCOUTPUTSWITCH%g
14267s%@RESPROGRAM@%$RESPROGRAM%g
14268s%@RESCOMP@%$RESCOMP%g
14269s%@RESFLAGS@%$RESFLAGS%g
14270s%@DLLTOOL@%$DLLTOOL%g
14271s%@AS@%$AS%g
14272s%@NM@%$NM%g
14273s%@LD@%$LD%g
14274s%@MAKEINFO@%$MAKEINFO%g
10f2d63a 14275s%@SET_MAKE@%$SET_MAKE%g
2224580a 14276s%@subdirs@%$subdirs%g
10f2d63a
VZ
14277
14278CEOF
14279EOF
14280
14281cat >> $CONFIG_STATUS <<\EOF
14282
14283# Split the substitutions into bite-sized pieces for seds with
14284# small command number limits, like on Digital OSF/1 and HP-UX.
14285ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
14286ac_file=1 # Number of current file.
14287ac_beg=1 # First line for current file.
14288ac_end=$ac_max_sed_cmds # Line after last line for current file.
14289ac_more_lines=:
14290ac_sed_cmds=""
14291while $ac_more_lines; do
14292 if test $ac_beg -gt 1; then
14293 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
14294 else
14295 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
14296 fi
14297 if test ! -s conftest.s$ac_file; then
14298 ac_more_lines=false
14299 rm -f conftest.s$ac_file
14300 else
14301 if test -z "$ac_sed_cmds"; then
14302 ac_sed_cmds="sed -f conftest.s$ac_file"
14303 else
14304 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
14305 fi
14306 ac_file=`expr $ac_file + 1`
14307 ac_beg=$ac_end
14308 ac_end=`expr $ac_end + $ac_max_sed_cmds`
14309 fi
14310done
14311if test -z "$ac_sed_cmds"; then
14312 ac_sed_cmds=cat
14313fi
14314EOF
14315
14316cat >> $CONFIG_STATUS <<EOF
14317
14318CONFIG_FILES=\${CONFIG_FILES-"wx-config
14319 src/make.env
14320 src/makeprog.env
14321 src/makelib.env
14322 Makefile
10f2d63a
VZ
14323 "}
14324EOF
14325cat >> $CONFIG_STATUS <<\EOF
14326for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
14327 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
14328 case "$ac_file" in
14329 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
14330 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
14331 *) ac_file_in="${ac_file}.in" ;;
14332 esac
14333
14334 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
14335
14336 # Remove last slash and all that follows it. Not all systems have dirname.
14337 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
14338 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
14339 # The file is in a subdirectory.
14340 test ! -d "$ac_dir" && mkdir "$ac_dir"
14341 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
14342 # A "../" for each directory in $ac_dir_suffix.
14343 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
14344 else
14345 ac_dir_suffix= ac_dots=
14346 fi
14347
14348 case "$ac_given_srcdir" in
14349 .) srcdir=.
14350 if test -z "$ac_dots"; then top_srcdir=.
14351 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
14352 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
14353 *) # Relative path.
14354 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
14355 top_srcdir="$ac_dots$ac_given_srcdir" ;;
14356 esac
14357
14358 case "$ac_given_INSTALL" in
14359 [/$]*) INSTALL="$ac_given_INSTALL" ;;
14360 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
14361 esac
14362
14363 echo creating "$ac_file"
14364 rm -f "$ac_file"
14365 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
14366 case "$ac_file" in
14367 *Makefile*) ac_comsub="1i\\
14368# $configure_input" ;;
14369 *) ac_comsub= ;;
14370 esac
14371
14372 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
14373 sed -e "$ac_comsub
14374s%@configure_input@%$configure_input%g
14375s%@srcdir@%$srcdir%g
14376s%@top_srcdir@%$top_srcdir%g
14377s%@INSTALL@%$INSTALL%g
14378" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
14379fi; done
14380rm -f conftest.s*
14381
14382# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
14383# NAME is the cpp macro being defined and VALUE is the value it is being given.
14384#
14385# ac_d sets the value in "#define NAME VALUE" lines.
14386ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
14387ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
14388ac_dC='\3'
14389ac_dD='%g'
14390# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
14391ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
14392ac_uB='\([ ]\)%\1#\2define\3'
14393ac_uC=' '
14394ac_uD='\4%g'
14395# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
14396ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
14397ac_eB='$%\1#\2define\3'
14398ac_eC=' '
14399ac_eD='%g'
14400
14401if test "${CONFIG_HEADERS+set}" != set; then
14402EOF
14403cat >> $CONFIG_STATUS <<EOF
14404 CONFIG_HEADERS="setup.h:setup.h.in"
14405EOF
14406cat >> $CONFIG_STATUS <<\EOF
14407fi
14408for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
14409 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
14410 case "$ac_file" in
14411 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
14412 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
14413 *) ac_file_in="${ac_file}.in" ;;
14414 esac
14415
14416 echo creating $ac_file
14417
14418 rm -f conftest.frag conftest.in conftest.out
14419 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
14420 cat $ac_file_inputs > conftest.in
14421
14422EOF
14423
14424# Transform confdefs.h into a sed script conftest.vals that substitutes
14425# the proper values into config.h.in to produce config.h. And first:
14426# Protect against being on the right side of a sed subst in config.status.
14427# Protect against being in an unquoted here document in config.status.
14428rm -f conftest.vals
14429cat > conftest.hdr <<\EOF
14430s/[\\&%]/\\&/g
14431s%[\\$`]%\\&%g
14432s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
14433s%ac_d%ac_u%gp
14434s%ac_u%ac_e%gp
14435EOF
14436sed -n -f conftest.hdr confdefs.h > conftest.vals
14437rm -f conftest.hdr
14438
14439# This sed command replaces #undef with comments. This is necessary, for
14440# example, in the case of _POSIX_SOURCE, which is predefined and required
14441# on some systems where configure will not decide to define it.
14442cat >> conftest.vals <<\EOF
14443s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
14444EOF
14445
14446# Break up conftest.vals because some shells have a limit on
14447# the size of here documents, and old seds have small limits too.
14448
14449rm -f conftest.tail
14450while :
14451do
14452 ac_lines=`grep -c . conftest.vals`
14453 # grep -c gives empty output for an empty file on some AIX systems.
14454 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
14455 # Write a limited-size here document to conftest.frag.
14456 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
14457 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
14458 echo 'CEOF
14459 sed -f conftest.frag conftest.in > conftest.out
14460 rm -f conftest.in
14461 mv conftest.out conftest.in
14462' >> $CONFIG_STATUS
14463 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
14464 rm -f conftest.vals
14465 mv conftest.tail conftest.vals
14466done
14467rm -f conftest.vals
14468
14469cat >> $CONFIG_STATUS <<\EOF
14470 rm -f conftest.frag conftest.h
14471 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
14472 cat conftest.in >> conftest.h
14473 rm -f conftest.in
14474 if cmp -s $ac_file conftest.h 2>/dev/null; then
14475 echo "$ac_file is unchanged"
14476 rm -f conftest.h
14477 else
14478 # Remove last slash and all that follows it. Not all systems have dirname.
14479 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
14480 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
14481 # The file is in a subdirectory.
14482 test ! -d "$ac_dir" && mkdir "$ac_dir"
14483 fi
14484 rm -f $ac_file
14485 mv conftest.h $ac_file
14486 fi
14487fi; done
14488
14489EOF
14490cat >> $CONFIG_STATUS <<EOF
14491
14492 TOOLKIT_DIR="${TOOLKIT_DIR}"
07eb77a6 14493 LN_S="${LN_S}"
10f2d63a
VZ
14494
14495
14496EOF
14497cat >> $CONFIG_STATUS <<\EOF
14498
14499 chmod +x wx-config
07eb77a6
RL
14500 mv wx-config wx${TOOLKIT_DIR}-config
14501 ${LN_S} wx${TOOLKIT_DIR}-config wx-config
00cf1208
RR
14502
14503
14504 if test ! -d lib; then
14505 mkdir lib
14506 fi
14507 if test ! -d lib/wx; then
14508 mkdir lib/wx
14509 fi
14510 if test ! -d lib/wx/include; then
14511 mkdir lib/wx/include
14512 fi
14513 if test ! -d lib/wx/include/wx; then
14514 mkdir lib/wx/include/wx
14515 fi
14516 if test ! -d lib/wx/include/wx/${TOOLKIT_DIR}; then
14517 mkdir lib/wx/include/wx/${TOOLKIT_DIR}
14518 fi
14519 if test -f setup.h; then
14520 cp -f setup.h lib/wx/include/wx/${TOOLKIT_DIR}/setup.h
14521 fi
07eb77a6 14522
00cf1208 14523
10f2d63a
VZ
14524 if test ! -d include; then
14525 mkdir include
14526 fi
14527 if test ! -d include/wx; then
14528 mkdir include/wx
14529 fi
14530 if test ! -d include/wx/${TOOLKIT_DIR}; then
14531 mkdir include/wx/${TOOLKIT_DIR}
14532 fi
afc31813
VZ
14533 if test -f setup.h; then
14534 mv -f setup.h include/wx/${TOOLKIT_DIR}/setup.h
14535 fi
00cf1208 14536
10f2d63a
VZ
14537
14538exit 0
14539EOF
14540chmod +x $CONFIG_STATUS
14541rm -fr confdefs* $ac_clean_files
14542test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
14543
2224580a
VZ
14544if test "$no_recursion" != yes; then
14545
14546 # Remove --cache-file and --srcdir arguments so they do not pile up.
14547 ac_sub_configure_args=
14548 ac_prev=
14549 for ac_arg in $ac_configure_args; do
14550 if test -n "$ac_prev"; then
14551 ac_prev=
14552 continue
14553 fi
14554 case "$ac_arg" in
14555 -cache-file | --cache-file | --cache-fil | --cache-fi \
14556 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
14557 ac_prev=cache_file ;;
14558 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
14559 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
14560 ;;
14561 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
14562 ac_prev=srcdir ;;
14563 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
14564 ;;
14565 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
14566 esac
14567 done
14568
e8482f24 14569 for ac_config_dir in demos samples utils contrib; do
2224580a
VZ
14570
14571 # Do not complain, so a configure script can configure whichever
14572 # parts of a large source tree are present.
14573 if test ! -d $srcdir/$ac_config_dir; then
14574 continue
14575 fi
14576
14577 echo configuring in $ac_config_dir
14578
14579 case "$srcdir" in
14580 .) ;;
14581 *)
14582 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
14583 else
14584 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
14585 fi
14586 ;;
14587 esac
14588
14589 ac_popdir=`pwd`
14590 cd $ac_config_dir
14591
14592 # A "../" for each directory in /$ac_config_dir.
14593 ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
14594
14595 case "$srcdir" in
14596 .) # No --srcdir option. We are building in place.
14597 ac_sub_srcdir=$srcdir ;;
14598 /*) # Absolute path.
14599 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
14600 *) # Relative path.
14601 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
14602 esac
14603
14604 # Check for guested configure; otherwise get Cygnus style configure.
14605 if test -f $ac_sub_srcdir/configure; then
14606 ac_sub_configure=$ac_sub_srcdir/configure
14607 elif test -f $ac_sub_srcdir/configure.in; then
14608 ac_sub_configure=$ac_configure
14609 else
14610 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
14611 ac_sub_configure=
14612 fi
14613
14614 # The recursion is here.
14615 if test -n "$ac_sub_configure"; then
14616
14617 # Make the cache file name correct relative to the subdirectory.
14618 case "$cache_file" in
14619 /*) ac_sub_cache_file=$cache_file ;;
14620 *) # Relative path.
14621 ac_sub_cache_file="$ac_dots$cache_file" ;;
14622 esac
14623 case "$ac_given_INSTALL" in
14624 [/$]*) INSTALL="$ac_given_INSTALL" ;;
14625 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
14626 esac
14627
14628 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
14629 # The eval makes quoting arguments work.
14630 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
14631 then :
14632 else
14633 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
14634 fi
14635 fi
14636
14637 cd $ac_popdir
14638 done
14639fi
14640
10f2d63a 14641