]> git.saurik.com Git - wxWidgets.git/blame - configure
Called autoconf to update configure.
[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.
69ffe1d2 41# Generated automatically using autoconf version 2.14
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
68--with-dmalloc use dmalloc library (www.letters.com/dmalloc)"
69ac_help="$ac_help
70--with-zlib use zlib for LZW compression"
71ac_help="$ac_help
72--with-libpng use libpng (PNG image format)"
73ac_help="$ac_help
74--with-libjpeg use libjpeg (JPEG file format)"
75ac_help="$ac_help
76--with-opengl use OpenGL (or Mesa)"
77ac_help="$ac_help
78--with-odbc use the IODBC and wxODBC classes"
79ac_help="$ac_help
80--enable-shared create shared library code"
81ac_help="$ac_help
82--enable-optimise create optimised code"
83ac_help="$ac_help
84--enable-debug same as debug_flag and debug_info"
85ac_help="$ac_help
86--enable-debug_flag set __WXDEBUG__ flag (recommended for developers!)"
87ac_help="$ac_help
88--enable-debug_info create code with debugging information"
89ac_help="$ac_help
90--enable-debug_gdb create code with extra GDB debugging information"
91ac_help="$ac_help
92--enable-debug_cntxt use wxDebugContext"
93ac_help="$ac_help
94--enable-mem_tracing create code with memory tracing"
95ac_help="$ac_help
96--enable-profile create code with profiling information"
97ac_help="$ac_help
98--enable-no_rtti create code without RTTI information"
99ac_help="$ac_help
100--enable-no_exceptions create code without exceptions information"
101ac_help="$ac_help
102--enable-permissive compile code disregarding strict ANSI"
103ac_help="$ac_help
104--enable-no_deps create code without dependency information"
105ac_help="$ac_help
106--enable-intl use internationalization system"
107ac_help="$ac_help
108--enable-config use wxConfig (and derived) classes"
109ac_help="$ac_help
110--enable-sockets use socket/network classes"
111ac_help="$ac_help
112--enable-dialupman use dialup network classes"
113ac_help="$ac_help
114--enable-ipc use interprocess communication (wxSocket etc.)"
115ac_help="$ac_help
116--enable-apple_ieee use the Apple IEEE codec"
117ac_help="$ac_help
118--enable-timedate use date/time classes"
119ac_help="$ac_help
120--enable-wave use wxWave class"
121ac_help="$ac_help
122--enable-fraction use wxFraction class"
123ac_help="$ac_help
124--enable-dynlib use wxLibrary class for DLL loading"
125ac_help="$ac_help
126--enable-longlong use wxLongLong class"
127ac_help="$ac_help
128--enable-log use logging system"
129ac_help="$ac_help
130--enable-streams use wxStream etc classes"
131ac_help="$ac_help
132--enable-file use wxFile classes"
133ac_help="$ac_help
134--enable-textfile use wxTextFile classes"
135ac_help="$ac_help
136--enable-unicode compile wxString with Unicode support"
137ac_help="$ac_help
138--enable-wcsrtombs use wcsrtombs instead of buggy (GNU libc1/Linux libc5) wcstombs"
139ac_help="$ac_help
140--enable-wxprintfv use wxWindows implementation of vprintf()"
141ac_help="$ac_help
142--enable-joystick compile in joystick support (Linux only)"
143ac_help="$ac_help
144--enable-std_iostreams use standard C++ stream classes"
145ac_help="$ac_help
146--enable-fs_inet use virtual HTTP/FTP filesystems"
147ac_help="$ac_help
148--enable-fs_zip use virtual ZIP filesystems"
149ac_help="$ac_help
150--enable-zipstream use wxZipInputStream"
151ac_help="$ac_help
152--enable-threads use threads"
153ac_help="$ac_help
154--enable-serial use class serialization"
155ac_help="$ac_help
156--enable-docview use document view architecture"
157ac_help="$ac_help
158--enable-help use help (using external browser at present)"
159ac_help="$ac_help
160--enable-constraints use layout-constraints system"
161ac_help="$ac_help
162--enable-printarch use printing architecture"
163ac_help="$ac_help
164--enable-mdi use multiple document interface architecture"
165ac_help="$ac_help
166--enable-postscript use wxPostscriptDC device context (default for gtk+)"
167ac_help="$ac_help
168--enable-prologio use Prolog IO library"
169ac_help="$ac_help
170--enable-resources use wxWindows resources"
171ac_help="$ac_help
172--enable-xresources use X resources for save (default for gtk+)"
173ac_help="$ac_help
174--enable-clipboard use wxClipboard classes"
175ac_help="$ac_help
176--enable-dnd use Drag'n'Drop classes"
177ac_help="$ac_help
178--enable-wxtree make wxTree library"
179ac_help="$ac_help
180--enable-controls use all usual controls"
181ac_help="$ac_help
182--enable-accel use accelerators"
183ac_help="$ac_help
184--enable-caret use wxCaret class"
185ac_help="$ac_help
186--enable-bmpbutton use wxBitmapButton class"
187ac_help="$ac_help
188--enable-checkbox use wxCheckBox class"
189ac_help="$ac_help
190--enable-checklst use wxCheckListBox (listbox with checkboxes) class"
191ac_help="$ac_help
192--enable-choice use wxChoice class"
193ac_help="$ac_help
194--enable-combobox use wxComboBox classes"
195ac_help="$ac_help
196--enable-gauge use wxGauge class"
197ac_help="$ac_help
198--enable-grid use wxGrid class"
199ac_help="$ac_help
200--enable-newgrid use new wxGrid class"
201ac_help="$ac_help
202--enable-imaglist use wxImageList class"
203ac_help="$ac_help
204--enable-listbox use wxListBox class"
205ac_help="$ac_help
206--enable-listctrl use wxListCtrl class"
207ac_help="$ac_help
208--enable-notebook use wxNotebook class"
209ac_help="$ac_help
210--enable-radiobox use wxRadioBox class"
211ac_help="$ac_help
212--enable-radiobtn use wxRadioButton class"
213ac_help="$ac_help
214--enable-sash use wxSashWindow class"
215ac_help="$ac_help
216--enable-scrollbar use wxScrollBar class and scrollable windows"
217ac_help="$ac_help
218--enable-slider use wxSlider class"
219ac_help="$ac_help
220--enable-spinbtn use wxSpinButton class"
221ac_help="$ac_help
222--enable-splitter use wxSplitterWindow class"
223ac_help="$ac_help
224--enable-statbmp use wxStaticBitmap class"
225ac_help="$ac_help
226--enable-statbox use wxStaticBox class"
227ac_help="$ac_help
228--enable-statline use wxStaticLine class"
229ac_help="$ac_help
230--enable-statusbar use wxStatusBar class"
231ac_help="$ac_help
232--enable-tabdialog use wxTabControl class"
233ac_help="$ac_help
234--enable-toolbar use wxToolBar class"
235ac_help="$ac_help
236--enable-treectrl use wxTreeCtrl class"
237ac_help="$ac_help
238--enable-commondlg use common dialogs (wxDirDialog, wxProgressDialog, wxTextDialog, ...)"
239ac_help="$ac_help
240--enable-dirdlg use wxDirDialog"
241ac_help="$ac_help
242--enable-textdlg use wxTextDialog"
243ac_help="$ac_help
244--enable-tipdlg use startup tips"
245ac_help="$ac_help
246--enable-progressdlg use wxProgressDialog"
247ac_help="$ac_help
248--enable-miniframe use wxMiniFrame class"
249ac_help="$ac_help
250--enable-html use wxHTML sub-library"
251ac_help="$ac_help
252--enable-tooltips use wxToolTip class"
253ac_help="$ac_help
254--enable-splines use spline drawing code"
255ac_help="$ac_help
256--enable-validators use wxValidator and derived classes"
257ac_help="$ac_help
258--enable-busyinfo use wxBusyInfo"
259ac_help="$ac_help
260--enable-gif use gif images (GIF file format)"
261ac_help="$ac_help
262--enable-pcx use pcx images (PCX file format)"
263ac_help="$ac_help
264--enable-pnm use pnm images (PNM file format)"
ab9b9eab
VZ
265ac_help="$ac_help
266 --with-x use the X Window System"
10f2d63a
VZ
267
268# Initialize some variables set by options.
269# The variables have the same names as the options, with
270# dashes changed to underlines.
271build=NONE
272cache_file=./config.cache
273exec_prefix=NONE
274host=NONE
275no_create=
276nonopt=NONE
277no_recursion=
278prefix=NONE
279program_prefix=NONE
280program_suffix=NONE
281program_transform_name=s,x,x,
282silent=
283site=
284srcdir=
285target=NONE
286verbose=
287x_includes=NONE
288x_libraries=NONE
289bindir='${exec_prefix}/bin'
290sbindir='${exec_prefix}/sbin'
291libexecdir='${exec_prefix}/libexec'
292datadir='${prefix}/share'
293sysconfdir='${prefix}/etc'
294sharedstatedir='${prefix}/com'
295localstatedir='${prefix}/var'
296libdir='${exec_prefix}/lib'
297includedir='${prefix}/include'
298oldincludedir='/usr/include'
299infodir='${prefix}/info'
300mandir='${prefix}/man'
301
302# Initialize some other variables.
303subdirs=
304MFLAGS= MAKEFLAGS=
305SHELL=${CONFIG_SHELL-/bin/sh}
306# Maximum number of lines to put in a shell here document.
307ac_max_here_lines=12
308
309ac_prev=
310for ac_option
311do
312
313 # If the previous option needs an argument, assign it.
314 if test -n "$ac_prev"; then
315 eval "$ac_prev=\$ac_option"
316 ac_prev=
317 continue
318 fi
319
320 case "$ac_option" in
321 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
322 *) ac_optarg= ;;
323 esac
324
325 # Accept the important Cygnus configure options, so we can diagnose typos.
326
327 case "$ac_option" in
328
329 -bindir | --bindir | --bindi | --bind | --bin | --bi)
330 ac_prev=bindir ;;
331 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
332 bindir="$ac_optarg" ;;
333
334 -build | --build | --buil | --bui | --bu)
335 ac_prev=build ;;
336 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
337 build="$ac_optarg" ;;
338
339 -cache-file | --cache-file | --cache-fil | --cache-fi \
340 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
341 ac_prev=cache_file ;;
342 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
343 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
344 cache_file="$ac_optarg" ;;
345
346 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
347 ac_prev=datadir ;;
348 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
349 | --da=*)
350 datadir="$ac_optarg" ;;
351
352 -disable-* | --disable-*)
353 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
354 # Reject names that are not valid shell variable names.
355 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
356 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
357 fi
358 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
359 eval "enable_${ac_feature}=no" ;;
360
361 -enable-* | --enable-*)
362 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
363 # Reject names that are not valid shell variable names.
364 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
365 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
366 fi
367 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
368 case "$ac_option" in
369 *=*) ;;
370 *) ac_optarg=yes ;;
371 esac
372 eval "enable_${ac_feature}='$ac_optarg'" ;;
373
374 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
375 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
376 | --exec | --exe | --ex)
377 ac_prev=exec_prefix ;;
378 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
379 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
380 | --exec=* | --exe=* | --ex=*)
381 exec_prefix="$ac_optarg" ;;
382
383 -gas | --gas | --ga | --g)
384 # Obsolete; use --with-gas.
385 with_gas=yes ;;
386
387 -help | --help | --hel | --he)
388 # Omit some internal or obsolete options to make the list less imposing.
389 # This message is too long to be a string in the A/UX 3.1 sh.
390 cat << EOF
391Usage: configure [options] [host]
392Options: [defaults in brackets after descriptions]
393Configuration:
394 --cache-file=FILE cache test results in FILE
395 --help print this message
396 --no-create do not create output files
397 --quiet, --silent do not print \`checking...' messages
398 --version print the version of autoconf that created configure
399Directory and file names:
400 --prefix=PREFIX install architecture-independent files in PREFIX
401 [$ac_default_prefix]
402 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
403 [same as prefix]
404 --bindir=DIR user executables in DIR [EPREFIX/bin]
405 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
406 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
407 --datadir=DIR read-only architecture-independent data in DIR
408 [PREFIX/share]
409 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
410 --sharedstatedir=DIR modifiable architecture-independent data in DIR
411 [PREFIX/com]
412 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
413 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
414 --includedir=DIR C header files in DIR [PREFIX/include]
415 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
416 --infodir=DIR info documentation in DIR [PREFIX/info]
417 --mandir=DIR man documentation in DIR [PREFIX/man]
418 --srcdir=DIR find the sources in DIR [configure dir or ..]
419 --program-prefix=PREFIX prepend PREFIX to installed program names
420 --program-suffix=SUFFIX append SUFFIX to installed program names
421 --program-transform-name=PROGRAM
422 run sed PROGRAM on installed program names
423EOF
424 cat << EOF
425Host type:
426 --build=BUILD configure for building on BUILD [BUILD=HOST]
427 --host=HOST configure for HOST [guessed]
428 --target=TARGET configure for TARGET [TARGET=HOST]
429Features and packages:
430 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
431 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
432 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
433 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
434 --x-includes=DIR X include files are in DIR
435 --x-libraries=DIR X library files are in DIR
436EOF
437 if test -n "$ac_help"; then
438 echo "--enable and --with options recognized:$ac_help"
439 fi
440 exit 0 ;;
441
442 -host | --host | --hos | --ho)
443 ac_prev=host ;;
444 -host=* | --host=* | --hos=* | --ho=*)
445 host="$ac_optarg" ;;
446
447 -includedir | --includedir | --includedi | --included | --include \
448 | --includ | --inclu | --incl | --inc)
449 ac_prev=includedir ;;
450 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
451 | --includ=* | --inclu=* | --incl=* | --inc=*)
452 includedir="$ac_optarg" ;;
453
454 -infodir | --infodir | --infodi | --infod | --info | --inf)
455 ac_prev=infodir ;;
456 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
457 infodir="$ac_optarg" ;;
458
459 -libdir | --libdir | --libdi | --libd)
460 ac_prev=libdir ;;
461 -libdir=* | --libdir=* | --libdi=* | --libd=*)
462 libdir="$ac_optarg" ;;
463
464 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
465 | --libexe | --libex | --libe)
466 ac_prev=libexecdir ;;
467 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
468 | --libexe=* | --libex=* | --libe=*)
469 libexecdir="$ac_optarg" ;;
470
471 -localstatedir | --localstatedir | --localstatedi | --localstated \
472 | --localstate | --localstat | --localsta | --localst \
473 | --locals | --local | --loca | --loc | --lo)
474 ac_prev=localstatedir ;;
475 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
476 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
477 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
478 localstatedir="$ac_optarg" ;;
479
480 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
481 ac_prev=mandir ;;
482 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
483 mandir="$ac_optarg" ;;
484
485 -nfp | --nfp | --nf)
486 # Obsolete; use --without-fp.
487 with_fp=no ;;
488
489 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
490 | --no-cr | --no-c)
491 no_create=yes ;;
492
493 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
494 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
495 no_recursion=yes ;;
496
497 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
498 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
499 | --oldin | --oldi | --old | --ol | --o)
500 ac_prev=oldincludedir ;;
501 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
502 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
503 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
504 oldincludedir="$ac_optarg" ;;
505
506 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
507 ac_prev=prefix ;;
508 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
509 prefix="$ac_optarg" ;;
510
511 -program-prefix | --program-prefix | --program-prefi | --program-pref \
512 | --program-pre | --program-pr | --program-p)
513 ac_prev=program_prefix ;;
514 -program-prefix=* | --program-prefix=* | --program-prefi=* \
515 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
516 program_prefix="$ac_optarg" ;;
517
518 -program-suffix | --program-suffix | --program-suffi | --program-suff \
519 | --program-suf | --program-su | --program-s)
520 ac_prev=program_suffix ;;
521 -program-suffix=* | --program-suffix=* | --program-suffi=* \
522 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
523 program_suffix="$ac_optarg" ;;
524
525 -program-transform-name | --program-transform-name \
526 | --program-transform-nam | --program-transform-na \
527 | --program-transform-n | --program-transform- \
528 | --program-transform | --program-transfor \
529 | --program-transfo | --program-transf \
530 | --program-trans | --program-tran \
531 | --progr-tra | --program-tr | --program-t)
532 ac_prev=program_transform_name ;;
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 program_transform_name="$ac_optarg" ;;
541
542 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
543 | -silent | --silent | --silen | --sile | --sil)
544 silent=yes ;;
545
546 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
547 ac_prev=sbindir ;;
548 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
549 | --sbi=* | --sb=*)
550 sbindir="$ac_optarg" ;;
551
552 -sharedstatedir | --sharedstatedir | --sharedstatedi \
553 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
554 | --sharedst | --shareds | --shared | --share | --shar \
555 | --sha | --sh)
556 ac_prev=sharedstatedir ;;
557 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
558 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
559 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
560 | --sha=* | --sh=*)
561 sharedstatedir="$ac_optarg" ;;
562
563 -site | --site | --sit)
564 ac_prev=site ;;
565 -site=* | --site=* | --sit=*)
566 site="$ac_optarg" ;;
567
568 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
569 ac_prev=srcdir ;;
570 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
571 srcdir="$ac_optarg" ;;
572
573 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
574 | --syscon | --sysco | --sysc | --sys | --sy)
575 ac_prev=sysconfdir ;;
576 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
577 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
578 sysconfdir="$ac_optarg" ;;
579
580 -target | --target | --targe | --targ | --tar | --ta | --t)
581 ac_prev=target ;;
582 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
583 target="$ac_optarg" ;;
584
585 -v | -verbose | --verbose | --verbos | --verbo | --verb)
586 verbose=yes ;;
587
588 -version | --version | --versio | --versi | --vers)
69ffe1d2 589 echo "configure generated by autoconf version 2.14"
10f2d63a
VZ
590 exit 0 ;;
591
592 -with-* | --with-*)
593 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
594 # Reject names that are not valid shell variable names.
595 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
596 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
597 fi
598 ac_package=`echo $ac_package| sed 's/-/_/g'`
599 case "$ac_option" in
600 *=*) ;;
601 *) ac_optarg=yes ;;
602 esac
603 eval "with_${ac_package}='$ac_optarg'" ;;
604
605 -without-* | --without-*)
606 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
607 # Reject names that are not valid shell variable names.
608 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
609 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
610 fi
611 ac_package=`echo $ac_package| sed 's/-/_/g'`
612 eval "with_${ac_package}=no" ;;
613
614 --x)
615 # Obsolete; use --with-x.
616 with_x=yes ;;
617
618 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
619 | --x-incl | --x-inc | --x-in | --x-i)
620 ac_prev=x_includes ;;
621 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
622 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
623 x_includes="$ac_optarg" ;;
624
625 -x-libraries | --x-libraries | --x-librarie | --x-librari \
626 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
627 ac_prev=x_libraries ;;
628 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
629 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
630 x_libraries="$ac_optarg" ;;
631
632 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
633 ;;
634
635 *)
636 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
637 echo "configure: warning: $ac_option: invalid host type" 1>&2
638 fi
639 if test "x$nonopt" != xNONE; then
640 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
641 fi
642 nonopt="$ac_option"
643 ;;
644
645 esac
646done
647
648if test -n "$ac_prev"; then
649 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
650fi
651
652trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
653
654# File descriptor usage:
655# 0 standard input
656# 1 file creation
657# 2 errors and warnings
658# 3 some systems may open it to /dev/tty
659# 4 used on the Kubota Titan
660# 6 checking for... messages and results
661# 5 compiler messages saved in config.log
662if test "$silent" = yes; then
663 exec 6>/dev/null
664else
665 exec 6>&1
666fi
667exec 5>./config.log
668
669echo "\
670This file contains any messages produced by compilers while
671running configure, to aid debugging if configure makes a mistake.
672" 1>&5
673
674# Strip out --no-create and --no-recursion so they do not pile up.
675# Also quote any args containing shell metacharacters.
676ac_configure_args=
677for ac_arg
678do
679 case "$ac_arg" in
680 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
681 | --no-cr | --no-c) ;;
682 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
683 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
684 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
685 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
686 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
687 esac
688done
689
690# NLS nuisances.
691# Only set these to C if already set. These must not be set unconditionally
692# because not all systems understand e.g. LANG=C (notably SCO).
693# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
694# Non-C LC_CTYPE values break the ctype check.
695if test "${LANG+set}" = set; then LANG=C; export LANG; fi
696if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
697if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
698if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
699
700# confdefs.h avoids OS command line length limits that DEFS can exceed.
701rm -rf conftest* confdefs.h
702# AIX cpp loses on an empty file, so make sure it contains at least a newline.
703echo > confdefs.h
704
705# A filename unique to this package, relative to the directory that
706# configure is in, which we can look for to find out if srcdir is correct.
707ac_unique_file=wx-config.in
708
709# Find the source files, if location was not specified.
710if test -z "$srcdir"; then
711 ac_srcdir_defaulted=yes
712 # Try the directory containing this script, then its parent.
713 ac_prog=$0
714 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
715 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
716 srcdir=$ac_confdir
717 if test ! -r $srcdir/$ac_unique_file; then
718 srcdir=..
719 fi
720else
721 ac_srcdir_defaulted=no
722fi
723if test ! -r $srcdir/$ac_unique_file; then
724 if test "$ac_srcdir_defaulted" = yes; then
725 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
726 else
727 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
728 fi
729fi
730srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
731
732# Prefer explicitly selected file to automatically selected ones.
733if test -z "$CONFIG_SITE"; then
734 if test "x$prefix" != xNONE; then
735 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
736 else
737 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
738 fi
739fi
740for ac_site_file in $CONFIG_SITE; do
741 if test -r "$ac_site_file"; then
742 echo "loading site script $ac_site_file"
743 . "$ac_site_file"
744 fi
745done
746
747if test -r "$cache_file"; then
748 echo "loading cache $cache_file"
749 . $cache_file
750else
751 echo "creating cache $cache_file"
752 > $cache_file
753fi
754
755ac_ext=c
756# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
757ac_cpp='$CPP $CPPFLAGS'
758ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
759ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
760cross_compiling=$ac_cv_prog_cc_cross
761
762ac_exeext=
763ac_objext=o
764if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
765 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
766 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
767 ac_n= ac_c='
768' ac_t=' '
769 else
770 ac_n=-n ac_c= ac_t=
771 fi
772else
773 ac_n= ac_c='\c' ac_t=
774fi
775
776
777
778ac_aux_dir=
779for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
780 if test -f $ac_dir/install-sh; then
781 ac_aux_dir=$ac_dir
782 ac_install_sh="$ac_aux_dir/install-sh -c"
783 break
784 elif test -f $ac_dir/install.sh; then
785 ac_aux_dir=$ac_dir
786 ac_install_sh="$ac_aux_dir/install.sh -c"
787 break
788 fi
789done
790if test -z "$ac_aux_dir"; then
791 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
792fi
793ac_config_guess=$ac_aux_dir/config.guess
794ac_config_sub=$ac_aux_dir/config.sub
795ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
796
797
798# Do some error checking and defaulting for the host and target type.
799# The inputs are:
800# configure --host=HOST --target=TARGET --build=BUILD NONOPT
801#
802# The rules are:
803# 1. You are not allowed to specify --host, --target, and nonopt at the
804# same time.
805# 2. Host defaults to nonopt.
806# 3. If nonopt is not specified, then host defaults to the current host,
807# as determined by config.guess.
808# 4. Target and build default to nonopt.
809# 5. If nonopt is not specified, then target and build default to host.
810
811# The aliases save the names the user supplied, while $host etc.
812# will get canonicalized.
813case $host---$target---$nonopt in
814NONE---*---* | *---NONE---* | *---*---NONE) ;;
815*) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
816esac
817
818
819# Make sure we can run config.sub.
820if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
821else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
822fi
823
824echo $ac_n "checking host system type""... $ac_c" 1>&6
ab9b9eab 825echo "configure:826: checking host system type" >&5
10f2d63a
VZ
826
827host_alias=$host
828case "$host_alias" in
829NONE)
830 case $nonopt in
831 NONE)
832 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
833 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
834 fi ;;
835 *) host_alias=$nonopt ;;
836 esac ;;
837esac
838
839host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
840host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
841host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
842host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
843echo "$ac_t""$host" 1>&6
844
845echo $ac_n "checking target system type""... $ac_c" 1>&6
ab9b9eab 846echo "configure:847: checking target system type" >&5
10f2d63a
VZ
847
848target_alias=$target
849case "$target_alias" in
850NONE)
851 case $nonopt in
852 NONE) target_alias=$host_alias ;;
853 *) target_alias=$nonopt ;;
854 esac ;;
855esac
856
857target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
858target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
859target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
860target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
861echo "$ac_t""$target" 1>&6
862
863echo $ac_n "checking build system type""... $ac_c" 1>&6
ab9b9eab 864echo "configure:865: checking build system type" >&5
10f2d63a
VZ
865
866build_alias=$build
867case "$build_alias" in
868NONE)
869 case $nonopt in
870 NONE) build_alias=$host_alias ;;
871 *) build_alias=$nonopt ;;
872 esac ;;
873esac
874
875build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
876build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
877build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
878build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
879echo "$ac_t""$build" 1>&6
880
881test "$host_alias" != "$target_alias" &&
882 test "$program_prefix$program_suffix$program_transform_name" = \
883 NONENONEs,x,x, &&
884 program_prefix=${target_alias}-
885
886
887
888WX_MAJOR_VERSION_NUMBER=2
889WX_MINOR_VERSION_NUMBER=1
ba0e7d41 890WX_RELEASE_NUMBER=12
10f2d63a
VZ
891
892WX_INTERFACE_AGE=0
893WX_BINARY_AGE=0
894
895WX_VERSION=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER.$WX_RELEASE_NUMBER
896
897WX_RELEASE=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER
898WX_CURRENT=`expr $WX_RELEASE_NUMBER - $WX_INTERFACE_AGE`
899WX_REVISION=$WX_INTERFACE_AGE
900WX_AGE=`expr $WX_BINARY_AGE - $WX_INTERFACE_AGE`
901
902
903USE_UNIX=1
904USE_WIN32=0
905USE_LINUX=
906USE_SGI=
907USE_HPUX=
908USE_SYSV=
909USE_SVR4=
910USE_AIX=
911USE_SUN=
912USE_SOLARIS=
913USE_SUNOS=
914USE_ALPHA=
915USE_OSF=
916USE_BSD=
917USE_FREEBSD=
918USE_VMS=
919USE_ULTRIX=
920USE_CYGWIN=
921USE_MINGW=
922USE_DATA_GENERAL=
923
ab9b9eab
VZ
924NEEDS_D_REENTRANT_FOR_R_FUNCS=0
925
10f2d63a
VZ
926ALL_TOOLKITS="CYGWIN GTK MINGW MOTIF WINE"
927
928DEFAULT_wxUSE_GTK=0
929DEFAULT_wxUSE_MOTIF=0
930DEFAULT_wxUSE_MSW=0
931DEFAULT_wxUSE_WINE=0
932
933DEFAULT_DEFAULT_wxUSE_GTK=0
934DEFAULT_DEFAULT_wxUSE_MOTIF=0
935DEFAULT_DEFAULT_wxUSE_MSW=0
936DEFAULT_DEFAULT_wxUSE_WINE=0
937
938case "${host}" in
939 *-hp-hpux* )
940 USE_HPUX=1
941 DEFAULT_DEFAULT_wxUSE_MOTIF=1
ab9b9eab 942 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
10f2d63a
VZ
943 cat >> confdefs.h <<\EOF
944#define __HPUX__ 1
945EOF
946
947 ;;
948 *-*-linux* )
949 USE_LINUX=1
950 cat >> confdefs.h <<\EOF
951#define __LINUX__ 1
952EOF
953
954 TMP=`uname -m`
955 if test "x$TMP" = "xalpha"; then
956 USE_ALPHA=1
957 cat >> confdefs.h <<\EOF
958#define __ALPHA__ 1
959EOF
960
961 fi
962 DEFAULT_DEFAULT_wxUSE_GTK=1
963 ;;
964 *-*-irix5* | *-*-irix6* )
965 USE_SGI=1
966 USE_SVR4=1
967 cat >> confdefs.h <<\EOF
968#define __SGI__ 1
969EOF
970
971 cat >> confdefs.h <<\EOF
972#define __SVR4__ 1
973EOF
974
975 DEFAULT_DEFAULT_wxUSE_MOTIF=1
976 ;;
977 *-*-solaris2* )
978 USE_SUN=1
979 USE_SOLARIS=1
980 USE_SVR4=1
981 cat >> confdefs.h <<\EOF
982#define __SUN__ 1
983EOF
984
985 cat >> confdefs.h <<\EOF
986#define __SOLARIS__ 1
987EOF
988
989 cat >> confdefs.h <<\EOF
990#define __SVR4__ 1
991EOF
992
993 DEFAULT_DEFAULT_wxUSE_MOTIF=1
ab9b9eab 994 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
10f2d63a
VZ
995 ;;
996 *-*-sunos4* )
997 USE_SUN=1
998 USE_SUNOS=1
999 USE_BSD=1
1000 cat >> confdefs.h <<\EOF
1001#define __SUN__ 1
1002EOF
1003
1004 cat >> confdefs.h <<\EOF
1005#define __SUNOS__ 1
1006EOF
1007
1008 cat >> confdefs.h <<\EOF
1009#define __BSD__ 1
1010EOF
1011
1012 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1013 ;;
1014 *-*-freebsd* | *-*-netbsd*)
1015 USE_BSD=1
1016 USE_FREEBSD=1
1017 cat >> confdefs.h <<\EOF
1018#define __FREEBSD__ 1
1019EOF
1020
1021 cat >> confdefs.h <<\EOF
1022#define __BSD__ 1
1023EOF
1024
1025 DEFAULT_DEFAULT_wxUSE_GTK=1
1026 ;;
1027 *-*-osf* )
1028 USE_ALPHA=1
1029 USE_OSF=1
1030 cat >> confdefs.h <<\EOF
1031#define __ALPHA__ 1
1032EOF
1033
1034 cat >> confdefs.h <<\EOF
1035#define __OSF__ 1
1036EOF
1037
1038 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1039 ;;
1040 *-*-dgux5* )
1041 USE_ALPHA=1
1042 USE_SVR4=1
1043 cat >> confdefs.h <<\EOF
1044#define __ALPHA__ 1
1045EOF
1046
1047 cat >> confdefs.h <<\EOF
1048#define __SVR4__ 1
1049EOF
1050
1051 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1052 ;;
1053 *-*-sysv5* )
1054 USE_SYSV=1
1055 USE_SVR4=1
1056 cat >> confdefs.h <<\EOF
1057#define __SYSV__ 1
1058EOF
1059
1060 cat >> confdefs.h <<\EOF
1061#define __SVR4__ 1
1062EOF
1063
1064 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1065 ;;
1066 *-*-aix* )
1067 USE_AIX=1
1068 USE_SYSV=1
1069 USE_SVR4=1
1070 cat >> confdefs.h <<\EOF
1071#define __AIX__ 1
1072EOF
1073
1074 cat >> confdefs.h <<\EOF
1075#define __SYSV__ 1
1076EOF
1077
1078 cat >> confdefs.h <<\EOF
1079#define __SVR4__ 1
1080EOF
1081
1082 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1083 ;;
1084
7eef8db2 1085 *-*-cygwin32* | *-*-mingw32* )
10f2d63a
VZ
1086 USE_UNIX=0
1087 USE_WIN32=1
1088 cat >> confdefs.h <<\EOF
1089#define __WIN32__ 1
1090EOF
1091
1092 cat >> confdefs.h <<\EOF
1093#define __WIN95__ 1
1094EOF
1095
1096 cat >> confdefs.h <<\EOF
1097#define __WINDOWS__ 1
1098EOF
1099
1100 cat >> confdefs.h <<\EOF
1101#define __GNUWIN32__ 1
1102EOF
1103
1104 cat >> confdefs.h <<\EOF
1105#define STRICT 1
1106EOF
1107
1108 cat >> confdefs.h <<\EOF
1109#define WINVER 0x0400
1110EOF
1111
1112 DEFAULT_DEFAULT_wxUSE_MSW=1
1113 ;;
1114
1115 *-pc-os2_emx )
1116 cat >> confdefs.h <<\EOF
1117#define __EMX__ 1
1118EOF
1119
1120 ;;
1121
1122 *)
1123 { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; }
1124esac
1125
1126if test "$USE_UNIX" = 1 ; then
1127 wxUSE_UNIX=yes
1128 cat >> confdefs.h <<\EOF
1129#define __UNIX__ 1
1130EOF
1131
1132 SRC_SUBDIRS="$SRC_SUBDIRS unix"
1133 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS unix"
1134fi
1135
1136if test "$USE_LINUX" = 1; then
1137 echo $ac_n "checking for gettext in -lc""... $ac_c" 1>&6
7eef8db2 1138echo "configure:1139: checking for gettext in -lc" >&5
10f2d63a
VZ
1139ac_lib_var=`echo c'_'gettext | sed 'y%./+-%__p_%'`
1140if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1141 echo $ac_n "(cached) $ac_c" 1>&6
1142else
1143 ac_save_LIBS="$LIBS"
1144LIBS="-lc $LIBS"
1145cat > conftest.$ac_ext <<EOF
7eef8db2 1146#line 1147 "configure"
10f2d63a
VZ
1147#include "confdefs.h"
1148/* Override any gcc2 internal prototype to avoid an error. */
1149/* We use char because int might match the return type of a gcc2
1150 builtin and then its argument prototype would still apply. */
1151char gettext();
1152
1153int main() {
1154gettext()
1155; return 0; }
1156EOF
7eef8db2 1157if { (eval echo configure:1158: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
1158 rm -rf conftest*
1159 eval "ac_cv_lib_$ac_lib_var=yes"
1160else
1161 echo "configure: failed program was:" >&5
1162 cat conftest.$ac_ext >&5
1163 rm -rf conftest*
1164 eval "ac_cv_lib_$ac_lib_var=no"
1165fi
1166rm -f conftest*
1167LIBS="$ac_save_LIBS"
1168
1169fi
1170if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1171 echo "$ac_t""yes" 1>&6
1172 cat >> confdefs.h <<\EOF
1173#define wxHAVE_GLIBC2 1
1174EOF
1175
1176else
1177 echo "$ac_t""no" 1>&6
1178fi
1179
1180fi
1181
1182
1183
1184
1185 wx_arg_cache_file="configarg.cache"
1186 echo "loading argument cache $wx_arg_cache_file"
1187 rm -f ${wx_arg_cache_file}.tmp
1188 touch ${wx_arg_cache_file}.tmp
1189 touch ${wx_arg_cache_file}
1190
1191
1192DEBUG_CONFIGURE=0
1193if test $DEBUG_CONFIGURE = 1; then
1194 DEFAULT_wxUSE_THREADS=yes
1195
1196 DEFAULT_wxUSE_SHARED=yes
1197 DEFAULT_wxUSE_OPTIMISE=yes
1198 DEFAULT_wxUSE_PROFILE=no
1199 DEFAULT_wxUSE_NO_DEPS=no
1200 DEFAULT_wxUSE_NO_RTTI=no
1201 DEFAULT_wxUSE_NO_EXCEPTIONS=no
1202 DEFAULT_wxUSE_PERMISSIVE=no
1203 DEFAULT_wxUSE_DEBUG_FLAG=yes
1204 DEFAULT_wxUSE_DEBUG_INFO=yes
1205 DEFAULT_wxUSE_DEBUG_GDB=yes
1206 DEFAULT_wxUSE_MEM_TRACING=no
1207 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1208 DEFAULT_wxUSE_DMALLOC=no
1209 DEFAULT_wxUSE_APPLE_IEEE=no
1210
1211 DEFAULT_wxUSE_LOG=yes
1212
1213 DEFAULT_wxUSE_GUI=yes
1214
1215 DEFAULT_wxUSE_ZLIB=no
1216 DEFAULT_wxUSE_LIBPNG=no
1217 DEFAULT_wxUSE_LIBJPEG=no
1218 DEFAULT_wxUSE_ODBC=no
1219
1220 DEFAULT_wxUSE_STD_IOSTREAM=no
1221 DEFAULT_wxUSE_FILE=no
1222 DEFAULT_wxUSE_TEXTFILE=no
1223 DEFAULT_wxUSE_TIMEDATE=no
1224 DEFAULT_wxUSE_WAVE=no
1225 DEFAULT_wxUSE_INTL=no
1226 DEFAULT_wxUSE_CONFIG=no
1227 DEFAULT_wxUSE_STREAMS=no
1228 DEFAULT_wxUSE_SOCKETS=no
1229 DEFAULT_wxUSE_DIALUP_MANAGER=no
1230 DEFAULT_wxUSE_SERIAL=no
1231 DEFAULT_wxUSE_JOYSTICK=no
1232 DEFAULT_wxUSE_DYNLIB_CLASS=no
1233 DEFAULT_wxUSE_LONGLONG=no
1234
1235 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
1236 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
1237 DEFAULT_wxUSE_POSTSCRIPT=no
1238
1239 DEFAULT_wxUSE_X_RESOURCES=no
1240 DEFAULT_wxUSE_CLIPBOARD=no
1241 DEFAULT_wxUSE_TOOLTIPS=no
1242 DEFAULT_wxUSE_DRAG_AND_DROP=no
1243 DEFAULT_wxUSE_SPLINES=no
1244
1245 DEFAULT_wxUSE_MDI_ARCHITECTURE=no
1246 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
1247 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
1248
1249 DEFAULT_wxUSE_PROLOGIO=no
1250 DEFAULT_wxUSE_RESOURCES=no
1251 DEFAULT_wxUSE_CONSTRAINTS=no
1252 DEFAULT_wxUSE_IPC=no
1253 DEFAULT_wxUSE_HELP=no
1254 DEFAULT_wxUSE_WXTREE=no
1255 DEFAULT_wxUSE_METAFILE=no
1256
1257 DEFAULT_wxUSE_COMMONDLGS=no
1258 DEFAULT_wxUSE_DIRDLG=no
1259 DEFAULT_wxUSE_TEXTDLG=no
1260 DEFAULT_wxUSE_STARTUP_TIPS=no
1261 DEFAULT_wxUSE_PROGRESSDLG=no
1262 DEFAULT_wxUSE_MINIFRAME=no
1263 DEFAULT_wxUSE_HTML=no
1264 DEFAULT_wxUSE_FS_INET=no
1265 DEFAULT_wxUSE_FS_ZIP=no
1266 DEFAULT_wxUSE_BUSYINFO=no
1267 DEFAULT_wxUSE_ZIPSTREAM=no
1268 DEFAULT_wxUSE_VALIDATORS=yes
1269
1270 DEFAULT_wxUSE_ACCEL=no
1271 DEFAULT_wxUSE_CARET=no
1272 DEFAULT_wxUSE_BMPBUTTON=no
1273 DEFAULT_wxUSE_CHECKBOX=no
1274 DEFAULT_wxUSE_CHECKLST=no
1275 DEFAULT_wxUSE_CHOICE=yes
1276 DEFAULT_wxUSE_COMBOBOX=no
1277 DEFAULT_wxUSE_GAUGE=no
1278 DEFAULT_wxUSE_GRID=no
1279 DEFAULT_wxUSE_NEW_GRID=no
1280 DEFAULT_wxUSE_IMAGLIST=no
1281 DEFAULT_wxUSE_LISTBOX=no
1282 DEFAULT_wxUSE_LISTCTRL=no
1283 DEFAULT_wxUSE_NOTEBOOK=no
1284 DEFAULT_wxUSE_RADIOBOX=no
1285 DEFAULT_wxUSE_RADIOBTN=no
1286 DEFAULT_wxUSE_SASH=no
1287 DEFAULT_wxUSE_SCROLLBAR=no
1288 DEFAULT_wxUSE_SLIDER=no
1289 DEFAULT_wxUSE_SPINBTN=no
1290 DEFAULT_wxUSE_SPLITTER=no
1291 DEFAULT_wxUSE_STATBMP=no
1292 DEFAULT_wxUSE_STATBOX=no
1293 DEFAULT_wxUSE_STATLINE=no
1294 DEFAULT_wxUSE_STATUSBAR=yes
1295 DEFAULT_wxUSE_TABDIALOG=no
1296 DEFAULT_wxUSE_TOOLBAR=no
1297 DEFAULT_wxUSE_TREECTRL=no
1298
1299 DEFAULT_wxUSE_UNICODE=no
1300 DEFAULT_wxUSE_WCSRTOMBS=no
1301
1302 DEFAULT_wxUSE_GIF=no
1303 DEFAULT_wxUSE_PCX=no
1304 DEFAULT_wxUSE_PNM=no
1305else
1306 DEFAULT_wxUSE_THREADS=yes
1307
1308 DEFAULT_wxUSE_SHARED=yes
1309 DEFAULT_wxUSE_OPTIMISE=yes
1310 DEFAULT_wxUSE_PROFILE=no
1311 DEFAULT_wxUSE_NO_DEPS=no
1312 DEFAULT_wxUSE_NO_RTTI=no
1313 DEFAULT_wxUSE_NO_EXCEPTIONS=no
1314 DEFAULT_wxUSE_PERMISSIVE=no
1315 DEFAULT_wxUSE_DEBUG_FLAG=no
1316 DEFAULT_wxUSE_DEBUG_INFO=no
1317 DEFAULT_wxUSE_DEBUG_GDB=no
1318 DEFAULT_wxUSE_MEM_TRACING=no
1319 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1320 DEFAULT_wxUSE_DMALLOC=no
1321 DEFAULT_wxUSE_APPLE_IEEE=yes
1322
1323 DEFAULT_wxUSE_LOG=yes
1324
1325 DEFAULT_wxUSE_GUI=yes
1326
1327 DEFAULT_wxUSE_ZLIB=yes
1328 DEFAULT_wxUSE_LIBPNG=yes
1329 DEFAULT_wxUSE_LIBJPEG=yes
1330 DEFAULT_wxUSE_ODBC=yes
1331
1332 DEFAULT_wxUSE_STD_IOSTREAM=no
1333 DEFAULT_wxUSE_FILE=yes
1334 DEFAULT_wxUSE_TEXTFILE=yes
1335 DEFAULT_wxUSE_TIMEDATE=yes
1336 DEFAULT_wxUSE_WAVE=no
1337 DEFAULT_wxUSE_INTL=yes
1338 DEFAULT_wxUSE_CONFIG=yes
1339 DEFAULT_wxUSE_STREAMS=yes
1340 DEFAULT_wxUSE_SOCKETS=yes
1341 DEFAULT_wxUSE_DIALUP_MANAGER=yes
1342 DEFAULT_wxUSE_SERIAL=yes
1343 DEFAULT_wxUSE_JOYSTICK=yes
1344 DEFAULT_wxUSE_DYNLIB_CLASS=yes
1345 DEFAULT_wxUSE_LONGLONG=no
1346
1347 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
1348 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
1349 DEFAULT_wxUSE_POSTSCRIPT=yes
1350
1351 DEFAULT_wxUSE_X_RESOURCES=no
1352 DEFAULT_wxUSE_CLIPBOARD=yes
1353 DEFAULT_wxUSE_TOOLTIPS=yes
1354 DEFAULT_wxUSE_DRAG_AND_DROP=yes
1355 DEFAULT_wxUSE_SPLINES=yes
1356
1357 DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
1358 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
1359 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
1360
1361 DEFAULT_wxUSE_PROLOGIO=yes
1362 DEFAULT_wxUSE_RESOURCES=yes
1363 DEFAULT_wxUSE_CONSTRAINTS=yes
1364 DEFAULT_wxUSE_IPC=yes
1365 DEFAULT_wxUSE_HELP=yes
1366 DEFAULT_wxUSE_WXTREE=yes
1367 DEFAULT_wxUSE_METAFILE=yes
1368
1369 DEFAULT_wxUSE_COMMONDLGS=yes
1370 DEFAULT_wxUSE_DIRDLG=yes
1371 DEFAULT_wxUSE_TEXTDLG=yes
1372 DEFAULT_wxUSE_STARTUP_TIPS=yes
1373 DEFAULT_wxUSE_PROGRESSDLG=yes
1374 DEFAULT_wxUSE_MINIFRAME=yes
1375 DEFAULT_wxUSE_HTML=yes
1376 DEFAULT_wxUSE_FS_INET=yes
1377 DEFAULT_wxUSE_FS_ZIP=yes
1378 DEFAULT_wxUSE_BUSYINFO=yes
1379 DEFAULT_wxUSE_ZIPSTREAM=yes
1380 DEFAULT_wxUSE_VALIDATORS=yes
1381
1382 DEFAULT_wxUSE_ACCEL=yes
1383 DEFAULT_wxUSE_CARET=yes
1384 DEFAULT_wxUSE_BMPBUTTON=yes
1385 DEFAULT_wxUSE_CHECKBOX=yes
1386 DEFAULT_wxUSE_CHECKLST=yes
1387 DEFAULT_wxUSE_CHOICE=yes
1388 DEFAULT_wxUSE_COMBOBOX=yes
1389 DEFAULT_wxUSE_GAUGE=yes
1390 DEFAULT_wxUSE_GRID=yes
fc9c7c09 1391 DEFAULT_wxUSE_NEW_GRID=no
10f2d63a
VZ
1392 DEFAULT_wxUSE_IMAGLIST=yes
1393 DEFAULT_wxUSE_LISTBOX=yes
1394 DEFAULT_wxUSE_LISTCTRL=yes
1395 DEFAULT_wxUSE_NOTEBOOK=yes
1396 DEFAULT_wxUSE_RADIOBOX=yes
1397 DEFAULT_wxUSE_RADIOBTN=yes
1398 DEFAULT_wxUSE_SASH=yes
1399 DEFAULT_wxUSE_SCROLLBAR=yes
1400 DEFAULT_wxUSE_SLIDER=yes
1401 DEFAULT_wxUSE_SPINBTN=yes
1402 DEFAULT_wxUSE_SPLITTER=yes
1403 DEFAULT_wxUSE_STATBMP=yes
1404 DEFAULT_wxUSE_STATBOX=yes
1405 DEFAULT_wxUSE_STATLINE=yes
1406 DEFAULT_wxUSE_STATUSBAR=yes
1407 DEFAULT_wxUSE_TABDIALOG=no
1408 DEFAULT_wxUSE_TOOLBAR=yes
1409 DEFAULT_wxUSE_TREECTRL=yes
1410
1411 DEFAULT_wxUSE_UNICODE=no
1412 DEFAULT_wxUSE_WCSRTOMBS=no
1413
1414 DEFAULT_wxUSE_GIF=yes
1415 DEFAULT_wxUSE_PCX=yes
1416 DEFAULT_wxUSE_PNM=yes
1417fi
1418
1419
1420
1421for toolkit in `echo $ALL_TOOLKITS`; do
1422 LINE=`grep "wxUSE_$toolkit" ${wx_arg_cache_file}`
1423 if test "x$LINE" != x ; then
1424 has_toolkit_in_cache=1
1425 eval "DEFAULT_$LINE"
1426 eval "CACHE_$toolkit=1"
1427 fi
1428done
1429
1430
1431
1432 echo $ac_n "checking "for --enable-gui"""... $ac_c" 1>&6
7eef8db2 1433echo "configure:1434: checking "for --enable-gui"" >&5
10f2d63a
VZ
1434 no_cache=0
1435 # Check whether --enable-gui or --disable-gui was given.
1436if test "${enable_gui+set}" = set; then
1437 enableval="$enable_gui"
1438
1439 if test "$enableval" = yes; then
1440 ac_cv_use_gui='wxUSE_GUI=yes'
1441 else
1442 ac_cv_use_gui='wxUSE_GUI=no'
1443 fi
1444
1445else
1446
1447 LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
1448 if test "x$LINE" != x ; then
1449 eval "DEFAULT_$LINE"
1450 else
1451 no_cache=1
1452 fi
1453
1454 ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
1455
1456fi
1457
1458
1459 eval "$ac_cv_use_gui"
1460 if test "$no_cache" != 1; then
1461 echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
1462 fi
1463
1464 if test "$wxUSE_GUI" = yes; then
1465 echo "$ac_t""yes" 1>&6
1466 else
1467 echo "$ac_t""no" 1>&6
1468 fi
1469
1470
1471if test "$wxUSE_GUI" = "no"; then
1472 DEFAULT_wxUSE_ZLIB=no
1473 DEFAULT_wxUSE_LIBPNG=no
1474 DEFAULT_wxUSE_LIBJPEG=no
1475 DEFAULT_wxUSE_SOCKETS=no
1476 DEFAULT_wxUSE_JOYSTICK=no
1477 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
1478 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
1479 DEFAULT_wxUSE_POSTSCRIPT=no
1480 DEFAULT_wxUSE_X_RESOURCES=no
1481 DEFAULT_wxUSE_CLIPBOARD=no
1482 DEFAULT_wxUSE_TOOLTIPS=no
1483 DEFAULT_wxUSE_DRAG_AND_DROP=no
1484 DEFAULT_wxUSE_SPLINES=no
1485 DEFAULT_wxUSE_MDI_ARCHITECTURE=no
1486 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
1487 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
1488 DEFAULT_wxUSE_PROLOGIO=no
1489 DEFAULT_wxUSE_RESOURCES=no
1490 DEFAULT_wxUSE_CONSTRAINTS=no
1491 DEFAULT_wxUSE_IPC=no
1492 DEFAULT_wxUSE_HELP=no
1493 DEFAULT_wxUSE_WXTREE=no
1494 DEFAULT_wxUSE_METAFILE=no
1495 DEFAULT_wxUSE_COMMONDLGS=no
1496 DEFAULT_wxUSE_DIRDLG=no
1497 DEFAULT_wxUSE_TEXTDLG=no
1498 DEFAULT_wxUSE_STARTUP_TIPS=no
1499 DEFAULT_wxUSE_PROGRESSDLG=no
1500 DEFAULT_wxUSE_MINIFRAME=no
1501 DEFAULT_wxUSE_HTML=no
1502 DEFAULT_wxUSE_FS_INET=no
1503 DEFAULT_wxUSE_FS_ZIP=no
1504 DEFAULT_wxUSE_BUSYINFO=no
1505 DEFAULT_wxUSE_ZIPSTREAM=no
1506 DEFAULT_wxUSE_VALIDATORS=no
1507 DEFAULT_wxUSE_ACCEL=no
1508 DEFAULT_wxUSE_CARET=no
1509 DEFAULT_wxUSE_BMPBUTTON=no
1510 DEFAULT_wxUSE_CHECKBOX=no
1511 DEFAULT_wxUSE_CHECKLST=no
1512 DEFAULT_wxUSE_CHOICE=no
1513 DEFAULT_wxUSE_COMBOBOX=no
1514 DEFAULT_wxUSE_GAUGE=no
1515 DEFAULT_wxUSE_GRID=no
1516 DEFAULT_wxUSE_NEW_GRID=no
1517 DEFAULT_wxUSE_IMAGLIST=no
1518 DEFAULT_wxUSE_LISTBOX=no
1519 DEFAULT_wxUSE_LISTCTRL=no
1520 DEFAULT_wxUSE_NOTEBOOK=no
1521 DEFAULT_wxUSE_RADIOBOX=no
1522 DEFAULT_wxUSE_RADIOBTN=no
1523 DEFAULT_wxUSE_SASH=no
1524 DEFAULT_wxUSE_SCROLLBAR=no
1525 DEFAULT_wxUSE_SLIDER=no
1526 DEFAULT_wxUSE_SPINBTN=no
1527 DEFAULT_wxUSE_SPLITTER=no
1528 DEFAULT_wxUSE_STATBMP=no
1529 DEFAULT_wxUSE_STATBOX=no
1530 DEFAULT_wxUSE_STATLINE=no
1531 DEFAULT_wxUSE_STATUSBAR=no
1532 DEFAULT_wxUSE_TABDIALOG=no
1533 DEFAULT_wxUSE_TOOLBAR=no
1534 DEFAULT_wxUSE_TREECTRL=no
1535 DEFAULT_wxUSE_GIF=no
1536 DEFAULT_wxUSE_PCX=no
1537 DEFAULT_wxUSE_PNM=no
1538fi
1539
1540# Check whether --with-gtk or --without-gtk was given.
1541if test "${with_gtk+set}" = set; then
1542 withval="$with_gtk"
1543 wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
1544fi
1545
1546# Check whether --with-motif or --without-motif was given.
1547if test "${with_motif+set}" = set; then
1548 withval="$with_motif"
1549 wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
1550fi
1551
1552# Check whether --with-wine or --without-wine was given.
1553if test "${with_wine+set}" = set; then
1554 withval="$with_wine"
1555 wxUSE_WINE="$withval" CACHE_WINE=1 TOOLKIT_GIVEN=1
1556fi
1557
1558# Check whether --with-cygwin or --without-cygwin was given.
1559if test "${with_cygwin+set}" = set; then
1560 withval="$with_cygwin"
1561 wxUSE_CYGWIN="$withval" CACHE_CYGWIN=1 TOOLKIT_GIVEN=1
1562fi
1563
1564# Check whether --with-mingw or --without-mingw was given.
1565if test "${with_mingw+set}" = set; then
1566 withval="$with_mingw"
1567 wxUSE_MINGW="$withval" CACHE_MINGW=1 TOOLKIT_GIVEN=1
1568fi
1569
1570
1571# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
1572if test "${with_gtk_prefix+set}" = set; then
1573 withval="$with_gtk_prefix"
1574 gtk_config_prefix="$withval"
1575else
1576 gtk_config_prefix=""
1577fi
1578
1579# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
1580if test "${with_gtk_exec_prefix+set}" = set; then
1581 withval="$with_gtk_exec_prefix"
1582 gtk_config_exec_prefix="$withval"
1583else
1584 gtk_config_exec_prefix=""
1585fi
1586
1587
1588
1589 echo $ac_n "checking "for --with-dmalloc"""... $ac_c" 1>&6
7eef8db2 1590echo "configure:1591: checking "for --with-dmalloc"" >&5
10f2d63a
VZ
1591 no_cache=0
1592 # Check whether --with-dmalloc or --without-dmalloc was given.
1593if test "${with_dmalloc+set}" = set; then
1594 withval="$with_dmalloc"
1595
1596 if test "$withval" = yes; then
1597 ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
1598 else
1599 ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
1600 fi
1601
1602else
1603
1604 LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
1605 if test "x$LINE" != x ; then
1606 eval "DEFAULT_$LINE"
1607 else
1608 no_cache=1
1609 fi
1610
1611 ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
1612
1613fi
1614
1615
1616 eval "$ac_cv_use_dmalloc"
1617 if test "$no_cache" != 1; then
1618 echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
1619 fi
1620
1621 if test "$wxUSE_DMALLOC" = yes; then
1622 echo "$ac_t""yes" 1>&6
1623 else
1624 echo "$ac_t""no" 1>&6
1625 fi
1626
1627
1628 echo $ac_n "checking "for --with-zlib"""... $ac_c" 1>&6
7eef8db2 1629echo "configure:1630: checking "for --with-zlib"" >&5
10f2d63a
VZ
1630 no_cache=0
1631 # Check whether --with-zlib or --without-zlib was given.
1632if test "${with_zlib+set}" = set; then
1633 withval="$with_zlib"
1634
1635 if test "$withval" = yes; then
1636 ac_cv_use_zlib='wxUSE_ZLIB=yes'
1637 else
1638 ac_cv_use_zlib='wxUSE_ZLIB=no'
1639 fi
1640
1641else
1642
1643 LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
1644 if test "x$LINE" != x ; then
1645 eval "DEFAULT_$LINE"
1646 else
1647 no_cache=1
1648 fi
1649
1650 ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
1651
1652fi
1653
1654
1655 eval "$ac_cv_use_zlib"
1656 if test "$no_cache" != 1; then
1657 echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
1658 fi
1659
1660 if test "$wxUSE_ZLIB" = yes; then
1661 echo "$ac_t""yes" 1>&6
1662 else
1663 echo "$ac_t""no" 1>&6
1664 fi
1665
1666
1667 echo $ac_n "checking "for --with-libpng"""... $ac_c" 1>&6
7eef8db2 1668echo "configure:1669: checking "for --with-libpng"" >&5
10f2d63a
VZ
1669 no_cache=0
1670 # Check whether --with-libpng or --without-libpng was given.
1671if test "${with_libpng+set}" = set; then
1672 withval="$with_libpng"
1673
1674 if test "$withval" = yes; then
1675 ac_cv_use_libpng='wxUSE_LIBPNG=yes'
1676 else
1677 ac_cv_use_libpng='wxUSE_LIBPNG=no'
1678 fi
1679
1680else
1681
1682 LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
1683 if test "x$LINE" != x ; then
1684 eval "DEFAULT_$LINE"
1685 else
1686 no_cache=1
1687 fi
1688
1689 ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
1690
1691fi
1692
1693
1694 eval "$ac_cv_use_libpng"
1695 if test "$no_cache" != 1; then
1696 echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
1697 fi
1698
1699 if test "$wxUSE_LIBPNG" = yes; then
1700 echo "$ac_t""yes" 1>&6
1701 else
1702 echo "$ac_t""no" 1>&6
1703 fi
1704
1705
1706 echo $ac_n "checking "for --with-libjpeg"""... $ac_c" 1>&6
7eef8db2 1707echo "configure:1708: checking "for --with-libjpeg"" >&5
10f2d63a
VZ
1708 no_cache=0
1709 # Check whether --with-libjpeg or --without-libjpeg was given.
1710if test "${with_libjpeg+set}" = set; then
1711 withval="$with_libjpeg"
1712
1713 if test "$withval" = yes; then
1714 ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
1715 else
1716 ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
1717 fi
1718
1719else
1720
1721 LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
1722 if test "x$LINE" != x ; then
1723 eval "DEFAULT_$LINE"
1724 else
1725 no_cache=1
1726 fi
1727
1728 ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
1729
1730fi
1731
1732
1733 eval "$ac_cv_use_libjpeg"
1734 if test "$no_cache" != 1; then
1735 echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
1736 fi
1737
1738 if test "$wxUSE_LIBJPEG" = yes; then
1739 echo "$ac_t""yes" 1>&6
1740 else
1741 echo "$ac_t""no" 1>&6
1742 fi
1743
1744
1745 echo $ac_n "checking "for --with-opengl"""... $ac_c" 1>&6
7eef8db2 1746echo "configure:1747: checking "for --with-opengl"" >&5
10f2d63a
VZ
1747 no_cache=0
1748 # Check whether --with-opengl or --without-opengl was given.
1749if test "${with_opengl+set}" = set; then
1750 withval="$with_opengl"
1751
1752 if test "$withval" = yes; then
1753 ac_cv_use_opengl='wxUSE_OPENGL=yes'
1754 else
1755 ac_cv_use_opengl='wxUSE_OPENGL=no'
1756 fi
1757
1758else
1759
1760 LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
1761 if test "x$LINE" != x ; then
1762 eval "DEFAULT_$LINE"
1763 else
1764 no_cache=1
1765 fi
1766
1767 ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
1768
1769fi
1770
1771
1772 eval "$ac_cv_use_opengl"
1773 if test "$no_cache" != 1; then
1774 echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
1775 fi
1776
1777 if test "$wxUSE_OPENGL" = yes; then
1778 echo "$ac_t""yes" 1>&6
1779 else
1780 echo "$ac_t""no" 1>&6
1781 fi
1782
1783
1784 echo $ac_n "checking "for --with-odbc"""... $ac_c" 1>&6
7eef8db2 1785echo "configure:1786: checking "for --with-odbc"" >&5
10f2d63a
VZ
1786 no_cache=0
1787 # Check whether --with-odbc or --without-odbc was given.
1788if test "${with_odbc+set}" = set; then
1789 withval="$with_odbc"
1790
1791 if test "$withval" = yes; then
1792 ac_cv_use_odbc='wxUSE_ODBC=yes'
1793 else
1794 ac_cv_use_odbc='wxUSE_ODBC=no'
1795 fi
1796
1797else
1798
1799 LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
1800 if test "x$LINE" != x ; then
1801 eval "DEFAULT_$LINE"
1802 else
1803 no_cache=1
1804 fi
1805
1806 ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
1807
1808fi
1809
1810
1811 eval "$ac_cv_use_odbc"
1812 if test "$no_cache" != 1; then
1813 echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
1814 fi
1815
1816 if test "$wxUSE_ODBC" = yes; then
1817 echo "$ac_t""yes" 1>&6
1818 else
1819 echo "$ac_t""no" 1>&6
1820 fi
1821
1822
1823
1824
1825
1826 echo $ac_n "checking "for --enable-shared"""... $ac_c" 1>&6
7eef8db2 1827echo "configure:1828: checking "for --enable-shared"" >&5
10f2d63a
VZ
1828 no_cache=0
1829 # Check whether --enable-shared or --disable-shared was given.
1830if test "${enable_shared+set}" = set; then
1831 enableval="$enable_shared"
1832
1833 if test "$enableval" = yes; then
1834 ac_cv_use_shared='wxUSE_SHARED=yes'
1835 else
1836 ac_cv_use_shared='wxUSE_SHARED=no'
1837 fi
1838
1839else
1840
1841 LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
1842 if test "x$LINE" != x ; then
1843 eval "DEFAULT_$LINE"
1844 else
1845 no_cache=1
1846 fi
1847
1848 ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
1849
1850fi
1851
1852
1853 eval "$ac_cv_use_shared"
1854 if test "$no_cache" != 1; then
1855 echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
1856 fi
1857
1858 if test "$wxUSE_SHARED" = yes; then
1859 echo "$ac_t""yes" 1>&6
1860 else
1861 echo "$ac_t""no" 1>&6
1862 fi
1863
1864
1865 echo $ac_n "checking "for --enable-optimise"""... $ac_c" 1>&6
7eef8db2 1866echo "configure:1867: checking "for --enable-optimise"" >&5
10f2d63a
VZ
1867 no_cache=0
1868 # Check whether --enable-optimise or --disable-optimise was given.
1869if test "${enable_optimise+set}" = set; then
1870 enableval="$enable_optimise"
1871
1872 if test "$enableval" = yes; then
1873 ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
1874 else
1875 ac_cv_use_optimise='wxUSE_OPTIMISE=no'
1876 fi
1877
1878else
1879
1880 LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
1881 if test "x$LINE" != x ; then
1882 eval "DEFAULT_$LINE"
1883 else
1884 no_cache=1
1885 fi
1886
1887 ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
1888
1889fi
1890
1891
1892 eval "$ac_cv_use_optimise"
1893 if test "$no_cache" != 1; then
1894 echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
1895 fi
1896
1897 if test "$wxUSE_OPTIMISE" = yes; then
1898 echo "$ac_t""yes" 1>&6
1899 else
1900 echo "$ac_t""no" 1>&6
1901 fi
1902
1903
1904 echo $ac_n "checking "for --enable-debug"""... $ac_c" 1>&6
7eef8db2 1905echo "configure:1906: checking "for --enable-debug"" >&5
10f2d63a
VZ
1906 no_cache=0
1907 # Check whether --enable-debug or --disable-debug was given.
1908if test "${enable_debug+set}" = set; then
1909 enableval="$enable_debug"
1910
1911 if test "$enableval" = yes; then
1912 ac_cv_use_debug='wxUSE_DEBUG=yes'
1913 else
1914 ac_cv_use_debug='wxUSE_DEBUG=no'
1915 fi
1916
1917else
1918
1919 LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
1920 if test "x$LINE" != x ; then
1921 eval "DEFAULT_$LINE"
1922 else
1923 no_cache=1
1924 fi
1925
1926 ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
1927
1928fi
1929
1930
1931 eval "$ac_cv_use_debug"
1932 if test "$no_cache" != 1; then
1933 echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
1934 fi
1935
1936 if test "$wxUSE_DEBUG" = yes; then
1937 echo "$ac_t""yes" 1>&6
1938 else
1939 echo "$ac_t""no" 1>&6
1940 fi
1941
1942
1943if test "$wxUSE_DEBUG" = "yes"; then
1944 DEFAULT_wxUSE_DEBUG_FLAG=yes
1945 DEFAULT_wxUSE_DEBUG_INFO=yes
1946elif test "$wxUSE_DEBUG" = "no"; then
1947 DEFAULT_wxUSE_DEBUG_FLAG=no
1948 DEFAULT_wxUSE_DEBUG_INFO=no
1949fi
1950
1951
1952 echo $ac_n "checking "for --enable-debug_flag"""... $ac_c" 1>&6
7eef8db2 1953echo "configure:1954: checking "for --enable-debug_flag"" >&5
10f2d63a
VZ
1954 no_cache=0
1955 # Check whether --enable-debug_flag or --disable-debug_flag was given.
1956if test "${enable_debug_flag+set}" = set; then
1957 enableval="$enable_debug_flag"
1958
1959 if test "$enableval" = yes; then
1960 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
1961 else
1962 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
1963 fi
1964
1965else
1966
1967 LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
1968 if test "x$LINE" != x ; then
1969 eval "DEFAULT_$LINE"
1970 else
1971 no_cache=1
1972 fi
1973
1974 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
1975
1976fi
1977
1978
1979 eval "$ac_cv_use_debug_flag"
1980 if test "$no_cache" != 1; then
1981 echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
1982 fi
1983
1984 if test "$wxUSE_DEBUG_FLAG" = yes; then
1985 echo "$ac_t""yes" 1>&6
1986 else
1987 echo "$ac_t""no" 1>&6
1988 fi
1989
1990
1991 echo $ac_n "checking "for --enable-debug_info"""... $ac_c" 1>&6
7eef8db2 1992echo "configure:1993: checking "for --enable-debug_info"" >&5
10f2d63a
VZ
1993 no_cache=0
1994 # Check whether --enable-debug_info or --disable-debug_info was given.
1995if test "${enable_debug_info+set}" = set; then
1996 enableval="$enable_debug_info"
1997
1998 if test "$enableval" = yes; then
1999 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
2000 else
2001 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
2002 fi
2003
2004else
2005
2006 LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
2007 if test "x$LINE" != x ; then
2008 eval "DEFAULT_$LINE"
2009 else
2010 no_cache=1
2011 fi
2012
2013 ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
2014
2015fi
2016
2017
2018 eval "$ac_cv_use_debug_info"
2019 if test "$no_cache" != 1; then
2020 echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
2021 fi
2022
2023 if test "$wxUSE_DEBUG_INFO" = yes; then
2024 echo "$ac_t""yes" 1>&6
2025 else
2026 echo "$ac_t""no" 1>&6
2027 fi
2028
2029
2030 echo $ac_n "checking "for --enable-debug_gdb"""... $ac_c" 1>&6
7eef8db2 2031echo "configure:2032: checking "for --enable-debug_gdb"" >&5
10f2d63a
VZ
2032 no_cache=0
2033 # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
2034if test "${enable_debug_gdb+set}" = set; then
2035 enableval="$enable_debug_gdb"
2036
2037 if test "$enableval" = yes; then
2038 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
2039 else
2040 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
2041 fi
2042
2043else
2044
2045 LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
2046 if test "x$LINE" != x ; then
2047 eval "DEFAULT_$LINE"
2048 else
2049 no_cache=1
2050 fi
2051
2052 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
2053
2054fi
2055
2056
2057 eval "$ac_cv_use_debug_gdb"
2058 if test "$no_cache" != 1; then
2059 echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
2060 fi
2061
2062 if test "$wxUSE_DEBUG_GDB" = yes; then
2063 echo "$ac_t""yes" 1>&6
2064 else
2065 echo "$ac_t""no" 1>&6
2066 fi
2067
2068
2069 echo $ac_n "checking "for --enable-debug_cntxt"""... $ac_c" 1>&6
7eef8db2 2070echo "configure:2071: checking "for --enable-debug_cntxt"" >&5
10f2d63a
VZ
2071 no_cache=0
2072 # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
2073if test "${enable_debug_cntxt+set}" = set; then
2074 enableval="$enable_debug_cntxt"
2075
2076 if test "$enableval" = yes; then
2077 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
2078 else
2079 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
2080 fi
2081
2082else
2083
2084 LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
2085 if test "x$LINE" != x ; then
2086 eval "DEFAULT_$LINE"
2087 else
2088 no_cache=1
2089 fi
2090
2091 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
2092
2093fi
2094
2095
2096 eval "$ac_cv_use_debug_cntxt"
2097 if test "$no_cache" != 1; then
2098 echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
2099 fi
2100
2101 if test "$wxUSE_DEBUG_CONTEXT" = yes; then
2102 echo "$ac_t""yes" 1>&6
2103 else
2104 echo "$ac_t""no" 1>&6
2105 fi
2106
2107
2108 echo $ac_n "checking "for --enable-mem_tracing"""... $ac_c" 1>&6
7eef8db2 2109echo "configure:2110: checking "for --enable-mem_tracing"" >&5
10f2d63a
VZ
2110 no_cache=0
2111 # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
2112if test "${enable_mem_tracing+set}" = set; then
2113 enableval="$enable_mem_tracing"
2114
2115 if test "$enableval" = yes; then
2116 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
2117 else
2118 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
2119 fi
2120
2121else
2122
2123 LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
2124 if test "x$LINE" != x ; then
2125 eval "DEFAULT_$LINE"
2126 else
2127 no_cache=1
2128 fi
2129
2130 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
2131
2132fi
2133
2134
2135 eval "$ac_cv_use_mem_tracing"
2136 if test "$no_cache" != 1; then
2137 echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
2138 fi
2139
2140 if test "$wxUSE_MEM_TRACING" = yes; then
2141 echo "$ac_t""yes" 1>&6
2142 else
2143 echo "$ac_t""no" 1>&6
2144 fi
2145
2146
2147 echo $ac_n "checking "for --enable-profile"""... $ac_c" 1>&6
7eef8db2 2148echo "configure:2149: checking "for --enable-profile"" >&5
10f2d63a
VZ
2149 no_cache=0
2150 # Check whether --enable-profile or --disable-profile was given.
2151if test "${enable_profile+set}" = set; then
2152 enableval="$enable_profile"
2153
2154 if test "$enableval" = yes; then
2155 ac_cv_use_profile='wxUSE_PROFILE=yes'
2156 else
2157 ac_cv_use_profile='wxUSE_PROFILE=no'
2158 fi
2159
2160else
2161
2162 LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
2163 if test "x$LINE" != x ; then
2164 eval "DEFAULT_$LINE"
2165 else
2166 no_cache=1
2167 fi
2168
2169 ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
2170
2171fi
2172
2173
2174 eval "$ac_cv_use_profile"
2175 if test "$no_cache" != 1; then
2176 echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
2177 fi
2178
2179 if test "$wxUSE_PROFILE" = yes; then
2180 echo "$ac_t""yes" 1>&6
2181 else
2182 echo "$ac_t""no" 1>&6
2183 fi
2184
2185
2186 echo $ac_n "checking "for --enable-no_rtti"""... $ac_c" 1>&6
7eef8db2 2187echo "configure:2188: checking "for --enable-no_rtti"" >&5
10f2d63a
VZ
2188 no_cache=0
2189 # Check whether --enable-no_rtti or --disable-no_rtti was given.
2190if test "${enable_no_rtti+set}" = set; then
2191 enableval="$enable_no_rtti"
2192
2193 if test "$enableval" = yes; then
2194 ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
2195 else
2196 ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
2197 fi
2198
2199else
2200
2201 LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
2202 if test "x$LINE" != x ; then
2203 eval "DEFAULT_$LINE"
2204 else
2205 no_cache=1
2206 fi
2207
2208 ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
2209
2210fi
2211
2212
2213 eval "$ac_cv_use_no_rtti"
2214 if test "$no_cache" != 1; then
2215 echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
2216 fi
2217
2218 if test "$wxUSE_NO_RTTI" = yes; then
2219 echo "$ac_t""yes" 1>&6
2220 else
2221 echo "$ac_t""no" 1>&6
2222 fi
2223
2224
2225 echo $ac_n "checking "for --enable-no_exceptions"""... $ac_c" 1>&6
7eef8db2 2226echo "configure:2227: checking "for --enable-no_exceptions"" >&5
10f2d63a
VZ
2227 no_cache=0
2228 # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
2229if test "${enable_no_exceptions+set}" = set; then
2230 enableval="$enable_no_exceptions"
2231
2232 if test "$enableval" = yes; then
2233 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
2234 else
2235 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
2236 fi
2237
2238else
2239
2240 LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
2241 if test "x$LINE" != x ; then
2242 eval "DEFAULT_$LINE"
2243 else
2244 no_cache=1
2245 fi
2246
2247 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
2248
2249fi
2250
2251
2252 eval "$ac_cv_use_no_exceptions"
2253 if test "$no_cache" != 1; then
2254 echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
2255 fi
2256
2257 if test "$wxUSE_NO_EXCEPTIONS" = yes; then
2258 echo "$ac_t""yes" 1>&6
2259 else
2260 echo "$ac_t""no" 1>&6
2261 fi
2262
2263
2264 echo $ac_n "checking "for --enable-permissive"""... $ac_c" 1>&6
7eef8db2 2265echo "configure:2266: checking "for --enable-permissive"" >&5
10f2d63a
VZ
2266 no_cache=0
2267 # Check whether --enable-permissive or --disable-permissive was given.
2268if test "${enable_permissive+set}" = set; then
2269 enableval="$enable_permissive"
2270
2271 if test "$enableval" = yes; then
2272 ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
2273 else
2274 ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
2275 fi
2276
2277else
2278
2279 LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
2280 if test "x$LINE" != x ; then
2281 eval "DEFAULT_$LINE"
2282 else
2283 no_cache=1
2284 fi
2285
2286 ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
2287
2288fi
2289
2290
2291 eval "$ac_cv_use_permissive"
2292 if test "$no_cache" != 1; then
2293 echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
2294 fi
2295
2296 if test "$wxUSE_PERMISSIVE" = yes; then
2297 echo "$ac_t""yes" 1>&6
2298 else
2299 echo "$ac_t""no" 1>&6
2300 fi
2301
2302
2303 echo $ac_n "checking "for --enable-no_deps"""... $ac_c" 1>&6
7eef8db2 2304echo "configure:2305: checking "for --enable-no_deps"" >&5
10f2d63a
VZ
2305 no_cache=0
2306 # Check whether --enable-no_deps or --disable-no_deps was given.
2307if test "${enable_no_deps+set}" = set; then
2308 enableval="$enable_no_deps"
2309
2310 if test "$enableval" = yes; then
2311 ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
2312 else
2313 ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
2314 fi
2315
2316else
2317
2318 LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
2319 if test "x$LINE" != x ; then
2320 eval "DEFAULT_$LINE"
2321 else
2322 no_cache=1
2323 fi
2324
2325 ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
2326
2327fi
2328
2329
2330 eval "$ac_cv_use_no_deps"
2331 if test "$no_cache" != 1; then
2332 echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
2333 fi
2334
2335 if test "$wxUSE_NO_DEPS" = yes; then
2336 echo "$ac_t""yes" 1>&6
2337 else
2338 echo "$ac_t""no" 1>&6
2339 fi
2340
2341
2342
2343
2344 echo $ac_n "checking "for --enable-intl"""... $ac_c" 1>&6
7eef8db2 2345echo "configure:2346: checking "for --enable-intl"" >&5
10f2d63a
VZ
2346 no_cache=0
2347 # Check whether --enable-intl or --disable-intl was given.
2348if test "${enable_intl+set}" = set; then
2349 enableval="$enable_intl"
2350
2351 if test "$enableval" = yes; then
2352 ac_cv_use_intl='wxUSE_INTL=yes'
2353 else
2354 ac_cv_use_intl='wxUSE_INTL=no'
2355 fi
2356
2357else
2358
2359 LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
2360 if test "x$LINE" != x ; then
2361 eval "DEFAULT_$LINE"
2362 else
2363 no_cache=1
2364 fi
2365
2366 ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
2367
2368fi
2369
2370
2371 eval "$ac_cv_use_intl"
2372 if test "$no_cache" != 1; then
2373 echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
2374 fi
2375
2376 if test "$wxUSE_INTL" = yes; then
2377 echo "$ac_t""yes" 1>&6
2378 else
2379 echo "$ac_t""no" 1>&6
2380 fi
2381
2382
2383 echo $ac_n "checking "for --enable-config"""... $ac_c" 1>&6
7eef8db2 2384echo "configure:2385: checking "for --enable-config"" >&5
10f2d63a
VZ
2385 no_cache=0
2386 # Check whether --enable-config or --disable-config was given.
2387if test "${enable_config+set}" = set; then
2388 enableval="$enable_config"
2389
2390 if test "$enableval" = yes; then
2391 ac_cv_use_config='wxUSE_CONFIG=yes'
2392 else
2393 ac_cv_use_config='wxUSE_CONFIG=no'
2394 fi
2395
2396else
2397
2398 LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
2399 if test "x$LINE" != x ; then
2400 eval "DEFAULT_$LINE"
2401 else
2402 no_cache=1
2403 fi
2404
2405 ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
2406
2407fi
2408
2409
2410 eval "$ac_cv_use_config"
2411 if test "$no_cache" != 1; then
2412 echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
2413 fi
2414
2415 if test "$wxUSE_CONFIG" = yes; then
2416 echo "$ac_t""yes" 1>&6
2417 else
2418 echo "$ac_t""no" 1>&6
2419 fi
2420
2421
2422 echo $ac_n "checking "for --enable-sockets"""... $ac_c" 1>&6
7eef8db2 2423echo "configure:2424: checking "for --enable-sockets"" >&5
10f2d63a
VZ
2424 no_cache=0
2425 # Check whether --enable-sockets or --disable-sockets was given.
2426if test "${enable_sockets+set}" = set; then
2427 enableval="$enable_sockets"
2428
2429 if test "$enableval" = yes; then
2430 ac_cv_use_sockets='wxUSE_SOCKETS=yes'
2431 else
2432 ac_cv_use_sockets='wxUSE_SOCKETS=no'
2433 fi
2434
2435else
2436
2437 LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
2438 if test "x$LINE" != x ; then
2439 eval "DEFAULT_$LINE"
2440 else
2441 no_cache=1
2442 fi
2443
2444 ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
2445
2446fi
2447
2448
2449 eval "$ac_cv_use_sockets"
2450 if test "$no_cache" != 1; then
2451 echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
2452 fi
2453
2454 if test "$wxUSE_SOCKETS" = yes; then
2455 echo "$ac_t""yes" 1>&6
2456 else
2457 echo "$ac_t""no" 1>&6
2458 fi
2459
2460
2461 echo $ac_n "checking "for --enable-dialupman"""... $ac_c" 1>&6
7eef8db2 2462echo "configure:2463: checking "for --enable-dialupman"" >&5
10f2d63a
VZ
2463 no_cache=0
2464 # Check whether --enable-dialupman or --disable-dialupman was given.
2465if test "${enable_dialupman+set}" = set; then
2466 enableval="$enable_dialupman"
2467
2468 if test "$enableval" = yes; then
2469 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
2470 else
2471 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
2472 fi
2473
2474else
2475
2476 LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
2477 if test "x$LINE" != x ; then
2478 eval "DEFAULT_$LINE"
2479 else
2480 no_cache=1
2481 fi
2482
2483 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
2484
2485fi
2486
2487
2488 eval "$ac_cv_use_dialupman"
2489 if test "$no_cache" != 1; then
2490 echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
2491 fi
2492
2493 if test "$wxUSE_DIALUP_MANAGER" = yes; then
2494 echo "$ac_t""yes" 1>&6
2495 else
2496 echo "$ac_t""no" 1>&6
2497 fi
2498
2499
2500 echo $ac_n "checking "for --enable-ipc"""... $ac_c" 1>&6
7eef8db2 2501echo "configure:2502: checking "for --enable-ipc"" >&5
10f2d63a
VZ
2502 no_cache=0
2503 # Check whether --enable-ipc or --disable-ipc was given.
2504if test "${enable_ipc+set}" = set; then
2505 enableval="$enable_ipc"
2506
2507 if test "$enableval" = yes; then
2508 ac_cv_use_ipc='wxUSE_IPC=yes'
2509 else
2510 ac_cv_use_ipc='wxUSE_IPC=no'
2511 fi
2512
2513else
2514
2515 LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
2516 if test "x$LINE" != x ; then
2517 eval "DEFAULT_$LINE"
2518 else
2519 no_cache=1
2520 fi
2521
2522 ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
2523
2524fi
2525
2526
2527 eval "$ac_cv_use_ipc"
2528 if test "$no_cache" != 1; then
2529 echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
2530 fi
2531
2532 if test "$wxUSE_IPC" = yes; then
2533 echo "$ac_t""yes" 1>&6
2534 else
2535 echo "$ac_t""no" 1>&6
2536 fi
2537
2538
2539 echo $ac_n "checking "for --enable-apple_ieee"""... $ac_c" 1>&6
7eef8db2 2540echo "configure:2541: checking "for --enable-apple_ieee"" >&5
10f2d63a
VZ
2541 no_cache=0
2542 # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
2543if test "${enable_apple_ieee+set}" = set; then
2544 enableval="$enable_apple_ieee"
2545
2546 if test "$enableval" = yes; then
2547 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
2548 else
2549 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
2550 fi
2551
2552else
2553
2554 LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
2555 if test "x$LINE" != x ; then
2556 eval "DEFAULT_$LINE"
2557 else
2558 no_cache=1
2559 fi
2560
2561 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
2562
2563fi
2564
2565
2566 eval "$ac_cv_use_apple_ieee"
2567 if test "$no_cache" != 1; then
2568 echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
2569 fi
2570
2571 if test "$wxUSE_APPLE_IEEE" = yes; then
2572 echo "$ac_t""yes" 1>&6
2573 else
2574 echo "$ac_t""no" 1>&6
2575 fi
2576
2577
2578 echo $ac_n "checking "for --enable-timedate"""... $ac_c" 1>&6
7eef8db2 2579echo "configure:2580: checking "for --enable-timedate"" >&5
10f2d63a
VZ
2580 no_cache=0
2581 # Check whether --enable-timedate or --disable-timedate was given.
2582if test "${enable_timedate+set}" = set; then
2583 enableval="$enable_timedate"
2584
2585 if test "$enableval" = yes; then
2586 ac_cv_use_timedate='wxUSE_TIMEDATE=yes'
2587 else
2588 ac_cv_use_timedate='wxUSE_TIMEDATE=no'
2589 fi
2590
2591else
2592
2593 LINE=`grep "wxUSE_TIMEDATE" ${wx_arg_cache_file}`
2594 if test "x$LINE" != x ; then
2595 eval "DEFAULT_$LINE"
2596 else
2597 no_cache=1
2598 fi
2599
2600 ac_cv_use_timedate='wxUSE_TIMEDATE='$DEFAULT_wxUSE_TIMEDATE
2601
2602fi
2603
2604
2605 eval "$ac_cv_use_timedate"
2606 if test "$no_cache" != 1; then
2607 echo $ac_cv_use_timedate >> ${wx_arg_cache_file}.tmp
2608 fi
2609
2610 if test "$wxUSE_TIMEDATE" = yes; then
2611 echo "$ac_t""yes" 1>&6
2612 else
2613 echo "$ac_t""no" 1>&6
2614 fi
2615
2616
2617 echo $ac_n "checking "for --enable-wave"""... $ac_c" 1>&6
7eef8db2 2618echo "configure:2619: checking "for --enable-wave"" >&5
10f2d63a
VZ
2619 no_cache=0
2620 # Check whether --enable-wave or --disable-wave was given.
2621if test "${enable_wave+set}" = set; then
2622 enableval="$enable_wave"
2623
2624 if test "$enableval" = yes; then
2625 ac_cv_use_wave='wxUSE_WAVE=yes'
2626 else
2627 ac_cv_use_wave='wxUSE_WAVE=no'
2628 fi
2629
2630else
2631
2632 LINE=`grep "wxUSE_WAVE" ${wx_arg_cache_file}`
2633 if test "x$LINE" != x ; then
2634 eval "DEFAULT_$LINE"
2635 else
2636 no_cache=1
2637 fi
2638
2639 ac_cv_use_wave='wxUSE_WAVE='$DEFAULT_wxUSE_WAVE
2640
2641fi
2642
2643
2644 eval "$ac_cv_use_wave"
2645 if test "$no_cache" != 1; then
2646 echo $ac_cv_use_wave >> ${wx_arg_cache_file}.tmp
2647 fi
2648
2649 if test "$wxUSE_WAVE" = yes; then
2650 echo "$ac_t""yes" 1>&6
2651 else
2652 echo "$ac_t""no" 1>&6
2653 fi
2654
2655
2656 echo $ac_n "checking "for --enable-fraction"""... $ac_c" 1>&6
7eef8db2 2657echo "configure:2658: checking "for --enable-fraction"" >&5
10f2d63a
VZ
2658 no_cache=0
2659 # Check whether --enable-fraction or --disable-fraction was given.
2660if test "${enable_fraction+set}" = set; then
2661 enableval="$enable_fraction"
2662
2663 if test "$enableval" = yes; then
2664 ac_cv_use_fraction='wxUSE_FRACTION=yes'
2665 else
2666 ac_cv_use_fraction='wxUSE_FRACTION=no'
2667 fi
2668
2669else
2670
2671 LINE=`grep "wxUSE_FRACTION" ${wx_arg_cache_file}`
2672 if test "x$LINE" != x ; then
2673 eval "DEFAULT_$LINE"
2674 else
2675 no_cache=1
2676 fi
2677
2678 ac_cv_use_fraction='wxUSE_FRACTION='$DEFAULT_wxUSE_FRACTION
2679
2680fi
2681
2682
2683 eval "$ac_cv_use_fraction"
2684 if test "$no_cache" != 1; then
2685 echo $ac_cv_use_fraction >> ${wx_arg_cache_file}.tmp
2686 fi
2687
2688 if test "$wxUSE_FRACTION" = yes; then
2689 echo "$ac_t""yes" 1>&6
2690 else
2691 echo "$ac_t""no" 1>&6
2692 fi
2693
2694
2695 echo $ac_n "checking "for --enable-dynlib"""... $ac_c" 1>&6
7eef8db2 2696echo "configure:2697: checking "for --enable-dynlib"" >&5
10f2d63a
VZ
2697 no_cache=0
2698 # Check whether --enable-dynlib or --disable-dynlib was given.
2699if test "${enable_dynlib+set}" = set; then
2700 enableval="$enable_dynlib"
2701
2702 if test "$enableval" = yes; then
2703 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
2704 else
2705 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
2706 fi
2707
2708else
2709
2710 LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
2711 if test "x$LINE" != x ; then
2712 eval "DEFAULT_$LINE"
2713 else
2714 no_cache=1
2715 fi
2716
2717 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
2718
2719fi
2720
2721
2722 eval "$ac_cv_use_dynlib"
2723 if test "$no_cache" != 1; then
2724 echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
2725 fi
2726
2727 if test "$wxUSE_DYNLIB_CLASS" = yes; then
2728 echo "$ac_t""yes" 1>&6
2729 else
2730 echo "$ac_t""no" 1>&6
2731 fi
2732
2733
2734 echo $ac_n "checking "for --enable-longlong"""... $ac_c" 1>&6
7eef8db2 2735echo "configure:2736: checking "for --enable-longlong"" >&5
10f2d63a
VZ
2736 no_cache=0
2737 # Check whether --enable-longlong or --disable-longlong was given.
2738if test "${enable_longlong+set}" = set; then
2739 enableval="$enable_longlong"
2740
2741 if test "$enableval" = yes; then
2742 ac_cv_use_longlong='wxUSE_LONGLONG=yes'
2743 else
2744 ac_cv_use_longlong='wxUSE_LONGLONG=no'
2745 fi
2746
2747else
2748
2749 LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
2750 if test "x$LINE" != x ; then
2751 eval "DEFAULT_$LINE"
2752 else
2753 no_cache=1
2754 fi
2755
2756 ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
2757
2758fi
2759
2760
2761 eval "$ac_cv_use_longlong"
2762 if test "$no_cache" != 1; then
2763 echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
2764 fi
2765
2766 if test "$wxUSE_LONGLONG" = yes; then
2767 echo "$ac_t""yes" 1>&6
2768 else
2769 echo "$ac_t""no" 1>&6
2770 fi
2771
2772
2773 echo $ac_n "checking "for --enable-log"""... $ac_c" 1>&6
7eef8db2 2774echo "configure:2775: checking "for --enable-log"" >&5
10f2d63a
VZ
2775 no_cache=0
2776 # Check whether --enable-log or --disable-log was given.
2777if test "${enable_log+set}" = set; then
2778 enableval="$enable_log"
2779
2780 if test "$enableval" = yes; then
2781 ac_cv_use_log='wxUSE_LOG=yes'
2782 else
2783 ac_cv_use_log='wxUSE_LOG=no'
2784 fi
2785
2786else
2787
2788 LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
2789 if test "x$LINE" != x ; then
2790 eval "DEFAULT_$LINE"
2791 else
2792 no_cache=1
2793 fi
2794
2795 ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
2796
2797fi
2798
2799
2800 eval "$ac_cv_use_log"
2801 if test "$no_cache" != 1; then
2802 echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
2803 fi
2804
2805 if test "$wxUSE_LOG" = yes; then
2806 echo "$ac_t""yes" 1>&6
2807 else
2808 echo "$ac_t""no" 1>&6
2809 fi
2810
2811
2812 echo $ac_n "checking "for --enable-streams"""... $ac_c" 1>&6
7eef8db2 2813echo "configure:2814: checking "for --enable-streams"" >&5
10f2d63a
VZ
2814 no_cache=0
2815 # Check whether --enable-streams or --disable-streams was given.
2816if test "${enable_streams+set}" = set; then
2817 enableval="$enable_streams"
2818
2819 if test "$enableval" = yes; then
2820 ac_cv_use_streams='wxUSE_STREAMS=yes'
2821 else
2822 ac_cv_use_streams='wxUSE_STREAMS=no'
2823 fi
2824
2825else
2826
2827 LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
2828 if test "x$LINE" != x ; then
2829 eval "DEFAULT_$LINE"
2830 else
2831 no_cache=1
2832 fi
2833
2834 ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
2835
2836fi
2837
2838
2839 eval "$ac_cv_use_streams"
2840 if test "$no_cache" != 1; then
2841 echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
2842 fi
2843
2844 if test "$wxUSE_STREAMS" = yes; then
2845 echo "$ac_t""yes" 1>&6
2846 else
2847 echo "$ac_t""no" 1>&6
2848 fi
2849
2850
2851 echo $ac_n "checking "for --enable-file"""... $ac_c" 1>&6
7eef8db2 2852echo "configure:2853: checking "for --enable-file"" >&5
10f2d63a
VZ
2853 no_cache=0
2854 # Check whether --enable-file or --disable-file was given.
2855if test "${enable_file+set}" = set; then
2856 enableval="$enable_file"
2857
2858 if test "$enableval" = yes; then
2859 ac_cv_use_file='wxUSE_FILE=yes'
2860 else
2861 ac_cv_use_file='wxUSE_FILE=no'
2862 fi
2863
2864else
2865
2866 LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
2867 if test "x$LINE" != x ; then
2868 eval "DEFAULT_$LINE"
2869 else
2870 no_cache=1
2871 fi
2872
2873 ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
2874
2875fi
2876
2877
2878 eval "$ac_cv_use_file"
2879 if test "$no_cache" != 1; then
2880 echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
2881 fi
2882
2883 if test "$wxUSE_FILE" = yes; then
2884 echo "$ac_t""yes" 1>&6
2885 else
2886 echo "$ac_t""no" 1>&6
2887 fi
2888
2889
2890 echo $ac_n "checking "for --enable-textfile"""... $ac_c" 1>&6
7eef8db2 2891echo "configure:2892: checking "for --enable-textfile"" >&5
10f2d63a
VZ
2892 no_cache=0
2893 # Check whether --enable-textfile or --disable-textfile was given.
2894if test "${enable_textfile+set}" = set; then
2895 enableval="$enable_textfile"
2896
2897 if test "$enableval" = yes; then
2898 ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
2899 else
2900 ac_cv_use_textfile='wxUSE_TEXTFILE=no'
2901 fi
2902
2903else
2904
2905 LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
2906 if test "x$LINE" != x ; then
2907 eval "DEFAULT_$LINE"
2908 else
2909 no_cache=1
2910 fi
2911
2912 ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
2913
2914fi
2915
2916
2917 eval "$ac_cv_use_textfile"
2918 if test "$no_cache" != 1; then
2919 echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
2920 fi
2921
2922 if test "$wxUSE_TEXTFILE" = yes; then
2923 echo "$ac_t""yes" 1>&6
2924 else
2925 echo "$ac_t""no" 1>&6
2926 fi
2927
2928
2929 echo $ac_n "checking "for --enable-unicode"""... $ac_c" 1>&6
7eef8db2 2930echo "configure:2931: checking "for --enable-unicode"" >&5
10f2d63a
VZ
2931 no_cache=0
2932 # Check whether --enable-unicode or --disable-unicode was given.
2933if test "${enable_unicode+set}" = set; then
2934 enableval="$enable_unicode"
2935
2936 if test "$enableval" = yes; then
2937 ac_cv_use_unicode='wxUSE_UNICODE=yes'
2938 else
2939 ac_cv_use_unicode='wxUSE_UNICODE=no'
2940 fi
2941
2942else
2943
2944 LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
2945 if test "x$LINE" != x ; then
2946 eval "DEFAULT_$LINE"
2947 else
2948 no_cache=1
2949 fi
2950
2951 ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
2952
2953fi
2954
2955
2956 eval "$ac_cv_use_unicode"
2957 if test "$no_cache" != 1; then
2958 echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
2959 fi
2960
2961 if test "$wxUSE_UNICODE" = yes; then
2962 echo "$ac_t""yes" 1>&6
2963 else
2964 echo "$ac_t""no" 1>&6
2965 fi
2966
2967
2968 echo $ac_n "checking "for --enable-wcsrtombs"""... $ac_c" 1>&6
7eef8db2 2969echo "configure:2970: checking "for --enable-wcsrtombs"" >&5
10f2d63a
VZ
2970 no_cache=0
2971 # Check whether --enable-wcsrtombs or --disable-wcsrtombs was given.
2972if test "${enable_wcsrtombs+set}" = set; then
2973 enableval="$enable_wcsrtombs"
2974
2975 if test "$enableval" = yes; then
2976 ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS=yes'
2977 else
2978 ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS=no'
2979 fi
2980
2981else
2982
2983 LINE=`grep "wxUSE_WCSRTOMBS" ${wx_arg_cache_file}`
2984 if test "x$LINE" != x ; then
2985 eval "DEFAULT_$LINE"
2986 else
2987 no_cache=1
2988 fi
2989
2990 ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS='$DEFAULT_wxUSE_WCSRTOMBS
2991
2992fi
2993
2994
2995 eval "$ac_cv_use_wcsrtombs"
2996 if test "$no_cache" != 1; then
2997 echo $ac_cv_use_wcsrtombs >> ${wx_arg_cache_file}.tmp
2998 fi
2999
3000 if test "$wxUSE_WCSRTOMBS" = yes; then
3001 echo "$ac_t""yes" 1>&6
3002 else
3003 echo "$ac_t""no" 1>&6
3004 fi
3005
3006
3007 echo $ac_n "checking "for --enable-wxprintfv"""... $ac_c" 1>&6
7eef8db2 3008echo "configure:3009: checking "for --enable-wxprintfv"" >&5
10f2d63a
VZ
3009 no_cache=0
3010 # Check whether --enable-wxprintfv or --disable-wxprintfv was given.
3011if test "${enable_wxprintfv+set}" = set; then
3012 enableval="$enable_wxprintfv"
3013
3014 if test "$enableval" = yes; then
3015 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes'
3016 else
3017 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no'
3018 fi
3019
3020else
3021
3022 LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}`
3023 if test "x$LINE" != x ; then
3024 eval "DEFAULT_$LINE"
3025 else
3026 no_cache=1
3027 fi
3028
3029 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF
3030
3031fi
3032
3033
3034 eval "$ac_cv_use_wxprintfv"
3035 if test "$no_cache" != 1; then
3036 echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp
3037 fi
3038
3039 if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then
3040 echo "$ac_t""yes" 1>&6
3041 else
3042 echo "$ac_t""no" 1>&6
3043 fi
3044
3045
3046 echo $ac_n "checking "for --enable-joystick"""... $ac_c" 1>&6
7eef8db2 3047echo "configure:3048: checking "for --enable-joystick"" >&5
10f2d63a
VZ
3048 no_cache=0
3049 # Check whether --enable-joystick or --disable-joystick was given.
3050if test "${enable_joystick+set}" = set; then
3051 enableval="$enable_joystick"
3052
3053 if test "$enableval" = yes; then
3054 ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
3055 else
3056 ac_cv_use_joystick='wxUSE_JOYSTICK=no'
3057 fi
3058
3059else
3060
3061 LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
3062 if test "x$LINE" != x ; then
3063 eval "DEFAULT_$LINE"
3064 else
3065 no_cache=1
3066 fi
3067
3068 ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
3069
3070fi
3071
3072
3073 eval "$ac_cv_use_joystick"
3074 if test "$no_cache" != 1; then
3075 echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
3076 fi
3077
3078 if test "$wxUSE_JOYSTICK" = yes; then
3079 echo "$ac_t""yes" 1>&6
3080 else
3081 echo "$ac_t""no" 1>&6
3082 fi
3083
3084
3085 echo $ac_n "checking "for --enable-std_iostreams"""... $ac_c" 1>&6
7eef8db2 3086echo "configure:3087: checking "for --enable-std_iostreams"" >&5
10f2d63a
VZ
3087 no_cache=0
3088 # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
3089if test "${enable_std_iostreams+set}" = set; then
3090 enableval="$enable_std_iostreams"
3091
3092 if test "$enableval" = yes; then
3093 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
3094 else
3095 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
3096 fi
3097
3098else
3099
3100 LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
3101 if test "x$LINE" != x ; then
3102 eval "DEFAULT_$LINE"
3103 else
3104 no_cache=1
3105 fi
3106
3107 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
3108
3109fi
3110
3111
3112 eval "$ac_cv_use_std_iostreams"
3113 if test "$no_cache" != 1; then
3114 echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
3115 fi
3116
3117 if test "$wxUSE_STD_IOSTREAM" = yes; then
3118 echo "$ac_t""yes" 1>&6
3119 else
3120 echo "$ac_t""no" 1>&6
3121 fi
3122
3123
3124 echo $ac_n "checking "for --enable-fs_inet"""... $ac_c" 1>&6
7eef8db2 3125echo "configure:3126: checking "for --enable-fs_inet"" >&5
10f2d63a
VZ
3126 no_cache=0
3127 # Check whether --enable-fs_inet or --disable-fs_inet was given.
3128if test "${enable_fs_inet+set}" = set; then
3129 enableval="$enable_fs_inet"
3130
3131 if test "$enableval" = yes; then
3132 ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
3133 else
3134 ac_cv_use_fs_inet='wxUSE_FS_INET=no'
3135 fi
3136
3137else
3138
3139 LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
3140 if test "x$LINE" != x ; then
3141 eval "DEFAULT_$LINE"
3142 else
3143 no_cache=1
3144 fi
3145
3146 ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
3147
3148fi
3149
3150
3151 eval "$ac_cv_use_fs_inet"
3152 if test "$no_cache" != 1; then
3153 echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
3154 fi
3155
3156 if test "$wxUSE_FS_INET" = yes; then
3157 echo "$ac_t""yes" 1>&6
3158 else
3159 echo "$ac_t""no" 1>&6
3160 fi
3161
3162
3163 echo $ac_n "checking "for --enable-fs_zip"""... $ac_c" 1>&6
7eef8db2 3164echo "configure:3165: checking "for --enable-fs_zip"" >&5
10f2d63a
VZ
3165 no_cache=0
3166 # Check whether --enable-fs_zip or --disable-fs_zip was given.
3167if test "${enable_fs_zip+set}" = set; then
3168 enableval="$enable_fs_zip"
3169
3170 if test "$enableval" = yes; then
3171 ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
3172 else
3173 ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
3174 fi
3175
3176else
3177
3178 LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
3179 if test "x$LINE" != x ; then
3180 eval "DEFAULT_$LINE"
3181 else
3182 no_cache=1
3183 fi
3184
3185 ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
3186
3187fi
3188
3189
3190 eval "$ac_cv_use_fs_zip"
3191 if test "$no_cache" != 1; then
3192 echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
3193 fi
3194
3195 if test "$wxUSE_FS_ZIP" = yes; then
3196 echo "$ac_t""yes" 1>&6
3197 else
3198 echo "$ac_t""no" 1>&6
3199 fi
3200
3201
3202 echo $ac_n "checking "for --enable-zipstream"""... $ac_c" 1>&6
7eef8db2 3203echo "configure:3204: checking "for --enable-zipstream"" >&5
10f2d63a
VZ
3204 no_cache=0
3205 # Check whether --enable-zipstream or --disable-zipstream was given.
3206if test "${enable_zipstream+set}" = set; then
3207 enableval="$enable_zipstream"
3208
3209 if test "$enableval" = yes; then
3210 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
3211 else
3212 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
3213 fi
3214
3215else
3216
3217 LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
3218 if test "x$LINE" != x ; then
3219 eval "DEFAULT_$LINE"
3220 else
3221 no_cache=1
3222 fi
3223
3224 ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
3225
3226fi
3227
3228
3229 eval "$ac_cv_use_zipstream"
3230 if test "$no_cache" != 1; then
3231 echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
3232 fi
3233
3234 if test "$wxUSE_ZIPSTREAM" = yes; then
3235 echo "$ac_t""yes" 1>&6
3236 else
3237 echo "$ac_t""no" 1>&6
3238 fi
3239
3240
3241
3242
3243 echo $ac_n "checking "for --enable-threads"""... $ac_c" 1>&6
7eef8db2 3244echo "configure:3245: checking "for --enable-threads"" >&5
10f2d63a
VZ
3245 no_cache=0
3246 # Check whether --enable-threads or --disable-threads was given.
3247if test "${enable_threads+set}" = set; then
3248 enableval="$enable_threads"
3249
3250 if test "$enableval" = yes; then
3251 ac_cv_use_threads='wxUSE_THREADS=yes'
3252 else
3253 ac_cv_use_threads='wxUSE_THREADS=no'
3254 fi
3255
3256else
3257
3258 LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
3259 if test "x$LINE" != x ; then
3260 eval "DEFAULT_$LINE"
3261 else
3262 no_cache=1
3263 fi
3264
3265 ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
3266
3267fi
3268
3269
3270 eval "$ac_cv_use_threads"
3271 if test "$no_cache" != 1; then
3272 echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
3273 fi
3274
3275 if test "$wxUSE_THREADS" = yes; then
3276 echo "$ac_t""yes" 1>&6
3277 else
3278 echo "$ac_t""no" 1>&6
3279 fi
3280
3281
3282 echo $ac_n "checking "for --enable-serial"""... $ac_c" 1>&6
7eef8db2 3283echo "configure:3284: checking "for --enable-serial"" >&5
10f2d63a
VZ
3284 no_cache=0
3285 # Check whether --enable-serial or --disable-serial was given.
3286if test "${enable_serial+set}" = set; then
3287 enableval="$enable_serial"
3288
3289 if test "$enableval" = yes; then
3290 ac_cv_use_serial='wxUSE_SERIAL=yes'
3291 else
3292 ac_cv_use_serial='wxUSE_SERIAL=no'
3293 fi
3294
3295else
3296
3297 LINE=`grep "wxUSE_SERIAL" ${wx_arg_cache_file}`
3298 if test "x$LINE" != x ; then
3299 eval "DEFAULT_$LINE"
3300 else
3301 no_cache=1
3302 fi
3303
3304 ac_cv_use_serial='wxUSE_SERIAL='$DEFAULT_wxUSE_SERIAL
3305
3306fi
3307
3308
3309 eval "$ac_cv_use_serial"
3310 if test "$no_cache" != 1; then
3311 echo $ac_cv_use_serial >> ${wx_arg_cache_file}.tmp
3312 fi
3313
3314 if test "$wxUSE_SERIAL" = yes; then
3315 echo "$ac_t""yes" 1>&6
3316 else
3317 echo "$ac_t""no" 1>&6
3318 fi
3319
3320
3321
3322
3323 echo $ac_n "checking "for --enable-docview"""... $ac_c" 1>&6
7eef8db2 3324echo "configure:3325: checking "for --enable-docview"" >&5
10f2d63a
VZ
3325 no_cache=0
3326 # Check whether --enable-docview or --disable-docview was given.
3327if test "${enable_docview+set}" = set; then
3328 enableval="$enable_docview"
3329
3330 if test "$enableval" = yes; then
3331 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
3332 else
3333 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
3334 fi
3335
3336else
3337
3338 LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
3339 if test "x$LINE" != x ; then
3340 eval "DEFAULT_$LINE"
3341 else
3342 no_cache=1
3343 fi
3344
3345 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
3346
3347fi
3348
3349
3350 eval "$ac_cv_use_docview"
3351 if test "$no_cache" != 1; then
3352 echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
3353 fi
3354
3355 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
3356 echo "$ac_t""yes" 1>&6
3357 else
3358 echo "$ac_t""no" 1>&6
3359 fi
3360
3361
3362 echo $ac_n "checking "for --enable-help"""... $ac_c" 1>&6
7eef8db2 3363echo "configure:3364: checking "for --enable-help"" >&5
10f2d63a
VZ
3364 no_cache=0
3365 # Check whether --enable-help or --disable-help was given.
3366if test "${enable_help+set}" = set; then
3367 enableval="$enable_help"
3368
3369 if test "$enableval" = yes; then
3370 ac_cv_use_help='wxUSE_HELP=yes'
3371 else
3372 ac_cv_use_help='wxUSE_HELP=no'
3373 fi
3374
3375else
3376
3377 LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
3378 if test "x$LINE" != x ; then
3379 eval "DEFAULT_$LINE"
3380 else
3381 no_cache=1
3382 fi
3383
3384 ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
3385
3386fi
3387
3388
3389 eval "$ac_cv_use_help"
3390 if test "$no_cache" != 1; then
3391 echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
3392 fi
3393
3394 if test "$wxUSE_HELP" = yes; then
3395 echo "$ac_t""yes" 1>&6
3396 else
3397 echo "$ac_t""no" 1>&6
3398 fi
3399
3400
3401 echo $ac_n "checking "for --enable-constraints"""... $ac_c" 1>&6
7eef8db2 3402echo "configure:3403: checking "for --enable-constraints"" >&5
10f2d63a
VZ
3403 no_cache=0
3404 # Check whether --enable-constraints or --disable-constraints was given.
3405if test "${enable_constraints+set}" = set; then
3406 enableval="$enable_constraints"
3407
3408 if test "$enableval" = yes; then
3409 ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
3410 else
3411 ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
3412 fi
3413
3414else
3415
3416 LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
3417 if test "x$LINE" != x ; then
3418 eval "DEFAULT_$LINE"
3419 else
3420 no_cache=1
3421 fi
3422
3423 ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
3424
3425fi
3426
3427
3428 eval "$ac_cv_use_constraints"
3429 if test "$no_cache" != 1; then
3430 echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
3431 fi
3432
3433 if test "$wxUSE_CONSTRAINTS" = yes; then
3434 echo "$ac_t""yes" 1>&6
3435 else
3436 echo "$ac_t""no" 1>&6
3437 fi
3438
3439
3440 echo $ac_n "checking "for --enable-printarch"""... $ac_c" 1>&6
7eef8db2 3441echo "configure:3442: checking "for --enable-printarch"" >&5
10f2d63a
VZ
3442 no_cache=0
3443 # Check whether --enable-printarch or --disable-printarch was given.
3444if test "${enable_printarch+set}" = set; then
3445 enableval="$enable_printarch"
3446
3447 if test "$enableval" = yes; then
3448 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
3449 else
3450 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
3451 fi
3452
3453else
3454
3455 LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
3456 if test "x$LINE" != x ; then
3457 eval "DEFAULT_$LINE"
3458 else
3459 no_cache=1
3460 fi
3461
3462 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
3463
3464fi
3465
3466
3467 eval "$ac_cv_use_printarch"
3468 if test "$no_cache" != 1; then
3469 echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
3470 fi
3471
3472 if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
3473 echo "$ac_t""yes" 1>&6
3474 else
3475 echo "$ac_t""no" 1>&6
3476 fi
3477
3478
3479 echo $ac_n "checking "for --enable-mdi"""... $ac_c" 1>&6
7eef8db2 3480echo "configure:3481: checking "for --enable-mdi"" >&5
10f2d63a
VZ
3481 no_cache=0
3482 # Check whether --enable-mdi or --disable-mdi was given.
3483if test "${enable_mdi+set}" = set; then
3484 enableval="$enable_mdi"
3485
3486 if test "$enableval" = yes; then
3487 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=yes'
3488 else
3489 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=no'
3490 fi
3491
3492else
3493
3494 LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
3495 if test "x$LINE" != x ; then
3496 eval "DEFAULT_$LINE"
3497 else
3498 no_cache=1
3499 fi
3500
3501 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
3502
3503fi
3504
3505
3506 eval "$ac_cv_use_mdi"
3507 if test "$no_cache" != 1; then
3508 echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
3509 fi
3510
3511 if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
3512 echo "$ac_t""yes" 1>&6
3513 else
3514 echo "$ac_t""no" 1>&6
3515 fi
3516
3517
3518
3519 echo $ac_n "checking "for --enable-postscript"""... $ac_c" 1>&6
7eef8db2 3520echo "configure:3521: checking "for --enable-postscript"" >&5
10f2d63a
VZ
3521 no_cache=0
3522 # Check whether --enable-postscript or --disable-postscript was given.
3523if test "${enable_postscript+set}" = set; then
3524 enableval="$enable_postscript"
3525
3526 if test "$enableval" = yes; then
3527 ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
3528 else
3529 ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
3530 fi
3531
3532else
3533
3534 LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
3535 if test "x$LINE" != x ; then
3536 eval "DEFAULT_$LINE"
3537 else
3538 no_cache=1
3539 fi
3540
3541 ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
3542
3543fi
3544
3545
3546 eval "$ac_cv_use_postscript"
3547 if test "$no_cache" != 1; then
3548 echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
3549 fi
3550
3551 if test "$wxUSE_POSTSCRIPT" = yes; then
3552 echo "$ac_t""yes" 1>&6
3553 else
3554 echo "$ac_t""no" 1>&6
3555 fi
3556
3557
3558
3559
3560 echo $ac_n "checking "for --enable-prologio"""... $ac_c" 1>&6
7eef8db2 3561echo "configure:3562: checking "for --enable-prologio"" >&5
10f2d63a
VZ
3562 no_cache=0
3563 # Check whether --enable-prologio or --disable-prologio was given.
3564if test "${enable_prologio+set}" = set; then
3565 enableval="$enable_prologio"
3566
3567 if test "$enableval" = yes; then
3568 ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
3569 else
3570 ac_cv_use_prologio='wxUSE_PROLOGIO=no'
3571 fi
3572
3573else
3574
3575 LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
3576 if test "x$LINE" != x ; then
3577 eval "DEFAULT_$LINE"
3578 else
3579 no_cache=1
3580 fi
3581
3582 ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
3583
3584fi
3585
3586
3587 eval "$ac_cv_use_prologio"
3588 if test "$no_cache" != 1; then
3589 echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
3590 fi
3591
3592 if test "$wxUSE_PROLOGIO" = yes; then
3593 echo "$ac_t""yes" 1>&6
3594 else
3595 echo "$ac_t""no" 1>&6
3596 fi
3597
3598
3599 echo $ac_n "checking "for --enable-resources"""... $ac_c" 1>&6
7eef8db2 3600echo "configure:3601: checking "for --enable-resources"" >&5
10f2d63a
VZ
3601 no_cache=0
3602 # Check whether --enable-resources or --disable-resources was given.
3603if test "${enable_resources+set}" = set; then
3604 enableval="$enable_resources"
3605
3606 if test "$enableval" = yes; then
3607 ac_cv_use_resources='wxUSE_RESOURCES=yes'
3608 else
3609 ac_cv_use_resources='wxUSE_RESOURCES=no'
3610 fi
3611
3612else
3613
3614 LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
3615 if test "x$LINE" != x ; then
3616 eval "DEFAULT_$LINE"
3617 else
3618 no_cache=1
3619 fi
3620
3621 ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
3622
3623fi
3624
3625
3626 eval "$ac_cv_use_resources"
3627 if test "$no_cache" != 1; then
3628 echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
3629 fi
3630
3631 if test "$wxUSE_RESOURCES" = yes; then
3632 echo "$ac_t""yes" 1>&6
3633 else
3634 echo "$ac_t""no" 1>&6
3635 fi
3636
3637
3638
3639 echo $ac_n "checking "for --enable-xresources"""... $ac_c" 1>&6
7eef8db2 3640echo "configure:3641: checking "for --enable-xresources"" >&5
10f2d63a
VZ
3641 no_cache=0
3642 # Check whether --enable-xresources or --disable-xresources was given.
3643if test "${enable_xresources+set}" = set; then
3644 enableval="$enable_xresources"
3645
3646 if test "$enableval" = yes; then
3647 ac_cv_use_xresources='wxUSE_X_RESOURCES=yes'
3648 else
3649 ac_cv_use_xresources='wxUSE_X_RESOURCES=no'
3650 fi
3651
3652else
3653
3654 LINE=`grep "wxUSE_X_RESOURCES" ${wx_arg_cache_file}`
3655 if test "x$LINE" != x ; then
3656 eval "DEFAULT_$LINE"
3657 else
3658 no_cache=1
3659 fi
3660
3661 ac_cv_use_xresources='wxUSE_X_RESOURCES='$DEFAULT_wxUSE_X_RESOURCES
3662
3663fi
3664
3665
3666 eval "$ac_cv_use_xresources"
3667 if test "$no_cache" != 1; then
3668 echo $ac_cv_use_xresources >> ${wx_arg_cache_file}.tmp
3669 fi
3670
3671 if test "$wxUSE_X_RESOURCES" = yes; then
3672 echo "$ac_t""yes" 1>&6
3673 else
3674 echo "$ac_t""no" 1>&6
3675 fi
3676
3677
3678
3679
3680 echo $ac_n "checking "for --enable-clipboard"""... $ac_c" 1>&6
7eef8db2 3681echo "configure:3682: checking "for --enable-clipboard"" >&5
10f2d63a
VZ
3682 no_cache=0
3683 # Check whether --enable-clipboard or --disable-clipboard was given.
3684if test "${enable_clipboard+set}" = set; then
3685 enableval="$enable_clipboard"
3686
3687 if test "$enableval" = yes; then
3688 ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
3689 else
3690 ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
3691 fi
3692
3693else
3694
3695 LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
3696 if test "x$LINE" != x ; then
3697 eval "DEFAULT_$LINE"
3698 else
3699 no_cache=1
3700 fi
3701
3702 ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
3703
3704fi
3705
3706
3707 eval "$ac_cv_use_clipboard"
3708 if test "$no_cache" != 1; then
3709 echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
3710 fi
3711
3712 if test "$wxUSE_CLIPBOARD" = yes; then
3713 echo "$ac_t""yes" 1>&6
3714 else
3715 echo "$ac_t""no" 1>&6
3716 fi
3717
3718
3719 echo $ac_n "checking "for --enable-dnd"""... $ac_c" 1>&6
7eef8db2 3720echo "configure:3721: checking "for --enable-dnd"" >&5
10f2d63a
VZ
3721 no_cache=0
3722 # Check whether --enable-dnd or --disable-dnd was given.
3723if test "${enable_dnd+set}" = set; then
3724 enableval="$enable_dnd"
3725
3726 if test "$enableval" = yes; then
3727 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
3728 else
3729 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
3730 fi
3731
3732else
3733
3734 LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
3735 if test "x$LINE" != x ; then
3736 eval "DEFAULT_$LINE"
3737 else
3738 no_cache=1
3739 fi
3740
3741 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
3742
3743fi
3744
3745
3746 eval "$ac_cv_use_dnd"
3747 if test "$no_cache" != 1; then
3748 echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
3749 fi
3750
3751 if test "$wxUSE_DRAG_AND_DROP" = yes; then
3752 echo "$ac_t""yes" 1>&6
3753 else
3754 echo "$ac_t""no" 1>&6
3755 fi
3756
3757
3758
3759 echo $ac_n "checking "for --enable-wxtree"""... $ac_c" 1>&6
7eef8db2 3760echo "configure:3761: checking "for --enable-wxtree"" >&5
10f2d63a
VZ
3761 no_cache=0
3762 # Check whether --enable-wxtree or --disable-wxtree was given.
3763if test "${enable_wxtree+set}" = set; then
3764 enableval="$enable_wxtree"
3765
3766 if test "$enableval" = yes; then
3767 ac_cv_use_wxtree='wxUSE_WXTREE=yes'
3768 else
3769 ac_cv_use_wxtree='wxUSE_WXTREE=no'
3770 fi
3771
3772else
3773
3774 LINE=`grep "wxUSE_WXTREE" ${wx_arg_cache_file}`
3775 if test "x$LINE" != x ; then
3776 eval "DEFAULT_$LINE"
3777 else
3778 no_cache=1
3779 fi
3780
3781 ac_cv_use_wxtree='wxUSE_WXTREE='$DEFAULT_wxUSE_WXTREE
3782
3783fi
3784
3785
3786 eval "$ac_cv_use_wxtree"
3787 if test "$no_cache" != 1; then
3788 echo $ac_cv_use_wxtree >> ${wx_arg_cache_file}.tmp
3789 fi
3790
3791 if test "$wxUSE_WXTREE" = yes; then
3792 echo "$ac_t""yes" 1>&6
3793 else
3794 echo "$ac_t""no" 1>&6
3795 fi
3796
3797
3798
3799
3800 echo $ac_n "checking "for --enable-controls"""... $ac_c" 1>&6
7eef8db2 3801echo "configure:3802: checking "for --enable-controls"" >&5
10f2d63a
VZ
3802 no_cache=0
3803 # Check whether --enable-controls or --disable-controls was given.
3804if test "${enable_controls+set}" = set; then
3805 enableval="$enable_controls"
3806
3807 if test "$enableval" = yes; then
3808 ac_cv_use_controls='wxUSE_CONTROLS=yes'
3809 else
3810 ac_cv_use_controls='wxUSE_CONTROLS=no'
3811 fi
3812
3813else
3814
3815 LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
3816 if test "x$LINE" != x ; then
3817 eval "DEFAULT_$LINE"
3818 else
3819 no_cache=1
3820 fi
3821
3822 ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
3823
3824fi
3825
3826
3827 eval "$ac_cv_use_controls"
3828 if test "$no_cache" != 1; then
3829 echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
3830 fi
3831
3832 if test "$wxUSE_CONTROLS" = yes; then
3833 echo "$ac_t""yes" 1>&6
3834 else
3835 echo "$ac_t""no" 1>&6
3836 fi
3837
3838
3839if test "$wxUSE_CONTROLS" = "yes"; then
3840 DEFAULT_wxUSE_ACCEL=yes
3841 DEFAULT_wxUSE_CARET=yes
3842 DEFAULT_wxUSE_COMBOBOX=yes
3843 DEFAULT_wxUSE_BMPBUTTON=yes
3844 DEFAULT_wxUSE_CHECKBOX=yes
3845 DEFAULT_wxUSE_CHECKLISTBOX=yes
3846 DEFAULT_wxUSE_CHOICE=yes
3847 DEFAULT_wxUSE_GAUGE=yes
3848 DEFAULT_wxUSE_GRID=yes
fc9c7c09 3849 DEFAULT_wxUSE_NEW_GRID=no
10f2d63a
VZ
3850 DEFAULT_wxUSE_IMAGLIST=yes
3851 DEFAULT_wxUSE_LISTBOX=yes
3852 DEFAULT_wxUSE_LISTCTRL=yes
3853 DEFAULT_wxUSE_NOTEBOOK=yes
3854 DEFAULT_wxUSE_RADIOBOX=yes
3855 DEFAULT_wxUSE_RADIOBTN=yes
3856 DEFAULT_wxUSE_SASH=yes
3857 DEFAULT_wxUSE_SCROLLBAR=yes
3858 DEFAULT_wxUSE_SLIDER=yes
3859 DEFAULT_wxUSE_SPINBTN=yes
3860 DEFAULT_wxUSE_SPLITTER=yes
3861 DEFAULT_wxUSE_STATBMP=yes
3862 DEFAULT_wxUSE_STATBOX=yes
3863 DEFAULT_wxUSE_STATLINE=yes
3864 DEFAULT_wxUSE_STATUSBAR=yes
3865 DEFAULT_wxUSE_TAB_DIALOG=yes
3866 DEFAULT_wxUSE_TOOLBAR=yes
3867 DEFAULT_wxUSE_TOOLTIPS=yes
3868 DEFAULT_wxUSE_TREECTRL=yes
3869elif test "$wxUSE_CONTROLS" = "no"; then
3870 DEFAULT_wxUSE_ACCEL=no
3871 DEFAULT_wxUSE_CARET=no
3872 DEFAULT_wxUSE_COMBOBOX=no
3873 DEFAULT_wxUSE_BMPBUTTON=no
3874 DEFAULT_wxUSE_CHECKBOX=no
3875 DEFAULT_wxUSE_CHECKLISTBOX=no
3876 DEFAULT_wxUSE_CHOICE=no
3877 DEFAULT_wxUSE_GAUGE=no
3878 DEFAULT_wxUSE_GRID=no
3879 DEFAULT_wxUSE_NEW_GRID=no
3880 DEFAULT_wxUSE_IMAGLIST=no
3881 DEFAULT_wxUSE_LISTBOX=no
3882 DEFAULT_wxUSE_LISTCTRL=no
3883 DEFAULT_wxUSE_NOTEBOOK=no
3884 DEFAULT_wxUSE_RADIOBOX=no
3885 DEFAULT_wxUSE_RADIOBTN=no
3886 DEFAULT_wxUSE_SASH=no
3887 DEFAULT_wxUSE_SCROLLBAR=no
3888 DEFAULT_wxUSE_SLIDER=no
3889 DEFAULT_wxUSE_SPINBTN=no
3890 DEFAULT_wxUSE_SPLITTER=no
3891 DEFAULT_wxUSE_STATBMP=no
3892 DEFAULT_wxUSE_STATBOX=no
3893 DEFAULT_wxUSE_STATLINE=no
3894 DEFAULT_wxUSE_STATUSBAR=no
3895 DEFAULT_wxUSE_TAB_DIALOG=no
3896 DEFAULT_wxUSE_TOOLBAR=no
3897 DEFAULT_wxUSE_TOOLTIPS=no
3898 DEFAULT_wxUSE_TREECTRL=no
3899fi
3900
3901
3902 echo $ac_n "checking "for --enable-accel"""... $ac_c" 1>&6
7eef8db2 3903echo "configure:3904: checking "for --enable-accel"" >&5
10f2d63a
VZ
3904 no_cache=0
3905 # Check whether --enable-accel or --disable-accel was given.
3906if test "${enable_accel+set}" = set; then
3907 enableval="$enable_accel"
3908
3909 if test "$enableval" = yes; then
3910 ac_cv_use_accel='wxUSE_ACCEL=yes'
3911 else
3912 ac_cv_use_accel='wxUSE_ACCEL=no'
3913 fi
3914
3915else
3916
3917 LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
3918 if test "x$LINE" != x ; then
3919 eval "DEFAULT_$LINE"
3920 else
3921 no_cache=1
3922 fi
3923
3924 ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
3925
3926fi
3927
3928
3929 eval "$ac_cv_use_accel"
3930 if test "$no_cache" != 1; then
3931 echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
3932 fi
3933
3934 if test "$wxUSE_ACCEL" = yes; then
3935 echo "$ac_t""yes" 1>&6
3936 else
3937 echo "$ac_t""no" 1>&6
3938 fi
3939
3940
3941 echo $ac_n "checking "for --enable-caret"""... $ac_c" 1>&6
7eef8db2 3942echo "configure:3943: checking "for --enable-caret"" >&5
10f2d63a
VZ
3943 no_cache=0
3944 # Check whether --enable-caret or --disable-caret was given.
3945if test "${enable_caret+set}" = set; then
3946 enableval="$enable_caret"
3947
3948 if test "$enableval" = yes; then
3949 ac_cv_use_caret='wxUSE_CARET=yes'
3950 else
3951 ac_cv_use_caret='wxUSE_CARET=no'
3952 fi
3953
3954else
3955
3956 LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
3957 if test "x$LINE" != x ; then
3958 eval "DEFAULT_$LINE"
3959 else
3960 no_cache=1
3961 fi
3962
3963 ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
3964
3965fi
3966
3967
3968 eval "$ac_cv_use_caret"
3969 if test "$no_cache" != 1; then
3970 echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
3971 fi
3972
3973 if test "$wxUSE_CARET" = yes; then
3974 echo "$ac_t""yes" 1>&6
3975 else
3976 echo "$ac_t""no" 1>&6
3977 fi
3978
3979
3980 echo $ac_n "checking "for --enable-bmpbutton"""... $ac_c" 1>&6
7eef8db2 3981echo "configure:3982: checking "for --enable-bmpbutton"" >&5
10f2d63a
VZ
3982 no_cache=0
3983 # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
3984if test "${enable_bmpbutton+set}" = set; then
3985 enableval="$enable_bmpbutton"
3986
3987 if test "$enableval" = yes; then
3988 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
3989 else
3990 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
3991 fi
3992
3993else
3994
3995 LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
3996 if test "x$LINE" != x ; then
3997 eval "DEFAULT_$LINE"
3998 else
3999 no_cache=1
4000 fi
4001
4002 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
4003
4004fi
4005
4006
4007 eval "$ac_cv_use_bmpbutton"
4008 if test "$no_cache" != 1; then
4009 echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
4010 fi
4011
4012 if test "$wxUSE_BMPBUTTON" = yes; then
4013 echo "$ac_t""yes" 1>&6
4014 else
4015 echo "$ac_t""no" 1>&6
4016 fi
4017
4018
4019 echo $ac_n "checking "for --enable-checkbox"""... $ac_c" 1>&6
7eef8db2 4020echo "configure:4021: checking "for --enable-checkbox"" >&5
10f2d63a
VZ
4021 no_cache=0
4022 # Check whether --enable-checkbox or --disable-checkbox was given.
4023if test "${enable_checkbox+set}" = set; then
4024 enableval="$enable_checkbox"
4025
4026 if test "$enableval" = yes; then
4027 ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
4028 else
4029 ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
4030 fi
4031
4032else
4033
4034 LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
4035 if test "x$LINE" != x ; then
4036 eval "DEFAULT_$LINE"
4037 else
4038 no_cache=1
4039 fi
4040
4041 ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
4042
4043fi
4044
4045
4046 eval "$ac_cv_use_checkbox"
4047 if test "$no_cache" != 1; then
4048 echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
4049 fi
4050
4051 if test "$wxUSE_CHECKBOX" = yes; then
4052 echo "$ac_t""yes" 1>&6
4053 else
4054 echo "$ac_t""no" 1>&6
4055 fi
4056
4057
4058 echo $ac_n "checking "for --enable-checklst"""... $ac_c" 1>&6
7eef8db2 4059echo "configure:4060: checking "for --enable-checklst"" >&5
10f2d63a
VZ
4060 no_cache=0
4061 # Check whether --enable-checklst or --disable-checklst was given.
4062if test "${enable_checklst+set}" = set; then
4063 enableval="$enable_checklst"
4064
4065 if test "$enableval" = yes; then
4066 ac_cv_use_checklst='wxUSE_CHECKLST=yes'
4067 else
4068 ac_cv_use_checklst='wxUSE_CHECKLST=no'
4069 fi
4070
4071else
4072
4073 LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
4074 if test "x$LINE" != x ; then
4075 eval "DEFAULT_$LINE"
4076 else
4077 no_cache=1
4078 fi
4079
4080 ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
4081
4082fi
4083
4084
4085 eval "$ac_cv_use_checklst"
4086 if test "$no_cache" != 1; then
4087 echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
4088 fi
4089
4090 if test "$wxUSE_CHECKLST" = yes; then
4091 echo "$ac_t""yes" 1>&6
4092 else
4093 echo "$ac_t""no" 1>&6
4094 fi
4095
4096
4097 echo $ac_n "checking "for --enable-choice"""... $ac_c" 1>&6
7eef8db2 4098echo "configure:4099: checking "for --enable-choice"" >&5
10f2d63a
VZ
4099 no_cache=0
4100 # Check whether --enable-choice or --disable-choice was given.
4101if test "${enable_choice+set}" = set; then
4102 enableval="$enable_choice"
4103
4104 if test "$enableval" = yes; then
4105 ac_cv_use_choice='wxUSE_CHOICE=yes'
4106 else
4107 ac_cv_use_choice='wxUSE_CHOICE=no'
4108 fi
4109
4110else
4111
4112 LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
4113 if test "x$LINE" != x ; then
4114 eval "DEFAULT_$LINE"
4115 else
4116 no_cache=1
4117 fi
4118
4119 ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
4120
4121fi
4122
4123
4124 eval "$ac_cv_use_choice"
4125 if test "$no_cache" != 1; then
4126 echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
4127 fi
4128
4129 if test "$wxUSE_CHOICE" = yes; then
4130 echo "$ac_t""yes" 1>&6
4131 else
4132 echo "$ac_t""no" 1>&6
4133 fi
4134
4135
4136 echo $ac_n "checking "for --enable-combobox"""... $ac_c" 1>&6
7eef8db2 4137echo "configure:4138: checking "for --enable-combobox"" >&5
10f2d63a
VZ
4138 no_cache=0
4139 # Check whether --enable-combobox or --disable-combobox was given.
4140if test "${enable_combobox+set}" = set; then
4141 enableval="$enable_combobox"
4142
4143 if test "$enableval" = yes; then
4144 ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
4145 else
4146 ac_cv_use_combobox='wxUSE_COMBOBOX=no'
4147 fi
4148
4149else
4150
4151 LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
4152 if test "x$LINE" != x ; then
4153 eval "DEFAULT_$LINE"
4154 else
4155 no_cache=1
4156 fi
4157
4158 ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
4159
4160fi
4161
4162
4163 eval "$ac_cv_use_combobox"
4164 if test "$no_cache" != 1; then
4165 echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
4166 fi
4167
4168 if test "$wxUSE_COMBOBOX" = yes; then
4169 echo "$ac_t""yes" 1>&6
4170 else
4171 echo "$ac_t""no" 1>&6
4172 fi
4173
4174
4175 echo $ac_n "checking "for --enable-gauge"""... $ac_c" 1>&6
7eef8db2 4176echo "configure:4177: checking "for --enable-gauge"" >&5
10f2d63a
VZ
4177 no_cache=0
4178 # Check whether --enable-gauge or --disable-gauge was given.
4179if test "${enable_gauge+set}" = set; then
4180 enableval="$enable_gauge"
4181
4182 if test "$enableval" = yes; then
4183 ac_cv_use_gauge='wxUSE_GAUGE=yes'
4184 else
4185 ac_cv_use_gauge='wxUSE_GAUGE=no'
4186 fi
4187
4188else
4189
4190 LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
4191 if test "x$LINE" != x ; then
4192 eval "DEFAULT_$LINE"
4193 else
4194 no_cache=1
4195 fi
4196
4197 ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
4198
4199fi
4200
4201
4202 eval "$ac_cv_use_gauge"
4203 if test "$no_cache" != 1; then
4204 echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
4205 fi
4206
4207 if test "$wxUSE_GAUGE" = yes; then
4208 echo "$ac_t""yes" 1>&6
4209 else
4210 echo "$ac_t""no" 1>&6
4211 fi
4212
4213
4214 echo $ac_n "checking "for --enable-grid"""... $ac_c" 1>&6
7eef8db2 4215echo "configure:4216: checking "for --enable-grid"" >&5
10f2d63a
VZ
4216 no_cache=0
4217 # Check whether --enable-grid or --disable-grid was given.
4218if test "${enable_grid+set}" = set; then
4219 enableval="$enable_grid"
4220
4221 if test "$enableval" = yes; then
4222 ac_cv_use_grid='wxUSE_GRID=yes'
4223 else
4224 ac_cv_use_grid='wxUSE_GRID=no'
4225 fi
4226
4227else
4228
4229 LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
4230 if test "x$LINE" != x ; then
4231 eval "DEFAULT_$LINE"
4232 else
4233 no_cache=1
4234 fi
4235
4236 ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
4237
4238fi
4239
4240
4241 eval "$ac_cv_use_grid"
4242 if test "$no_cache" != 1; then
4243 echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
4244 fi
4245
4246 if test "$wxUSE_GRID" = yes; then
4247 echo "$ac_t""yes" 1>&6
4248 else
4249 echo "$ac_t""no" 1>&6
4250 fi
4251
4252
4253 echo $ac_n "checking "for --enable-newgrid"""... $ac_c" 1>&6
7eef8db2 4254echo "configure:4255: checking "for --enable-newgrid"" >&5
10f2d63a
VZ
4255 no_cache=0
4256 # Check whether --enable-newgrid or --disable-newgrid was given.
4257if test "${enable_newgrid+set}" = set; then
4258 enableval="$enable_newgrid"
4259
4260 if test "$enableval" = yes; then
4261 ac_cv_use_newgrid='wxUSE_NEW_GRID=yes'
4262 else
4263 ac_cv_use_newgrid='wxUSE_NEW_GRID=no'
4264 fi
4265
4266else
4267
4268 LINE=`grep "wxUSE_NEW_GRID" ${wx_arg_cache_file}`
4269 if test "x$LINE" != x ; then
4270 eval "DEFAULT_$LINE"
4271 else
4272 no_cache=1
4273 fi
4274
4275 ac_cv_use_newgrid='wxUSE_NEW_GRID='$DEFAULT_wxUSE_NEW_GRID
4276
4277fi
4278
4279
4280 eval "$ac_cv_use_newgrid"
4281 if test "$no_cache" != 1; then
4282 echo $ac_cv_use_newgrid >> ${wx_arg_cache_file}.tmp
4283 fi
4284
4285 if test "$wxUSE_NEW_GRID" = yes; then
4286 echo "$ac_t""yes" 1>&6
4287 else
4288 echo "$ac_t""no" 1>&6
4289 fi
4290
4291
4292 echo $ac_n "checking "for --enable-imaglist"""... $ac_c" 1>&6
7eef8db2 4293echo "configure:4294: checking "for --enable-imaglist"" >&5
10f2d63a
VZ
4294 no_cache=0
4295 # Check whether --enable-imaglist or --disable-imaglist was given.
4296if test "${enable_imaglist+set}" = set; then
4297 enableval="$enable_imaglist"
4298
4299 if test "$enableval" = yes; then
4300 ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
4301 else
4302 ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
4303 fi
4304
4305else
4306
4307 LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
4308 if test "x$LINE" != x ; then
4309 eval "DEFAULT_$LINE"
4310 else
4311 no_cache=1
4312 fi
4313
4314 ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
4315
4316fi
4317
4318
4319 eval "$ac_cv_use_imaglist"
4320 if test "$no_cache" != 1; then
4321 echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
4322 fi
4323
4324 if test "$wxUSE_IMAGLIST" = yes; then
4325 echo "$ac_t""yes" 1>&6
4326 else
4327 echo "$ac_t""no" 1>&6
4328 fi
4329
4330
4331 echo $ac_n "checking "for --enable-listbox"""... $ac_c" 1>&6
7eef8db2 4332echo "configure:4333: checking "for --enable-listbox"" >&5
10f2d63a
VZ
4333 no_cache=0
4334 # Check whether --enable-listbox or --disable-listbox was given.
4335if test "${enable_listbox+set}" = set; then
4336 enableval="$enable_listbox"
4337
4338 if test "$enableval" = yes; then
4339 ac_cv_use_listbox='wxUSE_LISTBOX=yes'
4340 else
4341 ac_cv_use_listbox='wxUSE_LISTBOX=no'
4342 fi
4343
4344else
4345
4346 LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
4347 if test "x$LINE" != x ; then
4348 eval "DEFAULT_$LINE"
4349 else
4350 no_cache=1
4351 fi
4352
4353 ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
4354
4355fi
4356
4357
4358 eval "$ac_cv_use_listbox"
4359 if test "$no_cache" != 1; then
4360 echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
4361 fi
4362
4363 if test "$wxUSE_LISTBOX" = yes; then
4364 echo "$ac_t""yes" 1>&6
4365 else
4366 echo "$ac_t""no" 1>&6
4367 fi
4368
4369
4370 echo $ac_n "checking "for --enable-listctrl"""... $ac_c" 1>&6
7eef8db2 4371echo "configure:4372: checking "for --enable-listctrl"" >&5
10f2d63a
VZ
4372 no_cache=0
4373 # Check whether --enable-listctrl or --disable-listctrl was given.
4374if test "${enable_listctrl+set}" = set; then
4375 enableval="$enable_listctrl"
4376
4377 if test "$enableval" = yes; then
4378 ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
4379 else
4380 ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
4381 fi
4382
4383else
4384
4385 LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
4386 if test "x$LINE" != x ; then
4387 eval "DEFAULT_$LINE"
4388 else
4389 no_cache=1
4390 fi
4391
4392 ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
4393
4394fi
4395
4396
4397 eval "$ac_cv_use_listctrl"
4398 if test "$no_cache" != 1; then
4399 echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
4400 fi
4401
4402 if test "$wxUSE_LISTCTRL" = yes; then
4403 echo "$ac_t""yes" 1>&6
4404 else
4405 echo "$ac_t""no" 1>&6
4406 fi
4407
4408
4409 echo $ac_n "checking "for --enable-notebook"""... $ac_c" 1>&6
7eef8db2 4410echo "configure:4411: checking "for --enable-notebook"" >&5
10f2d63a
VZ
4411 no_cache=0
4412 # Check whether --enable-notebook or --disable-notebook was given.
4413if test "${enable_notebook+set}" = set; then
4414 enableval="$enable_notebook"
4415
4416 if test "$enableval" = yes; then
4417 ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
4418 else
4419 ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
4420 fi
4421
4422else
4423
4424 LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
4425 if test "x$LINE" != x ; then
4426 eval "DEFAULT_$LINE"
4427 else
4428 no_cache=1
4429 fi
4430
4431 ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
4432
4433fi
4434
4435
4436 eval "$ac_cv_use_notebook"
4437 if test "$no_cache" != 1; then
4438 echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
4439 fi
4440
4441 if test "$wxUSE_NOTEBOOK" = yes; then
4442 echo "$ac_t""yes" 1>&6
4443 else
4444 echo "$ac_t""no" 1>&6
4445 fi
4446
4447
4448 echo $ac_n "checking "for --enable-radiobox"""... $ac_c" 1>&6
7eef8db2 4449echo "configure:4450: checking "for --enable-radiobox"" >&5
10f2d63a
VZ
4450 no_cache=0
4451 # Check whether --enable-radiobox or --disable-radiobox was given.
4452if test "${enable_radiobox+set}" = set; then
4453 enableval="$enable_radiobox"
4454
4455 if test "$enableval" = yes; then
4456 ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
4457 else
4458 ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
4459 fi
4460
4461else
4462
4463 LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
4464 if test "x$LINE" != x ; then
4465 eval "DEFAULT_$LINE"
4466 else
4467 no_cache=1
4468 fi
4469
4470 ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
4471
4472fi
4473
4474
4475 eval "$ac_cv_use_radiobox"
4476 if test "$no_cache" != 1; then
4477 echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
4478 fi
4479
4480 if test "$wxUSE_RADIOBOX" = yes; then
4481 echo "$ac_t""yes" 1>&6
4482 else
4483 echo "$ac_t""no" 1>&6
4484 fi
4485
4486
4487 echo $ac_n "checking "for --enable-radiobtn"""... $ac_c" 1>&6
7eef8db2 4488echo "configure:4489: checking "for --enable-radiobtn"" >&5
10f2d63a
VZ
4489 no_cache=0
4490 # Check whether --enable-radiobtn or --disable-radiobtn was given.
4491if test "${enable_radiobtn+set}" = set; then
4492 enableval="$enable_radiobtn"
4493
4494 if test "$enableval" = yes; then
4495 ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
4496 else
4497 ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
4498 fi
4499
4500else
4501
4502 LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
4503 if test "x$LINE" != x ; then
4504 eval "DEFAULT_$LINE"
4505 else
4506 no_cache=1
4507 fi
4508
4509 ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
4510
4511fi
4512
4513
4514 eval "$ac_cv_use_radiobtn"
4515 if test "$no_cache" != 1; then
4516 echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
4517 fi
4518
4519 if test "$wxUSE_RADIOBTN" = yes; then
4520 echo "$ac_t""yes" 1>&6
4521 else
4522 echo "$ac_t""no" 1>&6
4523 fi
4524
4525
4526 echo $ac_n "checking "for --enable-sash"""... $ac_c" 1>&6
7eef8db2 4527echo "configure:4528: checking "for --enable-sash"" >&5
10f2d63a
VZ
4528 no_cache=0
4529 # Check whether --enable-sash or --disable-sash was given.
4530if test "${enable_sash+set}" = set; then
4531 enableval="$enable_sash"
4532
4533 if test "$enableval" = yes; then
4534 ac_cv_use_sash='wxUSE_SASH=yes'
4535 else
4536 ac_cv_use_sash='wxUSE_SASH=no'
4537 fi
4538
4539else
4540
4541 LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
4542 if test "x$LINE" != x ; then
4543 eval "DEFAULT_$LINE"
4544 else
4545 no_cache=1
4546 fi
4547
4548 ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
4549
4550fi
4551
4552
4553 eval "$ac_cv_use_sash"
4554 if test "$no_cache" != 1; then
4555 echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
4556 fi
4557
4558 if test "$wxUSE_SASH" = yes; then
4559 echo "$ac_t""yes" 1>&6
4560 else
4561 echo "$ac_t""no" 1>&6
4562 fi
4563
4564
4565 echo $ac_n "checking "for --enable-scrollbar"""... $ac_c" 1>&6
7eef8db2 4566echo "configure:4567: checking "for --enable-scrollbar"" >&5
10f2d63a
VZ
4567 no_cache=0
4568 # Check whether --enable-scrollbar or --disable-scrollbar was given.
4569if test "${enable_scrollbar+set}" = set; then
4570 enableval="$enable_scrollbar"
4571
4572 if test "$enableval" = yes; then
4573 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
4574 else
4575 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
4576 fi
4577
4578else
4579
4580 LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
4581 if test "x$LINE" != x ; then
4582 eval "DEFAULT_$LINE"
4583 else
4584 no_cache=1
4585 fi
4586
4587 ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
4588
4589fi
4590
4591
4592 eval "$ac_cv_use_scrollbar"
4593 if test "$no_cache" != 1; then
4594 echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
4595 fi
4596
4597 if test "$wxUSE_SCROLLBAR" = yes; then
4598 echo "$ac_t""yes" 1>&6
4599 else
4600 echo "$ac_t""no" 1>&6
4601 fi
4602
4603
4604 echo $ac_n "checking "for --enable-slider"""... $ac_c" 1>&6
7eef8db2 4605echo "configure:4606: checking "for --enable-slider"" >&5
10f2d63a
VZ
4606 no_cache=0
4607 # Check whether --enable-slider or --disable-slider was given.
4608if test "${enable_slider+set}" = set; then
4609 enableval="$enable_slider"
4610
4611 if test "$enableval" = yes; then
4612 ac_cv_use_slider='wxUSE_SLIDER=yes'
4613 else
4614 ac_cv_use_slider='wxUSE_SLIDER=no'
4615 fi
4616
4617else
4618
4619 LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
4620 if test "x$LINE" != x ; then
4621 eval "DEFAULT_$LINE"
4622 else
4623 no_cache=1
4624 fi
4625
4626 ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
4627
4628fi
4629
4630
4631 eval "$ac_cv_use_slider"
4632 if test "$no_cache" != 1; then
4633 echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
4634 fi
4635
4636 if test "$wxUSE_SLIDER" = yes; then
4637 echo "$ac_t""yes" 1>&6
4638 else
4639 echo "$ac_t""no" 1>&6
4640 fi
4641
4642
4643 echo $ac_n "checking "for --enable-spinbtn"""... $ac_c" 1>&6
7eef8db2 4644echo "configure:4645: checking "for --enable-spinbtn"" >&5
10f2d63a
VZ
4645 no_cache=0
4646 # Check whether --enable-spinbtn or --disable-spinbtn was given.
4647if test "${enable_spinbtn+set}" = set; then
4648 enableval="$enable_spinbtn"
4649
4650 if test "$enableval" = yes; then
4651 ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
4652 else
4653 ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
4654 fi
4655
4656else
4657
4658 LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
4659 if test "x$LINE" != x ; then
4660 eval "DEFAULT_$LINE"
4661 else
4662 no_cache=1
4663 fi
4664
4665 ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
4666
4667fi
4668
4669
4670 eval "$ac_cv_use_spinbtn"
4671 if test "$no_cache" != 1; then
4672 echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
4673 fi
4674
4675 if test "$wxUSE_SPINBTN" = yes; then
4676 echo "$ac_t""yes" 1>&6
4677 else
4678 echo "$ac_t""no" 1>&6
4679 fi
4680
4681
4682 echo $ac_n "checking "for --enable-splitter"""... $ac_c" 1>&6
7eef8db2 4683echo "configure:4684: checking "for --enable-splitter"" >&5
10f2d63a
VZ
4684 no_cache=0
4685 # Check whether --enable-splitter or --disable-splitter was given.
4686if test "${enable_splitter+set}" = set; then
4687 enableval="$enable_splitter"
4688
4689 if test "$enableval" = yes; then
4690 ac_cv_use_splitter='wxUSE_SPLITTER=yes'
4691 else
4692 ac_cv_use_splitter='wxUSE_SPLITTER=no'
4693 fi
4694
4695else
4696
4697 LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
4698 if test "x$LINE" != x ; then
4699 eval "DEFAULT_$LINE"
4700 else
4701 no_cache=1
4702 fi
4703
4704 ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
4705
4706fi
4707
4708
4709 eval "$ac_cv_use_splitter"
4710 if test "$no_cache" != 1; then
4711 echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
4712 fi
4713
4714 if test "$wxUSE_SPLITTER" = yes; then
4715 echo "$ac_t""yes" 1>&6
4716 else
4717 echo "$ac_t""no" 1>&6
4718 fi
4719
4720
4721 echo $ac_n "checking "for --enable-statbmp"""... $ac_c" 1>&6
7eef8db2 4722echo "configure:4723: checking "for --enable-statbmp"" >&5
10f2d63a
VZ
4723 no_cache=0
4724 # Check whether --enable-statbmp or --disable-statbmp was given.
4725if test "${enable_statbmp+set}" = set; then
4726 enableval="$enable_statbmp"
4727
4728 if test "$enableval" = yes; then
4729 ac_cv_use_statbmp='wxUSE_STATBMP=yes'
4730 else
4731 ac_cv_use_statbmp='wxUSE_STATBMP=no'
4732 fi
4733
4734else
4735
4736 LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
4737 if test "x$LINE" != x ; then
4738 eval "DEFAULT_$LINE"
4739 else
4740 no_cache=1
4741 fi
4742
4743 ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
4744
4745fi
4746
4747
4748 eval "$ac_cv_use_statbmp"
4749 if test "$no_cache" != 1; then
4750 echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
4751 fi
4752
4753 if test "$wxUSE_STATBMP" = yes; then
4754 echo "$ac_t""yes" 1>&6
4755 else
4756 echo "$ac_t""no" 1>&6
4757 fi
4758
4759
4760 echo $ac_n "checking "for --enable-statbox"""... $ac_c" 1>&6
7eef8db2 4761echo "configure:4762: checking "for --enable-statbox"" >&5
10f2d63a
VZ
4762 no_cache=0
4763 # Check whether --enable-statbox or --disable-statbox was given.
4764if test "${enable_statbox+set}" = set; then
4765 enableval="$enable_statbox"
4766
4767 if test "$enableval" = yes; then
4768 ac_cv_use_statbox='wxUSE_STATBOX=yes'
4769 else
4770 ac_cv_use_statbox='wxUSE_STATBOX=no'
4771 fi
4772
4773else
4774
4775 LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
4776 if test "x$LINE" != x ; then
4777 eval "DEFAULT_$LINE"
4778 else
4779 no_cache=1
4780 fi
4781
4782 ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
4783
4784fi
4785
4786
4787 eval "$ac_cv_use_statbox"
4788 if test "$no_cache" != 1; then
4789 echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
4790 fi
4791
4792 if test "$wxUSE_STATBOX" = yes; then
4793 echo "$ac_t""yes" 1>&6
4794 else
4795 echo "$ac_t""no" 1>&6
4796 fi
4797
4798
4799 echo $ac_n "checking "for --enable-statline"""... $ac_c" 1>&6
7eef8db2 4800echo "configure:4801: checking "for --enable-statline"" >&5
10f2d63a
VZ
4801 no_cache=0
4802 # Check whether --enable-statline or --disable-statline was given.
4803if test "${enable_statline+set}" = set; then
4804 enableval="$enable_statline"
4805
4806 if test "$enableval" = yes; then
4807 ac_cv_use_statline='wxUSE_STATLINE=yes'
4808 else
4809 ac_cv_use_statline='wxUSE_STATLINE=no'
4810 fi
4811
4812else
4813
4814 LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
4815 if test "x$LINE" != x ; then
4816 eval "DEFAULT_$LINE"
4817 else
4818 no_cache=1
4819 fi
4820
4821 ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
4822
4823fi
4824
4825
4826 eval "$ac_cv_use_statline"
4827 if test "$no_cache" != 1; then
4828 echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
4829 fi
4830
4831 if test "$wxUSE_STATLINE" = yes; then
4832 echo "$ac_t""yes" 1>&6
4833 else
4834 echo "$ac_t""no" 1>&6
4835 fi
4836
4837
4838 echo $ac_n "checking "for --enable-statusbar"""... $ac_c" 1>&6
7eef8db2 4839echo "configure:4840: checking "for --enable-statusbar"" >&5
10f2d63a
VZ
4840 no_cache=0
4841 # Check whether --enable-statusbar or --disable-statusbar was given.
4842if test "${enable_statusbar+set}" = set; then
4843 enableval="$enable_statusbar"
4844
4845 if test "$enableval" = yes; then
4846 ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
4847 else
4848 ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
4849 fi
4850
4851else
4852
4853 LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
4854 if test "x$LINE" != x ; then
4855 eval "DEFAULT_$LINE"
4856 else
4857 no_cache=1
4858 fi
4859
4860 ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
4861
4862fi
4863
4864
4865 eval "$ac_cv_use_statusbar"
4866 if test "$no_cache" != 1; then
4867 echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
4868 fi
4869
4870 if test "$wxUSE_STATUSBAR" = yes; then
4871 echo "$ac_t""yes" 1>&6
4872 else
4873 echo "$ac_t""no" 1>&6
4874 fi
4875
4876
4877 echo $ac_n "checking "for --enable-tabdialog"""... $ac_c" 1>&6
7eef8db2 4878echo "configure:4879: checking "for --enable-tabdialog"" >&5
10f2d63a
VZ
4879 no_cache=0
4880 # Check whether --enable-tabdialog or --disable-tabdialog was given.
4881if test "${enable_tabdialog+set}" = set; then
4882 enableval="$enable_tabdialog"
4883
4884 if test "$enableval" = yes; then
4885 ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes'
4886 else
4887 ac_cv_use_tabdialog='wxUSE_TABDIALOG=no'
4888 fi
4889
4890else
4891
4892 LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}`
4893 if test "x$LINE" != x ; then
4894 eval "DEFAULT_$LINE"
4895 else
4896 no_cache=1
4897 fi
4898
4899 ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG
4900
4901fi
4902
4903
4904 eval "$ac_cv_use_tabdialog"
4905 if test "$no_cache" != 1; then
4906 echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
4907 fi
4908
4909 if test "$wxUSE_TABDIALOG" = yes; then
4910 echo "$ac_t""yes" 1>&6
4911 else
4912 echo "$ac_t""no" 1>&6
4913 fi
4914
4915
4916 echo $ac_n "checking "for --enable-toolbar"""... $ac_c" 1>&6
7eef8db2 4917echo "configure:4918: checking "for --enable-toolbar"" >&5
10f2d63a
VZ
4918 no_cache=0
4919 # Check whether --enable-toolbar or --disable-toolbar was given.
4920if test "${enable_toolbar+set}" = set; then
4921 enableval="$enable_toolbar"
4922
4923 if test "$enableval" = yes; then
4924 ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
4925 else
4926 ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
4927 fi
4928
4929else
4930
4931 LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
4932 if test "x$LINE" != x ; then
4933 eval "DEFAULT_$LINE"
4934 else
4935 no_cache=1
4936 fi
4937
4938 ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
4939
4940fi
4941
4942
4943 eval "$ac_cv_use_toolbar"
4944 if test "$no_cache" != 1; then
4945 echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
4946 fi
4947
4948 if test "$wxUSE_TOOLBAR" = yes; then
4949 echo "$ac_t""yes" 1>&6
4950 else
4951 echo "$ac_t""no" 1>&6
4952 fi
4953
4954
4955 echo $ac_n "checking "for --enable-treectrl"""... $ac_c" 1>&6
7eef8db2 4956echo "configure:4957: checking "for --enable-treectrl"" >&5
10f2d63a
VZ
4957 no_cache=0
4958 # Check whether --enable-treectrl or --disable-treectrl was given.
4959if test "${enable_treectrl+set}" = set; then
4960 enableval="$enable_treectrl"
4961
4962 if test "$enableval" = yes; then
4963 ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
4964 else
4965 ac_cv_use_treectrl='wxUSE_TREECTRL=no'
4966 fi
4967
4968else
4969
4970 LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
4971 if test "x$LINE" != x ; then
4972 eval "DEFAULT_$LINE"
4973 else
4974 no_cache=1
4975 fi
4976
4977 ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
4978
4979fi
4980
4981
4982 eval "$ac_cv_use_treectrl"
4983 if test "$no_cache" != 1; then
4984 echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
4985 fi
4986
4987 if test "$wxUSE_TREECTRL" = yes; then
4988 echo "$ac_t""yes" 1>&6
4989 else
4990 echo "$ac_t""no" 1>&6
4991 fi
4992
4993
4994
4995
4996 echo $ac_n "checking "for --enable-commondlg"""... $ac_c" 1>&6
7eef8db2 4997echo "configure:4998: checking "for --enable-commondlg"" >&5
10f2d63a
VZ
4998 no_cache=0
4999 # Check whether --enable-commondlg or --disable-commondlg was given.
5000if test "${enable_commondlg+set}" = set; then
5001 enableval="$enable_commondlg"
5002
5003 if test "$enableval" = yes; then
5004 ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
5005 else
5006 ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
5007 fi
5008
5009else
5010
5011 LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
5012 if test "x$LINE" != x ; then
5013 eval "DEFAULT_$LINE"
5014 else
5015 no_cache=1
5016 fi
5017
5018 ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
5019
5020fi
5021
5022
5023 eval "$ac_cv_use_commondlg"
5024 if test "$no_cache" != 1; then
5025 echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
5026 fi
5027
5028 if test "$wxUSE_COMMONDLGS" = yes; then
5029 echo "$ac_t""yes" 1>&6
5030 else
5031 echo "$ac_t""no" 1>&6
5032 fi
5033
5034
5035 echo $ac_n "checking "for --enable-dirdlg"""... $ac_c" 1>&6
7eef8db2 5036echo "configure:5037: checking "for --enable-dirdlg"" >&5
10f2d63a
VZ
5037 no_cache=0
5038 # Check whether --enable-dirdlg or --disable-dirdlg was given.
5039if test "${enable_dirdlg+set}" = set; then
5040 enableval="$enable_dirdlg"
5041
5042 if test "$enableval" = yes; then
5043 ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
5044 else
5045 ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
5046 fi
5047
5048else
5049
5050 LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
5051 if test "x$LINE" != x ; then
5052 eval "DEFAULT_$LINE"
5053 else
5054 no_cache=1
5055 fi
5056
5057 ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
5058
5059fi
5060
5061
5062 eval "$ac_cv_use_dirdlg"
5063 if test "$no_cache" != 1; then
5064 echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
5065 fi
5066
5067 if test "$wxUSE_DIRDLG" = yes; then
5068 echo "$ac_t""yes" 1>&6
5069 else
5070 echo "$ac_t""no" 1>&6
5071 fi
5072
5073
5074 echo $ac_n "checking "for --enable-textdlg"""... $ac_c" 1>&6
7eef8db2 5075echo "configure:5076: checking "for --enable-textdlg"" >&5
10f2d63a
VZ
5076 no_cache=0
5077 # Check whether --enable-textdlg or --disable-textdlg was given.
5078if test "${enable_textdlg+set}" = set; then
5079 enableval="$enable_textdlg"
5080
5081 if test "$enableval" = yes; then
5082 ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
5083 else
5084 ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
5085 fi
5086
5087else
5088
5089 LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
5090 if test "x$LINE" != x ; then
5091 eval "DEFAULT_$LINE"
5092 else
5093 no_cache=1
5094 fi
5095
5096 ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
5097
5098fi
5099
5100
5101 eval "$ac_cv_use_textdlg"
5102 if test "$no_cache" != 1; then
5103 echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
5104 fi
5105
5106 if test "$wxUSE_TEXTDLG" = yes; then
5107 echo "$ac_t""yes" 1>&6
5108 else
5109 echo "$ac_t""no" 1>&6
5110 fi
5111
5112
5113 echo $ac_n "checking "for --enable-tipdlg"""... $ac_c" 1>&6
7eef8db2 5114echo "configure:5115: checking "for --enable-tipdlg"" >&5
10f2d63a
VZ
5115 no_cache=0
5116 # Check whether --enable-tipdlg or --disable-tipdlg was given.
5117if test "${enable_tipdlg+set}" = set; then
5118 enableval="$enable_tipdlg"
5119
5120 if test "$enableval" = yes; then
5121 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
5122 else
5123 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
5124 fi
5125
5126else
5127
5128 LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
5129 if test "x$LINE" != x ; then
5130 eval "DEFAULT_$LINE"
5131 else
5132 no_cache=1
5133 fi
5134
5135 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
5136
5137fi
5138
5139
5140 eval "$ac_cv_use_tipdlg"
5141 if test "$no_cache" != 1; then
5142 echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
5143 fi
5144
5145 if test "$wxUSE_STARTUP_TIPS" = yes; then
5146 echo "$ac_t""yes" 1>&6
5147 else
5148 echo "$ac_t""no" 1>&6
5149 fi
5150
5151
5152 echo $ac_n "checking "for --enable-progressdlg"""... $ac_c" 1>&6
7eef8db2 5153echo "configure:5154: checking "for --enable-progressdlg"" >&5
10f2d63a
VZ
5154 no_cache=0
5155 # Check whether --enable-progressdlg or --disable-progressdlg was given.
5156if test "${enable_progressdlg+set}" = set; then
5157 enableval="$enable_progressdlg"
5158
5159 if test "$enableval" = yes; then
5160 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
5161 else
5162 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
5163 fi
5164
5165else
5166
5167 LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
5168 if test "x$LINE" != x ; then
5169 eval "DEFAULT_$LINE"
5170 else
5171 no_cache=1
5172 fi
5173
5174 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
5175
5176fi
5177
5178
5179 eval "$ac_cv_use_progressdlg"
5180 if test "$no_cache" != 1; then
5181 echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
5182 fi
5183
5184 if test "$wxUSE_PROGRESSDLG" = yes; then
5185 echo "$ac_t""yes" 1>&6
5186 else
5187 echo "$ac_t""no" 1>&6
5188 fi
5189
5190
5191 echo $ac_n "checking "for --enable-miniframe"""... $ac_c" 1>&6
7eef8db2 5192echo "configure:5193: checking "for --enable-miniframe"" >&5
10f2d63a
VZ
5193 no_cache=0
5194 # Check whether --enable-miniframe or --disable-miniframe was given.
5195if test "${enable_miniframe+set}" = set; then
5196 enableval="$enable_miniframe"
5197
5198 if test "$enableval" = yes; then
5199 ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
5200 else
5201 ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
5202 fi
5203
5204else
5205
5206 LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
5207 if test "x$LINE" != x ; then
5208 eval "DEFAULT_$LINE"
5209 else
5210 no_cache=1
5211 fi
5212
5213 ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
5214
5215fi
5216
5217
5218 eval "$ac_cv_use_miniframe"
5219 if test "$no_cache" != 1; then
5220 echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
5221 fi
5222
5223 if test "$wxUSE_MINIFRAME" = yes; then
5224 echo "$ac_t""yes" 1>&6
5225 else
5226 echo "$ac_t""no" 1>&6
5227 fi
5228
5229
5230 echo $ac_n "checking "for --enable-html"""... $ac_c" 1>&6
7eef8db2 5231echo "configure:5232: checking "for --enable-html"" >&5
10f2d63a
VZ
5232 no_cache=0
5233 # Check whether --enable-html or --disable-html was given.
5234if test "${enable_html+set}" = set; then
5235 enableval="$enable_html"
5236
5237 if test "$enableval" = yes; then
5238 ac_cv_use_html='wxUSE_HTML=yes'
5239 else
5240 ac_cv_use_html='wxUSE_HTML=no'
5241 fi
5242
5243else
5244
5245 LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
5246 if test "x$LINE" != x ; then
5247 eval "DEFAULT_$LINE"
5248 else
5249 no_cache=1
5250 fi
5251
5252 ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
5253
5254fi
5255
5256
5257 eval "$ac_cv_use_html"
5258 if test "$no_cache" != 1; then
5259 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
5260 fi
5261
5262 if test "$wxUSE_HTML" = yes; then
5263 echo "$ac_t""yes" 1>&6
5264 else
5265 echo "$ac_t""no" 1>&6
5266 fi
5267
5268
5269 echo $ac_n "checking "for --enable-tooltips"""... $ac_c" 1>&6
7eef8db2 5270echo "configure:5271: checking "for --enable-tooltips"" >&5
10f2d63a
VZ
5271 no_cache=0
5272 # Check whether --enable-tooltips or --disable-tooltips was given.
5273if test "${enable_tooltips+set}" = set; then
5274 enableval="$enable_tooltips"
5275
5276 if test "$enableval" = yes; then
5277 ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
5278 else
5279 ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
5280 fi
5281
5282else
5283
5284 LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
5285 if test "x$LINE" != x ; then
5286 eval "DEFAULT_$LINE"
5287 else
5288 no_cache=1
5289 fi
5290
5291 ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
5292
5293fi
5294
5295
5296 eval "$ac_cv_use_tooltips"
5297 if test "$no_cache" != 1; then
5298 echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
5299 fi
5300
5301 if test "$wxUSE_TOOLTIPS" = yes; then
5302 echo "$ac_t""yes" 1>&6
5303 else
5304 echo "$ac_t""no" 1>&6
5305 fi
5306
5307
5308 echo $ac_n "checking "for --enable-splines"""... $ac_c" 1>&6
7eef8db2 5309echo "configure:5310: checking "for --enable-splines"" >&5
10f2d63a
VZ
5310 no_cache=0
5311 # Check whether --enable-splines or --disable-splines was given.
5312if test "${enable_splines+set}" = set; then
5313 enableval="$enable_splines"
5314
5315 if test "$enableval" = yes; then
5316 ac_cv_use_splines='wxUSE_SPLINES=yes'
5317 else
5318 ac_cv_use_splines='wxUSE_SPLINES=no'
5319 fi
5320
5321else
5322
5323 LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
5324 if test "x$LINE" != x ; then
5325 eval "DEFAULT_$LINE"
5326 else
5327 no_cache=1
5328 fi
5329
5330 ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
5331
5332fi
5333
5334
5335 eval "$ac_cv_use_splines"
5336 if test "$no_cache" != 1; then
5337 echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
5338 fi
5339
5340 if test "$wxUSE_SPLINES" = yes; then
5341 echo "$ac_t""yes" 1>&6
5342 else
5343 echo "$ac_t""no" 1>&6
5344 fi
5345
5346
5347 echo $ac_n "checking "for --enable-validators"""... $ac_c" 1>&6
7eef8db2 5348echo "configure:5349: checking "for --enable-validators"" >&5
10f2d63a
VZ
5349 no_cache=0
5350 # Check whether --enable-validators or --disable-validators was given.
5351if test "${enable_validators+set}" = set; then
5352 enableval="$enable_validators"
5353
5354 if test "$enableval" = yes; then
5355 ac_cv_use_validators='wxUSE_VALIDATORS=yes'
5356 else
5357 ac_cv_use_validators='wxUSE_VALIDATORS=no'
5358 fi
5359
5360else
5361
5362 LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
5363 if test "x$LINE" != x ; then
5364 eval "DEFAULT_$LINE"
5365 else
5366 no_cache=1
5367 fi
5368
5369 ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
5370
5371fi
5372
5373
5374 eval "$ac_cv_use_validators"
5375 if test "$no_cache" != 1; then
5376 echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
5377 fi
5378
5379 if test "$wxUSE_VALIDATORS" = yes; then
5380 echo "$ac_t""yes" 1>&6
5381 else
5382 echo "$ac_t""no" 1>&6
5383 fi
5384
5385
5386 echo $ac_n "checking "for --enable-busyinfo"""... $ac_c" 1>&6
7eef8db2 5387echo "configure:5388: checking "for --enable-busyinfo"" >&5
10f2d63a
VZ
5388 no_cache=0
5389 # Check whether --enable-busyinfo or --disable-busyinfo was given.
5390if test "${enable_busyinfo+set}" = set; then
5391 enableval="$enable_busyinfo"
5392
5393 if test "$enableval" = yes; then
5394 ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
5395 else
5396 ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
5397 fi
5398
5399else
5400
5401 LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
5402 if test "x$LINE" != x ; then
5403 eval "DEFAULT_$LINE"
5404 else
5405 no_cache=1
5406 fi
5407
5408 ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
5409
5410fi
5411
5412
5413 eval "$ac_cv_use_busyinfo"
5414 if test "$no_cache" != 1; then
5415 echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
5416 fi
5417
5418 if test "$wxUSE_BUSYINFO" = yes; then
5419 echo "$ac_t""yes" 1>&6
5420 else
5421 echo "$ac_t""no" 1>&6
5422 fi
5423
5424
5425
5426
5427 echo $ac_n "checking "for --enable-gif"""... $ac_c" 1>&6
7eef8db2 5428echo "configure:5429: checking "for --enable-gif"" >&5
10f2d63a
VZ
5429 no_cache=0
5430 # Check whether --enable-gif or --disable-gif was given.
5431if test "${enable_gif+set}" = set; then
5432 enableval="$enable_gif"
5433
5434 if test "$enableval" = yes; then
5435 ac_cv_use_gif='wxUSE_GIF=yes'
5436 else
5437 ac_cv_use_gif='wxUSE_GIF=no'
5438 fi
5439
5440else
5441
5442 LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
5443 if test "x$LINE" != x ; then
5444 eval "DEFAULT_$LINE"
5445 else
5446 no_cache=1
5447 fi
5448
5449 ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
5450
5451fi
5452
5453
5454 eval "$ac_cv_use_gif"
5455 if test "$no_cache" != 1; then
5456 echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
5457 fi
5458
5459 if test "$wxUSE_GIF" = yes; then
5460 echo "$ac_t""yes" 1>&6
5461 else
5462 echo "$ac_t""no" 1>&6
5463 fi
5464
5465
5466 echo $ac_n "checking "for --enable-pcx"""... $ac_c" 1>&6
7eef8db2 5467echo "configure:5468: checking "for --enable-pcx"" >&5
10f2d63a
VZ
5468 no_cache=0
5469 # Check whether --enable-pcx or --disable-pcx was given.
5470if test "${enable_pcx+set}" = set; then
5471 enableval="$enable_pcx"
5472
5473 if test "$enableval" = yes; then
5474 ac_cv_use_pcx='wxUSE_PCX=yes'
5475 else
5476 ac_cv_use_pcx='wxUSE_PCX=no'
5477 fi
5478
5479else
5480
5481 LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
5482 if test "x$LINE" != x ; then
5483 eval "DEFAULT_$LINE"
5484 else
5485 no_cache=1
5486 fi
5487
5488 ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
5489
5490fi
5491
5492
5493 eval "$ac_cv_use_pcx"
5494 if test "$no_cache" != 1; then
5495 echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
5496 fi
5497
5498 if test "$wxUSE_PCX" = yes; then
5499 echo "$ac_t""yes" 1>&6
5500 else
5501 echo "$ac_t""no" 1>&6
5502 fi
5503
5504
5505 echo $ac_n "checking "for --enable-pnm"""... $ac_c" 1>&6
7eef8db2 5506echo "configure:5507: checking "for --enable-pnm"" >&5
10f2d63a
VZ
5507 no_cache=0
5508 # Check whether --enable-pnm or --disable-pnm was given.
5509if test "${enable_pnm+set}" = set; then
5510 enableval="$enable_pnm"
5511
5512 if test "$enableval" = yes; then
5513 ac_cv_use_pnm='wxUSE_PNM=yes'
5514 else
5515 ac_cv_use_pnm='wxUSE_PNM=no'
5516 fi
5517
5518else
5519
5520 LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
5521 if test "x$LINE" != x ; then
5522 eval "DEFAULT_$LINE"
5523 else
5524 no_cache=1
5525 fi
5526
5527 ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
5528
5529fi
5530
5531
5532 eval "$ac_cv_use_pnm"
5533 if test "$no_cache" != 1; then
5534 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
5535 fi
5536
5537 if test "$wxUSE_PNM" = yes; then
5538 echo "$ac_t""yes" 1>&6
5539 else
5540 echo "$ac_t""no" 1>&6
5541 fi
5542
5543
5544
5545 echo "saving argument cache $wx_arg_cache_file"
5546 mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
5547
5548
5549
5550echo $ac_n "checking for toolkit""... $ac_c" 1>&6
7eef8db2 5551echo "configure:5552: checking for toolkit" >&5
10f2d63a
VZ
5552
5553if test "$wxUSE_GUI" = "yes"; then
5554
5555if test "$TOOLKIT_GIVEN" = 1; then
5556 for toolkit in `echo $ALL_TOOLKITS`; do
5557 var=wxUSE_$toolkit
5558 eval "value=\$${var}"
5559 eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`"
5560 done
5561else
5562 for toolkit in `echo $ALL_TOOLKITS`; do
5563 if test "$has_toolkit_in_cache" != 1; then
5564 var=DEFAULT_DEFAULT_wxUSE_$toolkit
5565 else
5566 var=DEFAULT_wxUSE_$toolkit
5567 fi
5568 eval "wxUSE_$toolkit=\$${var}"
5569 done
5570fi
5571
5572NUM_TOOLKITS=`expr ${wxUSE_GTK:-0} + ${wxUSE_MOTIF:-0} + ${wxUSE_WINE:-0} + ${wxUSE_MINGW:-0} + ${wxUSE_CYGWIN:-0}`
5573
5574case "$NUM_TOOLKITS" in
5575 1)
5576 ;;
5577 0)
5578 { echo "configure: error: Please specify a toolkit - cannot determine the default for ${host}" 1>&2; exit 1; }
5579 ;;
5580 *)
5581 { echo "configure: error: Please specify at most one toolkit (may be some are cached?)" 1>&2; exit 1; }
5582esac
5583
5584for toolkit in `echo $ALL_TOOLKITS`; do
5585 var=wxUSE_$toolkit
5586 eval "value=\$${var}"
5587 if test "x$value" != x; then
5588 cache_var=CACHE_$toolkit
5589 eval "cache=\$${cache_var}"
5590 if test "$cache" = 1; then
5591 echo "$var=$value" >> ${wx_arg_cache_file}
5592 fi
5593 if test "$value" = 1; then
5594 echo "$ac_t""`echo $toolkit | tr A-Z a-z`" 1>&6
5595 fi
5596 fi
5597done
5598
5599else
5600 echo "$ac_t""base only" 1>&6
5601fi
5602
5603
5604cat > confcache <<\EOF
5605# This file is a shell script that caches the results of configure
5606# tests run on this system so they can be shared between configure
5607# scripts and configure runs. It is not useful on other systems.
5608# If it contains results you don't want to keep, you may remove or edit it.
5609#
5610# By default, configure uses ./config.cache as the cache file,
5611# creating it if it does not exist already. You can give configure
5612# the --cache-file=FILE option to use a different cache file; that is
5613# what configure does when it calls configure scripts in
5614# subdirectories, so they share the cache.
5615# Giving --cache-file=/dev/null disables caching, for debugging configure.
5616# config.status only pays attention to the cache file if you give it the
5617# --recheck option to rerun configure.
5618#
5619EOF
5620# The following way of writing the cache mishandles newlines in values,
5621# but we know of no workaround that is simple, portable, and efficient.
5622# So, don't put newlines in cache variables' values.
5623# Ultrix sh set writes to stderr and can't be redirected directly,
5624# and sets the high bit in the cache file unless we assign to the vars.
5625(set) 2>&1 |
5626 case `(ac_space=' '; set | grep ac_space) 2>&1` in
5627 *ac_space=\ *)
5628 # `set' does not quote correctly, so add quotes (double-quote substitution
5629 # turns \\\\ into \\, and sed turns \\ into \).
5630 sed -n \
5631 -e "s/'/'\\\\''/g" \
5632 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
5633 ;;
5634 *)
5635 # `set' quotes correctly as required by POSIX, so do not add quotes.
5636 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
5637 ;;
5638 esac >> confcache
5639if cmp -s $cache_file confcache; then
5640 :
5641else
5642 if test -w $cache_file; then
5643 echo "updating cache $cache_file"
5644 cat confcache > $cache_file
5645 else
5646 echo "not updating unwritable cache $cache_file"
5647 fi
5648fi
5649rm -f confcache
5650
5651
5652if eval "test $host != $build"; then
5653 if eval "test $host_alias != NONE"; then
5654 CC=$host_alias-gcc
5655 CXX=$host_alias-c++
5656 AR=$host_alias-ar
5657 RANLIB=$host_alias-ranlib
5658 DLLTOOL=$host_alias-dlltool
5659 LD=$host_alias-ld
5660 NM=$host_alias-nm
5661 STRIP=$host_alias-strip
5662 fi
5663fi
5664
5665# Extract the first word of "gcc", so it can be a program name with args.
5666set dummy gcc; ac_word=$2
5667echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7eef8db2 5668echo "configure:5669: checking for $ac_word" >&5
10f2d63a
VZ
5669if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
5670 echo $ac_n "(cached) $ac_c" 1>&6
5671else
5672 if test -n "$CC"; then
5673 ac_cv_prog_CC="$CC" # Let the user override the test.
5674else
5675 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5676 ac_dummy="$PATH"
5677 for ac_dir in $ac_dummy; do
5678 test -z "$ac_dir" && ac_dir=.
5679 if test -f $ac_dir/$ac_word; then
5680 ac_cv_prog_CC="gcc"
5681 break
5682 fi
5683 done
5684 IFS="$ac_save_ifs"
5685fi
5686fi
5687CC="$ac_cv_prog_CC"
5688if test -n "$CC"; then
5689 echo "$ac_t""$CC" 1>&6
5690else
5691 echo "$ac_t""no" 1>&6
5692fi
5693
5694if test -z "$CC"; then
5695 # Extract the first word of "cc", so it can be a program name with args.
5696set dummy cc; ac_word=$2
5697echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7eef8db2 5698echo "configure:5699: checking for $ac_word" >&5
10f2d63a
VZ
5699if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
5700 echo $ac_n "(cached) $ac_c" 1>&6
5701else
5702 if test -n "$CC"; then
5703 ac_cv_prog_CC="$CC" # Let the user override the test.
5704else
5705 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5706 ac_prog_rejected=no
5707 ac_dummy="$PATH"
5708 for ac_dir in $ac_dummy; do
5709 test -z "$ac_dir" && ac_dir=.
5710 if test -f $ac_dir/$ac_word; then
5711 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
5712 ac_prog_rejected=yes
5713 continue
5714 fi
5715 ac_cv_prog_CC="cc"
5716 break
5717 fi
5718 done
5719 IFS="$ac_save_ifs"
5720if test $ac_prog_rejected = yes; then
5721 # We found a bogon in the path, so make sure we never use it.
5722 set dummy $ac_cv_prog_CC
5723 shift
5724 if test $# -gt 0; then
5725 # We chose a different compiler from the bogus one.
5726 # However, it has the same basename, so the bogon will be chosen
5727 # first if we set CC to just the basename; use the full file name.
5728 shift
5729 set dummy "$ac_dir/$ac_word" "$@"
5730 shift
5731 ac_cv_prog_CC="$@"
5732 fi
5733fi
5734fi
5735fi
5736CC="$ac_cv_prog_CC"
5737if test -n "$CC"; then
5738 echo "$ac_t""$CC" 1>&6
5739else
5740 echo "$ac_t""no" 1>&6
5741fi
5742
5743 if test -z "$CC"; then
5744 case "`uname -s`" in
5745 *win32* | *WIN32*)
5746 # Extract the first word of "cl", so it can be a program name with args.
5747set dummy cl; ac_word=$2
5748echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7eef8db2 5749echo "configure:5750: checking for $ac_word" >&5
10f2d63a
VZ
5750if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
5751 echo $ac_n "(cached) $ac_c" 1>&6
5752else
5753 if test -n "$CC"; then
5754 ac_cv_prog_CC="$CC" # Let the user override the test.
5755else
5756 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5757 ac_dummy="$PATH"
5758 for ac_dir in $ac_dummy; do
5759 test -z "$ac_dir" && ac_dir=.
5760 if test -f $ac_dir/$ac_word; then
5761 ac_cv_prog_CC="cl"
5762 break
5763 fi
5764 done
5765 IFS="$ac_save_ifs"
5766fi
5767fi
5768CC="$ac_cv_prog_CC"
5769if test -n "$CC"; then
5770 echo "$ac_t""$CC" 1>&6
5771else
5772 echo "$ac_t""no" 1>&6
5773fi
5774 ;;
5775 esac
5776 fi
5777 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
5778fi
5779
5780echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
7eef8db2 5781echo "configure:5782: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
10f2d63a
VZ
5782
5783ac_ext=c
5784# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5785ac_cpp='$CPP $CPPFLAGS'
5786ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5787ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5788cross_compiling=$ac_cv_prog_cc_cross
5789
5790cat > conftest.$ac_ext << EOF
5791
7eef8db2 5792#line 5793 "configure"
10f2d63a
VZ
5793#include "confdefs.h"
5794
5795main(){return(0);}
5796EOF
7eef8db2 5797if { (eval echo configure:5798: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
5798 ac_cv_prog_cc_works=yes
5799 # If we can't run a trivial program, we are probably using a cross compiler.
5800 if (./conftest; exit) 2>/dev/null; then
5801 ac_cv_prog_cc_cross=no
5802 else
5803 ac_cv_prog_cc_cross=yes
5804 fi
5805else
5806 echo "configure: failed program was:" >&5
5807 cat conftest.$ac_ext >&5
5808 ac_cv_prog_cc_works=no
5809fi
5810rm -fr conftest*
5811ac_ext=c
5812# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5813ac_cpp='$CPP $CPPFLAGS'
5814ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5815ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5816cross_compiling=$ac_cv_prog_cc_cross
5817
5818echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
5819if test $ac_cv_prog_cc_works = no; then
5820 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
5821fi
5822echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
7eef8db2 5823echo "configure:5824: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
10f2d63a
VZ
5824echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
5825cross_compiling=$ac_cv_prog_cc_cross
5826
5827echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
7eef8db2 5828echo "configure:5829: checking whether we are using GNU C" >&5
10f2d63a
VZ
5829if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
5830 echo $ac_n "(cached) $ac_c" 1>&6
5831else
5832 cat > conftest.c <<EOF
5833#ifdef __GNUC__
5834 yes;
5835#endif
5836EOF
7eef8db2 5837if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:5838: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
10f2d63a
VZ
5838 ac_cv_prog_gcc=yes
5839else
5840 ac_cv_prog_gcc=no
5841fi
5842fi
5843
5844echo "$ac_t""$ac_cv_prog_gcc" 1>&6
5845
5846if test $ac_cv_prog_gcc = yes; then
5847 GCC=yes
5848else
5849 GCC=
5850fi
5851
5852ac_test_CFLAGS="${CFLAGS+set}"
5853ac_save_CFLAGS="$CFLAGS"
5854CFLAGS=
5855echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
7eef8db2 5856echo "configure:5857: checking whether ${CC-cc} accepts -g" >&5
10f2d63a
VZ
5857if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
5858 echo $ac_n "(cached) $ac_c" 1>&6
5859else
5860 echo 'void f(){}' > conftest.c
5861if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
5862 ac_cv_prog_cc_g=yes
5863else
5864 ac_cv_prog_cc_g=no
5865fi
5866rm -f conftest*
5867
5868fi
5869
5870echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
5871if test "$ac_test_CFLAGS" = set; then
5872 CFLAGS="$ac_save_CFLAGS"
5873elif test $ac_cv_prog_cc_g = yes; then
5874 if test "$GCC" = yes; then
5875 CFLAGS="-g -O2"
5876 else
5877 CFLAGS="-g"
5878 fi
5879else
5880 if test "$GCC" = yes; then
5881 CFLAGS="-O2"
5882 else
5883 CFLAGS=
5884 fi
5885fi
5886
5887
5888CFLAGS=`echo "$CFLAGS" | sed 's/-g//g'`
5889
5890echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
7eef8db2 5891echo "configure:5892: checking how to run the C preprocessor" >&5
10f2d63a
VZ
5892# On Suns, sometimes $CPP names a directory.
5893if test -n "$CPP" && test -d "$CPP"; then
5894 CPP=
5895fi
5896if test -z "$CPP"; then
5897if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
5898 echo $ac_n "(cached) $ac_c" 1>&6
5899else
5900 # This must be in double quotes, not single quotes, because CPP may get
5901 # substituted into the Makefile and "${CC-cc}" will confuse make.
5902 CPP="${CC-cc} -E"
5903 # On the NeXT, cc -E runs the code through the compiler's parser,
5904 # not just through cpp.
5905 cat > conftest.$ac_ext <<EOF
7eef8db2 5906#line 5907 "configure"
10f2d63a
VZ
5907#include "confdefs.h"
5908#include <assert.h>
5909Syntax Error
5910EOF
5911ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7eef8db2 5912{ (eval echo configure:5913: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
5913ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5914if test -z "$ac_err"; then
5915 :
5916else
5917 echo "$ac_err" >&5
5918 echo "configure: failed program was:" >&5
5919 cat conftest.$ac_ext >&5
5920 rm -rf conftest*
5921 CPP="${CC-cc} -E -traditional-cpp"
5922 cat > conftest.$ac_ext <<EOF
7eef8db2 5923#line 5924 "configure"
10f2d63a
VZ
5924#include "confdefs.h"
5925#include <assert.h>
5926Syntax Error
5927EOF
5928ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7eef8db2 5929{ (eval echo configure:5930: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
5930ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5931if test -z "$ac_err"; then
5932 :
5933else
5934 echo "$ac_err" >&5
5935 echo "configure: failed program was:" >&5
5936 cat conftest.$ac_ext >&5
5937 rm -rf conftest*
5938 CPP="${CC-cc} -nologo -E"
5939 cat > conftest.$ac_ext <<EOF
7eef8db2 5940#line 5941 "configure"
10f2d63a
VZ
5941#include "confdefs.h"
5942#include <assert.h>
5943Syntax Error
5944EOF
5945ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7eef8db2 5946{ (eval echo configure:5947: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
5947ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5948if test -z "$ac_err"; then
5949 :
5950else
5951 echo "$ac_err" >&5
5952 echo "configure: failed program was:" >&5
5953 cat conftest.$ac_ext >&5
5954 rm -rf conftest*
5955 CPP=/lib/cpp
5956fi
5957rm -f conftest*
5958fi
5959rm -f conftest*
5960fi
5961rm -f conftest*
5962 ac_cv_prog_CPP="$CPP"
5963fi
5964 CPP="$ac_cv_prog_CPP"
5965else
5966 ac_cv_prog_CPP="$CPP"
5967fi
5968echo "$ac_t""$CPP" 1>&6
5969
5970
5971if test $ac_cv_prog_gcc = yes; then
5972 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
7eef8db2 5973echo "configure:5974: checking whether ${CC-cc} needs -traditional" >&5
10f2d63a
VZ
5974if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
5975 echo $ac_n "(cached) $ac_c" 1>&6
5976else
5977 ac_pattern="Autoconf.*'x'"
5978 cat > conftest.$ac_ext <<EOF
7eef8db2 5979#line 5980 "configure"
10f2d63a
VZ
5980#include "confdefs.h"
5981#include <sgtty.h>
5982Autoconf TIOCGETP
5983EOF
5984if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5985 egrep "$ac_pattern" >/dev/null 2>&1; then
5986 rm -rf conftest*
5987 ac_cv_prog_gcc_traditional=yes
5988else
5989 rm -rf conftest*
5990 ac_cv_prog_gcc_traditional=no
5991fi
5992rm -f conftest*
5993
5994
5995 if test $ac_cv_prog_gcc_traditional = no; then
5996 cat > conftest.$ac_ext <<EOF
7eef8db2 5997#line 5998 "configure"
10f2d63a
VZ
5998#include "confdefs.h"
5999#include <termio.h>
6000Autoconf TCGETA
6001EOF
6002if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6003 egrep "$ac_pattern" >/dev/null 2>&1; then
6004 rm -rf conftest*
6005 ac_cv_prog_gcc_traditional=yes
6006fi
6007rm -f conftest*
6008
6009 fi
6010fi
6011
6012echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
6013 if test $ac_cv_prog_gcc_traditional = yes; then
6014 CC="$CC -traditional"
6015 fi
6016fi
6017
6018
6019
6020ac_ext=C
6021# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6022ac_cpp='$CXXCPP $CPPFLAGS'
6023ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6024ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6025cross_compiling=$ac_cv_prog_cxx_cross
6026
6027
6028for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
6029do
6030# Extract the first word of "$ac_prog", so it can be a program name with args.
6031set dummy $ac_prog; ac_word=$2
6032echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7eef8db2 6033echo "configure:6034: checking for $ac_word" >&5
10f2d63a
VZ
6034if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
6035 echo $ac_n "(cached) $ac_c" 1>&6
6036else
6037 if test -n "$CXX"; then
6038 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6039else
6040 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6041 ac_dummy="$PATH"
6042 for ac_dir in $ac_dummy; do
6043 test -z "$ac_dir" && ac_dir=.
6044 if test -f $ac_dir/$ac_word; then
6045 ac_cv_prog_CXX="$ac_prog"
6046 break
6047 fi
6048 done
6049 IFS="$ac_save_ifs"
6050fi
6051fi
6052CXX="$ac_cv_prog_CXX"
6053if test -n "$CXX"; then
6054 echo "$ac_t""$CXX" 1>&6
6055else
6056 echo "$ac_t""no" 1>&6
6057fi
6058
6059test -n "$CXX" && break
6060done
6061test -n "$CXX" || CXX="gcc"
6062
6063
6064echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
7eef8db2 6065echo "configure:6066: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
10f2d63a
VZ
6066
6067ac_ext=C
6068# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6069ac_cpp='$CXXCPP $CPPFLAGS'
6070ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6071ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6072cross_compiling=$ac_cv_prog_cxx_cross
6073
6074cat > conftest.$ac_ext << EOF
6075
7eef8db2 6076#line 6077 "configure"
10f2d63a
VZ
6077#include "confdefs.h"
6078
6079int main(){return(0);}
6080EOF
7eef8db2 6081if { (eval echo configure:6082: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
6082 ac_cv_prog_cxx_works=yes
6083 # If we can't run a trivial program, we are probably using a cross compiler.
6084 if (./conftest; exit) 2>/dev/null; then
6085 ac_cv_prog_cxx_cross=no
6086 else
6087 ac_cv_prog_cxx_cross=yes
6088 fi
6089else
6090 echo "configure: failed program was:" >&5
6091 cat conftest.$ac_ext >&5
6092 ac_cv_prog_cxx_works=no
6093fi
6094rm -fr conftest*
6095ac_ext=C
6096# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6097ac_cpp='$CXXCPP $CPPFLAGS'
6098ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6099ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6100cross_compiling=$ac_cv_prog_cxx_cross
6101
6102echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
6103if test $ac_cv_prog_cxx_works = no; then
6104 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
6105fi
6106echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
7eef8db2 6107echo "configure:6108: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
10f2d63a
VZ
6108echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
6109cross_compiling=$ac_cv_prog_cxx_cross
6110
6111echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
7eef8db2 6112echo "configure:6113: checking whether we are using GNU C++" >&5
10f2d63a
VZ
6113if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
6114 echo $ac_n "(cached) $ac_c" 1>&6
6115else
6116 cat > conftest.C <<EOF
6117#ifdef __GNUC__
6118 yes;
6119#endif
6120EOF
7eef8db2 6121if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:6122: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
10f2d63a
VZ
6122 ac_cv_prog_gxx=yes
6123else
6124 ac_cv_prog_gxx=no
6125fi
6126fi
6127
6128echo "$ac_t""$ac_cv_prog_gxx" 1>&6
6129
6130if test $ac_cv_prog_gxx = yes; then
6131 GXX=yes
6132else
6133 GXX=
6134fi
6135
6136ac_test_CXXFLAGS="${CXXFLAGS+set}"
6137ac_save_CXXFLAGS="$CXXFLAGS"
6138CXXFLAGS=
6139echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
7eef8db2 6140echo "configure:6141: checking whether ${CXX-g++} accepts -g" >&5
10f2d63a
VZ
6141if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
6142 echo $ac_n "(cached) $ac_c" 1>&6
6143else
6144 echo 'void f(){}' > conftest.cc
6145if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
6146 ac_cv_prog_cxx_g=yes
6147else
6148 ac_cv_prog_cxx_g=no
6149fi
6150rm -f conftest*
6151
6152fi
6153
6154echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
6155if test "$ac_test_CXXFLAGS" = set; then
6156 CXXFLAGS="$ac_save_CXXFLAGS"
6157elif test $ac_cv_prog_cxx_g = yes; then
6158 if test "$GXX" = yes; then
6159 CXXFLAGS="-g -O2"
6160 else
6161 CXXFLAGS="-g"
6162 fi
6163else
6164 if test "$GXX" = yes; then
6165 CXXFLAGS="-O2"
6166 else
6167 CXXFLAGS=
6168 fi
6169fi
6170
6171
6172echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
7eef8db2 6173echo "configure:6174: checking how to run the C++ preprocessor" >&5
10f2d63a
VZ
6174if test -z "$CXXCPP"; then
6175if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
6176 echo $ac_n "(cached) $ac_c" 1>&6
6177else
6178 ac_ext=C
6179# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6180ac_cpp='$CXXCPP $CPPFLAGS'
6181ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6182ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6183cross_compiling=$ac_cv_prog_cxx_cross
6184 CXXCPP="${CXX-g++} -E"
6185 cat > conftest.$ac_ext <<EOF
7eef8db2 6186#line 6187 "configure"
10f2d63a
VZ
6187#include "confdefs.h"
6188#include <stdlib.h>
6189EOF
6190ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7eef8db2 6191{ (eval echo configure:6192: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
6192ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6193if test -z "$ac_err"; then
6194 :
6195else
6196 echo "$ac_err" >&5
6197 echo "configure: failed program was:" >&5
6198 cat conftest.$ac_ext >&5
6199 rm -rf conftest*
6200 CXXCPP=/lib/cpp
6201fi
6202rm -f conftest*
6203 ac_cv_prog_CXXCPP="$CXXCPP"
6204ac_ext=C
6205# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6206ac_cpp='$CXXCPP $CPPFLAGS'
6207ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6208ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6209cross_compiling=$ac_cv_prog_cxx_cross
6210fi
6211fi
6212CXXCPP="$ac_cv_prog_CXXCPP"
6213echo "$ac_t""$CXXCPP" 1>&6
6214
6215
6216CXXFLAGS=`echo "$CXXFLAGS" | sed 's/-g//g'`
6217
6218ac_ext=c
6219# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6220ac_cpp='$CPP $CPPFLAGS'
6221ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6222ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6223cross_compiling=$ac_cv_prog_cc_cross
6224
6225
6226# Extract the first word of "ranlib", so it can be a program name with args.
6227set dummy ranlib; ac_word=$2
6228echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7eef8db2 6229echo "configure:6230: checking for $ac_word" >&5
10f2d63a
VZ
6230if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
6231 echo $ac_n "(cached) $ac_c" 1>&6
6232else
6233 if test -n "$RANLIB"; then
6234 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6235else
6236 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6237 ac_dummy="$PATH"
6238 for ac_dir in $ac_dummy; do
6239 test -z "$ac_dir" && ac_dir=.
6240 if test -f $ac_dir/$ac_word; then
6241 ac_cv_prog_RANLIB="ranlib"
6242 break
6243 fi
6244 done
6245 IFS="$ac_save_ifs"
6246 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
6247fi
6248fi
6249RANLIB="$ac_cv_prog_RANLIB"
6250if test -n "$RANLIB"; then
6251 echo "$ac_t""$RANLIB" 1>&6
6252else
6253 echo "$ac_t""no" 1>&6
6254fi
6255
6256
6257# Extract the first word of "ar", so it can be a program name with args.
6258set dummy ar; ac_word=$2
6259echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7eef8db2 6260echo "configure:6261: checking for $ac_word" >&5
10f2d63a
VZ
6261if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
6262 echo $ac_n "(cached) $ac_c" 1>&6
6263else
6264 if test -n "$AR"; then
6265 ac_cv_prog_AR="$AR" # Let the user override the test.
6266else
6267 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6268 ac_dummy="$PATH"
6269 for ac_dir in $ac_dummy; do
6270 test -z "$ac_dir" && ac_dir=.
6271 if test -f $ac_dir/$ac_word; then
6272 ac_cv_prog_AR="ar"
6273 break
6274 fi
6275 done
6276 IFS="$ac_save_ifs"
6277 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
6278fi
6279fi
6280AR="$ac_cv_prog_AR"
6281if test -n "$AR"; then
6282 echo "$ac_t""$AR" 1>&6
6283else
6284 echo "$ac_t""no" 1>&6
6285fi
6286
6287
6288# Find a good install program. We prefer a C program (faster),
6289# so one script is as good as another. But avoid the broken or
6290# incompatible versions:
6291# SysV /etc/install, /usr/sbin/install
6292# SunOS /usr/etc/install
6293# IRIX /sbin/install
6294# AIX /bin/install
6295# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6296# AFS /usr/afsws/bin/install, which mishandles nonexistent args
6297# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6298# ./install, which can be erroneously created by make from ./install.sh.
6299echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
7eef8db2 6300echo "configure:6301: checking for a BSD compatible install" >&5
10f2d63a
VZ
6301if test -z "$INSTALL"; then
6302if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
6303 echo $ac_n "(cached) $ac_c" 1>&6
6304else
6305 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
6306 for ac_dir in $PATH; do
6307 # Account for people who put trailing slashes in PATH elements.
6308 case "$ac_dir/" in
6309 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
6310 *)
6311 # OSF1 and SCO ODT 3.0 have their own names for install.
6312 # Don't use installbsd from OSF since it installs stuff as root
6313 # by default.
6314 for ac_prog in ginstall scoinst install; do
6315 if test -f $ac_dir/$ac_prog; then
6316 if test $ac_prog = install &&
6317 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
6318 # AIX install. It has an incompatible calling convention.
6319 :
6320 else
6321 ac_cv_path_install="$ac_dir/$ac_prog -c"
6322 break 2
6323 fi
6324 fi
6325 done
6326 ;;
6327 esac
6328 done
6329 IFS="$ac_save_IFS"
6330
6331fi
6332 if test "${ac_cv_path_install+set}" = set; then
6333 INSTALL="$ac_cv_path_install"
6334 else
6335 # As a last resort, use the slow shell script. We don't cache a
6336 # path for INSTALL within a source directory, because that will
6337 # break other packages using the cache if that directory is
6338 # removed, or if the path is relative.
6339 INSTALL="$ac_install_sh"
6340 fi
6341fi
6342echo "$ac_t""$INSTALL" 1>&6
6343
6344# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6345# It thinks the first close brace ends the variable substitution.
6346test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6347
6348test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
6349
6350test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6351
6352
6353# Extract the first word of "strip", so it can be a program name with args.
6354set dummy strip; ac_word=$2
6355echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7eef8db2 6356echo "configure:6357: checking for $ac_word" >&5
10f2d63a
VZ
6357if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
6358 echo $ac_n "(cached) $ac_c" 1>&6
6359else
6360 if test -n "$STRIP"; then
6361 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6362else
6363 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6364 ac_dummy="$PATH"
6365 for ac_dir in $ac_dummy; do
6366 test -z "$ac_dir" && ac_dir=.
6367 if test -f $ac_dir/$ac_word; then
6368 ac_cv_prog_STRIP="strip"
6369 break
6370 fi
6371 done
6372 IFS="$ac_save_ifs"
6373 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true"
6374fi
6375fi
6376STRIP="$ac_cv_prog_STRIP"
6377if test -n "$STRIP"; then
6378 echo "$ac_t""$STRIP" 1>&6
6379else
6380 echo "$ac_t""no" 1>&6
6381fi
6382
6383
6384echo $ac_n "checking "make for VPATH support"""... $ac_c" 1>&6
7eef8db2 6385echo "configure:6386: checking "make for VPATH support"" >&5
10f2d63a
VZ
6386cat - << EOF > confMake
6387check : file
6388 cp \$? \$@
6389 cp \$? final_file
6390EOF
6391
6392if test ! -d sub ; then
6393 mkdir sub
6394fi
6395echo dummy > sub/file
6396${MAKE-make} -f confMake VPATH=sub 2> config.log > /dev/null
6397RESULT=$?
6398rm -f sub/file check final_file confMake
6399rmdir sub
6400if test "$RESULT" = 0; then
6401 echo "$ac_t""yes" 1>&6
6402else
6403 echo "$ac_t""no" 1>&6
6404 { echo "configure: error: You need a make-utility that is able to use the variable
6405VPATH correctly.
6406If your version of make does not support VPATH correctly" 1>&2; exit 1; }
6407fi
6408
6409for ac_prog in 'bison -y' byacc
6410do
6411# Extract the first word of "$ac_prog", so it can be a program name with args.
6412set dummy $ac_prog; ac_word=$2
6413echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7eef8db2 6414echo "configure:6415: checking for $ac_word" >&5
10f2d63a
VZ
6415if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
6416 echo $ac_n "(cached) $ac_c" 1>&6
6417else
6418 if test -n "$YACC"; then
6419 ac_cv_prog_YACC="$YACC" # Let the user override the test.
6420else
6421 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6422 ac_dummy="$PATH"
6423 for ac_dir in $ac_dummy; do
6424 test -z "$ac_dir" && ac_dir=.
6425 if test -f $ac_dir/$ac_word; then
6426 ac_cv_prog_YACC="$ac_prog"
6427 break
6428 fi
6429 done
6430 IFS="$ac_save_ifs"
6431fi
6432fi
6433YACC="$ac_cv_prog_YACC"
6434if test -n "$YACC"; then
6435 echo "$ac_t""$YACC" 1>&6
6436else
6437 echo "$ac_t""no" 1>&6
6438fi
6439
6440test -n "$YACC" && break
6441done
6442test -n "$YACC" || YACC="yacc"
6443
6444
6445# Extract the first word of "flex", so it can be a program name with args.
6446set dummy flex; ac_word=$2
6447echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7eef8db2 6448echo "configure:6449: checking for $ac_word" >&5
10f2d63a
VZ
6449if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
6450 echo $ac_n "(cached) $ac_c" 1>&6
6451else
6452 if test -n "$LEX"; then
6453 ac_cv_prog_LEX="$LEX" # Let the user override the test.
6454else
6455 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6456 ac_dummy="$PATH"
6457 for ac_dir in $ac_dummy; do
6458 test -z "$ac_dir" && ac_dir=.
6459 if test -f $ac_dir/$ac_word; then
6460 ac_cv_prog_LEX="flex"
6461 break
6462 fi
6463 done
6464 IFS="$ac_save_ifs"
6465 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
6466fi
6467fi
6468LEX="$ac_cv_prog_LEX"
6469if test -n "$LEX"; then
6470 echo "$ac_t""$LEX" 1>&6
6471else
6472 echo "$ac_t""no" 1>&6
6473fi
6474
6475if test -z "$LEXLIB"
6476then
6477 case "$LEX" in
6478 flex*) ac_lib=fl ;;
6479 *) ac_lib=l ;;
6480 esac
6481 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
7eef8db2 6482echo "configure:6483: checking for yywrap in -l$ac_lib" >&5
10f2d63a
VZ
6483ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
6484if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6485 echo $ac_n "(cached) $ac_c" 1>&6
6486else
6487 ac_save_LIBS="$LIBS"
6488LIBS="-l$ac_lib $LIBS"
6489cat > conftest.$ac_ext <<EOF
7eef8db2 6490#line 6491 "configure"
10f2d63a
VZ
6491#include "confdefs.h"
6492/* Override any gcc2 internal prototype to avoid an error. */
6493/* We use char because int might match the return type of a gcc2
6494 builtin and then its argument prototype would still apply. */
6495char yywrap();
6496
6497int main() {
6498yywrap()
6499; return 0; }
6500EOF
7eef8db2 6501if { (eval echo configure:6502: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
6502 rm -rf conftest*
6503 eval "ac_cv_lib_$ac_lib_var=yes"
6504else
6505 echo "configure: failed program was:" >&5
6506 cat conftest.$ac_ext >&5
6507 rm -rf conftest*
6508 eval "ac_cv_lib_$ac_lib_var=no"
6509fi
6510rm -f conftest*
6511LIBS="$ac_save_LIBS"
6512
6513fi
6514if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6515 echo "$ac_t""yes" 1>&6
6516 LEXLIB="-l$ac_lib"
6517else
6518 echo "$ac_t""no" 1>&6
6519fi
6520
6521fi
6522
6523
6524echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
7eef8db2 6525echo "configure:6526: checking whether ln -s works" >&5
10f2d63a
VZ
6526if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
6527 echo $ac_n "(cached) $ac_c" 1>&6
6528else
6529 rm -f conftestdata
6530if ln -s X conftestdata 2>/dev/null
6531then
6532 rm -f conftestdata
6533 ac_cv_prog_LN_S="ln -s"
6534else
6535 ac_cv_prog_LN_S=ln
6536fi
6537fi
6538LN_S="$ac_cv_prog_LN_S"
6539if test "$ac_cv_prog_LN_S" = "ln -s"; then
6540 echo "$ac_t""yes" 1>&6
6541else
6542 echo "$ac_t""no" 1>&6
6543fi
6544
6545
6546
6547SEARCH_INCLUDE="\
6548 /usr/local/include \
6549 \
6550 /usr/Motif-1.2/include \
6551 /usr/Motif-2.1/include \
6552 \
6553 /usr/include/Motif1.2 \
6554 /opt/xpm/include/X11 \
6555 /opt/GBxpm/include/ \
6556 /opt/GBxpm/X11/include/ \
6557 \
6558 /usr/Motif1.2/include \
6559 /usr/dt/include \
afc31813
VZ
6560 /usr/openwin/include \
6561 \
10f2d63a
VZ
6562 /usr/include/Xm \
6563 \
6564 /usr/X11R6/include \
afc31813 6565 /usr/X11R6.4/include \
10f2d63a
VZ
6566 /usr/X11R5/include \
6567 /usr/X11R4/include \
6568 \
10f2d63a
VZ
6569 /usr/include/X11R6 \
6570 /usr/include/X11R5 \
6571 /usr/include/X11R4 \
6572 \
6573 /usr/local/X11R6/include \
6574 /usr/local/X11R5/include \
6575 /usr/local/X11R4/include \
6576 \
6577 /usr/local/include/X11R6 \
6578 /usr/local/include/X11R5 \
6579 /usr/local/include/X11R4 \
6580 \
6581 /usr/X11/include \
6582 /usr/include/X11 \
6583 /usr/local/X11/include \
6584 /usr/local/include/X11 \
6585 \
6586 /usr/X386/include \
6587 /usr/x386/include \
6588 /usr/XFree86/include/X11 \
6589 \
6590 /usr/include/gtk \
6591 /usr/local/include/gtk \
6592 /usr/include/glib \
6593 /usr/local/include/glib \
6594 \
6595 /usr/include/qt \
6596 /usr/local/include/qt \
6597 \
6598 /usr/include/windows \
6599 /usr/include/wine \
6600 /usr/local/include/wine \
6601 \
6602 /usr/unsupported/include \
6603 /usr/athena/include \
6604 /usr/local/x11r5/include \
6605 /usr/lpp/Xamples/include \
6606 \
10f2d63a 6607 /usr/openwin/share/include \
928b5c08
VZ
6608 \
6609 /usr/include"
10f2d63a
VZ
6610
6611SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s/include/lib/g` "
6612
6613
6614cat > confcache <<\EOF
6615# This file is a shell script that caches the results of configure
6616# tests run on this system so they can be shared between configure
6617# scripts and configure runs. It is not useful on other systems.
6618# If it contains results you don't want to keep, you may remove or edit it.
6619#
6620# By default, configure uses ./config.cache as the cache file,
6621# creating it if it does not exist already. You can give configure
6622# the --cache-file=FILE option to use a different cache file; that is
6623# what configure does when it calls configure scripts in
6624# subdirectories, so they share the cache.
6625# Giving --cache-file=/dev/null disables caching, for debugging configure.
6626# config.status only pays attention to the cache file if you give it the
6627# --recheck option to rerun configure.
6628#
6629EOF
6630# The following way of writing the cache mishandles newlines in values,
6631# but we know of no workaround that is simple, portable, and efficient.
6632# So, don't put newlines in cache variables' values.
6633# Ultrix sh set writes to stderr and can't be redirected directly,
6634# and sets the high bit in the cache file unless we assign to the vars.
6635(set) 2>&1 |
6636 case `(ac_space=' '; set | grep ac_space) 2>&1` in
6637 *ac_space=\ *)
6638 # `set' does not quote correctly, so add quotes (double-quote substitution
6639 # turns \\\\ into \\, and sed turns \\ into \).
6640 sed -n \
6641 -e "s/'/'\\\\''/g" \
6642 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
6643 ;;
6644 *)
6645 # `set' quotes correctly as required by POSIX, so do not add quotes.
6646 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
6647 ;;
6648 esac >> confcache
6649if cmp -s $cache_file confcache; then
6650 :
6651else
6652 if test -w $cache_file; then
6653 echo "updating cache $cache_file"
6654 cat confcache > $cache_file
6655 else
6656 echo "not updating unwritable cache $cache_file"
6657 fi
6658fi
6659rm -f confcache
6660
6661
6662
6663if test "$wxUSE_GUI" = "yes"; then
6664
6665TOOLKIT=
6666TOOLKIT_INCLUDE=
6667
6668GUIOBJS=
6669COMMONOBJS=
6670GENERICOBJS=
6671
6672GUI_TK_LIBRARY=
6673GUI_TK_LINK=
6674
6675WXGTK12=
6676
6677WXWINE=
6678
6679PROGRAM_EXT=
6680
6681if test "$wxUSE_CYGWIN" = 1 || test "$wxUSE_MINGW" = 1 ; then
6682 if test "$cross_compiling" = "yes" ; then
6683 echo "configure: warning: Cross compiling --- skipping windows.h check" 1>&2
6684 else
6685 echo $ac_n "checking for Windows headers""... $ac_c" 1>&6
7eef8db2 6686echo "configure:6687: checking for Windows headers" >&5
10f2d63a
VZ
6687
6688ac_find_includes=
6689for ac_dir in $SEARCH_INCLUDE;
6690 do
6691 if test -f "$ac_dir/windows.h"; then
6692 ac_find_includes=$ac_dir
6693 break
6694 fi
6695 done
6696
6697 if test "$ac_find_includes" != "" ; then
6698 echo "$ac_t""found $ac_find_includes" 1>&6
6699 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE -I$ac_find_includes"
6700 else
6701 echo "$ac_t""no" 1>&6
6702 { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; }
6703 fi
6704 fi
6705
6706 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS msw"
6707 LIBS="$LIBS -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lctl3d32 -lcrtdll -ladvapi32 -lwsock32"
6708
6709 if test "$wxUSE_MINGW" = 1; then
6710 LDFLAGS="$LDFLAGS -mwindows"
6711 fi
6712
6713 TOOLKIT=MSW
6714
6715 GUIOBJS="\$(MSW_GUIOBJS)"
6716 GUIHEADERS="\$(MSW_HEADERS)"
6717 COMMONOBJS="\$(MSW_COMMONOBJS)"
6718 GENERICOBJS="\$(MSW_GENERICOBJS)"
6719 UNIXOBJS=
6720 GUIDIST=MSW_DIST
6721 PROGRAM_EXT=.exe
6722fi
6723
6724if test "$wxUSE_GTK" = 1; then
6725
6726 if test x$gtk_config_exec_prefix != x ; then
6727 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
6728 if test x${GTK_CONFIG+set} != xset ; then
6729 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
6730 fi
6731 fi
6732 if test x$gtk_config_prefix != x ; then
6733 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
6734 if test x${GTK_CONFIG+set} != xset ; then
6735 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
6736 fi
6737 fi
6738
6739 # Extract the first word of "gtk-config", so it can be a program name with args.
6740set dummy gtk-config; ac_word=$2
6741echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7eef8db2 6742echo "configure:6743: checking for $ac_word" >&5
10f2d63a
VZ
6743if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
6744 echo $ac_n "(cached) $ac_c" 1>&6
6745else
6746 case "$GTK_CONFIG" in
6747 /*)
6748 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
6749 ;;
6750 ?:/*)
6751 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
6752 ;;
6753 *)
6754 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6755 ac_dummy="$PATH"
6756 for ac_dir in $ac_dummy; do
6757 test -z "$ac_dir" && ac_dir=.
6758 if test -f $ac_dir/$ac_word; then
6759 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
6760 break
6761 fi
6762 done
6763 IFS="$ac_save_ifs"
6764 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
6765 ;;
6766esac
6767fi
6768GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
6769if test -n "$GTK_CONFIG"; then
6770 echo "$ac_t""$GTK_CONFIG" 1>&6
6771else
6772 echo "$ac_t""no" 1>&6
6773fi
6774
6775 min_gtk_version=1.2.1
6776 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
7eef8db2 6777echo "configure:6778: checking for GTK - version >= $min_gtk_version" >&5
10f2d63a
VZ
6778 no_gtk=""
6779 if test "$GTK_CONFIG" != "no" ; then
6780 GTK_CFLAGS=`$GTK_CONFIG --cflags`
6781 GTK_LIBS=`$GTK_CONFIG --libs`
6782 ac_save_CFLAGS="$CFLAGS"
6783 ac_save_LIBS="$LIBS"
6784 CFLAGS="$CFLAGS $GTK_CFLAGS"
6785 LIBS="$LIBS $GTK_LIBS"
6786 if test "$cross_compiling" = yes; then
6787 echo $ac_n "cross compiling; assumed OK... $ac_c"
6788else
6789 cat > conftest.$ac_ext <<EOF
7eef8db2 6790#line 6791 "configure"
10f2d63a
VZ
6791#include "confdefs.h"
6792
6793#include <gtk/gtk.h>
f49f2b0c 6794#include <gtk/gtkfeatures.h>
10f2d63a
VZ
6795#include <stdio.h>
6796
6797int
6798main ()
6799{
6800 int major, minor, micro;
6801
6802 if (sscanf("$min_gtk_version", "%d.%d.%d", &major, &minor, &micro) != 3) {
6803 printf("%s, bad version string\n", "$min_gtk_version");
6804 exit(1);
6805 }
6806
f49f2b0c
RR
6807 if ((GTK_MAJOR_VERSION != gtk_major_version) ||
6808 (GTK_MINOR_VERSION != gtk_minor_version) ||
6809 (GTK_MICRO_VERSION != gtk_micro_version)) {
6810 printf("Headers vs. library version mismatch!\n");
6811 exit(1);
6812 }
6813
10f2d63a
VZ
6814 if (gtk_minor_version == 1) return FALSE;
6815
6816 return !((gtk_major_version > major) ||
6817 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
6818 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)));
6819}
6820
6821EOF
7eef8db2 6822if { (eval echo configure:6823: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10f2d63a
VZ
6823then
6824 :
6825else
6826 echo "configure: failed program was:" >&5
6827 cat conftest.$ac_ext >&5
6828 rm -fr conftest*
6829 no_gtk=yes
6830fi
6831rm -fr conftest*
6832fi
6833
6834 CFLAGS="$ac_save_CFLAGS"
6835 LIBS="$ac_save_LIBS"
6836 else
6837 no_gtk=yes
6838 fi
6839 if test "x$no_gtk" = x ; then
6840 echo "$ac_t""yes" 1>&6
6841 WXGTK12=1
6842 else
6843 echo "$ac_t""no" 1>&6
6844 GTK_CFLAGS=""
6845 GTK_LIBS=""
6846 { echo "configure: error: Is gtk-config in path and GTK+ is version 1.2.1 or above?" 1>&2; exit 1; }
6847 fi
6848
6849
6850
6851
6852 TOOLKIT_INCLUDE="$GTK_CFLAGS"
6853 GUI_TK_LIBRARY="$GTK_LIBS"
6854 TOOLKIT=GTK
6855
6856 GUIOBJS="\$(GTK_GUIOBJS)"
6857 GUIHEADERS="\$(GTK_HEADERS)"
6858 COMMONOBJS="\$(GTK_COMMONOBJS)"
6859 GENERICOBJS="\$(GTK_GENERICOBJS)"
6860 GUIDEPS="\$(GTK_GUIDEPS)"
6861 COMMONDEPS="\$(GTK_COMMONDEPS)"
6862 GENERICDEPS="\$(GTK_GENERICDEPS)"
6863 UNIXOBJS="\$(UNIX_OBJS)"
6864 GUIDIST=GTK_DIST
6865fi
6866
6867if test "$wxUSE_WINE" = 1; then
6868 echo $ac_n "checking for WINE includes""... $ac_c" 1>&6
7eef8db2 6869echo "configure:6870: checking for WINE includes" >&5
10f2d63a
VZ
6870
6871ac_find_includes=
6872for ac_dir in $SEARCH_INCLUDE;
6873 do
6874 if test -f "$ac_dir/windows.h"; then
6875 ac_find_includes=$ac_dir
6876 break
6877 fi
6878 done
6879
6880 if test "$ac_find_includes" != "" ; then
6881 echo "$ac_t""found $ac_find_includes" 1>&6
6882 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE -I$ac_find_includes"
6883 else
6884 echo "$ac_t""no" 1>&6
6885 { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; }
6886 fi
6887
6888 XPM_LINK=""
6889 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
7eef8db2 6890echo "configure:6891: checking for Xpm library" >&5
10f2d63a
VZ
6891
6892ac_find_libraries=
6893for ac_dir in $SEARCH_LIB;
6894 do
6895 for ac_extension in a so sl; do
6896 if test -f "$ac_dir/libXpm.$ac_extension"; then
6897 ac_find_libraries=$ac_dir
6898 break 2
6899 fi
6900 done
6901 done
6902
6903 if test "$ac_find_libraries" != "" ; then
6904 GUI_TK_LIBRARY="-L$ac_find_libraries"
6905 XPM_LINK="-lXpm"
6906 cat >> confdefs.h <<\EOF
6907#define wxHAVE_LIB_XPM 1
6908EOF
6909
6910 echo "$ac_t""found at $ac_find_libraries" 1>&6
6911 else
6912 echo "$ac_t""no" 1>&6
6913 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
6914 fi
6915
6916 MESA_LINK=""
6917 echo $ac_n "checking for Mesa library""... $ac_c" 1>&6
7eef8db2 6918echo "configure:6919: checking for Mesa library" >&5
10f2d63a
VZ
6919
6920ac_find_libraries=
6921for ac_dir in $SEARCH_LIB;
6922 do
6923 for ac_extension in a so sl; do
6924 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
6925 ac_find_libraries=$ac_dir
6926 break 2
6927 fi
6928 done
6929 done
6930
6931 if test "$ac_find_libraries" != "" ; then
6932 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -L$ac_find_libraries"
6933 MESA_LINK="-lMesaGL"
6934 echo "$ac_t""found at $ac_find_libraries" 1>&6
6935 else
6936 { echo "configure: error: no" 1>&2; exit 1; }
6937 fi
6938
6939 GUI_TK_LINK="-lwine $MESA_LINK $XPM_LINK -lXxf86dga -lXxf86vm -lSM -lICE -lXext -lXmu -lX11 -lncurses -lm"
6940 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $GUI_TK_LINK"
6941 WXWINE=1
6942 TOOLKIT=MSW
6943
6944 GUIHEADERS="\$(MSW_HEADERS)"
6945 GUIOBJS="\$(MSW_GUIOBJS)"
6946 COMMONOBJS="\$(MSW_COMMONOBJS)"
6947 GENERICOBJS="\$(MSW_GENERICOBJS)"
6948 GUIDEPS="\$(MSW_GUIDEPS)"
6949 COMMONDEPS="\$(MSW_COMMONDEPS)"
6950 GENERICDEPS="\$(MSW_GENERICDEPS)"
6951 UNIXOBJS="\$(UNIX_OBJS)"
6952 GUIDIST=MSW_DIST
6953fi
6954
6955if test "$wxUSE_MOTIF" = 1; then
ab9b9eab
VZ
6956 # If we find X, set shell vars x_includes and x_libraries to the
6957# paths, otherwise set no_x=yes.
6958# Uses ac_ vars as temps to allow command line to override cache and checks.
6959# --without-x overrides everything else, but does not touch the cache.
6960echo $ac_n "checking for X""... $ac_c" 1>&6
7eef8db2 6961echo "configure:6962: checking for X" >&5
ab9b9eab
VZ
6962
6963# Check whether --with-x or --without-x was given.
6964if test "${with_x+set}" = set; then
6965 withval="$with_x"
6966 :
6967fi
ba337fe7 6968
ab9b9eab
VZ
6969# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
6970if test "x$with_x" = xno; then
6971 # The user explicitly disabled X.
6972 have_x=disabled
6973else
6974 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
6975 # Both variables are already set.
6976 have_x=yes
6977 else
6978if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
6979 echo $ac_n "(cached) $ac_c" 1>&6
6980else
6981 # One or both of the vars are not set, and there is no cached value.
6982ac_x_includes=NO ac_x_libraries=NO
6983rm -fr conftestdir
6984if mkdir conftestdir; then
6985 cd conftestdir
6986 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
6987 cat > Imakefile <<'EOF'
6988acfindx:
6989 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
6990EOF
6991 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
6992 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6993 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
6994 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
10f2d63a 6995 for ac_extension in a so sl; do
ab9b9eab
VZ
6996 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
6997 test -f $ac_im_libdir/libX11.$ac_extension; then
6998 ac_im_usrlibdir=$ac_im_libdir; break
10f2d63a
VZ
6999 fi
7000 done
ab9b9eab
VZ
7001 # Screen out bogus values from the imake configuration. They are
7002 # bogus both because they are the default anyway, and because
7003 # using them would break gcc on systems where it needs fixed includes.
7004 case "$ac_im_incroot" in
7005 /usr/include) ;;
7006 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
7007 esac
7008 case "$ac_im_usrlibdir" in
7009 /usr/lib | /lib) ;;
7010 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
7011 esac
ba337fe7 7012 fi
ab9b9eab
VZ
7013 cd ..
7014 rm -fr conftestdir
7015fi
10f2d63a 7016
ab9b9eab
VZ
7017if test "$ac_x_includes" = NO; then
7018 # Guess where to find include files, by looking for this one X11 .h file.
7019 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
ba337fe7 7020
ab9b9eab
VZ
7021 # First, try using that file with no special directory specified.
7022cat > conftest.$ac_ext <<EOF
7eef8db2 7023#line 7024 "configure"
ab9b9eab
VZ
7024#include "confdefs.h"
7025#include <$x_direct_test_include>
7026EOF
7027ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7eef8db2 7028{ (eval echo configure:7029: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ab9b9eab
VZ
7029ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7030if test -z "$ac_err"; then
7031 rm -rf conftest*
7032 # We can compile using X headers with no special include directory.
7033ac_x_includes=
7034else
7035 echo "$ac_err" >&5
7036 echo "configure: failed program was:" >&5
7037 cat conftest.$ac_ext >&5
7038 rm -rf conftest*
7039 # Look for the header file in a standard set of common directories.
7040# Check X11 before X11Rn because it is often a symlink to the current release.
7041 for ac_dir in \
7042 /usr/X11/include \
7043 /usr/X11R6/include \
7044 /usr/X11R5/include \
7045 /usr/X11R4/include \
7046 \
7047 /usr/include/X11 \
7048 /usr/include/X11R6 \
7049 /usr/include/X11R5 \
7050 /usr/include/X11R4 \
7051 \
7052 /usr/local/X11/include \
7053 /usr/local/X11R6/include \
7054 /usr/local/X11R5/include \
7055 /usr/local/X11R4/include \
7056 \
7057 /usr/local/include/X11 \
7058 /usr/local/include/X11R6 \
7059 /usr/local/include/X11R5 \
7060 /usr/local/include/X11R4 \
7061 \
7062 /usr/X386/include \
7063 /usr/x386/include \
7064 /usr/XFree86/include/X11 \
7065 \
7066 /usr/include \
7067 /usr/local/include \
7068 /usr/unsupported/include \
7069 /usr/athena/include \
7070 /usr/local/x11r5/include \
7071 /usr/lpp/Xamples/include \
7072 \
7073 /usr/openwin/include \
7074 /usr/openwin/share/include \
7075 ; \
10f2d63a 7076 do
ab9b9eab
VZ
7077 if test -r "$ac_dir/$x_direct_test_include"; then
7078 ac_x_includes=$ac_dir
10f2d63a
VZ
7079 break
7080 fi
7081 done
ab9b9eab
VZ
7082fi
7083rm -f conftest*
7084fi # $ac_x_includes = NO
10f2d63a 7085
ab9b9eab
VZ
7086if test "$ac_x_libraries" = NO; then
7087 # Check for the libraries.
10f2d63a 7088
ab9b9eab
VZ
7089 test -z "$x_direct_test_library" && x_direct_test_library=Xt
7090 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
10f2d63a 7091
ab9b9eab
VZ
7092 # See if we find them without any special options.
7093 # Don't add to $LIBS permanently.
7094 ac_save_LIBS="$LIBS"
7095 LIBS="-l$x_direct_test_library $LIBS"
7096cat > conftest.$ac_ext <<EOF
7eef8db2 7097#line 7098 "configure"
ab9b9eab 7098#include "confdefs.h"
10f2d63a 7099
ab9b9eab
VZ
7100int main() {
7101${x_direct_test_function}()
7102; return 0; }
7103EOF
7eef8db2 7104if { (eval echo configure:7105: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
7105 rm -rf conftest*
7106 LIBS="$ac_save_LIBS"
7107# We can link X programs with no special library path.
7108ac_x_libraries=
7109else
7110 echo "configure: failed program was:" >&5
7111 cat conftest.$ac_ext >&5
7112 rm -rf conftest*
7113 LIBS="$ac_save_LIBS"
7114# First see if replacing the include by lib works.
7115# Check X11 before X11Rn because it is often a symlink to the current release.
7116for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
7117 /usr/X11/lib \
7118 /usr/X11R6/lib \
7119 /usr/X11R5/lib \
7120 /usr/X11R4/lib \
7121 \
7122 /usr/lib/X11 \
7123 /usr/lib/X11R6 \
7124 /usr/lib/X11R5 \
7125 /usr/lib/X11R4 \
7126 \
7127 /usr/local/X11/lib \
7128 /usr/local/X11R6/lib \
7129 /usr/local/X11R5/lib \
7130 /usr/local/X11R4/lib \
7131 \
7132 /usr/local/lib/X11 \
7133 /usr/local/lib/X11R6 \
7134 /usr/local/lib/X11R5 \
7135 /usr/local/lib/X11R4 \
7136 \
7137 /usr/X386/lib \
7138 /usr/x386/lib \
7139 /usr/XFree86/lib/X11 \
7140 \
7141 /usr/lib \
7142 /usr/local/lib \
7143 /usr/unsupported/lib \
7144 /usr/athena/lib \
7145 /usr/local/x11r5/lib \
7146 /usr/lpp/Xamples/lib \
7147 /lib/usr/lib/X11 \
7148 \
7149 /usr/openwin/lib \
7150 /usr/openwin/share/lib \
7151 ; \
7152do
7153 for ac_extension in a so sl; do
7154 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
7155 ac_x_libraries=$ac_dir
7156 break 2
10f2d63a 7157 fi
10f2d63a 7158 done
ab9b9eab
VZ
7159done
7160fi
7161rm -f conftest*
7162fi # $ac_x_libraries = NO
10f2d63a 7163
ab9b9eab
VZ
7164if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
7165 # Didn't find X anywhere. Cache the known absence of X.
7166 ac_cv_have_x="have_x=no"
7167else
7168 # Record where we found X for the cache.
7169 ac_cv_have_x="have_x=yes \
7170 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
7171fi
7172fi
10f2d63a 7173 fi
ab9b9eab
VZ
7174 eval "$ac_cv_have_x"
7175fi # $with_x != no
10f2d63a 7176
ab9b9eab
VZ
7177if test "$have_x" != yes; then
7178 echo "$ac_t""$have_x" 1>&6
7179 no_x=yes
7180else
7181 # If each of the values was on the command line, it overrides each guess.
7182 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
7183 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
7184 # Update the cache value to reflect the command line values.
7185 ac_cv_have_x="have_x=yes \
7186 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
7187 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
7188fi
10f2d63a 7189
ab9b9eab
VZ
7190if test "$no_x" = yes; then
7191 # Not all programs may use this symbol, but it does not hurt to define it.
7192 cat >> confdefs.h <<\EOF
7193#define X_DISPLAY_MISSING 1
7194EOF
10f2d63a 7195
ab9b9eab
VZ
7196 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
7197else
7198 if test -n "$x_includes"; then
7199 X_CFLAGS="$X_CFLAGS -I$x_includes"
10f2d63a
VZ
7200 fi
7201
ab9b9eab
VZ
7202 # It would also be nice to do this for all -L options, not just this one.
7203 if test -n "$x_libraries"; then
7204 X_LIBS="$X_LIBS -L$x_libraries"
7205 # For Solaris; some versions of Sun CC require a space after -R and
7206 # others require no space. Words are not sufficient . . . .
7207 case "`(uname -sr) 2>/dev/null`" in
7208 "SunOS 5"*)
7209 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
7eef8db2 7210echo "configure:7211: checking whether -R must be followed by a space" >&5
ab9b9eab
VZ
7211 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
7212 cat > conftest.$ac_ext <<EOF
7eef8db2 7213#line 7214 "configure"
ab9b9eab 7214#include "confdefs.h"
10f2d63a 7215
ab9b9eab 7216int main() {
788deba1 7217
ab9b9eab
VZ
7218; return 0; }
7219EOF
7eef8db2 7220if { (eval echo configure:7221: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
7221 rm -rf conftest*
7222 ac_R_nospace=yes
7223else
7224 echo "configure: failed program was:" >&5
7225 cat conftest.$ac_ext >&5
7226 rm -rf conftest*
7227 ac_R_nospace=no
7228fi
7229rm -f conftest*
7230 if test $ac_R_nospace = yes; then
7231 echo "$ac_t""no" 1>&6
7232 X_LIBS="$X_LIBS -R$x_libraries"
7233 else
7234 LIBS="$ac_xsave_LIBS -R $x_libraries"
7235 cat > conftest.$ac_ext <<EOF
7eef8db2 7236#line 7237 "configure"
ab9b9eab 7237#include "confdefs.h"
788deba1 7238
ab9b9eab
VZ
7239int main() {
7240
7241; return 0; }
7242EOF
7eef8db2 7243if { (eval echo configure:7244: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
7244 rm -rf conftest*
7245 ac_R_space=yes
7246else
7247 echo "configure: failed program was:" >&5
7248 cat conftest.$ac_ext >&5
7249 rm -rf conftest*
7250 ac_R_space=no
7251fi
7252rm -f conftest*
7253 if test $ac_R_space = yes; then
7254 echo "$ac_t""yes" 1>&6
7255 X_LIBS="$X_LIBS -R $x_libraries"
7256 else
7257 echo "$ac_t""neither works" 1>&6
7258 fi
7259 fi
7260 LIBS="$ac_xsave_LIBS"
7261 esac
7262 fi
7263
7264 # Check for system-dependent libraries X programs must link with.
7265 # Do this before checking for the system-independent R6 libraries
7266 # (-lICE), since we may need -lsocket or whatever for X linking.
7267
7268 if test "$ISC" = yes; then
7269 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
7270 else
7271 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
7272 # libraries were built with DECnet support. And karl@cs.umb.edu says
7273 # the Alpha needs dnet_stub (dnet does not exist).
7274 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
7eef8db2 7275echo "configure:7276: checking for dnet_ntoa in -ldnet" >&5
ab9b9eab
VZ
7276ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
7277if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7278 echo $ac_n "(cached) $ac_c" 1>&6
7279else
7280 ac_save_LIBS="$LIBS"
7281LIBS="-ldnet $LIBS"
7282cat > conftest.$ac_ext <<EOF
7eef8db2 7283#line 7284 "configure"
ab9b9eab
VZ
7284#include "confdefs.h"
7285/* Override any gcc2 internal prototype to avoid an error. */
7286/* We use char because int might match the return type of a gcc2
7287 builtin and then its argument prototype would still apply. */
7288char dnet_ntoa();
7289
7290int main() {
7291dnet_ntoa()
7292; return 0; }
7293EOF
7eef8db2 7294if { (eval echo configure:7295: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
7295 rm -rf conftest*
7296 eval "ac_cv_lib_$ac_lib_var=yes"
7297else
7298 echo "configure: failed program was:" >&5
7299 cat conftest.$ac_ext >&5
7300 rm -rf conftest*
7301 eval "ac_cv_lib_$ac_lib_var=no"
7302fi
7303rm -f conftest*
7304LIBS="$ac_save_LIBS"
7305
7306fi
7307if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7308 echo "$ac_t""yes" 1>&6
7309 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
7310else
7311 echo "$ac_t""no" 1>&6
7312fi
7313
7314 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
7315 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
7eef8db2 7316echo "configure:7317: checking for dnet_ntoa in -ldnet_stub" >&5
ab9b9eab
VZ
7317ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
7318if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7319 echo $ac_n "(cached) $ac_c" 1>&6
7320else
7321 ac_save_LIBS="$LIBS"
7322LIBS="-ldnet_stub $LIBS"
7323cat > conftest.$ac_ext <<EOF
7eef8db2 7324#line 7325 "configure"
ab9b9eab
VZ
7325#include "confdefs.h"
7326/* Override any gcc2 internal prototype to avoid an error. */
7327/* We use char because int might match the return type of a gcc2
7328 builtin and then its argument prototype would still apply. */
7329char dnet_ntoa();
7330
7331int main() {
7332dnet_ntoa()
7333; return 0; }
7334EOF
7eef8db2 7335if { (eval echo configure:7336: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
7336 rm -rf conftest*
7337 eval "ac_cv_lib_$ac_lib_var=yes"
7338else
7339 echo "configure: failed program was:" >&5
7340 cat conftest.$ac_ext >&5
7341 rm -rf conftest*
7342 eval "ac_cv_lib_$ac_lib_var=no"
7343fi
7344rm -f conftest*
7345LIBS="$ac_save_LIBS"
7346
7347fi
7348if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7349 echo "$ac_t""yes" 1>&6
7350 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
7351else
7352 echo "$ac_t""no" 1>&6
7353fi
7354
7355 fi
7356
7357 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
7358 # to get the SysV transport functions.
7359 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
7360 # needs -lnsl.
7361 # The nsl library prevents programs from opening the X display
7362 # on Irix 5.2, according to dickey@clark.net.
7363 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
7eef8db2 7364echo "configure:7365: checking for gethostbyname" >&5
ab9b9eab
VZ
7365if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
7366 echo $ac_n "(cached) $ac_c" 1>&6
7367else
7368 cat > conftest.$ac_ext <<EOF
7eef8db2 7369#line 7370 "configure"
ab9b9eab
VZ
7370#include "confdefs.h"
7371/* System header to define __stub macros and hopefully few prototypes,
7372 which can conflict with char gethostbyname(); below. */
7373#include <assert.h>
7374/* Override any gcc2 internal prototype to avoid an error. */
7375/* We use char because int might match the return type of a gcc2
7376 builtin and then its argument prototype would still apply. */
7377char gethostbyname();
69ffe1d2 7378char (*f)();
ab9b9eab
VZ
7379
7380int main() {
7381
7382/* The GNU C library defines this for functions which it implements
7383 to always fail with ENOSYS. Some functions are actually named
7384 something starting with __ and the normal name is an alias. */
7385#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
7386choke me
7387#else
69ffe1d2 7388f = gethostbyname;
ab9b9eab
VZ
7389#endif
7390
7391; return 0; }
7392EOF
7eef8db2 7393if { (eval echo configure:7394: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
7394 rm -rf conftest*
7395 eval "ac_cv_func_gethostbyname=yes"
7396else
7397 echo "configure: failed program was:" >&5
7398 cat conftest.$ac_ext >&5
7399 rm -rf conftest*
7400 eval "ac_cv_func_gethostbyname=no"
7401fi
7402rm -f conftest*
7403fi
7404
7405if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
7406 echo "$ac_t""yes" 1>&6
7407 :
7408else
7409 echo "$ac_t""no" 1>&6
7410fi
7411
7412 if test $ac_cv_func_gethostbyname = no; then
7413 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
7eef8db2 7414echo "configure:7415: checking for gethostbyname in -lnsl" >&5
ab9b9eab
VZ
7415ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
7416if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7417 echo $ac_n "(cached) $ac_c" 1>&6
7418else
7419 ac_save_LIBS="$LIBS"
7420LIBS="-lnsl $LIBS"
7421cat > conftest.$ac_ext <<EOF
7eef8db2 7422#line 7423 "configure"
ab9b9eab
VZ
7423#include "confdefs.h"
7424/* Override any gcc2 internal prototype to avoid an error. */
7425/* We use char because int might match the return type of a gcc2
7426 builtin and then its argument prototype would still apply. */
7427char gethostbyname();
7428
7429int main() {
7430gethostbyname()
7431; return 0; }
7432EOF
7eef8db2 7433if { (eval echo configure:7434: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
7434 rm -rf conftest*
7435 eval "ac_cv_lib_$ac_lib_var=yes"
7436else
7437 echo "configure: failed program was:" >&5
7438 cat conftest.$ac_ext >&5
7439 rm -rf conftest*
7440 eval "ac_cv_lib_$ac_lib_var=no"
7441fi
7442rm -f conftest*
7443LIBS="$ac_save_LIBS"
7444
7445fi
7446if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7447 echo "$ac_t""yes" 1>&6
7448 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
7449else
7450 echo "$ac_t""no" 1>&6
7451fi
7452
7453 fi
7454
7455 # lieder@skyler.mavd.honeywell.com says without -lsocket,
7456 # socket/setsockopt and other routines are undefined under SCO ODT
7457 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
7458 # on later versions), says simon@lia.di.epfl.ch: it contains
7459 # gethostby* variants that don't use the nameserver (or something).
7460 # -lsocket must be given before -lnsl if both are needed.
7461 # We assume that if connect needs -lnsl, so does gethostbyname.
7462 echo $ac_n "checking for connect""... $ac_c" 1>&6
7eef8db2 7463echo "configure:7464: checking for connect" >&5
ab9b9eab
VZ
7464if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
7465 echo $ac_n "(cached) $ac_c" 1>&6
7466else
7467 cat > conftest.$ac_ext <<EOF
7eef8db2 7468#line 7469 "configure"
ab9b9eab
VZ
7469#include "confdefs.h"
7470/* System header to define __stub macros and hopefully few prototypes,
7471 which can conflict with char connect(); below. */
7472#include <assert.h>
7473/* Override any gcc2 internal prototype to avoid an error. */
7474/* We use char because int might match the return type of a gcc2
7475 builtin and then its argument prototype would still apply. */
7476char connect();
69ffe1d2 7477char (*f)();
ab9b9eab
VZ
7478
7479int main() {
7480
7481/* The GNU C library defines this for functions which it implements
7482 to always fail with ENOSYS. Some functions are actually named
7483 something starting with __ and the normal name is an alias. */
7484#if defined (__stub_connect) || defined (__stub___connect)
7485choke me
7486#else
69ffe1d2 7487f = connect;
ab9b9eab
VZ
7488#endif
7489
7490; return 0; }
7491EOF
7eef8db2 7492if { (eval echo configure:7493: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
7493 rm -rf conftest*
7494 eval "ac_cv_func_connect=yes"
7495else
7496 echo "configure: failed program was:" >&5
7497 cat conftest.$ac_ext >&5
7498 rm -rf conftest*
7499 eval "ac_cv_func_connect=no"
7500fi
7501rm -f conftest*
7502fi
7503
7504if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
7505 echo "$ac_t""yes" 1>&6
7506 :
7507else
7508 echo "$ac_t""no" 1>&6
7509fi
7510
7511 if test $ac_cv_func_connect = no; then
7512 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
7eef8db2 7513echo "configure:7514: checking for connect in -lsocket" >&5
ab9b9eab
VZ
7514ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
7515if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7516 echo $ac_n "(cached) $ac_c" 1>&6
7517else
7518 ac_save_LIBS="$LIBS"
7519LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
7520cat > conftest.$ac_ext <<EOF
7eef8db2 7521#line 7522 "configure"
ab9b9eab
VZ
7522#include "confdefs.h"
7523/* Override any gcc2 internal prototype to avoid an error. */
7524/* We use char because int might match the return type of a gcc2
7525 builtin and then its argument prototype would still apply. */
7526char connect();
7527
7528int main() {
7529connect()
7530; return 0; }
7531EOF
7eef8db2 7532if { (eval echo configure:7533: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
7533 rm -rf conftest*
7534 eval "ac_cv_lib_$ac_lib_var=yes"
7535else
7536 echo "configure: failed program was:" >&5
7537 cat conftest.$ac_ext >&5
7538 rm -rf conftest*
7539 eval "ac_cv_lib_$ac_lib_var=no"
7540fi
7541rm -f conftest*
7542LIBS="$ac_save_LIBS"
7543
7544fi
7545if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7546 echo "$ac_t""yes" 1>&6
7547 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
7548else
7549 echo "$ac_t""no" 1>&6
7550fi
7551
7552 fi
7553
7554 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
7555 echo $ac_n "checking for remove""... $ac_c" 1>&6
7eef8db2 7556echo "configure:7557: checking for remove" >&5
ab9b9eab
VZ
7557if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
7558 echo $ac_n "(cached) $ac_c" 1>&6
7559else
7560 cat > conftest.$ac_ext <<EOF
7eef8db2 7561#line 7562 "configure"
ab9b9eab
VZ
7562#include "confdefs.h"
7563/* System header to define __stub macros and hopefully few prototypes,
7564 which can conflict with char remove(); below. */
7565#include <assert.h>
7566/* Override any gcc2 internal prototype to avoid an error. */
7567/* We use char because int might match the return type of a gcc2
7568 builtin and then its argument prototype would still apply. */
7569char remove();
69ffe1d2 7570char (*f)();
ab9b9eab
VZ
7571
7572int main() {
7573
7574/* The GNU C library defines this for functions which it implements
7575 to always fail with ENOSYS. Some functions are actually named
7576 something starting with __ and the normal name is an alias. */
7577#if defined (__stub_remove) || defined (__stub___remove)
7578choke me
7579#else
69ffe1d2 7580f = remove;
ab9b9eab
VZ
7581#endif
7582
7583; return 0; }
7584EOF
7eef8db2 7585if { (eval echo configure:7586: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
7586 rm -rf conftest*
7587 eval "ac_cv_func_remove=yes"
7588else
7589 echo "configure: failed program was:" >&5
7590 cat conftest.$ac_ext >&5
7591 rm -rf conftest*
7592 eval "ac_cv_func_remove=no"
7593fi
7594rm -f conftest*
7595fi
7596
7597if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
7598 echo "$ac_t""yes" 1>&6
7599 :
7600else
7601 echo "$ac_t""no" 1>&6
7602fi
7603
7604 if test $ac_cv_func_remove = no; then
7605 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
7eef8db2 7606echo "configure:7607: checking for remove in -lposix" >&5
ab9b9eab
VZ
7607ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
7608if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7609 echo $ac_n "(cached) $ac_c" 1>&6
7610else
7611 ac_save_LIBS="$LIBS"
7612LIBS="-lposix $LIBS"
7613cat > conftest.$ac_ext <<EOF
7eef8db2 7614#line 7615 "configure"
ab9b9eab
VZ
7615#include "confdefs.h"
7616/* Override any gcc2 internal prototype to avoid an error. */
7617/* We use char because int might match the return type of a gcc2
7618 builtin and then its argument prototype would still apply. */
7619char remove();
7620
7621int main() {
7622remove()
7623; return 0; }
7624EOF
7eef8db2 7625if { (eval echo configure:7626: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
7626 rm -rf conftest*
7627 eval "ac_cv_lib_$ac_lib_var=yes"
7628else
7629 echo "configure: failed program was:" >&5
7630 cat conftest.$ac_ext >&5
7631 rm -rf conftest*
7632 eval "ac_cv_lib_$ac_lib_var=no"
7633fi
7634rm -f conftest*
7635LIBS="$ac_save_LIBS"
7636
7637fi
7638if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7639 echo "$ac_t""yes" 1>&6
7640 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
7641else
7642 echo "$ac_t""no" 1>&6
7643fi
7644
7645 fi
7646
7647 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
7648 echo $ac_n "checking for shmat""... $ac_c" 1>&6
7eef8db2 7649echo "configure:7650: checking for shmat" >&5
ab9b9eab
VZ
7650if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
7651 echo $ac_n "(cached) $ac_c" 1>&6
7652else
7653 cat > conftest.$ac_ext <<EOF
7eef8db2 7654#line 7655 "configure"
ab9b9eab
VZ
7655#include "confdefs.h"
7656/* System header to define __stub macros and hopefully few prototypes,
7657 which can conflict with char shmat(); below. */
7658#include <assert.h>
7659/* Override any gcc2 internal prototype to avoid an error. */
7660/* We use char because int might match the return type of a gcc2
7661 builtin and then its argument prototype would still apply. */
7662char shmat();
69ffe1d2 7663char (*f)();
ab9b9eab
VZ
7664
7665int main() {
7666
7667/* The GNU C library defines this for functions which it implements
7668 to always fail with ENOSYS. Some functions are actually named
7669 something starting with __ and the normal name is an alias. */
7670#if defined (__stub_shmat) || defined (__stub___shmat)
7671choke me
7672#else
69ffe1d2 7673f = shmat;
ab9b9eab
VZ
7674#endif
7675
7676; return 0; }
7677EOF
7eef8db2 7678if { (eval echo configure:7679: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
7679 rm -rf conftest*
7680 eval "ac_cv_func_shmat=yes"
7681else
7682 echo "configure: failed program was:" >&5
7683 cat conftest.$ac_ext >&5
7684 rm -rf conftest*
7685 eval "ac_cv_func_shmat=no"
7686fi
7687rm -f conftest*
7688fi
7689
7690if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
7691 echo "$ac_t""yes" 1>&6
7692 :
7693else
7694 echo "$ac_t""no" 1>&6
7695fi
7696
7697 if test $ac_cv_func_shmat = no; then
7698 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
7eef8db2 7699echo "configure:7700: checking for shmat in -lipc" >&5
ab9b9eab
VZ
7700ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
7701if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7702 echo $ac_n "(cached) $ac_c" 1>&6
7703else
7704 ac_save_LIBS="$LIBS"
7705LIBS="-lipc $LIBS"
7706cat > conftest.$ac_ext <<EOF
7eef8db2 7707#line 7708 "configure"
ab9b9eab
VZ
7708#include "confdefs.h"
7709/* Override any gcc2 internal prototype to avoid an error. */
7710/* We use char because int might match the return type of a gcc2
7711 builtin and then its argument prototype would still apply. */
7712char shmat();
7713
7714int main() {
7715shmat()
7716; return 0; }
7717EOF
7eef8db2 7718if { (eval echo configure:7719: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
7719 rm -rf conftest*
7720 eval "ac_cv_lib_$ac_lib_var=yes"
7721else
7722 echo "configure: failed program was:" >&5
7723 cat conftest.$ac_ext >&5
7724 rm -rf conftest*
7725 eval "ac_cv_lib_$ac_lib_var=no"
7726fi
7727rm -f conftest*
7728LIBS="$ac_save_LIBS"
7729
7730fi
7731if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7732 echo "$ac_t""yes" 1>&6
7733 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
7734else
7735 echo "$ac_t""no" 1>&6
7736fi
7737
7738 fi
7739 fi
7740
7741 # Check for libraries that X11R6 Xt/Xaw programs need.
7742 ac_save_LDFLAGS="$LDFLAGS"
7743 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
7744 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
7745 # check for ICE first), but we must link in the order -lSM -lICE or
7746 # we get undefined symbols. So assume we have SM if we have ICE.
7747 # These have to be linked with before -lX11, unlike the other
7748 # libraries we check for below, so use a different variable.
7749 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
7750 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
7eef8db2 7751echo "configure:7752: checking for IceConnectionNumber in -lICE" >&5
ab9b9eab
VZ
7752ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
7753if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7754 echo $ac_n "(cached) $ac_c" 1>&6
7755else
7756 ac_save_LIBS="$LIBS"
7757LIBS="-lICE $X_EXTRA_LIBS $LIBS"
7758cat > conftest.$ac_ext <<EOF
7eef8db2 7759#line 7760 "configure"
ab9b9eab
VZ
7760#include "confdefs.h"
7761/* Override any gcc2 internal prototype to avoid an error. */
7762/* We use char because int might match the return type of a gcc2
7763 builtin and then its argument prototype would still apply. */
7764char IceConnectionNumber();
7765
7766int main() {
7767IceConnectionNumber()
7768; return 0; }
7769EOF
7eef8db2 7770if { (eval echo configure:7771: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
7771 rm -rf conftest*
7772 eval "ac_cv_lib_$ac_lib_var=yes"
7773else
7774 echo "configure: failed program was:" >&5
7775 cat conftest.$ac_ext >&5
7776 rm -rf conftest*
7777 eval "ac_cv_lib_$ac_lib_var=no"
7778fi
7779rm -f conftest*
7780LIBS="$ac_save_LIBS"
7781
7782fi
7783if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7784 echo "$ac_t""yes" 1>&6
7785 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
7786else
7787 echo "$ac_t""no" 1>&6
7788fi
7789
7790 LDFLAGS="$ac_save_LDFLAGS"
7791
7792fi
7793
7794
7795 if test "$no_x" = "yes"; then
7796 { echo "configure: error: X11 not found" 1>&2; exit 1; }
7797 fi
7798
7799 GUI_TK_LIBRARY="$X_LIBS"
7800 TOOLKIT_INCLUDE="$X_CFLAGS"
7801
7802
7803 echo $ac_n "checking for Motif/Lesstif headers""... $ac_c" 1>&6
7eef8db2 7804echo "configure:7805: checking for Motif/Lesstif headers" >&5
ab9b9eab
VZ
7805
7806ac_find_includes=
7807for ac_dir in $SEARCH_INCLUDE;
7808 do
7809 if test -f "$ac_dir/Xm/Xm.h"; then
7810 ac_find_includes=$ac_dir
7811 break
7812 fi
7813 done
7814
7815 if test "$ac_find_includes" != "" ; then
7816 echo "$ac_t""found $ac_find_includes" 1>&6
7817 else
7818 echo "$ac_t""no" 1>&6
7819 { echo "configure: error: please set CFLAGS to contain the location of Xm/Xm.h" 1>&2; exit 1; }
7820 fi
7821
7822 echo $ac_n "checking for Motif/Lesstif library""... $ac_c" 1>&6
7eef8db2 7823echo "configure:7824: checking for Motif/Lesstif library" >&5
ab9b9eab
VZ
7824
7825ac_find_libraries=
7826for ac_dir in $SEARCH_LIB;
7827 do
7828 for ac_extension in a so sl; do
7829 if test -f "$ac_dir/libXm.$ac_extension"; then
7830 ac_find_libraries=$ac_dir
7831 break 2
7832 fi
7833 done
7834 done
7835
7836 if test "$ac_find_libraries" != "" ; then
7837
7838 ac_path_to_include=$ac_find_includes
7839 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
7840 result=$?
7841 if test $result = 0; then
7842 ac_path_to_include=""
7843 else
7844 ac_path_to_include="-I$ac_find_includes"
7845 fi
7846
7847
7848 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
7849 result=$?
7850 if test $result = 0; then
7851 ac_path_to_link=""
7852 else
7853 ac_path_to_link="-L$ac_find_libraries"
7854 fi
7855
7856
7857 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $ac_path_to_link"
7858 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE $ac_path_to_include"
7859 echo "$ac_t""found at $ac_find_libraries" 1>&6
7860 else
7861 echo "$ac_t""no" 1>&6
7862 { echo "configure: error: please set LDFLAGS to contain the location of libXm" 1>&2; exit 1; }
7863 fi
7864
7865 echo $ac_n "checking for Xt library""... $ac_c" 1>&6
7eef8db2 7866echo "configure:7867: checking for Xt library" >&5
ab9b9eab
VZ
7867
7868ac_find_libraries=
7869for ac_dir in $SEARCH_LIB;
7870 do
7871 for ac_extension in a so sl; do
7872 if test -f "$ac_dir/libXt.$ac_extension"; then
7873 ac_find_libraries=$ac_dir
7874 break 2
7875 fi
7876 done
7877 done
7878
7879 if test "$ac_find_libraries" != "" ; then
7880
7881 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
7882 result=$?
7883 if test $result = 0; then
7884 ac_path_to_link=""
7885 else
7886 ac_path_to_link="-L$ac_find_libraries"
7887 fi
7888
7889 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $ac_path_to_link"
7890 echo "$ac_t""found at $ac_find_libraries" 1>&6
7891 else
7892 echo "$ac_t""no" 1>&6
7893 { echo "configure: error: please set LDFLAGS to contain the location of libXt" 1>&2; exit 1; }
7894 fi
7895
7896 XPM_LINK=""
7897 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
7eef8db2 7898echo "configure:7899: checking for Xpm library" >&5
ab9b9eab
VZ
7899
7900ac_find_libraries=
7901for ac_dir in $SEARCH_LIB;
7902 do
7903 for ac_extension in a so sl; do
7904 if test -f "$ac_dir/libXpm.$ac_extension"; then
7905 ac_find_libraries=$ac_dir
7906 break 2
7907 fi
7908 done
7909 done
7910
7911 if test "$ac_find_libraries" != "" ; then
7912
7913 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
7914 result=$?
7915 if test $result = 0; then
7916 ac_path_to_link=""
7917 else
7918 ac_path_to_link="-L$ac_find_libraries"
7919 fi
7920
7921 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $ac_path_to_link"
7922 XPM_LINK="-lXpm "
7923 cat >> confdefs.h <<\EOF
7924#define wxHAVE_LIB_XPM 1
7925EOF
7926
7927 echo "$ac_t""found at $ac_find_libraries" 1>&6
7928 else
7929 echo "$ac_t""no" 1>&6
7930 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
7931 fi
7932
7933 GUI_TK_LINK="-lXm $XPM_LINK -lXmu -lXext -lXt -lX11 -lm"
7934 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $GUI_TK_LINK"
7935 TOOLKIT=MOTIF
7936
7937 GUIHEADERS="\$(MOTIF_HEADERS)"
7938 GUIOBJS="\$(MOTIF_GUIOBJS)"
7939 COMMONOBJS="\$(MOTIF_COMMONOBJS)"
788deba1
VZ
7940 GENERICOBJS="\$(MOTIF_GENERICOBJS)"
7941 GUIDEPS="\$(MOTIF_GUIDEPS)"
7942 COMMONDEPS="\$(MOTIF_COMMONDEPS)"
10f2d63a
VZ
7943 GENERICDEPS="\$(MOTIF_GENERICDEPS)"
7944 UNIXOBJS="\$(UNIX_OBJS)"
7945 GUIDIST=MOTIF_DIST
7946fi
7947
7948TOOLKIT_DIR=`echo ${TOOLKIT} | tr "A-Z" "a-z"`
7949
7950TOOLKIT_DEF="-D__WX${TOOLKIT}__"
7951
7952WX_LIBRARY="wx_${TOOLKIT_DIR}"
7953
7954 ALL_OBJECTS="\$(GUIOBJS) \$(COMMONOBJS) \$(GENERICOBJS) \$(UNIXOBJS) \$(HTMLOBJS) \$(JPEGOBJS) \$(PNGOBJS) \$(ZLIBOBJS) \$(IODBCOBJS)"
7955 ALL_DEPFILES="\$(GUIDEPS) \$(COMMONDEPS) \$(GENERICDEPS) \$(UNIXDEPS) \$(HTMLDEPS)"
7956 ALL_HEADERS="\$(GUIHEADERS) \$(HTML_HEADERS) \$(UNIX_HEADERS) \$(PROTOCOL_HEADERS) \$(GENERIC_HEADERS) \$(WX_HEADERS)"
7957else
7958
7959 ALL_OBJECTS="\$(BASE_OBJS)"
7960 ALL_DEPFILES="\${BASE_DEPS}"
7961 ALL_HEADERS="\${BASE_HEADERS}"
7962
7963 WX_LIBRARY="wxbase"
7964fi
7965
7966WX_LIBRARY_NAME="lib${WX_LIBRARY}.la"
7967
7968WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a"
7969
7970WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}-${WX_RELEASE}.so.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
7971
7972WX_LIBRARY_LINK1="lib${WX_LIBRARY}-${WX_RELEASE}.so.${WX_CURRENT}"
7973WX_LIBRARY_LINK2="lib${WX_LIBRARY}-${WX_RELEASE}.so"
7974WX_LIBRARY_LINK3="lib${WX_LIBRARY}.so"
7975
7976SHARED_LD=
7977PIC_FLAG=
7978WX_ALL=
7979WX_ALL_INSTALLED=
7980
7981if test "$wxUSE_SHARED" = "yes"; then
7982 case "${host}" in
7983 *-hp-hpux* )
7984 if test "$GCC" = yes ; then
69ffe1d2 7985 SHARED_LD="${CC} -shared -fPIC -o"
10f2d63a
VZ
7986 PIC_FLAG="-fPIC"
7987 else
7988 SHARED_LD="${CXX} -b -o"
7989 PIC_FLAG="+Z"
7990 fi
7991 WX_LIBRARY_NAME_SHARED="libwx_${TOOLKIT_DIR}.sl"
7992 WX_ALL=${WX_LIBRARY_NAME_SHARED}
7993 ;;
7994 *-*-linux* )
7995 SHARED_LD="${CC} -shared -o"
7996 PIC_FLAG="-fPIC"
7997 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
7998 WX_ALL="CREATE_LINKS"
7999 ;;
8000 *-*-irix5* | *-*-irix6* )
8001 if test "$GCC" = yes ; then
8002 SHARED_LD="${CC} -shared -o"
8003 PIC_FLAG="-fPIC"
8004 else
8005 SHARED_LD="${CXX} -shared -o"
8006 fi
8007 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
8008 WX_ALL="CREATE_LINKS"
8009 ;;
8010 *-*-solaris2* )
8011 if test "$GCC" = yes ; then
8012 SHARED_LD="${CC} -shared -o"
8013 PIC_FLAG="-fPIC"
8014 else
8015 SHARED_LD="${CXX} -G -o"
8016 PIC_FLAG="-KPIC"
8017 fi
8018 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
8019 WX_ALL="CREATE_LINKS"
8020 ;;
8021 *-*-sunos4* )
8022 SHARED_LD="${CC} -shared -o"
8023 PIC_FLAG="-fPIC"
8024 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
8025 WX_ALL="CREATE_LINKS"
8026 ;;
8027 *-*-freebsd* | *-*-netbsd*)
8028 SHARED_LD="${CC} -shared -o"
8029 PIC_FLAG="-fPIC"
8030 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
8031 WX_ALL="CREATE_LINKS"
8032 ;;
8033 *-*-osf* )
8034 SHARED_LD="${CXX} -shared -o"
8035 PIC_FLAG="-fPIC"
8036 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
8037 WX_ALL="CREATE_LINKS"
8038 ;;
8039 *-*-dgux5* )
8040 SHARED_LD="${CXX} -shared -o"
8041 PIC_FLAG="-fPIC"
8042 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
8043 WX_ALL="CREATE_LINKS"
8044 ;;
8045 *-*-sysv5* )
8046 SHARED_LD="${CC} -shared -o"
8047 PIC_FLAG="-fPIC"
8048 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
8049 WX_ALL="CREATE_LINKS"
8050 ;;
8051 *-*-aix* )
8052 SHARED_LD="/usr/lpp/xlC/bin/makeC++SharedLib -p 0 -o"
8053 WX_ALL=${WX_LIBRARY_NAME_SHARED}
8054 ;;
8055 *-*-cygwin32* )
8056 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
8057 WX_ALL="${WX_LIBRARY_NAME_STATIC}"
8058 ;;
8059 *-*-mingw32* )
8060 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
8061 WX_ALL="${WX_LIBRARY_NAME_STATIC}"
8062 ;;
8063 *-pc-os2_emx )
8064 ;;
8065 *)
8066 { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; }
8067 esac
8068
8069 if test "x$WX_TARGET_LIBRARY" = "x"; then
8070 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}"
8071 fi
8072else
8073 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
8074 WX_ALL="${WX_LIBRARY_NAME_STATIC}"
8075fi
8076
8077
8078for ac_hdr in strings.h
8079do
8080ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8081echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7eef8db2 8082echo "configure:8083: checking for $ac_hdr" >&5
10f2d63a
VZ
8083if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8084 echo $ac_n "(cached) $ac_c" 1>&6
8085else
8086 cat > conftest.$ac_ext <<EOF
7eef8db2 8087#line 8088 "configure"
10f2d63a
VZ
8088#include "confdefs.h"
8089#include <$ac_hdr>
8090EOF
8091ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7eef8db2 8092{ (eval echo configure:8093: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
8093ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8094if test -z "$ac_err"; then
8095 rm -rf conftest*
8096 eval "ac_cv_header_$ac_safe=yes"
8097else
8098 echo "$ac_err" >&5
8099 echo "configure: failed program was:" >&5
8100 cat conftest.$ac_ext >&5
8101 rm -rf conftest*
8102 eval "ac_cv_header_$ac_safe=no"
8103fi
8104rm -f conftest*
8105fi
8106if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8107 echo "$ac_t""yes" 1>&6
8108 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8109 cat >> confdefs.h <<EOF
8110#define $ac_tr_hdr 1
8111EOF
8112
8113else
8114 echo "$ac_t""no" 1>&6
8115fi
8116done
8117
8118for ac_hdr in unistd.h
8119do
8120ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8121echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7eef8db2 8122echo "configure:8123: checking for $ac_hdr" >&5
10f2d63a
VZ
8123if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8124 echo $ac_n "(cached) $ac_c" 1>&6
8125else
8126 cat > conftest.$ac_ext <<EOF
7eef8db2 8127#line 8128 "configure"
10f2d63a
VZ
8128#include "confdefs.h"
8129#include <$ac_hdr>
8130EOF
8131ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7eef8db2 8132{ (eval echo configure:8133: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
8133ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8134if test -z "$ac_err"; then
8135 rm -rf conftest*
8136 eval "ac_cv_header_$ac_safe=yes"
8137else
8138 echo "$ac_err" >&5
8139 echo "configure: failed program was:" >&5
8140 cat conftest.$ac_ext >&5
8141 rm -rf conftest*
8142 eval "ac_cv_header_$ac_safe=no"
8143fi
8144rm -f conftest*
8145fi
8146if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8147 echo "$ac_t""yes" 1>&6
8148 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8149 cat >> confdefs.h <<EOF
8150#define $ac_tr_hdr 1
8151EOF
8152
8153else
8154 echo "$ac_t""no" 1>&6
8155fi
8156done
8157
8158for ac_hdr in wchar.h
8159do
8160ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8161echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7eef8db2 8162echo "configure:8163: checking for $ac_hdr" >&5
10f2d63a
VZ
8163if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8164 echo $ac_n "(cached) $ac_c" 1>&6
8165else
8166 cat > conftest.$ac_ext <<EOF
7eef8db2 8167#line 8168 "configure"
10f2d63a
VZ
8168#include "confdefs.h"
8169#include <$ac_hdr>
8170EOF
8171ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7eef8db2 8172{ (eval echo configure:8173: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
8173ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8174if test -z "$ac_err"; then
8175 rm -rf conftest*
8176 eval "ac_cv_header_$ac_safe=yes"
8177else
8178 echo "$ac_err" >&5
8179 echo "configure: failed program was:" >&5
8180 cat conftest.$ac_ext >&5
8181 rm -rf conftest*
8182 eval "ac_cv_header_$ac_safe=no"
8183fi
8184rm -f conftest*
8185fi
8186if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8187 echo "$ac_t""yes" 1>&6
8188 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8189 cat >> confdefs.h <<EOF
8190#define $ac_tr_hdr 1
8191EOF
8192
8193else
8194 echo "$ac_t""no" 1>&6
8195fi
8196done
8197
8198for ac_hdr in wcstr.h
8199do
8200ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8201echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7eef8db2 8202echo "configure:8203: checking for $ac_hdr" >&5
10f2d63a
VZ
8203if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8204 echo $ac_n "(cached) $ac_c" 1>&6
8205else
8206 cat > conftest.$ac_ext <<EOF
7eef8db2 8207#line 8208 "configure"
10f2d63a
VZ
8208#include "confdefs.h"
8209#include <$ac_hdr>
8210EOF
8211ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7eef8db2 8212{ (eval echo configure:8213: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
8213ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8214if test -z "$ac_err"; then
8215 rm -rf conftest*
8216 eval "ac_cv_header_$ac_safe=yes"
8217else
8218 echo "$ac_err" >&5
8219 echo "configure: failed program was:" >&5
8220 cat conftest.$ac_ext >&5
8221 rm -rf conftest*
8222 eval "ac_cv_header_$ac_safe=no"
8223fi
8224rm -f conftest*
8225fi
8226if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8227 echo "$ac_t""yes" 1>&6
8228 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8229 cat >> confdefs.h <<EOF
8230#define $ac_tr_hdr 1
8231EOF
8232
8233else
8234 echo "$ac_t""no" 1>&6
8235fi
8236done
8237
8238for ac_hdr in fnmatch.h
8239do
8240ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8241echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7eef8db2 8242echo "configure:8243: checking for $ac_hdr" >&5
10f2d63a
VZ
8243if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8244 echo $ac_n "(cached) $ac_c" 1>&6
8245else
8246 cat > conftest.$ac_ext <<EOF
7eef8db2 8247#line 8248 "configure"
10f2d63a
VZ
8248#include "confdefs.h"
8249#include <$ac_hdr>
8250EOF
8251ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7eef8db2 8252{ (eval echo configure:8253: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
8253ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8254if test -z "$ac_err"; then
8255 rm -rf conftest*
8256 eval "ac_cv_header_$ac_safe=yes"
8257else
8258 echo "$ac_err" >&5
8259 echo "configure: failed program was:" >&5
8260 cat conftest.$ac_ext >&5
8261 rm -rf conftest*
8262 eval "ac_cv_header_$ac_safe=no"
8263fi
8264rm -f conftest*
8265fi
8266if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8267 echo "$ac_t""yes" 1>&6
8268 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8269 cat >> confdefs.h <<EOF
8270#define $ac_tr_hdr 1
8271EOF
8272
8273else
8274 echo "$ac_t""no" 1>&6
8275fi
8276done
8277
8278
8279if test "$wxUSE_GUI" = "yes"; then
8280 for ac_hdr in X11/XKBlib.h
8281do
8282ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8283echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7eef8db2 8284echo "configure:8285: checking for $ac_hdr" >&5
10f2d63a
VZ
8285if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8286 echo $ac_n "(cached) $ac_c" 1>&6
8287else
8288 cat > conftest.$ac_ext <<EOF
7eef8db2 8289#line 8290 "configure"
10f2d63a
VZ
8290#include "confdefs.h"
8291#include <$ac_hdr>
8292EOF
8293ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7eef8db2 8294{ (eval echo configure:8295: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
8295ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8296if test -z "$ac_err"; then
8297 rm -rf conftest*
8298 eval "ac_cv_header_$ac_safe=yes"
8299else
8300 echo "$ac_err" >&5
8301 echo "configure: failed program was:" >&5
8302 cat conftest.$ac_ext >&5
8303 rm -rf conftest*
8304 eval "ac_cv_header_$ac_safe=no"
8305fi
8306rm -f conftest*
8307fi
8308if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8309 echo "$ac_t""yes" 1>&6
8310 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8311 cat >> confdefs.h <<EOF
8312#define $ac_tr_hdr 1
8313EOF
8314
8315else
8316 echo "$ac_t""no" 1>&6
8317fi
8318done
8319
8320fi
8321
8322
8323echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
7eef8db2 8324echo "configure:8325: checking for ANSI C header files" >&5
10f2d63a
VZ
8325if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
8326 echo $ac_n "(cached) $ac_c" 1>&6
8327else
8328 cat > conftest.$ac_ext <<EOF
7eef8db2 8329#line 8330 "configure"
10f2d63a
VZ
8330#include "confdefs.h"
8331#include <stdlib.h>
8332#include <stdarg.h>
8333#include <string.h>
8334#include <float.h>
8335EOF
8336ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7eef8db2 8337{ (eval echo configure:8338: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
8338ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8339if test -z "$ac_err"; then
8340 rm -rf conftest*
8341 ac_cv_header_stdc=yes
8342else
8343 echo "$ac_err" >&5
8344 echo "configure: failed program was:" >&5
8345 cat conftest.$ac_ext >&5
8346 rm -rf conftest*
8347 ac_cv_header_stdc=no
8348fi
8349rm -f conftest*
8350
8351if test $ac_cv_header_stdc = yes; then
8352 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8353cat > conftest.$ac_ext <<EOF
7eef8db2 8354#line 8355 "configure"
10f2d63a
VZ
8355#include "confdefs.h"
8356#include <string.h>
8357EOF
8358if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8359 egrep "memchr" >/dev/null 2>&1; then
8360 :
8361else
8362 rm -rf conftest*
8363 ac_cv_header_stdc=no
8364fi
8365rm -f conftest*
8366
8367fi
8368
8369if test $ac_cv_header_stdc = yes; then
8370 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8371cat > conftest.$ac_ext <<EOF
7eef8db2 8372#line 8373 "configure"
10f2d63a
VZ
8373#include "confdefs.h"
8374#include <stdlib.h>
8375EOF
8376if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8377 egrep "free" >/dev/null 2>&1; then
8378 :
8379else
8380 rm -rf conftest*
8381 ac_cv_header_stdc=no
8382fi
8383rm -f conftest*
8384
8385fi
8386
8387if test $ac_cv_header_stdc = yes; then
8388 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8389if test "$cross_compiling" = yes; then
8390 :
8391else
8392 cat > conftest.$ac_ext <<EOF
7eef8db2 8393#line 8394 "configure"
10f2d63a
VZ
8394#include "confdefs.h"
8395#include <ctype.h>
8396#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8397#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8398#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8399int main () { int i; for (i = 0; i < 256; i++)
8400if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
8401exit (0); }
8402
8403EOF
7eef8db2 8404if { (eval echo configure:8405: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10f2d63a
VZ
8405then
8406 :
8407else
8408 echo "configure: failed program was:" >&5
8409 cat conftest.$ac_ext >&5
8410 rm -fr conftest*
8411 ac_cv_header_stdc=no
8412fi
8413rm -fr conftest*
8414fi
8415
8416fi
8417fi
8418
8419echo "$ac_t""$ac_cv_header_stdc" 1>&6
8420if test $ac_cv_header_stdc = yes; then
8421 cat >> confdefs.h <<\EOF
8422#define STDC_HEADERS 1
8423EOF
8424
8425fi
8426
8427echo $ac_n "checking for mode_t""... $ac_c" 1>&6
7eef8db2 8428echo "configure:8429: checking for mode_t" >&5
10f2d63a
VZ
8429if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
8430 echo $ac_n "(cached) $ac_c" 1>&6
8431else
8432 cat > conftest.$ac_ext <<EOF
7eef8db2 8433#line 8434 "configure"
10f2d63a
VZ
8434#include "confdefs.h"
8435#include <sys/types.h>
8436#if STDC_HEADERS
8437#include <stdlib.h>
8438#include <stddef.h>
8439#endif
8440EOF
8441if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8442 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
8443 rm -rf conftest*
8444 ac_cv_type_mode_t=yes
8445else
8446 rm -rf conftest*
8447 ac_cv_type_mode_t=no
8448fi
8449rm -f conftest*
8450
8451fi
8452echo "$ac_t""$ac_cv_type_mode_t" 1>&6
8453if test $ac_cv_type_mode_t = no; then
8454 cat >> confdefs.h <<\EOF
8455#define mode_t int
8456EOF
8457
8458fi
8459
8460echo $ac_n "checking for off_t""... $ac_c" 1>&6
7eef8db2 8461echo "configure:8462: checking for off_t" >&5
10f2d63a
VZ
8462if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
8463 echo $ac_n "(cached) $ac_c" 1>&6
8464else
8465 cat > conftest.$ac_ext <<EOF
7eef8db2 8466#line 8467 "configure"
10f2d63a
VZ
8467#include "confdefs.h"
8468#include <sys/types.h>
8469#if STDC_HEADERS
8470#include <stdlib.h>
8471#include <stddef.h>
8472#endif
8473EOF
8474if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8475 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
8476 rm -rf conftest*
8477 ac_cv_type_off_t=yes
8478else
8479 rm -rf conftest*
8480 ac_cv_type_off_t=no
8481fi
8482rm -f conftest*
8483
8484fi
8485echo "$ac_t""$ac_cv_type_off_t" 1>&6
8486if test $ac_cv_type_off_t = no; then
8487 cat >> confdefs.h <<\EOF
8488#define off_t long
8489EOF
8490
8491fi
8492
8493echo $ac_n "checking for pid_t""... $ac_c" 1>&6
7eef8db2 8494echo "configure:8495: checking for pid_t" >&5
10f2d63a
VZ
8495if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
8496 echo $ac_n "(cached) $ac_c" 1>&6
8497else
8498 cat > conftest.$ac_ext <<EOF
7eef8db2 8499#line 8500 "configure"
10f2d63a
VZ
8500#include "confdefs.h"
8501#include <sys/types.h>
8502#if STDC_HEADERS
8503#include <stdlib.h>
8504#include <stddef.h>
8505#endif
8506EOF
8507if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8508 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
8509 rm -rf conftest*
8510 ac_cv_type_pid_t=yes
8511else
8512 rm -rf conftest*
8513 ac_cv_type_pid_t=no
8514fi
8515rm -f conftest*
8516
8517fi
8518echo "$ac_t""$ac_cv_type_pid_t" 1>&6
8519if test $ac_cv_type_pid_t = no; then
8520 cat >> confdefs.h <<\EOF
8521#define pid_t int
8522EOF
8523
8524fi
8525
8526echo $ac_n "checking for size_t""... $ac_c" 1>&6
7eef8db2 8527echo "configure:8528: checking for size_t" >&5
10f2d63a
VZ
8528if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
8529 echo $ac_n "(cached) $ac_c" 1>&6
8530else
8531 cat > conftest.$ac_ext <<EOF
7eef8db2 8532#line 8533 "configure"
10f2d63a
VZ
8533#include "confdefs.h"
8534#include <sys/types.h>
8535#if STDC_HEADERS
8536#include <stdlib.h>
8537#include <stddef.h>
8538#endif
8539EOF
8540if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8541 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
8542 rm -rf conftest*
8543 ac_cv_type_size_t=yes
8544else
8545 rm -rf conftest*
8546 ac_cv_type_size_t=no
8547fi
8548rm -f conftest*
8549
8550fi
8551echo "$ac_t""$ac_cv_type_size_t" 1>&6
8552if test $ac_cv_type_size_t = no; then
8553 cat >> confdefs.h <<\EOF
8554#define size_t unsigned
8555EOF
8556
8557fi
8558
8559echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
7eef8db2 8560echo "configure:8561: checking for uid_t in sys/types.h" >&5
10f2d63a
VZ
8561if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
8562 echo $ac_n "(cached) $ac_c" 1>&6
8563else
8564 cat > conftest.$ac_ext <<EOF
7eef8db2 8565#line 8566 "configure"
10f2d63a
VZ
8566#include "confdefs.h"
8567#include <sys/types.h>
8568EOF
8569if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8570 egrep "uid_t" >/dev/null 2>&1; then
8571 rm -rf conftest*
8572 ac_cv_type_uid_t=yes
8573else
8574 rm -rf conftest*
8575 ac_cv_type_uid_t=no
8576fi
8577rm -f conftest*
8578
8579fi
8580
8581echo "$ac_t""$ac_cv_type_uid_t" 1>&6
8582if test $ac_cv_type_uid_t = no; then
8583 cat >> confdefs.h <<\EOF
8584#define uid_t int
8585EOF
8586
8587 cat >> confdefs.h <<\EOF
8588#define gid_t int
8589EOF
8590
8591fi
8592
8593
8594
8595
8596echo $ac_n "checking for working const""... $ac_c" 1>&6
7eef8db2 8597echo "configure:8598: checking for working const" >&5
10f2d63a
VZ
8598if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
8599 echo $ac_n "(cached) $ac_c" 1>&6
8600else
8601 cat > conftest.$ac_ext <<EOF
7eef8db2 8602#line 8603 "configure"
10f2d63a
VZ
8603#include "confdefs.h"
8604
8605int main() {
8606
8607/* Ultrix mips cc rejects this. */
8608typedef int charset[2]; const charset x;
8609/* SunOS 4.1.1 cc rejects this. */
8610char const *const *ccp;
8611char **p;
8612/* NEC SVR4.0.2 mips cc rejects this. */
8613struct point {int x, y;};
8614static struct point const zero = {0,0};
8615/* AIX XL C 1.02.0.0 rejects this.
8616 It does not let you subtract one const X* pointer from another in an arm
8617 of an if-expression whose if-part is not a constant expression */
8618const char *g = "string";
8619ccp = &g + (g ? g-g : 0);
8620/* HPUX 7.0 cc rejects these. */
8621++ccp;
8622p = (char**) ccp;
8623ccp = (char const *const *) p;
8624{ /* SCO 3.2v4 cc rejects this. */
8625 char *t;
8626 char const *s = 0 ? (char *) 0 : (char const *) 0;
8627
8628 *t++ = 0;
8629}
8630{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8631 int x[] = {25, 17};
8632 const int *foo = &x[0];
8633 ++foo;
8634}
8635{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8636 typedef const int *iptr;
8637 iptr p = 0;
8638 ++p;
8639}
8640{ /* AIX XL C 1.02.0.0 rejects this saying
8641 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8642 struct s { int j; const int *ap[3]; };
8643 struct s *b; b->j = 5;
8644}
8645{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8646 const int foo = 10;
8647}
8648
8649; return 0; }
8650EOF
7eef8db2 8651if { (eval echo configure:8652: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10f2d63a
VZ
8652 rm -rf conftest*
8653 ac_cv_c_const=yes
8654else
8655 echo "configure: failed program was:" >&5
8656 cat conftest.$ac_ext >&5
8657 rm -rf conftest*
8658 ac_cv_c_const=no
8659fi
8660rm -f conftest*
8661fi
8662
8663echo "$ac_t""$ac_cv_c_const" 1>&6
8664if test $ac_cv_c_const = no; then
8665 cat >> confdefs.h <<\EOF
8666#define const
8667EOF
8668
8669fi
8670
8671echo $ac_n "checking for inline""... $ac_c" 1>&6
7eef8db2 8672echo "configure:8673: checking for inline" >&5
10f2d63a
VZ
8673if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
8674 echo $ac_n "(cached) $ac_c" 1>&6
8675else
8676 ac_cv_c_inline=no
8677for ac_kw in inline __inline__ __inline; do
8678 cat > conftest.$ac_ext <<EOF
7eef8db2 8679#line 8680 "configure"
10f2d63a
VZ
8680#include "confdefs.h"
8681
8682int main() {
8683} $ac_kw foo() {
8684; return 0; }
8685EOF
7eef8db2 8686if { (eval echo configure:8687: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10f2d63a
VZ
8687 rm -rf conftest*
8688 ac_cv_c_inline=$ac_kw; break
8689else
8690 echo "configure: failed program was:" >&5
8691 cat conftest.$ac_ext >&5
8692fi
8693rm -f conftest*
8694done
8695
8696fi
8697
8698echo "$ac_t""$ac_cv_c_inline" 1>&6
8699case "$ac_cv_c_inline" in
8700 inline | yes) ;;
8701 no) cat >> confdefs.h <<\EOF
8702#define inline
8703EOF
8704 ;;
8705 *) cat >> confdefs.h <<EOF
8706#define inline $ac_cv_c_inline
8707EOF
8708 ;;
8709esac
8710
8711
8712echo $ac_n "checking size of char""... $ac_c" 1>&6
7eef8db2 8713echo "configure:8714: checking size of char" >&5
10f2d63a
VZ
8714if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then
8715 echo $ac_n "(cached) $ac_c" 1>&6
8716else
8717 if test "$cross_compiling" = yes; then
8718 ac_cv_sizeof_char=1
8719else
8720 cat > conftest.$ac_ext <<EOF
7eef8db2 8721#line 8722 "configure"
10f2d63a
VZ
8722#include "confdefs.h"
8723#include <stdio.h>
8724main()
8725{
8726 FILE *f=fopen("conftestval", "w");
8727 if (!f) exit(1);
8728 fprintf(f, "%d\n", sizeof(char));
8729 exit(0);
8730}
8731EOF
7eef8db2 8732if { (eval echo configure:8733: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10f2d63a
VZ
8733then
8734 ac_cv_sizeof_char=`cat conftestval`
8735else
8736 echo "configure: failed program was:" >&5
8737 cat conftest.$ac_ext >&5
8738 rm -fr conftest*
8739 ac_cv_sizeof_char=0
8740fi
8741rm -fr conftest*
8742fi
8743
8744fi
8745echo "$ac_t""$ac_cv_sizeof_char" 1>&6
8746cat >> confdefs.h <<EOF
8747#define SIZEOF_CHAR $ac_cv_sizeof_char
8748EOF
8749
8750
8751echo $ac_n "checking size of short""... $ac_c" 1>&6
7eef8db2 8752echo "configure:8753: checking size of short" >&5
10f2d63a
VZ
8753if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
8754 echo $ac_n "(cached) $ac_c" 1>&6
8755else
8756 if test "$cross_compiling" = yes; then
8757 ac_cv_sizeof_short=2
8758else
8759 cat > conftest.$ac_ext <<EOF
7eef8db2 8760#line 8761 "configure"
10f2d63a
VZ
8761#include "confdefs.h"
8762#include <stdio.h>
8763main()
8764{
8765 FILE *f=fopen("conftestval", "w");
8766 if (!f) exit(1);
8767 fprintf(f, "%d\n", sizeof(short));
8768 exit(0);
8769}
8770EOF
7eef8db2 8771if { (eval echo configure:8772: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10f2d63a
VZ
8772then
8773 ac_cv_sizeof_short=`cat conftestval`
8774else
8775 echo "configure: failed program was:" >&5
8776 cat conftest.$ac_ext >&5
8777 rm -fr conftest*
8778 ac_cv_sizeof_short=0
8779fi
8780rm -fr conftest*
8781fi
8782
8783fi
8784echo "$ac_t""$ac_cv_sizeof_short" 1>&6
8785cat >> confdefs.h <<EOF
8786#define SIZEOF_SHORT $ac_cv_sizeof_short
8787EOF
8788
8789
8790echo $ac_n "checking size of int *""... $ac_c" 1>&6
7eef8db2 8791echo "configure:8792: checking size of int *" >&5
10f2d63a
VZ
8792if eval "test \"`echo '$''{'ac_cv_sizeof_int_p'+set}'`\" = set"; then
8793 echo $ac_n "(cached) $ac_c" 1>&6
8794else
8795 if test "$cross_compiling" = yes; then
8796 ac_cv_sizeof_int_p=4
8797else
8798 cat > conftest.$ac_ext <<EOF
7eef8db2 8799#line 8800 "configure"
10f2d63a
VZ
8800#include "confdefs.h"
8801#include <stdio.h>
8802main()
8803{
8804 FILE *f=fopen("conftestval", "w");
8805 if (!f) exit(1);
8806 fprintf(f, "%d\n", sizeof(int *));
8807 exit(0);
8808}
8809EOF
7eef8db2 8810if { (eval echo configure:8811: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10f2d63a
VZ
8811then
8812 ac_cv_sizeof_int_p=`cat conftestval`
8813else
8814 echo "configure: failed program was:" >&5
8815 cat conftest.$ac_ext >&5
8816 rm -fr conftest*
8817 ac_cv_sizeof_int_p=0
8818fi
8819rm -fr conftest*
8820fi
8821
8822fi
8823echo "$ac_t""$ac_cv_sizeof_int_p" 1>&6
8824cat >> confdefs.h <<EOF
8825#define SIZEOF_INT_P $ac_cv_sizeof_int_p
8826EOF
8827
8828
8829echo $ac_n "checking size of int""... $ac_c" 1>&6
7eef8db2 8830echo "configure:8831: checking size of int" >&5
10f2d63a
VZ
8831if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
8832 echo $ac_n "(cached) $ac_c" 1>&6
8833else
8834 if test "$cross_compiling" = yes; then
8835 ac_cv_sizeof_int=4
8836else
8837 cat > conftest.$ac_ext <<EOF
7eef8db2 8838#line 8839 "configure"
10f2d63a
VZ
8839#include "confdefs.h"
8840#include <stdio.h>
8841main()
8842{
8843 FILE *f=fopen("conftestval", "w");
8844 if (!f) exit(1);
8845 fprintf(f, "%d\n", sizeof(int));
8846 exit(0);
8847}
8848EOF
7eef8db2 8849if { (eval echo configure:8850: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10f2d63a
VZ
8850then
8851 ac_cv_sizeof_int=`cat conftestval`
8852else
8853 echo "configure: failed program was:" >&5
8854 cat conftest.$ac_ext >&5
8855 rm -fr conftest*
8856 ac_cv_sizeof_int=0
8857fi
8858rm -fr conftest*
8859fi
8860
8861fi
8862echo "$ac_t""$ac_cv_sizeof_int" 1>&6
8863cat >> confdefs.h <<EOF
8864#define SIZEOF_INT $ac_cv_sizeof_int
8865EOF
8866
8867
8868echo $ac_n "checking size of long""... $ac_c" 1>&6
7eef8db2 8869echo "configure:8870: checking size of long" >&5
10f2d63a
VZ
8870if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
8871 echo $ac_n "(cached) $ac_c" 1>&6
8872else
8873 if test "$cross_compiling" = yes; then
8874 ac_cv_sizeof_long=4
8875else
8876 cat > conftest.$ac_ext <<EOF
7eef8db2 8877#line 8878 "configure"
10f2d63a
VZ
8878#include "confdefs.h"
8879#include <stdio.h>
8880main()
8881{
8882 FILE *f=fopen("conftestval", "w");
8883 if (!f) exit(1);
8884 fprintf(f, "%d\n", sizeof(long));
8885 exit(0);
8886}
8887EOF
7eef8db2 8888if { (eval echo configure:8889: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10f2d63a
VZ
8889then
8890 ac_cv_sizeof_long=`cat conftestval`
8891else
8892 echo "configure: failed program was:" >&5
8893 cat conftest.$ac_ext >&5
8894 rm -fr conftest*
8895 ac_cv_sizeof_long=0
8896fi
8897rm -fr conftest*
8898fi
8899
8900fi
8901echo "$ac_t""$ac_cv_sizeof_long" 1>&6
8902cat >> confdefs.h <<EOF
8903#define SIZEOF_LONG $ac_cv_sizeof_long
8904EOF
8905
8906
8907echo $ac_n "checking size of long long""... $ac_c" 1>&6
7eef8db2 8908echo "configure:8909: checking size of long long" >&5
10f2d63a
VZ
8909if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
8910 echo $ac_n "(cached) $ac_c" 1>&6
8911else
8912 if test "$cross_compiling" = yes; then
8913 ac_cv_sizeof_long_long=0
8914else
8915 cat > conftest.$ac_ext <<EOF
7eef8db2 8916#line 8917 "configure"
10f2d63a
VZ
8917#include "confdefs.h"
8918#include <stdio.h>
8919main()
8920{
8921 FILE *f=fopen("conftestval", "w");
8922 if (!f) exit(1);
8923 fprintf(f, "%d\n", sizeof(long long));
8924 exit(0);
8925}
8926EOF
7eef8db2 8927if { (eval echo configure:8928: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10f2d63a
VZ
8928then
8929 ac_cv_sizeof_long_long=`cat conftestval`
8930else
8931 echo "configure: failed program was:" >&5
8932 cat conftest.$ac_ext >&5
8933 rm -fr conftest*
8934 ac_cv_sizeof_long_long=0
8935fi
8936rm -fr conftest*
8937fi
8938
8939fi
8940echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
8941cat >> confdefs.h <<EOF
8942#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
8943EOF
8944
8945
8946
8947echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
7eef8db2 8948echo "configure:8949: checking whether byte ordering is bigendian" >&5
10f2d63a
VZ
8949if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
8950 echo $ac_n "(cached) $ac_c" 1>&6
8951else
8952 ac_cv_c_bigendian=unknown
8953# See if sys/param.h defines the BYTE_ORDER macro.
8954cat > conftest.$ac_ext <<EOF
7eef8db2 8955#line 8956 "configure"
10f2d63a
VZ
8956#include "confdefs.h"
8957#include <sys/types.h>
8958#include <sys/param.h>
8959int main() {
8960
8961#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
8962 bogus endian macros
8963#endif
8964; return 0; }
8965EOF
7eef8db2 8966if { (eval echo configure:8967: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10f2d63a
VZ
8967 rm -rf conftest*
8968 # It does; now see whether it defined to BIG_ENDIAN or not.
8969cat > conftest.$ac_ext <<EOF
7eef8db2 8970#line 8971 "configure"
10f2d63a
VZ
8971#include "confdefs.h"
8972#include <sys/types.h>
8973#include <sys/param.h>
8974int main() {
8975
8976#if BYTE_ORDER != BIG_ENDIAN
8977 not big endian
8978#endif
8979; return 0; }
8980EOF
7eef8db2 8981if { (eval echo configure:8982: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10f2d63a
VZ
8982 rm -rf conftest*
8983 ac_cv_c_bigendian=yes
8984else
8985 echo "configure: failed program was:" >&5
8986 cat conftest.$ac_ext >&5
8987 rm -rf conftest*
8988 ac_cv_c_bigendian=no
8989fi
8990rm -f conftest*
8991else
8992 echo "configure: failed program was:" >&5
8993 cat conftest.$ac_ext >&5
8994fi
8995rm -f conftest*
8996if test $ac_cv_c_bigendian = unknown; then
8997if test "$cross_compiling" = yes; then
8998 ac_cv_c_bigendian=unknown
8999else
9000 cat > conftest.$ac_ext <<EOF
7eef8db2 9001#line 9002 "configure"
10f2d63a
VZ
9002#include "confdefs.h"
9003main () {
9004 /* Are we little or big endian? From Harbison&Steele. */
9005 union
9006 {
9007 long l;
9008 char c[sizeof (long)];
9009 } u;
9010 u.l = 1;
9011 exit (u.c[sizeof (long) - 1] == 1);
9012}
9013EOF
7eef8db2 9014if { (eval echo configure:9015: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10f2d63a
VZ
9015then
9016 ac_cv_c_bigendian=no
9017else
9018 echo "configure: failed program was:" >&5
9019 cat conftest.$ac_ext >&5
9020 rm -fr conftest*
9021 ac_cv_c_bigendian=yes
9022fi
9023rm -fr conftest*
9024fi
9025
9026fi
9027fi
9028
9029echo "$ac_t""$ac_cv_c_bigendian" 1>&6
9030if test $ac_cv_c_bigendian = unknown; then
9031 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
9032fi
9033if test $ac_cv_c_bigendian = yes; then
9034 cat >> confdefs.h <<\EOF
9035#define WORDS_BIGENDIAN 1
9036EOF
9037
9038fi
9039
9040
9041
9042 if test "$cross_compiling" = "yes"; then
9043 cat >> confdefs.h <<\EOF
9044#define wxUSE_IOSTREAMH 1
9045EOF
9046
9047 else
9048
9049 ac_ext=C
9050# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9051ac_cpp='$CXXCPP $CPPFLAGS'
9052ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9053ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9054cross_compiling=$ac_cv_prog_cxx_cross
9055
9056
9057 for ac_hdr in iostream
9058do
9059ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9060echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7eef8db2 9061echo "configure:9062: checking for $ac_hdr" >&5
10f2d63a
VZ
9062if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9063 echo $ac_n "(cached) $ac_c" 1>&6
9064else
9065 cat > conftest.$ac_ext <<EOF
7eef8db2 9066#line 9067 "configure"
10f2d63a
VZ
9067#include "confdefs.h"
9068#include <$ac_hdr>
9069EOF
9070ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7eef8db2 9071{ (eval echo configure:9072: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
9072ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9073if test -z "$ac_err"; then
9074 rm -rf conftest*
9075 eval "ac_cv_header_$ac_safe=yes"
9076else
9077 echo "$ac_err" >&5
9078 echo "configure: failed program was:" >&5
9079 cat conftest.$ac_ext >&5
9080 rm -rf conftest*
9081 eval "ac_cv_header_$ac_safe=no"
9082fi
9083rm -f conftest*
9084fi
9085if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9086 echo "$ac_t""yes" 1>&6
9087 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9088 cat >> confdefs.h <<EOF
9089#define $ac_tr_hdr 1
9090EOF
9091
9092else
9093 echo "$ac_t""no" 1>&6
9094fi
9095done
9096
9097
9098 if test "x$HAVE_IOSTREAM" = x ; then
9099 cat >> confdefs.h <<\EOF
9100#define wxUSE_IOSTREAMH 1
9101EOF
9102
9103 else
9104 :
9105 fi
9106
9107 ac_ext=c
9108# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9109ac_cpp='$CPP $CPPFLAGS'
9110ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9111ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9112cross_compiling=$ac_cv_prog_cc_cross
9113
9114 fi
9115
9116
9117
9118 echo $ac_n "checking if C++ compiler supports bool""... $ac_c" 1>&6
7eef8db2 9119echo "configure:9120: checking if C++ compiler supports bool" >&5
10f2d63a
VZ
9120if eval "test \"`echo '$''{'wx_cv_cpp_bool'+set}'`\" = set"; then
9121 echo $ac_n "(cached) $ac_c" 1>&6
9122else
9123
9124
9125 ac_ext=C
9126# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9127ac_cpp='$CXXCPP $CPPFLAGS'
9128ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9129ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9130cross_compiling=$ac_cv_prog_cxx_cross
9131
9132
9133 cat > conftest.$ac_ext <<EOF
7eef8db2 9134#line 9135 "configure"
10f2d63a
VZ
9135#include "confdefs.h"
9136
9137
9138int main() {
9139
9140 bool b = true;
9141
9142 return 0;
9143
9144; return 0; }
9145EOF
7eef8db2 9146if { (eval echo configure:9147: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10f2d63a
VZ
9147 rm -rf conftest*
9148
9149 cat >> confdefs.h <<\EOF
9150#define HAVE_BOOL 1
9151EOF
9152
9153 wx_cv_cpp_bool=yes
9154
9155else
9156 echo "configure: failed program was:" >&5
9157 cat conftest.$ac_ext >&5
9158 rm -rf conftest*
9159
9160 wx_cv_cpp_bool=no
9161
9162
9163fi
9164rm -f conftest*
9165
9166 ac_ext=c
9167# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9168ac_cpp='$CPP $CPPFLAGS'
9169ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9170ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9171cross_compiling=$ac_cv_prog_cc_cross
9172
9173
9174fi
9175
9176echo "$ac_t""$wx_cv_cpp_bool" 1>&6
9177
9178 if test "$wx_cv_cpp_bool" = "yes"; then
9179 cat >> confdefs.h <<\EOF
9180#define HAVE_BOOL 1
9181EOF
9182
9183 fi
9184
9185
9186
10f2d63a 9187echo $ac_n "checking if you need GNU extensions""... $ac_c" 1>&6
7eef8db2 9188echo "configure:9189: checking if you need GNU extensions" >&5
10f2d63a
VZ
9189if eval "test \"`echo '$''{'wx_cv_gnu_extensions'+set}'`\" = set"; then
9190 echo $ac_n "(cached) $ac_c" 1>&6
9191else
9192
9193 cat > conftest.$ac_ext <<EOF
7eef8db2 9194#line 9195 "configure"
10f2d63a
VZ
9195#include "confdefs.h"
9196#include <features.h>
9197int main() {
9198
9199
9200#ifndef __GNU_LIBRARY__
9201 Compile error wanted
9202#endif
9203
9204
9205; return 0; }
9206EOF
7eef8db2 9207if { (eval echo configure:9208: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10f2d63a
VZ
9208 rm -rf conftest*
9209 wx_cv_gnu_extensions=yes
9210else
9211 echo "configure: failed program was:" >&5
9212 cat conftest.$ac_ext >&5
9213 rm -rf conftest*
9214 wx_cv_gnu_extensions=no
9215fi
9216rm -f conftest*
9217
9218fi
9219
9220
9221echo "$ac_t""$wx_cv_gnu_extensions" 1>&6
9222if test "$wx_cv_gnu_extensions" = "yes"; then
9223 cat >> confdefs.h <<EOF
9224#define _GNU_SOURCE 1
9225EOF
9226
9227fi
9228
9229
9230
9231echo $ac_n "checking for wcslen in -lc""... $ac_c" 1>&6
7eef8db2 9232echo "configure:9233: checking for wcslen in -lc" >&5
10f2d63a
VZ
9233ac_lib_var=`echo c'_'wcslen | sed 'y%./+-%__p_%'`
9234if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9235 echo $ac_n "(cached) $ac_c" 1>&6
9236else
9237 ac_save_LIBS="$LIBS"
9238LIBS="-lc $LIBS"
9239cat > conftest.$ac_ext <<EOF
7eef8db2 9240#line 9241 "configure"
10f2d63a
VZ
9241#include "confdefs.h"
9242/* Override any gcc2 internal prototype to avoid an error. */
9243/* We use char because int might match the return type of a gcc2
9244 builtin and then its argument prototype would still apply. */
9245char wcslen();
9246
9247int main() {
9248wcslen()
9249; return 0; }
9250EOF
7eef8db2 9251if { (eval echo configure:9252: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
9252 rm -rf conftest*
9253 eval "ac_cv_lib_$ac_lib_var=yes"
9254else
9255 echo "configure: failed program was:" >&5
9256 cat conftest.$ac_ext >&5
9257 rm -rf conftest*
9258 eval "ac_cv_lib_$ac_lib_var=no"
9259fi
9260rm -f conftest*
9261LIBS="$ac_save_LIBS"
9262
9263fi
9264if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9265 echo "$ac_t""yes" 1>&6
9266
9267 cat >> confdefs.h <<\EOF
9268#define HAVE_WCSLEN 1
9269EOF
9270
9271 WCHAR_LINK=""
9272
9273else
9274 echo "$ac_t""no" 1>&6
9275
9276 echo $ac_n "checking for wcslen in -lw""... $ac_c" 1>&6
7eef8db2 9277echo "configure:9278: checking for wcslen in -lw" >&5
10f2d63a
VZ
9278ac_lib_var=`echo w'_'wcslen | sed 'y%./+-%__p_%'`
9279if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9280 echo $ac_n "(cached) $ac_c" 1>&6
9281else
9282 ac_save_LIBS="$LIBS"
9283LIBS="-lw $LIBS"
9284cat > conftest.$ac_ext <<EOF
7eef8db2 9285#line 9286 "configure"
10f2d63a
VZ
9286#include "confdefs.h"
9287/* Override any gcc2 internal prototype to avoid an error. */
9288/* We use char because int might match the return type of a gcc2
9289 builtin and then its argument prototype would still apply. */
9290char wcslen();
9291
9292int main() {
9293wcslen()
9294; return 0; }
9295EOF
7eef8db2 9296if { (eval echo configure:9297: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
9297 rm -rf conftest*
9298 eval "ac_cv_lib_$ac_lib_var=yes"
9299else
9300 echo "configure: failed program was:" >&5
9301 cat conftest.$ac_ext >&5
9302 rm -rf conftest*
9303 eval "ac_cv_lib_$ac_lib_var=no"
9304fi
9305rm -f conftest*
9306LIBS="$ac_save_LIBS"
9307
9308fi
9309if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9310 echo "$ac_t""yes" 1>&6
9311
9312 cat >> confdefs.h <<\EOF
9313#define HAVE_WCSLEN 1
9314EOF
9315
9316 WCHAR_LINK="-lw"
9317
9318else
9319 echo "$ac_t""no" 1>&6
9320fi
9321
9322
9323fi
9324
9325
9326echo $ac_n "checking for vprintf""... $ac_c" 1>&6
7eef8db2 9327echo "configure:9328: checking for vprintf" >&5
10f2d63a
VZ
9328if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
9329 echo $ac_n "(cached) $ac_c" 1>&6
9330else
9331 cat > conftest.$ac_ext <<EOF
7eef8db2 9332#line 9333 "configure"
10f2d63a
VZ
9333#include "confdefs.h"
9334/* System header to define __stub macros and hopefully few prototypes,
9335 which can conflict with char vprintf(); below. */
9336#include <assert.h>
9337/* Override any gcc2 internal prototype to avoid an error. */
9338/* We use char because int might match the return type of a gcc2
9339 builtin and then its argument prototype would still apply. */
9340char vprintf();
69ffe1d2 9341char (*f)();
10f2d63a
VZ
9342
9343int main() {
9344
9345/* The GNU C library defines this for functions which it implements
9346 to always fail with ENOSYS. Some functions are actually named
9347 something starting with __ and the normal name is an alias. */
9348#if defined (__stub_vprintf) || defined (__stub___vprintf)
9349choke me
9350#else
69ffe1d2 9351f = vprintf;
10f2d63a
VZ
9352#endif
9353
9354; return 0; }
9355EOF
7eef8db2 9356if { (eval echo configure:9357: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
9357 rm -rf conftest*
9358 eval "ac_cv_func_vprintf=yes"
9359else
9360 echo "configure: failed program was:" >&5
9361 cat conftest.$ac_ext >&5
9362 rm -rf conftest*
9363 eval "ac_cv_func_vprintf=no"
9364fi
9365rm -f conftest*
9366fi
9367
9368if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
9369 echo "$ac_t""yes" 1>&6
9370 cat >> confdefs.h <<\EOF
9371#define HAVE_VPRINTF 1
9372EOF
9373
9374else
9375 echo "$ac_t""no" 1>&6
9376fi
9377
9378if test "$ac_cv_func_vprintf" != yes; then
9379echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
7eef8db2 9380echo "configure:9381: checking for _doprnt" >&5
10f2d63a
VZ
9381if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
9382 echo $ac_n "(cached) $ac_c" 1>&6
9383else
9384 cat > conftest.$ac_ext <<EOF
7eef8db2 9385#line 9386 "configure"
10f2d63a
VZ
9386#include "confdefs.h"
9387/* System header to define __stub macros and hopefully few prototypes,
9388 which can conflict with char _doprnt(); below. */
9389#include <assert.h>
9390/* Override any gcc2 internal prototype to avoid an error. */
9391/* We use char because int might match the return type of a gcc2
9392 builtin and then its argument prototype would still apply. */
9393char _doprnt();
69ffe1d2 9394char (*f)();
10f2d63a
VZ
9395
9396int main() {
9397
9398/* The GNU C library defines this for functions which it implements
9399 to always fail with ENOSYS. Some functions are actually named
9400 something starting with __ and the normal name is an alias. */
9401#if defined (__stub__doprnt) || defined (__stub____doprnt)
9402choke me
9403#else
69ffe1d2 9404f = _doprnt;
10f2d63a
VZ
9405#endif
9406
9407; return 0; }
9408EOF
7eef8db2 9409if { (eval echo configure:9410: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
9410 rm -rf conftest*
9411 eval "ac_cv_func__doprnt=yes"
9412else
9413 echo "configure: failed program was:" >&5
9414 cat conftest.$ac_ext >&5
9415 rm -rf conftest*
9416 eval "ac_cv_func__doprnt=no"
9417fi
9418rm -f conftest*
9419fi
9420
9421if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
9422 echo "$ac_t""yes" 1>&6
9423 cat >> confdefs.h <<\EOF
9424#define HAVE_DOPRNT 1
9425EOF
9426
9427else
9428 echo "$ac_t""no" 1>&6
9429fi
9430
9431fi
9432
9433
9434for ac_func in vsnprintf
9435do
9436echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7eef8db2 9437echo "configure:9438: checking for $ac_func" >&5
10f2d63a
VZ
9438if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9439 echo $ac_n "(cached) $ac_c" 1>&6
9440else
9441 cat > conftest.$ac_ext <<EOF
7eef8db2 9442#line 9443 "configure"
10f2d63a
VZ
9443#include "confdefs.h"
9444/* System header to define __stub macros and hopefully few prototypes,
9445 which can conflict with char $ac_func(); below. */
9446#include <assert.h>
9447/* Override any gcc2 internal prototype to avoid an error. */
9448/* We use char because int might match the return type of a gcc2
9449 builtin and then its argument prototype would still apply. */
9450char $ac_func();
69ffe1d2 9451char (*f)();
10f2d63a
VZ
9452
9453int main() {
9454
9455/* The GNU C library defines this for functions which it implements
9456 to always fail with ENOSYS. Some functions are actually named
9457 something starting with __ and the normal name is an alias. */
9458#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9459choke me
9460#else
69ffe1d2 9461f = $ac_func;
10f2d63a
VZ
9462#endif
9463
9464; return 0; }
9465EOF
7eef8db2 9466if { (eval echo configure:9467: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
9467 rm -rf conftest*
9468 eval "ac_cv_func_$ac_func=yes"
9469else
9470 echo "configure: failed program was:" >&5
9471 cat conftest.$ac_ext >&5
9472 rm -rf conftest*
9473 eval "ac_cv_func_$ac_func=no"
9474fi
9475rm -f conftest*
9476fi
9477
9478if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9479 echo "$ac_t""yes" 1>&6
9480 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9481 cat >> confdefs.h <<EOF
9482#define $ac_tr_func 1
9483EOF
9484 cat >> confdefs.h <<\EOF
9485#define HAVE_VSNPRINTF 1
9486EOF
9487
9488else
9489 echo "$ac_t""no" 1>&6
9490echo "configure: warning: unsafe function sprintf will be used instead of snprintf" 1>&2
9491
9492fi
9493done
9494
9495
9496
9497ac_ext=C
9498# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9499ac_cpp='$CXXCPP $CPPFLAGS'
9500ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9501ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9502cross_compiling=$ac_cv_prog_cxx_cross
9503
9504
9505echo $ac_n "checking for vsscanf""... $ac_c" 1>&6
7eef8db2 9506echo "configure:9507: checking for vsscanf" >&5
10f2d63a
VZ
9507if eval "test \"`echo '$''{'wx_cv_func_vsscanf'+set}'`\" = set"; then
9508 echo $ac_n "(cached) $ac_c" 1>&6
9509else
9510
9511 if test "$cross_compiling" = yes; then
9512 wx_cv_func_vsscanf=no
9513
9514else
9515 cat > conftest.$ac_ext <<EOF
7eef8db2 9516#line 9517 "configure"
10f2d63a
VZ
9517#include "confdefs.h"
9518#ifdef __cplusplus
9519extern "C" void exit(int);
9520#endif
9521
9522 #include <stdio.h>
9523 #include <stdarg.h>
9524
9525 int try_vsscanf(const char *format, ...)
9526 {
9527 va_list ap;
9528 va_start(ap, format);
9529
9530 vsscanf("17", format, ap);
9531
9532 va_end(ap);
9533 }
9534
9535 int main()
9536 {
9537 int i;
9538 try_vsscanf("%d", &i);
9539 return i == 17 ? 0 : 1;
9540 }
9541
9542EOF
7eef8db2 9543if { (eval echo configure:9544: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10f2d63a
VZ
9544then
9545
9546 cat >> confdefs.h <<\EOF
9547#define HAVE_VSSCANF 1
9548EOF
9549
9550 wx_cv_func_vsscanf=yes
9551
9552else
9553 echo "configure: failed program was:" >&5
9554 cat conftest.$ac_ext >&5
9555 rm -fr conftest*
9556 wx_cv_func_vsscanf=no
9557fi
9558rm -fr conftest*
9559fi
9560
9561
9562fi
9563
9564echo "$ac_t""$wx_cv_func_vsscanf" 1>&6
9565
9566ac_ext=c
9567# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9568ac_cpp='$CPP $CPPFLAGS'
9569ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9570ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9571cross_compiling=$ac_cv_prog_cc_cross
9572
9573
9574if test "$USE_UNIX" = 1; then
9575
9576for ac_func in vfork
9577do
9578echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7eef8db2 9579echo "configure:9580: checking for $ac_func" >&5
10f2d63a
VZ
9580if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9581 echo $ac_n "(cached) $ac_c" 1>&6
9582else
9583 cat > conftest.$ac_ext <<EOF
7eef8db2 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 $ac_func(); 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 $ac_func();
69ffe1d2 9593char (*f)();
10f2d63a
VZ
9594
9595int main() {
9596
9597/* The GNU C library defines this for functions which it implements
9598 to always fail with ENOSYS. Some functions are actually named
9599 something starting with __ and the normal name is an alias. */
9600#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9601choke me
9602#else
69ffe1d2 9603f = $ac_func;
10f2d63a
VZ
9604#endif
9605
9606; return 0; }
9607EOF
7eef8db2 9608if { (eval echo configure:9609: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
9609 rm -rf conftest*
9610 eval "ac_cv_func_$ac_func=yes"
9611else
9612 echo "configure: failed program was:" >&5
9613 cat conftest.$ac_ext >&5
9614 rm -rf conftest*
9615 eval "ac_cv_func_$ac_func=no"
9616fi
9617rm -f conftest*
9618fi
9619
9620if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9621 echo "$ac_t""yes" 1>&6
9622 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9623 cat >> confdefs.h <<EOF
9624#define $ac_tr_func 1
9625EOF
9626
9627else
9628 echo "$ac_t""no" 1>&6
9629fi
9630done
9631
9632
9633POSIX4_LINK=
9634for ac_func in nanosleep
9635do
9636echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7eef8db2 9637echo "configure:9638: checking for $ac_func" >&5
10f2d63a
VZ
9638if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9639 echo $ac_n "(cached) $ac_c" 1>&6
9640else
9641 cat > conftest.$ac_ext <<EOF
7eef8db2 9642#line 9643 "configure"
10f2d63a
VZ
9643#include "confdefs.h"
9644/* System header to define __stub macros and hopefully few prototypes,
9645 which can conflict with char $ac_func(); below. */
9646#include <assert.h>
9647/* Override any gcc2 internal prototype to avoid an error. */
9648/* We use char because int might match the return type of a gcc2
9649 builtin and then its argument prototype would still apply. */
9650char $ac_func();
69ffe1d2 9651char (*f)();
10f2d63a
VZ
9652
9653int main() {
9654
9655/* The GNU C library defines this for functions which it implements
9656 to always fail with ENOSYS. Some functions are actually named
9657 something starting with __ and the normal name is an alias. */
9658#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9659choke me
9660#else
69ffe1d2 9661f = $ac_func;
10f2d63a
VZ
9662#endif
9663
9664; return 0; }
9665EOF
7eef8db2 9666if { (eval echo configure:9667: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
9667 rm -rf conftest*
9668 eval "ac_cv_func_$ac_func=yes"
9669else
9670 echo "configure: failed program was:" >&5
9671 cat conftest.$ac_ext >&5
9672 rm -rf conftest*
9673 eval "ac_cv_func_$ac_func=no"
9674fi
9675rm -f conftest*
9676fi
9677
9678if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9679 echo "$ac_t""yes" 1>&6
9680 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9681 cat >> confdefs.h <<EOF
9682#define $ac_tr_func 1
9683EOF
9684 cat >> confdefs.h <<\EOF
9685#define HAVE_NANOSLEEP 1
9686EOF
9687
9688else
9689 echo "$ac_t""no" 1>&6
9690echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6
7eef8db2 9691echo "configure:9692: checking for nanosleep in -lposix4" >&5
10f2d63a
VZ
9692ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'`
9693if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9694 echo $ac_n "(cached) $ac_c" 1>&6
9695else
9696 ac_save_LIBS="$LIBS"
9697LIBS="-lposix4 $LIBS"
9698cat > conftest.$ac_ext <<EOF
7eef8db2 9699#line 9700 "configure"
10f2d63a
VZ
9700#include "confdefs.h"
9701/* Override any gcc2 internal prototype to avoid an error. */
9702/* We use char because int might match the return type of a gcc2
9703 builtin and then its argument prototype would still apply. */
9704char nanosleep();
9705
9706int main() {
9707nanosleep()
9708; return 0; }
9709EOF
7eef8db2 9710if { (eval echo configure:9711: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
9711 rm -rf conftest*
9712 eval "ac_cv_lib_$ac_lib_var=yes"
9713else
9714 echo "configure: failed program was:" >&5
9715 cat conftest.$ac_ext >&5
9716 rm -rf conftest*
9717 eval "ac_cv_lib_$ac_lib_var=no"
9718fi
9719rm -f conftest*
9720LIBS="$ac_save_LIBS"
9721
9722fi
9723if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9724 echo "$ac_t""yes" 1>&6
9725
9726 cat >> confdefs.h <<\EOF
9727#define HAVE_NANOSLEEP 1
9728EOF
9729
9730 POSIX4_LINK="-lposix4"
9731
9732else
9733 echo "$ac_t""no" 1>&6
9734
9735 for ac_func in usleep
9736do
9737echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7eef8db2 9738echo "configure:9739: checking for $ac_func" >&5
10f2d63a
VZ
9739if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9740 echo $ac_n "(cached) $ac_c" 1>&6
9741else
9742 cat > conftest.$ac_ext <<EOF
7eef8db2 9743#line 9744 "configure"
10f2d63a
VZ
9744#include "confdefs.h"
9745/* System header to define __stub macros and hopefully few prototypes,
9746 which can conflict with char $ac_func(); below. */
9747#include <assert.h>
9748/* Override any gcc2 internal prototype to avoid an error. */
9749/* We use char because int might match the return type of a gcc2
9750 builtin and then its argument prototype would still apply. */
9751char $ac_func();
69ffe1d2 9752char (*f)();
10f2d63a
VZ
9753
9754int main() {
9755
9756/* The GNU C library defines this for functions which it implements
9757 to always fail with ENOSYS. Some functions are actually named
9758 something starting with __ and the normal name is an alias. */
9759#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9760choke me
9761#else
69ffe1d2 9762f = $ac_func;
10f2d63a
VZ
9763#endif
9764
9765; return 0; }
9766EOF
7eef8db2 9767if { (eval echo configure:9768: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
9768 rm -rf conftest*
9769 eval "ac_cv_func_$ac_func=yes"
9770else
9771 echo "configure: failed program was:" >&5
9772 cat conftest.$ac_ext >&5
9773 rm -rf conftest*
9774 eval "ac_cv_func_$ac_func=no"
9775fi
9776rm -f conftest*
9777fi
9778
9779if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9780 echo "$ac_t""yes" 1>&6
9781 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9782 cat >> confdefs.h <<EOF
9783#define $ac_tr_func 1
9784EOF
9785 cat >> confdefs.h <<\EOF
9786#define HAVE_USLEEP 1
9787EOF
9788
9789else
9790 echo "$ac_t""no" 1>&6
9791echo "configure: warning: wxSleep() function will not work" 1>&2
9792fi
9793done
9794
9795
9796fi
9797
9798
9799fi
9800done
9801
9802
9803for ac_func in uname gethostname
9804do
9805echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7eef8db2 9806echo "configure:9807: checking for $ac_func" >&5
10f2d63a
VZ
9807if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9808 echo $ac_n "(cached) $ac_c" 1>&6
9809else
9810 cat > conftest.$ac_ext <<EOF
7eef8db2 9811#line 9812 "configure"
10f2d63a
VZ
9812#include "confdefs.h"
9813/* System header to define __stub macros and hopefully few prototypes,
9814 which can conflict with char $ac_func(); below. */
9815#include <assert.h>
9816/* Override any gcc2 internal prototype to avoid an error. */
9817/* We use char because int might match the return type of a gcc2
9818 builtin and then its argument prototype would still apply. */
9819char $ac_func();
69ffe1d2 9820char (*f)();
10f2d63a
VZ
9821
9822int main() {
9823
9824/* The GNU C library defines this for functions which it implements
9825 to always fail with ENOSYS. Some functions are actually named
9826 something starting with __ and the normal name is an alias. */
9827#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9828choke me
9829#else
69ffe1d2 9830f = $ac_func;
10f2d63a
VZ
9831#endif
9832
9833; return 0; }
9834EOF
7eef8db2 9835if { (eval echo configure:9836: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
9836 rm -rf conftest*
9837 eval "ac_cv_func_$ac_func=yes"
9838else
9839 echo "configure: failed program was:" >&5
9840 cat conftest.$ac_ext >&5
9841 rm -rf conftest*
9842 eval "ac_cv_func_$ac_func=no"
9843fi
9844rm -f conftest*
9845fi
9846
9847if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9848 echo "$ac_t""yes" 1>&6
9849 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9850 cat >> confdefs.h <<EOF
9851#define $ac_tr_func 1
9852EOF
9853 break
9854else
9855 echo "$ac_t""no" 1>&6
9856fi
9857done
9858
9859
9860for ac_func in strtok_r
9861do
9862echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7eef8db2 9863echo "configure:9864: checking for $ac_func" >&5
10f2d63a
VZ
9864if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9865 echo $ac_n "(cached) $ac_c" 1>&6
9866else
9867 cat > conftest.$ac_ext <<EOF
7eef8db2 9868#line 9869 "configure"
10f2d63a
VZ
9869#include "confdefs.h"
9870/* System header to define __stub macros and hopefully few prototypes,
9871 which can conflict with char $ac_func(); below. */
9872#include <assert.h>
9873/* Override any gcc2 internal prototype to avoid an error. */
9874/* We use char because int might match the return type of a gcc2
9875 builtin and then its argument prototype would still apply. */
9876char $ac_func();
69ffe1d2 9877char (*f)();
10f2d63a
VZ
9878
9879int main() {
9880
9881/* The GNU C library defines this for functions which it implements
9882 to always fail with ENOSYS. Some functions are actually named
9883 something starting with __ and the normal name is an alias. */
9884#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9885choke me
9886#else
69ffe1d2 9887f = $ac_func;
10f2d63a
VZ
9888#endif
9889
9890; return 0; }
9891EOF
7eef8db2 9892if { (eval echo configure:9893: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
9893 rm -rf conftest*
9894 eval "ac_cv_func_$ac_func=yes"
9895else
9896 echo "configure: failed program was:" >&5
9897 cat conftest.$ac_ext >&5
9898 rm -rf conftest*
9899 eval "ac_cv_func_$ac_func=no"
9900fi
9901rm -f conftest*
9902fi
9903
9904if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9905 echo "$ac_t""yes" 1>&6
9906 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9907 cat >> confdefs.h <<EOF
9908#define $ac_tr_func 1
9909EOF
9910
9911else
9912 echo "$ac_t""no" 1>&6
9913fi
9914done
9915
9916
c63c7106 9917INET_LINK=
10f2d63a
VZ
9918for ac_func in inet_addr
9919do
9920echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7eef8db2 9921echo "configure:9922: checking for $ac_func" >&5
10f2d63a
VZ
9922if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9923 echo $ac_n "(cached) $ac_c" 1>&6
9924else
9925 cat > conftest.$ac_ext <<EOF
7eef8db2 9926#line 9927 "configure"
10f2d63a
VZ
9927#include "confdefs.h"
9928/* System header to define __stub macros and hopefully few prototypes,
9929 which can conflict with char $ac_func(); below. */
9930#include <assert.h>
9931/* Override any gcc2 internal prototype to avoid an error. */
9932/* We use char because int might match the return type of a gcc2
9933 builtin and then its argument prototype would still apply. */
9934char $ac_func();
69ffe1d2 9935char (*f)();
10f2d63a
VZ
9936
9937int main() {
9938
9939/* The GNU C library defines this for functions which it implements
9940 to always fail with ENOSYS. Some functions are actually named
9941 something starting with __ and the normal name is an alias. */
9942#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9943choke me
9944#else
69ffe1d2 9945f = $ac_func;
10f2d63a
VZ
9946#endif
9947
9948; return 0; }
9949EOF
7eef8db2 9950if { (eval echo configure:9951: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
9951 rm -rf conftest*
9952 eval "ac_cv_func_$ac_func=yes"
9953else
9954 echo "configure: failed program was:" >&5
9955 cat conftest.$ac_ext >&5
9956 rm -rf conftest*
9957 eval "ac_cv_func_$ac_func=no"
9958fi
9959rm -f conftest*
9960fi
9961
9962if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9963 echo "$ac_t""yes" 1>&6
9964 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9965 cat >> confdefs.h <<EOF
9966#define $ac_tr_func 1
9967EOF
c63c7106
VZ
9968 cat >> confdefs.h <<\EOF
9969#define HAVE_INET_ADDR 1
9970EOF
9971
10f2d63a
VZ
9972else
9973 echo "$ac_t""no" 1>&6
c63c7106 9974echo $ac_n "checking for inet_addr in -lnsl""... $ac_c" 1>&6
7eef8db2 9975echo "configure:9976: checking for inet_addr in -lnsl" >&5
c63c7106
VZ
9976ac_lib_var=`echo nsl'_'inet_addr | sed 'y%./+-%__p_%'`
9977if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9978 echo $ac_n "(cached) $ac_c" 1>&6
9979else
9980 ac_save_LIBS="$LIBS"
9981LIBS="-lnsl $LIBS"
9982cat > conftest.$ac_ext <<EOF
7eef8db2 9983#line 9984 "configure"
c63c7106
VZ
9984#include "confdefs.h"
9985/* Override any gcc2 internal prototype to avoid an error. */
9986/* We use char because int might match the return type of a gcc2
9987 builtin and then its argument prototype would still apply. */
9988char inet_addr();
9989
9990int main() {
9991inet_addr()
9992; return 0; }
9993EOF
7eef8db2 9994if { (eval echo configure:9995: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
c63c7106
VZ
9995 rm -rf conftest*
9996 eval "ac_cv_lib_$ac_lib_var=yes"
9997else
9998 echo "configure: failed program was:" >&5
9999 cat conftest.$ac_ext >&5
10000 rm -rf conftest*
10001 eval "ac_cv_lib_$ac_lib_var=no"
10002fi
10003rm -f conftest*
10004LIBS="$ac_save_LIBS"
10005
10006fi
10007if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10008 echo "$ac_t""yes" 1>&6
10009 INET_LINK="nsl"
10010else
10011 echo "$ac_t""no" 1>&6
10012echo $ac_n "checking for inet_addr in -lresolv""... $ac_c" 1>&6
7eef8db2 10013echo "configure:10014: checking for inet_addr in -lresolv" >&5
c63c7106
VZ
10014ac_lib_var=`echo resolv'_'inet_addr | sed 'y%./+-%__p_%'`
10015if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10016 echo $ac_n "(cached) $ac_c" 1>&6
10017else
10018 ac_save_LIBS="$LIBS"
10019LIBS="-lresolv $LIBS"
10020cat > conftest.$ac_ext <<EOF
7eef8db2 10021#line 10022 "configure"
c63c7106
VZ
10022#include "confdefs.h"
10023/* Override any gcc2 internal prototype to avoid an error. */
10024/* We use char because int might match the return type of a gcc2
10025 builtin and then its argument prototype would still apply. */
10026char inet_addr();
10027
10028int main() {
10029inet_addr()
10030; return 0; }
10031EOF
7eef8db2 10032if { (eval echo configure:10033: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
c63c7106
VZ
10033 rm -rf conftest*
10034 eval "ac_cv_lib_$ac_lib_var=yes"
10035else
10036 echo "configure: failed program was:" >&5
10037 cat conftest.$ac_ext >&5
10038 rm -rf conftest*
10039 eval "ac_cv_lib_$ac_lib_var=no"
10040fi
10041rm -f conftest*
10042LIBS="$ac_save_LIBS"
10043
10044fi
10045if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10046 echo "$ac_t""yes" 1>&6
10047 INET_LINK="resolv"
10048
10049else
10050 echo "$ac_t""no" 1>&6
10051fi
10052
10053
10054fi
10055
10056
10057
10f2d63a
VZ
10058fi
10059done
10060
c63c7106 10061
10f2d63a
VZ
10062for ac_func in inet_aton
10063do
10064echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7eef8db2 10065echo "configure:10066: checking for $ac_func" >&5
10f2d63a
VZ
10066if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10067 echo $ac_n "(cached) $ac_c" 1>&6
10068else
10069 cat > conftest.$ac_ext <<EOF
7eef8db2 10070#line 10071 "configure"
10f2d63a
VZ
10071#include "confdefs.h"
10072/* System header to define __stub macros and hopefully few prototypes,
10073 which can conflict with char $ac_func(); below. */
10074#include <assert.h>
10075/* Override any gcc2 internal prototype to avoid an error. */
10076/* We use char because int might match the return type of a gcc2
10077 builtin and then its argument prototype would still apply. */
10078char $ac_func();
69ffe1d2 10079char (*f)();
10f2d63a
VZ
10080
10081int main() {
10082
10083/* The GNU C library defines this for functions which it implements
10084 to always fail with ENOSYS. Some functions are actually named
10085 something starting with __ and the normal name is an alias. */
10086#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10087choke me
10088#else
69ffe1d2 10089f = $ac_func;
10f2d63a
VZ
10090#endif
10091
10092; return 0; }
10093EOF
7eef8db2 10094if { (eval echo configure:10095: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
10095 rm -rf conftest*
10096 eval "ac_cv_func_$ac_func=yes"
10097else
10098 echo "configure: failed program was:" >&5
10099 cat conftest.$ac_ext >&5
10100 rm -rf conftest*
10101 eval "ac_cv_func_$ac_func=no"
10102fi
10103rm -f conftest*
10104fi
10105
10106if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10107 echo "$ac_t""yes" 1>&6
10108 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10109 cat >> confdefs.h <<EOF
10110#define $ac_tr_func 1
10111EOF
c63c7106
VZ
10112 cat >> confdefs.h <<\EOF
10113#define HAVE_INET_ATON 1
10114EOF
10115
10f2d63a
VZ
10116else
10117 echo "$ac_t""no" 1>&6
c63c7106 10118 echo $ac_n "checking for inet_aton in -l$INET_LINK""... $ac_c" 1>&6
7eef8db2 10119echo "configure:10120: checking for inet_aton in -l$INET_LINK" >&5
c63c7106 10120ac_lib_var=`echo $INET_LINK'_'inet_aton | sed 'y%./+-%__p_%'`
10f2d63a
VZ
10121if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10122 echo $ac_n "(cached) $ac_c" 1>&6
10123else
10124 ac_save_LIBS="$LIBS"
c63c7106 10125LIBS="-l$INET_LINK $LIBS"
10f2d63a 10126cat > conftest.$ac_ext <<EOF
7eef8db2 10127#line 10128 "configure"
10f2d63a
VZ
10128#include "confdefs.h"
10129/* Override any gcc2 internal prototype to avoid an error. */
10130/* We use char because int might match the return type of a gcc2
10131 builtin and then its argument prototype would still apply. */
10132char inet_aton();
10133
10134int main() {
10135inet_aton()
10136; return 0; }
10137EOF
7eef8db2 10138if { (eval echo configure:10139: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
10139 rm -rf conftest*
10140 eval "ac_cv_lib_$ac_lib_var=yes"
10141else
10142 echo "configure: failed program was:" >&5
10143 cat conftest.$ac_ext >&5
10144 rm -rf conftest*
10145 eval "ac_cv_lib_$ac_lib_var=no"
10146fi
10147rm -f conftest*
10148LIBS="$ac_save_LIBS"
10149
10150fi
10151if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10152 echo "$ac_t""yes" 1>&6
c63c7106
VZ
10153 cat >> confdefs.h <<\EOF
10154#define HAVE_INET_ATON 1
10f2d63a
VZ
10155EOF
10156
10f2d63a
VZ
10157else
10158 echo "$ac_t""no" 1>&6
10159fi
10160
c63c7106
VZ
10161
10162fi
10163done
10164
10165
10166if test "x$INET_LINK" != "x"; then
10167 cat >> confdefs.h <<\EOF
10168#define HAVE_INET_ADDR 1
10169EOF
10170
10171 INET_LINK="-l$INET_LINK"
10172fi
10f2d63a
VZ
10173
10174fi
10175
10176
10177cat > confcache <<\EOF
10178# This file is a shell script that caches the results of configure
10179# tests run on this system so they can be shared between configure
10180# scripts and configure runs. It is not useful on other systems.
10181# If it contains results you don't want to keep, you may remove or edit it.
10182#
10183# By default, configure uses ./config.cache as the cache file,
10184# creating it if it does not exist already. You can give configure
10185# the --cache-file=FILE option to use a different cache file; that is
10186# what configure does when it calls configure scripts in
10187# subdirectories, so they share the cache.
10188# Giving --cache-file=/dev/null disables caching, for debugging configure.
10189# config.status only pays attention to the cache file if you give it the
10190# --recheck option to rerun configure.
10191#
10192EOF
10193# The following way of writing the cache mishandles newlines in values,
10194# but we know of no workaround that is simple, portable, and efficient.
10195# So, don't put newlines in cache variables' values.
10196# Ultrix sh set writes to stderr and can't be redirected directly,
10197# and sets the high bit in the cache file unless we assign to the vars.
10198(set) 2>&1 |
10199 case `(ac_space=' '; set | grep ac_space) 2>&1` in
10200 *ac_space=\ *)
10201 # `set' does not quote correctly, so add quotes (double-quote substitution
10202 # turns \\\\ into \\, and sed turns \\ into \).
10203 sed -n \
10204 -e "s/'/'\\\\''/g" \
10205 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
10206 ;;
10207 *)
10208 # `set' quotes correctly as required by POSIX, so do not add quotes.
10209 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
10210 ;;
10211 esac >> confcache
10212if cmp -s $cache_file confcache; then
10213 :
10214else
10215 if test -w $cache_file; then
10216 echo "updating cache $cache_file"
10217 cat confcache > $cache_file
10218 else
10219 echo "not updating unwritable cache $cache_file"
10220 fi
10221fi
10222rm -f confcache
10223
10224
10225
10226if test "$USE_UNIX" = 1; then
10227
10228
10229THREADS_LINK=""
10230THREADS_OBJ=""
10231
10232if test "$wxUSE_THREADS" = "yes" ; then
10233 if test "$wxUSE_WINE" = 1 ; then
10234 echo "configure: warning: Threads are not supported under WINE" 1>&2
10235 wxUSE_THREADS="no"
10236 fi
10237fi
10238
10239if test "$wxUSE_THREADS" = "yes" ; then
10240
10241 echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6
7eef8db2 10242echo "configure:10243: checking for pthread_create in -lpthread" >&5
10f2d63a
VZ
10243ac_lib_var=`echo pthread'_'pthread_create | sed 'y%./+-%__p_%'`
10244if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10245 echo $ac_n "(cached) $ac_c" 1>&6
10246else
10247 ac_save_LIBS="$LIBS"
10248LIBS="-lpthread $LIBS"
10249cat > conftest.$ac_ext <<EOF
7eef8db2 10250#line 10251 "configure"
10f2d63a
VZ
10251#include "confdefs.h"
10252/* Override any gcc2 internal prototype to avoid an error. */
10253/* We use char because int might match the return type of a gcc2
10254 builtin and then its argument prototype would still apply. */
10255char pthread_create();
10256
10257int main() {
10258pthread_create()
10259; return 0; }
10260EOF
7eef8db2 10261if { (eval echo configure:10262: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
10262 rm -rf conftest*
10263 eval "ac_cv_lib_$ac_lib_var=yes"
10264else
10265 echo "configure: failed program was:" >&5
10266 cat conftest.$ac_ext >&5
10267 rm -rf conftest*
10268 eval "ac_cv_lib_$ac_lib_var=no"
10269fi
10270rm -f conftest*
10271LIBS="$ac_save_LIBS"
10272
10273fi
10274if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10275 echo "$ac_t""yes" 1>&6
10276
10277 THREADS_OBJ="threadpsx.lo"
10278 THREADS_LINK="pthread"
10279
10280else
10281 echo "$ac_t""no" 1>&6
10282
10283 echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6
7eef8db2 10284echo "configure:10285: checking for pthread_create in -lc_r" >&5
10f2d63a
VZ
10285ac_lib_var=`echo c_r'_'pthread_create | 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="-lc_r $LIBS"
10291cat > conftest.$ac_ext <<EOF
7eef8db2 10292#line 10293 "configure"
10f2d63a
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 pthread_create();
10298
10299int main() {
10300pthread_create()
10301; return 0; }
10302EOF
7eef8db2 10303if { (eval echo configure:10304: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
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
10319 THREADS_OBJ="threadpsx.lo"
10320 THREADS_LINK="c_r"
10321
10322else
10323 echo "$ac_t""no" 1>&6
10324
10325 ac_safe=`echo "sys/prctl.h" | sed 'y%./+-%__p_%'`
10326echo $ac_n "checking for sys/prctl.h""... $ac_c" 1>&6
7eef8db2 10327echo "configure:10328: checking for sys/prctl.h" >&5
10f2d63a
VZ
10328if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10329 echo $ac_n "(cached) $ac_c" 1>&6
10330else
10331 cat > conftest.$ac_ext <<EOF
7eef8db2 10332#line 10333 "configure"
10f2d63a
VZ
10333#include "confdefs.h"
10334#include <sys/prctl.h>
10335EOF
10336ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7eef8db2 10337{ (eval echo configure:10338: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
10338ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10339if test -z "$ac_err"; then
10340 rm -rf conftest*
10341 eval "ac_cv_header_$ac_safe=yes"
10342else
10343 echo "$ac_err" >&5
10344 echo "configure: failed program was:" >&5
10345 cat conftest.$ac_ext >&5
10346 rm -rf conftest*
10347 eval "ac_cv_header_$ac_safe=no"
10348fi
10349rm -f conftest*
10350fi
10351if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10352 echo "$ac_t""yes" 1>&6
10353
10354 THREADS_OBJ="threadsgi.lo"
10355
10356else
10357 echo "$ac_t""no" 1>&6
10358fi
10359
10360
10361fi
10362
10363
10364fi
10365
10366
10367 if test -z "$THREADS_OBJ" ; then
10368 wxUSE_THREADS=no
10369 echo "configure: warning: No thread support on this system" 1>&2
10370 fi
10371fi
10372
10373if test "$wxUSE_THREADS" = "yes" ; then
10374
10375 for ac_hdr in sched.h
10376do
10377ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10378echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7eef8db2 10379echo "configure:10380: checking for $ac_hdr" >&5
10f2d63a
VZ
10380if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10381 echo $ac_n "(cached) $ac_c" 1>&6
10382else
10383 cat > conftest.$ac_ext <<EOF
7eef8db2 10384#line 10385 "configure"
10f2d63a
VZ
10385#include "confdefs.h"
10386#include <$ac_hdr>
10387EOF
10388ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7eef8db2 10389{ (eval echo configure:10390: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
10390ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10391if test -z "$ac_err"; then
10392 rm -rf conftest*
10393 eval "ac_cv_header_$ac_safe=yes"
10394else
10395 echo "$ac_err" >&5
10396 echo "configure: failed program was:" >&5
10397 cat conftest.$ac_ext >&5
10398 rm -rf conftest*
10399 eval "ac_cv_header_$ac_safe=no"
10400fi
10401rm -f conftest*
10402fi
10403if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10404 echo "$ac_t""yes" 1>&6
10405 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10406 cat >> confdefs.h <<EOF
10407#define $ac_tr_hdr 1
10408EOF
10409
10410else
10411 echo "$ac_t""no" 1>&6
10412fi
10413done
10414
10415
10416 echo $ac_n "checking for sched_yield in -l$THREADS_LINK""... $ac_c" 1>&6
7eef8db2 10417echo "configure:10418: checking for sched_yield in -l$THREADS_LINK" >&5
10f2d63a
VZ
10418ac_lib_var=`echo $THREADS_LINK'_'sched_yield | sed 'y%./+-%__p_%'`
10419if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10420 echo $ac_n "(cached) $ac_c" 1>&6
10421else
10422 ac_save_LIBS="$LIBS"
10423LIBS="-l$THREADS_LINK $LIBS"
10424cat > conftest.$ac_ext <<EOF
7eef8db2 10425#line 10426 "configure"
10f2d63a
VZ
10426#include "confdefs.h"
10427/* Override any gcc2 internal prototype to avoid an error. */
10428/* We use char because int might match the return type of a gcc2
10429 builtin and then its argument prototype would still apply. */
10430char sched_yield();
10431
10432int main() {
10433sched_yield()
10434; return 0; }
10435EOF
7eef8db2 10436if { (eval echo configure:10437: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
10437 rm -rf conftest*
10438 eval "ac_cv_lib_$ac_lib_var=yes"
10439else
10440 echo "configure: failed program was:" >&5
10441 cat conftest.$ac_ext >&5
10442 rm -rf conftest*
10443 eval "ac_cv_lib_$ac_lib_var=no"
10444fi
10445rm -f conftest*
10446LIBS="$ac_save_LIBS"
10447
10448fi
10449if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10450 echo "$ac_t""yes" 1>&6
10451 cat >> confdefs.h <<\EOF
10452#define HAVE_SCHED_YIELD 1
10453EOF
10454
10455else
10456 echo "$ac_t""no" 1>&6
10457echo $ac_n "checking for sched_yield in -l"posix4"""... $ac_c" 1>&6
7eef8db2 10458echo "configure:10459: checking for sched_yield in -l"posix4"" >&5
10f2d63a
VZ
10459ac_lib_var=`echo "posix4"'_'sched_yield | sed 'y%./+-%__p_%'`
10460if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10461 echo $ac_n "(cached) $ac_c" 1>&6
10462else
10463 ac_save_LIBS="$LIBS"
10464LIBS="-l"posix4" $LIBS"
10465cat > conftest.$ac_ext <<EOF
7eef8db2 10466#line 10467 "configure"
10f2d63a
VZ
10467#include "confdefs.h"
10468/* Override any gcc2 internal prototype to avoid an error. */
10469/* We use char because int might match the return type of a gcc2
10470 builtin and then its argument prototype would still apply. */
10471char sched_yield();
10472
10473int main() {
10474sched_yield()
10475; return 0; }
10476EOF
7eef8db2 10477if { (eval echo configure:10478: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
10478 rm -rf conftest*
10479 eval "ac_cv_lib_$ac_lib_var=yes"
10480else
10481 echo "configure: failed program was:" >&5
10482 cat conftest.$ac_ext >&5
10483 rm -rf conftest*
10484 eval "ac_cv_lib_$ac_lib_var=no"
10485fi
10486rm -f conftest*
10487LIBS="$ac_save_LIBS"
10488
10489fi
10490if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10491 echo "$ac_t""yes" 1>&6
10492 cat >> confdefs.h <<\EOF
10493#define HAVE_SCHED_YIELD 1
10494EOF
10495 POSIX4_LINK="-lposix4"
10496else
10497 echo "$ac_t""no" 1>&6
10498echo "configure: warning: wxThread::Yield will not work properly" 1>&2
10499
10500fi
10501
10502
10503fi
10504
10505
10506 echo $ac_n "checking for pthread_attr_getschedpolicy in -l$THREADS_LINK""... $ac_c" 1>&6
7eef8db2 10507echo "configure:10508: checking for pthread_attr_getschedpolicy in -l$THREADS_LINK" >&5
10f2d63a
VZ
10508ac_lib_var=`echo $THREADS_LINK'_'pthread_attr_getschedpolicy | sed 'y%./+-%__p_%'`
10509if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10510 echo $ac_n "(cached) $ac_c" 1>&6
10511else
10512 ac_save_LIBS="$LIBS"
10513LIBS="-l$THREADS_LINK $LIBS"
10514cat > conftest.$ac_ext <<EOF
7eef8db2 10515#line 10516 "configure"
10f2d63a
VZ
10516#include "confdefs.h"
10517/* Override any gcc2 internal prototype to avoid an error. */
10518/* We use char because int might match the return type of a gcc2
10519 builtin and then its argument prototype would still apply. */
10520char pthread_attr_getschedpolicy();
10521
10522int main() {
10523pthread_attr_getschedpolicy()
10524; return 0; }
10525EOF
7eef8db2 10526if { (eval echo configure:10527: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
10527 rm -rf conftest*
10528 eval "ac_cv_lib_$ac_lib_var=yes"
10529else
10530 echo "configure: failed program was:" >&5
10531 cat conftest.$ac_ext >&5
10532 rm -rf conftest*
10533 eval "ac_cv_lib_$ac_lib_var=no"
10534fi
10535rm -f conftest*
10536LIBS="$ac_save_LIBS"
10537
10538fi
10539if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10540 echo "$ac_t""yes" 1>&6
10541 cat >> confdefs.h <<\EOF
10542#define HAVE_THREAD_PRIORITY_FUNCTIONS 1
10543EOF
10544
10545else
10546 echo "$ac_t""no" 1>&6
10547echo $ac_n "checking for pthread_attr_getschedpolicy in -l"posix4"""... $ac_c" 1>&6
7eef8db2 10548echo "configure:10549: checking for pthread_attr_getschedpolicy in -l"posix4"" >&5
10f2d63a
VZ
10549ac_lib_var=`echo "posix4"'_'pthread_attr_getschedpolicy | sed 'y%./+-%__p_%'`
10550if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10551 echo $ac_n "(cached) $ac_c" 1>&6
10552else
10553 ac_save_LIBS="$LIBS"
10554LIBS="-l"posix4" $LIBS"
10555cat > conftest.$ac_ext <<EOF
7eef8db2 10556#line 10557 "configure"
10f2d63a
VZ
10557#include "confdefs.h"
10558/* Override any gcc2 internal prototype to avoid an error. */
10559/* We use char because int might match the return type of a gcc2
10560 builtin and then its argument prototype would still apply. */
10561char pthread_attr_getschedpolicy();
10562
10563int main() {
10564pthread_attr_getschedpolicy()
10565; return 0; }
10566EOF
7eef8db2 10567if { (eval echo configure:10568: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
10568 rm -rf conftest*
10569 eval "ac_cv_lib_$ac_lib_var=yes"
10570else
10571 echo "configure: failed program was:" >&5
10572 cat conftest.$ac_ext >&5
10573 rm -rf conftest*
10574 eval "ac_cv_lib_$ac_lib_var=no"
10575fi
10576rm -f conftest*
10577LIBS="$ac_save_LIBS"
10578
10579fi
10580if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10581 echo "$ac_t""yes" 1>&6
10582 cat >> confdefs.h <<\EOF
10583#define HAVE_THREAD_PRIORITY_FUNCTIONS 1
10584EOF
10585 POSIX4_LINK="-lposix4"
10586else
10587 echo "$ac_t""no" 1>&6
10588echo "configure: warning: Setting thread priority will not work" 1>&2
10589
10590fi
10591
10592
10593fi
10594
10595
10596 echo $ac_n "checking for pthread_cancel in -l$THREADS_LINK""... $ac_c" 1>&6
7eef8db2 10597echo "configure:10598: checking for pthread_cancel in -l$THREADS_LINK" >&5
10f2d63a
VZ
10598ac_lib_var=`echo $THREADS_LINK'_'pthread_cancel | sed 'y%./+-%__p_%'`
10599if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10600 echo $ac_n "(cached) $ac_c" 1>&6
10601else
10602 ac_save_LIBS="$LIBS"
10603LIBS="-l$THREADS_LINK $LIBS"
10604cat > conftest.$ac_ext <<EOF
7eef8db2 10605#line 10606 "configure"
10f2d63a
VZ
10606#include "confdefs.h"
10607/* Override any gcc2 internal prototype to avoid an error. */
10608/* We use char because int might match the return type of a gcc2
10609 builtin and then its argument prototype would still apply. */
10610char pthread_cancel();
10611
10612int main() {
10613pthread_cancel()
10614; return 0; }
10615EOF
7eef8db2 10616if { (eval echo configure:10617: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
10617 rm -rf conftest*
10618 eval "ac_cv_lib_$ac_lib_var=yes"
10619else
10620 echo "configure: failed program was:" >&5
10621 cat conftest.$ac_ext >&5
10622 rm -rf conftest*
10623 eval "ac_cv_lib_$ac_lib_var=no"
10624fi
10625rm -f conftest*
10626LIBS="$ac_save_LIBS"
10627
10628fi
10629if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10630 echo "$ac_t""yes" 1>&6
10631 cat >> confdefs.h <<\EOF
10632#define HAVE_PTHREAD_CANCEL 1
10633EOF
10634
10635else
10636 echo "$ac_t""no" 1>&6
10637echo "configure: warning: wxThread::Kill() will not work properly" 1>&2
10638fi
10639
10640
10641 echo $ac_n "checking for pthread_cleanup_push/pop""... $ac_c" 1>&6
7eef8db2 10642echo "configure:10643: checking for pthread_cleanup_push/pop" >&5
10f2d63a
VZ
10643if eval "test \"`echo '$''{'wx_cv_func_pthread_cleanup_push'+set}'`\" = set"; then
10644 echo $ac_n "(cached) $ac_c" 1>&6
10645else
10646
10647 cat > conftest.$ac_ext <<EOF
7eef8db2 10648#line 10649 "configure"
10f2d63a
VZ
10649#include "confdefs.h"
10650#include <pthread.h>
10651int main() {
10652
10653 pthread_cleanup_push(NULL, NULL);
10654 pthread_cleanup_pop(0);
10655
10656; return 0; }
10657EOF
7eef8db2 10658if { (eval echo configure:10659: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10f2d63a
VZ
10659 rm -rf conftest*
10660
10661 wx_cv_func_pthread_cleanup_push=yes
10662 cat >> confdefs.h <<\EOF
10663#define HAVE_THREAD_CLEANUP_FUNCTIONS 1
10664EOF
10665
10666
10667else
10668 echo "configure: failed program was:" >&5
10669 cat conftest.$ac_ext >&5
10670 rm -rf conftest*
10671
10672 wx_cv_func_pthread_cleanup_push=no
10673
10674fi
10675rm -f conftest*
10676
10677fi
10678
10679echo "$ac_t""$wx_cv_func_pthread_cleanup_push" 1>&6
10680
10681 THREADS_LINK="-l$THREADS_LINK"
10682fi
10683
10684fi
10685
10686if test "$wxUSE_THREADS" = "yes"; then
10687 cat >> confdefs.h <<\EOF
10688#define wxUSE_THREADS 1
10689EOF
10690
10691
10692 CFLAGS="${CFLAGS} -D_REENTRANT"
10693 CXXFLAGS="${CXXFLAGS} -D_REENTRANT"
10694
10695 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
10696else
10697 if test "$ac_cv_func_strtok_r" = "yes"; then
ab9b9eab 10698 echo $ac_n "checking if -D_REENTRANT is needed""... $ac_c" 1>&6
7eef8db2 10699echo "configure:10700: checking if -D_REENTRANT is needed" >&5
ab9b9eab
VZ
10700 if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
10701 CFLAGS="${CFLAGS} -D_REENTRANT"
10702 CXXFLAGS="${CXXFLAGS} -D_REENTRANT"
10703 echo "$ac_t""yes" 1>&6
10704 else
10705 echo "$ac_t""no" 1>&6
10f2d63a
VZ
10706 fi
10707 fi
10708fi
10709
10710if test "$WXGTK12" = 1 ; then
10711 cat >> confdefs.h <<EOF
10712#define __WXGTK12__ $WXGTK12
10713EOF
10714
10715fi
10716
10717if test "$WXWINE" = 1 ; then
10718 TOOLKIT_DEF="${TOOLKIT_DEF} -D__WXWINE__"
10719fi
10720
10721if test "$wxUSE_CYGWIN" = 1 ; then
10722 TOOLKIT_DEF="${TOOLKIT_DEF} -D__WIN95__"
10723fi
10724
10725WXDEBUG=
10726
10727if test "$wxUSE_DEBUG_INFO" = "yes" ; then
10728 WXDEBUG="-g"
10729 wxUSE_OPTIMISE=no
10730fi
10731
10732if test "$wxUSE_DEBUG_GDB" = "yes" ; then
10733 wxUSE_DEBUG_INFO=yes
10734 WXDEBUG="-ggdb"
10735fi
10736
10737if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
10738 cat >> confdefs.h <<\EOF
10739#define WXDEBUG 1
10740EOF
10741
10742 WXDEBUG_DEFINE="-D__WXDEBUG__"
10743else
10744 if test "$wxUSE_GTK" = 1 ; then
10745 WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS"
10746 fi
10747fi
10748
10749if test "$wxUSE_MEM_TRACING" = "yes" ; then
10750 cat >> confdefs.h <<\EOF
10751#define wxUSE_MEMORY_TRACING 1
10752EOF
10753
10754 cat >> confdefs.h <<\EOF
10755#define wxUSE_GLOBAL_MEMORY_OPERATORS 1
10756EOF
10757
10758 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
10759fi
10760
10761if test "$wxUSE_DMALLOC" = "yes" ; then
10762 DMALLOC_LINK="-ldmalloc"
10763fi
10764
10765PROFILE=
10766if test "$wxUSE_PROFILE" = "yes" ; then
10767 PROFILE="-pg"
10768fi
10769
10770DEP_INFO_FLAGS=
10771if test "$GCC" = yes ; then
10772 if test "$wxUSE_NO_RTTI" = "yes" ; then
10773 WXDEBUG_DEFINE="$WXDEBUG_DEFINE -fno-rtti"
10774 fi
10775 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
10776 WXDEBUG_DEFINE="$WXDEBUG_DEFINE -fno-exceptions"
10777 fi
10778 if test "$wxUSE_PERMISSIVE" = "yes" ; then
10779 CFLAGS="${CFLAGS} -fpermissive"
10780 CXXFLAGS="${CXXFLAGS} -fpermissive"
10781 fi
10782 if test "$wxUSE_NO_DEPS" = "no" ; then
10783 DEP_INFO_FLAGS="-MMD"
10784 fi
10785fi
10786
10787
10788CXXFLAGS=`echo "${CXXFLAGS}" | sed "s/\-O.//g" `
10789CFLAGS=`echo "${CFLAGS}" | sed "s/\-O.//g" `
10790if test "$wxUSE_OPTIMISE" = "no" ; then
10791 OPTIMISE=
10792else
10793 if test "$GCC" = yes ; then
10794 OPTIMISE="-O2"
10795 case "${host}" in
10796 i586-*-*|i686-*-* )
10797 OPTIMISE="${OPTIMISE} "
10798 ;;
10799 esac
10800 else
10801 OPTIMISE="-O"
10802 fi
10803fi
10804
10805
10806ZLIB_INCLUDE=
10807if test "$wxUSE_ZLIB" = "yes" ; then
10808 cat >> confdefs.h <<\EOF
10809#define wxUSE_ZLIB 1
10810EOF
10811
10812 ZLIB_INCLUDE="-I\${top_srcdir}/src/zlib"
10813fi
10814
10815PNG_INCLUDE=
10816if test "$wxUSE_LIBPNG" = "yes" ; then
10817 cat >> confdefs.h <<\EOF
10818#define wxUSE_LIBPNG 1
10819EOF
10820
10821 PNG_INCLUDE="-I\${top_srcdir}/src/png"
10822 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
10823fi
10824
10825JPEG_INCLUDE=
10826if test "$wxUSE_LIBJPEG" = "yes" ; then
10827 cat >> confdefs.h <<\EOF
10828#define wxUSE_LIBJPEG 1
10829EOF
10830
10831 JPEG_INCLUDE="-I\${top_srcdir}/src/jpeg"
10832fi
10833
10834if test "$wxUSE_OPENGL" = "yes"; then
10835 ac_safe=`echo "GL/gl.h" | sed 'y%./+-%__p_%'`
10836echo $ac_n "checking for GL/gl.h""... $ac_c" 1>&6
7eef8db2 10837echo "configure:10838: checking for GL/gl.h" >&5
10f2d63a
VZ
10838if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10839 echo $ac_n "(cached) $ac_c" 1>&6
10840else
10841 cat > conftest.$ac_ext <<EOF
7eef8db2 10842#line 10843 "configure"
10f2d63a
VZ
10843#include "confdefs.h"
10844#include <GL/gl.h>
10845EOF
10846ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7eef8db2 10847{ (eval echo configure:10848: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
10848ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10849if test -z "$ac_err"; then
10850 rm -rf conftest*
10851 eval "ac_cv_header_$ac_safe=yes"
10852else
10853 echo "$ac_err" >&5
10854 echo "configure: failed program was:" >&5
10855 cat conftest.$ac_ext >&5
10856 rm -rf conftest*
10857 eval "ac_cv_header_$ac_safe=no"
10858fi
10859rm -f conftest*
10860fi
10861if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10862 echo "$ac_t""yes" 1>&6
10863
10864 echo $ac_n "checking for glInitNames in -lGL""... $ac_c" 1>&6
7eef8db2 10865echo "configure:10866: checking for glInitNames in -lGL" >&5
10f2d63a
VZ
10866ac_lib_var=`echo GL'_'glInitNames | sed 'y%./+-%__p_%'`
10867if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10868 echo $ac_n "(cached) $ac_c" 1>&6
10869else
10870 ac_save_LIBS="$LIBS"
10871LIBS="-lGL wxUSE_OPENGL=0 $LIBS"
10872cat > conftest.$ac_ext <<EOF
7eef8db2 10873#line 10874 "configure"
10f2d63a
VZ
10874#include "confdefs.h"
10875/* Override any gcc2 internal prototype to avoid an error. */
10876/* We use char because int might match the return type of a gcc2
10877 builtin and then its argument prototype would still apply. */
10878char glInitNames();
10879
10880int main() {
10881glInitNames()
10882; return 0; }
10883EOF
7eef8db2 10884if { (eval echo configure:10885: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
10885 rm -rf conftest*
10886 eval "ac_cv_lib_$ac_lib_var=yes"
10887else
10888 echo "configure: failed program was:" >&5
10889 cat conftest.$ac_ext >&5
10890 rm -rf conftest*
10891 eval "ac_cv_lib_$ac_lib_var=no"
10892fi
10893rm -f conftest*
10894LIBS="$ac_save_LIBS"
10895
10896fi
10897if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10898 echo "$ac_t""yes" 1>&6
10899
10900 OPENGL_LINK="-lGL"
10901 cat >> confdefs.h <<\EOF
10902#define wxUSE_OPENGL 1
10903EOF
10904
10905 UTILS_SUBDIRS="$UTILS_SUBDIRS glcanvas/src"
10906
10907else
10908 echo "$ac_t""no" 1>&6
10909
10910 echo $ac_n "checking for glInitNames in -lMesaGL""... $ac_c" 1>&6
7eef8db2 10911echo "configure:10912: checking for glInitNames in -lMesaGL" >&5
10f2d63a
VZ
10912ac_lib_var=`echo MesaGL'_'glInitNames | sed 'y%./+-%__p_%'`
10913if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10914 echo $ac_n "(cached) $ac_c" 1>&6
10915else
10916 ac_save_LIBS="$LIBS"
10917LIBS="-lMesaGL $LIBS"
10918cat > conftest.$ac_ext <<EOF
7eef8db2 10919#line 10920 "configure"
10f2d63a
VZ
10920#include "confdefs.h"
10921/* Override any gcc2 internal prototype to avoid an error. */
10922/* We use char because int might match the return type of a gcc2
10923 builtin and then its argument prototype would still apply. */
10924char glInitNames();
10925
10926int main() {
10927glInitNames()
10928; return 0; }
10929EOF
7eef8db2 10930if { (eval echo configure:10931: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
10931 rm -rf conftest*
10932 eval "ac_cv_lib_$ac_lib_var=yes"
10933else
10934 echo "configure: failed program was:" >&5
10935 cat conftest.$ac_ext >&5
10936 rm -rf conftest*
10937 eval "ac_cv_lib_$ac_lib_var=no"
10938fi
10939rm -f conftest*
10940LIBS="$ac_save_LIBS"
10941
10942fi
10943if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10944 echo "$ac_t""yes" 1>&6
10945
10946 OPENGL_LINK="-lMesaGL"
10947 cat >> confdefs.h <<\EOF
10948#define wxUSE_OPENGL 1
10949EOF
10950
10951 UTILS_SUBDIRS="$UTILS_SUBDIRS glcanvas/src"
10952
10953else
10954 echo "$ac_t""no" 1>&6
10955wxUSE_OPENGL=0
10956fi
10957
10958
10959fi
10960
10961
10962else
10963 echo "$ac_t""no" 1>&6
10964wxUSE_OPENGL=0
10965fi
10966
10967fi
10968
10969
10970if test "$wxUSE_GUI" = "yes"; then
10971 cat >> confdefs.h <<\EOF
10972#define wxUSE_GUI 1
10973EOF
10974
10975
10976 else
10977 cat >> confdefs.h <<\EOF
10978#define wxUSE_NOGUI 1
10979EOF
10980
10981fi
10982
10983
10984if test "$wxUSE_UNIX" = "yes"; then
10985 cat >> confdefs.h <<\EOF
10986#define wxUSE_UNIX 1
10987EOF
10988
10989fi
10990
10991
10992if test "$wxUSE_APPLE_IEEE" = "yes"; then
10993 cat >> confdefs.h <<\EOF
10994#define wxUSE_APPLE_IEEE 1
10995EOF
10996
10997fi
10998
10f2d63a
VZ
10999if test "$wxUSE_WAVE" = "yes"; then
11000 cat >> confdefs.h <<\EOF
11001#define wxUSE_WAVE 1
11002EOF
11003
11004fi
11005
11006if test "$wxUSE_FILE" = "yes"; then
11007 cat >> confdefs.h <<\EOF
11008#define wxUSE_FILE 1
11009EOF
11010
11011fi
11012
11013if test "$wxUSE_FS_INET" = "yes"; then
11014 cat >> confdefs.h <<\EOF
11015#define wxUSE_FS_INET 1
11016EOF
11017
11018fi
11019
11020if test "$wxUSE_FS_ZIP" = "yes"; then
11021 cat >> confdefs.h <<\EOF
11022#define wxUSE_FS_ZIP 1
11023EOF
11024
11025fi
11026
11027if test "$wxUSE_ZIPSTREAM" = "yes"; then
11028 cat >> confdefs.h <<\EOF
11029#define wxUSE_ZIPSTREAM 1
11030EOF
11031
11032fi
11033
11034if test "$wxUSE_BUSYINFO" = "yes"; then
11035 cat >> confdefs.h <<\EOF
11036#define wxUSE_BUSYINFO 1
11037EOF
11038
11039fi
11040
11041if test "$wxUSE_STD_IOSTREAM" = "yes"; then
11042 cat >> confdefs.h <<\EOF
11043#define wxUSE_STD_IOSTREAM 1
11044EOF
11045
11046fi
11047
11048if test "$wxUSE_TEXTFILE" = "yes"; then
11049 if test "$wxUSE_FILE" != "yes"; then
11050 echo "configure: warning: wxTextFile requires wxFile and it won't be compiled without it" 1>&2
11051 else
11052 cat >> confdefs.h <<\EOF
11053#define wxUSE_TEXTFILE 1
11054EOF
11055
11056 fi
11057fi
11058
11059if test "$wxUSE_CONFIG" = "yes" ; then
11060 if test "$wxUSE_TEXTFILE" != "yes"; then
11061 echo "configure: warning: wxConfig requires wxTextFile and it won't be compiled without it" 1>&2
11062 else
11063 cat >> confdefs.h <<\EOF
11064#define wxUSE_CONFIG 1
11065EOF
11066
11067 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
11068 fi
11069fi
11070
11071if test "$wxUSE_INTL" = "yes" ; then
11072 if test "$wxUSE_FILE" != "yes"; then
11073 echo "configure: warning: I18n code requires wxFile and it won't be compiled without it" 1>&2
11074 else
11075 cat >> confdefs.h <<\EOF
11076#define wxUSE_INTL 1
11077EOF
11078
11079 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
11080 fi
11081fi
11082
11083if test "$wxUSE_LOG" = "yes"; then
11084 cat >> confdefs.h <<\EOF
11085#define wxUSE_LOG 1
11086EOF
11087
11088fi
11089
11090if test "$wxUSE_LONGLONG" = "yes"; then
11091 cat >> confdefs.h <<\EOF
11092#define wxUSE_LONGLONG 1
11093EOF
11094
11095fi
11096
10f2d63a
VZ
11097if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then
11098 cat >> confdefs.h <<\EOF
11099#define wxUSE_DIALUP_MANAGER 1
11100EOF
11101
678b92a9 11102 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS nettest"
10f2d63a
VZ
11103fi
11104
11105if test "$wxUSE_STREAMS" = "yes" ; then
11106 cat >> confdefs.h <<\EOF
11107#define wxUSE_STREAMS 1
11108EOF
11109
11110fi
11111
11112if test "$wxUSE_SERIAL" = "yes" ; then
11113 cat >> confdefs.h <<\EOF
11114#define wxUSE_SERIAL 1
11115EOF
11116
11117fi
11118
11119
afc31813 11120if test "$wxUSE_TIMEDATE" = "yes"; then
0470b1e6 11121 for ac_func in localtime gettimeofday ftime
afc31813
VZ
11122do
11123echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7eef8db2 11124echo "configure:11125: checking for $ac_func" >&5
afc31813
VZ
11125if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11126 echo $ac_n "(cached) $ac_c" 1>&6
11127else
11128 cat > conftest.$ac_ext <<EOF
7eef8db2 11129#line 11130 "configure"
10f2d63a 11130#include "confdefs.h"
afc31813
VZ
11131/* System header to define __stub macros and hopefully few prototypes,
11132 which can conflict with char $ac_func(); below. */
11133#include <assert.h>
11134/* Override any gcc2 internal prototype to avoid an error. */
11135/* We use char because int might match the return type of a gcc2
11136 builtin and then its argument prototype would still apply. */
11137char $ac_func();
69ffe1d2 11138char (*f)();
afc31813 11139
10f2d63a 11140int main() {
afc31813
VZ
11141
11142/* The GNU C library defines this for functions which it implements
11143 to always fail with ENOSYS. Some functions are actually named
11144 something starting with __ and the normal name is an alias. */
11145#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11146choke me
11147#else
69ffe1d2 11148f = $ac_func;
afc31813
VZ
11149#endif
11150
10f2d63a
VZ
11151; return 0; }
11152EOF
7eef8db2 11153if { (eval echo configure:11154: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a 11154 rm -rf conftest*
afc31813 11155 eval "ac_cv_func_$ac_func=yes"
10f2d63a
VZ
11156else
11157 echo "configure: failed program was:" >&5
11158 cat conftest.$ac_ext >&5
11159 rm -rf conftest*
afc31813
VZ
11160 eval "ac_cv_func_$ac_func=no"
11161fi
11162rm -f conftest*
11163fi
11164
11165if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11166 echo "$ac_t""yes" 1>&6
11167 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11168 cat >> confdefs.h <<EOF
11169#define $ac_tr_func 1
11170EOF
0470b1e6 11171 break
afc31813
VZ
11172else
11173 echo "$ac_t""no" 1>&6
11174fi
11175done
11176
11177
0470b1e6
VZ
11178 if test "$ac_cv_func_localtime" = "yes"; then
11179 echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6
7eef8db2 11180echo "configure:11181: checking for tm_gmtoff in struct tm" >&5
0470b1e6
VZ
11181if eval "test \"`echo '$''{'wx_cv_struct_tm_has_gmtoff'+set}'`\" = set"; then
11182 echo $ac_n "(cached) $ac_c" 1>&6
11183else
11184
11185 cat > conftest.$ac_ext <<EOF
7eef8db2 11186#line 11187 "configure"
0470b1e6
VZ
11187#include "confdefs.h"
11188
11189 #include <time.h>
11190
11191int main() {
11192
11193 struct tm tm;
11194 tm.tm_gmtoff++;
11195
11196; return 0; }
11197EOF
7eef8db2 11198if { (eval echo configure:11199: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
0470b1e6
VZ
11199 rm -rf conftest*
11200
f03a98d8 11201 wx_cv_struct_tm_has_gmtoff=yes
0470b1e6
VZ
11202 cat >> confdefs.h <<\EOF
11203#define WX_GMTOFF_IN_TM 1
11204EOF
11205
11206
11207else
11208 echo "configure: failed program was:" >&5
11209 cat conftest.$ac_ext >&5
11210 rm -rf conftest*
11211 wx_cv_struct_tm_has_gmtoff=no
11212
11213fi
11214rm -f conftest*
11215
11216fi
11217
11218echo "$ac_t""$wx_cv_struct_tm_has_gmtoff" 1>&6
11219 elif test "$ac_cv_func_gettimeofday" = "yes"; then
afc31813 11220 echo $ac_n "checking whether gettimeofday takes two arguments""... $ac_c" 1>&6
7eef8db2 11221echo "configure:11222: checking whether gettimeofday takes two arguments" >&5
afc31813
VZ
11222if eval "test \"`echo '$''{'wx_cv_func_gettimeofday_has_2_args'+set}'`\" = set"; then
11223 echo $ac_n "(cached) $ac_c" 1>&6
11224else
11225
11226
11227 ac_ext=C
11228# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11229ac_cpp='$CXXCPP $CPPFLAGS'
11230ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11231ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11232cross_compiling=$ac_cv_prog_cxx_cross
11233
11234
11235 cat > conftest.$ac_ext <<EOF
7eef8db2 11236#line 11237 "configure"
10f2d63a 11237#include "confdefs.h"
afc31813
VZ
11238
11239 #include <sys/time.h>
11240 #include <unistd.h>
11241
10f2d63a 11242int main() {
afc31813
VZ
11243
11244 struct timeval tv;
11245 struct timezone tz;
11246 gettimeofday(&tv, &tz);
11247
10f2d63a
VZ
11248; return 0; }
11249EOF
7eef8db2 11250if { (eval echo configure:11251: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10f2d63a 11251 rm -rf conftest*
afc31813 11252 wx_cv_func_gettimeofday_has_2_args=yes
10f2d63a
VZ
11253else
11254 echo "configure: failed program was:" >&5
11255 cat conftest.$ac_ext >&5
11256 rm -rf conftest*
11257 cat > conftest.$ac_ext <<EOF
7eef8db2 11258#line 11259 "configure"
10f2d63a 11259#include "confdefs.h"
afc31813
VZ
11260
11261 #include <sys/time.h>
11262 #include <unistd.h>
11263
10f2d63a 11264int main() {
afc31813
VZ
11265
11266 struct timeval tv;
11267 gettimeofday(&tv);
11268
10f2d63a
VZ
11269; return 0; }
11270EOF
7eef8db2 11271if { (eval echo configure:11272: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10f2d63a 11272 rm -rf conftest*
afc31813 11273 wx_cv_func_gettimeofday_has_2_args=no
10f2d63a
VZ
11274else
11275 echo "configure: failed program was:" >&5
11276 cat conftest.$ac_ext >&5
11277 rm -rf conftest*
afc31813
VZ
11278 wx_cv_func_gettimeofday_has_2_args=unknown
11279
10f2d63a
VZ
11280fi
11281rm -f conftest*
afc31813 11282
10f2d63a
VZ
11283fi
11284rm -f conftest*
afc31813 11285 ac_ext=c
10f2d63a
VZ
11286# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11287ac_cpp='$CPP $CPPFLAGS'
11288ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11289ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11290cross_compiling=$ac_cv_prog_cc_cross
11291
afc31813
VZ
11292
11293fi
11294
11295echo "$ac_t""$wx_cv_func_gettimeofday_has_2_args" 1>&6
c63c7106 11296
afc31813
VZ
11297 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
11298 cat >> confdefs.h <<\EOF
11299#define WX_GETTIMEOFDAY_NO_TZ 1
11300EOF
11301
11302 fi
11303 fi
11304
11305 cat >> confdefs.h <<\EOF
11306#define wxUSE_TIMEDATE 1
11307EOF
11308
11309 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
11310fi
11311
11312
11313if test "$wxUSE_SOCKETS" = "yes"; then
c63c7106 11314 echo $ac_n "checking for socket""... $ac_c" 1>&6
7eef8db2 11315echo "configure:11316: checking for socket" >&5
c63c7106
VZ
11316if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
11317 echo $ac_n "(cached) $ac_c" 1>&6
11318else
11319 cat > conftest.$ac_ext <<EOF
7eef8db2 11320#line 11321 "configure"
c63c7106
VZ
11321#include "confdefs.h"
11322/* System header to define __stub macros and hopefully few prototypes,
11323 which can conflict with char socket(); below. */
11324#include <assert.h>
11325/* Override any gcc2 internal prototype to avoid an error. */
11326/* We use char because int might match the return type of a gcc2
11327 builtin and then its argument prototype would still apply. */
11328char socket();
69ffe1d2 11329char (*f)();
c63c7106
VZ
11330
11331int main() {
11332
11333/* The GNU C library defines this for functions which it implements
11334 to always fail with ENOSYS. Some functions are actually named
11335 something starting with __ and the normal name is an alias. */
11336#if defined (__stub_socket) || defined (__stub___socket)
11337choke me
11338#else
69ffe1d2 11339f = socket;
c63c7106
VZ
11340#endif
11341
11342; return 0; }
11343EOF
7eef8db2 11344if { (eval echo configure:11345: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
c63c7106
VZ
11345 rm -rf conftest*
11346 eval "ac_cv_func_socket=yes"
11347else
11348 echo "configure: failed program was:" >&5
11349 cat conftest.$ac_ext >&5
11350 rm -rf conftest*
11351 eval "ac_cv_func_socket=no"
11352fi
11353rm -f conftest*
11354fi
11355
11356if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
11357 echo "$ac_t""yes" 1>&6
11358 :
11359else
11360 echo "$ac_t""no" 1>&6
11361echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
7eef8db2 11362echo "configure:11363: checking for socket in -lsocket" >&5
c63c7106
VZ
11363ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
11364if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11365 echo $ac_n "(cached) $ac_c" 1>&6
11366else
11367 ac_save_LIBS="$LIBS"
11368LIBS="-lsocket $LIBS"
11369cat > conftest.$ac_ext <<EOF
7eef8db2 11370#line 11371 "configure"
c63c7106
VZ
11371#include "confdefs.h"
11372/* Override any gcc2 internal prototype to avoid an error. */
11373/* We use char because int might match the return type of a gcc2
11374 builtin and then its argument prototype would still apply. */
11375char socket();
11376
11377int main() {
11378socket()
11379; return 0; }
11380EOF
7eef8db2 11381if { (eval echo configure:11382: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
c63c7106
VZ
11382 rm -rf conftest*
11383 eval "ac_cv_lib_$ac_lib_var=yes"
11384else
11385 echo "configure: failed program was:" >&5
11386 cat conftest.$ac_ext >&5
11387 rm -rf conftest*
11388 eval "ac_cv_lib_$ac_lib_var=no"
11389fi
11390rm -f conftest*
11391LIBS="$ac_save_LIBS"
11392
11393fi
11394if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11395 echo "$ac_t""yes" 1>&6
11396 INET_LINK="$INET_LINK -lsocket"
c63c7106
VZ
11397else
11398 echo "$ac_t""no" 1>&6
afc31813
VZ
11399
11400 echo "configure: warning: socket library not found - sockets will be disabled" 1>&2
11401 wxUSE_SOCKETS=no
11402
11403
c63c7106
VZ
11404fi
11405
11406
11407fi
11408
10f2d63a
VZ
11409fi
11410
afc31813
VZ
11411if test "$wxUSE_SOCKETS" = "yes" ; then
11412
11413 ac_ext=C
11414# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11415ac_cpp='$CXXCPP $CPPFLAGS'
11416ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11417ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11418cross_compiling=$ac_cv_prog_cxx_cross
11419
11420 echo $ac_n "checking the type of the third argument of getsockname""... $ac_c" 1>&6
7eef8db2 11421echo "configure:11422: checking the type of the third argument of getsockname" >&5
afc31813 11422 cat > conftest.$ac_ext <<EOF
7eef8db2 11423#line 11424 "configure"
afc31813
VZ
11424#include "confdefs.h"
11425#include <sys/socket.h>
11426int main() {
11427socklen_t len; getsockname(0, 0, &len);
11428; return 0; }
11429EOF
7eef8db2 11430if { (eval echo configure:11431: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
afc31813
VZ
11431 rm -rf conftest*
11432 cat >> confdefs.h <<\EOF
11433#define SOCKLEN_T socklen_t
11434EOF
11435 echo "$ac_t""socklen_t" 1>&6
11436else
11437 echo "configure: failed program was:" >&5
11438 cat conftest.$ac_ext >&5
11439 rm -rf conftest*
11440 cat > conftest.$ac_ext <<EOF
7eef8db2 11441#line 11442 "configure"
afc31813
VZ
11442#include "confdefs.h"
11443#include <sys/socket.h>
11444int main() {
11445size_t len; getsockname(0, 0, &len);
11446; return 0; }
11447EOF
7eef8db2 11448if { (eval echo configure:11449: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
afc31813
VZ
11449 rm -rf conftest*
11450 cat >> confdefs.h <<\EOF
11451#define SOCKLEN_T size_t
11452EOF
11453 echo "$ac_t""size_t" 1>&6
11454else
11455 echo "configure: failed program was:" >&5
11456 cat conftest.$ac_ext >&5
11457 rm -rf conftest*
11458 cat > conftest.$ac_ext <<EOF
7eef8db2 11459#line 11460 "configure"
afc31813
VZ
11460#include "confdefs.h"
11461#include <sys/socket.h>
11462int main() {
11463int len; getsockname(0, 0, &len);
11464; return 0; }
11465EOF
7eef8db2 11466if { (eval echo configure:11467: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
afc31813
VZ
11467 rm -rf conftest*
11468 cat >> confdefs.h <<\EOF
11469#define SOCKLEN_T int
11470EOF
11471 echo "$ac_t""int" 1>&6
11472else
11473 echo "configure: failed program was:" >&5
11474 cat conftest.$ac_ext >&5
11475 rm -rf conftest*
11476 echo "$ac_t""unknown" 1>&6
11477
11478fi
11479rm -f conftest*
11480
11481fi
11482rm -f conftest*
11483
11484fi
11485rm -f conftest*
11486 ac_ext=c
11487# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11488ac_cpp='$CPP $CPPFLAGS'
11489ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11490ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11491cross_compiling=$ac_cv_prog_cc_cross
11492
11493
11494 cat >> confdefs.h <<\EOF
11495#define wxUSE_SOCKETS 1
11496EOF
11497
11498 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wxsocket"
11499 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS protocol"
11500fi
11501
10f2d63a
VZ
11502
11503if test "$wxUSE_JOYSTICK" = 1; then
11504 for ac_hdr in linux/joystick.h
11505do
11506ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11507echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7eef8db2 11508echo "configure:11509: checking for $ac_hdr" >&5
10f2d63a
VZ
11509if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11510 echo $ac_n "(cached) $ac_c" 1>&6
11511else
11512 cat > conftest.$ac_ext <<EOF
7eef8db2 11513#line 11514 "configure"
10f2d63a
VZ
11514#include "confdefs.h"
11515#include <$ac_hdr>
11516EOF
11517ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7eef8db2 11518{ (eval echo configure:11519: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
11519ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11520if test -z "$ac_err"; then
11521 rm -rf conftest*
11522 eval "ac_cv_header_$ac_safe=yes"
11523else
11524 echo "$ac_err" >&5
11525 echo "configure: failed program was:" >&5
11526 cat conftest.$ac_ext >&5
11527 rm -rf conftest*
11528 eval "ac_cv_header_$ac_safe=no"
11529fi
11530rm -f conftest*
11531fi
11532if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11533 echo "$ac_t""yes" 1>&6
11534 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11535 cat >> confdefs.h <<EOF
11536#define $ac_tr_hdr 1
11537EOF
11538
11539else
11540 echo "$ac_t""no" 1>&6
11541fi
11542done
11543
11544 if test "$ac_cv_header_linux_joystick_h" = "yes"; then
11545 cat >> confdefs.h <<\EOF
11546#define wxUSE_JOYSTICK 1
11547EOF
11548
11549 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
11550 fi
11551fi
11552
11553
11554HAVE_DL_FUNCS=0
11555HAVE_SHL_FUNCS=0
11556if test "$wxUSE_DYNLIB_CLASS" = "yes"; then
11557 for ac_func in dlopen
11558do
11559echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7eef8db2 11560echo "configure:11561: checking for $ac_func" >&5
10f2d63a
VZ
11561if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11562 echo $ac_n "(cached) $ac_c" 1>&6
11563else
11564 cat > conftest.$ac_ext <<EOF
7eef8db2 11565#line 11566 "configure"
10f2d63a
VZ
11566#include "confdefs.h"
11567/* System header to define __stub macros and hopefully few prototypes,
11568 which can conflict with char $ac_func(); below. */
11569#include <assert.h>
11570/* Override any gcc2 internal prototype to avoid an error. */
11571/* We use char because int might match the return type of a gcc2
11572 builtin and then its argument prototype would still apply. */
11573char $ac_func();
69ffe1d2 11574char (*f)();
10f2d63a
VZ
11575
11576int main() {
11577
11578/* The GNU C library defines this for functions which it implements
11579 to always fail with ENOSYS. Some functions are actually named
11580 something starting with __ and the normal name is an alias. */
11581#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11582choke me
11583#else
69ffe1d2 11584f = $ac_func;
10f2d63a
VZ
11585#endif
11586
11587; return 0; }
11588EOF
7eef8db2 11589if { (eval echo configure:11590: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
11590 rm -rf conftest*
11591 eval "ac_cv_func_$ac_func=yes"
11592else
11593 echo "configure: failed program was:" >&5
11594 cat conftest.$ac_ext >&5
11595 rm -rf conftest*
11596 eval "ac_cv_func_$ac_func=no"
11597fi
11598rm -f conftest*
11599fi
11600
11601if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11602 echo "$ac_t""yes" 1>&6
11603 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11604 cat >> confdefs.h <<EOF
11605#define $ac_tr_func 1
11606EOF
11607
11608 cat >> confdefs.h <<\EOF
11609#define HAVE_DLOPEN 1
11610EOF
11611
11612 HAVE_DL_FUNCS=1
11613
11614else
11615 echo "$ac_t""no" 1>&6
11616echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
7eef8db2 11617echo "configure:11618: checking for dlopen in -ldl" >&5
10f2d63a
VZ
11618ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
11619if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11620 echo $ac_n "(cached) $ac_c" 1>&6
11621else
11622 ac_save_LIBS="$LIBS"
11623LIBS="-ldl $LIBS"
11624cat > conftest.$ac_ext <<EOF
7eef8db2 11625#line 11626 "configure"
10f2d63a
VZ
11626#include "confdefs.h"
11627/* Override any gcc2 internal prototype to avoid an error. */
11628/* We use char because int might match the return type of a gcc2
11629 builtin and then its argument prototype would still apply. */
11630char dlopen();
11631
11632int main() {
11633dlopen()
11634; return 0; }
11635EOF
7eef8db2 11636if { (eval echo configure:11637: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
11637 rm -rf conftest*
11638 eval "ac_cv_lib_$ac_lib_var=yes"
11639else
11640 echo "configure: failed program was:" >&5
11641 cat conftest.$ac_ext >&5
11642 rm -rf conftest*
11643 eval "ac_cv_lib_$ac_lib_var=no"
11644fi
11645rm -f conftest*
11646LIBS="$ac_save_LIBS"
11647
11648fi
11649if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11650 echo "$ac_t""yes" 1>&6
11651
11652 cat >> confdefs.h <<\EOF
11653#define HAVE_DLOPEN 1
11654EOF
11655
11656 HAVE_DL_FUNCS=1
11657 LIBS="$LIBS -ldl"
11658
11659else
11660 echo "$ac_t""no" 1>&6
11661
11662 for ac_func in shl_load
11663do
11664echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7eef8db2 11665echo "configure:11666: checking for $ac_func" >&5
10f2d63a
VZ
11666if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11667 echo $ac_n "(cached) $ac_c" 1>&6
11668else
11669 cat > conftest.$ac_ext <<EOF
7eef8db2 11670#line 11671 "configure"
10f2d63a
VZ
11671#include "confdefs.h"
11672/* System header to define __stub macros and hopefully few prototypes,
11673 which can conflict with char $ac_func(); below. */
11674#include <assert.h>
11675/* Override any gcc2 internal prototype to avoid an error. */
11676/* We use char because int might match the return type of a gcc2
11677 builtin and then its argument prototype would still apply. */
11678char $ac_func();
69ffe1d2 11679char (*f)();
10f2d63a
VZ
11680
11681int main() {
11682
11683/* The GNU C library defines this for functions which it implements
11684 to always fail with ENOSYS. Some functions are actually named
11685 something starting with __ and the normal name is an alias. */
11686#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11687choke me
11688#else
69ffe1d2 11689f = $ac_func;
10f2d63a
VZ
11690#endif
11691
11692; return 0; }
11693EOF
7eef8db2 11694if { (eval echo configure:11695: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
11695 rm -rf conftest*
11696 eval "ac_cv_func_$ac_func=yes"
11697else
11698 echo "configure: failed program was:" >&5
11699 cat conftest.$ac_ext >&5
11700 rm -rf conftest*
11701 eval "ac_cv_func_$ac_func=no"
11702fi
11703rm -f conftest*
11704fi
11705
11706if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11707 echo "$ac_t""yes" 1>&6
11708 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11709 cat >> confdefs.h <<EOF
11710#define $ac_tr_func 1
11711EOF
11712
11713 cat >> confdefs.h <<\EOF
11714#define HAVE_SHL_LOAD 1
11715EOF
11716
11717 HAVE_SHL_FUNCS=1
11718
11719else
11720 echo "$ac_t""no" 1>&6
11721fi
11722done
11723
11724
11725fi
11726
11727
11728fi
11729done
11730
11731
11732 if test "$HAVE_DL_FUNCS" = 0; then
11733 if test "$HAVE_SHL_FUNCS" = 0; then
11734 if test "$USE_UNIX" = 1; then
11735 echo "configure: warning: "--with-dynlib and --with-odbc will be disabled due to missing shared library support"" 1>&2
11736 wxUSE_ODBC=no
11737 wxUSE_DYNLIB_CLASS=no
11738 else
11739 echo "configure: warning: "Cannot check dynlib requirements on non-Unix platforms. dynlib remains enabled."" 1>&2
11740 fi
11741 fi
11742 fi
11743fi
11744
11745if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
11746 cat >> confdefs.h <<\EOF
11747#define wxUSE_DYNLIB_CLASS 1
11748EOF
11749
11750fi
11751
11752
11753if test "$wxUSE_UNICODE" = "yes" ; then
11754 cat >> confdefs.h <<\EOF
11755#define wxUSE_UNICODE 1
11756EOF
11757
11758fi
11759
11760if test "$wxUSE_WCSRTOMBS" = "yes" ; then
11761 cat >> confdefs.h <<\EOF
11762#define wxUSE_WCSRTOMBS 1
11763EOF
11764
11765fi
11766
11767if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
11768 cat >> confdefs.h <<\EOF
11769#define wxUSE_EXPERIMENTAL_PRINTF 1
11770EOF
11771
11772fi
11773
11774
11775IODBC_C_SRC=""
11776if test "$wxUSE_ODBC" = "yes" ; then
11777 cat >> confdefs.h <<\EOF
11778#define wxUSE_ODBC 1
11779EOF
11780
11781 WXODBCFLAG="-D_IODBC_"
11782 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
11783 IODBCOBJS="\$(IODBC_OBJS)"
11784else
11785 IODBCOBJS=
11786fi
11787
11788
11789if test "$wxUSE_POSTSCRIPT" = "yes" ; then
11790 cat >> confdefs.h <<\EOF
11791#define wxUSE_POSTSCRIPT 1
11792EOF
11793
11794fi
11795
11796cat >> confdefs.h <<\EOF
11797#define wxUSE_AFM_FOR_POSTSCRIPT 1
11798EOF
11799
11800
11801cat >> confdefs.h <<\EOF
11802#define wxUSE_NORMALIZED_PS_FONTS 1
11803EOF
11804
11805
11806
11807if test "$wxUSE_CONSTRAINTS" = "yes"; then
11808 cat >> confdefs.h <<\EOF
11809#define wxUSE_CONSTRAINTS 1
11810EOF
11811
11812 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
11813fi
11814
11815if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
11816 cat >> confdefs.h <<\EOF
11817#define wxUSE_MDI_ARCHITECTURE 1
11818EOF
11819
11820 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
11821fi
11822
11823if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
11824 cat >> confdefs.h <<\EOF
11825#define wxUSE_DOC_VIEW_ARCHITECTURE 1
11826EOF
11827
11828 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
11829 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
11830 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
11831 fi
11832fi
11833
11834if test "$wxUSE_HELP" = "yes"; then
11835 cat >> confdefs.h <<\EOF
11836#define wxUSE_HELP 1
11837EOF
11838
11839 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
11840fi
11841
11842if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
11843 if test "$wxUSE_CONSTRAINTS" != "yes"; then
11844 echo "configure: warning: Printing support cannot be used without constraints so it won't be compiled without it" 1>&2
11845 else
11846 cat >> confdefs.h <<\EOF
11847#define wxUSE_PRINTING_ARCHITECTURE 1
11848EOF
11849
11850 fi
11851 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
11852fi
11853
11854if test "$wxUSE_PROLOGIO" = "yes" ; then
11855 cat >> confdefs.h <<\EOF
11856#define wxUSE_PROLOGIO 1
11857EOF
11858
11859fi
11860
11861if test "$wxUSE_RESOURCES" = "yes" ; then
11862 if test "$wxUSE_PROLOGIO" = "yes" ; then
11863 cat >> confdefs.h <<\EOF
11864#define wxUSE_RESOURCES 1
11865EOF
11866
11867 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS resource"
11868 else
11869 echo "configure: warning: wxWindows ressource system requires PrologIO and can't be compiled without it." 1>&2
11870 fi
11871fi
11872
11873if test "$wxUSE_X_RESOURCES" = "yes"; then
11874 cat >> confdefs.h <<\EOF
11875#define wxUSE_X_RESOURCES 1
11876EOF
11877
11878fi
11879
11880
11881if test "$wxUSE_IPC" = "yes"; then
11882 cat >> confdefs.h <<\EOF
11883#define wxUSE_IPC 1
11884EOF
11885
11886fi
11887
11888if test "$wxUSE_CLIPBOARD" = "yes"; then
11889 cat >> confdefs.h <<\EOF
11890#define wxUSE_CLIPBOARD 1
11891EOF
11892
11893fi
11894
11895if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
11896 if test "$wxUSE_GTK" = 1; then
11897 if test "$WXGTK12" != 1; then
11898 echo "configure: warning: Drag and drop is only supported under GTK+ 1.2" 1>&2
11899 wxUSE_DRAG_AND_DROP=no
11900 fi
11901 fi
11902
11903 if test "$wxUSE_MOTIF" = 1; then
11904 echo "configure: warning: Drag and drop is not yet supported under Motif" 1>&2
11905 wxUSE_DRAG_AND_DROP=no
11906 fi
11907
11908 if test "$USE_WIN32" = 1; then
11909 for ac_hdr in ole2.h
11910do
11911ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11912echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7eef8db2 11913echo "configure:11914: checking for $ac_hdr" >&5
10f2d63a
VZ
11914if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11915 echo $ac_n "(cached) $ac_c" 1>&6
11916else
11917 cat > conftest.$ac_ext <<EOF
7eef8db2 11918#line 11919 "configure"
10f2d63a
VZ
11919#include "confdefs.h"
11920#include <$ac_hdr>
11921EOF
11922ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7eef8db2 11923{ (eval echo configure:11924: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
11924ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11925if test -z "$ac_err"; then
11926 rm -rf conftest*
11927 eval "ac_cv_header_$ac_safe=yes"
11928else
11929 echo "$ac_err" >&5
11930 echo "configure: failed program was:" >&5
11931 cat conftest.$ac_ext >&5
11932 rm -rf conftest*
11933 eval "ac_cv_header_$ac_safe=no"
11934fi
11935rm -f conftest*
11936fi
11937if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11938 echo "$ac_t""yes" 1>&6
11939 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11940 cat >> confdefs.h <<EOF
11941#define $ac_tr_hdr 1
11942EOF
11943
11944else
11945 echo "$ac_t""no" 1>&6
11946fi
11947done
11948
11949 if test "x$HAVE_OLE2_H" = x ; then
11950 echo "configure: warning: Drag and drop disabled because OLE headers not found" 1>&2
11951 wxUSE_DRAG_AND_DROP=no
11952 fi
11953 fi
11954
11955 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
11956 cat >> confdefs.h <<\EOF
11957#define wxUSE_DRAG_AND_DROP 1
11958EOF
11959
11960 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
11961 fi
11962
11963fi
11964
11965if test "$wxUSE_SPLINES" = "yes" ; then
11966 cat >> confdefs.h <<\EOF
11967#define wxUSE_SPLINES 1
11968EOF
11969
11970fi
11971
11972
11973if test "$wxUSE_ACCEL" = "yes"; then
11974 cat >> confdefs.h <<\EOF
11975#define wxUSE_ACCEL 1
11976EOF
11977
11978fi
11979
11980if test "$wxUSE_CARET" = "yes"; then
11981 cat >> confdefs.h <<\EOF
11982#define wxUSE_CARET 1
11983EOF
11984
11985 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
11986fi
11987
11988if test "$wxUSE_COMBOBOX" = "yes"; then
11989 cat >> confdefs.h <<\EOF
11990#define wxUSE_COMBOBOX 1
11991EOF
11992
11993fi
11994
11995if test "$wxUSE_CHOICE" = "yes"; then
11996 cat >> confdefs.h <<\EOF
11997#define wxUSE_CHOICE 1
11998EOF
11999
12000fi
12001
12002if test "$wxUSE_BMPBUTTON" = "yes"; then
12003 cat >> confdefs.h <<\EOF
12004#define wxUSE_BMPBUTTON 1
12005EOF
12006
12007fi
12008
12009if test "$wxUSE_CHECKBOX" = "yes"; then
12010 cat >> confdefs.h <<\EOF
12011#define wxUSE_CHECKBOX 1
12012EOF
12013
12014fi
12015
12016if test "$wxUSE_CHECKLST" = "yes"; then
12017 cat >> confdefs.h <<\EOF
12018#define wxUSE_CHECKLISTBOX 1
12019EOF
12020
12021 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
12022fi
12023
12024if test "$wxUSE_GAUGE" = "yes"; then
12025 cat >> confdefs.h <<\EOF
12026#define wxUSE_GAUGE 1
12027EOF
12028
12029fi
12030
12031if test "$wxUSE_GRID" = "yes"; then
12032 cat >> confdefs.h <<\EOF
12033#define wxUSE_GRID 1
12034EOF
12035
12036 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
12037fi
12038
12039if test "$wxUSE_NEW_GRID" = "yes"; then
12040 cat >> confdefs.h <<\EOF
12041#define wxUSE_NEW_GRID 1
12042EOF
12043
12044 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS newgrid"
12045fi
12046
12047if test "$wxUSE_IMAGLIST" = "yes"; then
12048 cat >> confdefs.h <<\EOF
12049#define wxUSE_IMAGLIST 1
12050EOF
12051
12052fi
12053
12054if test "$wxUSE_LISTBOX" = "yes"; then
12055 cat >> confdefs.h <<\EOF
12056#define wxUSE_LISTBOX 1
12057EOF
12058
12059fi
12060
12061if test "$wxUSE_LISTCTRL" = "yes"; then
12062 if test "$wxUSE_IMAGLIST" = "yes"; then
12063 cat >> confdefs.h <<\EOF
12064#define wxUSE_LISTCTRL 1
12065EOF
12066
12067 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
12068 else
12069 echo "configure: warning: wxListCtrl requires wxImageList and won't be compiled without it" 1>&2
12070 fi
12071fi
12072
12073if test "$wxUSE_NOTEBOOK" = "yes"; then
12074 cat >> confdefs.h <<\EOF
12075#define wxUSE_NOTEBOOK 1
12076EOF
12077
12078 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
12079fi
12080
12081if test "$wxUSE_RADIOBOX" = "yes"; then
12082 cat >> confdefs.h <<\EOF
12083#define wxUSE_RADIOBOX 1
12084EOF
12085
12086fi
12087
12088if test "$wxUSE_RADIOBTN" = "yes"; then
12089 cat >> confdefs.h <<\EOF
12090#define wxUSE_RADIOBTN 1
12091EOF
12092
12093fi
12094
12095if test "$wxUSE_SASH" = "yes"; then
12096 cat >> confdefs.h <<\EOF
12097#define wxUSE_SASH 1
12098EOF
12099
12100 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
12101fi
12102
12103if test "$wxUSE_SCROLLBAR" = "yes"; then
12104 cat >> confdefs.h <<\EOF
12105#define wxUSE_SCROLLBAR 1
12106EOF
12107
741a9306 12108 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
10f2d63a
VZ
12109fi
12110
12111if test "$wxUSE_SLIDER" = "yes"; then
12112 cat >> confdefs.h <<\EOF
12113#define wxUSE_SLIDER 1
12114EOF
12115
12116fi
12117
12118if test "$wxUSE_SPINBTN" = "yes"; then
12119 cat >> confdefs.h <<\EOF
12120#define wxUSE_SPINBTN 1
12121EOF
12122
12123fi
12124
12125if test "$wxUSE_SPLITTER" = "yes"; then
12126 cat >> confdefs.h <<\EOF
12127#define wxUSE_SPLITTER 1
12128EOF
12129
12130 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
12131fi
12132
12133if test "$wxUSE_STATBMP" = "yes"; then
12134 cat >> confdefs.h <<\EOF
12135#define wxUSE_STATBMP 1
12136EOF
12137
12138fi
12139
12140if test "$wxUSE_STATBOX" = "yes"; then
12141 cat >> confdefs.h <<\EOF
12142#define wxUSE_STATBOX 1
12143EOF
12144
12145fi
12146
12147if test "$wxUSE_STATLINE" = "yes"; then
12148 if test "$wxUSE_WINE" = 1 ; then
12149 echo "configure: warning: wxStaticLine is not supported under WINE" 1>&2
12150 else
12151 cat >> confdefs.h <<\EOF
12152#define wxUSE_STATLINE 1
12153EOF
12154
12155 fi
12156fi
12157
12158if test "$wxUSE_STATUSBAR" = "yes"; then
12159 cat >> confdefs.h <<\EOF
12160#define wxUSE_STATUSBAR 1
12161EOF
12162
12163fi
12164
12165if test "$wxUSE_TABDIALOG" = "yes"; then
12166 cat >> confdefs.h <<\EOF
12167#define wxUSE_TAB_DIALOG 1
12168EOF
12169
12170 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab"
12171fi
12172
12173if test "$wxUSE_TOOLBAR" = "yes"; then
12174 cat >> confdefs.h <<\EOF
12175#define wxUSE_TOOLBAR 1
12176EOF
12177
12178 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
12179fi
12180
12181if test "$wxUSE_TOOLTIPS" = "yes"; then
12182 if test "$wxUSE_MOTIF" = 1; then
12183 echo "configure: warning: wxTooltip not supported yet under Motif" 1>&2
12184 else
12185 if test "$wxUSE_WINE" = 1; then
12186 echo "configure: warning: wxTooltip not supported under WINE" 1>&2
12187 else
12188 cat >> confdefs.h <<\EOF
12189#define wxUSE_TOOLTIPS 1
12190EOF
12191
12192 fi
12193 fi
12194fi
12195
12196if test "$wxUSE_TREECTRL" = "yes"; then
12197 if test "$wxUSE_IMAGLIST" = "yes"; then
12198 cat >> confdefs.h <<\EOF
12199#define wxUSE_TREECTRL 1
12200EOF
12201
12202 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
12203 else
12204 echo "configure: warning: wxTreeCtrl requires wxImageList and won't be compiled without it" 1>&2
12205 fi
12206fi
12207
12208
12209
12210if test "$wxUSE_METAFILE" = "yes"; then
12211 cat >> confdefs.h <<\EOF
12212#define wxUSE_METAFILE 1
12213EOF
12214
12215fi
12216
12217if test "$wxUSE_DIRDLG" = "yes"; then
12218 if test "$wxUSE_CONSTRAINTS" != "yes"; then
12219 echo "configure: warning: wxDirDialog requires constraints so it won't be compiled without them" 1>&2
12220 else
12221 if test "$wxUSE_TREECTRL" != "yes"; then
12222 echo "configure: warning: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" 1>&2
12223 else
12224 cat >> confdefs.h <<\EOF
12225#define wxUSE_DIRDLG 1
12226EOF
12227
12228 fi
12229 fi
12230fi
12231
12232if test "$wxUSE_TEXTDLG" = "yes"; then
12233 cat >> confdefs.h <<\EOF
12234#define wxUSE_TEXTDLG 1
12235EOF
12236
12237fi
12238
12239if test "$wxUSE_STARTUP_TIPS" = "yes"; then
12240 if test "$wxUSE_CONSTRAINTS" != "yes"; then
12241 echo "configure: warning: Startup tips requires constraints and won't be compiled without them" 1>&2
12242 else
12243 cat >> confdefs.h <<\EOF
12244#define wxUSE_STARTUP_TIPS 1
12245EOF
12246
12247 fi
12248fi
12249
12250if test "$wxUSE_PROGRESSDLG" = "yes"; then
12251 if test "$wxUSE_CONSTRAINTS" != "yes"; then
12252 echo "configure: warning: wxProgressDialog requires constraints so it won't be compiled without them" 1>&2
12253 else
12254 cat >> confdefs.h <<\EOF
12255#define wxUSE_PROGRESSDLG 1
12256EOF
12257
12258 fi
12259fi
12260
12261if test "$wxUSE_MINIFRAME" = "yes"; then
12262 cat >> confdefs.h <<\EOF
12263#define wxUSE_MINIFRAME 1
12264EOF
12265
12266 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
12267fi
12268
12269if test "$wxUSE_HTML" = "yes"; then
12270 cat >> confdefs.h <<\EOF
12271#define wxUSE_HTML 1
12272EOF
12273
12274 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html"
12275 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS html"
12276fi
12277
12278if test "$wxUSE_VALIDATORS" = "yes"; then
12279 cat >> confdefs.h <<\EOF
12280#define wxUSE_VALIDATORS 1
12281EOF
12282
12283 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
12284fi
12285
12286if test "$wxUSE_GIF" = "yes" ; then
12287 cat >> confdefs.h <<\EOF
12288#define wxUSE_GIF 1
12289EOF
12290
12291fi
12292
12293if test "$wxUSE_PCX" = "yes" ; then
12294 cat >> confdefs.h <<\EOF
12295#define wxUSE_PCX 1
12296EOF
12297
12298fi
12299
12300if test "$wxUSE_PNM" = "yes" ; then
12301 cat >> confdefs.h <<\EOF
12302#define wxUSE_PNM 1
12303EOF
12304
12305fi
12306
12307
12308GUILIBS="$GUI_TK_LIBRARY $OPENGL_LINK $LIBPNG_LINK $ZLIB_LINK $TOOLKIT_LINK"
12309
c63c7106 12310EXTRA_LIBS="$LIBS $POSIX4_LINK $INET_LINK $WCHAR_LINK $THREADS_LINK $DMALLOC_LINK $DL_LINK"
10f2d63a
VZ
12311if test "$wxUSE_GUI" = "yes"; then
12312 EXTRA_LIBS="$EXTRA_LIBS $GUILIBS"
12313fi
12314
12315LD_LIBS="\${top_builddir}/lib/${WX_LIBRARY_NAME_STATIC} $EXTRA_LIBS"
12316
12317INCLUDES="-I. -I\${top_builddir}/include -I\${top_srcdir}/include $ZLIB_INCLUDE $PNG_INCLUDE $JPEG_INCLUDE $TOOLKIT_INCLUDE"
12318
12319if test "$GXX" = yes ; then
12320 CXXWARNINGS="-Wall"
12321 fi
12322EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE $INCLUDES"
12323
12324CFLAGS=`echo $CFLAGS $EXTRA_CFLAGS | sed 's/ \\+/ /g'`
12325CXXFLAGS=`echo $CXXFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \+/ /g'`
12326
12327if test "$wxUSE_GUI" = "yes"; then
12328
12329 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS bombs controls dialogs drawing dynamic \
741a9306 12330 font forty fractal image minimal richedit wxpoem"
10f2d63a
VZ
12331else
12332 SAMPLES_SUBDIRS=""
12333fi
12334
12335SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '`"
12336
12337
12338
12339
12340
12341
12342
12343
12344
12345
12346
12347
12348
12349
12350
12351
12352
12353
12354
12355
12356
12357
12358
12359
12360
12361
12362
12363
12364
12365
12366
12367
12368
12369
12370
12371
12372
12373
12374
12375
12376
12377
12378
12379
12380
12381
12382
12383
12384
12385
12386
12387
12388
12389
12390echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
7eef8db2 12391echo "configure:12392: checking whether ${MAKE-make} sets \${MAKE}" >&5
10f2d63a
VZ
12392set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
12393if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
12394 echo $ac_n "(cached) $ac_c" 1>&6
12395else
12396 cat > conftestmake <<\EOF
12397all:
12398 @echo 'ac_maketemp="${MAKE}"'
12399EOF
12400# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
12401eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
12402if test -n "$ac_maketemp"; then
12403 eval ac_cv_prog_make_${ac_make}_set=yes
12404else
12405 eval ac_cv_prog_make_${ac_make}_set=no
12406fi
12407rm -f conftestmake
12408fi
12409if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
12410 echo "$ac_t""yes" 1>&6
12411 SET_MAKE=
12412else
12413 echo "$ac_t""no" 1>&6
12414 SET_MAKE="MAKE=${MAKE-make}"
12415fi
12416
12417
12418
12419
12420if test "${TOOLKIT_DIR}" = "msw" ; then
12421 GL_TOOLKIT_DIR="win"
12422else
12423 GL_TOOLKIT_DIR="${TOOLKIT_DIR}"
12424fi
12425
12426
12427trap '' 1 2 15
12428cat > confcache <<\EOF
12429# This file is a shell script that caches the results of configure
12430# tests run on this system so they can be shared between configure
12431# scripts and configure runs. It is not useful on other systems.
12432# If it contains results you don't want to keep, you may remove or edit it.
12433#
12434# By default, configure uses ./config.cache as the cache file,
12435# creating it if it does not exist already. You can give configure
12436# the --cache-file=FILE option to use a different cache file; that is
12437# what configure does when it calls configure scripts in
12438# subdirectories, so they share the cache.
12439# Giving --cache-file=/dev/null disables caching, for debugging configure.
12440# config.status only pays attention to the cache file if you give it the
12441# --recheck option to rerun configure.
12442#
12443EOF
12444# The following way of writing the cache mishandles newlines in values,
12445# but we know of no workaround that is simple, portable, and efficient.
12446# So, don't put newlines in cache variables' values.
12447# Ultrix sh set writes to stderr and can't be redirected directly,
12448# and sets the high bit in the cache file unless we assign to the vars.
12449(set) 2>&1 |
12450 case `(ac_space=' '; set | grep ac_space) 2>&1` in
12451 *ac_space=\ *)
12452 # `set' does not quote correctly, so add quotes (double-quote substitution
12453 # turns \\\\ into \\, and sed turns \\ into \).
12454 sed -n \
12455 -e "s/'/'\\\\''/g" \
12456 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
12457 ;;
12458 *)
12459 # `set' quotes correctly as required by POSIX, so do not add quotes.
12460 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
12461 ;;
12462 esac >> confcache
12463if cmp -s $cache_file confcache; then
12464 :
12465else
12466 if test -w $cache_file; then
12467 echo "updating cache $cache_file"
12468 cat confcache > $cache_file
12469 else
12470 echo "not updating unwritable cache $cache_file"
12471 fi
12472fi
12473rm -f confcache
12474
12475trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
12476
12477test "x$prefix" = xNONE && prefix=$ac_default_prefix
12478# Let make expand exec_prefix.
12479test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12480
12481# Any assignment to VPATH causes Sun make to only execute
12482# the first set of double-colon rules, so remove it if not needed.
12483# If there is a colon in the path, we need to keep it.
12484if test "x$srcdir" = x.; then
12485 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
12486fi
12487
12488trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
12489
12490DEFS=-DHAVE_CONFIG_H
12491
12492# Without the "./", some shells look in PATH for config.status.
12493: ${CONFIG_STATUS=./config.status}
12494
12495echo creating $CONFIG_STATUS
12496rm -f $CONFIG_STATUS
12497cat > $CONFIG_STATUS <<EOF
12498#! /bin/sh
12499# Generated automatically by configure.
12500# Run this file to recreate the current configuration.
12501# This directory was configured as follows,
12502# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12503#
12504# $0 $ac_configure_args
12505#
12506# Compiler output produced by configure, useful for debugging
12507# configure, is in ./config.log if it exists.
12508
12509ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
12510for ac_option
12511do
12512 case "\$ac_option" in
12513 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12514 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
12515 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
12516 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
69ffe1d2 12517 echo "$CONFIG_STATUS generated by autoconf version 2.14"
10f2d63a
VZ
12518 exit 0 ;;
12519 -help | --help | --hel | --he | --h)
12520 echo "\$ac_cs_usage"; exit 0 ;;
12521 *) echo "\$ac_cs_usage"; exit 1 ;;
12522 esac
12523done
12524
12525ac_given_srcdir=$srcdir
12526ac_given_INSTALL="$INSTALL"
12527
12528trap 'rm -fr `echo "
12529 wx-config
12530 src/make.env
12531 src/makeprog.env
12532 src/makelib.env
12533 Makefile
12534 samples/Makefile
12535 samples/bombs/Makefile
12536 samples/caret/Makefile
12537 samples/checklst/Makefile
12538 samples/config/Makefile
12539 samples/controls/Makefile
12540 samples/db/Makefile
12541 samples/dialogs/Makefile
12542 samples/docview/Makefile
12543 samples/docvwmdi/Makefile
12544 samples/dnd/Makefile
12545 samples/drawing/Makefile
12546 samples/forty/Makefile
678b92a9 12547 samples/font/Makefile
10f2d63a
VZ
12548 samples/fractal/Makefile
12549 samples/image/Makefile
12550 samples/internat/Makefile
12551 samples/layout/Makefile
12552 samples/listctrl/Makefile
12553 samples/mdi/Makefile
12554 samples/minifram/Makefile
12555 samples/minimal/Makefile
12556 samples/nettest/Makefile
12557 samples/newgrid/Makefile
12558 samples/notebook/Makefile
12559 samples/png/Makefile
12560 samples/printing/Makefile
12561 samples/proplist/Makefile
12562 samples/richedit/Makefile
12563 samples/resource/Makefile
12564 samples/sashtest/Makefile
12565 samples/scroll/Makefile
12566 samples/scrollsub/Makefile
12567 samples/splitter/Makefile
12568 samples/text/Makefile
12569 samples/thread/Makefile
12570 samples/toolbar/Makefile
12571 samples/treectrl/Makefile
12572 samples/typetest/Makefile
12573 samples/validate/Makefile
12574 samples/wxpoem/Makefile
12575 samples/wxsocket/Makefile
12576 samples/wizard/Makefile
12577 samples/html/Makefile
12578 samples/html/about/Makefile
12579 samples/html/help/Makefile
12580 samples/html/printing/Makefile
fc9c7c09 12581 samples/html/helpview/Makefile
10f2d63a
VZ
12582 samples/html/test/Makefile
12583 samples/html/zip/Makefile
12584 samples/html/virtual/Makefile
12585 samples/html/widget/Makefile
12586 utils/Makefile
12587 utils/wxMMedia2/Makefile
12588 utils/wxMMedia2/lib/Makefile
12589 utils/wxMMedia2/sample/Makefile
12590 utils/glcanvas/Makefile
12591 utils/glcanvas/${GL_TOOLKIT_DIR}/Makefile
12592 utils/ogl/Makefile
12593 utils/ogl/src/Makefile
12594 setup.h:setup.h.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
12595EOF
12596cat >> $CONFIG_STATUS <<EOF
12597
12598# Protect against being on the right side of a sed subst in config.status.
12599sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
12600 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
12601$ac_vpsub
12602$extrasub
12603s%@SHELL@%$SHELL%g
12604s%@CFLAGS@%$CFLAGS%g
12605s%@CPPFLAGS@%$CPPFLAGS%g
12606s%@CXXFLAGS@%$CXXFLAGS%g
12607s%@FFLAGS@%$FFLAGS%g
12608s%@DEFS@%$DEFS%g
12609s%@LDFLAGS@%$LDFLAGS%g
12610s%@LIBS@%$LIBS%g
12611s%@exec_prefix@%$exec_prefix%g
12612s%@prefix@%$prefix%g
12613s%@program_transform_name@%$program_transform_name%g
12614s%@bindir@%$bindir%g
12615s%@sbindir@%$sbindir%g
12616s%@libexecdir@%$libexecdir%g
12617s%@datadir@%$datadir%g
12618s%@sysconfdir@%$sysconfdir%g
12619s%@sharedstatedir@%$sharedstatedir%g
12620s%@localstatedir@%$localstatedir%g
12621s%@libdir@%$libdir%g
12622s%@includedir@%$includedir%g
12623s%@oldincludedir@%$oldincludedir%g
12624s%@infodir@%$infodir%g
12625s%@mandir@%$mandir%g
12626s%@host@%$host%g
12627s%@host_alias@%$host_alias%g
12628s%@host_cpu@%$host_cpu%g
12629s%@host_vendor@%$host_vendor%g
12630s%@host_os@%$host_os%g
12631s%@target@%$target%g
12632s%@target_alias@%$target_alias%g
12633s%@target_cpu@%$target_cpu%g
12634s%@target_vendor@%$target_vendor%g
12635s%@target_os@%$target_os%g
12636s%@build@%$build%g
12637s%@build_alias@%$build_alias%g
12638s%@build_cpu@%$build_cpu%g
12639s%@build_vendor@%$build_vendor%g
12640s%@build_os@%$build_os%g
12641s%@CC@%$CC%g
12642s%@CPP@%$CPP%g
12643s%@CXX@%$CXX%g
12644s%@CXXCPP@%$CXXCPP%g
12645s%@RANLIB@%$RANLIB%g
12646s%@AR@%$AR%g
12647s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
12648s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
12649s%@INSTALL_DATA@%$INSTALL_DATA%g
12650s%@STRIP@%$STRIP%g
12651s%@YACC@%$YACC%g
12652s%@LEX@%$LEX%g
12653s%@LEXLIB@%$LEXLIB%g
12654s%@LN_S@%$LN_S%g
12655s%@GTK_CONFIG@%$GTK_CONFIG%g
12656s%@GTK_CFLAGS@%$GTK_CFLAGS%g
12657s%@GTK_LIBS@%$GTK_LIBS%g
ab9b9eab
VZ
12658s%@X_CFLAGS@%$X_CFLAGS%g
12659s%@X_PRE_LIBS@%$X_PRE_LIBS%g
12660s%@X_LIBS@%$X_LIBS%g
12661s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
10f2d63a
VZ
12662s%@WX_MAJOR_VERSION_NUMBER@%$WX_MAJOR_VERSION_NUMBER%g
12663s%@WX_MINOR_VERSION_NUMBER@%$WX_MINOR_VERSION_NUMBER%g
12664s%@WX_RELEASE_NUMBER@%$WX_RELEASE_NUMBER%g
12665s%@WX_LIBRARY_NAME@%$WX_LIBRARY_NAME%g
12666s%@WX_LIBRARY_NAME_STATIC@%$WX_LIBRARY_NAME_STATIC%g
12667s%@WX_LIBRARY_NAME_SHARED@%$WX_LIBRARY_NAME_SHARED%g
12668s%@WX_LIBRARY@%$WX_LIBRARY%g
12669s%@WX_TARGET_LIBRARY@%$WX_TARGET_LIBRARY%g
12670s%@WX_LIBRARY_LINK1@%$WX_LIBRARY_LINK1%g
12671s%@WX_LIBRARY_LINK2@%$WX_LIBRARY_LINK2%g
12672s%@WX_LIBRARY_LINK3@%$WX_LIBRARY_LINK3%g
12673s%@PROGRAM_EXT@%$PROGRAM_EXT%g
12674s%@WX_ALL@%$WX_ALL%g
12675s%@WX_ALL_INSTALLED@%$WX_ALL_INSTALLED%g
12676s%@SHARED_LD@%$SHARED_LD%g
12677s%@PIC_FLAG@%$PIC_FLAG%g
12678s%@DEP_INFO_FLAGS@%$DEP_INFO_FLAGS%g
12679s%@WXDEBUG_DEFINE@%$WXDEBUG_DEFINE%g
12680s%@TOOLKIT@%$TOOLKIT%g
12681s%@TOOLKIT_DEF@%$TOOLKIT_DEF%g
12682s%@TOOLKIT_DIR@%$TOOLKIT_DIR%g
12683s%@TOOLKIT_INCLUDE@%$TOOLKIT_INCLUDE%g
12684s%@GUIHEADERS@%$GUIHEADERS%g
12685s%@GUIOBJS@%$GUIOBJS%g
12686s%@COMMONOBJS@%$COMMONOBJS%g
12687s%@GENERICOBJS@%$GENERICOBJS%g
12688s%@GUIDEPS@%$GUIDEPS%g
12689s%@COMMONDEPS@%$COMMONDEPS%g
12690s%@GENERICDEPS@%$GENERICDEPS%g
12691s%@IODBCOBJS@%$IODBCOBJS%g
12692s%@UNIXOBJS@%$UNIXOBJS%g
12693s%@UNIXDEPS@%$UNIXDEPS%g
12694s%@ALL_OBJECTS@%$ALL_OBJECTS%g
12695s%@ALL_DEPFILES@%$ALL_DEPFILES%g
12696s%@ALL_HEADERS@%$ALL_HEADERS%g
12697s%@GUIDIST@%$GUIDIST%g
12698s%@SRC_SUBDIRS@%$SRC_SUBDIRS%g
12699s%@INCLUDE_SUBDIRS@%$INCLUDE_SUBDIRS%g
12700s%@UTILS_SUBDIRS@%$UTILS_SUBDIRS%g
12701s%@DOCS_SUBDIRS@%$DOCS_SUBDIRS%g
12702s%@SAMPLES_SUBDIRS@%$SAMPLES_SUBDIRS%g
12703s%@USER_SUBDIRS@%$USER_SUBDIRS%g
12704s%@EXTRA_LIBS@%$EXTRA_LIBS%g
12705s%@LD_LIBS@%$LD_LIBS%g
12706s%@SET_MAKE@%$SET_MAKE%g
12707s%@GL_TOOLKIT_DIR@%$GL_TOOLKIT_DIR%g
12708
12709CEOF
12710EOF
12711
12712cat >> $CONFIG_STATUS <<\EOF
12713
12714# Split the substitutions into bite-sized pieces for seds with
12715# small command number limits, like on Digital OSF/1 and HP-UX.
12716ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
12717ac_file=1 # Number of current file.
12718ac_beg=1 # First line for current file.
12719ac_end=$ac_max_sed_cmds # Line after last line for current file.
12720ac_more_lines=:
12721ac_sed_cmds=""
12722while $ac_more_lines; do
12723 if test $ac_beg -gt 1; then
12724 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
12725 else
12726 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
12727 fi
12728 if test ! -s conftest.s$ac_file; then
12729 ac_more_lines=false
12730 rm -f conftest.s$ac_file
12731 else
12732 if test -z "$ac_sed_cmds"; then
12733 ac_sed_cmds="sed -f conftest.s$ac_file"
12734 else
12735 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
12736 fi
12737 ac_file=`expr $ac_file + 1`
12738 ac_beg=$ac_end
12739 ac_end=`expr $ac_end + $ac_max_sed_cmds`
12740 fi
12741done
12742if test -z "$ac_sed_cmds"; then
12743 ac_sed_cmds=cat
12744fi
12745EOF
12746
12747cat >> $CONFIG_STATUS <<EOF
12748
12749CONFIG_FILES=\${CONFIG_FILES-"wx-config
12750 src/make.env
12751 src/makeprog.env
12752 src/makelib.env
12753 Makefile
12754 samples/Makefile
12755 samples/bombs/Makefile
12756 samples/caret/Makefile
12757 samples/checklst/Makefile
12758 samples/config/Makefile
12759 samples/controls/Makefile
12760 samples/db/Makefile
12761 samples/dialogs/Makefile
12762 samples/docview/Makefile
12763 samples/docvwmdi/Makefile
12764 samples/dnd/Makefile
12765 samples/drawing/Makefile
12766 samples/forty/Makefile
678b92a9 12767 samples/font/Makefile
10f2d63a
VZ
12768 samples/fractal/Makefile
12769 samples/image/Makefile
12770 samples/internat/Makefile
12771 samples/layout/Makefile
12772 samples/listctrl/Makefile
12773 samples/mdi/Makefile
12774 samples/minifram/Makefile
12775 samples/minimal/Makefile
12776 samples/nettest/Makefile
12777 samples/newgrid/Makefile
12778 samples/notebook/Makefile
12779 samples/png/Makefile
12780 samples/printing/Makefile
12781 samples/proplist/Makefile
12782 samples/richedit/Makefile
12783 samples/resource/Makefile
12784 samples/sashtest/Makefile
12785 samples/scroll/Makefile
12786 samples/scrollsub/Makefile
12787 samples/splitter/Makefile
12788 samples/text/Makefile
12789 samples/thread/Makefile
12790 samples/toolbar/Makefile
12791 samples/treectrl/Makefile
12792 samples/typetest/Makefile
12793 samples/validate/Makefile
12794 samples/wxpoem/Makefile
12795 samples/wxsocket/Makefile
12796 samples/wizard/Makefile
12797 samples/html/Makefile
12798 samples/html/about/Makefile
12799 samples/html/help/Makefile
12800 samples/html/printing/Makefile
fc9c7c09 12801 samples/html/helpview/Makefile
10f2d63a
VZ
12802 samples/html/test/Makefile
12803 samples/html/zip/Makefile
12804 samples/html/virtual/Makefile
12805 samples/html/widget/Makefile
12806 utils/Makefile
12807 utils/wxMMedia2/Makefile
12808 utils/wxMMedia2/lib/Makefile
12809 utils/wxMMedia2/sample/Makefile
12810 utils/glcanvas/Makefile
12811 utils/glcanvas/${GL_TOOLKIT_DIR}/Makefile
12812 utils/ogl/Makefile
12813 utils/ogl/src/Makefile
12814 "}
12815EOF
12816cat >> $CONFIG_STATUS <<\EOF
12817for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
12818 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12819 case "$ac_file" in
12820 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
12821 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
12822 *) ac_file_in="${ac_file}.in" ;;
12823 esac
12824
12825 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
12826
12827 # Remove last slash and all that follows it. Not all systems have dirname.
12828 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
12829 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
12830 # The file is in a subdirectory.
12831 test ! -d "$ac_dir" && mkdir "$ac_dir"
12832 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
12833 # A "../" for each directory in $ac_dir_suffix.
12834 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
12835 else
12836 ac_dir_suffix= ac_dots=
12837 fi
12838
12839 case "$ac_given_srcdir" in
12840 .) srcdir=.
12841 if test -z "$ac_dots"; then top_srcdir=.
12842 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
12843 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
12844 *) # Relative path.
12845 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
12846 top_srcdir="$ac_dots$ac_given_srcdir" ;;
12847 esac
12848
12849 case "$ac_given_INSTALL" in
12850 [/$]*) INSTALL="$ac_given_INSTALL" ;;
12851 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
12852 esac
12853
12854 echo creating "$ac_file"
12855 rm -f "$ac_file"
12856 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
12857 case "$ac_file" in
12858 *Makefile*) ac_comsub="1i\\
12859# $configure_input" ;;
12860 *) ac_comsub= ;;
12861 esac
12862
12863 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
12864 sed -e "$ac_comsub
12865s%@configure_input@%$configure_input%g
12866s%@srcdir@%$srcdir%g
12867s%@top_srcdir@%$top_srcdir%g
12868s%@INSTALL@%$INSTALL%g
12869" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
12870fi; done
12871rm -f conftest.s*
12872
12873# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
12874# NAME is the cpp macro being defined and VALUE is the value it is being given.
12875#
12876# ac_d sets the value in "#define NAME VALUE" lines.
12877ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
12878ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
12879ac_dC='\3'
12880ac_dD='%g'
12881# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
12882ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
12883ac_uB='\([ ]\)%\1#\2define\3'
12884ac_uC=' '
12885ac_uD='\4%g'
12886# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
12887ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
12888ac_eB='$%\1#\2define\3'
12889ac_eC=' '
12890ac_eD='%g'
12891
12892if test "${CONFIG_HEADERS+set}" != set; then
12893EOF
12894cat >> $CONFIG_STATUS <<EOF
12895 CONFIG_HEADERS="setup.h:setup.h.in"
12896EOF
12897cat >> $CONFIG_STATUS <<\EOF
12898fi
12899for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
12900 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12901 case "$ac_file" in
12902 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
12903 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
12904 *) ac_file_in="${ac_file}.in" ;;
12905 esac
12906
12907 echo creating $ac_file
12908
12909 rm -f conftest.frag conftest.in conftest.out
12910 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
12911 cat $ac_file_inputs > conftest.in
12912
12913EOF
12914
12915# Transform confdefs.h into a sed script conftest.vals that substitutes
12916# the proper values into config.h.in to produce config.h. And first:
12917# Protect against being on the right side of a sed subst in config.status.
12918# Protect against being in an unquoted here document in config.status.
12919rm -f conftest.vals
12920cat > conftest.hdr <<\EOF
12921s/[\\&%]/\\&/g
12922s%[\\$`]%\\&%g
12923s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
12924s%ac_d%ac_u%gp
12925s%ac_u%ac_e%gp
12926EOF
12927sed -n -f conftest.hdr confdefs.h > conftest.vals
12928rm -f conftest.hdr
12929
12930# This sed command replaces #undef with comments. This is necessary, for
12931# example, in the case of _POSIX_SOURCE, which is predefined and required
12932# on some systems where configure will not decide to define it.
12933cat >> conftest.vals <<\EOF
12934s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
12935EOF
12936
12937# Break up conftest.vals because some shells have a limit on
12938# the size of here documents, and old seds have small limits too.
12939
12940rm -f conftest.tail
12941while :
12942do
12943 ac_lines=`grep -c . conftest.vals`
12944 # grep -c gives empty output for an empty file on some AIX systems.
12945 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
12946 # Write a limited-size here document to conftest.frag.
12947 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
12948 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
12949 echo 'CEOF
12950 sed -f conftest.frag conftest.in > conftest.out
12951 rm -f conftest.in
12952 mv conftest.out conftest.in
12953' >> $CONFIG_STATUS
12954 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
12955 rm -f conftest.vals
12956 mv conftest.tail conftest.vals
12957done
12958rm -f conftest.vals
12959
12960cat >> $CONFIG_STATUS <<\EOF
12961 rm -f conftest.frag conftest.h
12962 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
12963 cat conftest.in >> conftest.h
12964 rm -f conftest.in
12965 if cmp -s $ac_file conftest.h 2>/dev/null; then
12966 echo "$ac_file is unchanged"
12967 rm -f conftest.h
12968 else
12969 # Remove last slash and all that follows it. Not all systems have dirname.
12970 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
12971 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
12972 # The file is in a subdirectory.
12973 test ! -d "$ac_dir" && mkdir "$ac_dir"
12974 fi
12975 rm -f $ac_file
12976 mv conftest.h $ac_file
12977 fi
12978fi; done
12979
12980EOF
12981cat >> $CONFIG_STATUS <<EOF
12982
12983 TOOLKIT_DIR="${TOOLKIT_DIR}"
12984
12985
12986EOF
12987cat >> $CONFIG_STATUS <<\EOF
12988
12989 chmod +x wx-config
12990 if test ! -d include; then
12991 mkdir include
12992 fi
12993 if test ! -d include/wx; then
12994 mkdir include/wx
12995 fi
12996 if test ! -d include/wx/${TOOLKIT_DIR}; then
12997 mkdir include/wx/${TOOLKIT_DIR}
12998 fi
afc31813
VZ
12999 if test -f setup.h; then
13000 mv -f setup.h include/wx/${TOOLKIT_DIR}/setup.h
13001 fi
10f2d63a
VZ
13002
13003exit 0
13004EOF
13005chmod +x $CONFIG_STATUS
13006rm -fr confdefs* $ac_clean_files
13007test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
13008
13009