]> git.saurik.com Git - wxWidgets.git/blame - configure
patches for BC++ 5.3 from Ricky Gonzales <gonzales@pyramid3.net>
[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
VZ
36
37
38
39
40# Guess values for system-dependent variables and create Makefiles.
e694c22c 41# Generated automatically using autoconf version 2.13
10f2d63a
VZ
42# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
43#
44# This configure script is free software; the Free Software Foundation
45# gives unlimited permission to copy, distribute and modify it.
46
47# Defaults:
48ac_help=
49ac_default_prefix=/usr/local
50# Any additions from configure.in:
51ac_help="$ac_help
52--enable-gui use GUI classes"
53ac_help="$ac_help
54 --with-gtk use GTK+"
55ac_help="$ac_help
56 --with-motif use Motif/Lesstif"
57ac_help="$ac_help
58 --with-wine use WINE"
59ac_help="$ac_help
60 --with-cygwin use Cygwin for MS-Windows"
61ac_help="$ac_help
62 --with-mingw use GCC Minimal MS-Windows"
63ac_help="$ac_help
64 --with-gtk-prefix=PFX Prefix where GTK is installed"
65ac_help="$ac_help
66 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed"
67ac_help="$ac_help
10f2d63a
VZ
68--with-libpng use libpng (PNG image format)"
69ac_help="$ac_help
70--with-libjpeg use libjpeg (JPEG file format)"
71ac_help="$ac_help
c7a2bf27
RR
72--with-libtiff use libtiff (TIFF file format)"
73ac_help="$ac_help
10f2d63a
VZ
74--with-opengl use OpenGL (or Mesa)"
75ac_help="$ac_help
b12915c1
VZ
76--with-dmalloc use dmalloc library (www.letters.com/dmalloc)"
77ac_help="$ac_help
78--with-zlib use zlib for LZW compression"
79ac_help="$ac_help
10f2d63a
VZ
80--with-odbc use the IODBC and wxODBC classes"
81ac_help="$ac_help
82--enable-shared create shared library code"
83ac_help="$ac_help
84--enable-optimise create optimised code"
85ac_help="$ac_help
86--enable-debug same as debug_flag and debug_info"
87ac_help="$ac_help
88--enable-debug_flag set __WXDEBUG__ flag (recommended for developers!)"
89ac_help="$ac_help
90--enable-debug_info create code with debugging information"
91ac_help="$ac_help
92--enable-debug_gdb create code with extra GDB debugging information"
93ac_help="$ac_help
94--enable-debug_cntxt use wxDebugContext"
95ac_help="$ac_help
96--enable-mem_tracing create code with memory tracing"
97ac_help="$ac_help
98--enable-profile create code with profiling information"
99ac_help="$ac_help
100--enable-no_rtti create code without RTTI information"
101ac_help="$ac_help
102--enable-no_exceptions create code without exceptions information"
103ac_help="$ac_help
104--enable-permissive compile code disregarding strict ANSI"
105ac_help="$ac_help
106--enable-no_deps create code without dependency information"
107ac_help="$ac_help
108--enable-intl use internationalization system"
109ac_help="$ac_help
110--enable-config use wxConfig (and derived) classes"
111ac_help="$ac_help
112--enable-sockets use socket/network classes"
113ac_help="$ac_help
114--enable-dialupman use dialup network classes"
115ac_help="$ac_help
116--enable-ipc use interprocess communication (wxSocket etc.)"
117ac_help="$ac_help
118--enable-apple_ieee use the Apple IEEE codec"
119ac_help="$ac_help
120--enable-timedate use date/time classes"
121ac_help="$ac_help
122--enable-wave use wxWave class"
123ac_help="$ac_help
124--enable-fraction use wxFraction class"
125ac_help="$ac_help
126--enable-dynlib use wxLibrary class for DLL loading"
127ac_help="$ac_help
128--enable-longlong use wxLongLong class"
129ac_help="$ac_help
130--enable-log use logging system"
131ac_help="$ac_help
132--enable-streams use wxStream etc classes"
133ac_help="$ac_help
134--enable-file use wxFile classes"
135ac_help="$ac_help
136--enable-textfile use wxTextFile classes"
137ac_help="$ac_help
138--enable-unicode compile wxString with Unicode support"
139ac_help="$ac_help
140--enable-wcsrtombs use wcsrtombs instead of buggy (GNU libc1/Linux libc5) wcstombs"
141ac_help="$ac_help
142--enable-wxprintfv use wxWindows implementation of vprintf()"
143ac_help="$ac_help
144--enable-joystick compile in joystick support (Linux only)"
145ac_help="$ac_help
146--enable-std_iostreams use standard C++ stream classes"
147ac_help="$ac_help
148--enable-fs_inet use virtual HTTP/FTP filesystems"
149ac_help="$ac_help
150--enable-fs_zip use virtual ZIP filesystems"
151ac_help="$ac_help
152--enable-zipstream use wxZipInputStream"
153ac_help="$ac_help
154--enable-threads use threads"
155ac_help="$ac_help
156--enable-serial use class serialization"
157ac_help="$ac_help
158--enable-docview use document view architecture"
159ac_help="$ac_help
160--enable-help use help (using external browser at present)"
161ac_help="$ac_help
162--enable-constraints use layout-constraints system"
163ac_help="$ac_help
164--enable-printarch use printing architecture"
165ac_help="$ac_help
166--enable-mdi use multiple document interface architecture"
167ac_help="$ac_help
168--enable-postscript use wxPostscriptDC device context (default for gtk+)"
169ac_help="$ac_help
170--enable-prologio use Prolog IO library"
171ac_help="$ac_help
172--enable-resources use wxWindows resources"
173ac_help="$ac_help
174--enable-xresources use X resources for save (default for gtk+)"
175ac_help="$ac_help
176--enable-clipboard use wxClipboard classes"
177ac_help="$ac_help
178--enable-dnd use Drag'n'Drop classes"
179ac_help="$ac_help
180--enable-wxtree make wxTree library"
181ac_help="$ac_help
182--enable-controls use all usual controls"
183ac_help="$ac_help
184--enable-accel use accelerators"
185ac_help="$ac_help
186--enable-caret use wxCaret class"
187ac_help="$ac_help
188--enable-bmpbutton use wxBitmapButton class"
189ac_help="$ac_help
190--enable-checkbox use wxCheckBox class"
191ac_help="$ac_help
192--enable-checklst use wxCheckListBox (listbox with checkboxes) class"
193ac_help="$ac_help
194--enable-choice use wxChoice class"
195ac_help="$ac_help
196--enable-combobox use wxComboBox classes"
197ac_help="$ac_help
198--enable-gauge use wxGauge class"
199ac_help="$ac_help
200--enable-grid use wxGrid class"
201ac_help="$ac_help
202--enable-newgrid use new wxGrid class"
203ac_help="$ac_help
204--enable-imaglist use wxImageList class"
205ac_help="$ac_help
206--enable-listbox use wxListBox class"
207ac_help="$ac_help
208--enable-listctrl use wxListCtrl class"
209ac_help="$ac_help
210--enable-notebook use wxNotebook class"
211ac_help="$ac_help
212--enable-radiobox use wxRadioBox class"
213ac_help="$ac_help
214--enable-radiobtn use wxRadioButton class"
215ac_help="$ac_help
216--enable-sash use wxSashWindow class"
217ac_help="$ac_help
218--enable-scrollbar use wxScrollBar class and scrollable windows"
219ac_help="$ac_help
220--enable-slider use wxSlider class"
221ac_help="$ac_help
222--enable-spinbtn use wxSpinButton class"
223ac_help="$ac_help
56cfaa52
RR
224--enable-spinctrl use wxSpinCtrl class"
225ac_help="$ac_help
10f2d63a
VZ
226--enable-splitter use wxSplitterWindow class"
227ac_help="$ac_help
228--enable-statbmp use wxStaticBitmap class"
229ac_help="$ac_help
230--enable-statbox use wxStaticBox class"
231ac_help="$ac_help
232--enable-statline use wxStaticLine class"
233ac_help="$ac_help
234--enable-statusbar use wxStatusBar class"
235ac_help="$ac_help
236--enable-tabdialog use wxTabControl class"
237ac_help="$ac_help
238--enable-toolbar use wxToolBar class"
239ac_help="$ac_help
360d6699
VZ
240--enable-tbarnative use native wxToolBar class"
241ac_help="$ac_help
242--enable-tbarsmpl use wxToolBarSimple class"
243ac_help="$ac_help
10f2d63a
VZ
244--enable-treectrl use wxTreeCtrl class"
245ac_help="$ac_help
246--enable-commondlg use common dialogs (wxDirDialog, wxProgressDialog, wxTextDialog, ...)"
247ac_help="$ac_help
248--enable-dirdlg use wxDirDialog"
249ac_help="$ac_help
250--enable-textdlg use wxTextDialog"
251ac_help="$ac_help
252--enable-tipdlg use startup tips"
253ac_help="$ac_help
254--enable-progressdlg use wxProgressDialog"
255ac_help="$ac_help
256--enable-miniframe use wxMiniFrame class"
257ac_help="$ac_help
258--enable-html use wxHTML sub-library"
259ac_help="$ac_help
260--enable-tooltips use wxToolTip class"
261ac_help="$ac_help
262--enable-splines use spline drawing code"
263ac_help="$ac_help
264--enable-validators use wxValidator and derived classes"
265ac_help="$ac_help
266--enable-busyinfo use wxBusyInfo"
267ac_help="$ac_help
268--enable-gif use gif images (GIF file format)"
269ac_help="$ac_help
270--enable-pcx use pcx images (PCX file format)"
271ac_help="$ac_help
272--enable-pnm use pnm images (PNM file format)"
ab9b9eab
VZ
273ac_help="$ac_help
274 --with-x use the X Window System"
10f2d63a
VZ
275
276# Initialize some variables set by options.
277# The variables have the same names as the options, with
278# dashes changed to underlines.
279build=NONE
280cache_file=./config.cache
281exec_prefix=NONE
282host=NONE
283no_create=
284nonopt=NONE
285no_recursion=
286prefix=NONE
287program_prefix=NONE
288program_suffix=NONE
289program_transform_name=s,x,x,
290silent=
291site=
292srcdir=
293target=NONE
294verbose=
295x_includes=NONE
296x_libraries=NONE
297bindir='${exec_prefix}/bin'
298sbindir='${exec_prefix}/sbin'
299libexecdir='${exec_prefix}/libexec'
300datadir='${prefix}/share'
301sysconfdir='${prefix}/etc'
302sharedstatedir='${prefix}/com'
303localstatedir='${prefix}/var'
304libdir='${exec_prefix}/lib'
305includedir='${prefix}/include'
306oldincludedir='/usr/include'
307infodir='${prefix}/info'
308mandir='${prefix}/man'
309
310# Initialize some other variables.
311subdirs=
312MFLAGS= MAKEFLAGS=
313SHELL=${CONFIG_SHELL-/bin/sh}
314# Maximum number of lines to put in a shell here document.
315ac_max_here_lines=12
316
317ac_prev=
318for ac_option
319do
320
321 # If the previous option needs an argument, assign it.
322 if test -n "$ac_prev"; then
323 eval "$ac_prev=\$ac_option"
324 ac_prev=
325 continue
326 fi
327
328 case "$ac_option" in
329 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
330 *) ac_optarg= ;;
331 esac
332
333 # Accept the important Cygnus configure options, so we can diagnose typos.
334
335 case "$ac_option" in
336
337 -bindir | --bindir | --bindi | --bind | --bin | --bi)
338 ac_prev=bindir ;;
339 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
340 bindir="$ac_optarg" ;;
341
342 -build | --build | --buil | --bui | --bu)
343 ac_prev=build ;;
344 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
345 build="$ac_optarg" ;;
346
347 -cache-file | --cache-file | --cache-fil | --cache-fi \
348 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
349 ac_prev=cache_file ;;
350 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
351 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
352 cache_file="$ac_optarg" ;;
353
354 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
355 ac_prev=datadir ;;
356 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
357 | --da=*)
358 datadir="$ac_optarg" ;;
359
360 -disable-* | --disable-*)
361 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
362 # Reject names that are not valid shell variable names.
363 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
364 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
365 fi
366 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
367 eval "enable_${ac_feature}=no" ;;
368
369 -enable-* | --enable-*)
370 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
371 # Reject names that are not valid shell variable names.
372 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
373 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
374 fi
375 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
376 case "$ac_option" in
377 *=*) ;;
378 *) ac_optarg=yes ;;
379 esac
380 eval "enable_${ac_feature}='$ac_optarg'" ;;
381
382 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
383 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
384 | --exec | --exe | --ex)
385 ac_prev=exec_prefix ;;
386 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
387 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
388 | --exec=* | --exe=* | --ex=*)
389 exec_prefix="$ac_optarg" ;;
390
391 -gas | --gas | --ga | --g)
392 # Obsolete; use --with-gas.
393 with_gas=yes ;;
394
395 -help | --help | --hel | --he)
396 # Omit some internal or obsolete options to make the list less imposing.
397 # This message is too long to be a string in the A/UX 3.1 sh.
398 cat << EOF
399Usage: configure [options] [host]
400Options: [defaults in brackets after descriptions]
401Configuration:
402 --cache-file=FILE cache test results in FILE
403 --help print this message
404 --no-create do not create output files
405 --quiet, --silent do not print \`checking...' messages
406 --version print the version of autoconf that created configure
407Directory and file names:
408 --prefix=PREFIX install architecture-independent files in PREFIX
409 [$ac_default_prefix]
410 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
411 [same as prefix]
412 --bindir=DIR user executables in DIR [EPREFIX/bin]
413 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
414 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
415 --datadir=DIR read-only architecture-independent data in DIR
416 [PREFIX/share]
417 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
418 --sharedstatedir=DIR modifiable architecture-independent data in DIR
419 [PREFIX/com]
420 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
421 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
422 --includedir=DIR C header files in DIR [PREFIX/include]
423 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
424 --infodir=DIR info documentation in DIR [PREFIX/info]
425 --mandir=DIR man documentation in DIR [PREFIX/man]
426 --srcdir=DIR find the sources in DIR [configure dir or ..]
427 --program-prefix=PREFIX prepend PREFIX to installed program names
428 --program-suffix=SUFFIX append SUFFIX to installed program names
429 --program-transform-name=PROGRAM
430 run sed PROGRAM on installed program names
431EOF
432 cat << EOF
433Host type:
434 --build=BUILD configure for building on BUILD [BUILD=HOST]
435 --host=HOST configure for HOST [guessed]
436 --target=TARGET configure for TARGET [TARGET=HOST]
437Features and packages:
438 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
439 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
440 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
441 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
442 --x-includes=DIR X include files are in DIR
443 --x-libraries=DIR X library files are in DIR
444EOF
445 if test -n "$ac_help"; then
446 echo "--enable and --with options recognized:$ac_help"
447 fi
448 exit 0 ;;
449
450 -host | --host | --hos | --ho)
451 ac_prev=host ;;
452 -host=* | --host=* | --hos=* | --ho=*)
453 host="$ac_optarg" ;;
454
455 -includedir | --includedir | --includedi | --included | --include \
456 | --includ | --inclu | --incl | --inc)
457 ac_prev=includedir ;;
458 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
459 | --includ=* | --inclu=* | --incl=* | --inc=*)
460 includedir="$ac_optarg" ;;
461
462 -infodir | --infodir | --infodi | --infod | --info | --inf)
463 ac_prev=infodir ;;
464 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
465 infodir="$ac_optarg" ;;
466
467 -libdir | --libdir | --libdi | --libd)
468 ac_prev=libdir ;;
469 -libdir=* | --libdir=* | --libdi=* | --libd=*)
470 libdir="$ac_optarg" ;;
471
472 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
473 | --libexe | --libex | --libe)
474 ac_prev=libexecdir ;;
475 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
476 | --libexe=* | --libex=* | --libe=*)
477 libexecdir="$ac_optarg" ;;
478
479 -localstatedir | --localstatedir | --localstatedi | --localstated \
480 | --localstate | --localstat | --localsta | --localst \
481 | --locals | --local | --loca | --loc | --lo)
482 ac_prev=localstatedir ;;
483 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
484 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
485 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
486 localstatedir="$ac_optarg" ;;
487
488 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
489 ac_prev=mandir ;;
490 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
491 mandir="$ac_optarg" ;;
492
493 -nfp | --nfp | --nf)
494 # Obsolete; use --without-fp.
495 with_fp=no ;;
496
497 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
498 | --no-cr | --no-c)
499 no_create=yes ;;
500
501 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
502 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
503 no_recursion=yes ;;
504
505 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
506 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
507 | --oldin | --oldi | --old | --ol | --o)
508 ac_prev=oldincludedir ;;
509 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
510 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
511 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
512 oldincludedir="$ac_optarg" ;;
513
514 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
515 ac_prev=prefix ;;
516 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
517 prefix="$ac_optarg" ;;
518
519 -program-prefix | --program-prefix | --program-prefi | --program-pref \
520 | --program-pre | --program-pr | --program-p)
521 ac_prev=program_prefix ;;
522 -program-prefix=* | --program-prefix=* | --program-prefi=* \
523 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
524 program_prefix="$ac_optarg" ;;
525
526 -program-suffix | --program-suffix | --program-suffi | --program-suff \
527 | --program-suf | --program-su | --program-s)
528 ac_prev=program_suffix ;;
529 -program-suffix=* | --program-suffix=* | --program-suffi=* \
530 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
531 program_suffix="$ac_optarg" ;;
532
533 -program-transform-name | --program-transform-name \
534 | --program-transform-nam | --program-transform-na \
535 | --program-transform-n | --program-transform- \
536 | --program-transform | --program-transfor \
537 | --program-transfo | --program-transf \
538 | --program-trans | --program-tran \
539 | --progr-tra | --program-tr | --program-t)
540 ac_prev=program_transform_name ;;
541 -program-transform-name=* | --program-transform-name=* \
542 | --program-transform-nam=* | --program-transform-na=* \
543 | --program-transform-n=* | --program-transform-=* \
544 | --program-transform=* | --program-transfor=* \
545 | --program-transfo=* | --program-transf=* \
546 | --program-trans=* | --program-tran=* \
547 | --progr-tra=* | --program-tr=* | --program-t=*)
548 program_transform_name="$ac_optarg" ;;
549
550 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
551 | -silent | --silent | --silen | --sile | --sil)
552 silent=yes ;;
553
554 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
555 ac_prev=sbindir ;;
556 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
557 | --sbi=* | --sb=*)
558 sbindir="$ac_optarg" ;;
559
560 -sharedstatedir | --sharedstatedir | --sharedstatedi \
561 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
562 | --sharedst | --shareds | --shared | --share | --shar \
563 | --sha | --sh)
564 ac_prev=sharedstatedir ;;
565 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
566 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
567 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
568 | --sha=* | --sh=*)
569 sharedstatedir="$ac_optarg" ;;
570
571 -site | --site | --sit)
572 ac_prev=site ;;
573 -site=* | --site=* | --sit=*)
574 site="$ac_optarg" ;;
575
576 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
577 ac_prev=srcdir ;;
578 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
579 srcdir="$ac_optarg" ;;
580
581 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
582 | --syscon | --sysco | --sysc | --sys | --sy)
583 ac_prev=sysconfdir ;;
584 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
585 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
586 sysconfdir="$ac_optarg" ;;
587
588 -target | --target | --targe | --targ | --tar | --ta | --t)
589 ac_prev=target ;;
590 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
591 target="$ac_optarg" ;;
592
593 -v | -verbose | --verbose | --verbos | --verbo | --verb)
594 verbose=yes ;;
595
596 -version | --version | --versio | --versi | --vers)
e694c22c 597 echo "configure generated by autoconf version 2.13"
10f2d63a
VZ
598 exit 0 ;;
599
600 -with-* | --with-*)
601 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
602 # Reject names that are not valid shell variable names.
603 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
604 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
605 fi
606 ac_package=`echo $ac_package| sed 's/-/_/g'`
607 case "$ac_option" in
608 *=*) ;;
609 *) ac_optarg=yes ;;
610 esac
611 eval "with_${ac_package}='$ac_optarg'" ;;
612
613 -without-* | --without-*)
614 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
615 # Reject names that are not valid shell variable names.
616 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
617 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
618 fi
619 ac_package=`echo $ac_package| sed 's/-/_/g'`
620 eval "with_${ac_package}=no" ;;
621
622 --x)
623 # Obsolete; use --with-x.
624 with_x=yes ;;
625
626 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
627 | --x-incl | --x-inc | --x-in | --x-i)
628 ac_prev=x_includes ;;
629 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
630 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
631 x_includes="$ac_optarg" ;;
632
633 -x-libraries | --x-libraries | --x-librarie | --x-librari \
634 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
635 ac_prev=x_libraries ;;
636 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
637 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
638 x_libraries="$ac_optarg" ;;
639
640 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
641 ;;
642
643 *)
644 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
645 echo "configure: warning: $ac_option: invalid host type" 1>&2
646 fi
647 if test "x$nonopt" != xNONE; then
648 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
649 fi
650 nonopt="$ac_option"
651 ;;
652
653 esac
654done
655
656if test -n "$ac_prev"; then
657 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
658fi
659
660trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
661
662# File descriptor usage:
663# 0 standard input
664# 1 file creation
665# 2 errors and warnings
666# 3 some systems may open it to /dev/tty
667# 4 used on the Kubota Titan
668# 6 checking for... messages and results
669# 5 compiler messages saved in config.log
670if test "$silent" = yes; then
671 exec 6>/dev/null
672else
673 exec 6>&1
674fi
675exec 5>./config.log
676
677echo "\
678This file contains any messages produced by compilers while
679running configure, to aid debugging if configure makes a mistake.
680" 1>&5
681
682# Strip out --no-create and --no-recursion so they do not pile up.
683# Also quote any args containing shell metacharacters.
684ac_configure_args=
685for ac_arg
686do
687 case "$ac_arg" in
688 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
689 | --no-cr | --no-c) ;;
690 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
691 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
692 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
693 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
694 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
695 esac
696done
697
698# NLS nuisances.
699# Only set these to C if already set. These must not be set unconditionally
700# because not all systems understand e.g. LANG=C (notably SCO).
701# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
702# Non-C LC_CTYPE values break the ctype check.
703if test "${LANG+set}" = set; then LANG=C; export LANG; fi
704if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
705if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
706if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
707
708# confdefs.h avoids OS command line length limits that DEFS can exceed.
709rm -rf conftest* confdefs.h
710# AIX cpp loses on an empty file, so make sure it contains at least a newline.
711echo > confdefs.h
712
713# A filename unique to this package, relative to the directory that
714# configure is in, which we can look for to find out if srcdir is correct.
715ac_unique_file=wx-config.in
716
717# Find the source files, if location was not specified.
718if test -z "$srcdir"; then
719 ac_srcdir_defaulted=yes
720 # Try the directory containing this script, then its parent.
721 ac_prog=$0
722 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
723 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
724 srcdir=$ac_confdir
725 if test ! -r $srcdir/$ac_unique_file; then
726 srcdir=..
727 fi
728else
729 ac_srcdir_defaulted=no
730fi
731if test ! -r $srcdir/$ac_unique_file; then
732 if test "$ac_srcdir_defaulted" = yes; then
733 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
734 else
735 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
736 fi
737fi
738srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
739
740# Prefer explicitly selected file to automatically selected ones.
741if test -z "$CONFIG_SITE"; then
742 if test "x$prefix" != xNONE; then
743 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
744 else
745 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
746 fi
747fi
748for ac_site_file in $CONFIG_SITE; do
749 if test -r "$ac_site_file"; then
750 echo "loading site script $ac_site_file"
751 . "$ac_site_file"
752 fi
753done
754
755if test -r "$cache_file"; then
756 echo "loading cache $cache_file"
757 . $cache_file
758else
759 echo "creating cache $cache_file"
760 > $cache_file
761fi
762
763ac_ext=c
764# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
765ac_cpp='$CPP $CPPFLAGS'
766ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
767ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
768cross_compiling=$ac_cv_prog_cc_cross
769
770ac_exeext=
771ac_objext=o
772if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
773 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
774 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
775 ac_n= ac_c='
776' ac_t=' '
777 else
778 ac_n=-n ac_c= ac_t=
779 fi
780else
781 ac_n= ac_c='\c' ac_t=
782fi
783
784
785
786ac_aux_dir=
787for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
788 if test -f $ac_dir/install-sh; then
789 ac_aux_dir=$ac_dir
790 ac_install_sh="$ac_aux_dir/install-sh -c"
791 break
792 elif test -f $ac_dir/install.sh; then
793 ac_aux_dir=$ac_dir
794 ac_install_sh="$ac_aux_dir/install.sh -c"
795 break
796 fi
797done
798if test -z "$ac_aux_dir"; then
799 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
800fi
801ac_config_guess=$ac_aux_dir/config.guess
802ac_config_sub=$ac_aux_dir/config.sub
803ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
804
805
806# Do some error checking and defaulting for the host and target type.
807# The inputs are:
808# configure --host=HOST --target=TARGET --build=BUILD NONOPT
809#
810# The rules are:
811# 1. You are not allowed to specify --host, --target, and nonopt at the
812# same time.
813# 2. Host defaults to nonopt.
814# 3. If nonopt is not specified, then host defaults to the current host,
815# as determined by config.guess.
816# 4. Target and build default to nonopt.
817# 5. If nonopt is not specified, then target and build default to host.
818
819# The aliases save the names the user supplied, while $host etc.
820# will get canonicalized.
821case $host---$target---$nonopt in
822NONE---*---* | *---NONE---* | *---*---NONE) ;;
823*) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
824esac
825
826
827# Make sure we can run config.sub.
828if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
829else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
830fi
831
832echo $ac_n "checking host system type""... $ac_c" 1>&6
360d6699 833echo "configure:834: checking host system type" >&5
10f2d63a
VZ
834
835host_alias=$host
836case "$host_alias" in
837NONE)
838 case $nonopt in
839 NONE)
840 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
841 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
842 fi ;;
843 *) host_alias=$nonopt ;;
844 esac ;;
845esac
846
847host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
848host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
849host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
850host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
851echo "$ac_t""$host" 1>&6
852
853echo $ac_n "checking target system type""... $ac_c" 1>&6
360d6699 854echo "configure:855: checking target system type" >&5
10f2d63a
VZ
855
856target_alias=$target
857case "$target_alias" in
858NONE)
859 case $nonopt in
860 NONE) target_alias=$host_alias ;;
861 *) target_alias=$nonopt ;;
862 esac ;;
863esac
864
865target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
866target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
867target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
868target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
869echo "$ac_t""$target" 1>&6
870
871echo $ac_n "checking build system type""... $ac_c" 1>&6
360d6699 872echo "configure:873: checking build system type" >&5
10f2d63a
VZ
873
874build_alias=$build
875case "$build_alias" in
876NONE)
877 case $nonopt in
878 NONE) build_alias=$host_alias ;;
879 *) build_alias=$nonopt ;;
880 esac ;;
881esac
882
883build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
884build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
885build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
886build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
887echo "$ac_t""$build" 1>&6
888
889test "$host_alias" != "$target_alias" &&
890 test "$program_prefix$program_suffix$program_transform_name" = \
891 NONENONEs,x,x, &&
892 program_prefix=${target_alias}-
893
894
895
896WX_MAJOR_VERSION_NUMBER=2
897WX_MINOR_VERSION_NUMBER=1
ba0e7d41 898WX_RELEASE_NUMBER=12
10f2d63a
VZ
899
900WX_INTERFACE_AGE=0
901WX_BINARY_AGE=0
902
903WX_VERSION=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER.$WX_RELEASE_NUMBER
904
905WX_RELEASE=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER
906WX_CURRENT=`expr $WX_RELEASE_NUMBER - $WX_INTERFACE_AGE`
907WX_REVISION=$WX_INTERFACE_AGE
908WX_AGE=`expr $WX_BINARY_AGE - $WX_INTERFACE_AGE`
909
910
911USE_UNIX=1
912USE_WIN32=0
b12915c1
VZ
913USE_BEOS=0
914
10f2d63a
VZ
915USE_LINUX=
916USE_SGI=
917USE_HPUX=
918USE_SYSV=
919USE_SVR4=
920USE_AIX=
921USE_SUN=
922USE_SOLARIS=
923USE_SUNOS=
924USE_ALPHA=
925USE_OSF=
926USE_BSD=
927USE_FREEBSD=
928USE_VMS=
929USE_ULTRIX=
930USE_CYGWIN=
931USE_MINGW=
932USE_DATA_GENERAL=
933
ab9b9eab
VZ
934NEEDS_D_REENTRANT_FOR_R_FUNCS=0
935
10f2d63a
VZ
936ALL_TOOLKITS="CYGWIN GTK MINGW MOTIF WINE"
937
938DEFAULT_wxUSE_GTK=0
939DEFAULT_wxUSE_MOTIF=0
940DEFAULT_wxUSE_MSW=0
941DEFAULT_wxUSE_WINE=0
942
943DEFAULT_DEFAULT_wxUSE_GTK=0
944DEFAULT_DEFAULT_wxUSE_MOTIF=0
945DEFAULT_DEFAULT_wxUSE_MSW=0
946DEFAULT_DEFAULT_wxUSE_WINE=0
947
948case "${host}" in
949 *-hp-hpux* )
950 USE_HPUX=1
951 DEFAULT_DEFAULT_wxUSE_MOTIF=1
ab9b9eab 952 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
10f2d63a
VZ
953 cat >> confdefs.h <<\EOF
954#define __HPUX__ 1
955EOF
956
957 ;;
958 *-*-linux* )
959 USE_LINUX=1
960 cat >> confdefs.h <<\EOF
961#define __LINUX__ 1
962EOF
963
964 TMP=`uname -m`
965 if test "x$TMP" = "xalpha"; then
966 USE_ALPHA=1
967 cat >> confdefs.h <<\EOF
968#define __ALPHA__ 1
969EOF
970
971 fi
972 DEFAULT_DEFAULT_wxUSE_GTK=1
973 ;;
974 *-*-irix5* | *-*-irix6* )
975 USE_SGI=1
976 USE_SVR4=1
977 cat >> confdefs.h <<\EOF
978#define __SGI__ 1
979EOF
980
981 cat >> confdefs.h <<\EOF
982#define __SVR4__ 1
983EOF
984
985 DEFAULT_DEFAULT_wxUSE_MOTIF=1
986 ;;
987 *-*-solaris2* )
988 USE_SUN=1
989 USE_SOLARIS=1
990 USE_SVR4=1
991 cat >> confdefs.h <<\EOF
992#define __SUN__ 1
993EOF
994
995 cat >> confdefs.h <<\EOF
996#define __SOLARIS__ 1
997EOF
998
999 cat >> confdefs.h <<\EOF
1000#define __SVR4__ 1
1001EOF
1002
1003 DEFAULT_DEFAULT_wxUSE_MOTIF=1
ab9b9eab 1004 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
10f2d63a
VZ
1005 ;;
1006 *-*-sunos4* )
1007 USE_SUN=1
1008 USE_SUNOS=1
1009 USE_BSD=1
1010 cat >> confdefs.h <<\EOF
1011#define __SUN__ 1
1012EOF
1013
1014 cat >> confdefs.h <<\EOF
1015#define __SUNOS__ 1
1016EOF
1017
1018 cat >> confdefs.h <<\EOF
1019#define __BSD__ 1
1020EOF
1021
1022 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1023 ;;
1024 *-*-freebsd* | *-*-netbsd*)
1025 USE_BSD=1
1026 USE_FREEBSD=1
1027 cat >> confdefs.h <<\EOF
1028#define __FREEBSD__ 1
1029EOF
1030
1031 cat >> confdefs.h <<\EOF
1032#define __BSD__ 1
1033EOF
1034
1035 DEFAULT_DEFAULT_wxUSE_GTK=1
1036 ;;
1037 *-*-osf* )
1038 USE_ALPHA=1
1039 USE_OSF=1
1040 cat >> confdefs.h <<\EOF
1041#define __ALPHA__ 1
1042EOF
1043
1044 cat >> confdefs.h <<\EOF
1045#define __OSF__ 1
1046EOF
1047
1048 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1049 ;;
1050 *-*-dgux5* )
1051 USE_ALPHA=1
1052 USE_SVR4=1
1053 cat >> confdefs.h <<\EOF
1054#define __ALPHA__ 1
1055EOF
1056
1057 cat >> confdefs.h <<\EOF
1058#define __SVR4__ 1
1059EOF
1060
1061 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1062 ;;
1063 *-*-sysv5* )
1064 USE_SYSV=1
1065 USE_SVR4=1
1066 cat >> confdefs.h <<\EOF
1067#define __SYSV__ 1
1068EOF
1069
1070 cat >> confdefs.h <<\EOF
1071#define __SVR4__ 1
1072EOF
1073
1074 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1075 ;;
1076 *-*-aix* )
1077 USE_AIX=1
1078 USE_SYSV=1
1079 USE_SVR4=1
1080 cat >> confdefs.h <<\EOF
1081#define __AIX__ 1
1082EOF
1083
1084 cat >> confdefs.h <<\EOF
1085#define __SYSV__ 1
1086EOF
1087
1088 cat >> confdefs.h <<\EOF
1089#define __SVR4__ 1
1090EOF
1091
1092 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1093 ;;
1094
7eef8db2 1095 *-*-cygwin32* | *-*-mingw32* )
10f2d63a
VZ
1096 USE_UNIX=0
1097 USE_WIN32=1
1098 cat >> confdefs.h <<\EOF
1099#define __WIN32__ 1
1100EOF
1101
1102 cat >> confdefs.h <<\EOF
1103#define __WIN95__ 1
1104EOF
1105
1106 cat >> confdefs.h <<\EOF
1107#define __WINDOWS__ 1
1108EOF
1109
1110 cat >> confdefs.h <<\EOF
1111#define __GNUWIN32__ 1
1112EOF
1113
1114 cat >> confdefs.h <<\EOF
1115#define STRICT 1
1116EOF
1117
1118 cat >> confdefs.h <<\EOF
1119#define WINVER 0x0400
1120EOF
1121
1122 DEFAULT_DEFAULT_wxUSE_MSW=1
1123 ;;
1124
1125 *-pc-os2_emx )
1126 cat >> confdefs.h <<\EOF
1127#define __EMX__ 1
1128EOF
1129
1130 ;;
1131
b12915c1
VZ
1132 *-*-beos* )
1133 USE_BEOS=1
1134 cat >> confdefs.h <<\EOF
1135#define __BEOS__ 1
1136EOF
1137
1138 ;;
1139
10f2d63a
VZ
1140 *)
1141 { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; }
1142esac
1143
1144if test "$USE_UNIX" = 1 ; then
b12915c1
VZ
1145 wxUSE_UNIX=yes
1146 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1147#define __UNIX__ 1
1148EOF
1149
b12915c1
VZ
1150
1151 SRC_SUBDIRS="$SRC_SUBDIRS unix"
1152 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS unix"
1153fi
1154
1155if test "$USE_BEOS" = 1; then
1156 SRC_SUBDIRS="$SRC_SUBDIRS be"
1157 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS be"
10f2d63a
VZ
1158fi
1159
1160if test "$USE_LINUX" = 1; then
1161 echo $ac_n "checking for gettext in -lc""... $ac_c" 1>&6
b12915c1 1162echo "configure:1163: checking for gettext in -lc" >&5
10f2d63a
VZ
1163ac_lib_var=`echo c'_'gettext | sed 'y%./+-%__p_%'`
1164if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1165 echo $ac_n "(cached) $ac_c" 1>&6
1166else
1167 ac_save_LIBS="$LIBS"
1168LIBS="-lc $LIBS"
1169cat > conftest.$ac_ext <<EOF
b12915c1 1170#line 1171 "configure"
10f2d63a
VZ
1171#include "confdefs.h"
1172/* Override any gcc2 internal prototype to avoid an error. */
1173/* We use char because int might match the return type of a gcc2
1174 builtin and then its argument prototype would still apply. */
1175char gettext();
1176
1177int main() {
1178gettext()
1179; return 0; }
1180EOF
b12915c1 1181if { (eval echo configure:1182: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
1182 rm -rf conftest*
1183 eval "ac_cv_lib_$ac_lib_var=yes"
1184else
1185 echo "configure: failed program was:" >&5
1186 cat conftest.$ac_ext >&5
1187 rm -rf conftest*
1188 eval "ac_cv_lib_$ac_lib_var=no"
1189fi
1190rm -f conftest*
1191LIBS="$ac_save_LIBS"
1192
1193fi
1194if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1195 echo "$ac_t""yes" 1>&6
1196 cat >> confdefs.h <<\EOF
1197#define wxHAVE_GLIBC2 1
1198EOF
1199
1200else
1201 echo "$ac_t""no" 1>&6
1202fi
1203
1204fi
1205
1206
1207
1208
1209 wx_arg_cache_file="configarg.cache"
1210 echo "loading argument cache $wx_arg_cache_file"
1211 rm -f ${wx_arg_cache_file}.tmp
1212 touch ${wx_arg_cache_file}.tmp
1213 touch ${wx_arg_cache_file}
1214
1215
1216DEBUG_CONFIGURE=0
1217if test $DEBUG_CONFIGURE = 1; then
1218 DEFAULT_wxUSE_THREADS=yes
1219
1220 DEFAULT_wxUSE_SHARED=yes
1221 DEFAULT_wxUSE_OPTIMISE=yes
1222 DEFAULT_wxUSE_PROFILE=no
1223 DEFAULT_wxUSE_NO_DEPS=no
1224 DEFAULT_wxUSE_NO_RTTI=no
1225 DEFAULT_wxUSE_NO_EXCEPTIONS=no
1226 DEFAULT_wxUSE_PERMISSIVE=no
1227 DEFAULT_wxUSE_DEBUG_FLAG=yes
1228 DEFAULT_wxUSE_DEBUG_INFO=yes
1229 DEFAULT_wxUSE_DEBUG_GDB=yes
1230 DEFAULT_wxUSE_MEM_TRACING=no
1231 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1232 DEFAULT_wxUSE_DMALLOC=no
1233 DEFAULT_wxUSE_APPLE_IEEE=no
1234
1235 DEFAULT_wxUSE_LOG=yes
1236
1237 DEFAULT_wxUSE_GUI=yes
1238
1239 DEFAULT_wxUSE_ZLIB=no
1240 DEFAULT_wxUSE_LIBPNG=no
1241 DEFAULT_wxUSE_LIBJPEG=no
c7a2bf27 1242 DEFAULT_wxUSE_LIBTIFF=no
10f2d63a
VZ
1243 DEFAULT_wxUSE_ODBC=no
1244
1245 DEFAULT_wxUSE_STD_IOSTREAM=no
1246 DEFAULT_wxUSE_FILE=no
1247 DEFAULT_wxUSE_TEXTFILE=no
1248 DEFAULT_wxUSE_TIMEDATE=no
1249 DEFAULT_wxUSE_WAVE=no
1250 DEFAULT_wxUSE_INTL=no
1251 DEFAULT_wxUSE_CONFIG=no
1252 DEFAULT_wxUSE_STREAMS=no
1253 DEFAULT_wxUSE_SOCKETS=no
1254 DEFAULT_wxUSE_DIALUP_MANAGER=no
1255 DEFAULT_wxUSE_SERIAL=no
1256 DEFAULT_wxUSE_JOYSTICK=no
1257 DEFAULT_wxUSE_DYNLIB_CLASS=no
1258 DEFAULT_wxUSE_LONGLONG=no
1259
1260 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
1261 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
1262 DEFAULT_wxUSE_POSTSCRIPT=no
1263
1264 DEFAULT_wxUSE_X_RESOURCES=no
1265 DEFAULT_wxUSE_CLIPBOARD=no
1266 DEFAULT_wxUSE_TOOLTIPS=no
1267 DEFAULT_wxUSE_DRAG_AND_DROP=no
1268 DEFAULT_wxUSE_SPLINES=no
1269
1270 DEFAULT_wxUSE_MDI_ARCHITECTURE=no
1271 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
1272 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
1273
1274 DEFAULT_wxUSE_PROLOGIO=no
1275 DEFAULT_wxUSE_RESOURCES=no
1276 DEFAULT_wxUSE_CONSTRAINTS=no
1277 DEFAULT_wxUSE_IPC=no
1278 DEFAULT_wxUSE_HELP=no
1279 DEFAULT_wxUSE_WXTREE=no
1280 DEFAULT_wxUSE_METAFILE=no
1281
1282 DEFAULT_wxUSE_COMMONDLGS=no
1283 DEFAULT_wxUSE_DIRDLG=no
1284 DEFAULT_wxUSE_TEXTDLG=no
1285 DEFAULT_wxUSE_STARTUP_TIPS=no
1286 DEFAULT_wxUSE_PROGRESSDLG=no
1287 DEFAULT_wxUSE_MINIFRAME=no
1288 DEFAULT_wxUSE_HTML=no
1289 DEFAULT_wxUSE_FS_INET=no
1290 DEFAULT_wxUSE_FS_ZIP=no
1291 DEFAULT_wxUSE_BUSYINFO=no
1292 DEFAULT_wxUSE_ZIPSTREAM=no
1293 DEFAULT_wxUSE_VALIDATORS=yes
1294
1295 DEFAULT_wxUSE_ACCEL=no
1296 DEFAULT_wxUSE_CARET=no
1297 DEFAULT_wxUSE_BMPBUTTON=no
1298 DEFAULT_wxUSE_CHECKBOX=no
1299 DEFAULT_wxUSE_CHECKLST=no
1300 DEFAULT_wxUSE_CHOICE=yes
1301 DEFAULT_wxUSE_COMBOBOX=no
1302 DEFAULT_wxUSE_GAUGE=no
1303 DEFAULT_wxUSE_GRID=no
1304 DEFAULT_wxUSE_NEW_GRID=no
1305 DEFAULT_wxUSE_IMAGLIST=no
1306 DEFAULT_wxUSE_LISTBOX=no
1307 DEFAULT_wxUSE_LISTCTRL=no
1308 DEFAULT_wxUSE_NOTEBOOK=no
1309 DEFAULT_wxUSE_RADIOBOX=no
1310 DEFAULT_wxUSE_RADIOBTN=no
1311 DEFAULT_wxUSE_SASH=no
1312 DEFAULT_wxUSE_SCROLLBAR=no
1313 DEFAULT_wxUSE_SLIDER=no
1314 DEFAULT_wxUSE_SPINBTN=no
56cfaa52 1315 DEFAULT_wxUSE_SPINCTRL=no
10f2d63a
VZ
1316 DEFAULT_wxUSE_SPLITTER=no
1317 DEFAULT_wxUSE_STATBMP=no
1318 DEFAULT_wxUSE_STATBOX=no
1319 DEFAULT_wxUSE_STATLINE=no
1320 DEFAULT_wxUSE_STATUSBAR=yes
1321 DEFAULT_wxUSE_TABDIALOG=no
1322 DEFAULT_wxUSE_TOOLBAR=no
360d6699
VZ
1323 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
1324 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
10f2d63a
VZ
1325 DEFAULT_wxUSE_TREECTRL=no
1326
1327 DEFAULT_wxUSE_UNICODE=no
1328 DEFAULT_wxUSE_WCSRTOMBS=no
1329
1330 DEFAULT_wxUSE_GIF=no
1331 DEFAULT_wxUSE_PCX=no
1332 DEFAULT_wxUSE_PNM=no
1333else
1334 DEFAULT_wxUSE_THREADS=yes
1335
1336 DEFAULT_wxUSE_SHARED=yes
1337 DEFAULT_wxUSE_OPTIMISE=yes
1338 DEFAULT_wxUSE_PROFILE=no
1339 DEFAULT_wxUSE_NO_DEPS=no
1340 DEFAULT_wxUSE_NO_RTTI=no
1341 DEFAULT_wxUSE_NO_EXCEPTIONS=no
1342 DEFAULT_wxUSE_PERMISSIVE=no
1343 DEFAULT_wxUSE_DEBUG_FLAG=no
1344 DEFAULT_wxUSE_DEBUG_INFO=no
1345 DEFAULT_wxUSE_DEBUG_GDB=no
1346 DEFAULT_wxUSE_MEM_TRACING=no
1347 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1348 DEFAULT_wxUSE_DMALLOC=no
1349 DEFAULT_wxUSE_APPLE_IEEE=yes
1350
1351 DEFAULT_wxUSE_LOG=yes
1352
1353 DEFAULT_wxUSE_GUI=yes
1354
1355 DEFAULT_wxUSE_ZLIB=yes
1356 DEFAULT_wxUSE_LIBPNG=yes
1357 DEFAULT_wxUSE_LIBJPEG=yes
b47c832e 1358 DEFAULT_wxUSE_LIBTIFF=yes
10f2d63a
VZ
1359 DEFAULT_wxUSE_ODBC=yes
1360
1361 DEFAULT_wxUSE_STD_IOSTREAM=no
1362 DEFAULT_wxUSE_FILE=yes
1363 DEFAULT_wxUSE_TEXTFILE=yes
1364 DEFAULT_wxUSE_TIMEDATE=yes
1365 DEFAULT_wxUSE_WAVE=no
1366 DEFAULT_wxUSE_INTL=yes
1367 DEFAULT_wxUSE_CONFIG=yes
1368 DEFAULT_wxUSE_STREAMS=yes
1369 DEFAULT_wxUSE_SOCKETS=yes
1370 DEFAULT_wxUSE_DIALUP_MANAGER=yes
1371 DEFAULT_wxUSE_SERIAL=yes
1372 DEFAULT_wxUSE_JOYSTICK=yes
1373 DEFAULT_wxUSE_DYNLIB_CLASS=yes
b685cd9b 1374 DEFAULT_wxUSE_LONGLONG=yes
10f2d63a
VZ
1375
1376 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
1377 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
1378 DEFAULT_wxUSE_POSTSCRIPT=yes
1379
1380 DEFAULT_wxUSE_X_RESOURCES=no
1381 DEFAULT_wxUSE_CLIPBOARD=yes
1382 DEFAULT_wxUSE_TOOLTIPS=yes
1383 DEFAULT_wxUSE_DRAG_AND_DROP=yes
1384 DEFAULT_wxUSE_SPLINES=yes
1385
1386 DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
1387 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
1388 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
1389
1390 DEFAULT_wxUSE_PROLOGIO=yes
1391 DEFAULT_wxUSE_RESOURCES=yes
1392 DEFAULT_wxUSE_CONSTRAINTS=yes
1393 DEFAULT_wxUSE_IPC=yes
1394 DEFAULT_wxUSE_HELP=yes
1395 DEFAULT_wxUSE_WXTREE=yes
1396 DEFAULT_wxUSE_METAFILE=yes
1397
1398 DEFAULT_wxUSE_COMMONDLGS=yes
1399 DEFAULT_wxUSE_DIRDLG=yes
1400 DEFAULT_wxUSE_TEXTDLG=yes
1401 DEFAULT_wxUSE_STARTUP_TIPS=yes
1402 DEFAULT_wxUSE_PROGRESSDLG=yes
1403 DEFAULT_wxUSE_MINIFRAME=yes
1404 DEFAULT_wxUSE_HTML=yes
1405 DEFAULT_wxUSE_FS_INET=yes
1406 DEFAULT_wxUSE_FS_ZIP=yes
1407 DEFAULT_wxUSE_BUSYINFO=yes
1408 DEFAULT_wxUSE_ZIPSTREAM=yes
1409 DEFAULT_wxUSE_VALIDATORS=yes
1410
1411 DEFAULT_wxUSE_ACCEL=yes
1412 DEFAULT_wxUSE_CARET=yes
1413 DEFAULT_wxUSE_BMPBUTTON=yes
1414 DEFAULT_wxUSE_CHECKBOX=yes
1415 DEFAULT_wxUSE_CHECKLST=yes
1416 DEFAULT_wxUSE_CHOICE=yes
1417 DEFAULT_wxUSE_COMBOBOX=yes
1418 DEFAULT_wxUSE_GAUGE=yes
1419 DEFAULT_wxUSE_GRID=yes
fc9c7c09 1420 DEFAULT_wxUSE_NEW_GRID=no
10f2d63a
VZ
1421 DEFAULT_wxUSE_IMAGLIST=yes
1422 DEFAULT_wxUSE_LISTBOX=yes
1423 DEFAULT_wxUSE_LISTCTRL=yes
1424 DEFAULT_wxUSE_NOTEBOOK=yes
1425 DEFAULT_wxUSE_RADIOBOX=yes
1426 DEFAULT_wxUSE_RADIOBTN=yes
1427 DEFAULT_wxUSE_SASH=yes
1428 DEFAULT_wxUSE_SCROLLBAR=yes
1429 DEFAULT_wxUSE_SLIDER=yes
1430 DEFAULT_wxUSE_SPINBTN=yes
56cfaa52 1431 DEFAULT_wxUSE_SPINCTRL=yes
10f2d63a
VZ
1432 DEFAULT_wxUSE_SPLITTER=yes
1433 DEFAULT_wxUSE_STATBMP=yes
1434 DEFAULT_wxUSE_STATBOX=yes
1435 DEFAULT_wxUSE_STATLINE=yes
1436 DEFAULT_wxUSE_STATUSBAR=yes
1437 DEFAULT_wxUSE_TABDIALOG=no
1438 DEFAULT_wxUSE_TOOLBAR=yes
360d6699
VZ
1439 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
1440 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
10f2d63a
VZ
1441 DEFAULT_wxUSE_TREECTRL=yes
1442
1443 DEFAULT_wxUSE_UNICODE=no
1444 DEFAULT_wxUSE_WCSRTOMBS=no
1445
1446 DEFAULT_wxUSE_GIF=yes
1447 DEFAULT_wxUSE_PCX=yes
1448 DEFAULT_wxUSE_PNM=yes
1449fi
1450
1451
1452
1453for toolkit in `echo $ALL_TOOLKITS`; do
1454 LINE=`grep "wxUSE_$toolkit" ${wx_arg_cache_file}`
1455 if test "x$LINE" != x ; then
1456 has_toolkit_in_cache=1
1457 eval "DEFAULT_$LINE"
1458 eval "CACHE_$toolkit=1"
1459 fi
1460done
1461
1462
1463
1464 echo $ac_n "checking "for --enable-gui"""... $ac_c" 1>&6
b12915c1 1465echo "configure:1466: checking "for --enable-gui"" >&5
10f2d63a
VZ
1466 no_cache=0
1467 # Check whether --enable-gui or --disable-gui was given.
1468if test "${enable_gui+set}" = set; then
1469 enableval="$enable_gui"
1470
1471 if test "$enableval" = yes; then
1472 ac_cv_use_gui='wxUSE_GUI=yes'
1473 else
1474 ac_cv_use_gui='wxUSE_GUI=no'
1475 fi
1476
1477else
1478
1479 LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
1480 if test "x$LINE" != x ; then
1481 eval "DEFAULT_$LINE"
1482 else
1483 no_cache=1
1484 fi
1485
1486 ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
1487
1488fi
1489
1490
1491 eval "$ac_cv_use_gui"
1492 if test "$no_cache" != 1; then
1493 echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
1494 fi
1495
1496 if test "$wxUSE_GUI" = yes; then
1497 echo "$ac_t""yes" 1>&6
1498 else
1499 echo "$ac_t""no" 1>&6
1500 fi
1501
1502
b12915c1 1503if test "$wxUSE_GUI" = "yes"; then
10f2d63a
VZ
1504
1505# Check whether --with-gtk or --without-gtk was given.
1506if test "${with_gtk+set}" = set; then
1507 withval="$with_gtk"
1508 wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
1509fi
1510
1511# Check whether --with-motif or --without-motif was given.
1512if test "${with_motif+set}" = set; then
1513 withval="$with_motif"
1514 wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
1515fi
1516
1517# Check whether --with-wine or --without-wine was given.
1518if test "${with_wine+set}" = set; then
1519 withval="$with_wine"
1520 wxUSE_WINE="$withval" CACHE_WINE=1 TOOLKIT_GIVEN=1
1521fi
1522
1523# Check whether --with-cygwin or --without-cygwin was given.
1524if test "${with_cygwin+set}" = set; then
1525 withval="$with_cygwin"
1526 wxUSE_CYGWIN="$withval" CACHE_CYGWIN=1 TOOLKIT_GIVEN=1
1527fi
1528
1529# Check whether --with-mingw or --without-mingw was given.
1530if test "${with_mingw+set}" = set; then
1531 withval="$with_mingw"
1532 wxUSE_MINGW="$withval" CACHE_MINGW=1 TOOLKIT_GIVEN=1
1533fi
1534
1535
1536# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
1537if test "${with_gtk_prefix+set}" = set; then
1538 withval="$with_gtk_prefix"
1539 gtk_config_prefix="$withval"
1540else
1541 gtk_config_prefix=""
1542fi
1543
1544# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
1545if test "${with_gtk_exec_prefix+set}" = set; then
1546 withval="$with_gtk_exec_prefix"
1547 gtk_config_exec_prefix="$withval"
1548else
1549 gtk_config_exec_prefix=""
1550fi
1551
1552
1553
b12915c1
VZ
1554 echo $ac_n "checking "for --with-libpng"""... $ac_c" 1>&6
1555echo "configure:1556: checking "for --with-libpng"" >&5
10f2d63a 1556 no_cache=0
b12915c1
VZ
1557 # Check whether --with-libpng or --without-libpng was given.
1558if test "${with_libpng+set}" = set; then
1559 withval="$with_libpng"
10f2d63a
VZ
1560
1561 if test "$withval" = yes; then
b12915c1 1562 ac_cv_use_libpng='wxUSE_LIBPNG=yes'
10f2d63a 1563 else
b12915c1 1564 ac_cv_use_libpng='wxUSE_LIBPNG=no'
10f2d63a
VZ
1565 fi
1566
1567else
1568
b12915c1 1569 LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
10f2d63a
VZ
1570 if test "x$LINE" != x ; then
1571 eval "DEFAULT_$LINE"
1572 else
1573 no_cache=1
1574 fi
1575
b12915c1 1576 ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
10f2d63a
VZ
1577
1578fi
1579
1580
b12915c1 1581 eval "$ac_cv_use_libpng"
10f2d63a 1582 if test "$no_cache" != 1; then
b12915c1 1583 echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
1584 fi
1585
b12915c1 1586 if test "$wxUSE_LIBPNG" = yes; then
10f2d63a
VZ
1587 echo "$ac_t""yes" 1>&6
1588 else
1589 echo "$ac_t""no" 1>&6
1590 fi
1591
1592
b12915c1
VZ
1593 echo $ac_n "checking "for --with-libjpeg"""... $ac_c" 1>&6
1594echo "configure:1595: checking "for --with-libjpeg"" >&5
10f2d63a 1595 no_cache=0
b12915c1
VZ
1596 # Check whether --with-libjpeg or --without-libjpeg was given.
1597if test "${with_libjpeg+set}" = set; then
1598 withval="$with_libjpeg"
10f2d63a
VZ
1599
1600 if test "$withval" = yes; then
b12915c1 1601 ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
10f2d63a 1602 else
b12915c1 1603 ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
10f2d63a
VZ
1604 fi
1605
1606else
1607
b12915c1 1608 LINE=`grep "wxUSE_LIBJPEG" ${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_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
10f2d63a
VZ
1616
1617fi
1618
1619
b12915c1 1620 eval "$ac_cv_use_libjpeg"
10f2d63a 1621 if test "$no_cache" != 1; then
b12915c1 1622 echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
1623 fi
1624
b12915c1 1625 if test "$wxUSE_LIBJPEG" = yes; then
10f2d63a
VZ
1626 echo "$ac_t""yes" 1>&6
1627 else
1628 echo "$ac_t""no" 1>&6
1629 fi
1630
1631
b12915c1
VZ
1632 echo $ac_n "checking "for --with-libtiff"""... $ac_c" 1>&6
1633echo "configure:1634: checking "for --with-libtiff"" >&5
10f2d63a 1634 no_cache=0
b12915c1
VZ
1635 # Check whether --with-libtiff or --without-libtiff was given.
1636if test "${with_libtiff+set}" = set; then
1637 withval="$with_libtiff"
10f2d63a
VZ
1638
1639 if test "$withval" = yes; then
b12915c1 1640 ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
10f2d63a 1641 else
b12915c1 1642 ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
10f2d63a
VZ
1643 fi
1644
1645else
1646
b12915c1 1647 LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
10f2d63a
VZ
1648 if test "x$LINE" != x ; then
1649 eval "DEFAULT_$LINE"
1650 else
1651 no_cache=1
1652 fi
1653
b12915c1 1654 ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
10f2d63a
VZ
1655
1656fi
1657
1658
b12915c1 1659 eval "$ac_cv_use_libtiff"
10f2d63a 1660 if test "$no_cache" != 1; then
b12915c1 1661 echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
1662 fi
1663
b12915c1 1664 if test "$wxUSE_LIBTIFF" = yes; then
10f2d63a
VZ
1665 echo "$ac_t""yes" 1>&6
1666 else
1667 echo "$ac_t""no" 1>&6
1668 fi
1669
1670
b12915c1
VZ
1671 echo $ac_n "checking "for --with-opengl"""... $ac_c" 1>&6
1672echo "configure:1673: checking "for --with-opengl"" >&5
10f2d63a 1673 no_cache=0
b12915c1
VZ
1674 # Check whether --with-opengl or --without-opengl was given.
1675if test "${with_opengl+set}" = set; then
1676 withval="$with_opengl"
10f2d63a
VZ
1677
1678 if test "$withval" = yes; then
b12915c1 1679 ac_cv_use_opengl='wxUSE_OPENGL=yes'
10f2d63a 1680 else
b12915c1 1681 ac_cv_use_opengl='wxUSE_OPENGL=no'
10f2d63a
VZ
1682 fi
1683
1684else
1685
b12915c1 1686 LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
10f2d63a
VZ
1687 if test "x$LINE" != x ; then
1688 eval "DEFAULT_$LINE"
1689 else
1690 no_cache=1
1691 fi
1692
b12915c1 1693 ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
10f2d63a
VZ
1694
1695fi
1696
1697
b12915c1 1698 eval "$ac_cv_use_opengl"
10f2d63a 1699 if test "$no_cache" != 1; then
b12915c1 1700 echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
1701 fi
1702
b12915c1 1703 if test "$wxUSE_OPENGL" = yes; then
10f2d63a
VZ
1704 echo "$ac_t""yes" 1>&6
1705 else
1706 echo "$ac_t""no" 1>&6
1707 fi
1708
1709
b12915c1
VZ
1710fi
1711
1712
1713 echo $ac_n "checking "for --with-dmalloc"""... $ac_c" 1>&6
1714echo "configure:1715: checking "for --with-dmalloc"" >&5
c7a2bf27 1715 no_cache=0
b12915c1
VZ
1716 # Check whether --with-dmalloc or --without-dmalloc was given.
1717if test "${with_dmalloc+set}" = set; then
1718 withval="$with_dmalloc"
c7a2bf27
RR
1719
1720 if test "$withval" = yes; then
b12915c1 1721 ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
c7a2bf27 1722 else
b12915c1 1723 ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
c7a2bf27
RR
1724 fi
1725
1726else
1727
b12915c1 1728 LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
c7a2bf27
RR
1729 if test "x$LINE" != x ; then
1730 eval "DEFAULT_$LINE"
1731 else
1732 no_cache=1
1733 fi
1734
b12915c1 1735 ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
c7a2bf27
RR
1736
1737fi
1738
1739
b12915c1 1740 eval "$ac_cv_use_dmalloc"
c7a2bf27 1741 if test "$no_cache" != 1; then
b12915c1 1742 echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
c7a2bf27
RR
1743 fi
1744
b12915c1 1745 if test "$wxUSE_DMALLOC" = yes; then
c7a2bf27
RR
1746 echo "$ac_t""yes" 1>&6
1747 else
1748 echo "$ac_t""no" 1>&6
1749 fi
1750
1751
b12915c1
VZ
1752 echo $ac_n "checking "for --with-zlib"""... $ac_c" 1>&6
1753echo "configure:1754: checking "for --with-zlib"" >&5
10f2d63a 1754 no_cache=0
b12915c1
VZ
1755 # Check whether --with-zlib or --without-zlib was given.
1756if test "${with_zlib+set}" = set; then
1757 withval="$with_zlib"
10f2d63a
VZ
1758
1759 if test "$withval" = yes; then
b12915c1 1760 ac_cv_use_zlib='wxUSE_ZLIB=yes'
10f2d63a 1761 else
b12915c1 1762 ac_cv_use_zlib='wxUSE_ZLIB=no'
10f2d63a
VZ
1763 fi
1764
1765else
1766
b12915c1 1767 LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
10f2d63a
VZ
1768 if test "x$LINE" != x ; then
1769 eval "DEFAULT_$LINE"
1770 else
1771 no_cache=1
1772 fi
1773
b12915c1 1774 ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
10f2d63a
VZ
1775
1776fi
1777
1778
b12915c1 1779 eval "$ac_cv_use_zlib"
10f2d63a 1780 if test "$no_cache" != 1; then
b12915c1 1781 echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
1782 fi
1783
b12915c1 1784 if test "$wxUSE_ZLIB" = yes; then
10f2d63a
VZ
1785 echo "$ac_t""yes" 1>&6
1786 else
1787 echo "$ac_t""no" 1>&6
1788 fi
1789
1790
1791 echo $ac_n "checking "for --with-odbc"""... $ac_c" 1>&6
b12915c1 1792echo "configure:1793: checking "for --with-odbc"" >&5
10f2d63a
VZ
1793 no_cache=0
1794 # Check whether --with-odbc or --without-odbc was given.
1795if test "${with_odbc+set}" = set; then
1796 withval="$with_odbc"
1797
1798 if test "$withval" = yes; then
1799 ac_cv_use_odbc='wxUSE_ODBC=yes'
1800 else
1801 ac_cv_use_odbc='wxUSE_ODBC=no'
1802 fi
1803
1804else
1805
1806 LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
1807 if test "x$LINE" != x ; then
1808 eval "DEFAULT_$LINE"
1809 else
1810 no_cache=1
1811 fi
1812
1813 ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
1814
1815fi
1816
1817
1818 eval "$ac_cv_use_odbc"
1819 if test "$no_cache" != 1; then
1820 echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
1821 fi
1822
1823 if test "$wxUSE_ODBC" = yes; then
1824 echo "$ac_t""yes" 1>&6
1825 else
1826 echo "$ac_t""no" 1>&6
1827 fi
1828
1829
1830
1831
1832
1833 echo $ac_n "checking "for --enable-shared"""... $ac_c" 1>&6
b12915c1 1834echo "configure:1835: checking "for --enable-shared"" >&5
10f2d63a
VZ
1835 no_cache=0
1836 # Check whether --enable-shared or --disable-shared was given.
1837if test "${enable_shared+set}" = set; then
1838 enableval="$enable_shared"
1839
1840 if test "$enableval" = yes; then
1841 ac_cv_use_shared='wxUSE_SHARED=yes'
1842 else
1843 ac_cv_use_shared='wxUSE_SHARED=no'
1844 fi
1845
1846else
1847
1848 LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
1849 if test "x$LINE" != x ; then
1850 eval "DEFAULT_$LINE"
1851 else
1852 no_cache=1
1853 fi
1854
1855 ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
1856
1857fi
1858
1859
1860 eval "$ac_cv_use_shared"
1861 if test "$no_cache" != 1; then
1862 echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
1863 fi
1864
1865 if test "$wxUSE_SHARED" = yes; then
1866 echo "$ac_t""yes" 1>&6
1867 else
1868 echo "$ac_t""no" 1>&6
1869 fi
1870
1871
1872 echo $ac_n "checking "for --enable-optimise"""... $ac_c" 1>&6
b12915c1 1873echo "configure:1874: checking "for --enable-optimise"" >&5
10f2d63a
VZ
1874 no_cache=0
1875 # Check whether --enable-optimise or --disable-optimise was given.
1876if test "${enable_optimise+set}" = set; then
1877 enableval="$enable_optimise"
1878
1879 if test "$enableval" = yes; then
1880 ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
1881 else
1882 ac_cv_use_optimise='wxUSE_OPTIMISE=no'
1883 fi
1884
1885else
1886
1887 LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
1888 if test "x$LINE" != x ; then
1889 eval "DEFAULT_$LINE"
1890 else
1891 no_cache=1
1892 fi
1893
1894 ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
1895
1896fi
1897
1898
1899 eval "$ac_cv_use_optimise"
1900 if test "$no_cache" != 1; then
1901 echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
1902 fi
1903
1904 if test "$wxUSE_OPTIMISE" = yes; then
1905 echo "$ac_t""yes" 1>&6
1906 else
1907 echo "$ac_t""no" 1>&6
1908 fi
1909
1910
1911 echo $ac_n "checking "for --enable-debug"""... $ac_c" 1>&6
b12915c1 1912echo "configure:1913: checking "for --enable-debug"" >&5
10f2d63a
VZ
1913 no_cache=0
1914 # Check whether --enable-debug or --disable-debug was given.
1915if test "${enable_debug+set}" = set; then
1916 enableval="$enable_debug"
1917
1918 if test "$enableval" = yes; then
1919 ac_cv_use_debug='wxUSE_DEBUG=yes'
1920 else
1921 ac_cv_use_debug='wxUSE_DEBUG=no'
1922 fi
1923
1924else
1925
1926 LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
1927 if test "x$LINE" != x ; then
1928 eval "DEFAULT_$LINE"
1929 else
1930 no_cache=1
1931 fi
1932
1933 ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
1934
1935fi
1936
1937
1938 eval "$ac_cv_use_debug"
1939 if test "$no_cache" != 1; then
1940 echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
1941 fi
1942
1943 if test "$wxUSE_DEBUG" = yes; then
1944 echo "$ac_t""yes" 1>&6
1945 else
1946 echo "$ac_t""no" 1>&6
1947 fi
1948
1949
1950if test "$wxUSE_DEBUG" = "yes"; then
1951 DEFAULT_wxUSE_DEBUG_FLAG=yes
1952 DEFAULT_wxUSE_DEBUG_INFO=yes
1953elif test "$wxUSE_DEBUG" = "no"; then
1954 DEFAULT_wxUSE_DEBUG_FLAG=no
1955 DEFAULT_wxUSE_DEBUG_INFO=no
1956fi
1957
1958
1959 echo $ac_n "checking "for --enable-debug_flag"""... $ac_c" 1>&6
b12915c1 1960echo "configure:1961: checking "for --enable-debug_flag"" >&5
10f2d63a
VZ
1961 no_cache=0
1962 # Check whether --enable-debug_flag or --disable-debug_flag was given.
1963if test "${enable_debug_flag+set}" = set; then
1964 enableval="$enable_debug_flag"
1965
1966 if test "$enableval" = yes; then
1967 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
1968 else
1969 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
1970 fi
1971
1972else
1973
1974 LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
1975 if test "x$LINE" != x ; then
1976 eval "DEFAULT_$LINE"
1977 else
1978 no_cache=1
1979 fi
1980
1981 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
1982
1983fi
1984
1985
1986 eval "$ac_cv_use_debug_flag"
1987 if test "$no_cache" != 1; then
1988 echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
1989 fi
1990
1991 if test "$wxUSE_DEBUG_FLAG" = yes; then
1992 echo "$ac_t""yes" 1>&6
1993 else
1994 echo "$ac_t""no" 1>&6
1995 fi
1996
1997
1998 echo $ac_n "checking "for --enable-debug_info"""... $ac_c" 1>&6
b12915c1 1999echo "configure:2000: checking "for --enable-debug_info"" >&5
10f2d63a
VZ
2000 no_cache=0
2001 # Check whether --enable-debug_info or --disable-debug_info was given.
2002if test "${enable_debug_info+set}" = set; then
2003 enableval="$enable_debug_info"
2004
2005 if test "$enableval" = yes; then
2006 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
2007 else
2008 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
2009 fi
2010
2011else
2012
2013 LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
2014 if test "x$LINE" != x ; then
2015 eval "DEFAULT_$LINE"
2016 else
2017 no_cache=1
2018 fi
2019
2020 ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
2021
2022fi
2023
2024
2025 eval "$ac_cv_use_debug_info"
2026 if test "$no_cache" != 1; then
2027 echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
2028 fi
2029
2030 if test "$wxUSE_DEBUG_INFO" = yes; then
2031 echo "$ac_t""yes" 1>&6
2032 else
2033 echo "$ac_t""no" 1>&6
2034 fi
2035
2036
2037 echo $ac_n "checking "for --enable-debug_gdb"""... $ac_c" 1>&6
b12915c1 2038echo "configure:2039: checking "for --enable-debug_gdb"" >&5
10f2d63a
VZ
2039 no_cache=0
2040 # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
2041if test "${enable_debug_gdb+set}" = set; then
2042 enableval="$enable_debug_gdb"
2043
2044 if test "$enableval" = yes; then
2045 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
2046 else
2047 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
2048 fi
2049
2050else
2051
2052 LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
2053 if test "x$LINE" != x ; then
2054 eval "DEFAULT_$LINE"
2055 else
2056 no_cache=1
2057 fi
2058
2059 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
2060
2061fi
2062
2063
2064 eval "$ac_cv_use_debug_gdb"
2065 if test "$no_cache" != 1; then
2066 echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
2067 fi
2068
2069 if test "$wxUSE_DEBUG_GDB" = yes; then
2070 echo "$ac_t""yes" 1>&6
2071 else
2072 echo "$ac_t""no" 1>&6
2073 fi
2074
2075
2076 echo $ac_n "checking "for --enable-debug_cntxt"""... $ac_c" 1>&6
b12915c1 2077echo "configure:2078: checking "for --enable-debug_cntxt"" >&5
10f2d63a
VZ
2078 no_cache=0
2079 # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
2080if test "${enable_debug_cntxt+set}" = set; then
2081 enableval="$enable_debug_cntxt"
2082
2083 if test "$enableval" = yes; then
2084 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
2085 else
2086 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
2087 fi
2088
2089else
2090
2091 LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
2092 if test "x$LINE" != x ; then
2093 eval "DEFAULT_$LINE"
2094 else
2095 no_cache=1
2096 fi
2097
2098 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
2099
2100fi
2101
2102
2103 eval "$ac_cv_use_debug_cntxt"
2104 if test "$no_cache" != 1; then
2105 echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
2106 fi
2107
2108 if test "$wxUSE_DEBUG_CONTEXT" = yes; then
2109 echo "$ac_t""yes" 1>&6
2110 else
2111 echo "$ac_t""no" 1>&6
2112 fi
2113
2114
2115 echo $ac_n "checking "for --enable-mem_tracing"""... $ac_c" 1>&6
b12915c1 2116echo "configure:2117: checking "for --enable-mem_tracing"" >&5
10f2d63a
VZ
2117 no_cache=0
2118 # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
2119if test "${enable_mem_tracing+set}" = set; then
2120 enableval="$enable_mem_tracing"
2121
2122 if test "$enableval" = yes; then
2123 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
2124 else
2125 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
2126 fi
2127
2128else
2129
2130 LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
2131 if test "x$LINE" != x ; then
2132 eval "DEFAULT_$LINE"
2133 else
2134 no_cache=1
2135 fi
2136
2137 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
2138
2139fi
2140
2141
2142 eval "$ac_cv_use_mem_tracing"
2143 if test "$no_cache" != 1; then
2144 echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
2145 fi
2146
2147 if test "$wxUSE_MEM_TRACING" = yes; then
2148 echo "$ac_t""yes" 1>&6
2149 else
2150 echo "$ac_t""no" 1>&6
2151 fi
2152
2153
2154 echo $ac_n "checking "for --enable-profile"""... $ac_c" 1>&6
b12915c1 2155echo "configure:2156: checking "for --enable-profile"" >&5
10f2d63a
VZ
2156 no_cache=0
2157 # Check whether --enable-profile or --disable-profile was given.
2158if test "${enable_profile+set}" = set; then
2159 enableval="$enable_profile"
2160
2161 if test "$enableval" = yes; then
2162 ac_cv_use_profile='wxUSE_PROFILE=yes'
2163 else
2164 ac_cv_use_profile='wxUSE_PROFILE=no'
2165 fi
2166
2167else
2168
2169 LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
2170 if test "x$LINE" != x ; then
2171 eval "DEFAULT_$LINE"
2172 else
2173 no_cache=1
2174 fi
2175
2176 ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
2177
2178fi
2179
2180
2181 eval "$ac_cv_use_profile"
2182 if test "$no_cache" != 1; then
2183 echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
2184 fi
2185
2186 if test "$wxUSE_PROFILE" = yes; then
2187 echo "$ac_t""yes" 1>&6
2188 else
2189 echo "$ac_t""no" 1>&6
2190 fi
2191
2192
2193 echo $ac_n "checking "for --enable-no_rtti"""... $ac_c" 1>&6
b12915c1 2194echo "configure:2195: checking "for --enable-no_rtti"" >&5
10f2d63a
VZ
2195 no_cache=0
2196 # Check whether --enable-no_rtti or --disable-no_rtti was given.
2197if test "${enable_no_rtti+set}" = set; then
2198 enableval="$enable_no_rtti"
2199
2200 if test "$enableval" = yes; then
2201 ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
2202 else
2203 ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
2204 fi
2205
2206else
2207
2208 LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
2209 if test "x$LINE" != x ; then
2210 eval "DEFAULT_$LINE"
2211 else
2212 no_cache=1
2213 fi
2214
2215 ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
2216
2217fi
2218
2219
2220 eval "$ac_cv_use_no_rtti"
2221 if test "$no_cache" != 1; then
2222 echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
2223 fi
2224
2225 if test "$wxUSE_NO_RTTI" = yes; then
2226 echo "$ac_t""yes" 1>&6
2227 else
2228 echo "$ac_t""no" 1>&6
2229 fi
2230
2231
2232 echo $ac_n "checking "for --enable-no_exceptions"""... $ac_c" 1>&6
b12915c1 2233echo "configure:2234: checking "for --enable-no_exceptions"" >&5
10f2d63a
VZ
2234 no_cache=0
2235 # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
2236if test "${enable_no_exceptions+set}" = set; then
2237 enableval="$enable_no_exceptions"
2238
2239 if test "$enableval" = yes; then
2240 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
2241 else
2242 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
2243 fi
2244
2245else
2246
2247 LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
2248 if test "x$LINE" != x ; then
2249 eval "DEFAULT_$LINE"
2250 else
2251 no_cache=1
2252 fi
2253
2254 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
2255
2256fi
2257
2258
2259 eval "$ac_cv_use_no_exceptions"
2260 if test "$no_cache" != 1; then
2261 echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
2262 fi
2263
2264 if test "$wxUSE_NO_EXCEPTIONS" = yes; then
2265 echo "$ac_t""yes" 1>&6
2266 else
2267 echo "$ac_t""no" 1>&6
2268 fi
2269
2270
2271 echo $ac_n "checking "for --enable-permissive"""... $ac_c" 1>&6
b12915c1 2272echo "configure:2273: checking "for --enable-permissive"" >&5
10f2d63a
VZ
2273 no_cache=0
2274 # Check whether --enable-permissive or --disable-permissive was given.
2275if test "${enable_permissive+set}" = set; then
2276 enableval="$enable_permissive"
2277
2278 if test "$enableval" = yes; then
2279 ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
2280 else
2281 ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
2282 fi
2283
2284else
2285
2286 LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
2287 if test "x$LINE" != x ; then
2288 eval "DEFAULT_$LINE"
2289 else
2290 no_cache=1
2291 fi
2292
2293 ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
2294
2295fi
2296
2297
2298 eval "$ac_cv_use_permissive"
2299 if test "$no_cache" != 1; then
2300 echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
2301 fi
2302
2303 if test "$wxUSE_PERMISSIVE" = yes; then
2304 echo "$ac_t""yes" 1>&6
2305 else
2306 echo "$ac_t""no" 1>&6
2307 fi
2308
2309
2310 echo $ac_n "checking "for --enable-no_deps"""... $ac_c" 1>&6
b12915c1 2311echo "configure:2312: checking "for --enable-no_deps"" >&5
10f2d63a
VZ
2312 no_cache=0
2313 # Check whether --enable-no_deps or --disable-no_deps was given.
2314if test "${enable_no_deps+set}" = set; then
2315 enableval="$enable_no_deps"
2316
2317 if test "$enableval" = yes; then
2318 ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
2319 else
2320 ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
2321 fi
2322
2323else
2324
2325 LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
2326 if test "x$LINE" != x ; then
2327 eval "DEFAULT_$LINE"
2328 else
2329 no_cache=1
2330 fi
2331
2332 ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
2333
2334fi
2335
2336
2337 eval "$ac_cv_use_no_deps"
2338 if test "$no_cache" != 1; then
2339 echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
2340 fi
2341
2342 if test "$wxUSE_NO_DEPS" = yes; then
2343 echo "$ac_t""yes" 1>&6
2344 else
2345 echo "$ac_t""no" 1>&6
2346 fi
2347
2348
2349
2350
2351 echo $ac_n "checking "for --enable-intl"""... $ac_c" 1>&6
b12915c1 2352echo "configure:2353: checking "for --enable-intl"" >&5
10f2d63a
VZ
2353 no_cache=0
2354 # Check whether --enable-intl or --disable-intl was given.
2355if test "${enable_intl+set}" = set; then
2356 enableval="$enable_intl"
2357
2358 if test "$enableval" = yes; then
2359 ac_cv_use_intl='wxUSE_INTL=yes'
2360 else
2361 ac_cv_use_intl='wxUSE_INTL=no'
2362 fi
2363
2364else
2365
2366 LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
2367 if test "x$LINE" != x ; then
2368 eval "DEFAULT_$LINE"
2369 else
2370 no_cache=1
2371 fi
2372
2373 ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
2374
2375fi
2376
2377
2378 eval "$ac_cv_use_intl"
2379 if test "$no_cache" != 1; then
2380 echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
2381 fi
2382
2383 if test "$wxUSE_INTL" = yes; then
2384 echo "$ac_t""yes" 1>&6
2385 else
2386 echo "$ac_t""no" 1>&6
2387 fi
2388
2389
2390 echo $ac_n "checking "for --enable-config"""... $ac_c" 1>&6
b12915c1 2391echo "configure:2392: checking "for --enable-config"" >&5
10f2d63a
VZ
2392 no_cache=0
2393 # Check whether --enable-config or --disable-config was given.
2394if test "${enable_config+set}" = set; then
2395 enableval="$enable_config"
2396
2397 if test "$enableval" = yes; then
2398 ac_cv_use_config='wxUSE_CONFIG=yes'
2399 else
2400 ac_cv_use_config='wxUSE_CONFIG=no'
2401 fi
2402
2403else
2404
2405 LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
2406 if test "x$LINE" != x ; then
2407 eval "DEFAULT_$LINE"
2408 else
2409 no_cache=1
2410 fi
2411
2412 ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
2413
2414fi
2415
2416
2417 eval "$ac_cv_use_config"
2418 if test "$no_cache" != 1; then
2419 echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
2420 fi
2421
2422 if test "$wxUSE_CONFIG" = yes; then
2423 echo "$ac_t""yes" 1>&6
2424 else
2425 echo "$ac_t""no" 1>&6
2426 fi
2427
2428
b12915c1
VZ
2429if test "$wxUSE_GUI" = "yes"; then
2430
10f2d63a 2431 echo $ac_n "checking "for --enable-sockets"""... $ac_c" 1>&6
b12915c1 2432echo "configure:2433: checking "for --enable-sockets"" >&5
10f2d63a
VZ
2433 no_cache=0
2434 # Check whether --enable-sockets or --disable-sockets was given.
2435if test "${enable_sockets+set}" = set; then
2436 enableval="$enable_sockets"
2437
2438 if test "$enableval" = yes; then
2439 ac_cv_use_sockets='wxUSE_SOCKETS=yes'
2440 else
2441 ac_cv_use_sockets='wxUSE_SOCKETS=no'
2442 fi
2443
2444else
2445
2446 LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
2447 if test "x$LINE" != x ; then
2448 eval "DEFAULT_$LINE"
2449 else
2450 no_cache=1
2451 fi
2452
2453 ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
2454
2455fi
2456
2457
2458 eval "$ac_cv_use_sockets"
2459 if test "$no_cache" != 1; then
2460 echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
2461 fi
2462
2463 if test "$wxUSE_SOCKETS" = yes; then
2464 echo "$ac_t""yes" 1>&6
2465 else
2466 echo "$ac_t""no" 1>&6
2467 fi
2468
b12915c1
VZ
2469else
2470wxUSE_SOCKETS=no
2471fi
2472
10f2d63a
VZ
2473
2474 echo $ac_n "checking "for --enable-dialupman"""... $ac_c" 1>&6
b12915c1 2475echo "configure:2476: checking "for --enable-dialupman"" >&5
10f2d63a
VZ
2476 no_cache=0
2477 # Check whether --enable-dialupman or --disable-dialupman was given.
2478if test "${enable_dialupman+set}" = set; then
2479 enableval="$enable_dialupman"
2480
2481 if test "$enableval" = yes; then
2482 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
2483 else
2484 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
2485 fi
2486
2487else
2488
2489 LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
2490 if test "x$LINE" != x ; then
2491 eval "DEFAULT_$LINE"
2492 else
2493 no_cache=1
2494 fi
2495
2496 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
2497
2498fi
2499
2500
2501 eval "$ac_cv_use_dialupman"
2502 if test "$no_cache" != 1; then
2503 echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
2504 fi
2505
2506 if test "$wxUSE_DIALUP_MANAGER" = yes; then
2507 echo "$ac_t""yes" 1>&6
2508 else
2509 echo "$ac_t""no" 1>&6
2510 fi
2511
2512
2513 echo $ac_n "checking "for --enable-ipc"""... $ac_c" 1>&6
b12915c1 2514echo "configure:2515: checking "for --enable-ipc"" >&5
10f2d63a
VZ
2515 no_cache=0
2516 # Check whether --enable-ipc or --disable-ipc was given.
2517if test "${enable_ipc+set}" = set; then
2518 enableval="$enable_ipc"
2519
2520 if test "$enableval" = yes; then
2521 ac_cv_use_ipc='wxUSE_IPC=yes'
2522 else
2523 ac_cv_use_ipc='wxUSE_IPC=no'
2524 fi
2525
2526else
2527
2528 LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
2529 if test "x$LINE" != x ; then
2530 eval "DEFAULT_$LINE"
2531 else
2532 no_cache=1
2533 fi
2534
2535 ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
2536
2537fi
2538
2539
2540 eval "$ac_cv_use_ipc"
2541 if test "$no_cache" != 1; then
2542 echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
2543 fi
2544
2545 if test "$wxUSE_IPC" = yes; then
2546 echo "$ac_t""yes" 1>&6
2547 else
2548 echo "$ac_t""no" 1>&6
2549 fi
2550
2551
2552 echo $ac_n "checking "for --enable-apple_ieee"""... $ac_c" 1>&6
b12915c1 2553echo "configure:2554: checking "for --enable-apple_ieee"" >&5
10f2d63a
VZ
2554 no_cache=0
2555 # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
2556if test "${enable_apple_ieee+set}" = set; then
2557 enableval="$enable_apple_ieee"
2558
2559 if test "$enableval" = yes; then
2560 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
2561 else
2562 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
2563 fi
2564
2565else
2566
2567 LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
2568 if test "x$LINE" != x ; then
2569 eval "DEFAULT_$LINE"
2570 else
2571 no_cache=1
2572 fi
2573
2574 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
2575
2576fi
2577
2578
2579 eval "$ac_cv_use_apple_ieee"
2580 if test "$no_cache" != 1; then
2581 echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
2582 fi
2583
2584 if test "$wxUSE_APPLE_IEEE" = yes; then
2585 echo "$ac_t""yes" 1>&6
2586 else
2587 echo "$ac_t""no" 1>&6
2588 fi
2589
2590
2591 echo $ac_n "checking "for --enable-timedate"""... $ac_c" 1>&6
b12915c1 2592echo "configure:2593: checking "for --enable-timedate"" >&5
10f2d63a
VZ
2593 no_cache=0
2594 # Check whether --enable-timedate or --disable-timedate was given.
2595if test "${enable_timedate+set}" = set; then
2596 enableval="$enable_timedate"
2597
2598 if test "$enableval" = yes; then
2599 ac_cv_use_timedate='wxUSE_TIMEDATE=yes'
2600 else
2601 ac_cv_use_timedate='wxUSE_TIMEDATE=no'
2602 fi
2603
2604else
2605
2606 LINE=`grep "wxUSE_TIMEDATE" ${wx_arg_cache_file}`
2607 if test "x$LINE" != x ; then
2608 eval "DEFAULT_$LINE"
2609 else
2610 no_cache=1
2611 fi
2612
2613 ac_cv_use_timedate='wxUSE_TIMEDATE='$DEFAULT_wxUSE_TIMEDATE
2614
2615fi
2616
2617
2618 eval "$ac_cv_use_timedate"
2619 if test "$no_cache" != 1; then
2620 echo $ac_cv_use_timedate >> ${wx_arg_cache_file}.tmp
2621 fi
2622
2623 if test "$wxUSE_TIMEDATE" = yes; then
2624 echo "$ac_t""yes" 1>&6
2625 else
2626 echo "$ac_t""no" 1>&6
2627 fi
2628
2629
2630 echo $ac_n "checking "for --enable-wave"""... $ac_c" 1>&6
b12915c1 2631echo "configure:2632: checking "for --enable-wave"" >&5
10f2d63a
VZ
2632 no_cache=0
2633 # Check whether --enable-wave or --disable-wave was given.
2634if test "${enable_wave+set}" = set; then
2635 enableval="$enable_wave"
2636
2637 if test "$enableval" = yes; then
2638 ac_cv_use_wave='wxUSE_WAVE=yes'
2639 else
2640 ac_cv_use_wave='wxUSE_WAVE=no'
2641 fi
2642
2643else
2644
2645 LINE=`grep "wxUSE_WAVE" ${wx_arg_cache_file}`
2646 if test "x$LINE" != x ; then
2647 eval "DEFAULT_$LINE"
2648 else
2649 no_cache=1
2650 fi
2651
2652 ac_cv_use_wave='wxUSE_WAVE='$DEFAULT_wxUSE_WAVE
2653
2654fi
2655
2656
2657 eval "$ac_cv_use_wave"
2658 if test "$no_cache" != 1; then
2659 echo $ac_cv_use_wave >> ${wx_arg_cache_file}.tmp
2660 fi
2661
2662 if test "$wxUSE_WAVE" = yes; then
2663 echo "$ac_t""yes" 1>&6
2664 else
2665 echo "$ac_t""no" 1>&6
2666 fi
2667
2668
2669 echo $ac_n "checking "for --enable-fraction"""... $ac_c" 1>&6
b12915c1 2670echo "configure:2671: checking "for --enable-fraction"" >&5
10f2d63a
VZ
2671 no_cache=0
2672 # Check whether --enable-fraction or --disable-fraction was given.
2673if test "${enable_fraction+set}" = set; then
2674 enableval="$enable_fraction"
2675
2676 if test "$enableval" = yes; then
2677 ac_cv_use_fraction='wxUSE_FRACTION=yes'
2678 else
2679 ac_cv_use_fraction='wxUSE_FRACTION=no'
2680 fi
2681
2682else
2683
2684 LINE=`grep "wxUSE_FRACTION" ${wx_arg_cache_file}`
2685 if test "x$LINE" != x ; then
2686 eval "DEFAULT_$LINE"
2687 else
2688 no_cache=1
2689 fi
2690
2691 ac_cv_use_fraction='wxUSE_FRACTION='$DEFAULT_wxUSE_FRACTION
2692
2693fi
2694
2695
2696 eval "$ac_cv_use_fraction"
2697 if test "$no_cache" != 1; then
2698 echo $ac_cv_use_fraction >> ${wx_arg_cache_file}.tmp
2699 fi
2700
2701 if test "$wxUSE_FRACTION" = yes; then
2702 echo "$ac_t""yes" 1>&6
2703 else
2704 echo "$ac_t""no" 1>&6
2705 fi
2706
2707
2708 echo $ac_n "checking "for --enable-dynlib"""... $ac_c" 1>&6
b12915c1 2709echo "configure:2710: checking "for --enable-dynlib"" >&5
10f2d63a
VZ
2710 no_cache=0
2711 # Check whether --enable-dynlib or --disable-dynlib was given.
2712if test "${enable_dynlib+set}" = set; then
2713 enableval="$enable_dynlib"
2714
2715 if test "$enableval" = yes; then
2716 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
2717 else
2718 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
2719 fi
2720
2721else
2722
2723 LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
2724 if test "x$LINE" != x ; then
2725 eval "DEFAULT_$LINE"
2726 else
2727 no_cache=1
2728 fi
2729
2730 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
2731
2732fi
2733
2734
2735 eval "$ac_cv_use_dynlib"
2736 if test "$no_cache" != 1; then
2737 echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
2738 fi
2739
2740 if test "$wxUSE_DYNLIB_CLASS" = yes; then
2741 echo "$ac_t""yes" 1>&6
2742 else
2743 echo "$ac_t""no" 1>&6
2744 fi
2745
2746
2747 echo $ac_n "checking "for --enable-longlong"""... $ac_c" 1>&6
b12915c1 2748echo "configure:2749: checking "for --enable-longlong"" >&5
10f2d63a
VZ
2749 no_cache=0
2750 # Check whether --enable-longlong or --disable-longlong was given.
2751if test "${enable_longlong+set}" = set; then
2752 enableval="$enable_longlong"
2753
2754 if test "$enableval" = yes; then
2755 ac_cv_use_longlong='wxUSE_LONGLONG=yes'
2756 else
2757 ac_cv_use_longlong='wxUSE_LONGLONG=no'
2758 fi
2759
2760else
2761
2762 LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
2763 if test "x$LINE" != x ; then
2764 eval "DEFAULT_$LINE"
2765 else
2766 no_cache=1
2767 fi
2768
2769 ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
2770
2771fi
2772
2773
2774 eval "$ac_cv_use_longlong"
2775 if test "$no_cache" != 1; then
2776 echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
2777 fi
2778
2779 if test "$wxUSE_LONGLONG" = yes; then
2780 echo "$ac_t""yes" 1>&6
2781 else
2782 echo "$ac_t""no" 1>&6
2783 fi
2784
2785
2786 echo $ac_n "checking "for --enable-log"""... $ac_c" 1>&6
b12915c1 2787echo "configure:2788: checking "for --enable-log"" >&5
10f2d63a
VZ
2788 no_cache=0
2789 # Check whether --enable-log or --disable-log was given.
2790if test "${enable_log+set}" = set; then
2791 enableval="$enable_log"
2792
2793 if test "$enableval" = yes; then
2794 ac_cv_use_log='wxUSE_LOG=yes'
2795 else
2796 ac_cv_use_log='wxUSE_LOG=no'
2797 fi
2798
2799else
2800
2801 LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
2802 if test "x$LINE" != x ; then
2803 eval "DEFAULT_$LINE"
2804 else
2805 no_cache=1
2806 fi
2807
2808 ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
2809
2810fi
2811
2812
2813 eval "$ac_cv_use_log"
2814 if test "$no_cache" != 1; then
2815 echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
2816 fi
2817
2818 if test "$wxUSE_LOG" = yes; then
2819 echo "$ac_t""yes" 1>&6
2820 else
2821 echo "$ac_t""no" 1>&6
2822 fi
2823
2824
2825 echo $ac_n "checking "for --enable-streams"""... $ac_c" 1>&6
b12915c1 2826echo "configure:2827: checking "for --enable-streams"" >&5
10f2d63a
VZ
2827 no_cache=0
2828 # Check whether --enable-streams or --disable-streams was given.
2829if test "${enable_streams+set}" = set; then
2830 enableval="$enable_streams"
2831
2832 if test "$enableval" = yes; then
2833 ac_cv_use_streams='wxUSE_STREAMS=yes'
2834 else
2835 ac_cv_use_streams='wxUSE_STREAMS=no'
2836 fi
2837
2838else
2839
2840 LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
2841 if test "x$LINE" != x ; then
2842 eval "DEFAULT_$LINE"
2843 else
2844 no_cache=1
2845 fi
2846
2847 ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
2848
2849fi
2850
2851
2852 eval "$ac_cv_use_streams"
2853 if test "$no_cache" != 1; then
2854 echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
2855 fi
2856
2857 if test "$wxUSE_STREAMS" = yes; then
2858 echo "$ac_t""yes" 1>&6
2859 else
2860 echo "$ac_t""no" 1>&6
2861 fi
2862
2863
2864 echo $ac_n "checking "for --enable-file"""... $ac_c" 1>&6
b12915c1 2865echo "configure:2866: checking "for --enable-file"" >&5
10f2d63a
VZ
2866 no_cache=0
2867 # Check whether --enable-file or --disable-file was given.
2868if test "${enable_file+set}" = set; then
2869 enableval="$enable_file"
2870
2871 if test "$enableval" = yes; then
2872 ac_cv_use_file='wxUSE_FILE=yes'
2873 else
2874 ac_cv_use_file='wxUSE_FILE=no'
2875 fi
2876
2877else
2878
2879 LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
2880 if test "x$LINE" != x ; then
2881 eval "DEFAULT_$LINE"
2882 else
2883 no_cache=1
2884 fi
2885
2886 ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
2887
2888fi
2889
2890
2891 eval "$ac_cv_use_file"
2892 if test "$no_cache" != 1; then
2893 echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
2894 fi
2895
2896 if test "$wxUSE_FILE" = yes; then
2897 echo "$ac_t""yes" 1>&6
2898 else
2899 echo "$ac_t""no" 1>&6
2900 fi
2901
2902
2903 echo $ac_n "checking "for --enable-textfile"""... $ac_c" 1>&6
b12915c1 2904echo "configure:2905: checking "for --enable-textfile"" >&5
10f2d63a
VZ
2905 no_cache=0
2906 # Check whether --enable-textfile or --disable-textfile was given.
2907if test "${enable_textfile+set}" = set; then
2908 enableval="$enable_textfile"
2909
2910 if test "$enableval" = yes; then
2911 ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
2912 else
2913 ac_cv_use_textfile='wxUSE_TEXTFILE=no'
2914 fi
2915
2916else
2917
2918 LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
2919 if test "x$LINE" != x ; then
2920 eval "DEFAULT_$LINE"
2921 else
2922 no_cache=1
2923 fi
2924
2925 ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
2926
2927fi
2928
2929
2930 eval "$ac_cv_use_textfile"
2931 if test "$no_cache" != 1; then
2932 echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
2933 fi
2934
2935 if test "$wxUSE_TEXTFILE" = yes; then
2936 echo "$ac_t""yes" 1>&6
2937 else
2938 echo "$ac_t""no" 1>&6
2939 fi
2940
2941
2942 echo $ac_n "checking "for --enable-unicode"""... $ac_c" 1>&6
b12915c1 2943echo "configure:2944: checking "for --enable-unicode"" >&5
10f2d63a
VZ
2944 no_cache=0
2945 # Check whether --enable-unicode or --disable-unicode was given.
2946if test "${enable_unicode+set}" = set; then
2947 enableval="$enable_unicode"
2948
2949 if test "$enableval" = yes; then
2950 ac_cv_use_unicode='wxUSE_UNICODE=yes'
2951 else
2952 ac_cv_use_unicode='wxUSE_UNICODE=no'
2953 fi
2954
2955else
2956
2957 LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
2958 if test "x$LINE" != x ; then
2959 eval "DEFAULT_$LINE"
2960 else
2961 no_cache=1
2962 fi
2963
2964 ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
2965
2966fi
2967
2968
2969 eval "$ac_cv_use_unicode"
2970 if test "$no_cache" != 1; then
2971 echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
2972 fi
2973
2974 if test "$wxUSE_UNICODE" = yes; then
2975 echo "$ac_t""yes" 1>&6
2976 else
2977 echo "$ac_t""no" 1>&6
2978 fi
2979
2980
2981 echo $ac_n "checking "for --enable-wcsrtombs"""... $ac_c" 1>&6
b12915c1 2982echo "configure:2983: checking "for --enable-wcsrtombs"" >&5
10f2d63a
VZ
2983 no_cache=0
2984 # Check whether --enable-wcsrtombs or --disable-wcsrtombs was given.
2985if test "${enable_wcsrtombs+set}" = set; then
2986 enableval="$enable_wcsrtombs"
2987
2988 if test "$enableval" = yes; then
2989 ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS=yes'
2990 else
2991 ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS=no'
2992 fi
2993
2994else
2995
2996 LINE=`grep "wxUSE_WCSRTOMBS" ${wx_arg_cache_file}`
2997 if test "x$LINE" != x ; then
2998 eval "DEFAULT_$LINE"
2999 else
3000 no_cache=1
3001 fi
3002
3003 ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS='$DEFAULT_wxUSE_WCSRTOMBS
3004
3005fi
3006
3007
3008 eval "$ac_cv_use_wcsrtombs"
3009 if test "$no_cache" != 1; then
3010 echo $ac_cv_use_wcsrtombs >> ${wx_arg_cache_file}.tmp
3011 fi
3012
3013 if test "$wxUSE_WCSRTOMBS" = yes; then
3014 echo "$ac_t""yes" 1>&6
3015 else
3016 echo "$ac_t""no" 1>&6
3017 fi
3018
3019
3020 echo $ac_n "checking "for --enable-wxprintfv"""... $ac_c" 1>&6
b12915c1 3021echo "configure:3022: checking "for --enable-wxprintfv"" >&5
10f2d63a
VZ
3022 no_cache=0
3023 # Check whether --enable-wxprintfv or --disable-wxprintfv was given.
3024if test "${enable_wxprintfv+set}" = set; then
3025 enableval="$enable_wxprintfv"
3026
3027 if test "$enableval" = yes; then
3028 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes'
3029 else
3030 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no'
3031 fi
3032
3033else
3034
3035 LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}`
3036 if test "x$LINE" != x ; then
3037 eval "DEFAULT_$LINE"
3038 else
3039 no_cache=1
3040 fi
3041
3042 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF
3043
3044fi
3045
3046
3047 eval "$ac_cv_use_wxprintfv"
3048 if test "$no_cache" != 1; then
3049 echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp
3050 fi
3051
3052 if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then
3053 echo "$ac_t""yes" 1>&6
3054 else
3055 echo "$ac_t""no" 1>&6
3056 fi
3057
3058
3059 echo $ac_n "checking "for --enable-joystick"""... $ac_c" 1>&6
b12915c1 3060echo "configure:3061: checking "for --enable-joystick"" >&5
10f2d63a
VZ
3061 no_cache=0
3062 # Check whether --enable-joystick or --disable-joystick was given.
3063if test "${enable_joystick+set}" = set; then
3064 enableval="$enable_joystick"
3065
3066 if test "$enableval" = yes; then
3067 ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
3068 else
3069 ac_cv_use_joystick='wxUSE_JOYSTICK=no'
3070 fi
3071
3072else
3073
3074 LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
3075 if test "x$LINE" != x ; then
3076 eval "DEFAULT_$LINE"
3077 else
3078 no_cache=1
3079 fi
3080
3081 ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
3082
3083fi
3084
3085
3086 eval "$ac_cv_use_joystick"
3087 if test "$no_cache" != 1; then
3088 echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
3089 fi
3090
3091 if test "$wxUSE_JOYSTICK" = yes; then
3092 echo "$ac_t""yes" 1>&6
3093 else
3094 echo "$ac_t""no" 1>&6
3095 fi
3096
3097
3098 echo $ac_n "checking "for --enable-std_iostreams"""... $ac_c" 1>&6
b12915c1 3099echo "configure:3100: checking "for --enable-std_iostreams"" >&5
10f2d63a
VZ
3100 no_cache=0
3101 # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
3102if test "${enable_std_iostreams+set}" = set; then
3103 enableval="$enable_std_iostreams"
3104
3105 if test "$enableval" = yes; then
3106 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
3107 else
3108 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
3109 fi
3110
3111else
3112
3113 LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
3114 if test "x$LINE" != x ; then
3115 eval "DEFAULT_$LINE"
3116 else
3117 no_cache=1
3118 fi
3119
3120 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
3121
3122fi
3123
3124
3125 eval "$ac_cv_use_std_iostreams"
3126 if test "$no_cache" != 1; then
3127 echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
3128 fi
3129
3130 if test "$wxUSE_STD_IOSTREAM" = yes; then
3131 echo "$ac_t""yes" 1>&6
3132 else
3133 echo "$ac_t""no" 1>&6
3134 fi
3135
3136
3137 echo $ac_n "checking "for --enable-fs_inet"""... $ac_c" 1>&6
b12915c1 3138echo "configure:3139: checking "for --enable-fs_inet"" >&5
10f2d63a
VZ
3139 no_cache=0
3140 # Check whether --enable-fs_inet or --disable-fs_inet was given.
3141if test "${enable_fs_inet+set}" = set; then
3142 enableval="$enable_fs_inet"
3143
3144 if test "$enableval" = yes; then
3145 ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
3146 else
3147 ac_cv_use_fs_inet='wxUSE_FS_INET=no'
3148 fi
3149
3150else
3151
3152 LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
3153 if test "x$LINE" != x ; then
3154 eval "DEFAULT_$LINE"
3155 else
3156 no_cache=1
3157 fi
3158
3159 ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
3160
3161fi
3162
3163
3164 eval "$ac_cv_use_fs_inet"
3165 if test "$no_cache" != 1; then
3166 echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
3167 fi
3168
3169 if test "$wxUSE_FS_INET" = yes; then
3170 echo "$ac_t""yes" 1>&6
3171 else
3172 echo "$ac_t""no" 1>&6
3173 fi
3174
3175
3176 echo $ac_n "checking "for --enable-fs_zip"""... $ac_c" 1>&6
b12915c1 3177echo "configure:3178: checking "for --enable-fs_zip"" >&5
10f2d63a
VZ
3178 no_cache=0
3179 # Check whether --enable-fs_zip or --disable-fs_zip was given.
3180if test "${enable_fs_zip+set}" = set; then
3181 enableval="$enable_fs_zip"
3182
3183 if test "$enableval" = yes; then
3184 ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
3185 else
3186 ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
3187 fi
3188
3189else
3190
3191 LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
3192 if test "x$LINE" != x ; then
3193 eval "DEFAULT_$LINE"
3194 else
3195 no_cache=1
3196 fi
3197
3198 ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
3199
3200fi
3201
3202
3203 eval "$ac_cv_use_fs_zip"
3204 if test "$no_cache" != 1; then
3205 echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
3206 fi
3207
3208 if test "$wxUSE_FS_ZIP" = yes; then
3209 echo "$ac_t""yes" 1>&6
3210 else
3211 echo "$ac_t""no" 1>&6
3212 fi
3213
3214
3215 echo $ac_n "checking "for --enable-zipstream"""... $ac_c" 1>&6
b12915c1 3216echo "configure:3217: checking "for --enable-zipstream"" >&5
10f2d63a
VZ
3217 no_cache=0
3218 # Check whether --enable-zipstream or --disable-zipstream was given.
3219if test "${enable_zipstream+set}" = set; then
3220 enableval="$enable_zipstream"
3221
3222 if test "$enableval" = yes; then
3223 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
3224 else
3225 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
3226 fi
3227
3228else
3229
3230 LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
3231 if test "x$LINE" != x ; then
3232 eval "DEFAULT_$LINE"
3233 else
3234 no_cache=1
3235 fi
3236
3237 ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
3238
3239fi
3240
3241
3242 eval "$ac_cv_use_zipstream"
3243 if test "$no_cache" != 1; then
3244 echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
3245 fi
3246
3247 if test "$wxUSE_ZIPSTREAM" = yes; then
3248 echo "$ac_t""yes" 1>&6
3249 else
3250 echo "$ac_t""no" 1>&6
3251 fi
3252
3253
3254
3255
3256 echo $ac_n "checking "for --enable-threads"""... $ac_c" 1>&6
b12915c1 3257echo "configure:3258: checking "for --enable-threads"" >&5
10f2d63a
VZ
3258 no_cache=0
3259 # Check whether --enable-threads or --disable-threads was given.
3260if test "${enable_threads+set}" = set; then
3261 enableval="$enable_threads"
3262
3263 if test "$enableval" = yes; then
3264 ac_cv_use_threads='wxUSE_THREADS=yes'
3265 else
3266 ac_cv_use_threads='wxUSE_THREADS=no'
3267 fi
3268
3269else
3270
3271 LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
3272 if test "x$LINE" != x ; then
3273 eval "DEFAULT_$LINE"
3274 else
3275 no_cache=1
3276 fi
3277
3278 ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
3279
3280fi
3281
3282
3283 eval "$ac_cv_use_threads"
3284 if test "$no_cache" != 1; then
3285 echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
3286 fi
3287
3288 if test "$wxUSE_THREADS" = yes; then
3289 echo "$ac_t""yes" 1>&6
3290 else
3291 echo "$ac_t""no" 1>&6
3292 fi
3293
3294
3295 echo $ac_n "checking "for --enable-serial"""... $ac_c" 1>&6
b12915c1 3296echo "configure:3297: checking "for --enable-serial"" >&5
10f2d63a
VZ
3297 no_cache=0
3298 # Check whether --enable-serial or --disable-serial was given.
3299if test "${enable_serial+set}" = set; then
3300 enableval="$enable_serial"
3301
3302 if test "$enableval" = yes; then
3303 ac_cv_use_serial='wxUSE_SERIAL=yes'
3304 else
3305 ac_cv_use_serial='wxUSE_SERIAL=no'
3306 fi
3307
3308else
3309
3310 LINE=`grep "wxUSE_SERIAL" ${wx_arg_cache_file}`
3311 if test "x$LINE" != x ; then
3312 eval "DEFAULT_$LINE"
3313 else
3314 no_cache=1
3315 fi
3316
3317 ac_cv_use_serial='wxUSE_SERIAL='$DEFAULT_wxUSE_SERIAL
3318
3319fi
3320
3321
3322 eval "$ac_cv_use_serial"
3323 if test "$no_cache" != 1; then
3324 echo $ac_cv_use_serial >> ${wx_arg_cache_file}.tmp
3325 fi
3326
3327 if test "$wxUSE_SERIAL" = yes; then
3328 echo "$ac_t""yes" 1>&6
3329 else
3330 echo "$ac_t""no" 1>&6
3331 fi
3332
3333
b12915c1
VZ
3334if test "$wxUSE_GUI" = "yes"; then
3335
10f2d63a
VZ
3336
3337
3338 echo $ac_n "checking "for --enable-docview"""... $ac_c" 1>&6
b12915c1 3339echo "configure:3340: checking "for --enable-docview"" >&5
10f2d63a
VZ
3340 no_cache=0
3341 # Check whether --enable-docview or --disable-docview was given.
3342if test "${enable_docview+set}" = set; then
3343 enableval="$enable_docview"
3344
3345 if test "$enableval" = yes; then
3346 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
3347 else
3348 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
3349 fi
3350
3351else
3352
3353 LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
3354 if test "x$LINE" != x ; then
3355 eval "DEFAULT_$LINE"
3356 else
3357 no_cache=1
3358 fi
3359
3360 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
3361
3362fi
3363
3364
3365 eval "$ac_cv_use_docview"
3366 if test "$no_cache" != 1; then
3367 echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
3368 fi
3369
3370 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
3371 echo "$ac_t""yes" 1>&6
3372 else
3373 echo "$ac_t""no" 1>&6
3374 fi
3375
3376
3377 echo $ac_n "checking "for --enable-help"""... $ac_c" 1>&6
b12915c1 3378echo "configure:3379: checking "for --enable-help"" >&5
10f2d63a
VZ
3379 no_cache=0
3380 # Check whether --enable-help or --disable-help was given.
3381if test "${enable_help+set}" = set; then
3382 enableval="$enable_help"
3383
3384 if test "$enableval" = yes; then
3385 ac_cv_use_help='wxUSE_HELP=yes'
3386 else
3387 ac_cv_use_help='wxUSE_HELP=no'
3388 fi
3389
3390else
3391
3392 LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
3393 if test "x$LINE" != x ; then
3394 eval "DEFAULT_$LINE"
3395 else
3396 no_cache=1
3397 fi
3398
3399 ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
3400
3401fi
3402
3403
3404 eval "$ac_cv_use_help"
3405 if test "$no_cache" != 1; then
3406 echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
3407 fi
3408
3409 if test "$wxUSE_HELP" = yes; then
3410 echo "$ac_t""yes" 1>&6
3411 else
3412 echo "$ac_t""no" 1>&6
3413 fi
3414
3415
3416 echo $ac_n "checking "for --enable-constraints"""... $ac_c" 1>&6
b12915c1 3417echo "configure:3418: checking "for --enable-constraints"" >&5
10f2d63a
VZ
3418 no_cache=0
3419 # Check whether --enable-constraints or --disable-constraints was given.
3420if test "${enable_constraints+set}" = set; then
3421 enableval="$enable_constraints"
3422
3423 if test "$enableval" = yes; then
3424 ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
3425 else
3426 ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
3427 fi
3428
3429else
3430
3431 LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
3432 if test "x$LINE" != x ; then
3433 eval "DEFAULT_$LINE"
3434 else
3435 no_cache=1
3436 fi
3437
3438 ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
3439
3440fi
3441
3442
3443 eval "$ac_cv_use_constraints"
3444 if test "$no_cache" != 1; then
3445 echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
3446 fi
3447
3448 if test "$wxUSE_CONSTRAINTS" = yes; then
3449 echo "$ac_t""yes" 1>&6
3450 else
3451 echo "$ac_t""no" 1>&6
3452 fi
3453
3454
3455 echo $ac_n "checking "for --enable-printarch"""... $ac_c" 1>&6
b12915c1 3456echo "configure:3457: checking "for --enable-printarch"" >&5
10f2d63a
VZ
3457 no_cache=0
3458 # Check whether --enable-printarch or --disable-printarch was given.
3459if test "${enable_printarch+set}" = set; then
3460 enableval="$enable_printarch"
3461
3462 if test "$enableval" = yes; then
3463 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
3464 else
3465 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
3466 fi
3467
3468else
3469
3470 LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
3471 if test "x$LINE" != x ; then
3472 eval "DEFAULT_$LINE"
3473 else
3474 no_cache=1
3475 fi
3476
3477 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
3478
3479fi
3480
3481
3482 eval "$ac_cv_use_printarch"
3483 if test "$no_cache" != 1; then
3484 echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
3485 fi
3486
3487 if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
3488 echo "$ac_t""yes" 1>&6
3489 else
3490 echo "$ac_t""no" 1>&6
3491 fi
3492
3493
3494 echo $ac_n "checking "for --enable-mdi"""... $ac_c" 1>&6
b12915c1 3495echo "configure:3496: checking "for --enable-mdi"" >&5
10f2d63a
VZ
3496 no_cache=0
3497 # Check whether --enable-mdi or --disable-mdi was given.
3498if test "${enable_mdi+set}" = set; then
3499 enableval="$enable_mdi"
3500
3501 if test "$enableval" = yes; then
3502 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=yes'
3503 else
3504 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=no'
3505 fi
3506
3507else
3508
3509 LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
3510 if test "x$LINE" != x ; then
3511 eval "DEFAULT_$LINE"
3512 else
3513 no_cache=1
3514 fi
3515
3516 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
3517
3518fi
3519
3520
3521 eval "$ac_cv_use_mdi"
3522 if test "$no_cache" != 1; then
3523 echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
3524 fi
3525
3526 if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
3527 echo "$ac_t""yes" 1>&6
3528 else
3529 echo "$ac_t""no" 1>&6
3530 fi
3531
3532
3533
3534 echo $ac_n "checking "for --enable-postscript"""... $ac_c" 1>&6
b12915c1 3535echo "configure:3536: checking "for --enable-postscript"" >&5
10f2d63a
VZ
3536 no_cache=0
3537 # Check whether --enable-postscript or --disable-postscript was given.
3538if test "${enable_postscript+set}" = set; then
3539 enableval="$enable_postscript"
3540
3541 if test "$enableval" = yes; then
3542 ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
3543 else
3544 ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
3545 fi
3546
3547else
3548
3549 LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
3550 if test "x$LINE" != x ; then
3551 eval "DEFAULT_$LINE"
3552 else
3553 no_cache=1
3554 fi
3555
3556 ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
3557
3558fi
3559
3560
3561 eval "$ac_cv_use_postscript"
3562 if test "$no_cache" != 1; then
3563 echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
3564 fi
3565
3566 if test "$wxUSE_POSTSCRIPT" = yes; then
3567 echo "$ac_t""yes" 1>&6
3568 else
3569 echo "$ac_t""no" 1>&6
3570 fi
3571
3572
3573
3574
3575 echo $ac_n "checking "for --enable-prologio"""... $ac_c" 1>&6
b12915c1 3576echo "configure:3577: checking "for --enable-prologio"" >&5
10f2d63a
VZ
3577 no_cache=0
3578 # Check whether --enable-prologio or --disable-prologio was given.
3579if test "${enable_prologio+set}" = set; then
3580 enableval="$enable_prologio"
3581
3582 if test "$enableval" = yes; then
3583 ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
3584 else
3585 ac_cv_use_prologio='wxUSE_PROLOGIO=no'
3586 fi
3587
3588else
3589
3590 LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
3591 if test "x$LINE" != x ; then
3592 eval "DEFAULT_$LINE"
3593 else
3594 no_cache=1
3595 fi
3596
3597 ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
3598
3599fi
3600
3601
3602 eval "$ac_cv_use_prologio"
3603 if test "$no_cache" != 1; then
3604 echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
3605 fi
3606
3607 if test "$wxUSE_PROLOGIO" = yes; then
3608 echo "$ac_t""yes" 1>&6
3609 else
3610 echo "$ac_t""no" 1>&6
3611 fi
3612
3613
3614 echo $ac_n "checking "for --enable-resources"""... $ac_c" 1>&6
b12915c1 3615echo "configure:3616: checking "for --enable-resources"" >&5
10f2d63a
VZ
3616 no_cache=0
3617 # Check whether --enable-resources or --disable-resources was given.
3618if test "${enable_resources+set}" = set; then
3619 enableval="$enable_resources"
3620
3621 if test "$enableval" = yes; then
3622 ac_cv_use_resources='wxUSE_RESOURCES=yes'
3623 else
3624 ac_cv_use_resources='wxUSE_RESOURCES=no'
3625 fi
3626
3627else
3628
3629 LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
3630 if test "x$LINE" != x ; then
3631 eval "DEFAULT_$LINE"
3632 else
3633 no_cache=1
3634 fi
3635
3636 ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
3637
3638fi
3639
3640
3641 eval "$ac_cv_use_resources"
3642 if test "$no_cache" != 1; then
3643 echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
3644 fi
3645
3646 if test "$wxUSE_RESOURCES" = yes; then
3647 echo "$ac_t""yes" 1>&6
3648 else
3649 echo "$ac_t""no" 1>&6
3650 fi
3651
3652
3653
3654 echo $ac_n "checking "for --enable-xresources"""... $ac_c" 1>&6
b12915c1 3655echo "configure:3656: checking "for --enable-xresources"" >&5
10f2d63a
VZ
3656 no_cache=0
3657 # Check whether --enable-xresources or --disable-xresources was given.
3658if test "${enable_xresources+set}" = set; then
3659 enableval="$enable_xresources"
3660
3661 if test "$enableval" = yes; then
3662 ac_cv_use_xresources='wxUSE_X_RESOURCES=yes'
3663 else
3664 ac_cv_use_xresources='wxUSE_X_RESOURCES=no'
3665 fi
3666
3667else
3668
3669 LINE=`grep "wxUSE_X_RESOURCES" ${wx_arg_cache_file}`
3670 if test "x$LINE" != x ; then
3671 eval "DEFAULT_$LINE"
3672 else
3673 no_cache=1
3674 fi
3675
3676 ac_cv_use_xresources='wxUSE_X_RESOURCES='$DEFAULT_wxUSE_X_RESOURCES
3677
3678fi
3679
3680
3681 eval "$ac_cv_use_xresources"
3682 if test "$no_cache" != 1; then
3683 echo $ac_cv_use_xresources >> ${wx_arg_cache_file}.tmp
3684 fi
3685
3686 if test "$wxUSE_X_RESOURCES" = yes; then
3687 echo "$ac_t""yes" 1>&6
3688 else
3689 echo "$ac_t""no" 1>&6
3690 fi
3691
3692
3693
3694
3695 echo $ac_n "checking "for --enable-clipboard"""... $ac_c" 1>&6
b12915c1 3696echo "configure:3697: checking "for --enable-clipboard"" >&5
10f2d63a
VZ
3697 no_cache=0
3698 # Check whether --enable-clipboard or --disable-clipboard was given.
3699if test "${enable_clipboard+set}" = set; then
3700 enableval="$enable_clipboard"
3701
3702 if test "$enableval" = yes; then
3703 ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
3704 else
3705 ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
3706 fi
3707
3708else
3709
3710 LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
3711 if test "x$LINE" != x ; then
3712 eval "DEFAULT_$LINE"
3713 else
3714 no_cache=1
3715 fi
3716
3717 ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
3718
3719fi
3720
3721
3722 eval "$ac_cv_use_clipboard"
3723 if test "$no_cache" != 1; then
3724 echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
3725 fi
3726
3727 if test "$wxUSE_CLIPBOARD" = yes; then
3728 echo "$ac_t""yes" 1>&6
3729 else
3730 echo "$ac_t""no" 1>&6
3731 fi
3732
3733
3734 echo $ac_n "checking "for --enable-dnd"""... $ac_c" 1>&6
b12915c1 3735echo "configure:3736: checking "for --enable-dnd"" >&5
10f2d63a
VZ
3736 no_cache=0
3737 # Check whether --enable-dnd or --disable-dnd was given.
3738if test "${enable_dnd+set}" = set; then
3739 enableval="$enable_dnd"
3740
3741 if test "$enableval" = yes; then
3742 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
3743 else
3744 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
3745 fi
3746
3747else
3748
3749 LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
3750 if test "x$LINE" != x ; then
3751 eval "DEFAULT_$LINE"
3752 else
3753 no_cache=1
3754 fi
3755
3756 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
3757
3758fi
3759
3760
3761 eval "$ac_cv_use_dnd"
3762 if test "$no_cache" != 1; then
3763 echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
3764 fi
3765
3766 if test "$wxUSE_DRAG_AND_DROP" = yes; then
3767 echo "$ac_t""yes" 1>&6
3768 else
3769 echo "$ac_t""no" 1>&6
3770 fi
3771
3772
3773
3774 echo $ac_n "checking "for --enable-wxtree"""... $ac_c" 1>&6
b12915c1 3775echo "configure:3776: checking "for --enable-wxtree"" >&5
10f2d63a
VZ
3776 no_cache=0
3777 # Check whether --enable-wxtree or --disable-wxtree was given.
3778if test "${enable_wxtree+set}" = set; then
3779 enableval="$enable_wxtree"
3780
3781 if test "$enableval" = yes; then
3782 ac_cv_use_wxtree='wxUSE_WXTREE=yes'
3783 else
3784 ac_cv_use_wxtree='wxUSE_WXTREE=no'
3785 fi
3786
3787else
3788
3789 LINE=`grep "wxUSE_WXTREE" ${wx_arg_cache_file}`
3790 if test "x$LINE" != x ; then
3791 eval "DEFAULT_$LINE"
3792 else
3793 no_cache=1
3794 fi
3795
3796 ac_cv_use_wxtree='wxUSE_WXTREE='$DEFAULT_wxUSE_WXTREE
3797
3798fi
3799
3800
3801 eval "$ac_cv_use_wxtree"
3802 if test "$no_cache" != 1; then
3803 echo $ac_cv_use_wxtree >> ${wx_arg_cache_file}.tmp
3804 fi
3805
3806 if test "$wxUSE_WXTREE" = yes; then
3807 echo "$ac_t""yes" 1>&6
3808 else
3809 echo "$ac_t""no" 1>&6
3810 fi
3811
3812
3813
3814
3815 echo $ac_n "checking "for --enable-controls"""... $ac_c" 1>&6
b12915c1 3816echo "configure:3817: checking "for --enable-controls"" >&5
10f2d63a
VZ
3817 no_cache=0
3818 # Check whether --enable-controls or --disable-controls was given.
3819if test "${enable_controls+set}" = set; then
3820 enableval="$enable_controls"
3821
3822 if test "$enableval" = yes; then
3823 ac_cv_use_controls='wxUSE_CONTROLS=yes'
3824 else
3825 ac_cv_use_controls='wxUSE_CONTROLS=no'
3826 fi
3827
3828else
3829
3830 LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
3831 if test "x$LINE" != x ; then
3832 eval "DEFAULT_$LINE"
3833 else
3834 no_cache=1
3835 fi
3836
3837 ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
3838
3839fi
3840
3841
3842 eval "$ac_cv_use_controls"
3843 if test "$no_cache" != 1; then
3844 echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
3845 fi
3846
3847 if test "$wxUSE_CONTROLS" = yes; then
3848 echo "$ac_t""yes" 1>&6
3849 else
3850 echo "$ac_t""no" 1>&6
3851 fi
3852
3853
3854if test "$wxUSE_CONTROLS" = "yes"; then
3855 DEFAULT_wxUSE_ACCEL=yes
3856 DEFAULT_wxUSE_CARET=yes
3857 DEFAULT_wxUSE_COMBOBOX=yes
3858 DEFAULT_wxUSE_BMPBUTTON=yes
3859 DEFAULT_wxUSE_CHECKBOX=yes
3860 DEFAULT_wxUSE_CHECKLISTBOX=yes
3861 DEFAULT_wxUSE_CHOICE=yes
3862 DEFAULT_wxUSE_GAUGE=yes
3863 DEFAULT_wxUSE_GRID=yes
fc9c7c09 3864 DEFAULT_wxUSE_NEW_GRID=no
10f2d63a
VZ
3865 DEFAULT_wxUSE_IMAGLIST=yes
3866 DEFAULT_wxUSE_LISTBOX=yes
3867 DEFAULT_wxUSE_LISTCTRL=yes
3868 DEFAULT_wxUSE_NOTEBOOK=yes
3869 DEFAULT_wxUSE_RADIOBOX=yes
3870 DEFAULT_wxUSE_RADIOBTN=yes
3871 DEFAULT_wxUSE_SASH=yes
3872 DEFAULT_wxUSE_SCROLLBAR=yes
3873 DEFAULT_wxUSE_SLIDER=yes
3874 DEFAULT_wxUSE_SPINBTN=yes
56cfaa52 3875 DEFAULT_wxUSE_SPINCTRL=yes
10f2d63a
VZ
3876 DEFAULT_wxUSE_SPLITTER=yes
3877 DEFAULT_wxUSE_STATBMP=yes
3878 DEFAULT_wxUSE_STATBOX=yes
3879 DEFAULT_wxUSE_STATLINE=yes
3880 DEFAULT_wxUSE_STATUSBAR=yes
3881 DEFAULT_wxUSE_TAB_DIALOG=yes
3882 DEFAULT_wxUSE_TOOLBAR=yes
360d6699
VZ
3883 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
3884 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
10f2d63a
VZ
3885 DEFAULT_wxUSE_TOOLTIPS=yes
3886 DEFAULT_wxUSE_TREECTRL=yes
3887elif test "$wxUSE_CONTROLS" = "no"; then
3888 DEFAULT_wxUSE_ACCEL=no
3889 DEFAULT_wxUSE_CARET=no
3890 DEFAULT_wxUSE_COMBOBOX=no
3891 DEFAULT_wxUSE_BMPBUTTON=no
3892 DEFAULT_wxUSE_CHECKBOX=no
3893 DEFAULT_wxUSE_CHECKLISTBOX=no
3894 DEFAULT_wxUSE_CHOICE=no
3895 DEFAULT_wxUSE_GAUGE=no
3896 DEFAULT_wxUSE_GRID=no
3897 DEFAULT_wxUSE_NEW_GRID=no
3898 DEFAULT_wxUSE_IMAGLIST=no
3899 DEFAULT_wxUSE_LISTBOX=no
3900 DEFAULT_wxUSE_LISTCTRL=no
3901 DEFAULT_wxUSE_NOTEBOOK=no
3902 DEFAULT_wxUSE_RADIOBOX=no
3903 DEFAULT_wxUSE_RADIOBTN=no
3904 DEFAULT_wxUSE_SASH=no
3905 DEFAULT_wxUSE_SCROLLBAR=no
3906 DEFAULT_wxUSE_SLIDER=no
3907 DEFAULT_wxUSE_SPINBTN=no
56cfaa52 3908 DEFAULT_wxUSE_SPINCTRL=no
10f2d63a
VZ
3909 DEFAULT_wxUSE_SPLITTER=no
3910 DEFAULT_wxUSE_STATBMP=no
3911 DEFAULT_wxUSE_STATBOX=no
3912 DEFAULT_wxUSE_STATLINE=no
3913 DEFAULT_wxUSE_STATUSBAR=no
3914 DEFAULT_wxUSE_TAB_DIALOG=no
3915 DEFAULT_wxUSE_TOOLBAR=no
360d6699
VZ
3916 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
3917 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
10f2d63a
VZ
3918 DEFAULT_wxUSE_TOOLTIPS=no
3919 DEFAULT_wxUSE_TREECTRL=no
3920fi
3921
3922
3923 echo $ac_n "checking "for --enable-accel"""... $ac_c" 1>&6
b12915c1 3924echo "configure:3925: checking "for --enable-accel"" >&5
10f2d63a
VZ
3925 no_cache=0
3926 # Check whether --enable-accel or --disable-accel was given.
3927if test "${enable_accel+set}" = set; then
3928 enableval="$enable_accel"
3929
3930 if test "$enableval" = yes; then
3931 ac_cv_use_accel='wxUSE_ACCEL=yes'
3932 else
3933 ac_cv_use_accel='wxUSE_ACCEL=no'
3934 fi
3935
3936else
3937
3938 LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
3939 if test "x$LINE" != x ; then
3940 eval "DEFAULT_$LINE"
3941 else
3942 no_cache=1
3943 fi
3944
3945 ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
3946
3947fi
3948
3949
3950 eval "$ac_cv_use_accel"
3951 if test "$no_cache" != 1; then
3952 echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
3953 fi
3954
3955 if test "$wxUSE_ACCEL" = yes; then
3956 echo "$ac_t""yes" 1>&6
3957 else
3958 echo "$ac_t""no" 1>&6
3959 fi
3960
3961
3962 echo $ac_n "checking "for --enable-caret"""... $ac_c" 1>&6
b12915c1 3963echo "configure:3964: checking "for --enable-caret"" >&5
10f2d63a
VZ
3964 no_cache=0
3965 # Check whether --enable-caret or --disable-caret was given.
3966if test "${enable_caret+set}" = set; then
3967 enableval="$enable_caret"
3968
3969 if test "$enableval" = yes; then
3970 ac_cv_use_caret='wxUSE_CARET=yes'
3971 else
3972 ac_cv_use_caret='wxUSE_CARET=no'
3973 fi
3974
3975else
3976
3977 LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
3978 if test "x$LINE" != x ; then
3979 eval "DEFAULT_$LINE"
3980 else
3981 no_cache=1
3982 fi
3983
3984 ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
3985
3986fi
3987
3988
3989 eval "$ac_cv_use_caret"
3990 if test "$no_cache" != 1; then
3991 echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
3992 fi
3993
3994 if test "$wxUSE_CARET" = yes; then
3995 echo "$ac_t""yes" 1>&6
3996 else
3997 echo "$ac_t""no" 1>&6
3998 fi
3999
4000
4001 echo $ac_n "checking "for --enable-bmpbutton"""... $ac_c" 1>&6
b12915c1 4002echo "configure:4003: checking "for --enable-bmpbutton"" >&5
10f2d63a
VZ
4003 no_cache=0
4004 # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
4005if test "${enable_bmpbutton+set}" = set; then
4006 enableval="$enable_bmpbutton"
4007
4008 if test "$enableval" = yes; then
4009 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
4010 else
4011 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
4012 fi
4013
4014else
4015
4016 LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
4017 if test "x$LINE" != x ; then
4018 eval "DEFAULT_$LINE"
4019 else
4020 no_cache=1
4021 fi
4022
4023 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
4024
4025fi
4026
4027
4028 eval "$ac_cv_use_bmpbutton"
4029 if test "$no_cache" != 1; then
4030 echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
4031 fi
4032
4033 if test "$wxUSE_BMPBUTTON" = yes; then
4034 echo "$ac_t""yes" 1>&6
4035 else
4036 echo "$ac_t""no" 1>&6
4037 fi
4038
4039
4040 echo $ac_n "checking "for --enable-checkbox"""... $ac_c" 1>&6
b12915c1 4041echo "configure:4042: checking "for --enable-checkbox"" >&5
10f2d63a
VZ
4042 no_cache=0
4043 # Check whether --enable-checkbox or --disable-checkbox was given.
4044if test "${enable_checkbox+set}" = set; then
4045 enableval="$enable_checkbox"
4046
4047 if test "$enableval" = yes; then
4048 ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
4049 else
4050 ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
4051 fi
4052
4053else
4054
4055 LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
4056 if test "x$LINE" != x ; then
4057 eval "DEFAULT_$LINE"
4058 else
4059 no_cache=1
4060 fi
4061
4062 ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
4063
4064fi
4065
4066
4067 eval "$ac_cv_use_checkbox"
4068 if test "$no_cache" != 1; then
4069 echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
4070 fi
4071
4072 if test "$wxUSE_CHECKBOX" = yes; then
4073 echo "$ac_t""yes" 1>&6
4074 else
4075 echo "$ac_t""no" 1>&6
4076 fi
4077
4078
4079 echo $ac_n "checking "for --enable-checklst"""... $ac_c" 1>&6
b12915c1 4080echo "configure:4081: checking "for --enable-checklst"" >&5
10f2d63a
VZ
4081 no_cache=0
4082 # Check whether --enable-checklst or --disable-checklst was given.
4083if test "${enable_checklst+set}" = set; then
4084 enableval="$enable_checklst"
4085
4086 if test "$enableval" = yes; then
4087 ac_cv_use_checklst='wxUSE_CHECKLST=yes'
4088 else
4089 ac_cv_use_checklst='wxUSE_CHECKLST=no'
4090 fi
4091
4092else
4093
4094 LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
4095 if test "x$LINE" != x ; then
4096 eval "DEFAULT_$LINE"
4097 else
4098 no_cache=1
4099 fi
4100
4101 ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
4102
4103fi
4104
4105
4106 eval "$ac_cv_use_checklst"
4107 if test "$no_cache" != 1; then
4108 echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
4109 fi
4110
4111 if test "$wxUSE_CHECKLST" = yes; then
4112 echo "$ac_t""yes" 1>&6
4113 else
4114 echo "$ac_t""no" 1>&6
4115 fi
4116
4117
4118 echo $ac_n "checking "for --enable-choice"""... $ac_c" 1>&6
b12915c1 4119echo "configure:4120: checking "for --enable-choice"" >&5
10f2d63a
VZ
4120 no_cache=0
4121 # Check whether --enable-choice or --disable-choice was given.
4122if test "${enable_choice+set}" = set; then
4123 enableval="$enable_choice"
4124
4125 if test "$enableval" = yes; then
4126 ac_cv_use_choice='wxUSE_CHOICE=yes'
4127 else
4128 ac_cv_use_choice='wxUSE_CHOICE=no'
4129 fi
4130
4131else
4132
4133 LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
4134 if test "x$LINE" != x ; then
4135 eval "DEFAULT_$LINE"
4136 else
4137 no_cache=1
4138 fi
4139
4140 ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
4141
4142fi
4143
4144
4145 eval "$ac_cv_use_choice"
4146 if test "$no_cache" != 1; then
4147 echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
4148 fi
4149
4150 if test "$wxUSE_CHOICE" = yes; then
4151 echo "$ac_t""yes" 1>&6
4152 else
4153 echo "$ac_t""no" 1>&6
4154 fi
4155
4156
4157 echo $ac_n "checking "for --enable-combobox"""... $ac_c" 1>&6
b12915c1 4158echo "configure:4159: checking "for --enable-combobox"" >&5
10f2d63a
VZ
4159 no_cache=0
4160 # Check whether --enable-combobox or --disable-combobox was given.
4161if test "${enable_combobox+set}" = set; then
4162 enableval="$enable_combobox"
4163
4164 if test "$enableval" = yes; then
4165 ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
4166 else
4167 ac_cv_use_combobox='wxUSE_COMBOBOX=no'
4168 fi
4169
4170else
4171
4172 LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
4173 if test "x$LINE" != x ; then
4174 eval "DEFAULT_$LINE"
4175 else
4176 no_cache=1
4177 fi
4178
4179 ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
4180
4181fi
4182
4183
4184 eval "$ac_cv_use_combobox"
4185 if test "$no_cache" != 1; then
4186 echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
4187 fi
4188
4189 if test "$wxUSE_COMBOBOX" = yes; then
4190 echo "$ac_t""yes" 1>&6
4191 else
4192 echo "$ac_t""no" 1>&6
4193 fi
4194
4195
4196 echo $ac_n "checking "for --enable-gauge"""... $ac_c" 1>&6
b12915c1 4197echo "configure:4198: checking "for --enable-gauge"" >&5
10f2d63a
VZ
4198 no_cache=0
4199 # Check whether --enable-gauge or --disable-gauge was given.
4200if test "${enable_gauge+set}" = set; then
4201 enableval="$enable_gauge"
4202
4203 if test "$enableval" = yes; then
4204 ac_cv_use_gauge='wxUSE_GAUGE=yes'
4205 else
4206 ac_cv_use_gauge='wxUSE_GAUGE=no'
4207 fi
4208
4209else
4210
4211 LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
4212 if test "x$LINE" != x ; then
4213 eval "DEFAULT_$LINE"
4214 else
4215 no_cache=1
4216 fi
4217
4218 ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
4219
4220fi
4221
4222
4223 eval "$ac_cv_use_gauge"
4224 if test "$no_cache" != 1; then
4225 echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
4226 fi
4227
4228 if test "$wxUSE_GAUGE" = yes; then
4229 echo "$ac_t""yes" 1>&6
4230 else
4231 echo "$ac_t""no" 1>&6
4232 fi
4233
4234
4235 echo $ac_n "checking "for --enable-grid"""... $ac_c" 1>&6
b12915c1 4236echo "configure:4237: checking "for --enable-grid"" >&5
10f2d63a
VZ
4237 no_cache=0
4238 # Check whether --enable-grid or --disable-grid was given.
4239if test "${enable_grid+set}" = set; then
4240 enableval="$enable_grid"
4241
4242 if test "$enableval" = yes; then
4243 ac_cv_use_grid='wxUSE_GRID=yes'
4244 else
4245 ac_cv_use_grid='wxUSE_GRID=no'
4246 fi
4247
4248else
4249
4250 LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
4251 if test "x$LINE" != x ; then
4252 eval "DEFAULT_$LINE"
4253 else
4254 no_cache=1
4255 fi
4256
4257 ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
4258
4259fi
4260
4261
4262 eval "$ac_cv_use_grid"
4263 if test "$no_cache" != 1; then
4264 echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
4265 fi
4266
4267 if test "$wxUSE_GRID" = yes; then
4268 echo "$ac_t""yes" 1>&6
4269 else
4270 echo "$ac_t""no" 1>&6
4271 fi
4272
4273
4274 echo $ac_n "checking "for --enable-newgrid"""... $ac_c" 1>&6
b12915c1 4275echo "configure:4276: checking "for --enable-newgrid"" >&5
10f2d63a
VZ
4276 no_cache=0
4277 # Check whether --enable-newgrid or --disable-newgrid was given.
4278if test "${enable_newgrid+set}" = set; then
4279 enableval="$enable_newgrid"
4280
4281 if test "$enableval" = yes; then
4282 ac_cv_use_newgrid='wxUSE_NEW_GRID=yes'
4283 else
4284 ac_cv_use_newgrid='wxUSE_NEW_GRID=no'
4285 fi
4286
4287else
4288
4289 LINE=`grep "wxUSE_NEW_GRID" ${wx_arg_cache_file}`
4290 if test "x$LINE" != x ; then
4291 eval "DEFAULT_$LINE"
4292 else
4293 no_cache=1
4294 fi
4295
4296 ac_cv_use_newgrid='wxUSE_NEW_GRID='$DEFAULT_wxUSE_NEW_GRID
4297
4298fi
4299
4300
4301 eval "$ac_cv_use_newgrid"
4302 if test "$no_cache" != 1; then
4303 echo $ac_cv_use_newgrid >> ${wx_arg_cache_file}.tmp
4304 fi
4305
4306 if test "$wxUSE_NEW_GRID" = yes; then
4307 echo "$ac_t""yes" 1>&6
4308 else
4309 echo "$ac_t""no" 1>&6
4310 fi
4311
4312
4313 echo $ac_n "checking "for --enable-imaglist"""... $ac_c" 1>&6
b12915c1 4314echo "configure:4315: checking "for --enable-imaglist"" >&5
10f2d63a
VZ
4315 no_cache=0
4316 # Check whether --enable-imaglist or --disable-imaglist was given.
4317if test "${enable_imaglist+set}" = set; then
4318 enableval="$enable_imaglist"
4319
4320 if test "$enableval" = yes; then
4321 ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
4322 else
4323 ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
4324 fi
4325
4326else
4327
4328 LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
4329 if test "x$LINE" != x ; then
4330 eval "DEFAULT_$LINE"
4331 else
4332 no_cache=1
4333 fi
4334
4335 ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
4336
4337fi
4338
4339
4340 eval "$ac_cv_use_imaglist"
4341 if test "$no_cache" != 1; then
4342 echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
4343 fi
4344
4345 if test "$wxUSE_IMAGLIST" = yes; then
4346 echo "$ac_t""yes" 1>&6
4347 else
4348 echo "$ac_t""no" 1>&6
4349 fi
4350
4351
4352 echo $ac_n "checking "for --enable-listbox"""... $ac_c" 1>&6
b12915c1 4353echo "configure:4354: checking "for --enable-listbox"" >&5
10f2d63a
VZ
4354 no_cache=0
4355 # Check whether --enable-listbox or --disable-listbox was given.
4356if test "${enable_listbox+set}" = set; then
4357 enableval="$enable_listbox"
4358
4359 if test "$enableval" = yes; then
4360 ac_cv_use_listbox='wxUSE_LISTBOX=yes'
4361 else
4362 ac_cv_use_listbox='wxUSE_LISTBOX=no'
4363 fi
4364
4365else
4366
4367 LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
4368 if test "x$LINE" != x ; then
4369 eval "DEFAULT_$LINE"
4370 else
4371 no_cache=1
4372 fi
4373
4374 ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
4375
4376fi
4377
4378
4379 eval "$ac_cv_use_listbox"
4380 if test "$no_cache" != 1; then
4381 echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
4382 fi
4383
4384 if test "$wxUSE_LISTBOX" = yes; then
4385 echo "$ac_t""yes" 1>&6
4386 else
4387 echo "$ac_t""no" 1>&6
4388 fi
4389
4390
4391 echo $ac_n "checking "for --enable-listctrl"""... $ac_c" 1>&6
b12915c1 4392echo "configure:4393: checking "for --enable-listctrl"" >&5
10f2d63a
VZ
4393 no_cache=0
4394 # Check whether --enable-listctrl or --disable-listctrl was given.
4395if test "${enable_listctrl+set}" = set; then
4396 enableval="$enable_listctrl"
4397
4398 if test "$enableval" = yes; then
4399 ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
4400 else
4401 ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
4402 fi
4403
4404else
4405
4406 LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
4407 if test "x$LINE" != x ; then
4408 eval "DEFAULT_$LINE"
4409 else
4410 no_cache=1
4411 fi
4412
4413 ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
4414
4415fi
4416
4417
4418 eval "$ac_cv_use_listctrl"
4419 if test "$no_cache" != 1; then
4420 echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
4421 fi
4422
4423 if test "$wxUSE_LISTCTRL" = yes; then
4424 echo "$ac_t""yes" 1>&6
4425 else
4426 echo "$ac_t""no" 1>&6
4427 fi
4428
4429
4430 echo $ac_n "checking "for --enable-notebook"""... $ac_c" 1>&6
b12915c1 4431echo "configure:4432: checking "for --enable-notebook"" >&5
10f2d63a
VZ
4432 no_cache=0
4433 # Check whether --enable-notebook or --disable-notebook was given.
4434if test "${enable_notebook+set}" = set; then
4435 enableval="$enable_notebook"
4436
4437 if test "$enableval" = yes; then
4438 ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
4439 else
4440 ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
4441 fi
4442
4443else
4444
4445 LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
4446 if test "x$LINE" != x ; then
4447 eval "DEFAULT_$LINE"
4448 else
4449 no_cache=1
4450 fi
4451
4452 ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
4453
4454fi
4455
4456
4457 eval "$ac_cv_use_notebook"
4458 if test "$no_cache" != 1; then
4459 echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
4460 fi
4461
4462 if test "$wxUSE_NOTEBOOK" = yes; then
4463 echo "$ac_t""yes" 1>&6
4464 else
4465 echo "$ac_t""no" 1>&6
4466 fi
4467
4468
4469 echo $ac_n "checking "for --enable-radiobox"""... $ac_c" 1>&6
b12915c1 4470echo "configure:4471: checking "for --enable-radiobox"" >&5
10f2d63a
VZ
4471 no_cache=0
4472 # Check whether --enable-radiobox or --disable-radiobox was given.
4473if test "${enable_radiobox+set}" = set; then
4474 enableval="$enable_radiobox"
4475
4476 if test "$enableval" = yes; then
4477 ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
4478 else
4479 ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
4480 fi
4481
4482else
4483
4484 LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
4485 if test "x$LINE" != x ; then
4486 eval "DEFAULT_$LINE"
4487 else
4488 no_cache=1
4489 fi
4490
4491 ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
4492
4493fi
4494
4495
4496 eval "$ac_cv_use_radiobox"
4497 if test "$no_cache" != 1; then
4498 echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
4499 fi
4500
4501 if test "$wxUSE_RADIOBOX" = yes; then
4502 echo "$ac_t""yes" 1>&6
4503 else
4504 echo "$ac_t""no" 1>&6
4505 fi
4506
4507
4508 echo $ac_n "checking "for --enable-radiobtn"""... $ac_c" 1>&6
b12915c1 4509echo "configure:4510: checking "for --enable-radiobtn"" >&5
10f2d63a
VZ
4510 no_cache=0
4511 # Check whether --enable-radiobtn or --disable-radiobtn was given.
4512if test "${enable_radiobtn+set}" = set; then
4513 enableval="$enable_radiobtn"
4514
4515 if test "$enableval" = yes; then
4516 ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
4517 else
4518 ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
4519 fi
4520
4521else
4522
4523 LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
4524 if test "x$LINE" != x ; then
4525 eval "DEFAULT_$LINE"
4526 else
4527 no_cache=1
4528 fi
4529
4530 ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
4531
4532fi
4533
4534
4535 eval "$ac_cv_use_radiobtn"
4536 if test "$no_cache" != 1; then
4537 echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
4538 fi
4539
4540 if test "$wxUSE_RADIOBTN" = yes; then
4541 echo "$ac_t""yes" 1>&6
4542 else
4543 echo "$ac_t""no" 1>&6
4544 fi
4545
4546
4547 echo $ac_n "checking "for --enable-sash"""... $ac_c" 1>&6
b12915c1 4548echo "configure:4549: checking "for --enable-sash"" >&5
10f2d63a
VZ
4549 no_cache=0
4550 # Check whether --enable-sash or --disable-sash was given.
4551if test "${enable_sash+set}" = set; then
4552 enableval="$enable_sash"
4553
4554 if test "$enableval" = yes; then
4555 ac_cv_use_sash='wxUSE_SASH=yes'
4556 else
4557 ac_cv_use_sash='wxUSE_SASH=no'
4558 fi
4559
4560else
4561
4562 LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
4563 if test "x$LINE" != x ; then
4564 eval "DEFAULT_$LINE"
4565 else
4566 no_cache=1
4567 fi
4568
4569 ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
4570
4571fi
4572
4573
4574 eval "$ac_cv_use_sash"
4575 if test "$no_cache" != 1; then
4576 echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
4577 fi
4578
4579 if test "$wxUSE_SASH" = yes; then
4580 echo "$ac_t""yes" 1>&6
4581 else
4582 echo "$ac_t""no" 1>&6
4583 fi
4584
4585
4586 echo $ac_n "checking "for --enable-scrollbar"""... $ac_c" 1>&6
b12915c1 4587echo "configure:4588: checking "for --enable-scrollbar"" >&5
10f2d63a
VZ
4588 no_cache=0
4589 # Check whether --enable-scrollbar or --disable-scrollbar was given.
4590if test "${enable_scrollbar+set}" = set; then
4591 enableval="$enable_scrollbar"
4592
4593 if test "$enableval" = yes; then
4594 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
4595 else
4596 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
4597 fi
4598
4599else
4600
4601 LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
4602 if test "x$LINE" != x ; then
4603 eval "DEFAULT_$LINE"
4604 else
4605 no_cache=1
4606 fi
4607
4608 ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
4609
4610fi
4611
4612
4613 eval "$ac_cv_use_scrollbar"
4614 if test "$no_cache" != 1; then
4615 echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
4616 fi
4617
4618 if test "$wxUSE_SCROLLBAR" = yes; then
4619 echo "$ac_t""yes" 1>&6
4620 else
4621 echo "$ac_t""no" 1>&6
4622 fi
4623
4624
4625 echo $ac_n "checking "for --enable-slider"""... $ac_c" 1>&6
b12915c1 4626echo "configure:4627: checking "for --enable-slider"" >&5
10f2d63a
VZ
4627 no_cache=0
4628 # Check whether --enable-slider or --disable-slider was given.
4629if test "${enable_slider+set}" = set; then
4630 enableval="$enable_slider"
4631
4632 if test "$enableval" = yes; then
4633 ac_cv_use_slider='wxUSE_SLIDER=yes'
4634 else
4635 ac_cv_use_slider='wxUSE_SLIDER=no'
4636 fi
4637
4638else
4639
4640 LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
4641 if test "x$LINE" != x ; then
4642 eval "DEFAULT_$LINE"
4643 else
4644 no_cache=1
4645 fi
4646
4647 ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
4648
4649fi
4650
4651
4652 eval "$ac_cv_use_slider"
4653 if test "$no_cache" != 1; then
4654 echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
4655 fi
4656
4657 if test "$wxUSE_SLIDER" = yes; then
4658 echo "$ac_t""yes" 1>&6
4659 else
4660 echo "$ac_t""no" 1>&6
4661 fi
4662
4663
4664 echo $ac_n "checking "for --enable-spinbtn"""... $ac_c" 1>&6
b12915c1 4665echo "configure:4666: checking "for --enable-spinbtn"" >&5
10f2d63a
VZ
4666 no_cache=0
4667 # Check whether --enable-spinbtn or --disable-spinbtn was given.
4668if test "${enable_spinbtn+set}" = set; then
4669 enableval="$enable_spinbtn"
4670
4671 if test "$enableval" = yes; then
4672 ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
4673 else
4674 ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
4675 fi
4676
4677else
4678
4679 LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
4680 if test "x$LINE" != x ; then
4681 eval "DEFAULT_$LINE"
4682 else
4683 no_cache=1
4684 fi
4685
4686 ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
4687
4688fi
4689
4690
4691 eval "$ac_cv_use_spinbtn"
4692 if test "$no_cache" != 1; then
4693 echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
4694 fi
4695
4696 if test "$wxUSE_SPINBTN" = yes; then
4697 echo "$ac_t""yes" 1>&6
4698 else
4699 echo "$ac_t""no" 1>&6
4700 fi
4701
4702
56cfaa52 4703 echo $ac_n "checking "for --enable-spinctrl"""... $ac_c" 1>&6
b12915c1 4704echo "configure:4705: checking "for --enable-spinctrl"" >&5
56cfaa52
RR
4705 no_cache=0
4706 # Check whether --enable-spinctrl or --disable-spinctrl was given.
4707if test "${enable_spinctrl+set}" = set; then
4708 enableval="$enable_spinctrl"
4709
4710 if test "$enableval" = yes; then
4711 ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
4712 else
4713 ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
4714 fi
4715
4716else
4717
4718 LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
4719 if test "x$LINE" != x ; then
4720 eval "DEFAULT_$LINE"
4721 else
4722 no_cache=1
4723 fi
4724
4725 ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
4726
4727fi
4728
4729
4730 eval "$ac_cv_use_spinctrl"
4731 if test "$no_cache" != 1; then
4732 echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
4733 fi
4734
4735 if test "$wxUSE_SPINCTRL" = yes; then
4736 echo "$ac_t""yes" 1>&6
4737 else
4738 echo "$ac_t""no" 1>&6
4739 fi
4740
4741
10f2d63a 4742 echo $ac_n "checking "for --enable-splitter"""... $ac_c" 1>&6
b12915c1 4743echo "configure:4744: checking "for --enable-splitter"" >&5
10f2d63a
VZ
4744 no_cache=0
4745 # Check whether --enable-splitter or --disable-splitter was given.
4746if test "${enable_splitter+set}" = set; then
4747 enableval="$enable_splitter"
4748
4749 if test "$enableval" = yes; then
4750 ac_cv_use_splitter='wxUSE_SPLITTER=yes'
4751 else
4752 ac_cv_use_splitter='wxUSE_SPLITTER=no'
4753 fi
4754
4755else
4756
4757 LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
4758 if test "x$LINE" != x ; then
4759 eval "DEFAULT_$LINE"
4760 else
4761 no_cache=1
4762 fi
4763
4764 ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
4765
4766fi
4767
4768
4769 eval "$ac_cv_use_splitter"
4770 if test "$no_cache" != 1; then
4771 echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
4772 fi
4773
4774 if test "$wxUSE_SPLITTER" = yes; then
4775 echo "$ac_t""yes" 1>&6
4776 else
4777 echo "$ac_t""no" 1>&6
4778 fi
4779
4780
4781 echo $ac_n "checking "for --enable-statbmp"""... $ac_c" 1>&6
b12915c1 4782echo "configure:4783: checking "for --enable-statbmp"" >&5
10f2d63a
VZ
4783 no_cache=0
4784 # Check whether --enable-statbmp or --disable-statbmp was given.
4785if test "${enable_statbmp+set}" = set; then
4786 enableval="$enable_statbmp"
4787
4788 if test "$enableval" = yes; then
4789 ac_cv_use_statbmp='wxUSE_STATBMP=yes'
4790 else
4791 ac_cv_use_statbmp='wxUSE_STATBMP=no'
4792 fi
4793
4794else
4795
4796 LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
4797 if test "x$LINE" != x ; then
4798 eval "DEFAULT_$LINE"
4799 else
4800 no_cache=1
4801 fi
4802
4803 ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
4804
4805fi
4806
4807
4808 eval "$ac_cv_use_statbmp"
4809 if test "$no_cache" != 1; then
4810 echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
4811 fi
4812
4813 if test "$wxUSE_STATBMP" = yes; then
4814 echo "$ac_t""yes" 1>&6
4815 else
4816 echo "$ac_t""no" 1>&6
4817 fi
4818
4819
4820 echo $ac_n "checking "for --enable-statbox"""... $ac_c" 1>&6
b12915c1 4821echo "configure:4822: checking "for --enable-statbox"" >&5
10f2d63a
VZ
4822 no_cache=0
4823 # Check whether --enable-statbox or --disable-statbox was given.
4824if test "${enable_statbox+set}" = set; then
4825 enableval="$enable_statbox"
4826
4827 if test "$enableval" = yes; then
4828 ac_cv_use_statbox='wxUSE_STATBOX=yes'
4829 else
4830 ac_cv_use_statbox='wxUSE_STATBOX=no'
4831 fi
4832
4833else
4834
4835 LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
4836 if test "x$LINE" != x ; then
4837 eval "DEFAULT_$LINE"
4838 else
4839 no_cache=1
4840 fi
4841
4842 ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
4843
4844fi
4845
4846
4847 eval "$ac_cv_use_statbox"
4848 if test "$no_cache" != 1; then
4849 echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
4850 fi
4851
4852 if test "$wxUSE_STATBOX" = yes; then
4853 echo "$ac_t""yes" 1>&6
4854 else
4855 echo "$ac_t""no" 1>&6
4856 fi
4857
4858
4859 echo $ac_n "checking "for --enable-statline"""... $ac_c" 1>&6
b12915c1 4860echo "configure:4861: checking "for --enable-statline"" >&5
10f2d63a
VZ
4861 no_cache=0
4862 # Check whether --enable-statline or --disable-statline was given.
4863if test "${enable_statline+set}" = set; then
4864 enableval="$enable_statline"
4865
4866 if test "$enableval" = yes; then
4867 ac_cv_use_statline='wxUSE_STATLINE=yes'
4868 else
4869 ac_cv_use_statline='wxUSE_STATLINE=no'
4870 fi
4871
4872else
4873
4874 LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
4875 if test "x$LINE" != x ; then
4876 eval "DEFAULT_$LINE"
4877 else
4878 no_cache=1
4879 fi
4880
4881 ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
4882
4883fi
4884
4885
4886 eval "$ac_cv_use_statline"
4887 if test "$no_cache" != 1; then
4888 echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
4889 fi
4890
4891 if test "$wxUSE_STATLINE" = yes; then
4892 echo "$ac_t""yes" 1>&6
4893 else
4894 echo "$ac_t""no" 1>&6
4895 fi
4896
4897
4898 echo $ac_n "checking "for --enable-statusbar"""... $ac_c" 1>&6
b12915c1 4899echo "configure:4900: checking "for --enable-statusbar"" >&5
10f2d63a
VZ
4900 no_cache=0
4901 # Check whether --enable-statusbar or --disable-statusbar was given.
4902if test "${enable_statusbar+set}" = set; then
4903 enableval="$enable_statusbar"
4904
4905 if test "$enableval" = yes; then
4906 ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
4907 else
4908 ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
4909 fi
4910
4911else
4912
4913 LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
4914 if test "x$LINE" != x ; then
4915 eval "DEFAULT_$LINE"
4916 else
4917 no_cache=1
4918 fi
4919
4920 ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
4921
4922fi
4923
4924
4925 eval "$ac_cv_use_statusbar"
4926 if test "$no_cache" != 1; then
4927 echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
4928 fi
4929
4930 if test "$wxUSE_STATUSBAR" = yes; then
4931 echo "$ac_t""yes" 1>&6
4932 else
4933 echo "$ac_t""no" 1>&6
4934 fi
4935
4936
4937 echo $ac_n "checking "for --enable-tabdialog"""... $ac_c" 1>&6
b12915c1 4938echo "configure:4939: checking "for --enable-tabdialog"" >&5
10f2d63a
VZ
4939 no_cache=0
4940 # Check whether --enable-tabdialog or --disable-tabdialog was given.
4941if test "${enable_tabdialog+set}" = set; then
4942 enableval="$enable_tabdialog"
4943
4944 if test "$enableval" = yes; then
4945 ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes'
4946 else
4947 ac_cv_use_tabdialog='wxUSE_TABDIALOG=no'
4948 fi
4949
4950else
4951
4952 LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}`
4953 if test "x$LINE" != x ; then
4954 eval "DEFAULT_$LINE"
4955 else
4956 no_cache=1
4957 fi
4958
4959 ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG
4960
4961fi
4962
4963
4964 eval "$ac_cv_use_tabdialog"
4965 if test "$no_cache" != 1; then
4966 echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
4967 fi
4968
4969 if test "$wxUSE_TABDIALOG" = yes; then
4970 echo "$ac_t""yes" 1>&6
4971 else
4972 echo "$ac_t""no" 1>&6
4973 fi
4974
4975
4976 echo $ac_n "checking "for --enable-toolbar"""... $ac_c" 1>&6
b12915c1 4977echo "configure:4978: checking "for --enable-toolbar"" >&5
10f2d63a
VZ
4978 no_cache=0
4979 # Check whether --enable-toolbar or --disable-toolbar was given.
4980if test "${enable_toolbar+set}" = set; then
4981 enableval="$enable_toolbar"
4982
4983 if test "$enableval" = yes; then
4984 ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
4985 else
4986 ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
4987 fi
4988
4989else
4990
4991 LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
4992 if test "x$LINE" != x ; then
4993 eval "DEFAULT_$LINE"
4994 else
4995 no_cache=1
4996 fi
4997
4998 ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
4999
5000fi
5001
5002
5003 eval "$ac_cv_use_toolbar"
5004 if test "$no_cache" != 1; then
5005 echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
5006 fi
5007
5008 if test "$wxUSE_TOOLBAR" = yes; then
5009 echo "$ac_t""yes" 1>&6
5010 else
5011 echo "$ac_t""no" 1>&6
5012 fi
5013
5014
360d6699 5015 echo $ac_n "checking "for --enable-tbarnative"""... $ac_c" 1>&6
b12915c1 5016echo "configure:5017: checking "for --enable-tbarnative"" >&5
360d6699
VZ
5017 no_cache=0
5018 # Check whether --enable-tbarnative or --disable-tbarnative was given.
5019if test "${enable_tbarnative+set}" = set; then
5020 enableval="$enable_tbarnative"
5021
5022 if test "$enableval" = yes; then
5023 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
5024 else
5025 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
5026 fi
5027
5028else
5029
5030 LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
5031 if test "x$LINE" != x ; then
5032 eval "DEFAULT_$LINE"
5033 else
5034 no_cache=1
5035 fi
5036
5037 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
5038
5039fi
5040
5041
5042 eval "$ac_cv_use_tbarnative"
5043 if test "$no_cache" != 1; then
5044 echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
5045 fi
5046
5047 if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
5048 echo "$ac_t""yes" 1>&6
5049 else
5050 echo "$ac_t""no" 1>&6
5051 fi
5052
5053
5054 echo $ac_n "checking "for --enable-tbarsmpl"""... $ac_c" 1>&6
b12915c1 5055echo "configure:5056: checking "for --enable-tbarsmpl"" >&5
360d6699
VZ
5056 no_cache=0
5057 # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given.
5058if test "${enable_tbarsmpl+set}" = set; then
5059 enableval="$enable_tbarsmpl"
5060
5061 if test "$enableval" = yes; then
5062 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes'
5063 else
5064 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no'
5065 fi
5066
5067else
5068
5069 LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}`
5070 if test "x$LINE" != x ; then
5071 eval "DEFAULT_$LINE"
5072 else
5073 no_cache=1
5074 fi
5075
5076 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE
5077
5078fi
5079
5080
5081 eval "$ac_cv_use_tbarsmpl"
5082 if test "$no_cache" != 1; then
5083 echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp
5084 fi
5085
5086 if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then
5087 echo "$ac_t""yes" 1>&6
5088 else
5089 echo "$ac_t""no" 1>&6
5090 fi
5091
5092
10f2d63a 5093 echo $ac_n "checking "for --enable-treectrl"""... $ac_c" 1>&6
b12915c1 5094echo "configure:5095: checking "for --enable-treectrl"" >&5
10f2d63a
VZ
5095 no_cache=0
5096 # Check whether --enable-treectrl or --disable-treectrl was given.
5097if test "${enable_treectrl+set}" = set; then
5098 enableval="$enable_treectrl"
5099
5100 if test "$enableval" = yes; then
5101 ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
5102 else
5103 ac_cv_use_treectrl='wxUSE_TREECTRL=no'
5104 fi
5105
5106else
5107
5108 LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
5109 if test "x$LINE" != x ; then
5110 eval "DEFAULT_$LINE"
5111 else
5112 no_cache=1
5113 fi
5114
5115 ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
5116
5117fi
5118
5119
5120 eval "$ac_cv_use_treectrl"
5121 if test "$no_cache" != 1; then
5122 echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
5123 fi
5124
5125 if test "$wxUSE_TREECTRL" = yes; then
5126 echo "$ac_t""yes" 1>&6
5127 else
5128 echo "$ac_t""no" 1>&6
5129 fi
5130
5131
5132
5133
5134 echo $ac_n "checking "for --enable-commondlg"""... $ac_c" 1>&6
b12915c1 5135echo "configure:5136: checking "for --enable-commondlg"" >&5
10f2d63a
VZ
5136 no_cache=0
5137 # Check whether --enable-commondlg or --disable-commondlg was given.
5138if test "${enable_commondlg+set}" = set; then
5139 enableval="$enable_commondlg"
5140
5141 if test "$enableval" = yes; then
5142 ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
5143 else
5144 ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
5145 fi
5146
5147else
5148
5149 LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
5150 if test "x$LINE" != x ; then
5151 eval "DEFAULT_$LINE"
5152 else
5153 no_cache=1
5154 fi
5155
5156 ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
5157
5158fi
5159
5160
5161 eval "$ac_cv_use_commondlg"
5162 if test "$no_cache" != 1; then
5163 echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
5164 fi
5165
5166 if test "$wxUSE_COMMONDLGS" = yes; then
5167 echo "$ac_t""yes" 1>&6
5168 else
5169 echo "$ac_t""no" 1>&6
5170 fi
5171
5172
5173 echo $ac_n "checking "for --enable-dirdlg"""... $ac_c" 1>&6
b12915c1 5174echo "configure:5175: checking "for --enable-dirdlg"" >&5
10f2d63a
VZ
5175 no_cache=0
5176 # Check whether --enable-dirdlg or --disable-dirdlg was given.
5177if test "${enable_dirdlg+set}" = set; then
5178 enableval="$enable_dirdlg"
5179
5180 if test "$enableval" = yes; then
5181 ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
5182 else
5183 ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
5184 fi
5185
5186else
5187
5188 LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
5189 if test "x$LINE" != x ; then
5190 eval "DEFAULT_$LINE"
5191 else
5192 no_cache=1
5193 fi
5194
5195 ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
5196
5197fi
5198
5199
5200 eval "$ac_cv_use_dirdlg"
5201 if test "$no_cache" != 1; then
5202 echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
5203 fi
5204
5205 if test "$wxUSE_DIRDLG" = yes; then
5206 echo "$ac_t""yes" 1>&6
5207 else
5208 echo "$ac_t""no" 1>&6
5209 fi
5210
5211
5212 echo $ac_n "checking "for --enable-textdlg"""... $ac_c" 1>&6
b12915c1 5213echo "configure:5214: checking "for --enable-textdlg"" >&5
10f2d63a
VZ
5214 no_cache=0
5215 # Check whether --enable-textdlg or --disable-textdlg was given.
5216if test "${enable_textdlg+set}" = set; then
5217 enableval="$enable_textdlg"
5218
5219 if test "$enableval" = yes; then
5220 ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
5221 else
5222 ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
5223 fi
5224
5225else
5226
5227 LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
5228 if test "x$LINE" != x ; then
5229 eval "DEFAULT_$LINE"
5230 else
5231 no_cache=1
5232 fi
5233
5234 ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
5235
5236fi
5237
5238
5239 eval "$ac_cv_use_textdlg"
5240 if test "$no_cache" != 1; then
5241 echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
5242 fi
5243
5244 if test "$wxUSE_TEXTDLG" = yes; then
5245 echo "$ac_t""yes" 1>&6
5246 else
5247 echo "$ac_t""no" 1>&6
5248 fi
5249
5250
5251 echo $ac_n "checking "for --enable-tipdlg"""... $ac_c" 1>&6
b12915c1 5252echo "configure:5253: checking "for --enable-tipdlg"" >&5
10f2d63a
VZ
5253 no_cache=0
5254 # Check whether --enable-tipdlg or --disable-tipdlg was given.
5255if test "${enable_tipdlg+set}" = set; then
5256 enableval="$enable_tipdlg"
5257
5258 if test "$enableval" = yes; then
5259 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
5260 else
5261 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
5262 fi
5263
5264else
5265
5266 LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
5267 if test "x$LINE" != x ; then
5268 eval "DEFAULT_$LINE"
5269 else
5270 no_cache=1
5271 fi
5272
5273 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
5274
5275fi
5276
5277
5278 eval "$ac_cv_use_tipdlg"
5279 if test "$no_cache" != 1; then
5280 echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
5281 fi
5282
5283 if test "$wxUSE_STARTUP_TIPS" = yes; then
5284 echo "$ac_t""yes" 1>&6
5285 else
5286 echo "$ac_t""no" 1>&6
5287 fi
5288
5289
5290 echo $ac_n "checking "for --enable-progressdlg"""... $ac_c" 1>&6
b12915c1 5291echo "configure:5292: checking "for --enable-progressdlg"" >&5
10f2d63a
VZ
5292 no_cache=0
5293 # Check whether --enable-progressdlg or --disable-progressdlg was given.
5294if test "${enable_progressdlg+set}" = set; then
5295 enableval="$enable_progressdlg"
5296
5297 if test "$enableval" = yes; then
5298 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
5299 else
5300 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
5301 fi
5302
5303else
5304
5305 LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
5306 if test "x$LINE" != x ; then
5307 eval "DEFAULT_$LINE"
5308 else
5309 no_cache=1
5310 fi
5311
5312 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
5313
5314fi
5315
5316
5317 eval "$ac_cv_use_progressdlg"
5318 if test "$no_cache" != 1; then
5319 echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
5320 fi
5321
5322 if test "$wxUSE_PROGRESSDLG" = yes; then
5323 echo "$ac_t""yes" 1>&6
5324 else
5325 echo "$ac_t""no" 1>&6
5326 fi
5327
5328
5329 echo $ac_n "checking "for --enable-miniframe"""... $ac_c" 1>&6
b12915c1 5330echo "configure:5331: checking "for --enable-miniframe"" >&5
10f2d63a
VZ
5331 no_cache=0
5332 # Check whether --enable-miniframe or --disable-miniframe was given.
5333if test "${enable_miniframe+set}" = set; then
5334 enableval="$enable_miniframe"
5335
5336 if test "$enableval" = yes; then
5337 ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
5338 else
5339 ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
5340 fi
5341
5342else
5343
5344 LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
5345 if test "x$LINE" != x ; then
5346 eval "DEFAULT_$LINE"
5347 else
5348 no_cache=1
5349 fi
5350
5351 ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
5352
5353fi
5354
5355
5356 eval "$ac_cv_use_miniframe"
5357 if test "$no_cache" != 1; then
5358 echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
5359 fi
5360
5361 if test "$wxUSE_MINIFRAME" = yes; then
5362 echo "$ac_t""yes" 1>&6
5363 else
5364 echo "$ac_t""no" 1>&6
5365 fi
5366
5367
5368 echo $ac_n "checking "for --enable-html"""... $ac_c" 1>&6
b12915c1 5369echo "configure:5370: checking "for --enable-html"" >&5
10f2d63a
VZ
5370 no_cache=0
5371 # Check whether --enable-html or --disable-html was given.
5372if test "${enable_html+set}" = set; then
5373 enableval="$enable_html"
5374
5375 if test "$enableval" = yes; then
5376 ac_cv_use_html='wxUSE_HTML=yes'
5377 else
5378 ac_cv_use_html='wxUSE_HTML=no'
5379 fi
5380
5381else
5382
5383 LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
5384 if test "x$LINE" != x ; then
5385 eval "DEFAULT_$LINE"
5386 else
5387 no_cache=1
5388 fi
5389
5390 ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
5391
5392fi
5393
5394
5395 eval "$ac_cv_use_html"
5396 if test "$no_cache" != 1; then
5397 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
5398 fi
5399
5400 if test "$wxUSE_HTML" = yes; then
5401 echo "$ac_t""yes" 1>&6
5402 else
5403 echo "$ac_t""no" 1>&6
5404 fi
5405
5406
5407 echo $ac_n "checking "for --enable-tooltips"""... $ac_c" 1>&6
b12915c1 5408echo "configure:5409: checking "for --enable-tooltips"" >&5
10f2d63a
VZ
5409 no_cache=0
5410 # Check whether --enable-tooltips or --disable-tooltips was given.
5411if test "${enable_tooltips+set}" = set; then
5412 enableval="$enable_tooltips"
5413
5414 if test "$enableval" = yes; then
5415 ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
5416 else
5417 ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
5418 fi
5419
5420else
5421
5422 LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
5423 if test "x$LINE" != x ; then
5424 eval "DEFAULT_$LINE"
5425 else
5426 no_cache=1
5427 fi
5428
5429 ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
5430
5431fi
5432
5433
5434 eval "$ac_cv_use_tooltips"
5435 if test "$no_cache" != 1; then
5436 echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
5437 fi
5438
5439 if test "$wxUSE_TOOLTIPS" = yes; then
5440 echo "$ac_t""yes" 1>&6
5441 else
5442 echo "$ac_t""no" 1>&6
5443 fi
5444
5445
5446 echo $ac_n "checking "for --enable-splines"""... $ac_c" 1>&6
b12915c1 5447echo "configure:5448: checking "for --enable-splines"" >&5
10f2d63a
VZ
5448 no_cache=0
5449 # Check whether --enable-splines or --disable-splines was given.
5450if test "${enable_splines+set}" = set; then
5451 enableval="$enable_splines"
5452
5453 if test "$enableval" = yes; then
5454 ac_cv_use_splines='wxUSE_SPLINES=yes'
5455 else
5456 ac_cv_use_splines='wxUSE_SPLINES=no'
5457 fi
5458
5459else
5460
5461 LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
5462 if test "x$LINE" != x ; then
5463 eval "DEFAULT_$LINE"
5464 else
5465 no_cache=1
5466 fi
5467
5468 ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
5469
5470fi
5471
5472
5473 eval "$ac_cv_use_splines"
5474 if test "$no_cache" != 1; then
5475 echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
5476 fi
5477
5478 if test "$wxUSE_SPLINES" = yes; then
5479 echo "$ac_t""yes" 1>&6
5480 else
5481 echo "$ac_t""no" 1>&6
5482 fi
5483
5484
5485 echo $ac_n "checking "for --enable-validators"""... $ac_c" 1>&6
b12915c1 5486echo "configure:5487: checking "for --enable-validators"" >&5
10f2d63a
VZ
5487 no_cache=0
5488 # Check whether --enable-validators or --disable-validators was given.
5489if test "${enable_validators+set}" = set; then
5490 enableval="$enable_validators"
5491
5492 if test "$enableval" = yes; then
5493 ac_cv_use_validators='wxUSE_VALIDATORS=yes'
5494 else
5495 ac_cv_use_validators='wxUSE_VALIDATORS=no'
5496 fi
5497
5498else
5499
5500 LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
5501 if test "x$LINE" != x ; then
5502 eval "DEFAULT_$LINE"
5503 else
5504 no_cache=1
5505 fi
5506
5507 ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
5508
5509fi
5510
5511
5512 eval "$ac_cv_use_validators"
5513 if test "$no_cache" != 1; then
5514 echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
5515 fi
5516
5517 if test "$wxUSE_VALIDATORS" = yes; then
5518 echo "$ac_t""yes" 1>&6
5519 else
5520 echo "$ac_t""no" 1>&6
5521 fi
5522
5523
5524 echo $ac_n "checking "for --enable-busyinfo"""... $ac_c" 1>&6
b12915c1 5525echo "configure:5526: checking "for --enable-busyinfo"" >&5
10f2d63a
VZ
5526 no_cache=0
5527 # Check whether --enable-busyinfo or --disable-busyinfo was given.
5528if test "${enable_busyinfo+set}" = set; then
5529 enableval="$enable_busyinfo"
5530
5531 if test "$enableval" = yes; then
5532 ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
5533 else
5534 ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
5535 fi
5536
5537else
5538
5539 LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
5540 if test "x$LINE" != x ; then
5541 eval "DEFAULT_$LINE"
5542 else
5543 no_cache=1
5544 fi
5545
5546 ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
5547
5548fi
5549
5550
5551 eval "$ac_cv_use_busyinfo"
5552 if test "$no_cache" != 1; then
5553 echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
5554 fi
5555
5556 if test "$wxUSE_BUSYINFO" = yes; then
5557 echo "$ac_t""yes" 1>&6
5558 else
5559 echo "$ac_t""no" 1>&6
5560 fi
5561
5562
5563
5564
5565 echo $ac_n "checking "for --enable-gif"""... $ac_c" 1>&6
b12915c1 5566echo "configure:5567: checking "for --enable-gif"" >&5
10f2d63a
VZ
5567 no_cache=0
5568 # Check whether --enable-gif or --disable-gif was given.
5569if test "${enable_gif+set}" = set; then
5570 enableval="$enable_gif"
5571
5572 if test "$enableval" = yes; then
5573 ac_cv_use_gif='wxUSE_GIF=yes'
5574 else
5575 ac_cv_use_gif='wxUSE_GIF=no'
5576 fi
5577
5578else
5579
5580 LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
5581 if test "x$LINE" != x ; then
5582 eval "DEFAULT_$LINE"
5583 else
5584 no_cache=1
5585 fi
5586
5587 ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
5588
5589fi
5590
5591
5592 eval "$ac_cv_use_gif"
5593 if test "$no_cache" != 1; then
5594 echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
5595 fi
5596
5597 if test "$wxUSE_GIF" = yes; then
5598 echo "$ac_t""yes" 1>&6
5599 else
5600 echo "$ac_t""no" 1>&6
5601 fi
5602
5603
5604 echo $ac_n "checking "for --enable-pcx"""... $ac_c" 1>&6
b12915c1 5605echo "configure:5606: checking "for --enable-pcx"" >&5
10f2d63a
VZ
5606 no_cache=0
5607 # Check whether --enable-pcx or --disable-pcx was given.
5608if test "${enable_pcx+set}" = set; then
5609 enableval="$enable_pcx"
5610
5611 if test "$enableval" = yes; then
5612 ac_cv_use_pcx='wxUSE_PCX=yes'
5613 else
5614 ac_cv_use_pcx='wxUSE_PCX=no'
5615 fi
5616
5617else
5618
5619 LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
5620 if test "x$LINE" != x ; then
5621 eval "DEFAULT_$LINE"
5622 else
5623 no_cache=1
5624 fi
5625
5626 ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
5627
5628fi
5629
5630
5631 eval "$ac_cv_use_pcx"
5632 if test "$no_cache" != 1; then
5633 echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
5634 fi
5635
5636 if test "$wxUSE_PCX" = yes; then
5637 echo "$ac_t""yes" 1>&6
5638 else
5639 echo "$ac_t""no" 1>&6
5640 fi
5641
5642
5643 echo $ac_n "checking "for --enable-pnm"""... $ac_c" 1>&6
b12915c1 5644echo "configure:5645: checking "for --enable-pnm"" >&5
10f2d63a
VZ
5645 no_cache=0
5646 # Check whether --enable-pnm or --disable-pnm was given.
5647if test "${enable_pnm+set}" = set; then
5648 enableval="$enable_pnm"
5649
5650 if test "$enableval" = yes; then
5651 ac_cv_use_pnm='wxUSE_PNM=yes'
5652 else
5653 ac_cv_use_pnm='wxUSE_PNM=no'
5654 fi
5655
5656else
5657
5658 LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
5659 if test "x$LINE" != x ; then
5660 eval "DEFAULT_$LINE"
5661 else
5662 no_cache=1
5663 fi
5664
5665 ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
5666
5667fi
5668
5669
5670 eval "$ac_cv_use_pnm"
5671 if test "$no_cache" != 1; then
5672 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
5673 fi
5674
5675 if test "$wxUSE_PNM" = yes; then
5676 echo "$ac_t""yes" 1>&6
5677 else
5678 echo "$ac_t""no" 1>&6
5679 fi
5680
5681
b12915c1
VZ
5682fi
5683
10f2d63a
VZ
5684
5685 echo "saving argument cache $wx_arg_cache_file"
5686 mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
5687
5688
5689
5690echo $ac_n "checking for toolkit""... $ac_c" 1>&6
b12915c1 5691echo "configure:5692: checking for toolkit" >&5
10f2d63a
VZ
5692
5693if test "$wxUSE_GUI" = "yes"; then
5694
b12915c1
VZ
5695if test "$USE_BEOS" = 1; then
5696 { echo "configure: error: BeOS GUI is not supported yet, use --disable-gui" 1>&2; exit 1; }
5697fi
5698
10f2d63a
VZ
5699if test "$TOOLKIT_GIVEN" = 1; then
5700 for toolkit in `echo $ALL_TOOLKITS`; do
5701 var=wxUSE_$toolkit
5702 eval "value=\$${var}"
5703 eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`"
5704 done
5705else
5706 for toolkit in `echo $ALL_TOOLKITS`; do
5707 if test "$has_toolkit_in_cache" != 1; then
5708 var=DEFAULT_DEFAULT_wxUSE_$toolkit
5709 else
5710 var=DEFAULT_wxUSE_$toolkit
5711 fi
5712 eval "wxUSE_$toolkit=\$${var}"
5713 done
5714fi
5715
5716NUM_TOOLKITS=`expr ${wxUSE_GTK:-0} + ${wxUSE_MOTIF:-0} + ${wxUSE_WINE:-0} + ${wxUSE_MINGW:-0} + ${wxUSE_CYGWIN:-0}`
5717
5718case "$NUM_TOOLKITS" in
5719 1)
5720 ;;
5721 0)
5722 { echo "configure: error: Please specify a toolkit - cannot determine the default for ${host}" 1>&2; exit 1; }
5723 ;;
5724 *)
5725 { echo "configure: error: Please specify at most one toolkit (may be some are cached?)" 1>&2; exit 1; }
5726esac
5727
5728for toolkit in `echo $ALL_TOOLKITS`; do
5729 var=wxUSE_$toolkit
5730 eval "value=\$${var}"
5731 if test "x$value" != x; then
5732 cache_var=CACHE_$toolkit
5733 eval "cache=\$${cache_var}"
5734 if test "$cache" = 1; then
5735 echo "$var=$value" >> ${wx_arg_cache_file}
5736 fi
5737 if test "$value" = 1; then
5738 echo "$ac_t""`echo $toolkit | tr A-Z a-z`" 1>&6
5739 fi
5740 fi
5741done
5742
5743else
5744 echo "$ac_t""base only" 1>&6
5745fi
5746
5747
5748cat > confcache <<\EOF
5749# This file is a shell script that caches the results of configure
5750# tests run on this system so they can be shared between configure
5751# scripts and configure runs. It is not useful on other systems.
5752# If it contains results you don't want to keep, you may remove or edit it.
5753#
5754# By default, configure uses ./config.cache as the cache file,
5755# creating it if it does not exist already. You can give configure
5756# the --cache-file=FILE option to use a different cache file; that is
5757# what configure does when it calls configure scripts in
5758# subdirectories, so they share the cache.
5759# Giving --cache-file=/dev/null disables caching, for debugging configure.
5760# config.status only pays attention to the cache file if you give it the
5761# --recheck option to rerun configure.
5762#
5763EOF
5764# The following way of writing the cache mishandles newlines in values,
5765# but we know of no workaround that is simple, portable, and efficient.
5766# So, don't put newlines in cache variables' values.
5767# Ultrix sh set writes to stderr and can't be redirected directly,
5768# and sets the high bit in the cache file unless we assign to the vars.
5769(set) 2>&1 |
5770 case `(ac_space=' '; set | grep ac_space) 2>&1` in
5771 *ac_space=\ *)
5772 # `set' does not quote correctly, so add quotes (double-quote substitution
5773 # turns \\\\ into \\, and sed turns \\ into \).
5774 sed -n \
5775 -e "s/'/'\\\\''/g" \
5776 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
5777 ;;
5778 *)
5779 # `set' quotes correctly as required by POSIX, so do not add quotes.
5780 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
5781 ;;
5782 esac >> confcache
5783if cmp -s $cache_file confcache; then
5784 :
5785else
5786 if test -w $cache_file; then
5787 echo "updating cache $cache_file"
5788 cat confcache > $cache_file
5789 else
5790 echo "not updating unwritable cache $cache_file"
5791 fi
5792fi
5793rm -f confcache
5794
5795
5796if eval "test $host != $build"; then
5797 if eval "test $host_alias != NONE"; then
5798 CC=$host_alias-gcc
5799 CXX=$host_alias-c++
5800 AR=$host_alias-ar
5801 RANLIB=$host_alias-ranlib
5802 DLLTOOL=$host_alias-dlltool
5803 LD=$host_alias-ld
5804 NM=$host_alias-nm
5805 STRIP=$host_alias-strip
5806 fi
5807fi
5808
5809# Extract the first word of "gcc", so it can be a program name with args.
5810set dummy gcc; ac_word=$2
5811echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
b12915c1 5812echo "configure:5813: checking for $ac_word" >&5
10f2d63a
VZ
5813if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
5814 echo $ac_n "(cached) $ac_c" 1>&6
5815else
5816 if test -n "$CC"; then
5817 ac_cv_prog_CC="$CC" # Let the user override the test.
5818else
5819 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5820 ac_dummy="$PATH"
5821 for ac_dir in $ac_dummy; do
5822 test -z "$ac_dir" && ac_dir=.
5823 if test -f $ac_dir/$ac_word; then
5824 ac_cv_prog_CC="gcc"
5825 break
5826 fi
5827 done
5828 IFS="$ac_save_ifs"
5829fi
5830fi
5831CC="$ac_cv_prog_CC"
5832if test -n "$CC"; then
5833 echo "$ac_t""$CC" 1>&6
5834else
5835 echo "$ac_t""no" 1>&6
5836fi
5837
5838if test -z "$CC"; then
5839 # Extract the first word of "cc", so it can be a program name with args.
5840set dummy cc; ac_word=$2
5841echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
b12915c1 5842echo "configure:5843: checking for $ac_word" >&5
10f2d63a
VZ
5843if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
5844 echo $ac_n "(cached) $ac_c" 1>&6
5845else
5846 if test -n "$CC"; then
5847 ac_cv_prog_CC="$CC" # Let the user override the test.
5848else
5849 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5850 ac_prog_rejected=no
5851 ac_dummy="$PATH"
5852 for ac_dir in $ac_dummy; do
5853 test -z "$ac_dir" && ac_dir=.
5854 if test -f $ac_dir/$ac_word; then
5855 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
5856 ac_prog_rejected=yes
5857 continue
5858 fi
5859 ac_cv_prog_CC="cc"
5860 break
5861 fi
5862 done
5863 IFS="$ac_save_ifs"
5864if test $ac_prog_rejected = yes; then
5865 # We found a bogon in the path, so make sure we never use it.
5866 set dummy $ac_cv_prog_CC
5867 shift
5868 if test $# -gt 0; then
5869 # We chose a different compiler from the bogus one.
5870 # However, it has the same basename, so the bogon will be chosen
5871 # first if we set CC to just the basename; use the full file name.
5872 shift
5873 set dummy "$ac_dir/$ac_word" "$@"
5874 shift
5875 ac_cv_prog_CC="$@"
5876 fi
5877fi
5878fi
5879fi
5880CC="$ac_cv_prog_CC"
5881if test -n "$CC"; then
5882 echo "$ac_t""$CC" 1>&6
5883else
5884 echo "$ac_t""no" 1>&6
5885fi
5886
5887 if test -z "$CC"; then
5888 case "`uname -s`" in
5889 *win32* | *WIN32*)
5890 # Extract the first word of "cl", so it can be a program name with args.
5891set dummy cl; ac_word=$2
5892echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
b12915c1 5893echo "configure:5894: checking for $ac_word" >&5
10f2d63a
VZ
5894if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
5895 echo $ac_n "(cached) $ac_c" 1>&6
5896else
5897 if test -n "$CC"; then
5898 ac_cv_prog_CC="$CC" # Let the user override the test.
5899else
5900 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5901 ac_dummy="$PATH"
5902 for ac_dir in $ac_dummy; do
5903 test -z "$ac_dir" && ac_dir=.
5904 if test -f $ac_dir/$ac_word; then
5905 ac_cv_prog_CC="cl"
5906 break
5907 fi
5908 done
5909 IFS="$ac_save_ifs"
5910fi
5911fi
5912CC="$ac_cv_prog_CC"
5913if test -n "$CC"; then
5914 echo "$ac_t""$CC" 1>&6
5915else
5916 echo "$ac_t""no" 1>&6
5917fi
5918 ;;
5919 esac
5920 fi
5921 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
5922fi
5923
5924echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
b12915c1 5925echo "configure:5926: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
10f2d63a
VZ
5926
5927ac_ext=c
5928# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5929ac_cpp='$CPP $CPPFLAGS'
5930ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5931ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5932cross_compiling=$ac_cv_prog_cc_cross
5933
5934cat > conftest.$ac_ext << EOF
5935
b12915c1 5936#line 5937 "configure"
10f2d63a
VZ
5937#include "confdefs.h"
5938
5939main(){return(0);}
5940EOF
b12915c1 5941if { (eval echo configure:5942: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
5942 ac_cv_prog_cc_works=yes
5943 # If we can't run a trivial program, we are probably using a cross compiler.
5944 if (./conftest; exit) 2>/dev/null; then
5945 ac_cv_prog_cc_cross=no
5946 else
5947 ac_cv_prog_cc_cross=yes
5948 fi
5949else
5950 echo "configure: failed program was:" >&5
5951 cat conftest.$ac_ext >&5
5952 ac_cv_prog_cc_works=no
5953fi
5954rm -fr conftest*
5955ac_ext=c
5956# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5957ac_cpp='$CPP $CPPFLAGS'
5958ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5959ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5960cross_compiling=$ac_cv_prog_cc_cross
5961
5962echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
5963if test $ac_cv_prog_cc_works = no; then
5964 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
5965fi
5966echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
b12915c1 5967echo "configure:5968: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
10f2d63a
VZ
5968echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
5969cross_compiling=$ac_cv_prog_cc_cross
5970
5971echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
b12915c1 5972echo "configure:5973: checking whether we are using GNU C" >&5
10f2d63a
VZ
5973if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
5974 echo $ac_n "(cached) $ac_c" 1>&6
5975else
5976 cat > conftest.c <<EOF
5977#ifdef __GNUC__
5978 yes;
5979#endif
5980EOF
b12915c1 5981if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:5982: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
10f2d63a
VZ
5982 ac_cv_prog_gcc=yes
5983else
5984 ac_cv_prog_gcc=no
5985fi
5986fi
5987
5988echo "$ac_t""$ac_cv_prog_gcc" 1>&6
5989
5990if test $ac_cv_prog_gcc = yes; then
5991 GCC=yes
5992else
5993 GCC=
5994fi
5995
5996ac_test_CFLAGS="${CFLAGS+set}"
5997ac_save_CFLAGS="$CFLAGS"
5998CFLAGS=
5999echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
b12915c1 6000echo "configure:6001: checking whether ${CC-cc} accepts -g" >&5
10f2d63a
VZ
6001if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
6002 echo $ac_n "(cached) $ac_c" 1>&6
6003else
6004 echo 'void f(){}' > conftest.c
6005if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
6006 ac_cv_prog_cc_g=yes
6007else
6008 ac_cv_prog_cc_g=no
6009fi
6010rm -f conftest*
6011
6012fi
6013
6014echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
6015if test "$ac_test_CFLAGS" = set; then
6016 CFLAGS="$ac_save_CFLAGS"
6017elif test $ac_cv_prog_cc_g = yes; then
6018 if test "$GCC" = yes; then
6019 CFLAGS="-g -O2"
6020 else
6021 CFLAGS="-g"
6022 fi
6023else
6024 if test "$GCC" = yes; then
6025 CFLAGS="-O2"
6026 else
6027 CFLAGS=
6028 fi
6029fi
6030
6031
6032CFLAGS=`echo "$CFLAGS" | sed 's/-g//g'`
6033
6034echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
b12915c1 6035echo "configure:6036: checking how to run the C preprocessor" >&5
10f2d63a
VZ
6036# On Suns, sometimes $CPP names a directory.
6037if test -n "$CPP" && test -d "$CPP"; then
6038 CPP=
6039fi
6040if test -z "$CPP"; then
6041if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
6042 echo $ac_n "(cached) $ac_c" 1>&6
6043else
6044 # This must be in double quotes, not single quotes, because CPP may get
6045 # substituted into the Makefile and "${CC-cc}" will confuse make.
6046 CPP="${CC-cc} -E"
6047 # On the NeXT, cc -E runs the code through the compiler's parser,
6048 # not just through cpp.
6049 cat > conftest.$ac_ext <<EOF
b12915c1 6050#line 6051 "configure"
10f2d63a
VZ
6051#include "confdefs.h"
6052#include <assert.h>
6053Syntax Error
6054EOF
6055ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
b12915c1 6056{ (eval echo configure:6057: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
6057ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6058if test -z "$ac_err"; then
6059 :
6060else
6061 echo "$ac_err" >&5
6062 echo "configure: failed program was:" >&5
6063 cat conftest.$ac_ext >&5
6064 rm -rf conftest*
6065 CPP="${CC-cc} -E -traditional-cpp"
6066 cat > conftest.$ac_ext <<EOF
b12915c1 6067#line 6068 "configure"
10f2d63a
VZ
6068#include "confdefs.h"
6069#include <assert.h>
6070Syntax Error
6071EOF
6072ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
b12915c1 6073{ (eval echo configure:6074: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
6074ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6075if test -z "$ac_err"; then
6076 :
6077else
6078 echo "$ac_err" >&5
6079 echo "configure: failed program was:" >&5
6080 cat conftest.$ac_ext >&5
6081 rm -rf conftest*
6082 CPP="${CC-cc} -nologo -E"
6083 cat > conftest.$ac_ext <<EOF
b12915c1 6084#line 6085 "configure"
10f2d63a
VZ
6085#include "confdefs.h"
6086#include <assert.h>
6087Syntax Error
6088EOF
6089ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
b12915c1 6090{ (eval echo configure:6091: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
6091ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6092if test -z "$ac_err"; then
6093 :
6094else
6095 echo "$ac_err" >&5
6096 echo "configure: failed program was:" >&5
6097 cat conftest.$ac_ext >&5
6098 rm -rf conftest*
6099 CPP=/lib/cpp
6100fi
6101rm -f conftest*
6102fi
6103rm -f conftest*
6104fi
6105rm -f conftest*
6106 ac_cv_prog_CPP="$CPP"
6107fi
6108 CPP="$ac_cv_prog_CPP"
6109else
6110 ac_cv_prog_CPP="$CPP"
6111fi
6112echo "$ac_t""$CPP" 1>&6
6113
6114
6115if test $ac_cv_prog_gcc = yes; then
6116 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
b12915c1 6117echo "configure:6118: checking whether ${CC-cc} needs -traditional" >&5
10f2d63a
VZ
6118if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
6119 echo $ac_n "(cached) $ac_c" 1>&6
6120else
6121 ac_pattern="Autoconf.*'x'"
6122 cat > conftest.$ac_ext <<EOF
b12915c1 6123#line 6124 "configure"
10f2d63a
VZ
6124#include "confdefs.h"
6125#include <sgtty.h>
6126Autoconf TIOCGETP
6127EOF
6128if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6129 egrep "$ac_pattern" >/dev/null 2>&1; then
6130 rm -rf conftest*
6131 ac_cv_prog_gcc_traditional=yes
6132else
6133 rm -rf conftest*
6134 ac_cv_prog_gcc_traditional=no
6135fi
6136rm -f conftest*
6137
6138
6139 if test $ac_cv_prog_gcc_traditional = no; then
6140 cat > conftest.$ac_ext <<EOF
b12915c1 6141#line 6142 "configure"
10f2d63a
VZ
6142#include "confdefs.h"
6143#include <termio.h>
6144Autoconf TCGETA
6145EOF
6146if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6147 egrep "$ac_pattern" >/dev/null 2>&1; then
6148 rm -rf conftest*
6149 ac_cv_prog_gcc_traditional=yes
6150fi
6151rm -f conftest*
6152
6153 fi
6154fi
6155
6156echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
6157 if test $ac_cv_prog_gcc_traditional = yes; then
6158 CC="$CC -traditional"
6159 fi
6160fi
6161
6162
6163
6164ac_ext=C
6165# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6166ac_cpp='$CXXCPP $CPPFLAGS'
6167ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6168ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6169cross_compiling=$ac_cv_prog_cxx_cross
6170
6171
6172for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
6173do
6174# Extract the first word of "$ac_prog", so it can be a program name with args.
6175set dummy $ac_prog; ac_word=$2
6176echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
b12915c1 6177echo "configure:6178: checking for $ac_word" >&5
10f2d63a
VZ
6178if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
6179 echo $ac_n "(cached) $ac_c" 1>&6
6180else
6181 if test -n "$CXX"; then
6182 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6183else
6184 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6185 ac_dummy="$PATH"
6186 for ac_dir in $ac_dummy; do
6187 test -z "$ac_dir" && ac_dir=.
6188 if test -f $ac_dir/$ac_word; then
6189 ac_cv_prog_CXX="$ac_prog"
6190 break
6191 fi
6192 done
6193 IFS="$ac_save_ifs"
6194fi
6195fi
6196CXX="$ac_cv_prog_CXX"
6197if test -n "$CXX"; then
6198 echo "$ac_t""$CXX" 1>&6
6199else
6200 echo "$ac_t""no" 1>&6
6201fi
6202
6203test -n "$CXX" && break
6204done
6205test -n "$CXX" || CXX="gcc"
6206
6207
6208echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
b12915c1 6209echo "configure:6210: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
10f2d63a
VZ
6210
6211ac_ext=C
6212# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6213ac_cpp='$CXXCPP $CPPFLAGS'
6214ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6215ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6216cross_compiling=$ac_cv_prog_cxx_cross
6217
6218cat > conftest.$ac_ext << EOF
6219
b12915c1 6220#line 6221 "configure"
10f2d63a
VZ
6221#include "confdefs.h"
6222
6223int main(){return(0);}
6224EOF
b12915c1 6225if { (eval echo configure:6226: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
6226 ac_cv_prog_cxx_works=yes
6227 # If we can't run a trivial program, we are probably using a cross compiler.
6228 if (./conftest; exit) 2>/dev/null; then
6229 ac_cv_prog_cxx_cross=no
6230 else
6231 ac_cv_prog_cxx_cross=yes
6232 fi
6233else
6234 echo "configure: failed program was:" >&5
6235 cat conftest.$ac_ext >&5
6236 ac_cv_prog_cxx_works=no
6237fi
6238rm -fr conftest*
6239ac_ext=C
6240# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6241ac_cpp='$CXXCPP $CPPFLAGS'
6242ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6243ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6244cross_compiling=$ac_cv_prog_cxx_cross
6245
6246echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
6247if test $ac_cv_prog_cxx_works = no; then
6248 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
6249fi
6250echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
b12915c1 6251echo "configure:6252: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
10f2d63a
VZ
6252echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
6253cross_compiling=$ac_cv_prog_cxx_cross
6254
6255echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
b12915c1 6256echo "configure:6257: checking whether we are using GNU C++" >&5
10f2d63a
VZ
6257if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
6258 echo $ac_n "(cached) $ac_c" 1>&6
6259else
6260 cat > conftest.C <<EOF
6261#ifdef __GNUC__
6262 yes;
6263#endif
6264EOF
b12915c1 6265if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:6266: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
10f2d63a
VZ
6266 ac_cv_prog_gxx=yes
6267else
6268 ac_cv_prog_gxx=no
6269fi
6270fi
6271
6272echo "$ac_t""$ac_cv_prog_gxx" 1>&6
6273
6274if test $ac_cv_prog_gxx = yes; then
6275 GXX=yes
6276else
6277 GXX=
6278fi
6279
6280ac_test_CXXFLAGS="${CXXFLAGS+set}"
6281ac_save_CXXFLAGS="$CXXFLAGS"
6282CXXFLAGS=
6283echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
b12915c1 6284echo "configure:6285: checking whether ${CXX-g++} accepts -g" >&5
10f2d63a
VZ
6285if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
6286 echo $ac_n "(cached) $ac_c" 1>&6
6287else
6288 echo 'void f(){}' > conftest.cc
6289if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
6290 ac_cv_prog_cxx_g=yes
6291else
6292 ac_cv_prog_cxx_g=no
6293fi
6294rm -f conftest*
6295
6296fi
6297
6298echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
6299if test "$ac_test_CXXFLAGS" = set; then
6300 CXXFLAGS="$ac_save_CXXFLAGS"
6301elif test $ac_cv_prog_cxx_g = yes; then
6302 if test "$GXX" = yes; then
6303 CXXFLAGS="-g -O2"
6304 else
6305 CXXFLAGS="-g"
6306 fi
6307else
6308 if test "$GXX" = yes; then
6309 CXXFLAGS="-O2"
6310 else
6311 CXXFLAGS=
6312 fi
6313fi
6314
6315
6316echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
b12915c1 6317echo "configure:6318: checking how to run the C++ preprocessor" >&5
10f2d63a
VZ
6318if test -z "$CXXCPP"; then
6319if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
6320 echo $ac_n "(cached) $ac_c" 1>&6
6321else
6322 ac_ext=C
6323# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6324ac_cpp='$CXXCPP $CPPFLAGS'
6325ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6326ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6327cross_compiling=$ac_cv_prog_cxx_cross
6328 CXXCPP="${CXX-g++} -E"
6329 cat > conftest.$ac_ext <<EOF
b12915c1 6330#line 6331 "configure"
10f2d63a
VZ
6331#include "confdefs.h"
6332#include <stdlib.h>
6333EOF
6334ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
b12915c1 6335{ (eval echo configure:6336: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
6336ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6337if test -z "$ac_err"; then
6338 :
6339else
6340 echo "$ac_err" >&5
6341 echo "configure: failed program was:" >&5
6342 cat conftest.$ac_ext >&5
6343 rm -rf conftest*
6344 CXXCPP=/lib/cpp
6345fi
6346rm -f conftest*
6347 ac_cv_prog_CXXCPP="$CXXCPP"
6348ac_ext=C
6349# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6350ac_cpp='$CXXCPP $CPPFLAGS'
6351ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6352ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6353cross_compiling=$ac_cv_prog_cxx_cross
6354fi
6355fi
6356CXXCPP="$ac_cv_prog_CXXCPP"
6357echo "$ac_t""$CXXCPP" 1>&6
6358
6359
6360CXXFLAGS=`echo "$CXXFLAGS" | sed 's/-g//g'`
6361
6362ac_ext=c
6363# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6364ac_cpp='$CPP $CPPFLAGS'
6365ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6366ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6367cross_compiling=$ac_cv_prog_cc_cross
6368
6369
6370# Extract the first word of "ranlib", so it can be a program name with args.
6371set dummy ranlib; ac_word=$2
6372echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
b12915c1 6373echo "configure:6374: checking for $ac_word" >&5
10f2d63a
VZ
6374if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
6375 echo $ac_n "(cached) $ac_c" 1>&6
6376else
6377 if test -n "$RANLIB"; then
6378 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6379else
6380 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6381 ac_dummy="$PATH"
6382 for ac_dir in $ac_dummy; do
6383 test -z "$ac_dir" && ac_dir=.
6384 if test -f $ac_dir/$ac_word; then
6385 ac_cv_prog_RANLIB="ranlib"
6386 break
6387 fi
6388 done
6389 IFS="$ac_save_ifs"
6390 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
6391fi
6392fi
6393RANLIB="$ac_cv_prog_RANLIB"
6394if test -n "$RANLIB"; then
6395 echo "$ac_t""$RANLIB" 1>&6
6396else
6397 echo "$ac_t""no" 1>&6
6398fi
6399
6400
6401# Extract the first word of "ar", so it can be a program name with args.
6402set dummy ar; ac_word=$2
6403echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
b12915c1 6404echo "configure:6405: checking for $ac_word" >&5
10f2d63a
VZ
6405if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
6406 echo $ac_n "(cached) $ac_c" 1>&6
6407else
6408 if test -n "$AR"; then
6409 ac_cv_prog_AR="$AR" # Let the user override the test.
6410else
6411 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6412 ac_dummy="$PATH"
6413 for ac_dir in $ac_dummy; do
6414 test -z "$ac_dir" && ac_dir=.
6415 if test -f $ac_dir/$ac_word; then
6416 ac_cv_prog_AR="ar"
6417 break
6418 fi
6419 done
6420 IFS="$ac_save_ifs"
6421 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
6422fi
6423fi
6424AR="$ac_cv_prog_AR"
6425if test -n "$AR"; then
6426 echo "$ac_t""$AR" 1>&6
6427else
6428 echo "$ac_t""no" 1>&6
6429fi
6430
6431
6432# Find a good install program. We prefer a C program (faster),
6433# so one script is as good as another. But avoid the broken or
6434# incompatible versions:
6435# SysV /etc/install, /usr/sbin/install
6436# SunOS /usr/etc/install
6437# IRIX /sbin/install
6438# AIX /bin/install
6439# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6440# AFS /usr/afsws/bin/install, which mishandles nonexistent args
6441# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6442# ./install, which can be erroneously created by make from ./install.sh.
6443echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
b12915c1 6444echo "configure:6445: checking for a BSD compatible install" >&5
10f2d63a
VZ
6445if test -z "$INSTALL"; then
6446if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
6447 echo $ac_n "(cached) $ac_c" 1>&6
6448else
6449 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
6450 for ac_dir in $PATH; do
6451 # Account for people who put trailing slashes in PATH elements.
6452 case "$ac_dir/" in
6453 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
6454 *)
6455 # OSF1 and SCO ODT 3.0 have their own names for install.
6456 # Don't use installbsd from OSF since it installs stuff as root
6457 # by default.
6458 for ac_prog in ginstall scoinst install; do
6459 if test -f $ac_dir/$ac_prog; then
6460 if test $ac_prog = install &&
6461 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
6462 # AIX install. It has an incompatible calling convention.
6463 :
6464 else
6465 ac_cv_path_install="$ac_dir/$ac_prog -c"
6466 break 2
6467 fi
6468 fi
6469 done
6470 ;;
6471 esac
6472 done
6473 IFS="$ac_save_IFS"
6474
6475fi
6476 if test "${ac_cv_path_install+set}" = set; then
6477 INSTALL="$ac_cv_path_install"
6478 else
6479 # As a last resort, use the slow shell script. We don't cache a
6480 # path for INSTALL within a source directory, because that will
6481 # break other packages using the cache if that directory is
6482 # removed, or if the path is relative.
6483 INSTALL="$ac_install_sh"
6484 fi
6485fi
6486echo "$ac_t""$INSTALL" 1>&6
6487
6488# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6489# It thinks the first close brace ends the variable substitution.
6490test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6491
6492test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
6493
6494test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6495
6496
6497# Extract the first word of "strip", so it can be a program name with args.
6498set dummy strip; ac_word=$2
6499echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
b12915c1 6500echo "configure:6501: checking for $ac_word" >&5
10f2d63a
VZ
6501if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
6502 echo $ac_n "(cached) $ac_c" 1>&6
6503else
6504 if test -n "$STRIP"; then
6505 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6506else
6507 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6508 ac_dummy="$PATH"
6509 for ac_dir in $ac_dummy; do
6510 test -z "$ac_dir" && ac_dir=.
6511 if test -f $ac_dir/$ac_word; then
6512 ac_cv_prog_STRIP="strip"
6513 break
6514 fi
6515 done
6516 IFS="$ac_save_ifs"
6517 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true"
6518fi
6519fi
6520STRIP="$ac_cv_prog_STRIP"
6521if test -n "$STRIP"; then
6522 echo "$ac_t""$STRIP" 1>&6
6523else
6524 echo "$ac_t""no" 1>&6
6525fi
6526
6527
6528echo $ac_n "checking "make for VPATH support"""... $ac_c" 1>&6
b12915c1 6529echo "configure:6530: checking "make for VPATH support"" >&5
10f2d63a
VZ
6530cat - << EOF > confMake
6531check : file
6532 cp \$? \$@
6533 cp \$? final_file
6534EOF
6535
6536if test ! -d sub ; then
6537 mkdir sub
6538fi
6539echo dummy > sub/file
6540${MAKE-make} -f confMake VPATH=sub 2> config.log > /dev/null
6541RESULT=$?
6542rm -f sub/file check final_file confMake
6543rmdir sub
6544if test "$RESULT" = 0; then
6545 echo "$ac_t""yes" 1>&6
6546else
6547 echo "$ac_t""no" 1>&6
6548 { echo "configure: error: You need a make-utility that is able to use the variable
6549VPATH correctly.
6550If your version of make does not support VPATH correctly" 1>&2; exit 1; }
6551fi
6552
6553for ac_prog in 'bison -y' byacc
6554do
6555# Extract the first word of "$ac_prog", so it can be a program name with args.
6556set dummy $ac_prog; ac_word=$2
6557echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
b12915c1 6558echo "configure:6559: checking for $ac_word" >&5
10f2d63a
VZ
6559if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
6560 echo $ac_n "(cached) $ac_c" 1>&6
6561else
6562 if test -n "$YACC"; then
6563 ac_cv_prog_YACC="$YACC" # Let the user override the test.
6564else
6565 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6566 ac_dummy="$PATH"
6567 for ac_dir in $ac_dummy; do
6568 test -z "$ac_dir" && ac_dir=.
6569 if test -f $ac_dir/$ac_word; then
6570 ac_cv_prog_YACC="$ac_prog"
6571 break
6572 fi
6573 done
6574 IFS="$ac_save_ifs"
6575fi
6576fi
6577YACC="$ac_cv_prog_YACC"
6578if test -n "$YACC"; then
6579 echo "$ac_t""$YACC" 1>&6
6580else
6581 echo "$ac_t""no" 1>&6
6582fi
6583
6584test -n "$YACC" && break
6585done
6586test -n "$YACC" || YACC="yacc"
6587
6588
6589# Extract the first word of "flex", so it can be a program name with args.
6590set dummy flex; ac_word=$2
6591echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
b12915c1 6592echo "configure:6593: checking for $ac_word" >&5
10f2d63a
VZ
6593if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
6594 echo $ac_n "(cached) $ac_c" 1>&6
6595else
6596 if test -n "$LEX"; then
6597 ac_cv_prog_LEX="$LEX" # Let the user override the test.
6598else
6599 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6600 ac_dummy="$PATH"
6601 for ac_dir in $ac_dummy; do
6602 test -z "$ac_dir" && ac_dir=.
6603 if test -f $ac_dir/$ac_word; then
6604 ac_cv_prog_LEX="flex"
6605 break
6606 fi
6607 done
6608 IFS="$ac_save_ifs"
6609 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
6610fi
6611fi
6612LEX="$ac_cv_prog_LEX"
6613if test -n "$LEX"; then
6614 echo "$ac_t""$LEX" 1>&6
6615else
6616 echo "$ac_t""no" 1>&6
6617fi
6618
6619if test -z "$LEXLIB"
6620then
6621 case "$LEX" in
6622 flex*) ac_lib=fl ;;
6623 *) ac_lib=l ;;
6624 esac
6625 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
b12915c1 6626echo "configure:6627: checking for yywrap in -l$ac_lib" >&5
10f2d63a
VZ
6627ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
6628if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6629 echo $ac_n "(cached) $ac_c" 1>&6
6630else
6631 ac_save_LIBS="$LIBS"
6632LIBS="-l$ac_lib $LIBS"
6633cat > conftest.$ac_ext <<EOF
b12915c1 6634#line 6635 "configure"
10f2d63a
VZ
6635#include "confdefs.h"
6636/* Override any gcc2 internal prototype to avoid an error. */
6637/* We use char because int might match the return type of a gcc2
6638 builtin and then its argument prototype would still apply. */
6639char yywrap();
6640
6641int main() {
6642yywrap()
6643; return 0; }
6644EOF
b12915c1 6645if { (eval echo configure:6646: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
6646 rm -rf conftest*
6647 eval "ac_cv_lib_$ac_lib_var=yes"
6648else
6649 echo "configure: failed program was:" >&5
6650 cat conftest.$ac_ext >&5
6651 rm -rf conftest*
6652 eval "ac_cv_lib_$ac_lib_var=no"
6653fi
6654rm -f conftest*
6655LIBS="$ac_save_LIBS"
6656
6657fi
6658if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6659 echo "$ac_t""yes" 1>&6
6660 LEXLIB="-l$ac_lib"
6661else
6662 echo "$ac_t""no" 1>&6
6663fi
6664
6665fi
6666
6667
6668echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
b12915c1 6669echo "configure:6670: checking whether ln -s works" >&5
10f2d63a
VZ
6670if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
6671 echo $ac_n "(cached) $ac_c" 1>&6
6672else
6673 rm -f conftestdata
6674if ln -s X conftestdata 2>/dev/null
6675then
6676 rm -f conftestdata
6677 ac_cv_prog_LN_S="ln -s"
6678else
6679 ac_cv_prog_LN_S=ln
6680fi
6681fi
6682LN_S="$ac_cv_prog_LN_S"
6683if test "$ac_cv_prog_LN_S" = "ln -s"; then
6684 echo "$ac_t""yes" 1>&6
6685else
6686 echo "$ac_t""no" 1>&6
6687fi
6688
6689
6690
6691SEARCH_INCLUDE="\
6692 /usr/local/include \
6693 \
6694 /usr/Motif-1.2/include \
6695 /usr/Motif-2.1/include \
6696 \
6697 /usr/include/Motif1.2 \
6698 /opt/xpm/include/X11 \
6699 /opt/GBxpm/include/ \
6700 /opt/GBxpm/X11/include/ \
6701 \
6702 /usr/Motif1.2/include \
6703 /usr/dt/include \
afc31813
VZ
6704 /usr/openwin/include \
6705 \
10f2d63a
VZ
6706 /usr/include/Xm \
6707 \
6708 /usr/X11R6/include \
afc31813 6709 /usr/X11R6.4/include \
10f2d63a
VZ
6710 /usr/X11R5/include \
6711 /usr/X11R4/include \
6712 \
10f2d63a
VZ
6713 /usr/include/X11R6 \
6714 /usr/include/X11R5 \
6715 /usr/include/X11R4 \
6716 \
6717 /usr/local/X11R6/include \
6718 /usr/local/X11R5/include \
6719 /usr/local/X11R4/include \
6720 \
6721 /usr/local/include/X11R6 \
6722 /usr/local/include/X11R5 \
6723 /usr/local/include/X11R4 \
6724 \
6725 /usr/X11/include \
6726 /usr/include/X11 \
6727 /usr/local/X11/include \
6728 /usr/local/include/X11 \
6729 \
6730 /usr/X386/include \
6731 /usr/x386/include \
6732 /usr/XFree86/include/X11 \
6733 \
6734 /usr/include/gtk \
6735 /usr/local/include/gtk \
6736 /usr/include/glib \
6737 /usr/local/include/glib \
6738 \
6739 /usr/include/qt \
6740 /usr/local/include/qt \
6741 \
6742 /usr/include/windows \
6743 /usr/include/wine \
6744 /usr/local/include/wine \
6745 \
6746 /usr/unsupported/include \
6747 /usr/athena/include \
6748 /usr/local/x11r5/include \
6749 /usr/lpp/Xamples/include \
6750 \
10f2d63a 6751 /usr/openwin/share/include \
928b5c08
VZ
6752 \
6753 /usr/include"
10f2d63a
VZ
6754
6755SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s/include/lib/g` "
6756
6757
6758cat > confcache <<\EOF
6759# This file is a shell script that caches the results of configure
6760# tests run on this system so they can be shared between configure
6761# scripts and configure runs. It is not useful on other systems.
6762# If it contains results you don't want to keep, you may remove or edit it.
6763#
6764# By default, configure uses ./config.cache as the cache file,
6765# creating it if it does not exist already. You can give configure
6766# the --cache-file=FILE option to use a different cache file; that is
6767# what configure does when it calls configure scripts in
6768# subdirectories, so they share the cache.
6769# Giving --cache-file=/dev/null disables caching, for debugging configure.
6770# config.status only pays attention to the cache file if you give it the
6771# --recheck option to rerun configure.
6772#
6773EOF
6774# The following way of writing the cache mishandles newlines in values,
6775# but we know of no workaround that is simple, portable, and efficient.
6776# So, don't put newlines in cache variables' values.
6777# Ultrix sh set writes to stderr and can't be redirected directly,
6778# and sets the high bit in the cache file unless we assign to the vars.
6779(set) 2>&1 |
6780 case `(ac_space=' '; set | grep ac_space) 2>&1` in
6781 *ac_space=\ *)
6782 # `set' does not quote correctly, so add quotes (double-quote substitution
6783 # turns \\\\ into \\, and sed turns \\ into \).
6784 sed -n \
6785 -e "s/'/'\\\\''/g" \
6786 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
6787 ;;
6788 *)
6789 # `set' quotes correctly as required by POSIX, so do not add quotes.
6790 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
6791 ;;
6792 esac >> confcache
6793if cmp -s $cache_file confcache; then
6794 :
6795else
6796 if test -w $cache_file; then
6797 echo "updating cache $cache_file"
6798 cat confcache > $cache_file
6799 else
6800 echo "not updating unwritable cache $cache_file"
6801 fi
6802fi
6803rm -f confcache
6804
6805
6806
6807if test "$wxUSE_GUI" = "yes"; then
6808
6809TOOLKIT=
6810TOOLKIT_INCLUDE=
6811
6812GUIOBJS=
6813COMMONOBJS=
6814GENERICOBJS=
6815
6816GUI_TK_LIBRARY=
6817GUI_TK_LINK=
6818
6819WXGTK12=
6820
6821WXWINE=
6822
6823PROGRAM_EXT=
6824
6825if test "$wxUSE_CYGWIN" = 1 || test "$wxUSE_MINGW" = 1 ; then
6826 if test "$cross_compiling" = "yes" ; then
6827 echo "configure: warning: Cross compiling --- skipping windows.h check" 1>&2
6828 else
6829 echo $ac_n "checking for Windows headers""... $ac_c" 1>&6
b12915c1 6830echo "configure:6831: checking for Windows headers" >&5
10f2d63a
VZ
6831
6832ac_find_includes=
6833for ac_dir in $SEARCH_INCLUDE;
6834 do
6835 if test -f "$ac_dir/windows.h"; then
6836 ac_find_includes=$ac_dir
6837 break
6838 fi
6839 done
6840
6841 if test "$ac_find_includes" != "" ; then
6842 echo "$ac_t""found $ac_find_includes" 1>&6
6843 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE -I$ac_find_includes"
6844 else
6845 echo "$ac_t""no" 1>&6
6846 { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; }
6847 fi
6848 fi
6849
6850 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS msw"
6851 LIBS="$LIBS -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lctl3d32 -lcrtdll -ladvapi32 -lwsock32"
6852
6853 if test "$wxUSE_MINGW" = 1; then
6854 LDFLAGS="$LDFLAGS -mwindows"
6855 fi
6856
6857 TOOLKIT=MSW
6858
6859 GUIOBJS="\$(MSW_GUIOBJS)"
6860 GUIHEADERS="\$(MSW_HEADERS)"
6861 COMMONOBJS="\$(MSW_COMMONOBJS)"
6862 GENERICOBJS="\$(MSW_GENERICOBJS)"
6863 UNIXOBJS=
6864 GUIDIST=MSW_DIST
6865 PROGRAM_EXT=.exe
6866fi
6867
6868if test "$wxUSE_GTK" = 1; then
6869
6870 if test x$gtk_config_exec_prefix != x ; then
6871 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
6872 if test x${GTK_CONFIG+set} != xset ; then
6873 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
6874 fi
6875 fi
6876 if test x$gtk_config_prefix != x ; then
6877 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
6878 if test x${GTK_CONFIG+set} != xset ; then
6879 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
6880 fi
6881 fi
6882
6883 # Extract the first word of "gtk-config", so it can be a program name with args.
6884set dummy gtk-config; ac_word=$2
6885echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
b12915c1 6886echo "configure:6887: checking for $ac_word" >&5
10f2d63a
VZ
6887if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
6888 echo $ac_n "(cached) $ac_c" 1>&6
6889else
6890 case "$GTK_CONFIG" in
6891 /*)
6892 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
6893 ;;
6894 ?:/*)
6895 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
6896 ;;
6897 *)
6898 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6899 ac_dummy="$PATH"
6900 for ac_dir in $ac_dummy; do
6901 test -z "$ac_dir" && ac_dir=.
6902 if test -f $ac_dir/$ac_word; then
6903 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
6904 break
6905 fi
6906 done
6907 IFS="$ac_save_ifs"
6908 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
6909 ;;
6910esac
6911fi
6912GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
6913if test -n "$GTK_CONFIG"; then
6914 echo "$ac_t""$GTK_CONFIG" 1>&6
6915else
6916 echo "$ac_t""no" 1>&6
6917fi
6918
6919 min_gtk_version=1.2.1
6920 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
b12915c1 6921echo "configure:6922: checking for GTK - version >= $min_gtk_version" >&5
10f2d63a
VZ
6922 no_gtk=""
6923 if test "$GTK_CONFIG" != "no" ; then
6924 GTK_CFLAGS=`$GTK_CONFIG --cflags`
6925 GTK_LIBS=`$GTK_CONFIG --libs`
6926 ac_save_CFLAGS="$CFLAGS"
6927 ac_save_LIBS="$LIBS"
6928 CFLAGS="$CFLAGS $GTK_CFLAGS"
6929 LIBS="$LIBS $GTK_LIBS"
6930 if test "$cross_compiling" = yes; then
6931 echo $ac_n "cross compiling; assumed OK... $ac_c"
6932else
6933 cat > conftest.$ac_ext <<EOF
b12915c1 6934#line 6935 "configure"
10f2d63a
VZ
6935#include "confdefs.h"
6936
6937#include <gtk/gtk.h>
f49f2b0c 6938#include <gtk/gtkfeatures.h>
10f2d63a
VZ
6939#include <stdio.h>
6940
6941int
6942main ()
6943{
6944 int major, minor, micro;
6945
6946 if (sscanf("$min_gtk_version", "%d.%d.%d", &major, &minor, &micro) != 3) {
6947 printf("%s, bad version string\n", "$min_gtk_version");
6948 exit(1);
6949 }
6950
f49f2b0c
RR
6951 if ((GTK_MAJOR_VERSION != gtk_major_version) ||
6952 (GTK_MINOR_VERSION != gtk_minor_version) ||
6953 (GTK_MICRO_VERSION != gtk_micro_version)) {
6954 printf("Headers vs. library version mismatch!\n");
6955 exit(1);
6956 }
6957
10f2d63a
VZ
6958 if (gtk_minor_version == 1) return FALSE;
6959
6960 return !((gtk_major_version > major) ||
6961 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
6962 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)));
6963}
6964
6965EOF
b12915c1 6966if { (eval echo configure:6967: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10f2d63a
VZ
6967then
6968 :
6969else
6970 echo "configure: failed program was:" >&5
6971 cat conftest.$ac_ext >&5
6972 rm -fr conftest*
6973 no_gtk=yes
6974fi
6975rm -fr conftest*
6976fi
6977
6978 CFLAGS="$ac_save_CFLAGS"
6979 LIBS="$ac_save_LIBS"
6980 else
6981 no_gtk=yes
6982 fi
6983 if test "x$no_gtk" = x ; then
6984 echo "$ac_t""yes" 1>&6
6985 WXGTK12=1
6986 else
6987 echo "$ac_t""no" 1>&6
6988 GTK_CFLAGS=""
6989 GTK_LIBS=""
6990 { echo "configure: error: Is gtk-config in path and GTK+ is version 1.2.1 or above?" 1>&2; exit 1; }
6991 fi
6992
6993
6994
6995
6996 TOOLKIT_INCLUDE="$GTK_CFLAGS"
6997 GUI_TK_LIBRARY="$GTK_LIBS"
6998 TOOLKIT=GTK
6999
7000 GUIOBJS="\$(GTK_GUIOBJS)"
7001 GUIHEADERS="\$(GTK_HEADERS)"
7002 COMMONOBJS="\$(GTK_COMMONOBJS)"
7003 GENERICOBJS="\$(GTK_GENERICOBJS)"
7004 GUIDEPS="\$(GTK_GUIDEPS)"
7005 COMMONDEPS="\$(GTK_COMMONDEPS)"
7006 GENERICDEPS="\$(GTK_GENERICDEPS)"
7007 UNIXOBJS="\$(UNIX_OBJS)"
d9d8273d 7008 UNIXDEPS="\$(UNIX_DEPS)"
10f2d63a 7009 GUIDIST=GTK_DIST
7ec2881a
RR
7010
7011echo $ac_n "checking for gdk_im_open in -lgdk""... $ac_c" 1>&6
b12915c1 7012echo "configure:7013: checking for gdk_im_open in -lgdk" >&5
7ec2881a
RR
7013ac_lib_var=`echo gdk'_'gdk_im_open | sed 'y%./+-%__p_%'`
7014if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7015 echo $ac_n "(cached) $ac_c" 1>&6
7016else
7017 ac_save_LIBS="$LIBS"
7018LIBS="-lgdk $LIBS"
7019cat > conftest.$ac_ext <<EOF
b12915c1 7020#line 7021 "configure"
7ec2881a
RR
7021#include "confdefs.h"
7022/* Override any gcc2 internal prototype to avoid an error. */
7023/* We use char because int might match the return type of a gcc2
7024 builtin and then its argument prototype would still apply. */
7025char gdk_im_open();
7026
7027int main() {
7028gdk_im_open()
7029; return 0; }
7030EOF
b12915c1 7031if { (eval echo configure:7032: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7ec2881a
RR
7032 rm -rf conftest*
7033 eval "ac_cv_lib_$ac_lib_var=yes"
7034else
7035 echo "configure: failed program was:" >&5
7036 cat conftest.$ac_ext >&5
7037 rm -rf conftest*
7038 eval "ac_cv_lib_$ac_lib_var=no"
7039fi
7040rm -f conftest*
7041LIBS="$ac_save_LIBS"
7042
7043fi
7044if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7045 echo "$ac_t""yes" 1>&6
7046 cat >> confdefs.h <<\EOF
7047#define HAVE_XIM 1
7048EOF
7049
7050else
7051 echo "$ac_t""no" 1>&6
7052fi
7053
7054
10f2d63a
VZ
7055fi
7056
7057if test "$wxUSE_WINE" = 1; then
7058 echo $ac_n "checking for WINE includes""... $ac_c" 1>&6
b12915c1 7059echo "configure:7060: checking for WINE includes" >&5
10f2d63a
VZ
7060
7061ac_find_includes=
7062for ac_dir in $SEARCH_INCLUDE;
7063 do
7064 if test -f "$ac_dir/windows.h"; then
7065 ac_find_includes=$ac_dir
7066 break
7067 fi
7068 done
7069
7070 if test "$ac_find_includes" != "" ; then
7071 echo "$ac_t""found $ac_find_includes" 1>&6
7072 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE -I$ac_find_includes"
7073 else
7074 echo "$ac_t""no" 1>&6
7075 { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; }
7076 fi
7077
7078 XPM_LINK=""
7079 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
b12915c1 7080echo "configure:7081: checking for Xpm library" >&5
10f2d63a
VZ
7081
7082ac_find_libraries=
7083for ac_dir in $SEARCH_LIB;
7084 do
7085 for ac_extension in a so sl; do
7086 if test -f "$ac_dir/libXpm.$ac_extension"; then
7087 ac_find_libraries=$ac_dir
7088 break 2
7089 fi
7090 done
7091 done
7092
7093 if test "$ac_find_libraries" != "" ; then
7094 GUI_TK_LIBRARY="-L$ac_find_libraries"
7095 XPM_LINK="-lXpm"
7096 cat >> confdefs.h <<\EOF
7097#define wxHAVE_LIB_XPM 1
7098EOF
7099
7100 echo "$ac_t""found at $ac_find_libraries" 1>&6
7101 else
7102 echo "$ac_t""no" 1>&6
7103 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
7104 fi
7105
7106 MESA_LINK=""
7107 echo $ac_n "checking for Mesa library""... $ac_c" 1>&6
b12915c1 7108echo "configure:7109: checking for Mesa library" >&5
10f2d63a
VZ
7109
7110ac_find_libraries=
7111for ac_dir in $SEARCH_LIB;
7112 do
7113 for ac_extension in a so sl; do
7114 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
7115 ac_find_libraries=$ac_dir
7116 break 2
7117 fi
7118 done
7119 done
7120
7121 if test "$ac_find_libraries" != "" ; then
7122 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -L$ac_find_libraries"
7123 MESA_LINK="-lMesaGL"
7124 echo "$ac_t""found at $ac_find_libraries" 1>&6
7125 else
7126 { echo "configure: error: no" 1>&2; exit 1; }
7127 fi
7128
7129 GUI_TK_LINK="-lwine $MESA_LINK $XPM_LINK -lXxf86dga -lXxf86vm -lSM -lICE -lXext -lXmu -lX11 -lncurses -lm"
7130 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $GUI_TK_LINK"
7131 WXWINE=1
7132 TOOLKIT=MSW
7133
7134 GUIHEADERS="\$(MSW_HEADERS)"
7135 GUIOBJS="\$(MSW_GUIOBJS)"
7136 COMMONOBJS="\$(MSW_COMMONOBJS)"
7137 GENERICOBJS="\$(MSW_GENERICOBJS)"
7138 GUIDEPS="\$(MSW_GUIDEPS)"
7139 COMMONDEPS="\$(MSW_COMMONDEPS)"
7140 GENERICDEPS="\$(MSW_GENERICDEPS)"
7141 UNIXOBJS="\$(UNIX_OBJS)"
d9d8273d 7142 UNIXDEPS="\$(UNIX_DEPS)"
10f2d63a
VZ
7143 GUIDIST=MSW_DIST
7144fi
7145
7146if test "$wxUSE_MOTIF" = 1; then
ab9b9eab
VZ
7147 # If we find X, set shell vars x_includes and x_libraries to the
7148# paths, otherwise set no_x=yes.
7149# Uses ac_ vars as temps to allow command line to override cache and checks.
7150# --without-x overrides everything else, but does not touch the cache.
7151echo $ac_n "checking for X""... $ac_c" 1>&6
b12915c1 7152echo "configure:7153: checking for X" >&5
ab9b9eab
VZ
7153
7154# Check whether --with-x or --without-x was given.
7155if test "${with_x+set}" = set; then
7156 withval="$with_x"
7157 :
7158fi
ba337fe7 7159
ab9b9eab
VZ
7160# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7161if test "x$with_x" = xno; then
7162 # The user explicitly disabled X.
7163 have_x=disabled
7164else
7165 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
7166 # Both variables are already set.
7167 have_x=yes
7168 else
7169if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
7170 echo $ac_n "(cached) $ac_c" 1>&6
7171else
7172 # One or both of the vars are not set, and there is no cached value.
7173ac_x_includes=NO ac_x_libraries=NO
7174rm -fr conftestdir
7175if mkdir conftestdir; then
7176 cd conftestdir
7177 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
7178 cat > Imakefile <<'EOF'
7179acfindx:
7180 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
7181EOF
7182 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
7183 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7184 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
7185 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
10f2d63a 7186 for ac_extension in a so sl; do
ab9b9eab
VZ
7187 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
7188 test -f $ac_im_libdir/libX11.$ac_extension; then
7189 ac_im_usrlibdir=$ac_im_libdir; break
10f2d63a
VZ
7190 fi
7191 done
ab9b9eab
VZ
7192 # Screen out bogus values from the imake configuration. They are
7193 # bogus both because they are the default anyway, and because
7194 # using them would break gcc on systems where it needs fixed includes.
7195 case "$ac_im_incroot" in
7196 /usr/include) ;;
7197 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
7198 esac
7199 case "$ac_im_usrlibdir" in
7200 /usr/lib | /lib) ;;
7201 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
7202 esac
ba337fe7 7203 fi
ab9b9eab
VZ
7204 cd ..
7205 rm -fr conftestdir
7206fi
10f2d63a 7207
ab9b9eab
VZ
7208if test "$ac_x_includes" = NO; then
7209 # Guess where to find include files, by looking for this one X11 .h file.
7210 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
ba337fe7 7211
ab9b9eab
VZ
7212 # First, try using that file with no special directory specified.
7213cat > conftest.$ac_ext <<EOF
b12915c1 7214#line 7215 "configure"
ab9b9eab
VZ
7215#include "confdefs.h"
7216#include <$x_direct_test_include>
7217EOF
7218ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
b12915c1 7219{ (eval echo configure:7220: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ab9b9eab
VZ
7220ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7221if test -z "$ac_err"; then
7222 rm -rf conftest*
7223 # We can compile using X headers with no special include directory.
7224ac_x_includes=
7225else
7226 echo "$ac_err" >&5
7227 echo "configure: failed program was:" >&5
7228 cat conftest.$ac_ext >&5
7229 rm -rf conftest*
7230 # Look for the header file in a standard set of common directories.
7231# Check X11 before X11Rn because it is often a symlink to the current release.
7232 for ac_dir in \
7233 /usr/X11/include \
7234 /usr/X11R6/include \
7235 /usr/X11R5/include \
7236 /usr/X11R4/include \
7237 \
7238 /usr/include/X11 \
7239 /usr/include/X11R6 \
7240 /usr/include/X11R5 \
7241 /usr/include/X11R4 \
7242 \
7243 /usr/local/X11/include \
7244 /usr/local/X11R6/include \
7245 /usr/local/X11R5/include \
7246 /usr/local/X11R4/include \
7247 \
7248 /usr/local/include/X11 \
7249 /usr/local/include/X11R6 \
7250 /usr/local/include/X11R5 \
7251 /usr/local/include/X11R4 \
7252 \
7253 /usr/X386/include \
7254 /usr/x386/include \
7255 /usr/XFree86/include/X11 \
7256 \
7257 /usr/include \
7258 /usr/local/include \
7259 /usr/unsupported/include \
7260 /usr/athena/include \
7261 /usr/local/x11r5/include \
7262 /usr/lpp/Xamples/include \
7263 \
7264 /usr/openwin/include \
7265 /usr/openwin/share/include \
7266 ; \
10f2d63a 7267 do
ab9b9eab
VZ
7268 if test -r "$ac_dir/$x_direct_test_include"; then
7269 ac_x_includes=$ac_dir
10f2d63a
VZ
7270 break
7271 fi
7272 done
ab9b9eab
VZ
7273fi
7274rm -f conftest*
7275fi # $ac_x_includes = NO
10f2d63a 7276
ab9b9eab
VZ
7277if test "$ac_x_libraries" = NO; then
7278 # Check for the libraries.
10f2d63a 7279
ab9b9eab
VZ
7280 test -z "$x_direct_test_library" && x_direct_test_library=Xt
7281 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
10f2d63a 7282
ab9b9eab
VZ
7283 # See if we find them without any special options.
7284 # Don't add to $LIBS permanently.
7285 ac_save_LIBS="$LIBS"
7286 LIBS="-l$x_direct_test_library $LIBS"
7287cat > conftest.$ac_ext <<EOF
b12915c1 7288#line 7289 "configure"
ab9b9eab 7289#include "confdefs.h"
10f2d63a 7290
ab9b9eab
VZ
7291int main() {
7292${x_direct_test_function}()
7293; return 0; }
7294EOF
b12915c1 7295if { (eval echo configure:7296: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
7296 rm -rf conftest*
7297 LIBS="$ac_save_LIBS"
7298# We can link X programs with no special library path.
7299ac_x_libraries=
7300else
7301 echo "configure: failed program was:" >&5
7302 cat conftest.$ac_ext >&5
7303 rm -rf conftest*
7304 LIBS="$ac_save_LIBS"
7305# First see if replacing the include by lib works.
7306# Check X11 before X11Rn because it is often a symlink to the current release.
7307for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
7308 /usr/X11/lib \
7309 /usr/X11R6/lib \
7310 /usr/X11R5/lib \
7311 /usr/X11R4/lib \
7312 \
7313 /usr/lib/X11 \
7314 /usr/lib/X11R6 \
7315 /usr/lib/X11R5 \
7316 /usr/lib/X11R4 \
7317 \
7318 /usr/local/X11/lib \
7319 /usr/local/X11R6/lib \
7320 /usr/local/X11R5/lib \
7321 /usr/local/X11R4/lib \
7322 \
7323 /usr/local/lib/X11 \
7324 /usr/local/lib/X11R6 \
7325 /usr/local/lib/X11R5 \
7326 /usr/local/lib/X11R4 \
7327 \
7328 /usr/X386/lib \
7329 /usr/x386/lib \
7330 /usr/XFree86/lib/X11 \
7331 \
7332 /usr/lib \
7333 /usr/local/lib \
7334 /usr/unsupported/lib \
7335 /usr/athena/lib \
7336 /usr/local/x11r5/lib \
7337 /usr/lpp/Xamples/lib \
7338 /lib/usr/lib/X11 \
7339 \
7340 /usr/openwin/lib \
7341 /usr/openwin/share/lib \
7342 ; \
7343do
7344 for ac_extension in a so sl; do
7345 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
7346 ac_x_libraries=$ac_dir
7347 break 2
10f2d63a 7348 fi
10f2d63a 7349 done
ab9b9eab
VZ
7350done
7351fi
7352rm -f conftest*
7353fi # $ac_x_libraries = NO
10f2d63a 7354
ab9b9eab
VZ
7355if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
7356 # Didn't find X anywhere. Cache the known absence of X.
7357 ac_cv_have_x="have_x=no"
7358else
7359 # Record where we found X for the cache.
7360 ac_cv_have_x="have_x=yes \
7361 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
7362fi
7363fi
10f2d63a 7364 fi
ab9b9eab
VZ
7365 eval "$ac_cv_have_x"
7366fi # $with_x != no
10f2d63a 7367
ab9b9eab
VZ
7368if test "$have_x" != yes; then
7369 echo "$ac_t""$have_x" 1>&6
7370 no_x=yes
7371else
7372 # If each of the values was on the command line, it overrides each guess.
7373 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
7374 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
7375 # Update the cache value to reflect the command line values.
7376 ac_cv_have_x="have_x=yes \
7377 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
7378 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
7379fi
10f2d63a 7380
ab9b9eab
VZ
7381if test "$no_x" = yes; then
7382 # Not all programs may use this symbol, but it does not hurt to define it.
7383 cat >> confdefs.h <<\EOF
7384#define X_DISPLAY_MISSING 1
7385EOF
10f2d63a 7386
ab9b9eab
VZ
7387 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
7388else
7389 if test -n "$x_includes"; then
7390 X_CFLAGS="$X_CFLAGS -I$x_includes"
10f2d63a
VZ
7391 fi
7392
ab9b9eab
VZ
7393 # It would also be nice to do this for all -L options, not just this one.
7394 if test -n "$x_libraries"; then
7395 X_LIBS="$X_LIBS -L$x_libraries"
7396 # For Solaris; some versions of Sun CC require a space after -R and
7397 # others require no space. Words are not sufficient . . . .
7398 case "`(uname -sr) 2>/dev/null`" in
7399 "SunOS 5"*)
7400 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
b12915c1 7401echo "configure:7402: checking whether -R must be followed by a space" >&5
ab9b9eab
VZ
7402 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
7403 cat > conftest.$ac_ext <<EOF
b12915c1 7404#line 7405 "configure"
ab9b9eab 7405#include "confdefs.h"
10f2d63a 7406
ab9b9eab 7407int main() {
788deba1 7408
ab9b9eab
VZ
7409; return 0; }
7410EOF
b12915c1 7411if { (eval echo configure:7412: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
7412 rm -rf conftest*
7413 ac_R_nospace=yes
7414else
7415 echo "configure: failed program was:" >&5
7416 cat conftest.$ac_ext >&5
7417 rm -rf conftest*
7418 ac_R_nospace=no
7419fi
7420rm -f conftest*
7421 if test $ac_R_nospace = yes; then
7422 echo "$ac_t""no" 1>&6
7423 X_LIBS="$X_LIBS -R$x_libraries"
7424 else
7425 LIBS="$ac_xsave_LIBS -R $x_libraries"
7426 cat > conftest.$ac_ext <<EOF
b12915c1 7427#line 7428 "configure"
ab9b9eab 7428#include "confdefs.h"
788deba1 7429
ab9b9eab
VZ
7430int main() {
7431
7432; return 0; }
7433EOF
b12915c1 7434if { (eval echo configure:7435: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
7435 rm -rf conftest*
7436 ac_R_space=yes
7437else
7438 echo "configure: failed program was:" >&5
7439 cat conftest.$ac_ext >&5
7440 rm -rf conftest*
7441 ac_R_space=no
7442fi
7443rm -f conftest*
7444 if test $ac_R_space = yes; then
7445 echo "$ac_t""yes" 1>&6
7446 X_LIBS="$X_LIBS -R $x_libraries"
7447 else
7448 echo "$ac_t""neither works" 1>&6
7449 fi
7450 fi
7451 LIBS="$ac_xsave_LIBS"
7452 esac
7453 fi
7454
7455 # Check for system-dependent libraries X programs must link with.
7456 # Do this before checking for the system-independent R6 libraries
7457 # (-lICE), since we may need -lsocket or whatever for X linking.
7458
7459 if test "$ISC" = yes; then
7460 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
7461 else
7462 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
7463 # libraries were built with DECnet support. And karl@cs.umb.edu says
7464 # the Alpha needs dnet_stub (dnet does not exist).
7465 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
b12915c1 7466echo "configure:7467: checking for dnet_ntoa in -ldnet" >&5
ab9b9eab
VZ
7467ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
7468if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7469 echo $ac_n "(cached) $ac_c" 1>&6
7470else
7471 ac_save_LIBS="$LIBS"
7472LIBS="-ldnet $LIBS"
7473cat > conftest.$ac_ext <<EOF
b12915c1 7474#line 7475 "configure"
ab9b9eab
VZ
7475#include "confdefs.h"
7476/* Override any gcc2 internal prototype to avoid an error. */
7477/* We use char because int might match the return type of a gcc2
7478 builtin and then its argument prototype would still apply. */
7479char dnet_ntoa();
7480
7481int main() {
7482dnet_ntoa()
7483; return 0; }
7484EOF
b12915c1 7485if { (eval echo configure:7486: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
7486 rm -rf conftest*
7487 eval "ac_cv_lib_$ac_lib_var=yes"
7488else
7489 echo "configure: failed program was:" >&5
7490 cat conftest.$ac_ext >&5
7491 rm -rf conftest*
7492 eval "ac_cv_lib_$ac_lib_var=no"
7493fi
7494rm -f conftest*
7495LIBS="$ac_save_LIBS"
7496
7497fi
7498if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7499 echo "$ac_t""yes" 1>&6
7500 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
7501else
7502 echo "$ac_t""no" 1>&6
7503fi
7504
7505 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
7506 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
b12915c1 7507echo "configure:7508: checking for dnet_ntoa in -ldnet_stub" >&5
ab9b9eab
VZ
7508ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
7509if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7510 echo $ac_n "(cached) $ac_c" 1>&6
7511else
7512 ac_save_LIBS="$LIBS"
7513LIBS="-ldnet_stub $LIBS"
7514cat > conftest.$ac_ext <<EOF
b12915c1 7515#line 7516 "configure"
ab9b9eab
VZ
7516#include "confdefs.h"
7517/* Override any gcc2 internal prototype to avoid an error. */
7518/* We use char because int might match the return type of a gcc2
7519 builtin and then its argument prototype would still apply. */
7520char dnet_ntoa();
7521
7522int main() {
7523dnet_ntoa()
7524; return 0; }
7525EOF
b12915c1 7526if { (eval echo configure:7527: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
7527 rm -rf conftest*
7528 eval "ac_cv_lib_$ac_lib_var=yes"
7529else
7530 echo "configure: failed program was:" >&5
7531 cat conftest.$ac_ext >&5
7532 rm -rf conftest*
7533 eval "ac_cv_lib_$ac_lib_var=no"
7534fi
7535rm -f conftest*
7536LIBS="$ac_save_LIBS"
7537
7538fi
7539if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7540 echo "$ac_t""yes" 1>&6
7541 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
7542else
7543 echo "$ac_t""no" 1>&6
7544fi
7545
7546 fi
7547
7548 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
7549 # to get the SysV transport functions.
7550 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
7551 # needs -lnsl.
7552 # The nsl library prevents programs from opening the X display
7553 # on Irix 5.2, according to dickey@clark.net.
7554 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
b12915c1 7555echo "configure:7556: checking for gethostbyname" >&5
ab9b9eab
VZ
7556if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
7557 echo $ac_n "(cached) $ac_c" 1>&6
7558else
7559 cat > conftest.$ac_ext <<EOF
b12915c1 7560#line 7561 "configure"
ab9b9eab
VZ
7561#include "confdefs.h"
7562/* System header to define __stub macros and hopefully few prototypes,
7563 which can conflict with char gethostbyname(); below. */
7564#include <assert.h>
7565/* Override any gcc2 internal prototype to avoid an error. */
7566/* We use char because int might match the return type of a gcc2
7567 builtin and then its argument prototype would still apply. */
7568char gethostbyname();
7569
7570int main() {
7571
7572/* The GNU C library defines this for functions which it implements
7573 to always fail with ENOSYS. Some functions are actually named
7574 something starting with __ and the normal name is an alias. */
7575#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
7576choke me
7577#else
e694c22c 7578gethostbyname();
ab9b9eab
VZ
7579#endif
7580
7581; return 0; }
7582EOF
b12915c1 7583if { (eval echo configure:7584: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
7584 rm -rf conftest*
7585 eval "ac_cv_func_gethostbyname=yes"
7586else
7587 echo "configure: failed program was:" >&5
7588 cat conftest.$ac_ext >&5
7589 rm -rf conftest*
7590 eval "ac_cv_func_gethostbyname=no"
7591fi
7592rm -f conftest*
7593fi
7594
7595if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
7596 echo "$ac_t""yes" 1>&6
7597 :
7598else
7599 echo "$ac_t""no" 1>&6
7600fi
7601
7602 if test $ac_cv_func_gethostbyname = no; then
7603 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
b12915c1 7604echo "configure:7605: checking for gethostbyname in -lnsl" >&5
ab9b9eab
VZ
7605ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
7606if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7607 echo $ac_n "(cached) $ac_c" 1>&6
7608else
7609 ac_save_LIBS="$LIBS"
7610LIBS="-lnsl $LIBS"
7611cat > conftest.$ac_ext <<EOF
b12915c1 7612#line 7613 "configure"
ab9b9eab
VZ
7613#include "confdefs.h"
7614/* Override any gcc2 internal prototype to avoid an error. */
7615/* We use char because int might match the return type of a gcc2
7616 builtin and then its argument prototype would still apply. */
7617char gethostbyname();
7618
7619int main() {
7620gethostbyname()
7621; return 0; }
7622EOF
b12915c1 7623if { (eval echo configure:7624: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
7624 rm -rf conftest*
7625 eval "ac_cv_lib_$ac_lib_var=yes"
7626else
7627 echo "configure: failed program was:" >&5
7628 cat conftest.$ac_ext >&5
7629 rm -rf conftest*
7630 eval "ac_cv_lib_$ac_lib_var=no"
7631fi
7632rm -f conftest*
7633LIBS="$ac_save_LIBS"
7634
7635fi
7636if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7637 echo "$ac_t""yes" 1>&6
7638 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
7639else
7640 echo "$ac_t""no" 1>&6
7641fi
7642
7643 fi
7644
7645 # lieder@skyler.mavd.honeywell.com says without -lsocket,
7646 # socket/setsockopt and other routines are undefined under SCO ODT
7647 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
7648 # on later versions), says simon@lia.di.epfl.ch: it contains
7649 # gethostby* variants that don't use the nameserver (or something).
7650 # -lsocket must be given before -lnsl if both are needed.
7651 # We assume that if connect needs -lnsl, so does gethostbyname.
7652 echo $ac_n "checking for connect""... $ac_c" 1>&6
b12915c1 7653echo "configure:7654: checking for connect" >&5
ab9b9eab
VZ
7654if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
7655 echo $ac_n "(cached) $ac_c" 1>&6
7656else
7657 cat > conftest.$ac_ext <<EOF
b12915c1 7658#line 7659 "configure"
ab9b9eab
VZ
7659#include "confdefs.h"
7660/* System header to define __stub macros and hopefully few prototypes,
7661 which can conflict with char connect(); below. */
7662#include <assert.h>
7663/* Override any gcc2 internal prototype to avoid an error. */
7664/* We use char because int might match the return type of a gcc2
7665 builtin and then its argument prototype would still apply. */
7666char connect();
7667
7668int main() {
7669
7670/* The GNU C library defines this for functions which it implements
7671 to always fail with ENOSYS. Some functions are actually named
7672 something starting with __ and the normal name is an alias. */
7673#if defined (__stub_connect) || defined (__stub___connect)
7674choke me
7675#else
e694c22c 7676connect();
ab9b9eab
VZ
7677#endif
7678
7679; return 0; }
7680EOF
b12915c1 7681if { (eval echo configure:7682: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
7682 rm -rf conftest*
7683 eval "ac_cv_func_connect=yes"
7684else
7685 echo "configure: failed program was:" >&5
7686 cat conftest.$ac_ext >&5
7687 rm -rf conftest*
7688 eval "ac_cv_func_connect=no"
7689fi
7690rm -f conftest*
7691fi
7692
7693if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
7694 echo "$ac_t""yes" 1>&6
7695 :
7696else
7697 echo "$ac_t""no" 1>&6
7698fi
7699
7700 if test $ac_cv_func_connect = no; then
7701 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
b12915c1 7702echo "configure:7703: checking for connect in -lsocket" >&5
ab9b9eab
VZ
7703ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
7704if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7705 echo $ac_n "(cached) $ac_c" 1>&6
7706else
7707 ac_save_LIBS="$LIBS"
7708LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
7709cat > conftest.$ac_ext <<EOF
b12915c1 7710#line 7711 "configure"
ab9b9eab
VZ
7711#include "confdefs.h"
7712/* Override any gcc2 internal prototype to avoid an error. */
7713/* We use char because int might match the return type of a gcc2
7714 builtin and then its argument prototype would still apply. */
7715char connect();
7716
7717int main() {
7718connect()
7719; return 0; }
7720EOF
b12915c1 7721if { (eval echo configure:7722: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
7722 rm -rf conftest*
7723 eval "ac_cv_lib_$ac_lib_var=yes"
7724else
7725 echo "configure: failed program was:" >&5
7726 cat conftest.$ac_ext >&5
7727 rm -rf conftest*
7728 eval "ac_cv_lib_$ac_lib_var=no"
7729fi
7730rm -f conftest*
7731LIBS="$ac_save_LIBS"
7732
7733fi
7734if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7735 echo "$ac_t""yes" 1>&6
7736 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
7737else
7738 echo "$ac_t""no" 1>&6
7739fi
7740
7741 fi
7742
7743 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
7744 echo $ac_n "checking for remove""... $ac_c" 1>&6
b12915c1 7745echo "configure:7746: checking for remove" >&5
ab9b9eab
VZ
7746if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
7747 echo $ac_n "(cached) $ac_c" 1>&6
7748else
7749 cat > conftest.$ac_ext <<EOF
b12915c1 7750#line 7751 "configure"
ab9b9eab
VZ
7751#include "confdefs.h"
7752/* System header to define __stub macros and hopefully few prototypes,
7753 which can conflict with char remove(); below. */
7754#include <assert.h>
7755/* Override any gcc2 internal prototype to avoid an error. */
7756/* We use char because int might match the return type of a gcc2
7757 builtin and then its argument prototype would still apply. */
7758char remove();
7759
7760int main() {
7761
7762/* The GNU C library defines this for functions which it implements
7763 to always fail with ENOSYS. Some functions are actually named
7764 something starting with __ and the normal name is an alias. */
7765#if defined (__stub_remove) || defined (__stub___remove)
7766choke me
7767#else
e694c22c 7768remove();
ab9b9eab
VZ
7769#endif
7770
7771; return 0; }
7772EOF
b12915c1 7773if { (eval echo configure:7774: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
7774 rm -rf conftest*
7775 eval "ac_cv_func_remove=yes"
7776else
7777 echo "configure: failed program was:" >&5
7778 cat conftest.$ac_ext >&5
7779 rm -rf conftest*
7780 eval "ac_cv_func_remove=no"
7781fi
7782rm -f conftest*
7783fi
7784
7785if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
7786 echo "$ac_t""yes" 1>&6
7787 :
7788else
7789 echo "$ac_t""no" 1>&6
7790fi
7791
7792 if test $ac_cv_func_remove = no; then
7793 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
b12915c1 7794echo "configure:7795: checking for remove in -lposix" >&5
ab9b9eab
VZ
7795ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
7796if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7797 echo $ac_n "(cached) $ac_c" 1>&6
7798else
7799 ac_save_LIBS="$LIBS"
7800LIBS="-lposix $LIBS"
7801cat > conftest.$ac_ext <<EOF
b12915c1 7802#line 7803 "configure"
ab9b9eab
VZ
7803#include "confdefs.h"
7804/* Override any gcc2 internal prototype to avoid an error. */
7805/* We use char because int might match the return type of a gcc2
7806 builtin and then its argument prototype would still apply. */
7807char remove();
7808
7809int main() {
7810remove()
7811; return 0; }
7812EOF
b12915c1 7813if { (eval echo configure:7814: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
7814 rm -rf conftest*
7815 eval "ac_cv_lib_$ac_lib_var=yes"
7816else
7817 echo "configure: failed program was:" >&5
7818 cat conftest.$ac_ext >&5
7819 rm -rf conftest*
7820 eval "ac_cv_lib_$ac_lib_var=no"
7821fi
7822rm -f conftest*
7823LIBS="$ac_save_LIBS"
7824
7825fi
7826if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7827 echo "$ac_t""yes" 1>&6
7828 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
7829else
7830 echo "$ac_t""no" 1>&6
7831fi
7832
7833 fi
7834
7835 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
7836 echo $ac_n "checking for shmat""... $ac_c" 1>&6
b12915c1 7837echo "configure:7838: checking for shmat" >&5
ab9b9eab
VZ
7838if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
7839 echo $ac_n "(cached) $ac_c" 1>&6
7840else
7841 cat > conftest.$ac_ext <<EOF
b12915c1 7842#line 7843 "configure"
ab9b9eab
VZ
7843#include "confdefs.h"
7844/* System header to define __stub macros and hopefully few prototypes,
7845 which can conflict with char shmat(); below. */
7846#include <assert.h>
7847/* Override any gcc2 internal prototype to avoid an error. */
7848/* We use char because int might match the return type of a gcc2
7849 builtin and then its argument prototype would still apply. */
7850char shmat();
7851
7852int main() {
7853
7854/* The GNU C library defines this for functions which it implements
7855 to always fail with ENOSYS. Some functions are actually named
7856 something starting with __ and the normal name is an alias. */
7857#if defined (__stub_shmat) || defined (__stub___shmat)
7858choke me
7859#else
e694c22c 7860shmat();
ab9b9eab
VZ
7861#endif
7862
7863; return 0; }
7864EOF
b12915c1 7865if { (eval echo configure:7866: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
7866 rm -rf conftest*
7867 eval "ac_cv_func_shmat=yes"
7868else
7869 echo "configure: failed program was:" >&5
7870 cat conftest.$ac_ext >&5
7871 rm -rf conftest*
7872 eval "ac_cv_func_shmat=no"
7873fi
7874rm -f conftest*
7875fi
7876
7877if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
7878 echo "$ac_t""yes" 1>&6
7879 :
7880else
7881 echo "$ac_t""no" 1>&6
7882fi
7883
7884 if test $ac_cv_func_shmat = no; then
7885 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
b12915c1 7886echo "configure:7887: checking for shmat in -lipc" >&5
ab9b9eab
VZ
7887ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
7888if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7889 echo $ac_n "(cached) $ac_c" 1>&6
7890else
7891 ac_save_LIBS="$LIBS"
7892LIBS="-lipc $LIBS"
7893cat > conftest.$ac_ext <<EOF
b12915c1 7894#line 7895 "configure"
ab9b9eab
VZ
7895#include "confdefs.h"
7896/* Override any gcc2 internal prototype to avoid an error. */
7897/* We use char because int might match the return type of a gcc2
7898 builtin and then its argument prototype would still apply. */
7899char shmat();
7900
7901int main() {
7902shmat()
7903; return 0; }
7904EOF
b12915c1 7905if { (eval echo configure:7906: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
7906 rm -rf conftest*
7907 eval "ac_cv_lib_$ac_lib_var=yes"
7908else
7909 echo "configure: failed program was:" >&5
7910 cat conftest.$ac_ext >&5
7911 rm -rf conftest*
7912 eval "ac_cv_lib_$ac_lib_var=no"
7913fi
7914rm -f conftest*
7915LIBS="$ac_save_LIBS"
7916
7917fi
7918if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7919 echo "$ac_t""yes" 1>&6
7920 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
7921else
7922 echo "$ac_t""no" 1>&6
7923fi
7924
7925 fi
7926 fi
7927
7928 # Check for libraries that X11R6 Xt/Xaw programs need.
7929 ac_save_LDFLAGS="$LDFLAGS"
7930 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
7931 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
7932 # check for ICE first), but we must link in the order -lSM -lICE or
7933 # we get undefined symbols. So assume we have SM if we have ICE.
7934 # These have to be linked with before -lX11, unlike the other
7935 # libraries we check for below, so use a different variable.
7936 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
7937 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
b12915c1 7938echo "configure:7939: checking for IceConnectionNumber in -lICE" >&5
ab9b9eab
VZ
7939ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
7940if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7941 echo $ac_n "(cached) $ac_c" 1>&6
7942else
7943 ac_save_LIBS="$LIBS"
7944LIBS="-lICE $X_EXTRA_LIBS $LIBS"
7945cat > conftest.$ac_ext <<EOF
b12915c1 7946#line 7947 "configure"
ab9b9eab
VZ
7947#include "confdefs.h"
7948/* Override any gcc2 internal prototype to avoid an error. */
7949/* We use char because int might match the return type of a gcc2
7950 builtin and then its argument prototype would still apply. */
7951char IceConnectionNumber();
7952
7953int main() {
7954IceConnectionNumber()
7955; return 0; }
7956EOF
b12915c1 7957if { (eval echo configure:7958: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
7958 rm -rf conftest*
7959 eval "ac_cv_lib_$ac_lib_var=yes"
7960else
7961 echo "configure: failed program was:" >&5
7962 cat conftest.$ac_ext >&5
7963 rm -rf conftest*
7964 eval "ac_cv_lib_$ac_lib_var=no"
7965fi
7966rm -f conftest*
7967LIBS="$ac_save_LIBS"
7968
7969fi
7970if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7971 echo "$ac_t""yes" 1>&6
7972 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
7973else
7974 echo "$ac_t""no" 1>&6
7975fi
7976
7977 LDFLAGS="$ac_save_LDFLAGS"
7978
7979fi
7980
7981
7982 if test "$no_x" = "yes"; then
7983 { echo "configure: error: X11 not found" 1>&2; exit 1; }
7984 fi
7985
7986 GUI_TK_LIBRARY="$X_LIBS"
7987 TOOLKIT_INCLUDE="$X_CFLAGS"
7988
7989
7990 echo $ac_n "checking for Motif/Lesstif headers""... $ac_c" 1>&6
b12915c1 7991echo "configure:7992: checking for Motif/Lesstif headers" >&5
ab9b9eab
VZ
7992
7993ac_find_includes=
7994for ac_dir in $SEARCH_INCLUDE;
7995 do
7996 if test -f "$ac_dir/Xm/Xm.h"; then
7997 ac_find_includes=$ac_dir
7998 break
7999 fi
8000 done
8001
8002 if test "$ac_find_includes" != "" ; then
8003 echo "$ac_t""found $ac_find_includes" 1>&6
8004 else
8005 echo "$ac_t""no" 1>&6
8006 { echo "configure: error: please set CFLAGS to contain the location of Xm/Xm.h" 1>&2; exit 1; }
8007 fi
8008
8009 echo $ac_n "checking for Motif/Lesstif library""... $ac_c" 1>&6
b12915c1 8010echo "configure:8011: checking for Motif/Lesstif library" >&5
ab9b9eab
VZ
8011
8012ac_find_libraries=
8013for ac_dir in $SEARCH_LIB;
8014 do
8015 for ac_extension in a so sl; do
8016 if test -f "$ac_dir/libXm.$ac_extension"; then
8017 ac_find_libraries=$ac_dir
8018 break 2
8019 fi
8020 done
8021 done
8022
8023 if test "$ac_find_libraries" != "" ; then
8024
8025 ac_path_to_include=$ac_find_includes
8026 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
8027 result=$?
8028 if test $result = 0; then
8029 ac_path_to_include=""
8030 else
8031 ac_path_to_include="-I$ac_find_includes"
8032 fi
8033
8034
8035 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
8036 result=$?
8037 if test $result = 0; then
8038 ac_path_to_link=""
8039 else
8040 ac_path_to_link="-L$ac_find_libraries"
8041 fi
8042
8043
8044 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $ac_path_to_link"
8045 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE $ac_path_to_include"
8046 echo "$ac_t""found at $ac_find_libraries" 1>&6
8047 else
8048 echo "$ac_t""no" 1>&6
8049 { echo "configure: error: please set LDFLAGS to contain the location of libXm" 1>&2; exit 1; }
8050 fi
8051
8052 echo $ac_n "checking for Xt library""... $ac_c" 1>&6
b12915c1 8053echo "configure:8054: checking for Xt library" >&5
ab9b9eab
VZ
8054
8055ac_find_libraries=
8056for ac_dir in $SEARCH_LIB;
8057 do
8058 for ac_extension in a so sl; do
8059 if test -f "$ac_dir/libXt.$ac_extension"; then
8060 ac_find_libraries=$ac_dir
8061 break 2
8062 fi
8063 done
8064 done
8065
8066 if test "$ac_find_libraries" != "" ; then
8067
8068 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
8069 result=$?
8070 if test $result = 0; then
8071 ac_path_to_link=""
8072 else
8073 ac_path_to_link="-L$ac_find_libraries"
8074 fi
8075
8076 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $ac_path_to_link"
8077 echo "$ac_t""found at $ac_find_libraries" 1>&6
8078 else
8079 echo "$ac_t""no" 1>&6
8080 { echo "configure: error: please set LDFLAGS to contain the location of libXt" 1>&2; exit 1; }
8081 fi
8082
8083 XPM_LINK=""
8084 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
b12915c1 8085echo "configure:8086: checking for Xpm library" >&5
ab9b9eab
VZ
8086
8087ac_find_libraries=
8088for ac_dir in $SEARCH_LIB;
8089 do
8090 for ac_extension in a so sl; do
8091 if test -f "$ac_dir/libXpm.$ac_extension"; then
8092 ac_find_libraries=$ac_dir
8093 break 2
8094 fi
8095 done
8096 done
8097
8098 if test "$ac_find_libraries" != "" ; then
8099
8100 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
8101 result=$?
8102 if test $result = 0; then
8103 ac_path_to_link=""
8104 else
8105 ac_path_to_link="-L$ac_find_libraries"
8106 fi
8107
8108 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $ac_path_to_link"
8109 XPM_LINK="-lXpm "
8110 cat >> confdefs.h <<\EOF
8111#define wxHAVE_LIB_XPM 1
8112EOF
8113
8114 echo "$ac_t""found at $ac_find_libraries" 1>&6
8115 else
8116 echo "$ac_t""no" 1>&6
8117 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
8118 fi
8119
8120 GUI_TK_LINK="-lXm $XPM_LINK -lXmu -lXext -lXt -lX11 -lm"
8121 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $GUI_TK_LINK"
8122 TOOLKIT=MOTIF
8123
8124 GUIHEADERS="\$(MOTIF_HEADERS)"
8125 GUIOBJS="\$(MOTIF_GUIOBJS)"
8126 COMMONOBJS="\$(MOTIF_COMMONOBJS)"
788deba1
VZ
8127 GENERICOBJS="\$(MOTIF_GENERICOBJS)"
8128 GUIDEPS="\$(MOTIF_GUIDEPS)"
8129 COMMONDEPS="\$(MOTIF_COMMONDEPS)"
10f2d63a
VZ
8130 GENERICDEPS="\$(MOTIF_GENERICDEPS)"
8131 UNIXOBJS="\$(UNIX_OBJS)"
d9d8273d 8132 UNIXDEPS="\$(UNIX_DEPS)"
10f2d63a
VZ
8133 GUIDIST=MOTIF_DIST
8134fi
8135
8136TOOLKIT_DIR=`echo ${TOOLKIT} | tr "A-Z" "a-z"`
8137
8138TOOLKIT_DEF="-D__WX${TOOLKIT}__"
8139
8140WX_LIBRARY="wx_${TOOLKIT_DIR}"
8141
d9d8273d
RR
8142 ALL_OBJECTS="\$(GUIOBJS) \$(COMMONOBJS) \$(GENERICOBJS) \$(UNIXOBJS) \$(HTMLOBJS) \$(IODBCOBJS)"
8143 if test "$wxUSE_LIBJPEG" = "yes" ; then
8144 ALL_OBJECTS="${ALL_OBJECTS} \$(JPEGOBJS)"
8145 fi
8146 if test "$wxUSE_LIBTIFF" = "yes" ; then
8147 ALL_OBJECTS="${ALL_OBJECTS} \$(TIFFOBJS)"
8148 fi
8149 if test "$wxUSE_LIBPNG" = "yes" ; then
8150 ALL_OBJECTS="${ALL_OBJECTS} \$(PNGOBJS)"
8151 fi
8152 if test "$wxUSE_ZLIB" = "yes" ; then
8153 ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)"
8154 fi
10f2d63a
VZ
8155 ALL_DEPFILES="\$(GUIDEPS) \$(COMMONDEPS) \$(GENERICDEPS) \$(UNIXDEPS) \$(HTMLDEPS)"
8156 ALL_HEADERS="\$(GUIHEADERS) \$(HTML_HEADERS) \$(UNIX_HEADERS) \$(PROTOCOL_HEADERS) \$(GENERIC_HEADERS) \$(WX_HEADERS)"
8157else
8158
8159 ALL_OBJECTS="\$(BASE_OBJS)"
8160 ALL_DEPFILES="\${BASE_DEPS}"
8161 ALL_HEADERS="\${BASE_HEADERS}"
8162
8163 WX_LIBRARY="wxbase"
8164fi
8165
8166WX_LIBRARY_NAME="lib${WX_LIBRARY}.la"
8167
8168WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a"
8169
8170WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}-${WX_RELEASE}.so.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
8171
8172WX_LIBRARY_LINK1="lib${WX_LIBRARY}-${WX_RELEASE}.so.${WX_CURRENT}"
8173WX_LIBRARY_LINK2="lib${WX_LIBRARY}-${WX_RELEASE}.so"
8174WX_LIBRARY_LINK3="lib${WX_LIBRARY}.so"
8175
8176SHARED_LD=
8177PIC_FLAG=
8178WX_ALL=
8179WX_ALL_INSTALLED=
1d62a8b4 8180BURNT_LIBRARY_NAME=
10f2d63a 8181
b12915c1 8182
10f2d63a
VZ
8183if test "$wxUSE_SHARED" = "yes"; then
8184 case "${host}" in
8185 *-hp-hpux* )
8186 if test "$GCC" = yes ; then
69ffe1d2 8187 SHARED_LD="${CC} -shared -fPIC -o"
10f2d63a
VZ
8188 PIC_FLAG="-fPIC"
8189 else
8190 SHARED_LD="${CXX} -b -o"
8191 PIC_FLAG="+Z"
8192 fi
8193 WX_LIBRARY_NAME_SHARED="libwx_${TOOLKIT_DIR}.sl"
8194 WX_ALL=${WX_LIBRARY_NAME_SHARED}
8195 ;;
b12915c1
VZ
8196
8197 *-*-linux* )
10f2d63a
VZ
8198 SHARED_LD="${CC} -shared -o"
8199 PIC_FLAG="-fPIC"
8200 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
8201 WX_ALL="CREATE_LINKS"
b12915c1 8202 ;;
10f2d63a
VZ
8203 *-*-irix5* | *-*-irix6* )
8204 if test "$GCC" = yes ; then
8205 SHARED_LD="${CC} -shared -o"
8206 PIC_FLAG="-fPIC"
8207 else
8208 SHARED_LD="${CXX} -shared -o"
8209 fi
8210 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
8211 WX_ALL="CREATE_LINKS"
8212 ;;
8213 *-*-solaris2* )
8214 if test "$GCC" = yes ; then
8215 SHARED_LD="${CC} -shared -o"
8216 PIC_FLAG="-fPIC"
8217 else
8218 SHARED_LD="${CXX} -G -o"
8219 PIC_FLAG="-KPIC"
8220 fi
8221 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
8222 WX_ALL="CREATE_LINKS"
8223 ;;
8224 *-*-sunos4* )
8225 SHARED_LD="${CC} -shared -o"
8226 PIC_FLAG="-fPIC"
8227 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
8228 WX_ALL="CREATE_LINKS"
8229 ;;
8230 *-*-freebsd* | *-*-netbsd*)
8231 SHARED_LD="${CC} -shared -o"
8232 PIC_FLAG="-fPIC"
8233 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
8234 WX_ALL="CREATE_LINKS"
8235 ;;
8236 *-*-osf* )
8237 SHARED_LD="${CXX} -shared -o"
8238 PIC_FLAG="-fPIC"
8239 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
8240 WX_ALL="CREATE_LINKS"
8241 ;;
8242 *-*-dgux5* )
8243 SHARED_LD="${CXX} -shared -o"
8244 PIC_FLAG="-fPIC"
8245 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
8246 WX_ALL="CREATE_LINKS"
8247 ;;
8248 *-*-sysv5* )
8249 SHARED_LD="${CC} -shared -o"
8250 PIC_FLAG="-fPIC"
8251 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
8252 WX_ALL="CREATE_LINKS"
8253 ;;
8254 *-*-aix* )
8255 SHARED_LD="/usr/lpp/xlC/bin/makeC++SharedLib -p 0 -o"
8256 WX_ALL=${WX_LIBRARY_NAME_SHARED}
8257 ;;
8258 *-*-cygwin32* )
8259 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
8260 WX_ALL="${WX_LIBRARY_NAME_STATIC}"
8261 ;;
b12915c1 8262 *-*-mingw32* )
10f2d63a
VZ
8263 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
8264 WX_ALL="${WX_LIBRARY_NAME_STATIC}"
8265 ;;
8266 *-pc-os2_emx )
8267 ;;
b12915c1
VZ
8268 *-*-beos* )
8269 SHARED_LD="${CC} -shared -o"
8270 PIC_FLAG="-fPIC"
8271 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
8272 WX_ALL="CREATE_LINKS"
8273 ;;
10f2d63a
VZ
8274 *)
8275 { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; }
8276 esac
8277
8278 if test "x$WX_TARGET_LIBRARY" = "x"; then
8279 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}"
8280 fi
8281else
8282 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
8283 WX_ALL="${WX_LIBRARY_NAME_STATIC}"
8284fi
8285
8286
8287for ac_hdr in strings.h
8288do
8289ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8290echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
b12915c1 8291echo "configure:8292: checking for $ac_hdr" >&5
10f2d63a
VZ
8292if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8293 echo $ac_n "(cached) $ac_c" 1>&6
8294else
8295 cat > conftest.$ac_ext <<EOF
b12915c1 8296#line 8297 "configure"
10f2d63a
VZ
8297#include "confdefs.h"
8298#include <$ac_hdr>
8299EOF
8300ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
b12915c1 8301{ (eval echo configure:8302: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
8302ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8303if test -z "$ac_err"; then
8304 rm -rf conftest*
8305 eval "ac_cv_header_$ac_safe=yes"
8306else
8307 echo "$ac_err" >&5
8308 echo "configure: failed program was:" >&5
8309 cat conftest.$ac_ext >&5
8310 rm -rf conftest*
8311 eval "ac_cv_header_$ac_safe=no"
8312fi
8313rm -f conftest*
8314fi
8315if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8316 echo "$ac_t""yes" 1>&6
8317 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8318 cat >> confdefs.h <<EOF
8319#define $ac_tr_hdr 1
8320EOF
8321
8322else
8323 echo "$ac_t""no" 1>&6
8324fi
8325done
8326
8327for ac_hdr in unistd.h
8328do
8329ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8330echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
b12915c1 8331echo "configure:8332: checking for $ac_hdr" >&5
10f2d63a
VZ
8332if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8333 echo $ac_n "(cached) $ac_c" 1>&6
8334else
8335 cat > conftest.$ac_ext <<EOF
b12915c1 8336#line 8337 "configure"
10f2d63a
VZ
8337#include "confdefs.h"
8338#include <$ac_hdr>
8339EOF
8340ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
b12915c1 8341{ (eval echo configure:8342: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
8342ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8343if test -z "$ac_err"; then
8344 rm -rf conftest*
8345 eval "ac_cv_header_$ac_safe=yes"
8346else
8347 echo "$ac_err" >&5
8348 echo "configure: failed program was:" >&5
8349 cat conftest.$ac_ext >&5
8350 rm -rf conftest*
8351 eval "ac_cv_header_$ac_safe=no"
8352fi
8353rm -f conftest*
8354fi
8355if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8356 echo "$ac_t""yes" 1>&6
8357 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8358 cat >> confdefs.h <<EOF
8359#define $ac_tr_hdr 1
8360EOF
8361
8362else
8363 echo "$ac_t""no" 1>&6
8364fi
8365done
8366
8367for ac_hdr in wchar.h
8368do
8369ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8370echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
b12915c1 8371echo "configure:8372: checking for $ac_hdr" >&5
10f2d63a
VZ
8372if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8373 echo $ac_n "(cached) $ac_c" 1>&6
8374else
8375 cat > conftest.$ac_ext <<EOF
b12915c1 8376#line 8377 "configure"
10f2d63a
VZ
8377#include "confdefs.h"
8378#include <$ac_hdr>
8379EOF
8380ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
b12915c1 8381{ (eval echo configure:8382: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
8382ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8383if test -z "$ac_err"; then
8384 rm -rf conftest*
8385 eval "ac_cv_header_$ac_safe=yes"
8386else
8387 echo "$ac_err" >&5
8388 echo "configure: failed program was:" >&5
8389 cat conftest.$ac_ext >&5
8390 rm -rf conftest*
8391 eval "ac_cv_header_$ac_safe=no"
8392fi
8393rm -f conftest*
8394fi
8395if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8396 echo "$ac_t""yes" 1>&6
8397 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8398 cat >> confdefs.h <<EOF
8399#define $ac_tr_hdr 1
8400EOF
8401
8402else
8403 echo "$ac_t""no" 1>&6
8404fi
8405done
8406
8407for ac_hdr in wcstr.h
8408do
8409ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8410echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
b12915c1 8411echo "configure:8412: checking for $ac_hdr" >&5
10f2d63a
VZ
8412if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8413 echo $ac_n "(cached) $ac_c" 1>&6
8414else
8415 cat > conftest.$ac_ext <<EOF
b12915c1 8416#line 8417 "configure"
10f2d63a
VZ
8417#include "confdefs.h"
8418#include <$ac_hdr>
8419EOF
8420ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
b12915c1 8421{ (eval echo configure:8422: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
8422ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8423if test -z "$ac_err"; then
8424 rm -rf conftest*
8425 eval "ac_cv_header_$ac_safe=yes"
8426else
8427 echo "$ac_err" >&5
8428 echo "configure: failed program was:" >&5
8429 cat conftest.$ac_ext >&5
8430 rm -rf conftest*
8431 eval "ac_cv_header_$ac_safe=no"
8432fi
8433rm -f conftest*
8434fi
8435if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8436 echo "$ac_t""yes" 1>&6
8437 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8438 cat >> confdefs.h <<EOF
8439#define $ac_tr_hdr 1
8440EOF
8441
8442else
8443 echo "$ac_t""no" 1>&6
8444fi
8445done
8446
8447for ac_hdr in fnmatch.h
8448do
8449ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8450echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
b12915c1 8451echo "configure:8452: checking for $ac_hdr" >&5
10f2d63a
VZ
8452if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8453 echo $ac_n "(cached) $ac_c" 1>&6
8454else
8455 cat > conftest.$ac_ext <<EOF
b12915c1 8456#line 8457 "configure"
10f2d63a
VZ
8457#include "confdefs.h"
8458#include <$ac_hdr>
8459EOF
8460ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
b12915c1 8461{ (eval echo configure:8462: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
8462ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8463if test -z "$ac_err"; then
8464 rm -rf conftest*
8465 eval "ac_cv_header_$ac_safe=yes"
8466else
8467 echo "$ac_err" >&5
8468 echo "configure: failed program was:" >&5
8469 cat conftest.$ac_ext >&5
8470 rm -rf conftest*
8471 eval "ac_cv_header_$ac_safe=no"
8472fi
8473rm -f conftest*
8474fi
8475if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8476 echo "$ac_t""yes" 1>&6
8477 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8478 cat >> confdefs.h <<EOF
8479#define $ac_tr_hdr 1
8480EOF
8481
8482else
8483 echo "$ac_t""no" 1>&6
8484fi
8485done
8486
8487
8488if test "$wxUSE_GUI" = "yes"; then
8489 for ac_hdr in X11/XKBlib.h
8490do
8491ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8492echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
b12915c1 8493echo "configure:8494: checking for $ac_hdr" >&5
10f2d63a
VZ
8494if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8495 echo $ac_n "(cached) $ac_c" 1>&6
8496else
8497 cat > conftest.$ac_ext <<EOF
b12915c1 8498#line 8499 "configure"
10f2d63a
VZ
8499#include "confdefs.h"
8500#include <$ac_hdr>
8501EOF
8502ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
b12915c1 8503{ (eval echo configure:8504: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
8504ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8505if test -z "$ac_err"; then
8506 rm -rf conftest*
8507 eval "ac_cv_header_$ac_safe=yes"
8508else
8509 echo "$ac_err" >&5
8510 echo "configure: failed program was:" >&5
8511 cat conftest.$ac_ext >&5
8512 rm -rf conftest*
8513 eval "ac_cv_header_$ac_safe=no"
8514fi
8515rm -f conftest*
8516fi
8517if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8518 echo "$ac_t""yes" 1>&6
8519 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8520 cat >> confdefs.h <<EOF
8521#define $ac_tr_hdr 1
8522EOF
8523
8524else
8525 echo "$ac_t""no" 1>&6
8526fi
8527done
8528
8529fi
8530
8531
8532echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
b12915c1 8533echo "configure:8534: checking for ANSI C header files" >&5
10f2d63a
VZ
8534if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
8535 echo $ac_n "(cached) $ac_c" 1>&6
8536else
8537 cat > conftest.$ac_ext <<EOF
b12915c1 8538#line 8539 "configure"
10f2d63a
VZ
8539#include "confdefs.h"
8540#include <stdlib.h>
8541#include <stdarg.h>
8542#include <string.h>
8543#include <float.h>
8544EOF
8545ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
b12915c1 8546{ (eval echo configure:8547: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
8547ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8548if test -z "$ac_err"; then
8549 rm -rf conftest*
8550 ac_cv_header_stdc=yes
8551else
8552 echo "$ac_err" >&5
8553 echo "configure: failed program was:" >&5
8554 cat conftest.$ac_ext >&5
8555 rm -rf conftest*
8556 ac_cv_header_stdc=no
8557fi
8558rm -f conftest*
8559
8560if test $ac_cv_header_stdc = yes; then
8561 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8562cat > conftest.$ac_ext <<EOF
b12915c1 8563#line 8564 "configure"
10f2d63a
VZ
8564#include "confdefs.h"
8565#include <string.h>
8566EOF
8567if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8568 egrep "memchr" >/dev/null 2>&1; then
8569 :
8570else
8571 rm -rf conftest*
8572 ac_cv_header_stdc=no
8573fi
8574rm -f conftest*
8575
8576fi
8577
8578if test $ac_cv_header_stdc = yes; then
8579 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8580cat > conftest.$ac_ext <<EOF
b12915c1 8581#line 8582 "configure"
10f2d63a
VZ
8582#include "confdefs.h"
8583#include <stdlib.h>
8584EOF
8585if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8586 egrep "free" >/dev/null 2>&1; then
8587 :
8588else
8589 rm -rf conftest*
8590 ac_cv_header_stdc=no
8591fi
8592rm -f conftest*
8593
8594fi
8595
8596if test $ac_cv_header_stdc = yes; then
8597 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8598if test "$cross_compiling" = yes; then
8599 :
8600else
8601 cat > conftest.$ac_ext <<EOF
b12915c1 8602#line 8603 "configure"
10f2d63a
VZ
8603#include "confdefs.h"
8604#include <ctype.h>
8605#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8606#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8607#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8608int main () { int i; for (i = 0; i < 256; i++)
8609if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
8610exit (0); }
8611
8612EOF
b12915c1 8613if { (eval echo configure:8614: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10f2d63a
VZ
8614then
8615 :
8616else
8617 echo "configure: failed program was:" >&5
8618 cat conftest.$ac_ext >&5
8619 rm -fr conftest*
8620 ac_cv_header_stdc=no
8621fi
8622rm -fr conftest*
8623fi
8624
8625fi
8626fi
8627
8628echo "$ac_t""$ac_cv_header_stdc" 1>&6
8629if test $ac_cv_header_stdc = yes; then
8630 cat >> confdefs.h <<\EOF
8631#define STDC_HEADERS 1
8632EOF
8633
8634fi
8635
8636echo $ac_n "checking for mode_t""... $ac_c" 1>&6
b12915c1 8637echo "configure:8638: checking for mode_t" >&5
10f2d63a
VZ
8638if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
8639 echo $ac_n "(cached) $ac_c" 1>&6
8640else
8641 cat > conftest.$ac_ext <<EOF
b12915c1 8642#line 8643 "configure"
10f2d63a
VZ
8643#include "confdefs.h"
8644#include <sys/types.h>
8645#if STDC_HEADERS
8646#include <stdlib.h>
8647#include <stddef.h>
8648#endif
8649EOF
8650if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8651 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
8652 rm -rf conftest*
8653 ac_cv_type_mode_t=yes
8654else
8655 rm -rf conftest*
8656 ac_cv_type_mode_t=no
8657fi
8658rm -f conftest*
8659
8660fi
8661echo "$ac_t""$ac_cv_type_mode_t" 1>&6
8662if test $ac_cv_type_mode_t = no; then
8663 cat >> confdefs.h <<\EOF
8664#define mode_t int
8665EOF
8666
8667fi
8668
8669echo $ac_n "checking for off_t""... $ac_c" 1>&6
b12915c1 8670echo "configure:8671: checking for off_t" >&5
10f2d63a
VZ
8671if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
8672 echo $ac_n "(cached) $ac_c" 1>&6
8673else
8674 cat > conftest.$ac_ext <<EOF
b12915c1 8675#line 8676 "configure"
10f2d63a
VZ
8676#include "confdefs.h"
8677#include <sys/types.h>
8678#if STDC_HEADERS
8679#include <stdlib.h>
8680#include <stddef.h>
8681#endif
8682EOF
8683if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8684 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
8685 rm -rf conftest*
8686 ac_cv_type_off_t=yes
8687else
8688 rm -rf conftest*
8689 ac_cv_type_off_t=no
8690fi
8691rm -f conftest*
8692
8693fi
8694echo "$ac_t""$ac_cv_type_off_t" 1>&6
8695if test $ac_cv_type_off_t = no; then
8696 cat >> confdefs.h <<\EOF
8697#define off_t long
8698EOF
8699
8700fi
8701
8702echo $ac_n "checking for pid_t""... $ac_c" 1>&6
b12915c1 8703echo "configure:8704: checking for pid_t" >&5
10f2d63a
VZ
8704if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
8705 echo $ac_n "(cached) $ac_c" 1>&6
8706else
8707 cat > conftest.$ac_ext <<EOF
b12915c1 8708#line 8709 "configure"
10f2d63a
VZ
8709#include "confdefs.h"
8710#include <sys/types.h>
8711#if STDC_HEADERS
8712#include <stdlib.h>
8713#include <stddef.h>
8714#endif
8715EOF
8716if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8717 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
8718 rm -rf conftest*
8719 ac_cv_type_pid_t=yes
8720else
8721 rm -rf conftest*
8722 ac_cv_type_pid_t=no
8723fi
8724rm -f conftest*
8725
8726fi
8727echo "$ac_t""$ac_cv_type_pid_t" 1>&6
8728if test $ac_cv_type_pid_t = no; then
8729 cat >> confdefs.h <<\EOF
8730#define pid_t int
8731EOF
8732
8733fi
8734
8735echo $ac_n "checking for size_t""... $ac_c" 1>&6
b12915c1 8736echo "configure:8737: checking for size_t" >&5
10f2d63a
VZ
8737if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
8738 echo $ac_n "(cached) $ac_c" 1>&6
8739else
8740 cat > conftest.$ac_ext <<EOF
b12915c1 8741#line 8742 "configure"
10f2d63a
VZ
8742#include "confdefs.h"
8743#include <sys/types.h>
8744#if STDC_HEADERS
8745#include <stdlib.h>
8746#include <stddef.h>
8747#endif
8748EOF
8749if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8750 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
8751 rm -rf conftest*
8752 ac_cv_type_size_t=yes
8753else
8754 rm -rf conftest*
8755 ac_cv_type_size_t=no
8756fi
8757rm -f conftest*
8758
8759fi
8760echo "$ac_t""$ac_cv_type_size_t" 1>&6
8761if test $ac_cv_type_size_t = no; then
8762 cat >> confdefs.h <<\EOF
8763#define size_t unsigned
8764EOF
8765
8766fi
8767
8768echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
b12915c1 8769echo "configure:8770: checking for uid_t in sys/types.h" >&5
10f2d63a
VZ
8770if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
8771 echo $ac_n "(cached) $ac_c" 1>&6
8772else
8773 cat > conftest.$ac_ext <<EOF
b12915c1 8774#line 8775 "configure"
10f2d63a
VZ
8775#include "confdefs.h"
8776#include <sys/types.h>
8777EOF
8778if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8779 egrep "uid_t" >/dev/null 2>&1; then
8780 rm -rf conftest*
8781 ac_cv_type_uid_t=yes
8782else
8783 rm -rf conftest*
8784 ac_cv_type_uid_t=no
8785fi
8786rm -f conftest*
8787
8788fi
8789
8790echo "$ac_t""$ac_cv_type_uid_t" 1>&6
8791if test $ac_cv_type_uid_t = no; then
8792 cat >> confdefs.h <<\EOF
8793#define uid_t int
8794EOF
8795
8796 cat >> confdefs.h <<\EOF
8797#define gid_t int
8798EOF
8799
8800fi
8801
8802
8803
b12915c1
VZ
8804echo $ac_n "checking for pw_gecos in struct passwd""... $ac_c" 1>&6
8805echo "configure:8806: checking for pw_gecos in struct passwd" >&5
8806if eval "test \"`echo '$''{'wx_cv_struct_pw_gecos'+set}'`\" = set"; then
8807 echo $ac_n "(cached) $ac_c" 1>&6
8808else
8809
8810 cat > conftest.$ac_ext <<EOF
8811#line 8812 "configure"
8812#include "confdefs.h"
8813#include <pwd.h>
8814int main() {
8815
8816 char *p;
8817 struct passwd *pw;
8818 p = pw->pw_gecos;
8819
8820; return 0; }
8821EOF
8822if { (eval echo configure:8823: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8823 rm -rf conftest*
8824
8825 wx_cv_struct_pw_gecos=yes
8826 cat >> confdefs.h <<\EOF
8827#define HAVE_PW_GECOS 1
8828EOF
8829
8830
8831else
8832 echo "configure: failed program was:" >&5
8833 cat conftest.$ac_ext >&5
8834 rm -rf conftest*
8835
8836 wx_cv_struct_pw_gecos=no
8837
8838
8839fi
8840rm -f conftest*
8841
8842
8843fi
8844
8845echo "$ac_t""$wx_cv_struct_pw_gecos" 1>&6
8846
10f2d63a
VZ
8847
8848echo $ac_n "checking for working const""... $ac_c" 1>&6
b12915c1 8849echo "configure:8850: checking for working const" >&5
10f2d63a
VZ
8850if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
8851 echo $ac_n "(cached) $ac_c" 1>&6
8852else
8853 cat > conftest.$ac_ext <<EOF
b12915c1 8854#line 8855 "configure"
10f2d63a
VZ
8855#include "confdefs.h"
8856
8857int main() {
8858
8859/* Ultrix mips cc rejects this. */
8860typedef int charset[2]; const charset x;
8861/* SunOS 4.1.1 cc rejects this. */
8862char const *const *ccp;
8863char **p;
8864/* NEC SVR4.0.2 mips cc rejects this. */
8865struct point {int x, y;};
8866static struct point const zero = {0,0};
8867/* AIX XL C 1.02.0.0 rejects this.
8868 It does not let you subtract one const X* pointer from another in an arm
8869 of an if-expression whose if-part is not a constant expression */
8870const char *g = "string";
8871ccp = &g + (g ? g-g : 0);
8872/* HPUX 7.0 cc rejects these. */
8873++ccp;
8874p = (char**) ccp;
8875ccp = (char const *const *) p;
8876{ /* SCO 3.2v4 cc rejects this. */
8877 char *t;
8878 char const *s = 0 ? (char *) 0 : (char const *) 0;
8879
8880 *t++ = 0;
8881}
8882{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8883 int x[] = {25, 17};
8884 const int *foo = &x[0];
8885 ++foo;
8886}
8887{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8888 typedef const int *iptr;
8889 iptr p = 0;
8890 ++p;
8891}
8892{ /* AIX XL C 1.02.0.0 rejects this saying
8893 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8894 struct s { int j; const int *ap[3]; };
8895 struct s *b; b->j = 5;
8896}
8897{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8898 const int foo = 10;
8899}
8900
8901; return 0; }
8902EOF
b12915c1 8903if { (eval echo configure:8904: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10f2d63a
VZ
8904 rm -rf conftest*
8905 ac_cv_c_const=yes
8906else
8907 echo "configure: failed program was:" >&5
8908 cat conftest.$ac_ext >&5
8909 rm -rf conftest*
8910 ac_cv_c_const=no
8911fi
8912rm -f conftest*
8913fi
8914
8915echo "$ac_t""$ac_cv_c_const" 1>&6
8916if test $ac_cv_c_const = no; then
8917 cat >> confdefs.h <<\EOF
8918#define const
8919EOF
8920
8921fi
8922
8923echo $ac_n "checking for inline""... $ac_c" 1>&6
b12915c1 8924echo "configure:8925: checking for inline" >&5
10f2d63a
VZ
8925if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
8926 echo $ac_n "(cached) $ac_c" 1>&6
8927else
8928 ac_cv_c_inline=no
8929for ac_kw in inline __inline__ __inline; do
8930 cat > conftest.$ac_ext <<EOF
b12915c1 8931#line 8932 "configure"
10f2d63a
VZ
8932#include "confdefs.h"
8933
8934int main() {
8935} $ac_kw foo() {
8936; return 0; }
8937EOF
b12915c1 8938if { (eval echo configure:8939: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10f2d63a
VZ
8939 rm -rf conftest*
8940 ac_cv_c_inline=$ac_kw; break
8941else
8942 echo "configure: failed program was:" >&5
8943 cat conftest.$ac_ext >&5
8944fi
8945rm -f conftest*
8946done
8947
8948fi
8949
8950echo "$ac_t""$ac_cv_c_inline" 1>&6
8951case "$ac_cv_c_inline" in
8952 inline | yes) ;;
8953 no) cat >> confdefs.h <<\EOF
8954#define inline
8955EOF
8956 ;;
8957 *) cat >> confdefs.h <<EOF
8958#define inline $ac_cv_c_inline
8959EOF
8960 ;;
8961esac
8962
8963
8964echo $ac_n "checking size of char""... $ac_c" 1>&6
b12915c1 8965echo "configure:8966: checking size of char" >&5
10f2d63a
VZ
8966if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then
8967 echo $ac_n "(cached) $ac_c" 1>&6
8968else
8969 if test "$cross_compiling" = yes; then
8970 ac_cv_sizeof_char=1
8971else
8972 cat > conftest.$ac_ext <<EOF
b12915c1 8973#line 8974 "configure"
10f2d63a
VZ
8974#include "confdefs.h"
8975#include <stdio.h>
8976main()
8977{
8978 FILE *f=fopen("conftestval", "w");
8979 if (!f) exit(1);
8980 fprintf(f, "%d\n", sizeof(char));
8981 exit(0);
8982}
8983EOF
b12915c1 8984if { (eval echo configure:8985: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10f2d63a
VZ
8985then
8986 ac_cv_sizeof_char=`cat conftestval`
8987else
8988 echo "configure: failed program was:" >&5
8989 cat conftest.$ac_ext >&5
8990 rm -fr conftest*
8991 ac_cv_sizeof_char=0
8992fi
8993rm -fr conftest*
8994fi
8995
8996fi
8997echo "$ac_t""$ac_cv_sizeof_char" 1>&6
8998cat >> confdefs.h <<EOF
8999#define SIZEOF_CHAR $ac_cv_sizeof_char
9000EOF
9001
9002
9003echo $ac_n "checking size of short""... $ac_c" 1>&6
b12915c1 9004echo "configure:9005: checking size of short" >&5
10f2d63a
VZ
9005if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
9006 echo $ac_n "(cached) $ac_c" 1>&6
9007else
9008 if test "$cross_compiling" = yes; then
9009 ac_cv_sizeof_short=2
9010else
9011 cat > conftest.$ac_ext <<EOF
b12915c1 9012#line 9013 "configure"
10f2d63a
VZ
9013#include "confdefs.h"
9014#include <stdio.h>
9015main()
9016{
9017 FILE *f=fopen("conftestval", "w");
9018 if (!f) exit(1);
9019 fprintf(f, "%d\n", sizeof(short));
9020 exit(0);
9021}
9022EOF
b12915c1 9023if { (eval echo configure:9024: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10f2d63a
VZ
9024then
9025 ac_cv_sizeof_short=`cat conftestval`
9026else
9027 echo "configure: failed program was:" >&5
9028 cat conftest.$ac_ext >&5
9029 rm -fr conftest*
9030 ac_cv_sizeof_short=0
9031fi
9032rm -fr conftest*
9033fi
9034
9035fi
9036echo "$ac_t""$ac_cv_sizeof_short" 1>&6
9037cat >> confdefs.h <<EOF
9038#define SIZEOF_SHORT $ac_cv_sizeof_short
9039EOF
9040
9041
9042echo $ac_n "checking size of int *""... $ac_c" 1>&6
b12915c1 9043echo "configure:9044: checking size of int *" >&5
10f2d63a
VZ
9044if eval "test \"`echo '$''{'ac_cv_sizeof_int_p'+set}'`\" = set"; then
9045 echo $ac_n "(cached) $ac_c" 1>&6
9046else
9047 if test "$cross_compiling" = yes; then
9048 ac_cv_sizeof_int_p=4
9049else
9050 cat > conftest.$ac_ext <<EOF
b12915c1 9051#line 9052 "configure"
10f2d63a
VZ
9052#include "confdefs.h"
9053#include <stdio.h>
9054main()
9055{
9056 FILE *f=fopen("conftestval", "w");
9057 if (!f) exit(1);
9058 fprintf(f, "%d\n", sizeof(int *));
9059 exit(0);
9060}
9061EOF
b12915c1 9062if { (eval echo configure:9063: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10f2d63a
VZ
9063then
9064 ac_cv_sizeof_int_p=`cat conftestval`
9065else
9066 echo "configure: failed program was:" >&5
9067 cat conftest.$ac_ext >&5
9068 rm -fr conftest*
9069 ac_cv_sizeof_int_p=0
9070fi
9071rm -fr conftest*
9072fi
9073
9074fi
9075echo "$ac_t""$ac_cv_sizeof_int_p" 1>&6
9076cat >> confdefs.h <<EOF
9077#define SIZEOF_INT_P $ac_cv_sizeof_int_p
9078EOF
9079
9080
9081echo $ac_n "checking size of int""... $ac_c" 1>&6
b12915c1 9082echo "configure:9083: checking size of int" >&5
10f2d63a
VZ
9083if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
9084 echo $ac_n "(cached) $ac_c" 1>&6
9085else
9086 if test "$cross_compiling" = yes; then
9087 ac_cv_sizeof_int=4
9088else
9089 cat > conftest.$ac_ext <<EOF
b12915c1 9090#line 9091 "configure"
10f2d63a
VZ
9091#include "confdefs.h"
9092#include <stdio.h>
9093main()
9094{
9095 FILE *f=fopen("conftestval", "w");
9096 if (!f) exit(1);
9097 fprintf(f, "%d\n", sizeof(int));
9098 exit(0);
9099}
9100EOF
b12915c1 9101if { (eval echo configure:9102: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10f2d63a
VZ
9102then
9103 ac_cv_sizeof_int=`cat conftestval`
9104else
9105 echo "configure: failed program was:" >&5
9106 cat conftest.$ac_ext >&5
9107 rm -fr conftest*
9108 ac_cv_sizeof_int=0
9109fi
9110rm -fr conftest*
9111fi
9112
9113fi
9114echo "$ac_t""$ac_cv_sizeof_int" 1>&6
9115cat >> confdefs.h <<EOF
9116#define SIZEOF_INT $ac_cv_sizeof_int
9117EOF
9118
9119
9120echo $ac_n "checking size of long""... $ac_c" 1>&6
b12915c1 9121echo "configure:9122: checking size of long" >&5
10f2d63a
VZ
9122if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
9123 echo $ac_n "(cached) $ac_c" 1>&6
9124else
9125 if test "$cross_compiling" = yes; then
9126 ac_cv_sizeof_long=4
9127else
9128 cat > conftest.$ac_ext <<EOF
b12915c1 9129#line 9130 "configure"
10f2d63a
VZ
9130#include "confdefs.h"
9131#include <stdio.h>
9132main()
9133{
9134 FILE *f=fopen("conftestval", "w");
9135 if (!f) exit(1);
9136 fprintf(f, "%d\n", sizeof(long));
9137 exit(0);
9138}
9139EOF
b12915c1 9140if { (eval echo configure:9141: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10f2d63a
VZ
9141then
9142 ac_cv_sizeof_long=`cat conftestval`
9143else
9144 echo "configure: failed program was:" >&5
9145 cat conftest.$ac_ext >&5
9146 rm -fr conftest*
9147 ac_cv_sizeof_long=0
9148fi
9149rm -fr conftest*
9150fi
9151
9152fi
9153echo "$ac_t""$ac_cv_sizeof_long" 1>&6
9154cat >> confdefs.h <<EOF
9155#define SIZEOF_LONG $ac_cv_sizeof_long
9156EOF
9157
9158
9159echo $ac_n "checking size of long long""... $ac_c" 1>&6
b12915c1 9160echo "configure:9161: checking size of long long" >&5
10f2d63a
VZ
9161if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
9162 echo $ac_n "(cached) $ac_c" 1>&6
9163else
9164 if test "$cross_compiling" = yes; then
9165 ac_cv_sizeof_long_long=0
9166else
9167 cat > conftest.$ac_ext <<EOF
b12915c1 9168#line 9169 "configure"
10f2d63a
VZ
9169#include "confdefs.h"
9170#include <stdio.h>
9171main()
9172{
9173 FILE *f=fopen("conftestval", "w");
9174 if (!f) exit(1);
9175 fprintf(f, "%d\n", sizeof(long long));
9176 exit(0);
9177}
9178EOF
b12915c1 9179if { (eval echo configure:9180: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10f2d63a
VZ
9180then
9181 ac_cv_sizeof_long_long=`cat conftestval`
9182else
9183 echo "configure: failed program was:" >&5
9184 cat conftest.$ac_ext >&5
9185 rm -fr conftest*
9186 ac_cv_sizeof_long_long=0
9187fi
9188rm -fr conftest*
9189fi
9190
9191fi
9192echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
9193cat >> confdefs.h <<EOF
9194#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
9195EOF
9196
9197
9198
9199echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
b12915c1 9200echo "configure:9201: checking whether byte ordering is bigendian" >&5
10f2d63a
VZ
9201if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
9202 echo $ac_n "(cached) $ac_c" 1>&6
9203else
9204 ac_cv_c_bigendian=unknown
9205# See if sys/param.h defines the BYTE_ORDER macro.
9206cat > conftest.$ac_ext <<EOF
b12915c1 9207#line 9208 "configure"
10f2d63a
VZ
9208#include "confdefs.h"
9209#include <sys/types.h>
9210#include <sys/param.h>
9211int main() {
9212
9213#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
9214 bogus endian macros
9215#endif
9216; return 0; }
9217EOF
b12915c1 9218if { (eval echo configure:9219: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10f2d63a
VZ
9219 rm -rf conftest*
9220 # It does; now see whether it defined to BIG_ENDIAN or not.
9221cat > conftest.$ac_ext <<EOF
b12915c1 9222#line 9223 "configure"
10f2d63a
VZ
9223#include "confdefs.h"
9224#include <sys/types.h>
9225#include <sys/param.h>
9226int main() {
9227
9228#if BYTE_ORDER != BIG_ENDIAN
9229 not big endian
9230#endif
9231; return 0; }
9232EOF
b12915c1 9233if { (eval echo configure:9234: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10f2d63a
VZ
9234 rm -rf conftest*
9235 ac_cv_c_bigendian=yes
9236else
9237 echo "configure: failed program was:" >&5
9238 cat conftest.$ac_ext >&5
9239 rm -rf conftest*
9240 ac_cv_c_bigendian=no
9241fi
9242rm -f conftest*
9243else
9244 echo "configure: failed program was:" >&5
9245 cat conftest.$ac_ext >&5
9246fi
9247rm -f conftest*
9248if test $ac_cv_c_bigendian = unknown; then
9249if test "$cross_compiling" = yes; then
9250 ac_cv_c_bigendian=unknown
9251else
9252 cat > conftest.$ac_ext <<EOF
b12915c1 9253#line 9254 "configure"
10f2d63a
VZ
9254#include "confdefs.h"
9255main () {
9256 /* Are we little or big endian? From Harbison&Steele. */
9257 union
9258 {
9259 long l;
9260 char c[sizeof (long)];
9261 } u;
9262 u.l = 1;
9263 exit (u.c[sizeof (long) - 1] == 1);
9264}
9265EOF
b12915c1 9266if { (eval echo configure:9267: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10f2d63a
VZ
9267then
9268 ac_cv_c_bigendian=no
9269else
9270 echo "configure: failed program was:" >&5
9271 cat conftest.$ac_ext >&5
9272 rm -fr conftest*
9273 ac_cv_c_bigendian=yes
9274fi
9275rm -fr conftest*
9276fi
9277
9278fi
9279fi
9280
9281echo "$ac_t""$ac_cv_c_bigendian" 1>&6
9282if test $ac_cv_c_bigendian = unknown; then
9283 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
9284fi
9285if test $ac_cv_c_bigendian = yes; then
9286 cat >> confdefs.h <<\EOF
9287#define WORDS_BIGENDIAN 1
9288EOF
9289
9290fi
9291
9292
9293
9294 if test "$cross_compiling" = "yes"; then
9295 cat >> confdefs.h <<\EOF
9296#define wxUSE_IOSTREAMH 1
9297EOF
9298
9299 else
9300
9301 ac_ext=C
9302# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9303ac_cpp='$CXXCPP $CPPFLAGS'
9304ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9305ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9306cross_compiling=$ac_cv_prog_cxx_cross
9307
9308
9309 for ac_hdr in iostream
9310do
9311ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9312echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
b12915c1 9313echo "configure:9314: checking for $ac_hdr" >&5
10f2d63a
VZ
9314if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9315 echo $ac_n "(cached) $ac_c" 1>&6
9316else
9317 cat > conftest.$ac_ext <<EOF
b12915c1 9318#line 9319 "configure"
10f2d63a
VZ
9319#include "confdefs.h"
9320#include <$ac_hdr>
9321EOF
9322ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
b12915c1 9323{ (eval echo configure:9324: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
9324ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9325if test -z "$ac_err"; then
9326 rm -rf conftest*
9327 eval "ac_cv_header_$ac_safe=yes"
9328else
9329 echo "$ac_err" >&5
9330 echo "configure: failed program was:" >&5
9331 cat conftest.$ac_ext >&5
9332 rm -rf conftest*
9333 eval "ac_cv_header_$ac_safe=no"
9334fi
9335rm -f conftest*
9336fi
9337if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9338 echo "$ac_t""yes" 1>&6
9339 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9340 cat >> confdefs.h <<EOF
9341#define $ac_tr_hdr 1
9342EOF
9343
9344else
9345 echo "$ac_t""no" 1>&6
9346fi
9347done
9348
9349
9350 if test "x$HAVE_IOSTREAM" = x ; then
9351 cat >> confdefs.h <<\EOF
9352#define wxUSE_IOSTREAMH 1
9353EOF
9354
9355 else
9356 :
9357 fi
9358
9359 ac_ext=c
9360# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9361ac_cpp='$CPP $CPPFLAGS'
9362ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9363ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9364cross_compiling=$ac_cv_prog_cc_cross
9365
9366 fi
9367
9368
9369
9370 echo $ac_n "checking if C++ compiler supports bool""... $ac_c" 1>&6
b12915c1 9371echo "configure:9372: checking if C++ compiler supports bool" >&5
10f2d63a
VZ
9372if eval "test \"`echo '$''{'wx_cv_cpp_bool'+set}'`\" = set"; then
9373 echo $ac_n "(cached) $ac_c" 1>&6
9374else
9375
9376
9377 ac_ext=C
9378# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9379ac_cpp='$CXXCPP $CPPFLAGS'
9380ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9381ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9382cross_compiling=$ac_cv_prog_cxx_cross
9383
9384
9385 cat > conftest.$ac_ext <<EOF
b12915c1 9386#line 9387 "configure"
10f2d63a
VZ
9387#include "confdefs.h"
9388
9389
9390int main() {
9391
9392 bool b = true;
9393
9394 return 0;
9395
9396; return 0; }
9397EOF
b12915c1 9398if { (eval echo configure:9399: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10f2d63a
VZ
9399 rm -rf conftest*
9400
9401 cat >> confdefs.h <<\EOF
9402#define HAVE_BOOL 1
9403EOF
9404
9405 wx_cv_cpp_bool=yes
9406
9407else
9408 echo "configure: failed program was:" >&5
9409 cat conftest.$ac_ext >&5
9410 rm -rf conftest*
9411
9412 wx_cv_cpp_bool=no
9413
9414
9415fi
9416rm -f conftest*
9417
9418 ac_ext=c
9419# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9420ac_cpp='$CPP $CPPFLAGS'
9421ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9422ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9423cross_compiling=$ac_cv_prog_cc_cross
9424
9425
9426fi
9427
9428echo "$ac_t""$wx_cv_cpp_bool" 1>&6
9429
9430 if test "$wx_cv_cpp_bool" = "yes"; then
9431 cat >> confdefs.h <<\EOF
9432#define HAVE_BOOL 1
9433EOF
9434
9435 fi
9436
9437
9438
10f2d63a 9439echo $ac_n "checking if you need GNU extensions""... $ac_c" 1>&6
b12915c1 9440echo "configure:9441: checking if you need GNU extensions" >&5
10f2d63a
VZ
9441if eval "test \"`echo '$''{'wx_cv_gnu_extensions'+set}'`\" = set"; then
9442 echo $ac_n "(cached) $ac_c" 1>&6
9443else
9444
9445 cat > conftest.$ac_ext <<EOF
b12915c1 9446#line 9447 "configure"
10f2d63a
VZ
9447#include "confdefs.h"
9448#include <features.h>
9449int main() {
9450
9451
9452#ifndef __GNU_LIBRARY__
9453 Compile error wanted
9454#endif
9455
9456
9457; return 0; }
9458EOF
b12915c1 9459if { (eval echo configure:9460: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10f2d63a
VZ
9460 rm -rf conftest*
9461 wx_cv_gnu_extensions=yes
9462else
9463 echo "configure: failed program was:" >&5
9464 cat conftest.$ac_ext >&5
9465 rm -rf conftest*
9466 wx_cv_gnu_extensions=no
9467fi
9468rm -f conftest*
9469
9470fi
9471
9472
9473echo "$ac_t""$wx_cv_gnu_extensions" 1>&6
9474if test "$wx_cv_gnu_extensions" = "yes"; then
9475 cat >> confdefs.h <<EOF
9476#define _GNU_SOURCE 1
9477EOF
9478
9479fi
9480
9481
9482
9483echo $ac_n "checking for wcslen in -lc""... $ac_c" 1>&6
b12915c1 9484echo "configure:9485: checking for wcslen in -lc" >&5
10f2d63a
VZ
9485ac_lib_var=`echo c'_'wcslen | sed 'y%./+-%__p_%'`
9486if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9487 echo $ac_n "(cached) $ac_c" 1>&6
9488else
9489 ac_save_LIBS="$LIBS"
9490LIBS="-lc $LIBS"
9491cat > conftest.$ac_ext <<EOF
b12915c1 9492#line 9493 "configure"
10f2d63a
VZ
9493#include "confdefs.h"
9494/* Override any gcc2 internal prototype to avoid an error. */
9495/* We use char because int might match the return type of a gcc2
9496 builtin and then its argument prototype would still apply. */
9497char wcslen();
9498
9499int main() {
9500wcslen()
9501; return 0; }
9502EOF
b12915c1 9503if { (eval echo configure:9504: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
9504 rm -rf conftest*
9505 eval "ac_cv_lib_$ac_lib_var=yes"
9506else
9507 echo "configure: failed program was:" >&5
9508 cat conftest.$ac_ext >&5
9509 rm -rf conftest*
9510 eval "ac_cv_lib_$ac_lib_var=no"
9511fi
9512rm -f conftest*
9513LIBS="$ac_save_LIBS"
9514
9515fi
9516if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9517 echo "$ac_t""yes" 1>&6
9518
9519 cat >> confdefs.h <<\EOF
9520#define HAVE_WCSLEN 1
9521EOF
9522
9523 WCHAR_LINK=""
9524
9525else
9526 echo "$ac_t""no" 1>&6
9527
9528 echo $ac_n "checking for wcslen in -lw""... $ac_c" 1>&6
b12915c1 9529echo "configure:9530: checking for wcslen in -lw" >&5
10f2d63a
VZ
9530ac_lib_var=`echo w'_'wcslen | sed 'y%./+-%__p_%'`
9531if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9532 echo $ac_n "(cached) $ac_c" 1>&6
9533else
9534 ac_save_LIBS="$LIBS"
9535LIBS="-lw $LIBS"
9536cat > conftest.$ac_ext <<EOF
b12915c1 9537#line 9538 "configure"
10f2d63a
VZ
9538#include "confdefs.h"
9539/* Override any gcc2 internal prototype to avoid an error. */
9540/* We use char because int might match the return type of a gcc2
9541 builtin and then its argument prototype would still apply. */
9542char wcslen();
9543
9544int main() {
9545wcslen()
9546; return 0; }
9547EOF
b12915c1 9548if { (eval echo configure:9549: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
9549 rm -rf conftest*
9550 eval "ac_cv_lib_$ac_lib_var=yes"
9551else
9552 echo "configure: failed program was:" >&5
9553 cat conftest.$ac_ext >&5
9554 rm -rf conftest*
9555 eval "ac_cv_lib_$ac_lib_var=no"
9556fi
9557rm -f conftest*
9558LIBS="$ac_save_LIBS"
9559
9560fi
9561if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9562 echo "$ac_t""yes" 1>&6
9563
9564 cat >> confdefs.h <<\EOF
9565#define HAVE_WCSLEN 1
9566EOF
9567
9568 WCHAR_LINK="-lw"
9569
9570else
9571 echo "$ac_t""no" 1>&6
9572fi
9573
9574
9575fi
9576
9577
9578echo $ac_n "checking for vprintf""... $ac_c" 1>&6
b12915c1 9579echo "configure:9580: checking for vprintf" >&5
10f2d63a
VZ
9580if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
9581 echo $ac_n "(cached) $ac_c" 1>&6
9582else
9583 cat > conftest.$ac_ext <<EOF
b12915c1 9584#line 9585 "configure"
10f2d63a
VZ
9585#include "confdefs.h"
9586/* System header to define __stub macros and hopefully few prototypes,
9587 which can conflict with char vprintf(); below. */
9588#include <assert.h>
9589/* Override any gcc2 internal prototype to avoid an error. */
9590/* We use char because int might match the return type of a gcc2
9591 builtin and then its argument prototype would still apply. */
9592char vprintf();
9593
9594int main() {
9595
9596/* The GNU C library defines this for functions which it implements
9597 to always fail with ENOSYS. Some functions are actually named
9598 something starting with __ and the normal name is an alias. */
9599#if defined (__stub_vprintf) || defined (__stub___vprintf)
9600choke me
9601#else
e694c22c 9602vprintf();
10f2d63a
VZ
9603#endif
9604
9605; return 0; }
9606EOF
b12915c1 9607if { (eval echo configure:9608: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
9608 rm -rf conftest*
9609 eval "ac_cv_func_vprintf=yes"
9610else
9611 echo "configure: failed program was:" >&5
9612 cat conftest.$ac_ext >&5
9613 rm -rf conftest*
9614 eval "ac_cv_func_vprintf=no"
9615fi
9616rm -f conftest*
9617fi
9618
9619if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
9620 echo "$ac_t""yes" 1>&6
9621 cat >> confdefs.h <<\EOF
9622#define HAVE_VPRINTF 1
9623EOF
9624
9625else
9626 echo "$ac_t""no" 1>&6
9627fi
9628
9629if test "$ac_cv_func_vprintf" != yes; then
9630echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
b12915c1 9631echo "configure:9632: checking for _doprnt" >&5
10f2d63a
VZ
9632if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
9633 echo $ac_n "(cached) $ac_c" 1>&6
9634else
9635 cat > conftest.$ac_ext <<EOF
b12915c1 9636#line 9637 "configure"
10f2d63a
VZ
9637#include "confdefs.h"
9638/* System header to define __stub macros and hopefully few prototypes,
9639 which can conflict with char _doprnt(); below. */
9640#include <assert.h>
9641/* Override any gcc2 internal prototype to avoid an error. */
9642/* We use char because int might match the return type of a gcc2
9643 builtin and then its argument prototype would still apply. */
9644char _doprnt();
9645
9646int main() {
9647
9648/* The GNU C library defines this for functions which it implements
9649 to always fail with ENOSYS. Some functions are actually named
9650 something starting with __ and the normal name is an alias. */
9651#if defined (__stub__doprnt) || defined (__stub____doprnt)
9652choke me
9653#else
e694c22c 9654_doprnt();
10f2d63a
VZ
9655#endif
9656
9657; return 0; }
9658EOF
b12915c1 9659if { (eval echo configure:9660: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
9660 rm -rf conftest*
9661 eval "ac_cv_func__doprnt=yes"
9662else
9663 echo "configure: failed program was:" >&5
9664 cat conftest.$ac_ext >&5
9665 rm -rf conftest*
9666 eval "ac_cv_func__doprnt=no"
9667fi
9668rm -f conftest*
9669fi
9670
9671if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
9672 echo "$ac_t""yes" 1>&6
9673 cat >> confdefs.h <<\EOF
9674#define HAVE_DOPRNT 1
9675EOF
9676
9677else
9678 echo "$ac_t""no" 1>&6
9679fi
9680
9681fi
9682
9683
9684for ac_func in vsnprintf
9685do
9686echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
b12915c1 9687echo "configure:9688: checking for $ac_func" >&5
10f2d63a
VZ
9688if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9689 echo $ac_n "(cached) $ac_c" 1>&6
9690else
9691 cat > conftest.$ac_ext <<EOF
b12915c1 9692#line 9693 "configure"
10f2d63a
VZ
9693#include "confdefs.h"
9694/* System header to define __stub macros and hopefully few prototypes,
9695 which can conflict with char $ac_func(); below. */
9696#include <assert.h>
9697/* Override any gcc2 internal prototype to avoid an error. */
9698/* We use char because int might match the return type of a gcc2
9699 builtin and then its argument prototype would still apply. */
9700char $ac_func();
9701
9702int main() {
9703
9704/* The GNU C library defines this for functions which it implements
9705 to always fail with ENOSYS. Some functions are actually named
9706 something starting with __ and the normal name is an alias. */
9707#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9708choke me
9709#else
e694c22c 9710$ac_func();
10f2d63a
VZ
9711#endif
9712
9713; return 0; }
9714EOF
b12915c1 9715if { (eval echo configure:9716: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
9716 rm -rf conftest*
9717 eval "ac_cv_func_$ac_func=yes"
9718else
9719 echo "configure: failed program was:" >&5
9720 cat conftest.$ac_ext >&5
9721 rm -rf conftest*
9722 eval "ac_cv_func_$ac_func=no"
9723fi
9724rm -f conftest*
9725fi
9726
9727if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9728 echo "$ac_t""yes" 1>&6
9729 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9730 cat >> confdefs.h <<EOF
9731#define $ac_tr_func 1
9732EOF
9733 cat >> confdefs.h <<\EOF
9734#define HAVE_VSNPRINTF 1
9735EOF
9736
9737else
9738 echo "$ac_t""no" 1>&6
9739echo "configure: warning: unsafe function sprintf will be used instead of snprintf" 1>&2
9740
9741fi
9742done
9743
9744
9745
9746ac_ext=C
9747# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9748ac_cpp='$CXXCPP $CPPFLAGS'
9749ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9750ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9751cross_compiling=$ac_cv_prog_cxx_cross
9752
9753
9754echo $ac_n "checking for vsscanf""... $ac_c" 1>&6
b12915c1 9755echo "configure:9756: checking for vsscanf" >&5
10f2d63a
VZ
9756if eval "test \"`echo '$''{'wx_cv_func_vsscanf'+set}'`\" = set"; then
9757 echo $ac_n "(cached) $ac_c" 1>&6
9758else
9759
9760 if test "$cross_compiling" = yes; then
9761 wx_cv_func_vsscanf=no
9762
9763else
9764 cat > conftest.$ac_ext <<EOF
b12915c1 9765#line 9766 "configure"
10f2d63a
VZ
9766#include "confdefs.h"
9767#ifdef __cplusplus
9768extern "C" void exit(int);
9769#endif
9770
9771 #include <stdio.h>
9772 #include <stdarg.h>
9773
9774 int try_vsscanf(const char *format, ...)
9775 {
9776 va_list ap;
9777 va_start(ap, format);
9778
9779 vsscanf("17", format, ap);
9780
9781 va_end(ap);
9782 }
9783
9784 int main()
9785 {
9786 int i;
9787 try_vsscanf("%d", &i);
9788 return i == 17 ? 0 : 1;
9789 }
9790
9791EOF
b12915c1 9792if { (eval echo configure:9793: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10f2d63a
VZ
9793then
9794
9795 cat >> confdefs.h <<\EOF
9796#define HAVE_VSSCANF 1
9797EOF
9798
9799 wx_cv_func_vsscanf=yes
9800
9801else
9802 echo "configure: failed program was:" >&5
9803 cat conftest.$ac_ext >&5
9804 rm -fr conftest*
9805 wx_cv_func_vsscanf=no
9806fi
9807rm -fr conftest*
9808fi
9809
9810
9811fi
9812
9813echo "$ac_t""$wx_cv_func_vsscanf" 1>&6
9814
9815ac_ext=c
9816# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9817ac_cpp='$CPP $CPPFLAGS'
9818ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9819ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9820cross_compiling=$ac_cv_prog_cc_cross
9821
9822
9823if test "$USE_UNIX" = 1; then
9824
9825for ac_func in vfork
9826do
9827echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
b12915c1 9828echo "configure:9829: checking for $ac_func" >&5
10f2d63a
VZ
9829if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9830 echo $ac_n "(cached) $ac_c" 1>&6
9831else
9832 cat > conftest.$ac_ext <<EOF
b12915c1 9833#line 9834 "configure"
10f2d63a
VZ
9834#include "confdefs.h"
9835/* System header to define __stub macros and hopefully few prototypes,
9836 which can conflict with char $ac_func(); below. */
9837#include <assert.h>
9838/* Override any gcc2 internal prototype to avoid an error. */
9839/* We use char because int might match the return type of a gcc2
9840 builtin and then its argument prototype would still apply. */
9841char $ac_func();
9842
9843int main() {
9844
9845/* The GNU C library defines this for functions which it implements
9846 to always fail with ENOSYS. Some functions are actually named
9847 something starting with __ and the normal name is an alias. */
9848#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9849choke me
9850#else
e694c22c 9851$ac_func();
10f2d63a
VZ
9852#endif
9853
9854; return 0; }
9855EOF
b12915c1 9856if { (eval echo configure:9857: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
270a909e
VZ
9857 rm -rf conftest*
9858 eval "ac_cv_func_$ac_func=yes"
9859else
9860 echo "configure: failed program was:" >&5
9861 cat conftest.$ac_ext >&5
9862 rm -rf conftest*
9863 eval "ac_cv_func_$ac_func=no"
9864fi
9865rm -f conftest*
9866fi
9867
9868if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9869 echo "$ac_t""yes" 1>&6
9870 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9871 cat >> confdefs.h <<EOF
9872#define $ac_tr_func 1
9873EOF
9874
9875else
9876 echo "$ac_t""no" 1>&6
9877fi
9878done
9879
9880
9881for ac_func in timegm
9882do
9883echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
b12915c1 9884echo "configure:9885: checking for $ac_func" >&5
270a909e
VZ
9885if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9886 echo $ac_n "(cached) $ac_c" 1>&6
9887else
9888 cat > conftest.$ac_ext <<EOF
b12915c1 9889#line 9890 "configure"
270a909e
VZ
9890#include "confdefs.h"
9891/* System header to define __stub macros and hopefully few prototypes,
9892 which can conflict with char $ac_func(); below. */
9893#include <assert.h>
9894/* Override any gcc2 internal prototype to avoid an error. */
9895/* We use char because int might match the return type of a gcc2
9896 builtin and then its argument prototype would still apply. */
9897char $ac_func();
9898
9899int main() {
9900
9901/* The GNU C library defines this for functions which it implements
9902 to always fail with ENOSYS. Some functions are actually named
9903 something starting with __ and the normal name is an alias. */
9904#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9905choke me
9906#else
e694c22c 9907$ac_func();
270a909e
VZ
9908#endif
9909
9910; return 0; }
9911EOF
b12915c1 9912if { (eval echo configure:9913: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
9913 rm -rf conftest*
9914 eval "ac_cv_func_$ac_func=yes"
9915else
9916 echo "configure: failed program was:" >&5
9917 cat conftest.$ac_ext >&5
9918 rm -rf conftest*
9919 eval "ac_cv_func_$ac_func=no"
9920fi
9921rm -f conftest*
9922fi
9923
9924if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9925 echo "$ac_t""yes" 1>&6
9926 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9927 cat >> confdefs.h <<EOF
9928#define $ac_tr_func 1
9929EOF
9930
9931else
9932 echo "$ac_t""no" 1>&6
9933fi
9934done
9935
9936
b12915c1
VZ
9937HAVE_SOME_SLEEP_FUNC=0
9938if test "$USE_BEOS" = 1; then
9939 cat >> confdefs.h <<\EOF
9940#define HAVE_SLEEP 1
9941EOF
9942
9943 HAVE_SOME_SLEEP_FUNC=1
9944fi
9945
9946if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
9947 POSIX4_LINK=
9948 for ac_func in nanosleep
10f2d63a
VZ
9949do
9950echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
b12915c1 9951echo "configure:9952: checking for $ac_func" >&5
10f2d63a
VZ
9952if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9953 echo $ac_n "(cached) $ac_c" 1>&6
9954else
9955 cat > conftest.$ac_ext <<EOF
b12915c1 9956#line 9957 "configure"
10f2d63a
VZ
9957#include "confdefs.h"
9958/* System header to define __stub macros and hopefully few prototypes,
9959 which can conflict with char $ac_func(); below. */
9960#include <assert.h>
9961/* Override any gcc2 internal prototype to avoid an error. */
9962/* We use char because int might match the return type of a gcc2
9963 builtin and then its argument prototype would still apply. */
9964char $ac_func();
9965
9966int main() {
9967
9968/* The GNU C library defines this for functions which it implements
9969 to always fail with ENOSYS. Some functions are actually named
9970 something starting with __ and the normal name is an alias. */
9971#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9972choke me
9973#else
e694c22c 9974$ac_func();
10f2d63a
VZ
9975#endif
9976
9977; return 0; }
9978EOF
b12915c1 9979if { (eval echo configure:9980: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
9980 rm -rf conftest*
9981 eval "ac_cv_func_$ac_func=yes"
9982else
9983 echo "configure: failed program was:" >&5
9984 cat conftest.$ac_ext >&5
9985 rm -rf conftest*
9986 eval "ac_cv_func_$ac_func=no"
9987fi
9988rm -f conftest*
9989fi
9990
9991if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9992 echo "$ac_t""yes" 1>&6
9993 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9994 cat >> confdefs.h <<EOF
9995#define $ac_tr_func 1
9996EOF
9997 cat >> confdefs.h <<\EOF
9998#define HAVE_NANOSLEEP 1
9999EOF
10000
10001else
10002 echo "$ac_t""no" 1>&6
10003echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6
b12915c1 10004echo "configure:10005: checking for nanosleep in -lposix4" >&5
10f2d63a
VZ
10005ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'`
10006if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10007 echo $ac_n "(cached) $ac_c" 1>&6
10008else
10009 ac_save_LIBS="$LIBS"
10010LIBS="-lposix4 $LIBS"
10011cat > conftest.$ac_ext <<EOF
b12915c1 10012#line 10013 "configure"
10f2d63a
VZ
10013#include "confdefs.h"
10014/* Override any gcc2 internal prototype to avoid an error. */
10015/* We use char because int might match the return type of a gcc2
10016 builtin and then its argument prototype would still apply. */
10017char nanosleep();
10018
10019int main() {
10020nanosleep()
10021; return 0; }
10022EOF
b12915c1 10023if { (eval echo configure:10024: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
10024 rm -rf conftest*
10025 eval "ac_cv_lib_$ac_lib_var=yes"
10026else
10027 echo "configure: failed program was:" >&5
10028 cat conftest.$ac_ext >&5
10029 rm -rf conftest*
10030 eval "ac_cv_lib_$ac_lib_var=no"
10031fi
10032rm -f conftest*
10033LIBS="$ac_save_LIBS"
10034
10035fi
10036if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10037 echo "$ac_t""yes" 1>&6
10038
b12915c1 10039 cat >> confdefs.h <<\EOF
10f2d63a
VZ
10040#define HAVE_NANOSLEEP 1
10041EOF
10042
b12915c1
VZ
10043 POSIX4_LINK="-lposix4"
10044
10f2d63a
VZ
10045else
10046 echo "$ac_t""no" 1>&6
10047
b12915c1 10048 for ac_func in usleep
10f2d63a
VZ
10049do
10050echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
b12915c1 10051echo "configure:10052: checking for $ac_func" >&5
10f2d63a
VZ
10052if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10053 echo $ac_n "(cached) $ac_c" 1>&6
10054else
10055 cat > conftest.$ac_ext <<EOF
b12915c1 10056#line 10057 "configure"
10f2d63a
VZ
10057#include "confdefs.h"
10058/* System header to define __stub macros and hopefully few prototypes,
10059 which can conflict with char $ac_func(); below. */
10060#include <assert.h>
10061/* Override any gcc2 internal prototype to avoid an error. */
10062/* We use char because int might match the return type of a gcc2
10063 builtin and then its argument prototype would still apply. */
10064char $ac_func();
10065
10066int main() {
10067
10068/* The GNU C library defines this for functions which it implements
10069 to always fail with ENOSYS. Some functions are actually named
10070 something starting with __ and the normal name is an alias. */
10071#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10072choke me
10073#else
e694c22c 10074$ac_func();
10f2d63a
VZ
10075#endif
10076
10077; return 0; }
10078EOF
b12915c1 10079if { (eval echo configure:10080: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
10080 rm -rf conftest*
10081 eval "ac_cv_func_$ac_func=yes"
10082else
10083 echo "configure: failed program was:" >&5
10084 cat conftest.$ac_ext >&5
10085 rm -rf conftest*
10086 eval "ac_cv_func_$ac_func=no"
10087fi
10088rm -f conftest*
10089fi
10090
10091if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10092 echo "$ac_t""yes" 1>&6
10093 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10094 cat >> confdefs.h <<EOF
10095#define $ac_tr_func 1
10096EOF
b12915c1 10097
10f2d63a
VZ
10098else
10099 echo "$ac_t""no" 1>&6
10f2d63a
VZ
10100fi
10101done
10102
b12915c1
VZ
10103 echo "configure: warning: wxSleep() function will not work" 1>&2
10104
10105
10f2d63a
VZ
10106fi
10107
b12915c1
VZ
10108
10109
10f2d63a
VZ
10110fi
10111done
10112
b12915c1 10113fi
10f2d63a
VZ
10114
10115for ac_func in uname gethostname
10116do
10117echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
b12915c1 10118echo "configure:10119: checking for $ac_func" >&5
10f2d63a
VZ
10119if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10120 echo $ac_n "(cached) $ac_c" 1>&6
10121else
10122 cat > conftest.$ac_ext <<EOF
b12915c1 10123#line 10124 "configure"
10f2d63a
VZ
10124#include "confdefs.h"
10125/* System header to define __stub macros and hopefully few prototypes,
10126 which can conflict with char $ac_func(); below. */
10127#include <assert.h>
10128/* Override any gcc2 internal prototype to avoid an error. */
10129/* We use char because int might match the return type of a gcc2
10130 builtin and then its argument prototype would still apply. */
10131char $ac_func();
10132
10133int main() {
10134
10135/* The GNU C library defines this for functions which it implements
10136 to always fail with ENOSYS. Some functions are actually named
10137 something starting with __ and the normal name is an alias. */
10138#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10139choke me
10140#else
e694c22c 10141$ac_func();
10f2d63a
VZ
10142#endif
10143
10144; return 0; }
10145EOF
b12915c1 10146if { (eval echo configure:10147: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
10147 rm -rf conftest*
10148 eval "ac_cv_func_$ac_func=yes"
10149else
10150 echo "configure: failed program was:" >&5
10151 cat conftest.$ac_ext >&5
10152 rm -rf conftest*
10153 eval "ac_cv_func_$ac_func=no"
10154fi
10155rm -f conftest*
10156fi
10157
10158if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10159 echo "$ac_t""yes" 1>&6
10160 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10161 cat >> confdefs.h <<EOF
10162#define $ac_tr_func 1
10163EOF
10164 break
10165else
10166 echo "$ac_t""no" 1>&6
10167fi
10168done
10169
10170
10171for ac_func in strtok_r
10172do
10173echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
b12915c1 10174echo "configure:10175: checking for $ac_func" >&5
10f2d63a
VZ
10175if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10176 echo $ac_n "(cached) $ac_c" 1>&6
10177else
10178 cat > conftest.$ac_ext <<EOF
b12915c1 10179#line 10180 "configure"
10f2d63a
VZ
10180#include "confdefs.h"
10181/* System header to define __stub macros and hopefully few prototypes,
10182 which can conflict with char $ac_func(); below. */
10183#include <assert.h>
10184/* Override any gcc2 internal prototype to avoid an error. */
10185/* We use char because int might match the return type of a gcc2
10186 builtin and then its argument prototype would still apply. */
10187char $ac_func();
10188
10189int main() {
10190
10191/* The GNU C library defines this for functions which it implements
10192 to always fail with ENOSYS. Some functions are actually named
10193 something starting with __ and the normal name is an alias. */
10194#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10195choke me
10196#else
e694c22c 10197$ac_func();
10f2d63a
VZ
10198#endif
10199
10200; return 0; }
10201EOF
b12915c1 10202if { (eval echo configure:10203: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
10203 rm -rf conftest*
10204 eval "ac_cv_func_$ac_func=yes"
10205else
10206 echo "configure: failed program was:" >&5
10207 cat conftest.$ac_ext >&5
10208 rm -rf conftest*
10209 eval "ac_cv_func_$ac_func=no"
10210fi
10211rm -f conftest*
10212fi
10213
10214if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10215 echo "$ac_t""yes" 1>&6
10216 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10217 cat >> confdefs.h <<EOF
10218#define $ac_tr_func 1
10219EOF
10220
10221else
10222 echo "$ac_t""no" 1>&6
10223fi
10224done
10225
10226
c63c7106 10227INET_LINK=
10f2d63a
VZ
10228for ac_func in inet_addr
10229do
10230echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
b12915c1 10231echo "configure:10232: checking for $ac_func" >&5
10f2d63a
VZ
10232if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10233 echo $ac_n "(cached) $ac_c" 1>&6
10234else
10235 cat > conftest.$ac_ext <<EOF
b12915c1 10236#line 10237 "configure"
10f2d63a
VZ
10237#include "confdefs.h"
10238/* System header to define __stub macros and hopefully few prototypes,
10239 which can conflict with char $ac_func(); below. */
10240#include <assert.h>
10241/* Override any gcc2 internal prototype to avoid an error. */
10242/* We use char because int might match the return type of a gcc2
10243 builtin and then its argument prototype would still apply. */
10244char $ac_func();
10245
10246int main() {
10247
10248/* The GNU C library defines this for functions which it implements
10249 to always fail with ENOSYS. Some functions are actually named
10250 something starting with __ and the normal name is an alias. */
10251#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10252choke me
10253#else
e694c22c 10254$ac_func();
10f2d63a
VZ
10255#endif
10256
10257; return 0; }
10258EOF
b12915c1 10259if { (eval echo configure:10260: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
10260 rm -rf conftest*
10261 eval "ac_cv_func_$ac_func=yes"
10262else
10263 echo "configure: failed program was:" >&5
10264 cat conftest.$ac_ext >&5
10265 rm -rf conftest*
10266 eval "ac_cv_func_$ac_func=no"
10267fi
10268rm -f conftest*
10269fi
10270
10271if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10272 echo "$ac_t""yes" 1>&6
10273 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10274 cat >> confdefs.h <<EOF
10275#define $ac_tr_func 1
10276EOF
c63c7106
VZ
10277 cat >> confdefs.h <<\EOF
10278#define HAVE_INET_ADDR 1
10279EOF
10280
10f2d63a
VZ
10281else
10282 echo "$ac_t""no" 1>&6
c63c7106 10283echo $ac_n "checking for inet_addr in -lnsl""... $ac_c" 1>&6
b12915c1 10284echo "configure:10285: checking for inet_addr in -lnsl" >&5
c63c7106
VZ
10285ac_lib_var=`echo nsl'_'inet_addr | sed 'y%./+-%__p_%'`
10286if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10287 echo $ac_n "(cached) $ac_c" 1>&6
10288else
10289 ac_save_LIBS="$LIBS"
10290LIBS="-lnsl $LIBS"
10291cat > conftest.$ac_ext <<EOF
b12915c1 10292#line 10293 "configure"
c63c7106
VZ
10293#include "confdefs.h"
10294/* Override any gcc2 internal prototype to avoid an error. */
10295/* We use char because int might match the return type of a gcc2
10296 builtin and then its argument prototype would still apply. */
10297char inet_addr();
10298
10299int main() {
10300inet_addr()
10301; return 0; }
10302EOF
b12915c1 10303if { (eval echo configure:10304: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
c63c7106
VZ
10304 rm -rf conftest*
10305 eval "ac_cv_lib_$ac_lib_var=yes"
10306else
10307 echo "configure: failed program was:" >&5
10308 cat conftest.$ac_ext >&5
10309 rm -rf conftest*
10310 eval "ac_cv_lib_$ac_lib_var=no"
10311fi
10312rm -f conftest*
10313LIBS="$ac_save_LIBS"
10314
10315fi
10316if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10317 echo "$ac_t""yes" 1>&6
10318 INET_LINK="nsl"
10319else
10320 echo "$ac_t""no" 1>&6
10321echo $ac_n "checking for inet_addr in -lresolv""... $ac_c" 1>&6
b12915c1 10322echo "configure:10323: checking for inet_addr in -lresolv" >&5
c63c7106
VZ
10323ac_lib_var=`echo resolv'_'inet_addr | sed 'y%./+-%__p_%'`
10324if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10325 echo $ac_n "(cached) $ac_c" 1>&6
10326else
10327 ac_save_LIBS="$LIBS"
10328LIBS="-lresolv $LIBS"
10329cat > conftest.$ac_ext <<EOF
b12915c1 10330#line 10331 "configure"
c63c7106
VZ
10331#include "confdefs.h"
10332/* Override any gcc2 internal prototype to avoid an error. */
10333/* We use char because int might match the return type of a gcc2
10334 builtin and then its argument prototype would still apply. */
10335char inet_addr();
10336
10337int main() {
10338inet_addr()
10339; return 0; }
10340EOF
b12915c1 10341if { (eval echo configure:10342: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
c63c7106
VZ
10342 rm -rf conftest*
10343 eval "ac_cv_lib_$ac_lib_var=yes"
10344else
10345 echo "configure: failed program was:" >&5
10346 cat conftest.$ac_ext >&5
10347 rm -rf conftest*
10348 eval "ac_cv_lib_$ac_lib_var=no"
10349fi
10350rm -f conftest*
10351LIBS="$ac_save_LIBS"
10352
10353fi
10354if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10355 echo "$ac_t""yes" 1>&6
10356 INET_LINK="resolv"
10357
10358else
10359 echo "$ac_t""no" 1>&6
10360fi
10361
10362
10363fi
10364
10365
10366
10f2d63a
VZ
10367fi
10368done
10369
c63c7106 10370
10f2d63a
VZ
10371for ac_func in inet_aton
10372do
10373echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
b12915c1 10374echo "configure:10375: checking for $ac_func" >&5
10f2d63a
VZ
10375if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10376 echo $ac_n "(cached) $ac_c" 1>&6
10377else
10378 cat > conftest.$ac_ext <<EOF
b12915c1 10379#line 10380 "configure"
10f2d63a
VZ
10380#include "confdefs.h"
10381/* System header to define __stub macros and hopefully few prototypes,
10382 which can conflict with char $ac_func(); below. */
10383#include <assert.h>
10384/* Override any gcc2 internal prototype to avoid an error. */
10385/* We use char because int might match the return type of a gcc2
10386 builtin and then its argument prototype would still apply. */
10387char $ac_func();
10388
10389int main() {
10390
10391/* The GNU C library defines this for functions which it implements
10392 to always fail with ENOSYS. Some functions are actually named
10393 something starting with __ and the normal name is an alias. */
10394#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10395choke me
10396#else
e694c22c 10397$ac_func();
10f2d63a
VZ
10398#endif
10399
10400; return 0; }
10401EOF
b12915c1 10402if { (eval echo configure:10403: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
10403 rm -rf conftest*
10404 eval "ac_cv_func_$ac_func=yes"
10405else
10406 echo "configure: failed program was:" >&5
10407 cat conftest.$ac_ext >&5
10408 rm -rf conftest*
10409 eval "ac_cv_func_$ac_func=no"
10410fi
10411rm -f conftest*
10412fi
10413
10414if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10415 echo "$ac_t""yes" 1>&6
10416 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10417 cat >> confdefs.h <<EOF
10418#define $ac_tr_func 1
10419EOF
c63c7106
VZ
10420 cat >> confdefs.h <<\EOF
10421#define HAVE_INET_ATON 1
10422EOF
10423
10f2d63a
VZ
10424else
10425 echo "$ac_t""no" 1>&6
c63c7106 10426 echo $ac_n "checking for inet_aton in -l$INET_LINK""... $ac_c" 1>&6
b12915c1 10427echo "configure:10428: checking for inet_aton in -l$INET_LINK" >&5
c63c7106 10428ac_lib_var=`echo $INET_LINK'_'inet_aton | sed 'y%./+-%__p_%'`
10f2d63a
VZ
10429if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10430 echo $ac_n "(cached) $ac_c" 1>&6
10431else
10432 ac_save_LIBS="$LIBS"
c63c7106 10433LIBS="-l$INET_LINK $LIBS"
10f2d63a 10434cat > conftest.$ac_ext <<EOF
b12915c1 10435#line 10436 "configure"
10f2d63a
VZ
10436#include "confdefs.h"
10437/* Override any gcc2 internal prototype to avoid an error. */
10438/* We use char because int might match the return type of a gcc2
10439 builtin and then its argument prototype would still apply. */
10440char inet_aton();
10441
10442int main() {
10443inet_aton()
10444; return 0; }
10445EOF
b12915c1 10446if { (eval echo configure:10447: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
10447 rm -rf conftest*
10448 eval "ac_cv_lib_$ac_lib_var=yes"
10449else
10450 echo "configure: failed program was:" >&5
10451 cat conftest.$ac_ext >&5
10452 rm -rf conftest*
10453 eval "ac_cv_lib_$ac_lib_var=no"
10454fi
10455rm -f conftest*
10456LIBS="$ac_save_LIBS"
10457
10458fi
10459if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10460 echo "$ac_t""yes" 1>&6
c63c7106
VZ
10461 cat >> confdefs.h <<\EOF
10462#define HAVE_INET_ATON 1
10f2d63a
VZ
10463EOF
10464
10f2d63a
VZ
10465else
10466 echo "$ac_t""no" 1>&6
10467fi
10468
c63c7106
VZ
10469
10470fi
10471done
10472
10473
10474if test "x$INET_LINK" != "x"; then
10475 cat >> confdefs.h <<\EOF
10476#define HAVE_INET_ADDR 1
10477EOF
10478
10479 INET_LINK="-l$INET_LINK"
10480fi
10f2d63a
VZ
10481
10482fi
10483
10484
10485cat > confcache <<\EOF
10486# This file is a shell script that caches the results of configure
10487# tests run on this system so they can be shared between configure
10488# scripts and configure runs. It is not useful on other systems.
10489# If it contains results you don't want to keep, you may remove or edit it.
10490#
10491# By default, configure uses ./config.cache as the cache file,
10492# creating it if it does not exist already. You can give configure
10493# the --cache-file=FILE option to use a different cache file; that is
10494# what configure does when it calls configure scripts in
10495# subdirectories, so they share the cache.
10496# Giving --cache-file=/dev/null disables caching, for debugging configure.
10497# config.status only pays attention to the cache file if you give it the
10498# --recheck option to rerun configure.
10499#
10500EOF
10501# The following way of writing the cache mishandles newlines in values,
10502# but we know of no workaround that is simple, portable, and efficient.
10503# So, don't put newlines in cache variables' values.
10504# Ultrix sh set writes to stderr and can't be redirected directly,
10505# and sets the high bit in the cache file unless we assign to the vars.
10506(set) 2>&1 |
10507 case `(ac_space=' '; set | grep ac_space) 2>&1` in
10508 *ac_space=\ *)
10509 # `set' does not quote correctly, so add quotes (double-quote substitution
10510 # turns \\\\ into \\, and sed turns \\ into \).
10511 sed -n \
10512 -e "s/'/'\\\\''/g" \
10513 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
10514 ;;
10515 *)
10516 # `set' quotes correctly as required by POSIX, so do not add quotes.
10517 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
10518 ;;
10519 esac >> confcache
10520if cmp -s $cache_file confcache; then
10521 :
10522else
10523 if test -w $cache_file; then
10524 echo "updating cache $cache_file"
10525 cat confcache > $cache_file
10526 else
10527 echo "not updating unwritable cache $cache_file"
10528 fi
10529fi
10530rm -f confcache
10531
10532
10533
10534if test "$USE_UNIX" = 1; then
10535
10536
10537THREADS_LINK=""
10538THREADS_OBJ=""
10539
10540if test "$wxUSE_THREADS" = "yes" ; then
10541 if test "$wxUSE_WINE" = 1 ; then
10542 echo "configure: warning: Threads are not supported under WINE" 1>&2
10543 wxUSE_THREADS="no"
b12915c1
VZ
10544 elif test "$USE_BEOS" = 1; then
10545 echo "configure: warning: BeOS threads are not yet supported" 1>&2
10546 wxUSE_THREADS="no"
10f2d63a
VZ
10547 fi
10548fi
10549
10550if test "$wxUSE_THREADS" = "yes" ; then
10551
10552 echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6
b12915c1 10553echo "configure:10554: checking for pthread_create in -lpthread" >&5
10f2d63a
VZ
10554ac_lib_var=`echo pthread'_'pthread_create | sed 'y%./+-%__p_%'`
10555if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10556 echo $ac_n "(cached) $ac_c" 1>&6
10557else
10558 ac_save_LIBS="$LIBS"
10559LIBS="-lpthread $LIBS"
10560cat > conftest.$ac_ext <<EOF
b12915c1 10561#line 10562 "configure"
10f2d63a
VZ
10562#include "confdefs.h"
10563/* Override any gcc2 internal prototype to avoid an error. */
10564/* We use char because int might match the return type of a gcc2
10565 builtin and then its argument prototype would still apply. */
10566char pthread_create();
10567
10568int main() {
10569pthread_create()
10570; return 0; }
10571EOF
b12915c1 10572if { (eval echo configure:10573: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
10573 rm -rf conftest*
10574 eval "ac_cv_lib_$ac_lib_var=yes"
10575else
10576 echo "configure: failed program was:" >&5
10577 cat conftest.$ac_ext >&5
10578 rm -rf conftest*
10579 eval "ac_cv_lib_$ac_lib_var=no"
10580fi
10581rm -f conftest*
10582LIBS="$ac_save_LIBS"
10583
10584fi
10585if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10586 echo "$ac_t""yes" 1>&6
10587
10588 THREADS_OBJ="threadpsx.lo"
10589 THREADS_LINK="pthread"
10590
10591else
10592 echo "$ac_t""no" 1>&6
10593
10594 echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6
b12915c1 10595echo "configure:10596: checking for pthread_create in -lc_r" >&5
10f2d63a
VZ
10596ac_lib_var=`echo c_r'_'pthread_create | sed 'y%./+-%__p_%'`
10597if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10598 echo $ac_n "(cached) $ac_c" 1>&6
10599else
10600 ac_save_LIBS="$LIBS"
10601LIBS="-lc_r $LIBS"
10602cat > conftest.$ac_ext <<EOF
b12915c1 10603#line 10604 "configure"
10f2d63a
VZ
10604#include "confdefs.h"
10605/* Override any gcc2 internal prototype to avoid an error. */
10606/* We use char because int might match the return type of a gcc2
10607 builtin and then its argument prototype would still apply. */
10608char pthread_create();
10609
10610int main() {
10611pthread_create()
10612; return 0; }
10613EOF
b12915c1 10614if { (eval echo configure:10615: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
10615 rm -rf conftest*
10616 eval "ac_cv_lib_$ac_lib_var=yes"
10617else
10618 echo "configure: failed program was:" >&5
10619 cat conftest.$ac_ext >&5
10620 rm -rf conftest*
10621 eval "ac_cv_lib_$ac_lib_var=no"
10622fi
10623rm -f conftest*
10624LIBS="$ac_save_LIBS"
10625
10626fi
10627if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10628 echo "$ac_t""yes" 1>&6
10629
10630 THREADS_OBJ="threadpsx.lo"
10631 THREADS_LINK="c_r"
10632
10633else
10634 echo "$ac_t""no" 1>&6
10635
10636 ac_safe=`echo "sys/prctl.h" | sed 'y%./+-%__p_%'`
10637echo $ac_n "checking for sys/prctl.h""... $ac_c" 1>&6
b12915c1 10638echo "configure:10639: checking for sys/prctl.h" >&5
10f2d63a
VZ
10639if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10640 echo $ac_n "(cached) $ac_c" 1>&6
10641else
10642 cat > conftest.$ac_ext <<EOF
b12915c1 10643#line 10644 "configure"
10f2d63a
VZ
10644#include "confdefs.h"
10645#include <sys/prctl.h>
10646EOF
10647ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
b12915c1 10648{ (eval echo configure:10649: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
10649ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10650if test -z "$ac_err"; then
10651 rm -rf conftest*
10652 eval "ac_cv_header_$ac_safe=yes"
10653else
10654 echo "$ac_err" >&5
10655 echo "configure: failed program was:" >&5
10656 cat conftest.$ac_ext >&5
10657 rm -rf conftest*
10658 eval "ac_cv_header_$ac_safe=no"
10659fi
10660rm -f conftest*
10661fi
10662if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10663 echo "$ac_t""yes" 1>&6
10664
10665 THREADS_OBJ="threadsgi.lo"
10666
10667else
10668 echo "$ac_t""no" 1>&6
10669fi
10670
10671
10672fi
10673
10674
10675fi
10676
10677
10678 if test -z "$THREADS_OBJ" ; then
10679 wxUSE_THREADS=no
10680 echo "configure: warning: No thread support on this system" 1>&2
10681 fi
10682fi
10683
10684if test "$wxUSE_THREADS" = "yes" ; then
70846f0a
VZ
10685 for ac_func in thr_setconcurrency
10686do
10687echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
b12915c1 10688echo "configure:10689: checking for $ac_func" >&5
70846f0a
VZ
10689if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10690 echo $ac_n "(cached) $ac_c" 1>&6
10691else
10692 cat > conftest.$ac_ext <<EOF
b12915c1 10693#line 10694 "configure"
70846f0a
VZ
10694#include "confdefs.h"
10695/* System header to define __stub macros and hopefully few prototypes,
10696 which can conflict with char $ac_func(); below. */
10697#include <assert.h>
10698/* Override any gcc2 internal prototype to avoid an error. */
10699/* We use char because int might match the return type of a gcc2
10700 builtin and then its argument prototype would still apply. */
10701char $ac_func();
10702
10703int main() {
10704
10705/* The GNU C library defines this for functions which it implements
10706 to always fail with ENOSYS. Some functions are actually named
10707 something starting with __ and the normal name is an alias. */
10708#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10709choke me
10710#else
e694c22c 10711$ac_func();
70846f0a
VZ
10712#endif
10713
10714; return 0; }
10715EOF
b12915c1 10716if { (eval echo configure:10717: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
70846f0a
VZ
10717 rm -rf conftest*
10718 eval "ac_cv_func_$ac_func=yes"
10719else
10720 echo "configure: failed program was:" >&5
10721 cat conftest.$ac_ext >&5
10722 rm -rf conftest*
10723 eval "ac_cv_func_$ac_func=no"
10724fi
10725rm -f conftest*
10726fi
10727
10728if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10729 echo "$ac_t""yes" 1>&6
10730 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10731 cat >> confdefs.h <<EOF
10732#define $ac_tr_func 1
10733EOF
10734
10735else
10736 echo "$ac_t""no" 1>&6
10737fi
10738done
10739
10740
10f2d63a
VZ
10741
10742 for ac_hdr in sched.h
10743do
10744ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10745echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
b12915c1 10746echo "configure:10747: checking for $ac_hdr" >&5
10f2d63a
VZ
10747if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10748 echo $ac_n "(cached) $ac_c" 1>&6
10749else
10750 cat > conftest.$ac_ext <<EOF
b12915c1 10751#line 10752 "configure"
10f2d63a
VZ
10752#include "confdefs.h"
10753#include <$ac_hdr>
10754EOF
10755ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
b12915c1 10756{ (eval echo configure:10757: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
10757ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10758if test -z "$ac_err"; then
10759 rm -rf conftest*
10760 eval "ac_cv_header_$ac_safe=yes"
10761else
10762 echo "$ac_err" >&5
10763 echo "configure: failed program was:" >&5
10764 cat conftest.$ac_ext >&5
10765 rm -rf conftest*
10766 eval "ac_cv_header_$ac_safe=no"
10767fi
10768rm -f conftest*
10769fi
10770if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10771 echo "$ac_t""yes" 1>&6
10772 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10773 cat >> confdefs.h <<EOF
10774#define $ac_tr_hdr 1
10775EOF
10776
10777else
10778 echo "$ac_t""no" 1>&6
10779fi
10780done
10781
10782
10783 echo $ac_n "checking for sched_yield in -l$THREADS_LINK""... $ac_c" 1>&6
b12915c1 10784echo "configure:10785: checking for sched_yield in -l$THREADS_LINK" >&5
10f2d63a
VZ
10785ac_lib_var=`echo $THREADS_LINK'_'sched_yield | sed 'y%./+-%__p_%'`
10786if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10787 echo $ac_n "(cached) $ac_c" 1>&6
10788else
10789 ac_save_LIBS="$LIBS"
10790LIBS="-l$THREADS_LINK $LIBS"
10791cat > conftest.$ac_ext <<EOF
b12915c1 10792#line 10793 "configure"
10f2d63a
VZ
10793#include "confdefs.h"
10794/* Override any gcc2 internal prototype to avoid an error. */
10795/* We use char because int might match the return type of a gcc2
10796 builtin and then its argument prototype would still apply. */
10797char sched_yield();
10798
10799int main() {
10800sched_yield()
10801; return 0; }
10802EOF
b12915c1 10803if { (eval echo configure:10804: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
10804 rm -rf conftest*
10805 eval "ac_cv_lib_$ac_lib_var=yes"
10806else
10807 echo "configure: failed program was:" >&5
10808 cat conftest.$ac_ext >&5
10809 rm -rf conftest*
10810 eval "ac_cv_lib_$ac_lib_var=no"
10811fi
10812rm -f conftest*
10813LIBS="$ac_save_LIBS"
10814
10815fi
10816if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10817 echo "$ac_t""yes" 1>&6
10818 cat >> confdefs.h <<\EOF
10819#define HAVE_SCHED_YIELD 1
10820EOF
10821
10822else
10823 echo "$ac_t""no" 1>&6
10824echo $ac_n "checking for sched_yield in -l"posix4"""... $ac_c" 1>&6
b12915c1 10825echo "configure:10826: checking for sched_yield in -l"posix4"" >&5
10f2d63a
VZ
10826ac_lib_var=`echo "posix4"'_'sched_yield | sed 'y%./+-%__p_%'`
10827if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10828 echo $ac_n "(cached) $ac_c" 1>&6
10829else
10830 ac_save_LIBS="$LIBS"
10831LIBS="-l"posix4" $LIBS"
10832cat > conftest.$ac_ext <<EOF
b12915c1 10833#line 10834 "configure"
10f2d63a
VZ
10834#include "confdefs.h"
10835/* Override any gcc2 internal prototype to avoid an error. */
10836/* We use char because int might match the return type of a gcc2
10837 builtin and then its argument prototype would still apply. */
10838char sched_yield();
10839
10840int main() {
10841sched_yield()
10842; return 0; }
10843EOF
b12915c1 10844if { (eval echo configure:10845: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
10845 rm -rf conftest*
10846 eval "ac_cv_lib_$ac_lib_var=yes"
10847else
10848 echo "configure: failed program was:" >&5
10849 cat conftest.$ac_ext >&5
10850 rm -rf conftest*
10851 eval "ac_cv_lib_$ac_lib_var=no"
10852fi
10853rm -f conftest*
10854LIBS="$ac_save_LIBS"
10855
10856fi
10857if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10858 echo "$ac_t""yes" 1>&6
10859 cat >> confdefs.h <<\EOF
10860#define HAVE_SCHED_YIELD 1
10861EOF
10862 POSIX4_LINK="-lposix4"
10863else
10864 echo "$ac_t""no" 1>&6
10865echo "configure: warning: wxThread::Yield will not work properly" 1>&2
10866
10867fi
10868
10869
10870fi
10871
10872
10873 echo $ac_n "checking for pthread_attr_getschedpolicy in -l$THREADS_LINK""... $ac_c" 1>&6
b12915c1 10874echo "configure:10875: checking for pthread_attr_getschedpolicy in -l$THREADS_LINK" >&5
10f2d63a
VZ
10875ac_lib_var=`echo $THREADS_LINK'_'pthread_attr_getschedpolicy | sed 'y%./+-%__p_%'`
10876if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10877 echo $ac_n "(cached) $ac_c" 1>&6
10878else
10879 ac_save_LIBS="$LIBS"
10880LIBS="-l$THREADS_LINK $LIBS"
10881cat > conftest.$ac_ext <<EOF
b12915c1 10882#line 10883 "configure"
10f2d63a
VZ
10883#include "confdefs.h"
10884/* Override any gcc2 internal prototype to avoid an error. */
10885/* We use char because int might match the return type of a gcc2
10886 builtin and then its argument prototype would still apply. */
10887char pthread_attr_getschedpolicy();
10888
10889int main() {
10890pthread_attr_getschedpolicy()
10891; return 0; }
10892EOF
b12915c1 10893if { (eval echo configure:10894: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
10894 rm -rf conftest*
10895 eval "ac_cv_lib_$ac_lib_var=yes"
10896else
10897 echo "configure: failed program was:" >&5
10898 cat conftest.$ac_ext >&5
10899 rm -rf conftest*
10900 eval "ac_cv_lib_$ac_lib_var=no"
10901fi
10902rm -f conftest*
10903LIBS="$ac_save_LIBS"
10904
10905fi
10906if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10907 echo "$ac_t""yes" 1>&6
10908 cat >> confdefs.h <<\EOF
10909#define HAVE_THREAD_PRIORITY_FUNCTIONS 1
10910EOF
10911
10912else
10913 echo "$ac_t""no" 1>&6
10914echo $ac_n "checking for pthread_attr_getschedpolicy in -l"posix4"""... $ac_c" 1>&6
b12915c1 10915echo "configure:10916: checking for pthread_attr_getschedpolicy in -l"posix4"" >&5
10f2d63a
VZ
10916ac_lib_var=`echo "posix4"'_'pthread_attr_getschedpolicy | sed 'y%./+-%__p_%'`
10917if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10918 echo $ac_n "(cached) $ac_c" 1>&6
10919else
10920 ac_save_LIBS="$LIBS"
10921LIBS="-l"posix4" $LIBS"
10922cat > conftest.$ac_ext <<EOF
b12915c1 10923#line 10924 "configure"
10f2d63a
VZ
10924#include "confdefs.h"
10925/* Override any gcc2 internal prototype to avoid an error. */
10926/* We use char because int might match the return type of a gcc2
10927 builtin and then its argument prototype would still apply. */
10928char pthread_attr_getschedpolicy();
10929
10930int main() {
10931pthread_attr_getschedpolicy()
10932; return 0; }
10933EOF
b12915c1 10934if { (eval echo configure:10935: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
10935 rm -rf conftest*
10936 eval "ac_cv_lib_$ac_lib_var=yes"
10937else
10938 echo "configure: failed program was:" >&5
10939 cat conftest.$ac_ext >&5
10940 rm -rf conftest*
10941 eval "ac_cv_lib_$ac_lib_var=no"
10942fi
10943rm -f conftest*
10944LIBS="$ac_save_LIBS"
10945
10946fi
10947if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10948 echo "$ac_t""yes" 1>&6
10949 cat >> confdefs.h <<\EOF
10950#define HAVE_THREAD_PRIORITY_FUNCTIONS 1
10951EOF
10952 POSIX4_LINK="-lposix4"
10953else
10954 echo "$ac_t""no" 1>&6
10955echo "configure: warning: Setting thread priority will not work" 1>&2
10956
10957fi
10958
10959
10960fi
10961
10962
10963 echo $ac_n "checking for pthread_cancel in -l$THREADS_LINK""... $ac_c" 1>&6
b12915c1 10964echo "configure:10965: checking for pthread_cancel in -l$THREADS_LINK" >&5
10f2d63a
VZ
10965ac_lib_var=`echo $THREADS_LINK'_'pthread_cancel | sed 'y%./+-%__p_%'`
10966if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10967 echo $ac_n "(cached) $ac_c" 1>&6
10968else
10969 ac_save_LIBS="$LIBS"
10970LIBS="-l$THREADS_LINK $LIBS"
10971cat > conftest.$ac_ext <<EOF
b12915c1 10972#line 10973 "configure"
10f2d63a
VZ
10973#include "confdefs.h"
10974/* Override any gcc2 internal prototype to avoid an error. */
10975/* We use char because int might match the return type of a gcc2
10976 builtin and then its argument prototype would still apply. */
10977char pthread_cancel();
10978
10979int main() {
10980pthread_cancel()
10981; return 0; }
10982EOF
b12915c1 10983if { (eval echo configure:10984: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
10984 rm -rf conftest*
10985 eval "ac_cv_lib_$ac_lib_var=yes"
10986else
10987 echo "configure: failed program was:" >&5
10988 cat conftest.$ac_ext >&5
10989 rm -rf conftest*
10990 eval "ac_cv_lib_$ac_lib_var=no"
10991fi
10992rm -f conftest*
10993LIBS="$ac_save_LIBS"
10994
10995fi
10996if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10997 echo "$ac_t""yes" 1>&6
10998 cat >> confdefs.h <<\EOF
10999#define HAVE_PTHREAD_CANCEL 1
11000EOF
11001
11002else
11003 echo "$ac_t""no" 1>&6
11004echo "configure: warning: wxThread::Kill() will not work properly" 1>&2
11005fi
11006
11007
11008 echo $ac_n "checking for pthread_cleanup_push/pop""... $ac_c" 1>&6
b12915c1 11009echo "configure:11010: checking for pthread_cleanup_push/pop" >&5
10f2d63a
VZ
11010if eval "test \"`echo '$''{'wx_cv_func_pthread_cleanup_push'+set}'`\" = set"; then
11011 echo $ac_n "(cached) $ac_c" 1>&6
11012else
11013
11014 cat > conftest.$ac_ext <<EOF
b12915c1 11015#line 11016 "configure"
10f2d63a
VZ
11016#include "confdefs.h"
11017#include <pthread.h>
11018int main() {
11019
11020 pthread_cleanup_push(NULL, NULL);
11021 pthread_cleanup_pop(0);
11022
11023; return 0; }
11024EOF
b12915c1 11025if { (eval echo configure:11026: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10f2d63a
VZ
11026 rm -rf conftest*
11027
11028 wx_cv_func_pthread_cleanup_push=yes
11029 cat >> confdefs.h <<\EOF
11030#define HAVE_THREAD_CLEANUP_FUNCTIONS 1
11031EOF
11032
11033
11034else
11035 echo "configure: failed program was:" >&5
11036 cat conftest.$ac_ext >&5
11037 rm -rf conftest*
11038
11039 wx_cv_func_pthread_cleanup_push=no
11040
11041fi
11042rm -f conftest*
11043
11044fi
11045
11046echo "$ac_t""$wx_cv_func_pthread_cleanup_push" 1>&6
11047
11048 THREADS_LINK="-l$THREADS_LINK"
11049fi
11050
11051fi
11052
11053if test "$wxUSE_THREADS" = "yes"; then
11054 cat >> confdefs.h <<\EOF
11055#define wxUSE_THREADS 1
11056EOF
11057
11058
11059 CFLAGS="${CFLAGS} -D_REENTRANT"
11060 CXXFLAGS="${CXXFLAGS} -D_REENTRANT"
11061
11062 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
11063else
11064 if test "$ac_cv_func_strtok_r" = "yes"; then
ab9b9eab 11065 echo $ac_n "checking if -D_REENTRANT is needed""... $ac_c" 1>&6
b12915c1 11066echo "configure:11067: checking if -D_REENTRANT is needed" >&5
ab9b9eab
VZ
11067 if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
11068 CFLAGS="${CFLAGS} -D_REENTRANT"
11069 CXXFLAGS="${CXXFLAGS} -D_REENTRANT"
11070 echo "$ac_t""yes" 1>&6
11071 else
11072 echo "$ac_t""no" 1>&6
10f2d63a
VZ
11073 fi
11074 fi
11075fi
11076
11077if test "$WXGTK12" = 1 ; then
11078 cat >> confdefs.h <<EOF
11079#define __WXGTK12__ $WXGTK12
11080EOF
11081
11082fi
11083
11084if test "$WXWINE" = 1 ; then
11085 TOOLKIT_DEF="${TOOLKIT_DEF} -D__WXWINE__"
11086fi
11087
11088if test "$wxUSE_CYGWIN" = 1 ; then
11089 TOOLKIT_DEF="${TOOLKIT_DEF} -D__WIN95__"
11090fi
11091
11092WXDEBUG=
11093
11094if test "$wxUSE_DEBUG_INFO" = "yes" ; then
11095 WXDEBUG="-g"
11096 wxUSE_OPTIMISE=no
11097fi
11098
11099if test "$wxUSE_DEBUG_GDB" = "yes" ; then
11100 wxUSE_DEBUG_INFO=yes
11101 WXDEBUG="-ggdb"
11102fi
11103
11104if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
11105 cat >> confdefs.h <<\EOF
11106#define WXDEBUG 1
11107EOF
11108
11109 WXDEBUG_DEFINE="-D__WXDEBUG__"
11110else
11111 if test "$wxUSE_GTK" = 1 ; then
11112 WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS"
11113 fi
11114fi
11115
11116if test "$wxUSE_MEM_TRACING" = "yes" ; then
11117 cat >> confdefs.h <<\EOF
11118#define wxUSE_MEMORY_TRACING 1
11119EOF
11120
11121 cat >> confdefs.h <<\EOF
11122#define wxUSE_GLOBAL_MEMORY_OPERATORS 1
11123EOF
11124
11125 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
11126fi
11127
11128if test "$wxUSE_DMALLOC" = "yes" ; then
11129 DMALLOC_LINK="-ldmalloc"
11130fi
11131
11132PROFILE=
11133if test "$wxUSE_PROFILE" = "yes" ; then
11134 PROFILE="-pg"
11135fi
11136
11137DEP_INFO_FLAGS=
11138if test "$GCC" = yes ; then
11139 if test "$wxUSE_NO_RTTI" = "yes" ; then
11140 WXDEBUG_DEFINE="$WXDEBUG_DEFINE -fno-rtti"
11141 fi
11142 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
11143 WXDEBUG_DEFINE="$WXDEBUG_DEFINE -fno-exceptions"
11144 fi
11145 if test "$wxUSE_PERMISSIVE" = "yes" ; then
11146 CFLAGS="${CFLAGS} -fpermissive"
11147 CXXFLAGS="${CXXFLAGS} -fpermissive"
11148 fi
11149 if test "$wxUSE_NO_DEPS" = "no" ; then
11150 DEP_INFO_FLAGS="-MMD"
11151 fi
11152fi
11153
11154
11155CXXFLAGS=`echo "${CXXFLAGS}" | sed "s/\-O.//g" `
11156CFLAGS=`echo "${CFLAGS}" | sed "s/\-O.//g" `
11157if test "$wxUSE_OPTIMISE" = "no" ; then
11158 OPTIMISE=
11159else
11160 if test "$GCC" = yes ; then
11161 OPTIMISE="-O2"
11162 case "${host}" in
11163 i586-*-*|i686-*-* )
11164 OPTIMISE="${OPTIMISE} "
11165 ;;
11166 esac
11167 else
11168 OPTIMISE="-O"
11169 fi
11170fi
11171
11172
11173ZLIB_INCLUDE=
11174if test "$wxUSE_ZLIB" = "yes" ; then
11175 cat >> confdefs.h <<\EOF
11176#define wxUSE_ZLIB 1
11177EOF
11178
11179 ZLIB_INCLUDE="-I\${top_srcdir}/src/zlib"
11180fi
11181
11182PNG_INCLUDE=
11183if test "$wxUSE_LIBPNG" = "yes" ; then
11184 cat >> confdefs.h <<\EOF
11185#define wxUSE_LIBPNG 1
11186EOF
11187
11188 PNG_INCLUDE="-I\${top_srcdir}/src/png"
11189 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
11190fi
11191
11192JPEG_INCLUDE=
11193if test "$wxUSE_LIBJPEG" = "yes" ; then
11194 cat >> confdefs.h <<\EOF
11195#define wxUSE_LIBJPEG 1
11196EOF
11197
11198 JPEG_INCLUDE="-I\${top_srcdir}/src/jpeg"
11199fi
11200
c7a2bf27
RR
11201TIFF_INCLUDE=
11202if test "$wxUSE_LIBTIFF" = "yes" ; then
11203 cat >> confdefs.h <<\EOF
11204#define wxUSE_LIBTIFF 1
11205EOF
11206
11207 TIFF_INCLUDE="-I\${top_srcdir}/src/tiff"
11208fi
11209
10f2d63a
VZ
11210if test "$wxUSE_OPENGL" = "yes"; then
11211 ac_safe=`echo "GL/gl.h" | sed 'y%./+-%__p_%'`
11212echo $ac_n "checking for GL/gl.h""... $ac_c" 1>&6
b12915c1 11213echo "configure:11214: checking for GL/gl.h" >&5
10f2d63a
VZ
11214if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11215 echo $ac_n "(cached) $ac_c" 1>&6
11216else
11217 cat > conftest.$ac_ext <<EOF
b12915c1 11218#line 11219 "configure"
10f2d63a
VZ
11219#include "confdefs.h"
11220#include <GL/gl.h>
11221EOF
11222ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
b12915c1 11223{ (eval echo configure:11224: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
11224ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11225if test -z "$ac_err"; then
11226 rm -rf conftest*
11227 eval "ac_cv_header_$ac_safe=yes"
11228else
11229 echo "$ac_err" >&5
11230 echo "configure: failed program was:" >&5
11231 cat conftest.$ac_ext >&5
11232 rm -rf conftest*
11233 eval "ac_cv_header_$ac_safe=no"
11234fi
11235rm -f conftest*
11236fi
11237if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11238 echo "$ac_t""yes" 1>&6
11239
11240 echo $ac_n "checking for glInitNames in -lGL""... $ac_c" 1>&6
b12915c1 11241echo "configure:11242: checking for glInitNames in -lGL" >&5
10f2d63a
VZ
11242ac_lib_var=`echo GL'_'glInitNames | sed 'y%./+-%__p_%'`
11243if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11244 echo $ac_n "(cached) $ac_c" 1>&6
11245else
11246 ac_save_LIBS="$LIBS"
11247LIBS="-lGL wxUSE_OPENGL=0 $LIBS"
11248cat > conftest.$ac_ext <<EOF
b12915c1 11249#line 11250 "configure"
10f2d63a
VZ
11250#include "confdefs.h"
11251/* Override any gcc2 internal prototype to avoid an error. */
11252/* We use char because int might match the return type of a gcc2
11253 builtin and then its argument prototype would still apply. */
11254char glInitNames();
11255
11256int main() {
11257glInitNames()
11258; return 0; }
11259EOF
b12915c1 11260if { (eval echo configure:11261: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
11261 rm -rf conftest*
11262 eval "ac_cv_lib_$ac_lib_var=yes"
11263else
11264 echo "configure: failed program was:" >&5
11265 cat conftest.$ac_ext >&5
11266 rm -rf conftest*
11267 eval "ac_cv_lib_$ac_lib_var=no"
11268fi
11269rm -f conftest*
11270LIBS="$ac_save_LIBS"
11271
11272fi
11273if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11274 echo "$ac_t""yes" 1>&6
11275
11276 OPENGL_LINK="-lGL"
11277 cat >> confdefs.h <<\EOF
11278#define wxUSE_OPENGL 1
11279EOF
11280
11281 UTILS_SUBDIRS="$UTILS_SUBDIRS glcanvas/src"
11282
11283else
11284 echo "$ac_t""no" 1>&6
11285
11286 echo $ac_n "checking for glInitNames in -lMesaGL""... $ac_c" 1>&6
b12915c1 11287echo "configure:11288: checking for glInitNames in -lMesaGL" >&5
10f2d63a
VZ
11288ac_lib_var=`echo MesaGL'_'glInitNames | sed 'y%./+-%__p_%'`
11289if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11290 echo $ac_n "(cached) $ac_c" 1>&6
11291else
11292 ac_save_LIBS="$LIBS"
11293LIBS="-lMesaGL $LIBS"
11294cat > conftest.$ac_ext <<EOF
b12915c1 11295#line 11296 "configure"
10f2d63a
VZ
11296#include "confdefs.h"
11297/* Override any gcc2 internal prototype to avoid an error. */
11298/* We use char because int might match the return type of a gcc2
11299 builtin and then its argument prototype would still apply. */
11300char glInitNames();
11301
11302int main() {
11303glInitNames()
11304; return 0; }
11305EOF
b12915c1 11306if { (eval echo configure:11307: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
11307 rm -rf conftest*
11308 eval "ac_cv_lib_$ac_lib_var=yes"
11309else
11310 echo "configure: failed program was:" >&5
11311 cat conftest.$ac_ext >&5
11312 rm -rf conftest*
11313 eval "ac_cv_lib_$ac_lib_var=no"
11314fi
11315rm -f conftest*
11316LIBS="$ac_save_LIBS"
11317
11318fi
11319if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11320 echo "$ac_t""yes" 1>&6
11321
11322 OPENGL_LINK="-lMesaGL"
11323 cat >> confdefs.h <<\EOF
11324#define wxUSE_OPENGL 1
11325EOF
11326
11327 UTILS_SUBDIRS="$UTILS_SUBDIRS glcanvas/src"
11328
11329else
11330 echo "$ac_t""no" 1>&6
11331wxUSE_OPENGL=0
11332fi
11333
11334
11335fi
11336
11337
11338else
11339 echo "$ac_t""no" 1>&6
11340wxUSE_OPENGL=0
11341fi
11342
11343fi
11344
11345
11346if test "$wxUSE_GUI" = "yes"; then
11347 cat >> confdefs.h <<\EOF
11348#define wxUSE_GUI 1
11349EOF
11350
11351
11352 else
11353 cat >> confdefs.h <<\EOF
11354#define wxUSE_NOGUI 1
11355EOF
11356
11357fi
11358
11359
11360if test "$wxUSE_UNIX" = "yes"; then
11361 cat >> confdefs.h <<\EOF
11362#define wxUSE_UNIX 1
11363EOF
11364
11365fi
11366
11367
11368if test "$wxUSE_APPLE_IEEE" = "yes"; then
11369 cat >> confdefs.h <<\EOF
11370#define wxUSE_APPLE_IEEE 1
11371EOF
11372
11373fi
11374
10f2d63a
VZ
11375if test "$wxUSE_WAVE" = "yes"; then
11376 cat >> confdefs.h <<\EOF
11377#define wxUSE_WAVE 1
11378EOF
11379
11380fi
11381
11382if test "$wxUSE_FILE" = "yes"; then
11383 cat >> confdefs.h <<\EOF
11384#define wxUSE_FILE 1
11385EOF
11386
11387fi
11388
11389if test "$wxUSE_FS_INET" = "yes"; then
11390 cat >> confdefs.h <<\EOF
11391#define wxUSE_FS_INET 1
11392EOF
11393
11394fi
11395
11396if test "$wxUSE_FS_ZIP" = "yes"; then
11397 cat >> confdefs.h <<\EOF
11398#define wxUSE_FS_ZIP 1
11399EOF
11400
11401fi
11402
11403if test "$wxUSE_ZIPSTREAM" = "yes"; then
11404 cat >> confdefs.h <<\EOF
11405#define wxUSE_ZIPSTREAM 1
11406EOF
11407
11408fi
11409
11410if test "$wxUSE_BUSYINFO" = "yes"; then
11411 cat >> confdefs.h <<\EOF
11412#define wxUSE_BUSYINFO 1
11413EOF
11414
11415fi
11416
11417if test "$wxUSE_STD_IOSTREAM" = "yes"; then
11418 cat >> confdefs.h <<\EOF
11419#define wxUSE_STD_IOSTREAM 1
11420EOF
11421
11422fi
11423
11424if test "$wxUSE_TEXTFILE" = "yes"; then
11425 if test "$wxUSE_FILE" != "yes"; then
11426 echo "configure: warning: wxTextFile requires wxFile and it won't be compiled without it" 1>&2
11427 else
11428 cat >> confdefs.h <<\EOF
11429#define wxUSE_TEXTFILE 1
11430EOF
11431
11432 fi
11433fi
11434
11435if test "$wxUSE_CONFIG" = "yes" ; then
11436 if test "$wxUSE_TEXTFILE" != "yes"; then
11437 echo "configure: warning: wxConfig requires wxTextFile and it won't be compiled without it" 1>&2
11438 else
11439 cat >> confdefs.h <<\EOF
11440#define wxUSE_CONFIG 1
11441EOF
11442
11443 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
11444 fi
11445fi
11446
11447if test "$wxUSE_INTL" = "yes" ; then
11448 if test "$wxUSE_FILE" != "yes"; then
11449 echo "configure: warning: I18n code requires wxFile and it won't be compiled without it" 1>&2
11450 else
11451 cat >> confdefs.h <<\EOF
11452#define wxUSE_INTL 1
11453EOF
11454
11455 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
11456 fi
11457fi
11458
11459if test "$wxUSE_LOG" = "yes"; then
11460 cat >> confdefs.h <<\EOF
11461#define wxUSE_LOG 1
11462EOF
11463
11464fi
11465
11466if test "$wxUSE_LONGLONG" = "yes"; then
11467 cat >> confdefs.h <<\EOF
11468#define wxUSE_LONGLONG 1
11469EOF
11470
11471fi
11472
10f2d63a
VZ
11473if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then
11474 cat >> confdefs.h <<\EOF
11475#define wxUSE_DIALUP_MANAGER 1
11476EOF
11477
678b92a9 11478 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS nettest"
10f2d63a
VZ
11479fi
11480
11481if test "$wxUSE_STREAMS" = "yes" ; then
11482 cat >> confdefs.h <<\EOF
11483#define wxUSE_STREAMS 1
11484EOF
11485
11486fi
11487
10f2d63a 11488
afc31813 11489if test "$wxUSE_TIMEDATE" = "yes"; then
83307f33
VZ
11490 for ac_func in strptime
11491do
11492echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
b12915c1 11493echo "configure:11494: checking for $ac_func" >&5
83307f33
VZ
11494if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11495 echo $ac_n "(cached) $ac_c" 1>&6
11496else
11497 cat > conftest.$ac_ext <<EOF
b12915c1 11498#line 11499 "configure"
83307f33
VZ
11499#include "confdefs.h"
11500/* System header to define __stub macros and hopefully few prototypes,
11501 which can conflict with char $ac_func(); below. */
11502#include <assert.h>
11503/* Override any gcc2 internal prototype to avoid an error. */
11504/* We use char because int might match the return type of a gcc2
11505 builtin and then its argument prototype would still apply. */
11506char $ac_func();
11507
11508int main() {
11509
11510/* The GNU C library defines this for functions which it implements
11511 to always fail with ENOSYS. Some functions are actually named
11512 something starting with __ and the normal name is an alias. */
11513#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11514choke me
11515#else
11516$ac_func();
11517#endif
11518
11519; return 0; }
11520EOF
b12915c1 11521if { (eval echo configure:11522: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
83307f33
VZ
11522 rm -rf conftest*
11523 eval "ac_cv_func_$ac_func=yes"
11524else
11525 echo "configure: failed program was:" >&5
11526 cat conftest.$ac_ext >&5
11527 rm -rf conftest*
11528 eval "ac_cv_func_$ac_func=no"
11529fi
11530rm -f conftest*
11531fi
11532
11533if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11534 echo "$ac_t""yes" 1>&6
11535 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11536 cat >> confdefs.h <<EOF
11537#define $ac_tr_func 1
11538EOF
11539
11540else
11541 echo "$ac_t""no" 1>&6
11542fi
11543done
11544
11545
360d6699 11546 echo $ac_n "checking for timezone variable in <time.h>""... $ac_c" 1>&6
b12915c1 11547echo "configure:11548: checking for timezone variable in <time.h>" >&5
360d6699
VZ
11548if eval "test \"`echo '$''{'wx_cv_var_timezone'+set}'`\" = set"; then
11549 echo $ac_n "(cached) $ac_c" 1>&6
11550else
11551
11552 cat > conftest.$ac_ext <<EOF
b12915c1 11553#line 11554 "configure"
360d6699
VZ
11554#include "confdefs.h"
11555
11556 #include <time.h>
11557
11558int main() {
11559
11560 int tz;
11561 tz = __timezone;
11562
11563; return 0; }
11564EOF
b12915c1 11565if { (eval echo configure:11566: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
360d6699
VZ
11566 rm -rf conftest*
11567
11568 wx_cv_var_timezone=__timezone
11569
11570else
11571 echo "configure: failed program was:" >&5
11572 cat conftest.$ac_ext >&5
11573 rm -rf conftest*
11574
11575 cat > conftest.$ac_ext <<EOF
b12915c1 11576#line 11577 "configure"
360d6699
VZ
11577#include "confdefs.h"
11578
11579 #include <time.h>
11580
11581int main() {
11582
11583 int tz;
11584 tz = _timezone;
11585
11586; return 0; }
11587EOF
b12915c1 11588if { (eval echo configure:11589: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
360d6699
VZ
11589 rm -rf conftest*
11590
11591 wx_cv_var_timezone=_timezone
11592
5357c8e8
VZ
11593else
11594 echo "configure: failed program was:" >&5
11595 cat conftest.$ac_ext >&5
11596 rm -rf conftest*
11597
11598 cat > conftest.$ac_ext <<EOF
b12915c1 11599#line 11600 "configure"
5357c8e8
VZ
11600#include "confdefs.h"
11601
11602 #include <time.h>
11603
11604int main() {
11605
11606 int tz;
11607 tz = timezone;
11608
11609; return 0; }
11610EOF
b12915c1 11611if { (eval echo configure:11612: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5357c8e8
VZ
11612 rm -rf conftest*
11613
11614 wx_cv_var_timezone=timezone
11615
360d6699
VZ
11616else
11617 echo "configure: failed program was:" >&5
11618 cat conftest.$ac_ext >&5
11619 rm -rf conftest*
11620 { echo "configure: error: no timezone variable" 1>&2; exit 1; }
5357c8e8
VZ
11621
11622fi
11623rm -f conftest*
11624
360d6699
VZ
11625
11626fi
11627rm -f conftest*
11628
11629
11630fi
11631rm -f conftest*
11632
11633
11634fi
11635
11636echo "$ac_t""$wx_cv_var_timezone" 1>&6
11637
11638 cat >> confdefs.h <<EOF
11639#define WX_TIMEZONE $wx_cv_var_timezone
11640EOF
11641
11642
0470b1e6 11643 for ac_func in localtime gettimeofday ftime
afc31813
VZ
11644do
11645echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
b12915c1 11646echo "configure:11647: checking for $ac_func" >&5
afc31813
VZ
11647if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11648 echo $ac_n "(cached) $ac_c" 1>&6
11649else
11650 cat > conftest.$ac_ext <<EOF
b12915c1 11651#line 11652 "configure"
10f2d63a 11652#include "confdefs.h"
afc31813
VZ
11653/* System header to define __stub macros and hopefully few prototypes,
11654 which can conflict with char $ac_func(); below. */
11655#include <assert.h>
11656/* Override any gcc2 internal prototype to avoid an error. */
11657/* We use char because int might match the return type of a gcc2
11658 builtin and then its argument prototype would still apply. */
11659char $ac_func();
11660
10f2d63a 11661int main() {
afc31813
VZ
11662
11663/* The GNU C library defines this for functions which it implements
11664 to always fail with ENOSYS. Some functions are actually named
11665 something starting with __ and the normal name is an alias. */
11666#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11667choke me
11668#else
e694c22c 11669$ac_func();
afc31813
VZ
11670#endif
11671
10f2d63a
VZ
11672; return 0; }
11673EOF
b12915c1 11674if { (eval echo configure:11675: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a 11675 rm -rf conftest*
afc31813 11676 eval "ac_cv_func_$ac_func=yes"
10f2d63a
VZ
11677else
11678 echo "configure: failed program was:" >&5
11679 cat conftest.$ac_ext >&5
11680 rm -rf conftest*
afc31813
VZ
11681 eval "ac_cv_func_$ac_func=no"
11682fi
11683rm -f conftest*
11684fi
11685
11686if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11687 echo "$ac_t""yes" 1>&6
11688 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11689 cat >> confdefs.h <<EOF
11690#define $ac_tr_func 1
11691EOF
0470b1e6 11692 break
afc31813
VZ
11693else
11694 echo "$ac_t""no" 1>&6
11695fi
11696done
11697
11698
0470b1e6
VZ
11699 if test "$ac_cv_func_localtime" = "yes"; then
11700 echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6
b12915c1 11701echo "configure:11702: checking for tm_gmtoff in struct tm" >&5
0470b1e6
VZ
11702if eval "test \"`echo '$''{'wx_cv_struct_tm_has_gmtoff'+set}'`\" = set"; then
11703 echo $ac_n "(cached) $ac_c" 1>&6
11704else
11705
11706 cat > conftest.$ac_ext <<EOF
b12915c1 11707#line 11708 "configure"
0470b1e6
VZ
11708#include "confdefs.h"
11709
11710 #include <time.h>
11711
11712int main() {
11713
11714 struct tm tm;
11715 tm.tm_gmtoff++;
11716
11717; return 0; }
11718EOF
b12915c1 11719if { (eval echo configure:11720: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
0470b1e6
VZ
11720 rm -rf conftest*
11721
f03a98d8 11722 wx_cv_struct_tm_has_gmtoff=yes
0470b1e6
VZ
11723 cat >> confdefs.h <<\EOF
11724#define WX_GMTOFF_IN_TM 1
11725EOF
11726
11727
11728else
11729 echo "configure: failed program was:" >&5
11730 cat conftest.$ac_ext >&5
11731 rm -rf conftest*
11732 wx_cv_struct_tm_has_gmtoff=no
11733
11734fi
11735rm -f conftest*
11736
11737fi
11738
11739echo "$ac_t""$wx_cv_struct_tm_has_gmtoff" 1>&6
11740 elif test "$ac_cv_func_gettimeofday" = "yes"; then
afc31813 11741 echo $ac_n "checking whether gettimeofday takes two arguments""... $ac_c" 1>&6
b12915c1 11742echo "configure:11743: checking whether gettimeofday takes two arguments" >&5
afc31813
VZ
11743if eval "test \"`echo '$''{'wx_cv_func_gettimeofday_has_2_args'+set}'`\" = set"; then
11744 echo $ac_n "(cached) $ac_c" 1>&6
11745else
11746
11747
11748 ac_ext=C
11749# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11750ac_cpp='$CXXCPP $CPPFLAGS'
11751ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11752ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11753cross_compiling=$ac_cv_prog_cxx_cross
11754
11755
11756 cat > conftest.$ac_ext <<EOF
b12915c1 11757#line 11758 "configure"
10f2d63a 11758#include "confdefs.h"
afc31813
VZ
11759
11760 #include <sys/time.h>
11761 #include <unistd.h>
11762
10f2d63a 11763int main() {
afc31813
VZ
11764
11765 struct timeval tv;
11766 struct timezone tz;
11767 gettimeofday(&tv, &tz);
11768
10f2d63a
VZ
11769; return 0; }
11770EOF
b12915c1 11771if { (eval echo configure:11772: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10f2d63a 11772 rm -rf conftest*
afc31813 11773 wx_cv_func_gettimeofday_has_2_args=yes
10f2d63a
VZ
11774else
11775 echo "configure: failed program was:" >&5
11776 cat conftest.$ac_ext >&5
11777 rm -rf conftest*
11778 cat > conftest.$ac_ext <<EOF
b12915c1 11779#line 11780 "configure"
10f2d63a 11780#include "confdefs.h"
afc31813
VZ
11781
11782 #include <sys/time.h>
11783 #include <unistd.h>
11784
10f2d63a 11785int main() {
afc31813
VZ
11786
11787 struct timeval tv;
11788 gettimeofday(&tv);
11789
10f2d63a
VZ
11790; return 0; }
11791EOF
b12915c1 11792if { (eval echo configure:11793: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10f2d63a 11793 rm -rf conftest*
afc31813 11794 wx_cv_func_gettimeofday_has_2_args=no
10f2d63a
VZ
11795else
11796 echo "configure: failed program was:" >&5
11797 cat conftest.$ac_ext >&5
11798 rm -rf conftest*
afc31813
VZ
11799 wx_cv_func_gettimeofday_has_2_args=unknown
11800
10f2d63a
VZ
11801fi
11802rm -f conftest*
afc31813 11803
10f2d63a
VZ
11804fi
11805rm -f conftest*
afc31813 11806 ac_ext=c
10f2d63a
VZ
11807# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11808ac_cpp='$CPP $CPPFLAGS'
11809ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11810ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11811cross_compiling=$ac_cv_prog_cc_cross
11812
afc31813
VZ
11813
11814fi
11815
11816echo "$ac_t""$wx_cv_func_gettimeofday_has_2_args" 1>&6
c63c7106 11817
afc31813
VZ
11818 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
11819 cat >> confdefs.h <<\EOF
11820#define WX_GETTIMEOFDAY_NO_TZ 1
11821EOF
11822
11823 fi
11824 fi
11825
11826 cat >> confdefs.h <<\EOF
11827#define wxUSE_TIMEDATE 1
11828EOF
11829
11830 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
11831fi
11832
11833
11834if test "$wxUSE_SOCKETS" = "yes"; then
c63c7106 11835 echo $ac_n "checking for socket""... $ac_c" 1>&6
b12915c1 11836echo "configure:11837: checking for socket" >&5
c63c7106
VZ
11837if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
11838 echo $ac_n "(cached) $ac_c" 1>&6
11839else
11840 cat > conftest.$ac_ext <<EOF
b12915c1 11841#line 11842 "configure"
c63c7106
VZ
11842#include "confdefs.h"
11843/* System header to define __stub macros and hopefully few prototypes,
11844 which can conflict with char socket(); below. */
11845#include <assert.h>
11846/* Override any gcc2 internal prototype to avoid an error. */
11847/* We use char because int might match the return type of a gcc2
11848 builtin and then its argument prototype would still apply. */
11849char socket();
11850
11851int main() {
11852
11853/* The GNU C library defines this for functions which it implements
11854 to always fail with ENOSYS. Some functions are actually named
11855 something starting with __ and the normal name is an alias. */
11856#if defined (__stub_socket) || defined (__stub___socket)
11857choke me
11858#else
e694c22c 11859socket();
c63c7106
VZ
11860#endif
11861
11862; return 0; }
11863EOF
b12915c1 11864if { (eval echo configure:11865: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
c63c7106
VZ
11865 rm -rf conftest*
11866 eval "ac_cv_func_socket=yes"
11867else
11868 echo "configure: failed program was:" >&5
11869 cat conftest.$ac_ext >&5
11870 rm -rf conftest*
11871 eval "ac_cv_func_socket=no"
11872fi
11873rm -f conftest*
11874fi
11875
11876if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
11877 echo "$ac_t""yes" 1>&6
11878 :
11879else
11880 echo "$ac_t""no" 1>&6
11881echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
b12915c1 11882echo "configure:11883: checking for socket in -lsocket" >&5
c63c7106
VZ
11883ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
11884if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11885 echo $ac_n "(cached) $ac_c" 1>&6
11886else
11887 ac_save_LIBS="$LIBS"
11888LIBS="-lsocket $LIBS"
11889cat > conftest.$ac_ext <<EOF
b12915c1 11890#line 11891 "configure"
c63c7106
VZ
11891#include "confdefs.h"
11892/* Override any gcc2 internal prototype to avoid an error. */
11893/* We use char because int might match the return type of a gcc2
11894 builtin and then its argument prototype would still apply. */
11895char socket();
11896
11897int main() {
11898socket()
11899; return 0; }
11900EOF
b12915c1 11901if { (eval echo configure:11902: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
c63c7106
VZ
11902 rm -rf conftest*
11903 eval "ac_cv_lib_$ac_lib_var=yes"
11904else
11905 echo "configure: failed program was:" >&5
11906 cat conftest.$ac_ext >&5
11907 rm -rf conftest*
11908 eval "ac_cv_lib_$ac_lib_var=no"
11909fi
11910rm -f conftest*
11911LIBS="$ac_save_LIBS"
11912
11913fi
11914if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11915 echo "$ac_t""yes" 1>&6
11916 INET_LINK="$INET_LINK -lsocket"
c63c7106
VZ
11917else
11918 echo "$ac_t""no" 1>&6
afc31813
VZ
11919
11920 echo "configure: warning: socket library not found - sockets will be disabled" 1>&2
11921 wxUSE_SOCKETS=no
11922
11923
c63c7106
VZ
11924fi
11925
11926
11927fi
11928
10f2d63a
VZ
11929fi
11930
afc31813
VZ
11931if test "$wxUSE_SOCKETS" = "yes" ; then
11932
11933 ac_ext=C
11934# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11935ac_cpp='$CXXCPP $CPPFLAGS'
11936ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11937ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11938cross_compiling=$ac_cv_prog_cxx_cross
11939
11940 echo $ac_n "checking the type of the third argument of getsockname""... $ac_c" 1>&6
b12915c1 11941echo "configure:11942: checking the type of the third argument of getsockname" >&5
afc31813 11942 cat > conftest.$ac_ext <<EOF
b12915c1 11943#line 11944 "configure"
afc31813
VZ
11944#include "confdefs.h"
11945#include <sys/socket.h>
11946int main() {
11947socklen_t len; getsockname(0, 0, &len);
11948; return 0; }
11949EOF
b12915c1 11950if { (eval echo configure:11951: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
afc31813
VZ
11951 rm -rf conftest*
11952 cat >> confdefs.h <<\EOF
11953#define SOCKLEN_T socklen_t
11954EOF
11955 echo "$ac_t""socklen_t" 1>&6
11956else
11957 echo "configure: failed program was:" >&5
11958 cat conftest.$ac_ext >&5
11959 rm -rf conftest*
11960 cat > conftest.$ac_ext <<EOF
b12915c1 11961#line 11962 "configure"
afc31813
VZ
11962#include "confdefs.h"
11963#include <sys/socket.h>
11964int main() {
11965size_t len; getsockname(0, 0, &len);
11966; return 0; }
11967EOF
b12915c1 11968if { (eval echo configure:11969: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
afc31813
VZ
11969 rm -rf conftest*
11970 cat >> confdefs.h <<\EOF
11971#define SOCKLEN_T size_t
11972EOF
11973 echo "$ac_t""size_t" 1>&6
11974else
11975 echo "configure: failed program was:" >&5
11976 cat conftest.$ac_ext >&5
11977 rm -rf conftest*
11978 cat > conftest.$ac_ext <<EOF
b12915c1 11979#line 11980 "configure"
afc31813
VZ
11980#include "confdefs.h"
11981#include <sys/socket.h>
11982int main() {
11983int len; getsockname(0, 0, &len);
11984; return 0; }
11985EOF
b12915c1 11986if { (eval echo configure:11987: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
afc31813
VZ
11987 rm -rf conftest*
11988 cat >> confdefs.h <<\EOF
11989#define SOCKLEN_T int
11990EOF
11991 echo "$ac_t""int" 1>&6
11992else
11993 echo "configure: failed program was:" >&5
11994 cat conftest.$ac_ext >&5
11995 rm -rf conftest*
11996 echo "$ac_t""unknown" 1>&6
11997
11998fi
11999rm -f conftest*
12000
12001fi
12002rm -f conftest*
12003
12004fi
12005rm -f conftest*
12006 ac_ext=c
12007# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12008ac_cpp='$CPP $CPPFLAGS'
12009ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12010ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12011cross_compiling=$ac_cv_prog_cc_cross
12012
12013
12014 cat >> confdefs.h <<\EOF
12015#define wxUSE_SOCKETS 1
12016EOF
12017
12018 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wxsocket"
12019 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS protocol"
12020fi
12021
10f2d63a
VZ
12022
12023if test "$wxUSE_JOYSTICK" = 1; then
12024 for ac_hdr in linux/joystick.h
12025do
12026ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12027echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
b12915c1 12028echo "configure:12029: checking for $ac_hdr" >&5
10f2d63a
VZ
12029if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12030 echo $ac_n "(cached) $ac_c" 1>&6
12031else
12032 cat > conftest.$ac_ext <<EOF
b12915c1 12033#line 12034 "configure"
10f2d63a
VZ
12034#include "confdefs.h"
12035#include <$ac_hdr>
12036EOF
12037ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
b12915c1 12038{ (eval echo configure:12039: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
12039ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12040if test -z "$ac_err"; then
12041 rm -rf conftest*
12042 eval "ac_cv_header_$ac_safe=yes"
12043else
12044 echo "$ac_err" >&5
12045 echo "configure: failed program was:" >&5
12046 cat conftest.$ac_ext >&5
12047 rm -rf conftest*
12048 eval "ac_cv_header_$ac_safe=no"
12049fi
12050rm -f conftest*
12051fi
12052if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12053 echo "$ac_t""yes" 1>&6
12054 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12055 cat >> confdefs.h <<EOF
12056#define $ac_tr_hdr 1
12057EOF
12058
12059else
12060 echo "$ac_t""no" 1>&6
12061fi
12062done
12063
12064 if test "$ac_cv_header_linux_joystick_h" = "yes"; then
12065 cat >> confdefs.h <<\EOF
12066#define wxUSE_JOYSTICK 1
12067EOF
12068
12069 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
12070 fi
12071fi
12072
12073
12074HAVE_DL_FUNCS=0
12075HAVE_SHL_FUNCS=0
12076if test "$wxUSE_DYNLIB_CLASS" = "yes"; then
12077 for ac_func in dlopen
12078do
12079echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
b12915c1 12080echo "configure:12081: checking for $ac_func" >&5
10f2d63a
VZ
12081if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12082 echo $ac_n "(cached) $ac_c" 1>&6
12083else
12084 cat > conftest.$ac_ext <<EOF
b12915c1 12085#line 12086 "configure"
10f2d63a
VZ
12086#include "confdefs.h"
12087/* System header to define __stub macros and hopefully few prototypes,
12088 which can conflict with char $ac_func(); below. */
12089#include <assert.h>
12090/* Override any gcc2 internal prototype to avoid an error. */
12091/* We use char because int might match the return type of a gcc2
12092 builtin and then its argument prototype would still apply. */
12093char $ac_func();
12094
12095int main() {
12096
12097/* The GNU C library defines this for functions which it implements
12098 to always fail with ENOSYS. Some functions are actually named
12099 something starting with __ and the normal name is an alias. */
12100#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12101choke me
12102#else
e694c22c 12103$ac_func();
10f2d63a
VZ
12104#endif
12105
12106; return 0; }
12107EOF
b12915c1 12108if { (eval echo configure:12109: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
12109 rm -rf conftest*
12110 eval "ac_cv_func_$ac_func=yes"
12111else
12112 echo "configure: failed program was:" >&5
12113 cat conftest.$ac_ext >&5
12114 rm -rf conftest*
12115 eval "ac_cv_func_$ac_func=no"
12116fi
12117rm -f conftest*
12118fi
12119
12120if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12121 echo "$ac_t""yes" 1>&6
12122 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12123 cat >> confdefs.h <<EOF
12124#define $ac_tr_func 1
12125EOF
12126
12127 cat >> confdefs.h <<\EOF
12128#define HAVE_DLOPEN 1
12129EOF
12130
12131 HAVE_DL_FUNCS=1
12132
12133else
12134 echo "$ac_t""no" 1>&6
12135echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
b12915c1 12136echo "configure:12137: checking for dlopen in -ldl" >&5
10f2d63a
VZ
12137ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
12138if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12139 echo $ac_n "(cached) $ac_c" 1>&6
12140else
12141 ac_save_LIBS="$LIBS"
12142LIBS="-ldl $LIBS"
12143cat > conftest.$ac_ext <<EOF
b12915c1 12144#line 12145 "configure"
10f2d63a
VZ
12145#include "confdefs.h"
12146/* Override any gcc2 internal prototype to avoid an error. */
12147/* We use char because int might match the return type of a gcc2
12148 builtin and then its argument prototype would still apply. */
12149char dlopen();
12150
12151int main() {
12152dlopen()
12153; return 0; }
12154EOF
b12915c1 12155if { (eval echo configure:12156: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
12156 rm -rf conftest*
12157 eval "ac_cv_lib_$ac_lib_var=yes"
12158else
12159 echo "configure: failed program was:" >&5
12160 cat conftest.$ac_ext >&5
12161 rm -rf conftest*
12162 eval "ac_cv_lib_$ac_lib_var=no"
12163fi
12164rm -f conftest*
12165LIBS="$ac_save_LIBS"
12166
12167fi
12168if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12169 echo "$ac_t""yes" 1>&6
12170
12171 cat >> confdefs.h <<\EOF
12172#define HAVE_DLOPEN 1
12173EOF
12174
12175 HAVE_DL_FUNCS=1
12176 LIBS="$LIBS -ldl"
12177
12178else
12179 echo "$ac_t""no" 1>&6
12180
12181 for ac_func in shl_load
12182do
12183echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
b12915c1 12184echo "configure:12185: checking for $ac_func" >&5
10f2d63a
VZ
12185if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12186 echo $ac_n "(cached) $ac_c" 1>&6
12187else
12188 cat > conftest.$ac_ext <<EOF
b12915c1 12189#line 12190 "configure"
10f2d63a
VZ
12190#include "confdefs.h"
12191/* System header to define __stub macros and hopefully few prototypes,
12192 which can conflict with char $ac_func(); below. */
12193#include <assert.h>
12194/* Override any gcc2 internal prototype to avoid an error. */
12195/* We use char because int might match the return type of a gcc2
12196 builtin and then its argument prototype would still apply. */
12197char $ac_func();
12198
12199int main() {
12200
12201/* The GNU C library defines this for functions which it implements
12202 to always fail with ENOSYS. Some functions are actually named
12203 something starting with __ and the normal name is an alias. */
12204#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12205choke me
12206#else
e694c22c 12207$ac_func();
10f2d63a
VZ
12208#endif
12209
12210; return 0; }
12211EOF
b12915c1 12212if { (eval echo configure:12213: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
12213 rm -rf conftest*
12214 eval "ac_cv_func_$ac_func=yes"
12215else
12216 echo "configure: failed program was:" >&5
12217 cat conftest.$ac_ext >&5
12218 rm -rf conftest*
12219 eval "ac_cv_func_$ac_func=no"
12220fi
12221rm -f conftest*
12222fi
12223
12224if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12225 echo "$ac_t""yes" 1>&6
12226 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12227 cat >> confdefs.h <<EOF
12228#define $ac_tr_func 1
12229EOF
12230
12231 cat >> confdefs.h <<\EOF
12232#define HAVE_SHL_LOAD 1
12233EOF
12234
12235 HAVE_SHL_FUNCS=1
12236
12237else
12238 echo "$ac_t""no" 1>&6
12239fi
12240done
12241
12242
12243fi
12244
12245
12246fi
12247done
12248
12249
12250 if test "$HAVE_DL_FUNCS" = 0; then
12251 if test "$HAVE_SHL_FUNCS" = 0; then
12252 if test "$USE_UNIX" = 1; then
b12915c1 12253 echo "configure: warning: Missing dynamic loading support, several features will be disabled" 1>&2
10f2d63a
VZ
12254 wxUSE_DYNLIB_CLASS=no
12255 else
b12915c1 12256 echo "configure: warning: Assuming wxLibrary class works on this platform" 1>&2
10f2d63a
VZ
12257 fi
12258 fi
12259 fi
12260fi
12261
12262if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
b12915c1 12263 cat >> confdefs.h <<\EOF
10f2d63a
VZ
12264#define wxUSE_DYNLIB_CLASS 1
12265EOF
12266
b12915c1
VZ
12267else
12268 wxUSE_ODBC=no
12269 wxUSE_SERIAL=no
10f2d63a
VZ
12270fi
12271
12272
12273if test "$wxUSE_UNICODE" = "yes" ; then
12274 cat >> confdefs.h <<\EOF
12275#define wxUSE_UNICODE 1
12276EOF
12277
12278fi
12279
12280if test "$wxUSE_WCSRTOMBS" = "yes" ; then
12281 cat >> confdefs.h <<\EOF
12282#define wxUSE_WCSRTOMBS 1
12283EOF
12284
12285fi
12286
12287if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
12288 cat >> confdefs.h <<\EOF
12289#define wxUSE_EXPERIMENTAL_PRINTF 1
12290EOF
12291
12292fi
12293
12294
b12915c1
VZ
12295if test "$wxUSE_SERIAL" = "yes" ; then
12296 cat >> confdefs.h <<\EOF
12297#define wxUSE_SERIAL 1
12298EOF
12299
12300fi
12301
12302
10f2d63a
VZ
12303IODBC_C_SRC=""
12304if test "$wxUSE_ODBC" = "yes" ; then
12305 cat >> confdefs.h <<\EOF
12306#define wxUSE_ODBC 1
12307EOF
12308
12309 WXODBCFLAG="-D_IODBC_"
12310 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
12311 IODBCOBJS="\$(IODBC_OBJS)"
12312else
12313 IODBCOBJS=
12314fi
12315
12316
12317if test "$wxUSE_POSTSCRIPT" = "yes" ; then
12318 cat >> confdefs.h <<\EOF
12319#define wxUSE_POSTSCRIPT 1
12320EOF
12321
12322fi
12323
12324cat >> confdefs.h <<\EOF
12325#define wxUSE_AFM_FOR_POSTSCRIPT 1
12326EOF
12327
12328
12329cat >> confdefs.h <<\EOF
12330#define wxUSE_NORMALIZED_PS_FONTS 1
12331EOF
12332
12333
12334
12335if test "$wxUSE_CONSTRAINTS" = "yes"; then
12336 cat >> confdefs.h <<\EOF
12337#define wxUSE_CONSTRAINTS 1
12338EOF
12339
12340 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
12341fi
12342
12343if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
12344 cat >> confdefs.h <<\EOF
12345#define wxUSE_MDI_ARCHITECTURE 1
12346EOF
12347
12348 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
12349fi
12350
12351if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
12352 cat >> confdefs.h <<\EOF
12353#define wxUSE_DOC_VIEW_ARCHITECTURE 1
12354EOF
12355
12356 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
12357 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
12358 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
12359 fi
12360fi
12361
12362if test "$wxUSE_HELP" = "yes"; then
12363 cat >> confdefs.h <<\EOF
12364#define wxUSE_HELP 1
12365EOF
12366
12367 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
12368fi
12369
12370if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
12371 if test "$wxUSE_CONSTRAINTS" != "yes"; then
12372 echo "configure: warning: Printing support cannot be used without constraints so it won't be compiled without it" 1>&2
12373 else
12374 cat >> confdefs.h <<\EOF
12375#define wxUSE_PRINTING_ARCHITECTURE 1
12376EOF
12377
12378 fi
12379 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
12380fi
12381
12382if test "$wxUSE_PROLOGIO" = "yes" ; then
12383 cat >> confdefs.h <<\EOF
12384#define wxUSE_PROLOGIO 1
12385EOF
12386
12387fi
12388
12389if test "$wxUSE_RESOURCES" = "yes" ; then
12390 if test "$wxUSE_PROLOGIO" = "yes" ; then
12391 cat >> confdefs.h <<\EOF
12392#define wxUSE_RESOURCES 1
12393EOF
12394
12395 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS resource"
12396 else
12397 echo "configure: warning: wxWindows ressource system requires PrologIO and can't be compiled without it." 1>&2
12398 fi
12399fi
12400
12401if test "$wxUSE_X_RESOURCES" = "yes"; then
12402 cat >> confdefs.h <<\EOF
12403#define wxUSE_X_RESOURCES 1
12404EOF
12405
12406fi
12407
12408
12409if test "$wxUSE_IPC" = "yes"; then
12410 cat >> confdefs.h <<\EOF
12411#define wxUSE_IPC 1
12412EOF
12413
12414fi
12415
12416if test "$wxUSE_CLIPBOARD" = "yes"; then
12417 cat >> confdefs.h <<\EOF
12418#define wxUSE_CLIPBOARD 1
12419EOF
12420
12421fi
12422
12423if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
12424 if test "$wxUSE_GTK" = 1; then
12425 if test "$WXGTK12" != 1; then
12426 echo "configure: warning: Drag and drop is only supported under GTK+ 1.2" 1>&2
12427 wxUSE_DRAG_AND_DROP=no
12428 fi
12429 fi
12430
12431 if test "$wxUSE_MOTIF" = 1; then
12432 echo "configure: warning: Drag and drop is not yet supported under Motif" 1>&2
12433 wxUSE_DRAG_AND_DROP=no
12434 fi
12435
12436 if test "$USE_WIN32" = 1; then
12437 for ac_hdr in ole2.h
12438do
12439ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12440echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
b12915c1 12441echo "configure:12442: checking for $ac_hdr" >&5
10f2d63a
VZ
12442if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12443 echo $ac_n "(cached) $ac_c" 1>&6
12444else
12445 cat > conftest.$ac_ext <<EOF
b12915c1 12446#line 12447 "configure"
10f2d63a
VZ
12447#include "confdefs.h"
12448#include <$ac_hdr>
12449EOF
12450ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
b12915c1 12451{ (eval echo configure:12452: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
12452ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12453if test -z "$ac_err"; then
12454 rm -rf conftest*
12455 eval "ac_cv_header_$ac_safe=yes"
12456else
12457 echo "$ac_err" >&5
12458 echo "configure: failed program was:" >&5
12459 cat conftest.$ac_ext >&5
12460 rm -rf conftest*
12461 eval "ac_cv_header_$ac_safe=no"
12462fi
12463rm -f conftest*
12464fi
12465if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12466 echo "$ac_t""yes" 1>&6
12467 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12468 cat >> confdefs.h <<EOF
12469#define $ac_tr_hdr 1
12470EOF
12471
12472else
12473 echo "$ac_t""no" 1>&6
12474fi
12475done
12476
12477 if test "x$HAVE_OLE2_H" = x ; then
12478 echo "configure: warning: Drag and drop disabled because OLE headers not found" 1>&2
12479 wxUSE_DRAG_AND_DROP=no
12480 fi
12481 fi
12482
12483 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
12484 cat >> confdefs.h <<\EOF
12485#define wxUSE_DRAG_AND_DROP 1
12486EOF
12487
12488 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
12489 fi
12490
12491fi
12492
12493if test "$wxUSE_SPLINES" = "yes" ; then
12494 cat >> confdefs.h <<\EOF
12495#define wxUSE_SPLINES 1
12496EOF
12497
12498fi
12499
12500
12501if test "$wxUSE_ACCEL" = "yes"; then
12502 cat >> confdefs.h <<\EOF
12503#define wxUSE_ACCEL 1
12504EOF
12505
12506fi
12507
12508if test "$wxUSE_CARET" = "yes"; then
12509 cat >> confdefs.h <<\EOF
12510#define wxUSE_CARET 1
12511EOF
12512
12513 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
12514fi
12515
12516if test "$wxUSE_COMBOBOX" = "yes"; then
12517 cat >> confdefs.h <<\EOF
12518#define wxUSE_COMBOBOX 1
12519EOF
12520
12521fi
12522
12523if test "$wxUSE_CHOICE" = "yes"; then
12524 cat >> confdefs.h <<\EOF
12525#define wxUSE_CHOICE 1
12526EOF
12527
12528fi
12529
12530if test "$wxUSE_BMPBUTTON" = "yes"; then
12531 cat >> confdefs.h <<\EOF
12532#define wxUSE_BMPBUTTON 1
12533EOF
12534
12535fi
12536
12537if test "$wxUSE_CHECKBOX" = "yes"; then
12538 cat >> confdefs.h <<\EOF
12539#define wxUSE_CHECKBOX 1
12540EOF
12541
12542fi
12543
12544if test "$wxUSE_CHECKLST" = "yes"; then
12545 cat >> confdefs.h <<\EOF
12546#define wxUSE_CHECKLISTBOX 1
12547EOF
12548
12549 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
12550fi
12551
12552if test "$wxUSE_GAUGE" = "yes"; then
12553 cat >> confdefs.h <<\EOF
12554#define wxUSE_GAUGE 1
12555EOF
12556
12557fi
12558
12559if test "$wxUSE_GRID" = "yes"; then
12560 cat >> confdefs.h <<\EOF
12561#define wxUSE_GRID 1
12562EOF
12563
12564 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
12565fi
12566
12567if test "$wxUSE_NEW_GRID" = "yes"; then
12568 cat >> confdefs.h <<\EOF
12569#define wxUSE_NEW_GRID 1
12570EOF
12571
12572 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS newgrid"
12573fi
12574
12575if test "$wxUSE_IMAGLIST" = "yes"; then
12576 cat >> confdefs.h <<\EOF
12577#define wxUSE_IMAGLIST 1
12578EOF
12579
12580fi
12581
12582if test "$wxUSE_LISTBOX" = "yes"; then
12583 cat >> confdefs.h <<\EOF
12584#define wxUSE_LISTBOX 1
12585EOF
12586
12587fi
12588
12589if test "$wxUSE_LISTCTRL" = "yes"; then
12590 if test "$wxUSE_IMAGLIST" = "yes"; then
12591 cat >> confdefs.h <<\EOF
12592#define wxUSE_LISTCTRL 1
12593EOF
12594
12595 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
12596 else
12597 echo "configure: warning: wxListCtrl requires wxImageList and won't be compiled without it" 1>&2
12598 fi
12599fi
12600
12601if test "$wxUSE_NOTEBOOK" = "yes"; then
12602 cat >> confdefs.h <<\EOF
12603#define wxUSE_NOTEBOOK 1
12604EOF
12605
12606 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
12607fi
12608
12609if test "$wxUSE_RADIOBOX" = "yes"; then
12610 cat >> confdefs.h <<\EOF
12611#define wxUSE_RADIOBOX 1
12612EOF
12613
12614fi
12615
12616if test "$wxUSE_RADIOBTN" = "yes"; then
12617 cat >> confdefs.h <<\EOF
12618#define wxUSE_RADIOBTN 1
12619EOF
12620
12621fi
12622
12623if test "$wxUSE_SASH" = "yes"; then
12624 cat >> confdefs.h <<\EOF
12625#define wxUSE_SASH 1
12626EOF
12627
12628 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
12629fi
12630
12631if test "$wxUSE_SCROLLBAR" = "yes"; then
12632 cat >> confdefs.h <<\EOF
12633#define wxUSE_SCROLLBAR 1
12634EOF
12635
741a9306 12636 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
10f2d63a
VZ
12637fi
12638
12639if test "$wxUSE_SLIDER" = "yes"; then
12640 cat >> confdefs.h <<\EOF
12641#define wxUSE_SLIDER 1
12642EOF
12643
12644fi
12645
12646if test "$wxUSE_SPINBTN" = "yes"; then
12647 cat >> confdefs.h <<\EOF
12648#define wxUSE_SPINBTN 1
12649EOF
12650
12651fi
12652
56cfaa52
RR
12653if test "$wxUSE_SPINCTRL" = "yes"; then
12654 cat >> confdefs.h <<\EOF
12655#define wxUSE_SPINCTRL 1
12656EOF
12657
12658fi
12659
10f2d63a
VZ
12660if test "$wxUSE_SPLITTER" = "yes"; then
12661 cat >> confdefs.h <<\EOF
12662#define wxUSE_SPLITTER 1
12663EOF
12664
12665 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
12666fi
12667
12668if test "$wxUSE_STATBMP" = "yes"; then
12669 cat >> confdefs.h <<\EOF
12670#define wxUSE_STATBMP 1
12671EOF
12672
12673fi
12674
12675if test "$wxUSE_STATBOX" = "yes"; then
12676 cat >> confdefs.h <<\EOF
12677#define wxUSE_STATBOX 1
12678EOF
12679
12680fi
12681
12682if test "$wxUSE_STATLINE" = "yes"; then
12683 if test "$wxUSE_WINE" = 1 ; then
12684 echo "configure: warning: wxStaticLine is not supported under WINE" 1>&2
12685 else
12686 cat >> confdefs.h <<\EOF
12687#define wxUSE_STATLINE 1
12688EOF
12689
12690 fi
12691fi
12692
12693if test "$wxUSE_STATUSBAR" = "yes"; then
12694 cat >> confdefs.h <<\EOF
12695#define wxUSE_STATUSBAR 1
12696EOF
12697
12698fi
12699
12700if test "$wxUSE_TABDIALOG" = "yes"; then
12701 cat >> confdefs.h <<\EOF
12702#define wxUSE_TAB_DIALOG 1
12703EOF
12704
12705 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab"
12706fi
12707
360d6699
VZ
12708if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
12709 cat >> confdefs.h <<\EOF
12710#define wxUSE_TOOLBAR_SIMPLE 1
12711EOF
12712
12713 wxUSE_TOOLBAR="yes"
12714fi
12715
10f2d63a
VZ
12716if test "$wxUSE_TOOLBAR" = "yes"; then
12717 cat >> confdefs.h <<\EOF
12718#define wxUSE_TOOLBAR 1
12719EOF
12720
360d6699
VZ
12721
12722 if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
12723 wxUSE_TOOLBAR_NATIVE="yes"
12724 fi
12725
10f2d63a
VZ
12726 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
12727fi
12728
360d6699
VZ
12729if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
12730 cat >> confdefs.h <<\EOF
12731#define wxUSE_TOOLBAR_NATIVE 1
12732EOF
12733
12734fi
12735
10f2d63a
VZ
12736if test "$wxUSE_TOOLTIPS" = "yes"; then
12737 if test "$wxUSE_MOTIF" = 1; then
12738 echo "configure: warning: wxTooltip not supported yet under Motif" 1>&2
12739 else
12740 if test "$wxUSE_WINE" = 1; then
12741 echo "configure: warning: wxTooltip not supported under WINE" 1>&2
12742 else
12743 cat >> confdefs.h <<\EOF
12744#define wxUSE_TOOLTIPS 1
12745EOF
12746
12747 fi
12748 fi
12749fi
12750
12751if test "$wxUSE_TREECTRL" = "yes"; then
12752 if test "$wxUSE_IMAGLIST" = "yes"; then
12753 cat >> confdefs.h <<\EOF
12754#define wxUSE_TREECTRL 1
12755EOF
12756
12757 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
12758 else
12759 echo "configure: warning: wxTreeCtrl requires wxImageList and won't be compiled without it" 1>&2
12760 fi
12761fi
12762
12763
12764
12765if test "$wxUSE_METAFILE" = "yes"; then
12766 cat >> confdefs.h <<\EOF
12767#define wxUSE_METAFILE 1
12768EOF
12769
12770fi
12771
12772if test "$wxUSE_DIRDLG" = "yes"; then
12773 if test "$wxUSE_CONSTRAINTS" != "yes"; then
12774 echo "configure: warning: wxDirDialog requires constraints so it won't be compiled without them" 1>&2
12775 else
12776 if test "$wxUSE_TREECTRL" != "yes"; then
12777 echo "configure: warning: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" 1>&2
12778 else
12779 cat >> confdefs.h <<\EOF
12780#define wxUSE_DIRDLG 1
12781EOF
12782
12783 fi
12784 fi
12785fi
12786
12787if test "$wxUSE_TEXTDLG" = "yes"; then
12788 cat >> confdefs.h <<\EOF
12789#define wxUSE_TEXTDLG 1
12790EOF
12791
12792fi
12793
12794if test "$wxUSE_STARTUP_TIPS" = "yes"; then
12795 if test "$wxUSE_CONSTRAINTS" != "yes"; then
12796 echo "configure: warning: Startup tips requires constraints and won't be compiled without them" 1>&2
12797 else
12798 cat >> confdefs.h <<\EOF
12799#define wxUSE_STARTUP_TIPS 1
12800EOF
12801
12802 fi
12803fi
12804
12805if test "$wxUSE_PROGRESSDLG" = "yes"; then
12806 if test "$wxUSE_CONSTRAINTS" != "yes"; then
12807 echo "configure: warning: wxProgressDialog requires constraints so it won't be compiled without them" 1>&2
12808 else
12809 cat >> confdefs.h <<\EOF
12810#define wxUSE_PROGRESSDLG 1
12811EOF
12812
12813 fi
12814fi
12815
12816if test "$wxUSE_MINIFRAME" = "yes"; then
12817 cat >> confdefs.h <<\EOF
12818#define wxUSE_MINIFRAME 1
12819EOF
12820
12821 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
12822fi
12823
12824if test "$wxUSE_HTML" = "yes"; then
12825 cat >> confdefs.h <<\EOF
12826#define wxUSE_HTML 1
12827EOF
12828
12829 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html"
12830 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS html"
12831fi
12832
12833if test "$wxUSE_VALIDATORS" = "yes"; then
12834 cat >> confdefs.h <<\EOF
12835#define wxUSE_VALIDATORS 1
12836EOF
12837
12838 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
12839fi
12840
12841if test "$wxUSE_GIF" = "yes" ; then
12842 cat >> confdefs.h <<\EOF
12843#define wxUSE_GIF 1
12844EOF
12845
12846fi
12847
12848if test "$wxUSE_PCX" = "yes" ; then
12849 cat >> confdefs.h <<\EOF
12850#define wxUSE_PCX 1
12851EOF
12852
12853fi
12854
12855if test "$wxUSE_PNM" = "yes" ; then
12856 cat >> confdefs.h <<\EOF
12857#define wxUSE_PNM 1
12858EOF
12859
12860fi
12861
12862
aaa37c0d
VZ
12863OSINFO=`uname -s -r -m`
12864OSINFO="\"$OSINFO\""
12865cat >> confdefs.h <<EOF
12866#define WXWIN_OS_DESCRIPTION $OSINFO
12867EOF
12868
12869
12870
10f2d63a
VZ
12871GUILIBS="$GUI_TK_LIBRARY $OPENGL_LINK $LIBPNG_LINK $ZLIB_LINK $TOOLKIT_LINK"
12872
c63c7106 12873EXTRA_LIBS="$LIBS $POSIX4_LINK $INET_LINK $WCHAR_LINK $THREADS_LINK $DMALLOC_LINK $DL_LINK"
10f2d63a
VZ
12874if test "$wxUSE_GUI" = "yes"; then
12875 EXTRA_LIBS="$EXTRA_LIBS $GUILIBS"
12876fi
12877
12878LD_LIBS="\${top_builddir}/lib/${WX_LIBRARY_NAME_STATIC} $EXTRA_LIBS"
12879
c7a2bf27 12880INCLUDES="-I. -I\${top_builddir}/include -I\${top_srcdir}/include $ZLIB_INCLUDE $PNG_INCLUDE $JPEG_INCLUDE $TIFF_INCLUDE $TOOLKIT_INCLUDE"
10f2d63a
VZ
12881
12882if test "$GXX" = yes ; then
12883 CXXWARNINGS="-Wall"
12884 fi
12885EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE $INCLUDES"
12886
12887CFLAGS=`echo $CFLAGS $EXTRA_CFLAGS | sed 's/ \\+/ /g'`
12888CXXFLAGS=`echo $CXXFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \+/ /g'`
12889
e694c22c
VZ
12890LDFLAGS="$LDFLAGS $PROFILE"
12891
10f2d63a
VZ
12892if test "$wxUSE_GUI" = "yes"; then
12893
12894 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS bombs controls dialogs drawing dynamic \
741a9306 12895 font forty fractal image minimal richedit wxpoem"
b12915c1
VZ
12896
12897 EXTRADEFS="-DwxINSTALL_PREFIX=\"$prefix\""
10f2d63a
VZ
12898else
12899 SAMPLES_SUBDIRS=""
b12915c1 12900 EXTRADEFS=
10f2d63a
VZ
12901fi
12902
12903SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '`"
12904
12905
12906
12907
12908
12909
12910
12911
12912
12913
12914
12915
12916
12917
12918
12919
12920
12921
12922
12923
12924
12925
12926
12927
12928
12929
12930
12931
12932
12933
12934
12935
12936
12937
12938
12939
12940
12941
12942
12943
12944
12945
12946
12947
12948
12949
12950
12951
12952
12953
12954
12955
1d62a8b4 12956
e694c22c 12957
b12915c1 12958
10f2d63a
VZ
12959
12960
12961echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
b12915c1 12962echo "configure:12963: checking whether ${MAKE-make} sets \${MAKE}" >&5
10f2d63a
VZ
12963set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
12964if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
12965 echo $ac_n "(cached) $ac_c" 1>&6
12966else
12967 cat > conftestmake <<\EOF
12968all:
12969 @echo 'ac_maketemp="${MAKE}"'
12970EOF
12971# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
12972eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
12973if test -n "$ac_maketemp"; then
12974 eval ac_cv_prog_make_${ac_make}_set=yes
12975else
12976 eval ac_cv_prog_make_${ac_make}_set=no
12977fi
12978rm -f conftestmake
12979fi
12980if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
12981 echo "$ac_t""yes" 1>&6
12982 SET_MAKE=
12983else
12984 echo "$ac_t""no" 1>&6
12985 SET_MAKE="MAKE=${MAKE-make}"
12986fi
12987
12988
12989
12990
12991if test "${TOOLKIT_DIR}" = "msw" ; then
12992 GL_TOOLKIT_DIR="win"
12993else
12994 GL_TOOLKIT_DIR="${TOOLKIT_DIR}"
12995fi
12996
12997
12998trap '' 1 2 15
12999cat > confcache <<\EOF
13000# This file is a shell script that caches the results of configure
13001# tests run on this system so they can be shared between configure
13002# scripts and configure runs. It is not useful on other systems.
13003# If it contains results you don't want to keep, you may remove or edit it.
13004#
13005# By default, configure uses ./config.cache as the cache file,
13006# creating it if it does not exist already. You can give configure
13007# the --cache-file=FILE option to use a different cache file; that is
13008# what configure does when it calls configure scripts in
13009# subdirectories, so they share the cache.
13010# Giving --cache-file=/dev/null disables caching, for debugging configure.
13011# config.status only pays attention to the cache file if you give it the
13012# --recheck option to rerun configure.
13013#
13014EOF
13015# The following way of writing the cache mishandles newlines in values,
13016# but we know of no workaround that is simple, portable, and efficient.
13017# So, don't put newlines in cache variables' values.
13018# Ultrix sh set writes to stderr and can't be redirected directly,
13019# and sets the high bit in the cache file unless we assign to the vars.
13020(set) 2>&1 |
13021 case `(ac_space=' '; set | grep ac_space) 2>&1` in
13022 *ac_space=\ *)
13023 # `set' does not quote correctly, so add quotes (double-quote substitution
13024 # turns \\\\ into \\, and sed turns \\ into \).
13025 sed -n \
13026 -e "s/'/'\\\\''/g" \
13027 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
13028 ;;
13029 *)
13030 # `set' quotes correctly as required by POSIX, so do not add quotes.
13031 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
13032 ;;
13033 esac >> confcache
13034if cmp -s $cache_file confcache; then
13035 :
13036else
13037 if test -w $cache_file; then
13038 echo "updating cache $cache_file"
13039 cat confcache > $cache_file
13040 else
13041 echo "not updating unwritable cache $cache_file"
13042 fi
13043fi
13044rm -f confcache
13045
13046trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
13047
13048test "x$prefix" = xNONE && prefix=$ac_default_prefix
13049# Let make expand exec_prefix.
13050test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13051
13052# Any assignment to VPATH causes Sun make to only execute
13053# the first set of double-colon rules, so remove it if not needed.
13054# If there is a colon in the path, we need to keep it.
13055if test "x$srcdir" = x.; then
13056 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
13057fi
13058
13059trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
13060
13061DEFS=-DHAVE_CONFIG_H
13062
13063# Without the "./", some shells look in PATH for config.status.
13064: ${CONFIG_STATUS=./config.status}
13065
13066echo creating $CONFIG_STATUS
13067rm -f $CONFIG_STATUS
13068cat > $CONFIG_STATUS <<EOF
13069#! /bin/sh
13070# Generated automatically by configure.
13071# Run this file to recreate the current configuration.
13072# This directory was configured as follows,
13073# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13074#
13075# $0 $ac_configure_args
13076#
13077# Compiler output produced by configure, useful for debugging
13078# configure, is in ./config.log if it exists.
13079
13080ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
13081for ac_option
13082do
13083 case "\$ac_option" in
13084 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13085 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
13086 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
13087 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
e694c22c 13088 echo "$CONFIG_STATUS generated by autoconf version 2.13"
10f2d63a
VZ
13089 exit 0 ;;
13090 -help | --help | --hel | --he | --h)
13091 echo "\$ac_cs_usage"; exit 0 ;;
13092 *) echo "\$ac_cs_usage"; exit 1 ;;
13093 esac
13094done
13095
13096ac_given_srcdir=$srcdir
13097ac_given_INSTALL="$INSTALL"
13098
13099trap 'rm -fr `echo "
13100 wx-config
13101 src/make.env
13102 src/makeprog.env
13103 src/makelib.env
13104 Makefile
13105 samples/Makefile
13106 samples/bombs/Makefile
13107 samples/caret/Makefile
13108 samples/checklst/Makefile
13109 samples/config/Makefile
13110 samples/controls/Makefile
b47c832e 13111 samples/console/Makefile
10f2d63a
VZ
13112 samples/db/Makefile
13113 samples/dialogs/Makefile
13114 samples/docview/Makefile
13115 samples/docvwmdi/Makefile
13116 samples/dnd/Makefile
13117 samples/drawing/Makefile
13118 samples/forty/Makefile
678b92a9 13119 samples/font/Makefile
10f2d63a
VZ
13120 samples/fractal/Makefile
13121 samples/image/Makefile
13122 samples/internat/Makefile
13123 samples/layout/Makefile
13124 samples/listctrl/Makefile
13125 samples/mdi/Makefile
13126 samples/minifram/Makefile
13127 samples/minimal/Makefile
13128 samples/nettest/Makefile
13129 samples/newgrid/Makefile
13130 samples/notebook/Makefile
13131 samples/png/Makefile
13132 samples/printing/Makefile
13133 samples/proplist/Makefile
13134 samples/richedit/Makefile
13135 samples/resource/Makefile
13136 samples/sashtest/Makefile
13137 samples/scroll/Makefile
13138 samples/scrollsub/Makefile
13139 samples/splitter/Makefile
13140 samples/text/Makefile
13141 samples/thread/Makefile
13142 samples/toolbar/Makefile
13143 samples/treectrl/Makefile
13144 samples/typetest/Makefile
13145 samples/validate/Makefile
13146 samples/wxpoem/Makefile
13147 samples/wxsocket/Makefile
13148 samples/wizard/Makefile
13149 samples/html/Makefile
13150 samples/html/about/Makefile
13151 samples/html/help/Makefile
13152 samples/html/printing/Makefile
fc9c7c09 13153 samples/html/helpview/Makefile
10f2d63a
VZ
13154 samples/html/test/Makefile
13155 samples/html/zip/Makefile
13156 samples/html/virtual/Makefile
13157 samples/html/widget/Makefile
13158 utils/Makefile
13159 utils/wxMMedia2/Makefile
13160 utils/wxMMedia2/lib/Makefile
13161 utils/wxMMedia2/sample/Makefile
13162 utils/glcanvas/Makefile
13163 utils/glcanvas/${GL_TOOLKIT_DIR}/Makefile
13164 utils/ogl/Makefile
13165 utils/ogl/src/Makefile
13166 setup.h:setup.h.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
13167EOF
13168cat >> $CONFIG_STATUS <<EOF
13169
13170# Protect against being on the right side of a sed subst in config.status.
13171sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
13172 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
13173$ac_vpsub
13174$extrasub
13175s%@SHELL@%$SHELL%g
13176s%@CFLAGS@%$CFLAGS%g
13177s%@CPPFLAGS@%$CPPFLAGS%g
13178s%@CXXFLAGS@%$CXXFLAGS%g
13179s%@FFLAGS@%$FFLAGS%g
13180s%@DEFS@%$DEFS%g
13181s%@LDFLAGS@%$LDFLAGS%g
13182s%@LIBS@%$LIBS%g
13183s%@exec_prefix@%$exec_prefix%g
13184s%@prefix@%$prefix%g
13185s%@program_transform_name@%$program_transform_name%g
13186s%@bindir@%$bindir%g
13187s%@sbindir@%$sbindir%g
13188s%@libexecdir@%$libexecdir%g
13189s%@datadir@%$datadir%g
13190s%@sysconfdir@%$sysconfdir%g
13191s%@sharedstatedir@%$sharedstatedir%g
13192s%@localstatedir@%$localstatedir%g
13193s%@libdir@%$libdir%g
13194s%@includedir@%$includedir%g
13195s%@oldincludedir@%$oldincludedir%g
13196s%@infodir@%$infodir%g
13197s%@mandir@%$mandir%g
13198s%@host@%$host%g
13199s%@host_alias@%$host_alias%g
13200s%@host_cpu@%$host_cpu%g
13201s%@host_vendor@%$host_vendor%g
13202s%@host_os@%$host_os%g
13203s%@target@%$target%g
13204s%@target_alias@%$target_alias%g
13205s%@target_cpu@%$target_cpu%g
13206s%@target_vendor@%$target_vendor%g
13207s%@target_os@%$target_os%g
13208s%@build@%$build%g
13209s%@build_alias@%$build_alias%g
13210s%@build_cpu@%$build_cpu%g
13211s%@build_vendor@%$build_vendor%g
13212s%@build_os@%$build_os%g
13213s%@CC@%$CC%g
13214s%@CPP@%$CPP%g
13215s%@CXX@%$CXX%g
13216s%@CXXCPP@%$CXXCPP%g
13217s%@RANLIB@%$RANLIB%g
13218s%@AR@%$AR%g
13219s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
13220s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
13221s%@INSTALL_DATA@%$INSTALL_DATA%g
13222s%@STRIP@%$STRIP%g
13223s%@YACC@%$YACC%g
13224s%@LEX@%$LEX%g
13225s%@LEXLIB@%$LEXLIB%g
13226s%@LN_S@%$LN_S%g
13227s%@GTK_CONFIG@%$GTK_CONFIG%g
13228s%@GTK_CFLAGS@%$GTK_CFLAGS%g
13229s%@GTK_LIBS@%$GTK_LIBS%g
ab9b9eab
VZ
13230s%@X_CFLAGS@%$X_CFLAGS%g
13231s%@X_PRE_LIBS@%$X_PRE_LIBS%g
13232s%@X_LIBS@%$X_LIBS%g
13233s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
10f2d63a
VZ
13234s%@WX_MAJOR_VERSION_NUMBER@%$WX_MAJOR_VERSION_NUMBER%g
13235s%@WX_MINOR_VERSION_NUMBER@%$WX_MINOR_VERSION_NUMBER%g
13236s%@WX_RELEASE_NUMBER@%$WX_RELEASE_NUMBER%g
13237s%@WX_LIBRARY_NAME@%$WX_LIBRARY_NAME%g
13238s%@WX_LIBRARY_NAME_STATIC@%$WX_LIBRARY_NAME_STATIC%g
13239s%@WX_LIBRARY_NAME_SHARED@%$WX_LIBRARY_NAME_SHARED%g
13240s%@WX_LIBRARY@%$WX_LIBRARY%g
13241s%@WX_TARGET_LIBRARY@%$WX_TARGET_LIBRARY%g
13242s%@WX_LIBRARY_LINK1@%$WX_LIBRARY_LINK1%g
13243s%@WX_LIBRARY_LINK2@%$WX_LIBRARY_LINK2%g
13244s%@WX_LIBRARY_LINK3@%$WX_LIBRARY_LINK3%g
13245s%@PROGRAM_EXT@%$PROGRAM_EXT%g
13246s%@WX_ALL@%$WX_ALL%g
13247s%@WX_ALL_INSTALLED@%$WX_ALL_INSTALLED%g
13248s%@SHARED_LD@%$SHARED_LD%g
13249s%@PIC_FLAG@%$PIC_FLAG%g
13250s%@DEP_INFO_FLAGS@%$DEP_INFO_FLAGS%g
1d62a8b4 13251s%@BURNT_LIBRARY_NAME@%$BURNT_LIBRARY_NAME%g
10f2d63a
VZ
13252s%@WXDEBUG_DEFINE@%$WXDEBUG_DEFINE%g
13253s%@TOOLKIT@%$TOOLKIT%g
13254s%@TOOLKIT_DEF@%$TOOLKIT_DEF%g
13255s%@TOOLKIT_DIR@%$TOOLKIT_DIR%g
13256s%@TOOLKIT_INCLUDE@%$TOOLKIT_INCLUDE%g
13257s%@GUIHEADERS@%$GUIHEADERS%g
13258s%@GUIOBJS@%$GUIOBJS%g
13259s%@COMMONOBJS@%$COMMONOBJS%g
13260s%@GENERICOBJS@%$GENERICOBJS%g
13261s%@GUIDEPS@%$GUIDEPS%g
13262s%@COMMONDEPS@%$COMMONDEPS%g
13263s%@GENERICDEPS@%$GENERICDEPS%g
13264s%@IODBCOBJS@%$IODBCOBJS%g
13265s%@UNIXOBJS@%$UNIXOBJS%g
13266s%@UNIXDEPS@%$UNIXDEPS%g
13267s%@ALL_OBJECTS@%$ALL_OBJECTS%g
13268s%@ALL_DEPFILES@%$ALL_DEPFILES%g
13269s%@ALL_HEADERS@%$ALL_HEADERS%g
13270s%@GUIDIST@%$GUIDIST%g
13271s%@SRC_SUBDIRS@%$SRC_SUBDIRS%g
13272s%@INCLUDE_SUBDIRS@%$INCLUDE_SUBDIRS%g
13273s%@UTILS_SUBDIRS@%$UTILS_SUBDIRS%g
13274s%@DOCS_SUBDIRS@%$DOCS_SUBDIRS%g
13275s%@SAMPLES_SUBDIRS@%$SAMPLES_SUBDIRS%g
13276s%@USER_SUBDIRS@%$USER_SUBDIRS%g
13277s%@EXTRA_LIBS@%$EXTRA_LIBS%g
b12915c1 13278s%@EXTRADEFS@%$EXTRADEFS%g
10f2d63a
VZ
13279s%@LD_LIBS@%$LD_LIBS%g
13280s%@SET_MAKE@%$SET_MAKE%g
13281s%@GL_TOOLKIT_DIR@%$GL_TOOLKIT_DIR%g
13282
13283CEOF
13284EOF
13285
13286cat >> $CONFIG_STATUS <<\EOF
13287
13288# Split the substitutions into bite-sized pieces for seds with
13289# small command number limits, like on Digital OSF/1 and HP-UX.
13290ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
13291ac_file=1 # Number of current file.
13292ac_beg=1 # First line for current file.
13293ac_end=$ac_max_sed_cmds # Line after last line for current file.
13294ac_more_lines=:
13295ac_sed_cmds=""
13296while $ac_more_lines; do
13297 if test $ac_beg -gt 1; then
13298 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
13299 else
13300 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
13301 fi
13302 if test ! -s conftest.s$ac_file; then
13303 ac_more_lines=false
13304 rm -f conftest.s$ac_file
13305 else
13306 if test -z "$ac_sed_cmds"; then
13307 ac_sed_cmds="sed -f conftest.s$ac_file"
13308 else
13309 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
13310 fi
13311 ac_file=`expr $ac_file + 1`
13312 ac_beg=$ac_end
13313 ac_end=`expr $ac_end + $ac_max_sed_cmds`
13314 fi
13315done
13316if test -z "$ac_sed_cmds"; then
13317 ac_sed_cmds=cat
13318fi
13319EOF
13320
13321cat >> $CONFIG_STATUS <<EOF
13322
13323CONFIG_FILES=\${CONFIG_FILES-"wx-config
13324 src/make.env
13325 src/makeprog.env
13326 src/makelib.env
13327 Makefile
13328 samples/Makefile
13329 samples/bombs/Makefile
13330 samples/caret/Makefile
13331 samples/checklst/Makefile
13332 samples/config/Makefile
13333 samples/controls/Makefile
b47c832e 13334 samples/console/Makefile
10f2d63a
VZ
13335 samples/db/Makefile
13336 samples/dialogs/Makefile
13337 samples/docview/Makefile
13338 samples/docvwmdi/Makefile
13339 samples/dnd/Makefile
13340 samples/drawing/Makefile
13341 samples/forty/Makefile
678b92a9 13342 samples/font/Makefile
10f2d63a
VZ
13343 samples/fractal/Makefile
13344 samples/image/Makefile
13345 samples/internat/Makefile
13346 samples/layout/Makefile
13347 samples/listctrl/Makefile
13348 samples/mdi/Makefile
13349 samples/minifram/Makefile
13350 samples/minimal/Makefile
13351 samples/nettest/Makefile
13352 samples/newgrid/Makefile
13353 samples/notebook/Makefile
13354 samples/png/Makefile
13355 samples/printing/Makefile
13356 samples/proplist/Makefile
13357 samples/richedit/Makefile
13358 samples/resource/Makefile
13359 samples/sashtest/Makefile
13360 samples/scroll/Makefile
13361 samples/scrollsub/Makefile
13362 samples/splitter/Makefile
13363 samples/text/Makefile
13364 samples/thread/Makefile
13365 samples/toolbar/Makefile
13366 samples/treectrl/Makefile
13367 samples/typetest/Makefile
13368 samples/validate/Makefile
13369 samples/wxpoem/Makefile
13370 samples/wxsocket/Makefile
13371 samples/wizard/Makefile
13372 samples/html/Makefile
13373 samples/html/about/Makefile
13374 samples/html/help/Makefile
13375 samples/html/printing/Makefile
fc9c7c09 13376 samples/html/helpview/Makefile
10f2d63a
VZ
13377 samples/html/test/Makefile
13378 samples/html/zip/Makefile
13379 samples/html/virtual/Makefile
13380 samples/html/widget/Makefile
13381 utils/Makefile
13382 utils/wxMMedia2/Makefile
13383 utils/wxMMedia2/lib/Makefile
13384 utils/wxMMedia2/sample/Makefile
13385 utils/glcanvas/Makefile
13386 utils/glcanvas/${GL_TOOLKIT_DIR}/Makefile
13387 utils/ogl/Makefile
13388 utils/ogl/src/Makefile
13389 "}
13390EOF
13391cat >> $CONFIG_STATUS <<\EOF
13392for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
13393 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13394 case "$ac_file" in
13395 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
13396 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
13397 *) ac_file_in="${ac_file}.in" ;;
13398 esac
13399
13400 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
13401
13402 # Remove last slash and all that follows it. Not all systems have dirname.
13403 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
13404 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
13405 # The file is in a subdirectory.
13406 test ! -d "$ac_dir" && mkdir "$ac_dir"
13407 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
13408 # A "../" for each directory in $ac_dir_suffix.
13409 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
13410 else
13411 ac_dir_suffix= ac_dots=
13412 fi
13413
13414 case "$ac_given_srcdir" in
13415 .) srcdir=.
13416 if test -z "$ac_dots"; then top_srcdir=.
13417 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
13418 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
13419 *) # Relative path.
13420 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
13421 top_srcdir="$ac_dots$ac_given_srcdir" ;;
13422 esac
13423
13424 case "$ac_given_INSTALL" in
13425 [/$]*) INSTALL="$ac_given_INSTALL" ;;
13426 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
13427 esac
13428
13429 echo creating "$ac_file"
13430 rm -f "$ac_file"
13431 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
13432 case "$ac_file" in
13433 *Makefile*) ac_comsub="1i\\
13434# $configure_input" ;;
13435 *) ac_comsub= ;;
13436 esac
13437
13438 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
13439 sed -e "$ac_comsub
13440s%@configure_input@%$configure_input%g
13441s%@srcdir@%$srcdir%g
13442s%@top_srcdir@%$top_srcdir%g
13443s%@INSTALL@%$INSTALL%g
13444" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
13445fi; done
13446rm -f conftest.s*
13447
13448# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
13449# NAME is the cpp macro being defined and VALUE is the value it is being given.
13450#
13451# ac_d sets the value in "#define NAME VALUE" lines.
13452ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
13453ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
13454ac_dC='\3'
13455ac_dD='%g'
13456# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
13457ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
13458ac_uB='\([ ]\)%\1#\2define\3'
13459ac_uC=' '
13460ac_uD='\4%g'
13461# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
13462ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
13463ac_eB='$%\1#\2define\3'
13464ac_eC=' '
13465ac_eD='%g'
13466
13467if test "${CONFIG_HEADERS+set}" != set; then
13468EOF
13469cat >> $CONFIG_STATUS <<EOF
13470 CONFIG_HEADERS="setup.h:setup.h.in"
13471EOF
13472cat >> $CONFIG_STATUS <<\EOF
13473fi
13474for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
13475 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13476 case "$ac_file" in
13477 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
13478 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
13479 *) ac_file_in="${ac_file}.in" ;;
13480 esac
13481
13482 echo creating $ac_file
13483
13484 rm -f conftest.frag conftest.in conftest.out
13485 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
13486 cat $ac_file_inputs > conftest.in
13487
13488EOF
13489
13490# Transform confdefs.h into a sed script conftest.vals that substitutes
13491# the proper values into config.h.in to produce config.h. And first:
13492# Protect against being on the right side of a sed subst in config.status.
13493# Protect against being in an unquoted here document in config.status.
13494rm -f conftest.vals
13495cat > conftest.hdr <<\EOF
13496s/[\\&%]/\\&/g
13497s%[\\$`]%\\&%g
13498s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
13499s%ac_d%ac_u%gp
13500s%ac_u%ac_e%gp
13501EOF
13502sed -n -f conftest.hdr confdefs.h > conftest.vals
13503rm -f conftest.hdr
13504
13505# This sed command replaces #undef with comments. This is necessary, for
13506# example, in the case of _POSIX_SOURCE, which is predefined and required
13507# on some systems where configure will not decide to define it.
13508cat >> conftest.vals <<\EOF
13509s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
13510EOF
13511
13512# Break up conftest.vals because some shells have a limit on
13513# the size of here documents, and old seds have small limits too.
13514
13515rm -f conftest.tail
13516while :
13517do
13518 ac_lines=`grep -c . conftest.vals`
13519 # grep -c gives empty output for an empty file on some AIX systems.
13520 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
13521 # Write a limited-size here document to conftest.frag.
13522 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
13523 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
13524 echo 'CEOF
13525 sed -f conftest.frag conftest.in > conftest.out
13526 rm -f conftest.in
13527 mv conftest.out conftest.in
13528' >> $CONFIG_STATUS
13529 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
13530 rm -f conftest.vals
13531 mv conftest.tail conftest.vals
13532done
13533rm -f conftest.vals
13534
13535cat >> $CONFIG_STATUS <<\EOF
13536 rm -f conftest.frag conftest.h
13537 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
13538 cat conftest.in >> conftest.h
13539 rm -f conftest.in
13540 if cmp -s $ac_file conftest.h 2>/dev/null; then
13541 echo "$ac_file is unchanged"
13542 rm -f conftest.h
13543 else
13544 # Remove last slash and all that follows it. Not all systems have dirname.
13545 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
13546 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
13547 # The file is in a subdirectory.
13548 test ! -d "$ac_dir" && mkdir "$ac_dir"
13549 fi
13550 rm -f $ac_file
13551 mv conftest.h $ac_file
13552 fi
13553fi; done
13554
13555EOF
13556cat >> $CONFIG_STATUS <<EOF
13557
13558 TOOLKIT_DIR="${TOOLKIT_DIR}"
13559
13560
13561EOF
13562cat >> $CONFIG_STATUS <<\EOF
13563
13564 chmod +x wx-config
13565 if test ! -d include; then
13566 mkdir include
13567 fi
13568 if test ! -d include/wx; then
13569 mkdir include/wx
13570 fi
13571 if test ! -d include/wx/${TOOLKIT_DIR}; then
13572 mkdir include/wx/${TOOLKIT_DIR}
13573 fi
afc31813
VZ
13574 if test -f setup.h; then
13575 mv -f setup.h include/wx/${TOOLKIT_DIR}/setup.h
13576 fi
10f2d63a
VZ
13577
13578exit 0
13579EOF
13580chmod +x $CONFIG_STATUS
13581rm -fr confdefs* $ac_clean_files
13582test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
13583
13584