]> git.saurik.com Git - wxWidgets.git/blame - configure
added wxUSE_NOTEBOOK to include/wx/msw/setup0.h, removed wxUSE_RADIOBUTTON (we
[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.
caa2c79b 41# Generated automatically using autoconf version 2.13
10f2d63a
VZ
42# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
43#
44# This configure script is free software; the Free Software Foundation
45# gives unlimited permission to copy, distribute and modify it.
46
47# Defaults:
48ac_help=
49ac_default_prefix=/usr/local
50# Any additions from configure.in:
51ac_help="$ac_help
52--enable-gui use GUI classes"
53ac_help="$ac_help
54 --with-gtk use GTK+"
55ac_help="$ac_help
56 --with-motif use Motif/Lesstif"
57ac_help="$ac_help
58 --with-wine use WINE"
59ac_help="$ac_help
60 --with-cygwin use Cygwin for MS-Windows"
61ac_help="$ac_help
62 --with-mingw use GCC Minimal MS-Windows"
e07802fc
VZ
63ac_help="$ac_help
64 --with-pm use OS/2 Presentation Manager"
10f2d63a
VZ
65ac_help="$ac_help
66 --with-gtk-prefix=PFX Prefix where GTK is installed"
67ac_help="$ac_help
68 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed"
69ac_help="$ac_help
10f2d63a
VZ
70--with-libpng use libpng (PNG image format)"
71ac_help="$ac_help
72--with-libjpeg use libjpeg (JPEG file format)"
73ac_help="$ac_help
c7a2bf27
RR
74--with-libtiff use libtiff (TIFF file format)"
75ac_help="$ac_help
10f2d63a
VZ
76--with-opengl use OpenGL (or Mesa)"
77ac_help="$ac_help
b12915c1
VZ
78--with-dmalloc use dmalloc library (www.letters.com/dmalloc)"
79ac_help="$ac_help
80--with-zlib use zlib for LZW compression"
81ac_help="$ac_help
10f2d63a
VZ
82--with-odbc use the IODBC and wxODBC classes"
83ac_help="$ac_help
84--enable-shared create shared library code"
85ac_help="$ac_help
86--enable-optimise create optimised code"
87ac_help="$ac_help
88--enable-debug same as debug_flag and debug_info"
89ac_help="$ac_help
90--enable-debug_flag set __WXDEBUG__ flag (recommended for developers!)"
91ac_help="$ac_help
92--enable-debug_info create code with debugging information"
93ac_help="$ac_help
94--enable-debug_gdb create code with extra GDB debugging information"
95ac_help="$ac_help
96--enable-debug_cntxt use wxDebugContext"
97ac_help="$ac_help
98--enable-mem_tracing create code with memory tracing"
99ac_help="$ac_help
100--enable-profile create code with profiling information"
101ac_help="$ac_help
102--enable-no_rtti create code without RTTI information"
103ac_help="$ac_help
104--enable-no_exceptions create code without exceptions information"
105ac_help="$ac_help
106--enable-permissive compile code disregarding strict ANSI"
107ac_help="$ac_help
108--enable-no_deps create code without dependency information"
109ac_help="$ac_help
110--enable-intl use internationalization system"
111ac_help="$ac_help
112--enable-config use wxConfig (and derived) classes"
113ac_help="$ac_help
114--enable-sockets use socket/network classes"
115ac_help="$ac_help
116--enable-dialupman use dialup network classes"
117ac_help="$ac_help
118--enable-ipc use interprocess communication (wxSocket etc.)"
119ac_help="$ac_help
120--enable-apple_ieee use the Apple IEEE codec"
121ac_help="$ac_help
122--enable-timedate use date/time classes"
123ac_help="$ac_help
124--enable-wave use wxWave class"
125ac_help="$ac_help
126--enable-fraction use wxFraction class"
127ac_help="$ac_help
128--enable-dynlib use wxLibrary class for DLL loading"
129ac_help="$ac_help
130--enable-longlong use wxLongLong class"
131ac_help="$ac_help
132--enable-log use logging system"
133ac_help="$ac_help
134--enable-streams use wxStream etc classes"
135ac_help="$ac_help
136--enable-file use wxFile classes"
137ac_help="$ac_help
138--enable-textfile use wxTextFile classes"
139ac_help="$ac_help
140--enable-unicode compile wxString with Unicode support"
141ac_help="$ac_help
142--enable-wcsrtombs use wcsrtombs instead of buggy (GNU libc1/Linux libc5) wcstombs"
143ac_help="$ac_help
144--enable-wxprintfv use wxWindows implementation of vprintf()"
145ac_help="$ac_help
146--enable-joystick compile in joystick support (Linux only)"
147ac_help="$ac_help
148--enable-std_iostreams use standard C++ stream classes"
149ac_help="$ac_help
150--enable-fs_inet use virtual HTTP/FTP filesystems"
151ac_help="$ac_help
152--enable-fs_zip use virtual ZIP filesystems"
153ac_help="$ac_help
154--enable-zipstream use wxZipInputStream"
155ac_help="$ac_help
156--enable-threads use threads"
157ac_help="$ac_help
158--enable-serial use class serialization"
159ac_help="$ac_help
160--enable-docview use document view architecture"
161ac_help="$ac_help
162--enable-help use help (using external browser at present)"
163ac_help="$ac_help
164--enable-constraints use layout-constraints system"
165ac_help="$ac_help
166--enable-printarch use printing architecture"
167ac_help="$ac_help
168--enable-mdi use multiple document interface architecture"
169ac_help="$ac_help
170--enable-postscript use wxPostscriptDC device context (default for gtk+)"
171ac_help="$ac_help
172--enable-prologio use Prolog IO library"
173ac_help="$ac_help
174--enable-resources use wxWindows resources"
175ac_help="$ac_help
176--enable-xresources use X resources for save (default for gtk+)"
177ac_help="$ac_help
178--enable-clipboard use wxClipboard classes"
179ac_help="$ac_help
180--enable-dnd use Drag'n'Drop classes"
181ac_help="$ac_help
182--enable-wxtree make wxTree library"
183ac_help="$ac_help
184--enable-controls use all usual controls"
185ac_help="$ac_help
186--enable-accel use accelerators"
187ac_help="$ac_help
188--enable-caret use wxCaret class"
189ac_help="$ac_help
190--enable-bmpbutton use wxBitmapButton class"
191ac_help="$ac_help
192--enable-checkbox use wxCheckBox class"
193ac_help="$ac_help
194--enable-checklst use wxCheckListBox (listbox with checkboxes) class"
195ac_help="$ac_help
196--enable-choice use wxChoice class"
197ac_help="$ac_help
198--enable-combobox use wxComboBox classes"
199ac_help="$ac_help
200--enable-gauge use wxGauge class"
201ac_help="$ac_help
202--enable-grid use wxGrid class"
203ac_help="$ac_help
204--enable-newgrid use new wxGrid class"
205ac_help="$ac_help
206--enable-imaglist use wxImageList class"
207ac_help="$ac_help
208--enable-listbox use wxListBox class"
209ac_help="$ac_help
210--enable-listctrl use wxListCtrl class"
211ac_help="$ac_help
212--enable-notebook use wxNotebook class"
213ac_help="$ac_help
214--enable-radiobox use wxRadioBox class"
215ac_help="$ac_help
216--enable-radiobtn use wxRadioButton class"
217ac_help="$ac_help
218--enable-sash use wxSashWindow class"
219ac_help="$ac_help
220--enable-scrollbar use wxScrollBar class and scrollable windows"
221ac_help="$ac_help
222--enable-slider use wxSlider class"
223ac_help="$ac_help
224--enable-spinbtn use wxSpinButton class"
225ac_help="$ac_help
56cfaa52
RR
226--enable-spinctrl use wxSpinCtrl class"
227ac_help="$ac_help
10f2d63a
VZ
228--enable-splitter use wxSplitterWindow class"
229ac_help="$ac_help
230--enable-statbmp use wxStaticBitmap class"
231ac_help="$ac_help
232--enable-statbox use wxStaticBox class"
233ac_help="$ac_help
234--enable-statline use wxStaticLine class"
235ac_help="$ac_help
236--enable-statusbar use wxStatusBar class"
237ac_help="$ac_help
238--enable-tabdialog use wxTabControl class"
239ac_help="$ac_help
240--enable-toolbar use wxToolBar class"
241ac_help="$ac_help
360d6699
VZ
242--enable-tbarnative use native wxToolBar class"
243ac_help="$ac_help
244--enable-tbarsmpl use wxToolBarSimple class"
245ac_help="$ac_help
10f2d63a
VZ
246--enable-treectrl use wxTreeCtrl class"
247ac_help="$ac_help
248--enable-commondlg use common dialogs (wxDirDialog, wxProgressDialog, wxTextDialog, ...)"
249ac_help="$ac_help
250--enable-dirdlg use wxDirDialog"
251ac_help="$ac_help
252--enable-textdlg use wxTextDialog"
253ac_help="$ac_help
254--enable-tipdlg use startup tips"
255ac_help="$ac_help
256--enable-progressdlg use wxProgressDialog"
257ac_help="$ac_help
258--enable-miniframe use wxMiniFrame class"
259ac_help="$ac_help
260--enable-html use wxHTML sub-library"
261ac_help="$ac_help
262--enable-tooltips use wxToolTip class"
263ac_help="$ac_help
264--enable-splines use spline drawing code"
265ac_help="$ac_help
266--enable-validators use wxValidator and derived classes"
267ac_help="$ac_help
268--enable-busyinfo use wxBusyInfo"
269ac_help="$ac_help
270--enable-gif use gif images (GIF file format)"
271ac_help="$ac_help
272--enable-pcx use pcx images (PCX file format)"
273ac_help="$ac_help
274--enable-pnm use pnm images (PNM file format)"
ab9b9eab
VZ
275ac_help="$ac_help
276 --with-x use the X Window System"
10f2d63a
VZ
277
278# Initialize some variables set by options.
279# The variables have the same names as the options, with
280# dashes changed to underlines.
281build=NONE
282cache_file=./config.cache
283exec_prefix=NONE
284host=NONE
285no_create=
286nonopt=NONE
287no_recursion=
288prefix=NONE
289program_prefix=NONE
290program_suffix=NONE
291program_transform_name=s,x,x,
292silent=
293site=
294srcdir=
295target=NONE
296verbose=
297x_includes=NONE
298x_libraries=NONE
299bindir='${exec_prefix}/bin'
300sbindir='${exec_prefix}/sbin'
301libexecdir='${exec_prefix}/libexec'
302datadir='${prefix}/share'
303sysconfdir='${prefix}/etc'
304sharedstatedir='${prefix}/com'
305localstatedir='${prefix}/var'
306libdir='${exec_prefix}/lib'
307includedir='${prefix}/include'
308oldincludedir='/usr/include'
309infodir='${prefix}/info'
310mandir='${prefix}/man'
311
312# Initialize some other variables.
313subdirs=
314MFLAGS= MAKEFLAGS=
315SHELL=${CONFIG_SHELL-/bin/sh}
316# Maximum number of lines to put in a shell here document.
317ac_max_here_lines=12
318
319ac_prev=
320for ac_option
321do
322
323 # If the previous option needs an argument, assign it.
324 if test -n "$ac_prev"; then
325 eval "$ac_prev=\$ac_option"
326 ac_prev=
327 continue
328 fi
329
330 case "$ac_option" in
331 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
332 *) ac_optarg= ;;
333 esac
334
335 # Accept the important Cygnus configure options, so we can diagnose typos.
336
337 case "$ac_option" in
338
339 -bindir | --bindir | --bindi | --bind | --bin | --bi)
340 ac_prev=bindir ;;
341 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
342 bindir="$ac_optarg" ;;
343
344 -build | --build | --buil | --bui | --bu)
345 ac_prev=build ;;
346 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
347 build="$ac_optarg" ;;
348
349 -cache-file | --cache-file | --cache-fil | --cache-fi \
350 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
351 ac_prev=cache_file ;;
352 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
353 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
354 cache_file="$ac_optarg" ;;
355
356 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
357 ac_prev=datadir ;;
358 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
359 | --da=*)
360 datadir="$ac_optarg" ;;
361
362 -disable-* | --disable-*)
363 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
364 # Reject names that are not valid shell variable names.
365 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
366 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
367 fi
368 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
369 eval "enable_${ac_feature}=no" ;;
370
371 -enable-* | --enable-*)
372 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
373 # Reject names that are not valid shell variable names.
374 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
375 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
376 fi
377 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
378 case "$ac_option" in
379 *=*) ;;
380 *) ac_optarg=yes ;;
381 esac
382 eval "enable_${ac_feature}='$ac_optarg'" ;;
383
384 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
385 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
386 | --exec | --exe | --ex)
387 ac_prev=exec_prefix ;;
388 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
389 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
390 | --exec=* | --exe=* | --ex=*)
391 exec_prefix="$ac_optarg" ;;
392
393 -gas | --gas | --ga | --g)
394 # Obsolete; use --with-gas.
395 with_gas=yes ;;
396
397 -help | --help | --hel | --he)
398 # Omit some internal or obsolete options to make the list less imposing.
399 # This message is too long to be a string in the A/UX 3.1 sh.
400 cat << EOF
401Usage: configure [options] [host]
402Options: [defaults in brackets after descriptions]
403Configuration:
404 --cache-file=FILE cache test results in FILE
405 --help print this message
406 --no-create do not create output files
407 --quiet, --silent do not print \`checking...' messages
408 --version print the version of autoconf that created configure
409Directory and file names:
410 --prefix=PREFIX install architecture-independent files in PREFIX
411 [$ac_default_prefix]
412 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
413 [same as prefix]
414 --bindir=DIR user executables in DIR [EPREFIX/bin]
415 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
416 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
417 --datadir=DIR read-only architecture-independent data in DIR
418 [PREFIX/share]
419 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
420 --sharedstatedir=DIR modifiable architecture-independent data in DIR
421 [PREFIX/com]
422 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
423 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
424 --includedir=DIR C header files in DIR [PREFIX/include]
425 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
426 --infodir=DIR info documentation in DIR [PREFIX/info]
427 --mandir=DIR man documentation in DIR [PREFIX/man]
428 --srcdir=DIR find the sources in DIR [configure dir or ..]
429 --program-prefix=PREFIX prepend PREFIX to installed program names
430 --program-suffix=SUFFIX append SUFFIX to installed program names
431 --program-transform-name=PROGRAM
432 run sed PROGRAM on installed program names
433EOF
434 cat << EOF
435Host type:
436 --build=BUILD configure for building on BUILD [BUILD=HOST]
437 --host=HOST configure for HOST [guessed]
438 --target=TARGET configure for TARGET [TARGET=HOST]
439Features and packages:
440 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
441 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
442 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
443 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
444 --x-includes=DIR X include files are in DIR
445 --x-libraries=DIR X library files are in DIR
446EOF
447 if test -n "$ac_help"; then
448 echo "--enable and --with options recognized:$ac_help"
449 fi
450 exit 0 ;;
451
452 -host | --host | --hos | --ho)
453 ac_prev=host ;;
454 -host=* | --host=* | --hos=* | --ho=*)
455 host="$ac_optarg" ;;
456
457 -includedir | --includedir | --includedi | --included | --include \
458 | --includ | --inclu | --incl | --inc)
459 ac_prev=includedir ;;
460 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
461 | --includ=* | --inclu=* | --incl=* | --inc=*)
462 includedir="$ac_optarg" ;;
463
464 -infodir | --infodir | --infodi | --infod | --info | --inf)
465 ac_prev=infodir ;;
466 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
467 infodir="$ac_optarg" ;;
468
469 -libdir | --libdir | --libdi | --libd)
470 ac_prev=libdir ;;
471 -libdir=* | --libdir=* | --libdi=* | --libd=*)
472 libdir="$ac_optarg" ;;
473
474 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
475 | --libexe | --libex | --libe)
476 ac_prev=libexecdir ;;
477 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
478 | --libexe=* | --libex=* | --libe=*)
479 libexecdir="$ac_optarg" ;;
480
481 -localstatedir | --localstatedir | --localstatedi | --localstated \
482 | --localstate | --localstat | --localsta | --localst \
483 | --locals | --local | --loca | --loc | --lo)
484 ac_prev=localstatedir ;;
485 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
486 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
487 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
488 localstatedir="$ac_optarg" ;;
489
490 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
491 ac_prev=mandir ;;
492 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
493 mandir="$ac_optarg" ;;
494
495 -nfp | --nfp | --nf)
496 # Obsolete; use --without-fp.
497 with_fp=no ;;
498
499 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
500 | --no-cr | --no-c)
501 no_create=yes ;;
502
503 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
504 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
505 no_recursion=yes ;;
506
507 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
508 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
509 | --oldin | --oldi | --old | --ol | --o)
510 ac_prev=oldincludedir ;;
511 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
512 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
513 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
514 oldincludedir="$ac_optarg" ;;
515
516 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
517 ac_prev=prefix ;;
518 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
519 prefix="$ac_optarg" ;;
520
521 -program-prefix | --program-prefix | --program-prefi | --program-pref \
522 | --program-pre | --program-pr | --program-p)
523 ac_prev=program_prefix ;;
524 -program-prefix=* | --program-prefix=* | --program-prefi=* \
525 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
526 program_prefix="$ac_optarg" ;;
527
528 -program-suffix | --program-suffix | --program-suffi | --program-suff \
529 | --program-suf | --program-su | --program-s)
530 ac_prev=program_suffix ;;
531 -program-suffix=* | --program-suffix=* | --program-suffi=* \
532 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
533 program_suffix="$ac_optarg" ;;
534
535 -program-transform-name | --program-transform-name \
536 | --program-transform-nam | --program-transform-na \
537 | --program-transform-n | --program-transform- \
538 | --program-transform | --program-transfor \
539 | --program-transfo | --program-transf \
540 | --program-trans | --program-tran \
541 | --progr-tra | --program-tr | --program-t)
542 ac_prev=program_transform_name ;;
543 -program-transform-name=* | --program-transform-name=* \
544 | --program-transform-nam=* | --program-transform-na=* \
545 | --program-transform-n=* | --program-transform-=* \
546 | --program-transform=* | --program-transfor=* \
547 | --program-transfo=* | --program-transf=* \
548 | --program-trans=* | --program-tran=* \
549 | --progr-tra=* | --program-tr=* | --program-t=*)
550 program_transform_name="$ac_optarg" ;;
551
552 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
553 | -silent | --silent | --silen | --sile | --sil)
554 silent=yes ;;
555
556 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
557 ac_prev=sbindir ;;
558 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
559 | --sbi=* | --sb=*)
560 sbindir="$ac_optarg" ;;
561
562 -sharedstatedir | --sharedstatedir | --sharedstatedi \
563 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
564 | --sharedst | --shareds | --shared | --share | --shar \
565 | --sha | --sh)
566 ac_prev=sharedstatedir ;;
567 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
568 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
569 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
570 | --sha=* | --sh=*)
571 sharedstatedir="$ac_optarg" ;;
572
573 -site | --site | --sit)
574 ac_prev=site ;;
575 -site=* | --site=* | --sit=*)
576 site="$ac_optarg" ;;
577
578 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
579 ac_prev=srcdir ;;
580 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
581 srcdir="$ac_optarg" ;;
582
583 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
584 | --syscon | --sysco | --sysc | --sys | --sy)
585 ac_prev=sysconfdir ;;
586 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
587 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
588 sysconfdir="$ac_optarg" ;;
589
590 -target | --target | --targe | --targ | --tar | --ta | --t)
591 ac_prev=target ;;
592 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
593 target="$ac_optarg" ;;
594
595 -v | -verbose | --verbose | --verbos | --verbo | --verb)
596 verbose=yes ;;
597
598 -version | --version | --versio | --versi | --vers)
caa2c79b 599 echo "configure generated by autoconf version 2.13"
10f2d63a
VZ
600 exit 0 ;;
601
602 -with-* | --with-*)
603 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
604 # Reject names that are not valid shell variable names.
605 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
606 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
607 fi
608 ac_package=`echo $ac_package| sed 's/-/_/g'`
609 case "$ac_option" in
610 *=*) ;;
611 *) ac_optarg=yes ;;
612 esac
613 eval "with_${ac_package}='$ac_optarg'" ;;
614
615 -without-* | --without-*)
616 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
617 # Reject names that are not valid shell variable names.
618 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
619 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
620 fi
621 ac_package=`echo $ac_package| sed 's/-/_/g'`
622 eval "with_${ac_package}=no" ;;
623
624 --x)
625 # Obsolete; use --with-x.
626 with_x=yes ;;
627
628 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
629 | --x-incl | --x-inc | --x-in | --x-i)
630 ac_prev=x_includes ;;
631 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
632 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
633 x_includes="$ac_optarg" ;;
634
635 -x-libraries | --x-libraries | --x-librarie | --x-librari \
636 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
637 ac_prev=x_libraries ;;
638 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
639 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
640 x_libraries="$ac_optarg" ;;
641
642 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
643 ;;
644
645 *)
646 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
647 echo "configure: warning: $ac_option: invalid host type" 1>&2
648 fi
649 if test "x$nonopt" != xNONE; then
650 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
651 fi
652 nonopt="$ac_option"
653 ;;
654
655 esac
656done
657
658if test -n "$ac_prev"; then
659 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
660fi
661
662trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
663
664# File descriptor usage:
665# 0 standard input
666# 1 file creation
667# 2 errors and warnings
668# 3 some systems may open it to /dev/tty
669# 4 used on the Kubota Titan
670# 6 checking for... messages and results
671# 5 compiler messages saved in config.log
672if test "$silent" = yes; then
673 exec 6>/dev/null
674else
675 exec 6>&1
676fi
677exec 5>./config.log
678
679echo "\
680This file contains any messages produced by compilers while
681running configure, to aid debugging if configure makes a mistake.
682" 1>&5
683
684# Strip out --no-create and --no-recursion so they do not pile up.
685# Also quote any args containing shell metacharacters.
686ac_configure_args=
687for ac_arg
688do
689 case "$ac_arg" in
690 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
691 | --no-cr | --no-c) ;;
692 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
693 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
694 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
695 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
696 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
697 esac
698done
699
700# NLS nuisances.
701# Only set these to C if already set. These must not be set unconditionally
702# because not all systems understand e.g. LANG=C (notably SCO).
703# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
704# Non-C LC_CTYPE values break the ctype check.
705if test "${LANG+set}" = set; then LANG=C; export LANG; fi
706if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
707if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
708if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
709
710# confdefs.h avoids OS command line length limits that DEFS can exceed.
711rm -rf conftest* confdefs.h
712# AIX cpp loses on an empty file, so make sure it contains at least a newline.
713echo > confdefs.h
714
715# A filename unique to this package, relative to the directory that
716# configure is in, which we can look for to find out if srcdir is correct.
717ac_unique_file=wx-config.in
718
719# Find the source files, if location was not specified.
720if test -z "$srcdir"; then
721 ac_srcdir_defaulted=yes
722 # Try the directory containing this script, then its parent.
723 ac_prog=$0
724 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
725 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
726 srcdir=$ac_confdir
727 if test ! -r $srcdir/$ac_unique_file; then
728 srcdir=..
729 fi
730else
731 ac_srcdir_defaulted=no
732fi
733if test ! -r $srcdir/$ac_unique_file; then
734 if test "$ac_srcdir_defaulted" = yes; then
735 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
736 else
737 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
738 fi
739fi
740srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
741
742# Prefer explicitly selected file to automatically selected ones.
743if test -z "$CONFIG_SITE"; then
744 if test "x$prefix" != xNONE; then
745 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
746 else
747 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
748 fi
749fi
750for ac_site_file in $CONFIG_SITE; do
751 if test -r "$ac_site_file"; then
752 echo "loading site script $ac_site_file"
753 . "$ac_site_file"
754 fi
755done
756
757if test -r "$cache_file"; then
758 echo "loading cache $cache_file"
759 . $cache_file
760else
761 echo "creating cache $cache_file"
762 > $cache_file
763fi
764
765ac_ext=c
766# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
767ac_cpp='$CPP $CPPFLAGS'
768ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
769ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
770cross_compiling=$ac_cv_prog_cc_cross
771
772ac_exeext=
773ac_objext=o
774if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
775 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
776 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
777 ac_n= ac_c='
778' ac_t=' '
779 else
780 ac_n=-n ac_c= ac_t=
781 fi
782else
783 ac_n= ac_c='\c' ac_t=
784fi
785
786
787
788ac_aux_dir=
789for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
790 if test -f $ac_dir/install-sh; then
791 ac_aux_dir=$ac_dir
792 ac_install_sh="$ac_aux_dir/install-sh -c"
793 break
794 elif test -f $ac_dir/install.sh; then
795 ac_aux_dir=$ac_dir
796 ac_install_sh="$ac_aux_dir/install.sh -c"
797 break
798 fi
799done
800if test -z "$ac_aux_dir"; then
801 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
802fi
803ac_config_guess=$ac_aux_dir/config.guess
804ac_config_sub=$ac_aux_dir/config.sub
805ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
806
807
808# Do some error checking and defaulting for the host and target type.
809# The inputs are:
810# configure --host=HOST --target=TARGET --build=BUILD NONOPT
811#
812# The rules are:
813# 1. You are not allowed to specify --host, --target, and nonopt at the
814# same time.
815# 2. Host defaults to nonopt.
816# 3. If nonopt is not specified, then host defaults to the current host,
817# as determined by config.guess.
818# 4. Target and build default to nonopt.
819# 5. If nonopt is not specified, then target and build default to host.
820
821# The aliases save the names the user supplied, while $host etc.
822# will get canonicalized.
823case $host---$target---$nonopt in
824NONE---*---* | *---NONE---* | *---*---NONE) ;;
825*) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
826esac
827
828
829# Make sure we can run config.sub.
830if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
831else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
832fi
833
834echo $ac_n "checking host system type""... $ac_c" 1>&6
e07802fc 835echo "configure:836: checking host system type" >&5
10f2d63a
VZ
836
837host_alias=$host
838case "$host_alias" in
839NONE)
840 case $nonopt in
841 NONE)
842 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
843 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
844 fi ;;
845 *) host_alias=$nonopt ;;
846 esac ;;
847esac
848
849host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
850host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
851host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
852host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
853echo "$ac_t""$host" 1>&6
854
855echo $ac_n "checking target system type""... $ac_c" 1>&6
e07802fc 856echo "configure:857: checking target system type" >&5
10f2d63a
VZ
857
858target_alias=$target
859case "$target_alias" in
860NONE)
861 case $nonopt in
862 NONE) target_alias=$host_alias ;;
863 *) target_alias=$nonopt ;;
864 esac ;;
865esac
866
867target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
868target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
869target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
870target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
871echo "$ac_t""$target" 1>&6
872
873echo $ac_n "checking build system type""... $ac_c" 1>&6
e07802fc 874echo "configure:875: checking build system type" >&5
10f2d63a
VZ
875
876build_alias=$build
877case "$build_alias" in
878NONE)
879 case $nonopt in
880 NONE) build_alias=$host_alias ;;
881 *) build_alias=$nonopt ;;
882 esac ;;
883esac
884
885build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
886build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
887build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
888build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
889echo "$ac_t""$build" 1>&6
890
891test "$host_alias" != "$target_alias" &&
892 test "$program_prefix$program_suffix$program_transform_name" = \
893 NONENONEs,x,x, &&
894 program_prefix=${target_alias}-
895
896
897
898WX_MAJOR_VERSION_NUMBER=2
899WX_MINOR_VERSION_NUMBER=1
ba0e7d41 900WX_RELEASE_NUMBER=12
10f2d63a
VZ
901
902WX_INTERFACE_AGE=0
903WX_BINARY_AGE=0
904
905WX_VERSION=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER.$WX_RELEASE_NUMBER
906
907WX_RELEASE=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER
908WX_CURRENT=`expr $WX_RELEASE_NUMBER - $WX_INTERFACE_AGE`
909WX_REVISION=$WX_INTERFACE_AGE
910WX_AGE=`expr $WX_BINARY_AGE - $WX_INTERFACE_AGE`
911
912
913USE_UNIX=1
914USE_WIN32=0
b12915c1
VZ
915USE_BEOS=0
916
10f2d63a
VZ
917USE_LINUX=
918USE_SGI=
919USE_HPUX=
920USE_SYSV=
921USE_SVR4=
922USE_AIX=
923USE_SUN=
924USE_SOLARIS=
925USE_SUNOS=
926USE_ALPHA=
927USE_OSF=
928USE_BSD=
929USE_FREEBSD=
930USE_VMS=
931USE_ULTRIX=
932USE_CYGWIN=
933USE_MINGW=
934USE_DATA_GENERAL=
935
ab9b9eab
VZ
936NEEDS_D_REENTRANT_FOR_R_FUNCS=0
937
e07802fc 938ALL_TOOLKITS="CYGWIN GTK MINGW MOTIF WINE PM"
10f2d63a
VZ
939
940DEFAULT_wxUSE_GTK=0
941DEFAULT_wxUSE_MOTIF=0
942DEFAULT_wxUSE_MSW=0
943DEFAULT_wxUSE_WINE=0
e07802fc 944DEFAULT_wxUSE_PM=0
10f2d63a
VZ
945
946DEFAULT_DEFAULT_wxUSE_GTK=0
947DEFAULT_DEFAULT_wxUSE_MOTIF=0
948DEFAULT_DEFAULT_wxUSE_MSW=0
949DEFAULT_DEFAULT_wxUSE_WINE=0
e07802fc 950DEFAULT_DEFAULT_wxUSE_PM=0
10f2d63a
VZ
951
952case "${host}" in
953 *-hp-hpux* )
954 USE_HPUX=1
955 DEFAULT_DEFAULT_wxUSE_MOTIF=1
ab9b9eab 956 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
10f2d63a
VZ
957 cat >> confdefs.h <<\EOF
958#define __HPUX__ 1
959EOF
960
961 ;;
962 *-*-linux* )
963 USE_LINUX=1
964 cat >> confdefs.h <<\EOF
965#define __LINUX__ 1
966EOF
967
968 TMP=`uname -m`
969 if test "x$TMP" = "xalpha"; then
970 USE_ALPHA=1
971 cat >> confdefs.h <<\EOF
972#define __ALPHA__ 1
973EOF
974
975 fi
976 DEFAULT_DEFAULT_wxUSE_GTK=1
977 ;;
978 *-*-irix5* | *-*-irix6* )
979 USE_SGI=1
980 USE_SVR4=1
981 cat >> confdefs.h <<\EOF
982#define __SGI__ 1
983EOF
984
985 cat >> confdefs.h <<\EOF
986#define __SVR4__ 1
987EOF
988
989 DEFAULT_DEFAULT_wxUSE_MOTIF=1
990 ;;
991 *-*-solaris2* )
992 USE_SUN=1
993 USE_SOLARIS=1
994 USE_SVR4=1
995 cat >> confdefs.h <<\EOF
996#define __SUN__ 1
997EOF
998
999 cat >> confdefs.h <<\EOF
1000#define __SOLARIS__ 1
1001EOF
1002
1003 cat >> confdefs.h <<\EOF
1004#define __SVR4__ 1
1005EOF
1006
1007 DEFAULT_DEFAULT_wxUSE_MOTIF=1
ab9b9eab 1008 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
10f2d63a
VZ
1009 ;;
1010 *-*-sunos4* )
1011 USE_SUN=1
1012 USE_SUNOS=1
1013 USE_BSD=1
1014 cat >> confdefs.h <<\EOF
1015#define __SUN__ 1
1016EOF
1017
1018 cat >> confdefs.h <<\EOF
1019#define __SUNOS__ 1
1020EOF
1021
1022 cat >> confdefs.h <<\EOF
1023#define __BSD__ 1
1024EOF
1025
1026 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1027 ;;
1028 *-*-freebsd* | *-*-netbsd*)
1029 USE_BSD=1
1030 USE_FREEBSD=1
1031 cat >> confdefs.h <<\EOF
1032#define __FREEBSD__ 1
1033EOF
1034
1035 cat >> confdefs.h <<\EOF
1036#define __BSD__ 1
1037EOF
1038
1039 DEFAULT_DEFAULT_wxUSE_GTK=1
1040 ;;
1041 *-*-osf* )
1042 USE_ALPHA=1
1043 USE_OSF=1
1044 cat >> confdefs.h <<\EOF
1045#define __ALPHA__ 1
1046EOF
1047
1048 cat >> confdefs.h <<\EOF
1049#define __OSF__ 1
1050EOF
1051
1052 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1053 ;;
1054 *-*-dgux5* )
1055 USE_ALPHA=1
1056 USE_SVR4=1
1057 cat >> confdefs.h <<\EOF
1058#define __ALPHA__ 1
1059EOF
1060
1061 cat >> confdefs.h <<\EOF
1062#define __SVR4__ 1
1063EOF
1064
1065 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1066 ;;
1067 *-*-sysv5* )
1068 USE_SYSV=1
1069 USE_SVR4=1
1070 cat >> confdefs.h <<\EOF
1071#define __SYSV__ 1
1072EOF
1073
1074 cat >> confdefs.h <<\EOF
1075#define __SVR4__ 1
1076EOF
1077
1078 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1079 ;;
1080 *-*-aix* )
1081 USE_AIX=1
1082 USE_SYSV=1
1083 USE_SVR4=1
1084 cat >> confdefs.h <<\EOF
1085#define __AIX__ 1
1086EOF
1087
1088 cat >> confdefs.h <<\EOF
1089#define __SYSV__ 1
1090EOF
1091
1092 cat >> confdefs.h <<\EOF
1093#define __SVR4__ 1
1094EOF
1095
1096 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1097 ;;
1098
7eef8db2 1099 *-*-cygwin32* | *-*-mingw32* )
10f2d63a
VZ
1100 USE_UNIX=0
1101 USE_WIN32=1
1102 cat >> confdefs.h <<\EOF
1103#define __WIN32__ 1
1104EOF
1105
1106 cat >> confdefs.h <<\EOF
1107#define __WIN95__ 1
1108EOF
1109
1110 cat >> confdefs.h <<\EOF
1111#define __WINDOWS__ 1
1112EOF
1113
1114 cat >> confdefs.h <<\EOF
1115#define __GNUWIN32__ 1
1116EOF
1117
1118 cat >> confdefs.h <<\EOF
1119#define STRICT 1
1120EOF
1121
1122 cat >> confdefs.h <<\EOF
1123#define WINVER 0x0400
1124EOF
1125
1126 DEFAULT_DEFAULT_wxUSE_MSW=1
1127 ;;
1128
1129 *-pc-os2_emx )
1130 cat >> confdefs.h <<\EOF
1131#define __EMX__ 1
1132EOF
1133
e07802fc 1134 DEFAULT_DEFAULT_wxUSE_PM=1
10f2d63a
VZ
1135 ;;
1136
b12915c1
VZ
1137 *-*-beos* )
1138 USE_BEOS=1
1139 cat >> confdefs.h <<\EOF
1140#define __BEOS__ 1
1141EOF
1142
1143 ;;
1144
10f2d63a
VZ
1145 *)
1146 { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; }
1147esac
1148
1149if test "$USE_UNIX" = 1 ; then
b12915c1
VZ
1150 wxUSE_UNIX=yes
1151 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1152#define __UNIX__ 1
1153EOF
1154
b12915c1
VZ
1155
1156 SRC_SUBDIRS="$SRC_SUBDIRS unix"
1157 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS unix"
1158fi
1159
1160if test "$USE_BEOS" = 1; then
1161 SRC_SUBDIRS="$SRC_SUBDIRS be"
1162 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS be"
10f2d63a
VZ
1163fi
1164
1165if test "$USE_LINUX" = 1; then
1166 echo $ac_n "checking for gettext in -lc""... $ac_c" 1>&6
e07802fc 1167echo "configure:1168: checking for gettext in -lc" >&5
10f2d63a
VZ
1168ac_lib_var=`echo c'_'gettext | sed 'y%./+-%__p_%'`
1169if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1170 echo $ac_n "(cached) $ac_c" 1>&6
1171else
1172 ac_save_LIBS="$LIBS"
1173LIBS="-lc $LIBS"
1174cat > conftest.$ac_ext <<EOF
e07802fc 1175#line 1176 "configure"
10f2d63a
VZ
1176#include "confdefs.h"
1177/* Override any gcc2 internal prototype to avoid an error. */
1178/* We use char because int might match the return type of a gcc2
1179 builtin and then its argument prototype would still apply. */
1180char gettext();
1181
1182int main() {
1183gettext()
1184; return 0; }
1185EOF
e07802fc 1186if { (eval echo configure:1187: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
1187 rm -rf conftest*
1188 eval "ac_cv_lib_$ac_lib_var=yes"
1189else
1190 echo "configure: failed program was:" >&5
1191 cat conftest.$ac_ext >&5
1192 rm -rf conftest*
1193 eval "ac_cv_lib_$ac_lib_var=no"
1194fi
1195rm -f conftest*
1196LIBS="$ac_save_LIBS"
1197
1198fi
1199if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1200 echo "$ac_t""yes" 1>&6
1201 cat >> confdefs.h <<\EOF
1202#define wxHAVE_GLIBC2 1
1203EOF
1204
1205else
1206 echo "$ac_t""no" 1>&6
1207fi
1208
1209fi
1210
1211
1212
1213
1214 wx_arg_cache_file="configarg.cache"
1215 echo "loading argument cache $wx_arg_cache_file"
1216 rm -f ${wx_arg_cache_file}.tmp
1217 touch ${wx_arg_cache_file}.tmp
1218 touch ${wx_arg_cache_file}
1219
1220
1221DEBUG_CONFIGURE=0
1222if test $DEBUG_CONFIGURE = 1; then
1223 DEFAULT_wxUSE_THREADS=yes
1224
1225 DEFAULT_wxUSE_SHARED=yes
1226 DEFAULT_wxUSE_OPTIMISE=yes
1227 DEFAULT_wxUSE_PROFILE=no
1228 DEFAULT_wxUSE_NO_DEPS=no
1229 DEFAULT_wxUSE_NO_RTTI=no
1230 DEFAULT_wxUSE_NO_EXCEPTIONS=no
1231 DEFAULT_wxUSE_PERMISSIVE=no
1232 DEFAULT_wxUSE_DEBUG_FLAG=yes
1233 DEFAULT_wxUSE_DEBUG_INFO=yes
1234 DEFAULT_wxUSE_DEBUG_GDB=yes
1235 DEFAULT_wxUSE_MEM_TRACING=no
1236 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1237 DEFAULT_wxUSE_DMALLOC=no
1238 DEFAULT_wxUSE_APPLE_IEEE=no
1239
1240 DEFAULT_wxUSE_LOG=yes
1241
1242 DEFAULT_wxUSE_GUI=yes
1243
1244 DEFAULT_wxUSE_ZLIB=no
1245 DEFAULT_wxUSE_LIBPNG=no
1246 DEFAULT_wxUSE_LIBJPEG=no
c7a2bf27 1247 DEFAULT_wxUSE_LIBTIFF=no
10f2d63a
VZ
1248 DEFAULT_wxUSE_ODBC=no
1249
1250 DEFAULT_wxUSE_STD_IOSTREAM=no
1251 DEFAULT_wxUSE_FILE=no
1252 DEFAULT_wxUSE_TEXTFILE=no
1253 DEFAULT_wxUSE_TIMEDATE=no
1254 DEFAULT_wxUSE_WAVE=no
1255 DEFAULT_wxUSE_INTL=no
1256 DEFAULT_wxUSE_CONFIG=no
1257 DEFAULT_wxUSE_STREAMS=no
1258 DEFAULT_wxUSE_SOCKETS=no
1259 DEFAULT_wxUSE_DIALUP_MANAGER=no
1260 DEFAULT_wxUSE_SERIAL=no
1261 DEFAULT_wxUSE_JOYSTICK=no
1262 DEFAULT_wxUSE_DYNLIB_CLASS=no
1263 DEFAULT_wxUSE_LONGLONG=no
1264
1265 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
1266 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
1267 DEFAULT_wxUSE_POSTSCRIPT=no
1268
1269 DEFAULT_wxUSE_X_RESOURCES=no
1270 DEFAULT_wxUSE_CLIPBOARD=no
1271 DEFAULT_wxUSE_TOOLTIPS=no
1272 DEFAULT_wxUSE_DRAG_AND_DROP=no
1273 DEFAULT_wxUSE_SPLINES=no
1274
1275 DEFAULT_wxUSE_MDI_ARCHITECTURE=no
1276 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
1277 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
1278
1279 DEFAULT_wxUSE_PROLOGIO=no
1280 DEFAULT_wxUSE_RESOURCES=no
1281 DEFAULT_wxUSE_CONSTRAINTS=no
1282 DEFAULT_wxUSE_IPC=no
1283 DEFAULT_wxUSE_HELP=no
1284 DEFAULT_wxUSE_WXTREE=no
1285 DEFAULT_wxUSE_METAFILE=no
1286
1287 DEFAULT_wxUSE_COMMONDLGS=no
1288 DEFAULT_wxUSE_DIRDLG=no
1289 DEFAULT_wxUSE_TEXTDLG=no
1290 DEFAULT_wxUSE_STARTUP_TIPS=no
1291 DEFAULT_wxUSE_PROGRESSDLG=no
1292 DEFAULT_wxUSE_MINIFRAME=no
1293 DEFAULT_wxUSE_HTML=no
1294 DEFAULT_wxUSE_FS_INET=no
1295 DEFAULT_wxUSE_FS_ZIP=no
1296 DEFAULT_wxUSE_BUSYINFO=no
1297 DEFAULT_wxUSE_ZIPSTREAM=no
1298 DEFAULT_wxUSE_VALIDATORS=yes
1299
1300 DEFAULT_wxUSE_ACCEL=no
1301 DEFAULT_wxUSE_CARET=no
1302 DEFAULT_wxUSE_BMPBUTTON=no
1303 DEFAULT_wxUSE_CHECKBOX=no
1304 DEFAULT_wxUSE_CHECKLST=no
1305 DEFAULT_wxUSE_CHOICE=yes
1306 DEFAULT_wxUSE_COMBOBOX=no
1307 DEFAULT_wxUSE_GAUGE=no
1308 DEFAULT_wxUSE_GRID=no
1309 DEFAULT_wxUSE_NEW_GRID=no
1310 DEFAULT_wxUSE_IMAGLIST=no
1311 DEFAULT_wxUSE_LISTBOX=no
1312 DEFAULT_wxUSE_LISTCTRL=no
1313 DEFAULT_wxUSE_NOTEBOOK=no
1314 DEFAULT_wxUSE_RADIOBOX=no
1315 DEFAULT_wxUSE_RADIOBTN=no
1316 DEFAULT_wxUSE_SASH=no
1317 DEFAULT_wxUSE_SCROLLBAR=no
1318 DEFAULT_wxUSE_SLIDER=no
1319 DEFAULT_wxUSE_SPINBTN=no
56cfaa52 1320 DEFAULT_wxUSE_SPINCTRL=no
10f2d63a
VZ
1321 DEFAULT_wxUSE_SPLITTER=no
1322 DEFAULT_wxUSE_STATBMP=no
1323 DEFAULT_wxUSE_STATBOX=no
1324 DEFAULT_wxUSE_STATLINE=no
1325 DEFAULT_wxUSE_STATUSBAR=yes
1326 DEFAULT_wxUSE_TABDIALOG=no
1327 DEFAULT_wxUSE_TOOLBAR=no
360d6699
VZ
1328 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
1329 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
10f2d63a
VZ
1330 DEFAULT_wxUSE_TREECTRL=no
1331
1332 DEFAULT_wxUSE_UNICODE=no
1333 DEFAULT_wxUSE_WCSRTOMBS=no
1334
1335 DEFAULT_wxUSE_GIF=no
1336 DEFAULT_wxUSE_PCX=no
1337 DEFAULT_wxUSE_PNM=no
1338else
1339 DEFAULT_wxUSE_THREADS=yes
1340
1341 DEFAULT_wxUSE_SHARED=yes
1342 DEFAULT_wxUSE_OPTIMISE=yes
1343 DEFAULT_wxUSE_PROFILE=no
1344 DEFAULT_wxUSE_NO_DEPS=no
1345 DEFAULT_wxUSE_NO_RTTI=no
1346 DEFAULT_wxUSE_NO_EXCEPTIONS=no
1347 DEFAULT_wxUSE_PERMISSIVE=no
1348 DEFAULT_wxUSE_DEBUG_FLAG=no
1349 DEFAULT_wxUSE_DEBUG_INFO=no
1350 DEFAULT_wxUSE_DEBUG_GDB=no
1351 DEFAULT_wxUSE_MEM_TRACING=no
1352 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1353 DEFAULT_wxUSE_DMALLOC=no
1354 DEFAULT_wxUSE_APPLE_IEEE=yes
1355
1356 DEFAULT_wxUSE_LOG=yes
1357
1358 DEFAULT_wxUSE_GUI=yes
1359
1360 DEFAULT_wxUSE_ZLIB=yes
1361 DEFAULT_wxUSE_LIBPNG=yes
1362 DEFAULT_wxUSE_LIBJPEG=yes
b47c832e 1363 DEFAULT_wxUSE_LIBTIFF=yes
10f2d63a
VZ
1364 DEFAULT_wxUSE_ODBC=yes
1365
1366 DEFAULT_wxUSE_STD_IOSTREAM=no
1367 DEFAULT_wxUSE_FILE=yes
1368 DEFAULT_wxUSE_TEXTFILE=yes
1369 DEFAULT_wxUSE_TIMEDATE=yes
1370 DEFAULT_wxUSE_WAVE=no
1371 DEFAULT_wxUSE_INTL=yes
1372 DEFAULT_wxUSE_CONFIG=yes
1373 DEFAULT_wxUSE_STREAMS=yes
1374 DEFAULT_wxUSE_SOCKETS=yes
1375 DEFAULT_wxUSE_DIALUP_MANAGER=yes
1376 DEFAULT_wxUSE_SERIAL=yes
1377 DEFAULT_wxUSE_JOYSTICK=yes
1378 DEFAULT_wxUSE_DYNLIB_CLASS=yes
b685cd9b 1379 DEFAULT_wxUSE_LONGLONG=yes
10f2d63a
VZ
1380
1381 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
1382 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
1383 DEFAULT_wxUSE_POSTSCRIPT=yes
1384
1385 DEFAULT_wxUSE_X_RESOURCES=no
1386 DEFAULT_wxUSE_CLIPBOARD=yes
1387 DEFAULT_wxUSE_TOOLTIPS=yes
1388 DEFAULT_wxUSE_DRAG_AND_DROP=yes
1389 DEFAULT_wxUSE_SPLINES=yes
1390
1391 DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
1392 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
1393 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
1394
1395 DEFAULT_wxUSE_PROLOGIO=yes
1396 DEFAULT_wxUSE_RESOURCES=yes
1397 DEFAULT_wxUSE_CONSTRAINTS=yes
1398 DEFAULT_wxUSE_IPC=yes
1399 DEFAULT_wxUSE_HELP=yes
1400 DEFAULT_wxUSE_WXTREE=yes
1401 DEFAULT_wxUSE_METAFILE=yes
1402
1403 DEFAULT_wxUSE_COMMONDLGS=yes
1404 DEFAULT_wxUSE_DIRDLG=yes
1405 DEFAULT_wxUSE_TEXTDLG=yes
1406 DEFAULT_wxUSE_STARTUP_TIPS=yes
1407 DEFAULT_wxUSE_PROGRESSDLG=yes
1408 DEFAULT_wxUSE_MINIFRAME=yes
1409 DEFAULT_wxUSE_HTML=yes
1410 DEFAULT_wxUSE_FS_INET=yes
1411 DEFAULT_wxUSE_FS_ZIP=yes
1412 DEFAULT_wxUSE_BUSYINFO=yes
1413 DEFAULT_wxUSE_ZIPSTREAM=yes
1414 DEFAULT_wxUSE_VALIDATORS=yes
1415
1416 DEFAULT_wxUSE_ACCEL=yes
1417 DEFAULT_wxUSE_CARET=yes
1418 DEFAULT_wxUSE_BMPBUTTON=yes
1419 DEFAULT_wxUSE_CHECKBOX=yes
1420 DEFAULT_wxUSE_CHECKLST=yes
1421 DEFAULT_wxUSE_CHOICE=yes
1422 DEFAULT_wxUSE_COMBOBOX=yes
1423 DEFAULT_wxUSE_GAUGE=yes
1424 DEFAULT_wxUSE_GRID=yes
fc9c7c09 1425 DEFAULT_wxUSE_NEW_GRID=no
10f2d63a
VZ
1426 DEFAULT_wxUSE_IMAGLIST=yes
1427 DEFAULT_wxUSE_LISTBOX=yes
1428 DEFAULT_wxUSE_LISTCTRL=yes
1429 DEFAULT_wxUSE_NOTEBOOK=yes
1430 DEFAULT_wxUSE_RADIOBOX=yes
1431 DEFAULT_wxUSE_RADIOBTN=yes
1432 DEFAULT_wxUSE_SASH=yes
1433 DEFAULT_wxUSE_SCROLLBAR=yes
1434 DEFAULT_wxUSE_SLIDER=yes
1435 DEFAULT_wxUSE_SPINBTN=yes
56cfaa52 1436 DEFAULT_wxUSE_SPINCTRL=yes
10f2d63a
VZ
1437 DEFAULT_wxUSE_SPLITTER=yes
1438 DEFAULT_wxUSE_STATBMP=yes
1439 DEFAULT_wxUSE_STATBOX=yes
1440 DEFAULT_wxUSE_STATLINE=yes
1441 DEFAULT_wxUSE_STATUSBAR=yes
1442 DEFAULT_wxUSE_TABDIALOG=no
1443 DEFAULT_wxUSE_TOOLBAR=yes
360d6699
VZ
1444 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
1445 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
10f2d63a
VZ
1446 DEFAULT_wxUSE_TREECTRL=yes
1447
1448 DEFAULT_wxUSE_UNICODE=no
1449 DEFAULT_wxUSE_WCSRTOMBS=no
1450
1451 DEFAULT_wxUSE_GIF=yes
1452 DEFAULT_wxUSE_PCX=yes
1453 DEFAULT_wxUSE_PNM=yes
1454fi
1455
1456
1457
1458for toolkit in `echo $ALL_TOOLKITS`; do
1459 LINE=`grep "wxUSE_$toolkit" ${wx_arg_cache_file}`
1460 if test "x$LINE" != x ; then
1461 has_toolkit_in_cache=1
1462 eval "DEFAULT_$LINE"
1463 eval "CACHE_$toolkit=1"
1464 fi
1465done
1466
1467
1468
1469 echo $ac_n "checking "for --enable-gui"""... $ac_c" 1>&6
e07802fc 1470echo "configure:1471: checking "for --enable-gui"" >&5
10f2d63a
VZ
1471 no_cache=0
1472 # Check whether --enable-gui or --disable-gui was given.
1473if test "${enable_gui+set}" = set; then
1474 enableval="$enable_gui"
1475
1476 if test "$enableval" = yes; then
1477 ac_cv_use_gui='wxUSE_GUI=yes'
1478 else
1479 ac_cv_use_gui='wxUSE_GUI=no'
1480 fi
1481
1482else
1483
1484 LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
1485 if test "x$LINE" != x ; then
1486 eval "DEFAULT_$LINE"
1487 else
1488 no_cache=1
1489 fi
1490
1491 ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
1492
1493fi
1494
1495
1496 eval "$ac_cv_use_gui"
1497 if test "$no_cache" != 1; then
1498 echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
1499 fi
1500
1501 if test "$wxUSE_GUI" = yes; then
1502 echo "$ac_t""yes" 1>&6
1503 else
1504 echo "$ac_t""no" 1>&6
1505 fi
1506
1507
b12915c1 1508if test "$wxUSE_GUI" = "yes"; then
10f2d63a
VZ
1509
1510# Check whether --with-gtk or --without-gtk was given.
1511if test "${with_gtk+set}" = set; then
1512 withval="$with_gtk"
1513 wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
1514fi
1515
1516# Check whether --with-motif or --without-motif was given.
1517if test "${with_motif+set}" = set; then
1518 withval="$with_motif"
1519 wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
1520fi
1521
1522# Check whether --with-wine or --without-wine was given.
1523if test "${with_wine+set}" = set; then
1524 withval="$with_wine"
1525 wxUSE_WINE="$withval" CACHE_WINE=1 TOOLKIT_GIVEN=1
1526fi
1527
1528# Check whether --with-cygwin or --without-cygwin was given.
1529if test "${with_cygwin+set}" = set; then
1530 withval="$with_cygwin"
1531 wxUSE_CYGWIN="$withval" CACHE_CYGWIN=1 TOOLKIT_GIVEN=1
1532fi
1533
1534# Check whether --with-mingw or --without-mingw was given.
1535if test "${with_mingw+set}" = set; then
1536 withval="$with_mingw"
1537 wxUSE_MINGW="$withval" CACHE_MINGW=1 TOOLKIT_GIVEN=1
1538fi
1539
e07802fc
VZ
1540# Check whether --with-pm or --without-pm was given.
1541if test "${with_pm+set}" = set; then
1542 withval="$with_pm"
1543 wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
1544fi
1545
10f2d63a
VZ
1546
1547# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
1548if test "${with_gtk_prefix+set}" = set; then
1549 withval="$with_gtk_prefix"
1550 gtk_config_prefix="$withval"
1551else
1552 gtk_config_prefix=""
1553fi
1554
1555# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
1556if test "${with_gtk_exec_prefix+set}" = set; then
1557 withval="$with_gtk_exec_prefix"
1558 gtk_config_exec_prefix="$withval"
1559else
1560 gtk_config_exec_prefix=""
1561fi
1562
1563
1564
b12915c1 1565 echo $ac_n "checking "for --with-libpng"""... $ac_c" 1>&6
e07802fc 1566echo "configure:1567: checking "for --with-libpng"" >&5
10f2d63a 1567 no_cache=0
b12915c1
VZ
1568 # Check whether --with-libpng or --without-libpng was given.
1569if test "${with_libpng+set}" = set; then
1570 withval="$with_libpng"
10f2d63a
VZ
1571
1572 if test "$withval" = yes; then
b12915c1 1573 ac_cv_use_libpng='wxUSE_LIBPNG=yes'
10f2d63a 1574 else
b12915c1 1575 ac_cv_use_libpng='wxUSE_LIBPNG=no'
10f2d63a
VZ
1576 fi
1577
1578else
1579
b12915c1 1580 LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
10f2d63a
VZ
1581 if test "x$LINE" != x ; then
1582 eval "DEFAULT_$LINE"
1583 else
1584 no_cache=1
1585 fi
1586
b12915c1 1587 ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
10f2d63a
VZ
1588
1589fi
1590
1591
b12915c1 1592 eval "$ac_cv_use_libpng"
10f2d63a 1593 if test "$no_cache" != 1; then
b12915c1 1594 echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
1595 fi
1596
b12915c1 1597 if test "$wxUSE_LIBPNG" = yes; then
10f2d63a
VZ
1598 echo "$ac_t""yes" 1>&6
1599 else
1600 echo "$ac_t""no" 1>&6
1601 fi
1602
1603
b12915c1 1604 echo $ac_n "checking "for --with-libjpeg"""... $ac_c" 1>&6
e07802fc 1605echo "configure:1606: checking "for --with-libjpeg"" >&5
10f2d63a 1606 no_cache=0
b12915c1
VZ
1607 # Check whether --with-libjpeg or --without-libjpeg was given.
1608if test "${with_libjpeg+set}" = set; then
1609 withval="$with_libjpeg"
10f2d63a
VZ
1610
1611 if test "$withval" = yes; then
b12915c1 1612 ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
10f2d63a 1613 else
b12915c1 1614 ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
10f2d63a
VZ
1615 fi
1616
1617else
1618
b12915c1 1619 LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
10f2d63a
VZ
1620 if test "x$LINE" != x ; then
1621 eval "DEFAULT_$LINE"
1622 else
1623 no_cache=1
1624 fi
1625
b12915c1 1626 ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
10f2d63a
VZ
1627
1628fi
1629
1630
b12915c1 1631 eval "$ac_cv_use_libjpeg"
10f2d63a 1632 if test "$no_cache" != 1; then
b12915c1 1633 echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
1634 fi
1635
b12915c1 1636 if test "$wxUSE_LIBJPEG" = yes; then
10f2d63a
VZ
1637 echo "$ac_t""yes" 1>&6
1638 else
1639 echo "$ac_t""no" 1>&6
1640 fi
1641
1642
b12915c1 1643 echo $ac_n "checking "for --with-libtiff"""... $ac_c" 1>&6
e07802fc 1644echo "configure:1645: checking "for --with-libtiff"" >&5
10f2d63a 1645 no_cache=0
b12915c1
VZ
1646 # Check whether --with-libtiff or --without-libtiff was given.
1647if test "${with_libtiff+set}" = set; then
1648 withval="$with_libtiff"
10f2d63a
VZ
1649
1650 if test "$withval" = yes; then
b12915c1 1651 ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
10f2d63a 1652 else
b12915c1 1653 ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
10f2d63a
VZ
1654 fi
1655
1656else
1657
b12915c1 1658 LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
10f2d63a
VZ
1659 if test "x$LINE" != x ; then
1660 eval "DEFAULT_$LINE"
1661 else
1662 no_cache=1
1663 fi
1664
b12915c1 1665 ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
10f2d63a
VZ
1666
1667fi
1668
1669
b12915c1 1670 eval "$ac_cv_use_libtiff"
10f2d63a 1671 if test "$no_cache" != 1; then
b12915c1 1672 echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
1673 fi
1674
b12915c1 1675 if test "$wxUSE_LIBTIFF" = yes; then
10f2d63a
VZ
1676 echo "$ac_t""yes" 1>&6
1677 else
1678 echo "$ac_t""no" 1>&6
1679 fi
1680
1681
b12915c1 1682 echo $ac_n "checking "for --with-opengl"""... $ac_c" 1>&6
e07802fc 1683echo "configure:1684: checking "for --with-opengl"" >&5
10f2d63a 1684 no_cache=0
b12915c1
VZ
1685 # Check whether --with-opengl or --without-opengl was given.
1686if test "${with_opengl+set}" = set; then
1687 withval="$with_opengl"
10f2d63a
VZ
1688
1689 if test "$withval" = yes; then
b12915c1 1690 ac_cv_use_opengl='wxUSE_OPENGL=yes'
10f2d63a 1691 else
b12915c1 1692 ac_cv_use_opengl='wxUSE_OPENGL=no'
10f2d63a
VZ
1693 fi
1694
1695else
1696
b12915c1 1697 LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
10f2d63a
VZ
1698 if test "x$LINE" != x ; then
1699 eval "DEFAULT_$LINE"
1700 else
1701 no_cache=1
1702 fi
1703
b12915c1 1704 ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
10f2d63a
VZ
1705
1706fi
1707
1708
b12915c1 1709 eval "$ac_cv_use_opengl"
10f2d63a 1710 if test "$no_cache" != 1; then
b12915c1 1711 echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
1712 fi
1713
b12915c1 1714 if test "$wxUSE_OPENGL" = yes; then
10f2d63a
VZ
1715 echo "$ac_t""yes" 1>&6
1716 else
1717 echo "$ac_t""no" 1>&6
1718 fi
1719
1720
b12915c1
VZ
1721fi
1722
1723
1724 echo $ac_n "checking "for --with-dmalloc"""... $ac_c" 1>&6
e07802fc 1725echo "configure:1726: checking "for --with-dmalloc"" >&5
c7a2bf27 1726 no_cache=0
b12915c1
VZ
1727 # Check whether --with-dmalloc or --without-dmalloc was given.
1728if test "${with_dmalloc+set}" = set; then
1729 withval="$with_dmalloc"
c7a2bf27
RR
1730
1731 if test "$withval" = yes; then
b12915c1 1732 ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
c7a2bf27 1733 else
b12915c1 1734 ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
c7a2bf27
RR
1735 fi
1736
1737else
1738
b12915c1 1739 LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
c7a2bf27
RR
1740 if test "x$LINE" != x ; then
1741 eval "DEFAULT_$LINE"
1742 else
1743 no_cache=1
1744 fi
1745
b12915c1 1746 ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
c7a2bf27
RR
1747
1748fi
1749
1750
b12915c1 1751 eval "$ac_cv_use_dmalloc"
c7a2bf27 1752 if test "$no_cache" != 1; then
b12915c1 1753 echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
c7a2bf27
RR
1754 fi
1755
b12915c1 1756 if test "$wxUSE_DMALLOC" = yes; then
c7a2bf27
RR
1757 echo "$ac_t""yes" 1>&6
1758 else
1759 echo "$ac_t""no" 1>&6
1760 fi
1761
1762
b12915c1 1763 echo $ac_n "checking "for --with-zlib"""... $ac_c" 1>&6
e07802fc 1764echo "configure:1765: checking "for --with-zlib"" >&5
10f2d63a 1765 no_cache=0
b12915c1
VZ
1766 # Check whether --with-zlib or --without-zlib was given.
1767if test "${with_zlib+set}" = set; then
1768 withval="$with_zlib"
10f2d63a
VZ
1769
1770 if test "$withval" = yes; then
b12915c1 1771 ac_cv_use_zlib='wxUSE_ZLIB=yes'
10f2d63a 1772 else
b12915c1 1773 ac_cv_use_zlib='wxUSE_ZLIB=no'
10f2d63a
VZ
1774 fi
1775
1776else
1777
b12915c1 1778 LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
10f2d63a
VZ
1779 if test "x$LINE" != x ; then
1780 eval "DEFAULT_$LINE"
1781 else
1782 no_cache=1
1783 fi
1784
b12915c1 1785 ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
10f2d63a
VZ
1786
1787fi
1788
1789
b12915c1 1790 eval "$ac_cv_use_zlib"
10f2d63a 1791 if test "$no_cache" != 1; then
b12915c1 1792 echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
1793 fi
1794
b12915c1 1795 if test "$wxUSE_ZLIB" = yes; then
10f2d63a
VZ
1796 echo "$ac_t""yes" 1>&6
1797 else
1798 echo "$ac_t""no" 1>&6
1799 fi
1800
1801
1802 echo $ac_n "checking "for --with-odbc"""... $ac_c" 1>&6
e07802fc 1803echo "configure:1804: checking "for --with-odbc"" >&5
10f2d63a
VZ
1804 no_cache=0
1805 # Check whether --with-odbc or --without-odbc was given.
1806if test "${with_odbc+set}" = set; then
1807 withval="$with_odbc"
1808
1809 if test "$withval" = yes; then
1810 ac_cv_use_odbc='wxUSE_ODBC=yes'
1811 else
1812 ac_cv_use_odbc='wxUSE_ODBC=no'
1813 fi
1814
1815else
1816
1817 LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
1818 if test "x$LINE" != x ; then
1819 eval "DEFAULT_$LINE"
1820 else
1821 no_cache=1
1822 fi
1823
1824 ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
1825
1826fi
1827
1828
1829 eval "$ac_cv_use_odbc"
1830 if test "$no_cache" != 1; then
1831 echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
1832 fi
1833
1834 if test "$wxUSE_ODBC" = yes; then
1835 echo "$ac_t""yes" 1>&6
1836 else
1837 echo "$ac_t""no" 1>&6
1838 fi
1839
1840
1841
1842
1843
1844 echo $ac_n "checking "for --enable-shared"""... $ac_c" 1>&6
e07802fc 1845echo "configure:1846: checking "for --enable-shared"" >&5
10f2d63a
VZ
1846 no_cache=0
1847 # Check whether --enable-shared or --disable-shared was given.
1848if test "${enable_shared+set}" = set; then
1849 enableval="$enable_shared"
1850
1851 if test "$enableval" = yes; then
1852 ac_cv_use_shared='wxUSE_SHARED=yes'
1853 else
1854 ac_cv_use_shared='wxUSE_SHARED=no'
1855 fi
1856
1857else
1858
1859 LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
1860 if test "x$LINE" != x ; then
1861 eval "DEFAULT_$LINE"
1862 else
1863 no_cache=1
1864 fi
1865
1866 ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
1867
1868fi
1869
1870
1871 eval "$ac_cv_use_shared"
1872 if test "$no_cache" != 1; then
1873 echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
1874 fi
1875
1876 if test "$wxUSE_SHARED" = yes; then
1877 echo "$ac_t""yes" 1>&6
1878 else
1879 echo "$ac_t""no" 1>&6
1880 fi
1881
1882
1883 echo $ac_n "checking "for --enable-optimise"""... $ac_c" 1>&6
e07802fc 1884echo "configure:1885: checking "for --enable-optimise"" >&5
10f2d63a
VZ
1885 no_cache=0
1886 # Check whether --enable-optimise or --disable-optimise was given.
1887if test "${enable_optimise+set}" = set; then
1888 enableval="$enable_optimise"
1889
1890 if test "$enableval" = yes; then
1891 ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
1892 else
1893 ac_cv_use_optimise='wxUSE_OPTIMISE=no'
1894 fi
1895
1896else
1897
1898 LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
1899 if test "x$LINE" != x ; then
1900 eval "DEFAULT_$LINE"
1901 else
1902 no_cache=1
1903 fi
1904
1905 ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
1906
1907fi
1908
1909
1910 eval "$ac_cv_use_optimise"
1911 if test "$no_cache" != 1; then
1912 echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
1913 fi
1914
1915 if test "$wxUSE_OPTIMISE" = yes; then
1916 echo "$ac_t""yes" 1>&6
1917 else
1918 echo "$ac_t""no" 1>&6
1919 fi
1920
1921
1922 echo $ac_n "checking "for --enable-debug"""... $ac_c" 1>&6
e07802fc 1923echo "configure:1924: checking "for --enable-debug"" >&5
10f2d63a
VZ
1924 no_cache=0
1925 # Check whether --enable-debug or --disable-debug was given.
1926if test "${enable_debug+set}" = set; then
1927 enableval="$enable_debug"
1928
1929 if test "$enableval" = yes; then
1930 ac_cv_use_debug='wxUSE_DEBUG=yes'
1931 else
1932 ac_cv_use_debug='wxUSE_DEBUG=no'
1933 fi
1934
1935else
1936
1937 LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
1938 if test "x$LINE" != x ; then
1939 eval "DEFAULT_$LINE"
1940 else
1941 no_cache=1
1942 fi
1943
1944 ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
1945
1946fi
1947
1948
1949 eval "$ac_cv_use_debug"
1950 if test "$no_cache" != 1; then
1951 echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
1952 fi
1953
1954 if test "$wxUSE_DEBUG" = yes; then
1955 echo "$ac_t""yes" 1>&6
1956 else
1957 echo "$ac_t""no" 1>&6
1958 fi
1959
1960
1961if test "$wxUSE_DEBUG" = "yes"; then
1962 DEFAULT_wxUSE_DEBUG_FLAG=yes
1963 DEFAULT_wxUSE_DEBUG_INFO=yes
1964elif test "$wxUSE_DEBUG" = "no"; then
1965 DEFAULT_wxUSE_DEBUG_FLAG=no
1966 DEFAULT_wxUSE_DEBUG_INFO=no
1967fi
1968
1969
1970 echo $ac_n "checking "for --enable-debug_flag"""... $ac_c" 1>&6
e07802fc 1971echo "configure:1972: checking "for --enable-debug_flag"" >&5
10f2d63a
VZ
1972 no_cache=0
1973 # Check whether --enable-debug_flag or --disable-debug_flag was given.
1974if test "${enable_debug_flag+set}" = set; then
1975 enableval="$enable_debug_flag"
1976
1977 if test "$enableval" = yes; then
1978 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
1979 else
1980 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
1981 fi
1982
1983else
1984
1985 LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
1986 if test "x$LINE" != x ; then
1987 eval "DEFAULT_$LINE"
1988 else
1989 no_cache=1
1990 fi
1991
1992 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
1993
1994fi
1995
1996
1997 eval "$ac_cv_use_debug_flag"
1998 if test "$no_cache" != 1; then
1999 echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
2000 fi
2001
2002 if test "$wxUSE_DEBUG_FLAG" = yes; then
2003 echo "$ac_t""yes" 1>&6
2004 else
2005 echo "$ac_t""no" 1>&6
2006 fi
2007
2008
2009 echo $ac_n "checking "for --enable-debug_info"""... $ac_c" 1>&6
e07802fc 2010echo "configure:2011: checking "for --enable-debug_info"" >&5
10f2d63a
VZ
2011 no_cache=0
2012 # Check whether --enable-debug_info or --disable-debug_info was given.
2013if test "${enable_debug_info+set}" = set; then
2014 enableval="$enable_debug_info"
2015
2016 if test "$enableval" = yes; then
2017 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
2018 else
2019 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
2020 fi
2021
2022else
2023
2024 LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
2025 if test "x$LINE" != x ; then
2026 eval "DEFAULT_$LINE"
2027 else
2028 no_cache=1
2029 fi
2030
2031 ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
2032
2033fi
2034
2035
2036 eval "$ac_cv_use_debug_info"
2037 if test "$no_cache" != 1; then
2038 echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
2039 fi
2040
2041 if test "$wxUSE_DEBUG_INFO" = yes; then
2042 echo "$ac_t""yes" 1>&6
2043 else
2044 echo "$ac_t""no" 1>&6
2045 fi
2046
2047
2048 echo $ac_n "checking "for --enable-debug_gdb"""... $ac_c" 1>&6
e07802fc 2049echo "configure:2050: checking "for --enable-debug_gdb"" >&5
10f2d63a
VZ
2050 no_cache=0
2051 # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
2052if test "${enable_debug_gdb+set}" = set; then
2053 enableval="$enable_debug_gdb"
2054
2055 if test "$enableval" = yes; then
2056 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
2057 else
2058 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
2059 fi
2060
2061else
2062
2063 LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
2064 if test "x$LINE" != x ; then
2065 eval "DEFAULT_$LINE"
2066 else
2067 no_cache=1
2068 fi
2069
2070 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
2071
2072fi
2073
2074
2075 eval "$ac_cv_use_debug_gdb"
2076 if test "$no_cache" != 1; then
2077 echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
2078 fi
2079
2080 if test "$wxUSE_DEBUG_GDB" = yes; then
2081 echo "$ac_t""yes" 1>&6
2082 else
2083 echo "$ac_t""no" 1>&6
2084 fi
2085
2086
2087 echo $ac_n "checking "for --enable-debug_cntxt"""... $ac_c" 1>&6
e07802fc 2088echo "configure:2089: checking "for --enable-debug_cntxt"" >&5
10f2d63a
VZ
2089 no_cache=0
2090 # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
2091if test "${enable_debug_cntxt+set}" = set; then
2092 enableval="$enable_debug_cntxt"
2093
2094 if test "$enableval" = yes; then
2095 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
2096 else
2097 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
2098 fi
2099
2100else
2101
2102 LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
2103 if test "x$LINE" != x ; then
2104 eval "DEFAULT_$LINE"
2105 else
2106 no_cache=1
2107 fi
2108
2109 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
2110
2111fi
2112
2113
2114 eval "$ac_cv_use_debug_cntxt"
2115 if test "$no_cache" != 1; then
2116 echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
2117 fi
2118
2119 if test "$wxUSE_DEBUG_CONTEXT" = yes; then
2120 echo "$ac_t""yes" 1>&6
2121 else
2122 echo "$ac_t""no" 1>&6
2123 fi
2124
2125
2126 echo $ac_n "checking "for --enable-mem_tracing"""... $ac_c" 1>&6
e07802fc 2127echo "configure:2128: checking "for --enable-mem_tracing"" >&5
10f2d63a
VZ
2128 no_cache=0
2129 # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
2130if test "${enable_mem_tracing+set}" = set; then
2131 enableval="$enable_mem_tracing"
2132
2133 if test "$enableval" = yes; then
2134 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
2135 else
2136 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
2137 fi
2138
2139else
2140
2141 LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
2142 if test "x$LINE" != x ; then
2143 eval "DEFAULT_$LINE"
2144 else
2145 no_cache=1
2146 fi
2147
2148 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
2149
2150fi
2151
2152
2153 eval "$ac_cv_use_mem_tracing"
2154 if test "$no_cache" != 1; then
2155 echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
2156 fi
2157
2158 if test "$wxUSE_MEM_TRACING" = yes; then
2159 echo "$ac_t""yes" 1>&6
2160 else
2161 echo "$ac_t""no" 1>&6
2162 fi
2163
2164
2165 echo $ac_n "checking "for --enable-profile"""... $ac_c" 1>&6
e07802fc 2166echo "configure:2167: checking "for --enable-profile"" >&5
10f2d63a
VZ
2167 no_cache=0
2168 # Check whether --enable-profile or --disable-profile was given.
2169if test "${enable_profile+set}" = set; then
2170 enableval="$enable_profile"
2171
2172 if test "$enableval" = yes; then
2173 ac_cv_use_profile='wxUSE_PROFILE=yes'
2174 else
2175 ac_cv_use_profile='wxUSE_PROFILE=no'
2176 fi
2177
2178else
2179
2180 LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
2181 if test "x$LINE" != x ; then
2182 eval "DEFAULT_$LINE"
2183 else
2184 no_cache=1
2185 fi
2186
2187 ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
2188
2189fi
2190
2191
2192 eval "$ac_cv_use_profile"
2193 if test "$no_cache" != 1; then
2194 echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
2195 fi
2196
2197 if test "$wxUSE_PROFILE" = yes; then
2198 echo "$ac_t""yes" 1>&6
2199 else
2200 echo "$ac_t""no" 1>&6
2201 fi
2202
2203
2204 echo $ac_n "checking "for --enable-no_rtti"""... $ac_c" 1>&6
e07802fc 2205echo "configure:2206: checking "for --enable-no_rtti"" >&5
10f2d63a
VZ
2206 no_cache=0
2207 # Check whether --enable-no_rtti or --disable-no_rtti was given.
2208if test "${enable_no_rtti+set}" = set; then
2209 enableval="$enable_no_rtti"
2210
2211 if test "$enableval" = yes; then
2212 ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
2213 else
2214 ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
2215 fi
2216
2217else
2218
2219 LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
2220 if test "x$LINE" != x ; then
2221 eval "DEFAULT_$LINE"
2222 else
2223 no_cache=1
2224 fi
2225
2226 ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
2227
2228fi
2229
2230
2231 eval "$ac_cv_use_no_rtti"
2232 if test "$no_cache" != 1; then
2233 echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
2234 fi
2235
2236 if test "$wxUSE_NO_RTTI" = yes; then
2237 echo "$ac_t""yes" 1>&6
2238 else
2239 echo "$ac_t""no" 1>&6
2240 fi
2241
2242
2243 echo $ac_n "checking "for --enable-no_exceptions"""... $ac_c" 1>&6
e07802fc 2244echo "configure:2245: checking "for --enable-no_exceptions"" >&5
10f2d63a
VZ
2245 no_cache=0
2246 # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
2247if test "${enable_no_exceptions+set}" = set; then
2248 enableval="$enable_no_exceptions"
2249
2250 if test "$enableval" = yes; then
2251 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
2252 else
2253 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
2254 fi
2255
2256else
2257
2258 LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
2259 if test "x$LINE" != x ; then
2260 eval "DEFAULT_$LINE"
2261 else
2262 no_cache=1
2263 fi
2264
2265 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
2266
2267fi
2268
2269
2270 eval "$ac_cv_use_no_exceptions"
2271 if test "$no_cache" != 1; then
2272 echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
2273 fi
2274
2275 if test "$wxUSE_NO_EXCEPTIONS" = yes; then
2276 echo "$ac_t""yes" 1>&6
2277 else
2278 echo "$ac_t""no" 1>&6
2279 fi
2280
2281
2282 echo $ac_n "checking "for --enable-permissive"""... $ac_c" 1>&6
e07802fc 2283echo "configure:2284: checking "for --enable-permissive"" >&5
10f2d63a
VZ
2284 no_cache=0
2285 # Check whether --enable-permissive or --disable-permissive was given.
2286if test "${enable_permissive+set}" = set; then
2287 enableval="$enable_permissive"
2288
2289 if test "$enableval" = yes; then
2290 ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
2291 else
2292 ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
2293 fi
2294
2295else
2296
2297 LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
2298 if test "x$LINE" != x ; then
2299 eval "DEFAULT_$LINE"
2300 else
2301 no_cache=1
2302 fi
2303
2304 ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
2305
2306fi
2307
2308
2309 eval "$ac_cv_use_permissive"
2310 if test "$no_cache" != 1; then
2311 echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
2312 fi
2313
2314 if test "$wxUSE_PERMISSIVE" = yes; then
2315 echo "$ac_t""yes" 1>&6
2316 else
2317 echo "$ac_t""no" 1>&6
2318 fi
2319
2320
2321 echo $ac_n "checking "for --enable-no_deps"""... $ac_c" 1>&6
e07802fc 2322echo "configure:2323: checking "for --enable-no_deps"" >&5
10f2d63a
VZ
2323 no_cache=0
2324 # Check whether --enable-no_deps or --disable-no_deps was given.
2325if test "${enable_no_deps+set}" = set; then
2326 enableval="$enable_no_deps"
2327
2328 if test "$enableval" = yes; then
2329 ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
2330 else
2331 ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
2332 fi
2333
2334else
2335
2336 LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
2337 if test "x$LINE" != x ; then
2338 eval "DEFAULT_$LINE"
2339 else
2340 no_cache=1
2341 fi
2342
2343 ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
2344
2345fi
2346
2347
2348 eval "$ac_cv_use_no_deps"
2349 if test "$no_cache" != 1; then
2350 echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
2351 fi
2352
2353 if test "$wxUSE_NO_DEPS" = yes; then
2354 echo "$ac_t""yes" 1>&6
2355 else
2356 echo "$ac_t""no" 1>&6
2357 fi
2358
2359
2360
2361
2362 echo $ac_n "checking "for --enable-intl"""... $ac_c" 1>&6
e07802fc 2363echo "configure:2364: checking "for --enable-intl"" >&5
10f2d63a
VZ
2364 no_cache=0
2365 # Check whether --enable-intl or --disable-intl was given.
2366if test "${enable_intl+set}" = set; then
2367 enableval="$enable_intl"
2368
2369 if test "$enableval" = yes; then
2370 ac_cv_use_intl='wxUSE_INTL=yes'
2371 else
2372 ac_cv_use_intl='wxUSE_INTL=no'
2373 fi
2374
2375else
2376
2377 LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
2378 if test "x$LINE" != x ; then
2379 eval "DEFAULT_$LINE"
2380 else
2381 no_cache=1
2382 fi
2383
2384 ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
2385
2386fi
2387
2388
2389 eval "$ac_cv_use_intl"
2390 if test "$no_cache" != 1; then
2391 echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
2392 fi
2393
2394 if test "$wxUSE_INTL" = yes; then
2395 echo "$ac_t""yes" 1>&6
2396 else
2397 echo "$ac_t""no" 1>&6
2398 fi
2399
2400
2401 echo $ac_n "checking "for --enable-config"""... $ac_c" 1>&6
e07802fc 2402echo "configure:2403: checking "for --enable-config"" >&5
10f2d63a
VZ
2403 no_cache=0
2404 # Check whether --enable-config or --disable-config was given.
2405if test "${enable_config+set}" = set; then
2406 enableval="$enable_config"
2407
2408 if test "$enableval" = yes; then
2409 ac_cv_use_config='wxUSE_CONFIG=yes'
2410 else
2411 ac_cv_use_config='wxUSE_CONFIG=no'
2412 fi
2413
2414else
2415
2416 LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
2417 if test "x$LINE" != x ; then
2418 eval "DEFAULT_$LINE"
2419 else
2420 no_cache=1
2421 fi
2422
2423 ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
2424
2425fi
2426
2427
2428 eval "$ac_cv_use_config"
2429 if test "$no_cache" != 1; then
2430 echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
2431 fi
2432
2433 if test "$wxUSE_CONFIG" = yes; then
2434 echo "$ac_t""yes" 1>&6
2435 else
2436 echo "$ac_t""no" 1>&6
2437 fi
2438
2439
b12915c1
VZ
2440if test "$wxUSE_GUI" = "yes"; then
2441
10f2d63a 2442 echo $ac_n "checking "for --enable-sockets"""... $ac_c" 1>&6
e07802fc 2443echo "configure:2444: checking "for --enable-sockets"" >&5
10f2d63a
VZ
2444 no_cache=0
2445 # Check whether --enable-sockets or --disable-sockets was given.
2446if test "${enable_sockets+set}" = set; then
2447 enableval="$enable_sockets"
2448
2449 if test "$enableval" = yes; then
2450 ac_cv_use_sockets='wxUSE_SOCKETS=yes'
2451 else
2452 ac_cv_use_sockets='wxUSE_SOCKETS=no'
2453 fi
2454
2455else
2456
2457 LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
2458 if test "x$LINE" != x ; then
2459 eval "DEFAULT_$LINE"
2460 else
2461 no_cache=1
2462 fi
2463
2464 ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
2465
2466fi
2467
2468
2469 eval "$ac_cv_use_sockets"
2470 if test "$no_cache" != 1; then
2471 echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
2472 fi
2473
2474 if test "$wxUSE_SOCKETS" = yes; then
2475 echo "$ac_t""yes" 1>&6
2476 else
2477 echo "$ac_t""no" 1>&6
2478 fi
2479
b12915c1
VZ
2480else
2481wxUSE_SOCKETS=no
2482fi
2483
10f2d63a
VZ
2484
2485 echo $ac_n "checking "for --enable-dialupman"""... $ac_c" 1>&6
e07802fc 2486echo "configure:2487: checking "for --enable-dialupman"" >&5
10f2d63a
VZ
2487 no_cache=0
2488 # Check whether --enable-dialupman or --disable-dialupman was given.
2489if test "${enable_dialupman+set}" = set; then
2490 enableval="$enable_dialupman"
2491
2492 if test "$enableval" = yes; then
2493 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
2494 else
2495 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
2496 fi
2497
2498else
2499
2500 LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
2501 if test "x$LINE" != x ; then
2502 eval "DEFAULT_$LINE"
2503 else
2504 no_cache=1
2505 fi
2506
2507 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
2508
2509fi
2510
2511
2512 eval "$ac_cv_use_dialupman"
2513 if test "$no_cache" != 1; then
2514 echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
2515 fi
2516
2517 if test "$wxUSE_DIALUP_MANAGER" = yes; then
2518 echo "$ac_t""yes" 1>&6
2519 else
2520 echo "$ac_t""no" 1>&6
2521 fi
2522
2523
2524 echo $ac_n "checking "for --enable-ipc"""... $ac_c" 1>&6
e07802fc 2525echo "configure:2526: checking "for --enable-ipc"" >&5
10f2d63a
VZ
2526 no_cache=0
2527 # Check whether --enable-ipc or --disable-ipc was given.
2528if test "${enable_ipc+set}" = set; then
2529 enableval="$enable_ipc"
2530
2531 if test "$enableval" = yes; then
2532 ac_cv_use_ipc='wxUSE_IPC=yes'
2533 else
2534 ac_cv_use_ipc='wxUSE_IPC=no'
2535 fi
2536
2537else
2538
2539 LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
2540 if test "x$LINE" != x ; then
2541 eval "DEFAULT_$LINE"
2542 else
2543 no_cache=1
2544 fi
2545
2546 ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
2547
2548fi
2549
2550
2551 eval "$ac_cv_use_ipc"
2552 if test "$no_cache" != 1; then
2553 echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
2554 fi
2555
2556 if test "$wxUSE_IPC" = yes; then
2557 echo "$ac_t""yes" 1>&6
2558 else
2559 echo "$ac_t""no" 1>&6
2560 fi
2561
2562
2563 echo $ac_n "checking "for --enable-apple_ieee"""... $ac_c" 1>&6
e07802fc 2564echo "configure:2565: checking "for --enable-apple_ieee"" >&5
10f2d63a
VZ
2565 no_cache=0
2566 # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
2567if test "${enable_apple_ieee+set}" = set; then
2568 enableval="$enable_apple_ieee"
2569
2570 if test "$enableval" = yes; then
2571 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
2572 else
2573 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
2574 fi
2575
2576else
2577
2578 LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
2579 if test "x$LINE" != x ; then
2580 eval "DEFAULT_$LINE"
2581 else
2582 no_cache=1
2583 fi
2584
2585 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
2586
2587fi
2588
2589
2590 eval "$ac_cv_use_apple_ieee"
2591 if test "$no_cache" != 1; then
2592 echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
2593 fi
2594
2595 if test "$wxUSE_APPLE_IEEE" = yes; then
2596 echo "$ac_t""yes" 1>&6
2597 else
2598 echo "$ac_t""no" 1>&6
2599 fi
2600
2601
2602 echo $ac_n "checking "for --enable-timedate"""... $ac_c" 1>&6
e07802fc 2603echo "configure:2604: checking "for --enable-timedate"" >&5
10f2d63a
VZ
2604 no_cache=0
2605 # Check whether --enable-timedate or --disable-timedate was given.
2606if test "${enable_timedate+set}" = set; then
2607 enableval="$enable_timedate"
2608
2609 if test "$enableval" = yes; then
2610 ac_cv_use_timedate='wxUSE_TIMEDATE=yes'
2611 else
2612 ac_cv_use_timedate='wxUSE_TIMEDATE=no'
2613 fi
2614
2615else
2616
2617 LINE=`grep "wxUSE_TIMEDATE" ${wx_arg_cache_file}`
2618 if test "x$LINE" != x ; then
2619 eval "DEFAULT_$LINE"
2620 else
2621 no_cache=1
2622 fi
2623
2624 ac_cv_use_timedate='wxUSE_TIMEDATE='$DEFAULT_wxUSE_TIMEDATE
2625
2626fi
2627
2628
2629 eval "$ac_cv_use_timedate"
2630 if test "$no_cache" != 1; then
2631 echo $ac_cv_use_timedate >> ${wx_arg_cache_file}.tmp
2632 fi
2633
2634 if test "$wxUSE_TIMEDATE" = yes; then
2635 echo "$ac_t""yes" 1>&6
2636 else
2637 echo "$ac_t""no" 1>&6
2638 fi
2639
2640
2641 echo $ac_n "checking "for --enable-wave"""... $ac_c" 1>&6
e07802fc 2642echo "configure:2643: checking "for --enable-wave"" >&5
10f2d63a
VZ
2643 no_cache=0
2644 # Check whether --enable-wave or --disable-wave was given.
2645if test "${enable_wave+set}" = set; then
2646 enableval="$enable_wave"
2647
2648 if test "$enableval" = yes; then
2649 ac_cv_use_wave='wxUSE_WAVE=yes'
2650 else
2651 ac_cv_use_wave='wxUSE_WAVE=no'
2652 fi
2653
2654else
2655
2656 LINE=`grep "wxUSE_WAVE" ${wx_arg_cache_file}`
2657 if test "x$LINE" != x ; then
2658 eval "DEFAULT_$LINE"
2659 else
2660 no_cache=1
2661 fi
2662
2663 ac_cv_use_wave='wxUSE_WAVE='$DEFAULT_wxUSE_WAVE
2664
2665fi
2666
2667
2668 eval "$ac_cv_use_wave"
2669 if test "$no_cache" != 1; then
2670 echo $ac_cv_use_wave >> ${wx_arg_cache_file}.tmp
2671 fi
2672
2673 if test "$wxUSE_WAVE" = yes; then
2674 echo "$ac_t""yes" 1>&6
2675 else
2676 echo "$ac_t""no" 1>&6
2677 fi
2678
2679
2680 echo $ac_n "checking "for --enable-fraction"""... $ac_c" 1>&6
e07802fc 2681echo "configure:2682: checking "for --enable-fraction"" >&5
10f2d63a
VZ
2682 no_cache=0
2683 # Check whether --enable-fraction or --disable-fraction was given.
2684if test "${enable_fraction+set}" = set; then
2685 enableval="$enable_fraction"
2686
2687 if test "$enableval" = yes; then
2688 ac_cv_use_fraction='wxUSE_FRACTION=yes'
2689 else
2690 ac_cv_use_fraction='wxUSE_FRACTION=no'
2691 fi
2692
2693else
2694
2695 LINE=`grep "wxUSE_FRACTION" ${wx_arg_cache_file}`
2696 if test "x$LINE" != x ; then
2697 eval "DEFAULT_$LINE"
2698 else
2699 no_cache=1
2700 fi
2701
2702 ac_cv_use_fraction='wxUSE_FRACTION='$DEFAULT_wxUSE_FRACTION
2703
2704fi
2705
2706
2707 eval "$ac_cv_use_fraction"
2708 if test "$no_cache" != 1; then
2709 echo $ac_cv_use_fraction >> ${wx_arg_cache_file}.tmp
2710 fi
2711
2712 if test "$wxUSE_FRACTION" = yes; then
2713 echo "$ac_t""yes" 1>&6
2714 else
2715 echo "$ac_t""no" 1>&6
2716 fi
2717
2718
2719 echo $ac_n "checking "for --enable-dynlib"""... $ac_c" 1>&6
e07802fc 2720echo "configure:2721: checking "for --enable-dynlib"" >&5
10f2d63a
VZ
2721 no_cache=0
2722 # Check whether --enable-dynlib or --disable-dynlib was given.
2723if test "${enable_dynlib+set}" = set; then
2724 enableval="$enable_dynlib"
2725
2726 if test "$enableval" = yes; then
2727 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
2728 else
2729 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
2730 fi
2731
2732else
2733
2734 LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
2735 if test "x$LINE" != x ; then
2736 eval "DEFAULT_$LINE"
2737 else
2738 no_cache=1
2739 fi
2740
2741 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
2742
2743fi
2744
2745
2746 eval "$ac_cv_use_dynlib"
2747 if test "$no_cache" != 1; then
2748 echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
2749 fi
2750
2751 if test "$wxUSE_DYNLIB_CLASS" = yes; then
2752 echo "$ac_t""yes" 1>&6
2753 else
2754 echo "$ac_t""no" 1>&6
2755 fi
2756
2757
2758 echo $ac_n "checking "for --enable-longlong"""... $ac_c" 1>&6
e07802fc 2759echo "configure:2760: checking "for --enable-longlong"" >&5
10f2d63a
VZ
2760 no_cache=0
2761 # Check whether --enable-longlong or --disable-longlong was given.
2762if test "${enable_longlong+set}" = set; then
2763 enableval="$enable_longlong"
2764
2765 if test "$enableval" = yes; then
2766 ac_cv_use_longlong='wxUSE_LONGLONG=yes'
2767 else
2768 ac_cv_use_longlong='wxUSE_LONGLONG=no'
2769 fi
2770
2771else
2772
2773 LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
2774 if test "x$LINE" != x ; then
2775 eval "DEFAULT_$LINE"
2776 else
2777 no_cache=1
2778 fi
2779
2780 ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
2781
2782fi
2783
2784
2785 eval "$ac_cv_use_longlong"
2786 if test "$no_cache" != 1; then
2787 echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
2788 fi
2789
2790 if test "$wxUSE_LONGLONG" = yes; then
2791 echo "$ac_t""yes" 1>&6
2792 else
2793 echo "$ac_t""no" 1>&6
2794 fi
2795
2796
2797 echo $ac_n "checking "for --enable-log"""... $ac_c" 1>&6
e07802fc 2798echo "configure:2799: checking "for --enable-log"" >&5
10f2d63a
VZ
2799 no_cache=0
2800 # Check whether --enable-log or --disable-log was given.
2801if test "${enable_log+set}" = set; then
2802 enableval="$enable_log"
2803
2804 if test "$enableval" = yes; then
2805 ac_cv_use_log='wxUSE_LOG=yes'
2806 else
2807 ac_cv_use_log='wxUSE_LOG=no'
2808 fi
2809
2810else
2811
2812 LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
2813 if test "x$LINE" != x ; then
2814 eval "DEFAULT_$LINE"
2815 else
2816 no_cache=1
2817 fi
2818
2819 ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
2820
2821fi
2822
2823
2824 eval "$ac_cv_use_log"
2825 if test "$no_cache" != 1; then
2826 echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
2827 fi
2828
2829 if test "$wxUSE_LOG" = yes; then
2830 echo "$ac_t""yes" 1>&6
2831 else
2832 echo "$ac_t""no" 1>&6
2833 fi
2834
2835
2836 echo $ac_n "checking "for --enable-streams"""... $ac_c" 1>&6
e07802fc 2837echo "configure:2838: checking "for --enable-streams"" >&5
10f2d63a
VZ
2838 no_cache=0
2839 # Check whether --enable-streams or --disable-streams was given.
2840if test "${enable_streams+set}" = set; then
2841 enableval="$enable_streams"
2842
2843 if test "$enableval" = yes; then
2844 ac_cv_use_streams='wxUSE_STREAMS=yes'
2845 else
2846 ac_cv_use_streams='wxUSE_STREAMS=no'
2847 fi
2848
2849else
2850
2851 LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
2852 if test "x$LINE" != x ; then
2853 eval "DEFAULT_$LINE"
2854 else
2855 no_cache=1
2856 fi
2857
2858 ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
2859
2860fi
2861
2862
2863 eval "$ac_cv_use_streams"
2864 if test "$no_cache" != 1; then
2865 echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
2866 fi
2867
2868 if test "$wxUSE_STREAMS" = yes; then
2869 echo "$ac_t""yes" 1>&6
2870 else
2871 echo "$ac_t""no" 1>&6
2872 fi
2873
2874
2875 echo $ac_n "checking "for --enable-file"""... $ac_c" 1>&6
e07802fc 2876echo "configure:2877: checking "for --enable-file"" >&5
10f2d63a
VZ
2877 no_cache=0
2878 # Check whether --enable-file or --disable-file was given.
2879if test "${enable_file+set}" = set; then
2880 enableval="$enable_file"
2881
2882 if test "$enableval" = yes; then
2883 ac_cv_use_file='wxUSE_FILE=yes'
2884 else
2885 ac_cv_use_file='wxUSE_FILE=no'
2886 fi
2887
2888else
2889
2890 LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
2891 if test "x$LINE" != x ; then
2892 eval "DEFAULT_$LINE"
2893 else
2894 no_cache=1
2895 fi
2896
2897 ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
2898
2899fi
2900
2901
2902 eval "$ac_cv_use_file"
2903 if test "$no_cache" != 1; then
2904 echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
2905 fi
2906
2907 if test "$wxUSE_FILE" = yes; then
2908 echo "$ac_t""yes" 1>&6
2909 else
2910 echo "$ac_t""no" 1>&6
2911 fi
2912
2913
2914 echo $ac_n "checking "for --enable-textfile"""... $ac_c" 1>&6
e07802fc 2915echo "configure:2916: checking "for --enable-textfile"" >&5
10f2d63a
VZ
2916 no_cache=0
2917 # Check whether --enable-textfile or --disable-textfile was given.
2918if test "${enable_textfile+set}" = set; then
2919 enableval="$enable_textfile"
2920
2921 if test "$enableval" = yes; then
2922 ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
2923 else
2924 ac_cv_use_textfile='wxUSE_TEXTFILE=no'
2925 fi
2926
2927else
2928
2929 LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
2930 if test "x$LINE" != x ; then
2931 eval "DEFAULT_$LINE"
2932 else
2933 no_cache=1
2934 fi
2935
2936 ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
2937
2938fi
2939
2940
2941 eval "$ac_cv_use_textfile"
2942 if test "$no_cache" != 1; then
2943 echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
2944 fi
2945
2946 if test "$wxUSE_TEXTFILE" = yes; then
2947 echo "$ac_t""yes" 1>&6
2948 else
2949 echo "$ac_t""no" 1>&6
2950 fi
2951
2952
2953 echo $ac_n "checking "for --enable-unicode"""... $ac_c" 1>&6
e07802fc 2954echo "configure:2955: checking "for --enable-unicode"" >&5
10f2d63a
VZ
2955 no_cache=0
2956 # Check whether --enable-unicode or --disable-unicode was given.
2957if test "${enable_unicode+set}" = set; then
2958 enableval="$enable_unicode"
2959
2960 if test "$enableval" = yes; then
2961 ac_cv_use_unicode='wxUSE_UNICODE=yes'
2962 else
2963 ac_cv_use_unicode='wxUSE_UNICODE=no'
2964 fi
2965
2966else
2967
2968 LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
2969 if test "x$LINE" != x ; then
2970 eval "DEFAULT_$LINE"
2971 else
2972 no_cache=1
2973 fi
2974
2975 ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
2976
2977fi
2978
2979
2980 eval "$ac_cv_use_unicode"
2981 if test "$no_cache" != 1; then
2982 echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
2983 fi
2984
2985 if test "$wxUSE_UNICODE" = yes; then
2986 echo "$ac_t""yes" 1>&6
2987 else
2988 echo "$ac_t""no" 1>&6
2989 fi
2990
2991
2992 echo $ac_n "checking "for --enable-wcsrtombs"""... $ac_c" 1>&6
e07802fc 2993echo "configure:2994: checking "for --enable-wcsrtombs"" >&5
10f2d63a
VZ
2994 no_cache=0
2995 # Check whether --enable-wcsrtombs or --disable-wcsrtombs was given.
2996if test "${enable_wcsrtombs+set}" = set; then
2997 enableval="$enable_wcsrtombs"
2998
2999 if test "$enableval" = yes; then
3000 ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS=yes'
3001 else
3002 ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS=no'
3003 fi
3004
3005else
3006
3007 LINE=`grep "wxUSE_WCSRTOMBS" ${wx_arg_cache_file}`
3008 if test "x$LINE" != x ; then
3009 eval "DEFAULT_$LINE"
3010 else
3011 no_cache=1
3012 fi
3013
3014 ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS='$DEFAULT_wxUSE_WCSRTOMBS
3015
3016fi
3017
3018
3019 eval "$ac_cv_use_wcsrtombs"
3020 if test "$no_cache" != 1; then
3021 echo $ac_cv_use_wcsrtombs >> ${wx_arg_cache_file}.tmp
3022 fi
3023
3024 if test "$wxUSE_WCSRTOMBS" = yes; then
3025 echo "$ac_t""yes" 1>&6
3026 else
3027 echo "$ac_t""no" 1>&6
3028 fi
3029
3030
3031 echo $ac_n "checking "for --enable-wxprintfv"""... $ac_c" 1>&6
e07802fc 3032echo "configure:3033: checking "for --enable-wxprintfv"" >&5
10f2d63a
VZ
3033 no_cache=0
3034 # Check whether --enable-wxprintfv or --disable-wxprintfv was given.
3035if test "${enable_wxprintfv+set}" = set; then
3036 enableval="$enable_wxprintfv"
3037
3038 if test "$enableval" = yes; then
3039 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes'
3040 else
3041 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no'
3042 fi
3043
3044else
3045
3046 LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}`
3047 if test "x$LINE" != x ; then
3048 eval "DEFAULT_$LINE"
3049 else
3050 no_cache=1
3051 fi
3052
3053 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF
3054
3055fi
3056
3057
3058 eval "$ac_cv_use_wxprintfv"
3059 if test "$no_cache" != 1; then
3060 echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp
3061 fi
3062
3063 if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then
3064 echo "$ac_t""yes" 1>&6
3065 else
3066 echo "$ac_t""no" 1>&6
3067 fi
3068
3069
3070 echo $ac_n "checking "for --enable-joystick"""... $ac_c" 1>&6
e07802fc 3071echo "configure:3072: checking "for --enable-joystick"" >&5
10f2d63a
VZ
3072 no_cache=0
3073 # Check whether --enable-joystick or --disable-joystick was given.
3074if test "${enable_joystick+set}" = set; then
3075 enableval="$enable_joystick"
3076
3077 if test "$enableval" = yes; then
3078 ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
3079 else
3080 ac_cv_use_joystick='wxUSE_JOYSTICK=no'
3081 fi
3082
3083else
3084
3085 LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
3086 if test "x$LINE" != x ; then
3087 eval "DEFAULT_$LINE"
3088 else
3089 no_cache=1
3090 fi
3091
3092 ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
3093
3094fi
3095
3096
3097 eval "$ac_cv_use_joystick"
3098 if test "$no_cache" != 1; then
3099 echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
3100 fi
3101
3102 if test "$wxUSE_JOYSTICK" = yes; then
3103 echo "$ac_t""yes" 1>&6
3104 else
3105 echo "$ac_t""no" 1>&6
3106 fi
3107
3108
3109 echo $ac_n "checking "for --enable-std_iostreams"""... $ac_c" 1>&6
e07802fc 3110echo "configure:3111: checking "for --enable-std_iostreams"" >&5
10f2d63a
VZ
3111 no_cache=0
3112 # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
3113if test "${enable_std_iostreams+set}" = set; then
3114 enableval="$enable_std_iostreams"
3115
3116 if test "$enableval" = yes; then
3117 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
3118 else
3119 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
3120 fi
3121
3122else
3123
3124 LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
3125 if test "x$LINE" != x ; then
3126 eval "DEFAULT_$LINE"
3127 else
3128 no_cache=1
3129 fi
3130
3131 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
3132
3133fi
3134
3135
3136 eval "$ac_cv_use_std_iostreams"
3137 if test "$no_cache" != 1; then
3138 echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
3139 fi
3140
3141 if test "$wxUSE_STD_IOSTREAM" = yes; then
3142 echo "$ac_t""yes" 1>&6
3143 else
3144 echo "$ac_t""no" 1>&6
3145 fi
3146
3147
3148 echo $ac_n "checking "for --enable-fs_inet"""... $ac_c" 1>&6
e07802fc 3149echo "configure:3150: checking "for --enable-fs_inet"" >&5
10f2d63a
VZ
3150 no_cache=0
3151 # Check whether --enable-fs_inet or --disable-fs_inet was given.
3152if test "${enable_fs_inet+set}" = set; then
3153 enableval="$enable_fs_inet"
3154
3155 if test "$enableval" = yes; then
3156 ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
3157 else
3158 ac_cv_use_fs_inet='wxUSE_FS_INET=no'
3159 fi
3160
3161else
3162
3163 LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
3164 if test "x$LINE" != x ; then
3165 eval "DEFAULT_$LINE"
3166 else
3167 no_cache=1
3168 fi
3169
3170 ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
3171
3172fi
3173
3174
3175 eval "$ac_cv_use_fs_inet"
3176 if test "$no_cache" != 1; then
3177 echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
3178 fi
3179
3180 if test "$wxUSE_FS_INET" = yes; then
3181 echo "$ac_t""yes" 1>&6
3182 else
3183 echo "$ac_t""no" 1>&6
3184 fi
3185
3186
3187 echo $ac_n "checking "for --enable-fs_zip"""... $ac_c" 1>&6
e07802fc 3188echo "configure:3189: checking "for --enable-fs_zip"" >&5
10f2d63a
VZ
3189 no_cache=0
3190 # Check whether --enable-fs_zip or --disable-fs_zip was given.
3191if test "${enable_fs_zip+set}" = set; then
3192 enableval="$enable_fs_zip"
3193
3194 if test "$enableval" = yes; then
3195 ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
3196 else
3197 ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
3198 fi
3199
3200else
3201
3202 LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
3203 if test "x$LINE" != x ; then
3204 eval "DEFAULT_$LINE"
3205 else
3206 no_cache=1
3207 fi
3208
3209 ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
3210
3211fi
3212
3213
3214 eval "$ac_cv_use_fs_zip"
3215 if test "$no_cache" != 1; then
3216 echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
3217 fi
3218
3219 if test "$wxUSE_FS_ZIP" = yes; then
3220 echo "$ac_t""yes" 1>&6
3221 else
3222 echo "$ac_t""no" 1>&6
3223 fi
3224
3225
3226 echo $ac_n "checking "for --enable-zipstream"""... $ac_c" 1>&6
e07802fc 3227echo "configure:3228: checking "for --enable-zipstream"" >&5
10f2d63a
VZ
3228 no_cache=0
3229 # Check whether --enable-zipstream or --disable-zipstream was given.
3230if test "${enable_zipstream+set}" = set; then
3231 enableval="$enable_zipstream"
3232
3233 if test "$enableval" = yes; then
3234 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
3235 else
3236 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
3237 fi
3238
3239else
3240
3241 LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
3242 if test "x$LINE" != x ; then
3243 eval "DEFAULT_$LINE"
3244 else
3245 no_cache=1
3246 fi
3247
3248 ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
3249
3250fi
3251
3252
3253 eval "$ac_cv_use_zipstream"
3254 if test "$no_cache" != 1; then
3255 echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
3256 fi
3257
3258 if test "$wxUSE_ZIPSTREAM" = yes; then
3259 echo "$ac_t""yes" 1>&6
3260 else
3261 echo "$ac_t""no" 1>&6
3262 fi
3263
3264
3265
3266
3267 echo $ac_n "checking "for --enable-threads"""... $ac_c" 1>&6
e07802fc 3268echo "configure:3269: checking "for --enable-threads"" >&5
10f2d63a
VZ
3269 no_cache=0
3270 # Check whether --enable-threads or --disable-threads was given.
3271if test "${enable_threads+set}" = set; then
3272 enableval="$enable_threads"
3273
3274 if test "$enableval" = yes; then
3275 ac_cv_use_threads='wxUSE_THREADS=yes'
3276 else
3277 ac_cv_use_threads='wxUSE_THREADS=no'
3278 fi
3279
3280else
3281
3282 LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
3283 if test "x$LINE" != x ; then
3284 eval "DEFAULT_$LINE"
3285 else
3286 no_cache=1
3287 fi
3288
3289 ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
3290
3291fi
3292
3293
3294 eval "$ac_cv_use_threads"
3295 if test "$no_cache" != 1; then
3296 echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
3297 fi
3298
3299 if test "$wxUSE_THREADS" = yes; then
3300 echo "$ac_t""yes" 1>&6
3301 else
3302 echo "$ac_t""no" 1>&6
3303 fi
3304
3305
3306 echo $ac_n "checking "for --enable-serial"""... $ac_c" 1>&6
e07802fc 3307echo "configure:3308: checking "for --enable-serial"" >&5
10f2d63a
VZ
3308 no_cache=0
3309 # Check whether --enable-serial or --disable-serial was given.
3310if test "${enable_serial+set}" = set; then
3311 enableval="$enable_serial"
3312
3313 if test "$enableval" = yes; then
3314 ac_cv_use_serial='wxUSE_SERIAL=yes'
3315 else
3316 ac_cv_use_serial='wxUSE_SERIAL=no'
3317 fi
3318
3319else
3320
3321 LINE=`grep "wxUSE_SERIAL" ${wx_arg_cache_file}`
3322 if test "x$LINE" != x ; then
3323 eval "DEFAULT_$LINE"
3324 else
3325 no_cache=1
3326 fi
3327
3328 ac_cv_use_serial='wxUSE_SERIAL='$DEFAULT_wxUSE_SERIAL
3329
3330fi
3331
3332
3333 eval "$ac_cv_use_serial"
3334 if test "$no_cache" != 1; then
3335 echo $ac_cv_use_serial >> ${wx_arg_cache_file}.tmp
3336 fi
3337
3338 if test "$wxUSE_SERIAL" = yes; then
3339 echo "$ac_t""yes" 1>&6
3340 else
3341 echo "$ac_t""no" 1>&6
3342 fi
3343
3344
b12915c1
VZ
3345if test "$wxUSE_GUI" = "yes"; then
3346
10f2d63a
VZ
3347
3348
3349 echo $ac_n "checking "for --enable-docview"""... $ac_c" 1>&6
e07802fc 3350echo "configure:3351: checking "for --enable-docview"" >&5
10f2d63a
VZ
3351 no_cache=0
3352 # Check whether --enable-docview or --disable-docview was given.
3353if test "${enable_docview+set}" = set; then
3354 enableval="$enable_docview"
3355
3356 if test "$enableval" = yes; then
3357 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
3358 else
3359 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
3360 fi
3361
3362else
3363
3364 LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
3365 if test "x$LINE" != x ; then
3366 eval "DEFAULT_$LINE"
3367 else
3368 no_cache=1
3369 fi
3370
3371 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
3372
3373fi
3374
3375
3376 eval "$ac_cv_use_docview"
3377 if test "$no_cache" != 1; then
3378 echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
3379 fi
3380
3381 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
3382 echo "$ac_t""yes" 1>&6
3383 else
3384 echo "$ac_t""no" 1>&6
3385 fi
3386
3387
3388 echo $ac_n "checking "for --enable-help"""... $ac_c" 1>&6
e07802fc 3389echo "configure:3390: checking "for --enable-help"" >&5
10f2d63a
VZ
3390 no_cache=0
3391 # Check whether --enable-help or --disable-help was given.
3392if test "${enable_help+set}" = set; then
3393 enableval="$enable_help"
3394
3395 if test "$enableval" = yes; then
3396 ac_cv_use_help='wxUSE_HELP=yes'
3397 else
3398 ac_cv_use_help='wxUSE_HELP=no'
3399 fi
3400
3401else
3402
3403 LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
3404 if test "x$LINE" != x ; then
3405 eval "DEFAULT_$LINE"
3406 else
3407 no_cache=1
3408 fi
3409
3410 ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
3411
3412fi
3413
3414
3415 eval "$ac_cv_use_help"
3416 if test "$no_cache" != 1; then
3417 echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
3418 fi
3419
3420 if test "$wxUSE_HELP" = yes; then
3421 echo "$ac_t""yes" 1>&6
3422 else
3423 echo "$ac_t""no" 1>&6
3424 fi
3425
3426
3427 echo $ac_n "checking "for --enable-constraints"""... $ac_c" 1>&6
e07802fc 3428echo "configure:3429: checking "for --enable-constraints"" >&5
10f2d63a
VZ
3429 no_cache=0
3430 # Check whether --enable-constraints or --disable-constraints was given.
3431if test "${enable_constraints+set}" = set; then
3432 enableval="$enable_constraints"
3433
3434 if test "$enableval" = yes; then
3435 ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
3436 else
3437 ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
3438 fi
3439
3440else
3441
3442 LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
3443 if test "x$LINE" != x ; then
3444 eval "DEFAULT_$LINE"
3445 else
3446 no_cache=1
3447 fi
3448
3449 ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
3450
3451fi
3452
3453
3454 eval "$ac_cv_use_constraints"
3455 if test "$no_cache" != 1; then
3456 echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
3457 fi
3458
3459 if test "$wxUSE_CONSTRAINTS" = yes; then
3460 echo "$ac_t""yes" 1>&6
3461 else
3462 echo "$ac_t""no" 1>&6
3463 fi
3464
3465
3466 echo $ac_n "checking "for --enable-printarch"""... $ac_c" 1>&6
e07802fc 3467echo "configure:3468: checking "for --enable-printarch"" >&5
10f2d63a
VZ
3468 no_cache=0
3469 # Check whether --enable-printarch or --disable-printarch was given.
3470if test "${enable_printarch+set}" = set; then
3471 enableval="$enable_printarch"
3472
3473 if test "$enableval" = yes; then
3474 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
3475 else
3476 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
3477 fi
3478
3479else
3480
3481 LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
3482 if test "x$LINE" != x ; then
3483 eval "DEFAULT_$LINE"
3484 else
3485 no_cache=1
3486 fi
3487
3488 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
3489
3490fi
3491
3492
3493 eval "$ac_cv_use_printarch"
3494 if test "$no_cache" != 1; then
3495 echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
3496 fi
3497
3498 if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
3499 echo "$ac_t""yes" 1>&6
3500 else
3501 echo "$ac_t""no" 1>&6
3502 fi
3503
3504
3505 echo $ac_n "checking "for --enable-mdi"""... $ac_c" 1>&6
e07802fc 3506echo "configure:3507: checking "for --enable-mdi"" >&5
10f2d63a
VZ
3507 no_cache=0
3508 # Check whether --enable-mdi or --disable-mdi was given.
3509if test "${enable_mdi+set}" = set; then
3510 enableval="$enable_mdi"
3511
3512 if test "$enableval" = yes; then
3513 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=yes'
3514 else
3515 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=no'
3516 fi
3517
3518else
3519
3520 LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
3521 if test "x$LINE" != x ; then
3522 eval "DEFAULT_$LINE"
3523 else
3524 no_cache=1
3525 fi
3526
3527 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
3528
3529fi
3530
3531
3532 eval "$ac_cv_use_mdi"
3533 if test "$no_cache" != 1; then
3534 echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
3535 fi
3536
3537 if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
3538 echo "$ac_t""yes" 1>&6
3539 else
3540 echo "$ac_t""no" 1>&6
3541 fi
3542
3543
3544
3545 echo $ac_n "checking "for --enable-postscript"""... $ac_c" 1>&6
e07802fc 3546echo "configure:3547: checking "for --enable-postscript"" >&5
10f2d63a
VZ
3547 no_cache=0
3548 # Check whether --enable-postscript or --disable-postscript was given.
3549if test "${enable_postscript+set}" = set; then
3550 enableval="$enable_postscript"
3551
3552 if test "$enableval" = yes; then
3553 ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
3554 else
3555 ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
3556 fi
3557
3558else
3559
3560 LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
3561 if test "x$LINE" != x ; then
3562 eval "DEFAULT_$LINE"
3563 else
3564 no_cache=1
3565 fi
3566
3567 ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
3568
3569fi
3570
3571
3572 eval "$ac_cv_use_postscript"
3573 if test "$no_cache" != 1; then
3574 echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
3575 fi
3576
3577 if test "$wxUSE_POSTSCRIPT" = yes; then
3578 echo "$ac_t""yes" 1>&6
3579 else
3580 echo "$ac_t""no" 1>&6
3581 fi
3582
3583
3584
3585
3586 echo $ac_n "checking "for --enable-prologio"""... $ac_c" 1>&6
e07802fc 3587echo "configure:3588: checking "for --enable-prologio"" >&5
10f2d63a
VZ
3588 no_cache=0
3589 # Check whether --enable-prologio or --disable-prologio was given.
3590if test "${enable_prologio+set}" = set; then
3591 enableval="$enable_prologio"
3592
3593 if test "$enableval" = yes; then
3594 ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
3595 else
3596 ac_cv_use_prologio='wxUSE_PROLOGIO=no'
3597 fi
3598
3599else
3600
3601 LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
3602 if test "x$LINE" != x ; then
3603 eval "DEFAULT_$LINE"
3604 else
3605 no_cache=1
3606 fi
3607
3608 ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
3609
3610fi
3611
3612
3613 eval "$ac_cv_use_prologio"
3614 if test "$no_cache" != 1; then
3615 echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
3616 fi
3617
3618 if test "$wxUSE_PROLOGIO" = yes; then
3619 echo "$ac_t""yes" 1>&6
3620 else
3621 echo "$ac_t""no" 1>&6
3622 fi
3623
3624
3625 echo $ac_n "checking "for --enable-resources"""... $ac_c" 1>&6
e07802fc 3626echo "configure:3627: checking "for --enable-resources"" >&5
10f2d63a
VZ
3627 no_cache=0
3628 # Check whether --enable-resources or --disable-resources was given.
3629if test "${enable_resources+set}" = set; then
3630 enableval="$enable_resources"
3631
3632 if test "$enableval" = yes; then
3633 ac_cv_use_resources='wxUSE_RESOURCES=yes'
3634 else
3635 ac_cv_use_resources='wxUSE_RESOURCES=no'
3636 fi
3637
3638else
3639
3640 LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
3641 if test "x$LINE" != x ; then
3642 eval "DEFAULT_$LINE"
3643 else
3644 no_cache=1
3645 fi
3646
3647 ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
3648
3649fi
3650
3651
3652 eval "$ac_cv_use_resources"
3653 if test "$no_cache" != 1; then
3654 echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
3655 fi
3656
3657 if test "$wxUSE_RESOURCES" = yes; then
3658 echo "$ac_t""yes" 1>&6
3659 else
3660 echo "$ac_t""no" 1>&6
3661 fi
3662
3663
3664
3665 echo $ac_n "checking "for --enable-xresources"""... $ac_c" 1>&6
e07802fc 3666echo "configure:3667: checking "for --enable-xresources"" >&5
10f2d63a
VZ
3667 no_cache=0
3668 # Check whether --enable-xresources or --disable-xresources was given.
3669if test "${enable_xresources+set}" = set; then
3670 enableval="$enable_xresources"
3671
3672 if test "$enableval" = yes; then
3673 ac_cv_use_xresources='wxUSE_X_RESOURCES=yes'
3674 else
3675 ac_cv_use_xresources='wxUSE_X_RESOURCES=no'
3676 fi
3677
3678else
3679
3680 LINE=`grep "wxUSE_X_RESOURCES" ${wx_arg_cache_file}`
3681 if test "x$LINE" != x ; then
3682 eval "DEFAULT_$LINE"
3683 else
3684 no_cache=1
3685 fi
3686
3687 ac_cv_use_xresources='wxUSE_X_RESOURCES='$DEFAULT_wxUSE_X_RESOURCES
3688
3689fi
3690
3691
3692 eval "$ac_cv_use_xresources"
3693 if test "$no_cache" != 1; then
3694 echo $ac_cv_use_xresources >> ${wx_arg_cache_file}.tmp
3695 fi
3696
3697 if test "$wxUSE_X_RESOURCES" = yes; then
3698 echo "$ac_t""yes" 1>&6
3699 else
3700 echo "$ac_t""no" 1>&6
3701 fi
3702
3703
3704
3705
3706 echo $ac_n "checking "for --enable-clipboard"""... $ac_c" 1>&6
e07802fc 3707echo "configure:3708: checking "for --enable-clipboard"" >&5
10f2d63a
VZ
3708 no_cache=0
3709 # Check whether --enable-clipboard or --disable-clipboard was given.
3710if test "${enable_clipboard+set}" = set; then
3711 enableval="$enable_clipboard"
3712
3713 if test "$enableval" = yes; then
3714 ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
3715 else
3716 ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
3717 fi
3718
3719else
3720
3721 LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
3722 if test "x$LINE" != x ; then
3723 eval "DEFAULT_$LINE"
3724 else
3725 no_cache=1
3726 fi
3727
3728 ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
3729
3730fi
3731
3732
3733 eval "$ac_cv_use_clipboard"
3734 if test "$no_cache" != 1; then
3735 echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
3736 fi
3737
3738 if test "$wxUSE_CLIPBOARD" = yes; then
3739 echo "$ac_t""yes" 1>&6
3740 else
3741 echo "$ac_t""no" 1>&6
3742 fi
3743
3744
3745 echo $ac_n "checking "for --enable-dnd"""... $ac_c" 1>&6
e07802fc 3746echo "configure:3747: checking "for --enable-dnd"" >&5
10f2d63a
VZ
3747 no_cache=0
3748 # Check whether --enable-dnd or --disable-dnd was given.
3749if test "${enable_dnd+set}" = set; then
3750 enableval="$enable_dnd"
3751
3752 if test "$enableval" = yes; then
3753 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
3754 else
3755 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
3756 fi
3757
3758else
3759
3760 LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
3761 if test "x$LINE" != x ; then
3762 eval "DEFAULT_$LINE"
3763 else
3764 no_cache=1
3765 fi
3766
3767 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
3768
3769fi
3770
3771
3772 eval "$ac_cv_use_dnd"
3773 if test "$no_cache" != 1; then
3774 echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
3775 fi
3776
3777 if test "$wxUSE_DRAG_AND_DROP" = yes; then
3778 echo "$ac_t""yes" 1>&6
3779 else
3780 echo "$ac_t""no" 1>&6
3781 fi
3782
3783
3784
3785 echo $ac_n "checking "for --enable-wxtree"""... $ac_c" 1>&6
e07802fc 3786echo "configure:3787: checking "for --enable-wxtree"" >&5
10f2d63a
VZ
3787 no_cache=0
3788 # Check whether --enable-wxtree or --disable-wxtree was given.
3789if test "${enable_wxtree+set}" = set; then
3790 enableval="$enable_wxtree"
3791
3792 if test "$enableval" = yes; then
3793 ac_cv_use_wxtree='wxUSE_WXTREE=yes'
3794 else
3795 ac_cv_use_wxtree='wxUSE_WXTREE=no'
3796 fi
3797
3798else
3799
3800 LINE=`grep "wxUSE_WXTREE" ${wx_arg_cache_file}`
3801 if test "x$LINE" != x ; then
3802 eval "DEFAULT_$LINE"
3803 else
3804 no_cache=1
3805 fi
3806
3807 ac_cv_use_wxtree='wxUSE_WXTREE='$DEFAULT_wxUSE_WXTREE
3808
3809fi
3810
3811
3812 eval "$ac_cv_use_wxtree"
3813 if test "$no_cache" != 1; then
3814 echo $ac_cv_use_wxtree >> ${wx_arg_cache_file}.tmp
3815 fi
3816
3817 if test "$wxUSE_WXTREE" = yes; then
3818 echo "$ac_t""yes" 1>&6
3819 else
3820 echo "$ac_t""no" 1>&6
3821 fi
3822
3823
3824
3825
3826 echo $ac_n "checking "for --enable-controls"""... $ac_c" 1>&6
e07802fc 3827echo "configure:3828: checking "for --enable-controls"" >&5
10f2d63a
VZ
3828 no_cache=0
3829 # Check whether --enable-controls or --disable-controls was given.
3830if test "${enable_controls+set}" = set; then
3831 enableval="$enable_controls"
3832
3833 if test "$enableval" = yes; then
3834 ac_cv_use_controls='wxUSE_CONTROLS=yes'
3835 else
3836 ac_cv_use_controls='wxUSE_CONTROLS=no'
3837 fi
3838
3839else
3840
3841 LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
3842 if test "x$LINE" != x ; then
3843 eval "DEFAULT_$LINE"
3844 else
3845 no_cache=1
3846 fi
3847
3848 ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
3849
3850fi
3851
3852
3853 eval "$ac_cv_use_controls"
3854 if test "$no_cache" != 1; then
3855 echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
3856 fi
3857
3858 if test "$wxUSE_CONTROLS" = yes; then
3859 echo "$ac_t""yes" 1>&6
3860 else
3861 echo "$ac_t""no" 1>&6
3862 fi
3863
3864
3865if test "$wxUSE_CONTROLS" = "yes"; then
3866 DEFAULT_wxUSE_ACCEL=yes
3867 DEFAULT_wxUSE_CARET=yes
3868 DEFAULT_wxUSE_COMBOBOX=yes
3869 DEFAULT_wxUSE_BMPBUTTON=yes
3870 DEFAULT_wxUSE_CHECKBOX=yes
3871 DEFAULT_wxUSE_CHECKLISTBOX=yes
3872 DEFAULT_wxUSE_CHOICE=yes
3873 DEFAULT_wxUSE_GAUGE=yes
3874 DEFAULT_wxUSE_GRID=yes
fc9c7c09 3875 DEFAULT_wxUSE_NEW_GRID=no
10f2d63a
VZ
3876 DEFAULT_wxUSE_IMAGLIST=yes
3877 DEFAULT_wxUSE_LISTBOX=yes
3878 DEFAULT_wxUSE_LISTCTRL=yes
3879 DEFAULT_wxUSE_NOTEBOOK=yes
3880 DEFAULT_wxUSE_RADIOBOX=yes
3881 DEFAULT_wxUSE_RADIOBTN=yes
3882 DEFAULT_wxUSE_SASH=yes
3883 DEFAULT_wxUSE_SCROLLBAR=yes
3884 DEFAULT_wxUSE_SLIDER=yes
3885 DEFAULT_wxUSE_SPINBTN=yes
56cfaa52 3886 DEFAULT_wxUSE_SPINCTRL=yes
10f2d63a
VZ
3887 DEFAULT_wxUSE_SPLITTER=yes
3888 DEFAULT_wxUSE_STATBMP=yes
3889 DEFAULT_wxUSE_STATBOX=yes
3890 DEFAULT_wxUSE_STATLINE=yes
3891 DEFAULT_wxUSE_STATUSBAR=yes
3892 DEFAULT_wxUSE_TAB_DIALOG=yes
3893 DEFAULT_wxUSE_TOOLBAR=yes
360d6699
VZ
3894 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
3895 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
10f2d63a
VZ
3896 DEFAULT_wxUSE_TOOLTIPS=yes
3897 DEFAULT_wxUSE_TREECTRL=yes
3898elif test "$wxUSE_CONTROLS" = "no"; then
3899 DEFAULT_wxUSE_ACCEL=no
3900 DEFAULT_wxUSE_CARET=no
3901 DEFAULT_wxUSE_COMBOBOX=no
3902 DEFAULT_wxUSE_BMPBUTTON=no
3903 DEFAULT_wxUSE_CHECKBOX=no
3904 DEFAULT_wxUSE_CHECKLISTBOX=no
3905 DEFAULT_wxUSE_CHOICE=no
3906 DEFAULT_wxUSE_GAUGE=no
3907 DEFAULT_wxUSE_GRID=no
3908 DEFAULT_wxUSE_NEW_GRID=no
3909 DEFAULT_wxUSE_IMAGLIST=no
3910 DEFAULT_wxUSE_LISTBOX=no
3911 DEFAULT_wxUSE_LISTCTRL=no
3912 DEFAULT_wxUSE_NOTEBOOK=no
3913 DEFAULT_wxUSE_RADIOBOX=no
3914 DEFAULT_wxUSE_RADIOBTN=no
3915 DEFAULT_wxUSE_SASH=no
3916 DEFAULT_wxUSE_SCROLLBAR=no
3917 DEFAULT_wxUSE_SLIDER=no
3918 DEFAULT_wxUSE_SPINBTN=no
56cfaa52 3919 DEFAULT_wxUSE_SPINCTRL=no
10f2d63a
VZ
3920 DEFAULT_wxUSE_SPLITTER=no
3921 DEFAULT_wxUSE_STATBMP=no
3922 DEFAULT_wxUSE_STATBOX=no
3923 DEFAULT_wxUSE_STATLINE=no
3924 DEFAULT_wxUSE_STATUSBAR=no
3925 DEFAULT_wxUSE_TAB_DIALOG=no
3926 DEFAULT_wxUSE_TOOLBAR=no
360d6699
VZ
3927 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
3928 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
10f2d63a
VZ
3929 DEFAULT_wxUSE_TOOLTIPS=no
3930 DEFAULT_wxUSE_TREECTRL=no
3931fi
3932
3933
3934 echo $ac_n "checking "for --enable-accel"""... $ac_c" 1>&6
e07802fc 3935echo "configure:3936: checking "for --enable-accel"" >&5
10f2d63a
VZ
3936 no_cache=0
3937 # Check whether --enable-accel or --disable-accel was given.
3938if test "${enable_accel+set}" = set; then
3939 enableval="$enable_accel"
3940
3941 if test "$enableval" = yes; then
3942 ac_cv_use_accel='wxUSE_ACCEL=yes'
3943 else
3944 ac_cv_use_accel='wxUSE_ACCEL=no'
3945 fi
3946
3947else
3948
3949 LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
3950 if test "x$LINE" != x ; then
3951 eval "DEFAULT_$LINE"
3952 else
3953 no_cache=1
3954 fi
3955
3956 ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
3957
3958fi
3959
3960
3961 eval "$ac_cv_use_accel"
3962 if test "$no_cache" != 1; then
3963 echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
3964 fi
3965
3966 if test "$wxUSE_ACCEL" = yes; then
3967 echo "$ac_t""yes" 1>&6
3968 else
3969 echo "$ac_t""no" 1>&6
3970 fi
3971
3972
3973 echo $ac_n "checking "for --enable-caret"""... $ac_c" 1>&6
e07802fc 3974echo "configure:3975: checking "for --enable-caret"" >&5
10f2d63a
VZ
3975 no_cache=0
3976 # Check whether --enable-caret or --disable-caret was given.
3977if test "${enable_caret+set}" = set; then
3978 enableval="$enable_caret"
3979
3980 if test "$enableval" = yes; then
3981 ac_cv_use_caret='wxUSE_CARET=yes'
3982 else
3983 ac_cv_use_caret='wxUSE_CARET=no'
3984 fi
3985
3986else
3987
3988 LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
3989 if test "x$LINE" != x ; then
3990 eval "DEFAULT_$LINE"
3991 else
3992 no_cache=1
3993 fi
3994
3995 ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
3996
3997fi
3998
3999
4000 eval "$ac_cv_use_caret"
4001 if test "$no_cache" != 1; then
4002 echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
4003 fi
4004
4005 if test "$wxUSE_CARET" = yes; then
4006 echo "$ac_t""yes" 1>&6
4007 else
4008 echo "$ac_t""no" 1>&6
4009 fi
4010
4011
4012 echo $ac_n "checking "for --enable-bmpbutton"""... $ac_c" 1>&6
e07802fc 4013echo "configure:4014: checking "for --enable-bmpbutton"" >&5
10f2d63a
VZ
4014 no_cache=0
4015 # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
4016if test "${enable_bmpbutton+set}" = set; then
4017 enableval="$enable_bmpbutton"
4018
4019 if test "$enableval" = yes; then
4020 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
4021 else
4022 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
4023 fi
4024
4025else
4026
4027 LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
4028 if test "x$LINE" != x ; then
4029 eval "DEFAULT_$LINE"
4030 else
4031 no_cache=1
4032 fi
4033
4034 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
4035
4036fi
4037
4038
4039 eval "$ac_cv_use_bmpbutton"
4040 if test "$no_cache" != 1; then
4041 echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
4042 fi
4043
4044 if test "$wxUSE_BMPBUTTON" = yes; then
4045 echo "$ac_t""yes" 1>&6
4046 else
4047 echo "$ac_t""no" 1>&6
4048 fi
4049
4050
4051 echo $ac_n "checking "for --enable-checkbox"""... $ac_c" 1>&6
e07802fc 4052echo "configure:4053: checking "for --enable-checkbox"" >&5
10f2d63a
VZ
4053 no_cache=0
4054 # Check whether --enable-checkbox or --disable-checkbox was given.
4055if test "${enable_checkbox+set}" = set; then
4056 enableval="$enable_checkbox"
4057
4058 if test "$enableval" = yes; then
4059 ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
4060 else
4061 ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
4062 fi
4063
4064else
4065
4066 LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
4067 if test "x$LINE" != x ; then
4068 eval "DEFAULT_$LINE"
4069 else
4070 no_cache=1
4071 fi
4072
4073 ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
4074
4075fi
4076
4077
4078 eval "$ac_cv_use_checkbox"
4079 if test "$no_cache" != 1; then
4080 echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
4081 fi
4082
4083 if test "$wxUSE_CHECKBOX" = yes; then
4084 echo "$ac_t""yes" 1>&6
4085 else
4086 echo "$ac_t""no" 1>&6
4087 fi
4088
4089
4090 echo $ac_n "checking "for --enable-checklst"""... $ac_c" 1>&6
e07802fc 4091echo "configure:4092: checking "for --enable-checklst"" >&5
10f2d63a
VZ
4092 no_cache=0
4093 # Check whether --enable-checklst or --disable-checklst was given.
4094if test "${enable_checklst+set}" = set; then
4095 enableval="$enable_checklst"
4096
4097 if test "$enableval" = yes; then
4098 ac_cv_use_checklst='wxUSE_CHECKLST=yes'
4099 else
4100 ac_cv_use_checklst='wxUSE_CHECKLST=no'
4101 fi
4102
4103else
4104
4105 LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
4106 if test "x$LINE" != x ; then
4107 eval "DEFAULT_$LINE"
4108 else
4109 no_cache=1
4110 fi
4111
4112 ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
4113
4114fi
4115
4116
4117 eval "$ac_cv_use_checklst"
4118 if test "$no_cache" != 1; then
4119 echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
4120 fi
4121
4122 if test "$wxUSE_CHECKLST" = yes; then
4123 echo "$ac_t""yes" 1>&6
4124 else
4125 echo "$ac_t""no" 1>&6
4126 fi
4127
4128
4129 echo $ac_n "checking "for --enable-choice"""... $ac_c" 1>&6
e07802fc 4130echo "configure:4131: checking "for --enable-choice"" >&5
10f2d63a
VZ
4131 no_cache=0
4132 # Check whether --enable-choice or --disable-choice was given.
4133if test "${enable_choice+set}" = set; then
4134 enableval="$enable_choice"
4135
4136 if test "$enableval" = yes; then
4137 ac_cv_use_choice='wxUSE_CHOICE=yes'
4138 else
4139 ac_cv_use_choice='wxUSE_CHOICE=no'
4140 fi
4141
4142else
4143
4144 LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
4145 if test "x$LINE" != x ; then
4146 eval "DEFAULT_$LINE"
4147 else
4148 no_cache=1
4149 fi
4150
4151 ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
4152
4153fi
4154
4155
4156 eval "$ac_cv_use_choice"
4157 if test "$no_cache" != 1; then
4158 echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
4159 fi
4160
4161 if test "$wxUSE_CHOICE" = yes; then
4162 echo "$ac_t""yes" 1>&6
4163 else
4164 echo "$ac_t""no" 1>&6
4165 fi
4166
4167
4168 echo $ac_n "checking "for --enable-combobox"""... $ac_c" 1>&6
e07802fc 4169echo "configure:4170: checking "for --enable-combobox"" >&5
10f2d63a
VZ
4170 no_cache=0
4171 # Check whether --enable-combobox or --disable-combobox was given.
4172if test "${enable_combobox+set}" = set; then
4173 enableval="$enable_combobox"
4174
4175 if test "$enableval" = yes; then
4176 ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
4177 else
4178 ac_cv_use_combobox='wxUSE_COMBOBOX=no'
4179 fi
4180
4181else
4182
4183 LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
4184 if test "x$LINE" != x ; then
4185 eval "DEFAULT_$LINE"
4186 else
4187 no_cache=1
4188 fi
4189
4190 ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
4191
4192fi
4193
4194
4195 eval "$ac_cv_use_combobox"
4196 if test "$no_cache" != 1; then
4197 echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
4198 fi
4199
4200 if test "$wxUSE_COMBOBOX" = yes; then
4201 echo "$ac_t""yes" 1>&6
4202 else
4203 echo "$ac_t""no" 1>&6
4204 fi
4205
4206
4207 echo $ac_n "checking "for --enable-gauge"""... $ac_c" 1>&6
e07802fc 4208echo "configure:4209: checking "for --enable-gauge"" >&5
10f2d63a
VZ
4209 no_cache=0
4210 # Check whether --enable-gauge or --disable-gauge was given.
4211if test "${enable_gauge+set}" = set; then
4212 enableval="$enable_gauge"
4213
4214 if test "$enableval" = yes; then
4215 ac_cv_use_gauge='wxUSE_GAUGE=yes'
4216 else
4217 ac_cv_use_gauge='wxUSE_GAUGE=no'
4218 fi
4219
4220else
4221
4222 LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
4223 if test "x$LINE" != x ; then
4224 eval "DEFAULT_$LINE"
4225 else
4226 no_cache=1
4227 fi
4228
4229 ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
4230
4231fi
4232
4233
4234 eval "$ac_cv_use_gauge"
4235 if test "$no_cache" != 1; then
4236 echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
4237 fi
4238
4239 if test "$wxUSE_GAUGE" = yes; then
4240 echo "$ac_t""yes" 1>&6
4241 else
4242 echo "$ac_t""no" 1>&6
4243 fi
4244
4245
4246 echo $ac_n "checking "for --enable-grid"""... $ac_c" 1>&6
e07802fc 4247echo "configure:4248: checking "for --enable-grid"" >&5
10f2d63a
VZ
4248 no_cache=0
4249 # Check whether --enable-grid or --disable-grid was given.
4250if test "${enable_grid+set}" = set; then
4251 enableval="$enable_grid"
4252
4253 if test "$enableval" = yes; then
4254 ac_cv_use_grid='wxUSE_GRID=yes'
4255 else
4256 ac_cv_use_grid='wxUSE_GRID=no'
4257 fi
4258
4259else
4260
4261 LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
4262 if test "x$LINE" != x ; then
4263 eval "DEFAULT_$LINE"
4264 else
4265 no_cache=1
4266 fi
4267
4268 ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
4269
4270fi
4271
4272
4273 eval "$ac_cv_use_grid"
4274 if test "$no_cache" != 1; then
4275 echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
4276 fi
4277
4278 if test "$wxUSE_GRID" = yes; then
4279 echo "$ac_t""yes" 1>&6
4280 else
4281 echo "$ac_t""no" 1>&6
4282 fi
4283
4284
4285 echo $ac_n "checking "for --enable-newgrid"""... $ac_c" 1>&6
e07802fc 4286echo "configure:4287: checking "for --enable-newgrid"" >&5
10f2d63a
VZ
4287 no_cache=0
4288 # Check whether --enable-newgrid or --disable-newgrid was given.
4289if test "${enable_newgrid+set}" = set; then
4290 enableval="$enable_newgrid"
4291
4292 if test "$enableval" = yes; then
4293 ac_cv_use_newgrid='wxUSE_NEW_GRID=yes'
4294 else
4295 ac_cv_use_newgrid='wxUSE_NEW_GRID=no'
4296 fi
4297
4298else
4299
4300 LINE=`grep "wxUSE_NEW_GRID" ${wx_arg_cache_file}`
4301 if test "x$LINE" != x ; then
4302 eval "DEFAULT_$LINE"
4303 else
4304 no_cache=1
4305 fi
4306
4307 ac_cv_use_newgrid='wxUSE_NEW_GRID='$DEFAULT_wxUSE_NEW_GRID
4308
4309fi
4310
4311
4312 eval "$ac_cv_use_newgrid"
4313 if test "$no_cache" != 1; then
4314 echo $ac_cv_use_newgrid >> ${wx_arg_cache_file}.tmp
4315 fi
4316
4317 if test "$wxUSE_NEW_GRID" = yes; then
4318 echo "$ac_t""yes" 1>&6
4319 else
4320 echo "$ac_t""no" 1>&6
4321 fi
4322
4323
4324 echo $ac_n "checking "for --enable-imaglist"""... $ac_c" 1>&6
e07802fc 4325echo "configure:4326: checking "for --enable-imaglist"" >&5
10f2d63a
VZ
4326 no_cache=0
4327 # Check whether --enable-imaglist or --disable-imaglist was given.
4328if test "${enable_imaglist+set}" = set; then
4329 enableval="$enable_imaglist"
4330
4331 if test "$enableval" = yes; then
4332 ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
4333 else
4334 ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
4335 fi
4336
4337else
4338
4339 LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
4340 if test "x$LINE" != x ; then
4341 eval "DEFAULT_$LINE"
4342 else
4343 no_cache=1
4344 fi
4345
4346 ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
4347
4348fi
4349
4350
4351 eval "$ac_cv_use_imaglist"
4352 if test "$no_cache" != 1; then
4353 echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
4354 fi
4355
4356 if test "$wxUSE_IMAGLIST" = yes; then
4357 echo "$ac_t""yes" 1>&6
4358 else
4359 echo "$ac_t""no" 1>&6
4360 fi
4361
4362
4363 echo $ac_n "checking "for --enable-listbox"""... $ac_c" 1>&6
e07802fc 4364echo "configure:4365: checking "for --enable-listbox"" >&5
10f2d63a
VZ
4365 no_cache=0
4366 # Check whether --enable-listbox or --disable-listbox was given.
4367if test "${enable_listbox+set}" = set; then
4368 enableval="$enable_listbox"
4369
4370 if test "$enableval" = yes; then
4371 ac_cv_use_listbox='wxUSE_LISTBOX=yes'
4372 else
4373 ac_cv_use_listbox='wxUSE_LISTBOX=no'
4374 fi
4375
4376else
4377
4378 LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
4379 if test "x$LINE" != x ; then
4380 eval "DEFAULT_$LINE"
4381 else
4382 no_cache=1
4383 fi
4384
4385 ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
4386
4387fi
4388
4389
4390 eval "$ac_cv_use_listbox"
4391 if test "$no_cache" != 1; then
4392 echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
4393 fi
4394
4395 if test "$wxUSE_LISTBOX" = yes; then
4396 echo "$ac_t""yes" 1>&6
4397 else
4398 echo "$ac_t""no" 1>&6
4399 fi
4400
4401
4402 echo $ac_n "checking "for --enable-listctrl"""... $ac_c" 1>&6
e07802fc 4403echo "configure:4404: checking "for --enable-listctrl"" >&5
10f2d63a
VZ
4404 no_cache=0
4405 # Check whether --enable-listctrl or --disable-listctrl was given.
4406if test "${enable_listctrl+set}" = set; then
4407 enableval="$enable_listctrl"
4408
4409 if test "$enableval" = yes; then
4410 ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
4411 else
4412 ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
4413 fi
4414
4415else
4416
4417 LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
4418 if test "x$LINE" != x ; then
4419 eval "DEFAULT_$LINE"
4420 else
4421 no_cache=1
4422 fi
4423
4424 ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
4425
4426fi
4427
4428
4429 eval "$ac_cv_use_listctrl"
4430 if test "$no_cache" != 1; then
4431 echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
4432 fi
4433
4434 if test "$wxUSE_LISTCTRL" = yes; then
4435 echo "$ac_t""yes" 1>&6
4436 else
4437 echo "$ac_t""no" 1>&6
4438 fi
4439
4440
4441 echo $ac_n "checking "for --enable-notebook"""... $ac_c" 1>&6
e07802fc 4442echo "configure:4443: checking "for --enable-notebook"" >&5
10f2d63a
VZ
4443 no_cache=0
4444 # Check whether --enable-notebook or --disable-notebook was given.
4445if test "${enable_notebook+set}" = set; then
4446 enableval="$enable_notebook"
4447
4448 if test "$enableval" = yes; then
4449 ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
4450 else
4451 ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
4452 fi
4453
4454else
4455
4456 LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
4457 if test "x$LINE" != x ; then
4458 eval "DEFAULT_$LINE"
4459 else
4460 no_cache=1
4461 fi
4462
4463 ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
4464
4465fi
4466
4467
4468 eval "$ac_cv_use_notebook"
4469 if test "$no_cache" != 1; then
4470 echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
4471 fi
4472
4473 if test "$wxUSE_NOTEBOOK" = yes; then
4474 echo "$ac_t""yes" 1>&6
4475 else
4476 echo "$ac_t""no" 1>&6
4477 fi
4478
4479
4480 echo $ac_n "checking "for --enable-radiobox"""... $ac_c" 1>&6
e07802fc 4481echo "configure:4482: checking "for --enable-radiobox"" >&5
10f2d63a
VZ
4482 no_cache=0
4483 # Check whether --enable-radiobox or --disable-radiobox was given.
4484if test "${enable_radiobox+set}" = set; then
4485 enableval="$enable_radiobox"
4486
4487 if test "$enableval" = yes; then
4488 ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
4489 else
4490 ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
4491 fi
4492
4493else
4494
4495 LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
4496 if test "x$LINE" != x ; then
4497 eval "DEFAULT_$LINE"
4498 else
4499 no_cache=1
4500 fi
4501
4502 ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
4503
4504fi
4505
4506
4507 eval "$ac_cv_use_radiobox"
4508 if test "$no_cache" != 1; then
4509 echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
4510 fi
4511
4512 if test "$wxUSE_RADIOBOX" = yes; then
4513 echo "$ac_t""yes" 1>&6
4514 else
4515 echo "$ac_t""no" 1>&6
4516 fi
4517
4518
4519 echo $ac_n "checking "for --enable-radiobtn"""... $ac_c" 1>&6
e07802fc 4520echo "configure:4521: checking "for --enable-radiobtn"" >&5
10f2d63a
VZ
4521 no_cache=0
4522 # Check whether --enable-radiobtn or --disable-radiobtn was given.
4523if test "${enable_radiobtn+set}" = set; then
4524 enableval="$enable_radiobtn"
4525
4526 if test "$enableval" = yes; then
4527 ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
4528 else
4529 ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
4530 fi
4531
4532else
4533
4534 LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
4535 if test "x$LINE" != x ; then
4536 eval "DEFAULT_$LINE"
4537 else
4538 no_cache=1
4539 fi
4540
4541 ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
4542
4543fi
4544
4545
4546 eval "$ac_cv_use_radiobtn"
4547 if test "$no_cache" != 1; then
4548 echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
4549 fi
4550
4551 if test "$wxUSE_RADIOBTN" = yes; then
4552 echo "$ac_t""yes" 1>&6
4553 else
4554 echo "$ac_t""no" 1>&6
4555 fi
4556
4557
4558 echo $ac_n "checking "for --enable-sash"""... $ac_c" 1>&6
e07802fc 4559echo "configure:4560: checking "for --enable-sash"" >&5
10f2d63a
VZ
4560 no_cache=0
4561 # Check whether --enable-sash or --disable-sash was given.
4562if test "${enable_sash+set}" = set; then
4563 enableval="$enable_sash"
4564
4565 if test "$enableval" = yes; then
4566 ac_cv_use_sash='wxUSE_SASH=yes'
4567 else
4568 ac_cv_use_sash='wxUSE_SASH=no'
4569 fi
4570
4571else
4572
4573 LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
4574 if test "x$LINE" != x ; then
4575 eval "DEFAULT_$LINE"
4576 else
4577 no_cache=1
4578 fi
4579
4580 ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
4581
4582fi
4583
4584
4585 eval "$ac_cv_use_sash"
4586 if test "$no_cache" != 1; then
4587 echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
4588 fi
4589
4590 if test "$wxUSE_SASH" = yes; then
4591 echo "$ac_t""yes" 1>&6
4592 else
4593 echo "$ac_t""no" 1>&6
4594 fi
4595
4596
4597 echo $ac_n "checking "for --enable-scrollbar"""... $ac_c" 1>&6
e07802fc 4598echo "configure:4599: checking "for --enable-scrollbar"" >&5
10f2d63a
VZ
4599 no_cache=0
4600 # Check whether --enable-scrollbar or --disable-scrollbar was given.
4601if test "${enable_scrollbar+set}" = set; then
4602 enableval="$enable_scrollbar"
4603
4604 if test "$enableval" = yes; then
4605 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
4606 else
4607 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
4608 fi
4609
4610else
4611
4612 LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
4613 if test "x$LINE" != x ; then
4614 eval "DEFAULT_$LINE"
4615 else
4616 no_cache=1
4617 fi
4618
4619 ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
4620
4621fi
4622
4623
4624 eval "$ac_cv_use_scrollbar"
4625 if test "$no_cache" != 1; then
4626 echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
4627 fi
4628
4629 if test "$wxUSE_SCROLLBAR" = yes; then
4630 echo "$ac_t""yes" 1>&6
4631 else
4632 echo "$ac_t""no" 1>&6
4633 fi
4634
4635
4636 echo $ac_n "checking "for --enable-slider"""... $ac_c" 1>&6
e07802fc 4637echo "configure:4638: checking "for --enable-slider"" >&5
10f2d63a
VZ
4638 no_cache=0
4639 # Check whether --enable-slider or --disable-slider was given.
4640if test "${enable_slider+set}" = set; then
4641 enableval="$enable_slider"
4642
4643 if test "$enableval" = yes; then
4644 ac_cv_use_slider='wxUSE_SLIDER=yes'
4645 else
4646 ac_cv_use_slider='wxUSE_SLIDER=no'
4647 fi
4648
4649else
4650
4651 LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
4652 if test "x$LINE" != x ; then
4653 eval "DEFAULT_$LINE"
4654 else
4655 no_cache=1
4656 fi
4657
4658 ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
4659
4660fi
4661
4662
4663 eval "$ac_cv_use_slider"
4664 if test "$no_cache" != 1; then
4665 echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
4666 fi
4667
4668 if test "$wxUSE_SLIDER" = yes; then
4669 echo "$ac_t""yes" 1>&6
4670 else
4671 echo "$ac_t""no" 1>&6
4672 fi
4673
4674
4675 echo $ac_n "checking "for --enable-spinbtn"""... $ac_c" 1>&6
e07802fc 4676echo "configure:4677: checking "for --enable-spinbtn"" >&5
10f2d63a
VZ
4677 no_cache=0
4678 # Check whether --enable-spinbtn or --disable-spinbtn was given.
4679if test "${enable_spinbtn+set}" = set; then
4680 enableval="$enable_spinbtn"
4681
4682 if test "$enableval" = yes; then
4683 ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
4684 else
4685 ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
4686 fi
4687
4688else
4689
4690 LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
4691 if test "x$LINE" != x ; then
4692 eval "DEFAULT_$LINE"
4693 else
4694 no_cache=1
4695 fi
4696
4697 ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
4698
4699fi
4700
4701
4702 eval "$ac_cv_use_spinbtn"
4703 if test "$no_cache" != 1; then
4704 echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
4705 fi
4706
4707 if test "$wxUSE_SPINBTN" = yes; then
4708 echo "$ac_t""yes" 1>&6
4709 else
4710 echo "$ac_t""no" 1>&6
4711 fi
4712
4713
56cfaa52 4714 echo $ac_n "checking "for --enable-spinctrl"""... $ac_c" 1>&6
e07802fc 4715echo "configure:4716: checking "for --enable-spinctrl"" >&5
56cfaa52
RR
4716 no_cache=0
4717 # Check whether --enable-spinctrl or --disable-spinctrl was given.
4718if test "${enable_spinctrl+set}" = set; then
4719 enableval="$enable_spinctrl"
4720
4721 if test "$enableval" = yes; then
4722 ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
4723 else
4724 ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
4725 fi
4726
4727else
4728
4729 LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
4730 if test "x$LINE" != x ; then
4731 eval "DEFAULT_$LINE"
4732 else
4733 no_cache=1
4734 fi
4735
4736 ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
4737
4738fi
4739
4740
4741 eval "$ac_cv_use_spinctrl"
4742 if test "$no_cache" != 1; then
4743 echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
4744 fi
4745
4746 if test "$wxUSE_SPINCTRL" = yes; then
4747 echo "$ac_t""yes" 1>&6
4748 else
4749 echo "$ac_t""no" 1>&6
4750 fi
4751
4752
10f2d63a 4753 echo $ac_n "checking "for --enable-splitter"""... $ac_c" 1>&6
e07802fc 4754echo "configure:4755: checking "for --enable-splitter"" >&5
10f2d63a
VZ
4755 no_cache=0
4756 # Check whether --enable-splitter or --disable-splitter was given.
4757if test "${enable_splitter+set}" = set; then
4758 enableval="$enable_splitter"
4759
4760 if test "$enableval" = yes; then
4761 ac_cv_use_splitter='wxUSE_SPLITTER=yes'
4762 else
4763 ac_cv_use_splitter='wxUSE_SPLITTER=no'
4764 fi
4765
4766else
4767
4768 LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
4769 if test "x$LINE" != x ; then
4770 eval "DEFAULT_$LINE"
4771 else
4772 no_cache=1
4773 fi
4774
4775 ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
4776
4777fi
4778
4779
4780 eval "$ac_cv_use_splitter"
4781 if test "$no_cache" != 1; then
4782 echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
4783 fi
4784
4785 if test "$wxUSE_SPLITTER" = yes; then
4786 echo "$ac_t""yes" 1>&6
4787 else
4788 echo "$ac_t""no" 1>&6
4789 fi
4790
4791
4792 echo $ac_n "checking "for --enable-statbmp"""... $ac_c" 1>&6
e07802fc 4793echo "configure:4794: checking "for --enable-statbmp"" >&5
10f2d63a
VZ
4794 no_cache=0
4795 # Check whether --enable-statbmp or --disable-statbmp was given.
4796if test "${enable_statbmp+set}" = set; then
4797 enableval="$enable_statbmp"
4798
4799 if test "$enableval" = yes; then
4800 ac_cv_use_statbmp='wxUSE_STATBMP=yes'
4801 else
4802 ac_cv_use_statbmp='wxUSE_STATBMP=no'
4803 fi
4804
4805else
4806
4807 LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
4808 if test "x$LINE" != x ; then
4809 eval "DEFAULT_$LINE"
4810 else
4811 no_cache=1
4812 fi
4813
4814 ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
4815
4816fi
4817
4818
4819 eval "$ac_cv_use_statbmp"
4820 if test "$no_cache" != 1; then
4821 echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
4822 fi
4823
4824 if test "$wxUSE_STATBMP" = yes; then
4825 echo "$ac_t""yes" 1>&6
4826 else
4827 echo "$ac_t""no" 1>&6
4828 fi
4829
4830
4831 echo $ac_n "checking "for --enable-statbox"""... $ac_c" 1>&6
e07802fc 4832echo "configure:4833: checking "for --enable-statbox"" >&5
10f2d63a
VZ
4833 no_cache=0
4834 # Check whether --enable-statbox or --disable-statbox was given.
4835if test "${enable_statbox+set}" = set; then
4836 enableval="$enable_statbox"
4837
4838 if test "$enableval" = yes; then
4839 ac_cv_use_statbox='wxUSE_STATBOX=yes'
4840 else
4841 ac_cv_use_statbox='wxUSE_STATBOX=no'
4842 fi
4843
4844else
4845
4846 LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
4847 if test "x$LINE" != x ; then
4848 eval "DEFAULT_$LINE"
4849 else
4850 no_cache=1
4851 fi
4852
4853 ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
4854
4855fi
4856
4857
4858 eval "$ac_cv_use_statbox"
4859 if test "$no_cache" != 1; then
4860 echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
4861 fi
4862
4863 if test "$wxUSE_STATBOX" = yes; then
4864 echo "$ac_t""yes" 1>&6
4865 else
4866 echo "$ac_t""no" 1>&6
4867 fi
4868
4869
4870 echo $ac_n "checking "for --enable-statline"""... $ac_c" 1>&6
e07802fc 4871echo "configure:4872: checking "for --enable-statline"" >&5
10f2d63a
VZ
4872 no_cache=0
4873 # Check whether --enable-statline or --disable-statline was given.
4874if test "${enable_statline+set}" = set; then
4875 enableval="$enable_statline"
4876
4877 if test "$enableval" = yes; then
4878 ac_cv_use_statline='wxUSE_STATLINE=yes'
4879 else
4880 ac_cv_use_statline='wxUSE_STATLINE=no'
4881 fi
4882
4883else
4884
4885 LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
4886 if test "x$LINE" != x ; then
4887 eval "DEFAULT_$LINE"
4888 else
4889 no_cache=1
4890 fi
4891
4892 ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
4893
4894fi
4895
4896
4897 eval "$ac_cv_use_statline"
4898 if test "$no_cache" != 1; then
4899 echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
4900 fi
4901
4902 if test "$wxUSE_STATLINE" = yes; then
4903 echo "$ac_t""yes" 1>&6
4904 else
4905 echo "$ac_t""no" 1>&6
4906 fi
4907
4908
4909 echo $ac_n "checking "for --enable-statusbar"""... $ac_c" 1>&6
e07802fc 4910echo "configure:4911: checking "for --enable-statusbar"" >&5
10f2d63a
VZ
4911 no_cache=0
4912 # Check whether --enable-statusbar or --disable-statusbar was given.
4913if test "${enable_statusbar+set}" = set; then
4914 enableval="$enable_statusbar"
4915
4916 if test "$enableval" = yes; then
4917 ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
4918 else
4919 ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
4920 fi
4921
4922else
4923
4924 LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
4925 if test "x$LINE" != x ; then
4926 eval "DEFAULT_$LINE"
4927 else
4928 no_cache=1
4929 fi
4930
4931 ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
4932
4933fi
4934
4935
4936 eval "$ac_cv_use_statusbar"
4937 if test "$no_cache" != 1; then
4938 echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
4939 fi
4940
4941 if test "$wxUSE_STATUSBAR" = yes; then
4942 echo "$ac_t""yes" 1>&6
4943 else
4944 echo "$ac_t""no" 1>&6
4945 fi
4946
4947
4948 echo $ac_n "checking "for --enable-tabdialog"""... $ac_c" 1>&6
e07802fc 4949echo "configure:4950: checking "for --enable-tabdialog"" >&5
10f2d63a
VZ
4950 no_cache=0
4951 # Check whether --enable-tabdialog or --disable-tabdialog was given.
4952if test "${enable_tabdialog+set}" = set; then
4953 enableval="$enable_tabdialog"
4954
4955 if test "$enableval" = yes; then
4956 ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes'
4957 else
4958 ac_cv_use_tabdialog='wxUSE_TABDIALOG=no'
4959 fi
4960
4961else
4962
4963 LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}`
4964 if test "x$LINE" != x ; then
4965 eval "DEFAULT_$LINE"
4966 else
4967 no_cache=1
4968 fi
4969
4970 ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG
4971
4972fi
4973
4974
4975 eval "$ac_cv_use_tabdialog"
4976 if test "$no_cache" != 1; then
4977 echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
4978 fi
4979
4980 if test "$wxUSE_TABDIALOG" = yes; then
4981 echo "$ac_t""yes" 1>&6
4982 else
4983 echo "$ac_t""no" 1>&6
4984 fi
4985
4986
4987 echo $ac_n "checking "for --enable-toolbar"""... $ac_c" 1>&6
e07802fc 4988echo "configure:4989: checking "for --enable-toolbar"" >&5
10f2d63a
VZ
4989 no_cache=0
4990 # Check whether --enable-toolbar or --disable-toolbar was given.
4991if test "${enable_toolbar+set}" = set; then
4992 enableval="$enable_toolbar"
4993
4994 if test "$enableval" = yes; then
4995 ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
4996 else
4997 ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
4998 fi
4999
5000else
5001
5002 LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
5003 if test "x$LINE" != x ; then
5004 eval "DEFAULT_$LINE"
5005 else
5006 no_cache=1
5007 fi
5008
5009 ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
5010
5011fi
5012
5013
5014 eval "$ac_cv_use_toolbar"
5015 if test "$no_cache" != 1; then
5016 echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
5017 fi
5018
5019 if test "$wxUSE_TOOLBAR" = yes; then
5020 echo "$ac_t""yes" 1>&6
5021 else
5022 echo "$ac_t""no" 1>&6
5023 fi
5024
5025
360d6699 5026 echo $ac_n "checking "for --enable-tbarnative"""... $ac_c" 1>&6
e07802fc 5027echo "configure:5028: checking "for --enable-tbarnative"" >&5
360d6699
VZ
5028 no_cache=0
5029 # Check whether --enable-tbarnative or --disable-tbarnative was given.
5030if test "${enable_tbarnative+set}" = set; then
5031 enableval="$enable_tbarnative"
5032
5033 if test "$enableval" = yes; then
5034 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
5035 else
5036 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
5037 fi
5038
5039else
5040
5041 LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
5042 if test "x$LINE" != x ; then
5043 eval "DEFAULT_$LINE"
5044 else
5045 no_cache=1
5046 fi
5047
5048 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
5049
5050fi
5051
5052
5053 eval "$ac_cv_use_tbarnative"
5054 if test "$no_cache" != 1; then
5055 echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
5056 fi
5057
5058 if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
5059 echo "$ac_t""yes" 1>&6
5060 else
5061 echo "$ac_t""no" 1>&6
5062 fi
5063
5064
5065 echo $ac_n "checking "for --enable-tbarsmpl"""... $ac_c" 1>&6
e07802fc 5066echo "configure:5067: checking "for --enable-tbarsmpl"" >&5
360d6699
VZ
5067 no_cache=0
5068 # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given.
5069if test "${enable_tbarsmpl+set}" = set; then
5070 enableval="$enable_tbarsmpl"
5071
5072 if test "$enableval" = yes; then
5073 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes'
5074 else
5075 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no'
5076 fi
5077
5078else
5079
5080 LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}`
5081 if test "x$LINE" != x ; then
5082 eval "DEFAULT_$LINE"
5083 else
5084 no_cache=1
5085 fi
5086
5087 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE
5088
5089fi
5090
5091
5092 eval "$ac_cv_use_tbarsmpl"
5093 if test "$no_cache" != 1; then
5094 echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp
5095 fi
5096
5097 if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then
5098 echo "$ac_t""yes" 1>&6
5099 else
5100 echo "$ac_t""no" 1>&6
5101 fi
5102
5103
10f2d63a 5104 echo $ac_n "checking "for --enable-treectrl"""... $ac_c" 1>&6
e07802fc 5105echo "configure:5106: checking "for --enable-treectrl"" >&5
10f2d63a
VZ
5106 no_cache=0
5107 # Check whether --enable-treectrl or --disable-treectrl was given.
5108if test "${enable_treectrl+set}" = set; then
5109 enableval="$enable_treectrl"
5110
5111 if test "$enableval" = yes; then
5112 ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
5113 else
5114 ac_cv_use_treectrl='wxUSE_TREECTRL=no'
5115 fi
5116
5117else
5118
5119 LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
5120 if test "x$LINE" != x ; then
5121 eval "DEFAULT_$LINE"
5122 else
5123 no_cache=1
5124 fi
5125
5126 ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
5127
5128fi
5129
5130
5131 eval "$ac_cv_use_treectrl"
5132 if test "$no_cache" != 1; then
5133 echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
5134 fi
5135
5136 if test "$wxUSE_TREECTRL" = yes; then
5137 echo "$ac_t""yes" 1>&6
5138 else
5139 echo "$ac_t""no" 1>&6
5140 fi
5141
5142
5143
5144
5145 echo $ac_n "checking "for --enable-commondlg"""... $ac_c" 1>&6
e07802fc 5146echo "configure:5147: checking "for --enable-commondlg"" >&5
10f2d63a
VZ
5147 no_cache=0
5148 # Check whether --enable-commondlg or --disable-commondlg was given.
5149if test "${enable_commondlg+set}" = set; then
5150 enableval="$enable_commondlg"
5151
5152 if test "$enableval" = yes; then
5153 ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
5154 else
5155 ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
5156 fi
5157
5158else
5159
5160 LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
5161 if test "x$LINE" != x ; then
5162 eval "DEFAULT_$LINE"
5163 else
5164 no_cache=1
5165 fi
5166
5167 ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
5168
5169fi
5170
5171
5172 eval "$ac_cv_use_commondlg"
5173 if test "$no_cache" != 1; then
5174 echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
5175 fi
5176
5177 if test "$wxUSE_COMMONDLGS" = yes; then
5178 echo "$ac_t""yes" 1>&6
5179 else
5180 echo "$ac_t""no" 1>&6
5181 fi
5182
5183
5184 echo $ac_n "checking "for --enable-dirdlg"""... $ac_c" 1>&6
e07802fc 5185echo "configure:5186: checking "for --enable-dirdlg"" >&5
10f2d63a
VZ
5186 no_cache=0
5187 # Check whether --enable-dirdlg or --disable-dirdlg was given.
5188if test "${enable_dirdlg+set}" = set; then
5189 enableval="$enable_dirdlg"
5190
5191 if test "$enableval" = yes; then
5192 ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
5193 else
5194 ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
5195 fi
5196
5197else
5198
5199 LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
5200 if test "x$LINE" != x ; then
5201 eval "DEFAULT_$LINE"
5202 else
5203 no_cache=1
5204 fi
5205
5206 ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
5207
5208fi
5209
5210
5211 eval "$ac_cv_use_dirdlg"
5212 if test "$no_cache" != 1; then
5213 echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
5214 fi
5215
5216 if test "$wxUSE_DIRDLG" = yes; then
5217 echo "$ac_t""yes" 1>&6
5218 else
5219 echo "$ac_t""no" 1>&6
5220 fi
5221
5222
5223 echo $ac_n "checking "for --enable-textdlg"""... $ac_c" 1>&6
e07802fc 5224echo "configure:5225: checking "for --enable-textdlg"" >&5
10f2d63a
VZ
5225 no_cache=0
5226 # Check whether --enable-textdlg or --disable-textdlg was given.
5227if test "${enable_textdlg+set}" = set; then
5228 enableval="$enable_textdlg"
5229
5230 if test "$enableval" = yes; then
5231 ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
5232 else
5233 ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
5234 fi
5235
5236else
5237
5238 LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
5239 if test "x$LINE" != x ; then
5240 eval "DEFAULT_$LINE"
5241 else
5242 no_cache=1
5243 fi
5244
5245 ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
5246
5247fi
5248
5249
5250 eval "$ac_cv_use_textdlg"
5251 if test "$no_cache" != 1; then
5252 echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
5253 fi
5254
5255 if test "$wxUSE_TEXTDLG" = yes; then
5256 echo "$ac_t""yes" 1>&6
5257 else
5258 echo "$ac_t""no" 1>&6
5259 fi
5260
5261
5262 echo $ac_n "checking "for --enable-tipdlg"""... $ac_c" 1>&6
e07802fc 5263echo "configure:5264: checking "for --enable-tipdlg"" >&5
10f2d63a
VZ
5264 no_cache=0
5265 # Check whether --enable-tipdlg or --disable-tipdlg was given.
5266if test "${enable_tipdlg+set}" = set; then
5267 enableval="$enable_tipdlg"
5268
5269 if test "$enableval" = yes; then
5270 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
5271 else
5272 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
5273 fi
5274
5275else
5276
5277 LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
5278 if test "x$LINE" != x ; then
5279 eval "DEFAULT_$LINE"
5280 else
5281 no_cache=1
5282 fi
5283
5284 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
5285
5286fi
5287
5288
5289 eval "$ac_cv_use_tipdlg"
5290 if test "$no_cache" != 1; then
5291 echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
5292 fi
5293
5294 if test "$wxUSE_STARTUP_TIPS" = yes; then
5295 echo "$ac_t""yes" 1>&6
5296 else
5297 echo "$ac_t""no" 1>&6
5298 fi
5299
5300
5301 echo $ac_n "checking "for --enable-progressdlg"""... $ac_c" 1>&6
e07802fc 5302echo "configure:5303: checking "for --enable-progressdlg"" >&5
10f2d63a
VZ
5303 no_cache=0
5304 # Check whether --enable-progressdlg or --disable-progressdlg was given.
5305if test "${enable_progressdlg+set}" = set; then
5306 enableval="$enable_progressdlg"
5307
5308 if test "$enableval" = yes; then
5309 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
5310 else
5311 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
5312 fi
5313
5314else
5315
5316 LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
5317 if test "x$LINE" != x ; then
5318 eval "DEFAULT_$LINE"
5319 else
5320 no_cache=1
5321 fi
5322
5323 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
5324
5325fi
5326
5327
5328 eval "$ac_cv_use_progressdlg"
5329 if test "$no_cache" != 1; then
5330 echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
5331 fi
5332
5333 if test "$wxUSE_PROGRESSDLG" = yes; then
5334 echo "$ac_t""yes" 1>&6
5335 else
5336 echo "$ac_t""no" 1>&6
5337 fi
5338
5339
5340 echo $ac_n "checking "for --enable-miniframe"""... $ac_c" 1>&6
e07802fc 5341echo "configure:5342: checking "for --enable-miniframe"" >&5
10f2d63a
VZ
5342 no_cache=0
5343 # Check whether --enable-miniframe or --disable-miniframe was given.
5344if test "${enable_miniframe+set}" = set; then
5345 enableval="$enable_miniframe"
5346
5347 if test "$enableval" = yes; then
5348 ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
5349 else
5350 ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
5351 fi
5352
5353else
5354
5355 LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
5356 if test "x$LINE" != x ; then
5357 eval "DEFAULT_$LINE"
5358 else
5359 no_cache=1
5360 fi
5361
5362 ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
5363
5364fi
5365
5366
5367 eval "$ac_cv_use_miniframe"
5368 if test "$no_cache" != 1; then
5369 echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
5370 fi
5371
5372 if test "$wxUSE_MINIFRAME" = yes; then
5373 echo "$ac_t""yes" 1>&6
5374 else
5375 echo "$ac_t""no" 1>&6
5376 fi
5377
5378
5379 echo $ac_n "checking "for --enable-html"""... $ac_c" 1>&6
e07802fc 5380echo "configure:5381: checking "for --enable-html"" >&5
10f2d63a
VZ
5381 no_cache=0
5382 # Check whether --enable-html or --disable-html was given.
5383if test "${enable_html+set}" = set; then
5384 enableval="$enable_html"
5385
5386 if test "$enableval" = yes; then
5387 ac_cv_use_html='wxUSE_HTML=yes'
5388 else
5389 ac_cv_use_html='wxUSE_HTML=no'
5390 fi
5391
5392else
5393
5394 LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
5395 if test "x$LINE" != x ; then
5396 eval "DEFAULT_$LINE"
5397 else
5398 no_cache=1
5399 fi
5400
5401 ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
5402
5403fi
5404
5405
5406 eval "$ac_cv_use_html"
5407 if test "$no_cache" != 1; then
5408 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
5409 fi
5410
5411 if test "$wxUSE_HTML" = yes; then
5412 echo "$ac_t""yes" 1>&6
5413 else
5414 echo "$ac_t""no" 1>&6
5415 fi
5416
5417
5418 echo $ac_n "checking "for --enable-tooltips"""... $ac_c" 1>&6
e07802fc 5419echo "configure:5420: checking "for --enable-tooltips"" >&5
10f2d63a
VZ
5420 no_cache=0
5421 # Check whether --enable-tooltips or --disable-tooltips was given.
5422if test "${enable_tooltips+set}" = set; then
5423 enableval="$enable_tooltips"
5424
5425 if test "$enableval" = yes; then
5426 ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
5427 else
5428 ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
5429 fi
5430
5431else
5432
5433 LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
5434 if test "x$LINE" != x ; then
5435 eval "DEFAULT_$LINE"
5436 else
5437 no_cache=1
5438 fi
5439
5440 ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
5441
5442fi
5443
5444
5445 eval "$ac_cv_use_tooltips"
5446 if test "$no_cache" != 1; then
5447 echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
5448 fi
5449
5450 if test "$wxUSE_TOOLTIPS" = yes; then
5451 echo "$ac_t""yes" 1>&6
5452 else
5453 echo "$ac_t""no" 1>&6
5454 fi
5455
5456
5457 echo $ac_n "checking "for --enable-splines"""... $ac_c" 1>&6
e07802fc 5458echo "configure:5459: checking "for --enable-splines"" >&5
10f2d63a
VZ
5459 no_cache=0
5460 # Check whether --enable-splines or --disable-splines was given.
5461if test "${enable_splines+set}" = set; then
5462 enableval="$enable_splines"
5463
5464 if test "$enableval" = yes; then
5465 ac_cv_use_splines='wxUSE_SPLINES=yes'
5466 else
5467 ac_cv_use_splines='wxUSE_SPLINES=no'
5468 fi
5469
5470else
5471
5472 LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
5473 if test "x$LINE" != x ; then
5474 eval "DEFAULT_$LINE"
5475 else
5476 no_cache=1
5477 fi
5478
5479 ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
5480
5481fi
5482
5483
5484 eval "$ac_cv_use_splines"
5485 if test "$no_cache" != 1; then
5486 echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
5487 fi
5488
5489 if test "$wxUSE_SPLINES" = yes; then
5490 echo "$ac_t""yes" 1>&6
5491 else
5492 echo "$ac_t""no" 1>&6
5493 fi
5494
5495
5496 echo $ac_n "checking "for --enable-validators"""... $ac_c" 1>&6
e07802fc 5497echo "configure:5498: checking "for --enable-validators"" >&5
10f2d63a
VZ
5498 no_cache=0
5499 # Check whether --enable-validators or --disable-validators was given.
5500if test "${enable_validators+set}" = set; then
5501 enableval="$enable_validators"
5502
5503 if test "$enableval" = yes; then
5504 ac_cv_use_validators='wxUSE_VALIDATORS=yes'
5505 else
5506 ac_cv_use_validators='wxUSE_VALIDATORS=no'
5507 fi
5508
5509else
5510
5511 LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
5512 if test "x$LINE" != x ; then
5513 eval "DEFAULT_$LINE"
5514 else
5515 no_cache=1
5516 fi
5517
5518 ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
5519
5520fi
5521
5522
5523 eval "$ac_cv_use_validators"
5524 if test "$no_cache" != 1; then
5525 echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
5526 fi
5527
5528 if test "$wxUSE_VALIDATORS" = yes; then
5529 echo "$ac_t""yes" 1>&6
5530 else
5531 echo "$ac_t""no" 1>&6
5532 fi
5533
5534
5535 echo $ac_n "checking "for --enable-busyinfo"""... $ac_c" 1>&6
e07802fc 5536echo "configure:5537: checking "for --enable-busyinfo"" >&5
10f2d63a
VZ
5537 no_cache=0
5538 # Check whether --enable-busyinfo or --disable-busyinfo was given.
5539if test "${enable_busyinfo+set}" = set; then
5540 enableval="$enable_busyinfo"
5541
5542 if test "$enableval" = yes; then
5543 ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
5544 else
5545 ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
5546 fi
5547
5548else
5549
5550 LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
5551 if test "x$LINE" != x ; then
5552 eval "DEFAULT_$LINE"
5553 else
5554 no_cache=1
5555 fi
5556
5557 ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
5558
5559fi
5560
5561
5562 eval "$ac_cv_use_busyinfo"
5563 if test "$no_cache" != 1; then
5564 echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
5565 fi
5566
5567 if test "$wxUSE_BUSYINFO" = yes; then
5568 echo "$ac_t""yes" 1>&6
5569 else
5570 echo "$ac_t""no" 1>&6
5571 fi
5572
5573
5574
5575
5576 echo $ac_n "checking "for --enable-gif"""... $ac_c" 1>&6
e07802fc 5577echo "configure:5578: checking "for --enable-gif"" >&5
10f2d63a
VZ
5578 no_cache=0
5579 # Check whether --enable-gif or --disable-gif was given.
5580if test "${enable_gif+set}" = set; then
5581 enableval="$enable_gif"
5582
5583 if test "$enableval" = yes; then
5584 ac_cv_use_gif='wxUSE_GIF=yes'
5585 else
5586 ac_cv_use_gif='wxUSE_GIF=no'
5587 fi
5588
5589else
5590
5591 LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
5592 if test "x$LINE" != x ; then
5593 eval "DEFAULT_$LINE"
5594 else
5595 no_cache=1
5596 fi
5597
5598 ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
5599
5600fi
5601
5602
5603 eval "$ac_cv_use_gif"
5604 if test "$no_cache" != 1; then
5605 echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
5606 fi
5607
5608 if test "$wxUSE_GIF" = yes; then
5609 echo "$ac_t""yes" 1>&6
5610 else
5611 echo "$ac_t""no" 1>&6
5612 fi
5613
5614
5615 echo $ac_n "checking "for --enable-pcx"""... $ac_c" 1>&6
e07802fc 5616echo "configure:5617: checking "for --enable-pcx"" >&5
10f2d63a
VZ
5617 no_cache=0
5618 # Check whether --enable-pcx or --disable-pcx was given.
5619if test "${enable_pcx+set}" = set; then
5620 enableval="$enable_pcx"
5621
5622 if test "$enableval" = yes; then
5623 ac_cv_use_pcx='wxUSE_PCX=yes'
5624 else
5625 ac_cv_use_pcx='wxUSE_PCX=no'
5626 fi
5627
5628else
5629
5630 LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
5631 if test "x$LINE" != x ; then
5632 eval "DEFAULT_$LINE"
5633 else
5634 no_cache=1
5635 fi
5636
5637 ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
5638
5639fi
5640
5641
5642 eval "$ac_cv_use_pcx"
5643 if test "$no_cache" != 1; then
5644 echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
5645 fi
5646
5647 if test "$wxUSE_PCX" = yes; then
5648 echo "$ac_t""yes" 1>&6
5649 else
5650 echo "$ac_t""no" 1>&6
5651 fi
5652
5653
5654 echo $ac_n "checking "for --enable-pnm"""... $ac_c" 1>&6
e07802fc 5655echo "configure:5656: checking "for --enable-pnm"" >&5
10f2d63a
VZ
5656 no_cache=0
5657 # Check whether --enable-pnm or --disable-pnm was given.
5658if test "${enable_pnm+set}" = set; then
5659 enableval="$enable_pnm"
5660
5661 if test "$enableval" = yes; then
5662 ac_cv_use_pnm='wxUSE_PNM=yes'
5663 else
5664 ac_cv_use_pnm='wxUSE_PNM=no'
5665 fi
5666
5667else
5668
5669 LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
5670 if test "x$LINE" != x ; then
5671 eval "DEFAULT_$LINE"
5672 else
5673 no_cache=1
5674 fi
5675
5676 ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
5677
5678fi
5679
5680
5681 eval "$ac_cv_use_pnm"
5682 if test "$no_cache" != 1; then
5683 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
5684 fi
5685
5686 if test "$wxUSE_PNM" = yes; then
5687 echo "$ac_t""yes" 1>&6
5688 else
5689 echo "$ac_t""no" 1>&6
5690 fi
5691
5692
b12915c1
VZ
5693fi
5694
10f2d63a
VZ
5695
5696 echo "saving argument cache $wx_arg_cache_file"
5697 mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
5698
5699
5700
5701echo $ac_n "checking for toolkit""... $ac_c" 1>&6
e07802fc 5702echo "configure:5703: checking for toolkit" >&5
10f2d63a
VZ
5703
5704if test "$wxUSE_GUI" = "yes"; then
5705
b12915c1
VZ
5706if test "$USE_BEOS" = 1; then
5707 { echo "configure: error: BeOS GUI is not supported yet, use --disable-gui" 1>&2; exit 1; }
5708fi
5709
10f2d63a
VZ
5710if test "$TOOLKIT_GIVEN" = 1; then
5711 for toolkit in `echo $ALL_TOOLKITS`; do
5712 var=wxUSE_$toolkit
5713 eval "value=\$${var}"
5714 eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`"
5715 done
5716else
5717 for toolkit in `echo $ALL_TOOLKITS`; do
5718 if test "$has_toolkit_in_cache" != 1; then
5719 var=DEFAULT_DEFAULT_wxUSE_$toolkit
5720 else
5721 var=DEFAULT_wxUSE_$toolkit
5722 fi
5723 eval "wxUSE_$toolkit=\$${var}"
5724 done
5725fi
5726
e07802fc 5727NUM_TOOLKITS=`expr ${wxUSE_GTK:-0} + ${wxUSE_MOTIF:-0} + ${wxUSE_WINE:-0} + ${wxUSE_MINGW:-0} + ${wxUSE_CYGWIN:-0} + ${wxUSE_PM:-0}`
10f2d63a
VZ
5728
5729case "$NUM_TOOLKITS" in
5730 1)
5731 ;;
5732 0)
5733 { echo "configure: error: Please specify a toolkit - cannot determine the default for ${host}" 1>&2; exit 1; }
5734 ;;
5735 *)
5736 { echo "configure: error: Please specify at most one toolkit (may be some are cached?)" 1>&2; exit 1; }
5737esac
5738
5739for toolkit in `echo $ALL_TOOLKITS`; do
5740 var=wxUSE_$toolkit
5741 eval "value=\$${var}"
5742 if test "x$value" != x; then
5743 cache_var=CACHE_$toolkit
5744 eval "cache=\$${cache_var}"
5745 if test "$cache" = 1; then
5746 echo "$var=$value" >> ${wx_arg_cache_file}
5747 fi
5748 if test "$value" = 1; then
5749 echo "$ac_t""`echo $toolkit | tr A-Z a-z`" 1>&6
5750 fi
5751 fi
5752done
5753
5754else
5755 echo "$ac_t""base only" 1>&6
5756fi
5757
5758
5759cat > confcache <<\EOF
5760# This file is a shell script that caches the results of configure
5761# tests run on this system so they can be shared between configure
5762# scripts and configure runs. It is not useful on other systems.
5763# If it contains results you don't want to keep, you may remove or edit it.
5764#
5765# By default, configure uses ./config.cache as the cache file,
5766# creating it if it does not exist already. You can give configure
5767# the --cache-file=FILE option to use a different cache file; that is
5768# what configure does when it calls configure scripts in
5769# subdirectories, so they share the cache.
5770# Giving --cache-file=/dev/null disables caching, for debugging configure.
5771# config.status only pays attention to the cache file if you give it the
5772# --recheck option to rerun configure.
5773#
5774EOF
5775# The following way of writing the cache mishandles newlines in values,
5776# but we know of no workaround that is simple, portable, and efficient.
5777# So, don't put newlines in cache variables' values.
5778# Ultrix sh set writes to stderr and can't be redirected directly,
5779# and sets the high bit in the cache file unless we assign to the vars.
5780(set) 2>&1 |
5781 case `(ac_space=' '; set | grep ac_space) 2>&1` in
5782 *ac_space=\ *)
5783 # `set' does not quote correctly, so add quotes (double-quote substitution
5784 # turns \\\\ into \\, and sed turns \\ into \).
5785 sed -n \
5786 -e "s/'/'\\\\''/g" \
5787 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
5788 ;;
5789 *)
5790 # `set' quotes correctly as required by POSIX, so do not add quotes.
5791 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
5792 ;;
5793 esac >> confcache
5794if cmp -s $cache_file confcache; then
5795 :
5796else
5797 if test -w $cache_file; then
5798 echo "updating cache $cache_file"
5799 cat confcache > $cache_file
5800 else
5801 echo "not updating unwritable cache $cache_file"
5802 fi
5803fi
5804rm -f confcache
5805
5806
5807if eval "test $host != $build"; then
5808 if eval "test $host_alias != NONE"; then
5809 CC=$host_alias-gcc
5810 CXX=$host_alias-c++
5811 AR=$host_alias-ar
5812 RANLIB=$host_alias-ranlib
5813 DLLTOOL=$host_alias-dlltool
5814 LD=$host_alias-ld
5815 NM=$host_alias-nm
5816 STRIP=$host_alias-strip
5817 fi
5818fi
5819
5820# Extract the first word of "gcc", so it can be a program name with args.
5821set dummy gcc; ac_word=$2
5822echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
e07802fc 5823echo "configure:5824: checking for $ac_word" >&5
10f2d63a
VZ
5824if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
5825 echo $ac_n "(cached) $ac_c" 1>&6
5826else
5827 if test -n "$CC"; then
5828 ac_cv_prog_CC="$CC" # Let the user override the test.
5829else
5830 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5831 ac_dummy="$PATH"
5832 for ac_dir in $ac_dummy; do
5833 test -z "$ac_dir" && ac_dir=.
5834 if test -f $ac_dir/$ac_word; then
5835 ac_cv_prog_CC="gcc"
5836 break
5837 fi
5838 done
5839 IFS="$ac_save_ifs"
5840fi
5841fi
5842CC="$ac_cv_prog_CC"
5843if test -n "$CC"; then
5844 echo "$ac_t""$CC" 1>&6
5845else
5846 echo "$ac_t""no" 1>&6
5847fi
5848
5849if test -z "$CC"; then
5850 # Extract the first word of "cc", so it can be a program name with args.
5851set dummy cc; ac_word=$2
5852echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
e07802fc 5853echo "configure:5854: checking for $ac_word" >&5
10f2d63a
VZ
5854if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
5855 echo $ac_n "(cached) $ac_c" 1>&6
5856else
5857 if test -n "$CC"; then
5858 ac_cv_prog_CC="$CC" # Let the user override the test.
5859else
5860 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5861 ac_prog_rejected=no
5862 ac_dummy="$PATH"
5863 for ac_dir in $ac_dummy; do
5864 test -z "$ac_dir" && ac_dir=.
5865 if test -f $ac_dir/$ac_word; then
5866 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
5867 ac_prog_rejected=yes
5868 continue
5869 fi
5870 ac_cv_prog_CC="cc"
5871 break
5872 fi
5873 done
5874 IFS="$ac_save_ifs"
5875if test $ac_prog_rejected = yes; then
5876 # We found a bogon in the path, so make sure we never use it.
5877 set dummy $ac_cv_prog_CC
5878 shift
5879 if test $# -gt 0; then
5880 # We chose a different compiler from the bogus one.
5881 # However, it has the same basename, so the bogon will be chosen
5882 # first if we set CC to just the basename; use the full file name.
5883 shift
5884 set dummy "$ac_dir/$ac_word" "$@"
5885 shift
5886 ac_cv_prog_CC="$@"
5887 fi
5888fi
5889fi
5890fi
5891CC="$ac_cv_prog_CC"
5892if test -n "$CC"; then
5893 echo "$ac_t""$CC" 1>&6
5894else
5895 echo "$ac_t""no" 1>&6
5896fi
5897
5898 if test -z "$CC"; then
5899 case "`uname -s`" in
5900 *win32* | *WIN32*)
5901 # Extract the first word of "cl", so it can be a program name with args.
5902set dummy cl; ac_word=$2
5903echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
e07802fc 5904echo "configure:5905: checking for $ac_word" >&5
10f2d63a
VZ
5905if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
5906 echo $ac_n "(cached) $ac_c" 1>&6
5907else
5908 if test -n "$CC"; then
5909 ac_cv_prog_CC="$CC" # Let the user override the test.
5910else
5911 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5912 ac_dummy="$PATH"
5913 for ac_dir in $ac_dummy; do
5914 test -z "$ac_dir" && ac_dir=.
5915 if test -f $ac_dir/$ac_word; then
5916 ac_cv_prog_CC="cl"
5917 break
5918 fi
5919 done
5920 IFS="$ac_save_ifs"
5921fi
5922fi
5923CC="$ac_cv_prog_CC"
5924if test -n "$CC"; then
5925 echo "$ac_t""$CC" 1>&6
5926else
5927 echo "$ac_t""no" 1>&6
5928fi
5929 ;;
5930 esac
5931 fi
5932 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
5933fi
5934
5935echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
e07802fc 5936echo "configure:5937: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
10f2d63a
VZ
5937
5938ac_ext=c
5939# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5940ac_cpp='$CPP $CPPFLAGS'
5941ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5942ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5943cross_compiling=$ac_cv_prog_cc_cross
5944
5945cat > conftest.$ac_ext << EOF
5946
e07802fc 5947#line 5948 "configure"
10f2d63a
VZ
5948#include "confdefs.h"
5949
5950main(){return(0);}
5951EOF
e07802fc 5952if { (eval echo configure:5953: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
5953 ac_cv_prog_cc_works=yes
5954 # If we can't run a trivial program, we are probably using a cross compiler.
5955 if (./conftest; exit) 2>/dev/null; then
5956 ac_cv_prog_cc_cross=no
5957 else
5958 ac_cv_prog_cc_cross=yes
5959 fi
5960else
5961 echo "configure: failed program was:" >&5
5962 cat conftest.$ac_ext >&5
5963 ac_cv_prog_cc_works=no
5964fi
5965rm -fr conftest*
5966ac_ext=c
5967# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5968ac_cpp='$CPP $CPPFLAGS'
5969ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5970ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5971cross_compiling=$ac_cv_prog_cc_cross
5972
5973echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
5974if test $ac_cv_prog_cc_works = no; then
5975 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
5976fi
5977echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
e07802fc 5978echo "configure:5979: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
10f2d63a
VZ
5979echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
5980cross_compiling=$ac_cv_prog_cc_cross
5981
5982echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
e07802fc 5983echo "configure:5984: checking whether we are using GNU C" >&5
10f2d63a
VZ
5984if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
5985 echo $ac_n "(cached) $ac_c" 1>&6
5986else
5987 cat > conftest.c <<EOF
5988#ifdef __GNUC__
5989 yes;
5990#endif
5991EOF
e07802fc 5992if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:5993: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
10f2d63a
VZ
5993 ac_cv_prog_gcc=yes
5994else
5995 ac_cv_prog_gcc=no
5996fi
5997fi
5998
5999echo "$ac_t""$ac_cv_prog_gcc" 1>&6
6000
6001if test $ac_cv_prog_gcc = yes; then
6002 GCC=yes
6003else
6004 GCC=
6005fi
6006
6007ac_test_CFLAGS="${CFLAGS+set}"
6008ac_save_CFLAGS="$CFLAGS"
6009CFLAGS=
6010echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
e07802fc 6011echo "configure:6012: checking whether ${CC-cc} accepts -g" >&5
10f2d63a
VZ
6012if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
6013 echo $ac_n "(cached) $ac_c" 1>&6
6014else
6015 echo 'void f(){}' > conftest.c
6016if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
6017 ac_cv_prog_cc_g=yes
6018else
6019 ac_cv_prog_cc_g=no
6020fi
6021rm -f conftest*
6022
6023fi
6024
6025echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
6026if test "$ac_test_CFLAGS" = set; then
6027 CFLAGS="$ac_save_CFLAGS"
6028elif test $ac_cv_prog_cc_g = yes; then
6029 if test "$GCC" = yes; then
6030 CFLAGS="-g -O2"
6031 else
6032 CFLAGS="-g"
6033 fi
6034else
6035 if test "$GCC" = yes; then
6036 CFLAGS="-O2"
6037 else
6038 CFLAGS=
6039 fi
6040fi
6041
6042
6043CFLAGS=`echo "$CFLAGS" | sed 's/-g//g'`
6044
6045echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
e07802fc 6046echo "configure:6047: checking how to run the C preprocessor" >&5
10f2d63a
VZ
6047# On Suns, sometimes $CPP names a directory.
6048if test -n "$CPP" && test -d "$CPP"; then
6049 CPP=
6050fi
6051if test -z "$CPP"; then
6052if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
6053 echo $ac_n "(cached) $ac_c" 1>&6
6054else
6055 # This must be in double quotes, not single quotes, because CPP may get
6056 # substituted into the Makefile and "${CC-cc}" will confuse make.
6057 CPP="${CC-cc} -E"
6058 # On the NeXT, cc -E runs the code through the compiler's parser,
6059 # not just through cpp.
6060 cat > conftest.$ac_ext <<EOF
e07802fc 6061#line 6062 "configure"
10f2d63a
VZ
6062#include "confdefs.h"
6063#include <assert.h>
6064Syntax Error
6065EOF
6066ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
e07802fc 6067{ (eval echo configure:6068: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
6068ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6069if test -z "$ac_err"; then
6070 :
6071else
6072 echo "$ac_err" >&5
6073 echo "configure: failed program was:" >&5
6074 cat conftest.$ac_ext >&5
6075 rm -rf conftest*
6076 CPP="${CC-cc} -E -traditional-cpp"
6077 cat > conftest.$ac_ext <<EOF
e07802fc 6078#line 6079 "configure"
10f2d63a
VZ
6079#include "confdefs.h"
6080#include <assert.h>
6081Syntax Error
6082EOF
6083ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
e07802fc 6084{ (eval echo configure:6085: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
6085ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6086if test -z "$ac_err"; then
6087 :
6088else
6089 echo "$ac_err" >&5
6090 echo "configure: failed program was:" >&5
6091 cat conftest.$ac_ext >&5
6092 rm -rf conftest*
6093 CPP="${CC-cc} -nologo -E"
6094 cat > conftest.$ac_ext <<EOF
e07802fc 6095#line 6096 "configure"
10f2d63a
VZ
6096#include "confdefs.h"
6097#include <assert.h>
6098Syntax Error
6099EOF
6100ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
e07802fc 6101{ (eval echo configure:6102: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
6102ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6103if test -z "$ac_err"; then
6104 :
6105else
6106 echo "$ac_err" >&5
6107 echo "configure: failed program was:" >&5
6108 cat conftest.$ac_ext >&5
6109 rm -rf conftest*
6110 CPP=/lib/cpp
6111fi
6112rm -f conftest*
6113fi
6114rm -f conftest*
6115fi
6116rm -f conftest*
6117 ac_cv_prog_CPP="$CPP"
6118fi
6119 CPP="$ac_cv_prog_CPP"
6120else
6121 ac_cv_prog_CPP="$CPP"
6122fi
6123echo "$ac_t""$CPP" 1>&6
6124
6125
6126if test $ac_cv_prog_gcc = yes; then
6127 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
e07802fc 6128echo "configure:6129: checking whether ${CC-cc} needs -traditional" >&5
10f2d63a
VZ
6129if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
6130 echo $ac_n "(cached) $ac_c" 1>&6
6131else
6132 ac_pattern="Autoconf.*'x'"
6133 cat > conftest.$ac_ext <<EOF
e07802fc 6134#line 6135 "configure"
10f2d63a
VZ
6135#include "confdefs.h"
6136#include <sgtty.h>
6137Autoconf TIOCGETP
6138EOF
6139if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6140 egrep "$ac_pattern" >/dev/null 2>&1; then
6141 rm -rf conftest*
6142 ac_cv_prog_gcc_traditional=yes
6143else
6144 rm -rf conftest*
6145 ac_cv_prog_gcc_traditional=no
6146fi
6147rm -f conftest*
6148
6149
6150 if test $ac_cv_prog_gcc_traditional = no; then
6151 cat > conftest.$ac_ext <<EOF
e07802fc 6152#line 6153 "configure"
10f2d63a
VZ
6153#include "confdefs.h"
6154#include <termio.h>
6155Autoconf TCGETA
6156EOF
6157if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6158 egrep "$ac_pattern" >/dev/null 2>&1; then
6159 rm -rf conftest*
6160 ac_cv_prog_gcc_traditional=yes
6161fi
6162rm -f conftest*
6163
6164 fi
6165fi
6166
6167echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
6168 if test $ac_cv_prog_gcc_traditional = yes; then
6169 CC="$CC -traditional"
6170 fi
6171fi
6172
6173
6174
6175ac_ext=C
6176# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6177ac_cpp='$CXXCPP $CPPFLAGS'
6178ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6179ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6180cross_compiling=$ac_cv_prog_cxx_cross
6181
6182
6183for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
6184do
6185# Extract the first word of "$ac_prog", so it can be a program name with args.
6186set dummy $ac_prog; ac_word=$2
6187echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
e07802fc 6188echo "configure:6189: checking for $ac_word" >&5
10f2d63a
VZ
6189if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
6190 echo $ac_n "(cached) $ac_c" 1>&6
6191else
6192 if test -n "$CXX"; then
6193 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6194else
6195 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6196 ac_dummy="$PATH"
6197 for ac_dir in $ac_dummy; do
6198 test -z "$ac_dir" && ac_dir=.
6199 if test -f $ac_dir/$ac_word; then
6200 ac_cv_prog_CXX="$ac_prog"
6201 break
6202 fi
6203 done
6204 IFS="$ac_save_ifs"
6205fi
6206fi
6207CXX="$ac_cv_prog_CXX"
6208if test -n "$CXX"; then
6209 echo "$ac_t""$CXX" 1>&6
6210else
6211 echo "$ac_t""no" 1>&6
6212fi
6213
6214test -n "$CXX" && break
6215done
6216test -n "$CXX" || CXX="gcc"
6217
6218
6219echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
e07802fc 6220echo "configure:6221: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
10f2d63a
VZ
6221
6222ac_ext=C
6223# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6224ac_cpp='$CXXCPP $CPPFLAGS'
6225ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6226ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6227cross_compiling=$ac_cv_prog_cxx_cross
6228
6229cat > conftest.$ac_ext << EOF
6230
e07802fc 6231#line 6232 "configure"
10f2d63a
VZ
6232#include "confdefs.h"
6233
6234int main(){return(0);}
6235EOF
e07802fc 6236if { (eval echo configure:6237: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
6237 ac_cv_prog_cxx_works=yes
6238 # If we can't run a trivial program, we are probably using a cross compiler.
6239 if (./conftest; exit) 2>/dev/null; then
6240 ac_cv_prog_cxx_cross=no
6241 else
6242 ac_cv_prog_cxx_cross=yes
6243 fi
6244else
6245 echo "configure: failed program was:" >&5
6246 cat conftest.$ac_ext >&5
6247 ac_cv_prog_cxx_works=no
6248fi
6249rm -fr conftest*
6250ac_ext=C
6251# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6252ac_cpp='$CXXCPP $CPPFLAGS'
6253ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6254ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6255cross_compiling=$ac_cv_prog_cxx_cross
6256
6257echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
6258if test $ac_cv_prog_cxx_works = no; then
6259 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
6260fi
6261echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
e07802fc 6262echo "configure:6263: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
10f2d63a
VZ
6263echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
6264cross_compiling=$ac_cv_prog_cxx_cross
6265
6266echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
e07802fc 6267echo "configure:6268: checking whether we are using GNU C++" >&5
10f2d63a
VZ
6268if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
6269 echo $ac_n "(cached) $ac_c" 1>&6
6270else
6271 cat > conftest.C <<EOF
6272#ifdef __GNUC__
6273 yes;
6274#endif
6275EOF
e07802fc 6276if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:6277: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
10f2d63a
VZ
6277 ac_cv_prog_gxx=yes
6278else
6279 ac_cv_prog_gxx=no
6280fi
6281fi
6282
6283echo "$ac_t""$ac_cv_prog_gxx" 1>&6
6284
6285if test $ac_cv_prog_gxx = yes; then
6286 GXX=yes
6287else
6288 GXX=
6289fi
6290
6291ac_test_CXXFLAGS="${CXXFLAGS+set}"
6292ac_save_CXXFLAGS="$CXXFLAGS"
6293CXXFLAGS=
6294echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
e07802fc 6295echo "configure:6296: checking whether ${CXX-g++} accepts -g" >&5
10f2d63a
VZ
6296if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
6297 echo $ac_n "(cached) $ac_c" 1>&6
6298else
6299 echo 'void f(){}' > conftest.cc
6300if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
6301 ac_cv_prog_cxx_g=yes
6302else
6303 ac_cv_prog_cxx_g=no
6304fi
6305rm -f conftest*
6306
6307fi
6308
6309echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
6310if test "$ac_test_CXXFLAGS" = set; then
6311 CXXFLAGS="$ac_save_CXXFLAGS"
6312elif test $ac_cv_prog_cxx_g = yes; then
6313 if test "$GXX" = yes; then
6314 CXXFLAGS="-g -O2"
6315 else
6316 CXXFLAGS="-g"
6317 fi
6318else
6319 if test "$GXX" = yes; then
6320 CXXFLAGS="-O2"
6321 else
6322 CXXFLAGS=
6323 fi
6324fi
6325
6326
6327echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
e07802fc 6328echo "configure:6329: checking how to run the C++ preprocessor" >&5
10f2d63a
VZ
6329if test -z "$CXXCPP"; then
6330if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
6331 echo $ac_n "(cached) $ac_c" 1>&6
6332else
6333 ac_ext=C
6334# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6335ac_cpp='$CXXCPP $CPPFLAGS'
6336ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6337ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6338cross_compiling=$ac_cv_prog_cxx_cross
6339 CXXCPP="${CXX-g++} -E"
6340 cat > conftest.$ac_ext <<EOF
e07802fc 6341#line 6342 "configure"
10f2d63a
VZ
6342#include "confdefs.h"
6343#include <stdlib.h>
6344EOF
6345ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
e07802fc 6346{ (eval echo configure:6347: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
6347ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6348if test -z "$ac_err"; then
6349 :
6350else
6351 echo "$ac_err" >&5
6352 echo "configure: failed program was:" >&5
6353 cat conftest.$ac_ext >&5
6354 rm -rf conftest*
6355 CXXCPP=/lib/cpp
6356fi
6357rm -f conftest*
6358 ac_cv_prog_CXXCPP="$CXXCPP"
6359ac_ext=C
6360# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6361ac_cpp='$CXXCPP $CPPFLAGS'
6362ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6363ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6364cross_compiling=$ac_cv_prog_cxx_cross
6365fi
6366fi
6367CXXCPP="$ac_cv_prog_CXXCPP"
6368echo "$ac_t""$CXXCPP" 1>&6
6369
6370
6371CXXFLAGS=`echo "$CXXFLAGS" | sed 's/-g//g'`
6372
6373ac_ext=c
6374# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6375ac_cpp='$CPP $CPPFLAGS'
6376ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6377ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6378cross_compiling=$ac_cv_prog_cc_cross
6379
6380
6381# Extract the first word of "ranlib", so it can be a program name with args.
6382set dummy ranlib; ac_word=$2
6383echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
e07802fc 6384echo "configure:6385: checking for $ac_word" >&5
10f2d63a
VZ
6385if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
6386 echo $ac_n "(cached) $ac_c" 1>&6
6387else
6388 if test -n "$RANLIB"; then
6389 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6390else
6391 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6392 ac_dummy="$PATH"
6393 for ac_dir in $ac_dummy; do
6394 test -z "$ac_dir" && ac_dir=.
6395 if test -f $ac_dir/$ac_word; then
6396 ac_cv_prog_RANLIB="ranlib"
6397 break
6398 fi
6399 done
6400 IFS="$ac_save_ifs"
6401 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
6402fi
6403fi
6404RANLIB="$ac_cv_prog_RANLIB"
6405if test -n "$RANLIB"; then
6406 echo "$ac_t""$RANLIB" 1>&6
6407else
6408 echo "$ac_t""no" 1>&6
6409fi
6410
6411
6412# Extract the first word of "ar", so it can be a program name with args.
6413set dummy ar; ac_word=$2
6414echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
e07802fc 6415echo "configure:6416: checking for $ac_word" >&5
10f2d63a
VZ
6416if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
6417 echo $ac_n "(cached) $ac_c" 1>&6
6418else
6419 if test -n "$AR"; then
6420 ac_cv_prog_AR="$AR" # Let the user override the test.
6421else
6422 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6423 ac_dummy="$PATH"
6424 for ac_dir in $ac_dummy; do
6425 test -z "$ac_dir" && ac_dir=.
6426 if test -f $ac_dir/$ac_word; then
6427 ac_cv_prog_AR="ar"
6428 break
6429 fi
6430 done
6431 IFS="$ac_save_ifs"
6432 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
6433fi
6434fi
6435AR="$ac_cv_prog_AR"
6436if test -n "$AR"; then
6437 echo "$ac_t""$AR" 1>&6
6438else
6439 echo "$ac_t""no" 1>&6
6440fi
6441
6442
6443# Find a good install program. We prefer a C program (faster),
6444# so one script is as good as another. But avoid the broken or
6445# incompatible versions:
6446# SysV /etc/install, /usr/sbin/install
6447# SunOS /usr/etc/install
6448# IRIX /sbin/install
6449# AIX /bin/install
6450# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6451# AFS /usr/afsws/bin/install, which mishandles nonexistent args
6452# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6453# ./install, which can be erroneously created by make from ./install.sh.
6454echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
e07802fc 6455echo "configure:6456: checking for a BSD compatible install" >&5
10f2d63a
VZ
6456if test -z "$INSTALL"; then
6457if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
6458 echo $ac_n "(cached) $ac_c" 1>&6
6459else
6460 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
6461 for ac_dir in $PATH; do
6462 # Account for people who put trailing slashes in PATH elements.
6463 case "$ac_dir/" in
6464 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
6465 *)
6466 # OSF1 and SCO ODT 3.0 have their own names for install.
6467 # Don't use installbsd from OSF since it installs stuff as root
6468 # by default.
6469 for ac_prog in ginstall scoinst install; do
6470 if test -f $ac_dir/$ac_prog; then
6471 if test $ac_prog = install &&
6472 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
6473 # AIX install. It has an incompatible calling convention.
6474 :
6475 else
6476 ac_cv_path_install="$ac_dir/$ac_prog -c"
6477 break 2
6478 fi
6479 fi
6480 done
6481 ;;
6482 esac
6483 done
6484 IFS="$ac_save_IFS"
6485
6486fi
6487 if test "${ac_cv_path_install+set}" = set; then
6488 INSTALL="$ac_cv_path_install"
6489 else
6490 # As a last resort, use the slow shell script. We don't cache a
6491 # path for INSTALL within a source directory, because that will
6492 # break other packages using the cache if that directory is
6493 # removed, or if the path is relative.
6494 INSTALL="$ac_install_sh"
6495 fi
6496fi
6497echo "$ac_t""$INSTALL" 1>&6
6498
6499# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6500# It thinks the first close brace ends the variable substitution.
6501test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6502
6503test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
6504
6505test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6506
6507
6508# Extract the first word of "strip", so it can be a program name with args.
6509set dummy strip; ac_word=$2
6510echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
e07802fc 6511echo "configure:6512: checking for $ac_word" >&5
10f2d63a
VZ
6512if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
6513 echo $ac_n "(cached) $ac_c" 1>&6
6514else
6515 if test -n "$STRIP"; then
6516 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6517else
6518 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6519 ac_dummy="$PATH"
6520 for ac_dir in $ac_dummy; do
6521 test -z "$ac_dir" && ac_dir=.
6522 if test -f $ac_dir/$ac_word; then
6523 ac_cv_prog_STRIP="strip"
6524 break
6525 fi
6526 done
6527 IFS="$ac_save_ifs"
6528 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true"
6529fi
6530fi
6531STRIP="$ac_cv_prog_STRIP"
6532if test -n "$STRIP"; then
6533 echo "$ac_t""$STRIP" 1>&6
6534else
6535 echo "$ac_t""no" 1>&6
6536fi
6537
6538
6539echo $ac_n "checking "make for VPATH support"""... $ac_c" 1>&6
e07802fc 6540echo "configure:6541: checking "make for VPATH support"" >&5
10f2d63a
VZ
6541cat - << EOF > confMake
6542check : file
6543 cp \$? \$@
6544 cp \$? final_file
6545EOF
6546
6547if test ! -d sub ; then
6548 mkdir sub
6549fi
6550echo dummy > sub/file
6551${MAKE-make} -f confMake VPATH=sub 2> config.log > /dev/null
6552RESULT=$?
6553rm -f sub/file check final_file confMake
6554rmdir sub
6555if test "$RESULT" = 0; then
6556 echo "$ac_t""yes" 1>&6
6557else
6558 echo "$ac_t""no" 1>&6
6559 { echo "configure: error: You need a make-utility that is able to use the variable
6560VPATH correctly.
6561If your version of make does not support VPATH correctly" 1>&2; exit 1; }
6562fi
6563
6564for ac_prog in 'bison -y' byacc
6565do
6566# Extract the first word of "$ac_prog", so it can be a program name with args.
6567set dummy $ac_prog; ac_word=$2
6568echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
e07802fc 6569echo "configure:6570: checking for $ac_word" >&5
10f2d63a
VZ
6570if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
6571 echo $ac_n "(cached) $ac_c" 1>&6
6572else
6573 if test -n "$YACC"; then
6574 ac_cv_prog_YACC="$YACC" # Let the user override the test.
6575else
6576 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6577 ac_dummy="$PATH"
6578 for ac_dir in $ac_dummy; do
6579 test -z "$ac_dir" && ac_dir=.
6580 if test -f $ac_dir/$ac_word; then
6581 ac_cv_prog_YACC="$ac_prog"
6582 break
6583 fi
6584 done
6585 IFS="$ac_save_ifs"
6586fi
6587fi
6588YACC="$ac_cv_prog_YACC"
6589if test -n "$YACC"; then
6590 echo "$ac_t""$YACC" 1>&6
6591else
6592 echo "$ac_t""no" 1>&6
6593fi
6594
6595test -n "$YACC" && break
6596done
6597test -n "$YACC" || YACC="yacc"
6598
6599
6600# Extract the first word of "flex", so it can be a program name with args.
6601set dummy flex; ac_word=$2
6602echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
e07802fc 6603echo "configure:6604: checking for $ac_word" >&5
10f2d63a
VZ
6604if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
6605 echo $ac_n "(cached) $ac_c" 1>&6
6606else
6607 if test -n "$LEX"; then
6608 ac_cv_prog_LEX="$LEX" # Let the user override the test.
6609else
6610 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6611 ac_dummy="$PATH"
6612 for ac_dir in $ac_dummy; do
6613 test -z "$ac_dir" && ac_dir=.
6614 if test -f $ac_dir/$ac_word; then
6615 ac_cv_prog_LEX="flex"
6616 break
6617 fi
6618 done
6619 IFS="$ac_save_ifs"
6620 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
6621fi
6622fi
6623LEX="$ac_cv_prog_LEX"
6624if test -n "$LEX"; then
6625 echo "$ac_t""$LEX" 1>&6
6626else
6627 echo "$ac_t""no" 1>&6
6628fi
6629
6630if test -z "$LEXLIB"
6631then
6632 case "$LEX" in
6633 flex*) ac_lib=fl ;;
6634 *) ac_lib=l ;;
6635 esac
6636 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
e07802fc 6637echo "configure:6638: checking for yywrap in -l$ac_lib" >&5
10f2d63a
VZ
6638ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
6639if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6640 echo $ac_n "(cached) $ac_c" 1>&6
6641else
6642 ac_save_LIBS="$LIBS"
6643LIBS="-l$ac_lib $LIBS"
6644cat > conftest.$ac_ext <<EOF
e07802fc 6645#line 6646 "configure"
10f2d63a
VZ
6646#include "confdefs.h"
6647/* Override any gcc2 internal prototype to avoid an error. */
6648/* We use char because int might match the return type of a gcc2
6649 builtin and then its argument prototype would still apply. */
6650char yywrap();
6651
6652int main() {
6653yywrap()
6654; return 0; }
6655EOF
e07802fc 6656if { (eval echo configure:6657: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
6657 rm -rf conftest*
6658 eval "ac_cv_lib_$ac_lib_var=yes"
6659else
6660 echo "configure: failed program was:" >&5
6661 cat conftest.$ac_ext >&5
6662 rm -rf conftest*
6663 eval "ac_cv_lib_$ac_lib_var=no"
6664fi
6665rm -f conftest*
6666LIBS="$ac_save_LIBS"
6667
6668fi
6669if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6670 echo "$ac_t""yes" 1>&6
6671 LEXLIB="-l$ac_lib"
6672else
6673 echo "$ac_t""no" 1>&6
6674fi
6675
6676fi
6677
6678
6679echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
e07802fc 6680echo "configure:6681: checking whether ln -s works" >&5
10f2d63a
VZ
6681if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
6682 echo $ac_n "(cached) $ac_c" 1>&6
6683else
6684 rm -f conftestdata
6685if ln -s X conftestdata 2>/dev/null
6686then
6687 rm -f conftestdata
6688 ac_cv_prog_LN_S="ln -s"
6689else
6690 ac_cv_prog_LN_S=ln
6691fi
6692fi
6693LN_S="$ac_cv_prog_LN_S"
6694if test "$ac_cv_prog_LN_S" = "ln -s"; then
6695 echo "$ac_t""yes" 1>&6
6696else
6697 echo "$ac_t""no" 1>&6
6698fi
6699
6700
6701
6702SEARCH_INCLUDE="\
6703 /usr/local/include \
6704 \
6705 /usr/Motif-1.2/include \
6706 /usr/Motif-2.1/include \
6707 \
6708 /usr/include/Motif1.2 \
6709 /opt/xpm/include/X11 \
6710 /opt/GBxpm/include/ \
6711 /opt/GBxpm/X11/include/ \
6712 \
6713 /usr/Motif1.2/include \
6714 /usr/dt/include \
afc31813
VZ
6715 /usr/openwin/include \
6716 \
10f2d63a
VZ
6717 /usr/include/Xm \
6718 \
6719 /usr/X11R6/include \
afc31813 6720 /usr/X11R6.4/include \
10f2d63a
VZ
6721 /usr/X11R5/include \
6722 /usr/X11R4/include \
6723 \
10f2d63a
VZ
6724 /usr/include/X11R6 \
6725 /usr/include/X11R5 \
6726 /usr/include/X11R4 \
6727 \
6728 /usr/local/X11R6/include \
6729 /usr/local/X11R5/include \
6730 /usr/local/X11R4/include \
6731 \
6732 /usr/local/include/X11R6 \
6733 /usr/local/include/X11R5 \
6734 /usr/local/include/X11R4 \
6735 \
6736 /usr/X11/include \
6737 /usr/include/X11 \
6738 /usr/local/X11/include \
6739 /usr/local/include/X11 \
6740 \
6741 /usr/X386/include \
6742 /usr/x386/include \
6743 /usr/XFree86/include/X11 \
6744 \
6745 /usr/include/gtk \
6746 /usr/local/include/gtk \
6747 /usr/include/glib \
6748 /usr/local/include/glib \
6749 \
6750 /usr/include/qt \
6751 /usr/local/include/qt \
6752 \
6753 /usr/include/windows \
6754 /usr/include/wine \
6755 /usr/local/include/wine \
6756 \
6757 /usr/unsupported/include \
6758 /usr/athena/include \
6759 /usr/local/x11r5/include \
6760 /usr/lpp/Xamples/include \
6761 \
10f2d63a 6762 /usr/openwin/share/include \
928b5c08
VZ
6763 \
6764 /usr/include"
10f2d63a
VZ
6765
6766SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s/include/lib/g` "
6767
6768
6769cat > confcache <<\EOF
6770# This file is a shell script that caches the results of configure
6771# tests run on this system so they can be shared between configure
6772# scripts and configure runs. It is not useful on other systems.
6773# If it contains results you don't want to keep, you may remove or edit it.
6774#
6775# By default, configure uses ./config.cache as the cache file,
6776# creating it if it does not exist already. You can give configure
6777# the --cache-file=FILE option to use a different cache file; that is
6778# what configure does when it calls configure scripts in
6779# subdirectories, so they share the cache.
6780# Giving --cache-file=/dev/null disables caching, for debugging configure.
6781# config.status only pays attention to the cache file if you give it the
6782# --recheck option to rerun configure.
6783#
6784EOF
6785# The following way of writing the cache mishandles newlines in values,
6786# but we know of no workaround that is simple, portable, and efficient.
6787# So, don't put newlines in cache variables' values.
6788# Ultrix sh set writes to stderr and can't be redirected directly,
6789# and sets the high bit in the cache file unless we assign to the vars.
6790(set) 2>&1 |
6791 case `(ac_space=' '; set | grep ac_space) 2>&1` in
6792 *ac_space=\ *)
6793 # `set' does not quote correctly, so add quotes (double-quote substitution
6794 # turns \\\\ into \\, and sed turns \\ into \).
6795 sed -n \
6796 -e "s/'/'\\\\''/g" \
6797 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
6798 ;;
6799 *)
6800 # `set' quotes correctly as required by POSIX, so do not add quotes.
6801 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
6802 ;;
6803 esac >> confcache
6804if cmp -s $cache_file confcache; then
6805 :
6806else
6807 if test -w $cache_file; then
6808 echo "updating cache $cache_file"
6809 cat confcache > $cache_file
6810 else
6811 echo "not updating unwritable cache $cache_file"
6812 fi
6813fi
6814rm -f confcache
6815
6816
6817
dad6c0ea
VZ
6818AFMINSTALL=
6819
10f2d63a
VZ
6820if test "$wxUSE_GUI" = "yes"; then
6821
dad6c0ea
VZ
6822USE_GUI=1
6823
10f2d63a
VZ
6824TOOLKIT=
6825TOOLKIT_INCLUDE=
6826
6827GUIOBJS=
6828COMMONOBJS=
6829GENERICOBJS=
6830
6831GUI_TK_LIBRARY=
6832GUI_TK_LINK=
6833
6834WXGTK12=
13111b2a 6835WXGTK13=
10f2d63a
VZ
6836
6837WXWINE=
6838
6839PROGRAM_EXT=
6840
6841if test "$wxUSE_CYGWIN" = 1 || test "$wxUSE_MINGW" = 1 ; then
6842 if test "$cross_compiling" = "yes" ; then
6843 echo "configure: warning: Cross compiling --- skipping windows.h check" 1>&2
6844 else
6845 echo $ac_n "checking for Windows headers""... $ac_c" 1>&6
dad6c0ea 6846echo "configure:6847: checking for Windows headers" >&5
10f2d63a
VZ
6847
6848ac_find_includes=
6849for ac_dir in $SEARCH_INCLUDE;
6850 do
6851 if test -f "$ac_dir/windows.h"; then
6852 ac_find_includes=$ac_dir
6853 break
6854 fi
6855 done
6856
6857 if test "$ac_find_includes" != "" ; then
6858 echo "$ac_t""found $ac_find_includes" 1>&6
6859 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE -I$ac_find_includes"
6860 else
6861 echo "$ac_t""no" 1>&6
6862 { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; }
6863 fi
6864 fi
6865
6866 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS msw"
6867 LIBS="$LIBS -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lctl3d32 -lcrtdll -ladvapi32 -lwsock32"
6868
6869 if test "$wxUSE_MINGW" = 1; then
6870 LDFLAGS="$LDFLAGS -mwindows"
6871 fi
6872
6873 TOOLKIT=MSW
6874
6875 GUIOBJS="\$(MSW_GUIOBJS)"
6876 GUIHEADERS="\$(MSW_HEADERS)"
6877 COMMONOBJS="\$(MSW_COMMONOBJS)"
6878 GENERICOBJS="\$(MSW_GENERICOBJS)"
6879 UNIXOBJS=
6880 GUIDIST=MSW_DIST
6881 PROGRAM_EXT=.exe
6882fi
6883
6884if test "$wxUSE_GTK" = 1; then
6885
6886 if test x$gtk_config_exec_prefix != x ; then
6887 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
6888 if test x${GTK_CONFIG+set} != xset ; then
6889 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
6890 fi
6891 fi
6892 if test x$gtk_config_prefix != x ; then
6893 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
6894 if test x${GTK_CONFIG+set} != xset ; then
6895 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
6896 fi
6897 fi
6898
6899 # Extract the first word of "gtk-config", so it can be a program name with args.
6900set dummy gtk-config; ac_word=$2
6901echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
dad6c0ea 6902echo "configure:6903: checking for $ac_word" >&5
10f2d63a
VZ
6903if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
6904 echo $ac_n "(cached) $ac_c" 1>&6
6905else
6906 case "$GTK_CONFIG" in
6907 /*)
6908 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
6909 ;;
6910 ?:/*)
6911 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
6912 ;;
6913 *)
6914 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6915 ac_dummy="$PATH"
6916 for ac_dir in $ac_dummy; do
6917 test -z "$ac_dir" && ac_dir=.
6918 if test -f $ac_dir/$ac_word; then
6919 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
6920 break
6921 fi
6922 done
6923 IFS="$ac_save_ifs"
6924 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
6925 ;;
6926esac
6927fi
6928GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
6929if test -n "$GTK_CONFIG"; then
6930 echo "$ac_t""$GTK_CONFIG" 1>&6
6931else
6932 echo "$ac_t""no" 1>&6
6933fi
6934
04165bec 6935 min_gtk_version=1.2.3
10f2d63a 6936 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
dad6c0ea 6937echo "configure:6938: checking for GTK - version >= $min_gtk_version" >&5
10f2d63a
VZ
6938 no_gtk=""
6939 if test "$GTK_CONFIG" != "no" ; then
6940 GTK_CFLAGS=`$GTK_CONFIG --cflags`
6941 GTK_LIBS=`$GTK_CONFIG --libs`
6942 ac_save_CFLAGS="$CFLAGS"
6943 ac_save_LIBS="$LIBS"
6944 CFLAGS="$CFLAGS $GTK_CFLAGS"
6945 LIBS="$LIBS $GTK_LIBS"
6946 if test "$cross_compiling" = yes; then
6947 echo $ac_n "cross compiling; assumed OK... $ac_c"
6948else
6949 cat > conftest.$ac_ext <<EOF
dad6c0ea 6950#line 6951 "configure"
10f2d63a
VZ
6951#include "confdefs.h"
6952
6953#include <gtk/gtk.h>
f49f2b0c 6954#include <gtk/gtkfeatures.h>
10f2d63a
VZ
6955#include <stdio.h>
6956
6957int
6958main ()
6959{
6960 int major, minor, micro;
6961
6962 if (sscanf("$min_gtk_version", "%d.%d.%d", &major, &minor, &micro) != 3) {
6963 printf("%s, bad version string\n", "$min_gtk_version");
6964 exit(1);
6965 }
6966
f49f2b0c
RR
6967 if ((GTK_MAJOR_VERSION != gtk_major_version) ||
6968 (GTK_MINOR_VERSION != gtk_minor_version) ||
6969 (GTK_MICRO_VERSION != gtk_micro_version)) {
6970 printf("Headers vs. library version mismatch!\n");
6971 exit(1);
6972 }
6973
10f2d63a
VZ
6974 if (gtk_minor_version == 1) return FALSE;
6975
6976 return !((gtk_major_version > major) ||
6977 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
6978 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)));
6979}
6980
6981EOF
dad6c0ea 6982if { (eval echo configure:6983: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10f2d63a
VZ
6983then
6984 :
6985else
6986 echo "configure: failed program was:" >&5
6987 cat conftest.$ac_ext >&5
6988 rm -fr conftest*
6989 no_gtk=yes
6990fi
6991rm -fr conftest*
6992fi
6993
6994 CFLAGS="$ac_save_CFLAGS"
6995 LIBS="$ac_save_LIBS"
6996 else
6997 no_gtk=yes
6998 fi
6999 if test "x$no_gtk" = x ; then
7000 echo "$ac_t""yes" 1>&6
7001 WXGTK12=1
7002 else
7003 echo "$ac_t""no" 1>&6
7004 GTK_CFLAGS=""
7005 GTK_LIBS=""
04165bec 7006 { echo "configure: error: Is gtk-config in path and GTK+ is version 1.2.3 or above?" 1>&2; exit 1; }
10f2d63a
VZ
7007 fi
7008
7009
7010
7011
7012 TOOLKIT_INCLUDE="$GTK_CFLAGS"
924ef850 7013 GUI_TK_LIBRARY="$GTK_LIBS -lgthread"
10f2d63a
VZ
7014 TOOLKIT=GTK
7015
dad6c0ea
VZ
7016 AFMINSTALL=afminstall
7017
10f2d63a
VZ
7018 GUIOBJS="\$(GTK_GUIOBJS)"
7019 GUIHEADERS="\$(GTK_HEADERS)"
7020 COMMONOBJS="\$(GTK_COMMONOBJS)"
7021 GENERICOBJS="\$(GTK_GENERICOBJS)"
7022 GUIDEPS="\$(GTK_GUIDEPS)"
7023 COMMONDEPS="\$(GTK_COMMONDEPS)"
7024 GENERICDEPS="\$(GTK_GENERICDEPS)"
7025 UNIXOBJS="\$(UNIX_OBJS)"
d9d8273d 7026 UNIXDEPS="\$(UNIX_DEPS)"
10f2d63a 7027 GUIDIST=GTK_DIST
7ec2881a
RR
7028
7029echo $ac_n "checking for gdk_im_open in -lgdk""... $ac_c" 1>&6
dad6c0ea 7030echo "configure:7031: checking for gdk_im_open in -lgdk" >&5
7ec2881a
RR
7031ac_lib_var=`echo gdk'_'gdk_im_open | sed 'y%./+-%__p_%'`
7032if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7033 echo $ac_n "(cached) $ac_c" 1>&6
7034else
7035 ac_save_LIBS="$LIBS"
7036LIBS="-lgdk $LIBS"
7037cat > conftest.$ac_ext <<EOF
dad6c0ea 7038#line 7039 "configure"
7ec2881a
RR
7039#include "confdefs.h"
7040/* Override any gcc2 internal prototype to avoid an error. */
7041/* We use char because int might match the return type of a gcc2
7042 builtin and then its argument prototype would still apply. */
7043char gdk_im_open();
7044
7045int main() {
7046gdk_im_open()
7047; return 0; }
7048EOF
dad6c0ea 7049if { (eval echo configure:7050: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7ec2881a
RR
7050 rm -rf conftest*
7051 eval "ac_cv_lib_$ac_lib_var=yes"
7052else
7053 echo "configure: failed program was:" >&5
7054 cat conftest.$ac_ext >&5
7055 rm -rf conftest*
7056 eval "ac_cv_lib_$ac_lib_var=no"
7057fi
7058rm -f conftest*
7059LIBS="$ac_save_LIBS"
7060
7061fi
7062if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7063 echo "$ac_t""yes" 1>&6
7064 cat >> confdefs.h <<\EOF
7065#define HAVE_XIM 1
7066EOF
7067
7068else
7069 echo "$ac_t""no" 1>&6
7070fi
7071
7072
10f2d63a
VZ
7073fi
7074
7075if test "$wxUSE_WINE" = 1; then
7076 echo $ac_n "checking for WINE includes""... $ac_c" 1>&6
dad6c0ea 7077echo "configure:7078: checking for WINE includes" >&5
10f2d63a
VZ
7078
7079ac_find_includes=
7080for ac_dir in $SEARCH_INCLUDE;
7081 do
7082 if test -f "$ac_dir/windows.h"; then
7083 ac_find_includes=$ac_dir
7084 break
7085 fi
7086 done
7087
7088 if test "$ac_find_includes" != "" ; then
7089 echo "$ac_t""found $ac_find_includes" 1>&6
7090 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE -I$ac_find_includes"
7091 else
7092 echo "$ac_t""no" 1>&6
7093 { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; }
7094 fi
7095
7096 XPM_LINK=""
7097 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
dad6c0ea 7098echo "configure:7099: checking for Xpm library" >&5
10f2d63a
VZ
7099
7100ac_find_libraries=
7101for ac_dir in $SEARCH_LIB;
7102 do
7103 for ac_extension in a so sl; do
7104 if test -f "$ac_dir/libXpm.$ac_extension"; then
7105 ac_find_libraries=$ac_dir
7106 break 2
7107 fi
7108 done
7109 done
7110
7111 if test "$ac_find_libraries" != "" ; then
7112 GUI_TK_LIBRARY="-L$ac_find_libraries"
7113 XPM_LINK="-lXpm"
7114 cat >> confdefs.h <<\EOF
7115#define wxHAVE_LIB_XPM 1
7116EOF
7117
7118 echo "$ac_t""found at $ac_find_libraries" 1>&6
7119 else
7120 echo "$ac_t""no" 1>&6
7121 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
7122 fi
7123
7124 MESA_LINK=""
7125 echo $ac_n "checking for Mesa library""... $ac_c" 1>&6
dad6c0ea 7126echo "configure:7127: checking for Mesa library" >&5
10f2d63a
VZ
7127
7128ac_find_libraries=
7129for ac_dir in $SEARCH_LIB;
7130 do
7131 for ac_extension in a so sl; do
7132 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
7133 ac_find_libraries=$ac_dir
7134 break 2
7135 fi
7136 done
7137 done
7138
7139 if test "$ac_find_libraries" != "" ; then
7140 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -L$ac_find_libraries"
7141 MESA_LINK="-lMesaGL"
7142 echo "$ac_t""found at $ac_find_libraries" 1>&6
7143 else
7144 { echo "configure: error: no" 1>&2; exit 1; }
7145 fi
7146
7147 GUI_TK_LINK="-lwine $MESA_LINK $XPM_LINK -lXxf86dga -lXxf86vm -lSM -lICE -lXext -lXmu -lX11 -lncurses -lm"
7148 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $GUI_TK_LINK"
7149 WXWINE=1
7150 TOOLKIT=MSW
7151
7152 GUIHEADERS="\$(MSW_HEADERS)"
7153 GUIOBJS="\$(MSW_GUIOBJS)"
7154 COMMONOBJS="\$(MSW_COMMONOBJS)"
7155 GENERICOBJS="\$(MSW_GENERICOBJS)"
7156 GUIDEPS="\$(MSW_GUIDEPS)"
7157 COMMONDEPS="\$(MSW_COMMONDEPS)"
7158 GENERICDEPS="\$(MSW_GENERICDEPS)"
7159 UNIXOBJS="\$(UNIX_OBJS)"
d9d8273d 7160 UNIXDEPS="\$(UNIX_DEPS)"
10f2d63a
VZ
7161 GUIDIST=MSW_DIST
7162fi
7163
7164if test "$wxUSE_MOTIF" = 1; then
ab9b9eab
VZ
7165 # If we find X, set shell vars x_includes and x_libraries to the
7166# paths, otherwise set no_x=yes.
7167# Uses ac_ vars as temps to allow command line to override cache and checks.
7168# --without-x overrides everything else, but does not touch the cache.
7169echo $ac_n "checking for X""... $ac_c" 1>&6
dad6c0ea 7170echo "configure:7171: checking for X" >&5
ab9b9eab
VZ
7171
7172# Check whether --with-x or --without-x was given.
7173if test "${with_x+set}" = set; then
7174 withval="$with_x"
7175 :
7176fi
ba337fe7 7177
ab9b9eab
VZ
7178# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7179if test "x$with_x" = xno; then
7180 # The user explicitly disabled X.
7181 have_x=disabled
7182else
7183 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
7184 # Both variables are already set.
7185 have_x=yes
7186 else
7187if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
7188 echo $ac_n "(cached) $ac_c" 1>&6
7189else
7190 # One or both of the vars are not set, and there is no cached value.
7191ac_x_includes=NO ac_x_libraries=NO
7192rm -fr conftestdir
7193if mkdir conftestdir; then
7194 cd conftestdir
7195 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
7196 cat > Imakefile <<'EOF'
7197acfindx:
7198 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
7199EOF
7200 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
7201 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7202 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
7203 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
10f2d63a 7204 for ac_extension in a so sl; do
ab9b9eab
VZ
7205 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
7206 test -f $ac_im_libdir/libX11.$ac_extension; then
7207 ac_im_usrlibdir=$ac_im_libdir; break
10f2d63a
VZ
7208 fi
7209 done
ab9b9eab
VZ
7210 # Screen out bogus values from the imake configuration. They are
7211 # bogus both because they are the default anyway, and because
7212 # using them would break gcc on systems where it needs fixed includes.
7213 case "$ac_im_incroot" in
7214 /usr/include) ;;
7215 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
7216 esac
7217 case "$ac_im_usrlibdir" in
7218 /usr/lib | /lib) ;;
7219 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
7220 esac
ba337fe7 7221 fi
ab9b9eab
VZ
7222 cd ..
7223 rm -fr conftestdir
7224fi
10f2d63a 7225
ab9b9eab
VZ
7226if test "$ac_x_includes" = NO; then
7227 # Guess where to find include files, by looking for this one X11 .h file.
7228 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
ba337fe7 7229
ab9b9eab
VZ
7230 # First, try using that file with no special directory specified.
7231cat > conftest.$ac_ext <<EOF
dad6c0ea 7232#line 7233 "configure"
ab9b9eab
VZ
7233#include "confdefs.h"
7234#include <$x_direct_test_include>
7235EOF
7236ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
dad6c0ea 7237{ (eval echo configure:7238: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ab9b9eab
VZ
7238ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7239if test -z "$ac_err"; then
7240 rm -rf conftest*
7241 # We can compile using X headers with no special include directory.
7242ac_x_includes=
7243else
7244 echo "$ac_err" >&5
7245 echo "configure: failed program was:" >&5
7246 cat conftest.$ac_ext >&5
7247 rm -rf conftest*
7248 # Look for the header file in a standard set of common directories.
7249# Check X11 before X11Rn because it is often a symlink to the current release.
7250 for ac_dir in \
7251 /usr/X11/include \
7252 /usr/X11R6/include \
7253 /usr/X11R5/include \
7254 /usr/X11R4/include \
7255 \
7256 /usr/include/X11 \
7257 /usr/include/X11R6 \
7258 /usr/include/X11R5 \
7259 /usr/include/X11R4 \
7260 \
7261 /usr/local/X11/include \
7262 /usr/local/X11R6/include \
7263 /usr/local/X11R5/include \
7264 /usr/local/X11R4/include \
7265 \
7266 /usr/local/include/X11 \
7267 /usr/local/include/X11R6 \
7268 /usr/local/include/X11R5 \
7269 /usr/local/include/X11R4 \
7270 \
7271 /usr/X386/include \
7272 /usr/x386/include \
7273 /usr/XFree86/include/X11 \
7274 \
7275 /usr/include \
7276 /usr/local/include \
7277 /usr/unsupported/include \
7278 /usr/athena/include \
7279 /usr/local/x11r5/include \
7280 /usr/lpp/Xamples/include \
7281 \
7282 /usr/openwin/include \
7283 /usr/openwin/share/include \
7284 ; \
10f2d63a 7285 do
ab9b9eab
VZ
7286 if test -r "$ac_dir/$x_direct_test_include"; then
7287 ac_x_includes=$ac_dir
10f2d63a
VZ
7288 break
7289 fi
7290 done
ab9b9eab
VZ
7291fi
7292rm -f conftest*
7293fi # $ac_x_includes = NO
10f2d63a 7294
ab9b9eab
VZ
7295if test "$ac_x_libraries" = NO; then
7296 # Check for the libraries.
10f2d63a 7297
ab9b9eab
VZ
7298 test -z "$x_direct_test_library" && x_direct_test_library=Xt
7299 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
10f2d63a 7300
ab9b9eab
VZ
7301 # See if we find them without any special options.
7302 # Don't add to $LIBS permanently.
7303 ac_save_LIBS="$LIBS"
7304 LIBS="-l$x_direct_test_library $LIBS"
7305cat > conftest.$ac_ext <<EOF
dad6c0ea 7306#line 7307 "configure"
ab9b9eab 7307#include "confdefs.h"
10f2d63a 7308
ab9b9eab
VZ
7309int main() {
7310${x_direct_test_function}()
7311; return 0; }
7312EOF
dad6c0ea 7313if { (eval echo configure:7314: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
7314 rm -rf conftest*
7315 LIBS="$ac_save_LIBS"
7316# We can link X programs with no special library path.
7317ac_x_libraries=
7318else
7319 echo "configure: failed program was:" >&5
7320 cat conftest.$ac_ext >&5
7321 rm -rf conftest*
7322 LIBS="$ac_save_LIBS"
7323# First see if replacing the include by lib works.
7324# Check X11 before X11Rn because it is often a symlink to the current release.
7325for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
7326 /usr/X11/lib \
7327 /usr/X11R6/lib \
7328 /usr/X11R5/lib \
7329 /usr/X11R4/lib \
7330 \
7331 /usr/lib/X11 \
7332 /usr/lib/X11R6 \
7333 /usr/lib/X11R5 \
7334 /usr/lib/X11R4 \
7335 \
7336 /usr/local/X11/lib \
7337 /usr/local/X11R6/lib \
7338 /usr/local/X11R5/lib \
7339 /usr/local/X11R4/lib \
7340 \
7341 /usr/local/lib/X11 \
7342 /usr/local/lib/X11R6 \
7343 /usr/local/lib/X11R5 \
7344 /usr/local/lib/X11R4 \
7345 \
7346 /usr/X386/lib \
7347 /usr/x386/lib \
7348 /usr/XFree86/lib/X11 \
7349 \
7350 /usr/lib \
7351 /usr/local/lib \
7352 /usr/unsupported/lib \
7353 /usr/athena/lib \
7354 /usr/local/x11r5/lib \
7355 /usr/lpp/Xamples/lib \
7356 /lib/usr/lib/X11 \
7357 \
7358 /usr/openwin/lib \
7359 /usr/openwin/share/lib \
7360 ; \
7361do
7362 for ac_extension in a so sl; do
7363 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
7364 ac_x_libraries=$ac_dir
7365 break 2
10f2d63a 7366 fi
10f2d63a 7367 done
ab9b9eab
VZ
7368done
7369fi
7370rm -f conftest*
7371fi # $ac_x_libraries = NO
10f2d63a 7372
ab9b9eab
VZ
7373if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
7374 # Didn't find X anywhere. Cache the known absence of X.
7375 ac_cv_have_x="have_x=no"
7376else
7377 # Record where we found X for the cache.
7378 ac_cv_have_x="have_x=yes \
7379 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
7380fi
7381fi
10f2d63a 7382 fi
ab9b9eab
VZ
7383 eval "$ac_cv_have_x"
7384fi # $with_x != no
10f2d63a 7385
ab9b9eab
VZ
7386if test "$have_x" != yes; then
7387 echo "$ac_t""$have_x" 1>&6
7388 no_x=yes
7389else
7390 # If each of the values was on the command line, it overrides each guess.
7391 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
7392 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
7393 # Update the cache value to reflect the command line values.
7394 ac_cv_have_x="have_x=yes \
7395 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
7396 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
7397fi
10f2d63a 7398
ab9b9eab
VZ
7399if test "$no_x" = yes; then
7400 # Not all programs may use this symbol, but it does not hurt to define it.
7401 cat >> confdefs.h <<\EOF
7402#define X_DISPLAY_MISSING 1
7403EOF
10f2d63a 7404
ab9b9eab
VZ
7405 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
7406else
7407 if test -n "$x_includes"; then
7408 X_CFLAGS="$X_CFLAGS -I$x_includes"
10f2d63a
VZ
7409 fi
7410
ab9b9eab
VZ
7411 # It would also be nice to do this for all -L options, not just this one.
7412 if test -n "$x_libraries"; then
7413 X_LIBS="$X_LIBS -L$x_libraries"
7414 # For Solaris; some versions of Sun CC require a space after -R and
7415 # others require no space. Words are not sufficient . . . .
7416 case "`(uname -sr) 2>/dev/null`" in
7417 "SunOS 5"*)
7418 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
dad6c0ea 7419echo "configure:7420: checking whether -R must be followed by a space" >&5
ab9b9eab
VZ
7420 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
7421 cat > conftest.$ac_ext <<EOF
dad6c0ea 7422#line 7423 "configure"
ab9b9eab 7423#include "confdefs.h"
10f2d63a 7424
ab9b9eab 7425int main() {
788deba1 7426
ab9b9eab
VZ
7427; return 0; }
7428EOF
dad6c0ea 7429if { (eval echo configure:7430: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
7430 rm -rf conftest*
7431 ac_R_nospace=yes
7432else
7433 echo "configure: failed program was:" >&5
7434 cat conftest.$ac_ext >&5
7435 rm -rf conftest*
7436 ac_R_nospace=no
7437fi
7438rm -f conftest*
7439 if test $ac_R_nospace = yes; then
7440 echo "$ac_t""no" 1>&6
7441 X_LIBS="$X_LIBS -R$x_libraries"
7442 else
7443 LIBS="$ac_xsave_LIBS -R $x_libraries"
7444 cat > conftest.$ac_ext <<EOF
dad6c0ea 7445#line 7446 "configure"
ab9b9eab 7446#include "confdefs.h"
788deba1 7447
ab9b9eab
VZ
7448int main() {
7449
7450; return 0; }
7451EOF
dad6c0ea 7452if { (eval echo configure:7453: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
7453 rm -rf conftest*
7454 ac_R_space=yes
7455else
7456 echo "configure: failed program was:" >&5
7457 cat conftest.$ac_ext >&5
7458 rm -rf conftest*
7459 ac_R_space=no
7460fi
7461rm -f conftest*
7462 if test $ac_R_space = yes; then
7463 echo "$ac_t""yes" 1>&6
7464 X_LIBS="$X_LIBS -R $x_libraries"
7465 else
7466 echo "$ac_t""neither works" 1>&6
7467 fi
7468 fi
7469 LIBS="$ac_xsave_LIBS"
7470 esac
7471 fi
7472
7473 # Check for system-dependent libraries X programs must link with.
7474 # Do this before checking for the system-independent R6 libraries
7475 # (-lICE), since we may need -lsocket or whatever for X linking.
7476
7477 if test "$ISC" = yes; then
7478 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
7479 else
7480 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
7481 # libraries were built with DECnet support. And karl@cs.umb.edu says
7482 # the Alpha needs dnet_stub (dnet does not exist).
7483 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
dad6c0ea 7484echo "configure:7485: checking for dnet_ntoa in -ldnet" >&5
ab9b9eab
VZ
7485ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
7486if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7487 echo $ac_n "(cached) $ac_c" 1>&6
7488else
7489 ac_save_LIBS="$LIBS"
7490LIBS="-ldnet $LIBS"
7491cat > conftest.$ac_ext <<EOF
dad6c0ea 7492#line 7493 "configure"
ab9b9eab
VZ
7493#include "confdefs.h"
7494/* Override any gcc2 internal prototype to avoid an error. */
7495/* We use char because int might match the return type of a gcc2
7496 builtin and then its argument prototype would still apply. */
7497char dnet_ntoa();
7498
7499int main() {
7500dnet_ntoa()
7501; return 0; }
7502EOF
dad6c0ea 7503if { (eval echo configure:7504: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
7504 rm -rf conftest*
7505 eval "ac_cv_lib_$ac_lib_var=yes"
7506else
7507 echo "configure: failed program was:" >&5
7508 cat conftest.$ac_ext >&5
7509 rm -rf conftest*
7510 eval "ac_cv_lib_$ac_lib_var=no"
7511fi
7512rm -f conftest*
7513LIBS="$ac_save_LIBS"
7514
7515fi
7516if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7517 echo "$ac_t""yes" 1>&6
7518 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
7519else
7520 echo "$ac_t""no" 1>&6
7521fi
7522
7523 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
7524 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
dad6c0ea 7525echo "configure:7526: checking for dnet_ntoa in -ldnet_stub" >&5
ab9b9eab
VZ
7526ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
7527if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7528 echo $ac_n "(cached) $ac_c" 1>&6
7529else
7530 ac_save_LIBS="$LIBS"
7531LIBS="-ldnet_stub $LIBS"
7532cat > conftest.$ac_ext <<EOF
dad6c0ea 7533#line 7534 "configure"
ab9b9eab
VZ
7534#include "confdefs.h"
7535/* Override any gcc2 internal prototype to avoid an error. */
7536/* We use char because int might match the return type of a gcc2
7537 builtin and then its argument prototype would still apply. */
7538char dnet_ntoa();
7539
7540int main() {
7541dnet_ntoa()
7542; return 0; }
7543EOF
dad6c0ea 7544if { (eval echo configure:7545: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
7545 rm -rf conftest*
7546 eval "ac_cv_lib_$ac_lib_var=yes"
7547else
7548 echo "configure: failed program was:" >&5
7549 cat conftest.$ac_ext >&5
7550 rm -rf conftest*
7551 eval "ac_cv_lib_$ac_lib_var=no"
7552fi
7553rm -f conftest*
7554LIBS="$ac_save_LIBS"
7555
7556fi
7557if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7558 echo "$ac_t""yes" 1>&6
7559 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
7560else
7561 echo "$ac_t""no" 1>&6
7562fi
7563
7564 fi
7565
7566 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
7567 # to get the SysV transport functions.
7568 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
7569 # needs -lnsl.
7570 # The nsl library prevents programs from opening the X display
7571 # on Irix 5.2, according to dickey@clark.net.
7572 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
dad6c0ea 7573echo "configure:7574: checking for gethostbyname" >&5
ab9b9eab
VZ
7574if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
7575 echo $ac_n "(cached) $ac_c" 1>&6
7576else
7577 cat > conftest.$ac_ext <<EOF
dad6c0ea 7578#line 7579 "configure"
ab9b9eab
VZ
7579#include "confdefs.h"
7580/* System header to define __stub macros and hopefully few prototypes,
7581 which can conflict with char gethostbyname(); below. */
7582#include <assert.h>
7583/* Override any gcc2 internal prototype to avoid an error. */
7584/* We use char because int might match the return type of a gcc2
7585 builtin and then its argument prototype would still apply. */
7586char gethostbyname();
7587
7588int main() {
7589
7590/* The GNU C library defines this for functions which it implements
7591 to always fail with ENOSYS. Some functions are actually named
7592 something starting with __ and the normal name is an alias. */
7593#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
7594choke me
7595#else
caa2c79b 7596gethostbyname();
ab9b9eab
VZ
7597#endif
7598
7599; return 0; }
7600EOF
dad6c0ea 7601if { (eval echo configure:7602: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
7602 rm -rf conftest*
7603 eval "ac_cv_func_gethostbyname=yes"
7604else
7605 echo "configure: failed program was:" >&5
7606 cat conftest.$ac_ext >&5
7607 rm -rf conftest*
7608 eval "ac_cv_func_gethostbyname=no"
7609fi
7610rm -f conftest*
7611fi
7612
7613if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
7614 echo "$ac_t""yes" 1>&6
7615 :
7616else
7617 echo "$ac_t""no" 1>&6
7618fi
7619
7620 if test $ac_cv_func_gethostbyname = no; then
7621 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
dad6c0ea 7622echo "configure:7623: checking for gethostbyname in -lnsl" >&5
ab9b9eab
VZ
7623ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
7624if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7625 echo $ac_n "(cached) $ac_c" 1>&6
7626else
7627 ac_save_LIBS="$LIBS"
7628LIBS="-lnsl $LIBS"
7629cat > conftest.$ac_ext <<EOF
dad6c0ea 7630#line 7631 "configure"
ab9b9eab
VZ
7631#include "confdefs.h"
7632/* Override any gcc2 internal prototype to avoid an error. */
7633/* We use char because int might match the return type of a gcc2
7634 builtin and then its argument prototype would still apply. */
7635char gethostbyname();
7636
7637int main() {
7638gethostbyname()
7639; return 0; }
7640EOF
dad6c0ea 7641if { (eval echo configure:7642: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
7642 rm -rf conftest*
7643 eval "ac_cv_lib_$ac_lib_var=yes"
7644else
7645 echo "configure: failed program was:" >&5
7646 cat conftest.$ac_ext >&5
7647 rm -rf conftest*
7648 eval "ac_cv_lib_$ac_lib_var=no"
7649fi
7650rm -f conftest*
7651LIBS="$ac_save_LIBS"
7652
7653fi
7654if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7655 echo "$ac_t""yes" 1>&6
7656 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
7657else
7658 echo "$ac_t""no" 1>&6
7659fi
7660
7661 fi
7662
7663 # lieder@skyler.mavd.honeywell.com says without -lsocket,
7664 # socket/setsockopt and other routines are undefined under SCO ODT
7665 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
7666 # on later versions), says simon@lia.di.epfl.ch: it contains
7667 # gethostby* variants that don't use the nameserver (or something).
7668 # -lsocket must be given before -lnsl if both are needed.
7669 # We assume that if connect needs -lnsl, so does gethostbyname.
7670 echo $ac_n "checking for connect""... $ac_c" 1>&6
dad6c0ea 7671echo "configure:7672: checking for connect" >&5
ab9b9eab
VZ
7672if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
7673 echo $ac_n "(cached) $ac_c" 1>&6
7674else
7675 cat > conftest.$ac_ext <<EOF
dad6c0ea 7676#line 7677 "configure"
ab9b9eab
VZ
7677#include "confdefs.h"
7678/* System header to define __stub macros and hopefully few prototypes,
7679 which can conflict with char connect(); below. */
7680#include <assert.h>
7681/* Override any gcc2 internal prototype to avoid an error. */
7682/* We use char because int might match the return type of a gcc2
7683 builtin and then its argument prototype would still apply. */
7684char connect();
7685
7686int main() {
7687
7688/* The GNU C library defines this for functions which it implements
7689 to always fail with ENOSYS. Some functions are actually named
7690 something starting with __ and the normal name is an alias. */
7691#if defined (__stub_connect) || defined (__stub___connect)
7692choke me
7693#else
caa2c79b 7694connect();
ab9b9eab
VZ
7695#endif
7696
7697; return 0; }
7698EOF
dad6c0ea 7699if { (eval echo configure:7700: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
7700 rm -rf conftest*
7701 eval "ac_cv_func_connect=yes"
7702else
7703 echo "configure: failed program was:" >&5
7704 cat conftest.$ac_ext >&5
7705 rm -rf conftest*
7706 eval "ac_cv_func_connect=no"
7707fi
7708rm -f conftest*
7709fi
7710
7711if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
7712 echo "$ac_t""yes" 1>&6
7713 :
7714else
7715 echo "$ac_t""no" 1>&6
7716fi
7717
7718 if test $ac_cv_func_connect = no; then
7719 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
dad6c0ea 7720echo "configure:7721: checking for connect in -lsocket" >&5
ab9b9eab
VZ
7721ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
7722if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7723 echo $ac_n "(cached) $ac_c" 1>&6
7724else
7725 ac_save_LIBS="$LIBS"
7726LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
7727cat > conftest.$ac_ext <<EOF
dad6c0ea 7728#line 7729 "configure"
ab9b9eab
VZ
7729#include "confdefs.h"
7730/* Override any gcc2 internal prototype to avoid an error. */
7731/* We use char because int might match the return type of a gcc2
7732 builtin and then its argument prototype would still apply. */
7733char connect();
7734
7735int main() {
7736connect()
7737; return 0; }
7738EOF
dad6c0ea 7739if { (eval echo configure:7740: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
7740 rm -rf conftest*
7741 eval "ac_cv_lib_$ac_lib_var=yes"
7742else
7743 echo "configure: failed program was:" >&5
7744 cat conftest.$ac_ext >&5
7745 rm -rf conftest*
7746 eval "ac_cv_lib_$ac_lib_var=no"
7747fi
7748rm -f conftest*
7749LIBS="$ac_save_LIBS"
7750
7751fi
7752if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7753 echo "$ac_t""yes" 1>&6
7754 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
7755else
7756 echo "$ac_t""no" 1>&6
7757fi
7758
7759 fi
7760
7761 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
7762 echo $ac_n "checking for remove""... $ac_c" 1>&6
dad6c0ea 7763echo "configure:7764: checking for remove" >&5
ab9b9eab
VZ
7764if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
7765 echo $ac_n "(cached) $ac_c" 1>&6
7766else
7767 cat > conftest.$ac_ext <<EOF
dad6c0ea 7768#line 7769 "configure"
ab9b9eab
VZ
7769#include "confdefs.h"
7770/* System header to define __stub macros and hopefully few prototypes,
7771 which can conflict with char remove(); below. */
7772#include <assert.h>
7773/* Override any gcc2 internal prototype to avoid an error. */
7774/* We use char because int might match the return type of a gcc2
7775 builtin and then its argument prototype would still apply. */
7776char remove();
7777
7778int main() {
7779
7780/* The GNU C library defines this for functions which it implements
7781 to always fail with ENOSYS. Some functions are actually named
7782 something starting with __ and the normal name is an alias. */
7783#if defined (__stub_remove) || defined (__stub___remove)
7784choke me
7785#else
caa2c79b 7786remove();
ab9b9eab
VZ
7787#endif
7788
7789; return 0; }
7790EOF
dad6c0ea 7791if { (eval echo configure:7792: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
7792 rm -rf conftest*
7793 eval "ac_cv_func_remove=yes"
7794else
7795 echo "configure: failed program was:" >&5
7796 cat conftest.$ac_ext >&5
7797 rm -rf conftest*
7798 eval "ac_cv_func_remove=no"
7799fi
7800rm -f conftest*
7801fi
7802
7803if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
7804 echo "$ac_t""yes" 1>&6
7805 :
7806else
7807 echo "$ac_t""no" 1>&6
7808fi
7809
7810 if test $ac_cv_func_remove = no; then
7811 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
dad6c0ea 7812echo "configure:7813: checking for remove in -lposix" >&5
ab9b9eab
VZ
7813ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
7814if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7815 echo $ac_n "(cached) $ac_c" 1>&6
7816else
7817 ac_save_LIBS="$LIBS"
7818LIBS="-lposix $LIBS"
7819cat > conftest.$ac_ext <<EOF
dad6c0ea 7820#line 7821 "configure"
ab9b9eab
VZ
7821#include "confdefs.h"
7822/* Override any gcc2 internal prototype to avoid an error. */
7823/* We use char because int might match the return type of a gcc2
7824 builtin and then its argument prototype would still apply. */
7825char remove();
7826
7827int main() {
7828remove()
7829; return 0; }
7830EOF
dad6c0ea 7831if { (eval echo configure:7832: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
7832 rm -rf conftest*
7833 eval "ac_cv_lib_$ac_lib_var=yes"
7834else
7835 echo "configure: failed program was:" >&5
7836 cat conftest.$ac_ext >&5
7837 rm -rf conftest*
7838 eval "ac_cv_lib_$ac_lib_var=no"
7839fi
7840rm -f conftest*
7841LIBS="$ac_save_LIBS"
7842
7843fi
7844if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7845 echo "$ac_t""yes" 1>&6
7846 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
7847else
7848 echo "$ac_t""no" 1>&6
7849fi
7850
7851 fi
7852
7853 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
7854 echo $ac_n "checking for shmat""... $ac_c" 1>&6
dad6c0ea 7855echo "configure:7856: checking for shmat" >&5
ab9b9eab
VZ
7856if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
7857 echo $ac_n "(cached) $ac_c" 1>&6
7858else
7859 cat > conftest.$ac_ext <<EOF
dad6c0ea 7860#line 7861 "configure"
ab9b9eab
VZ
7861#include "confdefs.h"
7862/* System header to define __stub macros and hopefully few prototypes,
7863 which can conflict with char shmat(); below. */
7864#include <assert.h>
7865/* Override any gcc2 internal prototype to avoid an error. */
7866/* We use char because int might match the return type of a gcc2
7867 builtin and then its argument prototype would still apply. */
7868char shmat();
7869
7870int main() {
7871
7872/* The GNU C library defines this for functions which it implements
7873 to always fail with ENOSYS. Some functions are actually named
7874 something starting with __ and the normal name is an alias. */
7875#if defined (__stub_shmat) || defined (__stub___shmat)
7876choke me
7877#else
caa2c79b 7878shmat();
ab9b9eab
VZ
7879#endif
7880
7881; return 0; }
7882EOF
dad6c0ea 7883if { (eval echo configure:7884: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
7884 rm -rf conftest*
7885 eval "ac_cv_func_shmat=yes"
7886else
7887 echo "configure: failed program was:" >&5
7888 cat conftest.$ac_ext >&5
7889 rm -rf conftest*
7890 eval "ac_cv_func_shmat=no"
7891fi
7892rm -f conftest*
7893fi
7894
7895if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
7896 echo "$ac_t""yes" 1>&6
7897 :
7898else
7899 echo "$ac_t""no" 1>&6
7900fi
7901
7902 if test $ac_cv_func_shmat = no; then
7903 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
dad6c0ea 7904echo "configure:7905: checking for shmat in -lipc" >&5
ab9b9eab
VZ
7905ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
7906if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7907 echo $ac_n "(cached) $ac_c" 1>&6
7908else
7909 ac_save_LIBS="$LIBS"
7910LIBS="-lipc $LIBS"
7911cat > conftest.$ac_ext <<EOF
dad6c0ea 7912#line 7913 "configure"
ab9b9eab
VZ
7913#include "confdefs.h"
7914/* Override any gcc2 internal prototype to avoid an error. */
7915/* We use char because int might match the return type of a gcc2
7916 builtin and then its argument prototype would still apply. */
7917char shmat();
7918
7919int main() {
7920shmat()
7921; return 0; }
7922EOF
dad6c0ea 7923if { (eval echo configure:7924: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
7924 rm -rf conftest*
7925 eval "ac_cv_lib_$ac_lib_var=yes"
7926else
7927 echo "configure: failed program was:" >&5
7928 cat conftest.$ac_ext >&5
7929 rm -rf conftest*
7930 eval "ac_cv_lib_$ac_lib_var=no"
7931fi
7932rm -f conftest*
7933LIBS="$ac_save_LIBS"
7934
7935fi
7936if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7937 echo "$ac_t""yes" 1>&6
7938 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
7939else
7940 echo "$ac_t""no" 1>&6
7941fi
7942
7943 fi
7944 fi
7945
7946 # Check for libraries that X11R6 Xt/Xaw programs need.
7947 ac_save_LDFLAGS="$LDFLAGS"
7948 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
7949 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
7950 # check for ICE first), but we must link in the order -lSM -lICE or
7951 # we get undefined symbols. So assume we have SM if we have ICE.
7952 # These have to be linked with before -lX11, unlike the other
7953 # libraries we check for below, so use a different variable.
7954 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
7955 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
dad6c0ea 7956echo "configure:7957: checking for IceConnectionNumber in -lICE" >&5
ab9b9eab
VZ
7957ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
7958if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7959 echo $ac_n "(cached) $ac_c" 1>&6
7960else
7961 ac_save_LIBS="$LIBS"
7962LIBS="-lICE $X_EXTRA_LIBS $LIBS"
7963cat > conftest.$ac_ext <<EOF
dad6c0ea 7964#line 7965 "configure"
ab9b9eab
VZ
7965#include "confdefs.h"
7966/* Override any gcc2 internal prototype to avoid an error. */
7967/* We use char because int might match the return type of a gcc2
7968 builtin and then its argument prototype would still apply. */
7969char IceConnectionNumber();
7970
7971int main() {
7972IceConnectionNumber()
7973; return 0; }
7974EOF
dad6c0ea 7975if { (eval echo configure:7976: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
7976 rm -rf conftest*
7977 eval "ac_cv_lib_$ac_lib_var=yes"
7978else
7979 echo "configure: failed program was:" >&5
7980 cat conftest.$ac_ext >&5
7981 rm -rf conftest*
7982 eval "ac_cv_lib_$ac_lib_var=no"
7983fi
7984rm -f conftest*
7985LIBS="$ac_save_LIBS"
7986
7987fi
7988if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7989 echo "$ac_t""yes" 1>&6
7990 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
7991else
7992 echo "$ac_t""no" 1>&6
7993fi
7994
7995 LDFLAGS="$ac_save_LDFLAGS"
7996
7997fi
7998
7999
8000 if test "$no_x" = "yes"; then
8001 { echo "configure: error: X11 not found" 1>&2; exit 1; }
8002 fi
8003
8004 GUI_TK_LIBRARY="$X_LIBS"
8005 TOOLKIT_INCLUDE="$X_CFLAGS"
8006
dad6c0ea
VZ
8007 AFMINSTALL=afminstall
8008
ab9b9eab
VZ
8009
8010 echo $ac_n "checking for Motif/Lesstif headers""... $ac_c" 1>&6
dad6c0ea 8011echo "configure:8012: checking for Motif/Lesstif headers" >&5
ab9b9eab
VZ
8012
8013ac_find_includes=
8014for ac_dir in $SEARCH_INCLUDE;
8015 do
8016 if test -f "$ac_dir/Xm/Xm.h"; then
8017 ac_find_includes=$ac_dir
8018 break
8019 fi
8020 done
8021
8022 if test "$ac_find_includes" != "" ; then
8023 echo "$ac_t""found $ac_find_includes" 1>&6
8024 else
8025 echo "$ac_t""no" 1>&6
8026 { echo "configure: error: please set CFLAGS to contain the location of Xm/Xm.h" 1>&2; exit 1; }
8027 fi
8028
8029 echo $ac_n "checking for Motif/Lesstif library""... $ac_c" 1>&6
dad6c0ea 8030echo "configure:8031: checking for Motif/Lesstif library" >&5
ab9b9eab
VZ
8031
8032ac_find_libraries=
8033for ac_dir in $SEARCH_LIB;
8034 do
8035 for ac_extension in a so sl; do
8036 if test -f "$ac_dir/libXm.$ac_extension"; then
8037 ac_find_libraries=$ac_dir
8038 break 2
8039 fi
8040 done
8041 done
8042
8043 if test "$ac_find_libraries" != "" ; then
8044
8045 ac_path_to_include=$ac_find_includes
8046 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
8047 result=$?
8048 if test $result = 0; then
8049 ac_path_to_include=""
8050 else
8051 ac_path_to_include="-I$ac_find_includes"
8052 fi
8053
8054
8055 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
8056 result=$?
8057 if test $result = 0; then
8058 ac_path_to_link=""
8059 else
8060 ac_path_to_link="-L$ac_find_libraries"
8061 fi
8062
8063
8064 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $ac_path_to_link"
8065 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE $ac_path_to_include"
8066 echo "$ac_t""found at $ac_find_libraries" 1>&6
8067 else
8068 echo "$ac_t""no" 1>&6
8069 { echo "configure: error: please set LDFLAGS to contain the location of libXm" 1>&2; exit 1; }
8070 fi
8071
8072 echo $ac_n "checking for Xt library""... $ac_c" 1>&6
dad6c0ea 8073echo "configure:8074: checking for Xt library" >&5
ab9b9eab
VZ
8074
8075ac_find_libraries=
8076for ac_dir in $SEARCH_LIB;
8077 do
8078 for ac_extension in a so sl; do
8079 if test -f "$ac_dir/libXt.$ac_extension"; then
8080 ac_find_libraries=$ac_dir
8081 break 2
8082 fi
8083 done
8084 done
8085
8086 if test "$ac_find_libraries" != "" ; then
8087
8088 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
8089 result=$?
8090 if test $result = 0; then
8091 ac_path_to_link=""
8092 else
8093 ac_path_to_link="-L$ac_find_libraries"
8094 fi
8095
8096 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $ac_path_to_link"
8097 echo "$ac_t""found at $ac_find_libraries" 1>&6
8098 else
8099 echo "$ac_t""no" 1>&6
8100 { echo "configure: error: please set LDFLAGS to contain the location of libXt" 1>&2; exit 1; }
8101 fi
8102
8103 XPM_LINK=""
8104 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
dad6c0ea 8105echo "configure:8106: checking for Xpm library" >&5
ab9b9eab
VZ
8106
8107ac_find_libraries=
8108for ac_dir in $SEARCH_LIB;
8109 do
8110 for ac_extension in a so sl; do
8111 if test -f "$ac_dir/libXpm.$ac_extension"; then
8112 ac_find_libraries=$ac_dir
8113 break 2
8114 fi
8115 done
8116 done
8117
8118 if test "$ac_find_libraries" != "" ; then
8119
8120 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
8121 result=$?
8122 if test $result = 0; then
8123 ac_path_to_link=""
8124 else
8125 ac_path_to_link="-L$ac_find_libraries"
8126 fi
8127
8128 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $ac_path_to_link"
8129 XPM_LINK="-lXpm "
8130 cat >> confdefs.h <<\EOF
8131#define wxHAVE_LIB_XPM 1
8132EOF
8133
8134 echo "$ac_t""found at $ac_find_libraries" 1>&6
8135 else
8136 echo "$ac_t""no" 1>&6
8137 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
8138 fi
8139
8140 GUI_TK_LINK="-lXm $XPM_LINK -lXmu -lXext -lXt -lX11 -lm"
8141 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $GUI_TK_LINK"
8142 TOOLKIT=MOTIF
8143
8144 GUIHEADERS="\$(MOTIF_HEADERS)"
8145 GUIOBJS="\$(MOTIF_GUIOBJS)"
8146 COMMONOBJS="\$(MOTIF_COMMONOBJS)"
788deba1
VZ
8147 GENERICOBJS="\$(MOTIF_GENERICOBJS)"
8148 GUIDEPS="\$(MOTIF_GUIDEPS)"
8149 COMMONDEPS="\$(MOTIF_COMMONDEPS)"
10f2d63a
VZ
8150 GENERICDEPS="\$(MOTIF_GENERICDEPS)"
8151 UNIXOBJS="\$(UNIX_OBJS)"
d9d8273d 8152 UNIXDEPS="\$(UNIX_DEPS)"
10f2d63a
VZ
8153 GUIDIST=MOTIF_DIST
8154fi
8155
e07802fc
VZ
8156if test "$wxUSE_PM" = 1; then
8157 TOOLKIT=PM
8158
8159 GUIOBJS="\$(PM_GUIOBJS)"
8160 GUIHEADERS="\$(PM_HEADERS)"
8161 COMMONOBJS="\$(PM_COMMONOBJS)"
8162 GENERICOBJS="\$(PM_GENERICOBJS)"
8163 GUIDEPS="\$(PM_GUIDEPS)"
8164 COMMONDEPS="\$(PM_COMMONDEPS)"
8165 GENERICDEPS="\$(PM_GENERICDEPS)"
8166 UNIXOBJS=
8167 UNIXDEPS=
8168 GUIDIST=GTK_DIST
8169fi
8170
8171if test "$TOOLKIT" != "PM" ; then
8172 TOOLKIT_DIR=`echo ${TOOLKIT} | tr "A-Z" "a-z"`
8173else
8174 TOOLKIT_DIR="os2"
8175fi
10f2d63a
VZ
8176
8177TOOLKIT_DEF="-D__WX${TOOLKIT}__"
8178
8179WX_LIBRARY="wx_${TOOLKIT_DIR}"
8180
d9d8273d
RR
8181 ALL_OBJECTS="\$(GUIOBJS) \$(COMMONOBJS) \$(GENERICOBJS) \$(UNIXOBJS) \$(HTMLOBJS) \$(IODBCOBJS)"
8182 if test "$wxUSE_LIBJPEG" = "yes" ; then
8183 ALL_OBJECTS="${ALL_OBJECTS} \$(JPEGOBJS)"
8184 fi
8185 if test "$wxUSE_LIBTIFF" = "yes" ; then
8186 ALL_OBJECTS="${ALL_OBJECTS} \$(TIFFOBJS)"
8187 fi
8188 if test "$wxUSE_LIBPNG" = "yes" ; then
8189 ALL_OBJECTS="${ALL_OBJECTS} \$(PNGOBJS)"
8190 fi
8191 if test "$wxUSE_ZLIB" = "yes" ; then
8192 ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)"
8193 fi
10f2d63a
VZ
8194 ALL_DEPFILES="\$(GUIDEPS) \$(COMMONDEPS) \$(GENERICDEPS) \$(UNIXDEPS) \$(HTMLDEPS)"
8195 ALL_HEADERS="\$(GUIHEADERS) \$(HTML_HEADERS) \$(UNIX_HEADERS) \$(PROTOCOL_HEADERS) \$(GENERIC_HEADERS) \$(WX_HEADERS)"
8196else
8197
dad6c0ea
VZ
8198 USE_GUI=0
8199
10f2d63a
VZ
8200 ALL_OBJECTS="\$(BASE_OBJS)"
8201 ALL_DEPFILES="\${BASE_DEPS}"
8202 ALL_HEADERS="\${BASE_HEADERS}"
8203
8204 WX_LIBRARY="wxbase"
8205fi
8206
8207WX_LIBRARY_NAME="lib${WX_LIBRARY}.la"
8208
8209WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a"
8210
8211WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}-${WX_RELEASE}.so.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
8212
8213WX_LIBRARY_LINK1="lib${WX_LIBRARY}-${WX_RELEASE}.so.${WX_CURRENT}"
8214WX_LIBRARY_LINK2="lib${WX_LIBRARY}-${WX_RELEASE}.so"
8215WX_LIBRARY_LINK3="lib${WX_LIBRARY}.so"
8216
8217SHARED_LD=
8218PIC_FLAG=
8219WX_ALL=
8220WX_ALL_INSTALLED=
1d62a8b4 8221BURNT_LIBRARY_NAME=
10f2d63a 8222
b12915c1 8223
10f2d63a
VZ
8224if test "$wxUSE_SHARED" = "yes"; then
8225 case "${host}" in
8226 *-hp-hpux* )
8227 if test "$GCC" = yes ; then
69ffe1d2 8228 SHARED_LD="${CC} -shared -fPIC -o"
10f2d63a
VZ
8229 PIC_FLAG="-fPIC"
8230 else
8231 SHARED_LD="${CXX} -b -o"
8232 PIC_FLAG="+Z"
8233 fi
8234 WX_LIBRARY_NAME_SHARED="libwx_${TOOLKIT_DIR}.sl"
8235 WX_ALL=${WX_LIBRARY_NAME_SHARED}
8236 ;;
b12915c1
VZ
8237
8238 *-*-linux* )
10f2d63a
VZ
8239 SHARED_LD="${CC} -shared -o"
8240 PIC_FLAG="-fPIC"
8241 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
8242 WX_ALL="CREATE_LINKS"
b12915c1 8243 ;;
10f2d63a
VZ
8244 *-*-irix5* | *-*-irix6* )
8245 if test "$GCC" = yes ; then
8246 SHARED_LD="${CC} -shared -o"
8247 PIC_FLAG="-fPIC"
8248 else
8249 SHARED_LD="${CXX} -shared -o"
8250 fi
8251 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
8252 WX_ALL="CREATE_LINKS"
8253 ;;
8254 *-*-solaris2* )
8255 if test "$GCC" = yes ; then
8256 SHARED_LD="${CC} -shared -o"
8257 PIC_FLAG="-fPIC"
8258 else
8259 SHARED_LD="${CXX} -G -o"
8260 PIC_FLAG="-KPIC"
8261 fi
8262 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
8263 WX_ALL="CREATE_LINKS"
8264 ;;
8265 *-*-sunos4* )
8266 SHARED_LD="${CC} -shared -o"
8267 PIC_FLAG="-fPIC"
8268 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
8269 WX_ALL="CREATE_LINKS"
8270 ;;
8271 *-*-freebsd* | *-*-netbsd*)
8272 SHARED_LD="${CC} -shared -o"
8273 PIC_FLAG="-fPIC"
8274 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
8275 WX_ALL="CREATE_LINKS"
8276 ;;
8277 *-*-osf* )
8278 SHARED_LD="${CXX} -shared -o"
8279 PIC_FLAG="-fPIC"
8280 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
8281 WX_ALL="CREATE_LINKS"
8282 ;;
8283 *-*-dgux5* )
8284 SHARED_LD="${CXX} -shared -o"
8285 PIC_FLAG="-fPIC"
8286 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
8287 WX_ALL="CREATE_LINKS"
8288 ;;
8289 *-*-sysv5* )
8290 SHARED_LD="${CC} -shared -o"
8291 PIC_FLAG="-fPIC"
8292 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
8293 WX_ALL="CREATE_LINKS"
8294 ;;
8295 *-*-aix* )
8296 SHARED_LD="/usr/lpp/xlC/bin/makeC++SharedLib -p 0 -o"
8297 WX_ALL=${WX_LIBRARY_NAME_SHARED}
8298 ;;
8299 *-*-cygwin32* )
8300 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
8301 WX_ALL="${WX_LIBRARY_NAME_STATIC}"
8302 ;;
b12915c1 8303 *-*-mingw32* )
10f2d63a
VZ
8304 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
8305 WX_ALL="${WX_LIBRARY_NAME_STATIC}"
8306 ;;
8307 *-pc-os2_emx )
e07802fc
VZ
8308 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
8309 WX_ALL="${WX_LIBRARY_NAME_STATIC}"
10f2d63a 8310 ;;
b12915c1 8311 *-*-beos* )
e2b8b066 8312 SHARED_LD="${LD} -shared -o"
b12915c1
VZ
8313 PIC_FLAG="-fPIC"
8314 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
8315 WX_ALL="CREATE_LINKS"
8316 ;;
10f2d63a
VZ
8317 *)
8318 { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; }
8319 esac
8320
8321 if test "x$WX_TARGET_LIBRARY" = "x"; then
8322 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}"
8323 fi
8324else
8325 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
8326 WX_ALL="${WX_LIBRARY_NAME_STATIC}"
8327fi
8328
8329
8330for ac_hdr in strings.h
8331do
8332ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8333echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
dad6c0ea 8334echo "configure:8335: checking for $ac_hdr" >&5
10f2d63a
VZ
8335if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8336 echo $ac_n "(cached) $ac_c" 1>&6
8337else
8338 cat > conftest.$ac_ext <<EOF
dad6c0ea 8339#line 8340 "configure"
10f2d63a
VZ
8340#include "confdefs.h"
8341#include <$ac_hdr>
8342EOF
8343ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
dad6c0ea 8344{ (eval echo configure:8345: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
8345ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8346if test -z "$ac_err"; then
8347 rm -rf conftest*
8348 eval "ac_cv_header_$ac_safe=yes"
8349else
8350 echo "$ac_err" >&5
8351 echo "configure: failed program was:" >&5
8352 cat conftest.$ac_ext >&5
8353 rm -rf conftest*
8354 eval "ac_cv_header_$ac_safe=no"
8355fi
8356rm -f conftest*
8357fi
8358if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8359 echo "$ac_t""yes" 1>&6
8360 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8361 cat >> confdefs.h <<EOF
8362#define $ac_tr_hdr 1
8363EOF
8364
8365else
8366 echo "$ac_t""no" 1>&6
8367fi
8368done
8369
8370for ac_hdr in unistd.h
8371do
8372ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8373echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
dad6c0ea 8374echo "configure:8375: checking for $ac_hdr" >&5
10f2d63a
VZ
8375if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8376 echo $ac_n "(cached) $ac_c" 1>&6
8377else
8378 cat > conftest.$ac_ext <<EOF
dad6c0ea 8379#line 8380 "configure"
10f2d63a
VZ
8380#include "confdefs.h"
8381#include <$ac_hdr>
8382EOF
8383ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
dad6c0ea 8384{ (eval echo configure:8385: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
8385ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8386if test -z "$ac_err"; then
8387 rm -rf conftest*
8388 eval "ac_cv_header_$ac_safe=yes"
8389else
8390 echo "$ac_err" >&5
8391 echo "configure: failed program was:" >&5
8392 cat conftest.$ac_ext >&5
8393 rm -rf conftest*
8394 eval "ac_cv_header_$ac_safe=no"
8395fi
8396rm -f conftest*
8397fi
8398if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8399 echo "$ac_t""yes" 1>&6
8400 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8401 cat >> confdefs.h <<EOF
8402#define $ac_tr_hdr 1
8403EOF
8404
8405else
8406 echo "$ac_t""no" 1>&6
8407fi
8408done
8409
8410for ac_hdr in wchar.h
8411do
8412ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8413echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
dad6c0ea 8414echo "configure:8415: checking for $ac_hdr" >&5
10f2d63a
VZ
8415if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8416 echo $ac_n "(cached) $ac_c" 1>&6
8417else
8418 cat > conftest.$ac_ext <<EOF
dad6c0ea 8419#line 8420 "configure"
10f2d63a
VZ
8420#include "confdefs.h"
8421#include <$ac_hdr>
8422EOF
8423ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
dad6c0ea 8424{ (eval echo configure:8425: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
8425ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8426if test -z "$ac_err"; then
8427 rm -rf conftest*
8428 eval "ac_cv_header_$ac_safe=yes"
8429else
8430 echo "$ac_err" >&5
8431 echo "configure: failed program was:" >&5
8432 cat conftest.$ac_ext >&5
8433 rm -rf conftest*
8434 eval "ac_cv_header_$ac_safe=no"
8435fi
8436rm -f conftest*
8437fi
8438if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8439 echo "$ac_t""yes" 1>&6
8440 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8441 cat >> confdefs.h <<EOF
8442#define $ac_tr_hdr 1
8443EOF
8444
8445else
8446 echo "$ac_t""no" 1>&6
8447fi
8448done
8449
8450for ac_hdr in wcstr.h
8451do
8452ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8453echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
dad6c0ea 8454echo "configure:8455: checking for $ac_hdr" >&5
10f2d63a
VZ
8455if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8456 echo $ac_n "(cached) $ac_c" 1>&6
8457else
8458 cat > conftest.$ac_ext <<EOF
dad6c0ea 8459#line 8460 "configure"
10f2d63a
VZ
8460#include "confdefs.h"
8461#include <$ac_hdr>
8462EOF
8463ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
dad6c0ea 8464{ (eval echo configure:8465: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
8465ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8466if test -z "$ac_err"; then
8467 rm -rf conftest*
8468 eval "ac_cv_header_$ac_safe=yes"
8469else
8470 echo "$ac_err" >&5
8471 echo "configure: failed program was:" >&5
8472 cat conftest.$ac_ext >&5
8473 rm -rf conftest*
8474 eval "ac_cv_header_$ac_safe=no"
8475fi
8476rm -f conftest*
8477fi
8478if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8479 echo "$ac_t""yes" 1>&6
8480 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8481 cat >> confdefs.h <<EOF
8482#define $ac_tr_hdr 1
8483EOF
8484
8485else
8486 echo "$ac_t""no" 1>&6
8487fi
8488done
8489
8490for ac_hdr in fnmatch.h
8491do
8492ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8493echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
dad6c0ea 8494echo "configure:8495: checking for $ac_hdr" >&5
10f2d63a
VZ
8495if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8496 echo $ac_n "(cached) $ac_c" 1>&6
8497else
8498 cat > conftest.$ac_ext <<EOF
dad6c0ea 8499#line 8500 "configure"
10f2d63a
VZ
8500#include "confdefs.h"
8501#include <$ac_hdr>
8502EOF
8503ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
dad6c0ea 8504{ (eval echo configure:8505: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
8505ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8506if test -z "$ac_err"; then
8507 rm -rf conftest*
8508 eval "ac_cv_header_$ac_safe=yes"
8509else
8510 echo "$ac_err" >&5
8511 echo "configure: failed program was:" >&5
8512 cat conftest.$ac_ext >&5
8513 rm -rf conftest*
8514 eval "ac_cv_header_$ac_safe=no"
8515fi
8516rm -f conftest*
8517fi
8518if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8519 echo "$ac_t""yes" 1>&6
8520 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8521 cat >> confdefs.h <<EOF
8522#define $ac_tr_hdr 1
8523EOF
8524
8525else
8526 echo "$ac_t""no" 1>&6
8527fi
8528done
8529
8530
8531if test "$wxUSE_GUI" = "yes"; then
8532 for ac_hdr in X11/XKBlib.h
8533do
8534ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8535echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
dad6c0ea 8536echo "configure:8537: checking for $ac_hdr" >&5
10f2d63a
VZ
8537if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8538 echo $ac_n "(cached) $ac_c" 1>&6
8539else
8540 cat > conftest.$ac_ext <<EOF
dad6c0ea 8541#line 8542 "configure"
10f2d63a
VZ
8542#include "confdefs.h"
8543#include <$ac_hdr>
8544EOF
8545ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
dad6c0ea 8546{ (eval echo configure:8547: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
8547ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8548if test -z "$ac_err"; then
8549 rm -rf conftest*
8550 eval "ac_cv_header_$ac_safe=yes"
8551else
8552 echo "$ac_err" >&5
8553 echo "configure: failed program was:" >&5
8554 cat conftest.$ac_ext >&5
8555 rm -rf conftest*
8556 eval "ac_cv_header_$ac_safe=no"
8557fi
8558rm -f conftest*
8559fi
8560if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8561 echo "$ac_t""yes" 1>&6
8562 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8563 cat >> confdefs.h <<EOF
8564#define $ac_tr_hdr 1
8565EOF
8566
8567else
8568 echo "$ac_t""no" 1>&6
8569fi
8570done
8571
8572fi
8573
8574
8575echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
dad6c0ea 8576echo "configure:8577: checking for ANSI C header files" >&5
10f2d63a
VZ
8577if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
8578 echo $ac_n "(cached) $ac_c" 1>&6
8579else
8580 cat > conftest.$ac_ext <<EOF
dad6c0ea 8581#line 8582 "configure"
10f2d63a
VZ
8582#include "confdefs.h"
8583#include <stdlib.h>
8584#include <stdarg.h>
8585#include <string.h>
8586#include <float.h>
8587EOF
8588ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
dad6c0ea 8589{ (eval echo configure:8590: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
8590ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8591if test -z "$ac_err"; then
8592 rm -rf conftest*
8593 ac_cv_header_stdc=yes
8594else
8595 echo "$ac_err" >&5
8596 echo "configure: failed program was:" >&5
8597 cat conftest.$ac_ext >&5
8598 rm -rf conftest*
8599 ac_cv_header_stdc=no
8600fi
8601rm -f conftest*
8602
8603if test $ac_cv_header_stdc = yes; then
8604 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8605cat > conftest.$ac_ext <<EOF
dad6c0ea 8606#line 8607 "configure"
10f2d63a
VZ
8607#include "confdefs.h"
8608#include <string.h>
8609EOF
8610if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8611 egrep "memchr" >/dev/null 2>&1; then
8612 :
8613else
8614 rm -rf conftest*
8615 ac_cv_header_stdc=no
8616fi
8617rm -f conftest*
8618
8619fi
8620
8621if test $ac_cv_header_stdc = yes; then
8622 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8623cat > conftest.$ac_ext <<EOF
dad6c0ea 8624#line 8625 "configure"
10f2d63a
VZ
8625#include "confdefs.h"
8626#include <stdlib.h>
8627EOF
8628if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8629 egrep "free" >/dev/null 2>&1; then
8630 :
8631else
8632 rm -rf conftest*
8633 ac_cv_header_stdc=no
8634fi
8635rm -f conftest*
8636
8637fi
8638
8639if test $ac_cv_header_stdc = yes; then
8640 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8641if test "$cross_compiling" = yes; then
8642 :
8643else
8644 cat > conftest.$ac_ext <<EOF
dad6c0ea 8645#line 8646 "configure"
10f2d63a
VZ
8646#include "confdefs.h"
8647#include <ctype.h>
8648#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8649#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8650#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8651int main () { int i; for (i = 0; i < 256; i++)
8652if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
8653exit (0); }
8654
8655EOF
dad6c0ea 8656if { (eval echo configure:8657: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10f2d63a
VZ
8657then
8658 :
8659else
8660 echo "configure: failed program was:" >&5
8661 cat conftest.$ac_ext >&5
8662 rm -fr conftest*
8663 ac_cv_header_stdc=no
8664fi
8665rm -fr conftest*
8666fi
8667
8668fi
8669fi
8670
8671echo "$ac_t""$ac_cv_header_stdc" 1>&6
8672if test $ac_cv_header_stdc = yes; then
8673 cat >> confdefs.h <<\EOF
8674#define STDC_HEADERS 1
8675EOF
8676
8677fi
8678
8679echo $ac_n "checking for mode_t""... $ac_c" 1>&6
dad6c0ea 8680echo "configure:8681: checking for mode_t" >&5
10f2d63a
VZ
8681if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
8682 echo $ac_n "(cached) $ac_c" 1>&6
8683else
8684 cat > conftest.$ac_ext <<EOF
dad6c0ea 8685#line 8686 "configure"
10f2d63a
VZ
8686#include "confdefs.h"
8687#include <sys/types.h>
8688#if STDC_HEADERS
8689#include <stdlib.h>
8690#include <stddef.h>
8691#endif
8692EOF
8693if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8694 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
8695 rm -rf conftest*
8696 ac_cv_type_mode_t=yes
8697else
8698 rm -rf conftest*
8699 ac_cv_type_mode_t=no
8700fi
8701rm -f conftest*
8702
8703fi
8704echo "$ac_t""$ac_cv_type_mode_t" 1>&6
8705if test $ac_cv_type_mode_t = no; then
8706 cat >> confdefs.h <<\EOF
8707#define mode_t int
8708EOF
8709
8710fi
8711
8712echo $ac_n "checking for off_t""... $ac_c" 1>&6
dad6c0ea 8713echo "configure:8714: checking for off_t" >&5
10f2d63a
VZ
8714if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
8715 echo $ac_n "(cached) $ac_c" 1>&6
8716else
8717 cat > conftest.$ac_ext <<EOF
dad6c0ea 8718#line 8719 "configure"
10f2d63a
VZ
8719#include "confdefs.h"
8720#include <sys/types.h>
8721#if STDC_HEADERS
8722#include <stdlib.h>
8723#include <stddef.h>
8724#endif
8725EOF
8726if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8727 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
8728 rm -rf conftest*
8729 ac_cv_type_off_t=yes
8730else
8731 rm -rf conftest*
8732 ac_cv_type_off_t=no
8733fi
8734rm -f conftest*
8735
8736fi
8737echo "$ac_t""$ac_cv_type_off_t" 1>&6
8738if test $ac_cv_type_off_t = no; then
8739 cat >> confdefs.h <<\EOF
8740#define off_t long
8741EOF
8742
8743fi
8744
8745echo $ac_n "checking for pid_t""... $ac_c" 1>&6
dad6c0ea 8746echo "configure:8747: checking for pid_t" >&5
10f2d63a
VZ
8747if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
8748 echo $ac_n "(cached) $ac_c" 1>&6
8749else
8750 cat > conftest.$ac_ext <<EOF
dad6c0ea 8751#line 8752 "configure"
10f2d63a
VZ
8752#include "confdefs.h"
8753#include <sys/types.h>
8754#if STDC_HEADERS
8755#include <stdlib.h>
8756#include <stddef.h>
8757#endif
8758EOF
8759if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8760 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
8761 rm -rf conftest*
8762 ac_cv_type_pid_t=yes
8763else
8764 rm -rf conftest*
8765 ac_cv_type_pid_t=no
8766fi
8767rm -f conftest*
8768
8769fi
8770echo "$ac_t""$ac_cv_type_pid_t" 1>&6
8771if test $ac_cv_type_pid_t = no; then
8772 cat >> confdefs.h <<\EOF
8773#define pid_t int
8774EOF
8775
8776fi
8777
8778echo $ac_n "checking for size_t""... $ac_c" 1>&6
dad6c0ea 8779echo "configure:8780: checking for size_t" >&5
10f2d63a
VZ
8780if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
8781 echo $ac_n "(cached) $ac_c" 1>&6
8782else
8783 cat > conftest.$ac_ext <<EOF
dad6c0ea 8784#line 8785 "configure"
10f2d63a
VZ
8785#include "confdefs.h"
8786#include <sys/types.h>
8787#if STDC_HEADERS
8788#include <stdlib.h>
8789#include <stddef.h>
8790#endif
8791EOF
8792if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8793 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
8794 rm -rf conftest*
8795 ac_cv_type_size_t=yes
8796else
8797 rm -rf conftest*
8798 ac_cv_type_size_t=no
8799fi
8800rm -f conftest*
8801
8802fi
8803echo "$ac_t""$ac_cv_type_size_t" 1>&6
8804if test $ac_cv_type_size_t = no; then
8805 cat >> confdefs.h <<\EOF
8806#define size_t unsigned
8807EOF
8808
8809fi
8810
8811echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
dad6c0ea 8812echo "configure:8813: checking for uid_t in sys/types.h" >&5
10f2d63a
VZ
8813if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
8814 echo $ac_n "(cached) $ac_c" 1>&6
8815else
8816 cat > conftest.$ac_ext <<EOF
dad6c0ea 8817#line 8818 "configure"
10f2d63a
VZ
8818#include "confdefs.h"
8819#include <sys/types.h>
8820EOF
8821if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8822 egrep "uid_t" >/dev/null 2>&1; then
8823 rm -rf conftest*
8824 ac_cv_type_uid_t=yes
8825else
8826 rm -rf conftest*
8827 ac_cv_type_uid_t=no
8828fi
8829rm -f conftest*
8830
8831fi
8832
8833echo "$ac_t""$ac_cv_type_uid_t" 1>&6
8834if test $ac_cv_type_uid_t = no; then
8835 cat >> confdefs.h <<\EOF
8836#define uid_t int
8837EOF
8838
8839 cat >> confdefs.h <<\EOF
8840#define gid_t int
8841EOF
8842
8843fi
8844
8845
8846
b12915c1 8847echo $ac_n "checking for pw_gecos in struct passwd""... $ac_c" 1>&6
dad6c0ea 8848echo "configure:8849: checking for pw_gecos in struct passwd" >&5
b12915c1
VZ
8849if eval "test \"`echo '$''{'wx_cv_struct_pw_gecos'+set}'`\" = set"; then
8850 echo $ac_n "(cached) $ac_c" 1>&6
8851else
8852
8853 cat > conftest.$ac_ext <<EOF
dad6c0ea 8854#line 8855 "configure"
b12915c1
VZ
8855#include "confdefs.h"
8856#include <pwd.h>
8857int main() {
8858
8859 char *p;
8860 struct passwd *pw;
8861 p = pw->pw_gecos;
8862
8863; return 0; }
8864EOF
dad6c0ea 8865if { (eval echo configure:8866: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
b12915c1
VZ
8866 rm -rf conftest*
8867
8868 wx_cv_struct_pw_gecos=yes
8869 cat >> confdefs.h <<\EOF
8870#define HAVE_PW_GECOS 1
8871EOF
8872
8873
8874else
8875 echo "configure: failed program was:" >&5
8876 cat conftest.$ac_ext >&5
8877 rm -rf conftest*
8878
8879 wx_cv_struct_pw_gecos=no
8880
8881
8882fi
8883rm -f conftest*
8884
8885
8886fi
8887
8888echo "$ac_t""$wx_cv_struct_pw_gecos" 1>&6
8889
10f2d63a
VZ
8890
8891echo $ac_n "checking for working const""... $ac_c" 1>&6
dad6c0ea 8892echo "configure:8893: checking for working const" >&5
10f2d63a
VZ
8893if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
8894 echo $ac_n "(cached) $ac_c" 1>&6
8895else
8896 cat > conftest.$ac_ext <<EOF
dad6c0ea 8897#line 8898 "configure"
10f2d63a
VZ
8898#include "confdefs.h"
8899
8900int main() {
8901
8902/* Ultrix mips cc rejects this. */
8903typedef int charset[2]; const charset x;
8904/* SunOS 4.1.1 cc rejects this. */
8905char const *const *ccp;
8906char **p;
8907/* NEC SVR4.0.2 mips cc rejects this. */
8908struct point {int x, y;};
8909static struct point const zero = {0,0};
8910/* AIX XL C 1.02.0.0 rejects this.
8911 It does not let you subtract one const X* pointer from another in an arm
8912 of an if-expression whose if-part is not a constant expression */
8913const char *g = "string";
8914ccp = &g + (g ? g-g : 0);
8915/* HPUX 7.0 cc rejects these. */
8916++ccp;
8917p = (char**) ccp;
8918ccp = (char const *const *) p;
8919{ /* SCO 3.2v4 cc rejects this. */
8920 char *t;
8921 char const *s = 0 ? (char *) 0 : (char const *) 0;
8922
8923 *t++ = 0;
8924}
8925{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8926 int x[] = {25, 17};
8927 const int *foo = &x[0];
8928 ++foo;
8929}
8930{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8931 typedef const int *iptr;
8932 iptr p = 0;
8933 ++p;
8934}
8935{ /* AIX XL C 1.02.0.0 rejects this saying
8936 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8937 struct s { int j; const int *ap[3]; };
8938 struct s *b; b->j = 5;
8939}
8940{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8941 const int foo = 10;
8942}
8943
8944; return 0; }
8945EOF
dad6c0ea 8946if { (eval echo configure:8947: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10f2d63a
VZ
8947 rm -rf conftest*
8948 ac_cv_c_const=yes
8949else
8950 echo "configure: failed program was:" >&5
8951 cat conftest.$ac_ext >&5
8952 rm -rf conftest*
8953 ac_cv_c_const=no
8954fi
8955rm -f conftest*
8956fi
8957
8958echo "$ac_t""$ac_cv_c_const" 1>&6
8959if test $ac_cv_c_const = no; then
8960 cat >> confdefs.h <<\EOF
8961#define const
8962EOF
8963
8964fi
8965
8966echo $ac_n "checking for inline""... $ac_c" 1>&6
dad6c0ea 8967echo "configure:8968: checking for inline" >&5
10f2d63a
VZ
8968if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
8969 echo $ac_n "(cached) $ac_c" 1>&6
8970else
8971 ac_cv_c_inline=no
8972for ac_kw in inline __inline__ __inline; do
8973 cat > conftest.$ac_ext <<EOF
dad6c0ea 8974#line 8975 "configure"
10f2d63a
VZ
8975#include "confdefs.h"
8976
8977int main() {
8978} $ac_kw foo() {
8979; return 0; }
8980EOF
dad6c0ea 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_inline=$ac_kw; break
8984else
8985 echo "configure: failed program was:" >&5
8986 cat conftest.$ac_ext >&5
8987fi
8988rm -f conftest*
8989done
8990
8991fi
8992
8993echo "$ac_t""$ac_cv_c_inline" 1>&6
8994case "$ac_cv_c_inline" in
8995 inline | yes) ;;
8996 no) cat >> confdefs.h <<\EOF
8997#define inline
8998EOF
8999 ;;
9000 *) cat >> confdefs.h <<EOF
9001#define inline $ac_cv_c_inline
9002EOF
9003 ;;
9004esac
9005
9006
9007echo $ac_n "checking size of char""... $ac_c" 1>&6
dad6c0ea 9008echo "configure:9009: checking size of char" >&5
10f2d63a
VZ
9009if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then
9010 echo $ac_n "(cached) $ac_c" 1>&6
9011else
9012 if test "$cross_compiling" = yes; then
9013 ac_cv_sizeof_char=1
9014else
9015 cat > conftest.$ac_ext <<EOF
dad6c0ea 9016#line 9017 "configure"
10f2d63a
VZ
9017#include "confdefs.h"
9018#include <stdio.h>
9019main()
9020{
9021 FILE *f=fopen("conftestval", "w");
9022 if (!f) exit(1);
9023 fprintf(f, "%d\n", sizeof(char));
9024 exit(0);
9025}
9026EOF
dad6c0ea 9027if { (eval echo configure:9028: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10f2d63a
VZ
9028then
9029 ac_cv_sizeof_char=`cat conftestval`
9030else
9031 echo "configure: failed program was:" >&5
9032 cat conftest.$ac_ext >&5
9033 rm -fr conftest*
9034 ac_cv_sizeof_char=0
9035fi
9036rm -fr conftest*
9037fi
9038
9039fi
9040echo "$ac_t""$ac_cv_sizeof_char" 1>&6
9041cat >> confdefs.h <<EOF
9042#define SIZEOF_CHAR $ac_cv_sizeof_char
9043EOF
9044
9045
9046echo $ac_n "checking size of short""... $ac_c" 1>&6
dad6c0ea 9047echo "configure:9048: checking size of short" >&5
10f2d63a
VZ
9048if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
9049 echo $ac_n "(cached) $ac_c" 1>&6
9050else
9051 if test "$cross_compiling" = yes; then
9052 ac_cv_sizeof_short=2
9053else
9054 cat > conftest.$ac_ext <<EOF
dad6c0ea 9055#line 9056 "configure"
10f2d63a
VZ
9056#include "confdefs.h"
9057#include <stdio.h>
9058main()
9059{
9060 FILE *f=fopen("conftestval", "w");
9061 if (!f) exit(1);
9062 fprintf(f, "%d\n", sizeof(short));
9063 exit(0);
9064}
9065EOF
dad6c0ea 9066if { (eval echo configure:9067: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10f2d63a
VZ
9067then
9068 ac_cv_sizeof_short=`cat conftestval`
9069else
9070 echo "configure: failed program was:" >&5
9071 cat conftest.$ac_ext >&5
9072 rm -fr conftest*
9073 ac_cv_sizeof_short=0
9074fi
9075rm -fr conftest*
9076fi
9077
9078fi
9079echo "$ac_t""$ac_cv_sizeof_short" 1>&6
9080cat >> confdefs.h <<EOF
9081#define SIZEOF_SHORT $ac_cv_sizeof_short
9082EOF
9083
9084
9085echo $ac_n "checking size of int *""... $ac_c" 1>&6
dad6c0ea 9086echo "configure:9087: checking size of int *" >&5
10f2d63a
VZ
9087if eval "test \"`echo '$''{'ac_cv_sizeof_int_p'+set}'`\" = set"; then
9088 echo $ac_n "(cached) $ac_c" 1>&6
9089else
9090 if test "$cross_compiling" = yes; then
9091 ac_cv_sizeof_int_p=4
9092else
9093 cat > conftest.$ac_ext <<EOF
dad6c0ea 9094#line 9095 "configure"
10f2d63a
VZ
9095#include "confdefs.h"
9096#include <stdio.h>
9097main()
9098{
9099 FILE *f=fopen("conftestval", "w");
9100 if (!f) exit(1);
9101 fprintf(f, "%d\n", sizeof(int *));
9102 exit(0);
9103}
9104EOF
dad6c0ea 9105if { (eval echo configure:9106: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10f2d63a
VZ
9106then
9107 ac_cv_sizeof_int_p=`cat conftestval`
9108else
9109 echo "configure: failed program was:" >&5
9110 cat conftest.$ac_ext >&5
9111 rm -fr conftest*
9112 ac_cv_sizeof_int_p=0
9113fi
9114rm -fr conftest*
9115fi
9116
9117fi
9118echo "$ac_t""$ac_cv_sizeof_int_p" 1>&6
9119cat >> confdefs.h <<EOF
9120#define SIZEOF_INT_P $ac_cv_sizeof_int_p
9121EOF
9122
9123
9124echo $ac_n "checking size of int""... $ac_c" 1>&6
dad6c0ea 9125echo "configure:9126: checking size of int" >&5
10f2d63a
VZ
9126if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
9127 echo $ac_n "(cached) $ac_c" 1>&6
9128else
9129 if test "$cross_compiling" = yes; then
9130 ac_cv_sizeof_int=4
9131else
9132 cat > conftest.$ac_ext <<EOF
dad6c0ea 9133#line 9134 "configure"
10f2d63a
VZ
9134#include "confdefs.h"
9135#include <stdio.h>
9136main()
9137{
9138 FILE *f=fopen("conftestval", "w");
9139 if (!f) exit(1);
9140 fprintf(f, "%d\n", sizeof(int));
9141 exit(0);
9142}
9143EOF
dad6c0ea 9144if { (eval echo configure:9145: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10f2d63a
VZ
9145then
9146 ac_cv_sizeof_int=`cat conftestval`
9147else
9148 echo "configure: failed program was:" >&5
9149 cat conftest.$ac_ext >&5
9150 rm -fr conftest*
9151 ac_cv_sizeof_int=0
9152fi
9153rm -fr conftest*
9154fi
9155
9156fi
9157echo "$ac_t""$ac_cv_sizeof_int" 1>&6
9158cat >> confdefs.h <<EOF
9159#define SIZEOF_INT $ac_cv_sizeof_int
9160EOF
9161
9162
9163echo $ac_n "checking size of long""... $ac_c" 1>&6
dad6c0ea 9164echo "configure:9165: checking size of long" >&5
10f2d63a
VZ
9165if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
9166 echo $ac_n "(cached) $ac_c" 1>&6
9167else
9168 if test "$cross_compiling" = yes; then
9169 ac_cv_sizeof_long=4
9170else
9171 cat > conftest.$ac_ext <<EOF
dad6c0ea 9172#line 9173 "configure"
10f2d63a
VZ
9173#include "confdefs.h"
9174#include <stdio.h>
9175main()
9176{
9177 FILE *f=fopen("conftestval", "w");
9178 if (!f) exit(1);
9179 fprintf(f, "%d\n", sizeof(long));
9180 exit(0);
9181}
9182EOF
dad6c0ea 9183if { (eval echo configure:9184: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10f2d63a
VZ
9184then
9185 ac_cv_sizeof_long=`cat conftestval`
9186else
9187 echo "configure: failed program was:" >&5
9188 cat conftest.$ac_ext >&5
9189 rm -fr conftest*
9190 ac_cv_sizeof_long=0
9191fi
9192rm -fr conftest*
9193fi
9194
9195fi
9196echo "$ac_t""$ac_cv_sizeof_long" 1>&6
9197cat >> confdefs.h <<EOF
9198#define SIZEOF_LONG $ac_cv_sizeof_long
9199EOF
9200
9201
9202echo $ac_n "checking size of long long""... $ac_c" 1>&6
dad6c0ea 9203echo "configure:9204: checking size of long long" >&5
10f2d63a
VZ
9204if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
9205 echo $ac_n "(cached) $ac_c" 1>&6
9206else
9207 if test "$cross_compiling" = yes; then
9208 ac_cv_sizeof_long_long=0
9209else
9210 cat > conftest.$ac_ext <<EOF
dad6c0ea 9211#line 9212 "configure"
10f2d63a
VZ
9212#include "confdefs.h"
9213#include <stdio.h>
9214main()
9215{
9216 FILE *f=fopen("conftestval", "w");
9217 if (!f) exit(1);
9218 fprintf(f, "%d\n", sizeof(long long));
9219 exit(0);
9220}
9221EOF
dad6c0ea 9222if { (eval echo configure:9223: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10f2d63a
VZ
9223then
9224 ac_cv_sizeof_long_long=`cat conftestval`
9225else
9226 echo "configure: failed program was:" >&5
9227 cat conftest.$ac_ext >&5
9228 rm -fr conftest*
9229 ac_cv_sizeof_long_long=0
9230fi
9231rm -fr conftest*
9232fi
9233
9234fi
9235echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
9236cat >> confdefs.h <<EOF
9237#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
9238EOF
9239
9240
9241
9242echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
dad6c0ea 9243echo "configure:9244: checking whether byte ordering is bigendian" >&5
10f2d63a
VZ
9244if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
9245 echo $ac_n "(cached) $ac_c" 1>&6
9246else
9247 ac_cv_c_bigendian=unknown
9248# See if sys/param.h defines the BYTE_ORDER macro.
9249cat > conftest.$ac_ext <<EOF
dad6c0ea 9250#line 9251 "configure"
10f2d63a
VZ
9251#include "confdefs.h"
9252#include <sys/types.h>
9253#include <sys/param.h>
9254int main() {
9255
9256#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
9257 bogus endian macros
9258#endif
9259; return 0; }
9260EOF
dad6c0ea 9261if { (eval echo configure:9262: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10f2d63a
VZ
9262 rm -rf conftest*
9263 # It does; now see whether it defined to BIG_ENDIAN or not.
9264cat > conftest.$ac_ext <<EOF
dad6c0ea 9265#line 9266 "configure"
10f2d63a
VZ
9266#include "confdefs.h"
9267#include <sys/types.h>
9268#include <sys/param.h>
9269int main() {
9270
9271#if BYTE_ORDER != BIG_ENDIAN
9272 not big endian
9273#endif
9274; return 0; }
9275EOF
dad6c0ea 9276if { (eval echo configure:9277: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10f2d63a
VZ
9277 rm -rf conftest*
9278 ac_cv_c_bigendian=yes
9279else
9280 echo "configure: failed program was:" >&5
9281 cat conftest.$ac_ext >&5
9282 rm -rf conftest*
9283 ac_cv_c_bigendian=no
9284fi
9285rm -f conftest*
9286else
9287 echo "configure: failed program was:" >&5
9288 cat conftest.$ac_ext >&5
9289fi
9290rm -f conftest*
9291if test $ac_cv_c_bigendian = unknown; then
9292if test "$cross_compiling" = yes; then
9293 ac_cv_c_bigendian=unknown
9294else
9295 cat > conftest.$ac_ext <<EOF
dad6c0ea 9296#line 9297 "configure"
10f2d63a
VZ
9297#include "confdefs.h"
9298main () {
9299 /* Are we little or big endian? From Harbison&Steele. */
9300 union
9301 {
9302 long l;
9303 char c[sizeof (long)];
9304 } u;
9305 u.l = 1;
9306 exit (u.c[sizeof (long) - 1] == 1);
9307}
9308EOF
dad6c0ea 9309if { (eval echo configure:9310: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10f2d63a
VZ
9310then
9311 ac_cv_c_bigendian=no
9312else
9313 echo "configure: failed program was:" >&5
9314 cat conftest.$ac_ext >&5
9315 rm -fr conftest*
9316 ac_cv_c_bigendian=yes
9317fi
9318rm -fr conftest*
9319fi
9320
9321fi
9322fi
9323
9324echo "$ac_t""$ac_cv_c_bigendian" 1>&6
9325if test $ac_cv_c_bigendian = unknown; then
9326 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
9327fi
9328if test $ac_cv_c_bigendian = yes; then
9329 cat >> confdefs.h <<\EOF
9330#define WORDS_BIGENDIAN 1
9331EOF
9332
9333fi
9334
9335
9336
9337 if test "$cross_compiling" = "yes"; then
9338 cat >> confdefs.h <<\EOF
9339#define wxUSE_IOSTREAMH 1
9340EOF
9341
9342 else
9343
9344 ac_ext=C
9345# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9346ac_cpp='$CXXCPP $CPPFLAGS'
9347ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9348ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9349cross_compiling=$ac_cv_prog_cxx_cross
9350
9351
9352 for ac_hdr in iostream
9353do
9354ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9355echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
dad6c0ea 9356echo "configure:9357: checking for $ac_hdr" >&5
10f2d63a
VZ
9357if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9358 echo $ac_n "(cached) $ac_c" 1>&6
9359else
9360 cat > conftest.$ac_ext <<EOF
dad6c0ea 9361#line 9362 "configure"
10f2d63a
VZ
9362#include "confdefs.h"
9363#include <$ac_hdr>
9364EOF
9365ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
dad6c0ea 9366{ (eval echo configure:9367: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
9367ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9368if test -z "$ac_err"; then
9369 rm -rf conftest*
9370 eval "ac_cv_header_$ac_safe=yes"
9371else
9372 echo "$ac_err" >&5
9373 echo "configure: failed program was:" >&5
9374 cat conftest.$ac_ext >&5
9375 rm -rf conftest*
9376 eval "ac_cv_header_$ac_safe=no"
9377fi
9378rm -f conftest*
9379fi
9380if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9381 echo "$ac_t""yes" 1>&6
9382 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9383 cat >> confdefs.h <<EOF
9384#define $ac_tr_hdr 1
9385EOF
9386
9387else
9388 echo "$ac_t""no" 1>&6
9389fi
9390done
9391
9392
9393 if test "x$HAVE_IOSTREAM" = x ; then
9394 cat >> confdefs.h <<\EOF
9395#define wxUSE_IOSTREAMH 1
9396EOF
9397
9398 else
9399 :
9400 fi
9401
9402 ac_ext=c
9403# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9404ac_cpp='$CPP $CPPFLAGS'
9405ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9406ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9407cross_compiling=$ac_cv_prog_cc_cross
9408
9409 fi
9410
9411
9412
9413 echo $ac_n "checking if C++ compiler supports bool""... $ac_c" 1>&6
dad6c0ea 9414echo "configure:9415: checking if C++ compiler supports bool" >&5
10f2d63a
VZ
9415if eval "test \"`echo '$''{'wx_cv_cpp_bool'+set}'`\" = set"; then
9416 echo $ac_n "(cached) $ac_c" 1>&6
9417else
9418
9419
9420 ac_ext=C
9421# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9422ac_cpp='$CXXCPP $CPPFLAGS'
9423ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9424ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9425cross_compiling=$ac_cv_prog_cxx_cross
9426
9427
9428 cat > conftest.$ac_ext <<EOF
dad6c0ea 9429#line 9430 "configure"
10f2d63a
VZ
9430#include "confdefs.h"
9431
9432
9433int main() {
9434
9435 bool b = true;
9436
9437 return 0;
9438
9439; return 0; }
9440EOF
dad6c0ea 9441if { (eval echo configure:9442: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10f2d63a
VZ
9442 rm -rf conftest*
9443
9444 cat >> confdefs.h <<\EOF
9445#define HAVE_BOOL 1
9446EOF
9447
9448 wx_cv_cpp_bool=yes
9449
9450else
9451 echo "configure: failed program was:" >&5
9452 cat conftest.$ac_ext >&5
9453 rm -rf conftest*
9454
9455 wx_cv_cpp_bool=no
9456
9457
9458fi
9459rm -f conftest*
9460
9461 ac_ext=c
9462# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9463ac_cpp='$CPP $CPPFLAGS'
9464ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9465ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9466cross_compiling=$ac_cv_prog_cc_cross
9467
9468
9469fi
9470
9471echo "$ac_t""$wx_cv_cpp_bool" 1>&6
9472
9473 if test "$wx_cv_cpp_bool" = "yes"; then
9474 cat >> confdefs.h <<\EOF
9475#define HAVE_BOOL 1
9476EOF
9477
9478 fi
9479
9480
9481
10f2d63a 9482echo $ac_n "checking if you need GNU extensions""... $ac_c" 1>&6
dad6c0ea 9483echo "configure:9484: checking if you need GNU extensions" >&5
10f2d63a
VZ
9484if eval "test \"`echo '$''{'wx_cv_gnu_extensions'+set}'`\" = set"; then
9485 echo $ac_n "(cached) $ac_c" 1>&6
9486else
9487
9488 cat > conftest.$ac_ext <<EOF
dad6c0ea 9489#line 9490 "configure"
10f2d63a
VZ
9490#include "confdefs.h"
9491#include <features.h>
9492int main() {
9493
9494
9495#ifndef __GNU_LIBRARY__
9496 Compile error wanted
9497#endif
9498
9499
9500; return 0; }
9501EOF
dad6c0ea 9502if { (eval echo configure:9503: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10f2d63a
VZ
9503 rm -rf conftest*
9504 wx_cv_gnu_extensions=yes
9505else
9506 echo "configure: failed program was:" >&5
9507 cat conftest.$ac_ext >&5
9508 rm -rf conftest*
9509 wx_cv_gnu_extensions=no
9510fi
9511rm -f conftest*
9512
9513fi
9514
9515
9516echo "$ac_t""$wx_cv_gnu_extensions" 1>&6
9517if test "$wx_cv_gnu_extensions" = "yes"; then
9518 cat >> confdefs.h <<EOF
9519#define _GNU_SOURCE 1
9520EOF
9521
9522fi
9523
9524
9525
9526echo $ac_n "checking for wcslen in -lc""... $ac_c" 1>&6
dad6c0ea 9527echo "configure:9528: checking for wcslen in -lc" >&5
10f2d63a
VZ
9528ac_lib_var=`echo c'_'wcslen | sed 'y%./+-%__p_%'`
9529if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9530 echo $ac_n "(cached) $ac_c" 1>&6
9531else
9532 ac_save_LIBS="$LIBS"
9533LIBS="-lc $LIBS"
9534cat > conftest.$ac_ext <<EOF
dad6c0ea 9535#line 9536 "configure"
10f2d63a
VZ
9536#include "confdefs.h"
9537/* Override any gcc2 internal prototype to avoid an error. */
9538/* We use char because int might match the return type of a gcc2
9539 builtin and then its argument prototype would still apply. */
9540char wcslen();
9541
9542int main() {
9543wcslen()
9544; return 0; }
9545EOF
dad6c0ea 9546if { (eval echo configure:9547: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
9547 rm -rf conftest*
9548 eval "ac_cv_lib_$ac_lib_var=yes"
9549else
9550 echo "configure: failed program was:" >&5
9551 cat conftest.$ac_ext >&5
9552 rm -rf conftest*
9553 eval "ac_cv_lib_$ac_lib_var=no"
9554fi
9555rm -f conftest*
9556LIBS="$ac_save_LIBS"
9557
9558fi
9559if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9560 echo "$ac_t""yes" 1>&6
9561
9562 cat >> confdefs.h <<\EOF
9563#define HAVE_WCSLEN 1
9564EOF
9565
9566 WCHAR_LINK=""
9567
9568else
9569 echo "$ac_t""no" 1>&6
9570
9571 echo $ac_n "checking for wcslen in -lw""... $ac_c" 1>&6
dad6c0ea 9572echo "configure:9573: checking for wcslen in -lw" >&5
10f2d63a
VZ
9573ac_lib_var=`echo w'_'wcslen | sed 'y%./+-%__p_%'`
9574if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9575 echo $ac_n "(cached) $ac_c" 1>&6
9576else
9577 ac_save_LIBS="$LIBS"
9578LIBS="-lw $LIBS"
9579cat > conftest.$ac_ext <<EOF
dad6c0ea 9580#line 9581 "configure"
10f2d63a
VZ
9581#include "confdefs.h"
9582/* Override any gcc2 internal prototype to avoid an error. */
9583/* We use char because int might match the return type of a gcc2
9584 builtin and then its argument prototype would still apply. */
9585char wcslen();
9586
9587int main() {
9588wcslen()
9589; return 0; }
9590EOF
dad6c0ea 9591if { (eval echo configure:9592: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
9592 rm -rf conftest*
9593 eval "ac_cv_lib_$ac_lib_var=yes"
9594else
9595 echo "configure: failed program was:" >&5
9596 cat conftest.$ac_ext >&5
9597 rm -rf conftest*
9598 eval "ac_cv_lib_$ac_lib_var=no"
9599fi
9600rm -f conftest*
9601LIBS="$ac_save_LIBS"
9602
9603fi
9604if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9605 echo "$ac_t""yes" 1>&6
9606
9607 cat >> confdefs.h <<\EOF
9608#define HAVE_WCSLEN 1
9609EOF
9610
9611 WCHAR_LINK="-lw"
9612
9613else
9614 echo "$ac_t""no" 1>&6
9615fi
9616
9617
9618fi
9619
9620
9621echo $ac_n "checking for vprintf""... $ac_c" 1>&6
dad6c0ea 9622echo "configure:9623: checking for vprintf" >&5
10f2d63a
VZ
9623if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
9624 echo $ac_n "(cached) $ac_c" 1>&6
9625else
9626 cat > conftest.$ac_ext <<EOF
dad6c0ea 9627#line 9628 "configure"
10f2d63a
VZ
9628#include "confdefs.h"
9629/* System header to define __stub macros and hopefully few prototypes,
9630 which can conflict with char vprintf(); below. */
9631#include <assert.h>
9632/* Override any gcc2 internal prototype to avoid an error. */
9633/* We use char because int might match the return type of a gcc2
9634 builtin and then its argument prototype would still apply. */
9635char vprintf();
9636
9637int main() {
9638
9639/* The GNU C library defines this for functions which it implements
9640 to always fail with ENOSYS. Some functions are actually named
9641 something starting with __ and the normal name is an alias. */
9642#if defined (__stub_vprintf) || defined (__stub___vprintf)
9643choke me
9644#else
caa2c79b 9645vprintf();
10f2d63a
VZ
9646#endif
9647
9648; return 0; }
9649EOF
dad6c0ea 9650if { (eval echo configure:9651: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
9651 rm -rf conftest*
9652 eval "ac_cv_func_vprintf=yes"
9653else
9654 echo "configure: failed program was:" >&5
9655 cat conftest.$ac_ext >&5
9656 rm -rf conftest*
9657 eval "ac_cv_func_vprintf=no"
9658fi
9659rm -f conftest*
9660fi
9661
9662if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
9663 echo "$ac_t""yes" 1>&6
9664 cat >> confdefs.h <<\EOF
9665#define HAVE_VPRINTF 1
9666EOF
9667
9668else
9669 echo "$ac_t""no" 1>&6
9670fi
9671
9672if test "$ac_cv_func_vprintf" != yes; then
9673echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
dad6c0ea 9674echo "configure:9675: checking for _doprnt" >&5
10f2d63a
VZ
9675if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
9676 echo $ac_n "(cached) $ac_c" 1>&6
9677else
9678 cat > conftest.$ac_ext <<EOF
dad6c0ea 9679#line 9680 "configure"
10f2d63a
VZ
9680#include "confdefs.h"
9681/* System header to define __stub macros and hopefully few prototypes,
9682 which can conflict with char _doprnt(); below. */
9683#include <assert.h>
9684/* Override any gcc2 internal prototype to avoid an error. */
9685/* We use char because int might match the return type of a gcc2
9686 builtin and then its argument prototype would still apply. */
9687char _doprnt();
9688
9689int main() {
9690
9691/* The GNU C library defines this for functions which it implements
9692 to always fail with ENOSYS. Some functions are actually named
9693 something starting with __ and the normal name is an alias. */
9694#if defined (__stub__doprnt) || defined (__stub____doprnt)
9695choke me
9696#else
caa2c79b 9697_doprnt();
10f2d63a
VZ
9698#endif
9699
9700; return 0; }
9701EOF
dad6c0ea 9702if { (eval echo configure:9703: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
9703 rm -rf conftest*
9704 eval "ac_cv_func__doprnt=yes"
9705else
9706 echo "configure: failed program was:" >&5
9707 cat conftest.$ac_ext >&5
9708 rm -rf conftest*
9709 eval "ac_cv_func__doprnt=no"
9710fi
9711rm -f conftest*
9712fi
9713
9714if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
9715 echo "$ac_t""yes" 1>&6
9716 cat >> confdefs.h <<\EOF
9717#define HAVE_DOPRNT 1
9718EOF
9719
9720else
9721 echo "$ac_t""no" 1>&6
9722fi
9723
9724fi
9725
9726
9727for ac_func in vsnprintf
9728do
9729echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
dad6c0ea 9730echo "configure:9731: checking for $ac_func" >&5
10f2d63a
VZ
9731if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9732 echo $ac_n "(cached) $ac_c" 1>&6
9733else
9734 cat > conftest.$ac_ext <<EOF
dad6c0ea 9735#line 9736 "configure"
10f2d63a
VZ
9736#include "confdefs.h"
9737/* System header to define __stub macros and hopefully few prototypes,
9738 which can conflict with char $ac_func(); below. */
9739#include <assert.h>
9740/* Override any gcc2 internal prototype to avoid an error. */
9741/* We use char because int might match the return type of a gcc2
9742 builtin and then its argument prototype would still apply. */
9743char $ac_func();
9744
9745int main() {
9746
9747/* The GNU C library defines this for functions which it implements
9748 to always fail with ENOSYS. Some functions are actually named
9749 something starting with __ and the normal name is an alias. */
9750#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9751choke me
9752#else
caa2c79b 9753$ac_func();
10f2d63a
VZ
9754#endif
9755
9756; return 0; }
9757EOF
dad6c0ea 9758if { (eval echo configure:9759: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
9759 rm -rf conftest*
9760 eval "ac_cv_func_$ac_func=yes"
9761else
9762 echo "configure: failed program was:" >&5
9763 cat conftest.$ac_ext >&5
9764 rm -rf conftest*
9765 eval "ac_cv_func_$ac_func=no"
9766fi
9767rm -f conftest*
9768fi
9769
9770if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9771 echo "$ac_t""yes" 1>&6
9772 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9773 cat >> confdefs.h <<EOF
9774#define $ac_tr_func 1
9775EOF
9776 cat >> confdefs.h <<\EOF
9777#define HAVE_VSNPRINTF 1
9778EOF
9779
9780else
9781 echo "$ac_t""no" 1>&6
9782echo "configure: warning: unsafe function sprintf will be used instead of snprintf" 1>&2
9783
9784fi
9785done
9786
9787
9788
9789ac_ext=C
9790# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9791ac_cpp='$CXXCPP $CPPFLAGS'
9792ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9793ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9794cross_compiling=$ac_cv_prog_cxx_cross
9795
9796
9797echo $ac_n "checking for vsscanf""... $ac_c" 1>&6
dad6c0ea 9798echo "configure:9799: checking for vsscanf" >&5
10f2d63a
VZ
9799if eval "test \"`echo '$''{'wx_cv_func_vsscanf'+set}'`\" = set"; then
9800 echo $ac_n "(cached) $ac_c" 1>&6
9801else
9802
9803 if test "$cross_compiling" = yes; then
9804 wx_cv_func_vsscanf=no
9805
9806else
9807 cat > conftest.$ac_ext <<EOF
dad6c0ea 9808#line 9809 "configure"
10f2d63a
VZ
9809#include "confdefs.h"
9810#ifdef __cplusplus
9811extern "C" void exit(int);
9812#endif
9813
9814 #include <stdio.h>
9815 #include <stdarg.h>
9816
9817 int try_vsscanf(const char *format, ...)
9818 {
9819 va_list ap;
9820 va_start(ap, format);
9821
9822 vsscanf("17", format, ap);
9823
9824 va_end(ap);
9825 }
9826
9827 int main()
9828 {
9829 int i;
9830 try_vsscanf("%d", &i);
9831 return i == 17 ? 0 : 1;
9832 }
9833
9834EOF
dad6c0ea 9835if { (eval echo configure:9836: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10f2d63a
VZ
9836then
9837
9838 cat >> confdefs.h <<\EOF
9839#define HAVE_VSSCANF 1
9840EOF
9841
9842 wx_cv_func_vsscanf=yes
9843
9844else
9845 echo "configure: failed program was:" >&5
9846 cat conftest.$ac_ext >&5
9847 rm -fr conftest*
9848 wx_cv_func_vsscanf=no
9849fi
9850rm -fr conftest*
9851fi
9852
9853
9854fi
9855
9856echo "$ac_t""$wx_cv_func_vsscanf" 1>&6
9857
9858ac_ext=c
9859# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9860ac_cpp='$CPP $CPPFLAGS'
9861ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9862ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9863cross_compiling=$ac_cv_prog_cc_cross
9864
9865
9866if test "$USE_UNIX" = 1; then
9867
9868for ac_func in vfork
9869do
9870echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
dad6c0ea 9871echo "configure:9872: checking for $ac_func" >&5
10f2d63a
VZ
9872if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9873 echo $ac_n "(cached) $ac_c" 1>&6
9874else
9875 cat > conftest.$ac_ext <<EOF
dad6c0ea 9876#line 9877 "configure"
10f2d63a
VZ
9877#include "confdefs.h"
9878/* System header to define __stub macros and hopefully few prototypes,
9879 which can conflict with char $ac_func(); below. */
9880#include <assert.h>
9881/* Override any gcc2 internal prototype to avoid an error. */
9882/* We use char because int might match the return type of a gcc2
9883 builtin and then its argument prototype would still apply. */
9884char $ac_func();
9885
9886int main() {
9887
9888/* The GNU C library defines this for functions which it implements
9889 to always fail with ENOSYS. Some functions are actually named
9890 something starting with __ and the normal name is an alias. */
9891#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9892choke me
9893#else
caa2c79b 9894$ac_func();
10f2d63a
VZ
9895#endif
9896
9897; return 0; }
9898EOF
dad6c0ea 9899if { (eval echo configure:9900: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
270a909e
VZ
9900 rm -rf conftest*
9901 eval "ac_cv_func_$ac_func=yes"
9902else
9903 echo "configure: failed program was:" >&5
9904 cat conftest.$ac_ext >&5
9905 rm -rf conftest*
9906 eval "ac_cv_func_$ac_func=no"
9907fi
9908rm -f conftest*
9909fi
9910
9911if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9912 echo "$ac_t""yes" 1>&6
9913 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9914 cat >> confdefs.h <<EOF
9915#define $ac_tr_func 1
9916EOF
9917
9918else
9919 echo "$ac_t""no" 1>&6
9920fi
9921done
9922
9923
9924for ac_func in timegm
9925do
9926echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
dad6c0ea 9927echo "configure:9928: checking for $ac_func" >&5
270a909e
VZ
9928if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9929 echo $ac_n "(cached) $ac_c" 1>&6
9930else
9931 cat > conftest.$ac_ext <<EOF
dad6c0ea 9932#line 9933 "configure"
270a909e
VZ
9933#include "confdefs.h"
9934/* System header to define __stub macros and hopefully few prototypes,
9935 which can conflict with char $ac_func(); below. */
9936#include <assert.h>
9937/* Override any gcc2 internal prototype to avoid an error. */
9938/* We use char because int might match the return type of a gcc2
9939 builtin and then its argument prototype would still apply. */
9940char $ac_func();
9941
9942int main() {
9943
9944/* The GNU C library defines this for functions which it implements
9945 to always fail with ENOSYS. Some functions are actually named
9946 something starting with __ and the normal name is an alias. */
9947#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9948choke me
9949#else
caa2c79b 9950$ac_func();
270a909e
VZ
9951#endif
9952
9953; return 0; }
9954EOF
dad6c0ea 9955if { (eval echo configure:9956: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
9956 rm -rf conftest*
9957 eval "ac_cv_func_$ac_func=yes"
9958else
9959 echo "configure: failed program was:" >&5
9960 cat conftest.$ac_ext >&5
9961 rm -rf conftest*
9962 eval "ac_cv_func_$ac_func=no"
9963fi
9964rm -f conftest*
9965fi
9966
9967if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9968 echo "$ac_t""yes" 1>&6
9969 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9970 cat >> confdefs.h <<EOF
9971#define $ac_tr_func 1
9972EOF
9973
9974else
9975 echo "$ac_t""no" 1>&6
9976fi
9977done
9978
9979
b12915c1
VZ
9980HAVE_SOME_SLEEP_FUNC=0
9981if test "$USE_BEOS" = 1; then
9982 cat >> confdefs.h <<\EOF
9983#define HAVE_SLEEP 1
9984EOF
9985
9986 HAVE_SOME_SLEEP_FUNC=1
9987fi
9988
9989if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
9990 POSIX4_LINK=
9991 for ac_func in nanosleep
10f2d63a
VZ
9992do
9993echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
dad6c0ea 9994echo "configure:9995: checking for $ac_func" >&5
10f2d63a
VZ
9995if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9996 echo $ac_n "(cached) $ac_c" 1>&6
9997else
9998 cat > conftest.$ac_ext <<EOF
dad6c0ea 9999#line 10000 "configure"
10f2d63a
VZ
10000#include "confdefs.h"
10001/* System header to define __stub macros and hopefully few prototypes,
10002 which can conflict with char $ac_func(); below. */
10003#include <assert.h>
10004/* Override any gcc2 internal prototype to avoid an error. */
10005/* We use char because int might match the return type of a gcc2
10006 builtin and then its argument prototype would still apply. */
10007char $ac_func();
10008
10009int main() {
10010
10011/* The GNU C library defines this for functions which it implements
10012 to always fail with ENOSYS. Some functions are actually named
10013 something starting with __ and the normal name is an alias. */
10014#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10015choke me
10016#else
caa2c79b 10017$ac_func();
10f2d63a
VZ
10018#endif
10019
10020; return 0; }
10021EOF
dad6c0ea 10022if { (eval echo configure:10023: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
10023 rm -rf conftest*
10024 eval "ac_cv_func_$ac_func=yes"
10025else
10026 echo "configure: failed program was:" >&5
10027 cat conftest.$ac_ext >&5
10028 rm -rf conftest*
10029 eval "ac_cv_func_$ac_func=no"
10030fi
10031rm -f conftest*
10032fi
10033
10034if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10035 echo "$ac_t""yes" 1>&6
10036 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10037 cat >> confdefs.h <<EOF
10038#define $ac_tr_func 1
10039EOF
10040 cat >> confdefs.h <<\EOF
10041#define HAVE_NANOSLEEP 1
10042EOF
10043
10044else
10045 echo "$ac_t""no" 1>&6
10046echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6
dad6c0ea 10047echo "configure:10048: checking for nanosleep in -lposix4" >&5
10f2d63a
VZ
10048ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'`
10049if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10050 echo $ac_n "(cached) $ac_c" 1>&6
10051else
10052 ac_save_LIBS="$LIBS"
10053LIBS="-lposix4 $LIBS"
10054cat > conftest.$ac_ext <<EOF
dad6c0ea 10055#line 10056 "configure"
10f2d63a
VZ
10056#include "confdefs.h"
10057/* Override any gcc2 internal prototype to avoid an error. */
10058/* We use char because int might match the return type of a gcc2
10059 builtin and then its argument prototype would still apply. */
10060char nanosleep();
10061
10062int main() {
10063nanosleep()
10064; return 0; }
10065EOF
dad6c0ea 10066if { (eval echo configure:10067: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
10067 rm -rf conftest*
10068 eval "ac_cv_lib_$ac_lib_var=yes"
10069else
10070 echo "configure: failed program was:" >&5
10071 cat conftest.$ac_ext >&5
10072 rm -rf conftest*
10073 eval "ac_cv_lib_$ac_lib_var=no"
10074fi
10075rm -f conftest*
10076LIBS="$ac_save_LIBS"
10077
10078fi
10079if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10080 echo "$ac_t""yes" 1>&6
10081
b12915c1 10082 cat >> confdefs.h <<\EOF
10f2d63a
VZ
10083#define HAVE_NANOSLEEP 1
10084EOF
10085
b12915c1
VZ
10086 POSIX4_LINK="-lposix4"
10087
10f2d63a
VZ
10088else
10089 echo "$ac_t""no" 1>&6
10090
b12915c1 10091 for ac_func in usleep
10f2d63a
VZ
10092do
10093echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
dad6c0ea 10094echo "configure:10095: checking for $ac_func" >&5
10f2d63a
VZ
10095if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10096 echo $ac_n "(cached) $ac_c" 1>&6
10097else
10098 cat > conftest.$ac_ext <<EOF
dad6c0ea 10099#line 10100 "configure"
10f2d63a
VZ
10100#include "confdefs.h"
10101/* System header to define __stub macros and hopefully few prototypes,
10102 which can conflict with char $ac_func(); below. */
10103#include <assert.h>
10104/* Override any gcc2 internal prototype to avoid an error. */
10105/* We use char because int might match the return type of a gcc2
10106 builtin and then its argument prototype would still apply. */
10107char $ac_func();
10108
10109int main() {
10110
10111/* The GNU C library defines this for functions which it implements
10112 to always fail with ENOSYS. Some functions are actually named
10113 something starting with __ and the normal name is an alias. */
10114#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10115choke me
10116#else
caa2c79b 10117$ac_func();
10f2d63a
VZ
10118#endif
10119
10120; return 0; }
10121EOF
dad6c0ea 10122if { (eval echo configure:10123: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
10123 rm -rf conftest*
10124 eval "ac_cv_func_$ac_func=yes"
10125else
10126 echo "configure: failed program was:" >&5
10127 cat conftest.$ac_ext >&5
10128 rm -rf conftest*
10129 eval "ac_cv_func_$ac_func=no"
10130fi
10131rm -f conftest*
10132fi
10133
10134if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10135 echo "$ac_t""yes" 1>&6
10136 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10137 cat >> confdefs.h <<EOF
10138#define $ac_tr_func 1
10139EOF
b12915c1 10140
10f2d63a
VZ
10141else
10142 echo "$ac_t""no" 1>&6
10f2d63a
VZ
10143fi
10144done
10145
b12915c1
VZ
10146 echo "configure: warning: wxSleep() function will not work" 1>&2
10147
10148
10f2d63a
VZ
10149fi
10150
b12915c1
VZ
10151
10152
10f2d63a
VZ
10153fi
10154done
10155
b12915c1 10156fi
10f2d63a
VZ
10157
10158for ac_func in uname gethostname
10159do
10160echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
dad6c0ea 10161echo "configure:10162: checking for $ac_func" >&5
10f2d63a
VZ
10162if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10163 echo $ac_n "(cached) $ac_c" 1>&6
10164else
10165 cat > conftest.$ac_ext <<EOF
dad6c0ea 10166#line 10167 "configure"
10f2d63a
VZ
10167#include "confdefs.h"
10168/* System header to define __stub macros and hopefully few prototypes,
10169 which can conflict with char $ac_func(); below. */
10170#include <assert.h>
10171/* Override any gcc2 internal prototype to avoid an error. */
10172/* We use char because int might match the return type of a gcc2
10173 builtin and then its argument prototype would still apply. */
10174char $ac_func();
10175
10176int main() {
10177
10178/* The GNU C library defines this for functions which it implements
10179 to always fail with ENOSYS. Some functions are actually named
10180 something starting with __ and the normal name is an alias. */
10181#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10182choke me
10183#else
caa2c79b 10184$ac_func();
10f2d63a
VZ
10185#endif
10186
10187; return 0; }
10188EOF
dad6c0ea 10189if { (eval echo configure:10190: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
10190 rm -rf conftest*
10191 eval "ac_cv_func_$ac_func=yes"
10192else
10193 echo "configure: failed program was:" >&5
10194 cat conftest.$ac_ext >&5
10195 rm -rf conftest*
10196 eval "ac_cv_func_$ac_func=no"
10197fi
10198rm -f conftest*
10199fi
10200
10201if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10202 echo "$ac_t""yes" 1>&6
10203 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10204 cat >> confdefs.h <<EOF
10205#define $ac_tr_func 1
10206EOF
10207 break
10208else
10209 echo "$ac_t""no" 1>&6
10210fi
10211done
10212
10213
10214for ac_func in strtok_r
10215do
10216echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
dad6c0ea 10217echo "configure:10218: checking for $ac_func" >&5
10f2d63a
VZ
10218if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10219 echo $ac_n "(cached) $ac_c" 1>&6
10220else
10221 cat > conftest.$ac_ext <<EOF
dad6c0ea 10222#line 10223 "configure"
10f2d63a
VZ
10223#include "confdefs.h"
10224/* System header to define __stub macros and hopefully few prototypes,
10225 which can conflict with char $ac_func(); below. */
10226#include <assert.h>
10227/* Override any gcc2 internal prototype to avoid an error. */
10228/* We use char because int might match the return type of a gcc2
10229 builtin and then its argument prototype would still apply. */
10230char $ac_func();
10231
10232int main() {
10233
10234/* The GNU C library defines this for functions which it implements
10235 to always fail with ENOSYS. Some functions are actually named
10236 something starting with __ and the normal name is an alias. */
10237#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10238choke me
10239#else
caa2c79b 10240$ac_func();
10f2d63a
VZ
10241#endif
10242
10243; return 0; }
10244EOF
dad6c0ea 10245if { (eval echo configure:10246: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
10246 rm -rf conftest*
10247 eval "ac_cv_func_$ac_func=yes"
10248else
10249 echo "configure: failed program was:" >&5
10250 cat conftest.$ac_ext >&5
10251 rm -rf conftest*
10252 eval "ac_cv_func_$ac_func=no"
10253fi
10254rm -f conftest*
10255fi
10256
10257if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10258 echo "$ac_t""yes" 1>&6
10259 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10260 cat >> confdefs.h <<EOF
10261#define $ac_tr_func 1
10262EOF
10263
10264else
10265 echo "$ac_t""no" 1>&6
10266fi
10267done
10268
10269
c63c7106 10270INET_LINK=
10f2d63a
VZ
10271for ac_func in inet_addr
10272do
10273echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
dad6c0ea 10274echo "configure:10275: checking for $ac_func" >&5
10f2d63a
VZ
10275if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10276 echo $ac_n "(cached) $ac_c" 1>&6
10277else
10278 cat > conftest.$ac_ext <<EOF
dad6c0ea 10279#line 10280 "configure"
10f2d63a
VZ
10280#include "confdefs.h"
10281/* System header to define __stub macros and hopefully few prototypes,
10282 which can conflict with char $ac_func(); below. */
10283#include <assert.h>
10284/* Override any gcc2 internal prototype to avoid an error. */
10285/* We use char because int might match the return type of a gcc2
10286 builtin and then its argument prototype would still apply. */
10287char $ac_func();
10288
10289int main() {
10290
10291/* The GNU C library defines this for functions which it implements
10292 to always fail with ENOSYS. Some functions are actually named
10293 something starting with __ and the normal name is an alias. */
10294#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10295choke me
10296#else
caa2c79b 10297$ac_func();
10f2d63a
VZ
10298#endif
10299
10300; return 0; }
10301EOF
dad6c0ea 10302if { (eval echo configure:10303: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
10303 rm -rf conftest*
10304 eval "ac_cv_func_$ac_func=yes"
10305else
10306 echo "configure: failed program was:" >&5
10307 cat conftest.$ac_ext >&5
10308 rm -rf conftest*
10309 eval "ac_cv_func_$ac_func=no"
10310fi
10311rm -f conftest*
10312fi
10313
10314if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10315 echo "$ac_t""yes" 1>&6
10316 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10317 cat >> confdefs.h <<EOF
10318#define $ac_tr_func 1
10319EOF
c63c7106
VZ
10320 cat >> confdefs.h <<\EOF
10321#define HAVE_INET_ADDR 1
10322EOF
10323
10f2d63a
VZ
10324else
10325 echo "$ac_t""no" 1>&6
c63c7106 10326echo $ac_n "checking for inet_addr in -lnsl""... $ac_c" 1>&6
dad6c0ea 10327echo "configure:10328: checking for inet_addr in -lnsl" >&5
c63c7106
VZ
10328ac_lib_var=`echo nsl'_'inet_addr | sed 'y%./+-%__p_%'`
10329if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10330 echo $ac_n "(cached) $ac_c" 1>&6
10331else
10332 ac_save_LIBS="$LIBS"
10333LIBS="-lnsl $LIBS"
10334cat > conftest.$ac_ext <<EOF
dad6c0ea 10335#line 10336 "configure"
c63c7106
VZ
10336#include "confdefs.h"
10337/* Override any gcc2 internal prototype to avoid an error. */
10338/* We use char because int might match the return type of a gcc2
10339 builtin and then its argument prototype would still apply. */
10340char inet_addr();
10341
10342int main() {
10343inet_addr()
10344; return 0; }
10345EOF
dad6c0ea 10346if { (eval echo configure:10347: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
c63c7106
VZ
10347 rm -rf conftest*
10348 eval "ac_cv_lib_$ac_lib_var=yes"
10349else
10350 echo "configure: failed program was:" >&5
10351 cat conftest.$ac_ext >&5
10352 rm -rf conftest*
10353 eval "ac_cv_lib_$ac_lib_var=no"
10354fi
10355rm -f conftest*
10356LIBS="$ac_save_LIBS"
10357
10358fi
10359if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10360 echo "$ac_t""yes" 1>&6
10361 INET_LINK="nsl"
10362else
10363 echo "$ac_t""no" 1>&6
10364echo $ac_n "checking for inet_addr in -lresolv""... $ac_c" 1>&6
dad6c0ea 10365echo "configure:10366: checking for inet_addr in -lresolv" >&5
c63c7106
VZ
10366ac_lib_var=`echo resolv'_'inet_addr | sed 'y%./+-%__p_%'`
10367if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10368 echo $ac_n "(cached) $ac_c" 1>&6
10369else
10370 ac_save_LIBS="$LIBS"
10371LIBS="-lresolv $LIBS"
10372cat > conftest.$ac_ext <<EOF
dad6c0ea 10373#line 10374 "configure"
c63c7106
VZ
10374#include "confdefs.h"
10375/* Override any gcc2 internal prototype to avoid an error. */
10376/* We use char because int might match the return type of a gcc2
10377 builtin and then its argument prototype would still apply. */
10378char inet_addr();
10379
10380int main() {
10381inet_addr()
10382; return 0; }
10383EOF
dad6c0ea 10384if { (eval echo configure:10385: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
c63c7106
VZ
10385 rm -rf conftest*
10386 eval "ac_cv_lib_$ac_lib_var=yes"
10387else
10388 echo "configure: failed program was:" >&5
10389 cat conftest.$ac_ext >&5
10390 rm -rf conftest*
10391 eval "ac_cv_lib_$ac_lib_var=no"
10392fi
10393rm -f conftest*
10394LIBS="$ac_save_LIBS"
10395
10396fi
10397if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10398 echo "$ac_t""yes" 1>&6
10399 INET_LINK="resolv"
10400
10401else
10402 echo "$ac_t""no" 1>&6
10403fi
10404
10405
10406fi
10407
10408
10409
10f2d63a
VZ
10410fi
10411done
10412
c63c7106 10413
10f2d63a
VZ
10414for ac_func in inet_aton
10415do
10416echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
dad6c0ea 10417echo "configure:10418: checking for $ac_func" >&5
10f2d63a
VZ
10418if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10419 echo $ac_n "(cached) $ac_c" 1>&6
10420else
10421 cat > conftest.$ac_ext <<EOF
dad6c0ea 10422#line 10423 "configure"
10f2d63a
VZ
10423#include "confdefs.h"
10424/* System header to define __stub macros and hopefully few prototypes,
10425 which can conflict with char $ac_func(); below. */
10426#include <assert.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 $ac_func();
10431
10432int main() {
10433
10434/* The GNU C library defines this for functions which it implements
10435 to always fail with ENOSYS. Some functions are actually named
10436 something starting with __ and the normal name is an alias. */
10437#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10438choke me
10439#else
caa2c79b 10440$ac_func();
10f2d63a
VZ
10441#endif
10442
10443; return 0; }
10444EOF
dad6c0ea 10445if { (eval echo configure:10446: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
10446 rm -rf conftest*
10447 eval "ac_cv_func_$ac_func=yes"
10448else
10449 echo "configure: failed program was:" >&5
10450 cat conftest.$ac_ext >&5
10451 rm -rf conftest*
10452 eval "ac_cv_func_$ac_func=no"
10453fi
10454rm -f conftest*
10455fi
10456
10457if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10458 echo "$ac_t""yes" 1>&6
10459 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10460 cat >> confdefs.h <<EOF
10461#define $ac_tr_func 1
10462EOF
c63c7106
VZ
10463 cat >> confdefs.h <<\EOF
10464#define HAVE_INET_ATON 1
10465EOF
10466
10f2d63a
VZ
10467else
10468 echo "$ac_t""no" 1>&6
c63c7106 10469 echo $ac_n "checking for inet_aton in -l$INET_LINK""... $ac_c" 1>&6
dad6c0ea 10470echo "configure:10471: checking for inet_aton in -l$INET_LINK" >&5
c63c7106 10471ac_lib_var=`echo $INET_LINK'_'inet_aton | sed 'y%./+-%__p_%'`
10f2d63a
VZ
10472if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10473 echo $ac_n "(cached) $ac_c" 1>&6
10474else
10475 ac_save_LIBS="$LIBS"
c63c7106 10476LIBS="-l$INET_LINK $LIBS"
10f2d63a 10477cat > conftest.$ac_ext <<EOF
dad6c0ea 10478#line 10479 "configure"
10f2d63a
VZ
10479#include "confdefs.h"
10480/* Override any gcc2 internal prototype to avoid an error. */
10481/* We use char because int might match the return type of a gcc2
10482 builtin and then its argument prototype would still apply. */
10483char inet_aton();
10484
10485int main() {
10486inet_aton()
10487; return 0; }
10488EOF
dad6c0ea 10489if { (eval echo configure:10490: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
10490 rm -rf conftest*
10491 eval "ac_cv_lib_$ac_lib_var=yes"
10492else
10493 echo "configure: failed program was:" >&5
10494 cat conftest.$ac_ext >&5
10495 rm -rf conftest*
10496 eval "ac_cv_lib_$ac_lib_var=no"
10497fi
10498rm -f conftest*
10499LIBS="$ac_save_LIBS"
10500
10501fi
10502if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10503 echo "$ac_t""yes" 1>&6
c63c7106
VZ
10504 cat >> confdefs.h <<\EOF
10505#define HAVE_INET_ATON 1
10f2d63a
VZ
10506EOF
10507
10f2d63a
VZ
10508else
10509 echo "$ac_t""no" 1>&6
10510fi
10511
c63c7106
VZ
10512
10513fi
10514done
10515
10516
10517if test "x$INET_LINK" != "x"; then
10518 cat >> confdefs.h <<\EOF
10519#define HAVE_INET_ADDR 1
10520EOF
10521
10522 INET_LINK="-l$INET_LINK"
10523fi
10f2d63a
VZ
10524
10525fi
10526
10527
10528cat > confcache <<\EOF
10529# This file is a shell script that caches the results of configure
10530# tests run on this system so they can be shared between configure
10531# scripts and configure runs. It is not useful on other systems.
10532# If it contains results you don't want to keep, you may remove or edit it.
10533#
10534# By default, configure uses ./config.cache as the cache file,
10535# creating it if it does not exist already. You can give configure
10536# the --cache-file=FILE option to use a different cache file; that is
10537# what configure does when it calls configure scripts in
10538# subdirectories, so they share the cache.
10539# Giving --cache-file=/dev/null disables caching, for debugging configure.
10540# config.status only pays attention to the cache file if you give it the
10541# --recheck option to rerun configure.
10542#
10543EOF
10544# The following way of writing the cache mishandles newlines in values,
10545# but we know of no workaround that is simple, portable, and efficient.
10546# So, don't put newlines in cache variables' values.
10547# Ultrix sh set writes to stderr and can't be redirected directly,
10548# and sets the high bit in the cache file unless we assign to the vars.
10549(set) 2>&1 |
10550 case `(ac_space=' '; set | grep ac_space) 2>&1` in
10551 *ac_space=\ *)
10552 # `set' does not quote correctly, so add quotes (double-quote substitution
10553 # turns \\\\ into \\, and sed turns \\ into \).
10554 sed -n \
10555 -e "s/'/'\\\\''/g" \
10556 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
10557 ;;
10558 *)
10559 # `set' quotes correctly as required by POSIX, so do not add quotes.
10560 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
10561 ;;
10562 esac >> confcache
10563if cmp -s $cache_file confcache; then
10564 :
10565else
10566 if test -w $cache_file; then
10567 echo "updating cache $cache_file"
10568 cat confcache > $cache_file
10569 else
10570 echo "not updating unwritable cache $cache_file"
10571 fi
10572fi
10573rm -f confcache
10574
10575
10576
10577if test "$USE_UNIX" = 1; then
10578
10579
10580THREADS_LINK=""
10581THREADS_OBJ=""
10582
10583if test "$wxUSE_THREADS" = "yes" ; then
10584 if test "$wxUSE_WINE" = 1 ; then
10585 echo "configure: warning: Threads are not supported under WINE" 1>&2
10586 wxUSE_THREADS="no"
b12915c1
VZ
10587 elif test "$USE_BEOS" = 1; then
10588 echo "configure: warning: BeOS threads are not yet supported" 1>&2
10589 wxUSE_THREADS="no"
10f2d63a
VZ
10590 fi
10591fi
10592
10593if test "$wxUSE_THREADS" = "yes" ; then
10594
10595 echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6
dad6c0ea 10596echo "configure:10597: checking for pthread_create in -lpthread" >&5
10f2d63a
VZ
10597ac_lib_var=`echo pthread'_'pthread_create | sed 'y%./+-%__p_%'`
10598if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10599 echo $ac_n "(cached) $ac_c" 1>&6
10600else
10601 ac_save_LIBS="$LIBS"
10602LIBS="-lpthread $LIBS"
10603cat > conftest.$ac_ext <<EOF
dad6c0ea 10604#line 10605 "configure"
10f2d63a
VZ
10605#include "confdefs.h"
10606/* Override any gcc2 internal prototype to avoid an error. */
10607/* We use char because int might match the return type of a gcc2
10608 builtin and then its argument prototype would still apply. */
10609char pthread_create();
10610
10611int main() {
10612pthread_create()
10613; return 0; }
10614EOF
dad6c0ea 10615if { (eval echo configure:10616: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
10616 rm -rf conftest*
10617 eval "ac_cv_lib_$ac_lib_var=yes"
10618else
10619 echo "configure: failed program was:" >&5
10620 cat conftest.$ac_ext >&5
10621 rm -rf conftest*
10622 eval "ac_cv_lib_$ac_lib_var=no"
10623fi
10624rm -f conftest*
10625LIBS="$ac_save_LIBS"
10626
10627fi
10628if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10629 echo "$ac_t""yes" 1>&6
10630
10631 THREADS_OBJ="threadpsx.lo"
10632 THREADS_LINK="pthread"
10633
10634else
10635 echo "$ac_t""no" 1>&6
10636
10637 echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6
dad6c0ea 10638echo "configure:10639: checking for pthread_create in -lc_r" >&5
10f2d63a
VZ
10639ac_lib_var=`echo c_r'_'pthread_create | sed 'y%./+-%__p_%'`
10640if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10641 echo $ac_n "(cached) $ac_c" 1>&6
10642else
10643 ac_save_LIBS="$LIBS"
10644LIBS="-lc_r $LIBS"
10645cat > conftest.$ac_ext <<EOF
dad6c0ea 10646#line 10647 "configure"
10f2d63a
VZ
10647#include "confdefs.h"
10648/* Override any gcc2 internal prototype to avoid an error. */
10649/* We use char because int might match the return type of a gcc2
10650 builtin and then its argument prototype would still apply. */
10651char pthread_create();
10652
10653int main() {
10654pthread_create()
10655; return 0; }
10656EOF
dad6c0ea 10657if { (eval echo configure:10658: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
10658 rm -rf conftest*
10659 eval "ac_cv_lib_$ac_lib_var=yes"
10660else
10661 echo "configure: failed program was:" >&5
10662 cat conftest.$ac_ext >&5
10663 rm -rf conftest*
10664 eval "ac_cv_lib_$ac_lib_var=no"
10665fi
10666rm -f conftest*
10667LIBS="$ac_save_LIBS"
10668
10669fi
10670if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10671 echo "$ac_t""yes" 1>&6
10672
10673 THREADS_OBJ="threadpsx.lo"
10674 THREADS_LINK="c_r"
10675
10676else
10677 echo "$ac_t""no" 1>&6
10678
10679 ac_safe=`echo "sys/prctl.h" | sed 'y%./+-%__p_%'`
10680echo $ac_n "checking for sys/prctl.h""... $ac_c" 1>&6
dad6c0ea 10681echo "configure:10682: checking for sys/prctl.h" >&5
10f2d63a
VZ
10682if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10683 echo $ac_n "(cached) $ac_c" 1>&6
10684else
10685 cat > conftest.$ac_ext <<EOF
dad6c0ea 10686#line 10687 "configure"
10f2d63a
VZ
10687#include "confdefs.h"
10688#include <sys/prctl.h>
10689EOF
10690ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
dad6c0ea 10691{ (eval echo configure:10692: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
10692ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10693if test -z "$ac_err"; then
10694 rm -rf conftest*
10695 eval "ac_cv_header_$ac_safe=yes"
10696else
10697 echo "$ac_err" >&5
10698 echo "configure: failed program was:" >&5
10699 cat conftest.$ac_ext >&5
10700 rm -rf conftest*
10701 eval "ac_cv_header_$ac_safe=no"
10702fi
10703rm -f conftest*
10704fi
10705if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10706 echo "$ac_t""yes" 1>&6
10707
10708 THREADS_OBJ="threadsgi.lo"
10709
10710else
10711 echo "$ac_t""no" 1>&6
10712fi
10713
10714
10715fi
10716
10717
10718fi
10719
10720
10721 if test -z "$THREADS_OBJ" ; then
10722 wxUSE_THREADS=no
10723 echo "configure: warning: No thread support on this system" 1>&2
10724 fi
10725fi
10726
10727if test "$wxUSE_THREADS" = "yes" ; then
70846f0a
VZ
10728 for ac_func in thr_setconcurrency
10729do
10730echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
dad6c0ea 10731echo "configure:10732: checking for $ac_func" >&5
70846f0a
VZ
10732if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10733 echo $ac_n "(cached) $ac_c" 1>&6
10734else
10735 cat > conftest.$ac_ext <<EOF
dad6c0ea 10736#line 10737 "configure"
70846f0a
VZ
10737#include "confdefs.h"
10738/* System header to define __stub macros and hopefully few prototypes,
10739 which can conflict with char $ac_func(); below. */
10740#include <assert.h>
10741/* Override any gcc2 internal prototype to avoid an error. */
10742/* We use char because int might match the return type of a gcc2
10743 builtin and then its argument prototype would still apply. */
10744char $ac_func();
10745
10746int main() {
10747
10748/* The GNU C library defines this for functions which it implements
10749 to always fail with ENOSYS. Some functions are actually named
10750 something starting with __ and the normal name is an alias. */
10751#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10752choke me
10753#else
caa2c79b 10754$ac_func();
70846f0a
VZ
10755#endif
10756
10757; return 0; }
10758EOF
dad6c0ea 10759if { (eval echo configure:10760: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
70846f0a
VZ
10760 rm -rf conftest*
10761 eval "ac_cv_func_$ac_func=yes"
10762else
10763 echo "configure: failed program was:" >&5
10764 cat conftest.$ac_ext >&5
10765 rm -rf conftest*
10766 eval "ac_cv_func_$ac_func=no"
10767fi
10768rm -f conftest*
10769fi
10770
10771if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10772 echo "$ac_t""yes" 1>&6
10773 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10774 cat >> confdefs.h <<EOF
10775#define $ac_tr_func 1
10776EOF
10777
10778else
10779 echo "$ac_t""no" 1>&6
10780fi
10781done
10782
10783
10f2d63a
VZ
10784
10785 for ac_hdr in sched.h
10786do
10787ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10788echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
dad6c0ea 10789echo "configure:10790: checking for $ac_hdr" >&5
10f2d63a
VZ
10790if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10791 echo $ac_n "(cached) $ac_c" 1>&6
10792else
10793 cat > conftest.$ac_ext <<EOF
dad6c0ea 10794#line 10795 "configure"
10f2d63a
VZ
10795#include "confdefs.h"
10796#include <$ac_hdr>
10797EOF
10798ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
dad6c0ea 10799{ (eval echo configure:10800: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
10800ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10801if test -z "$ac_err"; then
10802 rm -rf conftest*
10803 eval "ac_cv_header_$ac_safe=yes"
10804else
10805 echo "$ac_err" >&5
10806 echo "configure: failed program was:" >&5
10807 cat conftest.$ac_ext >&5
10808 rm -rf conftest*
10809 eval "ac_cv_header_$ac_safe=no"
10810fi
10811rm -f conftest*
10812fi
10813if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10814 echo "$ac_t""yes" 1>&6
10815 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10816 cat >> confdefs.h <<EOF
10817#define $ac_tr_hdr 1
10818EOF
10819
10820else
10821 echo "$ac_t""no" 1>&6
10822fi
10823done
10824
10825
10826 echo $ac_n "checking for sched_yield in -l$THREADS_LINK""... $ac_c" 1>&6
dad6c0ea 10827echo "configure:10828: checking for sched_yield in -l$THREADS_LINK" >&5
10f2d63a
VZ
10828ac_lib_var=`echo $THREADS_LINK'_'sched_yield | sed 'y%./+-%__p_%'`
10829if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10830 echo $ac_n "(cached) $ac_c" 1>&6
10831else
10832 ac_save_LIBS="$LIBS"
10833LIBS="-l$THREADS_LINK $LIBS"
10834cat > conftest.$ac_ext <<EOF
dad6c0ea 10835#line 10836 "configure"
10f2d63a
VZ
10836#include "confdefs.h"
10837/* Override any gcc2 internal prototype to avoid an error. */
10838/* We use char because int might match the return type of a gcc2
10839 builtin and then its argument prototype would still apply. */
10840char sched_yield();
10841
10842int main() {
10843sched_yield()
10844; return 0; }
10845EOF
dad6c0ea 10846if { (eval echo configure:10847: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
10847 rm -rf conftest*
10848 eval "ac_cv_lib_$ac_lib_var=yes"
10849else
10850 echo "configure: failed program was:" >&5
10851 cat conftest.$ac_ext >&5
10852 rm -rf conftest*
10853 eval "ac_cv_lib_$ac_lib_var=no"
10854fi
10855rm -f conftest*
10856LIBS="$ac_save_LIBS"
10857
10858fi
10859if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10860 echo "$ac_t""yes" 1>&6
10861 cat >> confdefs.h <<\EOF
10862#define HAVE_SCHED_YIELD 1
10863EOF
10864
10865else
10866 echo "$ac_t""no" 1>&6
10867echo $ac_n "checking for sched_yield in -l"posix4"""... $ac_c" 1>&6
dad6c0ea 10868echo "configure:10869: checking for sched_yield in -l"posix4"" >&5
10f2d63a
VZ
10869ac_lib_var=`echo "posix4"'_'sched_yield | sed 'y%./+-%__p_%'`
10870if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10871 echo $ac_n "(cached) $ac_c" 1>&6
10872else
10873 ac_save_LIBS="$LIBS"
10874LIBS="-l"posix4" $LIBS"
10875cat > conftest.$ac_ext <<EOF
dad6c0ea 10876#line 10877 "configure"
10f2d63a
VZ
10877#include "confdefs.h"
10878/* Override any gcc2 internal prototype to avoid an error. */
10879/* We use char because int might match the return type of a gcc2
10880 builtin and then its argument prototype would still apply. */
10881char sched_yield();
10882
10883int main() {
10884sched_yield()
10885; return 0; }
10886EOF
dad6c0ea 10887if { (eval echo configure:10888: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
10888 rm -rf conftest*
10889 eval "ac_cv_lib_$ac_lib_var=yes"
10890else
10891 echo "configure: failed program was:" >&5
10892 cat conftest.$ac_ext >&5
10893 rm -rf conftest*
10894 eval "ac_cv_lib_$ac_lib_var=no"
10895fi
10896rm -f conftest*
10897LIBS="$ac_save_LIBS"
10898
10899fi
10900if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10901 echo "$ac_t""yes" 1>&6
10902 cat >> confdefs.h <<\EOF
10903#define HAVE_SCHED_YIELD 1
10904EOF
10905 POSIX4_LINK="-lposix4"
10906else
10907 echo "$ac_t""no" 1>&6
10908echo "configure: warning: wxThread::Yield will not work properly" 1>&2
10909
10910fi
10911
10912
10913fi
10914
10915
10916 echo $ac_n "checking for pthread_attr_getschedpolicy in -l$THREADS_LINK""... $ac_c" 1>&6
dad6c0ea 10917echo "configure:10918: checking for pthread_attr_getschedpolicy in -l$THREADS_LINK" >&5
10f2d63a
VZ
10918ac_lib_var=`echo $THREADS_LINK'_'pthread_attr_getschedpolicy | sed 'y%./+-%__p_%'`
10919if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10920 echo $ac_n "(cached) $ac_c" 1>&6
10921else
10922 ac_save_LIBS="$LIBS"
10923LIBS="-l$THREADS_LINK $LIBS"
10924cat > conftest.$ac_ext <<EOF
dad6c0ea 10925#line 10926 "configure"
10f2d63a
VZ
10926#include "confdefs.h"
10927/* Override any gcc2 internal prototype to avoid an error. */
10928/* We use char because int might match the return type of a gcc2
10929 builtin and then its argument prototype would still apply. */
10930char pthread_attr_getschedpolicy();
10931
10932int main() {
10933pthread_attr_getschedpolicy()
10934; return 0; }
10935EOF
dad6c0ea 10936if { (eval echo configure:10937: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
10937 rm -rf conftest*
10938 eval "ac_cv_lib_$ac_lib_var=yes"
10939else
10940 echo "configure: failed program was:" >&5
10941 cat conftest.$ac_ext >&5
10942 rm -rf conftest*
10943 eval "ac_cv_lib_$ac_lib_var=no"
10944fi
10945rm -f conftest*
10946LIBS="$ac_save_LIBS"
10947
10948fi
10949if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10950 echo "$ac_t""yes" 1>&6
10951 cat >> confdefs.h <<\EOF
10952#define HAVE_THREAD_PRIORITY_FUNCTIONS 1
10953EOF
10954
10955else
10956 echo "$ac_t""no" 1>&6
10957echo $ac_n "checking for pthread_attr_getschedpolicy in -l"posix4"""... $ac_c" 1>&6
dad6c0ea 10958echo "configure:10959: checking for pthread_attr_getschedpolicy in -l"posix4"" >&5
10f2d63a
VZ
10959ac_lib_var=`echo "posix4"'_'pthread_attr_getschedpolicy | sed 'y%./+-%__p_%'`
10960if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10961 echo $ac_n "(cached) $ac_c" 1>&6
10962else
10963 ac_save_LIBS="$LIBS"
10964LIBS="-l"posix4" $LIBS"
10965cat > conftest.$ac_ext <<EOF
dad6c0ea 10966#line 10967 "configure"
10f2d63a
VZ
10967#include "confdefs.h"
10968/* Override any gcc2 internal prototype to avoid an error. */
10969/* We use char because int might match the return type of a gcc2
10970 builtin and then its argument prototype would still apply. */
10971char pthread_attr_getschedpolicy();
10972
10973int main() {
10974pthread_attr_getschedpolicy()
10975; return 0; }
10976EOF
dad6c0ea 10977if { (eval echo configure:10978: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
10978 rm -rf conftest*
10979 eval "ac_cv_lib_$ac_lib_var=yes"
10980else
10981 echo "configure: failed program was:" >&5
10982 cat conftest.$ac_ext >&5
10983 rm -rf conftest*
10984 eval "ac_cv_lib_$ac_lib_var=no"
10985fi
10986rm -f conftest*
10987LIBS="$ac_save_LIBS"
10988
10989fi
10990if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10991 echo "$ac_t""yes" 1>&6
10992 cat >> confdefs.h <<\EOF
10993#define HAVE_THREAD_PRIORITY_FUNCTIONS 1
10994EOF
10995 POSIX4_LINK="-lposix4"
10996else
10997 echo "$ac_t""no" 1>&6
10998echo "configure: warning: Setting thread priority will not work" 1>&2
10999
11000fi
11001
11002
11003fi
11004
11005
11006 echo $ac_n "checking for pthread_cancel in -l$THREADS_LINK""... $ac_c" 1>&6
dad6c0ea 11007echo "configure:11008: checking for pthread_cancel in -l$THREADS_LINK" >&5
10f2d63a
VZ
11008ac_lib_var=`echo $THREADS_LINK'_'pthread_cancel | sed 'y%./+-%__p_%'`
11009if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11010 echo $ac_n "(cached) $ac_c" 1>&6
11011else
11012 ac_save_LIBS="$LIBS"
11013LIBS="-l$THREADS_LINK $LIBS"
11014cat > conftest.$ac_ext <<EOF
dad6c0ea 11015#line 11016 "configure"
10f2d63a
VZ
11016#include "confdefs.h"
11017/* Override any gcc2 internal prototype to avoid an error. */
11018/* We use char because int might match the return type of a gcc2
11019 builtin and then its argument prototype would still apply. */
11020char pthread_cancel();
11021
11022int main() {
11023pthread_cancel()
11024; return 0; }
11025EOF
dad6c0ea 11026if { (eval echo configure:11027: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
11027 rm -rf conftest*
11028 eval "ac_cv_lib_$ac_lib_var=yes"
11029else
11030 echo "configure: failed program was:" >&5
11031 cat conftest.$ac_ext >&5
11032 rm -rf conftest*
11033 eval "ac_cv_lib_$ac_lib_var=no"
11034fi
11035rm -f conftest*
11036LIBS="$ac_save_LIBS"
11037
11038fi
11039if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11040 echo "$ac_t""yes" 1>&6
11041 cat >> confdefs.h <<\EOF
11042#define HAVE_PTHREAD_CANCEL 1
11043EOF
11044
11045else
11046 echo "$ac_t""no" 1>&6
11047echo "configure: warning: wxThread::Kill() will not work properly" 1>&2
11048fi
11049
11050
11051 echo $ac_n "checking for pthread_cleanup_push/pop""... $ac_c" 1>&6
dad6c0ea 11052echo "configure:11053: checking for pthread_cleanup_push/pop" >&5
10f2d63a
VZ
11053if eval "test \"`echo '$''{'wx_cv_func_pthread_cleanup_push'+set}'`\" = set"; then
11054 echo $ac_n "(cached) $ac_c" 1>&6
11055else
11056
11057 cat > conftest.$ac_ext <<EOF
dad6c0ea 11058#line 11059 "configure"
10f2d63a
VZ
11059#include "confdefs.h"
11060#include <pthread.h>
11061int main() {
11062
11063 pthread_cleanup_push(NULL, NULL);
11064 pthread_cleanup_pop(0);
11065
11066; return 0; }
11067EOF
dad6c0ea 11068if { (eval echo configure:11069: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10f2d63a
VZ
11069 rm -rf conftest*
11070
11071 wx_cv_func_pthread_cleanup_push=yes
11072 cat >> confdefs.h <<\EOF
11073#define HAVE_THREAD_CLEANUP_FUNCTIONS 1
11074EOF
11075
11076
11077else
11078 echo "configure: failed program was:" >&5
11079 cat conftest.$ac_ext >&5
11080 rm -rf conftest*
11081
11082 wx_cv_func_pthread_cleanup_push=no
11083
11084fi
11085rm -f conftest*
11086
11087fi
11088
11089echo "$ac_t""$wx_cv_func_pthread_cleanup_push" 1>&6
11090
11091 THREADS_LINK="-l$THREADS_LINK"
11092fi
11093
11094fi
11095
11096if test "$wxUSE_THREADS" = "yes"; then
11097 cat >> confdefs.h <<\EOF
11098#define wxUSE_THREADS 1
11099EOF
11100
11101
11102 CFLAGS="${CFLAGS} -D_REENTRANT"
11103 CXXFLAGS="${CXXFLAGS} -D_REENTRANT"
11104
11105 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
11106else
11107 if test "$ac_cv_func_strtok_r" = "yes"; then
ab9b9eab 11108 echo $ac_n "checking if -D_REENTRANT is needed""... $ac_c" 1>&6
dad6c0ea 11109echo "configure:11110: checking if -D_REENTRANT is needed" >&5
ab9b9eab
VZ
11110 if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
11111 CFLAGS="${CFLAGS} -D_REENTRANT"
11112 CXXFLAGS="${CXXFLAGS} -D_REENTRANT"
11113 echo "$ac_t""yes" 1>&6
11114 else
11115 echo "$ac_t""no" 1>&6
10f2d63a
VZ
11116 fi
11117 fi
11118fi
11119
13111b2a
VZ
11120if test "$WXGTK13" = 1 ; then
11121 cat >> confdefs.h <<EOF
11122#define __WXGTK13__ $WXGTK13
11123EOF
11124
11125 WXGTK12=1
11126fi
11127
10f2d63a
VZ
11128if test "$WXGTK12" = 1 ; then
11129 cat >> confdefs.h <<EOF
11130#define __WXGTK12__ $WXGTK12
11131EOF
11132
11133fi
11134
11135if test "$WXWINE" = 1 ; then
11136 TOOLKIT_DEF="${TOOLKIT_DEF} -D__WXWINE__"
11137fi
11138
11139if test "$wxUSE_CYGWIN" = 1 ; then
11140 TOOLKIT_DEF="${TOOLKIT_DEF} -D__WIN95__"
11141fi
11142
11143WXDEBUG=
11144
11145if test "$wxUSE_DEBUG_INFO" = "yes" ; then
11146 WXDEBUG="-g"
11147 wxUSE_OPTIMISE=no
11148fi
11149
11150if test "$wxUSE_DEBUG_GDB" = "yes" ; then
11151 wxUSE_DEBUG_INFO=yes
11152 WXDEBUG="-ggdb"
11153fi
11154
11155if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
11156 cat >> confdefs.h <<\EOF
11157#define WXDEBUG 1
11158EOF
11159
11160 WXDEBUG_DEFINE="-D__WXDEBUG__"
11161else
11162 if test "$wxUSE_GTK" = 1 ; then
11163 WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS"
11164 fi
11165fi
11166
11167if test "$wxUSE_MEM_TRACING" = "yes" ; then
11168 cat >> confdefs.h <<\EOF
11169#define wxUSE_MEMORY_TRACING 1
11170EOF
11171
11172 cat >> confdefs.h <<\EOF
11173#define wxUSE_GLOBAL_MEMORY_OPERATORS 1
11174EOF
11175
11176 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
11177fi
11178
11179if test "$wxUSE_DMALLOC" = "yes" ; then
11180 DMALLOC_LINK="-ldmalloc"
11181fi
11182
11183PROFILE=
11184if test "$wxUSE_PROFILE" = "yes" ; then
11185 PROFILE="-pg"
11186fi
11187
11188DEP_INFO_FLAGS=
caa2c79b 11189CODE_GEN_FLAGS=
10f2d63a
VZ
11190if test "$GCC" = yes ; then
11191 if test "$wxUSE_NO_RTTI" = "yes" ; then
caa2c79b 11192 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fno-rtti"
10f2d63a
VZ
11193 fi
11194 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
caa2c79b 11195 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fno-exceptions"
10f2d63a
VZ
11196 fi
11197 if test "$wxUSE_PERMISSIVE" = "yes" ; then
caa2c79b 11198 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive"
10f2d63a
VZ
11199 fi
11200 if test "$wxUSE_NO_DEPS" = "no" ; then
11201 DEP_INFO_FLAGS="-MMD"
11202 fi
11203fi
11204
11205
11206CXXFLAGS=`echo "${CXXFLAGS}" | sed "s/\-O.//g" `
11207CFLAGS=`echo "${CFLAGS}" | sed "s/\-O.//g" `
11208if test "$wxUSE_OPTIMISE" = "no" ; then
11209 OPTIMISE=
11210else
11211 if test "$GCC" = yes ; then
11212 OPTIMISE="-O2"
11213 case "${host}" in
11214 i586-*-*|i686-*-* )
11215 OPTIMISE="${OPTIMISE} "
11216 ;;
11217 esac
11218 else
11219 OPTIMISE="-O"
11220 fi
11221fi
11222
11223
11224ZLIB_INCLUDE=
11225if test "$wxUSE_ZLIB" = "yes" ; then
11226 cat >> confdefs.h <<\EOF
11227#define wxUSE_ZLIB 1
11228EOF
11229
11230 ZLIB_INCLUDE="-I\${top_srcdir}/src/zlib"
11231fi
11232
11233PNG_INCLUDE=
11234if test "$wxUSE_LIBPNG" = "yes" ; then
11235 cat >> confdefs.h <<\EOF
11236#define wxUSE_LIBPNG 1
11237EOF
11238
11239 PNG_INCLUDE="-I\${top_srcdir}/src/png"
11240 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
11241fi
11242
11243JPEG_INCLUDE=
11244if test "$wxUSE_LIBJPEG" = "yes" ; then
11245 cat >> confdefs.h <<\EOF
11246#define wxUSE_LIBJPEG 1
11247EOF
11248
11249 JPEG_INCLUDE="-I\${top_srcdir}/src/jpeg"
11250fi
11251
c7a2bf27
RR
11252TIFF_INCLUDE=
11253if test "$wxUSE_LIBTIFF" = "yes" ; then
11254 cat >> confdefs.h <<\EOF
11255#define wxUSE_LIBTIFF 1
11256EOF
11257
11258 TIFF_INCLUDE="-I\${top_srcdir}/src/tiff"
11259fi
11260
10f2d63a
VZ
11261if test "$wxUSE_OPENGL" = "yes"; then
11262 ac_safe=`echo "GL/gl.h" | sed 'y%./+-%__p_%'`
11263echo $ac_n "checking for GL/gl.h""... $ac_c" 1>&6
dad6c0ea 11264echo "configure:11265: checking for GL/gl.h" >&5
10f2d63a
VZ
11265if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11266 echo $ac_n "(cached) $ac_c" 1>&6
11267else
11268 cat > conftest.$ac_ext <<EOF
dad6c0ea 11269#line 11270 "configure"
10f2d63a
VZ
11270#include "confdefs.h"
11271#include <GL/gl.h>
11272EOF
11273ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
dad6c0ea 11274{ (eval echo configure:11275: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
11275ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11276if test -z "$ac_err"; then
11277 rm -rf conftest*
11278 eval "ac_cv_header_$ac_safe=yes"
11279else
11280 echo "$ac_err" >&5
11281 echo "configure: failed program was:" >&5
11282 cat conftest.$ac_ext >&5
11283 rm -rf conftest*
11284 eval "ac_cv_header_$ac_safe=no"
11285fi
11286rm -f conftest*
11287fi
11288if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11289 echo "$ac_t""yes" 1>&6
11290
11291 echo $ac_n "checking for glInitNames in -lGL""... $ac_c" 1>&6
dad6c0ea 11292echo "configure:11293: checking for glInitNames in -lGL" >&5
10f2d63a
VZ
11293ac_lib_var=`echo GL'_'glInitNames | sed 'y%./+-%__p_%'`
11294if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11295 echo $ac_n "(cached) $ac_c" 1>&6
11296else
11297 ac_save_LIBS="$LIBS"
11298LIBS="-lGL wxUSE_OPENGL=0 $LIBS"
11299cat > conftest.$ac_ext <<EOF
dad6c0ea 11300#line 11301 "configure"
10f2d63a
VZ
11301#include "confdefs.h"
11302/* Override any gcc2 internal prototype to avoid an error. */
11303/* We use char because int might match the return type of a gcc2
11304 builtin and then its argument prototype would still apply. */
11305char glInitNames();
11306
11307int main() {
11308glInitNames()
11309; return 0; }
11310EOF
dad6c0ea 11311if { (eval echo configure:11312: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
11312 rm -rf conftest*
11313 eval "ac_cv_lib_$ac_lib_var=yes"
11314else
11315 echo "configure: failed program was:" >&5
11316 cat conftest.$ac_ext >&5
11317 rm -rf conftest*
11318 eval "ac_cv_lib_$ac_lib_var=no"
11319fi
11320rm -f conftest*
11321LIBS="$ac_save_LIBS"
11322
11323fi
11324if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11325 echo "$ac_t""yes" 1>&6
11326
11327 OPENGL_LINK="-lGL"
11328 cat >> confdefs.h <<\EOF
11329#define wxUSE_OPENGL 1
11330EOF
11331
11332 UTILS_SUBDIRS="$UTILS_SUBDIRS glcanvas/src"
11333
11334else
11335 echo "$ac_t""no" 1>&6
11336
11337 echo $ac_n "checking for glInitNames in -lMesaGL""... $ac_c" 1>&6
dad6c0ea 11338echo "configure:11339: checking for glInitNames in -lMesaGL" >&5
10f2d63a
VZ
11339ac_lib_var=`echo MesaGL'_'glInitNames | sed 'y%./+-%__p_%'`
11340if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11341 echo $ac_n "(cached) $ac_c" 1>&6
11342else
11343 ac_save_LIBS="$LIBS"
11344LIBS="-lMesaGL $LIBS"
11345cat > conftest.$ac_ext <<EOF
dad6c0ea 11346#line 11347 "configure"
10f2d63a
VZ
11347#include "confdefs.h"
11348/* Override any gcc2 internal prototype to avoid an error. */
11349/* We use char because int might match the return type of a gcc2
11350 builtin and then its argument prototype would still apply. */
11351char glInitNames();
11352
11353int main() {
11354glInitNames()
11355; return 0; }
11356EOF
dad6c0ea 11357if { (eval echo configure:11358: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
11358 rm -rf conftest*
11359 eval "ac_cv_lib_$ac_lib_var=yes"
11360else
11361 echo "configure: failed program was:" >&5
11362 cat conftest.$ac_ext >&5
11363 rm -rf conftest*
11364 eval "ac_cv_lib_$ac_lib_var=no"
11365fi
11366rm -f conftest*
11367LIBS="$ac_save_LIBS"
11368
11369fi
11370if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11371 echo "$ac_t""yes" 1>&6
11372
11373 OPENGL_LINK="-lMesaGL"
11374 cat >> confdefs.h <<\EOF
11375#define wxUSE_OPENGL 1
11376EOF
11377
11378 UTILS_SUBDIRS="$UTILS_SUBDIRS glcanvas/src"
11379
11380else
11381 echo "$ac_t""no" 1>&6
11382wxUSE_OPENGL=0
11383fi
11384
11385
11386fi
11387
11388
11389else
11390 echo "$ac_t""no" 1>&6
11391wxUSE_OPENGL=0
11392fi
11393
11394fi
11395
11396
11397if test "$wxUSE_GUI" = "yes"; then
11398 cat >> confdefs.h <<\EOF
11399#define wxUSE_GUI 1
11400EOF
11401
11402
11403 else
11404 cat >> confdefs.h <<\EOF
11405#define wxUSE_NOGUI 1
11406EOF
11407
11408fi
11409
11410
11411if test "$wxUSE_UNIX" = "yes"; then
11412 cat >> confdefs.h <<\EOF
11413#define wxUSE_UNIX 1
11414EOF
11415
11416fi
11417
11418
11419if test "$wxUSE_APPLE_IEEE" = "yes"; then
11420 cat >> confdefs.h <<\EOF
11421#define wxUSE_APPLE_IEEE 1
11422EOF
11423
11424fi
11425
10f2d63a
VZ
11426if test "$wxUSE_WAVE" = "yes"; then
11427 cat >> confdefs.h <<\EOF
11428#define wxUSE_WAVE 1
11429EOF
11430
11431fi
11432
11433if test "$wxUSE_FILE" = "yes"; then
11434 cat >> confdefs.h <<\EOF
11435#define wxUSE_FILE 1
11436EOF
11437
11438fi
11439
11440if test "$wxUSE_FS_INET" = "yes"; then
11441 cat >> confdefs.h <<\EOF
11442#define wxUSE_FS_INET 1
11443EOF
11444
11445fi
11446
11447if test "$wxUSE_FS_ZIP" = "yes"; then
11448 cat >> confdefs.h <<\EOF
11449#define wxUSE_FS_ZIP 1
11450EOF
11451
11452fi
11453
11454if test "$wxUSE_ZIPSTREAM" = "yes"; then
11455 cat >> confdefs.h <<\EOF
11456#define wxUSE_ZIPSTREAM 1
11457EOF
11458
11459fi
11460
11461if test "$wxUSE_BUSYINFO" = "yes"; then
11462 cat >> confdefs.h <<\EOF
11463#define wxUSE_BUSYINFO 1
11464EOF
11465
11466fi
11467
11468if test "$wxUSE_STD_IOSTREAM" = "yes"; then
11469 cat >> confdefs.h <<\EOF
11470#define wxUSE_STD_IOSTREAM 1
11471EOF
11472
11473fi
11474
11475if test "$wxUSE_TEXTFILE" = "yes"; then
11476 if test "$wxUSE_FILE" != "yes"; then
11477 echo "configure: warning: wxTextFile requires wxFile and it won't be compiled without it" 1>&2
11478 else
11479 cat >> confdefs.h <<\EOF
11480#define wxUSE_TEXTFILE 1
11481EOF
11482
11483 fi
11484fi
11485
11486if test "$wxUSE_CONFIG" = "yes" ; then
11487 if test "$wxUSE_TEXTFILE" != "yes"; then
11488 echo "configure: warning: wxConfig requires wxTextFile and it won't be compiled without it" 1>&2
11489 else
11490 cat >> confdefs.h <<\EOF
11491#define wxUSE_CONFIG 1
11492EOF
11493
11494 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
11495 fi
11496fi
11497
11498if test "$wxUSE_INTL" = "yes" ; then
11499 if test "$wxUSE_FILE" != "yes"; then
11500 echo "configure: warning: I18n code requires wxFile and it won't be compiled without it" 1>&2
11501 else
11502 cat >> confdefs.h <<\EOF
11503#define wxUSE_INTL 1
11504EOF
11505
11506 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
11507 fi
11508fi
11509
11510if test "$wxUSE_LOG" = "yes"; then
11511 cat >> confdefs.h <<\EOF
11512#define wxUSE_LOG 1
11513EOF
11514
11515fi
11516
11517if test "$wxUSE_LONGLONG" = "yes"; then
11518 cat >> confdefs.h <<\EOF
11519#define wxUSE_LONGLONG 1
11520EOF
11521
11522fi
11523
10f2d63a
VZ
11524if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then
11525 cat >> confdefs.h <<\EOF
11526#define wxUSE_DIALUP_MANAGER 1
11527EOF
11528
70f7a477 11529 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
10f2d63a
VZ
11530fi
11531
11532if test "$wxUSE_STREAMS" = "yes" ; then
11533 cat >> confdefs.h <<\EOF
11534#define wxUSE_STREAMS 1
11535EOF
11536
11537fi
11538
10f2d63a 11539
afc31813 11540if test "$wxUSE_TIMEDATE" = "yes"; then
83307f33
VZ
11541 for ac_func in strptime
11542do
11543echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
dad6c0ea 11544echo "configure:11545: checking for $ac_func" >&5
83307f33
VZ
11545if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11546 echo $ac_n "(cached) $ac_c" 1>&6
11547else
11548 cat > conftest.$ac_ext <<EOF
dad6c0ea 11549#line 11550 "configure"
83307f33
VZ
11550#include "confdefs.h"
11551/* System header to define __stub macros and hopefully few prototypes,
11552 which can conflict with char $ac_func(); below. */
11553#include <assert.h>
11554/* Override any gcc2 internal prototype to avoid an error. */
11555/* We use char because int might match the return type of a gcc2
11556 builtin and then its argument prototype would still apply. */
11557char $ac_func();
11558
11559int main() {
11560
11561/* The GNU C library defines this for functions which it implements
11562 to always fail with ENOSYS. Some functions are actually named
11563 something starting with __ and the normal name is an alias. */
11564#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11565choke me
11566#else
caa2c79b 11567$ac_func();
83307f33
VZ
11568#endif
11569
11570; return 0; }
11571EOF
dad6c0ea 11572if { (eval echo configure:11573: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
83307f33
VZ
11573 rm -rf conftest*
11574 eval "ac_cv_func_$ac_func=yes"
11575else
11576 echo "configure: failed program was:" >&5
11577 cat conftest.$ac_ext >&5
11578 rm -rf conftest*
11579 eval "ac_cv_func_$ac_func=no"
11580fi
11581rm -f conftest*
11582fi
11583
11584if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11585 echo "$ac_t""yes" 1>&6
11586 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11587 cat >> confdefs.h <<EOF
11588#define $ac_tr_func 1
11589EOF
11590
11591else
11592 echo "$ac_t""no" 1>&6
11593fi
11594done
11595
11596
360d6699 11597 echo $ac_n "checking for timezone variable in <time.h>""... $ac_c" 1>&6
dad6c0ea 11598echo "configure:11599: checking for timezone variable in <time.h>" >&5
360d6699
VZ
11599if eval "test \"`echo '$''{'wx_cv_var_timezone'+set}'`\" = set"; then
11600 echo $ac_n "(cached) $ac_c" 1>&6
11601else
11602
11603 cat > conftest.$ac_ext <<EOF
dad6c0ea 11604#line 11605 "configure"
360d6699
VZ
11605#include "confdefs.h"
11606
11607 #include <time.h>
11608
11609int main() {
11610
11611 int tz;
11612 tz = __timezone;
11613
11614; return 0; }
11615EOF
dad6c0ea 11616if { (eval echo configure:11617: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
360d6699
VZ
11617 rm -rf conftest*
11618
11619 wx_cv_var_timezone=__timezone
11620
11621else
11622 echo "configure: failed program was:" >&5
11623 cat conftest.$ac_ext >&5
11624 rm -rf conftest*
11625
11626 cat > conftest.$ac_ext <<EOF
dad6c0ea 11627#line 11628 "configure"
360d6699
VZ
11628#include "confdefs.h"
11629
11630 #include <time.h>
11631
11632int main() {
11633
11634 int tz;
11635 tz = _timezone;
11636
11637; return 0; }
11638EOF
dad6c0ea 11639if { (eval echo configure:11640: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
360d6699
VZ
11640 rm -rf conftest*
11641
11642 wx_cv_var_timezone=_timezone
11643
5357c8e8
VZ
11644else
11645 echo "configure: failed program was:" >&5
11646 cat conftest.$ac_ext >&5
11647 rm -rf conftest*
11648
11649 cat > conftest.$ac_ext <<EOF
dad6c0ea 11650#line 11651 "configure"
5357c8e8
VZ
11651#include "confdefs.h"
11652
11653 #include <time.h>
11654
11655int main() {
11656
11657 int tz;
11658 tz = timezone;
11659
11660; return 0; }
11661EOF
dad6c0ea 11662if { (eval echo configure:11663: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5357c8e8
VZ
11663 rm -rf conftest*
11664
11665 wx_cv_var_timezone=timezone
11666
360d6699
VZ
11667else
11668 echo "configure: failed program was:" >&5
11669 cat conftest.$ac_ext >&5
11670 rm -rf conftest*
11671 { echo "configure: error: no timezone variable" 1>&2; exit 1; }
5357c8e8
VZ
11672
11673fi
11674rm -f conftest*
11675
360d6699
VZ
11676
11677fi
11678rm -f conftest*
11679
11680
11681fi
11682rm -f conftest*
11683
11684
11685fi
11686
11687echo "$ac_t""$wx_cv_var_timezone" 1>&6
11688
11689 cat >> confdefs.h <<EOF
11690#define WX_TIMEZONE $wx_cv_var_timezone
11691EOF
11692
11693
0470b1e6 11694 for ac_func in localtime gettimeofday ftime
afc31813
VZ
11695do
11696echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
dad6c0ea 11697echo "configure:11698: checking for $ac_func" >&5
afc31813
VZ
11698if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11699 echo $ac_n "(cached) $ac_c" 1>&6
11700else
11701 cat > conftest.$ac_ext <<EOF
dad6c0ea 11702#line 11703 "configure"
10f2d63a 11703#include "confdefs.h"
afc31813
VZ
11704/* System header to define __stub macros and hopefully few prototypes,
11705 which can conflict with char $ac_func(); below. */
11706#include <assert.h>
11707/* Override any gcc2 internal prototype to avoid an error. */
11708/* We use char because int might match the return type of a gcc2
11709 builtin and then its argument prototype would still apply. */
11710char $ac_func();
11711
10f2d63a 11712int main() {
afc31813
VZ
11713
11714/* The GNU C library defines this for functions which it implements
11715 to always fail with ENOSYS. Some functions are actually named
11716 something starting with __ and the normal name is an alias. */
11717#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11718choke me
11719#else
caa2c79b 11720$ac_func();
afc31813
VZ
11721#endif
11722
10f2d63a
VZ
11723; return 0; }
11724EOF
dad6c0ea 11725if { (eval echo configure:11726: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a 11726 rm -rf conftest*
afc31813 11727 eval "ac_cv_func_$ac_func=yes"
10f2d63a
VZ
11728else
11729 echo "configure: failed program was:" >&5
11730 cat conftest.$ac_ext >&5
11731 rm -rf conftest*
afc31813
VZ
11732 eval "ac_cv_func_$ac_func=no"
11733fi
11734rm -f conftest*
11735fi
11736
11737if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11738 echo "$ac_t""yes" 1>&6
11739 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11740 cat >> confdefs.h <<EOF
11741#define $ac_tr_func 1
11742EOF
0470b1e6 11743 break
afc31813
VZ
11744else
11745 echo "$ac_t""no" 1>&6
11746fi
11747done
11748
11749
0470b1e6
VZ
11750 if test "$ac_cv_func_localtime" = "yes"; then
11751 echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6
dad6c0ea 11752echo "configure:11753: checking for tm_gmtoff in struct tm" >&5
0470b1e6
VZ
11753if eval "test \"`echo '$''{'wx_cv_struct_tm_has_gmtoff'+set}'`\" = set"; then
11754 echo $ac_n "(cached) $ac_c" 1>&6
11755else
11756
11757 cat > conftest.$ac_ext <<EOF
dad6c0ea 11758#line 11759 "configure"
0470b1e6
VZ
11759#include "confdefs.h"
11760
11761 #include <time.h>
11762
11763int main() {
11764
11765 struct tm tm;
11766 tm.tm_gmtoff++;
11767
11768; return 0; }
11769EOF
dad6c0ea 11770if { (eval echo configure:11771: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
0470b1e6
VZ
11771 rm -rf conftest*
11772
f03a98d8 11773 wx_cv_struct_tm_has_gmtoff=yes
0470b1e6
VZ
11774 cat >> confdefs.h <<\EOF
11775#define WX_GMTOFF_IN_TM 1
11776EOF
11777
11778
11779else
11780 echo "configure: failed program was:" >&5
11781 cat conftest.$ac_ext >&5
11782 rm -rf conftest*
11783 wx_cv_struct_tm_has_gmtoff=no
11784
11785fi
11786rm -f conftest*
11787
11788fi
11789
11790echo "$ac_t""$wx_cv_struct_tm_has_gmtoff" 1>&6
11791 elif test "$ac_cv_func_gettimeofday" = "yes"; then
afc31813 11792 echo $ac_n "checking whether gettimeofday takes two arguments""... $ac_c" 1>&6
dad6c0ea 11793echo "configure:11794: checking whether gettimeofday takes two arguments" >&5
afc31813
VZ
11794if eval "test \"`echo '$''{'wx_cv_func_gettimeofday_has_2_args'+set}'`\" = set"; then
11795 echo $ac_n "(cached) $ac_c" 1>&6
11796else
11797
11798
11799 ac_ext=C
11800# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11801ac_cpp='$CXXCPP $CPPFLAGS'
11802ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11803ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11804cross_compiling=$ac_cv_prog_cxx_cross
11805
11806
11807 cat > conftest.$ac_ext <<EOF
dad6c0ea 11808#line 11809 "configure"
10f2d63a 11809#include "confdefs.h"
afc31813
VZ
11810
11811 #include <sys/time.h>
11812 #include <unistd.h>
11813
10f2d63a 11814int main() {
afc31813
VZ
11815
11816 struct timeval tv;
11817 struct timezone tz;
11818 gettimeofday(&tv, &tz);
11819
10f2d63a
VZ
11820; return 0; }
11821EOF
dad6c0ea 11822if { (eval echo configure:11823: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10f2d63a 11823 rm -rf conftest*
afc31813 11824 wx_cv_func_gettimeofday_has_2_args=yes
10f2d63a
VZ
11825else
11826 echo "configure: failed program was:" >&5
11827 cat conftest.$ac_ext >&5
11828 rm -rf conftest*
11829 cat > conftest.$ac_ext <<EOF
dad6c0ea 11830#line 11831 "configure"
10f2d63a 11831#include "confdefs.h"
afc31813
VZ
11832
11833 #include <sys/time.h>
11834 #include <unistd.h>
11835
10f2d63a 11836int main() {
afc31813
VZ
11837
11838 struct timeval tv;
11839 gettimeofday(&tv);
11840
10f2d63a
VZ
11841; return 0; }
11842EOF
dad6c0ea 11843if { (eval echo configure:11844: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10f2d63a 11844 rm -rf conftest*
afc31813 11845 wx_cv_func_gettimeofday_has_2_args=no
10f2d63a
VZ
11846else
11847 echo "configure: failed program was:" >&5
11848 cat conftest.$ac_ext >&5
11849 rm -rf conftest*
afc31813
VZ
11850 wx_cv_func_gettimeofday_has_2_args=unknown
11851
10f2d63a
VZ
11852fi
11853rm -f conftest*
afc31813 11854
10f2d63a
VZ
11855fi
11856rm -f conftest*
afc31813 11857 ac_ext=c
10f2d63a
VZ
11858# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11859ac_cpp='$CPP $CPPFLAGS'
11860ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11861ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11862cross_compiling=$ac_cv_prog_cc_cross
11863
afc31813
VZ
11864
11865fi
11866
11867echo "$ac_t""$wx_cv_func_gettimeofday_has_2_args" 1>&6
c63c7106 11868
afc31813
VZ
11869 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
11870 cat >> confdefs.h <<\EOF
11871#define WX_GETTIMEOFDAY_NO_TZ 1
11872EOF
11873
11874 fi
11875 fi
11876
11877 cat >> confdefs.h <<\EOF
11878#define wxUSE_TIMEDATE 1
11879EOF
11880
11881 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
11882fi
11883
11884
11885if test "$wxUSE_SOCKETS" = "yes"; then
c63c7106 11886 echo $ac_n "checking for socket""... $ac_c" 1>&6
dad6c0ea 11887echo "configure:11888: checking for socket" >&5
c63c7106
VZ
11888if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
11889 echo $ac_n "(cached) $ac_c" 1>&6
11890else
11891 cat > conftest.$ac_ext <<EOF
dad6c0ea 11892#line 11893 "configure"
c63c7106
VZ
11893#include "confdefs.h"
11894/* System header to define __stub macros and hopefully few prototypes,
11895 which can conflict with char socket(); below. */
11896#include <assert.h>
11897/* Override any gcc2 internal prototype to avoid an error. */
11898/* We use char because int might match the return type of a gcc2
11899 builtin and then its argument prototype would still apply. */
11900char socket();
11901
11902int main() {
11903
11904/* The GNU C library defines this for functions which it implements
11905 to always fail with ENOSYS. Some functions are actually named
11906 something starting with __ and the normal name is an alias. */
11907#if defined (__stub_socket) || defined (__stub___socket)
11908choke me
11909#else
caa2c79b 11910socket();
c63c7106
VZ
11911#endif
11912
11913; return 0; }
11914EOF
dad6c0ea 11915if { (eval echo configure:11916: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
c63c7106
VZ
11916 rm -rf conftest*
11917 eval "ac_cv_func_socket=yes"
11918else
11919 echo "configure: failed program was:" >&5
11920 cat conftest.$ac_ext >&5
11921 rm -rf conftest*
11922 eval "ac_cv_func_socket=no"
11923fi
11924rm -f conftest*
11925fi
11926
11927if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
11928 echo "$ac_t""yes" 1>&6
11929 :
11930else
11931 echo "$ac_t""no" 1>&6
11932echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
dad6c0ea 11933echo "configure:11934: checking for socket in -lsocket" >&5
c63c7106
VZ
11934ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
11935if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11936 echo $ac_n "(cached) $ac_c" 1>&6
11937else
11938 ac_save_LIBS="$LIBS"
11939LIBS="-lsocket $LIBS"
11940cat > conftest.$ac_ext <<EOF
dad6c0ea 11941#line 11942 "configure"
c63c7106
VZ
11942#include "confdefs.h"
11943/* Override any gcc2 internal prototype to avoid an error. */
11944/* We use char because int might match the return type of a gcc2
11945 builtin and then its argument prototype would still apply. */
11946char socket();
11947
11948int main() {
11949socket()
11950; return 0; }
11951EOF
dad6c0ea 11952if { (eval echo configure:11953: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
c63c7106
VZ
11953 rm -rf conftest*
11954 eval "ac_cv_lib_$ac_lib_var=yes"
11955else
11956 echo "configure: failed program was:" >&5
11957 cat conftest.$ac_ext >&5
11958 rm -rf conftest*
11959 eval "ac_cv_lib_$ac_lib_var=no"
11960fi
11961rm -f conftest*
11962LIBS="$ac_save_LIBS"
11963
11964fi
11965if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11966 echo "$ac_t""yes" 1>&6
11967 INET_LINK="$INET_LINK -lsocket"
c63c7106
VZ
11968else
11969 echo "$ac_t""no" 1>&6
afc31813
VZ
11970
11971 echo "configure: warning: socket library not found - sockets will be disabled" 1>&2
11972 wxUSE_SOCKETS=no
11973
11974
c63c7106
VZ
11975fi
11976
11977
11978fi
11979
10f2d63a
VZ
11980fi
11981
afc31813
VZ
11982if test "$wxUSE_SOCKETS" = "yes" ; then
11983
11984 ac_ext=C
11985# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11986ac_cpp='$CXXCPP $CPPFLAGS'
11987ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11988ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11989cross_compiling=$ac_cv_prog_cxx_cross
11990
11991 echo $ac_n "checking the type of the third argument of getsockname""... $ac_c" 1>&6
dad6c0ea 11992echo "configure:11993: checking the type of the third argument of getsockname" >&5
afc31813 11993 cat > conftest.$ac_ext <<EOF
dad6c0ea 11994#line 11995 "configure"
afc31813
VZ
11995#include "confdefs.h"
11996#include <sys/socket.h>
11997int main() {
11998socklen_t len; getsockname(0, 0, &len);
11999; return 0; }
12000EOF
dad6c0ea 12001if { (eval echo configure:12002: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
afc31813
VZ
12002 rm -rf conftest*
12003 cat >> confdefs.h <<\EOF
12004#define SOCKLEN_T socklen_t
12005EOF
12006 echo "$ac_t""socklen_t" 1>&6
12007else
12008 echo "configure: failed program was:" >&5
12009 cat conftest.$ac_ext >&5
12010 rm -rf conftest*
12011 cat > conftest.$ac_ext <<EOF
dad6c0ea 12012#line 12013 "configure"
afc31813
VZ
12013#include "confdefs.h"
12014#include <sys/socket.h>
12015int main() {
12016size_t len; getsockname(0, 0, &len);
12017; return 0; }
12018EOF
dad6c0ea 12019if { (eval echo configure:12020: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
afc31813
VZ
12020 rm -rf conftest*
12021 cat >> confdefs.h <<\EOF
12022#define SOCKLEN_T size_t
12023EOF
12024 echo "$ac_t""size_t" 1>&6
12025else
12026 echo "configure: failed program was:" >&5
12027 cat conftest.$ac_ext >&5
12028 rm -rf conftest*
12029 cat > conftest.$ac_ext <<EOF
dad6c0ea 12030#line 12031 "configure"
afc31813
VZ
12031#include "confdefs.h"
12032#include <sys/socket.h>
12033int main() {
12034int len; getsockname(0, 0, &len);
12035; return 0; }
12036EOF
dad6c0ea 12037if { (eval echo configure:12038: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
afc31813
VZ
12038 rm -rf conftest*
12039 cat >> confdefs.h <<\EOF
12040#define SOCKLEN_T int
12041EOF
12042 echo "$ac_t""int" 1>&6
12043else
12044 echo "configure: failed program was:" >&5
12045 cat conftest.$ac_ext >&5
12046 rm -rf conftest*
12047 echo "$ac_t""unknown" 1>&6
12048
12049fi
12050rm -f conftest*
12051
12052fi
12053rm -f conftest*
12054
12055fi
12056rm -f conftest*
12057 ac_ext=c
12058# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12059ac_cpp='$CPP $CPPFLAGS'
12060ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12061ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12062cross_compiling=$ac_cv_prog_cc_cross
12063
12064
12065 cat >> confdefs.h <<\EOF
12066#define wxUSE_SOCKETS 1
12067EOF
12068
70f7a477 12069 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
afc31813
VZ
12070 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS protocol"
12071fi
12072
10f2d63a
VZ
12073
12074if test "$wxUSE_JOYSTICK" = 1; then
12075 for ac_hdr in linux/joystick.h
12076do
12077ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12078echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
dad6c0ea 12079echo "configure:12080: checking for $ac_hdr" >&5
10f2d63a
VZ
12080if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12081 echo $ac_n "(cached) $ac_c" 1>&6
12082else
12083 cat > conftest.$ac_ext <<EOF
dad6c0ea 12084#line 12085 "configure"
10f2d63a
VZ
12085#include "confdefs.h"
12086#include <$ac_hdr>
12087EOF
12088ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
dad6c0ea 12089{ (eval echo configure:12090: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
12090ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12091if test -z "$ac_err"; then
12092 rm -rf conftest*
12093 eval "ac_cv_header_$ac_safe=yes"
12094else
12095 echo "$ac_err" >&5
12096 echo "configure: failed program was:" >&5
12097 cat conftest.$ac_ext >&5
12098 rm -rf conftest*
12099 eval "ac_cv_header_$ac_safe=no"
12100fi
12101rm -f conftest*
12102fi
12103if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12104 echo "$ac_t""yes" 1>&6
12105 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12106 cat >> confdefs.h <<EOF
12107#define $ac_tr_hdr 1
12108EOF
12109
12110else
12111 echo "$ac_t""no" 1>&6
12112fi
12113done
12114
12115 if test "$ac_cv_header_linux_joystick_h" = "yes"; then
12116 cat >> confdefs.h <<\EOF
12117#define wxUSE_JOYSTICK 1
12118EOF
12119
12120 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
12121 fi
12122fi
12123
12124
12125HAVE_DL_FUNCS=0
12126HAVE_SHL_FUNCS=0
12127if test "$wxUSE_DYNLIB_CLASS" = "yes"; then
12128 for ac_func in dlopen
12129do
12130echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
dad6c0ea 12131echo "configure:12132: checking for $ac_func" >&5
10f2d63a
VZ
12132if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12133 echo $ac_n "(cached) $ac_c" 1>&6
12134else
12135 cat > conftest.$ac_ext <<EOF
dad6c0ea 12136#line 12137 "configure"
10f2d63a
VZ
12137#include "confdefs.h"
12138/* System header to define __stub macros and hopefully few prototypes,
12139 which can conflict with char $ac_func(); below. */
12140#include <assert.h>
12141/* Override any gcc2 internal prototype to avoid an error. */
12142/* We use char because int might match the return type of a gcc2
12143 builtin and then its argument prototype would still apply. */
12144char $ac_func();
12145
12146int main() {
12147
12148/* The GNU C library defines this for functions which it implements
12149 to always fail with ENOSYS. Some functions are actually named
12150 something starting with __ and the normal name is an alias. */
12151#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12152choke me
12153#else
caa2c79b 12154$ac_func();
10f2d63a
VZ
12155#endif
12156
12157; return 0; }
12158EOF
dad6c0ea 12159if { (eval echo configure:12160: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
12160 rm -rf conftest*
12161 eval "ac_cv_func_$ac_func=yes"
12162else
12163 echo "configure: failed program was:" >&5
12164 cat conftest.$ac_ext >&5
12165 rm -rf conftest*
12166 eval "ac_cv_func_$ac_func=no"
12167fi
12168rm -f conftest*
12169fi
12170
12171if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12172 echo "$ac_t""yes" 1>&6
12173 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12174 cat >> confdefs.h <<EOF
12175#define $ac_tr_func 1
12176EOF
12177
12178 cat >> confdefs.h <<\EOF
12179#define HAVE_DLOPEN 1
12180EOF
12181
12182 HAVE_DL_FUNCS=1
12183
12184else
12185 echo "$ac_t""no" 1>&6
12186echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
dad6c0ea 12187echo "configure:12188: checking for dlopen in -ldl" >&5
10f2d63a
VZ
12188ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
12189if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12190 echo $ac_n "(cached) $ac_c" 1>&6
12191else
12192 ac_save_LIBS="$LIBS"
12193LIBS="-ldl $LIBS"
12194cat > conftest.$ac_ext <<EOF
dad6c0ea 12195#line 12196 "configure"
10f2d63a
VZ
12196#include "confdefs.h"
12197/* Override any gcc2 internal prototype to avoid an error. */
12198/* We use char because int might match the return type of a gcc2
12199 builtin and then its argument prototype would still apply. */
12200char dlopen();
12201
12202int main() {
12203dlopen()
12204; return 0; }
12205EOF
dad6c0ea 12206if { (eval echo configure:12207: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
12207 rm -rf conftest*
12208 eval "ac_cv_lib_$ac_lib_var=yes"
12209else
12210 echo "configure: failed program was:" >&5
12211 cat conftest.$ac_ext >&5
12212 rm -rf conftest*
12213 eval "ac_cv_lib_$ac_lib_var=no"
12214fi
12215rm -f conftest*
12216LIBS="$ac_save_LIBS"
12217
12218fi
12219if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12220 echo "$ac_t""yes" 1>&6
12221
12222 cat >> confdefs.h <<\EOF
12223#define HAVE_DLOPEN 1
12224EOF
12225
12226 HAVE_DL_FUNCS=1
12227 LIBS="$LIBS -ldl"
12228
12229else
12230 echo "$ac_t""no" 1>&6
12231
12232 for ac_func in shl_load
12233do
12234echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
dad6c0ea 12235echo "configure:12236: checking for $ac_func" >&5
10f2d63a
VZ
12236if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12237 echo $ac_n "(cached) $ac_c" 1>&6
12238else
12239 cat > conftest.$ac_ext <<EOF
dad6c0ea 12240#line 12241 "configure"
10f2d63a
VZ
12241#include "confdefs.h"
12242/* System header to define __stub macros and hopefully few prototypes,
12243 which can conflict with char $ac_func(); below. */
12244#include <assert.h>
12245/* Override any gcc2 internal prototype to avoid an error. */
12246/* We use char because int might match the return type of a gcc2
12247 builtin and then its argument prototype would still apply. */
12248char $ac_func();
12249
12250int main() {
12251
12252/* The GNU C library defines this for functions which it implements
12253 to always fail with ENOSYS. Some functions are actually named
12254 something starting with __ and the normal name is an alias. */
12255#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12256choke me
12257#else
caa2c79b 12258$ac_func();
10f2d63a
VZ
12259#endif
12260
12261; return 0; }
12262EOF
dad6c0ea 12263if { (eval echo configure:12264: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
12264 rm -rf conftest*
12265 eval "ac_cv_func_$ac_func=yes"
12266else
12267 echo "configure: failed program was:" >&5
12268 cat conftest.$ac_ext >&5
12269 rm -rf conftest*
12270 eval "ac_cv_func_$ac_func=no"
12271fi
12272rm -f conftest*
12273fi
12274
12275if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12276 echo "$ac_t""yes" 1>&6
12277 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12278 cat >> confdefs.h <<EOF
12279#define $ac_tr_func 1
12280EOF
12281
12282 cat >> confdefs.h <<\EOF
12283#define HAVE_SHL_LOAD 1
12284EOF
12285
12286 HAVE_SHL_FUNCS=1
12287
12288else
12289 echo "$ac_t""no" 1>&6
12290fi
12291done
12292
12293
12294fi
12295
12296
12297fi
12298done
12299
12300
12301 if test "$HAVE_DL_FUNCS" = 0; then
12302 if test "$HAVE_SHL_FUNCS" = 0; then
12303 if test "$USE_UNIX" = 1; then
b12915c1 12304 echo "configure: warning: Missing dynamic loading support, several features will be disabled" 1>&2
10f2d63a
VZ
12305 wxUSE_DYNLIB_CLASS=no
12306 else
b12915c1 12307 echo "configure: warning: Assuming wxLibrary class works on this platform" 1>&2
10f2d63a
VZ
12308 fi
12309 fi
12310 fi
12311fi
12312
12313if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
b12915c1 12314 cat >> confdefs.h <<\EOF
10f2d63a
VZ
12315#define wxUSE_DYNLIB_CLASS 1
12316EOF
12317
b12915c1
VZ
12318else
12319 wxUSE_ODBC=no
12320 wxUSE_SERIAL=no
10f2d63a
VZ
12321fi
12322
12323
12324if test "$wxUSE_UNICODE" = "yes" ; then
12325 cat >> confdefs.h <<\EOF
12326#define wxUSE_UNICODE 1
12327EOF
12328
12329fi
12330
12331if test "$wxUSE_WCSRTOMBS" = "yes" ; then
12332 cat >> confdefs.h <<\EOF
12333#define wxUSE_WCSRTOMBS 1
12334EOF
12335
12336fi
12337
12338if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
12339 cat >> confdefs.h <<\EOF
12340#define wxUSE_EXPERIMENTAL_PRINTF 1
12341EOF
12342
12343fi
12344
12345
b12915c1
VZ
12346if test "$wxUSE_SERIAL" = "yes" ; then
12347 cat >> confdefs.h <<\EOF
12348#define wxUSE_SERIAL 1
12349EOF
12350
12351fi
12352
12353
10f2d63a
VZ
12354IODBC_C_SRC=""
12355if test "$wxUSE_ODBC" = "yes" ; then
12356 cat >> confdefs.h <<\EOF
12357#define wxUSE_ODBC 1
12358EOF
12359
12360 WXODBCFLAG="-D_IODBC_"
12361 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
12362 IODBCOBJS="\$(IODBC_OBJS)"
12363else
12364 IODBCOBJS=
12365fi
12366
12367
12368if test "$wxUSE_POSTSCRIPT" = "yes" ; then
12369 cat >> confdefs.h <<\EOF
12370#define wxUSE_POSTSCRIPT 1
12371EOF
12372
12373fi
12374
12375cat >> confdefs.h <<\EOF
12376#define wxUSE_AFM_FOR_POSTSCRIPT 1
12377EOF
12378
12379
12380cat >> confdefs.h <<\EOF
12381#define wxUSE_NORMALIZED_PS_FONTS 1
12382EOF
12383
12384
12385
12386if test "$wxUSE_CONSTRAINTS" = "yes"; then
12387 cat >> confdefs.h <<\EOF
12388#define wxUSE_CONSTRAINTS 1
12389EOF
12390
12391 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
12392fi
12393
12394if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
12395 cat >> confdefs.h <<\EOF
12396#define wxUSE_MDI_ARCHITECTURE 1
12397EOF
12398
12399 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
12400fi
12401
12402if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
12403 cat >> confdefs.h <<\EOF
12404#define wxUSE_DOC_VIEW_ARCHITECTURE 1
12405EOF
12406
12407 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
12408 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
12409 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
12410 fi
12411fi
12412
12413if test "$wxUSE_HELP" = "yes"; then
12414 cat >> confdefs.h <<\EOF
12415#define wxUSE_HELP 1
12416EOF
12417
12418 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
12419fi
12420
12421if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
12422 if test "$wxUSE_CONSTRAINTS" != "yes"; then
12423 echo "configure: warning: Printing support cannot be used without constraints so it won't be compiled without it" 1>&2
12424 else
12425 cat >> confdefs.h <<\EOF
12426#define wxUSE_PRINTING_ARCHITECTURE 1
12427EOF
12428
12429 fi
12430 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
12431fi
12432
12433if test "$wxUSE_PROLOGIO" = "yes" ; then
12434 cat >> confdefs.h <<\EOF
12435#define wxUSE_PROLOGIO 1
12436EOF
12437
12438fi
12439
12440if test "$wxUSE_RESOURCES" = "yes" ; then
12441 if test "$wxUSE_PROLOGIO" = "yes" ; then
12442 cat >> confdefs.h <<\EOF
12443#define wxUSE_RESOURCES 1
12444EOF
12445
12446 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS resource"
12447 else
12448 echo "configure: warning: wxWindows ressource system requires PrologIO and can't be compiled without it." 1>&2
12449 fi
12450fi
12451
12452if test "$wxUSE_X_RESOURCES" = "yes"; then
12453 cat >> confdefs.h <<\EOF
12454#define wxUSE_X_RESOURCES 1
12455EOF
12456
12457fi
12458
12459
12460if test "$wxUSE_IPC" = "yes"; then
12461 cat >> confdefs.h <<\EOF
12462#define wxUSE_IPC 1
12463EOF
12464
12465fi
12466
12467if test "$wxUSE_CLIPBOARD" = "yes"; then
12468 cat >> confdefs.h <<\EOF
12469#define wxUSE_CLIPBOARD 1
12470EOF
12471
12472fi
12473
12474if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
12475 if test "$wxUSE_GTK" = 1; then
12476 if test "$WXGTK12" != 1; then
12477 echo "configure: warning: Drag and drop is only supported under GTK+ 1.2" 1>&2
12478 wxUSE_DRAG_AND_DROP=no
12479 fi
12480 fi
12481
12482 if test "$wxUSE_MOTIF" = 1; then
12483 echo "configure: warning: Drag and drop is not yet supported under Motif" 1>&2
12484 wxUSE_DRAG_AND_DROP=no
12485 fi
12486
12487 if test "$USE_WIN32" = 1; then
12488 for ac_hdr in ole2.h
12489do
12490ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12491echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
dad6c0ea 12492echo "configure:12493: checking for $ac_hdr" >&5
10f2d63a
VZ
12493if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12494 echo $ac_n "(cached) $ac_c" 1>&6
12495else
12496 cat > conftest.$ac_ext <<EOF
dad6c0ea 12497#line 12498 "configure"
10f2d63a
VZ
12498#include "confdefs.h"
12499#include <$ac_hdr>
12500EOF
12501ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
dad6c0ea 12502{ (eval echo configure:12503: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
12503ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12504if test -z "$ac_err"; then
12505 rm -rf conftest*
12506 eval "ac_cv_header_$ac_safe=yes"
12507else
12508 echo "$ac_err" >&5
12509 echo "configure: failed program was:" >&5
12510 cat conftest.$ac_ext >&5
12511 rm -rf conftest*
12512 eval "ac_cv_header_$ac_safe=no"
12513fi
12514rm -f conftest*
12515fi
12516if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12517 echo "$ac_t""yes" 1>&6
12518 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12519 cat >> confdefs.h <<EOF
12520#define $ac_tr_hdr 1
12521EOF
12522
12523else
12524 echo "$ac_t""no" 1>&6
12525fi
12526done
12527
12528 if test "x$HAVE_OLE2_H" = x ; then
12529 echo "configure: warning: Drag and drop disabled because OLE headers not found" 1>&2
12530 wxUSE_DRAG_AND_DROP=no
12531 fi
12532 fi
12533
12534 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
12535 cat >> confdefs.h <<\EOF
12536#define wxUSE_DRAG_AND_DROP 1
12537EOF
12538
12539 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
12540 fi
12541
12542fi
12543
12544if test "$wxUSE_SPLINES" = "yes" ; then
12545 cat >> confdefs.h <<\EOF
12546#define wxUSE_SPLINES 1
12547EOF
12548
12549fi
12550
12551
12552if test "$wxUSE_ACCEL" = "yes"; then
12553 cat >> confdefs.h <<\EOF
12554#define wxUSE_ACCEL 1
12555EOF
12556
12557fi
12558
12559if test "$wxUSE_CARET" = "yes"; then
12560 cat >> confdefs.h <<\EOF
12561#define wxUSE_CARET 1
12562EOF
12563
12564 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
12565fi
12566
12567if test "$wxUSE_COMBOBOX" = "yes"; then
12568 cat >> confdefs.h <<\EOF
12569#define wxUSE_COMBOBOX 1
12570EOF
12571
12572fi
12573
12574if test "$wxUSE_CHOICE" = "yes"; then
12575 cat >> confdefs.h <<\EOF
12576#define wxUSE_CHOICE 1
12577EOF
12578
12579fi
12580
12581if test "$wxUSE_BMPBUTTON" = "yes"; then
12582 cat >> confdefs.h <<\EOF
12583#define wxUSE_BMPBUTTON 1
12584EOF
12585
12586fi
12587
12588if test "$wxUSE_CHECKBOX" = "yes"; then
12589 cat >> confdefs.h <<\EOF
12590#define wxUSE_CHECKBOX 1
12591EOF
12592
12593fi
12594
12595if test "$wxUSE_CHECKLST" = "yes"; then
12596 cat >> confdefs.h <<\EOF
12597#define wxUSE_CHECKLISTBOX 1
12598EOF
12599
12600 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
12601fi
12602
12603if test "$wxUSE_GAUGE" = "yes"; then
12604 cat >> confdefs.h <<\EOF
12605#define wxUSE_GAUGE 1
12606EOF
12607
12608fi
12609
12610if test "$wxUSE_GRID" = "yes"; then
12611 cat >> confdefs.h <<\EOF
12612#define wxUSE_GRID 1
12613EOF
12614
12615 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
12616fi
12617
12618if test "$wxUSE_NEW_GRID" = "yes"; then
12619 cat >> confdefs.h <<\EOF
12620#define wxUSE_NEW_GRID 1
12621EOF
12622
12623 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS newgrid"
12624fi
12625
12626if test "$wxUSE_IMAGLIST" = "yes"; then
12627 cat >> confdefs.h <<\EOF
12628#define wxUSE_IMAGLIST 1
12629EOF
12630
12631fi
12632
12633if test "$wxUSE_LISTBOX" = "yes"; then
12634 cat >> confdefs.h <<\EOF
12635#define wxUSE_LISTBOX 1
12636EOF
12637
12638fi
12639
12640if test "$wxUSE_LISTCTRL" = "yes"; then
12641 if test "$wxUSE_IMAGLIST" = "yes"; then
12642 cat >> confdefs.h <<\EOF
12643#define wxUSE_LISTCTRL 1
12644EOF
12645
12646 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
12647 else
12648 echo "configure: warning: wxListCtrl requires wxImageList and won't be compiled without it" 1>&2
12649 fi
12650fi
12651
12652if test "$wxUSE_NOTEBOOK" = "yes"; then
12653 cat >> confdefs.h <<\EOF
12654#define wxUSE_NOTEBOOK 1
12655EOF
12656
12657 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
12658fi
12659
12660if test "$wxUSE_RADIOBOX" = "yes"; then
12661 cat >> confdefs.h <<\EOF
12662#define wxUSE_RADIOBOX 1
12663EOF
12664
12665fi
12666
12667if test "$wxUSE_RADIOBTN" = "yes"; then
12668 cat >> confdefs.h <<\EOF
12669#define wxUSE_RADIOBTN 1
12670EOF
12671
12672fi
12673
12674if test "$wxUSE_SASH" = "yes"; then
12675 cat >> confdefs.h <<\EOF
12676#define wxUSE_SASH 1
12677EOF
12678
12679 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
12680fi
12681
12682if test "$wxUSE_SCROLLBAR" = "yes"; then
12683 cat >> confdefs.h <<\EOF
12684#define wxUSE_SCROLLBAR 1
12685EOF
12686
741a9306 12687 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
10f2d63a
VZ
12688fi
12689
12690if test "$wxUSE_SLIDER" = "yes"; then
12691 cat >> confdefs.h <<\EOF
12692#define wxUSE_SLIDER 1
12693EOF
12694
12695fi
12696
12697if test "$wxUSE_SPINBTN" = "yes"; then
12698 cat >> confdefs.h <<\EOF
12699#define wxUSE_SPINBTN 1
12700EOF
12701
12702fi
12703
56cfaa52
RR
12704if test "$wxUSE_SPINCTRL" = "yes"; then
12705 cat >> confdefs.h <<\EOF
12706#define wxUSE_SPINCTRL 1
12707EOF
12708
12709fi
12710
10f2d63a
VZ
12711if test "$wxUSE_SPLITTER" = "yes"; then
12712 cat >> confdefs.h <<\EOF
12713#define wxUSE_SPLITTER 1
12714EOF
12715
12716 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
12717fi
12718
12719if test "$wxUSE_STATBMP" = "yes"; then
12720 cat >> confdefs.h <<\EOF
12721#define wxUSE_STATBMP 1
12722EOF
12723
12724fi
12725
12726if test "$wxUSE_STATBOX" = "yes"; then
12727 cat >> confdefs.h <<\EOF
12728#define wxUSE_STATBOX 1
12729EOF
12730
12731fi
12732
12733if test "$wxUSE_STATLINE" = "yes"; then
12734 if test "$wxUSE_WINE" = 1 ; then
12735 echo "configure: warning: wxStaticLine is not supported under WINE" 1>&2
12736 else
12737 cat >> confdefs.h <<\EOF
12738#define wxUSE_STATLINE 1
12739EOF
12740
12741 fi
12742fi
12743
12744if test "$wxUSE_STATUSBAR" = "yes"; then
12745 cat >> confdefs.h <<\EOF
12746#define wxUSE_STATUSBAR 1
12747EOF
12748
12749fi
12750
12751if test "$wxUSE_TABDIALOG" = "yes"; then
12752 cat >> confdefs.h <<\EOF
12753#define wxUSE_TAB_DIALOG 1
12754EOF
12755
12756 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab"
12757fi
12758
360d6699
VZ
12759if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
12760 cat >> confdefs.h <<\EOF
12761#define wxUSE_TOOLBAR_SIMPLE 1
12762EOF
12763
12764 wxUSE_TOOLBAR="yes"
12765fi
12766
10f2d63a
VZ
12767if test "$wxUSE_TOOLBAR" = "yes"; then
12768 cat >> confdefs.h <<\EOF
12769#define wxUSE_TOOLBAR 1
12770EOF
12771
360d6699
VZ
12772
12773 if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
12774 wxUSE_TOOLBAR_NATIVE="yes"
12775 fi
12776
10f2d63a
VZ
12777 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
12778fi
12779
360d6699
VZ
12780if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
12781 cat >> confdefs.h <<\EOF
12782#define wxUSE_TOOLBAR_NATIVE 1
12783EOF
12784
12785fi
12786
10f2d63a
VZ
12787if test "$wxUSE_TOOLTIPS" = "yes"; then
12788 if test "$wxUSE_MOTIF" = 1; then
12789 echo "configure: warning: wxTooltip not supported yet under Motif" 1>&2
12790 else
12791 if test "$wxUSE_WINE" = 1; then
12792 echo "configure: warning: wxTooltip not supported under WINE" 1>&2
12793 else
12794 cat >> confdefs.h <<\EOF
12795#define wxUSE_TOOLTIPS 1
12796EOF
12797
12798 fi
12799 fi
12800fi
12801
12802if test "$wxUSE_TREECTRL" = "yes"; then
12803 if test "$wxUSE_IMAGLIST" = "yes"; then
12804 cat >> confdefs.h <<\EOF
12805#define wxUSE_TREECTRL 1
12806EOF
12807
12808 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
12809 else
12810 echo "configure: warning: wxTreeCtrl requires wxImageList and won't be compiled without it" 1>&2
12811 fi
12812fi
12813
12814
12815
12816if test "$wxUSE_METAFILE" = "yes"; then
12817 cat >> confdefs.h <<\EOF
12818#define wxUSE_METAFILE 1
12819EOF
12820
12821fi
12822
12823if test "$wxUSE_DIRDLG" = "yes"; then
12824 if test "$wxUSE_CONSTRAINTS" != "yes"; then
12825 echo "configure: warning: wxDirDialog requires constraints so it won't be compiled without them" 1>&2
12826 else
12827 if test "$wxUSE_TREECTRL" != "yes"; then
12828 echo "configure: warning: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" 1>&2
12829 else
12830 cat >> confdefs.h <<\EOF
12831#define wxUSE_DIRDLG 1
12832EOF
12833
12834 fi
12835 fi
12836fi
12837
12838if test "$wxUSE_TEXTDLG" = "yes"; then
12839 cat >> confdefs.h <<\EOF
12840#define wxUSE_TEXTDLG 1
12841EOF
12842
12843fi
12844
12845if test "$wxUSE_STARTUP_TIPS" = "yes"; then
12846 if test "$wxUSE_CONSTRAINTS" != "yes"; then
12847 echo "configure: warning: Startup tips requires constraints and won't be compiled without them" 1>&2
12848 else
12849 cat >> confdefs.h <<\EOF
12850#define wxUSE_STARTUP_TIPS 1
12851EOF
12852
12853 fi
12854fi
12855
12856if test "$wxUSE_PROGRESSDLG" = "yes"; then
12857 if test "$wxUSE_CONSTRAINTS" != "yes"; then
12858 echo "configure: warning: wxProgressDialog requires constraints so it won't be compiled without them" 1>&2
12859 else
12860 cat >> confdefs.h <<\EOF
12861#define wxUSE_PROGRESSDLG 1
12862EOF
12863
12864 fi
12865fi
12866
12867if test "$wxUSE_MINIFRAME" = "yes"; then
12868 cat >> confdefs.h <<\EOF
12869#define wxUSE_MINIFRAME 1
12870EOF
12871
12872 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
12873fi
12874
12875if test "$wxUSE_HTML" = "yes"; then
12876 cat >> confdefs.h <<\EOF
12877#define wxUSE_HTML 1
12878EOF
12879
12880 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html"
12881 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS html"
12882fi
12883
12884if test "$wxUSE_VALIDATORS" = "yes"; then
12885 cat >> confdefs.h <<\EOF
12886#define wxUSE_VALIDATORS 1
12887EOF
12888
12889 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
12890fi
12891
12892if test "$wxUSE_GIF" = "yes" ; then
12893 cat >> confdefs.h <<\EOF
12894#define wxUSE_GIF 1
12895EOF
12896
12897fi
12898
12899if test "$wxUSE_PCX" = "yes" ; then
12900 cat >> confdefs.h <<\EOF
12901#define wxUSE_PCX 1
12902EOF
12903
12904fi
12905
12906if test "$wxUSE_PNM" = "yes" ; then
12907 cat >> confdefs.h <<\EOF
12908#define wxUSE_PNM 1
12909EOF
12910
12911fi
12912
12913
aaa37c0d
VZ
12914OSINFO=`uname -s -r -m`
12915OSINFO="\"$OSINFO\""
12916cat >> confdefs.h <<EOF
12917#define WXWIN_OS_DESCRIPTION $OSINFO
12918EOF
12919
12920
12921
10f2d63a
VZ
12922GUILIBS="$GUI_TK_LIBRARY $OPENGL_LINK $LIBPNG_LINK $ZLIB_LINK $TOOLKIT_LINK"
12923
c63c7106 12924EXTRA_LIBS="$LIBS $POSIX4_LINK $INET_LINK $WCHAR_LINK $THREADS_LINK $DMALLOC_LINK $DL_LINK"
10f2d63a
VZ
12925if test "$wxUSE_GUI" = "yes"; then
12926 EXTRA_LIBS="$EXTRA_LIBS $GUILIBS"
12927fi
12928
12929LD_LIBS="\${top_builddir}/lib/${WX_LIBRARY_NAME_STATIC} $EXTRA_LIBS"
12930
c7a2bf27 12931INCLUDES="-I. -I\${top_builddir}/include -I\${top_srcdir}/include $ZLIB_INCLUDE $PNG_INCLUDE $JPEG_INCLUDE $TIFF_INCLUDE $TOOLKIT_INCLUDE"
10f2d63a
VZ
12932
12933if test "$GXX" = yes ; then
12934 CXXWARNINGS="-Wall"
12935 fi
12936EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE $INCLUDES"
12937
12938CFLAGS=`echo $CFLAGS $EXTRA_CFLAGS | sed 's/ \\+/ /g'`
12939CXXFLAGS=`echo $CXXFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \+/ /g'`
12940
e694c22c
VZ
12941LDFLAGS="$LDFLAGS $PROFILE"
12942
10f2d63a
VZ
12943if test "$wxUSE_GUI" = "yes"; then
12944
70f7a477
VZ
12945 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS controls dialogs drawing dynamic \
12946 font fractal image minimal richedit"
b12915c1 12947
e2b8b066 12948 CPPFLAGS="$CPPFLAGS \$(EXTRADEFS)"
10f2d63a
VZ
12949else
12950 SAMPLES_SUBDIRS=""
12951fi
12952
12953SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '`"
12954
12955
12956
12957
12958
12959
12960
12961
12962
12963
12964
12965
12966
12967
12968
12969
12970
12971
12972
12973
12974
12975
12976
12977
12978
12979
12980
12981
12982
12983
12984
12985
12986
12987
12988
12989
12990
12991
12992
12993
12994
12995
12996
12997
12998
12999
13000
13001
13002
13003
13004
13005
1d62a8b4 13006
e694c22c 13007
b12915c1 13008
dad6c0ea
VZ
13009
13010
caa2c79b 13011
10f2d63a
VZ
13012
13013
13014echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
dad6c0ea 13015echo "configure:13016: checking whether ${MAKE-make} sets \${MAKE}" >&5
10f2d63a
VZ
13016set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
13017if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
13018 echo $ac_n "(cached) $ac_c" 1>&6
13019else
13020 cat > conftestmake <<\EOF
13021all:
13022 @echo 'ac_maketemp="${MAKE}"'
13023EOF
13024# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
13025eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
13026if test -n "$ac_maketemp"; then
13027 eval ac_cv_prog_make_${ac_make}_set=yes
13028else
13029 eval ac_cv_prog_make_${ac_make}_set=no
13030fi
13031rm -f conftestmake
13032fi
13033if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
13034 echo "$ac_t""yes" 1>&6
13035 SET_MAKE=
13036else
13037 echo "$ac_t""no" 1>&6
13038 SET_MAKE="MAKE=${MAKE-make}"
13039fi
13040
13041
13042
13043
13044if test "${TOOLKIT_DIR}" = "msw" ; then
13045 GL_TOOLKIT_DIR="win"
13046else
13047 GL_TOOLKIT_DIR="${TOOLKIT_DIR}"
13048fi
13049
13050
13051trap '' 1 2 15
13052cat > confcache <<\EOF
13053# This file is a shell script that caches the results of configure
13054# tests run on this system so they can be shared between configure
13055# scripts and configure runs. It is not useful on other systems.
13056# If it contains results you don't want to keep, you may remove or edit it.
13057#
13058# By default, configure uses ./config.cache as the cache file,
13059# creating it if it does not exist already. You can give configure
13060# the --cache-file=FILE option to use a different cache file; that is
13061# what configure does when it calls configure scripts in
13062# subdirectories, so they share the cache.
13063# Giving --cache-file=/dev/null disables caching, for debugging configure.
13064# config.status only pays attention to the cache file if you give it the
13065# --recheck option to rerun configure.
13066#
13067EOF
13068# The following way of writing the cache mishandles newlines in values,
13069# but we know of no workaround that is simple, portable, and efficient.
13070# So, don't put newlines in cache variables' values.
13071# Ultrix sh set writes to stderr and can't be redirected directly,
13072# and sets the high bit in the cache file unless we assign to the vars.
13073(set) 2>&1 |
13074 case `(ac_space=' '; set | grep ac_space) 2>&1` in
13075 *ac_space=\ *)
13076 # `set' does not quote correctly, so add quotes (double-quote substitution
13077 # turns \\\\ into \\, and sed turns \\ into \).
13078 sed -n \
13079 -e "s/'/'\\\\''/g" \
13080 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
13081 ;;
13082 *)
13083 # `set' quotes correctly as required by POSIX, so do not add quotes.
13084 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
13085 ;;
13086 esac >> confcache
13087if cmp -s $cache_file confcache; then
13088 :
13089else
13090 if test -w $cache_file; then
13091 echo "updating cache $cache_file"
13092 cat confcache > $cache_file
13093 else
13094 echo "not updating unwritable cache $cache_file"
13095 fi
13096fi
13097rm -f confcache
13098
13099trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
13100
13101test "x$prefix" = xNONE && prefix=$ac_default_prefix
13102# Let make expand exec_prefix.
13103test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13104
13105# Any assignment to VPATH causes Sun make to only execute
13106# the first set of double-colon rules, so remove it if not needed.
13107# If there is a colon in the path, we need to keep it.
13108if test "x$srcdir" = x.; then
13109 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
13110fi
13111
13112trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
13113
13114DEFS=-DHAVE_CONFIG_H
13115
13116# Without the "./", some shells look in PATH for config.status.
13117: ${CONFIG_STATUS=./config.status}
13118
13119echo creating $CONFIG_STATUS
13120rm -f $CONFIG_STATUS
13121cat > $CONFIG_STATUS <<EOF
13122#! /bin/sh
13123# Generated automatically by configure.
13124# Run this file to recreate the current configuration.
13125# This directory was configured as follows,
13126# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13127#
13128# $0 $ac_configure_args
13129#
13130# Compiler output produced by configure, useful for debugging
13131# configure, is in ./config.log if it exists.
13132
13133ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
13134for ac_option
13135do
13136 case "\$ac_option" in
13137 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13138 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
13139 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
13140 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
caa2c79b 13141 echo "$CONFIG_STATUS generated by autoconf version 2.13"
10f2d63a
VZ
13142 exit 0 ;;
13143 -help | --help | --hel | --he | --h)
13144 echo "\$ac_cs_usage"; exit 0 ;;
13145 *) echo "\$ac_cs_usage"; exit 1 ;;
13146 esac
13147done
13148
13149ac_given_srcdir=$srcdir
13150ac_given_INSTALL="$INSTALL"
13151
13152trap 'rm -fr `echo "
13153 wx-config
13154 src/make.env
13155 src/makeprog.env
13156 src/makelib.env
13157 Makefile
70f7a477
VZ
13158 demos/Makefile
13159 demos/bombs/Makefile
13160 demos/forty/Makefile
13161 demos/fractal/Makefile
13162 demos/life/Makefile
13163 demos/poem/Makefile
10f2d63a 13164 samples/Makefile
10f2d63a 13165 samples/caret/Makefile
1e8d2f69 13166 samples/calendar/Makefile
10f2d63a
VZ
13167 samples/checklst/Makefile
13168 samples/config/Makefile
13169 samples/controls/Makefile
b47c832e 13170 samples/console/Makefile
10f2d63a
VZ
13171 samples/db/Makefile
13172 samples/dialogs/Makefile
13173 samples/docview/Makefile
13174 samples/docvwmdi/Makefile
13175 samples/dnd/Makefile
13176 samples/drawing/Makefile
678b92a9 13177 samples/font/Makefile
1e8d2f69
RR
13178 samples/grid/Makefile
13179 samples/help/Makefile
10f2d63a
VZ
13180 samples/image/Makefile
13181 samples/internat/Makefile
13182 samples/layout/Makefile
13183 samples/listctrl/Makefile
13184 samples/mdi/Makefile
13185 samples/minifram/Makefile
13186 samples/minimal/Makefile
70f7a477 13187 samples/dialup/Makefile
10f2d63a
VZ
13188 samples/newgrid/Makefile
13189 samples/notebook/Makefile
13190 samples/png/Makefile
13191 samples/printing/Makefile
13192 samples/proplist/Makefile
04165bec 13193 samples/propsize/Makefile
10f2d63a
VZ
13194 samples/richedit/Makefile
13195 samples/resource/Makefile
13196 samples/sashtest/Makefile
13197 samples/scroll/Makefile
13198 samples/scrollsub/Makefile
13199 samples/splitter/Makefile
13200 samples/text/Makefile
13201 samples/thread/Makefile
13202 samples/toolbar/Makefile
13203 samples/treectrl/Makefile
13204 samples/typetest/Makefile
13205 samples/validate/Makefile
70f7a477 13206 samples/sockets/Makefile
10f2d63a
VZ
13207 samples/wizard/Makefile
13208 samples/html/Makefile
13209 samples/html/about/Makefile
13210 samples/html/help/Makefile
13211 samples/html/printing/Makefile
fc9c7c09 13212 samples/html/helpview/Makefile
10f2d63a
VZ
13213 samples/html/test/Makefile
13214 samples/html/zip/Makefile
13215 samples/html/virtual/Makefile
13216 samples/html/widget/Makefile
13217 utils/Makefile
13218 utils/wxMMedia2/Makefile
13219 utils/wxMMedia2/lib/Makefile
13220 utils/wxMMedia2/sample/Makefile
13221 utils/glcanvas/Makefile
13222 utils/glcanvas/${GL_TOOLKIT_DIR}/Makefile
13223 utils/ogl/Makefile
13224 utils/ogl/src/Makefile
13225 setup.h:setup.h.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
13226EOF
13227cat >> $CONFIG_STATUS <<EOF
13228
13229# Protect against being on the right side of a sed subst in config.status.
13230sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
13231 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
13232$ac_vpsub
13233$extrasub
13234s%@SHELL@%$SHELL%g
13235s%@CFLAGS@%$CFLAGS%g
13236s%@CPPFLAGS@%$CPPFLAGS%g
13237s%@CXXFLAGS@%$CXXFLAGS%g
13238s%@FFLAGS@%$FFLAGS%g
13239s%@DEFS@%$DEFS%g
13240s%@LDFLAGS@%$LDFLAGS%g
13241s%@LIBS@%$LIBS%g
13242s%@exec_prefix@%$exec_prefix%g
13243s%@prefix@%$prefix%g
13244s%@program_transform_name@%$program_transform_name%g
13245s%@bindir@%$bindir%g
13246s%@sbindir@%$sbindir%g
13247s%@libexecdir@%$libexecdir%g
13248s%@datadir@%$datadir%g
13249s%@sysconfdir@%$sysconfdir%g
13250s%@sharedstatedir@%$sharedstatedir%g
13251s%@localstatedir@%$localstatedir%g
13252s%@libdir@%$libdir%g
13253s%@includedir@%$includedir%g
13254s%@oldincludedir@%$oldincludedir%g
13255s%@infodir@%$infodir%g
13256s%@mandir@%$mandir%g
13257s%@host@%$host%g
13258s%@host_alias@%$host_alias%g
13259s%@host_cpu@%$host_cpu%g
13260s%@host_vendor@%$host_vendor%g
13261s%@host_os@%$host_os%g
13262s%@target@%$target%g
13263s%@target_alias@%$target_alias%g
13264s%@target_cpu@%$target_cpu%g
13265s%@target_vendor@%$target_vendor%g
13266s%@target_os@%$target_os%g
13267s%@build@%$build%g
13268s%@build_alias@%$build_alias%g
13269s%@build_cpu@%$build_cpu%g
13270s%@build_vendor@%$build_vendor%g
13271s%@build_os@%$build_os%g
13272s%@CC@%$CC%g
13273s%@CPP@%$CPP%g
13274s%@CXX@%$CXX%g
13275s%@CXXCPP@%$CXXCPP%g
13276s%@RANLIB@%$RANLIB%g
13277s%@AR@%$AR%g
13278s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
13279s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
13280s%@INSTALL_DATA@%$INSTALL_DATA%g
13281s%@STRIP@%$STRIP%g
13282s%@YACC@%$YACC%g
13283s%@LEX@%$LEX%g
13284s%@LEXLIB@%$LEXLIB%g
13285s%@LN_S@%$LN_S%g
13286s%@GTK_CONFIG@%$GTK_CONFIG%g
13287s%@GTK_CFLAGS@%$GTK_CFLAGS%g
13288s%@GTK_LIBS@%$GTK_LIBS%g
ab9b9eab
VZ
13289s%@X_CFLAGS@%$X_CFLAGS%g
13290s%@X_PRE_LIBS@%$X_PRE_LIBS%g
13291s%@X_LIBS@%$X_LIBS%g
13292s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
10f2d63a
VZ
13293s%@WX_MAJOR_VERSION_NUMBER@%$WX_MAJOR_VERSION_NUMBER%g
13294s%@WX_MINOR_VERSION_NUMBER@%$WX_MINOR_VERSION_NUMBER%g
13295s%@WX_RELEASE_NUMBER@%$WX_RELEASE_NUMBER%g
13296s%@WX_LIBRARY_NAME@%$WX_LIBRARY_NAME%g
13297s%@WX_LIBRARY_NAME_STATIC@%$WX_LIBRARY_NAME_STATIC%g
13298s%@WX_LIBRARY_NAME_SHARED@%$WX_LIBRARY_NAME_SHARED%g
13299s%@WX_LIBRARY@%$WX_LIBRARY%g
13300s%@WX_TARGET_LIBRARY@%$WX_TARGET_LIBRARY%g
13301s%@WX_LIBRARY_LINK1@%$WX_LIBRARY_LINK1%g
13302s%@WX_LIBRARY_LINK2@%$WX_LIBRARY_LINK2%g
13303s%@WX_LIBRARY_LINK3@%$WX_LIBRARY_LINK3%g
13304s%@PROGRAM_EXT@%$PROGRAM_EXT%g
13305s%@WX_ALL@%$WX_ALL%g
13306s%@WX_ALL_INSTALLED@%$WX_ALL_INSTALLED%g
13307s%@SHARED_LD@%$SHARED_LD%g
13308s%@PIC_FLAG@%$PIC_FLAG%g
13309s%@DEP_INFO_FLAGS@%$DEP_INFO_FLAGS%g
caa2c79b 13310s%@CODE_GEN_FLAGS@%$CODE_GEN_FLAGS%g
1d62a8b4 13311s%@BURNT_LIBRARY_NAME@%$BURNT_LIBRARY_NAME%g
10f2d63a 13312s%@WXDEBUG_DEFINE@%$WXDEBUG_DEFINE%g
dad6c0ea
VZ
13313s%@USE_GUI@%$USE_GUI%g
13314s%@AFMINSTALL@%$AFMINSTALL%g
10f2d63a
VZ
13315s%@TOOLKIT@%$TOOLKIT%g
13316s%@TOOLKIT_DEF@%$TOOLKIT_DEF%g
13317s%@TOOLKIT_DIR@%$TOOLKIT_DIR%g
13318s%@TOOLKIT_INCLUDE@%$TOOLKIT_INCLUDE%g
13319s%@GUIHEADERS@%$GUIHEADERS%g
13320s%@GUIOBJS@%$GUIOBJS%g
13321s%@COMMONOBJS@%$COMMONOBJS%g
13322s%@GENERICOBJS@%$GENERICOBJS%g
13323s%@GUIDEPS@%$GUIDEPS%g
13324s%@COMMONDEPS@%$COMMONDEPS%g
13325s%@GENERICDEPS@%$GENERICDEPS%g
13326s%@IODBCOBJS@%$IODBCOBJS%g
13327s%@UNIXOBJS@%$UNIXOBJS%g
13328s%@UNIXDEPS@%$UNIXDEPS%g
13329s%@ALL_OBJECTS@%$ALL_OBJECTS%g
13330s%@ALL_DEPFILES@%$ALL_DEPFILES%g
13331s%@ALL_HEADERS@%$ALL_HEADERS%g
13332s%@GUIDIST@%$GUIDIST%g
13333s%@SRC_SUBDIRS@%$SRC_SUBDIRS%g
13334s%@INCLUDE_SUBDIRS@%$INCLUDE_SUBDIRS%g
13335s%@UTILS_SUBDIRS@%$UTILS_SUBDIRS%g
13336s%@DOCS_SUBDIRS@%$DOCS_SUBDIRS%g
13337s%@SAMPLES_SUBDIRS@%$SAMPLES_SUBDIRS%g
13338s%@USER_SUBDIRS@%$USER_SUBDIRS%g
13339s%@EXTRA_LIBS@%$EXTRA_LIBS%g
b12915c1 13340s%@EXTRADEFS@%$EXTRADEFS%g
10f2d63a
VZ
13341s%@LD_LIBS@%$LD_LIBS%g
13342s%@SET_MAKE@%$SET_MAKE%g
13343s%@GL_TOOLKIT_DIR@%$GL_TOOLKIT_DIR%g
13344
13345CEOF
13346EOF
13347
13348cat >> $CONFIG_STATUS <<\EOF
13349
13350# Split the substitutions into bite-sized pieces for seds with
13351# small command number limits, like on Digital OSF/1 and HP-UX.
13352ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
13353ac_file=1 # Number of current file.
13354ac_beg=1 # First line for current file.
13355ac_end=$ac_max_sed_cmds # Line after last line for current file.
13356ac_more_lines=:
13357ac_sed_cmds=""
13358while $ac_more_lines; do
13359 if test $ac_beg -gt 1; then
13360 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
13361 else
13362 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
13363 fi
13364 if test ! -s conftest.s$ac_file; then
13365 ac_more_lines=false
13366 rm -f conftest.s$ac_file
13367 else
13368 if test -z "$ac_sed_cmds"; then
13369 ac_sed_cmds="sed -f conftest.s$ac_file"
13370 else
13371 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
13372 fi
13373 ac_file=`expr $ac_file + 1`
13374 ac_beg=$ac_end
13375 ac_end=`expr $ac_end + $ac_max_sed_cmds`
13376 fi
13377done
13378if test -z "$ac_sed_cmds"; then
13379 ac_sed_cmds=cat
13380fi
13381EOF
13382
13383cat >> $CONFIG_STATUS <<EOF
13384
13385CONFIG_FILES=\${CONFIG_FILES-"wx-config
13386 src/make.env
13387 src/makeprog.env
13388 src/makelib.env
13389 Makefile
70f7a477
VZ
13390 demos/Makefile
13391 demos/bombs/Makefile
13392 demos/forty/Makefile
13393 demos/fractal/Makefile
13394 demos/life/Makefile
13395 demos/poem/Makefile
10f2d63a 13396 samples/Makefile
10f2d63a 13397 samples/caret/Makefile
1e8d2f69 13398 samples/calendar/Makefile
10f2d63a
VZ
13399 samples/checklst/Makefile
13400 samples/config/Makefile
13401 samples/controls/Makefile
b47c832e 13402 samples/console/Makefile
10f2d63a
VZ
13403 samples/db/Makefile
13404 samples/dialogs/Makefile
13405 samples/docview/Makefile
13406 samples/docvwmdi/Makefile
13407 samples/dnd/Makefile
13408 samples/drawing/Makefile
678b92a9 13409 samples/font/Makefile
1e8d2f69
RR
13410 samples/grid/Makefile
13411 samples/help/Makefile
10f2d63a
VZ
13412 samples/image/Makefile
13413 samples/internat/Makefile
13414 samples/layout/Makefile
13415 samples/listctrl/Makefile
13416 samples/mdi/Makefile
13417 samples/minifram/Makefile
13418 samples/minimal/Makefile
70f7a477 13419 samples/dialup/Makefile
10f2d63a
VZ
13420 samples/newgrid/Makefile
13421 samples/notebook/Makefile
13422 samples/png/Makefile
13423 samples/printing/Makefile
13424 samples/proplist/Makefile
04165bec 13425 samples/propsize/Makefile
10f2d63a
VZ
13426 samples/richedit/Makefile
13427 samples/resource/Makefile
13428 samples/sashtest/Makefile
13429 samples/scroll/Makefile
13430 samples/scrollsub/Makefile
13431 samples/splitter/Makefile
13432 samples/text/Makefile
13433 samples/thread/Makefile
13434 samples/toolbar/Makefile
13435 samples/treectrl/Makefile
13436 samples/typetest/Makefile
13437 samples/validate/Makefile
70f7a477 13438 samples/sockets/Makefile
10f2d63a
VZ
13439 samples/wizard/Makefile
13440 samples/html/Makefile
13441 samples/html/about/Makefile
13442 samples/html/help/Makefile
13443 samples/html/printing/Makefile
fc9c7c09 13444 samples/html/helpview/Makefile
10f2d63a
VZ
13445 samples/html/test/Makefile
13446 samples/html/zip/Makefile
13447 samples/html/virtual/Makefile
13448 samples/html/widget/Makefile
13449 utils/Makefile
13450 utils/wxMMedia2/Makefile
13451 utils/wxMMedia2/lib/Makefile
13452 utils/wxMMedia2/sample/Makefile
13453 utils/glcanvas/Makefile
13454 utils/glcanvas/${GL_TOOLKIT_DIR}/Makefile
13455 utils/ogl/Makefile
13456 utils/ogl/src/Makefile
13457 "}
13458EOF
13459cat >> $CONFIG_STATUS <<\EOF
13460for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
13461 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13462 case "$ac_file" in
13463 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
13464 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
13465 *) ac_file_in="${ac_file}.in" ;;
13466 esac
13467
13468 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
13469
13470 # Remove last slash and all that follows it. Not all systems have dirname.
13471 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
13472 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
13473 # The file is in a subdirectory.
13474 test ! -d "$ac_dir" && mkdir "$ac_dir"
13475 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
13476 # A "../" for each directory in $ac_dir_suffix.
13477 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
13478 else
13479 ac_dir_suffix= ac_dots=
13480 fi
13481
13482 case "$ac_given_srcdir" in
13483 .) srcdir=.
13484 if test -z "$ac_dots"; then top_srcdir=.
13485 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
13486 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
13487 *) # Relative path.
13488 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
13489 top_srcdir="$ac_dots$ac_given_srcdir" ;;
13490 esac
13491
13492 case "$ac_given_INSTALL" in
13493 [/$]*) INSTALL="$ac_given_INSTALL" ;;
13494 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
13495 esac
13496
13497 echo creating "$ac_file"
13498 rm -f "$ac_file"
13499 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
13500 case "$ac_file" in
13501 *Makefile*) ac_comsub="1i\\
13502# $configure_input" ;;
13503 *) ac_comsub= ;;
13504 esac
13505
13506 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
13507 sed -e "$ac_comsub
13508s%@configure_input@%$configure_input%g
13509s%@srcdir@%$srcdir%g
13510s%@top_srcdir@%$top_srcdir%g
13511s%@INSTALL@%$INSTALL%g
13512" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
13513fi; done
13514rm -f conftest.s*
13515
13516# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
13517# NAME is the cpp macro being defined and VALUE is the value it is being given.
13518#
13519# ac_d sets the value in "#define NAME VALUE" lines.
13520ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
13521ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
13522ac_dC='\3'
13523ac_dD='%g'
13524# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
13525ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
13526ac_uB='\([ ]\)%\1#\2define\3'
13527ac_uC=' '
13528ac_uD='\4%g'
13529# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
13530ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
13531ac_eB='$%\1#\2define\3'
13532ac_eC=' '
13533ac_eD='%g'
13534
13535if test "${CONFIG_HEADERS+set}" != set; then
13536EOF
13537cat >> $CONFIG_STATUS <<EOF
13538 CONFIG_HEADERS="setup.h:setup.h.in"
13539EOF
13540cat >> $CONFIG_STATUS <<\EOF
13541fi
13542for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
13543 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13544 case "$ac_file" in
13545 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
13546 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
13547 *) ac_file_in="${ac_file}.in" ;;
13548 esac
13549
13550 echo creating $ac_file
13551
13552 rm -f conftest.frag conftest.in conftest.out
13553 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
13554 cat $ac_file_inputs > conftest.in
13555
13556EOF
13557
13558# Transform confdefs.h into a sed script conftest.vals that substitutes
13559# the proper values into config.h.in to produce config.h. And first:
13560# Protect against being on the right side of a sed subst in config.status.
13561# Protect against being in an unquoted here document in config.status.
13562rm -f conftest.vals
13563cat > conftest.hdr <<\EOF
13564s/[\\&%]/\\&/g
13565s%[\\$`]%\\&%g
13566s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
13567s%ac_d%ac_u%gp
13568s%ac_u%ac_e%gp
13569EOF
13570sed -n -f conftest.hdr confdefs.h > conftest.vals
13571rm -f conftest.hdr
13572
13573# This sed command replaces #undef with comments. This is necessary, for
13574# example, in the case of _POSIX_SOURCE, which is predefined and required
13575# on some systems where configure will not decide to define it.
13576cat >> conftest.vals <<\EOF
13577s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
13578EOF
13579
13580# Break up conftest.vals because some shells have a limit on
13581# the size of here documents, and old seds have small limits too.
13582
13583rm -f conftest.tail
13584while :
13585do
13586 ac_lines=`grep -c . conftest.vals`
13587 # grep -c gives empty output for an empty file on some AIX systems.
13588 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
13589 # Write a limited-size here document to conftest.frag.
13590 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
13591 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
13592 echo 'CEOF
13593 sed -f conftest.frag conftest.in > conftest.out
13594 rm -f conftest.in
13595 mv conftest.out conftest.in
13596' >> $CONFIG_STATUS
13597 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
13598 rm -f conftest.vals
13599 mv conftest.tail conftest.vals
13600done
13601rm -f conftest.vals
13602
13603cat >> $CONFIG_STATUS <<\EOF
13604 rm -f conftest.frag conftest.h
13605 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
13606 cat conftest.in >> conftest.h
13607 rm -f conftest.in
13608 if cmp -s $ac_file conftest.h 2>/dev/null; then
13609 echo "$ac_file is unchanged"
13610 rm -f conftest.h
13611 else
13612 # Remove last slash and all that follows it. Not all systems have dirname.
13613 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
13614 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
13615 # The file is in a subdirectory.
13616 test ! -d "$ac_dir" && mkdir "$ac_dir"
13617 fi
13618 rm -f $ac_file
13619 mv conftest.h $ac_file
13620 fi
13621fi; done
13622
13623EOF
13624cat >> $CONFIG_STATUS <<EOF
13625
13626 TOOLKIT_DIR="${TOOLKIT_DIR}"
13627
13628
13629EOF
13630cat >> $CONFIG_STATUS <<\EOF
13631
13632 chmod +x wx-config
13633 if test ! -d include; then
13634 mkdir include
13635 fi
13636 if test ! -d include/wx; then
13637 mkdir include/wx
13638 fi
13639 if test ! -d include/wx/${TOOLKIT_DIR}; then
13640 mkdir include/wx/${TOOLKIT_DIR}
13641 fi
afc31813
VZ
13642 if test -f setup.h; then
13643 mv -f setup.h include/wx/${TOOLKIT_DIR}/setup.h
13644 fi
10f2d63a
VZ
13645
13646exit 0
13647EOF
13648chmod +x $CONFIG_STATUS
13649rm -fr confdefs* $ac_clean_files
13650test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
13651
13652